]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Format incremented to 574: Ruby inset, fixes for Japanese.
[features.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 574
3 \begin_document
4 \begin_header
5 \save_transient_properties false
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26 \end_preamble
27 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,bookmarkpackage=false
28 \use_default_options false
29 \begin_modules
30 logicalmkup
31 ruby
32 \end_modules
33 \maintain_unincluded_children false
34 \begin_local_layout
35 Format 57
36 InsetLayout Flex:MenuItem
37 LyxType               charstyle
38 LabelString           menu
39 LatexType             command
40 LatexName             menuitem
41 Font
42 Family              Sans
43 EndFont
44 Preamble
45 \newcommand*{\menuitem}[1]{{\sffamily #1}}
46 EndPreamble
47 ResetsFont true
48 End
49 # In case we need to do with sans...
50 #InsetLayout CharStyle:Code
51 #Font
52 #Family              Sans
53 #EndFont
54 #Preamble
55 #\renewcommand{\code}[1]{{\sffamily #1}}
56 #EndPreamble
57 #End
58 \end_local_layout
59 \language japanese
60 \language_package default
61 \inputencoding utf8
62 \fontencoding auto
63 \font_roman "lmodern" "IPAexMincho"
64 \font_sans "default" "IPAexGothic"
65 \font_typewriter "default" "default"
66 \font_math "auto" "auto"
67 \font_default_family default
68 \use_non_tex_fonts false
69 \font_sc false
70 \font_osf false
71 \font_sf_scale 100 100
72 \font_tt_scale 100 100
73 \use_microtype false
74 \use_dash_ligatures false
75 \graphics default
76 \default_output_format default
77 \output_sync 0
78 \bibtex_command default
79 \index_command default
80 \paperfontsize 12
81 \spacing single
82 \use_hyperref true
83 \pdf_title "LyX Configuration Manual"
84 \pdf_author "LyX Team"
85 \pdf_subject "LyX-Documentation Customization"
86 \pdf_keywords "LyX, documentation, customization"
87 \pdf_bookmarks false
88 \pdf_bookmarksnumbered true
89 \pdf_bookmarksopen true
90 \pdf_bookmarksopenlevel 1
91 \pdf_breaklinks false
92 \pdf_pdfborder false
93 \pdf_colorlinks true
94 \pdf_backref false
95 \pdf_pdfusetitle false
96 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
97 \papersize default
98 \use_geometry false
99 \use_package amsmath 1
100 \use_package amssymb 1
101 \use_package cancel 1
102 \use_package esint 1
103 \use_package mathdots 1
104 \use_package mathtools 1
105 \use_package mhchem 1
106 \use_package stackrel 1
107 \use_package stmaryrd 1
108 \use_package undertilde 1
109 \cite_engine basic
110 \cite_engine_type default
111 \biblio_style plain
112 \use_bibtopic false
113 \use_indices false
114 \paperorientation portrait
115 \suppress_date false
116 \justification false
117 \use_refstyle 0
118 \use_minted 0
119 \notefontcolor #0000ff
120 \branch OutDated
121 \selected 0
122 \filename_suffix 0
123 \color #f5fae7
124 \end_branch
125 \index 索引
126 \shortcut idx
127 \color #008000
128 \end_index
129 \secnumdepth 3
130 \tocdepth 3
131 \paragraph_separation indent
132 \paragraph_indentation default
133 \is_math_indent 1
134 \math_indentation default
135 \math_numbering_side default
136 \quotes_style english
137 \dynamic_quotes 0
138 \papercolumns 1
139 \papersides 2
140 \paperpagestyle headings
141 \tablestyle default
142 \tracking_changes false
143 \output_changes false
144 \html_math_output 0
145 \html_css_as_file 0
146 \html_be_strict true
147 \end_header
148
149 \begin_body
150
151 \begin_layout Title
152 \SpecialChar LyX
153 の高度設定
154 \begin_inset Newline newline
155 \end_inset
156
157 熟練ユーザのための各機能
158 \end_layout
159
160 \begin_layout Author
161 \SpecialChar LyX
162 開発チーム
163 \begin_inset Foot
164 status collapsed
165
166 \begin_layout Plain Layout
167 \noindent
168 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
169 文書化メーリングリスト
170 \begin_inset CommandInset href
171 LatexCommand href
172 target "lyx-docs@lists.lyx.org"
173 type "mailto:"
174 literal "false"
175
176 \end_inset
177
178 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
179 ast.net>をccにして送ってください.
180 \end_layout
181
182 \end_inset
183
184
185 \begin_inset Newline newline
186 \end_inset
187
188
189 \begin_inset Newline newline
190 \end_inset
191
192 第2.3.x版
193 \end_layout
194
195 \begin_layout Standard
196 \begin_inset CommandInset toc
197 LatexCommand tableofcontents
198
199 \end_inset
200
201
202 \begin_inset Note Note
203 status open
204
205 \begin_layout Plain Layout
206 本文書を修正する際には,変更追跡機能を使用してください.これによって,
207 \end_layout
208
209 \begin_layout Plain Layout
210 \SpecialChar LyX
211 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
212 \end_layout
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Chapter
220 はじめに
221 \end_layout
222
223 \begin_layout Standard
224 この取扱説明書は,\SpecialChar LyX
225 に備わっている高度設定機能を取り扱います.ここでは,
226 \begin_inset Flex Ruby
227 status collapsed
228
229 \begin_layout Plain Layout
230 捷径
231 \begin_inset Argument post:1
232 status collapsed
233
234 \begin_layout Plain Layout
235 ショートカット
236 \end_layout
237
238 \end_inset
239
240
241 \end_layout
242
243 \end_inset
244
245 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
246 サーバ経由での\SpecialChar LyX
247 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
248 クラスや\SpecialChar LyX
249 レイアウトの導入などの題材について論じます.おそらくは変更
250 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
251 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
252 \end_layout
253
254 \begin_layout Standard
255 \begin_inset Branch OutDated
256 inverted 0
257 status collapsed
258
259 \begin_layout Standard
260 Information from previous versions of this document that now seems to be
261  outdated is contained in the OutDated branch of this document.
262  By default, this information will not appear in the \SpecialChar LaTeX
263  output.
264 \end_layout
265
266 \end_inset
267
268
269 \end_layout
270
271 \begin_layout Chapter
272 \SpecialChar LyX
273 設定ファイル
274 \end_layout
275
276 \begin_layout Standard
277 本章の目的は,\SpecialChar LyX
278 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
279 \begin_inset Flex MenuItem
280 status collapsed
281
282 \begin_layout Plain Layout
283 ヘルプ\SpecialChar menuseparator
284 LyXについて
285 \end_layout
286
287 \end_inset
288
289 を使って,\SpecialChar LyX
290 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
291 がシステム全体の設定ファイルを置いておくところです.一
292 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
293 \begin_inset Flex Code
294 status collapsed
295
296 \begin_layout Plain Layout
297 LyXDir
298 \end_layout
299
300 \end_inset
301
302 と呼び,後者を
303 \begin_inset Flex MenuItem
304 status collapsed
305
306 \begin_layout Plain Layout
307 UserDir
308 \end_layout
309
310 \end_inset
311
312 と呼ぶことにします.
313 \end_layout
314
315 \begin_layout Section
316 \begin_inset Flex Code
317 status collapsed
318
319 \begin_layout Plain Layout
320 LyXDir
321 \end_layout
322
323 \end_inset
324
325 にはなにがあるの?
326 \end_layout
327
328 \begin_layout Standard
329 \begin_inset Flex Code
330 status collapsed
331
332 \begin_layout Plain Layout
333 LyXDir
334 \end_layout
335
336 \end_inset
337
338 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
339 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
340 内の
341 \begin_inset Flex MenuItem
342 status collapsed
343
344 \begin_layout Plain Layout
345 ツール\SpecialChar menuseparator
346 設定
347 \end_layout
348
349 \end_inset
350
351 ダイアログから変更することができます.\SpecialChar LyX
352 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
353 の多くの内部動作は,
354 \begin_inset Flex Code
355 status collapsed
356
357 \begin_layout Plain Layout
358 LyXDir
359 \end_layout
360
361 \end_inset
362
363 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
364 \end_layout
365
366 \begin_layout Subsection
367 自動的に生成されるファイル
368 \end_layout
369
370 \begin_layout Standard
371 \begin_inset Flex MenuItem
372 status collapsed
373
374 \begin_layout Plain Layout
375 UserDir
376 \end_layout
377
378 \end_inset
379
380 にある各ファイルは,\SpecialChar LyX
381 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
382 うので,一般的には修正しないことが望まれます.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  このファイルには,様々な既定コマンドが置かれています.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  このファイルには,\SpecialChar LyX
411 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
412 プログラム自体には使用されていませんが,抽出された情報その他は,
413 \begin_inset Flex MenuItem
414 status collapsed
415
416 \begin_layout Plain Layout
417 ヘルプ\SpecialChar menuseparator
418 LaTeXの設定
419 \end_layout
420
421 \end_inset
422
423 で見ることができます.
424 \end_layout
425
426 \begin_layout Labeling
427 \labelwidthstring 00.00.0000
428 \begin_inset Flex Code
429 status collapsed
430
431 \begin_layout Plain Layout
432 textclass.lst
433 \end_layout
434
435 \end_inset
436
437  ユーザの
438 \begin_inset Flex Code
439 status collapsed
440
441 \begin_layout Plain Layout
442 Plain L
443 \end_layout
444
445 \end_inset
446
447 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
448 文書クラスおよびその説明の一覧です.
449 \end_layout
450
451 \begin_layout Labeling
452 \labelwidthstring 00.00.0000
453 \begin_inset Flex Code
454 status collapsed
455
456 \begin_layout Plain Layout
457 lyxmodules.lst
458 \end_layout
459
460 \end_inset
461
462  ユーザの
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 layout/
468 \end_layout
469
470 \end_inset
471
472 ディレクトリで検出されたレイアウトモジュールの一覧です.
473 \end_layout
474
475 \begin_layout Labeling
476 \labelwidthstring 00.00.0000
477 \begin_inset Flex Code
478 status collapsed
479
480 \begin_layout Plain Layout
481 *files.lst
482 \end_layout
483
484 \end_inset
485
486  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
487 関連ファイルの一覧です.
488 \end_layout
489
490 \begin_layout Labeling
491 \labelwidthstring 00.00.0000
492 \begin_inset Flex Code
493 status collapsed
494
495 \begin_layout Plain Layout
496 doc/LaTeXConfig.lyx
497 \end_layout
498
499 \end_inset
500
501  このファイルは,自動設定中に
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506 LaTeXConfig.lyx.in
507 \end_layout
508
509 \end_inset
510
511 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
512 の設定に関する情報が納められています.
513 \end_layout
514
515 \begin_layout Subsection
516 ディレクトリ
517 \end_layout
518
519 \begin_layout Standard
520 以下の各ディレクトリは,
521 \begin_inset Flex Code
522 status collapsed
523
524 \begin_layout Plain Layout
525 LyXDir
526 \end_layout
527
528 \end_inset
529
530
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 UserDir
536 \end_layout
537
538 \end_inset
539
540 に重複して存在します.特定のファイルが両方の場所にある場合には,
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 UserDir
546 \end_layout
547
548 \end_inset
549
550 の方にあるものが使用されます.
551 \end_layout
552
553 \begin_layout Labeling
554 \labelwidthstring 00.00.0000
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 bind/
560 \end_layout
561
562 \end_inset
563
564  このディレクトリには,\SpecialChar LyX
565 で使用されるキー割当を定義している,拡張子が
566 \begin_inset Flex Code
567 status collapsed
568
569 \begin_layout Plain Layout
570 .bind
571 \end_layout
572
573 \end_inset
574
575 のファイルが置かれています.
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 $LANG_xxx.bind
581 \end_layout
582
583 \end_inset
584
585 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
586 \end_layout
587
588 \begin_layout Labeling
589 \labelwidthstring 00.00.0000
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 citeengines/
595 \end_layout
596
597 \end_inset
598
599  このディレクトリには,幅広い文献引用力(natbib, biblatexなど)を定義する,拡張子が
600 \begin_inset Flex Code
601 status collapsed
602
603 \begin_layout Plain Layout
604 .citeengine
605 \end_layout
606
607 \end_inset
608
609 のファイルが置かれています.詳細については,第
610 \begin_inset CommandInset ref
611 LatexCommand ref
612 reference "subsec:引用エンジンファイル"
613 plural "false"
614 caps "false"
615 noprefix "false"
616
617 \end_inset
618
619 節をご覧ください.
620 \end_layout
621
622 \begin_layout Labeling
623 \labelwidthstring 00.00.0000
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 clipart/
629 \end_layout
630
631 \end_inset
632
633  このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
634 \end_layout
635
636 \begin_layout Labeling
637 \labelwidthstring 00.00.0000
638 \begin_inset Flex Code
639 status collapsed
640
641 \begin_layout Plain Layout
642 doc/
643 \end_layout
644
645 \end_inset
646
647  このディレクトリには,\SpecialChar LyX
648 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 LaTeXConfig.lyx
654 \end_layout
655
656 \end_inset
657
658 ファイルは特に注目に値します.各国語版のヘルプ文書は,
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663 doc/xx
664 \end_layout
665
666 \end_inset
667
668 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
669 \begin_inset CommandInset ref
670 LatexCommand ref
671 reference "cha:LyXの各国語対応"
672
673 \end_inset
674
675 をご覧ください.
676 \end_layout
677
678 \begin_layout Labeling
679 \labelwidthstring 00.00.0000
680 \begin_inset Flex Code
681 status collapsed
682
683 \begin_layout Plain Layout
684 examples/
685 \end_layout
686
687 \end_inset
688
689  このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
690 \begin_inset Flex MenuItem
691 status collapsed
692
693 \begin_layout Plain Layout
694 用例
695 \end_layout
696
697 \end_inset
698
699 ボタンを押すと,このディレクトリが表示されます.
700 \end_layout
701
702 \begin_layout Labeling
703 \labelwidthstring 00.00.0000
704 \begin_inset Flex Code
705 status collapsed
706
707 \begin_layout Plain Layout
708 images/
709 \end_layout
710
711 \end_inset
712
713  このディレクトリには,
714 \begin_inset Flex MenuItem
715 status collapsed
716
717 \begin_layout Plain Layout
718 文書
719 \end_layout
720
721 \end_inset
722
723 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
724 を起動したときに現れるバナーも納められています.
725 \end_layout
726
727 \begin_layout Labeling
728 \labelwidthstring 00.00.0000
729 \begin_inset Flex Code
730 status collapsed
731
732 \begin_layout Plain Layout
733 kbd/
734 \end_layout
735
736 \end_inset
737
738  このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
739 \begin_inset CommandInset ref
740 LatexCommand ref
741 reference "sec:国際キー配列"
742
743 \end_inset
744
745 をご覧ください.
746 \end_layout
747
748 \begin_layout Labeling
749 \labelwidthstring 00.00.0000
750 \begin_inset Flex Code
751 status collapsed
752
753 \begin_layout Plain Layout
754 layouts/
755 \end_layout
756
757 \end_inset
758
759  このディレクトリには,
760 \begin_inset CommandInset ref
761 LatexCommand ref
762 reference "cha:新規文書を導入"
763
764 \end_inset
765
766 に述べられているテキストクラスおよびモジュールのファイルが納められています.
767 \end_layout
768
769 \begin_layout Labeling
770 \labelwidthstring 00.00.0000
771 \begin_inset Flex Code
772 status collapsed
773
774 \begin_layout Plain Layout
775 lyx2lyx
776 \end_layout
777
778 \end_inset
779
780  このディレクトリには,\SpecialChar LyX
781 の各バージョン間の変換に使用される
782 \begin_inset Flex Code
783 status collapsed
784
785 \begin_layout Plain Layout
786 lyx2lyx
787 \end_layout
788
789 \end_inset
790
791  Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
792 \end_layout
793
794 \begin_layout Labeling
795 \labelwidthstring 00.00.0000
796 \begin_inset Flex Code
797 status collapsed
798
799 \begin_layout Plain Layout
800 scripts/
801 \end_layout
802
803 \end_inset
804
805  このディレクトリには,
806 \begin_inset Flex MenuItem
807 status collapsed
808
809 \begin_layout Plain Layout
810 外用ひな型
811 \end_layout
812
813 \end_inset
814
815 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
816 自身が使用するスクリプトもいくつか収められています.
817 \end_layout
818
819 \begin_layout Labeling
820 \labelwidthstring 00.00.0000
821 \begin_inset Flex Code
822 status collapsed
823
824 \begin_layout Plain Layout
825 templates/
826 \end_layout
827
828 \end_inset
829
830  このディレクトリには,
831 \begin_inset CommandInset ref
832 LatexCommand ref
833 reference "sec:ひな型を作成する"
834
835 \end_inset
836
837 で述べられている標準の\SpecialChar LyX
838 ひな型ファイルが納められています.
839 \end_layout
840
841 \begin_layout Labeling
842 \labelwidthstring 00.00.0000
843 \begin_inset Flex Code
844 status collapsed
845
846 \begin_layout Plain Layout
847 ui/
848 \end_layout
849
850 \end_inset
851
852  このディレクトリには,\SpecialChar LyX
853 の操作画面を定義する拡張子
854 \begin_inset Flex Code
855 status collapsed
856
857 \begin_layout Plain Layout
858 .ui
859 \end_layout
860
861 \end_inset
862
863 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
864 \end_layout
865
866 \begin_layout Labeling
867 \labelwidthstring 00.00.0000
868 \begin_inset Flex Code
869 status collapsed
870
871 \begin_layout Plain Layout
872 xtemplates/
873 \end_layout
874
875 \end_inset
876
877  このディレクトリには,\SpecialChar LyX
878 文書への外部素材の挿入のひな型を定義する,拡張子が
879 \begin_inset Flex Code
880 status collapsed
881
882 \begin_layout Plain Layout
883 .xtemplate
884 \end_layout
885
886 \end_inset
887
888 のファイルが置かれています.第
889 \begin_inset CommandInset ref
890 LatexCommand ref
891 reference "chap:外部素材を取り込む"
892 plural "false"
893 caps "false"
894 noprefix "false"
895
896 \end_inset
897
898 節参照.
899 \end_layout
900
901 \begin_layout Subsection
902 変更を加えない方がよいファイル
903 \end_layout
904
905 \begin_layout Standard
906 これらのファイルは\SpecialChar LyX
907 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
908 \end_layout
909
910 \begin_layout Labeling
911 \labelwidthstring 00.00.0000
912 \begin_inset Flex Code
913 status collapsed
914
915 \begin_layout Plain Layout
916 CREDITS
917 \end_layout
918
919 \end_inset
920
921  このファイルは,\SpecialChar LyX
922 開発陣の名簿です.この内容は,メニュー項目
923 \begin_inset Flex MenuItem
924 status collapsed
925
926 \begin_layout Plain Layout
927 ヘルプ\SpecialChar menuseparator
928 LyXについて
929 \end_layout
930
931 \end_inset
932
933 で表示されます.
934 \end_layout
935
936 \begin_layout Labeling
937 \labelwidthstring 00.00.0000
938 \begin_inset Flex Code
939 status collapsed
940
941 \begin_layout Plain Layout
942 chkconfig.ltx
943 \end_layout
944
945 \end_inset
946
947  これは,自動設定プロセスによって使用される\SpecialChar LaTeX
948 スクリプトです.直接実行しないでください.
949 \end_layout
950
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
954 status collapsed
955
956 \begin_layout Plain Layout
957 configure.py
958 \end_layout
959
960 \end_inset
961
962  これは,\SpecialChar LyX
963 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
964 \end_layout
965
966 \begin_layout Subsection
967 ひとこと必要なファイル群
968 \end_layout
969
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 encodings
977 \end_layout
978
979 \end_inset
980
981  このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
982 \end_layout
983
984 \begin_layout Labeling
985 \labelwidthstring 00.00.0000
986 \begin_inset Flex Code
987 status collapsed
988
989 \begin_layout Plain Layout
990 languages
991 \end_layout
992
993 \end_inset
994
995  このファイルには,現在\SpecialChar LyX
996 がサポートしている言語の全一覧が載っています.
997 \end_layout
998
999 \begin_layout Labeling
1000 \labelwidthstring 00.00.0000
1001 \begin_inset Flex Code
1002 status collapsed
1003
1004 \begin_layout Plain Layout
1005 latexfonts
1006 \end_layout
1007
1008 \end_inset
1009
1010  サポートされているフォントに関する情報が掲載されています.
1011 \end_layout
1012
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 layouttranslations
1020 \end_layout
1021
1022 \end_inset
1023
1024  このファイルは,国際化された段落様式の翻訳が収録されています(
1025 \begin_inset CommandInset ref
1026 LatexCommand ref
1027 reference "subsec:段落様式の国際化"
1028
1029 \end_inset
1030
1031 参照).
1032 \end_layout
1033
1034 \begin_layout Labeling
1035 \labelwidthstring 00.00.0000
1036 \begin_inset Flex Code
1037 status collapsed
1038
1039 \begin_layout Plain Layout
1040 unicodesymbols
1041 \end_layout
1042
1043 \end_inset
1044
1045  このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1046 が\SpecialChar LaTeX
1047 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1048 \end_layout
1049
1050 \begin_layout Section
1051 ユーザのローカル設定ディレクトリ
1052 \end_layout
1053
1054 \begin_layout Standard
1055 \SpecialChar LyX
1056 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1057 の設定を変更したいと思うかもしれません.
1058 \begin_inset Flex Code
1059 status collapsed
1060
1061 \begin_layout Plain Layout
1062 UserDir
1063 \end_layout
1064
1065 \end_inset
1066
1067 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1068 \begin_inset Flex MenuItem
1069 status collapsed
1070
1071 \begin_layout Plain Layout
1072 ヘルプ\SpecialChar menuseparator
1073 LyXについて
1074 \end_layout
1075
1076 \end_inset
1077
1078 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1079 \begin_inset Flex Code
1080 status collapsed
1081
1082 \begin_layout Plain Layout
1083 LyXDir
1084 \end_layout
1085
1086 \end_inset
1087
1088 のミラーとして使用されており,これは
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 UserDir
1094 \end_layout
1095
1096 \end_inset
1097
1098 内のすべてのファイルが,
1099 \begin_inset Flex Code
1100 status collapsed
1101
1102 \begin_layout Plain Layout
1103 LyXDir
1104 \end_layout
1105
1106 \end_inset
1107
1108 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1109 \end_layout
1110
1111 \begin_layout Standard
1112 わかりやすくするために,いくつか例を挙げましょう.
1113 \end_layout
1114
1115 \begin_layout Itemize
1116 \begin_inset Flex MenuItem
1117 status collapsed
1118
1119 \begin_layout Plain Layout
1120 ツール\SpecialChar menuseparator
1121 設定
1122 \end_layout
1123
1124 \end_inset
1125
1126 ダイアログで設定されるユーザ設定は,
1127 \begin_inset Flex Code
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 UserDir
1132 \end_layout
1133
1134 \end_inset
1135
1136 中の
1137 \begin_inset Flex Code
1138 status collapsed
1139
1140 \begin_layout Plain Layout
1141 preferences
1142 \end_layout
1143
1144 \end_inset
1145
1146 ファイルに保存されます.
1147 \end_layout
1148
1149 \begin_layout Itemize
1150 \begin_inset Flex MenuItem
1151 status collapsed
1152
1153 \begin_layout Plain Layout
1154 ツール\SpecialChar menuseparator
1155 環境構成
1156 \end_layout
1157
1158 \end_inset
1159
1160 を使用して環境構成を行うと,\SpecialChar LyX
1161
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 configure.py
1167 \end_layout
1168
1169 \end_inset
1170
1171 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 UserDir/layouts
1177 \end_layout
1178
1179 \end_inset
1180
1181 にご自身で追加したテキストファイルは,
1182 \begin_inset Flex MenuItem
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186 文書\SpecialChar menuseparator
1187 設定
1188 \end_layout
1189
1190 \end_inset
1191
1192 ダイアログのクラス一覧に表示されるようになることを意味します.
1193 \end_layout
1194
1195 \begin_layout Itemize
1196 たとえば,\SpecialChar LyX
1197 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1198 れらのファイルを
1199 \begin_inset Flex Code
1200 status collapsed
1201
1202 \begin_layout Plain Layout
1203 UserDir/doc/
1204 \end_layout
1205
1206 \end_inset
1207
1208 ディレクトリにコピーすれば,
1209 \begin_inset Flex MenuItem
1210 status collapsed
1211
1212 \begin_layout Plain Layout
1213 ヘルプ
1214 \end_layout
1215
1216 \end_inset
1217
1218 メニュー項目はこれらを開くようになります!
1219 \end_layout
1220
1221 \begin_layout Section
1222 \SpecialChar LyX
1223 を複数の設定を使って実行するには
1224 \end_layout
1225
1226 \begin_layout Standard
1227 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1228 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1229 どのディレクトリを使用するか指定するのです.
1230 \end_layout
1231
1232 \begin_layout Standard
1233 \SpecialChar LyX
1234 をコマンドラインスイッチ
1235 \begin_inset Flex Code
1236 status collapsed
1237
1238 \begin_layout Plain Layout
1239 -userdir
1240 \end_layout
1241
1242 \end_inset
1243
1244 P
1245 \emph on
1246 <ディレクトリ名>
1247 \emph default
1248 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1249
1250 \begin_inset Flex Code
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 -userdir
1255 \end_layout
1256
1257 \end_inset
1258
1259 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1260 は,初めて\SpecialChar LyX
1261 を実行したときに既定ディレクトリを訊い
1262 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1263 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 LYX_USERDIR_20x
1269 \end_layout
1270
1271 \end_inset
1272
1273 を特定の値に設定しても,全く同じ効果があります.
1274 \end_layout
1275
1276 \begin_layout Standard
1277 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 NewUserDir/layouts
1283 \end_layout
1284
1285 \end_inset
1286
1287 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1288 クを使用してください.\SpecialChar LyX
1289 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1290 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1291 \begin_inset Flex Code
1292 status collapsed
1293
1294 \begin_layout Plain Layout
1295 doc/
1296 \end_layout
1297
1298 \end_inset
1299
1300 サブディレクトリには,設定スクリプト(
1301 \begin_inset Flex MenuItem
1302 status collapsed
1303
1304 \begin_layout Plain Layout
1305 ツール\SpecialChar menuseparator
1306 環境構成
1307 \end_layout
1308
1309 \end_inset
1310
1311 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1312 \end_layout
1313
1314 \begin_layout Chapter
1315 設定ダイアログ
1316 \end_layout
1317
1318 \begin_layout Standard
1319 設定ダイアログのオプションのすべては,
1320 \emph on
1321 ユーザーの手引き
1322 \emph default
1323 の付録
1324 \emph on
1325 設定ダイアログ
1326 \emph default
1327 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1328 \end_layout
1329
1330 \begin_layout Section
1331 ファイル形式
1332 \begin_inset CommandInset label
1333 LatexCommand label
1334 name "sec:ファイル形式"
1335
1336 \end_inset
1337
1338
1339 \end_layout
1340
1341 \begin_layout Standard
1342 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1343 \begin_inset Flex MenuItem
1344 status collapsed
1345
1346 \begin_layout Plain Layout
1347 ツール\SpecialChar menuseparator
1348 設定
1349 \end_layout
1350
1351 \end_inset
1352
1353 ダイアログを開いてください.
1354 \begin_inset Flex MenuItem
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358 ファイル処理\SpecialChar menuseparator
1359 ファイル形式
1360 \end_layout
1361
1362 \end_inset
1363
1364 の中で
1365 \begin_inset Flex MenuItem
1366 status collapsed
1367
1368 \begin_layout Plain Layout
1369 新規\SpecialChar ldots
1370
1371 \end_layout
1372
1373 \end_inset
1374
1375 ボタンを押して,登録する新しい形式を定義してください.
1376 \begin_inset Flex MenuItem
1377 status collapsed
1378
1379 \begin_layout Plain Layout
1380 形式
1381 \end_layout
1382
1383 \end_inset
1384
1385 フィールドは,GUI中で形式を認識するために用いられる名称です.
1386 \begin_inset Flex MenuItem
1387 status collapsed
1388
1389 \begin_layout Plain Layout
1390 短縮名
1391 \end_layout
1392
1393 \end_inset
1394
1395 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1396 \begin_inset Flex MenuItem
1397 status collapsed
1398
1399 \begin_layout Plain Layout
1400 捷径
1401 \end_layout
1402
1403 \end_inset
1404
1405 フィールドは,メニュー中で
1406 \begin_inset Flex Ruby
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 捷径
1411 \begin_inset Argument post:1
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415 ショートカット
1416 \end_layout
1417
1418 \end_inset
1419
1420
1421 \end_layout
1422
1423 \end_inset
1424
1425 を提供するのに使用されます(たとえば,
1426 \begin_inset Flex MenuItem
1427 status collapsed
1428
1429 \begin_layout Plain Layout
1430 Ctrl+D
1431 \end_layout
1432
1433 \end_inset
1434
1435 を押すと
1436 \begin_inset Flex MenuItem
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440 表示\SpecialChar menuseparator
1441 DVI
1442 \end_layout
1443
1444 \end_inset
1445
1446 となります).
1447 \end_layout
1448
1449 \begin_layout Standard
1450 形式には,
1451 \begin_inset Flex MenuItem
1452 status collapsed
1453
1454 \begin_layout Plain Layout
1455 閲覧プログラム
1456 \end_layout
1457
1458 \end_inset
1459
1460
1461 \begin_inset Flex MenuItem
1462 status collapsed
1463
1464 \begin_layout Plain Layout
1465 編集プログラム
1466 \end_layout
1467
1468 \end_inset
1469
1470 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1471 \begin_inset Flex MenuItem
1472 status collapsed
1473
1474 \begin_layout Plain Layout
1475 Ghostview
1476 \end_layout
1477
1478 \end_inset
1479
1480 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1481 いることができます.この閲覧プログラムは,\SpecialChar LyX
1482 中で画像を閲覧したり
1483 \begin_inset Flex MenuItem
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 表示
1488 \end_layout
1489
1490 \end_inset
1491
1492 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1493 \begin_inset Flex MenuItem
1494 status collapsed
1495
1496 \begin_layout Plain Layout
1497 外部で編集
1498 \end_layout
1499
1500 \end_inset
1501
1502 を選択したときに起動します.
1503 \end_layout
1504
1505 \begin_layout Standard
1506 ファイル形式の
1507 \begin_inset Flex MenuItem
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 MIME
1512 \end_layout
1513
1514 \end_inset
1515
1516 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1517 ます.重要なファイル形式のうちには,
1518 \begin_inset CommandInset href
1519 LatexCommand href
1520 name "IANA"
1521 target "http://www.iana.org/assignments/media-types/"
1522 literal "false"
1523
1524 \end_inset
1525
1526 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1527 は,
1528 \begin_inset CommandInset href
1529 LatexCommand href
1530 name "freedesktop.org"
1531 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1532 literal "false"
1533
1534 \end_inset
1535
1536 で指定されているMIME型拡張表を使用しています.
1537 \end_layout
1538
1539 \begin_layout Standard
1540 \begin_inset Flex MenuItem
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 文書形式
1545 \end_layout
1546
1547 \end_inset
1548
1549 オプションは,\SpecialChar LyX
1550 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1551 \begin_inset CommandInset ref
1552 LatexCommand ref
1553 reference "sec:変換子"
1554
1555 \end_inset
1556
1557 節を参照),この形式が
1558 \begin_inset Flex MenuItem
1559 status collapsed
1560
1561 \begin_layout Plain Layout
1562 ファイル\SpecialChar menuseparator
1563 書き出し
1564 \end_layout
1565
1566 \end_inset
1567
1568
1569 \begin_inset Flex MenuItem
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573 表示
1574 \end_layout
1575
1576 \end_inset
1577
1578 footlabel Label color for footnotす.
1579 \begin_inset Flex Code
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 png
1584 \end_layout
1585
1586 \end_inset
1587
1588 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1589 \begin_inset Flex Code
1590 status collapsed
1591
1592 \begin_layout Plain Layout
1593 pdf
1594 \end_layout
1595
1596 \end_inset
1597
1598 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1599 \end_layout
1600
1601 \begin_layout Standard
1602 \begin_inset Flex MenuItem
1603 status collapsed
1604
1605 \begin_layout Plain Layout
1606 ベクター画像形式
1607 \end_layout
1608
1609 \end_inset
1610
1611 オプションは,\SpecialChar LyX
1612 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1613 \begin_inset Flex MenuItem
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 pdflatex
1618 \end_layout
1619
1620 \end_inset
1621
1622 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1623 \begin_inset Flex MenuItem
1624 status collapsed
1625
1626 \begin_layout Plain Layout
1627 pdflatex
1628 \end_layout
1629
1630 \end_inset
1631
1632 は,
1633 \begin_inset Flex MenuItem
1634 status collapsed
1635
1636 \begin_layout Plain Layout
1637 pdf
1638 \end_layout
1639
1640 \end_inset
1641
1642
1643 \begin_inset Flex MenuItem
1644 status collapsed
1645
1646 \begin_layout Plain Layout
1647 png
1648 \end_layout
1649
1650 \end_inset
1651
1652
1653 \begin_inset Flex MenuItem
1654 status collapsed
1655
1656 \begin_layout Plain Layout
1657 Des
1658 \end_layout
1659
1660 \end_inset
1661
1662 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1663 \begin_inset Flex MenuItem
1664 status collapsed
1665
1666 \begin_layout Plain Layout
1667 pdf
1668 \end_layout
1669
1670 \end_inset
1671
1672
1673 \begin_inset Flex MenuItem
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 png
1678 \end_layout
1679
1680 \end_inset
1681
1682
1683 \begin_inset Flex MenuItem
1684 status collapsed
1685
1686 \begin_layout Plain Layout
1687 jpg
1688 \end_layout
1689
1690 \end_inset
1691
1692 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1693 \begin_inset Flex MenuItem
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 pdf
1698 \end_layout
1699
1700 \end_inset
1701
1702 に変換され,そうでない場合には
1703 \begin_inset Flex MenuItem
1704 status collapsed
1705
1706 \begin_layout Plain Layout
1707 png
1708 \end_layout
1709
1710 \end_inset
1711
1712 に変換されます.
1713 \end_layout
1714
1715 \begin_layout Section
1716 複写子
1717 \end_layout
1718
1719 \begin_layout Standard
1720 形式の変換はすべて,\SpecialChar LyX
1721 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1722 \begin_inset Foot
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1727 あります.
1728 \end_layout
1729
1730 \end_inset
1731
1732 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1733 \end_layout
1734
1735 \begin_layout Standard
1736 複写子の定義においては,以下の8つの変数を用いることができます.
1737 \end_layout
1738
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1741 \begin_inset Flex Code
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 $$s
1746 \end_layout
1747
1748 \end_inset
1749
1750  \SpecialChar LyX
1751 のシステムディレクトリ(例:
1752 \begin_inset Flex MenuItem
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 /usr/share/lyx
1757 \end_layout
1758
1759 \end_inset
1760
1761
1762 \end_layout
1763
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Flex Code
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 $$i
1771 \end_layout
1772
1773 \end_inset
1774
1775  入力ファイル
1776 \end_layout
1777
1778 \begin_layout Labeling
1779 \labelwidthstring 00.00.0000
1780 \begin_inset Flex Code
1781 status collapsed
1782
1783 \begin_layout Plain Layout
1784 $$o
1785 \end_layout
1786
1787 \end_inset
1788
1789  出力ファイル
1790 \end_layout
1791
1792 \begin_layout Labeling
1793 \labelwidthstring 00.00.0000
1794 \begin_inset Flex Code
1795 status collapsed
1796
1797 \begin_layout Plain Layout
1798 $$b
1799 \end_layout
1800
1801 \end_inset
1802
1803  \SpecialChar LyX
1804 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1805 \end_layout
1806
1807 \begin_layout Labeling
1808 \labelwidthstring 00.00.0000
1809 \begin_inset Flex Code
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813 $$p
1814 \end_layout
1815
1816 \end_inset
1817
1818  \SpecialChar LyX
1819 一時ディレクトリのフルパス名
1820 \end_layout
1821
1822 \begin_layout Labeling
1823 \labelwidthstring 00.00.0000
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 $$r
1829 \end_layout
1830
1831 \end_inset
1832
1833  処理されている元の\SpecialChar LyX
1834 ファイルのフルパス名
1835 \end_layout
1836
1837 \begin_layout Labeling
1838 \labelwidthstring 00.00.0000
1839 \begin_inset Flex Code
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 $$f
1844 \end_layout
1845
1846 \end_inset
1847
1848  \SpecialChar LyX
1849 ファイルのファイル名(ディレクトリパスなし)
1850 \end_layout
1851
1852 \begin_layout Labeling
1853 \labelwidthstring 00.00.0000
1854 \begin_inset Flex Code
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 $$l
1859 \end_layout
1860
1861 \end_inset
1862
1863  「\SpecialChar LaTeX
1864 名」
1865 \end_layout
1866
1867 \begin_layout Standard
1868 最後の変数は,\SpecialChar LaTeX
1869
1870 \series bold
1871
1872 \backslash
1873 include
1874 \series default
1875 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1876 \end_layout
1877
1878 \begin_layout Standard
1879 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1880 \begin_inset Flex Code
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 /home/you/pdf/
1885 \end_layout
1886
1887 \end_inset
1888
1889 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1890 \end_layout
1891
1892 \begin_layout Standard
1893 \begin_inset listings
1894 inline false
1895 status open
1896
1897 \begin_layout Plain Layout
1898
1899 #!/bin/bash
1900 \end_layout
1901
1902 \begin_layout Plain Layout
1903
1904 FROMFILE=$1
1905 \end_layout
1906
1907 \begin_layout Plain Layout
1908
1909 TOFILE=`basename $2`
1910 \end_layout
1911
1912 \begin_layout Plain Layout
1913
1914 DescriptionE /home/you/pdf/$TOFILE
1915 \end_layout
1916
1917 \end_inset
1918
1919 これを,例えば
1920 \begin_inset Flex Code
1921 status collapsed
1922
1923 \begin_layout Plain Layout
1924 /home/you/.lyx/scripts/pdfcopier.sh
1925 \end_layout
1926
1927 \end_inset
1928
1929 のような,自身のローカル\SpecialChar LyX
1930 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1931 \begin_inset Flex MenuItem
1932 status collapsed
1933
1934 \begin_layout Plain Layout
1935 ツール\SpecialChar menuseparator
1936 設定
1937 \end_layout
1938
1939 \end_inset
1940
1941 ダイアログの
1942 \begin_inset Flex MenuItem
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 ファイル処理\SpecialChar menuseparator
1947 ファイル形式
1948 \end_layout
1949
1950 \end_inset
1951
1952 の中で,
1953 \begin_inset Flex MenuItem
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 PDF(pdflatex)
1958 \end_layout
1959
1960 \end_inset
1961
1962 形式—あるいは他のPDF形式のうちどれか—を選択し,
1963 \begin_inset Flex MenuItem
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967 複写子
1968 \end_layout
1969
1970 \end_inset
1971
1972 フィールドに
1973 \begin_inset Flex Code
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 pdfcopier.sh $$i $$o
1978 \end_layout
1979
1980 \end_inset
1981
1982 と入力します.
1983 \end_layout
1984
1985 \begin_layout Standard
1986 複写子は,\SpecialChar LyX
1987 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
1988 は自動的に
1989 \begin_inset Flex MenuItem
1990 status collapsed
1991
1992 \begin_layout Plain Layout
1993 HTML
1994 \end_layout
1995
1996 \end_inset
1997
1998 形式と
1999 \begin_inset Flex MenuItem
2000 status collapsed
2001
2002 \begin_layout Plain Layout
2003 HTML
2004 \begin_inset space ~
2005 \end_inset
2006
2007 (MS Word)
2008 \end_layout
2009
2010 \end_inset
2011
2012 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2013 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2014 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2015 \begin_inset Foot
2016 status collapsed
2017
2018 \begin_layout Plain Layout
2019 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2020 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2021 \begin_inset Flex MenuItem
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 LyXconv
2026 \end_layout
2027
2028 \end_inset
2029
2030 」となっているので,
2031 \begin_inset Flex MenuItem
2032 status collapsed
2033
2034 \begin_layout Plain Layout
2035 /path/to/filename.lyx
2036 \end_layout
2037
2038 \end_inset
2039
2040 から生成されたHTMLファイルは,
2041 \begin_inset Flex MenuItem
2042 status collapsed
2043
2044 \begin_layout Plain Layout
2045 /path/to/filename.html.LyXconv
2046 \end_layout
2047
2048 \end_inset
2049
2050 となります..
2051  
2052 \end_layout
2053
2054 \end_inset
2055
2056
2057 \end_layout
2058
2059 \begin_layout Section
2060 変換子
2061 \begin_inset CommandInset label
2062 LatexCommand label
2063 name "sec:変換子"
2064
2065 \end_inset
2066
2067
2068 \end_layout
2069
2070 \begin_layout Standard
2071 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2072 \begin_inset Flex MenuItem
2073 status collapsed
2074
2075 \begin_layout Plain Layout
2076 ツール\SpecialChar menuseparator
2077 設定\SpecialChar menuseparator
2078 ファイル処理\SpecialChar menuseparator
2079 変換子
2080 \end_layout
2081
2082 \end_inset
2083
2084 ダイアログで行います.
2085 \end_layout
2086
2087 \begin_layout Standard
2088 新規に変換子を定義するには,ドロップダウンリストから
2089 \begin_inset Flex MenuItem
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 変換元の形式
2094 \end_layout
2095
2096 \end_inset
2097
2098
2099 \begin_inset Flex MenuItem
2100 status collapsed
2101
2102 \begin_layout Plain Layout
2103 変換先の形式
2104 \end_layout
2105
2106 \end_inset
2107
2108 を選択し,変換に必要なコマンドを入力してから
2109 \begin_inset Flex MenuItem
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 追加
2114 \end_layout
2115
2116 \end_inset
2117
2118 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2119 \end_layout
2120
2121 \begin_layout Labeling
2122 \labelwidthstring 00.00.0000
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 $$s
2128 \end_layout
2129
2130 \end_inset
2131
2132  \SpecialChar LyX
2133 システムディレクトリ
2134 \end_layout
2135
2136 \begin_layout Labeling
2137 \labelwidthstring 00.00.0000
2138 \begin_inset Flex Code
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 $$i
2143 \end_layout
2144
2145 \end_inset
2146
2147  入力ファイル
2148 \end_layout
2149
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156 $$o
2157 \end_layout
2158
2159 \end_inset
2160
2161  出力ファイル
2162 \end_layout
2163
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 $$b
2171 \end_layout
2172
2173 \end_inset
2174
2175  入力ファイルのベースファイル名(拡張子をとった部分)
2176 \end_layout
2177
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 $$p
2185 \end_layout
2186
2187 \end_inset
2188
2189  入力ファイルのパス
2190 \end_layout
2191
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 $$r
2199 \end_layout
2200
2201 \end_inset
2202
2203  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2204 \end_layout
2205
2206 \begin_layout Labeling
2207 \labelwidthstring 00.00.0000
2208 \begin_inset Flex Code
2209 status collapsed
2210
2211 \begin_layout Plain Layout
2212 $$e
2213 \end_layout
2214
2215 \end_inset
2216
2217  文書エンコーディングのiconv名
2218 \end_layout
2219
2220 \begin_layout Standard
2221 \begin_inset Flex MenuItem
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 追加フラグ
2226 \end_layout
2227
2228 \end_inset
2229
2230 フィールドには,以下のフラグをコンマで区切って入力することができます.
2231 \end_layout
2232
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Flex Code
2236 status collapsed
2237
2238 \begin_layout Plain Layout
2239 latex
2240 \end_layout
2241
2242 \end_inset
2243
2244  この変換子が\SpecialChar LaTeX
2245 の一種を実行することを示します.これによって,\SpecialChar LyX
2246 の\SpecialChar LaTeX
2247 エラーログに記録を残せるようになります.
2248 \end_layout
2249
2250 \begin_layout Labeling
2251 \labelwidthstring 00.00.0000
2252 \begin_inset Flex Code
2253 status collapsed
2254
2255 \begin_layout Plain Layout
2256 needaux
2257 \end_layout
2258
2259 \end_inset
2260
2261  変換に\SpecialChar LaTeX
2262
2263 \begin_inset Flex MenuItem
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 .aux
2268 \end_layout
2269
2270 \end_inset
2271
2272 ファイルが必要であることを示します.
2273 \end_layout
2274
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Flex Code
2278 status collapsed
2279
2280 \begin_layout Plain Layout
2281 nice
2282 \end_layout
2283
2284 \end_inset
2285
2286  バックエンドからの
2287 \begin_inset Quotes erd
2288 \end_inset
2289
2290 nice
2291 \begin_inset Quotes erd
2292 \end_inset
2293
2294 なファイル,つまり\SpecialChar LyX
2295 が書き出す\SpecialChar LaTeX
2296 ファイルのように,
2297 \begin_inset Flex Code
2298 status open
2299
2300 \begin_layout Plain Layout
2301 input@path
2302 \end_layout
2303
2304 \end_inset
2305
2306 のない\SpecialChar LaTeX
2307 ファイルを必要とします.
2308 \end_layout
2309
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Flex Code
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316 xml
2317 \end_layout
2318
2319 \end_inset
2320
2321  出力がXMLであることを示します.
2322 \end_layout
2323
2324 \begin_layout Standard
2325 以下の3つのフラグは 
2326 \begin_inset Flex MenuItem
2327 status collapsed
2328
2329 \begin_layout Plain Layout
2330 key
2331 \begin_inset space ~
2332 \end_inset
2333
2334 =
2335 \begin_inset space ~
2336 \end_inset
2337
2338 value
2339 \end_layout
2340
2341 \end_inset
2342
2343 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2344 \end_layout
2345
2346 \begin_layout Labeling
2347 \labelwidthstring 00.00.0000
2348 \begin_inset Flex Code
2349 status collapsed
2350
2351 \begin_layout Plain Layout
2352 parselog
2353 \end_layout
2354
2355 \end_inset
2356
2357  これを指定すると,変換子の標準エラーが
2358 \begin_inset Flex Code
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362 infile.out
2363 \end_layout
2364
2365 \end_inset
2366
2367 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2368 \begin_inset Flex Code
2369 status collapsed
2370
2371 \begin_layout Plain Layout
2372 script < infile.out > infile.log
2373 \end_layout
2374
2375 \end_inset
2376
2377 の形で実行されるようになります.引数には
2378 \begin_inset Flex Code
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 $$s
2383 \end_layout
2384
2385 \end_inset
2386
2387 を指定することができます.
2388 \end_layout
2389
2390 \begin_layout Labeling
2391 \labelwidthstring 00.00.0000
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 resultdir
2397 \end_layout
2398
2399 \end_inset
2400
2401  これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2402 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2403 ピーします.引数には,
2404 \begin_inset Flex Code
2405 status collapsed
2406
2407 \begin_layout Plain Layout
2408 $$b
2409 \end_layout
2410
2411 \end_inset
2412
2413 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2414 \begin_inset Newline newline
2415 \end_inset
2416
2417 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2418 \end_layout
2419
2420 \begin_layout Labeling
2421 \labelwidthstring 00.00.0000
2422 \begin_inset Flex Code
2423 status collapsed
2424
2425 \begin_layout Plain Layout
2426 resultfile
2427 \end_layout
2428
2429 \end_inset
2430
2431  これは出力ファイル名を指定するもので,
2432 \begin_inset Flex Code
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 $$b
2437 \end_layout
2438
2439 \end_inset
2440
2441 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2442 \end_layout
2443
2444 \begin_layout Standard
2445 最後の3つは,\SpecialChar LyX
2446 とともに導入される変換子には,現在いずれも使用されておりません.
2447 \end_layout
2448
2449 \begin_layout Standard
2450 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2451 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2452 はPostScrip
2453 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2454 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2455 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2456 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2457 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2458 設定は,\SpecialChar LaTeX
2459 からPDFへ変換するのに,以下の3つの方法を
2460 用意しています.
2461 \end_layout
2462
2463 \begin_layout Enumerate
2464 直接
2465 \begin_inset Flex MenuItem
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 pdflatex
2470 \end_layout
2471
2472 \end_inset
2473
2474 を使用するもの
2475 \end_layout
2476
2477 \begin_layout Enumerate
2478 (DVIと)PostScriptを経由して
2479 \begin_inset Flex MenuItem
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 ps2pdf
2484 \end_layout
2485
2486 \end_inset
2487
2488 を使用するもの
2489 \end_layout
2490
2491 \begin_layout Enumerate
2492 DVI経由で
2493 \begin_inset Flex MenuItem
2494 status collapsed
2495
2496 \begin_layout Plain Layout
2497 dvipdfm
2498 \end_layout
2499
2500 \end_inset
2501
2502 を使用するもの
2503 \end_layout
2504
2505 \begin_layout Enumerate
2506 直接
2507 \begin_inset Flex MenuItem
2508 status collapsed
2509
2510 \begin_layout Plain Layout
2511 Xe\SpecialChar TeX
2512
2513 \end_layout
2514
2515 \end_inset
2516
2517 を使用するもの
2518 \end_layout
2519
2520 \begin_layout Enumerate
2521 直接
2522 \begin_inset Flex MenuItem
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 Lua\SpecialChar TeX
2527
2528 \end_layout
2529
2530 \end_inset
2531
2532 を使用するもの
2533 \end_layout
2534
2535 \begin_layout Standard
2536 このように代替連鎖を定義するには,第
2537 \begin_inset CommandInset ref
2538 LatexCommand ref
2539 reference "sec:ファイル形式"
2540
2541 \end_inset
2542
2543 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2544 \begin_inset Flex MenuItem
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 pdf
2549 \end_layout
2550
2551 \end_inset
2552
2553 (
2554 \begin_inset Flex MenuItem
2555 status collapsed
2556
2557 \begin_layout Plain Layout
2558 ps2pdf
2559 \end_layout
2560
2561 \end_inset
2562
2563 用)・
2564 \begin_inset Flex MenuItem
2565 status collapsed
2566
2567 \begin_layout Plain Layout
2568 pdf2
2569 \end_layout
2570
2571 \end_inset
2572
2573 (
2574 \begin_inset Flex MenuItem
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 pdflatex
2579 \end_layout
2580
2581 \end_inset
2582
2583 用)・
2584 \begin_inset Flex MenuItem
2585 status collapsed
2586
2587 \begin_layout Plain Layout
2588 pdf3
2589 \end_layout
2590
2591 \end_inset
2592
2593 (
2594 \begin_inset Flex MenuItem
2595 status collapsed
2596
2597 \begin_layout Plain Layout
2598 dvipdfm
2599 \end_layout
2600
2601 \end_inset
2602
2603 用)・
2604 \begin_inset Flex MenuItem
2605 status collapsed
2606
2607 \begin_layout Plain Layout
2608 pdf4
2609 \end_layout
2610
2611 \end_inset
2612
2613 (
2614 \begin_inset Flex MenuItem
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618 Xe\SpecialChar TeX
2619
2620 \end_layout
2621
2622 \end_inset
2623
2624 用)・
2625 \begin_inset Flex MenuItem
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 pdf5
2630 \end_layout
2631
2632 \end_inset
2633
2634 (
2635 \begin_inset Flex MenuItem
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 Lua\SpecialChar TeX
2640
2641 \end_layout
2642
2643 \end_inset
2644
2645 用\SpecialChar softhyphen
2646 ) と命名された形式が定義されていて,すべて共通の拡張子
2647 \begin_inset Flex MenuItem
2648 status collapsed
2649
2650 \begin_layout Plain Layout
2651 .pdf
2652 \end_layout
2653
2654 \end_inset
2655
2656 を持ち,上記で言及した各変換方法に対応しています.
2657 \end_layout
2658
2659 \begin_layout Chapter
2660 \SpecialChar LyX
2661 の各国語対応
2662 \begin_inset CommandInset label
2663 LatexCommand label
2664 name "cha:LyXの各国語対応"
2665
2666 \end_inset
2667
2668
2669 \end_layout
2670
2671 \begin_layout Standard
2672 \SpecialChar LyX
2673 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2674 は30言語の翻訳を提供しています.選択した言語は,使用する
2675 \emph on
2676 ロケール
2677 \emph default
2678 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2679 \begin_inset Flex Code
2680 status collapsed
2681
2682 \begin_layout Plain Layout
2683 locale(5)
2684 \end_layout
2685
2686 \end_inset
2687
2688 から見ると良いかもしれません).
2689 \end_layout
2690
2691 \begin_layout Standard
2692 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2693 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2694 \begin_inset Flex Ruby
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 捷径
2699 \begin_inset Argument post:1
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 ショートカット
2704 \end_layout
2705
2706 \end_inset
2707
2708
2709 \end_layout
2710
2711 \end_inset
2712
2713 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2714 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2715 \begin_inset Foot
2716 status collapsed
2717
2718 \begin_layout Plain Layout
2719 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2720 コミュニティに報いるたいへん素晴らしい方法です!
2721 \end_layout
2722
2723 \end_inset
2724
2725 —は,\SpecialChar LyX
2726 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2727 \end_layout
2728
2729 \begin_layout Section
2730 \SpecialChar LyX
2731 を翻訳する
2732 \end_layout
2733
2734 \begin_layout Subsection
2735 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2736 \begin_inset Argument 1
2737 status collapsed
2738
2739 \begin_layout Plain Layout
2740 GUI(テキストメッセージ)を翻訳する
2741 \end_layout
2742
2743 \end_inset
2744
2745
2746 \end_layout
2747
2748 \begin_layout Standard
2749 \SpecialChar LyX
2750 は,操作画面の国際化対応にGNU 
2751 \begin_inset Flex Code
2752 status collapsed
2753
2754 \begin_layout Plain Layout
2755 gettext
2756 \end_layout
2757
2758 \end_inset
2759
2760 ライブラリを使用します.\SpecialChar LyX
2761 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2762 \begin_inset Flex Code
2763 status collapsed
2764
2765 \begin_layout Plain Layout
2766 po
2767 \end_layout
2768
2769 \end_inset
2770
2771 ファイルが必要です.このファイルが利用可能であれば,そこから
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 mo
2777 \end_layout
2778
2779 \end_inset
2780
2781 ファイルを生成して,この
2782 \begin_inset Flex Code
2783 status collapsed
2784
2785 \begin_layout Plain Layout
2786 mo
2787 \end_layout
2788
2789 \end_inset
2790
2791 ファイルをインストールしなくてはなりません.この全過程は,GNU 
2792 \begin_inset Flex Code
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796 gettext
2797 \end_layout
2798
2799 \end_inset
2800
2801 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2802 コミュニティの他の人々と分かち
2803 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2804 開発者メーリングリストにメールを送ってください.
2805 \end_layout
2806
2807 \begin_layout Standard
2808 要約すれば,以下のように行います(xxは言語コードを表します).
2809 \end_layout
2810
2811 \begin_layout Itemize
2812 \SpecialChar LyX
2813 ソースコードをチェックアウトしてください(
2814 \begin_inset CommandInset href
2815 LatexCommand href
2816 name "ウェブ上の情報"
2817 target "https://www.lyx.org/HowToUseGIT"
2818 literal "false"
2819
2820 \end_inset
2821
2822 参照).
2823 \end_layout
2824
2825 \begin_layout Itemize
2826 \begin_inset Flex Code
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 lyx.pot
2831 \end_layout
2832
2833 \end_inset
2834
2835 ファイルを
2836 \begin_inset Flex Code
2837 status collapsed
2838
2839 \begin_layout Plain Layout
2840 **.po
2841 \end_layout
2842
2843 \end_inset
2844
2845 ファイルのあるフォルダにコピーして,
2846 \begin_inset Flex Code
2847 status collapsed
2848
2849 \begin_layout Plain Layout
2850 xx.po
2851 \end_layout
2852
2853 \end_inset
2854
2855 に名前を付け替えてください(
2856 \begin_inset Flex Code
2857 status collapsed
2858
2859 \begin_layout Plain Layout
2860 lyx.pot
2861 \end_layout
2862
2863 \end_inset
2864
2865 がどこにもない場合には,コンソールからそのディレクトリで
2866 \begin_inset Flex Code
2867 status collapsed
2868
2869 \begin_layout Plain Layout
2870 make lyx.pot
2871 \end_layout
2872
2873 \end_inset
2874
2875 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2876 \end_layout
2877
2878 \begin_layout Itemize
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 xx.po
2884 \end_layout
2885
2886 \end_inset
2887
2888 を編集します.
2889 \begin_inset Foot
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2894 \family typewriter
2895 Poedit
2896 \family default
2897 (全プラットフォーム用)や
2898 \family typewriter
2899 KBabel
2900 \family default
2901 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2902 \family typewriter
2903 Emacs
2904 \family default
2905 にも
2906 \begin_inset Flex Code
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910 po
2911 \end_layout
2912
2913 \end_inset
2914
2915 ファイルを編集するための「モード」があります,第
2916 \begin_inset Flex URL
2917 status open
2918
2919 \begin_layout Plain Layout
2920
2921 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
2922 \end_layout
2923
2924 \end_inset
2925
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2932 \begin_inset Flex Ruby
2933 status collapsed
2934
2935 \begin_layout Plain Layout
2936 捷径
2937 \begin_inset Argument post:1
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 ショートカット
2942 \end_layout
2943
2944 \end_inset
2945
2946
2947 \end_layout
2948
2949 \end_inset
2950
2951 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2952 \begin_inset Flex Code
2953 status collapsed
2954
2955 \begin_layout Plain Layout
2956 po
2957 \end_layout
2958
2959 \end_inset
2960
2961 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2962 \end_layout
2963
2964 \begin_layout Standard
2965 もし,あなたがこれを自身のためだけに行っているのであれば,
2966 \end_layout
2967
2968 \begin_layout Itemize
2969 \begin_inset Flex Code
2970 status collapsed
2971
2972 \begin_layout Plain Layout
2973 xx.mo
2974 \end_layout
2975
2976 \end_inset
2977
2978 を生成してください.これは
2979 \begin_inset Flex Code
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 msgfmt -o xx.mo < xx.po
2984 \end_layout
2985
2986 \end_inset
2987
2988 でできます.
2989 \end_layout
2990
2991 \begin_layout Itemize
2992 この
2993 \begin_inset Flex Code
2994 status collapsed
2995
2996 \begin_layout Plain Layout
2997 mo
2998 \end_layout
2999
3000 \end_inset
3001
3002 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3003 \begin_inset Flex Code
3004 status collapsed
3005
3006 \begin_layout Plain Layout
3007 lyx.mo
3008 \end_layout
3009
3010 \end_inset
3011
3012 という名称にしてください(例:
3013 \begin_inset Flex Code
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3018 \end_layout
3019
3020 \end_inset
3021
3022 ).
3023 \end_layout
3024
3025 \begin_layout Standard
3026 しかしながら前述のように,この新しい
3027 \begin_inset Flex Code
3028 status collapsed
3029
3030 \begin_layout Plain Layout
3031 po
3032 \end_layout
3033
3034 \end_inset
3035
3036 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3037 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3038 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3039 グリストに電子メールを送ってください.
3040 \end_layout
3041
3042 \begin_layout Subsubsection
3043 多義訳語メッセージ
3044 \end_layout
3045
3046 \begin_layout Standard
3047 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 To
3053 \end_layout
3054
3055 \end_inset
3056
3057 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU 
3058 \begin_inset Flex Code
3059 status collapsed
3060
3061 \begin_layout Plain Layout
3062 gettext
3063 \end_layout
3064
3065 \end_inset
3066
3067 は,このような多義訳語を
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 To
3073 \end_layout
3074
3075 \end_inset
3076
3077 の代わりに,
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 To[[as in 'From format x to format y']]
3083 \end_layout
3084
3085 \end_inset
3086
3087
3088 \begin_inset Flex Code
3089 status collapsed
3090
3091 \begin_layout Plain Layout
3092 To[[as in 'From page x to page y']]
3093 \end_layout
3094
3095 \end_inset
3096
3097 としなくてはなりません.これによって,これら2つの
3098 \begin_inset Flex Code
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 To
3103 \end_layout
3104
3105 \end_inset
3106
3107 は,
3108 \begin_inset Flex Code
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 gettext
3113 \end_layout
3114
3115 \end_inset
3116
3117 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3118 \end_layout
3119
3120 \begin_layout Standard
3121 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3122 の翻訳機構
3123 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3124 \end_layout
3125
3126 \begin_layout Subsection
3127 説明書を翻訳する
3128 \end_layout
3129
3130 \begin_layout Standard
3131
3132 \begin_inset Flex MenuItem
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 Help
3137 \end_layout
3138
3139 \end_inset
3140
3141 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3142 \begin_inset Foot
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3147 \end_layout
3148
3149 \end_inset
3150
3151 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3152 はこれを自動的に使用します.\SpecialChar LyX
3153 は,翻訳版を
3154 \begin_inset Flex Code
3155 status collapsed
3156
3157 \begin_layout Plain Layout
3158 LyXDir/doc/xx/DocName.lyx
3159 \end_layout
3160
3161 \end_inset
3162
3163
3164 \begin_inset Flex Code
3165 status collapsed
3166
3167 \begin_layout Plain Layout
3168 xx
3169 \end_layout
3170
3171 \end_inset
3172
3173 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3174 \begin_inset Flex Code
3175 status collapsed
3176
3177 \begin_layout Plain Layout
3178 DocName
3179 \end_layout
3180
3181 \end_inset
3182
3183 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3184 うべきです.
3185 \end_layout
3186
3187 \begin_layout Itemize
3188 説明書翻訳ウェブページ
3189 \begin_inset CommandInset href
3190 LatexCommand href
3191 name "https://www.lyx.org/Translation"
3192 target "https://www.lyx.org/Translation"
3193 literal "false"
3194
3195 \end_inset
3196
3197 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3198 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3199 \end_layout
3200
3201 \begin_layout Standard
3202 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3203 \end_layout
3204
3205 \begin_layout Itemize
3206 文書化チームに所属してください!そのための情報が
3207 \begin_inset Flex Code
3208 status collapsed
3209
3210 \begin_layout Plain Layout
3211 Intro.lyx
3212 \end_layout
3213
3214 \end_inset
3215
3216
3217 \begin_inset Flex MenuItem
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221 ヘルプ\SpecialChar menuseparator
3222 はじめの一歩
3223 \end_layout
3224
3225 \end_inset
3226
3227 )にあります.また,この
3228 \begin_inset Flex Code
3229 status collapsed
3230
3231 \begin_layout Plain Layout
3232 Intro.lyx
3233 \end_layout
3234
3235 \end_inset
3236
3237 が最初に訳すべき文書です.
3238 \end_layout
3239
3240 \begin_layout Itemize
3241 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3242 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3243 \emph on
3244 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3245 \emph default
3246
3247 \end_layout
3248
3249 \begin_layout Itemize
3250 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 UserDir/doc/xx/
3256 \end_layout
3257
3258 \end_inset
3259
3260 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3261 \begin_inset Newline newline
3262 \end_inset
3263
3264
3265 \begin_inset Note Greyedout
3266 status open
3267
3268 \begin_layout Plain Layout
3269
3270 \series bold
3271 【註】
3272 \series default
3273 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3274 ことに注意してください.最も良い方法は,LyXツリーをgit (
3275 \begin_inset Flex URL
3276 status collapsed
3277
3278 \begin_layout Plain Layout
3279
3280 https://www.lyx.org/HowToUseGIT
3281 \end_layout
3282
3283 \end_inset
3284
3285 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3286 \end_layout
3287
3288 \end_inset
3289
3290
3291 \end_layout
3292
3293 \begin_layout Itemize
3294 (\SpecialChar LyX
3295 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3296 \begin_inset CommandInset href
3297 LatexCommand href
3298 name "https://www.lyx.org/trac/timeline"
3299 target "https://www.lyx.org/trac/timeline"
3300 literal "false"
3301
3302 \end_inset
3303
3304 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3305 \end_layout
3306
3307 \begin_layout Standard
3308 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3309 \end_layout
3310
3311 \begin_layout Standard
3312 \begin_inset Branch OutDated
3313 inverted 0
3314 status collapsed
3315
3316 \begin_layout Section
3317 International Keyboard Support
3318 \end_layout
3319
3320 \begin_layout Standard
3321
3322 \emph on
3323 [Editor's Note: The following section is by
3324 \emph default
3325  
3326 \shape smallcaps
3327 \emph on
3328 Ivan Schreter
3329 \shape default
3330 .
3331  It needs to be fixed to conform to the new Documentation Style sheet and
3332  to make use of the new v1.0 features.
3333  The whole thing also needs to be merged with the section following it.-jw
3334  It may also be badly out of date.-rh (2008)]
3335 \end_layout
3336
3337 \begin_layout Subsection
3338 Defining Own Keymaps: Keymap File Format
3339 \end_layout
3340
3341 \begin_layout Standard
3342 Let's look at a keyboard definition file a little closer.
3343  It is a plain text file defining
3344 \end_layout
3345
3346 \begin_layout Itemize
3347 key-to-key or key-to-string translations
3348 \end_layout
3349
3350 \begin_layout Itemize
3351 dead keys
3352 \end_layout
3353
3354 \begin_layout Itemize
3355 dead keys exceptions
3356 \end_layout
3357
3358 \begin_layout Standard
3359 To define key-to-key or key-to-string translation, use this command:
3360 \end_layout
3361
3362 \begin_layout Quotation
3363 \begin_inset Flex Code
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367
3368 \backslash
3369 kmap
3370 \end_layout
3371
3372 \end_inset
3373
3374  
3375 \begin_inset Flex Code
3376 status collapsed
3377
3378 \begin_layout Plain Layout
3379 key
3380 \end_layout
3381
3382 \end_inset
3383
3384  outstring 
3385 \end_layout
3386
3387 \begin_layout Standard
3388 where 
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393 key
3394 \end_layout
3395
3396 \end_inset
3397
3398  is the key to be translated and 
3399 \begin_inset Flex Code
3400 status collapsed
3401
3402 \begin_layout Plain Layout
3403 outstring
3404 \end_layout
3405
3406 \end_inset
3407
3408  is the string to be inserted into the document.
3409  To define dead keys, use:
3410 \end_layout
3411
3412 \begin_layout Quotation
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417
3418 \backslash
3419 kmod
3420 \end_layout
3421
3422 \end_inset
3423
3424  
3425 \begin_inset Flex Code
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429 key
3430 \end_layout
3431
3432 \end_inset
3433
3434  deadkey
3435 \end_layout
3436
3437 \begin_layout Standard
3438 where 
3439 \begin_inset Flex Code
3440 status collapsed
3441
3442 \begin_layout Plain Layout
3443 key
3444 \end_layout
3445
3446 \end_inset
3447
3448  is a keyboard key and 
3449 \begin_inset Flex Code
3450 status collapsed
3451
3452 \begin_layout Plain Layout
3453 deadkey
3454 \end_layout
3455
3456 \end_inset
3457
3458  is dead key name.
3459  The following dead keys are supported (shortcut name is in parentheses):
3460 \end_layout
3461
3462 \begin_layout Quotation
3463
3464 \emph on
3465 Name
3466 \begin_inset space \hfill{}
3467 \end_inset
3468
3469 Example
3470 \end_layout
3471
3472 \begin_layout Quotation
3473 acute (acu)
3474 \begin_inset space \hfill{}
3475 \end_inset
3476
3477
3478 \lang english
3479 áéíóú
3480 \end_layout
3481
3482 \begin_layout Quotation
3483 grave (gra)
3484 \begin_inset space \hfill{}
3485 \end_inset
3486
3487
3488 \lang english
3489 àèìòù
3490 \end_layout
3491
3492 \begin_layout Quotation
3493 macron (mac)
3494 \begin_inset space \hfill{}
3495 \end_inset
3496
3497
3498 \lang english
3499  ō
3500 \end_layout
3501
3502 \begin_layout Quotation
3503 tilde (til)
3504 \begin_inset space \hfill{}
3505 \end_inset
3506
3507
3508 \lang english
3509 ñÑ
3510 \end_layout
3511
3512 \begin_layout Quotation
3513 underbar (underb)
3514 \begin_inset space \hfill{}
3515 \end_inset
3516
3517
3518 \begin_inset ERT
3519 status open
3520
3521 \begin_layout Plain Layout
3522
3523
3524 \backslash
3525 b o
3526 \end_layout
3527
3528 \end_inset
3529
3530
3531 \end_layout
3532
3533 \begin_layout Quotation
3534 cedilla (ced)
3535 \begin_inset space \hfill{}
3536 \end_inset
3537
3538
3539 \lang english
3540 çÇ
3541 \end_layout
3542
3543 \begin_layout Quotation
3544 underdot (underd)
3545 \begin_inset space \hfill{}
3546 \end_inset
3547
3548
3549 \begin_inset ERT
3550 status open
3551
3552 \begin_layout Plain Layout
3553
3554
3555 \backslash
3556 d o
3557 \end_layout
3558
3559 \end_inset
3560
3561
3562 \end_layout
3563
3564 \begin_layout Quotation
3565 circumflex (circu)
3566 \begin_inset space \hfill{}
3567 \end_inset
3568
3569
3570 \lang english
3571 âêîôû
3572 \end_layout
3573
3574 \begin_layout Quotation
3575 circle (circl)
3576 \begin_inset space \hfill{}
3577 \end_inset
3578
3579
3580 \lang english
3581 ÅůŮ
3582 \end_layout
3583
3584 \begin_layout Quotation
3585 tie (tie)
3586 \begin_inset space \hfill{}
3587 \end_inset
3588
3589
3590 \begin_inset ERT
3591 status open
3592
3593 \begin_layout Plain Layout
3594
3595
3596 \backslash
3597 t o
3598 \end_layout
3599
3600 \end_inset
3601
3602
3603 \end_layout
3604
3605 \begin_layout Quotation
3606 breve (bre)
3607 \begin_inset space \hfill{}
3608 \end_inset
3609
3610
3611 \lang english
3612 ă
3613 \lang japanese
3614
3615 \begin_inset ERT
3616 status open
3617
3618 \begin_layout Plain Layout
3619
3620
3621 \backslash
3622 u o
3623 \end_layout
3624
3625 \end_inset
3626
3627
3628 \end_layout
3629
3630 \begin_layout Quotation
3631 caron (car)
3632 \begin_inset space \hfill{}
3633 \end_inset
3634
3635
3636 \lang english
3637 čšž
3638 \end_layout
3639
3640 \begin_layout Quotation
3641 hungarian umlaut (hug)
3642 \begin_inset space \hfill{}
3643 \end_inset
3644
3645
3646 \lang english
3647 őű
3648 \end_layout
3649
3650 \begin_layout Quotation
3651 umlaut (uml)
3652 \begin_inset space \hfill{}
3653 \end_inset
3654
3655
3656 \lang english
3657 äöü
3658 \end_layout
3659
3660 \begin_layout Quotation
3661 dot (dot)
3662 \begin_inset space \hfill{}
3663 \end_inset
3664
3665
3666 \lang english
3667 ż
3668 \lang japanese
3669
3670 \begin_inset ERT
3671 status open
3672
3673 \begin_layout Plain Layout
3674
3675
3676 \backslash
3677 .s
3678 \end_layout
3679
3680 \end_inset
3681
3682
3683 \end_layout
3684
3685 \begin_layout Standard
3686 Since in many international keyboards there are exceptions to what some
3687  dead keys should do, you can define them using
3688 \end_layout
3689
3690 \begin_layout Quotation
3691 \begin_inset Flex Code
3692 status collapsed
3693
3694 \begin_layout Plain Layout
3695
3696 \backslash
3697 kxmod
3698 \end_layout
3699
3700 \end_inset
3701
3702  deadkey key outstring
3703 \end_layout
3704
3705 \begin_layout Standard
3706 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3707 , so you put in
3708 \end_layout
3709
3710 \begin_layout Quotation
3711 \begin_inset Flex Code
3712 status collapsed
3713
3714 \begin_layout Plain Layout
3715
3716 \backslash
3717 kxmod
3718 \end_layout
3719
3720 \end_inset
3721
3722  caron o "
3723 \backslash
3724 ^o"
3725 \end_layout
3726
3727 \begin_layout Standard
3728 to make it work correctly.
3729  Also, you have to define as exceptions dead keys over i and j, to remove
3730  the dot from them before inserting an accent mark.
3731  I will change this when the time comes, but so far I haven't had time.
3732 \end_layout
3733
3734 \begin_layout Standard
3735 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3736  double backslash.
3737  Also, quotes and 
3738 \begin_inset Flex Code
3739 status collapsed
3740
3741 \begin_layout Plain Layout
3742 #
3743 \end_layout
3744
3745 \end_inset
3746
3747  have different meaning.
3748  
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 #
3754 \end_layout
3755
3756 \end_inset
3757
3758  marks comments, quotes start and end \SpecialChar LaTeX
3759 -style commands.
3760  To enter quote, you'll need to use 
3761 \begin_inset Flex Code
3762 status collapsed
3763
3764 \begin_layout Plain Layout
3765
3766 \backslash
3767 "
3768 \end_layout
3769
3770 \end_inset
3771
3772 , to enter 
3773 \begin_inset Flex Code
3774 status collapsed
3775
3776 \begin_layout Plain Layout
3777 #
3778 \end_layout
3779
3780 \end_inset
3781
3782 , use 
3783 \begin_inset Flex Code
3784 status collapsed
3785
3786 \begin_layout Plain Layout
3787
3788 \backslash
3789 #
3790 \end_layout
3791
3792 \end_inset
3793
3794 .
3795 \end_layout
3796
3797 \begin_layout Standard
3798 If you make a keyboard description file that works for your language, please
3799  mail it to me, so I can include it in the next keymap distribution.
3800 \end_layout
3801
3802 \begin_layout Standard
3803 More keywords will be supported in keymap configuration file in future,
3804  like
3805 \end_layout
3806
3807 \begin_layout Itemize
3808 \begin_inset Flex Code
3809 status collapsed
3810
3811 \begin_layout Plain Layout
3812
3813 \backslash
3814 kinclude filename
3815 \end_layout
3816
3817 \end_inset
3818
3819
3820 \emph on
3821
3822 \begin_inset space \hfill{}
3823 \end_inset
3824
3825
3826 \begin_inset Flex Code
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 include
3831 \end_layout
3832
3833 \end_inset
3834
3835  another file
3836 \end_layout
3837
3838 \begin_layout Itemize
3839 \begin_inset Flex Code
3840 status collapsed
3841
3842 \begin_layout Plain Layout
3843
3844 \backslash
3845 kprog program
3846 \end_layout
3847
3848 \end_inset
3849
3850
3851 \emph on
3852
3853 \begin_inset space \hfill{}
3854 \end_inset
3855
3856
3857 \begin_inset Flex Code
3858 status collapsed
3859
3860 \begin_layout Plain Layout
3861 define
3862 \end_layout
3863
3864 \end_inset
3865
3866  an external keymap translation program 
3867 \end_layout
3868
3869 \begin_layout Standard
3870 Also, it should look into 
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 lyxrc
3876 \end_layout
3877
3878 \end_inset
3879
3880  file for defaults, too (for example, a 
3881 \begin_inset Flex Code
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885
3886 \backslash
3887 kinclude
3888 \end_layout
3889
3890 \end_inset
3891
3892  option to include default keyboard).
3893 \end_layout
3894
3895 \end_inset
3896
3897
3898 \end_layout
3899
3900 \begin_layout Section
3901 国際キー配列
3902 \begin_inset CommandInset label
3903 LatexCommand label
3904 name "sec:国際キー配列"
3905
3906 \end_inset
3907
3908
3909 \end_layout
3910
3911 \begin_layout Standard
3912 \begin_inset Note Note
3913 status open
3914
3915 \begin_layout Plain Layout
3916 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3917 \end_layout
3918
3919 \begin_layout Plain Layout
3920 (RH)
3921 \end_layout
3922
3923 \end_inset
3924
3925
3926 \end_layout
3927
3928 \begin_layout Standard
3929 以下の2節では,
3930 \begin_inset Flex Code
3931 status collapsed
3932
3933 \begin_layout Plain Layout
3934 .kmap
3935 \end_layout
3936
3937 \end_inset
3938
3939 および
3940 \begin_inset Flex Code
3941 status collapsed
3942
3943 \begin_layout Plain Layout
3944 .cdef
3945 \end_layout
3946
3947 \end_inset
3948
3949 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3950 \end_layout
3951
3952 \begin_layout Subsection
3953 .kmapファイル
3954 \end_layout
3955
3956 \begin_layout Standard
3957 \begin_inset Flex Code
3958 status collapsed
3959
3960 \begin_layout Plain Layout
3961 .kmap
3962 \end_layout
3963
3964 \end_inset
3965
3966 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3967 \begin_inset Flex Code
3968 status collapsed
3969
3970 \begin_layout Plain Layout
3971 .kmap
3972 \end_layout
3973
3974 \end_inset
3975
3976 ファイルは,以下の各項で説明するように,
3977 \begin_inset Flex Code
3978 status collapsed
3979
3980 \begin_layout Plain Layout
3981 kmap
3982 \end_layout
3983
3984 \end_inset
3985
3986
3987 \begin_inset Flex Code
3988 status collapsed
3989
3990 \begin_layout Plain Layout
3991 kmod
3992 \end_layout
3993
3994 \end_inset
3995
3996
3997 \begin_inset Flex Code
3998 status collapsed
3999
4000 \begin_layout Plain Layout
4001 ksmod
4002 \end_layout
4003
4004 \end_inset
4005
4006
4007 \begin_inset Flex Code
4008 status collapsed
4009
4010 \begin_layout Plain Layout
4011 kcomb
4012 \end_layout
4013
4014 \end_inset
4015
4016 のキーワードを定義します.
4017 \end_layout
4018
4019 \begin_layout Labeling
4020 \labelwidthstring 00.00.0000
4021 \begin_inset Flex Code
4022 status collapsed
4023
4024 \begin_layout Plain Layout
4025 kmap
4026 \end_layout
4027
4028 \end_inset
4029
4030  文字を文字列に割り当てる
4031 \end_layout
4032
4033 \begin_layout LyX-Code
4034
4035 \backslash
4036 kmap 
4037 \family roman
4038 \emph on
4039 文字
4040 \family default
4041 \emph default
4042  
4043 \family roman
4044 \emph on
4045 文字列
4046 \end_layout
4047
4048 \begin_layout Standard
4049 これは,
4050 \emph on
4051 文字
4052 \emph default
4053
4054 \emph on
4055 文字列
4056 \emph default
4057 に割り当てます.
4058 \emph on
4059 文字列
4060 \emph default
4061 中では,二重引用符(")とバックスラッシュ(
4062 \backslash
4063 )は,前にバックスラッシュ(
4064 \backslash
4065 )を付けてエスケープしなくてはならないことに注意してください.
4066 \end_layout
4067
4068 \begin_layout Standard
4069 \begin_inset Flex MenuItem
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073 &
4074 \end_layout
4075
4076 \end_inset
4077
4078 を打鍵すると
4079 \begin_inset Flex MenuItem
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 /
4084 \end_layout
4085
4086 \end_inset
4087
4088 記号が出力される
4089 \begin_inset Flex MenuItem
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 kmap
4094 \end_layout
4095
4096 \end_inset
4097
4098 ステートメントを,一例としてあげると,
4099 \end_layout
4100
4101 \begin_layout LyX-Code
4102
4103 \backslash
4104 kmap & /
4105 \end_layout
4106
4107 \begin_layout Standard
4108 のようになります.
4109 \end_layout
4110
4111 \begin_layout Labeling
4112 \labelwidthstring 00.00.0000
4113 \begin_inset Flex Code
4114 status collapsed
4115
4116 \begin_layout Plain Layout
4117 kmod
4118 \end_layout
4119
4120 \end_inset
4121
4122  アクセント文字を指定する
4123 \end_layout
4124
4125 \begin_layout LyX-Code
4126
4127 \backslash
4128 kmod 
4129 \family roman
4130 \emph on
4131 文字 アクセント 許可文字
4132 \end_layout
4133
4134 \begin_layout Standard
4135 これは
4136 \emph on
4137 文字
4138 \emph default
4139
4140 \emph on
4141 許可文字
4142 \emph default
4143 のアクセントとするものです.これはデッドキー
4144 \begin_inset Foot
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148
4149 \emph on
4150 デッドキー
4151 \emph default
4152 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4153 \emph on
4154 ä
4155 \emph default
4156 のようなウムラウトのついた文字は,このようにして出すことができます.
4157 \end_layout
4158
4159 \end_inset
4160
4161 機構です.
4162 \end_layout
4163
4164 \begin_layout Standard
4165
4166 \emph on
4167 文字
4168 \emph default
4169 を打鍵してから
4170 \emph on
4171 許可文字
4172 \emph default
4173 にないキーを打鍵すると,
4174 \emph on
4175 文字
4176 \emph default
4177 の後に許可文字ではないその文字が出力として表示されます.
4178 \begin_inset Flex MenuItem
4179 status collapsed
4180
4181 \begin_layout Plain Layout
4182 Backspace
4183 \end_layout
4184
4185 \end_inset
4186
4187 はデッドキーを取り消しますので,
4188 \emph on
4189 文字
4190 \emph default
4191
4192 \begin_inset Flex MenuItem
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196 Backspace
4197 \end_layout
4198
4199 \end_inset
4200
4201 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4202 \end_layout
4203
4204 \begin_layout Standard
4205 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4206 \end_layout
4207
4208 \begin_layout LyX-Code
4209
4210 \backslash
4211 kmod ' acute aeiouAEIOU
4212 \end_layout
4213
4214 \begin_layout Labeling
4215 \labelwidthstring 00.00.0000
4216 \begin_inset Flex Code
4217 status collapsed
4218
4219 \begin_layout Plain Layout
4220 ksmod
4221 \end_layout
4222
4223 \end_inset
4224
4225  アクセント文字に例外を指定する
4226 \end_layout
4227
4228 \begin_layout LyX-Code
4229
4230 \backslash
4231 kxmod  
4232 \family roman
4233 \emph on
4234 アクセント 文字 結果
4235 \end_layout
4236
4237 \begin_layout Standard
4238 これは
4239 \emph on
4240 文字
4241 \emph default
4242 上の
4243 \emph on
4244 アクセント
4245 \emph default
4246 について例外を指定するものです.ここで
4247 \emph on
4248 アクセント
4249 \emph default
4250 には,前出の
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255
4256 \backslash
4257 kmod
4258 \end_layout
4259
4260 \end_inset
4261
4262 宣言で打鍵キーを既に割り当てられてなくてはならず,
4263 \emph on
4264 文字
4265 \emph default
4266
4267 \emph on
4268 アクセント
4269 \emph default
4270
4271 \emph on
4272 許可文字
4273 \emph default
4274 の集合に属していてはなりません.こうして
4275 \emph on
4276 アクセント
4277 \emph default
4278
4279 \emph on
4280 文字
4281 \emph default
4282 の順に入力すると,
4283 \emph on
4284 結果
4285 \emph default
4286 が出力されるようになります.
4287 \begin_inset Flex Code
4288 status collapsed
4289
4290 \begin_layout Plain Layout
4291 .kmap
4292 \end_layout
4293
4294 \end_inset
4295
4296 ファイルにこの宣言がない場合には,
4297 \emph on
4298 アクセント
4299 \emph default
4300
4301 \emph on
4302 文字
4303 \emph default
4304 と入力すると,
4305 \emph on
4306 アクセントキー
4307 \emph default
4308
4309 \emph on
4310 文字
4311 \emph default
4312
4313 \emph on
4314 アクセントキー
4315 \emph default
4316
4317 \begin_inset Flex Code
4318 status collapsed
4319
4320 \begin_layout Plain Layout
4321
4322 \backslash
4323 kmod
4324 \end_layout
4325
4326 \end_inset
4327
4328 宣言の最初の変数)と出力されます.
4329 \end_layout
4330
4331 \begin_layout Standard
4332 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4333 \end_layout
4334
4335 \begin_layout LyX-Code
4336
4337 \backslash
4338 kxmod acute i "
4339 \backslash
4340
4341 \backslash
4342 '{
4343 \backslash
4344
4345 \backslash
4346 i}"
4347 \end_layout
4348
4349 \begin_layout Labeling
4350 \labelwidthstring 00.00.0000
4351 \begin_inset Flex Code
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355 kcomb
4356 \end_layout
4357
4358 \end_inset
4359
4360  2つのアクセント文字を結合する
4361 \end_layout
4362
4363 \begin_layout LyX-Code
4364
4365 \backslash
4366 kcomb 
4367 \family roman
4368 \emph on
4369 アクセント1 アクセント2 許可文字
4370 \end_layout
4371
4372 \begin_layout Standard
4373 これはなかなか難解になってきます.これは
4374 \emph on
4375 アクセント1
4376 \emph default
4377
4378 \emph on
4379 アクセント2
4380 \emph default
4381 を(この順番で)結びつけて,
4382 \emph on
4383 許可文字
4384 \emph default
4385 に効果を及ぼすようにします.
4386 \emph on
4387 アクセント1
4388 \emph default
4389
4390 \emph on
4391 アクセント2
4392 \emph default
4393 の打鍵キーは,ファイル内のこのコマンド
4394 \emph on
4395 よりも前に
4396 \emph default
4397
4398 \begin_inset Flex Code
4399 status collapsed
4400
4401 \begin_layout Plain Layout
4402
4403 \backslash
4404 kmod
4405 \end_layout
4406
4407 \end_inset
4408
4409 コマンドで設定されていなくてはなりません.
4410 \end_layout
4411
4412 \begin_layout Standard
4413 \begin_inset Flex Code
4414 status collapsed
4415
4416 \begin_layout Plain Layout
4417 greek.kmap
4418 \end_layout
4419
4420 \end_inset
4421
4422 ファイル上にある例をとってみましょう.
4423 \end_layout
4424
4425 \begin_layout LyX-Code
4426
4427 \backslash
4428 kmod ; acute aeioyvhAEIOYVH 
4429 \backslash
4430 kmod : umlaut iyIY 
4431 \backslash
4432 kcomb acute umlaut iyIY
4433 \end_layout
4434
4435 \begin_layout Standard
4436 これは
4437 \begin_inset Flex MenuItem
4438 status collapsed
4439
4440 \begin_layout Plain Layout
4441 ;:i
4442 \end_layout
4443
4444 \end_inset
4445
4446 を押すと
4447 \begin_inset Flex Code
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451
4452 \backslash
4453 '{
4454 \backslash
4455 "{i}}
4456 \end_layout
4457
4458 \end_inset
4459
4460 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4461 \begin_inset Flex MenuItem
4462 status collapsed
4463
4464 \begin_layout Plain Layout
4465 ;: Backspace i
4466 \end_layout
4467
4468 \end_inset
4469
4470 と押した場合には,
4471 \begin_inset Flex Code
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475
4476 \backslash
4477 '{i}
4478 \end_layout
4479
4480 \end_inset
4481
4482 となります.
4483 \end_layout
4484
4485 \begin_layout Subsection
4486 .cdefファイル
4487 \end_layout
4488
4489 \begin_layout Standard
4490 \begin_inset Flex Code
4491 status collapsed
4492
4493 \begin_layout Plain Layout
4494 .kmap
4495 \end_layout
4496
4497 \end_inset
4498
4499 による割り当てが行われた後,
4500 \begin_inset Flex Code
4501 status collapsed
4502
4503 \begin_layout Plain Layout
4504 .cdef
4505 \end_layout
4506
4507 \end_inset
4508
4509 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4510 頒布版には,現在のところ,少なくとも
4511 \begin_inset Flex Code
4512 status collapsed
4513
4514 \begin_layout Plain Layout
4515 iso8859-1.cdef
4516 \end_layout
4517
4518 \end_inset
4519
4520 ファイルと
4521 \begin_inset Flex Code
4522 status collapsed
4523
4524 \begin_layout Plain Layout
4525 iso8859-2.cdef
4526 \end_layout
4527
4528 \end_inset
4529
4530 ファイルが含まれています.
4531 \end_layout
4532
4533 \begin_layout Standard
4534 一般的に
4535 \begin_inset Flex Code
4536 status collapsed
4537
4538 \begin_layout Plain Layout
4539 .cdef
4540 \end_layout
4541
4542 \end_inset
4543
4544 ファイルは,
4545 \end_layout
4546
4547 \begin_layout LyX-Code
4548
4549 \family roman
4550 \emph on
4551 セット中の文字番号
4552 \family default
4553 \emph default
4554  
4555 \family roman
4556 \emph on
4557  文字列
4558 \end_layout
4559
4560 \begin_layout Standard
4561 という形の宣言の羅列です.たとえば,
4562 \begin_inset Flex MenuItem
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566
4567 \backslash
4568 '{e}
4569 \end_layout
4570
4571 \end_inset
4572
4573 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4574 \end_layout
4575
4576 \begin_layout LyX-Code
4577 233 "
4578 \backslash
4579
4580 \backslash
4581 '{e}"
4582 \end_layout
4583
4584 \begin_layout Standard
4585 ここで,
4586 \emph on
4587 文字列
4588 \emph default
4589 中の
4590 \begin_inset Flex Code
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594
4595 \backslash
4596
4597 \end_layout
4598
4599 \end_inset
4600
4601
4602 \begin_inset Flex Code
4603 status collapsed
4604
4605 \begin_layout Plain Layout
4606 "
4607 \end_layout
4608
4609 \end_inset
4610
4611 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4612 \begin_inset Flex Code
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 iso-8859-7.cdef
4617 \end_layout
4618
4619 \end_inset
4620
4621 ファイルには,
4622 \end_layout
4623
4624 \begin_layout LyX-Code
4625 192 "
4626 \backslash
4627
4628 \backslash
4629 '{
4630 \backslash
4631
4632 \backslash
4633
4634 \backslash
4635 "{i}}"
4636 \begin_inset Newline newline
4637 \end_inset
4638
4639 192 "
4640 \backslash
4641
4642 \backslash
4643
4644 \backslash
4645 "{
4646 \backslash
4647
4648 \backslash
4649 '{i}}"
4650 \end_layout
4651
4652 \begin_layout Standard
4653 という例があります.\SpecialChar LyX
4654 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4655 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4656 \end_layout
4657
4658 \begin_layout Subsection
4659 デッドキー
4660 \end_layout
4661
4662 \begin_layout Standard
4663 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4664 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4665 \end_layout
4666
4667 \begin_layout Standard
4668 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4669 \begin_inset Flex Code
4670 status collapsed
4671
4672 \begin_layout Plain Layout
4673 lyxrc
4674 \end_layout
4675
4676 \end_inset
4677
4678 ファイル中で,
4679 \begin_inset Flex MenuItem
4680 status collapsed
4681
4682 \begin_layout Plain Layout
4683 ^
4684 \end_layout
4685
4686 \end_inset
4687
4688 キー(すなわち
4689 \begin_inset Flex MenuItem
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693 Shift-6
4694 \end_layout
4695
4696 \end_inset
4697
4698 キー)を,\SpecialChar LyX
4699 コマンドの
4700 \begin_inset Flex Code
4701 status collapsed
4702
4703 \begin_layout Plain Layout
4704 accent-circumflex
4705 \end_layout
4706
4707 \end_inset
4708
4709 に結びつけることができます.すると
4710 \begin_inset Flex MenuItem
4711 status collapsed
4712
4713 \begin_layout Plain Layout
4714 ^
4715 \end_layout
4716
4717 \end_inset
4718
4719 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4720 \begin_inset Flex MenuItem
4721 status collapsed
4722
4723 \begin_layout Plain Layout
4724 ^e
4725 \end_layout
4726
4727 \end_inset
4728
4729 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4730 \begin_inset Flex MenuItem
4731 status collapsed
4732
4733 \begin_layout Plain Layout
4734 ^t
4735 \end_layout
4736
4737 \end_inset
4738
4739 」と打鍵したならば,「
4740 \begin_inset Flex MenuItem
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744 t
4745 \end_layout
4746
4747 \end_inset
4748
4749 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4750 はビープを鳴らして文句を付けます.デッドキーの後に
4751 \begin_inset Flex MenuItem
4752 status collapsed
4753
4754 \begin_layout Plain Layout
4755 スペース
4756 \end_layout
4757
4758 \end_inset
4759
4760 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4761 あります.たとえば,
4762 \begin_inset Flex MenuItem
4763 status collapsed
4764
4765 \begin_layout Plain Layout
4766 ,キー
4767 \end_layout
4768
4769 \end_inset
4770
4771 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4772 \end_layout
4773
4774 \begin_layout Standard
4775 デッドキーを割り当てるのによく用いられる方法は,
4776 \begin_inset Flex MenuItem
4777 status collapsed
4778
4779 \begin_layout Plain Layout
4780 Meta-
4781 \end_layout
4782
4783 \end_inset
4784
4785
4786 \begin_inset Flex MenuItem
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 Ctrl-
4791 \end_layout
4792
4793 \end_inset
4794
4795
4796 \begin_inset Flex MenuItem
4797 status collapsed
4798
4799 \begin_layout Plain Layout
4800 Shift-
4801 \end_layout
4802
4803 \end_inset
4804
4805 キーを,「
4806 \begin_inset Flex MenuItem
4807 status collapsed
4808
4809 \begin_layout Plain Layout
4810 ~
4811 \end_layout
4812
4813 \end_inset
4814
4815 」・「
4816 \begin_inset Flex MenuItem
4817 status collapsed
4818
4819 \begin_layout Plain Layout
4820 ,
4821 \end_layout
4822
4823 \end_inset
4824
4825 」・「
4826 \begin_inset Flex MenuItem
4827 status collapsed
4828
4829 \begin_layout Plain Layout
4830 ^
4831 \end_layout
4832
4833 \end_inset
4834
4835 」のようなアクセントと一緒に用いる方法です.また,
4836 \begin_inset Flex Code
4837 status collapsed
4838
4839 \begin_layout Plain Layout
4840 xmodmap
4841 \end_layout
4842
4843 \end_inset
4844
4845
4846 \begin_inset Flex Code
4847 status collapsed
4848
4849 \begin_layout Plain Layout
4850 xkeycaps
4851 \end_layout
4852
4853 \end_inset
4854
4855 を使って,特別な
4856 \begin_inset Flex Code
4857 status collapsed
4858
4859 \begin_layout Plain Layout
4860 Mode_Switch
4861 \end_layout
4862
4863 \end_inset
4864
4865 キーを設定する方法もあります.
4866 \begin_inset Flex Code
4867 status collapsed
4868
4869 \begin_layout Plain Layout
4870 Mode_Switch
4871 \end_layout
4872
4873 \end_inset
4874
4875 キーは,ちょうど
4876 \begin_inset Flex MenuItem
4877 status collapsed
4878
4879 \begin_layout Plain Layout
4880 Shift
4881 \end_layout
4882
4883 \end_inset
4884
4885 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890 usldead_cedilla
4891 \end_layout
4892
4893 \end_inset
4894
4895 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4896 コマンドに割り当てることもできます
4897 \begin_inset Foot
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901
4902 \noun on
4903 John Weiss
4904 \noun default
4905 からの註:これはまさに私が,自分の
4906 \begin_inset Flex Code
4907 status collapsed
4908
4909 \begin_layout Plain Layout
4910 ~/.lyx/lyxrc
4911 \end_layout
4912
4913 \end_inset
4914
4915
4916 \begin_inset Flex Code
4917 status collapsed
4918
4919 \begin_layout Plain Layout
4920 ~/.xmodmap
4921 \end_layout
4922
4923 \end_inset
4924
4925 で行っていることです.私は,
4926 \begin_inset Flex MenuItem
4927 status collapsed
4928
4929 \begin_layout Plain Layout
4930 Scroll
4931 \begin_inset space ~
4932 \end_inset
4933
4934 Lock
4935 \end_layout
4936
4937 \end_inset
4938
4939 キーを
4940 \begin_inset Flex Code
4941 status collapsed
4942
4943 \begin_layout Plain Layout
4944 Mode_Shift
4945 \end_layout
4946
4947 \end_inset
4948
4949 に仕立てて,多数の
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954 usldead_*
4955 \end_layout
4956
4957 \end_inset
4958
4959 シンボリックキーを
4960 \begin_inset Flex MenuItem
4961 status collapsed
4962
4963 \begin_layout Plain Layout
4964 Scroll
4965 \begin_inset space ~
4966 \end_inset
4967
4968 Lock-^
4969 \end_layout
4970
4971 \end_inset
4972
4973
4974 \begin_inset Flex MenuItem
4975 status collapsed
4976
4977 \begin_layout Plain Layout
4978 Scroll
4979 \begin_inset space ~
4980 \end_inset
4981
4982 Lock-~
4983 \end_layout
4984
4985 \end_inset
4986
4987 などに割り当てています.私はこの方法でアクセント文字を入力しています.
4988 \end_layout
4989
4990 \end_inset
4991
4992 .この
4993 \begin_inset Flex Code
4994 status collapsed
4995
4996 \begin_layout Plain Layout
4997 Mode_Switch
4998 \end_layout
4999
5000 \end_inset
5001
5002 キーには,
5003 \begin_inset Flex MenuItem
5004 status collapsed
5005
5006 \begin_layout Plain Layout
5007 Ctrl-
5008 \end_layout
5009
5010 \end_inset
5011
5012 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5013 コマンドについては,
5014 \emph on
5015 \SpecialChar LyX
5016 関数説明書
5017 \emph default
5018
5019 \begin_inset Flex Code
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023 LFUN_ACCENT_*
5024 \end_layout
5025
5026 \end_inset
5027
5028 の項をご覧ください.ここには完備した一覧があります.
5029 \end_layout
5030
5031 \begin_layout Subsection
5032 自分の言語設定を保存する
5033 \end_layout
5034
5035 \begin_layout Standard
5036 \begin_inset Flex MenuItem
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040 ツール\SpecialChar menuseparator
5041 設定
5042 \end_layout
5043
5044 \end_inset
5045
5046 ダイアログを使えば,\SpecialChar LyX
5047 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5048 \end_layout
5049
5050 \begin_layout Chapter
5051 文書クラス・レイアウト・ひな型の新規導入
5052 \begin_inset CommandInset label
5053 LatexCommand label
5054 name "cha:新規文書を導入"
5055
5056 \end_inset
5057
5058
5059 \begin_inset Argument 1
5060 status collapsed
5061
5062 \begin_layout Plain Layout
5063 文書クラスを新規に導入する
5064 \end_layout
5065
5066 \end_inset
5067
5068
5069 \end_layout
5070
5071 \begin_layout Standard
5072 この章では,新しく\SpecialChar LyX
5073 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5074 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5075 します.
5076 \end_layout
5077
5078 \begin_layout Standard
5079 まず,\SpecialChar LyX
5080 と\SpecialChar LaTeX
5081 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5082 は,La\SpecialChar TeX
5083 について何も知らないと
5084 云うことです.実際のところ,\SpecialChar LyX
5085 の観点からは,\SpecialChar LaTeX
5086 は,\SpecialChar LyX
5087 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5088 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5089 は,とくに重要な形式ですが,\SpecialChar LyX
5090 がLa\SpecialChar TeX
5091 について持っている情報のほとんどは,実はプログラム本体には含まれて
5092 いないのです
5093 \begin_inset Foot
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097 過度に複雑なため,\SpecialChar LyX
5098 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5099 \end_layout
5100
5101 \end_inset
5102
5103 .このような情報は,
5104 \begin_inset Flex Code
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108 article.cls
5109 \end_layout
5110
5111 \end_inset
5112
5113 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5114 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5115 が知っていることは,レイア
5116 ウトファイルの中にあります.
5117 \end_layout
5118
5119 \begin_layout Standard
5120 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5121 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5122 構成体・DocBook構成体・XHTML構成体との
5123 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5124
5125 \begin_inset Flex Code
5126 status collapsed
5127
5128 \begin_layout Plain Layout
5129 article.cls
5130 \end_layout
5131
5132 \end_inset
5133
5134 について知っていることのほとんど総ては,
5135 \begin_inset Flex Code
5136 status collapsed
5137
5138 \begin_layout Plain Layout
5139 article.layout
5140 \end_layout
5141
5142 \end_inset
5143
5144 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5145 としては,
5146 \begin_inset Flex Code
5147 status collapsed
5148
5149 \begin_layout Plain Layout
5150 article.layout
5151 \end_layout
5152
5153 \end_inset
5154
5155
5156 \begin_inset Flex Code
5157 status collapsed
5158
5159 \begin_layout Plain Layout
5160 book.layout
5161 \end_layout
5162
5163 \end_inset
5164
5165 や,文書クラス用の他のレイアウトファイルに取り込まれている
5166 \begin_inset Flex Code
5167 status collapsed
5168
5169 \begin_layout Plain Layout
5170 stdsections.inc
5171 \end_layout
5172
5173 \end_inset
5174
5175 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5176 \begin_inset Flex Code
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180 stdsections.inc
5181 \end_layout
5182
5183 \end_inset
5184
5185 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5186 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5187 に知らせるものです.基本的に
5188 \begin_inset Flex Code
5189 status collapsed
5190
5191 \begin_layout Plain Layout
5192 article.layout
5193 \end_layout
5194
5195 \end_inset
5196
5197 ファイルは,これらの
5198 \begin_inset Flex Code
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 std*.inc
5203 \end_layout
5204
5205 \end_inset
5206
5207 ファイルを取り込んでいるだけのものです.
5208 \end_layout
5209
5210 \begin_layout Standard
5211 しかしながら,\SpecialChar LyX
5212 –\SpecialChar LaTeX
5213 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5214 構成体自身が画面上にどのように表
5215 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5216 ます.ある段落様式を\SpecialChar LaTeX
5217 に翻訳する仕方を\SpecialChar LyX
5218 に指示することは,その表示の仕方を\SpecialChar LyX
5219 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5220 に指示することは,その段落様
5221 式をどのように\SpecialChar LaTeX
5222 に翻訳するかを\SpecialChar LyX
5223 に指示するものではありません(ましてや\SpecialChar LaTeX
5224 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5225 構成体を定義する際には,(
5226 i)
5227 \begin_inset space ~
5228 \end_inset
5229
5230 \SpecialChar LaTeX
5231 にどのように翻訳するかを\SpecialChar LyX
5232 に指示する,(ii)
5233 \begin_inset space ~
5234 \end_inset
5235
5236 それをどのように表示するかを\SpecialChar LyX
5237 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5238 \end_layout
5239
5240 \begin_layout Standard
5241 もちろん,\SpecialChar LyX
5242 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5243 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5244 力するにあたって,当該段落を\SpecialChar LyX
5245 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5246 が内部的に行うことと,外部的に行う物事の間の区
5247 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5248 \begin_inset CommandInset ref
5249 LatexCommand ref
5250 reference "sec:XHTML出力のタグ"
5251
5252 \end_inset
5253
5254 節をご覧ください.
5255 \end_layout
5256
5257 \begin_layout Section
5258 新しい\SpecialChar LaTeX
5259 ファイルの導入
5260 \end_layout
5261
5262 \begin_layout Standard
5263 頒布版によっては,\SpecialChar LyX
5264 で使いたい\SpecialChar LaTeX
5265 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5266 パッケージである,Foil\SpecialChar TeX
5267 がないかもしれません.\SpecialChar TeX
5268 Live(2008年以降)やMiK\SpecialChar TeX
5269 のような最近の\SpecialChar LaTeX
5270 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5271 ースが用意されています.たとえば,MiK\SpecialChar TeX
5272 では,付属の「Package
5273 \begin_inset space ~
5274 \end_inset
5275
5276 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5277 ださい.
5278 \end_layout
5279
5280 \begin_layout Standard
5281 お使いの\SpecialChar LaTeX
5282 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5283 してください.
5284 \end_layout
5285
5286 \begin_layout Enumerate
5287 \begin_inset CommandInset href
5288 LatexCommand href
5289 name "CTAN"
5290 target "http://www.ctan.org/"
5291 literal "false"
5292
5293 \end_inset
5294
5295 などから欲しいパッケージを入手してください.
5296 \end_layout
5297
5298 \begin_layout Enumerate
5299 パッケージに「
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304 .ins
5305 \end_layout
5306
5307 \end_inset
5308
5309 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5310 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5311 \begin_inset Flex Code
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315 latex foiltex.ins
5316 \end_layout
5317
5318 \end_inset
5319
5320 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5321 パッケージは圧縮されていないので,このステップは飛ばすこ
5322 とができます.
5323 \end_layout
5324
5325 \begin_layout Enumerate
5326 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5327 \end_layout
5328
5329 \begin_deeper
5330 \begin_layout Enumerate
5331 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5332 ツリーに導入し,そうでなければ「ユー
5333 ザー」\SpecialChar TeX
5334 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339 texmf.cnf
5340 \end_layout
5341
5342 \end_inset
5343
5344 ファイルを参照してください
5345 \begin_inset Foot
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349 このファイルは,通常
5350 \family sans
5351 $TEXMF/web2c
5352 \family default
5353 ディレクトリにありますが,コマンド
5354 \begin_inset Flex Code
5355 status collapsed
5356
5357 \begin_layout Plain Layout
5358 kpsewhich texmf.cnf
5359 \end_layout
5360
5361 \end_inset
5362
5363 を実行してその場所を見つけることもできます.
5364 \end_layout
5365
5366 \end_inset
5367
5368 .「ローカル」\SpecialChar TeX
5369 ツリーの場所は,
5370 \begin_inset Flex Code
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374 TEXMFLOCAL
5375 \end_layout
5376
5377 \end_inset
5378
5379 変数で定義されており,通常は
5380 \begin_inset Flex Code
5381 status collapsed
5382
5383 \begin_layout Plain Layout
5384 /usr/local/share/texmf/
5385 \end_layout
5386
5387 \end_inset
5388
5389
5390 \begin_inset Flex Code
5391 status collapsed
5392
5393 \begin_layout Plain Layout
5394 /usr/local/texlive/XXXX
5395 \end_layout
5396
5397 \end_inset
5398
5399  (XXXXは導入されている\SpecialChar TeX
5400 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5401 ツリーの場所は,
5402 \begin_inset Flex Code
5403 status collapsed
5404
5405 \begin_layout Plain Layout
5406 TEXMFHOME
5407 \end_layout
5408
5409 \end_inset
5410
5411 で定義されており,通常は
5412 \begin_inset Flex Code
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416 $HOME/texmf/
5417 \end_layout
5418
5419 \end_inset
5420
5421
5422 \begin_inset Flex Code
5423 status collapsed
5424
5425 \begin_layout Plain Layout
5426 $HOME/.texliveXXXX
5427 \end_layout
5428
5429 \end_inset
5430
5431 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5432 ,「ユーザー」ツリーにはこのような制限はありません.
5433 \begin_inset Newline newline
5434 \end_inset
5435
5436 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5437 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5438 \end_layout
5439
5440 \begin_layout Enumerate
5441 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5442 の導入されているフォルダのサブフォルダ
5443 \begin_inset Flex Code
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 ~
5448 \backslash
5449 tex
5450 \backslash
5451 latex
5452 \end_layout
5453
5454 \end_inset
5455
5456 に移動します(MiK\SpecialChar TeX
5457 の既定値では,これは
5458 \begin_inset Flex Code
5459 status collapsed
5460
5461 \begin_layout Plain Layout
5462 ~:Programs
5463 \backslash
5464 MiKTeX
5465 \backslash
5466 tex
5467 \backslash
5468 latex
5469 \end_layout
5470
5471 \end_inset
5472
5473 です)
5474 \begin_inset Foot
5475 status open
5476
5477 \begin_layout Plain Layout
5478 これは,英語版でのみ正しいパスになっています.独語版では
5479 \begin_inset Flex Code
5480 status collapsed
5481
5482 \begin_layout Plain Layout
5483 ~:Programme
5484 \backslash
5485 MiKTeX
5486 \backslash
5487 tex
5488 \backslash
5489 latex
5490 \end_layout
5491
5492 \end_inset
5493
5494 となり,他の言語でも同様です.
5495 \end_layout
5496
5497 \end_inset
5498
5499 .ここに新規フォルダ
5500 \begin_inset Flex Code
5501 status collapsed
5502
5503 \begin_layout Plain Layout
5504 foiltex
5505 \end_layout
5506
5507 \end_inset
5508
5509 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5510 フォルダで同じ
5511 ことを行います.たとえばMiK\SpecialChar TeX
5512
5513 \begin_inset space ~
5514 \end_inset
5515
5516 2.8では,これはWinXP上では
5517 \begin_inset Newline newline
5518 \end_inset
5519
5520
5521 \begin_inset Flex Code
5522 status collapsed
5523
5524 \begin_layout Plain Layout
5525 ~:
5526 \backslash
5527 Documents and Settings
5528 \backslash
5529 <ユーザー名>
5530 \backslash
5531 Application Data
5532 \backslash
5533
5534 \end_layout
5535
5536 \end_inset
5537
5538
5539 \begin_inset Newline newline
5540 \end_inset
5541
5542
5543 \begin_inset Phantom HPhantom
5544 status open
5545
5546 \begin_layout Plain Layout
5547
5548 \family typewriter
5549 ~:
5550 \backslash
5551
5552 \end_layout
5553
5554 \end_inset
5555
5556
5557 \begin_inset Flex Code
5558 status collapsed
5559
5560 \begin_layout Plain Layout
5561 MiKTeX
5562 \backslash
5563 2.8
5564 \backslash
5565 tex
5566 \backslash
5567 latex
5568 \end_layout
5569
5570 \end_inset
5571
5572
5573 \begin_inset Newline newline
5574 \end_inset
5575
5576 フォルダ,WinVista上では
5577 \begin_inset Newline newline
5578 \end_inset
5579
5580
5581 \begin_inset Flex Code
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585 ~:
5586 \backslash
5587 Users
5588 \backslash
5589 <ユーザー名>
5590 \backslash
5591 AppData
5592 \backslash
5593 Roaming
5594 \backslash
5595 2.8
5596 \backslash
5597 MiKTeX
5598 \backslash
5599 tex
5600 \backslash
5601 latex
5602 \end_layout
5603
5604 \end_inset
5605
5606
5607 \begin_inset Newline newline
5608 \end_inset
5609
5610 フォルダになります.
5611 \end_layout
5612
5613 \end_deeper
5614 \begin_layout Enumerate
5615 ここまで来れば,あとは\SpecialChar LaTeX
5616 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5617 頒布版に依存します.
5618 \end_layout
5619
5620 \begin_deeper
5621 \begin_layout Enumerate
5622 \SpecialChar TeX
5623 Liveの場合には,コンソールから
5624 \begin_inset Flex Code
5625 status collapsed
5626
5627 \begin_layout Plain Layout
5628 texhash
5629 \end_layout
5630
5631 \end_inset
5632
5633 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5634 \end_layout
5635
5636 \begin_layout Enumerate
5637 MiK\SpecialChar TeX
5638 では,パッケージを全ユーザー用に導入した場合には,「Settings
5639 \begin_inset space ~
5640 \end_inset
5641
5642 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5643
5644 \end_layout
5645
5646 \end_deeper
5647 \begin_layout Enumerate
5648 最後に,\SpecialChar LyX
5649 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5650 からツール\SpecialChar menuseparator
5651 環境構成メニューを実行して,\SpecialChar LyX
5652 を再起動します.
5653 \end_layout
5654
5655 \begin_layout Standard
5656 これでパッケージが導入されました.この例では,文書クラス
5657 \begin_inset Flex Code
5658 status collapsed
5659
5660 \begin_layout Plain Layout
5661 Slides
5662 \begin_inset space ~
5663 \end_inset
5664
5665 (FoilTeX)
5666 \end_layout
5667
5668 \end_inset
5669
5670
5671 \begin_inset Flex MenuItem
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 文書\SpecialChar menuseparator
5676 設定\SpecialChar menuseparator
5677 文書クラス
5678 \end_layout
5679
5680 \end_inset
5681
5682 で利用可能になっているはずです.
5683 \end_layout
5684
5685 \begin_layout Standard
5686 \begin_inset Flex MenuItem
5687 status collapsed
5688
5689 \begin_layout Plain Layout
5690 文書\SpecialChar menuseparator
5691 設定\SpecialChar menuseparator
5692 文書クラス
5693 \end_layout
5694
5695 \end_inset
5696
5697 メニューに列挙されてもいない\SpecialChar LaTeX
5698 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5699 \end_layout
5700
5701 \begin_layout Section
5702 レイアウトファイルの型
5703 \end_layout
5704
5705 \begin_layout Standard
5706 この節は,レイアウト情報を含む各種\SpecialChar LyX
5707 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5708 がそれらをどのように
5709 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5710 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5711 \end_layout
5712
5713 \begin_layout Standard
5714 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5715 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5716 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5717 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5718 を出していますので,気軽に質問を投げかけてみてください.
5719 \end_layout
5720
5721 \begin_layout Standard
5722 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5723 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5724 文書クラス用の\SpecialChar LyX
5725 レイアウトを作ったり,
5726 他の人々にも有用なモジュールをお書きになった場合には,
5727 \begin_inset CommandInset href
5728 LatexCommand href
5729 name "LyX Wikiのレイアウトに関する節"
5730 target "https://wiki.lyx.org/Layouts/Layouts"
5731 literal "false"
5732
5733 \end_inset
5734
5735 か,\SpecialChar LyX
5736 開発者メーリングリストに投稿して,\SpecialChar LyX
5737 頒布版に同梱することができるようにしてください
5738 \begin_inset Foot
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 \SpecialChar LyX
5743 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5744 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5745 \end_layout
5746
5747 \end_inset
5748
5749
5750 \end_layout
5751
5752 \begin_layout Subsection
5753 レイアウトモジュール
5754 \begin_inset CommandInset label
5755 LatexCommand label
5756 name "subsec:レイアウトモジュール"
5757
5758 \end_inset
5759
5760
5761 \end_layout
5762
5763 \begin_layout Standard
5764 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5765 ,それは
5766 \begin_inset Flex Code
5767 status collapsed
5768
5769 \begin_layout Plain Layout
5770 .layout
5771 \end_layout
5772
5773 \end_inset
5774
5775 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5776 に提供するものを指します.しかしながら,\SpecialChar LyX
5777  1.6以降,レイアウト情報は,拡張子が
5778 \begin_inset Flex Code
5779 status collapsed
5780
5781 \begin_layout Plain Layout
5782 .module
5783 \end_layout
5784
5785 \end_inset
5786
5787 のレイアウト
5788 \emph on
5789 モジュール
5790 \emph default
5791 にも含めることができます.レイアウトが\SpecialChar LaTeX
5792 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5793 パッケージに対応するものであり,
5794 \begin_inset Flex Code
5795 status collapsed
5796
5797 \begin_layout Plain Layout
5798 endnotes
5799 \end_layout
5800
5801 \end_inset
5802
5803 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5804 イアウトで使用できるという意味において,一面,
5805 \begin_inset Flex Code
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 stdsections.inc
5810 \end_layout
5811
5812 \end_inset
5813
5814 等のインクルードファイル
5815 \begin_inset Foot
5816 status collapsed
5817
5818 \begin_layout Plain Layout
5819 これらは任意の拡張子をつけることができますが,慣習的に
5820 \begin_inset Flex Code
5821 status collapsed
5822
5823 \begin_layout Plain Layout
5824 .inc
5825 \end_layout
5826
5827 \end_inset
5828
5829 拡張子が用いられます.
5830 \end_layout
5831
5832 \end_inset
5833
5834 のようなものです.相異なる点といえば,
5835 \begin_inset Flex Code
5836 status collapsed
5837
5838 \begin_layout Plain Layout
5839 article.cls
5840 \end_layout
5841
5842 \end_inset
5843
5844 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5845 \begin_inset Flex MenuItem
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 文書\SpecialChar menuseparator
5850 設定
5851 \end_layout
5852
5853 \end_inset
5854
5855 ダイアログで選択するだけですみます.
5856 \end_layout
5857
5858 \begin_layout Standard
5859 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5860 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5861 \end_layout
5862
5863 \begin_layout Standard
5864 新しいモジュールを作成し,それを
5865 \begin_inset Flex Code
5866 status collapsed
5867
5868 \begin_layout Plain Layout
5869 layout/
5870 \end_layout
5871
5872 \end_inset
5873
5874 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5875 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5876 \begin_inset Flex MenuItem
5877 status collapsed
5878
5879 \begin_layout Plain Layout
5880 文書\SpecialChar menuseparator
5881 設定
5882 \end_layout
5883
5884 \end_inset
5885
5886 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5887 \emph on
5888 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5889 \emph default
5890 .もっと言えば,
5891 \emph on
5892 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5893 \emph default
5894 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5895 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5896 とがあるからです.
5897 \end_layout
5898
5899 \begin_layout Subsubsection
5900 ローカルレイアウト
5901 \end_layout
5902
5903 \begin_layout Standard
5904 \SpecialChar LyX
5905 に於けるモジュールは,\SpecialChar LaTeX
5906 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5907 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5908 \end_layout
5909
5910 \begin_layout Standard
5911 これは,
5912 \family sans
5913 文書\SpecialChar menuseparator
5914 設定\SpecialChar menuseparator
5915 ローカルのレイアウト
5916 \family default
5917 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5918 は,その文書専属のモジュールだと考えることができます.したがって,
5919 \begin_inset Flex Code
5920 status collapsed
5921
5922 \begin_layout Plain Layout
5923 Format
5924 \end_layout
5925
5926 \end_inset
5927
5928 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5929  
5930 \begin_inset Info
5931 type  "lyxinfo"
5932 arg   "version"
5933 \end_inset
5934
5935 では,最新書式は69です)
5936 \end_layout
5937
5938 \begin_layout Standard
5939 \begin_inset Flex Code
5940 status collapsed
5941
5942 \begin_layout Plain Layout
5943 ローカルのレイアウト
5944 \end_layout
5945
5946 \end_inset
5947
5948 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5949 ているかどうかが検証されます.すると,\SpecialChar LyX
5950 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5951 をターミナル(
5952 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5953 \end_layout
5954
5955 \begin_layout Standard
5956 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5957 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5958 \end_layout
5959
5960 \begin_layout Subsection
5961 \begin_inset Flex MenuItem
5962 status collapsed
5963
5964 \begin_layout Plain Layout
5965 .sty
5966 \end_layout
5967
5968 \end_inset
5969
5970 ファイル用のレイアウト
5971 \end_layout
5972
5973 \begin_layout Standard
5974 新しく\SpecialChar LaTeX
5975 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5976 クラス(
5977 \begin_inset Flex Code
5978 status collapsed
5979
5980 \begin_layout Plain Layout
5981 .cls
5982 \end_layout
5983
5984 \end_inset
5985
5986 )ファイルが絡む場合と,スタイル(
5987 \begin_inset Flex Code
5988 status collapsed
5989
5990 \begin_layout Plain Layout
5991 .sty
5992 \end_layout
5993
5994 \end_inset
5995
5996 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
5997 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
5998 が当てはまります.
5999 \end_layout
6000
6001 \begin_layout Standard
6002 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6003 \begin_inset Flex MenuItem
6004 status collapsed
6005
6006 \begin_layout Plain Layout
6007 myclass.sty
6008 \end_layout
6009
6010 \end_inset
6011
6012 という名称で,標準的なクラスである
6013 \begin_inset Flex MenuItem
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 report.cls
6018 \end_layout
6019
6020 \end_inset
6021
6022 と共に用いられるものと仮定しましょう.
6023 \end_layout
6024
6025 \begin_layout Standard
6026 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6027 \begin_inset Foot
6028 status collapsed
6029
6030 \begin_layout Plain Layout
6031 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6032 では,起動時に
6033 \begin_inset Flex MenuItem
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 -userdir
6038 \end_layout
6039
6040 \end_inset
6041
6042 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6043 \end_layout
6044
6045 \end_inset
6046
6047
6048 \end_layout
6049
6050 \begin_layout LyX-Code
6051 cp report.layout ~/.lyx/layouts/myclass.layout
6052 \end_layout
6053
6054 \begin_layout Standard
6055 それから,
6056 \begin_inset Flex Code
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 myclass.layout
6061 \end_layout
6062
6063 \end_inset
6064
6065 を編集して,
6066 \end_layout
6067
6068 \begin_layout LyX-Code
6069
6070 \backslash
6071 DeclareLaTeXClass{report}
6072 \end_layout
6073
6074 \begin_layout Standard
6075 という行を
6076 \end_layout
6077
6078 \begin_layout LyX-Code
6079
6080 \backslash
6081 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6082 \end_layout
6083
6084 \begin_layout Standard
6085 のように変更してください.それから,ファイル冒頭辺りに
6086 \end_layout
6087
6088 \begin_layout LyX-Code
6089 Preamble 
6090 \begin_inset Newline newline
6091 \end_inset
6092
6093     
6094 \backslash
6095 usepackage{myclass}
6096 \begin_inset Newline newline
6097 \end_inset
6098
6099 EndPreamble
6100 \end_layout
6101
6102 \begin_layout Standard
6103 と書き加えてください.
6104 \end_layout
6105
6106 \begin_layout Standard
6107 \SpecialChar LyX
6108 を起動して
6109 \begin_inset Flex MenuItem
6110 status collapsed
6111
6112 \begin_layout Plain Layout
6113 ツール\SpecialChar menuseparator
6114 環境構成
6115 \end_layout
6116
6117 \end_inset
6118
6119 を選択してください.それから\SpecialChar LyX
6120 を再起動し,新規文書を作成してみてください.すると,
6121 \begin_inset Flex MenuItem
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125 文書\SpecialChar menuseparator
6126 設定
6127 \end_layout
6128
6129 \end_inset
6130
6131 ダイアログの文書クラスオプションに「
6132 \begin_inset Flex MenuItem
6133 status collapsed
6134
6135 \begin_layout Plain Layout
6136 report (myclass)
6137 \end_layout
6138
6139 \end_inset
6140
6141 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6142 \begin_inset Flex Code
6143 status collapsed
6144
6145 \begin_layout Plain Layout
6146 report
6147 \end_layout
6148
6149 \end_inset
6150
6151 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6152 \begin_inset Flex Code
6153 status collapsed
6154
6155 \begin_layout Plain Layout
6156 stdsections.inc
6157 \end_layout
6158
6159 \end_inset
6160
6161 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6162 \begin_inset Flex Code
6163 status collapsed
6164
6165 \begin_layout Plain Layout
6166 stdsections.inc
6167 \end_layout
6168
6169 \end_inset
6170
6171 も取り込む
6172 \begin_inset Flex Code
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 Input stdclass.inc
6177 \end_layout
6178
6179 \end_inset
6180
6181 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6182 \end_layout
6183
6184 \begin_layout LyX-Code
6185 Style Chapter
6186 \end_layout
6187
6188 \begin_layout LyX-Code
6189     Font
6190 \end_layout
6191
6192 \begin_layout LyX-Code
6193         Family Sans
6194 \end_layout
6195
6196 \begin_layout LyX-Code
6197     EndFont
6198 \end_layout
6199
6200 \begin_layout LyX-Code
6201 End
6202 \end_layout
6203
6204 \begin_layout Standard
6205 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6206 \end_layout
6207
6208 \begin_layout Standard
6209 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6210 いては,第
6211 \begin_inset CommandInset ref
6212 LatexCommand ref
6213 reference "sec:テキストクラス"
6214
6215 \end_inset
6216
6217 節の情報を参照してください.
6218 \end_layout
6219
6220 \begin_layout Standard
6221 もし
6222 \begin_inset Flex Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 myclass.sty
6227 \end_layout
6228
6229 \end_inset
6230
6231 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6232 う.最も簡単なモジュールの例としては,以下のようなものになります.
6233 \end_layout
6234
6235 \begin_layout LyX-Code
6236 #
6237 \backslash
6238 DeclareLyXModule{My Package}
6239 \end_layout
6240
6241 \begin_layout LyX-Code
6242 #DescriptionBegin
6243 \end_layout
6244
6245 \begin_layout LyX-Code
6246 #Support for mypkg.sty.
6247 \end_layout
6248
6249 \begin_layout LyX-Code
6250 #DescriptionEnd
6251 \begin_inset Newline newline
6252 \end_inset
6253
6254
6255 \end_layout
6256
6257 \begin_layout LyX-Code
6258 Format 69
6259 \begin_inset Newline newline
6260 \end_inset
6261
6262
6263 \end_layout
6264
6265 \begin_layout LyX-Code
6266 Preamble
6267 \begin_inset Newline newline
6268 \end_inset
6269
6270     
6271 \backslash
6272 usepackage{mypkg}
6273 \begin_inset Newline newline
6274 \end_inset
6275
6276 EndPreamble
6277 \end_layout
6278
6279 \begin_layout Standard
6280 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6281 \begin_inset CommandInset ref
6282 LatexCommand ref
6283 reference "sec:テキストクラス"
6284
6285 \end_inset
6286
6287 節を参照してください.
6288 \end_layout
6289
6290 \begin_layout Subsection
6291 \begin_inset Flex MenuItem
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 .cls
6296 \end_layout
6297
6298 \end_inset
6299
6300 ファイル用のレイアウト
6301 \end_layout
6302
6303 \begin_layout Standard
6304 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6305 \begin_inset Flex MenuItem
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 book.cls
6310 \end_layout
6311
6312 \end_inset
6313
6314 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6315 \end_layout
6316
6317 \begin_layout LyX-Code
6318
6319 \backslash
6320 LoadClass{book}
6321 \end_layout
6322
6323 \begin_layout Standard
6324 という行がないかどうか探してください.もしこれがあれば,
6325 \begin_inset Flex Code
6326 status collapsed
6327
6328 \begin_layout Plain Layout
6329 Declare\SpecialChar LaTeX
6330 Class
6331 \end_layout
6332
6333 \end_inset
6334
6335 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6336 \begin_inset Flex Code
6337 status collapsed
6338
6339 \begin_layout Plain Layout
6340 thesis
6341 \end_layout
6342
6343 \end_inset
6344
6345 であり,
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350 book
6351 \end_layout
6352
6353 \end_inset
6354
6355 クラスに基づいていれば,
6356 \begin_inset Flex Code
6357 status collapsed
6358
6359 \begin_layout Plain Layout
6360 Declare\SpecialChar LaTeX
6361 Class
6362 \end_layout
6363
6364 \end_inset
6365
6366 行は以下のようにします
6367 \begin_inset Foot
6368 status collapsed
6369
6370 \begin_layout Plain Layout
6371 さらに\SpecialChar LyX
6372 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6373 \begin_inset Flex Code
6374 status collapsed
6375
6376 \begin_layout Plain Layout
6377 thesis.layout
6378 \end_layout
6379
6380 \end_inset
6381
6382 という名前で保存するのが最も簡単です. 
6383 \end_layout
6384
6385 \end_inset
6386
6387
6388 \end_layout
6389
6390 \begin_layout LyX-Code
6391
6392 \backslash
6393 DeclareLaTeXClass[thesis,book]{thesis}
6394 \end_layout
6395
6396 \begin_layout Standard
6397 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6398 クラスを使用してい
6399 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6400 業の開始点としてください.
6401 \end_layout
6402
6403 \begin_layout Subsection
6404 ひな型を作成する
6405 \begin_inset CommandInset label
6406 LatexCommand label
6407 name "sec:ひな型を作成する"
6408
6409 \end_inset
6410
6411
6412 \end_layout
6413
6414 \begin_layout Standard
6415 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6416 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6417 添付のひな型をあれこれ見てみるのもよいでしょう.
6418 \end_layout
6419
6420 \begin_layout Standard
6421 ひな型は,通常の文書と同様,\SpecialChar LyX
6422 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6423 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6424 \begin_inset Flex Code
6425 status collapsed
6426
6427 \begin_layout Plain Layout
6428
6429 \backslash
6430 fontscheme
6431 \end_layout
6432
6433 \end_inset
6434
6435
6436 \begin_inset Flex Code
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440
6441 \backslash
6442 papersize
6443 \end_layout
6444
6445 \end_inset
6446
6447 などの対応するコマンドをひな型\SpecialChar LyX
6448 ファイルから取り除く必要があります.これは,たとえば
6449 \begin_inset Flex Code
6450 status collapsed
6451
6452 \begin_layout Plain Layout
6453 vi
6454 \end_layout
6455
6456 \end_inset
6457
6458
6459 \begin_inset Flex Code
6460 status collapsed
6461
6462 \begin_layout Plain Layout
6463 notepad
6464 \end_layout
6465
6466 \end_inset
6467
6468 のような,どの軽いテキストエディタでも行うことができます.
6469 \end_layout
6470
6471 \begin_layout Standard
6472 編集したひな型を
6473 \begin_inset Flex Code
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477 UserDir/templates/
6478 \end_layout
6479
6480 \end_inset
6481
6482 に置き,グローバルなひな型ディレクトリ
6483 \begin_inset Flex Code
6484 status collapsed
6485
6486 \begin_layout Plain Layout
6487 LyXDir/templates/
6488 \end_layout
6489
6490 \end_inset
6491
6492 から使用したいものを同じ場所にコピーし,
6493 \begin_inset Flex MenuItem
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 ツール\SpecialChar menuseparator
6498 設定\SpecialChar menuseparator
6499 パス
6500 \end_layout
6501
6502 \end_inset
6503
6504 ダイアログのひな型パスを再定義してください.
6505 \end_layout
6506
6507 \begin_layout Standard
6508 ところで,特別な意味を持つひな型
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 defaults.lyx
6514 \end_layout
6515
6516 \end_inset
6517
6518 があることに注意してください.このひな型は,
6519 \begin_inset Flex MenuItem
6520 status collapsed
6521
6522 \begin_layout Plain Layout
6523 ファイル\SpecialChar menuseparator
6524 新規
6525 \end_layout
6526
6527 \end_inset
6528
6529 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6530 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6531 開き,
6532 \begin_inset Flex MenuItem
6533 status collapsed
6534
6535 \begin_layout Plain Layout
6536 文書既定値として保存
6537 \end_layout
6538
6539 \end_inset
6540
6541 ボタンを押すことです.
6542 \end_layout
6543
6544 \begin_layout Subsection
6545 旧レイアウトファイルの更新
6546 \end_layout
6547
6548 \begin_layout Standard
6549 レイアウトファイルの書式は,\SpecialChar LyX
6550 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6551 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6552 は,
6553 自動的に変換ツール
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 \SpecialChar LyX
6559 Dir/scripts/layout2layout.py
6560 \end_layout
6561
6562 \end_inset
6563
6564 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6565 がこれを毎回行な
6566 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6567 \end_layout
6568
6569 \begin_layout Enumerate
6570 ファイル
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 myclass.layout
6576 \end_layout
6577
6578 \end_inset
6579
6580
6581 \begin_inset Flex Code
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585 myclass.old
6586 \end_layout
6587
6588 \end_inset
6589
6590 に改称
6591 \end_layout
6592
6593 \begin_layout Enumerate
6594 以下のコマンドをコール
6595 \begin_inset Newline newline
6596 \end_inset
6597
6598
6599 \begin_inset Flex Code
6600 status collapsed
6601
6602 \begin_layout Plain Layout
6603 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6604 \end_layout
6605
6606 \end_inset
6607
6608
6609 \begin_inset Newline newline
6610 \end_inset
6611
6612 ここで
6613 \begin_inset Flex Code
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 LyXDir
6618 \end_layout
6619
6620 \end_inset
6621
6622 は\SpecialChar LyX
6623 システムディレクトリの名前です.
6624 \end_layout
6625
6626 \begin_layout Standard
6627 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6628 \end_layout
6629
6630 \begin_layout Subsection
6631 \begin_inset CommandInset label
6632 LatexCommand label
6633 name "subsec:引用エンジンファイル"
6634
6635 \end_inset
6636
6637 引用エンジンファイル
6638 \end_layout
6639
6640 \begin_layout Standard
6641 \begin_inset Flex Code
6642 status collapsed
6643
6644 \begin_layout Plain Layout
6645 citeengines/
6646 \end_layout
6647
6648 \end_inset
6649
6650 サブディレクトリ以下に収められている,いわゆる
6651 \begin_inset Flex Code
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 *.citeengine
6656 \end_layout
6657
6658 \end_inset
6659
6660 ファイルは,レイアウトファイルの特殊形です.これらの目的は,
6661 \family sans
6662 natbib
6663 \family default
6664
6665 \family sans
6666 jurabib
6667 \family default
6668
6669 \family sans
6670 biblatex
6671 \family default
6672 など,書誌情報を生成する\SpecialChar LaTeX
6673 パッケージの詳細を定義することですが,通常の(追加パッケージのない)Bib\SpecialChar TeX
6674 引用が\SpecialChar LyX
6675 中でどのように取り扱われるかも,これらのファイルの中で定
6676 義されます.
6677 \end_layout
6678
6679 \begin_layout Standard
6680 より具体的には,どのパッケージを\SpecialChar LyX
6681 が読み込む必要があるのか,どの引用コマンドが利用可能であるのか,これらが\SpecialChar LyX
6682 中(作業領域・ダイアログ・コンテクストメニュー)で,さら
6683 にはXHTMLや平文出力中でどのように表示されるのかを定義します.さらに,これらのファイルは,使用できる派生様式(著者-刊行年,数値など)とその子細を特定します
6684 .引用エンジンファイルは,
6685 \family sans
6686 文書\SpecialChar menuseparator
6687 設定\SpecialChar ldots
6688 \SpecialChar menuseparator
6689 書誌情報\SpecialChar menuseparator
6690 様式整形子
6691 \family default
6692 で利用できる選択肢を生成するのにも使用されます.
6693 \end_layout
6694
6695 \begin_layout Standard
6696 引用エンジンファイルは,本質的に通常のレイアウトファイルであり,理論上どのようなレイアウト情報も内包することができますが,通常は
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 MaxCiteNames
6702 \end_layout
6703
6704 \end_inset
6705
6706
6707 \begin_inset Flex Code
6708 status collapsed
6709
6710 \begin_layout Plain Layout
6711 CiteFramework
6712 \end_layout
6713
6714 \end_inset
6715
6716
6717 \begin_inset Flex Code
6718 status collapsed
6719
6720 \begin_layout Plain Layout
6721 CiteEngine
6722 \end_layout
6723
6724 \end_inset
6725
6726
6727 \begin_inset Flex Code
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731 CiteFormat
6732 \end_layout
6733
6734 \end_inset
6735
6736 ブロックのような特定のパラメータをもっぱら含みます.この最後の2つの文法は,ファイル自身に加え,第 
6737 \begin_inset CommandInset ref
6738 LatexCommand ref
6739 reference "subsec:引用エンジンの説明"
6740 plural "false"
6741 caps "false"
6742 noprefix "false"
6743
6744 \end_inset
6745
6746 節と第
6747 \begin_inset CommandInset ref
6748 LatexCommand ref
6749 reference "subsec:引用書式指定"
6750 plural "false"
6751 caps "false"
6752 noprefix "false"
6753
6754 \end_inset
6755
6756 節に述べられています.
6757 \end_layout
6758
6759 \begin_layout Section
6760 \begin_inset CommandInset label
6761 LatexCommand label
6762 name "sec:テキストクラス"
6763
6764 \end_inset
6765
6766 レイアウトファイルの書式
6767 \end_layout
6768
6769 \begin_layout Standard
6770 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6771 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6772 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6773 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6774 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6775 \end_layout
6776
6777 \begin_layout Standard
6778 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6779 \begin_inset Flex Code
6780 status collapsed
6781
6782 \begin_layout Plain Layout
6783 Style
6784 \end_layout
6785
6786 \end_inset
6787
6788
6789 \begin_inset Flex Code
6790 status collapsed
6791
6792 \begin_layout Plain Layout
6793 style
6794 \end_layout
6795
6796 \end_inset
6797
6798
6799 \begin_inset Flex Code
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803 StYlE
6804 \end_layout
6805
6806 \end_inset
6807
6808 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6809 \begin_inset Flex Code
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813
6814 \emph on
6815 強調
6816 \end_layout
6817
6818 \end_inset
6819
6820 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6821 \begin_inset Flex Code
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 浮動小数点型=
6826 \emph on
6827 既定値
6828 \end_layout
6829
6830 \end_inset
6831
6832 のように表示されます.
6833 \end_layout
6834
6835 \begin_layout Subsection
6836 文書クラス宣言と分類
6837 \end_layout
6838
6839 \begin_layout Standard
6840 レイアウトファイル中の
6841 \begin_inset Flex Code
6842 status collapsed
6843
6844 \begin_layout Plain Layout
6845 #
6846 \end_layout
6847
6848 \end_inset
6849
6850 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 *.layout
6856 \end_layout
6857
6858 \end_inset
6859
6860 ファイルは,以下のような行で始めなくてはならないのです.
6861 \end_layout
6862
6863 \begin_layout LyX-Code
6864
6865 \size small
6866 #% Do not delete the line below; configure depends on this
6867 \end_layout
6868
6869 \begin_layout LyX-Code
6870
6871 \size small
6872 #  
6873 \backslash
6874 DeclareLaTeXClass{Article (Standard Class)}
6875 \end_layout
6876
6877 \begin_layout LyX-Code
6878
6879 \size small
6880 #  
6881 \backslash
6882 DeclareCategory{Articles}
6883 \end_layout
6884
6885 \begin_layout Standard
6886 2行目と3行目は,\SpecialChar LyX
6887 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6888 スクリプト
6889 \begin_inset Flex Code
6890 status collapsed
6891
6892 \begin_layout Plain Layout
6893 chkconfig.ltx
6894 \end_layout
6895
6896 \end_inset
6897
6898 が,
6899 \begin_inset Flex Code
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 #
6904 \end_layout
6905
6906 \end_inset
6907
6908 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6909 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6910 行が
6911 \begin_inset Flex Code
6912 status collapsed
6913
6914 \begin_layout Plain Layout
6915 article.layout
6916 \end_layout
6917
6918 \end_inset
6919
6920 と名付けられたファイルにあると,
6921 \begin_inset Flex Code
6922 status collapsed
6923
6924 \begin_layout Plain Layout
6925 article
6926 \end_layout
6927
6928 \end_inset
6929
6930 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6931 文書クラス
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 article.cls
6937 \end_layout
6938
6939 \end_inset
6940
6941 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6942 \begin_inset Flex MenuItem
6943 status collapsed
6944
6945 \begin_layout Plain Layout
6946 文書\SpecialChar menuseparator
6947 設定
6948 \end_layout
6949
6950 \end_inset
6951
6952 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6953 \begin_inset Flex MenuItem
6954 status collapsed
6955
6956 \begin_layout Plain Layout
6957 文書\SpecialChar menuseparator
6958 設定
6959 \end_layout
6960
6961 \end_inset
6962
6963 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6964 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6965 rized」グループに属することになります.
6966 \end_layout
6967
6968 \begin_layout Standard
6969 節見出し表示に変更を加えた,
6970 \begin_inset Flex Code
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 article.cls
6975 \end_layout
6976
6977 \end_inset
6978
6979 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6980 \begin_inset Flex Code
6981 status collapsed
6982
6983 \begin_layout Plain Layout
6984 myarticle.layout
6985 \end_layout
6986
6987 \end_inset
6988
6989 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6990 \end_layout
6991
6992 \begin_layout LyX-Code
6993
6994 \size small
6995 #% Do not delete the line below; configure depends on this 
6996 \end_layout
6997
6998 \begin_layout LyX-Code
6999
7000 \size small
7001 #  
7002 \backslash
7003 DeclareLaTeXClass[article]{article (with My Own Headings)}
7004 \end_layout
7005
7006 \begin_layout LyX-Code
7007
7008 \size small
7009 #  
7010 \backslash
7011 DeclareCategory{Articles}
7012 \end_layout
7013
7014 \begin_layout Standard
7015 これは,\SpecialChar LaTeX
7016 文書クラス
7017 \begin_inset Flex Code
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021 article.cls
7022 \end_layout
7023
7024 \end_inset
7025
7026 に関連づけられ,「Article (with My Own Headings)」と表示される,
7027 \begin_inset Flex Code
7028 status collapsed
7029
7030 \begin_layout Plain Layout
7031 myarticle
7032 \end_layout
7033
7034 \end_inset
7035
7036 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
7037 \end_layout
7038
7039 \begin_layout LyX-Code
7040
7041 \size small
7042 #% Do not delete the line below; configure depends on this 
7043 \end_layout
7044
7045 \begin_layout LyX-Code
7046
7047 \size small
7048 #  
7049 \backslash
7050 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7051 \end_layout
7052
7053 \begin_layout LyX-Code
7054
7055 \size small
7056 #  
7057 \backslash
7058 DeclareCategory{Articles}
7059 \end_layout
7060
7061 \begin_layout Standard
7062 これは,このテキストクラスが
7063 \begin_inset Flex Code
7064 status collapsed
7065
7066 \begin_layout Plain Layout
7067 foo.sty
7068 \end_layout
7069
7070 \end_inset
7071
7072 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7073 \end_layout
7074
7075 \begin_layout LyX-Code
7076
7077 \size small
7078 #% Do not delete the line below; configure depends on this 
7079 \end_layout
7080
7081 \begin_layout LyX-Code
7082
7083 \size small
7084
7085 \backslash
7086 DeclareDocBookClass[article]{SGML (DocBook article)}
7087 \end_layout
7088
7089 \begin_layout LyX-Code
7090
7091 \size small
7092 #  
7093 \backslash
7094 DeclareCategory{Articles}
7095 \end_layout
7096
7097 \begin_layout Standard
7098 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7099 \end_layout
7100
7101 \begin_layout Standard
7102 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7103 \end_layout
7104
7105 \begin_layout LyX-Code
7106
7107 \size small
7108 #  
7109 \backslash
7110 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7111 \end_layout
7112
7113 \begin_layout LyX-Code
7114
7115 \size small
7116 #  
7117 \backslash
7118 DeclareCategory{分類}
7119 \end_layout
7120
7121 \begin_layout Standard
7122 ここで「クラス」は,\SpecialChar LaTeX
7123 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7124 は単純に,クラスファイル
7125 名がレイアウトファイル名と同じであると仮定します.
7126 \end_layout
7127
7128 \begin_layout Standard
7129 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 LyXDir/layouts/
7135 \end_layout
7136
7137 \end_inset
7138
7139
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 UserDir/layouts
7145 \end_layout
7146
7147 \end_inset
7148
7149 にコピーし,
7150 \begin_inset Flex MenuItem
7151 status collapsed
7152
7153 \begin_layout Plain Layout
7154 ツール\SpecialChar menuseparator
7155 環境構成
7156 \end_layout
7157
7158 \end_inset
7159
7160 を実行し,\SpecialChar LyX
7161 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7162 \end_layout
7163
7164 \begin_layout Standard
7165 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7166 を再起動したりすることなく,その変更を確認することができます
7167 \begin_inset Foot
7168 status collapsed
7169
7170 \begin_layout Plain Layout
7171 第1.6版よりも前の\SpecialChar LyX
7172 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7173 を再起動しなくてはならなかったので,
7174 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7175 \end_layout
7176
7177 \end_inset
7178
7179 .\SpecialChar LyX
7180 関数
7181 \begin_inset Flex MenuItem
7182 status collapsed
7183
7184 \begin_layout Plain Layout
7185 layout-reload
7186 \end_layout
7187
7188 \end_inset
7189
7190 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7191 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7192 \end_layout
7193
7194 \begin_layout Standard
7195
7196 \emph on
7197 注意
7198 \emph default
7199
7200 \begin_inset Flex MenuItem
7201 status collapsed
7202
7203 \begin_layout Plain Layout
7204 layout-reload
7205 \end_layout
7206
7207 \end_inset
7208
7209 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7210 \emph on
7211 強く
7212 \emph default
7213 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7214 \emph on
7215 強く
7216 \emph default
7217 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7218 は現在の
7219 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7220 \begin_inset Foot
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7225 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7226 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7227 ださい.
7228 \end_layout
7229
7230 \end_inset
7231
7232 .\SpecialChar LyX
7233 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7234 \begin_inset Foot
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7239 \end_layout
7240
7241 \end_inset
7242
7243
7244 \end_layout
7245
7246 \begin_layout Subsection
7247 モジュール宣言
7248 \end_layout
7249
7250 \begin_layout Standard
7251 モジュールは,以下のような行で始まらなくてはなりません.
7252 \end_layout
7253
7254 \begin_layout LyX-Code
7255 #
7256 \backslash
7257 DeclareLyXModule[endnotes.sty]{Endnotes} 
7258 \end_layout
7259
7260 \begin_layout Standard
7261 波括弧内に入っている必須引数はモジュール名で,これは
7262 \begin_inset Flex MenuItem
7263 status collapsed
7264
7265 \begin_layout Plain Layout
7266 文書\SpecialChar menuseparator
7267 設定
7268 \end_layout
7269
7270 \end_inset
7271
7272 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7273 パッケージをすべて宣言します.また,非必須引数として,
7274 \begin_inset Flex Code
7275 status collapsed
7276
7277 \begin_layout Plain Layout
7278 変換元->変換先
7279 \end_layout
7280
7281 \end_inset
7282
7283 の形を使用することができます.これは,
7284 \begin_inset Flex Code
7285 status collapsed
7286
7287 \begin_layout Plain Layout
7288 変換元
7289 \end_layout
7290
7291 \end_inset
7292
7293 形式から
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 変換先
7299 \end_layout
7300
7301 \end_inset
7302
7303 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7304 \end_layout
7305
7306 \begin_layout Standard
7307 それから,以下のようなモジュール宣言を行います
7308 \begin_inset Foot
7309 status collapsed
7310
7311 \begin_layout Plain Layout
7312 モジュールを\SpecialChar LyX
7313 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7314 \end_layout
7315
7316 \end_inset
7317
7318
7319 \end_layout
7320
7321 \begin_layout LyX-Code
7322 #DescriptionBegin 
7323 \end_layout
7324
7325 \begin_layout LyX-Code
7326 #Adds an endnote command, in addition to footnotes.
7327  
7328 \end_layout
7329
7330 \begin_layout LyX-Code
7331 #You will need to add  
7332 \backslash
7333 theendnotes in TeX code where you 
7334 \end_layout
7335
7336 \begin_layout LyX-Code
7337 #want the endnotes to appear.
7338  
7339 \end_layout
7340
7341 \begin_layout LyX-Code
7342 #DescriptionEnd 
7343 \end_layout
7344
7345 \begin_layout LyX-Code
7346 #Requires: somemodule | othermodule
7347 \end_layout
7348
7349 \begin_layout LyX-Code
7350 #Excludes: badmodule
7351 \end_layout
7352
7353 \begin_layout Standard
7354 ここで説明(Description)は,
7355 \begin_inset Flex MenuItem
7356 status collapsed
7357
7358 \begin_layout Plain Layout
7359 文書\SpecialChar menuseparator
7360 設定
7361 \end_layout
7362
7363 \end_inset
7364
7365 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7366 \begin_inset Flex Code
7367 status collapsed
7368
7369 \begin_layout Plain Layout
7370 Requires
7371 \end_layout
7372
7373 \end_inset
7374
7375 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7376 \begin_inset Flex Code
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 Excludes
7381 \end_layout
7382
7383 \end_inset
7384
7385 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7386 イプ記号「|」で区切らなくてはなりません.
7387 \begin_inset Flex Code
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 Requires
7392 \end_layout
7393
7394 \end_inset
7395
7396 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7397 \begin_inset Flex Code
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 Requires
7402 \end_layout
7403
7404 \end_inset
7405
7406 に指定されたモジュールのうち,
7407 \emph on
7408 少なくとも一つ
7409 \emph default
7410 が使用されていればよいということです.同様に,
7411 \begin_inset Flex Code
7412 status collapsed
7413
7414 \begin_layout Plain Layout
7415 Excludes
7416 \end_layout
7417
7418 \end_inset
7419
7420 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 .module
7426 \end_layout
7427
7428 \end_inset
7429
7430 拡張子を除いたファイル名で認識されることに注意してください.つまり
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 somemodule
7436 \end_layout
7437
7438 \end_inset
7439
7440 とは,実のところ
7441 \begin_inset Flex Code
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 somemodule.module
7446 \end_layout
7447
7448 \end_inset
7449
7450 に他なりません.
7451 \end_layout
7452
7453 \begin_layout Subsection
7454 引用エンジンファイルの宣言
7455 \end_layout
7456
7457 \begin_layout Standard
7458 引用エンジンファイルは,次のような行で始まらなくてはなりません.
7459 \end_layout
7460
7461 \begin_layout LyX-Code
7462 #
7463 \backslash
7464 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
7465 \end_layout
7466
7467 \begin_layout Standard
7468 波括弧内の必須引数はモジュール名で,
7469 \begin_inset Flex Noun
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 文書\SpecialChar menuseparator
7474 設定\SpecialChar menuseparator
7475 書誌情報
7476 \end_layout
7477
7478 \end_inset
7479
7480 にそのまま現れます.角括弧内の引数は非必須です.これは,引用エンジンが依存する\SpecialChar LaTeX
7481 パッケージを宣言します.
7482 \end_layout
7483
7484 \begin_layout Standard
7485 引用エンジン宣言には,その後,以下のような行が続きます
7486 \begin_inset Foot
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 \SpecialChar LyX
7491 とともに公表するモジュールの場合は,英語で書かれることが望まれます.この説明は,翻訳対象メッセージのリストに含まれますので,次回インタフェースの更新の際に翻訳さ
7492 れることになります.
7493 \end_layout
7494
7495 \end_inset
7496
7497
7498 \end_layout
7499
7500 \begin_layout LyX-Code
7501 # DescriptionBegin
7502 \end_layout
7503
7504 \begin_layout LyX-Code
7505 #   Biblatex supports many author-year and numerical styles.
7506 \end_layout
7507
7508 \begin_layout LyX-Code
7509 #   It is mainly aimed at the Humanities.
7510  It is highly
7511 \end_layout
7512
7513 \begin_layout LyX-Code
7514 #   customizable, fully localized and provides many features
7515 \end_layout
7516
7517 \begin_layout LyX-Code
7518 #   that are not possible with BibTeX.
7519  The use of 'biber' as
7520 \end_layout
7521
7522 \begin_layout LyX-Code
7523 #   bibliography processor is advised.
7524 \end_layout
7525
7526 \begin_layout LyX-Code
7527 # DescriptionEnd
7528 \end_layout
7529
7530 \begin_layout Standard
7531 この説明は,
7532 \begin_inset Flex Noun
7533 status collapsed
7534
7535 \begin_layout Plain Layout
7536 文書\SpecialChar menuseparator
7537 設定\SpecialChar menuseparator
7538 書誌情報
7539 \end_layout
7540
7541 \end_inset
7542
7543 の中で,ユーザーに引用エンジンに関する情報を提供するために使われます.
7544 \end_layout
7545
7546 \begin_layout Subsection
7547 書式番号
7548 \end_layout
7549
7550 \begin_layout Standard
7551 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7552 \end_layout
7553
7554 \begin_layout Description
7555 \begin_inset Flex Code
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559 Format
7560 \end_layout
7561
7562 \end_inset
7563
7564  [
7565 \begin_inset Flex Code
7566 status collapsed
7567
7568 \begin_layout Plain Layout
7569 整数型
7570 \end_layout
7571
7572 \end_inset
7573
7574 ] このレイアウトファイルの書式
7575 \end_layout
7576
7577 \begin_layout Standard
7578 このタグは\SpecialChar LyX
7579
7580 \begin_inset space ~
7581 \end_inset
7582
7583 1.4.0で導入されました.\SpecialChar LyX
7584
7585 \begin_inset space ~
7586 \end_inset
7587
7588 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7589 現行版のファイル形式は,書式69です.しかし,\SpecialChar LyX
7590 の各版は,旧版の\SpecialChar LyX
7591 で作成さ
7592 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7593 \end_layout
7594
7595 \begin_layout Subsection
7596 \begin_inset CommandInset label
7597 LatexCommand label
7598 name "subsec:汎用テキストクラスパラメータ"
7599
7600 \end_inset
7601
7602 汎用テキストクラスパラメータ
7603 \end_layout
7604
7605 \begin_layout Standard
7606 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 .layout
7612 \end_layout
7613
7614 \end_inset
7615
7616 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7617 \emph on
7618 ありません
7619 \emph default
7620 .モジュールには,すべてのレイアウトタグを使用することができます).
7621 \end_layout
7622
7623 \begin_layout Description
7624 \begin_inset Flex Code
7625 status collapsed
7626
7627 \begin_layout Plain Layout
7628 AddToHTMLPreamble
7629 \end_layout
7630
7631 \end_inset
7632
7633  この文書クラスがXHTMLに出力されるときに,
7634 \begin_inset Flex Code
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 <head>
7639 \end_layout
7640
7641 \end_inset
7642
7643 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7644 \begin_inset Flex Code
7645 status collapsed
7646
7647 \begin_layout Plain Layout
7648 <head>
7649 \end_layout
7650
7651 \end_inset
7652
7653 に出力するものであれば,何でも使用することができます.「
7654 \begin_inset Flex Code
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 EndPreamble
7659 \end_layout
7660
7661 \end_inset
7662
7663 」で閉じる必要があります.
7664 \end_layout
7665
7666 \begin_layout Description
7667 \begin_inset Flex Code
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 AddToPreamble
7672 \end_layout
7673
7674 \end_inset
7675
7676  文書プリアンブルに書き加えられる情報です.「
7677 \begin_inset Flex Code
7678 status collapsed
7679
7680 \begin_layout Plain Layout
7681 EndPreamble
7682 \end_layout
7683
7684 \end_inset
7685
7686 」で閉じる必要があります.
7687 \end_layout
7688
7689 \begin_layout Description
7690 \begin_inset Flex Code
7691 status collapsed
7692
7693 \begin_layout Plain Layout
7694 CiteEngine <エンジン>
7695 \end_layout
7696
7697 \end_inset
7698
7699  文献参照を表示する方法を定義します.詳細については,第
7700 \begin_inset CommandInset ref
7701 LatexCommand ref
7702 reference "subsec:引用エンジンの説明"
7703 plural "false"
7704 caps "false"
7705 noprefix "false"
7706
7707 \end_inset
7708
7709 節をご覧ください.「
7710 \begin_inset Flex Code
7711 status collapsed
7712
7713 \begin_layout Plain Layout
7714 End
7715 \end_layout
7716
7717 \end_inset
7718
7719 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7720 \begin_inset CommandInset ref
7721 LatexCommand ref
7722 reference "subsec:引用エンジンファイル"
7723 plural "false"
7724 caps "false"
7725 noprefix "false"
7726
7727 \end_inset
7728
7729 節参照).
7730 \end_layout
7731
7732 \begin_layout Description
7733 \begin_inset Flex Code
7734 status collapsed
7735
7736 \begin_layout Plain Layout
7737 CiteFormat
7738 \end_layout
7739
7740 \end_inset
7741
7742  書誌情報の表示に使う書式を定義します.詳細については,第
7743 \begin_inset CommandInset ref
7744 LatexCommand ref
7745 reference "subsec:引用書式指定"
7746
7747 \end_inset
7748
7749 節をご覧ください.「
7750 \begin_inset Flex Code
7751 status collapsed
7752
7753 \begin_layout Plain Layout
7754 End
7755 \end_layout
7756
7757 \end_inset
7758
7759 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7760 \begin_inset CommandInset ref
7761 LatexCommand ref
7762 reference "subsec:引用エンジンファイル"
7763 plural "false"
7764 caps "false"
7765 noprefix "false"
7766
7767 \end_inset
7768
7769 節参照).
7770 \end_layout
7771
7772 \begin_layout Description
7773 \begin_inset Flex Code
7774 status collapsed
7775
7776 \begin_layout Plain Layout
7777 CiteFramework
7778 \end_layout
7779
7780 \end_inset
7781
7782  [
7783 \begin_inset Flex Code
7784 status collapsed
7785
7786 \begin_layout Plain Layout
7787
7788 \emph on
7789 bibtex
7790 \end_layout
7791
7792 \end_inset
7793
7794 ,
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 biblatex
7800 \end_layout
7801
7802 \end_inset
7803
7804 ] 書誌情報を生成するのに,
7805 \family sans
7806 Biblatex
7807 \family default
7808 を用いるのかBib\SpecialChar TeX
7809 を用いるのかを特定します.主に引用エンジンファイルで使用されます(第
7810 \begin_inset CommandInset ref
7811 LatexCommand ref
7812 reference "subsec:引用エンジンファイル"
7813 plural "false"
7814 caps "false"
7815 noprefix "false"
7816
7817 \end_inset
7818
7819 節参照).
7820 \end_layout
7821
7822 \begin_layout Description
7823 \begin_inset Flex Code
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 ClassOptions
7828 \end_layout
7829
7830 \end_inset
7831
7832  文書クラスがサポートする様々な大域オプションを記します.説明は,第
7833 \begin_inset CommandInset ref
7834 LatexCommand ref
7835 reference "subsec:ClassOptions"
7836
7837 \end_inset
7838
7839 節を参照してください.「
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 End
7845 \end_layout
7846
7847 \end_inset
7848
7849 」で閉じる必要があります.
7850 \end_layout
7851
7852 \begin_layout Description
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 Columns
7858 \end_layout
7859
7860 \end_inset
7861
7862  [
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867
7868 \emph on
7869 1
7870 \end_layout
7871
7872 \end_inset
7873
7874 ,
7875 \begin_inset space \thinspace{}
7876 \end_inset
7877
7878
7879 \begin_inset Flex Code
7880 status collapsed
7881
7882 \begin_layout Plain Layout
7883 2
7884 \end_layout
7885
7886 \end_inset
7887
7888 ] 文書クラスが既定で1段組か2段組かを指定します.
7889 \begin_inset Flex MenuItem
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893 文書\SpecialChar menuseparator
7894 設定
7895 \end_layout
7896
7897 \end_inset
7898
7899 ダイアログで変更することができます.
7900 \end_layout
7901
7902 \begin_layout Description
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 Counter
7908 \end_layout
7909
7910 \end_inset
7911
7912  [
7913 \begin_inset Flex Code
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 文字列
7918 \end_layout
7919
7920 \end_inset
7921
7922 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7923 \begin_inset Flex Code
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 End
7928 \end_layout
7929
7930 \end_inset
7931
7932 」で閉じる必要があります.
7933 \begin_inset Newline newline
7934 \end_inset
7935
7936 カウンタについての詳細は,第
7937 \begin_inset CommandInset ref
7938 LatexCommand ref
7939 reference "subsec:カウンタ"
7940
7941 \end_inset
7942
7943 節を参照してください.
7944 \end_layout
7945
7946 \begin_layout Description
7947 \begin_inset Flex Code
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951 DefaultFont
7952 \end_layout
7953
7954 \end_inset
7955
7956  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,第
7957 \begin_inset CommandInset ref
7958 LatexCommand ref
7959 reference "subsec:フォント指定"
7960
7961 \end_inset
7962
7963 節を参照してください.「
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 EndFont
7969 \end_layout
7970
7971 \end_inset
7972
7973 」で閉じる必要があります.
7974 \end_layout
7975
7976 \begin_layout Description
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 DefaultModule
7982 \end_layout
7983
7984 \end_inset
7985
7986  [
7987 \begin_inset Flex Code
7988 status collapsed
7989
7990 \begin_layout Plain Layout
7991 <モジュール>
7992 \end_layout
7993
7994 \end_inset
7995
7996 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 .module
8002 \end_layout
8003
8004 \end_inset
8005
8006 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
8007 既存の文書にこの文書クラスが選択したときのみ該当します).
8008 \end_layout
8009
8010 \begin_layout Description
8011 \begin_inset Flex Code
8012 status collapsed
8013
8014 \begin_layout Plain Layout
8015 DefaultStyle
8016 \end_layout
8017
8018 \end_inset
8019
8020  [
8021 \begin_inset Flex Code
8022 status collapsed
8023
8024 \begin_layout Plain Layout
8025 <様式>
8026 \end_layout
8027
8028 \end_inset
8029
8030 ]
8031 \lang english
8032  
8033 \lang japanese
8034 これは新規段落に割り当てられる様式であり,通常は
8035 \begin_inset Flex MenuItem
8036 status collapsed
8037
8038 \begin_layout Plain Layout
8039 標準
8040 \end_layout
8041
8042 \end_inset
8043
8044 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
8045 \end_layout
8046
8047 \begin_layout Description
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 ExcludesModule
8053 \end_layout
8054
8055 \end_inset
8056
8057  [
8058 \begin_inset Flex Code
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062 <モジュール>
8063 \end_layout
8064
8065 \end_inset
8066
8067 ] このタグは,指定されたモジュール—
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 .module
8073 \end_layout
8074
8075 \end_inset
8076
8077 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
8078 に振る
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 theorems-sec
8084 \end_layout
8085
8086 \end_inset
8087
8088 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
8089 \emph on
8090 使用してはいけません
8091 \emph default
8092 .モジュールは,他のモジュールを排除する独自の枠組みがあります(第
8093 \begin_inset CommandInset ref
8094 LatexCommand ref
8095 reference "subsec:レイアウトモジュール"
8096
8097 \end_inset
8098
8099 節参照).
8100 \end_layout
8101
8102 \begin_layout Description
8103 \begin_inset Flex Code
8104 status collapsed
8105
8106 \begin_layout Plain Layout
8107 Float
8108 \end_layout
8109
8110 \end_inset
8111
8112  フロートを新規に定義します.詳細は,第
8113 \begin_inset CommandInset ref
8114 LatexCommand ref
8115 reference "subsec:フロート"
8116
8117 \end_inset
8118
8119 節を参照してください.「
8120 \begin_inset Flex Code
8121 status collapsed
8122
8123 \begin_layout Plain Layout
8124 End
8125 \end_layout
8126
8127 \end_inset
8128
8129 」で閉じる必要があります.
8130 \end_layout
8131
8132 \begin_layout Description
8133 \begin_inset Flex Code
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 HTMLPreamble
8138 \end_layout
8139
8140 \end_inset
8141
8142  この文書クラスがXHTMLに出力されるときに,
8143 \begin_inset Flex Code
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 <head>
8148 \end_layout
8149
8150 \end_inset
8151
8152 ブロックに出力される情報です.これより前に出現した
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 HTMLPreamble
8158 \end_layout
8159
8160 \end_inset
8161
8162
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 AddToHTMLPreamble
8168 \end_layout
8169
8170 \end_inset
8171
8172 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
8173 \begin_inset Flex Code
8174 status collapsed
8175
8176 \begin_layout Plain Layout
8177 AddToHTMLPreamble
8178 \end_layout
8179
8180 \end_inset
8181
8182 を使用してください).これは「
8183 \begin_inset Flex Code
8184 status collapsed
8185
8186 \begin_layout Plain Layout
8187 EndPreamble
8188 \end_layout
8189
8190 \end_inset
8191
8192 」で閉じる必要があります.
8193 \end_layout
8194
8195 \begin_layout Description
8196 \begin_inset Flex Code
8197 status collapsed
8198
8199 \begin_layout Plain Layout
8200 HTMLTOCSection
8201 \end_layout
8202
8203 \end_inset
8204
8205  [
8206 \begin_inset Flex Code
8207 status collapsed
8208
8209 \begin_layout Plain Layout
8210 <様式>
8211 \end_layout
8212
8213 \end_inset
8214
8215 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
8216 .これを指定しない場合には,\SpecialChar LyX
8217 はどのレイアウトを使用するべきか,解析しようと試みます.
8218 \end_layout
8219
8220 \begin_layout Description
8221 \begin_inset Flex Code
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225 IfCounter 
8226 \end_layout
8227
8228 \end_inset
8229
8230  [
8231 \begin_inset Flex Code
8232 status collapsed
8233
8234 \begin_layout Plain Layout
8235 <カウンタ>
8236 \end_layout
8237
8238 \end_inset
8239
8240 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
8241 \begin_inset Flex Code
8242 status collapsed
8243
8244 \begin_layout Plain Layout
8245 End
8246 \end_layout
8247
8248 \end_inset
8249
8250 」で閉じる必要があります.
8251 \begin_inset Newline newline
8252 \end_inset
8253
8254 カウンタについての詳細は,第
8255 \begin_inset CommandInset ref
8256 LatexCommand ref
8257 reference "subsec:カウンタ"
8258
8259 \end_inset
8260
8261 節をご覧ください.
8262 \end_layout
8263
8264 \begin_layout Description
8265 \begin_inset Flex Code
8266 status collapsed
8267
8268 \begin_layout Plain Layout
8269 IfStyle
8270 \end_layout
8271
8272 \end_inset
8273
8274  [
8275 \begin_inset Flex Code
8276 status collapsed
8277
8278 \begin_layout Plain Layout
8279 <様式>
8280 \end_layout
8281
8282 \end_inset
8283
8284 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289 End
8290 \end_layout
8291
8292 \end_inset
8293
8294 」で閉じる必要があります.
8295 \end_layout
8296
8297 \begin_layout Description
8298 \begin_inset Flex Code
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 Input
8303 \end_layout
8304
8305 \end_inset
8306
8307  [
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 <ファイル名>
8313 \end_layout
8314
8315 \end_inset
8316
8317 ]
8318 \lang english
8319  
8320 \lang japanese
8321 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8322 のほとんどを収録している
8323 \begin_inset Flex Code
8324 status collapsed
8325
8326 \begin_layout Plain Layout
8327 stdclass.inc
8328 \end_layout
8329
8330 \end_inset
8331
8332 のような標準レイアウトファイルです.
8333 \end_layout
8334
8335 \begin_layout Description
8336 \begin_inset Flex Code
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 InsetLayout
8341 \end_layout
8342
8343 \end_inset
8344
8345  [
8346 \begin_inset Flex Code
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 <型>
8351 \end_layout
8352
8353 \end_inset
8354
8355 ]
8356 \lang english
8357  
8358 \lang japanese
8359 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8360 \begin_inset Flex Code
8361 status collapsed
8362
8363 \begin_layout Plain Layout
8364 End
8365 \end_layout
8366
8367 \end_inset
8368
8369 」で閉じる必要があります.
8370 \begin_inset Newline newline
8371 \end_inset
8372
8373 詳しい情報は,第
8374 \begin_inset CommandInset ref
8375 LatexCommand ref
8376 reference "subsec:任意設定差込枠"
8377
8378 \end_inset
8379
8380 節をご覧ください.
8381 \end_layout
8382
8383 \begin_layout Description
8384 \begin_inset Flex Code
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 LeftMargin
8389 \end_layout
8390
8391 \end_inset
8392
8393  [
8394 \begin_inset Flex Code
8395 status collapsed
8396
8397 \begin_layout Plain Layout
8398 文字列
8399 \end_layout
8400
8401 \end_inset
8402
8403 ] 画面上の左余白の幅を指示する文字列.例:「
8404 \begin_inset Flex Code
8405 status collapsed
8406
8407 \begin_layout Plain Layout
8408 MMMMM
8409 \end_layout
8410
8411 \end_inset
8412
8413 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8414 \end_layout
8415
8416 \begin_layout Description
8417 \begin_inset Flex Code
8418 status collapsed
8419
8420 \begin_layout Plain Layout
8421 MaxCiteNames
8422 \end_layout
8423
8424 \end_inset
8425
8426  [
8427 \begin_inset Flex Code
8428 status collapsed
8429
8430 \begin_layout Plain Layout
8431 整数
8432 \end_layout
8433
8434 \end_inset
8435
8436 ] 著者-刊行年引用で,引用が「第一著者 et al.」に切り替わる前に,表示される名前の最大数を定める整数.主に引用エンジンファイルで使用されます(第
8437 \begin_inset CommandInset ref
8438 LatexCommand ref
8439 reference "subsec:引用エンジンファイル"
8440 plural "false"
8441 caps "false"
8442 noprefix "false"
8443
8444 \end_inset
8445
8446 節参照).
8447 \end_layout
8448
8449 \begin_layout Description
8450 \begin_inset Flex Code
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454 NoCounter
8455 \end_layout
8456
8457 \end_inset
8458
8459  [
8460 \begin_inset Flex Code
8461 status collapsed
8462
8463 \begin_layout Plain Layout
8464 <カウンタ>
8465 \end_layout
8466
8467 \end_inset
8468
8469 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8470 \end_layout
8471
8472 \begin_layout Description
8473 \begin_inset Flex Code
8474 status collapsed
8475
8476 \begin_layout Plain Layout
8477 NoFloat
8478 \end_layout
8479
8480 \end_inset
8481
8482  [
8483 \begin_inset Flex Code
8484 status collapsed
8485
8486 \begin_layout Plain Layout
8487 <フロート>
8488 \end_layout
8489
8490 \end_inset
8491
8492 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8493 \end_layout
8494
8495 \begin_layout Description
8496 \begin_inset Flex Code
8497 status collapsed
8498
8499 \begin_layout Plain Layout
8500 NoStyle
8501 \end_layout
8502
8503 \end_inset
8504
8505  [
8506 \begin_inset Flex Code
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 <様式>
8511 \end_layout
8512
8513 \end_inset
8514
8515 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8516 \end_layout
8517
8518 \begin_layout Description
8519 \begin_inset Flex Code
8520 status collapsed
8521
8522 \begin_layout Plain Layout
8523 OutlinerName
8524 \end_layout
8525
8526 \end_inset
8527
8528  [
8529 \begin_inset Flex Code
8530 status collapsed
8531
8532 \begin_layout Plain Layout
8533 <型>
8534 \end_layout
8535
8536 \end_inset
8537
8538 ] [
8539 \begin_inset Flex Code
8540 status collapsed
8541
8542 \begin_layout Plain Layout
8543 <文字列>
8544 \end_layout
8545
8546 \end_inset
8547
8548 ] 型が
8549 \begin_inset Flex Code
8550 status collapsed
8551
8552 \begin_layout Plain Layout
8553 <型>
8554 \end_layout
8555
8556 \end_inset
8557
8558 で名前が
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 <文字列>
8564 \end_layout
8565
8566 \end_inset
8567
8568 の新しい一覧表を定義します.AddToTocコマンドもご覧ください.
8569 \end_layout
8570
8571 \begin_layout Description
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 OutputFormat
8577 \end_layout
8578
8579 \end_inset
8580
8581  [
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 <形式>
8587 \end_layout
8588
8589 \end_inset
8590
8591 ] このクラスによって生成されるファイル形式を示す文字列(
8592 \family sans
8593 設定
8594 \family default
8595 ダイアログで定義される形のもの).おもに,
8596 \begin_inset Flex Code
8597 status collapsed
8598
8599 \begin_layout Plain Layout
8600 OutputType
8601 \end_layout
8602
8603 \end_inset
8604
8605
8606 \begin_inset Flex Code
8607 status collapsed
8608
8609 \begin_layout Plain Layout
8610 literate
8611 \end_layout
8612
8613 \end_inset
8614
8615 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8616 \begin_inset Flex Code
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 OutputType
8621 \end_layout
8622
8623 \end_inset
8624
8625 パラメーターに遭遇したときには,この文字列は,「
8626 \begin_inset Flex Code
8627 status collapsed
8628
8629 \begin_layout Plain Layout
8630 docbook
8631 \end_layout
8632
8633 \end_inset
8634
8635 」・「
8636 \begin_inset Flex Code
8637 status collapsed
8638
8639 \begin_layout Plain Layout
8640 lat
8641 \emph on
8642 ex
8643 \end_layout
8644
8645 \end_inset
8646
8647 」のいずれかにリセットされます.
8648 \end_layout
8649
8650 \begin_layout Description
8651 \begin_inset Flex Code
8652 status collapsed
8653
8654 \begin_layout Plain Layout
8655 OutputType
8656 \end_layout
8657
8658 \end_inset
8659
8660  [
8661 \begin_inset Flex Code
8662 status collapsed
8663
8664 \begin_layout Plain Layout
8665
8666 \emph on
8667 lat
8668 \emph default
8669 ex
8670 \end_layout
8671
8672 \end_inset
8673
8674
8675 \begin_inset Flex Code
8676 status collapsed
8677
8678 \begin_layout Plain Layout
8679 docbook
8680 \end_layout
8681
8682 \end_inset
8683
8684
8685 \begin_inset Flex Code
8686 status collapsed
8687
8688 \begin_layout Plain Layout
8689 literate
8690 \end_layout
8691
8692 \end_inset
8693
8694 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8695 \end_layout
8696
8697 \begin_layout Description
8698 \begin_inset Flex Code
8699 status collapsed
8700
8701 \begin_layout Plain Layout
8702 PackageOptions
8703 \end_layout
8704
8705 \end_inset
8706
8707  [
8708 \begin_inset Flex Code
8709 status collapsed
8710
8711 \begin_layout Plain Layout
8712 文字列
8713 \end_layout
8714
8715 \end_inset
8716
8717  
8718 \begin_inset Flex Code
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 文字列
8723 \end_layout
8724
8725 \end_inset
8726
8727 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8728 \begin_inset Flex Code
8729 status collapsed
8730
8731 \begin_layout Plain Layout
8732 PackageOptions natbib square
8733 \end_layout
8734
8735 \end_inset
8736
8737 」とすると,
8738 \begin_inset Flex Code
8739 status collapsed
8740
8741 \begin_layout Plain Layout
8742 natbib
8743 \end_layout
8744
8745 \end_inset
8746
8747
8748 \begin_inset Flex Code
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 square
8753 \end_layout
8754
8755 \end_inset
8756
8757 オプションとともに読み込みます(\SpecialChar TeX
8758 perts向けに述べると,これは,
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 natbib
8764 \end_layout
8765
8766 \end_inset
8767
8768 を読み込む前に,\SpecialChar LyX
8769
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774
8775 \backslash
8776 PassOptionsToPackage{natbib}{square}
8777 \end_layout
8778
8779 \end_inset
8780
8781 を出力させます).
8782 \end_layout
8783
8784 \begin_layout Description
8785 \begin_inset Flex Code
8786 status collapsed
8787
8788 \begin_layout Plain Layout
8789 PageStyle
8790 \end_layout
8791
8792 \end_inset
8793
8794  [
8795 \emph on
8796
8797 \begin_inset Flex Code
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 plain
8802 \end_layout
8803
8804 \end_inset
8805
8806
8807 \emph default
8808
8809 \begin_inset Flex Code
8810 status collapsed
8811
8812 \begin_layout Plain Layout
8813 empty
8814 \end_layout
8815
8816 \end_inset
8817
8818
8819 \begin_inset Flex Code
8820 status collapsed
8821
8822 \begin_layout Plain Layout
8823 headings
8824 \end_layout
8825
8826 \end_inset
8827
8828 ] 既定ページ様式.
8829 \begin_inset Flex MenuItem
8830 status collapsed
8831
8832 \begin_layout Plain Layout
8833 文書\SpecialChar menuseparator
8834 設定
8835 \end_layout
8836
8837 \end_inset
8838
8839 ダイアログで変更することができます.
8840 \end_layout
8841
8842 \begin_layout Description
8843 \begin_inset Flex Code
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847 Preamble
8848 \end_layout
8849
8850 \end_inset
8851
8852  \SpecialChar LaTeX
8853 文書のプリアンブルを設定します.前に行った
8854 \begin_inset Flex Code
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858 Preamble
8859 \end_layout
8860
8861 \end_inset
8862
8863 宣言や
8864 \begin_inset Flex Code
8865 status collapsed
8866
8867 \begin_layout Plain Layout
8868 AddToPreamble
8869 \end_layout
8870
8871 \end_inset
8872
8873 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8874 \begin_inset Flex Code
8875 status collapsed
8876
8877 \begin_layout Plain Layout
8878 AddToPreamble
8879 \end_layout
8880
8881 \end_inset
8882
8883 を使用してください.)「
8884 \begin_inset Flex Code
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 EndPreamble
8889 \end_layout
8890
8891 \end_inset
8892
8893 」で閉じる必要があります.
8894 \end_layout
8895
8896 \begin_layout Description
8897 \begin_inset Flex Code
8898 status collapsed
8899
8900 \begin_layout Plain Layout
8901 Provides
8902 \end_layout
8903
8904 \end_inset
8905
8906  [
8907 \begin_inset Flex Code
8908 status collapsed
8909
8910 \begin_layout Plain Layout
8911 文字列
8912 \end_layout
8913
8914 \end_inset
8915
8916 ] [
8917 \begin_inset Flex Code
8918 status collapsed
8919
8920 \begin_layout Plain Layout
8921
8922 \emph on
8923 0
8924 \end_layout
8925
8926 \end_inset
8927
8928
8929 \begin_inset Flex Code
8930 status collapsed
8931
8932 \begin_layout Plain Layout
8933 1
8934 \end_layout
8935
8936 \end_inset
8937
8938 ] このクラスが
8939 \begin_inset Flex Code
8940 status collapsed
8941
8942 \begin_layout Plain Layout
8943 文字列
8944 \end_layout
8945
8946 \end_inset
8947
8948 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8949 \begin_inset Flex Code
8950 status collapsed
8951
8952 \begin_layout Plain Layout
8953 amsmath
8954 \end_layout
8955
8956 \end_inset
8957
8958
8959 \begin_inset Flex Code
8960 status collapsed
8961
8962 \begin_layout Plain Layout
8963 makeidx
8964 \end_layout
8965
8966 \end_inset
8967
8968 ・\SpecialChar ldots
8969 )やマクロ名(
8970 \begin_inset Flex Code
8971 status collapsed
8972
8973 \begin_layout Plain Layout
8974 url
8975 \end_layout
8976
8977 \end_inset
8978
8979
8980 \begin_inset Flex Code
8981 status collapsed
8982
8983 \begin_layout Plain Layout
8984 boldsymbol
8985 \end_layout
8986
8987 \end_inset
8988
8989 ・\SpecialChar ldots
8990 )です.機能一覧については,
8991 \begin_inset CommandInset ref
8992 LatexCommand ref
8993 reference "chap:関数一覧"
8994
8995 \end_inset
8996
8997 を参照.
8998 \end_layout
8999
9000 \begin_layout Description
9001 \begin_inset Flex Code
9002 status collapsed
9003
9004 \begin_layout Plain Layout
9005 ProvidesModule
9006 \end_layout
9007
9008 \end_inset
9009
9010  [
9011 \begin_inset Flex Code
9012 status collapsed
9013
9014 \begin_layout Plain Layout
9015 文字列
9016 \end_layout
9017
9018 \end_inset
9019
9020 ] このレイアウトが
9021 \begin_inset Flex Code
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 文字列
9026 \end_layout
9027
9028 \end_inset
9029
9030 で表されているモジュールの機能を提供することを示し,
9031 \begin_inset Flex Code
9032 status collapsed
9033
9034 \begin_layout Plain Layout
9035 .module
9036 \end_layout
9037
9038 \end_inset
9039
9040 拡張子を除いたファイル名で指定します.
9041 \begin_inset Flex Code
9042 status collapsed
9043
9044 \begin_layout Plain Layout
9045 DefaultModule
9046 \end_layout
9047
9048 \end_inset
9049
9050 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
9051 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
9052 \end_layout
9053
9054 \begin_layout Description
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 Requires
9060 \end_layout
9061
9062 \end_inset
9063
9064  [
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 文字列
9070 \end_layout
9071
9072 \end_inset
9073
9074 ] このクラスが
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 文字列
9080 \end_layout
9081
9082 \end_inset
9083
9084 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
9085 さい(機能一覧については
9086 \begin_inset CommandInset ref
9087 LatexCommand ref
9088 reference "chap:関数一覧"
9089
9090 \end_inset
9091
9092 を参照).特定のオプションをとるパッケージを要求する場合,
9093 \begin_inset Flex Code
9094 status collapsed
9095
9096 \begin_layout Plain Layout
9097 PackageOptions
9098 \end_layout
9099
9100 \end_inset
9101
9102 を追加して使うことができます.
9103 \end_layout
9104
9105 \begin_layout Description
9106 \begin_inset Flex Code
9107 status collapsed
9108
9109 \begin_layout Plain Layout
9110 RightMargin
9111 \end_layout
9112
9113 \end_inset
9114
9115  [
9116 \begin_inset Flex Code
9117 status collapsed
9118
9119 \begin_layout Plain Layout
9120 文字列
9121 \end_layout
9122
9123 \end_inset
9124
9125 ] 画面上の右余白の幅を指示する文字列.例:「
9126 \begin_inset Flex Code
9127 status collapsed
9128
9129 \begin_layout Plain Layout
9130 MMMMM
9131 \end_layout
9132
9133 \end_inset
9134
9135 」.
9136 \end_layout
9137
9138 \begin_layout Description
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 SecNumDepth
9144 \end_layout
9145
9146 \end_inset
9147
9148  [
9149 \begin_inset Flex Code
9150 status collapsed
9151
9152 \begin_layout Plain Layout
9153 int=3
9154 \end_layout
9155
9156 \end_inset
9157
9158 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
9159 における
9160 \begin_inset Flex Code
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 secnumdepth
9165 \end_layout
9166
9167 \end_inset
9168
9169 カウンタに対応します.
9170 \end_layout
9171
9172 \begin_layout Description
9173 \begin_inset Flex Code
9174 status collapsed
9175
9176 \begin_layout Plain Layout
9177 Sides
9178 \end_layout
9179
9180 \end_inset
9181
9182  [
9183 \emph on
9184
9185 \begin_inset Flex Code
9186 status collapsed
9187
9188 \begin_layout Plain Layout
9189 1
9190 \end_layout
9191
9192 \end_inset
9193
9194
9195 \emph default
9196 ,
9197 \begin_inset space \thinspace{}
9198 \end_inset
9199
9200
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 2
9206 \end_layout
9207
9208 \end_inset
9209
9210 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
9211 \begin_inset Flex MenuItem
9212 status collapsed
9213
9214 \begin_layout Plain Layout
9215 文書\SpecialChar menuseparator
9216 設定
9217 \end_layout
9218
9219 \end_inset
9220
9221 ダイアログで変更することができます.
9222 \end_layout
9223
9224 \begin_layout Description
9225 \begin_inset Flex Code
9226 status collapsed
9227
9228 \begin_layout Plain Layout
9229 Style
9230 \end_layout
9231
9232 \end_inset
9233
9234  [
9235 \begin_inset Flex Code
9236 status collapsed
9237
9238 \begin_layout Plain Layout
9239 <名称>
9240 \end_layout
9241
9242 \end_inset
9243
9244 ]
9245 \lang english
9246  
9247 \lang japanese
9248 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
9249 \begin_inset Flex Code
9250 status collapsed
9251
9252 \begin_layout Plain Layout
9253 End
9254 \end_layout
9255
9256 \end_inset
9257
9258 」で閉じる必要があります.
9259 \begin_inset Newline newline
9260 \end_inset
9261
9262 段落様式に関する詳細は,
9263 \begin_inset CommandInset ref
9264 LatexCommand ref
9265 reference "subsec:段落様式-XHTML"
9266
9267 \end_inset
9268
9269 をご覧ください.
9270 \end_layout
9271
9272 \begin_layout Description
9273 \begin_inset Flex Code
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277 TitleLatexName
9278 \end_layout
9279
9280 \end_inset
9281
9282  [
9283 \begin_inset Flex Code
9284 status collapsed
9285
9286 \begin_layout Plain Layout
9287 文字列="maketitle"
9288 \end_layout
9289
9290 \end_inset
9291
9292
9293 \begin_inset Flex Code
9294 status collapsed
9295
9296 \begin_layout Plain Layout
9297 TitleLatexType
9298 \end_layout
9299
9300 \end_inset
9301
9302 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
9303  
9304 \begin_inset Flex Code
9305 status collapsed
9306
9307 \begin_layout Plain Layout
9308 TitleLatexType
9309 \end_layout
9310
9311 \end_inset
9312
9313 .
9314 \end_layout
9315
9316 \begin_layout Description
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 TitleLatexType
9322 \end_layout
9323
9324 \end_inset
9325
9326  [
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331
9332 \emph on
9333 CommandAfter
9334 \end_layout
9335
9336 \end_inset
9337
9338
9339 \begin_inset Flex Code
9340 status collapsed
9341
9342 \begin_layout Plain Layout
9343 Environment
9344 \end_layout
9345
9346 \end_inset
9347
9348 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 CommandAfter
9354 \end_layout
9355
9356 \end_inset
9357
9358 は,「
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 InTitle
9364 \begin_inset space ~
9365 \end_inset
9366
9367 1
9368 \end_layout
9369
9370 \end_inset
9371
9372 」が指定されている最後のレイアウトの後に,
9373 \begin_inset Flex Code
9374 status collapsed
9375
9376 \begin_layout Plain Layout
9377 TitleLatexName
9378 \end_layout
9379
9380 \end_inset
9381
9382 で指定したマクロ名を挿入することを意味します.
9383 \begin_inset Flex Code
9384 status collapsed
9385
9386 \begin_layout Plain Layout
9387 Environment
9388 \end_layout
9389
9390 \end_inset
9391
9392 は,「
9393 \begin_inset Flex Code
9394 status collapsed
9395
9396 \begin_layout Plain Layout
9397 InTitle
9398 \begin_inset space ~
9399 \end_inset
9400
9401 1
9402 \end_layout
9403
9404 \end_inset
9405
9406 」を持つ段落群を
9407 \begin_inset Flex Code
9408 status collapsed
9409
9410 \begin_layout Plain Layout
9411 TitleLatexName
9412 \end_layout
9413
9414 \end_inset
9415
9416 で指定した環境でくるむ場合に対応します.
9417 \end_layout
9418
9419 \begin_layout Description
9420 \begin_inset Flex Code
9421 status collapsed
9422
9423 \begin_layout Plain Layout
9424 TocDepth
9425 \end_layout
9426
9427 \end_inset
9428
9429  [
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 int=3
9435 \end_layout
9436
9437 \end_inset
9438
9439 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9440
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 tocdepth
9446 \end_layout
9447
9448 \end_inset
9449
9450 カウンタに対応します.
9451 \end_layout
9452
9453 \begin_layout Subsection
9454 \begin_inset Flex Code
9455 status collapsed
9456
9457 \begin_layout Plain Layout
9458 ClassOptions
9459 \end_layout
9460
9461 \end_inset
9462
9463
9464 \begin_inset CommandInset label
9465 LatexCommand label
9466 name "subsec:ClassOptions"
9467
9468 \end_inset
9469
9470
9471 \end_layout
9472
9473 \begin_layout Standard
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478 ClassOptions
9479 \end_layout
9480
9481 \end_inset
9482
9483 部は,以下の項目を取り得ます.
9484 \end_layout
9485
9486 \begin_layout Description
9487 \begin_inset Flex Code
9488 status collapsed
9489
9490 \begin_layout Plain Layout
9491 FontSize
9492 \end_layout
9493
9494 \end_inset
9495
9496  [
9497 \begin_inset Flex Code
9498 status collapsed
9499
9500 \begin_layout Plain Layout
9501 文字列="10|11|12"
9502 \end_layout
9503
9504 \end_inset
9505
9506 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9507 \begin_inset Flex Code
9508 status collapsed
9509
9510 \begin_layout Plain Layout
9511 |
9512 \end_layout
9513
9514 \end_inset
9515
9516 」で区切ります.
9517 \end_layout
9518
9519 \begin_layout Description
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 Header
9525 \end_layout
9526
9527 \end_inset
9528
9529  XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC 
9530 \begin_inset Quotes eld
9531 \end_inset
9532
9533 -//OASIS//DTD DocBook V4.2//EN
9534 \begin_inset Quotes erd
9535 \end_inset
9536
9537
9538 \end_layout
9539
9540 \begin_layout Description
9541 \begin_inset Flex Code
9542 status collapsed
9543
9544 \begin_layout Plain Layout
9545 PageStyle
9546 \end_layout
9547
9548 \end_inset
9549
9550  [
9551 \begin_inset Flex Code
9552 status collapsed
9553
9554 \begin_layout Plain Layout
9555 文字列="empty|plain|headings|fancy"
9556 \end_layout
9557
9558 \end_inset
9559
9560 ] 使用できるページ様式の一覧です.「
9561 \begin_inset Flex Code
9562 status collapsed
9563
9564 \begin_layout Plain Layout
9565 |
9566 \end_layout
9567
9568 \end_inset
9569
9570 」で区切ります.
9571 \end_layout
9572
9573 \begin_layout Description
9574 \begin_inset Flex Code
9575 status collapsed
9576
9577 \begin_layout Plain Layout
9578 Other
9579 \end_layout
9580
9581 \end_inset
9582
9583  [
9584 \begin_inset Flex Code
9585 status collapsed
9586
9587 \begin_layout Plain Layout
9588 文字列=""
9589 \end_layout
9590
9591 \end_inset
9592
9593
9594 \begin_inset Flex Code
9595 status collapsed
9596
9597 \begin_layout Plain Layout
9598
9599 \backslash
9600 documentclass
9601 \end_layout
9602
9603 \end_inset
9604
9605 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9606 \end_layout
9607
9608 \begin_layout Standard
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 ClassOptions
9614 \end_layout
9615
9616 \end_inset
9617
9618 部は「
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 End
9624 \end_layout
9625
9626 \end_inset
9627
9628 」で閉じる必要があります.
9629 \end_layout
9630
9631 \begin_layout Subsection
9632 段落様式
9633 \begin_inset CommandInset label
9634 LatexCommand label
9635 name "subsec:段落様式"
9636
9637 \end_inset
9638
9639
9640 \end_layout
9641
9642 \begin_layout Standard
9643 段落様式の記述は,以下のようになります
9644 \begin_inset Foot
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9649 \end_layout
9650
9651 \end_inset
9652
9653
9654 \end_layout
9655
9656 \begin_layout LyX-Code
9657 Style 
9658 \family roman
9659 \emph on
9660 名称
9661 \end_layout
9662
9663 \begin_layout LyX-Code
9664  ...
9665 \end_layout
9666
9667 \begin_layout LyX-Code
9668 End
9669 \end_layout
9670
9671 \begin_layout Standard
9672 ここでは,以下のコマンドを使用することができます.
9673 \end_layout
9674
9675 \begin_layout Description
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 AddToToc
9681 \end_layout
9682
9683 \end_inset
9684
9685  [
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 文字列
9691 \end_layout
9692
9693 \end_inset
9694
9695 =""] この段落は指定された型の一覧表に現れます.空の文字列を与えると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドもご覧
9696 ください.既定値:無効.
9697 \end_layout
9698
9699 \begin_layout Description
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 Align
9705 \end_layout
9706
9707 \end_inset
9708
9709  [
9710 \begin_inset Flex Code
9711 status collapsed
9712
9713 \begin_layout Plain Layout
9714
9715 \emph on
9716 block
9717 \emph default
9718 , left, right, center
9719 \end_layout
9720
9721 \end_inset
9722
9723 ] 段落の揃え.
9724 \end_layout
9725
9726 \begin_layout Description
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 AlignPossible
9732 \end_layout
9733
9734 \end_inset
9735
9736  [
9737 \begin_inset Flex Code
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741
9742 \emph on
9743 block
9744 \emph default
9745 , left, right, center
9746 \end_layout
9747
9748 \end_inset
9749
9750 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9751 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9752 はできません).
9753 \end_layout
9754
9755 \begin_layout Description
9756 \begin_inset Flex Code
9757 status collapsed
9758
9759 \begin_layout Plain Layout
9760 Argument
9761 \end_layout
9762
9763 \end_inset
9764
9765  [
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 整数
9771 \end_layout
9772
9773 \end_inset
9774
9775 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9776 でのみ意味を持ちます.コマンドまたは環
9777 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9778 \begin_inset Flex Code
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 EndArgument
9783 \end_layout
9784
9785 \end_inset
9786
9787 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9788 \end_layout
9789
9790 \begin_deeper
9791 \begin_layout Quote
9792
9793 \family typewriter
9794 Argument 1
9795 \end_layout
9796
9797 \begin_layout Quote
9798
9799 \family typewriter
9800 ...
9801 \end_layout
9802
9803 \begin_layout Quote
9804
9805 \family typewriter
9806 EndArgument
9807 \end_layout
9808
9809 \begin_layout Quote
9810
9811 \family typewriter
9812 Argument 2
9813 \end_layout
9814
9815 \begin_layout Quote
9816
9817 \family typewriter
9818 ...
9819 \end_layout
9820
9821 \begin_layout Quote
9822
9823 \family typewriter
9824 EndArgument
9825 \end_layout
9826
9827 \begin_layout Standard
9828 \begin_inset Flex Code
9829 status collapsed
9830
9831 \begin_layout Plain Layout
9832 Argument
9833 \end_layout
9834
9835 \end_inset
9836
9837 定義内部では,以下の指定をすることができます.
9838 \end_layout
9839
9840 \begin_layout Itemize
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 LabelString
9846 \end_layout
9847
9848 \end_inset
9849
9850  
9851 \begin_inset Flex Code
9852 status collapsed
9853
9854 \begin_layout Plain Layout
9855 [文字列]
9856 \end_layout
9857
9858 \end_inset
9859
9860  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9861 \begin_inset Flex Code
9862 status collapsed
9863
9864 \begin_layout Plain Layout
9865 MenuString
9866 \end_layout
9867
9868 \end_inset
9869
9870 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9871 \begin_inset space \space{}
9872 \end_inset
9873
9874
9875 \begin_inset Quotes eld
9876 \end_inset
9877
9878
9879 \begin_inset Flex Code
9880 status collapsed
9881
9882 \begin_layout Plain Layout
9883 Short Title|S
9884 \end_layout
9885
9886 \end_inset
9887
9888
9889 \begin_inset Quotes erd
9890 \end_inset
9891
9892 ).
9893 \end_layout
9894
9895 \begin_layout Itemize
9896 \begin_inset Flex Code
9897 status collapsed
9898
9899 \begin_layout Plain Layout
9900 MenuString
9901 \end_layout
9902
9903 \end_inset
9904
9905  
9906 \begin_inset Flex Code
9907 status collapsed
9908
9909 \begin_layout Plain Layout
9910 [文字列]
9911 \end_layout
9912
9913 \end_inset
9914
9915  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9916 \begin_inset space \space{}
9917 \end_inset
9918
9919
9920 \begin_inset Quotes eld
9921 \end_inset
9922
9923
9924 \begin_inset Flex Code
9925 status collapsed
9926
9927 \begin_layout Plain Layout
9928 Short Title|S
9929 \end_layout
9930
9931 \end_inset
9932
9933
9934 \begin_inset Quotes erd
9935 \end_inset
9936
9937 ).この指定は必須ではありません.指定しない場合には,代わりに
9938 \begin_inset Flex Code
9939 status collapsed
9940
9941 \begin_layout Plain Layout
9942 LabelString
9943 \end_layout
9944
9945 \end_inset
9946
9947 がメニューに用いられます.
9948 \end_layout
9949
9950 \begin_layout Itemize
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 Tooltip
9956 \end_layout
9957
9958 \end_inset
9959
9960  
9961 \begin_inset Flex Code
9962 status collapsed
9963
9964 \begin_layout Plain Layout
9965 [文字列]
9966 \end_layout
9967
9968 \end_inset
9969
9970  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9971 \end_layout
9972
9973 \begin_layout Itemize
9974 \begin_inset Flex Code
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978 Mandatory
9979 \end_layout
9980
9981 \end_inset
9982
9983  [
9984 \begin_inset Flex Code
9985 status collapsed
9986
9987 \begin_layout Plain Layout
9988
9989 \emph on
9990 0
9991 \end_layout
9992
9993 \end_inset
9994
9995 ,
9996 \begin_inset space \thinspace{}
9997 \end_inset
9998
9999
10000 \begin_inset Flex Code
10001 status collapsed
10002
10003 \begin_layout Plain Layout
10004 1
10005 \end_layout
10006
10007 \end_inset
10008
10009 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
10010 .既定では,必須引数は
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 {...}
10016 \end_layout
10017
10018 \end_inset
10019
10020 で区切られ,非必須引数は
10021 \begin_inset Flex Code
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025 [...]
10026 \end_layout
10027
10028 \end_inset
10029
10030 で区切られます.
10031 \end_layout
10032
10033 \begin_layout Itemize
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 Requires
10039 \end_layout
10040
10041 \end_inset
10042
10043  
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 [整数=0]
10049 \end_layout
10050
10051 \end_inset
10052
10053  この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
10054 コマンドでは,
10055 \begin_inset Flex Code
10056 status collapsed
10057
10058 \begin_layout Plain Layout
10059
10060 \backslash
10061 command[][引数]{文字列}
10062 \end_layout
10063
10064 \end_inset
10065
10066 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
10067 \begin_inset Flex Code
10068 status collapsed
10069
10070 \begin_layout Plain Layout
10071 Argument 2
10072 \end_layout
10073
10074 \end_inset
10075
10076 中に
10077 \begin_inset Flex Code
10078 status collapsed
10079
10080 \begin_layout Plain Layout
10081 Requires 1
10082 \end_layout
10083
10084 \end_inset
10085
10086 ステートメントを置くことで実現できます.
10087 \end_layout
10088
10089 \begin_layout Itemize
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 LeftDelim
10095 \end_layout
10096
10097 \end_inset
10098
10099  
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 [文字列]
10105 \end_layout
10106
10107 \end_inset
10108
10109  (
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 {
10115 \end_layout
10116
10117 \end_inset
10118
10119
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 [
10125 \end_layout
10126
10127 \end_inset
10128
10129 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 <br/>
10135 \end_layout
10136
10137 \end_inset
10138
10139 で指示できます.
10140 \end_layout
10141
10142 \begin_layout Itemize
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 RightDelim
10148 \end_layout
10149
10150 \end_inset
10151
10152  
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 [文字列]
10158 \end_layout
10159
10160 \end_inset
10161
10162  (
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 }
10168 \end_layout
10169
10170 \end_inset
10171
10172
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 ]
10178 \end_layout
10179
10180 \end_inset
10181
10182 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
10183 \begin_inset Flex Code
10184 status collapsed
10185
10186 \begin_layout Plain Layout
10187 <br/>
10188 \end_layout
10189
10190 \end_inset
10191
10192 で指示できます.
10193 \end_layout
10194
10195 \begin_layout Itemize
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 DefaultArg
10201 \end_layout
10202
10203 \end_inset
10204
10205  
10206 \begin_inset Flex Code
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 [文字列]
10211 \end_layout
10212
10213 \end_inset
10214
10215  ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10216 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
10217 \end_layout
10218
10219 \begin_layout Itemize
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 PresetArg
10225 \end_layout
10226
10227 \end_inset
10228
10229  
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 [文字列]
10235 \end_layout
10236
10237 \end_inset
10238
10239  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
10240 \end_layout
10241
10242 \begin_layout Itemize
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247 Font
10248 \end_layout
10249
10250 \end_inset
10251
10252  引数の内容に用いられるフォント.
10253 \begin_inset CommandInset ref
10254 LatexCommand ref
10255 reference "subsec:フォント指定"
10256
10257 \end_inset
10258
10259 参照.
10260 \end_layout
10261
10262 \begin_layout Itemize
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 LabelFont
10268 \end_layout
10269
10270 \end_inset
10271
10272  ラベルに用いられるフォント.
10273 \begin_inset CommandInset ref
10274 LatexCommand ref
10275 reference "subsec:フォント指定"
10276
10277 \end_inset
10278
10279 参照.
10280 \end_layout
10281
10282 \begin_layout Itemize
10283 \begin_inset Flex Code
10284 status collapsed
10285
10286 \begin_layout Plain Layout
10287 Decoration
10288 \end_layout
10289
10290 \end_inset
10291
10292  [
10293 \begin_inset Flex Code
10294 status collapsed
10295
10296 \begin_layout Plain Layout
10297
10298 \emph on
10299 Classic
10300 \emph default
10301 , Minimalistic, Conglomerate
10302 \end_layout
10303
10304 \end_inset
10305
10306 ] 差込枠の枠とボタンに用いられる装飾様式.
10307 \end_layout
10308
10309 \begin_layout Itemize
10310 \begin_inset Flex Code
10311 status collapsed
10312
10313 \begin_layout Plain Layout
10314 AutoInsert
10315 \end_layout
10316
10317 \end_inset
10318
10319  
10320 \begin_inset Flex Code
10321 status collapsed
10322
10323 \begin_layout Plain Layout
10324 [整数=0]
10325 \end_layout
10326
10327 \end_inset
10328
10329  これが
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 1
10335 \end_layout
10336
10337 \end_inset
10338
10339 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
10340 \end_layout
10341
10342 \begin_layout Itemize
10343 \begin_inset Flex Code
10344 status collapsed
10345
10346 \begin_layout Plain Layout
10347 InsertCotext
10348 \end_layout
10349
10350 \end_inset
10351
10352  
10353 \begin_inset Flex Code
10354 status collapsed
10355
10356 \begin_layout Plain Layout
10357 [整数=0]
10358 \end_layout
10359
10360 \end_inset
10361
10362  これが
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 1
10368 \end_layout
10369
10370 \end_inset
10371
10372 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10373 \end_layout
10374
10375 \begin_layout Itemize
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 PassThru
10381 \end_layout
10382
10383 \end_inset
10384
10385  [
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390
10391 \emph on
10392 inherited
10393 \emph default
10394 , true, false
10395 \end_layout
10396
10397 \end_inset
10398
10399 ] この引数の内容が,\SpecialChar LaTeX
10400 が要求する特別な書き換えを行うことなく,原文のまま出力されるべきかどうかを指定します.既定値では,
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 PassThru
10406 \end_layout
10407
10408 \end_inset
10409
10410 の状態は,引数が属する差込枠または段落レイアウトに継承されます.trueまたはfalseは,この引数のみの状態を変更します.
10411 \end_layout
10412
10413 \begin_layout Itemize
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 PassThruChars
10419 \end_layout
10420
10421 \end_inset
10422
10423  [
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 文字列
10429 \end_layout
10430
10431 \end_inset
10432
10433 ]
10434 \family typewriter
10435  
10436 \family default
10437 \SpecialChar LaTeX
10438 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10439 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10440 \end_layout
10441
10442 \begin_layout Itemize
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 IsTocCaption
10448 \end_layout
10449
10450 \end_inset
10451
10452  [
10453 \begin_inset Flex Code
10454 status collapsed
10455
10456 \begin_layout Plain Layout
10457
10458 \emph on
10459 0
10460 \end_layout
10461
10462 \end_inset
10463
10464 ,
10465 \begin_inset space \thinspace{}
10466 \end_inset
10467
10468
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 1
10474 \end_layout
10475
10476 \end_inset
10477
10478 ] これを1に設定すると,引数は,その内容を対応する一覧表の項目に出力します.AddToTocを参照.
10479 \end_layout
10480
10481 \begin_layout Standard
10482 既定では,
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 LatexType
10488 \end_layout
10489
10490 \end_inset
10491
10492
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 Command
10498 \end_layout
10499
10500 \end_inset
10501
10502 のとき,各レイアウトで\SpecialChar LyX
10503 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 post:
10509 \end_layout
10510
10511 \end_inset
10512
10513 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 post:1
10519 \end_layout
10520
10521 \end_inset
10522
10523 となります.後置引数は,
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528 Command
10529 \end_layout
10530
10531 \end_inset
10532
10533 以外の
10534 \begin_inset Flex Code
10535 status collapsed
10536
10537 \begin_layout Plain Layout
10538 LatexType
10539 \end_layout
10540
10541 \end_inset
10542
10543 では無視されます.
10544 \end_layout
10545
10546 \begin_layout Standard
10547 (
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552
10553 \backslash
10554 item[foo]
10555 \end_layout
10556
10557 \end_inset
10558
10559 のような)箇条書き
10560 \begin_inset Flex Code
10561 status collapsed
10562
10563 \begin_layout Plain Layout
10564
10565 \backslash
10566 item
10567 \end_layout
10568
10569 \end_inset
10570
10571 の引数は,前置句
10572 \begin_inset Flex Code
10573 status collapsed
10574
10575 \begin_layout Plain Layout
10576 item:
10577 \end_layout
10578
10579 \end_inset
10580
10581 の後に番号を付けます(例:
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 Argument item:1
10587 \end_layout
10588
10589 \end_inset
10590
10591 ).
10592 \end_layout
10593
10594 \end_deeper
10595 \begin_layout Description
10596
10597 \lang english
10598 \begin_inset Flex Code
10599 status collapsed
10600
10601 \begin_layout Plain Layout
10602
10603 \lang english
10604 AutoNests
10605 \end_layout
10606
10607 \end_inset
10608
10609  Includes a comma-separated list of layouts that should be nested in and
10610  after the current layout.
10611  Only makes sense for nestable layouts (such as environments).
10612  Must be ended by 
10613 \begin_inset Quotes eld
10614 \end_inset
10615
10616
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621
10622 \lang english
10623 EndAutoNests
10624 \end_layout
10625
10626 \end_inset
10627
10628
10629 \begin_inset Quotes erd
10630 \end_inset
10631
10632 .
10633  See also 
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638
10639 \lang english
10640 IsAutoNestedBy
10641 \end_layout
10642
10643 \end_inset
10644
10645 .
10646 \end_layout
10647
10648 \begin_layout Description
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 BabelPreamble
10654 \end_layout
10655
10656 \end_inset
10657
10658  これは,前に現れたこの様式の
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 BabelPreamble
10664 \end_layout
10665
10666 \end_inset
10667
10668 宣言をすべて,完全に上書きしますので注意してください.「
10669 \begin_inset Flex Code
10670 status collapsed
10671
10672 \begin_layout Plain Layout
10673 EndBabelPreamble
10674 \end_layout
10675
10676 \end_inset
10677
10678 」で閉じる必要があります.これの利用法についての詳細は,第
10679 \begin_inset CommandInset ref
10680 LatexCommand ref
10681 reference "subsec:段落様式の国際化"
10682
10683 \end_inset
10684
10685 節をご覧ください.
10686 \end_layout
10687
10688 \begin_layout Description
10689 \begin_inset Flex Code
10690 status collapsed
10691
10692 \begin_layout Plain Layout
10693 BottomSep
10694 \end_layout
10695
10696 \end_inset
10697
10698  [
10699 \begin_inset Flex Code
10700 status collapsed
10701
10702 \begin_layout Plain Layout
10703 浮動小数点型=0
10704 \end_layout
10705
10706 \end_inset
10707
10708 ]
10709 \begin_inset Foot
10710 status collapsed
10711
10712 \begin_layout Plain Layout
10713 ここで「浮動小数点型」とは1.5のような実数を指します.
10714 \end_layout
10715
10716 \end_inset
10717
10718  このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10719 す.
10720 \end_layout
10721
10722 \begin_layout Description
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727 Category
10728 \end_layout
10729
10730 \end_inset
10731
10732  [
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 文字列
10738 \end_layout
10739
10740 \end_inset
10741
10742 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10743 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10744 \end_layout
10745
10746 \begin_layout Description
10747 \begin_inset Flex Code
10748 status collapsed
10749
10750 \begin_layout Plain Layout
10751 CommandDepth
10752 \end_layout
10753
10754 \end_inset
10755
10756  XMLコマンドの深度.XML型の書式でのみ使用されます.
10757 \end_layout
10758
10759 \begin_layout Description
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 CopyStyle
10765 \end_layout
10766
10767 \end_inset
10768
10769  [
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 文字列
10775 \end_layout
10776
10777 \end_inset
10778
10779 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10780 \end_layout
10781
10782 \begin_layout Description
10783 \begin_inset Flex Code
10784 status collapsed
10785
10786 \begin_layout Plain Layout
10787 DependsOn
10788 \end_layout
10789
10790 \end_inset
10791
10792  [
10793 \begin_inset Flex Code
10794 status collapsed
10795
10796 \begin_layout Plain Layout
10797 <名称>
10798 \end_layout
10799
10800 \end_inset
10801
10802 ]
10803 \lang english
10804  
10805 \lang japanese
10806 この
10807 \emph on
10808 前に
10809 \emph default
10810 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10811 \begin_inset Foot
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10816 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10817 あります.
10818 \end_layout
10819
10820 \end_inset
10821
10822
10823 \end_layout
10824
10825 \begin_layout Description
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 EndLabeltype
10831 \end_layout
10832
10833 \end_inset
10834
10835  [
10836 \begin_inset Flex Code
10837 status collapsed
10838
10839 \begin_layout Plain Layout
10840
10841 \emph on
10842 No_Label
10843 \emph default
10844 , Box, Filled_Box, Static
10845 \end_layout
10846
10847 \end_inset
10848
10849 ] 段落の最後(あるいは
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 LatexType
10855 \end_layout
10856
10857 \end_inset
10858
10859 が,
10860 \begin_inset Flex Code
10861 status collapsed
10862
10863 \begin_layout Plain Layout
10864 Environment
10865 \end_layout
10866
10867 \end_inset
10868
10869
10870 \begin_inset Flex Code
10871 status collapsed
10872
10873 \begin_layout Plain Layout
10874 Item_Environment
10875 \end_layout
10876
10877 \end_inset
10878
10879
10880 \begin_inset Flex Code
10881 status collapsed
10882
10883 \begin_layout Plain Layout
10884 List_Environment
10885 \end_layout
10886
10887 \end_inset
10888
10889 のいずれかの場合は,段落群の最後)に置くラベル.
10890 \begin_inset Flex Code
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 No_Label
10895 \end_layout
10896
10897 \end_inset
10898
10899 の場合は「何もない」ことを指し,
10900 \begin_inset Flex Code
10901 status collapsed
10902
10903 \begin_layout Plain Layout
10904 Box
10905 \end_layout
10906
10907 \end_inset
10908
10909 (あるいは
10910 \begin_inset Flex Code
10911 status collapsed
10912
10913 \begin_layout Plain Layout
10914 Filled_Box
10915 \end_layout
10916
10917 \end_inset
10918
10919 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924 Static
10925 \end_layout
10926
10927 \end_inset
10928
10929 は明示したテキスト文字列を指します.
10930 \end_layout
10931
10932 \begin_layout Description
10933 \begin_inset Flex Code
10934 status collapsed
10935
10936 \begin_layout Plain Layout
10937 EndLabelString
10938 \end_layout
10939
10940 \end_inset
10941
10942  [
10943 \begin_inset Flex Code
10944 status collapsed
10945
10946 \begin_layout Plain Layout
10947 文字列=""
10948 \end_layout
10949
10950 \end_inset
10951
10952
10953 \begin_inset Flex Code
10954 status collapsed
10955
10956 \begin_layout Plain Layout
10957 Static
10958 \end_layout
10959
10960 \end_inset
10961
10962
10963 \begin_inset Flex Code
10964 status collapsed
10965
10966 \begin_layout Plain Layout
10967 EndLabelType
10968 \end_layout
10969
10970 \end_inset
10971
10972 のラベルで用いる文字列.
10973 \end_layout
10974
10975 \begin_layout Description
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 Font
10981 \end_layout
10982
10983 \end_inset
10984
10985  本文テキストとラベルの
10986 \emph on
10987 両方で
10988 \emph default
10989 用いられるフォント.第
10990 \begin_inset CommandInset ref
10991 LatexCommand ref
10992 reference "subsec:フォント指定"
10993
10994 \end_inset
10995
10996 節を参照.このフォントを定義すると,自動的に
10997 \begin_inset Flex Code
10998 status collapsed
10999
11000 \begin_layout Plain Layout
11001 LabelFont
11002 \end_layout
11003
11004 \end_inset
11005
11006 も同じ値で定義されることに注意してください.したがって,
11007 \begin_inset Flex Code
11008 status collapsed
11009
11010 \begin_layout Plain Layout
11011 LabelFont
11012 \end_layout
11013
11014 \end_inset
11015
11016 も同時に定義したい場合には,これを先に定義してください.
11017 \end_layout
11018
11019 \begin_layout Description
11020 \begin_inset Flex Code
11021 status collapsed
11022
11023 \begin_layout Plain Layout
11024 ForceLocal
11025 \end_layout
11026
11027 \end_inset
11028
11029  [
11030 \begin_inset Flex Code
11031 status collapsed
11032
11033 \begin_layout Plain Layout
11034 int=0
11035 \end_layout
11036
11037 \end_inset
11038
11039 ] 新しい様式を\SpecialChar LyX
11040 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
11041  2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
11042 できます.様式の
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 ForceLocal
11048 \end_layout
11049
11050 \end_inset
11051
11052 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
11053 版の\SpecialChar LyX
11054 もこの様式を取り扱えるようになります.
11055 \begin_inset Flex Code
11056 status collapsed
11057
11058 \begin_layout Plain Layout
11059 ForceLocal
11060 \end_layout
11061
11062 \end_inset
11063
11064 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
11065 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
11066 \end_layout
11067
11068 \begin_layout Description
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073 FreeSpacing
11074 \end_layout
11075
11076 \end_inset
11077
11078  [
11079 \emph on
11080
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 0
11086 \end_layout
11087
11088 \end_inset
11089
11090
11091 \emph default
11092 ,
11093 \begin_inset space \thinspace{}
11094 \end_inset
11095
11096
11097 \begin_inset Flex Code
11098 status collapsed
11099
11100 \begin_layout Plain Layout
11101 1
11102 \end_layout
11103
11104 \end_inset
11105
11106 ] \SpecialChar LyX
11107 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
11108 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
11109 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
11110 \begin_inset Flex Code
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 FreeSpacing
11115 \end_layout
11116
11117 \end_inset
11118
11119 を有効にすることが認められています.\SpecialChar LyX
11120 は,\SpecialChar LaTeX
11121 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
11122 \end_layout
11123
11124 \begin_layout Description
11125 \begin_inset Flex Code
11126 status collapsed
11127
11128 \begin_layout Plain Layout
11129 HTML*
11130 \end_layout
11131
11132 \end_inset
11133
11134  これらのタグは,XHTML出力で使用されます.第
11135 \begin_inset CommandInset ref
11136 LatexCommand ref
11137 reference "subsec:段落様式-XHTML"
11138
11139 \end_inset
11140
11141 節をご覧ください.
11142 \end_layout
11143
11144 \begin_layout Description
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 InnerTag
11150 \end_layout
11151
11152 \end_inset
11153
11154  [[FIXME]] (XML型書式でのみ使用されます.)
11155 \end_layout
11156
11157 \begin_layout Description
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 InPreamble
11163 \end_layout
11164
11165 \end_inset
11166
11167  [
11168 \emph on
11169
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 0
11175 \end_layout
11176
11177 \end_inset
11178
11179
11180 \emph default
11181 ,
11182 \begin_inset space \thinspace{}
11183 \end_inset
11184
11185
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 1
11191 \end_layout
11192
11193 \end_inset
11194
11195
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200 1
11201 \end_layout
11202
11203 \end_inset
11204
11205 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11206 です.これは,
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211 LatexType
11212 \end_layout
11213
11214 \end_inset
11215
11216
11217 \begin_inset Flex Code
11218 status collapsed
11219
11220 \begin_layout Plain Layout
11221 Command
11222 \end_layout
11223
11224 \end_inset
11225
11226 または
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231 Paragraph
11232 \end_layout
11233
11234 \end_inset
11235
11236 の様式に対してのみ動作します.
11237 \end_layout
11238
11239 \begin_layout Description
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 InTitle
11245 \end_layout
11246
11247 \end_inset
11248
11249  [
11250 \emph on
11251
11252 \begin_inset Flex Code
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256 0
11257 \end_layout
11258
11259 \end_inset
11260
11261
11262 \emph default
11263 ,
11264 \begin_inset space \thinspace{}
11265 \end_inset
11266
11267
11268 \begin_inset Flex Code
11269 status collapsed
11270
11271 \begin_layout Plain Layout
11272 1
11273 \end_layout
11274
11275 \end_inset
11276
11277
11278 \begin_inset Flex Code
11279 status collapsed
11280
11281 \begin_layout Plain Layout
11282 1
11283 \end_layout
11284
11285 \end_inset
11286
11287 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11288 \begin_inset Flex Code
11289 status collapsed
11290
11291 \begin_layout Plain Layout
11292 TitleLatexType
11293 \end_layout
11294
11295 \end_inset
11296
11297
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302 TitleLatexName
11303 \end_layout
11304
11305 \end_inset
11306
11307 も参照).
11308 \end_layout
11309
11310 \begin_layout Description
11311
11312 \lang english
11313 \begin_inset Flex Code
11314 status collapsed
11315
11316 \begin_layout Plain Layout
11317
11318 \lang english
11319 IsAutoNestedBy
11320 \end_layout
11321
11322 \end_inset
11323
11324  Includes a comma-separated list of layouts after which this one should
11325  be nested.
11326  Only makes sense with regard to nestable layouts (such as environments).
11327  Must be ended by 
11328 \begin_inset Quotes eld
11329 \end_inset
11330
11331
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336
11337 \lang english
11338 EndIsAutoNestedBy
11339 \end_layout
11340
11341 \end_inset
11342
11343
11344 \begin_inset Quotes erd
11345 \end_inset
11346
11347 .
11348  See also 
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353
11354 \lang english
11355 AutoNests
11356 \end_layout
11357
11358 \end_inset
11359
11360 .
11361 \end_layout
11362
11363 \begin_layout Description
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 IsTocCaption
11369 \end_layout
11370
11371 \end_inset
11372
11373  [
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378
11379 \emph on
11380 0
11381 \end_layout
11382
11383 \end_inset
11384
11385 ,
11386 \begin_inset space \thinspace{}
11387 \end_inset
11388
11389
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 1
11395 \end_layout
11396
11397 \end_inset
11398
11399 ] これを1に設定すると,AddToTocが有効になり,段落は,その内容の要約を一覧表の項目に表示します.0に設定すると,ラベルが存在すれば,それのみが表示され
11400 ます.
11401 \end_layout
11402
11403 \begin_layout Description
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 ItemCommand
11409 \end_layout
11410
11411 \end_inset
11412
11413  [
11414 \begin_inset Flex Code
11415 status collapsed
11416
11417 \begin_layout Plain Layout
11418 文字列="item"
11419 \end_layout
11420
11421 \end_inset
11422
11423 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11424 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
11425 出力中では
11426 \begin_inset Flex Code
11427 status collapsed
11428
11429 \begin_layout Plain Layout
11430
11431 \backslash
11432 item
11433 \end_layout
11434
11435 \end_inset
11436
11437 となります).
11438 \end_layout
11439
11440 \begin_layout Description
11441 \begin_inset Flex Code
11442 status collapsed
11443
11444 \begin_layout Plain Layout
11445 ItemSep
11446 \end_layout
11447
11448 \end_inset
11449
11450  [
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 浮動小数点型=0
11456 \end_layout
11457
11458 \end_inset
11459
11460 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 ParSep
11466 \end_layout
11467
11468 \end_inset
11469
11470 だけ分離されます.しかし,その環境の項目全体は,さらにこの
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 ItemSep
11476 \end_layout
11477
11478 \end_inset
11479
11480 分だけ離されます.これは
11481 \emph on
11482 乗数
11483 \emph default
11484 であることに注意してください.
11485 \end_layout
11486
11487 \begin_layout Description
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 ItemTag
11493 \end_layout
11494
11495 \end_inset
11496
11497  [[FIXME]] (XML型書式でのみ使用されます.)
11498 \end_layout
11499
11500 \begin_layout Description
11501 \begin_inset Flex Code
11502 status collapsed
11503
11504 \begin_layout Plain Layout
11505 KeepEmpty
11506 \end_layout
11507
11508 \end_inset
11509
11510  [
11511 \emph on
11512
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 0
11518 \end_layout
11519
11520 \end_inset
11521
11522
11523 \emph default
11524 ,
11525 \begin_inset space \thinspace{}
11526 \end_inset
11527
11528
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 1
11534 \end_layout
11535
11536 \end_inset
11537
11538 ] 段落を空のままにすると,\SpecialChar LaTeX
11539 出力が空になってしまうので,通常,\SpecialChar LyX
11540 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
11541 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
11542 まないある種の改行として使用することもあります.
11543 \end_layout
11544
11545 \begin_layout Description
11546 \begin_inset Flex Code
11547 status collapsed
11548
11549 \begin_layout Plain Layout
11550 LabelBottomsep
11551 \end_layout
11552
11553 \end_inset
11554
11555  [
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560 浮動小数点型=0
11561 \end_layout
11562
11563 \end_inset
11564
11565 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
11566 \begin_inset Flex Code
11567 status collapsed
11568
11569 \begin_layout Plain Layout
11570 Top_Environment
11571 \end_layout
11572
11573 \end_inset
11574
11575 および
11576 \begin_inset Newline linebreak
11577 \end_inset
11578
11579
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 Centered_Top_Environment
11585 \end_layout
11586
11587 \end_inset
11588
11589 ).
11590 \end_layout
11591
11592 \begin_layout Description
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597 LabelCounter
11598 \end_layout
11599
11600 \end_inset
11601
11602  [
11603 \begin_inset Flex Code
11604 status collapsed
11605
11606 \begin_layout Plain Layout
11607 文字列=""
11608 \end_layout
11609
11610 \end_inset
11611
11612 ] 自動連番に使われるカウンタ名(詳しくは第
11613 \begin_inset CommandInset ref
11614 LatexCommand ref
11615 reference "subsec:カウンタ"
11616 plural "false"
11617 caps "false"
11618 noprefix "false"
11619
11620 \end_inset
11621
11622 節参照).カウンタがラベル中に表示されるようにするためには,
11623 \begin_inset Flex Code
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 LabelString
11628 \end_layout
11629
11630 \end_inset
11631
11632 中で参照する必要があります.これは,少なくとも
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 Static
11638 \end_layout
11639
11640 \end_inset
11641
11642
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647 Above
11648 \end_layout
11649
11650 \end_inset
11651
11652
11653 \begin_inset Flex Code
11654 status collapsed
11655
11656 \begin_layout Plain Layout
11657 Centered
11658 \end_layout
11659
11660 \end_inset
11661
11662 の各
11663 \begin_inset Flex Code
11664 status collapsed
11665
11666 \begin_layout Plain Layout
11667 LabelType
11668 \end_layout
11669
11670 \end_inset
11671
11672 で動作します.
11673 \begin_inset Newline newline
11674 \end_inset
11675
11676 また,
11677 \begin_inset Flex Code
11678 status collapsed
11679
11680 \begin_layout Plain Layout
11681 LabelType
11682 \end_layout
11683
11684 \end_inset
11685
11686
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 Enumerate
11692 \end_layout
11693
11694 \end_inset
11695
11696 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701 LabelCounter myenum
11702 \end_layout
11703
11704 \end_inset
11705
11706 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11707 におけるのと同様,実際に使われるカウンタは,
11708 \begin_inset Flex Code
11709 status collapsed
11710
11711 \begin_layout Plain Layout
11712 myenumi
11713 \end_layout
11714
11715 \end_inset
11716
11717
11718 \begin_inset Flex Code
11719 status collapsed
11720
11721 \begin_layout Plain Layout
11722 myenumii
11723 \end_layout
11724
11725 \end_inset
11726
11727
11728 \begin_inset Flex Code
11729 status collapsed
11730
11731 \begin_layout Plain Layout
11732 myenumii
11733 \end_layout
11734
11735 \end_inset
11736
11737
11738 \begin_inset Flex Code
11739 status collapsed
11740
11741 \begin_layout Plain Layout
11742 myenumiv
11743 \end_layout
11744
11745 \end_inset
11746
11747 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11748 \begin_inset Newline newline
11749 \end_inset
11750
11751 カウンタの詳細については,
11752 \begin_inset CommandInset ref
11753 LatexCommand ref
11754 reference "subsec:カウンタ"
11755
11756 \end_inset
11757
11758 をご覧ください.
11759 \end_layout
11760
11761 \begin_layout Description
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 LabelFont
11767 \end_layout
11768
11769 \end_inset
11770
11771  ラベルに使用されるフォント.
11772 \begin_inset CommandInset ref
11773 LatexCommand ref
11774 reference "subsec:フォント指定"
11775
11776 \end_inset
11777
11778 を参照.
11779 \end_layout
11780
11781 \begin_layout Description
11782 \begin_inset Flex Code
11783 status collapsed
11784
11785 \begin_layout Plain Layout
11786 LabelIndent
11787 \end_layout
11788
11789 \end_inset
11790
11791  [
11792 \begin_inset Flex Code
11793 status collapsed
11794
11795 \begin_layout Plain Layout
11796 文字列=""
11797 \end_layout
11798
11799 \end_inset
11800
11801 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11802 \end_layout
11803
11804 \begin_layout Description
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 LabelSep
11810 \end_layout
11811
11812 \end_inset
11813
11814  [
11815 \begin_inset Flex Code
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819 文字列=""
11820 \end_layout
11821
11822 \end_inset
11823
11824 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11825 \end_layout
11826
11827 \begin_layout Description
11828 \begin_inset Flex Code
11829 status collapsed
11830
11831 \begin_layout Plain Layout
11832 LabelString
11833 \end_layout
11834
11835 \end_inset
11836
11837  [
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 文字列=""
11843 \end_layout
11844
11845 \end_inset
11846
11847
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 Static
11853 \end_layout
11854
11855 \end_inset
11856
11857 ラベル型でラベルに使用する文字列.
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 LabelCounter
11863 \end_layout
11864
11865 \end_inset
11866
11867 を設定している場合,
11868 \begin_inset CommandInset ref
11869 LatexCommand ref
11870 reference "subsec:カウンタ"
11871
11872 \end_inset
11873
11874 に述べられている特別な整形コマンドを含めることができます.
11875 \end_layout
11876
11877 \begin_layout Description
11878 \begin_inset Flex Code
11879 status collapsed
11880
11881 \begin_layout Plain Layout
11882 LabelStringAppendix
11883 \end_layout
11884
11885 \end_inset
11886
11887  [
11888 \begin_inset Flex Code
11889 status collapsed
11890
11891 \begin_layout Plain Layout
11892 文字列=""
11893 \end_layout
11894
11895 \end_inset
11896
11897 ] これは付録の中で
11898 \begin_inset Flex Code
11899 status collapsed
11900
11901 \begin_layout Plain Layout
11902 LabelString
11903 \end_layout
11904
11905 \end_inset
11906
11907 の代わりに用いられます.各
11908 \begin_inset Flex Code
11909 status collapsed
11910
11911 \begin_layout Plain Layout
11912 LabelString
11913 \end_layout
11914
11915 \end_inset
11916
11917 ステートメントは,
11918 \begin_inset Flex Code
11919 status collapsed
11920
11921 \begin_layout Plain Layout
11922 LabelStringAppendix
11923 \end_layout
11924
11925 \end_inset
11926
11927 をもリセットすることに注意してください.
11928 \end_layout
11929
11930 \begin_layout Description
11931 \begin_inset Flex Code
11932 status collapsed
11933
11934 \begin_layout Plain Layout
11935 LabelTag
11936 \end_layout
11937
11938 \end_inset
11939
11940  [FIXME] (XML型書式でのみ使用されます.)
11941 \end_layout
11942
11943 \begin_layout Description
11944 \begin_inset Flex Code
11945 status collapsed
11946
11947 \begin_layout Plain Layout
11948 LabelType
11949 \end_layout
11950
11951 \end_inset
11952
11953  [
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958
11959 \emph on
11960 No_Label
11961 \emph default
11962 , Manual, Static, Above,
11963 \begin_inset Newline newline
11964 \end_inset
11965
11966 Centered, Sensitive, Enumerate,
11967 \begin_inset Newline newline
11968 \end_inset
11969
11970 Itemize, Bibliography
11971 \end_layout
11972
11973 \end_inset
11974
11975 ]
11976 \end_layout
11977
11978 \begin_deeper
11979 \begin_layout Description
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 Manual
11985 \end_layout
11986
11987 \end_inset
11988
11989  は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11990 \end_layout
11991
11992 \begin_layout Description
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 Static
11998 \end_layout
11999
12000 \end_inset
12001
12002  は,ラベルが
12003 \begin_inset Flex Code
12004 status collapsed
12005
12006 \begin_layout Plain Layout
12007 LabelString
12008 \end_layout
12009
12010 \end_inset
12011
12012 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 LatexType
12018 \end_layout
12019
12020 \end_inset
12021
12022
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 Environment
12028 \end_layout
12029
12030 \end_inset
12031
12032 のときは,連続する同じ
12033 \begin_inset Flex Code
12034 status collapsed
12035
12036 \begin_layout Plain Layout
12037 Style
12038 \end_layout
12039
12040 \end_inset
12041
12042 の段落中,最初の段落にのみ表示されます.
12043 \end_layout
12044
12045 \begin_layout Description
12046 \begin_inset Flex Code
12047 status collapsed
12048
12049 \begin_layout Plain Layout
12050 Above
12051 \end_layout
12052
12053 \end_inset
12054
12055 および
12056 \begin_inset Flex Code
12057 status collapsed
12058
12059 \begin_layout Plain Layout
12060 Centered
12061 \end_layout
12062
12063 \end_inset
12064
12065  は,
12066 \begin_inset Flex Code
12067 status collapsed
12068
12069 \begin_layout Plain Layout
12070 Static
12071 \end_layout
12072
12073 \end_inset
12074
12075 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
12076 \end_layout
12077
12078 \begin_layout Description
12079 \begin_inset Flex Code
12080 status collapsed
12081
12082 \begin_layout Plain Layout
12083 Sensitive
12084 \end_layout
12085
12086 \end_inset
12087
12088  はキャプションラベルの「図」や「表」の特別な場合です.
12089 \begin_inset Flex Code
12090 status collapsed
12091
12092 \begin_layout Plain Layout
12093 Sensitive
12094 \end_layout
12095
12096 \end_inset
12097
12098 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
12099 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
12100 \begin_inset Flex Code
12101 status collapsed
12102
12103 \begin_layout Plain Layout
12104 LabelString
12105 \end_layout
12106
12107 \end_inset
12108
12109 は「意味を成しません!」と表示されます.
12110 \end_layout
12111
12112 \begin_layout Description
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 Enumerate
12118 \end_layout
12119
12120 \end_inset
12121
12122  は,通常の連番ラベルを生成します.
12123 \lang english
12124 The number type needs to be set in the 
12125 \family sans
12126 Counter
12127 \family default
12128 , see 
12129 \lang japanese
12130
12131 \begin_inset CommandInset ref
12132 LatexCommand ref
12133 reference "subsec:カウンタ"
12134
12135 \end_inset
12136
12137
12138 \end_layout
12139
12140 \begin_layout Description
12141 \begin_inset Flex Code
12142 status collapsed
12143
12144 \begin_layout Plain Layout
12145 Itemize
12146 \end_layout
12147
12148 \end_inset
12149
12150  は,各階層でさまざまなブリットを生成します.
12151 \lang english
12152 The bullet types displayed can be set via 
12153 \begin_inset Flex Noun
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157
12158 \lang english
12159 Document\SpecialChar menuseparator
12160 Settings\SpecialChar menuseparator
12161 Bullets
12162 \end_layout
12163
12164 \end_inset
12165
12166 .
12167 \end_layout
12168
12169 \begin_layout Description
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 Bibliography
12175 \end_layout
12176
12177 \end_inset
12178
12179  は,
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 LatexType BibEnvironment
12185 \end_layout
12186
12187 \end_inset
12188
12189 とともにのみ使用されます.
12190 \end_layout
12191
12192 \end_deeper
12193 \begin_layout Description
12194 \begin_inset Flex Code
12195 status collapsed
12196
12197 \begin_layout Plain Layout
12198 LangPreamble
12199 \end_layout
12200
12201 \end_inset
12202
12203  これは,この様式で既に出現した
12204 \begin_inset Flex Code
12205 status collapsed
12206
12207 \begin_layout Plain Layout
12208 LangPreamble
12209 \end_layout
12210
12211 \end_inset
12212
12213 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
12214 \begin_inset CommandInset ref
12215 LatexCommand ref
12216 reference "subsec:段落様式の国際化"
12217
12218 \end_inset
12219
12220 をご覧ください.
12221 \end_layout
12222
12223 \begin_layout Description
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 LatexName
12229 \end_layout
12230
12231 \end_inset
12232
12233  [
12234 \begin_inset Flex Code
12235 status collapsed
12236
12237 \begin_layout Plain Layout
12238 <名称>
12239 \end_layout
12240
12241 \end_inset
12242
12243 ] 対応する\SpecialChar LaTeX
12244 の名称です.環境名かコマンド名を指します.
12245 \end_layout
12246
12247 \begin_layout Description
12248 \begin_inset Flex Code
12249 status collapsed
12250
12251 \begin_layout Plain Layout
12252 LatexParam
12253 \end_layout
12254
12255 \end_inset
12256
12257  [
12258 \begin_inset Flex Code
12259 status collapsed
12260
12261 \begin_layout Plain Layout
12262 <パラメータ>
12263 \end_layout
12264
12265 \end_inset
12266
12267 ] 対応する
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272 LatexName
12273 \end_layout
12274
12275 \end_inset
12276
12277 の非必須パラメータです.このパラメータは,\SpecialChar LyX
12278 内部から変更することはできません(変更可能なパラメータには
12279 \begin_inset Flex Code
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283 Argument
12284 \end_layout
12285
12286 \end_inset
12287
12288 を使用してください).これは,全ての\SpecialChar LaTeX
12289  
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294 Argument
12295 \end_layout
12296
12297 \end_inset
12298
12299 の後にそのままの形で出力されます.
12300 \end_layout
12301
12302 \begin_layout Description
12303 \begin_inset Flex Code
12304 status collapsed
12305
12306 \begin_layout Plain Layout
12307 LatexType
12308 \end_layout
12309
12310 \end_inset
12311
12312  [
12313 \begin_inset Flex Code
12314 status collapsed
12315
12316 \begin_layout Plain Layout
12317
12318 \emph on
12319 Paragraph
12320 \emph default
12321 , Command, Environment, Item_Environment,
12322 \begin_inset Newline newline
12323 \end_inset
12324
12325 List_Environment, Bib_Environment
12326 \end_layout
12327
12328 \end_inset
12329
12330 ] レイアウトがどのように\SpecialChar LaTeX
12331 に変換されるべきかを示します
12332 \begin_inset Foot
12333 status collapsed
12334
12335 \begin_layout Plain Layout
12336 これらのルールはSGMLクラスにも適用されるので,
12337 \begin_inset Flex Code
12338 status collapsed
12339
12340 \begin_layout Plain Layout
12341 LatexType
12342 \end_layout
12343
12344 \end_inset
12345
12346 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351 db_*.inc
12352 \end_layout
12353
12354 \end_inset
12355
12356 )を見てください.
12357 \end_layout
12358
12359 \end_inset
12360
12361
12362 \end_layout
12363
12364 \begin_deeper
12365 \begin_layout Description
12366 \begin_inset Flex Code
12367 status collapsed
12368
12369 \begin_layout Plain Layout
12370 Paragraph
12371 \end_layout
12372
12373 \end_inset
12374
12375  は,何も特別なことは意味しません.
12376 \end_layout
12377
12378 \begin_layout Description
12379 \begin_inset Flex Code
12380 status collapsed
12381
12382 \begin_layout Plain Layout
12383 Command
12384 \end_layout
12385
12386 \end_inset
12387
12388  は,
12389 \begin_inset Flex Code
12390 status collapsed
12391
12392 \begin_layout Plain Layout
12393
12394 \backslash
12395
12396 \emph on
12397 LatexName
12398 \emph default
12399 {\SpecialChar ldots
12400 }
12401 \end_layout
12402
12403 \end_inset
12404
12405 を意味します.
12406 \end_layout
12407
12408 \begin_layout Description
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 Environment
12414 \end_layout
12415
12416 \end_inset
12417
12418  は,
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423
12424 \backslash
12425 begin{
12426 \emph on
12427 LatexName
12428 \emph default
12429 }\SpecialChar ldots
12430
12431 \backslash
12432 end{
12433 \emph on
12434 LatexName
12435 \emph default
12436 }
12437 \end_layout
12438
12439 \end_inset
12440
12441 を意味します.
12442 \end_layout
12443
12444 \begin_layout Description
12445 \begin_inset Flex Code
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449 Item_Environment
12450 \end_layout
12451
12452 \end_inset
12453
12454  は
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459 Environment
12460 \end_layout
12461
12462 \end_inset
12463
12464 と同じですが,
12465 \begin_inset Flex Code
12466 status collapsed
12467
12468 \begin_layout Plain Layout
12469
12470 \backslash
12471 item
12472 \end_layout
12473
12474 \end_inset
12475
12476 がこの環境のすべての段落に付けられるところだけが異なっています.
12477 \end_layout
12478
12479 \begin_layout Description
12480 \begin_inset Flex Code
12481 status collapsed
12482
12483 \begin_layout Plain Layout
12484 List_Environment
12485 \end_layout
12486
12487 \end_inset
12488
12489  は
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 Item_Environment
12495 \end_layout
12496
12497 \end_inset
12498
12499 と同じですが,
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 LabelWidthString
12505 \end_layout
12506
12507 \end_inset
12508
12509 が環境の引数として渡されるところだけが異なっています.
12510 \begin_inset Flex Code
12511 status collapsed
12512
12513 \begin_layout Plain Layout
12514 LabelWidthString
12515 \end_layout
12516
12517 \end_inset
12518
12519 は,
12520 \begin_inset Flex MenuItem
12521 status collapsed
12522
12523 \begin_layout Plain Layout
12524 編集\SpecialChar menuseparator
12525 段落設定
12526 \end_layout
12527
12528 \end_inset
12529
12530 ダイアログで定義することができます.
12531 \end_layout
12532
12533 \begin_layout Description
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 Bib_Environment
12539 \end_layout
12540
12541 \end_inset
12542
12543  は
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 Environment
12549 \end_layout
12550
12551 \end_inset
12552
12553 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
12554 \begin_inset Newline newline
12555 \end_inset
12556
12557
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562
12563 \backslash
12564 begin{thebibliography}{99}
12565 \end_layout
12566
12567 \end_inset
12568
12569
12570 \begin_inset Newline newline
12571 \end_inset
12572
12573 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
12574 \end_layout
12575
12576 \begin_layout Standard
12577 上記最後のいくつかをまとめると,\SpecialChar LaTeX
12578 出力は,\SpecialChar LaTeX
12579 型に依存して
12580 \end_layout
12581
12582 \begin_layout LyX-Code
12583
12584 \backslash
12585 LatexName[LatexParam]{\SpecialChar ldots
12586 }
12587 \end_layout
12588
12589 \begin_layout Standard
12590 のようになるか,
12591 \end_layout
12592
12593 \begin_layout LyX-Code
12594
12595 \backslash
12596 begin{LatexName}[LatexParam] \SpecialChar ldots
12597  
12598 \backslash
12599 end{LatexName}.
12600 \end_layout
12601
12602 \begin_layout Standard
12603 となります.
12604 \end_layout
12605
12606 \end_deeper
12607 \begin_layout Description
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 LeftDelim
12613 \end_layout
12614
12615 \end_inset
12616
12617  [
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 文字列
12623 \end_layout
12624
12625 \end_inset
12626
12627 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 <br/>
12633 \end_layout
12634
12635 \end_inset
12636
12637 で指示できます.
12638 \end_layout
12639
12640 \begin_layout Description
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 LeftMargin
12646 \end_layout
12647
12648 \end_inset
12649
12650  [
12651 \begin_inset Flex Code
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655 文字列=""
12656 \end_layout
12657
12658 \end_inset
12659
12660 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12661 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12662 \end_inset
12663
12664 をかけて加えられます.このパラメータは,
12665 \begin_inset Flex Code
12666 status collapsed
12667
12668 \begin_layout Plain Layout
12669 Margin
12670 \end_layout
12671
12672 \end_inset
12673
12674
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 Manual
12680 \end_layout
12681
12682 \end_inset
12683
12684 あるいは
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 Dynamic
12690 \end_layout
12691
12692 \end_inset
12693
12694 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12695 \begin_inset Newline newline
12696 \end_inset
12697
12698 たとえば「
12699 \begin_inset Flex Code
12700 status collapsed
12701
12702 \begin_layout Plain Layout
12703 MM
12704 \end_layout
12705
12706 \end_inset
12707
12708 」と指定すると,段落を通常フォントの「
12709 \begin_inset Flex Code
12710 status collapsed
12711
12712 \begin_layout Plain Layout
12713 MM
12714 \end_layout
12715
12716 \end_inset
12717
12718 」の幅だけ行頭下げを行います.文字列の前に「
12719 \begin_inset Flex Code
12720 status collapsed
12721
12722 \begin_layout Plain Layout
12723 -
12724 \end_layout
12725
12726 \end_inset
12727
12728 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12729 \end_layout
12730
12731 \begin_layout Description
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 Margin
12737 \end_layout
12738
12739 \end_inset
12740
12741  [
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746
12747 \emph on
12748 Static
12749 \emph default
12750 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12751 \end_layout
12752
12753 \end_inset
12754
12755
12756 \begin_inset Newline newline
12757 \end_inset
12758
12759 このレイアウトの左余白の種類です.
12760 \end_layout
12761
12762 \begin_deeper
12763 \begin_layout Description
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 Static
12769 \end_layout
12770
12771 \end_inset
12772
12773  は固定余白を示します.
12774 \end_layout
12775
12776 \begin_layout Description
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 Manual
12782 \end_layout
12783
12784 \end_inset
12785
12786  は,左余白が
12787 \begin_inset Flex MenuItem
12788 status collapsed
12789
12790 \begin_layout Plain Layout
12791 編集\SpecialChar menuseparator
12792 段落設定
12793 \end_layout
12794
12795 \end_inset
12796
12797 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12798 \end_layout
12799
12800 \begin_layout Description
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805 Dynamic
12806 \end_layout
12807
12808 \end_inset
12809
12810  は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12811  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12812 \end_layout
12813
12814 \begin_layout Description
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819 First_Dynamic
12820 \end_layout
12821
12822 \end_inset
12823
12824  は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12825 \end_layout
12826
12827 \begin_layout Description
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 Right_Address_Box
12833 \end_layout
12834
12835 \end_inset
12836
12837  は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12838 \end_layout
12839
12840 \end_deeper
12841 \begin_layout Description
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 NeedProtect
12847 \end_layout
12848
12849 \end_inset
12850
12851  [
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856
12857 \emph on
12858 0
12859 \end_layout
12860
12861 \end_inset
12862
12863 ,
12864 \begin_inset space \thinspace{}
12865 \end_inset
12866
12867
12868 \begin_inset Flex Code
12869 status collapsed
12870
12871 \begin_layout Plain Layout
12872 1
12873 \end_layout
12874
12875 \end_inset
12876
12877 ] このレイアウト中の脆弱なコマンドが
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882
12883 \backslash
12884 protect
12885 \end_layout
12886
12887 \end_inset
12888
12889 されるべきか否か(註:これはこのコマンド自体が
12890 \begin_inset Flex Code
12891 status collapsed
12892
12893 \begin_layout Plain Layout
12894
12895 \backslash
12896 protect
12897 \end_layout
12898
12899 \end_inset
12900
12901 されるべきかでは
12902 \emph on
12903 ありません
12904 \emph default
12905 ).
12906 \end_layout
12907
12908 \begin_layout Description
12909 \begin_inset Flex Code
12910 status collapsed
12911
12912 \begin_layout Plain Layout
12913 Newline
12914 \end_layout
12915
12916 \end_inset
12917
12918  [
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923 0
12924 \end_layout
12925
12926 \end_inset
12927
12928 ,
12929 \begin_inset space \thinspace{}
12930 \end_inset
12931
12932
12933 \begin_inset Flex Code
12934 status collapsed
12935
12936 \begin_layout Plain Layout
12937
12938 \emph on
12939 1
12940 \end_layout
12941
12942 \end_inset
12943
12944 ] 新規行を\SpecialChar LaTeX
12945 の新規行(
12946 \begin_inset Flex Code
12947 status collapsed
12948
12949 \begin_layout Plain Layout
12950
12951 \backslash
12952
12953 \backslash
12954
12955 \end_layout
12956
12957 \end_inset
12958
12959 )に変換するか否か.\SpecialChar LyX
12960 中で\SpecialChar LaTeX
12961 編集をやりやすくするために,変換は無効にすることができます.
12962 \end_layout
12963
12964 \begin_layout Description
12965 \begin_inset Flex Code
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969 NextNoIndent
12970 \end_layout
12971
12972 \end_inset
12973
12974  [
12975 \begin_inset Flex Code
12976 status collapsed
12977
12978 \begin_layout Plain Layout
12979
12980 \emph on
12981 0
12982 \end_layout
12983
12984 \end_inset
12985
12986 ,
12987 \begin_inset space \thinspace{}
12988 \end_inset
12989
12990
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 1
12996 \end_layout
12997
12998 \end_inset
12999
13000 ] 真に設定すると,
13001 \begin_inset Flex Code
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 DefaultStyle
13006 \end_layout
13007
13008 \end_inset
13009
13010  (通常
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 Standard
13016 \end_layout
13017
13018 \end_inset
13019
13020 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
13021 \end_layout
13022
13023 \begin_layout Description
13024 \begin_inset Flex Code
13025 status collapsed
13026
13027 \begin_layout Plain Layout
13028 ObsoletedBy
13029 \end_layout
13030
13031 \end_inset
13032
13033  [
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 <名称>
13039 \end_layout
13040
13041 \end_inset
13042
13043 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
13044 \end_layout
13045
13046 \begin_layout Description
13047 \begin_inset Flex Code
13048 status collapsed
13049
13050 \begin_layout Plain Layout
13051 ParagraphGroup
13052 \end_layout
13053
13054 \end_inset
13055
13056  [
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 0
13062 \end_layout
13063
13064 \end_inset
13065
13066 ,
13067 \begin_inset space \thinspace{}
13068 \end_inset
13069
13070
13071 \begin_inset Flex Code
13072 status collapsed
13073
13074 \begin_layout Plain Layout
13075 1
13076 \end_layout
13077
13078 \end_inset
13079
13080 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
13081 \begin_inset Flex Code
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 GuiLabel
13086 \end_layout
13087
13088 \end_inset
13089
13090 が一度だけ出力される効果があります.既定では,
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 LaTeXType
13096 \end_layout
13097
13098 \end_inset
13099
13100
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 Environment
13106 \end_layout
13107
13108 \end_inset
13109
13110 および
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 Bib_Environment
13116 \end_layout
13117
13118 \end_inset
13119
13120  については有効であり,他の型すべてについて無効になっています.
13121 \end_layout
13122
13123 \begin_layout Description
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 ParbreakIsNewline
13129 \end_layout
13130
13131 \end_inset
13132
13133  [
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138
13139 \emph on
13140 0
13141 \end_layout
13142
13143 \end_inset
13144
13145 ,
13146 \begin_inset space \thinspace{}
13147 \end_inset
13148
13149
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 1
13155 \end_layout
13156
13157 \end_inset
13158
13159 ] \SpecialChar LaTeX
13160 出力中で,段落を空行ではなく,改行で区切るよう指定します.
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165 PassThru 1
13166 \end_layout
13167
13168 \end_inset
13169
13170 と併用すれば,(\SpecialChar TeX
13171 コードを使用したときのように)テキストエディタをエミュレートすることができます.
13172 \end_layout
13173
13174 \begin_layout Description
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 ParIndent
13180 \end_layout
13181
13182 \end_inset
13183
13184  [
13185 \begin_inset Flex Code
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189 文字列=""
13190 \end_layout
13191
13192 \end_inset
13193
13194 ] 段落の最初の行の行頭下げ.レイアウトによっては
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 Parindent
13200 \end_layout
13201
13202 \end_inset
13203
13204 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 NextNoIndent
13210 \end_layout
13211
13212 \end_inset
13213
13214 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 Parindent
13220 \end_layout
13221
13222 \end_inset
13223
13224 ではなく,この環境の
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 Parindent
13230 \end_layout
13231
13232 \end_inset
13233
13234 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
13235 \end_layout
13236
13237 \begin_layout Description
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 ParSep
13243 \end_layout
13244
13245 \end_inset
13246
13247  [
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 浮動小数点型=0
13253 \end_layout
13254
13255 \end_inset
13256
13257 ] このレイアウトの2段落間の垂直余白.
13258 \end_layout
13259
13260 \begin_layout Description
13261 \begin_inset Flex Code
13262 status collapsed
13263
13264 \begin_layout Plain Layout
13265 Parskip
13266 \end_layout
13267
13268 \end_inset
13269
13270  [
13271 \begin_inset Flex Code
13272 status collapsed
13273
13274 \begin_layout Plain Layout
13275 浮動小数点型=0
13276 \end_layout
13277
13278 \end_inset
13279
13280 ] \SpecialChar LyX
13281 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
13282 択した際には,\SpecialChar LaTeX
13283 型「段落」レイアウトの
13284 \begin_inset Flex Code
13285 status collapsed
13286
13287 \begin_layout Plain Layout
13288 ParIndent
13289 \end_layout
13290
13291 \end_inset
13292
13293 は無視され,すべての段落はこの
13294 \begin_inset Flex Code
13295 status collapsed
13296
13297 \begin_layout Plain Layout
13298 Parskip
13299 \end_layout
13300
13301 \end_inset
13302
13303 引数分だけ引き離されます.垂直余白は,
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 DefaultHeight
13309 \end_layout
13310
13311 \end_inset
13312
13313 を標準フォントでの1行の高さとすると,
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 Parskipの値
13319 \end_layout
13320
13321 \end_inset
13322
13323
13324 \begin_inset Formula $\times$
13325 \end_inset
13326
13327
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 DefaultHeight
13333 \end_layout
13334
13335 \end_inset
13336
13337 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
13338 \end_layout
13339
13340 \begin_layout Description
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 PassThru
13346 \end_layout
13347
13348 \end_inset
13349
13350  [
13351 \emph on
13352
13353 \begin_inset Flex Code
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 0
13358 \end_layout
13359
13360 \end_inset
13361
13362
13363 \emph default
13364 ,
13365 \begin_inset space \thinspace{}
13366 \end_inset
13367
13368
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 1
13374 \end_layout
13375
13376 \end_inset
13377
13378 ] この段落の内容が,\SpecialChar LaTeX
13379 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
13380 \end_layout
13381
13382 \begin_layout Description
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 PassThruChars
13388 \end_layout
13389
13390 \end_inset
13391
13392  [
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 文字列
13398 \end_layout
13399
13400 \end_inset
13401
13402 ]
13403 \family typewriter
13404  
13405 \family default
13406 \SpecialChar LaTeX
13407 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
13408 \end_layout
13409
13410 \begin_layout Description
13411 \begin_inset Flex Code
13412 status collapsed
13413
13414 \begin_layout Plain Layout
13415 Preamble
13416 \end_layout
13417
13418 \end_inset
13419
13420  この様式が使用されたときに,\SpecialChar LaTeX
13421 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
13422 \begin_inset Flex Code
13423 status collapsed
13424
13425 \begin_layout Plain Layout
13426 EndPreamble
13427 \end_layout
13428
13429 \end_inset
13430
13431 」で閉じる必要があります.
13432 \end_layout
13433
13434 \begin_layout Description
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 RefPrefix
13440 \end_layout
13441
13442 \end_inset
13443
13444  [
13445 \begin_inset Flex Code
13446 status collapsed
13447
13448 \begin_layout Plain Layout
13449 文字列
13450 \end_layout
13451
13452 \end_inset
13453
13454 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
13455 \end_layout
13456
13457 \begin_layout Description
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 Requires
13463 \end_layout
13464
13465 \end_inset
13466
13467  [
13468 \begin_inset Flex Code
13469 status collapsed
13470
13471 \begin_layout Plain Layout
13472 文字列
13473 \end_layout
13474
13475 \end_inset
13476
13477 ] この様式が機能
13478 \begin_inset Flex Code
13479 status collapsed
13480
13481 \begin_layout Plain Layout
13482 文字列
13483 \end_layout
13484
13485 \end_inset
13486
13487 を必要とするかどうか(機能詳細については,第
13488 \begin_inset CommandInset ref
13489 LatexCommand ref
13490 reference "chap:関数一覧"
13491
13492 \end_inset
13493
13494 節参照).特定のオプションをとるパッケージを要求する場合,
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 PackageOptions
13500 \end_layout
13501
13502 \end_inset
13503
13504 を汎用テキストクラスパラメータとして追加して使うことができます(
13505 \begin_inset CommandInset ref
13506 LatexCommand ref
13507 reference "subsec:汎用テキストクラスパラメータ"
13508
13509 \end_inset
13510
13511 を参照).
13512 \end_layout
13513
13514 \begin_layout Description
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519 ResetArgs
13520 \end_layout
13521
13522 \end_inset
13523
13524  [
13525 \begin_inset Flex Code
13526 status collapsed
13527
13528 \begin_layout Plain Layout
13529
13530 \emph on
13531 0
13532 \end_layout
13533
13534 \end_inset
13535
13536 ,
13537 \begin_inset Flex Code
13538 status collapsed
13539
13540 \begin_layout Plain Layout
13541 1
13542 \end_layout
13543
13544 \end_inset
13545
13546 ] (
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 Argument
13552 \end_layout
13553
13554 \end_inset
13555
13556 タグで定義された)この様式の\SpecialChar LaTeX
13557 引数をリセットします.これは,様式を
13558 \begin_inset Flex Code
13559 status collapsed
13560
13561 \begin_layout Plain Layout
13562 CopyStyle
13563 \end_layout
13564
13565 \end_inset
13566
13567 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
13568 \end_layout
13569
13570 \begin_layout Description
13571 \begin_inset Flex Code
13572 status collapsed
13573
13574 \begin_layout Plain Layout
13575 ResumeCounter
13576 \end_layout
13577
13578 \end_inset
13579
13580  [
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585
13586 \emph on
13587 0
13588 \end_layout
13589
13590 \end_inset
13591
13592 ,
13593 \begin_inset Flex Code
13594 status collapsed
13595
13596 \begin_layout Plain Layout
13597 1
13598 \end_layout
13599
13600 \end_inset
13601
13602 ] レイアウトの新しい一群で通常リセットされるカウンタを元に戻します.これは,
13603 \begin_inset Flex Code
13604 status collapsed
13605
13606 \begin_layout Plain Layout
13607 LabelType
13608 \end_layout
13609
13610 \end_inset
13611
13612
13613 \begin_inset Flex Code
13614 status collapsed
13615
13616 \begin_layout Plain Layout
13617 Enumerate
13618 \end_layout
13619
13620 \end_inset
13621
13622 の時のみ有効です.
13623 \end_layout
13624
13625 \begin_layout Description
13626 \begin_inset Flex Code
13627 status collapsed
13628
13629 \begin_layout Plain Layout
13630 RightDelim
13631 \end_layout
13632
13633 \end_inset
13634
13635  [
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640 文字列
13641 \end_layout
13642
13643 \end_inset
13644
13645 ] 様式の内容の最後に置かれる文字列.出力中の改行は
13646 \begin_inset Flex Code
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650 <br/>
13651 \end_layout
13652
13653 \end_inset
13654
13655 で指示できます.
13656 \end_layout
13657
13658 \begin_layout Description
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 RightMargin
13664 \end_layout
13665
13666 \end_inset
13667
13668  [
13669 \begin_inset Flex Code
13670 status collapsed
13671
13672 \begin_layout Plain Layout
13673 文字列=""
13674 \end_layout
13675
13676 \end_inset
13677
13678
13679 \begin_inset Flex Code
13680 status collapsed
13681
13682 \begin_layout Plain Layout
13683 LeftMargin
13684 \end_layout
13685
13686 \end_inset
13687
13688 に同様.
13689 \end_layout
13690
13691 \begin_layout Description
13692 \begin_inset Flex Code
13693 status collapsed
13694
13695 \begin_layout Plain Layout
13696 Spacing
13697 \end_layout
13698
13699 \end_inset
13700
13701  [
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706
13707 \emph on
13708 single
13709 \end_layout
13710
13711 \end_inset
13712
13713
13714 \begin_inset Flex Code
13715 status collapsed
13716
13717 \begin_layout Plain Layout
13718 onehalf
13719 \end_layout
13720
13721 \end_inset
13722
13723
13724 \begin_inset Flex Code
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 double
13729 \end_layout
13730
13731 \end_inset
13732
13733
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 other
13739 \begin_inset space ~
13740 \end_inset
13741
13742 <
13743 \emph on
13744
13745 \emph default
13746 >
13747 \end_layout
13748
13749 \end_inset
13750
13751 ]
13752 \lang english
13753  
13754 \lang japanese
13755 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 single
13761 \end_layout
13762
13763 \end_inset
13764
13765
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 onehalf
13771 \end_layout
13772
13773 \end_inset
13774
13775
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 double
13781 \end_layout
13782
13783 \end_inset
13784
13785 は,それぞれ乗数1・1.25・1.667に対応します.引数
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 other
13791 \end_layout
13792
13793 \end_inset
13794
13795 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 Spacing
13801 \end_layout
13802
13803 \end_inset
13804
13805 は,\SpecialChar LaTeX
13806 パッケージ
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811 setspace
13812 \end_layout
13813
13814 \end_inset
13815
13816 パッケージを使用した,限定的な\SpecialChar LaTeX
13817 コードを生成することを意味することにご注意ください.
13818 \end_layout
13819
13820 \begin_layout Description
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 Spellcheck
13826 \end_layout
13827
13828 \end_inset
13829
13830  [
13831 \begin_inset Flex Code
13832 status collapsed
13833
13834 \begin_layout Plain Layout
13835 0
13836 \end_layout
13837
13838 \end_inset
13839
13840 ,
13841 \begin_inset space \thinspace{}
13842 \end_inset
13843
13844
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 1
13850 \end_layout
13851
13852 \end_inset
13853
13854 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13855 \end_layout
13856
13857 \begin_layout Description
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 StepMasterCounter
13863 \end_layout
13864
13865 \end_inset
13866
13867  [
13868 \begin_inset Flex Code
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872
13873 \emph on
13874 0
13875 \end_layout
13876
13877 \end_inset
13878
13879 ,
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884 1
13885 \end_layout
13886
13887 \end_inset
13888
13889 ] 新しいレイアウト群を開始する際に,このカウンタの親カウンタを進めるか否か.これは,現在のところ,
13890 \begin_inset Flex Code
13891 status collapsed
13892
13893 \begin_layout Plain Layout
13894 LabelType
13895 \end_layout
13896
13897 \end_inset
13898
13899
13900 \begin_inset Flex Code
13901 status collapsed
13902
13903 \begin_layout Plain Layout
13904 Enumerate
13905 \end_layout
13906
13907 \end_inset
13908
13909 の時のみ有効です.
13910 \end_layout
13911
13912 \begin_layout Description
13913 \begin_inset Flex Code
13914 status collapsed
13915
13916 \begin_layout Plain Layout
13917 TextFont
13918 \end_layout
13919
13920 \end_inset
13921
13922  本文に使うフォント.第
13923 \begin_inset CommandInset ref
13924 LatexCommand ref
13925 reference "subsec:フォント指定"
13926
13927 \end_inset
13928
13929 節参照.
13930 \end_layout
13931
13932 \begin_layout Description
13933 \begin_inset Flex Code
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 TocLevel
13938 \end_layout
13939
13940 \end_inset
13941
13942  [
13943 \begin_inset Flex Code
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 整数型=3
13948 \end_layout
13949
13950 \end_inset
13951
13952 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13953 \end_layout
13954
13955 \begin_layout Description
13956 \begin_inset Flex Code
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960 ToggleIndent
13961 \end_layout
13962
13963 \end_inset
13964
13965  [
13966 \emph on
13967
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 default
13973 \end_layout
13974
13975 \end_inset
13976
13977
13978 \emph default
13979
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 always
13985 \end_layout
13986
13987 \end_inset
13988
13989
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 never
13995 \end_layout
13996
13997 \end_inset
13998
13999 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 default
14005 \end_layout
14006
14007 \end_inset
14008
14009 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014 always
14015 \end_layout
14016
14017 \end_inset
14018
14019 は,文書設定にかかわらず変更することができ,
14020 \begin_inset Flex Code
14021 status collapsed
14022
14023 \begin_layout Plain Layout
14024 never
14025 \end_layout
14026
14027 \end_inset
14028
14029 は,どのような場合でも変更することができません.
14030 \end_layout
14031
14032 \begin_layout Description
14033 \begin_inset Flex Code
14034 status collapsed
14035
14036 \begin_layout Plain Layout
14037 TopSep
14038 \end_layout
14039
14040 \end_inset
14041
14042  [
14043 \begin_inset Flex Code
14044 status collapsed
14045
14046 \begin_layout Plain Layout
14047 浮動小数点型=0
14048 \end_layout
14049
14050 \end_inset
14051
14052 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
14053 の最大値がとられます.
14054 \end_layout
14055
14056 \begin_layout Subsection
14057 段落様式の国際化
14058 \begin_inset CommandInset label
14059 LatexCommand label
14060 name "subsec:段落様式の国際化"
14061
14062 \end_inset
14063
14064
14065 \end_layout
14066
14067 \begin_layout Standard
14068 \SpecialChar LyX
14069 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
14070 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
14071 \lang french
14072 Théorème
14073 \lang japanese
14074  1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
14075 \end_layout
14076
14077 \begin_layout Standard
14078 もし
14079 \begin_inset Flex MenuItem
14080 status collapsed
14081
14082 \begin_layout Plain Layout
14083 Style
14084 \end_layout
14085
14086 \end_inset
14087
14088 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
14089 \begin_inset Flex MenuItem
14090 status collapsed
14091
14092 \begin_layout Plain Layout
14093 LangPreamble
14094 \end_layout
14095
14096 \end_inset
14097
14098
14099 \begin_inset Flex MenuItem
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 BabelPreamble
14104 \end_layout
14105
14106 \end_inset
14107
14108 を使用することができます.以下の抜粋(
14109 \begin_inset Flex MenuItem
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 theorems-ams.inc
14114 \end_layout
14115
14116 \end_inset
14117
14118 より)は,これがどう動作するかを示すものです.
14119 \end_layout
14120
14121 \begin_layout LyX-Code
14122 Preamble
14123 \end_layout
14124
14125 \begin_deeper
14126 \begin_layout LyX-Code
14127   
14128 \backslash
14129 theoremstyle{remark}
14130 \end_layout
14131
14132 \begin_layout LyX-Code
14133   
14134 \backslash
14135 newtheorem{claim}[thm]{
14136 \backslash
14137 protect
14138 \backslash
14139 claimname}
14140 \end_layout
14141
14142 \begin_layout LyX-Code
14143 EndPreamble
14144 \end_layout
14145
14146 \begin_layout LyX-Code
14147 LangPreamble
14148 \end_layout
14149
14150 \begin_layout LyX-Code
14151   
14152 \backslash
14153 providecommand{
14154 \backslash
14155 claimname}{_(Claim)}
14156 \end_layout
14157
14158 \begin_layout LyX-Code
14159 EndLangPreamble
14160 \end_layout
14161
14162 \begin_layout LyX-Code
14163 BabelPreamble
14164 \end_layout
14165
14166 \begin_layout LyX-Code
14167     
14168 \backslash
14169 addto
14170 \backslash
14171 captions$$lang{
14172 \backslash
14173 renewcommand{
14174 \backslash
14175 claimname}{_(Claim)}}
14176 \end_layout
14177
14178 \begin_layout LyX-Code
14179 EndBabelPreamble
14180 \end_layout
14181
14182 \end_deeper
14183 \begin_layout Standard
14184 原則として,
14185 \begin_inset Flex MenuItem
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 LangPreamble
14190 \end_layout
14191
14192 \end_inset
14193
14194
14195 \begin_inset Flex MenuItem
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199 BabelPreamble
14200 \end_layout
14201
14202 \end_inset
14203
14204 タグ内には,有効な\SpecialChar LaTeX
14205 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
14206 は,\SpecialChar LaTeX
14207 コマンド
14208 \begin_inset Flex Code
14209 status collapsed
14210
14211 \begin_layout Plain Layout
14212
14213 \backslash
14214 claimname
14215 \end_layout
14216
14217 \end_inset
14218
14219 とその
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224
14225 \backslash
14226 newtheorem
14227 \end_layout
14228
14229 \end_inset
14230
14231 中での用い方です.
14232 \end_layout
14233
14234 \begin_layout Standard
14235 \begin_inset Flex Code
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 LangPreamble
14240 \end_layout
14241
14242 \end_inset
14243
14244 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
14245 \begin_inset Flex Code
14246 status collapsed
14247
14248 \begin_layout Plain Layout
14249 Preamble
14250 \end_layout
14251
14252 \end_inset
14253
14254 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
14255 \begin_inset Flex Code
14256 status collapsed
14257
14258 \begin_layout Plain Layout
14259 _()
14260 \end_layout
14261
14262 \end_inset
14263
14264 が使用されていることです.これは,\SpecialChar LyX
14265 が\SpecialChar LaTeX
14266 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
14267 \end_layout
14268
14269 \begin_layout Standard
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 BabelPreamble
14275 \end_layout
14276
14277 \end_inset
14278
14279 タグは,複数言語文書をサポートし,
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 babel
14285 \end_layout
14286
14287 \end_inset
14288
14289 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
14290 の場合には,
14291 \begin_inset Flex Code
14292 status collapsed
14293
14294 \begin_layout Plain Layout
14295 _()
14296 \end_layout
14297
14298 \end_inset
14299
14300 の引数は,その当該言語への翻訳で置き換えられ,
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 $$lang
14306 \end_layout
14307
14308 \end_inset
14309
14310 は言語名(babelパッケージで使用されるもの)で置き換えられます.
14311 \end_layout
14312
14313 \begin_layout Standard
14314 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
14315 \end_layout
14316
14317 \begin_layout LyX-Code
14318
14319 \backslash
14320 addto
14321 \backslash
14322 captionsfrench{
14323 \backslash
14324 renewcommand{
14325 \backslash
14326 claimname}{Affirmation}}
14327 \begin_inset Newline newline
14328 \end_inset
14329
14330
14331 \backslash
14332 addto
14333 \backslash
14334 captionsngerman{
14335 \backslash
14336 renewcommand{
14337 \backslash
14338 claimname}{Behauptung}}
14339 \begin_inset Newline newline
14340 \end_inset
14341
14342
14343 \backslash
14344 providecommand{
14345 \backslash
14346 claimname}{Behauptung}
14347 \end_layout
14348
14349 \begin_layout Standard
14350 それから,\SpecialChar LaTeX
14351
14352 \begin_inset Flex Code
14353 status collapsed
14354
14355 \begin_layout Plain Layout
14356 babel
14357 \end_layout
14358
14359 \end_inset
14360
14361 は協力して,出力に正しい文字列を生成します.
14362 \end_layout
14363
14364 \begin_layout Standard
14365 ここで注意しておくべき一つの重要な点は,翻訳は,
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370 layouttranslations
14371 \end_layout
14372
14373 \end_inset
14374
14375 ファイルを通じて,\SpecialChar LyX
14376 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
14377 \begin_inset Flex Code
14378 status collapsed
14379
14380 \begin_layout Plain Layout
14381 layouttranslations
14382 \end_layout
14383
14384 \end_inset
14385
14386 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
14387 の国際化ルーチンでは取り扱われないので,
14388 \begin_inset Flex MenuItem
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392 LangPreamble
14393 \end_layout
14394
14395 \end_inset
14396
14397
14398 \begin_inset Flex MenuItem
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402 BabelPreamble
14403 \end_layout
14404
14405 \end_inset
14406
14407 は,事実上,\SpecialChar LyX
14408 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
14409 に同梱させようとい
14410 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
14411 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
14412 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
14413 \end_layout
14414
14415 \begin_layout Subsection
14416 フロート
14417 \begin_inset CommandInset label
14418 LatexCommand label
14419 name "subsec:フロート"
14420
14421 \end_inset
14422
14423
14424 \end_layout
14425
14426 \begin_layout Standard
14427 \SpecialChar LyX
14428 第1.3.0版以来,テキストクラス自体の中でフロート(
14429 \begin_inset Flex MenuItem
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 figure
14434 \end_layout
14435
14436 \end_inset
14437
14438
14439 \begin_inset Flex MenuItem
14440 status collapsed
14441
14442 \begin_layout Plain Layout
14443 table
14444 \end_layout
14445
14446 \end_inset
14447
14448 ・\SpecialChar ldots
14449 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454 stdfloats.inc
14455 \end_layout
14456
14457 \end_inset
14458
14459 ファイルに含まれているので,作業中のレイアウトファイルに
14460 \end_layout
14461
14462 \begin_layout LyX-Code
14463 Input stdfloats.inc
14464 \end_layout
14465
14466 \begin_layout Standard
14467 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
14468 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
14469 ましょう.
14470 \end_layout
14471
14472 \begin_layout Description
14473 \begin_inset Flex Code
14474 status collapsed
14475
14476 \begin_layout Plain Layout
14477 AllowedPlacement
14478 \end_layout
14479
14480 \end_inset
14481
14482  [
14483 \begin_inset Flex Code
14484 status collapsed
14485
14486 \begin_layout Plain Layout
14487 文字列
14488 \end_layout
14489
14490 \end_inset
14491
14492 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
14493 \emph on
14494 h
14495 \emph default
14496  (
14497 \begin_inset Quotes eld
14498 \end_inset
14499
14500 here if possible:可能ならば現在位置に
14501 \begin_inset Quotes erd
14502 \end_inset
14503
14504 ), 
14505 \emph on
14506 t
14507 \emph default
14508  (
14509 \begin_inset Quotes eld
14510 \end_inset
14511
14512 top of page:ページ上部
14513 \begin_inset Quotes erd
14514 \end_inset
14515
14516 )・
14517 \emph on
14518 b
14519 \emph default
14520  (
14521 \begin_inset Quotes eld
14522 \end_inset
14523
14524 bottom of page:ページ下部
14525 \begin_inset Quotes erd
14526 \end_inset
14527
14528 )・
14529 \emph on
14530 p
14531 \emph default
14532  (
14533 \begin_inset Quotes eld
14534 \end_inset
14535
14536 page of floats:フロートを独立したページに
14537 \begin_inset Quotes erd
14538 \end_inset
14539
14540 )・
14541 \emph on
14542 H
14543 \emph default
14544  (
14545 \begin_inset Quotes eld
14546 \end_inset
14547
14548 here definitely:何としても現在位置に置く
14549 \begin_inset Quotes erd
14550 \end_inset
14551
14552 )・
14553 \emph on
14554 !
14555 \emph default
14556  (
14557 \begin_inset Quotes eld
14558 \end_inset
14559
14560 ignore LaTeX rules:LaTeXの規則を無視する
14561 \begin_inset Quotes erd
14562 \end_inset
14563
14564 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
14565 \emph on
14566 none
14567 \emph default
14568 を与えてください.
14569 \end_layout
14570
14571 \begin_layout Description
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576 AllowsSideways
14577 \end_layout
14578
14579 \end_inset
14580
14581  [
14582 \begin_inset Flex Code
14583 status collapsed
14584
14585 \begin_layout Plain Layout
14586 0
14587 \end_layout
14588
14589 \end_inset
14590
14591 ,
14592 \begin_inset space \thinspace{}
14593 \end_inset
14594
14595
14596 \emph on
14597
14598 \begin_inset Flex Code
14599 status collapsed
14600
14601 \begin_layout Plain Layout
14602 1
14603 \end_layout
14604
14605 \end_inset
14606
14607
14608 \emph default
14609 ] フロートを,\SpecialChar LaTeX
14610 パッケージの
14611 \family typewriter
14612 rotfloat
14613 \family default
14614  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
14615 \begin_inset Flex Code
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619 0
14620 \end_layout
14621
14622 \end_inset
14623
14624 を指定してください.
14625 \end_layout
14626
14627 \begin_layout Description
14628 \begin_inset Flex Code
14629 status collapsed
14630
14631 \begin_layout Plain Layout
14632 AllowsWide
14633 \end_layout
14634
14635 \end_inset
14636
14637  [
14638 \begin_inset Flex Code
14639 status collapsed
14640
14641 \begin_layout Plain Layout
14642 0
14643 \end_layout
14644
14645 \end_inset
14646
14647 ,
14648 \begin_inset space \thinspace{}
14649 \end_inset
14650
14651
14652 \emph on
14653
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 1
14659 \end_layout
14660
14661 \end_inset
14662
14663
14664 \emph default
14665 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670 0
14671 \end_layout
14672
14673 \end_inset
14674
14675 を指定してください.
14676 \end_layout
14677
14678 \begin_layout Description
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 Extension
14684 \end_layout
14685
14686 \end_inset
14687
14688  [
14689 \begin_inset Flex Code
14690 status collapsed
14691
14692 \begin_layout Plain Layout
14693 文字列
14694 \end_layout
14695
14696 \end_inset
14697
14698 =
14699 \begin_inset Quotes erd
14700 \end_inset
14701
14702
14703 \begin_inset Quotes erd
14704 \end_inset
14705
14706 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14707 がキャプションを書き込むファイルです.
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 GuiName
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 文字列
14726 \end_layout
14727
14728 \end_inset
14729
14730 =
14731 \begin_inset Quotes erd
14732 \end_inset
14733
14734
14735 \begin_inset Quotes erd
14736 \end_inset
14737
14738 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14739 \end_layout
14740
14741 \begin_layout Description
14742 \begin_inset Flex Code
14743 status collapsed
14744
14745 \begin_layout Plain Layout
14746 HTML*
14747 \end_layout
14748
14749 \end_inset
14750
14751  これらは,XHTML出力で使用されます.
14752 \begin_inset CommandInset ref
14753 LatexCommand ref
14754 reference "sec:XHTML出力のタグ"
14755
14756 \end_inset
14757
14758 をご覧ください.
14759 \end_layout
14760
14761 \begin_layout Description
14762 \begin_inset Flex Code
14763 status collapsed
14764
14765 \begin_layout Plain Layout
14766 IsPredefined
14767 \end_layout
14768
14769 \end_inset
14770
14771  [
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776
14777 \emph on
14778 0
14779 \end_layout
14780
14781 \end_inset
14782
14783 ,
14784 \begin_inset space \thinspace{}
14785 \end_inset
14786
14787
14788 \begin_inset Flex Code
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 1
14793 \end_layout
14794
14795 \end_inset
14796
14797 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14798 パッケージ
14799 \begin_inset Flex Code
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803 float
14804 \end_layout
14805
14806 \end_inset
14807
14808 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 0
14814 \end_layout
14815
14816 \end_inset
14817
14818 で,この場合
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 float
14824 \end_layout
14825
14826 \end_inset
14827
14828 を使用します.\SpecialChar LaTeX
14829 ドキュメントクラス中に既に定義されているときには,
14830 \begin_inset Flex Code
14831 status collapsed
14832
14833 \begin_layout Plain Layout
14834 0
14835 \end_layout
14836
14837 \end_inset
14838
14839 に設定しなくてはなりません.
14840 \end_layout
14841
14842 \begin_layout Description
14843 \begin_inset Flex Code
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847 ListCommand
14848 \end_layout
14849
14850 \end_inset
14851
14852  [
14853 \begin_inset Flex Code
14854 status collapsed
14855
14856 \begin_layout Plain Layout
14857 文字列
14858 \end_layout
14859
14860 \end_inset
14861
14862 =
14863 \begin_inset Quotes erd
14864 \end_inset
14865
14866
14867 \begin_inset Quotes erd
14868 \end_inset
14869
14870 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14871 \backslash
14872 」は書きません.
14873 \begin_inset Flex Code
14874 status collapsed
14875
14876 \begin_layout Plain Layout
14877 NeedsFloatPkg
14878 \end_layout
14879
14880 \end_inset
14881
14882 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14883 \emph on
14884 必ず
14885 \emph default
14886 指定しなくてはなりません.
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 NeedsFloatPkg
14892 \end_layout
14893
14894 \end_inset
14895
14896 が真の時は,標準的な方法が存在するので,これは無視されます.
14897 \end_layout
14898
14899 \begin_layout Description
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904 ListName
14905 \end_layout
14906
14907 \end_inset
14908
14909  [
14910 \begin_inset Flex Code
14911 status collapsed
14912
14913 \begin_layout Plain Layout
14914 文字列
14915 \end_layout
14916
14917 \end_inset
14918
14919 =
14920 \begin_inset Quotes erd
14921 \end_inset
14922
14923
14924 \begin_inset Quotes erd
14925 \end_inset
14926
14927 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14928 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14929 に渡さ
14930 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14931 \end_layout
14932
14933 \begin_layout Description
14934 \begin_inset Flex Code
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 NumberWithin
14939 \end_layout
14940
14941 \end_inset
14942
14943  [
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 文字列
14949 \end_layout
14950
14951 \end_inset
14952
14953 =
14954 \begin_inset Quotes erd
14955 \end_inset
14956
14957
14958 \begin_inset Quotes erd
14959 \end_inset
14960
14961 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 NumberWithin
14967 \end_layout
14968
14969 \end_inset
14970
14971 が「
14972 \begin_inset Flex Code
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976 chapter
14977 \end_layout
14978
14979 \end_inset
14980
14981 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14982 \end_layout
14983
14984 \begin_layout Description
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989 Placement
14990 \end_layout
14991
14992 \end_inset
14993
14994  [
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 文字列
15000 \end_layout
15001
15002 \end_inset
15003
15004 =
15005 \begin_inset Quotes erd
15006 \end_inset
15007
15008
15009 \begin_inset Quotes erd
15010 \end_inset
15011
15012 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
15013 表記に従い,
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 t
15019 \end_layout
15020
15021 \end_inset
15022
15023 ならば上部(top),
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 b
15029 \end_layout
15030
15031 \end_inset
15032
15033 ならば下部(bottom),
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 p
15039 \end_layout
15040
15041 \end_inset
15042
15043 ならばページ(page),
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 h
15049 \end_layout
15050
15051 \end_inset
15052
15053 ならばここ(here)を表します
15054 \begin_inset Foot
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 \SpecialChar LaTeX
15059 同様,文字列中でのこれらの文字の順序は関係ありません.
15060 \end_layout
15061
15062 \end_inset
15063
15064 .これらの他に新しい型
15065 \begin_inset Flex Code
15066 status collapsed
15067
15068 \begin_layout Plain Layout
15069 H
15070 \end_layout
15071
15072 \end_inset
15073
15074 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
15075 \begin_inset Flex Code
15076 status collapsed
15077
15078 \begin_layout Plain Layout
15079 H
15080 \end_layout
15081
15082 \end_inset
15083
15084 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
15085 に「
15086 \begin_inset Flex Code
15087 status collapsed
15088
15089 \begin_layout Plain Layout
15090 tbp
15091 \end_layout
15092
15093 \end_inset
15094
15095 」を指定してください.
15096 \end_layout
15097
15098 \begin_layout Description
15099 \begin_inset Flex Code
15100 status collapsed
15101
15102 \begin_layout Plain Layout
15103 RefPrefix
15104 \end_layout
15105
15106 \end_inset
15107
15108  [
15109 \begin_inset Flex Code
15110 status collapsed
15111
15112 \begin_layout Plain Layout
15113 文字列
15114 \end_layout
15115
15116 \end_inset
15117
15118 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
15119 \begin_inset Flex Code
15120 status collapsed
15121
15122 \begin_layout Plain Layout
15123 RefPrefix
15124 \end_layout
15125
15126 \end_inset
15127
15128 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
15129 \end_layout
15130
15131 \begin_layout Description
15132 \begin_inset Flex Code
15133 status collapsed
15134
15135 \begin_layout Plain Layout
15136 Style
15137 \end_layout
15138
15139 \end_inset
15140
15141  [
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146 文字列
15147 \end_layout
15148
15149 \end_inset
15150
15151 =
15152 \begin_inset Quotes erd
15153 \end_inset
15154
15155
15156 \begin_inset Quotes erd
15157 \end_inset
15158
15159
15160 \begin_inset Flex Code
15161 status collapsed
15162
15163 \begin_layout Plain Layout
15164
15165 \backslash
15166 newfloat
15167 \end_layout
15168
15169 \end_inset
15170
15171 を使用してフロートを定義する際に使用される様式.
15172 \end_layout
15173
15174 \begin_layout Description
15175 \begin_inset Flex Code
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179 Type
15180 \end_layout
15181
15182 \end_inset
15183
15184  [
15185 \begin_inset Flex Code
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 文字列
15190 \end_layout
15191
15192 \end_inset
15193
15194 =
15195 \begin_inset Quotes erd
15196 \end_inset
15197
15198
15199 \begin_inset Quotes erd
15200 \end_inset
15201
15202 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
15203 \begin_inset Flex Code
15204 status collapsed
15205
15206 \begin_layout Plain Layout
15207
15208 \backslash
15209 newfloat
15210 \end_layout
15211
15212 \end_inset
15213
15214 の後で,
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219
15220 \backslash
15221 begin{program}
15222 \end_layout
15223
15224 \end_inset
15225
15226
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231
15232 \backslash
15233 end{algorithm*}
15234 \end_layout
15235
15236 \end_inset
15237
15238 といったコマンドが利用できます.
15239 \end_layout
15240
15241 \begin_layout Description
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246 UsesFloatPkg
15247 \end_layout
15248
15249 \end_inset
15250
15251  [
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 0
15257 \end_layout
15258
15259 \end_inset
15260
15261 ,
15262 \begin_inset space \thinspace{}
15263 \end_inset
15264
15265
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270
15271 \emph on
15272 1
15273 \end_layout
15274
15275 \end_inset
15276
15277 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
15278 パッケージ
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 float
15284 \end_layout
15285
15286 \end_inset
15287
15288 が提供しているものを使用して定義されているのか,\SpecialChar LyX
15289 自身がオン・ザ・フライで定義しているのかを示します.
15290 \end_layout
15291
15292 \begin_layout Standard
15293 \begin_inset Flex Code
15294 status collapsed
15295
15296 \begin_layout Plain Layout
15297
15298 \emph on
15299 type
15300 \end_layout
15301
15302 \end_inset
15303
15304 型のフロートを定義すると,自動的に
15305 \emph on
15306 対応する
15307 \emph default
15308
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313
15314 \emph on
15315 type
15316 \end_layout
15317
15318 \end_inset
15319
15320 名カウンタが定義されます.
15321 \end_layout
15322
15323 \begin_layout Subsection
15324 自由差込枠と差込枠レイアウト
15325 \begin_inset CommandInset label
15326 LatexCommand label
15327 name "subsec:任意設定差込枠"
15328
15329 \end_inset
15330
15331
15332 \end_layout
15333
15334 \begin_layout Standard
15335 自由差込枠には次の3種類があります.
15336 \end_layout
15337
15338 \begin_layout Itemize
15339 文字様式(
15340 \begin_inset Flex Code
15341 status collapsed
15342
15343 \begin_layout Plain Layout
15344 CharStyle
15345 \end_layout
15346
15347 \end_inset
15348
15349 ).これは,
15350 \begin_inset Flex Code
15351 status collapsed
15352
15353 \begin_layout Plain Layout
15354
15355 \backslash
15356 noun
15357 \end_layout
15358
15359 \end_inset
15360
15361
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366
15367 \backslash
15368 code
15369 \end_layout
15370
15371 \end_inset
15372
15373 などの\SpecialChar LaTeX
15374 コマンドに対応した意味論的マークアップを定義するものです.
15375 \end_layout
15376
15377 \begin_layout Itemize
15378 ユーザ設定(
15379 \begin_inset Flex Code
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 Custom
15384 \end_layout
15385
15386 \end_inset
15387
15388 ).これは,\SpecialChar TeX
15389 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 endnote
15395 \end_layout
15396
15397 \end_inset
15398
15399 モジュール中で定義されています.
15400 \end_layout
15401
15402 \begin_layout Itemize
15403 XML要素(
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 Element
15409 \end_layout
15410
15411 \end_inset
15412
15413 ).DocBookクラスで使用するものです.
15414 \end_layout
15415
15416 \begin_layout Standard
15417 自由差込枠は,以下で説明する
15418 \begin_inset Flex Code
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422 InsetLayout
15423 \end_layout
15424
15425 \end_inset
15426
15427 タグを使用して定義されます.
15428 \end_layout
15429
15430 \begin_layout Standard
15431 \begin_inset Flex Code
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435 InsetLayout
15436 \end_layout
15437
15438 \end_inset
15439
15440 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 InsetLayout
15446 \end_layout
15447
15448 \end_inset
15449
15450 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
15451 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15452 ー定義するのに使用されます.
15453 \end_layout
15454
15455 \begin_layout Standard
15456 \begin_inset Flex Code
15457 status collapsed
15458
15459 \begin_layout Plain Layout
15460 InsetLayout
15461 \end_layout
15462
15463 \end_inset
15464
15465 定義は以下の形の行では始まらなくてはなりません.
15466 \end_layout
15467
15468 \begin_layout LyX-Code
15469 InsetLayout <型>
15470 \end_layout
15471
15472 \begin_layout Standard
15473 ここで
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 <型>
15479 \end_layout
15480
15481 \end_inset
15482
15483 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
15484 \end_layout
15485
15486 \begin_layout Enumerate
15487 既存の差込枠のレイアウトを変更する場合.この場合,
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492 <型>
15493 \end_layout
15494
15495 \end_inset
15496
15497 は以下のいずれかになります:
15498 \begin_inset Flex Code
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502 Algorithm
15503 \end_layout
15504
15505 \end_inset
15506
15507
15508 \begin_inset Flex Code
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512 Branch
15513 \end_layout
15514
15515 \end_inset
15516
15517
15518 \begin_inset Flex Code
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522 Box
15523 \end_layout
15524
15525 \end_inset
15526
15527
15528 \begin_inset Flex Code
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532 Box:shaded
15533 \end_layout
15534
15535 \end_inset
15536
15537
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 Caption:Standard
15543 \end_layout
15544
15545 \end_inset
15546
15547
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 ERT
15553 \end_layout
15554
15555 \end_inset
15556
15557
15558 \begin_inset Flex Code
15559 status collapsed
15560
15561 \begin_layout Plain Layout
15562 Figure
15563 \end_layout
15564
15565 \end_inset
15566
15567
15568 \begin_inset Flex Code
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572 Foot
15573 \end_layout
15574
15575 \end_inset
15576
15577
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 Index
15583 \end_layout
15584
15585 \end_inset
15586
15587
15588 \begin_inset Flex Code
15589 status collapsed
15590
15591 \begin_layout Plain Layout
15592 Info
15593 \end_layout
15594
15595 \end_inset
15596
15597
15598 \begin_inset Flex Code
15599 status collapsed
15600
15601 \begin_layout Plain Layout
15602 Info:menu
15603 \end_layout
15604
15605 \end_inset
15606
15607
15608 \begin_inset Flex Code
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612 Info:shortcut
15613 \end_layout
15614
15615 \end_inset
15616
15617
15618 \begin_inset Flex Code
15619 status collapsed
15620
15621 \begin_layout Plain Layout
15622 Info:shortcuts
15623 \end_layout
15624
15625 \end_inset
15626
15627
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 Listings
15633 \end_layout
15634
15635 \end_inset
15636
15637
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 Marginal
15643 \end_layout
15644
15645 \end_inset
15646
15647
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 Note:Comment
15653 \end_layout
15654
15655 \end_inset
15656
15657
15658 \begin_inset Flex Code
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 Note:Note
15663 \end_layout
15664
15665 \end_inset
15666
15667
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672 Note:GreyedOut
15673 \end_layout
15674
15675 \end_inset
15676
15677
15678 \begin_inset Flex Code
15679 status collapsed
15680
15681 \begin_layout Plain Layout
15682 Table
15683 \end_layout
15684
15685 \end_inset
15686
15687
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692 URL
15693 \end_layout
15694
15695 \end_inset
15696
15697
15698 \end_layout
15699
15700 \begin_layout Enumerate
15701 自由差込枠のレイアウトを定義する場合.この場合,
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706 <型>
15707 \end_layout
15708
15709 \end_inset
15710
15711
15712 \begin_inset Flex Code
15713 status collapsed
15714
15715 \begin_layout Plain Layout
15716 Flex:<名称>
15717 \end_layout
15718
15719 \end_inset
15720
15721 の形でなくてはなりません.ここで,
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 名称
15727 \end_layout
15728
15729 \end_inset
15730
15731 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15732 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15733 \begin_inset Flex Code
15734 status collapsed
15735
15736 \begin_layout Plain Layout
15737 LyXType
15738 \end_layout
15739
15740 \end_inset
15741
15742 項目が含まれていなくてはならないことに注意してください.
15743 \end_layout
15744
15745 \begin_layout Enumerate
15746 ユーザー定義派生枝を定義する場合.この場合,
15747 \begin_inset Flex Code
15748 status collapsed
15749
15750 \begin_layout Plain Layout
15751 <型>
15752 \end_layout
15753
15754 \end_inset
15755
15756 は「
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 Branch:<名称>
15762 \end_layout
15763
15764 \end_inset
15765
15766 」の形でなくてはなりません.ここで,
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 名称
15772 \end_layout
15773
15774 \end_inset
15775
15776 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15777 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15778 がくるむことができるようにすることです.
15779 \end_layout
15780
15781 \begin_layout Enumerate
15782 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15783 \begin_inset Flex Code
15784 status collapsed
15785
15786 \begin_layout Plain Layout
15787 <型>
15788 \end_layout
15789
15790 \end_inset
15791
15792 は「
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 Caption:<名称>
15798 \end_layout
15799
15800 \end_inset
15801
15802 」の形でなくてはなりません.ここで,
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 名称
15808 \end_layout
15809
15810 \end_inset
15811
15812 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15813 \begin_inset Flex Code
15814 status collapsed
15815
15816 \begin_layout Plain Layout
15817 Caption:Standard
15818 \end_layout
15819
15820 \end_inset
15821
15822 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15823 \begin_inset Flex Code
15824 status collapsed
15825
15826 \begin_layout Plain Layout
15827 Caption:Above
15828 \end_layout
15829
15830 \end_inset
15831
15832
15833 \begin_inset Flex Code
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 Caption:Below
15838 \end_layout
15839
15840 \end_inset
15841
15842 ),
15843 \family sans
15844 多言語キャプション
15845 \family default
15846 モジュール(
15847 \begin_inset Flex Code
15848 status collapsed
15849
15850 \begin_layout Plain Layout
15851 Caption:\SpecialChar allowbreak
15852 Bicaption
15853 \end_layout
15854
15855 \end_inset
15856
15857 )をご覧ください.
15858 \end_layout
15859
15860 \begin_layout Standard
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865 InsetLayout
15866 \end_layout
15867
15868 \end_inset
15869
15870 定義には以下の項目を入れることができます.
15871 \end_layout
15872
15873 \begin_layout Description
15874 \begin_inset Flex Code
15875 status collapsed
15876
15877 \begin_layout Plain Layout
15878 AddToToc
15879 \end_layout
15880
15881 \end_inset
15882
15883  [
15884 \begin_inset Flex Code
15885 status collapsed
15886
15887 \begin_layout Plain Layout
15888 文字列
15889 \end_layout
15890
15891 \end_inset
15892
15893 =""] この差込枠は,この型の一覧表に表示されます.空の文字列を入れると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドも参
15894 照してください.これは,自由差込枠にのみ実装されています.既定値:無効.
15895 \end_layout
15896
15897 \begin_layout Description
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 Argument
15903 \end_layout
15904
15905 \end_inset
15906
15907  [
15908 \begin_inset Flex Code
15909 status collapsed
15910
15911 \begin_layout Plain Layout
15912 整数
15913 \end_layout
15914
15915 \end_inset
15916
15917 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15918 \begin_inset Flex Code
15919 status collapsed
15920
15921 \begin_layout Plain Layout
15922 EndArgument
15923 \end_layout
15924
15925 \end_inset
15926
15927 で閉じなくてはなりません.詳細は第
15928 \begin_inset CommandInset ref
15929 LatexCommand ref
15930 reference "subsec:段落様式"
15931
15932 \end_inset
15933
15934 節参照.
15935 \end_layout
15936
15937 \begin_layout Description
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942 BabelPreamble
15943 \end_layout
15944
15945 \end_inset
15946
15947  言語コマンドを変更するプリアンブル.第
15948 \begin_inset CommandInset ref
15949 LatexCommand ref
15950 reference "subsec:段落様式の国際化"
15951
15952 \end_inset
15953
15954 節参照.
15955 \end_layout
15956
15957 \begin_layout Description
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 BgColor
15963 \end_layout
15964
15965 \end_inset
15966
15967  [
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972 <名称>
15973 \end_layout
15974
15975 \end_inset
15976
15977 ] 差込枠の背景色.使用できる色名一覧は第
15978 \begin_inset CommandInset ref
15979 LatexCommand ref
15980 reference "chap:色名"
15981
15982 \end_inset
15983
15984 節参照.
15985 \end_layout
15986
15987 \begin_layout Description
15988 \begin_inset Flex Code
15989 status collapsed
15990
15991 \begin_layout Plain Layout
15992 ContentAsLabel
15993 \end_layout
15994
15995 \end_inset
15996
15997  [
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002
16003 \emph on
16004 0
16005 \end_layout
16006
16007 \end_inset
16008
16009 ,
16010 \begin_inset space \thinspace{}
16011 \end_inset
16012
16013
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 1
16019 \end_layout
16020
16021 \end_inset
16022
16023 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
16024 \end_layout
16025
16026 \begin_layout Description
16027 \begin_inset Flex Code
16028 status collapsed
16029
16030 \begin_layout Plain Layout
16031 CopyStyle
16032 \end_layout
16033
16034 \end_inset
16035
16036  [<型>] 段落様式と同様です.第
16037 \begin_inset CommandInset ref
16038 LatexCommand ref
16039 reference "subsec:段落様式"
16040
16041 \end_inset
16042
16043 節参照のこと.完全な型を指定する必要があることに注意してください.例:
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048 CopyStyle Flex:<名称>
16049 \end_layout
16050
16051 \end_inset
16052
16053
16054 \end_layout
16055
16056 \begin_layout Description
16057 \begin_inset Flex Code
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 CustomPars
16062 \end_layout
16063
16064 \end_inset
16065
16066  [
16067 \begin_inset Flex Code
16068 status collapsed
16069
16070 \begin_layout Plain Layout
16071
16072 \emph on
16073 0
16074 \end_layout
16075
16076 \end_inset
16077
16078 ,
16079 \begin_inset space \thinspace{}
16080 \end_inset
16081
16082
16083 \begin_inset Flex Code
16084 status collapsed
16085
16086 \begin_layout Plain Layout
16087 1
16088 \end_layout
16089
16090 \end_inset
16091
16092 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
16093 \end_layout
16094
16095 \begin_layout Description
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 Decoration
16101 \end_layout
16102
16103 \end_inset
16104
16105  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
16106 \begin_inset Flex Code
16107 status collapsed
16108
16109 \begin_layout Plain Layout
16110 Classic
16111 \end_layout
16112
16113 \end_inset
16114
16115
16116 \begin_inset Flex Code
16117 status collapsed
16118
16119 \begin_layout Plain Layout
16120 Minimalistic
16121 \end_layout
16122
16123 \end_inset
16124
16125
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 Conglomerate
16131 \end_layout
16132
16133 \end_inset
16134
16135 のいずれかを指定することができます.脚註は通常
16136 \begin_inset Flex Code
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 Classic
16141 \end_layout
16142
16143 \end_inset
16144
16145 を使用し,\SpecialChar TeX
16146 コード差込枠は通常
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151 Minimalistic
16152 \end_layout
16153
16154 \end_inset
16155
16156 ,文字様式は
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 Conglomerate
16162 \end_layout
16163
16164 \end_inset
16165
16166 を使用します.
16167 \end_layout
16168
16169 \begin_layout Description
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 Display
16175 \end_layout
16176
16177 \end_inset
16178
16179  [
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 0
16185 \end_layout
16186
16187 \end_inset
16188
16189 ,
16190 \begin_inset space \thinspace{}
16191 \end_inset
16192
16193
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198
16199 \emph on
16200 1
16201 \end_layout
16202
16203 \end_inset
16204
16205
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210 LatexType
16211 \end_layout
16212
16213 \end_inset
16214
16215
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 Environment
16221 \end_layout
16222
16223 \end_inset
16224
16225 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
16226 環境は,
16227 \begin_inset Flex Code
16228 status collapsed
16229
16230 \begin_layout Plain Layout
16231
16232 \backslash
16233 begin{LatexName}
16234 \end_layout
16235
16236 \end_inset
16237
16238 タグと
16239 \begin_inset Flex Code
16240 status collapsed
16241
16242 \begin_layout Plain Layout
16243
16244 \backslash
16245 end{LatexName}
16246 \end_layout
16247
16248 \end_inset
16249
16250 タグの後の空白(改行文字を含む)を無視するものと仮定します.
16251 \end_layout
16252
16253 \begin_layout Description
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 End
16259 \end_layout
16260
16261 \end_inset
16262
16263  
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 InsetLayout
16269 \end_layout
16270
16271 \end_inset
16272
16273 宣言を閉じるのに必要です.
16274 \end_layout
16275
16276 \begin_layout Description
16277 \begin_inset Flex Code
16278 status collapsed
16279
16280 \begin_layout Plain Layout
16281 Font
16282 \end_layout
16283
16284 \end_inset
16285
16286  本文本体とラベル
16287 \emph on
16288 両方に
16289 \emph default
16290 使用されるフォントです.第
16291 \begin_inset CommandInset ref
16292 LatexCommand ref
16293 reference "subsec:フォント指定"
16294
16295 \end_inset
16296
16297 節を参照.このフォントを定義すると自動的に
16298 \begin_inset Flex Code
16299 status collapsed
16300
16301 \begin_layout Plain Layout
16302 LabelFont
16303 \end_layout
16304
16305 \end_inset
16306
16307 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
16308 \begin_inset Flex Code
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 LabelFont
16313 \end_layout
16314
16315 \end_inset
16316
16317 を定義しなくてはならないことに注意してください.
16318 \end_layout
16319
16320 \begin_layout Description
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325 FixedWidthPreambleEncoding
16326 \end_layout
16327
16328 \end_inset
16329
16330  [
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335
16336 \emph on
16337 0
16338 \end_layout
16339
16340 \end_inset
16341
16342 ,
16343 \begin_inset space \thinspace{}
16344 \end_inset
16345
16346
16347 \begin_inset Flex Code
16348 status collapsed
16349
16350 \begin_layout Plain Layout
16351 1
16352 \end_layout
16353
16354 \end_inset
16355
16356 ] このレイアウトによって生成される
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 BabelPreamble
16362 \end_layout
16363
16364 \end_inset
16365
16366 および
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 LangPreamble
16372 \end_layout
16373
16374 \end_inset
16375
16376 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
16377 \family typewriter
16378 listings
16379 \family default
16380 のように,
16381 \family sans
16382 utf8
16383 \family default
16384 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
16385 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
16386 やLua\SpecialChar TeX
16387 のようなUnicodeを完全に解する\SpecialChar LaTeX
16388 バックエンドを使用してい
16389 る場合には,無視されます.
16390 \end_layout
16391
16392 \begin_layout Description
16393 \begin_inset Flex Code
16394 status collapsed
16395
16396 \begin_layout Plain Layout
16397 ForceLocalFontSwitch
16398 \end_layout
16399
16400 \end_inset
16401
16402  [
16403 \begin_inset Flex Code
16404 status collapsed
16405
16406 \begin_layout Plain Layout
16407
16408 \emph on
16409 0
16410 \end_layout
16411
16412 \end_inset
16413
16414 ,
16415 \begin_inset space \thinspace{}
16416 \end_inset
16417
16418
16419 \begin_inset Flex Code
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 1
16424 \end_layout
16425
16426 \end_inset
16427
16428 ] babel使用時に,常にローカルフォント切替(
16429 \begin_inset Flex Code
16430 status collapsed
16431
16432 \begin_layout Plain Layout
16433
16434 \backslash
16435 foreignlanguage
16436 \end_layout
16437
16438 \end_inset
16439
16440 )を使い,グローバル切替(
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445
16446 \backslash
16447 selectlanguage
16448 \end_layout
16449
16450 \end_inset
16451
16452 など)は使わない.
16453 \end_layout
16454
16455 \begin_layout Description
16456 \begin_inset Flex Code
16457 status collapsed
16458
16459 \begin_layout Plain Layout
16460 ForceLTR
16461 \end_layout
16462
16463 \end_inset
16464
16465  [
16466 \begin_inset Flex Code
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470
16471 \emph on
16472 0
16473 \end_layout
16474
16475 \end_inset
16476
16477 ,
16478 \begin_inset space \thinspace{}
16479 \end_inset
16480
16481
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486 1
16487 \end_layout
16488
16489 \end_inset
16490
16491 ] たとえば\SpecialChar TeX
16492 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
16493 \end_layout
16494
16495 \begin_layout Description
16496 \begin_inset Flex Code
16497 status collapsed
16498
16499 \begin_layout Plain Layout
16500 ForceOwnlines
16501 \end_layout
16502
16503 \end_inset
16504
16505  [
16506 \begin_inset Flex Code
16507 status collapsed
16508
16509 \begin_layout Plain Layout
16510
16511 \emph on
16512 0
16513 \end_layout
16514
16515 \end_inset
16516
16517 ,
16518 \begin_inset space \thinspace{}
16519 \end_inset
16520
16521
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526 1
16527 \end_layout
16528
16529 \end_inset
16530
16531 ] \SpecialChar LaTeX
16532 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
16533 \end_layout
16534
16535 \begin_layout Description
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540 ForcePlain
16541 \end_layout
16542
16543 \end_inset
16544
16545  [
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550
16551 \emph on
16552 0
16553 \end_layout
16554
16555 \end_inset
16556
16557 ,
16558 \begin_inset space \thinspace{}
16559 \end_inset
16560
16561
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566 1
16567 \end_layout
16568
16569 \end_inset
16570
16571 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
16572 \end_layout
16573
16574 \begin_layout Description
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 FreeSpacing
16580 \end_layout
16581
16582 \end_inset
16583
16584  [
16585 \emph on
16586
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591 0
16592 \end_layout
16593
16594 \end_inset
16595
16596
16597 \emph default
16598 ,
16599 \begin_inset space \thinspace{}
16600 \end_inset
16601
16602
16603 \begin_inset Flex Code
16604 status collapsed
16605
16606 \begin_layout Plain Layout
16607 1
16608 \end_layout
16609
16610 \end_inset
16611
16612 ] 段落様式と同様.第
16613 \begin_inset CommandInset ref
16614 LatexCommand ref
16615 reference "subsec:段落様式"
16616
16617 \end_inset
16618
16619 節参照.
16620 \end_layout
16621
16622 \begin_layout Description
16623 \begin_inset Flex Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 HTML*
16628 \end_layout
16629
16630 \end_inset
16631
16632  これらは,XHTML出力で使用されます.第
16633 \begin_inset CommandInset ref
16634 LatexCommand ref
16635 reference "sec:XHTML出力のタグ"
16636
16637 \end_inset
16638
16639 節をご覧ください.
16640 \end_layout
16641
16642 \begin_layout Description
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 InToc
16648 \end_layout
16649
16650 \end_inset
16651
16652  [
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657
16658 \emph on
16659 0
16660 \end_layout
16661
16662 \end_inset
16663
16664 ,
16665 \begin_inset space \thinspace{}
16666 \end_inset
16667
16668
16669 \begin_inset Flex Code
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673 1
16674 \end_layout
16675
16676 \end_inset
16677
16678 ] AddToTocの設定に関わらず,「文書構造」面用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に
16679 表示されることは望まないでしょうが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
16680 \end_layout
16681
16682 \begin_layout Description
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687 IsTocCaption
16688 \end_layout
16689
16690 \end_inset
16691
16692  [
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697
16698 \emph on
16699 0
16700 \end_layout
16701
16702 \end_inset
16703
16704 ,
16705 \begin_inset space \thinspace{}
16706 \end_inset
16707
16708
16709 \begin_inset Flex Code
16710 status collapsed
16711
16712 \begin_layout Plain Layout
16713 1
16714 \end_layout
16715
16716 \end_inset
16717
16718 ] AddToTocが有効なときに,これが1に設定されていると,差込枠の内容の要約が,目次項目に表示されます.0の場合は,ラベルのみが表示されます.
16719 \end_layout
16720
16721 \begin_layout Description
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 KeepEmpty
16727 \end_layout
16728
16729 \end_inset
16730
16731  [
16732 \emph on
16733
16734 \begin_inset Flex Code
16735 status collapsed
16736
16737 \begin_layout Plain Layout
16738 0
16739 \end_layout
16740
16741 \end_inset
16742
16743
16744 \emph default
16745 ,
16746 \begin_inset space \thinspace{}
16747 \end_inset
16748
16749
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754 1
16755 \end_layout
16756
16757 \end_inset
16758
16759 ] 段落様式と同様.第
16760 \begin_inset CommandInset ref
16761 LatexCommand ref
16762 reference "subsec:段落様式"
16763
16764 \end_inset
16765
16766 節参照.
16767 \end_layout
16768
16769 \begin_layout Description
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774 LabelFont
16775 \end_layout
16776
16777 \end_inset
16778
16779  ラベルに使用されるフォント.第
16780 \begin_inset CommandInset ref
16781 LatexCommand ref
16782 reference "subsec:フォント指定"
16783
16784 \end_inset
16785
16786 節を参照.非効率を回避するため,この定義は
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 Font
16792 \end_layout
16793
16794 \end_inset
16795
16796 の前には決して現れてはなりません.
16797 \end_layout
16798
16799 \begin_layout Description
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 LabelString
16805 \end_layout
16806
16807 \end_inset
16808
16809  [
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814 文字列
16815 \end_layout
16816
16817 \end_inset
16818
16819 =
16820 \begin_inset Quotes erd
16821 \end_inset
16822
16823
16824 \begin_inset Quotes erd
16825 \end_inset
16826
16827 ]
16828 \lang english
16829  
16830 \lang japanese
16831 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16832 コードや派生枝),ラベルが動的に変更されます.
16833 \end_layout
16834
16835 \begin_layout Description
16836 \begin_inset Flex Code
16837 status collapsed
16838
16839 \begin_layout Plain Layout
16840 LangPreamble
16841 \end_layout
16842
16843 \end_inset
16844
16845  言語依存のプリアンブル.第
16846 \begin_inset CommandInset ref
16847 LatexCommand ref
16848 reference "subsec:段落様式の国際化"
16849
16850 \end_inset
16851
16852 節参照.
16853 \end_layout
16854
16855 \begin_layout Description
16856 \begin_inset Flex Code
16857 status collapsed
16858
16859 \begin_layout Plain Layout
16860 LatexName
16861 \end_layout
16862
16863 \end_inset
16864
16865  [
16866 \begin_inset Flex Code
16867 status collapsed
16868
16869 \begin_layout Plain Layout
16870 <名称>
16871 \end_layout
16872
16873 \end_inset
16874
16875 ] 対応する\SpecialChar LaTeX
16876 関連物の名称.環境名ないしはコマンド名.
16877 \end_layout
16878
16879 \begin_layout Description
16880 \begin_inset Flex Code
16881 status collapsed
16882
16883 \begin_layout Plain Layout
16884 LatexParam
16885 \end_layout
16886
16887 \end_inset
16888
16889  [
16890 \begin_inset Flex Code
16891 status collapsed
16892
16893 \begin_layout Plain Layout
16894 <パラメータ>
16895 \end_layout
16896
16897 \end_inset
16898
16899 ]
16900 \lang english
16901  
16902 \lang japanese
16903 対応する
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 LatexName
16909 \end_layout
16910
16911 \end_inset
16912
16913 関連物の非必須パラメータ.
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 []
16919 \end_layout
16920
16921 \end_inset
16922
16923 のような括弧対を含む.このパラメータは\SpecialChar LyX
16924 内部から変更することはできません(変更可能なパラメータには
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 Argument
16930 \end_layout
16931
16932 \end_inset
16933
16934 を使用してください).これは,全ての\SpecialChar LaTeX
16935  
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 Argument
16941 \end_layout
16942
16943 \end_inset
16944
16945 の後にそのままの形で出力されます.
16946 \end_layout
16947
16948 \begin_layout Description
16949 \begin_inset Flex Code
16950 status collapsed
16951
16952 \begin_layout Plain Layout
16953 LatexType
16954 \end_layout
16955
16956 \end_inset
16957
16958  [
16959 \begin_inset Flex Code
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 Command, Environment, None
16964 \end_layout
16965
16966 \end_inset
16967
16968 ] 様式がどのように\SpecialChar LaTeX
16969 に変換されるべきかを示します
16970 \begin_inset Foot
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 これらのルールはSGMLクラスにも適用されるので,
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979 LatexType
16980 \end_layout
16981
16982 \end_inset
16983
16984 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16985 \end_layout
16986
16987 \end_inset
16988
16989
16990 \end_layout
16991
16992 \begin_deeper
16993 \begin_layout Description
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998 None
16999 \end_layout
17000
17001 \end_inset
17002
17003  は,何も特別なことは意味しません
17004 \end_layout
17005
17006 \begin_layout Description
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 Command
17012 \end_layout
17013
17014 \end_inset
17015
17016  は,
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021
17022 \backslash
17023
17024 \emph on
17025 LatexName
17026 \emph default
17027 {\SpecialChar ldots
17028 }
17029 \end_layout
17030
17031 \end_inset
17032
17033 を意味します
17034 \end_layout
17035
17036 \begin_layout Description
17037 \begin_inset Flex Code
17038 status collapsed
17039
17040 \begin_layout Plain Layout
17041 Environment
17042 \end_layout
17043
17044 \end_inset
17045
17046  は,
17047 \begin_inset Flex Code
17048 status collapsed
17049
17050 \begin_layout Plain Layout
17051
17052 \backslash
17053 begin{
17054 \emph on
17055 LatexName
17056 \emph default
17057 }\SpecialChar ldots
17058
17059 \backslash
17060 end{
17061 \emph on
17062 LatexName
17063 \emph default
17064 }
17065 \end_layout
17066
17067 \end_inset
17068
17069 を意味します
17070 \end_layout
17071
17072 \begin_layout Standard
17073 上記最後のいくつかをまとめると,\SpecialChar LaTeX
17074 出力は,\SpecialChar LaTeX
17075 型に依存して
17076 \end_layout
17077
17078 \begin_layout LyX-Code
17079
17080 \backslash
17081 LatexName[LatexParam]{\SpecialChar ldots
17082 }
17083 \end_layout
17084
17085 \begin_layout Standard
17086 のようになるか,
17087 \end_layout
17088
17089 \begin_layout LyX-Code
17090
17091 \backslash
17092 begin{LatexName}[LatexParam] \SpecialChar ldots
17093  
17094 \backslash
17095 end{LatexName}.
17096 \end_layout
17097
17098 \begin_layout Standard
17099 となります.
17100 \end_layout
17101
17102 \end_deeper
17103 \begin_layout Description
17104 \begin_inset Flex Code
17105 status collapsed
17106
17107 \begin_layout Plain Layout
17108 LeftDelim
17109 \end_layout
17110
17111 \end_inset
17112
17113  [
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 文字列
17119 \end_layout
17120
17121 \end_inset
17122
17123 ] 様式の内容の最初に置かれる文字列.出力中の改行は
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128 <br/>
17129 \end_layout
17130
17131 \end_inset
17132
17133 で指示できます.
17134 \end_layout
17135
17136 \begin_layout Description
17137 \begin_inset Flex Code
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 LyxType
17142 \end_layout
17143
17144 \end_inset
17145
17146  
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 charstyle
17152 \end_layout
17153
17154 \end_inset
17155
17156
17157 \begin_inset Flex Code
17158 status collapsed
17159
17160 \begin_layout Plain Layout
17161 custom
17162 \end_layout
17163
17164 \end_inset
17165
17166
17167 \begin_inset Flex Code
17168 status collapsed
17169
17170 \begin_layout Plain Layout
17171 element
17172 \end_layout
17173
17174 \end_inset
17175
17176
17177 \begin_inset Flex Code
17178 status collapsed
17179
17180 \begin_layout Plain Layout
17181 end
17182 \end_layout
17183
17184 \end_inset
17185
17186 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
17187 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
17188 \begin_inset Flex Code
17189 status collapsed
17190
17191 \begin_layout Plain Layout
17192 LyxType
17193 \end_layout
17194
17195 \end_inset
17196
17197
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202 charstyle
17203 \end_layout
17204
17205 \end_inset
17206
17207 に設定すると,
17208 \begin_inset Flex Code
17209 status collapsed
17210
17211 \begin_layout Plain Layout
17212 MultiPar
17213 \end_layout
17214
17215 \end_inset
17216
17217 が偽に設定されます
17218 \lang english
17219  and 
17220 \lang japanese
17221
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226 ForcePlain
17227 \end_layout
17228
17229 \end_inset
17230
17231
17232 \lang english
17233  to true
17234 \lang japanese
17235 .文字様式差込枠で
17236 \begin_inset Flex Code
17237 status collapsed
17238
17239 \begin_layout Plain Layout
17240 MultiPar
17241 \end_layout
17242
17243 \end_inset
17244
17245 を真にしたい時には
17246 \lang english
17247 , or 
17248 \lang japanese
17249
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 ForcePlain
17255 \end_layout
17256
17257 \end_inset
17258
17259
17260 \lang english
17261  to false
17262 \lang japanese
17263
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268 LyxType
17269 \end_layout
17270
17271 \end_inset
17272
17273 を設定した
17274 \emph on
17275 後に
17276 \emph default
17277 設定すれば,真に設定することができます.
17278 \end_layout
17279
17280 \begin_layout Description
17281 \begin_inset Flex Code
17282 status collapsed
17283
17284 \begin_layout Plain Layout
17285 MultiPar
17286 \end_layout
17287
17288 \end_inset
17289
17290  [
17291 \begin_inset Flex Code
17292 status collapsed
17293
17294 \begin_layout Plain Layout
17295
17296 \emph on
17297 0
17298 \end_layout
17299
17300 \end_inset
17301
17302 ,
17303 \begin_inset space \thinspace{}
17304 \end_inset
17305
17306
17307 \begin_inset Flex Code
17308 status collapsed
17309
17310 \begin_layout Plain Layout
17311 1
17312 \end_layout
17313
17314 \end_inset
17315
17316 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
17317 \begin_inset Flex Code
17318 status collapsed
17319
17320 \begin_layout Plain Layout
17321 CustomPars
17322 \end_layout
17323
17324 \end_inset
17325
17326 を同じ値に設定し,
17327 \begin_inset Flex Code
17328 status collapsed
17329
17330 \begin_layout Plain Layout
17331 ForcePlain
17332 \end_layout
17333
17334 \end_inset
17335
17336 を逆の値に設定します.これらは,
17337 \begin_inset Flex Code
17338 status collapsed
17339
17340 \begin_layout Plain Layout
17341 MultiPar
17342 \end_layout
17343
17344 \end_inset
17345
17346
17347 \emph on
17348 後に
17349 \emph default
17350 指定されれば,他の値に指定し直すことができます.既定値は真です.
17351 \end_layout
17352
17353 \begin_layout Description
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358 NeedProtect
17359 \end_layout
17360
17361 \end_inset
17362
17363  [
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368
17369 \emph on
17370 0
17371 \end_layout
17372
17373 \end_inset
17374
17375 ,
17376 \begin_inset space \thinspace{}
17377 \end_inset
17378
17379
17380 \begin_inset Flex Code
17381 status collapsed
17382
17383 \begin_layout Plain Layout
17384 1
17385 \end_layout
17386
17387 \end_inset
17388
17389 ] 本レイアウト中で脆弱なコマンドを
17390 \begin_inset Flex Code
17391 status collapsed
17392
17393 \begin_layout Plain Layout
17394
17395 \backslash
17396 protect
17397 \end_layout
17398
17399 \end_inset
17400
17401 するか否か(註:当該コマンド自身をprotectするかどうかでは
17402 \emph on
17403 ありません
17404 \emph default
17405 ).既定値は偽です.
17406 \end_layout
17407
17408 \begin_layout Description
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 NoInsetLayout
17414 \end_layout
17415
17416 \end_inset
17417
17418  [
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 <レイアウト>
17424 \end_layout
17425
17426 \end_inset
17427
17428 ] 既存の
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 InsetLayout
17434 \end_layout
17435
17436 \end_inset
17437
17438 を削除します.
17439 \end_layout
17440
17441 \begin_layout Description
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 ObsoletedBy
17447 \end_layout
17448
17449 \end_inset
17450
17451  [
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456 <レイアウト>
17457 \end_layout
17458
17459 \end_inset
17460
17461 ] この古い
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 InsetLayout
17467 \end_layout
17468
17469 \end_inset
17470
17471 を引き継いだ
17472 \begin_inset Flex Code
17473 status collapsed
17474
17475 \begin_layout Plain Layout
17476 InsetLayout
17477 \end_layout
17478
17479 \end_inset
17480
17481 の名称.これは,
17482 \begin_inset Flex Code
17483 status collapsed
17484
17485 \begin_layout Plain Layout
17486 InsetLayout
17487 \end_layout
17488
17489 \end_inset
17490
17491 の改名を,後方互換性を維持しながら行うために用いられます.
17492 \end_layout
17493
17494 \begin_layout Description
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 ParbreakIsNewline
17500 \end_layout
17501
17502 \end_inset
17503
17504  [
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509
17510 \emph on
17511 0
17512 \end_layout
17513
17514 \end_inset
17515
17516 ,
17517 \begin_inset space \thinspace{}
17518 \end_inset
17519
17520
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525 1
17526 \end_layout
17527
17528 \end_inset
17529
17530 ] 段落様式と同様.第
17531 \begin_inset CommandInset ref
17532 LatexCommand ref
17533 reference "subsec:段落様式"
17534
17535 \end_inset
17536
17537 節参照.
17538 \end_layout
17539
17540 \begin_layout Description
17541 \begin_inset Flex Code
17542 status collapsed
17543
17544 \begin_layout Plain Layout
17545 PassThru
17546 \end_layout
17547
17548 \end_inset
17549
17550  [
17551 \emph on
17552
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 0
17558 \end_layout
17559
17560 \end_inset
17561
17562
17563 \emph default
17564 ,
17565 \begin_inset space \thinspace{}
17566 \end_inset
17567
17568
17569 \begin_inset Flex Code
17570 status collapsed
17571
17572 \begin_layout Plain Layout
17573 1
17574 \end_layout
17575
17576 \end_inset
17577
17578 ] 段落様式と同様.第
17579 \begin_inset CommandInset ref
17580 LatexCommand ref
17581 reference "subsec:段落様式"
17582
17583 \end_inset
17584
17585 節参照.
17586 \end_layout
17587
17588 \begin_layout Description
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 Preamble
17594 \end_layout
17595
17596 \end_inset
17597
17598  段落様式と同様.第
17599 \begin_inset CommandInset ref
17600 LatexCommand ref
17601 reference "subsec:段落様式"
17602
17603 \end_inset
17604
17605 節参照.
17606 \end_layout
17607
17608 \begin_layout Description
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 RefPrefix
17614 \end_layout
17615
17616 \end_inset
17617
17618  [
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 文字列
17624 \end_layout
17625
17626 \end_inset
17627
17628 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
17629 \end_layout
17630
17631 \begin_layout Description
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 Requires
17637 \end_layout
17638
17639 \end_inset
17640
17641  [
17642 \begin_inset Flex Code
17643 status collapsed
17644
17645 \begin_layout Plain Layout
17646 文字列
17647 \end_layout
17648
17649 \end_inset
17650
17651 ] 段落様式と同様.第
17652 \begin_inset CommandInset ref
17653 LatexCommand ref
17654 reference "subsec:段落様式"
17655
17656 \end_inset
17657
17658 節参照.
17659 \end_layout
17660
17661 \begin_layout Description
17662 \begin_inset Flex Code
17663 status collapsed
17664
17665 \begin_layout Plain Layout
17666 ResetArgs
17667 \end_layout
17668
17669 \end_inset
17670
17671  [
17672 \begin_inset Flex Code
17673 status collapsed
17674
17675 \begin_layout Plain Layout
17676
17677 \emph on
17678 0
17679 \end_layout
17680
17681 \end_inset
17682
17683 ,
17684 \begin_inset space \thinspace{}
17685 \end_inset
17686
17687
17688 \begin_inset Flex Code
17689 status collapsed
17690
17691 \begin_layout Plain Layout
17692 1
17693 \end_layout
17694
17695 \end_inset
17696
17697 ] (
17698 \begin_inset Flex Code
17699 status collapsed
17700
17701 \begin_layout Plain Layout
17702 Argument
17703 \end_layout
17704
17705 \end_inset
17706
17707 タグで定義された)この様式の\SpecialChar LaTeX
17708 引数をリセットします.これは,様式を
17709 \begin_inset Flex Code
17710 status collapsed
17711
17712 \begin_layout Plain Layout
17713 CopyStyle
17714 \end_layout
17715
17716 \end_inset
17717
17718 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
17719 \end_layout
17720
17721 \begin_layout Description
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726 ResetsFont
17727 \end_layout
17728
17729 \end_inset
17730
17731  [
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 0
17737 \end_layout
17738
17739 \end_inset
17740
17741 ,
17742 \begin_inset space \thinspace{}
17743 \end_inset
17744
17745
17746 \begin_inset Flex Code
17747 status collapsed
17748
17749 \begin_layout Plain Layout
17750
17751 \emph on
17752 1
17753 \end_layout
17754
17755 \end_inset
17756
17757 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
17758 \begin_inset Note Note
17759 status open
17760
17761 \begin_layout Plain Layout
17762 This is outdated: The default changed from 1 to 0
17763 \end_layout
17764
17765 \end_inset
17766
17767
17768 \end_layout
17769
17770 \begin_layout Description
17771 \begin_inset Flex Code
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 RightDelim
17776 \end_layout
17777
17778 \end_inset
17779
17780  [
17781 \begin_inset Flex Code
17782 status collapsed
17783
17784 \begin_layout Plain Layout
17785 文字列
17786 \end_layout
17787
17788 \end_inset
17789
17790 ] 様式の内容の最後に置かれる文字列.出力中の改行は
17791 \begin_inset Flex Code
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795 <br/>
17796 \end_layout
17797
17798 \end_inset
17799
17800 で指示できます.
17801 \end_layout
17802
17803 \begin_layout Description
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 Spellcheck
17809 \end_layout
17810
17811 \end_inset
17812
17813  [
17814 \begin_inset Flex Code
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 0
17819 \end_layout
17820
17821 \end_inset
17822
17823 ,
17824 \begin_inset space \thinspace{}
17825 \end_inset
17826
17827
17828 \begin_inset Flex Code
17829 status collapsed
17830
17831 \begin_layout Plain Layout
17832
17833 \emph on
17834 1
17835 \end_layout
17836
17837 \end_inset
17838
17839 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17840 \end_layout
17841
17842 \begin_layout Subsection
17843 カウンタ
17844 \begin_inset CommandInset label
17845 LatexCommand label
17846 name "subsec:カウンタ"
17847
17848 \end_inset
17849
17850
17851 \end_layout
17852
17853 \begin_layout Standard
17854 テキストクラスには,カウンタ(
17855 \begin_inset Flex MenuItem
17856 status collapsed
17857
17858 \begin_layout Plain Layout
17859 chapter
17860 \end_layout
17861
17862 \end_inset
17863
17864
17865 \begin_inset Flex MenuItem
17866 status collapsed
17867
17868 \begin_layout Plain Layout
17869 figure
17870 \end_layout
17871
17872 \end_inset
17873
17874 ・\SpecialChar ldots
17875 )を定義することが必要です.標準的なカウンタは
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 stdcounters.inc
17881 \end_layout
17882
17883 \end_inset
17884
17885 ファイルに含まれているので,作業中のレイアウトファイルに
17886 \end_layout
17887
17888 \begin_layout LyX-Code
17889 Input stdcounters.inc
17890 \end_layout
17891
17892 \begin_layout Standard
17893 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17894 \end_layout
17895
17896 \begin_layout LyX-Code
17897 Counter カウンタ名
17898 \end_layout
17899
17900 \begin_layout Standard
17901 で始まらなくてはなりません.ここで「
17902 \begin_inset Flex Code
17903 status collapsed
17904
17905 \begin_layout Plain Layout
17906 カウンタ名
17907 \end_layout
17908
17909 \end_inset
17910
17911 」は,実際のカウンタ名で置き換えます.また,宣言は「
17912 \begin_inset Flex Code
17913 status collapsed
17914
17915 \begin_layout Plain Layout
17916 End
17917 \end_layout
17918
17919 \end_inset
17920
17921 」で終わらなくてはなりません.
17922 \end_layout
17923
17924 \begin_layout Standard
17925 以下のパラメータを使用することができます.
17926 \end_layout
17927
17928 \begin_layout Description
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 InitialValue
17934 \end_layout
17935
17936 \end_inset
17937
17938  [
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 整数=1
17944 \end_layout
17945
17946 \end_inset
17947
17948 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17949 \end_layout
17950
17951 \begin_layout Description
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 LabelString [文字列=""]
17957 \end_layout
17958
17959 \end_inset
17960
17961  定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17962 \begin_inset Flex Code
17963 status collapsed
17964
17965 \begin_layout Plain Layout
17966 LabelStringAppendix
17967 \end_layout
17968
17969 \end_inset
17970
17971 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17972 \end_layout
17973
17974 \begin_deeper
17975 \begin_layout Itemize
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980
17981 \backslash
17982 thecounter
17983 \end_layout
17984
17985 \end_inset
17986
17987 は,カウンタ
17988 \begin_inset Flex Code
17989 status collapsed
17990
17991 \begin_layout Plain Layout
17992 counter
17993 \end_layout
17994
17995 \end_inset
17996
17997
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 LabelString
18003 \end_layout
18004
18005 \end_inset
18006
18007 (または
18008 \begin_inset Newline linebreak
18009 \end_inset
18010
18011
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 LabelStringAppendix
18017 \end_layout
18018
18019 \end_inset
18020
18021 )を展開したもので置き換えられます. 
18022 \end_layout
18023
18024 \begin_layout Itemize
18025 カウンタ値は,\SpecialChar LaTeX
18026 型マクロ
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031
18032 \backslash
18033
18034 \emph on
18035 numbertype
18036 \emph default
18037 {
18038 \emph on
18039 カウンタ
18040 \emph default
18041 }
18042 \end_layout
18043
18044 \end_inset
18045
18046 を用いて表現することができます.ここで
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051
18052 \emph on
18053 numbertype
18054 \end_layout
18055
18056 \end_inset
18057
18058 は以下のいずれかです.
18059 \begin_inset Flex Code
18060 status collapsed
18061
18062 \begin_layout Plain Layout
18063 arabic
18064 \end_layout
18065
18066 \end_inset
18067
18068 :1, 2, 3,\SpecialChar ldots
18069
18070 \begin_inset Flex Code
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074 alph
18075 \end_layout
18076
18077 \end_inset
18078
18079 :a, b, c, \SpecialChar ldots
18080 (小文字);
18081 \begin_inset Flex Code
18082 status collapsed
18083
18084 \begin_layout Plain Layout
18085 Alph
18086 \end_layout
18087
18088 \end_inset
18089
18090 :A, B, C, \SpecialChar ldots
18091 (大文字);
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 roman
18097 \end_layout
18098
18099 \end_inset
18100
18101 :i, ii, iii, \SpecialChar ldots
18102 (小文字ローマ数字);
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107 Roman
18108 \end_layout
18109
18110 \end_inset
18111
18112 :I, II, III\SpecialChar ldots
18113 (大文字ローマ数字).
18114 \end_layout
18115
18116 \end_deeper
18117 \begin_layout Standard
18118 \begin_inset Flex Code
18119 status collapsed
18120
18121 \begin_layout Plain Layout
18122 LabelString
18123 \end_layout
18124
18125 \end_inset
18126
18127 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 master
18133 \end_layout
18134
18135 \end_inset
18136
18137
18138 \begin_inset Flex Code
18139 status collapsed
18140
18141 \begin_layout Plain Layout
18142 Within
18143 \end_layout
18144
18145 \end_inset
18146
18147 で定義)があるときには,文字列
18148 \begin_inset Newline linebreak
18149 \end_inset
18150
18151
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156
18157 \backslash
18158 themaster.
18159 \backslash
18160 arabic{カウンタ}
18161 \end_layout
18162
18163 \end_inset
18164
18165 が使用されます.それ以外の場合は,
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170
18171 \backslash
18172 arabic{カウンタ}
18173 \end_layout
18174
18175 \end_inset
18176
18177 が使用されます.
18178 \end_layout
18179
18180 \begin_layout Description
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 LabelStringAppendix
18186 \end_layout
18187
18188 \end_inset
18189
18190  [
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 文字列
18196 \end_layout
18197
18198 \end_inset
18199
18200 =""] 
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205 LabelString
18206 \end_layout
18207
18208 \end_inset
18209
18210 と同様ですが,付録で使用するためのものです.
18211 \end_layout
18212
18213 \begin_layout Description
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 PrettyFormat
18219 \end_layout
18220
18221 \end_inset
18222
18223  [
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 文字列
18229 \end_layout
18230
18231 \end_inset
18232
18233 =
18234 \begin_inset Quotes erd
18235 \end_inset
18236
18237
18238 \begin_inset Quotes erd
18239 \end_inset
18240
18241 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
18242 \begin_inset space ~
18243 \end_inset
18244
18245 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
18246 す.
18247 \end_layout
18248
18249 \begin_layout Description
18250 \begin_inset Flex Code
18251 status collapsed
18252
18253 \begin_layout Plain Layout
18254 Within
18255 \end_layout
18256
18257 \end_inset
18258
18259  [
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264 文字列
18265 \end_layout
18266
18267 \end_inset
18268
18269 =
18270 \begin_inset Quotes erd
18271 \end_inset
18272
18273
18274 \begin_inset Quotes erd
18275 \end_inset
18276
18277 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
18278 \begin_inset Flex Code
18279 status collapsed
18280
18281 \begin_layout Plain Layout
18282 subsection
18283 \end_layout
18284
18285 \end_inset
18286
18287
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 section
18293 \end_layout
18294
18295 \end_inset
18296
18297 毎に番号がリセットされます.
18298 \end_layout
18299
18300 \begin_layout Subsection
18301 フォント指定
18302 \begin_inset CommandInset label
18303 LatexCommand label
18304 name "subsec:フォント指定"
18305
18306 \end_inset
18307
18308
18309 \end_layout
18310
18311 \begin_layout Standard
18312 フォント指定は,以下のような形を取ります.
18313 \end_layout
18314
18315 \begin_layout LyX-Code
18316 Font 
18317 \family roman
18318 \emph on
18319 または
18320 \family default
18321 \emph default
18322  LabelFont 
18323 \family roman
18324 \emph on
18325 または
18326 \family default
18327 \emph default
18328  DefaultFont
18329 \end_layout
18330
18331 \begin_layout LyX-Code
18332  ...
18333 \end_layout
18334
18335 \begin_layout LyX-Code
18336 EndFont
18337 \end_layout
18338
18339 \begin_layout Standard
18340 以下のコマンドを使用することができます.
18341 \end_layout
18342
18343 \begin_layout Description
18344 \begin_inset Flex Code
18345 status collapsed
18346
18347 \begin_layout Plain Layout
18348 Color
18349 \end_layout
18350
18351 \end_inset
18352
18353  [
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358
18359 \emph on
18360 none
18361 \end_layout
18362
18363 \end_inset
18364
18365
18366 \begin_inset Flex Code
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370 black
18371 \end_layout
18372
18373 \end_inset
18374
18375
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 white
18381 \end_layout
18382
18383 \end_inset
18384
18385
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390 red
18391 \end_layout
18392
18393 \end_inset
18394
18395
18396 \begin_inset Flex Code
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400 green
18401 \end_layout
18402
18403 \end_inset
18404
18405
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 blue
18411 \end_layout
18412
18413 \end_inset
18414
18415
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 cyan
18421 \end_layout
18422
18423 \end_inset
18424
18425
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 magenta
18431 \end_layout
18432
18433 \end_inset
18434
18435
18436 \begin_inset Flex Code
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 yellow
18441 \end_layout
18442
18443 \end_inset
18444
18445
18446 \begin_inset Flex Code
18447 status collapsed
18448
18449 \begin_layout Plain Layout
18450 brown
18451 \end_layout
18452
18453 \end_inset
18454
18455
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 darkgray
18461 \end_layout
18462
18463 \end_inset
18464
18465
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 gray
18471 \end_layout
18472
18473 \end_inset
18474
18475
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480 lightgray
18481 \end_layout
18482
18483 \end_inset
18484
18485
18486 \begin_inset Flex Code
18487 status collapsed
18488
18489 \begin_layout Plain Layout
18490 lime
18491 \end_layout
18492
18493 \end_inset
18494
18495
18496 \begin_inset Flex Code
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 orange
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 olive
18511 \end_layout
18512
18513 \end_inset
18514
18515
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 pink
18521 \end_layout
18522
18523 \end_inset
18524
18525
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530 purple
18531 \end_layout
18532
18533 \end_inset
18534
18535
18536 \begin_inset Flex Code
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540 teal
18541 \end_layout
18542
18543 \end_inset
18544
18545
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 violet
18551 \end_layout
18552
18553 \end_inset
18554
18555 ]
18556 \end_layout
18557
18558 \begin_layout Description
18559 \begin_inset Flex Code
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563 Family
18564 \end_layout
18565
18566 \end_inset
18567
18568  [
18569 \emph on
18570
18571 \begin_inset Flex Code
18572 status collapsed
18573
18574 \begin_layout Plain Layout
18575 Roman
18576 \end_layout
18577
18578 \end_inset
18579
18580
18581 \emph default
18582
18583 \begin_inset Flex Code
18584 status collapsed
18585
18586 \begin_layout Plain Layout
18587 Sans
18588 \end_layout
18589
18590 \end_inset
18591
18592
18593 \begin_inset Flex Code
18594 status collapsed
18595
18596 \begin_layout Plain Layout
18597 Typewriter
18598 \end_layout
18599
18600 \end_inset
18601
18602
18603 \end_layout
18604
18605 \begin_layout Description
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610 Misc
18611 \end_layout
18612
18613 \end_inset
18614
18615  [
18616 \begin_inset Flex Code
18617 status collapsed
18618
18619 \begin_layout Plain Layout
18620 文字列
18621 \end_layout
18622
18623 \end_inset
18624
18625 ] 有効な引数は,
18626 \begin_inset Flex Code
18627 status collapsed
18628
18629 \begin_layout Plain Layout
18630 emph
18631 \end_layout
18632
18633 \end_inset
18634
18635
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 noun
18641 \end_layout
18642
18643 \end_inset
18644
18645
18646 \begin_inset Flex Code
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650 strikeout
18651 \end_layout
18652
18653 \end_inset
18654
18655
18656 \begin_inset Flex Code
18657 status collapsed
18658
18659 \begin_layout Plain Layout
18660 underbar
18661 \end_layout
18662
18663 \end_inset
18664
18665
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 uuline
18671 \end_layout
18672
18673 \end_inset
18674
18675
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 uwave
18681 \end_layout
18682
18683 \end_inset
18684
18685
18686 \begin_inset Flex Code
18687 status collapsed
18688
18689 \begin_layout Plain Layout
18690 no_emph
18691 \end_layout
18692
18693 \end_inset
18694
18695
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700 no_noun
18701 \end_layout
18702
18703 \end_inset
18704
18705
18706 \begin_inset Flex Code
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710 no_strikeout
18711 \end_layout
18712
18713 \end_inset
18714
18715
18716 \begin_inset Flex Code
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 no_bar
18721 \end_layout
18722
18723 \end_inset
18724
18725
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 no_uuline
18731 \end_layout
18732
18733 \end_inset
18734
18735
18736 \begin_inset Flex Code
18737 status collapsed
18738
18739 \begin_layout Plain Layout
18740 no_uwave
18741 \end_layout
18742
18743 \end_inset
18744
18745 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
18746 \begin_inset Newline newline
18747 \end_inset
18748
18749 たとえば,
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754 emph
18755 \end_layout
18756
18757 \end_inset
18758
18759 は強調を有効にし,
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764 no_emph
18765 \end_layout
18766
18767 \end_inset
18768
18769 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
18770
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 no_emph
18776 \end_layout
18777
18778 \end_inset
18779
18780 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
18781 \end_layout
18782
18783 \begin_layout Description
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 Series
18789 \end_layout
18790
18791 \end_inset
18792
18793  [
18794 \emph on
18795
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800 Medium
18801 \end_layout
18802
18803 \end_inset
18804
18805
18806 \emph default
18807
18808 \begin_inset Flex Code
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 Bold
18813 \end_layout
18814
18815 \end_inset
18816
18817
18818 \end_layout
18819
18820 \begin_layout Description
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 Shape
18826 \end_layout
18827
18828 \end_inset
18829
18830  [
18831 \emph on
18832
18833 \begin_inset Flex Code
18834 status collapsed
18835
18836 \begin_layout Plain Layout
18837 Up
18838 \end_layout
18839
18840 \end_inset
18841
18842
18843 \emph default
18844
18845 \begin_inset Flex Code
18846 status collapsed
18847
18848 \begin_layout Plain Layout
18849 Italic
18850 \end_layout
18851
18852 \end_inset
18853
18854
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 SmallCaps
18860 \end_layout
18861
18862 \end_inset
18863
18864
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 Slanted
18870 \end_layout
18871
18872 \end_inset
18873
18874
18875 \end_layout
18876
18877 \begin_layout Description
18878 \begin_inset Flex Code
18879 status collapsed
18880
18881 \begin_layout Plain Layout
18882 Size
18883 \end_layout
18884
18885 \end_inset
18886
18887  [
18888 \begin_inset Flex Code
18889 status collapsed
18890
18891 \begin_layout Plain Layout
18892 tiny
18893 \end_layout
18894
18895 \end_inset
18896
18897
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902 small
18903 \end_layout
18904
18905 \end_inset
18906
18907
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912
18913 \emph on
18914 normal
18915 \end_layout
18916
18917 \end_inset
18918
18919
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 large
18925 \end_layout
18926
18927 \end_inset
18928
18929
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 larger
18935 \end_layout
18936
18937 \end_inset
18938
18939
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 largest
18945 \end_layout
18946
18947 \end_inset
18948
18949
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 huge
18955 \end_layout
18956
18957 \end_inset
18958
18959
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 giant
18965 \end_layout
18966
18967 \end_inset
18968
18969 ]
18970 \end_layout
18971
18972 \begin_layout Subsection
18973 \begin_inset CommandInset label
18974 LatexCommand label
18975 name "subsec:引用エンジンの説明"
18976
18977 \end_inset
18978
18979 引用エンジンの説明
18980 \end_layout
18981
18982 \begin_layout Standard
18983 主に引用エンジンファイル(第
18984 \begin_inset CommandInset ref
18985 LatexCommand ref
18986 reference "subsec:引用エンジンファイル"
18987 plural "false"
18988 caps "false"
18989 noprefix "false"
18990
18991 \end_inset
18992
18993 節参照)で用いられる
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 CiteEngine
18999 \end_layout
19000
19001 \end_inset
19002
19003 ブロックは,特定の「引用エンジン」で提供される引用コマンドを定義します.\SpecialChar LyX
19004 の用語では,引用エンジンとは,番号や著者名,刊行年を使って,引用を整形する特定の方法のこ
19005 とを指します.\SpecialChar LyX
19006 は,3つのエンジンの型をサポートします.すなわち,
19007 \end_layout
19008
19009 \begin_layout Enumerate
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 default
19015 \end_layout
19016
19017 \end_inset
19018
19019 : 既定のBib\SpecialChar TeX
19020 流の引用方法である,単純な番号による様式(例:「[1]」)
19021 \end_layout
19022
19023 \begin_layout Enumerate
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028 authoryear
19029 \end_layout
19030
19031 \end_inset
19032
19033 : 著者名と刊行年を使ったHarvard様式の引用(例:「Smith and Miller (2017b)」)
19034 \end_layout
19035
19036 \begin_layout Enumerate
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 numerical
19042 \end_layout
19043
19044 \end_inset
19045
19046 : 番号に隣接して著者名やタイトルを付けることのできる拡張された番号引用(例:「Smith and Miller [1]」)
19047 \end_layout
19048
19049 \begin_layout Standard
19050 \begin_inset Flex Code
19051 status collapsed
19052
19053 \begin_layout Plain Layout
19054 CiteEngine
19055 \end_layout
19056
19057 \end_inset
19058
19059 ブロックは以下のようになります.
19060 \end_layout
19061
19062 \begin_layout LyX-Code
19063 CiteEngine default
19064 \end_layout
19065
19066 \begin_layout LyX-Code
19067  cite
19068 \end_layout
19069
19070 \begin_layout LyX-Code
19071  Citep*[][]
19072 \end_layout
19073
19074 \begin_layout LyX-Code
19075  citeyearpar[][]=parencite*
19076 \end_layout
19077
19078 \begin_layout LyX-Code
19079  ...
19080 \end_layout
19081
19082 \begin_layout LyX-Code
19083 End
19084 \end_layout
19085
19086 \begin_layout Standard
19087 \begin_inset Flex Code
19088 status collapsed
19089
19090 \begin_layout Plain Layout
19091 CiteEngine
19092 \end_layout
19093
19094 \end_inset
19095
19096 に続くタグがエンジンを表します.各行は,このエンジンによってサポートされる引用コマンドや引用コマンドパラダイムを定義します.行は,\SpecialChar LyX
19097 コマンドと\SpecialChar LaTeX
19098 出力を命名するのに使
19099 われる引用コマンドのみを含むこともあれば,色々変えるために複雑なこともあります.完全な文法は
19100 \end_layout
19101
19102 \begin_layout LyX-Code
19103 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
19104 \end_layout
19105
19106 \begin_layout Standard
19107 という形になっています.ここで
19108 \end_layout
19109
19110 \begin_layout Itemize
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 LyXName
19116 \end_layout
19117
19118 \end_inset
19119
19120
19121 \begin_inset Flex Code
19122 status collapsed
19123
19124 \begin_layout Plain Layout
19125 *.lyx
19126 \end_layout
19127
19128 \end_inset
19129
19130 ファイルで使用される名前.
19131 \end_layout
19132
19133 \begin_deeper
19134 \begin_layout Standard
19135 可搬性のために,異なる引用パッケージ中の同じ形をしたコマンドには,同じ名前をつけるようにしています(したがって,多くの名前がnatbibから派生しており,\SpecialChar LaTeX
19136 コマン
19137 ド名が異なる場合には,しばしば
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 latexcmd
19143 \end_layout
19144
19145 \end_inset
19146
19147 を変える必要があります).
19148 \end_layout
19149
19150 \end_deeper
19151 \begin_layout Itemize
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 alias
19157 \end_layout
19158
19159 \end_inset
19160
19161 : このエンジンにおいて,与えられた
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 LyXName
19167 \end_layout
19168
19169 \end_inset
19170
19171 にフォールバックするコマンドの(コンマで区切られた)リスト.これによって,引用パッケージとエンジンを切り替えるのが楽になります.
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 alias
19177 \end_layout
19178
19179 \end_inset
19180
19181 はレイアウト定義中での
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 ObsoletedBy
19187 \end_layout
19188
19189 \end_inset
19190
19191 に相当するものと考えてよいでしょう.
19192 \end_layout
19193
19194 \begin_layout Itemize
19195 \begin_inset Flex Code
19196 status collapsed
19197
19198 \begin_layout Plain Layout
19199 latexcmd
19200 \end_layout
19201
19202 \end_inset
19203
19204 : 出力される実際の\SpecialChar LaTeX
19205 コマンド.
19206 \end_layout
19207
19208 \begin_layout Standard
19209 \begin_inset Flex Code
19210 status collapsed
19211
19212 \begin_layout Plain Layout
19213 Alias
19214 \end_layout
19215
19216 \end_inset
19217
19218
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 latexcmd
19224 \end_layout
19225
19226 \end_inset
19227
19228 は必須ではありません.
19229 \begin_inset Flex Code
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233 latexcmd
19234 \end_layout
19235
19236 \end_inset
19237
19238 が与えられない時は,
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 LyXName
19244 \end_layout
19245
19246 \end_inset
19247
19248 が\SpecialChar LaTeX
19249 に出力されます.
19250 \end_layout
19251
19252 \begin_layout Standard
19253 さらに,下記の点に注意してください.
19254 \end_layout
19255
19256 \begin_layout Itemize
19257 大文字にするとコマンドも大文字化されたものになります(
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262
19263 \backslash
19264 latexcmd
19265 \end_layout
19266
19267 \end_inset
19268
19269
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274
19275 \backslash
19276 Latexcmd
19277 \end_layout
19278
19279 \end_inset
19280
19281 に).これらは通常,名前の前置詞を大文字化するのを確実にします(
19282 \emph on
19283 von Goethe
19284 \emph default
19285  
19286 \begin_inset Formula $\Rightarrow$
19287 \end_inset
19288
19289  
19290 \emph on
19291 Von Goethe
19292 \emph default
19293 ).
19294 \end_layout
19295
19296 \begin_layout Itemize
19297 括弧
19298 \begin_inset Flex Code
19299 status collapsed
19300
19301 \begin_layout Plain Layout
19302 []
19303 \end_layout
19304
19305 \end_inset
19306
19307 は非必須引数の数を表します(0-2をとりえます).
19308 \end_layout
19309
19310 \begin_layout Itemize
19311 星印
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 *
19317 \end_layout
19318
19319 \end_inset
19320
19321 は星印付きコマンドを示します(
19322 \begin_inset Flex Code
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326
19327 \backslash
19328 latexcmd
19329 \end_layout
19330
19331 \end_inset
19332
19333
19334 \begin_inset Flex Code
19335 status collapsed
19336
19337 \begin_layout Plain Layout
19338
19339 \backslash
19340 latexcmd*
19341 \end_layout
19342
19343 \end_inset
19344
19345 に).
19346 \end_layout
19347
19348 \begin_deeper
19349 \begin_layout Standard
19350 既定では,星印付きバージョンは,
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 MaxCiteNames
19356 \end_layout
19357
19358 \end_inset
19359
19360 の閾値を超えたために「et al.」に省略されるべき時にも全ての著者を出力することを意味します.
19361 \end_layout
19362
19363 \begin_layout Standard
19364 星印が,当該コマンドについては別の意味を持つ場合には,
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 <!_stardesc!_stardesctooltip>
19370 \end_layout
19371
19372 \end_inset
19373
19374 のように三角括弧で指定することができます.前置詞
19375 \begin_inset Flex Code
19376 status collapsed
19377
19378 \begin_layout Plain Layout
19379 !_
19380 \end_layout
19381
19382 \end_inset
19383
19384 で標識した,翻訳可能なキーワードを最大2つ与えることができます.最初のキーワードは,引用ダイアログ中の「Full aut&hor list」チェックボックスラベ
19385 ルを書き換える文字列を指し,二つ目のキーワードは,このチェックボックスに対する非必須のツールチップの文字列を指します.
19386 \end_layout
19387
19388 \begin_layout Standard
19389 これらの2つのマクロは,下記のように,前置詞から
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394 !
19395 \end_layout
19396
19397 \end_inset
19398
19399 を落とした形で
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 CiteFormat
19405 \end_layout
19406
19407 \end_inset
19408
19409 (次節参照)で定義されなくてはなりません.
19410 \end_layout
19411
19412 \begin_layout LyX-Code
19413 _stardesc Sta&rred command label
19414 \end_layout
19415
19416 \begin_layout LyX-Code
19417 _stardesctooltip Tooltip for the starred command checkbox.
19418 \end_layout
19419
19420 \end_deeper
19421 \begin_layout Itemize
19422 ドル記号
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 $
19428 \end_layout
19429
19430 \end_inset
19431
19432 は,このコマンドが「qualified citation lists」を取り扱うことを示します.これは,リスト中の個別の引用に対して,前置文字列と後置文字列を置
19433 くことができる,
19434 \family sans
19435 Biblatex
19436 \family default
19437 に特有の複数文献引用機能です.詳細については,
19438 \family sans
19439 Biblatex
19440 \family default
19441 の取扱説明書をご覧ください.
19442 \end_layout
19443
19444 \begin_layout Subsection
19445 \begin_inset CommandInset label
19446 LatexCommand label
19447 name "subsec:引用書式指定"
19448
19449 \end_inset
19450
19451 引用書式指定
19452 \end_layout
19453
19454 \begin_layout Standard
19455 (引用ダイアログやツールチップなどの)\SpecialChar LyX
19456 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
19457 \begin_inset Flex Code
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461 CiteFormat
19462 \end_layout
19463
19464 \end_inset
19465
19466 ブロックが使用されています.このブロックは,以下のような形をしています.
19467 \end_layout
19468
19469 \begin_layout LyX-Code
19470 CiteFormat
19471 \end_layout
19472
19473 \begin_layout LyX-Code
19474  article ...
19475 \end_layout
19476
19477 \begin_layout LyX-Code
19478  book ...
19479 \end_layout
19480
19481 \begin_layout LyX-Code
19482 End
19483 \end_layout
19484
19485 \begin_layout Standard
19486 あるいは
19487 \end_layout
19488
19489 \begin_layout LyX-Code
19490 CiteFormat
19491 \end_layout
19492
19493 \begin_layout LyX-Code
19494  cite ...
19495 \end_layout
19496
19497 \begin_layout LyX-Code
19498  citet*[][] ...
19499 \end_layout
19500
19501 \begin_layout LyX-Code
19502 End
19503 \end_layout
19504
19505 \begin_layout Standard
19506 最初の例の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
19507 ファイル中に存
19508 在しうる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
19509 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
19510 は,いくつかの書式を
19511 \begin_inset Flex Code
19512 status collapsed
19513
19514 \begin_layout Plain Layout
19515 stdciteformats.inc
19516 \end_layout
19517
19518 \end_inset
19519
19520 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
19521 文書クラスにインクルードされています.
19522 \end_layout
19523
19524 \begin_layout Standard
19525 2つ目の例では,各行は,特定の引用コマンド(この例では
19526 \begin_inset Flex Code
19527 status collapsed
19528
19529 \begin_layout Plain Layout
19530
19531 \backslash
19532 cite
19533 \end_layout
19534
19535 \end_inset
19536
19537 及び
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542
19543 \backslash
19544 citet
19545 \end_layout
19546
19547 \end_inset
19548
19549 )が,引用差込枠ラベルや引用ダイアログ,メニュー,XHTML出力でどのように表示されるべきかを定義しています.\SpecialChar LyX
19550 は,\SpecialChar LyX
19551 に同梱されている個別の
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 *.citeengine
19557 \end_layout
19558
19559 \end_inset
19560
19561 ファイル中において,
19562 \family sans
19563 文書\SpecialChar menuseparator
19564 設定\SpecialChar menuseparator
19565 書誌情報\SpecialChar ldots
19566
19567 \family default
19568 でサポートしている引用様式用に,そのような書式を定義しています(第
19569 \begin_inset CommandInset ref
19570 LatexCommand ref
19571 reference "subsec:引用エンジンファイル"
19572 plural "false"
19573 caps "false"
19574 noprefix "false"
19575
19576 \end_inset
19577
19578 節参照).
19579 \end_layout
19580
19581 \begin_layout Standard
19582 この定義は,Bib\SpecialChar TeX
19583 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 %author%
19589 \end_layout
19590
19591 \end_inset
19592
19593 のように
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598 %
19599 \end_layout
19600
19601 \end_inset
19602
19603 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
19604 \end_layout
19605
19606 \begin_layout LyX-Code
19607 misc %author%, 
19608 \begin_inset Quotes eld
19609 \end_inset
19610
19611 %title%
19612 \begin_inset Quotes erd
19613 \end_inset
19614
19615
19616 \end_layout
19617
19618 \begin_layout Standard
19619 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
19620 \end_layout
19621
19622 \begin_layout Standard
19623 もちろん,キーが存在するときのみ,そのキーを出力したい時があるはずです.このようなときには
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 {%volume%[[vol.
19629 \begin_inset space ~
19630 \end_inset
19631
19632 %volume%]]}
19633 \end_layout
19634
19635 \end_inset
19636
19637 のように,条件付きの構成を使用することができます.これは,
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 volume
19643 \end_layout
19644
19645 \end_inset
19646
19647 が存在するならば,「vol.
19648 \begin_inset space ~
19649 \end_inset
19650
19651 」とvolumeキーを出力するという意味です.また,
19652 \begin_inset Newline newline
19653 \end_inset
19654
19655
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 {%author%[[%author%]][[%editor%, ed.]]}
19661 \end_layout
19662
19663 \end_inset
19664
19665
19666 \begin_inset Newline newline
19667 \end_inset
19668
19669 のように,条件の中にelse節を含めることも可能です.ここでは,もし
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 author
19675 \end_layout
19676
19677 \end_inset
19678
19679 キーが存在するならば出力され,そうでなければeditorキーと「,
19680 \begin_inset space ~
19681 \end_inset
19682
19683 ed.」が出力されます.ここでもキーは,
19684 \begin_inset Flex Code
19685 status collapsed
19686
19687 \begin_layout Plain Layout
19688 %
19689 \end_layout
19690
19691 \end_inset
19692
19693 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 [[
19699 \end_layout
19700
19701 \end_inset
19702
19703 」と「
19704 \begin_inset Flex Code
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 ]]
19709 \end_layout
19710
19711 \end_inset
19712
19713 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
19714 \end_layout
19715
19716 \begin_layout Standard
19717 これらの条件文に使うことができるものには,項目キーの他に,以下の特殊キーがあります.
19718 \end_layout
19719
19720 \begin_layout Itemize
19721 \begin_inset Flex Code
19722 status collapsed
19723
19724 \begin_layout Plain Layout
19725 {%dialog%[[真]][[偽]]}
19726 \end_layout
19727
19728 \end_inset
19729
19730 : ダイアログとメニューに対しては「真」の部分を処理し,他の文脈(作業領域や書き出し)には「偽」の部分を処理します
19731 \end_layout
19732
19733 \begin_layout Itemize
19734 \begin_inset Flex Code
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 {%export%[[真]][[偽]]}
19739 \end_layout
19740
19741 \end_inset
19742
19743 : 書き出しとメニューに対しては「真」の部分を処理し,他の文脈(作業領域やダイアログ)には「偽」の部分を処理します
19744 \end_layout
19745
19746 \begin_layout Itemize
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 {%next%[[真]]}
19752 \end_layout
19753
19754 \end_inset
19755
19756 : 他の項目が続く場合には「真」の部分を処理します(複数キーを持つ引用など)
19757 \end_layout
19758
19759 \begin_layout Itemize
19760 \begin_inset Flex Code
19761 status collapsed
19762
19763 \begin_layout Plain Layout
19764 {%second%[[真]][[偽]]}
19765 \end_layout
19766
19767 \end_inset
19768
19769 : これが複数項目の2番目の場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19770 \end_layout
19771
19772 \begin_layout Itemize
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 {%ifstar%[[真]][[偽]]}
19778 \end_layout
19779
19780 \end_inset
19781
19782 : (
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787
19788 \backslash
19789 cite*
19790 \end_layout
19791
19792 \end_inset
19793
19794 など)星印付き引用コマンドの場合には「真」の部分を処理し,星印付きでない場合には「偽」の部分を処理します
19795 \end_layout
19796
19797 \begin_layout Itemize
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 {%ifentrytype:<type>%[[真]][[偽]]}
19803 \end_layout
19804
19805 \end_inset
19806
19807 : 現行の項目が
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 <型>
19813 \end_layout
19814
19815 \end_inset
19816
19817 に一致する場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:引用定義において
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 {%ifentrytype:book%[[これはbookです]][[これはbookではありません]]}
19823 \end_layout
19824
19825 \end_inset
19826
19827
19828 \end_layout
19829
19830 \begin_layout Itemize
19831 \begin_inset Flex Code
19832 status collapsed
19833
19834 \begin_layout Plain Layout
19835 {%ifmultiple:<authortype>%[[真]][[偽]]}
19836 \end_layout
19837
19838 \end_inset
19839
19840 : 現行の項目が著者型(著者・編者など)が複数の著者を含む場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:書誌情報定義において
19841 \begin_inset Flex Code
19842 status collapsed
19843
19844 \begin_layout Plain Layout
19845 {%ifmultiple:editor%[[eds.]][[ed.]]}
19846 \end_layout
19847
19848 \end_inset
19849
19850
19851 \end_layout
19852
19853 \begin_layout Itemize
19854 \begin_inset Flex Code
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 {%ifqualified%[[真]][[偽]]}
19859 \end_layout
19860
19861 \end_inset
19862
19863 : 現行の引用がqualified citation listである(複数文献引用に対する
19864 \family sans
19865 Biblatex
19866 \family default
19867 特有の形式)場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19868 \end_layout
19869
19870 \begin_layout Standard
19871 \begin_inset Flex Code
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875 %author%
19876 \end_layout
19877
19878 \end_inset
19879
19880 は書誌情報ファイルに記録されている形のままの著者キーを出力すると述べました.これは「Miller, Peter and Smith, Mary
19881  and White, Jane」のような文字列に終わることがあり(Bib\SpecialChar TeX
19882 では著者を区切るのに「and」が用いられるため),望ましい結果ではありません.したがっ
19883 て,\SpecialChar LyX
19884 は,正しく整形された名前のリスト(これも翻訳の対象となります)を得るための方法を提供しています.以下のキーが提供されています.
19885 \end_layout
19886
19887 \begin_layout Enumerate
19888 書誌情報項目の主要著者・編者に適した,姓名付き名前リスト用.
19889 \begin_inset Flex Code
19890 status collapsed
19891
19892 \begin_layout Plain Layout
19893 <nametype>
19894 \end_layout
19895
19896 \end_inset
19897
19898 部分は要請されているリスト型を表します(例:
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 <nametype:author>
19904 \end_layout
19905
19906 \end_inset
19907
19908
19909 \end_layout
19910
19911 \begin_deeper
19912 \begin_layout Itemize
19913 \begin_inset Flex Code
19914 status collapsed
19915
19916 \begin_layout Plain Layout
19917 %abbrvnames:<nametype>%
19918 \end_layout
19919
19920 \end_inset
19921
19922
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 MaxCiteNames
19928 \end_layout
19929
19930 \end_inset
19931
19932 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
19933 \end_layout
19934
19935 \begin_layout Itemize
19936 \begin_inset Flex Code
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940 %fullnames:<nametype>%
19941 \end_layout
19942
19943 \end_inset
19944
19945 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
19946 \end_layout
19947
19948 \begin_layout Itemize
19949 \begin_inset Flex Code
19950 status collapsed
19951
19952 \begin_layout Plain Layout
19953 %forceabbrvnames:<nametype>%
19954 \end_layout
19955
19956 \end_inset
19957
19958
19959 \begin_inset Flex Code
19960 status collapsed
19961
19962 \begin_layout Plain Layout
19963 MaxCiteNames
19964 \end_layout
19965
19966 \end_inset
19967
19968 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
19969 \end_layout
19970
19971 \end_deeper
19972 \begin_layout Enumerate
19973 書誌情報項目中の姓名の順序が異なっている場合の,姓名付き名前リスト(例:「Miller, John: 何らかの文, in: Mary Smith,
19974  ed.: A volume」
19975 \end_layout
19976
19977 \begin_deeper
19978 \begin_layout Itemize
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 %abbrvbynames:<nametype>%
19984 \end_layout
19985
19986 \end_inset
19987
19988
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 MaxCiteNames
19994 \end_layout
19995
19996 \end_inset
19997
19998 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
19999 \end_layout
20000
20001 \begin_layout Itemize
20002 \begin_inset Flex Code
20003 status collapsed
20004
20005 \begin_layout Plain Layout
20006 %fullbynames:<nametype>%
20007 \end_layout
20008
20009 \end_inset
20010
20011 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20012 \end_layout
20013
20014 \begin_layout Itemize
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 %forceabbrvbynames:<nametype>%
20020 \end_layout
20021
20022 \end_inset
20023
20024
20025 \begin_inset Flex Code
20026 status collapsed
20027
20028 \begin_layout Plain Layout
20029 MaxCiteNames
20030 \end_layout
20031
20032 \end_inset
20033
20034 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20035 \end_layout
20036
20037 \end_deeper
20038 \begin_layout Enumerate
20039 著者-発行年引用ラベルで用いられるような,姓のみを含む姓リスト.これらは
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 <nametype>
20045 \end_layout
20046
20047 \end_inset
20048
20049 部分を取りませんが,(著者-発行年ラベルで通例であるように)常に著者リストか,存在しない場合には編者リストを返します.
20050 \end_layout
20051
20052 \begin_deeper
20053 \begin_layout Itemize
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 %abbrvciteauthor%
20059 \end_layout
20060
20061 \end_inset
20062
20063
20064 \begin_inset Flex Code
20065 status collapsed
20066
20067 \begin_layout Plain Layout
20068 MaxCiteNames
20069 \end_layout
20070
20071 \end_inset
20072
20073 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20074 \end_layout
20075
20076 \begin_layout Itemize
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 %fullciteauthor%
20082 \end_layout
20083
20084 \end_inset
20085
20086 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20087 \end_layout
20088
20089 \begin_layout Itemize
20090 \begin_inset Flex Code
20091 status collapsed
20092
20093 \begin_layout Plain Layout
20094 %forceabbrvciteauthor%
20095 \end_layout
20096
20097 \end_inset
20098
20099
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 MaxCiteNames
20105 \end_layout
20106
20107 \end_inset
20108
20109 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20110 \end_layout
20111
20112 \end_deeper
20113 \begin_layout Standard
20114 前二者の姓名の順序は,下記のマクロで変更することができます.
20115 \end_layout
20116
20117 \begin_layout Itemize
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 !firstnameform %surname%, %prename%
20123 \end_layout
20124
20125 \end_inset
20126
20127 (1の場合の最初の著者)
20128 \end_layout
20129
20130 \begin_layout Itemize
20131 \begin_inset Flex Code
20132 status collapsed
20133
20134 \begin_layout Plain Layout
20135 !othernameform %surname%, %prename%
20136 \end_layout
20137
20138 \end_inset
20139
20140 (1の場合の他の著者)
20141 \end_layout
20142
20143 \begin_layout Itemize
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148 !firstbynameform %prename% %surname%
20149 \end_layout
20150
20151 \end_inset
20152
20153 (2の場合の最初の著者)
20154 \end_layout
20155
20156 \begin_layout Itemize
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 !otherbynameform %prename% %surname%
20162 \end_layout
20163
20164 \end_inset
20165
20166 (2の場合の他の著者)
20167 \end_layout
20168
20169 \begin_layout Standard
20170 これによって,名前を「Miller, Peter and Mary Smith: \SpecialChar ldots
20171 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
20172 」のように
20173 設定することができます.
20174 \end_layout
20175
20176 \begin_layout Standard
20177 もう一つ,定義中で使用することのできる文法として,
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 {!<i>!}
20183 \end_layout
20184
20185 \end_inset
20186
20187 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
20188 グを出力させたくはありませんから,HTMLタグは「
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193 {!
20194 \end_layout
20195
20196 \end_inset
20197
20198 」と「
20199 \begin_inset Flex Code
20200 status collapsed
20201
20202 \begin_layout Plain Layout
20203 !}
20204 \end_layout
20205
20206 \end_inset
20207
20208 」でくるんでやらなくてはならないのです.
20209 \end_layout
20210
20211 \begin_layout Standard
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 CiteFormat
20217 \end_layout
20218
20219 \end_inset
20220
20221 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
20222 \end_layout
20223
20224 \begin_layout LyX-Code
20225 !quotetitle 
20226 \begin_inset Quotes eld
20227 \end_inset
20228
20229 %title%
20230 \begin_inset Quotes erd
20231 \end_inset
20232
20233
20234 \end_layout
20235
20236 \begin_layout Standard
20237 といった例が挙げられます.これは,短縮形ないしはマクロであり,
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 %!quotetitle%
20243 \end_layout
20244
20245 \end_inset
20246
20247 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
20248 は,
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 %!quotetitle%
20254 \end_layout
20255
20256 \end_inset
20257
20258 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
20259 \end_layout
20260
20261 \begin_layout LyX-Code
20262 !funfun %funfun%
20263 \end_layout
20264
20265 \begin_layout Standard
20266 のようなことはしないでください.\SpecialChar LyX
20267 は,無限ループに陥るようなことはありませんが,諦めるまでに時間のかかる長いループに入るかもしれません.
20268 \end_layout
20269
20270 \begin_layout Standard
20271 特殊な定義の二つめは,
20272 \end_layout
20273
20274 \begin_layout LyX-Code
20275 B_pptext pp.
20276 \end_layout
20277
20278 \begin_layout Standard
20279 のようなものです.これは翻訳対象となるテキスト部分を定義し,これによって書誌情報や引用の対応する部分が翻訳されるようになります.
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 %B_pptext%
20285 \end_layout
20286
20287 \end_inset
20288
20289 のように,これをキーとして扱って,定義の中に入れることもできます.
20290 \lang english
20291 Note that there are two different translation paths: All definitions starting
20292  with 
20293 \begin_inset Flex Code
20294 status collapsed
20295
20296 \begin_layout Plain Layout
20297
20298 \lang english
20299 B_
20300 \end_layout
20301
20302 \end_inset
20303
20304 , such as in the example above, will be translated to the currently active
20305  buffer language (so the translation will match the generated document).
20306  All definitions starting with underscore only will be translated to the
20307  GUI language.
20308  This is the proper translation for strings that only occur in the dialogs
20309  or on buttons, such as this one:
20310 \end_layout
20311
20312 \begin_layout LyX-Code
20313
20314 \lang english
20315 _addtobib Add to bibliography only.
20316 \end_layout
20317
20318 \begin_layout Standard
20319 これらのうちいくつかは
20320 \lang english
20321 translatable strings
20322 \lang japanese
20323
20324 \begin_inset Flex Code
20325 status collapsed
20326
20327 \begin_layout Plain Layout
20328 stdciteformats.inc
20329 \end_layout
20330
20331 \end_inset
20332
20333 及び様々な
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 *.citeengine
20339 \end_layout
20340
20341 \end_inset
20342
20343 ファイル中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
20344 \end_layout
20345
20346 \begin_layout Standard
20347 以下は,これらの機能を全て使った例です.
20348 \begin_inset VSpace defskip
20349 \end_inset
20350
20351
20352 \end_layout
20353
20354 \begin_layout Standard
20355 \noindent
20356
20357 \family sans
20358 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
20359 \end_layout
20360
20361 \begin_layout Standard
20362 \begin_inset VSpace defskip
20363 \end_inset
20364
20365 これは,
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 author
20371 \end_layout
20372
20373 \end_inset
20374
20375 キーが定義されているならば,著者とコンマを出力し,
20376 \begin_inset Flex Code
20377 status collapsed
20378
20379 \begin_layout Plain Layout
20380 author
20381 \end_layout
20382
20383 \end_inset
20384
20385 キーが定義されておらず,
20386 \begin_inset Flex Code
20387 status collapsed
20388
20389 \begin_layout Plain Layout
20390 editor
20391 \end_layout
20392
20393 \end_inset
20394
20395 キーが定義されているならば,編集者名の後に
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400 B_edtext
20401 \end_layout
20402
20403 \end_inset
20404
20405 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
20406 \begin_inset Flex Code
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 stdciteformats.inc
20411 \end_layout
20412
20413 \end_inset
20414
20415 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
20416 \end_layout
20417
20418 \begin_layout Section
20419 \begin_inset CommandInset label
20420 LatexCommand label
20421 name "sec:XHTML出力のタグ"
20422
20423 \end_inset
20424
20425 XHTML出力のタグ
20426 \end_layout
20427
20428 \begin_layout Standard
20429 \SpecialChar LaTeX
20430 やDocBookと同様,\SpecialChar LyX
20431 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
20432 は適切な既定値を提供し,前述したように,他のレイアウト
20433 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
20434 は,章様式の
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 Font
20440 \end_layout
20441
20442 \end_inset
20443
20444 宣言で提供されている情報を利用しようと試みます.
20445 \end_layout
20446
20447 \begin_layout Standard
20448 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
20449 ,これが必要になる場合もあるので,\SpecialChar LyX
20450 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
20451 \end_layout
20452
20453 \begin_layout Standard
20454 様式宣言や差込枠宣言の外で使用することができるタグに,
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 HTMLPreamble
20460 \end_layout
20461
20462 \end_inset
20463
20464
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 AddToHTMLPreamble
20470 \end_layout
20471
20472 \end_inset
20473
20474 の2つがあることに注意してください.これらの詳細については,
20475 \begin_inset CommandInset ref
20476 LatexCommand ref
20477 reference "subsec:汎用テキストクラスパラメータ"
20478
20479 \end_inset
20480
20481 をご覧ください.
20482 \end_layout
20483
20484 \begin_layout Subsection
20485 \begin_inset CommandInset label
20486 LatexCommand label
20487 name "subsec:段落様式-XHTML"
20488
20489 \end_inset
20490
20491 段落様式
20492 \end_layout
20493
20494 \begin_layout Standard
20495 \SpecialChar LyX
20496 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 \SpecialChar LaTeX
20502 Type
20503 \end_layout
20504
20505 \end_inset
20506
20507 タグの内容によって決定されます.
20508 \end_layout
20509
20510 \begin_layout Standard
20511 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
20512 \end_layout
20513
20514 \begin_layout LyX-Code
20515
20516 \family sans
20517 <tag attr=
20518 \begin_inset Quotes erd
20519 \end_inset
20520
20521 value
20522 \begin_inset Quotes erd
20523 \end_inset
20524
20525 >
20526 \end_layout
20527
20528 \begin_layout LyX-Code
20529
20530 \family sans
20531 <labeltag attr=
20532 \begin_inset Quotes erd
20533 \end_inset
20534
20535 value
20536 \begin_inset Quotes erd
20537 \end_inset
20538
20539 >ラベル</labeltag>
20540 \end_layout
20541
20542 \begin_layout LyX-Code
20543
20544 \family sans
20545 段落の内容
20546 \end_layout
20547
20548 \begin_layout LyX-Code
20549
20550 \family sans
20551 </tag>
20552 \end_layout
20553
20554 \begin_layout Standard
20555 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
20556 \end_layout
20557
20558 \begin_layout Standard
20559 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
20560 \end_layout
20561
20562 \begin_layout LyX-Code
20563
20564 \family sans
20565 <tag attr=
20566 \begin_inset Quotes erd
20567 \end_inset
20568
20569 value
20570 \begin_inset Quotes erd
20571 \end_inset
20572
20573 >
20574 \end_layout
20575
20576 \begin_layout LyX-Code
20577
20578 \family sans
20579 <itemtag attr=
20580 \begin_inset Quotes erd
20581 \end_inset
20582
20583 value
20584 \begin_inset Quotes erd
20585 \end_inset
20586
20587 ><labeltag attr=
20588 \begin_inset Quotes erd
20589 \end_inset
20590
20591 value
20592 \begin_inset Quotes erd
20593 \end_inset
20594
20595 >環境ラベル</labeltag>最初の段落.
20596 \end_layout
20597
20598 \begin_layout LyX-Code
20599
20600 \family sans
20601 </itemtag>
20602 \end_layout
20603
20604 \begin_layout LyX-Code
20605
20606 \family sans
20607 <itemtag>二つめの段落.</itemtag>
20608 \end_layout
20609
20610 \begin_layout LyX-Code
20611
20612 \family sans
20613 </tag>
20614 \end_layout
20615
20616 \begin_layout Standard
20617 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
20618 \end_layout
20619
20620 \begin_layout Standard
20621 リストに関しては,次のような形になります.
20622 \end_layout
20623
20624 \begin_layout LyX-Code
20625
20626 \family sans
20627 <tag attr=
20628 \begin_inset Quotes erd
20629 \end_inset
20630
20631 value
20632 \begin_inset Quotes erd
20633 \end_inset
20634
20635 >
20636 \end_layout
20637
20638 \begin_layout LyX-Code
20639
20640 \family sans
20641 <itemtag attr=
20642 \begin_inset Quotes erd
20643 \end_inset
20644
20645 value
20646 \begin_inset Quotes erd
20647 \end_inset
20648
20649 ><labeltag attr=
20650 \begin_inset Quotes erd
20651 \end_inset
20652
20653 value
20654 \begin_inset Quotes erd
20655 \end_inset
20656
20657 >リストのラベル</labeltag>最初の項目.</itemtag>
20658 \end_layout
20659
20660 \begin_layout LyX-Code
20661
20662 \family sans
20663 <itemtag attr=
20664 \begin_inset Quotes erd
20665 \end_inset
20666
20667 value
20668 \begin_inset Quotes erd
20669 \end_inset
20670
20671 ><labeltag attr=
20672 \begin_inset Quotes erd
20673 \end_inset
20674
20675 value
20676 \begin_inset Quotes erd
20677 \end_inset
20678
20679 >リストのラベル</labeltag>二つめの項目.</itemtag>
20680 \end_layout
20681
20682 \begin_layout LyX-Code
20683
20684 \family sans
20685 </tag>
20686 \end_layout
20687
20688 \begin_layout LyX-Code
20689
20690 \end_layout
20691
20692 \begin_layout LyX-Code
20693
20694 \family sans
20695 <tag attr=
20696 \begin_inset Quotes erd
20697 \end_inset
20698
20699 value
20700 \begin_inset Quotes erd
20701 \end_inset
20702
20703 >
20704 \end_layout
20705
20706 \begin_layout LyX-Code
20707
20708 \family sans
20709 <labeltag attr=
20710 \begin_inset Quotes erd
20711 \end_inset
20712
20713 value
20714 \begin_inset Quotes erd
20715 \end_inset
20716
20717 >リストのラベル</labeltag><itemtag attr=
20718 \begin_inset Quotes erd
20719 \end_inset
20720
20721 value
20722 \begin_inset Quotes erd
20723 \end_inset
20724
20725 >最初の項目.</itemtag>
20726 \end_layout
20727
20728 \begin_layout LyX-Code
20729
20730 \family sans
20731 <labeltag attr=
20732 \begin_inset Quotes erd
20733 \end_inset
20734
20735 value
20736 \begin_inset Quotes erd
20737 \end_inset
20738
20739 >リストのラベル</labeltag><itemtag attr=
20740 \begin_inset Quotes erd
20741 \end_inset
20742
20743 value
20744 \begin_inset Quotes erd
20745 \end_inset
20746
20747 >二つめの項目</itemtag>
20748 \end_layout
20749
20750 \begin_layout LyX-Code
20751
20752 \family sans
20753 </tag>
20754 \end_layout
20755
20756 \begin_layout Standard
20757 ここで
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 labeltag
20763 \end_layout
20764
20765 \end_inset
20766
20767
20768 \begin_inset Flex Code
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 itemtag
20773 \end_layout
20774
20775 \end_inset
20776
20777 の順序が違っていることに注意してください.どちらの順序になるかは,
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782 HTMLLabelFirst
20783 \end_layout
20784
20785 \end_inset
20786
20787 の設定に依存します.もし
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 HTMLLabelFirst
20793 \end_layout
20794
20795 \end_inset
20796
20797 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
20798 \end_layout
20799
20800 \begin_layout Standard
20801 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
20802 は適切な既定値を生成
20803 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
20804 でここにあるものと考えてください.
20805 \end_layout
20806
20807 \begin_layout Description
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 HTMLAttr
20813 \end_layout
20814
20815 \end_inset
20816
20817  [
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 文字列
20823 \end_layout
20824
20825 \end_inset
20826
20827 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 class=`mydiv'
20833 \end_layout
20834
20835 \end_inset
20836
20837 」のようなものです.既定においては,\SpecialChar LyX
20838 は「
20839 \begin_inset Flex Code
20840 status collapsed
20841
20842 \begin_layout Plain Layout
20843 class=`レイアウト名'
20844 \end_layout
20845
20846 \end_inset
20847
20848 」と出力します.ここで
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 レイアウト名
20854 \end_layout
20855
20856 \end_inset
20857
20858 は,レイアウトの\SpecialChar LyX
20859 名であり,chapterのように小文字で記述します.
20860 \end_layout
20861
20862 \begin_layout Description
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 HTMLForceCSS
20868 \end_layout
20869
20870 \end_inset
20871
20872  [
20873 \begin_inset Flex Code
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877
20878 \emph on
20879 0
20880 \emph default
20881 ,1
20882 \end_layout
20883
20884 \end_inset
20885
20886 ] 
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 HTMLStyle
20892 \end_layout
20893
20894 \end_inset
20895
20896 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
20897 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 1
20903 \end_layout
20904
20905 \end_inset
20906
20907 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 0
20913 \end_layout
20914
20915 \end_inset
20916
20917 です.
20918 \end_layout
20919
20920 \begin_layout Description
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 HTMLItem
20926 \end_layout
20927
20928 \end_inset
20929
20930  [
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 文字列
20936 \end_layout
20937
20938 \end_inset
20939
20940 ] 環境の段落に使用されるタグ.上記各例の
20941 \begin_inset Flex Code
20942 status collapsed
20943
20944 \begin_layout Plain Layout
20945 itemtag
20946 \end_layout
20947
20948 \end_inset
20949
20950 を置き換えます.既定値は
20951 \begin_inset Flex Code
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955 div
20956 \end_layout
20957
20958 \end_inset
20959
20960 です.
20961 \end_layout
20962
20963 \begin_layout Description
20964 \begin_inset Flex Code
20965 status collapsed
20966
20967 \begin_layout Plain Layout
20968 HTMLItemAttr
20969 \end_layout
20970
20971 \end_inset
20972
20973  [
20974 \begin_inset Flex Code
20975 status collapsed
20976
20977 \begin_layout Plain Layout
20978 文字列
20979 \end_layout
20980
20981 \end_inset
20982
20983 ] itemタグの属性.既定値は
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 class=`レイアウト名_item'
20989 \end_layout
20990
20991 \end_inset
20992
20993 です.ここには,様式情報は含まれては
20994 \emph on
20995 なりません
20996 \emph default
20997 .その目的のためには,
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 HTMLStyle
21003 \end_layout
21004
21005 \end_inset
21006
21007 を使用してください.
21008 \end_layout
21009
21010 \begin_layout Description
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 HTMLLabel
21016 \end_layout
21017
21018 \end_inset
21019
21020  [
21021 \begin_inset Flex Code
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 文字列
21026 \end_layout
21027
21028 \end_inset
21029
21030 ] 段落と項目ラベルに使用されるタグ.上記各例の
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035 labeltag
21036 \end_layout
21037
21038 \end_inset
21039
21040 を置き換えます.
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 LabelType
21046 \end_layout
21047
21048 \end_inset
21049
21050
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 Top_Environment
21056 \end_layout
21057
21058 \end_inset
21059
21060
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 Centered_Top_Environment
21066 \end_layout
21067
21068 \end_inset
21069
21070 の時は,既定値は
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 div
21076 \end_layout
21077
21078 \end_inset
21079
21080 ですが,それ以外の時の既定値は
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 span
21086 \end_layout
21087
21088 \end_inset
21089
21090 です.
21091 \end_layout
21092
21093 \begin_layout Description
21094 \begin_inset Flex Code
21095 status collapsed
21096
21097 \begin_layout Plain Layout
21098 HTMLLabelAttr
21099 \end_layout
21100
21101 \end_inset
21102
21103  [
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 文字列
21109 \end_layout
21110
21111 \end_inset
21112
21113 ] labelタグの属性.既定値は
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 class=`レイアウト名_label'
21119 \end_layout
21120
21121 \end_inset
21122
21123 です.ここには,様式情報は含まれては
21124 \emph on
21125 なりません
21126 \emph default
21127 .その目的のためには,
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 HTMLStyle
21133 \end_layout
21134
21135 \end_inset
21136
21137 を使用してください.
21138 \end_layout
21139
21140 \begin_layout Description
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 HTMLLabelFirst
21146 \end_layout
21147
21148 \end_inset
21149
21150  [
21151 \begin_inset Flex Code
21152 status collapsed
21153
21154 \begin_layout Plain Layout
21155
21156 \emph on
21157 0
21158 \emph default
21159 ,1
21160 \end_layout
21161
21162 \end_inset
21163
21164 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
21165 tion環境の中で,
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 `<dt>\SpecialChar ldots
21171 </dt><dd>\SpecialChar ldots
21172 </dd>
21173 \end_layout
21174
21175 \end_inset
21176
21177 という形を得るために使用されます.既定値は
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 0
21183 \end_layout
21184
21185 \end_inset
21186
21187 で,labelタグはitemタグの中に出力されます.
21188 \end_layout
21189
21190 \begin_layout Description
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 HTMLPreamble
21196 \end_layout
21197
21198 \end_inset
21199
21200  この様式が使用されたときに,
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 <head>
21206 \end_layout
21207
21208 \end_inset
21209
21210 セクションに出力される情報.これは,たとえば,
21211 \begin_inset Flex Code
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215 onclick
21216 \end_layout
21217
21218 \end_inset
21219
21220 ハンドラを定義するために
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 <script>
21226 \end_layout
21227
21228 \end_inset
21229
21230 ブロックをインクルードするのに使用することができます.
21231 \end_layout
21232
21233 \begin_layout Description
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 HTMLStyle
21239 \end_layout
21240
21241 \end_inset
21242
21243   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248 <style>
21249 \end_layout
21250
21251 \end_inset
21252
21253 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 EndHTMLStyle
21259 \end_layout
21260
21261 \end_inset
21262
21263 で閉じなくてはなりません.
21264 \end_layout
21265
21266 \begin_layout Description
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 HTMLTag
21272 \end_layout
21273
21274 \end_inset
21275
21276  [
21277 \begin_inset Flex Code
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281 文字列
21282 \end_layout
21283
21284 \end_inset
21285
21286 ] 主幹ラベルに使用されるタグ.上記各例の
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 tag
21292 \end_layout
21293
21294 \end_inset
21295
21296 を置き換えます.既定値は
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301 div
21302 \end_layout
21303
21304 \end_inset
21305
21306 です.
21307 \end_layout
21308
21309 \begin_layout Description
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 HTMLTitle
21315 \end_layout
21316
21317 \end_inset
21318
21319  [
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324
21325 \emph on
21326 0
21327 \emph default
21328 ,1
21329 \end_layout
21330
21331 \end_inset
21332
21333 ] この様式が,XHTMLファイルの
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 <title>
21339 \end_layout
21340
21341 \end_inset
21342
21343 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348 stdtitle.inc
21349 \end_layout
21350
21351 \end_inset
21352
21353 ファイルでは,
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 title
21359 \end_layout
21360
21361 \end_inset
21362
21363 環境のこの項目を真に設定しています.
21364 \end_layout
21365
21366 \begin_layout Subsection
21367 差込枠レイアウトXHTML
21368 \end_layout
21369
21370 \begin_layout Standard
21371 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
21372 \begin_inset Foot
21373 status collapsed
21374
21375 \begin_layout Plain Layout
21376 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
21377 ん.
21378 \end_layout
21379
21380 \end_inset
21381
21382 .ここでも,\SpecialChar LyX
21383 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
21384 \end_layout
21385
21386 \begin_layout Standard
21387 \SpecialChar LyX
21388 が差込枠用に出力するXHTMLは,以下の形を取ります.
21389 \end_layout
21390
21391 \begin_layout LyX-Code
21392 <tag attr=
21393 \begin_inset Quotes erd
21394 \end_inset
21395
21396 value
21397 \begin_inset Quotes erd
21398 \end_inset
21399
21400 >
21401 \end_layout
21402
21403 \begin_layout LyX-Code
21404 <labeltag>ラベル</labeltag>
21405 \end_layout
21406
21407 \begin_layout LyX-Code
21408 <innertag attr=
21409 \begin_inset Quotes erd
21410 \end_inset
21411
21412 value
21413 \begin_inset Quotes erd
21414 \end_inset
21415
21416 >差込枠の内容.</innertag>
21417 \end_layout
21418
21419 \begin_layout LyX-Code
21420 </tag>
21421 \end_layout
21422
21423 \begin_layout Standard
21424 差込枠が多段落を許可している—つまり
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 MultiPar
21430 \end_layout
21431
21432 \end_inset
21433
21434 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
21435 labelタグは省略され,ラベルがあれば,現在のところ,つねに
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 span
21441 \end_layout
21442
21443 \end_inset
21444
21445 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
21446 す.
21447 \end_layout
21448
21449 \begin_layout Description
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 HTMLAttr
21455 \end_layout
21456
21457 \end_inset
21458
21459  [
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 文字列
21465 \end_layout
21466
21467 \end_inset
21468
21469 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21470 \begin_inset Flex Code
21471 status collapsed
21472
21473 \begin_layout Plain Layout
21474 class=`myinset' onclick=`\SpecialChar ldots
21475 '
21476 \end_layout
21477
21478 \end_inset
21479
21480 」のようなものです.既定においては,\SpecialChar LyX
21481 は「
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 class=`差込枠名'
21487 \end_layout
21488
21489 \end_inset
21490
21491 」と出力します.ここで
21492 \begin_inset Flex Code
21493 status collapsed
21494
21495 \begin_layout Plain Layout
21496 差込枠名
21497 \end_layout
21498
21499 \end_inset
21500
21501 は,差込枠の\SpecialChar LyX
21502 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
21503 \end_layout
21504
21505 \begin_layout Description
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 HTMLForceCSS
21511 \end_layout
21512
21513 \end_inset
21514
21515  [
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520
21521 \emph on
21522 0
21523 \emph default
21524 ,1
21525 \end_layout
21526
21527 \end_inset
21528
21529 ] 
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 HTMLStyle
21535 \end_layout
21536
21537 \end_inset
21538
21539 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
21540 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 1
21546 \end_layout
21547
21548 \end_inset
21549
21550 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 0
21556 \end_layout
21557
21558 \end_inset
21559
21560 です.
21561 \end_layout
21562
21563 \begin_layout Description
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 HTMLInnerAttr
21569 \end_layout
21570
21571 \end_inset
21572
21573  [
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 文字列
21579 \end_layout
21580
21581 \end_inset
21582
21583 ] innerタグの属性.既定値は
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588 class=`差込枠名_inner'
21589 \end_layout
21590
21591 \end_inset
21592
21593 です.
21594 \end_layout
21595
21596 \begin_layout Description
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601 HTMLInnerTag
21602 \end_layout
21603
21604 \end_inset
21605
21606  [
21607 \begin_inset Flex Code
21608 status collapsed
21609
21610 \begin_layout Plain Layout
21611 文字列
21612 \end_layout
21613
21614 \end_inset
21615
21616 ] innerタグです.上記各例の
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 innertag
21622 \end_layout
21623
21624 \end_inset
21625
21626 を置き換えます.既定値はなしです.
21627 \end_layout
21628
21629 \begin_layout Description
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 HTMLIsBlock
21635 \end_layout
21636
21637 \end_inset
21638
21639  [
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 0,
21645 \emph on
21646 1
21647 \end_layout
21648
21649 \end_inset
21650
21651 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
21652 \end_layout
21653
21654 \begin_layout Description
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 HTMLLabel
21660 \end_layout
21661
21662 \end_inset
21663
21664  [
21665 \begin_inset Flex Code
21666 status collapsed
21667
21668 \begin_layout Plain Layout
21669 文字列
21670 \end_layout
21671
21672 \end_inset
21673
21674 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679
21680 \backslash
21681 arabic{footnote}
21682 \end_layout
21683
21684 \end_inset
21685
21686 など.これは非必須であり,既定値はありません.
21687 \end_layout
21688
21689 \begin_layout Description
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 HTMLPreamble
21695 \end_layout
21696
21697 \end_inset
21698
21699  この様式が使用されたときに,
21700 \begin_inset Flex Code
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 <head>
21705 \end_layout
21706
21707 \end_inset
21708
21709 セクションに出力される情報.これは,たとえば,
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 onclick
21715 \end_layout
21716
21717 \end_inset
21718
21719 ハンドラを定義するために
21720 \begin_inset Flex Code
21721 status collapsed
21722
21723 \begin_layout Plain Layout
21724 <script>
21725 \end_layout
21726
21727 \end_inset
21728
21729 ブロックをインクルードするのに使用することができます.
21730 \end_layout
21731
21732 \begin_layout Description
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 HTMLStyle
21738 \end_layout
21739
21740 \end_inset
21741
21742   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 <style>
21748 \end_layout
21749
21750 \end_inset
21751
21752 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21753 \end_layout
21754
21755 \begin_layout Description
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 HTMLTag
21761 \end_layout
21762
21763 \end_inset
21764
21765  [
21766 \begin_inset Flex Code
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 文字列
21771 \end_layout
21772
21773 \end_inset
21774
21775 ] 主幹ラベルに使用されるタグ.上記各例の
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 tag
21781 \end_layout
21782
21783 \end_inset
21784
21785 を置き換えます.既定値は
21786 \begin_inset Flex Code
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790 MultiPar
21791 \end_layout
21792
21793 \end_inset
21794
21795 の設定に依存し,
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 MultiPar
21801 \end_layout
21802
21803 \end_inset
21804
21805 が真ならば
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 div
21811 \end_layout
21812
21813 \end_inset
21814
21815 ,偽ならば
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 span
21821 \end_layout
21822
21823 \end_inset
21824
21825 です.
21826 \end_layout
21827
21828 \begin_layout Subsection
21829 フロートXHTML
21830 \end_layout
21831
21832 \begin_layout Standard
21833 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
21834 \end_layout
21835
21836 \begin_layout LyX-Code
21837 <tag attr=
21838 \begin_inset Quotes erd
21839 \end_inset
21840
21841 value
21842 \begin_inset Quotes erd
21843 \end_inset
21844
21845 >
21846 \end_layout
21847
21848 \begin_layout LyX-Code
21849 フロートの内容.
21850 \end_layout
21851
21852 \begin_layout LyX-Code
21853 </tag>
21854 \end_layout
21855
21856 \begin_layout Standard
21857 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
21858 きます.
21859 \end_layout
21860
21861 \begin_layout Description
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866 HTMLAttr
21867 \end_layout
21868
21869 \end_inset
21870
21871  [
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 文字列
21877 \end_layout
21878
21879 \end_inset
21880
21881 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886 class=`myfloat' onclick=`\SpecialChar ldots
21887 '
21888 \end_layout
21889
21890 \end_inset
21891
21892 」のようなものです.既定においては,\SpecialChar LyX
21893 は「
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 class=`float フロート-フロート型'
21899 \end_layout
21900
21901 \end_inset
21902
21903 」と出力します.ここで
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 フロート型
21909 \end_layout
21910
21911 \end_inset
21912
21913 は,フロート宣言で定義された(
21914 \begin_inset CommandInset ref
21915 LatexCommand ref
21916 reference "subsec:フロート"
21917
21918 \end_inset
21919
21920 参照),この型のフロートの\SpecialChar LyX
21921 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
21922 \end_layout
21923
21924 \begin_layout Description
21925 \begin_inset Flex Code
21926 status collapsed
21927
21928 \begin_layout Plain Layout
21929 HTMLStyle
21930 \end_layout
21931
21932 \end_inset
21933
21934   このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21935 \begin_inset Flex Code
21936 status collapsed
21937
21938 \begin_layout Plain Layout
21939 <style>
21940 \end_layout
21941
21942 \end_inset
21943
21944 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21945 \end_layout
21946
21947 \begin_layout Description
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952 HTMLTag
21953 \end_layout
21954
21955 \end_inset
21956
21957  [
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962 文字列
21963 \end_layout
21964
21965 \end_inset
21966
21967 ] このフロートに使用されるタグ.上記各例の
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 tag
21973 \end_layout
21974
21975 \end_inset
21976
21977 を置き換えます.既定値は
21978 \begin_inset Flex Code
21979 status collapsed
21980
21981 \begin_layout Plain Layout
21982 div
21983 \end_layout
21984
21985 \end_inset
21986
21987 であり,ほとんどの場合変更する必要はありません.
21988 \end_layout
21989
21990 \begin_layout Subsection
21991 書誌情報の整形
21992 \end_layout
21993
21994 \begin_layout Standard
21995 書誌情報は,
21996 \begin_inset Flex Code
21997 status collapsed
21998
21999 \begin_layout Plain Layout
22000 CiteFormat
22001 \end_layout
22002
22003 \end_inset
22004
22005 ブロックを使用して整形することができます.詳細については,
22006 \begin_inset CommandInset ref
22007 LatexCommand ref
22008 reference "subsec:引用書式指定"
22009
22010 \end_inset
22011
22012 を参照してください.
22013 \end_layout
22014
22015 \begin_layout Subsection
22016 \SpecialChar LyX
22017 が生成したCSS
22018 \end_layout
22019
22020 \begin_layout Standard
22021 \SpecialChar LyX
22022 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
22023
22024 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
22025 \end_layout
22026
22027 \begin_layout Standard
22028 \SpecialChar LyX
22029 は,現在のところ,
22030 \begin_inset Flex Code
22031 status collapsed
22032
22033 \begin_layout Plain Layout
22034 Font
22035 \end_layout
22036
22037 \end_inset
22038
22039 宣言で指定されている
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 Family
22045 \end_layout
22046
22047 \end_inset
22048
22049
22050 \begin_inset Flex Code
22051 status collapsed
22052
22053 \begin_layout Plain Layout
22054 Series
22055 \end_layout
22056
22057 \end_inset
22058
22059
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064 Shape
22065 \end_layout
22066
22067 \end_inset
22068
22069
22070 \begin_inset Flex Code
22071 status collapsed
22072
22073 \begin_layout Plain Layout
22074 Size
22075 \end_layout
22076
22077 \end_inset
22078
22079 を利用して,フォント情報についてのみCSSを自動生成します(
22080 \begin_inset CommandInset ref
22081 LatexCommand ref
22082 reference "subsec:フォント指定"
22083
22084 \end_inset
22085
22086 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
22087 \begin_inset Flex Code
22088 status collapsed
22089
22090 \begin_layout Plain Layout
22091 Family Sans
22092 \end_layout
22093
22094 \end_inset
22095
22096 」は「
22097 \begin_inset Flex Code
22098 status collapsed
22099
22100 \begin_layout Plain Layout
22101 font-family: sans-serif
22102 \end_layout
22103
22104 \end_inset
22105
22106 」になります.\SpecialChar LyX
22107 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
22108 \begin_inset Flex URL
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112
22113 src/FontInfo.cpp
22114 \end_layout
22115
22116 \end_inset
22117
22118
22119 \begin_inset Flex Code
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123 getSizeCSS()
22124 \end_layout
22125
22126 \end_inset
22127
22128 関数をご覧ください.
22129 \end_layout
22130
22131 \begin_layout Chapter
22132 外部素材を取り込む
22133 \begin_inset CommandInset label
22134 LatexCommand label
22135 name "chap:外部素材を取り込む"
22136
22137 \end_inset
22138
22139
22140 \end_layout
22141
22142 \begin_layout Standard
22143 \begin_inset Box Shadowbox
22144 position "t"
22145 hor_pos "c"
22146 has_inner_box 1
22147 inner_pos "t"
22148 use_parbox 0
22149 use_makebox 0
22150 width "100col%"
22151 special "none"
22152 height "1in"
22153 height_special "totalheight"
22154 thickness "0.4pt"
22155 separation "3pt"
22156 shadowsize "4pt"
22157 framecolor "black"
22158 backgroundcolor "none"
22159 status open
22160
22161 \begin_layout Plain Layout
22162 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
22163 \end_layout
22164
22165 \end_inset
22166
22167
22168 \end_layout
22169
22170 \begin_layout Standard
22171 \SpecialChar LyX
22172 外部のソースから素材を使用する方法は,取扱説明書『
22173 \emph on
22174 埋込オブジェクト篇
22175 \emph default
22176 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
22177 \end_layout
22178
22179 \begin_layout Section
22180 どのように機能するのか
22181 \end_layout
22182
22183 \begin_layout Standard
22184 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
22185 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
22186 は,Xfigの図や,様々
22187 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
22188 \begin_inset Flex MenuItem
22189 status collapsed
22190
22191 \begin_layout Plain Layout
22192 挿入\SpecialChar menuseparator
22193 ファイル\SpecialChar menuseparator
22194 外部素材
22195 \end_layout
22196
22197 \end_inset
22198
22199 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
22200 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
22201 の後の版に取り込むことができるようにしてくださることを希望します.
22202 \end_layout
22203
22204 \begin_layout Standard
22205 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
22206 いることです.たとえば,
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 Xfig
22212 \end_layout
22213
22214 \end_inset
22215
22216 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
22217 \begin_inset Flex Code
22218 status collapsed
22219
22220 \begin_layout Plain Layout
22221 .fig
22222 \end_layout
22223
22224 \end_inset
22225
22226 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
22227 \begin_inset Flex Code
22228 status collapsed
22229
22230 \begin_layout Plain Layout
22231 fig
22232 \end_layout
22233
22234 \end_inset
22235
22236 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
22237 ファイルにそのままインクルードできるように,
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242 transfig
22243 \end_layout
22244
22245 \end_inset
22246
22247 を呼び出してPostScriptファイルを生成します.この場合には,
22248 \begin_inset Flex Code
22249 status collapsed
22250
22251 \begin_layout Plain Layout
22252 .fig
22253 \end_layout
22254
22255 \end_inset
22256
22257 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
22258 \end_layout
22259
22260 \begin_layout Standard
22261 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
22262 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
22263 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
22264 の外部素材マネジメントは
22265 ,\SpecialChar LyX
22266 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
22267 \end_layout
22268
22269 \begin_layout Standard
22270 \SpecialChar LyX
22271 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
22272 の場合には,\SpecialChar LyX
22273 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
22274 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
22275 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
22276 できるようになるのです.
22277 \end_layout
22278
22279 \begin_layout Section
22280 外用ひな型設定ファイル
22281 \end_layout
22282
22283 \begin_layout Standard
22284 \SpecialChar LyX
22285 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
22286 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
22287 \begin_inset CommandInset ref
22288 LatexCommand ref
22289 reference "sec:セキュリティに関する論点"
22290
22291 \end_inset
22292
22293 のセキュリティに関する議論を読んでおいてください.
22294 \end_layout
22295
22296 \begin_layout Standard
22297 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
22298 \end_layout
22299
22300 \begin_layout Standard
22301 外用ひな型ファイルは,
22302 \begin_inset Flex Code
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 LyXDir/lib/xtemplates/
22307 \end_layout
22308
22309 \end_inset
22310
22311 ディレクトリ中にある
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316 *.xtemplate
22317 \end_layout
22318
22319 \end_inset
22320
22321 ファイルに定義されています.各ひな型は,そのファイル完結で定義されています.自分専用のひな型を
22322 \begin_inset Flex Code
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326 UserDir/xtemplates/
22327 \end_layout
22328
22329 \end_inset
22330
22331 に置くこともできますし,既存のひな型をそのデイレク取りにコピーして修正を加えることもできます.
22332 \end_layout
22333
22334 \begin_layout Standard
22335 典型的なひな型は以下のようになります.
22336 \end_layout
22337
22338 \begin_layout LyX-Code
22339 Template XFig
22340 \end_layout
22341
22342 \begin_layout LyX-Code
22343 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22344 \end_layout
22345
22346 \begin_layout LyX-Code
22347 HelpText
22348 \end_layout
22349
22350 \begin_layout LyX-Code
22351 An XFig figure.
22352 \end_layout
22353
22354 \begin_layout LyX-Code
22355 HelpTextEnd
22356 \end_layout
22357
22358 \begin_layout LyX-Code
22359 InputFormat fig
22360 \end_layout
22361
22362 \begin_layout LyX-Code
22363 FileFilter "*.fig"
22364 \end_layout
22365
22366 \begin_layout LyX-Code
22367 AutomaticProduction true
22368 \end_layout
22369
22370 \begin_layout LyX-Code
22371 Transform Rotate
22372 \end_layout
22373
22374 \begin_layout LyX-Code
22375 Transform Resize
22376 \end_layout
22377
22378 \begin_layout LyX-Code
22379 Format LaTeX
22380 \end_layout
22381
22382 \begin_layout LyX-Code
22383 TransformCommand Rotate RotationLatexCommand
22384 \end_layout
22385
22386 \begin_layout LyX-Code
22387 TransformCommand Resize ResizeLatexCommand
22388 \end_layout
22389
22390 \begin_layout LyX-Code
22391 Product "$$RotateFront$$ResizeFront
22392 \end_layout
22393
22394 \begin_layout LyX-Code
22395          
22396 \backslash
22397
22398 \backslash
22399 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22400 \end_layout
22401
22402 \begin_layout LyX-Code
22403          $$ResizeBack$$RotateBack"
22404 \end_layout
22405
22406 \begin_layout LyX-Code
22407 UpdateFormat pstex
22408 \end_layout
22409
22410 \begin_layout LyX-Code
22411 UpdateResult "$$AbsPath$$Basename.pstex_t"
22412 \end_layout
22413
22414 \begin_layout LyX-Code
22415 Requirement "graphicx"
22416 \end_layout
22417
22418 \begin_layout LyX-Code
22419 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22420 \end_layout
22421
22422 \begin_layout LyX-Code
22423 ReferencedFile latex "$$AbsPath$$Basename.eps"
22424 \end_layout
22425
22426 \begin_layout LyX-Code
22427 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22428 \end_layout
22429
22430 \begin_layout LyX-Code
22431 FormatEnd
22432 \end_layout
22433
22434 \begin_layout LyX-Code
22435 Format PDFLaTeX
22436 \end_layout
22437
22438 \begin_layout LyX-Code
22439 TransformCommand Rotate RotationLatexCommand
22440 \end_layout
22441
22442 \begin_layout LyX-Code
22443 TransformCommand Resize ResizeLatexCommand
22444 \end_layout
22445
22446 \begin_layout LyX-Code
22447 Product "$$RotateFront$$ResizeFront
22448 \end_layout
22449
22450 \begin_layout LyX-Code
22451          
22452 \backslash
22453
22454 \backslash
22455 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22456 \end_layout
22457
22458 \begin_layout LyX-Code
22459          $$ResizeBack$$RotateBack"
22460 \end_layout
22461
22462 \begin_layout LyX-Code
22463 UpdateFormat pdftex
22464 \end_layout
22465
22466 \begin_layout LyX-Code
22467 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22468 \end_layout
22469
22470 \begin_layout LyX-Code
22471 Requirement "graphicx"
22472 \end_layout
22473
22474 \begin_layout LyX-Code
22475 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22476 \end_layout
22477
22478 \begin_layout LyX-Code
22479 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22480 \end_layout
22481
22482 \begin_layout LyX-Code
22483 FormatEnd
22484 \end_layout
22485
22486 \begin_layout LyX-Code
22487 Format Ascii
22488 \end_layout
22489
22490 \begin_layout LyX-Code
22491 Product "$$Contents(
22492 \backslash
22493 "$$AbsPath$$Basename.asc
22494 \backslash
22495 ")"
22496 \end_layout
22497
22498 \begin_layout LyX-Code
22499 UpdateFormat asciixfig
22500 \end_layout
22501
22502 \begin_layout LyX-Code
22503 UpdateResult "$$AbsPath$$Basename.asc"
22504 \end_layout
22505
22506 \begin_layout LyX-Code
22507 FormatEnd
22508 \end_layout
22509
22510 \begin_layout LyX-Code
22511 Format DocBook
22512 \end_layout
22513
22514 \begin_layout LyX-Code
22515 Product "<graphic fileref=
22516 \backslash
22517 "$$AbsOrRelPathMaster$$Basename.eps
22518 \backslash
22519 ">
22520 \end_layout
22521
22522 \begin_layout LyX-Code
22523          </graphic>"
22524 \end_layout
22525
22526 \begin_layout LyX-Code
22527 UpdateFormat eps
22528 \end_layout
22529
22530 \begin_layout LyX-Code
22531 UpdateResult "$$AbsPath$$Basename.eps"
22532 \end_layout
22533
22534 \begin_layout LyX-Code
22535 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22536 \end_layout
22537
22538 \begin_layout LyX-Code
22539 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22540 \end_layout
22541
22542 \begin_layout LyX-Code
22543 FormatEnd
22544 \end_layout
22545
22546 \begin_layout LyX-Code
22547 Product "[XFig: $$FName]"
22548 \end_layout
22549
22550 \begin_layout LyX-Code
22551 FormatEnd
22552 \end_layout
22553
22554 \begin_layout LyX-Code
22555 TemplateEnd
22556 \end_layout
22557
22558 \begin_layout Standard
22559 ご覧の通り,ひな型は
22560 \begin_inset Flex Code
22561 status collapsed
22562
22563 \begin_layout Plain Layout
22564 Template
22565 \end_layout
22566
22567 \end_inset
22568
22569  \SpecialChar ldots
22570  
22571 \begin_inset Flex Code
22572 status collapsed
22573
22574 \begin_layout Plain Layout
22575 TemplateEnd
22576 \end_layout
22577
22578 \end_inset
22579
22580 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 Format
22586 \end_layout
22587
22588 \end_inset
22589
22590  \SpecialChar ldots
22591  
22592 \begin_inset Flex Code
22593 status collapsed
22594
22595 \begin_layout Plain Layout
22596 FormatEnd
22597 \end_layout
22598
22599 \end_inset
22600
22601 部があります.
22602 \end_layout
22603
22604 \begin_layout Subsection
22605 ひな型のヘッダ
22606 \end_layout
22607
22608 \begin_layout Description
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613 AutomaticProduction
22614 \begin_inset space ~
22615 \end_inset
22616
22617 true|false
22618 \end_layout
22619
22620 \end_inset
22621
22622  このひな型で扱うファイルを\SpecialChar LyX
22623 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
22624 \end_layout
22625
22626 \begin_layout Description
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 FileFilter
22632 \begin_inset space ~
22633 \end_inset
22634
22635 <パターン>
22636 \end_layout
22637
22638 \end_inset
22639
22640  望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
22641 \begin_inset Flex Code
22642 status collapsed
22643
22644 \begin_layout Plain Layout
22645 .obj
22646 \end_layout
22647
22648 \end_inset
22649
22650
22651 \begin_inset Flex Code
22652 status collapsed
22653
22654 \begin_layout Plain Layout
22655 .tgo
22656 \end_layout
22657
22658 \end_inset
22659
22660 があります),「
22661 \begin_inset Flex Code
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 *.{obj,tgo}
22666 \end_layout
22667
22668 \end_inset
22669
22670 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
22671 \end_layout
22672
22673 \begin_layout Description
22674 \begin_inset Flex Code
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678 GuiName
22679 \begin_inset space ~
22680 \end_inset
22681
22682 <GUI名>
22683 \end_layout
22684
22685 \end_inset
22686
22687  この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
22688 \end_layout
22689
22690 \begin_layout Description
22691 \begin_inset Flex Code
22692 status collapsed
22693
22694 \begin_layout Plain Layout
22695 HelpText
22696 \begin_inset space ~
22697 \end_inset
22698
22699 <文章>
22700 \begin_inset space ~
22701 \end_inset
22702
22703 HelpTextEnd
22704 \end_layout
22705
22706 \end_inset
22707
22708  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
22709 ず現れなくてはなりません.
22710 \end_layout
22711
22712 \begin_layout Description
22713 \begin_inset Flex Code
22714 status collapsed
22715
22716 \begin_layout Plain Layout
22717 InputFormat
22718 \begin_inset space ~
22719 \end_inset
22720
22721 <書式>
22722 \end_layout
22723
22724 \end_inset
22725
22726  オリジナルファイルのファイル形式.これは,\SpecialChar LyX
22727 が知っている書式名でなくてはなりません(
22728 \begin_inset CommandInset ref
22729 LatexCommand ref
22730 reference "sec:ファイル形式"
22731
22732 \end_inset
22733
22734 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
22735 \begin_inset Flex Code
22736 status collapsed
22737
22738 \begin_layout Plain Layout
22739 *
22740 \end_layout
22741
22742 \end_inset
22743
22744 」を使用してください.この場合,\SpecialChar LyX
22745 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
22746 \end_layout
22747
22748 \begin_layout Description
22749 \begin_inset Flex Code
22750 status collapsed
22751
22752 \begin_layout Plain Layout
22753 Template
22754 \begin_inset space ~
22755 \end_inset
22756
22757 <ID>
22758 \end_layout
22759
22760 \end_inset
22761
22762  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
22763 \end_layout
22764
22765 \begin_layout Description
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770 Transform
22771 \begin_inset space ~
22772 \end_inset
22773
22774 Rotate|Resize|Clip|Extra
22775 \end_layout
22776
22777 \end_inset
22778
22779  このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
22780 ログ中の対応するタブを使用可能にします.
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 Transform
22786 \end_layout
22787
22788 \end_inset
22789
22790 コマンド一つずつに応じて,
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 Format
22796 \end_layout
22797
22798 \end_inset
22799
22800 部に,対応する
22801 \begin_inset Flex Code
22802 status collapsed
22803
22804 \begin_layout Plain Layout
22805 TransformCommand
22806 \end_layout
22807
22808 \end_inset
22809
22810 コマンドか
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 TransformOption
22816 \end_layout
22817
22818 \end_inset
22819
22820 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
22821 \end_layout
22822
22823 \begin_layout Subsection
22824 \begin_inset Flex Code
22825 status collapsed
22826
22827 \begin_layout Plain Layout
22828 Format
22829 \end_layout
22830
22831 \end_inset
22832
22833
22834 \end_layout
22835
22836 \begin_layout Description
22837 \begin_inset Flex Code
22838 status collapsed
22839
22840 \begin_layout Plain Layout
22841 Format
22842 \begin_inset space ~
22843 \end_inset
22844
22845 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
22846 \end_layout
22847
22848 \end_inset
22849
22850  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
22851 \begin_inset Flex Code
22852 status collapsed
22853
22854 \begin_layout Plain Layout
22855 Format
22856 \end_layout
22857
22858 \end_inset
22859
22860 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
22861 ようになります.
22862 \end_layout
22863
22864 \begin_layout Description
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 Option
22870 \begin_inset space ~
22871 \end_inset
22872
22873 <名称>
22874 \begin_inset space ~
22875 \end_inset
22876
22877 <値>
22878 \end_layout
22879
22880 \end_inset
22881
22882  このコマンドは,
22883 \begin_inset Flex Code
22884 status collapsed
22885
22886 \begin_layout Plain Layout
22887 Product
22888 \end_layout
22889
22890 \end_inset
22891
22892 での代入に使うマクロ
22893 \begin_inset Flex Code
22894 status collapsed
22895
22896 \begin_layout Plain Layout
22897 $$<名称>
22898 \end_layout
22899
22900 \end_inset
22901
22902 を新たに定義します.
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907 <値>
22908 \end_layout
22909
22910 \end_inset
22911
22912 自体にも代入マクロを使うことができます.
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917 Product
22918 \end_layout
22919
22920 \end_inset
22921
22922
22923 \begin_inset Flex Code
22924 status collapsed
22925
22926 \begin_layout Plain Layout
22927 <値>
22928 \end_layout
22929
22930 \end_inset
22931
22932 を直接使用するよりも優れた点は,
22933 \begin_inset Flex Code
22934 status collapsed
22935
22936 \begin_layout Plain Layout
22937 $$<名称>
22938 \end_layout
22939
22940 \end_inset
22941
22942 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
22943 \end_layout
22944
22945 \begin_layout Description
22946 \begin_inset Flex Code
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950 Product
22951 \begin_inset space ~
22952 \end_inset
22953
22954 <文>
22955 \end_layout
22956
22957 \end_inset
22958
22959  書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
22960
22961 \end_layout
22962
22963 \begin_layout Description
22964 \begin_inset Flex Code
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968 Preamble
22969 \begin_inset space ~
22970 \end_inset
22971
22972 <名称>
22973 \end_layout
22974
22975 \end_inset
22976
22977  このコマンドは,\SpecialChar LaTeX
22978 プリアンブルに入れるプリアンブル片を指定します.これは
22979 \begin_inset Flex Code
22980 status collapsed
22981
22982 \begin_layout Plain Layout
22983 PreambleDef
22984 \end_layout
22985
22986 \end_inset
22987
22988  \SpecialChar ldots
22989  
22990 \begin_inset Flex Code
22991 status collapsed
22992
22993 \begin_layout Plain Layout
22994 PreambleDefEnd
22995 \end_layout
22996
22997 \end_inset
22998
22999 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
23000 \end_layout
23001
23002 \begin_layout Description
23003 \begin_inset Flex Code
23004 status collapsed
23005
23006 \begin_layout Plain Layout
23007 ReferencedFile
23008 \begin_inset space ~
23009 \end_inset
23010
23011 <書式>
23012 \begin_inset space ~
23013 \end_inset
23014
23015 <ファイル名>
23016 \end_layout
23017
23018 \end_inset
23019
23020  このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
23021 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
23022 \end_layout
23023
23024 \begin_layout Description
23025 \begin_inset Flex Code
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029 Requirement
23030 \begin_inset space ~
23031 \end_inset
23032
23033 <package>
23034 \end_layout
23035
23036 \end_inset
23037
23038  必要とされる\SpecialChar LaTeX
23039 パッケージ名.パッケージは,\SpecialChar LaTeX
23040 プリアンブル中で
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045
23046 \backslash
23047 usepackage{}
23048 \end_layout
23049
23050 \end_inset
23051
23052 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
23053 \end_layout
23054
23055 \begin_layout Description
23056 \begin_inset Flex Code
23057 status collapsed
23058
23059 \begin_layout Plain Layout
23060 TransformCommand
23061 \begin_inset space ~
23062 \end_inset
23063
23064 Rotate
23065 \begin_inset space ~
23066 \end_inset
23067
23068 RotationLatexCommand
23069 \end_layout
23070
23071 \end_inset
23072
23073  このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
23074 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23075 \end_layout
23076
23077 \begin_layout Description
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 TransformCommand
23083 \begin_inset space ~
23084 \end_inset
23085
23086 Resize
23087 \begin_inset space ~
23088 \end_inset
23089
23090 ResizeLatexCommand
23091 \end_layout
23092
23093 \end_inset
23094
23095  このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
23096 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23097 \end_layout
23098
23099 \begin_layout Description
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 TransformOption
23105 \begin_inset space ~
23106 \end_inset
23107
23108 Rotate
23109 \begin_inset space ~
23110 \end_inset
23111
23112 RotationLatexOption
23113 \end_layout
23114
23115 \end_inset
23116
23117  このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23118 \end_layout
23119
23120 \begin_layout Description
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 TransformOption
23126 \begin_inset space ~
23127 \end_inset
23128
23129 Resize
23130 \begin_inset space ~
23131 \end_inset
23132
23133 ResizeLatexOption
23134 \end_layout
23135
23136 \end_inset
23137
23138  このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23139 \end_layout
23140
23141 \begin_layout Description
23142 \begin_inset Flex Code
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146 TransformOption
23147 \begin_inset space ~
23148 \end_inset
23149
23150 Clip
23151 \begin_inset space ~
23152 \end_inset
23153
23154 ClipLatexOption
23155 \end_layout
23156
23157 \end_inset
23158
23159  このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23160 \end_layout
23161
23162 \begin_layout Description
23163 \begin_inset Flex Code
23164 status collapsed
23165
23166 \begin_layout Plain Layout
23167 TransformOption
23168 \begin_inset space ~
23169 \end_inset
23170
23171 Extra
23172 \begin_inset space ~
23173 \end_inset
23174
23175 ExtraLatexOption
23176 \end_layout
23177
23178 \end_inset
23179
23180  このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
23181 \end_layout
23182
23183 \begin_layout Description
23184 \begin_inset Flex Code
23185 status collapsed
23186
23187 \begin_layout Plain Layout
23188 UpdateFormat
23189 \begin_inset space ~
23190 \end_inset
23191
23192 <書式>
23193 \end_layout
23194
23195 \end_inset
23196
23197  変換されたファイルのファイル形式.これは,\SpecialChar LyX
23198 が知っている書式名でなくてはなりません(
23199 \begin_inset Flex MenuItem
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203 ツール\SpecialChar menuseparator
23204 設定\SpecialChar menuseparator
23205 ファイル処理\SpecialChar menuseparator
23206 ファイル書式
23207 \end_layout
23208
23209 \end_inset
23210
23211 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
23212 \begin_inset Flex Code
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216 pdf6
23217 \end_layout
23218
23219 \end_inset
23220
23221 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
23222 \end_layout
23223
23224 \begin_layout Description
23225 \begin_inset Flex Code
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 UpdateResult
23230 \begin_inset space ~
23231 \end_inset
23232
23233 <ファイル名>
23234 \end_layout
23235
23236 \end_inset
23237
23238  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
23239 \end_layout
23240
23241 \begin_layout Subsection
23242 プリアンブルの定義
23243 \end_layout
23244
23245 \begin_layout Standard
23246 外用ひな型設定ファイルには,
23247 \begin_inset Flex Code
23248 status collapsed
23249
23250 \begin_layout Plain Layout
23251 PreambleDef
23252 \end_layout
23253
23254 \end_inset
23255
23256  \SpecialChar ldots
23257  
23258 \begin_inset Flex Code
23259 status collapsed
23260
23261 \begin_layout Plain Layout
23262 PreambleDefEnd
23263 \end_layout
23264
23265 \end_inset
23266
23267 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
23268 \begin_inset Flex Code
23269 status collapsed
23270
23271 \begin_layout Plain Layout
23272 Format
23273 \end_layout
23274
23275 \end_inset
23276
23277 部で使用することができます.
23278 \end_layout
23279
23280 \begin_layout Section
23281 代入機構
23282 \end_layout
23283
23284 \begin_layout Standard
23285 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
23286 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
23287 \end_layout
23288
23289 \begin_layout Standard
23290 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
23291 \end_layout
23292
23293 \begin_layout Standard
23294 使用できるマクロは以下の通りです.
23295 \end_layout
23296
23297 \begin_layout Description
23298 \begin_inset Flex Code
23299 status collapsed
23300
23301 \begin_layout Plain Layout
23302 $$AbsOrRelPathMaster
23303 \end_layout
23304
23305 \end_inset
23306
23307  \SpecialChar LyX
23308 親文書への絶対ファイルパスないしは相対ファイルパス
23309 \end_layout
23310
23311 \begin_layout Description
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316 $$AbsOrRelPathParent
23317 \end_layout
23318
23319 \end_inset
23320
23321  \SpecialChar LyX
23322 文書への絶対ファイルパスないしは相対ファイルパス
23323 \end_layout
23324
23325 \begin_layout Description
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330 $$AbsPath
23331 \end_layout
23332
23333 \end_inset
23334
23335  絶対ファイルパス
23336 \end_layout
23337
23338 \begin_layout Description
23339 \begin_inset Flex Code
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343 $$Basename
23344 \end_layout
23345
23346 \end_inset
23347
23348  パスおよび拡張子を除いたファイル名
23349 \end_layout
23350
23351 \begin_layout Description
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 $$Contents(
23357 \begin_inset Quotes eld
23358 \end_inset
23359
23360 filename.ext
23361 \begin_inset Quotes erd
23362 \end_inset
23363
23364 )
23365 \end_layout
23366
23367 \end_inset
23368
23369  このマクロは,
23370 \begin_inset Flex Code
23371 status collapsed
23372
23373 \begin_layout Plain Layout
23374 filename.ext
23375 \end_layout
23376
23377 \end_inset
23378
23379 と云う名のファイルの中身を展開します.
23380 \end_layout
23381
23382 \begin_layout Description
23383 \begin_inset Flex Code
23384 status collapsed
23385
23386 \begin_layout Plain Layout
23387 $$Extension
23388 \end_layout
23389
23390 \end_inset
23391
23392  ファイル拡張子(点を含む)
23393 \end_layout
23394
23395 \begin_layout Description
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 $$pngOrjpg
23401 \end_layout
23402
23403 \end_inset
23404
23405  これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
23406 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
23407 出力形式に対してこのマクロを使用します.
23408 \end_layout
23409
23410 \begin_layout Description
23411 \begin_inset Flex Code
23412 status collapsed
23413
23414 \begin_layout Plain Layout
23415 $$FName
23416 \end_layout
23417
23418 \end_inset
23419
23420  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
23421 文書への絶対パスでも良いですし,相対パスでも構いません.
23422 \end_layout
23423
23424 \begin_layout Description
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 $$FPath
23430 \end_layout
23431
23432 \end_inset
23433
23434  
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 $$FName
23440 \end_layout
23441
23442 \end_inset
23443
23444 のパス部分(\SpecialChar LyX
23445 文書への絶対パス名か相対パス名)
23446 \end_layout
23447
23448 \begin_layout Description
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 $$RelPathMaster
23454 \end_layout
23455
23456 \end_inset
23457
23458  \SpecialChar LyX
23459 親文書への相対ファイルパス
23460 \end_layout
23461
23462 \begin_layout Description
23463 \begin_inset Flex Code
23464 status collapsed
23465
23466 \begin_layout Plain Layout
23467 $$RelPathParent
23468 \end_layout
23469
23470 \end_inset
23471
23472  \SpecialChar LyX
23473 文書への相対ファイルパス
23474 \end_layout
23475
23476 \begin_layout Description
23477 \begin_inset Flex Code
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 $$Sysdir
23482 \end_layout
23483
23484 \end_inset
23485
23486  このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
23487 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
23488 \end_layout
23489
23490 \begin_layout Description
23491 \begin_inset Flex Code
23492 status collapsed
23493
23494 \begin_layout Plain Layout
23495 $$Tempname
23496 \end_layout
23497
23498 \end_inset
23499
23500  元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
23501 \end_layout
23502
23503 \begin_layout Standard
23504 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を 
23505 \begin_inset Flex Code
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509 $$AbsPath$$Basename$$Extension
23510 \end_layout
23511
23512 \end_inset
23513
23514 のようにして作ることができます.
23515 \end_layout
23516
23517 \begin_layout Standard
23518 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
23519 \begin_inset Flex Code
23520 status collapsed
23521
23522 \begin_layout Plain Layout
23523 Transform
23524 \end_layout
23525
23526 \end_inset
23527
23528 コマンドと
23529 \begin_inset Flex Code
23530 status collapsed
23531
23532 \begin_layout Plain Layout
23533 TransformCommand
23534 \end_layout
23535
23536 \end_inset
23537
23538 コマンドが有効にされている場合,
23539 \begin_inset Flex Code
23540 status collapsed
23541
23542 \begin_layout Plain Layout
23543 Product
23544 \end_layout
23545
23546 \end_inset
23547
23548 コマンドは,これらに加えて以下の代入もサポートします.
23549 \end_layout
23550
23551 \begin_layout Description
23552 \begin_inset Flex Code
23553 status collapsed
23554
23555 \begin_layout Plain Layout
23556 $$ResizeFront
23557 \end_layout
23558
23559 \end_inset
23560
23561  伸縮コマンドの前置部.
23562 \end_layout
23563
23564 \begin_layout Description
23565 \begin_inset Flex Code
23566 status collapsed
23567
23568 \begin_layout Plain Layout
23569 $$ResizeBack
23570 \end_layout
23571
23572 \end_inset
23573
23574  伸縮コマンドの後置部.
23575 \end_layout
23576
23577 \begin_layout Description
23578 \begin_inset Flex Code
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582 $$RotateFront
23583 \end_layout
23584
23585 \end_inset
23586
23587  回転コマンドの前置部.
23588 \end_layout
23589
23590 \begin_layout Description
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 $$RotateBack
23596 \end_layout
23597
23598 \end_inset
23599
23600  回転コマンドの後置部.
23601 \end_layout
23602
23603 \begin_layout Standard
23604 \begin_inset Flex Code
23605 status collapsed
23606
23607 \begin_layout Plain Layout
23608 Option
23609 \end_layout
23610
23611 \end_inset
23612
23613 コマンドの値に入れる文字列では,
23614 \begin_inset Flex Code
23615 status collapsed
23616
23617 \begin_layout Plain Layout
23618 Transform
23619 \end_layout
23620
23621 \end_inset
23622
23623 コマンドと
23624 \begin_inset Flex Code
23625 status collapsed
23626
23627 \begin_layout Plain Layout
23628 TransformOption
23629 \end_layout
23630
23631 \end_inset
23632
23633 コマンドが有効にされていれば,以下の代入もサポートされます.
23634 \end_layout
23635
23636 \begin_layout Description
23637 \begin_inset Flex Code
23638 status collapsed
23639
23640 \begin_layout Plain Layout
23641 $$Clip
23642 \end_layout
23643
23644 \end_inset
23645
23646  切り抜きオプション.
23647 \end_layout
23648
23649 \begin_layout Description
23650 \begin_inset Flex Code
23651 status collapsed
23652
23653 \begin_layout Plain Layout
23654 $$Extra
23655 \end_layout
23656
23657 \end_inset
23658
23659  追加オプション.
23660 \end_layout
23661
23662 \begin_layout Description
23663 \begin_inset Flex Code
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 $$Resize
23668 \end_layout
23669
23670 \end_inset
23671
23672  伸縮オプション.
23673 \end_layout
23674
23675 \begin_layout Description
23676 \begin_inset Flex Code
23677 status collapsed
23678
23679 \begin_layout Plain Layout
23680 $$Rotate
23681 \end_layout
23682
23683 \end_inset
23684
23685  回転オプション.
23686 \end_layout
23687
23688 \begin_layout Standard
23689 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
23690 \end_layout
23691
23692 \begin_layout Enumerate
23693 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
23694 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
23695 \end_layout
23696
23697 \begin_layout Enumerate
23698 \SpecialChar LaTeX
23699 は,相対ファイル名に関して,\SpecialChar LyX
23700 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
23701 にとって相対ファイル名とは,常にこのファイル名が書か
23702 れている文書に対して相対的なものになります.\SpecialChar LaTeX
23703 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
23704 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
23705 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
23706 を選びさえすれば,これは\SpecialChar LyX
23707 が自動的に行ってくれます.
23708 \end_layout
23709
23710 \begin_layout Standard
23711 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
23712 \end_layout
23713
23714 \begin_layout Itemize
23715 絶対パスが必要とされるときには
23716 \begin_inset Flex Code
23717 status collapsed
23718
23719 \begin_layout Plain Layout
23720 $$AbsPath
23721 \end_layout
23722
23723 \end_inset
23724
23725 を使う.
23726 \end_layout
23727
23728 \begin_layout Itemize
23729 代入された文字列が,\SpecialChar LaTeX
23730 インプットの一種である場合には,
23731 \begin_inset Flex Code
23732 status collapsed
23733
23734 \begin_layout Plain Layout
23735 $$AbsOrRelPathMaster
23736 \end_layout
23737
23738 \end_inset
23739
23740 を使う.
23741 \end_layout
23742
23743 \begin_layout Itemize
23744 それ以外ならば,ユーザの選択を尊重するために
23745 \begin_inset Flex Code
23746 status collapsed
23747
23748 \begin_layout Plain Layout
23749 $$AbsOrRelPathParent
23750 \end_layout
23751
23752 \end_inset
23753
23754 を使う.
23755 \end_layout
23756
23757 \begin_layout Standard
23758 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23764 \end_layout
23765
23766 \end_inset
23767
23768 というコマンドがあります.この場合,
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 .pstex_t
23774 \end_layout
23775
23776 \end_inset
23777
23778 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
23779 \end_layout
23780
23781 \begin_layout Section
23782 セキュリティに関する論点
23783 \begin_inset CommandInset label
23784 LatexCommand label
23785 name "sec:セキュリティに関する論点"
23786
23787 \end_inset
23788
23789
23790 \end_layout
23791
23792 \begin_layout Standard
23793 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
23794 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
23795 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
23796 \end_layout
23797
23798 \begin_layout Standard
23799 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
23800 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
23801 せん.これは,外部プログラムが
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 system
23807 \end_layout
23808
23809 \end_inset
23810
23811 システムコールではなく,
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 execvp
23817 \end_layout
23818
23819 \end_inset
23820
23821 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
23822 \end_layout
23823
23824 \begin_layout Standard
23825 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
23826 できません.これは,\SpecialChar LyX
23827 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
23828 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
23829 \end_layout
23830
23831 \begin_layout Standard
23832 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
23833 うになるため,一般的には,統御下に置いた状態で
23834 \begin_inset Flex Code
23835 status collapsed
23836
23837 \begin_layout Plain Layout
23838 execvp
23839 \end_layout
23840
23841 \end_inset
23842
23843 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
23844 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
23845 \emph on
23846 間違いなく
23847 \emph default
23848 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
23849 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
23850 には,安全でないひな型は決して入っていません
23851
23852 \end_layout
23853
23854 \begin_layout Standard
23855 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
23856 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
23857 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
23858 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
23859 使用する前に,行うようにしてください.
23860 \end_layout
23861
23862 \begin_layout Chapter
23863 \start_of_appendix
23864 サポートされているレイアウト用\SpecialChar LyX
23865 関数一覧
23866 \begin_inset CommandInset label
23867 LatexCommand label
23868 name "chap:関数一覧"
23869
23870 \end_inset
23871
23872
23873 \end_layout
23874
23875 \begin_layout Standard
23876 \align center
23877 \begin_inset Tabular
23878 <lyxtabular version="3" rows="11" columns="8">
23879 <features tabularvalignment="middle">
23880 <column alignment="left" valignment="top">
23881 <column alignment="left" valignment="top">
23882 <column alignment="left" valignment="top">
23883 <column alignment="left" valignment="top">
23884 <column alignment="left" valignment="top">
23885 <column alignment="left" valignment="top">
23886 <column alignment="left" valignment="top">
23887 <column alignment="left" valignment="top">
23888 <row>
23889 <cell alignment="left" valignment="top" usebox="none">
23890 \begin_inset Text
23891
23892 \begin_layout Plain Layout
23893 accents
23894 \end_layout
23895
23896 \end_inset
23897 </cell>
23898 <cell alignment="left" valignment="top" usebox="none">
23899 \begin_inset Text
23900
23901 \begin_layout Plain Layout
23902 booktabs
23903 \end_layout
23904
23905 \end_inset
23906 </cell>
23907 <cell alignment="left" valignment="top" usebox="none">
23908 \begin_inset Text
23909
23910 \begin_layout Plain Layout
23911 feyn
23912 \end_layout
23913
23914 \end_inset
23915 </cell>
23916 <cell alignment="left" valignment="top" usebox="none">
23917 \begin_inset Text
23918
23919 \begin_layout Plain Layout
23920 listings
23921 \end_layout
23922
23923 \end_inset
23924 </cell>
23925 <cell alignment="center" valignment="top" usebox="none">
23926 \begin_inset Text
23927
23928 \begin_layout Plain Layout
23929 natbib
23930 \end_layout
23931
23932 \end_inset
23933 </cell>
23934 <cell alignment="center" valignment="top" usebox="none">
23935 \begin_inset Text
23936
23937 \begin_layout Plain Layout
23938 rotfloat
23939 \end_layout
23940
23941 \end_inset
23942 </cell>
23943 <cell alignment="center" valignment="top" usebox="none">
23944 \begin_inset Text
23945
23946 \begin_layout Plain Layout
23947 tfrupee
23948 \end_layout
23949
23950 \end_inset
23951 </cell>
23952 <cell alignment="center" valignment="top" usebox="none">
23953 \begin_inset Text
23954
23955 \begin_layout Plain Layout
23956 wasysym
23957 \end_layout
23958
23959 \end_inset
23960 </cell>
23961 </row>
23962 <row>
23963 <cell alignment="left" valignment="top" usebox="none">
23964 \begin_inset Text
23965
23966 \begin_layout Plain Layout
23967 amsbsy
23968 \end_layout
23969
23970 \end_inset
23971 </cell>
23972 <cell alignment="left" valignment="top" usebox="none">
23973 \begin_inset Text
23974
23975 \begin_layout Plain Layout
23976 calc
23977 \end_layout
23978
23979 \end_inset
23980 </cell>
23981 <cell alignment="left" valignment="top" usebox="none">
23982 \begin_inset Text
23983
23984 \begin_layout Plain Layout
23985 fixltx2e
23986 \end_layout
23987
23988 \end_inset
23989 </cell>
23990 <cell alignment="left" valignment="top" usebox="none">
23991 \begin_inset Text
23992
23993 \begin_layout Plain Layout
23994 longtable
23995 \end_layout
23996
23997 \end_inset
23998 </cell>
23999 <cell alignment="center" valignment="top" usebox="none">
24000 \begin_inset Text
24001
24002 \begin_layout Plain Layout
24003 nomencl
24004 \end_layout
24005
24006 \end_inset
24007 </cell>
24008 <cell alignment="center" valignment="top" usebox="none">
24009 \begin_inset Text
24010
24011 \begin_layout Plain Layout
24012 rsphrase
24013 \end_layout
24014
24015 \end_inset
24016 </cell>
24017 <cell alignment="center" valignment="top" usebox="none">
24018 \begin_inset Text
24019
24020 \begin_layout Plain Layout
24021 tipa
24022 \end_layout
24023
24024 \end_inset
24025 </cell>
24026 <cell alignment="center" valignment="top" usebox="none">
24027 \begin_inset Text
24028
24029 \begin_layout Plain Layout
24030 wrapfig
24031 \end_layout
24032
24033 \end_inset
24034 </cell>
24035 </row>
24036 <row>
24037 <cell alignment="left" valignment="top" usebox="none">
24038 \begin_inset Text
24039
24040 \begin_layout Plain Layout
24041 amscd
24042 \end_layout
24043
24044 \end_inset
24045 </cell>
24046 <cell alignment="left" valignment="top" usebox="none">
24047 \begin_inset Text
24048
24049 \begin_layout Plain Layout
24050 CJK
24051 \end_layout
24052
24053 \end_inset
24054 </cell>
24055 <cell alignment="left" valignment="top" usebox="none">
24056 \begin_inset Text
24057
24058 \begin_layout Plain Layout
24059 float
24060 \end_layout
24061
24062 \end_inset
24063 </cell>
24064 <cell alignment="left" valignment="top" usebox="none">
24065 \begin_inset Text
24066
24067 \begin_layout Plain Layout
24068 lyxskak
24069 \end_layout
24070
24071 \end_inset
24072 </cell>
24073 <cell alignment="center" valignment="top" usebox="none">
24074 \begin_inset Text
24075
24076 \begin_layout Plain Layout
24077 pdfcolmk
24078 \end_layout
24079
24080 \end_inset
24081 </cell>
24082 <cell alignment="center" valignment="top" usebox="none">
24083 \begin_inset Text
24084
24085 \begin_layout Plain Layout
24086 setspace
24087 \end_layout
24088
24089 \end_inset
24090 </cell>
24091 <cell alignment="center" valignment="top" usebox="none">
24092 \begin_inset Text
24093
24094 \begin_layout Plain Layout
24095 tipx
24096 \end_layout
24097
24098 \end_inset
24099 </cell>
24100 <cell alignment="center" valignment="top" usebox="none">
24101 \begin_inset Text
24102
24103 \begin_layout Plain Layout
24104 xargs
24105 \end_layout
24106
24107 \end_inset
24108 </cell>
24109 </row>
24110 <row>
24111 <cell alignment="left" valignment="top" usebox="none">
24112 \begin_inset Text
24113
24114 \begin_layout Plain Layout
24115 amsmath
24116 \end_layout
24117
24118 \end_inset
24119 </cell>
24120 <cell alignment="left" valignment="top" usebox="none">
24121 \begin_inset Text
24122
24123 \begin_layout Plain Layout
24124 color
24125 \end_layout
24126
24127 \end_inset
24128 </cell>
24129 <cell alignment="left" valignment="top" usebox="none">
24130 \begin_inset Text
24131
24132 \begin_layout Plain Layout
24133 framed
24134 \end_layout
24135
24136 \end_inset
24137 </cell>
24138 <cell alignment="left" valignment="top" usebox="none">
24139 \begin_inset Text
24140
24141 \begin_layout Plain Layout
24142 makeidx
24143 \end_layout
24144
24145 \end_inset
24146 </cell>
24147 <cell alignment="center" valignment="top" usebox="none">
24148 \begin_inset Text
24149
24150 \begin_layout Plain Layout
24151 pdfpages
24152 \end_layout
24153
24154 \end_inset
24155 </cell>
24156 <cell alignment="center" valignment="top" usebox="none">
24157 \begin_inset Text
24158
24159 \begin_layout Plain Layout
24160 shapepar
24161 \end_layout
24162
24163 \end_inset
24164 </cell>
24165 <cell alignment="center" valignment="top" usebox="none">
24166 \begin_inset Text
24167
24168 \begin_layout Plain Layout
24169 tone
24170 \end_layout
24171
24172 \end_inset
24173 </cell>
24174 <cell alignment="center" valignment="top" usebox="none">
24175 \begin_inset Text
24176
24177 \begin_layout Plain Layout
24178 xcolor
24179 \end_layout
24180
24181 \end_inset
24182 </cell>
24183 </row>
24184 <row>
24185 <cell alignment="left" valignment="top" usebox="none">
24186 \begin_inset Text
24187
24188 \begin_layout Plain Layout
24189 amssymb
24190 \end_layout
24191
24192 \end_inset
24193 </cell>
24194 <cell alignment="left" valignment="top" usebox="none">
24195 \begin_inset Text
24196
24197 \begin_layout Plain Layout
24198 covington
24199 \end_layout
24200
24201 \end_inset
24202 </cell>
24203 <cell alignment="left" valignment="top" usebox="none">
24204 \begin_inset Text
24205
24206 \begin_layout Plain Layout
24207 graphicx
24208 \end_layout
24209
24210 \end_inset
24211 </cell>
24212 <cell alignment="left" valignment="top" usebox="none">
24213 \begin_inset Text
24214
24215 \begin_layout Plain Layout
24216 marvosym
24217 \end_layout
24218
24219 \end_inset
24220 </cell>
24221 <cell alignment="center" valignment="top" usebox="none">
24222 \begin_inset Text
24223
24224 \begin_layout Plain Layout
24225 pifont
24226 \end_layout
24227
24228 \end_inset
24229 </cell>
24230 <cell alignment="center" valignment="top" usebox="none">
24231 \begin_inset Text
24232
24233 \begin_layout Plain Layout
24234 slashed
24235 \end_layout
24236
24237 \end_inset
24238 </cell>
24239 <cell alignment="center" valignment="top" usebox="none">
24240 \begin_inset Text
24241
24242 \begin_layout Plain Layout
24243 txfonts
24244 \end_layout
24245
24246 \end_inset
24247 </cell>
24248 <cell alignment="center" valignment="top" usebox="none">
24249 \begin_inset Text
24250
24251 \begin_layout Plain Layout
24252 xy
24253 \end_layout
24254
24255 \end_inset
24256 </cell>
24257 </row>
24258 <row>
24259 <cell alignment="left" valignment="top" usebox="none">
24260 \begin_inset Text
24261
24262 \begin_layout Plain Layout
24263 amstext
24264 \end_layout
24265
24266 \end_inset
24267 </cell>
24268 <cell alignment="left" valignment="top" usebox="none">
24269 \begin_inset Text
24270
24271 \begin_layout Plain Layout
24272 csquotes
24273 \end_layout
24274
24275 \end_inset
24276 </cell>
24277 <cell alignment="left" valignment="top" usebox="none">
24278 \begin_inset Text
24279
24280 \begin_layout Plain Layout
24281 hhline
24282 \end_layout
24283
24284 \end_inset
24285 </cell>
24286 <cell alignment="left" valignment="top" usebox="none">
24287 \begin_inset Text
24288
24289 \begin_layout Plain Layout
24290 mathdesign
24291 \end_layout
24292
24293 \end_inset
24294 </cell>
24295 <cell alignment="center" valignment="top" usebox="none">
24296 \begin_inset Text
24297
24298 \begin_layout Plain Layout
24299 pmboxdraw
24300 \end_layout
24301
24302 \end_inset
24303 </cell>
24304 <cell alignment="center" valignment="top" usebox="none">
24305 \begin_inset Text
24306
24307 \begin_layout Plain Layout
24308 soul
24309 \end_layout
24310
24311 \end_inset
24312 </cell>
24313 <cell alignment="center" valignment="top" usebox="none">
24314 \begin_inset Text
24315
24316 \begin_layout Plain Layout
24317 ulem
24318 \end_layout
24319
24320 \end_inset
24321 </cell>
24322 <cell alignment="center" valignment="top" usebox="none">
24323 \begin_inset Text
24324
24325 \begin_layout Plain Layout
24326 yhmath
24327 \end_layout
24328
24329 \end_inset
24330 </cell>
24331 </row>
24332 <row>
24333 <cell alignment="left" valignment="top" usebox="none">
24334 \begin_inset Text
24335
24336 \begin_layout Plain Layout
24337 amsthm
24338 \end_layout
24339
24340 \end_inset
24341 </cell>
24342 <cell alignment="left" valignment="top" usebox="none">
24343 \begin_inset Text
24344
24345 \begin_layout Plain Layout
24346 dvipost
24347 \end_layout
24348
24349 \end_inset
24350 </cell>
24351 <cell alignment="left" valignment="top" usebox="none">
24352 \begin_inset Text
24353
24354 \begin_layout Plain Layout
24355 hyperref
24356 \end_layout
24357
24358 \end_inset
24359 </cell>
24360 <cell alignment="left" valignment="top" usebox="none">
24361 \begin_inset Text
24362
24363 \begin_layout Plain Layout
24364 mathdots
24365 \end_layout
24366
24367 \end_inset
24368 </cell>
24369 <cell alignment="center" valignment="top" usebox="none">
24370 \begin_inset Text
24371
24372 \begin_layout Plain Layout
24373 polyglossia
24374 \end_layout
24375
24376 \end_inset
24377 </cell>
24378 <cell alignment="center" valignment="top" usebox="none">
24379 \begin_inset Text
24380
24381 \begin_layout Plain Layout
24382 splitidx
24383 \end_layout
24384
24385 \end_inset
24386 </cell>
24387 <cell alignment="center" valignment="top" usebox="none">
24388 \begin_inset Text
24389
24390 \begin_layout Plain Layout
24391 undertilde
24392 \end_layout
24393
24394 \end_inset
24395 </cell>
24396 <cell alignment="center" valignment="top" usebox="none">
24397 \begin_inset Text
24398
24399 \begin_layout Plain Layout
24400
24401 \end_layout
24402
24403 \end_inset
24404 </cell>
24405 </row>
24406 <row>
24407 <cell alignment="left" valignment="top" usebox="none">
24408 \begin_inset Text
24409
24410 \begin_layout Plain Layout
24411 array
24412 \end_layout
24413
24414 \end_inset
24415 </cell>
24416 <cell alignment="left" valignment="top" usebox="none">
24417 \begin_inset Text
24418
24419 \begin_layout Plain Layout
24420 endnotes
24421 \end_layout
24422
24423 \end_inset
24424 </cell>
24425 <cell alignment="left" valignment="top" usebox="none">
24426 \begin_inset Text
24427
24428 \begin_layout Plain Layout
24429 ifsym
24430 \end_layout
24431
24432 \end_inset
24433 </cell>
24434 <cell alignment="left" valignment="top" usebox="none">
24435 \begin_inset Text
24436
24437 \begin_layout Plain Layout
24438 mathrsfs
24439 \end_layout
24440
24441 \end_inset
24442 </cell>
24443 <cell alignment="center" valignment="top" usebox="none">
24444 \begin_inset Text
24445
24446 \begin_layout Plain Layout
24447 prettyref
24448 \end_layout
24449
24450 \end_inset
24451 </cell>
24452 <cell alignment="center" valignment="top" usebox="none">
24453 \begin_inset Text
24454
24455 \begin_layout Plain Layout
24456 subfig
24457 \end_layout
24458
24459 \end_inset
24460 </cell>
24461 <cell alignment="center" valignment="top" usebox="none">
24462 \begin_inset Text
24463
24464 \begin_layout Plain Layout
24465 units
24466 \end_layout
24467
24468 \end_inset
24469 </cell>
24470 <cell alignment="center" valignment="top" usebox="none">
24471 \begin_inset Text
24472
24473 \begin_layout Plain Layout
24474
24475 \end_layout
24476
24477 \end_inset
24478 </cell>
24479 </row>
24480 <row>
24481 <cell alignment="left" valignment="top" usebox="none">
24482 \begin_inset Text
24483
24484 \begin_layout Plain Layout
24485 ascii
24486 \end_layout
24487
24488 \end_inset
24489 </cell>
24490 <cell alignment="left" valignment="top" usebox="none">
24491 \begin_inset Text
24492
24493 \begin_layout Plain Layout
24494 enumitem
24495 \end_layout
24496
24497 \end_inset
24498 </cell>
24499 <cell alignment="left" valignment="top" usebox="none">
24500 \begin_inset Text
24501
24502 \begin_layout Plain Layout
24503 ifthen
24504 \end_layout
24505
24506 \end_inset
24507 </cell>
24508 <cell alignment="left" valignment="top" usebox="none">
24509 \begin_inset Text
24510
24511 \begin_layout Plain Layout
24512 mhchem
24513 \end_layout
24514
24515 \end_inset
24516 </cell>
24517 <cell alignment="center" valignment="top" usebox="none">
24518 \begin_inset Text
24519
24520 \begin_layout Plain Layout
24521 pxfonts
24522 \end_layout
24523
24524 \end_inset
24525 </cell>
24526 <cell alignment="center" valignment="top" usebox="none">
24527 \begin_inset Text
24528
24529 \begin_layout Plain Layout
24530 subscript
24531 \end_layout
24532
24533 \end_inset
24534 </cell>
24535 <cell alignment="center" valignment="top" usebox="none">
24536 \begin_inset Text
24537
24538 \begin_layout Plain Layout
24539 url
24540 \end_layout
24541
24542 \end_inset
24543 </cell>
24544 <cell alignment="center" valignment="top" usebox="none">
24545 \begin_inset Text
24546
24547 \begin_layout Plain Layout
24548
24549 \end_layout
24550
24551 \end_inset
24552 </cell>
24553 </row>
24554 <row>
24555 <cell alignment="left" valignment="top" usebox="none">
24556 \begin_inset Text
24557
24558 \begin_layout Plain Layout
24559 bbding
24560 \end_layout
24561
24562 \end_inset
24563 </cell>
24564 <cell alignment="left" valignment="top" usebox="none">
24565 \begin_inset Text
24566
24567 \begin_layout Plain Layout
24568 esint
24569 \end_layout
24570
24571 \end_inset
24572 </cell>
24573 <cell alignment="left" valignment="top" usebox="none">
24574 \begin_inset Text
24575
24576 \begin_layout Plain Layout
24577 jurabib
24578 \end_layout
24579
24580 \end_inset
24581 </cell>
24582 <cell alignment="left" valignment="top" usebox="none">
24583 \begin_inset Text
24584
24585 \begin_layout Plain Layout
24586 multicol
24587 \end_layout
24588
24589 \end_inset
24590 </cell>
24591 <cell alignment="center" valignment="top" usebox="none">
24592 \begin_inset Text
24593
24594 \begin_layout Plain Layout
24595 refstyle
24596 \end_layout
24597
24598 \end_inset
24599 </cell>
24600 <cell alignment="center" valignment="top" usebox="none">
24601 \begin_inset Text
24602
24603 \begin_layout Plain Layout
24604 textcomp
24605 \end_layout
24606
24607 \end_inset
24608 </cell>
24609 <cell alignment="center" valignment="top" usebox="none">
24610 \begin_inset Text
24611
24612 \begin_layout Plain Layout
24613 varioref
24614 \end_layout
24615
24616 \end_inset
24617 </cell>
24618 <cell alignment="center" valignment="top" usebox="none">
24619 \begin_inset Text
24620
24621 \begin_layout Plain Layout
24622
24623 \end_layout
24624
24625 \end_inset
24626 </cell>
24627 </row>
24628 <row>
24629 <cell alignment="center" valignment="top" usebox="none">
24630 \begin_inset Text
24631
24632 \begin_layout Plain Layout
24633 bm
24634 \end_layout
24635
24636 \end_inset
24637 </cell>
24638 <cell alignment="center" valignment="top" usebox="none">
24639 \begin_inset Text
24640
24641 \begin_layout Plain Layout
24642 fancybox
24643 \end_layout
24644
24645 \end_inset
24646 </cell>
24647 <cell alignment="center" valignment="top" usebox="none">
24648 \begin_inset Text
24649
24650 \begin_layout Plain Layout
24651 latexsym
24652 \end_layout
24653
24654 \end_inset
24655 </cell>
24656 <cell alignment="center" valignment="top" usebox="none">
24657 \begin_inset Text
24658
24659 \begin_layout Plain Layout
24660 multirow
24661 \end_layout
24662
24663 \end_inset
24664 </cell>
24665 <cell alignment="center" valignment="top" usebox="none">
24666 \begin_inset Text
24667
24668 \begin_layout Plain Layout
24669 rotating
24670 \end_layout
24671
24672 \end_inset
24673 </cell>
24674 <cell alignment="center" valignment="top" usebox="none">
24675 \begin_inset Text
24676
24677 \begin_layout Plain Layout
24678 textgreek
24679 \end_layout
24680
24681 \end_inset
24682 </cell>
24683 <cell alignment="center" valignment="top" usebox="none">
24684 \begin_inset Text
24685
24686 \begin_layout Plain Layout
24687 verbatim
24688 \end_layout
24689
24690 \end_inset
24691 </cell>
24692 <cell alignment="center" valignment="top" usebox="none">
24693 \begin_inset Text
24694
24695 \begin_layout Plain Layout
24696
24697 \end_layout
24698
24699 \end_inset
24700 </cell>
24701 </row>
24702 </lyxtabular>
24703
24704 \end_inset
24705
24706
24707 \end_layout
24708
24709 \begin_layout Chapter
24710 レイアウトで使用できる色名
24711 \begin_inset CommandInset label
24712 LatexCommand label
24713 name "chap:色名"
24714
24715 \end_inset
24716
24717
24718 \end_layout
24719
24720 \begin_layout Standard
24721 ここに列挙されている色は標準色であり,\SpecialChar LyX
24722 設定で調整できるものです.
24723 \end_layout
24724
24725 \begin_layout Section
24726
24727 \lang english
24728 Color functions
24729 \end_layout
24730
24731 \begin_layout Standard
24732
24733 \lang english
24734 The following are no real colors, but rather act on color definitions:
24735 \end_layout
24736
24737 \begin_layout Description
24738 ignore この色を無視します
24739 \end_layout
24740
24741 \begin_layout Description
24742 inherit この色を継承します
24743 \end_layout
24744
24745 \begin_layout Description
24746 none
24747 \series medium
24748  
24749 \series default
24750 特定の色ではありません – 透明か既定色です
24751 \end_layout
24752
24753 \begin_layout Section
24754
24755 \lang english
24756 Static colors
24757 \end_layout
24758
24759 \begin_layout Standard
24760
24761 \lang english
24762 These are fixed colors that cannot me customized:
24763 \end_layout
24764
24765 \begin_layout Description
24766 black
24767 \end_layout
24768
24769 \begin_layout Description
24770 white
24771 \end_layout
24772
24773 \begin_layout Description
24774 blue
24775 \end_layout
24776
24777 \begin_layout Description
24778 brown
24779 \end_layout
24780
24781 \begin_layout Description
24782 cyan
24783 \end_layout
24784
24785 \begin_layout Description
24786 darkgray
24787 \end_layout
24788
24789 \begin_layout Description
24790 gray
24791 \end_layout
24792
24793 \begin_layout Description
24794 green
24795 \end_layout
24796
24797 \begin_layout Description
24798 lightgray
24799 \end_layout
24800
24801 \begin_layout Description
24802 lime
24803 \end_layout
24804
24805 \begin_layout Description
24806 magenta
24807 \end_layout
24808
24809 \begin_layout Description
24810 olive
24811 \end_layout
24812
24813 \begin_layout Description
24814 orange
24815 \end_layout
24816
24817 \begin_layout Description
24818 pink
24819 \end_layout
24820
24821 \begin_layout Description
24822 purple
24823 \end_layout
24824
24825 \begin_layout Description
24826 red
24827 \end_layout
24828
24829 \begin_layout Description
24830 teal
24831 \end_layout
24832
24833 \begin_layout Description
24834 violet
24835 \end_layout
24836
24837 \begin_layout Description
24838 yellow
24839 \end_layout
24840
24841 \begin_layout Section
24842
24843 \lang english
24844 Dynamic colors
24845 \end_layout
24846
24847 \begin_layout Standard
24848
24849 \lang english
24850 These are the colors allocated to specific elements in
24851 \lang japanese
24852
24853 \begin_inset Flex MenuItem
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857 ツール\SpecialChar menuseparator
24858 設定
24859 \end_layout
24860
24861 \end_inset
24862
24863 :
24864 \end_layout
24865
24866 \begin_layout Description
24867 added_space 空白マーカ色
24868 \end_layout
24869
24870 \begin_layout Description
24871 addedtext 追加された文章色
24872 \end_layout
24873
24874 \begin_layout Description
24875 appendix 付録マーカ色
24876 \end_layout
24877
24878 \begin_layout Description
24879 background 背景色
24880 \end_layout
24881
24882 \begin_layout Description
24883 bottomarea 下部領域色
24884 \end_layout
24885
24886 \begin_layout Description
24887 branchlabel 派生枝ラベル色
24888 \end_layout
24889
24890 \begin_layout Description
24891 buttonbg ボタンの背景色
24892 \end_layout
24893
24894 \begin_layout Description
24895 buttonframe 差込枠の縁色
24896 \end_layout
24897
24898 \begin_layout Description
24899 buttonhoverbg フォーカスを得ているボタンの背景色
24900 \end_layout
24901
24902 \begin_layout Description
24903 changebar 変更バー色
24904 \end_layout
24905
24906 \begin_layout Description
24907 changedtextauthor1 変更された文章:第1著者の色
24908 \end_layout
24909
24910 \begin_layout Description
24911 changedtextauthor2 変更された文章:第2著者の色
24912 \end_layout
24913
24914 \begin_layout Description
24915 changedtextauthor3 変更された文章:第3著者の色
24916 \end_layout
24917
24918 \begin_layout Description
24919 changedtextauthor4 変更された文章:第4著者の色
24920 \end_layout
24921
24922 \begin_layout Description
24923 changedtextauthor5 変更された文章:第5著者の色
24924 \end_layout
24925
24926 \begin_layout Description
24927 collapsibletext 畳み込み可能枠の文字色
24928 \end_layout
24929
24930 \begin_layout Description
24931 collapsibleframe 畳み込み可能枠の縁色
24932 \end_layout
24933
24934 \begin_layout Description
24935 command コマンド差込枠の文字色
24936 \end_layout
24937
24938 \begin_layout Description
24939 commandbg コマンド差込枠の背景色
24940 \end_layout
24941
24942 \begin_layout Description
24943 commandframe コマンド差込枠の縁色
24944 \end_layout
24945
24946 \begin_layout Description
24947 comment コメント色
24948 \end_layout
24949
24950 \begin_layout Description
24951 commentbg コメントの背景色
24952 \end_layout
24953
24954 \begin_layout Description
24955 cursor カーソル色
24956 \end_layout
24957
24958 \begin_layout Description
24959 deletedtext 削除された文章の色
24960 \end_layout
24961
24962 \begin_layout Description
24963 deletedtextmodifier 削除された文章の修飾子の色
24964 \end_layout
24965
24966 \begin_layout Description
24967 depthbar 余白部の階層表示線の色
24968 \end_layout
24969
24970 \begin_layout Description
24971 eolmarker 行末標色
24972 \end_layout
24973
24974 \begin_layout Description
24975 error \SpecialChar LaTeX
24976 エラーボックス色
24977 \end_layout
24978
24979 \begin_layout Description
24980 footlabel 脚註ラベル色
24981 \end_layout
24982
24983 \begin_layout Description
24984 foreground 
24985 \lang english
24986 Foreground color
24987 \end_layout
24988
24989 \begin_layout Description
24990 graphicsbg 画像差込枠の背景色
24991 \end_layout
24992
24993 \begin_layout Description
24994 greyedoutbg 淡色表示差込枠の背景色
24995 \end_layout
24996
24997 \begin_layout Description
24998 greyedoutlabel 淡色表示差込枠のラベル色
24999 \end_layout
25000
25001 \begin_layout Description
25002 greyedouttext 淡色表示差込枠の文字色
25003 \end_layout
25004
25005 \begin_layout Description
25006 indexlabel 索引差込枠のラベル色
25007 \end_layout
25008
25009 \begin_layout Description
25010 inlinecompletion 行内補完色
25011 \end_layout
25012
25013 \begin_layout Description
25014 insetbg 差込枠標の背景色
25015 \end_layout
25016
25017 \begin_layout Description
25018 insetframe 差込枠標の縁色
25019 \end_layout
25020
25021 \begin_layout Description
25022 language 外国語の単語を標識するための色
25023 \end_layout
25024
25025 \begin_layout Description
25026 latex \SpecialChar LaTeX
25027 モードの文字色
25028 \end_layout
25029
25030 \begin_layout Description
25031 listingsbg プログラムリスト差込枠の背景色
25032 \end_layout
25033
25034 \begin_layout Description
25035 marginlabel 傍註のラベル色
25036 \end_layout
25037
25038 \begin_layout Description
25039 math 数式差込枠の文字色
25040 \end_layout
25041
25042 \begin_layout Description
25043 mathbg 数式差込枠の背景色
25044 \end_layout
25045
25046 \begin_layout Description
25047 mathcorners フォーカスを得ていない数式差込枠の縁色
25048 \end_layout
25049
25050 \begin_layout Description
25051 mathframe フォーカスを得ている数式差込枠の縁色
25052 \end_layout
25053
25054 \begin_layout Description
25055 mathline 数式行色
25056 \end_layout
25057
25058 \begin_layout Description
25059 mathmacrobg 数式マクロ差込枠の背景色
25060 \end_layout
25061
25062 \begin_layout Description
25063 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
25064 \end_layout
25065
25066 \begin_layout Description
25067 mathmacroframe 数式マクロ差込枠の縁色
25068 \end_layout
25069
25070 \begin_layout Description
25071 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
25072 \end_layout
25073
25074 \begin_layout Description
25075 mathmacrolabel 数式マクロ差込枠のラベル色
25076 \end_layout
25077
25078 \begin_layout Description
25079 mathmacronewarg 数式マクロ新パラメーターのひな型色
25080 \end_layout
25081
25082 \begin_layout Description
25083 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
25084 \end_layout
25085
25086 \begin_layout Description
25087 newpage 新規頁色
25088 \end_layout
25089
25090 \begin_layout Description
25091 nonunique_inlinecompletion 行内補完の一意でない部分の色
25092 \end_layout
25093
25094 \begin_layout Description
25095 note 註釈のラベル色
25096 \end_layout
25097
25098 \begin_layout Description
25099 notebg 註釈の背景色
25100 \end_layout
25101
25102 \begin_layout Description
25103 pagebreak 改頁/改行色
25104 \end_layout
25105
25106 \begin_layout Description
25107 paragraphmarker 段落末を標識するための段落標の色
25108 \end_layout
25109
25110 \begin_layout Description
25111 phantomtext 埋め草差込枠の文字色
25112 \end_layout
25113
25114 \begin_layout Description
25115 preview プレビューに用いられる色
25116 \end_layout
25117
25118 \begin_layout Description
25119 previewframe プレビュー縁色
25120 \end_layout
25121
25122 \begin_layout Description
25123 regexpframe 正規表現枠の色
25124 \end_layout
25125
25126 \begin_layout Description
25127 scroll 
25128 \lang english
25129 Color that indicates when a row can be scrolled
25130 \end_layout
25131
25132 \begin_layout Description
25133 selection 文章選択部の背景色
25134 \end_layout
25135
25136 \begin_layout Description
25137 selectiontext 文章選択部の前景色
25138 \end_layout
25139
25140 \begin_layout Description
25141 shadedbg 影付きボックスの背景色
25142 \end_layout
25143
25144 \begin_layout Description
25145 special 特殊文字の色
25146 \end_layout
25147
25148 \begin_layout Description
25149 tabularline 罫線色
25150 \end_layout
25151
25152 \begin_layout Description
25153 tabularonoffline 罫線色
25154 \end_layout
25155
25156 \begin_layout Description
25157 urllabel URL差込枠のラベル色
25158 \end_layout
25159
25160 \begin_layout Description
25161 urltext URL差込枠の文字色
25162 \end_layout
25163
25164 \end_body
25165 \end_document