8 # Example file for `chem':
10 # This originates from Computing Science Technical Report No. 122
11 # CHEM - A Program for Typesetting Chemical Diagrams: User Manual
12 # by Jon L. Bentley, Lynn W. Jelinski, Brian W. Kernighan
13 # <http://cm.bell-labs.com/cm/cs/cstr/122.ps.gz>.
15 # Copyright (C) 2006, 2009 Free Software Foundation, Inc.
17 # Last update: 5 Jan 2009
19 # This file is part of `chem', which is part of `groff'.
21 # `groff' is free software; you can redistribute it and/or modify it
22 # under the terms of the GNU General Public License as published by
23 # the Free Software Foundation, either version 3 of the License, or
24 # (at your option) any later version.
26 # `groff' is distributed in the hope that it will be useful, but
27 # WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 # General Public License for more details.
31 # You should have received a copy of the GNU General Public License
32 # along with this program. If not, see <http://www.gnu.org/licenses/>.
34 ########################################################################
39 bond down length .5 from BP
41 bond right from BP ; C
44 benzene pointing right
46 double bond up from C ; O
49 # this is the statement to make the arrow
50 line <- from CH2.s down
51 move down .1 ; "0.085"
52 CH2CH2CH2 right of CH2
54 bond right length .1 ; BP
55 bond up length .5 from BP
57 bond right length .1 from BP
58 bond down length .5 from BP ; BP
60 "$n$" with .w at BP.se
62 ########################################################################