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?













0















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...)?










share|improve this question



















  • 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















0















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...)?










share|improve this question



















  • 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













0












0








0








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...)?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 use lastbox in the main vertical list. See p. 42 of TeX By Topic for example

    – user31729
    Sep 4 '15 at 0:37












  • 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







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










1 Answer
1






active

oldest

votes


















3














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.






share|improve this answer























  • 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










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
);



);













draft saved

draft discarded


















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









3














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.






share|improve this answer























  • 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















3














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.






share|improve this answer























  • 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













3












3








3







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

Should we avoid writing fiction about historical events without extensive research?How do we write a story about genocide committed by a fascist government without falling into the “Nazi Germany” cliché?Researching sensitive subjectsShould I avoid “lecturing” my readers?Archetypical/popular historical fictionHow to write a “strong” passage?Will what worked 'back then' work today? (Novels)Historical Fiction: using you and thouHow do you make characters relatable if they exist in a completely different moral context?How do I write a MODERN combat/violence scene without being dry?Fictionizing firsthand accounts from history?Is it possible to narrate a novel in a faux-historical style without alienating the reader?