How to write a chemical equation for an reaction that is still fitting inside the document?Can I use my own classes and packages in ShareLaTex or OverleafHow to line up a chemical structure in the table (chemfig)?How I can write polymeric reaction in latexHow to use chemfig for chemical reaction with skeletal formsHow to shift the ring inside an aromatic ring in chemfigHow to vertically align chemical reaction equation with equation numberHow to put a reaction scheme from chemfig inside a TikZ picture?How to write organic chemical equation of the following formHow to vertically align (center) components in a chemical reaction?
What are one's options when facing religious discrimination at the airport?
Why do Russians sometimes spell "жирный" (fatty) as "жырный"?
How closely correlated is culture to geography?
Citing CPLEX 12.9
Knights and Knaves: What does C say?
When Vesuvan Shapeshifter copies turn face up replacement effects, why do they work?
Why do personal finance apps focus on outgoings rather than income
Why has Speaker Pelosi been so hesitant to impeach President Trump?
What is the point of impeaching Trump?
Does the 'java' command compile Java programs?
Could Boris Johnson face criminal charges for illegally proroguing Parliament?
How dangerous is a very out-of-true disc brake wheel?
Can I cast Death Ward on additional creatures without causing previous castings to end?
Could the Queen overturn the UK Supreme Court ruling regarding prorogation of Parliament?
Re-entering the UK after overstaying in 2008
Sending mail to the Professor for PhD, after seeing his tweet
Giving a good fancy look to a simple table
Job interview by video at home and privacy concerns
Disable all sound permanently
Is the "spacetime" the same thing as the mathematical 4th dimension?
Booting Ubuntu from USB drive on MSI motherboard -- EVERYTHING fails
As a team leader is it appropriate to bring in fundraiser candy?
Bothered by watching coworkers slacking off
Why such a singular place for bird watching?
How to write a chemical equation for an reaction that is still fitting inside the document?
Can I use my own classes and packages in ShareLaTex or OverleafHow to line up a chemical structure in the table (chemfig)?How I can write polymeric reaction in latexHow to use chemfig for chemical reaction with skeletal formsHow to shift the ring inside an aromatic ring in chemfigHow to vertically align chemical reaction equation with equation numberHow to put a reaction scheme from chemfig inside a TikZ picture?How to write organic chemical equation of the following formHow to vertically align (center) components in a chemical reaction?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I am writing a lab report for my Chemistry class, and I would like to write a chemical reaction for the following reaction that looks like this.
I have tried the following command to make this reaction.
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackage[version=3]mhchem
begindocument
begincenter
scalebox0.6cechemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH + chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br -> chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O + chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144]) + chemfigBr-Br
endcenter
enddocument
However, the result is not what I expected. The compounds are not properly lined up.
Can anyone be able to help me with this? Thanks for helping.
pdf chemfig mol2chemfig
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
I am writing a lab report for my Chemistry class, and I would like to write a chemical reaction for the following reaction that looks like this.
I have tried the following command to make this reaction.
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackage[version=3]mhchem
begindocument
begincenter
scalebox0.6cechemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH + chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br -> chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O + chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144]) + chemfigBr-Br
endcenter
enddocument
However, the result is not what I expected. The compounds are not properly lined up.
Can anyone be able to help me with this? Thanks for helping.
pdf chemfig mol2chemfig
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.SE!!
– manooooh
9 hours ago
Could you please make your cdoe compilable (see minimal working example (MWE)) by adding the documentclass as well as the relevant packages?
– leandriis
9 hours ago
I will work on that. Please wait for a couple of minutes.
– An Trinh
9 hours ago
I have fixed it. Although it seems that my command is quite long.
– An Trinh
9 hours ago
add a comment
|
I am writing a lab report for my Chemistry class, and I would like to write a chemical reaction for the following reaction that looks like this.
I have tried the following command to make this reaction.
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackage[version=3]mhchem
begindocument
begincenter
scalebox0.6cechemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH + chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br -> chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O + chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144]) + chemfigBr-Br
endcenter
enddocument
However, the result is not what I expected. The compounds are not properly lined up.
Can anyone be able to help me with this? Thanks for helping.
pdf chemfig mol2chemfig
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am writing a lab report for my Chemistry class, and I would like to write a chemical reaction for the following reaction that looks like this.
I have tried the following command to make this reaction.
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackage[version=3]mhchem
begindocument
begincenter
scalebox0.6cechemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH + chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br -> chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O + chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144]) + chemfigBr-Br
endcenter
enddocument
However, the result is not what I expected. The compounds are not properly lined up.
Can anyone be able to help me with this? Thanks for helping.
pdf chemfig mol2chemfig
pdf chemfig mol2chemfig
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 9 hours ago
An Trinh
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 9 hours ago
An TrinhAn Trinh
285 bronze badges
285 bronze badges
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
An Trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.SE!!
– manooooh
9 hours ago
Could you please make your cdoe compilable (see minimal working example (MWE)) by adding the documentclass as well as the relevant packages?
– leandriis
9 hours ago
I will work on that. Please wait for a couple of minutes.
– An Trinh
9 hours ago
I have fixed it. Although it seems that my command is quite long.
– An Trinh
9 hours ago
add a comment
|
Welcome to TeX.SE!!
– manooooh
9 hours ago
Could you please make your cdoe compilable (see minimal working example (MWE)) by adding the documentclass as well as the relevant packages?
– leandriis
9 hours ago
I will work on that. Please wait for a couple of minutes.
– An Trinh
9 hours ago
I have fixed it. Although it seems that my command is quite long.
– An Trinh
9 hours ago
Welcome to TeX.SE!!
– manooooh
9 hours ago
Welcome to TeX.SE!!
– manooooh
9 hours ago
Could you please make your cdoe compilable (see minimal working example (MWE)) by adding the documentclass as well as the relevant packages?
– leandriis
9 hours ago
Could you please make your cdoe compilable (see minimal working example (MWE)) by adding the documentclass as well as the relevant packages?
– leandriis
9 hours ago
I will work on that. Please wait for a couple of minutes.
– An Trinh
9 hours ago
I will work on that. Please wait for a couple of minutes.
– An Trinh
9 hours ago
I have fixed it. Although it seems that my command is quite long.
– An Trinh
9 hours ago
I have fixed it. Although it seems that my command is quite long.
– An Trinh
9 hours ago
add a comment
|
2 Answers
2
active
oldest
votes
I think the code below works with your original code (with slight modifications).
The relevant changes are:
as suggested by @leandriis
- You can remove
ce
- You can place the "
chemfig
"s withinschemestart
andschemestop
. You can use an arrow defined by the chemfig package
arrow(.mid east--.mid
west)One suggestion made in the
chemfig
package is to separate "plusses" and molecules using an invisible zero-length arrow (arrow0[,0]
). This causes the molecules and plusses to be treated separately and they end up aligning in a nicer way.Quoting the chemfig package: 'Therefore, one must stop the compound right after the first molecule with a arrow0[,0] that will draw an invisible, zero-length arrow. In order to vertically center the whole scheme, one must also set the the anchor of the first compound as "west" ... with the second optional argument of the schemestart command'
- edit: chemfig doc says you need to anchor the first compound to the "west" if you want vertical centering of the scheme. I removed the [west] argument shown below and I don't see a change in vertical alignment, so it does not seem necessary in this case.
- You can also get rid of
mhchem
andmol2chemfig
(this website is awesome, by the way: https://py-chemist.com/mol_2_chemfig/home it has saved me countless hours)
Here is a screenshot:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
setchemfig+ sep left=1em, + sep right=1em, arrow offset=1em % adjusts spacing around + symbols and the arrow
begindocument
begincenter
scalebox0.6
schemestart[][west] % "west" may be removable here
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH arrow0[,0] + arrow0[,0]
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br arrow(.mid east--.mid west) arrow0[,0]
chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O arrow0[,0] + arrow0[,0]
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]NH(-[:144]) arrow0[,0] +
chemfigBr-Br
schemestop
endcenter
enddocument
1
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
add a comment
|
Probably the following is closer to the desired output:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackagemol2chemfig
begindocument
scalebox.47
schemestart
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br
arrow->
chemfigO=[:15]-[:69](=[:123,,,1]O)-[:357](=[:51,,,1]O)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144])
+
chemfigBr-Br
schemestop
enddocument
Wha I changed in comparison to the original:
- removed the
ce
command - placed the whole scheme between
startscheme
andstopscheme
- replaced the
mhchem
-like arrow->
by thechemfig
equivalentarrow->
- replaced the code of the furan-trione derivate. For this I copied the code of the dihydroxyfuranone derivate and adjusted the bonds accordingly
- changed the factor of the
scalebox
to make sure the scheme fits into the textwidth of a standardarticle
class
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
@AnTrinh: But you aparently already usedmol2chemfig
in the example code in your question, right? At least the use ofmcfbelow
seems to hint on that.
– leandriis
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the commandmcfbelow
being undefined. This can be solved by adding themol2chemfig
package to the preamble, as I did in my answer. Aparently, themol2chemfig
package is not available on Overleaf.
– leandriis
8 hours ago
1
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From themol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)
– leandriis
8 hours ago
|
show 4 more comments
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/4.0/"u003ecc by-sa 4.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
);
);
An Trinh is a new contributor. Be nice, and check out our Code of Conduct.
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%2f509764%2fhow-to-write-a-chemical-equation-for-an-reaction-that-is-still-fitting-inside-th%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think the code below works with your original code (with slight modifications).
The relevant changes are:
as suggested by @leandriis
- You can remove
ce
- You can place the "
chemfig
"s withinschemestart
andschemestop
. You can use an arrow defined by the chemfig package
arrow(.mid east--.mid
west)One suggestion made in the
chemfig
package is to separate "plusses" and molecules using an invisible zero-length arrow (arrow0[,0]
). This causes the molecules and plusses to be treated separately and they end up aligning in a nicer way.Quoting the chemfig package: 'Therefore, one must stop the compound right after the first molecule with a arrow0[,0] that will draw an invisible, zero-length arrow. In order to vertically center the whole scheme, one must also set the the anchor of the first compound as "west" ... with the second optional argument of the schemestart command'
- edit: chemfig doc says you need to anchor the first compound to the "west" if you want vertical centering of the scheme. I removed the [west] argument shown below and I don't see a change in vertical alignment, so it does not seem necessary in this case.
- You can also get rid of
mhchem
andmol2chemfig
(this website is awesome, by the way: https://py-chemist.com/mol_2_chemfig/home it has saved me countless hours)
Here is a screenshot:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
setchemfig+ sep left=1em, + sep right=1em, arrow offset=1em % adjusts spacing around + symbols and the arrow
begindocument
begincenter
scalebox0.6
schemestart[][west] % "west" may be removable here
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH arrow0[,0] + arrow0[,0]
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br arrow(.mid east--.mid west) arrow0[,0]
chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O arrow0[,0] + arrow0[,0]
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]NH(-[:144]) arrow0[,0] +
chemfigBr-Br
schemestop
endcenter
enddocument
1
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
add a comment
|
I think the code below works with your original code (with slight modifications).
The relevant changes are:
as suggested by @leandriis
- You can remove
ce
- You can place the "
chemfig
"s withinschemestart
andschemestop
. You can use an arrow defined by the chemfig package
arrow(.mid east--.mid
west)One suggestion made in the
chemfig
package is to separate "plusses" and molecules using an invisible zero-length arrow (arrow0[,0]
). This causes the molecules and plusses to be treated separately and they end up aligning in a nicer way.Quoting the chemfig package: 'Therefore, one must stop the compound right after the first molecule with a arrow0[,0] that will draw an invisible, zero-length arrow. In order to vertically center the whole scheme, one must also set the the anchor of the first compound as "west" ... with the second optional argument of the schemestart command'
- edit: chemfig doc says you need to anchor the first compound to the "west" if you want vertical centering of the scheme. I removed the [west] argument shown below and I don't see a change in vertical alignment, so it does not seem necessary in this case.
- You can also get rid of
mhchem
andmol2chemfig
(this website is awesome, by the way: https://py-chemist.com/mol_2_chemfig/home it has saved me countless hours)
Here is a screenshot:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
setchemfig+ sep left=1em, + sep right=1em, arrow offset=1em % adjusts spacing around + symbols and the arrow
begindocument
begincenter
scalebox0.6
schemestart[][west] % "west" may be removable here
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH arrow0[,0] + arrow0[,0]
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br arrow(.mid east--.mid west) arrow0[,0]
chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O arrow0[,0] + arrow0[,0]
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]NH(-[:144]) arrow0[,0] +
chemfigBr-Br
schemestop
endcenter
enddocument
1
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
add a comment
|
I think the code below works with your original code (with slight modifications).
The relevant changes are:
as suggested by @leandriis
- You can remove
ce
- You can place the "
chemfig
"s withinschemestart
andschemestop
. You can use an arrow defined by the chemfig package
arrow(.mid east--.mid
west)One suggestion made in the
chemfig
package is to separate "plusses" and molecules using an invisible zero-length arrow (arrow0[,0]
). This causes the molecules and plusses to be treated separately and they end up aligning in a nicer way.Quoting the chemfig package: 'Therefore, one must stop the compound right after the first molecule with a arrow0[,0] that will draw an invisible, zero-length arrow. In order to vertically center the whole scheme, one must also set the the anchor of the first compound as "west" ... with the second optional argument of the schemestart command'
- edit: chemfig doc says you need to anchor the first compound to the "west" if you want vertical centering of the scheme. I removed the [west] argument shown below and I don't see a change in vertical alignment, so it does not seem necessary in this case.
- You can also get rid of
mhchem
andmol2chemfig
(this website is awesome, by the way: https://py-chemist.com/mol_2_chemfig/home it has saved me countless hours)
Here is a screenshot:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
setchemfig+ sep left=1em, + sep right=1em, arrow offset=1em % adjusts spacing around + symbols and the arrow
begindocument
begincenter
scalebox0.6
schemestart[][west] % "west" may be removable here
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH arrow0[,0] + arrow0[,0]
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br arrow(.mid east--.mid west) arrow0[,0]
chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O arrow0[,0] + arrow0[,0]
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]NH(-[:144]) arrow0[,0] +
chemfigBr-Br
schemestop
endcenter
enddocument
I think the code below works with your original code (with slight modifications).
The relevant changes are:
as suggested by @leandriis
- You can remove
ce
- You can place the "
chemfig
"s withinschemestart
andschemestop
. You can use an arrow defined by the chemfig package
arrow(.mid east--.mid
west)One suggestion made in the
chemfig
package is to separate "plusses" and molecules using an invisible zero-length arrow (arrow0[,0]
). This causes the molecules and plusses to be treated separately and they end up aligning in a nicer way.Quoting the chemfig package: 'Therefore, one must stop the compound right after the first molecule with a arrow0[,0] that will draw an invisible, zero-length arrow. In order to vertically center the whole scheme, one must also set the the anchor of the first compound as "west" ... with the second optional argument of the schemestart command'
- edit: chemfig doc says you need to anchor the first compound to the "west" if you want vertical centering of the scheme. I removed the [west] argument shown below and I don't see a change in vertical alignment, so it does not seem necessary in this case.
- You can also get rid of
mhchem
andmol2chemfig
(this website is awesome, by the way: https://py-chemist.com/mol_2_chemfig/home it has saved me countless hours)
Here is a screenshot:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
setchemfig+ sep left=1em, + sep right=1em, arrow offset=1em % adjusts spacing around + symbols and the arrow
begindocument
begincenter
scalebox0.6
schemestart[][west] % "west" may be removable here
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH arrow0[,0] + arrow0[,0]
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br arrow(.mid east--.mid west) arrow0[,0]
chemfigO=[:231]-[:285](-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH)<[:213]O-[:141](=[:195]O)-[:69](-[:357])=[:123]O arrow0[,0] + arrow0[,0]
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]NH(-[:144]) arrow0[,0] +
chemfigBr-Br
schemestop
endcenter
enddocument
edited 5 hours ago
answered 5 hours ago


