CTAN
Comprehensive TeX Archive Network

settobox – Assigning dimensions of a box to a length register

Com­mands to as­sist the reuse of boxes (set up by \sbox or by the lr­box en­vi­ron­ment); the \set­to­box... com­mands be­have sim­i­larly to the \set­towidth (etc.) com­mands. For ex­am­ple:

        \newsavebox{\mybox}
        \newlength{\mylength}
        \sbox{\mybox}{Hello World}
        \settoboxwidth{\mylength}{\mybox}
      

Sources /macros/latex/contrib/oberdiek/settobox.dtx
Doc­u­men­ta­tion
Ver­sion 1.5 2016-05-16
Li­cense The Project Public Li­cense 1.3
Main­tainer Heiko Oberdiek
TDS archive oberdiek.tds.zip
Con­tained in TeX Live as oberdiek
MiKTeX as oberdiek
Topics cre­at­ing boxes
Guest Book Sitemap Contact Contact Author