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