Add marks in a table of exam

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












3














Please I want modify the following code by adding a new command as marks7,6,4,3 to get



enter image description here



documentclassarticle
usepackageamsmath
usepackageenumerate
usepackagegraphics
usepackagetikz
usetikzlibrarypositioning


tikzstyleNP=[rectangle,
draw=blue!80,
rounded corners=1pt,
inner sep=12pt,
inner ysep=4pt,
draw, fill=black!0,
text width=2cm,
minimum height=.9cm]


newcommandTS[1]
begintikzpicture
node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, minimum height=6cm, text width=10cm,align=center,]

beginenumerate
itemsep.1em
item
foreach x in 1, ...,#1item
begintikzpicture
node[NP, fill=black!05](abc)bfseries x;
node[NP, right=of abc];
endtikzpicture
%
endenumerate
;
endtikzpicture


begindocument
%marks7,6,4,3
TS4
enddocument









share|improve this question























  • Will there always be only four arguments for marks? Do you only want the blue boxes with the arguments of marks to show up or do you still want the results from TS and just another box right next to it? Please be a bit more specific.
    – Sito
    Dec 14 at 13:03










  • @Sito Not only for 4 arguments. This is depends to the number of exercises in the exam.
    – user105476
    Dec 14 at 13:24















3














Please I want modify the following code by adding a new command as marks7,6,4,3 to get



enter image description here



documentclassarticle
usepackageamsmath
usepackageenumerate
usepackagegraphics
usepackagetikz
usetikzlibrarypositioning


tikzstyleNP=[rectangle,
draw=blue!80,
rounded corners=1pt,
inner sep=12pt,
inner ysep=4pt,
draw, fill=black!0,
text width=2cm,
minimum height=.9cm]


newcommandTS[1]
begintikzpicture
node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, minimum height=6cm, text width=10cm,align=center,]

beginenumerate
itemsep.1em
item
foreach x in 1, ...,#1item
begintikzpicture
node[NP, fill=black!05](abc)bfseries x;
node[NP, right=of abc];
endtikzpicture
%
endenumerate
;
endtikzpicture


begindocument
%marks7,6,4,3
TS4
enddocument









share|improve this question























  • Will there always be only four arguments for marks? Do you only want the blue boxes with the arguments of marks to show up or do you still want the results from TS and just another box right next to it? Please be a bit more specific.
    – Sito
    Dec 14 at 13:03










  • @Sito Not only for 4 arguments. This is depends to the number of exercises in the exam.
    – user105476
    Dec 14 at 13:24













3












3








3


1





Please I want modify the following code by adding a new command as marks7,6,4,3 to get



enter image description here



documentclassarticle
usepackageamsmath
usepackageenumerate
usepackagegraphics
usepackagetikz
usetikzlibrarypositioning


tikzstyleNP=[rectangle,
draw=blue!80,
rounded corners=1pt,
inner sep=12pt,
inner ysep=4pt,
draw, fill=black!0,
text width=2cm,
minimum height=.9cm]


newcommandTS[1]
begintikzpicture
node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, minimum height=6cm, text width=10cm,align=center,]

beginenumerate
itemsep.1em
item
foreach x in 1, ...,#1item
begintikzpicture
node[NP, fill=black!05](abc)bfseries x;
node[NP, right=of abc];
endtikzpicture
%
endenumerate
;
endtikzpicture


begindocument
%marks7,6,4,3
TS4
enddocument









share|improve this question















Please I want modify the following code by adding a new command as marks7,6,4,3 to get



enter image description here



documentclassarticle
usepackageamsmath
usepackageenumerate
usepackagegraphics
usepackagetikz
usetikzlibrarypositioning


tikzstyleNP=[rectangle,
draw=blue!80,
rounded corners=1pt,
inner sep=12pt,
inner ysep=4pt,
draw, fill=black!0,
text width=2cm,
minimum height=.9cm]


newcommandTS[1]
begintikzpicture
node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, minimum height=6cm, text width=10cm,align=center,]

