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