I'm currently writing my Master Thesis in Organic chemistry. Since this is uncomfortable in word having many graphics and numbering I figured Latex would be best. Yesterday I discovered chemfig and drew some molecules, now I am just trying to design a classical Experimental Page, which should look something like that.enter image description here But now I'm having a few problems about the graphics, tikz, chemnum, etc.:

  • even though I have molecules differing in size, I want all of them to be depicted in the same size (size of bonds, size of atom labels) - so they shouldn't be fit into a frame, but a frame should fit around the proper sized molecule
  • as in the picture, I want Molecule number(counted with chemnum), formula and molecular weight fit centrally under the picture. What is the best way to do that?

I've read through quite a lot of posts, adopted an example then would look like this:



\tikzstyle{compound} = [draw, rounded corners, text centered, node distance=.38\textwidth, minimum height=.4\textheight, minimum width=0.35\textwidth ]%


\begin{frame}{Scaling using \textbackslash scalebox}
            \node[compound] (name) {\scalebox{.3}{\namemole}};%

\end document

Besides that there is an error I don't know I have no idea how to implement the three lines of text. With my present knowledge I would maybe try to define a or three nodes (numb, formula, mol. wt.) and then stack them over each other.

I hope someone could at least give me hints and guidance if the direction I'm going in is right. But if someone has a complete template from a work out of the field of chemistry, that would of course be very helpful as an example.

Thanks in advance!

  • Welcome to TeX SX! Where does the frame environment come from? The only one I know is from beamer. – Bernard May 20 '16 at 19:06
  • @Bernard Well, since there's a \frame{} macro defined in the LaTeX format, \begin{frame} ... \end{frame} will kind of work i.e. it will compile without error, although it probably won't do what's wanted. – cfr May 20 '16 at 23:21
  • Don't load epsfig. You probably don't need epstopdf either. \tikzstyle is deprecated. \end document won't work. – cfr May 20 '16 at 23:23

Do you want something like this?

wrapped compound

  compound/.style = {%
    rounded corners,
    \node [label={[align=center, name=lname]below:numb\\formula\\mol. wt.}] (name) {\namemole};
    \node [compound, fit=(name) (lname)] {};
| improve this answer | |
  • Thank you!! That is what I was looking for! I need to arrange it a little for my needs, but that gives a very good start! – PHI Lipp May 21 '16 at 6:38

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.