Imported Upstream version 1.22.4
[platform/upstream/groff.git] / contrib / chem / examples / 122 / chAh_brackets.chem
1 chAh_brackets.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-2018 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 [
37     bond right ; CH2
38     bond 120 ; (CH2)
39     "$nothing sub n$"
40     bond 60 ; .CH2
41 ]
42 # now put the arrow in
43     move right .3
44     arrow .5
45     move right .3
46 # begin second structure
47 [
48     bond right ; CH.
49     bond 120 ; (CH2)
50     "$nothing sub n$"
51     bond 60 ; CH3
52 ]
53
54 ########################################################################
55 ### Emacs settings
56 # Local Variables:
57 # mode: Nroff
58 # End:
59 .cend
60 .EQ
61 delim $$
62 .EN