-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help please? want to have a box with a rule on one side #544
Comments
The code you cribbed was from a very different context, and the position in the output pipeline gives it a leg up as far as what has been set in stone about the layout at the time it runs. That's not to say that such frames are not possible, they are, but it will require a little more math than this. This is certainly something we need to work on. One of the hardest bits will be handling boxes that split over frames or pages. |
I don't get the issue.
Is this issue still valid or can we have a MVE of the kind of problem to solve? Otherwise, close/reject it. |
FWIW, I've long ago given up on this. I ended up using a much different formatting method. I'm okay with this being closed. |
Isn't this a feature request for something roughly equivalent to LaTeX's |
If it is the case, then:
And one gets a It wouldn't cover the case for long text blocks that get split over several pages, though. But this is not what the original code above implied initially (using an And a more general use case for such vertical lines that might span over pages be what #1524 intended. It is, on its own, an interesting topic per se, but not particularly relevant to this issue. It would need more considerations then, whether as further work on #1524 or, possibly better, on a dedicated 3rd-party package... Out of curiosity I also possibly wonder whether something in the direction considered in #1334 could be used for the simplest case (after all, it tracks positions) - though I am pretty sure it's not sufficient for the more complex cases mentioned in #1524, with possibly several vertical lines (for each indentation level of the formatted program/algorithm). To make that long story shorter: I don't think we need to keep this very issue open. |
Additionally, #529 is also very similar (at least by it's topic name, erm). Another reason why we wouldn't need to keep this very issue opened. |
Closed as dupe of #529. |
Consider packages/linebox.lua:
The
SILE.outputter.rule(cursorX, cursorY, 0.5, box.height)
bit was cribbed from libtexpdf-output.lua. And when I try to use this, I get an error that boils down to cursorY is undefined, which upon inspection I see is a variable declared elsewhere in libtexpdf-output.lua. Fooey.I can't seem to find any examples of working out the size of box so you can draw near it.
(The end goal is to have email style quoting, because I'm trying to include email in a document.)
The text was updated successfully, but these errors were encountered: