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