pdanesepdanese
2151 silver badge6 bronze badges
2151 silver badge6 bronze badges
1
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
add a comment
|
1
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
1
1
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
Thanks a lot, @leandriis and @pdanese!
– An Trinh
1 hour ago
add a comment
|
Probably the following is closer to the desired output:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackagemol2chemfig
begindocument
scalebox.47
schemestart
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br
arrow->
chemfigO=[:15]-[:69](=[:123,,,1]O)-[:357](=[:51,,,1]O)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144])
+
chemfigBr-Br
schemestop
enddocument
Wha I changed in comparison to the original:
- removed the
ce
command - placed the whole scheme between
startscheme
andstopscheme
- replaced the
mhchem
-like arrow->
by thechemfig
equivalentarrow->
- replaced the code of the furan-trione derivate. For this I copied the code of the dihydroxyfuranone derivate and adjusted the bonds accordingly
- changed the factor of the
scalebox
to make sure the scheme fits into the textwidth of a standardarticle
class
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
@AnTrinh: But you aparently already usedmol2chemfig
in the example code in your question, right? At least the use ofmcfbelow
seems to hint on that.
– leandriis
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the commandmcfbelow
being undefined. This can be solved by adding themol2chemfig
package to the preamble, as I did in my answer. Aparently, themol2chemfig
package is not available on Overleaf.
– leandriis
8 hours ago
1
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From themol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)
– leandriis
8 hours ago
|
show 4 more comments
Probably the following is closer to the desired output:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackagemol2chemfig
begindocument
scalebox.47
schemestart
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br
arrow->
chemfigO=[:15]-[:69](=[:123,,,1]O)-[:357](=[:51,,,1]O)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144])
+
chemfigBr-Br
schemestop
enddocument
Wha I changed in comparison to the original:
- removed the
ce
command - placed the whole scheme between
startscheme
andstopscheme
- replaced the
mhchem
-like arrow->
by thechemfig
equivalentarrow->
- replaced the code of the furan-trione derivate. For this I copied the code of the dihydroxyfuranone derivate and adjusted the bonds accordingly
- changed the factor of the
scalebox
to make sure the scheme fits into the textwidth of a standardarticle
class
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
@AnTrinh: But you aparently already usedmol2chemfig
in the example code in your question, right? At least the use ofmcfbelow
seems to hint on that.
– leandriis
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the commandmcfbelow
being undefined. This can be solved by adding themol2chemfig
package to the preamble, as I did in my answer. Aparently, themol2chemfig
package is not available on Overleaf.
– leandriis
8 hours ago
1
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From themol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)
– leandriis
8 hours ago
|
show 4 more comments
Probably the following is closer to the desired output:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackagemol2chemfig
begindocument
scalebox.47
schemestart
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br
arrow->
chemfigO=[:15]-[:69](=[:123,,,1]O)-[:357](=[:51,,,1]O)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144])
+
chemfigBr-Br
schemestop
enddocument
Wha I changed in comparison to the original:
- removed the
ce
command - placed the whole scheme between
startscheme
andstopscheme
- replaced the
mhchem
-like arrow->
by thechemfig
equivalentarrow->
- replaced the code of the furan-trione derivate. For this I copied the code of the dihydroxyfuranone derivate and adjusted the bonds accordingly
- changed the factor of the
scalebox
to make sure the scheme fits into the textwidth of a standardarticle
class
Probably the following is closer to the desired output:
documentclassarticle
usepackage[utf8]inputenc
usepackagechemfig
usepackagemol2chemfig
begindocument
scalebox.47
schemestart
chemfigO=[:15]-[:69](-[:123,,,2]HO)=_[:357](-[:51,,,1]OH)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:19]-[:73]-[:1]-[:289](=[:343]O)-[:217]N(-[:145])-[:271]Br
arrow->
chemfigO=[:15]-[:69](=[:123,,,1]O)-[:357](=[:51,,,1]O)-[:285](<[:213]O-[:141])-[:339](<[:39,,,1]OH)-[:279]-[:339,,,1]OH
+
chemfigO=[:18]-[:72]--[:288](=[:342]O)-[:216]mcfbelowNH(-[:144])
+
chemfigBr-Br
schemestop
enddocument
Wha I changed in comparison to the original:
- removed the
ce
command - placed the whole scheme between
startscheme
andstopscheme
- replaced the
mhchem
-like arrow->
by thechemfig
equivalentarrow->
- replaced the code of the furan-trione derivate. For this I copied the code of the dihydroxyfuranone derivate and adjusted the bonds accordingly
- changed the factor of the
scalebox
to make sure the scheme fits into the textwidth of a standardarticle
class
edited 8 hours ago
answered 9 hours ago


