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?

  • 1
    Why not asking @cgnieder? He can often be found in the chat room? – percusse Aug 15 '14 at 13:41
  • 1
    @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

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:
% https://tex.stackexchange.com/a/49961/
    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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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