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