]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Customization.lyx: some more revision
[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 35
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が古い書式のレイアウトファイルを読み
6146 込むと、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 Enumerate
6161
6162 \lang english
6163 rename the file 
6164 \begin_inset Flex Code
6165 status collapsed
6166
6167 \begin_layout Plain Layout
6168
6169 \lang english
6170 myclass.layout
6171 \end_layout
6172
6173 \end_inset
6174
6175  to 
6176 \begin_inset Flex Code
6177 status collapsed
6178
6179 \begin_layout Plain Layout
6180
6181 \lang english
6182 myclass.old
6183 \end_layout
6184
6185 \end_inset
6186
6187
6188 \end_layout
6189
6190 \begin_layout Enumerate
6191
6192 \lang english
6193 Call the command
6194 \lang japanese
6195
6196 \begin_inset Newline newline
6197 \end_inset
6198
6199
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6205 \end_layout
6206
6207 \end_inset
6208
6209
6210 \begin_inset Newline newline
6211 \end_inset
6212
6213
6214 \lang english
6215 where 
6216 \begin_inset Flex Code
6217 status collapsed
6218
6219 \begin_layout Plain Layout
6220
6221 \lang english
6222 LyXDir
6223 \end_layout
6224
6225 \end_inset
6226
6227  is the name of your LyX system directory.
6228 \end_layout
6229
6230 \begin_layout Standard
6231 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6232 \end_layout
6233
6234 \begin_layout Section
6235 \begin_inset CommandInset label
6236 LatexCommand label
6237 name "sec:テキストクラス"
6238
6239 \end_inset
6240
6241 レイアウトファイルの書式
6242 \end_layout
6243
6244 \begin_layout Standard
6245 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6246 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6247 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6248 て、もう一杯大人向け飲料をどうぞ。適量ね。
6249 \lang english
6250 It becomes easier if you use existing layouts of LyX as examples/reference
6251  or if you modify an existing layout to your needs.
6252 \end_layout
6253
6254 \begin_layout Standard
6255 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6256 \begin_inset Flex Code
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 Style
6261 \end_layout
6262
6263 \end_inset
6264
6265
6266 \begin_inset Flex Code
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 style
6271 \end_layout
6272
6273 \end_inset
6274
6275
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 StYlE
6281 \end_layout
6282
6283 \end_inset
6284
6285 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6286 \begin_inset Flex Code
6287 status collapsed
6288
6289 \begin_layout Plain Layout
6290
6291 \emph on
6292 強調
6293 \end_layout
6294
6295 \end_inset
6296
6297 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 浮動小数点型=
6303 \emph on
6304 既定値
6305 \end_layout
6306
6307 \end_inset
6308
6309 のように表示されます。
6310 \end_layout
6311
6312 \begin_layout Subsection
6313 文書クラス宣言
6314 \end_layout
6315
6316 \begin_layout Standard
6317 レイアウトファイル中の
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 #
6323 \end_layout
6324
6325 \end_inset
6326
6327 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 *.layout
6333 \end_layout
6334
6335 \end_inset
6336
6337 ファイルは、以下のような行で始めなくてはならないのです。
6338 \end_layout
6339
6340 \begin_layout LyX-Code
6341
6342 \size small
6343 #% Do not delete the line below; configure depends on this 
6344 \end_layout
6345
6346 \begin_layout LyX-Code
6347
6348 \size small
6349 #  
6350 \backslash
6351 DeclareLaT
6352 \size default
6353
6354 \begin_inset ERT
6355 status collapsed
6356
6357 \begin_layout Plain Layout
6358
6359 {}
6360 \end_layout
6361
6362 \end_inset
6363
6364
6365 \size small
6366 eXClass{article}
6367 \end_layout
6368
6369 \begin_layout Standard
6370 この2行目は、LyXを初期設定や(再)設定するときに用いられるのです。このレイアウトファイルは、LaTeXスクリプト
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375 chkconfig.ltx
6376 \end_layout
6377
6378 \end_inset
6379
6380 が、
6381 \begin_inset Flex Code
6382 status collapsed
6383
6384 \begin_layout Plain Layout
6385 #
6386 \end_layout
6387
6388 \end_inset
6389
6390 を無視する特別なモードで読み込みます。1行目は単なるLaTeXコメントですが、2行目にはテキストクラスの宣言が書かれています。これらの行が
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 article.layout
6396 \end_layout
6397
6398 \end_inset
6399
6400 と名付けられたファイルにあると、
6401 \begin_inset Flex Code
6402 status collapsed
6403
6404 \begin_layout Plain Layout
6405 article
6406 \end_layout
6407
6408 \end_inset
6409
6410 (レイアウトファイル名)という名称のテキストクラスを定義し、LaTeX文書クラス
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 article.cls
6416 \end_layout
6417
6418 \end_inset
6419
6420 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「article」という文字列は、
6421 \begin_inset Flex MenuItem
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425 文書\SpecialChar \menuseparator
6426 設定
6427 \end_layout
6428
6429 \end_inset
6430
6431 ダイアログのテキストクラスの説明に使用されます。
6432 \end_layout
6433
6434 \begin_layout Standard
6435 節見出し表示に変更を加えた、
6436 \begin_inset Flex Code
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440 article.cls
6441 \end_layout
6442
6443 \end_inset
6444
6445 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6446 \begin_inset Flex Code
6447 status collapsed
6448
6449 \begin_layout Plain Layout
6450 myarticle.layout
6451 \end_layout
6452
6453 \end_inset
6454
6455 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6456 \end_layout
6457
6458 \begin_layout LyX-Code
6459
6460 \size small
6461 #% Do not delete the line below; configure depends on this 
6462 \end_layout
6463
6464 \begin_layout LyX-Code
6465
6466 \size small
6467 #  
6468 \backslash
6469 DeclareLaT
6470 \size default
6471
6472 \begin_inset ERT
6473 status collapsed
6474
6475 \begin_layout Plain Layout
6476
6477 {}
6478 \end_layout
6479
6480 \end_inset
6481
6482
6483 \size small
6484 eXClass[article]{article (with my own headings)}
6485 \end_layout
6486
6487 \begin_layout Standard
6488 これは、LaTeX文書クラス
6489 \begin_inset Flex Code
6490 status collapsed
6491
6492 \begin_layout Plain Layout
6493 article.cls
6494 \end_layout
6495
6496 \end_inset
6497
6498 に関連づけられ、「article (with my own headings)」と表示される、
6499 \begin_inset Flex Code
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503 myarticle
6504 \end_layout
6505
6506 \end_inset
6507
6508 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6509 \end_layout
6510
6511 \begin_layout LyX-Code
6512
6513 \size small
6514 #% Do not delete the line below; configure depends on this 
6515 \end_layout
6516
6517 \begin_layout LyX-Code
6518
6519 \size small
6520 #  
6521 \backslash
6522 DeclareLaT
6523 \size default
6524
6525 \begin_inset ERT
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529
6530 {}
6531 \end_layout
6532
6533 \end_inset
6534
6535
6536 \size small
6537 eXClass[article,foo.sty]{article (with my own headings)}
6538 \end_layout
6539
6540 \begin_layout Standard
6541 これは、このテキストクラスが
6542 \begin_inset Flex Code
6543 status collapsed
6544
6545 \begin_layout Plain Layout
6546 foo.sty
6547 \end_layout
6548
6549 \end_inset
6550
6551 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6552 \end_layout
6553
6554 \begin_layout LyX-Code
6555
6556 \size small
6557 #% Do not delete the line below; configure depends on this 
6558 \end_layout
6559
6560 \begin_layout LyX-Code
6561
6562 \size small
6563
6564 \backslash
6565 DeclareDocBookClass[article]{SGML (DocBook article)}
6566 \end_layout
6567
6568 \begin_layout Standard
6569 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6570 \end_layout
6571
6572 \begin_layout Standard
6573 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6574 \end_layout
6575
6576 \begin_layout LyX-Code
6577
6578 \size small
6579 #  
6580 \backslash
6581 DeclareLaT
6582 \size default
6583
6584 \begin_inset ERT
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588
6589 {}
6590 \end_layout
6591
6592 \end_inset
6593
6594
6595 \size small
6596 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6597 \end_layout
6598
6599 \begin_layout Standard
6600 ここで「クラス」は、LaTeXクラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、LyXは単純に
6601 、クラスファイル名がレイアウトファイル名と同じであると仮定します。
6602 \end_layout
6603
6604 \begin_layout Standard
6605 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6606 \begin_inset Flex Code
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 L
6611 \begin_inset ERT
6612 status collapsed
6613
6614 \begin_layout Plain Layout
6615
6616 {}
6617 \end_layout
6618
6619 \end_inset
6620
6621 yXDir/layouts/
6622 \end_layout
6623
6624 \end_inset
6625
6626
6627 \begin_inset Flex Code
6628 status collapsed
6629
6630 \begin_layout Plain Layout
6631 UserDir/layouts
6632 \end_layout
6633
6634 \end_inset
6635
6636 にコピーし、
6637 \begin_inset Flex MenuItem
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 ツール\SpecialChar \menuseparator
6642 再初期設定
6643 \end_layout
6644
6645 \end_inset
6646
6647 を実行し、LyXを終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
6648 \end_layout
6649
6650 \begin_layout Standard
6651 レイアウトファイルが導入されたならば、これを編集して、再初期設定したりLyXを再起動したりすることなく、その変更を確認することができます
6652 \begin_inset Foot
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 第1.6版よりも前のLyXでは、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度にLyXを再起動しなくてはならな
6657 かったので、レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
6658 \end_layout
6659
6660 \end_inset
6661
6662 。LyX関数
6663 \begin_inset Flex MenuItem
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 layout-reload
6668 \end_layout
6669
6670 \end_inset
6671
6672 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
6673 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
6674 \end_layout
6675
6676 \begin_layout Standard
6677
6678 \emph on
6679 注意
6680 \emph default
6681
6682 \begin_inset Flex MenuItem
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 layout-reload
6687 \end_layout
6688
6689 \end_inset
6690
6691 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
6692 \emph on
6693 強く
6694 \emph default
6695 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
6696 \emph on
6697 強く
6698 \emph default
6699 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、LyXは
6700 現在のレイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
6701 \begin_inset Foot
6702 status collapsed
6703
6704 \begin_layout Plain Layout
6705 非常に悪質な文法エラーの場合には、LyXが終了してしまうことさえあります。これは、ある種のエラーでは、LyXがレイアウト情報を全く読めなくなる可能性があるからで
6706 す。ご注意ください。
6707 \end_layout
6708
6709 \end_inset
6710
6711 。LyX開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
6712 \begin_inset Foot
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
6717 \end_layout
6718
6719 \end_inset
6720
6721
6722 \end_layout
6723
6724 \begin_layout Subsection
6725 モジュール宣言
6726 \end_layout
6727
6728 \begin_layout Standard
6729 モジュールは、以下のような行で始まらなくてはなりません。
6730 \end_layout
6731
6732 \begin_layout LyX-Code
6733 #
6734 \backslash
6735 DeclareL
6736 \begin_inset ERT
6737 status collapsed
6738
6739 \begin_layout Plain Layout
6740
6741 {}
6742 \end_layout
6743
6744 \end_inset
6745
6746 yXModule[endnotes.sty]{Endnotes} 
6747 \end_layout
6748
6749 \begin_layout Standard
6750 波括弧内に入っている必須引数はモジュール名で、これは
6751 \begin_inset Flex MenuItem
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755 文書\SpecialChar \menuseparator
6756 設定
6757 \end_layout
6758
6759 \end_inset
6760
6761 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存するLaTeXパッケージをすべて宣言します。また、非必須引数として、
6762 \begin_inset Flex Code
6763 status collapsed
6764
6765 \begin_layout Plain Layout
6766 変換元->変換先
6767 \end_layout
6768
6769 \end_inset
6770
6771 の形を使用することができます。これは、
6772 \begin_inset Flex Code
6773 status collapsed
6774
6775 \begin_layout Plain Layout
6776 変換元
6777 \end_layout
6778
6779 \end_inset
6780
6781 形式から
6782 \begin_inset Flex Code
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786 変換先
6787 \end_layout
6788
6789 \end_inset
6790
6791 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
6792 \end_layout
6793
6794 \begin_layout Standard
6795 それから、以下のようなモジュール宣言を行います。
6796 \lang english
6797
6798 \begin_inset Foot
6799 status open
6800
6801 \begin_layout Plain Layout
6802
6803 \lang english
6804 Preferably in English if the module should be published with LyX.
6805  This description will appear in the list of messages to be translated and
6806  will be thus translated with the next interface update.
6807 \end_layout
6808
6809 \end_inset
6810
6811
6812 \end_layout
6813
6814 \begin_layout LyX-Code
6815 #DescriptionBegin 
6816 \end_layout
6817
6818 \begin_layout LyX-Code
6819 #Adds an endnote command, in addition to footnotes.
6820  
6821 \end_layout
6822
6823 \begin_layout LyX-Code
6824 #You will need to add  
6825 \backslash
6826 theendnotes in T
6827 \begin_inset ERT
6828 status collapsed
6829
6830 \begin_layout Plain Layout
6831
6832 {}
6833 \end_layout
6834
6835 \end_inset
6836
6837 eX code where you 
6838 \end_layout
6839
6840 \begin_layout LyX-Code
6841 #want the endnotes to appear.
6842  
6843 \end_layout
6844
6845 \begin_layout LyX-Code
6846 #DescriptionEnd 
6847 \end_layout
6848
6849 \begin_layout LyX-Code
6850 #Requires: somemodule | othermodule
6851 \end_layout
6852
6853 \begin_layout LyX-Code
6854 #Excludes: badmodule
6855 \end_layout
6856
6857 \begin_layout Standard
6858 ここで説明(Description)は、
6859 \begin_inset Flex MenuItem
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 文書\SpecialChar \menuseparator
6864 設定
6865 \end_layout
6866
6867 \end_inset
6868
6869 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 Requires
6875 \end_layout
6876
6877 \end_inset
6878
6879 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
6880 \begin_inset Flex Code
6881 status collapsed
6882
6883 \begin_layout Plain Layout
6884 Excludes
6885 \end_layout
6886
6887 \end_inset
6888
6889 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
6890 イプ記号「|」で区切らなくてはなりません。
6891 \begin_inset Flex Code
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895 Requires
6896 \end_layout
6897
6898 \end_inset
6899
6900 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
6901 \begin_inset Flex Code
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 Requires
6906 \end_layout
6907
6908 \end_inset
6909
6910 に指定されたモジュールのうち、
6911 \emph on
6912 少なくとも一つ
6913 \emph default
6914 が使用されていればよいということです。同様に、
6915 \begin_inset Flex Code
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919 Excludes
6920 \end_layout
6921
6922 \end_inset
6923
6924 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
6925 \begin_inset Flex Code
6926 status collapsed
6927
6928 \begin_layout Plain Layout
6929 .module
6930 \end_layout
6931
6932 \end_inset
6933
6934 拡張子を除いたファイル名で認識されることに注意してください。つまり
6935 \begin_inset Flex Code
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 somemodule
6940 \end_layout
6941
6942 \end_inset
6943
6944 とは、実のところ
6945 \begin_inset Flex Code
6946 status collapsed
6947
6948 \begin_layout Plain Layout
6949 somemodule.module
6950 \end_layout
6951
6952 \end_inset
6953
6954 のことです。
6955 \end_layout
6956
6957 \begin_layout Subsection
6958 書式番号
6959 \end_layout
6960
6961 \begin_layout Standard
6962 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
6963 \end_layout
6964
6965 \begin_layout Description
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Format
6971 \end_layout
6972
6973 \end_inset
6974
6975  [
6976 \begin_inset Flex Code
6977 status collapsed
6978
6979 \begin_layout Plain Layout
6980 整数型
6981 \end_layout
6982
6983 \end_inset
6984
6985 ] このレイアウトファイルの書式
6986 \end_layout
6987
6988 \begin_layout Standard
6989 このタグはLyX
6990 \begin_inset space ~
6991 \end_inset
6992
6993 1.4.0で導入されました。LyX
6994 \begin_inset space ~
6995 \end_inset
6996
6997 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。LyX現行版のファイル形式は、書式35です。しかし、LyXの各版は、旧
6998 版のLyXで作成されたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
6999 \end_layout
7000
7001 \begin_layout Subsection
7002 \begin_inset CommandInset label
7003 LatexCommand label
7004 name "sub:汎用テキストクラスパラメータ"
7005
7006 \end_inset
7007
7008 汎用テキストクラスパラメータ
7009 \end_layout
7010
7011 \begin_layout Standard
7012 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7013 \begin_inset Flex Code
7014 status collapsed
7015
7016 \begin_layout Plain Layout
7017 .layout
7018 \end_layout
7019
7020 \end_inset
7021
7022 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7023 \emph on
7024 ありません
7025 \emph default
7026 。モジュールには、すべてのレイアウトタグを使用することができます)。
7027 \end_layout
7028
7029 \begin_layout Description
7030 \begin_inset Flex Code
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 AddToHTMLPreamble
7035 \end_layout
7036
7037 \end_inset
7038
7039  この文書クラスがXHTMLに出力されるときに、
7040 \begin_inset Flex Code
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 <head>
7045 \end_layout
7046
7047 \end_inset
7048
7049 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7050 \begin_inset Flex Code
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 <head>
7055 \end_layout
7056
7057 \end_inset
7058
7059 に出力するものであれば、何でも使用することができます。「
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 EndPreamble
7065 \end_layout
7066
7067 \end_inset
7068
7069 」で閉じる必要があります。
7070 \end_layout
7071
7072 \begin_layout Description
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 AddToPreamble
7078 \end_layout
7079
7080 \end_inset
7081
7082  文書プリアンブルに書き加えられる情報です。「
7083 \begin_inset Flex Code
7084 status collapsed
7085
7086 \begin_layout Plain Layout
7087 EndPreamble
7088 \end_layout
7089
7090 \end_inset
7091
7092 」で閉じる必要があります。
7093 \end_layout
7094
7095 \begin_layout Description
7096 \begin_inset Flex Code
7097 status collapsed
7098
7099 \begin_layout Plain Layout
7100 CiteFormat
7101 \end_layout
7102
7103 \end_inset
7104
7105  書誌情報の表示に使う書式を定義します。詳細については、第
7106 \begin_inset CommandInset ref
7107 LatexCommand ref
7108 reference "sub:引用書式指定"
7109
7110 \end_inset
7111
7112 節をご覧ください。「
7113 \begin_inset Flex Code
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 End
7118 \end_layout
7119
7120 \end_inset
7121
7122 」で閉じる必要があります。
7123 \end_layout
7124
7125 \begin_layout Description
7126 \begin_inset Flex Code
7127 status collapsed
7128
7129 \begin_layout Plain Layout
7130 ClassOptions
7131 \end_layout
7132
7133 \end_inset
7134
7135  文書クラスがサポートする様々な大域オプションを記します。説明は、第
7136 \begin_inset CommandInset ref
7137 LatexCommand ref
7138 reference "sub:ClassOptions"
7139
7140 \end_inset
7141
7142 節を参照してください。「
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 End
7148 \end_layout
7149
7150 \end_inset
7151
7152 」で閉じる必要があります。
7153 \end_layout
7154
7155 \begin_layout Description
7156 \begin_inset Flex Code
7157 status collapsed
7158
7159 \begin_layout Plain Layout
7160 Columns
7161 \end_layout
7162
7163 \end_inset
7164
7165  [
7166 \begin_inset Flex Code
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170
7171 \emph on
7172 1
7173 \end_layout
7174
7175 \end_inset
7176
7177 ,
7178 \begin_inset space \thinspace{}
7179 \end_inset
7180
7181
7182 \begin_inset Flex Code
7183 status collapsed
7184
7185 \begin_layout Plain Layout
7186 2
7187 \end_layout
7188
7189 \end_inset
7190
7191 ] 文書クラスが既定で1段組か2段組かを指定します。
7192 \begin_inset Flex MenuItem
7193 status collapsed
7194
7195 \begin_layout Plain Layout
7196 文書\SpecialChar \menuseparator
7197 設定
7198 \end_layout
7199
7200 \end_inset
7201
7202 ダイアログで変更することができます。
7203 \end_layout
7204
7205 \begin_layout Description
7206 \begin_inset Flex Code
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 Counter
7211 \end_layout
7212
7213 \end_inset
7214
7215  [
7216 \begin_inset Flex Code
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 文字列
7221 \end_layout
7222
7223 \end_inset
7224
7225 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7226 \begin_inset Flex Code
7227 status collapsed
7228
7229 \begin_layout Plain Layout
7230 End
7231 \end_layout
7232
7233 \end_inset
7234
7235 」で閉じる必要があります。
7236 \begin_inset Newline newline
7237 \end_inset
7238
7239 カウンタについての詳細は、第
7240 \begin_inset CommandInset ref
7241 LatexCommand ref
7242 reference "sub:カウンタ"
7243
7244 \end_inset
7245
7246 節を参照してください。
7247 \end_layout
7248
7249 \begin_layout Description
7250 \begin_inset Flex Code
7251 status collapsed
7252
7253 \begin_layout Plain Layout
7254 DefaultFont
7255 \end_layout
7256
7257 \end_inset
7258
7259  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、第
7260 \begin_inset CommandInset ref
7261 LatexCommand ref
7262 reference "sub:フォント指定"
7263
7264 \end_inset
7265
7266 節を参照してください。「
7267 \begin_inset Flex Code
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271 EndFont
7272 \end_layout
7273
7274 \end_inset
7275
7276 」で閉じる必要があります。
7277 \end_layout
7278
7279 \begin_layout Description
7280
7281 \lang english
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286
7287 \lang english
7288 DefaultModule
7289 \end_layout
7290
7291 \end_inset
7292
7293  [
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298
7299 \lang english
7300 <module>
7301 \end_layout
7302
7303 \end_inset
7304
7305 ]
7306 \lang japanese
7307  この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7308 \begin_inset Flex Code
7309 status collapsed
7310
7311 \begin_layout Plain Layout
7312 .module
7313 \end_layout
7314
7315 \end_inset
7316
7317 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7318 既存の文書にこの文書クラスが選択したときのみ該当します)。
7319 \end_layout
7320
7321 \begin_layout Description
7322 \begin_inset Flex Code
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 DefaultStyle
7327 \end_layout
7328
7329 \end_inset
7330
7331  
7332 \lang english
7333 [
7334 \begin_inset Flex Code
7335 status collapsed
7336
7337 \begin_layout Plain Layout
7338
7339 \lang english
7340 <style>
7341 \end_layout
7342
7343 \end_inset
7344
7345
7346 \lang japanese
7347 これは新規段落に割り当てられる様式であり、通常は
7348 \begin_inset Flex MenuItem
7349 status collapsed
7350
7351 \begin_layout Plain Layout
7352 標準
7353 \end_layout
7354
7355 \end_inset
7356
7357 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7358 \end_layout
7359
7360 \begin_layout Description
7361 \begin_inset Flex Code
7362 status collapsed
7363
7364 \begin_layout Plain Layout
7365 ExcludesModule
7366 \end_layout
7367
7368 \end_inset
7369
7370  
7371 \lang english
7372 [
7373 \begin_inset Flex Code
7374 status collapsed
7375
7376 \begin_layout Plain Layout
7377
7378 \lang english
7379 <module>
7380 \end_layout
7381
7382 \end_inset
7383
7384 ]
7385 \lang japanese
7386  このタグは、指定されたモジュール—
7387 \begin_inset Flex Code
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 .module
7392 \end_layout
7393
7394 \end_inset
7395
7396 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7397 に振る
7398 \begin_inset Flex Code
7399 status collapsed
7400
7401 \begin_layout Plain Layout
7402 theorems-sec
7403 \end_layout
7404
7405 \end_inset
7406
7407 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7408 \emph on
7409 使用してはいけません
7410 \emph default
7411 。モジュールは、他のモジュールを排除する独自の枠組みがあります(第
7412 \begin_inset CommandInset ref
7413 LatexCommand ref
7414 reference "sub:レイアウトモジュール"
7415
7416 \end_inset
7417
7418 節参照)。
7419 \end_layout
7420
7421 \begin_layout Description
7422 \begin_inset Flex Code
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 Float
7427 \end_layout
7428
7429 \end_inset
7430
7431  フロートを新規に定義します。詳細は、第
7432 \begin_inset CommandInset ref
7433 LatexCommand ref
7434 reference "sub:フロート"
7435
7436 \end_inset
7437
7438 節を参照してください。「
7439 \begin_inset Flex Code
7440 status collapsed
7441
7442 \begin_layout Plain Layout
7443 End
7444 \end_layout
7445
7446 \end_inset
7447
7448 」で閉じる必要があります。
7449 \end_layout
7450
7451 \begin_layout Description
7452 \begin_inset Flex Code
7453 status collapsed
7454
7455 \begin_layout Plain Layout
7456 HTMLPreamble
7457 \end_layout
7458
7459 \end_inset
7460
7461  この文書クラスがXHTMLに出力されるときに、
7462 \begin_inset Flex Code
7463 status collapsed
7464
7465 \begin_layout Plain Layout
7466 <head>
7467 \end_layout
7468
7469 \end_inset
7470
7471 ブロックに出力される情報です。これより前に出現した
7472 \begin_inset Flex Code
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 HTMLPreamble
7477 \end_layout
7478
7479 \end_inset
7480
7481
7482 \begin_inset Flex Code
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 AddToHTMLPreamble
7487 \end_layout
7488
7489 \end_inset
7490
7491 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7492 \begin_inset Flex Code
7493 status collapsed
7494
7495 \begin_layout Plain Layout
7496 AddToHTMLPreamble
7497 \end_layout
7498
7499 \end_inset
7500
7501 を使用してください)。これは「
7502 \begin_inset Flex Code
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506 EndPreamble
7507 \end_layout
7508
7509 \end_inset
7510
7511 」で閉じる必要があります。
7512 \end_layout
7513
7514 \begin_layout Description
7515 \begin_inset Flex Code
7516 status collapsed
7517
7518 \begin_layout Plain Layout
7519 HTMLStyles
7520 \end_layout
7521
7522 \end_inset
7523
7524  CSSスタイル情報を指定します。これは、「
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 <style>
7530 \end_layout
7531
7532 \end_inset
7533
7534 」ブロック内か、ユーザーがそのように選択すれば、独立したCSSファイル内に出力されます。これは、これより以前に宣言された
7535 \begin_inset Flex Code
7536 status collapsed
7537
7538 \begin_layout Plain Layout
7539 HTMLStyles
7540 \end_layout
7541
7542 \end_inset
7543
7544
7545 \begin_inset Flex Code
7546 status collapsed
7547
7548 \begin_layout Plain Layout
7549 AddToHTMLStyles
7550 \end_layout
7551
7552 \end_inset
7553
7554 をすべて完全に上書きしてしまうことに注意してください(追加をしたい時には`
7555 \begin_inset Flex Code
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559 AddToHTMLStyles
7560 \end_layout
7561
7562 \end_inset
7563
7564 を使用してください)。これは「
7565 \begin_inset Flex Code
7566 status collapsed
7567
7568 \begin_layout Plain Layout
7569 EndStyles
7570 \end_layout
7571
7572 \end_inset
7573
7574 」で閉じる必要があります。
7575 \end_layout
7576
7577 \begin_layout Description
7578 \begin_inset Flex Code
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582 HTMLTOCSection
7583 \end_layout
7584
7585 \end_inset
7586
7587  
7588 \lang english
7589 [
7590 \begin_inset Flex Code
7591 status collapsed
7592
7593 \begin_layout Plain Layout
7594
7595 \lang english
7596 <style>
7597 \end_layout
7598
7599 \end_inset
7600
7601 ]
7602 \lang japanese
7603  文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です。
7604 これを指定しない場合には、LyXはどのレイアウトを使用するべきか、解析しようと試みます。
7605 \end_layout
7606
7607 \begin_layout Description
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 IfCounter 
7613 \end_layout
7614
7615 \end_inset
7616
7617  [
7618 \begin_inset Flex Code
7619 status collapsed
7620
7621 \begin_layout Plain Layout
7622
7623 \lang english
7624 <counter>
7625 \end_layout
7626
7627 \end_inset
7628
7629 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7630 \begin_inset Flex Code
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 End
7635 \end_layout
7636
7637 \end_inset
7638
7639 」で閉じる必要があります。
7640 \begin_inset Newline newline
7641 \end_inset
7642
7643 カウンタについての詳細は、第
7644 \begin_inset CommandInset ref
7645 LatexCommand ref
7646 reference "sub:カウンタ"
7647
7648 \end_inset
7649
7650 節をご覧ください。
7651 \end_layout
7652
7653 \begin_layout Description
7654 \begin_inset Flex Code
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 IfStyle
7659 \end_layout
7660
7661 \end_inset
7662
7663  [
7664 \begin_inset Flex Code
7665 status collapsed
7666
7667 \begin_layout Plain Layout
7668
7669 \lang english
7670 <style>
7671 \end_layout
7672
7673 \end_inset
7674
7675 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7676 \begin_inset Flex Code
7677 status collapsed
7678
7679 \begin_layout Plain Layout
7680 End
7681 \end_layout
7682
7683 \end_inset
7684
7685 」で閉じる必要があります。
7686 \end_layout
7687
7688 \begin_layout Description
7689 \begin_inset Flex Code
7690 status collapsed
7691
7692 \begin_layout Plain Layout
7693 Input
7694 \end_layout
7695
7696 \end_inset
7697
7698  
7699 \lang english
7700 [
7701 \begin_inset Flex Code
7702 status collapsed
7703
7704 \begin_layout Plain Layout
7705
7706 \lang english
7707 <filename>
7708 \end_layout
7709
7710 \end_inset
7711
7712
7713 \lang japanese
7714 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
7715 のほとんどを収録している
7716 \begin_inset Flex Code
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720 stdclass.inc
7721 \end_layout
7722
7723 \end_inset
7724
7725 のような標準レイアウトファイルです。
7726 \end_layout
7727
7728 \begin_layout Description
7729 \begin_inset Flex Code
7730 status collapsed
7731
7732 \begin_layout Plain Layout
7733 InsetLayout
7734 \end_layout
7735
7736 \end_inset
7737
7738  
7739 \lang english
7740 [
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745
7746 \lang english
7747 <type>
7748 \end_layout
7749
7750 \end_inset
7751
7752
7753 \lang japanese
7754 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 End
7760 \end_layout
7761
7762 \end_inset
7763
7764 」で閉じる必要があります。
7765 \begin_inset Newline newline
7766 \end_inset
7767
7768 詳しい情報は、第
7769 \begin_inset CommandInset ref
7770 LatexCommand ref
7771 reference "sub:任意設定差込枠"
7772
7773 \end_inset
7774
7775 節をご覧ください。
7776 \end_layout
7777
7778 \begin_layout Description
7779 \begin_inset Flex Code
7780 status collapsed
7781
7782 \begin_layout Plain Layout
7783 LeftMargin
7784 \end_layout
7785
7786 \end_inset
7787
7788  [
7789 \begin_inset Flex Code
7790 status collapsed
7791
7792 \begin_layout Plain Layout
7793 文字列
7794 \end_layout
7795
7796 \end_inset
7797
7798 ] 画面上の左余白の幅を指示する文字列。例:「
7799 \begin_inset Flex Code
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 MMMMM
7804 \end_layout
7805
7806 \end_inset
7807
7808 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
7809 \end_layout
7810
7811 \begin_layout Description
7812 \begin_inset Flex Code
7813 status collapsed
7814
7815 \begin_layout Plain Layout
7816 NoCounter
7817 \end_layout
7818
7819 \end_inset
7820
7821  [
7822 \lang english
7823
7824 \begin_inset Flex Code
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828
7829 \lang english
7830 <counter>
7831 \end_layout
7832
7833 \end_inset
7834
7835 ] This command deletes an existing counter, usually one defined in an included
7836  file.
7837 \end_layout
7838
7839 \begin_layout Description
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 NoFloat
7845 \end_layout
7846
7847 \end_inset
7848
7849  
7850 \lang english
7851 [
7852 \begin_inset Flex Code
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856
7857 \lang english
7858 <float>
7859 \end_layout
7860
7861 \end_inset
7862
7863 ]
7864 \lang japanese
7865  このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
7866 \end_layout
7867
7868 \begin_layout Description
7869 \begin_inset Flex Code
7870 status collapsed
7871
7872 \begin_layout Plain Layout
7873 NoStyle
7874 \end_layout
7875
7876 \end_inset
7877
7878  
7879 \lang english
7880 [
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885
7886 \lang english
7887 <style>
7888 \end_layout
7889
7890 \end_inset
7891
7892 ]
7893 \lang japanese
7894  このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
7895 \end_layout
7896
7897 \begin_layout Description
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 OutputFormat
7903 \end_layout
7904
7905 \end_inset
7906
7907  [
7908 \begin_inset Flex Code
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912
7913 \lang english
7914 <format>
7915 \end_layout
7916
7917 \end_inset
7918
7919 ] このクラスによって生成されるファイル形式を示す文字列(
7920 \family sans
7921 設定
7922 \family default
7923 ダイアログで定義される形のもの)。おもに、
7924 \begin_inset Flex Code
7925 status collapsed
7926
7927 \begin_layout Plain Layout
7928 OutputType
7929 \end_layout
7930
7931 \end_inset
7932
7933
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 literate
7939 \end_layout
7940
7941 \end_inset
7942
7943 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 OutputType
7949 \end_layout
7950
7951 \end_inset
7952
7953 パラメーターに遭遇したときには、この文字列は、「
7954 \begin_inset Flex Code
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 docbook
7959 \end_layout
7960
7961 \end_inset
7962
7963 」・「
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 lat
7969 \emph on
7970 ex
7971 \end_layout
7972
7973 \end_inset
7974
7975 」のいずれかにリセットされます。
7976 \end_layout
7977
7978 \begin_layout Description
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 OutputType
7984 \end_layout
7985
7986 \end_inset
7987
7988  [
7989 \begin_inset Flex Code
7990 status collapsed
7991
7992 \begin_layout Plain Layout
7993
7994 \emph on
7995 lat
7996 \emph default
7997 ex
7998 \end_layout
7999
8000 \end_inset
8001
8002
8003 \begin_inset Flex Code
8004 status collapsed
8005
8006 \begin_layout Plain Layout
8007 docbook
8008 \end_layout
8009
8010 \end_inset
8011
8012
8013 \begin_inset Flex Code
8014 status collapsed
8015
8016 \begin_layout Plain Layout
8017 literate
8018 \end_layout
8019
8020 \end_inset
8021
8022 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8023 \end_layout
8024
8025 \begin_layout Description
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 PageStyle
8031 \end_layout
8032
8033 \end_inset
8034
8035  [
8036 \emph on
8037
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 plain
8043 \end_layout
8044
8045 \end_inset
8046
8047
8048 \emph default
8049
8050 \begin_inset Flex Code
8051 status collapsed
8052
8053 \begin_layout Plain Layout
8054 empty
8055 \end_layout
8056
8057 \end_inset
8058
8059
8060 \begin_inset Flex Code
8061 status collapsed
8062
8063 \begin_layout Plain Layout
8064 headings
8065 \end_layout
8066
8067 \end_inset
8068
8069 ] 既定ページ様式。
8070 \begin_inset Flex MenuItem
8071 status collapsed
8072
8073 \begin_layout Plain Layout
8074 文書\SpecialChar \menuseparator
8075 設定
8076 \end_layout
8077
8078 \end_inset
8079
8080 ダイアログで変更することができます。
8081 \end_layout
8082
8083 \begin_layout Description
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 Preamble
8089 \end_layout
8090
8091 \end_inset
8092
8093  LaTeX文書のプリアンブルを設定します。前に行った
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 Preamble
8099 \end_layout
8100
8101 \end_inset
8102
8103 宣言や
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 AddToPreamble
8109 \end_layout
8110
8111 \end_inset
8112
8113 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 AddToPreamble
8119 \end_layout
8120
8121 \end_inset
8122
8123 を使用してください。)「
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 EndPreamble
8129 \end_layout
8130
8131 \end_inset
8132
8133 」で閉じる必要があります。
8134 \end_layout
8135
8136 \begin_layout Description
8137 \begin_inset Flex Code
8138 status collapsed
8139
8140 \begin_layout Plain Layout
8141 Provides
8142 \end_layout
8143
8144 \end_inset
8145
8146  [
8147 \begin_inset Flex Code
8148 status collapsed
8149
8150 \begin_layout Plain Layout
8151 文字列
8152 \end_layout
8153
8154 \end_inset
8155
8156 ] [
8157 \begin_inset Flex Code
8158 status collapsed
8159
8160 \begin_layout Plain Layout
8161
8162 \emph on
8163 0
8164 \end_layout
8165
8166 \end_inset
8167
8168
8169 \begin_inset Flex Code
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 1
8174 \end_layout
8175
8176 \end_inset
8177
8178 ] このクラスが
8179 \begin_inset Flex Code
8180 status collapsed
8181
8182 \begin_layout Plain Layout
8183 文字列
8184 \end_layout
8185
8186 \end_inset
8187
8188 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8189 \begin_inset Flex Code
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 amsmath
8194 \end_layout
8195
8196 \end_inset
8197
8198
8199 \begin_inset Flex Code
8200 status collapsed
8201
8202 \begin_layout Plain Layout
8203 makeidx
8204 \end_layout
8205
8206 \end_inset
8207
8208 ・\SpecialChar \ldots{}
8209 )やマクロ名(
8210 \begin_inset Flex Code
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214 url
8215 \end_layout
8216
8217 \end_inset
8218
8219
8220 \begin_inset Flex Code
8221 status collapsed
8222
8223 \begin_layout Plain Layout
8224 boldsymbol
8225 \end_layout
8226
8227 \end_inset
8228
8229 ・\SpecialChar \ldots{}
8230 )です。
8231 \lang english
8232 See chapter
8233 \begin_inset space ~
8234 \end_inset
8235
8236
8237 \begin_inset CommandInset ref
8238 LatexCommand ref
8239 reference "chap:List-of-functions"
8240
8241 \end_inset
8242
8243  for the list of features.
8244 \end_layout
8245
8246 \begin_layout Description
8247 \begin_inset Flex Code
8248 status collapsed
8249
8250 \begin_layout Plain Layout
8251 ProvidesModule
8252 \end_layout
8253
8254 \end_inset
8255
8256  [
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 文字列
8262 \end_layout
8263
8264 \end_inset
8265
8266 ] このレイアウトが
8267 \begin_inset Flex Code
8268 status collapsed
8269
8270 \begin_layout Plain Layout
8271 文字列
8272 \end_layout
8273
8274 \end_inset
8275
8276 で表されているモジュールの機能を提供することを示し、
8277 \begin_inset Flex Code
8278 status collapsed
8279
8280 \begin_layout Plain Layout
8281 .module
8282 \end_layout
8283
8284 \end_inset
8285
8286 拡張子を除いたファイル名で指定します。
8287 \begin_inset Flex Code
8288 status collapsed
8289
8290 \begin_layout Plain Layout
8291 DefaultModule
8292 \end_layout
8293
8294 \end_inset
8295
8296 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8297 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8298 \end_layout
8299
8300 \begin_layout Description
8301 \begin_inset Flex Code
8302 status collapsed
8303
8304 \begin_layout Plain Layout
8305 Requires
8306 \end_layout
8307
8308 \end_inset
8309
8310  [
8311 \begin_inset Flex Code
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 文字列
8316 \end_layout
8317
8318 \end_inset
8319
8320 ] このクラスが
8321 \begin_inset Flex Code
8322 status collapsed
8323
8324 \begin_layout Plain Layout
8325 文字列
8326 \end_layout
8327
8328 \end_inset
8329
8330 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8331 さい。(
8332 \lang english
8333 See chapter
8334 \begin_inset space ~
8335 \end_inset
8336
8337
8338 \begin_inset CommandInset ref
8339 LatexCommand ref
8340 reference "chap:List-of-functions"
8341
8342 \end_inset
8343
8344  for the list of features
8345 \lang japanese
8346 。)
8347 \end_layout
8348
8349 \begin_layout Description
8350 \begin_inset Flex Code
8351 status collapsed
8352
8353 \begin_layout Plain Layout
8354 RightMargin
8355 \end_layout
8356
8357 \end_inset
8358
8359  [
8360 \begin_inset Flex Code
8361 status collapsed
8362
8363 \begin_layout Plain Layout
8364 文字列
8365 \end_layout
8366
8367 \end_inset
8368
8369 ] 画面上の右余白の幅を指示する文字列。例:「
8370 \begin_inset Flex Code
8371 status collapsed
8372
8373 \begin_layout Plain Layout
8374 MMMMM
8375 \end_layout
8376
8377 \end_inset
8378
8379 」。
8380 \end_layout
8381
8382 \begin_layout Description
8383 \begin_inset Flex Code
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387 SecNumDepth
8388 \end_layout
8389
8390 \end_inset
8391
8392  [
8393 \begin_inset Flex Code
8394 status collapsed
8395
8396 \begin_layout Plain Layout
8397 int=3
8398 \end_layout
8399
8400 \end_inset
8401
8402 ] どの節区切りまで連番を振るかを指定します。LaTeXにおける
8403 \begin_inset Flex Code
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 secnumdepth
8408 \end_layout
8409
8410 \end_inset
8411
8412 カウンタに対応します。
8413 \end_layout
8414
8415 \begin_layout Description
8416 \begin_inset Flex Code
8417 status collapsed
8418
8419 \begin_layout Plain Layout
8420 Sides
8421 \end_layout
8422
8423 \end_inset
8424
8425  [
8426 \emph on
8427
8428 \begin_inset Flex Code
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 1
8433 \end_layout
8434
8435 \end_inset
8436
8437
8438 \emph default
8439 ,
8440 \begin_inset space \thinspace{}
8441 \end_inset
8442
8443
8444 \begin_inset Flex Code
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448 2
8449 \end_layout
8450
8451 \end_inset
8452
8453 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8454 \begin_inset Flex MenuItem
8455 status collapsed
8456
8457 \begin_layout Plain Layout
8458 文書\SpecialChar \menuseparator
8459 設定
8460 \end_layout
8461
8462 \end_inset
8463
8464 ダイアログで変更することができます。
8465 \end_layout
8466
8467 \begin_layout Description
8468 \begin_inset Flex Code
8469 status collapsed
8470
8471 \begin_layout Plain Layout
8472 Style
8473 \end_layout
8474
8475 \end_inset
8476
8477  
8478 \lang english
8479 [
8480 \begin_inset Flex Code
8481 status collapsed
8482
8483 \begin_layout Plain Layout
8484
8485 \lang english
8486 <name>
8487 \end_layout
8488
8489 \end_inset
8490
8491
8492 \lang japanese
8493 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8494 \begin_inset Flex Code
8495 status collapsed
8496
8497 \begin_layout Plain Layout
8498 End
8499 \end_layout
8500
8501 \end_inset
8502
8503 」で閉じる必要があります。
8504 \begin_inset Newline newline
8505 \end_inset
8506
8507 段落様式に関する詳細は、第
8508 \begin_inset CommandInset ref
8509 LatexCommand ref
8510 reference "sub:段落様式-XHTML"
8511
8512 \end_inset
8513
8514 節をご覧ください。
8515 \end_layout
8516
8517 \begin_layout Description
8518 \begin_inset Flex Code
8519 status collapsed
8520
8521 \begin_layout Plain Layout
8522 TitleLatexName
8523 \end_layout
8524
8525 \end_inset
8526
8527  [
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 文字列="maketitle"
8533 \end_layout
8534
8535 \end_inset
8536
8537
8538 \begin_inset Flex Code
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 TitleLatexType
8543 \end_layout
8544
8545 \end_inset
8546
8547 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8548  
8549 \begin_inset Flex Code
8550 status collapsed
8551
8552 \begin_layout Plain Layout
8553 TitleLatexType
8554 \end_layout
8555
8556 \end_inset
8557
8558 .
8559 \end_layout
8560
8561 \begin_layout Description
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 TitleLatexType
8567 \end_layout
8568
8569 \end_inset
8570
8571  [
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576
8577 \emph on
8578 CommandAfter
8579 \end_layout
8580
8581 \end_inset
8582
8583
8584 \begin_inset Flex Code
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588 Environment
8589 \end_layout
8590
8591 \end_inset
8592
8593 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8594 \begin_inset Flex Code
8595 status collapsed
8596
8597 \begin_layout Plain Layout
8598 CommandAfter
8599 \end_layout
8600
8601 \end_inset
8602
8603 は、「
8604 \begin_inset Flex Code
8605 status collapsed
8606
8607 \begin_layout Plain Layout
8608 InTitle
8609 \begin_inset space ~
8610 \end_inset
8611
8612 1
8613 \end_layout
8614
8615 \end_inset
8616
8617 」が指定されている最後のレイアウトの後に、
8618 \begin_inset Flex Code
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 TitleLatexName
8623 \end_layout
8624
8625 \end_inset
8626
8627 で指定したマクロ名を挿入することを意味します。
8628 \begin_inset Flex Code
8629 status collapsed
8630
8631 \begin_layout Plain Layout
8632 Environment
8633 \end_layout
8634
8635 \end_inset
8636
8637 は、「
8638 \begin_inset Flex Code
8639 status collapsed
8640
8641 \begin_layout Plain Layout
8642 InTitle
8643 \begin_inset space ~
8644 \end_inset
8645
8646 1
8647 \end_layout
8648
8649 \end_inset
8650
8651 」を持つ段落群を
8652 \begin_inset Flex Code
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 TitleLatexName
8657 \end_layout
8658
8659 \end_inset
8660
8661 で指定した環境でくるむ場合に対応します。
8662 \end_layout
8663
8664 \begin_layout Description
8665 \begin_inset Flex Code
8666 status collapsed
8667
8668 \begin_layout Plain Layout
8669 TocDepth
8670 \end_layout
8671
8672 \end_inset
8673
8674  [
8675 \begin_inset Flex Code
8676 status collapsed
8677
8678 \begin_layout Plain Layout
8679 int=3
8680 \end_layout
8681
8682 \end_inset
8683
8684 ] どの節区切りまで目次に取り込むかを指定します。LaTeXの
8685 \begin_inset Flex Code
8686 status collapsed
8687
8688 \begin_layout Plain Layout
8689 tocdepth
8690 \end_layout
8691
8692 \end_inset
8693
8694 カウンタに対応します。
8695 \end_layout
8696
8697 \begin_layout Subsection
8698 \begin_inset Flex Code
8699 status collapsed
8700
8701 \begin_layout Plain Layout
8702 ClassOptions
8703 \end_layout
8704
8705 \end_inset
8706
8707
8708 \begin_inset CommandInset label
8709 LatexCommand label
8710 name "sub:ClassOptions"
8711
8712 \end_inset
8713
8714
8715 \end_layout
8716
8717 \begin_layout Standard
8718 \begin_inset Flex Code
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 ClassOptions
8723 \end_layout
8724
8725 \end_inset
8726
8727 部は、以下の項目を取り得ます。
8728 \end_layout
8729
8730 \begin_layout Description
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 FontSize
8736 \end_layout
8737
8738 \end_inset
8739
8740  [
8741 \begin_inset Flex Code
8742 status collapsed
8743
8744 \begin_layout Plain Layout
8745 文字列="10|11|12"
8746 \end_layout
8747
8748 \end_inset
8749
8750 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
8751 \begin_inset Flex Code
8752 status collapsed
8753
8754 \begin_layout Plain Layout
8755 |
8756 \end_layout
8757
8758 \end_inset
8759
8760 」で区切ります。
8761 \end_layout
8762
8763 \begin_layout Description
8764 \begin_inset Flex Code
8765 status collapsed
8766
8767 \begin_layout Plain Layout
8768 Header
8769 \end_layout
8770
8771 \end_inset
8772
8773  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
8774 \begin_inset Quotes eld
8775 \end_inset
8776
8777 -//OASIS//DTD DocBook V4.2//EN
8778 \begin_inset Quotes erd
8779 \end_inset
8780
8781
8782 \end_layout
8783
8784 \begin_layout Description
8785 \begin_inset Flex Code
8786 status collapsed
8787
8788 \begin_layout Plain Layout
8789 Other
8790 \end_layout
8791
8792 \end_inset
8793
8794  [
8795 \begin_inset Flex Code
8796 status collapsed
8797
8798 \begin_layout Plain Layout
8799 文字列=""
8800 \end_layout
8801
8802 \end_inset
8803
8804
8805 \begin_inset Flex Code
8806 status collapsed
8807
8808 \begin_layout Plain Layout
8809
8810 \backslash
8811 documentclass
8812 \end_layout
8813
8814 \end_inset
8815
8816 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
8817 \end_layout
8818
8819 \begin_layout Description
8820 \begin_inset Flex Code
8821 status collapsed
8822
8823 \begin_layout Plain Layout
8824 PageStyle
8825 \end_layout
8826
8827 \end_inset
8828
8829  [
8830 \begin_inset Flex Code
8831 status collapsed
8832
8833 \begin_layout Plain Layout
8834 文字列="empty|plain|headings|fancy"
8835 \end_layout
8836
8837 \end_inset
8838
8839 ] 使用できるページ様式の一覧です。「
8840 \begin_inset Flex Code
8841 status collapsed
8842
8843 \begin_layout Plain Layout
8844 |
8845 \end_layout
8846
8847 \end_inset
8848
8849 」で区切ります。
8850 \end_layout
8851
8852 \begin_layout Standard
8853 \begin_inset Flex Code
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857 ClassOptions
8858 \end_layout
8859
8860 \end_inset
8861
8862 部は「
8863 \begin_inset Flex Code
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867 End
8868 \end_layout
8869
8870 \end_inset
8871
8872 」で閉じる必要があります。
8873 \end_layout
8874
8875 \begin_layout Subsection
8876 段落様式
8877 \begin_inset CommandInset label
8878 LatexCommand label
8879 name "sub:段落様式"
8880
8881 \end_inset
8882
8883
8884 \end_layout
8885
8886 \begin_layout Standard
8887 段落様式の記述は、以下のようになります
8888 \begin_inset Foot
8889 status collapsed
8890
8891 \begin_layout Plain Layout
8892 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
8893 \end_layout
8894
8895 \end_inset
8896
8897
8898 \end_layout
8899
8900 \begin_layout LyX-Code
8901 Style 
8902 \family roman
8903 \emph on
8904 名称
8905 \end_layout
8906
8907 \begin_layout LyX-Code
8908  ...
8909 \end_layout
8910
8911 \begin_layout LyX-Code
8912 End
8913 \end_layout
8914
8915 \begin_layout Standard
8916 ここでは、以下のコマンドを使用することができます。
8917 \end_layout
8918
8919 \begin_layout Description
8920 \begin_inset Flex Code
8921 status collapsed
8922
8923 \begin_layout Plain Layout
8924 Align
8925 \end_layout
8926
8927 \end_inset
8928
8929  [
8930 \begin_inset Flex Code
8931 status collapsed
8932
8933 \begin_layout Plain Layout
8934
8935 \emph on
8936 block
8937 \emph default
8938 , left, right, center
8939 \end_layout
8940
8941 \end_inset
8942
8943 ] 段落の揃え。
8944 \end_layout
8945
8946 \begin_layout Description
8947 \begin_inset Flex Code
8948 status collapsed
8949
8950 \begin_layout Plain Layout
8951 AlignPossible
8952 \end_layout
8953
8954 \end_inset
8955
8956  [
8957 \begin_inset Flex Code
8958 status collapsed
8959
8960 \begin_layout Plain Layout
8961
8962 \emph on
8963 block
8964 \emph default
8965 , left, right, center
8966 \end_layout
8967
8968 \end_inset
8969
8970 ] 使用できる揃えのコンマ区切りリスト(LaTeXスタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃え
8971 にすることはできません)。
8972 \end_layout
8973
8974 \begin_layout Description
8975 \begin_inset Flex Code
8976 status collapsed
8977
8978 \begin_layout Plain Layout
8979 BabelPreamble
8980 \end_layout
8981
8982 \end_inset
8983
8984  これは、前に現れたこの様式の
8985 \begin_inset Flex Code
8986 status collapsed
8987
8988 \begin_layout Plain Layout
8989 BabelPreamble
8990 \end_layout
8991
8992 \end_inset
8993
8994 宣言をすべて、完全に上書きしますので注意してください。「
8995 \begin_inset Flex Code
8996 status collapsed
8997
8998 \begin_layout Plain Layout
8999 EndBabelPreamble
9000 \end_layout
9001
9002 \end_inset
9003
9004 」で閉じる必要があります。これの利用法についての詳細は、第
9005 \begin_inset CommandInset ref
9006 LatexCommand ref
9007 reference "sub:段落様式の国際化"
9008
9009 \end_inset
9010
9011 節をご覧ください。
9012 \end_layout
9013
9014 \begin_layout Description
9015 \begin_inset Flex Code
9016 status collapsed
9017
9018 \begin_layout Plain Layout
9019 BottomSep
9020 \end_layout
9021
9022 \end_inset
9023
9024  [
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 浮動小数点型=0
9030 \end_layout
9031
9032 \end_inset
9033
9034 ]
9035 \begin_inset Foot
9036 status collapsed
9037
9038 \begin_layout Plain Layout
9039 ここで「浮動小数点型」とは1.5のような実数を指します。
9040 \end_layout
9041
9042 \end_inset
9043
9044  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
9045 す。
9046 \end_layout
9047
9048 \begin_layout Description
9049 \begin_inset Flex Code
9050 status collapsed
9051
9052 \begin_layout Plain Layout
9053 Category
9054 \end_layout
9055
9056 \end_inset
9057
9058  [
9059 \begin_inset Flex Code
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 文字列
9064 \end_layout
9065
9066 \end_inset
9067
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 CommandDepth
9078 \end_layout
9079
9080 \end_inset
9081
9082  XMLコマンドの深度。XML型の書式でのみ使用されます。
9083 \end_layout
9084
9085 \begin_layout Description
9086 \begin_inset Flex Code
9087 status collapsed
9088
9089 \begin_layout Plain Layout
9090 CopyStyle
9091 \end_layout
9092
9093 \end_inset
9094
9095  [
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 文字列
9101 \end_layout
9102
9103 \end_inset
9104
9105 ] 既存の様式から、すべての機能を現在の様式にコピーします。
9106 \end_layout
9107
9108 \begin_layout Description
9109 \begin_inset Flex Code
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 DependsOn
9114 \end_layout
9115
9116 \end_inset
9117
9118  
9119 \lang english
9120 [
9121 \begin_inset Flex Code
9122 status collapsed
9123
9124 \begin_layout Plain Layout
9125
9126 \lang english
9127 <name>
9128 \end_layout
9129
9130 \end_inset
9131
9132
9133 \lang japanese
9134 この
9135 \emph on
9136 前に
9137 \emph default
9138 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
9139 \begin_inset Foot
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。LyXの特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可
9144 能性があります。
9145 \end_layout
9146
9147 \end_inset
9148
9149
9150 \end_layout
9151
9152 \begin_layout Description
9153 \begin_inset Flex Code
9154 status collapsed
9155
9156 \begin_layout Plain Layout
9157 EndLabeltype
9158 \end_layout
9159
9160 \end_inset
9161
9162  [
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167
9168 \emph on
9169 No_Label
9170 \emph default
9171 , Box, Filled_Box, Static
9172 \end_layout
9173
9174 \end_inset
9175
9176 ] 段落の最後(あるいは
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 LatexType
9182 \end_layout
9183
9184 \end_inset
9185
9186 が、
9187 \begin_inset Flex Code
9188 status collapsed
9189
9190 \begin_layout Plain Layout
9191 Environment
9192 \end_layout
9193
9194 \end_inset
9195
9196
9197 \begin_inset Flex Code
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 Item_Environment
9202 \end_layout
9203
9204 \end_inset
9205
9206
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211 List_Environment
9212 \end_layout
9213
9214 \end_inset
9215
9216 のいずれかの場合は、段落群の最後)に置くラベル。
9217 \begin_inset Flex Code
9218 status collapsed
9219
9220 \begin_layout Plain Layout
9221 No_Label
9222 \end_layout
9223
9224 \end_inset
9225
9226 の場合は「何もない」ことを指し、
9227 \begin_inset Flex Code
9228 status collapsed
9229
9230 \begin_layout Plain Layout
9231 Box
9232 \end_layout
9233
9234 \end_inset
9235
9236 (あるいは
9237 \begin_inset Flex Code
9238 status collapsed
9239
9240 \begin_layout Plain Layout
9241 Filled_Box
9242 \end_layout
9243
9244 \end_inset
9245
9246 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 Static
9252 \end_layout
9253
9254 \end_inset
9255
9256 は明示したテキスト文字列を指します。
9257 \end_layout
9258
9259 \begin_layout Description
9260 \begin_inset Flex Code
9261 status collapsed
9262
9263 \begin_layout Plain Layout
9264 EndLabelString
9265 \end_layout
9266
9267 \end_inset
9268
9269  [
9270 \begin_inset Flex Code
9271 status collapsed
9272
9273 \begin_layout Plain Layout
9274 文字列=""
9275 \end_layout
9276
9277 \end_inset
9278
9279
9280 \begin_inset Flex Code
9281 status collapsed
9282
9283 \begin_layout Plain Layout
9284 Static
9285 \end_layout
9286
9287 \end_inset
9288
9289
9290 \begin_inset Flex Code
9291 status collapsed
9292
9293 \begin_layout Plain Layout
9294 EndLabelType
9295 \end_layout
9296
9297 \end_inset
9298
9299 のラベルで用いる文字列。
9300 \end_layout
9301
9302 \begin_layout Description
9303 \begin_inset Flex Code
9304 status collapsed
9305
9306 \begin_layout Plain Layout
9307 Font
9308 \end_layout
9309
9310 \end_inset
9311
9312  本文テキストとラベルの
9313 \emph on
9314 両方で
9315 \emph default
9316 用いられるフォント。第
9317 \begin_inset CommandInset ref
9318 LatexCommand ref
9319 reference "sub:フォント指定"
9320
9321 \end_inset
9322
9323 節を参照。このフォントを定義すると、自動的に
9324 \begin_inset Flex Code
9325 status collapsed
9326
9327 \begin_layout Plain Layout
9328 LabelFont
9329 \end_layout
9330
9331 \end_inset
9332
9333 も同じ値で定義されることに注意してください。したがって、
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 LabelFont
9339 \end_layout
9340
9341 \end_inset
9342
9343 も同時に定義したい場合には、これを先に定義してください。
9344 \end_layout
9345
9346 \begin_layout Description
9347 \begin_inset Flex Code
9348 status collapsed
9349
9350 \begin_layout Plain Layout
9351 FreeSpacing
9352 \end_layout
9353
9354 \end_inset
9355
9356  [
9357 \emph on
9358
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 0
9364 \end_layout
9365
9366 \end_inset
9367
9368
9369 \emph default
9370 ,
9371 \begin_inset space \thinspace{}
9372 \end_inset
9373
9374
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 1
9380 \end_layout
9381
9382 \end_inset
9383
9384 ] LyXは、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体
9385 はとても素晴らしいことですが、たとえばプログラムコードや生のLaTeXコードを入力しようとするときなどに、煩わしくなることがあります。このことから、
9386 \begin_inset Flex Code
9387 status collapsed
9388
9389 \begin_layout Plain Layout
9390 FreeSpacing
9391 \end_layout
9392
9393 \end_inset
9394
9395 を有効にすることが認められています。LyXは、LaTeXモード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
9396 \end_layout
9397
9398 \begin_layout Description
9399 \begin_inset Flex Code
9400 status collapsed
9401
9402 \begin_layout Plain Layout
9403 HTML*
9404 \end_layout
9405
9406 \end_inset
9407
9408  これらのタグは、XHTML出力で使用されます。第
9409 \begin_inset CommandInset ref
9410 LatexCommand ref
9411 reference "sub:段落様式-XHTML"
9412
9413 \end_inset
9414
9415 節をご覧ください。
9416 \end_layout
9417
9418 \begin_layout Description
9419 \begin_inset Flex Code
9420 status collapsed
9421
9422 \begin_layout Plain Layout
9423 InnerTag
9424 \end_layout
9425
9426 \end_inset
9427
9428  [[FIXME]] (XML型書式でのみ使用されます。)
9429 \end_layout
9430
9431 \begin_layout Description
9432 \begin_inset Flex Code
9433 status collapsed
9434
9435 \begin_layout Plain Layout
9436 InPreamble
9437 \end_layout
9438
9439 \end_inset
9440
9441  [
9442 \emph on
9443
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448 0
9449 \end_layout
9450
9451 \end_inset
9452
9453
9454 \emph default
9455 ,
9456 \begin_inset space \thinspace{}
9457 \end_inset
9458
9459
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 1
9465 \end_layout
9466
9467 \end_inset
9468
9469
9470 \begin_inset Flex Code
9471 status collapsed
9472
9473 \begin_layout Plain Layout
9474 1
9475 \end_layout
9476
9477 \end_inset
9478
9479 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
9480 です。これは、
9481 \begin_inset Flex Code
9482 status collapsed
9483
9484 \begin_layout Plain Layout
9485 LatexType
9486 \end_layout
9487
9488 \end_inset
9489
9490
9491 \begin_inset Flex Code
9492 status collapsed
9493
9494 \begin_layout Plain Layout
9495 Command
9496 \end_layout
9497
9498 \end_inset
9499
9500 または
9501 \begin_inset Flex Code
9502 status collapsed
9503
9504 \begin_layout Plain Layout
9505 Paragraph
9506 \end_layout
9507
9508 \end_inset
9509
9510 の様式に対してのみ動作します。
9511 \end_layout
9512
9513 \begin_layout Description
9514 \begin_inset Flex Code
9515 status collapsed
9516
9517 \begin_layout Plain Layout
9518 InTitle
9519 \end_layout
9520
9521 \end_inset
9522
9523  [
9524 \emph on
9525
9526 \begin_inset Flex Code
9527 status collapsed
9528
9529 \begin_layout Plain Layout
9530 0
9531 \end_layout
9532
9533 \end_inset
9534
9535
9536 \emph default
9537 ,
9538 \begin_inset space \thinspace{}
9539 \end_inset
9540
9541
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 1
9547 \end_layout
9548
9549 \end_inset
9550
9551
9552 \begin_inset Flex Code
9553 status collapsed
9554
9555 \begin_layout Plain Layout
9556 1
9557 \end_layout
9558
9559 \end_inset
9560
9561 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
9562 \begin_inset Flex Code
9563 status collapsed
9564
9565 \begin_layout Plain Layout
9566 TitleLatexType
9567 \end_layout
9568
9569 \end_inset
9570
9571
9572 \begin_inset Flex Code
9573 status collapsed
9574
9575 \begin_layout Plain Layout
9576 TitleLatexName
9577 \end_layout
9578
9579 \end_inset
9580
9581 も参照)。
9582 \end_layout
9583
9584 \begin_layout Description
9585 \begin_inset Flex Code
9586 status collapsed
9587
9588 \begin_layout Plain Layout
9589 ItemSep
9590 \end_layout
9591
9592 \end_inset
9593
9594  [
9595 \begin_inset Flex Code
9596 status collapsed
9597
9598 \begin_layout Plain Layout
9599 浮動小数点型=0
9600 \end_layout
9601
9602 \end_inset
9603
9604 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 ParSep
9610 \end_layout
9611
9612 \end_inset
9613
9614 だけ分離されます。しかし、その環境の項目全体は、さらにこの
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 ItemSep
9620 \end_layout
9621
9622 \end_inset
9623
9624 分だけ離されます。これは
9625 \emph on
9626 乗数
9627 \emph default
9628 であることに注意してください。
9629 \end_layout
9630
9631 \begin_layout Description
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 ItemTag
9637 \end_layout
9638
9639 \end_inset
9640
9641  [[FIXME]] (XML型書式でのみ使用されます。)
9642 \end_layout
9643
9644 \begin_layout Description
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 KeepEmpty
9650 \end_layout
9651
9652 \end_inset
9653
9654  [
9655 \emph on
9656
9657 \begin_inset Flex Code
9658 status collapsed
9659
9660 \begin_layout Plain Layout
9661 0
9662 \end_layout
9663
9664 \end_inset
9665
9666
9667 \emph default
9668 ,
9669 \begin_inset space \thinspace{}
9670 \end_inset
9671
9672
9673 \begin_inset Flex Code
9674 status collapsed
9675
9676 \begin_layout Plain Layout
9677 1
9678 \end_layout
9679
9680 \end_inset
9681
9682 ] 段落を空のままにすると、LaTeX出力が空になってしまうので、通常、LyXは段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場
9683 合が存在します。たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを
9684 実際には文章を含まないある種の改行として使用することもあります。
9685 \end_layout
9686
9687 \begin_layout Description
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 LabelBottomsep
9693 \end_layout
9694
9695 \end_inset
9696
9697  [
9698 \begin_inset Flex Code
9699 status collapsed
9700
9701 \begin_layout Plain Layout
9702 浮動小数点型=0
9703 \end_layout
9704
9705 \end_inset
9706
9707 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
9708 \begin_inset Flex Code
9709 status collapsed
9710
9711 \begin_layout Plain Layout
9712 Top_Environment
9713 \end_layout
9714
9715 \end_inset
9716
9717 および
9718 \begin_inset Newline linebreak
9719 \end_inset
9720
9721
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 Centered_Top_Environment
9727 \end_layout
9728
9729 \end_inset
9730
9731 )。
9732 \end_layout
9733
9734 \begin_layout Description
9735 \begin_inset Flex Code
9736 status collapsed
9737
9738 \begin_layout Plain Layout
9739 LabelCounter
9740 \end_layout
9741
9742 \end_inset
9743
9744  [
9745 \begin_inset Flex Code
9746 status collapsed
9747
9748 \begin_layout Plain Layout
9749 文字列=""
9750 \end_layout
9751
9752 \end_inset
9753
9754 ] 自動連番に使われるカウンタ名(詳しくは第
9755 \begin_inset CommandInset ref
9756 LatexCommand ref
9757 reference "sub:カウンタ"
9758
9759 \end_inset
9760
9761 節参照)。
9762 \begin_inset Newline newline
9763 \end_inset
9764
9765
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 LabelType
9771 \end_layout
9772
9773 \end_inset
9774
9775
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 Counter
9781 \end_layout
9782
9783 \end_inset
9784
9785 型のときには、本項目は
9786 \emph on
9787 必須
9788 \emph default
9789 です。この場合には、この様式が出現するたびにカウンタが増えます。
9790 \begin_inset Newline newline
9791 \end_inset
9792
9793 また、
9794 \begin_inset Flex Code
9795 status collapsed
9796
9797 \begin_layout Plain Layout
9798 LabelType
9799 \end_layout
9800
9801 \end_inset
9802
9803
9804 \begin_inset Flex Code
9805 status collapsed
9806
9807 \begin_layout Plain Layout
9808 Enumerate
9809 \end_layout
9810
9811 \end_inset
9812
9813 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
9814 \begin_inset Flex Code
9815 status collapsed
9816
9817 \begin_layout Plain Layout
9818 LabelCounter myenum
9819 \end_layout
9820
9821 \end_inset
9822
9823 」と宣言したものとしましょう。すると、LaTeXにおけるのと同様、実際に使われるカウンタは、
9824 \begin_inset Flex Code
9825 status collapsed
9826
9827 \begin_layout Plain Layout
9828 myenumi
9829 \end_layout
9830
9831 \end_inset
9832
9833
9834 \begin_inset Flex Code
9835 status collapsed
9836
9837 \begin_layout Plain Layout
9838 myenumii
9839 \end_layout
9840
9841 \end_inset
9842
9843
9844 \begin_inset Flex Code
9845 status collapsed
9846
9847 \begin_layout Plain Layout
9848 myenumii
9849 \end_layout
9850
9851 \end_inset
9852
9853
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 myenumiv
9859 \end_layout
9860
9861 \end_inset
9862
9863 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
9864 \begin_inset Newline newline
9865 \end_inset
9866
9867 カウンタの詳細については、第
9868 \begin_inset CommandInset ref
9869 LatexCommand ref
9870 reference "sub:カウンタ"
9871
9872 \end_inset
9873
9874 節をご覧ください。
9875 \end_layout
9876
9877 \begin_layout Description
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 LabelFont
9883 \end_layout
9884
9885 \end_inset
9886
9887  ラベルに使用されるフォント。第
9888 \begin_inset CommandInset ref
9889 LatexCommand ref
9890 reference "sub:フォント指定"
9891
9892 \end_inset
9893
9894 節を参照。
9895 \end_layout
9896
9897 \begin_layout Description
9898 \begin_inset Flex Code
9899 status collapsed
9900
9901 \begin_layout Plain Layout
9902 LabelIndent
9903 \end_layout
9904
9905 \end_inset
9906
9907  [
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 文字列=""
9913 \end_layout
9914
9915 \end_inset
9916
9917 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
9918 \end_layout
9919
9920 \begin_layout Description
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 LabelSep
9926 \end_layout
9927
9928 \end_inset
9929
9930  [
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 文字列=""
9936 \end_layout
9937
9938 \end_inset
9939
9940
9941 \lang english
9942 Text that indicates the amount of
9943 \lang japanese
9944 ラベルと本文テキストの間の水平余白。本文テキストの上に来ないラベルにのみ使用されます。
9945 \end_layout
9946
9947 \begin_layout Description
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 LabelString
9953 \end_layout
9954
9955 \end_inset
9956
9957  [
9958 \begin_inset Flex Code
9959 status collapsed
9960
9961 \begin_layout Plain Layout
9962 文字列=""
9963 \end_layout
9964
9965 \end_inset
9966
9967
9968 \begin_inset Flex Code
9969 status collapsed
9970
9971 \begin_layout Plain Layout
9972 Static
9973 \end_layout
9974
9975 \end_inset
9976
9977 ラベル型でラベルに使用する文字列。
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 LabelCounter
9983 \end_layout
9984
9985 \end_inset
9986
9987 を設定している場合、第
9988 \begin_inset CommandInset ref
9989 LatexCommand ref
9990 reference "sub:カウンタ"
9991
9992 \end_inset
9993
9994 節に述べられている特別な整形コマンドを含めることができます。
9995 \end_layout
9996
9997 \begin_layout Description
9998 \begin_inset Flex Code
9999 status collapsed
10000
10001 \begin_layout Plain Layout
10002 LabelStringAppendix
10003 \end_layout
10004
10005 \end_inset
10006
10007  [
10008 \begin_inset Flex Code
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012 文字列=""
10013 \end_layout
10014
10015 \end_inset
10016
10017 ] これは付録の中で
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 LabelString
10023 \end_layout
10024
10025 \end_inset
10026
10027 の代わりに用いられます。各
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 LabelString
10033 \end_layout
10034
10035 \end_inset
10036
10037 ステートメントは、
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042 LabelStringAppendix
10043 \end_layout
10044
10045 \end_inset
10046
10047 をもリセットすることに注意してください。
10048 \end_layout
10049
10050 \begin_layout Description
10051 \begin_inset Flex Code
10052 status collapsed
10053
10054 \begin_layout Plain Layout
10055 LabelTag
10056 \end_layout
10057
10058 \end_inset
10059
10060  [FIXME] (XML型書式でのみ使用されます。)
10061 \end_layout
10062
10063 \begin_layout Description
10064 \begin_inset Flex Code
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068 LabelType
10069 \end_layout
10070
10071 \end_inset
10072
10073  [
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078
10079 \emph on
10080 No_Label
10081 \emph default
10082 , Manual, Static, Top_Environment,
10083 \begin_inset Newline newline
10084 \end_inset
10085
10086 Centered_Top_Environment, Counter, Sensitive, Enumerate,
10087 \begin_inset Newline newline
10088 \end_inset
10089
10090 Itemize, Bibliography
10091 \end_layout
10092
10093 \end_inset
10094
10095 ]
10096 \end_layout
10097
10098 \begin_deeper
10099 \begin_layout Description
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 Manual
10105 \end_layout
10106
10107 \end_inset
10108
10109  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
10110 \end_layout
10111
10112 \begin_layout Description
10113 \begin_inset Flex Code
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 Static
10118 \end_layout
10119
10120 \end_inset
10121
10122  は、ラベルが
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 LabelString
10128 \end_layout
10129
10130 \end_inset
10131
10132 で宣言したものであることを示します。これは「静的」であることに注意してください。
10133 \end_layout
10134
10135 \begin_layout Description
10136 \begin_inset Flex Code
10137 status collapsed
10138
10139 \begin_layout Plain Layout
10140 Top_Environment
10141 \end_layout
10142
10143 \end_inset
10144
10145
10146 \begin_inset Flex Code
10147 status collapsed
10148
10149 \begin_layout Plain Layout
10150 Centered_Top_Environment
10151 \end_layout
10152
10153 \end_inset
10154
10155  は、
10156 \begin_inset Flex Code
10157 status collapsed
10158
10159 \begin_layout Plain Layout
10160 Static
10161 \end_layout
10162
10163 \end_inset
10164
10165 の特別な場合です。ラベルは段落の上に印字されるのですが、それは単一の環境の上か、このレイアウトを持つ連続した段落群の上だけに印字されます。たとえば、
10166 \begin_inset Flex MenuItem
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170 Abstract
10171 \end_layout
10172
10173 \end_inset
10174
10175 レイアウトが使用したりします。
10176 \end_layout
10177
10178 \begin_layout Description
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 Sensitive
10184 \end_layout
10185
10186 \end_inset
10187
10188  はキャプションラベルの「図」や「表」の特別な場合です。
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 Sensitive
10194 \end_layout
10195
10196 \end_inset
10197
10198 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
10199 Type N」にハードコードされています。
10200 \lang english
10201 For the case that a caption is inserted outside of a float 
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206
10207 \lang english
10208 LabelString
10209 \end_layout
10210
10211 \end_inset
10212
10213  should be set to e.
10214 \begin_inset space \thinspace{}
10215 \end_inset
10216
10217 g
10218 \begin_inset space \space{}
10219 \end_inset
10220
10221
10222 \begin_inset Quotes eld
10223 \end_inset
10224
10225 Senseless!
10226 \begin_inset Quotes erd
10227 \end_inset
10228
10229 .
10230 \end_layout
10231
10232 \begin_layout Description
10233 \begin_inset Flex Code
10234 status collapsed
10235
10236 \begin_layout Plain Layout
10237 Counter
10238 \end_layout
10239
10240 \end_inset
10241
10242  ラベル型は、自動的に連番が付されるラベルを定義します。
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247 LabelString
10248 \end_layout
10249
10250 \end_inset
10251
10252 は、それが含むカウンタ参照をすべて解決するために展開されます。これは、たとえば
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 Section 
10258 \backslash
10259 thechapter.
10260 \backslash
10261 thesection
10262 \end_layout
10263
10264 \end_inset
10265
10266 のようになります。第
10267 \begin_inset CommandInset ref
10268 LatexCommand ref
10269 reference "sub:カウンタ"
10270
10271 \end_inset
10272
10273 節を参照してください。
10274 \end_layout
10275
10276 \begin_layout Description
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 Enumerate
10282 \end_layout
10283
10284 \end_inset
10285
10286  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
10287 す。
10288 \end_layout
10289
10290 \begin_layout Description
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 Itemize
10296 \end_layout
10297
10298 \end_inset
10299
10300  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
10301 \end_layout
10302
10303 \begin_layout Description
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 Bibliography
10309 \end_layout
10310
10311 \end_inset
10312
10313  は、LyXで内部的に使用され、
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 LatexType BibEnvironment
10319 \end_layout
10320
10321 \end_inset
10322
10323 とともにのみ使用されます。
10324 \end_layout
10325
10326 \end_deeper
10327 \begin_layout Description
10328 \begin_inset Flex Code
10329 status collapsed
10330
10331 \begin_layout Plain Layout
10332 LangPreamble
10333 \end_layout
10334
10335 \end_inset
10336
10337  これは、この様式で既に出現した
10338 \begin_inset Flex Code
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 LangPreamble
10343 \end_layout
10344
10345 \end_inset
10346
10347 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、第
10348 \begin_inset CommandInset ref
10349 LatexCommand ref
10350 reference "sub:段落様式の国際化"
10351
10352 \end_inset
10353
10354 節をご覧ください。
10355 \end_layout
10356
10357 \begin_layout Description
10358 \begin_inset Flex Code
10359 status collapsed
10360
10361 \begin_layout Plain Layout
10362 LatexName
10363 \end_layout
10364
10365 \end_inset
10366
10367  
10368 \lang english
10369 [
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374
10375 \lang english
10376 <name>
10377 \end_layout
10378
10379 \end_inset
10380
10381
10382 \lang japanese
10383 対応するLaTeXの名称です。環境名かコマンド名を指します。
10384 \end_layout
10385
10386 \begin_layout Description
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 LatexParam
10392 \end_layout
10393
10394 \end_inset
10395
10396  
10397 \lang english
10398 [
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403
10404 \lang english
10405 <parameter>
10406 \end_layout
10407
10408 \end_inset
10409
10410 ]
10411 \lang japanese
10412  対応する
10413 \begin_inset Flex Code
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417 LatexName
10418 \end_layout
10419
10420 \end_inset
10421
10422 の非必須パラメータです。このパラメータは、LyX内部から変更することはできません。
10423 \end_layout
10424
10425 \begin_layout Description
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 LatexType
10431 \end_layout
10432
10433 \end_inset
10434
10435  [
10436 \begin_inset Flex Code
10437 status collapsed
10438
10439 \begin_layout Plain Layout
10440
10441 \emph on
10442 Paragraph
10443 \emph default
10444 , Command, Environment, Item_Environment,
10445 \begin_inset Newline newline
10446 \end_inset
10447
10448 List_Environment, Bib_Environment
10449 \end_layout
10450
10451 \end_inset
10452
10453 ] レイアウトがどのようにLaTeXに変換されるべきかを示します。
10454 \begin_inset Foot
10455 status collapsed
10456
10457 \begin_layout Plain Layout
10458 これらのルールはDocBookクラスにも適用されるので、
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 LatexType
10464 \end_layout
10465
10466 \end_inset
10467
10468 の名称は、少しミスリーディングかもしれません。特定の例については、DocBook
10469 \lang english
10470 (filenames 
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475
10476 \lang english
10477 db_*.inc
10478 \end_layout
10479
10480 \end_inset
10481
10482  )
10483 \lang japanese
10484 クラスファイルを見てください。
10485 \end_layout
10486
10487 \end_inset
10488
10489
10490 \end_layout
10491
10492 \begin_deeper
10493 \begin_layout Description
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 Paragraph
10499 \end_layout
10500
10501 \end_inset
10502
10503  は、何も特別なことは意味しません。
10504 \end_layout
10505
10506 \begin_layout Description
10507 \begin_inset Flex Code
10508 status collapsed
10509
10510 \begin_layout Plain Layout
10511 Command
10512 \end_layout
10513
10514 \end_inset
10515
10516  は、
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521
10522 \backslash
10523
10524 \emph on
10525 LatexName
10526 \emph default
10527 {\SpecialChar \ldots{}
10528 }
10529 \end_layout
10530
10531 \end_inset
10532
10533 を意味します。
10534 \end_layout
10535
10536 \begin_layout Description
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 Environment
10542 \end_layout
10543
10544 \end_inset
10545
10546  は、
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551
10552 \backslash
10553 begin{
10554 \emph on
10555 LatexName
10556 \emph default
10557 }\SpecialChar \ldots{}
10558
10559 \backslash
10560 end{
10561 \emph on
10562 LatexName
10563 \emph default
10564 }
10565 \end_layout
10566
10567 \end_inset
10568
10569 を意味します。
10570 \end_layout
10571
10572 \begin_layout Description
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577 Item_Environment
10578 \end_layout
10579
10580 \end_inset
10581
10582  は
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 Environment
10588 \end_layout
10589
10590 \end_inset
10591
10592 と同じですが、
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597
10598 \backslash
10599 item
10600 \end_layout
10601
10602 \end_inset
10603
10604 がこの環境のすべての段落に付けられるところだけが異なっています。
10605 \end_layout
10606
10607 \begin_layout Description
10608 \begin_inset Flex Code
10609 status collapsed
10610
10611 \begin_layout Plain Layout
10612 List_Environment
10613 \end_layout
10614
10615 \end_inset
10616
10617  は
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 Item_Environment
10623 \end_layout
10624
10625 \end_inset
10626
10627 と同じですが、
10628 \begin_inset Flex Code
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 LabelWidthString
10633 \end_layout
10634
10635 \end_inset
10636
10637 が環境の引数として渡されるところだけが異なっています。
10638 \begin_inset Flex Code
10639 status collapsed
10640
10641 \begin_layout Plain Layout
10642 LabelWidthString
10643 \end_layout
10644
10645 \end_inset
10646
10647 は、
10648 \begin_inset Flex MenuItem
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 編集\SpecialChar \menuseparator
10653 段落設定
10654 \end_layout
10655
10656 \end_inset
10657
10658 ダイアログで定義することができます。
10659 \end_layout
10660
10661 \begin_layout Description
10662
10663 \lang english
10664 \begin_inset Flex Code
10665 status collapsed
10666
10667 \begin_layout Plain Layout
10668
10669 \lang english
10670 Bib_Environment
10671 \end_layout
10672
10673 \end_inset
10674
10675  is like 
10676 \begin_inset Flex Code
10677 status collapsed
10678
10679 \begin_layout Plain Layout
10680
10681 \lang english
10682 Environment
10683 \end_layout
10684
10685 \end_inset
10686
10687  but adds additionally the necessary mandatory argument (the longest label)
10688  to the begin statement of the bibliography environment:
10689 \begin_inset Newline newline
10690 \end_inset
10691
10692
10693 \begin_inset Flex Code
10694 status collapsed
10695
10696 \begin_layout Plain Layout
10697
10698 \lang english
10699
10700 \backslash
10701 begin{thebibliography}{99}
10702 \end_layout
10703
10704 \end_inset
10705
10706  It is therefore only useful for bibliography environments.
10707  The default longest label 
10708 \begin_inset Quotes eld
10709 \end_inset
10710
10711 99
10712 \begin_inset Quotes erd
10713 \end_inset
10714
10715  can be changed by the user in the paragraph settings of a bibliography
10716  item.
10717 \end_layout
10718
10719 \begin_layout Standard
10720 上記最後のいくつかをまとめると、LaTeX出力は、LaTeX型に依存して
10721 \end_layout
10722
10723 \begin_layout LyX-Code
10724
10725 \backslash
10726 LatexName[LatexParam]{\SpecialChar \ldots{}
10727 }
10728 \end_layout
10729
10730 \begin_layout Standard
10731 のようになるか、
10732 \end_layout
10733
10734 \begin_layout LyX-Code
10735
10736 \backslash
10737 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
10738  
10739 \backslash
10740 end{LatexName}.
10741 \end_layout
10742
10743 \begin_layout Standard
10744 となります。
10745 \end_layout
10746
10747 \end_deeper
10748 \begin_layout Description
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753 LeftMargin
10754 \end_layout
10755
10756 \end_inset
10757
10758  [
10759 \begin_inset Flex Code
10760 status collapsed
10761
10762 \begin_layout Plain Layout
10763 文字列=""
10764 \end_layout
10765
10766 \end_inset
10767
10768 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
10769 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
10770 \end_inset
10771
10772 をかけて加えられます。このパラメータは、
10773 \begin_inset Flex Code
10774 status collapsed
10775
10776 \begin_layout Plain Layout
10777 Margin
10778 \end_layout
10779
10780 \end_inset
10781
10782
10783 \begin_inset Flex Code
10784 status collapsed
10785
10786 \begin_layout Plain Layout
10787 Manual
10788 \end_layout
10789
10790 \end_inset
10791
10792 あるいは
10793 \begin_inset Flex Code
10794 status collapsed
10795
10796 \begin_layout Plain Layout
10797 Dynamic
10798 \end_layout
10799
10800 \end_inset
10801
10802 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
10803 \begin_inset Newline newline
10804 \end_inset
10805
10806 たとえば「
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 MM
10812 \end_layout
10813
10814 \end_inset
10815
10816 」と指定すると、段落を通常フォントの「
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 MM
10822 \end_layout
10823
10824 \end_inset
10825
10826 」の幅だけ行頭下げを行います。文字列の前に「
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831 -
10832 \end_layout
10833
10834 \end_inset
10835
10836 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
10837 \end_layout
10838
10839 \begin_layout Description
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 Margin
10845 \end_layout
10846
10847 \end_inset
10848
10849  [
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854
10855 \emph on
10856 Static
10857 \emph default
10858 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10859 \end_layout
10860
10861 \end_inset
10862
10863
10864 \begin_inset Newline newline
10865 \end_inset
10866
10867 このレイアウトの左余白の種類です。
10868 \end_layout
10869
10870 \begin_deeper
10871 \begin_layout Description
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 Static
10877 \end_layout
10878
10879 \end_inset
10880
10881  は固定余白を示します。
10882 \end_layout
10883
10884 \begin_layout Description
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 Manual
10890 \end_layout
10891
10892 \end_inset
10893
10894  は、左余白が
10895 \begin_inset Flex MenuItem
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899 編集\SpecialChar \menuseparator
10900 段落設定
10901 \end_layout
10902
10903 \end_inset
10904
10905 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
10906 \end_layout
10907
10908 \begin_layout Description
10909 \begin_inset Flex Code
10910 status collapsed
10911
10912 \begin_layout Plain Layout
10913 Dynamic
10914 \end_layout
10915
10916 \end_inset
10917
10918  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
10919  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
10920 \end_layout
10921
10922 \begin_layout Description
10923 \begin_inset Flex Code
10924 status collapsed
10925
10926 \begin_layout Plain Layout
10927 First_Dynamic
10928 \end_layout
10929
10930 \end_inset
10931
10932  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
10933 \end_layout
10934
10935 \begin_layout Description
10936 \begin_inset Flex Code
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 Right_Address_Box
10941 \end_layout
10942
10943 \end_inset
10944
10945  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
10946 \end_layout
10947
10948 \end_deeper
10949 \begin_layout Description
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 NeedProtect
10955 \end_layout
10956
10957 \end_inset
10958
10959  [
10960 \begin_inset Flex Code
10961 status collapsed
10962
10963 \begin_layout Plain Layout
10964
10965 \emph on
10966 0
10967 \end_layout
10968
10969 \end_inset
10970
10971 ,
10972 \begin_inset space \thinspace{}
10973 \end_inset
10974
10975
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 1
10981 \end_layout
10982
10983 \end_inset
10984
10985 ] このレイアウト中の脆弱なコマンドが
10986 \begin_inset Flex Code
10987 status collapsed
10988
10989 \begin_layout Plain Layout
10990
10991 \backslash
10992 protect
10993 \end_layout
10994
10995 \end_inset
10996
10997 されるべきか否か(註:これはこのコマンド自体が
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002
11003 \backslash
11004 protect
11005 \end_layout
11006
11007 \end_inset
11008
11009 されるべきかでは
11010 \emph on
11011 ありません
11012 \emph default
11013 )。
11014 \end_layout
11015
11016 \begin_layout Description
11017 \begin_inset Flex Code
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 Newline
11022 \end_layout
11023
11024 \end_inset
11025
11026  [
11027 \begin_inset Flex Code
11028 status collapsed
11029
11030 \begin_layout Plain Layout
11031 0
11032 \end_layout
11033
11034 \end_inset
11035
11036 ,
11037 \begin_inset space \thinspace{}
11038 \end_inset
11039
11040
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045
11046 \emph on
11047 1
11048 \end_layout
11049
11050 \end_inset
11051
11052 ] 新規行をLaTeXの新規行(
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057
11058 \backslash
11059
11060 \backslash
11061
11062 \end_layout
11063
11064 \end_inset
11065
11066 )に変換するか否か。LyX中でLaTeX編集をやりやすくするために、変換は無効にすることができます。
11067 \end_layout
11068
11069 \begin_layout Description
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 NextNoIndent
11075 \end_layout
11076
11077 \end_inset
11078
11079  [
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084
11085 \emph on
11086 0
11087 \end_layout
11088
11089 \end_inset
11090
11091 ,
11092 \begin_inset space \thinspace{}
11093 \end_inset
11094
11095
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 1
11101 \end_layout
11102
11103 \end_inset
11104
11105 ] 次の段落に最初の行の行頭下げを許すか否か。
11106 \begin_inset Flex Code
11107 status collapsed
11108
11109 \begin_layout Plain Layout
11110 1
11111 \end_layout
11112
11113 \end_inset
11114
11115 は許可しないことを意味し、
11116 \begin_inset Flex Code
11117 status collapsed
11118
11119 \begin_layout Plain Layout
11120 0
11121 \end_layout
11122
11123 \end_inset
11124
11125 は望むならば行頭下げできることを意味します。
11126 \end_layout
11127
11128 \begin_layout Description
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133 ObsoletedBy
11134 \end_layout
11135
11136 \end_inset
11137
11138  
11139 \lang english
11140 [
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145
11146 \lang english
11147 <name>
11148 \end_layout
11149
11150 \end_inset
11151
11152 ]
11153 \lang japanese
11154  このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
11155 \end_layout
11156
11157 \begin_layout Description
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 OptionalArgs
11163 \end_layout
11164
11165 \end_inset
11166
11167  [
11168 \begin_inset Flex Code
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172 整数型=0
11173 \end_layout
11174
11175 \end_inset
11176
11177 ] このレイアウトに使用することのできる非必須引数の数。節見出しのようなものに有用であり、LaTeXでのみ意味を持ちます。出力時には、非必須引数は、すべての必須
11178 引数の前に来ることに注意してください(以下参照)。つまり、
11179 \end_layout
11180
11181 \begin_deeper
11182 \begin_layout LyX-Code
11183
11184 \backslash
11185 mycmd[非必須引数1]{必須引数1}{段落の内容}
11186 \end_layout
11187
11188 \begin_layout Standard
11189 のようなコマンドは生成できますが、
11190 \end_layout
11191
11192 \begin_layout LyX-Code
11193
11194 \backslash
11195 mycmd[非必須引数1]{必須引数1}[非必須引数2]{段落の内容}
11196 \end_layout
11197
11198 \begin_layout Standard
11199 のようなコマンドは、TeXコード(これを使えば何でもできます)を使用することなしには、生成することができません。
11200 \end_layout
11201
11202 \end_deeper
11203 \begin_layout Description
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208 ParbreakIsNewline
11209 \end_layout
11210
11211 \end_inset
11212
11213  [
11214 \begin_inset Flex Code
11215 status collapsed
11216
11217 \begin_layout Plain Layout
11218
11219 \emph on
11220 0
11221 \end_layout
11222
11223 \end_inset
11224
11225 ,
11226 \begin_inset space \thinspace{}
11227 \end_inset
11228
11229
11230 \begin_inset Flex Code
11231 status collapsed
11232
11233 \begin_layout Plain Layout
11234 1
11235 \end_layout
11236
11237 \end_inset
11238
11239 ] LaTeX出力中で、段落を空行ではなく、改行で区切るよう指定します。
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 PassThru 1
11245 \end_layout
11246
11247 \end_inset
11248
11249 と併用すれば、(TeXコードを使用したときのように)テキストエディタをエミュレートすることができます。
11250 \end_layout
11251
11252 \begin_layout Description
11253 \begin_inset Flex Code
11254 status collapsed
11255
11256 \begin_layout Plain Layout
11257 ParIndent
11258 \end_layout
11259
11260 \end_inset
11261
11262  [
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 文字列=""
11268 \end_layout
11269
11270 \end_inset
11271
11272 ] 段落の最初の行の行頭下げ。レイアウトによっては
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 Parindent
11278 \end_layout
11279
11280 \end_inset
11281
11282 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
11283 \begin_inset Flex Code
11284 status collapsed
11285
11286 \begin_layout Plain Layout
11287 NextNoIndent
11288 \end_layout
11289
11290 \end_inset
11291
11292 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
11293 \begin_inset Flex Code
11294 status collapsed
11295
11296 \begin_layout Plain Layout
11297 Parindent
11298 \end_layout
11299
11300 \end_inset
11301
11302 ではなく、この環境の
11303 \begin_inset Flex Code
11304 status collapsed
11305
11306 \begin_layout Plain Layout
11307 Parindent
11308 \end_layout
11309
11310 \end_inset
11311
11312 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
11313 \end_layout
11314
11315 \begin_layout Description
11316 \begin_inset Flex Code
11317 status collapsed
11318
11319 \begin_layout Plain Layout
11320 ParSep
11321 \end_layout
11322
11323 \end_inset
11324
11325  [
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 浮動小数点型=0
11331 \end_layout
11332
11333 \end_inset
11334
11335 ] このレイアウトの2段落間の垂直余白。
11336 \end_layout
11337
11338 \begin_layout Description
11339 \begin_inset Flex Code
11340 status collapsed
11341
11342 \begin_layout Plain Layout
11343 Parskip
11344 \end_layout
11345
11346 \end_inset
11347
11348  [
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353 浮動小数点型=0
11354 \end_layout
11355
11356 \end_inset
11357
11358 ] LyXでは、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ
11359 」を選択した際には、LaTeX型「段落」レイアウトの
11360 \begin_inset Flex Code
11361 status collapsed
11362
11363 \begin_layout Plain Layout
11364 ParIndent
11365 \end_layout
11366
11367 \end_inset
11368
11369 は無視され、すべての段落はこの
11370 \begin_inset Flex Code
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 Parskip
11375 \end_layout
11376
11377 \end_inset
11378
11379 引数分だけ引き離されます。垂直余白は、
11380 \begin_inset Flex Code
11381 status collapsed
11382
11383 \begin_layout Plain Layout
11384 DefaultHeight
11385 \end_layout
11386
11387 \end_inset
11388
11389 を標準フォントでの1行の高さとすると、
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 Parskipの値
11395 \end_layout
11396
11397 \end_inset
11398
11399
11400 \begin_inset Formula $\times$
11401 \end_inset
11402
11403
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 DefaultHeight
11409 \end_layout
11410
11411 \end_inset
11412
11413 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
11414 \end_layout
11415
11416 \begin_layout Description
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 PassThru
11422 \end_layout
11423
11424 \end_inset
11425
11426  [
11427 \emph on
11428
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 0
11434 \end_layout
11435
11436 \end_inset
11437
11438
11439 \emph default
11440 ,
11441 \begin_inset space \thinspace{}
11442 \end_inset
11443
11444
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449 1
11450 \end_layout
11451
11452 \end_inset
11453
11454 ] この段落の内容が、LaTeXが必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
11455 \end_layout
11456
11457 \begin_layout Description
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 Preamble
11463 \end_layout
11464
11465 \end_inset
11466
11467  この様式が使用されたときに、LaTeXプリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用
11468 します。「
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 EndPreamble
11474 \end_layout
11475
11476 \end_inset
11477
11478 」で閉じる必要があります。
11479 \end_layout
11480
11481 \begin_layout Description
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 RefPrefix
11487 \end_layout
11488
11489 \end_inset
11490
11491  [
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 文字列
11497 \end_layout
11498
11499 \end_inset
11500
11501 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
11502 \end_layout
11503
11504 \begin_layout Description
11505 \begin_inset Flex Code
11506 status collapsed
11507
11508 \begin_layout Plain Layout
11509 RequiredArgs
11510 \end_layout
11511
11512 \end_inset
11513
11514  [
11515 \begin_inset Flex Code
11516 status collapsed
11517
11518 \begin_layout Plain Layout
11519 整数型=0
11520 \end_layout
11521
11522 \end_inset
11523
11524 ] このレイアウトに対応するLaTeXコマンドやLaTeX環境が予期している、必須引数の数。コマンドの場合には、段落の内容自体に関連付けられている引数
11525 \emph on
11526 以外に
11527 \emph default
11528 、必要な引数の数のことです。これらの引数は、実際には渡されなくても構いません。必要な場合は、LyXが空の引数を生成します。非必須引数は、必須引数の前に出力される
11529 ことに注意してください。詳細については、上記
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534 OptionalArgs
11535 \end_layout
11536
11537 \end_inset
11538
11539 タグにおける議論をご覧ください。
11540 \end_layout
11541
11542 \begin_layout Description
11543 \begin_inset Flex Code
11544 status collapsed
11545
11546 \begin_layout Plain Layout
11547 Requires
11548 \end_layout
11549
11550 \end_inset
11551
11552  [
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 文字列
11558 \end_layout
11559
11560 \end_inset
11561
11562
11563 \lang english
11564 Whether the style requires the feature 
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569
11570 \lang english
11571 string
11572 \end_layout
11573
11574 \end_inset
11575
11576 .
11577  See the description of 
11578 \begin_inset Flex Code
11579 status collapsed
11580
11581 \begin_layout Plain Layout
11582
11583 \lang english
11584 Provides
11585 \end_layout
11586
11587 \end_inset
11588
11589  above (sec
11590 \lang japanese
11591 .
11592 \begin_inset space ~
11593 \end_inset
11594
11595
11596 \begin_inset CommandInset ref
11597 LatexCommand ref
11598 reference "sub:汎用テキストクラスパラメータ"
11599
11600 \end_inset
11601
11602
11603 \lang english
11604 ) for information on `features'
11605 \lang japanese
11606
11607 \end_layout
11608
11609 \begin_layout Description
11610 \begin_inset Flex Code
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 RightMargin
11615 \end_layout
11616
11617 \end_inset
11618
11619  [
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 文字列=""
11625 \end_layout
11626
11627 \end_inset
11628
11629
11630 \begin_inset Flex Code
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634 LeftMargin
11635 \end_layout
11636
11637 \end_inset
11638
11639 に同様。
11640 \end_layout
11641
11642 \begin_layout Description
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647 Spacing
11648 \end_layout
11649
11650 \end_inset
11651
11652  [
11653 \begin_inset Flex Code
11654 status collapsed
11655
11656 \begin_layout Plain Layout
11657
11658 \emph on
11659 single
11660 \end_layout
11661
11662 \end_inset
11663
11664
11665 \begin_inset Flex Code
11666 status collapsed
11667
11668 \begin_layout Plain Layout
11669 onehalf
11670 \end_layout
11671
11672 \end_inset
11673
11674
11675 \begin_inset Flex Code
11676 status collapsed
11677
11678 \begin_layout Plain Layout
11679 double
11680 \end_layout
11681
11682 \end_inset
11683
11684
11685 \begin_inset Flex Code
11686 status collapsed
11687
11688 \begin_layout Plain Layout
11689 other
11690 \begin_inset space ~
11691 \end_inset
11692
11693 <
11694 \emph on
11695
11696 \emph default
11697 >
11698 \end_layout
11699
11700 \end_inset
11701
11702 ]
11703 \lang english
11704  
11705 \lang japanese
11706 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
11707 \begin_inset Flex Code
11708 status collapsed
11709
11710 \begin_layout Plain Layout
11711 single
11712 \end_layout
11713
11714 \end_inset
11715
11716
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 onehalf
11722 \end_layout
11723
11724 \end_inset
11725
11726
11727 \begin_inset Flex Code
11728 status collapsed
11729
11730 \begin_layout Plain Layout
11731 double
11732 \end_layout
11733
11734 \end_inset
11735
11736 は、それぞれ乗数1・1.25・1.667に対応します。引数
11737 \begin_inset Flex Code
11738 status collapsed
11739
11740 \begin_layout Plain Layout
11741 other
11742 \end_layout
11743
11744 \end_inset
11745
11746 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
11747 \begin_inset Flex Code
11748 status collapsed
11749
11750 \begin_layout Plain Layout
11751 Spacing
11752 \end_layout
11753
11754 \end_inset
11755
11756 は、
11757 \lang english
11758 LaTeX package
11759 \lang japanese
11760
11761 \begin_inset Flex Code
11762 status collapsed
11763
11764 \begin_layout Plain Layout
11765 setspace
11766 \end_layout
11767
11768 \end_inset
11769
11770 パッケージを使用した、限定的なLaTeXコードを生成することを意味することにご注意ください。
11771 \end_layout
11772
11773 \begin_layout Description
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 Spellcheck
11779 \end_layout
11780
11781 \end_inset
11782
11783  [
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 0
11789 \end_layout
11790
11791 \end_inset
11792
11793 ,
11794 \begin_inset space \thinspace{}
11795 \end_inset
11796
11797
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 1
11803 \end_layout
11804
11805 \end_inset
11806
11807 ] この様式の段落をスペルチェックするか否か。既定値は真です。
11808 \end_layout
11809
11810 \begin_layout Description
11811 \begin_inset Flex Code
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 TextFont
11816 \end_layout
11817
11818 \end_inset
11819
11820  本文に使うフォント。第
11821 \begin_inset CommandInset ref
11822 LatexCommand ref
11823 reference "sub:フォント指定"
11824
11825 \end_inset
11826
11827 節参照。
11828 \end_layout
11829
11830 \begin_layout Description
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835 TocLevel
11836 \end_layout
11837
11838 \end_inset
11839
11840  [
11841 \begin_inset Flex Code
11842 status collapsed
11843
11844 \begin_layout Plain Layout
11845 整数型=3
11846 \end_layout
11847
11848 \end_inset
11849
11850 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
11851 \end_layout
11852
11853 \begin_layout Description
11854 \begin_inset Flex Code
11855 status collapsed
11856
11857 \begin_layout Plain Layout
11858 TopSep
11859 \end_layout
11860
11861 \end_inset
11862
11863  [
11864 \begin_inset Flex Code
11865 status collapsed
11866
11867 \begin_layout Plain Layout
11868 浮動小数点型=0
11869 \end_layout
11870
11871 \end_inset
11872
11873 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
11874 の最大値がとられます。
11875 \end_layout
11876
11877 \begin_layout Subsection
11878 \begin_inset CommandInset label
11879 LatexCommand label
11880 name "sub:段落様式の国際化"
11881
11882 \end_inset
11883
11884 段落様式の国際化
11885 \end_layout
11886
11887 \begin_layout Standard
11888 LyXは、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用さ
11889 れませんでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
11890 \lang french
11891 Théorème
11892 \lang japanese
11893  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
11894 \end_layout
11895
11896 \begin_layout Standard
11897 もし
11898 \begin_inset Flex MenuItem
11899 status collapsed
11900
11901 \begin_layout Plain Layout
11902 Style
11903 \end_layout
11904
11905 \end_inset
11906
11907 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
11908 \begin_inset Flex MenuItem
11909 status collapsed
11910
11911 \begin_layout Plain Layout
11912 LangPreamble
11913 \end_layout
11914
11915 \end_inset
11916
11917
11918 \begin_inset Flex MenuItem
11919 status collapsed
11920
11921 \begin_layout Plain Layout
11922 BabelPreamble
11923 \end_layout
11924
11925 \end_inset
11926
11927 を使用することができます。以下の抜粋(
11928 \begin_inset Flex MenuItem
11929 status collapsed
11930
11931 \begin_layout Plain Layout
11932 theorems-ams.inc
11933 \end_layout
11934
11935 \end_inset
11936
11937 より)は、これがどう動作するかを示すものです。
11938 \end_layout
11939
11940 \begin_layout LyX-Code
11941 Preamble
11942 \end_layout
11943
11944 \begin_deeper
11945 \begin_layout LyX-Code
11946   
11947 \backslash
11948 theoremstyle{remark}
11949 \end_layout
11950
11951 \begin_layout LyX-Code
11952   
11953 \backslash
11954 newtheorem{claim}[thm]{
11955 \backslash
11956 protect
11957 \backslash
11958 claimname}
11959 \end_layout
11960
11961 \begin_layout LyX-Code
11962 EndPreamble
11963 \end_layout
11964
11965 \begin_layout LyX-Code
11966 LangPreamble
11967 \end_layout
11968
11969 \begin_layout LyX-Code
11970   
11971 \backslash
11972 providecommand{
11973 \backslash
11974 claimname}{_(Claim)}
11975 \end_layout
11976
11977 \begin_layout LyX-Code
11978 EndLangPreamble
11979 \end_layout
11980
11981 \begin_layout LyX-Code
11982 BabelPreamble
11983 \end_layout
11984
11985 \begin_layout LyX-Code
11986     
11987 \backslash
11988 addto
11989 \backslash
11990 captions$$lang{
11991 \backslash
11992 renewcommand{
11993 \backslash
11994 claimname}{_(Claim)}}
11995 \end_layout
11996
11997 \begin_layout LyX-Code
11998 EndBabelPreamble
11999 \end_layout
12000
12001 \end_deeper
12002 \begin_layout Standard
12003 原則として、
12004 \begin_inset Flex MenuItem
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 LangPreamble
12009 \end_layout
12010
12011 \end_inset
12012
12013
12014 \begin_inset Flex MenuItem
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 BabelPreamble
12019 \end_layout
12020
12021 \end_inset
12022
12023 タグ内には、有効なLaTeXコードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための
12024 鍵となるのは、LaTeXコマンド
12025 \begin_inset Flex Code
12026 status collapsed
12027
12028 \begin_layout Plain Layout
12029
12030 \backslash
12031 claimname
12032 \end_layout
12033
12034 \end_inset
12035
12036 とその
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041
12042 \backslash
12043 newtheorem
12044 \end_layout
12045
12046 \end_inset
12047
12048 中での用い方です。
12049 \end_layout
12050
12051 \begin_layout Standard
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 LangPreamble
12057 \end_layout
12058
12059 \end_inset
12060
12061 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 Preamble
12067 \end_layout
12068
12069 \end_inset
12070
12071 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076 _()
12077 \end_layout
12078
12079 \end_inset
12080
12081 が使用されていることです。これは、LyXがLaTeX出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
12082 \end_layout
12083
12084 \begin_layout Standard
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 BabelPreamble
12090 \end_layout
12091
12092 \end_inset
12093
12094 タグは、複数言語文書をサポートし、
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 babel
12100 \end_layout
12101
12102 \end_inset
12103
12104 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
12105 の場合には、
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110 _()
12111 \end_layout
12112
12113 \end_inset
12114
12115 の引数は、その当該言語への翻訳で置き換えられ、
12116 \begin_inset Flex Code
12117 status collapsed
12118
12119 \begin_layout Plain Layout
12120 $$lang
12121 \end_layout
12122
12123 \end_inset
12124
12125 は言語名(babelパッケージで使用されるもの)で置き換えられます。
12126 \end_layout
12127
12128 \begin_layout Standard
12129 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
12130 \end_layout
12131
12132 \begin_layout LyX-Code
12133
12134 \backslash
12135 addto
12136 \backslash
12137 captionsfrench{
12138 \backslash
12139 renewcommand{
12140 \backslash
12141 claimname}{Affirmation}}
12142 \begin_inset Newline newline
12143 \end_inset
12144
12145
12146 \backslash
12147 addto
12148 \backslash
12149 captionsngerman{
12150 \backslash
12151 renewcommand{
12152 \backslash
12153 claimname}{Behauptung}}
12154 \begin_inset Newline newline
12155 \end_inset
12156
12157
12158 \backslash
12159 providecommand{
12160 \backslash
12161 claimname}{Behauptung}
12162 \end_layout
12163
12164 \begin_layout Standard
12165 それから、LaTeXと
12166 \begin_inset Flex Code
12167 status collapsed
12168
12169 \begin_layout Plain Layout
12170 babel
12171 \end_layout
12172
12173 \end_inset
12174
12175 は協力して、出力に正しい文字列を生成します。
12176 \end_layout
12177
12178 \begin_layout Standard
12179 ここで注意しなくてはならない重要な点は、翻訳は、操作画面の国際化に使われるのと同じ機構を通じて、LyX自身によって提供されるということです。つまり、ユーザー作成
12180 のレイアウトファイルに入力された文字列は、LyXの国際化ルーチンでは取り扱われないので、
12181 \begin_inset Flex MenuItem
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 LangPreamble
12186 \end_layout
12187
12188 \end_inset
12189
12190
12191 \begin_inset Flex MenuItem
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 BabelPreamble
12196 \end_layout
12197
12198 \end_inset
12199
12200 は、事実上、LyXとともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的にLyXに同梱
12201 させようという意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。
12202 \end_layout
12203
12204 \begin_layout Subsection
12205 フロート
12206 \begin_inset CommandInset label
12207 LatexCommand label
12208 name "sub:フロート"
12209
12210 \end_inset
12211
12212
12213 \end_layout
12214
12215 \begin_layout Standard
12216 LyX第1.3.0版以来、テキストクラス自体の中でフロート(
12217 \begin_inset Flex MenuItem
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221 figure
12222 \end_layout
12223
12224 \end_inset
12225
12226
12227 \begin_inset Flex MenuItem
12228 status collapsed
12229
12230 \begin_layout Plain Layout
12231 table
12232 \end_layout
12233
12234 \end_inset
12235
12236 ・\SpecialChar \ldots{}
12237 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
12238 \begin_inset Flex Code
12239 status collapsed
12240
12241 \begin_layout Plain Layout
12242 stdfloats.inc
12243 \end_layout
12244
12245 \end_inset
12246
12247 ファイルに含まれているので、作業中のレイアウトファイルに
12248 \end_layout
12249
12250 \begin_layout LyX-Code
12251 Input stdfloats.inc
12252 \end_layout
12253
12254 \begin_layout Standard
12255 と加えるだけで済むことも多いでしょう。LyXに同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つ
12256 でありましょう。
12257 \end_layout
12258
12259 \begin_layout Description
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264 Extension
12265 \end_layout
12266
12267 \end_inset
12268
12269  [
12270 \begin_inset Flex Code
12271 status collapsed
12272
12273 \begin_layout Plain Layout
12274 文字列
12275 \end_layout
12276
12277 \end_inset
12278
12279 =
12280 \begin_inset Quotes erd
12281 \end_inset
12282
12283
12284 \begin_inset Quotes erd
12285 \end_inset
12286
12287 ] 図などのリストを含む外部ファイルのファイル拡張子名。LaTeXがキャプションを書き込むファイルです。
12288 \end_layout
12289
12290 \begin_layout Description
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 GuiName
12296 \end_layout
12297
12298 \end_inset
12299
12300  [
12301 \begin_inset Flex Code
12302 status collapsed
12303
12304 \begin_layout Plain Layout
12305 文字列
12306 \end_layout
12307
12308 \end_inset
12309
12310 =
12311 \begin_inset Quotes erd
12312 \end_inset
12313
12314
12315 \begin_inset Quotes erd
12316 \end_inset
12317
12318 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
12319 \end_layout
12320
12321 \begin_layout Description
12322 \begin_inset Flex Code
12323 status collapsed
12324
12325 \begin_layout Plain Layout
12326 HTML*
12327 \end_layout
12328
12329 \end_inset
12330
12331  これらは、XHTML出力で使用されます。第
12332 \begin_inset CommandInset ref
12333 LatexCommand ref
12334 reference "sec:XHTML出力のタグ"
12335
12336 \end_inset
12337
12338 節をご覧ください。
12339 \end_layout
12340
12341 \begin_layout Description
12342 \begin_inset Flex Code
12343 status collapsed
12344
12345 \begin_layout Plain Layout
12346 IsPredefined
12347 \end_layout
12348
12349 \end_inset
12350
12351  [
12352 \begin_inset Flex Code
12353 status collapsed
12354
12355 \begin_layout Plain Layout
12356
12357 \emph on
12358 0
12359 \end_layout
12360
12361 \end_inset
12362
12363 ,
12364 \begin_inset space \thinspace{}
12365 \end_inset
12366
12367
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 1
12373 \end_layout
12374
12375 \end_inset
12376
12377 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは
12378 \lang english
12379 LaTeX package
12380 \lang japanese
12381
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 float
12387 \end_layout
12388
12389 \end_inset
12390
12391 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 0
12397 \end_layout
12398
12399 \end_inset
12400
12401 で、この場合
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 float
12407 \end_layout
12408
12409 \end_inset
12410
12411 を使用します。LaTeXドキュメントクラス中に既に定義されているときには、
12412 \begin_inset Flex Code
12413 status collapsed
12414
12415 \begin_layout Plain Layout
12416 0
12417 \end_layout
12418
12419 \end_inset
12420
12421 に設定しなくてはなりません。
12422 \end_layout
12423
12424 \begin_layout Description
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 ListCommand
12430 \end_layout
12431
12432 \end_inset
12433
12434  [
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439 文字列
12440 \end_layout
12441
12442 \end_inset
12443
12444 =
12445 \begin_inset Quotes erd
12446 \end_inset
12447
12448
12449 \begin_inset Quotes erd
12450 \end_inset
12451
12452 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
12453 \backslash
12454 」は書きません。
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459 NeedsFloatPkg
12460 \end_layout
12461
12462 \end_inset
12463
12464 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
12465 \emph on
12466 必ず
12467 \emph default
12468 指定しなくてはなりません。
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473 NeedsFloatPkg
12474 \end_layout
12475
12476 \end_inset
12477
12478 が真の時は、標準的な方法が存在するので、これは無視されます。
12479 \end_layout
12480
12481 \begin_layout Description
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 ListName
12487 \end_layout
12488
12489 \end_inset
12490
12491  [
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496 文字列
12497 \end_layout
12498
12499 \end_inset
12500
12501 =
12502 \begin_inset Quotes erd
12503 \end_inset
12504
12505
12506 \begin_inset Quotes erd
12507 \end_inset
12508
12509 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。LyX中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La
12510 TeXに渡され、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
12511 \end_layout
12512
12513 \begin_layout Description
12514 \begin_inset Flex Code
12515 status collapsed
12516
12517 \begin_layout Plain Layout
12518 NumberWithin
12519 \end_layout
12520
12521 \end_inset
12522
12523  [
12524 \begin_inset Flex Code
12525 status collapsed
12526
12527 \begin_layout Plain Layout
12528 文字列
12529 \end_layout
12530
12531 \end_inset
12532
12533 =
12534 \begin_inset Quotes erd
12535 \end_inset
12536
12537
12538 \begin_inset Quotes erd
12539 \end_inset
12540
12541 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。
12542 \lang english
12543 For example, if 
12544 \lang japanese
12545
12546 \begin_inset Flex Code
12547 status collapsed
12548
12549 \begin_layout Plain Layout
12550 NumberWithin
12551 \end_layout
12552
12553 \end_inset
12554
12555
12556 \lang english
12557  is set to
12558 \lang japanese
12559
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564 chapter
12565 \end_layout
12566
12567 \end_inset
12568
12569 」と指定されていれば、フロートは章ごとに番号が振り直されます。
12570 \end_layout
12571
12572 \begin_layout Description
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 Placement
12578 \end_layout
12579
12580 \end_inset
12581
12582  [
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 文字列
12588 \end_layout
12589
12590 \end_inset
12591
12592 =
12593 \begin_inset Quotes erd
12594 \end_inset
12595
12596
12597 \begin_inset Quotes erd
12598 \end_inset
12599
12600 ] このクラスのフロートの既定の配置法。文字列は、標準的なLaTeX表記に従い、
12601 \begin_inset Flex Code
12602 status collapsed
12603
12604 \begin_layout Plain Layout
12605 t
12606 \end_layout
12607
12608 \end_inset
12609
12610 ならば上部(top)、
12611 \begin_inset Flex Code
12612 status collapsed
12613
12614 \begin_layout Plain Layout
12615 b
12616 \end_layout
12617
12618 \end_inset
12619
12620 ならば下部(bottom)、
12621 \begin_inset Flex Code
12622 status collapsed
12623
12624 \begin_layout Plain Layout
12625 p
12626 \end_layout
12627
12628 \end_inset
12629
12630 ならばページ(page)、
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635 h
12636 \end_layout
12637
12638 \end_inset
12639
12640 ならばここ(here)を表します
12641 \begin_inset Foot
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 LaTeX同様、文字列中でのこれらの文字の順序は関係ありません。
12646 \end_layout
12647
12648 \end_inset
12649
12650 。これらの他に新しい型
12651 \begin_inset Flex Code
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655 H
12656 \end_layout
12657
12658 \end_inset
12659
12660 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
12661 \begin_inset Flex Code
12662 status collapsed
12663
12664 \begin_layout Plain Layout
12665 H
12666 \end_layout
12667
12668 \end_inset
12669
12670 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
12671 に「
12672 \begin_inset Flex Code
12673 status collapsed
12674
12675 \begin_layout Plain Layout
12676 tbp
12677 \end_layout
12678
12679 \end_inset
12680
12681 」を指定してください。
12682 \end_layout
12683
12684 \begin_layout Description
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 RefPrefix
12690 \end_layout
12691
12692 \end_inset
12693
12694  [
12695 \begin_inset Flex Code
12696 status collapsed
12697
12698 \begin_layout Plain Layout
12699 文字列
12700 \end_layout
12701
12702 \end_inset
12703
12704 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709 RefPrefix
12710 \end_layout
12711
12712 \end_inset
12713
12714 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
12715 \end_layout
12716
12717 \begin_layout Description
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722 Style
12723 \end_layout
12724
12725 \end_inset
12726
12727  [
12728 \begin_inset Flex Code
12729 status collapsed
12730
12731 \begin_layout Plain Layout
12732 文字列
12733 \end_layout
12734
12735 \end_inset
12736
12737 =
12738 \begin_inset Quotes erd
12739 \end_inset
12740
12741
12742 \begin_inset Quotes erd
12743 \end_inset
12744
12745
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750
12751 \backslash
12752 newfloat
12753 \end_layout
12754
12755 \end_inset
12756
12757 を使用してフロートを定義する際に使用される様式。
12758 \end_layout
12759
12760 \begin_layout Description
12761 \begin_inset Flex Code
12762 status collapsed
12763
12764 \begin_layout Plain Layout
12765 Type
12766 \end_layout
12767
12768 \end_inset
12769
12770  [
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 文字列
12776 \end_layout
12777
12778 \end_inset
12779
12780 =
12781 \begin_inset Quotes erd
12782 \end_inset
12783
12784
12785 \begin_inset Quotes erd
12786 \end_inset
12787
12788 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
12789 \begin_inset Flex Code
12790 status collapsed
12791
12792 \begin_layout Plain Layout
12793
12794 \backslash
12795 newfloat
12796 \end_layout
12797
12798 \end_inset
12799
12800 の後で、
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805
12806 \backslash
12807 begin{program}
12808 \end_layout
12809
12810 \end_inset
12811
12812
12813 \begin_inset Flex Code
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817
12818 \backslash
12819 end{algorithm*}
12820 \end_layout
12821
12822 \end_inset
12823
12824 といったコマンドが利用できます。
12825 \end_layout
12826
12827 \begin_layout Description
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 UsesFloatPkg
12833 \end_layout
12834
12835 \end_inset
12836
12837  [
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 0
12843 \end_layout
12844
12845 \end_inset
12846
12847 ,
12848 \begin_inset space \thinspace{}
12849 \end_inset
12850
12851
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856
12857 \emph on
12858 1
12859 \end_layout
12860
12861 \end_inset
12862
12863 ] このフロートが、クラスファイルやパッケージ中で、
12864 \lang english
12865 LaTeX-package
12866 \lang japanese
12867
12868 \begin_inset Flex Code
12869 status collapsed
12870
12871 \begin_layout Plain Layout
12872 float
12873 \end_layout
12874
12875 \end_inset
12876
12877 が提供しているものを使用して定義されているのか、LyX自身がオン・ザ・フライで定義しているのかを示します。
12878 \end_layout
12879
12880 \begin_layout Standard
12881 \begin_inset Flex Code
12882 status collapsed
12883
12884 \begin_layout Plain Layout
12885
12886 \emph on
12887 type
12888 \end_layout
12889
12890 \end_inset
12891
12892 型のフロートを定義すると、自動的に
12893 \emph on
12894 対応する
12895 \emph default
12896
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901
12902 \emph on
12903 type
12904 \end_layout
12905
12906 \end_inset
12907
12908 名カウンタが定義されます。
12909 \end_layout
12910
12911 \begin_layout Subsection
12912 自由差込枠と差込枠レイアウト
12913 \begin_inset CommandInset label
12914 LatexCommand label
12915 name "sub:任意設定差込枠"
12916
12917 \end_inset
12918
12919
12920 \end_layout
12921
12922 \begin_layout Standard
12923 自由差込枠には次の3種類があります。
12924 \end_layout
12925
12926 \begin_layout Itemize
12927 文字様式(
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 CharStyle
12933 \end_layout
12934
12935 \end_inset
12936
12937 )。これは、
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942
12943 \backslash
12944 noun
12945 \end_layout
12946
12947 \end_inset
12948
12949
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954
12955 \backslash
12956 code
12957 \end_layout
12958
12959 \end_inset
12960
12961 などのLaTeXコマンドに対応した意味論的マークアップを定義するものです。
12962 \end_layout
12963
12964 \begin_layout Itemize
12965 ユーザ設定(
12966 \begin_inset Flex Code
12967 status collapsed
12968
12969 \begin_layout Plain Layout
12970 Custom
12971 \end_layout
12972
12973 \end_inset
12974
12975 )。これは、TeXコードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 endnote
12981 \end_layout
12982
12983 \end_inset
12984
12985 モジュール中で定義されています。
12986 \end_layout
12987
12988 \begin_layout Itemize
12989 XML要素(
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 Element
12995 \end_layout
12996
12997 \end_inset
12998
12999 )。DocBookクラスで使用するものです。
13000 \end_layout
13001
13002 \begin_layout Standard
13003 自由差込枠は、以下で説明する
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 InsetLayout
13009 \end_layout
13010
13011 \end_inset
13012
13013 タグを使用して定義されます。
13014 \end_layout
13015
13016 \begin_layout Standard
13017 \begin_inset Flex Code
13018 status collapsed
13019
13020 \begin_layout Plain Layout
13021 InsetLayout
13022 \end_layout
13023
13024 \end_inset
13025
13026 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
13027 \begin_inset Flex Code
13028 status collapsed
13029
13030 \begin_layout Plain Layout
13031 InsetLayout
13032 \end_layout
13033
13034 \end_inset
13035
13036 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・TeXコード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・オプション引数
13037 のレイアウトパラメータを設定するのに使用することができます。
13038 \end_layout
13039
13040 \begin_layout Standard
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045 InsetLayout
13046 \end_layout
13047
13048 \end_inset
13049
13050 定義は以下の形の行では始まらなくてはなりません。
13051 \end_layout
13052
13053 \begin_layout LyX-Code
13054 InsetLayout <型>
13055 \end_layout
13056
13057 \begin_layout Standard
13058 ここで
13059 \begin_inset Flex Code
13060 status collapsed
13061
13062 \begin_layout Plain Layout
13063 <型>
13064 \end_layout
13065
13066 \end_inset
13067
13068 は、レイアウトを定義しようとしている差込枠を指し、以下の2つの場合がありえます。
13069 \end_layout
13070
13071 \begin_layout Enumerate
13072 既存の差込枠のレイアウトを変更する場合。この場合、
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 <型>
13078 \end_layout
13079
13080 \end_inset
13081
13082 は以下のいずれかになります:
13083 \begin_inset Flex Code
13084 status collapsed
13085
13086 \begin_layout Plain Layout
13087 Algorithm
13088 \end_layout
13089
13090 \end_inset
13091
13092
13093 \begin_inset Flex Code
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 Branch
13098 \end_layout
13099
13100 \end_inset
13101
13102
13103 \begin_inset Flex Code
13104 status collapsed
13105
13106 \begin_layout Plain Layout
13107 Box
13108 \end_layout
13109
13110 \end_inset
13111
13112
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117 Box:shaded
13118 \end_layout
13119
13120 \end_inset
13121
13122
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 ERT
13128 \end_layout
13129
13130 \end_inset
13131
13132
13133 \begin_inset Flex Code
13134 status collapsed
13135
13136 \begin_layout Plain Layout
13137 Figure
13138 \end_layout
13139
13140 \end_inset
13141
13142
13143 \begin_inset Flex Code
13144 status collapsed
13145
13146 \begin_layout Plain Layout
13147 Foot
13148 \end_layout
13149
13150 \end_inset
13151
13152
13153 \begin_inset Flex Code
13154 status collapsed
13155
13156 \begin_layout Plain Layout
13157 Index
13158 \end_layout
13159
13160 \end_inset
13161
13162
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167 Info
13168 \end_layout
13169
13170 \end_inset
13171
13172
13173 \begin_inset Flex Code
13174 status collapsed
13175
13176 \begin_layout Plain Layout
13177 Info:menu
13178 \end_layout
13179
13180 \end_inset
13181
13182
13183 \begin_inset Flex Code
13184 status collapsed
13185
13186 \begin_layout Plain Layout
13187 Info:shortcut
13188 \end_layout
13189
13190 \end_inset
13191
13192
13193 \begin_inset Flex Code
13194 status collapsed
13195
13196 \begin_layout Plain Layout
13197 Info:shortcuts
13198 \end_layout
13199
13200 \end_inset
13201
13202
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 Listings
13208 \end_layout
13209
13210 \end_inset
13211
13212
13213 \begin_inset Flex Code
13214 status collapsed
13215
13216 \begin_layout Plain Layout
13217 Marginal
13218 \end_layout
13219
13220 \end_inset
13221
13222
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 Note:Comment
13228 \end_layout
13229
13230 \end_inset
13231
13232
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 Note:Note
13238 \end_layout
13239
13240 \end_inset
13241
13242
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 Note:GreyedOut
13248 \end_layout
13249
13250 \end_inset
13251
13252
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 OptArg
13258 \end_layout
13259
13260 \end_inset
13261
13262
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 Table
13268 \end_layout
13269
13270 \end_inset
13271
13272
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 URL
13278 \end_layout
13279
13280 \end_inset
13281
13282
13283 \end_layout
13284
13285 \begin_layout Enumerate
13286 自由差込枠のレイアウトを定義する場合。この場合、
13287 \begin_inset Flex Code
13288 status collapsed
13289
13290 \begin_layout Plain Layout
13291 <型>
13292 \end_layout
13293
13294 \end_inset
13295
13296
13297 \begin_inset Flex Code
13298 status collapsed
13299
13300 \begin_layout Plain Layout
13301 Flex:<名称>
13302 \end_layout
13303
13304 \end_inset
13305
13306 の形でなくてはなりません。ここで、
13307 \begin_inset Flex Code
13308 status collapsed
13309
13310 \begin_layout Plain Layout
13311 名称
13312 \end_layout
13313
13314 \end_inset
13315
13316 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
13317 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 LyXType
13323 \end_layout
13324
13325 \end_inset
13326
13327 項目が含まれていなくてはならないことに注意してください。
13328 \end_layout
13329
13330 \begin_layout Standard
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 InsetLayout
13336 \end_layout
13337
13338 \end_inset
13339
13340 定義には以下の項目を入れることができます。
13341 \end_layout
13342
13343 \begin_layout Description
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 BgColor
13349 \end_layout
13350
13351 \end_inset
13352
13353  [
13354 \lang english
13355
13356 \begin_inset Flex Code
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360
13361 \lang english
13362 <name>
13363 \end_layout
13364
13365 \end_inset
13366
13367
13368 \lang japanese
13369 ]  差込枠の背景色。
13370 \lang english
13371 See chapter
13372 \begin_inset space ~
13373 \end_inset
13374
13375
13376 \begin_inset CommandInset ref
13377 LatexCommand ref
13378 reference "chap:Names-of-colors"
13379
13380 \end_inset
13381
13382  for a list of the available color names.
13383 \end_layout
13384
13385 \begin_layout Description
13386 \begin_inset Flex Code
13387 status collapsed
13388
13389 \begin_layout Plain Layout
13390 ContentAsLabel
13391 \end_layout
13392
13393 \end_inset
13394
13395  [
13396 \begin_inset Flex Code
13397 status collapsed
13398
13399 \begin_layout Plain Layout
13400
13401 \emph on
13402 0
13403 \end_layout
13404
13405 \end_inset
13406
13407 ,
13408 \begin_inset space \thinspace{}
13409 \end_inset
13410
13411
13412 \begin_inset Flex Code
13413 status collapsed
13414
13415 \begin_layout Plain Layout
13416 1
13417 \end_layout
13418
13419 \end_inset
13420
13421 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
13422 \end_layout
13423
13424 \begin_layout Description
13425 \begin_inset Flex Code
13426 status collapsed
13427
13428 \begin_layout Plain Layout
13429 CopyStyle
13430 \end_layout
13431
13432 \end_inset
13433
13434  [<型>] 
13435 \lang english
13436 As with paragraph styles, see sec.
13437 \begin_inset space ~
13438 \end_inset
13439
13440
13441 \lang japanese
13442
13443 \begin_inset CommandInset ref
13444 LatexCommand ref
13445 reference "sub:段落様式"
13446
13447 \end_inset
13448
13449
13450 \lang english
13451 Note that you need to specify the complete type, e.
13452 \begin_inset space \thinspace{}
13453 \end_inset
13454
13455 g.
13456 \begin_inset space ~
13457 \end_inset
13458
13459
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464
13465 \lang english
13466 CopyStyle Flex:<name>
13467 \end_layout
13468
13469 \end_inset
13470
13471 .
13472 \end_layout
13473
13474 \begin_layout Description
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479 CustomPars
13480 \end_layout
13481
13482 \end_inset
13483
13484  [
13485 \begin_inset Flex Code
13486 status collapsed
13487
13488 \begin_layout Plain Layout
13489
13490 \emph on
13491 0
13492 \end_layout
13493
13494 \end_inset
13495
13496 ,
13497 \begin_inset space \thinspace{}
13498 \end_inset
13499
13500
13501 \begin_inset Flex Code
13502 status collapsed
13503
13504 \begin_layout Plain Layout
13505 1
13506 \end_layout
13507
13508 \end_inset
13509
13510 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
13511 \end_layout
13512
13513 \begin_layout Description
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 Decoration
13519 \end_layout
13520
13521 \end_inset
13522
13523  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 Classic
13529 \end_layout
13530
13531 \end_inset
13532
13533
13534 \begin_inset Flex Code
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 Minimalistic
13539 \end_layout
13540
13541 \end_inset
13542
13543
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548 Conglomerate
13549 \end_layout
13550
13551 \end_inset
13552
13553 のいずれかを指定することができます。脚注は通常
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558 Classic
13559 \end_layout
13560
13561 \end_inset
13562
13563 を使用し、TeXコード差込枠は通常
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 Minimalistic
13569 \end_layout
13570
13571 \end_inset
13572
13573 、文字様式は
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 Conglomerate
13579 \end_layout
13580
13581 \end_inset
13582
13583 を使用します。
13584 \end_layout
13585
13586 \begin_layout Description
13587 \begin_inset Flex Code
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591 Display
13592 \end_layout
13593
13594 \end_inset
13595
13596  [
13597 \begin_inset Flex Code
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601 0
13602 \end_layout
13603
13604 \end_inset
13605
13606 ,
13607 \begin_inset space \thinspace{}
13608 \end_inset
13609
13610
13611 \begin_inset Flex Code
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615
13616 \emph on
13617 1
13618 \end_layout
13619
13620 \end_inset
13621
13622
13623 \begin_inset Flex Code
13624 status collapsed
13625
13626 \begin_layout Plain Layout
13627 LatexType
13628 \end_layout
13629
13630 \end_inset
13631
13632
13633 \begin_inset Flex Code
13634 status collapsed
13635
13636 \begin_layout Plain Layout
13637 Environment
13638 \end_layout
13639
13640 \end_inset
13641
13642 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、LaTeX環境は、
13643 \begin_inset Flex Code
13644 status collapsed
13645
13646 \begin_layout Plain Layout
13647
13648 \backslash
13649 begin{LatexName}
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 \backslash
13661 end{LatexName}
13662 \end_layout
13663
13664 \end_inset
13665
13666 タグの後の空白(改行文字を含む)を無視するものと仮定します。
13667 \end_layout
13668
13669 \begin_layout Description
13670 \begin_inset Flex Code
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 End
13675 \end_layout
13676
13677 \end_inset
13678
13679  
13680 \begin_inset Flex Code
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684 InsetLayout
13685 \end_layout
13686
13687 \end_inset
13688
13689 宣言を閉じるのに必要です。
13690 \end_layout
13691
13692 \begin_layout Description
13693 \begin_inset Flex Code
13694 status collapsed
13695
13696 \begin_layout Plain Layout
13697 Font
13698 \end_layout
13699
13700 \end_inset
13701
13702  本文本体とラベル
13703 \emph on
13704 両方に
13705 \emph default
13706 使用されるフォントです。第
13707 \begin_inset CommandInset ref
13708 LatexCommand ref
13709 reference "sub:フォント指定"
13710
13711 \end_inset
13712
13713 節を参照。このフォントを定義すると自動的に
13714 \begin_inset Flex Code
13715 status collapsed
13716
13717 \begin_layout Plain Layout
13718 LabelFont
13719 \end_layout
13720
13721 \end_inset
13722
13723 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
13724 \begin_inset Flex Code
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 LabelFont
13729 \end_layout
13730
13731 \end_inset
13732
13733 を定義しなくてはならないことに注意してください。
13734 \end_layout
13735
13736 \begin_layout Description
13737 \begin_inset Flex Code
13738 status collapsed
13739
13740 \begin_layout Plain Layout
13741 ForceLTR
13742 \end_layout
13743
13744 \end_inset
13745
13746  [
13747 \begin_inset Flex Code
13748 status collapsed
13749
13750 \begin_layout Plain Layout
13751
13752 \emph on
13753 0
13754 \end_layout
13755
13756 \end_inset
13757
13758 ,
13759 \begin_inset space \thinspace{}
13760 \end_inset
13761
13762
13763 \begin_inset Flex Code
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 1
13768 \end_layout
13769
13770 \end_inset
13771
13772 ] たとえばTeXコードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
13773 \end_layout
13774
13775 \begin_layout Description
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 ForcePlain
13781 \end_layout
13782
13783 \end_inset
13784
13785  [
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790
13791 \emph on
13792 0
13793 \end_layout
13794
13795 \end_inset
13796
13797 ,
13798 \begin_inset space \thinspace{}
13799 \end_inset
13800
13801
13802 \begin_inset Flex Code
13803 status collapsed
13804
13805 \begin_layout Plain Layout
13806 1
13807 \end_layout
13808
13809 \end_inset
13810
13811 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
13812 \end_layout
13813
13814 \begin_layout Description
13815 \begin_inset Flex Code
13816 status collapsed
13817
13818 \begin_layout Plain Layout
13819 FreeSpacing
13820 \end_layout
13821
13822 \end_inset
13823
13824  [
13825 \emph on
13826
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 0
13832 \end_layout
13833
13834 \end_inset
13835
13836
13837 \emph default
13838 ,
13839 \begin_inset space \thinspace{}
13840 \end_inset
13841
13842
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 1
13848 \end_layout
13849
13850 \end_inset
13851
13852
13853 \lang english
13854 As with paragraph styles, see sec.
13855 \begin_inset space ~
13856 \end_inset
13857
13858
13859 \lang japanese
13860
13861 \begin_inset CommandInset ref
13862 LatexCommand ref
13863 reference "sub:段落様式"
13864
13865 \end_inset
13866
13867
13868 \end_layout
13869
13870 \begin_layout Description
13871 \begin_inset Flex Code
13872 status collapsed
13873
13874 \begin_layout Plain Layout
13875 HTML*
13876 \end_layout
13877
13878 \end_inset
13879
13880  これらは、XHTML出力で使用されます。第
13881 \begin_inset CommandInset ref
13882 LatexCommand ref
13883 reference "sec:XHTML出力のタグ"
13884
13885 \end_inset
13886
13887 節をご覧ください。
13888 \end_layout
13889
13890 \begin_layout Description
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 InToc
13896 \end_layout
13897
13898 \end_inset
13899
13900  [
13901 \begin_inset Flex Code
13902 status collapsed
13903
13904 \begin_layout Plain Layout
13905
13906 \emph on
13907 0
13908 \end_layout
13909
13910 \end_inset
13911
13912 ,
13913 \begin_inset space \thinspace{}
13914 \end_inset
13915
13916
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 1
13922 \end_layout
13923
13924 \end_inset
13925
13926 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
13927 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
13928 \end_layout
13929
13930 \begin_layout Description
13931 \begin_inset Flex Code
13932 status collapsed
13933
13934 \begin_layout Plain Layout
13935 KeepEmpty
13936 \end_layout
13937
13938 \end_inset
13939
13940  [
13941 \emph on
13942
13943 \begin_inset Flex Code
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 0
13948 \end_layout
13949
13950 \end_inset
13951
13952
13953 \emph default
13954 ,
13955 \begin_inset space \thinspace{}
13956 \end_inset
13957
13958
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 1
13964 \end_layout
13965
13966 \end_inset
13967
13968
13969 \lang english
13970 As with paragraph styles, see sec.
13971 \begin_inset space ~
13972 \end_inset
13973
13974
13975 \lang japanese
13976
13977 \begin_inset CommandInset ref
13978 LatexCommand ref
13979 reference "sub:段落様式"
13980
13981 \end_inset
13982
13983
13984 \end_layout
13985
13986 \begin_layout Description
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 LabelFont
13992 \end_layout
13993
13994 \end_inset
13995
13996  ラベルに使用されるフォント。第
13997 \begin_inset CommandInset ref
13998 LatexCommand ref
13999 reference "sub:フォント指定"
14000
14001 \end_inset
14002
14003 節を参照。非効率を回避するため、この定義は
14004 \begin_inset Flex Code
14005 status collapsed
14006
14007 \begin_layout Plain Layout
14008 Font
14009 \end_layout
14010
14011 \end_inset
14012
14013 の前には決して現れてはなりません。
14014 \end_layout
14015
14016 \begin_layout Description
14017 \begin_inset Flex Code
14018 status collapsed
14019
14020 \begin_layout Plain Layout
14021 LabelString
14022 \end_layout
14023
14024 \end_inset
14025
14026  [
14027 \begin_inset Flex Code
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 文字列
14032 \end_layout
14033
14034 \end_inset
14035
14036 =
14037 \begin_inset Quotes erd
14038 \end_inset
14039
14040
14041 \begin_inset Quotes erd
14042 \end_inset
14043
14044 ]
14045 \lang english
14046  
14047 \lang japanese
14048 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(TeXコードや派生枝)、ラベルが動的に変更されます。
14049 \end_layout
14050
14051 \begin_layout Description
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056 LatexName
14057 \end_layout
14058
14059 \end_inset
14060
14061  [
14062 \lang english
14063
14064 \begin_inset Flex Code
14065 status collapsed
14066
14067 \begin_layout Plain Layout
14068
14069 \lang english
14070 <name>
14071 \end_layout
14072
14073 \end_inset
14074
14075
14076 \lang japanese
14077 ] 対応するLaTeX関連物の名称。環境名ないしはコマンド名。
14078 \end_layout
14079
14080 \begin_layout Description
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 LatexParam
14086 \end_layout
14087
14088 \end_inset
14089
14090  
14091 \lang english
14092 [
14093 \begin_inset Flex Code
14094 status collapsed
14095
14096 \begin_layout Plain Layout
14097
14098 \lang english
14099 <parameter>
14100 \end_layout
14101
14102 \end_inset
14103
14104
14105 \lang japanese
14106 対応する
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 LatexName
14112 \end_layout
14113
14114 \end_inset
14115
14116 関連物の非必須パラメータ。
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 []
14122 \end_layout
14123
14124 \end_inset
14125
14126 のような括弧対を含む。このパラメータはLyX内部から変更することはできません。
14127 \end_layout
14128
14129 \begin_layout Description
14130 \begin_inset Flex Code
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 LatexType
14135 \end_layout
14136
14137 \end_inset
14138
14139  
14140 \lang english
14141 As with paragraph styles, see sec.
14142 \begin_inset space ~
14143 \end_inset
14144
14145
14146 \lang japanese
14147
14148 \begin_inset CommandInset ref
14149 LatexCommand ref
14150 reference "sub:段落様式"
14151
14152 \end_inset
14153
14154
14155 \end_layout
14156
14157 \begin_layout Description
14158 \begin_inset Flex Code
14159 status collapsed
14160
14161 \begin_layout Plain Layout
14162 LyxType
14163 \end_layout
14164
14165 \end_inset
14166
14167  
14168 \begin_inset Flex Code
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172 charstyle
14173 \end_layout
14174
14175 \end_inset
14176
14177
14178 \begin_inset Flex Code
14179 status collapsed
14180
14181 \begin_layout Plain Layout
14182 custom
14183 \end_layout
14184
14185 \end_inset
14186
14187
14188 \begin_inset Flex Code
14189 status collapsed
14190
14191 \begin_layout Plain Layout
14192 element
14193 \end_layout
14194
14195 \end_inset
14196
14197
14198 \begin_inset Flex Code
14199 status collapsed
14200
14201 \begin_layout Plain Layout
14202 end
14203 \end_layout
14204
14205 \end_inset
14206
14207 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
14208 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
14209 \begin_inset Flex Code
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213 LyxType
14214 \end_layout
14215
14216 \end_inset
14217
14218
14219 \begin_inset Flex Code
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223 charstyle
14224 \end_layout
14225
14226 \end_inset
14227
14228 に設定すると、
14229 \begin_inset Flex Code
14230 status collapsed
14231
14232 \begin_layout Plain Layout
14233 MultiPar
14234 \end_layout
14235
14236 \end_inset
14237
14238 が偽に設定されます。文字様式差込枠で
14239 \begin_inset Flex Code
14240 status collapsed
14241
14242 \begin_layout Plain Layout
14243 MultiPar
14244 \end_layout
14245
14246 \end_inset
14247
14248 を真にしたい時には、
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 LyxType
14254 \end_layout
14255
14256 \end_inset
14257
14258 を設定した
14259 \emph on
14260 後に
14261 \emph default
14262 設定すれば、真に設定することができます。
14263 \end_layout
14264
14265 \begin_layout Description
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270 MultiPar
14271 \end_layout
14272
14273 \end_inset
14274
14275  [
14276 \begin_inset Flex Code
14277 status collapsed
14278
14279 \begin_layout Plain Layout
14280
14281 \emph on
14282 0
14283 \end_layout
14284
14285 \end_inset
14286
14287 ,
14288 \begin_inset space \thinspace{}
14289 \end_inset
14290
14291
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296 1
14297 \end_layout
14298
14299 \end_inset
14300
14301 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 CustomPars
14307 \end_layout
14308
14309 \end_inset
14310
14311 を同じ値に設定し、
14312 \begin_inset Flex Code
14313 status collapsed
14314
14315 \begin_layout Plain Layout
14316 ForcePlain
14317 \end_layout
14318
14319 \end_inset
14320
14321 を逆の値に設定します。これらは、
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326 MultiPar
14327 \end_layout
14328
14329 \end_inset
14330
14331
14332 \emph on
14333 後に
14334 \emph default
14335 指定されれば、他の値に指定し直すことができます。既定値は真です。
14336 \end_layout
14337
14338 \begin_layout Description
14339 \begin_inset Flex Code
14340 status collapsed
14341
14342 \begin_layout Plain Layout
14343 NeedProtect
14344 \end_layout
14345
14346 \end_inset
14347
14348  [
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353
14354 \emph on
14355 0
14356 \end_layout
14357
14358 \end_inset
14359
14360 ,
14361 \begin_inset space \thinspace{}
14362 \end_inset
14363
14364
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369 1
14370 \end_layout
14371
14372 \end_inset
14373
14374 ] 本レイアウト中で脆弱なコマンドを
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379
14380 \backslash
14381 protect
14382 \end_layout
14383
14384 \end_inset
14385
14386 するか否か(註:当該コマンド自身をprotectするかどうかでは
14387 \emph on
14388 ありません
14389 \emph default
14390 )。既定値は偽です。
14391 \end_layout
14392
14393 \begin_layout Description
14394 \begin_inset Flex Code
14395 status collapsed
14396
14397 \begin_layout Plain Layout
14398 ParbreakIsNewline
14399 \end_layout
14400
14401 \end_inset
14402
14403  [
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408
14409 \emph on
14410 0
14411 \end_layout
14412
14413 \end_inset
14414
14415 ,
14416 \begin_inset space \thinspace{}
14417 \end_inset
14418
14419
14420 \begin_inset Flex Code
14421 status collapsed
14422
14423 \begin_layout Plain Layout
14424 1
14425 \end_layout
14426
14427 \end_inset
14428
14429
14430 \lang english
14431 As with paragraph styles, see sec.
14432 \begin_inset space ~
14433 \end_inset
14434
14435
14436 \lang japanese
14437
14438 \begin_inset CommandInset ref
14439 LatexCommand ref
14440 reference "sub:段落様式"
14441
14442 \end_inset
14443
14444
14445 \end_layout
14446
14447 \begin_layout Description
14448 \begin_inset Flex Code
14449 status collapsed
14450
14451 \begin_layout Plain Layout
14452 PassThru
14453 \end_layout
14454
14455 \end_inset
14456
14457  [
14458 \emph on
14459
14460 \begin_inset Flex Code
14461 status collapsed
14462
14463 \begin_layout Plain Layout
14464 0
14465 \end_layout
14466
14467 \end_inset
14468
14469
14470 \emph default
14471 ,
14472 \begin_inset space \thinspace{}
14473 \end_inset
14474
14475
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480 1
14481 \end_layout
14482
14483 \end_inset
14484
14485
14486 \lang english
14487 As with paragraph styles, see sec.
14488 \begin_inset space ~
14489 \end_inset
14490
14491
14492 \lang japanese
14493
14494 \begin_inset CommandInset ref
14495 LatexCommand ref
14496 reference "sub:段落様式"
14497
14498 \end_inset
14499
14500
14501 \end_layout
14502
14503 \begin_layout Description
14504 \begin_inset Flex Code
14505 status collapsed
14506
14507 \begin_layout Plain Layout
14508 Preamble
14509 \end_layout
14510
14511 \end_inset
14512
14513  
14514 \lang english
14515 As with paragraph styles, see sec.
14516 \begin_inset space ~
14517 \end_inset
14518
14519
14520 \lang japanese
14521
14522 \begin_inset CommandInset ref
14523 LatexCommand ref
14524 reference "sub:段落様式"
14525
14526 \end_inset
14527
14528
14529 \end_layout
14530
14531 \begin_layout Description
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536 RefPrefix
14537 \end_layout
14538
14539 \end_inset
14540
14541  [
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 文字列
14547 \end_layout
14548
14549 \end_inset
14550
14551 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
14552 \end_layout
14553
14554 \begin_layout Description
14555 \begin_inset Flex Code
14556 status collapsed
14557
14558 \begin_layout Plain Layout
14559 Requires
14560 \end_layout
14561
14562 \end_inset
14563
14564  [
14565 \begin_inset Flex Code
14566 status collapsed
14567
14568 \begin_layout Plain Layout
14569 文字列
14570 \end_layout
14571
14572 \end_inset
14573
14574
14575 \lang english
14576 As with paragraph styles, see sec.
14577 \begin_inset space ~
14578 \end_inset
14579
14580
14581 \lang japanese
14582
14583 \begin_inset CommandInset ref
14584 LatexCommand ref
14585 reference "sub:段落様式"
14586
14587 \end_inset
14588
14589
14590 \end_layout
14591
14592 \begin_layout Description
14593 \begin_inset Flex Code
14594 status collapsed
14595
14596 \begin_layout Plain Layout
14597 ResetFont
14598 \end_layout
14599
14600 \end_inset
14601
14602  [
14603 \begin_inset Flex Code
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607 0
14608 \end_layout
14609
14610 \end_inset
14611
14612 ,
14613 \begin_inset space \thinspace{}
14614 \end_inset
14615
14616
14617 \begin_inset Flex Code
14618 status collapsed
14619
14620 \begin_layout Plain Layout
14621
14622 \emph on
14623 1
14624 \end_layout
14625
14626 \end_inset
14627
14628 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
14629 \end_layout
14630
14631 \begin_layout Description
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 Spellcheck
14637 \end_layout
14638
14639 \end_inset
14640
14641  [
14642 \begin_inset Flex Code
14643 status collapsed
14644
14645 \begin_layout Plain Layout
14646 0
14647 \end_layout
14648
14649 \end_inset
14650
14651 ,
14652 \begin_inset space \thinspace{}
14653 \end_inset
14654
14655
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660
14661 \emph on
14662 1
14663 \end_layout
14664
14665 \end_inset
14666
14667 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
14668 \end_layout
14669
14670 \begin_layout Subsection
14671 カウンタ
14672 \begin_inset CommandInset label
14673 LatexCommand label
14674 name "sub:カウンタ"
14675
14676 \end_inset
14677
14678
14679 \end_layout
14680
14681 \begin_layout Standard
14682
14683 \lang english
14684 It is necessary to define the counters
14685 \lang japanese
14686
14687 \begin_inset Flex MenuItem
14688 status collapsed
14689
14690 \begin_layout Plain Layout
14691 chapter
14692 \end_layout
14693
14694 \end_inset
14695
14696
14697 \begin_inset Flex MenuItem
14698 status collapsed
14699
14700 \begin_layout Plain Layout
14701 figure
14702 \end_layout
14703
14704 \end_inset
14705
14706 ・\SpecialChar \ldots{}
14707 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14708 \begin_inset Flex Code
14709 status collapsed
14710
14711 \begin_layout Plain Layout
14712 stdcounters.inc
14713 \end_layout
14714
14715 \end_inset
14716
14717 ファイルに含まれているので、作業中のレイアウトファイルに
14718 \end_layout
14719
14720 \begin_layout LyX-Code
14721 Input stdcounters.inc
14722 \end_layout
14723
14724 \begin_layout Standard
14725 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
14726 \end_layout
14727
14728 \begin_layout LyX-Code
14729 Counter カウンタ名
14730 \end_layout
14731
14732 \begin_layout Standard
14733 で始まらなくてはなりません。ここで「
14734 \begin_inset Flex Code
14735 status collapsed
14736
14737 \begin_layout Plain Layout
14738 カウンタ名
14739 \end_layout
14740
14741 \end_inset
14742
14743 」は、実際のカウンタ名で置き換えます。また、宣言は「
14744 \begin_inset Flex Code
14745 status collapsed
14746
14747 \begin_layout Plain Layout
14748 End
14749 \end_layout
14750
14751 \end_inset
14752
14753 」で終わらなくてはなりません。
14754 \end_layout
14755
14756 \begin_layout Standard
14757 以下のパラメータを使用することができます。
14758 \end_layout
14759
14760 \begin_layout Description
14761 \begin_inset Flex Code
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765 LabelString [文字列=""]
14766 \end_layout
14767
14768 \end_inset
14769
14770  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
14771 \begin_inset Flex Code
14772 status collapsed
14773
14774 \begin_layout Plain Layout
14775 LabelStringAppendix
14776 \end_layout
14777
14778 \end_inset
14779
14780 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
14781 \end_layout
14782
14783 \begin_deeper
14784 \begin_layout Itemize
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789
14790 \backslash
14791 thecounter
14792 \end_layout
14793
14794 \end_inset
14795
14796 は、カウンタ
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 counter
14802 \end_layout
14803
14804 \end_inset
14805
14806
14807 \begin_inset Flex Code
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 LabelString
14812 \end_layout
14813
14814 \end_inset
14815
14816 (または
14817 \begin_inset Newline linebreak
14818 \end_inset
14819
14820
14821 \begin_inset Flex Code
14822 status collapsed
14823
14824 \begin_layout Plain Layout
14825 LabelStringAppendix
14826 \end_layout
14827
14828 \end_inset
14829
14830 )を展開したもので置き換えられます。 
14831 \end_layout
14832
14833 \begin_layout Itemize
14834 カウンタ値は、LaTeX型マクロ
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839
14840 \backslash
14841
14842 \emph on
14843 numbertype
14844 \emph default
14845 {
14846 \emph on
14847 カウンタ
14848 \emph default
14849 }
14850 \end_layout
14851
14852 \end_inset
14853
14854 を用いて表現することができます。ここで
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859
14860 \emph on
14861 numbertype
14862 \end_layout
14863
14864 \end_inset
14865
14866 は以下のいずれかです。
14867 \begin_inset Flex Code
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871 arabic
14872 \end_layout
14873
14874 \end_inset
14875
14876 :1, 2, 3,\SpecialChar \ldots{}
14877
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 alph
14883 \end_layout
14884
14885 \end_inset
14886
14887 :a, b, c, \SpecialChar \ldots{}
14888 (小文字);
14889 \begin_inset Flex Code
14890 status collapsed
14891
14892 \begin_layout Plain Layout
14893 Alph
14894 \end_layout
14895
14896 \end_inset
14897
14898 :A, B, C, \SpecialChar \ldots{}
14899 (大文字);
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904 roman
14905 \end_layout
14906
14907 \end_inset
14908
14909 :i, ii, iii, \SpecialChar \ldots{}
14910 (小文字ローマ数字);
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 Roman
14916 \end_layout
14917
14918 \end_inset
14919
14920 :I, II, III\SpecialChar \ldots{}
14921 (大文字ローマ数字)。
14922 \end_layout
14923
14924 \end_deeper
14925 \begin_layout Standard
14926 \begin_inset Flex Code
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930 LabelString
14931 \end_layout
14932
14933 \end_inset
14934
14935 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 master
14941 \end_layout
14942
14943 \end_inset
14944
14945
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 Within
14951 \end_layout
14952
14953 \end_inset
14954
14955 で定義)があるときには、文字列
14956 \begin_inset Newline linebreak
14957 \end_inset
14958
14959
14960 \begin_inset Flex Code
14961 status collapsed
14962
14963 \begin_layout Plain Layout
14964
14965 \backslash
14966 themaster.
14967 \backslash
14968 arabic{カウンタ}
14969 \end_layout
14970
14971 \end_inset
14972
14973 が使用されます。それ以外の場合は、
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978
14979 \backslash
14980 arabic{カウンタ}
14981 \end_layout
14982
14983 \end_inset
14984
14985 が使用されます。
14986 \end_layout
14987
14988 \begin_layout Description
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 LabelStringAppendix
14994 \end_layout
14995
14996 \end_inset
14997
14998  [
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 文字列
15004 \end_layout
15005
15006 \end_inset
15007
15008 =""] 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 LabelString
15014 \end_layout
15015
15016 \end_inset
15017
15018 と同様ですが、付録で使用するためのものです。
15019 \end_layout
15020
15021 \begin_layout Description
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 PrettyFormat
15027 \end_layout
15028
15029 \end_inset
15030
15031  [
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 文字列
15037 \end_layout
15038
15039 \end_inset
15040
15041 =
15042 \begin_inset Quotes erd
15043 \end_inset
15044
15045
15046 \begin_inset Quotes erd
15047 \end_inset
15048
15049 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
15050 \begin_inset space ~
15051 \end_inset
15052
15053 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
15054 す。
15055 \end_layout
15056
15057 \begin_layout Description
15058 \begin_inset Flex Code
15059 status collapsed
15060
15061 \begin_layout Plain Layout
15062 Within
15063 \end_layout
15064
15065 \end_inset
15066
15067  [
15068 \begin_inset Flex Code
15069 status collapsed
15070
15071 \begin_layout Plain Layout
15072 文字列
15073 \end_layout
15074
15075 \end_inset
15076
15077 =
15078 \begin_inset Quotes erd
15079 \end_inset
15080
15081
15082 \begin_inset Quotes erd
15083 \end_inset
15084
15085 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
15086 \begin_inset Flex Code
15087 status collapsed
15088
15089 \begin_layout Plain Layout
15090 subsection
15091 \end_layout
15092
15093 \end_inset
15094
15095
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 section
15101 \end_layout
15102
15103 \end_inset
15104
15105 毎に番号がリセットされます。
15106 \end_layout
15107
15108 \begin_layout Subsection
15109 フォント指定
15110 \begin_inset CommandInset label
15111 LatexCommand label
15112 name "sub:フォント指定"
15113
15114 \end_inset
15115
15116
15117 \end_layout
15118
15119 \begin_layout Standard
15120 フォント指定は、以下のような形を取ります。
15121 \end_layout
15122
15123 \begin_layout LyX-Code
15124 Font 
15125 \family roman
15126 \emph on
15127 または
15128 \family default
15129 \emph default
15130  LabelFont 
15131 \family roman
15132 \emph on
15133 または
15134 \family default
15135 \emph default
15136  DefaultFont
15137 \end_layout
15138
15139 \begin_layout LyX-Code
15140  ...
15141 \end_layout
15142
15143 \begin_layout LyX-Code
15144 EndFont
15145 \end_layout
15146
15147 \begin_layout Standard
15148 以下のコマンドを使用することができます。
15149 \end_layout
15150
15151 \begin_layout Description
15152 \begin_inset Flex Code
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 Color
15157 \end_layout
15158
15159 \end_inset
15160
15161  [
15162 \begin_inset Flex Code
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166
15167 \emph on
15168 none
15169 \end_layout
15170
15171 \end_inset
15172
15173
15174 \begin_inset Flex Code
15175 status collapsed
15176
15177 \begin_layout Plain Layout
15178 black
15179 \end_layout
15180
15181 \end_inset
15182
15183
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 white
15189 \end_layout
15190
15191 \end_inset
15192
15193
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 red
15199 \end_layout
15200
15201 \end_inset
15202
15203
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208 green
15209 \end_layout
15210
15211 \end_inset
15212
15213
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 blue
15219 \end_layout
15220
15221 \end_inset
15222
15223
15224 \begin_inset Flex Code
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228 cyan
15229 \end_layout
15230
15231 \end_inset
15232
15233
15234 \begin_inset Flex Code
15235 status collapsed
15236
15237 \begin_layout Plain Layout
15238 magenta
15239 \end_layout
15240
15241 \end_inset
15242
15243
15244 \begin_inset Flex Code
15245 status collapsed
15246
15247 \begin_layout Plain Layout
15248 yellow
15249 \end_layout
15250
15251 \end_inset
15252
15253 ]
15254 \end_layout
15255
15256 \begin_layout Description
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 Family
15262 \end_layout
15263
15264 \end_inset
15265
15266  [
15267 \emph on
15268
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 Roman
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \emph default
15280
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285 Sans
15286 \end_layout
15287
15288 \end_inset
15289
15290
15291 \begin_inset Flex Code
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295 Typewriter
15296 \end_layout
15297
15298 \end_inset
15299
15300
15301 \end_layout
15302
15303 \begin_layout Description
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 Misc
15309 \end_layout
15310
15311 \end_inset
15312
15313  [
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318 文字列
15319 \end_layout
15320
15321 \end_inset
15322
15323 ] 有効な引数は、
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 emph
15329 \end_layout
15330
15331 \end_inset
15332
15333
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 noun
15339 \end_layout
15340
15341 \end_inset
15342
15343
15344 \begin_inset Flex Code
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348 strikeout
15349 \end_layout
15350
15351 \end_inset
15352
15353
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358 underbar
15359 \end_layout
15360
15361 \end_inset
15362
15363
15364 \begin_inset Flex Code
15365 status collapsed
15366
15367 \begin_layout Plain Layout
15368 uuline
15369 \end_layout
15370
15371 \end_inset
15372
15373
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 uwave
15379 \end_layout
15380
15381 \end_inset
15382
15383
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388 no_emph
15389 \end_layout
15390
15391 \end_inset
15392
15393
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 no_noun
15399 \end_layout
15400
15401 \end_inset
15402
15403
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 no_strikeout
15409 \end_layout
15410
15411 \end_inset
15412
15413
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 no_bar
15419 \end_layout
15420
15421 \end_inset
15422
15423
15424 \begin_inset Flex Code
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428 no_uuline
15429 \end_layout
15430
15431 \end_inset
15432
15433
15434 \begin_inset Flex Code
15435 status collapsed
15436
15437 \begin_layout Plain Layout
15438 no_uwave
15439 \end_layout
15440
15441 \end_inset
15442
15443 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
15444 \begin_inset Newline newline
15445 \end_inset
15446
15447 たとえば、
15448 \begin_inset Flex Code
15449 status collapsed
15450
15451 \begin_layout Plain Layout
15452 emph
15453 \end_layout
15454
15455 \end_inset
15456
15457 は強調を有効にし、
15458 \begin_inset Flex Code
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462 no_emph
15463 \end_layout
15464
15465 \end_inset
15466
15467 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
15468
15469 \begin_inset Flex Code
15470 status collapsed
15471
15472 \begin_layout Plain Layout
15473 no_emph
15474 \end_layout
15475
15476 \end_inset
15477
15478 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
15479 \end_layout
15480
15481 \begin_layout Description
15482 \begin_inset Flex Code
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486 Series
15487 \end_layout
15488
15489 \end_inset
15490
15491  [
15492 \emph on
15493
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 Medium
15499 \end_layout
15500
15501 \end_inset
15502
15503
15504 \emph default
15505
15506 \begin_inset Flex Code
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 Bold
15511 \end_layout
15512
15513 \end_inset
15514
15515
15516 \end_layout
15517
15518 \begin_layout Description
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 Shape
15524 \end_layout
15525
15526 \end_inset
15527
15528  [
15529 \emph on
15530
15531 \begin_inset Flex Code
15532 status collapsed
15533
15534 \begin_layout Plain Layout
15535 Up
15536 \end_layout
15537
15538 \end_inset
15539
15540
15541 \emph default
15542
15543 \begin_inset Flex Code
15544 status collapsed
15545
15546 \begin_layout Plain Layout
15547 Italic
15548 \end_layout
15549
15550 \end_inset
15551
15552
15553 \begin_inset Flex Code
15554 status collapsed
15555
15556 \begin_layout Plain Layout
15557 SmallCaps
15558 \end_layout
15559
15560 \end_inset
15561
15562
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 Slanted
15568 \end_layout
15569
15570 \end_inset
15571
15572
15573 \end_layout
15574
15575 \begin_layout Description
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 Size
15581 \end_layout
15582
15583 \end_inset
15584
15585  [
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 tiny
15591 \end_layout
15592
15593 \end_inset
15594
15595
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 small
15601 \end_layout
15602
15603 \end_inset
15604
15605
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610
15611 \emph on
15612 normal
15613 \end_layout
15614
15615 \end_inset
15616
15617
15618 \begin_inset Flex Code
15619 status collapsed
15620
15621 \begin_layout Plain Layout
15622 large
15623 \end_layout
15624
15625 \end_inset
15626
15627
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 larger
15633 \end_layout
15634
15635 \end_inset
15636
15637
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 largest
15643 \end_layout
15644
15645 \end_inset
15646
15647
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 huge
15653 \end_layout
15654
15655 \end_inset
15656
15657
15658 \begin_inset Flex Code
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 giant
15663 \end_layout
15664
15665 \end_inset
15666
15667 ]
15668 \end_layout
15669
15670 \begin_layout Subsection
15671 \begin_inset CommandInset label
15672 LatexCommand label
15673 name "sub:引用書式指定"
15674
15675 \end_inset
15676
15677 引用書式指定
15678 \end_layout
15679
15680 \begin_layout Standard
15681 (引用ダイアログやツールチップなどの)LyX内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
15682 \begin_inset Flex Code
15683 status collapsed
15684
15685 \begin_layout Plain Layout
15686 CiteFormat
15687 \end_layout
15688
15689 \end_inset
15690
15691 ブロックが使用されています。このブロックは、以下のような形をしています。
15692 \end_layout
15693
15694 \begin_layout LyX-Code
15695 CiteFormat
15696 \end_layout
15697
15698 \begin_layout LyX-Code
15699  article ...
15700 \end_layout
15701
15702 \begin_layout LyX-Code
15703  book ...
15704 \end_layout
15705
15706 \begin_layout LyX-Code
15707 End
15708 \end_layout
15709
15710 \begin_layout Standard
15711 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、BibTeXファイル中に
15712 存在しうる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、LyXは、ソースコード中に定義されている既定書式を使用します。LyXは、い
15713 くつかの書式を
15714 \begin_inset Flex Code
15715 status collapsed
15716
15717 \begin_layout Plain Layout
15718 stdciteformats.inc
15719 \end_layout
15720
15721 \end_inset
15722
15723 ファイルで事前定義しており、これはほとんどのLyX文書クラスにインクルードされています。
15724 \end_layout
15725
15726 \begin_layout Standard
15727 この定義は、BibTeXキーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 %author%
15733 \end_layout
15734
15735 \end_inset
15736
15737 のように
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 %
15743 \end_layout
15744
15745 \end_inset
15746
15747 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
15748 \end_layout
15749
15750 \begin_layout LyX-Code
15751 misc %author%, 
15752 \begin_inset Quotes eld
15753 \end_inset
15754
15755 %title%
15756 \begin_inset Quotes erd
15757 \end_inset
15758
15759
15760 \end_layout
15761
15762 \begin_layout Standard
15763 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
15764 \end_layout
15765
15766 \begin_layout Standard
15767 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
15768 \begin_inset Flex Code
15769 status collapsed
15770
15771 \begin_layout Plain Layout
15772 {%volume%[[vol.
15773 \begin_inset space ~
15774 \end_inset
15775
15776 %volume%]]}
15777 \end_layout
15778
15779 \end_inset
15780
15781 のように、条件付きの構成を使用することができます。これは、
15782 \begin_inset Flex Code
15783 status collapsed
15784
15785 \begin_layout Plain Layout
15786 volume
15787 \end_layout
15788
15789 \end_inset
15790
15791 が存在するならば,「vol.
15792 \begin_inset space ~
15793 \end_inset
15794
15795 」とvolumeキーを出力するという意味です。また、
15796 \begin_inset Newline newline
15797 \end_inset
15798
15799
15800 \begin_inset Flex Code
15801 status collapsed
15802
15803 \begin_layout Plain Layout
15804 {%author%[[%author%]][[%editor%, ed.]]}
15805 \end_layout
15806
15807 \end_inset
15808
15809
15810 \begin_inset Newline newline
15811 \end_inset
15812
15813 のように、条件の中にelse節を含めることも可能です。ここでは、もし
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 author
15819 \end_layout
15820
15821 \end_inset
15822
15823 キーが存在するならば出力され、そうでなければeditorキーと「,
15824 \begin_inset space ~
15825 \end_inset
15826
15827 ed.」が出力されます。ここでもキーは、
15828 \begin_inset Flex Code
15829 status collapsed
15830
15831 \begin_layout Plain Layout
15832 %
15833 \end_layout
15834
15835 \end_inset
15836
15837 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
15838 \begin_inset Flex Code
15839 status collapsed
15840
15841 \begin_layout Plain Layout
15842 [[
15843 \end_layout
15844
15845 \end_inset
15846
15847 」と「
15848 \begin_inset Flex Code
15849 status collapsed
15850
15851 \begin_layout Plain Layout
15852 ]]
15853 \end_layout
15854
15855 \end_inset
15856
15857 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
15858 \end_layout
15859
15860 \begin_layout Standard
15861 もう一つ、定義中で使用することのできる文法として、
15862 \begin_inset Flex Code
15863 status collapsed
15864
15865 \begin_layout Plain Layout
15866 {!<i>!}
15867 \end_layout
15868
15869 \end_inset
15870
15871 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
15872 グを出力させたくはありませんから、HTMLタグは「
15873 \begin_inset Flex Code
15874 status collapsed
15875
15876 \begin_layout Plain Layout
15877 {!
15878 \end_layout
15879
15880 \end_inset
15881
15882 」と「
15883 \begin_inset Flex Code
15884 status collapsed
15885
15886 \begin_layout Plain Layout
15887 !}
15888 \end_layout
15889
15890 \end_inset
15891
15892 」でくるんでやらなくてはならないのです。
15893 \end_layout
15894
15895 \begin_layout Standard
15896 \begin_inset Flex Code
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900 CiteFormat
15901 \end_layout
15902
15903 \end_inset
15904
15905 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
15906 \end_layout
15907
15908 \begin_layout LyX-Code
15909 !quotetitle 
15910 \begin_inset Quotes eld
15911 \end_inset
15912
15913 %title%
15914 \begin_inset Quotes erd
15915 \end_inset
15916
15917
15918 \end_layout
15919
15920 \begin_layout Standard
15921 といった例が挙げられます。これは、短縮形ないしはマクロであり、
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 %!quotetitle%
15927 \end_layout
15928
15929 \end_inset
15930
15931 のように、これがキーであるかのように扱って使用することができます。LyXは、
15932 \begin_inset Flex Code
15933 status collapsed
15934
15935 \begin_layout Plain Layout
15936 %!quotetitle%
15937 \end_layout
15938
15939 \end_inset
15940
15941 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
15942 \end_layout
15943
15944 \begin_layout LyX-Code
15945 !funfun %funfun%
15946 \end_layout
15947
15948 \begin_layout Standard
15949 のようなことはしないでください。LyXは、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
15950 \end_layout
15951
15952 \begin_layout Standard
15953 特殊な定義の二つめは、
15954 \end_layout
15955
15956 \begin_layout LyX-Code
15957 _pptext pp.
15958 \end_layout
15959
15960 \begin_layout Standard
15961 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
15962 \begin_inset Flex Code
15963 status collapsed
15964
15965 \begin_layout Plain Layout
15966 %_pptext%
15967 \end_layout
15968
15969 \end_inset
15970
15971 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
15972 \begin_inset Flex Code
15973 status collapsed
15974
15975 \begin_layout Plain Layout
15976 stdciteformats.inc
15977 \end_layout
15978
15979 \end_inset
15980
15981 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
15982 \end_layout
15983
15984 \begin_layout Standard
15985 以下は、これらの機能を全て使った例です。
15986 \begin_inset VSpace defskip
15987 \end_inset
15988
15989
15990 \end_layout
15991
15992 \begin_layout Standard
15993 \noindent
15994
15995 \family typewriter
15996 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
15997 \end_layout
15998
15999 \begin_layout Standard
16000 \begin_inset VSpace defskip
16001 \end_inset
16002
16003 これは、
16004 \begin_inset Flex Code
16005 status collapsed
16006
16007 \begin_layout Plain Layout
16008 author
16009 \end_layout
16010
16011 \end_inset
16012
16013 キーが定義されているならば、著者とコンマを出力し、
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 author
16019 \end_layout
16020
16021 \end_inset
16022
16023 キーが定義されておらず、
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028 editor
16029 \end_layout
16030
16031 \end_inset
16032
16033 キーが定義されているならば、編集者名の後に
16034 \begin_inset Flex Code
16035 status collapsed
16036
16037 \begin_layout Plain Layout
16038 _edtext
16039 \end_layout
16040
16041 \end_inset
16042
16043 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048 stdciteformats.inc
16049 \end_layout
16050
16051 \end_inset
16052
16053 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
16054 \end_layout
16055
16056 \begin_layout Section
16057 \begin_inset CommandInset label
16058 LatexCommand label
16059 name "sec:XHTML出力のタグ"
16060
16061 \end_inset
16062
16063 XHTML出力のタグ
16064 \end_layout
16065
16066 \begin_layout Standard
16067 LaTeXやDocBookと同様、LyXのXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、LyXは適切な既定値を提供し、前述した
16068 ように、他のレイアウトタグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、LyXは、章様式
16069
16070 \begin_inset Flex Code
16071 status collapsed
16072
16073 \begin_layout Plain Layout
16074 Font
16075 \end_layout
16076
16077 \end_inset
16078
16079 宣言で提供されている情報を利用しようと試みます。
16080 \end_layout
16081
16082 \begin_layout Standard
16083 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
16084 、これが必要になる場合もあるので、LyXは、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
16085 \end_layout
16086
16087 \begin_layout Standard
16088 様式宣言や差込枠宣言の外で使用することができるタグに、
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093 HTMLPreamble
16094 \end_layout
16095
16096 \end_inset
16097
16098
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 AddToHTMLPreamble
16104 \end_layout
16105
16106 \end_inset
16107
16108 の2つがあることに注意してください。これらの詳細については、第
16109 \begin_inset CommandInset ref
16110 LatexCommand ref
16111 reference "sub:汎用テキストクラスパラメータ"
16112
16113 \end_inset
16114
16115 節をご覧ください。
16116 \end_layout
16117
16118 \begin_layout Subsection
16119 \begin_inset CommandInset label
16120 LatexCommand label
16121 name "sub:段落様式-XHTML"
16122
16123 \end_inset
16124
16125 段落様式
16126 \end_layout
16127
16128 \begin_layout Standard
16129 LyXが段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対
16130 応する
16131 \begin_inset Flex Code
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135 LaTeXType
16136 \end_layout
16137
16138 \end_inset
16139
16140 タグの内容によって決定されます。
16141 \end_layout
16142
16143 \begin_layout Standard
16144 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
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 <labeltag attr=
16161 \begin_inset Quotes erd
16162 \end_inset
16163
16164 value
16165 \begin_inset Quotes erd
16166 \end_inset
16167
16168 >ラベル</labeltag>
16169 \end_layout
16170
16171 \begin_layout LyX-Code
16172 段落の内容
16173 \end_layout
16174
16175 \begin_layout LyX-Code
16176 </tag>
16177 \end_layout
16178
16179 \begin_layout Standard
16180 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
16181 \end_layout
16182
16183 \begin_layout Standard
16184 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
16185 \end_layout
16186
16187 \begin_layout LyX-Code
16188 <tag attr=
16189 \begin_inset Quotes erd
16190 \end_inset
16191
16192 value
16193 \begin_inset Quotes erd
16194 \end_inset
16195
16196 >
16197 \end_layout
16198
16199 \begin_layout LyX-Code
16200 <itemtag attr=
16201 \begin_inset Quotes erd
16202 \end_inset
16203
16204 value
16205 \begin_inset Quotes erd
16206 \end_inset
16207
16208 ><labeltag attr=
16209 \begin_inset Quotes erd
16210 \end_inset
16211
16212 value
16213 \begin_inset Quotes erd
16214 \end_inset
16215
16216 >環境ラベル</labeltag>最初の段落。
16217 \end_layout
16218
16219 \begin_layout LyX-Code
16220 </itemtag>
16221 \end_layout
16222
16223 \begin_layout LyX-Code
16224 <itemtag>二つめの段落。</itemtag>
16225 \end_layout
16226
16227 \begin_layout LyX-Code
16228 </tag>
16229 \end_layout
16230
16231 \begin_layout Standard
16232 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
16233 \end_layout
16234
16235 \begin_layout Standard
16236 リストに関しては、次のような形になります。
16237 \end_layout
16238
16239 \begin_layout LyX-Code
16240 <tag attr=
16241 \begin_inset Quotes erd
16242 \end_inset
16243
16244 value
16245 \begin_inset Quotes erd
16246 \end_inset
16247
16248 >
16249 \end_layout
16250
16251 \begin_layout LyX-Code
16252 <itemtag attr=
16253 \begin_inset Quotes erd
16254 \end_inset
16255
16256 value
16257 \begin_inset Quotes erd
16258 \end_inset
16259
16260 ><labeltag attr=
16261 \begin_inset Quotes erd
16262 \end_inset
16263
16264 value
16265 \begin_inset Quotes erd
16266 \end_inset
16267
16268 >リストのラベル</labeltag>最初の項目。</itemtag>
16269 \end_layout
16270
16271 \begin_layout LyX-Code
16272 <itemtag attr=
16273 \begin_inset Quotes erd
16274 \end_inset
16275
16276 value
16277 \begin_inset Quotes erd
16278 \end_inset
16279
16280 ><labeltag attr=
16281 \begin_inset Quotes erd
16282 \end_inset
16283
16284 value
16285 \begin_inset Quotes erd
16286 \end_inset
16287
16288 >リストのラベル</labeltag>二つめの項目。</itemtag>
16289 \end_layout
16290
16291 \begin_layout LyX-Code
16292 </tag>
16293 \end_layout
16294
16295 \begin_layout LyX-Code
16296
16297 \end_layout
16298
16299 \begin_layout LyX-Code
16300 <tag attr=
16301 \begin_inset Quotes erd
16302 \end_inset
16303
16304 value
16305 \begin_inset Quotes erd
16306 \end_inset
16307
16308 >
16309 \end_layout
16310
16311 \begin_layout LyX-Code
16312 <labeltag attr=
16313 \begin_inset Quotes erd
16314 \end_inset
16315
16316 value
16317 \begin_inset Quotes erd
16318 \end_inset
16319
16320 >リストのラベル</labeltag><itemtag attr=
16321 \begin_inset Quotes erd
16322 \end_inset
16323
16324 value
16325 \begin_inset Quotes erd
16326 \end_inset
16327
16328 >最初の項目。</itemtag>
16329 \end_layout
16330
16331 \begin_layout LyX-Code
16332 <labeltag attr=
16333 \begin_inset Quotes erd
16334 \end_inset
16335
16336 value
16337 \begin_inset Quotes erd
16338 \end_inset
16339
16340 >リストのラベル</labeltag><itemtag attr=
16341 \begin_inset Quotes erd
16342 \end_inset
16343
16344 value
16345 \begin_inset Quotes erd
16346 \end_inset
16347
16348 >二つめの項目</itemtag>
16349 \end_layout
16350
16351 \begin_layout LyX-Code
16352 </tag>
16353 \end_layout
16354
16355 \begin_layout Standard
16356 ここで
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 labeltag
16362 \end_layout
16363
16364 \end_inset
16365
16366
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 itemtag
16372 \end_layout
16373
16374 \end_inset
16375
16376 の順序が違っていることに注意してください。どちらの順序になるかは、
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381 HTMLLabelFirst
16382 \end_layout
16383
16384 \end_inset
16385
16386 の設定に依存します。もし
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 HTMLLabelFirst
16392 \end_layout
16393
16394 \end_inset
16395
16396 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
16397 \end_layout
16398
16399 \begin_layout Standard
16400 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、LyXは適切な既定値
16401 を生成するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整す
16402 る目的でここにあるものと考えてください。
16403 \end_layout
16404
16405 \begin_layout Description
16406 \begin_inset Flex Code
16407 status collapsed
16408
16409 \begin_layout Plain Layout
16410 HTMLAttr
16411 \end_layout
16412
16413 \end_inset
16414
16415  [
16416 \begin_inset Flex Code
16417 status collapsed
16418
16419 \begin_layout Plain Layout
16420 文字列
16421 \end_layout
16422
16423 \end_inset
16424
16425 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16426 \begin_inset Flex Code
16427 status collapsed
16428
16429 \begin_layout Plain Layout
16430 class=`mydiv'
16431 \end_layout
16432
16433 \end_inset
16434
16435 」のようなものです。既定においては、LyXは「
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 class=`レイアウト名'
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 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
16456 \end_layout
16457
16458 \begin_layout Description
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463 HTMLForceCSS
16464 \end_layout
16465
16466 \end_inset
16467
16468  [
16469 \begin_inset Flex Code
16470 status collapsed
16471
16472 \begin_layout Plain Layout
16473
16474 \emph on
16475 0
16476 \end_layout
16477
16478 \end_inset
16479
16480 ,
16481 \begin_inset space \thinspace{}
16482 \end_inset
16483
16484
16485 \begin_inset Flex Code
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489 1
16490 \end_layout
16491
16492 \end_inset
16493
16494 ] 
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499 HTMLStyle
16500 \end_layout
16501
16502 \end_inset
16503
16504 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
16505 \begin_inset Flex Code
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509 1
16510 \end_layout
16511
16512 \end_inset
16513
16514 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
16515 \begin_inset Flex Code
16516 status collapsed
16517
16518 \begin_layout Plain Layout
16519 0
16520 \end_layout
16521
16522 \end_inset
16523
16524 です。
16525 \end_layout
16526
16527 \begin_layout Description
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 HTMLItem
16533 \end_layout
16534
16535 \end_inset
16536
16537  [
16538 \begin_inset Flex Code
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542 文字列
16543 \end_layout
16544
16545 \end_inset
16546
16547 ] 環境の段落に使用されるタグ。上記各例の
16548 \begin_inset Flex Code
16549 status collapsed
16550
16551 \begin_layout Plain Layout
16552 itemtag
16553 \end_layout
16554
16555 \end_inset
16556
16557 を置き換えます。既定値は
16558 \begin_inset Flex Code
16559 status collapsed
16560
16561 \begin_layout Plain Layout
16562 div
16563 \end_layout
16564
16565 \end_inset
16566
16567 です。
16568 \end_layout
16569
16570 \begin_layout Description
16571 \begin_inset Flex Code
16572 status collapsed
16573
16574 \begin_layout Plain Layout
16575 HTMLItemAttr
16576 \end_layout
16577
16578 \end_inset
16579
16580  [
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585 文字列
16586 \end_layout
16587
16588 \end_inset
16589
16590 ] itemタグの属性。既定値は
16591 \begin_inset Flex Code
16592 status collapsed
16593
16594 \begin_layout Plain Layout
16595 class=`レイアウト名_item'
16596 \end_layout
16597
16598 \end_inset
16599
16600 です。ここには、様式情報は含まれては
16601 \emph on
16602 なりません
16603 \emph default
16604 。その目的のためには、
16605 \begin_inset Flex Code
16606 status collapsed
16607
16608 \begin_layout Plain Layout
16609 HTMLStyle
16610 \end_layout
16611
16612 \end_inset
16613
16614 を使用してください。
16615 \end_layout
16616
16617 \begin_layout Description
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 HTMLLabel
16623 \end_layout
16624
16625 \end_inset
16626
16627  [
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 文字列
16633 \end_layout
16634
16635 \end_inset
16636
16637 ] 段落と項目ラベルに使用されるタグ。上記各例の
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 labeltag
16643 \end_layout
16644
16645 \end_inset
16646
16647 を置き換えます。
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 LabelType
16653 \end_layout
16654
16655 \end_inset
16656
16657
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 Top_Environment
16663 \end_layout
16664
16665 \end_inset
16666
16667
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 Centered_Top_Environment
16673 \end_layout
16674
16675 \end_inset
16676
16677 の時は、既定値は
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 div
16683 \end_layout
16684
16685 \end_inset
16686
16687 ですが、それ以外の時の既定値は
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 span
16693 \end_layout
16694
16695 \end_inset
16696
16697 です。
16698 \end_layout
16699
16700 \begin_layout Description
16701 \begin_inset Flex Code
16702 status collapsed
16703
16704 \begin_layout Plain Layout
16705 HTMLLabelAttr
16706 \end_layout
16707
16708 \end_inset
16709
16710  [
16711 \begin_inset Flex Code
16712 status collapsed
16713
16714 \begin_layout Plain Layout
16715 文字列
16716 \end_layout
16717
16718 \end_inset
16719
16720 ] labelタグの属性。既定値は
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 class=`レイアウト名_label'
16726 \end_layout
16727
16728 \end_inset
16729
16730 です。ここには、様式情報は含まれては
16731 \emph on
16732 なりません
16733 \emph default
16734 。その目的のためには、
16735 \begin_inset Flex Code
16736 status collapsed
16737
16738 \begin_layout Plain Layout
16739 HTMLStyle
16740 \end_layout
16741
16742 \end_inset
16743
16744 を使用してください。
16745 \end_layout
16746
16747 \begin_layout Description
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 HTMLLabelFirst
16753 \end_layout
16754
16755 \end_inset
16756
16757  [
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762
16763 \emph on
16764 0
16765 \end_layout
16766
16767 \end_inset
16768
16769 ,
16770 \begin_inset space \thinspace{}
16771 \end_inset
16772
16773
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 1
16779 \end_layout
16780
16781 \end_inset
16782
16783 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
16784 tion環境の中で、
16785 \begin_inset Flex Code
16786 status collapsed
16787
16788 \begin_layout Plain Layout
16789 `<dt>\SpecialChar \ldots{}
16790 </dt><dd>\SpecialChar \ldots{}
16791 </dd>
16792 \end_layout
16793
16794 \end_inset
16795
16796 という形を得るために使用されます。既定値は
16797 \begin_inset Flex Code
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 0
16802 \end_layout
16803
16804 \end_inset
16805
16806 で、labelタグはitemタグの中に出力されます。
16807 \end_layout
16808
16809 \begin_layout Description
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814 HTMLPreamble
16815 \end_layout
16816
16817 \end_inset
16818
16819  この様式が使用されたときに、
16820 \begin_inset Flex Code
16821 status collapsed
16822
16823 \begin_layout Plain Layout
16824 <head>
16825 \end_layout
16826
16827 \end_inset
16828
16829 セクションに出力される情報。これは、たとえば、
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 onclick
16835 \end_layout
16836
16837 \end_inset
16838
16839 ハンドラを定義するために
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 <script>
16845 \end_layout
16846
16847 \end_inset
16848
16849 ブロックをインクルードするのに使用することができます。
16850 \end_layout
16851
16852 \begin_layout Description
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 HTMLStyle
16858 \end_layout
16859
16860 \end_inset
16861
16862   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 <style>
16868 \end_layout
16869
16870 \end_inset
16871
16872 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16873 \end_layout
16874
16875 \begin_layout Description
16876 \begin_inset Flex Code
16877 status collapsed
16878
16879 \begin_layout Plain Layout
16880 HTMLTag
16881 \end_layout
16882
16883 \end_inset
16884
16885  [
16886 \begin_inset Flex Code
16887 status collapsed
16888
16889 \begin_layout Plain Layout
16890 文字列
16891 \end_layout
16892
16893 \end_inset
16894
16895 ] 主幹ラベルに使用されるタグ。上記各例の
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 tag
16901 \end_layout
16902
16903 \end_inset
16904
16905 を置き換えます。既定値は
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 div
16911 \end_layout
16912
16913 \end_inset
16914
16915 です。
16916 \end_layout
16917
16918 \begin_layout Description
16919 \begin_inset Flex Code
16920 status collapsed
16921
16922 \begin_layout Plain Layout
16923 HTMLTitle
16924 \end_layout
16925
16926 \end_inset
16927
16928  [
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933
16934 \emph on
16935 0
16936 \end_layout
16937
16938 \end_inset
16939
16940 ,
16941 \begin_inset space \thinspace{}
16942 \end_inset
16943
16944
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 1
16950 \end_layout
16951
16952 \end_inset
16953
16954 ] この様式が、XHTMLファイルの
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 <title>
16960 \end_layout
16961
16962 \end_inset
16963
16964 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
16965 \begin_inset Flex Code
16966 status collapsed
16967
16968 \begin_layout Plain Layout
16969 stdtitle.inc
16970 \end_layout
16971
16972 \end_inset
16973
16974 ファイルでは、
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979 title
16980 \end_layout
16981
16982 \end_inset
16983
16984 環境のこの項目を真に設定しています。
16985 \end_layout
16986
16987 \begin_layout Subsection
16988 差込枠レイアウトXHTML
16989 \end_layout
16990
16991 \begin_layout Standard
16992 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
16993 \begin_inset Foot
16994 status collapsed
16995
16996 \begin_layout Plain Layout
16997 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
16998 ん。
16999 \end_layout
17000
17001 \end_inset
17002
17003 。ここでも、LyXは適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
17004 \end_layout
17005
17006 \begin_layout Standard
17007 LyXが差込枠用に出力するXHTMLは、以下の形を取ります。
17008 \end_layout
17009
17010 \begin_layout LyX-Code
17011 <tag attr=
17012 \begin_inset Quotes erd
17013 \end_inset
17014
17015 value
17016 \begin_inset Quotes erd
17017 \end_inset
17018
17019 >
17020 \end_layout
17021
17022 \begin_layout LyX-Code
17023 <labeltag>ラベル</labeltag>
17024 \end_layout
17025
17026 \begin_layout LyX-Code
17027 <innertag attr=
17028 \begin_inset Quotes erd
17029 \end_inset
17030
17031 value
17032 \begin_inset Quotes erd
17033 \end_inset
17034
17035 >差込枠の内容。</innertag>
17036 \end_layout
17037
17038 \begin_layout LyX-Code
17039 </tag>
17040 \end_layout
17041
17042 \begin_layout Standard
17043 差込枠が多段落を許可している---つまり
17044 \begin_inset Flex Code
17045 status collapsed
17046
17047 \begin_layout Plain Layout
17048 MultiPar
17049 \end_layout
17050
17051 \end_inset
17052
17053 が真---ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなけれ
17054 ば、labelタグは省略され、ラベルがあれば、現在のところ、つねに
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 span
17060 \end_layout
17061
17062 \end_inset
17063
17064 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
17065 す。
17066 \end_layout
17067
17068 \begin_layout Description
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 HTMLAttr
17074 \end_layout
17075
17076 \end_inset
17077
17078  [
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 文字列
17084 \end_layout
17085
17086 \end_inset
17087
17088 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 class=`myinset' onclick=`\SpecialChar \ldots{}
17094 '
17095 \end_layout
17096
17097 \end_inset
17098
17099 」のようなものです。既定においては、LyXは「
17100 \begin_inset Flex Code
17101 status collapsed
17102
17103 \begin_layout Plain Layout
17104 class=`差込枠名'
17105 \end_layout
17106
17107 \end_inset
17108
17109 」と出力します。ここで
17110 \begin_inset Flex Code
17111 status collapsed
17112
17113 \begin_layout Plain Layout
17114 差込枠名
17115 \end_layout
17116
17117 \end_inset
17118
17119 は、差込枠のLyX名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
17120 \end_layout
17121
17122 \begin_layout Description
17123 \begin_inset Flex Code
17124 status collapsed
17125
17126 \begin_layout Plain Layout
17127 HTMLForceCSS
17128 \end_layout
17129
17130 \end_inset
17131
17132  [
17133 \begin_inset Flex Code
17134 status collapsed
17135
17136 \begin_layout Plain Layout
17137
17138 \emph on
17139 0
17140 \emph default
17141 ,1
17142 \end_layout
17143
17144 \end_inset
17145
17146 ] 
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 HTMLStyle
17152 \end_layout
17153
17154 \end_inset
17155
17156 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
17157 \begin_inset Flex Code
17158 status collapsed
17159
17160 \begin_layout Plain Layout
17161 1
17162 \end_layout
17163
17164 \end_inset
17165
17166 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
17167 \begin_inset Flex Code
17168 status collapsed
17169
17170 \begin_layout Plain Layout
17171 0
17172 \end_layout
17173
17174 \end_inset
17175
17176 です。
17177 \end_layout
17178
17179 \begin_layout Description
17180 \begin_inset Flex Code
17181 status collapsed
17182
17183 \begin_layout Plain Layout
17184 HTMLInnerAttr
17185 \end_layout
17186
17187 \end_inset
17188
17189  [
17190 \begin_inset Flex Code
17191 status collapsed
17192
17193 \begin_layout Plain Layout
17194 文字列
17195 \end_layout
17196
17197 \end_inset
17198
17199 ] innerタグの属性。既定値は
17200 \begin_inset Flex Code
17201 status collapsed
17202
17203 \begin_layout Plain Layout
17204 class=`差込枠名_inner'
17205 \end_layout
17206
17207 \end_inset
17208
17209 です。
17210 \end_layout
17211
17212 \begin_layout Description
17213 \begin_inset Flex Code
17214 status collapsed
17215
17216 \begin_layout Plain Layout
17217 HTMLInnerTag
17218 \end_layout
17219
17220 \end_inset
17221
17222  [
17223 \begin_inset Flex Code
17224 status collapsed
17225
17226 \begin_layout Plain Layout
17227 文字列
17228 \end_layout
17229
17230 \end_inset
17231
17232 ] innerタグです。上記各例の
17233 \begin_inset Flex Code
17234 status collapsed
17235
17236 \begin_layout Plain Layout
17237 innertag
17238 \end_layout
17239
17240 \end_inset
17241
17242 を置き換えます。既定値はなしです。
17243 \end_layout
17244
17245 \begin_layout Description
17246 \begin_inset Flex Code
17247 status collapsed
17248
17249 \begin_layout Plain Layout
17250 HTMLIsBlock
17251 \end_layout
17252
17253 \end_inset
17254
17255  [
17256 \begin_inset Flex Code
17257 status collapsed
17258
17259 \begin_layout Plain Layout
17260 0
17261 \end_layout
17262
17263 \end_inset
17264
17265 ,
17266 \begin_inset space \thinspace{}
17267 \end_inset
17268
17269
17270 \begin_inset Flex Code
17271 status collapsed
17272
17273 \begin_layout Plain Layout
17274
17275 \emph on
17276 1
17277 \end_layout
17278
17279 \end_inset
17280
17281 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
17282 \end_layout
17283
17284 \begin_layout Description
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 HTMLLabel
17290 \end_layout
17291
17292 \end_inset
17293
17294  [
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 文字列
17300 \end_layout
17301
17302 \end_inset
17303
17304 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309
17310 \backslash
17311 arabic{footnote}
17312 \end_layout
17313
17314 \end_inset
17315
17316 など。これは非必須であり、既定値はありません。
17317 \end_layout
17318
17319 \begin_layout Description
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324 HTMLPreamble
17325 \end_layout
17326
17327 \end_inset
17328
17329  この様式が使用されたときに、
17330 \begin_inset Flex Code
17331 status collapsed
17332
17333 \begin_layout Plain Layout
17334 <head>
17335 \end_layout
17336
17337 \end_inset
17338
17339 セクションに出力される情報。これは、たとえば、
17340 \begin_inset Flex Code
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344 onclick
17345 \end_layout
17346
17347 \end_inset
17348
17349 ハンドラを定義するために
17350 \begin_inset Flex Code
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354 <script>
17355 \end_layout
17356
17357 \end_inset
17358
17359 ブロックをインクルードするのに使用することができます。
17360 \end_layout
17361
17362 \begin_layout Description
17363 \begin_inset Flex Code
17364 status collapsed
17365
17366 \begin_layout Plain Layout
17367 HTMLStyle
17368 \end_layout
17369
17370 \end_inset
17371
17372   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17373 \begin_inset Flex Code
17374 status collapsed
17375
17376 \begin_layout Plain Layout
17377 <style>
17378 \end_layout
17379
17380 \end_inset
17381
17382 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17383 \end_layout
17384
17385 \begin_layout Description
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390 HTMLTag
17391 \end_layout
17392
17393 \end_inset
17394
17395  [
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400 文字列
17401 \end_layout
17402
17403 \end_inset
17404
17405 ] 主幹ラベルに使用されるタグ。上記各例の
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 tag
17411 \end_layout
17412
17413 \end_inset
17414
17415 を置き換えます。既定値は
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 MultiPar
17421 \end_layout
17422
17423 \end_inset
17424
17425 の設定に依存し、
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 MultiPar
17431 \end_layout
17432
17433 \end_inset
17434
17435 が真ならば
17436 \begin_inset Flex Code
17437 status collapsed
17438
17439 \begin_layout Plain Layout
17440 div
17441 \end_layout
17442
17443 \end_inset
17444
17445 、偽ならば
17446 \begin_inset Flex Code
17447 status collapsed
17448
17449 \begin_layout Plain Layout
17450 span
17451 \end_layout
17452
17453 \end_inset
17454
17455 です。
17456 \end_layout
17457
17458 \begin_layout Subsection
17459 フロートXHTML
17460 \end_layout
17461
17462 \begin_layout Standard
17463 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
17464 \end_layout
17465
17466 \begin_layout LyX-Code
17467 <tag attr=
17468 \begin_inset Quotes erd
17469 \end_inset
17470
17471 value
17472 \begin_inset Quotes erd
17473 \end_inset
17474
17475 >
17476 \end_layout
17477
17478 \begin_layout LyX-Code
17479 フロートの内容。
17480 \end_layout
17481
17482 \begin_layout LyX-Code
17483 </tag>
17484 \end_layout
17485
17486 \begin_layout Standard
17487 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
17488 きます。
17489 \end_layout
17490
17491 \begin_layout Description
17492 \begin_inset Flex Code
17493 status collapsed
17494
17495 \begin_layout Plain Layout
17496 HTMLAttr
17497 \end_layout
17498
17499 \end_inset
17500
17501  [
17502 \begin_inset Flex Code
17503 status collapsed
17504
17505 \begin_layout Plain Layout
17506 文字列
17507 \end_layout
17508
17509 \end_inset
17510
17511 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17512 \begin_inset Flex Code
17513 status collapsed
17514
17515 \begin_layout Plain Layout
17516 class=`myfloat' onclick=`\SpecialChar \ldots{}
17517 '
17518 \end_layout
17519
17520 \end_inset
17521
17522 」のようなものです。既定においては、LyXは「
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 class=`float フロート-フロート型'
17528 \end_layout
17529
17530 \end_inset
17531
17532 」と出力します。ここで
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 フロート型
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 参照)、この型のフロートのLyX名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table
17550
17551 \end_layout
17552
17553 \begin_layout Description
17554 \begin_inset Flex Code
17555 status collapsed
17556
17557 \begin_layout Plain Layout
17558 HTMLStyle
17559 \end_layout
17560
17561 \end_inset
17562
17563   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17564 \begin_inset Flex Code
17565 status collapsed
17566
17567 \begin_layout Plain Layout
17568 <style>
17569 \end_layout
17570
17571 \end_inset
17572
17573 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17574 \end_layout
17575
17576 \begin_layout Description
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 HTMLTag
17582 \end_layout
17583
17584 \end_inset
17585
17586  [
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 文字列
17592 \end_layout
17593
17594 \end_inset
17595
17596 ] このフロートに使用されるタグ。上記各例の
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 tag
17602 \end_layout
17603
17604 \end_inset
17605
17606 を置き換えます。既定値は
17607 \begin_inset Flex Code
17608 status collapsed
17609
17610 \begin_layout Plain Layout
17611 div
17612 \end_layout
17613
17614 \end_inset
17615
17616 であり、ほとんどの場合変更する必要はありません。
17617 \end_layout
17618
17619 \begin_layout Subsection
17620 書誌情報の整形
17621 \end_layout
17622
17623 \begin_layout Standard
17624 書誌情報は、
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 CiteFormat
17630 \end_layout
17631
17632 \end_inset
17633
17634 ブロックを使用して整形することができます。詳細については、第
17635 \begin_inset CommandInset ref
17636 LatexCommand ref
17637 reference "sub:引用書式指定"
17638
17639 \end_inset
17640
17641 節を参照してください。
17642 \end_layout
17643
17644 \begin_layout Subsection
17645 LyXが生成したCSS
17646 \end_layout
17647
17648 \begin_layout Standard
17649 LyXは、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節
17650 では、LyXがどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
17651 \end_layout
17652
17653 \begin_layout Standard
17654 LyXは、現在のところ、
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 Font
17660 \end_layout
17661
17662 \end_inset
17663
17664 宣言で指定されている
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 Family
17670 \end_layout
17671
17672 \end_inset
17673
17674
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 Series
17680 \end_layout
17681
17682 \end_inset
17683
17684
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 Shape
17690 \end_layout
17691
17692 \end_inset
17693
17694
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 Size
17700 \end_layout
17701
17702 \end_inset
17703
17704 を利用して、フォント情報についてのみCSSを自動生成します(第
17705 \begin_inset CommandInset ref
17706 LatexCommand ref
17707 reference "sub:フォント指定"
17708
17709 \end_inset
17710
17711 節を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 Family Sans
17717 \end_layout
17718
17719 \end_inset
17720
17721 」は「
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726 font-family: sans-serif
17727 \end_layout
17728
17729 \end_inset
17730
17731 」になります。LyXの寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
17732 \begin_inset Flex URL
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736
17737 src/FontInfo.cpp
17738 \end_layout
17739
17740 \end_inset
17741
17742
17743 \begin_inset Flex Code
17744 status collapsed
17745
17746 \begin_layout Plain Layout
17747 getSizeCSS()
17748 \end_layout
17749
17750 \end_inset
17751
17752 関数をご覧ください。
17753 \end_layout
17754
17755 \begin_layout Chapter
17756 外部素材を取り込む
17757 \end_layout
17758
17759 \begin_layout Standard
17760 \begin_inset Box Shadowbox
17761 position "t"
17762 hor_pos "c"
17763 has_inner_box 1
17764 inner_pos "t"
17765 use_parbox 0
17766 use_makebox 0
17767 width "100col%"
17768 special "none"
17769 height "1in"
17770 height_special "totalheight"
17771 status open
17772
17773 \begin_layout Plain Layout
17774 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
17775 \end_layout
17776
17777 \end_inset
17778
17779
17780 \end_layout
17781
17782 \begin_layout Standard
17783 LyX外部のソースから素材を使用する方法は、取扱説明書
17784 \emph on
17785 埋込オブジェクト篇
17786 \emph default
17787 で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
17788 \end_layout
17789
17790 \begin_layout Section
17791 どのように機能するのか
17792 \end_layout
17793
17794 \begin_layout Standard
17795 外部素材の機能は、ひな型の概念に基づいています。ひな型は、LyXがある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、LyXは、Xfig
17796 の図や、様々なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
17797 \begin_inset Flex MenuItem
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 挿入\SpecialChar \menuseparator
17802 ファイル\SpecialChar \menuseparator
17803 外部素材
17804 \end_layout
17805
17806 \end_inset
17807
17808 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
17809 すが、できればあなたが作ったすべてのひな型を投稿して、我々がLyXの後の版に取り込むことができるようにしてくださることを希望します。
17810 \end_layout
17811
17812 \begin_layout Standard
17813 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
17814 いることです。たとえば、
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 Xfig
17820 \end_layout
17821
17822 \end_inset
17823
17824 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
17825 \begin_inset Flex Code
17826 status collapsed
17827
17828 \begin_layout Plain Layout
17829 .fig
17830 \end_layout
17831
17832 \end_inset
17833
17834 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 fig
17840 \end_layout
17841
17842 \end_inset
17843
17844 ファイルに保存します。この図をお使いの文書に取り込みたいときには、LaTeXファイルにそのままインクルードできるように、
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 transfig
17850 \end_layout
17851
17852 \end_inset
17853
17854 を呼び出してPostScriptファイルを生成します。この場合には、
17855 \begin_inset Flex Code
17856 status collapsed
17857
17858 \begin_layout Plain Layout
17859 .fig
17860 \end_layout
17861
17862 \end_inset
17863
17864 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
17865 \end_layout
17866
17867 \begin_layout Standard
17868 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
17869 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
17870 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。LyXの外部素材マネジメ
17871 ントは、LyXがサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
17872 \end_layout
17873
17874 \begin_layout Standard
17875 LyXの外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfi
17876 gの図の場合には、LyXの外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScr
17877 iptファイルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加え
17878 るためにファイルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を
17879 上げることができるようになるのです。
17880 \end_layout
17881
17882 \begin_layout Section
17883 外用ひな型設定ファイル
17884 \end_layout
17885
17886 \begin_layout Standard
17887 LyXに自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホ
17888 ールを作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、第
17889 \begin_inset CommandInset ref
17890 LatexCommand ref
17891 reference "sec:セキュリティに関する論点"
17892
17893 \end_inset
17894
17895 節のセキュリティに関する議論を読んでおいてください。
17896 \end_layout
17897
17898 \begin_layout Standard
17899 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
17900 \end_layout
17901
17902 \begin_layout Standard
17903 外用ひな型は、
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908 LyXDir/lib/external_templates
17909 \end_layout
17910
17911 \end_inset
17912
17913 ファイルで定義されています。自分用の版を
17914 \begin_inset Flex Code
17915 status collapsed
17916
17917 \begin_layout Plain Layout
17918 UserDir/external_templates
17919 \end_layout
17920
17921 \end_inset
17922
17923 に置くこともできます。
17924 \end_layout
17925
17926 \begin_layout Standard
17927 典型的なひな型は以下のようになります。
17928 \end_layout
17929
17930 \begin_layout LyX-Code
17931 Template XFig
17932 \end_layout
17933
17934 \begin_layout LyX-Code
17935 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
17936 \end_layout
17937
17938 \begin_layout LyX-Code
17939 HelpText
17940 \end_layout
17941
17942 \begin_layout LyX-Code
17943 An XFig figure.
17944 \end_layout
17945
17946 \begin_layout LyX-Code
17947 HelpTextEnd
17948 \end_layout
17949
17950 \begin_layout LyX-Code
17951 InputFormat fig
17952 \end_layout
17953
17954 \begin_layout LyX-Code
17955 FileFilter "*.fig"
17956 \end_layout
17957
17958 \begin_layout LyX-Code
17959 AutomaticProduction true
17960 \end_layout
17961
17962 \begin_layout LyX-Code
17963 Transform Rotate
17964 \end_layout
17965
17966 \begin_layout LyX-Code
17967 Transform Resize
17968 \end_layout
17969
17970 \begin_layout LyX-Code
17971 Format LaT
17972 \begin_inset ERT
17973 status collapsed
17974
17975 \begin_layout Plain Layout
17976
17977 {}
17978 \end_layout
17979
17980 \end_inset
17981
17982 eX
17983 \end_layout
17984
17985 \begin_layout LyX-Code
17986 TransformCommand Rotate RotationLatexCommand
17987 \end_layout
17988
17989 \begin_layout LyX-Code
17990 TransformCommand Resize ResizeLatexCommand
17991 \end_layout
17992
17993 \begin_layout LyX-Code
17994 Product "$$RotateFront$$ResizeFront
17995 \end_layout
17996
17997 \begin_layout LyX-Code
17998          
17999 \backslash
18000
18001 \backslash
18002 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
18003 \end_layout
18004
18005 \begin_layout LyX-Code
18006          $$ResizeBack$$RotateBack"
18007 \end_layout
18008
18009 \begin_layout LyX-Code
18010 UpdateFormat pstex
18011 \end_layout
18012
18013 \begin_layout LyX-Code
18014 UpdateResult "$$AbsPath$$Basename.pstex_t"
18015 \end_layout
18016
18017 \begin_layout LyX-Code
18018 Requirement "graphicx"
18019 \end_layout
18020
18021 \begin_layout LyX-Code
18022 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
18023 \end_layout
18024
18025 \begin_layout LyX-Code
18026 ReferencedFile latex "$$AbsPath$$Basename.eps"
18027 \end_layout
18028
18029 \begin_layout LyX-Code
18030 ReferencedFile dvi "$$AbsPath$$Basename.eps"
18031 \end_layout
18032
18033 \begin_layout LyX-Code
18034 FormatEnd
18035 \end_layout
18036
18037 \begin_layout LyX-Code
18038 Format PDFLaT
18039 \begin_inset ERT
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043
18044 {}
18045 \end_layout
18046
18047 \end_inset
18048
18049 eX
18050 \end_layout
18051
18052 \begin_layout LyX-Code
18053 TransformCommand Rotate RotationLatexCommand
18054 \end_layout
18055
18056 \begin_layout LyX-Code
18057 TransformCommand Resize ResizeLatexCommand
18058 \end_layout
18059
18060 \begin_layout LyX-Code
18061 Product "$$RotateFront$$ResizeFront
18062 \end_layout
18063
18064 \begin_layout LyX-Code
18065          
18066 \backslash
18067
18068 \backslash
18069 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
18070 \end_layout
18071
18072 \begin_layout LyX-Code
18073          $$ResizeBack$$RotateBack"
18074 \end_layout
18075
18076 \begin_layout LyX-Code
18077 UpdateFormat pdftex
18078 \end_layout
18079
18080 \begin_layout LyX-Code
18081 UpdateResult "$$AbsPath$$Basename.pdftex_t"
18082 \end_layout
18083
18084 \begin_layout LyX-Code
18085 Requirement "graphicx"
18086 \end_layout
18087
18088 \begin_layout LyX-Code
18089 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
18090 \end_layout
18091
18092 \begin_layout LyX-Code
18093 ReferencedFile latex "$$AbsPath$$Basename.pdf"
18094 \end_layout
18095
18096 \begin_layout LyX-Code
18097 FormatEnd
18098 \end_layout
18099
18100 \begin_layout LyX-Code
18101 Format Ascii
18102 \end_layout
18103
18104 \begin_layout LyX-Code
18105 Product "$$Contents(
18106 \backslash
18107 "$$AbsPath$$Basename.asc
18108 \backslash
18109 ")"
18110 \end_layout
18111
18112 \begin_layout LyX-Code
18113 UpdateFormat asciixfig
18114 \end_layout
18115
18116 \begin_layout LyX-Code
18117 UpdateResult "$$AbsPath$$Basename.asc"
18118 \end_layout
18119
18120 \begin_layout LyX-Code
18121 FormatEnd
18122 \end_layout
18123
18124 \begin_layout LyX-Code
18125 Format DocBook
18126 \end_layout
18127
18128 \begin_layout LyX-Code
18129 Product "<graphic fileref=
18130 \backslash
18131 "$$AbsOrRelPathMaster$$Basename.eps
18132 \backslash
18133 ">
18134 \end_layout
18135
18136 \begin_layout LyX-Code
18137          </graphic>"
18138 \end_layout
18139
18140 \begin_layout LyX-Code
18141 UpdateFormat eps
18142 \end_layout
18143
18144 \begin_layout LyX-Code
18145 UpdateResult "$$AbsPath$$Basename.eps"
18146 \end_layout
18147
18148 \begin_layout LyX-Code
18149 ReferencedFile docbook "$$AbsPath$$Basename.eps"
18150 \end_layout
18151
18152 \begin_layout LyX-Code
18153 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
18154 \end_layout
18155
18156 \begin_layout LyX-Code
18157 FormatEnd
18158 \end_layout
18159
18160 \begin_layout LyX-Code
18161 Product "[XFig: $$FName]"
18162 \end_layout
18163
18164 \begin_layout LyX-Code
18165 FormatEnd
18166 \end_layout
18167
18168 \begin_layout LyX-Code
18169 TemplateEnd
18170 \end_layout
18171
18172 \begin_layout Standard
18173 ご覧の通り、ひな型は
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 Template
18179 \end_layout
18180
18181 \end_inset
18182
18183  \SpecialChar \ldots{}
18184  
18185 \begin_inset Flex Code
18186 status collapsed
18187
18188 \begin_layout Plain Layout
18189 TemplateEnd
18190 \end_layout
18191
18192 \end_inset
18193
18194 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 Format
18200 \end_layout
18201
18202 \end_inset
18203
18204  \SpecialChar \ldots{}
18205  
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 FormatEnd
18211 \end_layout
18212
18213 \end_inset
18214
18215 部があります。
18216 \end_layout
18217
18218 \begin_layout Subsection
18219 ひな型のヘッダ
18220 \end_layout
18221
18222 \begin_layout Description
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 AutomaticProduction
18228 \begin_inset space ~
18229 \end_inset
18230
18231 true|false
18232 \end_layout
18233
18234 \end_inset
18235
18236  このひな型で扱うファイルをLyXが生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
18237 \end_layout
18238
18239 \begin_layout Description
18240 \begin_inset Flex Code
18241 status collapsed
18242
18243 \begin_layout Plain Layout
18244 FileFilter
18245 \begin_inset space ~
18246 \end_inset
18247
18248 <パターン>
18249 \end_layout
18250
18251 \end_inset
18252
18253  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
18254 \begin_inset Flex Code
18255 status collapsed
18256
18257 \begin_layout Plain Layout
18258 .obj
18259 \end_layout
18260
18261 \end_inset
18262
18263
18264 \begin_inset Flex Code
18265 status collapsed
18266
18267 \begin_layout Plain Layout
18268 .tgo
18269 \end_layout
18270
18271 \end_inset
18272
18273 があります)、「
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 *.{obj,tgo}
18279 \end_layout
18280
18281 \end_inset
18282
18283 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
18284 \end_layout
18285
18286 \begin_layout Description
18287 \begin_inset Flex Code
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291 GuiName
18292 \begin_inset space ~
18293 \end_inset
18294
18295 <GUI名>
18296 \end_layout
18297
18298 \end_inset
18299
18300  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
18301 \end_layout
18302
18303 \begin_layout Description
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 HelpText
18309 \begin_inset space ~
18310 \end_inset
18311
18312 <文章>
18313 \begin_inset space ~
18314 \end_inset
18315
18316 HelpTextEnd
18317 \end_layout
18318
18319 \end_inset
18320
18321  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
18322 ず現れなくてはなりません。
18323 \end_layout
18324
18325 \begin_layout Description
18326 \begin_inset Flex Code
18327 status collapsed
18328
18329 \begin_layout Plain Layout
18330 InputFormat
18331 \begin_inset space ~
18332 \end_inset
18333
18334 <書式>
18335 \end_layout
18336
18337 \end_inset
18338
18339  オリジナルファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(第
18340 \begin_inset CommandInset ref
18341 LatexCommand ref
18342 reference "sec:ファイル形式"
18343
18344 \end_inset
18345
18346 章参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 *
18352 \end_layout
18353
18354 \end_inset
18355
18356 」を使用してください。この場合、LyXはファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
18357 \end_layout
18358
18359 \begin_layout Description
18360 \begin_inset Flex Code
18361 status collapsed
18362
18363 \begin_layout Plain Layout
18364 Template
18365 \begin_inset space ~
18366 \end_inset
18367
18368 <ID>
18369 \end_layout
18370
18371 \end_inset
18372
18373  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
18374 \end_layout
18375
18376 \begin_layout Description
18377 \begin_inset Flex Code
18378 status collapsed
18379
18380 \begin_layout Plain Layout
18381 Transform
18382 \begin_inset space ~
18383 \end_inset
18384
18385 Rotate|Resize|Clip|Extra
18386 \end_layout
18387
18388 \end_inset
18389
18390  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
18391 ログ中の対応するタブを使用可能にします。
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 Transform
18397 \end_layout
18398
18399 \end_inset
18400
18401 コマンド一つずつに応じて、
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 Format
18407 \end_layout
18408
18409 \end_inset
18410
18411 部に、対応する
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 TransformCommand
18417 \end_layout
18418
18419 \end_inset
18420
18421 コマンドか
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426 TransformOption
18427 \end_layout
18428
18429 \end_inset
18430
18431 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
18432 \end_layout
18433
18434 \begin_layout Subsection
18435 \begin_inset Flex Code
18436 status collapsed
18437
18438 \begin_layout Plain Layout
18439 Format
18440 \end_layout
18441
18442 \end_inset
18443
18444
18445 \end_layout
18446
18447 \begin_layout Description
18448 \begin_inset Flex Code
18449 status collapsed
18450
18451 \begin_layout Plain Layout
18452 Format
18453 \begin_inset space ~
18454 \end_inset
18455
18456 LaT
18457 \begin_inset ERT
18458 status collapsed
18459
18460 \begin_layout Plain Layout
18461
18462 {}
18463 \end_layout
18464
18465 \end_inset
18466
18467 eX|PDFLaT
18468 \begin_inset ERT
18469 status collapsed
18470
18471 \begin_layout Plain Layout
18472
18473 {}
18474 \end_layout
18475
18476 \end_inset
18477
18478 eX|PlainText|DocBook
18479 \end_layout
18480
18481 \end_inset
18482
18483  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
18484 \begin_inset Flex Code
18485 status collapsed
18486
18487 \begin_layout Plain Layout
18488 Format
18489 \end_layout
18490
18491 \end_inset
18492
18493 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
18494 ようになります。
18495 \end_layout
18496
18497 \begin_layout Description
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 Option
18503 \begin_inset space ~
18504 \end_inset
18505
18506 <名称>
18507 \begin_inset space ~
18508 \end_inset
18509
18510 <値>
18511 \end_layout
18512
18513 \end_inset
18514
18515  このコマンドは、
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 Product
18521 \end_layout
18522
18523 \end_inset
18524
18525 での代入に使うマクロ
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530 $$<名称>
18531 \end_layout
18532
18533 \end_inset
18534
18535 を新たに定義します。
18536 \begin_inset Flex Code
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540 <値>
18541 \end_layout
18542
18543 \end_inset
18544
18545 自体にも代入マクロを使うことができます。
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 Product
18551 \end_layout
18552
18553 \end_inset
18554
18555
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 <値>
18561 \end_layout
18562
18563 \end_inset
18564
18565 を直接使用するよりも優れた点は、
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 $$<名称>
18571 \end_layout
18572
18573 \end_inset
18574
18575 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
18576 \end_layout
18577
18578 \begin_layout Description
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 Product
18584 \begin_inset space ~
18585 \end_inset
18586
18587 <文>
18588 \end_layout
18589
18590 \end_inset
18591
18592  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
18593
18594 \end_layout
18595
18596 \begin_layout Description
18597 \begin_inset Flex Code
18598 status collapsed
18599
18600 \begin_layout Plain Layout
18601 Preamble
18602 \begin_inset space ~
18603 \end_inset
18604
18605 <名称>
18606 \end_layout
18607
18608 \end_inset
18609
18610  このコマンドは、LaTeXプリアンブルに入れるプリアンブル片を指定します。これは
18611 \begin_inset Flex Code
18612 status collapsed
18613
18614 \begin_layout Plain Layout
18615 PreambleDef
18616 \end_layout
18617
18618 \end_inset
18619
18620  \SpecialChar \ldots{}
18621  
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 PreambleDefEnd
18627 \end_layout
18628
18629 \end_inset
18630
18631 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
18632 \end_layout
18633
18634 \begin_layout Description
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 ReferencedFile
18640 \begin_inset space ~
18641 \end_inset
18642
18643 <書式>
18644 \begin_inset space ~
18645 \end_inset
18646
18647 <ファイル名>
18648 \end_layout
18649
18650 \end_inset
18651
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 Requirement
18662 \begin_inset space ~
18663 \end_inset
18664
18665 <package>
18666 \end_layout
18667
18668 \end_inset
18669
18670  必要とされるLaTeXパッケージ名。パッケージは、LaTeXプリアンブル中で
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675
18676 \backslash
18677 usepackage{}
18678 \end_layout
18679
18680 \end_inset
18681
18682 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
18683 \end_layout
18684
18685 \begin_layout Description
18686 \begin_inset Flex Code
18687 status collapsed
18688
18689 \begin_layout Plain Layout
18690 TransformCommand
18691 \begin_inset space ~
18692 \end_inset
18693
18694 Rotate
18695 \begin_inset space ~
18696 \end_inset
18697
18698 RotationLatexCommand
18699 \end_layout
18700
18701 \end_inset
18702
18703  このコマンドは、回転用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18704 \end_layout
18705
18706 \begin_layout Description
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 TransformCommand
18712 \begin_inset space ~
18713 \end_inset
18714
18715 Resize
18716 \begin_inset space ~
18717 \end_inset
18718
18719 ResizeLatexCommand
18720 \end_layout
18721
18722 \end_inset
18723
18724  このコマンドは、伸縮用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18725 \end_layout
18726
18727 \begin_layout Description
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 TransformOption
18733 \begin_inset space ~
18734 \end_inset
18735
18736 Rotate
18737 \begin_inset space ~
18738 \end_inset
18739
18740 RotationLatexOption
18741 \end_layout
18742
18743 \end_inset
18744
18745  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18746 \end_layout
18747
18748 \begin_layout Description
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753 TransformOption
18754 \begin_inset space ~
18755 \end_inset
18756
18757 Resize
18758 \begin_inset space ~
18759 \end_inset
18760
18761 ResizeLatexOption
18762 \end_layout
18763
18764 \end_inset
18765
18766  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18767 \end_layout
18768
18769 \begin_layout Description
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 TransformOption
18775 \begin_inset space ~
18776 \end_inset
18777
18778 Clip
18779 \begin_inset space ~
18780 \end_inset
18781
18782 ClipLatexOption
18783 \end_layout
18784
18785 \end_inset
18786
18787  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18788 \end_layout
18789
18790 \begin_layout Description
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 TransformOption
18796 \begin_inset space ~
18797 \end_inset
18798
18799 Extra
18800 \begin_inset space ~
18801 \end_inset
18802
18803 ExtraLatexOption
18804 \end_layout
18805
18806 \end_inset
18807
18808  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
18809 \end_layout
18810
18811 \begin_layout Description
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 UpdateFormat
18817 \begin_inset space ~
18818 \end_inset
18819
18820 <書式>
18821 \end_layout
18822
18823 \end_inset
18824
18825  変換されたファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(
18826 \begin_inset Flex MenuItem
18827 status collapsed
18828
18829 \begin_layout Plain Layout
18830 ツール\SpecialChar \menuseparator
18831 設定:変換子
18832 \end_layout
18833
18834 \end_inset
18835
18836 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。
18837 \end_layout
18838
18839 \begin_layout Description
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844 UpdateResult
18845 \begin_inset space ~
18846 \end_inset
18847
18848 <ファイル名>
18849 \end_layout
18850
18851 \end_inset
18852
18853  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
18854 \end_layout
18855
18856 \begin_layout Subsection
18857 プリアンブルの定義
18858 \end_layout
18859
18860 \begin_layout Standard
18861 外用ひな型設定ファイルには、
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 PreambleDef
18867 \end_layout
18868
18869 \end_inset
18870
18871  \SpecialChar \ldots{}
18872  
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 PreambleDefEnd
18878 \end_layout
18879
18880 \end_inset
18881
18882 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 Format
18888 \end_layout
18889
18890 \end_inset
18891
18892 部で使用することができます。
18893 \end_layout
18894
18895 \begin_layout Section
18896 代入機構
18897 \end_layout
18898
18899 \begin_layout Standard
18900 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
18901 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
18902 \end_layout
18903
18904 \begin_layout Standard
18905 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
18906 \end_layout
18907
18908 \begin_layout Standard
18909 使用できるマクロは以下の通りです。
18910 \end_layout
18911
18912 \begin_layout Description
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 $$AbsOrRelPathMaster
18918 \end_layout
18919
18920 \end_inset
18921
18922  LyX親文書への絶対ファイルパスないしは相対ファイルパス
18923 \end_layout
18924
18925 \begin_layout Description
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 $$AbsOrRelPathParent
18931 \end_layout
18932
18933 \end_inset
18934
18935  LyX文書への絶対ファイルパスないしは相対ファイルパス
18936 \end_layout
18937
18938 \begin_layout Description
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 $$AbsPath
18944 \end_layout
18945
18946 \end_inset
18947
18948  絶対ファイルパス
18949 \end_layout
18950
18951 \begin_layout Description
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956 $$Basename
18957 \end_layout
18958
18959 \end_inset
18960
18961  パスおよび拡張子を除いたファイル名
18962 \end_layout
18963
18964 \begin_layout Description
18965 \begin_inset Flex Code
18966 status collapsed
18967
18968 \begin_layout Plain Layout
18969 $$Contents(
18970 \begin_inset Quotes eld
18971 \end_inset
18972
18973 filename.ext
18974 \begin_inset Quotes erd
18975 \end_inset
18976
18977 )
18978 \end_layout
18979
18980 \end_inset
18981
18982  このマクロは、
18983 \begin_inset Flex Code
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 filename.ext
18988 \end_layout
18989
18990 \end_inset
18991
18992 と云う名のファイルの中身を展開します。
18993 \end_layout
18994
18995 \begin_layout Description
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 $$Extension
19001 \end_layout
19002
19003 \end_inset
19004
19005  ファイル拡張子(点を含む)
19006 \end_layout
19007
19008 \begin_layout Description
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013 $$FName
19014 \end_layout
19015
19016 \end_inset
19017
19018  外部素材ダイアログで指定されたファイルのファイル名。これはLyX文書への絶対パスでも良いですし、相対パスでも構いません。
19019 \end_layout
19020
19021 \begin_layout Description
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 $$FPath
19027 \end_layout
19028
19029 \end_inset
19030
19031  
19032 \begin_inset Flex Code
19033 status collapsed
19034
19035 \begin_layout Plain Layout
19036 $$FName
19037 \end_layout
19038
19039 \end_inset
19040
19041 のパス部分(LyX文書への絶対パス名か相対パス名)
19042 \end_layout
19043
19044 \begin_layout Description
19045 \begin_inset Flex Code
19046 status collapsed
19047
19048 \begin_layout Plain Layout
19049 $$RelPathMaster
19050 \end_layout
19051
19052 \end_inset
19053
19054  LyX親文書への相対ファイルパス
19055 \end_layout
19056
19057 \begin_layout Description
19058 \begin_inset Flex Code
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 $$RelPathParent
19063 \end_layout
19064
19065 \end_inset
19066
19067  LyX文書への相対ファイルパス
19068 \end_layout
19069
19070 \begin_layout Description
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 $$Sysdir
19076 \end_layout
19077
19078 \end_inset
19079
19080  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、LyXに同梱されているヘルパースクリプト群を示したりするのに使用されます。
19081 \end_layout
19082
19083 \begin_layout Description
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 $$Tempname
19089 \end_layout
19090
19091 \end_inset
19092
19093  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
19094 \end_layout
19095
19096 \begin_layout Standard
19097 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102 $$AbsPath$$Basename$$Extension
19103 \end_layout
19104
19105 \end_inset
19106
19107 のようにして作ることができます。
19108 \end_layout
19109
19110 \begin_layout Standard
19111 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 Transform
19117 \end_layout
19118
19119 \end_inset
19120
19121 コマンドと
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 TransformCommand
19127 \end_layout
19128
19129 \end_inset
19130
19131 コマンドが有効にされている場合、
19132 \begin_inset Flex Code
19133 status collapsed
19134
19135 \begin_layout Plain Layout
19136 Product
19137 \end_layout
19138
19139 \end_inset
19140
19141 コマンドは、これらに加えて以下の代入もサポートします。
19142 \end_layout
19143
19144 \begin_layout Description
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 $$ResizeFront
19150 \end_layout
19151
19152 \end_inset
19153
19154  伸縮コマンドの前置部。
19155 \end_layout
19156
19157 \begin_layout Description
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 $$ResizeBack
19163 \end_layout
19164
19165 \end_inset
19166
19167  伸縮コマンドの後置部。
19168 \end_layout
19169
19170 \begin_layout Description
19171 \begin_inset Flex Code
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 $$RotateFront
19176 \end_layout
19177
19178 \end_inset
19179
19180  回転コマンドの前置部。
19181 \end_layout
19182
19183 \begin_layout Description
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 $$RotateBack
19189 \end_layout
19190
19191 \end_inset
19192
19193  回転コマンドの後置部。
19194 \end_layout
19195
19196 \begin_layout Standard
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201 Option
19202 \end_layout
19203
19204 \end_inset
19205
19206 コマンドの値に入れる文字列では、
19207 \begin_inset Flex Code
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 Transform
19212 \end_layout
19213
19214 \end_inset
19215
19216 コマンドと
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 TransformOption
19222 \end_layout
19223
19224 \end_inset
19225
19226 コマンドが有効にされていれば、以下の代入もサポートされます。
19227 \end_layout
19228
19229 \begin_layout Description
19230 \begin_inset Flex Code
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 $$Clip
19235 \end_layout
19236
19237 \end_inset
19238
19239  切り抜きオプション。
19240 \end_layout
19241
19242 \begin_layout Description
19243 \begin_inset Flex Code
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247 $$Extra
19248 \end_layout
19249
19250 \end_inset
19251
19252  追加オプション。
19253 \end_layout
19254
19255 \begin_layout Description
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 $$Resize
19261 \end_layout
19262
19263 \end_inset
19264
19265  伸縮オプション。
19266 \end_layout
19267
19268 \begin_layout Description
19269 \begin_inset Flex Code
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 $$Rotate
19274 \end_layout
19275
19276 \end_inset
19277
19278  回転オプション。
19279 \end_layout
19280
19281 \begin_layout Standard
19282 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
19283 \end_layout
19284
19285 \begin_layout Enumerate
19286 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
19287 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
19288 \end_layout
19289
19290 \begin_layout Enumerate
19291 LaTeXは、相対ファイル名に関して、LyXや入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。LyXにとって相対ファイル名とは、常
19292 にこのファイル名が書かれている文書に対して相対的なものになります。LaTeXにとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一
19293 つの文書しかないときには同じですが、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、LaTeXに提示されるときに変換され
19294 なくてはならないのです。幸い、正しいマクロを選びさえすれば、これはLyXが自動的に行ってくれます。
19295 \end_layout
19296
19297 \begin_layout Standard
19298 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
19299 \end_layout
19300
19301 \begin_layout Itemize
19302 絶対パスが必要とされるときには
19303 \begin_inset Flex Code
19304 status collapsed
19305
19306 \begin_layout Plain Layout
19307 $$AbsPath
19308 \end_layout
19309
19310 \end_inset
19311
19312 を使う。
19313 \end_layout
19314
19315 \begin_layout Itemize
19316 代入された文字列が、LaTeXインプットの一種である場合には、
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 $$AbsOrRelPathMaster
19322 \end_layout
19323
19324 \end_inset
19325
19326 を使う。
19327 \end_layout
19328
19329 \begin_layout Itemize
19330 それ以外ならば、ユーザの選択を尊重するために
19331 \begin_inset Flex Code
19332 status collapsed
19333
19334 \begin_layout Plain Layout
19335 $$AbsOrRelPathParent
19336 \end_layout
19337
19338 \end_inset
19339
19340 を使う。
19341 \end_layout
19342
19343 \begin_layout Standard
19344 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
19350 \end_layout
19351
19352 \end_inset
19353
19354 というコマンドがあります。この場合、
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 .pstex_t
19360 \end_layout
19361
19362 \end_inset
19363
19364 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
19365 \end_layout
19366
19367 \begin_layout Section
19368 セキュリティに関する論点
19369 \begin_inset CommandInset label
19370 LatexCommand label
19371 name "sec:セキュリティに関する論点"
19372
19373 \end_inset
19374
19375
19376 \end_layout
19377
19378 \begin_layout Standard
19379 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
19380 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
19381 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
19382 \end_layout
19383
19384 \begin_layout Standard
19385 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、LyXが安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発
19386 生しません。これは、外部プログラムが
19387 \begin_inset Flex Code
19388 status collapsed
19389
19390 \begin_layout Plain Layout
19391 system
19392 \end_layout
19393
19394 \end_inset
19395
19396 システムコールではなく、
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401 execvp
19402 \end_layout
19403
19404 \end_inset
19405
19406 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
19407 \end_layout
19408
19409 \begin_layout Standard
19410 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
19411 できません。これは、LyXの安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安
19412 全なスクリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
19413 \end_layout
19414
19415 \begin_layout Standard
19416 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
19417 うになるため、一般的には、統御下に置いた状態で
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 execvp
19423 \end_layout
19424
19425 \end_inset
19426
19427 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
19428 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
19429 \emph on
19430 間違いなく
19431 \emph default
19432 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
19433 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されているLyXには、安全でないひな型は決して入ってい
19434 ません。
19435 \end_layout
19436
19437 \begin_layout Standard
19438 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
19439 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
19440 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、LyX開発チームに相談してみてください。そしてこの相談は、管理されていない環境下で
19441 これを使用する前に、行うようにしてください。
19442 \end_layout
19443
19444 \begin_layout Chapter
19445 \start_of_appendix
19446
19447 \lang english
19448 List of functions to be used in layouts
19449 \lang japanese
19450
19451 \begin_inset CommandInset label
19452 LatexCommand label
19453 name "chap:List-of-functions"
19454
19455 \end_inset
19456
19457
19458 \end_layout
19459
19460 \begin_layout Standard
19461 \align center
19462 \begin_inset Tabular
19463 <lyxtabular version="3" rows="10" columns="6">
19464 <features tabularvalignment="middle">
19465 <column alignment="left" valignment="top" width="14col%">
19466 <column alignment="left" valignment="top" width="14col%">
19467 <column alignment="left" valignment="top" width="14col%">
19468 <column alignment="left" valignment="top" width="14col%">
19469 <column alignment="left" valignment="top" width="14col%">
19470 <column alignment="left" valignment="top" width="14col%">
19471 <row>
19472 <cell alignment="left" valignment="top" usebox="none">
19473 \begin_inset Text
19474
19475 \begin_layout Plain Layout
19476 accents
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 bbding
19486 \end_layout
19487
19488 \end_inset
19489 </cell>
19490 <cell alignment="left" valignment="top" usebox="none">
19491 \begin_inset Text
19492
19493 \begin_layout Plain Layout
19494 dvipost
19495 \end_layout
19496
19497 \end_inset
19498 </cell>
19499 <cell alignment="left" valignment="top" usebox="none">
19500 \begin_inset Text
19501
19502 \begin_layout Plain Layout
19503 fancybox
19504 \end_layout
19505
19506 \end_inset
19507 </cell>
19508 <cell alignment="left" valignment="top" usebox="none">
19509 \begin_inset Text
19510
19511 \begin_layout Plain Layout
19512 hhline
19513 \end_layout
19514
19515 \end_inset
19516 </cell>
19517 <cell alignment="left" valignment="top" usebox="none">
19518 \begin_inset Text
19519
19520 \begin_layout Plain Layout
19521 latexsym
19522 \end_layout
19523
19524 \end_inset
19525 </cell>
19526 </row>
19527 <row>
19528 <cell alignment="left" valignment="top" usebox="none">
19529 \begin_inset Text
19530
19531 \begin_layout Plain Layout
19532 amsbsy
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 bm
19542 \end_layout
19543
19544 \end_inset
19545 </cell>
19546 <cell alignment="left" valignment="top" usebox="none">
19547 \begin_inset Text
19548
19549 \begin_layout Plain Layout
19550
19551 \end_layout
19552
19553 \end_inset
19554 </cell>
19555 <cell alignment="left" valignment="top" usebox="none">
19556 \begin_inset Text
19557
19558 \begin_layout Plain Layout
19559 feyn
19560 \end_layout
19561
19562 \end_inset
19563 </cell>
19564 <cell alignment="left" valignment="top" usebox="none">
19565 \begin_inset Text
19566
19567 \begin_layout Plain Layout
19568 hyperref
19569 \end_layout
19570
19571 \end_inset
19572 </cell>
19573 <cell alignment="left" valignment="top" usebox="none">
19574 \begin_inset Text
19575
19576 \begin_layout Plain Layout
19577 listings
19578 \end_layout
19579
19580 \end_inset
19581 </cell>
19582 </row>
19583 <row>
19584 <cell alignment="left" valignment="top" usebox="none">
19585 \begin_inset Text
19586
19587 \begin_layout Plain Layout
19588 amscd
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 booktabs
19598 \end_layout
19599
19600 \end_inset
19601 </cell>
19602 <cell alignment="left" valignment="top" usebox="none">
19603 \begin_inset Text
19604
19605 \begin_layout Plain Layout
19606 endnotes
19607 \end_layout
19608
19609 \end_inset
19610 </cell>
19611 <cell alignment="left" valignment="top" usebox="none">
19612 \begin_inset Text
19613
19614 \begin_layout Plain Layout
19615 fixltx2e
19616 \end_layout
19617
19618 \end_inset
19619 </cell>
19620 <cell alignment="left" valignment="top" usebox="none">
19621 \begin_inset Text
19622
19623 \begin_layout Plain Layout
19624
19625 \end_layout
19626
19627 \end_inset
19628 </cell>
19629 <cell alignment="left" valignment="top" usebox="none">
19630 \begin_inset Text
19631
19632 \begin_layout Plain Layout
19633 longtable
19634 \end_layout
19635
19636 \end_inset
19637 </cell>
19638 </row>
19639 <row>
19640 <cell alignment="left" valignment="top" usebox="none">
19641 \begin_inset Text
19642
19643 \begin_layout Plain Layout
19644 amsmath
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 <cell alignment="left" valignment="top" usebox="none">
19659 \begin_inset Text
19660
19661 \begin_layout Plain Layout
19662 enumitem
19663 \end_layout
19664
19665 \end_inset
19666 </cell>
19667 <cell alignment="left" valignment="top" usebox="none">
19668 \begin_inset Text
19669
19670 \begin_layout Plain Layout
19671 float
19672 \end_layout
19673
19674 \end_inset
19675 </cell>
19676 <cell alignment="left" valignment="top" usebox="none">
19677 \begin_inset Text
19678
19679 \begin_layout Plain Layout
19680 ifsym
19681 \end_layout
19682
19683 \end_inset
19684 </cell>
19685 <cell alignment="left" valignment="top" usebox="none">
19686 \begin_inset Text
19687
19688 \begin_layout Plain Layout
19689 lyxskak
19690 \end_layout
19691
19692 \end_inset
19693 </cell>
19694 </row>
19695 <row>
19696 <cell alignment="left" valignment="top" usebox="none">
19697 \begin_inset Text
19698
19699 \begin_layout Plain Layout
19700 amssymb
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 CJK
19710 \end_layout
19711
19712 \end_inset
19713 </cell>
19714 <cell alignment="left" valignment="top" usebox="none">
19715 \begin_inset Text
19716
19717 \begin_layout Plain Layout
19718 esint
19719 \end_layout
19720
19721 \end_inset
19722 </cell>
19723 <cell alignment="left" valignment="top" usebox="none">
19724 \begin_inset Text
19725
19726 \begin_layout Plain Layout
19727 framed
19728 \end_layout
19729
19730 \end_inset
19731 </cell>
19732 <cell alignment="left" valignment="top" usebox="none">
19733 \begin_inset Text
19734
19735 \begin_layout Plain Layout
19736 ifthen
19737 \end_layout
19738
19739 \end_inset
19740 </cell>
19741 <cell alignment="left" valignment="top" usebox="none">
19742 \begin_inset Text
19743
19744 \begin_layout Plain Layout
19745
19746 \end_layout
19747
19748 \end_inset
19749 </cell>
19750 </row>
19751 <row>
19752 <cell alignment="left" valignment="top" usebox="none">
19753 \begin_inset Text
19754
19755 \begin_layout Plain Layout
19756 amstext
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 color
19766 \end_layout
19767
19768 \end_inset
19769 </cell>
19770 <cell alignment="left" valignment="top" usebox="none">
19771 \begin_inset Text
19772
19773 \begin_layout Plain Layout
19774
19775 \end_layout
19776
19777 \end_inset
19778 </cell>
19779 <cell alignment="left" valignment="top" usebox="none">
19780 \begin_inset Text
19781
19782 \begin_layout Plain Layout
19783
19784 \end_layout
19785
19786 \end_inset
19787 </cell>
19788 <cell alignment="left" valignment="top" usebox="none">
19789 \begin_inset Text
19790
19791 \begin_layout Plain Layout
19792
19793 \end_layout
19794
19795 \end_inset
19796 </cell>
19797 <cell alignment="left" valignment="top" usebox="none">
19798 \begin_inset Text
19799
19800 \begin_layout Plain Layout
19801 makeidx
19802 \end_layout
19803
19804 \end_inset
19805 </cell>
19806 </row>
19807 <row>
19808 <cell alignment="left" valignment="top" usebox="none">
19809 \begin_inset Text
19810
19811 \begin_layout Plain Layout
19812 amsthm
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 covington
19822 \end_layout
19823
19824 \end_inset
19825 </cell>
19826 <cell alignment="left" valignment="top" usebox="none">
19827 \begin_inset Text
19828
19829 \begin_layout Plain Layout
19830
19831 \end_layout
19832
19833 \end_inset
19834 </cell>
19835 <cell alignment="left" valignment="top" usebox="none">
19836 \begin_inset Text
19837
19838 \begin_layout Plain Layout
19839 graphicx
19840 \end_layout
19841
19842 \end_inset
19843 </cell>
19844 <cell alignment="left" valignment="top" usebox="none">
19845 \begin_inset Text
19846
19847 \begin_layout Plain Layout
19848 jurabib
19849 \end_layout
19850
19851 \end_inset
19852 </cell>
19853 <cell alignment="left" valignment="top" usebox="none">
19854 \begin_inset Text
19855
19856 \begin_layout Plain Layout
19857 marvosym
19858 \end_layout
19859
19860 \end_inset
19861 </cell>
19862 </row>
19863 <row>
19864 <cell alignment="left" valignment="top" usebox="none">
19865 \begin_inset Text
19866
19867 \begin_layout Plain Layout
19868 array
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 csquotes
19878 \end_layout
19879
19880 \end_inset
19881 </cell>
19882 <cell alignment="left" valignment="top" usebox="none">
19883 \begin_inset Text
19884
19885 \begin_layout Plain Layout
19886
19887 \end_layout
19888
19889 \end_inset
19890 </cell>
19891 <cell alignment="left" valignment="top" usebox="none">
19892 \begin_inset Text
19893
19894 \begin_layout Plain Layout
19895
19896 \end_layout
19897
19898 \end_inset
19899 </cell>
19900 <cell alignment="left" valignment="top" usebox="none">
19901 \begin_inset Text
19902
19903 \begin_layout Plain Layout
19904
19905 \end_layout
19906
19907 \end_inset
19908 </cell>
19909 <cell alignment="left" valignment="top" usebox="none">
19910 \begin_inset Text
19911
19912 \begin_layout Plain Layout
19913 mathdesign
19914 \end_layout
19915
19916 \end_inset
19917 </cell>
19918 </row>
19919 <row>
19920 <cell alignment="left" valignment="top" usebox="none">
19921 \begin_inset Text
19922
19923 \begin_layout Plain Layout
19924 ascii
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
19934 \end_layout
19935
19936 \end_inset
19937 </cell>
19938 <cell alignment="left" valignment="top" usebox="none">
19939 \begin_inset Text
19940
19941 \begin_layout Plain Layout
19942
19943 \end_layout
19944
19945 \end_inset
19946 </cell>
19947 <cell alignment="left" valignment="top" usebox="none">
19948 \begin_inset Text
19949
19950 \begin_layout Plain Layout
19951 mathdesign
19952 \end_layout
19953
19954 \end_inset
19955 </cell>
19956 <cell alignment="left" valignment="top" usebox="none">
19957 \begin_inset Text
19958
19959 \begin_layout Plain Layout
19960
19961 \end_layout
19962
19963 \end_inset
19964 </cell>
19965 <cell alignment="left" valignment="top" usebox="none">
19966 \begin_inset Text
19967
19968 \begin_layout Plain Layout
19969 mathdots
19970 \end_layout
19971
19972 \end_inset
19973 </cell>
19974 </row>
19975 <row>
19976 <cell alignment="left" valignment="top" usebox="none">
19977 \begin_inset Text
19978
19979 \begin_layout Plain Layout
19980
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
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
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 mathdots
20008 \end_layout
20009
20010 \end_inset
20011 </cell>
20012 <cell alignment="left" valignment="top" usebox="none">
20013 \begin_inset Text
20014
20015 \begin_layout Plain Layout
20016
20017 \end_layout
20018
20019 \end_inset
20020 </cell>
20021 <cell alignment="left" valignment="top" usebox="none">
20022 \begin_inset Text
20023
20024 \begin_layout Plain Layout
20025 subfig
20026 \end_layout
20027
20028 \end_inset
20029 </cell>
20030 </row>
20031 </lyxtabular>
20032
20033 \end_inset
20034
20035
20036 \end_layout
20037
20038 \begin_layout Standard
20039 \align center
20040 \begin_inset Tabular
20041 <lyxtabular version="3" rows="10" columns="6">
20042 <features tabularvalignment="middle">
20043 <column alignment="left" valignment="top" width="14col%">
20044 <column alignment="left" valignment="top" width="14col%">
20045 <column alignment="left" valignment="top" width="14col%">
20046 <column alignment="left" valignment="top" width="14col%">
20047 <column alignment="left" valignment="top" width="14col%">
20048 <column alignment="left" valignment="top" width="14col%">
20049 <row>
20050 <cell alignment="left" valignment="top" usebox="none">
20051 \begin_inset Text
20052
20053 \begin_layout Plain Layout
20054 makeidx
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 pdfcolmk
20064 \end_layout
20065
20066 \end_inset
20067 </cell>
20068 <cell alignment="left" valignment="top" usebox="none">
20069 \begin_inset Text
20070
20071 \begin_layout Plain Layout
20072 setspace
20073 \end_layout
20074
20075 \end_inset
20076 </cell>
20077 <cell alignment="left" valignment="top" usebox="none">
20078 \begin_inset Text
20079
20080 \begin_layout Plain Layout
20081 textcomp
20082 \end_layout
20083
20084 \end_inset
20085 </cell>
20086 <cell alignment="left" valignment="top" usebox="none">
20087 \begin_inset Text
20088
20089 \begin_layout Plain Layout
20090 ulem
20091 \end_layout
20092
20093 \end_inset
20094 </cell>
20095 <cell alignment="left" valignment="top" usebox="none">
20096 \begin_inset Text
20097
20098 \begin_layout Plain Layout
20099 xargs
20100 \end_layout
20101
20102 \end_inset
20103 </cell>
20104 </row>
20105 <row>
20106 <cell alignment="left" valignment="top" usebox="none">
20107 \begin_inset Text
20108
20109 \begin_layout Plain Layout
20110 marvosym
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 pdfpages
20120 \end_layout
20121
20122 \end_inset
20123 </cell>
20124 <cell alignment="left" valignment="top" usebox="none">
20125 \begin_inset Text
20126
20127 \begin_layout Plain Layout
20128 slashed
20129 \end_layout
20130
20131 \end_inset
20132 </cell>
20133 <cell alignment="left" valignment="top" usebox="none">
20134 \begin_inset Text
20135
20136 \begin_layout Plain Layout
20137 textgreek
20138 \end_layout
20139
20140 \end_inset
20141 </cell>
20142 <cell alignment="left" valignment="top" usebox="none">
20143 \begin_inset Text
20144
20145 \begin_layout Plain Layout
20146 undertilde
20147 \end_layout
20148
20149 \end_inset
20150 </cell>
20151 <cell alignment="left" valignment="top" usebox="none">
20152 \begin_inset Text
20153
20154 \begin_layout Plain Layout
20155 xcolor
20156 \end_layout
20157
20158 \end_inset
20159 </cell>
20160 </row>
20161 <row>
20162 <cell alignment="left" valignment="top" usebox="none">
20163 \begin_inset Text
20164
20165 \begin_layout Plain Layout
20166 mathdesign
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 pifont
20176 \end_layout
20177
20178 \end_inset
20179 </cell>
20180 <cell alignment="left" valignment="top" usebox="none">
20181 \begin_inset Text
20182
20183 \begin_layout Plain Layout
20184 soul
20185 \end_layout
20186
20187 \end_inset
20188 </cell>
20189 <cell alignment="left" valignment="top" usebox="none">
20190 \begin_inset Text
20191
20192 \begin_layout Plain Layout
20193 tfrupee
20194 \end_layout
20195
20196 \end_inset
20197 </cell>
20198 <cell alignment="left" valignment="top" usebox="none">
20199 \begin_inset Text
20200
20201 \begin_layout Plain Layout
20202 units
20203 \end_layout
20204
20205 \end_inset
20206 </cell>
20207 <cell alignment="left" valignment="top" usebox="none">
20208 \begin_inset Text
20209
20210 \begin_layout Plain Layout
20211 xy
20212 \end_layout
20213
20214 \end_inset
20215 </cell>
20216 </row>
20217 <row>
20218 <cell alignment="left" valignment="top" usebox="none">
20219 \begin_inset Text
20220
20221 \begin_layout Plain Layout
20222 mathdots
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 pmboxdraw
20232 \end_layout
20233
20234 \end_inset
20235 </cell>
20236 <cell alignment="left" valignment="top" usebox="none">
20237 \begin_inset Text
20238
20239 \begin_layout Plain Layout
20240 splitidx
20241 \end_layout
20242
20243 \end_inset
20244 </cell>
20245 <cell alignment="left" valignment="top" usebox="none">
20246 \begin_inset Text
20247
20248 \begin_layout Plain Layout
20249 tipa
20250 \end_layout
20251
20252 \end_inset
20253 </cell>
20254 <cell alignment="left" valignment="top" usebox="none">
20255 \begin_inset Text
20256
20257 \begin_layout Plain Layout
20258 url
20259 \end_layout
20260
20261 \end_inset
20262 </cell>
20263 <cell alignment="left" valignment="top" usebox="none">
20264 \begin_inset Text
20265
20266 \begin_layout Plain Layout
20267
20268 \end_layout
20269
20270 \end_inset
20271 </cell>
20272 </row>
20273 <row>
20274 <cell alignment="left" valignment="top" usebox="none">
20275 \begin_inset Text
20276
20277 \begin_layout Plain Layout
20278 mathrsfs
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 polyglossia
20288 \end_layout
20289
20290 \end_inset
20291 </cell>
20292 <cell alignment="left" valignment="top" usebox="none">
20293 \begin_inset Text
20294
20295 \begin_layout Plain Layout
20296 subfig
20297 \end_layout
20298
20299 \end_inset
20300 </cell>
20301 <cell alignment="left" valignment="top" usebox="none">
20302 \begin_inset Text
20303
20304 \begin_layout Plain Layout
20305 tipx
20306 \end_layout
20307
20308 \end_inset
20309 </cell>
20310 <cell alignment="left" valignment="top" usebox="none">
20311 \begin_inset Text
20312
20313 \begin_layout Plain Layout
20314
20315 \end_layout
20316
20317 \end_inset
20318 </cell>
20319 <cell alignment="left" valignment="top" usebox="none">
20320 \begin_inset Text
20321
20322 \begin_layout Plain Layout
20323 yhmath
20324 \end_layout
20325
20326 \end_inset
20327 </cell>
20328 </row>
20329 <row>
20330 <cell alignment="left" valignment="top" usebox="none">
20331 \begin_inset Text
20332
20333 \begin_layout Plain Layout
20334 mhchem
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 prettyref
20344 \end_layout
20345
20346 \end_inset
20347 </cell>
20348 <cell alignment="left" valignment="top" usebox="none">
20349 \begin_inset Text
20350
20351 \begin_layout Plain Layout
20352 subscript
20353 \end_layout
20354
20355 \end_inset
20356 </cell>
20357 <cell alignment="left" valignment="top" usebox="none">
20358 \begin_inset Text
20359
20360 \begin_layout Plain Layout
20361 tone
20362 \end_layout
20363
20364 \end_inset
20365 </cell>
20366 <cell alignment="left" valignment="top" usebox="none">
20367 \begin_inset Text
20368
20369 \begin_layout Plain Layout
20370 varioref
20371 \end_layout
20372
20373 \end_inset
20374 </cell>
20375 <cell alignment="left" valignment="top" usebox="none">
20376 \begin_inset Text
20377
20378 \begin_layout Plain Layout
20379
20380 \end_layout
20381
20382 \end_inset
20383 </cell>
20384 </row>
20385 <row>
20386 <cell alignment="left" valignment="top" usebox="none">
20387 \begin_inset Text
20388
20389 \begin_layout Plain Layout
20390 multirow
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 pxfonts
20400 \end_layout
20401
20402 \end_inset
20403 </cell>
20404 <cell alignment="left" valignment="top" usebox="none">
20405 \begin_inset Text
20406
20407 \begin_layout Plain Layout
20408
20409 \end_layout
20410
20411 \end_inset
20412 </cell>
20413 <cell alignment="left" valignment="top" usebox="none">
20414 \begin_inset Text
20415
20416 \begin_layout Plain Layout
20417 txfonts
20418 \end_layout
20419
20420 \end_inset
20421 </cell>
20422 <cell alignment="left" valignment="top" usebox="none">
20423 \begin_inset Text
20424
20425 \begin_layout Plain Layout
20426 verbatim
20427 \end_layout
20428
20429 \end_inset
20430 </cell>
20431 <cell alignment="left" valignment="top" usebox="none">
20432 \begin_inset Text
20433
20434 \begin_layout Plain Layout
20435
20436 \end_layout
20437
20438 \end_inset
20439 </cell>
20440 </row>
20441 <row>
20442 <cell alignment="left" valignment="top" usebox="none">
20443 \begin_inset Text
20444
20445 \begin_layout Plain Layout
20446
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 <cell alignment="left" valignment="top" usebox="none">
20461 \begin_inset Text
20462
20463 \begin_layout Plain Layout
20464
20465 \end_layout
20466
20467 \end_inset
20468 </cell>
20469 <cell alignment="left" valignment="top" usebox="none">
20470 \begin_inset Text
20471
20472 \begin_layout Plain Layout
20473
20474 \end_layout
20475
20476 \end_inset
20477 </cell>
20478 <cell alignment="left" valignment="top" usebox="none">
20479 \begin_inset Text
20480
20481 \begin_layout Plain Layout
20482
20483 \end_layout
20484
20485 \end_inset
20486 </cell>
20487 <cell alignment="left" valignment="top" usebox="none">
20488 \begin_inset Text
20489
20490 \begin_layout Plain Layout
20491
20492 \end_layout
20493
20494 \end_inset
20495 </cell>
20496 </row>
20497 <row>
20498 <cell alignment="left" valignment="top" usebox="none">
20499 \begin_inset Text
20500
20501 \begin_layout Plain Layout
20502 natbib
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 rotating
20512 \end_layout
20513
20514 \end_inset
20515 </cell>
20516 <cell alignment="left" valignment="top" usebox="none">
20517 \begin_inset Text
20518
20519 \begin_layout Plain Layout
20520
20521 \end_layout
20522
20523 \end_inset
20524 </cell>
20525 <cell alignment="left" valignment="top" usebox="none">
20526 \begin_inset Text
20527
20528 \begin_layout Plain Layout
20529
20530 \end_layout
20531
20532 \end_inset
20533 </cell>
20534 <cell alignment="left" valignment="top" usebox="none">
20535 \begin_inset Text
20536
20537 \begin_layout Plain Layout
20538 wasysym
20539 \end_layout
20540
20541 \end_inset
20542 </cell>
20543 <cell alignment="left" valignment="top" usebox="none">
20544 \begin_inset Text
20545
20546 \begin_layout Plain Layout
20547
20548 \end_layout
20549
20550 \end_inset
20551 </cell>
20552 </row>
20553 <row>
20554 <cell alignment="left" valignment="top" usebox="none">
20555 \begin_inset Text
20556
20557 \begin_layout Plain Layout
20558 nomencl
20559 \end_layout
20560
20561 \end_inset
20562 </cell>
20563 <cell alignment="left" valignment="top" usebox="none">
20564 \begin_inset Text
20565
20566 \begin_layout Plain Layout
20567 rotfloat
20568 \end_layout
20569
20570 \end_inset
20571 </cell>
20572 <cell alignment="left" valignment="top" usebox="none">
20573 \begin_inset Text
20574
20575 \begin_layout Plain Layout
20576
20577 \end_layout
20578
20579 \end_inset
20580 </cell>
20581 <cell alignment="left" valignment="top" usebox="none">
20582 \begin_inset Text
20583
20584 \begin_layout Plain Layout
20585
20586 \end_layout
20587
20588 \end_inset
20589 </cell>
20590 <cell alignment="left" valignment="top" usebox="none">
20591 \begin_inset Text
20592
20593 \begin_layout Plain Layout
20594 wrapfig
20595 \end_layout
20596
20597 \end_inset
20598 </cell>
20599 <cell alignment="left" valignment="top" usebox="none">
20600 \begin_inset Text
20601
20602 \begin_layout Plain Layout
20603
20604 \end_layout
20605
20606 \end_inset
20607 </cell>
20608 </row>
20609 </lyxtabular>
20610
20611 \end_inset
20612
20613
20614 \end_layout
20615
20616 \begin_layout Chapter
20617
20618 \lang english
20619 Names of available colors to be used in layouts
20620 \begin_inset CommandInset label
20621 LatexCommand label
20622 name "chap:Names-of-colors"
20623
20624 \end_inset
20625
20626
20627 \end_layout
20628
20629 \begin_layout Standard
20630
20631 \lang english
20632 The colors listed here are the standard colors and the those that you can
20633  adjust in the LyX preferences.
20634 \end_layout
20635
20636 \begin_layout Description
20637
20638 \lang english
20639 none
20640 \family roman
20641 \series medium
20642 \shape up
20643 \size normal
20644 \emph off
20645 \bar no
20646 \strikeout off
20647 \uuline off
20648 \uwave off
20649 \noun off
20650 \color none
20651  No particular color -- clear or default
20652 \end_layout
20653
20654 \begin_layout Description
20655
20656 \lang english
20657 black
20658 \end_layout
20659
20660 \begin_layout Description
20661
20662 \lang english
20663 white
20664 \end_layout
20665
20666 \begin_layout Description
20667
20668 \lang english
20669 red
20670 \end_layout
20671
20672 \begin_layout Description
20673
20674 \lang english
20675 green
20676 \end_layout
20677
20678 \begin_layout Description
20679
20680 \lang english
20681 blue
20682 \end_layout
20683
20684 \begin_layout Description
20685
20686 \lang english
20687 cyan
20688 \end_layout
20689
20690 \begin_layout Description
20691
20692 \lang english
20693 magenta
20694 \end_layout
20695
20696 \begin_layout Description
20697
20698 \lang english
20699 yellow
20700 \end_layout
20701
20702 \begin_layout Description
20703
20704 \lang english
20705 cursor Cursor color
20706 \end_layout
20707
20708 \begin_layout Description
20709
20710 \lang english
20711 background Background color
20712 \end_layout
20713
20714 \begin_layout Description
20715
20716 \lang english
20717 foreground Foreground color
20718 \end_layout
20719
20720 \begin_layout Description
20721
20722 \lang english
20723 selection Background color of selected text
20724 \end_layout
20725
20726 \begin_layout Description
20727
20728 \lang english
20729 selectiontext Foreground color of selected text
20730 \end_layout
20731
20732 \begin_layout Description
20733
20734 \lang english
20735 latex Text color in LaTeX mode 
20736 \end_layout
20737
20738 \begin_layout Description
20739
20740 \lang english
20741 preview The color used for previews
20742 \end_layout
20743
20744 \begin_layout Description
20745
20746 \lang english
20747 inlinecompletion Inline completion color 
20748 \end_layout
20749
20750 \begin_layout Description
20751
20752 \lang english
20753 nonunique_inlinecompletion Inline completion color for the non-unique part
20754 \end_layout
20755
20756 \begin_layout Description
20757
20758 \lang english
20759 notelabel Label color for notes
20760 \end_layout
20761
20762 \begin_layout Description
20763
20764 \lang english
20765 notebg Background color of notes
20766 \end_layout
20767
20768 \begin_layout Description
20769
20770 \lang english
20771 commentlabel Label color for comments
20772 \end_layout
20773
20774 \begin_layout Description
20775
20776 \lang english
20777 commentbg Background color of comments
20778 \end_layout
20779
20780 \begin_layout Description
20781
20782 \lang english
20783 greyedoutlabel Label color for greyedout insets
20784 \end_layout
20785
20786 \begin_layout Description
20787
20788 \lang english
20789 greyedouttext Color for greyedout inset text
20790 \end_layout
20791
20792 \begin_layout Description
20793
20794 \lang english
20795 greyedoutbg Background color of greyedout inset
20796 \end_layout
20797
20798 \begin_layout Description
20799
20800 \lang english
20801 shadedbg Background color of shaded box
20802 \end_layout
20803
20804 \begin_layout Description
20805
20806 \lang english
20807 listingsbg Background color of listings inset
20808 \end_layout
20809
20810 \begin_layout Description
20811
20812 \lang english
20813 branchlabel Label color for branches
20814 \end_layout
20815
20816 \begin_layout Description
20817
20818 \lang english
20819 footlabel Label color for footnotes
20820 \end_layout
20821
20822 \begin_layout Description
20823
20824 \lang english
20825 indexlabel Label color for index insets 
20826 \end_layout
20827
20828 \begin_layout Description
20829
20830 \lang english
20831 marginlabel Label color for margin notes 
20832 \end_layout
20833
20834 \begin_layout Description
20835
20836 \lang english
20837 phantomtext Text color for phantom insets 
20838 \end_layout
20839
20840 \begin_layout Description
20841
20842 \lang english
20843 urllabel Label color for URL insets
20844 \end_layout
20845
20846 \begin_layout Description
20847
20848 \lang english
20849 urltext Color for URL inset text
20850 \end_layout
20851
20852 \begin_layout Description
20853
20854 \lang english
20855 depthbar Color for the depth bars in the margin
20856 \end_layout
20857
20858 \begin_layout Description
20859
20860 \lang english
20861 language Color for marking foreign language words
20862 \end_layout
20863
20864 \begin_layout Description
20865
20866 \lang english
20867 command Text color for command insets
20868 \end_layout
20869
20870 \begin_layout Description
20871
20872 \lang english
20873 commandbg Background color for command insets 
20874 \end_layout
20875
20876 \begin_layout Description
20877
20878 \lang english
20879 commandframe Frame color for command insets
20880 \end_layout
20881
20882 \begin_layout Description
20883
20884 \lang english
20885 special Special chars text color
20886 \end_layout
20887
20888 \begin_layout Description
20889
20890 \lang english
20891 graphicsbg Graphics inset background color 
20892 \end_layout
20893
20894 \begin_layout Description
20895
20896 \lang english
20897 math Math inset text color 
20898 \end_layout
20899
20900 \begin_layout Description
20901
20902 \lang english
20903 mathbg Math inset background color
20904 \end_layout
20905
20906 \begin_layout Description
20907
20908 \lang english
20909 mathmacrobg Macro math inset background color
20910 \end_layout
20911
20912 \begin_layout Description
20913
20914 \lang english
20915 mathmacrohoverbg Macro math inset background color hovered
20916 \end_layout
20917
20918 \begin_layout Description
20919
20920 \lang english
20921 mathmacrolabel Macro math label color
20922 \end_layout
20923
20924 \begin_layout Description
20925
20926 \lang english
20927 mathmacroframe Macro math frame color
20928 \end_layout
20929
20930 \begin_layout Description
20931
20932 \lang english
20933 mathmacroblend Macro math blended color
20934 \end_layout
20935
20936 \begin_layout Description
20937
20938 \lang english
20939 mathmacrooldarg Macro template color for old parameters 
20940 \end_layout
20941
20942 \begin_layout Description
20943
20944 \lang english
20945 mathmacronewarg Macro template color for new parameters
20946 \end_layout
20947
20948 \begin_layout Description
20949
20950 \lang english
20951 mathframe Math inset frame color under focus 
20952 \end_layout
20953
20954 \begin_layout Description
20955
20956 \lang english
20957 mathcorners Math inset frame color not under focus
20958 \end_layout
20959
20960 \begin_layout Description
20961
20962 \lang english
20963 mathline Math line color
20964 \end_layout
20965
20966 \begin_layout Description
20967
20968 \lang english
20969 collapsable Collapsable insets text 
20970 \end_layout
20971
20972 \begin_layout Description
20973
20974 \lang english
20975 collapsableframe Collapsable insets frame
20976 \end_layout
20977
20978 \begin_layout Description
20979
20980 \lang english
20981 insetbg Inset marker background color
20982 \end_layout
20983
20984 \begin_layout Description
20985
20986 \lang english
20987 insetframe Inset marker frame color
20988 \end_layout
20989
20990 \begin_layout Description
20991
20992 \lang english
20993 error Error box text color
20994 \end_layout
20995
20996 \begin_layout Description
20997
20998 \lang english
20999 eolmarker End of line marker color
21000 \end_layout
21001
21002 \begin_layout Description
21003
21004 \lang english
21005 added_space Added space colour
21006 \end_layout
21007
21008 \begin_layout Description
21009
21010 \lang english
21011 appendix Appendix marker color
21012 \end_layout
21013
21014 \begin_layout Description
21015
21016 \lang english
21017 changebar Changebar color
21018 \end_layout
21019
21020 \begin_layout Description
21021
21022 \lang english
21023 deletedtext Deleted text color
21024 \end_layout
21025
21026 \begin_layout Description
21027
21028 \lang english
21029 addedtext Added text color
21030 \end_layout
21031
21032 \begin_layout Description
21033
21034 \lang english
21035 changedtextauthor1 Changed text color author 1
21036 \end_layout
21037
21038 \begin_layout Description
21039
21040 \lang english
21041 changedtextauthor2 Changed text color author 2
21042 \end_layout
21043
21044 \begin_layout Description
21045
21046 \lang english
21047 changedtextauthor3 Changed text color author 3
21048 \end_layout
21049
21050 \begin_layout Description
21051
21052 \lang english
21053 changedtextauthor4 Changed text color author 4
21054 \end_layout
21055
21056 \begin_layout Description
21057
21058 \lang english
21059 changedtextauthor5 Changed text color author 5
21060 \end_layout
21061
21062 \begin_layout Description
21063
21064 \lang english
21065 deletedtextmodifier Deleted text modifying color
21066 \end_layout
21067
21068 \begin_layout Description
21069
21070 \lang english
21071 tabularline Table line color
21072 \end_layout
21073
21074 \begin_layout Description
21075
21076 \lang english
21077 tabularonoffline Table line color 
21078 \end_layout
21079
21080 \begin_layout Description
21081
21082 \lang english
21083 bottomarea Bottom area color
21084 \end_layout
21085
21086 \begin_layout Description
21087
21088 \lang english
21089 newpage New page color 
21090 \end_layout
21091
21092 \begin_layout Description
21093
21094 \lang english
21095 pagebreak Page break color
21096 \end_layout
21097
21098 \begin_layout Description
21099
21100 \lang english
21101 buttonframe Color used for button frame
21102 \end_layout
21103
21104 \begin_layout Description
21105
21106 \lang english
21107 buttonbg Color used for bottom background
21108 \end_layout
21109
21110 \begin_layout Description
21111
21112 \lang english
21113 buttonhoverbg Color used for buttom under focus 
21114 \end_layout
21115
21116 \begin_layout Description
21117
21118 \lang english
21119 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
21120  
21121 \end_layout
21122
21123 \begin_layout Description
21124
21125 \lang english
21126 previewframe Preview frame color
21127 \end_layout
21128
21129 \begin_layout Description
21130
21131 \lang english
21132 inherit Color is inherited 
21133 \end_layout
21134
21135 \begin_layout Description
21136
21137 \lang english
21138 regexpframe Color for regexp frame
21139 \end_layout
21140
21141 \begin_layout Description
21142
21143 \lang english
21144 ignore For ignoring updates of a color
21145 \end_layout
21146
21147 \end_body
21148 \end_document