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