Imported Upstream version 1.23.0
[platform/upstream/groff.git] / contrib / chem / examples / 122 / chAf_arrow.chem
1 chAf_arrow.chem:
2 .br
3 .EQ
4 delim $$
5 .EN
6 .cstart
7
8 # Example file for 'chem':
9
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>.
14
15 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
16
17 # This file is part of 'chem', which is part of 'groff'.
18
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.
22
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.
27
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/>.
30
31 # The GPL2 license text is available in the internet at
32 # <http://www.gnu.org/licenses/gpl-2.0.html>.
33
34 ########################################################################
35
36     bond length .1 ; BP
37     bond up length .5
38     bond right
39     bond down length .5 from BP
40     bond right
41     bond right from BP ; C
42     double bond up ; O
43     bond right from C
44     benzene pointing right
45     bond right ; C
46     double bond up from C ; O
47     bond right from C ; O
48     bond right ; CH2
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
53     bond right ; O
54     bond right length .1 ; BP
55     bond up length .5 from BP
56     bond left
57     bond right length .1 from BP
58     bond down length .5 from BP ; BP
59     bond left
60     "$n$" with .w at BP.se
61
62 # Local Variables:
63 # mode: Nroff
64 # End:
65 .cend
66 .EQ
67 delim off
68 .EN