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-2020 Free Software Foundation, Inc.
17 # This file is part of 'chem', which is part of 'groff'.
19 # 'groff' is free software; you can redistribute it and/or modify it
20 # under the terms of the GNU General Public License (GPL) version 2 as
21 # published by the Free Software Foundation.
23 # 'groff' is distributed in the hope that it will be useful, but
24 # WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 # General Public License for more details.
28 # You should have received a copy of the GNU General Public License
29 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31 # The GPL2 license text is available in the internet at
32 # <http://www.gnu.org/licenses/gpl-2.0.html>.
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