Chemmacros reaction(s) environment doesn't display the first reactant if enclosed in square brackets
up vote
0
down vote
favorite
When typing reactions starting with coordinating compounds, I noticed that when the first reactant starts with "[" in both reaction
and reactions
environments the part enclosed in square brackets isn't rendered correctly:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
Neither pdflatex
, nor xelatex
show any error messages. Empirically I discovered that adding a pair of square brackets to the reaction(s) environment solves the problem:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
I'm also curious why begin{reaction}
actually works – maybe there are some arguments that reaction(s) environment expects?
chemistry chemmacros chemformula
add a comment |
up vote
0
down vote
favorite
When typing reactions starting with coordinating compounds, I noticed that when the first reactant starts with "[" in both reaction
and reactions
environments the part enclosed in square brackets isn't rendered correctly:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
Neither pdflatex
, nor xelatex
show any error messages. Empirically I discovered that adding a pair of square brackets to the reaction(s) environment solves the problem:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
I'm also curious why begin{reaction}
actually works – maybe there are some arguments that reaction(s) environment expects?
chemistry chemmacros chemformula
not specific to the reaction environment. it's just how latex works. see e.g. Error with square bracket in table or just trydocumentclass{article}begin{document}begin{figure}[Test]end{figure}end{document}
and you will get an error about unknown positional arguments.
– Troy
Dec 4 at 17:07
@Troy I see. So, what do you think would be the best course of action here: leave a couple of emptybrackets every time, use
{[}
for the first complex, or something else? Also I find it weird that compilers don't complain at all as ifML6
were a valid argument.
– andselisk
Dec 4 at 17:53
1
in this case, I would dosince it seems to be the quickest way to do it. I don't think one has any advantage (apart from flow of typing) over the other. maybe Clemens would have something to say regarding your second statement.
– Troy
Dec 4 at 18:26
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When typing reactions starting with coordinating compounds, I noticed that when the first reactant starts with "[" in both reaction
and reactions
environments the part enclosed in square brackets isn't rendered correctly:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
Neither pdflatex
, nor xelatex
show any error messages. Empirically I discovered that adding a pair of square brackets to the reaction(s) environment solves the problem:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
I'm also curious why begin{reaction}
actually works – maybe there are some arguments that reaction(s) environment expects?
chemistry chemmacros chemformula
When typing reactions starting with coordinating compounds, I noticed that when the first reactant starts with "[" in both reaction
and reactions
environments the part enclosed in square brackets isn't rendered correctly:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
Neither pdflatex
, nor xelatex
show any error messages. Empirically I discovered that adding a pair of square brackets to the reaction(s) environment solves the problem:
documentclass{article}
usepackage{chemmacros}
chemsetup{modules = all}
begin{document}
begin{reaction}
[ML6]A <=> [ML6]+ + A-
end{reaction}
end{document}
I'm also curious why begin{reaction}
actually works – maybe there are some arguments that reaction(s) environment expects?
chemistry chemmacros chemformula
chemistry chemmacros chemformula
asked Dec 4 at 14:59
andselisk
6662621
6662621
not specific to the reaction environment. it's just how latex works. see e.g. Error with square bracket in table or just trydocumentclass{article}begin{document}begin{figure}[Test]end{figure}end{document}
and you will get an error about unknown positional arguments.
– Troy
Dec 4 at 17:07
@Troy I see. So, what do you think would be the best course of action here: leave a couple of emptybrackets every time, use
{[}
for the first complex, or something else? Also I find it weird that compilers don't complain at all as ifML6
were a valid argument.
– andselisk
Dec 4 at 17:53
1
in this case, I would dosince it seems to be the quickest way to do it. I don't think one has any advantage (apart from flow of typing) over the other. maybe Clemens would have something to say regarding your second statement.
– Troy
Dec 4 at 18:26
add a comment |
not specific to the reaction environment. it's just how latex works. see e.g. Error with square bracket in table or just trydocumentclass{article}begin{document}begin{figure}[Test]end{figure}end{document}
and you will get an error about unknown positional arguments.
– Troy
Dec 4 at 17:07
@Troy I see. So, what do you think would be the best course of action here: leave a couple of emptybrackets every time, use
{[}
for the first complex, or something else? Also I find it weird that compilers don't complain at all as ifML6
were a valid argument.
– andselisk
Dec 4 at 17:53
1
in this case, I would dosince it seems to be the quickest way to do it. I don't think one has any advantage (apart from flow of typing) over the other. maybe Clemens would have something to say regarding your second statement.
– Troy
Dec 4 at 18:26
not specific to the reaction environment. it's just how latex works. see e.g. Error with square bracket in table or just try
documentclass{article}begin{document}begin{figure}[Test]end{figure}end{document}
and you will get an error about unknown positional arguments.– Troy
Dec 4 at 17:07
not specific to the reaction environment. it's just how latex works. see e.g. Error with square bracket in table or just try
documentclass{article}begin{document}begin{figure}[Test]end{figure}end{document}
and you will get an error about unknown positional arguments.– Troy
Dec 4 at 17:07
@Troy I see. So, what do you think would be the best course of action here: leave a couple of empty
brackets every time, use {[}
for the first complex, or something else? Also I find it weird that compilers don't complain at all as if ML6
were a valid argument.– andselisk
Dec 4 at 17:53
@Troy I see. So, what do you think would be the best course of action here: leave a couple of empty
brackets every time, use {[}
for the first complex, or something else? Also I find it weird that compilers don't complain at all as if ML6
were a valid argument.– andselisk
Dec 4 at 17:53
1
1
in this case, I would do
since it seems to be the quickest way to do it. I don't think one has any advantage (apart from flow of typing) over the other. maybe Clemens would have something to say regarding your second statement.– Troy
Dec 4 at 18:26
in this case, I would do
since it seems to be the quickest way to do it. I don't think one has any advantage (apart from flow of typing) over the other. maybe Clemens would have something to say regarding your second statement.– Troy
Dec 4 at 18:26
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f463159%2fchemmacros-reactions-environment-doesnt-display-the-first-reactant-if-enclose%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
not specific to the reaction environment. it's just how latex works. see e.g. Error with square bracket in table or just try
documentclass{article}begin{document}begin{figure}[Test]end{figure}end{document}
and you will get an error about unknown positional arguments.– Troy
Dec 4 at 17:07
@Troy I see. So, what do you think would be the best course of action here: leave a couple of empty
brackets every time, use
{[}
for the first complex, or something else? Also I find it weird that compilers don't complain at all as ifML6
were a valid argument.– andselisk
Dec 4 at 17:53
1
in this case, I would do
since it seems to be the quickest way to do it. I don't think one has any advantage (apart from flow of typing) over the other. maybe Clemens would have something to say regarding your second statement.
– Troy
Dec 4 at 18:26