ConTeXt: Split xtables across multiple pages

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











up vote
1
down vote

favorite
1












Background



Use extreme tables to split tabular data across pages.



Problem



The setupxtable command does not appear to be sufficient to force a table to split across pages.



Also, a reference to split is given twice (once in the setup and once in startplacetable), which seems redundant.



Code



setupxtable[
split=yes,
header=repeat,
]

setupxtable[head]
setupxtable[body]
setupxtable[foot]

starttext
dorecurse2
input knuth input ward


startplacetable[here, split]
startxtable
startxtablehead[head]
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] Phone stopxcell
startxcell[align=middle] Contact stopxcell
startxcell[align=left] $CAD stopxcell
startxcell[align=left] $USD stopxcell
stopxrow
stopxtablehead
startxtablebody[body]
dorecurse9
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow

stopxtablebody
startxtablefoot[foot]
startxrow
startxcell[align=right] Vendor nstopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow
stopxtablefoot
stopxtable
stopplacetable

stoptext


Actual



The actual output is:



No table split



Question



What needs to change in the code to cause part of the table to be on the first page while the remainder of the table is on the second page, such that the header row is repeated?



Constraints



The code is generated, mostly, by pandoc.



Environment



Running:



mtx-context | current version: 2018.09.13 17:41









share|improve this question

















  • 1




    You have to pass the split keyword as argument to the location key in startplacetable, this means you have to write startplacetable[location=here,split] in your document.
    – Wolfgang Schuster
    4 hours ago














up vote
1
down vote

favorite
1












Background



Use extreme tables to split tabular data across pages.



Problem



The setupxtable command does not appear to be sufficient to force a table to split across pages.



Also, a reference to split is given twice (once in the setup and once in startplacetable), which seems redundant.



Code



setupxtable[
split=yes,
header=repeat,
]

setupxtable[head]
setupxtable[body]
setupxtable[foot]

starttext
dorecurse2
input knuth input ward


startplacetable[here, split]
startxtable
startxtablehead[head]
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] Phone stopxcell
startxcell[align=middle] Contact stopxcell
startxcell[align=left] $CAD stopxcell
startxcell[align=left] $USD stopxcell
stopxrow
stopxtablehead
startxtablebody[body]
dorecurse9
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow

stopxtablebody
startxtablefoot[foot]
startxrow
startxcell[align=right] Vendor nstopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow
stopxtablefoot
stopxtable
stopplacetable

stoptext


Actual



The actual output is:



No table split



Question



What needs to change in the code to cause part of the table to be on the first page while the remainder of the table is on the second page, such that the header row is repeated?



Constraints



The code is generated, mostly, by pandoc.



Environment



Running:



mtx-context | current version: 2018.09.13 17:41









share|improve this question

















  • 1




    You have to pass the split keyword as argument to the location key in startplacetable, this means you have to write startplacetable[location=here,split] in your document.
    – Wolfgang Schuster
    4 hours ago












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





Background



Use extreme tables to split tabular data across pages.



Problem



The setupxtable command does not appear to be sufficient to force a table to split across pages.



Also, a reference to split is given twice (once in the setup and once in startplacetable), which seems redundant.



Code



setupxtable[
split=yes,
header=repeat,
]

setupxtable[head]
setupxtable[body]
setupxtable[foot]

starttext
dorecurse2
input knuth input ward


startplacetable[here, split]
startxtable
startxtablehead[head]
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] Phone stopxcell
startxcell[align=middle] Contact stopxcell
startxcell[align=left] $CAD stopxcell
startxcell[align=left] $USD stopxcell
stopxrow
stopxtablehead
startxtablebody[body]
dorecurse9
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow

stopxtablebody
startxtablefoot[foot]
startxrow
startxcell[align=right] Vendor nstopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow
stopxtablefoot
stopxtable
stopplacetable

stoptext


Actual



The actual output is:



No table split



Question



What needs to change in the code to cause part of the table to be on the first page while the remainder of the table is on the second page, such that the header row is repeated?



Constraints



The code is generated, mostly, by pandoc.



Environment



Running:



mtx-context | current version: 2018.09.13 17:41









share|improve this question













Background



Use extreme tables to split tabular data across pages.



Problem



The setupxtable command does not appear to be sufficient to force a table to split across pages.



Also, a reference to split is given twice (once in the setup and once in startplacetable), which seems redundant.



Code



setupxtable[
split=yes,
header=repeat,
]

setupxtable[head]
setupxtable[body]
setupxtable[foot]

starttext
dorecurse2
input knuth input ward


startplacetable[here, split]
startxtable
startxtablehead[head]
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] Phone stopxcell
startxcell[align=middle] Contact stopxcell
startxcell[align=left] $CAD stopxcell
startxcell[align=left] $USD stopxcell
stopxrow
stopxtablehead
startxtablebody[body]
dorecurse9
startxrow
startxcell[align=right] Vendor stopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow

