Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to reproduce the chemmacros logo style, as seen in chemmacros documentation

I checked the source .tex file, but the logo is loaded from another pdf "chemmacros-logo.pdf" that is nowhere to be found into TeX Live.

Since I'm assuming the logo is drawn with TikZ or something, is its code available somewhere?

share|improve this question
Why not asking @cgnieder? He can often be found in the chat room? –  percusse Aug 15 '14 at 13:41
@percusse Yes, I could, but maybe this may also be of general interest? If not I'll ask him in chat. –  RbW Aug 15 '14 at 13:42
Can you be a bit more precise on what you define as logo style? All i see is the name written in bold and a dark red. –  Johannes_B Aug 15 '14 at 13:44
@Johannes_B I mean the style of the formula below the email. That formula is the "chemmacros-logo" according to the .tex file. –  RbW Aug 15 '14 at 13:46
Just noted it myself, good question ;-) –  Johannes_B Aug 15 '14 at 13:47

1 Answer 1

up vote 19 down vote accepted

enter image description here

Here's the code I used to produce the “logo”. The font is Augie, the redox arrows are drawn with chemmacros' own macros, the lines are decorated with @percusse's pencilline decoration (compile two times with xelatex):

% arara: xelatex
% arara: xelatex

% credits:
    auto corner on length=1mm
      {% From
      {%  Control 1
     2 "\OX{o1,\ox{0,Na}}" + "\OX{r1,\ox{0,Cl}}" {}2
     2 "\OX{o2,\ox{+1,Na}}" {}+ + 2 "\OX{r2,\ox{-1,Cl}}" {}-
     \small\ch[font-spec={[Color=red]Augie},math-space=.3em]{$-$ 2 e-}}
     \small\ch[font-spec={[Color=blue]Augie},math-space=.3em]{$+$ 2 e-}}

A possible improvement: adding

\setchemformula{ arrow-style = pencil }

will also draw the reaction arrow with the pencilline decoration. I might add this to the next version.

enter image description here

share|improve this answer
OK, that does it. I gotta polish this thing. It's poisoning even very sound packages :P –  percusse Aug 15 '14 at 20:09
@percusse: sir I read penicillin instead of pencilline. :P –  Paulo Cereda Aug 15 '14 at 21:59
@Paulo me too :) not completely unfitting for a chemical picture... –  clemens Aug 16 '14 at 5:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.