Is it possible to display all boxes I am currently in?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I'm currently reading Knuth's TeXbook. As an educational reference, is there a way to display a hierarchical list of all boxes I am currently "in" (in other words, I'm typing the document interactively, and at some point, I wish to see the boxes TeX is in the process of creating at the current instant), and ideally, also be able to display their contents?



Knuth mentions the primitive showbox, but it seems (to me) that it requires first for one to run setbox, and furthermore, it seems to tell me nothing about what I have typed so far.










share|improve this question







New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • showlists is what you want here
    – David Carlisle
    3 hours ago














up vote
2
down vote

favorite












I'm currently reading Knuth's TeXbook. As an educational reference, is there a way to display a hierarchical list of all boxes I am currently "in" (in other words, I'm typing the document interactively, and at some point, I wish to see the boxes TeX is in the process of creating at the current instant), and ideally, also be able to display their contents?



Knuth mentions the primitive showbox, but it seems (to me) that it requires first for one to run setbox, and furthermore, it seems to tell me nothing about what I have typed so far.










share|improve this question







New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • showlists is what you want here
    – David Carlisle
    3 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I'm currently reading Knuth's TeXbook. As an educational reference, is there a way to display a hierarchical list of all boxes I am currently "in" (in other words, I'm typing the document interactively, and at some point, I wish to see the boxes TeX is in the process of creating at the current instant), and ideally, also be able to display their contents?



Knuth mentions the primitive showbox, but it seems (to me) that it requires first for one to run setbox, and furthermore, it seems to tell me nothing about what I have typed so far.










share|improve this question







New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm currently reading Knuth's TeXbook. As an educational reference, is there a way to display a hierarchical list of all boxes I am currently "in" (in other words, I'm typing the document interactively, and at some point, I wish to see the boxes TeX is in the process of creating at the current instant), and ideally, also be able to display their contents?



Knuth mentions the primitive showbox, but it seems (to me) that it requires first for one to run setbox, and furthermore, it seems to tell me nothing about what I have typed so far.







tex-core






share|improve this question







New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









extremeaxe5

1133




1133




New contributor




extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






extremeaxe5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • showlists is what you want here
    – David Carlisle
    3 hours ago
















  • showlists is what you want here
    – David Carlisle
    3 hours ago















showlists is what you want here
– David Carlisle
3 hours ago




showlists is what you want here
– David Carlisle
3 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










tracingonline1

aa

vbox

bb hboxccc showlists

bye


Produces a terminal output of



This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdftex)
restricted write18 enabled.
entering extended mode
(./aa910.tex

### restricted horizontal mode entered at line 7
tenrm c
tenrm c
tenrm c
glue 3.33333 plus 1.66666 minus 1.11111
spacefactor 1000
### horizontal mode entered at line 7
hbox(0.0+0.0)x20.0
tenrm b
tenrm b
glue 3.33333 plus 1.66666 minus 1.11111
spacefactor 1000
### internal vertical mode entered at line 5
prevdepth ignored
### vertical mode entered at line 0
### current page:
glue(topskip) 5.69446
hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
.hbox(0.0+0.0)x20.0
.tenrm a
.tenrm a
.penalty 10000
.glue(parfillskip) 0.0 plus 1.0fil
.etc.
total height 10.0
goal height 643.20255
prevdepth 0.0, prevgraf 1 line

! OK.
l.7 bb hbox{ccc showlists

?


so at the point it stopped



yu see you are in a restricted hlist (=hbox)



### restricted horizontal mode entered at line 7
tenrm c
tenrm c
tenrm c
glue 3.33333 plus 1.66666 minus 1.11111
spacefactor 1000


That was in an unrestricted hlist (=paragraph before it is broken into lines



### horizontal mode entered at line 7
hbox(0.0+0.0)x20.0
tenrm b
tenrm b
glue 3.33333 plus 1.66666 minus 1.11111
spacefactor 1000


and the paragraph was in a vertical list from the top of the page that already has a hbox for the line aa



### vertical mode entered at line 0
### current page:
glue(topskip) 5.69446
hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
.hbox(0.0+0.0)x20.0
.tenrm a
.tenrm a
.penalty 10000
.glue(parfillskip) 0.0 plus 1.0fil
.etc.


If you want to see longer lists without being truncated to etc. add



showboxbreadth=1000


at the top



also



showboxdepth=1000


but that makes no difference in this case as this example has no deep nesting.






share|improve this answer




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    extremeaxe5 is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452347%2fis-it-possible-to-display-all-boxes-i-am-currently-in%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    tracingonline1

    aa

    vbox

    bb hboxccc showlists

    bye


    Produces a terminal output of



    This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdftex)
    restricted write18 enabled.
    entering extended mode
    (./aa910.tex

    ### restricted horizontal mode entered at line 7
    tenrm c
    tenrm c
    tenrm c
    glue 3.33333 plus 1.66666 minus 1.11111
    spacefactor 1000
    ### horizontal mode entered at line 7
    hbox(0.0+0.0)x20.0
    tenrm b
    tenrm b
    glue 3.33333 plus 1.66666 minus 1.11111
    spacefactor 1000
    ### internal vertical mode entered at line 5
    prevdepth ignored
    ### vertical mode entered at line 0
    ### current page:
    glue(topskip) 5.69446
    hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
    .hbox(0.0+0.0)x20.0
    .tenrm a
    .tenrm a
    .penalty 10000
    .glue(parfillskip) 0.0 plus 1.0fil
    .etc.
    total height 10.0
    goal height 643.20255
    prevdepth 0.0, prevgraf 1 line

    ! OK.
    l.7 bb hbox{ccc showlists

    ?


    so at the point it stopped



    yu see you are in a restricted hlist (=hbox)



    ### restricted horizontal mode entered at line 7
    tenrm c
    tenrm c
    tenrm c
    glue 3.33333 plus 1.66666 minus 1.11111
    spacefactor 1000


    That was in an unrestricted hlist (=paragraph before it is broken into lines



    ### horizontal mode entered at line 7
    hbox(0.0+0.0)x20.0
    tenrm b
    tenrm b
    glue 3.33333 plus 1.66666 minus 1.11111
    spacefactor 1000


    and the paragraph was in a vertical list from the top of the page that already has a hbox for the line aa



    ### vertical mode entered at line 0
    ### current page:
    glue(topskip) 5.69446
    hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
    .hbox(0.0+0.0)x20.0
    .tenrm a
    .tenrm a
    .penalty 10000
    .glue(parfillskip) 0.0 plus 1.0fil
    .etc.


    If you want to see longer lists without being truncated to etc. add



    showboxbreadth=1000


    at the top



    also



    showboxdepth=1000


    but that makes no difference in this case as this example has no deep nesting.






    share|improve this answer
























      up vote
      4
      down vote



      accepted










      tracingonline1

      aa

      vbox

      bb hboxccc showlists

      bye


      Produces a terminal output of



      This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdftex)
      restricted write18 enabled.
      entering extended mode
      (./aa910.tex

      ### restricted horizontal mode entered at line 7
      tenrm c
      tenrm c
      tenrm c
      glue 3.33333 plus 1.66666 minus 1.11111
      spacefactor 1000
      ### horizontal mode entered at line 7
      hbox(0.0+0.0)x20.0
      tenrm b
      tenrm b
      glue 3.33333 plus 1.66666 minus 1.11111
      spacefactor 1000
      ### internal vertical mode entered at line 5
      prevdepth ignored
      ### vertical mode entered at line 0
      ### current page:
      glue(topskip) 5.69446
      hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
      .hbox(0.0+0.0)x20.0
      .tenrm a
      .tenrm a
      .penalty 10000
      .glue(parfillskip) 0.0 plus 1.0fil
      .etc.
      total height 10.0
      goal height 643.20255
      prevdepth 0.0, prevgraf 1 line

      ! OK.
      l.7 bb hbox{ccc showlists

      ?


      so at the point it stopped



      yu see you are in a restricted hlist (=hbox)



      ### restricted horizontal mode entered at line 7
      tenrm c
      tenrm c
      tenrm c
      glue 3.33333 plus 1.66666 minus 1.11111
      spacefactor 1000


      That was in an unrestricted hlist (=paragraph before it is broken into lines



      ### horizontal mode entered at line 7
      hbox(0.0+0.0)x20.0
      tenrm b
      tenrm b
      glue 3.33333 plus 1.66666 minus 1.11111
      spacefactor 1000


      and the paragraph was in a vertical list from the top of the page that already has a hbox for the line aa



      ### vertical mode entered at line 0
      ### current page:
      glue(topskip) 5.69446
      hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
      .hbox(0.0+0.0)x20.0
      .tenrm a
      .tenrm a
      .penalty 10000
      .glue(parfillskip) 0.0 plus 1.0fil
      .etc.


      If you want to see longer lists without being truncated to etc. add



      showboxbreadth=1000


      at the top



      also



      showboxdepth=1000


      but that makes no difference in this case as this example has no deep nesting.






      share|improve this answer






















        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        tracingonline1

        aa

        vbox

        bb hboxccc showlists

        bye


        Produces a terminal output of



        This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdftex)
        restricted write18 enabled.
        entering extended mode
        (./aa910.tex

        ### restricted horizontal mode entered at line 7
        tenrm c
        tenrm c
        tenrm c
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000
        ### horizontal mode entered at line 7
        hbox(0.0+0.0)x20.0
        tenrm b
        tenrm b
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000
        ### internal vertical mode entered at line 5
        prevdepth ignored
        ### vertical mode entered at line 0
        ### current page:
        glue(topskip) 5.69446
        hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
        .hbox(0.0+0.0)x20.0
        .tenrm a
        .tenrm a
        .penalty 10000
        .glue(parfillskip) 0.0 plus 1.0fil
        .etc.
        total height 10.0
        goal height 643.20255
        prevdepth 0.0, prevgraf 1 line

        ! OK.
        l.7 bb hbox{ccc showlists

        ?


        so at the point it stopped



        yu see you are in a restricted hlist (=hbox)



        ### restricted horizontal mode entered at line 7
        tenrm c
        tenrm c
        tenrm c
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000


        That was in an unrestricted hlist (=paragraph before it is broken into lines



        ### horizontal mode entered at line 7
        hbox(0.0+0.0)x20.0
        tenrm b
        tenrm b
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000


        and the paragraph was in a vertical list from the top of the page that already has a hbox for the line aa



        ### vertical mode entered at line 0
        ### current page:
        glue(topskip) 5.69446
        hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
        .hbox(0.0+0.0)x20.0
        .tenrm a
        .tenrm a
        .penalty 10000
        .glue(parfillskip) 0.0 plus 1.0fil
        .etc.


        If you want to see longer lists without being truncated to etc. add



        showboxbreadth=1000


        at the top



        also



        showboxdepth=1000


        but that makes no difference in this case as this example has no deep nesting.






        share|improve this answer












        tracingonline1

        aa

        vbox

        bb hboxccc showlists

        bye


        Produces a terminal output of



        This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdftex)
        restricted write18 enabled.
        entering extended mode
        (./aa910.tex

        ### restricted horizontal mode entered at line 7
        tenrm c
        tenrm c
        tenrm c
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000
        ### horizontal mode entered at line 7
        hbox(0.0+0.0)x20.0
        tenrm b
        tenrm b
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000
        ### internal vertical mode entered at line 5
        prevdepth ignored
        ### vertical mode entered at line 0
        ### current page:
        glue(topskip) 5.69446
        hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
        .hbox(0.0+0.0)x20.0
        .tenrm a
        .tenrm a
        .penalty 10000
        .glue(parfillskip) 0.0 plus 1.0fil
        .etc.
        total height 10.0
        goal height 643.20255
        prevdepth 0.0, prevgraf 1 line

        ! OK.
        l.7 bb hbox{ccc showlists

        ?


        so at the point it stopped



        yu see you are in a restricted hlist (=hbox)



        ### restricted horizontal mode entered at line 7
        tenrm c
        tenrm c
        tenrm c
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000


        That was in an unrestricted hlist (=paragraph before it is broken into lines



        ### horizontal mode entered at line 7
        hbox(0.0+0.0)x20.0
        tenrm b
        tenrm b
        glue 3.33333 plus 1.66666 minus 1.11111
        spacefactor 1000


        and the paragraph was in a vertical list from the top of the page that already has a hbox for the line aa



        ### vertical mode entered at line 0
        ### current page:
        glue(topskip) 5.69446
        hbox(4.30554+0.0)x469.75499, glue set 439.75496fil
        .hbox(0.0+0.0)x20.0
        .tenrm a
        .tenrm a
        .penalty 10000
        .glue(parfillskip) 0.0 plus 1.0fil
        .etc.


        If you want to see longer lists without being truncated to etc. add



        showboxbreadth=1000


        at the top



        also



        showboxdepth=1000


        but that makes no difference in this case as this example has no deep nesting.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        David Carlisle

        468k3810961821




        468k3810961821




















            extremeaxe5 is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            extremeaxe5 is a new contributor. Be nice, and check out our Code of Conduct.












            extremeaxe5 is a new contributor. Be nice, and check out our Code of Conduct.











            extremeaxe5 is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452347%2fis-it-possible-to-display-all-boxes-i-am-currently-in%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery