LaTeX forum ⇒ Math & ScienceAlternative to fleqn for mhchem and chemmacros

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Alternative to fleqn for mhchem and chemmacros

Postby Sonntag » Sun May 24, 2015 7:40 pm

Hi!

I would like to indent the reaction equation like in following example. With a lot of mistake it worked with mhchem. How can it be fixed with chemmacros?

Sonntag
  1. \documentclass{article}
  2.  
  3. \usepackage{amsmath}
  4. \usepackage{fleqn}
  5. \setlength{\mathindent}{1cm}
  6. \usepackage[option1 = <value1>, option2 = <value2>]{chemmacros}
  7.  
  8. \begin{document}
  9. \reaction{H2 + O* <=> OH* + H*}
  10. \end{document}

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun May 24, 2015 9:04 pm

To be honest, i don't even see the problem.
  1. \documentclass[fleqn]{article}
  2. \usepackage{chemmacros}
  3. \usepackage{showframe}
  4. \setlength{\mathindent}{.2cm}
  5. \begin{document}
  6. \reaction{H2 + O* <=> OH* + H*}
  7. \end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Sun May 24, 2015 9:49 pm

If I compile the example from above it look like this with 20 mistakes and if I let me show the first one I get directed to fleqn.clo.

file.php.jpeg
file.php.jpeg (12.53 KiB) Viewed 3965 times
Last edited by cgnieder on Sun Jul 05, 2015 12:37 pm, edited 2 times in total.
Reason: scaled image down

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun May 24, 2015 9:52 pm

Update your packages.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Sun May 24, 2015 10:14 pm

Today I've updated all packages. Have checked it right now on MikTex. No new updates couldn't found. And restarted the computer, but nothing has changed. What else could I do?

User avatar
Stefan Kottwitz
Site Admin
Posts: 9416
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun May 24, 2015 10:49 pm

Perhaps post your .log file here, as attachment to a post.

Stefan
Site admin

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Sun May 24, 2015 11:51 pm

Here is the log file:
Attachments
LaTeX2.log
(74.5 KiB) Downloaded 163 times

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue May 26, 2015 2:45 pm

Hi, please update the formats as seen in MikTeX Maintenance. That should help.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Sun May 31, 2015 12:38 pm

Thank you, for the suggestion.
But it hasn't change something. I still have the same number of mistakes.

Sonntag

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun May 31, 2015 12:56 pm

What exactly did you do? Can you show us the log-file of the latest run after the update? Please give it a proper file name.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 1 guest