TikZ: Font nullfont has only 7 fontdimen parameters

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











up vote
2
down vote

favorite












For the following MWE:



documentclass[a4paper,12pt,addpoints]exam

usepackagegeometry
usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

pagestyleheadandfoot

firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture%
endminipage%
%


begindocument
beginquestions
question
lipsum
endquestions
enddocument


, this error shows up when drawing the tikz arrow




Font nullfont has only 7 fontdimen parameters.




However, when removing the tikz drawing of the arrow in the footer



firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over
endminipage%
%



the error disappers.



So, I have two questions:



1- What causes this error when drawing the arrow?



2- Why isn't the arrow vertically aligned with the inline text as shown below?



enter image description here










share|improve this question

















  • 2




    why the low level primitive access thedimexprfontdimen22textfont2relax ? that is accessing param 22 of nullfont which isn't defined.
    – David Carlisle
    3 hours ago














up vote
2
down vote

favorite












For the following MWE:



documentclass[a4paper,12pt,addpoints]exam

usepackagegeometry
usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

pagestyleheadandfoot

firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture%
endminipage%
%


begindocument
beginquestions
question
lipsum
endquestions
enddocument


, this error shows up when drawing the tikz arrow




Font nullfont has only 7 fontdimen parameters.




However, when removing the tikz drawing of the arrow in the footer



firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over
endminipage%
%



the error disappers.



So, I have two questions:



1- What causes this error when drawing the arrow?



2- Why isn't the arrow vertically aligned with the inline text as shown below?



enter image description here










share|improve this question

















  • 2




    why the low level primitive access thedimexprfontdimen22textfont2relax ? that is accessing param 22 of nullfont which isn't defined.
    – David Carlisle
    3 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











For the following MWE:



documentclass[a4paper,12pt,addpoints]exam

usepackagegeometry
usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

pagestyleheadandfoot

firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture%
endminipage%
%


begindocument
beginquestions
question
lipsum
endquestions
enddocument


, this error shows up when drawing the tikz arrow




Font nullfont has only 7 fontdimen parameters.




However, when removing the tikz drawing of the arrow in the footer



firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over
endminipage%
%



the error disappers.



So, I have two questions:



1- What causes this error when drawing the arrow?



2- Why isn't the arrow vertically aligned with the inline text as shown below?



enter image description here










share|improve this question













For the following MWE:



documentclass[a4paper,12pt,addpoints]exam

usepackagegeometry
usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

pagestyleheadandfoot

firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture%
endminipage%
%


begindocument
beginquestions
question
lipsum
endquestions
enddocument


, this error shows up when drawing the tikz arrow




Font nullfont has only 7 fontdimen parameters.




However, when removing the tikz drawing of the arrow in the footer



firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over
endminipage%
%



the error disappers.



So, I have two questions:



1- What causes this error when drawing the arrow?



2- Why isn't the arrow vertically aligned with the inline text as shown below?



enter image description here







tikz-pgf header-footer exam






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









Diaa

2,38711643




2,38711643







  • 2




    why the low level primitive access thedimexprfontdimen22textfont2relax ? that is accessing param 22 of nullfont which isn't defined.
    – David Carlisle
    3 hours ago












  • 2




    why the low level primitive access thedimexprfontdimen22textfont2relax ? that is accessing param 22 of nullfont which isn't defined.
    – David Carlisle
    3 hours ago







2




2




why the low level primitive access thedimexprfontdimen22textfont2relax ? that is accessing param 22 of nullfont which isn't defined.
– David Carlisle
3 hours ago




why the low level primitive access thedimexprfontdimen22textfont2relax ? that is accessing param 22 of nullfont which isn't defined.
– David Carlisle
3 hours ago










2 Answers
2






active

oldest

votes

















up vote
2
down vote













Perhaps you want this



documentclass[a4paper,12pt,addpoints]exam

usepackagegeometry
usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

pagestyleheadandfoot

firstpagefooter%
%
%
hrulevspace2pt
beginminipage[t][t]0.5textwidth
text
endminipage%
beginminipage[t][t]0.5textwidth
flushright Page thepage of numpages%
flushrightvspacebaselineskipPlease Turn Over
$vcenterhboxbegintikzpicturedraw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture$%
endminipage%
%


