]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Formula-numbering.lyx
EmbeddedObjects.lyx: describe the new multirow feature
[lyx.git] / lib / doc / ja / Formula-numbering.lyx
1 #LyX 1.6.5 created this file. For more info see http://www.lyx.org/
2 \lyxformat 345
3 \begin_document
4 \begin_header
5 \textclass scrartcl
6 \begin_preamble
7 \usepackage{ifpdf}
8
9 \ifpdf
10
11 \usepackage[colorlinks=true,
12  pdftitle=Formelnummerierung, pdfpagemode=none,
13  pdfpagelayout=OneColumn, pdfstartview=XYZ,
14  pdfauthor={Uwe Stohr},
15  pdfsubject={LaTeX/LyX numbering example},
16  pdfkeywords={LaTeX, numbering, LyX}]{hyperref}
17
18 \else % if DVI
19
20 \usepackage[colorlinks=true, hypertex]{hyperref}
21
22 \fi
23
24 % define Roman counter
25 \newcounter{rom}
26 \renewcommand{\therom}{\roman{rom}}
27
28 % remember the original counter
29 \newcommand{\c@org@eq}{}
30 \let\c@org@eq\c@equation
31 \newcommand{\org@theeq}{}
32 \let\org@theeq\theequation
33
34 % \setrom activates the Roman counter
35 \newcommand{\setrom}{
36   \let\c@equation\c@rom
37   \let\theequation\therom}
38
39 % \setarab activates the original Arabic counter
40 \newcommand{\setarab}{
41   \let\c@equation\c@org@eq
42   \let\theequation\org@theeq}
43 \end_preamble
44 \options fleqn
45 \use_default_options false
46 \language japanese
47 \inputencoding auto
48 \font_roman default
49 \font_sans default
50 \font_typewriter default
51 \font_default_family default
52 \font_sc false
53 \font_osf false
54 \font_sf_scale 100
55 \font_tt_scale 100
56
57 \graphics default
58 \paperfontsize 12
59 \spacing single
60 \use_hyperref false
61 \papersize default
62 \use_geometry false
63 \use_amsmath 2
64 \use_esint 0
65 \cite_engine basic
66 \use_bibtopic false
67 \paperorientation portrait
68 \secnumdepth 4
69 \tocdepth 3
70 \paragraph_separation skip
71 \defskip medskip
72 \quotes_language english
73 \papercolumns 1
74 \papersides 1
75 \paperpagestyle empty
76 \tracking_changes false
77 \output_changes false
78 \author "" 
79 \author "" 
80 \end_header
81
82 \begin_body
83
84 \begin_layout Standard
85 この文書は、二つの数式カテゴリの使い方を示すものです。一つのカテゴリにはアラビア数字、もう一つはローマ数字で番号が振られています。
86 \end_layout
87
88 \begin_layout Standard
89 \begin_inset Formula \begin{equation}
90 A=B\label{eq:B}\end{equation}
91
92 \end_inset
93
94
95 \begin_inset Formula \begin{equation}
96 A=C\label{eq:C}\end{equation}
97
98 \end_inset
99
100
101 \begin_inset ERT
102 status collapsed
103
104 \begin_layout Plain Layout
105
106
107 \backslash
108 setrom
109 \end_layout
110
111 \end_inset
112
113
114 \begin_inset Formula \begin{equation}
115 A=D\label{eq:D}\end{equation}
116
117 \end_inset
118
119
120 \begin_inset Formula \begin{equation}
121 A=E\label{eq:E}\end{equation}
122
123 \end_inset
124
125
126 \begin_inset ERT
127 status collapsed
128
129 \begin_layout Plain Layout
130
131
132 \backslash
133 setarab
134 \end_layout
135
136 \end_inset
137
138
139 \begin_inset Formula \begin{equation}
140 A=F\label{eq:F}\end{equation}
141
142 \end_inset
143
144
145 \begin_inset Formula \begin{equation}
146 A=G\label{eq:G}\end{equation}
147
148 \end_inset
149
150
151 \begin_inset ERT
152 status collapsed
153
154 \begin_layout Plain Layout
155
156
157 \backslash
158 setrom
159 \end_layout
160
161 \end_inset
162
163
164 \begin_inset Formula \begin{equation}
165 A=H\label{eq:H}\end{equation}
166
167 \end_inset
168
169
170 \begin_inset Formula \begin{equation}
171 A=I\label{eq:I}\end{equation}
172
173 \end_inset
174
175
176 \end_layout
177
178 \begin_layout Standard
179 相互参照:
180 \begin_inset CommandInset ref
181 LatexCommand eqref
182 reference "eq:B"
183
184 \end_inset
185
186  , 
187 \begin_inset CommandInset ref
188 LatexCommand eqref
189 reference "eq:C"
190
191 \end_inset
192
193  , 
194 \begin_inset CommandInset ref
195 LatexCommand eqref
196 reference "eq:F"
197
198 \end_inset
199
200  , 
201 \begin_inset CommandInset ref
202 LatexCommand eqref
203 reference "eq:G"
204
205 \end_inset
206
207  , 
208 \begin_inset CommandInset ref
209 LatexCommand eqref
210 reference "eq:D"
211
212 \end_inset
213
214  , 
215 \begin_inset CommandInset ref
216 LatexCommand eqref
217 reference "eq:E"
218
219 \end_inset
220
221  , 
222 \begin_inset CommandInset ref
223 LatexCommand eqref
224 reference "eq:H"
225
226 \end_inset
227
228  , 
229 \begin_inset CommandInset ref
230 LatexCommand eqref
231 reference "eq:I"
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Standard
239
240 \lyxline
241
242 \begin_inset VSpace medskip
243 \end_inset
244
245 この例を作成するには、ローマ数字の数式のカウンタをまず定義しなくてはなりません。そのためには、LaTeXプリアンブルに以下のように入力します。
246 \end_layout
247
248 \begin_layout Standard
249
250 \series bold
251
252 \backslash
253 newcounter{rom}
254 \begin_inset Newline newline
255 \end_inset
256
257
258 \backslash
259 renewcommand{
260 \backslash
261 therom}{
262 \backslash
263 roman{rom}}
264 \end_layout
265
266 \begin_layout Standard
267 \begin_inset Newpage newpage
268 \end_inset
269
270 アラビア数字カウンタ
271 \series bold
272 equation
273 \series default
274 の値を保存するには、プリアンブルに以下のように入力します。
275 \end_layout
276
277 \begin_layout Standard
278
279 \series bold
280
281 \backslash
282 newcommand{
283 \backslash
284 c@org@eq}{}
285 \begin_inset Newline newline
286 \end_inset
287
288
289 \backslash
290 let
291 \backslash
292 c@org@eq
293 \backslash
294 c@equation
295 \begin_inset Newline newline
296 \end_inset
297
298
299 \backslash
300 newcommand{
301 \backslash
302 org@theeq}{}
303 \begin_inset Newline newline
304 \end_inset
305
306
307 \backslash
308 let
309 \backslash
310 org@theeq
311 \backslash
312 theequation
313 \end_layout
314
315 \begin_layout Standard
316 文書中で二つの連番スキームの間を切り替えるには、ローマ数字用に
317 \end_layout
318
319 \begin_layout Standard
320
321 \series bold
322
323 \backslash
324 newcommand{
325 \backslash
326 setrom}{
327 \backslash
328 let
329 \backslash
330 c@equation
331 \backslash
332 c@rom
333 \backslash
334 let
335 \backslash
336 theequation
337 \backslash
338 therom}
339 \end_layout
340
341 \begin_layout Standard
342 というコマンドをプリアンブルで定義し、アラビア数字用には
343 \end_layout
344
345 \begin_layout Standard
346
347 \series bold
348
349 \backslash
350 newcommand{
351 \backslash
352 setarab}{
353 \backslash
354 let
355 \backslash
356 c@equation
357 \backslash
358 c@org@eq
359 \backslash
360 let
361 \backslash
362 theequation
363 \backslash
364 org@theeq}
365 \end_layout
366
367 \begin_layout Standard
368 と定義します。
369 \end_layout
370
371 \begin_layout Standard
372 各数式は、既定ではアラビア数字で連番が振られます。ローマ数字に切り替えるにはTeXコードで
373 \series bold
374
375 \backslash
376 setrom
377 \series default
378 コマンドを挿入します。
379 \series bold
380
381 \backslash
382 setarab
383 \series default
384 コマンドで連番はアラビア数字に切り替わります。
385 \end_layout
386
387 \end_body
388 \end_document