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