beginenumerate
itemsep.1em
item
foreach x in 1, ...,#1item
begintikzpicture
node[NP, fill=black!05](abc)bfseries x;
node[NP, right=of abc];
endtikzpicture
%
endenumerate
;
endtikzpicture


begindocument
%marks7,6,4,3
TS4
enddocument






tikz-pgf tables enumerate






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 14 at 13:01









Kurt

35.3k847159




35.3k847159










asked Dec 14 at 12:55









user105476

1017




1017











  • Will there always be only four arguments for marks? Do you only want the blue boxes with the arguments of marks to show up or do you still want the results from TS and just another box right next to it? Please be a bit more specific.
    – Sito
    Dec 14 at 13:03










  • @Sito Not only for 4 arguments. This is depends to the number of exercises in the exam.
    – user105476
    Dec 14 at 13:24
















  • Will there always be only four arguments for marks? Do you only want the blue boxes with the arguments of marks to show up or do you still want the results from TS and just another box right next to it? Please be a bit more specific.
    – Sito
    Dec 14 at 13:03










  • @Sito Not only for 4 arguments. This is depends to the number of exercises in the exam.
    – user105476
    Dec 14 at 13:24















Will there always be only four arguments for marks? Do you only want the blue boxes with the arguments of marks to show up or do you still want the results from TS and just another box right next to it? Please be a bit more specific.
– Sito
Dec 14 at 13:03




Will there always be only four arguments for marks? Do you only want the blue boxes with the arguments of marks to show up or do you still want the results from TS and just another box right next to it? Please be a bit more specific.
– Sito
Dec 14 at 13:03












@Sito Not only for 4 arguments. This is depends to the number of exercises in the exam.
– user105476
Dec 14 at 13:24




@Sito Not only for 4 arguments. This is depends to the number of exercises in the exam.
– user105476
Dec 14 at 13:24










2 Answers
2






active

oldest

votes


















8














documentclass[tikz,border=2mm]standalone 
usetikzlibrarypositioning

newcommandts[1]
begintikzpicture[box/.style=draw, rounded corners, minimum width=15mm, minimum height=6mm]
foreach i [count=ni] in #1
node[box] at (0,-ni) (lni) ni;
node[box, text=red, font=bfseries, right= 3mm of lni] (rni) i;
endtikzpicture

begindocument

ts7,3,4,6

ts2,3,4

ts5,6,8,9,10

enddocument


enter image description here






