Is there an incompatibility between the packages calc and siunitx? (GenericError […])
up vote
5
down vote
favorite
The following code does not compile:
documentclass[11pt]{article}
usepackage{calc}
usepackage{siunitx}
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
However, it does compile, when the line
usepackage{siunitx}
is omitted. Interchanging the loading order of the packages does not help.
Error message:
! Undefined control sequence.
GenericError ...
#4 errhelp @err@ ...
l.5 ...r}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
The control sequence at the end of the top line
of your error message was never def'ed. If you have
misspelled it (e.g., `hobx'), type `I' and the correct
spelling (e.g., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
siunitx incompatibility calc
add a comment |
up vote
5
down vote
favorite
The following code does not compile:
documentclass[11pt]{article}
usepackage{calc}
usepackage{siunitx}
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
However, it does compile, when the line
usepackage{siunitx}
is omitted. Interchanging the loading order of the packages does not help.
Error message:
! Undefined control sequence.
GenericError ...
#4 errhelp @err@ ...
l.5 ...r}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
The control sequence at the end of the top line
of your error message was never def'ed. If you have
misspelled it (e.g., `hobx'), type `I' and the correct
spelling (e.g., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
siunitx incompatibility calc
4
It is no siunitx but array (loaded by siunitx). It changes the way tabular preambles are handled.
– Ulrike Fischer
Nov 10 at 9:10
2
The main problem is the fragile textbf. You can robustify itusepackage{etoolbox}robustifytextbf.
– Ulrike Fischer
Nov 10 at 9:34
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
The following code does not compile:
documentclass[11pt]{article}
usepackage{calc}
usepackage{siunitx}
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
However, it does compile, when the line
usepackage{siunitx}
is omitted. Interchanging the loading order of the packages does not help.
Error message:
! Undefined control sequence.
GenericError ...
#4 errhelp @err@ ...
l.5 ...r}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
The control sequence at the end of the top line
of your error message was never def'ed. If you have
misspelled it (e.g., `hobx'), type `I' and the correct
spelling (e.g., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
siunitx incompatibility calc
The following code does not compile:
documentclass[11pt]{article}
usepackage{calc}
usepackage{siunitx}
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
However, it does compile, when the line
usepackage{siunitx}
is omitted. Interchanging the loading order of the packages does not help.
Error message:
! Undefined control sequence.
GenericError ...
#4 errhelp @err@ ...
l.5 ...r}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
The control sequence at the end of the top line
of your error message was never def'ed. If you have
misspelled it (e.g., `hobx'), type `I' and the correct
spelling (e.g., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
siunitx incompatibility calc
siunitx incompatibility calc
edited Nov 10 at 10:49
egreg
706k8618773159
706k8618773159
asked Nov 10 at 9:06
Gerhard
261
261
4
It is no siunitx but array (loaded by siunitx). It changes the way tabular preambles are handled.
– Ulrike Fischer
Nov 10 at 9:10
2
The main problem is the fragile textbf. You can robustify itusepackage{etoolbox}robustifytextbf.
– Ulrike Fischer
Nov 10 at 9:34
add a comment |
4
It is no siunitx but array (loaded by siunitx). It changes the way tabular preambles are handled.
– Ulrike Fischer
Nov 10 at 9:10
2
The main problem is the fragile textbf. You can robustify itusepackage{etoolbox}robustifytextbf.
– Ulrike Fischer
Nov 10 at 9:34
4
4
It is no siunitx but array (loaded by siunitx). It changes the way tabular preambles are handled.
– Ulrike Fischer
Nov 10 at 9:10
It is no siunitx but array (loaded by siunitx). It changes the way tabular preambles are handled.
– Ulrike Fischer
Nov 10 at 9:10
2
2
The main problem is the fragile textbf. You can robustify it
usepackage{etoolbox}robustifytextbf.– Ulrike Fischer
Nov 10 at 9:34
The main problem is the fragile textbf. You can robustify it
usepackage{etoolbox}robustifytextbf.– Ulrike Fischer
Nov 10 at 9:34
add a comment |
1 Answer
1
active
oldest
votes
up vote
5
down vote
array package should probably have made this safe, one way to patch it is
documentclass[11pt]{article}
usepackage{calc}
usepackage{array}
usepackage{etoolbox}
makeatletter
patchcmd @mkpream
{let@sharprelax}
{defwidthof##1{unexpanded{widthof{##1}}}let@sharprelax}
{}{}
makeatother
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
@FrankMittelbach Unfortunately, it seems to break xcolor:documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}
– cjorssen
Dec 13 at 20:35
@cjorssen that's thetableoption socolortbl(which did get broken) a new version ofcolortblwent to ctan yesterday so should be in distributions probably tomorrow
– David Carlisle
Dec 13 at 21:17
@DavidCarlisle This morning:update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.
– cjorssen
Dec 14 at 8:03
add a comment |
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
});
}
});
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%2f459285%2fis-there-an-incompatibility-between-the-packages-calc-and-siunitx-genericerro%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
5
down vote
array package should probably have made this safe, one way to patch it is
documentclass[11pt]{article}
usepackage{calc}
usepackage{array}
usepackage{etoolbox}
makeatletter
patchcmd @mkpream
{let@sharprelax}
{defwidthof##1{unexpanded{widthof{##1}}}let@sharprelax}
{}{}
makeatother
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
@FrankMittelbach Unfortunately, it seems to break xcolor:documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}
– cjorssen
Dec 13 at 20:35
@cjorssen that's thetableoption socolortbl(which did get broken) a new version ofcolortblwent to ctan yesterday so should be in distributions probably tomorrow
– David Carlisle
Dec 13 at 21:17
@DavidCarlisle This morning:update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.
– cjorssen
Dec 14 at 8:03
add a comment |
up vote
5
down vote
array package should probably have made this safe, one way to patch it is
documentclass[11pt]{article}
usepackage{calc}
usepackage{array}
usepackage{etoolbox}
makeatletter
patchcmd @mkpream
{let@sharprelax}
{defwidthof##1{unexpanded{widthof{##1}}}let@sharprelax}
{}{}
makeatother
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
@FrankMittelbach Unfortunately, it seems to break xcolor:documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}
– cjorssen
Dec 13 at 20:35
@cjorssen that's thetableoption socolortbl(which did get broken) a new version ofcolortblwent to ctan yesterday so should be in distributions probably tomorrow
– David Carlisle
Dec 13 at 21:17
@DavidCarlisle This morning:update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.
– cjorssen
Dec 14 at 8:03
add a comment |
up vote
5
down vote
up vote
5
down vote
array package should probably have made this safe, one way to patch it is
documentclass[11pt]{article}
usepackage{calc}
usepackage{array}
usepackage{etoolbox}
makeatletter
patchcmd @mkpream
{let@sharprelax}
{defwidthof##1{unexpanded{widthof{##1}}}let@sharprelax}
{}{}
makeatother
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
array package should probably have made this safe, one way to patch it is
documentclass[11pt]{article}
usepackage{calc}
usepackage{array}
usepackage{etoolbox}
makeatletter
patchcmd @mkpream
{let@sharprelax}
{defwidthof##1{unexpanded{widthof{##1}}}let@sharprelax}
{}{}
makeatother
begin{document}
begin{tabular}{p{.5cm}p{widthof{textbf{AAAAAAAAA}}}l}
&textbf{AAAAAAAAA}&XXXXXXXXXXXXXXXXXXXXXX\
&textbf{BBBBB}&YYYYYYYYYYYYYYYYYYYYYYY\
end{tabular}
end{document}
answered Nov 10 at 11:30
David Carlisle
481k3811121848
481k3811121848
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
@FrankMittelbach Unfortunately, it seems to break xcolor:documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}
– cjorssen
Dec 13 at 20:35
@cjorssen that's thetableoption socolortbl(which did get broken) a new version ofcolortblwent to ctan yesterday so should be in distributions probably tomorrow
– David Carlisle
Dec 13 at 21:17
@DavidCarlisle This morning:update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.
– cjorssen
Dec 14 at 8:03
add a comment |
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
@FrankMittelbach Unfortunately, it seems to break xcolor:documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}
– cjorssen
Dec 13 at 20:35
@cjorssen that's thetableoption socolortbl(which did get broken) a new version ofcolortblwent to ctan yesterday so should be in distributions probably tomorrow
– David Carlisle
Dec 13 at 21:17
@DavidCarlisle This morning:update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.
– cjorssen
Dec 14 at 8:03
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
I have now added a fix to the array package (somewhat more general than the above). The next release of LaTeX's tools (planned for December 2018) will contain this.
– Frank Mittelbach
Nov 13 at 23:18
@FrankMittelbach Unfortunately, it seems to break xcolor:
documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}– cjorssen
Dec 13 at 20:35
@FrankMittelbach Unfortunately, it seems to break xcolor:
documentclass{article} RequirePackage[table]{xcolor} RequirePackage{array} begin{document} begin{tabular}{>{centering}p{4cm}|p{4cm}} Test end{tabular} end{document}– cjorssen
Dec 13 at 20:35
@cjorssen that's the
table option so colortbl (which did get broken) a new version of colortbl went to ctan yesterday so should be in distributions probably tomorrow– David Carlisle
Dec 13 at 21:17
@cjorssen that's the
table option so colortbl (which did get broken) a new version of colortbl went to ctan yesterday so should be in distributions probably tomorrow– David Carlisle
Dec 13 at 21:17
@DavidCarlisle This morning:
update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.– cjorssen
Dec 14 at 8:03
@DavidCarlisle This morning:
update: colortbl [593k] (47614 -> 49404) ... done. Thank you so much for being so quick to fix things.– cjorssen
Dec 14 at 8:03
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f459285%2fis-there-an-incompatibility-between-the-packages-calc-and-siunitx-genericerro%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
4
It is no siunitx but array (loaded by siunitx). It changes the way tabular preambles are handled.
– Ulrike Fischer
Nov 10 at 9:10
2
The main problem is the fragile textbf. You can robustify it
usepackage{etoolbox}robustifytextbf.– Ulrike Fischer
Nov 10 at 9:34