STcopy adds redundant whitespace











up vote
3
down vote

favorite












I use spreadtab with STcopy. For some reason, there is redundant whitespace at the left of the table. Here is a minimal working example:



documentclass{standalone}
usepackage{spreadtab}
begin{document}
begin{spreadtab}{{tabular}{lll}}
STcopy{>,v}{pow(1,1)}
& &
\
& &
\
& &
end{spreadtab}
end{document}


In a "standalone" document, it is easy to see the extra space at the left.
The extra space becomes larger when I add more rows.



Is this a bug?










share|improve this question


























    up vote
    3
    down vote

    favorite












    I use spreadtab with STcopy. For some reason, there is redundant whitespace at the left of the table. Here is a minimal working example:



    documentclass{standalone}
    usepackage{spreadtab}
    begin{document}
    begin{spreadtab}{{tabular}{lll}}
    STcopy{>,v}{pow(1,1)}
    & &
    \
    & &
    \
    & &
    end{spreadtab}
    end{document}


    In a "standalone" document, it is easy to see the extra space at the left.
    The extra space becomes larger when I add more rows.



    Is this a bug?










    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I use spreadtab with STcopy. For some reason, there is redundant whitespace at the left of the table. Here is a minimal working example:



      documentclass{standalone}
      usepackage{spreadtab}
      begin{document}
      begin{spreadtab}{{tabular}{lll}}
      STcopy{>,v}{pow(1,1)}
      & &
      \
      & &
      \
      & &
      end{spreadtab}
      end{document}


      In a "standalone" document, it is easy to see the extra space at the left.
      The extra space becomes larger when I add more rows.



      Is this a bug?










      share|improve this question













      I use spreadtab with STcopy. For some reason, there is redundant whitespace at the left of the table. Here is a minimal working example:



      documentclass{standalone}
      usepackage{spreadtab}
      begin{document}
      begin{spreadtab}{{tabular}{lll}}
      STcopy{>,v}{pow(1,1)}
      & &
      \
      & &
      \
      & &
      end{spreadtab}
      end{document}


      In a "standalone" document, it is easy to see the extra space at the left.
      The extra space becomes larger when I add more rows.



      Is this a bug?







      spreadtab






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      Erel Segal-Halevi

      2,37262242




      2,37262242






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The problem is the same as in What makes my line get shifted to the left when I invoke LoadConstants? and the solution again the same: add



          makeatletter
          defFP@pow#1#2#3{% <---- This was unprotected
          % #1 macro, which gets the result
          % #2 base
          % #3 exponent
          %
          FP@beginmessage{POW}%
          %
          {defFP@beginmessage##1{}%
          defFP@endmessage##1{}%
          %
          FPifzero{#2}%
          FP@pow@zero{#3}%
          else%
          FPlnFP@tmpd{#2}%
          FPmulFP@tmpdFP@tmpd{#3}%
          FPexpFP@tmpFP@tmpd%
          fi%
          %
          globalletFP@tmpFP@tmp%
          }%
          %
          FP@endmessage{}%
          %
          let#1FP@tmp%
          }
          makeatother


          before begin{document}.



          Here's a four row spreadtab after the change:



          documentclass{standalone}
          usepackage{spreadtab}

          makeatletter
          defFP@pow#1#2#3{% <---- This was unprotected
          % #1 macro, which gets the result
          % #2 base
          % #3 exponent
          %
          FP@beginmessage{POW}%
          %
          {defFP@beginmessage##1{}%
          defFP@endmessage##1{}%
          %
          FPifzero{#2}%
          FP@pow@zero{#3}%
          else%
          FPlnFP@tmpd{#2}%
          FPmulFP@tmpdFP@tmpd{#3}%
          FPexpFP@tmpFP@tmpd%
          fi%
          %
          globalletFP@tmpFP@tmp%
          }%
          %
          FP@endmessage{}%
          %
          let#1FP@tmp%
          }
          makeatother

          begin{document}
          begin{spreadtab}{{tabular}{lll}}
          STcopy{>,v}{pow(1,1)}
          & &
          \
          & &
          \
          & &
          \
          & &
          end{spreadtab}
          end{document}


          enter image description here



          Elementary, Watson.



          How to find the source of the spurious spaces?



          I added tracingcommands=1 tracingmacros=1 before begin{spreadtabs} and run LaTeX. Then looked for {blank space} in the log file. Look and behold!



          FP@pow #1#2#3-> FP@beginmessage {POW}{def FP@beginmessage ##1{}def FP@end
          message ##1{}FPifzero {#2}FP@pow@zero {#3}else FPln FP@tmpd {#2}FPmul FP
          @tmpd FP@tmpd {#3}FPexp FP@tmp FP@tmpd fi global let FP@tmp FP@tmp }F
          P@endmessage {}let #1FP@tmp
          #1<-FP@valc
          #2<-FP@vala
          #3<-FP@valb
          {blank space }

          FP@beginmessage #1->ifFPmessages message {( FP-#1}fi
          #1<-POW
          {begin-group character {}
          {def}
          {def}


          The space was added in the middle of expanding FP@pow. Where did I see that? Oh, yes! The old question I referenced. Problem solved. 😀



          Well, it's the same problem, so I made the answer “community wiki”. Otherwise some respected user could insinuate I get my rep just by chasing missing %.






          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%2f459669%2fstcopy-adds-redundant-whitespace%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            The problem is the same as in What makes my line get shifted to the left when I invoke LoadConstants? and the solution again the same: add



            makeatletter
            defFP@pow#1#2#3{% <---- This was unprotected
            % #1 macro, which gets the result
            % #2 base
            % #3 exponent
            %
            FP@beginmessage{POW}%
            %
            {defFP@beginmessage##1{}%
            defFP@endmessage##1{}%
            %
            FPifzero{#2}%
            FP@pow@zero{#3}%
            else%
            FPlnFP@tmpd{#2}%
            FPmulFP@tmpdFP@tmpd{#3}%
            FPexpFP@tmpFP@tmpd%
            fi%
            %
            globalletFP@tmpFP@tmp%
            }%
            %
            FP@endmessage{}%
            %
            let#1FP@tmp%
            }
            makeatother


            before begin{document}.



            Here's a four row spreadtab after the change:



            documentclass{standalone}
            usepackage{spreadtab}

            makeatletter
            defFP@pow#1#2#3{% <---- This was unprotected
            % #1 macro, which gets the result
            % #2 base
            % #3 exponent
            %
            FP@beginmessage{POW}%
            %
            {defFP@beginmessage##1{}%
            defFP@endmessage##1{}%
            %
            FPifzero{#2}%
            FP@pow@zero{#3}%
            else%
            FPlnFP@tmpd{#2}%
            FPmulFP@tmpdFP@tmpd{#3}%
            FPexpFP@tmpFP@tmpd%
            fi%
            %
            globalletFP@tmpFP@tmp%
            }%
            %
            FP@endmessage{}%
            %
            let#1FP@tmp%
            }
            makeatother

            begin{document}
            begin{spreadtab}{{tabular}{lll}}
            STcopy{>,v}{pow(1,1)}
            & &
            \
            & &
            \
            & &
            \
            & &
            end{spreadtab}
            end{document}


            enter image description here



            Elementary, Watson.



            How to find the source of the spurious spaces?



            I added tracingcommands=1 tracingmacros=1 before begin{spreadtabs} and run LaTeX. Then looked for {blank space} in the log file. Look and behold!



            FP@pow #1#2#3-> FP@beginmessage {POW}{def FP@beginmessage ##1{}def FP@end
            message ##1{}FPifzero {#2}FP@pow@zero {#3}else FPln FP@tmpd {#2}FPmul FP
            @tmpd FP@tmpd {#3}FPexp FP@tmp FP@tmpd fi global let FP@tmp FP@tmp }F
            P@endmessage {}let #1FP@tmp
            #1<-FP@valc
            #2<-FP@vala
            #3<-FP@valb
            {blank space }

            FP@beginmessage #1->ifFPmessages message {( FP-#1}fi
            #1<-POW
            {begin-group character {}
            {def}
            {def}


            The space was added in the middle of expanding FP@pow. Where did I see that? Oh, yes! The old question I referenced. Problem solved. 😀



            Well, it's the same problem, so I made the answer “community wiki”. Otherwise some respected user could insinuate I get my rep just by chasing missing %.






            share|improve this answer



























              up vote
              2
              down vote



              accepted










              The problem is the same as in What makes my line get shifted to the left when I invoke LoadConstants? and the solution again the same: add



              makeatletter
              defFP@pow#1#2#3{% <---- This was unprotected
              % #1 macro, which gets the result
              % #2 base
              % #3 exponent
              %
              FP@beginmessage{POW}%
              %
              {defFP@beginmessage##1{}%
              defFP@endmessage##1{}%
              %
              FPifzero{#2}%
              FP@pow@zero{#3}%
              else%
              FPlnFP@tmpd{#2}%
              FPmulFP@tmpdFP@tmpd{#3}%
              FPexpFP@tmpFP@tmpd%
              fi%
              %
              globalletFP@tmpFP@tmp%
              }%
              %
              FP@endmessage{}%
              %
              let#1FP@tmp%
              }
              makeatother


              before begin{document}.



              Here's a four row spreadtab after the change:



              documentclass{standalone}
              usepackage{spreadtab}

              makeatletter
              defFP@pow#1#2#3{% <---- This was unprotected
              % #1 macro, which gets the result
              % #2 base
              % #3 exponent
              %
              FP@beginmessage{POW}%
              %
              {defFP@beginmessage##1{}%
              defFP@endmessage##1{}%
              %
              FPifzero{#2}%
              FP@pow@zero{#3}%
              else%
              FPlnFP@tmpd{#2}%
              FPmulFP@tmpdFP@tmpd{#3}%
              FPexpFP@tmpFP@tmpd%
              fi%
              %
              globalletFP@tmpFP@tmp%
              }%
              %
              FP@endmessage{}%
              %
              let#1FP@tmp%
              }
              makeatother

              begin{document}
              begin{spreadtab}{{tabular}{lll}}
              STcopy{>,v}{pow(1,1)}
              & &
              \
              & &
              \
              & &
              \
              & &
              end{spreadtab}
              end{document}


              enter image description here



              Elementary, Watson.



              How to find the source of the spurious spaces?



              I added tracingcommands=1 tracingmacros=1 before begin{spreadtabs} and run LaTeX. Then looked for {blank space} in the log file. Look and behold!



              FP@pow #1#2#3-> FP@beginmessage {POW}{def FP@beginmessage ##1{}def FP@end
              message ##1{}FPifzero {#2}FP@pow@zero {#3}else FPln FP@tmpd {#2}FPmul FP
              @tmpd FP@tmpd {#3}FPexp FP@tmp FP@tmpd fi global let FP@tmp FP@tmp }F
              P@endmessage {}let #1FP@tmp
              #1<-FP@valc
              #2<-FP@vala
              #3<-FP@valb
              {blank space }

              FP@beginmessage #1->ifFPmessages message {( FP-#1}fi
              #1<-POW
              {begin-group character {}
              {def}
              {def}


              The space was added in the middle of expanding FP@pow. Where did I see that? Oh, yes! The old question I referenced. Problem solved. 😀



              Well, it's the same problem, so I made the answer “community wiki”. Otherwise some respected user could insinuate I get my rep just by chasing missing %.






              share|improve this answer

























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                The problem is the same as in What makes my line get shifted to the left when I invoke LoadConstants? and the solution again the same: add



                makeatletter
                defFP@pow#1#2#3{% <---- This was unprotected
                % #1 macro, which gets the result
                % #2 base
                % #3 exponent
                %
                FP@beginmessage{POW}%
                %
                {defFP@beginmessage##1{}%
                defFP@endmessage##1{}%
                %
                FPifzero{#2}%
                FP@pow@zero{#3}%
                else%
                FPlnFP@tmpd{#2}%
                FPmulFP@tmpdFP@tmpd{#3}%
                FPexpFP@tmpFP@tmpd%
                fi%
                %
                globalletFP@tmpFP@tmp%
                }%
                %
                FP@endmessage{}%
                %
                let#1FP@tmp%
                }
                makeatother


                before begin{document}.



                Here's a four row spreadtab after the change:



                documentclass{standalone}
                usepackage{spreadtab}

                makeatletter
                defFP@pow#1#2#3{% <---- This was unprotected
                % #1 macro, which gets the result
                % #2 base
                % #3 exponent
                %
                FP@beginmessage{POW}%
                %
                {defFP@beginmessage##1{}%
                defFP@endmessage##1{}%
                %
                FPifzero{#2}%
                FP@pow@zero{#3}%
                else%
                FPlnFP@tmpd{#2}%
                FPmulFP@tmpdFP@tmpd{#3}%
                FPexpFP@tmpFP@tmpd%
                fi%
                %
                globalletFP@tmpFP@tmp%
                }%
                %
                FP@endmessage{}%
                %
                let#1FP@tmp%
                }
                makeatother

                begin{document}
                begin{spreadtab}{{tabular}{lll}}
                STcopy{>,v}{pow(1,1)}
                & &
                \
                & &
                \
                & &
                \
                & &
                end{spreadtab}
                end{document}


                enter image description here



                Elementary, Watson.



                How to find the source of the spurious spaces?



                I added tracingcommands=1 tracingmacros=1 before begin{spreadtabs} and run LaTeX. Then looked for {blank space} in the log file. Look and behold!



                FP@pow #1#2#3-> FP@beginmessage {POW}{def FP@beginmessage ##1{}def FP@end
                message ##1{}FPifzero {#2}FP@pow@zero {#3}else FPln FP@tmpd {#2}FPmul FP
                @tmpd FP@tmpd {#3}FPexp FP@tmp FP@tmpd fi global let FP@tmp FP@tmp }F
                P@endmessage {}let #1FP@tmp
                #1<-FP@valc
                #2<-FP@vala
                #3<-FP@valb
                {blank space }

                FP@beginmessage #1->ifFPmessages message {( FP-#1}fi
                #1<-POW
                {begin-group character {}
                {def}
                {def}


                The space was added in the middle of expanding FP@pow. Where did I see that? Oh, yes! The old question I referenced. Problem solved. 😀



                Well, it's the same problem, so I made the answer “community wiki”. Otherwise some respected user could insinuate I get my rep just by chasing missing %.






                share|improve this answer














                The problem is the same as in What makes my line get shifted to the left when I invoke LoadConstants? and the solution again the same: add



                makeatletter
                defFP@pow#1#2#3{% <---- This was unprotected
                % #1 macro, which gets the result
                % #2 base
                % #3 exponent
                %
                FP@beginmessage{POW}%
                %
                {defFP@beginmessage##1{}%
                defFP@endmessage##1{}%
                %
                FPifzero{#2}%
                FP@pow@zero{#3}%
                else%
                FPlnFP@tmpd{#2}%
                FPmulFP@tmpdFP@tmpd{#3}%
                FPexpFP@tmpFP@tmpd%
                fi%
                %
                globalletFP@tmpFP@tmp%
                }%
                %
                FP@endmessage{}%
                %
                let#1FP@tmp%
                }
                makeatother


                before begin{document}.



                Here's a four row spreadtab after the change:



                documentclass{standalone}
                usepackage{spreadtab}

                makeatletter
                defFP@pow#1#2#3{% <---- This was unprotected
                % #1 macro, which gets the result
                % #2 base
                % #3 exponent
                %
                FP@beginmessage{POW}%
                %
                {defFP@beginmessage##1{}%
                defFP@endmessage##1{}%
                %
                FPifzero{#2}%
                FP@pow@zero{#3}%
                else%
                FPlnFP@tmpd{#2}%
                FPmulFP@tmpdFP@tmpd{#3}%
                FPexpFP@tmpFP@tmpd%
                fi%
                %
                globalletFP@tmpFP@tmp%
                }%
                %
                FP@endmessage{}%
                %
                let#1FP@tmp%
                }
                makeatother

                begin{document}
                begin{spreadtab}{{tabular}{lll}}
                STcopy{>,v}{pow(1,1)}
                & &
                \
                & &
                \
                & &
                \
                & &
                end{spreadtab}
                end{document}


                enter image description here



                Elementary, Watson.



                How to find the source of the spurious spaces?



                I added tracingcommands=1 tracingmacros=1 before begin{spreadtabs} and run LaTeX. Then looked for {blank space} in the log file. Look and behold!



                FP@pow #1#2#3-> FP@beginmessage {POW}{def FP@beginmessage ##1{}def FP@end
                message ##1{}FPifzero {#2}FP@pow@zero {#3}else FPln FP@tmpd {#2}FPmul FP
                @tmpd FP@tmpd {#3}FPexp FP@tmp FP@tmpd fi global let FP@tmp FP@tmp }F
                P@endmessage {}let #1FP@tmp
                #1<-FP@valc
                #2<-FP@vala
                #3<-FP@valb
                {blank space }

                FP@beginmessage #1->ifFPmessages message {( FP-#1}fi
                #1<-POW
                {begin-group character {}
                {def}
                {def}


                The space was added in the middle of expanding FP@pow. Where did I see that? Oh, yes! The old question I referenced. Problem solved. 😀



                Well, it's the same problem, so I made the answer “community wiki”. Otherwise some respected user could insinuate I get my rep just by chasing missing %.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 2 days ago


























                community wiki





                2 revs
                egreg































                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459669%2fstcopy-adds-redundant-whitespace%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

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?