TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My code is:



{\MakeUppercase{\chaptertitlename}\ \thechapter}







I wanted to produce this:

enter image description here

share|improve this question
up vote 7 down vote accepted

You had a syntax error with a final } bracket missing on the last compound. Apart from that to put a label on an arrow use the general form


To colour atoms, use {\color{red}H}. However, in a number of situations, such as ends of bonds, you need to write {}|{\color{red}H} instead.

Sample output




  \arrow{->[\( h\nu \)][]}


The named colours come from the xcolor package, so as Manuel points out you could use magenta instead of red and cyan instead of blue.

Note: I originally wrote the material over the arrow as h\chemnu, but as cgneider points out that is most certainly not correct.

share|improve this answer
Use magenta and cyan and it's perfect. – Manuel Sep 1 '14 at 7:30
@Manuel Yes, those are closer to the poster's image colours. I'll leave it up to the the poster to adjust that. – Andrew Swann Sep 1 '14 at 7:32
I'm not sure the \chemnu is the right choice here. It's purpose is to provide an upright nu (which it gives when upreek is loaded for example). Here nu is a normal variable (frequency of light) and h is Planck's constant so IMHO it should be $h\nu$ – clemens Sep 1 '14 at 8:13
@cgnieder Thanks, I have added such a comment to the answer. The poster does not load upgreek in the given code. – Andrew Swann Sep 1 '14 at 8:56
@AndrewSwann How \chemnu looks is not fixed (see texwelt.de/wissen/fragen/2105#2107 for an example in German). However, only in the default setting when the user loads no package for upright Greek letters it maps to \nu. Details are explained in chemgreek's and chemmacros' manuals – clemens Sep 1 '14 at 9:05

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.