]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
8988349996852fae68a0bb21504194c6cad18d12
[features.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass jbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}
21   {\usepackage{lmodern}}{}
22
23 \fi % end if pdflatex is used
24
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
29   \frontmatter
30   \pdfbookmark[1]{\contentsname}{}
31   \myTOC
32   \mainmatter }
33
34 % Added only for Japanese translation
35 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
36 \usepackage[T1]{fontenc}
37 % Below is to correct PDF bookmarks
38 % but doesn't work because hyperref is automatically called.
39 % Modify \usepackage{hyperref} line manually
40 %\usepackage[dvipdfm,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc]{hyperref}
41 %\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
42 %\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
43 \end_preamble
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
46 \begin_modules
47 logicalmkup
48 \end_modules
49 \maintain_unincluded_children false
50 \begin_local_layout
51 Format 7
52 InsetLayout CharStyle:MenuItem
53 LyxType               charstyle
54 LabelString           menu
55 LatexType             command
56 LatexName             menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 End
64 \end_local_layout
65 \language japanese
66 \language_package default
67 \inputencoding auto
68 \fontencoding global
69 \font_roman default
70 \font_sans default
71 \font_typewriter default
72 \font_default_family default
73 \use_non_tex_fonts false
74 \font_sc false
75 \font_osf false
76 \font_sf_scale 100
77 \font_tt_scale 100
78
79 \graphics default
80 \default_output_format default
81 \output_sync 0
82 \bibtex_command default
83 \index_command default
84 \paperfontsize 12
85 \spacing single
86 \use_hyperref true
87 \pdf_title "LyX Configuration Manual"
88 \pdf_author "LyX Team"
89 \pdf_subject "LyX-Documentation Customization"
90 \pdf_keywords "LyX, documentation, customization"
91 \pdf_bookmarks true
92 \pdf_bookmarksnumbered true
93 \pdf_bookmarksopen true
94 \pdf_bookmarksopenlevel 1
95 \pdf_breaklinks false
96 \pdf_pdfborder false
97 \pdf_colorlinks true
98 \pdf_backref false
99 \pdf_pdfusetitle false
100 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
101 \papersize default
102 \use_geometry false
103 \use_amsmath 0
104 \use_esint 0
105 \use_mhchem 0
106 \use_mathdots 0
107 \cite_engine basic
108 \use_bibtopic false
109 \use_indices false
110 \paperorientation portrait
111 \suppress_date false
112 \use_refstyle 0
113 \branch OutDated
114 \selected 0
115 \filename_suffix 0
116 \color #f5fae7
117 \end_branch
118 \index 索引
119 \shortcut idx
120 \color #008000
121 \end_index
122 \secnumdepth 3
123 \tocdepth 3
124 \paragraph_separation indent
125 \paragraph_indentation default
126 \quotes_language english
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tracking_changes false
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 LyXの高度設定
141 \begin_inset Newline newline
142 \end_inset
143
144 熟練ユーザのための各機能
145 \end_layout
146
147 \begin_layout Author
148 LyX開発チーム
149 \begin_inset Foot
150 status collapsed
151
152 \begin_layout Plain Layout
153 \noindent
154 もしコメントや誤りの修正をお持ちでしたら、LyX文書化メーリングリスト
155 \begin_inset CommandInset href
156 LatexCommand href
157 target "lyx-docs@lists.lyx.org"
158 type "mailto:"
159
160 \end_inset
161
162 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
163 ast.net>をccにして送ってください。
164 \end_layout
165
166 \end_inset
167
168
169 \begin_inset Newline newline
170 \end_inset
171
172
173 \begin_inset Newline newline
174 \end_inset
175
176 第2.0.x版 
177 \end_layout
178
179 \begin_layout Standard
180 \begin_inset CommandInset toc
181 LatexCommand tableofcontents
182
183 \end_inset
184
185
186 \begin_inset Note Note
187 status open
188
189 \begin_layout Plain Layout
190 本文書を修正する際には、変更追跡機能を使用してください。これによって、
191 \end_layout
192
193 \begin_layout Plain Layout
194 LyX翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
195 \end_layout
196
197 \end_inset
198
199
200 \end_layout
201
202 \begin_layout Chapter
203 はじめに
204 \end_layout
205
206 \begin_layout Standard
207 この取扱説明書は、LyXに備わっている高度設定機能を取り扱います。ここでは、短絡キーや画面プレビューオプション、プリンタオプション、LyXサーバ経由でのLyXへ
208 のコマンド送信、国際化、新しいLaTeXクラスやLyXレイアウトの導入などの題材について論じます。おそらくは変更可能なことすべてについて触れることは無理でしょう
209 が—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高度設定については説明を行い、わかりにくいものにつ
210 いては正しい方向を指し示すことができるようにしていくつもりです。
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset Branch OutDated
215 status collapsed
216
217 \begin_layout Standard
218 Information from previous versions of this document that now seems to be
219  outdated is contained in the OutDated branch of this document.
220  By default, this information will not appear in the LaTeX output.
221 \end_layout
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 LyX設定ファイル
230 \end_layout
231
232 \begin_layout Standard
233 本章の目的は、LyX設定ファイル群を理解するための一助となることです。本章を読み進める前に、
234 \begin_inset Flex MenuItem
235 status collapsed
236
237 \begin_layout Plain Layout
238 ヘルプ\SpecialChar \menuseparator
239 L
240 \begin_inset ERT
241 status collapsed
242
243 \begin_layout Plain Layout
244
245 {}
246 \end_layout
247
248 \end_inset
249
250 yXについて
251 \end_layout
252
253 \end_inset
254
255 を使って、LyXライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、LyXがシステム全体の設定ファイルを置いておくと
256 ころです。一方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
257 \begin_inset Flex Code
258 status collapsed
259
260 \begin_layout Plain Layout
261 L
262 \begin_inset ERT
263 status collapsed
264
265 \begin_layout Plain Layout
266
267 {}
268 \end_layout
269
270 \end_inset
271
272 yXDir
273 \end_layout
274
275 \end_inset
276
277 と呼び、後者を
278 \begin_inset Flex MenuItem
279 status collapsed
280
281 \begin_layout Plain Layout
282 UserDir
283 \end_layout
284
285 \end_inset
286
287 と呼ぶことにします。
288 \end_layout
289
290 \begin_layout Section
291 \begin_inset Flex Code
292 status collapsed
293
294 \begin_layout Plain Layout
295 L
296 \begin_inset ERT
297 status collapsed
298
299 \begin_layout Plain Layout
300
301 {}
302 \end_layout
303
304 \end_inset
305
306 yXDir
307 \end_layout
308
309 \end_inset
310
311 にはなにがあるの?
312 \end_layout
313
314 \begin_layout Standard
315 \begin_inset Flex Code
316 status collapsed
317
318 \begin_layout Plain Layout
319 L
320 \begin_inset ERT
321 status collapsed
322
323 \begin_layout Plain Layout
324
325 {}
326 \end_layout
327
328 \end_inset
329
330 yXDir
331 \end_layout
332
333 \end_inset
334
335 とそのサブディレクトリには、多くのファイルがあり、LyXの挙動を高度設定するのに使用されます。これらのファイルの多くは、LyX内の
336 \begin_inset Flex MenuItem
337 status collapsed
338
339 \begin_layout Plain Layout
340 ツール\SpecialChar \menuseparator
341 設定
342 \end_layout
343
344 \end_inset
345
346 ダイアログから変更することができます。LyX中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、Ly
347 Xの他の多くの内部動作は、
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 L
353 \begin_inset ERT
354 status collapsed
355
356 \begin_layout Plain Layout
357
358 {}
359 \end_layout
360
361 \end_inset
362
363 yXDir
364 \end_layout
365
366 \end_inset
367
368 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
369 \end_layout
370
371 \begin_layout Subsection
372 自動的に生成されるファイル
373 \end_layout
374
375 \begin_layout Standard
376 \begin_inset Flex MenuItem
377 status collapsed
378
379 \begin_layout Plain Layout
380 UserDir
381 \end_layout
382
383 \end_inset
384
385 にある各ファイルは、LyXが自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされ
386 てしまうので、一般的には修正しないことが望まれます。
387 \end_layout
388
389 \begin_layout Labeling
390 \labelwidthstring 00.00.0000
391 \begin_inset Flex Code
392 status collapsed
393
394 \begin_layout Plain Layout
395 lyxrc.defaults
396 \end_layout
397
398 \end_inset
399
400  このファイルには、様々な既定コマンドが置かれています。
401 \end_layout
402
403 \begin_layout Labeling
404 \labelwidthstring 00.00.0000
405 \begin_inset Flex Code
406 status collapsed
407
408 \begin_layout Plain Layout
409 packages.lst
410 \end_layout
411
412 \end_inset
413
414  このファイルには、LyXが認識したパッケージの一覧が収められています。現在のところ、これはLyXプログラム自体には使用されていませんが、抽出された情報その他は
415
416 \begin_inset Flex MenuItem
417 status collapsed
418
419 \begin_layout Plain Layout
420 ヘルプ\SpecialChar \menuseparator
421 LaT
422 \begin_inset ERT
423 status collapsed
424
425 \begin_layout Plain Layout
426
427 {}
428 \end_layout
429
430 \end_inset
431
432 eXの設定
433 \end_layout
434
435 \end_inset
436
437 で見ることができます。
438 \end_layout
439
440 \begin_layout Labeling
441 \labelwidthstring 00.00.0000
442 \begin_inset Flex Code
443 status collapsed
444
445 \begin_layout Plain Layout
446 textclass.lst
447 \end_layout
448
449 \end_inset
450
451  ユーザの
452 \begin_inset Flex Code
453 status collapsed
454
455 \begin_layout Plain Layout
456 layout/
457 \end_layout
458
459 \end_inset
460
461 ディレクトリで検出されたテキストクラスと、関連したLaTeX文書クラスおよびその説明の一覧です。
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 lyxmodules.lst
471 \end_layout
472
473 \end_inset
474
475  ユーザの
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 layout/
481 \end_layout
482
483 \end_inset
484
485 ディレクトリで検出されたレイアウトモジュールの一覧です。
486 \end_layout
487
488 \begin_layout Labeling
489 \labelwidthstring 00.00.0000
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494 *files.lst
495 \end_layout
496
497 \end_inset
498
499  ご使用のシステムで検出された様々な種類のLaTeX関連ファイルの一覧です。
500 \end_layout
501
502 \begin_layout Labeling
503 \labelwidthstring 00.00.0000
504 \begin_inset Flex Code
505 status collapsed
506
507 \begin_layout Plain Layout
508 doc/LaT
509 \begin_inset ERT
510 status collapsed
511
512 \begin_layout Plain Layout
513
514 {}
515 \end_layout
516
517 \end_inset
518
519 eXConfig.lyx
520 \end_layout
521
522 \end_inset
523
524  このファイルは、自動設定中に
525 \begin_inset Flex Code
526 status collapsed
527
528 \begin_layout Plain Layout
529 LaT
530 \begin_inset ERT
531 status collapsed
532
533 \begin_layout Plain Layout
534
535 {}
536 \end_layout
537
538 \end_inset
539
540 eXConfig.lyx.in
541 \end_layout
542
543 \end_inset
544
545 から自動的に生成されます。ご使用中のLaTeXの設定に関する情報が納められています。
546 \end_layout
547
548 \begin_layout Subsection
549 ディレクトリ
550 \end_layout
551
552 \begin_layout Standard
553 以下の各ディレクトリは、
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 L
559 \begin_inset ERT
560 status collapsed
561
562 \begin_layout Plain Layout
563
564 {}
565 \end_layout
566
567 \end_inset
568
569 yXDir
570 \end_layout
571
572 \end_inset
573
574
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 UserDir
580 \end_layout
581
582 \end_inset
583
584 に重複して存在します。特定のファイルが両方の場所にある場合には、
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 UserDir
590 \end_layout
591
592 \end_inset
593
594 の方にあるものが使用されます。
595 \end_layout
596
597 \begin_layout Labeling
598 \labelwidthstring 00.00.0000
599 \begin_inset Flex Code
600 status collapsed
601
602 \begin_layout Plain Layout
603 bind/
604 \end_layout
605
606 \end_inset
607
608  このディレクトリには、LyXで使用されるキー割当を定義している、拡張子が
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613 .bind
614 \end_layout
615
616 \end_inset
617
618 のファイルが置かれています。
619 \begin_inset Flex Code
620 status collapsed
621
622 \begin_layout Plain Layout
623 $LANG_xxx.bind
624 \end_layout
625
626 \end_inset
627
628 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
629 \end_layout
630
631 \begin_layout Labeling
632 \labelwidthstring 00.00.0000
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 clipart/
638 \end_layout
639
640 \end_inset
641
642  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
643 \end_layout
644
645 \begin_layout Labeling
646 \labelwidthstring 00.00.0000
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651 doc/
652 \end_layout
653
654 \end_inset
655
656  このディレクトリには、LyXの取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 LaT
662 \begin_inset ERT
663 status collapsed
664
665 \begin_layout Plain Layout
666
667 {}
668 \end_layout
669
670 \end_inset
671
672 eXConfig.lyx
673 \end_layout
674
675 \end_inset
676
677 ファイルは特に注目に値します。各国語版のヘルプ文書は、
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 doc/xx
683 \end_layout
684
685 \end_inset
686
687 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、第
688 \begin_inset CommandInset ref
689 LatexCommand ref
690 reference "cha:LyXの各国語対応"
691
692 \end_inset
693
694 章をご覧ください。
695 \end_layout
696
697 \begin_layout Labeling
698 \labelwidthstring 00.00.0000
699 \begin_inset Flex Code
700 status collapsed
701
702 \begin_layout Plain Layout
703 examples/
704 \end_layout
705
706 \end_inset
707
708  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
709 \begin_inset Flex MenuItem
710 status collapsed
711
712 \begin_layout Plain Layout
713 用例
714 \end_layout
715
716 \end_inset
717
718 ボタンを押すと、このディレクトリが表示されます。
719 \end_layout
720
721 \begin_layout Labeling
722 \labelwidthstring 00.00.0000
723 \begin_inset Flex Code
724 status collapsed
725
726 \begin_layout Plain Layout
727 images/
728 \end_layout
729
730 \end_inset
731
732  このディレクトリには、
733 \begin_inset Flex MenuItem
734 status collapsed
735
736 \begin_layout Plain Layout
737 文書
738 \end_layout
739
740 \end_inset
741
742 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、LyXを起動したときに現れるバナーも納められています。
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、第
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 章をご覧ください。
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには、第
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 章に述べられているテキストクラスおよびモジュールのファイルが納められています。
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには、LyXの各バージョン間の変換に使用される
799 \begin_inset Flex Code
800 status collapsed
801
802 \begin_layout Plain Layout
803 lyx2lyx
804 \end_layout
805
806 \end_inset
807
808  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 scripts/
818 \end_layout
819
820 \end_inset
821
822  このディレクトリには、
823 \begin_inset Flex MenuItem
824 status collapsed
825
826 \begin_layout Plain Layout
827 外用ひな型
828 \end_layout
829
830 \end_inset
831
832 機能の有用性を示すためのファイルがいくつか納められています。LyX自身が使用するスクリプトもいくつか収められています。
833 \end_layout
834
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 templates/
842 \end_layout
843
844 \end_inset
845
846  このディレクトリには、第
847 \begin_inset CommandInset ref
848 LatexCommand ref
849 reference "sec:ひな型を作成する"
850
851 \end_inset
852
853 章で述べられている標準のLyXひな型ファイルが納められています。
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 ui/
863 \end_layout
864
865 \end_inset
866
867  このディレクトリには、LyXの操作画面を定義する拡張子
868 \begin_inset Flex Code
869 status collapsed
870
871 \begin_layout Plain Layout
872 .ui
873 \end_layout
874
875 \end_inset
876
877 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
878 \end_layout
879
880 \begin_layout Subsection
881 変更を加えない方がよいファイル
882 \end_layout
883
884 \begin_layout Standard
885 これらのファイルはLyXが内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
886 \end_layout
887
888 \begin_layout Labeling
889 \labelwidthstring 00.00.0000
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 CREDITS
895 \end_layout
896
897 \end_inset
898
899  このファイルは、LyX開発陣の名簿です。この内容は、メニュー項目
900 \begin_inset Flex MenuItem
901 status collapsed
902
903 \begin_layout Plain Layout
904 ヘルプ\SpecialChar \menuseparator
905 L
906 \begin_inset ERT
907 status collapsed
908
909 \begin_layout Plain Layout
910
911 {}
912 \end_layout
913
914 \end_inset
915
916 yXについて
917 \end_layout
918
919 \end_inset
920
921 で表示されます。
922 \end_layout
923
924 \begin_layout Labeling
925 \labelwidthstring 00.00.0000
926 \begin_inset Flex Code
927 status collapsed
928
929 \begin_layout Plain Layout
930 chkconfig.ltx
931 \end_layout
932
933 \end_inset
934
935  これは、自動設定プロセスによって使用されるLaTeXスクリプトです。直接実行しないでください。
936 \end_layout
937
938 \begin_layout Labeling
939 \labelwidthstring 00.00.0000
940 \begin_inset Flex Code
941 status collapsed
942
943 \begin_layout Plain Layout
944 configure.py
945 \end_layout
946
947 \end_inset
948
949  これは、LyXの再設定によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
950 \end_layout
951
952 \begin_layout Subsection
953 ひとこと必要なファイル群...
954 \end_layout
955
956 \begin_layout Labeling
957 \labelwidthstring 00.00.0000
958 \begin_inset Flex Code
959 status collapsed
960
961 \begin_layout Plain Layout
962 encodings
963 \end_layout
964
965 \end_inset
966
967  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
968 \end_layout
969
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 external_templates
977 \end_layout
978
979 \end_inset
980
981  このファイルには、新しく導入された
982 \begin_inset Flex MenuItem
983 status collapsed
984
985 \begin_layout Plain Layout
986 外用ひな型
987 \end_layout
988
989 \end_inset
990
991 機能で使用できるひな型が載っています。
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 languages
1001 \end_layout
1002
1003 \end_inset
1004
1005  このファイルには、現在LyXがサポートしている言語の全一覧が載っています。
1006 \end_layout
1007
1008 \begin_layout Section
1009 ユーザのローカル設定ディレクトリ
1010 \end_layout
1011
1012 \begin_layout Standard
1013 LyXを非特権ユーザとして利用している場合でも、自分自身で使うために、LyXの設定を変更したいと思うかもしれません。
1014 \begin_inset Flex Code
1015 status collapsed
1016
1017 \begin_layout Plain Layout
1018 UserDir
1019 \end_layout
1020
1021 \end_inset
1022
1023 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1024 \begin_inset Flex MenuItem
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 ヘルプ\SpecialChar \menuseparator
1029 L
1030 \begin_inset ERT
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034
1035 {}
1036 \end_layout
1037
1038 \end_inset
1039
1040
1041 \begin_inset ERT
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045
1046 {}
1047 \end_layout
1048
1049 \end_inset
1050
1051 yXについて
1052 \end_layout
1053
1054 \end_inset
1055
1056 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061 L
1062 \begin_inset ERT
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066
1067 {}
1068 \end_layout
1069
1070 \end_inset
1071
1072 yXDir
1073 \end_layout
1074
1075 \end_inset
1076
1077 のミラーとして使用されており、これは
1078 \begin_inset Flex Code
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082 UserDir
1083 \end_layout
1084
1085 \end_inset
1086
1087 内のすべてのファイルが、
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092 L
1093 \begin_inset ERT
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097
1098 {}
1099 \end_layout
1100
1101 \end_inset
1102
1103 yXDir
1104 \end_layout
1105
1106 \end_inset
1107
1108 の対応するファイルを置き換えるものとして機能していることを意味します。前節で述べられた設定はどれも、全ユーザに影響する全システム用ディレクトリに置くこともできま
1109 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1110 \end_layout
1111
1112 \begin_layout Standard
1113 わかりやすくするために、いくつか例を挙げましょう。
1114 \end_layout
1115
1116 \begin_layout Itemize
1117 \begin_inset Flex MenuItem
1118 status collapsed
1119
1120 \begin_layout Plain Layout
1121 ツール\SpecialChar \menuseparator
1122 設定
1123 \end_layout
1124
1125 \end_inset
1126
1127 ダイアログで設定されるユーザ設定は、
1128 \begin_inset Flex Code
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 UserDir
1133 \end_layout
1134
1135 \end_inset
1136
1137 中の
1138 \begin_inset Flex Code
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 preferences
1143 \end_layout
1144
1145 \end_inset
1146
1147 ファイルに保存されます。
1148 \end_layout
1149
1150 \begin_layout Itemize
1151 \begin_inset Flex MenuItem
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 ツール\SpecialChar \menuseparator
1156 再設定
1157 \end_layout
1158
1159 \end_inset
1160
1161 を使用して再設定を行うと、LyXは
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 configure.py
1167 \end_layout
1168
1169 \end_inset
1170
1171 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 UserDir/layouts
1177 \end_layout
1178
1179 \end_inset
1180
1181 にご自身で追加したテキストファイルは、
1182 \begin_inset Flex MenuItem
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186 文書\SpecialChar \menuseparator
1187 設定
1188 \end_layout
1189
1190 \end_inset
1191
1192 ダイアログのクラス一覧に表示されるようになることを意味します。
1193 \end_layout
1194
1195 \begin_layout Itemize
1196 たとえば、LyXのFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとして
1197 も、それらのファイルを
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 UserDir/doc/
1203 \end_layout
1204
1205 \end_inset
1206
1207 ディレクトリにコピーすれば、
1208 \begin_inset Flex MenuItem
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 ヘルプ
1213 \end_layout
1214
1215 \end_inset
1216
1217 メニュー項目はこれらを開くようになります!
1218 \end_layout
1219
1220 \begin_layout Section
1221 LyXを複数の設定を使って実行するには
1222 \end_layout
1223
1224 \begin_layout Standard
1225 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1226 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1227 どのディレクトリを使用するか指定するのです。
1228 \end_layout
1229
1230 \begin_layout Standard
1231 LyXをコマンドラインスイッチ
1232 \begin_inset Flex Code
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 -userdir
1237 \end_layout
1238
1239 \end_inset
1240
1241  
1242 \emph on
1243 <ディレクトリ名>
1244 \emph default
1245 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(LyXを
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 -userdir
1251 \end_layout
1252
1253 \end_inset
1254
1255 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、LyXは、初めてLyXを実行したときに既定ディレ
1256 クトリを訊いてくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプシ
1257 ョンを修正することができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1258 \begin_inset Flex Code
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 LYX_USERDIR_20x
1263 \end_layout
1264
1265 \end_inset
1266
1267 を特定の値に設定しても、全く同じ効果があります。
1268 \end_layout
1269
1270 \begin_layout Standard
1271 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 NewUserDir/layouts
1277 \end_layout
1278
1279 \end_inset
1280
1281 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1282 クを使用してください。LyXが新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにする
1283 には、空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 doc/
1289 \end_layout
1290
1291 \end_inset
1292
1293 サブディレクトリには、設定スクリプト(
1294 \begin_inset Flex MenuItem
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 ツール\SpecialChar \menuseparator
1299 再設定
1300 \end_layout
1301
1302 \end_inset
1303
1304 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1305 \end_layout
1306
1307 \begin_layout Chapter
1308 設定ダイアログ
1309 \end_layout
1310
1311 \begin_layout Standard
1312 設定ダイアログのオプションのすべては、
1313 \emph on
1314 ユーザーの手引き
1315 \emph default
1316 の付録
1317 \emph on
1318 設定ダイアログ
1319 \emph default
1320 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1321 \end_layout
1322
1323 \begin_layout Section
1324 ファイル形式
1325 \begin_inset CommandInset label
1326 LatexCommand label
1327 name "sec:ファイル形式"
1328
1329 \end_inset
1330
1331
1332 \end_layout
1333
1334 \begin_layout Standard
1335 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1336 \begin_inset Flex MenuItem
1337 status collapsed
1338
1339 \begin_layout Plain Layout
1340 ツール\SpecialChar \menuseparator
1341 設定
1342 \end_layout
1343
1344 \end_inset
1345
1346 ダイアログを開いてください。
1347 \begin_inset Flex MenuItem
1348 status collapsed
1349
1350 \begin_layout Plain Layout
1351 ファイル処理\SpecialChar \menuseparator
1352 ファイル形式
1353 \end_layout
1354
1355 \end_inset
1356
1357 の中で
1358 \begin_inset Flex MenuItem
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362 新規\SpecialChar \ldots{}
1363
1364 \end_layout
1365
1366 \end_inset
1367
1368 ボタンを押して、登録する新しい形式を定義してください。
1369 \begin_inset Flex MenuItem
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 フィールドは、GUI中で形式を認識するために用いられる名称です。
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 短縮名
1384 \end_layout
1385
1386 \end_inset
1387
1388 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1389 \begin_inset Flex MenuItem
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 短絡キー
1394 \end_layout
1395
1396 \end_inset
1397
1398 フィールドは、メニュー中で短絡キーを提供するのに使用されます(たとえば、
1399 \begin_inset Flex MenuItem
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 Alt-V D
1404 \end_layout
1405
1406 \end_inset
1407
1408 を押すと
1409 \begin_inset Flex MenuItem
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413 表示\SpecialChar \menuseparator
1414 DVI
1415 \end_layout
1416
1417 \end_inset
1418
1419 となります)。
1420 \end_layout
1421
1422 \begin_layout Standard
1423 形式には、
1424 \begin_inset Flex MenuItem
1425 status collapsed
1426
1427 \begin_layout Plain Layout
1428 閲覧プログラム
1429 \end_layout
1430
1431 \end_inset
1432
1433
1434 \begin_inset Flex MenuItem
1435 status collapsed
1436
1437 \begin_layout Plain Layout
1438 編集プログラム
1439 \end_layout
1440
1441 \end_inset
1442
1443 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1444 \begin_inset Flex MenuItem
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 Ghostview
1449 \end_layout
1450
1451 \end_inset
1452
1453 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1454 いることができます。この閲覧プログラムは、LyX中で画像を閲覧したり
1455 \begin_inset Flex MenuItem
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 表示
1460 \end_layout
1461
1462 \end_inset
1463
1464 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 外部で編集
1470 \end_layout
1471
1472 \end_inset
1473
1474 を選択したときに起動します。
1475 \end_layout
1476
1477 \begin_layout Standard
1478 ファイル形式の
1479 \begin_inset Flex MenuItem
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 MIME
1484 \end_layout
1485
1486 \end_inset
1487
1488 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1489 ます。重要なファイル形式のうちには、
1490 \begin_inset CommandInset href
1491 LatexCommand href
1492 name "IANA"
1493 target "http://www.iana.org/assignments/media-types/"
1494
1495 \end_inset
1496
1497 に公式に登録されたMIME型がないものがあります。そこで、LyXは、
1498 \begin_inset CommandInset href
1499 LatexCommand href
1500 name "freedesktop.org"
1501 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1502
1503 \end_inset
1504
1505 で指定されているMIME型拡張表を使用しています。
1506 \end_layout
1507
1508 \begin_layout Standard
1509 \begin_inset Flex MenuItem
1510 status collapsed
1511
1512 \begin_layout Plain Layout
1513 文書形式
1514 \end_layout
1515
1516 \end_inset
1517
1518 オプションは、LyXに、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1519 \begin_inset CommandInset ref
1520 LatexCommand ref
1521 reference "sec:変換子"
1522
1523 \end_inset
1524
1525 節を参照)、この形式が
1526 \begin_inset Flex MenuItem
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 ファイル\SpecialChar \menuseparator
1531 書き出し
1532 \end_layout
1533
1534 \end_inset
1535
1536 メニューに表示されます。また、この形式に閲覧プログラムが指定されている場合には、この形式は
1537 \begin_inset Flex MenuItem
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 表示
1542 \end_layout
1543
1544 \end_inset
1545
1546 メニューにも表示されます。
1547 \begin_inset Flex Code
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 png
1552 \end_layout
1553
1554 \end_inset
1555
1556 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1557 \begin_inset Flex Code
1558 status collapsed
1559
1560 \begin_layout Plain Layout
1561 pdf
1562 \end_layout
1563
1564 \end_inset
1565
1566 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1567 \end_layout
1568
1569 \begin_layout Standard
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ベクター画像形式
1575 \end_layout
1576
1577 \end_inset
1578
1579 オプションは、LyXにこの形式がベクター画像を含みうることを教示するものです。この情報は、
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 pdflatex
1585 \end_layout
1586
1587 \end_inset
1588
1589 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1590 \begin_inset Flex MenuItem
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 pdflatex
1595 \end_layout
1596
1597 \end_inset
1598
1599 は、
1600 \begin_inset Flex MenuItem
1601 status collapsed
1602
1603 \begin_layout Plain Layout
1604 pdf
1605 \end_layout
1606
1607 \end_inset
1608
1609
1610 \begin_inset Flex MenuItem
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614 png
1615 \end_layout
1616
1617 \end_inset
1618
1619
1620 \begin_inset Flex MenuItem
1621 status collapsed
1622
1623 \begin_layout Plain Layout
1624 jpg
1625 \end_layout
1626
1627 \end_inset
1628
1629 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1630 \begin_inset Flex MenuItem
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 pdf
1635 \end_layout
1636
1637 \end_inset
1638
1639
1640 \begin_inset Flex MenuItem
1641 status collapsed
1642
1643 \begin_layout Plain Layout
1644 png
1645 \end_layout
1646
1647 \end_inset
1648
1649
1650 \begin_inset Flex MenuItem
1651 status collapsed
1652
1653 \begin_layout Plain Layout
1654 jpg
1655 \end_layout
1656
1657 \end_inset
1658
1659 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1660 \begin_inset Flex MenuItem
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 pdf
1665 \end_layout
1666
1667 \end_inset
1668
1669 に変換され、そうでない場合には
1670 \begin_inset Flex MenuItem
1671 status collapsed
1672
1673 \begin_layout Plain Layout
1674 png
1675 \end_layout
1676
1677 \end_inset
1678
1679 に変換されます。
1680 \end_layout
1681
1682 \begin_layout Section
1683 複写子
1684 \end_layout
1685
1686 \begin_layout Standard
1687 形式の変換はすべて、LyXの一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがありま
1688
1689 \begin_inset Foot
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1694 あります。
1695 \end_layout
1696
1697 \end_inset
1698
1699 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1700 \end_layout
1701
1702 \begin_layout Standard
1703 複写子の定義においては、以下の4つの変数を用いることができます。
1704 \end_layout
1705
1706 \begin_layout Labeling
1707 \labelwidthstring 00.00.0000
1708 \begin_inset Flex Code
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 $$s
1713 \end_layout
1714
1715 \end_inset
1716
1717  LyXのシステムディレクトリ(例:
1718 \begin_inset Flex MenuItem
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 /usr/share/lyx
1723 \end_layout
1724
1725 \end_inset
1726
1727
1728 \end_layout
1729
1730 \begin_layout Labeling
1731 \labelwidthstring 00.00.0000
1732 \begin_inset Flex Code
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 $$i
1737 \end_layout
1738
1739 \end_inset
1740
1741  入力ファイル
1742 \end_layout
1743
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Flex Code
1747 status collapsed
1748
1749 \begin_layout Plain Layout
1750 $$o
1751 \end_layout
1752
1753 \end_inset
1754
1755  出力ファイル
1756 \end_layout
1757
1758 \begin_layout Labeling
1759 \labelwidthstring 00.00.0000
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 $$l
1765 \end_layout
1766
1767 \end_inset
1768
1769  「LaTeX名」
1770 \end_layout
1771
1772 \begin_layout Standard
1773 最後の変数は、LaTeXの
1774 \series bold
1775
1776 \backslash
1777 include
1778 \series default
1779 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1780 \end_layout
1781
1782 \begin_layout Standard
1783 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1784 \begin_inset Flex Code
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 /home/you/pdf/
1789 \end_layout
1790
1791 \end_inset
1792
1793 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1794 \end_layout
1795
1796 \begin_layout Standard
1797 \begin_inset listings
1798 inline false
1799 status open
1800
1801 \begin_layout Plain Layout
1802
1803 #!/bin/bash
1804 \end_layout
1805
1806 \begin_layout Plain Layout
1807
1808 FROMFILE=$1
1809 \end_layout
1810
1811 \begin_layout Plain Layout
1812
1813 TOFILE=`basename $2`
1814 \end_layout
1815
1816 \begin_layout Plain Layout
1817
1818 cp $FROMFILE /home/you/pdf/$TOFILE
1819 \end_layout
1820
1821 \end_inset
1822
1823 これを、自身のローカルLyXディレクトリ—たとえば
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 /home/you/.lyx/scripts/pdfcopier.sh
1829 \end_layout
1830
1831 \end_inset
1832
1833 —に保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1834 \begin_inset Flex MenuItem
1835 status collapsed
1836
1837 \begin_layout Plain Layout
1838 ツール\SpecialChar \menuseparator
1839 設定
1840 \end_layout
1841
1842 \end_inset
1843
1844 ダイアログの
1845 \begin_inset Flex MenuItem
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 ファイル処理\SpecialChar \menuseparator
1850 ファイル形式
1851 \end_layout
1852
1853 \end_inset
1854
1855 の中で、
1856 \begin_inset Flex MenuItem
1857 status collapsed
1858
1859 \begin_layout Plain Layout
1860 PDF(pdflatex)
1861 \end_layout
1862
1863 \end_inset
1864
1865 形式—あるいは他のPDF形式のうちどれか—を選択し、
1866 \begin_inset Flex MenuItem
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 複写子
1871 \end_layout
1872
1873 \end_inset
1874
1875 フィールドに
1876 \begin_inset Flex Code
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 pdfcopier.sh $$i $$o
1881 \end_layout
1882
1883 \end_inset
1884
1885 と入力します。
1886 \end_layout
1887
1888 \begin_layout Standard
1889 複写子は、LyX自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、LyXは自動的に
1890 \begin_inset Flex MenuItem
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 HTML
1895 \end_layout
1896
1897 \end_inset
1898
1899 形式と
1900 \begin_inset Flex MenuItem
1901 status collapsed
1902
1903 \begin_layout Plain Layout
1904 HTML
1905 \begin_inset space ~
1906 \end_inset
1907
1908 (MS Word)
1909 \end_layout
1910
1911 \end_inset
1912
1913 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1914 るように手配します。これらのファイルはすべて、元のLyXファイルのあるディレクトリのサブディレクトリに書き込まれます
1915 \begin_inset Foot
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
1920 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
1921 \begin_inset Flex MenuItem
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 L
1926 \begin_inset ERT
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930
1931 {}
1932 \end_layout
1933
1934 \end_inset
1935
1936 yXconv
1937 \end_layout
1938
1939 \end_inset
1940
1941 」となっているので、
1942 \begin_inset Flex MenuItem
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 /path/to/filename.lyx
1947 \end_layout
1948
1949 \end_inset
1950
1951 から生成されたHTMLファイルは、
1952 \begin_inset Flex MenuItem
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 /path/to/filename.html.L
1957 \begin_inset ERT
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961
1962 {}
1963 \end_layout
1964
1965 \end_inset
1966
1967 yXconv
1968 \end_layout
1969
1970 \end_inset
1971
1972 となります。.
1973  
1974 \end_layout
1975
1976 \end_inset
1977
1978
1979 \end_layout
1980
1981 \begin_layout Section
1982 変換子
1983 \begin_inset CommandInset label
1984 LatexCommand label
1985 name "sec:変換子"
1986
1987 \end_inset
1988
1989
1990 \end_layout
1991
1992 \begin_layout Standard
1993 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
1994 \begin_inset Flex MenuItem
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 ツール\SpecialChar \menuseparator
1999 設定\SpecialChar \menuseparator
2000 ファイル処理\SpecialChar \menuseparator
2001 変換子
2002 \end_layout
2003
2004 \end_inset
2005
2006 ダイアログで行います。
2007 \end_layout
2008
2009 \begin_layout Standard
2010 新規に変換子を定義するには、ドロップダウンリストから
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 変換元の形式
2016 \end_layout
2017
2018 \end_inset
2019
2020
2021 \begin_inset Flex MenuItem
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 変換先の形式
2026 \end_layout
2027
2028 \end_inset
2029
2030 を選択し、変換に必要なコマンドを入力してから
2031 \begin_inset Flex MenuItem
2032 status collapsed
2033
2034 \begin_layout Plain Layout
2035 追加
2036 \end_layout
2037
2038 \end_inset
2039
2040 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2041 \end_layout
2042
2043 \begin_layout Labeling
2044 \labelwidthstring 00.00.0000
2045 \begin_inset Flex Code
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 $$s
2050 \end_layout
2051
2052 \end_inset
2053
2054  LyXシステムディレクトリ
2055 \end_layout
2056
2057 \begin_layout Labeling
2058 \labelwidthstring 00.00.0000
2059 \begin_inset Flex Code
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 $$i
2064 \end_layout
2065
2066 \end_inset
2067
2068  入力ファイル
2069 \end_layout
2070
2071 \begin_layout Labeling
2072 \labelwidthstring 00.00.0000
2073 \begin_inset Flex Code
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 $$o
2078 \end_layout
2079
2080 \end_inset
2081
2082  出力ファイル
2083 \end_layout
2084
2085 \begin_layout Labeling
2086 \labelwidthstring 00.00.0000
2087 \begin_inset Flex Code
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091 $$b
2092 \end_layout
2093
2094 \end_inset
2095
2096  入力ファイルのベースファイル名(拡張子をとった部分)
2097 \end_layout
2098
2099 \begin_layout Labeling
2100 \labelwidthstring 00.00.0000
2101 \begin_inset Flex Code
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105 $$p
2106 \end_layout
2107
2108 \end_inset
2109
2110  入力ファイルのパス
2111 \end_layout
2112
2113 \begin_layout Labeling
2114 \labelwidthstring 00.00.0000
2115 \begin_inset Flex Code
2116 status collapsed
2117
2118 \begin_layout Plain Layout
2119 $$r
2120 \end_layout
2121
2122 \end_inset
2123
2124  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2125 \end_layout
2126
2127 \begin_layout Labeling
2128 \labelwidthstring 00.00.0000
2129 \begin_inset Flex Code
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 $$e
2134 \end_layout
2135
2136 \end_inset
2137
2138  文書エンコーディングのiconv名
2139 \end_layout
2140
2141 \begin_layout Standard
2142 \begin_inset Flex MenuItem
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 追加フラグ
2147 \end_layout
2148
2149 \end_inset
2150
2151 フィールドには、以下のフラグをコンマで区切って入力することができます。
2152 \end_layout
2153
2154 \begin_layout Labeling
2155 \labelwidthstring 00.00.0000
2156 \begin_inset Flex Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160 latex
2161 \end_layout
2162
2163 \end_inset
2164
2165  この変換子がLaTeXの一種を実行することを示します。これによって、LyXのLaTeXエラーログに記録を残せるようになります。
2166 \end_layout
2167
2168 \begin_layout Labeling
2169 \labelwidthstring 00.00.0000
2170 \begin_inset Flex Code
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 needaux
2175 \end_layout
2176
2177 \end_inset
2178
2179  変換にLaTeXの
2180 \begin_inset Flex MenuItem
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 .aux
2185 \end_layout
2186
2187 \end_inset
2188
2189 ファイルが必要であることを示します。
2190 \end_layout
2191
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 xml
2199 \end_layout
2200
2201 \end_inset
2202
2203  出力がXMLであることを示します。
2204 \end_layout
2205
2206 \begin_layout Standard
2207 以下の3つのフラグは 
2208 \begin_inset Flex MenuItem
2209 status collapsed
2210
2211 \begin_layout Plain Layout
2212 key
2213 \begin_inset space ~
2214 \end_inset
2215
2216 =
2217 \begin_inset space ~
2218 \end_inset
2219
2220 value
2221 \end_layout
2222
2223 \end_inset
2224
2225 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2226 \end_layout
2227
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Flex Code
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 parselog
2235 \end_layout
2236
2237 \end_inset
2238
2239  これを指定すると、変換子の標準エラーが
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 infile.out
2245 \end_layout
2246
2247 \end_inset
2248
2249 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2250 \begin_inset Flex Code
2251 status collapsed
2252
2253 \begin_layout Plain Layout
2254 script < infile.out > infile.log
2255 \end_layout
2256
2257 \end_inset
2258
2259 の形で実行されるようになります。引数には
2260 \begin_inset Flex Code
2261 status collapsed
2262
2263 \begin_layout Plain Layout
2264 $$s
2265 \end_layout
2266
2267 \end_inset
2268
2269 を指定することができます。
2270 \end_layout
2271
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Flex Code
2275 status collapsed
2276
2277 \begin_layout Plain Layout
2278 resultdir
2279 \end_layout
2280
2281 \end_inset
2282
2283  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。LyXはこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛
2284 先にコピーします。引数には、
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$b
2290 \end_layout
2291
2292 \end_inset
2293
2294 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2295 \begin_inset Newline newline
2296 \end_inset
2297
2298 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2299 \end_layout
2300
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 resultfile
2308 \end_layout
2309
2310 \end_inset
2311
2312  これは出力ファイル名を指定するもので、
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 $$b
2318 \end_layout
2319
2320 \end_inset
2321
2322 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2323 \end_layout
2324
2325 \begin_layout Standard
2326 最後の3つは、LyXとともに導入される変換子には、現在いずれも使用されておりません。
2327 \end_layout
2328
2329 \begin_layout Standard
2330 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「LyXからPostScript」変換子が定義されていないのに、LyXはPos
2331 tScriptを書き出していることに気づかれることでしょう。これは、まずLaTeXファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTe
2332 XからDVI」変換子を使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。LyXはこのような変換子の「連鎖
2333 」を自動的に見つけ、つねに最も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的なLyX設定は、LaTeX
2334 からPDFへ変換するのに、以下の3つの方法を用意しています。(1)
2335 \begin_inset space ~
2336 \end_inset
2337
2338 直接
2339 \begin_inset Flex MenuItem
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 pdflatex
2344 \end_layout
2345
2346 \end_inset
2347
2348 を使用するもの。(2)
2349 \begin_inset space ~
2350 \end_inset
2351
2352 (DVIと)PostScriptを経由して
2353 \begin_inset Flex MenuItem
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 ps2pdf
2358 \end_layout
2359
2360 \end_inset
2361
2362 を使用するもの。(3)
2363 \begin_inset space ~
2364 \end_inset
2365
2366 DVI経由で
2367 \begin_inset Flex MenuItem
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 dvipdfm
2372 \end_layout
2373
2374 \end_inset
2375
2376 を使用するもの。このように代替連鎖を定義するには、第
2377 \begin_inset CommandInset ref
2378 LatexCommand ref
2379 reference "sec:ファイル形式"
2380
2381 \end_inset
2382
2383 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2384 \begin_inset Flex MenuItem
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 pdf
2389 \end_layout
2390
2391 \end_inset
2392
2393
2394 \begin_inset Flex MenuItem
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 pdf2
2399 \end_layout
2400
2401 \end_inset
2402
2403
2404 \begin_inset Flex MenuItem
2405 status collapsed
2406
2407 \begin_layout Plain Layout
2408 pdf3
2409 \end_layout
2410
2411 \end_inset
2412
2413 と命名された形式が定義されていて、すべて共通の拡張子
2414 \begin_inset Flex MenuItem
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418 .pdf
2419 \end_layout
2420
2421 \end_inset
2422
2423 を持ち、上記で言及した各変換方法に対応しています。
2424 \end_layout
2425
2426 \begin_layout Chapter
2427 LyXの各国語対応
2428 \begin_inset CommandInset label
2429 LatexCommand label
2430 name "cha:LyXの各国語対応"
2431
2432 \end_inset
2433
2434
2435 \end_layout
2436
2437 \begin_layout Standard
2438 LyXは、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、LyXは30言語の翻訳を提供しています。選択した言語は、使用する
2439 \emph on
2440 ロケール
2441 \emph default
2442 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2443 \begin_inset Flex Code
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 locale(5)
2448 \end_layout
2449
2450 \end_inset
2451
2452 から見ると良いかもしれません)。
2453 \end_layout
2454
2455 \begin_layout Standard
2456 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2457 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての短絡キーが定義され
2458 ていないことに気づかれるでしょう。短絡キーのために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ短絡キーを定義していないこともあるでしょう。もち
2459 ろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2460 \begin_inset Foot
2461 status collapsed
2462
2463 \begin_layout Plain Layout
2464 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、LyXコミュニティに報いるたいへん素晴らしい方法です!
2465 \end_layout
2466
2467 \end_inset
2468
2469 —は、LyXの将来のバージョンでこれらの欠点を修正しようとするでしょう。
2470 \end_layout
2471
2472 \begin_layout Section
2473 LyXを翻訳する
2474 \end_layout
2475
2476 \begin_layout Subsection
2477 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2478 \begin_inset Argument
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482 GUI(テキストメッセージ)を翻訳する
2483 \end_layout
2484
2485 \end_inset
2486
2487
2488 \end_layout
2489
2490 \begin_layout Standard
2491 LyXは、操作画面の国際化対応にGNU 
2492 \begin_inset Flex Code
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 gettext
2497 \end_layout
2498
2499 \end_inset
2500
2501 ライブラリを使用します。LyXのすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2502 \begin_inset Flex Code
2503 status collapsed
2504
2505 \begin_layout Plain Layout
2506 po
2507 \end_layout
2508
2509 \end_inset
2510
2511 ファイルが必要です。このファイルが利用可能であれば、そこから
2512 \begin_inset Flex Code
2513 status collapsed
2514
2515 \begin_layout Plain Layout
2516 mo
2517 \end_layout
2518
2519 \end_inset
2520
2521 ファイルを生成して、この
2522 \begin_inset Flex Code
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 mo
2527 \end_layout
2528
2529 \end_inset
2530
2531 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2532 \begin_inset Flex Code
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 gettext
2537 \end_layout
2538
2539 \end_inset
2540
2541 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果をLyXコミュニティの他の人々と
2542 分かち合いませんか。どのように段取りを進めればよいか、詳しくはLyX開発者メーリングリストにメールを送ってください。
2543 \end_layout
2544
2545 \begin_layout Standard
2546 要約すれば、以下のように行います(xxは言語コードを表します)。
2547 \end_layout
2548
2549 \begin_layout Itemize
2550 LyXソースコードをチェックアウトしてください(
2551 \begin_inset CommandInset href
2552 LatexCommand href
2553 name "ウェブ上の情報"
2554 target "http://www.lyx.org/devel/cvs.php"
2555
2556 \end_inset
2557
2558 参照)。
2559 \end_layout
2560
2561 \begin_layout Itemize
2562 \begin_inset Flex Code
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 lyx.pot
2567 \end_layout
2568
2569 \end_inset
2570
2571 ファイルを
2572 \begin_inset Flex Code
2573 status collapsed
2574
2575 \begin_layout Plain Layout
2576 **.po
2577 \end_layout
2578
2579 \end_inset
2580
2581 ファイルのあるフォルダにコピーして、
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 xx.po
2587 \end_layout
2588
2589 \end_inset
2590
2591 に名前を付け替えてください(
2592 \begin_inset Flex Code
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 lyx.pot
2597 \end_layout
2598
2599 \end_inset
2600
2601 がどこにもない場合には、コンソールからそのディレクトリで
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 make lyx.pot
2607 \end_layout
2608
2609 \end_inset
2610
2611 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2612 \end_layout
2613
2614 \begin_layout Itemize
2615 \begin_inset Flex Code
2616 status collapsed
2617
2618 \begin_layout Plain Layout
2619 xx.po
2620 \end_layout
2621
2622 \end_inset
2623
2624 を編集します
2625 \begin_inset Foot
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2630 \family typewriter
2631 Poedit
2632 \family default
2633 (全プラットフォーム用)や
2634 \family typewriter
2635 KBabel
2636 \family default
2637 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2638 \family typewriter
2639 Emacs
2640 \family default
2641 にも
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 po
2647 \end_layout
2648
2649 \end_inset
2650
2651 ファイルを編集するための「モード」があります。
2652 \end_layout
2653
2654 \end_inset
2655
2656 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない短絡キーがある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレ
2657 ーズに対応して翻訳しなくてはなりません。さらに、新しい
2658 \begin_inset Flex Code
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 po
2663 \end_layout
2664
2665 \end_inset
2666
2667 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2668 \end_layout
2669
2670 \begin_layout Standard
2671 もし、あなたがこれを自身のためだけに行っているのであれば、
2672 \end_layout
2673
2674 \begin_layout Itemize
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 xx.mo
2680 \end_layout
2681
2682 \end_inset
2683
2684 を生成してください。これは
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 msgfmt -o xx.mo < xx.po
2690 \end_layout
2691
2692 \end_inset
2693
2694 でできます。
2695 \end_layout
2696
2697 \begin_layout Itemize
2698 この
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 mo
2704 \end_layout
2705
2706 \end_inset
2707
2708 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 lyx.mo
2714 \end_layout
2715
2716 \end_inset
2717
2718 という名称にしてください(例:
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
2724 \end_layout
2725
2726 \end_inset
2727
2728 )。
2729 \end_layout
2730
2731 \begin_layout Standard
2732 しかしながら前述のように、この新しい
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 po
2738 \end_layout
2739
2740 \end_inset
2741
2742 ファイルを他の人たちが使用できるよう、LyX頒布版に追加できることが最善です。これを追加するには、LyXに変更を加える必要がありますので、もしその気があれば、開
2743 発者メーリングリストに電子メールを送ってください。
2744 \end_layout
2745
2746 \begin_layout Subsubsection
2747 多義訳語メッセージ
2748 \end_layout
2749
2750 \begin_layout Standard
2751 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 To
2757 \end_layout
2758
2759 \end_inset
2760
2761 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
2762 \begin_inset Flex Code
2763 status collapsed
2764
2765 \begin_layout Plain Layout
2766 gettext
2767 \end_layout
2768
2769 \end_inset
2770
2771 は、このような多義訳語を
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 To
2777 \end_layout
2778
2779 \end_inset
2780
2781 の代わりに、
2782 \begin_inset Flex Code
2783 status collapsed
2784
2785 \begin_layout Plain Layout
2786 To[[as in 'From format x to format y']]
2787 \end_layout
2788
2789 \end_inset
2790
2791
2792 \begin_inset Flex Code
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796 To[[as in 'From page x to page y']]
2797 \end_layout
2798
2799 \end_inset
2800
2801 としなくてはなりません。これによって、これら2つの
2802 \begin_inset Flex Code
2803 status collapsed
2804
2805 \begin_layout Plain Layout
2806 To
2807 \end_layout
2808
2809 \end_inset
2810
2811 は、
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 gettext
2817 \end_layout
2818
2819 \end_inset
2820
2821 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
2822 \end_layout
2823
2824 \begin_layout Standard
2825 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。LyXの翻
2826 訳機構では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
2827 \end_layout
2828
2829 \begin_layout Subsection
2830 説明書を翻訳する
2831 \end_layout
2832
2833 \begin_layout Standard
2834
2835 \begin_inset Flex MenuItem
2836 status collapsed
2837
2838 \begin_layout Plain Layout
2839 Help
2840 \end_layout
2841
2842 \end_inset
2843
2844 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
2845 \begin_inset Foot
2846 status collapsed
2847
2848 \begin_layout Plain Layout
2849 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
2850 \end_layout
2851
2852 \end_inset
2853
2854 、ロケールがその言語に設定されている場合、LyXはこれを自動的に使用します。LyXは、翻訳版を
2855 \begin_inset Flex Code
2856 status collapsed
2857
2858 \begin_layout Plain Layout
2859 L
2860 \begin_inset ERT
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864
2865 {}
2866 \end_layout
2867
2868 \end_inset
2869
2870 yXDir/doc/xx/DocName.lyx
2871 \end_layout
2872
2873 \end_inset
2874
2875
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 xx
2881 \end_layout
2882
2883 \end_inset
2884
2885 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
2886 \begin_inset Flex Code
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 DocName
2891 \end_layout
2892
2893 \end_inset
2894
2895 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
2896 うべきです。
2897 \end_layout
2898
2899 \begin_layout Itemize
2900 説明書翻訳ウェブページ
2901 \begin_inset CommandInset href
2902 LatexCommand href
2903 name "http://www.lyx.org/Translation"
2904 target "http://www.lyx.org/Translation"
2905
2906 \end_inset
2907
2908 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
2909 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
2910 \end_layout
2911
2912 \begin_layout Standard
2913 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
2914 \end_layout
2915
2916 \begin_layout Itemize
2917 文書化チームに所属してください!そのための情報が
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 Intro.lyx
2923 \end_layout
2924
2925 \end_inset
2926
2927
2928 \begin_inset Flex MenuItem
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 ヘルプ\SpecialChar \menuseparator
2933 はじめの一歩
2934 \end_layout
2935
2936 \end_inset
2937
2938 )にあります。また、この
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 Intro.lyx
2944 \end_layout
2945
2946 \end_inset
2947
2948 が最初に訳すべき文書です。
2949 \end_layout
2950
2951 \begin_layout Itemize
2952 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
2953 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
2954 \emph on
2955 警告!活版技術は病みつきになる可能性があるので注意してくさい!
2956 \emph default
2957
2958 \end_layout
2959
2960 \begin_layout Itemize
2961 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
2962 \begin_inset Flex Code
2963 status collapsed
2964
2965 \begin_layout Plain Layout
2966 UserDir/doc/xx/
2967 \end_layout
2968
2969 \end_inset
2970
2971 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
2972 \end_layout
2973
2974 \begin_layout Itemize
2975 (LyXチームが維持している)原典の説明書は、時折更新されます。変更点については、
2976 \begin_inset CommandInset href
2977 LatexCommand href
2978 name "http://www.lyx.org/trac/timeline"
2979 target "http://www.lyx.org/trac/timeline"
2980
2981 \end_inset
2982
2983 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
2984 \end_layout
2985
2986 \begin_layout Standard
2987 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
2988 \end_layout
2989
2990 \begin_layout Standard
2991 \begin_inset Branch OutDated
2992 status collapsed
2993
2994 \begin_layout Section
2995 International Keyboard Support
2996 \end_layout
2997
2998 \begin_layout Standard
2999
3000 \emph on
3001 [Editor's Note: The following section is by
3002 \emph default
3003  
3004 \shape smallcaps
3005 \emph on
3006 Ivan Schreter
3007 \shape default
3008 .
3009  It needs to be fixed to conform to the new Documentation Style sheet and
3010  to make use of the new v1.0 features.
3011  The whole thing also needs to be merged with the section following it.-jw
3012  It may also be badly out of date.-rh (2008)]
3013 \end_layout
3014
3015 \begin_layout Subsection
3016 Defining Own Keymaps: Keymap File Format
3017 \end_layout
3018
3019 \begin_layout Standard
3020 Let's look at a keyboard definition file a little closer.
3021  It is a plain text file defining
3022 \end_layout
3023
3024 \begin_layout Itemize
3025 key-to-key or key-to-string translations
3026 \end_layout
3027
3028 \begin_layout Itemize
3029 dead keys
3030 \end_layout
3031
3032 \begin_layout Itemize
3033 dead keys exceptions
3034 \end_layout
3035
3036 \begin_layout Standard
3037 To define key-to-key or key-to-string translation, use this command:
3038 \end_layout
3039
3040 \begin_layout Quotation
3041 \begin_inset Flex Code
3042 status collapsed
3043
3044 \begin_layout Plain Layout
3045
3046 \backslash
3047 kmap
3048 \end_layout
3049
3050 \end_inset
3051
3052  
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 key
3058 \end_layout
3059
3060 \end_inset
3061
3062  outstring 
3063 \end_layout
3064
3065 \begin_layout Standard
3066 where 
3067 \begin_inset Flex Code
3068 status collapsed
3069
3070 \begin_layout Plain Layout
3071 key
3072 \end_layout
3073
3074 \end_inset
3075
3076  is the key to be translated and 
3077 \begin_inset Flex Code
3078 status collapsed
3079
3080 \begin_layout Plain Layout
3081 outstring
3082 \end_layout
3083
3084 \end_inset
3085
3086  is the string to be inserted into the document.
3087  To define dead keys, use:
3088 \end_layout
3089
3090 \begin_layout Quotation
3091 \begin_inset Flex Code
3092 status collapsed
3093
3094 \begin_layout Plain Layout
3095
3096 \backslash
3097 kmod
3098 \end_layout
3099
3100 \end_inset
3101
3102  
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 key
3108 \end_layout
3109
3110 \end_inset
3111
3112  deadkey
3113 \end_layout
3114
3115 \begin_layout Standard
3116 where 
3117 \begin_inset Flex Code
3118 status collapsed
3119
3120 \begin_layout Plain Layout
3121 key
3122 \end_layout
3123
3124 \end_inset
3125
3126  is a keyboard key and 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 deadkey
3132 \end_layout
3133
3134 \end_inset
3135
3136  is dead key name.
3137  The following dead keys are supported (shortcut name is in parentheses):
3138 \end_layout
3139
3140 \begin_layout Quotation
3141
3142 \emph on
3143 Name
3144 \begin_inset space \hfill{}
3145 \end_inset
3146
3147 Example
3148 \end_layout
3149
3150 \begin_layout Quotation
3151 acute (acu)
3152 \begin_inset space \hfill{}
3153 \end_inset
3154
3155
3156 \lang english
3157 áéíóú
3158 \end_layout
3159
3160 \begin_layout Quotation
3161 grave (gra)
3162 \begin_inset space \hfill{}
3163 \end_inset
3164
3165
3166 \lang english
3167 àèìòù
3168 \end_layout
3169
3170 \begin_layout Quotation
3171 macron (mac)
3172 \begin_inset space \hfill{}
3173 \end_inset
3174
3175
3176 \lang english
3177  ō
3178 \end_layout
3179
3180 \begin_layout Quotation
3181 tilde (til)
3182 \begin_inset space \hfill{}
3183 \end_inset
3184
3185
3186 \lang english
3187 ñÑ
3188 \end_layout
3189
3190 \begin_layout Quotation
3191 underbar (underb)
3192 \begin_inset space \hfill{}
3193 \end_inset
3194
3195
3196 \begin_inset ERT
3197 status open
3198
3199 \begin_layout Plain Layout
3200
3201
3202 \backslash
3203 b o
3204 \end_layout
3205
3206 \end_inset
3207
3208
3209 \end_layout
3210
3211 \begin_layout Quotation
3212 cedilla (ced)
3213 \begin_inset space \hfill{}
3214 \end_inset
3215
3216
3217 \lang english
3218 çÇ
3219 \end_layout
3220
3221 \begin_layout Quotation
3222 underdot (underd)
3223 \begin_inset space \hfill{}
3224 \end_inset
3225
3226
3227 \begin_inset ERT
3228 status open
3229
3230 \begin_layout Plain Layout
3231
3232
3233 \backslash
3234 d o
3235 \end_layout
3236
3237 \end_inset
3238
3239
3240 \end_layout
3241
3242 \begin_layout Quotation
3243 circumflex (circu)
3244 \begin_inset space \hfill{}
3245 \end_inset
3246
3247
3248 \lang english
3249 âêîôû
3250 \end_layout
3251
3252 \begin_layout Quotation
3253 circle (circl)
3254 \begin_inset space \hfill{}
3255 \end_inset
3256
3257
3258 \lang english
3259 ÅůŮ
3260 \end_layout
3261
3262 \begin_layout Quotation
3263 tie (tie)
3264 \begin_inset space \hfill{}
3265 \end_inset
3266
3267
3268 \begin_inset ERT
3269 status open
3270
3271 \begin_layout Plain Layout
3272
3273
3274 \backslash
3275 t o
3276 \end_layout
3277
3278 \end_inset
3279
3280
3281 \end_layout
3282
3283 \begin_layout Quotation
3284 breve (bre)
3285 \begin_inset space \hfill{}
3286 \end_inset
3287
3288
3289 \lang english
3290 ă
3291 \lang japanese
3292
3293 \begin_inset ERT
3294 status open
3295
3296 \begin_layout Plain Layout
3297
3298
3299 \backslash
3300 u o
3301 \end_layout
3302
3303 \end_inset
3304
3305
3306 \end_layout
3307
3308 \begin_layout Quotation
3309 caron (car)
3310 \begin_inset space \hfill{}
3311 \end_inset
3312
3313
3314 \lang english
3315 čšž
3316 \end_layout
3317
3318 \begin_layout Quotation
3319 hungarian umlaut (hug)
3320 \begin_inset space \hfill{}
3321 \end_inset
3322
3323
3324 \lang english
3325 őű
3326 \end_layout
3327
3328 \begin_layout Quotation
3329 umlaut (uml)
3330 \begin_inset space \hfill{}
3331 \end_inset
3332
3333
3334 \lang english
3335 äöü
3336 \end_layout
3337
3338 \begin_layout Quotation
3339 dot (dot)
3340 \begin_inset space \hfill{}
3341 \end_inset
3342
3343
3344 \lang english
3345 ż
3346 \lang japanese
3347
3348 \begin_inset ERT
3349 status open
3350
3351 \begin_layout Plain Layout
3352
3353
3354 \backslash
3355 .s
3356 \end_layout
3357
3358 \end_inset
3359
3360
3361 \end_layout
3362
3363 \begin_layout Standard
3364 Since in many international keyboards there are exceptions to what some
3365  dead keys should do, you can define them using
3366 \end_layout
3367
3368 \begin_layout Quotation
3369 \begin_inset Flex Code
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373
3374 \backslash
3375 kxmod
3376 \end_layout
3377
3378 \end_inset
3379
3380  deadkey key outstring
3381 \end_layout
3382
3383 \begin_layout Standard
3384 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3385 , so you put in
3386 \end_layout
3387
3388 \begin_layout Quotation
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393
3394 \backslash
3395 kxmod
3396 \end_layout
3397
3398 \end_inset
3399
3400  caron o "
3401 \backslash
3402 ^o"
3403 \end_layout
3404
3405 \begin_layout Standard
3406 to make it work correctly.
3407  Also, you have to define as exceptions dead keys over i and j, to remove
3408  the dot from them before inserting an accent mark.
3409  I will change this when the time comes, but so far I haven't had time.
3410 \end_layout
3411
3412 \begin_layout Standard
3413 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3414  double backslash.
3415  Also, quotes and 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 #
3421 \end_layout
3422
3423 \end_inset
3424
3425  have different meaning.
3426  
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 #
3432 \end_layout
3433
3434 \end_inset
3435
3436  marks comments, quotes start and end LaTeX-style commands.
3437  To enter quote, you'll need to use 
3438 \begin_inset Flex Code
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442
3443 \backslash
3444 "
3445 \end_layout
3446
3447 \end_inset
3448
3449 , to enter 
3450 \begin_inset Flex Code
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 #
3455 \end_layout
3456
3457 \end_inset
3458
3459 , use 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464
3465 \backslash
3466 #
3467 \end_layout
3468
3469 \end_inset
3470
3471 .
3472 \end_layout
3473
3474 \begin_layout Standard
3475 If you make a keyboard description file that works for your language, please
3476  mail it to me, so I can include it in the next keymap distribution.
3477 \end_layout
3478
3479 \begin_layout Standard
3480 More keywords will be supported in keymap configuration file in future,
3481  like
3482 \end_layout
3483
3484 \begin_layout Itemize
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \backslash
3491 kinclude filename
3492 \end_layout
3493
3494 \end_inset
3495
3496
3497 \emph on
3498
3499 \begin_inset space \hfill{}
3500 \end_inset
3501
3502
3503 \begin_inset Flex Code
3504 status collapsed
3505
3506 \begin_layout Plain Layout
3507 include
3508 \end_layout
3509
3510 \end_inset
3511
3512  another file
3513 \end_layout
3514
3515 \begin_layout Itemize
3516 \begin_inset Flex Code
3517 status collapsed
3518
3519 \begin_layout Plain Layout
3520
3521 \backslash
3522 kprog program
3523 \end_layout
3524
3525 \end_inset
3526
3527
3528 \emph on
3529
3530 \begin_inset space \hfill{}
3531 \end_inset
3532
3533
3534 \begin_inset Flex Code
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 define
3539 \end_layout
3540
3541 \end_inset
3542
3543  an external keymap translation program 
3544 \end_layout
3545
3546 \begin_layout Standard
3547 Also, it should look into 
3548 \begin_inset Flex Code
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 lyxrc
3553 \end_layout
3554
3555 \end_inset
3556
3557  file for defaults, too (for example, a 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562
3563 \backslash
3564 kinclude
3565 \end_layout
3566
3567 \end_inset
3568
3569  option to include default keyboard).
3570 \end_layout
3571
3572 \end_inset
3573
3574
3575 \end_layout
3576
3577 \begin_layout Section
3578 国際キー配列
3579 \begin_inset CommandInset label
3580 LatexCommand label
3581 name "sec:国際キー配列"
3582
3583 \end_inset
3584
3585
3586 \end_layout
3587
3588 \begin_layout Standard
3589 \begin_inset Note Note
3590 status open
3591
3592 \begin_layout Plain Layout
3593 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3594 \end_layout
3595
3596 \begin_layout Plain Layout
3597 (RH)
3598 \end_layout
3599
3600 \end_inset
3601
3602
3603 \end_layout
3604
3605 \begin_layout Standard
3606 以下の2節では、
3607 \begin_inset Flex Code
3608 status collapsed
3609
3610 \begin_layout Plain Layout
3611 .kmap
3612 \end_layout
3613
3614 \end_inset
3615
3616 および
3617 \begin_inset Flex Code
3618 status collapsed
3619
3620 \begin_layout Plain Layout
3621 .cdef
3622 \end_layout
3623
3624 \end_inset
3625
3626 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3627 \end_layout
3628
3629 \begin_layout Subsection
3630 .kmapファイル
3631 \end_layout
3632
3633 \begin_layout Standard
3634 \begin_inset Flex Code
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 .kmap
3639 \end_layout
3640
3641 \end_inset
3642
3643 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 .kmap
3649 \end_layout
3650
3651 \end_inset
3652
3653 ファイルは、以下の各項で説明するように、
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 kmap
3659 \end_layout
3660
3661 \end_inset
3662
3663
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 kmod
3669 \end_layout
3670
3671 \end_inset
3672
3673
3674 \begin_inset Flex Code
3675 status collapsed
3676
3677 \begin_layout Plain Layout
3678 ksmod
3679 \end_layout
3680
3681 \end_inset
3682
3683
3684 \begin_inset Flex Code
3685 status collapsed
3686
3687 \begin_layout Plain Layout
3688 kcomb
3689 \end_layout
3690
3691 \end_inset
3692
3693 のキーワードを定義します。
3694 \end_layout
3695
3696 \begin_layout Labeling
3697 \labelwidthstring 00.00.0000
3698 \begin_inset Flex Code
3699 status collapsed
3700
3701 \begin_layout Plain Layout
3702 kmap
3703 \end_layout
3704
3705 \end_inset
3706
3707  文字を文字列に割り当てる
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711
3712 \backslash
3713 kmap 
3714 \family roman
3715 \emph on
3716 文字
3717 \family default
3718 \emph default
3719  
3720 \family roman
3721 \emph on
3722 文字列
3723 \end_layout
3724
3725 \begin_layout Standard
3726 これは、
3727 \emph on
3728 文字
3729 \emph default
3730
3731 \emph on
3732 文字列
3733 \emph default
3734 に割り当てます。
3735 \emph on
3736 文字列
3737 \emph default
3738 中では、二重引用符(")とバックスラッシュ(
3739 \backslash
3740 )は、前にバックスラッシュ(
3741 \backslash
3742 )を付けてエスケープしなくてはならないことに注意してください。
3743 \end_layout
3744
3745 \begin_layout Standard
3746 \begin_inset Flex MenuItem
3747 status collapsed
3748
3749 \begin_layout Plain Layout
3750 &
3751 \end_layout
3752
3753 \end_inset
3754
3755 を打鍵すると
3756 \begin_inset Flex MenuItem
3757 status collapsed
3758
3759 \begin_layout Plain Layout
3760 /
3761 \end_layout
3762
3763 \end_inset
3764
3765 記号が出力される
3766 \begin_inset Flex MenuItem
3767 status collapsed
3768
3769 \begin_layout Plain Layout
3770 kmap
3771 \end_layout
3772
3773 \end_inset
3774
3775 ステートメントを、一例としてあげると、
3776 \end_layout
3777
3778 \begin_layout LyX-Code
3779
3780 \backslash
3781 kmap & /
3782 \end_layout
3783
3784 \begin_layout Standard
3785 のようになります。
3786 \end_layout
3787
3788 \begin_layout Labeling
3789 \labelwidthstring 00.00.0000
3790 \begin_inset Flex Code
3791 status collapsed
3792
3793 \begin_layout Plain Layout
3794 kmod
3795 \end_layout
3796
3797 \end_inset
3798
3799  アクセント文字を指定する
3800 \end_layout
3801
3802 \begin_layout LyX-Code
3803
3804 \backslash
3805 kmod 
3806 \family roman
3807 \emph on
3808 文字 アクセント 許可文字
3809 \end_layout
3810
3811 \begin_layout Standard
3812 これは
3813 \emph on
3814 文字
3815 \emph default
3816
3817 \emph on
3818 許可文字
3819 \emph default
3820 のアクセントとするものです。これはデッドキー
3821 \begin_inset Foot
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825
3826 \emph on
3827 デッドキー
3828 \emph default
3829 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
3830 \emph on
3831 ä
3832 \emph default
3833 のようなウムラウトのついた文字は、このようにして出すことができます。
3834 \end_layout
3835
3836 \end_inset
3837
3838 機構です。
3839 \end_layout
3840
3841 \begin_layout Standard
3842
3843 \emph on
3844 文字
3845 \emph default
3846 を打鍵してから
3847 \emph on
3848 許可文字
3849 \emph default
3850 にないキーを打鍵すると、
3851 \emph on
3852 文字
3853 \emph default
3854 の後に許可文字ではないその文字が出力として表示されます。
3855 \begin_inset Flex MenuItem
3856 status collapsed
3857
3858 \begin_layout Plain Layout
3859 Backspace
3860 \end_layout
3861
3862 \end_inset
3863
3864 はデッドキーを取り消しますので、
3865 \emph on
3866 文字
3867 \emph default
3868
3869 \begin_inset Flex MenuItem
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 Backspace
3874 \end_layout
3875
3876 \end_inset
3877
3878 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
3879 \end_layout
3880
3881 \begin_layout Standard
3882 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
3883 \end_layout
3884
3885 \begin_layout LyX-Code
3886
3887 \backslash
3888 kmod ' acute aeiouAEIOU
3889 \end_layout
3890
3891 \begin_layout Labeling
3892 \labelwidthstring 00.00.0000
3893 \begin_inset Flex Code
3894 status collapsed
3895
3896 \begin_layout Plain Layout
3897 ksmod
3898 \end_layout
3899
3900 \end_inset
3901
3902  アクセント文字に例外を指定する
3903 \end_layout
3904
3905 \begin_layout LyX-Code
3906
3907 \backslash
3908 kxmod  
3909 \family roman
3910 \emph on
3911 アクセント 文字 結果
3912 \end_layout
3913
3914 \begin_layout Standard
3915 これは
3916 \emph on
3917 文字
3918 \emph default
3919 上の
3920 \emph on
3921 アクセント
3922 \emph default
3923 について例外を指定するものです。ここで
3924 \emph on
3925 アクセント
3926 \emph default
3927 には、前出の
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932
3933 \backslash
3934 kmod
3935 \end_layout
3936
3937 \end_inset
3938
3939 宣言で打鍵キーを既に割り当てられてなくてはならず、
3940 \emph on
3941 文字
3942 \emph default
3943
3944 \emph on
3945 アクセント
3946 \emph default
3947
3948 \emph on
3949 許可文字
3950 \emph default
3951 の集合に属していてはなりません。こうして
3952 \emph on
3953 アクセント
3954 \emph default
3955
3956 \emph on
3957 文字
3958 \emph default
3959 の順に入力すると、
3960 \emph on
3961 結果
3962 \emph default
3963 が出力されるようになります。
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 .kmap
3969 \end_layout
3970
3971 \end_inset
3972
3973 ファイルにこの宣言がない場合には、
3974 \emph on
3975 アクセント
3976 \emph default
3977
3978 \emph on
3979 文字
3980 \emph default
3981 と入力すると、
3982 \emph on
3983 アクセントキー
3984 \emph default
3985
3986 \emph on
3987 文字
3988 \emph default
3989
3990 \emph on
3991 アクセントキー
3992 \emph default
3993
3994 \begin_inset Flex Code
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998
3999 \backslash
4000 kmod
4001 \end_layout
4002
4003 \end_inset
4004
4005 宣言の最初の変数)と出力されます。
4006 \end_layout
4007
4008 \begin_layout Standard
4009 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4010 \end_layout
4011
4012 \begin_layout LyX-Code
4013
4014 \backslash
4015 kxmod acute i "
4016 \backslash
4017
4018 \backslash
4019 '{
4020 \backslash
4021
4022 \backslash
4023 i}"
4024 \end_layout
4025
4026 \begin_layout Labeling
4027 \labelwidthstring 00.00.0000
4028 \begin_inset Flex Code
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 kcomb
4033 \end_layout
4034
4035 \end_inset
4036
4037  2つのアクセント文字を結合する
4038 \end_layout
4039
4040 \begin_layout LyX-Code
4041
4042 \backslash
4043 kcomb 
4044 \family roman
4045 \emph on
4046 アクセント1 アクセント2 許可文字
4047 \end_layout
4048
4049 \begin_layout Standard
4050 これはなかなか難解になってきます。これは
4051 \emph on
4052 アクセント1
4053 \emph default
4054
4055 \emph on
4056 アクセント2
4057 \emph default
4058 を(この順番で)結びつけて、
4059 \emph on
4060 許可文字
4061 \emph default
4062 に効果を及ぼすようにします。
4063 \emph on
4064 アクセント1
4065 \emph default
4066
4067 \emph on
4068 アクセント2
4069 \emph default
4070 の打鍵キーは、ファイル内のこのコマンド
4071 \emph on
4072 よりも前に
4073 \emph default
4074
4075 \begin_inset Flex Code
4076 status collapsed
4077
4078 \begin_layout Plain Layout
4079
4080 \backslash
4081 kmod
4082 \end_layout
4083
4084 \end_inset
4085
4086 コマンドで設定されていなくてはなりません。
4087 \end_layout
4088
4089 \begin_layout Standard
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094 greek.kmap
4095 \end_layout
4096
4097 \end_inset
4098
4099 ファイル上にある例をとってみましょう。
4100 \end_layout
4101
4102 \begin_layout LyX-Code
4103
4104 \backslash
4105 kmod ; acute aeioyvhAEIOYVH 
4106 \backslash
4107 kmod : umlaut iyIY 
4108 \backslash
4109 kcomb acute umlaut iyIY
4110 \end_layout
4111
4112 \begin_layout Standard
4113 これは
4114 \begin_inset Flex MenuItem
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118 ;:i
4119 \end_layout
4120
4121 \end_inset
4122
4123 を押すと
4124 \begin_inset Flex Code
4125 status collapsed
4126
4127 \begin_layout Plain Layout
4128
4129 \backslash
4130 '{
4131 \backslash
4132 "{i}}
4133 \end_layout
4134
4135 \end_inset
4136
4137 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4138 \begin_inset Flex MenuItem
4139 status collapsed
4140
4141 \begin_layout Plain Layout
4142 ;: Backspace i
4143 \end_layout
4144
4145 \end_inset
4146
4147 と押した場合には、
4148 \begin_inset Flex Code
4149 status collapsed
4150
4151 \begin_layout Plain Layout
4152
4153 \backslash
4154 '{i}
4155 \end_layout
4156
4157 \end_inset
4158
4159 となります。
4160 \end_layout
4161
4162 \begin_layout Subsection
4163 .cdefファイル
4164 \end_layout
4165
4166 \begin_layout Standard
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171 .kmap
4172 \end_layout
4173
4174 \end_inset
4175
4176 による割り当てが行われた後、
4177 \begin_inset Flex Code
4178 status collapsed
4179
4180 \begin_layout Plain Layout
4181 .cdef
4182 \end_layout
4183
4184 \end_inset
4185
4186 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。LyX頒布版には、現在のところ、少なくとも
4187 \begin_inset Flex Code
4188 status collapsed
4189
4190 \begin_layout Plain Layout
4191 iso8859-1.cdef
4192 \end_layout
4193
4194 \end_inset
4195
4196 ファイルと
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 iso8859-2.cdef
4202 \end_layout
4203
4204 \end_inset
4205
4206 ファイルが含まれています。
4207 \end_layout
4208
4209 \begin_layout Standard
4210 一般的に
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215 .cdef
4216 \end_layout
4217
4218 \end_inset
4219
4220 ファイルは、
4221 \end_layout
4222
4223 \begin_layout LyX-Code
4224
4225 \family roman
4226 \emph on
4227 セット中の文字番号
4228 \family default
4229 \emph default
4230  
4231 \family roman
4232 \emph on
4233  文字列
4234 \end_layout
4235
4236 \begin_layout Standard
4237 という形の宣言の羅列です。たとえば、
4238 \begin_inset Flex MenuItem
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242
4243 \backslash
4244 '{e}
4245 \end_layout
4246
4247 \end_inset
4248
4249 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4250 \end_layout
4251
4252 \begin_layout LyX-Code
4253 233 "
4254 \backslash
4255
4256 \backslash
4257 '{e}"
4258 \end_layout
4259
4260 \begin_layout Standard
4261 ここで、
4262 \emph on
4263 文字列
4264 \emph default
4265 中の
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270
4271 \backslash
4272
4273 \end_layout
4274
4275 \end_inset
4276
4277
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282 "
4283 \end_layout
4284
4285 \end_inset
4286
4287 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 iso-8859-7.cdef
4293 \end_layout
4294
4295 \end_inset
4296
4297 ファイルには、
4298 \end_layout
4299
4300 \begin_layout LyX-Code
4301 192 "
4302 \backslash
4303
4304 \backslash
4305 '{
4306 \backslash
4307
4308 \backslash
4309
4310 \backslash
4311 "{i}}"
4312 \begin_inset Newline newline
4313 \end_inset
4314
4315 192 "
4316 \backslash
4317
4318 \backslash
4319
4320 \backslash
4321 "{
4322 \backslash
4323
4324 \backslash
4325 '{i}}"
4326 \end_layout
4327
4328 \begin_layout Standard
4329 という例があります。LyXは、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈がで
4330 きないかどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4331 \end_layout
4332
4333 \begin_layout Subsection
4334 デッドキー
4335 \end_layout
4336
4337 \begin_layout Standard
4338 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4339 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4340 \end_layout
4341
4342 \begin_layout Standard
4343 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4344 \begin_inset Flex Code
4345 status collapsed
4346
4347 \begin_layout Plain Layout
4348 lyxrc
4349 \end_layout
4350
4351 \end_inset
4352
4353 ファイル中で、
4354 \begin_inset Flex MenuItem
4355 status collapsed
4356
4357 \begin_layout Plain Layout
4358 ^
4359 \end_layout
4360
4361 \end_inset
4362
4363 キー(すなわち
4364 \begin_inset Flex MenuItem
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368 Shift-6
4369 \end_layout
4370
4371 \end_inset
4372
4373 キー)を、LyXコマンドの
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378 accent-circumflex
4379 \end_layout
4380
4381 \end_inset
4382
4383 に結びつけることができます。すると
4384 \begin_inset Flex MenuItem
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388 ^
4389 \end_layout
4390
4391 \end_inset
4392
4393 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4394 \begin_inset Flex MenuItem
4395 status collapsed
4396
4397 \begin_layout Plain Layout
4398 ^e
4399 \end_layout
4400
4401 \end_inset
4402
4403 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4404 \begin_inset Flex MenuItem
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408 ^t
4409 \end_layout
4410
4411 \end_inset
4412
4413 」と打鍵したならば、「
4414 \begin_inset Flex MenuItem
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 t
4419 \end_layout
4420
4421 \end_inset
4422
4423 」は曲折アクセントをとることは決してないために、LyXはビープを鳴らして文句を付けます。デッドキーの後に
4424 \begin_inset Flex MenuItem
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 スペース
4429 \end_layout
4430
4431 \end_inset
4432
4433 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4434 あります。たとえば、
4435 \begin_inset Flex MenuItem
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439 ,キー
4440 \end_layout
4441
4442 \end_inset
4443
4444 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4445 \end_layout
4446
4447 \begin_layout Standard
4448 デッドキーを割り当てるのによく用いられる方法は、
4449 \begin_inset Flex MenuItem
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 Meta-
4454 \end_layout
4455
4456 \end_inset
4457
4458
4459 \begin_inset Flex MenuItem
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 Ctrl-
4464 \end_layout
4465
4466 \end_inset
4467
4468
4469 \begin_inset Flex MenuItem
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 Shift-
4474 \end_layout
4475
4476 \end_inset
4477
4478 キーを、「
4479 \begin_inset Flex MenuItem
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483 ~
4484 \end_layout
4485
4486 \end_inset
4487
4488 」・「
4489 \begin_inset Flex MenuItem
4490 status collapsed
4491
4492 \begin_layout Plain Layout
4493 ,
4494 \end_layout
4495
4496 \end_inset
4497
4498 」・「
4499 \begin_inset Flex MenuItem
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 ^
4504 \end_layout
4505
4506 \end_inset
4507
4508 」のようなアクセントと一緒に用いる方法です。また、
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 xmodmap
4514 \end_layout
4515
4516 \end_inset
4517
4518
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523 xkeycaps
4524 \end_layout
4525
4526 \end_inset
4527
4528 を使って、特別な
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 Mode_Switch
4534 \end_layout
4535
4536 \end_inset
4537
4538 キーを設定する方法もあります。
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 Mode_Switch
4544 \end_layout
4545
4546 \end_inset
4547
4548 キーは、ちょうど
4549 \begin_inset Flex MenuItem
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 Shift
4554 \end_layout
4555
4556 \end_inset
4557
4558 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563 usldead_cedilla
4564 \end_layout
4565
4566 \end_inset
4567
4568 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応するLyXコマンドに割り当てることもできます
4569 \begin_inset Foot
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \noun on
4575 John Weiss
4576 \noun default
4577 からの註:これはまさに私が、自分の
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 ~/.lyx/lyxrc
4583 \end_layout
4584
4585 \end_inset
4586
4587
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592 ~/.xmodmap
4593 \end_layout
4594
4595 \end_inset
4596
4597 で行っていることです。私は、
4598 \begin_inset Flex MenuItem
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602 Scroll
4603 \begin_inset space ~
4604 \end_inset
4605
4606 Lock
4607 \end_layout
4608
4609 \end_inset
4610
4611 キーを
4612 \begin_inset Flex Code
4613 status collapsed
4614
4615 \begin_layout Plain Layout
4616 Mode_Shift
4617 \end_layout
4618
4619 \end_inset
4620
4621 に仕立てて、多数の
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626 usldead_*
4627 \end_layout
4628
4629 \end_inset
4630
4631 シンボリックキーを
4632 \begin_inset Flex MenuItem
4633 status collapsed
4634
4635 \begin_layout Plain Layout
4636 Scroll
4637 \begin_inset space ~
4638 \end_inset
4639
4640 Lock-^
4641 \end_layout
4642
4643 \end_inset
4644
4645
4646 \begin_inset Flex MenuItem
4647 status collapsed
4648
4649 \begin_layout Plain Layout
4650 Scroll
4651 \begin_inset space ~
4652 \end_inset
4653
4654 Lock-~
4655 \end_layout
4656
4657 \end_inset
4658
4659 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4660 \end_layout
4661
4662 \end_inset
4663
4664 。この
4665 \begin_inset Flex Code
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669 Mode_Switch
4670 \end_layout
4671
4672 \end_inset
4673
4674 キーには、
4675 \begin_inset Flex MenuItem
4676 status collapsed
4677
4678 \begin_layout Plain Layout
4679 Ctrl-
4680 \end_layout
4681
4682 \end_inset
4683
4684 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出すLyXコマンドについては、
4685 \emph on
4686 LyX関数説明書
4687 \emph default
4688
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693 LFUN_ACCENT_*
4694 \end_layout
4695
4696 \end_inset
4697
4698 の項をご覧ください。ここには完備した一覧があります。
4699 \end_layout
4700
4701 \begin_layout Subsection
4702 自分の言語設定を保存する
4703 \end_layout
4704
4705 \begin_layout Standard
4706 \begin_inset Flex MenuItem
4707 status collapsed
4708
4709 \begin_layout Plain Layout
4710 ツール\SpecialChar \menuseparator
4711 設定
4712 \end_layout
4713
4714 \end_inset
4715
4716 ダイアログを使えば、LyXを起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
4717 \end_layout
4718
4719 \begin_layout Chapter
4720 文書クラス・レイアウト・ひな型の新規導入
4721 \begin_inset CommandInset label
4722 LatexCommand label
4723 name "cha:新規文書を導入"
4724
4725 \end_inset
4726
4727
4728 \begin_inset Argument
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 文書クラスを新規に導入する
4733 \end_layout
4734
4735 \end_inset
4736
4737
4738 \end_layout
4739
4740 \begin_layout Standard
4741 この章では、新しくLyXのレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規にLaTeX文書クラス(ドキュメントクラス)を正しく導
4742 入する方法を復習します。
4743 \end_layout
4744
4745 \begin_layout Standard
4746 まず、LyXとLaTeXの間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、LyXは、La
4747 TeXについて何も知らないと云うことです。実際のところ、LyXの観点からは、LaTeXは、LyXが出力を生成することができる、複数の「バックエンド形式」のうちの
4748 一つに過ぎないということです。同種のバックエンド形式には、DocBook・平文・XHTMLがあります。もちろんLaTeXは、とくに重要な形式ですが、LyXがLa
4749 TeXについて持っている情報のほとんどは、実はプログラム本体には含まれていないのです
4750 \begin_inset Foot
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 過度に複雑なため、LyXに「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
4755 \end_layout
4756
4757 \end_inset
4758
4759 。このような情報は、
4760 \begin_inset Flex Code
4761 status collapsed
4762
4763 \begin_layout Plain Layout
4764 article.cls
4765 \end_layout
4766
4767 \end_inset
4768
4769 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、LyXは、DocBookやXHTMLについてもほとんど知りません。LyXが知っているこ
4770 とは、レイアウトファイルの中にあります。
4771 \end_layout
4772
4773 \begin_layout Standard
4774 文書クラス用のレイアウトファイルは、LyX構成体---対応する様式や何らかの差込枠などを有する段落群---と、それに対応するLaTeX構成体・DocBook構成
4775 体・XHTML構成体との間の翻訳指南書のようなものです。たとえば、LyXが
4776 \begin_inset Flex Code
4777 status collapsed
4778
4779 \begin_layout Plain Layout
4780 article.cls
4781 \end_layout
4782
4783 \end_inset
4784
4785 について知っていることのほとんど総ては、
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 article.layout
4791 \end_layout
4792
4793 \end_inset
4794
4795 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
4796 としては、
4797 \begin_inset Flex Code
4798 status collapsed
4799
4800 \begin_layout Plain Layout
4801 article.layout
4802 \end_layout
4803
4804 \end_inset
4805
4806
4807 \begin_inset Flex Code
4808 status collapsed
4809
4810 \begin_layout Plain Layout
4811 book.layout
4812 \end_layout
4813
4814 \end_inset
4815
4816 や、文書クラス用の他のレイアウトファイルに取り込まれている
4817 \begin_inset Flex Code
4818 status collapsed
4819
4820 \begin_layout Plain Layout
4821 stdsections.inc
4822 \end_layout
4823
4824 \end_inset
4825
4826 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
4827 \begin_inset Flex Code
4828 status collapsed
4829
4830 \begin_layout Plain Layout
4831 stdsections.inc
4832 \end_layout
4833
4834 \end_inset
4835
4836 は、節様式や小節様式などとしてマークされている段落を、対応するLaTeX・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかをLyXに知らせるも
4837 のです。基本的に
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 article.layout
4843 \end_layout
4844
4845 \end_inset
4846
4847 ファイルは、これらの
4848 \begin_inset Flex Code
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852 std*.inc
4853 \end_layout
4854
4855 \end_inset
4856
4857 ファイルを取り込んでいるだけのものです。
4858 \end_layout
4859
4860 \begin_layout Standard
4861 しかしながら、LyX--LaTeX間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、LyX構成体自
4862 身が画面上にどのように表示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば
4863 混乱を引き起こす元となります。ある段落様式をLaTeXに翻訳する仕方をLyXに指示することは、その表示の仕方をLyXに指示するものではありません。逆に、ある段落
4864 様式の表示の仕方をLyXに指示することは、その段落様式をどのようにLaTeXに翻訳するかをLyXに指示するものではありません(ましてやLaTeXに表示の仕方を指
4865 示するものではありません)。つまり、一般的に、新しいLyX構成体を定義する際には、(i)
4866 \begin_inset space ~
4867 \end_inset
4868
4869 LaTeXにどのように翻訳するかをLyXに指示する、(ii)
4870 \begin_inset space ~
4871 \end_inset
4872
4873 それをどのように表示するかをLyXに指示する、という、二つのかなり異なることを行わなくてはならないのです。
4874 \end_layout
4875
4876 \begin_layout Standard
4877 もちろん、LyXの他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、LyXが、ブラウザ中での段落の表示方法を(CS
4878 Sの形で)出力するにあたって、当該段落をLyXが画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、LyXが内部的に行うことと、
4879 外部的に行う物事の間の区別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
4880 \begin_inset CommandInset ref
4881 LatexCommand ref
4882 reference "sec:XHTML出力のタグ"
4883
4884 \end_inset
4885
4886 節をご覧ください。
4887 \end_layout
4888
4889 \begin_layout Section
4890 新しいLaTeXファイルの導入
4891 \end_layout
4892
4893 \begin_layout Standard
4894 頒布版によっては、LyXで使いたいLaTeXパッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライド
4895 を準備するためのパッケージである、FoilTeXがないかもしれません。TeXLive(2008年以降)やMiKTeXのような最近のLaTeX頒布版には、これらの
4896 パッケージを導入するためのユーザーインタフェースが用意されています。たとえば、MiKTeXでは、付属の「Package
4897 \begin_inset space ~
4898 \end_inset
4899
4900 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
4901 ださい。
4902 \end_layout
4903
4904 \begin_layout Standard
4905 お使いのLaTeX頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って
4906 手動で導入してください。
4907 \end_layout
4908
4909 \begin_layout Enumerate
4910 \begin_inset CommandInset href
4911 LatexCommand href
4912 name "CTAN"
4913 target "http://www.ctan.org/"
4914
4915 \end_inset
4916
4917 などから欲しいパッケージを入手してください。
4918 \end_layout
4919
4920 \begin_layout Enumerate
4921 パッケージに「
4922 \begin_inset Flex Code
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926 .ins
4927 \end_layout
4928
4929 \end_inset
4930
4931 」で終わるファイル名が入っている場合(FoilTeXがその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 latex foiltex.ins
4937 \end_layout
4938
4939 \end_inset
4940
4941 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていのLaTeXパッケージは圧縮されていないので、このステップ
4942 は飛ばすことができます。
4943 \end_layout
4944
4945 \begin_layout Enumerate
4946 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
4947 \end_layout
4948
4949 \begin_deeper
4950 \begin_layout Enumerate
4951 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」TeXツリーに導入し、そうでなければ
4952 「ユーザー」TeXツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
4953 \begin_inset Flex Code
4954 status collapsed
4955
4956 \begin_layout Plain Layout
4957 texmf.cnf
4958 \end_layout
4959
4960 \end_inset
4961
4962 ファイルを参照してください
4963 \begin_inset Foot
4964 status collapsed
4965
4966 \begin_layout Plain Layout
4967 このファイルは、通常
4968 \family sans
4969 $TEXMF/web2c
4970 \family default
4971 ディレクトリにありますが、コマンド
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 kpsewhich texmf.cnf
4977 \end_layout
4978
4979 \end_inset
4980
4981 を実行してその場所を見つけることもできます。
4982 \end_layout
4983
4984 \end_inset
4985
4986 。「ローカル」TeXツリーの場所は、
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991 TEXMFLOCAL
4992 \end_layout
4993
4994 \end_inset
4995
4996 変数で定義されており、通常は
4997 \begin_inset Flex Code
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001 /usr/local/share/texmf/
5002 \end_layout
5003
5004 \end_inset
5005
5006 のような場所になっています。「ユーザー」TeXツリーの場所は、
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 TEXMFHOME
5012 \end_layout
5013
5014 \end_inset
5015
5016 で定義されており、通常は
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021 $HOME/texmf/
5022 \end_layout
5023
5024 \end_inset
5025
5026 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5027 、「ユーザー」ツリーにはこのような制限はありません。
5028 \begin_inset Newline newline
5029 \end_inset
5030
5031 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5032 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5033 \end_layout
5034
5035 \begin_layout Enumerate
5036 Windowでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、LaTeXの導入されているフォルダに移動し、それからサブフォルダ
5037 \begin_inset Flex Code
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041 ~
5042 \backslash
5043 tex
5044 \backslash
5045 latex
5046 \end_layout
5047
5048 \end_inset
5049
5050 に移動します(MiKTeXでは、これは既定では
5051 \begin_inset Flex Code
5052 status collapsed
5053
5054 \begin_layout Plain Layout
5055 ~:Programs
5056 \backslash
5057 MiKTeX
5058 \backslash
5059 tex
5060 \backslash
5061 latex
5062 \end_layout
5063
5064 \end_inset
5065
5066 です)
5067 \begin_inset Foot
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071 これは、英語版でのみ正しいパスになっています。独語版では
5072 \begin_inset Flex Code
5073 status collapsed
5074
5075 \begin_layout Plain Layout
5076 ~:Programme
5077 \backslash
5078 MiKTeX
5079 \backslash
5080 tex
5081 \backslash
5082 latex
5083 \end_layout
5084
5085 \end_inset
5086
5087 となり、他の言語でも同様です。
5088 \end_layout
5089
5090 \end_inset
5091
5092 。ここに新規フォルダ
5093 \begin_inset Flex Code
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097 foiltex
5098 \end_layout
5099
5100 \end_inset
5101
5102 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカルLaTeXフォ
5103 ルダで同じことを行います。たとえばMiKTeX
5104 \begin_inset space ~
5105 \end_inset
5106
5107 2.8では、これはWinXP上では
5108 \begin_inset Newline newline
5109 \end_inset
5110
5111
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 ~:
5117 \backslash
5118 Documents and Settings
5119 \backslash
5120 <ユーザー名>
5121 \backslash
5122 Application Data
5123 \backslash
5124
5125 \end_layout
5126
5127 \end_inset
5128
5129
5130 \begin_inset Newline newline
5131 \end_inset
5132
5133
5134 \begin_inset Phantom HPhantom
5135 status open
5136
5137 \begin_layout Plain Layout
5138
5139 \family typewriter
5140 ~:
5141 \backslash
5142
5143 \end_layout
5144
5145 \end_inset
5146
5147
5148 \begin_inset Flex Code
5149 status collapsed
5150
5151 \begin_layout Plain Layout
5152 MiKTeX
5153 \backslash
5154 2.8
5155 \backslash
5156 tex
5157 \backslash
5158 latex
5159 \end_layout
5160
5161 \end_inset
5162
5163
5164 \begin_inset Newline newline
5165 \end_inset
5166
5167 フォルダ、WinVista上では
5168 \begin_inset Newline newline
5169 \end_inset
5170
5171
5172 \begin_inset Flex Code
5173 status collapsed
5174
5175 \begin_layout Plain Layout
5176 ~:
5177 \backslash
5178 Users
5179 \backslash
5180 <ユーザー名>
5181 \backslash
5182 AppData
5183 \backslash
5184 Roaming
5185 \backslash
5186 2.8
5187 \backslash
5188 MiKTeX
5189 \backslash
5190 tex
5191 \backslash
5192 latex
5193 \end_layout
5194
5195 \end_inset
5196
5197
5198 \begin_inset Newline newline
5199 \end_inset
5200
5201 フォルダになります。
5202 \end_layout
5203
5204 \end_deeper
5205 \begin_layout Enumerate
5206 ここまで来れば、あとはLaTeXに新しいファイルがあることを告げるだけです。これは使用しているLaTeX頒布版に依存します。
5207 \end_layout
5208
5209 \begin_deeper
5210 \begin_layout Enumerate
5211 TeXLiveの場合には、コンソールから
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216 texhash
5217 \end_layout
5218
5219 \end_inset
5220
5221 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5222 \end_layout
5223
5224 \begin_layout Enumerate
5225 MiKTeXでは、パッケージを全ユーザー用に導入した場合には、「Settings
5226 \begin_inset space ~
5227 \end_inset
5228
5229 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5230
5231 \end_layout
5232
5233 \end_deeper
5234 \begin_layout Enumerate
5235 最後に、LyXに新しいパッケージがあることを告げなくてはなりません。そこで、LyXからツール\SpecialChar \menuseparator
5236 再初期設定メニューを実行して、LyXを再起動します。
5237 \end_layout
5238
5239 \begin_layout Standard
5240 これでパッケージが導入されました。この例では、文書クラス
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245 Slides
5246 \begin_inset space ~
5247 \end_inset
5248
5249 (FoilTe
5250 \begin_inset ERT
5251 status collapsed
5252
5253 \begin_layout Plain Layout
5254
5255 {}
5256 \end_layout
5257
5258 \end_inset
5259
5260 X)
5261 \end_layout
5262
5263 \end_inset
5264
5265
5266 \begin_inset Flex MenuItem
5267 status collapsed
5268
5269 \begin_layout Plain Layout
5270 文書\SpecialChar \menuseparator
5271 設定\SpecialChar \menuseparator
5272 文書クラス
5273 \end_layout
5274
5275 \end_inset
5276
5277 で利用可能になっているはずです。
5278 \end_layout
5279
5280 \begin_layout Standard
5281 \begin_inset Flex MenuItem
5282 status collapsed
5283
5284 \begin_layout Plain Layout
5285 文書\SpecialChar \menuseparator
5286 設定\SpecialChar \menuseparator
5287 文書クラス
5288 \end_layout
5289
5290 \end_inset
5291
5292 メニューに列挙されてもいないLaTeX文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5293 \end_layout
5294
5295 \begin_layout Section
5296 レイアウトファイルの型
5297 \end_layout
5298
5299 \begin_layout Standard
5300 この節は、レイアウト情報を含む各種LyXファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、LyXがそれら
5301 をどのように表示すべきなのか、また、それらをどのようにLaTeXやDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5302 \end_layout
5303
5304 \begin_layout Standard
5305 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、LaTeXクラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会い
5306 うるケースや問題をすべてカバーすることはとても望めません。LyXユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊
5307 かな人々がよく顔を出していますので、気軽に質問を投げかけてみてください。
5308 \end_layout
5309
5310 \begin_layout Standard
5311 新しいレイアウトを準備するに当たっては、LyXと共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できるLaTeX文書クラス用のLyX
5312 レイアウトを作ったり、他の人々にも有用なモジュールをお書きになった場合には、
5313 \begin_inset CommandInset href
5314 LatexCommand href
5315 name "LyX Wikiのレイアウトに関する節"
5316 target "http://wiki.lyx.org/Layouts/Layouts"
5317
5318 \end_inset
5319
5320 か、LyX開発者メーリングリストに投稿して、LyX頒布版に同梱することができるようにしてください
5321 \begin_inset Foot
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325 LyXはGeneral Public Licenseの下でライセンスされていますので、LyXに寄贈されたものは総て同じライセンス下に置かれることに注意してくださ
5326 い。
5327 \end_layout
5328
5329 \end_inset
5330
5331
5332 \end_layout
5333
5334 \begin_layout Subsection
5335 レイアウトモジュール
5336 \begin_inset CommandInset label
5337 LatexCommand label
5338 name "sub:レイアウトモジュール"
5339
5340 \end_inset
5341
5342
5343 \end_layout
5344
5345 \begin_layout Standard
5346 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5347 、それは
5348 \begin_inset Flex Code
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352 .layout
5353 \end_layout
5354
5355 \end_inset
5356
5357 拡張子を持ち、文書クラスに関する情報をLyXに提供するものを指します。しかしながら、LyX 1.6以降、レイアウト情報は、拡張子が
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 .module
5363 \end_layout
5364
5365 \end_inset
5366
5367 のレイアウト
5368 \emph on
5369 モジュール
5370 \emph default
5371 にも含めることができます。レイアウトがLaTeXクラスに対応しているように、モジュールはLaTeXパッケージに対応するものであり、
5372 \begin_inset Flex Code
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 endnotes
5377 \end_layout
5378
5379 \end_inset
5380
5381 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5382 イアウトで使用できるという意味において、一面、
5383 \begin_inset Flex Code
5384 status collapsed
5385
5386 \begin_layout Plain Layout
5387 stdsections.inc
5388 \end_layout
5389
5390 \end_inset
5391
5392 等のインクルードファイル
5393 \begin_inset Foot
5394 status collapsed
5395
5396 \begin_layout Plain Layout
5397 これらは任意の拡張子をつけることができますが、慣習的に
5398 \begin_inset Flex Code
5399 status collapsed
5400
5401 \begin_layout Plain Layout
5402 .inc
5403 \end_layout
5404
5405 \end_inset
5406
5407 拡張子が用いられます。
5408 \end_layout
5409
5410 \end_inset
5411
5412 のようなものです。相異なる点といえば、
5413 \begin_inset Flex Code
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 article.cls
5418 \end_layout
5419
5420 \end_inset
5421
5422 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5423 \begin_inset Flex MenuItem
5424 status collapsed
5425
5426 \begin_layout Plain Layout
5427 文書\SpecialChar \menuseparator
5428 設定
5429 \end_layout
5430
5431 \end_inset
5432
5433 ダイアログで選択するだけですみます。
5434 \end_layout
5435
5436 \begin_layout Standard
5437 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5438 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5439 \end_layout
5440
5441 \begin_layout Standard
5442 新しいモジュールを作成し、それを
5443 \begin_inset Flex Code
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 layout/
5448 \end_layout
5449
5450 \end_inset
5451
5452 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、LyXの再設定を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合に
5453 は、
5454 \begin_inset Flex MenuItem
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 文書\SpecialChar \menuseparator
5459 設定
5460 \end_layout
5461
5462 \end_inset
5463
5464 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5465 \emph on
5466 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5467 \emph default
5468 。もっと言えば、
5469 \emph on
5470 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5471 \emph default
5472 。もちろん開発陣は、そのような場合でもLyXが安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こさ
5473 れることがあるからです。
5474 \end_layout
5475
5476 \begin_layout Subsubsection
5477 ローカルレイアウト
5478 \end_layout
5479
5480 \begin_layout Standard
5481 LyXに於けるモジュールは、LaTeXに於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょう
5482 から、そのような場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウ
5483 ト」なのです。
5484 \end_layout
5485
5486 \begin_layout Standard
5487 これは、
5488 \family sans
5489 文書\SpecialChar \menuseparator
5490 設定\SpecialChar \menuseparator
5491 ローカルのレイアウト
5492 \family default
5493 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5494 は、その文書専属のモジュールだと考えることができます。したがって、
5495 \begin_inset Flex Code
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 Format
5500 \end_layout
5501
5502 \end_inset
5503
5504 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(LyX 2.0では、最新書式は35です)。
5505 また、ローカルレイアウトは、LyX 1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書をLyX 1.5またはそれ以前の版に(
5506 ローカルレイアウト情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ---第1.6版はUIはありませんがローカルレイアウトをサ
5507 ポートしています---書き出せることを望むならば、書式11を用いて、さらにLyX 1.6で使用できるレイアウト要素のみを使用してください。
5508 \end_layout
5509
5510 \begin_layout Standard
5511 \begin_inset Flex Code
5512 status collapsed
5513
5514 \begin_layout Plain Layout
5515 ローカルのレイアウト
5516 \end_layout
5517
5518 \end_inset
5519
5520 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
5521 ているかどうかが検証されます。すると、LyXがその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、LyXを
5522 ターミナル(擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
5523 \end_layout
5524
5525 \begin_layout Standard
5526 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
5527 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
5528 \end_layout
5529
5530 \begin_layout Subsection
5531 \begin_inset Flex MenuItem
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 .sty
5536 \end_layout
5537
5538 \end_inset
5539
5540 ファイル用のレイアウト
5541 \end_layout
5542
5543 \begin_layout Standard
5544 新しくLaTeX文書クラスをサポートしようとするとき、LaTeX2eクラス(
5545 \begin_inset Flex Code
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 .cls
5550 \end_layout
5551
5552 \end_inset
5553
5554 )ファイルが絡む場合と、スタイル(
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 .sty
5560 \end_layout
5561
5562 \end_inset
5563
5564 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5565 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5566 が当てはまります。
5567 \end_layout
5568
5569 \begin_layout Standard
5570 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5571 \begin_inset Flex MenuItem
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575 myclass.sty
5576 \end_layout
5577
5578 \end_inset
5579
5580 という名称で、標準的なクラスである
5581 \begin_inset Flex MenuItem
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585 report.cls
5586 \end_layout
5587
5588 \end_inset
5589
5590 と共に用いられるものと仮定しましょう。
5591 \end_layout
5592
5593 \begin_layout Standard
5594 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
5595 \begin_inset Foot
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。LyXでは、起動時に
5600 \begin_inset Flex MenuItem
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604 -userdir
5605 \end_layout
5606
5607 \end_inset
5608
5609 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
5610 \end_layout
5611
5612 \end_inset
5613
5614
5615 \end_layout
5616
5617 \begin_layout LyX-Code
5618 cp report.layout ~/.lyx/layouts/myclass.layout
5619 \end_layout
5620
5621 \begin_layout Standard
5622 それから、
5623 \begin_inset Flex Code
5624 status collapsed
5625
5626 \begin_layout Plain Layout
5627 myclass.layout
5628 \end_layout
5629
5630 \end_inset
5631
5632 を編集して、
5633 \end_layout
5634
5635 \begin_layout LyX-Code
5636
5637 \backslash
5638 DeclareLaT
5639 \begin_inset ERT
5640 status collapsed
5641
5642 \begin_layout Plain Layout
5643
5644 {}
5645 \end_layout
5646
5647 \end_inset
5648
5649 eXClass{report}
5650 \end_layout
5651
5652 \begin_layout Standard
5653 という行を
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657
5658 \backslash
5659 DeclareLaT
5660 \bar under
5661 \lang english
5662
5663 \begin_inset ERT
5664 status collapsed
5665
5666 \begin_layout Plain Layout
5667
5668 {}
5669 \end_layout
5670
5671 \end_inset
5672
5673
5674 \bar default
5675 \lang japanese
5676 eXClass[report, myclass.sty]{report (myclass)}
5677 \end_layout
5678
5679 \begin_layout Standard
5680 のように変更してください。それから、ファイル冒頭辺りに
5681 \end_layout
5682
5683 \begin_layout LyX-Code
5684 Preamble 
5685 \begin_inset Newline newline
5686 \end_inset
5687
5688     
5689 \backslash
5690 usepackage{myclass}
5691 \begin_inset Newline newline
5692 \end_inset
5693
5694 EndPreamble
5695 \end_layout
5696
5697 \begin_layout Standard
5698 と書き加えてください。
5699 \end_layout
5700
5701 \begin_layout Standard
5702 LyXを起動して
5703 \begin_inset Flex MenuItem
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 ツール\SpecialChar \menuseparator
5708 再設定
5709 \end_layout
5710
5711 \end_inset
5712
5713 を選択してください。それからLyXを再起動し、新規文書を作成してみてください。すると、
5714 \begin_inset Flex MenuItem
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 文書\SpecialChar \menuseparator
5719 設定
5720 \end_layout
5721
5722 \end_inset
5723
5724 ダイアログの文書クラスオプションに「
5725 \begin_inset Flex MenuItem
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729 report (myclass)
5730 \end_layout
5731
5732 \end_inset
5733
5734 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
5735 \begin_inset Flex Code
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 report
5740 \end_layout
5741
5742 \end_inset
5743
5744 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
5745 \begin_inset Flex Code
5746 status collapsed
5747
5748 \begin_layout Plain Layout
5749 stdsections.inc
5750 \end_layout
5751
5752 \end_inset
5753
5754 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
5755 \begin_inset Flex Code
5756 status collapsed
5757
5758 \begin_layout Plain Layout
5759 stdsections.inc
5760 \end_layout
5761
5762 \end_inset
5763
5764 も取り込む
5765 \begin_inset Flex Code
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 Input stdclass.inc
5770 \end_layout
5771
5772 \end_inset
5773
5774 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
5775 \end_layout
5776
5777 \begin_layout LyX-Code
5778 Style Chapter
5779 \end_layout
5780
5781 \begin_layout LyX-Code
5782     Font
5783 \end_layout
5784
5785 \begin_layout LyX-Code
5786         Family Sans
5787 \end_layout
5788
5789 \begin_layout LyX-Code
5790     EndFont
5791 \end_layout
5792
5793 \begin_layout LyX-Code
5794 End
5795 \end_layout
5796
5797 \begin_layout Standard
5798 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
5799 \end_layout
5800
5801 \begin_layout Standard
5802 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
5803 いては、第
5804 \begin_inset CommandInset ref
5805 LatexCommand ref
5806 reference "sec:テキストクラス"
5807
5808 \end_inset
5809
5810 節の情報を参照してください。
5811 \end_layout
5812
5813 \begin_layout Standard
5814 もし
5815 \begin_inset Flex Code
5816 status collapsed
5817
5818 \begin_layout Plain Layout
5819 myclass.sty
5820 \end_layout
5821
5822 \end_inset
5823
5824 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
5825 う。最も簡単なモジュールの例としては、以下のようなものになります。
5826 \end_layout
5827
5828 \begin_layout LyX-Code
5829 #
5830 \backslash
5831 DeclareLyXModule{My Package}
5832 \end_layout
5833
5834 \begin_layout LyX-Code
5835 #DescriptionBegin
5836 \end_layout
5837
5838 \begin_layout LyX-Code
5839 #Support for mypkg.sty.
5840 \end_layout
5841
5842 \begin_layout LyX-Code
5843 #DescriptionEnd
5844 \begin_inset Newline newline
5845 \end_inset
5846
5847
5848 \end_layout
5849
5850 \begin_layout LyX-Code
5851 Format 21
5852 \begin_inset Newline newline
5853 \end_inset
5854
5855
5856 \end_layout
5857
5858 \begin_layout LyX-Code
5859 Preamble
5860 \begin_inset Newline newline
5861 \end_inset
5862
5863     
5864 \backslash
5865 usepackage{mypkg}
5866 \begin_inset Newline newline
5867 \end_inset
5868
5869 EndPreamble
5870 \end_layout
5871
5872 \begin_layout Standard
5873 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
5874 \begin_inset CommandInset ref
5875 LatexCommand ref
5876 reference "sec:テキストクラス"
5877
5878 \end_inset
5879
5880 節を参照してください。
5881 \end_layout
5882
5883 \begin_layout Subsection
5884 \begin_inset Flex MenuItem
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 .cls
5889 \end_layout
5890
5891 \end_inset
5892
5893 ファイル用のレイアウト
5894 \end_layout
5895
5896 \begin_layout Standard
5897 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
5898 \begin_inset Flex MenuItem
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 book.cls
5903 \end_layout
5904
5905 \end_inset
5906
5907 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
5908 \end_layout
5909
5910 \begin_layout LyX-Code
5911
5912 \backslash
5913 LoadClass{book}
5914 \end_layout
5915
5916 \begin_layout Standard
5917 という行がないかどうか探してください。もしこれがあれば、
5918 \begin_inset Flex Code
5919 status collapsed
5920
5921 \begin_layout Plain Layout
5922 DeclareLaTeXClass
5923 \end_layout
5924
5925 \end_inset
5926
5927 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
5928 \begin_inset Flex Code
5929 status collapsed
5930
5931 \begin_layout Plain Layout
5932 thesis
5933 \end_layout
5934
5935 \end_inset
5936
5937 であり、
5938 \begin_inset Flex Code
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 book
5943 \end_layout
5944
5945 \end_inset
5946
5947 クラスに基づいていれば、
5948 \begin_inset Flex Code
5949 status collapsed
5950
5951 \begin_layout Plain Layout
5952 DeclareLaTeXClass
5953 \end_layout
5954
5955 \end_inset
5956
5957 行は以下のようにします
5958 \begin_inset Foot
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 さらにLyXは、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 thesis.layout
5968 \end_layout
5969
5970 \end_inset
5971
5972 という名前で保存するのが最も簡単です。 
5973 \end_layout
5974
5975 \end_inset
5976
5977
5978 \end_layout
5979
5980 \begin_layout LyX-Code
5981
5982 \backslash
5983 DeclareLaT
5984 \begin_inset ERT
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988
5989 {}
5990 \end_layout
5991
5992 \end_inset
5993
5994 eXClass[thesis,book]{thesis}
5995 \end_layout
5996
5997 \begin_layout Standard
5998 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似したLaTeXクラスを
5999 使用している既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のフ
6000 ァイルを作業の開始点としてください。
6001 \end_layout
6002
6003 \begin_layout Subsection
6004 ひな型を作成する
6005 \begin_inset CommandInset label
6006 LatexCommand label
6007 name "sec:ひな型を作成する"
6008
6009 \end_inset
6010
6011
6012 \end_layout
6013
6014 \begin_layout Standard
6015 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6016 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、LyX添付のひな型をあれこれ見てみるのもよいでしょう。
6017 \end_layout
6018
6019 \begin_layout Standard
6020 ひな型は、通常の文書と同様、LyXを使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている
6021 点です。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026
6027 \backslash
6028 fontscheme
6029 \end_layout
6030
6031 \end_inset
6032
6033
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038
6039 \backslash
6040 papersize
6041 \end_layout
6042
6043 \end_inset
6044
6045 などの対応するコマンドをひな型LyXファイルから取り除く必要があります。これは、たとえば
6046 \begin_inset Flex Code
6047 status collapsed
6048
6049 \begin_layout Plain Layout
6050 vi
6051 \end_layout
6052
6053 \end_inset
6054
6055
6056 \begin_inset Flex Code
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 notepad
6061 \end_layout
6062
6063 \end_inset
6064
6065 のような、どの軽いテキストエディタでも行うことができます。
6066 \end_layout
6067
6068 \begin_layout Standard
6069 編集したひな型を
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 UserDir/templates/
6075 \end_layout
6076
6077 \end_inset
6078
6079 に置き、グローバルなひな型ディレクトリ
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 LyXDir/templates/
6085 \end_layout
6086
6087 \end_inset
6088
6089 から使用したいものを同じ場所にコピーし、
6090 \begin_inset Flex MenuItem
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 ツール\SpecialChar \menuseparator
6095 設定\SpecialChar \menuseparator
6096 パス
6097 \end_layout
6098
6099 \end_inset
6100
6101 ダイアログのひな型パスを再定義してください。
6102 \end_layout
6103
6104 \begin_layout Standard
6105 ところで、特別な意味を持つひな型
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 defaults.lyx
6111 \end_layout
6112
6113 \end_inset
6114
6115 があることに注意してください。このひな型は、
6116 \begin_inset Flex MenuItem
6117 status collapsed
6118
6119 \begin_layout Plain Layout
6120 ファイル\SpecialChar \menuseparator
6121 新規
6122 \end_layout
6123
6124 \end_inset
6125
6126 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型をLyX内部から作成するのにしなくてはならないことは、対応する設定を持つ
6127 文書を開き、
6128 \begin_inset Flex MenuItem
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 文書既定値として保存
6133 \end_layout
6134
6135 \end_inset
6136
6137 ボタンを押すことです。
6138 \end_layout
6139
6140 \begin_layout Subsection
6141 旧レイアウトファイルの更新
6142 \end_layout
6143
6144 \begin_layout Standard
6145 レイアウトファイルの書式は、LyXのリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。この過程は、LyX第1.4版から自動化されま
6146 した。LyXが古い書式のレイアウトファイルを読み込むと、LyXは、自動的に変換ツール
6147 \begin_inset Flex Code
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151 LyXDir/scripts/layout2layout.py
6152 \end_layout
6153
6154 \end_inset
6155
6156 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、LyXがこれを毎
6157 回行なわくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6158 \end_layout
6159
6160 \begin_layout LyX-Code
6161 mv myclass.layout myclass.old
6162 \end_layout
6163
6164 \begin_layout LyX-Code
6165 python LyXDir/scripts/layout2layout.py myclass.old myclassnew.layout
6166 \end_layout
6167
6168 \begin_layout Standard
6169 もちろん、
6170 \begin_inset Flex Code
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 LyXDir
6175 \end_layout
6176
6177 \end_inset
6178
6179 は、お使いのLyXシステムディレクトリ名に置き換えてください。
6180 \end_layout
6181
6182 \begin_layout Standard
6183 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6184 \end_layout
6185
6186 \begin_layout Section
6187 \begin_inset CommandInset label
6188 LatexCommand label
6189 name "sec:テキストクラス"
6190
6191 \end_inset
6192
6193 レイアウトファイルの書式
6194 \end_layout
6195
6196 \begin_layout Standard
6197 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6198 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6199 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6200 て、もう一杯大人向け飲料をどうぞ。適量ね。
6201 \end_layout
6202
6203 \begin_layout Standard
6204 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6205 \begin_inset Flex Code
6206 status collapsed
6207
6208 \begin_layout Plain Layout
6209 Style
6210 \end_layout
6211
6212 \end_inset
6213
6214
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 style
6220 \end_layout
6221
6222 \end_inset
6223
6224
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 StYlE
6230 \end_layout
6231
6232 \end_inset
6233
6234 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6235 \begin_inset Flex Code
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239
6240 \emph on
6241 強調
6242 \end_layout
6243
6244 \end_inset
6245
6246 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6247 \begin_inset Flex Code
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 浮動小数点型=
6252 \emph on
6253 既定値
6254 \end_layout
6255
6256 \end_inset
6257
6258 のように表示されます。
6259 \end_layout
6260
6261 \begin_layout Subsection
6262 文書クラス宣言
6263 \end_layout
6264
6265 \begin_layout Standard
6266 レイアウトファイル中の
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 #
6272 \end_layout
6273
6274 \end_inset
6275
6276 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 *.layout
6282 \end_layout
6283
6284 \end_inset
6285
6286 ファイルは、以下のような行で始めなくてはならないのです。
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290
6291 \size small
6292 #% Do not delete the line below; configure depends on this 
6293 \end_layout
6294
6295 \begin_layout LyX-Code
6296
6297 \size small
6298 #  
6299 \backslash
6300 DeclareLaT
6301 \size default
6302
6303 \begin_inset ERT
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307
6308 {}
6309 \end_layout
6310
6311 \end_inset
6312
6313
6314 \size small
6315 eXClass{article}
6316 \end_layout
6317
6318 \begin_layout Standard
6319 この2行目は、LyXを初期設定や(再)設定するときに用いられるのです。このレイアウトファイルは、LaTeXスクリプト
6320 \begin_inset Flex Code
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 chkconfig.ltx
6325 \end_layout
6326
6327 \end_inset
6328
6329 が、
6330 \begin_inset Flex Code
6331 status collapsed
6332
6333 \begin_layout Plain Layout
6334 #
6335 \end_layout
6336
6337 \end_inset
6338
6339 を無視する特別なモードで読み込みます。1行目は単なるLaTeXコメントですが、2行目にはテキストクラスの宣言が書かれています。これらの行が
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 article.layout
6345 \end_layout
6346
6347 \end_inset
6348
6349 と名付けられたファイルにあると、
6350 \begin_inset Flex Code
6351 status collapsed
6352
6353 \begin_layout Plain Layout
6354 article
6355 \end_layout
6356
6357 \end_inset
6358
6359 (レイアウトファイル名)という名称のテキストクラスを定義し、LaTeX文書クラス
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 article.cls
6365 \end_layout
6366
6367 \end_inset
6368
6369 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「article」という文字列は、
6370 \begin_inset Flex MenuItem
6371 status collapsed
6372
6373 \begin_layout Plain Layout
6374 文書\SpecialChar \menuseparator
6375 設定
6376 \end_layout
6377
6378 \end_inset
6379
6380 ダイアログのテキストクラスの説明に使用されます。
6381 \end_layout
6382
6383 \begin_layout Standard
6384 節見出し表示に変更を加えた、
6385 \begin_inset Flex Code
6386 status collapsed
6387
6388 \begin_layout Plain Layout
6389 article.cls
6390 \end_layout
6391
6392 \end_inset
6393
6394 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6395 \begin_inset Flex Code
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399 myarticle.layout
6400 \end_layout
6401
6402 \end_inset
6403
6404 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6405 \end_layout
6406
6407 \begin_layout LyX-Code
6408
6409 \size small
6410 #% Do not delete the line below; configure depends on this 
6411 \end_layout
6412
6413 \begin_layout LyX-Code
6414
6415 \size small
6416 #  
6417 \backslash
6418 DeclareLaT
6419 \size default
6420
6421 \begin_inset ERT
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425
6426 {}
6427 \end_layout
6428
6429 \end_inset
6430
6431
6432 \size small
6433 eXClass[article]{article (with my own headings)}
6434 \end_layout
6435
6436 \begin_layout Standard
6437 これは、LaTeX文書クラス
6438 \begin_inset Flex Code
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 article.cls
6443 \end_layout
6444
6445 \end_inset
6446
6447 に関連づけられ、「article (with my own headings)」と表示される、
6448 \begin_inset Flex Code
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452 myarticle
6453 \end_layout
6454
6455 \end_inset
6456
6457 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6458 \end_layout
6459
6460 \begin_layout LyX-Code
6461
6462 \size small
6463 #% Do not delete the line below; configure depends on this 
6464 \end_layout
6465
6466 \begin_layout LyX-Code
6467
6468 \size small
6469 #  
6470 \backslash
6471 DeclareLaT
6472 \size default
6473
6474 \begin_inset ERT
6475 status collapsed
6476
6477 \begin_layout Plain Layout
6478
6479 {}
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \size small
6486 eXClass[article,foo.sty]{article (with my own headings)}
6487 \end_layout
6488
6489 \begin_layout Standard
6490 これは、このテキストクラスが
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 foo.sty
6496 \end_layout
6497
6498 \end_inset
6499
6500 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6501 \end_layout
6502
6503 \begin_layout LyX-Code
6504
6505 \size small
6506 #% Do not delete the line below; configure depends on this 
6507 \end_layout
6508
6509 \begin_layout LyX-Code
6510
6511 \size small
6512
6513 \backslash
6514 DeclareDocBookClass[article]{SGML (DocBook article)}
6515 \end_layout
6516
6517 \begin_layout Standard
6518 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6519 \end_layout
6520
6521 \begin_layout Standard
6522 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6523 \end_layout
6524
6525 \begin_layout LyX-Code
6526
6527 \size small
6528 #  
6529 \backslash
6530 DeclareLaT
6531 \size default
6532
6533 \begin_inset ERT
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537
6538 {}
6539 \end_layout
6540
6541 \end_inset
6542
6543
6544 \size small
6545 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6546 \end_layout
6547
6548 \begin_layout Standard
6549 ここで「クラス」は、LaTeXクラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、LyXは単純に
6550 、クラスファイル名がレイアウトファイル名と同じであると仮定します。
6551 \end_layout
6552
6553 \begin_layout Standard
6554 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6555 \begin_inset Flex Code
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559 L
6560 \begin_inset ERT
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564
6565 {}
6566 \end_layout
6567
6568 \end_inset
6569
6570 yXDir/layouts/
6571 \end_layout
6572
6573 \end_inset
6574
6575
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 UserDir/layouts
6581 \end_layout
6582
6583 \end_inset
6584
6585 にコピーし、
6586 \begin_inset Flex MenuItem
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590 ツール\SpecialChar \menuseparator
6591 再初期設定
6592 \end_layout
6593
6594 \end_inset
6595
6596 を実行し、LyXを終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
6597 \end_layout
6598
6599 \begin_layout Standard
6600 レイアウトファイルが導入されたならば、これを編集して、再初期設定したりLyXを再起動したりすることなく、その変更を確認することができます
6601 \begin_inset Foot
6602 status collapsed
6603
6604 \begin_layout Plain Layout
6605 第1.6版よりも前のLyXでは、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度にLyXを再起動しなくてはならな
6606 かったので、レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
6607 \end_layout
6608
6609 \end_inset
6610
6611 。LyX関数
6612 \begin_inset Flex MenuItem
6613 status collapsed
6614
6615 \begin_layout Plain Layout
6616 layout-reload
6617 \end_layout
6618
6619 \end_inset
6620
6621 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
6622 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
6623 \end_layout
6624
6625 \begin_layout Standard
6626
6627 \emph on
6628 注意
6629 \emph default
6630
6631 \begin_inset Flex MenuItem
6632 status collapsed
6633
6634 \begin_layout Plain Layout
6635 layout-reload
6636 \end_layout
6637
6638 \end_inset
6639
6640 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
6641 \emph on
6642 強く
6643 \emph default
6644 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
6645 \emph on
6646 強く
6647 \emph default
6648 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、LyXは
6649 現在のレイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
6650 \begin_inset Foot
6651 status collapsed
6652
6653 \begin_layout Plain Layout
6654 非常に悪質な文法エラーの場合には、LyXが終了してしまうことさえあります。これは、ある種のエラーでは、LyXがレイアウト情報を全く読めなくなる可能性があるからで
6655 す。ご注意ください。
6656 \end_layout
6657
6658 \end_inset
6659
6660 。LyX開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
6661 \begin_inset Foot
6662 status collapsed
6663
6664 \begin_layout Plain Layout
6665 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
6666 \end_layout
6667
6668 \end_inset
6669
6670
6671 \end_layout
6672
6673 \begin_layout Subsection
6674 モジュール宣言
6675 \end_layout
6676
6677 \begin_layout Standard
6678 モジュールは、以下のような行で始まらなくてはなりません。
6679 \end_layout
6680
6681 \begin_layout LyX-Code
6682 #
6683 \backslash
6684 DeclareL
6685 \begin_inset ERT
6686 status collapsed
6687
6688 \begin_layout Plain Layout
6689
6690 {}
6691 \end_layout
6692
6693 \end_inset
6694
6695 yXModule[endnotes.sty]{Endnotes} 
6696 \end_layout
6697
6698 \begin_layout Standard
6699 波括弧内に入っている必須引数はモジュール名で、これは
6700 \begin_inset Flex MenuItem
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 文書\SpecialChar \menuseparator
6705 設定
6706 \end_layout
6707
6708 \end_inset
6709
6710 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存するLaTeXパッケージをすべて宣言します。角括弧の中には、LyXにとって既知のパッケージ
6711 だけしか、列挙することはできないことに注意してください。
6712 \begin_inset Foot
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 既知のパッケージのリストは、ソースコード中でしか、ドキュメント化されていません。
6717 \end_layout
6718
6719 \end_inset
6720
6721 LyXは、任意のパッケージをチェックすることはしません。また、非必須引数として、
6722 \begin_inset Flex Code
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 変換元->変換先
6727 \end_layout
6728
6729 \end_inset
6730
6731 の形を使用することができます。これは、
6732 \begin_inset Flex Code
6733 status collapsed
6734
6735 \begin_layout Plain Layout
6736 変換元
6737 \end_layout
6738
6739 \end_inset
6740
6741 形式から
6742 \begin_inset Flex Code
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 変換先
6747 \end_layout
6748
6749 \end_inset
6750
6751 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
6752 \end_layout
6753
6754 \begin_layout Standard
6755 それから、以下のようなモジュール宣言を行います。
6756 \lang english
6757
6758 \begin_inset Foot
6759 status open
6760
6761 \begin_layout Plain Layout
6762
6763 \lang english
6764 Preferably in English if the module should be published with LyX.
6765  This description will appear in the list of messages to be translated and
6766  will be thus translated with the next interface update.
6767 \end_layout
6768
6769 \end_inset
6770
6771
6772 \end_layout
6773
6774 \begin_layout LyX-Code
6775 #DescriptionBegin 
6776 \end_layout
6777
6778 \begin_layout LyX-Code
6779 #Adds an endnote command, in addition to footnotes.
6780  
6781 \end_layout
6782
6783 \begin_layout LyX-Code
6784 #You will need to add  
6785 \backslash
6786 theendnotes in T
6787 \begin_inset ERT
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791
6792 {}
6793 \end_layout
6794
6795 \end_inset
6796
6797 eX code where you 
6798 \end_layout
6799
6800 \begin_layout LyX-Code
6801 #want the endnotes to appear.
6802  
6803 \end_layout
6804
6805 \begin_layout LyX-Code
6806 #DescriptionEnd 
6807 \end_layout
6808
6809 \begin_layout LyX-Code
6810 #Requires: somemodule | othermodule
6811 \end_layout
6812
6813 \begin_layout LyX-Code
6814 #Excludes: badmodule
6815 \end_layout
6816
6817 \begin_layout Standard
6818 ここで説明(Description)は、
6819 \begin_inset Flex MenuItem
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 文書\SpecialChar \menuseparator
6824 設定
6825 \end_layout
6826
6827 \end_inset
6828
6829 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 Requires
6835 \end_layout
6836
6837 \end_inset
6838
6839 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
6840 \begin_inset Flex Code
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 Excludes
6845 \end_layout
6846
6847 \end_inset
6848
6849 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
6850 イプ記号「|」で区切らなくてはなりません。
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 Requires
6856 \end_layout
6857
6858 \end_inset
6859
6860 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
6861 \begin_inset Flex Code
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 Requires
6866 \end_layout
6867
6868 \end_inset
6869
6870 に指定されたモジュールのうち、
6871 \emph on
6872 少なくとも一つ
6873 \emph default
6874 が使用されていればよいということです。同様に、
6875 \begin_inset Flex Code
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 Excludes
6880 \end_layout
6881
6882 \end_inset
6883
6884 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 .module
6890 \end_layout
6891
6892 \end_inset
6893
6894 拡張子を除いた
6895 \emph on
6896 ファイル名
6897 \emph default
6898 で認識されることに注意してください。つまり
6899 \begin_inset Flex Code
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 somemodule
6904 \end_layout
6905
6906 \end_inset
6907
6908 とは、実のところ
6909 \begin_inset Flex Code
6910 status collapsed
6911
6912 \begin_layout Plain Layout
6913 somemodule.module
6914 \end_layout
6915
6916 \end_inset
6917
6918 のことです。
6919 \end_layout
6920
6921 \begin_layout Subsection
6922 書式番号
6923 \end_layout
6924
6925 \begin_layout Standard
6926 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
6927 \end_layout
6928
6929 \begin_layout Description
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 Format
6935 \end_layout
6936
6937 \end_inset
6938
6939  [
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 整数型
6945 \end_layout
6946
6947 \end_inset
6948
6949 ] このレイアウトファイルの書式
6950 \end_layout
6951
6952 \begin_layout Standard
6953 このタグはLyX
6954 \begin_inset space ~
6955 \end_inset
6956
6957 1.4.0で導入されました。LyX
6958 \begin_inset space ~
6959 \end_inset
6960
6961 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。LyX現行版のファイル形式は、書式35です。しかし、LyXの各版は、旧
6962 版のLyXで作成されたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
6963 \end_layout
6964
6965 \begin_layout Subsection
6966 \begin_inset CommandInset label
6967 LatexCommand label
6968 name "sub:汎用テキストクラスパラメータ"
6969
6970 \end_inset
6971
6972 汎用テキストクラスパラメータ
6973 \end_layout
6974
6975 \begin_layout Standard
6976 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 .layout
6982 \end_layout
6983
6984 \end_inset
6985
6986 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
6987 \emph on
6988 ありません
6989 \emph default
6990 。モジュールには、すべてのレイアウトタグを使用することができます)。
6991 \end_layout
6992
6993 \begin_layout Description
6994 \begin_inset Flex Code
6995 status collapsed
6996
6997 \begin_layout Plain Layout
6998 AddToHTMLPreamble
6999 \end_layout
7000
7001 \end_inset
7002
7003  この文書クラスがXHTMLに出力されるときに、
7004 \begin_inset Flex Code
7005 status collapsed
7006
7007 \begin_layout Plain Layout
7008 <head>
7009 \end_layout
7010
7011 \end_inset
7012
7013 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 <head>
7019 \end_layout
7020
7021 \end_inset
7022
7023 に出力するものであれば、何でも使用することができます。「
7024 \begin_inset Flex Code
7025 status collapsed
7026
7027 \begin_layout Plain Layout
7028 EndPreamble
7029 \end_layout
7030
7031 \end_inset
7032
7033 」で閉じる必要があります。
7034 \end_layout
7035
7036 \begin_layout Description
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 AddToPreamble
7042 \end_layout
7043
7044 \end_inset
7045
7046  文書プリアンブルに書き加えられる情報です。「
7047 \begin_inset Flex Code
7048 status collapsed
7049
7050 \begin_layout Plain Layout
7051 EndPreamble
7052 \end_layout
7053
7054 \end_inset
7055
7056 」で閉じる必要があります。
7057 \end_layout
7058
7059 \begin_layout Description
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 CiteFormat
7065 \end_layout
7066
7067 \end_inset
7068
7069  書誌情報の表示に使う書式を定義します。詳細については、第
7070 \begin_inset CommandInset ref
7071 LatexCommand ref
7072 reference "sub:引用書式指定"
7073
7074 \end_inset
7075
7076 節をご覧ください。「
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 End
7082 \end_layout
7083
7084 \end_inset
7085
7086 」で閉じる必要があります。
7087 \end_layout
7088
7089 \begin_layout Description
7090 \begin_inset Flex Code
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 ClassOptions
7095 \end_layout
7096
7097 \end_inset
7098
7099  文書クラスがサポートする様々な大域オプションを記します。説明は、第
7100 \begin_inset CommandInset ref
7101 LatexCommand ref
7102 reference "sub:ClassOptions"
7103
7104 \end_inset
7105
7106 節を参照してください。「
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 End
7112 \end_layout
7113
7114 \end_inset
7115
7116 」で閉じる必要があります。
7117 \end_layout
7118
7119 \begin_layout Description
7120 \begin_inset Flex Code
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 Columns
7125 \end_layout
7126
7127 \end_inset
7128
7129  [
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134
7135 \emph on
7136 1
7137 \end_layout
7138
7139 \end_inset
7140
7141 ,
7142 \begin_inset space \thinspace{}
7143 \end_inset
7144
7145
7146 \begin_inset Flex Code
7147 status collapsed
7148
7149 \begin_layout Plain Layout
7150 2
7151 \end_layout
7152
7153 \end_inset
7154
7155 ] 文書クラスが既定で1段組か2段組かを指定します。
7156 \begin_inset Flex MenuItem
7157 status collapsed
7158
7159 \begin_layout Plain Layout
7160 文書\SpecialChar \menuseparator
7161 設定
7162 \end_layout
7163
7164 \end_inset
7165
7166 ダイアログで変更することができます。
7167 \end_layout
7168
7169 \begin_layout Description
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 Counter
7175 \end_layout
7176
7177 \end_inset
7178
7179  [
7180 \begin_inset Flex Code
7181 status collapsed
7182
7183 \begin_layout Plain Layout
7184 文字列
7185 \end_layout
7186
7187 \end_inset
7188
7189 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7190 \begin_inset Flex Code
7191 status collapsed
7192
7193 \begin_layout Plain Layout
7194 End
7195 \end_layout
7196
7197 \end_inset
7198
7199 」で閉じる必要があります。
7200 \begin_inset Newline newline
7201 \end_inset
7202
7203 カウンタについての詳細は、第
7204 \begin_inset CommandInset ref
7205 LatexCommand ref
7206 reference "sub:カウンタ"
7207
7208 \end_inset
7209
7210 節を参照してください。
7211 \end_layout
7212
7213 \begin_layout Description
7214 \begin_inset Flex Code
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 DefaultFont
7219 \end_layout
7220
7221 \end_inset
7222
7223  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、第
7224 \begin_inset CommandInset ref
7225 LatexCommand ref
7226 reference "sub:フォント指定"
7227
7228 \end_inset
7229
7230 節を参照してください。「
7231 \begin_inset Flex Code
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 EndFont
7236 \end_layout
7237
7238 \end_inset
7239
7240 」で閉じる必要があります。
7241 \end_layout
7242
7243 \begin_layout Description
7244
7245 \lang english
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250
7251 \lang english
7252 DefaultModule
7253 \end_layout
7254
7255 \end_inset
7256
7257  [
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262
7263 \lang english
7264 <module>
7265 \end_layout
7266
7267 \end_inset
7268
7269 ]
7270 \lang japanese
7271  この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7272 \begin_inset Flex Code
7273 status collapsed
7274
7275 \begin_layout Plain Layout
7276 .module
7277 \end_layout
7278
7279 \end_inset
7280
7281 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7282 既存の文書にこの文書クラスが選択したときのみ該当します)。
7283 \end_layout
7284
7285 \begin_layout Description
7286 \begin_inset Flex Code
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 DefaultStyle
7291 \end_layout
7292
7293 \end_inset
7294
7295  
7296 \lang english
7297 [
7298 \begin_inset Flex Code
7299 status collapsed
7300
7301 \begin_layout Plain Layout
7302
7303 \lang english
7304 <style>
7305 \end_layout
7306
7307 \end_inset
7308
7309
7310 \lang japanese
7311 これは新規段落に割り当てられる様式であり、通常は
7312 \begin_inset Flex MenuItem
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 標準
7317 \end_layout
7318
7319 \end_inset
7320
7321 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7322 \end_layout
7323
7324 \begin_layout Description
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 ExcludesModule
7330 \end_layout
7331
7332 \end_inset
7333
7334  
7335 \lang english
7336 [
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341
7342 \lang english
7343 <module>
7344 \end_layout
7345
7346 \end_inset
7347
7348 ]
7349 \lang japanese
7350  このタグは、指定されたモジュール—
7351 \begin_inset Flex Code
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 .module
7356 \end_layout
7357
7358 \end_inset
7359
7360 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7361 に振る
7362 \begin_inset Flex Code
7363 status collapsed
7364
7365 \begin_layout Plain Layout
7366 theorems-sec
7367 \end_layout
7368
7369 \end_inset
7370
7371 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7372 \emph on
7373 使用してはいけません
7374 \emph default
7375 。モジュールは、他のモジュールを排除する独自の枠組みがあります(第
7376 \begin_inset CommandInset ref
7377 LatexCommand ref
7378 reference "sub:レイアウトモジュール"
7379
7380 \end_inset
7381
7382 節参照)。
7383 \end_layout
7384
7385 \begin_layout Description
7386 \begin_inset Flex Code
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 Float
7391 \end_layout
7392
7393 \end_inset
7394
7395  フロートを新規に定義します。詳細は、第
7396 \begin_inset CommandInset ref
7397 LatexCommand ref
7398 reference "sub:フロート"
7399
7400 \end_inset
7401
7402 節を参照してください。「
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 End
7408 \end_layout
7409
7410 \end_inset
7411
7412 」で閉じる必要があります。
7413 \end_layout
7414
7415 \begin_layout Description
7416 \begin_inset Flex Code
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 HTMLPreamble
7421 \end_layout
7422
7423 \end_inset
7424
7425  この文書クラスがXHTMLに出力されるときに、
7426 \begin_inset Flex Code
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430 <head>
7431 \end_layout
7432
7433 \end_inset
7434
7435 ブロックに出力される情報です。これより前に出現した
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 HTMLPreamble
7441 \end_layout
7442
7443 \end_inset
7444
7445
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 AddToHTMLPreamble
7451 \end_layout
7452
7453 \end_inset
7454
7455 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 AddToHTMLPreamble
7461 \end_layout
7462
7463 \end_inset
7464
7465 を使用してください)。これは「
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 EndPreamble
7471 \end_layout
7472
7473 \end_inset
7474
7475 」で閉じる必要があります。
7476 \end_layout
7477
7478 \begin_layout Description
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 HTMLStyles
7484 \end_layout
7485
7486 \end_inset
7487
7488  CSSスタイル情報を指定します。これは、「
7489 \begin_inset Flex Code
7490 status collapsed
7491
7492 \begin_layout Plain Layout
7493 <style>
7494 \end_layout
7495
7496 \end_inset
7497
7498 」ブロック内か、ユーザーがそのように選択すれば、独立したCSSファイル内に出力されます。これは、これより以前に宣言された
7499 \begin_inset Flex Code
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 HTMLStyles
7504 \end_layout
7505
7506 \end_inset
7507
7508
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 AddToHTMLStyles
7514 \end_layout
7515
7516 \end_inset
7517
7518 をすべて完全に上書きしてしまうことに注意してください(追加をしたい時には`
7519 \begin_inset Flex Code
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 AddToHTMLStyles
7524 \end_layout
7525
7526 \end_inset
7527
7528 を使用してください)。これは「
7529 \begin_inset Flex Code
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533 EndStyles
7534 \end_layout
7535
7536 \end_inset
7537
7538 」で閉じる必要があります。
7539 \end_layout
7540
7541 \begin_layout Description
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 HTMLTOCSection
7547 \end_layout
7548
7549 \end_inset
7550
7551  
7552 \lang english
7553 [
7554 \begin_inset Flex Code
7555 status collapsed
7556
7557 \begin_layout Plain Layout
7558
7559 \lang english
7560 <style>
7561 \end_layout
7562
7563 \end_inset
7564
7565 ]
7566 \lang japanese
7567  文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です。
7568 これを指定しない場合には、LyXはどのレイアウトを使用するべきか、解析しようと試みます。
7569 \end_layout
7570
7571 \begin_layout Description
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 IfCounter 
7577 \end_layout
7578
7579 \end_inset
7580
7581  [
7582 \begin_inset Flex Code
7583 status collapsed
7584
7585 \begin_layout Plain Layout
7586
7587 \lang english
7588 <counter>
7589 \end_layout
7590
7591 \end_inset
7592
7593 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 End
7599 \end_layout
7600
7601 \end_inset
7602
7603 」で閉じる必要があります。
7604 \begin_inset Newline newline
7605 \end_inset
7606
7607 カウンタについての詳細は、第
7608 \begin_inset CommandInset ref
7609 LatexCommand ref
7610 reference "sub:カウンタ"
7611
7612 \end_inset
7613
7614 節をご覧ください。
7615 \end_layout
7616
7617 \begin_layout Description
7618 \begin_inset Flex Code
7619 status collapsed
7620
7621 \begin_layout Plain Layout
7622 IfStyle
7623 \end_layout
7624
7625 \end_inset
7626
7627  [
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632
7633 \lang english
7634 <style>
7635 \end_layout
7636
7637 \end_inset
7638
7639 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7640 \begin_inset Flex Code
7641 status collapsed
7642
7643 \begin_layout Plain Layout
7644 End
7645 \end_layout
7646
7647 \end_inset
7648
7649 」で閉じる必要があります。
7650 \end_layout
7651
7652 \begin_layout Description
7653 \begin_inset Flex Code
7654 status collapsed
7655
7656 \begin_layout Plain Layout
7657 Input
7658 \end_layout
7659
7660 \end_inset
7661
7662  
7663 \lang english
7664 [
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669
7670 \lang english
7671 <filename>
7672 \end_layout
7673
7674 \end_inset
7675
7676
7677 \lang japanese
7678 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
7679 のほとんどを収録している
7680 \begin_inset Flex Code
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684 stdclass.inc
7685 \end_layout
7686
7687 \end_inset
7688
7689 のような標準レイアウトファイルです。
7690 \end_layout
7691
7692 \begin_layout Description
7693 \begin_inset Flex Code
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 InsetLayout
7698 \end_layout
7699
7700 \end_inset
7701
7702  
7703 \lang english
7704 [
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709
7710 \lang english
7711 <type>
7712 \end_layout
7713
7714 \end_inset
7715
7716
7717 \lang japanese
7718 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
7719 \begin_inset Flex Code
7720 status collapsed
7721
7722 \begin_layout Plain Layout
7723 End
7724 \end_layout
7725
7726 \end_inset
7727
7728 」で閉じる必要があります。
7729 \begin_inset Newline newline
7730 \end_inset
7731
7732 詳しい情報は、第
7733 \begin_inset CommandInset ref
7734 LatexCommand ref
7735 reference "sub:任意設定差込枠"
7736
7737 \end_inset
7738
7739 節をご覧ください。
7740 \end_layout
7741
7742 \begin_layout Description
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 LeftMargin
7748 \end_layout
7749
7750 \end_inset
7751
7752  [
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 文字列
7758 \end_layout
7759
7760 \end_inset
7761
7762 ] 画面上の左余白の幅を指示する文字列。例:「
7763 \begin_inset Flex Code
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 MMMMM
7768 \end_layout
7769
7770 \end_inset
7771
7772 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
7773 \end_layout
7774
7775 \begin_layout Description
7776 \begin_inset Flex Code
7777 status collapsed
7778
7779 \begin_layout Plain Layout
7780 NoCounter
7781 \end_layout
7782
7783 \end_inset
7784
7785  [
7786 \lang english
7787
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792
7793 \lang english
7794 <counter>
7795 \end_layout
7796
7797 \end_inset
7798
7799 ] This command deletes an existing counter, usually one defined in an included
7800  file.
7801 \end_layout
7802
7803 \begin_layout Description
7804 \begin_inset Flex Code
7805 status collapsed
7806
7807 \begin_layout Plain Layout
7808 NoFloat
7809 \end_layout
7810
7811 \end_inset
7812
7813  
7814 \lang english
7815 [
7816 \begin_inset Flex Code
7817 status collapsed
7818
7819 \begin_layout Plain Layout
7820
7821 \lang english
7822 <float>
7823 \end_layout
7824
7825 \end_inset
7826
7827 ]
7828 \lang japanese
7829  このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
7830 \end_layout
7831
7832 \begin_layout Description
7833 \begin_inset Flex Code
7834 status collapsed
7835
7836 \begin_layout Plain Layout
7837 NoStyle
7838 \end_layout
7839
7840 \end_inset
7841
7842  
7843 \lang english
7844 [
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849
7850 \lang english
7851 <style>
7852 \end_layout
7853
7854 \end_inset
7855
7856 ]
7857 \lang japanese
7858  このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
7859 \end_layout
7860
7861 \begin_layout Description
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 OutputFormat
7867 \end_layout
7868
7869 \end_inset
7870
7871  [
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876
7877 \lang english
7878 <format>
7879 \end_layout
7880
7881 \end_inset
7882
7883 ] このクラスによって生成されるファイル形式を示す文字列(
7884 \family sans
7885 設定
7886 \family default
7887 ダイアログで定義される形のもの)。おもに、
7888 \begin_inset Flex Code
7889 status collapsed
7890
7891 \begin_layout Plain Layout
7892 OutputType
7893 \end_layout
7894
7895 \end_inset
7896
7897
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 literate
7903 \end_layout
7904
7905 \end_inset
7906
7907 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
7908 \begin_inset Flex Code
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912 OutputType
7913 \end_layout
7914
7915 \end_inset
7916
7917 パラメーターに遭遇したときには、この文字列は、「
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 docbook
7923 \end_layout
7924
7925 \end_inset
7926
7927 」・「
7928 \begin_inset Flex Code
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932 lat
7933 \emph on
7934 ex
7935 \end_layout
7936
7937 \end_inset
7938
7939 」のいずれかにリセットされます。
7940 \end_layout
7941
7942 \begin_layout Description
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 OutputType
7948 \end_layout
7949
7950 \end_inset
7951
7952  [
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957
7958 \emph on
7959 lat
7960 \emph default
7961 ex
7962 \end_layout
7963
7964 \end_inset
7965
7966
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 docbook
7972 \end_layout
7973
7974 \end_inset
7975
7976
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 literate
7982 \end_layout
7983
7984 \end_inset
7985
7986 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
7987 \end_layout
7988
7989 \begin_layout Description
7990 \begin_inset Flex Code
7991 status collapsed
7992
7993 \begin_layout Plain Layout
7994 PageStyle
7995 \end_layout
7996
7997 \end_inset
7998
7999  [
8000 \emph on
8001
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 plain
8007 \end_layout
8008
8009 \end_inset
8010
8011
8012 \emph default
8013
8014 \begin_inset Flex Code
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 empty
8019 \end_layout
8020
8021 \end_inset
8022
8023
8024 \begin_inset Flex Code
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028 headings
8029 \end_layout
8030
8031 \end_inset
8032
8033 ] 既定ページ様式。
8034 \begin_inset Flex MenuItem
8035 status collapsed
8036
8037 \begin_layout Plain Layout
8038 文書\SpecialChar \menuseparator
8039 設定
8040 \end_layout
8041
8042 \end_inset
8043
8044 ダイアログで変更することができます。
8045 \end_layout
8046
8047 \begin_layout Description
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 Preamble
8053 \end_layout
8054
8055 \end_inset
8056
8057  LaTeX文書のプリアンブルを設定します。前に行った
8058 \begin_inset Flex Code
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062 Preamble
8063 \end_layout
8064
8065 \end_inset
8066
8067 宣言や
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 AddToPreamble
8073 \end_layout
8074
8075 \end_inset
8076
8077 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 AddToPreamble
8083 \end_layout
8084
8085 \end_inset
8086
8087 を使用してください。)「
8088 \begin_inset Flex Code
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092 EndPreamble
8093 \end_layout
8094
8095 \end_inset
8096
8097 」で閉じる必要があります。
8098 \end_layout
8099
8100 \begin_layout Description
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 Provides
8106 \end_layout
8107
8108 \end_inset
8109
8110  [
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 文字列
8116 \end_layout
8117
8118 \end_inset
8119
8120 ] [
8121 \begin_inset Flex Code
8122 status collapsed
8123
8124 \begin_layout Plain Layout
8125
8126 \emph on
8127 0
8128 \end_layout
8129
8130 \end_inset
8131
8132
8133 \begin_inset Flex Code
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 1
8138 \end_layout
8139
8140 \end_inset
8141
8142 ] このクラスが
8143 \begin_inset Flex Code
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 文字列
8148 \end_layout
8149
8150 \end_inset
8151
8152 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 amsmath
8158 \end_layout
8159
8160 \end_inset
8161
8162
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 makeidx
8168 \end_layout
8169
8170 \end_inset
8171
8172 ・\SpecialChar \ldots{}
8173 )やマクロ名(
8174 \begin_inset Flex Code
8175 status collapsed
8176
8177 \begin_layout Plain Layout
8178 url
8179 \end_layout
8180
8181 \end_inset
8182
8183
8184 \begin_inset Flex Code
8185 status collapsed
8186
8187 \begin_layout Plain Layout
8188 boldsymbol
8189 \end_layout
8190
8191 \end_inset
8192
8193 ・\SpecialChar \ldots{}
8194 )です。サポートされている機能の全覧は、LyXソースコード以外には残念ながら文書化されていませんが、興味があれば
8195 \begin_inset Flex Code
8196 status collapsed
8197
8198 \begin_layout Plain Layout
8199 LaTeXFeatures.cpp
8200 \end_layout
8201
8202 \end_inset
8203
8204 をご覧ください。
8205 \begin_inset Flex MenuItem
8206 status collapsed
8207
8208 \begin_layout Plain Layout
8209 ヘルプ\SpecialChar \menuseparator
8210 LaTe
8211 \begin_inset ERT
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215
8216 {}
8217 \end_layout
8218
8219 \end_inset
8220
8221 Xの設定
8222 \end_layout
8223
8224 \end_inset
8225
8226 もサポートされているパッケージの概要を提供します。
8227 \end_layout
8228
8229 \begin_layout Description
8230 \begin_inset Flex Code
8231 status collapsed
8232
8233 \begin_layout Plain Layout
8234 ProvidesModule
8235 \end_layout
8236
8237 \end_inset
8238
8239  [
8240 \begin_inset Flex Code
8241 status collapsed
8242
8243 \begin_layout Plain Layout
8244 文字列
8245 \end_layout
8246
8247 \end_inset
8248
8249 ] このレイアウトが
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 文字列
8255 \end_layout
8256
8257 \end_inset
8258
8259 で表されているモジュールの機能を提供することを示し、
8260 \begin_inset Flex Code
8261 status collapsed
8262
8263 \begin_layout Plain Layout
8264 .module
8265 \end_layout
8266
8267 \end_inset
8268
8269 拡張子を除いたファイル名で指定します。
8270 \begin_inset Flex Code
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 DefaultModule
8275 \end_layout
8276
8277 \end_inset
8278
8279 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8280 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8281 \end_layout
8282
8283 \begin_layout Description
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 Requires
8289 \end_layout
8290
8291 \end_inset
8292
8293  [
8294 \begin_inset Flex Code
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 文字列
8299 \end_layout
8300
8301 \end_inset
8302
8303 ] このクラスが
8304 \begin_inset Flex Code
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308 文字列
8309 \end_layout
8310
8311 \end_inset
8312
8313 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8314 さい。(機能一覧については、これも
8315 \begin_inset Flex Code
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 LaTeXFeatures.cpp
8320 \end_layout
8321
8322 \end_inset
8323
8324 をご覧ください。)
8325 \end_layout
8326
8327 \begin_layout Description
8328 \begin_inset Flex Code
8329 status collapsed
8330
8331 \begin_layout Plain Layout
8332 RightMargin
8333 \end_layout
8334
8335 \end_inset
8336
8337  [
8338 \begin_inset Flex Code
8339 status collapsed
8340
8341 \begin_layout Plain Layout
8342 文字列
8343 \end_layout
8344
8345 \end_inset
8346
8347 ] 画面上の右余白の幅を指示する文字列。例:「
8348 \begin_inset Flex Code
8349 status collapsed
8350
8351 \begin_layout Plain Layout
8352 MMMMM
8353 \end_layout
8354
8355 \end_inset
8356
8357 」。
8358 \end_layout
8359
8360 \begin_layout Description
8361 \begin_inset Flex Code
8362 status collapsed
8363
8364 \begin_layout Plain Layout
8365 SecNumDepth
8366 \end_layout
8367
8368 \end_inset
8369
8370  [
8371 \begin_inset Flex Code
8372 status collapsed
8373
8374 \begin_layout Plain Layout
8375 int=3
8376 \end_layout
8377
8378 \end_inset
8379
8380 ] どの節区切りまで連番を振るかを指定します。LaTeXにおける
8381 \begin_inset Flex Code
8382 status collapsed
8383
8384 \begin_layout Plain Layout
8385 secnumdepth
8386 \end_layout
8387
8388 \end_inset
8389
8390 カウンタに対応します。
8391 \end_layout
8392
8393 \begin_layout Description
8394 \begin_inset Flex Code
8395 status collapsed
8396
8397 \begin_layout Plain Layout
8398 Sides
8399 \end_layout
8400
8401 \end_inset
8402
8403  [
8404 \emph on
8405
8406 \begin_inset Flex Code
8407 status collapsed
8408
8409 \begin_layout Plain Layout
8410 1
8411 \end_layout
8412
8413 \end_inset
8414
8415
8416 \emph default
8417 ,
8418 \begin_inset space \thinspace{}
8419 \end_inset
8420
8421
8422 \begin_inset Flex Code
8423 status collapsed
8424
8425 \begin_layout Plain Layout
8426 2
8427 \end_layout
8428
8429 \end_inset
8430
8431 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8432 \begin_inset Flex MenuItem
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 文書\SpecialChar \menuseparator
8437 設定
8438 \end_layout
8439
8440 \end_inset
8441
8442 ダイアログで変更することができます。
8443 \end_layout
8444
8445 \begin_layout Description
8446 \begin_inset Flex Code
8447 status collapsed
8448
8449 \begin_layout Plain Layout
8450 Style
8451 \end_layout
8452
8453 \end_inset
8454
8455  
8456 \lang english
8457 [
8458 \begin_inset Flex Code
8459 status collapsed
8460
8461 \begin_layout Plain Layout
8462
8463 \lang english
8464 <name>
8465 \end_layout
8466
8467 \end_inset
8468
8469
8470 \lang japanese
8471 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8472 \begin_inset Flex Code
8473 status collapsed
8474
8475 \begin_layout Plain Layout
8476 End
8477 \end_layout
8478
8479 \end_inset
8480
8481 」で閉じる必要があります。
8482 \begin_inset Newline newline
8483 \end_inset
8484
8485 段落様式に関する詳細は、第
8486 \begin_inset CommandInset ref
8487 LatexCommand ref
8488 reference "sub:段落様式-XHTML"
8489
8490 \end_inset
8491
8492 節をご覧ください。
8493 \end_layout
8494
8495 \begin_layout Description
8496 \begin_inset Flex Code
8497 status collapsed
8498
8499 \begin_layout Plain Layout
8500 TitleLatexName
8501 \end_layout
8502
8503 \end_inset
8504
8505  [
8506 \begin_inset Flex Code
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 文字列="maketitle"
8511 \end_layout
8512
8513 \end_inset
8514
8515
8516 \begin_inset Flex Code
8517 status collapsed
8518
8519 \begin_layout Plain Layout
8520 TitleLatexType
8521 \end_layout
8522
8523 \end_inset
8524
8525 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8526  
8527 \begin_inset Flex Code
8528 status collapsed
8529
8530 \begin_layout Plain Layout
8531 TitleLatexType
8532 \end_layout
8533
8534 \end_inset
8535
8536 .
8537 \end_layout
8538
8539 \begin_layout Description
8540 \begin_inset Flex Code
8541 status collapsed
8542
8543 \begin_layout Plain Layout
8544 TitleLatexType
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 \emph on
8556 CommandAfter
8557 \end_layout
8558
8559 \end_inset
8560
8561
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 Environment
8567 \end_layout
8568
8569 \end_inset
8570
8571 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 CommandAfter
8577 \end_layout
8578
8579 \end_inset
8580
8581 は、「
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 InTitle
8587 \begin_inset space ~
8588 \end_inset
8589
8590 1
8591 \end_layout
8592
8593 \end_inset
8594
8595 」が指定されている最後のレイアウトの後に、
8596 \begin_inset Flex Code
8597 status collapsed
8598
8599 \begin_layout Plain Layout
8600 TitleLatexName
8601 \end_layout
8602
8603 \end_inset
8604
8605 で指定したマクロ名を挿入することを意味します。
8606 \begin_inset Flex Code
8607 status collapsed
8608
8609 \begin_layout Plain Layout
8610 Environment
8611 \end_layout
8612
8613 \end_inset
8614
8615 は、「
8616 \begin_inset Flex Code
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 InTitle
8621 \begin_inset space ~
8622 \end_inset
8623
8624 1
8625 \end_layout
8626
8627 \end_inset
8628
8629 」を持つ段落群を
8630 \begin_inset Flex Code
8631 status collapsed
8632
8633 \begin_layout Plain Layout
8634 TitleLatexName
8635 \end_layout
8636
8637 \end_inset
8638
8639 で指定した環境でくるむ場合に対応します。
8640 \end_layout
8641
8642 \begin_layout Description
8643 \begin_inset Flex Code
8644 status collapsed
8645
8646 \begin_layout Plain Layout
8647 TocDepth
8648 \end_layout
8649
8650 \end_inset
8651
8652  [
8653 \begin_inset Flex Code
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 int=3
8658 \end_layout
8659
8660 \end_inset
8661
8662 ] どの節区切りまで目次に取り込むかを指定します。LaTeXの
8663 \begin_inset Flex Code
8664 status collapsed
8665
8666 \begin_layout Plain Layout
8667 tocdepth
8668 \end_layout
8669
8670 \end_inset
8671
8672 カウンタに対応します。
8673 \end_layout
8674
8675 \begin_layout Subsection
8676 \begin_inset Flex Code
8677 status collapsed
8678
8679 \begin_layout Plain Layout
8680 ClassOptions
8681 \end_layout
8682
8683 \end_inset
8684
8685
8686 \begin_inset CommandInset label
8687 LatexCommand label
8688 name "sub:ClassOptions"
8689
8690 \end_inset
8691
8692
8693 \end_layout
8694
8695 \begin_layout Standard
8696 \begin_inset Flex Code
8697 status collapsed
8698
8699 \begin_layout Plain Layout
8700 ClassOptions
8701 \end_layout
8702
8703 \end_inset
8704
8705 部は、以下の項目を取り得ます。
8706 \end_layout
8707
8708 \begin_layout Description
8709 \begin_inset Flex Code
8710 status collapsed
8711
8712 \begin_layout Plain Layout
8713 FontSize
8714 \end_layout
8715
8716 \end_inset
8717
8718  [
8719 \begin_inset Flex Code
8720 status collapsed
8721
8722 \begin_layout Plain Layout
8723 文字列="10|11|12"
8724 \end_layout
8725
8726 \end_inset
8727
8728 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733 |
8734 \end_layout
8735
8736 \end_inset
8737
8738 」で区切ります。
8739 \end_layout
8740
8741 \begin_layout Description
8742 \begin_inset Flex Code
8743 status collapsed
8744
8745 \begin_layout Plain Layout
8746 Header
8747 \end_layout
8748
8749 \end_inset
8750
8751  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
8752 \begin_inset Quotes eld
8753 \end_inset
8754
8755 -//OASIS//DTD DocBook V4.2//EN
8756 \begin_inset Quotes erd
8757 \end_inset
8758
8759
8760 \end_layout
8761
8762 \begin_layout Description
8763 \begin_inset Flex Code
8764 status collapsed
8765
8766 \begin_layout Plain Layout
8767 Other
8768 \end_layout
8769
8770 \end_inset
8771
8772  [
8773 \begin_inset Flex Code
8774 status collapsed
8775
8776 \begin_layout Plain Layout
8777 文字列=""
8778 \end_layout
8779
8780 \end_inset
8781
8782
8783 \begin_inset Flex Code
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787
8788 \backslash
8789 documentclass
8790 \end_layout
8791
8792 \end_inset
8793
8794 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
8795 \end_layout
8796
8797 \begin_layout Description
8798 \begin_inset Flex Code
8799 status collapsed
8800
8801 \begin_layout Plain Layout
8802 PageStyle
8803 \end_layout
8804
8805 \end_inset
8806
8807  [
8808 \begin_inset Flex Code
8809 status collapsed
8810
8811 \begin_layout Plain Layout
8812 文字列="empty|plain|headings|fancy"
8813 \end_layout
8814
8815 \end_inset
8816
8817 ] 使用できるページ様式の一覧です。「
8818 \begin_inset Flex Code
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 |
8823 \end_layout
8824
8825 \end_inset
8826
8827 」で区切ります。
8828 \end_layout
8829
8830 \begin_layout Standard
8831 \begin_inset Flex Code
8832 status collapsed
8833
8834 \begin_layout Plain Layout
8835 ClassOptions
8836 \end_layout
8837
8838 \end_inset
8839
8840 部は「
8841 \begin_inset Flex Code
8842 status collapsed
8843
8844 \begin_layout Plain Layout
8845 End
8846 \end_layout
8847
8848 \end_inset
8849
8850 」で閉じる必要があります。
8851 \end_layout
8852
8853 \begin_layout Subsection
8854 段落様式
8855 \begin_inset CommandInset label
8856 LatexCommand label
8857 name "sub:段落様式"
8858
8859 \end_inset
8860
8861
8862 \end_layout
8863
8864 \begin_layout Standard
8865 段落様式の記述は、以下のようになります
8866 \begin_inset Foot
8867 status collapsed
8868
8869 \begin_layout Plain Layout
8870 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
8871 \end_layout
8872
8873 \end_inset
8874
8875
8876 \end_layout
8877
8878 \begin_layout LyX-Code
8879 Style 
8880 \family roman
8881 \emph on
8882 名称
8883 \end_layout
8884
8885 \begin_layout LyX-Code
8886  ...
8887 \end_layout
8888
8889 \begin_layout LyX-Code
8890 End
8891 \end_layout
8892
8893 \begin_layout Standard
8894 ここでは、以下のコマンドを使用することができます。
8895 \end_layout
8896
8897 \begin_layout Description
8898 \begin_inset Flex Code
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902 Align
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 block
8915 \emph default
8916 , left, right, center
8917 \end_layout
8918
8919 \end_inset
8920
8921 ] 段落の揃え。
8922 \end_layout
8923
8924 \begin_layout Description
8925 \begin_inset Flex Code
8926 status collapsed
8927
8928 \begin_layout Plain Layout
8929 AlignPossible
8930 \end_layout
8931
8932 \end_inset
8933
8934  [
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939
8940 \emph on
8941 block
8942 \emph default
8943 , left, right, center
8944 \end_layout
8945
8946 \end_inset
8947
8948 ] 使用できる揃えのコンマ区切りリスト(LaTeXスタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃え
8949 にすることはできません)。
8950 \end_layout
8951
8952 \begin_layout Description
8953 \begin_inset Flex Code
8954 status collapsed
8955
8956 \begin_layout Plain Layout
8957 BabelPreamble
8958 \end_layout
8959
8960 \end_inset
8961
8962  これは、前に現れたこの様式の
8963 \begin_inset Flex Code
8964 status collapsed
8965
8966 \begin_layout Plain Layout
8967 BabelPreamble
8968 \end_layout
8969
8970 \end_inset
8971
8972 宣言をすべて、完全に上書きしますので注意してください。「
8973 \begin_inset Flex Code
8974 status collapsed
8975
8976 \begin_layout Plain Layout
8977 EndBabelPreamble
8978 \end_layout
8979
8980 \end_inset
8981
8982 」で閉じる必要があります。これの利用法についての詳細は、第
8983 \begin_inset CommandInset ref
8984 LatexCommand ref
8985 reference "sub:段落様式の国際化"
8986
8987 \end_inset
8988
8989 節をご覧ください。
8990 \end_layout
8991
8992 \begin_layout Description
8993 \begin_inset Flex Code
8994 status collapsed
8995
8996 \begin_layout Plain Layout
8997 BottomSep
8998 \end_layout
8999
9000 \end_inset
9001
9002  [
9003 \begin_inset Flex Code
9004 status collapsed
9005
9006 \begin_layout Plain Layout
9007 浮動小数点型=0
9008 \end_layout
9009
9010 \end_inset
9011
9012 ]
9013 \begin_inset Foot
9014 status collapsed
9015
9016 \begin_layout Plain Layout
9017 ここで「浮動小数点型」とは1.5のような実数を指します。
9018 \end_layout
9019
9020 \end_inset
9021
9022  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
9023 す。
9024 \end_layout
9025
9026 \begin_layout Description
9027 \begin_inset Flex Code
9028 status collapsed
9029
9030 \begin_layout Plain Layout
9031 Category
9032 \end_layout
9033
9034 \end_inset
9035
9036  [
9037 \begin_inset Flex Code
9038 status collapsed
9039
9040 \begin_layout Plain Layout
9041 文字列
9042 \end_layout
9043
9044 \end_inset
9045
9046 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
9047 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
9048 \end_layout
9049
9050 \begin_layout Description
9051 \begin_inset Flex Code
9052 status collapsed
9053
9054 \begin_layout Plain Layout
9055 CommandDepth
9056 \end_layout
9057
9058 \end_inset
9059
9060  XMLコマンドの深度。XML型の書式でのみ使用されます。
9061 \end_layout
9062
9063 \begin_layout Description
9064 \begin_inset Flex Code
9065 status collapsed
9066
9067 \begin_layout Plain Layout
9068 CopyStyle
9069 \end_layout
9070
9071 \end_inset
9072
9073  [
9074 \begin_inset Flex Code
9075 status collapsed
9076
9077 \begin_layout Plain Layout
9078 文字列
9079 \end_layout
9080
9081 \end_inset
9082
9083 ] 既存の様式から、すべての機能を現在の様式にコピーします。
9084 \end_layout
9085
9086 \begin_layout Description
9087 \begin_inset Flex Code
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 DependsOn
9092 \end_layout
9093
9094 \end_inset
9095
9096  
9097 \lang english
9098 [
9099 \begin_inset Flex Code
9100 status collapsed
9101
9102 \begin_layout Plain Layout
9103
9104 \lang english
9105 <name>
9106 \end_layout
9107
9108 \end_inset
9109
9110
9111 \lang japanese
9112 この
9113 \emph on
9114 前に
9115 \emph default
9116 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
9117 \begin_inset Foot
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。LyXの特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可
9122 能性があります。
9123 \end_layout
9124
9125 \end_inset
9126
9127
9128 \end_layout
9129
9130 \begin_layout Description
9131 \begin_inset Flex Code
9132 status collapsed
9133
9134 \begin_layout Plain Layout
9135 EndLabeltype
9136 \end_layout
9137
9138 \end_inset
9139
9140  [
9141 \begin_inset Flex Code
9142 status collapsed
9143
9144 \begin_layout Plain Layout
9145
9146 \emph on
9147 No_Label
9148 \emph default
9149 , Box, Filled_Box, Static
9150 \end_layout
9151
9152 \end_inset
9153
9154 ] 段落の最後(あるいは
9155 \begin_inset Flex Code
9156 status collapsed
9157
9158 \begin_layout Plain Layout
9159 LatexType
9160 \end_layout
9161
9162 \end_inset
9163
9164 が、
9165 \begin_inset Flex Code
9166 status collapsed
9167
9168 \begin_layout Plain Layout
9169 Environment
9170 \end_layout
9171
9172 \end_inset
9173
9174
9175 \begin_inset Flex Code
9176 status collapsed
9177
9178 \begin_layout Plain Layout
9179 Item_Environment
9180 \end_layout
9181
9182 \end_inset
9183
9184
9185 \begin_inset Flex Code
9186 status collapsed
9187
9188 \begin_layout Plain Layout
9189 List_Environment
9190 \end_layout
9191
9192 \end_inset
9193
9194 のいずれかの場合は、段落群の最後)に置くラベル。
9195 \begin_inset Flex Code
9196 status collapsed
9197
9198 \begin_layout Plain Layout
9199 No_Label
9200 \end_layout
9201
9202 \end_inset
9203
9204 の場合は「何もない」ことを指し、
9205 \begin_inset Flex Code
9206 status collapsed
9207
9208 \begin_layout Plain Layout
9209 Box
9210 \end_layout
9211
9212 \end_inset
9213
9214 (あるいは
9215 \begin_inset Flex Code
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219 Filled_Box
9220 \end_layout
9221
9222 \end_inset
9223
9224 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
9225 \begin_inset Flex Code
9226 status collapsed
9227
9228 \begin_layout Plain Layout
9229 Static
9230 \end_layout
9231
9232 \end_inset
9233
9234 は明示したテキスト文字列を指します。
9235 \end_layout
9236
9237 \begin_layout Description
9238 \begin_inset Flex Code
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 EndLabelString
9243 \end_layout
9244
9245 \end_inset
9246
9247  [
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 文字列=""
9253 \end_layout
9254
9255 \end_inset
9256
9257
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 Static
9263 \end_layout
9264
9265 \end_inset
9266
9267
9268 \begin_inset Flex Code
9269 status collapsed
9270
9271 \begin_layout Plain Layout
9272 EndLabelType
9273 \end_layout
9274
9275 \end_inset
9276
9277 のラベルで用いる文字列。
9278 \end_layout
9279
9280 \begin_layout Description
9281 \begin_inset Flex Code
9282 status collapsed
9283
9284 \begin_layout Plain Layout
9285 Font
9286 \end_layout
9287
9288 \end_inset
9289
9290  本文テキストとラベルの
9291 \emph on
9292 両方で
9293 \emph default
9294 用いられるフォント。第
9295 \begin_inset CommandInset ref
9296 LatexCommand ref
9297 reference "sub:フォント指定"
9298
9299 \end_inset
9300
9301 節を参照。このフォントを定義すると、自動的に
9302 \begin_inset Flex Code
9303 status collapsed
9304
9305 \begin_layout Plain Layout
9306 LabelFont
9307 \end_layout
9308
9309 \end_inset
9310
9311 も同じ値で定義されることに注意してください。したがって、
9312 \begin_inset Flex Code
9313 status collapsed
9314
9315 \begin_layout Plain Layout
9316 LabelFont
9317 \end_layout
9318
9319 \end_inset
9320
9321 も同時に定義したい場合には、これを先に定義してください。
9322 \end_layout
9323
9324 \begin_layout Description
9325 \begin_inset Flex Code
9326 status collapsed
9327
9328 \begin_layout Plain Layout
9329 FreeSpacing
9330 \end_layout
9331
9332 \end_inset
9333
9334  [
9335 \emph on
9336
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341 0
9342 \end_layout
9343
9344 \end_inset
9345
9346
9347 \emph default
9348 ,
9349 \begin_inset space \thinspace{}
9350 \end_inset
9351
9352
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 1
9358 \end_layout
9359
9360 \end_inset
9361
9362 ] LyXは、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体
9363 はとても素晴らしいことですが、たとえばプログラムコードや生のLaTeXコードを入力しようとするときなどに、煩わしくなることがあります。このことから、
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 FreeSpacing
9369 \end_layout
9370
9371 \end_inset
9372
9373 を有効にすることが認められています。LyXは、LaTeXモード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
9374 \end_layout
9375
9376 \begin_layout Description
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 HTML*
9382 \end_layout
9383
9384 \end_inset
9385
9386  これらのタグは、XHTML出力で使用されます。第
9387 \begin_inset CommandInset ref
9388 LatexCommand ref
9389 reference "sub:段落様式-XHTML"
9390
9391 \end_inset
9392
9393 節をご覧ください。
9394 \end_layout
9395
9396 \begin_layout Description
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 InnerTag
9402 \end_layout
9403
9404 \end_inset
9405
9406  [[FIXME]] (XML型書式でのみ使用されます。)
9407 \end_layout
9408
9409 \begin_layout Description
9410 \begin_inset Flex Code
9411 status collapsed
9412
9413 \begin_layout Plain Layout
9414 InPreamble
9415 \end_layout
9416
9417 \end_inset
9418
9419  [
9420 \emph on
9421
9422 \begin_inset Flex Code
9423 status collapsed
9424
9425 \begin_layout Plain Layout
9426 0
9427 \end_layout
9428
9429 \end_inset
9430
9431
9432 \emph default
9433 ,
9434 \begin_inset space \thinspace{}
9435 \end_inset
9436
9437
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 1
9443 \end_layout
9444
9445 \end_inset
9446
9447
9448 \begin_inset Flex Code
9449 status collapsed
9450
9451 \begin_layout Plain Layout
9452 1
9453 \end_layout
9454
9455 \end_inset
9456
9457 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
9458 です。これは、
9459 \begin_inset Flex Code
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 LatexType
9464 \end_layout
9465
9466 \end_inset
9467
9468
9469 \begin_inset Flex Code
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 Command
9474 \end_layout
9475
9476 \end_inset
9477
9478 または
9479 \begin_inset Flex Code
9480 status collapsed
9481
9482 \begin_layout Plain Layout
9483 Paragraph
9484 \end_layout
9485
9486 \end_inset
9487
9488 の様式に対してのみ動作します。
9489 \end_layout
9490
9491 \begin_layout Description
9492 \begin_inset Flex Code
9493 status collapsed
9494
9495 \begin_layout Plain Layout
9496 InTitle
9497 \end_layout
9498
9499 \end_inset
9500
9501  [
9502 \emph on
9503
9504 \begin_inset Flex Code
9505 status collapsed
9506
9507 \begin_layout Plain Layout
9508 0
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \emph default
9515 ,
9516 \begin_inset space \thinspace{}
9517 \end_inset
9518
9519
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 1
9525 \end_layout
9526
9527 \end_inset
9528
9529
9530 \begin_inset Flex Code
9531 status collapsed
9532
9533 \begin_layout Plain Layout
9534 1
9535 \end_layout
9536
9537 \end_inset
9538
9539 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 TitleLatexType
9545 \end_layout
9546
9547 \end_inset
9548
9549
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554 TitleLatexName
9555 \end_layout
9556
9557 \end_inset
9558
9559 も参照)。
9560 \end_layout
9561
9562 \begin_layout Description
9563 \begin_inset Flex Code
9564 status collapsed
9565
9566 \begin_layout Plain Layout
9567 ItemSep
9568 \end_layout
9569
9570 \end_inset
9571
9572  [
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 浮動小数点型=0
9578 \end_layout
9579
9580 \end_inset
9581
9582 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
9583 \begin_inset Flex Code
9584 status collapsed
9585
9586 \begin_layout Plain Layout
9587 ParSep
9588 \end_layout
9589
9590 \end_inset
9591
9592 だけ分離されます。しかし、その環境の項目全体は、さらにこの
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 ItemSep
9598 \end_layout
9599
9600 \end_inset
9601
9602 分だけ離されます。これは
9603 \emph on
9604 乗数
9605 \emph default
9606 であることに注意してください。
9607 \end_layout
9608
9609 \begin_layout Description
9610 \begin_inset Flex Code
9611 status collapsed
9612
9613 \begin_layout Plain Layout
9614 ItemTag
9615 \end_layout
9616
9617 \end_inset
9618
9619  [[FIXME]] (XML型書式でのみ使用されます。)
9620 \end_layout
9621
9622 \begin_layout Description
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 KeepEmpty
9628 \end_layout
9629
9630 \end_inset
9631
9632  [
9633 \emph on
9634
9635 \begin_inset Flex Code
9636 status collapsed
9637
9638 \begin_layout Plain Layout
9639 0
9640 \end_layout
9641
9642 \end_inset
9643
9644
9645 \emph default
9646 ,
9647 \begin_inset space \thinspace{}
9648 \end_inset
9649
9650
9651 \begin_inset Flex Code
9652 status collapsed
9653
9654 \begin_layout Plain Layout
9655 1
9656 \end_layout
9657
9658 \end_inset
9659
9660 ] 段落を空のままにすると、LaTeX出力が空になってしまうので、通常、LyXは段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場
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 LabelBottomsep
9671 \end_layout
9672
9673 \end_inset
9674
9675  [
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 浮動小数点型=0
9681 \end_layout
9682
9683 \end_inset
9684
9685 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 Top_Environment
9691 \end_layout
9692
9693 \end_inset
9694
9695 および
9696 \begin_inset Newline linebreak
9697 \end_inset
9698
9699
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 Centered_Top_Environment
9705 \end_layout
9706
9707 \end_inset
9708
9709 )。
9710 \end_layout
9711
9712 \begin_layout Description
9713 \begin_inset Flex Code
9714 status collapsed
9715
9716 \begin_layout Plain Layout
9717 LabelCounter
9718 \end_layout
9719
9720 \end_inset
9721
9722  [
9723 \begin_inset Flex Code
9724 status collapsed
9725
9726 \begin_layout Plain Layout
9727 文字列=""
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 \begin_inset Newline newline
9741 \end_inset
9742
9743
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 LabelType
9749 \end_layout
9750
9751 \end_inset
9752
9753
9754 \begin_inset Flex Code
9755 status collapsed
9756
9757 \begin_layout Plain Layout
9758 Counter
9759 \end_layout
9760
9761 \end_inset
9762
9763 型のときには、本項目は
9764 \emph on
9765 必須
9766 \emph default
9767 です。この場合には、この様式が出現するたびにカウンタが増えます。
9768 \begin_inset Newline newline
9769 \end_inset
9770
9771 また、
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 LabelType
9777 \end_layout
9778
9779 \end_inset
9780
9781
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 Enumerate
9787 \end_layout
9788
9789 \end_inset
9790
9791 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
9792 \begin_inset Flex Code
9793 status collapsed
9794
9795 \begin_layout Plain Layout
9796 LabelCounter myenum
9797 \end_layout
9798
9799 \end_inset
9800
9801 」と宣言したものとしましょう。すると、LaTeXにおけるのと同様、実際に使われるカウンタは、
9802 \begin_inset Flex Code
9803 status collapsed
9804
9805 \begin_layout Plain Layout
9806 myenumi
9807 \end_layout
9808
9809 \end_inset
9810
9811
9812 \begin_inset Flex Code
9813 status collapsed
9814
9815 \begin_layout Plain Layout
9816 myenumii
9817 \end_layout
9818
9819 \end_inset
9820
9821
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 myenumii
9827 \end_layout
9828
9829 \end_inset
9830
9831
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 myenumiv
9837 \end_layout
9838
9839 \end_inset
9840
9841 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
9842 \begin_inset Newline newline
9843 \end_inset
9844
9845 カウンタの詳細については、第
9846 \begin_inset CommandInset ref
9847 LatexCommand ref
9848 reference "sub:カウンタ"
9849
9850 \end_inset
9851
9852 節をご覧ください。
9853 \end_layout
9854
9855 \begin_layout Description
9856 \begin_inset Flex Code
9857 status collapsed
9858
9859 \begin_layout Plain Layout
9860 LabelFont
9861 \end_layout
9862
9863 \end_inset
9864
9865  ラベルに使用されるフォント。第
9866 \begin_inset CommandInset ref
9867 LatexCommand ref
9868 reference "sub:フォント指定"
9869
9870 \end_inset
9871
9872 節を参照。
9873 \end_layout
9874
9875 \begin_layout Description
9876 \begin_inset Flex Code
9877 status collapsed
9878
9879 \begin_layout Plain Layout
9880 LabelIndent
9881 \end_layout
9882
9883 \end_inset
9884
9885  [
9886 \begin_inset Flex Code
9887 status collapsed
9888
9889 \begin_layout Plain Layout
9890 文字列=""
9891 \end_layout
9892
9893 \end_inset
9894
9895 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
9896 \end_layout
9897
9898 \begin_layout Description
9899 \begin_inset Flex Code
9900 status collapsed
9901
9902 \begin_layout Plain Layout
9903 LabelSep
9904 \end_layout
9905
9906 \end_inset
9907
9908  [
9909 \begin_inset Flex Code
9910 status collapsed
9911
9912 \begin_layout Plain Layout
9913 文字列=""
9914 \end_layout
9915
9916 \end_inset
9917
9918
9919 \lang english
9920 Text that indicates the amount of
9921 \lang japanese
9922 ラベルと本文テキストの間の水平余白。本文テキストの上に来ないラベルにのみ使用されます。
9923 \end_layout
9924
9925 \begin_layout Description
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 LabelString
9931 \end_layout
9932
9933 \end_inset
9934
9935  [
9936 \begin_inset Flex Code
9937 status collapsed
9938
9939 \begin_layout Plain Layout
9940 文字列=""
9941 \end_layout
9942
9943 \end_inset
9944
9945
9946 \begin_inset Flex Code
9947 status collapsed
9948
9949 \begin_layout Plain Layout
9950 Static
9951 \end_layout
9952
9953 \end_inset
9954
9955 ラベル型でラベルに使用する文字列。
9956 \begin_inset Flex Code
9957 status collapsed
9958
9959 \begin_layout Plain Layout
9960 LabelCounter
9961 \end_layout
9962
9963 \end_inset
9964
9965 を設定している場合、第
9966 \begin_inset CommandInset ref
9967 LatexCommand ref
9968 reference "sub:カウンタ"
9969
9970 \end_inset
9971
9972 節に述べられている特別な整形コマンドを含めることができます。
9973 \end_layout
9974
9975 \begin_layout Description
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980 LabelStringAppendix
9981 \end_layout
9982
9983 \end_inset
9984
9985  [
9986 \begin_inset Flex Code
9987 status collapsed
9988
9989 \begin_layout Plain Layout
9990 文字列=""
9991 \end_layout
9992
9993 \end_inset
9994
9995 ] これは付録の中で
9996 \begin_inset Flex Code
9997 status collapsed
9998
9999 \begin_layout Plain Layout
10000 LabelString
10001 \end_layout
10002
10003 \end_inset
10004
10005 の代わりに用いられます。各
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 LabelString
10011 \end_layout
10012
10013 \end_inset
10014
10015 ステートメントは、
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020 LabelStringAppendix
10021 \end_layout
10022
10023 \end_inset
10024
10025 をもリセットすることに注意してください。
10026 \end_layout
10027
10028 \begin_layout Description
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 LabelTag
10034 \end_layout
10035
10036 \end_inset
10037
10038  [FIXME] (XML型書式でのみ使用されます。)
10039 \end_layout
10040
10041 \begin_layout Description
10042 \begin_inset Flex Code
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 LabelType
10047 \end_layout
10048
10049 \end_inset
10050
10051  [
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056
10057 \emph on
10058 No_Label
10059 \emph default
10060 , Manual, Static, Top_Environment,
10061 \begin_inset Newline newline
10062 \end_inset
10063
10064 Centered_Top_Environment, Counter, Sensitive, Enumerate,
10065 \begin_inset Newline newline
10066 \end_inset
10067
10068 Itemize, Bibliography
10069 \end_layout
10070
10071 \end_inset
10072
10073 ]
10074 \end_layout
10075
10076 \begin_deeper
10077 \begin_layout Description
10078 \begin_inset Flex Code
10079 status collapsed
10080
10081 \begin_layout Plain Layout
10082 Manual
10083 \end_layout
10084
10085 \end_inset
10086
10087  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
10088 \end_layout
10089
10090 \begin_layout Description
10091 \begin_inset Flex Code
10092 status collapsed
10093
10094 \begin_layout Plain Layout
10095 Static
10096 \end_layout
10097
10098 \end_inset
10099
10100  は、ラベルが
10101 \begin_inset Flex Code
10102 status collapsed
10103
10104 \begin_layout Plain Layout
10105 LabelString
10106 \end_layout
10107
10108 \end_inset
10109
10110 で宣言したものであることを示します。これは「静的」であることに注意してください。
10111 \end_layout
10112
10113 \begin_layout Description
10114 \begin_inset Flex Code
10115 status collapsed
10116
10117 \begin_layout Plain Layout
10118 Top_Environment
10119 \end_layout
10120
10121 \end_inset
10122
10123
10124 \begin_inset Flex Code
10125 status collapsed
10126
10127 \begin_layout Plain Layout
10128 Centered_Top_Environment
10129 \end_layout
10130
10131 \end_inset
10132
10133  は、
10134 \begin_inset Flex Code
10135 status collapsed
10136
10137 \begin_layout Plain Layout
10138 Static
10139 \end_layout
10140
10141 \end_inset
10142
10143 の特別な場合です。ラベルは段落の上に印字されるのですが、それは単一の環境の上か、このレイアウトを持つ連続した段落群の上だけに印字されます。たとえば、
10144 \begin_inset Flex MenuItem
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 Abstract
10149 \end_layout
10150
10151 \end_inset
10152
10153 レイアウトが使用したりします。
10154 \end_layout
10155
10156 \begin_layout Description
10157 \begin_inset Flex Code
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 Sensitive
10162 \end_layout
10163
10164 \end_inset
10165
10166  はキャプションラベルの「図」や「表」の特別な場合です。
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 Sensitive
10172 \end_layout
10173
10174 \end_inset
10175
10176 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
10177 Type N」にハードコードされています。
10178 \end_layout
10179
10180 \begin_layout Description
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 Counter
10186 \end_layout
10187
10188 \end_inset
10189
10190  ラベル型は、自動的に連番が付されるラベルを定義します。
10191 \begin_inset Flex Code
10192 status collapsed
10193
10194 \begin_layout Plain Layout
10195 LabelString
10196 \end_layout
10197
10198 \end_inset
10199
10200 は、それが含むカウンタ参照をすべて解決するために展開されます。これは、たとえば
10201 \begin_inset Flex Code
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 Section 
10206 \backslash
10207 thechapter.
10208 \backslash
10209 thesection
10210 \end_layout
10211
10212 \end_inset
10213
10214 のようになります。第
10215 \begin_inset CommandInset ref
10216 LatexCommand ref
10217 reference "sub:カウンタ"
10218
10219 \end_inset
10220
10221 節を参照してください。
10222 \end_layout
10223
10224 \begin_layout Description
10225 \begin_inset Flex Code
10226 status collapsed
10227
10228 \begin_layout Plain Layout
10229 Enumerate
10230 \end_layout
10231
10232 \end_inset
10233
10234  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
10235 す。
10236 \end_layout
10237
10238 \begin_layout Description
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 Itemize
10244 \end_layout
10245
10246 \end_inset
10247
10248  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
10249 \end_layout
10250
10251 \begin_layout Description
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 Bibliography
10257 \end_layout
10258
10259 \end_inset
10260
10261  は、LyXで内部的に使用され、
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 LatexType BibEnvironment
10267 \end_layout
10268
10269 \end_inset
10270
10271 とともにのみ使用されます。
10272 \end_layout
10273
10274 \end_deeper
10275 \begin_layout Description
10276 \begin_inset Flex Code
10277 status collapsed
10278
10279 \begin_layout Plain Layout
10280 LangPreamble
10281 \end_layout
10282
10283 \end_inset
10284
10285  これは、この様式で既に出現した
10286 \begin_inset Flex Code
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 LangPreamble
10291 \end_layout
10292
10293 \end_inset
10294
10295 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、第
10296 \begin_inset CommandInset ref
10297 LatexCommand ref
10298 reference "sub:段落様式の国際化"
10299
10300 \end_inset
10301
10302 節をご覧ください。
10303 \end_layout
10304
10305 \begin_layout Description
10306 \begin_inset Flex Code
10307 status collapsed
10308
10309 \begin_layout Plain Layout
10310 LatexName
10311 \end_layout
10312
10313 \end_inset
10314
10315  
10316 \lang english
10317 [
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322
10323 \lang english
10324 <name>
10325 \end_layout
10326
10327 \end_inset
10328
10329
10330 \lang japanese
10331 対応するLaTeXの名称です。環境名かコマンド名を指します。
10332 \end_layout
10333
10334 \begin_layout Description
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 LatexParam
10340 \end_layout
10341
10342 \end_inset
10343
10344  
10345 \lang english
10346 [
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351
10352 \lang english
10353 <parameter>
10354 \end_layout
10355
10356 \end_inset
10357
10358 ]
10359 \lang japanese
10360  対応する
10361 \begin_inset Flex Code
10362 status collapsed
10363
10364 \begin_layout Plain Layout
10365 LatexName
10366 \end_layout
10367
10368 \end_inset
10369
10370 の非必須パラメータです。このパラメータは、LyX内部から変更することはできません。
10371 \end_layout
10372
10373 \begin_layout Description
10374 \begin_inset Flex Code
10375 status collapsed
10376
10377 \begin_layout Plain Layout
10378 LatexType
10379 \end_layout
10380
10381 \end_inset
10382
10383  [
10384 \begin_inset Flex Code
10385 status collapsed
10386
10387 \begin_layout Plain Layout
10388
10389 \emph on
10390 Paragraph
10391 \emph default
10392 , Command, Environment, Item_Environment,
10393 \begin_inset Newline newline
10394 \end_inset
10395
10396 List_Environment, Bib_Environment
10397 \end_layout
10398
10399 \end_inset
10400
10401 ] レイアウトがどのようにLaTeXに変換されるべきかを示します
10402 \begin_inset Foot
10403 status collapsed
10404
10405 \begin_layout Plain Layout
10406 これらのルールはSGMLクラスにも適用されるので、
10407 \begin_inset Flex Code
10408 status collapsed
10409
10410 \begin_layout Plain Layout
10411 LatexType
10412 \end_layout
10413
10414 \end_inset
10415
10416 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
10417 \end_layout
10418
10419 \end_inset
10420
10421
10422 \end_layout
10423
10424 \begin_deeper
10425 \begin_layout Description
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 Paragraph
10431 \end_layout
10432
10433 \end_inset
10434
10435  は、何も特別なことは意味しません。
10436 \end_layout
10437
10438 \begin_layout Description
10439 \begin_inset Flex Code
10440 status collapsed
10441
10442 \begin_layout Plain Layout
10443 Command
10444 \end_layout
10445
10446 \end_inset
10447
10448  は、
10449 \begin_inset Flex Code
10450 status collapsed
10451
10452 \begin_layout Plain Layout
10453
10454 \backslash
10455
10456 \emph on
10457 LatexName
10458 \emph default
10459 {\SpecialChar \ldots{}
10460 }
10461 \end_layout
10462
10463 \end_inset
10464
10465 を意味します。
10466 \end_layout
10467
10468 \begin_layout Description
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 Environment
10474 \end_layout
10475
10476 \end_inset
10477
10478  は、
10479 \begin_inset Flex Code
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483
10484 \backslash
10485 begin{
10486 \emph on
10487 LatexName
10488 \emph default
10489 }\SpecialChar \ldots{}
10490
10491 \backslash
10492 end{
10493 \emph on
10494 LatexName
10495 \emph default
10496 }
10497 \end_layout
10498
10499 \end_inset
10500
10501 を意味します。
10502 \end_layout
10503
10504 \begin_layout Description
10505 \begin_inset Flex Code
10506 status collapsed
10507
10508 \begin_layout Plain Layout
10509 Item_Environment
10510 \end_layout
10511
10512 \end_inset
10513
10514  は
10515 \begin_inset Flex Code
10516 status collapsed
10517
10518 \begin_layout Plain Layout
10519 Environment
10520 \end_layout
10521
10522 \end_inset
10523
10524 と同じですが、
10525 \begin_inset Flex Code
10526 status collapsed
10527
10528 \begin_layout Plain Layout
10529
10530 \backslash
10531 item
10532 \end_layout
10533
10534 \end_inset
10535
10536 がこの環境のすべての段落に付けられるところだけが異なっています。
10537 \end_layout
10538
10539 \begin_layout Description
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544 List_Environment
10545 \end_layout
10546
10547 \end_inset
10548
10549  は
10550 \begin_inset Flex Code
10551 status collapsed
10552
10553 \begin_layout Plain Layout
10554 Item_Environment
10555 \end_layout
10556
10557 \end_inset
10558
10559 と同じですが、
10560 \begin_inset Flex Code
10561 status collapsed
10562
10563 \begin_layout Plain Layout
10564 LabelWidthString
10565 \end_layout
10566
10567 \end_inset
10568
10569 が環境の引数として渡されるところだけが異なっています。
10570 \begin_inset Flex Code
10571 status collapsed
10572
10573 \begin_layout Plain Layout
10574 LabelWidthString
10575 \end_layout
10576
10577 \end_inset
10578
10579 は、
10580 \begin_inset Flex MenuItem
10581 status collapsed
10582
10583 \begin_layout Plain Layout
10584 編集\SpecialChar \menuseparator
10585 段落設定
10586 \end_layout
10587
10588 \end_inset
10589
10590 ダイアログで定義することができます。
10591 \end_layout
10592
10593 \begin_layout Description
10594
10595 \lang english
10596 \begin_inset Flex Code
10597 status collapsed
10598
10599 \begin_layout Plain Layout
10600
10601 \lang english
10602 Bib_Environment
10603 \end_layout
10604
10605 \end_inset
10606
10607  is like 
10608 \begin_inset Flex Code
10609 status collapsed
10610
10611 \begin_layout Plain Layout
10612
10613 \lang english
10614 Environment
10615 \end_layout
10616
10617 \end_inset
10618
10619  but adds additionally the necessary mandatory argument to the begin statement
10620  of the bibliography environment:
10621 \begin_inset Newline newline
10622 \end_inset
10623
10624
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629
10630 \lang english
10631
10632 \backslash
10633 begin{thebibliography}{99}
10634 \end_layout
10635
10636 \end_inset
10637
10638  It is therefore only useful for bibliography environments.
10639 \end_layout
10640
10641 \begin_layout Standard
10642 上記最後のいくつかをまとめると、LaTeX出力は、LaTeX型に依存して
10643 \end_layout
10644
10645 \begin_layout LyX-Code
10646
10647 \backslash
10648 LatexName[LatexParam]{\SpecialChar \ldots{}
10649 }
10650 \end_layout
10651
10652 \begin_layout Standard
10653 のようになるか、
10654 \end_layout
10655
10656 \begin_layout LyX-Code
10657
10658 \backslash
10659 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
10660  
10661 \backslash
10662 end{LatexName}.
10663 \end_layout
10664
10665 \begin_layout Standard
10666 となります。
10667 \end_layout
10668
10669 \end_deeper
10670 \begin_layout Description
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 LeftMargin
10676 \end_layout
10677
10678 \end_inset
10679
10680  [
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 文字列=""
10686 \end_layout
10687
10688 \end_inset
10689
10690 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
10691 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
10692 \end_inset
10693
10694 をかけて加えられます。このパラメータは、
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 Margin
10700 \end_layout
10701
10702 \end_inset
10703
10704
10705 \begin_inset Flex Code
10706 status collapsed
10707
10708 \begin_layout Plain Layout
10709 Manual
10710 \end_layout
10711
10712 \end_inset
10713
10714 あるいは
10715 \begin_inset Flex Code
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 Dynamic
10720 \end_layout
10721
10722 \end_inset
10723
10724 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
10725 \begin_inset Newline newline
10726 \end_inset
10727
10728 たとえば「
10729 \begin_inset Flex Code
10730 status collapsed
10731
10732 \begin_layout Plain Layout
10733 MM
10734 \end_layout
10735
10736 \end_inset
10737
10738 」と指定すると、段落を通常フォントの「
10739 \begin_inset Flex Code
10740 status collapsed
10741
10742 \begin_layout Plain Layout
10743 MM
10744 \end_layout
10745
10746 \end_inset
10747
10748 」の幅だけ行頭下げを行います。文字列の前に「
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753 -
10754 \end_layout
10755
10756 \end_inset
10757
10758 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
10759 \end_layout
10760
10761 \begin_layout Description
10762 \begin_inset Flex Code
10763 status collapsed
10764
10765 \begin_layout Plain Layout
10766 Margin
10767 \end_layout
10768
10769 \end_inset
10770
10771  [
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776
10777 \emph on
10778 Static
10779 \emph default
10780 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10781 \end_layout
10782
10783 \end_inset
10784
10785
10786 \begin_inset Newline newline
10787 \end_inset
10788
10789 このレイアウトの左余白の種類です。
10790 \end_layout
10791
10792 \begin_deeper
10793 \begin_layout Description
10794 \begin_inset Flex Code
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798 Static
10799 \end_layout
10800
10801 \end_inset
10802
10803  は固定余白を示します。
10804 \end_layout
10805
10806 \begin_layout Description
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 Manual
10812 \end_layout
10813
10814 \end_inset
10815
10816  は、左余白が
10817 \begin_inset Flex MenuItem
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 編集\SpecialChar \menuseparator
10822 段落設定
10823 \end_layout
10824
10825 \end_inset
10826
10827 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
10828 \end_layout
10829
10830 \begin_layout Description
10831 \begin_inset Flex Code
10832 status collapsed
10833
10834 \begin_layout Plain Layout
10835 Dynamic
10836 \end_layout
10837
10838 \end_inset
10839
10840  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
10841  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
10842 \end_layout
10843
10844 \begin_layout Description
10845 \begin_inset Flex Code
10846 status collapsed
10847
10848 \begin_layout Plain Layout
10849 First_Dynamic
10850 \end_layout
10851
10852 \end_inset
10853
10854  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
10855 \end_layout
10856
10857 \begin_layout Description
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 Right_Address_Box
10863 \end_layout
10864
10865 \end_inset
10866
10867  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
10868 \end_layout
10869
10870 \end_deeper
10871 \begin_layout Description
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 NeedProtect
10877 \end_layout
10878
10879 \end_inset
10880
10881  [
10882 \begin_inset Flex Code
10883 status collapsed
10884
10885 \begin_layout Plain Layout
10886
10887 \emph on
10888 0
10889 \end_layout
10890
10891 \end_inset
10892
10893 ,
10894 \begin_inset space \thinspace{}
10895 \end_inset
10896
10897
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 1
10903 \end_layout
10904
10905 \end_inset
10906
10907 ] このレイアウト中の脆弱なコマンドが
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912
10913 \backslash
10914 protect
10915 \end_layout
10916
10917 \end_inset
10918
10919 されるべきか否か(註:これはこのコマンド自体が
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924
10925 \backslash
10926 protect
10927 \end_layout
10928
10929 \end_inset
10930
10931 されるべきかでは
10932 \emph on
10933 ありません
10934 \emph default
10935 )。
10936 \end_layout
10937
10938 \begin_layout Description
10939 \begin_inset Flex Code
10940 status collapsed
10941
10942 \begin_layout Plain Layout
10943 Newline
10944 \end_layout
10945
10946 \end_inset
10947
10948  [
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 0
10954 \end_layout
10955
10956 \end_inset
10957
10958 ,
10959 \begin_inset space \thinspace{}
10960 \end_inset
10961
10962
10963 \begin_inset Flex Code
10964 status collapsed
10965
10966 \begin_layout Plain Layout
10967
10968 \emph on
10969 1
10970 \end_layout
10971
10972 \end_inset
10973
10974 ] 新規行をLaTeXの新規行(
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979
10980 \backslash
10981
10982 \backslash
10983
10984 \end_layout
10985
10986 \end_inset
10987
10988 )に変換するか否か。LyX中でLaTeX編集をやりやすくするために、変換は無効にすることができます。
10989 \end_layout
10990
10991 \begin_layout Description
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 NextNoIndent
10997 \end_layout
10998
10999 \end_inset
11000
11001  [
11002 \begin_inset Flex Code
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006
11007 \emph on
11008 0
11009 \end_layout
11010
11011 \end_inset
11012
11013 ,
11014 \begin_inset space \thinspace{}
11015 \end_inset
11016
11017
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 1
11023 \end_layout
11024
11025 \end_inset
11026
11027 ] 次の段落に最初の行の行頭下げを許すか否か。
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 1
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 は望むならば行頭下げできることを意味します。
11048 \end_layout
11049
11050 \begin_layout Description
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055 ObsoletedBy
11056 \end_layout
11057
11058 \end_inset
11059
11060  
11061 \lang english
11062 [
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067
11068 \lang english
11069 <name>
11070 \end_layout
11071
11072 \end_inset
11073
11074 ]
11075 \lang japanese
11076  このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
11077 \end_layout
11078
11079 \begin_layout Description
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 OptionalArgs
11085 \end_layout
11086
11087 \end_inset
11088
11089  [
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 整数型=0
11095 \end_layout
11096
11097 \end_inset
11098
11099 ] このレイアウトに使用することのできる非必須引数の数。節見出しのようなものに有用であり、LaTeXでのみ意味を持ちます。出力時には、非必須引数は、すべての必須
11100 引数の前に来ることに注意してください(以下参照)。つまり、
11101 \end_layout
11102
11103 \begin_deeper
11104 \begin_layout LyX-Code
11105
11106 \backslash
11107 mycmd[非必須引数1]{必須引数1}{段落の内容}
11108 \end_layout
11109
11110 \begin_layout Standard
11111 のようなコマンドは生成できますが、
11112 \end_layout
11113
11114 \begin_layout LyX-Code
11115
11116 \backslash
11117 mycmd[非必須引数1]{必須引数1}[非必須引数2]{段落の内容}
11118 \end_layout
11119
11120 \begin_layout Standard
11121 のようなコマンドは、TeXコード(これを使えば何でもできます)を使用することなしには、生成することができません。
11122 \end_layout
11123
11124 \end_deeper
11125 \begin_layout Description
11126 \begin_inset Flex Code
11127 status collapsed
11128
11129 \begin_layout Plain Layout
11130 ParbreakIsNewline
11131 \end_layout
11132
11133 \end_inset
11134
11135  [
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140
11141 \emph on
11142 0
11143 \end_layout
11144
11145 \end_inset
11146
11147 ,
11148 \begin_inset space \thinspace{}
11149 \end_inset
11150
11151
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 1
11157 \end_layout
11158
11159 \end_inset
11160
11161 ] LaTeX出力中で、段落を空行ではなく、改行で区切るよう指定します。
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 PassThru 1
11167 \end_layout
11168
11169 \end_inset
11170
11171 と併用すれば、(TeXコードを使用したときのように)テキストエディタをエミュレートすることができます。
11172 \end_layout
11173
11174 \begin_layout Description
11175 \begin_inset Flex Code
11176 status collapsed
11177
11178 \begin_layout Plain Layout
11179 ParIndent
11180 \end_layout
11181
11182 \end_inset
11183
11184  [
11185 \begin_inset Flex Code
11186 status collapsed
11187
11188 \begin_layout Plain Layout
11189 文字列=""
11190 \end_layout
11191
11192 \end_inset
11193
11194 ] 段落の最初の行の行頭下げ。レイアウトによっては
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 Parindent
11200 \end_layout
11201
11202 \end_inset
11203
11204 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
11205 \begin_inset Flex Code
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209 NextNoIndent
11210 \end_layout
11211
11212 \end_inset
11213
11214 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
11215 \begin_inset Flex Code
11216 status collapsed
11217
11218 \begin_layout Plain Layout
11219 Parindent
11220 \end_layout
11221
11222 \end_inset
11223
11224 ではなく、この環境の
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229 Parindent
11230 \end_layout
11231
11232 \end_inset
11233
11234 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
11235 \end_layout
11236
11237 \begin_layout Description
11238 \begin_inset Flex Code
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242 ParSep
11243 \end_layout
11244
11245 \end_inset
11246
11247  [
11248 \begin_inset Flex Code
11249 status collapsed
11250
11251 \begin_layout Plain Layout
11252 浮動小数点型=0
11253 \end_layout
11254
11255 \end_inset
11256
11257 ] このレイアウトの2段落間の垂直余白。
11258 \end_layout
11259
11260 \begin_layout Description
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 Parskip
11266 \end_layout
11267
11268 \end_inset
11269
11270  [
11271 \begin_inset Flex Code
11272 status collapsed
11273
11274 \begin_layout Plain Layout
11275 浮動小数点型=0
11276 \end_layout
11277
11278 \end_inset
11279
11280 ] LyXでは、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ
11281 」を選択した際には、LaTeX型「段落」レイアウトの
11282 \begin_inset Flex Code
11283 status collapsed
11284
11285 \begin_layout Plain Layout
11286 ParIndent
11287 \end_layout
11288
11289 \end_inset
11290
11291 は無視され、すべての段落はこの
11292 \begin_inset Flex Code
11293 status collapsed
11294
11295 \begin_layout Plain Layout
11296 Parskip
11297 \end_layout
11298
11299 \end_inset
11300
11301 引数分だけ引き離されます。垂直余白は、
11302 \begin_inset Flex Code
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306 DefaultHeight
11307 \end_layout
11308
11309 \end_inset
11310
11311 を標準フォントでの1行の高さとすると、
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 Parskipの値
11317 \end_layout
11318
11319 \end_inset
11320
11321
11322 \begin_inset Formula $\times$
11323 \end_inset
11324
11325
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 DefaultHeight
11331 \end_layout
11332
11333 \end_inset
11334
11335 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
11336 \end_layout
11337
11338 \begin_layout Description
11339 \begin_inset Flex Code
11340 status collapsed
11341
11342 \begin_layout Plain Layout
11343 PassThru
11344 \end_layout
11345
11346 \end_inset
11347
11348  [
11349 \emph on
11350
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355 0
11356 \end_layout
11357
11358 \end_inset
11359
11360
11361 \emph default
11362 ,
11363 \begin_inset space \thinspace{}
11364 \end_inset
11365
11366
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371 1
11372 \end_layout
11373
11374 \end_inset
11375
11376 ] この段落の内容が、LaTeXが必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
11377 \end_layout
11378
11379 \begin_layout Description
11380 \begin_inset Flex Code
11381 status collapsed
11382
11383 \begin_layout Plain Layout
11384 Preamble
11385 \end_layout
11386
11387 \end_inset
11388
11389  この様式が使用されたときに、LaTeXプリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用
11390 します。「
11391 \begin_inset Flex Code
11392 status collapsed
11393
11394 \begin_layout Plain Layout
11395 EndPreamble
11396 \end_layout
11397
11398 \end_inset
11399
11400 」で閉じる必要があります。
11401 \end_layout
11402
11403 \begin_layout Description
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 RefPrefix
11409 \end_layout
11410
11411 \end_inset
11412
11413  [
11414 \begin_inset Flex Code
11415 status collapsed
11416
11417 \begin_layout Plain Layout
11418 文字列
11419 \end_layout
11420
11421 \end_inset
11422
11423 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
11424 \end_layout
11425
11426 \begin_layout Description
11427 \begin_inset Flex Code
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 RequiredArgs
11432 \end_layout
11433
11434 \end_inset
11435
11436  [
11437 \begin_inset Flex Code
11438 status collapsed
11439
11440 \begin_layout Plain Layout
11441 整数型=0
11442 \end_layout
11443
11444 \end_inset
11445
11446 ] このレイアウトに対応するLaTeXコマンドやLaTeX環境が予期している、必須引数の数。コマンドの場合には、段落の内容自体に関連付けられている引数
11447 \emph on
11448 以外に
11449 \emph default
11450 、必要な引数の数のことです。これらの引数は、実際には渡されなくても構いません。必要な場合は、LyXが空の引数を生成します。非必須引数は、必須引数の前に出力される
11451 ことに注意してください。詳細については、上記
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 OptionalArgs
11457 \end_layout
11458
11459 \end_inset
11460
11461 タグにおける議論をご覧ください。
11462 \end_layout
11463
11464 \begin_layout Description
11465 \begin_inset Flex Code
11466 status collapsed
11467
11468 \begin_layout Plain Layout
11469 Requires
11470 \end_layout
11471
11472 \end_inset
11473
11474  [
11475 \begin_inset Flex Code
11476 status collapsed
11477
11478 \begin_layout Plain Layout
11479 文字列
11480 \end_layout
11481
11482 \end_inset
11483
11484
11485 \lang english
11486 Whether the style requires the feature 
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491
11492 \lang english
11493 string
11494 \end_layout
11495
11496 \end_inset
11497
11498 .
11499  See the description of 
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504
11505 \lang english
11506 Provides
11507 \end_layout
11508
11509 \end_inset
11510
11511  above (sec
11512 \lang japanese
11513 .
11514 \begin_inset space ~
11515 \end_inset
11516
11517
11518 \begin_inset CommandInset ref
11519 LatexCommand ref
11520 reference "sub:汎用テキストクラスパラメータ"
11521
11522 \end_inset
11523
11524
11525 \lang english
11526 ) for information on `features'
11527 \lang japanese
11528
11529 \end_layout
11530
11531 \begin_layout Description
11532 \begin_inset Flex Code
11533 status collapsed
11534
11535 \begin_layout Plain Layout
11536 RightMargin
11537 \end_layout
11538
11539 \end_inset
11540
11541  [
11542 \begin_inset Flex Code
11543 status collapsed
11544
11545 \begin_layout Plain Layout
11546 文字列=""
11547 \end_layout
11548
11549 \end_inset
11550
11551
11552 \begin_inset Flex Code
11553 status collapsed
11554
11555 \begin_layout Plain Layout
11556 LeftMargin
11557 \end_layout
11558
11559 \end_inset
11560
11561 に同様。
11562 \end_layout
11563
11564 \begin_layout Description
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569 Spacing
11570 \end_layout
11571
11572 \end_inset
11573
11574  [
11575 \begin_inset Flex Code
11576 status collapsed
11577
11578 \begin_layout Plain Layout
11579
11580 \emph on
11581 single
11582 \end_layout
11583
11584 \end_inset
11585
11586
11587 \begin_inset Flex Code
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591 onehalf
11592 \end_layout
11593
11594 \end_inset
11595
11596
11597 \begin_inset Flex Code
11598 status collapsed
11599
11600 \begin_layout Plain Layout
11601 double
11602 \end_layout
11603
11604 \end_inset
11605
11606
11607 \begin_inset Flex Code
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 other
11612 \begin_inset space ~
11613 \end_inset
11614
11615 <
11616 \emph on
11617
11618 \emph default
11619 >
11620 \end_layout
11621
11622 \end_inset
11623
11624 ]
11625 \lang english
11626  
11627 \lang japanese
11628 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
11629 \begin_inset Flex Code
11630 status collapsed
11631
11632 \begin_layout Plain Layout
11633 single
11634 \end_layout
11635
11636 \end_inset
11637
11638
11639 \begin_inset Flex Code
11640 status collapsed
11641
11642 \begin_layout Plain Layout
11643 onehalf
11644 \end_layout
11645
11646 \end_inset
11647
11648
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 double
11654 \end_layout
11655
11656 \end_inset
11657
11658 は、それぞれ乗数1・1.25・1.667に対応します。引数
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 other
11664 \end_layout
11665
11666 \end_inset
11667
11668 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673 Spacing
11674 \end_layout
11675
11676 \end_inset
11677
11678 は、
11679 \lang english
11680 LaTeX package
11681 \lang japanese
11682
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687 setspace
11688 \end_layout
11689
11690 \end_inset
11691
11692 パッケージを使用した、限定的なLaTeXコードを生成することを意味することにご注意ください。
11693 \end_layout
11694
11695 \begin_layout Description
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 Spellcheck
11701 \end_layout
11702
11703 \end_inset
11704
11705  [
11706 \begin_inset Flex Code
11707 status collapsed
11708
11709 \begin_layout Plain Layout
11710 0
11711 \end_layout
11712
11713 \end_inset
11714
11715 ,
11716 \begin_inset space \thinspace{}
11717 \end_inset
11718
11719
11720 \begin_inset Flex Code
11721 status collapsed
11722
11723 \begin_layout Plain Layout
11724 1
11725 \end_layout
11726
11727 \end_inset
11728
11729 ] この様式の段落をスペルチェックするか否か。既定値は真です。
11730 \end_layout
11731
11732 \begin_layout Description
11733 \begin_inset Flex Code
11734 status collapsed
11735
11736 \begin_layout Plain Layout
11737 TextFont
11738 \end_layout
11739
11740 \end_inset
11741
11742  本文に使うフォント。第
11743 \begin_inset CommandInset ref
11744 LatexCommand ref
11745 reference "sub:フォント指定"
11746
11747 \end_inset
11748
11749 節参照。
11750 \end_layout
11751
11752 \begin_layout Description
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757 TocLevel
11758 \end_layout
11759
11760 \end_inset
11761
11762  [
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 整数型=3
11768 \end_layout
11769
11770 \end_inset
11771
11772 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
11773 \end_layout
11774
11775 \begin_layout Description
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780 TopSep
11781 \end_layout
11782
11783 \end_inset
11784
11785  [
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 浮動小数点型=0
11791 \end_layout
11792
11793 \end_inset
11794
11795 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
11796 の最大値がとられます。
11797 \end_layout
11798
11799 \begin_layout Subsection
11800 \begin_inset CommandInset label
11801 LatexCommand label
11802 name "sub:段落様式の国際化"
11803
11804 \end_inset
11805
11806 段落様式の国際化
11807 \end_layout
11808
11809 \begin_layout Standard
11810 LyXは、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用さ
11811 れませんでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
11812 \lang french
11813 Théorème
11814 \lang japanese
11815  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
11816 \end_layout
11817
11818 \begin_layout Standard
11819 もし
11820 \begin_inset Flex MenuItem
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 Style
11825 \end_layout
11826
11827 \end_inset
11828
11829 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
11830 \begin_inset Flex MenuItem
11831 status collapsed
11832
11833 \begin_layout Plain Layout
11834 LangPreamble
11835 \end_layout
11836
11837 \end_inset
11838
11839
11840 \begin_inset Flex MenuItem
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 BabelPreamble
11845 \end_layout
11846
11847 \end_inset
11848
11849 を使用することができます。以下の抜粋(
11850 \begin_inset Flex MenuItem
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 theorems-ams.inc
11855 \end_layout
11856
11857 \end_inset
11858
11859 より)は、これがどう動作するかを示すものです。
11860 \end_layout
11861
11862 \begin_layout LyX-Code
11863 Preamble
11864 \end_layout
11865
11866 \begin_deeper
11867 \begin_layout LyX-Code
11868   
11869 \backslash
11870 theoremstyle{remark}
11871 \end_layout
11872
11873 \begin_layout LyX-Code
11874   
11875 \backslash
11876 newtheorem{claim}[thm]{
11877 \backslash
11878 protect
11879 \backslash
11880 claimname}
11881 \end_layout
11882
11883 \begin_layout LyX-Code
11884 EndPreamble
11885 \end_layout
11886
11887 \begin_layout LyX-Code
11888 LangPreamble
11889 \end_layout
11890
11891 \begin_layout LyX-Code
11892   
11893 \backslash
11894 providecommand{
11895 \backslash
11896 claimname}{_(Claim)}
11897 \end_layout
11898
11899 \begin_layout LyX-Code
11900 EndLangPreamble
11901 \end_layout
11902
11903 \begin_layout LyX-Code
11904 BabelPreamble
11905 \end_layout
11906
11907 \begin_layout LyX-Code
11908     
11909 \backslash
11910 addto
11911 \backslash
11912 captions$$lang{
11913 \backslash
11914 renewcommand{
11915 \backslash
11916 claimname}{_(Claim)}}
11917 \end_layout
11918
11919 \begin_layout LyX-Code
11920 EndBabelPreamble
11921 \end_layout
11922
11923 \end_deeper
11924 \begin_layout Standard
11925 原則として、
11926 \begin_inset Flex MenuItem
11927 status collapsed
11928
11929 \begin_layout Plain Layout
11930 LangPreamble
11931 \end_layout
11932
11933 \end_inset
11934
11935
11936 \begin_inset Flex MenuItem
11937 status collapsed
11938
11939 \begin_layout Plain Layout
11940 BabelPreamble
11941 \end_layout
11942
11943 \end_inset
11944
11945 タグ内には、有効なLaTeXコードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための
11946 鍵となるのは、LaTeXコマンド
11947 \begin_inset Flex Code
11948 status collapsed
11949
11950 \begin_layout Plain Layout
11951
11952 \backslash
11953 claimname
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 \backslash
11965 newtheorem
11966 \end_layout
11967
11968 \end_inset
11969
11970 中での用い方です。
11971 \end_layout
11972
11973 \begin_layout Standard
11974 \begin_inset Flex Code
11975 status collapsed
11976
11977 \begin_layout Plain Layout
11978 LangPreamble
11979 \end_layout
11980
11981 \end_inset
11982
11983 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988 Preamble
11989 \end_layout
11990
11991 \end_inset
11992
11993 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
11994 \begin_inset Flex Code
11995 status collapsed
11996
11997 \begin_layout Plain Layout
11998 _()
11999 \end_layout
12000
12001 \end_inset
12002
12003 が使用されていることです。これは、LyXがLaTeX出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
12004 \end_layout
12005
12006 \begin_layout Standard
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011 BabelPreamble
12012 \end_layout
12013
12014 \end_inset
12015
12016 タグは、複数言語文書をサポートし、
12017 \begin_inset Flex Code
12018 status collapsed
12019
12020 \begin_layout Plain Layout
12021 babel
12022 \end_layout
12023
12024 \end_inset
12025
12026 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
12027 の場合には、
12028 \begin_inset Flex Code
12029 status collapsed
12030
12031 \begin_layout Plain Layout
12032 _()
12033 \end_layout
12034
12035 \end_inset
12036
12037 の引数は、その当該言語への翻訳で置き換えられ、
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042 $$lang
12043 \end_layout
12044
12045 \end_inset
12046
12047 は言語名(babelパッケージで使用されるもの)で置き換えられます。
12048 \end_layout
12049
12050 \begin_layout Standard
12051 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
12052 \end_layout
12053
12054 \begin_layout LyX-Code
12055
12056 \backslash
12057 addto
12058 \backslash
12059 captionsfrench{
12060 \backslash
12061 renewcommand{
12062 \backslash
12063 claimname}{Affirmation}}
12064 \begin_inset Newline newline
12065 \end_inset
12066
12067
12068 \backslash
12069 addto
12070 \backslash
12071 captionsngerman{
12072 \backslash
12073 renewcommand{
12074 \backslash
12075 claimname}{Behauptung}}
12076 \begin_inset Newline newline
12077 \end_inset
12078
12079
12080 \backslash
12081 providecommand{
12082 \backslash
12083 claimname}{Behauptung}
12084 \end_layout
12085
12086 \begin_layout Standard
12087 それから、LaTeXと
12088 \begin_inset Flex Code
12089 status collapsed
12090
12091 \begin_layout Plain Layout
12092 babel
12093 \end_layout
12094
12095 \end_inset
12096
12097 は協力して、出力に正しい文字列を生成します。
12098 \end_layout
12099
12100 \begin_layout Standard
12101 ここで注意しなくてはならない重要な点は、翻訳は、操作画面の国際化に使われるのと同じ機構を通じて、LyX自身によって提供されるということです。つまり、ユーザー作成
12102 のレイアウトファイルに入力された文字列は、LyXの国際化ルーチンでは取り扱われないので、
12103 \begin_inset Flex MenuItem
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107 LangPreamble
12108 \end_layout
12109
12110 \end_inset
12111
12112
12113 \begin_inset Flex MenuItem
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 BabelPreamble
12118 \end_layout
12119
12120 \end_inset
12121
12122 は、事実上、LyXとともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的にLyXに同梱
12123 させようという意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。
12124 \end_layout
12125
12126 \begin_layout Subsection
12127 フロート
12128 \begin_inset CommandInset label
12129 LatexCommand label
12130 name "sub:フロート"
12131
12132 \end_inset
12133
12134
12135 \end_layout
12136
12137 \begin_layout Standard
12138 LyX第1.3.0版以来、テキストクラス自体の中でフロート(
12139 \begin_inset Flex MenuItem
12140 status collapsed
12141
12142 \begin_layout Plain Layout
12143 figure
12144 \end_layout
12145
12146 \end_inset
12147
12148
12149 \begin_inset Flex MenuItem
12150 status collapsed
12151
12152 \begin_layout Plain Layout
12153 table
12154 \end_layout
12155
12156 \end_inset
12157
12158 ・\SpecialChar \ldots{}
12159 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 stdfloats.inc
12165 \end_layout
12166
12167 \end_inset
12168
12169 ファイルに含まれているので、作業中のレイアウトファイルに
12170 \end_layout
12171
12172 \begin_layout LyX-Code
12173 Input stdfloats.inc
12174 \end_layout
12175
12176 \begin_layout Standard
12177 と加えるだけで済むことも多いでしょう。LyXに同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つ
12178 でありましょう。
12179 \end_layout
12180
12181 \begin_layout Description
12182 \begin_inset Flex Code
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186 Extension
12187 \end_layout
12188
12189 \end_inset
12190
12191  [
12192 \begin_inset Flex Code
12193 status collapsed
12194
12195 \begin_layout Plain Layout
12196 文字列
12197 \end_layout
12198
12199 \end_inset
12200
12201 =
12202 \begin_inset Quotes erd
12203 \end_inset
12204
12205
12206 \begin_inset Quotes erd
12207 \end_inset
12208
12209 ] 図などのリストを含む外部ファイルのファイル拡張子名。LaTeXがキャプションを書き込むファイルです。
12210 \end_layout
12211
12212 \begin_layout Description
12213 \begin_inset Flex Code
12214 status collapsed
12215
12216 \begin_layout Plain Layout
12217 GuiName
12218 \end_layout
12219
12220 \end_inset
12221
12222  [
12223 \begin_inset Flex Code
12224 status collapsed
12225
12226 \begin_layout Plain Layout
12227 文字列
12228 \end_layout
12229
12230 \end_inset
12231
12232 =
12233 \begin_inset Quotes erd
12234 \end_inset
12235
12236
12237 \begin_inset Quotes erd
12238 \end_inset
12239
12240 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
12241 \end_layout
12242
12243 \begin_layout Description
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 HTML*
12249 \end_layout
12250
12251 \end_inset
12252
12253  これらは、XHTML出力で使用されます。第
12254 \begin_inset CommandInset ref
12255 LatexCommand ref
12256 reference "sec:XHTML出力のタグ"
12257
12258 \end_inset
12259
12260 節をご覧ください。
12261 \end_layout
12262
12263 \begin_layout Description
12264 \begin_inset Flex Code
12265 status collapsed
12266
12267 \begin_layout Plain Layout
12268 IsPredefined
12269 \end_layout
12270
12271 \end_inset
12272
12273  [
12274 \begin_inset Flex Code
12275 status collapsed
12276
12277 \begin_layout Plain Layout
12278
12279 \emph on
12280 0
12281 \end_layout
12282
12283 \end_inset
12284
12285 ,
12286 \begin_inset space \thinspace{}
12287 \end_inset
12288
12289
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294 1
12295 \end_layout
12296
12297 \end_inset
12298
12299 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは
12300 \lang english
12301 LaTeX package
12302 \lang japanese
12303
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308 float
12309 \end_layout
12310
12311 \end_inset
12312
12313 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
12314 \begin_inset Flex Code
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318 0
12319 \end_layout
12320
12321 \end_inset
12322
12323 で、この場合
12324 \begin_inset Flex Code
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328 float
12329 \end_layout
12330
12331 \end_inset
12332
12333 を使用します。LaTeXドキュメントクラス中に既に定義されているときには、
12334 \begin_inset Flex Code
12335 status collapsed
12336
12337 \begin_layout Plain Layout
12338 0
12339 \end_layout
12340
12341 \end_inset
12342
12343 に設定しなくてはなりません。
12344 \end_layout
12345
12346 \begin_layout Description
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351 ListCommand
12352 \end_layout
12353
12354 \end_inset
12355
12356  [
12357 \begin_inset Flex Code
12358 status collapsed
12359
12360 \begin_layout Plain Layout
12361 文字列
12362 \end_layout
12363
12364 \end_inset
12365
12366 =
12367 \begin_inset Quotes erd
12368 \end_inset
12369
12370
12371 \begin_inset Quotes erd
12372 \end_inset
12373
12374 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
12375 \backslash
12376 」は書きません。
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 NeedsFloatPkg
12382 \end_layout
12383
12384 \end_inset
12385
12386 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
12387 \emph on
12388 必ず
12389 \emph default
12390 指定しなくてはなりません。
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 NeedsFloatPkg
12396 \end_layout
12397
12398 \end_inset
12399
12400 が真の時は、標準的な方法が存在するので、これは無視されます。
12401 \end_layout
12402
12403 \begin_layout Description
12404 \begin_inset Flex Code
12405 status collapsed
12406
12407 \begin_layout Plain Layout
12408 ListName
12409 \end_layout
12410
12411 \end_inset
12412
12413  [
12414 \begin_inset Flex Code
12415 status collapsed
12416
12417 \begin_layout Plain Layout
12418 文字列
12419 \end_layout
12420
12421 \end_inset
12422
12423 =
12424 \begin_inset Quotes erd
12425 \end_inset
12426
12427
12428 \begin_inset Quotes erd
12429 \end_inset
12430
12431 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。LyX中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La
12432 TeXに渡され、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
12433 \end_layout
12434
12435 \begin_layout Description
12436 \begin_inset Flex Code
12437 status collapsed
12438
12439 \begin_layout Plain Layout
12440 NumberWithin
12441 \end_layout
12442
12443 \end_inset
12444
12445  [
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 文字列
12451 \end_layout
12452
12453 \end_inset
12454
12455 =
12456 \begin_inset Quotes erd
12457 \end_inset
12458
12459
12460 \begin_inset Quotes erd
12461 \end_inset
12462
12463 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。
12464 \lang english
12465 For example, if 
12466 \lang japanese
12467
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 NumberWithin
12473 \end_layout
12474
12475 \end_inset
12476
12477
12478 \lang english
12479  is set to
12480 \lang japanese
12481
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 chapter
12487 \end_layout
12488
12489 \end_inset
12490
12491 」と指定されていれば、フロートは章ごとに番号が振り直されます。
12492 \end_layout
12493
12494 \begin_layout Description
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 Placement
12500 \end_layout
12501
12502 \end_inset
12503
12504  [
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 文字列
12510 \end_layout
12511
12512 \end_inset
12513
12514 =
12515 \begin_inset Quotes erd
12516 \end_inset
12517
12518
12519 \begin_inset Quotes erd
12520 \end_inset
12521
12522 ] このクラスのフロートの既定の配置法。文字列は、標準的なLaTeX表記に従い、
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 t
12528 \end_layout
12529
12530 \end_inset
12531
12532 ならば上部(top)、
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 b
12538 \end_layout
12539
12540 \end_inset
12541
12542 ならば下部(bottom)、
12543 \begin_inset Flex Code
12544 status collapsed
12545
12546 \begin_layout Plain Layout
12547 p
12548 \end_layout
12549
12550 \end_inset
12551
12552 ならばページ(page)、
12553 \begin_inset Flex Code
12554 status collapsed
12555
12556 \begin_layout Plain Layout
12557 h
12558 \end_layout
12559
12560 \end_inset
12561
12562 ならばここ(here)を表します
12563 \begin_inset Foot
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 LaTeX同様、文字列中でのこれらの文字の順序は関係ありません。
12568 \end_layout
12569
12570 \end_inset
12571
12572 。これらの他に新しい型
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 H
12578 \end_layout
12579
12580 \end_inset
12581
12582 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 H
12588 \end_layout
12589
12590 \end_inset
12591
12592 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
12593 に「
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 tbp
12599 \end_layout
12600
12601 \end_inset
12602
12603 」を指定してください。
12604 \end_layout
12605
12606 \begin_layout Description
12607 \begin_inset Flex Code
12608 status collapsed
12609
12610 \begin_layout Plain Layout
12611 RefPrefix
12612 \end_layout
12613
12614 \end_inset
12615
12616  [
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 文字列
12622 \end_layout
12623
12624 \end_inset
12625
12626 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
12627 \begin_inset Flex Code
12628 status collapsed
12629
12630 \begin_layout Plain Layout
12631 RefPrefix
12632 \end_layout
12633
12634 \end_inset
12635
12636 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
12637 \end_layout
12638
12639 \begin_layout Description
12640 \begin_inset Flex Code
12641 status collapsed
12642
12643 \begin_layout Plain Layout
12644 Style
12645 \end_layout
12646
12647 \end_inset
12648
12649  [
12650 \begin_inset Flex Code
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654 文字列
12655 \end_layout
12656
12657 \end_inset
12658
12659 =
12660 \begin_inset Quotes erd
12661 \end_inset
12662
12663
12664 \begin_inset Quotes erd
12665 \end_inset
12666
12667
12668 \begin_inset Flex Code
12669 status collapsed
12670
12671 \begin_layout Plain Layout
12672
12673 \backslash
12674 newfloat
12675 \end_layout
12676
12677 \end_inset
12678
12679 を使用してフロートを定義する際に使用される様式。
12680 \end_layout
12681
12682 \begin_layout Description
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 Type
12688 \end_layout
12689
12690 \end_inset
12691
12692  [
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697 文字列
12698 \end_layout
12699
12700 \end_inset
12701
12702 =
12703 \begin_inset Quotes erd
12704 \end_inset
12705
12706
12707 \begin_inset Quotes erd
12708 \end_inset
12709
12710 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
12711 \begin_inset Flex Code
12712 status collapsed
12713
12714 \begin_layout Plain Layout
12715
12716 \backslash
12717 newfloat
12718 \end_layout
12719
12720 \end_inset
12721
12722 の後で、
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727
12728 \backslash
12729 begin{program}
12730 \end_layout
12731
12732 \end_inset
12733
12734
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739
12740 \backslash
12741 end{algorithm*}
12742 \end_layout
12743
12744 \end_inset
12745
12746 といったコマンドが利用できます。
12747 \end_layout
12748
12749 \begin_layout Description
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 UsesFloatPkg
12755 \end_layout
12756
12757 \end_inset
12758
12759  [
12760 \begin_inset Flex Code
12761 status collapsed
12762
12763 \begin_layout Plain Layout
12764 0
12765 \end_layout
12766
12767 \end_inset
12768
12769 ,
12770 \begin_inset space \thinspace{}
12771 \end_inset
12772
12773
12774 \begin_inset Flex Code
12775 status collapsed
12776
12777 \begin_layout Plain Layout
12778
12779 \emph on
12780 1
12781 \end_layout
12782
12783 \end_inset
12784
12785 ] このフロートが、クラスファイルやパッケージ中で、
12786 \lang english
12787 LaTeX-package
12788 \lang japanese
12789
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 float
12795 \end_layout
12796
12797 \end_inset
12798
12799 が提供しているものを使用して定義されているのか、LyX自身がオン・ザ・フライで定義しているのかを示します。
12800 \end_layout
12801
12802 \begin_layout Standard
12803 \begin_inset Flex Code
12804 status collapsed
12805
12806 \begin_layout Plain Layout
12807
12808 \emph on
12809 type
12810 \end_layout
12811
12812 \end_inset
12813
12814 型のフロートを定義すると、自動的に
12815 \emph on
12816 対応する
12817 \emph default
12818
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823
12824 \emph on
12825 type
12826 \end_layout
12827
12828 \end_inset
12829
12830 名カウンタが定義されます。
12831 \end_layout
12832
12833 \begin_layout Subsection
12834 自由差込枠と差込枠レイアウト
12835 \begin_inset CommandInset label
12836 LatexCommand label
12837 name "sub:任意設定差込枠"
12838
12839 \end_inset
12840
12841
12842 \end_layout
12843
12844 \begin_layout Standard
12845 自由差込枠には次の3種類があります。
12846 \end_layout
12847
12848 \begin_layout Itemize
12849 文字様式(
12850 \begin_inset Flex Code
12851 status collapsed
12852
12853 \begin_layout Plain Layout
12854 CharStyle
12855 \end_layout
12856
12857 \end_inset
12858
12859 )。これは、
12860 \begin_inset Flex Code
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864
12865 \backslash
12866 noun
12867 \end_layout
12868
12869 \end_inset
12870
12871
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876
12877 \backslash
12878 code
12879 \end_layout
12880
12881 \end_inset
12882
12883 などのLaTeXコマンドに対応した意味論的マークアップを定義するものです。
12884 \end_layout
12885
12886 \begin_layout Itemize
12887 ユーザ設定(
12888 \begin_inset Flex Code
12889 status collapsed
12890
12891 \begin_layout Plain Layout
12892 Custom
12893 \end_layout
12894
12895 \end_inset
12896
12897 )。これは、TeXコードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
12898 \begin_inset Flex Code
12899 status collapsed
12900
12901 \begin_layout Plain Layout
12902 endnote
12903 \end_layout
12904
12905 \end_inset
12906
12907 モジュール中で定義されています。
12908 \end_layout
12909
12910 \begin_layout Itemize
12911 XML要素(
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 Element
12917 \end_layout
12918
12919 \end_inset
12920
12921 )。DocBookクラスで使用するものです。
12922 \end_layout
12923
12924 \begin_layout Standard
12925 自由差込枠は、以下で説明する
12926 \begin_inset Flex Code
12927 status collapsed
12928
12929 \begin_layout Plain Layout
12930 InsetLayout
12931 \end_layout
12932
12933 \end_inset
12934
12935 タグを使用して定義されます。
12936 \end_layout
12937
12938 \begin_layout Standard
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 InsetLayout
12944 \end_layout
12945
12946 \end_inset
12947
12948 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953 InsetLayout
12954 \end_layout
12955
12956 \end_inset
12957
12958 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・TeXコード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・オプション引数
12959 のレイアウトパラメータを設定するのに使用することができます。
12960 \end_layout
12961
12962 \begin_layout Standard
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 InsetLayout
12968 \end_layout
12969
12970 \end_inset
12971
12972 定義は以下の形の行では始まらなくてはなりません。
12973 \end_layout
12974
12975 \begin_layout LyX-Code
12976 InsetLayout <型>
12977 \end_layout
12978
12979 \begin_layout Standard
12980 ここで
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 <型>
12986 \end_layout
12987
12988 \end_inset
12989
12990 は、レイアウトを定義しようとしている差込枠を指し、以下の2つの場合がありえます。
12991 \end_layout
12992
12993 \begin_layout Enumerate
12994 既存の差込枠のレイアウトを変更する場合。この場合、
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999 <型>
13000 \end_layout
13001
13002 \end_inset
13003
13004 は以下のいずれかになります:
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 Algorithm
13010 \end_layout
13011
13012 \end_inset
13013
13014
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 Branch
13020 \end_layout
13021
13022 \end_inset
13023
13024
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 Box
13030 \end_layout
13031
13032 \end_inset
13033
13034
13035 \begin_inset Flex Code
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039 Box:shaded
13040 \end_layout
13041
13042 \end_inset
13043
13044
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049 ERT
13050 \end_layout
13051
13052 \end_inset
13053
13054
13055 \begin_inset Flex Code
13056 status collapsed
13057
13058 \begin_layout Plain Layout
13059 Figure
13060 \end_layout
13061
13062 \end_inset
13063
13064
13065 \begin_inset Flex Code
13066 status collapsed
13067
13068 \begin_layout Plain Layout
13069 Foot
13070 \end_layout
13071
13072 \end_inset
13073
13074
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 Index
13080 \end_layout
13081
13082 \end_inset
13083
13084
13085 \begin_inset Flex Code
13086 status collapsed
13087
13088 \begin_layout Plain Layout
13089 Info
13090 \end_layout
13091
13092 \end_inset
13093
13094
13095 \begin_inset Flex Code
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 Info:menu
13100 \end_layout
13101
13102 \end_inset
13103
13104
13105 \begin_inset Flex Code
13106 status collapsed
13107
13108 \begin_layout Plain Layout
13109 Info:shortcut
13110 \end_layout
13111
13112 \end_inset
13113
13114
13115 \begin_inset Flex Code
13116 status collapsed
13117
13118 \begin_layout Plain Layout
13119 Info:shortcuts
13120 \end_layout
13121
13122 \end_inset
13123
13124
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 Listings
13130 \end_layout
13131
13132 \end_inset
13133
13134
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 Marginal
13140 \end_layout
13141
13142 \end_inset
13143
13144
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149 Note:Comment
13150 \end_layout
13151
13152 \end_inset
13153
13154
13155 \begin_inset Flex Code
13156 status collapsed
13157
13158 \begin_layout Plain Layout
13159 Note:Note
13160 \end_layout
13161
13162 \end_inset
13163
13164
13165 \begin_inset Flex Code
13166 status collapsed
13167
13168 \begin_layout Plain Layout
13169 Note:GreyedOut
13170 \end_layout
13171
13172 \end_inset
13173
13174
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 OptArg
13180 \end_layout
13181
13182 \end_inset
13183
13184
13185 \begin_inset Flex Code
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189 Table
13190 \end_layout
13191
13192 \end_inset
13193
13194
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 URL
13200 \end_layout
13201
13202 \end_inset
13203
13204
13205 \end_layout
13206
13207 \begin_layout Enumerate
13208 自由差込枠のレイアウトを定義する場合。この場合、
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 <型>
13214 \end_layout
13215
13216 \end_inset
13217
13218
13219 \begin_inset Flex Code
13220 status collapsed
13221
13222 \begin_layout Plain Layout
13223 Flex:<名称>
13224 \end_layout
13225
13226 \end_inset
13227
13228 の形でなくてはなりません。ここで、
13229 \begin_inset Flex Code
13230 status collapsed
13231
13232 \begin_layout Plain Layout
13233 名称
13234 \end_layout
13235
13236 \end_inset
13237
13238 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
13239 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244 LyXType
13245 \end_layout
13246
13247 \end_inset
13248
13249 項目が含まれていなくてはならないことに注意してください。
13250 \end_layout
13251
13252 \begin_layout Standard
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 InsetLayout
13258 \end_layout
13259
13260 \end_inset
13261
13262 定義には以下の項目を入れることができます。
13263 \end_layout
13264
13265 \begin_layout Description
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 BgColor
13271 \end_layout
13272
13273 \end_inset
13274
13275  [
13276 \lang english
13277
13278 \begin_inset Flex Code
13279 status collapsed
13280
13281 \begin_layout Plain Layout
13282
13283 \lang english
13284 <name>
13285 \end_layout
13286
13287 \end_inset
13288
13289
13290 \lang japanese
13291 ]  差込枠の背景色。
13292 \lang english
13293 See chapter
13294 \begin_inset space ~
13295 \end_inset
13296
13297
13298 \begin_inset CommandInset ref
13299 LatexCommand ref
13300 reference "chap:Names-of-colors"
13301
13302 \end_inset
13303
13304  for a list of the available color names.
13305 \end_layout
13306
13307 \begin_layout Description
13308 \begin_inset Flex Code
13309 status collapsed
13310
13311 \begin_layout Plain Layout
13312 ContentAsLabel
13313 \end_layout
13314
13315 \end_inset
13316
13317  [
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322
13323 \emph on
13324 0
13325 \end_layout
13326
13327 \end_inset
13328
13329 ,
13330 \begin_inset space \thinspace{}
13331 \end_inset
13332
13333
13334 \begin_inset Flex Code
13335 status collapsed
13336
13337 \begin_layout Plain Layout
13338 1
13339 \end_layout
13340
13341 \end_inset
13342
13343 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
13344 \end_layout
13345
13346 \begin_layout Description
13347 \begin_inset Flex Code
13348 status collapsed
13349
13350 \begin_layout Plain Layout
13351 CopyStyle
13352 \end_layout
13353
13354 \end_inset
13355
13356  [<型>] 
13357 \lang english
13358 As with paragraph styles, see sec.
13359 \begin_inset space ~
13360 \end_inset
13361
13362
13363 \lang japanese
13364
13365 \begin_inset CommandInset ref
13366 LatexCommand ref
13367 reference "sub:段落様式"
13368
13369 \end_inset
13370
13371
13372 \lang english
13373 Note that you need to specify the complete type, e.
13374 \begin_inset space \thinspace{}
13375 \end_inset
13376
13377 g.
13378 \begin_inset space ~
13379 \end_inset
13380
13381
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386
13387 \lang english
13388 CopyStyle Flex:<name>
13389 \end_layout
13390
13391 \end_inset
13392
13393 .
13394 \end_layout
13395
13396 \begin_layout Description
13397 \begin_inset Flex Code
13398 status collapsed
13399
13400 \begin_layout Plain Layout
13401 CustomPars
13402 \end_layout
13403
13404 \end_inset
13405
13406  [
13407 \begin_inset Flex Code
13408 status collapsed
13409
13410 \begin_layout Plain Layout
13411
13412 \emph on
13413 0
13414 \end_layout
13415
13416 \end_inset
13417
13418 ,
13419 \begin_inset space \thinspace{}
13420 \end_inset
13421
13422
13423 \begin_inset Flex Code
13424 status collapsed
13425
13426 \begin_layout Plain Layout
13427 1
13428 \end_layout
13429
13430 \end_inset
13431
13432 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
13433 \end_layout
13434
13435 \begin_layout Description
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440 Decoration
13441 \end_layout
13442
13443 \end_inset
13444
13445  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
13446 \begin_inset Flex Code
13447 status collapsed
13448
13449 \begin_layout Plain Layout
13450 Classic
13451 \end_layout
13452
13453 \end_inset
13454
13455
13456 \begin_inset Flex Code
13457 status collapsed
13458
13459 \begin_layout Plain Layout
13460 Minimalistic
13461 \end_layout
13462
13463 \end_inset
13464
13465
13466 \begin_inset Flex Code
13467 status collapsed
13468
13469 \begin_layout Plain Layout
13470 Conglomerate
13471 \end_layout
13472
13473 \end_inset
13474
13475 のいずれかを指定することができます。脚注は通常
13476 \begin_inset Flex Code
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 Classic
13481 \end_layout
13482
13483 \end_inset
13484
13485 を使用し、TeXコード差込枠は通常
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 Minimalistic
13491 \end_layout
13492
13493 \end_inset
13494
13495 、文字様式は
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 Conglomerate
13501 \end_layout
13502
13503 \end_inset
13504
13505 を使用します。
13506 \end_layout
13507
13508 \begin_layout Description
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513 Display
13514 \end_layout
13515
13516 \end_inset
13517
13518  [
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 0
13524 \end_layout
13525
13526 \end_inset
13527
13528 ,
13529 \begin_inset space \thinspace{}
13530 \end_inset
13531
13532
13533 \begin_inset Flex Code
13534 status collapsed
13535
13536 \begin_layout Plain Layout
13537
13538 \emph on
13539 1
13540 \end_layout
13541
13542 \end_inset
13543
13544
13545 \begin_inset Flex Code
13546 status collapsed
13547
13548 \begin_layout Plain Layout
13549 LatexType
13550 \end_layout
13551
13552 \end_inset
13553
13554
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 Environment
13560 \end_layout
13561
13562 \end_inset
13563
13564 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、LaTeX環境は、
13565 \begin_inset Flex Code
13566 status collapsed
13567
13568 \begin_layout Plain Layout
13569
13570 \backslash
13571 begin{LatexName}
13572 \end_layout
13573
13574 \end_inset
13575
13576 タグと
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581
13582 \backslash
13583 end{LatexName}
13584 \end_layout
13585
13586 \end_inset
13587
13588 タグの後の空白(改行文字を含む)を無視するものと仮定します。
13589 \end_layout
13590
13591 \begin_layout Description
13592 \begin_inset Flex Code
13593 status collapsed
13594
13595 \begin_layout Plain Layout
13596 End
13597 \end_layout
13598
13599 \end_inset
13600
13601  
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606 InsetLayout
13607 \end_layout
13608
13609 \end_inset
13610
13611 宣言を閉じるのに必要です。
13612 \end_layout
13613
13614 \begin_layout Description
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 Font
13620 \end_layout
13621
13622 \end_inset
13623
13624  本文本体とラベル
13625 \emph on
13626 両方に
13627 \emph default
13628 使用されるフォントです。第
13629 \begin_inset CommandInset ref
13630 LatexCommand ref
13631 reference "sub:フォント指定"
13632
13633 \end_inset
13634
13635 節を参照。このフォントを定義すると自動的に
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640 LabelFont
13641 \end_layout
13642
13643 \end_inset
13644
13645 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
13646 \begin_inset Flex Code
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650 LabelFont
13651 \end_layout
13652
13653 \end_inset
13654
13655 を定義しなくてはならないことに注意してください。
13656 \end_layout
13657
13658 \begin_layout Description
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 ForceLTR
13664 \end_layout
13665
13666 \end_inset
13667
13668  [
13669 \begin_inset Flex Code
13670 status collapsed
13671
13672 \begin_layout Plain Layout
13673
13674 \emph on
13675 0
13676 \end_layout
13677
13678 \end_inset
13679
13680 ,
13681 \begin_inset space \thinspace{}
13682 \end_inset
13683
13684
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 1
13690 \end_layout
13691
13692 \end_inset
13693
13694 ] たとえばTeXコードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
13695 \end_layout
13696
13697 \begin_layout Description
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 ForcePlain
13703 \end_layout
13704
13705 \end_inset
13706
13707  [
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712
13713 \emph on
13714 0
13715 \end_layout
13716
13717 \end_inset
13718
13719 ,
13720 \begin_inset space \thinspace{}
13721 \end_inset
13722
13723
13724 \begin_inset Flex Code
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 1
13729 \end_layout
13730
13731 \end_inset
13732
13733 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
13734 \end_layout
13735
13736 \begin_layout Description
13737 \begin_inset Flex Code
13738 status collapsed
13739
13740 \begin_layout Plain Layout
13741 FreeSpacing
13742 \end_layout
13743
13744 \end_inset
13745
13746  [
13747 \emph on
13748
13749 \begin_inset Flex Code
13750 status collapsed
13751
13752 \begin_layout Plain Layout
13753 0
13754 \end_layout
13755
13756 \end_inset
13757
13758
13759 \emph default
13760 ,
13761 \begin_inset space \thinspace{}
13762 \end_inset
13763
13764
13765 \begin_inset Flex Code
13766 status collapsed
13767
13768 \begin_layout Plain Layout
13769 1
13770 \end_layout
13771
13772 \end_inset
13773
13774
13775 \lang english
13776 As with paragraph styles, see sec.
13777 \begin_inset space ~
13778 \end_inset
13779
13780
13781 \lang japanese
13782
13783 \begin_inset CommandInset ref
13784 LatexCommand ref
13785 reference "sub:段落様式"
13786
13787 \end_inset
13788
13789
13790 \end_layout
13791
13792 \begin_layout Description
13793 \begin_inset Flex Code
13794 status collapsed
13795
13796 \begin_layout Plain Layout
13797 HTML*
13798 \end_layout
13799
13800 \end_inset
13801
13802  これらは、XHTML出力で使用されます。第
13803 \begin_inset CommandInset ref
13804 LatexCommand ref
13805 reference "sec:XHTML出力のタグ"
13806
13807 \end_inset
13808
13809 節をご覧ください。
13810 \end_layout
13811
13812 \begin_layout Description
13813 \begin_inset Flex Code
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 InToc
13818 \end_layout
13819
13820 \end_inset
13821
13822  [
13823 \begin_inset Flex Code
13824 status collapsed
13825
13826 \begin_layout Plain Layout
13827
13828 \emph on
13829 0
13830 \end_layout
13831
13832 \end_inset
13833
13834 ,
13835 \begin_inset space \thinspace{}
13836 \end_inset
13837
13838
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 1
13844 \end_layout
13845
13846 \end_inset
13847
13848 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
13849 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
13850 \end_layout
13851
13852 \begin_layout Description
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 KeepEmpty
13858 \end_layout
13859
13860 \end_inset
13861
13862  [
13863 \emph on
13864
13865 \begin_inset Flex Code
13866 status collapsed
13867
13868 \begin_layout Plain Layout
13869 0
13870 \end_layout
13871
13872 \end_inset
13873
13874
13875 \emph default
13876 ,
13877 \begin_inset space \thinspace{}
13878 \end_inset
13879
13880
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885 1
13886 \end_layout
13887
13888 \end_inset
13889
13890
13891 \lang english
13892 As with paragraph styles, see sec.
13893 \begin_inset space ~
13894 \end_inset
13895
13896
13897 \lang japanese
13898
13899 \begin_inset CommandInset ref
13900 LatexCommand ref
13901 reference "sub:段落様式"
13902
13903 \end_inset
13904
13905
13906 \end_layout
13907
13908 \begin_layout Description
13909 \begin_inset Flex Code
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 LabelFont
13914 \end_layout
13915
13916 \end_inset
13917
13918  ラベルに使用されるフォント。第
13919 \begin_inset CommandInset ref
13920 LatexCommand ref
13921 reference "sub:フォント指定"
13922
13923 \end_inset
13924
13925 節を参照。非効率を回避するため、この定義は
13926 \begin_inset Flex Code
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930 Font
13931 \end_layout
13932
13933 \end_inset
13934
13935 の前には決して現れてはなりません。
13936 \end_layout
13937
13938 \begin_layout Description
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943 LabelString
13944 \end_layout
13945
13946 \end_inset
13947
13948  [
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 文字列
13954 \end_layout
13955
13956 \end_inset
13957
13958 =
13959 \begin_inset Quotes erd
13960 \end_inset
13961
13962
13963 \begin_inset Quotes erd
13964 \end_inset
13965
13966 ]
13967 \lang english
13968  
13969 \lang japanese
13970 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(TeXコードや派生枝)、ラベルが動的に変更されます。
13971 \end_layout
13972
13973 \begin_layout Description
13974 \begin_inset Flex Code
13975 status collapsed
13976
13977 \begin_layout Plain Layout
13978 LatexName
13979 \end_layout
13980
13981 \end_inset
13982
13983  [
13984 \lang english
13985
13986 \begin_inset Flex Code
13987 status collapsed
13988
13989 \begin_layout Plain Layout
13990
13991 \lang english
13992 <name>
13993 \end_layout
13994
13995 \end_inset
13996
13997
13998 \lang japanese
13999 ] 対応するLaTeX関連物の名称。環境名ないしはコマンド名。
14000 \end_layout
14001
14002 \begin_layout Description
14003 \begin_inset Flex Code
14004 status collapsed
14005
14006 \begin_layout Plain Layout
14007 LatexParam
14008 \end_layout
14009
14010 \end_inset
14011
14012  
14013 \lang english
14014 [
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019
14020 \lang english
14021 <parameter>
14022 \end_layout
14023
14024 \end_inset
14025
14026
14027 \lang japanese
14028 対応する
14029 \begin_inset Flex Code
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 LatexName
14034 \end_layout
14035
14036 \end_inset
14037
14038 関連物の非必須パラメータ。
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 []
14044 \end_layout
14045
14046 \end_inset
14047
14048 のような括弧対を含む。このパラメータはLyX内部から変更することはできません。
14049 \end_layout
14050
14051 \begin_layout Description
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056 LatexType
14057 \end_layout
14058
14059 \end_inset
14060
14061  
14062 \lang english
14063 As with paragraph styles, see sec.
14064 \begin_inset space ~
14065 \end_inset
14066
14067
14068 \lang japanese
14069
14070 \begin_inset CommandInset ref
14071 LatexCommand ref
14072 reference "sub:段落様式"
14073
14074 \end_inset
14075
14076
14077 \end_layout
14078
14079 \begin_layout Description
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 LyxType
14085 \end_layout
14086
14087 \end_inset
14088
14089  
14090 \begin_inset Flex Code
14091 status collapsed
14092
14093 \begin_layout Plain Layout
14094 charstyle
14095 \end_layout
14096
14097 \end_inset
14098
14099
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 custom
14105 \end_layout
14106
14107 \end_inset
14108
14109
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 element
14115 \end_layout
14116
14117 \end_inset
14118
14119
14120 \begin_inset Flex Code
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 end
14125 \end_layout
14126
14127 \end_inset
14128
14129 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
14130 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135 LyxType
14136 \end_layout
14137
14138 \end_inset
14139
14140
14141 \begin_inset Flex Code
14142 status collapsed
14143
14144 \begin_layout Plain Layout
14145 charstyle
14146 \end_layout
14147
14148 \end_inset
14149
14150 に設定すると、
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 MultiPar
14156 \end_layout
14157
14158 \end_inset
14159
14160 が偽に設定されます。文字様式差込枠で
14161 \begin_inset Flex Code
14162 status collapsed
14163
14164 \begin_layout Plain Layout
14165 MultiPar
14166 \end_layout
14167
14168 \end_inset
14169
14170 を真にしたい時には、
14171 \begin_inset Flex Code
14172 status collapsed
14173
14174 \begin_layout Plain Layout
14175 LyxType
14176 \end_layout
14177
14178 \end_inset
14179
14180 を設定した
14181 \emph on
14182 後に
14183 \emph default
14184 設定すれば、真に設定することができます。
14185 \end_layout
14186
14187 \begin_layout Description
14188 \begin_inset Flex Code
14189 status collapsed
14190
14191 \begin_layout Plain Layout
14192 MultiPar
14193 \end_layout
14194
14195 \end_inset
14196
14197  [
14198 \begin_inset Flex Code
14199 status collapsed
14200
14201 \begin_layout Plain Layout
14202
14203 \emph on
14204 0
14205 \end_layout
14206
14207 \end_inset
14208
14209 ,
14210 \begin_inset space \thinspace{}
14211 \end_inset
14212
14213
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218 1
14219 \end_layout
14220
14221 \end_inset
14222
14223 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 CustomPars
14229 \end_layout
14230
14231 \end_inset
14232
14233 を同じ値に設定し、
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238 ForcePlain
14239 \end_layout
14240
14241 \end_inset
14242
14243 を逆の値に設定します。これらは、
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 MultiPar
14249 \end_layout
14250
14251 \end_inset
14252
14253
14254 \emph on
14255 後に
14256 \emph default
14257 指定されれば、他の値に指定し直すことができます。既定値は真です。
14258 \end_layout
14259
14260 \begin_layout Description
14261 \begin_inset Flex Code
14262 status collapsed
14263
14264 \begin_layout Plain Layout
14265 NeedProtect
14266 \end_layout
14267
14268 \end_inset
14269
14270  [
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275
14276 \emph on
14277 0
14278 \end_layout
14279
14280 \end_inset
14281
14282 ,
14283 \begin_inset space \thinspace{}
14284 \end_inset
14285
14286
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 1
14292 \end_layout
14293
14294 \end_inset
14295
14296 ] 本レイアウト中で脆弱なコマンドを
14297 \begin_inset Flex Code
14298 status collapsed
14299
14300 \begin_layout Plain Layout
14301
14302 \backslash
14303 protect
14304 \end_layout
14305
14306 \end_inset
14307
14308 するか否か(註:当該コマンド自身をprotectするかどうかでは
14309 \emph on
14310 ありません
14311 \emph default
14312 )。既定値は偽です。
14313 \end_layout
14314
14315 \begin_layout Description
14316 \begin_inset Flex Code
14317 status collapsed
14318
14319 \begin_layout Plain Layout
14320 ParbreakIsNewline
14321 \end_layout
14322
14323 \end_inset
14324
14325  [
14326 \begin_inset Flex Code
14327 status collapsed
14328
14329 \begin_layout Plain Layout
14330
14331 \emph on
14332 0
14333 \end_layout
14334
14335 \end_inset
14336
14337 ,
14338 \begin_inset space \thinspace{}
14339 \end_inset
14340
14341
14342 \begin_inset Flex Code
14343 status collapsed
14344
14345 \begin_layout Plain Layout
14346 1
14347 \end_layout
14348
14349 \end_inset
14350
14351
14352 \lang english
14353 As with paragraph styles, see sec.
14354 \begin_inset space ~
14355 \end_inset
14356
14357
14358 \lang japanese
14359
14360 \begin_inset CommandInset ref
14361 LatexCommand ref
14362 reference "sub:段落様式"
14363
14364 \end_inset
14365
14366
14367 \end_layout
14368
14369 \begin_layout Description
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 PassThru
14375 \end_layout
14376
14377 \end_inset
14378
14379  [
14380 \emph on
14381
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 0
14387 \end_layout
14388
14389 \end_inset
14390
14391
14392 \emph default
14393 ,
14394 \begin_inset space \thinspace{}
14395 \end_inset
14396
14397
14398 \begin_inset Flex Code
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402 1
14403 \end_layout
14404
14405 \end_inset
14406
14407
14408 \lang english
14409 As with paragraph styles, see sec.
14410 \begin_inset space ~
14411 \end_inset
14412
14413
14414 \lang japanese
14415
14416 \begin_inset CommandInset ref
14417 LatexCommand ref
14418 reference "sub:段落様式"
14419
14420 \end_inset
14421
14422
14423 \end_layout
14424
14425 \begin_layout Description
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430 Preamble
14431 \end_layout
14432
14433 \end_inset
14434
14435  
14436 \lang english
14437 As with paragraph styles, see sec.
14438 \begin_inset space ~
14439 \end_inset
14440
14441
14442 \lang japanese
14443
14444 \begin_inset CommandInset ref
14445 LatexCommand ref
14446 reference "sub:段落様式"
14447
14448 \end_inset
14449
14450
14451 \end_layout
14452
14453 \begin_layout Description
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 RefPrefix
14459 \end_layout
14460
14461 \end_inset
14462
14463  [
14464 \begin_inset Flex Code
14465 status collapsed
14466
14467 \begin_layout Plain Layout
14468 文字列
14469 \end_layout
14470
14471 \end_inset
14472
14473 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
14474 \end_layout
14475
14476 \begin_layout Description
14477 \begin_inset Flex Code
14478 status collapsed
14479
14480 \begin_layout Plain Layout
14481 Requires
14482 \end_layout
14483
14484 \end_inset
14485
14486  [
14487 \begin_inset Flex Code
14488 status collapsed
14489
14490 \begin_layout Plain Layout
14491 文字列
14492 \end_layout
14493
14494 \end_inset
14495
14496
14497 \lang english
14498 As with paragraph styles, see sec.
14499 \begin_inset space ~
14500 \end_inset
14501
14502
14503 \lang japanese
14504
14505 \begin_inset CommandInset ref
14506 LatexCommand ref
14507 reference "sub:段落様式"
14508
14509 \end_inset
14510
14511
14512 \end_layout
14513
14514 \begin_layout Description
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519 ResetFont
14520 \end_layout
14521
14522 \end_inset
14523
14524  [
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 0
14530 \end_layout
14531
14532 \end_inset
14533
14534 ,
14535 \begin_inset space \thinspace{}
14536 \end_inset
14537
14538
14539 \begin_inset Flex Code
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543
14544 \emph on
14545 1
14546 \end_layout
14547
14548 \end_inset
14549
14550 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
14551 \end_layout
14552
14553 \begin_layout Description
14554 \begin_inset Flex Code
14555 status collapsed
14556
14557 \begin_layout Plain Layout
14558 Spellcheck
14559 \end_layout
14560
14561 \end_inset
14562
14563  [
14564 \begin_inset Flex Code
14565 status collapsed
14566
14567 \begin_layout Plain Layout
14568 0
14569 \end_layout
14570
14571 \end_inset
14572
14573 ,
14574 \begin_inset space \thinspace{}
14575 \end_inset
14576
14577
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582
14583 \emph on
14584 1
14585 \end_layout
14586
14587 \end_inset
14588
14589 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
14590 \end_layout
14591
14592 \begin_layout Subsection
14593 カウンタ
14594 \begin_inset CommandInset label
14595 LatexCommand label
14596 name "sub:カウンタ"
14597
14598 \end_inset
14599
14600
14601 \end_layout
14602
14603 \begin_layout Standard
14604
14605 \lang english
14606 It is necessary to define the counters
14607 \lang japanese
14608
14609 \begin_inset Flex MenuItem
14610 status collapsed
14611
14612 \begin_layout Plain Layout
14613 chapter
14614 \end_layout
14615
14616 \end_inset
14617
14618
14619 \begin_inset Flex MenuItem
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623 figure
14624 \end_layout
14625
14626 \end_inset
14627
14628 ・\SpecialChar \ldots{}
14629 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 stdcounters.inc
14635 \end_layout
14636
14637 \end_inset
14638
14639 ファイルに含まれているので、作業中のレイアウトファイルに
14640 \end_layout
14641
14642 \begin_layout LyX-Code
14643 Input stdcounters.inc
14644 \end_layout
14645
14646 \begin_layout Standard
14647 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
14648 \end_layout
14649
14650 \begin_layout LyX-Code
14651 Counter カウンタ名
14652 \end_layout
14653
14654 \begin_layout Standard
14655 で始まらなくてはなりません。ここで「
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 カウンタ名
14661 \end_layout
14662
14663 \end_inset
14664
14665 」は、実際のカウンタ名で置き換えます。また、宣言は「
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670 End
14671 \end_layout
14672
14673 \end_inset
14674
14675 」で終わらなくてはなりません。
14676 \end_layout
14677
14678 \begin_layout Standard
14679 以下のパラメータを使用することができます。
14680 \end_layout
14681
14682 \begin_layout Description
14683 \begin_inset Flex Code
14684 status collapsed
14685
14686 \begin_layout Plain Layout
14687 LabelString [文字列=""]
14688 \end_layout
14689
14690 \end_inset
14691
14692  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
14693 \begin_inset Flex Code
14694 status collapsed
14695
14696 \begin_layout Plain Layout
14697 LabelStringAppendix
14698 \end_layout
14699
14700 \end_inset
14701
14702 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
14703 \end_layout
14704
14705 \begin_deeper
14706 \begin_layout Itemize
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711
14712 \backslash
14713 thecounter
14714 \end_layout
14715
14716 \end_inset
14717
14718 は、カウンタ
14719 \begin_inset Flex Code
14720 status collapsed
14721
14722 \begin_layout Plain Layout
14723 counter
14724 \end_layout
14725
14726 \end_inset
14727
14728
14729 \begin_inset Flex Code
14730 status collapsed
14731
14732 \begin_layout Plain Layout
14733 LabelString
14734 \end_layout
14735
14736 \end_inset
14737
14738 (または
14739 \begin_inset Newline linebreak
14740 \end_inset
14741
14742
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 LabelStringAppendix
14748 \end_layout
14749
14750 \end_inset
14751
14752 )を展開したもので置き換えられます。 
14753 \end_layout
14754
14755 \begin_layout Itemize
14756 カウンタ値は、LaTeX型マクロ
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761
14762 \backslash
14763
14764 \emph on
14765 numbertype
14766 \emph default
14767 {
14768 \emph on
14769 カウンタ
14770 \emph default
14771 }
14772 \end_layout
14773
14774 \end_inset
14775
14776 を用いて表現することができます。ここで
14777 \begin_inset Flex Code
14778 status collapsed
14779
14780 \begin_layout Plain Layout
14781
14782 \emph on
14783 numbertype
14784 \end_layout
14785
14786 \end_inset
14787
14788 は以下のいずれかです。
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 arabic
14794 \end_layout
14795
14796 \end_inset
14797
14798 :1, 2, 3,\SpecialChar \ldots{}
14799
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804 alph
14805 \end_layout
14806
14807 \end_inset
14808
14809 :a, b, c, \SpecialChar \ldots{}
14810 (小文字);
14811 \begin_inset Flex Code
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815 Alph
14816 \end_layout
14817
14818 \end_inset
14819
14820 :A, B, C, \SpecialChar \ldots{}
14821 (大文字);
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 roman
14827 \end_layout
14828
14829 \end_inset
14830
14831 :i, ii, iii, \SpecialChar \ldots{}
14832 (小文字ローマ数字);
14833 \begin_inset Flex Code
14834 status collapsed
14835
14836 \begin_layout Plain Layout
14837 Roman
14838 \end_layout
14839
14840 \end_inset
14841
14842 :I, II, III\SpecialChar \ldots{}
14843 (大文字ローマ数字)。
14844 \end_layout
14845
14846 \end_deeper
14847 \begin_layout Standard
14848 \begin_inset Flex Code
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852 LabelString
14853 \end_layout
14854
14855 \end_inset
14856
14857 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
14858 \begin_inset Flex Code
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862 master
14863 \end_layout
14864
14865 \end_inset
14866
14867
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 Within
14873 \end_layout
14874
14875 \end_inset
14876
14877 で定義)があるときには、文字列
14878 \begin_inset Newline linebreak
14879 \end_inset
14880
14881
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886
14887 \backslash
14888 themaster.
14889 \backslash
14890 arabic{カウンタ}
14891 \end_layout
14892
14893 \end_inset
14894
14895 が使用されます。それ以外の場合は、
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900
14901 \backslash
14902 arabic{カウンタ}
14903 \end_layout
14904
14905 \end_inset
14906
14907 が使用されます。
14908 \end_layout
14909
14910 \begin_layout Description
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 LabelStringAppendix
14916 \end_layout
14917
14918 \end_inset
14919
14920  [
14921 \begin_inset Flex Code
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 文字列
14926 \end_layout
14927
14928 \end_inset
14929
14930 =""] 
14931 \begin_inset Flex Code
14932 status collapsed
14933
14934 \begin_layout Plain Layout
14935 LabelString
14936 \end_layout
14937
14938 \end_inset
14939
14940 と同様ですが、付録で使用するためのものです。
14941 \end_layout
14942
14943 \begin_layout Description
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 PrettyFormat
14949 \end_layout
14950
14951 \end_inset
14952
14953  [
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 文字列
14959 \end_layout
14960
14961 \end_inset
14962
14963 =
14964 \begin_inset Quotes erd
14965 \end_inset
14966
14967
14968 \begin_inset Quotes erd
14969 \end_inset
14970
14971 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
14972 \begin_inset space ~
14973 \end_inset
14974
14975 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
14976 す。
14977 \end_layout
14978
14979 \begin_layout Description
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 Within
14985 \end_layout
14986
14987 \end_inset
14988
14989  [
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 文字列
14995 \end_layout
14996
14997 \end_inset
14998
14999 =
15000 \begin_inset Quotes erd
15001 \end_inset
15002
15003
15004 \begin_inset Quotes erd
15005 \end_inset
15006
15007 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
15008 \begin_inset Flex Code
15009 status collapsed
15010
15011 \begin_layout Plain Layout
15012 subsection
15013 \end_layout
15014
15015 \end_inset
15016
15017
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 section
15023 \end_layout
15024
15025 \end_inset
15026
15027 毎に番号がリセットされます。
15028 \end_layout
15029
15030 \begin_layout Subsection
15031 フォント指定
15032 \begin_inset CommandInset label
15033 LatexCommand label
15034 name "sub:フォント指定"
15035
15036 \end_inset
15037
15038
15039 \end_layout
15040
15041 \begin_layout Standard
15042 フォント指定は、以下のような形を取ります。
15043 \end_layout
15044
15045 \begin_layout LyX-Code
15046 Font 
15047 \family roman
15048 \emph on
15049 または
15050 \family default
15051 \emph default
15052  LabelFont 
15053 \family roman
15054 \emph on
15055 または
15056 \family default
15057 \emph default
15058  DefaultFont
15059 \end_layout
15060
15061 \begin_layout LyX-Code
15062  ...
15063 \end_layout
15064
15065 \begin_layout LyX-Code
15066 EndFont
15067 \end_layout
15068
15069 \begin_layout Standard
15070 以下のコマンドを使用することができます。
15071 \end_layout
15072
15073 \begin_layout Description
15074 \begin_inset Flex Code
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078 Color
15079 \end_layout
15080
15081 \end_inset
15082
15083  [
15084 \begin_inset Flex Code
15085 status collapsed
15086
15087 \begin_layout Plain Layout
15088
15089 \emph on
15090 none
15091 \end_layout
15092
15093 \end_inset
15094
15095
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 black
15101 \end_layout
15102
15103 \end_inset
15104
15105
15106 \begin_inset Flex Code
15107 status collapsed
15108
15109 \begin_layout Plain Layout
15110 white
15111 \end_layout
15112
15113 \end_inset
15114
15115
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 red
15121 \end_layout
15122
15123 \end_inset
15124
15125
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 green
15131 \end_layout
15132
15133 \end_inset
15134
15135
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 blue
15141 \end_layout
15142
15143 \end_inset
15144
15145
15146 \begin_inset Flex Code
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150 cyan
15151 \end_layout
15152
15153 \end_inset
15154
15155
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 magenta
15161 \end_layout
15162
15163 \end_inset
15164
15165
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 yellow
15171 \end_layout
15172
15173 \end_inset
15174
15175 ]
15176 \end_layout
15177
15178 \begin_layout Description
15179 \begin_inset Flex Code
15180 status collapsed
15181
15182 \begin_layout Plain Layout
15183 Family
15184 \end_layout
15185
15186 \end_inset
15187
15188  [
15189 \emph on
15190
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 Roman
15196 \end_layout
15197
15198 \end_inset
15199
15200
15201 \emph default
15202
15203 \begin_inset Flex Code
15204 status collapsed
15205
15206 \begin_layout Plain Layout
15207 Sans
15208 \end_layout
15209
15210 \end_inset
15211
15212
15213 \begin_inset Flex Code
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 Typewriter
15218 \end_layout
15219
15220 \end_inset
15221
15222
15223 \end_layout
15224
15225 \begin_layout Description
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230 Misc
15231 \end_layout
15232
15233 \end_inset
15234
15235  [
15236 \begin_inset Flex Code
15237 status collapsed
15238
15239 \begin_layout Plain Layout
15240 文字列
15241 \end_layout
15242
15243 \end_inset
15244
15245 ] 有効な引数は、
15246 \begin_inset Flex Code
15247 status collapsed
15248
15249 \begin_layout Plain Layout
15250 emph
15251 \end_layout
15252
15253 \end_inset
15254
15255
15256 \begin_inset Flex Code
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 noun
15261 \end_layout
15262
15263 \end_inset
15264
15265
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270 strikeout
15271 \end_layout
15272
15273 \end_inset
15274
15275
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 underbar
15281 \end_layout
15282
15283 \end_inset
15284
15285
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 uuline
15291 \end_layout
15292
15293 \end_inset
15294
15295
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 uwave
15301 \end_layout
15302
15303 \end_inset
15304
15305
15306 \begin_inset Flex Code
15307 status collapsed
15308
15309 \begin_layout Plain Layout
15310 no_emph
15311 \end_layout
15312
15313 \end_inset
15314
15315
15316 \begin_inset Flex Code
15317 status collapsed
15318
15319 \begin_layout Plain Layout
15320 no_noun
15321 \end_layout
15322
15323 \end_inset
15324
15325
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 no_strikeout
15331 \end_layout
15332
15333 \end_inset
15334
15335
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 no_bar
15341 \end_layout
15342
15343 \end_inset
15344
15345
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 no_uuline
15351 \end_layout
15352
15353 \end_inset
15354
15355
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 no_uwave
15361 \end_layout
15362
15363 \end_inset
15364
15365 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
15366 \begin_inset Newline newline
15367 \end_inset
15368
15369 たとえば、
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374 emph
15375 \end_layout
15376
15377 \end_inset
15378
15379 は強調を有効にし、
15380 \begin_inset Flex Code
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384 no_emph
15385 \end_layout
15386
15387 \end_inset
15388
15389 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
15390
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395 no_emph
15396 \end_layout
15397
15398 \end_inset
15399
15400 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
15401 \end_layout
15402
15403 \begin_layout Description
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 Series
15409 \end_layout
15410
15411 \end_inset
15412
15413  [
15414 \emph on
15415
15416 \begin_inset Flex Code
15417 status collapsed
15418
15419 \begin_layout Plain Layout
15420 Medium
15421 \end_layout
15422
15423 \end_inset
15424
15425
15426 \emph default
15427
15428 \begin_inset Flex Code
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 Bold
15433 \end_layout
15434
15435 \end_inset
15436
15437
15438 \end_layout
15439
15440 \begin_layout Description
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 Shape
15446 \end_layout
15447
15448 \end_inset
15449
15450  [
15451 \emph on
15452
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 Up
15458 \end_layout
15459
15460 \end_inset
15461
15462
15463 \emph default
15464
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 Italic
15470 \end_layout
15471
15472 \end_inset
15473
15474
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 SmallCaps
15480 \end_layout
15481
15482 \end_inset
15483
15484
15485 \begin_inset Flex Code
15486 status collapsed
15487
15488 \begin_layout Plain Layout
15489 Slanted
15490 \end_layout
15491
15492 \end_inset
15493
15494
15495 \end_layout
15496
15497 \begin_layout Description
15498 \begin_inset Flex Code
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502 Size
15503 \end_layout
15504
15505 \end_inset
15506
15507  [
15508 \begin_inset Flex Code
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512 tiny
15513 \end_layout
15514
15515 \end_inset
15516
15517
15518 \begin_inset Flex Code
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522 small
15523 \end_layout
15524
15525 \end_inset
15526
15527
15528 \begin_inset Flex Code
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532
15533 \emph on
15534 normal
15535 \end_layout
15536
15537 \end_inset
15538
15539
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 large
15545 \end_layout
15546
15547 \end_inset
15548
15549
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 larger
15555 \end_layout
15556
15557 \end_inset
15558
15559
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 largest
15565 \end_layout
15566
15567 \end_inset
15568
15569
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 huge
15575 \end_layout
15576
15577 \end_inset
15578
15579
15580 \begin_inset Flex Code
15581 status collapsed
15582
15583 \begin_layout Plain Layout
15584 giant
15585 \end_layout
15586
15587 \end_inset
15588
15589 ]
15590 \end_layout
15591
15592 \begin_layout Subsection
15593 \begin_inset CommandInset label
15594 LatexCommand label
15595 name "sub:引用書式指定"
15596
15597 \end_inset
15598
15599 引用書式指定
15600 \end_layout
15601
15602 \begin_layout Standard
15603 (引用ダイアログやツールチップなどの)LyX内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
15604 \begin_inset Flex Code
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608 CiteFormat
15609 \end_layout
15610
15611 \end_inset
15612
15613 ブロックが使用されています。このブロックは、以下のような形をしています。
15614 \end_layout
15615
15616 \begin_layout LyX-Code
15617 CiteFormat
15618 \end_layout
15619
15620 \begin_layout LyX-Code
15621  article ...
15622 \end_layout
15623
15624 \begin_layout LyX-Code
15625  book ...
15626 \end_layout
15627
15628 \begin_layout LyX-Code
15629 End
15630 \end_layout
15631
15632 \begin_layout Standard
15633 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、BibTeXファイル中に
15634 存在しうる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、LyXは、ソースコード中に定義されている既定書式を使用します。LyXは、い
15635 くつかの書式を
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 stdciteformats.inc
15641 \end_layout
15642
15643 \end_inset
15644
15645 ファイルで事前定義しており、これはほとんどのLyX文書クラスにインクルードされています。
15646 \end_layout
15647
15648 \begin_layout Standard
15649 この定義は、BibTeXキーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 %author%
15655 \end_layout
15656
15657 \end_inset
15658
15659 のように
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 %
15665 \end_layout
15666
15667 \end_inset
15668
15669 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
15670 \end_layout
15671
15672 \begin_layout LyX-Code
15673 misc %author%, 
15674 \begin_inset Quotes eld
15675 \end_inset
15676
15677 %title%
15678 \begin_inset Quotes erd
15679 \end_inset
15680
15681
15682 \end_layout
15683
15684 \begin_layout Standard
15685 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
15686 \end_layout
15687
15688 \begin_layout Standard
15689 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 {%volume%[[vol.
15695 \begin_inset space ~
15696 \end_inset
15697
15698 %volume%]]}
15699 \end_layout
15700
15701 \end_inset
15702
15703 のように、条件付きの構成を使用することができます。これは、
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708 volume
15709 \end_layout
15710
15711 \end_inset
15712
15713 が存在するならば,「vol.
15714 \begin_inset space ~
15715 \end_inset
15716
15717 」とvolumeキーを出力するという意味です。また、
15718 \begin_inset Newline newline
15719 \end_inset
15720
15721
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 {%author%[[%author%]][[%editor%, ed.]]}
15727 \end_layout
15728
15729 \end_inset
15730
15731
15732 \begin_inset Newline newline
15733 \end_inset
15734
15735 のように、条件の中にelse節を含めることも可能です。ここでは、もし
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 author
15741 \end_layout
15742
15743 \end_inset
15744
15745 キーが存在するならば出力され、そうでなければeditorキーと「,
15746 \begin_inset space ~
15747 \end_inset
15748
15749 ed.」が出力されます。ここでもキーは、
15750 \begin_inset Flex Code
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754 %
15755 \end_layout
15756
15757 \end_inset
15758
15759 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
15760 \begin_inset Flex Code
15761 status collapsed
15762
15763 \begin_layout Plain Layout
15764 [[
15765 \end_layout
15766
15767 \end_inset
15768
15769 」と「
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 ]]
15775 \end_layout
15776
15777 \end_inset
15778
15779 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
15780 \end_layout
15781
15782 \begin_layout Standard
15783 もう一つ、定義中で使用することのできる文法として、
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 {!<i>!}
15789 \end_layout
15790
15791 \end_inset
15792
15793 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
15794 グを出力させたくはありませんから、HTMLタグは「
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 {!
15800 \end_layout
15801
15802 \end_inset
15803
15804 」と「
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 !}
15810 \end_layout
15811
15812 \end_inset
15813
15814 」でくるんでやらなくてはならないのです。
15815 \end_layout
15816
15817 \begin_layout Standard
15818 \begin_inset Flex Code
15819 status collapsed
15820
15821 \begin_layout Plain Layout
15822 CiteFormat
15823 \end_layout
15824
15825 \end_inset
15826
15827 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
15828 \end_layout
15829
15830 \begin_layout LyX-Code
15831 !quotetitle 
15832 \begin_inset Quotes eld
15833 \end_inset
15834
15835 %title%
15836 \begin_inset Quotes erd
15837 \end_inset
15838
15839
15840 \end_layout
15841
15842 \begin_layout Standard
15843 といった例が挙げられます。これは、短縮形ないしはマクロであり、
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 %!quotetitle%
15849 \end_layout
15850
15851 \end_inset
15852
15853 のように、これがキーであるかのように扱って使用することができます。LyXは、
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 %!quotetitle%
15859 \end_layout
15860
15861 \end_inset
15862
15863 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
15864 \end_layout
15865
15866 \begin_layout LyX-Code
15867 !funfun %funfun%
15868 \end_layout
15869
15870 \begin_layout Standard
15871 のようなことはしないでください。LyXは、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
15872 \end_layout
15873
15874 \begin_layout Standard
15875 特殊な定義の二つめは、
15876 \end_layout
15877
15878 \begin_layout LyX-Code
15879 _pptext pp.
15880 \end_layout
15881
15882 \begin_layout Standard
15883 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
15884 \begin_inset Flex Code
15885 status collapsed
15886
15887 \begin_layout Plain Layout
15888 %_pptext%
15889 \end_layout
15890
15891 \end_inset
15892
15893 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 stdciteformats.inc
15899 \end_layout
15900
15901 \end_inset
15902
15903 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
15904 \end_layout
15905
15906 \begin_layout Standard
15907 以下は、これらの機能を全て使った例です。
15908 \begin_inset VSpace defskip
15909 \end_inset
15910
15911
15912 \end_layout
15913
15914 \begin_layout Standard
15915 \noindent
15916
15917 \family typewriter
15918 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
15919 \end_layout
15920
15921 \begin_layout Standard
15922 \begin_inset VSpace defskip
15923 \end_inset
15924
15925 これは、
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 author
15931 \end_layout
15932
15933 \end_inset
15934
15935 キーが定義されているならば、著者とコンマを出力し、
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940 author
15941 \end_layout
15942
15943 \end_inset
15944
15945 キーが定義されておらず、
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 editor
15951 \end_layout
15952
15953 \end_inset
15954
15955 キーが定義されているならば、編集者名の後に
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 _edtext
15961 \end_layout
15962
15963 \end_inset
15964
15965 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 stdciteformats.inc
15971 \end_layout
15972
15973 \end_inset
15974
15975 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
15976 \end_layout
15977
15978 \begin_layout Section
15979 \begin_inset CommandInset label
15980 LatexCommand label
15981 name "sec:XHTML出力のタグ"
15982
15983 \end_inset
15984
15985 XHTML出力のタグ
15986 \end_layout
15987
15988 \begin_layout Standard
15989 LaTeXやDocBookと同様、LyXのXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、LyXは適切な既定値を提供し、前述した
15990 ように、他のレイアウトタグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、LyXは、章様式
15991
15992 \begin_inset Flex Code
15993 status collapsed
15994
15995 \begin_layout Plain Layout
15996 Font
15997 \end_layout
15998
15999 \end_inset
16000
16001 宣言で提供されている情報を利用しようと試みます。
16002 \end_layout
16003
16004 \begin_layout Standard
16005 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
16006 、これが必要になる場合もあるので、LyXは、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
16007 \end_layout
16008
16009 \begin_layout Standard
16010 様式宣言や差込枠宣言の外で使用することができるタグに、
16011 \begin_inset Flex Code
16012 status collapsed
16013
16014 \begin_layout Plain Layout
16015 HTMLPreamble
16016 \end_layout
16017
16018 \end_inset
16019
16020
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 AddToHTMLPreamble
16026 \end_layout
16027
16028 \end_inset
16029
16030 の2つがあることに注意してください。これらの詳細については、第
16031 \begin_inset CommandInset ref
16032 LatexCommand ref
16033 reference "sub:汎用テキストクラスパラメータ"
16034
16035 \end_inset
16036
16037 節をご覧ください。
16038 \end_layout
16039
16040 \begin_layout Subsection
16041 \begin_inset CommandInset label
16042 LatexCommand label
16043 name "sub:段落様式-XHTML"
16044
16045 \end_inset
16046
16047 段落様式
16048 \end_layout
16049
16050 \begin_layout Standard
16051 LyXが段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対
16052 応する
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 LaTeXType
16058 \end_layout
16059
16060 \end_inset
16061
16062 タグの内容によって決定されます。
16063 \end_layout
16064
16065 \begin_layout Standard
16066 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
16067 \end_layout
16068
16069 \begin_layout LyX-Code
16070 <tag attr=
16071 \begin_inset Quotes erd
16072 \end_inset
16073
16074 value
16075 \begin_inset Quotes erd
16076 \end_inset
16077
16078 >
16079 \end_layout
16080
16081 \begin_layout LyX-Code
16082 <labeltag attr=
16083 \begin_inset Quotes erd
16084 \end_inset
16085
16086 value
16087 \begin_inset Quotes erd
16088 \end_inset
16089
16090 >ラベル</labeltag>
16091 \end_layout
16092
16093 \begin_layout LyX-Code
16094 段落の内容
16095 \end_layout
16096
16097 \begin_layout LyX-Code
16098 </tag>
16099 \end_layout
16100
16101 \begin_layout Standard
16102 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
16103 \end_layout
16104
16105 \begin_layout Standard
16106 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
16107 \end_layout
16108
16109 \begin_layout LyX-Code
16110 <tag attr=
16111 \begin_inset Quotes erd
16112 \end_inset
16113
16114 value
16115 \begin_inset Quotes erd
16116 \end_inset
16117
16118 >
16119 \end_layout
16120
16121 \begin_layout LyX-Code
16122 <itemtag attr=
16123 \begin_inset Quotes erd
16124 \end_inset
16125
16126 value
16127 \begin_inset Quotes erd
16128 \end_inset
16129
16130 ><labeltag attr=
16131 \begin_inset Quotes erd
16132 \end_inset
16133
16134 value
16135 \begin_inset Quotes erd
16136 \end_inset
16137
16138 >環境ラベル</labeltag>最初の段落。
16139 \end_layout
16140
16141 \begin_layout LyX-Code
16142 </itemtag>
16143 \end_layout
16144
16145 \begin_layout LyX-Code
16146 <itemtag>二つめの段落。</itemtag>
16147 \end_layout
16148
16149 \begin_layout LyX-Code
16150 </tag>
16151 \end_layout
16152
16153 \begin_layout Standard
16154 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
16155 \end_layout
16156
16157 \begin_layout Standard
16158 リストに関しては、次のような形になります。
16159 \end_layout
16160
16161 \begin_layout LyX-Code
16162 <tag attr=
16163 \begin_inset Quotes erd
16164 \end_inset
16165
16166 value
16167 \begin_inset Quotes erd
16168 \end_inset
16169
16170 >
16171 \end_layout
16172
16173 \begin_layout LyX-Code
16174 <itemtag attr=
16175 \begin_inset Quotes erd
16176 \end_inset
16177
16178 value
16179 \begin_inset Quotes erd
16180 \end_inset
16181
16182 ><labeltag attr=
16183 \begin_inset Quotes erd
16184 \end_inset
16185
16186 value
16187 \begin_inset Quotes erd
16188 \end_inset
16189
16190 >リストのラベル</labeltag>最初の項目。</itemtag>
16191 \end_layout
16192
16193 \begin_layout LyX-Code
16194 <itemtag attr=
16195 \begin_inset Quotes erd
16196 \end_inset
16197
16198 value
16199 \begin_inset Quotes erd
16200 \end_inset
16201
16202 ><labeltag attr=
16203 \begin_inset Quotes erd
16204 \end_inset
16205
16206 value
16207 \begin_inset Quotes erd
16208 \end_inset
16209
16210 >リストのラベル</labeltag>二つめの項目。</itemtag>
16211 \end_layout
16212
16213 \begin_layout LyX-Code
16214 </tag>
16215 \end_layout
16216
16217 \begin_layout LyX-Code
16218
16219 \end_layout
16220
16221 \begin_layout LyX-Code
16222 <tag attr=
16223 \begin_inset Quotes erd
16224 \end_inset
16225
16226 value
16227 \begin_inset Quotes erd
16228 \end_inset
16229
16230 >
16231 \end_layout
16232
16233 \begin_layout LyX-Code
16234 <labeltag attr=
16235 \begin_inset Quotes erd
16236 \end_inset
16237
16238 value
16239 \begin_inset Quotes erd
16240 \end_inset
16241
16242 >リストのラベル</labeltag><itemtag attr=
16243 \begin_inset Quotes erd
16244 \end_inset
16245
16246 value
16247 \begin_inset Quotes erd
16248 \end_inset
16249
16250 >最初の項目。</itemtag>
16251 \end_layout
16252
16253 \begin_layout LyX-Code
16254 <labeltag attr=
16255 \begin_inset Quotes erd
16256 \end_inset
16257
16258 value
16259 \begin_inset Quotes erd
16260 \end_inset
16261
16262 >リストのラベル</labeltag><itemtag attr=
16263 \begin_inset Quotes erd
16264 \end_inset
16265
16266 value
16267 \begin_inset Quotes erd
16268 \end_inset
16269
16270 >二つめの項目</itemtag>
16271 \end_layout
16272
16273 \begin_layout LyX-Code
16274 </tag>
16275 \end_layout
16276
16277 \begin_layout Standard
16278 ここで
16279 \begin_inset Flex Code
16280 status collapsed
16281
16282 \begin_layout Plain Layout
16283 labeltag
16284 \end_layout
16285
16286 \end_inset
16287
16288
16289 \begin_inset Flex Code
16290 status collapsed
16291
16292 \begin_layout Plain Layout
16293 itemtag
16294 \end_layout
16295
16296 \end_inset
16297
16298 の順序が違っていることに注意してください。どちらの順序になるかは、
16299 \begin_inset Flex Code
16300 status collapsed
16301
16302 \begin_layout Plain Layout
16303 HTMLLabelFirst
16304 \end_layout
16305
16306 \end_inset
16307
16308 の設定に依存します。もし
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313 HTMLLabelFirst
16314 \end_layout
16315
16316 \end_inset
16317
16318 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
16319 \end_layout
16320
16321 \begin_layout Standard
16322 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、LyXは適切な既定値
16323 を生成するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整す
16324 る目的でここにあるものと考えてください。
16325 \end_layout
16326
16327 \begin_layout Description
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 HTMLAttr
16333 \end_layout
16334
16335 \end_inset
16336
16337  [
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 文字列
16343 \end_layout
16344
16345 \end_inset
16346
16347 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 class=`mydiv'
16353 \end_layout
16354
16355 \end_inset
16356
16357 」のようなものです。既定においては、LyXは「
16358 \begin_inset Flex Code
16359 status collapsed
16360
16361 \begin_layout Plain Layout
16362 class=`レイアウト名'
16363 \end_layout
16364
16365 \end_inset
16366
16367 」と出力します。ここで
16368 \begin_inset Flex Code
16369 status collapsed
16370
16371 \begin_layout Plain Layout
16372 レイアウト名
16373 \end_layout
16374
16375 \end_inset
16376
16377 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
16378 \end_layout
16379
16380 \begin_layout Description
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 HTMLForceCSS
16386 \end_layout
16387
16388 \end_inset
16389
16390  [
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395
16396 \emph on
16397 0
16398 \end_layout
16399
16400 \end_inset
16401
16402 ,
16403 \begin_inset space \thinspace{}
16404 \end_inset
16405
16406
16407 \begin_inset Flex Code
16408 status collapsed
16409
16410 \begin_layout Plain Layout
16411 1
16412 \end_layout
16413
16414 \end_inset
16415
16416 ] 
16417 \begin_inset Flex Code
16418 status collapsed
16419
16420 \begin_layout Plain Layout
16421 HTMLStyle
16422 \end_layout
16423
16424 \end_inset
16425
16426 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 1
16432 \end_layout
16433
16434 \end_inset
16435
16436 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
16437 \begin_inset Flex Code
16438 status collapsed
16439
16440 \begin_layout Plain Layout
16441 0
16442 \end_layout
16443
16444 \end_inset
16445
16446 です。
16447 \end_layout
16448
16449 \begin_layout Description
16450 \begin_inset Flex Code
16451 status collapsed
16452
16453 \begin_layout Plain Layout
16454 HTMLItem
16455 \end_layout
16456
16457 \end_inset
16458
16459  [
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 文字列
16465 \end_layout
16466
16467 \end_inset
16468
16469 ] 環境の段落に使用されるタグ。上記各例の
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 itemtag
16475 \end_layout
16476
16477 \end_inset
16478
16479 を置き換えます。既定値は
16480 \begin_inset Flex Code
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 div
16485 \end_layout
16486
16487 \end_inset
16488
16489 です。
16490 \end_layout
16491
16492 \begin_layout Description
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 HTMLItemAttr
16498 \end_layout
16499
16500 \end_inset
16501
16502  [
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507 文字列
16508 \end_layout
16509
16510 \end_inset
16511
16512 ] itemタグの属性。既定値は
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 class=`レイアウト名_item'
16518 \end_layout
16519
16520 \end_inset
16521
16522 です。ここには、様式情報は含まれては
16523 \emph on
16524 なりません
16525 \emph default
16526 。その目的のためには、
16527 \begin_inset Flex Code
16528 status collapsed
16529
16530 \begin_layout Plain Layout
16531 HTMLStyle
16532 \end_layout
16533
16534 \end_inset
16535
16536 を使用してください。
16537 \end_layout
16538
16539 \begin_layout Description
16540 \begin_inset Flex Code
16541 status collapsed
16542
16543 \begin_layout Plain Layout
16544 HTMLLabel
16545 \end_layout
16546
16547 \end_inset
16548
16549  [
16550 \begin_inset Flex Code
16551 status collapsed
16552
16553 \begin_layout Plain Layout
16554 文字列
16555 \end_layout
16556
16557 \end_inset
16558
16559 ] 段落と項目ラベルに使用されるタグ。上記各例の
16560 \begin_inset Flex Code
16561 status collapsed
16562
16563 \begin_layout Plain Layout
16564 labeltag
16565 \end_layout
16566
16567 \end_inset
16568
16569 を置き換えます。
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574 LabelType
16575 \end_layout
16576
16577 \end_inset
16578
16579
16580 \begin_inset Flex Code
16581 status collapsed
16582
16583 \begin_layout Plain Layout
16584 Top_Environment
16585 \end_layout
16586
16587 \end_inset
16588
16589
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 Centered_Top_Environment
16595 \end_layout
16596
16597 \end_inset
16598
16599 の時は、既定値は
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 div
16605 \end_layout
16606
16607 \end_inset
16608
16609 ですが、それ以外の時の既定値は
16610 \begin_inset Flex Code
16611 status collapsed
16612
16613 \begin_layout Plain Layout
16614 span
16615 \end_layout
16616
16617 \end_inset
16618
16619 です。
16620 \end_layout
16621
16622 \begin_layout Description
16623 \begin_inset Flex Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 HTMLLabelAttr
16628 \end_layout
16629
16630 \end_inset
16631
16632  [
16633 \begin_inset Flex Code
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 文字列
16638 \end_layout
16639
16640 \end_inset
16641
16642 ] labelタグの属性。既定値は
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 class=`レイアウト名_label'
16648 \end_layout
16649
16650 \end_inset
16651
16652 です。ここには、様式情報は含まれては
16653 \emph on
16654 なりません
16655 \emph default
16656 。その目的のためには、
16657 \begin_inset Flex Code
16658 status collapsed
16659
16660 \begin_layout Plain Layout
16661 HTMLStyle
16662 \end_layout
16663
16664 \end_inset
16665
16666 を使用してください。
16667 \end_layout
16668
16669 \begin_layout Description
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674 HTMLLabelFirst
16675 \end_layout
16676
16677 \end_inset
16678
16679  [
16680 \begin_inset Flex Code
16681 status collapsed
16682
16683 \begin_layout Plain Layout
16684
16685 \emph on
16686 0
16687 \end_layout
16688
16689 \end_inset
16690
16691 ,
16692 \begin_inset space \thinspace{}
16693 \end_inset
16694
16695
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 1
16701 \end_layout
16702
16703 \end_inset
16704
16705 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
16706 tion環境の中で、
16707 \begin_inset Flex Code
16708 status collapsed
16709
16710 \begin_layout Plain Layout
16711 `<dt>\SpecialChar \ldots{}
16712 </dt><dd>\SpecialChar \ldots{}
16713 </dd>
16714 \end_layout
16715
16716 \end_inset
16717
16718 という形を得るために使用されます。既定値は
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723 0
16724 \end_layout
16725
16726 \end_inset
16727
16728 で、labelタグはitemタグの中に出力されます。
16729 \end_layout
16730
16731 \begin_layout Description
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 HTMLPreamble
16737 \end_layout
16738
16739 \end_inset
16740
16741  この様式が使用されたときに、
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 <head>
16747 \end_layout
16748
16749 \end_inset
16750
16751 セクションに出力される情報。これは、たとえば、
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 onclick
16757 \end_layout
16758
16759 \end_inset
16760
16761 ハンドラを定義するために
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766 <script>
16767 \end_layout
16768
16769 \end_inset
16770
16771 ブロックをインクルードするのに使用することができます。
16772 \end_layout
16773
16774 \begin_layout Description
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779 HTMLStyle
16780 \end_layout
16781
16782 \end_inset
16783
16784   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16785 \begin_inset Flex Code
16786 status collapsed
16787
16788 \begin_layout Plain Layout
16789 <style>
16790 \end_layout
16791
16792 \end_inset
16793
16794 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16795 \end_layout
16796
16797 \begin_layout Description
16798 \begin_inset Flex Code
16799 status collapsed
16800
16801 \begin_layout Plain Layout
16802 HTMLTag
16803 \end_layout
16804
16805 \end_inset
16806
16807  [
16808 \begin_inset Flex Code
16809 status collapsed
16810
16811 \begin_layout Plain Layout
16812 文字列
16813 \end_layout
16814
16815 \end_inset
16816
16817 ] 主幹ラベルに使用されるタグ。上記各例の
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 tag
16823 \end_layout
16824
16825 \end_inset
16826
16827 を置き換えます。既定値は
16828 \begin_inset Flex Code
16829 status collapsed
16830
16831 \begin_layout Plain Layout
16832 div
16833 \end_layout
16834
16835 \end_inset
16836
16837 です。
16838 \end_layout
16839
16840 \begin_layout Description
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 HTMLTitle
16846 \end_layout
16847
16848 \end_inset
16849
16850  [
16851 \begin_inset Flex Code
16852 status collapsed
16853
16854 \begin_layout Plain Layout
16855
16856 \emph on
16857 0
16858 \end_layout
16859
16860 \end_inset
16861
16862 ,
16863 \begin_inset space \thinspace{}
16864 \end_inset
16865
16866
16867 \begin_inset Flex Code
16868 status collapsed
16869
16870 \begin_layout Plain Layout
16871 1
16872 \end_layout
16873
16874 \end_inset
16875
16876 ] この様式が、XHTMLファイルの
16877 \begin_inset Flex Code
16878 status collapsed
16879
16880 \begin_layout Plain Layout
16881 <title>
16882 \end_layout
16883
16884 \end_inset
16885
16886 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
16887 \begin_inset Flex Code
16888 status collapsed
16889
16890 \begin_layout Plain Layout
16891 stdtitle.inc
16892 \end_layout
16893
16894 \end_inset
16895
16896 ファイルでは、
16897 \begin_inset Flex Code
16898 status collapsed
16899
16900 \begin_layout Plain Layout
16901 title
16902 \end_layout
16903
16904 \end_inset
16905
16906 環境のこの項目を真に設定しています。
16907 \end_layout
16908
16909 \begin_layout Subsection
16910 差込枠レイアウトXHTML
16911 \end_layout
16912
16913 \begin_layout Standard
16914 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
16915 \begin_inset Foot
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
16920 ん。
16921 \end_layout
16922
16923 \end_inset
16924
16925 。ここでも、LyXは適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
16926 \end_layout
16927
16928 \begin_layout Standard
16929 LyXが差込枠用に出力するXHTMLは、以下の形を取ります。
16930 \end_layout
16931
16932 \begin_layout LyX-Code
16933 <tag attr=
16934 \begin_inset Quotes erd
16935 \end_inset
16936
16937 value
16938 \begin_inset Quotes erd
16939 \end_inset
16940
16941 >
16942 \end_layout
16943
16944 \begin_layout LyX-Code
16945 <labeltag>ラベル</labeltag>
16946 \end_layout
16947
16948 \begin_layout LyX-Code
16949 <innertag attr=
16950 \begin_inset Quotes erd
16951 \end_inset
16952
16953 value
16954 \begin_inset Quotes erd
16955 \end_inset
16956
16957 >差込枠の内容。</innertag>
16958 \end_layout
16959
16960 \begin_layout LyX-Code
16961 </tag>
16962 \end_layout
16963
16964 \begin_layout Standard
16965 差込枠が多段落を許可している---つまり
16966 \begin_inset Flex Code
16967 status collapsed
16968
16969 \begin_layout Plain Layout
16970 MultiPar
16971 \end_layout
16972
16973 \end_inset
16974
16975 が真---ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなけれ
16976 ば、labelタグは省略され、ラベルがあれば、現在のところ、つねに
16977 \begin_inset Flex Code
16978 status collapsed
16979
16980 \begin_layout Plain Layout
16981 span
16982 \end_layout
16983
16984 \end_inset
16985
16986 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
16987 す。
16988 \end_layout
16989
16990 \begin_layout Description
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 HTMLAttr
16996 \end_layout
16997
16998 \end_inset
16999
17000  [
17001 \begin_inset Flex Code
17002 status collapsed
17003
17004 \begin_layout Plain Layout
17005 文字列
17006 \end_layout
17007
17008 \end_inset
17009
17010 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17011 \begin_inset Flex Code
17012 status collapsed
17013
17014 \begin_layout Plain Layout
17015 class=`myinset' onclick=`\SpecialChar \ldots{}
17016 '
17017 \end_layout
17018
17019 \end_inset
17020
17021 」のようなものです。既定においては、LyXは「
17022 \begin_inset Flex Code
17023 status collapsed
17024
17025 \begin_layout Plain Layout
17026 class=`差込枠名'
17027 \end_layout
17028
17029 \end_inset
17030
17031 」と出力します。ここで
17032 \begin_inset Flex Code
17033 status collapsed
17034
17035 \begin_layout Plain Layout
17036 差込枠名
17037 \end_layout
17038
17039 \end_inset
17040
17041 は、差込枠のLyX名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
17042 \end_layout
17043
17044 \begin_layout Description
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 HTMLForceCSS
17050 \end_layout
17051
17052 \end_inset
17053
17054  [
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059
17060 \emph on
17061 0
17062 \emph default
17063 ,1
17064 \end_layout
17065
17066 \end_inset
17067
17068 ] 
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 HTMLStyle
17074 \end_layout
17075
17076 \end_inset
17077
17078 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 1
17084 \end_layout
17085
17086 \end_inset
17087
17088 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 0
17094 \end_layout
17095
17096 \end_inset
17097
17098 です。
17099 \end_layout
17100
17101 \begin_layout Description
17102 \begin_inset Flex Code
17103 status collapsed
17104
17105 \begin_layout Plain Layout
17106 HTMLInnerAttr
17107 \end_layout
17108
17109 \end_inset
17110
17111  [
17112 \begin_inset Flex Code
17113 status collapsed
17114
17115 \begin_layout Plain Layout
17116 文字列
17117 \end_layout
17118
17119 \end_inset
17120
17121 ] innerタグの属性。既定値は
17122 \begin_inset Flex Code
17123 status collapsed
17124
17125 \begin_layout Plain Layout
17126 class=`差込枠名_inner'
17127 \end_layout
17128
17129 \end_inset
17130
17131 です。
17132 \end_layout
17133
17134 \begin_layout Description
17135 \begin_inset Flex Code
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139 HTMLInnerTag
17140 \end_layout
17141
17142 \end_inset
17143
17144  [
17145 \begin_inset Flex Code
17146 status collapsed
17147
17148 \begin_layout Plain Layout
17149 文字列
17150 \end_layout
17151
17152 \end_inset
17153
17154 ] innerタグです。上記各例の
17155 \begin_inset Flex Code
17156 status collapsed
17157
17158 \begin_layout Plain Layout
17159 innertag
17160 \end_layout
17161
17162 \end_inset
17163
17164 を置き換えます。既定値はなしです。
17165 \end_layout
17166
17167 \begin_layout Description
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 HTMLIsBlock
17173 \end_layout
17174
17175 \end_inset
17176
17177  [
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182 0
17183 \end_layout
17184
17185 \end_inset
17186
17187 ,
17188 \begin_inset space \thinspace{}
17189 \end_inset
17190
17191
17192 \begin_inset Flex Code
17193 status collapsed
17194
17195 \begin_layout Plain Layout
17196
17197 \emph on
17198 1
17199 \end_layout
17200
17201 \end_inset
17202
17203 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
17204 \end_layout
17205
17206 \begin_layout Description
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 HTMLLabel
17212 \end_layout
17213
17214 \end_inset
17215
17216  [
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 文字列
17222 \end_layout
17223
17224 \end_inset
17225
17226 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
17227 \begin_inset Flex Code
17228 status collapsed
17229
17230 \begin_layout Plain Layout
17231
17232 \backslash
17233 arabic{footnote}
17234 \end_layout
17235
17236 \end_inset
17237
17238 など。これは非必須であり、既定値はありません。
17239 \end_layout
17240
17241 \begin_layout Description
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246 HTMLPreamble
17247 \end_layout
17248
17249 \end_inset
17250
17251  この様式が使用されたときに、
17252 \begin_inset Flex Code
17253 status collapsed
17254
17255 \begin_layout Plain Layout
17256 <head>
17257 \end_layout
17258
17259 \end_inset
17260
17261 セクションに出力される情報。これは、たとえば、
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 onclick
17267 \end_layout
17268
17269 \end_inset
17270
17271 ハンドラを定義するために
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 <script>
17277 \end_layout
17278
17279 \end_inset
17280
17281 ブロックをインクルードするのに使用することができます。
17282 \end_layout
17283
17284 \begin_layout Description
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 HTMLStyle
17290 \end_layout
17291
17292 \end_inset
17293
17294   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 <style>
17300 \end_layout
17301
17302 \end_inset
17303
17304 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17305 \end_layout
17306
17307 \begin_layout Description
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 HTMLTag
17313 \end_layout
17314
17315 \end_inset
17316
17317  [
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 文字列
17323 \end_layout
17324
17325 \end_inset
17326
17327 ] 主幹ラベルに使用されるタグ。上記各例の
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332 tag
17333 \end_layout
17334
17335 \end_inset
17336
17337 を置き換えます。既定値は
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 MultiPar
17343 \end_layout
17344
17345 \end_inset
17346
17347 の設定に依存し、
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 MultiPar
17353 \end_layout
17354
17355 \end_inset
17356
17357 が真ならば
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 div
17363 \end_layout
17364
17365 \end_inset
17366
17367 、偽ならば
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372 span
17373 \end_layout
17374
17375 \end_inset
17376
17377 です。
17378 \end_layout
17379
17380 \begin_layout Subsection
17381 フロートXHTML
17382 \end_layout
17383
17384 \begin_layout Standard
17385 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
17386 \end_layout
17387
17388 \begin_layout LyX-Code
17389 <tag attr=
17390 \begin_inset Quotes erd
17391 \end_inset
17392
17393 value
17394 \begin_inset Quotes erd
17395 \end_inset
17396
17397 >
17398 \end_layout
17399
17400 \begin_layout LyX-Code
17401 フロートの内容。
17402 \end_layout
17403
17404 \begin_layout LyX-Code
17405 </tag>
17406 \end_layout
17407
17408 \begin_layout Standard
17409 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
17410 きます。
17411 \end_layout
17412
17413 \begin_layout Description
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 HTMLAttr
17419 \end_layout
17420
17421 \end_inset
17422
17423  [
17424 \begin_inset Flex Code
17425 status collapsed
17426
17427 \begin_layout Plain Layout
17428 文字列
17429 \end_layout
17430
17431 \end_inset
17432
17433 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438 class=`myfloat' onclick=`\SpecialChar \ldots{}
17439 '
17440 \end_layout
17441
17442 \end_inset
17443
17444 」のようなものです。既定においては、LyXは「
17445 \begin_inset Flex Code
17446 status collapsed
17447
17448 \begin_layout Plain Layout
17449 class=`float フロート-フロート型'
17450 \end_layout
17451
17452 \end_inset
17453
17454 」と出力します。ここで
17455 \begin_inset Flex Code
17456 status collapsed
17457
17458 \begin_layout Plain Layout
17459 フロート型
17460 \end_layout
17461
17462 \end_inset
17463
17464 は、フロート宣言で定義された(
17465 \begin_inset CommandInset ref
17466 LatexCommand ref
17467 reference "sub:フロート"
17468
17469 \end_inset
17470
17471 参照)、この型のフロートのLyX名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table
17472
17473 \end_layout
17474
17475 \begin_layout Description
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 HTMLStyle
17481 \end_layout
17482
17483 \end_inset
17484
17485   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490 <style>
17491 \end_layout
17492
17493 \end_inset
17494
17495 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17496 \end_layout
17497
17498 \begin_layout Description
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 HTMLTag
17504 \end_layout
17505
17506 \end_inset
17507
17508  [
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513 文字列
17514 \end_layout
17515
17516 \end_inset
17517
17518 ] このフロートに使用されるタグ。上記各例の
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523 tag
17524 \end_layout
17525
17526 \end_inset
17527
17528 を置き換えます。既定値は
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 div
17534 \end_layout
17535
17536 \end_inset
17537
17538 であり、ほとんどの場合変更する必要はありません。
17539 \end_layout
17540
17541 \begin_layout Subsection
17542 書誌情報の整形
17543 \end_layout
17544
17545 \begin_layout Standard
17546 書誌情報は、
17547 \begin_inset Flex Code
17548 status collapsed
17549
17550 \begin_layout Plain Layout
17551 CiteFormat
17552 \end_layout
17553
17554 \end_inset
17555
17556 ブロックを使用して整形することができます。詳細については、第
17557 \begin_inset CommandInset ref
17558 LatexCommand ref
17559 reference "sub:引用書式指定"
17560
17561 \end_inset
17562
17563 節を参照してください。
17564 \end_layout
17565
17566 \begin_layout Subsection
17567 LyXが生成したCSS
17568 \end_layout
17569
17570 \begin_layout Standard
17571 LyXは、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節
17572 では、LyXがどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
17573 \end_layout
17574
17575 \begin_layout Standard
17576 LyXは、現在のところ、
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 Font
17582 \end_layout
17583
17584 \end_inset
17585
17586 宣言で指定されている
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 Family
17592 \end_layout
17593
17594 \end_inset
17595
17596
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 Series
17602 \end_layout
17603
17604 \end_inset
17605
17606
17607 \begin_inset Flex Code
17608 status collapsed
17609
17610 \begin_layout Plain Layout
17611 Shape
17612 \end_layout
17613
17614 \end_inset
17615
17616
17617 \begin_inset Flex Code
17618 status collapsed
17619
17620 \begin_layout Plain Layout
17621 Size
17622 \end_layout
17623
17624 \end_inset
17625
17626 を利用して、フォント情報についてのみCSSを自動生成します(第
17627 \begin_inset CommandInset ref
17628 LatexCommand ref
17629 reference "sub:フォント指定"
17630
17631 \end_inset
17632
17633 節を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
17634 \begin_inset Flex Code
17635 status collapsed
17636
17637 \begin_layout Plain Layout
17638 Family Sans
17639 \end_layout
17640
17641 \end_inset
17642
17643 」は「
17644 \begin_inset Flex Code
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648 font-family: sans-serif
17649 \end_layout
17650
17651 \end_inset
17652
17653 」になります。LyXの寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
17654 \begin_inset Flex URL
17655 status collapsed
17656
17657 \begin_layout Plain Layout
17658
17659 src/FontInfo.cpp
17660 \end_layout
17661
17662 \end_inset
17663
17664
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 getSizeCSS()
17670 \end_layout
17671
17672 \end_inset
17673
17674 関数をご覧ください。
17675 \end_layout
17676
17677 \begin_layout Chapter
17678 外部素材を取り込む
17679 \end_layout
17680
17681 \begin_layout Standard
17682 \begin_inset Box Shadowbox
17683 position "t"
17684 hor_pos "c"
17685 has_inner_box 1
17686 inner_pos "t"
17687 use_parbox 0
17688 use_makebox 0
17689 width "100col%"
17690 special "none"
17691 height "1in"
17692 height_special "totalheight"
17693 status open
17694
17695 \begin_layout Plain Layout
17696 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
17697 \end_layout
17698
17699 \end_inset
17700
17701
17702 \end_layout
17703
17704 \begin_layout Standard
17705 LyX外部のソースから素材を使用する方法は、取扱説明書
17706 \emph on
17707 埋込オブジェクト篇
17708 \emph default
17709 で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
17710 \end_layout
17711
17712 \begin_layout Section
17713 どのように機能するのか
17714 \end_layout
17715
17716 \begin_layout Standard
17717 外部素材の機能は、ひな型の概念に基づいています。ひな型は、LyXがある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、LyXは、Xfig
17718 の図や、様々なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
17719 \begin_inset Flex MenuItem
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 挿入\SpecialChar \menuseparator
17724 ファイル\SpecialChar \menuseparator
17725 外部素材
17726 \end_layout
17727
17728 \end_inset
17729
17730 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
17731 すが、できればあなたが作ったすべてのひな型を投稿して、我々がLyXの後の版に取り込むことができるようにしてくださることを希望します。
17732 \end_layout
17733
17734 \begin_layout Standard
17735 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
17736 いることです。たとえば、
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 Xfig
17742 \end_layout
17743
17744 \end_inset
17745
17746 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 .fig
17752 \end_layout
17753
17754 \end_inset
17755
17756 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
17757 \begin_inset Flex Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 fig
17762 \end_layout
17763
17764 \end_inset
17765
17766 ファイルに保存します。この図をお使いの文書に取り込みたいときには、LaTeXファイルにそのままインクルードできるように、
17767 \begin_inset Flex Code
17768 status collapsed
17769
17770 \begin_layout Plain Layout
17771 transfig
17772 \end_layout
17773
17774 \end_inset
17775
17776 を呼び出してPostScriptファイルを生成します。この場合には、
17777 \begin_inset Flex Code
17778 status collapsed
17779
17780 \begin_layout Plain Layout
17781 .fig
17782 \end_layout
17783
17784 \end_inset
17785
17786 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
17787 \end_layout
17788
17789 \begin_layout Standard
17790 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
17791 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
17792 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。LyXの外部素材マネジメ
17793 ントは、LyXがサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
17794 \end_layout
17795
17796 \begin_layout Standard
17797 LyXの外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfi
17798 gの図の場合には、LyXの外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScr
17799 iptファイルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加え
17800 るためにファイルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を
17801 上げることができるようになるのです。
17802 \end_layout
17803
17804 \begin_layout Section
17805 外用ひな型設定ファイル
17806 \end_layout
17807
17808 \begin_layout Standard
17809 LyXに自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホ
17810 ールを作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、第
17811 \begin_inset CommandInset ref
17812 LatexCommand ref
17813 reference "sec:セキュリティに関する論点"
17814
17815 \end_inset
17816
17817 節のセキュリティに関する議論を読んでおいてください。
17818 \end_layout
17819
17820 \begin_layout Standard
17821 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
17822 \end_layout
17823
17824 \begin_layout Standard
17825 外用ひな型は、
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 LyXDir/lib/external_templates
17831 \end_layout
17832
17833 \end_inset
17834
17835 ファイルで定義されています。自分用の版を
17836 \begin_inset Flex Code
17837 status collapsed
17838
17839 \begin_layout Plain Layout
17840 UserDir/external_templates
17841 \end_layout
17842
17843 \end_inset
17844
17845 に置くこともできます。
17846 \end_layout
17847
17848 \begin_layout Standard
17849 典型的なひな型は以下のようになります。
17850 \end_layout
17851
17852 \begin_layout LyX-Code
17853 Template XFig
17854 \end_layout
17855
17856 \begin_layout LyX-Code
17857 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
17858 \end_layout
17859
17860 \begin_layout LyX-Code
17861 HelpText
17862 \end_layout
17863
17864 \begin_layout LyX-Code
17865 An XFig figure.
17866 \end_layout
17867
17868 \begin_layout LyX-Code
17869 HelpTextEnd
17870 \end_layout
17871
17872 \begin_layout LyX-Code
17873 InputFormat fig
17874 \end_layout
17875
17876 \begin_layout LyX-Code
17877 FileFilter "*.fig"
17878 \end_layout
17879
17880 \begin_layout LyX-Code
17881 AutomaticProduction true
17882 \end_layout
17883
17884 \begin_layout LyX-Code
17885 Transform Rotate
17886 \end_layout
17887
17888 \begin_layout LyX-Code
17889 Transform Resize
17890 \end_layout
17891
17892 \begin_layout LyX-Code
17893 Format LaT
17894 \begin_inset ERT
17895 status collapsed
17896
17897 \begin_layout Plain Layout
17898
17899 {}
17900 \end_layout
17901
17902 \end_inset
17903
17904 eX
17905 \end_layout
17906
17907 \begin_layout LyX-Code
17908 TransformCommand Rotate RotationLatexCommand
17909 \end_layout
17910
17911 \begin_layout LyX-Code
17912 TransformCommand Resize ResizeLatexCommand
17913 \end_layout
17914
17915 \begin_layout LyX-Code
17916 Product "$$RotateFront$$ResizeFront
17917 \end_layout
17918
17919 \begin_layout LyX-Code
17920          
17921 \backslash
17922
17923 \backslash
17924 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
17925 \end_layout
17926
17927 \begin_layout LyX-Code
17928          $$ResizeBack$$RotateBack"
17929 \end_layout
17930
17931 \begin_layout LyX-Code
17932 UpdateFormat pstex
17933 \end_layout
17934
17935 \begin_layout LyX-Code
17936 UpdateResult "$$AbsPath$$Basename.pstex_t"
17937 \end_layout
17938
17939 \begin_layout LyX-Code
17940 Requirement "graphicx"
17941 \end_layout
17942
17943 \begin_layout LyX-Code
17944 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
17945 \end_layout
17946
17947 \begin_layout LyX-Code
17948 ReferencedFile latex "$$AbsPath$$Basename.eps"
17949 \end_layout
17950
17951 \begin_layout LyX-Code
17952 ReferencedFile dvi "$$AbsPath$$Basename.eps"
17953 \end_layout
17954
17955 \begin_layout LyX-Code
17956 FormatEnd
17957 \end_layout
17958
17959 \begin_layout LyX-Code
17960 Format PDFLaT
17961 \begin_inset ERT
17962 status collapsed
17963
17964 \begin_layout Plain Layout
17965
17966 {}
17967 \end_layout
17968
17969 \end_inset
17970
17971 eX
17972 \end_layout
17973
17974 \begin_layout LyX-Code
17975 TransformCommand Rotate RotationLatexCommand
17976 \end_layout
17977
17978 \begin_layout LyX-Code
17979 TransformCommand Resize ResizeLatexCommand
17980 \end_layout
17981
17982 \begin_layout LyX-Code
17983 Product "$$RotateFront$$ResizeFront
17984 \end_layout
17985
17986 \begin_layout LyX-Code
17987          
17988 \backslash
17989
17990 \backslash
17991 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
17992 \end_layout
17993
17994 \begin_layout LyX-Code
17995          $$ResizeBack$$RotateBack"
17996 \end_layout
17997
17998 \begin_layout LyX-Code
17999 UpdateFormat pdftex
18000 \end_layout
18001
18002 \begin_layout LyX-Code
18003 UpdateResult "$$AbsPath$$Basename.pdftex_t"
18004 \end_layout
18005
18006 \begin_layout LyX-Code
18007 Requirement "graphicx"
18008 \end_layout
18009
18010 \begin_layout LyX-Code
18011 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
18012 \end_layout
18013
18014 \begin_layout LyX-Code
18015 ReferencedFile latex "$$AbsPath$$Basename.pdf"
18016 \end_layout
18017
18018 \begin_layout LyX-Code
18019 FormatEnd
18020 \end_layout
18021
18022 \begin_layout LyX-Code
18023 Format Ascii
18024 \end_layout
18025
18026 \begin_layout LyX-Code
18027 Product "$$Contents(
18028 \backslash
18029 "$$AbsPath$$Basename.asc
18030 \backslash
18031 ")"
18032 \end_layout
18033
18034 \begin_layout LyX-Code
18035 UpdateFormat asciixfig
18036 \end_layout
18037
18038 \begin_layout LyX-Code
18039 UpdateResult "$$AbsPath$$Basename.asc"
18040 \end_layout
18041
18042 \begin_layout LyX-Code
18043 FormatEnd
18044 \end_layout
18045
18046 \begin_layout LyX-Code
18047 Format DocBook
18048 \end_layout
18049
18050 \begin_layout LyX-Code
18051 Product "<graphic fileref=
18052 \backslash
18053 "$$AbsOrRelPathMaster$$Basename.eps
18054 \backslash
18055 ">
18056 \end_layout
18057
18058 \begin_layout LyX-Code
18059          </graphic>"
18060 \end_layout
18061
18062 \begin_layout LyX-Code
18063 UpdateFormat eps
18064 \end_layout
18065
18066 \begin_layout LyX-Code
18067 UpdateResult "$$AbsPath$$Basename.eps"
18068 \end_layout
18069
18070 \begin_layout LyX-Code
18071 ReferencedFile docbook "$$AbsPath$$Basename.eps"
18072 \end_layout
18073
18074 \begin_layout LyX-Code
18075 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
18076 \end_layout
18077
18078 \begin_layout LyX-Code
18079 FormatEnd
18080 \end_layout
18081
18082 \begin_layout LyX-Code
18083 Product "[XFig: $$FName]"
18084 \end_layout
18085
18086 \begin_layout LyX-Code
18087 FormatEnd
18088 \end_layout
18089
18090 \begin_layout LyX-Code
18091 TemplateEnd
18092 \end_layout
18093
18094 \begin_layout Standard
18095 ご覧の通り、ひな型は
18096 \begin_inset Flex Code
18097 status collapsed
18098
18099 \begin_layout Plain Layout
18100 Template
18101 \end_layout
18102
18103 \end_inset
18104
18105  \SpecialChar \ldots{}
18106  
18107 \begin_inset Flex Code
18108 status collapsed
18109
18110 \begin_layout Plain Layout
18111 TemplateEnd
18112 \end_layout
18113
18114 \end_inset
18115
18116 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
18117 \begin_inset Flex Code
18118 status collapsed
18119
18120 \begin_layout Plain Layout
18121 Format
18122 \end_layout
18123
18124 \end_inset
18125
18126  \SpecialChar \ldots{}
18127  
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 FormatEnd
18133 \end_layout
18134
18135 \end_inset
18136
18137 部があります。
18138 \end_layout
18139
18140 \begin_layout Subsection
18141 ひな型のヘッダ
18142 \end_layout
18143
18144 \begin_layout Description
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 AutomaticProduction
18150 \begin_inset space ~
18151 \end_inset
18152
18153 true|false
18154 \end_layout
18155
18156 \end_inset
18157
18158  このひな型で扱うファイルをLyXが生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
18159 \end_layout
18160
18161 \begin_layout Description
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 FileFilter
18167 \begin_inset space ~
18168 \end_inset
18169
18170 <パターン>
18171 \end_layout
18172
18173 \end_inset
18174
18175  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 .obj
18181 \end_layout
18182
18183 \end_inset
18184
18185
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 .tgo
18191 \end_layout
18192
18193 \end_inset
18194
18195 があります)、「
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 *.{obj,tgo}
18201 \end_layout
18202
18203 \end_inset
18204
18205 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
18206 \end_layout
18207
18208 \begin_layout Description
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 GuiName
18214 \begin_inset space ~
18215 \end_inset
18216
18217 <GUI名>
18218 \end_layout
18219
18220 \end_inset
18221
18222  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
18223 \end_layout
18224
18225 \begin_layout Description
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 HelpText
18231 \begin_inset space ~
18232 \end_inset
18233
18234 <文章>
18235 \begin_inset space ~
18236 \end_inset
18237
18238 HelpTextEnd
18239 \end_layout
18240
18241 \end_inset
18242
18243  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
18244 ず現れなくてはなりません。
18245 \end_layout
18246
18247 \begin_layout Description
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 InputFormat
18253 \begin_inset space ~
18254 \end_inset
18255
18256 <書式>
18257 \end_layout
18258
18259 \end_inset
18260
18261  オリジナルファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(第
18262 \begin_inset CommandInset ref
18263 LatexCommand ref
18264 reference "sec:ファイル形式"
18265
18266 \end_inset
18267
18268 章参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
18269 \begin_inset Flex Code
18270 status collapsed
18271
18272 \begin_layout Plain Layout
18273 *
18274 \end_layout
18275
18276 \end_inset
18277
18278 」を使用してください。この場合、LyXはファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
18279 \end_layout
18280
18281 \begin_layout Description
18282 \begin_inset Flex Code
18283 status collapsed
18284
18285 \begin_layout Plain Layout
18286 Template
18287 \begin_inset space ~
18288 \end_inset
18289
18290 <ID>
18291 \end_layout
18292
18293 \end_inset
18294
18295  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
18296 \end_layout
18297
18298 \begin_layout Description
18299 \begin_inset Flex Code
18300 status collapsed
18301
18302 \begin_layout Plain Layout
18303 Transform
18304 \begin_inset space ~
18305 \end_inset
18306
18307 Rotate|Resize|Clip|Extra
18308 \end_layout
18309
18310 \end_inset
18311
18312  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
18313 ログ中の対応するタブを使用可能にします。
18314 \begin_inset Flex Code
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318 Transform
18319 \end_layout
18320
18321 \end_inset
18322
18323 コマンド一つずつに応じて、
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328 Format
18329 \end_layout
18330
18331 \end_inset
18332
18333 部に、対応する
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 TransformCommand
18339 \end_layout
18340
18341 \end_inset
18342
18343 コマンドか
18344 \begin_inset Flex Code
18345 status collapsed
18346
18347 \begin_layout Plain Layout
18348 TransformOption
18349 \end_layout
18350
18351 \end_inset
18352
18353 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
18354 \end_layout
18355
18356 \begin_layout Subsection
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 Format
18362 \end_layout
18363
18364 \end_inset
18365
18366
18367 \end_layout
18368
18369 \begin_layout Description
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 Format
18375 \begin_inset space ~
18376 \end_inset
18377
18378 LaT
18379 \begin_inset ERT
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383
18384 {}
18385 \end_layout
18386
18387 \end_inset
18388
18389 eX|PDFLaT
18390 \begin_inset ERT
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394
18395 {}
18396 \end_layout
18397
18398 \end_inset
18399
18400 eX|PlainText|DocBook
18401 \end_layout
18402
18403 \end_inset
18404
18405  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 Format
18411 \end_layout
18412
18413 \end_inset
18414
18415 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
18416 ようになります。
18417 \end_layout
18418
18419 \begin_layout Description
18420 \begin_inset Flex Code
18421 status collapsed
18422
18423 \begin_layout Plain Layout
18424 Option
18425 \begin_inset space ~
18426 \end_inset
18427
18428 <名称>
18429 \begin_inset space ~
18430 \end_inset
18431
18432 <値>
18433 \end_layout
18434
18435 \end_inset
18436
18437  このコマンドは、
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 Product
18443 \end_layout
18444
18445 \end_inset
18446
18447 での代入に使うマクロ
18448 \begin_inset Flex Code
18449 status collapsed
18450
18451 \begin_layout Plain Layout
18452 $$<名称>
18453 \end_layout
18454
18455 \end_inset
18456
18457 を新たに定義します。
18458 \begin_inset Flex Code
18459 status collapsed
18460
18461 \begin_layout Plain Layout
18462 <値>
18463 \end_layout
18464
18465 \end_inset
18466
18467 自体にも代入マクロを使うことができます。
18468 \begin_inset Flex Code
18469 status collapsed
18470
18471 \begin_layout Plain Layout
18472 Product
18473 \end_layout
18474
18475 \end_inset
18476
18477
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 <値>
18483 \end_layout
18484
18485 \end_inset
18486
18487 を直接使用するよりも優れた点は、
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 $$<名称>
18493 \end_layout
18494
18495 \end_inset
18496
18497 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
18498 \end_layout
18499
18500 \begin_layout Description
18501 \begin_inset Flex Code
18502 status collapsed
18503
18504 \begin_layout Plain Layout
18505 Product
18506 \begin_inset space ~
18507 \end_inset
18508
18509 <文>
18510 \end_layout
18511
18512 \end_inset
18513
18514  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
18515
18516 \end_layout
18517
18518 \begin_layout Description
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 Preamble
18524 \begin_inset space ~
18525 \end_inset
18526
18527 <名称>
18528 \end_layout
18529
18530 \end_inset
18531
18532  このコマンドは、LaTeXプリアンブルに入れるプリアンブル片を指定します。これは
18533 \begin_inset Flex Code
18534 status collapsed
18535
18536 \begin_layout Plain Layout
18537 PreambleDef
18538 \end_layout
18539
18540 \end_inset
18541
18542  \SpecialChar \ldots{}
18543  
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 PreambleDefEnd
18549 \end_layout
18550
18551 \end_inset
18552
18553 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
18554 \end_layout
18555
18556 \begin_layout Description
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 ReferencedFile
18562 \begin_inset space ~
18563 \end_inset
18564
18565 <書式>
18566 \begin_inset space ~
18567 \end_inset
18568
18569 <ファイル名>
18570 \end_layout
18571
18572 \end_inset
18573
18574  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
18575 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
18576 \end_layout
18577
18578 \begin_layout Description
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 Requirement
18584 \begin_inset space ~
18585 \end_inset
18586
18587 <package>
18588 \end_layout
18589
18590 \end_inset
18591
18592  必要とされるLaTeXパッケージ名。パッケージは、LaTeXプリアンブル中で
18593 \begin_inset Flex Code
18594 status collapsed
18595
18596 \begin_layout Plain Layout
18597
18598 \backslash
18599 usepackage{}
18600 \end_layout
18601
18602 \end_inset
18603
18604 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
18605 \end_layout
18606
18607 \begin_layout Description
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612 TransformCommand
18613 \begin_inset space ~
18614 \end_inset
18615
18616 Rotate
18617 \begin_inset space ~
18618 \end_inset
18619
18620 RotationLatexCommand
18621 \end_layout
18622
18623 \end_inset
18624
18625  このコマンドは、回転用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18626 \end_layout
18627
18628 \begin_layout Description
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 TransformCommand
18634 \begin_inset space ~
18635 \end_inset
18636
18637 Resize
18638 \begin_inset space ~
18639 \end_inset
18640
18641 ResizeLatexCommand
18642 \end_layout
18643
18644 \end_inset
18645
18646  このコマンドは、伸縮用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18647 \end_layout
18648
18649 \begin_layout Description
18650 \begin_inset Flex Code
18651 status collapsed
18652
18653 \begin_layout Plain Layout
18654 TransformOption
18655 \begin_inset space ~
18656 \end_inset
18657
18658 Rotate
18659 \begin_inset space ~
18660 \end_inset
18661
18662 RotationLatexOption
18663 \end_layout
18664
18665 \end_inset
18666
18667  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18668 \end_layout
18669
18670 \begin_layout Description
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675 TransformOption
18676 \begin_inset space ~
18677 \end_inset
18678
18679 Resize
18680 \begin_inset space ~
18681 \end_inset
18682
18683 ResizeLatexOption
18684 \end_layout
18685
18686 \end_inset
18687
18688  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18689 \end_layout
18690
18691 \begin_layout Description
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 TransformOption
18697 \begin_inset space ~
18698 \end_inset
18699
18700 Clip
18701 \begin_inset space ~
18702 \end_inset
18703
18704 ClipLatexOption
18705 \end_layout
18706
18707 \end_inset
18708
18709  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18710 \end_layout
18711
18712 \begin_layout Description
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717 TransformOption
18718 \begin_inset space ~
18719 \end_inset
18720
18721 Extra
18722 \begin_inset space ~
18723 \end_inset
18724
18725 ExtraLatexOption
18726 \end_layout
18727
18728 \end_inset
18729
18730  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
18731 \end_layout
18732
18733 \begin_layout Description
18734 \begin_inset Flex Code
18735 status collapsed
18736
18737 \begin_layout Plain Layout
18738 UpdateFormat
18739 \begin_inset space ~
18740 \end_inset
18741
18742 <書式>
18743 \end_layout
18744
18745 \end_inset
18746
18747  変換されたファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(
18748 \begin_inset Flex MenuItem
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 ツール\SpecialChar \menuseparator
18753 設定:変換子
18754 \end_layout
18755
18756 \end_inset
18757
18758 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。
18759 \end_layout
18760
18761 \begin_layout Description
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 UpdateResult
18767 \begin_inset space ~
18768 \end_inset
18769
18770 <ファイル名>
18771 \end_layout
18772
18773 \end_inset
18774
18775  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
18776 \end_layout
18777
18778 \begin_layout Subsection
18779 プリアンブルの定義
18780 \end_layout
18781
18782 \begin_layout Standard
18783 外用ひな型設定ファイルには、
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 PreambleDef
18789 \end_layout
18790
18791 \end_inset
18792
18793  \SpecialChar \ldots{}
18794  
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 PreambleDefEnd
18800 \end_layout
18801
18802 \end_inset
18803
18804 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
18805 \begin_inset Flex Code
18806 status collapsed
18807
18808 \begin_layout Plain Layout
18809 Format
18810 \end_layout
18811
18812 \end_inset
18813
18814 部で使用することができます。
18815 \end_layout
18816
18817 \begin_layout Section
18818 代入機構
18819 \end_layout
18820
18821 \begin_layout Standard
18822 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
18823 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
18824 \end_layout
18825
18826 \begin_layout Standard
18827 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
18828 \end_layout
18829
18830 \begin_layout Standard
18831 使用できるマクロは以下の通りです。
18832 \end_layout
18833
18834 \begin_layout Description
18835 \begin_inset Flex Code
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 $$AbsOrRelPathMaster
18840 \end_layout
18841
18842 \end_inset
18843
18844  LyX親文書への絶対ファイルパスないしは相対ファイルパス
18845 \end_layout
18846
18847 \begin_layout Description
18848 \begin_inset Flex Code
18849 status collapsed
18850
18851 \begin_layout Plain Layout
18852 $$AbsOrRelPathParent
18853 \end_layout
18854
18855 \end_inset
18856
18857  LyX文書への絶対ファイルパスないしは相対ファイルパス
18858 \end_layout
18859
18860 \begin_layout Description
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 $$AbsPath
18866 \end_layout
18867
18868 \end_inset
18869
18870  絶対ファイルパス
18871 \end_layout
18872
18873 \begin_layout Description
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 $$Basename
18879 \end_layout
18880
18881 \end_inset
18882
18883  パスおよび拡張子を除いたファイル名
18884 \end_layout
18885
18886 \begin_layout Description
18887 \begin_inset Flex Code
18888 status collapsed
18889
18890 \begin_layout Plain Layout
18891 $$Contents(
18892 \begin_inset Quotes eld
18893 \end_inset
18894
18895 filename.ext
18896 \begin_inset Quotes erd
18897 \end_inset
18898
18899 )
18900 \end_layout
18901
18902 \end_inset
18903
18904  このマクロは、
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 filename.ext
18910 \end_layout
18911
18912 \end_inset
18913
18914 と云う名のファイルの中身を展開します。
18915 \end_layout
18916
18917 \begin_layout Description
18918 \begin_inset Flex Code
18919 status collapsed
18920
18921 \begin_layout Plain Layout
18922 $$Extension
18923 \end_layout
18924
18925 \end_inset
18926
18927  ファイル拡張子(点を含む)
18928 \end_layout
18929
18930 \begin_layout Description
18931 \begin_inset Flex Code
18932 status collapsed
18933
18934 \begin_layout Plain Layout
18935 $$FName
18936 \end_layout
18937
18938 \end_inset
18939
18940  外部素材ダイアログで指定されたファイルのファイル名。これはLyX文書への絶対パスでも良いですし、相対パスでも構いません。
18941 \end_layout
18942
18943 \begin_layout Description
18944 \begin_inset Flex Code
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 $$FPath
18949 \end_layout
18950
18951 \end_inset
18952
18953  
18954 \begin_inset Flex Code
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958 $$FName
18959 \end_layout
18960
18961 \end_inset
18962
18963 のパス部分(LyX文書への絶対パス名か相対パス名)
18964 \end_layout
18965
18966 \begin_layout Description
18967 \begin_inset Flex Code
18968 status collapsed
18969
18970 \begin_layout Plain Layout
18971 $$RelPathMaster
18972 \end_layout
18973
18974 \end_inset
18975
18976  LyX親文書への相対ファイルパス
18977 \end_layout
18978
18979 \begin_layout Description
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 $$RelPathParent
18985 \end_layout
18986
18987 \end_inset
18988
18989  LyX文書への相対ファイルパス
18990 \end_layout
18991
18992 \begin_layout Description
18993 \begin_inset Flex Code
18994 status collapsed
18995
18996 \begin_layout Plain Layout
18997 $$Sysdir
18998 \end_layout
18999
19000 \end_inset
19001
19002  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、LyXに同梱されているヘルパースクリプト群を示したりするのに使用されます。
19003 \end_layout
19004
19005 \begin_layout Description
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010 $$Tempname
19011 \end_layout
19012
19013 \end_inset
19014
19015  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
19016 \end_layout
19017
19018 \begin_layout Standard
19019 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 $$AbsPath$$Basename$$Extension
19025 \end_layout
19026
19027 \end_inset
19028
19029 のようにして作ることができます。
19030 \end_layout
19031
19032 \begin_layout Standard
19033 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 Transform
19039 \end_layout
19040
19041 \end_inset
19042
19043 コマンドと
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 TransformCommand
19049 \end_layout
19050
19051 \end_inset
19052
19053 コマンドが有効にされている場合、
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 Product
19059 \end_layout
19060
19061 \end_inset
19062
19063 コマンドは、これらに加えて以下の代入もサポートします。
19064 \end_layout
19065
19066 \begin_layout Description
19067 \begin_inset Flex Code
19068 status collapsed
19069
19070 \begin_layout Plain Layout
19071 $$ResizeFront
19072 \end_layout
19073
19074 \end_inset
19075
19076  伸縮コマンドの前置部。
19077 \end_layout
19078
19079 \begin_layout Description
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 $$ResizeBack
19085 \end_layout
19086
19087 \end_inset
19088
19089  伸縮コマンドの後置部。
19090 \end_layout
19091
19092 \begin_layout Description
19093 \begin_inset Flex Code
19094 status collapsed
19095
19096 \begin_layout Plain Layout
19097 $$RotateFront
19098 \end_layout
19099
19100 \end_inset
19101
19102  回転コマンドの前置部。
19103 \end_layout
19104
19105 \begin_layout Description
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 $$RotateBack
19111 \end_layout
19112
19113 \end_inset
19114
19115  回転コマンドの後置部。
19116 \end_layout
19117
19118 \begin_layout Standard
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 Option
19124 \end_layout
19125
19126 \end_inset
19127
19128 コマンドの値に入れる文字列では、
19129 \begin_inset Flex Code
19130 status collapsed
19131
19132 \begin_layout Plain Layout
19133 Transform
19134 \end_layout
19135
19136 \end_inset
19137
19138 コマンドと
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 TransformOption
19144 \end_layout
19145
19146 \end_inset
19147
19148 コマンドが有効にされていれば、以下の代入もサポートされます。
19149 \end_layout
19150
19151 \begin_layout Description
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 $$Clip
19157 \end_layout
19158
19159 \end_inset
19160
19161  切り抜きオプション。
19162 \end_layout
19163
19164 \begin_layout Description
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169 $$Extra
19170 \end_layout
19171
19172 \end_inset
19173
19174  追加オプション。
19175 \end_layout
19176
19177 \begin_layout Description
19178 \begin_inset Flex Code
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182 $$Resize
19183 \end_layout
19184
19185 \end_inset
19186
19187  伸縮オプション。
19188 \end_layout
19189
19190 \begin_layout Description
19191 \begin_inset Flex Code
19192 status collapsed
19193
19194 \begin_layout Plain Layout
19195 $$Rotate
19196 \end_layout
19197
19198 \end_inset
19199
19200  回転オプション。
19201 \end_layout
19202
19203 \begin_layout Standard
19204 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
19205 \end_layout
19206
19207 \begin_layout Enumerate
19208 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
19209 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
19210 \end_layout
19211
19212 \begin_layout Enumerate
19213 LaTeXは、相対ファイル名に関して、LyXや入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。LyXにとって相対ファイル名とは、常
19214 にこのファイル名が書かれている文書に対して相対的なものになります。LaTeXにとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一
19215 つの文書しかないときには同じですが、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、LaTeXに提示されるときに変換され
19216 なくてはならないのです。幸い、正しいマクロを選びさえすれば、これはLyXが自動的に行ってくれます。
19217 \end_layout
19218
19219 \begin_layout Standard
19220 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
19221 \end_layout
19222
19223 \begin_layout Itemize
19224 絶対パスが必要とされるときには
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229 $$AbsPath
19230 \end_layout
19231
19232 \end_inset
19233
19234 を使う。
19235 \end_layout
19236
19237 \begin_layout Itemize
19238 代入された文字列が、LaTeXインプットの一種である場合には、
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 $$AbsOrRelPathMaster
19244 \end_layout
19245
19246 \end_inset
19247
19248 を使う。
19249 \end_layout
19250
19251 \begin_layout Itemize
19252 それ以外ならば、ユーザの選択を尊重するために
19253 \begin_inset Flex Code
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257 $$AbsOrRelPathParent
19258 \end_layout
19259
19260 \end_inset
19261
19262 を使う。
19263 \end_layout
19264
19265 \begin_layout Standard
19266 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
19267 \begin_inset Flex Code
19268 status collapsed
19269
19270 \begin_layout Plain Layout
19271 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
19272 \end_layout
19273
19274 \end_inset
19275
19276 というコマンドがあります。この場合、
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281 .pstex_t
19282 \end_layout
19283
19284 \end_inset
19285
19286 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
19287 \end_layout
19288
19289 \begin_layout Section
19290 セキュリティに関する論点
19291 \begin_inset CommandInset label
19292 LatexCommand label
19293 name "sec:セキュリティに関する論点"
19294
19295 \end_inset
19296
19297
19298 \end_layout
19299
19300 \begin_layout Standard
19301 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
19302 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
19303 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
19304 \end_layout
19305
19306 \begin_layout Standard
19307 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、LyXが安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発
19308 生しません。これは、外部プログラムが
19309 \begin_inset Flex Code
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313 system
19314 \end_layout
19315
19316 \end_inset
19317
19318 システムコールではなく、
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 execvp
19324 \end_layout
19325
19326 \end_inset
19327
19328 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
19329 \end_layout
19330
19331 \begin_layout Standard
19332 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
19333 できません。これは、LyXの安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安
19334 全なスクリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
19335 \end_layout
19336
19337 \begin_layout Standard
19338 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
19339 うになるため、一般的には、統御下に置いた状態で
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 execvp
19345 \end_layout
19346
19347 \end_inset
19348
19349 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
19350 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
19351 \emph on
19352 間違いなく
19353 \emph default
19354 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
19355 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されているLyXには、安全でないひな型は決して入ってい
19356 ません。
19357 \end_layout
19358
19359 \begin_layout Standard
19360 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
19361 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
19362 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、LyX開発チームに相談してみてください。そしてこの相談は、管理されていない環境下で
19363 これを使用する前に、行うようにしてください。
19364 \end_layout
19365
19366 \begin_layout Chapter
19367 \start_of_appendix
19368
19369 \lang english
19370 Names of available colors to be used in layouts
19371 \begin_inset CommandInset label
19372 LatexCommand label
19373 name "chap:Names-of-colors"
19374
19375 \end_inset
19376
19377
19378 \end_layout
19379
19380 \begin_layout Standard
19381
19382 \lang english
19383 The colors listed here are the standard colors and the those that you can
19384  adjust in the LyX preferences.
19385 \end_layout
19386
19387 \begin_layout Description
19388
19389 \lang english
19390 none
19391 \family roman
19392 \series medium
19393 \shape up
19394 \size normal
19395 \emph off
19396 \bar no
19397 \strikeout off
19398 \uuline off
19399 \uwave off
19400 \noun off
19401 \color none
19402  No particular color -- clear or default
19403 \end_layout
19404
19405 \begin_layout Description
19406
19407 \lang english
19408 black
19409 \end_layout
19410
19411 \begin_layout Description
19412
19413 \lang english
19414 white
19415 \end_layout
19416
19417 \begin_layout Description
19418
19419 \lang english
19420 red
19421 \end_layout
19422
19423 \begin_layout Description
19424
19425 \lang english
19426 green
19427 \end_layout
19428
19429 \begin_layout Description
19430
19431 \lang english
19432 blue
19433 \end_layout
19434
19435 \begin_layout Description
19436
19437 \lang english
19438 cyan
19439 \end_layout
19440
19441 \begin_layout Description
19442
19443 \lang english
19444 magenta
19445 \end_layout
19446
19447 \begin_layout Description
19448
19449 \lang english
19450 yellow
19451 \end_layout
19452
19453 \begin_layout Description
19454
19455 \lang english
19456 cursor Cursor color
19457 \end_layout
19458
19459 \begin_layout Description
19460
19461 \lang english
19462 background Background color
19463 \end_layout
19464
19465 \begin_layout Description
19466
19467 \lang english
19468 foreground Foreground color
19469 \end_layout
19470
19471 \begin_layout Description
19472
19473 \lang english
19474 selection Background color of selected text
19475 \end_layout
19476
19477 \begin_layout Description
19478
19479 \lang english
19480 selectiontext Foreground color of selected text
19481 \end_layout
19482
19483 \begin_layout Description
19484
19485 \lang english
19486 latex Text color in LaTeX mode 
19487 \end_layout
19488
19489 \begin_layout Description
19490
19491 \lang english
19492 preview The color used for previews
19493 \end_layout
19494
19495 \begin_layout Description
19496
19497 \lang english
19498 inlinecompletion Inline completion color 
19499 \end_layout
19500
19501 \begin_layout Description
19502
19503 \lang english
19504 nonunique_inlinecompletion Inline completion color for the non-unique part
19505 \end_layout
19506
19507 \begin_layout Description
19508
19509 \lang english
19510 notelabel Label color for notes
19511 \end_layout
19512
19513 \begin_layout Description
19514
19515 \lang english
19516 notebg Background color of notes
19517 \end_layout
19518
19519 \begin_layout Description
19520
19521 \lang english
19522 commentlabel Label color for comments
19523 \end_layout
19524
19525 \begin_layout Description
19526
19527 \lang english
19528 commentbg Background color of comments
19529 \end_layout
19530
19531 \begin_layout Description
19532
19533 \lang english
19534 greyedoutlabel Label color for greyedout insets
19535 \end_layout
19536
19537 \begin_layout Description
19538
19539 \lang english
19540 greyedouttext Color for greyedout inset text
19541 \end_layout
19542
19543 \begin_layout Description
19544
19545 \lang english
19546 greyedoutbg Background color of greyedout inset
19547 \end_layout
19548
19549 \begin_layout Description
19550
19551 \lang english
19552 shadedbg Background color of shaded box
19553 \end_layout
19554
19555 \begin_layout Description
19556
19557 \lang english
19558 listingsbg Background color of listings inset
19559 \end_layout
19560
19561 \begin_layout Description
19562
19563 \lang english
19564 branchlabel Label color for branches
19565 \end_layout
19566
19567 \begin_layout Description
19568
19569 \lang english
19570 footlabel Label color for footnotes
19571 \end_layout
19572
19573 \begin_layout Description
19574
19575 \lang english
19576 indexlabel Label color for index insets 
19577 \end_layout
19578
19579 \begin_layout Description
19580
19581 \lang english
19582 marginlabel Label color for margin notes 
19583 \end_layout
19584
19585 \begin_layout Description
19586
19587 \lang english
19588 phantomtext Text color for phantom insets 
19589 \end_layout
19590
19591 \begin_layout Description
19592
19593 \lang english
19594 urllabel Label color for URL insets
19595 \end_layout
19596
19597 \begin_layout Description
19598
19599 \lang english
19600 urltext Color for URL inset text
19601 \end_layout
19602
19603 \begin_layout Description
19604
19605 \lang english
19606 depthbar Color for the depth bars in the margin
19607 \end_layout
19608
19609 \begin_layout Description
19610
19611 \lang english
19612 language Color for marking foreign language words
19613 \end_layout
19614
19615 \begin_layout Description
19616
19617 \lang english
19618 command Text color for command insets
19619 \end_layout
19620
19621 \begin_layout Description
19622
19623 \lang english
19624 commandbg Background color for command insets 
19625 \end_layout
19626
19627 \begin_layout Description
19628
19629 \lang english
19630 commandframe Frame color for command insets
19631 \end_layout
19632
19633 \begin_layout Description
19634
19635 \lang english
19636 special Special chars text color
19637 \end_layout
19638
19639 \begin_layout Description
19640
19641 \lang english
19642 graphicsbg Graphics inset background color 
19643 \end_layout
19644
19645 \begin_layout Description
19646
19647 \lang english
19648 math Math inset text color 
19649 \end_layout
19650
19651 \begin_layout Description
19652
19653 \lang english
19654 mathbg Math inset background color
19655 \end_layout
19656
19657 \begin_layout Description
19658
19659 \lang english
19660 mathmacrobg Macro math inset background color
19661 \end_layout
19662
19663 \begin_layout Description
19664
19665 \lang english
19666 mathmacrohoverbg Macro math inset background color hovered
19667 \end_layout
19668
19669 \begin_layout Description
19670
19671 \lang english
19672 mathmacrolabel Macro math label color
19673 \end_layout
19674
19675 \begin_layout Description
19676
19677 \lang english
19678 mathmacroframe Macro math frame color
19679 \end_layout
19680
19681 \begin_layout Description
19682
19683 \lang english
19684 mathmacroblend Macro math blended color
19685 \end_layout
19686
19687 \begin_layout Description
19688
19689 \lang english
19690 mathmacrooldarg Macro template color for old parameters 
19691 \end_layout
19692
19693 \begin_layout Description
19694
19695 \lang english
19696 mathmacronewarg Macro template color for new parameters
19697 \end_layout
19698
19699 \begin_layout Description
19700
19701 \lang english
19702 mathframe Math inset frame color under focus 
19703 \end_layout
19704
19705 \begin_layout Description
19706
19707 \lang english
19708 mathcorners Math inset frame color not under focus
19709 \end_layout
19710
19711 \begin_layout Description
19712
19713 \lang english
19714 mathline Math line color
19715 \end_layout
19716
19717 \begin_layout Description
19718
19719 \lang english
19720 collapsable Collapsable insets text 
19721 \end_layout
19722
19723 \begin_layout Description
19724
19725 \lang english
19726 collapsableframe Collapsable insets frame
19727 \end_layout
19728
19729 \begin_layout Description
19730
19731 \lang english
19732 insetbg Inset marker background color
19733 \end_layout
19734
19735 \begin_layout Description
19736
19737 \lang english
19738 insetframe Inset marker frame color
19739 \end_layout
19740
19741 \begin_layout Description
19742
19743 \lang english
19744 error Error box text color
19745 \end_layout
19746
19747 \begin_layout Description
19748
19749 \lang english
19750 eolmarker End of line marker color
19751 \end_layout
19752
19753 \begin_layout Description
19754
19755 \lang english
19756 added_space Added space colour
19757 \end_layout
19758
19759 \begin_layout Description
19760
19761 \lang english
19762 appendix Appendix marker color
19763 \end_layout
19764
19765 \begin_layout Description
19766
19767 \lang english
19768 changebar Changebar color
19769 \end_layout
19770
19771 \begin_layout Description
19772
19773 \lang english
19774 deletedtext Deleted text color
19775 \end_layout
19776
19777 \begin_layout Description
19778
19779 \lang english
19780 addedtext Added text color
19781 \end_layout
19782
19783 \begin_layout Description
19784
19785 \lang english
19786 changedtextauthor1 Changed text color author 1
19787 \end_layout
19788
19789 \begin_layout Description
19790
19791 \lang english
19792 changedtextauthor2 Changed text color author 2
19793 \end_layout
19794
19795 \begin_layout Description
19796
19797 \lang english
19798 changedtextauthor3 Changed text color author 3
19799 \end_layout
19800
19801 \begin_layout Description
19802
19803 \lang english
19804 changedtextauthor4 Changed text color author 4
19805 \end_layout
19806
19807 \begin_layout Description
19808
19809 \lang english
19810 changedtextauthor5 Changed text color author 5
19811 \end_layout
19812
19813 \begin_layout Description
19814
19815 \lang english
19816 deletedtextmodifier Deleted text modifying color
19817 \end_layout
19818
19819 \begin_layout Description
19820
19821 \lang english
19822 tabularline Table line color
19823 \end_layout
19824
19825 \begin_layout Description
19826
19827 \lang english
19828 tabularonoffline Table line color 
19829 \end_layout
19830
19831 \begin_layout Description
19832
19833 \lang english
19834 bottomarea Bottom area color
19835 \end_layout
19836
19837 \begin_layout Description
19838
19839 \lang english
19840 newpage New page color 
19841 \end_layout
19842
19843 \begin_layout Description
19844
19845 \lang english
19846 pagebreak Page break color
19847 \end_layout
19848
19849 \begin_layout Description
19850
19851 \lang english
19852 buttonframe Color used for button frame
19853 \end_layout
19854
19855 \begin_layout Description
19856
19857 \lang english
19858 buttonbg Color used for bottom background
19859 \end_layout
19860
19861 \begin_layout Description
19862
19863 \lang english
19864 buttonhoverbg Color used for buttom under focus 
19865 \end_layout
19866
19867 \begin_layout Description
19868
19869 \lang english
19870 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
19871  
19872 \end_layout
19873
19874 \begin_layout Description
19875
19876 \lang english
19877 previewframe Preview frame color
19878 \end_layout
19879
19880 \begin_layout Description
19881
19882 \lang english
19883 inherit Color is inherited 
19884 \end_layout
19885
19886 \begin_layout Description
19887
19888 \lang english
19889 regexpframe Color for regexp frame
19890 \end_layout
19891
19892 \begin_layout Description
19893
19894 \lang english
19895 ignore For ignoring updates of a color
19896 \end_layout
19897
19898 \end_body
19899 \end_document