]> git.lyx.org Git - lyx.git/blob - lib/doc/fr/Customization.lyx
205c5e556b2617ef6b0d993035189d4e0f865c97
[lyx.git] / lib / doc / fr / Customization.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass jbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}
21   {\usepackage{lmodern}}{}
22
23 \fi % end if pdflatex is used
24
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
29   \frontmatter
30   \pdfbookmark[1]{\contentsname}{}
31   \myTOC
32   \mainmatter }
33
34 % Added only for Japanese translation
35 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
36 \usepackage[T1]{fontenc}
37 % Below is to correct PDF bookmarks
38 % but doesn't work because hyperref is automatically called.
39 % Modify \usepackage{hyperref} line manually
40 %\usepackage[dvipdfm,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc]{hyperref}
41 %\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
42 %\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
43 \end_preamble
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
46 \begin_modules
47 logicalmkup
48 \end_modules
49 \maintain_unincluded_children false
50 \begin_local_layout
51 Format 7
52 InsetLayout CharStyle:MenuItem
53 LyxType               charstyle
54 LabelString           menu
55 LatexType             command
56 LatexName             menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 End
64 \end_local_layout
65 \language japanese
66 \language_package default
67 \inputencoding auto
68 \fontencoding global
69 \font_roman default
70 \font_sans default
71 \font_typewriter default
72 \font_default_family default
73 \use_non_tex_fonts false
74 \font_sc false
75 \font_osf false
76 \font_sf_scale 100
77 \font_tt_scale 100
78
79 \graphics default
80 \default_output_format default
81 \output_sync 0
82 \bibtex_command default
83 \index_command default
84 \paperfontsize 12
85 \spacing single
86 \use_hyperref true
87 \pdf_title "LyX Configuration Manual"
88 \pdf_author "LyX Team"
89 \pdf_subject "LyX-Documentation Customization"
90 \pdf_keywords "LyX, documentation, customization"
91 \pdf_bookmarks true
92 \pdf_bookmarksnumbered true
93 \pdf_bookmarksopen true
94 \pdf_bookmarksopenlevel 1
95 \pdf_breaklinks false
96 \pdf_pdfborder false
97 \pdf_colorlinks true
98 \pdf_backref false
99 \pdf_pdfusetitle false
100 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
101 \papersize default
102 \use_geometry false
103 \use_amsmath 0
104 \use_esint 0
105 \use_mhchem 0
106 \use_mathdots 0
107 \cite_engine basic
108 \use_bibtopic false
109 \use_indices false
110 \paperorientation portrait
111 \suppress_date false
112 \use_refstyle 0
113 \branch OutDated
114 \selected 0
115 \filename_suffix 0
116 \color #f5fae7
117 \end_branch
118 \index 索引
119 \shortcut idx
120 \color #008000
121 \end_index
122 \secnumdepth 3
123 \tocdepth 3
124 \paragraph_separation indent
125 \paragraph_indentation default
126 \quotes_language english
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tracking_changes false
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 LyXの高度設定
141 \begin_inset Newline newline
142 \end_inset
143
144 熟練ユーザのための各機能
145 \end_layout
146
147 \begin_layout Author
148 LyX開発チーム
149 \begin_inset Foot
150 status collapsed
151
152 \begin_layout Plain Layout
153 \noindent
154 もしコメントや誤りの修正をお持ちでしたら、LyX文書化メーリングリスト
155 \begin_inset CommandInset href
156 LatexCommand href
157 target "lyx-docs@lists.lyx.org"
158 type "mailto:"
159
160 \end_inset
161
162 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
163 ast.net>をccにして送ってください。
164 \end_layout
165
166 \end_inset
167
168
169 \begin_inset Newline newline
170 \end_inset
171
172
173 \begin_inset Newline newline
174 \end_inset
175
176 第2.0.x版 
177 \end_layout
178
179 \begin_layout Standard
180 \begin_inset CommandInset toc
181 LatexCommand tableofcontents
182
183 \end_inset
184
185
186 \begin_inset Note Note
187 status open
188
189 \begin_layout Plain Layout
190 本文書を修正する際には、変更追跡機能を使用してください。これによって、
191 \end_layout
192
193 \begin_layout Plain Layout
194 LyX翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
195 \end_layout
196
197 \end_inset
198
199
200 \end_layout
201
202 \begin_layout Chapter
203 はじめに
204 \end_layout
205
206 \begin_layout Standard
207 この取扱説明書は、LyXに備わっている高度設定機能を取り扱います。ここでは、短絡キーや画面プレビューオプション、プリンタオプション、LyXサーバ経由でのLyXへ
208 のコマンド送信、国際化、新しいLaTeXクラスやLyXレイアウトの導入などの題材について論じます。おそらくは変更可能なことすべてについて触れることは無理でしょう
209 が—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高度設定については説明を行い、わかりにくいものにつ
210 いては正しい方向を指し示すことができるようにしていくつもりです。
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset Branch OutDated
215 status collapsed
216
217 \begin_layout Standard
218 Information from previous versions of this document that now seems to be
219  outdated is contained in the OutDated branch of this document.
220  By default, this information will not appear in the LaTeX output.
221 \end_layout
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 LyX設定ファイル
230 \end_layout
231
232 \begin_layout Standard
233 本章の目的は、LyX設定ファイル群を理解するための一助となることです。本章を読み進める前に、
234 \begin_inset Flex MenuItem
235 status collapsed
236
237 \begin_layout Plain Layout
238 ヘルプ\SpecialChar \menuseparator
239 L
240 \begin_inset ERT
241 status collapsed
242
243 \begin_layout Plain Layout
244
245 {}
246 \end_layout
247
248 \end_inset
249
250 yXについて
251 \end_layout
252
253 \end_inset
254
255 を使って、LyXライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、LyXがシステム全体の設定ファイルを置いておくと
256 ころです。一方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
257 \begin_inset Flex Code
258 status collapsed
259
260 \begin_layout Plain Layout
261 L
262 \begin_inset ERT
263 status collapsed
264
265 \begin_layout Plain Layout
266
267 {}
268 \end_layout
269
270 \end_inset
271
272 yXDir
273 \end_layout
274
275 \end_inset
276
277 と呼び、後者を
278 \begin_inset Flex MenuItem
279 status collapsed
280
281 \begin_layout Plain Layout
282 UserDir
283 \end_layout
284
285 \end_inset
286
287 と呼ぶことにします。
288 \end_layout
289
290 \begin_layout Section
291 \begin_inset Flex Code
292 status collapsed
293
294 \begin_layout Plain Layout
295 L
296 \begin_inset ERT
297 status collapsed
298
299 \begin_layout Plain Layout
300
301 {}
302 \end_layout
303
304 \end_inset
305
306 yXDir
307 \end_layout
308
309 \end_inset
310
311 にはなにがあるの?
312 \end_layout
313
314 \begin_layout Standard
315 \begin_inset Flex Code
316 status collapsed
317
318 \begin_layout Plain Layout
319 L
320 \begin_inset ERT
321 status collapsed
322
323 \begin_layout Plain Layout
324
325 {}
326 \end_layout
327
328 \end_inset
329
330 yXDir
331 \end_layout
332
333 \end_inset
334
335 とそのサブディレクトリには、多くのファイルがあり、LyXの挙動を高度設定するのに使用されます。これらのファイルの多くは、LyX内の
336 \begin_inset Flex MenuItem
337 status collapsed
338
339 \begin_layout Plain Layout
340 ツール\SpecialChar \menuseparator
341 設定
342 \end_layout
343
344 \end_inset
345
346 ダイアログから変更することができます。LyX中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、Ly
347 Xの他の多くの内部動作は、
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 L
353 \begin_inset ERT
354 status collapsed
355
356 \begin_layout Plain Layout
357
358 {}
359 \end_layout
360
361 \end_inset
362
363 yXDir
364 \end_layout
365
366 \end_inset
367
368 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
369 \end_layout
370
371 \begin_layout Subsection
372 自動的に生成されるファイル
373 \end_layout
374
375 \begin_layout Standard
376 \begin_inset Flex MenuItem
377 status collapsed
378
379 \begin_layout Plain Layout
380 UserDir
381 \end_layout
382
383 \end_inset
384
385 にある各ファイルは、LyXが自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされ
386 てしまうので、一般的には修正しないことが望まれます。
387 \end_layout
388
389 \begin_layout Labeling
390 \labelwidthstring 00.00.0000
391 \begin_inset Flex Code
392 status collapsed
393
394 \begin_layout Plain Layout
395 lyxrc.defaults
396 \end_layout
397
398 \end_inset
399
400  このファイルには、様々な既定コマンドが置かれています。
401 \end_layout
402
403 \begin_layout Labeling
404 \labelwidthstring 00.00.0000
405 \begin_inset Flex Code
406 status collapsed
407
408 \begin_layout Plain Layout
409 packages.lst
410 \end_layout
411
412 \end_inset
413
414  このファイルには、LyXが認識したパッケージの一覧が収められています。現在のところ、これはLyXプログラム自体には使用されていませんが、抽出された情報その他は
415
416 \begin_inset Flex MenuItem
417 status collapsed
418
419 \begin_layout Plain Layout
420 ヘルプ\SpecialChar \menuseparator
421 LaT
422 \begin_inset ERT
423 status collapsed
424
425 \begin_layout Plain Layout
426
427 {}
428 \end_layout
429
430 \end_inset
431
432 eXの設定
433 \end_layout
434
435 \end_inset
436
437 で見ることができます。
438 \end_layout
439
440 \begin_layout Labeling
441 \labelwidthstring 00.00.0000
442 \begin_inset Flex Code
443 status collapsed
444
445 \begin_layout Plain Layout
446 textclass.lst
447 \end_layout
448
449 \end_inset
450
451  ユーザの
452 \begin_inset Flex Code
453 status collapsed
454
455 \begin_layout Plain Layout
456 layout/
457 \end_layout
458
459 \end_inset
460
461 ディレクトリで検出されたテキストクラスと、関連したLaTeX文書クラスおよびその説明の一覧です。
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 lyxmodules.lst
471 \end_layout
472
473 \end_inset
474
475  ユーザの
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 layout/
481 \end_layout
482
483 \end_inset
484
485 ディレクトリで検出されたレイアウトモジュールの一覧です。
486 \end_layout
487
488 \begin_layout Labeling
489 \labelwidthstring 00.00.0000
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494 *files.lst
495 \end_layout
496
497 \end_inset
498
499  ご使用のシステムで検出された様々な種類のLaTeX関連ファイルの一覧です。
500 \end_layout
501
502 \begin_layout Labeling
503 \labelwidthstring 00.00.0000
504 \begin_inset Flex Code
505 status collapsed
506
507 \begin_layout Plain Layout
508 doc/LaT
509 \begin_inset ERT
510 status collapsed
511
512 \begin_layout Plain Layout
513
514 {}
515 \end_layout
516
517 \end_inset
518
519 eXConfig.lyx
520 \end_layout
521
522 \end_inset
523
524  このファイルは、自動設定中に
525 \begin_inset Flex Code
526 status collapsed
527
528 \begin_layout Plain Layout
529 LaT
530 \begin_inset ERT
531 status collapsed
532
533 \begin_layout Plain Layout
534
535 {}
536 \end_layout
537
538 \end_inset
539
540 eXConfig.lyx.in
541 \end_layout
542
543 \end_inset
544
545 から自動的に生成されます。ご使用中のLaTeXの設定に関する情報が納められています。
546 \end_layout
547
548 \begin_layout Subsection
549 ディレクトリ
550 \end_layout
551
552 \begin_layout Standard
553 以下の各ディレクトリは、
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 L
559 \begin_inset ERT
560 status collapsed
561
562 \begin_layout Plain Layout
563
564 {}
565 \end_layout
566
567 \end_inset
568
569 yXDir
570 \end_layout
571
572 \end_inset
573
574
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 UserDir
580 \end_layout
581
582 \end_inset
583
584 に重複して存在します。特定のファイルが両方の場所にある場合には、
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 UserDir
590 \end_layout
591
592 \end_inset
593
594 の方にあるものが使用されます。
595 \end_layout
596
597 \begin_layout Labeling
598 \labelwidthstring 00.00.0000
599 \begin_inset Flex Code
600 status collapsed
601
602 \begin_layout Plain Layout
603 bind/
604 \end_layout
605
606 \end_inset
607
608  このディレクトリには、LyXで使用されるキー割当を定義している、拡張子が
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613 .bind
614 \end_layout
615
616 \end_inset
617
618 のファイルが置かれています。
619 \begin_inset Flex Code
620 status collapsed
621
622 \begin_layout Plain Layout
623 $LANG_xxx.bind
624 \end_layout
625
626 \end_inset
627
628 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
629 \end_layout
630
631 \begin_layout Labeling
632 \labelwidthstring 00.00.0000
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 clipart/
638 \end_layout
639
640 \end_inset
641
642  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
643 \end_layout
644
645 \begin_layout Labeling
646 \labelwidthstring 00.00.0000
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651 doc/
652 \end_layout
653
654 \end_inset
655
656  このディレクトリには、LyXの取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 LaT
662 \begin_inset ERT
663 status collapsed
664
665 \begin_layout Plain Layout
666
667 {}
668 \end_layout
669
670 \end_inset
671
672 eXConfig.lyx
673 \end_layout
674
675 \end_inset
676
677 ファイルは特に注目に値します。各国語版のヘルプ文書は、
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 doc/xx
683 \end_layout
684
685 \end_inset
686
687 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、第
688 \begin_inset CommandInset ref
689 LatexCommand ref
690 reference "cha:LyXの各国語対応"
691
692 \end_inset
693
694 章をご覧ください。
695 \end_layout
696
697 \begin_layout Labeling
698 \labelwidthstring 00.00.0000
699 \begin_inset Flex Code
700 status collapsed
701
702 \begin_layout Plain Layout
703 examples/
704 \end_layout
705
706 \end_inset
707
708  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
709 \begin_inset Flex MenuItem
710 status collapsed
711
712 \begin_layout Plain Layout
713 用例
714 \end_layout
715
716 \end_inset
717
718 ボタンを押すと、このディレクトリが表示されます。
719 \end_layout
720
721 \begin_layout Labeling
722 \labelwidthstring 00.00.0000
723 \begin_inset Flex Code
724 status collapsed
725
726 \begin_layout Plain Layout
727 images/
728 \end_layout
729
730 \end_inset
731
732  このディレクトリには、
733 \begin_inset Flex MenuItem
734 status collapsed
735
736 \begin_layout Plain Layout
737 文書
738 \end_layout
739
740 \end_inset
741
742 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、LyXを起動したときに現れるバナーも納められています。
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、第
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 章をご覧ください。
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには、第
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 章に述べられているテキストクラスおよびモジュールのファイルが納められています。
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには、LyXの各バージョン間の変換に使用される
799 \begin_inset Flex Code
800 status collapsed
801
802 \begin_layout Plain Layout
803 lyx2lyx
804 \end_layout
805
806 \end_inset
807
808  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 scripts/
818 \end_layout
819
820 \end_inset
821
822  このディレクトリには、
823 \begin_inset Flex MenuItem
824 status collapsed
825
826 \begin_layout Plain Layout
827 外用ひな型
828 \end_layout
829
830 \end_inset
831
832 機能の有用性を示すためのファイルがいくつか納められています。LyX自身が使用するスクリプトもいくつか収められています。
833 \end_layout
834
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 templates/
842 \end_layout
843
844 \end_inset
845
846  このディレクトリには、第
847 \begin_inset CommandInset ref
848 LatexCommand ref
849 reference "sec:ひな型を作成する"
850
851 \end_inset
852
853 章で述べられている標準のLyXひな型ファイルが納められています。
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 ui/
863 \end_layout
864
865 \end_inset
866
867  このディレクトリには、LyXの操作画面を定義する拡張子
868 \begin_inset Flex Code
869 status collapsed
870
871 \begin_layout Plain Layout
872 .ui
873 \end_layout
874
875 \end_inset
876
877 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
878 \end_layout
879
880 \begin_layout Subsection
881 変更を加えない方がよいファイル
882 \end_layout
883
884 \begin_layout Standard
885 これらのファイルはLyXが内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
886 \end_layout
887
888 \begin_layout Labeling
889 \labelwidthstring 00.00.0000
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 CREDITS
895 \end_layout
896
897 \end_inset
898
899  このファイルは、LyX開発陣の名簿です。この内容は、メニュー項目
900 \begin_inset Flex MenuItem
901 status collapsed
902
903 \begin_layout Plain Layout
904 ヘルプ\SpecialChar \menuseparator
905 L
906 \begin_inset ERT
907 status collapsed
908
909 \begin_layout Plain Layout
910
911 {}
912 \end_layout
913
914 \end_inset
915
916 yXについて
917 \end_layout
918
919 \end_inset
920
921 で表示されます。
922 \end_layout
923
924 \begin_layout Labeling
925 \labelwidthstring 00.00.0000
926 \begin_inset Flex Code
927 status collapsed
928
929 \begin_layout Plain Layout
930 chkconfig.ltx
931 \end_layout
932
933 \end_inset
934
935  これは、自動設定プロセスによって使用されるLaTeXスクリプトです。直接実行しないでください。
936 \end_layout
937
938 \begin_layout Labeling
939 \labelwidthstring 00.00.0000
940 \begin_inset Flex Code
941 status collapsed
942
943 \begin_layout Plain Layout
944 configure.py
945 \end_layout
946
947 \end_inset
948
949  これは、LyXの再設定によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
950 \end_layout
951
952 \begin_layout Subsection
953 ひとこと必要なファイル群...
954 \end_layout
955
956 \begin_layout Labeling
957 \labelwidthstring 00.00.0000
958 \begin_inset Flex Code
959 status collapsed
960
961 \begin_layout Plain Layout
962 encodings
963 \end_layout
964
965 \end_inset
966
967  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
968 \end_layout
969
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 external_templates
977 \end_layout
978
979 \end_inset
980
981  このファイルには、新しく導入された
982 \begin_inset Flex MenuItem
983 status collapsed
984
985 \begin_layout Plain Layout
986 外用ひな型
987 \end_layout
988
989 \end_inset
990
991 機能で使用できるひな型が載っています。
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 languages
1001 \end_layout
1002
1003 \end_inset
1004
1005  このファイルには、現在LyXがサポートしている言語の全一覧が載っています。
1006 \end_layout
1007
1008 \begin_layout Section
1009 ユーザのローカル設定ディレクトリ
1010 \end_layout
1011
1012 \begin_layout Standard
1013 LyXを非特権ユーザとして利用している場合でも、自分自身で使うために、LyXの設定を変更したいと思うかもしれません。
1014 \begin_inset Flex Code
1015 status collapsed
1016
1017 \begin_layout Plain Layout
1018 UserDir
1019 \end_layout
1020
1021 \end_inset
1022
1023 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1024 \begin_inset Flex MenuItem
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 ヘルプ\SpecialChar \menuseparator
1029 L
1030 \begin_inset ERT
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034
1035 {}
1036 \end_layout
1037
1038 \end_inset
1039
1040
1041 \begin_inset ERT
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045
1046 {}
1047 \end_layout
1048
1049 \end_inset
1050
1051 yXについて
1052 \end_layout
1053
1054 \end_inset
1055
1056 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061 L
1062 \begin_inset ERT
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066
1067 {}
1068 \end_layout
1069
1070 \end_inset
1071
1072 yXDir
1073 \end_layout
1074
1075 \end_inset
1076
1077 のミラーとして使用されており、これは
1078 \begin_inset Flex Code
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082 UserDir
1083 \end_layout
1084
1085 \end_inset
1086
1087 内のすべてのファイルが、
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092 L
1093 \begin_inset ERT
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097
1098 {}
1099 \end_layout
1100
1101 \end_inset
1102
1103 yXDir
1104 \end_layout
1105
1106 \end_inset
1107
1108 の対応するファイルを置き換えるものとして機能していることを意味します。前節で述べられた設定はどれも、全ユーザに影響する全システム用ディレクトリに置くこともできま
1109 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1110 \end_layout
1111
1112 \begin_layout Standard
1113 わかりやすくするために、いくつか例を挙げましょう。
1114 \end_layout
1115
1116 \begin_layout Itemize
1117 \begin_inset Flex MenuItem
1118 status collapsed
1119
1120 \begin_layout Plain Layout
1121 ツール\SpecialChar \menuseparator
1122 設定
1123 \end_layout
1124
1125 \end_inset
1126
1127 ダイアログで設定されるユーザ設定は、
1128 \begin_inset Flex Code
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 UserDir
1133 \end_layout
1134
1135 \end_inset
1136
1137 中の
1138 \begin_inset Flex Code
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 preferences
1143 \end_layout
1144
1145 \end_inset
1146
1147 ファイルに保存されます。
1148 \end_layout
1149
1150 \begin_layout Itemize
1151 \begin_inset Flex MenuItem
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 ツール\SpecialChar \menuseparator
1156 再設定
1157 \end_layout
1158
1159 \end_inset
1160
1161 を使用して再設定を行うと、LyXは
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 configure.py
1167 \end_layout
1168
1169 \end_inset
1170
1171 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 UserDir/layouts
1177 \end_layout
1178
1179 \end_inset
1180
1181 にご自身で追加したテキストファイルは、
1182 \begin_inset Flex MenuItem
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186 文書\SpecialChar \menuseparator
1187 設定
1188 \end_layout
1189
1190 \end_inset
1191
1192 ダイアログのクラス一覧に表示されるようになることを意味します。
1193 \end_layout
1194
1195 \begin_layout Itemize
1196 たとえば、LyXのFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとして
1197 も、それらのファイルを
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 UserDir/doc/
1203 \end_layout
1204
1205 \end_inset
1206
1207 ディレクトリにコピーすれば、
1208 \begin_inset Flex MenuItem
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 ヘルプ
1213 \end_layout
1214
1215 \end_inset
1216
1217 メニュー項目はこれらを開くようになります!
1218 \end_layout
1219
1220 \begin_layout Section
1221 LyXを複数の設定を使って実行するには
1222 \end_layout
1223
1224 \begin_layout Standard
1225 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1226 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1227 どのディレクトリを使用するか指定するのです。
1228 \end_layout
1229
1230 \begin_layout Standard
1231 LyXをコマンドラインスイッチ
1232 \begin_inset Flex Code
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 -userdir
1237 \end_layout
1238
1239 \end_inset
1240
1241  
1242 \emph on
1243 <ディレクトリ名>
1244 \emph default
1245 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(LyXを
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 -userdir
1251 \end_layout
1252
1253 \end_inset
1254
1255 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、LyXは、初めてLyXを実行したときに既定ディレ
1256 クトリを訊いてくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプシ
1257 ョンを修正することができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1258 \begin_inset Flex Code
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 LYX_USERDIR_20x
1263 \end_layout
1264
1265 \end_inset
1266
1267 を特定の値に設定しても、全く同じ効果があります。
1268 \end_layout
1269
1270 \begin_layout Standard
1271 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 NewUserDir/layouts
1277 \end_layout
1278
1279 \end_inset
1280
1281 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1282 クを使用してください。LyXが新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにする
1283 には、空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 doc/
1289 \end_layout
1290
1291 \end_inset
1292
1293 サブディレクトリには、設定スクリプト(
1294 \begin_inset Flex MenuItem
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 ツール\SpecialChar \menuseparator
1299 再設定
1300 \end_layout
1301
1302 \end_inset
1303
1304 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1305 \end_layout
1306
1307 \begin_layout Chapter
1308 設定ダイアログ
1309 \end_layout
1310
1311 \begin_layout Standard
1312 設定ダイアログのオプションのすべては、
1313 \emph on
1314 ユーザーの手引き
1315 \emph default
1316 の付録
1317 \emph on
1318 設定ダイアログ
1319 \emph default
1320 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1321 \end_layout
1322
1323 \begin_layout Section
1324 ファイル形式
1325 \begin_inset CommandInset label
1326 LatexCommand label
1327 name "sec:ファイル形式"
1328
1329 \end_inset
1330
1331
1332 \end_layout
1333
1334 \begin_layout Standard
1335 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1336 \begin_inset Flex MenuItem
1337 status collapsed
1338
1339 \begin_layout Plain Layout
1340 ツール\SpecialChar \menuseparator
1341 設定
1342 \end_layout
1343
1344 \end_inset
1345
1346 ダイアログを開いてください。
1347 \begin_inset Flex MenuItem
1348 status collapsed
1349
1350 \begin_layout Plain Layout
1351 ファイル処理\SpecialChar \menuseparator
1352 ファイル形式
1353 \end_layout
1354
1355 \end_inset
1356
1357 の中で
1358 \begin_inset Flex MenuItem
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362 新規\SpecialChar \ldots{}
1363
1364 \end_layout
1365
1366 \end_inset
1367
1368 ボタンを押して、登録する新しい形式を定義してください。
1369 \begin_inset Flex MenuItem
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 フィールドは、GUI中で形式を認識するために用いられる名称です。
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 短縮名
1384 \end_layout
1385
1386 \end_inset
1387
1388 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1389 \begin_inset Flex MenuItem
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 短絡キー
1394 \end_layout
1395
1396 \end_inset
1397
1398 フィールドは、メニュー中で短絡キーを提供するのに使用されます(たとえば、
1399 \begin_inset Flex MenuItem
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 Alt-V D
1404 \end_layout
1405
1406 \end_inset
1407
1408 を押すと
1409 \begin_inset Flex MenuItem
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413 表示\SpecialChar \menuseparator
1414 DVI
1415 \end_layout
1416
1417 \end_inset
1418
1419 となります)。
1420 \end_layout
1421
1422 \begin_layout Standard
1423 形式には、
1424 \begin_inset Flex MenuItem
1425 status collapsed
1426
1427 \begin_layout Plain Layout
1428 閲覧プログラム
1429 \end_layout
1430
1431 \end_inset
1432
1433
1434 \begin_inset Flex MenuItem
1435 status collapsed
1436
1437 \begin_layout Plain Layout
1438 編集プログラム
1439 \end_layout
1440
1441 \end_inset
1442
1443 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1444 \begin_inset Flex MenuItem
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 Ghostview
1449 \end_layout
1450
1451 \end_inset
1452
1453 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1454 いることができます。この閲覧プログラムは、LyX中で画像を閲覧したり
1455 \begin_inset Flex MenuItem
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 表示
1460 \end_layout
1461
1462 \end_inset
1463
1464 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 外部で編集
1470 \end_layout
1471
1472 \end_inset
1473
1474 を選択したときに起動します。
1475 \end_layout
1476
1477 \begin_layout Standard
1478 ファイル形式の
1479 \begin_inset Flex MenuItem
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 MIME
1484 \end_layout
1485
1486 \end_inset
1487
1488 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1489 ます。重要なファイル形式のうちには、
1490 \begin_inset CommandInset href
1491 LatexCommand href
1492 name "IANA"
1493 target "http://www.iana.org/assignments/media-types/"
1494
1495 \end_inset
1496
1497 に公式に登録されたMIME型がないものがあります。そこで、LyXは、
1498 \begin_inset CommandInset href
1499 LatexCommand href
1500 name "freedesktop.org"
1501 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1502
1503 \end_inset
1504
1505 で指定されているMIME型拡張表を使用しています。
1506 \end_layout
1507
1508 \begin_layout Standard
1509 \begin_inset Flex MenuItem
1510 status collapsed
1511
1512 \begin_layout Plain Layout
1513 文書形式
1514 \end_layout
1515
1516 \end_inset
1517
1518 オプションは、LyXに、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1519 \begin_inset CommandInset ref
1520 LatexCommand ref
1521 reference "sec:変換子"
1522
1523 \end_inset
1524
1525 節を参照)、この形式が
1526 \begin_inset Flex MenuItem
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 ファイル\SpecialChar \menuseparator
1531 書き出し
1532 \end_layout
1533
1534 \end_inset
1535
1536 メニューに表示されます。また、この形式に閲覧プログラムが指定されている場合には、この形式は
1537 \begin_inset Flex MenuItem
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 表示
1542 \end_layout
1543
1544 \end_inset
1545
1546 メニューにも表示されます。
1547 \begin_inset Flex Code
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 png
1552 \end_layout
1553
1554 \end_inset
1555
1556 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1557 \begin_inset Flex Code
1558 status collapsed
1559
1560 \begin_layout Plain Layout
1561 pdf
1562 \end_layout
1563
1564 \end_inset
1565
1566 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1567 \end_layout
1568
1569 \begin_layout Standard
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ベクター画像形式
1575 \end_layout
1576
1577 \end_inset
1578
1579 オプションは、LyXにこの形式がベクター画像を含みうることを教示するものです。この情報は、
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 pdflatex
1585 \end_layout
1586
1587 \end_inset
1588
1589 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1590 \begin_inset Flex MenuItem
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 pdflatex
1595 \end_layout
1596
1597 \end_inset
1598
1599 は、
1600 \begin_inset Flex MenuItem
1601 status collapsed
1602
1603 \begin_layout Plain Layout
1604 pdf
1605 \end_layout
1606
1607 \end_inset
1608
1609
1610 \begin_inset Flex MenuItem
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614 png
1615 \end_layout
1616
1617 \end_inset
1618
1619
1620 \begin_inset Flex MenuItem
1621 status collapsed
1622
1623 \begin_layout Plain Layout
1624 jpg
1625 \end_layout
1626
1627 \end_inset
1628
1629 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1630 \begin_inset Flex MenuItem
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 pdf
1635 \end_layout
1636
1637 \end_inset
1638
1639
1640 \begin_inset Flex MenuItem
1641 status collapsed
1642
1643 \begin_layout Plain Layout
1644 png
1645 \end_layout
1646
1647 \end_inset
1648
1649
1650 \begin_inset Flex MenuItem
1651 status collapsed
1652
1653 \begin_layout Plain Layout
1654 jpg
1655 \end_layout
1656
1657 \end_inset
1658
1659 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1660 \begin_inset Flex MenuItem
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 pdf
1665 \end_layout
1666
1667 \end_inset
1668
1669 に変換され、そうでない場合には
1670 \begin_inset Flex MenuItem
1671 status collapsed
1672
1673 \begin_layout Plain Layout
1674 png
1675 \end_layout
1676
1677 \end_inset
1678
1679 に変換されます。
1680 \end_layout
1681
1682 \begin_layout Section
1683 複写子
1684 \end_layout
1685
1686 \begin_layout Standard
1687 形式の変換はすべて、LyXの一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがありま
1688
1689 \begin_inset Foot
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1694 あります。
1695 \end_layout
1696
1697 \end_inset
1698
1699 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1700 \end_layout
1701
1702 \begin_layout Standard
1703 複写子の定義においては、以下の4つの変数を用いることができます。
1704 \end_layout
1705
1706 \begin_layout Labeling
1707 \labelwidthstring 00.00.0000
1708 \begin_inset Flex Code
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 $$s
1713 \end_layout
1714
1715 \end_inset
1716
1717  LyXのシステムディレクトリ(例:
1718 \begin_inset Flex MenuItem
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 /usr/share/lyx
1723 \end_layout
1724
1725 \end_inset
1726
1727
1728 \end_layout
1729
1730 \begin_layout Labeling
1731 \labelwidthstring 00.00.0000
1732 \begin_inset Flex Code
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 $$i
1737 \end_layout
1738
1739 \end_inset
1740
1741  入力ファイル
1742 \end_layout
1743
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Flex Code
1747 status collapsed
1748
1749 \begin_layout Plain Layout
1750 $$o
1751 \end_layout
1752
1753 \end_inset
1754
1755  出力ファイル
1756 \end_layout
1757
1758 \begin_layout Labeling
1759 \labelwidthstring 00.00.0000
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 $$l
1765 \end_layout
1766
1767 \end_inset
1768
1769  「LaTeX名」
1770 \end_layout
1771
1772 \begin_layout Standard
1773 最後の変数は、LaTeXの
1774 \series bold
1775
1776 \backslash
1777 include
1778 \series default
1779 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1780 \end_layout
1781
1782 \begin_layout Standard
1783 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1784 \begin_inset Flex Code
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 /home/you/pdf/
1789 \end_layout
1790
1791 \end_inset
1792
1793 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1794 \end_layout
1795
1796 \begin_layout Standard
1797 \begin_inset listings
1798 inline false
1799 status open
1800
1801 \begin_layout Plain Layout
1802
1803 #!/bin/bash
1804 \end_layout
1805
1806 \begin_layout Plain Layout
1807
1808 FROMFILE=$1
1809 \end_layout
1810
1811 \begin_layout Plain Layout
1812
1813 TOFILE=`basename $2`
1814 \end_layout
1815
1816 \begin_layout Plain Layout
1817
1818 cp $FROMFILE /home/you/pdf/$TOFILE
1819 \end_layout
1820
1821 \end_inset
1822
1823 これを、自身のローカルLyXディレクトリ—たとえば
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 /home/you/.lyx/scripts/pdfcopier.sh
1829 \end_layout
1830
1831 \end_inset
1832
1833 —に保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1834 \begin_inset Flex MenuItem
1835 status collapsed
1836
1837 \begin_layout Plain Layout
1838 ツール\SpecialChar \menuseparator
1839 設定
1840 \end_layout
1841
1842 \end_inset
1843
1844 ダイアログの
1845 \begin_inset Flex MenuItem
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 ファイル処理\SpecialChar \menuseparator
1850 ファイル形式
1851 \end_layout
1852
1853 \end_inset
1854
1855 の中で、
1856 \begin_inset Flex MenuItem
1857 status collapsed
1858
1859 \begin_layout Plain Layout
1860 PDF(pdflatex)
1861 \end_layout
1862
1863 \end_inset
1864
1865 形式—あるいは他のPDF形式のうちどれか—を選択し、
1866 \begin_inset Flex MenuItem
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 複写子
1871 \end_layout
1872
1873 \end_inset
1874
1875 フィールドに
1876 \begin_inset Flex Code
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 pdfcopier.sh $$i $$o
1881 \end_layout
1882
1883 \end_inset
1884
1885 と入力します。
1886 \end_layout
1887
1888 \begin_layout Standard
1889 複写子は、LyX自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、LyXは自動的に
1890 \begin_inset Flex MenuItem
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 HTML
1895 \end_layout
1896
1897 \end_inset
1898
1899 形式と
1900 \begin_inset Flex MenuItem
1901 status collapsed
1902
1903 \begin_layout Plain Layout
1904 HTML
1905 \begin_inset space ~
1906 \end_inset
1907
1908 (MS Word)
1909 \end_layout
1910
1911 \end_inset
1912
1913 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1914 るように手配します。これらのファイルはすべて、元のLyXファイルのあるディレクトリのサブディレクトリに書き込まれます
1915 \begin_inset Foot
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
1920 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
1921 \begin_inset Flex MenuItem
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 L
1926 \begin_inset ERT
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930
1931 {}
1932 \end_layout
1933
1934 \end_inset
1935
1936 yXconv
1937 \end_layout
1938
1939 \end_inset
1940
1941 」となっているので、
1942 \begin_inset Flex MenuItem
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 /path/to/filename.lyx
1947 \end_layout
1948
1949 \end_inset
1950
1951 から生成されたHTMLファイルは、
1952 \begin_inset Flex MenuItem
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 /path/to/filename.html.L
1957 \begin_inset ERT
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961
1962 {}
1963 \end_layout
1964
1965 \end_inset
1966
1967 yXconv
1968 \end_layout
1969
1970 \end_inset
1971
1972 となります。.
1973  
1974 \end_layout
1975
1976 \end_inset
1977
1978
1979 \end_layout
1980
1981 \begin_layout Section
1982 変換子
1983 \begin_inset CommandInset label
1984 LatexCommand label
1985 name "sec:変換子"
1986
1987 \end_inset
1988
1989
1990 \end_layout
1991
1992 \begin_layout Standard
1993 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
1994 \begin_inset Flex MenuItem
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 ツール\SpecialChar \menuseparator
1999 設定\SpecialChar \menuseparator
2000 ファイル処理\SpecialChar \menuseparator
2001 変換子
2002 \end_layout
2003
2004 \end_inset
2005
2006 ダイアログで行います。
2007 \end_layout
2008
2009 \begin_layout Standard
2010 新規に変換子を定義するには、ドロップダウンリストから
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 変換元の形式
2016 \end_layout
2017
2018 \end_inset
2019
2020
2021 \begin_inset Flex MenuItem
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 変換先の形式
2026 \end_layout
2027
2028 \end_inset
2029
2030 を選択し、変換に必要なコマンドを入力してから
2031 \begin_inset Flex MenuItem
2032 status collapsed
2033
2034 \begin_layout Plain Layout
2035 追加
2036 \end_layout
2037
2038 \end_inset
2039
2040 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2041 \end_layout
2042
2043 \begin_layout Labeling
2044 \labelwidthstring 00.00.0000
2045 \begin_inset Flex Code
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 $$s
2050 \end_layout
2051
2052 \end_inset
2053
2054  LyXシステムディレクトリ
2055 \end_layout
2056
2057 \begin_layout Labeling
2058 \labelwidthstring 00.00.0000
2059 \begin_inset Flex Code
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 $$i
2064 \end_layout
2065
2066 \end_inset
2067
2068  入力ファイル
2069 \end_layout
2070
2071 \begin_layout Labeling
2072 \labelwidthstring 00.00.0000
2073 \begin_inset Flex Code
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 $$o
2078 \end_layout
2079
2080 \end_inset
2081
2082  出力ファイル
2083 \end_layout
2084
2085 \begin_layout Labeling
2086 \labelwidthstring 00.00.0000
2087 \begin_inset Flex Code
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091 $$b
2092 \end_layout
2093
2094 \end_inset
2095
2096  入力ファイルのベースファイル名(拡張子をとった部分)
2097 \end_layout
2098
2099 \begin_layout Labeling
2100 \labelwidthstring 00.00.0000
2101 \begin_inset Flex Code
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105 $$p
2106 \end_layout
2107
2108 \end_inset
2109
2110  入力ファイルのパス
2111 \end_layout
2112
2113 \begin_layout Labeling
2114 \labelwidthstring 00.00.0000
2115 \begin_inset Flex Code
2116 status collapsed
2117
2118 \begin_layout Plain Layout
2119 $$r
2120 \end_layout
2121
2122 \end_inset
2123
2124  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2125 \end_layout
2126
2127 \begin_layout Labeling
2128 \labelwidthstring 00.00.0000
2129 \begin_inset Flex Code
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 $$e
2134 \end_layout
2135
2136 \end_inset
2137
2138  文書エンコーディングのiconv名
2139 \end_layout
2140
2141 \begin_layout Standard
2142 \begin_inset Flex MenuItem
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 追加フラグ
2147 \end_layout
2148
2149 \end_inset
2150
2151 フィールドには、以下のフラグをコンマで区切って入力することができます。
2152 \end_layout
2153
2154 \begin_layout Labeling
2155 \labelwidthstring 00.00.0000
2156 \begin_inset Flex Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160 latex
2161 \end_layout
2162
2163 \end_inset
2164
2165  この変換子がLaTeXの一種を実行することを示します。これによって、LyXのLaTeXエラーログに記録を残せるようになります。
2166 \end_layout
2167
2168 \begin_layout Labeling
2169 \labelwidthstring 00.00.0000
2170 \begin_inset Flex Code
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 needaux
2175 \end_layout
2176
2177 \end_inset
2178
2179  変換にLaTeXの
2180 \begin_inset Flex MenuItem
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 .aux
2185 \end_layout
2186
2187 \end_inset
2188
2189 ファイルが必要であることを示します。
2190 \end_layout
2191
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 xml
2199 \end_layout
2200
2201 \end_inset
2202
2203  出力がXMLであることを示します。
2204 \end_layout
2205
2206 \begin_layout Standard
2207 以下の3つのフラグは 
2208 \begin_inset Flex MenuItem
2209 status collapsed
2210
2211 \begin_layout Plain Layout
2212 key
2213 \begin_inset space ~
2214 \end_inset
2215
2216 =
2217 \begin_inset space ~
2218 \end_inset
2219
2220 value
2221 \end_layout
2222
2223 \end_inset
2224
2225 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2226 \end_layout
2227
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Flex Code
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 parselog
2235 \end_layout
2236
2237 \end_inset
2238
2239  これを指定すると、変換子の標準エラーが
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 infile.out
2245 \end_layout
2246
2247 \end_inset
2248
2249 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2250 \begin_inset Flex Code
2251 status collapsed
2252
2253 \begin_layout Plain Layout
2254 script < infile.out > infile.log
2255 \end_layout
2256
2257 \end_inset
2258
2259 の形で実行されるようになります。引数には
2260 \begin_inset Flex Code
2261 status collapsed
2262
2263 \begin_layout Plain Layout
2264 $$s
2265 \end_layout
2266
2267 \end_inset
2268
2269 を指定することができます。
2270 \end_layout
2271
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Flex Code
2275 status collapsed
2276
2277 \begin_layout Plain Layout
2278 resultdir
2279 \end_layout
2280
2281 \end_inset
2282
2283  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。LyXはこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛
2284 先にコピーします。引数には、
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$b
2290 \end_layout
2291
2292 \end_inset
2293
2294 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2295 \begin_inset Newline newline
2296 \end_inset
2297
2298 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2299 \end_layout
2300
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 resultfile
2308 \end_layout
2309
2310 \end_inset
2311
2312  これは出力ファイル名を指定するもので、
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 $$b
2318 \end_layout
2319
2320 \end_inset
2321
2322 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2323 \end_layout
2324
2325 \begin_layout Standard
2326 最後の3つは、LyXとともに導入される変換子には、現在いずれも使用されておりません。
2327 \end_layout
2328
2329 \begin_layout Standard
2330 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「LyXからPostScript」変換子が定義されていないのに、LyXはPos
2331 tScriptを書き出していることに気づかれることでしょう。これは、まずLaTeXファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTe
2332 XからDVI」変換子を使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。LyXはこのような変換子の「連鎖
2333 」を自動的に見つけ、つねに最も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的なLyX設定は、LaTeX
2334 からPDFへ変換するのに、以下の3つの方法を用意しています。(1)
2335 \begin_inset space ~
2336 \end_inset
2337
2338 直接
2339 \begin_inset Flex MenuItem
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 pdflatex
2344 \end_layout
2345
2346 \end_inset
2347
2348 を使用するもの。(2)
2349 \begin_inset space ~
2350 \end_inset
2351
2352 (DVIと)PostScriptを経由して
2353 \begin_inset Flex MenuItem
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 ps2pdf
2358 \end_layout
2359
2360 \end_inset
2361
2362 を使用するもの。(3)
2363 \begin_inset space ~
2364 \end_inset
2365
2366 DVI経由で
2367 \begin_inset Flex MenuItem
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 dvipdfm
2372 \end_layout
2373
2374 \end_inset
2375
2376 を使用するもの。このように代替連鎖を定義するには、第
2377 \begin_inset CommandInset ref
2378 LatexCommand ref
2379 reference "sec:ファイル形式"
2380
2381 \end_inset
2382
2383 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2384 \begin_inset Flex MenuItem
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 pdf
2389 \end_layout
2390
2391 \end_inset
2392
2393
2394 \begin_inset Flex MenuItem
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 pdf2
2399 \end_layout
2400
2401 \end_inset
2402
2403
2404 \begin_inset Flex MenuItem
2405 status collapsed
2406
2407 \begin_layout Plain Layout
2408 pdf3
2409 \end_layout
2410
2411 \end_inset
2412
2413 と命名された形式が定義されていて、すべて共通の拡張子
2414 \begin_inset Flex MenuItem
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418 .pdf
2419 \end_layout
2420
2421 \end_inset
2422
2423 を持ち、上記で言及した各変換方法に対応しています。
2424 \end_layout
2425
2426 \begin_layout Chapter
2427 LyXの各国語対応
2428 \begin_inset CommandInset label
2429 LatexCommand label
2430 name "cha:LyXの各国語対応"
2431
2432 \end_inset
2433
2434
2435 \end_layout
2436
2437 \begin_layout Standard
2438 LyXは、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、LyXは30言語の翻訳を提供しています。選択した言語は、使用する
2439 \emph on
2440 ロケール
2441 \emph default
2442 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2443 \begin_inset Flex Code
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 locale(5)
2448 \end_layout
2449
2450 \end_inset
2451
2452 から見ると良いかもしれません)。
2453 \end_layout
2454
2455 \begin_layout Standard
2456 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2457 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての短絡キーが定義され
2458 ていないことに気づかれるでしょう。短絡キーのために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ短絡キーを定義していないこともあるでしょう。もち
2459 ろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2460 \begin_inset Foot
2461 status collapsed
2462
2463 \begin_layout Plain Layout
2464 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、LyXコミュニティに報いるたいへん素晴らしい方法です!
2465 \end_layout
2466
2467 \end_inset
2468
2469 —は、LyXの将来のバージョンでこれらの欠点を修正しようとするでしょう。
2470 \end_layout
2471
2472 \begin_layout Section
2473 LyXを翻訳する
2474 \end_layout
2475
2476 \begin_layout Subsection
2477 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2478 \begin_inset Argument
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482 GUI(テキストメッセージ)を翻訳する
2483 \end_layout
2484
2485 \end_inset
2486
2487
2488 \end_layout
2489
2490 \begin_layout Standard
2491 LyXは、操作画面の国際化対応にGNU 
2492 \begin_inset Flex Code
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 gettext
2497 \end_layout
2498
2499 \end_inset
2500
2501 ライブラリを使用します。LyXのすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2502 \begin_inset Flex Code
2503 status collapsed
2504
2505 \begin_layout Plain Layout
2506 po
2507 \end_layout
2508
2509 \end_inset
2510
2511 ファイルが必要です。このファイルが利用可能であれば、そこから
2512 \begin_inset Flex Code
2513 status collapsed
2514
2515 \begin_layout Plain Layout
2516 mo
2517 \end_layout
2518
2519 \end_inset
2520
2521 ファイルを生成して、この
2522 \begin_inset Flex Code
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 mo
2527 \end_layout
2528
2529 \end_inset
2530
2531 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2532 \begin_inset Flex Code
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 gettext
2537 \end_layout
2538
2539 \end_inset
2540
2541 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果をLyXコミュニティの他の人々と
2542 分かち合いませんか。どのように段取りを進めればよいか、詳しくはLyX開発者メーリングリストにメールを送ってください。
2543 \end_layout
2544
2545 \begin_layout Standard
2546 要約すれば、以下のように行います(xxは言語コードを表します)。
2547 \end_layout
2548
2549 \begin_layout Itemize
2550 LyXソースコードをチェックアウトしてください(
2551 \begin_inset CommandInset href
2552 LatexCommand href
2553 name "ウェブ上の情報"
2554 target "http://www.lyx.org/devel/cvs.php"
2555
2556 \end_inset
2557
2558 参照)。
2559 \end_layout
2560
2561 \begin_layout Itemize
2562 \begin_inset Flex Code
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 lyx.pot
2567 \end_layout
2568
2569 \end_inset
2570
2571 ファイルを
2572 \begin_inset Flex Code
2573 status collapsed
2574
2575 \begin_layout Plain Layout
2576 **.po
2577 \end_layout
2578
2579 \end_inset
2580
2581 ファイルのあるフォルダにコピーして、
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 xx.po
2587 \end_layout
2588
2589 \end_inset
2590
2591 に名前を付け替えてください(
2592 \begin_inset Flex Code
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 lyx.pot
2597 \end_layout
2598
2599 \end_inset
2600
2601 がどこにもない場合には、コンソールからそのディレクトリで
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 make lyx.pot
2607 \end_layout
2608
2609 \end_inset
2610
2611 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2612 \end_layout
2613
2614 \begin_layout Itemize
2615 \begin_inset Flex Code
2616 status collapsed
2617
2618 \begin_layout Plain Layout
2619 xx.po
2620 \end_layout
2621
2622 \end_inset
2623
2624 を編集します
2625 \begin_inset Foot
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2630 \family typewriter
2631 Poedit
2632 \family default
2633 (全プラットフォーム用)や
2634 \family typewriter
2635 KBabel
2636 \family default
2637 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2638 \family typewriter
2639 Emacs
2640 \family default
2641 にも
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 po
2647 \end_layout
2648
2649 \end_inset
2650
2651 ファイルを編集するための「モード」があります。
2652 \end_layout
2653
2654 \end_inset
2655
2656 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない短絡キーがある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレ
2657 ーズに対応して翻訳しなくてはなりません。さらに、新しい
2658 \begin_inset Flex Code
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 po
2663 \end_layout
2664
2665 \end_inset
2666
2667 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2668 \end_layout
2669
2670 \begin_layout Standard
2671 もし、あなたがこれを自身のためだけに行っているのであれば、
2672 \end_layout
2673
2674 \begin_layout Itemize
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 xx.mo
2680 \end_layout
2681
2682 \end_inset
2683
2684 を生成してください。これは
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 msgfmt -o xx.mo < xx.po
2690 \end_layout
2691
2692 \end_inset
2693
2694 でできます。
2695 \end_layout
2696
2697 \begin_layout Itemize
2698 この
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 mo
2704 \end_layout
2705
2706 \end_inset
2707
2708 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 lyx.mo
2714 \end_layout
2715
2716 \end_inset
2717
2718 という名称にしてください(例:
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
2724 \end_layout
2725
2726 \end_inset
2727
2728 )。
2729 \end_layout
2730
2731 \begin_layout Standard
2732 しかしながら前述のように、この新しい
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 po
2738 \end_layout
2739
2740 \end_inset
2741
2742 ファイルを他の人たちが使用できるよう、LyX頒布版に追加できることが最善です。これを追加するには、LyXに変更を加える必要がありますので、もしその気があれば、開
2743 発者メーリングリストに電子メールを送ってください。
2744 \end_layout
2745
2746 \begin_layout Subsubsection
2747 多義訳語メッセージ
2748 \end_layout
2749
2750 \begin_layout Standard
2751 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 To
2757 \end_layout
2758
2759 \end_inset
2760
2761 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
2762 \begin_inset Flex Code
2763 status collapsed
2764
2765 \begin_layout Plain Layout
2766 gettext
2767 \end_layout
2768
2769 \end_inset
2770
2771 は、このような多義訳語を
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 To
2777 \end_layout
2778
2779 \end_inset
2780
2781 の代わりに、
2782 \begin_inset Flex Code
2783 status collapsed
2784
2785 \begin_layout Plain Layout
2786 To[[as in 'From format x to format y']]
2787 \end_layout
2788
2789 \end_inset
2790
2791
2792 \begin_inset Flex Code
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796 To[[as in 'From page x to page y']]
2797 \end_layout
2798
2799 \end_inset
2800
2801 としなくてはなりません。これによって、これら2つの
2802 \begin_inset Flex Code
2803 status collapsed
2804
2805 \begin_layout Plain Layout
2806 To
2807 \end_layout
2808
2809 \end_inset
2810
2811 は、
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 gettext
2817 \end_layout
2818
2819 \end_inset
2820
2821 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
2822 \end_layout
2823
2824 \begin_layout Standard
2825 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。LyXの翻
2826 訳機構では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
2827 \end_layout
2828
2829 \begin_layout Subsection
2830 説明書を翻訳する
2831 \end_layout
2832
2833 \begin_layout Standard
2834
2835 \begin_inset Flex MenuItem
2836 status collapsed
2837
2838 \begin_layout Plain Layout
2839 Help
2840 \end_layout
2841
2842 \end_inset
2843
2844 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
2845 \begin_inset Foot
2846 status collapsed
2847
2848 \begin_layout Plain Layout
2849 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
2850 \end_layout
2851
2852 \end_inset
2853
2854 、ロケールがその言語に設定されている場合、LyXはこれを自動的に使用します。LyXは、翻訳版を
2855 \begin_inset Flex Code
2856 status collapsed
2857
2858 \begin_layout Plain Layout
2859 L
2860 \begin_inset ERT
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864
2865 {}
2866 \end_layout
2867
2868 \end_inset
2869
2870 yXDir/doc/xx/DocName.lyx
2871 \end_layout
2872
2873 \end_inset
2874
2875
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 xx
2881 \end_layout
2882
2883 \end_inset
2884
2885 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
2886 \begin_inset Flex Code
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 DocName
2891 \end_layout
2892
2893 \end_inset
2894
2895 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
2896 うべきです。
2897 \end_layout
2898
2899 \begin_layout Itemize
2900 説明書翻訳ウェブページ
2901 \begin_inset CommandInset href
2902 LatexCommand href
2903 name "http://www.lyx.org/Translation"
2904 target "http://www.lyx.org/Translation"
2905
2906 \end_inset
2907
2908 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
2909 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
2910 \end_layout
2911
2912 \begin_layout Standard
2913 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
2914 \end_layout
2915
2916 \begin_layout Itemize
2917 文書化チームに所属してください!そのための情報が
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 Intro.lyx
2923 \end_layout
2924
2925 \end_inset
2926
2927
2928 \begin_inset Flex MenuItem
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 ヘルプ\SpecialChar \menuseparator
2933 はじめの一歩
2934 \end_layout
2935
2936 \end_inset
2937
2938 )にあります。また、この
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 Intro.lyx
2944 \end_layout
2945
2946 \end_inset
2947
2948 が最初に訳すべき文書です。
2949 \end_layout
2950
2951 \begin_layout Itemize
2952 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
2953 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
2954 \emph on
2955 警告!活版技術は病みつきになる可能性があるので注意してくさい!
2956 \emph default
2957
2958 \end_layout
2959
2960 \begin_layout Itemize
2961 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
2962 \begin_inset Flex Code
2963 status collapsed
2964
2965 \begin_layout Plain Layout
2966 UserDir/doc/xx/
2967 \end_layout
2968
2969 \end_inset
2970
2971 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
2972 \end_layout
2973
2974 \begin_layout Itemize
2975 (LyXチームが維持している)原典の説明書は、時折更新されます。変更点については、
2976 \begin_inset CommandInset href
2977 LatexCommand href
2978 name "http://www.lyx.org/trac/timeline"
2979 target "http://www.lyx.org/trac/timeline"
2980
2981 \end_inset
2982
2983 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
2984 \end_layout
2985
2986 \begin_layout Standard
2987 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
2988 \end_layout
2989
2990 \begin_layout Standard
2991 \begin_inset Branch OutDated
2992 status collapsed
2993
2994 \begin_layout Section
2995 International Keyboard Support
2996 \end_layout
2997
2998 \begin_layout Standard
2999
3000 \emph on
3001 [Editor's Note: The following section is by
3002 \emph default
3003  
3004 \shape smallcaps
3005 \emph on
3006 Ivan Schreter
3007 \shape default
3008 .
3009  It needs to be fixed to conform to the new Documentation Style sheet and
3010  to make use of the new v1.0 features.
3011  The whole thing also needs to be merged with the section following it.-jw
3012  It may also be badly out of date.-rh (2008)]
3013 \end_layout
3014
3015 \begin_layout Subsection
3016 Defining Own Keymaps: Keymap File Format
3017 \end_layout
3018
3019 \begin_layout Standard
3020 Let's look at a keyboard definition file a little closer.
3021  It is a plain text file defining
3022 \end_layout
3023
3024 \begin_layout Itemize
3025 key-to-key or key-to-string translations
3026 \end_layout
3027
3028 \begin_layout Itemize
3029 dead keys
3030 \end_layout
3031
3032 \begin_layout Itemize
3033 dead keys exceptions
3034 \end_layout
3035
3036 \begin_layout Standard
3037 To define key-to-key or key-to-string translation, use this command:
3038 \end_layout
3039
3040 \begin_layout Quotation
3041 \begin_inset Flex Code
3042 status collapsed
3043
3044 \begin_layout Plain Layout
3045
3046 \backslash
3047 kmap
3048 \end_layout
3049
3050 \end_inset
3051
3052  
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 key
3058 \end_layout
3059
3060 \end_inset
3061
3062  outstring 
3063 \end_layout
3064
3065 \begin_layout Standard
3066 where 
3067 \begin_inset Flex Code
3068 status collapsed
3069
3070 \begin_layout Plain Layout
3071 key
3072 \end_layout
3073
3074 \end_inset
3075
3076  is the key to be translated and 
3077 \begin_inset Flex Code
3078 status collapsed
3079
3080 \begin_layout Plain Layout
3081 outstring
3082 \end_layout
3083
3084 \end_inset
3085
3086  is the string to be inserted into the document.
3087  To define dead keys, use:
3088 \end_layout
3089
3090 \begin_layout Quotation
3091 \begin_inset Flex Code
3092 status collapsed
3093
3094 \begin_layout Plain Layout
3095
3096 \backslash
3097 kmod
3098 \end_layout
3099
3100 \end_inset
3101
3102  
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 key
3108 \end_layout
3109
3110 \end_inset
3111
3112  deadkey
3113 \end_layout
3114
3115 \begin_layout Standard
3116 where 
3117 \begin_inset Flex Code
3118 status collapsed
3119
3120 \begin_layout Plain Layout
3121 key
3122 \end_layout
3123
3124 \end_inset
3125
3126  is a keyboard key and 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 deadkey
3132 \end_layout
3133
3134 \end_inset
3135
3136  is dead key name.
3137  The following dead keys are supported (shortcut name is in parentheses):
3138 \end_layout
3139
3140 \begin_layout Quotation
3141
3142 \emph on
3143 Name
3144 \begin_inset space \hfill{}
3145 \end_inset
3146
3147 Example
3148 \end_layout
3149
3150 \begin_layout Quotation
3151 acute (acu)
3152 \begin_inset space \hfill{}
3153 \end_inset
3154
3155
3156 \lang english
3157 áéíóú
3158 \end_layout
3159
3160 \begin_layout Quotation
3161 grave (gra)
3162 \begin_inset space \hfill{}
3163 \end_inset
3164
3165
3166 \lang english
3167 àèìòù
3168 \end_layout
3169
3170 \begin_layout Quotation
3171 macron (mac)
3172 \begin_inset space \hfill{}
3173 \end_inset
3174
3175
3176 \lang english
3177  ō
3178 \end_layout
3179
3180 \begin_layout Quotation
3181 tilde (til)
3182 \begin_inset space \hfill{}
3183 \end_inset
3184
3185
3186 \lang english
3187 ñÑ
3188 \end_layout
3189
3190 \begin_layout Quotation
3191 underbar (underb)
3192 \begin_inset space \hfill{}
3193 \end_inset
3194
3195
3196 \begin_inset ERT
3197 status open
3198
3199 \begin_layout Plain Layout
3200
3201
3202 \backslash
3203 b o
3204 \end_layout
3205
3206 \end_inset
3207
3208
3209 \end_layout
3210
3211 \begin_layout Quotation
3212 cedilla (ced)
3213 \begin_inset space \hfill{}
3214 \end_inset
3215
3216
3217 \lang english
3218 çÇ
3219 \end_layout
3220
3221 \begin_layout Quotation
3222 underdot (underd)
3223 \begin_inset space \hfill{}
3224 \end_inset
3225
3226
3227 \begin_inset ERT
3228 status open
3229
3230 \begin_layout Plain Layout
3231
3232
3233 \backslash
3234 d o
3235 \end_layout
3236
3237 \end_inset
3238
3239
3240 \end_layout
3241
3242 \begin_layout Quotation
3243 circumflex (circu)
3244 \begin_inset space \hfill{}
3245 \end_inset
3246
3247
3248 \lang english
3249 âêîôû
3250 \end_layout
3251
3252 \begin_layout Quotation
3253 circle (circl)
3254 \begin_inset space \hfill{}
3255 \end_inset
3256
3257
3258 \lang english
3259 ÅůŮ
3260 \end_layout
3261
3262 \begin_layout Quotation
3263 tie (tie)
3264 \begin_inset space \hfill{}
3265 \end_inset
3266
3267
3268 \begin_inset ERT
3269 status open
3270
3271 \begin_layout Plain Layout
3272
3273
3274 \backslash
3275 t o
3276 \end_layout
3277
3278 \end_inset
3279
3280
3281 \end_layout
3282
3283 \begin_layout Quotation
3284 breve (bre)
3285 \begin_inset space \hfill{}
3286 \end_inset
3287
3288
3289 \lang english
3290 ă
3291 \lang japanese
3292
3293 \begin_inset ERT
3294 status open
3295
3296 \begin_layout Plain Layout
3297
3298
3299 \backslash
3300 u o
3301 \end_layout
3302
3303 \end_inset
3304
3305
3306 \end_layout
3307
3308 \begin_layout Quotation
3309 caron (car)
3310 \begin_inset space \hfill{}
3311 \end_inset
3312
3313
3314 \lang english
3315 čšž
3316 \end_layout
3317
3318 \begin_layout Quotation
3319 hungarian umlaut (hug)
3320 \begin_inset space \hfill{}
3321 \end_inset
3322
3323
3324 \lang english
3325 őű
3326 \end_layout
3327
3328 \begin_layout Quotation
3329 umlaut (uml)
3330 \begin_inset space \hfill{}
3331 \end_inset
3332
3333
3334 \lang english
3335 äöü
3336 \end_layout
3337
3338 \begin_layout Quotation
3339 dot (dot)
3340 \begin_inset space \hfill{}
3341 \end_inset
3342
3343
3344 \lang english
3345 ż
3346 \lang japanese
3347
3348 \begin_inset ERT
3349 status open
3350
3351 \begin_layout Plain Layout
3352
3353
3354 \backslash
3355 .s
3356 \end_layout
3357
3358 \end_inset
3359
3360
3361 \end_layout
3362
3363 \begin_layout Standard
3364 Since in many international keyboards there are exceptions to what some
3365  dead keys should do, you can define them using
3366 \end_layout
3367
3368 \begin_layout Quotation
3369 \begin_inset Flex Code
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373
3374 \backslash
3375 kxmod
3376 \end_layout
3377
3378 \end_inset
3379
3380  deadkey key outstring
3381 \end_layout
3382
3383 \begin_layout Standard
3384 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3385 , so you put in
3386 \end_layout
3387
3388 \begin_layout Quotation
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393
3394 \backslash
3395 kxmod
3396 \end_layout
3397
3398 \end_inset
3399
3400  caron o "
3401 \backslash
3402 ^o"
3403 \end_layout
3404
3405 \begin_layout Standard
3406 to make it work correctly.
3407  Also, you have to define as exceptions dead keys over i and j, to remove
3408  the dot from them before inserting an accent mark.
3409  I will change this when the time comes, but so far I haven't had time.
3410 \end_layout
3411
3412 \begin_layout Standard
3413 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3414  double backslash.
3415  Also, quotes and 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 #
3421 \end_layout
3422
3423 \end_inset
3424
3425  have different meaning.
3426  
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 #
3432 \end_layout
3433
3434 \end_inset
3435
3436  marks comments, quotes start and end LaTeX-style commands.
3437  To enter quote, you'll need to use 
3438 \begin_inset Flex Code
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442
3443 \backslash
3444 "
3445 \end_layout
3446
3447 \end_inset
3448
3449 , to enter 
3450 \begin_inset Flex Code
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 #
3455 \end_layout
3456
3457 \end_inset
3458
3459 , use 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464
3465 \backslash
3466 #
3467 \end_layout
3468
3469 \end_inset
3470
3471 .
3472 \end_layout
3473
3474 \begin_layout Standard
3475 If you make a keyboard description file that works for your language, please
3476  mail it to me, so I can include it in the next keymap distribution.
3477 \end_layout
3478
3479 \begin_layout Standard
3480 More keywords will be supported in keymap configuration file in future,
3481  like
3482 \end_layout
3483
3484 \begin_layout Itemize
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \backslash
3491 kinclude filename
3492 \end_layout
3493
3494 \end_inset
3495
3496
3497 \emph on
3498
3499 \begin_inset space \hfill{}
3500 \end_inset
3501
3502
3503 \begin_inset Flex Code
3504 status collapsed
3505
3506 \begin_layout Plain Layout
3507 include
3508 \end_layout
3509
3510 \end_inset
3511
3512  another file
3513 \end_layout
3514
3515 \begin_layout Itemize
3516 \begin_inset Flex Code
3517 status collapsed
3518
3519 \begin_layout Plain Layout
3520
3521 \backslash
3522 kprog program
3523 \end_layout
3524
3525 \end_inset
3526
3527
3528 \emph on
3529
3530 \begin_inset space \hfill{}
3531 \end_inset
3532
3533
3534 \begin_inset Flex Code
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 define
3539 \end_layout
3540
3541 \end_inset
3542
3543  an external keymap translation program 
3544 \end_layout
3545
3546 \begin_layout Standard
3547 Also, it should look into 
3548 \begin_inset Flex Code
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 lyxrc
3553 \end_layout
3554
3555 \end_inset
3556
3557  file for defaults, too (for example, a 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562
3563 \backslash
3564 kinclude
3565 \end_layout
3566
3567 \end_inset
3568
3569  option to include default keyboard).
3570 \end_layout
3571
3572 \end_inset
3573
3574
3575 \end_layout
3576
3577 \begin_layout Section
3578 国際キー配列
3579 \begin_inset CommandInset label
3580 LatexCommand label
3581 name "sec:国際キー配列"
3582
3583 \end_inset
3584
3585
3586 \end_layout
3587
3588 \begin_layout Standard
3589 \begin_inset Note Note
3590 status open
3591
3592 \begin_layout Plain Layout
3593 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3594 \end_layout
3595
3596 \begin_layout Plain Layout
3597 (RH)
3598 \end_layout
3599
3600 \end_inset
3601
3602
3603 \end_layout
3604
3605 \begin_layout Standard
3606 以下の2節では、
3607 \begin_inset Flex Code
3608 status collapsed
3609
3610 \begin_layout Plain Layout
3611 .kmap
3612 \end_layout
3613
3614 \end_inset
3615
3616 および
3617 \begin_inset Flex Code
3618 status collapsed
3619
3620 \begin_layout Plain Layout
3621 .cdef
3622 \end_layout
3623
3624 \end_inset
3625
3626 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3627 \end_layout
3628
3629 \begin_layout Subsection
3630 .kmapファイル
3631 \end_layout
3632
3633 \begin_layout Standard
3634 \begin_inset Flex Code
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 .kmap
3639 \end_layout
3640
3641 \end_inset
3642
3643 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 .kmap
3649 \end_layout
3650
3651 \end_inset
3652
3653 ファイルは、以下の各項で説明するように、
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 kmap
3659 \end_layout
3660
3661 \end_inset
3662
3663
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 kmod
3669 \end_layout
3670
3671 \end_inset
3672
3673
3674 \begin_inset Flex Code
3675 status collapsed
3676
3677 \begin_layout Plain Layout
3678 ksmod
3679 \end_layout
3680
3681 \end_inset
3682
3683
3684 \begin_inset Flex Code
3685 status collapsed
3686
3687 \begin_layout Plain Layout
3688 kcomb
3689 \end_layout
3690
3691 \end_inset
3692
3693 のキーワードを定義します。
3694 \end_layout
3695
3696 \begin_layout Labeling
3697 \labelwidthstring 00.00.0000
3698 \begin_inset Flex Code
3699 status collapsed
3700
3701 \begin_layout Plain Layout
3702 kmap
3703 \end_layout
3704
3705 \end_inset
3706
3707  文字を文字列に割り当てる
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711
3712 \backslash
3713 kmap 
3714 \family roman
3715 \emph on
3716 文字
3717 \family default
3718 \emph default
3719  
3720 \family roman
3721 \emph on
3722 文字列
3723 \end_layout
3724
3725 \begin_layout Standard
3726 これは、
3727 \emph on
3728 文字
3729 \emph default
3730
3731 \emph on
3732 文字列
3733 \emph default
3734 に割り当てます。
3735 \emph on
3736 文字列
3737 \emph default
3738 中では、二重引用符(")とバックスラッシュ(
3739 \backslash
3740 )は、前にバックスラッシュ(
3741 \backslash
3742 )を付けてエスケープしなくてはならないことに注意してください。
3743 \end_layout
3744
3745 \begin_layout Standard
3746 \begin_inset Flex MenuItem
3747 status collapsed
3748
3749 \begin_layout Plain Layout
3750 &
3751 \end_layout
3752
3753 \end_inset
3754
3755 を打鍵すると
3756 \begin_inset Flex MenuItem
3757 status collapsed
3758
3759 \begin_layout Plain Layout
3760 /
3761 \end_layout
3762
3763 \end_inset
3764
3765 記号が出力される
3766 \begin_inset Flex MenuItem
3767 status collapsed
3768
3769 \begin_layout Plain Layout
3770 kmap
3771 \end_layout
3772
3773 \end_inset
3774
3775 ステートメントを、一例としてあげると、
3776 \end_layout
3777
3778 \begin_layout LyX-Code
3779
3780 \backslash
3781 kmap & /
3782 \end_layout
3783
3784 \begin_layout Standard
3785 のようになります。
3786 \end_layout
3787
3788 \begin_layout Labeling
3789 \labelwidthstring 00.00.0000
3790 \begin_inset Flex Code
3791 status collapsed
3792
3793 \begin_layout Plain Layout
3794 kmod
3795 \end_layout
3796
3797 \end_inset
3798
3799  アクセント文字を指定する
3800 \end_layout
3801
3802 \begin_layout LyX-Code
3803
3804 \backslash
3805 kmod 
3806 \family roman
3807 \emph on
3808 文字 アクセント 許可文字
3809 \end_layout
3810
3811 \begin_layout Standard
3812 これは
3813 \emph on
3814 文字
3815 \emph default
3816
3817 \emph on
3818 許可文字
3819 \emph default
3820 のアクセントとするものです。これはデッドキー
3821 \begin_inset Foot
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825
3826 \emph on
3827 デッドキー
3828 \emph default
3829 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
3830 \emph on
3831 ä
3832 \emph default
3833 のようなウムラウトのついた文字は、このようにして出すことができます。
3834 \end_layout
3835
3836 \end_inset
3837
3838 機構です。
3839 \end_layout
3840
3841 \begin_layout Standard
3842
3843 \emph on
3844 文字
3845 \emph default
3846 を打鍵してから
3847 \emph on
3848 許可文字
3849 \emph default
3850 にないキーを打鍵すると、
3851 \emph on
3852 文字
3853 \emph default
3854 の後に許可文字ではないその文字が出力として表示されます。
3855 \begin_inset Flex MenuItem
3856 status collapsed
3857
3858 \begin_layout Plain Layout
3859 Backspace
3860 \end_layout
3861
3862 \end_inset
3863
3864 はデッドキーを取り消しますので、
3865 \emph on
3866 文字
3867 \emph default
3868
3869 \begin_inset Flex MenuItem
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 Backspace
3874 \end_layout
3875
3876 \end_inset
3877
3878 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
3879 \end_layout
3880
3881 \begin_layout Standard
3882 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
3883 \end_layout
3884
3885 \begin_layout LyX-Code
3886
3887 \backslash
3888 kmod ' acute aeiouAEIOU
3889 \end_layout
3890
3891 \begin_layout Labeling
3892 \labelwidthstring 00.00.0000
3893 \begin_inset Flex Code
3894 status collapsed
3895
3896 \begin_layout Plain Layout
3897 ksmod
3898 \end_layout
3899
3900 \end_inset
3901
3902  アクセント文字に例外を指定する
3903 \end_layout
3904
3905 \begin_layout LyX-Code
3906
3907 \backslash
3908 kxmod  
3909 \family roman
3910 \emph on
3911 アクセント 文字 結果
3912 \end_layout
3913
3914 \begin_layout Standard
3915 これは
3916 \emph on
3917 文字
3918 \emph default
3919 上の
3920 \emph on
3921 アクセント
3922 \emph default
3923 について例外を指定するものです。ここで
3924 \emph on
3925 アクセント
3926 \emph default
3927 には、前出の
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932
3933 \backslash
3934 kmod
3935 \end_layout
3936
3937 \end_inset
3938
3939 宣言で打鍵キーを既に割り当てられてなくてはならず、
3940 \emph on
3941 文字
3942 \emph default
3943
3944 \emph on
3945 アクセント
3946 \emph default
3947
3948 \emph on
3949 許可文字
3950 \emph default
3951 の集合に属していてはなりません。こうして
3952 \emph on
3953 アクセント
3954 \emph default
3955
3956 \emph on
3957 文字
3958 \emph default
3959 の順に入力すると、
3960 \emph on
3961 結果
3962 \emph default
3963 が出力されるようになります。
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 .kmap
3969 \end_layout
3970
3971 \end_inset
3972
3973 ファイルにこの宣言がない場合には、
3974 \emph on
3975 アクセント
3976 \emph default
3977
3978 \emph on
3979 文字
3980 \emph default
3981 と入力すると、
3982 \emph on
3983 アクセントキー
3984 \emph default
3985
3986 \emph on
3987 文字
3988 \emph default
3989
3990 \emph on
3991 アクセントキー
3992 \emph default
3993
3994 \begin_inset Flex Code
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998
3999 \backslash
4000 kmod
4001 \end_layout
4002
4003 \end_inset
4004
4005 宣言の最初の変数)と出力されます。
4006 \end_layout
4007
4008 \begin_layout Standard
4009 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4010 \end_layout
4011
4012 \begin_layout LyX-Code
4013
4014 \backslash
4015 kxmod acute i "
4016 \backslash
4017
4018 \backslash
4019 '{
4020 \backslash
4021
4022 \backslash
4023 i}"
4024 \end_layout
4025
4026 \begin_layout Labeling
4027 \labelwidthstring 00.00.0000
4028 \begin_inset Flex Code
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 kcomb
4033 \end_layout
4034
4035 \end_inset
4036
4037  2つのアクセント文字を結合する
4038 \end_layout
4039
4040 \begin_layout LyX-Code
4041
4042 \backslash
4043 kcomb 
4044 \family roman
4045 \emph on
4046 アクセント1 アクセント2 許可文字
4047 \end_layout
4048
4049 \begin_layout Standard
4050 これはなかなか難解になってきます。これは
4051 \emph on
4052 アクセント1
4053 \emph default
4054
4055 \emph on
4056 アクセント2
4057 \emph default
4058 を(この順番で)結びつけて、
4059 \emph on
4060 許可文字
4061 \emph default
4062 に効果を及ぼすようにします。
4063 \emph on
4064 アクセント1
4065 \emph default
4066
4067 \emph on
4068 アクセント2
4069 \emph default
4070 の打鍵キーは、ファイル内のこのコマンド
4071 \emph on
4072 よりも前に
4073 \emph default
4074
4075 \begin_inset Flex Code
4076 status collapsed
4077
4078 \begin_layout Plain Layout
4079
4080 \backslash
4081 kmod
4082 \end_layout
4083
4084 \end_inset
4085
4086 コマンドで設定されていなくてはなりません。
4087 \end_layout
4088
4089 \begin_layout Standard
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094 greek.kmap
4095 \end_layout
4096
4097 \end_inset
4098
4099 ファイル上にある例をとってみましょう。
4100 \end_layout
4101
4102 \begin_layout LyX-Code
4103
4104 \backslash
4105 kmod ; acute aeioyvhAEIOYVH 
4106 \backslash
4107 kmod : umlaut iyIY 
4108 \backslash
4109 kcomb acute umlaut iyIY
4110 \end_layout
4111
4112 \begin_layout Standard
4113 これは
4114 \begin_inset Flex MenuItem
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118 ;:i
4119 \end_layout
4120
4121 \end_inset
4122
4123 を押すと
4124 \begin_inset Flex Code
4125 status collapsed
4126
4127 \begin_layout Plain Layout
4128
4129 \backslash
4130 '{
4131 \backslash
4132 "{i}}
4133 \end_layout
4134
4135 \end_inset
4136
4137 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4138 \begin_inset Flex MenuItem
4139 status collapsed
4140
4141 \begin_layout Plain Layout
4142 ;: Backspace i
4143 \end_layout
4144
4145 \end_inset
4146
4147 と押した場合には、
4148 \begin_inset Flex Code
4149 status collapsed
4150
4151 \begin_layout Plain Layout
4152
4153 \backslash
4154 '{i}
4155 \end_layout
4156
4157 \end_inset
4158
4159 となります。
4160 \end_layout
4161
4162 \begin_layout Subsection
4163 .cdefファイル
4164 \end_layout
4165
4166 \begin_layout Standard
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171 .kmap
4172 \end_layout
4173
4174 \end_inset
4175
4176 による割り当てが行われた後、
4177 \begin_inset Flex Code
4178 status collapsed
4179
4180 \begin_layout Plain Layout
4181 .cdef
4182 \end_layout
4183
4184 \end_inset
4185
4186 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。LyX頒布版には、現在のところ、少なくとも
4187 \begin_inset Flex Code
4188 status collapsed
4189
4190 \begin_layout Plain Layout
4191 iso8859-1.cdef
4192 \end_layout
4193
4194 \end_inset
4195
4196 ファイルと
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 iso8859-2.cdef
4202 \end_layout
4203
4204 \end_inset
4205
4206 ファイルが含まれています。
4207 \end_layout
4208
4209 \begin_layout Standard
4210 一般的に
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215 .cdef
4216 \end_layout
4217
4218 \end_inset
4219
4220 ファイルは、
4221 \end_layout
4222
4223 \begin_layout LyX-Code
4224
4225 \family roman
4226 \emph on
4227 セット中の文字番号
4228 \family default
4229 \emph default
4230  
4231 \family roman
4232 \emph on
4233  文字列
4234 \end_layout
4235
4236 \begin_layout Standard
4237 という形の宣言の羅列です。たとえば、
4238 \begin_inset Flex MenuItem
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242
4243 \backslash
4244 '{e}
4245 \end_layout
4246
4247 \end_inset
4248
4249 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4250 \end_layout
4251
4252 \begin_layout LyX-Code
4253 233 "
4254 \backslash
4255
4256 \backslash
4257 '{e}"
4258 \end_layout
4259
4260 \begin_layout Standard
4261 ここで、
4262 \emph on
4263 文字列
4264 \emph default
4265 中の
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270
4271 \backslash
4272
4273 \end_layout
4274
4275 \end_inset
4276
4277
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282 "
4283 \end_layout
4284
4285 \end_inset
4286
4287 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 iso-8859-7.cdef
4293 \end_layout
4294
4295 \end_inset
4296
4297 ファイルには、
4298 \end_layout
4299
4300 \begin_layout LyX-Code
4301 192 "
4302 \backslash
4303
4304 \backslash
4305 '{
4306 \backslash
4307
4308 \backslash
4309
4310 \backslash
4311 "{i}}"
4312 \begin_inset Newline newline
4313 \end_inset
4314
4315 192 "
4316 \backslash
4317
4318 \backslash
4319
4320 \backslash
4321 "{
4322 \backslash
4323
4324 \backslash
4325 '{i}}"
4326 \end_layout
4327
4328 \begin_layout Standard
4329 という例があります。LyXは、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈がで
4330 きないかどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4331 \end_layout
4332
4333 \begin_layout Subsection
4334 デッドキー
4335 \end_layout
4336
4337 \begin_layout Standard
4338 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4339 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4340 \end_layout
4341
4342 \begin_layout Standard
4343 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4344 \begin_inset Flex Code
4345 status collapsed
4346
4347 \begin_layout Plain Layout
4348 lyxrc
4349 \end_layout
4350
4351 \end_inset
4352
4353 ファイル中で、
4354 \begin_inset Flex MenuItem
4355 status collapsed
4356
4357 \begin_layout Plain Layout
4358 ^
4359 \end_layout
4360
4361 \end_inset
4362
4363 キー(すなわち
4364 \begin_inset Flex MenuItem
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368 Shift-6
4369 \end_layout
4370
4371 \end_inset
4372
4373 キー)を、LyXコマンドの
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378 accent-circumflex
4379 \end_layout
4380
4381 \end_inset
4382
4383 に結びつけることができます。すると
4384 \begin_inset Flex MenuItem
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388 ^
4389 \end_layout
4390
4391 \end_inset
4392
4393 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4394 \begin_inset Flex MenuItem
4395 status collapsed
4396
4397 \begin_layout Plain Layout
4398 ^e
4399 \end_layout
4400
4401 \end_inset
4402
4403 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4404 \begin_inset Flex MenuItem
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408 ^t
4409 \end_layout
4410
4411 \end_inset
4412
4413 」と打鍵したならば、「
4414 \begin_inset Flex MenuItem
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 t
4419 \end_layout
4420
4421 \end_inset
4422
4423 」は曲折アクセントをとることは決してないために、LyXはビープを鳴らして文句を付けます。デッドキーの後に
4424 \begin_inset Flex MenuItem
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 スペース
4429 \end_layout
4430
4431 \end_inset
4432
4433 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4434 あります。たとえば、
4435 \begin_inset Flex MenuItem
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439 ,キー
4440 \end_layout
4441
4442 \end_inset
4443
4444 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4445 \end_layout
4446
4447 \begin_layout Standard
4448 デッドキーを割り当てるのによく用いられる方法は、
4449 \begin_inset Flex MenuItem
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 Meta-
4454 \end_layout
4455
4456 \end_inset
4457
4458
4459 \begin_inset Flex MenuItem
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 Ctrl-
4464 \end_layout
4465
4466 \end_inset
4467
4468
4469 \begin_inset Flex MenuItem
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 Shift-
4474 \end_layout
4475
4476 \end_inset
4477
4478 キーを、「
4479 \begin_inset Flex MenuItem
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483 ~
4484 \end_layout
4485
4486 \end_inset
4487
4488 」・「
4489 \begin_inset Flex MenuItem
4490 status collapsed
4491
4492 \begin_layout Plain Layout
4493 ,
4494 \end_layout
4495
4496 \end_inset
4497
4498 」・「
4499 \begin_inset Flex MenuItem
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 ^
4504 \end_layout
4505
4506 \end_inset
4507
4508 」のようなアクセントと一緒に用いる方法です。また、
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 xmodmap
4514 \end_layout
4515
4516 \end_inset
4517
4518
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523 xkeycaps
4524 \end_layout
4525
4526 \end_inset
4527
4528 を使って、特別な
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 Mode_Switch
4534 \end_layout
4535
4536 \end_inset
4537
4538 キーを設定する方法もあります。
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 Mode_Switch
4544 \end_layout
4545
4546 \end_inset
4547
4548 キーは、ちょうど
4549 \begin_inset Flex MenuItem
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 Shift
4554 \end_layout
4555
4556 \end_inset
4557
4558 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563 usldead_cedilla
4564 \end_layout
4565
4566 \end_inset
4567
4568 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応するLyXコマンドに割り当てることもできます
4569 \begin_inset Foot
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \noun on
4575 John Weiss
4576 \noun default
4577 からの註:これはまさに私が、自分の
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 ~/.lyx/lyxrc
4583 \end_layout
4584
4585 \end_inset
4586
4587
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592 ~/.xmodmap
4593 \end_layout
4594
4595 \end_inset
4596
4597 で行っていることです。私は、
4598 \begin_inset Flex MenuItem
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602 Scroll
4603 \begin_inset space ~
4604 \end_inset
4605
4606 Lock
4607 \end_layout
4608
4609 \end_inset
4610
4611 キーを
4612 \begin_inset Flex Code
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 Mode_Shift
4617 \end_layout
4618
4619 \end_inset
4620
4621 に仕立てて、多数の
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626 usldead_*
4627 \end_layout
4628
4629 \end_inset
4630
4631 シンボリックキーを
4632 \begin_inset Flex MenuItem
4633 status collapsed
4634
4635 \begin_layout Plain Layout
4636 Scroll
4637 \begin_inset space ~
4638 \end_inset
4639
4640 Lock-^
4641 \end_layout
4642
4643 \end_inset
4644
4645
4646 \begin_inset Flex MenuItem
4647 status collapsed
4648
4649 \begin_layout Plain Layout
4650 Scroll
4651 \begin_inset space ~
4652 \end_inset
4653
4654 Lock-~
4655 \end_layout
4656
4657 \end_inset
4658
4659 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4660 \end_layout
4661
4662 \end_inset
4663
4664 。この
4665 \begin_inset Flex Code
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669 Mode_Switch
4670 \end_layout
4671
4672 \end_inset
4673
4674 キーには、
4675 \begin_inset Flex MenuItem
4676 status collapsed
4677
4678 \begin_layout Plain Layout
4679 Ctrl-
4680 \end_layout
4681
4682 \end_inset
4683
4684 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出すLyXコマンドについては、
4685 \emph on
4686 LyX関数説明書
4687 \emph default
4688
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693 LFUN_ACCENT_*
4694 \end_layout
4695
4696 \end_inset
4697
4698 の項をご覧ください。ここには完備した一覧があります。
4699 \end_layout
4700
4701 \begin_layout Subsection
4702 自分の言語設定を保存する
4703 \end_layout
4704
4705 \begin_layout Standard
4706 \begin_inset Flex MenuItem
4707 status collapsed
4708
4709 \begin_layout Plain Layout
4710 ツール\SpecialChar \menuseparator
4711 設定
4712 \end_layout
4713
4714 \end_inset
4715
4716 ダイアログを使えば、LyXを起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
4717 \end_layout
4718
4719 \begin_layout Chapter
4720 文書クラス・レイアウト・ひな型の新規導入
4721 \begin_inset CommandInset label
4722 LatexCommand label
4723 name "cha:新規文書を導入"
4724
4725 \end_inset
4726
4727
4728 \begin_inset Argument
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 文書クラスを新規に導入する
4733 \end_layout
4734
4735 \end_inset
4736
4737
4738 \end_layout
4739
4740 \begin_layout Standard
4741 この章では、新しくLyXのレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規にLaTeX文書クラス(ドキュメントクラス)を正しく導
4742 入する方法を復習します。
4743 \end_layout
4744
4745 \begin_layout Standard
4746 まず、LyXとLaTeXの間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、LyXは、La
4747 TeXについて何も知らないと云うことです。実際のところ、LyXの観点からは、LaTeXは、LyXが出力を生成することができる、複数の「バックエンド形式」のうちの
4748 一つに過ぎないということです。同種のバックエンド形式には、DocBook・平文・XHTMLがあります。もちろんLaTeXは、とくに重要な形式ですが、LyXがLa
4749 TeXについて持っている情報のほとんどは、実はプログラム本体には含まれていないのです
4750 \begin_inset Foot
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 過度に複雑なため、LyXに「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
4755 \end_layout
4756
4757 \end_inset
4758
4759 。このような情報は、
4760 \begin_inset Flex Code
4761 status collapsed
4762
4763 \begin_layout Plain Layout
4764 article.cls
4765 \end_layout
4766
4767 \end_inset
4768
4769 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、LyXは、DocBookやXHTMLについてもほとんど知りません。LyXが知っているこ
4770 とは、レイアウトファイルの中にあります。
4771 \end_layout
4772
4773 \begin_layout Standard
4774 文書クラス用のレイアウトファイルは、LyX構成体---対応する様式や何らかの差込枠などを有する段落群---と、それに対応するLaTeX構成体・DocBook構成
4775 体・XHTML構成体との間の翻訳指南書のようなものです。たとえば、LyXが
4776 \begin_inset Flex Code
4777 status collapsed
4778
4779 \begin_layout Plain Layout
4780 article.cls
4781 \end_layout
4782
4783 \end_inset
4784
4785 について知っていることのほとんど総ては、
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 article.layout
4791 \end_layout
4792
4793 \end_inset
4794
4795 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
4796 としては、
4797 \begin_inset Flex Code
4798 status collapsed
4799
4800 \begin_layout Plain Layout
4801 article.layout
4802 \end_layout
4803
4804 \end_inset
4805
4806
4807 \begin_inset Flex Code
4808 status collapsed
4809
4810 \begin_layout Plain Layout
4811 book.layout
4812 \end_layout
4813
4814 \end_inset
4815
4816 や、文書クラス用の他のレイアウトファイルに取り込まれている
4817 \begin_inset Flex Code
4818 status collapsed
4819
4820 \begin_layout Plain Layout
4821 stdsections.inc
4822 \end_layout
4823
4824 \end_inset
4825
4826 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
4827 \begin_inset Flex Code
4828 status collapsed
4829
4830 \begin_layout Plain Layout
4831 stdsections.inc
4832 \end_layout
4833
4834 \end_inset
4835
4836 は、節様式や小節様式などとしてマークされている段落を、対応するLaTeX・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかをLyXに知らせるも
4837 のです。基本的に
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 article.layout
4843 \end_layout
4844
4845 \end_inset
4846
4847 ファイルは、これらの
4848 \begin_inset Flex Code
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852 std*.inc
4853 \end_layout
4854
4855 \end_inset
4856
4857 ファイルを取り込んでいるだけのものです。
4858 \end_layout
4859
4860 \begin_layout Standard
4861 しかしながら、LyX--LaTeX間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、LyX構成体自
4862 身が画面上にどのように表示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば
4863 混乱を引き起こす元となります。ある段落様式をLaTeXに翻訳する仕方をLyXに指示することは、その表示の仕方をLyXに指示するものではありません。逆に、ある段落
4864 様式の表示の仕方をLyXに指示することは、その段落様式をどのようにLaTeXに翻訳するかをLyXに指示するものではありません(ましてやLaTeXに表示の仕方を指
4865 示するものではありません)。つまり、一般的に、新しいLyX構成体を定義する際には、(i)
4866 \begin_inset space ~
4867 \end_inset
4868
4869 LaTeXにどのように翻訳するかをLyXに指示する、(ii)
4870 \begin_inset space ~
4871 \end_inset
4872
4873 それをどのように表示するかをLyXに指示する、という、二つのかなり異なることを行わなくてはならないのです。
4874 \end_layout
4875
4876 \begin_layout Standard
4877 もちろん、LyXの他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、LyXが、ブラウザ中での段落の表示方法を(CS
4878 Sの形で)出力するにあたって、当該段落をLyXが画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、LyXが内部的に行うことと、
4879 外部的に行う物事の間の区別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
4880 \begin_inset CommandInset ref
4881 LatexCommand ref
4882 reference "sec:XHTML出力のタグ"
4883
4884 \end_inset
4885
4886 節をご覧ください。
4887 \end_layout
4888
4889 \begin_layout Section
4890 新しいLaTeXファイルの導入
4891 \end_layout
4892
4893 \begin_layout Standard
4894 頒布版によっては、LyXで使いたいLaTeXパッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライド
4895 を準備するためのパッケージである、FoilTeXがないかもしれません。TeXLive(2008年以降)やMiKTeXのような最近のLaTeX頒布版には、これらの
4896 パッケージを導入するためのユーザーインタフェースが用意されています。たとえば、MiKTeXでは、付属の「Package
4897 \begin_inset space ~
4898 \end_inset
4899
4900 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
4901 ださい。
4902 \end_layout
4903
4904 \begin_layout Standard
4905 お使いのLaTeX頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って
4906 手動で導入してください。
4907 \end_layout
4908
4909 \begin_layout Enumerate
4910 \begin_inset CommandInset href
4911 LatexCommand href
4912 name "CTAN"
4913 target "http://www.ctan.org/"
4914
4915 \end_inset
4916
4917 などから欲しいパッケージを入手してください。
4918 \end_layout
4919
4920 \begin_layout Enumerate
4921 パッケージに「
4922 \begin_inset Flex Code
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926 .ins
4927 \end_layout
4928
4929 \end_inset
4930
4931 」で終わるファイル名が入っている場合(FoilTeXがその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 latex foiltex.ins
4937 \end_layout
4938
4939 \end_inset
4940
4941 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていのLaTeXパッケージは圧縮されていないので、このステップ
4942 は飛ばすことができます。
4943 \end_layout
4944
4945 \begin_layout Enumerate
4946 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
4947 \end_layout
4948
4949 \begin_deeper
4950 \begin_layout Enumerate
4951 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」TeXツリーに導入し、そうでなければ
4952 「ユーザー」TeXツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
4953 \begin_inset Flex Code
4954 status collapsed
4955
4956 \begin_layout Plain Layout
4957 texmf.cnf
4958 \end_layout
4959
4960 \end_inset
4961
4962 ファイルを参照してください
4963 \begin_inset Foot
4964 status collapsed
4965
4966 \begin_layout Plain Layout
4967 このファイルは、通常
4968 \family sans
4969 $TEXMF/web2c
4970 \family default
4971 ディレクトリにありますが、コマンド
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 kpsewhich texmf.cnf
4977 \end_layout
4978
4979 \end_inset
4980
4981 を実行してその場所を見つけることもできます。
4982 \end_layout
4983
4984 \end_inset
4985
4986 。「ローカル」TeXツリーの場所は、
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991 TEXMFLOCAL
4992 \end_layout
4993
4994 \end_inset
4995
4996 変数で定義されており、通常は
4997 \begin_inset Flex Code
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001 /usr/local/share/texmf/
5002 \end_layout
5003
5004 \end_inset
5005
5006 のような場所になっています。「ユーザー」TeXツリーの場所は、
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 TEXMFHOME
5012 \end_layout
5013
5014 \end_inset
5015
5016 で定義されており、通常は
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021 $HOME/texmf/
5022 \end_layout
5023
5024 \end_inset
5025
5026 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5027 、「ユーザー」ツリーにはこのような制限はありません。
5028 \begin_inset Newline newline
5029 \end_inset
5030
5031 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5032 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5033 \end_layout
5034
5035 \begin_layout Enumerate
5036 Windowでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、LaTeXの導入されているフォルダに移動し、それからサブフォルダ
5037 \begin_inset Flex Code
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041 ~
5042 \backslash
5043 tex
5044 \backslash
5045 latex
5046 \end_layout
5047
5048 \end_inset
5049
5050 に移動します(MiKTeXでは、これは既定では
5051 \begin_inset Flex Code
5052 status collapsed
5053
5054 \begin_layout Plain Layout
5055 ~:Programs
5056 \backslash
5057 MiKTeX
5058 \backslash
5059 tex
5060 \backslash
5061 latex
5062 \end_layout
5063
5064 \end_inset
5065
5066 です)
5067 \begin_inset Foot
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071 これは、英語版でのみ正しいパスになっています。独語版では
5072 \begin_inset Flex Code
5073 status collapsed
5074
5075 \begin_layout Plain Layout
5076 ~:Programme
5077 \backslash
5078 MiKTeX
5079 \backslash
5080 tex
5081 \backslash
5082 latex
5083 \end_layout
5084
5085 \end_inset
5086
5087 となり、他の言語でも同様です。
5088 \end_layout
5089
5090 \end_inset
5091
5092 。ここに新規フォルダ
5093 \begin_inset Flex Code
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097 foiltex
5098 \end_layout
5099
5100 \end_inset
5101
5102 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカルLaTeXフォ
5103 ルダで同じことを行います。たとえばMiKTeX
5104 \begin_inset space ~
5105 \end_inset
5106
5107 2.8では、これはWinXP上では
5108 \begin_inset Newline newline
5109 \end_inset
5110
5111
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 ~:
5117 \backslash
5118 Documents and Settings
5119 \backslash
5120 <ユーザー名>
5121 \backslash
5122 Application Data
5123 \backslash
5124
5125 \end_layout
5126
5127 \end_inset
5128
5129
5130 \begin_inset Newline newline
5131 \end_inset
5132
5133
5134 \begin_inset Phantom HPhantom
5135 status open
5136
5137 \begin_layout Plain Layout
5138
5139 \family typewriter
5140 ~:
5141 \backslash
5142
5143 \end_layout
5144
5145 \end_inset
5146
5147
5148 \begin_inset Flex Code
5149 status collapsed
5150
5151 \begin_layout Plain Layout
5152 MiKTeX
5153 \backslash
5154 2.8
5155 \backslash
5156 tex
5157 \backslash
5158 latex
5159 \end_layout
5160
5161 \end_inset
5162
5163
5164 \begin_inset Newline newline
5165 \end_inset
5166
5167 フォルダ、WinVista上では
5168 \begin_inset Newline newline
5169 \end_inset
5170
5171
5172 \begin_inset Flex Code
5173 status collapsed
5174
5175 \begin_layout Plain Layout
5176 ~:
5177 \backslash
5178 Users
5179 \backslash
5180 <ユーザー名>
5181 \backslash
5182 AppData
5183 \backslash
5184 Roaming
5185 \backslash
5186 2.8
5187 \backslash
5188 MiKTeX
5189 \backslash
5190 tex
5191 \backslash
5192 latex
5193 \end_layout
5194
5195 \end_inset
5196
5197
5198 \begin_inset Newline newline
5199 \end_inset
5200
5201 フォルダになります。
5202 \end_layout
5203
5204 \end_deeper
5205 \begin_layout Enumerate
5206 ここまで来れば、あとはLaTeXに新しいファイルがあることを告げるだけです。これは使用しているLaTeX頒布版に依存します。
5207 \end_layout
5208
5209 \begin_deeper
5210 \begin_layout Enumerate
5211 TeXLiveの場合には、コンソールから
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216 texhash
5217 \end_layout
5218
5219 \end_inset
5220
5221 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5222 \end_layout
5223
5224 \begin_layout Enumerate
5225 MiKTeXでは、パッケージを全ユーザー用に導入した場合には、「Settings
5226 \begin_inset space ~
5227 \end_inset
5228
5229 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5230
5231 \end_layout
5232
5233 \end_deeper
5234 \begin_layout Enumerate
5235 最後に、LyXに新しいパッケージがあることを告げなくてはなりません。そこで、LyXからツール\SpecialChar \menuseparator
5236 再初期設定メニューを実行して、LyXを再起動します。
5237 \end_layout
5238
5239 \begin_layout Standard
5240 これでパッケージが導入されました。この例では、文書クラス
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245 Slides
5246 \begin_inset space ~
5247 \end_inset
5248
5249 (FoilTe
5250 \begin_inset ERT
5251 status collapsed
5252
5253 \begin_layout Plain Layout
5254
5255 {}
5256 \end_layout
5257
5258 \end_inset
5259
5260 X)
5261 \end_layout
5262
5263 \end_inset
5264
5265
5266 \begin_inset Flex MenuItem
5267 status collapsed
5268
5269 \begin_layout Plain Layout
5270 文書\SpecialChar \menuseparator
5271 設定\SpecialChar \menuseparator
5272 文書クラス
5273 \end_layout
5274
5275 \end_inset
5276
5277 で利用可能になっているはずです。
5278 \end_layout
5279
5280 \begin_layout Standard
5281 \begin_inset Flex MenuItem
5282 status collapsed
5283
5284 \begin_layout Plain Layout
5285 文書\SpecialChar \menuseparator
5286 設定\SpecialChar \menuseparator
5287 文書クラス
5288 \end_layout
5289
5290 \end_inset
5291
5292 メニューに列挙されてもいないLaTeX文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5293 \end_layout
5294
5295 \begin_layout Section
5296 レイアウトファイルの型
5297 \end_layout
5298
5299 \begin_layout Standard
5300 この節は、レイアウト情報を含む各種LyXファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、LyXがそれら
5301 をどのように表示すべきなのか、また、それらをどのようにLaTeXやDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5302 \end_layout
5303
5304 \begin_layout Standard
5305 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、LaTeXクラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会い
5306 うるケースや問題をすべてカバーすることはとても望めません。LyXユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊
5307 かな人々がよく顔を出していますので、気軽に質問を投げかけてみてください。
5308 \end_layout
5309
5310 \begin_layout Standard
5311 新しいレイアウトを準備するに当たっては、LyXと共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できるLaTeX文書クラス用のLyX
5312 レイアウトを作ったり、他の人々にも有用なモジュールをお書きになった場合には、
5313 \begin_inset CommandInset href
5314 LatexCommand href
5315 name "LyX Wikiのレイアウトに関する節"
5316 target "http://wiki.lyx.org/Layouts/Layouts"
5317
5318 \end_inset
5319
5320 か、LyX開発者メーリングリストに投稿して、LyX頒布版に同梱することができるようにしてください
5321 \begin_inset Foot
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325 LyXはGeneral Public Licenseの下でライセンスされていますので、LyXに寄贈されたものは総て同じライセンス下に置かれることに注意してくださ
5326 い。
5327 \end_layout
5328
5329 \end_inset
5330
5331
5332 \end_layout
5333
5334 \begin_layout Subsection
5335 レイアウトモジュール
5336 \begin_inset CommandInset label
5337 LatexCommand label
5338 name "sub:レイアウトモジュール"
5339
5340 \end_inset
5341
5342
5343 \end_layout
5344
5345 \begin_layout Standard
5346 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5347 、それは
5348 \begin_inset Flex Code
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352 .layout
5353 \end_layout
5354
5355 \end_inset
5356
5357 拡張子を持ち、文書クラスに関する情報をLyXに提供するものを指します。しかしながら、LyX 1.6以降、レイアウト情報は、拡張子が
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 .module
5363 \end_layout
5364
5365 \end_inset
5366
5367 のレイアウト
5368 \emph on
5369 モジュール
5370 \emph default
5371 にも含めることができます。レイアウトがLaTeXクラスに対応しているように、モジュールはLaTeXパッケージに対応するものであり、
5372 \begin_inset Flex Code
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 endnotes
5377 \end_layout
5378
5379 \end_inset
5380
5381 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5382 イアウトで使用できるという意味において、一面、
5383 \begin_inset Flex Code
5384 status collapsed
5385
5386 \begin_layout Plain Layout
5387 stdsections.inc
5388 \end_layout
5389
5390 \end_inset
5391
5392 等のインクルードファイル
5393 \begin_inset Foot
5394 status collapsed
5395
5396 \begin_layout Plain Layout
5397 これらは任意の拡張子をつけることができますが、慣習的に
5398 \begin_inset Flex Code
5399 status collapsed
5400
5401 \begin_layout Plain Layout
5402 .inc
5403 \end_layout
5404
5405 \end_inset
5406
5407 拡張子が用いられます。
5408 \end_layout
5409
5410 \end_inset
5411
5412 のようなものです。相異なる点といえば、
5413 \begin_inset Flex Code
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 article.cls
5418 \end_layout
5419
5420 \end_inset
5421
5422 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5423 \begin_inset Flex MenuItem
5424 status collapsed
5425
5426 \begin_layout Plain Layout
5427 文書\SpecialChar \menuseparator
5428 設定
5429 \end_layout
5430
5431 \end_inset
5432
5433 ダイアログで選択するだけですみます。
5434 \end_layout
5435
5436 \begin_layout Standard
5437 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5438 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5439 \end_layout
5440
5441 \begin_layout Standard
5442 新しいモジュールを作成し、それを
5443 \begin_inset Flex Code
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 layout/
5448 \end_layout
5449
5450 \end_inset
5451
5452 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、LyXの再設定を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合に
5453 は、
5454 \begin_inset Flex MenuItem
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 文書\SpecialChar \menuseparator
5459 設定
5460 \end_layout
5461
5462 \end_inset
5463
5464 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5465 \emph on
5466 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5467 \emph default
5468 。もっと言えば、
5469 \emph on
5470 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5471 \emph default
5472 。もちろん開発陣は、そのような場合でもLyXが安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こさ
5473 れることがあるからです。
5474 \end_layout
5475
5476 \begin_layout Subsubsection
5477 ローカルレイアウト
5478 \end_layout
5479
5480 \begin_layout Standard
5481 LyXに於けるモジュールは、LaTeXに於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょう
5482 から、そのような場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウ
5483 ト」なのです。
5484 \end_layout
5485
5486 \begin_layout Standard
5487 これは、
5488 \family sans
5489 文書\SpecialChar \menuseparator
5490 設定\SpecialChar \menuseparator
5491 ローカルのレイアウト
5492 \family default
5493 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5494 は、その文書専属のモジュールだと考えることができます。したがって、
5495 \begin_inset Flex Code
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 Format
5500 \end_layout
5501
5502 \end_inset
5503
5504 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(LyX 2.0では、最新書式は35です)。
5505 また、ローカルレイアウトは、LyX 1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書をLyX 1.5またはそれ以前の版に(
5506 ローカルレイアウト情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ---第1.6版はUIはありませんがローカルレイアウトをサ
5507 ポートしています---書き出せることを望むならば、書式11を用いて、さらにLyX 1.6で使用できるレイアウト要素のみを使用してください。
5508 \end_layout
5509
5510 \begin_layout Standard
5511 \begin_inset Flex Code
5512 status collapsed
5513
5514 \begin_layout Plain Layout
5515 ローカルのレイアウト
5516 \end_layout
5517
5518 \end_inset
5519
5520 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
5521 ているかどうかが検証されます。すると、LyXがその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、LyXを
5522 ターミナル(擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
5523 \end_layout
5524
5525 \begin_layout Standard
5526 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
5527 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
5528 \end_layout
5529
5530 \begin_layout Subsection
5531 \begin_inset Flex MenuItem
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 .sty
5536 \end_layout
5537
5538 \end_inset
5539
5540 ファイル用のレイアウト
5541 \end_layout
5542
5543 \begin_layout Standard
5544 新しくLaTeX文書クラスをサポートしようとするとき、LaTeX2eクラス(
5545 \begin_inset Flex Code
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 .cls
5550 \end_layout
5551
5552 \end_inset
5553
5554 )ファイルが絡む場合と、スタイル(
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 .sty
5560 \end_layout
5561
5562 \end_inset
5563
5564 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5565 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5566 が当てはまります。
5567 \end_layout
5568
5569 \begin_layout Standard
5570 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5571 \begin_inset Flex MenuItem
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575 myclass.sty
5576 \end_layout
5577
5578 \end_inset
5579
5580 という名称で、標準的なクラスである
5581 \begin_inset Flex MenuItem
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585 report.cls
5586 \end_layout
5587
5588 \end_inset
5589
5590 と共に用いられるものと仮定しましょう。
5591 \end_layout
5592
5593 \begin_layout Standard
5594 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
5595 \begin_inset Foot
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。LyXでは、起動時に
5600 \begin_inset Flex MenuItem
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604 -userdir
5605 \end_layout
5606
5607 \end_inset
5608
5609 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
5610 \end_layout
5611
5612 \end_inset
5613
5614
5615 \end_layout
5616
5617 \begin_layout LyX-Code
5618 cp report.layout ~/.lyx/layouts/myclass.layout
5619 \end_layout
5620
5621 \begin_layout Standard
5622 それから、
5623 \begin_inset Flex Code
5624 status collapsed
5625
5626 \begin_layout Plain Layout
5627 myclass.layout
5628 \end_layout
5629
5630 \end_inset
5631
5632 を編集して、
5633 \end_layout
5634
5635 \begin_layout LyX-Code
5636
5637 \backslash
5638 DeclareLaT
5639 \begin_inset ERT
5640 status collapsed
5641
5642 \begin_layout Plain Layout
5643
5644 {}
5645 \end_layout
5646
5647 \end_inset
5648
5649 eXClass{report}
5650 \end_layout
5651
5652 \begin_layout Standard
5653 という行を
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657
5658 \backslash
5659 DeclareLaT
5660 \bar under
5661 \lang english
5662
5663 \begin_inset ERT
5664 status collapsed
5665
5666 \begin_layout Plain Layout
5667
5668 {}
5669 \end_layout
5670
5671 \end_inset
5672
5673
5674 \bar default
5675 \lang japanese
5676 eXClass[report, myclass.sty]{report (myclass)}
5677 \end_layout
5678
5679 \begin_layout Standard
5680 のように変更してください。それから、ファイル冒頭辺りに
5681 \end_layout
5682
5683 \begin_layout LyX-Code
5684 Preamble 
5685 \begin_inset Newline newline
5686 \end_inset
5687
5688     
5689 \backslash
5690 usepackage{myclass}
5691 \begin_inset Newline newline
5692 \end_inset
5693
5694 EndPreamble
5695 \end_layout
5696
5697 \begin_layout Standard
5698 と書き加えてください。
5699 \end_layout
5700
5701 \begin_layout Standard
5702 LyXを起動して
5703 \begin_inset Flex MenuItem
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 ツール\SpecialChar \menuseparator
5708 再設定
5709 \end_layout
5710
5711 \end_inset
5712
5713 を選択してください。それからLyXを再起動し、新規文書を作成してみてください。すると、
5714 \begin_inset Flex MenuItem
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 文書\SpecialChar \menuseparator
5719 設定
5720 \end_layout
5721
5722 \end_inset
5723
5724 ダイアログの文書クラスオプションに「
5725 \begin_inset Flex MenuItem
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729 report (myclass)
5730 \end_layout
5731
5732 \end_inset
5733
5734 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
5735 \begin_inset Flex Code
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 report
5740 \end_layout
5741
5742 \end_inset
5743
5744 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
5745 \begin_inset Flex Code
5746 status collapsed
5747
5748 \begin_layout Plain Layout
5749 stdsections.inc
5750 \end_layout
5751
5752 \end_inset
5753
5754 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
5755 \begin_inset Flex Code
5756 status collapsed
5757
5758 \begin_layout Plain Layout
5759 stdsections.inc
5760 \end_layout
5761
5762 \end_inset
5763
5764 も取り込む
5765 \begin_inset Flex Code
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 Input stdclass.inc
5770 \end_layout
5771
5772 \end_inset
5773
5774 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
5775 \end_layout
5776
5777 \begin_layout LyX-Code
5778 Style Chapter
5779 \end_layout
5780
5781 \begin_layout LyX-Code
5782     Font
5783 \end_layout
5784
5785 \begin_layout LyX-Code
5786         Family Sans
5787 \end_layout
5788
5789 \begin_layout LyX-Code
5790     EndFont
5791 \end_layout
5792
5793 \begin_layout LyX-Code
5794 End
5795 \end_layout
5796
5797 \begin_layout Standard
5798 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
5799 \end_layout
5800
5801 \begin_layout Standard
5802 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
5803 いては、第
5804 \begin_inset CommandInset ref
5805 LatexCommand ref
5806 reference "sec:テキストクラス"
5807
5808 \end_inset
5809
5810 節の情報を参照してください。
5811 \end_layout
5812
5813 \begin_layout Standard
5814 もし
5815 \begin_inset Flex Code
5816 status collapsed
5817
5818 \begin_layout Plain Layout
5819 myclass.sty
5820 \end_layout
5821
5822 \end_inset
5823
5824 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
5825 う。最も簡単なモジュールの例としては、以下のようなものになります。
5826 \end_layout
5827
5828 \begin_layout LyX-Code
5829 #
5830 \backslash
5831 DeclareLyXModule{My Package}
5832 \end_layout
5833
5834 \begin_layout LyX-Code
5835 #DescriptionBegin
5836 \end_layout
5837
5838 \begin_layout LyX-Code
5839 #Support for mypkg.sty.
5840 \end_layout
5841
5842 \begin_layout LyX-Code
5843 #DescriptionEnd
5844 \begin_inset Newline newline
5845 \end_inset
5846
5847
5848 \end_layout
5849
5850 \begin_layout LyX-Code
5851 Format 21
5852 \begin_inset Newline newline
5853 \end_inset
5854
5855
5856 \end_layout
5857
5858 \begin_layout LyX-Code
5859 Preamble
5860 \begin_inset Newline newline
5861 \end_inset
5862
5863     
5864 \backslash
5865 usepackage{mypkg}
5866 \begin_inset Newline newline
5867 \end_inset
5868
5869 EndPreamble
5870 \end_layout
5871
5872 \begin_layout Standard
5873 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
5874 \begin_inset CommandInset ref
5875 LatexCommand ref
5876 reference "sec:テキストクラス"
5877
5878 \end_inset
5879
5880 節を参照してください。
5881 \end_layout
5882
5883 \begin_layout Subsection
5884 \begin_inset Flex MenuItem
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 .cls
5889 \end_layout
5890
5891 \end_inset
5892
5893 ファイル用のレイアウト
5894 \end_layout
5895
5896 \begin_layout Standard
5897 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
5898 \begin_inset Flex MenuItem
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 book.cls
5903 \end_layout
5904
5905 \end_inset
5906
5907 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
5908 \end_layout
5909
5910 \begin_layout LyX-Code
5911
5912 \backslash
5913 LoadClass{book}
5914 \end_layout
5915
5916 \begin_layout Standard
5917 という行がないかどうか探してください。もしこれがあれば、
5918 \begin_inset Flex Code
5919 status collapsed
5920
5921 \begin_layout Plain Layout
5922 DeclareLaTeXClass
5923 \end_layout
5924
5925 \end_inset
5926
5927 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
5928 \begin_inset Flex Code
5929 status collapsed
5930
5931 \begin_layout Plain Layout
5932 thesis
5933 \end_layout
5934
5935 \end_inset
5936
5937 であり、
5938 \begin_inset Flex Code
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 book
5943 \end_layout
5944
5945 \end_inset
5946
5947 クラスに基づいていれば、
5948 \begin_inset Flex Code
5949 status collapsed
5950
5951 \begin_layout Plain Layout
5952 DeclareLaTeXClass
5953 \end_layout
5954
5955 \end_inset
5956
5957 行は以下のようにします
5958 \begin_inset Foot
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 さらにLyXは、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 thesis.layout
5968 \end_layout
5969
5970 \end_inset
5971
5972 という名前で保存するのが最も簡単です。 
5973 \end_layout
5974
5975 \end_inset
5976
5977
5978 \end_layout
5979
5980 \begin_layout LyX-Code
5981
5982 \backslash
5983 DeclareLaT
5984 \begin_inset ERT
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988
5989 {}
5990 \end_layout
5991
5992 \end_inset
5993
5994 eXClass[thesis,book]{thesis}
5995 \end_layout
5996
5997 \begin_layout Standard
5998 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似したLaTeXクラスを
5999 使用している既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のフ
6000 ァイルを作業の開始点としてください。
6001 \end_layout
6002
6003 \begin_layout Subsection
6004 ひな型を作成する
6005 \begin_inset CommandInset label
6006 LatexCommand label
6007 name "sec:ひな型を作成する"
6008
6009 \end_inset
6010
6011
6012 \end_layout
6013
6014 \begin_layout Standard
6015 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6016 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、LyX添付のひな型をあれこれ見てみるのもよいでしょう。
6017 \end_layout
6018
6019 \begin_layout Standard
6020 ひな型は、通常の文書と同様、LyXを使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている
6021 点です。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026
6027 \backslash
6028 fontscheme
6029 \end_layout
6030
6031 \end_inset
6032
6033
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038
6039 \backslash
6040 papersize
6041 \end_layout
6042
6043 \end_inset
6044
6045 などの対応するコマンドをひな型LyXファイルから取り除く必要があります。これは、たとえば
6046 \begin_inset Flex Code
6047 status collapsed
6048
6049 \begin_layout Plain Layout
6050 vi
6051 \end_layout
6052
6053 \end_inset
6054
6055
6056 \begin_inset Flex Code
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 notepad
6061 \end_layout
6062
6063 \end_inset
6064
6065 のような、どの軽いテキストエディタでも行うことができます。
6066 \end_layout
6067
6068 \begin_layout Standard
6069 編集したひな型を
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 UserDir/templates/
6075 \end_layout
6076
6077 \end_inset
6078
6079 に置き、グローバルなひな型ディレクトリ
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 LyXDir/templates/
6085 \end_layout
6086
6087 \end_inset
6088
6089 から使用したいものを同じ場所にコピーし、
6090 \begin_inset Flex MenuItem
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 ツール\SpecialChar \menuseparator
6095 設定\SpecialChar \menuseparator
6096 パス
6097 \end_layout
6098
6099 \end_inset
6100
6101 ダイアログのひな型パスを再定義してください。
6102 \end_layout
6103
6104 \begin_layout Standard
6105 ところで、特別な意味を持つひな型
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 defaults.lyx
6111 \end_layout
6112
6113 \end_inset
6114
6115 があることに注意してください。このひな型は、
6116 \begin_inset Flex MenuItem
6117 status collapsed
6118
6119 \begin_layout Plain Layout
6120 ファイル\SpecialChar \menuseparator
6121 新規
6122 \end_layout
6123
6124 \end_inset
6125
6126 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型をLyX内部から作成するのにしなくてはならないことは、対応する設定を持つ
6127 文書を開き、
6128 \begin_inset Flex MenuItem
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 文書既定値として保存
6133 \end_layout
6134
6135 \end_inset
6136
6137 ボタンを押すことです。
6138 \end_layout
6139
6140 \begin_layout Subsection
6141 旧レイアウトファイルの更新
6142 \end_layout
6143
6144 \begin_layout Standard
6145 レイアウトファイルの書式は、LyXのリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。この過程は、LyX第1.4版から自動化されま
6146 した。LyXが古い書式のレイアウトファイルを読み込むと、LyXは、自動的に変換ツール
6147 \begin_inset Flex Code
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151 LyXDir/scripts/layout2layout.py
6152 \end_layout
6153
6154 \end_inset
6155
6156 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、LyXがこれを毎
6157 回行なわくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6158 \end_layout
6159
6160 \begin_layout LyX-Code
6161 mv myclass.layout myclass.old
6162 \end_layout
6163
6164 \begin_layout LyX-Code
6165 python LyXDir/scripts/layout2layout.py myclass.old myclassnew.layout
6166 \end_layout
6167
6168 \begin_layout Standard
6169 もちろん、
6170 \begin_inset Flex Code
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 LyXDir
6175 \end_layout
6176
6177 \end_inset
6178
6179 は、お使いのLyXシステムディレクトリ名に置き換えてください。
6180 \end_layout
6181
6182 \begin_layout Standard
6183 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6184 \end_layout
6185
6186 \begin_layout Section
6187 \begin_inset CommandInset label
6188 LatexCommand label
6189 name "sec:テキストクラス"
6190
6191 \end_inset
6192
6193 レイアウトファイルの書式
6194 \end_layout
6195
6196 \begin_layout Standard
6197 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6198 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6199 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6200 て、もう一杯大人向け飲料をどうぞ。適量ね。
6201 \end_layout
6202
6203 \begin_layout Standard
6204 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6205 \begin_inset Flex Code
6206 status collapsed
6207
6208 \begin_layout Plain Layout
6209 Style
6210 \end_layout
6211
6212 \end_inset
6213
6214
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 style
6220 \end_layout
6221
6222 \end_inset
6223
6224
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 StYlE
6230 \end_layout
6231
6232 \end_inset
6233
6234 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6235 \begin_inset Flex Code
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239
6240 \emph on
6241 強調
6242 \end_layout
6243
6244 \end_inset
6245
6246 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6247 \begin_inset Flex Code
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 浮動小数点型=
6252 \emph on
6253 既定値
6254 \end_layout
6255
6256 \end_inset
6257
6258 のように表示されます。
6259 \end_layout
6260
6261 \begin_layout Subsection
6262 文書クラス宣言
6263 \end_layout
6264
6265 \begin_layout Standard
6266 レイアウトファイル中の
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 #
6272 \end_layout
6273
6274 \end_inset
6275
6276 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 *.layout
6282 \end_layout
6283
6284 \end_inset
6285
6286 ファイルは、以下のような行で始めなくてはならないのです。
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290
6291 \size small
6292 #% Do not delete the line below; configure depends on this 
6293 \end_layout
6294
6295 \begin_layout LyX-Code
6296
6297 \size small
6298 #  
6299 \backslash
6300 DeclareLaT
6301 \size default
6302
6303 \begin_inset ERT
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307
6308 {}
6309 \end_layout
6310
6311 \end_inset
6312
6313
6314 \size small
6315 eXClass{article}
6316 \end_layout
6317
6318 \begin_layout Standard
6319 この2行目は、LyXを初期設定や(再)設定するときに用いられるのです。このレイアウトファイルは、LaTeXスクリプト
6320 \begin_inset Flex Code
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 chkconfig.ltx
6325 \end_layout
6326
6327 \end_inset
6328
6329 が、
6330 \begin_inset Flex Code
6331 status collapsed
6332
6333 \begin_layout Plain Layout
6334 #
6335 \end_layout
6336
6337 \end_inset
6338
6339 を無視する特別なモードで読み込みます。1行目は単なるLaTeXコメントですが、2行目にはテキストクラスの宣言が書かれています。これらの行が
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 article.layout
6345 \end_layout
6346
6347 \end_inset
6348
6349 と名付けられたファイルにあると、
6350 \begin_inset Flex Code
6351 status collapsed
6352
6353 \begin_layout Plain Layout
6354 article
6355 \end_layout
6356
6357 \end_inset
6358
6359 (レイアウトファイル名)という名称のテキストクラスを定義し、LaTeX文書クラス
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 article.cls
6365 \end_layout
6366
6367 \end_inset
6368
6369 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「article」という文字列は、
6370 \begin_inset Flex MenuItem
6371 status collapsed
6372
6373 \begin_layout Plain Layout
6374 文書\SpecialChar \menuseparator
6375 設定
6376 \end_layout
6377
6378 \end_inset
6379
6380 ダイアログのテキストクラスの説明に使用されます。
6381 \end_layout
6382
6383 \begin_layout Standard
6384 節見出し表示に変更を加えた、
6385 \begin_inset Flex Code
6386 status collapsed
6387
6388 \begin_layout Plain Layout
6389 article.cls
6390 \end_layout
6391
6392 \end_inset
6393
6394 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6395 \begin_inset Flex Code
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399 myarticle.layout
6400 \end_layout
6401
6402 \end_inset
6403
6404 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6405 \end_layout
6406
6407 \begin_layout LyX-Code
6408
6409 \size small
6410 #% Do not delete the line below; configure depends on this 
6411 \end_layout
6412
6413 \begin_layout LyX-Code
6414
6415 \size small
6416 #  
6417 \backslash
6418 DeclareLaT
6419 \size default
6420
6421 \begin_inset ERT
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425
6426 {}
6427 \end_layout
6428
6429 \end_inset
6430
6431
6432 \size small
6433 eXClass[article]{article (with my own headings)}
6434 \end_layout
6435
6436 \begin_layout Standard
6437 これは、LaTeX文書クラス
6438 \begin_inset Flex Code
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 article.cls
6443 \end_layout
6444
6445 \end_inset
6446
6447 に関連づけられ、「article (with my own headings)」と表示される、
6448 \begin_inset Flex Code
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452 myarticle
6453 \end_layout
6454
6455 \end_inset
6456
6457 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6458 \end_layout
6459
6460 \begin_layout LyX-Code
6461
6462 \size small
6463 #% Do not delete the line below; configure depends on this 
6464 \end_layout
6465
6466 \begin_layout LyX-Code
6467
6468 \size small
6469 #  
6470 \backslash
6471 DeclareLaT
6472 \size default
6473
6474 \begin_inset ERT
6475 status collapsed
6476
6477 \begin_layout Plain Layout
6478
6479 {}
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \size small
6486 eXClass[article,foo.sty]{article (with my own headings)}
6487 \end_layout
6488
6489 \begin_layout Standard
6490 これは、このテキストクラスが
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 foo.sty
6496 \end_layout
6497
6498 \end_inset
6499
6500 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6501 \end_layout
6502
6503 \begin_layout LyX-Code
6504
6505 \size small
6506 #% Do not delete the line below; configure depends on this 
6507 \end_layout
6508
6509 \begin_layout LyX-Code
6510
6511 \size small
6512
6513 \backslash
6514 DeclareDocBookClass[article]{SGML (DocBook article)}
6515 \end_layout
6516
6517 \begin_layout Standard
6518 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6519 \end_layout
6520
6521 \begin_layout Standard
6522 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6523 \end_layout
6524
6525 \begin_layout LyX-Code
6526
6527 \size small
6528 #  
6529 \backslash
6530 DeclareLaT
6531 \size default
6532
6533 \begin_inset ERT
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537
6538 {}
6539 \end_layout
6540
6541 \end_inset
6542
6543
6544 \size small
6545 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6546 \end_layout
6547
6548 \begin_layout Standard
6549 ここで「クラス」は、LaTeXクラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、LyXは単純に
6550 、クラスファイル名がレイアウトファイル名と同じであると仮定します。
6551 \end_layout
6552
6553 \begin_layout Standard
6554 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6555 \begin_inset Flex Code
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559 L
6560 \begin_inset ERT
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564
6565 {}
6566 \end_layout
6567
6568 \end_inset
6569
6570 yXDir/layouts/
6571 \end_layout
6572
6573 \end_inset
6574
6575
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 UserDir/layouts
6581 \end_layout
6582
6583 \end_inset
6584
6585 にコピーし、
6586 \begin_inset Flex MenuItem
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590 ツール\SpecialChar \menuseparator
6591 再初期設定
6592 \end_layout
6593
6594 \end_inset
6595
6596 を実行し、LyXを終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
6597 \end_layout
6598
6599 \begin_layout Standard
6600 レイアウトファイルが導入されたならば、これを編集して、再初期設定したりLyXを再起動したりすることなく、その変更を確認することができます
6601 \begin_inset Foot
6602 status collapsed
6603
6604 \begin_layout Plain Layout
6605 第1.6版よりも前のLyXでは、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度にLyXを再起動しなくてはならな
6606 かったので、レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
6607 \end_layout
6608
6609 \end_inset
6610
6611 。LyX関数
6612 \begin_inset Flex MenuItem
6613 status collapsed
6614
6615 \begin_layout Plain Layout
6616 layout-reload
6617 \end_layout
6618
6619 \end_inset
6620
6621 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
6622 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
6623 \end_layout
6624
6625 \begin_layout Standard
6626
6627 \emph on
6628 注意
6629 \emph default
6630
6631 \begin_inset Flex MenuItem
6632 status collapsed
6633
6634 \begin_layout Plain Layout
6635 layout-reload
6636 \end_layout
6637
6638 \end_inset
6639
6640 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
6641 \emph on
6642 強く
6643 \emph default
6644 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
6645 \emph on
6646 強く
6647 \emph default
6648 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、LyXは
6649 現在のレイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
6650 \begin_inset Foot
6651 status collapsed
6652
6653 \begin_layout Plain Layout
6654 非常に悪質な文法エラーの場合には、LyXが終了してしまうことさえあります。これは、ある種のエラーでは、LyXがレイアウト情報を全く読めなくなる可能性があるからで
6655 す。ご注意ください。
6656 \end_layout
6657
6658 \end_inset
6659
6660 。LyX開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
6661 \begin_inset Foot
6662 status collapsed
6663
6664 \begin_layout Plain Layout
6665 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
6666 \end_layout
6667
6668 \end_inset
6669
6670
6671 \end_layout
6672
6673 \begin_layout Subsection
6674 モジュール宣言
6675 \end_layout
6676
6677 \begin_layout Standard
6678 モジュールは、以下のような行で始まらなくてはなりません。
6679 \end_layout
6680
6681 \begin_layout LyX-Code
6682 #
6683 \backslash
6684 DeclareL
6685 \begin_inset ERT
6686 status collapsed
6687
6688 \begin_layout Plain Layout
6689
6690 {}
6691 \end_layout
6692
6693 \end_inset
6694
6695 yXModule[endnotes.sty]{Endnotes} 
6696 \end_layout
6697
6698 \begin_layout Standard
6699 波括弧内に入っている必須引数はモジュール名で、これは
6700 \begin_inset Flex MenuItem
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 文書\SpecialChar \menuseparator
6705 設定
6706 \end_layout
6707
6708 \end_inset
6709
6710 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存するLaTeXパッケージをすべて宣言します。角括弧の中には、LyXにとって既知のパッケージ
6711 だけしか、列挙することはできないことに注意してください。
6712 \begin_inset Foot
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 既知のパッケージのリストは、ソースコード中でしか、ドキュメント化されていません。
6717 \end_layout
6718
6719 \end_inset
6720
6721 LyXは、任意のパッケージをチェックすることはしません。また、非必須引数として、
6722 \begin_inset Flex Code
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 変換元->変換先
6727 \end_layout
6728
6729 \end_inset
6730
6731 の形を使用することができます。これは、
6732 \begin_inset Flex Code
6733 status collapsed
6734
6735 \begin_layout Plain Layout
6736 変換元
6737 \end_layout
6738
6739 \end_inset
6740
6741 形式から
6742 \begin_inset Flex Code
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 変換先
6747 \end_layout
6748
6749 \end_inset
6750
6751 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
6752 \end_layout
6753
6754 \begin_layout Standard
6755 それから、以下のようなモジュール宣言を行います。
6756 \end_layout
6757
6758 \begin_layout LyX-Code
6759 #DescriptionBegin 
6760 \end_layout
6761
6762 \begin_layout LyX-Code
6763 #Adds an endnote command, in addition to footnotes.
6764  
6765 \end_layout
6766
6767 \begin_layout LyX-Code
6768 #You will need to add  
6769 \backslash
6770 theendnotes in T
6771 \begin_inset ERT
6772 status collapsed
6773
6774 \begin_layout Plain Layout
6775
6776 {}
6777 \end_layout
6778
6779 \end_inset
6780
6781 eX code where you 
6782 \end_layout
6783
6784 \begin_layout LyX-Code
6785 #want the endnotes to appear.
6786  
6787 \end_layout
6788
6789 \begin_layout LyX-Code
6790 #DescriptionEnd 
6791 \end_layout
6792
6793 \begin_layout LyX-Code
6794 #Requires: somemodule | othermodule
6795 \end_layout
6796
6797 \begin_layout LyX-Code
6798 #Excludes: badmodule
6799 \end_layout
6800
6801 \begin_layout Standard
6802 ここで説明(Description)は、
6803 \begin_inset Flex MenuItem
6804 status collapsed
6805
6806 \begin_layout Plain Layout
6807 文書\SpecialChar \menuseparator
6808 設定
6809 \end_layout
6810
6811 \end_inset
6812
6813 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
6814 \begin_inset Flex Code
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 Requires
6819 \end_layout
6820
6821 \end_inset
6822
6823 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 Excludes
6829 \end_layout
6830
6831 \end_inset
6832
6833 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
6834 イプ記号「|」で区切らなくてはなりません。
6835 \begin_inset Flex Code
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 Requires
6840 \end_layout
6841
6842 \end_inset
6843
6844 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 Requires
6850 \end_layout
6851
6852 \end_inset
6853
6854 に指定されたモジュールのうち、
6855 \emph on
6856 少なくとも一つ
6857 \emph default
6858 が使用されていればよいということです。同様に、
6859 \begin_inset Flex Code
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 Excludes
6864 \end_layout
6865
6866 \end_inset
6867
6868 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
6869 \begin_inset Flex Code
6870 status collapsed
6871
6872 \begin_layout Plain Layout
6873 .module
6874 \end_layout
6875
6876 \end_inset
6877
6878 拡張子を除いた
6879 \emph on
6880 ファイル名
6881 \emph default
6882 で認識されることに注意してください。つまり
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 somemodule
6888 \end_layout
6889
6890 \end_inset
6891
6892 とは、実のところ
6893 \begin_inset Flex Code
6894 status collapsed
6895
6896 \begin_layout Plain Layout
6897 somemodule.module
6898 \end_layout
6899
6900 \end_inset
6901
6902 のことです。
6903 \end_layout
6904
6905 \begin_layout Subsection
6906 書式番号
6907 \end_layout
6908
6909 \begin_layout Standard
6910 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
6911 \end_layout
6912
6913 \begin_layout Description
6914 \begin_inset Flex Code
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 Format
6919 \end_layout
6920
6921 \end_inset
6922
6923  [
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928 整数型
6929 \end_layout
6930
6931 \end_inset
6932
6933 ] このレイアウトファイルの書式
6934 \end_layout
6935
6936 \begin_layout Standard
6937 このタグはLyX 1.4.0で導入されました。LyX 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。LyX現行版のファイ
6938 ル形式は、書式21です。しかし、LyXの各版は、旧版のLyXで作成されたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしな
6939 がら、以前の書式に変換する方法はありません。したがって、LyX 1.6.xは、書式11以前のファイルのみを読むことができますが、書式21は読むことができません。
6940 \end_layout
6941
6942 \begin_layout Subsection
6943 \begin_inset CommandInset label
6944 LatexCommand label
6945 name "sub:汎用テキストクラスパラメータ"
6946
6947 \end_inset
6948
6949 汎用テキストクラスパラメータ
6950 \end_layout
6951
6952 \begin_layout Standard
6953 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
6954 \begin_inset Flex Code
6955 status collapsed
6956
6957 \begin_layout Plain Layout
6958 .layout
6959 \end_layout
6960
6961 \end_inset
6962
6963 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
6964 \emph on
6965 ありません
6966 \emph default
6967 。モジュールには、すべてのレイアウトタグを使用することができます)。
6968 \end_layout
6969
6970 \begin_layout Description
6971 \begin_inset Flex Code
6972 status collapsed
6973
6974 \begin_layout Plain Layout
6975 AddToHTMLPreamble
6976 \end_layout
6977
6978 \end_inset
6979
6980  この文書クラスがXHTMLに出力されるときに、
6981 \begin_inset Flex Code
6982 status collapsed
6983
6984 \begin_layout Plain Layout
6985 <head>
6986 \end_layout
6987
6988 \end_inset
6989
6990 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
6991 \begin_inset Flex Code
6992 status collapsed
6993
6994 \begin_layout Plain Layout
6995 <head>
6996 \end_layout
6997
6998 \end_inset
6999
7000 に出力するものであれば、何でも使用することができます。「
7001 \begin_inset Flex Code
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 EndPreamble
7006 \end_layout
7007
7008 \end_inset
7009
7010 」で閉じる必要があります。
7011 \end_layout
7012
7013 \begin_layout Description
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 AddToPreamble
7019 \end_layout
7020
7021 \end_inset
7022
7023  文書プリアンブルに書き加えられる情報です。「
7024 \begin_inset Flex Code
7025 status collapsed
7026
7027 \begin_layout Plain Layout
7028 EndPreamble
7029 \end_layout
7030
7031 \end_inset
7032
7033 」で閉じる必要があります。
7034 \end_layout
7035
7036 \begin_layout Description
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 CiteFormat
7042 \end_layout
7043
7044 \end_inset
7045
7046  書誌情報の表示に使う書式を定義します。詳細については、第
7047 \begin_inset CommandInset ref
7048 LatexCommand ref
7049 reference "sub:引用書式指定"
7050
7051 \end_inset
7052
7053 節をご覧ください。「
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 End
7059 \end_layout
7060
7061 \end_inset
7062
7063 」で閉じる必要があります。
7064 \end_layout
7065
7066 \begin_layout Description
7067 \begin_inset Flex Code
7068 status collapsed
7069
7070 \begin_layout Plain Layout
7071 ClassOptions
7072 \end_layout
7073
7074 \end_inset
7075
7076  文書クラスがサポートする様々な大域オプションを記します。説明は、第
7077 \begin_inset CommandInset ref
7078 LatexCommand ref
7079 reference "sub:ClassOptions"
7080
7081 \end_inset
7082
7083 節を参照してください。「
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 End
7089 \end_layout
7090
7091 \end_inset
7092
7093 」で閉じる必要があります。
7094 \end_layout
7095
7096 \begin_layout Description
7097 \begin_inset Flex Code
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 Columns
7102 \end_layout
7103
7104 \end_inset
7105
7106  [
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111
7112 \emph on
7113 1
7114 \end_layout
7115
7116 \end_inset
7117
7118 ,
7119 \begin_inset space \thinspace{}
7120 \end_inset
7121
7122
7123 \begin_inset Flex Code
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 2
7128 \end_layout
7129
7130 \end_inset
7131
7132 ] 文書クラスが既定で1段組か2段組かを指定します。
7133 \begin_inset Flex MenuItem
7134 status collapsed
7135
7136 \begin_layout Plain Layout
7137 文書\SpecialChar \menuseparator
7138 設定
7139 \end_layout
7140
7141 \end_inset
7142
7143 ダイアログで変更することができます。
7144 \end_layout
7145
7146 \begin_layout Description
7147 \begin_inset Flex Code
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151 Counter
7152 \end_layout
7153
7154 \end_inset
7155
7156  [
7157 \begin_inset Flex Code
7158 status collapsed
7159
7160 \begin_layout Plain Layout
7161 文字列
7162 \end_layout
7163
7164 \end_inset
7165
7166 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7167 \begin_inset Flex Code
7168 status collapsed
7169
7170 \begin_layout Plain Layout
7171 End
7172 \end_layout
7173
7174 \end_inset
7175
7176 」で閉じる必要があります。
7177 \begin_inset Newline newline
7178 \end_inset
7179
7180 カウンタについての詳細は、第
7181 \begin_inset CommandInset ref
7182 LatexCommand ref
7183 reference "sub:カウンタ"
7184
7185 \end_inset
7186
7187 節を参照してください。
7188 \end_layout
7189
7190 \begin_layout Description
7191 \begin_inset Flex Code
7192 status collapsed
7193
7194 \begin_layout Plain Layout
7195 DefaultFont
7196 \end_layout
7197
7198 \end_inset
7199
7200  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、第
7201 \begin_inset CommandInset ref
7202 LatexCommand ref
7203 reference "sub:フォント指定"
7204
7205 \end_inset
7206
7207 節を参照してください。「
7208 \begin_inset Flex Code
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212 EndFont
7213 \end_layout
7214
7215 \end_inset
7216
7217 」で閉じる必要があります。
7218 \end_layout
7219
7220 \begin_layout Description
7221 \begin_inset Flex Code
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 DefaultModule
7226 \end_layout
7227
7228 \end_inset
7229
7230  [
7231 \begin_inset Flex Code
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 文字列
7236 \end_layout
7237
7238 \end_inset
7239
7240 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7241 \begin_inset Flex Code
7242 status collapsed
7243
7244 \begin_layout Plain Layout
7245 .module
7246 \end_layout
7247
7248 \end_inset
7249
7250 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7251 既存の文書にこの文書クラスが選択したときのみ該当します)。
7252 \end_layout
7253
7254 \begin_layout Description
7255 \begin_inset Flex Code
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 DefaultStyle
7260 \end_layout
7261
7262 \end_inset
7263
7264  [
7265 \begin_inset Flex Code
7266 status collapsed
7267
7268 \begin_layout Plain Layout
7269 文字列
7270 \end_layout
7271
7272 \end_inset
7273
7274 ] これは新規段落に割り当てられる様式であり、通常は
7275 \begin_inset Flex MenuItem
7276 status collapsed
7277
7278 \begin_layout Plain Layout
7279 標準
7280 \end_layout
7281
7282 \end_inset
7283
7284 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7285 \end_layout
7286
7287 \begin_layout Description
7288 \begin_inset Flex Code
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 ExcludesModule
7293 \end_layout
7294
7295 \end_inset
7296
7297  [
7298 \begin_inset Flex Code
7299 status collapsed
7300
7301 \begin_layout Plain Layout
7302 文字列
7303 \end_layout
7304
7305 \end_inset
7306
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 \begin_inset Flex Code
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 theorems-sec
7324 \end_layout
7325
7326 \end_inset
7327
7328 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7329 \emph on
7330 使用してはいけません
7331 \emph default
7332 。モジュールは、他のモジュールを排除する独自の枠組みがあります(第
7333 \begin_inset CommandInset ref
7334 LatexCommand ref
7335 reference "sub:レイアウトモジュール"
7336
7337 \end_inset
7338
7339 節参照)。
7340 \end_layout
7341
7342 \begin_layout Description
7343 \begin_inset Flex Code
7344 status collapsed
7345
7346 \begin_layout Plain Layout
7347 Float
7348 \end_layout
7349
7350 \end_inset
7351
7352  フロートを新規に定義します。詳細は、第
7353 \begin_inset CommandInset ref
7354 LatexCommand ref
7355 reference "sub:フロート"
7356
7357 \end_inset
7358
7359 節を参照してください。「
7360 \begin_inset Flex Code
7361 status collapsed
7362
7363 \begin_layout Plain Layout
7364 End
7365 \end_layout
7366
7367 \end_inset
7368
7369 」で閉じる必要があります。
7370 \end_layout
7371
7372 \begin_layout Description
7373 \begin_inset Flex Code
7374 status collapsed
7375
7376 \begin_layout Plain Layout
7377 HTMLPreamble
7378 \end_layout
7379
7380 \end_inset
7381
7382  この文書クラスがXHTMLに出力されるときに、
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 <head>
7388 \end_layout
7389
7390 \end_inset
7391
7392 ブロックに出力される情報です。これより前に出現した
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 HTMLPreamble
7398 \end_layout
7399
7400 \end_inset
7401
7402
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 AddToHTMLPreamble
7408 \end_layout
7409
7410 \end_inset
7411
7412 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7413 \begin_inset Flex Code
7414 status collapsed
7415
7416 \begin_layout Plain Layout
7417 AddToHTMLPreamble
7418 \end_layout
7419
7420 \end_inset
7421
7422 を使用してください)。これは「
7423 \begin_inset Flex Code
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 EndPreamble
7428 \end_layout
7429
7430 \end_inset
7431
7432 」で閉じる必要があります。
7433 \end_layout
7434
7435 \begin_layout Description
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 HTMLStyles
7441 \end_layout
7442
7443 \end_inset
7444
7445  CSSスタイル情報を指定します。これは、「
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 <style>
7451 \end_layout
7452
7453 \end_inset
7454
7455 」ブロック内か、ユーザーがそのように選択すれば、独立したCSSファイル内に出力されます。これは、これより以前に宣言された
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 HTMLStyles
7461 \end_layout
7462
7463 \end_inset
7464
7465
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 AddToHTMLStyles
7471 \end_layout
7472
7473 \end_inset
7474
7475 をすべて完全に上書きしてしまうことに注意してください(追加をしたい時には`
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 AddToHTMLStyles
7481 \end_layout
7482
7483 \end_inset
7484
7485 を使用してください)。これは「
7486 \begin_inset Flex Code
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 EndStyles
7491 \end_layout
7492
7493 \end_inset
7494
7495 」で閉じる必要があります。
7496 \end_layout
7497
7498 \begin_layout Description
7499 \begin_inset Flex Code
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 HTMLTOCSection
7504 \end_layout
7505
7506 \end_inset
7507
7508  [
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 文字列
7514 \end_layout
7515
7516 \end_inset
7517
7518 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7519 。これを指定しない場合には、LyXはどのレイアウトを使用するべきか、解析しようと試みます。
7520 \end_layout
7521
7522 \begin_layout Description
7523 \begin_inset Flex Code
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 IfCounter 
7528 \end_layout
7529
7530 \end_inset
7531
7532  [
7533 \begin_inset Flex Code
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 文字列
7538 \end_layout
7539
7540 \end_inset
7541
7542 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7543 \begin_inset Flex Code
7544 status collapsed
7545
7546 \begin_layout Plain Layout
7547 End
7548 \end_layout
7549
7550 \end_inset
7551
7552 」で閉じる必要があります。
7553 \begin_inset Newline newline
7554 \end_inset
7555
7556 カウンタについての詳細は、第
7557 \begin_inset CommandInset ref
7558 LatexCommand ref
7559 reference "sub:カウンタ"
7560
7561 \end_inset
7562
7563 節をご覧ください。
7564 \end_layout
7565
7566 \begin_layout Description
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 IfStyle
7572 \end_layout
7573
7574 \end_inset
7575
7576  [
7577 \begin_inset Flex Code
7578 status collapsed
7579
7580 \begin_layout Plain Layout
7581 文字列
7582 \end_layout
7583
7584 \end_inset
7585
7586 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 End
7592 \end_layout
7593
7594 \end_inset
7595
7596 」で閉じる必要があります。
7597 \end_layout
7598
7599 \begin_layout Description
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 Input
7605 \end_layout
7606
7607 \end_inset
7608
7609  名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウ
7610 トのほとんどを収録している
7611 \begin_inset Flex Code
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 stdclass.inc
7616 \end_layout
7617
7618 \end_inset
7619
7620 のような標準レイアウトファイルです。
7621 \end_layout
7622
7623 \begin_layout Description
7624 \begin_inset Flex Code
7625 status collapsed
7626
7627 \begin_layout Plain Layout
7628 InsetLayout
7629 \end_layout
7630
7631 \end_inset
7632
7633  このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。
7634
7635 \begin_inset Flex Code
7636 status collapsed
7637
7638 \begin_layout Plain Layout
7639 End
7640 \end_layout
7641
7642 \end_inset
7643
7644 」で閉じる必要があります。
7645 \begin_inset Newline newline
7646 \end_inset
7647
7648 詳しい情報は、第
7649 \begin_inset CommandInset ref
7650 LatexCommand ref
7651 reference "sub:任意設定差込枠"
7652
7653 \end_inset
7654
7655 節をご覧ください。
7656 \end_layout
7657
7658 \begin_layout Description
7659 \begin_inset Flex Code
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 LeftMargin
7664 \end_layout
7665
7666 \end_inset
7667
7668  [
7669 \begin_inset Flex Code
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 文字列
7674 \end_layout
7675
7676 \end_inset
7677
7678 ] 画面上の左余白の幅を指示する文字列。例:「
7679 \begin_inset Flex Code
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 MMMMM
7684 \end_layout
7685
7686 \end_inset
7687
7688 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
7689 \end_layout
7690
7691 \begin_layout Description
7692 \begin_inset Flex Code
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 NoFloat
7697 \end_layout
7698
7699 \end_inset
7700
7701  このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
7702 \end_layout
7703
7704 \begin_layout Description
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709 NoStyle
7710 \end_layout
7711
7712 \end_inset
7713
7714  このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
7715 \end_layout
7716
7717 \begin_layout Description
7718 \begin_inset Flex Code
7719 status collapsed
7720
7721 \begin_layout Plain Layout
7722 OutputFormat
7723 \end_layout
7724
7725 \end_inset
7726
7727  このクラスによって生成されるファイル形式を示す文字列(
7728 \family sans
7729 設定
7730 \family default
7731 ダイアログで定義される形のもの)。おもに、
7732 \begin_inset Flex Code
7733 status collapsed
7734
7735 \begin_layout Plain Layout
7736 OutputType
7737 \end_layout
7738
7739 \end_inset
7740
7741 が「literate」になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 OutputType
7747 \end_layout
7748
7749 \end_inset
7750
7751 パラメーターに遭遇したときには、この文字列は、「docbook」・「latex」・「literate」のいずれかにリセットされます。
7752 \end_layout
7753
7754 \begin_layout Description
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 OutputType
7760 \end_layout
7761
7762 \end_inset
7763
7764  このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
7765 \end_layout
7766
7767 \begin_layout Description
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 PageStyle
7773 \end_layout
7774
7775 \end_inset
7776
7777  [
7778 \emph on
7779
7780 \begin_inset Flex Code
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784 plain
7785 \end_layout
7786
7787 \end_inset
7788
7789
7790 \emph default
7791
7792 \begin_inset Flex Code
7793 status collapsed
7794
7795 \begin_layout Plain Layout
7796 empty
7797 \end_layout
7798
7799 \end_inset
7800
7801
7802 \begin_inset Flex Code
7803 status collapsed
7804
7805 \begin_layout Plain Layout
7806 headings
7807 \end_layout
7808
7809 \end_inset
7810
7811 ] 既定ページ様式。
7812 \begin_inset Flex MenuItem
7813 status collapsed
7814
7815 \begin_layout Plain Layout
7816 文書\SpecialChar \menuseparator
7817 設定
7818 \end_layout
7819
7820 \end_inset
7821
7822 ダイアログで変更することができます。
7823 \end_layout
7824
7825 \begin_layout Description
7826 \begin_inset Flex Code
7827 status collapsed
7828
7829 \begin_layout Plain Layout
7830 Preamble
7831 \end_layout
7832
7833 \end_inset
7834
7835  LaTeX文書のプリアンブルを設定します。前に行った
7836 \begin_inset Flex Code
7837 status collapsed
7838
7839 \begin_layout Plain Layout
7840 Preamble
7841 \end_layout
7842
7843 \end_inset
7844
7845 宣言や
7846 \begin_inset Flex Code
7847 status collapsed
7848
7849 \begin_layout Plain Layout
7850 AddToPreamble
7851 \end_layout
7852
7853 \end_inset
7854
7855 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
7856 \begin_inset Flex Code
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860 AddToPreamble
7861 \end_layout
7862
7863 \end_inset
7864
7865 を使用してください。)「
7866 \begin_inset Flex Code
7867 status collapsed
7868
7869 \begin_layout Plain Layout
7870 EndPreamble
7871 \end_layout
7872
7873 \end_inset
7874
7875 」で閉じる必要があります。
7876 \end_layout
7877
7878 \begin_layout Description
7879 \begin_inset Flex Code
7880 status collapsed
7881
7882 \begin_layout Plain Layout
7883 Provides
7884 \end_layout
7885
7886 \end_inset
7887
7888  [
7889 \begin_inset Flex Code
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893 文字列
7894 \end_layout
7895
7896 \end_inset
7897
7898 ] [
7899 \begin_inset Flex Code
7900 status collapsed
7901
7902 \begin_layout Plain Layout
7903
7904 \emph on
7905 0
7906 \end_layout
7907
7908 \end_inset
7909
7910
7911 \begin_inset Flex Code
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915 1
7916 \end_layout
7917
7918 \end_inset
7919
7920 ] このクラスが
7921 \begin_inset Flex Code
7922 status collapsed
7923
7924 \begin_layout Plain Layout
7925 文字列
7926 \end_layout
7927
7928 \end_inset
7929
7930 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
7931 \begin_inset Flex Code
7932 status collapsed
7933
7934 \begin_layout Plain Layout
7935 amsmath
7936 \end_layout
7937
7938 \end_inset
7939
7940
7941 \begin_inset Flex Code
7942 status collapsed
7943
7944 \begin_layout Plain Layout
7945 makeidx
7946 \end_layout
7947
7948 \end_inset
7949
7950 ・\SpecialChar \ldots{}
7951 )やマクロ名(
7952 \begin_inset Flex Code
7953 status collapsed
7954
7955 \begin_layout Plain Layout
7956 url
7957 \end_layout
7958
7959 \end_inset
7960
7961
7962 \begin_inset Flex Code
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 boldsymbol
7967 \end_layout
7968
7969 \end_inset
7970
7971 ・\SpecialChar \ldots{}
7972 )です。サポートされている機能の全覧は、LyXソースコード以外には残念ながら文書化されていませんが、興味があれば
7973 \begin_inset Flex Code
7974 status collapsed
7975
7976 \begin_layout Plain Layout
7977 LaTeXFeatures.cpp
7978 \end_layout
7979
7980 \end_inset
7981
7982 をご覧ください。
7983 \begin_inset Flex MenuItem
7984 status collapsed
7985
7986 \begin_layout Plain Layout
7987 ヘルプ\SpecialChar \menuseparator
7988 LaTeXの設定
7989 \end_layout
7990
7991 \end_inset
7992
7993 もサポートされているパッケージの概要を提供します。
7994 \end_layout
7995
7996 \begin_layout Description
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 ProvidesModule
8002 \end_layout
8003
8004 \end_inset
8005
8006  [
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 文字列
8012 \end_layout
8013
8014 \end_inset
8015
8016 ] このレイアウトが
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 文字列
8022 \end_layout
8023
8024 \end_inset
8025
8026 で表されているモジュールの機能を提供することを示し、
8027 \begin_inset Flex Code
8028 status collapsed
8029
8030 \begin_layout Plain Layout
8031 .module
8032 \end_layout
8033
8034 \end_inset
8035
8036 拡張子を除いたファイル名で指定します。
8037 \begin_inset Flex Code
8038 status collapsed
8039
8040 \begin_layout Plain Layout
8041 DefaultModule
8042 \end_layout
8043
8044 \end_inset
8045
8046 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8047 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8048 \end_layout
8049
8050 \begin_layout Description
8051 \begin_inset Flex Code
8052 status collapsed
8053
8054 \begin_layout Plain Layout
8055 Requires
8056 \end_layout
8057
8058 \end_inset
8059
8060  [
8061 \begin_inset Flex Code
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 文字列
8066 \end_layout
8067
8068 \end_inset
8069
8070 ] このクラスが
8071 \begin_inset Flex Code
8072 status collapsed
8073
8074 \begin_layout Plain Layout
8075 文字列
8076 \end_layout
8077
8078 \end_inset
8079
8080 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8081 さい。(機能一覧については、これも
8082 \begin_inset Flex Code
8083 status collapsed
8084
8085 \begin_layout Plain Layout
8086 LaTeXFeatures.cpp
8087 \end_layout
8088
8089 \end_inset
8090
8091 をご覧ください。)
8092 \end_layout
8093
8094 \begin_layout Description
8095 \begin_inset Flex Code
8096 status collapsed
8097
8098 \begin_layout Plain Layout
8099 RightMargin
8100 \end_layout
8101
8102 \end_inset
8103
8104  [
8105 \begin_inset Flex Code
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 文字列
8110 \end_layout
8111
8112 \end_inset
8113
8114 ] 画面上の右余白の幅を指示する文字列。例:「
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 MMMMM
8120 \end_layout
8121
8122 \end_inset
8123
8124 」。
8125 \end_layout
8126
8127 \begin_layout Description
8128 \begin_inset Flex Code
8129 status collapsed
8130
8131 \begin_layout Plain Layout
8132 SecNumDepth
8133 \end_layout
8134
8135 \end_inset
8136
8137  [
8138 \begin_inset Flex Code
8139 status collapsed
8140
8141 \begin_layout Plain Layout
8142 int=3
8143 \end_layout
8144
8145 \end_inset
8146
8147 ] どの節区切りまで連番を振るかを指定します。LaTeXにおける
8148 \begin_inset Flex Code
8149 status collapsed
8150
8151 \begin_layout Plain Layout
8152 secnumdepth
8153 \end_layout
8154
8155 \end_inset
8156
8157 カウンタに対応します。
8158 \end_layout
8159
8160 \begin_layout Description
8161 \begin_inset Flex Code
8162 status collapsed
8163
8164 \begin_layout Plain Layout
8165 Sides
8166 \end_layout
8167
8168 \end_inset
8169
8170  [
8171 \emph on
8172
8173 \begin_inset Flex Code
8174 status collapsed
8175
8176 \begin_layout Plain Layout
8177 1
8178 \end_layout
8179
8180 \end_inset
8181
8182
8183 \emph default
8184 ,
8185 \begin_inset space \thinspace{}
8186 \end_inset
8187
8188
8189 \begin_inset Flex Code
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 2
8194 \end_layout
8195
8196 \end_inset
8197
8198 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8199 \begin_inset Flex MenuItem
8200 status collapsed
8201
8202 \begin_layout Plain Layout
8203 文書\SpecialChar \menuseparator
8204 設定
8205 \end_layout
8206
8207 \end_inset
8208
8209 ダイアログで変更することができます。
8210 \end_layout
8211
8212 \begin_layout Description
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 Style
8218 \end_layout
8219
8220 \end_inset
8221
8222  
8223 \lang english
8224 [
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229
8230 \lang english
8231 <name>
8232 \end_layout
8233
8234 \end_inset
8235
8236
8237 \lang japanese
8238 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8239 \begin_inset Flex Code
8240 status collapsed
8241
8242 \begin_layout Plain Layout
8243 End
8244 \end_layout
8245
8246 \end_inset
8247
8248 」で閉じる必要があります。
8249 \begin_inset Newline newline
8250 \end_inset
8251
8252 段落様式に関する詳細は、第
8253 \begin_inset CommandInset ref
8254 LatexCommand ref
8255 reference "sub:段落様式-XHTML"
8256
8257 \end_inset
8258
8259 節をご覧ください。
8260 \end_layout
8261
8262 \begin_layout Description
8263 \begin_inset Flex Code
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 TitleLatexName
8268 \end_layout
8269
8270 \end_inset
8271
8272  [
8273 \begin_inset Flex Code
8274 status collapsed
8275
8276 \begin_layout Plain Layout
8277 文字列="maketitle"
8278 \end_layout
8279
8280 \end_inset
8281
8282
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 TitleLatexType
8288 \end_layout
8289
8290 \end_inset
8291
8292 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8293  
8294 \begin_inset Flex Code
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 TitleLatexType
8299 \end_layout
8300
8301 \end_inset
8302
8303 .
8304 \end_layout
8305
8306 \begin_layout Description
8307 \begin_inset Flex Code
8308 status collapsed
8309
8310 \begin_layout Plain Layout
8311 TitleLatexType
8312 \end_layout
8313
8314 \end_inset
8315
8316  [
8317 \begin_inset Flex Code
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321
8322 \emph on
8323 CommandAfter
8324 \end_layout
8325
8326 \end_inset
8327
8328
8329 \begin_inset Flex Code
8330 status collapsed
8331
8332 \begin_layout Plain Layout
8333 Environment
8334 \end_layout
8335
8336 \end_inset
8337
8338 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8339 \begin_inset Flex Code
8340 status collapsed
8341
8342 \begin_layout Plain Layout
8343 CommandAfter
8344 \end_layout
8345
8346 \end_inset
8347
8348 は、「
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 InTitle
8354 \begin_inset space ~
8355 \end_inset
8356
8357 1
8358 \end_layout
8359
8360 \end_inset
8361
8362 」が指定されている最後のレイアウトの後に、
8363 \begin_inset Flex Code
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 TitleLatexName
8368 \end_layout
8369
8370 \end_inset
8371
8372 で指定したマクロ名を挿入することを意味します。
8373 \begin_inset Flex Code
8374 status collapsed
8375
8376 \begin_layout Plain Layout
8377 Environment
8378 \end_layout
8379
8380 \end_inset
8381
8382 は、「
8383 \begin_inset Flex Code
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387 InTitle
8388 \begin_inset space ~
8389 \end_inset
8390
8391 1
8392 \end_layout
8393
8394 \end_inset
8395
8396 」を持つ段落群を
8397 \begin_inset Flex Code
8398 status collapsed
8399
8400 \begin_layout Plain Layout
8401 TitleLatexName
8402 \end_layout
8403
8404 \end_inset
8405
8406 で指定した環境でくるむ場合に対応します。
8407 \end_layout
8408
8409 \begin_layout Description
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 TocDepth
8415 \end_layout
8416
8417 \end_inset
8418
8419  [
8420 \begin_inset Flex Code
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 int=3
8425 \end_layout
8426
8427 \end_inset
8428
8429 ] どの節区切りまで目次に取り込むかを指定します。LaTeXの
8430 \begin_inset Flex Code
8431 status collapsed
8432
8433 \begin_layout Plain Layout
8434 tocdepth
8435 \end_layout
8436
8437 \end_inset
8438
8439 カウンタに対応します。
8440 \end_layout
8441
8442 \begin_layout Subsection
8443 \begin_inset Flex Code
8444 status collapsed
8445
8446 \begin_layout Plain Layout
8447 ClassOptions
8448 \end_layout
8449
8450 \end_inset
8451
8452
8453 \begin_inset CommandInset label
8454 LatexCommand label
8455 name "sub:ClassOptions"
8456
8457 \end_inset
8458
8459
8460 \end_layout
8461
8462 \begin_layout Standard
8463 \begin_inset Flex Code
8464 status collapsed
8465
8466 \begin_layout Plain Layout
8467 ClassOptions
8468 \end_layout
8469
8470 \end_inset
8471
8472 部は、以下の項目を取り得ます。
8473 \end_layout
8474
8475 \begin_layout Description
8476 \begin_inset Flex Code
8477 status collapsed
8478
8479 \begin_layout Plain Layout
8480 FontSize
8481 \end_layout
8482
8483 \end_inset
8484
8485  [
8486 \begin_inset Flex Code
8487 status collapsed
8488
8489 \begin_layout Plain Layout
8490 文字列="10|11|12"
8491 \end_layout
8492
8493 \end_inset
8494
8495 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
8496 \begin_inset Flex Code
8497 status collapsed
8498
8499 \begin_layout Plain Layout
8500 |
8501 \end_layout
8502
8503 \end_inset
8504
8505 」で区切ります。
8506 \end_layout
8507
8508 \begin_layout Description
8509 \begin_inset Flex Code
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513 Header
8514 \end_layout
8515
8516 \end_inset
8517
8518  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
8519 \begin_inset Quotes eld
8520 \end_inset
8521
8522 -//OASIS//DTD DocBook V4.2//EN
8523 \begin_inset Quotes erd
8524 \end_inset
8525
8526
8527 \end_layout
8528
8529 \begin_layout Description
8530 \begin_inset Flex Code
8531 status collapsed
8532
8533 \begin_layout Plain Layout
8534 Other
8535 \end_layout
8536
8537 \end_inset
8538
8539  [
8540 \begin_inset Flex Code
8541 status collapsed
8542
8543 \begin_layout Plain Layout
8544 文字列=""
8545 \end_layout
8546
8547 \end_inset
8548
8549
8550 \begin_inset Flex Code
8551 status collapsed
8552
8553 \begin_layout Plain Layout
8554
8555 \backslash
8556 documentclass
8557 \end_layout
8558
8559 \end_inset
8560
8561 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
8562 \end_layout
8563
8564 \begin_layout Description
8565 \begin_inset Flex Code
8566 status collapsed
8567
8568 \begin_layout Plain Layout
8569 PageStyle
8570 \end_layout
8571
8572 \end_inset
8573
8574  [
8575 \begin_inset Flex Code
8576 status collapsed
8577
8578 \begin_layout Plain Layout
8579 文字列="empty|plain|headings|fancy"
8580 \end_layout
8581
8582 \end_inset
8583
8584 ] 使用できるページ様式の一覧です。「
8585 \begin_inset Flex Code
8586 status collapsed
8587
8588 \begin_layout Plain Layout
8589 |
8590 \end_layout
8591
8592 \end_inset
8593
8594 」で区切ります。
8595 \end_layout
8596
8597 \begin_layout Standard
8598 \begin_inset Flex Code
8599 status collapsed
8600
8601 \begin_layout Plain Layout
8602 ClassOptions
8603 \end_layout
8604
8605 \end_inset
8606
8607 部は「
8608 \begin_inset Flex Code
8609 status collapsed
8610
8611 \begin_layout Plain Layout
8612 End
8613 \end_layout
8614
8615 \end_inset
8616
8617 」で閉じる必要があります。
8618 \end_layout
8619
8620 \begin_layout Subsection
8621 段落様式
8622 \begin_inset CommandInset label
8623 LatexCommand label
8624 name "sub:段落様式"
8625
8626 \end_inset
8627
8628
8629 \end_layout
8630
8631 \begin_layout Standard
8632 段落様式の記述は、以下のようになります
8633 \begin_inset Foot
8634 status collapsed
8635
8636 \begin_layout Plain Layout
8637 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
8638 \end_layout
8639
8640 \end_inset
8641
8642
8643 \end_layout
8644
8645 \begin_layout LyX-Code
8646 Style 
8647 \family roman
8648 \emph on
8649 名称
8650 \end_layout
8651
8652 \begin_layout LyX-Code
8653  ...
8654 \end_layout
8655
8656 \begin_layout LyX-Code
8657 End
8658 \end_layout
8659
8660 \begin_layout Standard
8661 ここでは、以下のコマンドを使用することができます。
8662 \end_layout
8663
8664 \begin_layout Description
8665 \begin_inset Flex Code
8666 status collapsed
8667
8668 \begin_layout Plain Layout
8669 Align
8670 \end_layout
8671
8672 \end_inset
8673
8674  [
8675 \begin_inset Flex Code
8676 status collapsed
8677
8678 \begin_layout Plain Layout
8679
8680 \emph on
8681 block
8682 \emph default
8683 , left, right, center
8684 \end_layout
8685
8686 \end_inset
8687
8688 ] 段落の揃え。
8689 \end_layout
8690
8691 \begin_layout Description
8692 \begin_inset Flex Code
8693 status collapsed
8694
8695 \begin_layout Plain Layout
8696 AlignPossible
8697 \end_layout
8698
8699 \end_inset
8700
8701  [
8702 \begin_inset Flex Code
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706
8707 \emph on
8708 block
8709 \emph default
8710 , left, right, center
8711 \end_layout
8712
8713 \end_inset
8714
8715 ] 使用できる揃えのコンマ区切りリスト(LaTeXスタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃え
8716 にすることはできません)。
8717 \end_layout
8718
8719 \begin_layout Description
8720 \begin_inset Flex Code
8721 status collapsed
8722
8723 \begin_layout Plain Layout
8724 BabelPreamble
8725 \end_layout
8726
8727 \end_inset
8728
8729  これは、前に現れたこの様式の
8730 \begin_inset Flex Code
8731 status collapsed
8732
8733 \begin_layout Plain Layout
8734 BabelPreamble
8735 \end_layout
8736
8737 \end_inset
8738
8739 宣言をすべて、完全に上書きしますので注意してください。「
8740 \begin_inset Flex Code
8741 status collapsed
8742
8743 \begin_layout Plain Layout
8744 EndBabelPreamble
8745 \end_layout
8746
8747 \end_inset
8748
8749 」で閉じる必要があります。これの利用法についての詳細は、第
8750 \begin_inset CommandInset ref
8751 LatexCommand ref
8752 reference "sub:段落様式の国際化"
8753
8754 \end_inset
8755
8756 節をご覧ください。
8757 \end_layout
8758
8759 \begin_layout Description
8760 \begin_inset Flex Code
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764 BottomSep
8765 \end_layout
8766
8767 \end_inset
8768
8769  [
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 浮動小数点型=0
8775 \end_layout
8776
8777 \end_inset
8778
8779 ]
8780 \begin_inset Foot
8781 status collapsed
8782
8783 \begin_layout Plain Layout
8784 ここで「浮動小数点型」とは1.5のような実数を指します。
8785 \end_layout
8786
8787 \end_inset
8788
8789  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
8790 す。
8791 \end_layout
8792
8793 \begin_layout Description
8794 \begin_inset Flex Code
8795 status collapsed
8796
8797 \begin_layout Plain Layout
8798 Category
8799 \end_layout
8800
8801 \end_inset
8802
8803  [
8804 \begin_inset Flex Code
8805 status collapsed
8806
8807 \begin_layout Plain Layout
8808 文字列
8809 \end_layout
8810
8811 \end_inset
8812
8813 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
8814 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
8815 \end_layout
8816
8817 \begin_layout Description
8818 \begin_inset Flex Code
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 CommandDepth
8823 \end_layout
8824
8825 \end_inset
8826
8827  XMLコマンドの深度。XML型の書式でのみ使用されます。
8828 \end_layout
8829
8830 \begin_layout Description
8831 \begin_inset Flex Code
8832 status collapsed
8833
8834 \begin_layout Plain Layout
8835 CopyStyle
8836 \end_layout
8837
8838 \end_inset
8839
8840  [
8841 \begin_inset Flex Code
8842 status collapsed
8843
8844 \begin_layout Plain Layout
8845 文字列
8846 \end_layout
8847
8848 \end_inset
8849
8850 ] 既存の様式から、すべての機能を現在の様式にコピーします。
8851 \end_layout
8852
8853 \begin_layout Description
8854 \begin_inset Flex Code
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858 DependsOn
8859 \end_layout
8860
8861 \end_inset
8862
8863  
8864 \lang english
8865 [
8866 \begin_inset Flex Code
8867 status collapsed
8868
8869 \begin_layout Plain Layout
8870
8871 \lang english
8872 <name>
8873 \end_layout
8874
8875 \end_inset
8876
8877
8878 \lang japanese
8879 この
8880 \emph on
8881 前に
8882 \emph default
8883 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
8884 \begin_inset Foot
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。LyXの特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可
8889 能性があります。
8890 \end_layout
8891
8892 \end_inset
8893
8894
8895 \end_layout
8896
8897 \begin_layout Description
8898 \begin_inset Flex Code
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902 EndLabeltype
8903 \end_layout
8904
8905 \end_inset
8906
8907  [
8908 \begin_inset Flex Code
8909 status collapsed
8910
8911 \begin_layout Plain Layout
8912
8913 \emph on
8914 No_Label
8915 \emph default
8916 , Box, Filled_Box, Static
8917 \end_layout
8918
8919 \end_inset
8920
8921 ] 段落の最後(あるいは
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 LatexType
8927 \end_layout
8928
8929 \end_inset
8930
8931 が、
8932 \begin_inset Flex Code
8933 status collapsed
8934
8935 \begin_layout Plain Layout
8936 Environment
8937 \end_layout
8938
8939 \end_inset
8940
8941
8942 \begin_inset Flex Code
8943 status collapsed
8944
8945 \begin_layout Plain Layout
8946 Item_Environment
8947 \end_layout
8948
8949 \end_inset
8950
8951
8952 \begin_inset Flex Code
8953 status collapsed
8954
8955 \begin_layout Plain Layout
8956 List_Environment
8957 \end_layout
8958
8959 \end_inset
8960
8961 のいずれかの場合は、段落群の最後)に置くラベル。
8962 \begin_inset Flex Code
8963 status collapsed
8964
8965 \begin_layout Plain Layout
8966 No_Label
8967 \end_layout
8968
8969 \end_inset
8970
8971 の場合は「何もない」ことを指し、
8972 \begin_inset Flex Code
8973 status collapsed
8974
8975 \begin_layout Plain Layout
8976 Box
8977 \end_layout
8978
8979 \end_inset
8980
8981 (あるいは
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 Filled_Box
8987 \end_layout
8988
8989 \end_inset
8990
8991 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
8992 \begin_inset Flex Code
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996 Static
8997 \end_layout
8998
8999 \end_inset
9000
9001 は明示したテキスト文字列を指します。
9002 \end_layout
9003
9004 \begin_layout Description
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009 EndLabelString
9010 \end_layout
9011
9012 \end_inset
9013
9014  [
9015 \begin_inset Flex Code
9016 status collapsed
9017
9018 \begin_layout Plain Layout
9019 文字列=""
9020 \end_layout
9021
9022 \end_inset
9023
9024
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 Static
9030 \end_layout
9031
9032 \end_inset
9033
9034
9035 \begin_inset Flex Code
9036 status collapsed
9037
9038 \begin_layout Plain Layout
9039 EndLabelType
9040 \end_layout
9041
9042 \end_inset
9043
9044 のラベルで用いる文字列。
9045 \end_layout
9046
9047 \begin_layout Description
9048 \begin_inset Flex Code
9049 status collapsed
9050
9051 \begin_layout Plain Layout
9052 Font
9053 \end_layout
9054
9055 \end_inset
9056
9057  本文テキストとラベルの
9058 \emph on
9059 両方で
9060 \emph default
9061 用いられるフォント。第
9062 \begin_inset CommandInset ref
9063 LatexCommand ref
9064 reference "sub:フォント指定"
9065
9066 \end_inset
9067
9068 節を参照。このフォントを定義すると、自動的に
9069 \begin_inset Flex Code
9070 status collapsed
9071
9072 \begin_layout Plain Layout
9073 LabelFont
9074 \end_layout
9075
9076 \end_inset
9077
9078 も同じ値で定義されることに注意してください。したがって、
9079 \begin_inset Flex Code
9080 status collapsed
9081
9082 \begin_layout Plain Layout
9083 LabelFont
9084 \end_layout
9085
9086 \end_inset
9087
9088 も同時に定義したい場合には、これを先に定義してください。
9089 \end_layout
9090
9091 \begin_layout Description
9092 \begin_inset Flex Code
9093 status collapsed
9094
9095 \begin_layout Plain Layout
9096 FreeSpacing
9097 \end_layout
9098
9099 \end_inset
9100
9101  [
9102 \emph on
9103
9104 \begin_inset Flex Code
9105 status collapsed
9106
9107 \begin_layout Plain Layout
9108 0
9109 \end_layout
9110
9111 \end_inset
9112
9113
9114 \emph default
9115 ,
9116 \begin_inset space \thinspace{}
9117 \end_inset
9118
9119
9120 \begin_inset Flex Code
9121 status collapsed
9122
9123 \begin_layout Plain Layout
9124 1
9125 \end_layout
9126
9127 \end_inset
9128
9129 ] LyXは、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体
9130 はとても素晴らしいことですが、たとえばプログラムコードや生のLaTeXコードを入力しようとするときなどに、煩わしくなることがあります。このことから、
9131 \begin_inset Flex Code
9132 status collapsed
9133
9134 \begin_layout Plain Layout
9135 FreeSpacing
9136 \end_layout
9137
9138 \end_inset
9139
9140 を有効にすることが認められています。LyXは、LaTeXモード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
9141 \end_layout
9142
9143 \begin_layout Description
9144 \begin_inset Flex Code
9145 status collapsed
9146
9147 \begin_layout Plain Layout
9148 HTML*
9149 \end_layout
9150
9151 \end_inset
9152
9153  これらのタグは、XHTML出力で使用されます。第
9154 \begin_inset CommandInset ref
9155 LatexCommand ref
9156 reference "sub:段落様式-XHTML"
9157
9158 \end_inset
9159
9160 節をご覧ください。
9161 \end_layout
9162
9163 \begin_layout Description
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 InnerTag
9169 \end_layout
9170
9171 \end_inset
9172
9173  [[FIXME]] (XML型書式でのみ使用されます。)
9174 \end_layout
9175
9176 \begin_layout Description
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 InPreamble
9182 \end_layout
9183
9184 \end_inset
9185
9186  [
9187 \emph on
9188
9189 \begin_inset Flex Code
9190 status collapsed
9191
9192 \begin_layout Plain Layout
9193 0
9194 \end_layout
9195
9196 \end_inset
9197
9198
9199 \emph default
9200 ,
9201 \begin_inset space \thinspace{}
9202 \end_inset
9203
9204
9205 \begin_inset Flex Code
9206 status collapsed
9207
9208 \begin_layout Plain Layout
9209 1
9210 \end_layout
9211
9212 \end_inset
9213
9214
9215 \begin_inset Flex Code
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219 1
9220 \end_layout
9221
9222 \end_inset
9223
9224 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
9225 です。これは、
9226 \begin_inset Flex Code
9227 status collapsed
9228
9229 \begin_layout Plain Layout
9230 LatexType
9231 \end_layout
9232
9233 \end_inset
9234
9235
9236 \begin_inset Flex Code
9237 status collapsed
9238
9239 \begin_layout Plain Layout
9240 Command
9241 \end_layout
9242
9243 \end_inset
9244
9245 または
9246 \begin_inset Flex Code
9247 status collapsed
9248
9249 \begin_layout Plain Layout
9250 Paragraph
9251 \end_layout
9252
9253 \end_inset
9254
9255 の様式に対してのみ動作します。
9256 \end_layout
9257
9258 \begin_layout Description
9259 \begin_inset Flex Code
9260 status collapsed
9261
9262 \begin_layout Plain Layout
9263 InTitle
9264 \end_layout
9265
9266 \end_inset
9267
9268  [
9269 \emph on
9270
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 0
9276 \end_layout
9277
9278 \end_inset
9279
9280
9281 \emph default
9282 ,
9283 \begin_inset space \thinspace{}
9284 \end_inset
9285
9286
9287 \begin_inset Flex Code
9288 status collapsed
9289
9290 \begin_layout Plain Layout
9291 1
9292 \end_layout
9293
9294 \end_inset
9295
9296
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301 1
9302 \end_layout
9303
9304 \end_inset
9305
9306 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311 TitleLatexType
9312 \end_layout
9313
9314 \end_inset
9315
9316
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 TitleLatexName
9322 \end_layout
9323
9324 \end_inset
9325
9326 も参照)。
9327 \end_layout
9328
9329 \begin_layout Description
9330 \begin_inset Flex Code
9331 status collapsed
9332
9333 \begin_layout Plain Layout
9334 ItemSep
9335 \end_layout
9336
9337 \end_inset
9338
9339  [
9340 \begin_inset Flex Code
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344 浮動小数点型=0
9345 \end_layout
9346
9347 \end_inset
9348
9349 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
9350 \begin_inset Flex Code
9351 status collapsed
9352
9353 \begin_layout Plain Layout
9354 ParSep
9355 \end_layout
9356
9357 \end_inset
9358
9359 だけ分離されます。しかし、その環境の項目全体は、さらにこの
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 ItemSep
9365 \end_layout
9366
9367 \end_inset
9368
9369 分だけ離されます。これは
9370 \emph on
9371 乗数
9372 \emph default
9373 であることに注意してください。
9374 \end_layout
9375
9376 \begin_layout Description
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 ItemTag
9382 \end_layout
9383
9384 \end_inset
9385
9386  [[FIXME]] (XML型書式でのみ使用されます。)
9387 \end_layout
9388
9389 \begin_layout Description
9390 \begin_inset Flex Code
9391 status collapsed
9392
9393 \begin_layout Plain Layout
9394 KeepEmpty
9395 \end_layout
9396
9397 \end_inset
9398
9399  [
9400 \emph on
9401
9402 \begin_inset Flex Code
9403 status collapsed
9404
9405 \begin_layout Plain Layout
9406 0
9407 \end_layout
9408
9409 \end_inset
9410
9411
9412 \emph default
9413 ,
9414 \begin_inset space \thinspace{}
9415 \end_inset
9416
9417
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 1
9423 \end_layout
9424
9425 \end_inset
9426
9427 ] 段落を空のままにすると、LaTeX出力が空になってしまうので、通常、LyXは段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場
9428 合が存在します。たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを
9429 実際には文章を含まないある種の改行として使用することもあります。
9430 \end_layout
9431
9432 \begin_layout Description
9433 \begin_inset Flex Code
9434 status collapsed
9435
9436 \begin_layout Plain Layout
9437 LabelBottomsep
9438 \end_layout
9439
9440 \end_inset
9441
9442  [
9443 \begin_inset Flex Code
9444 status collapsed
9445
9446 \begin_layout Plain Layout
9447 浮動小数点型=0
9448 \end_layout
9449
9450 \end_inset
9451
9452 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
9453 \begin_inset Flex Code
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 Top_Environment
9458 \end_layout
9459
9460 \end_inset
9461
9462 および
9463 \begin_inset Newline linebreak
9464 \end_inset
9465
9466
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471 Centered_Top_Environment
9472 \end_layout
9473
9474 \end_inset
9475
9476 )。
9477 \end_layout
9478
9479 \begin_layout Description
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484 LabelCounter
9485 \end_layout
9486
9487 \end_inset
9488
9489  [
9490 \begin_inset Flex Code
9491 status collapsed
9492
9493 \begin_layout Plain Layout
9494 文字列=""
9495 \end_layout
9496
9497 \end_inset
9498
9499 ] 自動連番に使われるカウンタ名(詳しくは第
9500 \begin_inset CommandInset ref
9501 LatexCommand ref
9502 reference "sub:カウンタ"
9503
9504 \end_inset
9505
9506 節参照)。
9507 \begin_inset Newline newline
9508 \end_inset
9509
9510
9511 \begin_inset Flex Code
9512 status collapsed
9513
9514 \begin_layout Plain Layout
9515 LabelType
9516 \end_layout
9517
9518 \end_inset
9519
9520
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 Counter
9526 \end_layout
9527
9528 \end_inset
9529
9530 型のときには、本項目は
9531 \emph on
9532 必須
9533 \emph default
9534 です。この場合には、この様式が出現するたびにカウンタが増えます。
9535 \begin_inset Newline newline
9536 \end_inset
9537
9538 また、
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 LabelType
9544 \end_layout
9545
9546 \end_inset
9547
9548
9549 \begin_inset Flex Code
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 Enumerate
9554 \end_layout
9555
9556 \end_inset
9557
9558 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
9559 \begin_inset Flex Code
9560 status collapsed
9561
9562 \begin_layout Plain Layout
9563 LabelCounter myenum
9564 \end_layout
9565
9566 \end_inset
9567
9568 」と宣言したものとしましょう。すると、LaTeXにおけるのと同様、実際に使われるカウンタは、
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 myenumi
9574 \end_layout
9575
9576 \end_inset
9577
9578
9579 \begin_inset Flex Code
9580 status collapsed
9581
9582 \begin_layout Plain Layout
9583 myenumii
9584 \end_layout
9585
9586 \end_inset
9587
9588
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 myenumii
9594 \end_layout
9595
9596 \end_inset
9597
9598
9599 \begin_inset Flex Code
9600 status collapsed
9601
9602 \begin_layout Plain Layout
9603 myenumiv
9604 \end_layout
9605
9606 \end_inset
9607
9608 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
9609 \begin_inset Newline newline
9610 \end_inset
9611
9612 カウンタの詳細については、第
9613 \begin_inset CommandInset ref
9614 LatexCommand ref
9615 reference "sub:カウンタ"
9616
9617 \end_inset
9618
9619 節をご覧ください。
9620 \end_layout
9621
9622 \begin_layout Description
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 LabelFont
9628 \end_layout
9629
9630 \end_inset
9631
9632  ラベルに使用されるフォント。第
9633 \begin_inset CommandInset ref
9634 LatexCommand ref
9635 reference "sub:フォント指定"
9636
9637 \end_inset
9638
9639 節を参照。
9640 \end_layout
9641
9642 \begin_layout Description
9643 \begin_inset Flex Code
9644 status collapsed
9645
9646 \begin_layout Plain Layout
9647 LabelIndent
9648 \end_layout
9649
9650 \end_inset
9651
9652  [
9653 \begin_inset Flex Code
9654 status collapsed
9655
9656 \begin_layout Plain Layout
9657 文字列=""
9658 \end_layout
9659
9660 \end_inset
9661
9662 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
9663 \end_layout
9664
9665 \begin_layout Description
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670 LabelSep
9671 \end_layout
9672
9673 \end_inset
9674
9675  [
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 文字列=""
9681 \end_layout
9682
9683 \end_inset
9684
9685
9686 \lang english
9687 Text that indicates the amount of
9688 \lang japanese
9689 ラベルと本文テキストの間の水平余白。本文テキストの上に来ないラベルにのみ使用されます。
9690 \end_layout
9691
9692 \begin_layout Description
9693 \begin_inset Flex Code
9694 status collapsed
9695
9696 \begin_layout Plain Layout
9697 LabelString
9698 \end_layout
9699
9700 \end_inset
9701
9702  [
9703 \begin_inset Flex Code
9704 status collapsed
9705
9706 \begin_layout Plain Layout
9707 文字列=""
9708 \end_layout
9709
9710 \end_inset
9711
9712
9713 \begin_inset Flex Code
9714 status collapsed
9715
9716 \begin_layout Plain Layout
9717 Static
9718 \end_layout
9719
9720 \end_inset
9721
9722 ラベル型でラベルに使用する文字列。
9723 \begin_inset Flex Code
9724 status collapsed
9725
9726 \begin_layout Plain Layout
9727 LabelCounter
9728 \end_layout
9729
9730 \end_inset
9731
9732 を設定している場合、第
9733 \begin_inset CommandInset ref
9734 LatexCommand ref
9735 reference "sub:カウンタ"
9736
9737 \end_inset
9738
9739 節に述べられている特別な整形コマンドを含めることができます。
9740 \end_layout
9741
9742 \begin_layout Description
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 LabelStringAppendix
9748 \end_layout
9749
9750 \end_inset
9751
9752  [
9753 \begin_inset Flex Code
9754 status collapsed
9755
9756 \begin_layout Plain Layout
9757 文字列=""
9758 \end_layout
9759
9760 \end_inset
9761
9762 ] これは付録の中で
9763 \begin_inset Flex Code
9764 status collapsed
9765
9766 \begin_layout Plain Layout
9767 LabelString
9768 \end_layout
9769
9770 \end_inset
9771
9772 の代わりに用いられます。各
9773 \begin_inset Flex Code
9774 status collapsed
9775
9776 \begin_layout Plain Layout
9777 LabelString
9778 \end_layout
9779
9780 \end_inset
9781
9782 ステートメントは、
9783 \begin_inset Flex Code
9784 status collapsed
9785
9786 \begin_layout Plain Layout
9787 LabelStringAppendix
9788 \end_layout
9789
9790 \end_inset
9791
9792 をもリセットすることに注意してください。
9793 \end_layout
9794
9795 \begin_layout Description
9796 \begin_inset Flex Code
9797 status collapsed
9798
9799 \begin_layout Plain Layout
9800 LabelTag
9801 \end_layout
9802
9803 \end_inset
9804
9805  [FIXME] (XML型書式でのみ使用されます。)
9806 \end_layout
9807
9808 \begin_layout Description
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 LabelType
9814 \end_layout
9815
9816 \end_inset
9817
9818  [
9819 \begin_inset Flex Code
9820 status collapsed
9821
9822 \begin_layout Plain Layout
9823
9824 \emph on
9825 No_Label
9826 \emph default
9827 , Manual, Static, Top_Environment,
9828 \begin_inset Newline newline
9829 \end_inset
9830
9831 Centered_Top_Environment, Counter, Sensitive, Enumerate,
9832 \begin_inset Newline newline
9833 \end_inset
9834
9835 Itemize, Bibliography
9836 \end_layout
9837
9838 \end_inset
9839
9840 ]
9841 \end_layout
9842
9843 \begin_deeper
9844 \begin_layout Description
9845 \begin_inset Flex Code
9846 status collapsed
9847
9848 \begin_layout Plain Layout
9849 Manual
9850 \end_layout
9851
9852 \end_inset
9853
9854  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
9855 \end_layout
9856
9857 \begin_layout Description
9858 \begin_inset Flex Code
9859 status collapsed
9860
9861 \begin_layout Plain Layout
9862 Static
9863 \end_layout
9864
9865 \end_inset
9866
9867  は、ラベルが
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872 LabelString
9873 \end_layout
9874
9875 \end_inset
9876
9877 で宣言したものであることを示します。これは「静的」であることに注意してください。
9878 \end_layout
9879
9880 \begin_layout Description
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 Top_Environment
9886 \end_layout
9887
9888 \end_inset
9889
9890
9891 \begin_inset Flex Code
9892 status collapsed
9893
9894 \begin_layout Plain Layout
9895 Centered_Top_Environment
9896 \end_layout
9897
9898 \end_inset
9899
9900  は、
9901 \begin_inset Flex Code
9902 status collapsed
9903
9904 \begin_layout Plain Layout
9905 Static
9906 \end_layout
9907
9908 \end_inset
9909
9910 の特別な場合です。ラベルは段落の上に印字されるのですが、それは単一の環境の上か、このレイアウトを持つ連続した段落群の上だけに印字されます。たとえば、
9911 \begin_inset Flex MenuItem
9912 status collapsed
9913
9914 \begin_layout Plain Layout
9915 Abstract
9916 \end_layout
9917
9918 \end_inset
9919
9920 レイアウトが使用したりします。
9921 \end_layout
9922
9923 \begin_layout Description
9924 \begin_inset Flex Code
9925 status collapsed
9926
9927 \begin_layout Plain Layout
9928 Sensitive
9929 \end_layout
9930
9931 \end_inset
9932
9933  はキャプションラベルの「図」や「表」の特別な場合です。
9934 \begin_inset Flex Code
9935 status collapsed
9936
9937 \begin_layout Plain Layout
9938 Sensitive
9939 \end_layout
9940
9941 \end_inset
9942
9943 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
9944 Type N」にハードコードされています。
9945 \end_layout
9946
9947 \begin_layout Description
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 Counter
9953 \end_layout
9954
9955 \end_inset
9956
9957  ラベル型は、自動的に連番が付されるラベルを定義します。
9958 \begin_inset Flex Code
9959 status collapsed
9960
9961 \begin_layout Plain Layout
9962 LabelString
9963 \end_layout
9964
9965 \end_inset
9966
9967 は、それが含むカウンタ参照をすべて解決するために展開されます。これは、たとえば
9968 \begin_inset Flex Code
9969 status collapsed
9970
9971 \begin_layout Plain Layout
9972 Section 
9973 \backslash
9974 thechapter.
9975 \backslash
9976 thesection
9977 \end_layout
9978
9979 \end_inset
9980
9981 のようになります。第
9982 \begin_inset CommandInset ref
9983 LatexCommand ref
9984 reference "sub:カウンタ"
9985
9986 \end_inset
9987
9988 節を参照してください。
9989 \end_layout
9990
9991 \begin_layout Description
9992 \begin_inset Flex Code
9993 status collapsed
9994
9995 \begin_layout Plain Layout
9996 Enumerate
9997 \end_layout
9998
9999 \end_inset
10000
10001  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
10002 す。
10003 \end_layout
10004
10005 \begin_layout Description
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 Itemize
10011 \end_layout
10012
10013 \end_inset
10014
10015  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
10016 \end_layout
10017
10018 \begin_layout Description
10019 \begin_inset Flex Code
10020 status collapsed
10021
10022 \begin_layout Plain Layout
10023 Bibliography
10024 \end_layout
10025
10026 \end_inset
10027
10028  は、LyXで内部的に使用され、
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 LatexType BibEnvironment
10034 \end_layout
10035
10036 \end_inset
10037
10038 とともにのみ使用されます。
10039 \end_layout
10040
10041 \end_deeper
10042 \begin_layout Description
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 LangPreamble
10048 \end_layout
10049
10050 \end_inset
10051
10052  これは、この様式で既に出現した
10053 \begin_inset Flex Code
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 LangPreamble
10058 \end_layout
10059
10060 \end_inset
10061
10062 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、第
10063 \begin_inset CommandInset ref
10064 LatexCommand ref
10065 reference "sub:段落様式の国際化"
10066
10067 \end_inset
10068
10069 節をご覧ください。
10070 \end_layout
10071
10072 \begin_layout Description
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 LatexName
10078 \end_layout
10079
10080 \end_inset
10081
10082  
10083 \lang english
10084 [
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089
10090 \lang english
10091 <name>
10092 \end_layout
10093
10094 \end_inset
10095
10096
10097 \lang japanese
10098 対応するLaTeXの名称です。環境名かコマンド名を指します。
10099 \end_layout
10100
10101 \begin_layout Description
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 LatexParam
10107 \end_layout
10108
10109 \end_inset
10110
10111  
10112 \lang english
10113 [
10114 \begin_inset Flex Code
10115 status collapsed
10116
10117 \begin_layout Plain Layout
10118
10119 \lang english
10120 <parameter>
10121 \end_layout
10122
10123 \end_inset
10124
10125 ]
10126 \lang japanese
10127  対応する
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 LatexName
10133 \end_layout
10134
10135 \end_inset
10136
10137 の非必須パラメータです。このパラメータは、LyX内部から変更することはできません。
10138 \end_layout
10139
10140 \begin_layout Description
10141 \begin_inset Flex Code
10142 status collapsed
10143
10144 \begin_layout Plain Layout
10145 LatexType
10146 \end_layout
10147
10148 \end_inset
10149
10150  [
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155
10156 \emph on
10157 Paragraph
10158 \emph default
10159 , Command, Environment, Item_Environment,
10160 \begin_inset Newline newline
10161 \end_inset
10162
10163 List_Environment, Bib_Environment
10164 \end_layout
10165
10166 \end_inset
10167
10168 ] レイアウトがどのようにLaTeXに変換されるべきかを示します
10169 \begin_inset Foot
10170 status collapsed
10171
10172 \begin_layout Plain Layout
10173 これらのルールはSGMLクラスにも適用されるので、
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 LatexType
10179 \end_layout
10180
10181 \end_inset
10182
10183 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
10184 \end_layout
10185
10186 \end_inset
10187
10188
10189 \end_layout
10190
10191 \begin_deeper
10192 \begin_layout Description
10193 \begin_inset Flex Code
10194 status collapsed
10195
10196 \begin_layout Plain Layout
10197 Paragraph
10198 \end_layout
10199
10200 \end_inset
10201
10202  は、何も特別なことは意味しません。
10203 \end_layout
10204
10205 \begin_layout Description
10206 \begin_inset Flex Code
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 Command
10211 \end_layout
10212
10213 \end_inset
10214
10215  は、
10216 \begin_inset Flex Code
10217 status collapsed
10218
10219 \begin_layout Plain Layout
10220
10221 \backslash
10222
10223 \emph on
10224 LatexName
10225 \emph default
10226 {\SpecialChar \ldots{}
10227 }
10228 \end_layout
10229
10230 \end_inset
10231
10232 を意味します。
10233 \end_layout
10234
10235 \begin_layout Description
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 Environment
10241 \end_layout
10242
10243 \end_inset
10244
10245  は、
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250
10251 \backslash
10252 begin{
10253 \emph on
10254 LatexName
10255 \emph default
10256 }\SpecialChar \ldots{}
10257
10258 \backslash
10259 end{
10260 \emph on
10261 LatexName
10262 \emph default
10263 }
10264 \end_layout
10265
10266 \end_inset
10267
10268 を意味します。
10269 \end_layout
10270
10271 \begin_layout Description
10272 \begin_inset Flex Code
10273 status collapsed
10274
10275 \begin_layout Plain Layout
10276 Item_Environment
10277 \end_layout
10278
10279 \end_inset
10280
10281  は
10282 \begin_inset Flex Code
10283 status collapsed
10284
10285 \begin_layout Plain Layout
10286 Environment
10287 \end_layout
10288
10289 \end_inset
10290
10291 と同じですが、
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296
10297 \backslash
10298 item
10299 \end_layout
10300
10301 \end_inset
10302
10303 がこの環境のすべての段落に付けられるところだけが異なっています。
10304 \end_layout
10305
10306 \begin_layout Description
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311 List_Environment
10312 \end_layout
10313
10314 \end_inset
10315
10316  は
10317 \begin_inset Flex Code
10318 status collapsed
10319
10320 \begin_layout Plain Layout
10321 Item_Environment
10322 \end_layout
10323
10324 \end_inset
10325
10326 と同じですが、
10327 \begin_inset Flex Code
10328 status collapsed
10329
10330 \begin_layout Plain Layout
10331 LabelWidthString
10332 \end_layout
10333
10334 \end_inset
10335
10336 が環境の引数として渡されるところだけが異なっています。
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 LabelWidthString
10342 \end_layout
10343
10344 \end_inset
10345
10346 は、
10347 \begin_inset Flex MenuItem
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 編集\SpecialChar \menuseparator
10352 段落設定
10353 \end_layout
10354
10355 \end_inset
10356
10357 ダイアログで定義することができます。
10358 \end_layout
10359
10360 \begin_layout Description
10361
10362 \lang english
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367
10368 \lang english
10369 Bib_Environment
10370 \end_layout
10371
10372 \end_inset
10373
10374  is like 
10375 \begin_inset Flex Code
10376 status collapsed
10377
10378 \begin_layout Plain Layout
10379
10380 \lang english
10381 Environment
10382 \end_layout
10383
10384 \end_inset
10385
10386  but adds additionally the necessary mandatory argument to the begin statement
10387  of the bibliography environment:
10388 \begin_inset Newline newline
10389 \end_inset
10390
10391
10392 \begin_inset Flex Code
10393 status collapsed
10394
10395 \begin_layout Plain Layout
10396
10397 \lang english
10398
10399 \backslash
10400 begin{thebibliography}{99}
10401 \end_layout
10402
10403 \end_inset
10404
10405  It is therefore only useful for bibliography environments.
10406 \end_layout
10407
10408 \begin_layout Standard
10409 上記最後のいくつかをまとめると、LaTeX出力は、LaTeX型に依存して
10410 \end_layout
10411
10412 \begin_layout LyX-Code
10413
10414 \backslash
10415 LatexName[LatexParam]{\SpecialChar \ldots{}
10416 }
10417 \end_layout
10418
10419 \begin_layout Standard
10420 のようになるか、
10421 \end_layout
10422
10423 \begin_layout LyX-Code
10424
10425 \backslash
10426 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
10427  
10428 \backslash
10429 end{LatexName}.
10430 \end_layout
10431
10432 \begin_layout Standard
10433 となります。
10434 \end_layout
10435
10436 \end_deeper
10437 \begin_layout Description
10438 \begin_inset Flex Code
10439 status collapsed
10440
10441 \begin_layout Plain Layout
10442 LeftMargin
10443 \end_layout
10444
10445 \end_inset
10446
10447  [
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 文字列=""
10453 \end_layout
10454
10455 \end_inset
10456
10457 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
10458 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
10459 \end_inset
10460
10461 をかけて加えられます。このパラメータは、
10462 \begin_inset Flex Code
10463 status collapsed
10464
10465 \begin_layout Plain Layout
10466 Margin
10467 \end_layout
10468
10469 \end_inset
10470
10471
10472 \begin_inset Flex Code
10473 status collapsed
10474
10475 \begin_layout Plain Layout
10476 Manual
10477 \end_layout
10478
10479 \end_inset
10480
10481 あるいは
10482 \begin_inset Flex Code
10483 status collapsed
10484
10485 \begin_layout Plain Layout
10486 Dynamic
10487 \end_layout
10488
10489 \end_inset
10490
10491 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
10492 \begin_inset Newline newline
10493 \end_inset
10494
10495 たとえば「
10496 \begin_inset Flex Code
10497 status collapsed
10498
10499 \begin_layout Plain Layout
10500 MM
10501 \end_layout
10502
10503 \end_inset
10504
10505 」と指定すると、段落を通常フォントの「
10506 \begin_inset Flex Code
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 MM
10511 \end_layout
10512
10513 \end_inset
10514
10515 」の幅だけ行頭下げを行います。文字列の前に「
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 -
10521 \end_layout
10522
10523 \end_inset
10524
10525 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
10526 \end_layout
10527
10528 \begin_layout Description
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 Margin
10534 \end_layout
10535
10536 \end_inset
10537
10538  [
10539 \begin_inset Flex Code
10540 status collapsed
10541
10542 \begin_layout Plain Layout
10543
10544 \emph on
10545 Static
10546 \emph default
10547 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10548 \end_layout
10549
10550 \end_inset
10551
10552
10553 \begin_inset Newline newline
10554 \end_inset
10555
10556 このレイアウトの左余白の種類です。
10557 \end_layout
10558
10559 \begin_deeper
10560 \begin_layout Description
10561 \begin_inset Flex Code
10562 status collapsed
10563
10564 \begin_layout Plain Layout
10565 Static
10566 \end_layout
10567
10568 \end_inset
10569
10570  は固定余白を示します。
10571 \end_layout
10572
10573 \begin_layout Description
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 Manual
10579 \end_layout
10580
10581 \end_inset
10582
10583  は、左余白が
10584 \begin_inset Flex MenuItem
10585 status collapsed
10586
10587 \begin_layout Plain Layout
10588 編集\SpecialChar \menuseparator
10589 段落設定
10590 \end_layout
10591
10592 \end_inset
10593
10594 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
10595 \end_layout
10596
10597 \begin_layout Description
10598 \begin_inset Flex Code
10599 status collapsed
10600
10601 \begin_layout Plain Layout
10602 Dynamic
10603 \end_layout
10604
10605 \end_inset
10606
10607  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
10608  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
10609 \end_layout
10610
10611 \begin_layout Description
10612 \begin_inset Flex Code
10613 status collapsed
10614
10615 \begin_layout Plain Layout
10616 First_Dynamic
10617 \end_layout
10618
10619 \end_inset
10620
10621  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
10622 \end_layout
10623
10624 \begin_layout Description
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629 Right_Address_Box
10630 \end_layout
10631
10632 \end_inset
10633
10634  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
10635 \end_layout
10636
10637 \end_deeper
10638 \begin_layout Description
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 NeedProtect
10644 \end_layout
10645
10646 \end_inset
10647
10648  [
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653
10654 \emph on
10655 0
10656 \end_layout
10657
10658 \end_inset
10659
10660 ,
10661 \begin_inset space \thinspace{}
10662 \end_inset
10663
10664
10665 \begin_inset Flex Code
10666 status collapsed
10667
10668 \begin_layout Plain Layout
10669 1
10670 \end_layout
10671
10672 \end_inset
10673
10674 ] このレイアウト中の脆弱なコマンドが
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679
10680 \backslash
10681 protect
10682 \end_layout
10683
10684 \end_inset
10685
10686 されるべきか否か(註:これはこのコマンド自体が
10687 \begin_inset Flex Code
10688 status collapsed
10689
10690 \begin_layout Plain Layout
10691
10692 \backslash
10693 protect
10694 \end_layout
10695
10696 \end_inset
10697
10698 されるべきかでは
10699 \emph on
10700 ありません
10701 \emph default
10702 )。
10703 \end_layout
10704
10705 \begin_layout Description
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 Newline
10711 \end_layout
10712
10713 \end_inset
10714
10715  [
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 0
10721 \end_layout
10722
10723 \end_inset
10724
10725 ,
10726 \begin_inset space \thinspace{}
10727 \end_inset
10728
10729
10730 \begin_inset Flex Code
10731 status collapsed
10732
10733 \begin_layout Plain Layout
10734
10735 \emph on
10736 1
10737 \end_layout
10738
10739 \end_inset
10740
10741 ] 新規行をLaTeXの新規行(
10742 \begin_inset Flex Code
10743 status collapsed
10744
10745 \begin_layout Plain Layout
10746
10747 \backslash
10748
10749 \backslash
10750
10751 \end_layout
10752
10753 \end_inset
10754
10755 )に変換するか否か。LyX中でLaTeX編集をやりやすくするために、変換は無効にすることができます。
10756 \end_layout
10757
10758 \begin_layout Description
10759 \begin_inset Flex Code
10760 status collapsed
10761
10762 \begin_layout Plain Layout
10763 NextNoIndent
10764 \end_layout
10765
10766 \end_inset
10767
10768  [
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773
10774 \emph on
10775 0
10776 \end_layout
10777
10778 \end_inset
10779
10780 ,
10781 \begin_inset space \thinspace{}
10782 \end_inset
10783
10784
10785 \begin_inset Flex Code
10786 status collapsed
10787
10788 \begin_layout Plain Layout
10789 1
10790 \end_layout
10791
10792 \end_inset
10793
10794 ] 次の段落に最初の行の行頭下げを許すか否か。
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 1
10800 \end_layout
10801
10802 \end_inset
10803
10804 は許可しないことを意味し、
10805 \begin_inset Flex Code
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 0
10810 \end_layout
10811
10812 \end_inset
10813
10814 は望むならば行頭下げできることを意味します。
10815 \end_layout
10816
10817 \begin_layout Description
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 ObsoletedBy
10823 \end_layout
10824
10825 \end_inset
10826
10827  
10828 \lang english
10829 [
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834
10835 \lang english
10836 <name>
10837 \end_layout
10838
10839 \end_inset
10840
10841 ]
10842 \lang japanese
10843  このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
10844 \end_layout
10845
10846 \begin_layout Description
10847 \begin_inset Flex Code
10848 status collapsed
10849
10850 \begin_layout Plain Layout
10851 OptionalArgs
10852 \end_layout
10853
10854 \end_inset
10855
10856  [
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 整数型=0
10862 \end_layout
10863
10864 \end_inset
10865
10866 ] このレイアウトに使用することのできる非必須引数の数。節見出しのようなものに有用であり、LaTeXでのみ意味を持ちます。出力時には、非必須引数は、すべての必須
10867 引数の前に来ることに注意してください(以下参照)。つまり、
10868 \end_layout
10869
10870 \begin_deeper
10871 \begin_layout LyX-Code
10872
10873 \backslash
10874 mycmd[非必須引数1]{必須引数1}{段落の内容}
10875 \end_layout
10876
10877 \begin_layout Standard
10878 のようなコマンドは生成できますが、
10879 \end_layout
10880
10881 \begin_layout LyX-Code
10882
10883 \backslash
10884 mycmd[非必須引数1]{必須引数1}[非必須引数2]{段落の内容}
10885 \end_layout
10886
10887 \begin_layout Standard
10888 のようなコマンドは、TeXコード(これを使えば何でもできます)を使用することなしには、生成することができません。
10889 \end_layout
10890
10891 \end_deeper
10892 \begin_layout Description
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 ParbreakIsNewline
10898 \end_layout
10899
10900 \end_inset
10901
10902  [
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907
10908 \emph on
10909 0
10910 \end_layout
10911
10912 \end_inset
10913
10914 ,
10915 \begin_inset space \thinspace{}
10916 \end_inset
10917
10918
10919 \begin_inset Flex Code
10920 status collapsed
10921
10922 \begin_layout Plain Layout
10923 1
10924 \end_layout
10925
10926 \end_inset
10927
10928 ] LaTeX出力中で、段落を空行ではなく、改行で区切るよう指定します。
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 PassThru 1
10934 \end_layout
10935
10936 \end_inset
10937
10938 と併用すれば、(TeXコードを使用したときのように)テキストエディタをエミュレートすることができます。
10939 \end_layout
10940
10941 \begin_layout Description
10942 \begin_inset Flex Code
10943 status collapsed
10944
10945 \begin_layout Plain Layout
10946 ParIndent
10947 \end_layout
10948
10949 \end_inset
10950
10951  [
10952 \begin_inset Flex Code
10953 status collapsed
10954
10955 \begin_layout Plain Layout
10956 文字列=""
10957 \end_layout
10958
10959 \end_inset
10960
10961 ] 段落の最初の行の行頭下げ。レイアウトによっては
10962 \begin_inset Flex Code
10963 status collapsed
10964
10965 \begin_layout Plain Layout
10966 Parindent
10967 \end_layout
10968
10969 \end_inset
10970
10971 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
10972 \begin_inset Flex Code
10973 status collapsed
10974
10975 \begin_layout Plain Layout
10976 NextNoIndent
10977 \end_layout
10978
10979 \end_inset
10980
10981 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
10982 \begin_inset Flex Code
10983 status collapsed
10984
10985 \begin_layout Plain Layout
10986 Parindent
10987 \end_layout
10988
10989 \end_inset
10990
10991 ではなく、この環境の
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 Parindent
10997 \end_layout
10998
10999 \end_inset
11000
11001 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
11002 \end_layout
11003
11004 \begin_layout Description
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 ParSep
11010 \end_layout
11011
11012 \end_inset
11013
11014  [
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 浮動小数点型=0
11020 \end_layout
11021
11022 \end_inset
11023
11024 ] このレイアウトの2段落間の垂直余白。
11025 \end_layout
11026
11027 \begin_layout Description
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 Parskip
11033 \end_layout
11034
11035 \end_inset
11036
11037  [
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 浮動小数点型=0
11043 \end_layout
11044
11045 \end_inset
11046
11047 ] LyXでは、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ
11048 」を選択した際には、LaTeX型「段落」レイアウトの
11049 \begin_inset Flex Code
11050 status collapsed
11051
11052 \begin_layout Plain Layout
11053 ParIndent
11054 \end_layout
11055
11056 \end_inset
11057
11058 は無視され、すべての段落はこの
11059 \begin_inset Flex Code
11060 status collapsed
11061
11062 \begin_layout Plain Layout
11063 Parskip
11064 \end_layout
11065
11066 \end_inset
11067
11068 引数分だけ引き離されます。垂直余白は、
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073 DefaultHeight
11074 \end_layout
11075
11076 \end_inset
11077
11078 を標準フォントでの1行の高さとすると、
11079 \begin_inset Flex Code
11080 status collapsed
11081
11082 \begin_layout Plain Layout
11083 Parskipの値
11084 \end_layout
11085
11086 \end_inset
11087
11088
11089 \begin_inset Formula $\times$
11090 \end_inset
11091
11092
11093 \begin_inset Flex Code
11094 status collapsed
11095
11096 \begin_layout Plain Layout
11097 DefaultHeight
11098 \end_layout
11099
11100 \end_inset
11101
11102 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
11103 \end_layout
11104
11105 \begin_layout Description
11106 \begin_inset Flex Code
11107 status collapsed
11108
11109 \begin_layout Plain Layout
11110 PassThru
11111 \end_layout
11112
11113 \end_inset
11114
11115  [
11116 \emph on
11117
11118 \begin_inset Flex Code
11119 status collapsed
11120
11121 \begin_layout Plain Layout
11122 0
11123 \end_layout
11124
11125 \end_inset
11126
11127
11128 \emph default
11129 ,
11130 \begin_inset space \thinspace{}
11131 \end_inset
11132
11133
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138 1
11139 \end_layout
11140
11141 \end_inset
11142
11143 ] この段落の内容が、LaTeXが必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
11144 \end_layout
11145
11146 \begin_layout Description
11147 \begin_inset Flex Code
11148 status collapsed
11149
11150 \begin_layout Plain Layout
11151 Preamble
11152 \end_layout
11153
11154 \end_inset
11155
11156  この様式が使用されたときに、LaTeXプリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用
11157 します。「
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 EndPreamble
11163 \end_layout
11164
11165 \end_inset
11166
11167 」で閉じる必要があります。
11168 \end_layout
11169
11170 \begin_layout Description
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 RefPrefix
11176 \end_layout
11177
11178 \end_inset
11179
11180  [
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185 文字列
11186 \end_layout
11187
11188 \end_inset
11189
11190 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
11191 \end_layout
11192
11193 \begin_layout Description
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198 RequiredArgs
11199 \end_layout
11200
11201 \end_inset
11202
11203  [
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208 整数型=0
11209 \end_layout
11210
11211 \end_inset
11212
11213 ] このレイアウトに対応するLaTeXコマンドやLaTeX環境が予期している、必須引数の数。コマンドの場合には、段落の内容自体に関連付けられている引数
11214 \emph on
11215 以外に
11216 \emph default
11217 、必要な引数の数のことです。これらの引数は、実際には渡されなくても構いません。必要な場合は、LyXが空の引数を生成します。非必須引数は、必須引数の前に出力される
11218 ことに注意してください。詳細については、上記
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 OptionalArgs
11224 \end_layout
11225
11226 \end_inset
11227
11228 タグにおける議論をご覧ください。
11229 \end_layout
11230
11231 \begin_layout Description
11232 \begin_inset Flex Code
11233 status collapsed
11234
11235 \begin_layout Plain Layout
11236 Requires
11237 \end_layout
11238
11239 \end_inset
11240
11241  [
11242 \begin_inset Flex Code
11243 status collapsed
11244
11245 \begin_layout Plain Layout
11246 文字列
11247 \end_layout
11248
11249 \end_inset
11250
11251
11252 \lang english
11253 Whether the style requires the feature 
11254 \begin_inset Flex Code
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258
11259 \lang english
11260 string
11261 \end_layout
11262
11263 \end_inset
11264
11265 .
11266  See the description of 
11267 \begin_inset Flex Code
11268 status collapsed
11269
11270 \begin_layout Plain Layout
11271
11272 \lang english
11273 Provides
11274 \end_layout
11275
11276 \end_inset
11277
11278  above (sec
11279 \lang japanese
11280 .
11281 \begin_inset space ~
11282 \end_inset
11283
11284
11285 \begin_inset CommandInset ref
11286 LatexCommand ref
11287 reference "sub:汎用テキストクラスパラメータ"
11288
11289 \end_inset
11290
11291
11292 \lang english
11293 ) for information on `features'
11294 \lang japanese
11295
11296 \end_layout
11297
11298 \begin_layout Description
11299 \begin_inset Flex Code
11300 status collapsed
11301
11302 \begin_layout Plain Layout
11303 RightMargin
11304 \end_layout
11305
11306 \end_inset
11307
11308  [
11309 \begin_inset Flex Code
11310 status collapsed
11311
11312 \begin_layout Plain Layout
11313 文字列=""
11314 \end_layout
11315
11316 \end_inset
11317
11318
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 LeftMargin
11324 \end_layout
11325
11326 \end_inset
11327
11328 に同様。
11329 \end_layout
11330
11331 \begin_layout Description
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336 Spacing
11337 \end_layout
11338
11339 \end_inset
11340
11341  [
11342 \begin_inset Flex Code
11343 status collapsed
11344
11345 \begin_layout Plain Layout
11346
11347 \emph on
11348 single
11349 \end_layout
11350
11351 \end_inset
11352
11353
11354 \begin_inset Flex Code
11355 status collapsed
11356
11357 \begin_layout Plain Layout
11358 onehalf
11359 \end_layout
11360
11361 \end_inset
11362
11363
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 double
11369 \end_layout
11370
11371 \end_inset
11372
11373
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 other
11379 \begin_inset space ~
11380 \end_inset
11381
11382 <
11383 \emph on
11384
11385 \emph default
11386 >
11387 \end_layout
11388
11389 \end_inset
11390
11391 ]
11392 \lang english
11393  
11394 \lang japanese
11395 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
11396 \begin_inset Flex Code
11397 status collapsed
11398
11399 \begin_layout Plain Layout
11400 single
11401 \end_layout
11402
11403 \end_inset
11404
11405
11406 \begin_inset Flex Code
11407 status collapsed
11408
11409 \begin_layout Plain Layout
11410 onehalf
11411 \end_layout
11412
11413 \end_inset
11414
11415
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 double
11421 \end_layout
11422
11423 \end_inset
11424
11425 は、それぞれ乗数1・1.25・1.667に対応します。引数
11426 \begin_inset Flex Code
11427 status collapsed
11428
11429 \begin_layout Plain Layout
11430 other
11431 \end_layout
11432
11433 \end_inset
11434
11435 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
11436 \begin_inset Flex Code
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 Spacing
11441 \end_layout
11442
11443 \end_inset
11444
11445 は、
11446 \lang english
11447 LaTeX package
11448 \lang japanese
11449
11450 \begin_inset Flex Code
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 setspace
11455 \end_layout
11456
11457 \end_inset
11458
11459 パッケージを使用した、限定的なLaTeXコードを生成することを意味することにご注意ください。
11460 \end_layout
11461
11462 \begin_layout Description
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 Spellcheck
11468 \end_layout
11469
11470 \end_inset
11471
11472  [
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477 0
11478 \end_layout
11479
11480 \end_inset
11481
11482 ,
11483 \begin_inset space \thinspace{}
11484 \end_inset
11485
11486
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491 1
11492 \end_layout
11493
11494 \end_inset
11495
11496 ] この様式の段落をスペルチェックするか否か。既定値は真です。
11497 \end_layout
11498
11499 \begin_layout Description
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 TextFont
11505 \end_layout
11506
11507 \end_inset
11508
11509  本文に使うフォント。第
11510 \begin_inset CommandInset ref
11511 LatexCommand ref
11512 reference "sub:フォント指定"
11513
11514 \end_inset
11515
11516 節参照。
11517 \end_layout
11518
11519 \begin_layout Description
11520 \begin_inset Flex Code
11521 status collapsed
11522
11523 \begin_layout Plain Layout
11524 TocLevel
11525 \end_layout
11526
11527 \end_inset
11528
11529  [
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534 整数型=3
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 TopSep
11548 \end_layout
11549
11550 \end_inset
11551
11552  [
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 浮動小数点型=0
11558 \end_layout
11559
11560 \end_inset
11561
11562 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
11563 の最大値がとられます。
11564 \end_layout
11565
11566 \begin_layout Subsection
11567 \begin_inset CommandInset label
11568 LatexCommand label
11569 name "sub:段落様式の国際化"
11570
11571 \end_inset
11572
11573 段落様式の国際化
11574 \end_layout
11575
11576 \begin_layout Standard
11577 LyXは、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用さ
11578 れませんでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
11579 \lang french
11580 Théorème
11581 \lang japanese
11582  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
11583 \end_layout
11584
11585 \begin_layout Standard
11586 もし
11587 \begin_inset Flex MenuItem
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591 Style
11592 \end_layout
11593
11594 \end_inset
11595
11596 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
11597 \begin_inset Flex MenuItem
11598 status collapsed
11599
11600 \begin_layout Plain Layout
11601 LangPreamble
11602 \end_layout
11603
11604 \end_inset
11605
11606
11607 \begin_inset Flex MenuItem
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 BabelPreamble
11612 \end_layout
11613
11614 \end_inset
11615
11616 を使用することができます。以下の抜粋(
11617 \begin_inset Flex MenuItem
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 theorems-ams.inc
11622 \end_layout
11623
11624 \end_inset
11625
11626 より)は、これがどう動作するかを示すものです。
11627 \end_layout
11628
11629 \begin_layout LyX-Code
11630 Preamble
11631 \end_layout
11632
11633 \begin_deeper
11634 \begin_layout LyX-Code
11635   
11636 \backslash
11637 theoremstyle{remark}
11638 \end_layout
11639
11640 \begin_layout LyX-Code
11641   
11642 \backslash
11643 newtheorem{claim}[thm]{
11644 \backslash
11645 protect
11646 \backslash
11647 claimname}
11648 \end_layout
11649
11650 \begin_layout LyX-Code
11651 EndPreamble
11652 \end_layout
11653
11654 \begin_layout LyX-Code
11655 LangPreamble
11656 \end_layout
11657
11658 \begin_layout LyX-Code
11659   
11660 \backslash
11661 providecommand{
11662 \backslash
11663 claimname}{_(Claim)}
11664 \end_layout
11665
11666 \begin_layout LyX-Code
11667 EndLangPreamble
11668 \end_layout
11669
11670 \begin_layout LyX-Code
11671 BabelPreamble
11672 \end_layout
11673
11674 \begin_layout LyX-Code
11675     
11676 \backslash
11677 addto
11678 \backslash
11679 captions$$lang{
11680 \backslash
11681 renewcommand{
11682 \backslash
11683 claimname}{_(Claim)}}
11684 \end_layout
11685
11686 \begin_layout LyX-Code
11687 EndBabelPreamble
11688 \end_layout
11689
11690 \end_deeper
11691 \begin_layout Standard
11692 原則として、
11693 \begin_inset Flex MenuItem
11694 status collapsed
11695
11696 \begin_layout Plain Layout
11697 LangPreamble
11698 \end_layout
11699
11700 \end_inset
11701
11702
11703 \begin_inset Flex MenuItem
11704 status collapsed
11705
11706 \begin_layout Plain Layout
11707 BabelPreamble
11708 \end_layout
11709
11710 \end_inset
11711
11712 タグ内には、有効なLaTeXコードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための
11713 鍵となるのは、LaTeXコマンド
11714 \begin_inset Flex Code
11715 status collapsed
11716
11717 \begin_layout Plain Layout
11718
11719 \backslash
11720 claimname
11721 \end_layout
11722
11723 \end_inset
11724
11725 とその
11726 \begin_inset Flex Code
11727 status collapsed
11728
11729 \begin_layout Plain Layout
11730
11731 \backslash
11732 newtheorem
11733 \end_layout
11734
11735 \end_inset
11736
11737 中での用い方です。
11738 \end_layout
11739
11740 \begin_layout Standard
11741 \begin_inset Flex Code
11742 status collapsed
11743
11744 \begin_layout Plain Layout
11745 LangPreamble
11746 \end_layout
11747
11748 \end_inset
11749
11750 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
11751 \begin_inset Flex Code
11752 status collapsed
11753
11754 \begin_layout Plain Layout
11755 Preamble
11756 \end_layout
11757
11758 \end_inset
11759
11760 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
11761 \begin_inset Flex Code
11762 status collapsed
11763
11764 \begin_layout Plain Layout
11765 _()
11766 \end_layout
11767
11768 \end_inset
11769
11770 が使用されていることです。これは、LyXがLaTeX出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
11771 \end_layout
11772
11773 \begin_layout Standard
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 BabelPreamble
11779 \end_layout
11780
11781 \end_inset
11782
11783 タグは、複数言語文書をサポートし、
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 babel
11789 \end_layout
11790
11791 \end_inset
11792
11793 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
11794 の場合には、
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799 _()
11800 \end_layout
11801
11802 \end_inset
11803
11804 の引数は、その当該言語への翻訳で置き換えられ、
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 $$lang
11810 \end_layout
11811
11812 \end_inset
11813
11814 は言語名(babelパッケージで使用されるもの)で置き換えられます。
11815 \end_layout
11816
11817 \begin_layout Standard
11818 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
11819 \end_layout
11820
11821 \begin_layout LyX-Code
11822
11823 \backslash
11824 addto
11825 \backslash
11826 captionsfrench{
11827 \backslash
11828 renewcommand{
11829 \backslash
11830 claimname}{Affirmation}}
11831 \begin_inset Newline newline
11832 \end_inset
11833
11834
11835 \backslash
11836 addto
11837 \backslash
11838 captionsngerman{
11839 \backslash
11840 renewcommand{
11841 \backslash
11842 claimname}{Behauptung}}
11843 \begin_inset Newline newline
11844 \end_inset
11845
11846
11847 \backslash
11848 providecommand{
11849 \backslash
11850 claimname}{Behauptung}
11851 \end_layout
11852
11853 \begin_layout Standard
11854 それから、LaTeXと
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 babel
11860 \end_layout
11861
11862 \end_inset
11863
11864 は協力して、出力に正しい文字列を生成します。
11865 \end_layout
11866
11867 \begin_layout Standard
11868 ここで注意しなくてはならない重要な点は、翻訳は、操作画面の国際化に使われるのと同じ機構を通じて、LyX自身によって提供されるということです。つまり、ユーザー作成
11869 のレイアウトファイルに入力された文字列は、LyXの国際化ルーチンでは取り扱われないので、
11870 \begin_inset Flex MenuItem
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 LangPreamble
11875 \end_layout
11876
11877 \end_inset
11878
11879
11880 \begin_inset Flex MenuItem
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884 BabelPreamble
11885 \end_layout
11886
11887 \end_inset
11888
11889 は、事実上、LyXとともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的にLyXに同梱
11890 させようという意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。
11891 \end_layout
11892
11893 \begin_layout Subsection
11894 フロート
11895 \begin_inset CommandInset label
11896 LatexCommand label
11897 name "sub:フロート"
11898
11899 \end_inset
11900
11901
11902 \end_layout
11903
11904 \begin_layout Standard
11905 LyX第1.3.0版以来、テキストクラス自体の中でフロート(
11906 \begin_inset Flex MenuItem
11907 status collapsed
11908
11909 \begin_layout Plain Layout
11910 figure
11911 \end_layout
11912
11913 \end_inset
11914
11915
11916 \begin_inset Flex MenuItem
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 table
11921 \end_layout
11922
11923 \end_inset
11924
11925 ・\SpecialChar \ldots{}
11926 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931 stdfloats.inc
11932 \end_layout
11933
11934 \end_inset
11935
11936 ファイルに含まれているので、作業中のレイアウトファイルに
11937 \end_layout
11938
11939 \begin_layout LyX-Code
11940 Input stdfloats.inc
11941 \end_layout
11942
11943 \begin_layout Standard
11944 と加えるだけで済むことも多いでしょう。LyXに同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つ
11945 でありましょう。
11946 \end_layout
11947
11948 \begin_layout Description
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953 Extension
11954 \end_layout
11955
11956 \end_inset
11957
11958  [
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963 文字列
11964 \end_layout
11965
11966 \end_inset
11967
11968 =
11969 \begin_inset Quotes erd
11970 \end_inset
11971
11972
11973 \begin_inset Quotes erd
11974 \end_inset
11975
11976 ] 図などのリストを含む外部ファイルのファイル拡張子名。LaTeXがキャプションを書き込むファイルです。
11977 \end_layout
11978
11979 \begin_layout Description
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 GuiName
11985 \end_layout
11986
11987 \end_inset
11988
11989  [
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 文字列
11995 \end_layout
11996
11997 \end_inset
11998
11999 =
12000 \begin_inset Quotes erd
12001 \end_inset
12002
12003
12004 \begin_inset Quotes erd
12005 \end_inset
12006
12007 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
12008 \end_layout
12009
12010 \begin_layout Description
12011 \begin_inset Flex Code
12012 status collapsed
12013
12014 \begin_layout Plain Layout
12015 HTML*
12016 \end_layout
12017
12018 \end_inset
12019
12020  これらは、XHTML出力で使用されます。第
12021 \begin_inset CommandInset ref
12022 LatexCommand ref
12023 reference "sec:XHTML出力のタグ"
12024
12025 \end_inset
12026
12027 節をご覧ください。
12028 \end_layout
12029
12030 \begin_layout Description
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035 IsPredefined
12036 \end_layout
12037
12038 \end_inset
12039
12040  [
12041 \begin_inset Flex Code
12042 status collapsed
12043
12044 \begin_layout Plain Layout
12045
12046 \emph on
12047 0
12048 \end_layout
12049
12050 \end_inset
12051
12052 ,
12053 \begin_inset space \thinspace{}
12054 \end_inset
12055
12056
12057 \begin_inset Flex Code
12058 status collapsed
12059
12060 \begin_layout Plain Layout
12061 1
12062 \end_layout
12063
12064 \end_inset
12065
12066 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは
12067 \lang english
12068 LaTeX package
12069 \lang japanese
12070
12071 \begin_inset Flex Code
12072 status collapsed
12073
12074 \begin_layout Plain Layout
12075 float
12076 \end_layout
12077
12078 \end_inset
12079
12080 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
12081 \begin_inset Flex Code
12082 status collapsed
12083
12084 \begin_layout Plain Layout
12085 0
12086 \end_layout
12087
12088 \end_inset
12089
12090 で、この場合
12091 \begin_inset Flex Code
12092 status collapsed
12093
12094 \begin_layout Plain Layout
12095 float
12096 \end_layout
12097
12098 \end_inset
12099
12100 を使用します。LaTeXドキュメントクラス中に既に定義されているときには、
12101 \begin_inset Flex Code
12102 status collapsed
12103
12104 \begin_layout Plain Layout
12105 0
12106 \end_layout
12107
12108 \end_inset
12109
12110 に設定しなくてはなりません。
12111 \end_layout
12112
12113 \begin_layout Description
12114 \begin_inset Flex Code
12115 status collapsed
12116
12117 \begin_layout Plain Layout
12118 ListCommand
12119 \end_layout
12120
12121 \end_inset
12122
12123  [
12124 \begin_inset Flex Code
12125 status collapsed
12126
12127 \begin_layout Plain Layout
12128 文字列
12129 \end_layout
12130
12131 \end_inset
12132
12133 =
12134 \begin_inset Quotes erd
12135 \end_inset
12136
12137
12138 \begin_inset Quotes erd
12139 \end_inset
12140
12141 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
12142 \backslash
12143 」は書きません。
12144 \begin_inset Flex Code
12145 status collapsed
12146
12147 \begin_layout Plain Layout
12148 NeedsFloatPkg
12149 \end_layout
12150
12151 \end_inset
12152
12153 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
12154 \emph on
12155 必ず
12156 \emph default
12157 指定しなくてはなりません。
12158 \begin_inset Flex Code
12159 status collapsed
12160
12161 \begin_layout Plain Layout
12162 NeedsFloatPkg
12163 \end_layout
12164
12165 \end_inset
12166
12167 が真の時は、標準的な方法が存在するので、これは無視されます。
12168 \end_layout
12169
12170 \begin_layout Description
12171 \begin_inset Flex Code
12172 status collapsed
12173
12174 \begin_layout Plain Layout
12175 ListName
12176 \end_layout
12177
12178 \end_inset
12179
12180  [
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 文字列
12186 \end_layout
12187
12188 \end_inset
12189
12190 =
12191 \begin_inset Quotes erd
12192 \end_inset
12193
12194
12195 \begin_inset Quotes erd
12196 \end_inset
12197
12198 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。LyX中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La
12199 TeXに渡され、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
12200 \end_layout
12201
12202 \begin_layout Description
12203 \begin_inset Flex Code
12204 status collapsed
12205
12206 \begin_layout Plain Layout
12207 NumberWithin
12208 \end_layout
12209
12210 \end_inset
12211
12212  [
12213 \begin_inset Flex Code
12214 status collapsed
12215
12216 \begin_layout Plain Layout
12217 文字列
12218 \end_layout
12219
12220 \end_inset
12221
12222 =
12223 \begin_inset Quotes erd
12224 \end_inset
12225
12226
12227 \begin_inset Quotes erd
12228 \end_inset
12229
12230 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。
12231 \lang english
12232 For example, if 
12233 \lang japanese
12234
12235 \begin_inset Flex Code
12236 status collapsed
12237
12238 \begin_layout Plain Layout
12239 NumberWithin
12240 \end_layout
12241
12242 \end_inset
12243
12244
12245 \lang english
12246  is set to
12247 \lang japanese
12248
12249 \begin_inset Flex Code
12250 status collapsed
12251
12252 \begin_layout Plain Layout
12253 chapter
12254 \end_layout
12255
12256 \end_inset
12257
12258 」と指定されていれば、フロートは章ごとに番号が振り直されます。
12259 \end_layout
12260
12261 \begin_layout Description
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266 Placement
12267 \end_layout
12268
12269 \end_inset
12270
12271  [
12272 \begin_inset Flex Code
12273 status collapsed
12274
12275 \begin_layout Plain Layout
12276 文字列
12277 \end_layout
12278
12279 \end_inset
12280
12281 =
12282 \begin_inset Quotes erd
12283 \end_inset
12284
12285
12286 \begin_inset Quotes erd
12287 \end_inset
12288
12289 ] このクラスのフロートの既定の配置法。文字列は、標準的なLaTeX表記に従い、
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294 t
12295 \end_layout
12296
12297 \end_inset
12298
12299 ならば上部(top)、
12300 \begin_inset Flex Code
12301 status collapsed
12302
12303 \begin_layout Plain Layout
12304 b
12305 \end_layout
12306
12307 \end_inset
12308
12309 ならば下部(bottom)、
12310 \begin_inset Flex Code
12311 status collapsed
12312
12313 \begin_layout Plain Layout
12314 p
12315 \end_layout
12316
12317 \end_inset
12318
12319 ならばページ(page)、
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324 h
12325 \end_layout
12326
12327 \end_inset
12328
12329 ならばここ(here)を表します
12330 \begin_inset Foot
12331 status collapsed
12332
12333 \begin_layout Plain Layout
12334 LaTeX同様、文字列中でのこれらの文字の順序は関係ありません。
12335 \end_layout
12336
12337 \end_inset
12338
12339 。これらの他に新しい型
12340 \begin_inset Flex Code
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 H
12345 \end_layout
12346
12347 \end_inset
12348
12349 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 H
12355 \end_layout
12356
12357 \end_inset
12358
12359 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
12360 に「
12361 \begin_inset Flex Code
12362 status collapsed
12363
12364 \begin_layout Plain Layout
12365 tbp
12366 \end_layout
12367
12368 \end_inset
12369
12370 」を指定してください。
12371 \end_layout
12372
12373 \begin_layout Description
12374 \begin_inset Flex Code
12375 status collapsed
12376
12377 \begin_layout Plain Layout
12378 RefPrefix
12379 \end_layout
12380
12381 \end_inset
12382
12383  [
12384 \begin_inset Flex Code
12385 status collapsed
12386
12387 \begin_layout Plain Layout
12388 文字列
12389 \end_layout
12390
12391 \end_inset
12392
12393 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
12394 \begin_inset Flex Code
12395 status collapsed
12396
12397 \begin_layout Plain Layout
12398 RefPrefix
12399 \end_layout
12400
12401 \end_inset
12402
12403 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
12404 \end_layout
12405
12406 \begin_layout Description
12407 \begin_inset Flex Code
12408 status collapsed
12409
12410 \begin_layout Plain Layout
12411 Style
12412 \end_layout
12413
12414 \end_inset
12415
12416  [
12417 \begin_inset Flex Code
12418 status collapsed
12419
12420 \begin_layout Plain Layout
12421 文字列
12422 \end_layout
12423
12424 \end_inset
12425
12426 =
12427 \begin_inset Quotes erd
12428 \end_inset
12429
12430
12431 \begin_inset Quotes erd
12432 \end_inset
12433
12434
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439
12440 \backslash
12441 newfloat
12442 \end_layout
12443
12444 \end_inset
12445
12446 を使用してフロートを定義する際に使用される様式。
12447 \end_layout
12448
12449 \begin_layout Description
12450 \begin_inset Flex Code
12451 status collapsed
12452
12453 \begin_layout Plain Layout
12454 Type
12455 \end_layout
12456
12457 \end_inset
12458
12459  [
12460 \begin_inset Flex Code
12461 status collapsed
12462
12463 \begin_layout Plain Layout
12464 文字列
12465 \end_layout
12466
12467 \end_inset
12468
12469 =
12470 \begin_inset Quotes erd
12471 \end_inset
12472
12473
12474 \begin_inset Quotes erd
12475 \end_inset
12476
12477 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482
12483 \backslash
12484 newfloat
12485 \end_layout
12486
12487 \end_inset
12488
12489 の後で、
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494
12495 \backslash
12496 begin{program}
12497 \end_layout
12498
12499 \end_inset
12500
12501
12502 \begin_inset Flex Code
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506
12507 \backslash
12508 end{algorithm*}
12509 \end_layout
12510
12511 \end_inset
12512
12513 といったコマンドが利用できます。
12514 \end_layout
12515
12516 \begin_layout Description
12517 \begin_inset Flex Code
12518 status collapsed
12519
12520 \begin_layout Plain Layout
12521 UsesFloatPkg
12522 \end_layout
12523
12524 \end_inset
12525
12526  [
12527 \begin_inset Flex Code
12528 status collapsed
12529
12530 \begin_layout Plain Layout
12531 0
12532 \end_layout
12533
12534 \end_inset
12535
12536 ,
12537 \begin_inset space \thinspace{}
12538 \end_inset
12539
12540
12541 \begin_inset Flex Code
12542 status collapsed
12543
12544 \begin_layout Plain Layout
12545
12546 \emph on
12547 1
12548 \end_layout
12549
12550 \end_inset
12551
12552 ] このフロートが、クラスファイルやパッケージ中で、
12553 \lang english
12554 LaTeX-package
12555 \lang japanese
12556
12557 \begin_inset Flex Code
12558 status collapsed
12559
12560 \begin_layout Plain Layout
12561 float
12562 \end_layout
12563
12564 \end_inset
12565
12566 が提供しているものを使用して定義されているのか、LyX自身がオン・ザ・フライで定義しているのかを示します。
12567 \end_layout
12568
12569 \begin_layout Standard
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 \emph on
12576 type
12577 \end_layout
12578
12579 \end_inset
12580
12581 型のフロートを定義すると、自動的に
12582 \emph on
12583 対応する
12584 \emph default
12585
12586 \begin_inset Flex Code
12587 status collapsed
12588
12589 \begin_layout Plain Layout
12590
12591 \emph on
12592 type
12593 \end_layout
12594
12595 \end_inset
12596
12597 名カウンタが定義されます。
12598 \end_layout
12599
12600 \begin_layout Subsection
12601 自由差込枠と差込枠レイアウト
12602 \begin_inset CommandInset label
12603 LatexCommand label
12604 name "sub:任意設定差込枠"
12605
12606 \end_inset
12607
12608
12609 \end_layout
12610
12611 \begin_layout Standard
12612 自由差込枠には次の3種類があります。
12613 \end_layout
12614
12615 \begin_layout Itemize
12616 文字様式(
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 CharStyle
12622 \end_layout
12623
12624 \end_inset
12625
12626 )。これは、
12627 \begin_inset Flex Code
12628 status collapsed
12629
12630 \begin_layout Plain Layout
12631
12632 \backslash
12633 noun
12634 \end_layout
12635
12636 \end_inset
12637
12638
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643
12644 \backslash
12645 code
12646 \end_layout
12647
12648 \end_inset
12649
12650 などのLaTeXコマンドに対応した意味論的マークアップを定義するものです。
12651 \end_layout
12652
12653 \begin_layout Itemize
12654 ユーザ設定(
12655 \begin_inset Flex Code
12656 status collapsed
12657
12658 \begin_layout Plain Layout
12659 Custom
12660 \end_layout
12661
12662 \end_inset
12663
12664 )。これは、TeXコードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
12665 \begin_inset Flex Code
12666 status collapsed
12667
12668 \begin_layout Plain Layout
12669 endnote
12670 \end_layout
12671
12672 \end_inset
12673
12674 モジュール中で定義されています。
12675 \end_layout
12676
12677 \begin_layout Itemize
12678 XML要素(
12679 \begin_inset Flex Code
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683 Element
12684 \end_layout
12685
12686 \end_inset
12687
12688 )。DocBookクラスで使用するものです。
12689 \end_layout
12690
12691 \begin_layout Standard
12692 自由差込枠は、以下で説明する
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697 InsetLayout
12698 \end_layout
12699
12700 \end_inset
12701
12702 タグを使用して定義されます。
12703 \end_layout
12704
12705 \begin_layout Standard
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710 InsetLayout
12711 \end_layout
12712
12713 \end_inset
12714
12715 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
12716 \begin_inset Flex Code
12717 status collapsed
12718
12719 \begin_layout Plain Layout
12720 InsetLayout
12721 \end_layout
12722
12723 \end_inset
12724
12725 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・TeXコード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・オプション引数
12726 のレイアウトパラメータを設定するのに使用することができます。
12727 \end_layout
12728
12729 \begin_layout Standard
12730 \begin_inset Flex Code
12731 status collapsed
12732
12733 \begin_layout Plain Layout
12734 InsetLayout
12735 \end_layout
12736
12737 \end_inset
12738
12739 定義は以下の形の行では始まらなくてはなりません。
12740 \end_layout
12741
12742 \begin_layout LyX-Code
12743 InsetLayout <型>
12744 \end_layout
12745
12746 \begin_layout Standard
12747 ここで
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752 <型>
12753 \end_layout
12754
12755 \end_inset
12756
12757 は、レイアウトを定義しようとしている差込枠を指し、以下の2つの場合がありえます。
12758 \end_layout
12759
12760 \begin_layout Enumerate
12761 既存の差込枠のレイアウトを変更する場合。この場合、
12762 \begin_inset Flex Code
12763 status collapsed
12764
12765 \begin_layout Plain Layout
12766 <型>
12767 \end_layout
12768
12769 \end_inset
12770
12771 は以下のいずれかになります:
12772 \begin_inset Flex Code
12773 status collapsed
12774
12775 \begin_layout Plain Layout
12776 Algorithm
12777 \end_layout
12778
12779 \end_inset
12780
12781
12782 \begin_inset Flex Code
12783 status collapsed
12784
12785 \begin_layout Plain Layout
12786 Branch
12787 \end_layout
12788
12789 \end_inset
12790
12791
12792 \begin_inset Flex Code
12793 status collapsed
12794
12795 \begin_layout Plain Layout
12796 Box
12797 \end_layout
12798
12799 \end_inset
12800
12801
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806 Box:shaded
12807 \end_layout
12808
12809 \end_inset
12810
12811
12812 \begin_inset Flex Code
12813 status collapsed
12814
12815 \begin_layout Plain Layout
12816 ERT
12817 \end_layout
12818
12819 \end_inset
12820
12821
12822 \begin_inset Flex Code
12823 status collapsed
12824
12825 \begin_layout Plain Layout
12826 Figure
12827 \end_layout
12828
12829 \end_inset
12830
12831
12832 \begin_inset Flex Code
12833 status collapsed
12834
12835 \begin_layout Plain Layout
12836 Foot
12837 \end_layout
12838
12839 \end_inset
12840
12841
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 Index
12847 \end_layout
12848
12849 \end_inset
12850
12851
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 Info
12857 \end_layout
12858
12859 \end_inset
12860
12861
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 Info:menu
12867 \end_layout
12868
12869 \end_inset
12870
12871
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 Info:shortcut
12877 \end_layout
12878
12879 \end_inset
12880
12881
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 Info:shortcuts
12887 \end_layout
12888
12889 \end_inset
12890
12891
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 Listings
12897 \end_layout
12898
12899 \end_inset
12900
12901
12902 \begin_inset Flex Code
12903 status collapsed
12904
12905 \begin_layout Plain Layout
12906 Marginal
12907 \end_layout
12908
12909 \end_inset
12910
12911
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 Note:Comment
12917 \end_layout
12918
12919 \end_inset
12920
12921
12922 \begin_inset Flex Code
12923 status collapsed
12924
12925 \begin_layout Plain Layout
12926 Note:Note
12927 \end_layout
12928
12929 \end_inset
12930
12931
12932 \begin_inset Flex Code
12933 status collapsed
12934
12935 \begin_layout Plain Layout
12936 Note:GreyedOut
12937 \end_layout
12938
12939 \end_inset
12940
12941
12942 \begin_inset Flex Code
12943 status collapsed
12944
12945 \begin_layout Plain Layout
12946 OptArg
12947 \end_layout
12948
12949 \end_inset
12950
12951
12952 \begin_inset Flex Code
12953 status collapsed
12954
12955 \begin_layout Plain Layout
12956 Table
12957 \end_layout
12958
12959 \end_inset
12960
12961
12962 \begin_inset Flex Code
12963 status collapsed
12964
12965 \begin_layout Plain Layout
12966 URL
12967 \end_layout
12968
12969 \end_inset
12970
12971
12972 \end_layout
12973
12974 \begin_layout Enumerate
12975 自由差込枠のレイアウトを定義する場合。この場合、
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 <型>
12981 \end_layout
12982
12983 \end_inset
12984
12985
12986 \begin_inset Flex Code
12987 status collapsed
12988
12989 \begin_layout Plain Layout
12990 Flex:<名称>
12991 \end_layout
12992
12993 \end_inset
12994
12995 の形でなくてはなりません。ここで、
12996 \begin_inset Flex Code
12997 status collapsed
12998
12999 \begin_layout Plain Layout
13000 名称
13001 \end_layout
13002
13003 \end_inset
13004
13005 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
13006 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 LyXType
13012 \end_layout
13013
13014 \end_inset
13015
13016 項目が含まれていなくてはならないことに注意してください。
13017 \end_layout
13018
13019 \begin_layout Standard
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 InsetLayout
13025 \end_layout
13026
13027 \end_inset
13028
13029 定義には以下の項目を入れることができます。
13030 \end_layout
13031
13032 \begin_layout Description
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 BgColor
13038 \end_layout
13039
13040 \end_inset
13041
13042  [
13043 \lang english
13044
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049
13050 \lang english
13051 <name>
13052 \end_layout
13053
13054 \end_inset
13055
13056
13057 \lang japanese
13058 ]  差込枠の背景色。
13059 \lang english
13060 See chapter
13061 \begin_inset space ~
13062 \end_inset
13063
13064
13065 \begin_inset CommandInset ref
13066 LatexCommand ref
13067 reference "chap:Names-of-colors"
13068
13069 \end_inset
13070
13071  for a list of the available color names.
13072 \end_layout
13073
13074 \begin_layout Description
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 ContentAsLabel
13080 \end_layout
13081
13082 \end_inset
13083
13084  [
13085 \begin_inset Flex Code
13086 status collapsed
13087
13088 \begin_layout Plain Layout
13089
13090 \emph on
13091 0
13092 \end_layout
13093
13094 \end_inset
13095
13096 ,
13097 \begin_inset space \thinspace{}
13098 \end_inset
13099
13100
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 1
13106 \end_layout
13107
13108 \end_inset
13109
13110 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
13111 \end_layout
13112
13113 \begin_layout Description
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118 CopyStyle
13119 \end_layout
13120
13121 \end_inset
13122
13123  [<型>] 
13124 \lang english
13125 As with paragraph styles, see sec.
13126 \begin_inset space ~
13127 \end_inset
13128
13129
13130 \lang japanese
13131
13132 \begin_inset CommandInset ref
13133 LatexCommand ref
13134 reference "sub:段落様式"
13135
13136 \end_inset
13137
13138
13139 \lang english
13140 Note that you need to specify the complete type, e.
13141 \begin_inset space \thinspace{}
13142 \end_inset
13143
13144 g.
13145 \begin_inset space ~
13146 \end_inset
13147
13148
13149 \begin_inset Flex Code
13150 status collapsed
13151
13152 \begin_layout Plain Layout
13153
13154 \lang english
13155 CopyStyle Flex:<name>
13156 \end_layout
13157
13158 \end_inset
13159
13160 .
13161 \end_layout
13162
13163 \begin_layout Description
13164 \begin_inset Flex Code
13165 status collapsed
13166
13167 \begin_layout Plain Layout
13168 CustomPars
13169 \end_layout
13170
13171 \end_inset
13172
13173  [
13174 \begin_inset Flex Code
13175 status collapsed
13176
13177 \begin_layout Plain Layout
13178
13179 \emph on
13180 0
13181 \end_layout
13182
13183 \end_inset
13184
13185 ,
13186 \begin_inset space \thinspace{}
13187 \end_inset
13188
13189
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 1
13195 \end_layout
13196
13197 \end_inset
13198
13199 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
13200 \end_layout
13201
13202 \begin_layout Description
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 Decoration
13208 \end_layout
13209
13210 \end_inset
13211
13212  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
13213 \begin_inset Flex Code
13214 status collapsed
13215
13216 \begin_layout Plain Layout
13217 Classic
13218 \end_layout
13219
13220 \end_inset
13221
13222
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 Minimalistic
13228 \end_layout
13229
13230 \end_inset
13231
13232
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 Conglomerate
13238 \end_layout
13239
13240 \end_inset
13241
13242 のいずれかを指定することができます。脚注は通常
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 Classic
13248 \end_layout
13249
13250 \end_inset
13251
13252 を使用し、TeXコード差込枠は通常
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 Minimalistic
13258 \end_layout
13259
13260 \end_inset
13261
13262 、文字様式は
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 Conglomerate
13268 \end_layout
13269
13270 \end_inset
13271
13272 を使用します。
13273 \end_layout
13274
13275 \begin_layout Description
13276 \begin_inset Flex Code
13277 status collapsed
13278
13279 \begin_layout Plain Layout
13280 Display
13281 \end_layout
13282
13283 \end_inset
13284
13285  [
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 0
13291 \end_layout
13292
13293 \end_inset
13294
13295 ,
13296 \begin_inset space \thinspace{}
13297 \end_inset
13298
13299
13300 \begin_inset Flex Code
13301 status collapsed
13302
13303 \begin_layout Plain Layout
13304
13305 \emph on
13306 1
13307 \end_layout
13308
13309 \end_inset
13310
13311
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 LatexType
13317 \end_layout
13318
13319 \end_inset
13320
13321
13322 \begin_inset Flex Code
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 Environment
13327 \end_layout
13328
13329 \end_inset
13330
13331 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、LaTeX環境は、
13332 \begin_inset Flex Code
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336
13337 \backslash
13338 begin{LatexName}
13339 \end_layout
13340
13341 \end_inset
13342
13343 タグと
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348
13349 \backslash
13350 end{LatexName}
13351 \end_layout
13352
13353 \end_inset
13354
13355 タグの後の空白(改行文字を含む)を無視するものと仮定します。
13356 \end_layout
13357
13358 \begin_layout Description
13359 \begin_inset Flex Code
13360 status collapsed
13361
13362 \begin_layout Plain Layout
13363 End
13364 \end_layout
13365
13366 \end_inset
13367
13368  
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 InsetLayout
13374 \end_layout
13375
13376 \end_inset
13377
13378 宣言を閉じるのに必要です。
13379 \end_layout
13380
13381 \begin_layout Description
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 Font
13387 \end_layout
13388
13389 \end_inset
13390
13391  本文本体とラベル
13392 \emph on
13393 両方に
13394 \emph default
13395 使用されるフォントです。第
13396 \begin_inset CommandInset ref
13397 LatexCommand ref
13398 reference "sub:フォント指定"
13399
13400 \end_inset
13401
13402 節を参照。このフォントを定義すると自動的に
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 LabelFont
13408 \end_layout
13409
13410 \end_inset
13411
13412 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 LabelFont
13418 \end_layout
13419
13420 \end_inset
13421
13422 を定義しなくてはならないことに注意してください。
13423 \end_layout
13424
13425 \begin_layout Description
13426 \begin_inset Flex Code
13427 status collapsed
13428
13429 \begin_layout Plain Layout
13430 ForceLTR
13431 \end_layout
13432
13433 \end_inset
13434
13435  [
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440
13441 \emph on
13442 0
13443 \end_layout
13444
13445 \end_inset
13446
13447 ,
13448 \begin_inset space \thinspace{}
13449 \end_inset
13450
13451
13452 \begin_inset Flex Code
13453 status collapsed
13454
13455 \begin_layout Plain Layout
13456 1
13457 \end_layout
13458
13459 \end_inset
13460
13461 ] たとえばTeXコードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
13462 \end_layout
13463
13464 \begin_layout Description
13465 \begin_inset Flex Code
13466 status collapsed
13467
13468 \begin_layout Plain Layout
13469 ForcePlain
13470 \end_layout
13471
13472 \end_inset
13473
13474  [
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479
13480 \emph on
13481 0
13482 \end_layout
13483
13484 \end_inset
13485
13486 ,
13487 \begin_inset space \thinspace{}
13488 \end_inset
13489
13490
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495 1
13496 \end_layout
13497
13498 \end_inset
13499
13500 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
13501 \end_layout
13502
13503 \begin_layout Description
13504 \begin_inset Flex Code
13505 status collapsed
13506
13507 \begin_layout Plain Layout
13508 FreeSpacing
13509 \end_layout
13510
13511 \end_inset
13512
13513  [
13514 \emph on
13515
13516 \begin_inset Flex Code
13517 status collapsed
13518
13519 \begin_layout Plain Layout
13520 0
13521 \end_layout
13522
13523 \end_inset
13524
13525
13526 \emph default
13527 ,
13528 \begin_inset space \thinspace{}
13529 \end_inset
13530
13531
13532 \begin_inset Flex Code
13533 status collapsed
13534
13535 \begin_layout Plain Layout
13536 1
13537 \end_layout
13538
13539 \end_inset
13540
13541
13542 \lang english
13543 As with paragraph styles, see sec.
13544 \begin_inset space ~
13545 \end_inset
13546
13547
13548 \lang japanese
13549
13550 \begin_inset CommandInset ref
13551 LatexCommand ref
13552 reference "sub:段落様式"
13553
13554 \end_inset
13555
13556
13557 \end_layout
13558
13559 \begin_layout Description
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 HTML*
13565 \end_layout
13566
13567 \end_inset
13568
13569  これらは、XHTML出力で使用されます。第
13570 \begin_inset CommandInset ref
13571 LatexCommand ref
13572 reference "sec:XHTML出力のタグ"
13573
13574 \end_inset
13575
13576 節をご覧ください。
13577 \end_layout
13578
13579 \begin_layout Description
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 InToc
13585 \end_layout
13586
13587 \end_inset
13588
13589  [
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594
13595 \emph on
13596 0
13597 \end_layout
13598
13599 \end_inset
13600
13601 ,
13602 \begin_inset space \thinspace{}
13603 \end_inset
13604
13605
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610 1
13611 \end_layout
13612
13613 \end_inset
13614
13615 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
13616 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
13617 \end_layout
13618
13619 \begin_layout Description
13620 \begin_inset Flex Code
13621 status collapsed
13622
13623 \begin_layout Plain Layout
13624 KeepEmpty
13625 \end_layout
13626
13627 \end_inset
13628
13629  [
13630 \emph on
13631
13632 \begin_inset Flex Code
13633 status collapsed
13634
13635 \begin_layout Plain Layout
13636 0
13637 \end_layout
13638
13639 \end_inset
13640
13641
13642 \emph default
13643 ,
13644 \begin_inset space \thinspace{}
13645 \end_inset
13646
13647
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652 1
13653 \end_layout
13654
13655 \end_inset
13656
13657
13658 \lang english
13659 As with paragraph styles, see sec.
13660 \begin_inset space ~
13661 \end_inset
13662
13663
13664 \lang japanese
13665
13666 \begin_inset CommandInset ref
13667 LatexCommand ref
13668 reference "sub:段落様式"
13669
13670 \end_inset
13671
13672
13673 \end_layout
13674
13675 \begin_layout Description
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680 LabelFont
13681 \end_layout
13682
13683 \end_inset
13684
13685  ラベルに使用されるフォント。第
13686 \begin_inset CommandInset ref
13687 LatexCommand ref
13688 reference "sub:フォント指定"
13689
13690 \end_inset
13691
13692 節を参照。非効率を回避するため、この定義は
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 \end_layout
13704
13705 \begin_layout Description
13706 \begin_inset Flex Code
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 LabelString
13711 \end_layout
13712
13713 \end_inset
13714
13715  [
13716 \begin_inset Flex Code
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720 文字列
13721 \end_layout
13722
13723 \end_inset
13724
13725 =
13726 \begin_inset Quotes erd
13727 \end_inset
13728
13729
13730 \begin_inset Quotes erd
13731 \end_inset
13732
13733 ]
13734 \lang english
13735  
13736 \lang japanese
13737 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(TeXコードや派生枝)、ラベルが動的に変更されます。
13738 \end_layout
13739
13740 \begin_layout Description
13741 \begin_inset Flex Code
13742 status collapsed
13743
13744 \begin_layout Plain Layout
13745 LatexName
13746 \end_layout
13747
13748 \end_inset
13749
13750  [
13751 \lang english
13752
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757
13758 \lang english
13759 <name>
13760 \end_layout
13761
13762 \end_inset
13763
13764
13765 \lang japanese
13766 ] 対応するLaTeX関連物の名称。環境名ないしはコマンド名。
13767 \end_layout
13768
13769 \begin_layout Description
13770 \begin_inset Flex Code
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774 LatexParam
13775 \end_layout
13776
13777 \end_inset
13778
13779  
13780 \lang english
13781 [
13782 \begin_inset Flex Code
13783 status collapsed
13784
13785 \begin_layout Plain Layout
13786
13787 \lang english
13788 <parameter>
13789 \end_layout
13790
13791 \end_inset
13792
13793
13794 \lang japanese
13795 対応する
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 LatexName
13801 \end_layout
13802
13803 \end_inset
13804
13805 関連物の非必須パラメータ。
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 []
13811 \end_layout
13812
13813 \end_inset
13814
13815 のような括弧対を含む。このパラメータはLyX内部から変更することはできません。
13816 \end_layout
13817
13818 \begin_layout Description
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 LatexType
13824 \end_layout
13825
13826 \end_inset
13827
13828  
13829 \lang english
13830 As with paragraph styles, see sec.
13831 \begin_inset space ~
13832 \end_inset
13833
13834
13835 \lang japanese
13836
13837 \begin_inset CommandInset ref
13838 LatexCommand ref
13839 reference "sub:段落様式"
13840
13841 \end_inset
13842
13843
13844 \end_layout
13845
13846 \begin_layout Description
13847 \begin_inset Flex Code
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851 LyxType
13852 \end_layout
13853
13854 \end_inset
13855
13856  
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 charstyle
13862 \end_layout
13863
13864 \end_inset
13865
13866
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 custom
13872 \end_layout
13873
13874 \end_inset
13875
13876
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 element
13882 \end_layout
13883
13884 \end_inset
13885
13886
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891 end
13892 \end_layout
13893
13894 \end_inset
13895
13896 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
13897 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
13898 \begin_inset Flex Code
13899 status collapsed
13900
13901 \begin_layout Plain Layout
13902 LyxType
13903 \end_layout
13904
13905 \end_inset
13906
13907
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 charstyle
13913 \end_layout
13914
13915 \end_inset
13916
13917 に設定すると、
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 MultiPar
13923 \end_layout
13924
13925 \end_inset
13926
13927 が偽に設定されます。文字様式差込枠で
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932 MultiPar
13933 \end_layout
13934
13935 \end_inset
13936
13937 を真にしたい時には、
13938 \begin_inset Flex Code
13939 status collapsed
13940
13941 \begin_layout Plain Layout
13942 LyxType
13943 \end_layout
13944
13945 \end_inset
13946
13947 を設定した
13948 \emph on
13949 後に
13950 \emph default
13951 設定すれば、真に設定することができます。
13952 \end_layout
13953
13954 \begin_layout Description
13955 \begin_inset Flex Code
13956 status collapsed
13957
13958 \begin_layout Plain Layout
13959 MultiPar
13960 \end_layout
13961
13962 \end_inset
13963
13964  [
13965 \begin_inset Flex Code
13966 status collapsed
13967
13968 \begin_layout Plain Layout
13969
13970 \emph on
13971 0
13972 \end_layout
13973
13974 \end_inset
13975
13976 ,
13977 \begin_inset space \thinspace{}
13978 \end_inset
13979
13980
13981 \begin_inset Flex Code
13982 status collapsed
13983
13984 \begin_layout Plain Layout
13985 1
13986 \end_layout
13987
13988 \end_inset
13989
13990 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
13991 \begin_inset Flex Code
13992 status collapsed
13993
13994 \begin_layout Plain Layout
13995 CustomPars
13996 \end_layout
13997
13998 \end_inset
13999
14000 を同じ値に設定し、
14001 \begin_inset Flex Code
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005 ForcePlain
14006 \end_layout
14007
14008 \end_inset
14009
14010 を逆の値に設定します。これらは、
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 MultiPar
14016 \end_layout
14017
14018 \end_inset
14019
14020
14021 \emph on
14022 後に
14023 \emph default
14024 指定されれば、他の値に指定し直すことができます。既定値は真です。
14025 \end_layout
14026
14027 \begin_layout Description
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 NeedProtect
14033 \end_layout
14034
14035 \end_inset
14036
14037  [
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042
14043 \emph on
14044 0
14045 \end_layout
14046
14047 \end_inset
14048
14049 ,
14050 \begin_inset space \thinspace{}
14051 \end_inset
14052
14053
14054 \begin_inset Flex Code
14055 status collapsed
14056
14057 \begin_layout Plain Layout
14058 1
14059 \end_layout
14060
14061 \end_inset
14062
14063 ] 本レイアウト中で脆弱なコマンドを
14064 \begin_inset Flex Code
14065 status collapsed
14066
14067 \begin_layout Plain Layout
14068
14069 \backslash
14070 protect
14071 \end_layout
14072
14073 \end_inset
14074
14075 するか否か(註:当該コマンド自身をprotectするかどうかでは
14076 \emph on
14077 ありません
14078 \emph default
14079 )。既定値は偽です。
14080 \end_layout
14081
14082 \begin_layout Description
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 ParbreakIsNewline
14088 \end_layout
14089
14090 \end_inset
14091
14092  [
14093 \begin_inset Flex Code
14094 status collapsed
14095
14096 \begin_layout Plain Layout
14097
14098 \emph on
14099 0
14100 \end_layout
14101
14102 \end_inset
14103
14104 ,
14105 \begin_inset space \thinspace{}
14106 \end_inset
14107
14108
14109 \begin_inset Flex Code
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 1
14114 \end_layout
14115
14116 \end_inset
14117
14118
14119 \lang english
14120 As with paragraph styles, see sec.
14121 \begin_inset space ~
14122 \end_inset
14123
14124
14125 \lang japanese
14126
14127 \begin_inset CommandInset ref
14128 LatexCommand ref
14129 reference "sub:段落様式"
14130
14131 \end_inset
14132
14133
14134 \end_layout
14135
14136 \begin_layout Description
14137 \begin_inset Flex Code
14138 status collapsed
14139
14140 \begin_layout Plain Layout
14141 PassThru
14142 \end_layout
14143
14144 \end_inset
14145
14146  [
14147 \emph on
14148
14149 \begin_inset Flex Code
14150 status collapsed
14151
14152 \begin_layout Plain Layout
14153 0
14154 \end_layout
14155
14156 \end_inset
14157
14158
14159 \emph default
14160 ,
14161 \begin_inset space \thinspace{}
14162 \end_inset
14163
14164
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169 1
14170 \end_layout
14171
14172 \end_inset
14173
14174
14175 \lang english
14176 As with paragraph styles, see sec.
14177 \begin_inset space ~
14178 \end_inset
14179
14180
14181 \lang japanese
14182
14183 \begin_inset CommandInset ref
14184 LatexCommand ref
14185 reference "sub:段落様式"
14186
14187 \end_inset
14188
14189
14190 \end_layout
14191
14192 \begin_layout Description
14193 \begin_inset Flex Code
14194 status collapsed
14195
14196 \begin_layout Plain Layout
14197 Preamble
14198 \end_layout
14199
14200 \end_inset
14201
14202  
14203 \lang english
14204 As with paragraph styles, see sec.
14205 \begin_inset space ~
14206 \end_inset
14207
14208
14209 \lang japanese
14210
14211 \begin_inset CommandInset ref
14212 LatexCommand ref
14213 reference "sub:段落様式"
14214
14215 \end_inset
14216
14217
14218 \end_layout
14219
14220 \begin_layout Description
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225 RefPrefix
14226 \end_layout
14227
14228 \end_inset
14229
14230  [
14231 \begin_inset Flex Code
14232 status collapsed
14233
14234 \begin_layout Plain Layout
14235 文字列
14236 \end_layout
14237
14238 \end_inset
14239
14240 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
14241 \end_layout
14242
14243 \begin_layout Description
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 Requires
14249 \end_layout
14250
14251 \end_inset
14252
14253  [
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 文字列
14259 \end_layout
14260
14261 \end_inset
14262
14263
14264 \lang english
14265 As with paragraph styles, see sec.
14266 \begin_inset space ~
14267 \end_inset
14268
14269
14270 \lang japanese
14271
14272 \begin_inset CommandInset ref
14273 LatexCommand ref
14274 reference "sub:段落様式"
14275
14276 \end_inset
14277
14278
14279 \end_layout
14280
14281 \begin_layout Description
14282 \begin_inset Flex Code
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 ResetFont
14287 \end_layout
14288
14289 \end_inset
14290
14291  [
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296 0
14297 \end_layout
14298
14299 \end_inset
14300
14301 ,
14302 \begin_inset space \thinspace{}
14303 \end_inset
14304
14305
14306 \begin_inset Flex Code
14307 status collapsed
14308
14309 \begin_layout Plain Layout
14310
14311 \emph on
14312 1
14313 \end_layout
14314
14315 \end_inset
14316
14317 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
14318 \end_layout
14319
14320 \begin_layout Description
14321 \begin_inset Flex Code
14322 status collapsed
14323
14324 \begin_layout Plain Layout
14325 Spellcheck
14326 \end_layout
14327
14328 \end_inset
14329
14330  [
14331 \begin_inset Flex Code
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 0
14336 \end_layout
14337
14338 \end_inset
14339
14340 ,
14341 \begin_inset space \thinspace{}
14342 \end_inset
14343
14344
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349
14350 \emph on
14351 1
14352 \end_layout
14353
14354 \end_inset
14355
14356 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
14357 \end_layout
14358
14359 \begin_layout Subsection
14360 カウンタ
14361 \begin_inset CommandInset label
14362 LatexCommand label
14363 name "sub:カウンタ"
14364
14365 \end_inset
14366
14367
14368 \end_layout
14369
14370 \begin_layout Standard
14371
14372 \lang english
14373 It is necessary to define the counters
14374 \lang japanese
14375
14376 \begin_inset Flex MenuItem
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 chapter
14381 \end_layout
14382
14383 \end_inset
14384
14385
14386 \begin_inset Flex MenuItem
14387 status collapsed
14388
14389 \begin_layout Plain Layout
14390 figure
14391 \end_layout
14392
14393 \end_inset
14394
14395 ・\SpecialChar \ldots{}
14396 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 stdcounters.inc
14402 \end_layout
14403
14404 \end_inset
14405
14406 ファイルに含まれているので、作業中のレイアウトファイルに
14407 \end_layout
14408
14409 \begin_layout LyX-Code
14410 Input stdcounters.inc
14411 \end_layout
14412
14413 \begin_layout Standard
14414 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
14415 \end_layout
14416
14417 \begin_layout LyX-Code
14418 Counter カウンタ名
14419 \end_layout
14420
14421 \begin_layout Standard
14422 で始まらなくてはなりません。ここで「
14423 \begin_inset Flex Code
14424 status collapsed
14425
14426 \begin_layout Plain Layout
14427 カウンタ名
14428 \end_layout
14429
14430 \end_inset
14431
14432 」は、実際のカウンタ名で置き換えます。また、宣言は「
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 End
14438 \end_layout
14439
14440 \end_inset
14441
14442 」で終わらなくてはなりません。
14443 \end_layout
14444
14445 \begin_layout Standard
14446 以下のパラメータを使用することができます。
14447 \end_layout
14448
14449 \begin_layout Description
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454 LabelString [文字列=""]
14455 \end_layout
14456
14457 \end_inset
14458
14459  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
14460 \begin_inset Flex Code
14461 status collapsed
14462
14463 \begin_layout Plain Layout
14464 LabelStringAppendix
14465 \end_layout
14466
14467 \end_inset
14468
14469 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
14470 \end_layout
14471
14472 \begin_deeper
14473 \begin_layout Itemize
14474 \begin_inset Flex Code
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478
14479 \backslash
14480 thecounter
14481 \end_layout
14482
14483 \end_inset
14484
14485 は、カウンタ
14486 \begin_inset Flex Code
14487 status collapsed
14488
14489 \begin_layout Plain Layout
14490 counter
14491 \end_layout
14492
14493 \end_inset
14494
14495
14496 \begin_inset Flex Code
14497 status collapsed
14498
14499 \begin_layout Plain Layout
14500 LabelString
14501 \end_layout
14502
14503 \end_inset
14504
14505 (または
14506 \begin_inset Newline linebreak
14507 \end_inset
14508
14509
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 LabelStringAppendix
14515 \end_layout
14516
14517 \end_inset
14518
14519 )を展開したもので置き換えられます。 
14520 \end_layout
14521
14522 \begin_layout Itemize
14523 カウンタ値は、LaTeX型マクロ
14524 \begin_inset Flex Code
14525 status collapsed
14526
14527 \begin_layout Plain Layout
14528
14529 \backslash
14530
14531 \emph on
14532 numbertype
14533 \emph default
14534 {
14535 \emph on
14536 カウンタ
14537 \emph default
14538 }
14539 \end_layout
14540
14541 \end_inset
14542
14543 を用いて表現することができます。ここで
14544 \begin_inset Flex Code
14545 status collapsed
14546
14547 \begin_layout Plain Layout
14548
14549 \emph on
14550 numbertype
14551 \end_layout
14552
14553 \end_inset
14554
14555 は以下のいずれかです。
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560 arabic
14561 \end_layout
14562
14563 \end_inset
14564
14565 :1, 2, 3,\SpecialChar \ldots{}
14566
14567 \begin_inset Flex Code
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 alph
14572 \end_layout
14573
14574 \end_inset
14575
14576 :a, b, c, \SpecialChar \ldots{}
14577 (小文字);
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 Alph
14583 \end_layout
14584
14585 \end_inset
14586
14587 :A, B, C, \SpecialChar \ldots{}
14588 (大文字);
14589 \begin_inset Flex Code
14590 status collapsed
14591
14592 \begin_layout Plain Layout
14593 roman
14594 \end_layout
14595
14596 \end_inset
14597
14598 :i, ii, iii, \SpecialChar \ldots{}
14599 (小文字ローマ数字);
14600 \begin_inset Flex Code
14601 status collapsed
14602
14603 \begin_layout Plain Layout
14604 Roman
14605 \end_layout
14606
14607 \end_inset
14608
14609 :I, II, III\SpecialChar \ldots{}
14610 (大文字ローマ数字)。
14611 \end_layout
14612
14613 \end_deeper
14614 \begin_layout Standard
14615 \begin_inset Flex Code
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619 LabelString
14620 \end_layout
14621
14622 \end_inset
14623
14624 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
14625 \begin_inset Flex Code
14626 status collapsed
14627
14628 \begin_layout Plain Layout
14629 master
14630 \end_layout
14631
14632 \end_inset
14633
14634
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 Within
14640 \end_layout
14641
14642 \end_inset
14643
14644 で定義)があるときには、文字列
14645 \begin_inset Newline linebreak
14646 \end_inset
14647
14648
14649 \begin_inset Flex Code
14650 status collapsed
14651
14652 \begin_layout Plain Layout
14653
14654 \backslash
14655 themaster.
14656 \backslash
14657 arabic{カウンタ}
14658 \end_layout
14659
14660 \end_inset
14661
14662 が使用されます。それ以外の場合は、
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667
14668 \backslash
14669 arabic{カウンタ}
14670 \end_layout
14671
14672 \end_inset
14673
14674 が使用されます。
14675 \end_layout
14676
14677 \begin_layout Description
14678 \begin_inset Flex Code
14679 status collapsed
14680
14681 \begin_layout Plain Layout
14682 LabelStringAppendix
14683 \end_layout
14684
14685 \end_inset
14686
14687  [
14688 \begin_inset Flex Code
14689 status collapsed
14690
14691 \begin_layout Plain Layout
14692 文字列
14693 \end_layout
14694
14695 \end_inset
14696
14697 =""] 
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 LabelString
14703 \end_layout
14704
14705 \end_inset
14706
14707 と同様ですが、付録で使用するためのものです。
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 PrettyFormat
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 文字列
14726 \end_layout
14727
14728 \end_inset
14729
14730 =
14731 \begin_inset Quotes erd
14732 \end_inset
14733
14734
14735 \begin_inset Quotes erd
14736 \end_inset
14737
14738 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
14739 \begin_inset space ~
14740 \end_inset
14741
14742 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
14743 す。
14744 \end_layout
14745
14746 \begin_layout Description
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 Within
14752 \end_layout
14753
14754 \end_inset
14755
14756  [
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 文字列
14762 \end_layout
14763
14764 \end_inset
14765
14766 =
14767 \begin_inset Quotes erd
14768 \end_inset
14769
14770
14771 \begin_inset Quotes erd
14772 \end_inset
14773
14774 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
14775 \begin_inset Flex Code
14776 status collapsed
14777
14778 \begin_layout Plain Layout
14779 subsection
14780 \end_layout
14781
14782 \end_inset
14783
14784
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789 section
14790 \end_layout
14791
14792 \end_inset
14793
14794 毎に番号がリセットされます。
14795 \end_layout
14796
14797 \begin_layout Subsection
14798 フォント指定
14799 \begin_inset CommandInset label
14800 LatexCommand label
14801 name "sub:フォント指定"
14802
14803 \end_inset
14804
14805
14806 \end_layout
14807
14808 \begin_layout Standard
14809 フォント指定は、以下のような形を取ります。
14810 \end_layout
14811
14812 \begin_layout LyX-Code
14813 Font 
14814 \family roman
14815 \emph on
14816 または
14817 \family default
14818 \emph default
14819  LabelFont
14820 \end_layout
14821
14822 \begin_layout LyX-Code
14823  ...
14824 \end_layout
14825
14826 \begin_layout LyX-Code
14827 EndFont
14828 \end_layout
14829
14830 \begin_layout Standard
14831 以下のコマンドを使用することができます。
14832 \end_layout
14833
14834 \begin_layout Description
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 Color
14840 \end_layout
14841
14842 \end_inset
14843
14844  [
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849
14850 \emph on
14851 none
14852 \end_layout
14853
14854 \end_inset
14855
14856
14857 \begin_inset Flex Code
14858 status collapsed
14859
14860 \begin_layout Plain Layout
14861 black
14862 \end_layout
14863
14864 \end_inset
14865
14866
14867 \begin_inset Flex Code
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871 white
14872 \end_layout
14873
14874 \end_inset
14875
14876
14877 \begin_inset Flex Code
14878 status collapsed
14879
14880 \begin_layout Plain Layout
14881 red
14882 \end_layout
14883
14884 \end_inset
14885
14886
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 green
14892 \end_layout
14893
14894 \end_inset
14895
14896
14897 \begin_inset Flex Code
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901 blue
14902 \end_layout
14903
14904 \end_inset
14905
14906
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 cyan
14912 \end_layout
14913
14914 \end_inset
14915
14916
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 magenta
14922 \end_layout
14923
14924 \end_inset
14925
14926
14927 \begin_inset Flex Code
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931 yellow
14932 \end_layout
14933
14934 \end_inset
14935
14936 ]
14937 \end_layout
14938
14939 \begin_layout Description
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 Family
14945 \end_layout
14946
14947 \end_inset
14948
14949  [
14950 \emph on
14951
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956 Roman
14957 \end_layout
14958
14959 \end_inset
14960
14961
14962 \emph default
14963
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 Sans
14969 \end_layout
14970
14971 \end_inset
14972
14973
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 Typewriter
14979 \end_layout
14980
14981 \end_inset
14982
14983
14984 \end_layout
14985
14986 \begin_layout Description
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 Misc
14992 \end_layout
14993
14994 \end_inset
14995
14996  [
14997 \begin_inset Flex Code
14998 status collapsed
14999
15000 \begin_layout Plain Layout
15001 文字列
15002 \end_layout
15003
15004 \end_inset
15005
15006 ] 有効な引数は、
15007 \begin_inset Flex Code
15008 status collapsed
15009
15010 \begin_layout Plain Layout
15011 emph
15012 \end_layout
15013
15014 \end_inset
15015
15016
15017 \begin_inset Flex Code
15018 status collapsed
15019
15020 \begin_layout Plain Layout
15021 noun
15022 \end_layout
15023
15024 \end_inset
15025
15026
15027 \begin_inset Flex Code
15028 status collapsed
15029
15030 \begin_layout Plain Layout
15031 strikeout
15032 \end_layout
15033
15034 \end_inset
15035
15036
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 underbar
15042 \end_layout
15043
15044 \end_inset
15045
15046
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 uuline
15052 \end_layout
15053
15054 \end_inset
15055
15056
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 uwave
15062 \end_layout
15063
15064 \end_inset
15065
15066
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 no_emph
15072 \end_layout
15073
15074 \end_inset
15075
15076
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 no_noun
15082 \end_layout
15083
15084 \end_inset
15085
15086
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 no_strikeout
15092 \end_layout
15093
15094 \end_inset
15095
15096
15097 \begin_inset Flex Code
15098 status collapsed
15099
15100 \begin_layout Plain Layout
15101 no_bar
15102 \end_layout
15103
15104 \end_inset
15105
15106
15107 \begin_inset Flex Code
15108 status collapsed
15109
15110 \begin_layout Plain Layout
15111 no_uuline
15112 \end_layout
15113
15114 \end_inset
15115
15116
15117 \begin_inset Flex Code
15118 status collapsed
15119
15120 \begin_layout Plain Layout
15121 no_uwave
15122 \end_layout
15123
15124 \end_inset
15125
15126 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
15127 \begin_inset Newline newline
15128 \end_inset
15129
15130 たとえば、
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 emph
15136 \end_layout
15137
15138 \end_inset
15139
15140 は強調を有効にし、
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 no_emph
15146 \end_layout
15147
15148 \end_inset
15149
15150 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
15151
15152 \begin_inset Flex Code
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 no_emph
15157 \end_layout
15158
15159 \end_inset
15160
15161 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
15162 \end_layout
15163
15164 \begin_layout Description
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 Series
15170 \end_layout
15171
15172 \end_inset
15173
15174  [
15175 \emph on
15176
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 Medium
15182 \end_layout
15183
15184 \end_inset
15185
15186
15187 \emph default
15188
15189 \begin_inset Flex Code
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193 Bold
15194 \end_layout
15195
15196 \end_inset
15197
15198
15199 \end_layout
15200
15201 \begin_layout Description
15202 \begin_inset Flex Code
15203 status collapsed
15204
15205 \begin_layout Plain Layout
15206 Shape
15207 \end_layout
15208
15209 \end_inset
15210
15211  [
15212 \emph on
15213
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 Up
15219 \end_layout
15220
15221 \end_inset
15222
15223
15224 \emph default
15225
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230 Italic
15231 \end_layout
15232
15233 \end_inset
15234
15235
15236 \begin_inset Flex Code
15237 status collapsed
15238
15239 \begin_layout Plain Layout
15240 SmallCaps
15241 \end_layout
15242
15243 \end_inset
15244
15245
15246 \begin_inset Flex Code
15247 status collapsed
15248
15249 \begin_layout Plain Layout
15250 Slanted
15251 \end_layout
15252
15253 \end_inset
15254
15255
15256 \end_layout
15257
15258 \begin_layout Description
15259 \begin_inset Flex Code
15260 status collapsed
15261
15262 \begin_layout Plain Layout
15263 Size
15264 \end_layout
15265
15266 \end_inset
15267
15268  [
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 tiny
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 small
15284 \end_layout
15285
15286 \end_inset
15287
15288
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293
15294 \emph on
15295 normal
15296 \end_layout
15297
15298 \end_inset
15299
15300
15301 \begin_inset Flex Code
15302 status collapsed
15303
15304 \begin_layout Plain Layout
15305 large
15306 \end_layout
15307
15308 \end_inset
15309
15310
15311 \begin_inset Flex Code
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 larger
15316 \end_layout
15317
15318 \end_inset
15319
15320
15321 \begin_inset Flex Code
15322 status collapsed
15323
15324 \begin_layout Plain Layout
15325 largest
15326 \end_layout
15327
15328 \end_inset
15329
15330
15331 \begin_inset Flex Code
15332 status collapsed
15333
15334 \begin_layout Plain Layout
15335 huge
15336 \end_layout
15337
15338 \end_inset
15339
15340
15341 \begin_inset Flex Code
15342 status collapsed
15343
15344 \begin_layout Plain Layout
15345 giant
15346 \end_layout
15347
15348 \end_inset
15349
15350 ]
15351 \end_layout
15352
15353 \begin_layout Subsection
15354 \begin_inset CommandInset label
15355 LatexCommand label
15356 name "sub:引用書式指定"
15357
15358 \end_inset
15359
15360 引用書式指定
15361 \end_layout
15362
15363 \begin_layout Standard
15364 (引用ダイアログやツールチップなどの)LyX内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
15365 \begin_inset Flex Code
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 CiteFormat
15370 \end_layout
15371
15372 \end_inset
15373
15374 ブロックが使用されています。このブロックは、以下のような形をしています。
15375 \end_layout
15376
15377 \begin_layout LyX-Code
15378 CiteFormat
15379 \end_layout
15380
15381 \begin_layout LyX-Code
15382  article ...
15383 \end_layout
15384
15385 \begin_layout LyX-Code
15386  book ...
15387 \end_layout
15388
15389 \begin_layout LyX-Code
15390 End
15391 \end_layout
15392
15393 \begin_layout Standard
15394 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、BibTeXファイル中に
15395 存在しうる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、LyXは、ソースコード中に定義されている既定書式を使用します。LyXは、い
15396 くつかの書式を
15397 \begin_inset Flex Code
15398 status collapsed
15399
15400 \begin_layout Plain Layout
15401 stdciteformats.inc
15402 \end_layout
15403
15404 \end_inset
15405
15406 ファイルで事前定義しており、これはほとんどのLyX文書クラスにインクルードされています。
15407 \end_layout
15408
15409 \begin_layout Standard
15410 この定義は、BibTeXキーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 %author%
15416 \end_layout
15417
15418 \end_inset
15419
15420 のように
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 %
15426 \end_layout
15427
15428 \end_inset
15429
15430 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
15431 \end_layout
15432
15433 \begin_layout LyX-Code
15434 misc %author%, 
15435 \begin_inset Quotes eld
15436 \end_inset
15437
15438 %title%
15439 \begin_inset Quotes erd
15440 \end_inset
15441
15442
15443 \end_layout
15444
15445 \begin_layout Standard
15446 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
15447 \end_layout
15448
15449 \begin_layout Standard
15450 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 {%volume%[[vol.
15456 \begin_inset space ~
15457 \end_inset
15458
15459 %volume%]]}
15460 \end_layout
15461
15462 \end_inset
15463
15464 のように、条件付きの構成を使用することができます。これは、
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 volume
15470 \end_layout
15471
15472 \end_inset
15473
15474 が存在するならば,「vol.
15475 \begin_inset space ~
15476 \end_inset
15477
15478 」とvolumeキーを出力するという意味です。また、
15479 \begin_inset Newline newline
15480 \end_inset
15481
15482
15483 \begin_inset Flex Code
15484 status collapsed
15485
15486 \begin_layout Plain Layout
15487 {%author%[[%author%]][[%editor%, ed.]]}
15488 \end_layout
15489
15490 \end_inset
15491
15492
15493 \begin_inset Newline newline
15494 \end_inset
15495
15496 のように、条件の中にelse節を含めることも可能です。ここでは、もし
15497 \begin_inset Flex Code
15498 status collapsed
15499
15500 \begin_layout Plain Layout
15501 author
15502 \end_layout
15503
15504 \end_inset
15505
15506 キーが存在するならば出力され、そうでなければeditorキーと「,
15507 \begin_inset space ~
15508 \end_inset
15509
15510 ed.」が出力されます。ここでもキーは、
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515 %
15516 \end_layout
15517
15518 \end_inset
15519
15520 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525 [[
15526 \end_layout
15527
15528 \end_inset
15529
15530 」と「
15531 \begin_inset Flex Code
15532 status collapsed
15533
15534 \begin_layout Plain Layout
15535 ]]
15536 \end_layout
15537
15538 \end_inset
15539
15540 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
15541 \end_layout
15542
15543 \begin_layout Standard
15544 もう一つ、定義中で使用することのできる文法として、
15545 \begin_inset Flex Code
15546 status collapsed
15547
15548 \begin_layout Plain Layout
15549 {!<i>!}
15550 \end_layout
15551
15552 \end_inset
15553
15554 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
15555 グを出力させたくはありませんから、HTMLタグは「
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 {!
15561 \end_layout
15562
15563 \end_inset
15564
15565 」と「
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 !}
15571 \end_layout
15572
15573 \end_inset
15574
15575 」でくるんでやらなくてはならないのです。
15576 \end_layout
15577
15578 \begin_layout Standard
15579 \begin_inset Flex Code
15580 status collapsed
15581
15582 \begin_layout Plain Layout
15583 CiteFormat
15584 \end_layout
15585
15586 \end_inset
15587
15588 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
15589 \end_layout
15590
15591 \begin_layout LyX-Code
15592 !quotetitle 
15593 \begin_inset Quotes eld
15594 \end_inset
15595
15596 %title%
15597 \begin_inset Quotes erd
15598 \end_inset
15599
15600
15601 \end_layout
15602
15603 \begin_layout Standard
15604 といった例が挙げられます。これは、短縮形ないしはマクロであり、
15605 \begin_inset Flex Code
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609 %!quotetitle%
15610 \end_layout
15611
15612 \end_inset
15613
15614 のように、これがキーであるかのように扱って使用することができます。LyXは、
15615 \begin_inset Flex Code
15616 status collapsed
15617
15618 \begin_layout Plain Layout
15619 %!quotetitle%
15620 \end_layout
15621
15622 \end_inset
15623
15624 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
15625 \end_layout
15626
15627 \begin_layout LyX-Code
15628 !funfun %funfun%
15629 \end_layout
15630
15631 \begin_layout Standard
15632 のようなことはしないでください。LyXは、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
15633 \end_layout
15634
15635 \begin_layout Standard
15636 特殊な定義の二つめは、
15637 \end_layout
15638
15639 \begin_layout LyX-Code
15640 _pptext pp.
15641 \end_layout
15642
15643 \begin_layout Standard
15644 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 %_pptext%
15650 \end_layout
15651
15652 \end_inset
15653
15654 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 stdciteformats.inc
15660 \end_layout
15661
15662 \end_inset
15663
15664 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
15665 \end_layout
15666
15667 \begin_layout Standard
15668 以下は、これらの機能を全て使った例です。
15669 \begin_inset VSpace defskip
15670 \end_inset
15671
15672
15673 \end_layout
15674
15675 \begin_layout Standard
15676 \noindent
15677
15678 \family typewriter
15679 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
15680 \end_layout
15681
15682 \begin_layout Standard
15683 \begin_inset VSpace defskip
15684 \end_inset
15685
15686 これは、
15687 \begin_inset Flex Code
15688 status collapsed
15689
15690 \begin_layout Plain Layout
15691 author
15692 \end_layout
15693
15694 \end_inset
15695
15696 キーが定義されているならば、著者とコンマを出力し、
15697 \begin_inset Flex Code
15698 status collapsed
15699
15700 \begin_layout Plain Layout
15701 author
15702 \end_layout
15703
15704 \end_inset
15705
15706 キーが定義されておらず、
15707 \begin_inset Flex Code
15708 status collapsed
15709
15710 \begin_layout Plain Layout
15711 editor
15712 \end_layout
15713
15714 \end_inset
15715
15716 キーが定義されているならば、編集者名の後に
15717 \begin_inset Flex Code
15718 status collapsed
15719
15720 \begin_layout Plain Layout
15721 _edtext
15722 \end_layout
15723
15724 \end_inset
15725
15726 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
15727 \begin_inset Flex Code
15728 status collapsed
15729
15730 \begin_layout Plain Layout
15731 stdciteformats.inc
15732 \end_layout
15733
15734 \end_inset
15735
15736 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
15737 \end_layout
15738
15739 \begin_layout Section
15740 \begin_inset CommandInset label
15741 LatexCommand label
15742 name "sec:XHTML出力のタグ"
15743
15744 \end_inset
15745
15746 XHTML出力のタグ
15747 \end_layout
15748
15749 \begin_layout Standard
15750 LaTeXやDocBookと同様、LyXのXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、LyXは適切な既定値を提供し、前述した
15751 ように、他のレイアウトタグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、LyXは、章様式
15752
15753 \begin_inset Flex Code
15754 status collapsed
15755
15756 \begin_layout Plain Layout
15757 Font
15758 \end_layout
15759
15760 \end_inset
15761
15762 宣言で提供されている情報を利用しようと試みます。
15763 \end_layout
15764
15765 \begin_layout Standard
15766 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
15767 、これが必要になる場合もあるので、LyXは、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
15768 \end_layout
15769
15770 \begin_layout Standard
15771 様式宣言や差込枠宣言の外で使用することができるタグに、
15772 \begin_inset Flex Code
15773 status collapsed
15774
15775 \begin_layout Plain Layout
15776 HTMLPreamble
15777 \end_layout
15778
15779 \end_inset
15780
15781
15782 \begin_inset Flex Code
15783 status collapsed
15784
15785 \begin_layout Plain Layout
15786 AddToHTMLPreamble
15787 \end_layout
15788
15789 \end_inset
15790
15791 の2つがあることに注意してください。これらの詳細については、第
15792 \begin_inset CommandInset ref
15793 LatexCommand ref
15794 reference "sub:汎用テキストクラスパラメータ"
15795
15796 \end_inset
15797
15798 節をご覧ください。
15799 \end_layout
15800
15801 \begin_layout Subsection
15802 \begin_inset CommandInset label
15803 LatexCommand label
15804 name "sub:段落様式-XHTML"
15805
15806 \end_inset
15807
15808 段落様式
15809 \end_layout
15810
15811 \begin_layout Standard
15812 LyXが段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対
15813 応する
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 LaTeXType
15819 \end_layout
15820
15821 \end_inset
15822
15823 タグの内容によって決定されます。
15824 \end_layout
15825
15826 \begin_layout Standard
15827 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
15828 \end_layout
15829
15830 \begin_layout LyX-Code
15831 <tag attr=
15832 \begin_inset Quotes erd
15833 \end_inset
15834
15835 value
15836 \begin_inset Quotes erd
15837 \end_inset
15838
15839 >
15840 \end_layout
15841
15842 \begin_layout LyX-Code
15843 <labeltag attr=
15844 \begin_inset Quotes erd
15845 \end_inset
15846
15847 value
15848 \begin_inset Quotes erd
15849 \end_inset
15850
15851 >ラベル</labeltag>
15852 \end_layout
15853
15854 \begin_layout LyX-Code
15855 段落の内容
15856 \end_layout
15857
15858 \begin_layout LyX-Code
15859 </tag>
15860 \end_layout
15861
15862 \begin_layout Standard
15863 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
15864 \end_layout
15865
15866 \begin_layout Standard
15867 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
15868 \end_layout
15869
15870 \begin_layout LyX-Code
15871 <tag attr=
15872 \begin_inset Quotes erd
15873 \end_inset
15874
15875 value
15876 \begin_inset Quotes erd
15877 \end_inset
15878
15879 >
15880 \end_layout
15881
15882 \begin_layout LyX-Code
15883 <itemtag attr=
15884 \begin_inset Quotes erd
15885 \end_inset
15886
15887 value
15888 \begin_inset Quotes erd
15889 \end_inset
15890
15891 ><labeltag attr=
15892 \begin_inset Quotes erd
15893 \end_inset
15894
15895 value
15896 \begin_inset Quotes erd
15897 \end_inset
15898
15899 >環境ラベル</labeltag>最初の段落。
15900 \end_layout
15901
15902 \begin_layout LyX-Code
15903 </itemtag>
15904 \end_layout
15905
15906 \begin_layout LyX-Code
15907 <itemtag>二つめの段落。</itemtag>
15908 \end_layout
15909
15910 \begin_layout LyX-Code
15911 </tag>
15912 \end_layout
15913
15914 \begin_layout Standard
15915 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
15916 \end_layout
15917
15918 \begin_layout Standard
15919 リストに関しては、次のような形になります。
15920 \end_layout
15921
15922 \begin_layout LyX-Code
15923 <tag attr=
15924 \begin_inset Quotes erd
15925 \end_inset
15926
15927 value
15928 \begin_inset Quotes erd
15929 \end_inset
15930
15931 >
15932 \end_layout
15933
15934 \begin_layout LyX-Code
15935 <itemtag attr=
15936 \begin_inset Quotes erd
15937 \end_inset
15938
15939 value
15940 \begin_inset Quotes erd
15941 \end_inset
15942
15943 ><labeltag attr=
15944 \begin_inset Quotes erd
15945 \end_inset
15946
15947 value
15948 \begin_inset Quotes erd
15949 \end_inset
15950
15951 >リストのラベル</labeltag>最初の項目。</itemtag>
15952 \end_layout
15953
15954 \begin_layout LyX-Code
15955 <itemtag attr=
15956 \begin_inset Quotes erd
15957 \end_inset
15958
15959 value
15960 \begin_inset Quotes erd
15961 \end_inset
15962
15963 ><labeltag attr=
15964 \begin_inset Quotes erd
15965 \end_inset
15966
15967 value
15968 \begin_inset Quotes erd
15969 \end_inset
15970
15971 >リストのラベル</labeltag>二つめの項目。</itemtag>
15972 \end_layout
15973
15974 \begin_layout LyX-Code
15975 </tag>
15976 \end_layout
15977
15978 \begin_layout LyX-Code
15979
15980 \end_layout
15981
15982 \begin_layout LyX-Code
15983 <tag attr=
15984 \begin_inset Quotes erd
15985 \end_inset
15986
15987 value
15988 \begin_inset Quotes erd
15989 \end_inset
15990
15991 >
15992 \end_layout
15993
15994 \begin_layout LyX-Code
15995 <labeltag attr=
15996 \begin_inset Quotes erd
15997 \end_inset
15998
15999 value
16000 \begin_inset Quotes erd
16001 \end_inset
16002
16003 >リストのラベル</labeltag><itemtag attr=
16004 \begin_inset Quotes erd
16005 \end_inset
16006
16007 value
16008 \begin_inset Quotes erd
16009 \end_inset
16010
16011 >最初の項目。</itemtag>
16012 \end_layout
16013
16014 \begin_layout LyX-Code
16015 <labeltag attr=
16016 \begin_inset Quotes erd
16017 \end_inset
16018
16019 value
16020 \begin_inset Quotes erd
16021 \end_inset
16022
16023 >リストのラベル</labeltag><itemtag attr=
16024 \begin_inset Quotes erd
16025 \end_inset
16026
16027 value
16028 \begin_inset Quotes erd
16029 \end_inset
16030
16031 >二つめの項目</itemtag>
16032 \end_layout
16033
16034 \begin_layout LyX-Code
16035 </tag>
16036 \end_layout
16037
16038 \begin_layout Standard
16039 ここで
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 labeltag
16045 \end_layout
16046
16047 \end_inset
16048
16049
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 itemtag
16055 \end_layout
16056
16057 \end_inset
16058
16059 の順序が違っていることに注意してください。どちらの順序になるかは、
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 HTMLLabelFirst
16065 \end_layout
16066
16067 \end_inset
16068
16069 の設定に依存します。もし
16070 \begin_inset Flex Code
16071 status collapsed
16072
16073 \begin_layout Plain Layout
16074 HTMLLabelFirst
16075 \end_layout
16076
16077 \end_inset
16078
16079 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
16080 \end_layout
16081
16082 \begin_layout Standard
16083 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、LyXは適切な既定値
16084 を生成するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整す
16085 る目的でここにあるものと考えてください。
16086 \end_layout
16087
16088 \begin_layout Description
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093 HTMLAttr
16094 \end_layout
16095
16096 \end_inset
16097
16098  [
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 文字列
16104 \end_layout
16105
16106 \end_inset
16107
16108 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 class=`mydiv'
16114 \end_layout
16115
16116 \end_inset
16117
16118 」のようなものです。既定においては、LyXは「
16119 \begin_inset Flex Code
16120 status collapsed
16121
16122 \begin_layout Plain Layout
16123 class=`レイアウト名'
16124 \end_layout
16125
16126 \end_inset
16127
16128 」と出力します。ここで
16129 \begin_inset Flex Code
16130 status collapsed
16131
16132 \begin_layout Plain Layout
16133 レイアウト名
16134 \end_layout
16135
16136 \end_inset
16137
16138 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
16139 \end_layout
16140
16141 \begin_layout Description
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 HTMLForceCSS
16147 \end_layout
16148
16149 \end_inset
16150
16151  [
16152 \begin_inset Flex Code
16153 status collapsed
16154
16155 \begin_layout Plain Layout
16156
16157 \emph on
16158 0
16159 \end_layout
16160
16161 \end_inset
16162
16163 ,
16164 \begin_inset space \thinspace{}
16165 \end_inset
16166
16167
16168 \begin_inset Flex Code
16169 status collapsed
16170
16171 \begin_layout Plain Layout
16172 1
16173 \end_layout
16174
16175 \end_inset
16176
16177 ] 
16178 \begin_inset Flex Code
16179 status collapsed
16180
16181 \begin_layout Plain Layout
16182 HTMLStyle
16183 \end_layout
16184
16185 \end_inset
16186
16187 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
16188 \begin_inset Flex Code
16189 status collapsed
16190
16191 \begin_layout Plain Layout
16192 1
16193 \end_layout
16194
16195 \end_inset
16196
16197 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
16198 \begin_inset Flex Code
16199 status collapsed
16200
16201 \begin_layout Plain Layout
16202 0
16203 \end_layout
16204
16205 \end_inset
16206
16207 です。
16208 \end_layout
16209
16210 \begin_layout Description
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 HTMLItem
16216 \end_layout
16217
16218 \end_inset
16219
16220  [
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 文字列
16226 \end_layout
16227
16228 \end_inset
16229
16230 ] 環境の段落に使用されるタグ。上記各例の
16231 \begin_inset Flex Code
16232 status collapsed
16233
16234 \begin_layout Plain Layout
16235 itemtag
16236 \end_layout
16237
16238 \end_inset
16239
16240 を置き換えます。既定値は
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 div
16246 \end_layout
16247
16248 \end_inset
16249
16250 です。
16251 \end_layout
16252
16253 \begin_layout Description
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 HTMLItemAttr
16259 \end_layout
16260
16261 \end_inset
16262
16263  [
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 文字列
16269 \end_layout
16270
16271 \end_inset
16272
16273 ] itemタグの属性。既定値は
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 class=`レイアウト名_item'
16279 \end_layout
16280
16281 \end_inset
16282
16283 です。ここには、様式情報は含まれては
16284 \emph on
16285 なりません
16286 \emph default
16287 。その目的のためには、
16288 \begin_inset Flex Code
16289 status collapsed
16290
16291 \begin_layout Plain Layout
16292 HTMLStyle
16293 \end_layout
16294
16295 \end_inset
16296
16297 を使用してください。
16298 \end_layout
16299
16300 \begin_layout Description
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305 HTMLLabel
16306 \end_layout
16307
16308 \end_inset
16309
16310  [
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315 文字列
16316 \end_layout
16317
16318 \end_inset
16319
16320 ] 段落と項目ラベルに使用されるタグ。上記各例の
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325 labeltag
16326 \end_layout
16327
16328 \end_inset
16329
16330 を置き換えます。
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335 LabelType
16336 \end_layout
16337
16338 \end_inset
16339
16340
16341 \begin_inset Flex Code
16342 status collapsed
16343
16344 \begin_layout Plain Layout
16345 Top_Environment
16346 \end_layout
16347
16348 \end_inset
16349
16350
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 Centered_Top_Environment
16356 \end_layout
16357
16358 \end_inset
16359
16360 の時は、既定値は
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 div
16366 \end_layout
16367
16368 \end_inset
16369
16370 ですが、それ以外の時の既定値は
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 span
16376 \end_layout
16377
16378 \end_inset
16379
16380 です。
16381 \end_layout
16382
16383 \begin_layout Description
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 HTMLLabelAttr
16389 \end_layout
16390
16391 \end_inset
16392
16393  [
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398 文字列
16399 \end_layout
16400
16401 \end_inset
16402
16403 ] labelタグの属性。既定値は
16404 \begin_inset Flex Code
16405 status collapsed
16406
16407 \begin_layout Plain Layout
16408 class=`レイアウト名_label'
16409 \end_layout
16410
16411 \end_inset
16412
16413 です。ここには、様式情報は含まれては
16414 \emph on
16415 なりません
16416 \emph default
16417 。その目的のためには、
16418 \begin_inset Flex Code
16419 status collapsed
16420
16421 \begin_layout Plain Layout
16422 HTMLStyle
16423 \end_layout
16424
16425 \end_inset
16426
16427 を使用してください。
16428 \end_layout
16429
16430 \begin_layout Description
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435 HTMLLabelFirst
16436 \end_layout
16437
16438 \end_inset
16439
16440  [
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445
16446 \emph on
16447 0
16448 \end_layout
16449
16450 \end_inset
16451
16452 ,
16453 \begin_inset space \thinspace{}
16454 \end_inset
16455
16456
16457 \begin_inset Flex Code
16458 status collapsed
16459
16460 \begin_layout Plain Layout
16461 1
16462 \end_layout
16463
16464 \end_inset
16465
16466 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
16467 tion環境の中で、
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 `<dt>\SpecialChar \ldots{}
16473 </dt><dd>\SpecialChar \ldots{}
16474 </dd>
16475 \end_layout
16476
16477 \end_inset
16478
16479 という形を得るために使用されます。既定値は
16480 \begin_inset Flex Code
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 0
16485 \end_layout
16486
16487 \end_inset
16488
16489 で、labelタグはitemタグの中に出力されます。
16490 \end_layout
16491
16492 \begin_layout Description
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 HTMLPreamble
16498 \end_layout
16499
16500 \end_inset
16501
16502  この様式が使用されたときに、
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507 <head>
16508 \end_layout
16509
16510 \end_inset
16511
16512 セクションに出力される情報。これは、たとえば、
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 onclick
16518 \end_layout
16519
16520 \end_inset
16521
16522 ハンドラを定義するために
16523 \begin_inset Flex Code
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527 <script>
16528 \end_layout
16529
16530 \end_inset
16531
16532 ブロックをインクルードするのに使用することができます。
16533 \end_layout
16534
16535 \begin_layout Description
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540 HTMLStyle
16541 \end_layout
16542
16543 \end_inset
16544
16545   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550 <style>
16551 \end_layout
16552
16553 \end_inset
16554
16555 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16556 \end_layout
16557
16558 \begin_layout Description
16559 \begin_inset Flex Code
16560 status collapsed
16561
16562 \begin_layout Plain Layout
16563 HTMLTag
16564 \end_layout
16565
16566 \end_inset
16567
16568  [
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573 文字列
16574 \end_layout
16575
16576 \end_inset
16577
16578 ] 主幹ラベルに使用されるタグ。上記各例の
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 tag
16584 \end_layout
16585
16586 \end_inset
16587
16588 を置き換えます。既定値は
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 div
16594 \end_layout
16595
16596 \end_inset
16597
16598 です。
16599 \end_layout
16600
16601 \begin_layout Description
16602 \begin_inset Flex Code
16603 status collapsed
16604
16605 \begin_layout Plain Layout
16606 HTMLTitle
16607 \end_layout
16608
16609 \end_inset
16610
16611  [
16612 \begin_inset Flex Code
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616
16617 \emph on
16618 0
16619 \end_layout
16620
16621 \end_inset
16622
16623 ,
16624 \begin_inset space \thinspace{}
16625 \end_inset
16626
16627
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 1
16633 \end_layout
16634
16635 \end_inset
16636
16637 ] この様式が、XHTMLファイルの
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 <title>
16643 \end_layout
16644
16645 \end_inset
16646
16647 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 stdtitle.inc
16653 \end_layout
16654
16655 \end_inset
16656
16657 ファイルでは、
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 title
16663 \end_layout
16664
16665 \end_inset
16666
16667 環境のこの項目を真に設定しています。
16668 \end_layout
16669
16670 \begin_layout Subsection
16671 差込枠レイアウトXHTML
16672 \end_layout
16673
16674 \begin_layout Standard
16675 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
16676 \begin_inset Foot
16677 status collapsed
16678
16679 \begin_layout Plain Layout
16680 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
16681 ん。
16682 \end_layout
16683
16684 \end_inset
16685
16686 。ここでも、LyXは適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
16687 \end_layout
16688
16689 \begin_layout Standard
16690 LyXが差込枠用に出力するXHTMLは、以下の形を取ります。
16691 \end_layout
16692
16693 \begin_layout LyX-Code
16694 <tag attr=
16695 \begin_inset Quotes erd
16696 \end_inset
16697
16698 value
16699 \begin_inset Quotes erd
16700 \end_inset
16701
16702 >
16703 \end_layout
16704
16705 \begin_layout LyX-Code
16706 <labeltag>ラベル</labeltag>
16707 \end_layout
16708
16709 \begin_layout LyX-Code
16710 <innertag attr=
16711 \begin_inset Quotes erd
16712 \end_inset
16713
16714 value
16715 \begin_inset Quotes erd
16716 \end_inset
16717
16718 >差込枠の内容。</innertag>
16719 \end_layout
16720
16721 \begin_layout LyX-Code
16722 </tag>
16723 \end_layout
16724
16725 \begin_layout Standard
16726 差込枠が多段落を許可している---つまり
16727 \begin_inset Flex Code
16728 status collapsed
16729
16730 \begin_layout Plain Layout
16731 MultiPar
16732 \end_layout
16733
16734 \end_inset
16735
16736 が真---ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなけれ
16737 ば、labelタグは省略され、ラベルがあれば、現在のところ、つねに
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 span
16743 \end_layout
16744
16745 \end_inset
16746
16747 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
16748 す。
16749 \end_layout
16750
16751 \begin_layout Description
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 HTMLAttr
16757 \end_layout
16758
16759 \end_inset
16760
16761  [
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766 文字列
16767 \end_layout
16768
16769 \end_inset
16770
16771 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 class=`myinset' onclick=`\SpecialChar \ldots{}
16777 '
16778 \end_layout
16779
16780 \end_inset
16781
16782 」のようなものです。既定においては、LyXは「
16783 \begin_inset Flex Code
16784 status collapsed
16785
16786 \begin_layout Plain Layout
16787 class=`差込枠名'
16788 \end_layout
16789
16790 \end_inset
16791
16792 」と出力します。ここで
16793 \begin_inset Flex Code
16794 status collapsed
16795
16796 \begin_layout Plain Layout
16797 差込枠名
16798 \end_layout
16799
16800 \end_inset
16801
16802 は、差込枠のLyX名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
16803 \end_layout
16804
16805 \begin_layout Description
16806 \begin_inset Flex Code
16807 status collapsed
16808
16809 \begin_layout Plain Layout
16810 HTMLForceCSS
16811 \end_layout
16812
16813 \end_inset
16814
16815  [
16816 \begin_inset Flex Code
16817 status collapsed
16818
16819 \begin_layout Plain Layout
16820
16821 \emph on
16822 0
16823 \emph default
16824 ,1
16825 \end_layout
16826
16827 \end_inset
16828
16829 ] 
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 HTMLStyle
16835 \end_layout
16836
16837 \end_inset
16838
16839 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 1
16845 \end_layout
16846
16847 \end_inset
16848
16849 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 0
16855 \end_layout
16856
16857 \end_inset
16858
16859 です。
16860 \end_layout
16861
16862 \begin_layout Description
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 HTMLInnerAttr
16868 \end_layout
16869
16870 \end_inset
16871
16872  [
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 文字列
16878 \end_layout
16879
16880 \end_inset
16881
16882 ] innerタグの属性。既定値は
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 class=`差込枠名_inner'
16888 \end_layout
16889
16890 \end_inset
16891
16892 です。
16893 \end_layout
16894
16895 \begin_layout Description
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 HTMLInnerTag
16901 \end_layout
16902
16903 \end_inset
16904
16905  [
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 文字列
16911 \end_layout
16912
16913 \end_inset
16914
16915 ] innerタグです。上記各例の
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 innertag
16921 \end_layout
16922
16923 \end_inset
16924
16925 を置き換えます。既定値はなしです。
16926 \end_layout
16927
16928 \begin_layout Description
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 HTMLIsBlock
16934 \end_layout
16935
16936 \end_inset
16937
16938  [
16939 \begin_inset Flex Code
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943 0
16944 \end_layout
16945
16946 \end_inset
16947
16948 ,
16949 \begin_inset space \thinspace{}
16950 \end_inset
16951
16952
16953 \begin_inset Flex Code
16954 status collapsed
16955
16956 \begin_layout Plain Layout
16957
16958 \emph on
16959 1
16960 \end_layout
16961
16962 \end_inset
16963
16964 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
16965 \end_layout
16966
16967 \begin_layout Description
16968 \begin_inset Flex Code
16969 status collapsed
16970
16971 \begin_layout Plain Layout
16972 HTMLLabel
16973 \end_layout
16974
16975 \end_inset
16976
16977  [
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982 文字列
16983 \end_layout
16984
16985 \end_inset
16986
16987 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
16988 \begin_inset Flex Code
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992
16993 \backslash
16994 arabic{footnote}
16995 \end_layout
16996
16997 \end_inset
16998
16999 など。これは非必須であり、既定値はありません。
17000 \end_layout
17001
17002 \begin_layout Description
17003 \begin_inset Flex Code
17004 status collapsed
17005
17006 \begin_layout Plain Layout
17007 HTMLPreamble
17008 \end_layout
17009
17010 \end_inset
17011
17012  この様式が使用されたときに、
17013 \begin_inset Flex Code
17014 status collapsed
17015
17016 \begin_layout Plain Layout
17017 <head>
17018 \end_layout
17019
17020 \end_inset
17021
17022 セクションに出力される情報。これは、たとえば、
17023 \begin_inset Flex Code
17024 status collapsed
17025
17026 \begin_layout Plain Layout
17027 onclick
17028 \end_layout
17029
17030 \end_inset
17031
17032 ハンドラを定義するために
17033 \begin_inset Flex Code
17034 status collapsed
17035
17036 \begin_layout Plain Layout
17037 <script>
17038 \end_layout
17039
17040 \end_inset
17041
17042 ブロックをインクルードするのに使用することができます。
17043 \end_layout
17044
17045 \begin_layout Description
17046 \begin_inset Flex Code
17047 status collapsed
17048
17049 \begin_layout Plain Layout
17050 HTMLStyle
17051 \end_layout
17052
17053 \end_inset
17054
17055   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 <style>
17061 \end_layout
17062
17063 \end_inset
17064
17065 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17066 \end_layout
17067
17068 \begin_layout Description
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 HTMLTag
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 tag
17094 \end_layout
17095
17096 \end_inset
17097
17098 を置き換えます。既定値は
17099 \begin_inset Flex Code
17100 status collapsed
17101
17102 \begin_layout Plain Layout
17103 MultiPar
17104 \end_layout
17105
17106 \end_inset
17107
17108 の設定に依存し、
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 MultiPar
17114 \end_layout
17115
17116 \end_inset
17117
17118 が真ならば
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 div
17124 \end_layout
17125
17126 \end_inset
17127
17128 、偽ならば
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 span
17134 \end_layout
17135
17136 \end_inset
17137
17138 です。
17139 \end_layout
17140
17141 \begin_layout Subsection
17142 フロートXHTML
17143 \end_layout
17144
17145 \begin_layout Standard
17146 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
17147 \end_layout
17148
17149 \begin_layout LyX-Code
17150 <tag attr=
17151 \begin_inset Quotes erd
17152 \end_inset
17153
17154 value
17155 \begin_inset Quotes erd
17156 \end_inset
17157
17158 >
17159 \end_layout
17160
17161 \begin_layout LyX-Code
17162 フロートの内容。
17163 \end_layout
17164
17165 \begin_layout LyX-Code
17166 </tag>
17167 \end_layout
17168
17169 \begin_layout Standard
17170 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
17171 きます。
17172 \end_layout
17173
17174 \begin_layout Description
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 HTMLAttr
17180 \end_layout
17181
17182 \end_inset
17183
17184  [
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 文字列
17190 \end_layout
17191
17192 \end_inset
17193
17194 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 class=`myfloat' onclick=`\SpecialChar \ldots{}
17200 '
17201 \end_layout
17202
17203 \end_inset
17204
17205 」のようなものです。既定においては、LyXは「
17206 \begin_inset Flex Code
17207 status collapsed
17208
17209 \begin_layout Plain Layout
17210 class=`float フロート-フロート型'
17211 \end_layout
17212
17213 \end_inset
17214
17215 」と出力します。ここで
17216 \begin_inset Flex Code
17217 status collapsed
17218
17219 \begin_layout Plain Layout
17220 フロート型
17221 \end_layout
17222
17223 \end_inset
17224
17225 は、フロート宣言で定義された(
17226 \begin_inset CommandInset ref
17227 LatexCommand ref
17228 reference "sub:フロート"
17229
17230 \end_inset
17231
17232 参照)、この型のフロートのLyX名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table
17233
17234 \end_layout
17235
17236 \begin_layout Description
17237 \begin_inset Flex Code
17238 status collapsed
17239
17240 \begin_layout Plain Layout
17241 HTMLStyle
17242 \end_layout
17243
17244 \end_inset
17245
17246   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17247 \begin_inset Flex Code
17248 status collapsed
17249
17250 \begin_layout Plain Layout
17251 <style>
17252 \end_layout
17253
17254 \end_inset
17255
17256 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17257 \end_layout
17258
17259 \begin_layout Description
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 HTMLTag
17265 \end_layout
17266
17267 \end_inset
17268
17269  [
17270 \begin_inset Flex Code
17271 status collapsed
17272
17273 \begin_layout Plain Layout
17274 文字列
17275 \end_layout
17276
17277 \end_inset
17278
17279 ] このフロートに使用されるタグ。上記各例の
17280 \begin_inset Flex Code
17281 status collapsed
17282
17283 \begin_layout Plain Layout
17284 tag
17285 \end_layout
17286
17287 \end_inset
17288
17289 を置き換えます。既定値は
17290 \begin_inset Flex Code
17291 status collapsed
17292
17293 \begin_layout Plain Layout
17294 div
17295 \end_layout
17296
17297 \end_inset
17298
17299 であり、ほとんどの場合変更する必要はありません。
17300 \end_layout
17301
17302 \begin_layout Subsection
17303 書誌情報の整形
17304 \end_layout
17305
17306 \begin_layout Standard
17307 書誌情報は、
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 CiteFormat
17313 \end_layout
17314
17315 \end_inset
17316
17317 ブロックを使用して整形することができます。詳細については、第
17318 \begin_inset CommandInset ref
17319 LatexCommand ref
17320 reference "sub:引用書式指定"
17321
17322 \end_inset
17323
17324 節を参照してください。
17325 \end_layout
17326
17327 \begin_layout Subsection
17328 LyXが生成したCSS
17329 \end_layout
17330
17331 \begin_layout Standard
17332 LyXは、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節
17333 では、LyXがどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
17334 \end_layout
17335
17336 \begin_layout Standard
17337 LyXは、現在のところ、
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 Font
17343 \end_layout
17344
17345 \end_inset
17346
17347 宣言で指定されている
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 Family
17353 \end_layout
17354
17355 \end_inset
17356
17357
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 Series
17363 \end_layout
17364
17365 \end_inset
17366
17367
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372 Shape
17373 \end_layout
17374
17375 \end_inset
17376
17377
17378 \begin_inset Flex Code
17379 status collapsed
17380
17381 \begin_layout Plain Layout
17382 Size
17383 \end_layout
17384
17385 \end_inset
17386
17387 を利用して、フォント情報についてのみCSSを自動生成します(第
17388 \begin_inset CommandInset ref
17389 LatexCommand ref
17390 reference "sub:フォント指定"
17391
17392 \end_inset
17393
17394 節を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399 Family Sans
17400 \end_layout
17401
17402 \end_inset
17403
17404 」は「
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409 font-family: sans-serif
17410 \end_layout
17411
17412 \end_inset
17413
17414 」になります。LyXの寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
17415 \begin_inset Flex URL
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419
17420 src/FontInfo.cpp
17421 \end_layout
17422
17423 \end_inset
17424
17425
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 getSizeCSS()
17431 \end_layout
17432
17433 \end_inset
17434
17435 関数をご覧ください。
17436 \end_layout
17437
17438 \begin_layout Chapter
17439 外部素材を取り込む
17440 \end_layout
17441
17442 \begin_layout Standard
17443 \begin_inset Box Shadowbox
17444 position "t"
17445 hor_pos "c"
17446 has_inner_box 1
17447 inner_pos "t"
17448 use_parbox 0
17449 use_makebox 0
17450 width "100col%"
17451 special "none"
17452 height "1in"
17453 height_special "totalheight"
17454 status open
17455
17456 \begin_layout Plain Layout
17457 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
17458 \end_layout
17459
17460 \end_inset
17461
17462
17463 \end_layout
17464
17465 \begin_layout Standard
17466 LyX外部のソースから素材を使用する方法は、取扱説明書
17467 \emph on
17468 埋込オブジェクト篇
17469 \emph default
17470 で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
17471 \end_layout
17472
17473 \begin_layout Section
17474 どのように機能するのか
17475 \end_layout
17476
17477 \begin_layout Standard
17478 外部素材の機能は、ひな型の概念に基づいています。ひな型は、LyXがある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、LyXは、Xfig
17479 の図や、様々なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
17480 \begin_inset Flex MenuItem
17481 status collapsed
17482
17483 \begin_layout Plain Layout
17484 挿入\SpecialChar \menuseparator
17485 ファイル\SpecialChar \menuseparator
17486 外部素材
17487 \end_layout
17488
17489 \end_inset
17490
17491 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
17492 すが、できればあなたが作ったすべてのひな型を投稿して、我々がLyXの後の版に取り込むことができるようにしてくださることを希望します。
17493 \end_layout
17494
17495 \begin_layout Standard
17496 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
17497 いることです。たとえば、
17498 \begin_inset Flex Code
17499 status collapsed
17500
17501 \begin_layout Plain Layout
17502 Xfig
17503 \end_layout
17504
17505 \end_inset
17506
17507 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
17508 \begin_inset Flex Code
17509 status collapsed
17510
17511 \begin_layout Plain Layout
17512 .fig
17513 \end_layout
17514
17515 \end_inset
17516
17517 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
17518 \begin_inset Flex Code
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 fig
17523 \end_layout
17524
17525 \end_inset
17526
17527 ファイルに保存します。この図をお使いの文書に取り込みたいときには、LaTeXファイルにそのままインクルードできるように、
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532 transfig
17533 \end_layout
17534
17535 \end_inset
17536
17537 を呼び出してPostScriptファイルを生成します。この場合には、
17538 \begin_inset Flex Code
17539 status collapsed
17540
17541 \begin_layout Plain Layout
17542 .fig
17543 \end_layout
17544
17545 \end_inset
17546
17547 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
17548 \end_layout
17549
17550 \begin_layout Standard
17551 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
17552 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
17553 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。LyXの外部素材マネジメ
17554 ントは、LyXがサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
17555 \end_layout
17556
17557 \begin_layout Standard
17558 LyXの外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfi
17559 gの図の場合には、LyXの外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScr
17560 iptファイルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加え
17561 るためにファイルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を
17562 上げることができるようになるのです。
17563 \end_layout
17564
17565 \begin_layout Section
17566 外用ひな型設定ファイル
17567 \end_layout
17568
17569 \begin_layout Standard
17570 LyXに自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホ
17571 ールを作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、第
17572 \begin_inset CommandInset ref
17573 LatexCommand ref
17574 reference "sec:セキュリティに関する論点"
17575
17576 \end_inset
17577
17578 節のセキュリティに関する議論を読んでおいてください。
17579 \end_layout
17580
17581 \begin_layout Standard
17582 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
17583 \end_layout
17584
17585 \begin_layout Standard
17586 外用ひな型は、
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 LyXDir/lib/external_templates
17592 \end_layout
17593
17594 \end_inset
17595
17596 ファイルで定義されています。自分用の版を
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 UserDir/external_templates
17602 \end_layout
17603
17604 \end_inset
17605
17606 に置くこともできます。
17607 \end_layout
17608
17609 \begin_layout Standard
17610 典型的なひな型は以下のようになります。
17611 \end_layout
17612
17613 \begin_layout LyX-Code
17614 Template XFig
17615 \end_layout
17616
17617 \begin_layout LyX-Code
17618 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
17619 \end_layout
17620
17621 \begin_layout LyX-Code
17622 HelpText
17623 \end_layout
17624
17625 \begin_layout LyX-Code
17626 An XFig figure.
17627 \end_layout
17628
17629 \begin_layout LyX-Code
17630 HelpTextEnd
17631 \end_layout
17632
17633 \begin_layout LyX-Code
17634 InputFormat fig
17635 \end_layout
17636
17637 \begin_layout LyX-Code
17638 FileFilter "*.fig"
17639 \end_layout
17640
17641 \begin_layout LyX-Code
17642 AutomaticProduction true
17643 \end_layout
17644
17645 \begin_layout LyX-Code
17646 Transform Rotate
17647 \end_layout
17648
17649 \begin_layout LyX-Code
17650 Transform Resize
17651 \end_layout
17652
17653 \begin_layout LyX-Code
17654 Format LaT
17655 \begin_inset ERT
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659
17660 {}
17661 \end_layout
17662
17663 \end_inset
17664
17665 eX
17666 \end_layout
17667
17668 \begin_layout LyX-Code
17669 TransformCommand Rotate RotationLatexCommand
17670 \end_layout
17671
17672 \begin_layout LyX-Code
17673 TransformCommand Resize ResizeLatexCommand
17674 \end_layout
17675
17676 \begin_layout LyX-Code
17677 Product "$$RotateFront$$ResizeFront
17678 \end_layout
17679
17680 \begin_layout LyX-Code
17681          
17682 \backslash
17683
17684 \backslash
17685 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
17686 \end_layout
17687
17688 \begin_layout LyX-Code
17689          $$ResizeBack$$RotateBack"
17690 \end_layout
17691
17692 \begin_layout LyX-Code
17693 UpdateFormat pstex
17694 \end_layout
17695
17696 \begin_layout LyX-Code
17697 UpdateResult "$$AbsPath$$Basename.pstex_t"
17698 \end_layout
17699
17700 \begin_layout LyX-Code
17701 Requirement "graphicx"
17702 \end_layout
17703
17704 \begin_layout LyX-Code
17705 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
17706 \end_layout
17707
17708 \begin_layout LyX-Code
17709 ReferencedFile latex "$$AbsPath$$Basename.eps"
17710 \end_layout
17711
17712 \begin_layout LyX-Code
17713 ReferencedFile dvi "$$AbsPath$$Basename.eps"
17714 \end_layout
17715
17716 \begin_layout LyX-Code
17717 FormatEnd
17718 \end_layout
17719
17720 \begin_layout LyX-Code
17721 Format PDFLaT
17722 \begin_inset ERT
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726
17727 {}
17728 \end_layout
17729
17730 \end_inset
17731
17732 eX
17733 \end_layout
17734
17735 \begin_layout LyX-Code
17736 TransformCommand Rotate RotationLatexCommand
17737 \end_layout
17738
17739 \begin_layout LyX-Code
17740 TransformCommand Resize ResizeLatexCommand
17741 \end_layout
17742
17743 \begin_layout LyX-Code
17744 Product "$$RotateFront$$ResizeFront
17745 \end_layout
17746
17747 \begin_layout LyX-Code
17748          
17749 \backslash
17750
17751 \backslash
17752 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
17753 \end_layout
17754
17755 \begin_layout LyX-Code
17756          $$ResizeBack$$RotateBack"
17757 \end_layout
17758
17759 \begin_layout LyX-Code
17760 UpdateFormat pdftex
17761 \end_layout
17762
17763 \begin_layout LyX-Code
17764 UpdateResult "$$AbsPath$$Basename.pdftex_t"
17765 \end_layout
17766
17767 \begin_layout LyX-Code
17768 Requirement "graphicx"
17769 \end_layout
17770
17771 \begin_layout LyX-Code
17772 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
17773 \end_layout
17774
17775 \begin_layout LyX-Code
17776 ReferencedFile latex "$$AbsPath$$Basename.pdf"
17777 \end_layout
17778
17779 \begin_layout LyX-Code
17780 FormatEnd
17781 \end_layout
17782
17783 \begin_layout LyX-Code
17784 Format Ascii
17785 \end_layout
17786
17787 \begin_layout LyX-Code
17788 Product "$$Contents(
17789 \backslash
17790 "$$AbsPath$$Basename.asc
17791 \backslash
17792 ")"
17793 \end_layout
17794
17795 \begin_layout LyX-Code
17796 UpdateFormat asciixfig
17797 \end_layout
17798
17799 \begin_layout LyX-Code
17800 UpdateResult "$$AbsPath$$Basename.asc"
17801 \end_layout
17802
17803 \begin_layout LyX-Code
17804 FormatEnd
17805 \end_layout
17806
17807 \begin_layout LyX-Code
17808 Format DocBook
17809 \end_layout
17810
17811 \begin_layout LyX-Code
17812 Product "<graphic fileref=
17813 \backslash
17814 "$$AbsOrRelPathMaster$$Basename.eps
17815 \backslash
17816 ">
17817 \end_layout
17818
17819 \begin_layout LyX-Code
17820          </graphic>"
17821 \end_layout
17822
17823 \begin_layout LyX-Code
17824 UpdateFormat eps
17825 \end_layout
17826
17827 \begin_layout LyX-Code
17828 UpdateResult "$$AbsPath$$Basename.eps"
17829 \end_layout
17830
17831 \begin_layout LyX-Code
17832 ReferencedFile docbook "$$AbsPath$$Basename.eps"
17833 \end_layout
17834
17835 \begin_layout LyX-Code
17836 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
17837 \end_layout
17838
17839 \begin_layout LyX-Code
17840 FormatEnd
17841 \end_layout
17842
17843 \begin_layout LyX-Code
17844 Product "[XFig: $$FName]"
17845 \end_layout
17846
17847 \begin_layout LyX-Code
17848 FormatEnd
17849 \end_layout
17850
17851 \begin_layout LyX-Code
17852 TemplateEnd
17853 \end_layout
17854
17855 \begin_layout Standard
17856 ご覧の通り、ひな型は
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861 Template
17862 \end_layout
17863
17864 \end_inset
17865
17866  \SpecialChar \ldots{}
17867  
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 TemplateEnd
17873 \end_layout
17874
17875 \end_inset
17876
17877 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 Format
17883 \end_layout
17884
17885 \end_inset
17886
17887  \SpecialChar \ldots{}
17888  
17889 \begin_inset Flex Code
17890 status collapsed
17891
17892 \begin_layout Plain Layout
17893 FormatEnd
17894 \end_layout
17895
17896 \end_inset
17897
17898 部があります。
17899 \end_layout
17900
17901 \begin_layout Subsection
17902 ひな型のヘッダ
17903 \end_layout
17904
17905 \begin_layout Description
17906 \begin_inset Flex Code
17907 status collapsed
17908
17909 \begin_layout Plain Layout
17910 AutomaticProduction
17911 \begin_inset space ~
17912 \end_inset
17913
17914 true|false
17915 \end_layout
17916
17917 \end_inset
17918
17919  このひな型で扱うファイルをLyXが生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
17920 \end_layout
17921
17922 \begin_layout Description
17923 \begin_inset Flex Code
17924 status collapsed
17925
17926 \begin_layout Plain Layout
17927 FileFilter
17928 \begin_inset space ~
17929 \end_inset
17930
17931 <パターン>
17932 \end_layout
17933
17934 \end_inset
17935
17936  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 .obj
17942 \end_layout
17943
17944 \end_inset
17945
17946
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 .tgo
17952 \end_layout
17953
17954 \end_inset
17955
17956 があります)、「
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 *.{obj,tgo}
17962 \end_layout
17963
17964 \end_inset
17965
17966 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
17967 \end_layout
17968
17969 \begin_layout Description
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 GuiName
17975 \begin_inset space ~
17976 \end_inset
17977
17978 <GUI名>
17979 \end_layout
17980
17981 \end_inset
17982
17983  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
17984 \end_layout
17985
17986 \begin_layout Description
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 HelpText
17992 \begin_inset space ~
17993 \end_inset
17994
17995 <文章>
17996 \begin_inset space ~
17997 \end_inset
17998
17999 HelpTextEnd
18000 \end_layout
18001
18002 \end_inset
18003
18004  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
18005 ず現れなくてはなりません。
18006 \end_layout
18007
18008 \begin_layout Description
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 InputFormat
18014 \begin_inset space ~
18015 \end_inset
18016
18017 <書式>
18018 \end_layout
18019
18020 \end_inset
18021
18022  オリジナルファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(第
18023 \begin_inset CommandInset ref
18024 LatexCommand ref
18025 reference "sec:ファイル形式"
18026
18027 \end_inset
18028
18029 章参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 *
18035 \end_layout
18036
18037 \end_inset
18038
18039 」を使用してください。この場合、LyXはファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
18040 \end_layout
18041
18042 \begin_layout Description
18043 \begin_inset Flex Code
18044 status collapsed
18045
18046 \begin_layout Plain Layout
18047 Template
18048 \begin_inset space ~
18049 \end_inset
18050
18051 <ID>
18052 \end_layout
18053
18054 \end_inset
18055
18056  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
18057 \end_layout
18058
18059 \begin_layout Description
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 Transform
18065 \begin_inset space ~
18066 \end_inset
18067
18068 Rotate|Resize|Clip|Extra
18069 \end_layout
18070
18071 \end_inset
18072
18073  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
18074 ログ中の対応するタブを使用可能にします。
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 Transform
18080 \end_layout
18081
18082 \end_inset
18083
18084 コマンド一つずつに応じて、
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 Format
18090 \end_layout
18091
18092 \end_inset
18093
18094 部に、対応する
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099 TransformCommand
18100 \end_layout
18101
18102 \end_inset
18103
18104 コマンドか
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 TransformOption
18110 \end_layout
18111
18112 \end_inset
18113
18114 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
18115 \end_layout
18116
18117 \begin_layout Subsection
18118 \begin_inset Flex Code
18119 status collapsed
18120
18121 \begin_layout Plain Layout
18122 Format
18123 \end_layout
18124
18125 \end_inset
18126
18127
18128 \end_layout
18129
18130 \begin_layout Description
18131 \begin_inset Flex Code
18132 status collapsed
18133
18134 \begin_layout Plain Layout
18135 Format
18136 \begin_inset space ~
18137 \end_inset
18138
18139 LaT
18140 \begin_inset ERT
18141 status collapsed
18142
18143 \begin_layout Plain Layout
18144
18145 {}
18146 \end_layout
18147
18148 \end_inset
18149
18150 eX|PDFLaT
18151 \begin_inset ERT
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155
18156 {}
18157 \end_layout
18158
18159 \end_inset
18160
18161 eX|PlainText|DocBook
18162 \end_layout
18163
18164 \end_inset
18165
18166  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
18167 \begin_inset Flex Code
18168 status collapsed
18169
18170 \begin_layout Plain Layout
18171 Format
18172 \end_layout
18173
18174 \end_inset
18175
18176 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
18177 ようになります。
18178 \end_layout
18179
18180 \begin_layout Description
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 Option
18186 \begin_inset space ~
18187 \end_inset
18188
18189 <名称>
18190 \begin_inset space ~
18191 \end_inset
18192
18193 <値>
18194 \end_layout
18195
18196 \end_inset
18197
18198  このコマンドは、
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203 Product
18204 \end_layout
18205
18206 \end_inset
18207
18208 での代入に使うマクロ
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 $$<名称>
18214 \end_layout
18215
18216 \end_inset
18217
18218 を新たに定義します。
18219 \begin_inset Flex Code
18220 status collapsed
18221
18222 \begin_layout Plain Layout
18223 <値>
18224 \end_layout
18225
18226 \end_inset
18227
18228 自体にも代入マクロを使うことができます。
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 Product
18234 \end_layout
18235
18236 \end_inset
18237
18238
18239 \begin_inset Flex Code
18240 status collapsed
18241
18242 \begin_layout Plain Layout
18243 <値>
18244 \end_layout
18245
18246 \end_inset
18247
18248 を直接使用するよりも優れた点は、
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 $$<名称>
18254 \end_layout
18255
18256 \end_inset
18257
18258 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
18259 \end_layout
18260
18261 \begin_layout Description
18262 \begin_inset Flex Code
18263 status collapsed
18264
18265 \begin_layout Plain Layout
18266 Product
18267 \begin_inset space ~
18268 \end_inset
18269
18270 <文>
18271 \end_layout
18272
18273 \end_inset
18274
18275  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
18276
18277 \end_layout
18278
18279 \begin_layout Description
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 Preamble
18285 \begin_inset space ~
18286 \end_inset
18287
18288 <名称>
18289 \end_layout
18290
18291 \end_inset
18292
18293  このコマンドは、LaTeXプリアンブルに入れるプリアンブル片を指定します。これは
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 PreambleDef
18299 \end_layout
18300
18301 \end_inset
18302
18303  \SpecialChar \ldots{}
18304  
18305 \begin_inset Flex Code
18306 status collapsed
18307
18308 \begin_layout Plain Layout
18309 PreambleDefEnd
18310 \end_layout
18311
18312 \end_inset
18313
18314 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
18315 \end_layout
18316
18317 \begin_layout Description
18318 \begin_inset Flex Code
18319 status collapsed
18320
18321 \begin_layout Plain Layout
18322 ReferencedFile
18323 \begin_inset space ~
18324 \end_inset
18325
18326 <書式>
18327 \begin_inset space ~
18328 \end_inset
18329
18330 <ファイル名>
18331 \end_layout
18332
18333 \end_inset
18334
18335  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
18336 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
18337 \end_layout
18338
18339 \begin_layout Description
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 Requirement
18345 \begin_inset space ~
18346 \end_inset
18347
18348 <package>
18349 \end_layout
18350
18351 \end_inset
18352
18353  必要とされるLaTeXパッケージ名。パッケージは、LaTeXプリアンブル中で
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358
18359 \backslash
18360 usepackage{}
18361 \end_layout
18362
18363 \end_inset
18364
18365 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
18366 \end_layout
18367
18368 \begin_layout Description
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 TransformCommand
18374 \begin_inset space ~
18375 \end_inset
18376
18377 Rotate
18378 \begin_inset space ~
18379 \end_inset
18380
18381 RotationLatexCommand
18382 \end_layout
18383
18384 \end_inset
18385
18386  このコマンドは、回転用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18387 \end_layout
18388
18389 \begin_layout Description
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394 TransformCommand
18395 \begin_inset space ~
18396 \end_inset
18397
18398 Resize
18399 \begin_inset space ~
18400 \end_inset
18401
18402 ResizeLatexCommand
18403 \end_layout
18404
18405 \end_inset
18406
18407  このコマンドは、伸縮用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18408 \end_layout
18409
18410 \begin_layout Description
18411 \begin_inset Flex Code
18412 status collapsed
18413
18414 \begin_layout Plain Layout
18415 TransformOption
18416 \begin_inset space ~
18417 \end_inset
18418
18419 Rotate
18420 \begin_inset space ~
18421 \end_inset
18422
18423 RotationLatexOption
18424 \end_layout
18425
18426 \end_inset
18427
18428  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18429 \end_layout
18430
18431 \begin_layout Description
18432 \begin_inset Flex Code
18433 status collapsed
18434
18435 \begin_layout Plain Layout
18436 TransformOption
18437 \begin_inset space ~
18438 \end_inset
18439
18440 Resize
18441 \begin_inset space ~
18442 \end_inset
18443
18444 ResizeLatexOption
18445 \end_layout
18446
18447 \end_inset
18448
18449  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18450 \end_layout
18451
18452 \begin_layout Description
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457 TransformOption
18458 \begin_inset space ~
18459 \end_inset
18460
18461 Clip
18462 \begin_inset space ~
18463 \end_inset
18464
18465 ClipLatexOption
18466 \end_layout
18467
18468 \end_inset
18469
18470  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18471 \end_layout
18472
18473 \begin_layout Description
18474 \begin_inset Flex Code
18475 status collapsed
18476
18477 \begin_layout Plain Layout
18478 TransformOption
18479 \begin_inset space ~
18480 \end_inset
18481
18482 Extra
18483 \begin_inset space ~
18484 \end_inset
18485
18486 ExtraLatexOption
18487 \end_layout
18488
18489 \end_inset
18490
18491  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
18492 \end_layout
18493
18494 \begin_layout Description
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 UpdateFormat
18500 \begin_inset space ~
18501 \end_inset
18502
18503 <書式>
18504 \end_layout
18505
18506 \end_inset
18507
18508  変換されたファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(
18509 \begin_inset Flex MenuItem
18510 status collapsed
18511
18512 \begin_layout Plain Layout
18513 ツール\SpecialChar \menuseparator
18514 設定:変換子
18515 \end_layout
18516
18517 \end_inset
18518
18519 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。
18520 \end_layout
18521
18522 \begin_layout Description
18523 \begin_inset Flex Code
18524 status collapsed
18525
18526 \begin_layout Plain Layout
18527 UpdateResult
18528 \begin_inset space ~
18529 \end_inset
18530
18531 <ファイル名>
18532 \end_layout
18533
18534 \end_inset
18535
18536  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
18537 \end_layout
18538
18539 \begin_layout Subsection
18540 プリアンブルの定義
18541 \end_layout
18542
18543 \begin_layout Standard
18544 外用ひな型設定ファイルには、
18545 \begin_inset Flex Code
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 PreambleDef
18550 \end_layout
18551
18552 \end_inset
18553
18554  \SpecialChar \ldots{}
18555  
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 PreambleDefEnd
18561 \end_layout
18562
18563 \end_inset
18564
18565 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 Format
18571 \end_layout
18572
18573 \end_inset
18574
18575 部で使用することができます。
18576 \end_layout
18577
18578 \begin_layout Section
18579 代入機構
18580 \end_layout
18581
18582 \begin_layout Standard
18583 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
18584 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
18585 \end_layout
18586
18587 \begin_layout Standard
18588 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
18589 \end_layout
18590
18591 \begin_layout Standard
18592 使用できるマクロは以下の通りです。
18593 \end_layout
18594
18595 \begin_layout Description
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 $$AbsOrRelPathMaster
18601 \end_layout
18602
18603 \end_inset
18604
18605  LyX親文書への絶対ファイルパスないしは相対ファイルパス
18606 \end_layout
18607
18608 \begin_layout Description
18609 \begin_inset Flex Code
18610 status collapsed
18611
18612 \begin_layout Plain Layout
18613 $$AbsOrRelPathParent
18614 \end_layout
18615
18616 \end_inset
18617
18618  LyX文書への絶対ファイルパスないしは相対ファイルパス
18619 \end_layout
18620
18621 \begin_layout Description
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 $$AbsPath
18627 \end_layout
18628
18629 \end_inset
18630
18631  絶対ファイルパス
18632 \end_layout
18633
18634 \begin_layout Description
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 $$Basename
18640 \end_layout
18641
18642 \end_inset
18643
18644  パスおよび拡張子を除いたファイル名
18645 \end_layout
18646
18647 \begin_layout Description
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652 $$Contents(
18653 \begin_inset Quotes eld
18654 \end_inset
18655
18656 filename.ext
18657 \begin_inset Quotes erd
18658 \end_inset
18659
18660 )
18661 \end_layout
18662
18663 \end_inset
18664
18665  このマクロは、
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 filename.ext
18671 \end_layout
18672
18673 \end_inset
18674
18675 と云う名のファイルの中身を展開します。
18676 \end_layout
18677
18678 \begin_layout Description
18679 \begin_inset Flex Code
18680 status collapsed
18681
18682 \begin_layout Plain Layout
18683 $$Extension
18684 \end_layout
18685
18686 \end_inset
18687
18688  ファイル拡張子(点を含む)
18689 \end_layout
18690
18691 \begin_layout Description
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 $$FName
18697 \end_layout
18698
18699 \end_inset
18700
18701  外部素材ダイアログで指定されたファイルのファイル名。これはLyX文書への絶対パスでも良いですし、相対パスでも構いません。
18702 \end_layout
18703
18704 \begin_layout Description
18705 \begin_inset Flex Code
18706 status collapsed
18707
18708 \begin_layout Plain Layout
18709 $$FPath
18710 \end_layout
18711
18712 \end_inset
18713
18714  
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 $$FName
18720 \end_layout
18721
18722 \end_inset
18723
18724 のパス部分(LyX文書への絶対パス名か相対パス名)
18725 \end_layout
18726
18727 \begin_layout Description
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 $$RelPathMaster
18733 \end_layout
18734
18735 \end_inset
18736
18737  LyX親文書への相対ファイルパス
18738 \end_layout
18739
18740 \begin_layout Description
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 $$RelPathParent
18746 \end_layout
18747
18748 \end_inset
18749
18750  LyX文書への相対ファイルパス
18751 \end_layout
18752
18753 \begin_layout Description
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 $$Sysdir
18759 \end_layout
18760
18761 \end_inset
18762
18763  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、LyXに同梱されているヘルパースクリプト群を示したりするのに使用されます。
18764 \end_layout
18765
18766 \begin_layout Description
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 $$Tempname
18772 \end_layout
18773
18774 \end_inset
18775
18776  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
18777 \end_layout
18778
18779 \begin_layout Standard
18780 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 $$AbsPath$$Basename$$Extension
18786 \end_layout
18787
18788 \end_inset
18789
18790 のようにして作ることができます。
18791 \end_layout
18792
18793 \begin_layout Standard
18794 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 Transform
18800 \end_layout
18801
18802 \end_inset
18803
18804 コマンドと
18805 \begin_inset Flex Code
18806 status collapsed
18807
18808 \begin_layout Plain Layout
18809 TransformCommand
18810 \end_layout
18811
18812 \end_inset
18813
18814 コマンドが有効にされている場合、
18815 \begin_inset Flex Code
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819 Product
18820 \end_layout
18821
18822 \end_inset
18823
18824 コマンドは、これらに加えて以下の代入もサポートします。
18825 \end_layout
18826
18827 \begin_layout Description
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 $$ResizeFront
18833 \end_layout
18834
18835 \end_inset
18836
18837  伸縮コマンドの前置部。
18838 \end_layout
18839
18840 \begin_layout Description
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 $$ResizeBack
18846 \end_layout
18847
18848 \end_inset
18849
18850  伸縮コマンドの後置部。
18851 \end_layout
18852
18853 \begin_layout Description
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 $$RotateFront
18859 \end_layout
18860
18861 \end_inset
18862
18863  回転コマンドの前置部。
18864 \end_layout
18865
18866 \begin_layout Description
18867 \begin_inset Flex Code
18868 status collapsed
18869
18870 \begin_layout Plain Layout
18871 $$RotateBack
18872 \end_layout
18873
18874 \end_inset
18875
18876  回転コマンドの後置部。
18877 \end_layout
18878
18879 \begin_layout Standard
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 Option
18885 \end_layout
18886
18887 \end_inset
18888
18889 コマンドの値に入れる文字列では、
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 Transform
18895 \end_layout
18896
18897 \end_inset
18898
18899 コマンドと
18900 \begin_inset Flex Code
18901 status collapsed
18902
18903 \begin_layout Plain Layout
18904 TransformOption
18905 \end_layout
18906
18907 \end_inset
18908
18909 コマンドが有効にされていれば、以下の代入もサポートされます。
18910 \end_layout
18911
18912 \begin_layout Description
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 $$Clip
18918 \end_layout
18919
18920 \end_inset
18921
18922  切り抜きオプション。
18923 \end_layout
18924
18925 \begin_layout Description
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 $$Extra
18931 \end_layout
18932
18933 \end_inset
18934
18935  追加オプション。
18936 \end_layout
18937
18938 \begin_layout Description
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 $$Resize
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 $$Rotate
18957 \end_layout
18958
18959 \end_inset
18960
18961  回転オプション。
18962 \end_layout
18963
18964 \begin_layout Standard
18965 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
18966 \end_layout
18967
18968 \begin_layout Enumerate
18969 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
18970 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
18971 \end_layout
18972
18973 \begin_layout Enumerate
18974 LaTeXは、相対ファイル名に関して、LyXや入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。LyXにとって相対ファイル名とは、常
18975 にこのファイル名が書かれている文書に対して相対的なものになります。LaTeXにとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一
18976 つの文書しかないときには同じですが、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、LaTeXに提示されるときに変換され
18977 なくてはならないのです。幸い、正しいマクロを選びさえすれば、これはLyXが自動的に行ってくれます。
18978 \end_layout
18979
18980 \begin_layout Standard
18981 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
18982 \end_layout
18983
18984 \begin_layout Itemize
18985 絶対パスが必要とされるときには
18986 \begin_inset Flex Code
18987 status collapsed
18988
18989 \begin_layout Plain Layout
18990 $$AbsPath
18991 \end_layout
18992
18993 \end_inset
18994
18995 を使う。
18996 \end_layout
18997
18998 \begin_layout Itemize
18999 代入された文字列が、LaTeXインプットの一種である場合には、
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 $$AbsOrRelPathMaster
19005 \end_layout
19006
19007 \end_inset
19008
19009 を使う。
19010 \end_layout
19011
19012 \begin_layout Itemize
19013 それ以外ならば、ユーザの選択を尊重するために
19014 \begin_inset Flex Code
19015 status collapsed
19016
19017 \begin_layout Plain Layout
19018 $$AbsOrRelPathParent
19019 \end_layout
19020
19021 \end_inset
19022
19023 を使う。
19024 \end_layout
19025
19026 \begin_layout Standard
19027 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
19028 \begin_inset Flex Code
19029 status collapsed
19030
19031 \begin_layout Plain Layout
19032 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
19033 \end_layout
19034
19035 \end_inset
19036
19037 というコマンドがあります。この場合、
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 .pstex_t
19043 \end_layout
19044
19045 \end_inset
19046
19047 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
19048 \end_layout
19049
19050 \begin_layout Section
19051 セキュリティに関する論点
19052 \begin_inset CommandInset label
19053 LatexCommand label
19054 name "sec:セキュリティに関する論点"
19055
19056 \end_inset
19057
19058
19059 \end_layout
19060
19061 \begin_layout Standard
19062 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
19063 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
19064 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
19065 \end_layout
19066
19067 \begin_layout Standard
19068 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、LyXが安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発
19069 生しません。これは、外部プログラムが
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 system
19075 \end_layout
19076
19077 \end_inset
19078
19079 システムコールではなく、
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 execvp
19085 \end_layout
19086
19087 \end_inset
19088
19089 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
19090 \end_layout
19091
19092 \begin_layout Standard
19093 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
19094 できません。これは、LyXの安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安
19095 全なスクリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
19096 \end_layout
19097
19098 \begin_layout Standard
19099 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
19100 うになるため、一般的には、統御下に置いた状態で
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 execvp
19106 \end_layout
19107
19108 \end_inset
19109
19110 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
19111 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
19112 \emph on
19113 間違いなく
19114 \emph default
19115 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
19116 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されているLyXには、安全でないひな型は決して入ってい
19117 ません。
19118 \end_layout
19119
19120 \begin_layout Standard
19121 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
19122 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
19123 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、LyX開発チームに相談してみてください。そしてこの相談は、管理されていない環境下で
19124 これを使用する前に、行うようにしてください。
19125 \end_layout
19126
19127 \begin_layout Chapter
19128 \start_of_appendix
19129
19130 \lang english
19131 Names of available colors to be used in layouts
19132 \begin_inset CommandInset label
19133 LatexCommand label
19134 name "chap:Names-of-colors"
19135
19136 \end_inset
19137
19138
19139 \end_layout
19140
19141 \begin_layout Standard
19142
19143 \lang english
19144 The colors listed here are the standard colors and the those that you can
19145  adjust in the LyX preferences.
19146 \end_layout
19147
19148 \begin_layout Description
19149
19150 \lang english
19151 none
19152 \family roman
19153 \series medium
19154 \shape up
19155 \size normal
19156 \emph off
19157 \bar no
19158 \strikeout off
19159 \uuline off
19160 \uwave off
19161 \noun off
19162 \color none
19163  No particular color -- clear or default
19164 \end_layout
19165
19166 \begin_layout Description
19167
19168 \lang english
19169 black
19170 \end_layout
19171
19172 \begin_layout Description
19173
19174 \lang english
19175 white
19176 \end_layout
19177
19178 \begin_layout Description
19179
19180 \lang english
19181 red
19182 \end_layout
19183
19184 \begin_layout Description
19185
19186 \lang english
19187 green
19188 \end_layout
19189
19190 \begin_layout Description
19191
19192 \lang english
19193 blue
19194 \end_layout
19195
19196 \begin_layout Description
19197
19198 \lang english
19199 cyan
19200 \end_layout
19201
19202 \begin_layout Description
19203
19204 \lang english
19205 magenta
19206 \end_layout
19207
19208 \begin_layout Description
19209
19210 \lang english
19211 yellow
19212 \end_layout
19213
19214 \begin_layout Description
19215
19216 \lang english
19217 cursor Cursor color
19218 \end_layout
19219
19220 \begin_layout Description
19221
19222 \lang english
19223 background Background color
19224 \end_layout
19225
19226 \begin_layout Description
19227
19228 \lang english
19229 foreground Foreground color
19230 \end_layout
19231
19232 \begin_layout Description
19233
19234 \lang english
19235 selection Background color of selected text
19236 \end_layout
19237
19238 \begin_layout Description
19239
19240 \lang english
19241 selectiontext Foreground color of selected text
19242 \end_layout
19243
19244 \begin_layout Description
19245
19246 \lang english
19247 latex Text color in LaTeX mode 
19248 \end_layout
19249
19250 \begin_layout Description
19251
19252 \lang english
19253 preview The color used for previews
19254 \end_layout
19255
19256 \begin_layout Description
19257
19258 \lang english
19259 inlinecompletion Inline completion color 
19260 \end_layout
19261
19262 \begin_layout Description
19263
19264 \lang english
19265 nonunique_inlinecompletion Inline completion color for the non-unique part
19266 \end_layout
19267
19268 \begin_layout Description
19269
19270 \lang english
19271 notelabel Label color for notes
19272 \end_layout
19273
19274 \begin_layout Description
19275
19276 \lang english
19277 notebg Background color of notes
19278 \end_layout
19279
19280 \begin_layout Description
19281
19282 \lang english
19283 commentlabel Label color for comments
19284 \end_layout
19285
19286 \begin_layout Description
19287
19288 \lang english
19289 commentbg Background color of comments
19290 \end_layout
19291
19292 \begin_layout Description
19293
19294 \lang english
19295 greyedoutlabel Label color for greyedout insets
19296 \end_layout
19297
19298 \begin_layout Description
19299
19300 \lang english
19301 greyedouttext Color for greyedout inset text
19302 \end_layout
19303
19304 \begin_layout Description
19305
19306 \lang english
19307 greyedoutbg Background color of greyedout inset
19308 \end_layout
19309
19310 \begin_layout Description
19311
19312 \lang english
19313 shadedbg Background color of shaded box
19314 \end_layout
19315
19316 \begin_layout Description
19317
19318 \lang english
19319 listingsbg Background color of listings inset
19320 \end_layout
19321
19322 \begin_layout Description
19323
19324 \lang english
19325 branchlabel Label color for branches
19326 \end_layout
19327
19328 \begin_layout Description
19329
19330 \lang english
19331 footlabel Label color for footnotes
19332 \end_layout
19333
19334 \begin_layout Description
19335
19336 \lang english
19337 indexlabel Label color for index insets 
19338 \end_layout
19339
19340 \begin_layout Description
19341
19342 \lang english
19343 marginlabel Label color for margin notes 
19344 \end_layout
19345
19346 \begin_layout Description
19347
19348 \lang english
19349 phantomtext Text color for phantom insets 
19350 \end_layout
19351
19352 \begin_layout Description
19353
19354 \lang english
19355 urllabel Label color for URL insets
19356 \end_layout
19357
19358 \begin_layout Description
19359
19360 \lang english
19361 urltext Color for URL inset text
19362 \end_layout
19363
19364 \begin_layout Description
19365
19366 \lang english
19367 depthbar Color for the depth bars in the margin
19368 \end_layout
19369
19370 \begin_layout Description
19371
19372 \lang english
19373 language Color for marking foreign language words
19374 \end_layout
19375
19376 \begin_layout Description
19377
19378 \lang english
19379 command Text color for command insets
19380 \end_layout
19381
19382 \begin_layout Description
19383
19384 \lang english
19385 commandbg Background color for command insets 
19386 \end_layout
19387
19388 \begin_layout Description
19389
19390 \lang english
19391 commandframe Frame color for command insets
19392 \end_layout
19393
19394 \begin_layout Description
19395
19396 \lang english
19397 special Special chars text color
19398 \end_layout
19399
19400 \begin_layout Description
19401
19402 \lang english
19403 graphicsbg Graphics inset background color 
19404 \end_layout
19405
19406 \begin_layout Description
19407
19408 \lang english
19409 math Math inset text color 
19410 \end_layout
19411
19412 \begin_layout Description
19413
19414 \lang english
19415 mathbg Math inset background color
19416 \end_layout
19417
19418 \begin_layout Description
19419
19420 \lang english
19421 mathmacrobg Macro math inset background color
19422 \end_layout
19423
19424 \begin_layout Description
19425
19426 \lang english
19427 mathmacrohoverbg Macro math inset background color hovered
19428 \end_layout
19429
19430 \begin_layout Description
19431
19432 \lang english
19433 mathmacrolabel Macro math label color
19434 \end_layout
19435
19436 \begin_layout Description
19437
19438 \lang english
19439 mathmacroframe Macro math frame color
19440 \end_layout
19441
19442 \begin_layout Description
19443
19444 \lang english
19445 mathmacroblend Macro math blended color
19446 \end_layout
19447
19448 \begin_layout Description
19449
19450 \lang english
19451 mathmacrooldarg Macro template color for old parameters 
19452 \end_layout
19453
19454 \begin_layout Description
19455
19456 \lang english
19457 mathmacronewarg Macro template color for new parameters
19458 \end_layout
19459
19460 \begin_layout Description
19461
19462 \lang english
19463 mathframe Math inset frame color under focus 
19464 \end_layout
19465
19466 \begin_layout Description
19467
19468 \lang english
19469 mathcorners Math inset frame color not under focus
19470 \end_layout
19471
19472 \begin_layout Description
19473
19474 \lang english
19475 mathline Math line color
19476 \end_layout
19477
19478 \begin_layout Description
19479
19480 \lang english
19481 collapsable Collapsable insets text 
19482 \end_layout
19483
19484 \begin_layout Description
19485
19486 \lang english
19487 collapsableframe Collapsable insets frame
19488 \end_layout
19489
19490 \begin_layout Description
19491
19492 \lang english
19493 insetbg Inset marker background color
19494 \end_layout
19495
19496 \begin_layout Description
19497
19498 \lang english
19499 insetframe Inset marker frame color
19500 \end_layout
19501
19502 \begin_layout Description
19503
19504 \lang english
19505 error Error box text color
19506 \end_layout
19507
19508 \begin_layout Description
19509
19510 \lang english
19511 eolmarker End of line marker color
19512 \end_layout
19513
19514 \begin_layout Description
19515
19516 \lang english
19517 added_space Added space colour
19518 \end_layout
19519
19520 \begin_layout Description
19521
19522 \lang english
19523 appendix Appendix marker color
19524 \end_layout
19525
19526 \begin_layout Description
19527
19528 \lang english
19529 changebar Changebar color
19530 \end_layout
19531
19532 \begin_layout Description
19533
19534 \lang english
19535 deletedtext Deleted text color
19536 \end_layout
19537
19538 \begin_layout Description
19539
19540 \lang english
19541 addedtext Added text color
19542 \end_layout
19543
19544 \begin_layout Description
19545
19546 \lang english
19547 changedtextauthor1 Changed text color author 1
19548 \end_layout
19549
19550 \begin_layout Description
19551
19552 \lang english
19553 changedtextauthor2 Changed text color author 2
19554 \end_layout
19555
19556 \begin_layout Description
19557
19558 \lang english
19559 changedtextauthor3 Changed text color author 3
19560 \end_layout
19561
19562 \begin_layout Description
19563
19564 \lang english
19565 changedtextauthor4 Changed text color author 4
19566 \end_layout
19567
19568 \begin_layout Description
19569
19570 \lang english
19571 changedtextauthor5 Changed text color author 5
19572 \end_layout
19573
19574 \begin_layout Description
19575
19576 \lang english
19577 deletedtextmodifier Deleted text modifying color
19578 \end_layout
19579
19580 \begin_layout Description
19581
19582 \lang english
19583 tabularline Table line color
19584 \end_layout
19585
19586 \begin_layout Description
19587
19588 \lang english
19589 tabularonoffline Table line color 
19590 \end_layout
19591
19592 \begin_layout Description
19593
19594 \lang english
19595 bottomarea Bottom area color
19596 \end_layout
19597
19598 \begin_layout Description
19599
19600 \lang english
19601 newpage New page color 
19602 \end_layout
19603
19604 \begin_layout Description
19605
19606 \lang english
19607 pagebreak Page break color
19608 \end_layout
19609
19610 \begin_layout Description
19611
19612 \lang english
19613 buttonframe Color used for button frame
19614 \end_layout
19615
19616 \begin_layout Description
19617
19618 \lang english
19619 buttonbg Color used for bottom background
19620 \end_layout
19621
19622 \begin_layout Description
19623
19624 \lang english
19625 buttonhoverbg Color used for buttom under focus 
19626 \end_layout
19627
19628 \begin_layout Description
19629
19630 \lang english
19631 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
19632  
19633 \end_layout
19634
19635 \begin_layout Description
19636
19637 \lang english
19638 previewframe Preview frame color
19639 \end_layout
19640
19641 \begin_layout Description
19642
19643 \lang english
19644 inherit Color is inherited 
19645 \end_layout
19646
19647 \begin_layout Description
19648
19649 \lang english
19650 regexpframe Color for regexp frame
19651 \end_layout
19652
19653 \begin_layout Description
19654
19655 \lang english
19656 ignore For ignoring updates of a color
19657 \end_layout
19658
19659 \end_body
19660 \end_document