leandriisleandriis
20.6k1 gold badge11 silver badges39 bronze badges
20.6k1 gold badge11 silver badges39 bronze badges
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
@AnTrinh: But you aparently already usedmol2chemfig
in the example code in your question, right? At least the use ofmcfbelow
seems to hint on that.
– leandriis
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the commandmcfbelow
being undefined. This can be solved by adding themol2chemfig
package to the preamble, as I did in my answer. Aparently, themol2chemfig
package is not available on Overleaf.
– leandriis
8 hours ago
1
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From themol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)
– leandriis
8 hours ago
|
show 4 more comments
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
@AnTrinh: But you aparently already usedmol2chemfig
in the example code in your question, right? At least the use ofmcfbelow
seems to hint on that.
– leandriis
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the commandmcfbelow
being undefined. This can be solved by adding themol2chemfig
package to the preamble, as I did in my answer. Aparently, themol2chemfig
package is not available on Overleaf.
– leandriis
8 hours ago
1
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From themol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)
– leandriis
8 hours ago
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
I am currently using Overleaf and for some reason, Overleaf tells me that file 'mol2chemfig.sty' not found. I can't produce that image.
– An Trinh
8 hours ago
@AnTrinh: But you aparently already used
mol2chemfig
in the example code in your question, right? At least the use of mcfbelow
seems to hint on that.– leandriis
8 hours ago
@AnTrinh: But you aparently already used
mol2chemfig
in the example code in your question, right? At least the use of mcfbelow
seems to hint on that.– leandriis
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
I go online to mol2chemfig to have it produce the code for each individual molecule. In my original code, I just hope that adding all the codes of the molecules might have produce the reaction.
– An Trinh
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the command
mcfbelow
being undefined. This can be solved by adding the mol2chemfig
package to the preamble, as I did in my answer. Aparently, the mol2chemfig
package is not available on Overleaf.– leandriis
8 hours ago
@AnTrinh: Did you recieve any error message when you compile the example document in your question? If I try, I get an error message about the command
mcfbelow
being undefined. This can be solved by adding the mol2chemfig
package to the preamble, as I did in my answer. Aparently, the mol2chemfig
package is not available on Overleaf.– leandriis
8 hours ago
1
1
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From the
mol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)– leandriis
8 hours ago
"[...] contains the LaTeX macros required to compile the code generated by mol2chemfig. If you plan on using only the web interface, you still need these macros. [...]" (From the
mol2chemfig
homepage chimpsky.uwaterloo.ca/mol2chemfig/download)– leandriis
8 hours ago
|
show 4 more comments
An Trinh is a new contributor. Be nice, and check out our Code of Conduct.
An Trinh is a new contributor. Be nice, and check out our Code of Conduct.
An Trinh is a new contributor. Be nice, and check out our Code of Conduct.
An Trinh is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f509764%2fhow-to-write-a-chemical-equation-for-an-reaction-that-is-still-fitting-inside-th%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
Welcome to TeX.SE!!
– manooooh
9 hours ago
Could you please make your cdoe compilable (see minimal working example (MWE)) by adding the documentclass as well as the relevant packages?
– leandriis
9 hours ago
I will work on that. Please wait for a couple of minutes.
– An Trinh
9 hours ago
I have fixed it. Although it seems that my command is quite long.
– An Trinh
9 hours ago