share|improve this answer




























    5














    The basic idea for this comes from this post. Please note that you need the listofitems package, which you can be downloaded here. I just wanted to extend the definition of TS in such a way that the second argument can be read by readlist. Then you just create a list called mark which can be accessed over a index.



    documentclassarticle
    usepackageamsmath
    usepackageenumerate
    usepackagegraphics
    usepackagetikz
    usetikzlibrarypositioning
    usepackagelistofitems


    tikzstyleNP=[rectangle,
    draw=blue!80,
    rounded corners=1pt,
    inner sep=12pt,
    inner ysep=4pt,
    draw, fill=black!0,
    text width=2cm,
    minimum height=.9cm]

    newcommandTS[2]%
    readlist*mark#2
    begintikzpicture
    node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, text width=10cm,align=center]

    beginenumerate
    itemsep.1em
    item
    foreach x in 1, ...,#1item
    begintikzpicture
    node[NP, fill=black!05](abc)bfseries x;
    node[NP, right=of abc]mark[x];
    endtikzpicture
    %
    endenumerate
    ;
    endtikzpicture


    begindocument
    TS47,6,4,3
    enddocument


    enter image description here






    share|improve this answer






















    • Thank you .....
      – user105476
      Dec 14 at 16:25










    • @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
      – Sito
      Dec 14 at 16:26











    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%2f464836%2fadd-marks-in-a-table-of-exam%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    8














    documentclass[tikz,border=2mm]standalone 
    usetikzlibrarypositioning

    newcommandts[1]
    begintikzpicture[box/.style=draw, rounded corners, minimum width=15mm, minimum height=6mm]
    foreach i [count=ni] in #1
    node[box] at (0,-ni) (lni) ni;
    node[box, text=red, font=bfseries, right= 3mm of lni] (rni) i;
    endtikzpicture

    begindocument

    ts7,3,4,6

    ts2,3,4

    ts5,6,8,9,10

    enddocument


    enter image description here






    share|improve this answer

























      8














      documentclass[tikz,border=2mm]standalone 
      usetikzlibrarypositioning

      newcommandts[1]
      begintikzpicture[box/.style=draw, rounded corners, minimum width=15mm, minimum height=6mm]
      foreach i [count=ni] in #1
      node[box] at (0,-ni) (lni) ni;
      node[box, text=red, font=bfseries, right= 3mm of lni] (rni) i;
      endtikzpicture

      begindocument

      ts7,3,4,6

      ts2,3,4

      ts5,6,8,9,10

      enddocument


      enter image description here






      share|improve this answer























        8












        8








        8






        documentclass[tikz,border=2mm]standalone 
        usetikzlibrarypositioning

        newcommandts[1]
        begintikzpicture[box/.style=draw, rounded corners, minimum width=15mm, minimum height=6mm]
        foreach i [count=ni] in #1
        node[box] at (0,-ni) (lni) ni;
        node[box, text=red, font=bfseries, right= 3mm of lni] (rni) i;
        endtikzpicture

        begindocument

        ts7,3,4,6

        ts2,3,4

        ts5,6,8,9,10

        enddocument


        enter image description here






        share|improve this answer












        documentclass[tikz,border=2mm]standalone 
        usetikzlibrarypositioning

        newcommandts[1]
        begintikzpicture[box/.style=draw, rounded corners, minimum width=15mm, minimum height=6mm]
        foreach i [count=ni] in #1
        node[box] at (0,-ni) (lni) ni;
        node[box, text=red, font=bfseries, right= 3mm of lni] (rni) i;
        endtikzpicture

        begindocument

        ts7,3,4,6

        ts2,3,4

        ts5,6,8,9,10

        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 14 at 16:29









        Ignasi

        91.5k4165303




        91.5k4165303





















            5














            The basic idea for this comes from this post. Please note that you need the listofitems package, which you can be downloaded here. I just wanted to extend the definition of TS in such a way that the second argument can be read by readlist. Then you just create a list called mark which can be accessed over a index.



            documentclassarticle
            usepackageamsmath
            usepackageenumerate
            usepackagegraphics
            usepackagetikz
            usetikzlibrarypositioning
            usepackagelistofitems


            tikzstyleNP=[rectangle,
            draw=blue!80,
            rounded corners=1pt,
            inner sep=12pt,
            inner ysep=4pt,
            draw, fill=black!0,
            text width=2cm,
            minimum height=.9cm]

            newcommandTS[2]%
            readlist*mark#2
            begintikzpicture
            node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, text width=10cm,align=center]

            beginenumerate
            itemsep.1em
            item
            foreach x in 1, ...,#1item
            begintikzpicture
            node[NP, fill=black!05](abc)bfseries x;
            node[NP, right=of abc]mark[x];
            endtikzpicture
            %
            endenumerate
            ;
            endtikzpicture


            begindocument
            TS47,6,4,3
            enddocument


            enter image description here






            share|improve this answer






















            • Thank you .....
              – user105476
              Dec 14 at 16:25










            • @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
              – Sito
              Dec 14 at 16:26
















            5














            The basic idea for this comes from this post. Please note that you need the listofitems package, which you can be downloaded here. I just wanted to extend the definition of TS in such a way that the second argument can be read by readlist. Then you just create a list called mark which can be accessed over a index.



            documentclassarticle
            usepackageamsmath
            usepackageenumerate
            usepackagegraphics
            usepackagetikz
            usetikzlibrarypositioning
            usepackagelistofitems


            tikzstyleNP=[rectangle,
            draw=blue!80,
            rounded corners=1pt,
            inner sep=12pt,
            inner ysep=4pt,
            draw, fill=black!0,
            text width=2cm,
            minimum height=.9cm]

            newcommandTS[2]%
            readlist*mark#2
            begintikzpicture
            node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, text width=10cm,align=center]

            beginenumerate
            itemsep.1em
            item
            foreach x in 1, ...,#1item
            begintikzpicture
            node[NP, fill=black!05](abc)bfseries x;
            node[NP, right=of abc]mark[x];
            endtikzpicture
            %
            endenumerate
            ;
            endtikzpicture


            begindocument
            TS47,6,4,3
            enddocument


            enter image description here






            share|improve this answer






















            • Thank you .....
              – user105476
              Dec 14 at 16:25










            • @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
              – Sito
              Dec 14 at 16:26














            5












            5








            5






            The basic idea for this comes from this post. Please note that you need the listofitems package, which you can be downloaded here. I just wanted to extend the definition of TS in such a way that the second argument can be read by readlist. Then you just create a list called mark which can be accessed over a index.



            documentclassarticle
            usepackageamsmath
            usepackageenumerate
            usepackagegraphics
            usepackagetikz
            usetikzlibrarypositioning
            usepackagelistofitems


            tikzstyleNP=[rectangle,
            draw=blue!80,
            rounded corners=1pt,
            inner sep=12pt,
            inner ysep=4pt,
            draw, fill=black!0,
            text width=2cm,
            minimum height=.9cm]

            newcommandTS[2]%
            readlist*mark#2
            begintikzpicture
            node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, text width=10cm,align=center]

            beginenumerate
            itemsep.1em
            item
            foreach x in 1, ...,#1item
            begintikzpicture
            node[NP, fill=black!05](abc)bfseries x;
            node[NP, right=of abc]mark[x];
            endtikzpicture
            %
            endenumerate
            ;
            endtikzpicture


            begindocument
            TS47,6,4,3
            enddocument


            enter image description here






            share|improve this answer














            The basic idea for this comes from this post. Please note that you need the listofitems package, which you can be downloaded here. I just wanted to extend the definition of TS in such a way that the second argument can be read by readlist. Then you just create a list called mark which can be accessed over a index.



            documentclassarticle
            usepackageamsmath
            usepackageenumerate
            usepackagegraphics
            usepackagetikz
            usetikzlibrarypositioning
            usepackagelistofitems


            tikzstyleNP=[rectangle,
            draw=blue!80,
            rounded corners=1pt,
            inner sep=12pt,
            inner ysep=4pt,
            draw, fill=black!0,
            text width=2cm,
            minimum height=.9cm]

            newcommandTS[2]%
            readlist*mark#2
            begintikzpicture
            node[rectangle,draw=blue!80,rounded corners=1pt,inner sep=60pt, inner ysep=16pt, text width=10cm,align=center]

            beginenumerate
            itemsep.1em
            item
            foreach x in 1, ...,#1item
            begintikzpicture
            node[NP, fill=black!05](abc)bfseries x;
            node[NP, right=of abc]mark[x];
            endtikzpicture
            %
            endenumerate
            ;
            endtikzpicture


            begindocument
            TS47,6,4,3
            enddocument


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 14 at 16:23

























            answered Dec 14 at 16:11









            Sito

            32728




            32728











            • Thank you .....
              – user105476
              Dec 14 at 16:25










            • @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
              – Sito
              Dec 14 at 16:26

















            • Thank you .....
              – user105476
              Dec 14 at 16:25










            • @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
              – Sito
              Dec 14 at 16:26
















            Thank you .....
            – user105476
            Dec 14 at 16:25




            Thank you .....
            – user105476
            Dec 14 at 16:25












            @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
            – Sito
            Dec 14 at 16:26





            @user105476 You‘re welcome! If you need the marks to be in red and bold, feel free to say so. I‘ll edit it in.
            – Sito
            Dec 14 at 16:26


















            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f464836%2fadd-marks-in-a-table-of-exam%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

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay