]> git.lyx.org Git - wiki-uploads.git/blob - Tips/subfiguresAndCrossReferences/example.lyx
Import uploads from wiki
[wiki-uploads.git] / Tips / subfiguresAndCrossReferences / example.lyx
1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 221
3 \textclass article
4 \begin_preamble
5 \usepackage{subfigure}
6 \end_preamble
7 \language english
8 \inputencoding auto
9 \fontscheme default
10 \graphics default
11 \paperfontsize default
12 \spacing single 
13 \papersize Default
14 \paperpackage a4
15 \use_geometry 0
16 \use_amsmath 0
17 \use_natbib 0
18 \use_numerical_citations 0
19 \paperorientation portrait
20 \secnumdepth 3
21 \tocdepth 3
22 \paragraph_separation indent
23 \defskip medskip
24 \quotes_language english
25 \quotes_times 2
26 \papercolumns 1
27 \papersides 1
28 \paperpagestyle default
29
30 \layout Title
31
32 Subfigures and cross-references
33 \layout Section
34
35 Section one
36 \layout Standard
37
38 This example illustrates how you can create cross references to subfigures
39  using a little bit of ERT and the normal mechanisms in LyX.
40  We can now refer to subfigure\SpecialChar ~
41
42 \begin_inset LatexCommand \ref{fig:Second-subfigure}
43
44 \end_inset 
45
46  and subfigure\SpecialChar ~
47
48 \begin_inset LatexCommand \ref{fig:First-subfigure}
49
50 \end_inset 
51
52  as usual.
53 \begin_inset Float figure
54 placement H
55 wide false
56 collapsed false
57
58 \layout Standard
59
60
61 \hfill 
62
63 \begin_inset ERT
64 status Collapsed
65
66 \layout Standard
67
68 \backslash 
69 centering
70 \end_inset 
71
72
73 \begin_inset ERT
74 status Inlined
75
76 \layout Standard
77
78 \backslash 
79 subfigure[subfiguretitle]{
80 \end_inset 
81
82
83 \begin_inset LatexCommand \label{fig:First-subfigure}
84
85 \end_inset 
86
87
88 \begin_inset Graphics
89         filename platypus.eps
90         width 4cm
91
92 \end_inset 
93
94
95 \begin_inset ERT
96 status Collapsed
97
98 \layout Standard
99 }
100 \end_inset 
101
102
103 \hfill 
104
105 \begin_inset ERT
106 status Collapsed
107
108 \layout Standard
109
110 \backslash 
111 subfigure[nextfiguretitle]{
112 \end_inset 
113
114
115 \begin_inset LatexCommand \label{fig:Second-subfigure}
116
117 \end_inset 
118
119
120 \begin_inset Graphics
121         filename platypus.eps
122         width 4cm
123
124 \end_inset 
125
126
127 \begin_inset ERT
128 status Collapsed
129
130 \layout Standard
131 }
132 \end_inset 
133
134
135 \hfill 
136
137 \layout Caption
138
139 This is just the figure text
140 \end_inset 
141
142
143 \layout Standard
144
145 The example below illustrates how to use subfigures inside minipages --
146  this enables control over the width that each subfigure and its caption
147  should occupy.
148 \layout Standard
149
150
151 \lang american
152
153 \begin_inset Float figure
154 placement H
155 wide false
156 collapsed false
157
158 \layout Standard
159
160
161 \lang american
162
163 \hfill 
164
165 \begin_inset ERT
166 status Collapsed
167
168 \layout Standard
169
170 \backslash 
171 centering
172 \end_inset 
173
174
175 \begin_inset Minipage
176 position 2
177 inner_position 0
178 height "0pt"
179 width "33col%"
180 collapsed false
181
182 \layout Standard
183
184
185 \lang american
186
187 \begin_inset ERT
188 status Open
189
190 \layout Standard
191
192 \backslash 
193 subfigure[Subfig1]{
194 \end_inset 
195
196
197 \begin_inset LatexCommand \label{fig:AnotherFig}
198
199 \end_inset 
200
201
202 \lang english
203
204 \begin_inset Graphics
205         filename platypus.eps
206         width 4cm
207
208 \end_inset 
209
210
211 \lang american
212
213 \begin_inset ERT
214 status Collapsed
215
216 \layout Standard
217 }
218 \end_inset 
219
220
221 \end_inset 
222
223
224 \hfill 
225
226 \begin_inset Minipage
227 position 2
228 inner_position 0
229 height "0pt"
230 width "33col%"
231 collapsed false
232
233 \layout Standard
234
235
236 \lang american
237
238 \begin_inset ERT
239 status Open
240
241 \layout Standard
242
243 \backslash 
244 subfigure[Subfig2]{
245 \end_inset 
246
247
248 \lang english
249
250 \begin_inset Graphics
251         filename platypus.eps
252         width 4cm
253
254 \end_inset 
255
256
257 \lang american
258
259 \begin_inset LatexCommand \label{fig:AnotherFig2}
260
261 \end_inset 
262
263
264 \begin_inset ERT
265 status Collapsed
266
267 \layout Standard
268 }
269 \end_inset 
270
271
272 \end_inset 
273
274
275 \hfill 
276
277 \layout Caption
278
279
280 \lang american
281 Caption for Figure
282 \end_inset 
283
284
285 \the_end