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