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