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?
spreadtab
add a comment |
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?
spreadtab
add a comment |
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?
spreadtab
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
spreadtab
asked 2 days ago
Erel Segal-Halevi
2,37262242
2,37262242
add a comment |
add a comment |
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}
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 %
.
add a comment |
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}
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 %
.
add a comment |
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}
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 %
.
add a comment |
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}
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 %
.
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}
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 %
.
edited 2 days ago
community wiki
2 revs
egreg
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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