How to get last box in vertical mode?How can I get all box of a vertical list?Undo last vertical skipHow to get the natural width of the last box in a paragraph?XeTeXpicfile in vertical modepar in the parameter text (as an argument delimiter) and vbox#1 in an everypar macroHow to get a centered colored boxWhy does LaTeX throw an error without begindocument?Determine whether lastbox is usableGet current error modeHow can I get all box of a vertical list?First box in current vertical list?
How to set Output path correctly for a Single Image render?
Can we have a perfect cadence in a minor key?
Can somebody explain Brexit in a few child-proof sentences?
Has Darkwing Duck ever met Scrooge McDuck?
Did arcade monitors have same pixel aspect ratio as TV sets?
Database accidentally deleted with a bash script
Fuse symbol on toroidal transformer
What major Native American tribes were around Santa Fe during the late 1850s?
Drawing a topological "handle" with Tikz
Have I saved too much for retirement so far?
Why did the HMS Bounty go back to a time when whales are already rare?
Some numbers are more equivalent than others
Do the concepts of IP address and network interface not belong to the same layer?
How will losing mobility of one hand affect my career as a programmer?
We have a love-hate relationship
Proving a function is onto where f(x)=|x|.
Customize circled numbers
Global amount of publications over time
Indicating multiple different modes of speech (fantasy language or telepathy)
Can a significant change in incentives void an employment contract?
Filling the middle of a torus in Tikz
Visiting the UK as unmarried couple
Is camera lens focus an exact point or a range?
How do I repair my stair bannister?
How to get last box in vertical mode?
How can I get all box of a vertical list?Undo last vertical skipHow to get the natural width of the last box in a paragraph?XeTeXpicfile in vertical modepar in the parameter text (as an argument delimiter) and vbox#1 in an everypar macroHow to get a centered colored boxWhy does LaTeX throw an error without begindocument?Determine whether lastbox is usableGet current error modeHow can I get all box of a vertical list?First box in current vertical list?
I'm trying to get the contents of a paragraph with showbox via vadjust, by overloading par.
I came up with this:
showboxdepthmaxdimen
showboxbreadthmaxdimen
letoldvadjustvadjust
defvadjust
begingroup
defparendgrafendgroupsetbox0lastboxshowbox0
oldvadjust
Hello vadjustworld.
bye
I get this error:
You can't use `lastbox' in vertical mode.
Is there a way to get the contents of a paragraph with showbox (except explicitly doing setboxN=vbox...)?
tex-core boxes plain-tex
add a comment |
I'm trying to get the contents of a paragraph with showbox via vadjust, by overloading par.
I came up with this:
showboxdepthmaxdimen
showboxbreadthmaxdimen
letoldvadjustvadjust
defvadjust
begingroup
defparendgrafendgroupsetbox0lastboxshowbox0
oldvadjust
Hello vadjustworld.
bye
I get this error:
You can't use `lastbox' in vertical mode.
Is there a way to get the contents of a paragraph with showbox (except explicitly doing setboxN=vbox...)?
tex-core boxes plain-tex
1
You can't uselastboxin the main vertical list. See p. 42 ofTeX By Topicfor example
– user31729
Sep 4 '15 at 0:37
add a comment |
I'm trying to get the contents of a paragraph with showbox via vadjust, by overloading par.
I came up with this:
showboxdepthmaxdimen
showboxbreadthmaxdimen
letoldvadjustvadjust
defvadjust
begingroup
defparendgrafendgroupsetbox0lastboxshowbox0
oldvadjust
Hello vadjustworld.
bye
I get this error:
You can't use `lastbox' in vertical mode.
Is there a way to get the contents of a paragraph with showbox (except explicitly doing setboxN=vbox...)?
tex-core boxes plain-tex
I'm trying to get the contents of a paragraph with showbox via vadjust, by overloading par.
I came up with this:
showboxdepthmaxdimen
showboxbreadthmaxdimen
letoldvadjustvadjust
defvadjust
begingroup
defparendgrafendgroupsetbox0lastboxshowbox0
oldvadjust
Hello vadjustworld.
bye
I get this error:
You can't use `lastbox' in vertical mode.
Is there a way to get the contents of a paragraph with showbox (except explicitly doing setboxN=vbox...)?
tex-core boxes plain-tex
tex-core boxes plain-tex
edited 11 mins ago
David Carlisle
495k4111411889
495k4111411889
asked Sep 4 '15 at 0:28
Igor LiferenkoIgor Liferenko
2,122829
2,122829
1
You can't uselastboxin the main vertical list. See p. 42 ofTeX By Topicfor example
– user31729
Sep 4 '15 at 0:37
add a comment |
1
You can't uselastboxin the main vertical list. See p. 42 ofTeX By Topicfor example
– user31729
Sep 4 '15 at 0:37
1
1
You can't use
lastbox in the main vertical list. See p. 42 of TeX By Topic for example– user31729
Sep 4 '15 at 0:37
You can't use
lastbox in the main vertical list. See p. 42 of TeX By Topic for example– user31729
Sep 4 '15 at 0:37
add a comment |
1 Answer
1
active
oldest
votes
You need to use luatex (and access the box node from lua) or to typeset your paragraph in a vbox, not on the main vertical list so that you are in inner vertical mode, where lastbox is allowed.
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f264669%2fhow-to-get-last-box-in-vertical-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to use luatex (and access the box node from lua) or to typeset your paragraph in a vbox, not on the main vertical list so that you are in inner vertical mode, where lastbox is allowed.
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
add a comment |
You need to use luatex (and access the box node from lua) or to typeset your paragraph in a vbox, not on the main vertical list so that you are in inner vertical mode, where lastbox is allowed.
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
add a comment |
You need to use luatex (and access the box node from lua) or to typeset your paragraph in a vbox, not on the main vertical list so that you are in inner vertical mode, where lastbox is allowed.
You need to use luatex (and access the box node from lua) or to typeset your paragraph in a vbox, not on the main vertical list so that you are in inner vertical mode, where lastbox is allowed.
answered Sep 4 '15 at 9:10
David CarlisleDavid Carlisle
495k4111411889
495k4111411889
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
add a comment |
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
Do you know how to do this in luatex? A little example in the answer is appreciated.
– Igor Liferenko
Sep 4 '15 at 12:53
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
@IgorLiferenko not exactly, although in general you have access to TeX's box tree as a linked tree of lua nodes that you can inspect, and with care modify. Code example would take too much time during the day, I would probably be forced to read the manual or some such disaster:-)
– David Carlisle
Sep 4 '15 at 14:12
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f264669%2fhow-to-get-last-box-in-vertical-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You can't use
lastboxin the main vertical list. See p. 42 ofTeX By Topicfor example– user31729
Sep 4 '15 at 0:37