]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Customization.lyx: list supported features for layouts
[features.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass jbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}
21   {\usepackage{lmodern}}{}
22
23 \fi % end if pdflatex is used
24
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
29   \frontmatter
30   \pdfbookmark[1]{\contentsname}{}
31   \myTOC
32   \mainmatter }
33
34 % Added only for Japanese translation
35 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
36 \usepackage[T1]{fontenc}
37 % Below is to correct PDF bookmarks
38 % but doesn't work because hyperref is automatically called.
39 % Modify \usepackage{hyperref} line manually
40 %\usepackage[dvipdfm,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc]{hyperref}
41 %\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
42 %\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
43 \end_preamble
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
46 \begin_modules
47 logicalmkup
48 \end_modules
49 \maintain_unincluded_children false
50 \begin_local_layout
51 Format 7
52 InsetLayout CharStyle:MenuItem
53 LyxType               charstyle
54 LabelString           menu
55 LatexType             command
56 LatexName             menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 End
64 \end_local_layout
65 \language japanese
66 \language_package default
67 \inputencoding auto
68 \fontencoding global
69 \font_roman default
70 \font_sans default
71 \font_typewriter default
72 \font_default_family default
73 \use_non_tex_fonts false
74 \font_sc false
75 \font_osf false
76 \font_sf_scale 100
77 \font_tt_scale 100
78
79 \graphics default
80 \default_output_format default
81 \output_sync 0
82 \bibtex_command default
83 \index_command default
84 \paperfontsize 12
85 \spacing single
86 \use_hyperref true
87 \pdf_title "LyX Configuration Manual"
88 \pdf_author "LyX Team"
89 \pdf_subject "LyX-Documentation Customization"
90 \pdf_keywords "LyX, documentation, customization"
91 \pdf_bookmarks true
92 \pdf_bookmarksnumbered true
93 \pdf_bookmarksopen true
94 \pdf_bookmarksopenlevel 1
95 \pdf_breaklinks false
96 \pdf_pdfborder false
97 \pdf_colorlinks true
98 \pdf_backref false
99 \pdf_pdfusetitle false
100 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
101 \papersize default
102 \use_geometry false
103 \use_amsmath 0
104 \use_esint 0
105 \use_mhchem 0
106 \use_mathdots 0
107 \cite_engine basic
108 \use_bibtopic false
109 \use_indices false
110 \paperorientation portrait
111 \suppress_date false
112 \use_refstyle 0
113 \branch OutDated
114 \selected 0
115 \filename_suffix 0
116 \color #f5fae7
117 \end_branch
118 \index 索引
119 \shortcut idx
120 \color #008000
121 \end_index
122 \secnumdepth 3
123 \tocdepth 3
124 \paragraph_separation indent
125 \paragraph_indentation default
126 \quotes_language english
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tracking_changes false
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 LyXの高度設定
141 \begin_inset Newline newline
142 \end_inset
143
144 熟練ユーザのための各機能
145 \end_layout
146
147 \begin_layout Author
148 LyX開発チーム
149 \begin_inset Foot
150 status collapsed
151
152 \begin_layout Plain Layout
153 \noindent
154 もしコメントや誤りの修正をお持ちでしたら、LyX文書化メーリングリスト
155 \begin_inset CommandInset href
156 LatexCommand href
157 target "lyx-docs@lists.lyx.org"
158 type "mailto:"
159
160 \end_inset
161
162 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
163 ast.net>をccにして送ってください。
164 \end_layout
165
166 \end_inset
167
168
169 \begin_inset Newline newline
170 \end_inset
171
172
173 \begin_inset Newline newline
174 \end_inset
175
176 第2.0.x版 
177 \end_layout
178
179 \begin_layout Standard
180 \begin_inset CommandInset toc
181 LatexCommand tableofcontents
182
183 \end_inset
184
185
186 \begin_inset Note Note
187 status open
188
189 \begin_layout Plain Layout
190 本文書を修正する際には、変更追跡機能を使用してください。これによって、
191 \end_layout
192
193 \begin_layout Plain Layout
194 LyX翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
195 \end_layout
196
197 \end_inset
198
199
200 \end_layout
201
202 \begin_layout Chapter
203 はじめに
204 \end_layout
205
206 \begin_layout Standard
207 この取扱説明書は、LyXに備わっている高度設定機能を取り扱います。ここでは、短絡キーや画面プレビューオプション、プリンタオプション、LyXサーバ経由でのLyXへ
208 のコマンド送信、国際化、新しいLaTeXクラスやLyXレイアウトの導入などの題材について論じます。おそらくは変更可能なことすべてについて触れることは無理でしょう
209 が—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高度設定については説明を行い、わかりにくいものにつ
210 いては正しい方向を指し示すことができるようにしていくつもりです。
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset Branch OutDated
215 status collapsed
216
217 \begin_layout Standard
218 Information from previous versions of this document that now seems to be
219  outdated is contained in the OutDated branch of this document.
220  By default, this information will not appear in the LaTeX output.
221 \end_layout
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 LyX設定ファイル
230 \end_layout
231
232 \begin_layout Standard
233 本章の目的は、LyX設定ファイル群を理解するための一助となることです。本章を読み進める前に、
234 \begin_inset Flex MenuItem
235 status collapsed
236
237 \begin_layout Plain Layout
238 ヘルプ\SpecialChar \menuseparator
239 L
240 \begin_inset ERT
241 status collapsed
242
243 \begin_layout Plain Layout
244
245 {}
246 \end_layout
247
248 \end_inset
249
250 yXについて
251 \end_layout
252
253 \end_inset
254
255 を使って、LyXライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、LyXがシステム全体の設定ファイルを置いておくと
256 ころです。一方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
257 \begin_inset Flex Code
258 status collapsed
259
260 \begin_layout Plain Layout
261 L
262 \begin_inset ERT
263 status collapsed
264
265 \begin_layout Plain Layout
266
267 {}
268 \end_layout
269
270 \end_inset
271
272 yXDir
273 \end_layout
274
275 \end_inset
276
277 と呼び、後者を
278 \begin_inset Flex MenuItem
279 status collapsed
280
281 \begin_layout Plain Layout
282 UserDir
283 \end_layout
284
285 \end_inset
286
287 と呼ぶことにします。
288 \end_layout
289
290 \begin_layout Section
291 \begin_inset Flex Code
292 status collapsed
293
294 \begin_layout Plain Layout
295 L
296 \begin_inset ERT
297 status collapsed
298
299 \begin_layout Plain Layout
300
301 {}
302 \end_layout
303
304 \end_inset
305
306 yXDir
307 \end_layout
308
309 \end_inset
310
311 にはなにがあるの?
312 \end_layout
313
314 \begin_layout Standard
315 \begin_inset Flex Code
316 status collapsed
317
318 \begin_layout Plain Layout
319 L
320 \begin_inset ERT
321 status collapsed
322
323 \begin_layout Plain Layout
324
325 {}
326 \end_layout
327
328 \end_inset
329
330 yXDir
331 \end_layout
332
333 \end_inset
334
335 とそのサブディレクトリには、多くのファイルがあり、LyXの挙動を高度設定するのに使用されます。これらのファイルの多くは、LyX内の
336 \begin_inset Flex MenuItem
337 status collapsed
338
339 \begin_layout Plain Layout
340 ツール\SpecialChar \menuseparator
341 設定
342 \end_layout
343
344 \end_inset
345
346 ダイアログから変更することができます。LyX中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、Ly
347 Xの他の多くの内部動作は、
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 L
353 \begin_inset ERT
354 status collapsed
355
356 \begin_layout Plain Layout
357
358 {}
359 \end_layout
360
361 \end_inset
362
363 yXDir
364 \end_layout
365
366 \end_inset
367
368 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
369 \end_layout
370
371 \begin_layout Subsection
372 自動的に生成されるファイル
373 \end_layout
374
375 \begin_layout Standard
376 \begin_inset Flex MenuItem
377 status collapsed
378
379 \begin_layout Plain Layout
380 UserDir
381 \end_layout
382
383 \end_inset
384
385 にある各ファイルは、LyXが自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされ
386 てしまうので、一般的には修正しないことが望まれます。
387 \end_layout
388
389 \begin_layout Labeling
390 \labelwidthstring 00.00.0000
391 \begin_inset Flex Code
392 status collapsed
393
394 \begin_layout Plain Layout
395 lyxrc.defaults
396 \end_layout
397
398 \end_inset
399
400  このファイルには、様々な既定コマンドが置かれています。
401 \end_layout
402
403 \begin_layout Labeling
404 \labelwidthstring 00.00.0000
405 \begin_inset Flex Code
406 status collapsed
407
408 \begin_layout Plain Layout
409 packages.lst
410 \end_layout
411
412 \end_inset
413
414  このファイルには、LyXが認識したパッケージの一覧が収められています。現在のところ、これはLyXプログラム自体には使用されていませんが、抽出された情報その他は
415
416 \begin_inset Flex MenuItem
417 status collapsed
418
419 \begin_layout Plain Layout
420 ヘルプ\SpecialChar \menuseparator
421 LaT
422 \begin_inset ERT
423 status collapsed
424
425 \begin_layout Plain Layout
426
427 {}
428 \end_layout
429
430 \end_inset
431
432 eXの設定
433 \end_layout
434
435 \end_inset
436
437 で見ることができます。
438 \end_layout
439
440 \begin_layout Labeling
441 \labelwidthstring 00.00.0000
442 \begin_inset Flex Code
443 status collapsed
444
445 \begin_layout Plain Layout
446 textclass.lst
447 \end_layout
448
449 \end_inset
450
451  ユーザの
452 \begin_inset Flex Code
453 status collapsed
454
455 \begin_layout Plain Layout
456 layout/
457 \end_layout
458
459 \end_inset
460
461 ディレクトリで検出されたテキストクラスと、関連したLaTeX文書クラスおよびその説明の一覧です。
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 lyxmodules.lst
471 \end_layout
472
473 \end_inset
474
475  ユーザの
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 layout/
481 \end_layout
482
483 \end_inset
484
485 ディレクトリで検出されたレイアウトモジュールの一覧です。
486 \end_layout
487
488 \begin_layout Labeling
489 \labelwidthstring 00.00.0000
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494 *files.lst
495 \end_layout
496
497 \end_inset
498
499  ご使用のシステムで検出された様々な種類のLaTeX関連ファイルの一覧です。
500 \end_layout
501
502 \begin_layout Labeling
503 \labelwidthstring 00.00.0000
504 \begin_inset Flex Code
505 status collapsed
506
507 \begin_layout Plain Layout
508 doc/LaT
509 \begin_inset ERT
510 status collapsed
511
512 \begin_layout Plain Layout
513
514 {}
515 \end_layout
516
517 \end_inset
518
519 eXConfig.lyx
520 \end_layout
521
522 \end_inset
523
524  このファイルは、自動設定中に
525 \begin_inset Flex Code
526 status collapsed
527
528 \begin_layout Plain Layout
529 LaT
530 \begin_inset ERT
531 status collapsed
532
533 \begin_layout Plain Layout
534
535 {}
536 \end_layout
537
538 \end_inset
539
540 eXConfig.lyx.in
541 \end_layout
542
543 \end_inset
544
545 から自動的に生成されます。ご使用中のLaTeXの設定に関する情報が納められています。
546 \end_layout
547
548 \begin_layout Subsection
549 ディレクトリ
550 \end_layout
551
552 \begin_layout Standard
553 以下の各ディレクトリは、
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 L
559 \begin_inset ERT
560 status collapsed
561
562 \begin_layout Plain Layout
563
564 {}
565 \end_layout
566
567 \end_inset
568
569 yXDir
570 \end_layout
571
572 \end_inset
573
574
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 UserDir
580 \end_layout
581
582 \end_inset
583
584 に重複して存在します。特定のファイルが両方の場所にある場合には、
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 UserDir
590 \end_layout
591
592 \end_inset
593
594 の方にあるものが使用されます。
595 \end_layout
596
597 \begin_layout Labeling
598 \labelwidthstring 00.00.0000
599 \begin_inset Flex Code
600 status collapsed
601
602 \begin_layout Plain Layout
603 bind/
604 \end_layout
605
606 \end_inset
607
608  このディレクトリには、LyXで使用されるキー割当を定義している、拡張子が
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613 .bind
614 \end_layout
615
616 \end_inset
617
618 のファイルが置かれています。
619 \begin_inset Flex Code
620 status collapsed
621
622 \begin_layout Plain Layout
623 $LANG_xxx.bind
624 \end_layout
625
626 \end_inset
627
628 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
629 \end_layout
630
631 \begin_layout Labeling
632 \labelwidthstring 00.00.0000
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 clipart/
638 \end_layout
639
640 \end_inset
641
642  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
643 \end_layout
644
645 \begin_layout Labeling
646 \labelwidthstring 00.00.0000
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651 doc/
652 \end_layout
653
654 \end_inset
655
656  このディレクトリには、LyXの取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 LaT
662 \begin_inset ERT
663 status collapsed
664
665 \begin_layout Plain Layout
666
667 {}
668 \end_layout
669
670 \end_inset
671
672 eXConfig.lyx
673 \end_layout
674
675 \end_inset
676
677 ファイルは特に注目に値します。各国語版のヘルプ文書は、
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 doc/xx
683 \end_layout
684
685 \end_inset
686
687 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、第
688 \begin_inset CommandInset ref
689 LatexCommand ref
690 reference "cha:LyXの各国語対応"
691
692 \end_inset
693
694 章をご覧ください。
695 \end_layout
696
697 \begin_layout Labeling
698 \labelwidthstring 00.00.0000
699 \begin_inset Flex Code
700 status collapsed
701
702 \begin_layout Plain Layout
703 examples/
704 \end_layout
705
706 \end_inset
707
708  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
709 \begin_inset Flex MenuItem
710 status collapsed
711
712 \begin_layout Plain Layout
713 用例
714 \end_layout
715
716 \end_inset
717
718 ボタンを押すと、このディレクトリが表示されます。
719 \end_layout
720
721 \begin_layout Labeling
722 \labelwidthstring 00.00.0000
723 \begin_inset Flex Code
724 status collapsed
725
726 \begin_layout Plain Layout
727 images/
728 \end_layout
729
730 \end_inset
731
732  このディレクトリには、
733 \begin_inset Flex MenuItem
734 status collapsed
735
736 \begin_layout Plain Layout
737 文書
738 \end_layout
739
740 \end_inset
741
742 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、LyXを起動したときに現れるバナーも納められています。
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、第
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 章をご覧ください。
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには、第
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 章に述べられているテキストクラスおよびモジュールのファイルが納められています。
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには、LyXの各バージョン間の変換に使用される
799 \begin_inset Flex Code
800 status collapsed
801
802 \begin_layout Plain Layout
803 lyx2lyx
804 \end_layout
805
806 \end_inset
807
808  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 scripts/
818 \end_layout
819
820 \end_inset
821
822  このディレクトリには、
823 \begin_inset Flex MenuItem
824 status collapsed
825
826 \begin_layout Plain Layout
827 外用ひな型
828 \end_layout
829
830 \end_inset
831
832 機能の有用性を示すためのファイルがいくつか納められています。LyX自身が使用するスクリプトもいくつか収められています。
833 \end_layout
834
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 templates/
842 \end_layout
843
844 \end_inset
845
846  このディレクトリには、第
847 \begin_inset CommandInset ref
848 LatexCommand ref
849 reference "sec:ひな型を作成する"
850
851 \end_inset
852
853 章で述べられている標準のLyXひな型ファイルが納められています。
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 ui/
863 \end_layout
864
865 \end_inset
866
867  このディレクトリには、LyXの操作画面を定義する拡張子
868 \begin_inset Flex Code
869 status collapsed
870
871 \begin_layout Plain Layout
872 .ui
873 \end_layout
874
875 \end_inset
876
877 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
878 \end_layout
879
880 \begin_layout Subsection
881 変更を加えない方がよいファイル
882 \end_layout
883
884 \begin_layout Standard
885 これらのファイルはLyXが内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
886 \end_layout
887
888 \begin_layout Labeling
889 \labelwidthstring 00.00.0000
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 CREDITS
895 \end_layout
896
897 \end_inset
898
899  このファイルは、LyX開発陣の名簿です。この内容は、メニュー項目
900 \begin_inset Flex MenuItem
901 status collapsed
902
903 \begin_layout Plain Layout
904 ヘルプ\SpecialChar \menuseparator
905 L
906 \begin_inset ERT
907 status collapsed
908
909 \begin_layout Plain Layout
910
911 {}
912 \end_layout
913
914 \end_inset
915
916 yXについて
917 \end_layout
918
919 \end_inset
920
921 で表示されます。
922 \end_layout
923
924 \begin_layout Labeling
925 \labelwidthstring 00.00.0000
926 \begin_inset Flex Code
927 status collapsed
928
929 \begin_layout Plain Layout
930 chkconfig.ltx
931 \end_layout
932
933 \end_inset
934
935  これは、自動設定プロセスによって使用されるLaTeXスクリプトです。直接実行しないでください。
936 \end_layout
937
938 \begin_layout Labeling
939 \labelwidthstring 00.00.0000
940 \begin_inset Flex Code
941 status collapsed
942
943 \begin_layout Plain Layout
944 configure.py
945 \end_layout
946
947 \end_inset
948
949  これは、LyXの再設定によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
950 \end_layout
951
952 \begin_layout Subsection
953 ひとこと必要なファイル群...
954 \end_layout
955
956 \begin_layout Labeling
957 \labelwidthstring 00.00.0000
958 \begin_inset Flex Code
959 status collapsed
960
961 \begin_layout Plain Layout
962 encodings
963 \end_layout
964
965 \end_inset
966
967  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
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 external_templates
977 \end_layout
978
979 \end_inset
980
981  このファイルには、新しく導入された
982 \begin_inset Flex MenuItem
983 status collapsed
984
985 \begin_layout Plain Layout
986 外用ひな型
987 \end_layout
988
989 \end_inset
990
991 機能で使用できるひな型が載っています。
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 languages
1001 \end_layout
1002
1003 \end_inset
1004
1005  このファイルには、現在LyXがサポートしている言語の全一覧が載っています。
1006 \end_layout
1007
1008 \begin_layout Section
1009 ユーザのローカル設定ディレクトリ
1010 \end_layout
1011
1012 \begin_layout Standard
1013 LyXを非特権ユーザとして利用している場合でも、自分自身で使うために、LyXの設定を変更したいと思うかもしれません。
1014 \begin_inset Flex Code
1015 status collapsed
1016
1017 \begin_layout Plain Layout
1018 UserDir
1019 \end_layout
1020
1021 \end_inset
1022
1023 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1024 \begin_inset Flex MenuItem
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 ヘルプ\SpecialChar \menuseparator
1029 L
1030 \begin_inset ERT
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034
1035 {}
1036 \end_layout
1037
1038 \end_inset
1039
1040
1041 \begin_inset ERT
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045
1046 {}
1047 \end_layout
1048
1049 \end_inset
1050
1051 yXについて
1052 \end_layout
1053
1054 \end_inset
1055
1056 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061 L
1062 \begin_inset ERT
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066
1067 {}
1068 \end_layout
1069
1070 \end_inset
1071
1072 yXDir
1073 \end_layout
1074
1075 \end_inset
1076
1077 のミラーとして使用されており、これは
1078 \begin_inset Flex Code
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082 UserDir
1083 \end_layout
1084
1085 \end_inset
1086
1087 内のすべてのファイルが、
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092 L
1093 \begin_inset ERT
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097
1098 {}
1099 \end_layout
1100
1101 \end_inset
1102
1103 yXDir
1104 \end_layout
1105
1106 \end_inset
1107
1108 の対応するファイルを置き換えるものとして機能していることを意味します。前節で述べられた設定はどれも、全ユーザに影響する全システム用ディレクトリに置くこともできま
1109 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1110 \end_layout
1111
1112 \begin_layout Standard
1113 わかりやすくするために、いくつか例を挙げましょう。
1114 \end_layout
1115
1116 \begin_layout Itemize
1117 \begin_inset Flex MenuItem
1118 status collapsed
1119
1120 \begin_layout Plain Layout
1121 ツール\SpecialChar \menuseparator
1122 設定
1123 \end_layout
1124
1125 \end_inset
1126
1127 ダイアログで設定されるユーザ設定は、
1128 \begin_inset Flex Code
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 UserDir
1133 \end_layout
1134
1135 \end_inset
1136
1137 中の
1138 \begin_inset Flex Code
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 preferences
1143 \end_layout
1144
1145 \end_inset
1146
1147 ファイルに保存されます。
1148 \end_layout
1149
1150 \begin_layout Itemize
1151 \begin_inset Flex MenuItem
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 ツール\SpecialChar \menuseparator
1156 再設定
1157 \end_layout
1158
1159 \end_inset
1160
1161 を使用して再設定を行うと、LyXは
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 たとえば、LyXのFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとして
1197 も、それらのファイルを
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 UserDir/doc/
1203 \end_layout
1204
1205 \end_inset
1206
1207 ディレクトリにコピーすれば、
1208 \begin_inset Flex MenuItem
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 ヘルプ
1213 \end_layout
1214
1215 \end_inset
1216
1217 メニュー項目はこれらを開くようになります!
1218 \end_layout
1219
1220 \begin_layout Section
1221 LyXを複数の設定を使って実行するには
1222 \end_layout
1223
1224 \begin_layout Standard
1225 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1226 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1227 どのディレクトリを使用するか指定するのです。
1228 \end_layout
1229
1230 \begin_layout Standard
1231 LyXをコマンドラインスイッチ
1232 \begin_inset Flex Code
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 -userdir
1237 \end_layout
1238
1239 \end_inset
1240
1241  
1242 \emph on
1243 <ディレクトリ名>
1244 \emph default
1245 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(LyXを
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 -userdir
1251 \end_layout
1252
1253 \end_inset
1254
1255 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、LyXは、初めてLyXを実行したときに既定ディレ
1256 クトリを訊いてくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプシ
1257 ョンを修正することができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1258 \begin_inset Flex Code
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 LYX_USERDIR_20x
1263 \end_layout
1264
1265 \end_inset
1266
1267 を特定の値に設定しても、全く同じ効果があります。
1268 \end_layout
1269
1270 \begin_layout Standard
1271 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 NewUserDir/layouts
1277 \end_layout
1278
1279 \end_inset
1280
1281 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1282 クを使用してください。LyXが新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにする
1283 には、空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 doc/
1289 \end_layout
1290
1291 \end_inset
1292
1293 サブディレクトリには、設定スクリプト(
1294 \begin_inset Flex MenuItem
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 ツール\SpecialChar \menuseparator
1299 再設定
1300 \end_layout
1301
1302 \end_inset
1303
1304 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1305 \end_layout
1306
1307 \begin_layout Chapter
1308 設定ダイアログ
1309 \end_layout
1310
1311 \begin_layout Standard
1312 設定ダイアログのオプションのすべては、
1313 \emph on
1314 ユーザーの手引き
1315 \emph default
1316 の付録
1317 \emph on
1318 設定ダイアログ
1319 \emph default
1320 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1321 \end_layout
1322
1323 \begin_layout Section
1324 ファイル形式
1325 \begin_inset CommandInset label
1326 LatexCommand label
1327 name "sec:ファイル形式"
1328
1329 \end_inset
1330
1331
1332 \end_layout
1333
1334 \begin_layout Standard
1335 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1336 \begin_inset Flex MenuItem
1337 status collapsed
1338
1339 \begin_layout Plain Layout
1340 ツール\SpecialChar \menuseparator
1341 設定
1342 \end_layout
1343
1344 \end_inset
1345
1346 ダイアログを開いてください。
1347 \begin_inset Flex MenuItem
1348 status collapsed
1349
1350 \begin_layout Plain Layout
1351 ファイル処理\SpecialChar \menuseparator
1352 ファイル形式
1353 \end_layout
1354
1355 \end_inset
1356
1357 の中で
1358 \begin_inset Flex MenuItem
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362 新規\SpecialChar \ldots{}
1363
1364 \end_layout
1365
1366 \end_inset
1367
1368 ボタンを押して、登録する新しい形式を定義してください。
1369 \begin_inset Flex MenuItem
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 フィールドは、GUI中で形式を認識するために用いられる名称です。
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 短縮名
1384 \end_layout
1385
1386 \end_inset
1387
1388 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1389 \begin_inset Flex MenuItem
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 短絡キー
1394 \end_layout
1395
1396 \end_inset
1397
1398 フィールドは、メニュー中で短絡キーを提供するのに使用されます(たとえば、
1399 \begin_inset Flex MenuItem
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 Alt-V D
1404 \end_layout
1405
1406 \end_inset
1407
1408 を押すと
1409 \begin_inset Flex MenuItem
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413 表示\SpecialChar \menuseparator
1414 DVI
1415 \end_layout
1416
1417 \end_inset
1418
1419 となります)。
1420 \end_layout
1421
1422 \begin_layout Standard
1423 形式には、
1424 \begin_inset Flex MenuItem
1425 status collapsed
1426
1427 \begin_layout Plain Layout
1428 閲覧プログラム
1429 \end_layout
1430
1431 \end_inset
1432
1433
1434 \begin_inset Flex MenuItem
1435 status collapsed
1436
1437 \begin_layout Plain Layout
1438 編集プログラム
1439 \end_layout
1440
1441 \end_inset
1442
1443 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1444 \begin_inset Flex MenuItem
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 Ghostview
1449 \end_layout
1450
1451 \end_inset
1452
1453 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1454 いることができます。この閲覧プログラムは、LyX中で画像を閲覧したり
1455 \begin_inset Flex MenuItem
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 表示
1460 \end_layout
1461
1462 \end_inset
1463
1464 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 外部で編集
1470 \end_layout
1471
1472 \end_inset
1473
1474 を選択したときに起動します。
1475 \end_layout
1476
1477 \begin_layout Standard
1478 ファイル形式の
1479 \begin_inset Flex MenuItem
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 MIME
1484 \end_layout
1485
1486 \end_inset
1487
1488 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1489 ます。重要なファイル形式のうちには、
1490 \begin_inset CommandInset href
1491 LatexCommand href
1492 name "IANA"
1493 target "http://www.iana.org/assignments/media-types/"
1494
1495 \end_inset
1496
1497 に公式に登録されたMIME型がないものがあります。そこで、LyXは、
1498 \begin_inset CommandInset href
1499 LatexCommand href
1500 name "freedesktop.org"
1501 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1502
1503 \end_inset
1504
1505 で指定されているMIME型拡張表を使用しています。
1506 \end_layout
1507
1508 \begin_layout Standard
1509 \begin_inset Flex MenuItem
1510 status collapsed
1511
1512 \begin_layout Plain Layout
1513 文書形式
1514 \end_layout
1515
1516 \end_inset
1517
1518 オプションは、LyXに、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1519 \begin_inset CommandInset ref
1520 LatexCommand ref
1521 reference "sec:変換子"
1522
1523 \end_inset
1524
1525 節を参照)、この形式が
1526 \begin_inset Flex MenuItem
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 ファイル\SpecialChar \menuseparator
1531 書き出し
1532 \end_layout
1533
1534 \end_inset
1535
1536 メニューに表示されます。また、この形式に閲覧プログラムが指定されている場合には、この形式は
1537 \begin_inset Flex MenuItem
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 表示
1542 \end_layout
1543
1544 \end_inset
1545
1546 メニューにも表示されます。
1547 \begin_inset Flex Code
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 png
1552 \end_layout
1553
1554 \end_inset
1555
1556 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1557 \begin_inset Flex Code
1558 status collapsed
1559
1560 \begin_layout Plain Layout
1561 pdf
1562 \end_layout
1563
1564 \end_inset
1565
1566 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1567 \end_layout
1568
1569 \begin_layout Standard
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ベクター画像形式
1575 \end_layout
1576
1577 \end_inset
1578
1579 オプションは、LyXにこの形式がベクター画像を含みうることを教示するものです。この情報は、
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 pdflatex
1585 \end_layout
1586
1587 \end_inset
1588
1589 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1590 \begin_inset Flex MenuItem
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 pdflatex
1595 \end_layout
1596
1597 \end_inset
1598
1599 は、
1600 \begin_inset Flex MenuItem
1601 status collapsed
1602
1603 \begin_layout Plain Layout
1604 pdf
1605 \end_layout
1606
1607 \end_inset
1608
1609
1610 \begin_inset Flex MenuItem
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614 png
1615 \end_layout
1616
1617 \end_inset
1618
1619
1620 \begin_inset Flex MenuItem
1621 status collapsed
1622
1623 \begin_layout Plain Layout
1624 jpg
1625 \end_layout
1626
1627 \end_inset
1628
1629 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1630 \begin_inset Flex MenuItem
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 pdf
1635 \end_layout
1636
1637 \end_inset
1638
1639
1640 \begin_inset Flex MenuItem
1641 status collapsed
1642
1643 \begin_layout Plain Layout
1644 png
1645 \end_layout
1646
1647 \end_inset
1648
1649
1650 \begin_inset Flex MenuItem
1651 status collapsed
1652
1653 \begin_layout Plain Layout
1654 jpg
1655 \end_layout
1656
1657 \end_inset
1658
1659 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1660 \begin_inset Flex MenuItem
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 pdf
1665 \end_layout
1666
1667 \end_inset
1668
1669 に変換され、そうでない場合には
1670 \begin_inset Flex MenuItem
1671 status collapsed
1672
1673 \begin_layout Plain Layout
1674 png
1675 \end_layout
1676
1677 \end_inset
1678
1679 に変換されます。
1680 \end_layout
1681
1682 \begin_layout Section
1683 複写子
1684 \end_layout
1685
1686 \begin_layout Standard
1687 形式の変換はすべて、LyXの一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがありま
1688
1689 \begin_inset Foot
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1694 あります。
1695 \end_layout
1696
1697 \end_inset
1698
1699 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1700 \end_layout
1701
1702 \begin_layout Standard
1703 複写子の定義においては、以下の4つの変数を用いることができます。
1704 \end_layout
1705
1706 \begin_layout Labeling
1707 \labelwidthstring 00.00.0000
1708 \begin_inset Flex Code
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 $$s
1713 \end_layout
1714
1715 \end_inset
1716
1717  LyXのシステムディレクトリ(例:
1718 \begin_inset Flex MenuItem
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 /usr/share/lyx
1723 \end_layout
1724
1725 \end_inset
1726
1727
1728 \end_layout
1729
1730 \begin_layout Labeling
1731 \labelwidthstring 00.00.0000
1732 \begin_inset Flex Code
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 $$i
1737 \end_layout
1738
1739 \end_inset
1740
1741  入力ファイル
1742 \end_layout
1743
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Flex Code
1747 status collapsed
1748
1749 \begin_layout Plain Layout
1750 $$o
1751 \end_layout
1752
1753 \end_inset
1754
1755  出力ファイル
1756 \end_layout
1757
1758 \begin_layout Labeling
1759 \labelwidthstring 00.00.0000
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 $$l
1765 \end_layout
1766
1767 \end_inset
1768
1769  「LaTeX名」
1770 \end_layout
1771
1772 \begin_layout Standard
1773 最後の変数は、LaTeXの
1774 \series bold
1775
1776 \backslash
1777 include
1778 \series default
1779 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1780 \end_layout
1781
1782 \begin_layout Standard
1783 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1784 \begin_inset Flex Code
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 /home/you/pdf/
1789 \end_layout
1790
1791 \end_inset
1792
1793 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1794 \end_layout
1795
1796 \begin_layout Standard
1797 \begin_inset listings
1798 inline false
1799 status open
1800
1801 \begin_layout Plain Layout
1802
1803 #!/bin/bash
1804 \end_layout
1805
1806 \begin_layout Plain Layout
1807
1808 FROMFILE=$1
1809 \end_layout
1810
1811 \begin_layout Plain Layout
1812
1813 TOFILE=`basename $2`
1814 \end_layout
1815
1816 \begin_layout Plain Layout
1817
1818 cp $FROMFILE /home/you/pdf/$TOFILE
1819 \end_layout
1820
1821 \end_inset
1822
1823 これを、自身のローカルLyXディレクトリ—たとえば
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 /home/you/.lyx/scripts/pdfcopier.sh
1829 \end_layout
1830
1831 \end_inset
1832
1833 —に保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1834 \begin_inset Flex MenuItem
1835 status collapsed
1836
1837 \begin_layout Plain Layout
1838 ツール\SpecialChar \menuseparator
1839 設定
1840 \end_layout
1841
1842 \end_inset
1843
1844 ダイアログの
1845 \begin_inset Flex MenuItem
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 ファイル処理\SpecialChar \menuseparator
1850 ファイル形式
1851 \end_layout
1852
1853 \end_inset
1854
1855 の中で、
1856 \begin_inset Flex MenuItem
1857 status collapsed
1858
1859 \begin_layout Plain Layout
1860 PDF(pdflatex)
1861 \end_layout
1862
1863 \end_inset
1864
1865 形式—あるいは他のPDF形式のうちどれか—を選択し、
1866 \begin_inset Flex MenuItem
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 複写子
1871 \end_layout
1872
1873 \end_inset
1874
1875 フィールドに
1876 \begin_inset Flex Code
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 pdfcopier.sh $$i $$o
1881 \end_layout
1882
1883 \end_inset
1884
1885 と入力します。
1886 \end_layout
1887
1888 \begin_layout Standard
1889 複写子は、LyX自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、LyXは自動的に
1890 \begin_inset Flex MenuItem
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 HTML
1895 \end_layout
1896
1897 \end_inset
1898
1899 形式と
1900 \begin_inset Flex MenuItem
1901 status collapsed
1902
1903 \begin_layout Plain Layout
1904 HTML
1905 \begin_inset space ~
1906 \end_inset
1907
1908 (MS Word)
1909 \end_layout
1910
1911 \end_inset
1912
1913 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1914 るように手配します。これらのファイルはすべて、元のLyXファイルのあるディレクトリのサブディレクトリに書き込まれます
1915 \begin_inset Foot
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
1920 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
1921 \begin_inset Flex MenuItem
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 L
1926 \begin_inset ERT
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930
1931 {}
1932 \end_layout
1933
1934 \end_inset
1935
1936 yXconv
1937 \end_layout
1938
1939 \end_inset
1940
1941 」となっているので、
1942 \begin_inset Flex MenuItem
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 /path/to/filename.lyx
1947 \end_layout
1948
1949 \end_inset
1950
1951 から生成されたHTMLファイルは、
1952 \begin_inset Flex MenuItem
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 /path/to/filename.html.L
1957 \begin_inset ERT
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961
1962 {}
1963 \end_layout
1964
1965 \end_inset
1966
1967 yXconv
1968 \end_layout
1969
1970 \end_inset
1971
1972 となります。.
1973  
1974 \end_layout
1975
1976 \end_inset
1977
1978
1979 \end_layout
1980
1981 \begin_layout Section
1982 変換子
1983 \begin_inset CommandInset label
1984 LatexCommand label
1985 name "sec:変換子"
1986
1987 \end_inset
1988
1989
1990 \end_layout
1991
1992 \begin_layout Standard
1993 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
1994 \begin_inset Flex MenuItem
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 ツール\SpecialChar \menuseparator
1999 設定\SpecialChar \menuseparator
2000 ファイル処理\SpecialChar \menuseparator
2001 変換子
2002 \end_layout
2003
2004 \end_inset
2005
2006 ダイアログで行います。
2007 \end_layout
2008
2009 \begin_layout Standard
2010 新規に変換子を定義するには、ドロップダウンリストから
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 変換元の形式
2016 \end_layout
2017
2018 \end_inset
2019
2020
2021 \begin_inset Flex MenuItem
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 変換先の形式
2026 \end_layout
2027
2028 \end_inset
2029
2030 を選択し、変換に必要なコマンドを入力してから
2031 \begin_inset Flex MenuItem
2032 status collapsed
2033
2034 \begin_layout Plain Layout
2035 追加
2036 \end_layout
2037
2038 \end_inset
2039
2040 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2041 \end_layout
2042
2043 \begin_layout Labeling
2044 \labelwidthstring 00.00.0000
2045 \begin_inset Flex Code
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 $$s
2050 \end_layout
2051
2052 \end_inset
2053
2054  LyXシステムディレクトリ
2055 \end_layout
2056
2057 \begin_layout Labeling
2058 \labelwidthstring 00.00.0000
2059 \begin_inset Flex Code
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 $$i
2064 \end_layout
2065
2066 \end_inset
2067
2068  入力ファイル
2069 \end_layout
2070
2071 \begin_layout Labeling
2072 \labelwidthstring 00.00.0000
2073 \begin_inset Flex Code
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 $$o
2078 \end_layout
2079
2080 \end_inset
2081
2082  出力ファイル
2083 \end_layout
2084
2085 \begin_layout Labeling
2086 \labelwidthstring 00.00.0000
2087 \begin_inset Flex Code
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091 $$b
2092 \end_layout
2093
2094 \end_inset
2095
2096  入力ファイルのベースファイル名(拡張子をとった部分)
2097 \end_layout
2098
2099 \begin_layout Labeling
2100 \labelwidthstring 00.00.0000
2101 \begin_inset Flex Code
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105 $$p
2106 \end_layout
2107
2108 \end_inset
2109
2110  入力ファイルのパス
2111 \end_layout
2112
2113 \begin_layout Labeling
2114 \labelwidthstring 00.00.0000
2115 \begin_inset Flex Code
2116 status collapsed
2117
2118 \begin_layout Plain Layout
2119 $$r
2120 \end_layout
2121
2122 \end_inset
2123
2124  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2125 \end_layout
2126
2127 \begin_layout Labeling
2128 \labelwidthstring 00.00.0000
2129 \begin_inset Flex Code
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 $$e
2134 \end_layout
2135
2136 \end_inset
2137
2138  文書エンコーディングのiconv名
2139 \end_layout
2140
2141 \begin_layout Standard
2142 \begin_inset Flex MenuItem
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 追加フラグ
2147 \end_layout
2148
2149 \end_inset
2150
2151 フィールドには、以下のフラグをコンマで区切って入力することができます。
2152 \end_layout
2153
2154 \begin_layout Labeling
2155 \labelwidthstring 00.00.0000
2156 \begin_inset Flex Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160 latex
2161 \end_layout
2162
2163 \end_inset
2164
2165  この変換子がLaTeXの一種を実行することを示します。これによって、LyXのLaTeXエラーログに記録を残せるようになります。
2166 \end_layout
2167
2168 \begin_layout Labeling
2169 \labelwidthstring 00.00.0000
2170 \begin_inset Flex Code
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 needaux
2175 \end_layout
2176
2177 \end_inset
2178
2179  変換にLaTeXの
2180 \begin_inset Flex MenuItem
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 .aux
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 xml
2199 \end_layout
2200
2201 \end_inset
2202
2203  出力がXMLであることを示します。
2204 \end_layout
2205
2206 \begin_layout Standard
2207 以下の3つのフラグは 
2208 \begin_inset Flex MenuItem
2209 status collapsed
2210
2211 \begin_layout Plain Layout
2212 key
2213 \begin_inset space ~
2214 \end_inset
2215
2216 =
2217 \begin_inset space ~
2218 \end_inset
2219
2220 value
2221 \end_layout
2222
2223 \end_inset
2224
2225 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2226 \end_layout
2227
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Flex Code
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 parselog
2235 \end_layout
2236
2237 \end_inset
2238
2239  これを指定すると、変換子の標準エラーが
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 infile.out
2245 \end_layout
2246
2247 \end_inset
2248
2249 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2250 \begin_inset Flex Code
2251 status collapsed
2252
2253 \begin_layout Plain Layout
2254 script < infile.out > infile.log
2255 \end_layout
2256
2257 \end_inset
2258
2259 の形で実行されるようになります。引数には
2260 \begin_inset Flex Code
2261 status collapsed
2262
2263 \begin_layout Plain Layout
2264 $$s
2265 \end_layout
2266
2267 \end_inset
2268
2269 を指定することができます。
2270 \end_layout
2271
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Flex Code
2275 status collapsed
2276
2277 \begin_layout Plain Layout
2278 resultdir
2279 \end_layout
2280
2281 \end_inset
2282
2283  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。LyXはこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛
2284 先にコピーします。引数には、
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$b
2290 \end_layout
2291
2292 \end_inset
2293
2294 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2295 \begin_inset Newline newline
2296 \end_inset
2297
2298 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2299 \end_layout
2300
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 resultfile
2308 \end_layout
2309
2310 \end_inset
2311
2312  これは出力ファイル名を指定するもので、
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 $$b
2318 \end_layout
2319
2320 \end_inset
2321
2322 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2323 \end_layout
2324
2325 \begin_layout Standard
2326 最後の3つは、LyXとともに導入される変換子には、現在いずれも使用されておりません。
2327 \end_layout
2328
2329 \begin_layout Standard
2330 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「LyXからPostScript」変換子が定義されていないのに、LyXはPos
2331 tScriptを書き出していることに気づかれることでしょう。これは、まずLaTeXファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTe
2332 XからDVI」変換子を使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。LyXはこのような変換子の「連鎖
2333 」を自動的に見つけ、つねに最も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的なLyX設定は、LaTeX
2334 からPDFへ変換するのに、以下の3つの方法を用意しています。(1)
2335 \begin_inset space ~
2336 \end_inset
2337
2338 直接
2339 \begin_inset Flex MenuItem
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 pdflatex
2344 \end_layout
2345
2346 \end_inset
2347
2348 を使用するもの。(2)
2349 \begin_inset space ~
2350 \end_inset
2351
2352 (DVIと)PostScriptを経由して
2353 \begin_inset Flex MenuItem
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 ps2pdf
2358 \end_layout
2359
2360 \end_inset
2361
2362 を使用するもの。(3)
2363 \begin_inset space ~
2364 \end_inset
2365
2366 DVI経由で
2367 \begin_inset Flex MenuItem
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 dvipdfm
2372 \end_layout
2373
2374 \end_inset
2375
2376 を使用するもの。このように代替連鎖を定義するには、第
2377 \begin_inset CommandInset ref
2378 LatexCommand ref
2379 reference "sec:ファイル形式"
2380
2381 \end_inset
2382
2383 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2384 \begin_inset Flex MenuItem
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 pdf
2389 \end_layout
2390
2391 \end_inset
2392
2393
2394 \begin_inset Flex MenuItem
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 pdf2
2399 \end_layout
2400
2401 \end_inset
2402
2403
2404 \begin_inset Flex MenuItem
2405 status collapsed
2406
2407 \begin_layout Plain Layout
2408 pdf3
2409 \end_layout
2410
2411 \end_inset
2412
2413 と命名された形式が定義されていて、すべて共通の拡張子
2414 \begin_inset Flex MenuItem
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418 .pdf
2419 \end_layout
2420
2421 \end_inset
2422
2423 を持ち、上記で言及した各変換方法に対応しています。
2424 \end_layout
2425
2426 \begin_layout Chapter
2427 LyXの各国語対応
2428 \begin_inset CommandInset label
2429 LatexCommand label
2430 name "cha:LyXの各国語対応"
2431
2432 \end_inset
2433
2434
2435 \end_layout
2436
2437 \begin_layout Standard
2438 LyXは、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、LyXは30言語の翻訳を提供しています。選択した言語は、使用する
2439 \emph on
2440 ロケール
2441 \emph default
2442 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2443 \begin_inset Flex Code
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 locale(5)
2448 \end_layout
2449
2450 \end_inset
2451
2452 から見ると良いかもしれません)。
2453 \end_layout
2454
2455 \begin_layout Standard
2456 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2457 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての短絡キーが定義され
2458 ていないことに気づかれるでしょう。短絡キーのために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ短絡キーを定義していないこともあるでしょう。もち
2459 ろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2460 \begin_inset Foot
2461 status collapsed
2462
2463 \begin_layout Plain Layout
2464 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、LyXコミュニティに報いるたいへん素晴らしい方法です!
2465 \end_layout
2466
2467 \end_inset
2468
2469 —は、LyXの将来のバージョンでこれらの欠点を修正しようとするでしょう。
2470 \end_layout
2471
2472 \begin_layout Section
2473 LyXを翻訳する
2474 \end_layout
2475
2476 \begin_layout Subsection
2477 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2478 \begin_inset Argument
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482 GUI(テキストメッセージ)を翻訳する
2483 \end_layout
2484
2485 \end_inset
2486
2487
2488 \end_layout
2489
2490 \begin_layout Standard
2491 LyXは、操作画面の国際化対応にGNU 
2492 \begin_inset Flex Code
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 gettext
2497 \end_layout
2498
2499 \end_inset
2500
2501 ライブラリを使用します。LyXのすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2502 \begin_inset Flex Code
2503 status collapsed
2504
2505 \begin_layout Plain Layout
2506 po
2507 \end_layout
2508
2509 \end_inset
2510
2511 ファイルが必要です。このファイルが利用可能であれば、そこから
2512 \begin_inset Flex Code
2513 status collapsed
2514
2515 \begin_layout Plain Layout
2516 mo
2517 \end_layout
2518
2519 \end_inset
2520
2521 ファイルを生成して、この
2522 \begin_inset Flex Code
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 mo
2527 \end_layout
2528
2529 \end_inset
2530
2531 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2532 \begin_inset Flex Code
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 gettext
2537 \end_layout
2538
2539 \end_inset
2540
2541 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果をLyXコミュニティの他の人々と
2542 分かち合いませんか。どのように段取りを進めればよいか、詳しくはLyX開発者メーリングリストにメールを送ってください。
2543 \end_layout
2544
2545 \begin_layout Standard
2546 要約すれば、以下のように行います(xxは言語コードを表します)。
2547 \end_layout
2548
2549 \begin_layout Itemize
2550 LyXソースコードをチェックアウトしてください(
2551 \begin_inset CommandInset href
2552 LatexCommand href
2553 name "ウェブ上の情報"
2554 target "http://www.lyx.org/devel/cvs.php"
2555
2556 \end_inset
2557
2558 参照)。
2559 \end_layout
2560
2561 \begin_layout Itemize
2562 \begin_inset Flex Code
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 lyx.pot
2567 \end_layout
2568
2569 \end_inset
2570
2571 ファイルを
2572 \begin_inset Flex Code
2573 status collapsed
2574
2575 \begin_layout Plain Layout
2576 **.po
2577 \end_layout
2578
2579 \end_inset
2580
2581 ファイルのあるフォルダにコピーして、
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 xx.po
2587 \end_layout
2588
2589 \end_inset
2590
2591 に名前を付け替えてください(
2592 \begin_inset Flex Code
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 lyx.pot
2597 \end_layout
2598
2599 \end_inset
2600
2601 がどこにもない場合には、コンソールからそのディレクトリで
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 make lyx.pot
2607 \end_layout
2608
2609 \end_inset
2610
2611 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2612 \end_layout
2613
2614 \begin_layout Itemize
2615 \begin_inset Flex Code
2616 status collapsed
2617
2618 \begin_layout Plain Layout
2619 xx.po
2620 \end_layout
2621
2622 \end_inset
2623
2624 を編集します
2625 \begin_inset Foot
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2630 \family typewriter
2631 Poedit
2632 \family default
2633 (全プラットフォーム用)や
2634 \family typewriter
2635 KBabel
2636 \family default
2637 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2638 \family typewriter
2639 Emacs
2640 \family default
2641 にも
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 po
2647 \end_layout
2648
2649 \end_inset
2650
2651 ファイルを編集するための「モード」があります。
2652 \end_layout
2653
2654 \end_inset
2655
2656 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない短絡キーがある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレ
2657 ーズに対応して翻訳しなくてはなりません。さらに、新しい
2658 \begin_inset Flex Code
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 po
2663 \end_layout
2664
2665 \end_inset
2666
2667 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2668 \end_layout
2669
2670 \begin_layout Standard
2671 もし、あなたがこれを自身のためだけに行っているのであれば、
2672 \end_layout
2673
2674 \begin_layout Itemize
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 xx.mo
2680 \end_layout
2681
2682 \end_inset
2683
2684 を生成してください。これは
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 msgfmt -o xx.mo < xx.po
2690 \end_layout
2691
2692 \end_inset
2693
2694 でできます。
2695 \end_layout
2696
2697 \begin_layout Itemize
2698 この
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 mo
2704 \end_layout
2705
2706 \end_inset
2707
2708 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 lyx.mo
2714 \end_layout
2715
2716 \end_inset
2717
2718 という名称にしてください(例:
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
2724 \end_layout
2725
2726 \end_inset
2727
2728 )。
2729 \end_layout
2730
2731 \begin_layout Standard
2732 しかしながら前述のように、この新しい
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 po
2738 \end_layout
2739
2740 \end_inset
2741
2742 ファイルを他の人たちが使用できるよう、LyX頒布版に追加できることが最善です。これを追加するには、LyXに変更を加える必要がありますので、もしその気があれば、開
2743 発者メーリングリストに電子メールを送ってください。
2744 \end_layout
2745
2746 \begin_layout Subsubsection
2747 多義訳語メッセージ
2748 \end_layout
2749
2750 \begin_layout Standard
2751 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 To
2757 \end_layout
2758
2759 \end_inset
2760
2761 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
2762 \begin_inset Flex Code
2763 status collapsed
2764
2765 \begin_layout Plain Layout
2766 gettext
2767 \end_layout
2768
2769 \end_inset
2770
2771 は、このような多義訳語を
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 To
2777 \end_layout
2778
2779 \end_inset
2780
2781 の代わりに、
2782 \begin_inset Flex Code
2783 status collapsed
2784
2785 \begin_layout Plain Layout
2786 To[[as in 'From format x to format y']]
2787 \end_layout
2788
2789 \end_inset
2790
2791
2792 \begin_inset Flex Code
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796 To[[as in 'From page x to page y']]
2797 \end_layout
2798
2799 \end_inset
2800
2801 としなくてはなりません。これによって、これら2つの
2802 \begin_inset Flex Code
2803 status collapsed
2804
2805 \begin_layout Plain Layout
2806 To
2807 \end_layout
2808
2809 \end_inset
2810
2811 は、
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 gettext
2817 \end_layout
2818
2819 \end_inset
2820
2821 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
2822 \end_layout
2823
2824 \begin_layout Standard
2825 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。LyXの翻
2826 訳機構では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
2827 \end_layout
2828
2829 \begin_layout Subsection
2830 説明書を翻訳する
2831 \end_layout
2832
2833 \begin_layout Standard
2834
2835 \begin_inset Flex MenuItem
2836 status collapsed
2837
2838 \begin_layout Plain Layout
2839 Help
2840 \end_layout
2841
2842 \end_inset
2843
2844 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
2845 \begin_inset Foot
2846 status collapsed
2847
2848 \begin_layout Plain Layout
2849 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
2850 \end_layout
2851
2852 \end_inset
2853
2854 、ロケールがその言語に設定されている場合、LyXはこれを自動的に使用します。LyXは、翻訳版を
2855 \begin_inset Flex Code
2856 status collapsed
2857
2858 \begin_layout Plain Layout
2859 L
2860 \begin_inset ERT
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864
2865 {}
2866 \end_layout
2867
2868 \end_inset
2869
2870 yXDir/doc/xx/DocName.lyx
2871 \end_layout
2872
2873 \end_inset
2874
2875
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 xx
2881 \end_layout
2882
2883 \end_inset
2884
2885 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
2886 \begin_inset Flex Code
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 DocName
2891 \end_layout
2892
2893 \end_inset
2894
2895 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
2896 うべきです。
2897 \end_layout
2898
2899 \begin_layout Itemize
2900 説明書翻訳ウェブページ
2901 \begin_inset CommandInset href
2902 LatexCommand href
2903 name "http://www.lyx.org/Translation"
2904 target "http://www.lyx.org/Translation"
2905
2906 \end_inset
2907
2908 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
2909 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
2910 \end_layout
2911
2912 \begin_layout Standard
2913 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
2914 \end_layout
2915
2916 \begin_layout Itemize
2917 文書化チームに所属してください!そのための情報が
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 Intro.lyx
2923 \end_layout
2924
2925 \end_inset
2926
2927
2928 \begin_inset Flex MenuItem
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 ヘルプ\SpecialChar \menuseparator
2933 はじめの一歩
2934 \end_layout
2935
2936 \end_inset
2937
2938 )にあります。また、この
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 Intro.lyx
2944 \end_layout
2945
2946 \end_inset
2947
2948 が最初に訳すべき文書です。
2949 \end_layout
2950
2951 \begin_layout Itemize
2952 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
2953 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
2954 \emph on
2955 警告!活版技術は病みつきになる可能性があるので注意してくさい!
2956 \emph default
2957
2958 \end_layout
2959
2960 \begin_layout Itemize
2961 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
2962 \begin_inset Flex Code
2963 status collapsed
2964
2965 \begin_layout Plain Layout
2966 UserDir/doc/xx/
2967 \end_layout
2968
2969 \end_inset
2970
2971 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
2972 \end_layout
2973
2974 \begin_layout Itemize
2975 (LyXチームが維持している)原典の説明書は、時折更新されます。変更点については、
2976 \begin_inset CommandInset href
2977 LatexCommand href
2978 name "http://www.lyx.org/trac/timeline"
2979 target "http://www.lyx.org/trac/timeline"
2980
2981 \end_inset
2982
2983 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
2984 \end_layout
2985
2986 \begin_layout Standard
2987 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
2988 \end_layout
2989
2990 \begin_layout Standard
2991 \begin_inset Branch OutDated
2992 status collapsed
2993
2994 \begin_layout Section
2995 International Keyboard Support
2996 \end_layout
2997
2998 \begin_layout Standard
2999
3000 \emph on
3001 [Editor's Note: The following section is by
3002 \emph default
3003  
3004 \shape smallcaps
3005 \emph on
3006 Ivan Schreter
3007 \shape default
3008 .
3009  It needs to be fixed to conform to the new Documentation Style sheet and
3010  to make use of the new v1.0 features.
3011  The whole thing also needs to be merged with the section following it.-jw
3012  It may also be badly out of date.-rh (2008)]
3013 \end_layout
3014
3015 \begin_layout Subsection
3016 Defining Own Keymaps: Keymap File Format
3017 \end_layout
3018
3019 \begin_layout Standard
3020 Let's look at a keyboard definition file a little closer.
3021  It is a plain text file defining
3022 \end_layout
3023
3024 \begin_layout Itemize
3025 key-to-key or key-to-string translations
3026 \end_layout
3027
3028 \begin_layout Itemize
3029 dead keys
3030 \end_layout
3031
3032 \begin_layout Itemize
3033 dead keys exceptions
3034 \end_layout
3035
3036 \begin_layout Standard
3037 To define key-to-key or key-to-string translation, use this command:
3038 \end_layout
3039
3040 \begin_layout Quotation
3041 \begin_inset Flex Code
3042 status collapsed
3043
3044 \begin_layout Plain Layout
3045
3046 \backslash
3047 kmap
3048 \end_layout
3049
3050 \end_inset
3051
3052  
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 key
3058 \end_layout
3059
3060 \end_inset
3061
3062  outstring 
3063 \end_layout
3064
3065 \begin_layout Standard
3066 where 
3067 \begin_inset Flex Code
3068 status collapsed
3069
3070 \begin_layout Plain Layout
3071 key
3072 \end_layout
3073
3074 \end_inset
3075
3076  is the key to be translated and 
3077 \begin_inset Flex Code
3078 status collapsed
3079
3080 \begin_layout Plain Layout
3081 outstring
3082 \end_layout
3083
3084 \end_inset
3085
3086  is the string to be inserted into the document.
3087  To define dead keys, use:
3088 \end_layout
3089
3090 \begin_layout Quotation
3091 \begin_inset Flex Code
3092 status collapsed
3093
3094 \begin_layout Plain Layout
3095
3096 \backslash
3097 kmod
3098 \end_layout
3099
3100 \end_inset
3101
3102  
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 key
3108 \end_layout
3109
3110 \end_inset
3111
3112  deadkey
3113 \end_layout
3114
3115 \begin_layout Standard
3116 where 
3117 \begin_inset Flex Code
3118 status collapsed
3119
3120 \begin_layout Plain Layout
3121 key
3122 \end_layout
3123
3124 \end_inset
3125
3126  is a keyboard key and 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 deadkey
3132 \end_layout
3133
3134 \end_inset
3135
3136  is dead key name.
3137  The following dead keys are supported (shortcut name is in parentheses):
3138 \end_layout
3139
3140 \begin_layout Quotation
3141
3142 \emph on
3143 Name
3144 \begin_inset space \hfill{}
3145 \end_inset
3146
3147 Example
3148 \end_layout
3149
3150 \begin_layout Quotation
3151 acute (acu)
3152 \begin_inset space \hfill{}
3153 \end_inset
3154
3155
3156 \lang english
3157 áéíóú
3158 \end_layout
3159
3160 \begin_layout Quotation
3161 grave (gra)
3162 \begin_inset space \hfill{}
3163 \end_inset
3164
3165
3166 \lang english
3167 àèìòù
3168 \end_layout
3169
3170 \begin_layout Quotation
3171 macron (mac)
3172 \begin_inset space \hfill{}
3173 \end_inset
3174
3175
3176 \lang english
3177  ō
3178 \end_layout
3179
3180 \begin_layout Quotation
3181 tilde (til)
3182 \begin_inset space \hfill{}
3183 \end_inset
3184
3185
3186 \lang english
3187 ñÑ
3188 \end_layout
3189
3190 \begin_layout Quotation
3191 underbar (underb)
3192 \begin_inset space \hfill{}
3193 \end_inset
3194
3195
3196 \begin_inset ERT
3197 status open
3198
3199 \begin_layout Plain Layout
3200
3201
3202 \backslash
3203 b o
3204 \end_layout
3205
3206 \end_inset
3207
3208
3209 \end_layout
3210
3211 \begin_layout Quotation
3212 cedilla (ced)
3213 \begin_inset space \hfill{}
3214 \end_inset
3215
3216
3217 \lang english
3218 çÇ
3219 \end_layout
3220
3221 \begin_layout Quotation
3222 underdot (underd)
3223 \begin_inset space \hfill{}
3224 \end_inset
3225
3226
3227 \begin_inset ERT
3228 status open
3229
3230 \begin_layout Plain Layout
3231
3232
3233 \backslash
3234 d o
3235 \end_layout
3236
3237 \end_inset
3238
3239
3240 \end_layout
3241
3242 \begin_layout Quotation
3243 circumflex (circu)
3244 \begin_inset space \hfill{}
3245 \end_inset
3246
3247
3248 \lang english
3249 âêîôû
3250 \end_layout
3251
3252 \begin_layout Quotation
3253 circle (circl)
3254 \begin_inset space \hfill{}
3255 \end_inset
3256
3257
3258 \lang english
3259 ÅůŮ
3260 \end_layout
3261
3262 \begin_layout Quotation
3263 tie (tie)
3264 \begin_inset space \hfill{}
3265 \end_inset
3266
3267
3268 \begin_inset ERT
3269 status open
3270
3271 \begin_layout Plain Layout
3272
3273
3274 \backslash
3275 t o
3276 \end_layout
3277
3278 \end_inset
3279
3280
3281 \end_layout
3282
3283 \begin_layout Quotation
3284 breve (bre)
3285 \begin_inset space \hfill{}
3286 \end_inset
3287
3288
3289 \lang english
3290 ă
3291 \lang japanese
3292
3293 \begin_inset ERT
3294 status open
3295
3296 \begin_layout Plain Layout
3297
3298
3299 \backslash
3300 u o
3301 \end_layout
3302
3303 \end_inset
3304
3305
3306 \end_layout
3307
3308 \begin_layout Quotation
3309 caron (car)
3310 \begin_inset space \hfill{}
3311 \end_inset
3312
3313
3314 \lang english
3315 čšž
3316 \end_layout
3317
3318 \begin_layout Quotation
3319 hungarian umlaut (hug)
3320 \begin_inset space \hfill{}
3321 \end_inset
3322
3323
3324 \lang english
3325 őű
3326 \end_layout
3327
3328 \begin_layout Quotation
3329 umlaut (uml)
3330 \begin_inset space \hfill{}
3331 \end_inset
3332
3333
3334 \lang english
3335 äöü
3336 \end_layout
3337
3338 \begin_layout Quotation
3339 dot (dot)
3340 \begin_inset space \hfill{}
3341 \end_inset
3342
3343
3344 \lang english
3345 ż
3346 \lang japanese
3347
3348 \begin_inset ERT
3349 status open
3350
3351 \begin_layout Plain Layout
3352
3353
3354 \backslash
3355 .s
3356 \end_layout
3357
3358 \end_inset
3359
3360
3361 \end_layout
3362
3363 \begin_layout Standard
3364 Since in many international keyboards there are exceptions to what some
3365  dead keys should do, you can define them using
3366 \end_layout
3367
3368 \begin_layout Quotation
3369 \begin_inset Flex Code
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373
3374 \backslash
3375 kxmod
3376 \end_layout
3377
3378 \end_inset
3379
3380  deadkey key outstring
3381 \end_layout
3382
3383 \begin_layout Standard
3384 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3385 , so you put in
3386 \end_layout
3387
3388 \begin_layout Quotation
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393
3394 \backslash
3395 kxmod
3396 \end_layout
3397
3398 \end_inset
3399
3400  caron o "
3401 \backslash
3402 ^o"
3403 \end_layout
3404
3405 \begin_layout Standard
3406 to make it work correctly.
3407  Also, you have to define as exceptions dead keys over i and j, to remove
3408  the dot from them before inserting an accent mark.
3409  I will change this when the time comes, but so far I haven't had time.
3410 \end_layout
3411
3412 \begin_layout Standard
3413 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3414  double backslash.
3415  Also, quotes and 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 #
3421 \end_layout
3422
3423 \end_inset
3424
3425  have different meaning.
3426  
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 #
3432 \end_layout
3433
3434 \end_inset
3435
3436  marks comments, quotes start and end LaTeX-style commands.
3437  To enter quote, you'll need to use 
3438 \begin_inset Flex Code
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442
3443 \backslash
3444 "
3445 \end_layout
3446
3447 \end_inset
3448
3449 , to enter 
3450 \begin_inset Flex Code
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 #
3455 \end_layout
3456
3457 \end_inset
3458
3459 , use 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464
3465 \backslash
3466 #
3467 \end_layout
3468
3469 \end_inset
3470
3471 .
3472 \end_layout
3473
3474 \begin_layout Standard
3475 If you make a keyboard description file that works for your language, please
3476  mail it to me, so I can include it in the next keymap distribution.
3477 \end_layout
3478
3479 \begin_layout Standard
3480 More keywords will be supported in keymap configuration file in future,
3481  like
3482 \end_layout
3483
3484 \begin_layout Itemize
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \backslash
3491 kinclude filename
3492 \end_layout
3493
3494 \end_inset
3495
3496
3497 \emph on
3498
3499 \begin_inset space \hfill{}
3500 \end_inset
3501
3502
3503 \begin_inset Flex Code
3504 status collapsed
3505
3506 \begin_layout Plain Layout
3507 include
3508 \end_layout
3509
3510 \end_inset
3511
3512  another file
3513 \end_layout
3514
3515 \begin_layout Itemize
3516 \begin_inset Flex Code
3517 status collapsed
3518
3519 \begin_layout Plain Layout
3520
3521 \backslash
3522 kprog program
3523 \end_layout
3524
3525 \end_inset
3526
3527
3528 \emph on
3529
3530 \begin_inset space \hfill{}
3531 \end_inset
3532
3533
3534 \begin_inset Flex Code
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 define
3539 \end_layout
3540
3541 \end_inset
3542
3543  an external keymap translation program 
3544 \end_layout
3545
3546 \begin_layout Standard
3547 Also, it should look into 
3548 \begin_inset Flex Code
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 lyxrc
3553 \end_layout
3554
3555 \end_inset
3556
3557  file for defaults, too (for example, a 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562
3563 \backslash
3564 kinclude
3565 \end_layout
3566
3567 \end_inset
3568
3569  option to include default keyboard).
3570 \end_layout
3571
3572 \end_inset
3573
3574
3575 \end_layout
3576
3577 \begin_layout Section
3578 国際キー配列
3579 \begin_inset CommandInset label
3580 LatexCommand label
3581 name "sec:国際キー配列"
3582
3583 \end_inset
3584
3585
3586 \end_layout
3587
3588 \begin_layout Standard
3589 \begin_inset Note Note
3590 status open
3591
3592 \begin_layout Plain Layout
3593 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3594 \end_layout
3595
3596 \begin_layout Plain Layout
3597 (RH)
3598 \end_layout
3599
3600 \end_inset
3601
3602
3603 \end_layout
3604
3605 \begin_layout Standard
3606 以下の2節では、
3607 \begin_inset Flex Code
3608 status collapsed
3609
3610 \begin_layout Plain Layout
3611 .kmap
3612 \end_layout
3613
3614 \end_inset
3615
3616 および
3617 \begin_inset Flex Code
3618 status collapsed
3619
3620 \begin_layout Plain Layout
3621 .cdef
3622 \end_layout
3623
3624 \end_inset
3625
3626 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3627 \end_layout
3628
3629 \begin_layout Subsection
3630 .kmapファイル
3631 \end_layout
3632
3633 \begin_layout Standard
3634 \begin_inset Flex Code
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 .kmap
3639 \end_layout
3640
3641 \end_inset
3642
3643 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 .kmap
3649 \end_layout
3650
3651 \end_inset
3652
3653 ファイルは、以下の各項で説明するように、
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 kmap
3659 \end_layout
3660
3661 \end_inset
3662
3663
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 kmod
3669 \end_layout
3670
3671 \end_inset
3672
3673
3674 \begin_inset Flex Code
3675 status collapsed
3676
3677 \begin_layout Plain Layout
3678 ksmod
3679 \end_layout
3680
3681 \end_inset
3682
3683
3684 \begin_inset Flex Code
3685 status collapsed
3686
3687 \begin_layout Plain Layout
3688 kcomb
3689 \end_layout
3690
3691 \end_inset
3692
3693 のキーワードを定義します。
3694 \end_layout
3695
3696 \begin_layout Labeling
3697 \labelwidthstring 00.00.0000
3698 \begin_inset Flex Code
3699 status collapsed
3700
3701 \begin_layout Plain Layout
3702 kmap
3703 \end_layout
3704
3705 \end_inset
3706
3707  文字を文字列に割り当てる
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711
3712 \backslash
3713 kmap 
3714 \family roman
3715 \emph on
3716 文字
3717 \family default
3718 \emph default
3719  
3720 \family roman
3721 \emph on
3722 文字列
3723 \end_layout
3724
3725 \begin_layout Standard
3726 これは、
3727 \emph on
3728 文字
3729 \emph default
3730
3731 \emph on
3732 文字列
3733 \emph default
3734 に割り当てます。
3735 \emph on
3736 文字列
3737 \emph default
3738 中では、二重引用符(")とバックスラッシュ(
3739 \backslash
3740 )は、前にバックスラッシュ(
3741 \backslash
3742 )を付けてエスケープしなくてはならないことに注意してください。
3743 \end_layout
3744
3745 \begin_layout Standard
3746 \begin_inset Flex MenuItem
3747 status collapsed
3748
3749 \begin_layout Plain Layout
3750 &
3751 \end_layout
3752
3753 \end_inset
3754
3755 を打鍵すると
3756 \begin_inset Flex MenuItem
3757 status collapsed
3758
3759 \begin_layout Plain Layout
3760 /
3761 \end_layout
3762
3763 \end_inset
3764
3765 記号が出力される
3766 \begin_inset Flex MenuItem
3767 status collapsed
3768
3769 \begin_layout Plain Layout
3770 kmap
3771 \end_layout
3772
3773 \end_inset
3774
3775 ステートメントを、一例としてあげると、
3776 \end_layout
3777
3778 \begin_layout LyX-Code
3779
3780 \backslash
3781 kmap & /
3782 \end_layout
3783
3784 \begin_layout Standard
3785 のようになります。
3786 \end_layout
3787
3788 \begin_layout Labeling
3789 \labelwidthstring 00.00.0000
3790 \begin_inset Flex Code
3791 status collapsed
3792
3793 \begin_layout Plain Layout
3794 kmod
3795 \end_layout
3796
3797 \end_inset
3798
3799  アクセント文字を指定する
3800 \end_layout
3801
3802 \begin_layout LyX-Code
3803
3804 \backslash
3805 kmod 
3806 \family roman
3807 \emph on
3808 文字 アクセント 許可文字
3809 \end_layout
3810
3811 \begin_layout Standard
3812 これは
3813 \emph on
3814 文字
3815 \emph default
3816
3817 \emph on
3818 許可文字
3819 \emph default
3820 のアクセントとするものです。これはデッドキー
3821 \begin_inset Foot
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825
3826 \emph on
3827 デッドキー
3828 \emph default
3829 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
3830 \emph on
3831 ä
3832 \emph default
3833 のようなウムラウトのついた文字は、このようにして出すことができます。
3834 \end_layout
3835
3836 \end_inset
3837
3838 機構です。
3839 \end_layout
3840
3841 \begin_layout Standard
3842
3843 \emph on
3844 文字
3845 \emph default
3846 を打鍵してから
3847 \emph on
3848 許可文字
3849 \emph default
3850 にないキーを打鍵すると、
3851 \emph on
3852 文字
3853 \emph default
3854 の後に許可文字ではないその文字が出力として表示されます。
3855 \begin_inset Flex MenuItem
3856 status collapsed
3857
3858 \begin_layout Plain Layout
3859 Backspace
3860 \end_layout
3861
3862 \end_inset
3863
3864 はデッドキーを取り消しますので、
3865 \emph on
3866 文字
3867 \emph default
3868
3869 \begin_inset Flex MenuItem
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 Backspace
3874 \end_layout
3875
3876 \end_inset
3877
3878 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
3879 \end_layout
3880
3881 \begin_layout Standard
3882 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
3883 \end_layout
3884
3885 \begin_layout LyX-Code
3886
3887 \backslash
3888 kmod ' acute aeiouAEIOU
3889 \end_layout
3890
3891 \begin_layout Labeling
3892 \labelwidthstring 00.00.0000
3893 \begin_inset Flex Code
3894 status collapsed
3895
3896 \begin_layout Plain Layout
3897 ksmod
3898 \end_layout
3899
3900 \end_inset
3901
3902  アクセント文字に例外を指定する
3903 \end_layout
3904
3905 \begin_layout LyX-Code
3906
3907 \backslash
3908 kxmod  
3909 \family roman
3910 \emph on
3911 アクセント 文字 結果
3912 \end_layout
3913
3914 \begin_layout Standard
3915 これは
3916 \emph on
3917 文字
3918 \emph default
3919 上の
3920 \emph on
3921 アクセント
3922 \emph default
3923 について例外を指定するものです。ここで
3924 \emph on
3925 アクセント
3926 \emph default
3927 には、前出の
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932
3933 \backslash
3934 kmod
3935 \end_layout
3936
3937 \end_inset
3938
3939 宣言で打鍵キーを既に割り当てられてなくてはならず、
3940 \emph on
3941 文字
3942 \emph default
3943
3944 \emph on
3945 アクセント
3946 \emph default
3947
3948 \emph on
3949 許可文字
3950 \emph default
3951 の集合に属していてはなりません。こうして
3952 \emph on
3953 アクセント
3954 \emph default
3955
3956 \emph on
3957 文字
3958 \emph default
3959 の順に入力すると、
3960 \emph on
3961 結果
3962 \emph default
3963 が出力されるようになります。
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 .kmap
3969 \end_layout
3970
3971 \end_inset
3972
3973 ファイルにこの宣言がない場合には、
3974 \emph on
3975 アクセント
3976 \emph default
3977
3978 \emph on
3979 文字
3980 \emph default
3981 と入力すると、
3982 \emph on
3983 アクセントキー
3984 \emph default
3985
3986 \emph on
3987 文字
3988 \emph default
3989
3990 \emph on
3991 アクセントキー
3992 \emph default
3993
3994 \begin_inset Flex Code
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998
3999 \backslash
4000 kmod
4001 \end_layout
4002
4003 \end_inset
4004
4005 宣言の最初の変数)と出力されます。
4006 \end_layout
4007
4008 \begin_layout Standard
4009 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4010 \end_layout
4011
4012 \begin_layout LyX-Code
4013
4014 \backslash
4015 kxmod acute i "
4016 \backslash
4017
4018 \backslash
4019 '{
4020 \backslash
4021
4022 \backslash
4023 i}"
4024 \end_layout
4025
4026 \begin_layout Labeling
4027 \labelwidthstring 00.00.0000
4028 \begin_inset Flex Code
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 kcomb
4033 \end_layout
4034
4035 \end_inset
4036
4037  2つのアクセント文字を結合する
4038 \end_layout
4039
4040 \begin_layout LyX-Code
4041
4042 \backslash
4043 kcomb 
4044 \family roman
4045 \emph on
4046 アクセント1 アクセント2 許可文字
4047 \end_layout
4048
4049 \begin_layout Standard
4050 これはなかなか難解になってきます。これは
4051 \emph on
4052 アクセント1
4053 \emph default
4054
4055 \emph on
4056 アクセント2
4057 \emph default
4058 を(この順番で)結びつけて、
4059 \emph on
4060 許可文字
4061 \emph default
4062 に効果を及ぼすようにします。
4063 \emph on
4064 アクセント1
4065 \emph default
4066
4067 \emph on
4068 アクセント2
4069 \emph default
4070 の打鍵キーは、ファイル内のこのコマンド
4071 \emph on
4072 よりも前に
4073 \emph default
4074
4075 \begin_inset Flex Code
4076 status collapsed
4077
4078 \begin_layout Plain Layout
4079
4080 \backslash
4081 kmod
4082 \end_layout
4083
4084 \end_inset
4085
4086 コマンドで設定されていなくてはなりません。
4087 \end_layout
4088
4089 \begin_layout Standard
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094 greek.kmap
4095 \end_layout
4096
4097 \end_inset
4098
4099 ファイル上にある例をとってみましょう。
4100 \end_layout
4101
4102 \begin_layout LyX-Code
4103
4104 \backslash
4105 kmod ; acute aeioyvhAEIOYVH 
4106 \backslash
4107 kmod : umlaut iyIY 
4108 \backslash
4109 kcomb acute umlaut iyIY
4110 \end_layout
4111
4112 \begin_layout Standard
4113 これは
4114 \begin_inset Flex MenuItem
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118 ;:i
4119 \end_layout
4120
4121 \end_inset
4122
4123 を押すと
4124 \begin_inset Flex Code
4125 status collapsed
4126
4127 \begin_layout Plain Layout
4128
4129 \backslash
4130 '{
4131 \backslash
4132 "{i}}
4133 \end_layout
4134
4135 \end_inset
4136
4137 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4138 \begin_inset Flex MenuItem
4139 status collapsed
4140
4141 \begin_layout Plain Layout
4142 ;: Backspace i
4143 \end_layout
4144
4145 \end_inset
4146
4147 と押した場合には、
4148 \begin_inset Flex Code
4149 status collapsed
4150
4151 \begin_layout Plain Layout
4152
4153 \backslash
4154 '{i}
4155 \end_layout
4156
4157 \end_inset
4158
4159 となります。
4160 \end_layout
4161
4162 \begin_layout Subsection
4163 .cdefファイル
4164 \end_layout
4165
4166 \begin_layout Standard
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171 .kmap
4172 \end_layout
4173
4174 \end_inset
4175
4176 による割り当てが行われた後、
4177 \begin_inset Flex Code
4178 status collapsed
4179
4180 \begin_layout Plain Layout
4181 .cdef
4182 \end_layout
4183
4184 \end_inset
4185
4186 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。LyX頒布版には、現在のところ、少なくとも
4187 \begin_inset Flex Code
4188 status collapsed
4189
4190 \begin_layout Plain Layout
4191 iso8859-1.cdef
4192 \end_layout
4193
4194 \end_inset
4195
4196 ファイルと
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 iso8859-2.cdef
4202 \end_layout
4203
4204 \end_inset
4205
4206 ファイルが含まれています。
4207 \end_layout
4208
4209 \begin_layout Standard
4210 一般的に
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215 .cdef
4216 \end_layout
4217
4218 \end_inset
4219
4220 ファイルは、
4221 \end_layout
4222
4223 \begin_layout LyX-Code
4224
4225 \family roman
4226 \emph on
4227 セット中の文字番号
4228 \family default
4229 \emph default
4230  
4231 \family roman
4232 \emph on
4233  文字列
4234 \end_layout
4235
4236 \begin_layout Standard
4237 という形の宣言の羅列です。たとえば、
4238 \begin_inset Flex MenuItem
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242
4243 \backslash
4244 '{e}
4245 \end_layout
4246
4247 \end_inset
4248
4249 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4250 \end_layout
4251
4252 \begin_layout LyX-Code
4253 233 "
4254 \backslash
4255
4256 \backslash
4257 '{e}"
4258 \end_layout
4259
4260 \begin_layout Standard
4261 ここで、
4262 \emph on
4263 文字列
4264 \emph default
4265 中の
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270
4271 \backslash
4272
4273 \end_layout
4274
4275 \end_inset
4276
4277
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282 "
4283 \end_layout
4284
4285 \end_inset
4286
4287 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 iso-8859-7.cdef
4293 \end_layout
4294
4295 \end_inset
4296
4297 ファイルには、
4298 \end_layout
4299
4300 \begin_layout LyX-Code
4301 192 "
4302 \backslash
4303
4304 \backslash
4305 '{
4306 \backslash
4307
4308 \backslash
4309
4310 \backslash
4311 "{i}}"
4312 \begin_inset Newline newline
4313 \end_inset
4314
4315 192 "
4316 \backslash
4317
4318 \backslash
4319
4320 \backslash
4321 "{
4322 \backslash
4323
4324 \backslash
4325 '{i}}"
4326 \end_layout
4327
4328 \begin_layout Standard
4329 という例があります。LyXは、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈がで
4330 きないかどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4331 \end_layout
4332
4333 \begin_layout Subsection
4334 デッドキー
4335 \end_layout
4336
4337 \begin_layout Standard
4338 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4339 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4340 \end_layout
4341
4342 \begin_layout Standard
4343 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4344 \begin_inset Flex Code
4345 status collapsed
4346
4347 \begin_layout Plain Layout
4348 lyxrc
4349 \end_layout
4350
4351 \end_inset
4352
4353 ファイル中で、
4354 \begin_inset Flex MenuItem
4355 status collapsed
4356
4357 \begin_layout Plain Layout
4358 ^
4359 \end_layout
4360
4361 \end_inset
4362
4363 キー(すなわち
4364 \begin_inset Flex MenuItem
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368 Shift-6
4369 \end_layout
4370
4371 \end_inset
4372
4373 キー)を、LyXコマンドの
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378 accent-circumflex
4379 \end_layout
4380
4381 \end_inset
4382
4383 に結びつけることができます。すると
4384 \begin_inset Flex MenuItem
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388 ^
4389 \end_layout
4390
4391 \end_inset
4392
4393 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4394 \begin_inset Flex MenuItem
4395 status collapsed
4396
4397 \begin_layout Plain Layout
4398 ^e
4399 \end_layout
4400
4401 \end_inset
4402
4403 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4404 \begin_inset Flex MenuItem
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408 ^t
4409 \end_layout
4410
4411 \end_inset
4412
4413 」と打鍵したならば、「
4414 \begin_inset Flex MenuItem
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 t
4419 \end_layout
4420
4421 \end_inset
4422
4423 」は曲折アクセントをとることは決してないために、LyXはビープを鳴らして文句を付けます。デッドキーの後に
4424 \begin_inset Flex MenuItem
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 スペース
4429 \end_layout
4430
4431 \end_inset
4432
4433 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4434 あります。たとえば、
4435 \begin_inset Flex MenuItem
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439 ,キー
4440 \end_layout
4441
4442 \end_inset
4443
4444 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4445 \end_layout
4446
4447 \begin_layout Standard
4448 デッドキーを割り当てるのによく用いられる方法は、
4449 \begin_inset Flex MenuItem
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 Meta-
4454 \end_layout
4455
4456 \end_inset
4457
4458
4459 \begin_inset Flex MenuItem
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 Ctrl-
4464 \end_layout
4465
4466 \end_inset
4467
4468
4469 \begin_inset Flex MenuItem
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 Shift-
4474 \end_layout
4475
4476 \end_inset
4477
4478 キーを、「
4479 \begin_inset Flex MenuItem
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483 ~
4484 \end_layout
4485
4486 \end_inset
4487
4488 」・「
4489 \begin_inset Flex MenuItem
4490 status collapsed
4491
4492 \begin_layout Plain Layout
4493 ,
4494 \end_layout
4495
4496 \end_inset
4497
4498 」・「
4499 \begin_inset Flex MenuItem
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 ^
4504 \end_layout
4505
4506 \end_inset
4507
4508 」のようなアクセントと一緒に用いる方法です。また、
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 xmodmap
4514 \end_layout
4515
4516 \end_inset
4517
4518
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523 xkeycaps
4524 \end_layout
4525
4526 \end_inset
4527
4528 を使って、特別な
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 Mode_Switch
4534 \end_layout
4535
4536 \end_inset
4537
4538 キーを設定する方法もあります。
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 Mode_Switch
4544 \end_layout
4545
4546 \end_inset
4547
4548 キーは、ちょうど
4549 \begin_inset Flex MenuItem
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 Shift
4554 \end_layout
4555
4556 \end_inset
4557
4558 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563 usldead_cedilla
4564 \end_layout
4565
4566 \end_inset
4567
4568 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応するLyXコマンドに割り当てることもできます
4569 \begin_inset Foot
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \noun on
4575 John Weiss
4576 \noun default
4577 からの註:これはまさに私が、自分の
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 ~/.lyx/lyxrc
4583 \end_layout
4584
4585 \end_inset
4586
4587
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592 ~/.xmodmap
4593 \end_layout
4594
4595 \end_inset
4596
4597 で行っていることです。私は、
4598 \begin_inset Flex MenuItem
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602 Scroll
4603 \begin_inset space ~
4604 \end_inset
4605
4606 Lock
4607 \end_layout
4608
4609 \end_inset
4610
4611 キーを
4612 \begin_inset Flex Code
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 Mode_Shift
4617 \end_layout
4618
4619 \end_inset
4620
4621 に仕立てて、多数の
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626 usldead_*
4627 \end_layout
4628
4629 \end_inset
4630
4631 シンボリックキーを
4632 \begin_inset Flex MenuItem
4633 status collapsed
4634
4635 \begin_layout Plain Layout
4636 Scroll
4637 \begin_inset space ~
4638 \end_inset
4639
4640 Lock-^
4641 \end_layout
4642
4643 \end_inset
4644
4645
4646 \begin_inset Flex MenuItem
4647 status collapsed
4648
4649 \begin_layout Plain Layout
4650 Scroll
4651 \begin_inset space ~
4652 \end_inset
4653
4654 Lock-~
4655 \end_layout
4656
4657 \end_inset
4658
4659 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4660 \end_layout
4661
4662 \end_inset
4663
4664 。この
4665 \begin_inset Flex Code
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669 Mode_Switch
4670 \end_layout
4671
4672 \end_inset
4673
4674 キーには、
4675 \begin_inset Flex MenuItem
4676 status collapsed
4677
4678 \begin_layout Plain Layout
4679 Ctrl-
4680 \end_layout
4681
4682 \end_inset
4683
4684 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出すLyXコマンドについては、
4685 \emph on
4686 LyX関数説明書
4687 \emph default
4688
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693 LFUN_ACCENT_*
4694 \end_layout
4695
4696 \end_inset
4697
4698 の項をご覧ください。ここには完備した一覧があります。
4699 \end_layout
4700
4701 \begin_layout Subsection
4702 自分の言語設定を保存する
4703 \end_layout
4704
4705 \begin_layout Standard
4706 \begin_inset Flex MenuItem
4707 status collapsed
4708
4709 \begin_layout Plain Layout
4710 ツール\SpecialChar \menuseparator
4711 設定
4712 \end_layout
4713
4714 \end_inset
4715
4716 ダイアログを使えば、LyXを起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
4717 \end_layout
4718
4719 \begin_layout Chapter
4720 文書クラス・レイアウト・ひな型の新規導入
4721 \begin_inset CommandInset label
4722 LatexCommand label
4723 name "cha:新規文書を導入"
4724
4725 \end_inset
4726
4727
4728 \begin_inset Argument
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 文書クラスを新規に導入する
4733 \end_layout
4734
4735 \end_inset
4736
4737
4738 \end_layout
4739
4740 \begin_layout Standard
4741 この章では、新しくLyXのレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規にLaTeX文書クラス(ドキュメントクラス)を正しく導
4742 入する方法を復習します。
4743 \end_layout
4744
4745 \begin_layout Standard
4746 まず、LyXとLaTeXの間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、LyXは、La
4747 TeXについて何も知らないと云うことです。実際のところ、LyXの観点からは、LaTeXは、LyXが出力を生成することができる、複数の「バックエンド形式」のうちの
4748 一つに過ぎないということです。同種のバックエンド形式には、DocBook・平文・XHTMLがあります。もちろんLaTeXは、とくに重要な形式ですが、LyXがLa
4749 TeXについて持っている情報のほとんどは、実はプログラム本体には含まれていないのです
4750 \begin_inset Foot
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 過度に複雑なため、LyXに「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
4755 \end_layout
4756
4757 \end_inset
4758
4759 。このような情報は、
4760 \begin_inset Flex Code
4761 status collapsed
4762
4763 \begin_layout Plain Layout
4764 article.cls
4765 \end_layout
4766
4767 \end_inset
4768
4769 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、LyXは、DocBookやXHTMLについてもほとんど知りません。LyXが知っているこ
4770 とは、レイアウトファイルの中にあります。
4771 \end_layout
4772
4773 \begin_layout Standard
4774 文書クラス用のレイアウトファイルは、LyX構成体---対応する様式や何らかの差込枠などを有する段落群---と、それに対応するLaTeX構成体・DocBook構成
4775 体・XHTML構成体との間の翻訳指南書のようなものです。たとえば、LyXが
4776 \begin_inset Flex Code
4777 status collapsed
4778
4779 \begin_layout Plain Layout
4780 article.cls
4781 \end_layout
4782
4783 \end_inset
4784
4785 について知っていることのほとんど総ては、
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 article.layout
4791 \end_layout
4792
4793 \end_inset
4794
4795 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
4796 としては、
4797 \begin_inset Flex Code
4798 status collapsed
4799
4800 \begin_layout Plain Layout
4801 article.layout
4802 \end_layout
4803
4804 \end_inset
4805
4806
4807 \begin_inset Flex Code
4808 status collapsed
4809
4810 \begin_layout Plain Layout
4811 book.layout
4812 \end_layout
4813
4814 \end_inset
4815
4816 や、文書クラス用の他のレイアウトファイルに取り込まれている
4817 \begin_inset Flex Code
4818 status collapsed
4819
4820 \begin_layout Plain Layout
4821 stdsections.inc
4822 \end_layout
4823
4824 \end_inset
4825
4826 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
4827 \begin_inset Flex Code
4828 status collapsed
4829
4830 \begin_layout Plain Layout
4831 stdsections.inc
4832 \end_layout
4833
4834 \end_inset
4835
4836 は、節様式や小節様式などとしてマークされている段落を、対応するLaTeX・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかをLyXに知らせるも
4837 のです。基本的に
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 article.layout
4843 \end_layout
4844
4845 \end_inset
4846
4847 ファイルは、これらの
4848 \begin_inset Flex Code
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852 std*.inc
4853 \end_layout
4854
4855 \end_inset
4856
4857 ファイルを取り込んでいるだけのものです。
4858 \end_layout
4859
4860 \begin_layout Standard
4861 しかしながら、LyX--LaTeX間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、LyX構成体自
4862 身が画面上にどのように表示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば
4863 混乱を引き起こす元となります。ある段落様式をLaTeXに翻訳する仕方をLyXに指示することは、その表示の仕方をLyXに指示するものではありません。逆に、ある段落
4864 様式の表示の仕方をLyXに指示することは、その段落様式をどのようにLaTeXに翻訳するかをLyXに指示するものではありません(ましてやLaTeXに表示の仕方を指
4865 示するものではありません)。つまり、一般的に、新しいLyX構成体を定義する際には、(i)
4866 \begin_inset space ~
4867 \end_inset
4868
4869 LaTeXにどのように翻訳するかをLyXに指示する、(ii)
4870 \begin_inset space ~
4871 \end_inset
4872
4873 それをどのように表示するかをLyXに指示する、という、二つのかなり異なることを行わなくてはならないのです。
4874 \end_layout
4875
4876 \begin_layout Standard
4877 もちろん、LyXの他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、LyXが、ブラウザ中での段落の表示方法を(CS
4878 Sの形で)出力するにあたって、当該段落をLyXが画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、LyXが内部的に行うことと、
4879 外部的に行う物事の間の区別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
4880 \begin_inset CommandInset ref
4881 LatexCommand ref
4882 reference "sec:XHTML出力のタグ"
4883
4884 \end_inset
4885
4886 節をご覧ください。
4887 \end_layout
4888
4889 \begin_layout Section
4890 新しいLaTeXファイルの導入
4891 \end_layout
4892
4893 \begin_layout Standard
4894 頒布版によっては、LyXで使いたいLaTeXパッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライド
4895 を準備するためのパッケージである、FoilTeXがないかもしれません。TeXLive(2008年以降)やMiKTeXのような最近のLaTeX頒布版には、これらの
4896 パッケージを導入するためのユーザーインタフェースが用意されています。たとえば、MiKTeXでは、付属の「Package
4897 \begin_inset space ~
4898 \end_inset
4899
4900 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
4901 ださい。
4902 \end_layout
4903
4904 \begin_layout Standard
4905 お使いのLaTeX頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って
4906 手動で導入してください。
4907 \end_layout
4908
4909 \begin_layout Enumerate
4910 \begin_inset CommandInset href
4911 LatexCommand href
4912 name "CTAN"
4913 target "http://www.ctan.org/"
4914
4915 \end_inset
4916
4917 などから欲しいパッケージを入手してください。
4918 \end_layout
4919
4920 \begin_layout Enumerate
4921 パッケージに「
4922 \begin_inset Flex Code
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926 .ins
4927 \end_layout
4928
4929 \end_inset
4930
4931 」で終わるファイル名が入っている場合(FoilTeXがその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 latex foiltex.ins
4937 \end_layout
4938
4939 \end_inset
4940
4941 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていのLaTeXパッケージは圧縮されていないので、このステップ
4942 は飛ばすことができます。
4943 \end_layout
4944
4945 \begin_layout Enumerate
4946 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
4947 \end_layout
4948
4949 \begin_deeper
4950 \begin_layout Enumerate
4951 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」TeXツリーに導入し、そうでなければ
4952 「ユーザー」TeXツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
4953 \begin_inset Flex Code
4954 status collapsed
4955
4956 \begin_layout Plain Layout
4957 texmf.cnf
4958 \end_layout
4959
4960 \end_inset
4961
4962 ファイルを参照してください
4963 \begin_inset Foot
4964 status collapsed
4965
4966 \begin_layout Plain Layout
4967 このファイルは、通常
4968 \family sans
4969 $TEXMF/web2c
4970 \family default
4971 ディレクトリにありますが、コマンド
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 kpsewhich texmf.cnf
4977 \end_layout
4978
4979 \end_inset
4980
4981 を実行してその場所を見つけることもできます。
4982 \end_layout
4983
4984 \end_inset
4985
4986 。「ローカル」TeXツリーの場所は、
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991 TEXMFLOCAL
4992 \end_layout
4993
4994 \end_inset
4995
4996 変数で定義されており、通常は
4997 \begin_inset Flex Code
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001 /usr/local/share/texmf/
5002 \end_layout
5003
5004 \end_inset
5005
5006 のような場所になっています。「ユーザー」TeXツリーの場所は、
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 TEXMFHOME
5012 \end_layout
5013
5014 \end_inset
5015
5016 で定義されており、通常は
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021 $HOME/texmf/
5022 \end_layout
5023
5024 \end_inset
5025
5026 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5027 、「ユーザー」ツリーにはこのような制限はありません。
5028 \begin_inset Newline newline
5029 \end_inset
5030
5031 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5032 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5033 \end_layout
5034
5035 \begin_layout Enumerate
5036 Windowでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、LaTeXの導入されているフォルダに移動し、それからサブフォルダ
5037 \begin_inset Flex Code
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041 ~
5042 \backslash
5043 tex
5044 \backslash
5045 latex
5046 \end_layout
5047
5048 \end_inset
5049
5050 に移動します(MiKTeXでは、これは既定では
5051 \begin_inset Flex Code
5052 status collapsed
5053
5054 \begin_layout Plain Layout
5055 ~:Programs
5056 \backslash
5057 MiKTeX
5058 \backslash
5059 tex
5060 \backslash
5061 latex
5062 \end_layout
5063
5064 \end_inset
5065
5066 です)
5067 \begin_inset Foot
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071 これは、英語版でのみ正しいパスになっています。独語版では
5072 \begin_inset Flex Code
5073 status collapsed
5074
5075 \begin_layout Plain Layout
5076 ~:Programme
5077 \backslash
5078 MiKTeX
5079 \backslash
5080 tex
5081 \backslash
5082 latex
5083 \end_layout
5084
5085 \end_inset
5086
5087 となり、他の言語でも同様です。
5088 \end_layout
5089
5090 \end_inset
5091
5092 。ここに新規フォルダ
5093 \begin_inset Flex Code
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097 foiltex
5098 \end_layout
5099
5100 \end_inset
5101
5102 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカルLaTeXフォ
5103 ルダで同じことを行います。たとえばMiKTeX
5104 \begin_inset space ~
5105 \end_inset
5106
5107 2.8では、これはWinXP上では
5108 \begin_inset Newline newline
5109 \end_inset
5110
5111
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 ~:
5117 \backslash
5118 Documents and Settings
5119 \backslash
5120 <ユーザー名>
5121 \backslash
5122 Application Data
5123 \backslash
5124
5125 \end_layout
5126
5127 \end_inset
5128
5129
5130 \begin_inset Newline newline
5131 \end_inset
5132
5133
5134 \begin_inset Phantom HPhantom
5135 status open
5136
5137 \begin_layout Plain Layout
5138
5139 \family typewriter
5140 ~:
5141 \backslash
5142
5143 \end_layout
5144
5145 \end_inset
5146
5147
5148 \begin_inset Flex Code
5149 status collapsed
5150
5151 \begin_layout Plain Layout
5152 MiKTeX
5153 \backslash
5154 2.8
5155 \backslash
5156 tex
5157 \backslash
5158 latex
5159 \end_layout
5160
5161 \end_inset
5162
5163
5164 \begin_inset Newline newline
5165 \end_inset
5166
5167 フォルダ、WinVista上では
5168 \begin_inset Newline newline
5169 \end_inset
5170
5171
5172 \begin_inset Flex Code
5173 status collapsed
5174
5175 \begin_layout Plain Layout
5176 ~:
5177 \backslash
5178 Users
5179 \backslash
5180 <ユーザー名>
5181 \backslash
5182 AppData
5183 \backslash
5184 Roaming
5185 \backslash
5186 2.8
5187 \backslash
5188 MiKTeX
5189 \backslash
5190 tex
5191 \backslash
5192 latex
5193 \end_layout
5194
5195 \end_inset
5196
5197
5198 \begin_inset Newline newline
5199 \end_inset
5200
5201 フォルダになります。
5202 \end_layout
5203
5204 \end_deeper
5205 \begin_layout Enumerate
5206 ここまで来れば、あとはLaTeXに新しいファイルがあることを告げるだけです。これは使用しているLaTeX頒布版に依存します。
5207 \end_layout
5208
5209 \begin_deeper
5210 \begin_layout Enumerate
5211 TeXLiveの場合には、コンソールから
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216 texhash
5217 \end_layout
5218
5219 \end_inset
5220
5221 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5222 \end_layout
5223
5224 \begin_layout Enumerate
5225 MiKTeXでは、パッケージを全ユーザー用に導入した場合には、「Settings
5226 \begin_inset space ~
5227 \end_inset
5228
5229 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5230
5231 \end_layout
5232
5233 \end_deeper
5234 \begin_layout Enumerate
5235 最後に、LyXに新しいパッケージがあることを告げなくてはなりません。そこで、LyXからツール\SpecialChar \menuseparator
5236 再初期設定メニューを実行して、LyXを再起動します。
5237 \end_layout
5238
5239 \begin_layout Standard
5240 これでパッケージが導入されました。この例では、文書クラス
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245 Slides
5246 \begin_inset space ~
5247 \end_inset
5248
5249 (FoilTe
5250 \begin_inset ERT
5251 status collapsed
5252
5253 \begin_layout Plain Layout
5254
5255 {}
5256 \end_layout
5257
5258 \end_inset
5259
5260 X)
5261 \end_layout
5262
5263 \end_inset
5264
5265
5266 \begin_inset Flex MenuItem
5267 status collapsed
5268
5269 \begin_layout Plain Layout
5270 文書\SpecialChar \menuseparator
5271 設定\SpecialChar \menuseparator
5272 文書クラス
5273 \end_layout
5274
5275 \end_inset
5276
5277 で利用可能になっているはずです。
5278 \end_layout
5279
5280 \begin_layout Standard
5281 \begin_inset Flex MenuItem
5282 status collapsed
5283
5284 \begin_layout Plain Layout
5285 文書\SpecialChar \menuseparator
5286 設定\SpecialChar \menuseparator
5287 文書クラス
5288 \end_layout
5289
5290 \end_inset
5291
5292 メニューに列挙されてもいないLaTeX文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5293 \end_layout
5294
5295 \begin_layout Section
5296 レイアウトファイルの型
5297 \end_layout
5298
5299 \begin_layout Standard
5300 この節は、レイアウト情報を含む各種LyXファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、LyXがそれら
5301 をどのように表示すべきなのか、また、それらをどのようにLaTeXやDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5302 \end_layout
5303
5304 \begin_layout Standard
5305 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、LaTeXクラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会い
5306 うるケースや問題をすべてカバーすることはとても望めません。LyXユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊
5307 かな人々がよく顔を出していますので、気軽に質問を投げかけてみてください。
5308 \end_layout
5309
5310 \begin_layout Standard
5311 新しいレイアウトを準備するに当たっては、LyXと共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できるLaTeX文書クラス用のLyX
5312 レイアウトを作ったり、他の人々にも有用なモジュールをお書きになった場合には、
5313 \begin_inset CommandInset href
5314 LatexCommand href
5315 name "LyX Wikiのレイアウトに関する節"
5316 target "http://wiki.lyx.org/Layouts/Layouts"
5317
5318 \end_inset
5319
5320 か、LyX開発者メーリングリストに投稿して、LyX頒布版に同梱することができるようにしてください
5321 \begin_inset Foot
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325 LyXはGeneral Public Licenseの下でライセンスされていますので、LyXに寄贈されたものは総て同じライセンス下に置かれることに注意してくださ
5326 い。
5327 \end_layout
5328
5329 \end_inset
5330
5331
5332 \end_layout
5333
5334 \begin_layout Subsection
5335 レイアウトモジュール
5336 \begin_inset CommandInset label
5337 LatexCommand label
5338 name "sub:レイアウトモジュール"
5339
5340 \end_inset
5341
5342
5343 \end_layout
5344
5345 \begin_layout Standard
5346 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5347 、それは
5348 \begin_inset Flex Code
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352 .layout
5353 \end_layout
5354
5355 \end_inset
5356
5357 拡張子を持ち、文書クラスに関する情報をLyXに提供するものを指します。しかしながら、LyX 1.6以降、レイアウト情報は、拡張子が
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 .module
5363 \end_layout
5364
5365 \end_inset
5366
5367 のレイアウト
5368 \emph on
5369 モジュール
5370 \emph default
5371 にも含めることができます。レイアウトがLaTeXクラスに対応しているように、モジュールはLaTeXパッケージに対応するものであり、
5372 \begin_inset Flex Code
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 endnotes
5377 \end_layout
5378
5379 \end_inset
5380
5381 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5382 イアウトで使用できるという意味において、一面、
5383 \begin_inset Flex Code
5384 status collapsed
5385
5386 \begin_layout Plain Layout
5387 stdsections.inc
5388 \end_layout
5389
5390 \end_inset
5391
5392 等のインクルードファイル
5393 \begin_inset Foot
5394 status collapsed
5395
5396 \begin_layout Plain Layout
5397 これらは任意の拡張子をつけることができますが、慣習的に
5398 \begin_inset Flex Code
5399 status collapsed
5400
5401 \begin_layout Plain Layout
5402 .inc
5403 \end_layout
5404
5405 \end_inset
5406
5407 拡張子が用いられます。
5408 \end_layout
5409
5410 \end_inset
5411
5412 のようなものです。相異なる点といえば、
5413 \begin_inset Flex Code
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 article.cls
5418 \end_layout
5419
5420 \end_inset
5421
5422 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5423 \begin_inset Flex MenuItem
5424 status collapsed
5425
5426 \begin_layout Plain Layout
5427 文書\SpecialChar \menuseparator
5428 設定
5429 \end_layout
5430
5431 \end_inset
5432
5433 ダイアログで選択するだけですみます。
5434 \end_layout
5435
5436 \begin_layout Standard
5437 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5438 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5439 \end_layout
5440
5441 \begin_layout Standard
5442 新しいモジュールを作成し、それを
5443 \begin_inset Flex Code
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 layout/
5448 \end_layout
5449
5450 \end_inset
5451
5452 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、LyXの再設定を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合に
5453 は、
5454 \begin_inset Flex MenuItem
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 文書\SpecialChar \menuseparator
5459 設定
5460 \end_layout
5461
5462 \end_inset
5463
5464 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5465 \emph on
5466 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5467 \emph default
5468 。もっと言えば、
5469 \emph on
5470 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5471 \emph default
5472 。もちろん開発陣は、そのような場合でもLyXが安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こさ
5473 れることがあるからです。
5474 \end_layout
5475
5476 \begin_layout Subsubsection
5477 ローカルレイアウト
5478 \end_layout
5479
5480 \begin_layout Standard
5481 LyXに於けるモジュールは、LaTeXに於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょう
5482 から、そのような場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウ
5483 ト」なのです。
5484 \end_layout
5485
5486 \begin_layout Standard
5487 これは、
5488 \family sans
5489 文書\SpecialChar \menuseparator
5490 設定\SpecialChar \menuseparator
5491 ローカルのレイアウト
5492 \family default
5493 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5494 は、その文書専属のモジュールだと考えることができます。したがって、
5495 \begin_inset Flex Code
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 Format
5500 \end_layout
5501
5502 \end_inset
5503
5504 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(LyX 2.0では、最新書式は35です)。
5505 また、ローカルレイアウトは、LyX 1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書をLyX 1.5またはそれ以前の版に(
5506 ローカルレイアウト情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ---第1.6版はUIはありませんがローカルレイアウトをサ
5507 ポートしています---書き出せることを望むならば、書式11を用いて、さらにLyX 1.6で使用できるレイアウト要素のみを使用してください。
5508 \end_layout
5509
5510 \begin_layout Standard
5511 \begin_inset Flex Code
5512 status collapsed
5513
5514 \begin_layout Plain Layout
5515 ローカルのレイアウト
5516 \end_layout
5517
5518 \end_inset
5519
5520 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
5521 ているかどうかが検証されます。すると、LyXがその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、LyXを
5522 ターミナル(擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
5523 \end_layout
5524
5525 \begin_layout Standard
5526 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
5527 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
5528 \end_layout
5529
5530 \begin_layout Subsection
5531 \begin_inset Flex MenuItem
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 .sty
5536 \end_layout
5537
5538 \end_inset
5539
5540 ファイル用のレイアウト
5541 \end_layout
5542
5543 \begin_layout Standard
5544 新しくLaTeX文書クラスをサポートしようとするとき、LaTeX2eクラス(
5545 \begin_inset Flex Code
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 .cls
5550 \end_layout
5551
5552 \end_inset
5553
5554 )ファイルが絡む場合と、スタイル(
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 .sty
5560 \end_layout
5561
5562 \end_inset
5563
5564 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5565 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5566 が当てはまります。
5567 \end_layout
5568
5569 \begin_layout Standard
5570 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5571 \begin_inset Flex MenuItem
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575 myclass.sty
5576 \end_layout
5577
5578 \end_inset
5579
5580 という名称で、標準的なクラスである
5581 \begin_inset Flex MenuItem
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585 report.cls
5586 \end_layout
5587
5588 \end_inset
5589
5590 と共に用いられるものと仮定しましょう。
5591 \end_layout
5592
5593 \begin_layout Standard
5594 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
5595 \begin_inset Foot
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。LyXでは、起動時に
5600 \begin_inset Flex MenuItem
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604 -userdir
5605 \end_layout
5606
5607 \end_inset
5608
5609 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
5610 \end_layout
5611
5612 \end_inset
5613
5614
5615 \end_layout
5616
5617 \begin_layout LyX-Code
5618 cp report.layout ~/.lyx/layouts/myclass.layout
5619 \end_layout
5620
5621 \begin_layout Standard
5622 それから、
5623 \begin_inset Flex Code
5624 status collapsed
5625
5626 \begin_layout Plain Layout
5627 myclass.layout
5628 \end_layout
5629
5630 \end_inset
5631
5632 を編集して、
5633 \end_layout
5634
5635 \begin_layout LyX-Code
5636
5637 \backslash
5638 DeclareLaT
5639 \begin_inset ERT
5640 status collapsed
5641
5642 \begin_layout Plain Layout
5643
5644 {}
5645 \end_layout
5646
5647 \end_inset
5648
5649 eXClass{report}
5650 \end_layout
5651
5652 \begin_layout Standard
5653 という行を
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657
5658 \backslash
5659 DeclareLaT
5660 \bar under
5661 \lang english
5662
5663 \begin_inset ERT
5664 status collapsed
5665
5666 \begin_layout Plain Layout
5667
5668 {}
5669 \end_layout
5670
5671 \end_inset
5672
5673
5674 \bar default
5675 \lang japanese
5676 eXClass[report, myclass.sty]{report (myclass)}
5677 \end_layout
5678
5679 \begin_layout Standard
5680 のように変更してください。それから、ファイル冒頭辺りに
5681 \end_layout
5682
5683 \begin_layout LyX-Code
5684 Preamble 
5685 \begin_inset Newline newline
5686 \end_inset
5687
5688     
5689 \backslash
5690 usepackage{myclass}
5691 \begin_inset Newline newline
5692 \end_inset
5693
5694 EndPreamble
5695 \end_layout
5696
5697 \begin_layout Standard
5698 と書き加えてください。
5699 \end_layout
5700
5701 \begin_layout Standard
5702 LyXを起動して
5703 \begin_inset Flex MenuItem
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 ツール\SpecialChar \menuseparator
5708 再設定
5709 \end_layout
5710
5711 \end_inset
5712
5713 を選択してください。それからLyXを再起動し、新規文書を作成してみてください。すると、
5714 \begin_inset Flex MenuItem
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 文書\SpecialChar \menuseparator
5719 設定
5720 \end_layout
5721
5722 \end_inset
5723
5724 ダイアログの文書クラスオプションに「
5725 \begin_inset Flex MenuItem
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729 report (myclass)
5730 \end_layout
5731
5732 \end_inset
5733
5734 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
5735 \begin_inset Flex Code
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 report
5740 \end_layout
5741
5742 \end_inset
5743
5744 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
5745 \begin_inset Flex Code
5746 status collapsed
5747
5748 \begin_layout Plain Layout
5749 stdsections.inc
5750 \end_layout
5751
5752 \end_inset
5753
5754 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
5755 \begin_inset Flex Code
5756 status collapsed
5757
5758 \begin_layout Plain Layout
5759 stdsections.inc
5760 \end_layout
5761
5762 \end_inset
5763
5764 も取り込む
5765 \begin_inset Flex Code
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 Input stdclass.inc
5770 \end_layout
5771
5772 \end_inset
5773
5774 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
5775 \end_layout
5776
5777 \begin_layout LyX-Code
5778 Style Chapter
5779 \end_layout
5780
5781 \begin_layout LyX-Code
5782     Font
5783 \end_layout
5784
5785 \begin_layout LyX-Code
5786         Family Sans
5787 \end_layout
5788
5789 \begin_layout LyX-Code
5790     EndFont
5791 \end_layout
5792
5793 \begin_layout LyX-Code
5794 End
5795 \end_layout
5796
5797 \begin_layout Standard
5798 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
5799 \end_layout
5800
5801 \begin_layout Standard
5802 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
5803 いては、第
5804 \begin_inset CommandInset ref
5805 LatexCommand ref
5806 reference "sec:テキストクラス"
5807
5808 \end_inset
5809
5810 節の情報を参照してください。
5811 \end_layout
5812
5813 \begin_layout Standard
5814 もし
5815 \begin_inset Flex Code
5816 status collapsed
5817
5818 \begin_layout Plain Layout
5819 myclass.sty
5820 \end_layout
5821
5822 \end_inset
5823
5824 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
5825 う。最も簡単なモジュールの例としては、以下のようなものになります。
5826 \end_layout
5827
5828 \begin_layout LyX-Code
5829 #
5830 \backslash
5831 DeclareLyXModule{My Package}
5832 \end_layout
5833
5834 \begin_layout LyX-Code
5835 #DescriptionBegin
5836 \end_layout
5837
5838 \begin_layout LyX-Code
5839 #Support for mypkg.sty.
5840 \end_layout
5841
5842 \begin_layout LyX-Code
5843 #DescriptionEnd
5844 \begin_inset Newline newline
5845 \end_inset
5846
5847
5848 \end_layout
5849
5850 \begin_layout LyX-Code
5851 Format 21
5852 \begin_inset Newline newline
5853 \end_inset
5854
5855
5856 \end_layout
5857
5858 \begin_layout LyX-Code
5859 Preamble
5860 \begin_inset Newline newline
5861 \end_inset
5862
5863     
5864 \backslash
5865 usepackage{mypkg}
5866 \begin_inset Newline newline
5867 \end_inset
5868
5869 EndPreamble
5870 \end_layout
5871
5872 \begin_layout Standard
5873 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
5874 \begin_inset CommandInset ref
5875 LatexCommand ref
5876 reference "sec:テキストクラス"
5877
5878 \end_inset
5879
5880 節を参照してください。
5881 \end_layout
5882
5883 \begin_layout Subsection
5884 \begin_inset Flex MenuItem
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 .cls
5889 \end_layout
5890
5891 \end_inset
5892
5893 ファイル用のレイアウト
5894 \end_layout
5895
5896 \begin_layout Standard
5897 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
5898 \begin_inset Flex MenuItem
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 book.cls
5903 \end_layout
5904
5905 \end_inset
5906
5907 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
5908 \end_layout
5909
5910 \begin_layout LyX-Code
5911
5912 \backslash
5913 LoadClass{book}
5914 \end_layout
5915
5916 \begin_layout Standard
5917 という行がないかどうか探してください。もしこれがあれば、
5918 \begin_inset Flex Code
5919 status collapsed
5920
5921 \begin_layout Plain Layout
5922 DeclareLaTeXClass
5923 \end_layout
5924
5925 \end_inset
5926
5927 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
5928 \begin_inset Flex Code
5929 status collapsed
5930
5931 \begin_layout Plain Layout
5932 thesis
5933 \end_layout
5934
5935 \end_inset
5936
5937 であり、
5938 \begin_inset Flex Code
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 book
5943 \end_layout
5944
5945 \end_inset
5946
5947 クラスに基づいていれば、
5948 \begin_inset Flex Code
5949 status collapsed
5950
5951 \begin_layout Plain Layout
5952 DeclareLaTeXClass
5953 \end_layout
5954
5955 \end_inset
5956
5957 行は以下のようにします
5958 \begin_inset Foot
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 さらにLyXは、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 thesis.layout
5968 \end_layout
5969
5970 \end_inset
5971
5972 という名前で保存するのが最も簡単です。 
5973 \end_layout
5974
5975 \end_inset
5976
5977
5978 \end_layout
5979
5980 \begin_layout LyX-Code
5981
5982 \backslash
5983 DeclareLaT
5984 \begin_inset ERT
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988
5989 {}
5990 \end_layout
5991
5992 \end_inset
5993
5994 eXClass[thesis,book]{thesis}
5995 \end_layout
5996
5997 \begin_layout Standard
5998 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似したLaTeXクラスを
5999 使用している既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のフ
6000 ァイルを作業の開始点としてください。
6001 \end_layout
6002
6003 \begin_layout Subsection
6004 ひな型を作成する
6005 \begin_inset CommandInset label
6006 LatexCommand label
6007 name "sec:ひな型を作成する"
6008
6009 \end_inset
6010
6011
6012 \end_layout
6013
6014 \begin_layout Standard
6015 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6016 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、LyX添付のひな型をあれこれ見てみるのもよいでしょう。
6017 \end_layout
6018
6019 \begin_layout Standard
6020 ひな型は、通常の文書と同様、LyXを使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている
6021 点です。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026
6027 \backslash
6028 fontscheme
6029 \end_layout
6030
6031 \end_inset
6032
6033
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038
6039 \backslash
6040 papersize
6041 \end_layout
6042
6043 \end_inset
6044
6045 などの対応するコマンドをひな型LyXファイルから取り除く必要があります。これは、たとえば
6046 \begin_inset Flex Code
6047 status collapsed
6048
6049 \begin_layout Plain Layout
6050 vi
6051 \end_layout
6052
6053 \end_inset
6054
6055
6056 \begin_inset Flex Code
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 notepad
6061 \end_layout
6062
6063 \end_inset
6064
6065 のような、どの軽いテキストエディタでも行うことができます。
6066 \end_layout
6067
6068 \begin_layout Standard
6069 編集したひな型を
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 UserDir/templates/
6075 \end_layout
6076
6077 \end_inset
6078
6079 に置き、グローバルなひな型ディレクトリ
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 LyXDir/templates/
6085 \end_layout
6086
6087 \end_inset
6088
6089 から使用したいものを同じ場所にコピーし、
6090 \begin_inset Flex MenuItem
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 ツール\SpecialChar \menuseparator
6095 設定\SpecialChar \menuseparator
6096 パス
6097 \end_layout
6098
6099 \end_inset
6100
6101 ダイアログのひな型パスを再定義してください。
6102 \end_layout
6103
6104 \begin_layout Standard
6105 ところで、特別な意味を持つひな型
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 defaults.lyx
6111 \end_layout
6112
6113 \end_inset
6114
6115 があることに注意してください。このひな型は、
6116 \begin_inset Flex MenuItem
6117 status collapsed
6118
6119 \begin_layout Plain Layout
6120 ファイル\SpecialChar \menuseparator
6121 新規
6122 \end_layout
6123
6124 \end_inset
6125
6126 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型をLyX内部から作成するのにしなくてはならないことは、対応する設定を持つ
6127 文書を開き、
6128 \begin_inset Flex MenuItem
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 文書既定値として保存
6133 \end_layout
6134
6135 \end_inset
6136
6137 ボタンを押すことです。
6138 \end_layout
6139
6140 \begin_layout Subsection
6141 旧レイアウトファイルの更新
6142 \end_layout
6143
6144 \begin_layout Standard
6145 レイアウトファイルの書式は、LyXのリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。この過程は、LyX第1.4版から自動化されま
6146 した。LyXが古い書式のレイアウトファイルを読み込むと、LyXは、自動的に変換ツール
6147 \begin_inset Flex Code
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151 LyXDir/scripts/layout2layout.py
6152 \end_layout
6153
6154 \end_inset
6155
6156 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、LyXがこれを毎
6157 回行なわくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6158 \end_layout
6159
6160 \begin_layout LyX-Code
6161 mv myclass.layout myclass.old
6162 \end_layout
6163
6164 \begin_layout LyX-Code
6165 python LyXDir/scripts/layout2layout.py myclass.old myclassnew.layout
6166 \end_layout
6167
6168 \begin_layout Standard
6169 もちろん、
6170 \begin_inset Flex Code
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 LyXDir
6175 \end_layout
6176
6177 \end_inset
6178
6179 は、お使いのLyXシステムディレクトリ名に置き換えてください。
6180 \end_layout
6181
6182 \begin_layout Standard
6183 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6184 \end_layout
6185
6186 \begin_layout Section
6187 \begin_inset CommandInset label
6188 LatexCommand label
6189 name "sec:テキストクラス"
6190
6191 \end_inset
6192
6193 レイアウトファイルの書式
6194 \end_layout
6195
6196 \begin_layout Standard
6197 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6198 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6199 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6200 て、もう一杯大人向け飲料をどうぞ。適量ね。
6201 \end_layout
6202
6203 \begin_layout Standard
6204 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6205 \begin_inset Flex Code
6206 status collapsed
6207
6208 \begin_layout Plain Layout
6209 Style
6210 \end_layout
6211
6212 \end_inset
6213
6214
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 style
6220 \end_layout
6221
6222 \end_inset
6223
6224
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 StYlE
6230 \end_layout
6231
6232 \end_inset
6233
6234 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6235 \begin_inset Flex Code
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239
6240 \emph on
6241 強調
6242 \end_layout
6243
6244 \end_inset
6245
6246 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6247 \begin_inset Flex Code
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 浮動小数点型=
6252 \emph on
6253 既定値
6254 \end_layout
6255
6256 \end_inset
6257
6258 のように表示されます。
6259 \end_layout
6260
6261 \begin_layout Subsection
6262 文書クラス宣言
6263 \end_layout
6264
6265 \begin_layout Standard
6266 レイアウトファイル中の
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 #
6272 \end_layout
6273
6274 \end_inset
6275
6276 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 *.layout
6282 \end_layout
6283
6284 \end_inset
6285
6286 ファイルは、以下のような行で始めなくてはならないのです。
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290
6291 \size small
6292 #% Do not delete the line below; configure depends on this 
6293 \end_layout
6294
6295 \begin_layout LyX-Code
6296
6297 \size small
6298 #  
6299 \backslash
6300 DeclareLaT
6301 \size default
6302
6303 \begin_inset ERT
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307
6308 {}
6309 \end_layout
6310
6311 \end_inset
6312
6313
6314 \size small
6315 eXClass{article}
6316 \end_layout
6317
6318 \begin_layout Standard
6319 この2行目は、LyXを初期設定や(再)設定するときに用いられるのです。このレイアウトファイルは、LaTeXスクリプト
6320 \begin_inset Flex Code
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 chkconfig.ltx
6325 \end_layout
6326
6327 \end_inset
6328
6329 が、
6330 \begin_inset Flex Code
6331 status collapsed
6332
6333 \begin_layout Plain Layout
6334 #
6335 \end_layout
6336
6337 \end_inset
6338
6339 を無視する特別なモードで読み込みます。1行目は単なるLaTeXコメントですが、2行目にはテキストクラスの宣言が書かれています。これらの行が
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 article.layout
6345 \end_layout
6346
6347 \end_inset
6348
6349 と名付けられたファイルにあると、
6350 \begin_inset Flex Code
6351 status collapsed
6352
6353 \begin_layout Plain Layout
6354 article
6355 \end_layout
6356
6357 \end_inset
6358
6359 (レイアウトファイル名)という名称のテキストクラスを定義し、LaTeX文書クラス
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 article.cls
6365 \end_layout
6366
6367 \end_inset
6368
6369 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「article」という文字列は、
6370 \begin_inset Flex MenuItem
6371 status collapsed
6372
6373 \begin_layout Plain Layout
6374 文書\SpecialChar \menuseparator
6375 設定
6376 \end_layout
6377
6378 \end_inset
6379
6380 ダイアログのテキストクラスの説明に使用されます。
6381 \end_layout
6382
6383 \begin_layout Standard
6384 節見出し表示に変更を加えた、
6385 \begin_inset Flex Code
6386 status collapsed
6387
6388 \begin_layout Plain Layout
6389 article.cls
6390 \end_layout
6391
6392 \end_inset
6393
6394 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6395 \begin_inset Flex Code
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399 myarticle.layout
6400 \end_layout
6401
6402 \end_inset
6403
6404 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6405 \end_layout
6406
6407 \begin_layout LyX-Code
6408
6409 \size small
6410 #% Do not delete the line below; configure depends on this 
6411 \end_layout
6412
6413 \begin_layout LyX-Code
6414
6415 \size small
6416 #  
6417 \backslash
6418 DeclareLaT
6419 \size default
6420
6421 \begin_inset ERT
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425
6426 {}
6427 \end_layout
6428
6429 \end_inset
6430
6431
6432 \size small
6433 eXClass[article]{article (with my own headings)}
6434 \end_layout
6435
6436 \begin_layout Standard
6437 これは、LaTeX文書クラス
6438 \begin_inset Flex Code
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 article.cls
6443 \end_layout
6444
6445 \end_inset
6446
6447 に関連づけられ、「article (with my own headings)」と表示される、
6448 \begin_inset Flex Code
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452 myarticle
6453 \end_layout
6454
6455 \end_inset
6456
6457 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6458 \end_layout
6459
6460 \begin_layout LyX-Code
6461
6462 \size small
6463 #% Do not delete the line below; configure depends on this 
6464 \end_layout
6465
6466 \begin_layout LyX-Code
6467
6468 \size small
6469 #  
6470 \backslash
6471 DeclareLaT
6472 \size default
6473
6474 \begin_inset ERT
6475 status collapsed
6476
6477 \begin_layout Plain Layout
6478
6479 {}
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \size small
6486 eXClass[article,foo.sty]{article (with my own headings)}
6487 \end_layout
6488
6489 \begin_layout Standard
6490 これは、このテキストクラスが
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 foo.sty
6496 \end_layout
6497
6498 \end_inset
6499
6500 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6501 \end_layout
6502
6503 \begin_layout LyX-Code
6504
6505 \size small
6506 #% Do not delete the line below; configure depends on this 
6507 \end_layout
6508
6509 \begin_layout LyX-Code
6510
6511 \size small
6512
6513 \backslash
6514 DeclareDocBookClass[article]{SGML (DocBook article)}
6515 \end_layout
6516
6517 \begin_layout Standard
6518 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6519 \end_layout
6520
6521 \begin_layout Standard
6522 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6523 \end_layout
6524
6525 \begin_layout LyX-Code
6526
6527 \size small
6528 #  
6529 \backslash
6530 DeclareLaT
6531 \size default
6532
6533 \begin_inset ERT
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537
6538 {}
6539 \end_layout
6540
6541 \end_inset
6542
6543
6544 \size small
6545 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6546 \end_layout
6547
6548 \begin_layout Standard
6549 ここで「クラス」は、LaTeXクラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、LyXは単純に
6550 、クラスファイル名がレイアウトファイル名と同じであると仮定します。
6551 \end_layout
6552
6553 \begin_layout Standard
6554 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6555 \begin_inset Flex Code
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559 L
6560 \begin_inset ERT
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564
6565 {}
6566 \end_layout
6567
6568 \end_inset
6569
6570 yXDir/layouts/
6571 \end_layout
6572
6573 \end_inset
6574
6575
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 UserDir/layouts
6581 \end_layout
6582
6583 \end_inset
6584
6585 にコピーし、
6586 \begin_inset Flex MenuItem
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590 ツール\SpecialChar \menuseparator
6591 再初期設定
6592 \end_layout
6593
6594 \end_inset
6595
6596 を実行し、LyXを終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
6597 \end_layout
6598
6599 \begin_layout Standard
6600 レイアウトファイルが導入されたならば、これを編集して、再初期設定したりLyXを再起動したりすることなく、その変更を確認することができます
6601 \begin_inset Foot
6602 status collapsed
6603
6604 \begin_layout Plain Layout
6605 第1.6版よりも前のLyXでは、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度にLyXを再起動しなくてはならな
6606 かったので、レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
6607 \end_layout
6608
6609 \end_inset
6610
6611 。LyX関数
6612 \begin_inset Flex MenuItem
6613 status collapsed
6614
6615 \begin_layout Plain Layout
6616 layout-reload
6617 \end_layout
6618
6619 \end_inset
6620
6621 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
6622 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
6623 \end_layout
6624
6625 \begin_layout Standard
6626
6627 \emph on
6628 注意
6629 \emph default
6630
6631 \begin_inset Flex MenuItem
6632 status collapsed
6633
6634 \begin_layout Plain Layout
6635 layout-reload
6636 \end_layout
6637
6638 \end_inset
6639
6640 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
6641 \emph on
6642 強く
6643 \emph default
6644 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
6645 \emph on
6646 強く
6647 \emph default
6648 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、LyXは
6649 現在のレイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
6650 \begin_inset Foot
6651 status collapsed
6652
6653 \begin_layout Plain Layout
6654 非常に悪質な文法エラーの場合には、LyXが終了してしまうことさえあります。これは、ある種のエラーでは、LyXがレイアウト情報を全く読めなくなる可能性があるからで
6655 す。ご注意ください。
6656 \end_layout
6657
6658 \end_inset
6659
6660 。LyX開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
6661 \begin_inset Foot
6662 status collapsed
6663
6664 \begin_layout Plain Layout
6665 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
6666 \end_layout
6667
6668 \end_inset
6669
6670
6671 \end_layout
6672
6673 \begin_layout Subsection
6674 モジュール宣言
6675 \end_layout
6676
6677 \begin_layout Standard
6678 モジュールは、以下のような行で始まらなくてはなりません。
6679 \end_layout
6680
6681 \begin_layout LyX-Code
6682 #
6683 \backslash
6684 DeclareL
6685 \begin_inset ERT
6686 status collapsed
6687
6688 \begin_layout Plain Layout
6689
6690 {}
6691 \end_layout
6692
6693 \end_inset
6694
6695 yXModule[endnotes.sty]{Endnotes} 
6696 \end_layout
6697
6698 \begin_layout Standard
6699 波括弧内に入っている必須引数はモジュール名で、これは
6700 \begin_inset Flex MenuItem
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 文書\SpecialChar \menuseparator
6705 設定
6706 \end_layout
6707
6708 \end_inset
6709
6710 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存するLaTeXパッケージをすべて宣言します。角括弧の中には、LyXにとって既知のパッケージ
6711 だけしか、列挙することはできないことに注意してください。
6712 \begin_inset Foot
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 既知のパッケージのリストは、ソースコード中でしか、ドキュメント化されていません。
6717 \end_layout
6718
6719 \end_inset
6720
6721 LyXは、任意のパッケージをチェックすることはしません。また、非必須引数として、
6722 \begin_inset Flex Code
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 変換元->変換先
6727 \end_layout
6728
6729 \end_inset
6730
6731 の形を使用することができます。これは、
6732 \begin_inset Flex Code
6733 status collapsed
6734
6735 \begin_layout Plain Layout
6736 変換元
6737 \end_layout
6738
6739 \end_inset
6740
6741 形式から
6742 \begin_inset Flex Code
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 変換先
6747 \end_layout
6748
6749 \end_inset
6750
6751 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
6752 \end_layout
6753
6754 \begin_layout Standard
6755 それから、以下のようなモジュール宣言を行います。
6756 \lang english
6757
6758 \begin_inset Foot
6759 status open
6760
6761 \begin_layout Plain Layout
6762
6763 \lang english
6764 Preferably in English if the module should be published with LyX.
6765  This description will appear in the list of messages to be translated and
6766  will be thus translated with the next interface update.
6767 \end_layout
6768
6769 \end_inset
6770
6771
6772 \end_layout
6773
6774 \begin_layout LyX-Code
6775 #DescriptionBegin 
6776 \end_layout
6777
6778 \begin_layout LyX-Code
6779 #Adds an endnote command, in addition to footnotes.
6780  
6781 \end_layout
6782
6783 \begin_layout LyX-Code
6784 #You will need to add  
6785 \backslash
6786 theendnotes in T
6787 \begin_inset ERT
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791
6792 {}
6793 \end_layout
6794
6795 \end_inset
6796
6797 eX code where you 
6798 \end_layout
6799
6800 \begin_layout LyX-Code
6801 #want the endnotes to appear.
6802  
6803 \end_layout
6804
6805 \begin_layout LyX-Code
6806 #DescriptionEnd 
6807 \end_layout
6808
6809 \begin_layout LyX-Code
6810 #Requires: somemodule | othermodule
6811 \end_layout
6812
6813 \begin_layout LyX-Code
6814 #Excludes: badmodule
6815 \end_layout
6816
6817 \begin_layout Standard
6818 ここで説明(Description)は、
6819 \begin_inset Flex MenuItem
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 文書\SpecialChar \menuseparator
6824 設定
6825 \end_layout
6826
6827 \end_inset
6828
6829 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 Requires
6835 \end_layout
6836
6837 \end_inset
6838
6839 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
6840 \begin_inset Flex Code
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 Excludes
6845 \end_layout
6846
6847 \end_inset
6848
6849 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
6850 イプ記号「|」で区切らなくてはなりません。
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 Requires
6856 \end_layout
6857
6858 \end_inset
6859
6860 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
6861 \begin_inset Flex Code
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 Requires
6866 \end_layout
6867
6868 \end_inset
6869
6870 に指定されたモジュールのうち、
6871 \emph on
6872 少なくとも一つ
6873 \emph default
6874 が使用されていればよいということです。同様に、
6875 \begin_inset Flex Code
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 Excludes
6880 \end_layout
6881
6882 \end_inset
6883
6884 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 .module
6890 \end_layout
6891
6892 \end_inset
6893
6894 拡張子を除いた
6895 \emph on
6896 ファイル名
6897 \emph default
6898 で認識されることに注意してください。つまり
6899 \begin_inset Flex Code
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 somemodule
6904 \end_layout
6905
6906 \end_inset
6907
6908 とは、実のところ
6909 \begin_inset Flex Code
6910 status collapsed
6911
6912 \begin_layout Plain Layout
6913 somemodule.module
6914 \end_layout
6915
6916 \end_inset
6917
6918 のことです。
6919 \end_layout
6920
6921 \begin_layout Subsection
6922 書式番号
6923 \end_layout
6924
6925 \begin_layout Standard
6926 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
6927 \end_layout
6928
6929 \begin_layout Description
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 Format
6935 \end_layout
6936
6937 \end_inset
6938
6939  [
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 整数型
6945 \end_layout
6946
6947 \end_inset
6948
6949 ] このレイアウトファイルの書式
6950 \end_layout
6951
6952 \begin_layout Standard
6953 このタグはLyX
6954 \begin_inset space ~
6955 \end_inset
6956
6957 1.4.0で導入されました。LyX
6958 \begin_inset space ~
6959 \end_inset
6960
6961 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。LyX現行版のファイル形式は、書式35です。しかし、LyXの各版は、旧
6962 版のLyXで作成されたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
6963 \end_layout
6964
6965 \begin_layout Subsection
6966 \begin_inset CommandInset label
6967 LatexCommand label
6968 name "sub:汎用テキストクラスパラメータ"
6969
6970 \end_inset
6971
6972 汎用テキストクラスパラメータ
6973 \end_layout
6974
6975 \begin_layout Standard
6976 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 .layout
6982 \end_layout
6983
6984 \end_inset
6985
6986 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
6987 \emph on
6988 ありません
6989 \emph default
6990 。モジュールには、すべてのレイアウトタグを使用することができます)。
6991 \end_layout
6992
6993 \begin_layout Description
6994 \begin_inset Flex Code
6995 status collapsed
6996
6997 \begin_layout Plain Layout
6998 AddToHTMLPreamble
6999 \end_layout
7000
7001 \end_inset
7002
7003  この文書クラスがXHTMLに出力されるときに、
7004 \begin_inset Flex Code
7005 status collapsed
7006
7007 \begin_layout Plain Layout
7008 <head>
7009 \end_layout
7010
7011 \end_inset
7012
7013 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 <head>
7019 \end_layout
7020
7021 \end_inset
7022
7023 に出力するものであれば、何でも使用することができます。「
7024 \begin_inset Flex Code
7025 status collapsed
7026
7027 \begin_layout Plain Layout
7028 EndPreamble
7029 \end_layout
7030
7031 \end_inset
7032
7033 」で閉じる必要があります。
7034 \end_layout
7035
7036 \begin_layout Description
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 AddToPreamble
7042 \end_layout
7043
7044 \end_inset
7045
7046  文書プリアンブルに書き加えられる情報です。「
7047 \begin_inset Flex Code
7048 status collapsed
7049
7050 \begin_layout Plain Layout
7051 EndPreamble
7052 \end_layout
7053
7054 \end_inset
7055
7056 」で閉じる必要があります。
7057 \end_layout
7058
7059 \begin_layout Description
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 CiteFormat
7065 \end_layout
7066
7067 \end_inset
7068
7069  書誌情報の表示に使う書式を定義します。詳細については、第
7070 \begin_inset CommandInset ref
7071 LatexCommand ref
7072 reference "sub:引用書式指定"
7073
7074 \end_inset
7075
7076 節をご覧ください。「
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 End
7082 \end_layout
7083
7084 \end_inset
7085
7086 」で閉じる必要があります。
7087 \end_layout
7088
7089 \begin_layout Description
7090 \begin_inset Flex Code
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 ClassOptions
7095 \end_layout
7096
7097 \end_inset
7098
7099  文書クラスがサポートする様々な大域オプションを記します。説明は、第
7100 \begin_inset CommandInset ref
7101 LatexCommand ref
7102 reference "sub:ClassOptions"
7103
7104 \end_inset
7105
7106 節を参照してください。「
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 End
7112 \end_layout
7113
7114 \end_inset
7115
7116 」で閉じる必要があります。
7117 \end_layout
7118
7119 \begin_layout Description
7120 \begin_inset Flex Code
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 Columns
7125 \end_layout
7126
7127 \end_inset
7128
7129  [
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134
7135 \emph on
7136 1
7137 \end_layout
7138
7139 \end_inset
7140
7141 ,
7142 \begin_inset space \thinspace{}
7143 \end_inset
7144
7145
7146 \begin_inset Flex Code
7147 status collapsed
7148
7149 \begin_layout Plain Layout
7150 2
7151 \end_layout
7152
7153 \end_inset
7154
7155 ] 文書クラスが既定で1段組か2段組かを指定します。
7156 \begin_inset Flex MenuItem
7157 status collapsed
7158
7159 \begin_layout Plain Layout
7160 文書\SpecialChar \menuseparator
7161 設定
7162 \end_layout
7163
7164 \end_inset
7165
7166 ダイアログで変更することができます。
7167 \end_layout
7168
7169 \begin_layout Description
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 Counter
7175 \end_layout
7176
7177 \end_inset
7178
7179  [
7180 \begin_inset Flex Code
7181 status collapsed
7182
7183 \begin_layout Plain Layout
7184 文字列
7185 \end_layout
7186
7187 \end_inset
7188
7189 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7190 \begin_inset Flex Code
7191 status collapsed
7192
7193 \begin_layout Plain Layout
7194 End
7195 \end_layout
7196
7197 \end_inset
7198
7199 」で閉じる必要があります。
7200 \begin_inset Newline newline
7201 \end_inset
7202
7203 カウンタについての詳細は、第
7204 \begin_inset CommandInset ref
7205 LatexCommand ref
7206 reference "sub:カウンタ"
7207
7208 \end_inset
7209
7210 節を参照してください。
7211 \end_layout
7212
7213 \begin_layout Description
7214 \begin_inset Flex Code
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 DefaultFont
7219 \end_layout
7220
7221 \end_inset
7222
7223  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、第
7224 \begin_inset CommandInset ref
7225 LatexCommand ref
7226 reference "sub:フォント指定"
7227
7228 \end_inset
7229
7230 節を参照してください。「
7231 \begin_inset Flex Code
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 EndFont
7236 \end_layout
7237
7238 \end_inset
7239
7240 」で閉じる必要があります。
7241 \end_layout
7242
7243 \begin_layout Description
7244
7245 \lang english
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250
7251 \lang english
7252 DefaultModule
7253 \end_layout
7254
7255 \end_inset
7256
7257  [
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262
7263 \lang english
7264 <module>
7265 \end_layout
7266
7267 \end_inset
7268
7269 ]
7270 \lang japanese
7271  この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7272 \begin_inset Flex Code
7273 status collapsed
7274
7275 \begin_layout Plain Layout
7276 .module
7277 \end_layout
7278
7279 \end_inset
7280
7281 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7282 既存の文書にこの文書クラスが選択したときのみ該当します)。
7283 \end_layout
7284
7285 \begin_layout Description
7286 \begin_inset Flex Code
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 DefaultStyle
7291 \end_layout
7292
7293 \end_inset
7294
7295  
7296 \lang english
7297 [
7298 \begin_inset Flex Code
7299 status collapsed
7300
7301 \begin_layout Plain Layout
7302
7303 \lang english
7304 <style>
7305 \end_layout
7306
7307 \end_inset
7308
7309
7310 \lang japanese
7311 これは新規段落に割り当てられる様式であり、通常は
7312 \begin_inset Flex MenuItem
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 標準
7317 \end_layout
7318
7319 \end_inset
7320
7321 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7322 \end_layout
7323
7324 \begin_layout Description
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 ExcludesModule
7330 \end_layout
7331
7332 \end_inset
7333
7334  
7335 \lang english
7336 [
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341
7342 \lang english
7343 <module>
7344 \end_layout
7345
7346 \end_inset
7347
7348 ]
7349 \lang japanese
7350  このタグは、指定されたモジュール—
7351 \begin_inset Flex Code
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 .module
7356 \end_layout
7357
7358 \end_inset
7359
7360 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7361 に振る
7362 \begin_inset Flex Code
7363 status collapsed
7364
7365 \begin_layout Plain Layout
7366 theorems-sec
7367 \end_layout
7368
7369 \end_inset
7370
7371 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7372 \emph on
7373 使用してはいけません
7374 \emph default
7375 。モジュールは、他のモジュールを排除する独自の枠組みがあります(第
7376 \begin_inset CommandInset ref
7377 LatexCommand ref
7378 reference "sub:レイアウトモジュール"
7379
7380 \end_inset
7381
7382 節参照)。
7383 \end_layout
7384
7385 \begin_layout Description
7386 \begin_inset Flex Code
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 Float
7391 \end_layout
7392
7393 \end_inset
7394
7395  フロートを新規に定義します。詳細は、第
7396 \begin_inset CommandInset ref
7397 LatexCommand ref
7398 reference "sub:フロート"
7399
7400 \end_inset
7401
7402 節を参照してください。「
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 End
7408 \end_layout
7409
7410 \end_inset
7411
7412 」で閉じる必要があります。
7413 \end_layout
7414
7415 \begin_layout Description
7416 \begin_inset Flex Code
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 HTMLPreamble
7421 \end_layout
7422
7423 \end_inset
7424
7425  この文書クラスがXHTMLに出力されるときに、
7426 \begin_inset Flex Code
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430 <head>
7431 \end_layout
7432
7433 \end_inset
7434
7435 ブロックに出力される情報です。これより前に出現した
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 HTMLPreamble
7441 \end_layout
7442
7443 \end_inset
7444
7445
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 AddToHTMLPreamble
7451 \end_layout
7452
7453 \end_inset
7454
7455 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 AddToHTMLPreamble
7461 \end_layout
7462
7463 \end_inset
7464
7465 を使用してください)。これは「
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 EndPreamble
7471 \end_layout
7472
7473 \end_inset
7474
7475 」で閉じる必要があります。
7476 \end_layout
7477
7478 \begin_layout Description
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 HTMLStyles
7484 \end_layout
7485
7486 \end_inset
7487
7488  CSSスタイル情報を指定します。これは、「
7489 \begin_inset Flex Code
7490 status collapsed
7491
7492 \begin_layout Plain Layout
7493 <style>
7494 \end_layout
7495
7496 \end_inset
7497
7498 」ブロック内か、ユーザーがそのように選択すれば、独立したCSSファイル内に出力されます。これは、これより以前に宣言された
7499 \begin_inset Flex Code
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 HTMLStyles
7504 \end_layout
7505
7506 \end_inset
7507
7508
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 AddToHTMLStyles
7514 \end_layout
7515
7516 \end_inset
7517
7518 をすべて完全に上書きしてしまうことに注意してください(追加をしたい時には`
7519 \begin_inset Flex Code
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 AddToHTMLStyles
7524 \end_layout
7525
7526 \end_inset
7527
7528 を使用してください)。これは「
7529 \begin_inset Flex Code
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533 EndStyles
7534 \end_layout
7535
7536 \end_inset
7537
7538 」で閉じる必要があります。
7539 \end_layout
7540
7541 \begin_layout Description
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 HTMLTOCSection
7547 \end_layout
7548
7549 \end_inset
7550
7551  
7552 \lang english
7553 [
7554 \begin_inset Flex Code
7555 status collapsed
7556
7557 \begin_layout Plain Layout
7558
7559 \lang english
7560 <style>
7561 \end_layout
7562
7563 \end_inset
7564
7565 ]
7566 \lang japanese
7567  文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です。
7568 これを指定しない場合には、LyXはどのレイアウトを使用するべきか、解析しようと試みます。
7569 \end_layout
7570
7571 \begin_layout Description
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 IfCounter 
7577 \end_layout
7578
7579 \end_inset
7580
7581  [
7582 \begin_inset Flex Code
7583 status collapsed
7584
7585 \begin_layout Plain Layout
7586
7587 \lang english
7588 <counter>
7589 \end_layout
7590
7591 \end_inset
7592
7593 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 End
7599 \end_layout
7600
7601 \end_inset
7602
7603 」で閉じる必要があります。
7604 \begin_inset Newline newline
7605 \end_inset
7606
7607 カウンタについての詳細は、第
7608 \begin_inset CommandInset ref
7609 LatexCommand ref
7610 reference "sub:カウンタ"
7611
7612 \end_inset
7613
7614 節をご覧ください。
7615 \end_layout
7616
7617 \begin_layout Description
7618 \begin_inset Flex Code
7619 status collapsed
7620
7621 \begin_layout Plain Layout
7622 IfStyle
7623 \end_layout
7624
7625 \end_inset
7626
7627  [
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632
7633 \lang english
7634 <style>
7635 \end_layout
7636
7637 \end_inset
7638
7639 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7640 \begin_inset Flex Code
7641 status collapsed
7642
7643 \begin_layout Plain Layout
7644 End
7645 \end_layout
7646
7647 \end_inset
7648
7649 」で閉じる必要があります。
7650 \end_layout
7651
7652 \begin_layout Description
7653 \begin_inset Flex Code
7654 status collapsed
7655
7656 \begin_layout Plain Layout
7657 Input
7658 \end_layout
7659
7660 \end_inset
7661
7662  
7663 \lang english
7664 [
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669
7670 \lang english
7671 <filename>
7672 \end_layout
7673
7674 \end_inset
7675
7676
7677 \lang japanese
7678 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
7679 のほとんどを収録している
7680 \begin_inset Flex Code
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684 stdclass.inc
7685 \end_layout
7686
7687 \end_inset
7688
7689 のような標準レイアウトファイルです。
7690 \end_layout
7691
7692 \begin_layout Description
7693 \begin_inset Flex Code
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 InsetLayout
7698 \end_layout
7699
7700 \end_inset
7701
7702  
7703 \lang english
7704 [
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709
7710 \lang english
7711 <type>
7712 \end_layout
7713
7714 \end_inset
7715
7716
7717 \lang japanese
7718 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
7719 \begin_inset Flex Code
7720 status collapsed
7721
7722 \begin_layout Plain Layout
7723 End
7724 \end_layout
7725
7726 \end_inset
7727
7728 」で閉じる必要があります。
7729 \begin_inset Newline newline
7730 \end_inset
7731
7732 詳しい情報は、第
7733 \begin_inset CommandInset ref
7734 LatexCommand ref
7735 reference "sub:任意設定差込枠"
7736
7737 \end_inset
7738
7739 節をご覧ください。
7740 \end_layout
7741
7742 \begin_layout Description
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 LeftMargin
7748 \end_layout
7749
7750 \end_inset
7751
7752  [
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 文字列
7758 \end_layout
7759
7760 \end_inset
7761
7762 ] 画面上の左余白の幅を指示する文字列。例:「
7763 \begin_inset Flex Code
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 MMMMM
7768 \end_layout
7769
7770 \end_inset
7771
7772 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
7773 \end_layout
7774
7775 \begin_layout Description
7776 \begin_inset Flex Code
7777 status collapsed
7778
7779 \begin_layout Plain Layout
7780 NoCounter
7781 \end_layout
7782
7783 \end_inset
7784
7785  [
7786 \lang english
7787
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792
7793 \lang english
7794 <counter>
7795 \end_layout
7796
7797 \end_inset
7798
7799 ] This command deletes an existing counter, usually one defined in an included
7800  file.
7801 \end_layout
7802
7803 \begin_layout Description
7804 \begin_inset Flex Code
7805 status collapsed
7806
7807 \begin_layout Plain Layout
7808 NoFloat
7809 \end_layout
7810
7811 \end_inset
7812
7813  
7814 \lang english
7815 [
7816 \begin_inset Flex Code
7817 status collapsed
7818
7819 \begin_layout Plain Layout
7820
7821 \lang english
7822 <float>
7823 \end_layout
7824
7825 \end_inset
7826
7827 ]
7828 \lang japanese
7829  このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
7830 \end_layout
7831
7832 \begin_layout Description
7833 \begin_inset Flex Code
7834 status collapsed
7835
7836 \begin_layout Plain Layout
7837 NoStyle
7838 \end_layout
7839
7840 \end_inset
7841
7842  
7843 \lang english
7844 [
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849
7850 \lang english
7851 <style>
7852 \end_layout
7853
7854 \end_inset
7855
7856 ]
7857 \lang japanese
7858  このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
7859 \end_layout
7860
7861 \begin_layout Description
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 OutputFormat
7867 \end_layout
7868
7869 \end_inset
7870
7871  [
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876
7877 \lang english
7878 <format>
7879 \end_layout
7880
7881 \end_inset
7882
7883 ] このクラスによって生成されるファイル形式を示す文字列(
7884 \family sans
7885 設定
7886 \family default
7887 ダイアログで定義される形のもの)。おもに、
7888 \begin_inset Flex Code
7889 status collapsed
7890
7891 \begin_layout Plain Layout
7892 OutputType
7893 \end_layout
7894
7895 \end_inset
7896
7897
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 literate
7903 \end_layout
7904
7905 \end_inset
7906
7907 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
7908 \begin_inset Flex Code
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912 OutputType
7913 \end_layout
7914
7915 \end_inset
7916
7917 パラメーターに遭遇したときには、この文字列は、「
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 docbook
7923 \end_layout
7924
7925 \end_inset
7926
7927 」・「
7928 \begin_inset Flex Code
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932 lat
7933 \emph on
7934 ex
7935 \end_layout
7936
7937 \end_inset
7938
7939 」のいずれかにリセットされます。
7940 \end_layout
7941
7942 \begin_layout Description
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 OutputType
7948 \end_layout
7949
7950 \end_inset
7951
7952  [
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957
7958 \emph on
7959 lat
7960 \emph default
7961 ex
7962 \end_layout
7963
7964 \end_inset
7965
7966
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 docbook
7972 \end_layout
7973
7974 \end_inset
7975
7976
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 literate
7982 \end_layout
7983
7984 \end_inset
7985
7986 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
7987 \end_layout
7988
7989 \begin_layout Description
7990 \begin_inset Flex Code
7991 status collapsed
7992
7993 \begin_layout Plain Layout
7994 PageStyle
7995 \end_layout
7996
7997 \end_inset
7998
7999  [
8000 \emph on
8001
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 plain
8007 \end_layout
8008
8009 \end_inset
8010
8011
8012 \emph default
8013
8014 \begin_inset Flex Code
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 empty
8019 \end_layout
8020
8021 \end_inset
8022
8023
8024 \begin_inset Flex Code
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028 headings
8029 \end_layout
8030
8031 \end_inset
8032
8033 ] 既定ページ様式。
8034 \begin_inset Flex MenuItem
8035 status collapsed
8036
8037 \begin_layout Plain Layout
8038 文書\SpecialChar \menuseparator
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 Preamble
8053 \end_layout
8054
8055 \end_inset
8056
8057  LaTeX文書のプリアンブルを設定します。前に行った
8058 \begin_inset Flex Code
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062 Preamble
8063 \end_layout
8064
8065 \end_inset
8066
8067 宣言や
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 AddToPreamble
8073 \end_layout
8074
8075 \end_inset
8076
8077 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 AddToPreamble
8083 \end_layout
8084
8085 \end_inset
8086
8087 を使用してください。)「
8088 \begin_inset Flex Code
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092 EndPreamble
8093 \end_layout
8094
8095 \end_inset
8096
8097 」で閉じる必要があります。
8098 \end_layout
8099
8100 \begin_layout Description
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 Provides
8106 \end_layout
8107
8108 \end_inset
8109
8110  [
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 文字列
8116 \end_layout
8117
8118 \end_inset
8119
8120 ] [
8121 \begin_inset Flex Code
8122 status collapsed
8123
8124 \begin_layout Plain Layout
8125
8126 \emph on
8127 0
8128 \end_layout
8129
8130 \end_inset
8131
8132
8133 \begin_inset Flex Code
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 1
8138 \end_layout
8139
8140 \end_inset
8141
8142 ] このクラスが
8143 \begin_inset Flex Code
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 文字列
8148 \end_layout
8149
8150 \end_inset
8151
8152 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 amsmath
8158 \end_layout
8159
8160 \end_inset
8161
8162
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 makeidx
8168 \end_layout
8169
8170 \end_inset
8171
8172 ・\SpecialChar \ldots{}
8173 )やマクロ名(
8174 \begin_inset Flex Code
8175 status collapsed
8176
8177 \begin_layout Plain Layout
8178 url
8179 \end_layout
8180
8181 \end_inset
8182
8183
8184 \begin_inset Flex Code
8185 status collapsed
8186
8187 \begin_layout Plain Layout
8188 boldsymbol
8189 \end_layout
8190
8191 \end_inset
8192
8193 ・\SpecialChar \ldots{}
8194 )です。
8195 \lang english
8196 See chapter
8197 \begin_inset space ~
8198 \end_inset
8199
8200
8201 \begin_inset CommandInset ref
8202 LatexCommand ref
8203 reference "chap:List-of-functions"
8204
8205 \end_inset
8206
8207  for the list of features.
8208 \end_layout
8209
8210 \begin_layout Description
8211 \begin_inset Flex Code
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 ProvidesModule
8216 \end_layout
8217
8218 \end_inset
8219
8220  [
8221 \begin_inset Flex Code
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225 文字列
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 .module
8246 \end_layout
8247
8248 \end_inset
8249
8250 拡張子を除いたファイル名で指定します。
8251 \begin_inset Flex Code
8252 status collapsed
8253
8254 \begin_layout Plain Layout
8255 DefaultModule
8256 \end_layout
8257
8258 \end_inset
8259
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 Requires
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 文字列
8290 \end_layout
8291
8292 \end_inset
8293
8294 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8295 さい。(
8296 \lang english
8297 See chapter
8298 \begin_inset space ~
8299 \end_inset
8300
8301
8302 \begin_inset CommandInset ref
8303 LatexCommand ref
8304 reference "chap:List-of-functions"
8305
8306 \end_inset
8307
8308  for the list of features
8309 \lang japanese
8310 。)
8311 \end_layout
8312
8313 \begin_layout Description
8314 \begin_inset Flex Code
8315 status collapsed
8316
8317 \begin_layout Plain Layout
8318 RightMargin
8319 \end_layout
8320
8321 \end_inset
8322
8323  [
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 文字列
8329 \end_layout
8330
8331 \end_inset
8332
8333 ] 画面上の右余白の幅を指示する文字列。例:「
8334 \begin_inset Flex Code
8335 status collapsed
8336
8337 \begin_layout Plain Layout
8338 MMMMM
8339 \end_layout
8340
8341 \end_inset
8342
8343 」。
8344 \end_layout
8345
8346 \begin_layout Description
8347 \begin_inset Flex Code
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351 SecNumDepth
8352 \end_layout
8353
8354 \end_inset
8355
8356  [
8357 \begin_inset Flex Code
8358 status collapsed
8359
8360 \begin_layout Plain Layout
8361 int=3
8362 \end_layout
8363
8364 \end_inset
8365
8366 ] どの節区切りまで連番を振るかを指定します。LaTeXにおける
8367 \begin_inset Flex Code
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 secnumdepth
8372 \end_layout
8373
8374 \end_inset
8375
8376 カウンタに対応します。
8377 \end_layout
8378
8379 \begin_layout Description
8380 \begin_inset Flex Code
8381 status collapsed
8382
8383 \begin_layout Plain Layout
8384 Sides
8385 \end_layout
8386
8387 \end_inset
8388
8389  [
8390 \emph on
8391
8392 \begin_inset Flex Code
8393 status collapsed
8394
8395 \begin_layout Plain Layout
8396 1
8397 \end_layout
8398
8399 \end_inset
8400
8401
8402 \emph default
8403 ,
8404 \begin_inset space \thinspace{}
8405 \end_inset
8406
8407
8408 \begin_inset Flex Code
8409 status collapsed
8410
8411 \begin_layout Plain Layout
8412 2
8413 \end_layout
8414
8415 \end_inset
8416
8417 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8418 \begin_inset Flex MenuItem
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 文書\SpecialChar \menuseparator
8423 設定
8424 \end_layout
8425
8426 \end_inset
8427
8428 ダイアログで変更することができます。
8429 \end_layout
8430
8431 \begin_layout Description
8432 \begin_inset Flex Code
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 Style
8437 \end_layout
8438
8439 \end_inset
8440
8441  
8442 \lang english
8443 [
8444 \begin_inset Flex Code
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448
8449 \lang english
8450 <name>
8451 \end_layout
8452
8453 \end_inset
8454
8455
8456 \lang japanese
8457 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8458 \begin_inset Flex Code
8459 status collapsed
8460
8461 \begin_layout Plain Layout
8462 End
8463 \end_layout
8464
8465 \end_inset
8466
8467 」で閉じる必要があります。
8468 \begin_inset Newline newline
8469 \end_inset
8470
8471 段落様式に関する詳細は、第
8472 \begin_inset CommandInset ref
8473 LatexCommand ref
8474 reference "sub:段落様式-XHTML"
8475
8476 \end_inset
8477
8478 節をご覧ください。
8479 \end_layout
8480
8481 \begin_layout Description
8482 \begin_inset Flex Code
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 TitleLatexName
8487 \end_layout
8488
8489 \end_inset
8490
8491  [
8492 \begin_inset Flex Code
8493 status collapsed
8494
8495 \begin_layout Plain Layout
8496 文字列="maketitle"
8497 \end_layout
8498
8499 \end_inset
8500
8501
8502 \begin_inset Flex Code
8503 status collapsed
8504
8505 \begin_layout Plain Layout
8506 TitleLatexType
8507 \end_layout
8508
8509 \end_inset
8510
8511 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8512  
8513 \begin_inset Flex Code
8514 status collapsed
8515
8516 \begin_layout Plain Layout
8517 TitleLatexType
8518 \end_layout
8519
8520 \end_inset
8521
8522 .
8523 \end_layout
8524
8525 \begin_layout Description
8526 \begin_inset Flex Code
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 TitleLatexType
8531 \end_layout
8532
8533 \end_inset
8534
8535  [
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540
8541 \emph on
8542 CommandAfter
8543 \end_layout
8544
8545 \end_inset
8546
8547
8548 \begin_inset Flex Code
8549 status collapsed
8550
8551 \begin_layout Plain Layout
8552 Environment
8553 \end_layout
8554
8555 \end_inset
8556
8557 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8558 \begin_inset Flex Code
8559 status collapsed
8560
8561 \begin_layout Plain Layout
8562 CommandAfter
8563 \end_layout
8564
8565 \end_inset
8566
8567 は、「
8568 \begin_inset Flex Code
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 InTitle
8573 \begin_inset space ~
8574 \end_inset
8575
8576 1
8577 \end_layout
8578
8579 \end_inset
8580
8581 」が指定されている最後のレイアウトの後に、
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 TitleLatexName
8587 \end_layout
8588
8589 \end_inset
8590
8591 で指定したマクロ名を挿入することを意味します。
8592 \begin_inset Flex Code
8593 status collapsed
8594
8595 \begin_layout Plain Layout
8596 Environment
8597 \end_layout
8598
8599 \end_inset
8600
8601 は、「
8602 \begin_inset Flex Code
8603 status collapsed
8604
8605 \begin_layout Plain Layout
8606 InTitle
8607 \begin_inset space ~
8608 \end_inset
8609
8610 1
8611 \end_layout
8612
8613 \end_inset
8614
8615 」を持つ段落群を
8616 \begin_inset Flex Code
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 TitleLatexName
8621 \end_layout
8622
8623 \end_inset
8624
8625 で指定した環境でくるむ場合に対応します。
8626 \end_layout
8627
8628 \begin_layout Description
8629 \begin_inset Flex Code
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 TocDepth
8634 \end_layout
8635
8636 \end_inset
8637
8638  [
8639 \begin_inset Flex Code
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 int=3
8644 \end_layout
8645
8646 \end_inset
8647
8648 ] どの節区切りまで目次に取り込むかを指定します。LaTeXの
8649 \begin_inset Flex Code
8650 status collapsed
8651
8652 \begin_layout Plain Layout
8653 tocdepth
8654 \end_layout
8655
8656 \end_inset
8657
8658 カウンタに対応します。
8659 \end_layout
8660
8661 \begin_layout Subsection
8662 \begin_inset Flex Code
8663 status collapsed
8664
8665 \begin_layout Plain Layout
8666 ClassOptions
8667 \end_layout
8668
8669 \end_inset
8670
8671
8672 \begin_inset CommandInset label
8673 LatexCommand label
8674 name "sub:ClassOptions"
8675
8676 \end_inset
8677
8678
8679 \end_layout
8680
8681 \begin_layout Standard
8682 \begin_inset Flex Code
8683 status collapsed
8684
8685 \begin_layout Plain Layout
8686 ClassOptions
8687 \end_layout
8688
8689 \end_inset
8690
8691 部は、以下の項目を取り得ます。
8692 \end_layout
8693
8694 \begin_layout Description
8695 \begin_inset Flex Code
8696 status collapsed
8697
8698 \begin_layout Plain Layout
8699 FontSize
8700 \end_layout
8701
8702 \end_inset
8703
8704  [
8705 \begin_inset Flex Code
8706 status collapsed
8707
8708 \begin_layout Plain Layout
8709 文字列="10|11|12"
8710 \end_layout
8711
8712 \end_inset
8713
8714 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
8715 \begin_inset Flex Code
8716 status collapsed
8717
8718 \begin_layout Plain Layout
8719 |
8720 \end_layout
8721
8722 \end_inset
8723
8724 」で区切ります。
8725 \end_layout
8726
8727 \begin_layout Description
8728 \begin_inset Flex Code
8729 status collapsed
8730
8731 \begin_layout Plain Layout
8732 Header
8733 \end_layout
8734
8735 \end_inset
8736
8737  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
8738 \begin_inset Quotes eld
8739 \end_inset
8740
8741 -//OASIS//DTD DocBook V4.2//EN
8742 \begin_inset Quotes erd
8743 \end_inset
8744
8745
8746 \end_layout
8747
8748 \begin_layout Description
8749 \begin_inset Flex Code
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 Other
8754 \end_layout
8755
8756 \end_inset
8757
8758  [
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 文字列=""
8764 \end_layout
8765
8766 \end_inset
8767
8768
8769 \begin_inset Flex Code
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773
8774 \backslash
8775 documentclass
8776 \end_layout
8777
8778 \end_inset
8779
8780 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
8781 \end_layout
8782
8783 \begin_layout Description
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 PageStyle
8789 \end_layout
8790
8791 \end_inset
8792
8793  [
8794 \begin_inset Flex Code
8795 status collapsed
8796
8797 \begin_layout Plain Layout
8798 文字列="empty|plain|headings|fancy"
8799 \end_layout
8800
8801 \end_inset
8802
8803 ] 使用できるページ様式の一覧です。「
8804 \begin_inset Flex Code
8805 status collapsed
8806
8807 \begin_layout Plain Layout
8808 |
8809 \end_layout
8810
8811 \end_inset
8812
8813 」で区切ります。
8814 \end_layout
8815
8816 \begin_layout Standard
8817 \begin_inset Flex Code
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 ClassOptions
8822 \end_layout
8823
8824 \end_inset
8825
8826 部は「
8827 \begin_inset Flex Code
8828 status collapsed
8829
8830 \begin_layout Plain Layout
8831 End
8832 \end_layout
8833
8834 \end_inset
8835
8836 」で閉じる必要があります。
8837 \end_layout
8838
8839 \begin_layout Subsection
8840 段落様式
8841 \begin_inset CommandInset label
8842 LatexCommand label
8843 name "sub:段落様式"
8844
8845 \end_inset
8846
8847
8848 \end_layout
8849
8850 \begin_layout Standard
8851 段落様式の記述は、以下のようになります
8852 \begin_inset Foot
8853 status collapsed
8854
8855 \begin_layout Plain Layout
8856 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
8857 \end_layout
8858
8859 \end_inset
8860
8861
8862 \end_layout
8863
8864 \begin_layout LyX-Code
8865 Style 
8866 \family roman
8867 \emph on
8868 名称
8869 \end_layout
8870
8871 \begin_layout LyX-Code
8872  ...
8873 \end_layout
8874
8875 \begin_layout LyX-Code
8876 End
8877 \end_layout
8878
8879 \begin_layout Standard
8880 ここでは、以下のコマンドを使用することができます。
8881 \end_layout
8882
8883 \begin_layout Description
8884 \begin_inset Flex Code
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 Align
8889 \end_layout
8890
8891 \end_inset
8892
8893  [
8894 \begin_inset Flex Code
8895 status collapsed
8896
8897 \begin_layout Plain Layout
8898
8899 \emph on
8900 block
8901 \emph default
8902 , left, right, center
8903 \end_layout
8904
8905 \end_inset
8906
8907 ] 段落の揃え。
8908 \end_layout
8909
8910 \begin_layout Description
8911 \begin_inset Flex Code
8912 status collapsed
8913
8914 \begin_layout Plain Layout
8915 AlignPossible
8916 \end_layout
8917
8918 \end_inset
8919
8920  [
8921 \begin_inset Flex Code
8922 status collapsed
8923
8924 \begin_layout Plain Layout
8925
8926 \emph on
8927 block
8928 \emph default
8929 , left, right, center
8930 \end_layout
8931
8932 \end_inset
8933
8934 ] 使用できる揃えのコンマ区切りリスト(LaTeXスタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃え
8935 にすることはできません)。
8936 \end_layout
8937
8938 \begin_layout Description
8939 \begin_inset Flex Code
8940 status collapsed
8941
8942 \begin_layout Plain Layout
8943 BabelPreamble
8944 \end_layout
8945
8946 \end_inset
8947
8948  これは、前に現れたこの様式の
8949 \begin_inset Flex Code
8950 status collapsed
8951
8952 \begin_layout Plain Layout
8953 BabelPreamble
8954 \end_layout
8955
8956 \end_inset
8957
8958 宣言をすべて、完全に上書きしますので注意してください。「
8959 \begin_inset Flex Code
8960 status collapsed
8961
8962 \begin_layout Plain Layout
8963 EndBabelPreamble
8964 \end_layout
8965
8966 \end_inset
8967
8968 」で閉じる必要があります。これの利用法についての詳細は、第
8969 \begin_inset CommandInset ref
8970 LatexCommand ref
8971 reference "sub:段落様式の国際化"
8972
8973 \end_inset
8974
8975 節をご覧ください。
8976 \end_layout
8977
8978 \begin_layout Description
8979 \begin_inset Flex Code
8980 status collapsed
8981
8982 \begin_layout Plain Layout
8983 BottomSep
8984 \end_layout
8985
8986 \end_inset
8987
8988  [
8989 \begin_inset Flex Code
8990 status collapsed
8991
8992 \begin_layout Plain Layout
8993 浮動小数点型=0
8994 \end_layout
8995
8996 \end_inset
8997
8998 ]
8999 \begin_inset Foot
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003 ここで「浮動小数点型」とは1.5のような実数を指します。
9004 \end_layout
9005
9006 \end_inset
9007
9008  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
9009 す。
9010 \end_layout
9011
9012 \begin_layout Description
9013 \begin_inset Flex Code
9014 status collapsed
9015
9016 \begin_layout Plain Layout
9017 Category
9018 \end_layout
9019
9020 \end_inset
9021
9022  [
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027 文字列
9028 \end_layout
9029
9030 \end_inset
9031
9032 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
9033 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
9034 \end_layout
9035
9036 \begin_layout Description
9037 \begin_inset Flex Code
9038 status collapsed
9039
9040 \begin_layout Plain Layout
9041 CommandDepth
9042 \end_layout
9043
9044 \end_inset
9045
9046  XMLコマンドの深度。XML型の書式でのみ使用されます。
9047 \end_layout
9048
9049 \begin_layout Description
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 CopyStyle
9055 \end_layout
9056
9057 \end_inset
9058
9059  [
9060 \begin_inset Flex Code
9061 status collapsed
9062
9063 \begin_layout Plain Layout
9064 文字列
9065 \end_layout
9066
9067 \end_inset
9068
9069 ] 既存の様式から、すべての機能を現在の様式にコピーします。
9070 \end_layout
9071
9072 \begin_layout Description
9073 \begin_inset Flex Code
9074 status collapsed
9075
9076 \begin_layout Plain Layout
9077 DependsOn
9078 \end_layout
9079
9080 \end_inset
9081
9082  
9083 \lang english
9084 [
9085 \begin_inset Flex Code
9086 status collapsed
9087
9088 \begin_layout Plain Layout
9089
9090 \lang english
9091 <name>
9092 \end_layout
9093
9094 \end_inset
9095
9096
9097 \lang japanese
9098 この
9099 \emph on
9100 前に
9101 \emph default
9102 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
9103 \begin_inset Foot
9104 status collapsed
9105
9106 \begin_layout Plain Layout
9107 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。LyXの特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可
9108 能性があります。
9109 \end_layout
9110
9111 \end_inset
9112
9113
9114 \end_layout
9115
9116 \begin_layout Description
9117 \begin_inset Flex Code
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121 EndLabeltype
9122 \end_layout
9123
9124 \end_inset
9125
9126  [
9127 \begin_inset Flex Code
9128 status collapsed
9129
9130 \begin_layout Plain Layout
9131
9132 \emph on
9133 No_Label
9134 \emph default
9135 , Box, Filled_Box, Static
9136 \end_layout
9137
9138 \end_inset
9139
9140 ] 段落の最後(あるいは
9141 \begin_inset Flex Code
9142 status collapsed
9143
9144 \begin_layout Plain Layout
9145 LatexType
9146 \end_layout
9147
9148 \end_inset
9149
9150 が、
9151 \begin_inset Flex Code
9152 status collapsed
9153
9154 \begin_layout Plain Layout
9155 Environment
9156 \end_layout
9157
9158 \end_inset
9159
9160
9161 \begin_inset Flex Code
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165 Item_Environment
9166 \end_layout
9167
9168 \end_inset
9169
9170
9171 \begin_inset Flex Code
9172 status collapsed
9173
9174 \begin_layout Plain Layout
9175 List_Environment
9176 \end_layout
9177
9178 \end_inset
9179
9180 のいずれかの場合は、段落群の最後)に置くラベル。
9181 \begin_inset Flex Code
9182 status collapsed
9183
9184 \begin_layout Plain Layout
9185 No_Label
9186 \end_layout
9187
9188 \end_inset
9189
9190 の場合は「何もない」ことを指し、
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 Box
9196 \end_layout
9197
9198 \end_inset
9199
9200 (あるいは
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 Filled_Box
9206 \end_layout
9207
9208 \end_inset
9209
9210 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
9211 \begin_inset Flex Code
9212 status collapsed
9213
9214 \begin_layout Plain Layout
9215 Static
9216 \end_layout
9217
9218 \end_inset
9219
9220 は明示したテキスト文字列を指します。
9221 \end_layout
9222
9223 \begin_layout Description
9224 \begin_inset Flex Code
9225 status collapsed
9226
9227 \begin_layout Plain Layout
9228 EndLabelString
9229 \end_layout
9230
9231 \end_inset
9232
9233  [
9234 \begin_inset Flex Code
9235 status collapsed
9236
9237 \begin_layout Plain Layout
9238 文字列=""
9239 \end_layout
9240
9241 \end_inset
9242
9243
9244 \begin_inset Flex Code
9245 status collapsed
9246
9247 \begin_layout Plain Layout
9248 Static
9249 \end_layout
9250
9251 \end_inset
9252
9253
9254 \begin_inset Flex Code
9255 status collapsed
9256
9257 \begin_layout Plain Layout
9258 EndLabelType
9259 \end_layout
9260
9261 \end_inset
9262
9263 のラベルで用いる文字列。
9264 \end_layout
9265
9266 \begin_layout Description
9267 \begin_inset Flex Code
9268 status collapsed
9269
9270 \begin_layout Plain Layout
9271 Font
9272 \end_layout
9273
9274 \end_inset
9275
9276  本文テキストとラベルの
9277 \emph on
9278 両方で
9279 \emph default
9280 用いられるフォント。第
9281 \begin_inset CommandInset ref
9282 LatexCommand ref
9283 reference "sub:フォント指定"
9284
9285 \end_inset
9286
9287 節を参照。このフォントを定義すると、自動的に
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 LabelFont
9293 \end_layout
9294
9295 \end_inset
9296
9297 も同じ値で定義されることに注意してください。したがって、
9298 \begin_inset Flex Code
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302 LabelFont
9303 \end_layout
9304
9305 \end_inset
9306
9307 も同時に定義したい場合には、これを先に定義してください。
9308 \end_layout
9309
9310 \begin_layout Description
9311 \begin_inset Flex Code
9312 status collapsed
9313
9314 \begin_layout Plain Layout
9315 FreeSpacing
9316 \end_layout
9317
9318 \end_inset
9319
9320  [
9321 \emph on
9322
9323 \begin_inset Flex Code
9324 status collapsed
9325
9326 \begin_layout Plain Layout
9327 0
9328 \end_layout
9329
9330 \end_inset
9331
9332
9333 \emph default
9334 ,
9335 \begin_inset space \thinspace{}
9336 \end_inset
9337
9338
9339 \begin_inset Flex Code
9340 status collapsed
9341
9342 \begin_layout Plain Layout
9343 1
9344 \end_layout
9345
9346 \end_inset
9347
9348 ] LyXは、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体
9349 はとても素晴らしいことですが、たとえばプログラムコードや生のLaTeXコードを入力しようとするときなどに、煩わしくなることがあります。このことから、
9350 \begin_inset Flex Code
9351 status collapsed
9352
9353 \begin_layout Plain Layout
9354 FreeSpacing
9355 \end_layout
9356
9357 \end_inset
9358
9359 を有効にすることが認められています。LyXは、LaTeXモード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
9360 \end_layout
9361
9362 \begin_layout Description
9363 \begin_inset Flex Code
9364 status collapsed
9365
9366 \begin_layout Plain Layout
9367 HTML*
9368 \end_layout
9369
9370 \end_inset
9371
9372  これらのタグは、XHTML出力で使用されます。第
9373 \begin_inset CommandInset ref
9374 LatexCommand ref
9375 reference "sub:段落様式-XHTML"
9376
9377 \end_inset
9378
9379 節をご覧ください。
9380 \end_layout
9381
9382 \begin_layout Description
9383 \begin_inset Flex Code
9384 status collapsed
9385
9386 \begin_layout Plain Layout
9387 InnerTag
9388 \end_layout
9389
9390 \end_inset
9391
9392  [[FIXME]] (XML型書式でのみ使用されます。)
9393 \end_layout
9394
9395 \begin_layout Description
9396 \begin_inset Flex Code
9397 status collapsed
9398
9399 \begin_layout Plain Layout
9400 InPreamble
9401 \end_layout
9402
9403 \end_inset
9404
9405  [
9406 \emph on
9407
9408 \begin_inset Flex Code
9409 status collapsed
9410
9411 \begin_layout Plain Layout
9412 0
9413 \end_layout
9414
9415 \end_inset
9416
9417
9418 \emph default
9419 ,
9420 \begin_inset space \thinspace{}
9421 \end_inset
9422
9423
9424 \begin_inset Flex Code
9425 status collapsed
9426
9427 \begin_layout Plain Layout
9428 1
9429 \end_layout
9430
9431 \end_inset
9432
9433
9434 \begin_inset Flex Code
9435 status collapsed
9436
9437 \begin_layout Plain Layout
9438 1
9439 \end_layout
9440
9441 \end_inset
9442
9443 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
9444 です。これは、
9445 \begin_inset Flex Code
9446 status collapsed
9447
9448 \begin_layout Plain Layout
9449 LatexType
9450 \end_layout
9451
9452 \end_inset
9453
9454
9455 \begin_inset Flex Code
9456 status collapsed
9457
9458 \begin_layout Plain Layout
9459 Command
9460 \end_layout
9461
9462 \end_inset
9463
9464 または
9465 \begin_inset Flex Code
9466 status collapsed
9467
9468 \begin_layout Plain Layout
9469 Paragraph
9470 \end_layout
9471
9472 \end_inset
9473
9474 の様式に対してのみ動作します。
9475 \end_layout
9476
9477 \begin_layout Description
9478 \begin_inset Flex Code
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482 InTitle
9483 \end_layout
9484
9485 \end_inset
9486
9487  [
9488 \emph on
9489
9490 \begin_inset Flex Code
9491 status collapsed
9492
9493 \begin_layout Plain Layout
9494 0
9495 \end_layout
9496
9497 \end_inset
9498
9499
9500 \emph default
9501 ,
9502 \begin_inset space \thinspace{}
9503 \end_inset
9504
9505
9506 \begin_inset Flex Code
9507 status collapsed
9508
9509 \begin_layout Plain Layout
9510 1
9511 \end_layout
9512
9513 \end_inset
9514
9515
9516 \begin_inset Flex Code
9517 status collapsed
9518
9519 \begin_layout Plain Layout
9520 1
9521 \end_layout
9522
9523 \end_inset
9524
9525 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
9526 \begin_inset Flex Code
9527 status collapsed
9528
9529 \begin_layout Plain Layout
9530 TitleLatexType
9531 \end_layout
9532
9533 \end_inset
9534
9535
9536 \begin_inset Flex Code
9537 status collapsed
9538
9539 \begin_layout Plain Layout
9540 TitleLatexName
9541 \end_layout
9542
9543 \end_inset
9544
9545 も参照)。
9546 \end_layout
9547
9548 \begin_layout Description
9549 \begin_inset Flex Code
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 ItemSep
9554 \end_layout
9555
9556 \end_inset
9557
9558  [
9559 \begin_inset Flex Code
9560 status collapsed
9561
9562 \begin_layout Plain Layout
9563 浮動小数点型=0
9564 \end_layout
9565
9566 \end_inset
9567
9568 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 ParSep
9574 \end_layout
9575
9576 \end_inset
9577
9578 だけ分離されます。しかし、その環境の項目全体は、さらにこの
9579 \begin_inset Flex Code
9580 status collapsed
9581
9582 \begin_layout Plain Layout
9583 ItemSep
9584 \end_layout
9585
9586 \end_inset
9587
9588 分だけ離されます。これは
9589 \emph on
9590 乗数
9591 \emph default
9592 であることに注意してください。
9593 \end_layout
9594
9595 \begin_layout Description
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 ItemTag
9601 \end_layout
9602
9603 \end_inset
9604
9605  [[FIXME]] (XML型書式でのみ使用されます。)
9606 \end_layout
9607
9608 \begin_layout Description
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 KeepEmpty
9614 \end_layout
9615
9616 \end_inset
9617
9618  [
9619 \emph on
9620
9621 \begin_inset Flex Code
9622 status collapsed
9623
9624 \begin_layout Plain Layout
9625 0
9626 \end_layout
9627
9628 \end_inset
9629
9630
9631 \emph default
9632 ,
9633 \begin_inset space \thinspace{}
9634 \end_inset
9635
9636
9637 \begin_inset Flex Code
9638 status collapsed
9639
9640 \begin_layout Plain Layout
9641 1
9642 \end_layout
9643
9644 \end_inset
9645
9646 ] 段落を空のままにすると、LaTeX出力が空になってしまうので、通常、LyXは段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場
9647 合が存在します。たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを
9648 実際には文章を含まないある種の改行として使用することもあります。
9649 \end_layout
9650
9651 \begin_layout Description
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656 LabelBottomsep
9657 \end_layout
9658
9659 \end_inset
9660
9661  [
9662 \begin_inset Flex Code
9663 status collapsed
9664
9665 \begin_layout Plain Layout
9666 浮動小数点型=0
9667 \end_layout
9668
9669 \end_inset
9670
9671 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676 Top_Environment
9677 \end_layout
9678
9679 \end_inset
9680
9681 および
9682 \begin_inset Newline linebreak
9683 \end_inset
9684
9685
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 Centered_Top_Environment
9691 \end_layout
9692
9693 \end_inset
9694
9695 )。
9696 \end_layout
9697
9698 \begin_layout Description
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 LabelCounter
9704 \end_layout
9705
9706 \end_inset
9707
9708  [
9709 \begin_inset Flex Code
9710 status collapsed
9711
9712 \begin_layout Plain Layout
9713 文字列=""
9714 \end_layout
9715
9716 \end_inset
9717
9718 ] 自動連番に使われるカウンタ名(詳しくは第
9719 \begin_inset CommandInset ref
9720 LatexCommand ref
9721 reference "sub:カウンタ"
9722
9723 \end_inset
9724
9725 節参照)。
9726 \begin_inset Newline newline
9727 \end_inset
9728
9729
9730 \begin_inset Flex Code
9731 status collapsed
9732
9733 \begin_layout Plain Layout
9734 LabelType
9735 \end_layout
9736
9737 \end_inset
9738
9739
9740 \begin_inset Flex Code
9741 status collapsed
9742
9743 \begin_layout Plain Layout
9744 Counter
9745 \end_layout
9746
9747 \end_inset
9748
9749 型のときには、本項目は
9750 \emph on
9751 必須
9752 \emph default
9753 です。この場合には、この様式が出現するたびにカウンタが増えます。
9754 \begin_inset Newline newline
9755 \end_inset
9756
9757 また、
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 LabelType
9763 \end_layout
9764
9765 \end_inset
9766
9767
9768 \begin_inset Flex Code
9769 status collapsed
9770
9771 \begin_layout Plain Layout
9772 Enumerate
9773 \end_layout
9774
9775 \end_inset
9776
9777 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
9778 \begin_inset Flex Code
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 LabelCounter myenum
9783 \end_layout
9784
9785 \end_inset
9786
9787 」と宣言したものとしましょう。すると、LaTeXにおけるのと同様、実際に使われるカウンタは、
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 myenumi
9793 \end_layout
9794
9795 \end_inset
9796
9797
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 myenumii
9803 \end_layout
9804
9805 \end_inset
9806
9807
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 myenumii
9813 \end_layout
9814
9815 \end_inset
9816
9817
9818 \begin_inset Flex Code
9819 status collapsed
9820
9821 \begin_layout Plain Layout
9822 myenumiv
9823 \end_layout
9824
9825 \end_inset
9826
9827 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
9828 \begin_inset Newline newline
9829 \end_inset
9830
9831 カウンタの詳細については、第
9832 \begin_inset CommandInset ref
9833 LatexCommand ref
9834 reference "sub:カウンタ"
9835
9836 \end_inset
9837
9838 節をご覧ください。
9839 \end_layout
9840
9841 \begin_layout Description
9842 \begin_inset Flex Code
9843 status collapsed
9844
9845 \begin_layout Plain Layout
9846 LabelFont
9847 \end_layout
9848
9849 \end_inset
9850
9851  ラベルに使用されるフォント。第
9852 \begin_inset CommandInset ref
9853 LatexCommand ref
9854 reference "sub:フォント指定"
9855
9856 \end_inset
9857
9858 節を参照。
9859 \end_layout
9860
9861 \begin_layout Description
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 LabelIndent
9867 \end_layout
9868
9869 \end_inset
9870
9871  [
9872 \begin_inset Flex Code
9873 status collapsed
9874
9875 \begin_layout Plain Layout
9876 文字列=""
9877 \end_layout
9878
9879 \end_inset
9880
9881 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
9882 \end_layout
9883
9884 \begin_layout Description
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 LabelSep
9890 \end_layout
9891
9892 \end_inset
9893
9894  [
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 文字列=""
9900 \end_layout
9901
9902 \end_inset
9903
9904
9905 \lang english
9906 Text that indicates the amount of
9907 \lang japanese
9908 ラベルと本文テキストの間の水平余白。本文テキストの上に来ないラベルにのみ使用されます。
9909 \end_layout
9910
9911 \begin_layout Description
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 LabelString
9917 \end_layout
9918
9919 \end_inset
9920
9921  [
9922 \begin_inset Flex Code
9923 status collapsed
9924
9925 \begin_layout Plain Layout
9926 文字列=""
9927 \end_layout
9928
9929 \end_inset
9930
9931
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936 Static
9937 \end_layout
9938
9939 \end_inset
9940
9941 ラベル型でラベルに使用する文字列。
9942 \begin_inset Flex Code
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 LabelCounter
9947 \end_layout
9948
9949 \end_inset
9950
9951 を設定している場合、第
9952 \begin_inset CommandInset ref
9953 LatexCommand ref
9954 reference "sub:カウンタ"
9955
9956 \end_inset
9957
9958 節に述べられている特別な整形コマンドを含めることができます。
9959 \end_layout
9960
9961 \begin_layout Description
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 LabelStringAppendix
9967 \end_layout
9968
9969 \end_inset
9970
9971  [
9972 \begin_inset Flex Code
9973 status collapsed
9974
9975 \begin_layout Plain Layout
9976 文字列=""
9977 \end_layout
9978
9979 \end_inset
9980
9981 ] これは付録の中で
9982 \begin_inset Flex Code
9983 status collapsed
9984
9985 \begin_layout Plain Layout
9986 LabelString
9987 \end_layout
9988
9989 \end_inset
9990
9991 の代わりに用いられます。各
9992 \begin_inset Flex Code
9993 status collapsed
9994
9995 \begin_layout Plain Layout
9996 LabelString
9997 \end_layout
9998
9999 \end_inset
10000
10001 ステートメントは、
10002 \begin_inset Flex Code
10003 status collapsed
10004
10005 \begin_layout Plain Layout
10006 LabelStringAppendix
10007 \end_layout
10008
10009 \end_inset
10010
10011 をもリセットすることに注意してください。
10012 \end_layout
10013
10014 \begin_layout Description
10015 \begin_inset Flex Code
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 LabelTag
10020 \end_layout
10021
10022 \end_inset
10023
10024  [FIXME] (XML型書式でのみ使用されます。)
10025 \end_layout
10026
10027 \begin_layout Description
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 LabelType
10033 \end_layout
10034
10035 \end_inset
10036
10037  [
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042
10043 \emph on
10044 No_Label
10045 \emph default
10046 , Manual, Static, Top_Environment,
10047 \begin_inset Newline newline
10048 \end_inset
10049
10050 Centered_Top_Environment, Counter, Sensitive, Enumerate,
10051 \begin_inset Newline newline
10052 \end_inset
10053
10054 Itemize, Bibliography
10055 \end_layout
10056
10057 \end_inset
10058
10059 ]
10060 \end_layout
10061
10062 \begin_deeper
10063 \begin_layout Description
10064 \begin_inset Flex Code
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068 Manual
10069 \end_layout
10070
10071 \end_inset
10072
10073  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
10074 \end_layout
10075
10076 \begin_layout Description
10077 \begin_inset Flex Code
10078 status collapsed
10079
10080 \begin_layout Plain Layout
10081 Static
10082 \end_layout
10083
10084 \end_inset
10085
10086  は、ラベルが
10087 \begin_inset Flex Code
10088 status collapsed
10089
10090 \begin_layout Plain Layout
10091 LabelString
10092 \end_layout
10093
10094 \end_inset
10095
10096 で宣言したものであることを示します。これは「静的」であることに注意してください。
10097 \end_layout
10098
10099 \begin_layout Description
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 Top_Environment
10105 \end_layout
10106
10107 \end_inset
10108
10109
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 Centered_Top_Environment
10115 \end_layout
10116
10117 \end_inset
10118
10119  は、
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 Static
10125 \end_layout
10126
10127 \end_inset
10128
10129 の特別な場合です。ラベルは段落の上に印字されるのですが、それは単一の環境の上か、このレイアウトを持つ連続した段落群の上だけに印字されます。たとえば、
10130 \begin_inset Flex MenuItem
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 Abstract
10135 \end_layout
10136
10137 \end_inset
10138
10139 レイアウトが使用したりします。
10140 \end_layout
10141
10142 \begin_layout Description
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 Sensitive
10148 \end_layout
10149
10150 \end_inset
10151
10152  はキャプションラベルの「図」や「表」の特別な場合です。
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 Sensitive
10158 \end_layout
10159
10160 \end_inset
10161
10162 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
10163 Type N」にハードコードされています。
10164 \end_layout
10165
10166 \begin_layout Description
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 Counter
10172 \end_layout
10173
10174 \end_inset
10175
10176  ラベル型は、自動的に連番が付されるラベルを定義します。
10177 \begin_inset Flex Code
10178 status collapsed
10179
10180 \begin_layout Plain Layout
10181 LabelString
10182 \end_layout
10183
10184 \end_inset
10185
10186 は、それが含むカウンタ参照をすべて解決するために展開されます。これは、たとえば
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 Section 
10192 \backslash
10193 thechapter.
10194 \backslash
10195 thesection
10196 \end_layout
10197
10198 \end_inset
10199
10200 のようになります。第
10201 \begin_inset CommandInset ref
10202 LatexCommand ref
10203 reference "sub:カウンタ"
10204
10205 \end_inset
10206
10207 節を参照してください。
10208 \end_layout
10209
10210 \begin_layout Description
10211 \begin_inset Flex Code
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215 Enumerate
10216 \end_layout
10217
10218 \end_inset
10219
10220  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
10221 す。
10222 \end_layout
10223
10224 \begin_layout Description
10225 \begin_inset Flex Code
10226 status collapsed
10227
10228 \begin_layout Plain Layout
10229 Itemize
10230 \end_layout
10231
10232 \end_inset
10233
10234  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
10235 \end_layout
10236
10237 \begin_layout Description
10238 \begin_inset Flex Code
10239 status collapsed
10240
10241 \begin_layout Plain Layout
10242 Bibliography
10243 \end_layout
10244
10245 \end_inset
10246
10247  は、LyXで内部的に使用され、
10248 \begin_inset Flex Code
10249 status collapsed
10250
10251 \begin_layout Plain Layout
10252 LatexType BibEnvironment
10253 \end_layout
10254
10255 \end_inset
10256
10257 とともにのみ使用されます。
10258 \end_layout
10259
10260 \end_deeper
10261 \begin_layout Description
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 LangPreamble
10267 \end_layout
10268
10269 \end_inset
10270
10271  これは、この様式で既に出現した
10272 \begin_inset Flex Code
10273 status collapsed
10274
10275 \begin_layout Plain Layout
10276 LangPreamble
10277 \end_layout
10278
10279 \end_inset
10280
10281 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、第
10282 \begin_inset CommandInset ref
10283 LatexCommand ref
10284 reference "sub:段落様式の国際化"
10285
10286 \end_inset
10287
10288 節をご覧ください。
10289 \end_layout
10290
10291 \begin_layout Description
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 LatexName
10297 \end_layout
10298
10299 \end_inset
10300
10301  
10302 \lang english
10303 [
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308
10309 \lang english
10310 <name>
10311 \end_layout
10312
10313 \end_inset
10314
10315
10316 \lang japanese
10317 対応するLaTeXの名称です。環境名かコマンド名を指します。
10318 \end_layout
10319
10320 \begin_layout Description
10321 \begin_inset Flex Code
10322 status collapsed
10323
10324 \begin_layout Plain Layout
10325 LatexParam
10326 \end_layout
10327
10328 \end_inset
10329
10330  
10331 \lang english
10332 [
10333 \begin_inset Flex Code
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337
10338 \lang english
10339 <parameter>
10340 \end_layout
10341
10342 \end_inset
10343
10344 ]
10345 \lang japanese
10346  対応する
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 LatexName
10352 \end_layout
10353
10354 \end_inset
10355
10356 の非必須パラメータです。このパラメータは、LyX内部から変更することはできません。
10357 \end_layout
10358
10359 \begin_layout Description
10360 \begin_inset Flex Code
10361 status collapsed
10362
10363 \begin_layout Plain Layout
10364 LatexType
10365 \end_layout
10366
10367 \end_inset
10368
10369  [
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374
10375 \emph on
10376 Paragraph
10377 \emph default
10378 , Command, Environment, Item_Environment,
10379 \begin_inset Newline newline
10380 \end_inset
10381
10382 List_Environment, Bib_Environment
10383 \end_layout
10384
10385 \end_inset
10386
10387 ] レイアウトがどのようにLaTeXに変換されるべきかを示します
10388 \begin_inset Foot
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392 これらのルールはSGMLクラスにも適用されるので、
10393 \begin_inset Flex Code
10394 status collapsed
10395
10396 \begin_layout Plain Layout
10397 LatexType
10398 \end_layout
10399
10400 \end_inset
10401
10402 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
10403 \end_layout
10404
10405 \end_inset
10406
10407
10408 \end_layout
10409
10410 \begin_deeper
10411 \begin_layout Description
10412 \begin_inset Flex Code
10413 status collapsed
10414
10415 \begin_layout Plain Layout
10416 Paragraph
10417 \end_layout
10418
10419 \end_inset
10420
10421  は、何も特別なことは意味しません。
10422 \end_layout
10423
10424 \begin_layout Description
10425 \begin_inset Flex Code
10426 status collapsed
10427
10428 \begin_layout Plain Layout
10429 Command
10430 \end_layout
10431
10432 \end_inset
10433
10434  は、
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439
10440 \backslash
10441
10442 \emph on
10443 LatexName
10444 \emph default
10445 {\SpecialChar \ldots{}
10446 }
10447 \end_layout
10448
10449 \end_inset
10450
10451 を意味します。
10452 \end_layout
10453
10454 \begin_layout Description
10455 \begin_inset Flex Code
10456 status collapsed
10457
10458 \begin_layout Plain Layout
10459 Environment
10460 \end_layout
10461
10462 \end_inset
10463
10464  は、
10465 \begin_inset Flex Code
10466 status collapsed
10467
10468 \begin_layout Plain Layout
10469
10470 \backslash
10471 begin{
10472 \emph on
10473 LatexName
10474 \emph default
10475 }\SpecialChar \ldots{}
10476
10477 \backslash
10478 end{
10479 \emph on
10480 LatexName
10481 \emph default
10482 }
10483 \end_layout
10484
10485 \end_inset
10486
10487 を意味します。
10488 \end_layout
10489
10490 \begin_layout Description
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 Item_Environment
10496 \end_layout
10497
10498 \end_inset
10499
10500  は
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 Environment
10506 \end_layout
10507
10508 \end_inset
10509
10510 と同じですが、
10511 \begin_inset Flex Code
10512 status collapsed
10513
10514 \begin_layout Plain Layout
10515
10516 \backslash
10517 item
10518 \end_layout
10519
10520 \end_inset
10521
10522 がこの環境のすべての段落に付けられるところだけが異なっています。
10523 \end_layout
10524
10525 \begin_layout Description
10526 \begin_inset Flex Code
10527 status collapsed
10528
10529 \begin_layout Plain Layout
10530 List_Environment
10531 \end_layout
10532
10533 \end_inset
10534
10535  は
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 Item_Environment
10541 \end_layout
10542
10543 \end_inset
10544
10545 と同じですが、
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 LabelWidthString
10551 \end_layout
10552
10553 \end_inset
10554
10555 が環境の引数として渡されるところだけが異なっています。
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 LabelWidthString
10561 \end_layout
10562
10563 \end_inset
10564
10565 は、
10566 \begin_inset Flex MenuItem
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 編集\SpecialChar \menuseparator
10571 段落設定
10572 \end_layout
10573
10574 \end_inset
10575
10576 ダイアログで定義することができます。
10577 \end_layout
10578
10579 \begin_layout Description
10580
10581 \lang english
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586
10587 \lang english
10588 Bib_Environment
10589 \end_layout
10590
10591 \end_inset
10592
10593  is like 
10594 \begin_inset Flex Code
10595 status collapsed
10596
10597 \begin_layout Plain Layout
10598
10599 \lang english
10600 Environment
10601 \end_layout
10602
10603 \end_inset
10604
10605  but adds additionally the necessary mandatory argument to the begin statement
10606  of the bibliography environment:
10607 \begin_inset Newline newline
10608 \end_inset
10609
10610
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615
10616 \lang english
10617
10618 \backslash
10619 begin{thebibliography}{99}
10620 \end_layout
10621
10622 \end_inset
10623
10624  It is therefore only useful for bibliography environments.
10625 \end_layout
10626
10627 \begin_layout Standard
10628 上記最後のいくつかをまとめると、LaTeX出力は、LaTeX型に依存して
10629 \end_layout
10630
10631 \begin_layout LyX-Code
10632
10633 \backslash
10634 LatexName[LatexParam]{\SpecialChar \ldots{}
10635 }
10636 \end_layout
10637
10638 \begin_layout Standard
10639 のようになるか、
10640 \end_layout
10641
10642 \begin_layout LyX-Code
10643
10644 \backslash
10645 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
10646  
10647 \backslash
10648 end{LatexName}.
10649 \end_layout
10650
10651 \begin_layout Standard
10652 となります。
10653 \end_layout
10654
10655 \end_deeper
10656 \begin_layout Description
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 LeftMargin
10662 \end_layout
10663
10664 \end_inset
10665
10666  [
10667 \begin_inset Flex Code
10668 status collapsed
10669
10670 \begin_layout Plain Layout
10671 文字列=""
10672 \end_layout
10673
10674 \end_inset
10675
10676 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
10677 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
10678 \end_inset
10679
10680 をかけて加えられます。このパラメータは、
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 Margin
10686 \end_layout
10687
10688 \end_inset
10689
10690
10691 \begin_inset Flex Code
10692 status collapsed
10693
10694 \begin_layout Plain Layout
10695 Manual
10696 \end_layout
10697
10698 \end_inset
10699
10700 あるいは
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 Dynamic
10706 \end_layout
10707
10708 \end_inset
10709
10710 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
10711 \begin_inset Newline newline
10712 \end_inset
10713
10714 たとえば「
10715 \begin_inset Flex Code
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 MM
10720 \end_layout
10721
10722 \end_inset
10723
10724 」と指定すると、段落を通常フォントの「
10725 \begin_inset Flex Code
10726 status collapsed
10727
10728 \begin_layout Plain Layout
10729 MM
10730 \end_layout
10731
10732 \end_inset
10733
10734 」の幅だけ行頭下げを行います。文字列の前に「
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 -
10740 \end_layout
10741
10742 \end_inset
10743
10744 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
10745 \end_layout
10746
10747 \begin_layout Description
10748 \begin_inset Flex Code
10749 status collapsed
10750
10751 \begin_layout Plain Layout
10752 Margin
10753 \end_layout
10754
10755 \end_inset
10756
10757  [
10758 \begin_inset Flex Code
10759 status collapsed
10760
10761 \begin_layout Plain Layout
10762
10763 \emph on
10764 Static
10765 \emph default
10766 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10767 \end_layout
10768
10769 \end_inset
10770
10771
10772 \begin_inset Newline newline
10773 \end_inset
10774
10775 このレイアウトの左余白の種類です。
10776 \end_layout
10777
10778 \begin_deeper
10779 \begin_layout Description
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 Static
10785 \end_layout
10786
10787 \end_inset
10788
10789  は固定余白を示します。
10790 \end_layout
10791
10792 \begin_layout Description
10793 \begin_inset Flex Code
10794 status collapsed
10795
10796 \begin_layout Plain Layout
10797 Manual
10798 \end_layout
10799
10800 \end_inset
10801
10802  は、左余白が
10803 \begin_inset Flex MenuItem
10804 status collapsed
10805
10806 \begin_layout Plain Layout
10807 編集\SpecialChar \menuseparator
10808 段落設定
10809 \end_layout
10810
10811 \end_inset
10812
10813 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
10814 \end_layout
10815
10816 \begin_layout Description
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 Dynamic
10822 \end_layout
10823
10824 \end_inset
10825
10826  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
10827  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
10828 \end_layout
10829
10830 \begin_layout Description
10831 \begin_inset Flex Code
10832 status collapsed
10833
10834 \begin_layout Plain Layout
10835 First_Dynamic
10836 \end_layout
10837
10838 \end_inset
10839
10840  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
10841 \end_layout
10842
10843 \begin_layout Description
10844 \begin_inset Flex Code
10845 status collapsed
10846
10847 \begin_layout Plain Layout
10848 Right_Address_Box
10849 \end_layout
10850
10851 \end_inset
10852
10853  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
10854 \end_layout
10855
10856 \end_deeper
10857 \begin_layout Description
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 NeedProtect
10863 \end_layout
10864
10865 \end_inset
10866
10867  [
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872
10873 \emph on
10874 0
10875 \end_layout
10876
10877 \end_inset
10878
10879 ,
10880 \begin_inset space \thinspace{}
10881 \end_inset
10882
10883
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888 1
10889 \end_layout
10890
10891 \end_inset
10892
10893 ] このレイアウト中の脆弱なコマンドが
10894 \begin_inset Flex Code
10895 status collapsed
10896
10897 \begin_layout Plain Layout
10898
10899 \backslash
10900 protect
10901 \end_layout
10902
10903 \end_inset
10904
10905 されるべきか否か(註:これはこのコマンド自体が
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910
10911 \backslash
10912 protect
10913 \end_layout
10914
10915 \end_inset
10916
10917 されるべきかでは
10918 \emph on
10919 ありません
10920 \emph default
10921 )。
10922 \end_layout
10923
10924 \begin_layout Description
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 Newline
10930 \end_layout
10931
10932 \end_inset
10933
10934  [
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 0
10940 \end_layout
10941
10942 \end_inset
10943
10944 ,
10945 \begin_inset space \thinspace{}
10946 \end_inset
10947
10948
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953
10954 \emph on
10955 1
10956 \end_layout
10957
10958 \end_inset
10959
10960 ] 新規行をLaTeXの新規行(
10961 \begin_inset Flex Code
10962 status collapsed
10963
10964 \begin_layout Plain Layout
10965
10966 \backslash
10967
10968 \backslash
10969
10970 \end_layout
10971
10972 \end_inset
10973
10974 )に変換するか否か。LyX中でLaTeX編集をやりやすくするために、変換は無効にすることができます。
10975 \end_layout
10976
10977 \begin_layout Description
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 NextNoIndent
10983 \end_layout
10984
10985 \end_inset
10986
10987  [
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992
10993 \emph on
10994 0
10995 \end_layout
10996
10997 \end_inset
10998
10999 ,
11000 \begin_inset space \thinspace{}
11001 \end_inset
11002
11003
11004 \begin_inset Flex Code
11005 status collapsed
11006
11007 \begin_layout Plain Layout
11008 1
11009 \end_layout
11010
11011 \end_inset
11012
11013 ] 次の段落に最初の行の行頭下げを許すか否か。
11014 \begin_inset Flex Code
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018 1
11019 \end_layout
11020
11021 \end_inset
11022
11023 は許可しないことを意味し、
11024 \begin_inset Flex Code
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 0
11029 \end_layout
11030
11031 \end_inset
11032
11033 は望むならば行頭下げできることを意味します。
11034 \end_layout
11035
11036 \begin_layout Description
11037 \begin_inset Flex Code
11038 status collapsed
11039
11040 \begin_layout Plain Layout
11041 ObsoletedBy
11042 \end_layout
11043
11044 \end_inset
11045
11046  
11047 \lang english
11048 [
11049 \begin_inset Flex Code
11050 status collapsed
11051
11052 \begin_layout Plain Layout
11053
11054 \lang english
11055 <name>
11056 \end_layout
11057
11058 \end_inset
11059
11060 ]
11061 \lang japanese
11062  このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
11063 \end_layout
11064
11065 \begin_layout Description
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 OptionalArgs
11071 \end_layout
11072
11073 \end_inset
11074
11075  [
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080 整数型=0
11081 \end_layout
11082
11083 \end_inset
11084
11085 ] このレイアウトに使用することのできる非必須引数の数。節見出しのようなものに有用であり、LaTeXでのみ意味を持ちます。出力時には、非必須引数は、すべての必須
11086 引数の前に来ることに注意してください(以下参照)。つまり、
11087 \end_layout
11088
11089 \begin_deeper
11090 \begin_layout LyX-Code
11091
11092 \backslash
11093 mycmd[非必須引数1]{必須引数1}{段落の内容}
11094 \end_layout
11095
11096 \begin_layout Standard
11097 のようなコマンドは生成できますが、
11098 \end_layout
11099
11100 \begin_layout LyX-Code
11101
11102 \backslash
11103 mycmd[非必須引数1]{必須引数1}[非必須引数2]{段落の内容}
11104 \end_layout
11105
11106 \begin_layout Standard
11107 のようなコマンドは、TeXコード(これを使えば何でもできます)を使用することなしには、生成することができません。
11108 \end_layout
11109
11110 \end_deeper
11111 \begin_layout Description
11112 \begin_inset Flex Code
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116 ParbreakIsNewline
11117 \end_layout
11118
11119 \end_inset
11120
11121  [
11122 \begin_inset Flex Code
11123 status collapsed
11124
11125 \begin_layout Plain Layout
11126
11127 \emph on
11128 0
11129 \end_layout
11130
11131 \end_inset
11132
11133 ,
11134 \begin_inset space \thinspace{}
11135 \end_inset
11136
11137
11138 \begin_inset Flex Code
11139 status collapsed
11140
11141 \begin_layout Plain Layout
11142 1
11143 \end_layout
11144
11145 \end_inset
11146
11147 ] LaTeX出力中で、段落を空行ではなく、改行で区切るよう指定します。
11148 \begin_inset Flex Code
11149 status collapsed
11150
11151 \begin_layout Plain Layout
11152 PassThru 1
11153 \end_layout
11154
11155 \end_inset
11156
11157 と併用すれば、(TeXコードを使用したときのように)テキストエディタをエミュレートすることができます。
11158 \end_layout
11159
11160 \begin_layout Description
11161 \begin_inset Flex Code
11162 status collapsed
11163
11164 \begin_layout Plain Layout
11165 ParIndent
11166 \end_layout
11167
11168 \end_inset
11169
11170  [
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 文字列=""
11176 \end_layout
11177
11178 \end_inset
11179
11180 ] 段落の最初の行の行頭下げ。レイアウトによっては
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185 Parindent
11186 \end_layout
11187
11188 \end_inset
11189
11190 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
11191 \begin_inset Flex Code
11192 status collapsed
11193
11194 \begin_layout Plain Layout
11195 NextNoIndent
11196 \end_layout
11197
11198 \end_inset
11199
11200 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 Parindent
11206 \end_layout
11207
11208 \end_inset
11209
11210 ではなく、この環境の
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 Parindent
11216 \end_layout
11217
11218 \end_inset
11219
11220 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
11221 \end_layout
11222
11223 \begin_layout Description
11224 \begin_inset Flex Code
11225 status collapsed
11226
11227 \begin_layout Plain Layout
11228 ParSep
11229 \end_layout
11230
11231 \end_inset
11232
11233  [
11234 \begin_inset Flex Code
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238 浮動小数点型=0
11239 \end_layout
11240
11241 \end_inset
11242
11243 ] このレイアウトの2段落間の垂直余白。
11244 \end_layout
11245
11246 \begin_layout Description
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 Parskip
11252 \end_layout
11253
11254 \end_inset
11255
11256  [
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 浮動小数点型=0
11262 \end_layout
11263
11264 \end_inset
11265
11266 ] LyXでは、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ
11267 」を選択した際には、LaTeX型「段落」レイアウトの
11268 \begin_inset Flex Code
11269 status collapsed
11270
11271 \begin_layout Plain Layout
11272 ParIndent
11273 \end_layout
11274
11275 \end_inset
11276
11277 は無視され、すべての段落はこの
11278 \begin_inset Flex Code
11279 status collapsed
11280
11281 \begin_layout Plain Layout
11282 Parskip
11283 \end_layout
11284
11285 \end_inset
11286
11287 引数分だけ引き離されます。垂直余白は、
11288 \begin_inset Flex Code
11289 status collapsed
11290
11291 \begin_layout Plain Layout
11292 DefaultHeight
11293 \end_layout
11294
11295 \end_inset
11296
11297 を標準フォントでの1行の高さとすると、
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302 Parskipの値
11303 \end_layout
11304
11305 \end_inset
11306
11307
11308 \begin_inset Formula $\times$
11309 \end_inset
11310
11311
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 DefaultHeight
11317 \end_layout
11318
11319 \end_inset
11320
11321 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
11322 \end_layout
11323
11324 \begin_layout Description
11325 \begin_inset Flex Code
11326 status collapsed
11327
11328 \begin_layout Plain Layout
11329 PassThru
11330 \end_layout
11331
11332 \end_inset
11333
11334  [
11335 \emph on
11336
11337 \begin_inset Flex Code
11338 status collapsed
11339
11340 \begin_layout Plain Layout
11341 0
11342 \end_layout
11343
11344 \end_inset
11345
11346
11347 \emph default
11348 ,
11349 \begin_inset space \thinspace{}
11350 \end_inset
11351
11352
11353 \begin_inset Flex Code
11354 status collapsed
11355
11356 \begin_layout Plain Layout
11357 1
11358 \end_layout
11359
11360 \end_inset
11361
11362 ] この段落の内容が、LaTeXが必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
11363 \end_layout
11364
11365 \begin_layout Description
11366 \begin_inset Flex Code
11367 status collapsed
11368
11369 \begin_layout Plain Layout
11370 Preamble
11371 \end_layout
11372
11373 \end_inset
11374
11375  この様式が使用されたときに、LaTeXプリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用
11376 します。「
11377 \begin_inset Flex Code
11378 status collapsed
11379
11380 \begin_layout Plain Layout
11381 EndPreamble
11382 \end_layout
11383
11384 \end_inset
11385
11386 」で閉じる必要があります。
11387 \end_layout
11388
11389 \begin_layout Description
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 RefPrefix
11395 \end_layout
11396
11397 \end_inset
11398
11399  [
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 文字列
11405 \end_layout
11406
11407 \end_inset
11408
11409 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
11410 \end_layout
11411
11412 \begin_layout Description
11413 \begin_inset Flex Code
11414 status collapsed
11415
11416 \begin_layout Plain Layout
11417 RequiredArgs
11418 \end_layout
11419
11420 \end_inset
11421
11422  [
11423 \begin_inset Flex Code
11424 status collapsed
11425
11426 \begin_layout Plain Layout
11427 整数型=0
11428 \end_layout
11429
11430 \end_inset
11431
11432 ] このレイアウトに対応するLaTeXコマンドやLaTeX環境が予期している、必須引数の数。コマンドの場合には、段落の内容自体に関連付けられている引数
11433 \emph on
11434 以外に
11435 \emph default
11436 、必要な引数の数のことです。これらの引数は、実際には渡されなくても構いません。必要な場合は、LyXが空の引数を生成します。非必須引数は、必須引数の前に出力される
11437 ことに注意してください。詳細については、上記
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442 OptionalArgs
11443 \end_layout
11444
11445 \end_inset
11446
11447 タグにおける議論をご覧ください。
11448 \end_layout
11449
11450 \begin_layout Description
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 Requires
11456 \end_layout
11457
11458 \end_inset
11459
11460  [
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 文字列
11466 \end_layout
11467
11468 \end_inset
11469
11470
11471 \lang english
11472 Whether the style requires the feature 
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477
11478 \lang english
11479 string
11480 \end_layout
11481
11482 \end_inset
11483
11484 .
11485  See the description of 
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490
11491 \lang english
11492 Provides
11493 \end_layout
11494
11495 \end_inset
11496
11497  above (sec
11498 \lang japanese
11499 .
11500 \begin_inset space ~
11501 \end_inset
11502
11503
11504 \begin_inset CommandInset ref
11505 LatexCommand ref
11506 reference "sub:汎用テキストクラスパラメータ"
11507
11508 \end_inset
11509
11510
11511 \lang english
11512 ) for information on `features'
11513 \lang japanese
11514
11515 \end_layout
11516
11517 \begin_layout Description
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 RightMargin
11523 \end_layout
11524
11525 \end_inset
11526
11527  [
11528 \begin_inset Flex Code
11529 status collapsed
11530
11531 \begin_layout Plain Layout
11532 文字列=""
11533 \end_layout
11534
11535 \end_inset
11536
11537
11538 \begin_inset Flex Code
11539 status collapsed
11540
11541 \begin_layout Plain Layout
11542 LeftMargin
11543 \end_layout
11544
11545 \end_inset
11546
11547 に同様。
11548 \end_layout
11549
11550 \begin_layout Description
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 Spacing
11556 \end_layout
11557
11558 \end_inset
11559
11560  [
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565
11566 \emph on
11567 single
11568 \end_layout
11569
11570 \end_inset
11571
11572
11573 \begin_inset Flex Code
11574 status collapsed
11575
11576 \begin_layout Plain Layout
11577 onehalf
11578 \end_layout
11579
11580 \end_inset
11581
11582
11583 \begin_inset Flex Code
11584 status collapsed
11585
11586 \begin_layout Plain Layout
11587 double
11588 \end_layout
11589
11590 \end_inset
11591
11592
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597 other
11598 \begin_inset space ~
11599 \end_inset
11600
11601 <
11602 \emph on
11603
11604 \emph default
11605 >
11606 \end_layout
11607
11608 \end_inset
11609
11610 ]
11611 \lang english
11612  
11613 \lang japanese
11614 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
11615 \begin_inset Flex Code
11616 status collapsed
11617
11618 \begin_layout Plain Layout
11619 single
11620 \end_layout
11621
11622 \end_inset
11623
11624
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 onehalf
11630 \end_layout
11631
11632 \end_inset
11633
11634
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 double
11640 \end_layout
11641
11642 \end_inset
11643
11644 は、それぞれ乗数1・1.25・1.667に対応します。引数
11645 \begin_inset Flex Code
11646 status collapsed
11647
11648 \begin_layout Plain Layout
11649 other
11650 \end_layout
11651
11652 \end_inset
11653
11654 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
11655 \begin_inset Flex Code
11656 status collapsed
11657
11658 \begin_layout Plain Layout
11659 Spacing
11660 \end_layout
11661
11662 \end_inset
11663
11664 は、
11665 \lang english
11666 LaTeX package
11667 \lang japanese
11668
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673 setspace
11674 \end_layout
11675
11676 \end_inset
11677
11678 パッケージを使用した、限定的なLaTeXコードを生成することを意味することにご注意ください。
11679 \end_layout
11680
11681 \begin_layout Description
11682 \begin_inset Flex Code
11683 status collapsed
11684
11685 \begin_layout Plain Layout
11686 Spellcheck
11687 \end_layout
11688
11689 \end_inset
11690
11691  [
11692 \begin_inset Flex Code
11693 status collapsed
11694
11695 \begin_layout Plain Layout
11696 0
11697 \end_layout
11698
11699 \end_inset
11700
11701 ,
11702 \begin_inset space \thinspace{}
11703 \end_inset
11704
11705
11706 \begin_inset Flex Code
11707 status collapsed
11708
11709 \begin_layout Plain Layout
11710 1
11711 \end_layout
11712
11713 \end_inset
11714
11715 ] この様式の段落をスペルチェックするか否か。既定値は真です。
11716 \end_layout
11717
11718 \begin_layout Description
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723 TextFont
11724 \end_layout
11725
11726 \end_inset
11727
11728  本文に使うフォント。第
11729 \begin_inset CommandInset ref
11730 LatexCommand ref
11731 reference "sub:フォント指定"
11732
11733 \end_inset
11734
11735 節参照。
11736 \end_layout
11737
11738 \begin_layout Description
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743 TocLevel
11744 \end_layout
11745
11746 \end_inset
11747
11748  [
11749 \begin_inset Flex Code
11750 status collapsed
11751
11752 \begin_layout Plain Layout
11753 整数型=3
11754 \end_layout
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 TopSep
11767 \end_layout
11768
11769 \end_inset
11770
11771  [
11772 \begin_inset Flex Code
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776 浮動小数点型=0
11777 \end_layout
11778
11779 \end_inset
11780
11781 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
11782 の最大値がとられます。
11783 \end_layout
11784
11785 \begin_layout Subsection
11786 \begin_inset CommandInset label
11787 LatexCommand label
11788 name "sub:段落様式の国際化"
11789
11790 \end_inset
11791
11792 段落様式の国際化
11793 \end_layout
11794
11795 \begin_layout Standard
11796 LyXは、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用さ
11797 れませんでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
11798 \lang french
11799 Théorème
11800 \lang japanese
11801  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
11802 \end_layout
11803
11804 \begin_layout Standard
11805 もし
11806 \begin_inset Flex MenuItem
11807 status collapsed
11808
11809 \begin_layout Plain Layout
11810 Style
11811 \end_layout
11812
11813 \end_inset
11814
11815 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
11816 \begin_inset Flex MenuItem
11817 status collapsed
11818
11819 \begin_layout Plain Layout
11820 LangPreamble
11821 \end_layout
11822
11823 \end_inset
11824
11825
11826 \begin_inset Flex MenuItem
11827 status collapsed
11828
11829 \begin_layout Plain Layout
11830 BabelPreamble
11831 \end_layout
11832
11833 \end_inset
11834
11835 を使用することができます。以下の抜粋(
11836 \begin_inset Flex MenuItem
11837 status collapsed
11838
11839 \begin_layout Plain Layout
11840 theorems-ams.inc
11841 \end_layout
11842
11843 \end_inset
11844
11845 より)は、これがどう動作するかを示すものです。
11846 \end_layout
11847
11848 \begin_layout LyX-Code
11849 Preamble
11850 \end_layout
11851
11852 \begin_deeper
11853 \begin_layout LyX-Code
11854   
11855 \backslash
11856 theoremstyle{remark}
11857 \end_layout
11858
11859 \begin_layout LyX-Code
11860   
11861 \backslash
11862 newtheorem{claim}[thm]{
11863 \backslash
11864 protect
11865 \backslash
11866 claimname}
11867 \end_layout
11868
11869 \begin_layout LyX-Code
11870 EndPreamble
11871 \end_layout
11872
11873 \begin_layout LyX-Code
11874 LangPreamble
11875 \end_layout
11876
11877 \begin_layout LyX-Code
11878   
11879 \backslash
11880 providecommand{
11881 \backslash
11882 claimname}{_(Claim)}
11883 \end_layout
11884
11885 \begin_layout LyX-Code
11886 EndLangPreamble
11887 \end_layout
11888
11889 \begin_layout LyX-Code
11890 BabelPreamble
11891 \end_layout
11892
11893 \begin_layout LyX-Code
11894     
11895 \backslash
11896 addto
11897 \backslash
11898 captions$$lang{
11899 \backslash
11900 renewcommand{
11901 \backslash
11902 claimname}{_(Claim)}}
11903 \end_layout
11904
11905 \begin_layout LyX-Code
11906 EndBabelPreamble
11907 \end_layout
11908
11909 \end_deeper
11910 \begin_layout Standard
11911 原則として、
11912 \begin_inset Flex MenuItem
11913 status collapsed
11914
11915 \begin_layout Plain Layout
11916 LangPreamble
11917 \end_layout
11918
11919 \end_inset
11920
11921
11922 \begin_inset Flex MenuItem
11923 status collapsed
11924
11925 \begin_layout Plain Layout
11926 BabelPreamble
11927 \end_layout
11928
11929 \end_inset
11930
11931 タグ内には、有効なLaTeXコードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための
11932 鍵となるのは、LaTeXコマンド
11933 \begin_inset Flex Code
11934 status collapsed
11935
11936 \begin_layout Plain Layout
11937
11938 \backslash
11939 claimname
11940 \end_layout
11941
11942 \end_inset
11943
11944 とその
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949
11950 \backslash
11951 newtheorem
11952 \end_layout
11953
11954 \end_inset
11955
11956 中での用い方です。
11957 \end_layout
11958
11959 \begin_layout Standard
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 LangPreamble
11965 \end_layout
11966
11967 \end_inset
11968
11969 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 Preamble
11975 \end_layout
11976
11977 \end_inset
11978
11979 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 _()
11985 \end_layout
11986
11987 \end_inset
11988
11989 が使用されていることです。これは、LyXがLaTeX出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
11990 \end_layout
11991
11992 \begin_layout Standard
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 BabelPreamble
11998 \end_layout
11999
12000 \end_inset
12001
12002 タグは、複数言語文書をサポートし、
12003 \begin_inset Flex Code
12004 status collapsed
12005
12006 \begin_layout Plain Layout
12007 babel
12008 \end_layout
12009
12010 \end_inset
12011
12012 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
12013 の場合には、
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 _()
12019 \end_layout
12020
12021 \end_inset
12022
12023 の引数は、その当該言語への翻訳で置き換えられ、
12024 \begin_inset Flex Code
12025 status collapsed
12026
12027 \begin_layout Plain Layout
12028 $$lang
12029 \end_layout
12030
12031 \end_inset
12032
12033 は言語名(babelパッケージで使用されるもの)で置き換えられます。
12034 \end_layout
12035
12036 \begin_layout Standard
12037 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
12038 \end_layout
12039
12040 \begin_layout LyX-Code
12041
12042 \backslash
12043 addto
12044 \backslash
12045 captionsfrench{
12046 \backslash
12047 renewcommand{
12048 \backslash
12049 claimname}{Affirmation}}
12050 \begin_inset Newline newline
12051 \end_inset
12052
12053
12054 \backslash
12055 addto
12056 \backslash
12057 captionsngerman{
12058 \backslash
12059 renewcommand{
12060 \backslash
12061 claimname}{Behauptung}}
12062 \begin_inset Newline newline
12063 \end_inset
12064
12065
12066 \backslash
12067 providecommand{
12068 \backslash
12069 claimname}{Behauptung}
12070 \end_layout
12071
12072 \begin_layout Standard
12073 それから、LaTeXと
12074 \begin_inset Flex Code
12075 status collapsed
12076
12077 \begin_layout Plain Layout
12078 babel
12079 \end_layout
12080
12081 \end_inset
12082
12083 は協力して、出力に正しい文字列を生成します。
12084 \end_layout
12085
12086 \begin_layout Standard
12087 ここで注意しなくてはならない重要な点は、翻訳は、操作画面の国際化に使われるのと同じ機構を通じて、LyX自身によって提供されるということです。つまり、ユーザー作成
12088 のレイアウトファイルに入力された文字列は、LyXの国際化ルーチンでは取り扱われないので、
12089 \begin_inset Flex MenuItem
12090 status collapsed
12091
12092 \begin_layout Plain Layout
12093 LangPreamble
12094 \end_layout
12095
12096 \end_inset
12097
12098
12099 \begin_inset Flex MenuItem
12100 status collapsed
12101
12102 \begin_layout Plain Layout
12103 BabelPreamble
12104 \end_layout
12105
12106 \end_inset
12107
12108 は、事実上、LyXとともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的にLyXに同梱
12109 させようという意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。
12110 \end_layout
12111
12112 \begin_layout Subsection
12113 フロート
12114 \begin_inset CommandInset label
12115 LatexCommand label
12116 name "sub:フロート"
12117
12118 \end_inset
12119
12120
12121 \end_layout
12122
12123 \begin_layout Standard
12124 LyX第1.3.0版以来、テキストクラス自体の中でフロート(
12125 \begin_inset Flex MenuItem
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 figure
12130 \end_layout
12131
12132 \end_inset
12133
12134
12135 \begin_inset Flex MenuItem
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 table
12140 \end_layout
12141
12142 \end_inset
12143
12144 ・\SpecialChar \ldots{}
12145 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
12146 \begin_inset Flex Code
12147 status collapsed
12148
12149 \begin_layout Plain Layout
12150 stdfloats.inc
12151 \end_layout
12152
12153 \end_inset
12154
12155 ファイルに含まれているので、作業中のレイアウトファイルに
12156 \end_layout
12157
12158 \begin_layout LyX-Code
12159 Input stdfloats.inc
12160 \end_layout
12161
12162 \begin_layout Standard
12163 と加えるだけで済むことも多いでしょう。LyXに同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つ
12164 でありましょう。
12165 \end_layout
12166
12167 \begin_layout Description
12168 \begin_inset Flex Code
12169 status collapsed
12170
12171 \begin_layout Plain Layout
12172 Extension
12173 \end_layout
12174
12175 \end_inset
12176
12177  [
12178 \begin_inset Flex Code
12179 status collapsed
12180
12181 \begin_layout Plain Layout
12182 文字列
12183 \end_layout
12184
12185 \end_inset
12186
12187 =
12188 \begin_inset Quotes erd
12189 \end_inset
12190
12191
12192 \begin_inset Quotes erd
12193 \end_inset
12194
12195 ] 図などのリストを含む外部ファイルのファイル拡張子名。LaTeXがキャプションを書き込むファイルです。
12196 \end_layout
12197
12198 \begin_layout Description
12199 \begin_inset Flex Code
12200 status collapsed
12201
12202 \begin_layout Plain Layout
12203 GuiName
12204 \end_layout
12205
12206 \end_inset
12207
12208  [
12209 \begin_inset Flex Code
12210 status collapsed
12211
12212 \begin_layout Plain Layout
12213 文字列
12214 \end_layout
12215
12216 \end_inset
12217
12218 =
12219 \begin_inset Quotes erd
12220 \end_inset
12221
12222
12223 \begin_inset Quotes erd
12224 \end_inset
12225
12226 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
12227 \end_layout
12228
12229 \begin_layout Description
12230 \begin_inset Flex Code
12231 status collapsed
12232
12233 \begin_layout Plain Layout
12234 HTML*
12235 \end_layout
12236
12237 \end_inset
12238
12239  これらは、XHTML出力で使用されます。第
12240 \begin_inset CommandInset ref
12241 LatexCommand ref
12242 reference "sec:XHTML出力のタグ"
12243
12244 \end_inset
12245
12246 節をご覧ください。
12247 \end_layout
12248
12249 \begin_layout Description
12250 \begin_inset Flex Code
12251 status collapsed
12252
12253 \begin_layout Plain Layout
12254 IsPredefined
12255 \end_layout
12256
12257 \end_inset
12258
12259  [
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264
12265 \emph on
12266 0
12267 \end_layout
12268
12269 \end_inset
12270
12271 ,
12272 \begin_inset space \thinspace{}
12273 \end_inset
12274
12275
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280 1
12281 \end_layout
12282
12283 \end_inset
12284
12285 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは
12286 \lang english
12287 LaTeX package
12288 \lang japanese
12289
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294 float
12295 \end_layout
12296
12297 \end_inset
12298
12299 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
12300 \begin_inset Flex Code
12301 status collapsed
12302
12303 \begin_layout Plain Layout
12304 0
12305 \end_layout
12306
12307 \end_inset
12308
12309 で、この場合
12310 \begin_inset Flex Code
12311 status collapsed
12312
12313 \begin_layout Plain Layout
12314 float
12315 \end_layout
12316
12317 \end_inset
12318
12319 を使用します。LaTeXドキュメントクラス中に既に定義されているときには、
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324 0
12325 \end_layout
12326
12327 \end_inset
12328
12329 に設定しなくてはなりません。
12330 \end_layout
12331
12332 \begin_layout Description
12333 \begin_inset Flex Code
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 ListCommand
12338 \end_layout
12339
12340 \end_inset
12341
12342  [
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347 文字列
12348 \end_layout
12349
12350 \end_inset
12351
12352 =
12353 \begin_inset Quotes erd
12354 \end_inset
12355
12356
12357 \begin_inset Quotes erd
12358 \end_inset
12359
12360 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
12361 \backslash
12362 」は書きません。
12363 \begin_inset Flex Code
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367 NeedsFloatPkg
12368 \end_layout
12369
12370 \end_inset
12371
12372 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
12373 \emph on
12374 必ず
12375 \emph default
12376 指定しなくてはなりません。
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 NeedsFloatPkg
12382 \end_layout
12383
12384 \end_inset
12385
12386 が真の時は、標準的な方法が存在するので、これは無視されます。
12387 \end_layout
12388
12389 \begin_layout Description
12390 \begin_inset Flex Code
12391 status collapsed
12392
12393 \begin_layout Plain Layout
12394 ListName
12395 \end_layout
12396
12397 \end_inset
12398
12399  [
12400 \begin_inset Flex Code
12401 status collapsed
12402
12403 \begin_layout Plain Layout
12404 文字列
12405 \end_layout
12406
12407 \end_inset
12408
12409 =
12410 \begin_inset Quotes erd
12411 \end_inset
12412
12413
12414 \begin_inset Quotes erd
12415 \end_inset
12416
12417 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。LyX中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La
12418 TeXに渡され、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
12419 \end_layout
12420
12421 \begin_layout Description
12422 \begin_inset Flex Code
12423 status collapsed
12424
12425 \begin_layout Plain Layout
12426 NumberWithin
12427 \end_layout
12428
12429 \end_inset
12430
12431  [
12432 \begin_inset Flex Code
12433 status collapsed
12434
12435 \begin_layout Plain Layout
12436 文字列
12437 \end_layout
12438
12439 \end_inset
12440
12441 =
12442 \begin_inset Quotes erd
12443 \end_inset
12444
12445
12446 \begin_inset Quotes erd
12447 \end_inset
12448
12449 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。
12450 \lang english
12451 For example, if 
12452 \lang japanese
12453
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 NumberWithin
12459 \end_layout
12460
12461 \end_inset
12462
12463
12464 \lang english
12465  is set to
12466 \lang japanese
12467
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 chapter
12473 \end_layout
12474
12475 \end_inset
12476
12477 」と指定されていれば、フロートは章ごとに番号が振り直されます。
12478 \end_layout
12479
12480 \begin_layout Description
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 Placement
12486 \end_layout
12487
12488 \end_inset
12489
12490  [
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495 文字列
12496 \end_layout
12497
12498 \end_inset
12499
12500 =
12501 \begin_inset Quotes erd
12502 \end_inset
12503
12504
12505 \begin_inset Quotes erd
12506 \end_inset
12507
12508 ] このクラスのフロートの既定の配置法。文字列は、標準的なLaTeX表記に従い、
12509 \begin_inset Flex Code
12510 status collapsed
12511
12512 \begin_layout Plain Layout
12513 t
12514 \end_layout
12515
12516 \end_inset
12517
12518 ならば上部(top)、
12519 \begin_inset Flex Code
12520 status collapsed
12521
12522 \begin_layout Plain Layout
12523 b
12524 \end_layout
12525
12526 \end_inset
12527
12528 ならば下部(bottom)、
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 p
12534 \end_layout
12535
12536 \end_inset
12537
12538 ならばページ(page)、
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 h
12544 \end_layout
12545
12546 \end_inset
12547
12548 ならばここ(here)を表します
12549 \begin_inset Foot
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553 LaTeX同様、文字列中でのこれらの文字の順序は関係ありません。
12554 \end_layout
12555
12556 \end_inset
12557
12558 。これらの他に新しい型
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563 H
12564 \end_layout
12565
12566 \end_inset
12567
12568 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
12569 \begin_inset Flex Code
12570 status collapsed
12571
12572 \begin_layout Plain Layout
12573 H
12574 \end_layout
12575
12576 \end_inset
12577
12578 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
12579 に「
12580 \begin_inset Flex Code
12581 status collapsed
12582
12583 \begin_layout Plain Layout
12584 tbp
12585 \end_layout
12586
12587 \end_inset
12588
12589 」を指定してください。
12590 \end_layout
12591
12592 \begin_layout Description
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 RefPrefix
12598 \end_layout
12599
12600 \end_inset
12601
12602  [
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 文字列
12608 \end_layout
12609
12610 \end_inset
12611
12612 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
12613 \begin_inset Flex Code
12614 status collapsed
12615
12616 \begin_layout Plain Layout
12617 RefPrefix
12618 \end_layout
12619
12620 \end_inset
12621
12622 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
12623 \end_layout
12624
12625 \begin_layout Description
12626 \begin_inset Flex Code
12627 status collapsed
12628
12629 \begin_layout Plain Layout
12630 Style
12631 \end_layout
12632
12633 \end_inset
12634
12635  [
12636 \begin_inset Flex Code
12637 status collapsed
12638
12639 \begin_layout Plain Layout
12640 文字列
12641 \end_layout
12642
12643 \end_inset
12644
12645 =
12646 \begin_inset Quotes erd
12647 \end_inset
12648
12649
12650 \begin_inset Quotes erd
12651 \end_inset
12652
12653
12654 \begin_inset Flex Code
12655 status collapsed
12656
12657 \begin_layout Plain Layout
12658
12659 \backslash
12660 newfloat
12661 \end_layout
12662
12663 \end_inset
12664
12665 を使用してフロートを定義する際に使用される様式。
12666 \end_layout
12667
12668 \begin_layout Description
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 Type
12674 \end_layout
12675
12676 \end_inset
12677
12678  [
12679 \begin_inset Flex Code
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683 文字列
12684 \end_layout
12685
12686 \end_inset
12687
12688 =
12689 \begin_inset Quotes erd
12690 \end_inset
12691
12692
12693 \begin_inset Quotes erd
12694 \end_inset
12695
12696 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701
12702 \backslash
12703 newfloat
12704 \end_layout
12705
12706 \end_inset
12707
12708 の後で、
12709 \begin_inset Flex Code
12710 status collapsed
12711
12712 \begin_layout Plain Layout
12713
12714 \backslash
12715 begin{program}
12716 \end_layout
12717
12718 \end_inset
12719
12720
12721 \begin_inset Flex Code
12722 status collapsed
12723
12724 \begin_layout Plain Layout
12725
12726 \backslash
12727 end{algorithm*}
12728 \end_layout
12729
12730 \end_inset
12731
12732 といったコマンドが利用できます。
12733 \end_layout
12734
12735 \begin_layout Description
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740 UsesFloatPkg
12741 \end_layout
12742
12743 \end_inset
12744
12745  [
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750 0
12751 \end_layout
12752
12753 \end_inset
12754
12755 ,
12756 \begin_inset space \thinspace{}
12757 \end_inset
12758
12759
12760 \begin_inset Flex Code
12761 status collapsed
12762
12763 \begin_layout Plain Layout
12764
12765 \emph on
12766 1
12767 \end_layout
12768
12769 \end_inset
12770
12771 ] このフロートが、クラスファイルやパッケージ中で、
12772 \lang english
12773 LaTeX-package
12774 \lang japanese
12775
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 float
12781 \end_layout
12782
12783 \end_inset
12784
12785 が提供しているものを使用して定義されているのか、LyX自身がオン・ザ・フライで定義しているのかを示します。
12786 \end_layout
12787
12788 \begin_layout Standard
12789 \begin_inset Flex Code
12790 status collapsed
12791
12792 \begin_layout Plain Layout
12793
12794 \emph on
12795 type
12796 \end_layout
12797
12798 \end_inset
12799
12800 型のフロートを定義すると、自動的に
12801 \emph on
12802 対応する
12803 \emph default
12804
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809
12810 \emph on
12811 type
12812 \end_layout
12813
12814 \end_inset
12815
12816 名カウンタが定義されます。
12817 \end_layout
12818
12819 \begin_layout Subsection
12820 自由差込枠と差込枠レイアウト
12821 \begin_inset CommandInset label
12822 LatexCommand label
12823 name "sub:任意設定差込枠"
12824
12825 \end_inset
12826
12827
12828 \end_layout
12829
12830 \begin_layout Standard
12831 自由差込枠には次の3種類があります。
12832 \end_layout
12833
12834 \begin_layout Itemize
12835 文字様式(
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840 CharStyle
12841 \end_layout
12842
12843 \end_inset
12844
12845 )。これは、
12846 \begin_inset Flex Code
12847 status collapsed
12848
12849 \begin_layout Plain Layout
12850
12851 \backslash
12852 noun
12853 \end_layout
12854
12855 \end_inset
12856
12857
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862
12863 \backslash
12864 code
12865 \end_layout
12866
12867 \end_inset
12868
12869 などのLaTeXコマンドに対応した意味論的マークアップを定義するものです。
12870 \end_layout
12871
12872 \begin_layout Itemize
12873 ユーザ設定(
12874 \begin_inset Flex Code
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878 Custom
12879 \end_layout
12880
12881 \end_inset
12882
12883 )。これは、TeXコードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
12884 \begin_inset Flex Code
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888 endnote
12889 \end_layout
12890
12891 \end_inset
12892
12893 モジュール中で定義されています。
12894 \end_layout
12895
12896 \begin_layout Itemize
12897 XML要素(
12898 \begin_inset Flex Code
12899 status collapsed
12900
12901 \begin_layout Plain Layout
12902 Element
12903 \end_layout
12904
12905 \end_inset
12906
12907 )。DocBookクラスで使用するものです。
12908 \end_layout
12909
12910 \begin_layout Standard
12911 自由差込枠は、以下で説明する
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 InsetLayout
12917 \end_layout
12918
12919 \end_inset
12920
12921 タグを使用して定義されます。
12922 \end_layout
12923
12924 \begin_layout Standard
12925 \begin_inset Flex Code
12926 status collapsed
12927
12928 \begin_layout Plain Layout
12929 InsetLayout
12930 \end_layout
12931
12932 \end_inset
12933
12934 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939 InsetLayout
12940 \end_layout
12941
12942 \end_inset
12943
12944 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・TeXコード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・オプション引数
12945 のレイアウトパラメータを設定するのに使用することができます。
12946 \end_layout
12947
12948 \begin_layout Standard
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953 InsetLayout
12954 \end_layout
12955
12956 \end_inset
12957
12958 定義は以下の形の行では始まらなくてはなりません。
12959 \end_layout
12960
12961 \begin_layout LyX-Code
12962 InsetLayout <型>
12963 \end_layout
12964
12965 \begin_layout Standard
12966 ここで
12967 \begin_inset Flex Code
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971 <型>
12972 \end_layout
12973
12974 \end_inset
12975
12976 は、レイアウトを定義しようとしている差込枠を指し、以下の2つの場合がありえます。
12977 \end_layout
12978
12979 \begin_layout Enumerate
12980 既存の差込枠のレイアウトを変更する場合。この場合、
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 <型>
12986 \end_layout
12987
12988 \end_inset
12989
12990 は以下のいずれかになります:
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 Algorithm
12996 \end_layout
12997
12998 \end_inset
12999
13000
13001 \begin_inset Flex Code
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 Branch
13006 \end_layout
13007
13008 \end_inset
13009
13010
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 Box
13016 \end_layout
13017
13018 \end_inset
13019
13020
13021 \begin_inset Flex Code
13022 status collapsed
13023
13024 \begin_layout Plain Layout
13025 Box:shaded
13026 \end_layout
13027
13028 \end_inset
13029
13030
13031 \begin_inset Flex Code
13032 status collapsed
13033
13034 \begin_layout Plain Layout
13035 ERT
13036 \end_layout
13037
13038 \end_inset
13039
13040
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045 Figure
13046 \end_layout
13047
13048 \end_inset
13049
13050
13051 \begin_inset Flex Code
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055 Foot
13056 \end_layout
13057
13058 \end_inset
13059
13060
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065 Index
13066 \end_layout
13067
13068 \end_inset
13069
13070
13071 \begin_inset Flex Code
13072 status collapsed
13073
13074 \begin_layout Plain Layout
13075 Info
13076 \end_layout
13077
13078 \end_inset
13079
13080
13081 \begin_inset Flex Code
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 Info:menu
13086 \end_layout
13087
13088 \end_inset
13089
13090
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 Info:shortcut
13096 \end_layout
13097
13098 \end_inset
13099
13100
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 Info:shortcuts
13106 \end_layout
13107
13108 \end_inset
13109
13110
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 Listings
13116 \end_layout
13117
13118 \end_inset
13119
13120
13121 \begin_inset Flex Code
13122 status collapsed
13123
13124 \begin_layout Plain Layout
13125 Marginal
13126 \end_layout
13127
13128 \end_inset
13129
13130
13131 \begin_inset Flex Code
13132 status collapsed
13133
13134 \begin_layout Plain Layout
13135 Note:Comment
13136 \end_layout
13137
13138 \end_inset
13139
13140
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 Note:Note
13146 \end_layout
13147
13148 \end_inset
13149
13150
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 Note:GreyedOut
13156 \end_layout
13157
13158 \end_inset
13159
13160
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165 OptArg
13166 \end_layout
13167
13168 \end_inset
13169
13170
13171 \begin_inset Flex Code
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175 Table
13176 \end_layout
13177
13178 \end_inset
13179
13180
13181 \begin_inset Flex Code
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185 URL
13186 \end_layout
13187
13188 \end_inset
13189
13190
13191 \end_layout
13192
13193 \begin_layout Enumerate
13194 自由差込枠のレイアウトを定義する場合。この場合、
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 <型>
13200 \end_layout
13201
13202 \end_inset
13203
13204
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 Flex:<名称>
13210 \end_layout
13211
13212 \end_inset
13213
13214 の形でなくてはなりません。ここで、
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 名称
13220 \end_layout
13221
13222 \end_inset
13223
13224 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
13225 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230 LyXType
13231 \end_layout
13232
13233 \end_inset
13234
13235 項目が含まれていなくてはならないことに注意してください。
13236 \end_layout
13237
13238 \begin_layout Standard
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243 InsetLayout
13244 \end_layout
13245
13246 \end_inset
13247
13248 定義には以下の項目を入れることができます。
13249 \end_layout
13250
13251 \begin_layout Description
13252 \begin_inset Flex Code
13253 status collapsed
13254
13255 \begin_layout Plain Layout
13256 BgColor
13257 \end_layout
13258
13259 \end_inset
13260
13261  [
13262 \lang english
13263
13264 \begin_inset Flex Code
13265 status collapsed
13266
13267 \begin_layout Plain Layout
13268
13269 \lang english
13270 <name>
13271 \end_layout
13272
13273 \end_inset
13274
13275
13276 \lang japanese
13277 ]  差込枠の背景色。
13278 \lang english
13279 See chapter
13280 \begin_inset space ~
13281 \end_inset
13282
13283
13284 \begin_inset CommandInset ref
13285 LatexCommand ref
13286 reference "chap:Names-of-colors"
13287
13288 \end_inset
13289
13290  for a list of the available color names.
13291 \end_layout
13292
13293 \begin_layout Description
13294 \begin_inset Flex Code
13295 status collapsed
13296
13297 \begin_layout Plain Layout
13298 ContentAsLabel
13299 \end_layout
13300
13301 \end_inset
13302
13303  [
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308
13309 \emph on
13310 0
13311 \end_layout
13312
13313 \end_inset
13314
13315 ,
13316 \begin_inset space \thinspace{}
13317 \end_inset
13318
13319
13320 \begin_inset Flex Code
13321 status collapsed
13322
13323 \begin_layout Plain Layout
13324 1
13325 \end_layout
13326
13327 \end_inset
13328
13329 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
13330 \end_layout
13331
13332 \begin_layout Description
13333 \begin_inset Flex Code
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337 CopyStyle
13338 \end_layout
13339
13340 \end_inset
13341
13342  [<型>] 
13343 \lang english
13344 As with paragraph styles, see sec.
13345 \begin_inset space ~
13346 \end_inset
13347
13348
13349 \lang japanese
13350
13351 \begin_inset CommandInset ref
13352 LatexCommand ref
13353 reference "sub:段落様式"
13354
13355 \end_inset
13356
13357
13358 \lang english
13359 Note that you need to specify the complete type, e.
13360 \begin_inset space \thinspace{}
13361 \end_inset
13362
13363 g.
13364 \begin_inset space ~
13365 \end_inset
13366
13367
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372
13373 \lang english
13374 CopyStyle Flex:<name>
13375 \end_layout
13376
13377 \end_inset
13378
13379 .
13380 \end_layout
13381
13382 \begin_layout Description
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 CustomPars
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 \emph on
13399 0
13400 \end_layout
13401
13402 \end_inset
13403
13404 ,
13405 \begin_inset space \thinspace{}
13406 \end_inset
13407
13408
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 1
13414 \end_layout
13415
13416 \end_inset
13417
13418 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
13419 \end_layout
13420
13421 \begin_layout Description
13422 \begin_inset Flex Code
13423 status collapsed
13424
13425 \begin_layout Plain Layout
13426 Decoration
13427 \end_layout
13428
13429 \end_inset
13430
13431  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
13432 \begin_inset Flex Code
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 Classic
13437 \end_layout
13438
13439 \end_inset
13440
13441
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446 Minimalistic
13447 \end_layout
13448
13449 \end_inset
13450
13451
13452 \begin_inset Flex Code
13453 status collapsed
13454
13455 \begin_layout Plain Layout
13456 Conglomerate
13457 \end_layout
13458
13459 \end_inset
13460
13461 のいずれかを指定することができます。脚注は通常
13462 \begin_inset Flex Code
13463 status collapsed
13464
13465 \begin_layout Plain Layout
13466 Classic
13467 \end_layout
13468
13469 \end_inset
13470
13471 を使用し、TeXコード差込枠は通常
13472 \begin_inset Flex Code
13473 status collapsed
13474
13475 \begin_layout Plain Layout
13476 Minimalistic
13477 \end_layout
13478
13479 \end_inset
13480
13481 、文字様式は
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486 Conglomerate
13487 \end_layout
13488
13489 \end_inset
13490
13491 を使用します。
13492 \end_layout
13493
13494 \begin_layout Description
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 Display
13500 \end_layout
13501
13502 \end_inset
13503
13504  [
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 0
13510 \end_layout
13511
13512 \end_inset
13513
13514 ,
13515 \begin_inset space \thinspace{}
13516 \end_inset
13517
13518
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523
13524 \emph on
13525 1
13526 \end_layout
13527
13528 \end_inset
13529
13530
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 LatexType
13536 \end_layout
13537
13538 \end_inset
13539
13540
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Environment
13546 \end_layout
13547
13548 \end_inset
13549
13550 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、LaTeX環境は、
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555
13556 \backslash
13557 begin{LatexName}
13558 \end_layout
13559
13560 \end_inset
13561
13562 タグと
13563 \begin_inset Flex Code
13564 status collapsed
13565
13566 \begin_layout Plain Layout
13567
13568 \backslash
13569 end{LatexName}
13570 \end_layout
13571
13572 \end_inset
13573
13574 タグの後の空白(改行文字を含む)を無視するものと仮定します。
13575 \end_layout
13576
13577 \begin_layout Description
13578 \begin_inset Flex Code
13579 status collapsed
13580
13581 \begin_layout Plain Layout
13582 End
13583 \end_layout
13584
13585 \end_inset
13586
13587  
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 InsetLayout
13593 \end_layout
13594
13595 \end_inset
13596
13597 宣言を閉じるのに必要です。
13598 \end_layout
13599
13600 \begin_layout Description
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 Font
13606 \end_layout
13607
13608 \end_inset
13609
13610  本文本体とラベル
13611 \emph on
13612 両方に
13613 \emph default
13614 使用されるフォントです。第
13615 \begin_inset CommandInset ref
13616 LatexCommand ref
13617 reference "sub:フォント指定"
13618
13619 \end_inset
13620
13621 節を参照。このフォントを定義すると自動的に
13622 \begin_inset Flex Code
13623 status collapsed
13624
13625 \begin_layout Plain Layout
13626 LabelFont
13627 \end_layout
13628
13629 \end_inset
13630
13631 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
13632 \begin_inset Flex Code
13633 status collapsed
13634
13635 \begin_layout Plain Layout
13636 LabelFont
13637 \end_layout
13638
13639 \end_inset
13640
13641 を定義しなくてはならないことに注意してください。
13642 \end_layout
13643
13644 \begin_layout Description
13645 \begin_inset Flex Code
13646 status collapsed
13647
13648 \begin_layout Plain Layout
13649 ForceLTR
13650 \end_layout
13651
13652 \end_inset
13653
13654  [
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659
13660 \emph on
13661 0
13662 \end_layout
13663
13664 \end_inset
13665
13666 ,
13667 \begin_inset space \thinspace{}
13668 \end_inset
13669
13670
13671 \begin_inset Flex Code
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675 1
13676 \end_layout
13677
13678 \end_inset
13679
13680 ] たとえばTeXコードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
13681 \end_layout
13682
13683 \begin_layout Description
13684 \begin_inset Flex Code
13685 status collapsed
13686
13687 \begin_layout Plain Layout
13688 ForcePlain
13689 \end_layout
13690
13691 \end_inset
13692
13693  [
13694 \begin_inset Flex Code
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698
13699 \emph on
13700 0
13701 \end_layout
13702
13703 \end_inset
13704
13705 ,
13706 \begin_inset space \thinspace{}
13707 \end_inset
13708
13709
13710 \begin_inset Flex Code
13711 status collapsed
13712
13713 \begin_layout Plain Layout
13714 1
13715 \end_layout
13716
13717 \end_inset
13718
13719 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
13720 \end_layout
13721
13722 \begin_layout Description
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 FreeSpacing
13728 \end_layout
13729
13730 \end_inset
13731
13732  [
13733 \emph on
13734
13735 \begin_inset Flex Code
13736 status collapsed
13737
13738 \begin_layout Plain Layout
13739 0
13740 \end_layout
13741
13742 \end_inset
13743
13744
13745 \emph default
13746 ,
13747 \begin_inset space \thinspace{}
13748 \end_inset
13749
13750
13751 \begin_inset Flex Code
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 1
13756 \end_layout
13757
13758 \end_inset
13759
13760
13761 \lang english
13762 As with paragraph styles, see sec.
13763 \begin_inset space ~
13764 \end_inset
13765
13766
13767 \lang japanese
13768
13769 \begin_inset CommandInset ref
13770 LatexCommand ref
13771 reference "sub:段落様式"
13772
13773 \end_inset
13774
13775
13776 \end_layout
13777
13778 \begin_layout Description
13779 \begin_inset Flex Code
13780 status collapsed
13781
13782 \begin_layout Plain Layout
13783 HTML*
13784 \end_layout
13785
13786 \end_inset
13787
13788  これらは、XHTML出力で使用されます。第
13789 \begin_inset CommandInset ref
13790 LatexCommand ref
13791 reference "sec:XHTML出力のタグ"
13792
13793 \end_inset
13794
13795 節をご覧ください。
13796 \end_layout
13797
13798 \begin_layout Description
13799 \begin_inset Flex Code
13800 status collapsed
13801
13802 \begin_layout Plain Layout
13803 InToc
13804 \end_layout
13805
13806 \end_inset
13807
13808  [
13809 \begin_inset Flex Code
13810 status collapsed
13811
13812 \begin_layout Plain Layout
13813
13814 \emph on
13815 0
13816 \end_layout
13817
13818 \end_inset
13819
13820 ,
13821 \begin_inset space \thinspace{}
13822 \end_inset
13823
13824
13825 \begin_inset Flex Code
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 1
13830 \end_layout
13831
13832 \end_inset
13833
13834 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
13835 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
13836 \end_layout
13837
13838 \begin_layout Description
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 KeepEmpty
13844 \end_layout
13845
13846 \end_inset
13847
13848  [
13849 \emph on
13850
13851 \begin_inset Flex Code
13852 status collapsed
13853
13854 \begin_layout Plain Layout
13855 0
13856 \end_layout
13857
13858 \end_inset
13859
13860
13861 \emph default
13862 ,
13863 \begin_inset space \thinspace{}
13864 \end_inset
13865
13866
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 1
13872 \end_layout
13873
13874 \end_inset
13875
13876
13877 \lang english
13878 As with paragraph styles, see sec.
13879 \begin_inset space ~
13880 \end_inset
13881
13882
13883 \lang japanese
13884
13885 \begin_inset CommandInset ref
13886 LatexCommand ref
13887 reference "sub:段落様式"
13888
13889 \end_inset
13890
13891
13892 \end_layout
13893
13894 \begin_layout Description
13895 \begin_inset Flex Code
13896 status collapsed
13897
13898 \begin_layout Plain Layout
13899 LabelFont
13900 \end_layout
13901
13902 \end_inset
13903
13904  ラベルに使用されるフォント。第
13905 \begin_inset CommandInset ref
13906 LatexCommand ref
13907 reference "sub:フォント指定"
13908
13909 \end_inset
13910
13911 節を参照。非効率を回避するため、この定義は
13912 \begin_inset Flex Code
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916 Font
13917 \end_layout
13918
13919 \end_inset
13920
13921 の前には決して現れてはなりません。
13922 \end_layout
13923
13924 \begin_layout Description
13925 \begin_inset Flex Code
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 LabelString
13930 \end_layout
13931
13932 \end_inset
13933
13934  [
13935 \begin_inset Flex Code
13936 status collapsed
13937
13938 \begin_layout Plain Layout
13939 文字列
13940 \end_layout
13941
13942 \end_inset
13943
13944 =
13945 \begin_inset Quotes erd
13946 \end_inset
13947
13948
13949 \begin_inset Quotes erd
13950 \end_inset
13951
13952 ]
13953 \lang english
13954  
13955 \lang japanese
13956 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(TeXコードや派生枝)、ラベルが動的に変更されます。
13957 \end_layout
13958
13959 \begin_layout Description
13960 \begin_inset Flex Code
13961 status collapsed
13962
13963 \begin_layout Plain Layout
13964 LatexName
13965 \end_layout
13966
13967 \end_inset
13968
13969  [
13970 \lang english
13971
13972 \begin_inset Flex Code
13973 status collapsed
13974
13975 \begin_layout Plain Layout
13976
13977 \lang english
13978 <name>
13979 \end_layout
13980
13981 \end_inset
13982
13983
13984 \lang japanese
13985 ] 対応するLaTeX関連物の名称。環境名ないしはコマンド名。
13986 \end_layout
13987
13988 \begin_layout Description
13989 \begin_inset Flex Code
13990 status collapsed
13991
13992 \begin_layout Plain Layout
13993 LatexParam
13994 \end_layout
13995
13996 \end_inset
13997
13998  
13999 \lang english
14000 [
14001 \begin_inset Flex Code
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005
14006 \lang english
14007 <parameter>
14008 \end_layout
14009
14010 \end_inset
14011
14012
14013 \lang japanese
14014 対応する
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019 LatexName
14020 \end_layout
14021
14022 \end_inset
14023
14024 関連物の非必須パラメータ。
14025 \begin_inset Flex Code
14026 status collapsed
14027
14028 \begin_layout Plain Layout
14029 []
14030 \end_layout
14031
14032 \end_inset
14033
14034 のような括弧対を含む。このパラメータはLyX内部から変更することはできません。
14035 \end_layout
14036
14037 \begin_layout Description
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 LatexType
14043 \end_layout
14044
14045 \end_inset
14046
14047  
14048 \lang english
14049 As with paragraph styles, see sec.
14050 \begin_inset space ~
14051 \end_inset
14052
14053
14054 \lang japanese
14055
14056 \begin_inset CommandInset ref
14057 LatexCommand ref
14058 reference "sub:段落様式"
14059
14060 \end_inset
14061
14062
14063 \end_layout
14064
14065 \begin_layout Description
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070 LyxType
14071 \end_layout
14072
14073 \end_inset
14074
14075  
14076 \begin_inset Flex Code
14077 status collapsed
14078
14079 \begin_layout Plain Layout
14080 charstyle
14081 \end_layout
14082
14083 \end_inset
14084
14085
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090 custom
14091 \end_layout
14092
14093 \end_inset
14094
14095
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 element
14101 \end_layout
14102
14103 \end_inset
14104
14105
14106 \begin_inset Flex Code
14107 status collapsed
14108
14109 \begin_layout Plain Layout
14110 end
14111 \end_layout
14112
14113 \end_inset
14114
14115 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
14116 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 LyxType
14122 \end_layout
14123
14124 \end_inset
14125
14126
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131 charstyle
14132 \end_layout
14133
14134 \end_inset
14135
14136 に設定すると、
14137 \begin_inset Flex Code
14138 status collapsed
14139
14140 \begin_layout Plain Layout
14141 MultiPar
14142 \end_layout
14143
14144 \end_inset
14145
14146 が偽に設定されます。文字様式差込枠で
14147 \begin_inset Flex Code
14148 status collapsed
14149
14150 \begin_layout Plain Layout
14151 MultiPar
14152 \end_layout
14153
14154 \end_inset
14155
14156 を真にしたい時には、
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161 LyxType
14162 \end_layout
14163
14164 \end_inset
14165
14166 を設定した
14167 \emph on
14168 後に
14169 \emph default
14170 設定すれば、真に設定することができます。
14171 \end_layout
14172
14173 \begin_layout Description
14174 \begin_inset Flex Code
14175 status collapsed
14176
14177 \begin_layout Plain Layout
14178 MultiPar
14179 \end_layout
14180
14181 \end_inset
14182
14183  [
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188
14189 \emph on
14190 0
14191 \end_layout
14192
14193 \end_inset
14194
14195 ,
14196 \begin_inset space \thinspace{}
14197 \end_inset
14198
14199
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 1
14205 \end_layout
14206
14207 \end_inset
14208
14209 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 CustomPars
14215 \end_layout
14216
14217 \end_inset
14218
14219 を同じ値に設定し、
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224 ForcePlain
14225 \end_layout
14226
14227 \end_inset
14228
14229 を逆の値に設定します。これらは、
14230 \begin_inset Flex Code
14231 status collapsed
14232
14233 \begin_layout Plain Layout
14234 MultiPar
14235 \end_layout
14236
14237 \end_inset
14238
14239
14240 \emph on
14241 後に
14242 \emph default
14243 指定されれば、他の値に指定し直すことができます。既定値は真です。
14244 \end_layout
14245
14246 \begin_layout Description
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 NeedProtect
14252 \end_layout
14253
14254 \end_inset
14255
14256  [
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261
14262 \emph on
14263 0
14264 \end_layout
14265
14266 \end_inset
14267
14268 ,
14269 \begin_inset space \thinspace{}
14270 \end_inset
14271
14272
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 1
14278 \end_layout
14279
14280 \end_inset
14281
14282 ] 本レイアウト中で脆弱なコマンドを
14283 \begin_inset Flex Code
14284 status collapsed
14285
14286 \begin_layout Plain Layout
14287
14288 \backslash
14289 protect
14290 \end_layout
14291
14292 \end_inset
14293
14294 するか否か(註:当該コマンド自身をprotectするかどうかでは
14295 \emph on
14296 ありません
14297 \emph default
14298 )。既定値は偽です。
14299 \end_layout
14300
14301 \begin_layout Description
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 ParbreakIsNewline
14307 \end_layout
14308
14309 \end_inset
14310
14311  [
14312 \begin_inset Flex Code
14313 status collapsed
14314
14315 \begin_layout Plain Layout
14316
14317 \emph on
14318 0
14319 \end_layout
14320
14321 \end_inset
14322
14323 ,
14324 \begin_inset space \thinspace{}
14325 \end_inset
14326
14327
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 1
14333 \end_layout
14334
14335 \end_inset
14336
14337
14338 \lang english
14339 As with paragraph styles, see sec.
14340 \begin_inset space ~
14341 \end_inset
14342
14343
14344 \lang japanese
14345
14346 \begin_inset CommandInset ref
14347 LatexCommand ref
14348 reference "sub:段落様式"
14349
14350 \end_inset
14351
14352
14353 \end_layout
14354
14355 \begin_layout Description
14356 \begin_inset Flex Code
14357 status collapsed
14358
14359 \begin_layout Plain Layout
14360 PassThru
14361 \end_layout
14362
14363 \end_inset
14364
14365  [
14366 \emph on
14367
14368 \begin_inset Flex Code
14369 status collapsed
14370
14371 \begin_layout Plain Layout
14372 0
14373 \end_layout
14374
14375 \end_inset
14376
14377
14378 \emph default
14379 ,
14380 \begin_inset space \thinspace{}
14381 \end_inset
14382
14383
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388 1
14389 \end_layout
14390
14391 \end_inset
14392
14393
14394 \lang english
14395 As with paragraph styles, see sec.
14396 \begin_inset space ~
14397 \end_inset
14398
14399
14400 \lang japanese
14401
14402 \begin_inset CommandInset ref
14403 LatexCommand ref
14404 reference "sub:段落様式"
14405
14406 \end_inset
14407
14408
14409 \end_layout
14410
14411 \begin_layout Description
14412 \begin_inset Flex Code
14413 status collapsed
14414
14415 \begin_layout Plain Layout
14416 Preamble
14417 \end_layout
14418
14419 \end_inset
14420
14421  
14422 \lang english
14423 As with paragraph styles, see sec.
14424 \begin_inset space ~
14425 \end_inset
14426
14427
14428 \lang japanese
14429
14430 \begin_inset CommandInset ref
14431 LatexCommand ref
14432 reference "sub:段落様式"
14433
14434 \end_inset
14435
14436
14437 \end_layout
14438
14439 \begin_layout Description
14440 \begin_inset Flex Code
14441 status collapsed
14442
14443 \begin_layout Plain Layout
14444 RefPrefix
14445 \end_layout
14446
14447 \end_inset
14448
14449  [
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454 文字列
14455 \end_layout
14456
14457 \end_inset
14458
14459 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
14460 \end_layout
14461
14462 \begin_layout Description
14463 \begin_inset Flex Code
14464 status collapsed
14465
14466 \begin_layout Plain Layout
14467 Requires
14468 \end_layout
14469
14470 \end_inset
14471
14472  [
14473 \begin_inset Flex Code
14474 status collapsed
14475
14476 \begin_layout Plain Layout
14477 文字列
14478 \end_layout
14479
14480 \end_inset
14481
14482
14483 \lang english
14484 As with paragraph styles, see sec.
14485 \begin_inset space ~
14486 \end_inset
14487
14488
14489 \lang japanese
14490
14491 \begin_inset CommandInset ref
14492 LatexCommand ref
14493 reference "sub:段落様式"
14494
14495 \end_inset
14496
14497
14498 \end_layout
14499
14500 \begin_layout Description
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 ResetFont
14506 \end_layout
14507
14508 \end_inset
14509
14510  [
14511 \begin_inset Flex Code
14512 status collapsed
14513
14514 \begin_layout Plain Layout
14515 0
14516 \end_layout
14517
14518 \end_inset
14519
14520 ,
14521 \begin_inset space \thinspace{}
14522 \end_inset
14523
14524
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529
14530 \emph on
14531 1
14532 \end_layout
14533
14534 \end_inset
14535
14536 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
14537 \end_layout
14538
14539 \begin_layout Description
14540 \begin_inset Flex Code
14541 status collapsed
14542
14543 \begin_layout Plain Layout
14544 Spellcheck
14545 \end_layout
14546
14547 \end_inset
14548
14549  [
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 0
14555 \end_layout
14556
14557 \end_inset
14558
14559 ,
14560 \begin_inset space \thinspace{}
14561 \end_inset
14562
14563
14564 \begin_inset Flex Code
14565 status collapsed
14566
14567 \begin_layout Plain Layout
14568
14569 \emph on
14570 1
14571 \end_layout
14572
14573 \end_inset
14574
14575 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
14576 \end_layout
14577
14578 \begin_layout Subsection
14579 カウンタ
14580 \begin_inset CommandInset label
14581 LatexCommand label
14582 name "sub:カウンタ"
14583
14584 \end_inset
14585
14586
14587 \end_layout
14588
14589 \begin_layout Standard
14590
14591 \lang english
14592 It is necessary to define the counters
14593 \lang japanese
14594
14595 \begin_inset Flex MenuItem
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 chapter
14600 \end_layout
14601
14602 \end_inset
14603
14604
14605 \begin_inset Flex MenuItem
14606 status collapsed
14607
14608 \begin_layout Plain Layout
14609 figure
14610 \end_layout
14611
14612 \end_inset
14613
14614 ・\SpecialChar \ldots{}
14615 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620 stdcounters.inc
14621 \end_layout
14622
14623 \end_inset
14624
14625 ファイルに含まれているので、作業中のレイアウトファイルに
14626 \end_layout
14627
14628 \begin_layout LyX-Code
14629 Input stdcounters.inc
14630 \end_layout
14631
14632 \begin_layout Standard
14633 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
14634 \end_layout
14635
14636 \begin_layout LyX-Code
14637 Counter カウンタ名
14638 \end_layout
14639
14640 \begin_layout Standard
14641 で始まらなくてはなりません。ここで「
14642 \begin_inset Flex Code
14643 status collapsed
14644
14645 \begin_layout Plain Layout
14646 カウンタ名
14647 \end_layout
14648
14649 \end_inset
14650
14651 」は、実際のカウンタ名で置き換えます。また、宣言は「
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 End
14657 \end_layout
14658
14659 \end_inset
14660
14661 」で終わらなくてはなりません。
14662 \end_layout
14663
14664 \begin_layout Standard
14665 以下のパラメータを使用することができます。
14666 \end_layout
14667
14668 \begin_layout Description
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 LabelString [文字列=""]
14674 \end_layout
14675
14676 \end_inset
14677
14678  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 LabelStringAppendix
14684 \end_layout
14685
14686 \end_inset
14687
14688 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
14689 \end_layout
14690
14691 \begin_deeper
14692 \begin_layout Itemize
14693 \begin_inset Flex Code
14694 status collapsed
14695
14696 \begin_layout Plain Layout
14697
14698 \backslash
14699 thecounter
14700 \end_layout
14701
14702 \end_inset
14703
14704 は、カウンタ
14705 \begin_inset Flex Code
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 counter
14710 \end_layout
14711
14712 \end_inset
14713
14714
14715 \begin_inset Flex Code
14716 status collapsed
14717
14718 \begin_layout Plain Layout
14719 LabelString
14720 \end_layout
14721
14722 \end_inset
14723
14724 (または
14725 \begin_inset Newline linebreak
14726 \end_inset
14727
14728
14729 \begin_inset Flex Code
14730 status collapsed
14731
14732 \begin_layout Plain Layout
14733 LabelStringAppendix
14734 \end_layout
14735
14736 \end_inset
14737
14738 )を展開したもので置き換えられます。 
14739 \end_layout
14740
14741 \begin_layout Itemize
14742 カウンタ値は、LaTeX型マクロ
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747
14748 \backslash
14749
14750 \emph on
14751 numbertype
14752 \emph default
14753 {
14754 \emph on
14755 カウンタ
14756 \emph default
14757 }
14758 \end_layout
14759
14760 \end_inset
14761
14762 を用いて表現することができます。ここで
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767
14768 \emph on
14769 numbertype
14770 \end_layout
14771
14772 \end_inset
14773
14774 は以下のいずれかです。
14775 \begin_inset Flex Code
14776 status collapsed
14777
14778 \begin_layout Plain Layout
14779 arabic
14780 \end_layout
14781
14782 \end_inset
14783
14784 :1, 2, 3,\SpecialChar \ldots{}
14785
14786 \begin_inset Flex Code
14787 status collapsed
14788
14789 \begin_layout Plain Layout
14790 alph
14791 \end_layout
14792
14793 \end_inset
14794
14795 :a, b, c, \SpecialChar \ldots{}
14796 (小文字);
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 Alph
14802 \end_layout
14803
14804 \end_inset
14805
14806 :A, B, C, \SpecialChar \ldots{}
14807 (大文字);
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 roman
14813 \end_layout
14814
14815 \end_inset
14816
14817 :i, ii, iii, \SpecialChar \ldots{}
14818 (小文字ローマ数字);
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 Roman
14824 \end_layout
14825
14826 \end_inset
14827
14828 :I, II, III\SpecialChar \ldots{}
14829 (大文字ローマ数字)。
14830 \end_layout
14831
14832 \end_deeper
14833 \begin_layout Standard
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838 LabelString
14839 \end_layout
14840
14841 \end_inset
14842
14843 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
14844 \begin_inset Flex Code
14845 status collapsed
14846
14847 \begin_layout Plain Layout
14848 master
14849 \end_layout
14850
14851 \end_inset
14852
14853
14854 \begin_inset Flex Code
14855 status collapsed
14856
14857 \begin_layout Plain Layout
14858 Within
14859 \end_layout
14860
14861 \end_inset
14862
14863 で定義)があるときには、文字列
14864 \begin_inset Newline linebreak
14865 \end_inset
14866
14867
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872
14873 \backslash
14874 themaster.
14875 \backslash
14876 arabic{カウンタ}
14877 \end_layout
14878
14879 \end_inset
14880
14881 が使用されます。それ以外の場合は、
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886
14887 \backslash
14888 arabic{カウンタ}
14889 \end_layout
14890
14891 \end_inset
14892
14893 が使用されます。
14894 \end_layout
14895
14896 \begin_layout Description
14897 \begin_inset Flex Code
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901 LabelStringAppendix
14902 \end_layout
14903
14904 \end_inset
14905
14906  [
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 文字列
14912 \end_layout
14913
14914 \end_inset
14915
14916 =""] 
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 LabelString
14922 \end_layout
14923
14924 \end_inset
14925
14926 と同様ですが、付録で使用するためのものです。
14927 \end_layout
14928
14929 \begin_layout Description
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 PrettyFormat
14935 \end_layout
14936
14937 \end_inset
14938
14939  [
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 文字列
14945 \end_layout
14946
14947 \end_inset
14948
14949 =
14950 \begin_inset Quotes erd
14951 \end_inset
14952
14953
14954 \begin_inset Quotes erd
14955 \end_inset
14956
14957 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
14958 \begin_inset space ~
14959 \end_inset
14960
14961 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
14962 す。
14963 \end_layout
14964
14965 \begin_layout Description
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 Within
14971 \end_layout
14972
14973 \end_inset
14974
14975  [
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 文字列
14981 \end_layout
14982
14983 \end_inset
14984
14985 =
14986 \begin_inset Quotes erd
14987 \end_inset
14988
14989
14990 \begin_inset Quotes erd
14991 \end_inset
14992
14993 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
14994 \begin_inset Flex Code
14995 status collapsed
14996
14997 \begin_layout Plain Layout
14998 subsection
14999 \end_layout
15000
15001 \end_inset
15002
15003
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 section
15009 \end_layout
15010
15011 \end_inset
15012
15013 毎に番号がリセットされます。
15014 \end_layout
15015
15016 \begin_layout Subsection
15017 フォント指定
15018 \begin_inset CommandInset label
15019 LatexCommand label
15020 name "sub:フォント指定"
15021
15022 \end_inset
15023
15024
15025 \end_layout
15026
15027 \begin_layout Standard
15028 フォント指定は、以下のような形を取ります。
15029 \end_layout
15030
15031 \begin_layout LyX-Code
15032 Font 
15033 \family roman
15034 \emph on
15035 または
15036 \family default
15037 \emph default
15038  LabelFont 
15039 \family roman
15040 \emph on
15041 または
15042 \family default
15043 \emph default
15044  DefaultFont
15045 \end_layout
15046
15047 \begin_layout LyX-Code
15048  ...
15049 \end_layout
15050
15051 \begin_layout LyX-Code
15052 EndFont
15053 \end_layout
15054
15055 \begin_layout Standard
15056 以下のコマンドを使用することができます。
15057 \end_layout
15058
15059 \begin_layout Description
15060 \begin_inset Flex Code
15061 status collapsed
15062
15063 \begin_layout Plain Layout
15064 Color
15065 \end_layout
15066
15067 \end_inset
15068
15069  [
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074
15075 \emph on
15076 none
15077 \end_layout
15078
15079 \end_inset
15080
15081
15082 \begin_inset Flex Code
15083 status collapsed
15084
15085 \begin_layout Plain Layout
15086 black
15087 \end_layout
15088
15089 \end_inset
15090
15091
15092 \begin_inset Flex Code
15093 status collapsed
15094
15095 \begin_layout Plain Layout
15096 white
15097 \end_layout
15098
15099 \end_inset
15100
15101
15102 \begin_inset Flex Code
15103 status collapsed
15104
15105 \begin_layout Plain Layout
15106 red
15107 \end_layout
15108
15109 \end_inset
15110
15111
15112 \begin_inset Flex Code
15113 status collapsed
15114
15115 \begin_layout Plain Layout
15116 green
15117 \end_layout
15118
15119 \end_inset
15120
15121
15122 \begin_inset Flex Code
15123 status collapsed
15124
15125 \begin_layout Plain Layout
15126 blue
15127 \end_layout
15128
15129 \end_inset
15130
15131
15132 \begin_inset Flex Code
15133 status collapsed
15134
15135 \begin_layout Plain Layout
15136 cyan
15137 \end_layout
15138
15139 \end_inset
15140
15141
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146 magenta
15147 \end_layout
15148
15149 \end_inset
15150
15151
15152 \begin_inset Flex Code
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 yellow
15157 \end_layout
15158
15159 \end_inset
15160
15161 ]
15162 \end_layout
15163
15164 \begin_layout Description
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 Family
15170 \end_layout
15171
15172 \end_inset
15173
15174  [
15175 \emph on
15176
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 Roman
15182 \end_layout
15183
15184 \end_inset
15185
15186
15187 \emph default
15188
15189 \begin_inset Flex Code
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193 Sans
15194 \end_layout
15195
15196 \end_inset
15197
15198
15199 \begin_inset Flex Code
15200 status collapsed
15201
15202 \begin_layout Plain Layout
15203 Typewriter
15204 \end_layout
15205
15206 \end_inset
15207
15208
15209 \end_layout
15210
15211 \begin_layout Description
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 Misc
15217 \end_layout
15218
15219 \end_inset
15220
15221  [
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 文字列
15227 \end_layout
15228
15229 \end_inset
15230
15231 ] 有効な引数は、
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236 emph
15237 \end_layout
15238
15239 \end_inset
15240
15241
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246 noun
15247 \end_layout
15248
15249 \end_inset
15250
15251
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 strikeout
15257 \end_layout
15258
15259 \end_inset
15260
15261
15262 \begin_inset Flex Code
15263 status collapsed
15264
15265 \begin_layout Plain Layout
15266 underbar
15267 \end_layout
15268
15269 \end_inset
15270
15271
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 uuline
15277 \end_layout
15278
15279 \end_inset
15280
15281
15282 \begin_inset Flex Code
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286 uwave
15287 \end_layout
15288
15289 \end_inset
15290
15291
15292 \begin_inset Flex Code
15293 status collapsed
15294
15295 \begin_layout Plain Layout
15296 no_emph
15297 \end_layout
15298
15299 \end_inset
15300
15301
15302 \begin_inset Flex Code
15303 status collapsed
15304
15305 \begin_layout Plain Layout
15306 no_noun
15307 \end_layout
15308
15309 \end_inset
15310
15311
15312 \begin_inset Flex Code
15313 status collapsed
15314
15315 \begin_layout Plain Layout
15316 no_strikeout
15317 \end_layout
15318
15319 \end_inset
15320
15321
15322 \begin_inset Flex Code
15323 status collapsed
15324
15325 \begin_layout Plain Layout
15326 no_bar
15327 \end_layout
15328
15329 \end_inset
15330
15331
15332 \begin_inset Flex Code
15333 status collapsed
15334
15335 \begin_layout Plain Layout
15336 no_uuline
15337 \end_layout
15338
15339 \end_inset
15340
15341
15342 \begin_inset Flex Code
15343 status collapsed
15344
15345 \begin_layout Plain Layout
15346 no_uwave
15347 \end_layout
15348
15349 \end_inset
15350
15351 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
15352 \begin_inset Newline newline
15353 \end_inset
15354
15355 たとえば、
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 emph
15361 \end_layout
15362
15363 \end_inset
15364
15365 は強調を有効にし、
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 no_emph
15371 \end_layout
15372
15373 \end_inset
15374
15375 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
15376
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 no_emph
15382 \end_layout
15383
15384 \end_inset
15385
15386 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
15387 \end_layout
15388
15389 \begin_layout Description
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 Series
15395 \end_layout
15396
15397 \end_inset
15398
15399  [
15400 \emph on
15401
15402 \begin_inset Flex Code
15403 status collapsed
15404
15405 \begin_layout Plain Layout
15406 Medium
15407 \end_layout
15408
15409 \end_inset
15410
15411
15412 \emph default
15413
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 Bold
15419 \end_layout
15420
15421 \end_inset
15422
15423
15424 \end_layout
15425
15426 \begin_layout Description
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 Shape
15432 \end_layout
15433
15434 \end_inset
15435
15436  [
15437 \emph on
15438
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 Up
15444 \end_layout
15445
15446 \end_inset
15447
15448
15449 \emph default
15450
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 Italic
15456 \end_layout
15457
15458 \end_inset
15459
15460
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 SmallCaps
15466 \end_layout
15467
15468 \end_inset
15469
15470
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 Slanted
15476 \end_layout
15477
15478 \end_inset
15479
15480
15481 \end_layout
15482
15483 \begin_layout Description
15484 \begin_inset Flex Code
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 Size
15489 \end_layout
15490
15491 \end_inset
15492
15493  [
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 tiny
15499 \end_layout
15500
15501 \end_inset
15502
15503
15504 \begin_inset Flex Code
15505 status collapsed
15506
15507 \begin_layout Plain Layout
15508 small
15509 \end_layout
15510
15511 \end_inset
15512
15513
15514 \begin_inset Flex Code
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518
15519 \emph on
15520 normal
15521 \end_layout
15522
15523 \end_inset
15524
15525
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 large
15531 \end_layout
15532
15533 \end_inset
15534
15535
15536 \begin_inset Flex Code
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540 larger
15541 \end_layout
15542
15543 \end_inset
15544
15545
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 largest
15551 \end_layout
15552
15553 \end_inset
15554
15555
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 huge
15561 \end_layout
15562
15563 \end_inset
15564
15565
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 giant
15571 \end_layout
15572
15573 \end_inset
15574
15575 ]
15576 \end_layout
15577
15578 \begin_layout Subsection
15579 \begin_inset CommandInset label
15580 LatexCommand label
15581 name "sub:引用書式指定"
15582
15583 \end_inset
15584
15585 引用書式指定
15586 \end_layout
15587
15588 \begin_layout Standard
15589 (引用ダイアログやツールチップなどの)LyX内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 CiteFormat
15595 \end_layout
15596
15597 \end_inset
15598
15599 ブロックが使用されています。このブロックは、以下のような形をしています。
15600 \end_layout
15601
15602 \begin_layout LyX-Code
15603 CiteFormat
15604 \end_layout
15605
15606 \begin_layout LyX-Code
15607  article ...
15608 \end_layout
15609
15610 \begin_layout LyX-Code
15611  book ...
15612 \end_layout
15613
15614 \begin_layout LyX-Code
15615 End
15616 \end_layout
15617
15618 \begin_layout Standard
15619 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、BibTeXファイル中に
15620 存在しうる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、LyXは、ソースコード中に定義されている既定書式を使用します。LyXは、い
15621 くつかの書式を
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 stdciteformats.inc
15627 \end_layout
15628
15629 \end_inset
15630
15631 ファイルで事前定義しており、これはほとんどのLyX文書クラスにインクルードされています。
15632 \end_layout
15633
15634 \begin_layout Standard
15635 この定義は、BibTeXキーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 %author%
15641 \end_layout
15642
15643 \end_inset
15644
15645 のように
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 %
15651 \end_layout
15652
15653 \end_inset
15654
15655 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
15656 \end_layout
15657
15658 \begin_layout LyX-Code
15659 misc %author%, 
15660 \begin_inset Quotes eld
15661 \end_inset
15662
15663 %title%
15664 \begin_inset Quotes erd
15665 \end_inset
15666
15667
15668 \end_layout
15669
15670 \begin_layout Standard
15671 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
15672 \end_layout
15673
15674 \begin_layout Standard
15675 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
15676 \begin_inset Flex Code
15677 status collapsed
15678
15679 \begin_layout Plain Layout
15680 {%volume%[[vol.
15681 \begin_inset space ~
15682 \end_inset
15683
15684 %volume%]]}
15685 \end_layout
15686
15687 \end_inset
15688
15689 のように、条件付きの構成を使用することができます。これは、
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 volume
15695 \end_layout
15696
15697 \end_inset
15698
15699 が存在するならば,「vol.
15700 \begin_inset space ~
15701 \end_inset
15702
15703 」とvolumeキーを出力するという意味です。また、
15704 \begin_inset Newline newline
15705 \end_inset
15706
15707
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 {%author%[[%author%]][[%editor%, ed.]]}
15713 \end_layout
15714
15715 \end_inset
15716
15717
15718 \begin_inset Newline newline
15719 \end_inset
15720
15721 のように、条件の中にelse節を含めることも可能です。ここでは、もし
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 author
15727 \end_layout
15728
15729 \end_inset
15730
15731 キーが存在するならば出力され、そうでなければeditorキーと「,
15732 \begin_inset space ~
15733 \end_inset
15734
15735 ed.」が出力されます。ここでもキーは、
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 %
15741 \end_layout
15742
15743 \end_inset
15744
15745 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
15746 \begin_inset Flex Code
15747 status collapsed
15748
15749 \begin_layout Plain Layout
15750 [[
15751 \end_layout
15752
15753 \end_inset
15754
15755 」と「
15756 \begin_inset Flex Code
15757 status collapsed
15758
15759 \begin_layout Plain Layout
15760 ]]
15761 \end_layout
15762
15763 \end_inset
15764
15765 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
15766 \end_layout
15767
15768 \begin_layout Standard
15769 もう一つ、定義中で使用することのできる文法として、
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 {!<i>!}
15775 \end_layout
15776
15777 \end_inset
15778
15779 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
15780 グを出力させたくはありませんから、HTMLタグは「
15781 \begin_inset Flex Code
15782 status collapsed
15783
15784 \begin_layout Plain Layout
15785 {!
15786 \end_layout
15787
15788 \end_inset
15789
15790 」と「
15791 \begin_inset Flex Code
15792 status collapsed
15793
15794 \begin_layout Plain Layout
15795 !}
15796 \end_layout
15797
15798 \end_inset
15799
15800 」でくるんでやらなくてはならないのです。
15801 \end_layout
15802
15803 \begin_layout Standard
15804 \begin_inset Flex Code
15805 status collapsed
15806
15807 \begin_layout Plain Layout
15808 CiteFormat
15809 \end_layout
15810
15811 \end_inset
15812
15813 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
15814 \end_layout
15815
15816 \begin_layout LyX-Code
15817 !quotetitle 
15818 \begin_inset Quotes eld
15819 \end_inset
15820
15821 %title%
15822 \begin_inset Quotes erd
15823 \end_inset
15824
15825
15826 \end_layout
15827
15828 \begin_layout Standard
15829 といった例が挙げられます。これは、短縮形ないしはマクロであり、
15830 \begin_inset Flex Code
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 %!quotetitle%
15835 \end_layout
15836
15837 \end_inset
15838
15839 のように、これがキーであるかのように扱って使用することができます。LyXは、
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 %!quotetitle%
15845 \end_layout
15846
15847 \end_inset
15848
15849 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
15850 \end_layout
15851
15852 \begin_layout LyX-Code
15853 !funfun %funfun%
15854 \end_layout
15855
15856 \begin_layout Standard
15857 のようなことはしないでください。LyXは、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
15858 \end_layout
15859
15860 \begin_layout Standard
15861 特殊な定義の二つめは、
15862 \end_layout
15863
15864 \begin_layout LyX-Code
15865 _pptext pp.
15866 \end_layout
15867
15868 \begin_layout Standard
15869 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
15870 \begin_inset Flex Code
15871 status collapsed
15872
15873 \begin_layout Plain Layout
15874 %_pptext%
15875 \end_layout
15876
15877 \end_inset
15878
15879 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
15880 \begin_inset Flex Code
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884 stdciteformats.inc
15885 \end_layout
15886
15887 \end_inset
15888
15889 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
15890 \end_layout
15891
15892 \begin_layout Standard
15893 以下は、これらの機能を全て使った例です。
15894 \begin_inset VSpace defskip
15895 \end_inset
15896
15897
15898 \end_layout
15899
15900 \begin_layout Standard
15901 \noindent
15902
15903 \family typewriter
15904 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
15905 \end_layout
15906
15907 \begin_layout Standard
15908 \begin_inset VSpace defskip
15909 \end_inset
15910
15911 これは、
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 author
15917 \end_layout
15918
15919 \end_inset
15920
15921 キーが定義されているならば、著者とコンマを出力し、
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 author
15927 \end_layout
15928
15929 \end_inset
15930
15931 キーが定義されておらず、
15932 \begin_inset Flex Code
15933 status collapsed
15934
15935 \begin_layout Plain Layout
15936 editor
15937 \end_layout
15938
15939 \end_inset
15940
15941 キーが定義されているならば、編集者名の後に
15942 \begin_inset Flex Code
15943 status collapsed
15944
15945 \begin_layout Plain Layout
15946 _edtext
15947 \end_layout
15948
15949 \end_inset
15950
15951 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 stdciteformats.inc
15957 \end_layout
15958
15959 \end_inset
15960
15961 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
15962 \end_layout
15963
15964 \begin_layout Section
15965 \begin_inset CommandInset label
15966 LatexCommand label
15967 name "sec:XHTML出力のタグ"
15968
15969 \end_inset
15970
15971 XHTML出力のタグ
15972 \end_layout
15973
15974 \begin_layout Standard
15975 LaTeXやDocBookと同様、LyXのXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、LyXは適切な既定値を提供し、前述した
15976 ように、他のレイアウトタグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、LyXは、章様式
15977
15978 \begin_inset Flex Code
15979 status collapsed
15980
15981 \begin_layout Plain Layout
15982 Font
15983 \end_layout
15984
15985 \end_inset
15986
15987 宣言で提供されている情報を利用しようと試みます。
15988 \end_layout
15989
15990 \begin_layout Standard
15991 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
15992 、これが必要になる場合もあるので、LyXは、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
15993 \end_layout
15994
15995 \begin_layout Standard
15996 様式宣言や差込枠宣言の外で使用することができるタグに、
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 HTMLPreamble
16002 \end_layout
16003
16004 \end_inset
16005
16006
16007 \begin_inset Flex Code
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011 AddToHTMLPreamble
16012 \end_layout
16013
16014 \end_inset
16015
16016 の2つがあることに注意してください。これらの詳細については、第
16017 \begin_inset CommandInset ref
16018 LatexCommand ref
16019 reference "sub:汎用テキストクラスパラメータ"
16020
16021 \end_inset
16022
16023 節をご覧ください。
16024 \end_layout
16025
16026 \begin_layout Subsection
16027 \begin_inset CommandInset label
16028 LatexCommand label
16029 name "sub:段落様式-XHTML"
16030
16031 \end_inset
16032
16033 段落様式
16034 \end_layout
16035
16036 \begin_layout Standard
16037 LyXが段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対
16038 応する
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043 LaTeXType
16044 \end_layout
16045
16046 \end_inset
16047
16048 タグの内容によって決定されます。
16049 \end_layout
16050
16051 \begin_layout Standard
16052 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
16053 \end_layout
16054
16055 \begin_layout LyX-Code
16056 <tag attr=
16057 \begin_inset Quotes erd
16058 \end_inset
16059
16060 value
16061 \begin_inset Quotes erd
16062 \end_inset
16063
16064 >
16065 \end_layout
16066
16067 \begin_layout LyX-Code
16068 <labeltag attr=
16069 \begin_inset Quotes erd
16070 \end_inset
16071
16072 value
16073 \begin_inset Quotes erd
16074 \end_inset
16075
16076 >ラベル</labeltag>
16077 \end_layout
16078
16079 \begin_layout LyX-Code
16080 段落の内容
16081 \end_layout
16082
16083 \begin_layout LyX-Code
16084 </tag>
16085 \end_layout
16086
16087 \begin_layout Standard
16088 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
16089 \end_layout
16090
16091 \begin_layout Standard
16092 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
16093 \end_layout
16094
16095 \begin_layout LyX-Code
16096 <tag attr=
16097 \begin_inset Quotes erd
16098 \end_inset
16099
16100 value
16101 \begin_inset Quotes erd
16102 \end_inset
16103
16104 >
16105 \end_layout
16106
16107 \begin_layout LyX-Code
16108 <itemtag attr=
16109 \begin_inset Quotes erd
16110 \end_inset
16111
16112 value
16113 \begin_inset Quotes erd
16114 \end_inset
16115
16116 ><labeltag attr=
16117 \begin_inset Quotes erd
16118 \end_inset
16119
16120 value
16121 \begin_inset Quotes erd
16122 \end_inset
16123
16124 >環境ラベル</labeltag>最初の段落。
16125 \end_layout
16126
16127 \begin_layout LyX-Code
16128 </itemtag>
16129 \end_layout
16130
16131 \begin_layout LyX-Code
16132 <itemtag>二つめの段落。</itemtag>
16133 \end_layout
16134
16135 \begin_layout LyX-Code
16136 </tag>
16137 \end_layout
16138
16139 \begin_layout Standard
16140 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
16141 \end_layout
16142
16143 \begin_layout Standard
16144 リストに関しては、次のような形になります。
16145 \end_layout
16146
16147 \begin_layout LyX-Code
16148 <tag attr=
16149 \begin_inset Quotes erd
16150 \end_inset
16151
16152 value
16153 \begin_inset Quotes erd
16154 \end_inset
16155
16156 >
16157 \end_layout
16158
16159 \begin_layout LyX-Code
16160 <itemtag attr=
16161 \begin_inset Quotes erd
16162 \end_inset
16163
16164 value
16165 \begin_inset Quotes erd
16166 \end_inset
16167
16168 ><labeltag attr=
16169 \begin_inset Quotes erd
16170 \end_inset
16171
16172 value
16173 \begin_inset Quotes erd
16174 \end_inset
16175
16176 >リストのラベル</labeltag>最初の項目。</itemtag>
16177 \end_layout
16178
16179 \begin_layout LyX-Code
16180 <itemtag attr=
16181 \begin_inset Quotes erd
16182 \end_inset
16183
16184 value
16185 \begin_inset Quotes erd
16186 \end_inset
16187
16188 ><labeltag attr=
16189 \begin_inset Quotes erd
16190 \end_inset
16191
16192 value
16193 \begin_inset Quotes erd
16194 \end_inset
16195
16196 >リストのラベル</labeltag>二つめの項目。</itemtag>
16197 \end_layout
16198
16199 \begin_layout LyX-Code
16200 </tag>
16201 \end_layout
16202
16203 \begin_layout LyX-Code
16204
16205 \end_layout
16206
16207 \begin_layout LyX-Code
16208 <tag attr=
16209 \begin_inset Quotes erd
16210 \end_inset
16211
16212 value
16213 \begin_inset Quotes erd
16214 \end_inset
16215
16216 >
16217 \end_layout
16218
16219 \begin_layout LyX-Code
16220 <labeltag attr=
16221 \begin_inset Quotes erd
16222 \end_inset
16223
16224 value
16225 \begin_inset Quotes erd
16226 \end_inset
16227
16228 >リストのラベル</labeltag><itemtag attr=
16229 \begin_inset Quotes erd
16230 \end_inset
16231
16232 value
16233 \begin_inset Quotes erd
16234 \end_inset
16235
16236 >最初の項目。</itemtag>
16237 \end_layout
16238
16239 \begin_layout LyX-Code
16240 <labeltag attr=
16241 \begin_inset Quotes erd
16242 \end_inset
16243
16244 value
16245 \begin_inset Quotes erd
16246 \end_inset
16247
16248 >リストのラベル</labeltag><itemtag attr=
16249 \begin_inset Quotes erd
16250 \end_inset
16251
16252 value
16253 \begin_inset Quotes erd
16254 \end_inset
16255
16256 >二つめの項目</itemtag>
16257 \end_layout
16258
16259 \begin_layout LyX-Code
16260 </tag>
16261 \end_layout
16262
16263 \begin_layout Standard
16264 ここで
16265 \begin_inset Flex Code
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269 labeltag
16270 \end_layout
16271
16272 \end_inset
16273
16274
16275 \begin_inset Flex Code
16276 status collapsed
16277
16278 \begin_layout Plain Layout
16279 itemtag
16280 \end_layout
16281
16282 \end_inset
16283
16284 の順序が違っていることに注意してください。どちらの順序になるかは、
16285 \begin_inset Flex Code
16286 status collapsed
16287
16288 \begin_layout Plain Layout
16289 HTMLLabelFirst
16290 \end_layout
16291
16292 \end_inset
16293
16294 の設定に依存します。もし
16295 \begin_inset Flex Code
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299 HTMLLabelFirst
16300 \end_layout
16301
16302 \end_inset
16303
16304 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
16305 \end_layout
16306
16307 \begin_layout Standard
16308 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、LyXは適切な既定値
16309 を生成するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整す
16310 る目的でここにあるものと考えてください。
16311 \end_layout
16312
16313 \begin_layout Description
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 HTMLAttr
16319 \end_layout
16320
16321 \end_inset
16322
16323  [
16324 \begin_inset Flex Code
16325 status collapsed
16326
16327 \begin_layout Plain Layout
16328 文字列
16329 \end_layout
16330
16331 \end_inset
16332
16333 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16334 \begin_inset Flex Code
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338 class=`mydiv'
16339 \end_layout
16340
16341 \end_inset
16342
16343 」のようなものです。既定においては、LyXは「
16344 \begin_inset Flex Code
16345 status collapsed
16346
16347 \begin_layout Plain Layout
16348 class=`レイアウト名'
16349 \end_layout
16350
16351 \end_inset
16352
16353 」と出力します。ここで
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358 レイアウト名
16359 \end_layout
16360
16361 \end_inset
16362
16363 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
16364 \end_layout
16365
16366 \begin_layout Description
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 HTMLForceCSS
16372 \end_layout
16373
16374 \end_inset
16375
16376  [
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381
16382 \emph on
16383 0
16384 \end_layout
16385
16386 \end_inset
16387
16388 ,
16389 \begin_inset space \thinspace{}
16390 \end_inset
16391
16392
16393 \begin_inset Flex Code
16394 status collapsed
16395
16396 \begin_layout Plain Layout
16397 1
16398 \end_layout
16399
16400 \end_inset
16401
16402 ] 
16403 \begin_inset Flex Code
16404 status collapsed
16405
16406 \begin_layout Plain Layout
16407 HTMLStyle
16408 \end_layout
16409
16410 \end_inset
16411
16412 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417 1
16418 \end_layout
16419
16420 \end_inset
16421
16422 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
16423 \begin_inset Flex Code
16424 status collapsed
16425
16426 \begin_layout Plain Layout
16427 0
16428 \end_layout
16429
16430 \end_inset
16431
16432 です。
16433 \end_layout
16434
16435 \begin_layout Description
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 HTMLItem
16441 \end_layout
16442
16443 \end_inset
16444
16445  [
16446 \begin_inset Flex Code
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 文字列
16451 \end_layout
16452
16453 \end_inset
16454
16455 ] 環境の段落に使用されるタグ。上記各例の
16456 \begin_inset Flex Code
16457 status collapsed
16458
16459 \begin_layout Plain Layout
16460 itemtag
16461 \end_layout
16462
16463 \end_inset
16464
16465 を置き換えます。既定値は
16466 \begin_inset Flex Code
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470 div
16471 \end_layout
16472
16473 \end_inset
16474
16475 です。
16476 \end_layout
16477
16478 \begin_layout Description
16479 \begin_inset Flex Code
16480 status collapsed
16481
16482 \begin_layout Plain Layout
16483 HTMLItemAttr
16484 \end_layout
16485
16486 \end_inset
16487
16488  [
16489 \begin_inset Flex Code
16490 status collapsed
16491
16492 \begin_layout Plain Layout
16493 文字列
16494 \end_layout
16495
16496 \end_inset
16497
16498 ] itemタグの属性。既定値は
16499 \begin_inset Flex Code
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503 class=`レイアウト名_item'
16504 \end_layout
16505
16506 \end_inset
16507
16508 です。ここには、様式情報は含まれては
16509 \emph on
16510 なりません
16511 \emph default
16512 。その目的のためには、
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 HTMLStyle
16518 \end_layout
16519
16520 \end_inset
16521
16522 を使用してください。
16523 \end_layout
16524
16525 \begin_layout Description
16526 \begin_inset Flex Code
16527 status collapsed
16528
16529 \begin_layout Plain Layout
16530 HTMLLabel
16531 \end_layout
16532
16533 \end_inset
16534
16535  [
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540 文字列
16541 \end_layout
16542
16543 \end_inset
16544
16545 ] 段落と項目ラベルに使用されるタグ。上記各例の
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550 labeltag
16551 \end_layout
16552
16553 \end_inset
16554
16555 を置き換えます。
16556 \begin_inset Flex Code
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560 LabelType
16561 \end_layout
16562
16563 \end_inset
16564
16565
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 Top_Environment
16571 \end_layout
16572
16573 \end_inset
16574
16575
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580 Centered_Top_Environment
16581 \end_layout
16582
16583 \end_inset
16584
16585 の時は、既定値は
16586 \begin_inset Flex Code
16587 status collapsed
16588
16589 \begin_layout Plain Layout
16590 div
16591 \end_layout
16592
16593 \end_inset
16594
16595 ですが、それ以外の時の既定値は
16596 \begin_inset Flex Code
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600 span
16601 \end_layout
16602
16603 \end_inset
16604
16605 です。
16606 \end_layout
16607
16608 \begin_layout Description
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 HTMLLabelAttr
16614 \end_layout
16615
16616 \end_inset
16617
16618  [
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 文字列
16624 \end_layout
16625
16626 \end_inset
16627
16628 ] labelタグの属性。既定値は
16629 \begin_inset Flex Code
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 class=`レイアウト名_label'
16634 \end_layout
16635
16636 \end_inset
16637
16638 です。ここには、様式情報は含まれては
16639 \emph on
16640 なりません
16641 \emph default
16642 。その目的のためには、
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 HTMLStyle
16648 \end_layout
16649
16650 \end_inset
16651
16652 を使用してください。
16653 \end_layout
16654
16655 \begin_layout Description
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660 HTMLLabelFirst
16661 \end_layout
16662
16663 \end_inset
16664
16665  [
16666 \begin_inset Flex Code
16667 status collapsed
16668
16669 \begin_layout Plain Layout
16670
16671 \emph on
16672 0
16673 \end_layout
16674
16675 \end_inset
16676
16677 ,
16678 \begin_inset space \thinspace{}
16679 \end_inset
16680
16681
16682 \begin_inset Flex Code
16683 status collapsed
16684
16685 \begin_layout Plain Layout
16686 1
16687 \end_layout
16688
16689 \end_inset
16690
16691 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
16692 tion環境の中で、
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 `<dt>\SpecialChar \ldots{}
16698 </dt><dd>\SpecialChar \ldots{}
16699 </dd>
16700 \end_layout
16701
16702 \end_inset
16703
16704 という形を得るために使用されます。既定値は
16705 \begin_inset Flex Code
16706 status collapsed
16707
16708 \begin_layout Plain Layout
16709 0
16710 \end_layout
16711
16712 \end_inset
16713
16714 で、labelタグはitemタグの中に出力されます。
16715 \end_layout
16716
16717 \begin_layout Description
16718 \begin_inset Flex Code
16719 status collapsed
16720
16721 \begin_layout Plain Layout
16722 HTMLPreamble
16723 \end_layout
16724
16725 \end_inset
16726
16727  この様式が使用されたときに、
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 <head>
16733 \end_layout
16734
16735 \end_inset
16736
16737 セクションに出力される情報。これは、たとえば、
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 onclick
16743 \end_layout
16744
16745 \end_inset
16746
16747 ハンドラを定義するために
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 <script>
16753 \end_layout
16754
16755 \end_inset
16756
16757 ブロックをインクルードするのに使用することができます。
16758 \end_layout
16759
16760 \begin_layout Description
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765 HTMLStyle
16766 \end_layout
16767
16768 \end_inset
16769
16770   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16771 \begin_inset Flex Code
16772 status collapsed
16773
16774 \begin_layout Plain Layout
16775 <style>
16776 \end_layout
16777
16778 \end_inset
16779
16780 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16781 \end_layout
16782
16783 \begin_layout Description
16784 \begin_inset Flex Code
16785 status collapsed
16786
16787 \begin_layout Plain Layout
16788 HTMLTag
16789 \end_layout
16790
16791 \end_inset
16792
16793  [
16794 \begin_inset Flex Code
16795 status collapsed
16796
16797 \begin_layout Plain Layout
16798 文字列
16799 \end_layout
16800
16801 \end_inset
16802
16803 ] 主幹ラベルに使用されるタグ。上記各例の
16804 \begin_inset Flex Code
16805 status collapsed
16806
16807 \begin_layout Plain Layout
16808 tag
16809 \end_layout
16810
16811 \end_inset
16812
16813 を置き換えます。既定値は
16814 \begin_inset Flex Code
16815 status collapsed
16816
16817 \begin_layout Plain Layout
16818 div
16819 \end_layout
16820
16821 \end_inset
16822
16823 です。
16824 \end_layout
16825
16826 \begin_layout Description
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 HTMLTitle
16832 \end_layout
16833
16834 \end_inset
16835
16836  [
16837 \begin_inset Flex Code
16838 status collapsed
16839
16840 \begin_layout Plain Layout
16841
16842 \emph on
16843 0
16844 \end_layout
16845
16846 \end_inset
16847
16848 ,
16849 \begin_inset space \thinspace{}
16850 \end_inset
16851
16852
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 1
16858 \end_layout
16859
16860 \end_inset
16861
16862 ] この様式が、XHTMLファイルの
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 <title>
16868 \end_layout
16869
16870 \end_inset
16871
16872 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 stdtitle.inc
16878 \end_layout
16879
16880 \end_inset
16881
16882 ファイルでは、
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 title
16888 \end_layout
16889
16890 \end_inset
16891
16892 環境のこの項目を真に設定しています。
16893 \end_layout
16894
16895 \begin_layout Subsection
16896 差込枠レイアウトXHTML
16897 \end_layout
16898
16899 \begin_layout Standard
16900 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
16901 \begin_inset Foot
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
16906 ん。
16907 \end_layout
16908
16909 \end_inset
16910
16911 。ここでも、LyXは適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
16912 \end_layout
16913
16914 \begin_layout Standard
16915 LyXが差込枠用に出力するXHTMLは、以下の形を取ります。
16916 \end_layout
16917
16918 \begin_layout LyX-Code
16919 <tag attr=
16920 \begin_inset Quotes erd
16921 \end_inset
16922
16923 value
16924 \begin_inset Quotes erd
16925 \end_inset
16926
16927 >
16928 \end_layout
16929
16930 \begin_layout LyX-Code
16931 <labeltag>ラベル</labeltag>
16932 \end_layout
16933
16934 \begin_layout LyX-Code
16935 <innertag attr=
16936 \begin_inset Quotes erd
16937 \end_inset
16938
16939 value
16940 \begin_inset Quotes erd
16941 \end_inset
16942
16943 >差込枠の内容。</innertag>
16944 \end_layout
16945
16946 \begin_layout LyX-Code
16947 </tag>
16948 \end_layout
16949
16950 \begin_layout Standard
16951 差込枠が多段落を許可している---つまり
16952 \begin_inset Flex Code
16953 status collapsed
16954
16955 \begin_layout Plain Layout
16956 MultiPar
16957 \end_layout
16958
16959 \end_inset
16960
16961 が真---ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなけれ
16962 ば、labelタグは省略され、ラベルがあれば、現在のところ、つねに
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 span
16968 \end_layout
16969
16970 \end_inset
16971
16972 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
16973 す。
16974 \end_layout
16975
16976 \begin_layout Description
16977 \begin_inset Flex Code
16978 status collapsed
16979
16980 \begin_layout Plain Layout
16981 HTMLAttr
16982 \end_layout
16983
16984 \end_inset
16985
16986  [
16987 \begin_inset Flex Code
16988 status collapsed
16989
16990 \begin_layout Plain Layout
16991 文字列
16992 \end_layout
16993
16994 \end_inset
16995
16996 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16997 \begin_inset Flex Code
16998 status collapsed
16999
17000 \begin_layout Plain Layout
17001 class=`myinset' onclick=`\SpecialChar \ldots{}
17002 '
17003 \end_layout
17004
17005 \end_inset
17006
17007 」のようなものです。既定においては、LyXは「
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 class=`差込枠名'
17013 \end_layout
17014
17015 \end_inset
17016
17017 」と出力します。ここで
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 差込枠名
17023 \end_layout
17024
17025 \end_inset
17026
17027 は、差込枠のLyX名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
17028 \end_layout
17029
17030 \begin_layout Description
17031 \begin_inset Flex Code
17032 status collapsed
17033
17034 \begin_layout Plain Layout
17035 HTMLForceCSS
17036 \end_layout
17037
17038 \end_inset
17039
17040  [
17041 \begin_inset Flex Code
17042 status collapsed
17043
17044 \begin_layout Plain Layout
17045
17046 \emph on
17047 0
17048 \emph default
17049 ,1
17050 \end_layout
17051
17052 \end_inset
17053
17054 ] 
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 HTMLStyle
17060 \end_layout
17061
17062 \end_inset
17063
17064 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
17065 \begin_inset Flex Code
17066 status collapsed
17067
17068 \begin_layout Plain Layout
17069 1
17070 \end_layout
17071
17072 \end_inset
17073
17074 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079 0
17080 \end_layout
17081
17082 \end_inset
17083
17084 です。
17085 \end_layout
17086
17087 \begin_layout Description
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092 HTMLInnerAttr
17093 \end_layout
17094
17095 \end_inset
17096
17097  [
17098 \begin_inset Flex Code
17099 status collapsed
17100
17101 \begin_layout Plain Layout
17102 文字列
17103 \end_layout
17104
17105 \end_inset
17106
17107 ] innerタグの属性。既定値は
17108 \begin_inset Flex Code
17109 status collapsed
17110
17111 \begin_layout Plain Layout
17112 class=`差込枠名_inner'
17113 \end_layout
17114
17115 \end_inset
17116
17117 です。
17118 \end_layout
17119
17120 \begin_layout Description
17121 \begin_inset Flex Code
17122 status collapsed
17123
17124 \begin_layout Plain Layout
17125 HTMLInnerTag
17126 \end_layout
17127
17128 \end_inset
17129
17130  [
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135 文字列
17136 \end_layout
17137
17138 \end_inset
17139
17140 ] innerタグです。上記各例の
17141 \begin_inset Flex Code
17142 status collapsed
17143
17144 \begin_layout Plain Layout
17145 innertag
17146 \end_layout
17147
17148 \end_inset
17149
17150 を置き換えます。既定値はなしです。
17151 \end_layout
17152
17153 \begin_layout Description
17154 \begin_inset Flex Code
17155 status collapsed
17156
17157 \begin_layout Plain Layout
17158 HTMLIsBlock
17159 \end_layout
17160
17161 \end_inset
17162
17163  [
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 0
17169 \end_layout
17170
17171 \end_inset
17172
17173 ,
17174 \begin_inset space \thinspace{}
17175 \end_inset
17176
17177
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182
17183 \emph on
17184 1
17185 \end_layout
17186
17187 \end_inset
17188
17189 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
17190 \end_layout
17191
17192 \begin_layout Description
17193 \begin_inset Flex Code
17194 status collapsed
17195
17196 \begin_layout Plain Layout
17197 HTMLLabel
17198 \end_layout
17199
17200 \end_inset
17201
17202  [
17203 \begin_inset Flex Code
17204 status collapsed
17205
17206 \begin_layout Plain Layout
17207 文字列
17208 \end_layout
17209
17210 \end_inset
17211
17212 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
17213 \begin_inset Flex Code
17214 status collapsed
17215
17216 \begin_layout Plain Layout
17217
17218 \backslash
17219 arabic{footnote}
17220 \end_layout
17221
17222 \end_inset
17223
17224 など。これは非必須であり、既定値はありません。
17225 \end_layout
17226
17227 \begin_layout Description
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 HTMLPreamble
17233 \end_layout
17234
17235 \end_inset
17236
17237  この様式が使用されたときに、
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242 <head>
17243 \end_layout
17244
17245 \end_inset
17246
17247 セクションに出力される情報。これは、たとえば、
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252 onclick
17253 \end_layout
17254
17255 \end_inset
17256
17257 ハンドラを定義するために
17258 \begin_inset Flex Code
17259 status collapsed
17260
17261 \begin_layout Plain Layout
17262 <script>
17263 \end_layout
17264
17265 \end_inset
17266
17267 ブロックをインクルードするのに使用することができます。
17268 \end_layout
17269
17270 \begin_layout Description
17271 \begin_inset Flex Code
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275 HTMLStyle
17276 \end_layout
17277
17278 \end_inset
17279
17280   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17281 \begin_inset Flex Code
17282 status collapsed
17283
17284 \begin_layout Plain Layout
17285 <style>
17286 \end_layout
17287
17288 \end_inset
17289
17290 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17291 \end_layout
17292
17293 \begin_layout Description
17294 \begin_inset Flex Code
17295 status collapsed
17296
17297 \begin_layout Plain Layout
17298 HTMLTag
17299 \end_layout
17300
17301 \end_inset
17302
17303  [
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 文字列
17309 \end_layout
17310
17311 \end_inset
17312
17313 ] 主幹ラベルに使用されるタグ。上記各例の
17314 \begin_inset Flex Code
17315 status collapsed
17316
17317 \begin_layout Plain Layout
17318 tag
17319 \end_layout
17320
17321 \end_inset
17322
17323 を置き換えます。既定値は
17324 \begin_inset Flex Code
17325 status collapsed
17326
17327 \begin_layout Plain Layout
17328 MultiPar
17329 \end_layout
17330
17331 \end_inset
17332
17333 の設定に依存し、
17334 \begin_inset Flex Code
17335 status collapsed
17336
17337 \begin_layout Plain Layout
17338 MultiPar
17339 \end_layout
17340
17341 \end_inset
17342
17343 が真ならば
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 div
17349 \end_layout
17350
17351 \end_inset
17352
17353 、偽ならば
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358 span
17359 \end_layout
17360
17361 \end_inset
17362
17363 です。
17364 \end_layout
17365
17366 \begin_layout Subsection
17367 フロートXHTML
17368 \end_layout
17369
17370 \begin_layout Standard
17371 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
17372 \end_layout
17373
17374 \begin_layout LyX-Code
17375 <tag attr=
17376 \begin_inset Quotes erd
17377 \end_inset
17378
17379 value
17380 \begin_inset Quotes erd
17381 \end_inset
17382
17383 >
17384 \end_layout
17385
17386 \begin_layout LyX-Code
17387 フロートの内容。
17388 \end_layout
17389
17390 \begin_layout LyX-Code
17391 </tag>
17392 \end_layout
17393
17394 \begin_layout Standard
17395 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
17396 きます。
17397 \end_layout
17398
17399 \begin_layout Description
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 HTMLAttr
17405 \end_layout
17406
17407 \end_inset
17408
17409  [
17410 \begin_inset Flex Code
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 文字列
17415 \end_layout
17416
17417 \end_inset
17418
17419 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424 class=`myfloat' onclick=`\SpecialChar \ldots{}
17425 '
17426 \end_layout
17427
17428 \end_inset
17429
17430 」のようなものです。既定においては、LyXは「
17431 \begin_inset Flex Code
17432 status collapsed
17433
17434 \begin_layout Plain Layout
17435 class=`float フロート-フロート型'
17436 \end_layout
17437
17438 \end_inset
17439
17440 」と出力します。ここで
17441 \begin_inset Flex Code
17442 status collapsed
17443
17444 \begin_layout Plain Layout
17445 フロート型
17446 \end_layout
17447
17448 \end_inset
17449
17450 は、フロート宣言で定義された(
17451 \begin_inset CommandInset ref
17452 LatexCommand ref
17453 reference "sub:フロート"
17454
17455 \end_inset
17456
17457 参照)、この型のフロートのLyX名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table
17458
17459 \end_layout
17460
17461 \begin_layout Description
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 HTMLStyle
17467 \end_layout
17468
17469 \end_inset
17470
17471   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17472 \begin_inset Flex Code
17473 status collapsed
17474
17475 \begin_layout Plain Layout
17476 <style>
17477 \end_layout
17478
17479 \end_inset
17480
17481 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17482 \end_layout
17483
17484 \begin_layout Description
17485 \begin_inset Flex Code
17486 status collapsed
17487
17488 \begin_layout Plain Layout
17489 HTMLTag
17490 \end_layout
17491
17492 \end_inset
17493
17494  [
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 文字列
17500 \end_layout
17501
17502 \end_inset
17503
17504 ] このフロートに使用されるタグ。上記各例の
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 tag
17510 \end_layout
17511
17512 \end_inset
17513
17514 を置き換えます。既定値は
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519 div
17520 \end_layout
17521
17522 \end_inset
17523
17524 であり、ほとんどの場合変更する必要はありません。
17525 \end_layout
17526
17527 \begin_layout Subsection
17528 書誌情報の整形
17529 \end_layout
17530
17531 \begin_layout Standard
17532 書誌情報は、
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 CiteFormat
17538 \end_layout
17539
17540 \end_inset
17541
17542 ブロックを使用して整形することができます。詳細については、第
17543 \begin_inset CommandInset ref
17544 LatexCommand ref
17545 reference "sub:引用書式指定"
17546
17547 \end_inset
17548
17549 節を参照してください。
17550 \end_layout
17551
17552 \begin_layout Subsection
17553 LyXが生成したCSS
17554 \end_layout
17555
17556 \begin_layout Standard
17557 LyXは、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節
17558 では、LyXがどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
17559 \end_layout
17560
17561 \begin_layout Standard
17562 LyXは、現在のところ、
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 Font
17568 \end_layout
17569
17570 \end_inset
17571
17572 宣言で指定されている
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 Family
17578 \end_layout
17579
17580 \end_inset
17581
17582
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 Series
17588 \end_layout
17589
17590 \end_inset
17591
17592
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 Shape
17598 \end_layout
17599
17600 \end_inset
17601
17602
17603 \begin_inset Flex Code
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607 Size
17608 \end_layout
17609
17610 \end_inset
17611
17612 を利用して、フォント情報についてのみCSSを自動生成します(第
17613 \begin_inset CommandInset ref
17614 LatexCommand ref
17615 reference "sub:フォント指定"
17616
17617 \end_inset
17618
17619 節を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 Family Sans
17625 \end_layout
17626
17627 \end_inset
17628
17629 」は「
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 font-family: sans-serif
17635 \end_layout
17636
17637 \end_inset
17638
17639 」になります。LyXの寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
17640 \begin_inset Flex URL
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644
17645 src/FontInfo.cpp
17646 \end_layout
17647
17648 \end_inset
17649
17650
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655 getSizeCSS()
17656 \end_layout
17657
17658 \end_inset
17659
17660 関数をご覧ください。
17661 \end_layout
17662
17663 \begin_layout Chapter
17664 外部素材を取り込む
17665 \end_layout
17666
17667 \begin_layout Standard
17668 \begin_inset Box Shadowbox
17669 position "t"
17670 hor_pos "c"
17671 has_inner_box 1
17672 inner_pos "t"
17673 use_parbox 0
17674 use_makebox 0
17675 width "100col%"
17676 special "none"
17677 height "1in"
17678 height_special "totalheight"
17679 status open
17680
17681 \begin_layout Plain Layout
17682 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
17683 \end_layout
17684
17685 \end_inset
17686
17687
17688 \end_layout
17689
17690 \begin_layout Standard
17691 LyX外部のソースから素材を使用する方法は、取扱説明書
17692 \emph on
17693 埋込オブジェクト篇
17694 \emph default
17695 で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
17696 \end_layout
17697
17698 \begin_layout Section
17699 どのように機能するのか
17700 \end_layout
17701
17702 \begin_layout Standard
17703 外部素材の機能は、ひな型の概念に基づいています。ひな型は、LyXがある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、LyXは、Xfig
17704 の図や、様々なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
17705 \begin_inset Flex MenuItem
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 挿入\SpecialChar \menuseparator
17710 ファイル\SpecialChar \menuseparator
17711 外部素材
17712 \end_layout
17713
17714 \end_inset
17715
17716 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
17717 すが、できればあなたが作ったすべてのひな型を投稿して、我々がLyXの後の版に取り込むことができるようにしてくださることを希望します。
17718 \end_layout
17719
17720 \begin_layout Standard
17721 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
17722 いることです。たとえば、
17723 \begin_inset Flex Code
17724 status collapsed
17725
17726 \begin_layout Plain Layout
17727 Xfig
17728 \end_layout
17729
17730 \end_inset
17731
17732 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 .fig
17738 \end_layout
17739
17740 \end_inset
17741
17742 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
17743 \begin_inset Flex Code
17744 status collapsed
17745
17746 \begin_layout Plain Layout
17747 fig
17748 \end_layout
17749
17750 \end_inset
17751
17752 ファイルに保存します。この図をお使いの文書に取り込みたいときには、LaTeXファイルにそのままインクルードできるように、
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 transfig
17758 \end_layout
17759
17760 \end_inset
17761
17762 を呼び出してPostScriptファイルを生成します。この場合には、
17763 \begin_inset Flex Code
17764 status collapsed
17765
17766 \begin_layout Plain Layout
17767 .fig
17768 \end_layout
17769
17770 \end_inset
17771
17772 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
17773 \end_layout
17774
17775 \begin_layout Standard
17776 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
17777 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
17778 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。LyXの外部素材マネジメ
17779 ントは、LyXがサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
17780 \end_layout
17781
17782 \begin_layout Standard
17783 LyXの外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfi
17784 gの図の場合には、LyXの外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScr
17785 iptファイルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加え
17786 るためにファイルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を
17787 上げることができるようになるのです。
17788 \end_layout
17789
17790 \begin_layout Section
17791 外用ひな型設定ファイル
17792 \end_layout
17793
17794 \begin_layout Standard
17795 LyXに自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホ
17796 ールを作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、第
17797 \begin_inset CommandInset ref
17798 LatexCommand ref
17799 reference "sec:セキュリティに関する論点"
17800
17801 \end_inset
17802
17803 節のセキュリティに関する議論を読んでおいてください。
17804 \end_layout
17805
17806 \begin_layout Standard
17807 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
17808 \end_layout
17809
17810 \begin_layout Standard
17811 外用ひな型は、
17812 \begin_inset Flex Code
17813 status collapsed
17814
17815 \begin_layout Plain Layout
17816 LyXDir/lib/external_templates
17817 \end_layout
17818
17819 \end_inset
17820
17821 ファイルで定義されています。自分用の版を
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 UserDir/external_templates
17827 \end_layout
17828
17829 \end_inset
17830
17831 に置くこともできます。
17832 \end_layout
17833
17834 \begin_layout Standard
17835 典型的なひな型は以下のようになります。
17836 \end_layout
17837
17838 \begin_layout LyX-Code
17839 Template XFig
17840 \end_layout
17841
17842 \begin_layout LyX-Code
17843 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
17844 \end_layout
17845
17846 \begin_layout LyX-Code
17847 HelpText
17848 \end_layout
17849
17850 \begin_layout LyX-Code
17851 An XFig figure.
17852 \end_layout
17853
17854 \begin_layout LyX-Code
17855 HelpTextEnd
17856 \end_layout
17857
17858 \begin_layout LyX-Code
17859 InputFormat fig
17860 \end_layout
17861
17862 \begin_layout LyX-Code
17863 FileFilter "*.fig"
17864 \end_layout
17865
17866 \begin_layout LyX-Code
17867 AutomaticProduction true
17868 \end_layout
17869
17870 \begin_layout LyX-Code
17871 Transform Rotate
17872 \end_layout
17873
17874 \begin_layout LyX-Code
17875 Transform Resize
17876 \end_layout
17877
17878 \begin_layout LyX-Code
17879 Format LaT
17880 \begin_inset ERT
17881 status collapsed
17882
17883 \begin_layout Plain Layout
17884
17885 {}
17886 \end_layout
17887
17888 \end_inset
17889
17890 eX
17891 \end_layout
17892
17893 \begin_layout LyX-Code
17894 TransformCommand Rotate RotationLatexCommand
17895 \end_layout
17896
17897 \begin_layout LyX-Code
17898 TransformCommand Resize ResizeLatexCommand
17899 \end_layout
17900
17901 \begin_layout LyX-Code
17902 Product "$$RotateFront$$ResizeFront
17903 \end_layout
17904
17905 \begin_layout LyX-Code
17906          
17907 \backslash
17908
17909 \backslash
17910 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
17911 \end_layout
17912
17913 \begin_layout LyX-Code
17914          $$ResizeBack$$RotateBack"
17915 \end_layout
17916
17917 \begin_layout LyX-Code
17918 UpdateFormat pstex
17919 \end_layout
17920
17921 \begin_layout LyX-Code
17922 UpdateResult "$$AbsPath$$Basename.pstex_t"
17923 \end_layout
17924
17925 \begin_layout LyX-Code
17926 Requirement "graphicx"
17927 \end_layout
17928
17929 \begin_layout LyX-Code
17930 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
17931 \end_layout
17932
17933 \begin_layout LyX-Code
17934 ReferencedFile latex "$$AbsPath$$Basename.eps"
17935 \end_layout
17936
17937 \begin_layout LyX-Code
17938 ReferencedFile dvi "$$AbsPath$$Basename.eps"
17939 \end_layout
17940
17941 \begin_layout LyX-Code
17942 FormatEnd
17943 \end_layout
17944
17945 \begin_layout LyX-Code
17946 Format PDFLaT
17947 \begin_inset ERT
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951
17952 {}
17953 \end_layout
17954
17955 \end_inset
17956
17957 eX
17958 \end_layout
17959
17960 \begin_layout LyX-Code
17961 TransformCommand Rotate RotationLatexCommand
17962 \end_layout
17963
17964 \begin_layout LyX-Code
17965 TransformCommand Resize ResizeLatexCommand
17966 \end_layout
17967
17968 \begin_layout LyX-Code
17969 Product "$$RotateFront$$ResizeFront
17970 \end_layout
17971
17972 \begin_layout LyX-Code
17973          
17974 \backslash
17975
17976 \backslash
17977 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
17978 \end_layout
17979
17980 \begin_layout LyX-Code
17981          $$ResizeBack$$RotateBack"
17982 \end_layout
17983
17984 \begin_layout LyX-Code
17985 UpdateFormat pdftex
17986 \end_layout
17987
17988 \begin_layout LyX-Code
17989 UpdateResult "$$AbsPath$$Basename.pdftex_t"
17990 \end_layout
17991
17992 \begin_layout LyX-Code
17993 Requirement "graphicx"
17994 \end_layout
17995
17996 \begin_layout LyX-Code
17997 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
17998 \end_layout
17999
18000 \begin_layout LyX-Code
18001 ReferencedFile latex "$$AbsPath$$Basename.pdf"
18002 \end_layout
18003
18004 \begin_layout LyX-Code
18005 FormatEnd
18006 \end_layout
18007
18008 \begin_layout LyX-Code
18009 Format Ascii
18010 \end_layout
18011
18012 \begin_layout LyX-Code
18013 Product "$$Contents(
18014 \backslash
18015 "$$AbsPath$$Basename.asc
18016 \backslash
18017 ")"
18018 \end_layout
18019
18020 \begin_layout LyX-Code
18021 UpdateFormat asciixfig
18022 \end_layout
18023
18024 \begin_layout LyX-Code
18025 UpdateResult "$$AbsPath$$Basename.asc"
18026 \end_layout
18027
18028 \begin_layout LyX-Code
18029 FormatEnd
18030 \end_layout
18031
18032 \begin_layout LyX-Code
18033 Format DocBook
18034 \end_layout
18035
18036 \begin_layout LyX-Code
18037 Product "<graphic fileref=
18038 \backslash
18039 "$$AbsOrRelPathMaster$$Basename.eps
18040 \backslash
18041 ">
18042 \end_layout
18043
18044 \begin_layout LyX-Code
18045          </graphic>"
18046 \end_layout
18047
18048 \begin_layout LyX-Code
18049 UpdateFormat eps
18050 \end_layout
18051
18052 \begin_layout LyX-Code
18053 UpdateResult "$$AbsPath$$Basename.eps"
18054 \end_layout
18055
18056 \begin_layout LyX-Code
18057 ReferencedFile docbook "$$AbsPath$$Basename.eps"
18058 \end_layout
18059
18060 \begin_layout LyX-Code
18061 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
18062 \end_layout
18063
18064 \begin_layout LyX-Code
18065 FormatEnd
18066 \end_layout
18067
18068 \begin_layout LyX-Code
18069 Product "[XFig: $$FName]"
18070 \end_layout
18071
18072 \begin_layout LyX-Code
18073 FormatEnd
18074 \end_layout
18075
18076 \begin_layout LyX-Code
18077 TemplateEnd
18078 \end_layout
18079
18080 \begin_layout Standard
18081 ご覧の通り、ひな型は
18082 \begin_inset Flex Code
18083 status collapsed
18084
18085 \begin_layout Plain Layout
18086 Template
18087 \end_layout
18088
18089 \end_inset
18090
18091  \SpecialChar \ldots{}
18092  
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 TemplateEnd
18098 \end_layout
18099
18100 \end_inset
18101
18102 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107 Format
18108 \end_layout
18109
18110 \end_inset
18111
18112  \SpecialChar \ldots{}
18113  
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 FormatEnd
18119 \end_layout
18120
18121 \end_inset
18122
18123 部があります。
18124 \end_layout
18125
18126 \begin_layout Subsection
18127 ひな型のヘッダ
18128 \end_layout
18129
18130 \begin_layout Description
18131 \begin_inset Flex Code
18132 status collapsed
18133
18134 \begin_layout Plain Layout
18135 AutomaticProduction
18136 \begin_inset space ~
18137 \end_inset
18138
18139 true|false
18140 \end_layout
18141
18142 \end_inset
18143
18144  このひな型で扱うファイルをLyXが生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
18145 \end_layout
18146
18147 \begin_layout Description
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 FileFilter
18153 \begin_inset space ~
18154 \end_inset
18155
18156 <パターン>
18157 \end_layout
18158
18159 \end_inset
18160
18161  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 .obj
18167 \end_layout
18168
18169 \end_inset
18170
18171
18172 \begin_inset Flex Code
18173 status collapsed
18174
18175 \begin_layout Plain Layout
18176 .tgo
18177 \end_layout
18178
18179 \end_inset
18180
18181 があります)、「
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 *.{obj,tgo}
18187 \end_layout
18188
18189 \end_inset
18190
18191 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
18192 \end_layout
18193
18194 \begin_layout Description
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 GuiName
18200 \begin_inset space ~
18201 \end_inset
18202
18203 <GUI名>
18204 \end_layout
18205
18206 \end_inset
18207
18208  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
18209 \end_layout
18210
18211 \begin_layout Description
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 HelpText
18217 \begin_inset space ~
18218 \end_inset
18219
18220 <文章>
18221 \begin_inset space ~
18222 \end_inset
18223
18224 HelpTextEnd
18225 \end_layout
18226
18227 \end_inset
18228
18229  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
18230 ず現れなくてはなりません。
18231 \end_layout
18232
18233 \begin_layout Description
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 InputFormat
18239 \begin_inset space ~
18240 \end_inset
18241
18242 <書式>
18243 \end_layout
18244
18245 \end_inset
18246
18247  オリジナルファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(第
18248 \begin_inset CommandInset ref
18249 LatexCommand ref
18250 reference "sec:ファイル形式"
18251
18252 \end_inset
18253
18254 章参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
18255 \begin_inset Flex Code
18256 status collapsed
18257
18258 \begin_layout Plain Layout
18259 *
18260 \end_layout
18261
18262 \end_inset
18263
18264 」を使用してください。この場合、LyXはファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
18265 \end_layout
18266
18267 \begin_layout Description
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 Template
18273 \begin_inset space ~
18274 \end_inset
18275
18276 <ID>
18277 \end_layout
18278
18279 \end_inset
18280
18281  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
18282 \end_layout
18283
18284 \begin_layout Description
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 Transform
18290 \begin_inset space ~
18291 \end_inset
18292
18293 Rotate|Resize|Clip|Extra
18294 \end_layout
18295
18296 \end_inset
18297
18298  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
18299 ログ中の対応するタブを使用可能にします。
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 Transform
18305 \end_layout
18306
18307 \end_inset
18308
18309 コマンド一つずつに応じて、
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 Format
18315 \end_layout
18316
18317 \end_inset
18318
18319 部に、対応する
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324 TransformCommand
18325 \end_layout
18326
18327 \end_inset
18328
18329 コマンドか
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 TransformOption
18335 \end_layout
18336
18337 \end_inset
18338
18339 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
18340 \end_layout
18341
18342 \begin_layout Subsection
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 Format
18348 \end_layout
18349
18350 \end_inset
18351
18352
18353 \end_layout
18354
18355 \begin_layout Description
18356 \begin_inset Flex Code
18357 status collapsed
18358
18359 \begin_layout Plain Layout
18360 Format
18361 \begin_inset space ~
18362 \end_inset
18363
18364 LaT
18365 \begin_inset ERT
18366 status collapsed
18367
18368 \begin_layout Plain Layout
18369
18370 {}
18371 \end_layout
18372
18373 \end_inset
18374
18375 eX|PDFLaT
18376 \begin_inset ERT
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380
18381 {}
18382 \end_layout
18383
18384 \end_inset
18385
18386 eX|PlainText|DocBook
18387 \end_layout
18388
18389 \end_inset
18390
18391  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 Format
18397 \end_layout
18398
18399 \end_inset
18400
18401 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
18402 ようになります。
18403 \end_layout
18404
18405 \begin_layout Description
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 Option
18411 \begin_inset space ~
18412 \end_inset
18413
18414 <名称>
18415 \begin_inset space ~
18416 \end_inset
18417
18418 <値>
18419 \end_layout
18420
18421 \end_inset
18422
18423  このコマンドは、
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 Product
18429 \end_layout
18430
18431 \end_inset
18432
18433 での代入に使うマクロ
18434 \begin_inset Flex Code
18435 status collapsed
18436
18437 \begin_layout Plain Layout
18438 $$<名称>
18439 \end_layout
18440
18441 \end_inset
18442
18443 を新たに定義します。
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448 <値>
18449 \end_layout
18450
18451 \end_inset
18452
18453 自体にも代入マクロを使うことができます。
18454 \begin_inset Flex Code
18455 status collapsed
18456
18457 \begin_layout Plain Layout
18458 Product
18459 \end_layout
18460
18461 \end_inset
18462
18463
18464 \begin_inset Flex Code
18465 status collapsed
18466
18467 \begin_layout Plain Layout
18468 <値>
18469 \end_layout
18470
18471 \end_inset
18472
18473 を直接使用するよりも優れた点は、
18474 \begin_inset Flex Code
18475 status collapsed
18476
18477 \begin_layout Plain Layout
18478 $$<名称>
18479 \end_layout
18480
18481 \end_inset
18482
18483 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
18484 \end_layout
18485
18486 \begin_layout Description
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491 Product
18492 \begin_inset space ~
18493 \end_inset
18494
18495 <文>
18496 \end_layout
18497
18498 \end_inset
18499
18500  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
18501
18502 \end_layout
18503
18504 \begin_layout Description
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509 Preamble
18510 \begin_inset space ~
18511 \end_inset
18512
18513 <名称>
18514 \end_layout
18515
18516 \end_inset
18517
18518  このコマンドは、LaTeXプリアンブルに入れるプリアンブル片を指定します。これは
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 PreambleDef
18524 \end_layout
18525
18526 \end_inset
18527
18528  \SpecialChar \ldots{}
18529  
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534 PreambleDefEnd
18535 \end_layout
18536
18537 \end_inset
18538
18539 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
18540 \end_layout
18541
18542 \begin_layout Description
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 ReferencedFile
18548 \begin_inset space ~
18549 \end_inset
18550
18551 <書式>
18552 \begin_inset space ~
18553 \end_inset
18554
18555 <ファイル名>
18556 \end_layout
18557
18558 \end_inset
18559
18560  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
18561 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
18562 \end_layout
18563
18564 \begin_layout Description
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 Requirement
18570 \begin_inset space ~
18571 \end_inset
18572
18573 <package>
18574 \end_layout
18575
18576 \end_inset
18577
18578  必要とされるLaTeXパッケージ名。パッケージは、LaTeXプリアンブル中で
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583
18584 \backslash
18585 usepackage{}
18586 \end_layout
18587
18588 \end_inset
18589
18590 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
18591 \end_layout
18592
18593 \begin_layout Description
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 TransformCommand
18599 \begin_inset space ~
18600 \end_inset
18601
18602 Rotate
18603 \begin_inset space ~
18604 \end_inset
18605
18606 RotationLatexCommand
18607 \end_layout
18608
18609 \end_inset
18610
18611  このコマンドは、回転用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18612 \end_layout
18613
18614 \begin_layout Description
18615 \begin_inset Flex Code
18616 status collapsed
18617
18618 \begin_layout Plain Layout
18619 TransformCommand
18620 \begin_inset space ~
18621 \end_inset
18622
18623 Resize
18624 \begin_inset space ~
18625 \end_inset
18626
18627 ResizeLatexCommand
18628 \end_layout
18629
18630 \end_inset
18631
18632  このコマンドは、伸縮用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18633 \end_layout
18634
18635 \begin_layout Description
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 TransformOption
18641 \begin_inset space ~
18642 \end_inset
18643
18644 Rotate
18645 \begin_inset space ~
18646 \end_inset
18647
18648 RotationLatexOption
18649 \end_layout
18650
18651 \end_inset
18652
18653  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18654 \end_layout
18655
18656 \begin_layout Description
18657 \begin_inset Flex Code
18658 status collapsed
18659
18660 \begin_layout Plain Layout
18661 TransformOption
18662 \begin_inset space ~
18663 \end_inset
18664
18665 Resize
18666 \begin_inset space ~
18667 \end_inset
18668
18669 ResizeLatexOption
18670 \end_layout
18671
18672 \end_inset
18673
18674  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18675 \end_layout
18676
18677 \begin_layout Description
18678 \begin_inset Flex Code
18679 status collapsed
18680
18681 \begin_layout Plain Layout
18682 TransformOption
18683 \begin_inset space ~
18684 \end_inset
18685
18686 Clip
18687 \begin_inset space ~
18688 \end_inset
18689
18690 ClipLatexOption
18691 \end_layout
18692
18693 \end_inset
18694
18695  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18696 \end_layout
18697
18698 \begin_layout Description
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703 TransformOption
18704 \begin_inset space ~
18705 \end_inset
18706
18707 Extra
18708 \begin_inset space ~
18709 \end_inset
18710
18711 ExtraLatexOption
18712 \end_layout
18713
18714 \end_inset
18715
18716  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
18717 \end_layout
18718
18719 \begin_layout Description
18720 \begin_inset Flex Code
18721 status collapsed
18722
18723 \begin_layout Plain Layout
18724 UpdateFormat
18725 \begin_inset space ~
18726 \end_inset
18727
18728 <書式>
18729 \end_layout
18730
18731 \end_inset
18732
18733  変換されたファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(
18734 \begin_inset Flex MenuItem
18735 status collapsed
18736
18737 \begin_layout Plain Layout
18738 ツール\SpecialChar \menuseparator
18739 設定:変換子
18740 \end_layout
18741
18742 \end_inset
18743
18744 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。
18745 \end_layout
18746
18747 \begin_layout Description
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 UpdateResult
18753 \begin_inset space ~
18754 \end_inset
18755
18756 <ファイル名>
18757 \end_layout
18758
18759 \end_inset
18760
18761  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
18762 \end_layout
18763
18764 \begin_layout Subsection
18765 プリアンブルの定義
18766 \end_layout
18767
18768 \begin_layout Standard
18769 外用ひな型設定ファイルには、
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 PreambleDef
18775 \end_layout
18776
18777 \end_inset
18778
18779  \SpecialChar \ldots{}
18780  
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 PreambleDefEnd
18786 \end_layout
18787
18788 \end_inset
18789
18790 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 Format
18796 \end_layout
18797
18798 \end_inset
18799
18800 部で使用することができます。
18801 \end_layout
18802
18803 \begin_layout Section
18804 代入機構
18805 \end_layout
18806
18807 \begin_layout Standard
18808 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
18809 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
18810 \end_layout
18811
18812 \begin_layout Standard
18813 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
18814 \end_layout
18815
18816 \begin_layout Standard
18817 使用できるマクロは以下の通りです。
18818 \end_layout
18819
18820 \begin_layout Description
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 $$AbsOrRelPathMaster
18826 \end_layout
18827
18828 \end_inset
18829
18830  LyX親文書への絶対ファイルパスないしは相対ファイルパス
18831 \end_layout
18832
18833 \begin_layout Description
18834 \begin_inset Flex Code
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 $$AbsOrRelPathParent
18839 \end_layout
18840
18841 \end_inset
18842
18843  LyX文書への絶対ファイルパスないしは相対ファイルパス
18844 \end_layout
18845
18846 \begin_layout Description
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 $$AbsPath
18852 \end_layout
18853
18854 \end_inset
18855
18856  絶対ファイルパス
18857 \end_layout
18858
18859 \begin_layout Description
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 $$Basename
18865 \end_layout
18866
18867 \end_inset
18868
18869  パスおよび拡張子を除いたファイル名
18870 \end_layout
18871
18872 \begin_layout Description
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 $$Contents(
18878 \begin_inset Quotes eld
18879 \end_inset
18880
18881 filename.ext
18882 \begin_inset Quotes erd
18883 \end_inset
18884
18885 )
18886 \end_layout
18887
18888 \end_inset
18889
18890  このマクロは、
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 filename.ext
18896 \end_layout
18897
18898 \end_inset
18899
18900 と云う名のファイルの中身を展開します。
18901 \end_layout
18902
18903 \begin_layout Description
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 $$Extension
18909 \end_layout
18910
18911 \end_inset
18912
18913  ファイル拡張子(点を含む)
18914 \end_layout
18915
18916 \begin_layout Description
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 $$FName
18922 \end_layout
18923
18924 \end_inset
18925
18926  外部素材ダイアログで指定されたファイルのファイル名。これはLyX文書への絶対パスでも良いですし、相対パスでも構いません。
18927 \end_layout
18928
18929 \begin_layout Description
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 $$FPath
18935 \end_layout
18936
18937 \end_inset
18938
18939  
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 $$FName
18945 \end_layout
18946
18947 \end_inset
18948
18949 のパス部分(LyX文書への絶対パス名か相対パス名)
18950 \end_layout
18951
18952 \begin_layout Description
18953 \begin_inset Flex Code
18954 status collapsed
18955
18956 \begin_layout Plain Layout
18957 $$RelPathMaster
18958 \end_layout
18959
18960 \end_inset
18961
18962  LyX親文書への相対ファイルパス
18963 \end_layout
18964
18965 \begin_layout Description
18966 \begin_inset Flex Code
18967 status collapsed
18968
18969 \begin_layout Plain Layout
18970 $$RelPathParent
18971 \end_layout
18972
18973 \end_inset
18974
18975  LyX文書への相対ファイルパス
18976 \end_layout
18977
18978 \begin_layout Description
18979 \begin_inset Flex Code
18980 status collapsed
18981
18982 \begin_layout Plain Layout
18983 $$Sysdir
18984 \end_layout
18985
18986 \end_inset
18987
18988  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、LyXに同梱されているヘルパースクリプト群を示したりするのに使用されます。
18989 \end_layout
18990
18991 \begin_layout Description
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 $$Tempname
18997 \end_layout
18998
18999 \end_inset
19000
19001  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
19002 \end_layout
19003
19004 \begin_layout Standard
19005 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010 $$AbsPath$$Basename$$Extension
19011 \end_layout
19012
19013 \end_inset
19014
19015 のようにして作ることができます。
19016 \end_layout
19017
19018 \begin_layout Standard
19019 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 Transform
19025 \end_layout
19026
19027 \end_inset
19028
19029 コマンドと
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 TransformCommand
19035 \end_layout
19036
19037 \end_inset
19038
19039 コマンドが有効にされている場合、
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 Product
19045 \end_layout
19046
19047 \end_inset
19048
19049 コマンドは、これらに加えて以下の代入もサポートします。
19050 \end_layout
19051
19052 \begin_layout Description
19053 \begin_inset Flex Code
19054 status collapsed
19055
19056 \begin_layout Plain Layout
19057 $$ResizeFront
19058 \end_layout
19059
19060 \end_inset
19061
19062  伸縮コマンドの前置部。
19063 \end_layout
19064
19065 \begin_layout Description
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 $$ResizeBack
19071 \end_layout
19072
19073 \end_inset
19074
19075  伸縮コマンドの後置部。
19076 \end_layout
19077
19078 \begin_layout Description
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 $$RotateFront
19084 \end_layout
19085
19086 \end_inset
19087
19088  回転コマンドの前置部。
19089 \end_layout
19090
19091 \begin_layout Description
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 $$RotateBack
19097 \end_layout
19098
19099 \end_inset
19100
19101  回転コマンドの後置部。
19102 \end_layout
19103
19104 \begin_layout Standard
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 Option
19110 \end_layout
19111
19112 \end_inset
19113
19114 コマンドの値に入れる文字列では、
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 Transform
19120 \end_layout
19121
19122 \end_inset
19123
19124 コマンドと
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 TransformOption
19130 \end_layout
19131
19132 \end_inset
19133
19134 コマンドが有効にされていれば、以下の代入もサポートされます。
19135 \end_layout
19136
19137 \begin_layout Description
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 $$Clip
19143 \end_layout
19144
19145 \end_inset
19146
19147  切り抜きオプション。
19148 \end_layout
19149
19150 \begin_layout Description
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 $$Extra
19156 \end_layout
19157
19158 \end_inset
19159
19160  追加オプション。
19161 \end_layout
19162
19163 \begin_layout Description
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 $$Resize
19169 \end_layout
19170
19171 \end_inset
19172
19173  伸縮オプション。
19174 \end_layout
19175
19176 \begin_layout Description
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 $$Rotate
19182 \end_layout
19183
19184 \end_inset
19185
19186  回転オプション。
19187 \end_layout
19188
19189 \begin_layout Standard
19190 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
19191 \end_layout
19192
19193 \begin_layout Enumerate
19194 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
19195 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
19196 \end_layout
19197
19198 \begin_layout Enumerate
19199 LaTeXは、相対ファイル名に関して、LyXや入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。LyXにとって相対ファイル名とは、常
19200 にこのファイル名が書かれている文書に対して相対的なものになります。LaTeXにとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一
19201 つの文書しかないときには同じですが、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、LaTeXに提示されるときに変換され
19202 なくてはならないのです。幸い、正しいマクロを選びさえすれば、これはLyXが自動的に行ってくれます。
19203 \end_layout
19204
19205 \begin_layout Standard
19206 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
19207 \end_layout
19208
19209 \begin_layout Itemize
19210 絶対パスが必要とされるときには
19211 \begin_inset Flex Code
19212 status collapsed
19213
19214 \begin_layout Plain Layout
19215 $$AbsPath
19216 \end_layout
19217
19218 \end_inset
19219
19220 を使う。
19221 \end_layout
19222
19223 \begin_layout Itemize
19224 代入された文字列が、LaTeXインプットの一種である場合には、
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229 $$AbsOrRelPathMaster
19230 \end_layout
19231
19232 \end_inset
19233
19234 を使う。
19235 \end_layout
19236
19237 \begin_layout Itemize
19238 それ以外ならば、ユーザの選択を尊重するために
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 $$AbsOrRelPathParent
19244 \end_layout
19245
19246 \end_inset
19247
19248 を使う。
19249 \end_layout
19250
19251 \begin_layout Standard
19252 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
19253 \begin_inset Flex Code
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
19258 \end_layout
19259
19260 \end_inset
19261
19262 というコマンドがあります。この場合、
19263 \begin_inset Flex Code
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 .pstex_t
19268 \end_layout
19269
19270 \end_inset
19271
19272 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
19273 \end_layout
19274
19275 \begin_layout Section
19276 セキュリティに関する論点
19277 \begin_inset CommandInset label
19278 LatexCommand label
19279 name "sec:セキュリティに関する論点"
19280
19281 \end_inset
19282
19283
19284 \end_layout
19285
19286 \begin_layout Standard
19287 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
19288 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
19289 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
19290 \end_layout
19291
19292 \begin_layout Standard
19293 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、LyXが安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発
19294 生しません。これは、外部プログラムが
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 system
19300 \end_layout
19301
19302 \end_inset
19303
19304 システムコールではなく、
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 execvp
19310 \end_layout
19311
19312 \end_inset
19313
19314 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
19315 \end_layout
19316
19317 \begin_layout Standard
19318 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
19319 できません。これは、LyXの安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安
19320 全なスクリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
19321 \end_layout
19322
19323 \begin_layout Standard
19324 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
19325 うになるため、一般的には、統御下に置いた状態で
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 execvp
19331 \end_layout
19332
19333 \end_inset
19334
19335 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
19336 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
19337 \emph on
19338 間違いなく
19339 \emph default
19340 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
19341 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されているLyXには、安全でないひな型は決して入ってい
19342 ません。
19343 \end_layout
19344
19345 \begin_layout Standard
19346 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
19347 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
19348 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、LyX開発チームに相談してみてください。そしてこの相談は、管理されていない環境下で
19349 これを使用する前に、行うようにしてください。
19350 \end_layout
19351
19352 \begin_layout Chapter
19353 \start_of_appendix
19354
19355 \lang english
19356 List of functions to be used in layouts
19357 \lang japanese
19358
19359 \begin_inset CommandInset label
19360 LatexCommand label
19361 name "chap:List-of-functions"
19362
19363 \end_inset
19364
19365
19366 \end_layout
19367
19368 \begin_layout Standard
19369 \align center
19370 \begin_inset Tabular
19371 <lyxtabular version="3" rows="10" columns="6">
19372 <features tabularvalignment="middle">
19373 <column alignment="left" valignment="top" width="14col%">
19374 <column alignment="left" valignment="top" width="14col%">
19375 <column alignment="left" valignment="top" width="14col%">
19376 <column alignment="left" valignment="top" width="14col%">
19377 <column alignment="left" valignment="top" width="14col%">
19378 <column alignment="left" valignment="top" width="14col%">
19379 <row>
19380 <cell alignment="left" valignment="top" usebox="none">
19381 \begin_inset Text
19382
19383 \begin_layout Plain Layout
19384 accents
19385 \end_layout
19386
19387 \end_inset
19388 </cell>
19389 <cell alignment="left" valignment="top" usebox="none">
19390 \begin_inset Text
19391
19392 \begin_layout Plain Layout
19393 bbding
19394 \end_layout
19395
19396 \end_inset
19397 </cell>
19398 <cell alignment="left" valignment="top" usebox="none">
19399 \begin_inset Text
19400
19401 \begin_layout Plain Layout
19402 dvipost
19403 \end_layout
19404
19405 \end_inset
19406 </cell>
19407 <cell alignment="left" valignment="top" usebox="none">
19408 \begin_inset Text
19409
19410 \begin_layout Plain Layout
19411 fancybox
19412 \end_layout
19413
19414 \end_inset
19415 </cell>
19416 <cell alignment="left" valignment="top" usebox="none">
19417 \begin_inset Text
19418
19419 \begin_layout Plain Layout
19420 hhline
19421 \end_layout
19422
19423 \end_inset
19424 </cell>
19425 <cell alignment="left" valignment="top" usebox="none">
19426 \begin_inset Text
19427
19428 \begin_layout Plain Layout
19429 latexsym
19430 \end_layout
19431
19432 \end_inset
19433 </cell>
19434 </row>
19435 <row>
19436 <cell alignment="left" valignment="top" usebox="none">
19437 \begin_inset Text
19438
19439 \begin_layout Plain Layout
19440 amsbsy
19441 \end_layout
19442
19443 \end_inset
19444 </cell>
19445 <cell alignment="left" valignment="top" usebox="none">
19446 \begin_inset Text
19447
19448 \begin_layout Plain Layout
19449 bm
19450 \end_layout
19451
19452 \end_inset
19453 </cell>
19454 <cell alignment="left" valignment="top" usebox="none">
19455 \begin_inset Text
19456
19457 \begin_layout Plain Layout
19458
19459 \end_layout
19460
19461 \end_inset
19462 </cell>
19463 <cell alignment="left" valignment="top" usebox="none">
19464 \begin_inset Text
19465
19466 \begin_layout Plain Layout
19467 feyn
19468 \end_layout
19469
19470 \end_inset
19471 </cell>
19472 <cell alignment="left" valignment="top" usebox="none">
19473 \begin_inset Text
19474
19475 \begin_layout Plain Layout
19476 hyperref
19477 \end_layout
19478
19479 \end_inset
19480 </cell>
19481 <cell alignment="left" valignment="top" usebox="none">
19482 \begin_inset Text
19483
19484 \begin_layout Plain Layout
19485 listings
19486 \end_layout
19487
19488 \end_inset
19489 </cell>
19490 </row>
19491 <row>
19492 <cell alignment="left" valignment="top" usebox="none">
19493 \begin_inset Text
19494
19495 \begin_layout Plain Layout
19496 amscd
19497 \end_layout
19498
19499 \end_inset
19500 </cell>
19501 <cell alignment="left" valignment="top" usebox="none">
19502 \begin_inset Text
19503
19504 \begin_layout Plain Layout
19505 booktabs
19506 \end_layout
19507
19508 \end_inset
19509 </cell>
19510 <cell alignment="left" valignment="top" usebox="none">
19511 \begin_inset Text
19512
19513 \begin_layout Plain Layout
19514 endnotes
19515 \end_layout
19516
19517 \end_inset
19518 </cell>
19519 <cell alignment="left" valignment="top" usebox="none">
19520 \begin_inset Text
19521
19522 \begin_layout Plain Layout
19523 fixltx2e
19524 \end_layout
19525
19526 \end_inset
19527 </cell>
19528 <cell alignment="left" valignment="top" usebox="none">
19529 \begin_inset Text
19530
19531 \begin_layout Plain Layout
19532
19533 \end_layout
19534
19535 \end_inset
19536 </cell>
19537 <cell alignment="left" valignment="top" usebox="none">
19538 \begin_inset Text
19539
19540 \begin_layout Plain Layout
19541 longtable
19542 \end_layout
19543
19544 \end_inset
19545 </cell>
19546 </row>
19547 <row>
19548 <cell alignment="left" valignment="top" usebox="none">
19549 \begin_inset Text
19550
19551 \begin_layout Plain Layout
19552 amsmath
19553 \end_layout
19554
19555 \end_inset
19556 </cell>
19557 <cell alignment="left" valignment="top" usebox="none">
19558 \begin_inset Text
19559
19560 \begin_layout Plain Layout
19561
19562 \end_layout
19563
19564 \end_inset
19565 </cell>
19566 <cell alignment="left" valignment="top" usebox="none">
19567 \begin_inset Text
19568
19569 \begin_layout Plain Layout
19570 enumitem
19571 \end_layout
19572
19573 \end_inset
19574 </cell>
19575 <cell alignment="left" valignment="top" usebox="none">
19576 \begin_inset Text
19577
19578 \begin_layout Plain Layout
19579 float
19580 \end_layout
19581
19582 \end_inset
19583 </cell>
19584 <cell alignment="left" valignment="top" usebox="none">
19585 \begin_inset Text
19586
19587 \begin_layout Plain Layout
19588 ifsym
19589 \end_layout
19590
19591 \end_inset
19592 </cell>
19593 <cell alignment="left" valignment="top" usebox="none">
19594 \begin_inset Text
19595
19596 \begin_layout Plain Layout
19597 lyxskak
19598 \end_layout
19599
19600 \end_inset
19601 </cell>
19602 </row>
19603 <row>
19604 <cell alignment="left" valignment="top" usebox="none">
19605 \begin_inset Text
19606
19607 \begin_layout Plain Layout
19608 amssymb
19609 \end_layout
19610
19611 \end_inset
19612 </cell>
19613 <cell alignment="left" valignment="top" usebox="none">
19614 \begin_inset Text
19615
19616 \begin_layout Plain Layout
19617 CJK
19618 \end_layout
19619
19620 \end_inset
19621 </cell>
19622 <cell alignment="left" valignment="top" usebox="none">
19623 \begin_inset Text
19624
19625 \begin_layout Plain Layout
19626 esint
19627 \end_layout
19628
19629 \end_inset
19630 </cell>
19631 <cell alignment="left" valignment="top" usebox="none">
19632 \begin_inset Text
19633
19634 \begin_layout Plain Layout
19635 framed
19636 \end_layout
19637
19638 \end_inset
19639 </cell>
19640 <cell alignment="left" valignment="top" usebox="none">
19641 \begin_inset Text
19642
19643 \begin_layout Plain Layout
19644 ifthen
19645 \end_layout
19646
19647 \end_inset
19648 </cell>
19649 <cell alignment="left" valignment="top" usebox="none">
19650 \begin_inset Text
19651
19652 \begin_layout Plain Layout
19653
19654 \end_layout
19655
19656 \end_inset
19657 </cell>
19658 </row>
19659 <row>
19660 <cell alignment="left" valignment="top" usebox="none">
19661 \begin_inset Text
19662
19663 \begin_layout Plain Layout
19664 amstext
19665 \end_layout
19666
19667 \end_inset
19668 </cell>
19669 <cell alignment="left" valignment="top" usebox="none">
19670 \begin_inset Text
19671
19672 \begin_layout Plain Layout
19673 color
19674 \end_layout
19675
19676 \end_inset
19677 </cell>
19678 <cell alignment="left" valignment="top" usebox="none">
19679 \begin_inset Text
19680
19681 \begin_layout Plain Layout
19682
19683 \end_layout
19684
19685 \end_inset
19686 </cell>
19687 <cell alignment="left" valignment="top" usebox="none">
19688 \begin_inset Text
19689
19690 \begin_layout Plain Layout
19691
19692 \end_layout
19693
19694 \end_inset
19695 </cell>
19696 <cell alignment="left" valignment="top" usebox="none">
19697 \begin_inset Text
19698
19699 \begin_layout Plain Layout
19700
19701 \end_layout
19702
19703 \end_inset
19704 </cell>
19705 <cell alignment="left" valignment="top" usebox="none">
19706 \begin_inset Text
19707
19708 \begin_layout Plain Layout
19709 makeidx
19710 \end_layout
19711
19712 \end_inset
19713 </cell>
19714 </row>
19715 <row>
19716 <cell alignment="left" valignment="top" usebox="none">
19717 \begin_inset Text
19718
19719 \begin_layout Plain Layout
19720 amsthm
19721 \end_layout
19722
19723 \end_inset
19724 </cell>
19725 <cell alignment="left" valignment="top" usebox="none">
19726 \begin_inset Text
19727
19728 \begin_layout Plain Layout
19729 covington
19730 \end_layout
19731
19732 \end_inset
19733 </cell>
19734 <cell alignment="left" valignment="top" usebox="none">
19735 \begin_inset Text
19736
19737 \begin_layout Plain Layout
19738
19739 \end_layout
19740
19741 \end_inset
19742 </cell>
19743 <cell alignment="left" valignment="top" usebox="none">
19744 \begin_inset Text
19745
19746 \begin_layout Plain Layout
19747 graphicx
19748 \end_layout
19749
19750 \end_inset
19751 </cell>
19752 <cell alignment="left" valignment="top" usebox="none">
19753 \begin_inset Text
19754
19755 \begin_layout Plain Layout
19756 jurabib
19757 \end_layout
19758
19759 \end_inset
19760 </cell>
19761 <cell alignment="left" valignment="top" usebox="none">
19762 \begin_inset Text
19763
19764 \begin_layout Plain Layout
19765 marvosym
19766 \end_layout
19767
19768 \end_inset
19769 </cell>
19770 </row>
19771 <row>
19772 <cell alignment="left" valignment="top" usebox="none">
19773 \begin_inset Text
19774
19775 \begin_layout Plain Layout
19776 array
19777 \end_layout
19778
19779 \end_inset
19780 </cell>
19781 <cell alignment="left" valignment="top" usebox="none">
19782 \begin_inset Text
19783
19784 \begin_layout Plain Layout
19785 csquotes
19786 \end_layout
19787
19788 \end_inset
19789 </cell>
19790 <cell alignment="left" valignment="top" usebox="none">
19791 \begin_inset Text
19792
19793 \begin_layout Plain Layout
19794
19795 \end_layout
19796
19797 \end_inset
19798 </cell>
19799 <cell alignment="left" valignment="top" usebox="none">
19800 \begin_inset Text
19801
19802 \begin_layout Plain Layout
19803
19804 \end_layout
19805
19806 \end_inset
19807 </cell>
19808 <cell alignment="left" valignment="top" usebox="none">
19809 \begin_inset Text
19810
19811 \begin_layout Plain Layout
19812
19813 \end_layout
19814
19815 \end_inset
19816 </cell>
19817 <cell alignment="left" valignment="top" usebox="none">
19818 \begin_inset Text
19819
19820 \begin_layout Plain Layout
19821 mathdesign
19822 \end_layout
19823
19824 \end_inset
19825 </cell>
19826 </row>
19827 <row>
19828 <cell alignment="left" valignment="top" usebox="none">
19829 \begin_inset Text
19830
19831 \begin_layout Plain Layout
19832 ascii
19833 \end_layout
19834
19835 \end_inset
19836 </cell>
19837 <cell alignment="left" valignment="top" usebox="none">
19838 \begin_inset Text
19839
19840 \begin_layout Plain Layout
19841
19842 \end_layout
19843
19844 \end_inset
19845 </cell>
19846 <cell alignment="left" valignment="top" usebox="none">
19847 \begin_inset Text
19848
19849 \begin_layout Plain Layout
19850
19851 \end_layout
19852
19853 \end_inset
19854 </cell>
19855 <cell alignment="left" valignment="top" usebox="none">
19856 \begin_inset Text
19857
19858 \begin_layout Plain Layout
19859 mathdesign
19860 \end_layout
19861
19862 \end_inset
19863 </cell>
19864 <cell alignment="left" valignment="top" usebox="none">
19865 \begin_inset Text
19866
19867 \begin_layout Plain Layout
19868
19869 \end_layout
19870
19871 \end_inset
19872 </cell>
19873 <cell alignment="left" valignment="top" usebox="none">
19874 \begin_inset Text
19875
19876 \begin_layout Plain Layout
19877 mathdots
19878 \end_layout
19879
19880 \end_inset
19881 </cell>
19882 </row>
19883 <row>
19884 <cell alignment="left" valignment="top" usebox="none">
19885 \begin_inset Text
19886
19887 \begin_layout Plain Layout
19888
19889 \end_layout
19890
19891 \end_inset
19892 </cell>
19893 <cell alignment="left" valignment="top" usebox="none">
19894 \begin_inset Text
19895
19896 \begin_layout Plain Layout
19897
19898 \end_layout
19899
19900 \end_inset
19901 </cell>
19902 <cell alignment="left" valignment="top" usebox="none">
19903 \begin_inset Text
19904
19905 \begin_layout Plain Layout
19906
19907 \end_layout
19908
19909 \end_inset
19910 </cell>
19911 <cell alignment="left" valignment="top" usebox="none">
19912 \begin_inset Text
19913
19914 \begin_layout Plain Layout
19915 mathdots
19916 \end_layout
19917
19918 \end_inset
19919 </cell>
19920 <cell alignment="left" valignment="top" usebox="none">
19921 \begin_inset Text
19922
19923 \begin_layout Plain Layout
19924
19925 \end_layout
19926
19927 \end_inset
19928 </cell>
19929 <cell alignment="left" valignment="top" usebox="none">
19930 \begin_inset Text
19931
19932 \begin_layout Plain Layout
19933 subfig
19934 \end_layout
19935
19936 \end_inset
19937 </cell>
19938 </row>
19939 </lyxtabular>
19940
19941 \end_inset
19942
19943
19944 \end_layout
19945
19946 \begin_layout Standard
19947 \align center
19948 \begin_inset Tabular
19949 <lyxtabular version="3" rows="10" columns="6">
19950 <features tabularvalignment="middle">
19951 <column alignment="left" valignment="top" width="14col%">
19952 <column alignment="left" valignment="top" width="14col%">
19953 <column alignment="left" valignment="top" width="14col%">
19954 <column alignment="left" valignment="top" width="14col%">
19955 <column alignment="left" valignment="top" width="14col%">
19956 <column alignment="left" valignment="top" width="14col%">
19957 <row>
19958 <cell alignment="left" valignment="top" usebox="none">
19959 \begin_inset Text
19960
19961 \begin_layout Plain Layout
19962 makeidx
19963 \end_layout
19964
19965 \end_inset
19966 </cell>
19967 <cell alignment="left" valignment="top" usebox="none">
19968 \begin_inset Text
19969
19970 \begin_layout Plain Layout
19971 pdfcolmk
19972 \end_layout
19973
19974 \end_inset
19975 </cell>
19976 <cell alignment="left" valignment="top" usebox="none">
19977 \begin_inset Text
19978
19979 \begin_layout Plain Layout
19980 setspace
19981 \end_layout
19982
19983 \end_inset
19984 </cell>
19985 <cell alignment="left" valignment="top" usebox="none">
19986 \begin_inset Text
19987
19988 \begin_layout Plain Layout
19989 textcomp
19990 \end_layout
19991
19992 \end_inset
19993 </cell>
19994 <cell alignment="left" valignment="top" usebox="none">
19995 \begin_inset Text
19996
19997 \begin_layout Plain Layout
19998 ulem
19999 \end_layout
20000
20001 \end_inset
20002 </cell>
20003 <cell alignment="left" valignment="top" usebox="none">
20004 \begin_inset Text
20005
20006 \begin_layout Plain Layout
20007 xargs
20008 \end_layout
20009
20010 \end_inset
20011 </cell>
20012 </row>
20013 <row>
20014 <cell alignment="left" valignment="top" usebox="none">
20015 \begin_inset Text
20016
20017 \begin_layout Plain Layout
20018 marvosym
20019 \end_layout
20020
20021 \end_inset
20022 </cell>
20023 <cell alignment="left" valignment="top" usebox="none">
20024 \begin_inset Text
20025
20026 \begin_layout Plain Layout
20027 pdfpages
20028 \end_layout
20029
20030 \end_inset
20031 </cell>
20032 <cell alignment="left" valignment="top" usebox="none">
20033 \begin_inset Text
20034
20035 \begin_layout Plain Layout
20036 slashed
20037 \end_layout
20038
20039 \end_inset
20040 </cell>
20041 <cell alignment="left" valignment="top" usebox="none">
20042 \begin_inset Text
20043
20044 \begin_layout Plain Layout
20045 textgreek
20046 \end_layout
20047
20048 \end_inset
20049 </cell>
20050 <cell alignment="left" valignment="top" usebox="none">
20051 \begin_inset Text
20052
20053 \begin_layout Plain Layout
20054 undertilde
20055 \end_layout
20056
20057 \end_inset
20058 </cell>
20059 <cell alignment="left" valignment="top" usebox="none">
20060 \begin_inset Text
20061
20062 \begin_layout Plain Layout
20063 xcolor
20064 \end_layout
20065
20066 \end_inset
20067 </cell>
20068 </row>
20069 <row>
20070 <cell alignment="left" valignment="top" usebox="none">
20071 \begin_inset Text
20072
20073 \begin_layout Plain Layout
20074 mathdesign
20075 \end_layout
20076
20077 \end_inset
20078 </cell>
20079 <cell alignment="left" valignment="top" usebox="none">
20080 \begin_inset Text
20081
20082 \begin_layout Plain Layout
20083 pifont
20084 \end_layout
20085
20086 \end_inset
20087 </cell>
20088 <cell alignment="left" valignment="top" usebox="none">
20089 \begin_inset Text
20090
20091 \begin_layout Plain Layout
20092 soul
20093 \end_layout
20094
20095 \end_inset
20096 </cell>
20097 <cell alignment="left" valignment="top" usebox="none">
20098 \begin_inset Text
20099
20100 \begin_layout Plain Layout
20101 tfrupee
20102 \end_layout
20103
20104 \end_inset
20105 </cell>
20106 <cell alignment="left" valignment="top" usebox="none">
20107 \begin_inset Text
20108
20109 \begin_layout Plain Layout
20110 units
20111 \end_layout
20112
20113 \end_inset
20114 </cell>
20115 <cell alignment="left" valignment="top" usebox="none">
20116 \begin_inset Text
20117
20118 \begin_layout Plain Layout
20119 xy
20120 \end_layout
20121
20122 \end_inset
20123 </cell>
20124 </row>
20125 <row>
20126 <cell alignment="left" valignment="top" usebox="none">
20127 \begin_inset Text
20128
20129 \begin_layout Plain Layout
20130 mathdots
20131 \end_layout
20132
20133 \end_inset
20134 </cell>
20135 <cell alignment="left" valignment="top" usebox="none">
20136 \begin_inset Text
20137
20138 \begin_layout Plain Layout
20139 pmboxdraw
20140 \end_layout
20141
20142 \end_inset
20143 </cell>
20144 <cell alignment="left" valignment="top" usebox="none">
20145 \begin_inset Text
20146
20147 \begin_layout Plain Layout
20148 splitidx
20149 \end_layout
20150
20151 \end_inset
20152 </cell>
20153 <cell alignment="left" valignment="top" usebox="none">
20154 \begin_inset Text
20155
20156 \begin_layout Plain Layout
20157 tipa
20158 \end_layout
20159
20160 \end_inset
20161 </cell>
20162 <cell alignment="left" valignment="top" usebox="none">
20163 \begin_inset Text
20164
20165 \begin_layout Plain Layout
20166 url
20167 \end_layout
20168
20169 \end_inset
20170 </cell>
20171 <cell alignment="left" valignment="top" usebox="none">
20172 \begin_inset Text
20173
20174 \begin_layout Plain Layout
20175
20176 \end_layout
20177
20178 \end_inset
20179 </cell>
20180 </row>
20181 <row>
20182 <cell alignment="left" valignment="top" usebox="none">
20183 \begin_inset Text
20184
20185 \begin_layout Plain Layout
20186 mathrsfs
20187 \end_layout
20188
20189 \end_inset
20190 </cell>
20191 <cell alignment="left" valignment="top" usebox="none">
20192 \begin_inset Text
20193
20194 \begin_layout Plain Layout
20195 polyglossia
20196 \end_layout
20197
20198 \end_inset
20199 </cell>
20200 <cell alignment="left" valignment="top" usebox="none">
20201 \begin_inset Text
20202
20203 \begin_layout Plain Layout
20204 subfig
20205 \end_layout
20206
20207 \end_inset
20208 </cell>
20209 <cell alignment="left" valignment="top" usebox="none">
20210 \begin_inset Text
20211
20212 \begin_layout Plain Layout
20213 tipx
20214 \end_layout
20215
20216 \end_inset
20217 </cell>
20218 <cell alignment="left" valignment="top" usebox="none">
20219 \begin_inset Text
20220
20221 \begin_layout Plain Layout
20222
20223 \end_layout
20224
20225 \end_inset
20226 </cell>
20227 <cell alignment="left" valignment="top" usebox="none">
20228 \begin_inset Text
20229
20230 \begin_layout Plain Layout
20231 yhmath
20232 \end_layout
20233
20234 \end_inset
20235 </cell>
20236 </row>
20237 <row>
20238 <cell alignment="left" valignment="top" usebox="none">
20239 \begin_inset Text
20240
20241 \begin_layout Plain Layout
20242 mhchem
20243 \end_layout
20244
20245 \end_inset
20246 </cell>
20247 <cell alignment="left" valignment="top" usebox="none">
20248 \begin_inset Text
20249
20250 \begin_layout Plain Layout
20251 prettyref
20252 \end_layout
20253
20254 \end_inset
20255 </cell>
20256 <cell alignment="left" valignment="top" usebox="none">
20257 \begin_inset Text
20258
20259 \begin_layout Plain Layout
20260 subscript
20261 \end_layout
20262
20263 \end_inset
20264 </cell>
20265 <cell alignment="left" valignment="top" usebox="none">
20266 \begin_inset Text
20267
20268 \begin_layout Plain Layout
20269 tone
20270 \end_layout
20271
20272 \end_inset
20273 </cell>
20274 <cell alignment="left" valignment="top" usebox="none">
20275 \begin_inset Text
20276
20277 \begin_layout Plain Layout
20278 varioref
20279 \end_layout
20280
20281 \end_inset
20282 </cell>
20283 <cell alignment="left" valignment="top" usebox="none">
20284 \begin_inset Text
20285
20286 \begin_layout Plain Layout
20287
20288 \end_layout
20289
20290 \end_inset
20291 </cell>
20292 </row>
20293 <row>
20294 <cell alignment="left" valignment="top" usebox="none">
20295 \begin_inset Text
20296
20297 \begin_layout Plain Layout
20298 multirow
20299 \end_layout
20300
20301 \end_inset
20302 </cell>
20303 <cell alignment="left" valignment="top" usebox="none">
20304 \begin_inset Text
20305
20306 \begin_layout Plain Layout
20307 pxfonts
20308 \end_layout
20309
20310 \end_inset
20311 </cell>
20312 <cell alignment="left" valignment="top" usebox="none">
20313 \begin_inset Text
20314
20315 \begin_layout Plain Layout
20316
20317 \end_layout
20318
20319 \end_inset
20320 </cell>
20321 <cell alignment="left" valignment="top" usebox="none">
20322 \begin_inset Text
20323
20324 \begin_layout Plain Layout
20325 txfonts
20326 \end_layout
20327
20328 \end_inset
20329 </cell>
20330 <cell alignment="left" valignment="top" usebox="none">
20331 \begin_inset Text
20332
20333 \begin_layout Plain Layout
20334 verbatim
20335 \end_layout
20336
20337 \end_inset
20338 </cell>
20339 <cell alignment="left" valignment="top" usebox="none">
20340 \begin_inset Text
20341
20342 \begin_layout Plain Layout
20343
20344 \end_layout
20345
20346 \end_inset
20347 </cell>
20348 </row>
20349 <row>
20350 <cell alignment="left" valignment="top" usebox="none">
20351 \begin_inset Text
20352
20353 \begin_layout Plain Layout
20354
20355 \end_layout
20356
20357 \end_inset
20358 </cell>
20359 <cell alignment="left" valignment="top" usebox="none">
20360 \begin_inset Text
20361
20362 \begin_layout Plain Layout
20363
20364 \end_layout
20365
20366 \end_inset
20367 </cell>
20368 <cell alignment="left" valignment="top" usebox="none">
20369 \begin_inset Text
20370
20371 \begin_layout Plain Layout
20372
20373 \end_layout
20374
20375 \end_inset
20376 </cell>
20377 <cell alignment="left" valignment="top" usebox="none">
20378 \begin_inset Text
20379
20380 \begin_layout Plain Layout
20381
20382 \end_layout
20383
20384 \end_inset
20385 </cell>
20386 <cell alignment="left" valignment="top" usebox="none">
20387 \begin_inset Text
20388
20389 \begin_layout Plain Layout
20390
20391 \end_layout
20392
20393 \end_inset
20394 </cell>
20395 <cell alignment="left" valignment="top" usebox="none">
20396 \begin_inset Text
20397
20398 \begin_layout Plain Layout
20399
20400 \end_layout
20401
20402 \end_inset
20403 </cell>
20404 </row>
20405 <row>
20406 <cell alignment="left" valignment="top" usebox="none">
20407 \begin_inset Text
20408
20409 \begin_layout Plain Layout
20410 natbib
20411 \end_layout
20412
20413 \end_inset
20414 </cell>
20415 <cell alignment="left" valignment="top" usebox="none">
20416 \begin_inset Text
20417
20418 \begin_layout Plain Layout
20419 rotating
20420 \end_layout
20421
20422 \end_inset
20423 </cell>
20424 <cell alignment="left" valignment="top" usebox="none">
20425 \begin_inset Text
20426
20427 \begin_layout Plain Layout
20428
20429 \end_layout
20430
20431 \end_inset
20432 </cell>
20433 <cell alignment="left" valignment="top" usebox="none">
20434 \begin_inset Text
20435
20436 \begin_layout Plain Layout
20437
20438 \end_layout
20439
20440 \end_inset
20441 </cell>
20442 <cell alignment="left" valignment="top" usebox="none">
20443 \begin_inset Text
20444
20445 \begin_layout Plain Layout
20446 wasysym
20447 \end_layout
20448
20449 \end_inset
20450 </cell>
20451 <cell alignment="left" valignment="top" usebox="none">
20452 \begin_inset Text
20453
20454 \begin_layout Plain Layout
20455
20456 \end_layout
20457
20458 \end_inset
20459 </cell>
20460 </row>
20461 <row>
20462 <cell alignment="left" valignment="top" usebox="none">
20463 \begin_inset Text
20464
20465 \begin_layout Plain Layout
20466 nomencl
20467 \end_layout
20468
20469 \end_inset
20470 </cell>
20471 <cell alignment="left" valignment="top" usebox="none">
20472 \begin_inset Text
20473
20474 \begin_layout Plain Layout
20475 rotfloat
20476 \end_layout
20477
20478 \end_inset
20479 </cell>
20480 <cell alignment="left" valignment="top" usebox="none">
20481 \begin_inset Text
20482
20483 \begin_layout Plain Layout
20484
20485 \end_layout
20486
20487 \end_inset
20488 </cell>
20489 <cell alignment="left" valignment="top" usebox="none">
20490 \begin_inset Text
20491
20492 \begin_layout Plain Layout
20493
20494 \end_layout
20495
20496 \end_inset
20497 </cell>
20498 <cell alignment="left" valignment="top" usebox="none">
20499 \begin_inset Text
20500
20501 \begin_layout Plain Layout
20502 wrapfig
20503 \end_layout
20504
20505 \end_inset
20506 </cell>
20507 <cell alignment="left" valignment="top" usebox="none">
20508 \begin_inset Text
20509
20510 \begin_layout Plain Layout
20511
20512 \end_layout
20513
20514 \end_inset
20515 </cell>
20516 </row>
20517 </lyxtabular>
20518
20519 \end_inset
20520
20521
20522 \end_layout
20523
20524 \begin_layout Chapter
20525
20526 \lang english
20527 Names of available colors to be used in layouts
20528 \begin_inset CommandInset label
20529 LatexCommand label
20530 name "chap:Names-of-colors"
20531
20532 \end_inset
20533
20534
20535 \end_layout
20536
20537 \begin_layout Standard
20538
20539 \lang english
20540 The colors listed here are the standard colors and the those that you can
20541  adjust in the LyX preferences.
20542 \end_layout
20543
20544 \begin_layout Description
20545
20546 \lang english
20547 none
20548 \family roman
20549 \series medium
20550 \shape up
20551 \size normal
20552 \emph off
20553 \bar no
20554 \strikeout off
20555 \uuline off
20556 \uwave off
20557 \noun off
20558 \color none
20559  No particular color -- clear or default
20560 \end_layout
20561
20562 \begin_layout Description
20563
20564 \lang english
20565 black
20566 \end_layout
20567
20568 \begin_layout Description
20569
20570 \lang english
20571 white
20572 \end_layout
20573
20574 \begin_layout Description
20575
20576 \lang english
20577 red
20578 \end_layout
20579
20580 \begin_layout Description
20581
20582 \lang english
20583 green
20584 \end_layout
20585
20586 \begin_layout Description
20587
20588 \lang english
20589 blue
20590 \end_layout
20591
20592 \begin_layout Description
20593
20594 \lang english
20595 cyan
20596 \end_layout
20597
20598 \begin_layout Description
20599
20600 \lang english
20601 magenta
20602 \end_layout
20603
20604 \begin_layout Description
20605
20606 \lang english
20607 yellow
20608 \end_layout
20609
20610 \begin_layout Description
20611
20612 \lang english
20613 cursor Cursor color
20614 \end_layout
20615
20616 \begin_layout Description
20617
20618 \lang english
20619 background Background color
20620 \end_layout
20621
20622 \begin_layout Description
20623
20624 \lang english
20625 foreground Foreground color
20626 \end_layout
20627
20628 \begin_layout Description
20629
20630 \lang english
20631 selection Background color of selected text
20632 \end_layout
20633
20634 \begin_layout Description
20635
20636 \lang english
20637 selectiontext Foreground color of selected text
20638 \end_layout
20639
20640 \begin_layout Description
20641
20642 \lang english
20643 latex Text color in LaTeX mode 
20644 \end_layout
20645
20646 \begin_layout Description
20647
20648 \lang english
20649 preview The color used for previews
20650 \end_layout
20651
20652 \begin_layout Description
20653
20654 \lang english
20655 inlinecompletion Inline completion color 
20656 \end_layout
20657
20658 \begin_layout Description
20659
20660 \lang english
20661 nonunique_inlinecompletion Inline completion color for the non-unique part
20662 \end_layout
20663
20664 \begin_layout Description
20665
20666 \lang english
20667 notelabel Label color for notes
20668 \end_layout
20669
20670 \begin_layout Description
20671
20672 \lang english
20673 notebg Background color of notes
20674 \end_layout
20675
20676 \begin_layout Description
20677
20678 \lang english
20679 commentlabel Label color for comments
20680 \end_layout
20681
20682 \begin_layout Description
20683
20684 \lang english
20685 commentbg Background color of comments
20686 \end_layout
20687
20688 \begin_layout Description
20689
20690 \lang english
20691 greyedoutlabel Label color for greyedout insets
20692 \end_layout
20693
20694 \begin_layout Description
20695
20696 \lang english
20697 greyedouttext Color for greyedout inset text
20698 \end_layout
20699
20700 \begin_layout Description
20701
20702 \lang english
20703 greyedoutbg Background color of greyedout inset
20704 \end_layout
20705
20706 \begin_layout Description
20707
20708 \lang english
20709 shadedbg Background color of shaded box
20710 \end_layout
20711
20712 \begin_layout Description
20713
20714 \lang english
20715 listingsbg Background color of listings inset
20716 \end_layout
20717
20718 \begin_layout Description
20719
20720 \lang english
20721 branchlabel Label color for branches
20722 \end_layout
20723
20724 \begin_layout Description
20725
20726 \lang english
20727 footlabel Label color for footnotes
20728 \end_layout
20729
20730 \begin_layout Description
20731
20732 \lang english
20733 indexlabel Label color for index insets 
20734 \end_layout
20735
20736 \begin_layout Description
20737
20738 \lang english
20739 marginlabel Label color for margin notes 
20740 \end_layout
20741
20742 \begin_layout Description
20743
20744 \lang english
20745 phantomtext Text color for phantom insets 
20746 \end_layout
20747
20748 \begin_layout Description
20749
20750 \lang english
20751 urllabel Label color for URL insets
20752 \end_layout
20753
20754 \begin_layout Description
20755
20756 \lang english
20757 urltext Color for URL inset text
20758 \end_layout
20759
20760 \begin_layout Description
20761
20762 \lang english
20763 depthbar Color for the depth bars in the margin
20764 \end_layout
20765
20766 \begin_layout Description
20767
20768 \lang english
20769 language Color for marking foreign language words
20770 \end_layout
20771
20772 \begin_layout Description
20773
20774 \lang english
20775 command Text color for command insets
20776 \end_layout
20777
20778 \begin_layout Description
20779
20780 \lang english
20781 commandbg Background color for command insets 
20782 \end_layout
20783
20784 \begin_layout Description
20785
20786 \lang english
20787 commandframe Frame color for command insets
20788 \end_layout
20789
20790 \begin_layout Description
20791
20792 \lang english
20793 special Special chars text color
20794 \end_layout
20795
20796 \begin_layout Description
20797
20798 \lang english
20799 graphicsbg Graphics inset background color 
20800 \end_layout
20801
20802 \begin_layout Description
20803
20804 \lang english
20805 math Math inset text color 
20806 \end_layout
20807
20808 \begin_layout Description
20809
20810 \lang english
20811 mathbg Math inset background color
20812 \end_layout
20813
20814 \begin_layout Description
20815
20816 \lang english
20817 mathmacrobg Macro math inset background color
20818 \end_layout
20819
20820 \begin_layout Description
20821
20822 \lang english
20823 mathmacrohoverbg Macro math inset background color hovered
20824 \end_layout
20825
20826 \begin_layout Description
20827
20828 \lang english
20829 mathmacrolabel Macro math label color
20830 \end_layout
20831
20832 \begin_layout Description
20833
20834 \lang english
20835 mathmacroframe Macro math frame color
20836 \end_layout
20837
20838 \begin_layout Description
20839
20840 \lang english
20841 mathmacroblend Macro math blended color
20842 \end_layout
20843
20844 \begin_layout Description
20845
20846 \lang english
20847 mathmacrooldarg Macro template color for old parameters 
20848 \end_layout
20849
20850 \begin_layout Description
20851
20852 \lang english
20853 mathmacronewarg Macro template color for new parameters
20854 \end_layout
20855
20856 \begin_layout Description
20857
20858 \lang english
20859 mathframe Math inset frame color under focus 
20860 \end_layout
20861
20862 \begin_layout Description
20863
20864 \lang english
20865 mathcorners Math inset frame color not under focus
20866 \end_layout
20867
20868 \begin_layout Description
20869
20870 \lang english
20871 mathline Math line color
20872 \end_layout
20873
20874 \begin_layout Description
20875
20876 \lang english
20877 collapsable Collapsable insets text 
20878 \end_layout
20879
20880 \begin_layout Description
20881
20882 \lang english
20883 collapsableframe Collapsable insets frame
20884 \end_layout
20885
20886 \begin_layout Description
20887
20888 \lang english
20889 insetbg Inset marker background color
20890 \end_layout
20891
20892 \begin_layout Description
20893
20894 \lang english
20895 insetframe Inset marker frame color
20896 \end_layout
20897
20898 \begin_layout Description
20899
20900 \lang english
20901 error Error box text color
20902 \end_layout
20903
20904 \begin_layout Description
20905
20906 \lang english
20907 eolmarker End of line marker color
20908 \end_layout
20909
20910 \begin_layout Description
20911
20912 \lang english
20913 added_space Added space colour
20914 \end_layout
20915
20916 \begin_layout Description
20917
20918 \lang english
20919 appendix Appendix marker color
20920 \end_layout
20921
20922 \begin_layout Description
20923
20924 \lang english
20925 changebar Changebar color
20926 \end_layout
20927
20928 \begin_layout Description
20929
20930 \lang english
20931 deletedtext Deleted text color
20932 \end_layout
20933
20934 \begin_layout Description
20935
20936 \lang english
20937 addedtext Added text color
20938 \end_layout
20939
20940 \begin_layout Description
20941
20942 \lang english
20943 changedtextauthor1 Changed text color author 1
20944 \end_layout
20945
20946 \begin_layout Description
20947
20948 \lang english
20949 changedtextauthor2 Changed text color author 2
20950 \end_layout
20951
20952 \begin_layout Description
20953
20954 \lang english
20955 changedtextauthor3 Changed text color author 3
20956 \end_layout
20957
20958 \begin_layout Description
20959
20960 \lang english
20961 changedtextauthor4 Changed text color author 4
20962 \end_layout
20963
20964 \begin_layout Description
20965
20966 \lang english
20967 changedtextauthor5 Changed text color author 5
20968 \end_layout
20969
20970 \begin_layout Description
20971
20972 \lang english
20973 deletedtextmodifier Deleted text modifying color
20974 \end_layout
20975
20976 \begin_layout Description
20977
20978 \lang english
20979 tabularline Table line color
20980 \end_layout
20981
20982 \begin_layout Description
20983
20984 \lang english
20985 tabularonoffline Table line color 
20986 \end_layout
20987
20988 \begin_layout Description
20989
20990 \lang english
20991 bottomarea Bottom area color
20992 \end_layout
20993
20994 \begin_layout Description
20995
20996 \lang english
20997 newpage New page color 
20998 \end_layout
20999
21000 \begin_layout Description
21001
21002 \lang english
21003 pagebreak Page break color
21004 \end_layout
21005
21006 \begin_layout Description
21007
21008 \lang english
21009 buttonframe Color used for button frame
21010 \end_layout
21011
21012 \begin_layout Description
21013
21014 \lang english
21015 buttonbg Color used for bottom background
21016 \end_layout
21017
21018 \begin_layout Description
21019
21020 \lang english
21021 buttonhoverbg Color used for buttom under focus 
21022 \end_layout
21023
21024 \begin_layout Description
21025
21026 \lang english
21027 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
21028  
21029 \end_layout
21030
21031 \begin_layout Description
21032
21033 \lang english
21034 previewframe Preview frame color
21035 \end_layout
21036
21037 \begin_layout Description
21038
21039 \lang english
21040 inherit Color is inherited 
21041 \end_layout
21042
21043 \begin_layout Description
21044
21045 \lang english
21046 regexpframe Color for regexp frame
21047 \end_layout
21048
21049 \begin_layout Description
21050
21051 \lang english
21052 ignore For ignoring updates of a color
21053 \end_layout
21054
21055 \end_body
21056 \end_document