File: chemfig.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (155 lines) | stat: -rw-r--r-- 3,300 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# chemfig package
# Matthew Bertucci 10/14/2021 for v1.6b

#include:simplekv
#include:tikz

\chemfig{code%definition}
\chemfig[options%keyvals]{code%definition}
\setchemfig{options%keyvals}

#keyvals:\chemfig,\setchemfig
chemfig style=
atom style=
bond join#true,false
fixed length#true,false
cram rectangle#true,false
cram width=##L
cram dash width=##L
cram dash sep=##L
atom sep=##L
bond offset=##L
double bond sep=##L
angle increment=%<degrees%>
node style=
bond style=
cycle radius coeff=
stack sep=##L
show cntcycle#true,false
autoreset cntcycle#true,false
compound style=
compound sep=
arrow offset=##L
arrow angle=%<degrees%>
arrow coeff=
arrow style=
arrow double sep=##L
arrow double coeff=
arrow double harpoon#true,false
arrow label sep=##L
arrow head=
+ sep left=##L
+ sep right=##L
+ vshift=##L
#endkeyvals

#keyvals:\setchemfig
debug#true,false
scheme debug#true,false
#endkeyvals

\resetchemfig

\printatom{code%formula}#*

\hflipnext
\vflipnext

\definesubmol{name%cmd}{code%definition}#d
\definesubmol{name%cmd}[code1%definition]{code2%definition}#d
\redefinesubmol{name%cmd}{code%definition}#d
\redefinesubmol{name%cmd}[code1%definition]{code2%definition}#d

\chemskipalign

\charge{[%<parameters%>]%<position%>[%<TikZ code%>]}{%<atom%>}
\Charge{[%<parameters%>]%<position%>[%<TikZ code%>]}{%<atom%>}

\setcharge{options%keyvals}

#keyvals:\setcharge
debug#true,false
macro atom=%<cmd%>
circle#true,false
macro charge=%<cmd%>
extra sep=##L
overlay#true,false
shortcuts#true,false
lewisautorot#true,false
.radius=##L
:sep=##L
.style=
"length=##L
"width=##L
"style=
|style=
#endkeyvals

\resetcharge
\chargeangle

\chemmove %<TikZ code%>
\chemmove[%<TikZ options%>] %<TikZ code%>

\chemabove{txt1%formula}{txt2%formula}
\chemabove[dim%l]{txt1%formula}{txt2%formula}
\chembelow{txt1%formula}{txt2%formula}
\chembelow[dim%l]{txt1%formula}{txt2%formula}
\Chemabove{txt1%formula}{txt2%formula}
\Chemabove[dim%l]{txt1%formula}{txt2%formula}
\Chembelow{txt1%formula}{txt2%formula}
\Chembelow[dim%l]{txt1%formula}{txt2%formula}

\chemname{molecule}{name}
\chemname[dim%l]{molecule}{name}
\chemname*{name}#*
\chemnameinit{arg}

\schemestart
\schemestart[angle,coeff,style]
\schemestart[angle,coeff,style][position]
\schemestop

\arrow
\arrow[angle,coeff,style]
\arrow{type}
\arrow{type}[angle,coeff,style]
\arrow(%<n1.a1%>[%<s1%>]--%<n2.a2%>[%<s2%>]){%<type%>}[%<angle,coeff,style%>]

\setcompoundstyle{TikZ code}

\+#S
\|#S

\subscheme{code}

\definearrow{number}{name}{code%definition}

\chemleft{delim%formula}
\chemright{delim%formula}
\chemup{delim%formula}
\chemdown{delim%formula}

\polymerdelim{node1}{node2}
\polymerdelim[options%keyvals]{node1}{node2}

#keyvals:\polymerdelim
delimiters=
height=##L
depth=##L
h align#true,false
auto rotate#true,false
rotate=%<degrees%>
open xshift=##L
close x shift=##L
indice=%<integer%>
#endkeyvals

\merge{%<dir%>}(%<n1.a1%>)%<(n2.a2)...(ni.ai)%>--(%<n.a[s]%>)
\merge{%<dir%>}(%<n1.a1%>)%<(n2.a2)...(ni.ai)%>--(%<n.a[s]%>)[%<c1,c2,c,style%>]
\merge{%<dir%>}[%<labelup%>][%<labeldown%>](%<n1.a1%>)%<(n2.a2)...(ni.ai)%>--(%<n.a[s]%>)[%<c1,c2,c,style%>]

\CFver#S
\CFname#S
\CFver#S
\CFdate#S