stopxtablebody
startxtablefoot[foot]
startxrow
startxcell[align=right] Vendor nstopxcell
startxcell[align=middle] 555-1212 stopxcell
startxcell[align=middle] Email stopxcell
startxcell[align=left] 1234.58 stopxcell
startxcell[align=left] 8256.76 stopxcell
stopxrow
stopxtablefoot
stopxtable
stopplacetable

stoptext


Actual



The actual output is:



No table split



Question



What needs to change in the code to cause part of the table to be on the first page while the remainder of the table is on the second page, such that the header row is repeated?



Constraints



The code is generated, mostly, by pandoc.



Environment



Running:



mtx-context | current version: 2018.09.13 17:41






page-breaking context pandoc split extreme-tables






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









Dave Jarvis

4,40273978




4,40273978







  • 1




    You have to pass the split keyword as argument to the location key in startplacetable, this means you have to write startplacetable[location=here,split] in your document.
    – Wolfgang Schuster
    4 hours ago












  • 1




    You have to pass the split keyword as argument to the location key in startplacetable, this means you have to write startplacetable[location=here,split] in your document.
    – Wolfgang Schuster
    4 hours ago







1




1




You have to pass the split keyword as argument to the location key in startplacetable, this means you have to write startplacetable[location=here,split] in your document.
– Wolfgang Schuster
4 hours ago




You have to pass the split keyword as argument to the location key in startplacetable, this means you have to write startplacetable[location=here,split] in your document.
– Wolfgang Schuster
4 hours ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










When you use the placetable environment you gave to pass a placement and option keywords to the location key which will end in the first argument of the placetable command.



When you take a look at the syntax of the placetable command you can see that options, references and the caption use separate arguments.



Arguments for the placetable command



The placeable environment on the other hand uses only a single argument (the second argument is for userdata where you can pass whetever you want) where each argument type is passed to a key.



Arguments for the startplacetable command



To break your table across pages you have to change the line



startplacetable[here, split]


to



startplacetable[location=here, split]


where you pass the split keyword to the location key of the startplacetable command.






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



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453097%2fcontext-split-xtables-across-multiple-pages%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
    3
    down vote



    accepted










    When you use the placetable environment you gave to pass a placement and option keywords to the location key which will end in the first argument of the placetable command.



    When you take a look at the syntax of the placetable command you can see that options, references and the caption use separate arguments.



    Arguments for the placetable command



    The placeable environment on the other hand uses only a single argument (the second argument is for userdata where you can pass whetever you want) where each argument type is passed to a key.



    Arguments for the startplacetable command



    To break your table across pages you have to change the line



    startplacetable[here, split]


    to



    startplacetable[location=here, split]


    where you pass the split keyword to the location key of the startplacetable command.






    share|improve this answer
























      up vote
      3
      down vote



      accepted










      When you use the placetable environment you gave to pass a placement and option keywords to the location key which will end in the first argument of the placetable command.



      When you take a look at the syntax of the placetable command you can see that options, references and the caption use separate arguments.



      Arguments for the placetable command



      The placeable environment on the other hand uses only a single argument (the second argument is for userdata where you can pass whetever you want) where each argument type is passed to a key.



      Arguments for the startplacetable command



      To break your table across pages you have to change the line



      startplacetable[here, split]


      to



      startplacetable[location=here, split]


      where you pass the split keyword to the location key of the startplacetable command.






      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        When you use the placetable environment you gave to pass a placement and option keywords to the location key which will end in the first argument of the placetable command.



        When you take a look at the syntax of the placetable command you can see that options, references and the caption use separate arguments.



        Arguments for the placetable command



        The placeable environment on the other hand uses only a single argument (the second argument is for userdata where you can pass whetever you want) where each argument type is passed to a key.



        Arguments for the startplacetable command



        To break your table across pages you have to change the line



        startplacetable[here, split]


        to



        startplacetable[location=here, split]


        where you pass the split keyword to the location key of the startplacetable command.






        share|improve this answer












        When you use the placetable environment you gave to pass a placement and option keywords to the location key which will end in the first argument of the placetable command.



        When you take a look at the syntax of the placetable command you can see that options, references and the caption use separate arguments.



        Arguments for the placetable command



        The placeable environment on the other hand uses only a single argument (the second argument is for userdata where you can pass whetever you want) where each argument type is passed to a key.



        Arguments for the startplacetable command



        To break your table across pages you have to change the line



        startplacetable[here, split]


        to



        startplacetable[location=here, split]


        where you pass the split keyword to the location key of the startplacetable command.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        Wolfgang Schuster

        4,0411711




        4,0411711



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453097%2fcontext-split-xtables-across-multiple-pages%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