dimension too large in pgfmathsetmacro Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Increase save_size on texlive on windowspgfmathsetmacro - dimension too large (biggest value allowed?)Increasing precision in pgfmathsetmacropgfplots “Dimension too large” returned when plotting rational functionDimension too large with pgfmathsetmacroMisterious “dimension too large” error in pgfplot when using widthpgfmathsetmacro not workingPGF Dimension too largepgf-pie : Dimension too largepgfmathsetmacro creates “Dimensions too large” for t distributionPgfplots “Dimension too large” error for simple plotting

Moving a wrapfig vertically to encroach partially on a subsection title

How to ternary Plot3D a function

Sally's older brother

Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?

GDP with Intermediate Production

Why is a lens darker than other ones when applying the same settings?

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

Is openssl rand command cryptographically secure?

What is the "studentd" process?

Trying to understand entropy as a novice in thermodynamics

What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?

Would color changing eyes affect vision?

New Order #6: Easter Egg

What initially awakened the Balrog?

What does 丫 mean? 丫是什么意思?

Monty Hall Problem-Probability Paradox

Can an iPhone 7 be made to function as a NFC Tag?

Co-worker has annoying ringtone

Why weren't discrete x86 CPUs ever used in game hardware?

"klopfte jemand" or "jemand klopfte"?

AppleTVs create a chatty alternate WiFi network

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

Resize vertical bars (absolute-value symbols)

Differences to CCompactSize and CVarInt



dimension too large in pgfmathsetmacro



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Increase save_size on texlive on windowspgfmathsetmacro - dimension too large (biggest value allowed?)Increasing precision in pgfmathsetmacropgfplots “Dimension too large” returned when plotting rational functionDimension too large with pgfmathsetmacroMisterious “dimension too large” error in pgfplot when using widthpgfmathsetmacro not workingPGF Dimension too largepgf-pie : Dimension too largepgfmathsetmacro creates “Dimensions too large” for t distributionPgfplots “Dimension too large” error for simple plotting










3















This works for




test500




but not for let say




test50000




documentclass[10pt,german]article

usepackage[T1]fontenc
usepackage[ngerman]babel
usepackage[utf8]inputenc
usepackagepgffor %foreach


newcommandBeleg[2]%
expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



newcommandtest[1]%
pgfmathsetmacrosaldoo#1
foreach x in 10,20,30%
pgfmathsetmacrosaldocsname BelegKontozweiSollxendcsname+saldoo
globalletsaldoo=saldo

textbfsaldoo




begindocument
Beleg1050.60
Beleg20145.05
Beleg30603.28


test500
enddocument


how can i pass this problem?
Note: in general my tex file is a little bit longer, so i want to keep




csname .... endcsname




vice versa, i have to change a lot of things in my original tex file, which i wont do that.



Someone have an idea?










