Framing boxes (dropped shadow, rounded corners and more) #1313
Replies: 3 comments 1 reply
-
Oh well, it's going even better than I thought (although the current experimental code is kind of ugly and will clearly need a refactor ^^), so the idea here is to port (a decent subset) of rough.js to Lua so that to get this kind of framed boxes: Quick and dirty so far, but it does its trick IMHO. And that's something that might not exist yet even in (Lua)LaTeX, maybe? 😆 |
Beta Was this translation helpful? Give feedback.
-
Exposing option tuning, many fixes (... doh those arrays starting at 0 or 1 ^^) and "hachure" filling ported... True, the (small subset of) roughjs part should be cleaned up, refactored and likely extracted at some point. Possibly extended too, for other needs (the current port just includes lines, rectangles and "hachure-fills")... Other features out of my mind that might wait a bit too (I'll be switching to another of my needs before tackling with them, but contributions would be welcome):
|
Beta Was this translation helpful? Give feedback.
-
A late update to this old "show and tell" topic: The features demonstrated here are available as part of the ptable.sile module. |
Beta Was this translation helpful? Give feedback.
-
Now working on a framebox package...
Think "a trimmed-down LaTeX fancybox package", in a way...
The latter might have more options and features, maybe (I haven't checked for long), but my aim was just to provide the things I feel a need for, without extra considerations:
The initial version is live in my repo and provides the following things:
Interestingly,maybe, for the curious: regarding the implementation, I just went for PDF graphic objects and used
SILE.outputter:drawSVG
(which has a slightly misleading name actually) to push them to the page. An interesting way to programmatically craft PDF graphics from code 🤣 ...... I'm now considering some nicer framing that is a bit less obvious - so it might take some time, but I think the existing initial package is usable at least and worth a "show and tell". I'll update this message is the secondary aim is achieved!
Beta Was this translation helpful? Give feedback.
All reactions