begindocument
beginquestions
question
lipsum
endquestions
enddocument


enter image description here






share|improve this answer



























    up vote
    2
    down vote













    You need to ensure that the math fonts are correctly set up when you ask for fontdimen22textfont2, which can be done by issuing check@mathfonts.



    documentclass[a4paper,12pt,addpoints]exam

    usepackagegeometry
    usepackagetikz
    usepackagelipsum

    makeatletter
    newcommandturnover%
    check@mathfonts % ensure math fonts are defined
    begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]
    draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);
    endtikzpicture%

    makeatother

    pagestyleheadandfoot

    firstpagefooter%
    %
    %
    hrulevspace2pt
    beginminipage[t]0.5textwidth
    text
    endminipage%
    beginminipage[t]0.5textwidth
    raggedleft
    Page thepage of numpages\[baselineskip]
    Please Turn Over turnover
    endminipage%
    %


    begindocument

    beginquestions
    question
    lipsum
    endquestions

    enddocument


    Note that you should not use flushright, but raggedleft.



    enter image description here






    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: 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%2f457836%2ftikz-font-nullfont-has-only-7-fontdimen-parameters%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      Perhaps you want this



      documentclass[a4paper,12pt,addpoints]exam

      usepackagegeometry
      usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

      pagestyleheadandfoot

      firstpagefooter%
      %
      %
      hrulevspace2pt
      beginminipage[t][t]0.5textwidth
      text
      endminipage%
      beginminipage[t][t]0.5textwidth
      flushright Page thepage of numpages%
      flushrightvspacebaselineskipPlease Turn Over
      $vcenterhboxbegintikzpicturedraw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture$%
      endminipage%
      %


      begindocument
      beginquestions
      question
      lipsum
      endquestions
      enddocument


      enter image description here






      share|improve this answer
























        up vote
        2
        down vote













        Perhaps you want this



        documentclass[a4paper,12pt,addpoints]exam

        usepackagegeometry
        usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

        pagestyleheadandfoot

        firstpagefooter%
        %
        %
        hrulevspace2pt
        beginminipage[t][t]0.5textwidth
        text
        endminipage%
        beginminipage[t][t]0.5textwidth
        flushright Page thepage of numpages%
        flushrightvspacebaselineskipPlease Turn Over
        $vcenterhboxbegintikzpicturedraw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture$%
        endminipage%
        %


        begindocument
        beginquestions
        question
        lipsum
        endquestions
        enddocument


        enter image description here






        share|improve this answer






















          up vote
          2
          down vote










          up vote
          2
          down vote









          Perhaps you want this



          documentclass[a4paper,12pt,addpoints]exam

          usepackagegeometry
          usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

          pagestyleheadandfoot

          firstpagefooter%
          %
          %
          hrulevspace2pt
          beginminipage[t][t]0.5textwidth
          text
          endminipage%
          beginminipage[t][t]0.5textwidth
          flushright Page thepage of numpages%
          flushrightvspacebaselineskipPlease Turn Over
          $vcenterhboxbegintikzpicturedraw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture$%
          endminipage%
          %


          begindocument
          beginquestions
          question
          lipsum
          endquestions
          enddocument


          enter image description here






          share|improve this answer












          Perhaps you want this



          documentclass[a4paper,12pt,addpoints]exam

          usepackagegeometry
          usepackagelipsum,graphbox,mdframed,array,ragged2e,booktabs,fmtcount,multicol,multirow,tabularx,cellspace,calc,tcolorbox,tikz,calc,fmtcount,etoolbox,soul

          pagestyleheadandfoot

          firstpagefooter%
          %
          %
          hrulevspace2pt
          beginminipage[t][t]0.5textwidth
          text
          endminipage%
          beginminipage[t][t]0.5textwidth
          flushright Page thepage of numpages%
          flushrightvspacebaselineskipPlease Turn Over
          $vcenterhboxbegintikzpicturedraw[-latex,line width=4pt] (0,0) -- ++(10mm,0);endtikzpicture$%
          endminipage%
          %


          begindocument
          beginquestions
          question
          lipsum
          endquestions
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          jfbu

          43.7k65142




          43.7k65142




















              up vote
              2
              down vote













              You need to ensure that the math fonts are correctly set up when you ask for fontdimen22textfont2, which can be done by issuing check@mathfonts.



              documentclass[a4paper,12pt,addpoints]exam

              usepackagegeometry
              usepackagetikz
              usepackagelipsum

              makeatletter
              newcommandturnover%
              check@mathfonts % ensure math fonts are defined
              begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]
              draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);
              endtikzpicture%

              makeatother

              pagestyleheadandfoot

              firstpagefooter%
              %
              %
              hrulevspace2pt
              beginminipage[t]0.5textwidth
              text
              endminipage%
              beginminipage[t]0.5textwidth
              raggedleft
              Page thepage of numpages\[baselineskip]
              Please Turn Over turnover
              endminipage%
              %


              begindocument

              beginquestions
              question
              lipsum
              endquestions

              enddocument


              Note that you should not use flushright, but raggedleft.



              enter image description here






              share|improve this answer
























                up vote
                2
                down vote













                You need to ensure that the math fonts are correctly set up when you ask for fontdimen22textfont2, which can be done by issuing check@mathfonts.



                documentclass[a4paper,12pt,addpoints]exam

                usepackagegeometry
                usepackagetikz
                usepackagelipsum

                makeatletter
                newcommandturnover%
                check@mathfonts % ensure math fonts are defined
                begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]
                draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);
                endtikzpicture%

                makeatother

                pagestyleheadandfoot

                firstpagefooter%
                %
                %
                hrulevspace2pt
                beginminipage[t]0.5textwidth
                text
                endminipage%
                beginminipage[t]0.5textwidth
                raggedleft
                Page thepage of numpages\[baselineskip]
                Please Turn Over turnover
                endminipage%
                %


                begindocument

                beginquestions
                question
                lipsum
                endquestions

                enddocument


                Note that you should not use flushright, but raggedleft.



                enter image description here






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  You need to ensure that the math fonts are correctly set up when you ask for fontdimen22textfont2, which can be done by issuing check@mathfonts.



                  documentclass[a4paper,12pt,addpoints]exam

                  usepackagegeometry
                  usepackagetikz
                  usepackagelipsum

                  makeatletter
                  newcommandturnover%
                  check@mathfonts % ensure math fonts are defined
                  begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]
                  draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);
                  endtikzpicture%

                  makeatother

                  pagestyleheadandfoot

                  firstpagefooter%
                  %
                  %
                  hrulevspace2pt
                  beginminipage[t]0.5textwidth
                  text
                  endminipage%
                  beginminipage[t]0.5textwidth
                  raggedleft
                  Page thepage of numpages\[baselineskip]
                  Please Turn Over turnover
                  endminipage%
                  %


                  begindocument

                  beginquestions
                  question
                  lipsum
                  endquestions

                  enddocument


                  Note that you should not use flushright, but raggedleft.



                  enter image description here






                  share|improve this answer












                  You need to ensure that the math fonts are correctly set up when you ask for fontdimen22textfont2, which can be done by issuing check@mathfonts.



                  documentclass[a4paper,12pt,addpoints]exam

                  usepackagegeometry
                  usepackagetikz
                  usepackagelipsum

                  makeatletter
                  newcommandturnover%
                  check@mathfonts % ensure math fonts are defined
                  begintikzpicture[baseline=-thedimexprfontdimen22textfont2relax]
                  draw[-latex,line width=4pt] (0,0) -- ++(10mm,0);
                  endtikzpicture%

                  makeatother

                  pagestyleheadandfoot

                  firstpagefooter%
                  %
                  %
                  hrulevspace2pt
                  beginminipage[t]0.5textwidth
                  text
                  endminipage%
                  beginminipage[t]0.5textwidth
                  raggedleft
                  Page thepage of numpages\[baselineskip]
                  Please Turn Over turnover
                  endminipage%
                  %


                  begindocument

                  beginquestions
                  question
                  lipsum
                  endquestions

                  enddocument


                  Note that you should not use flushright, but raggedleft.



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 1 hour ago









                  egreg

                  693k8518443098




                  693k8518443098



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457836%2ftikz-font-nullfont-has-only-7-fontdimen-parameters%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      List of Gilmore Girls characters

                      What does second last employer means? [closed]

                      One-line joke