share|improve this question


























    3















    This works for




    test500




    but not for let say




    test50000




    documentclass[10pt,german]article

    usepackage[T1]fontenc
    usepackage[ngerman]babel
    usepackage[utf8]inputenc
    usepackagepgffor %foreach


    newcommandBeleg[2]%
    expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



    newcommandtest[1]%
    pgfmathsetmacrosaldoo#1
    foreach x in 10,20,30%
    pgfmathsetmacrosaldocsname BelegKontozweiSollxendcsname+saldoo
    globalletsaldoo=saldo

    textbfsaldoo




    begindocument
    Beleg1050.60
    Beleg20145.05
    Beleg30603.28


    test500
    enddocument


    how can i pass this problem?
    Note: in general my tex file is a little bit longer, so i want to keep




    csname .... endcsname




    vice versa, i have to change a lot of things in my original tex file, which i wont do that.



    Someone have an idea?










    share|improve this question
























      3












      3








      3








      This works for




      test500




      but not for let say




      test50000




      documentclass[10pt,german]article

      usepackage[T1]fontenc
      usepackage[ngerman]babel
      usepackage[utf8]inputenc
      usepackagepgffor %foreach


      newcommandBeleg[2]%
      expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



      newcommandtest[1]%
      pgfmathsetmacrosaldoo#1
      foreach x in 10,20,30%
      pgfmathsetmacrosaldocsname BelegKontozweiSollxendcsname+saldoo
      globalletsaldoo=saldo

      textbfsaldoo




      begindocument
      Beleg1050.60
      Beleg20145.05
      Beleg30603.28


      test500
      enddocument


      how can i pass this problem?
      Note: in general my tex file is a little bit longer, so i want to keep




      csname .... endcsname




      vice versa, i have to change a lot of things in my original tex file, which i wont do that.



      Someone have an idea?










      share|improve this question














      This works for




      test500




      but not for let say




      test50000




      documentclass[10pt,german]article

      usepackage[T1]fontenc
      usepackage[ngerman]babel
      usepackage[utf8]inputenc
      usepackagepgffor %foreach


      newcommandBeleg[2]%
      expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



      newcommandtest[1]%
      pgfmathsetmacrosaldoo#1
      foreach x in 10,20,30%
      pgfmathsetmacrosaldocsname BelegKontozweiSollxendcsname+saldoo
      globalletsaldoo=saldo

      textbfsaldoo




      begindocument
      Beleg1050.60
      Beleg20145.05
      Beleg30603.28


      test500
      enddocument


      how can i pass this problem?
      Note: in general my tex file is a little bit longer, so i want to keep




      csname .... endcsname




      vice versa, i have to change a lot of things in my original tex file, which i wont do that.



      Someone have an idea?







      pgfmath






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 16 at 7:32









      Bilal YilmazBilal Yilmaz

      232




      232




















          3 Answers
          3






          active

          oldest

          votes


















          4














          Don't use pgf for such large numbers. As it internally uses dimensions its range is a bit restricted. With expl3 and its fp-library there is no problem:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackagesiunitx %loads expl3
          sisetuplocale=DE

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2


          ExplSyntaxOn
          newcommandtest[1]

          fp_set:Nnl_tmpa_fp#1
          clist_map_inline:nn 10,20,30

          fp_add:Nn l_tmpa_fp use:c BelegKontozweiSoll##1

          textbfnum[detect-weight]fp_eval:nl_tmpa_fp

          ExplSyntaxOff


          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument





          share|improve this answer























          • Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

            – Bilal Yilmaz
            Apr 16 at 8:33












          • Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

            – Ulrike Fischer
            Apr 16 at 8:36












          • could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

            – Bilal Yilmaz
            Apr 16 at 8:37











          • Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

            – Ulrike Fischer
            Apr 16 at 8:53











          • can you please read my new answer. I have written down what im looking for.

            – Bilal Yilmaz
            Apr 16 at 9:07


















          0














          I mean something like this:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          pgfmathsetmacrosaldoo#1
          foreach x in 10,20,30%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo

          textbfsaldoo




          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument


          This works also fine for 50000 but FPeval doesnt take the value




          csname BelegKontozweiSollx endcsname




          Can you please adapt this part of the code? So then i have not to use expl3.
          I like FPeval....






          share|improve this answer























          • You are forgetting that foreach builds a group, the calculated value can't escape.

            – Ulrike Fischer
            Apr 16 at 9:22











          • I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

            – Bilal Yilmaz
            Apr 16 at 9:22



















          0














          Now i got it :)
          - its possible to combine FPeval with csname ... endcsname
          - its possible that the calculated value in foreach is global (xdef....)



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          FPevalsaldoo#1
          foreach x in 1,...,5%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo
          xdefsaldoosaldo

          saldoo




          begindocument
          Beleg125
          Beleg225
          Beleg325
          Beleg4100
          Beleg5100

          test50000
          enddocument


          Finish :)






          share|improve this answer























          • You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

            – Ulrike Fischer
            Apr 16 at 9:36











          • ok thanks! i changed it to something else.

            – Bilal Yilmaz
            Apr 16 at 9:40











          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%2f485097%2fdimension-too-large-in-pgfmathsetmacro%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          Don't use pgf for such large numbers. As it internally uses dimensions its range is a bit restricted. With expl3 and its fp-library there is no problem:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackagesiunitx %loads expl3
          sisetuplocale=DE

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2


          ExplSyntaxOn
          newcommandtest[1]

          fp_set:Nnl_tmpa_fp#1
          clist_map_inline:nn 10,20,30

          fp_add:Nn l_tmpa_fp use:c BelegKontozweiSoll##1

          textbfnum[detect-weight]fp_eval:nl_tmpa_fp

          ExplSyntaxOff


          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument





          share|improve this answer























          • Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

            – Bilal Yilmaz
            Apr 16 at 8:33












          • Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

            – Ulrike Fischer
            Apr 16 at 8:36












          • could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

            – Bilal Yilmaz
            Apr 16 at 8:37











          • Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

            – Ulrike Fischer
            Apr 16 at 8:53











          • can you please read my new answer. I have written down what im looking for.

            – Bilal Yilmaz
            Apr 16 at 9:07















          4














          Don't use pgf for such large numbers. As it internally uses dimensions its range is a bit restricted. With expl3 and its fp-library there is no problem:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackagesiunitx %loads expl3
          sisetuplocale=DE

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2


          ExplSyntaxOn
          newcommandtest[1]

          fp_set:Nnl_tmpa_fp#1
          clist_map_inline:nn 10,20,30

          fp_add:Nn l_tmpa_fp use:c BelegKontozweiSoll##1

          textbfnum[detect-weight]fp_eval:nl_tmpa_fp

          ExplSyntaxOff


          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument





          share|improve this answer























          • Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

            – Bilal Yilmaz
            Apr 16 at 8:33












          • Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

            – Ulrike Fischer
            Apr 16 at 8:36












          • could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

            – Bilal Yilmaz
            Apr 16 at 8:37











          • Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

            – Ulrike Fischer
            Apr 16 at 8:53











          • can you please read my new answer. I have written down what im looking for.

            – Bilal Yilmaz
            Apr 16 at 9:07













          4












          4








          4







          Don't use pgf for such large numbers. As it internally uses dimensions its range is a bit restricted. With expl3 and its fp-library there is no problem:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackagesiunitx %loads expl3
          sisetuplocale=DE

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2


          ExplSyntaxOn
          newcommandtest[1]

          fp_set:Nnl_tmpa_fp#1
          clist_map_inline:nn 10,20,30

          fp_add:Nn l_tmpa_fp use:c BelegKontozweiSoll##1

          textbfnum[detect-weight]fp_eval:nl_tmpa_fp

          ExplSyntaxOff


          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument





          share|improve this answer













          Don't use pgf for such large numbers. As it internally uses dimensions its range is a bit restricted. With expl3 and its fp-library there is no problem:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackagesiunitx %loads expl3
          sisetuplocale=DE

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2


          ExplSyntaxOn
          newcommandtest[1]

          fp_set:Nnl_tmpa_fp#1
          clist_map_inline:nn 10,20,30

          fp_add:Nn l_tmpa_fp use:c BelegKontozweiSoll##1

          textbfnum[detect-weight]fp_eval:nl_tmpa_fp

          ExplSyntaxOff


          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 16 at 8:05









          Ulrike FischerUlrike Fischer

          200k9306693




          200k9306693












          • Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

            – Bilal Yilmaz
            Apr 16 at 8:33












          • Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

            – Ulrike Fischer
            Apr 16 at 8:36












          • could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

            – Bilal Yilmaz
            Apr 16 at 8:37











          • Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

            – Ulrike Fischer
            Apr 16 at 8:53











          • can you please read my new answer. I have written down what im looking for.

            – Bilal Yilmaz
            Apr 16 at 9:07

















          • Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

            – Bilal Yilmaz
            Apr 16 at 8:33












          • Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

            – Ulrike Fischer
            Apr 16 at 8:36












          • could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

            – Bilal Yilmaz
            Apr 16 at 8:37











          • Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

            – Ulrike Fischer
            Apr 16 at 8:53











          • can you please read my new answer. I have written down what im looking for.

            – Bilal Yilmaz
            Apr 16 at 9:07
















          Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

          – Bilal Yilmaz
          Apr 16 at 8:33






          Thanks a lot! But i dont like to work with this. Is it possible to combine FPeval with csname...endcsname? If it is possible, then i also can use let say round(..) and a lot of other stuff which is easy to use. expl3 is a little bit weird...

          – Bilal Yilmaz
          Apr 16 at 8:33














          Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

          – Ulrike Fischer
          Apr 16 at 8:36






          Sure replace use:c ... by csname ... endcsname. use:c is only a wrapper around this primitive (and shorter to type ...).

          – Ulrike Fischer
          Apr 16 at 8:36














          could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

          – Bilal Yilmaz
          Apr 16 at 8:37





          could you please adapt the codes to fpeval so i can see explicit how do you mean that. I will be very very apretiate

          – Bilal Yilmaz
          Apr 16 at 8:37













          Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

          – Ulrike Fischer
          Apr 16 at 8:53





          Hm. I think you should better get used to expl3. The colons and underscore may look a bit weird at the first glance, but you get quite fast used to it - better than csname, xdef and expandafter. round() and so works there fine too. You can e.g. replace fp_add:Nn by fp_set:Nn .

          – Ulrike Fischer
          Apr 16 at 8:53













          can you please read my new answer. I have written down what im looking for.

          – Bilal Yilmaz
          Apr 16 at 9:07





          can you please read my new answer. I have written down what im looking for.

          – Bilal Yilmaz
          Apr 16 at 9:07











          0














          I mean something like this:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          pgfmathsetmacrosaldoo#1
          foreach x in 10,20,30%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo

          textbfsaldoo




          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument


          This works also fine for 50000 but FPeval doesnt take the value




          csname BelegKontozweiSollx endcsname




          Can you please adapt this part of the code? So then i have not to use expl3.
          I like FPeval....






          share|improve this answer























          • You are forgetting that foreach builds a group, the calculated value can't escape.

            – Ulrike Fischer
            Apr 16 at 9:22











          • I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

            – Bilal Yilmaz
            Apr 16 at 9:22
















          0














          I mean something like this:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          pgfmathsetmacrosaldoo#1
          foreach x in 10,20,30%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo

          textbfsaldoo




          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument


          This works also fine for 50000 but FPeval doesnt take the value




          csname BelegKontozweiSollx endcsname




          Can you please adapt this part of the code? So then i have not to use expl3.
          I like FPeval....






          share|improve this answer























          • You are forgetting that foreach builds a group, the calculated value can't escape.

            – Ulrike Fischer
            Apr 16 at 9:22











          • I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

            – Bilal Yilmaz
            Apr 16 at 9:22














          0












          0








          0







          I mean something like this:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          pgfmathsetmacrosaldoo#1
          foreach x in 10,20,30%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo

          textbfsaldoo




          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument


          This works also fine for 50000 but FPeval doesnt take the value




          csname BelegKontozweiSollx endcsname




          Can you please adapt this part of the code? So then i have not to use expl3.
          I like FPeval....






          share|improve this answer













          I mean something like this:



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          pgfmathsetmacrosaldoo#1
          foreach x in 10,20,30%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo

          textbfsaldoo




          begindocument
          Beleg1050.60
          Beleg20145.05
          Beleg30603.28


          test50000
          enddocument


          This works also fine for 50000 but FPeval doesnt take the value




          csname BelegKontozweiSollx endcsname




          Can you please adapt this part of the code? So then i have not to use expl3.
          I like FPeval....







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 16 at 9:01









          Bilal YilmazBilal Yilmaz

          232




          232












          • You are forgetting that foreach builds a group, the calculated value can't escape.

            – Ulrike Fischer
            Apr 16 at 9:22











          • I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

            – Bilal Yilmaz
            Apr 16 at 9:22


















          • You are forgetting that foreach builds a group, the calculated value can't escape.

            – Ulrike Fischer
            Apr 16 at 9:22











          • I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

            – Bilal Yilmaz
            Apr 16 at 9:22

















          You are forgetting that foreach builds a group, the calculated value can't escape.

          – Ulrike Fischer
          Apr 16 at 9:22





          You are forgetting that foreach builds a group, the calculated value can't escape.

          – Ulrike Fischer
          Apr 16 at 9:22













          I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

          – Bilal Yilmaz
          Apr 16 at 9:22






          I got it! Solution below :) Finally, puhh! Thanks a lot Ulrike

          – Bilal Yilmaz
          Apr 16 at 9:22












          0














          Now i got it :)
          - its possible to combine FPeval with csname ... endcsname
          - its possible that the calculated value in foreach is global (xdef....)



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          FPevalsaldoo#1
          foreach x in 1,...,5%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo
          xdefsaldoosaldo

          saldoo




          begindocument
          Beleg125
          Beleg225
          Beleg325
          Beleg4100
          Beleg5100

          test50000
          enddocument


          Finish :)






          share|improve this answer























          • You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

            – Ulrike Fischer
            Apr 16 at 9:36











          • ok thanks! i changed it to something else.

            – Bilal Yilmaz
            Apr 16 at 9:40















          0














          Now i got it :)
          - its possible to combine FPeval with csname ... endcsname
          - its possible that the calculated value in foreach is global (xdef....)



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          FPevalsaldoo#1
          foreach x in 1,...,5%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo
          xdefsaldoosaldo

          saldoo




          begindocument
          Beleg125
          Beleg225
          Beleg325
          Beleg4100
          Beleg5100

          test50000
          enddocument


          Finish :)






          share|improve this answer























          • You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

            – Ulrike Fischer
            Apr 16 at 9:36











          • ok thanks! i changed it to something else.

            – Bilal Yilmaz
            Apr 16 at 9:40













          0












          0








          0







          Now i got it :)
          - its possible to combine FPeval with csname ... endcsname
          - its possible that the calculated value in foreach is global (xdef....)



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          FPevalsaldoo#1
          foreach x in 1,...,5%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo
          xdefsaldoosaldo

          saldoo




          begindocument
          Beleg125
          Beleg225
          Beleg325
          Beleg4100
          Beleg5100

          test50000
          enddocument


          Finish :)






          share|improve this answer













          Now i got it :)
          - its possible to combine FPeval with csname ... endcsname
          - its possible that the calculated value in foreach is global (xdef....)



          documentclass[10pt,german]article

          usepackage[T1]fontenc
          usepackage[ngerman]babel
          usepackage[utf8]inputenc
          usepackagepgffor %foreach
          usepackage[nomessages]fp% http://ctan.org/pkg/fp -> FPeval
          usepackagefp

          newcommandBeleg[2]%
          expandafterxdefcsname BelegKontozweiSoll#1endcsname#2



          newcommandtest[1]%
          FPevalsaldoo#1
          foreach x in 1,...,5%
          FPevalsaldo csname BelegKontozweiSollx endcsname + saldoo
          FPevalsaldoosaldo
          xdefsaldoosaldo

          saldoo




          begindocument
          Beleg125
          Beleg225
          Beleg325
          Beleg4100
          Beleg5100

          test50000
          enddocument


          Finish :)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 16 at 9:24









          Bilal YilmazBilal Yilmaz

          232




          232












          • You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

            – Ulrike Fischer
            Apr 16 at 9:36











          • ok thanks! i changed it to something else.

            – Bilal Yilmaz
            Apr 16 at 9:40

















          • You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

            – Ulrike Fischer
            Apr 16 at 9:36











          • ok thanks! i changed it to something else.

            – Bilal Yilmaz
            Apr 16 at 9:40
















          You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

          – Ulrike Fischer
          Apr 16 at 9:36





          You shouldn't assign saldoo both locally and globally, it will use up your stack. (fp does it wrong too in quite some places, and that's why e.g. this exploded: tex.stackexchange.com/questions/459626/…. One reason why I don't use fp).

          – Ulrike Fischer
          Apr 16 at 9:36













          ok thanks! i changed it to something else.

          – Bilal Yilmaz
          Apr 16 at 9:40





          ok thanks! i changed it to something else.

          – Bilal Yilmaz
          Apr 16 at 9:40

















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485097%2fdimension-too-large-in-pgfmathsetmacro%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

          Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

          Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?