]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
UserGuide.lyx: describe the horizontal scrolling
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 504
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 \end_modules
36 \maintain_unincluded_children false
37 \begin_local_layout
38 Format 57
39 InsetLayout Flex:MenuItem
40 LyxType               charstyle
41 LabelString           menu
42 LatexType             command
43 LatexName             menuitem
44 Font
45 Family              Sans
46 EndFont
47 Preamble
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
49 EndPreamble
50 ResetsFont true
51 End
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
54 #Font
55 #Family              Sans
56 #EndFont
57 #Preamble
58 #\renewcommand{\code}[1]{{\sffamily #1}}
59 #EndPreamble
60 #End
61 InsetLayout             Flex:Ruby
62 LyxType         charstyle
63 LatexType               command
64 LatexName               ruby
65 BgColor         none
66 LabelString             "ルビ"
67 Decoration              Conglomerate
68 Argument post:1
69 LabelString     "ルビ文"
70 MenuString      "ルビ文(S)|S"
71 Decoration      Conglomerate
72 Font
73 Size            tiny
74 EndFont
75 LabelFont
76 Size            tiny
77 EndFont
78 Mandatory       1
79 EndArgument
80 Preamble
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
84 EndPreamble
85 ResetsFont true
86 End
87 \end_local_layout
88 \language japanese
89 \language_package default
90 \inputencoding auto
91 \fontencoding global
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
98 \font_sc false
99 \font_osf false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
102 \graphics default
103 \default_output_format default
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification false
144 \use_refstyle 0
145 \branch OutDated
146 \selected 0
147 \filename_suffix 0
148 \color #f5fae7
149 \end_branch
150 \index 索引
151 \shortcut idx
152 \color #008000
153 \end_index
154 \secnumdepth 3
155 \tocdepth 3
156 \paragraph_separation indent
157 \paragraph_indentation default
158 \quotes_language english
159 \papercolumns 1
160 \papersides 2
161 \paperpagestyle headings
162 \tracking_changes false
163 \output_changes false
164 \html_math_output 0
165 \html_css_as_file 0
166 \html_be_strict true
167 \end_header
168
169 \begin_body
170
171 \begin_layout Title
172 \SpecialChar LyX
173 の高度設定
174 \begin_inset Newline newline
175 \end_inset
176
177 熟練ユーザのための各機能
178 \end_layout
179
180 \begin_layout Author
181 \SpecialChar LyX
182 開発チーム
183 \begin_inset Foot
184 status collapsed
185
186 \begin_layout Plain Layout
187 \noindent
188 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
189 文書化メーリングリスト
190 \begin_inset CommandInset href
191 LatexCommand href
192 target "lyx-docs@lists.lyx.org"
193 type "mailto:"
194
195 \end_inset
196
197 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
198 ast.net>をccにして送ってください。
199 \end_layout
200
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207
208 \begin_inset Newline newline
209 \end_inset
210
211 第2.2.x版 
212 \end_layout
213
214 \begin_layout Standard
215 \begin_inset CommandInset toc
216 LatexCommand tableofcontents
217
218 \end_inset
219
220
221 \begin_inset Note Note
222 status open
223
224 \begin_layout Plain Layout
225 本文書を修正する際には、変更追跡機能を使用してください。これによって、
226 \end_layout
227
228 \begin_layout Plain Layout
229 \SpecialChar LyX
230 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
231 \end_layout
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Chapter
239 はじめに
240 \end_layout
241
242 \begin_layout Standard
243 この取扱説明書は、\SpecialChar LyX
244 に備わっている高度設定機能を取り扱います。ここでは、
245 \begin_inset Flex Ruby
246 status collapsed
247
248 \begin_layout Plain Layout
249 捷径
250 \begin_inset Argument post:1
251 status collapsed
252
253 \begin_layout Plain Layout
254 ショートカット
255 \end_layout
256
257 \end_inset
258
259
260 \end_layout
261
262 \end_inset
263
264 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
265 サーバ経由での\SpecialChar LyX
266 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
267 クラスや\SpecialChar LyX
268 レイアウトの導入などの題材について論じます。おそらくは変更
269 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
270 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
271 \end_layout
272
273 \begin_layout Standard
274 \begin_inset Branch OutDated
275 status collapsed
276
277 \begin_layout Standard
278 Information from previous versions of this document that now seems to be
279  outdated is contained in the OutDated branch of this document.
280  By default, this information will not appear in the \SpecialChar LaTeX
281  output.
282 \end_layout
283
284 \end_inset
285
286
287 \end_layout
288
289 \begin_layout Chapter
290 \SpecialChar LyX
291 設定ファイル
292 \end_layout
293
294 \begin_layout Standard
295 本章の目的は、\SpecialChar LyX
296 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
297 \begin_inset Flex MenuItem
298 status collapsed
299
300 \begin_layout Plain Layout
301 ヘルプ\SpecialChar menuseparator
302 LyXについて
303 \end_layout
304
305 \end_inset
306
307 を使って、\SpecialChar LyX
308 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
309 がシステム全体の設定ファイルを置いておくところです。一
310 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
311 \begin_inset Flex Code
312 status collapsed
313
314 \begin_layout Plain Layout
315 LyXDir
316 \end_layout
317
318 \end_inset
319
320 と呼び、後者を
321 \begin_inset Flex MenuItem
322 status collapsed
323
324 \begin_layout Plain Layout
325 UserDir
326 \end_layout
327
328 \end_inset
329
330 と呼ぶことにします。
331 \end_layout
332
333 \begin_layout Section
334 \begin_inset Flex Code
335 status collapsed
336
337 \begin_layout Plain Layout
338 LyXDir
339 \end_layout
340
341 \end_inset
342
343 にはなにがあるの?
344 \end_layout
345
346 \begin_layout Standard
347 \begin_inset Flex Code
348 status collapsed
349
350 \begin_layout Plain Layout
351 LyXDir
352 \end_layout
353
354 \end_inset
355
356 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
357 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
358 内の
359 \begin_inset Flex MenuItem
360 status collapsed
361
362 \begin_layout Plain Layout
363 ツール\SpecialChar menuseparator
364 設定
365 \end_layout
366
367 \end_inset
368
369 ダイアログから変更することができます。\SpecialChar LyX
370 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
371 の多くの内部動作は、
372 \begin_inset Flex Code
373 status collapsed
374
375 \begin_layout Plain Layout
376 LyXDir
377 \end_layout
378
379 \end_inset
380
381 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
382 \end_layout
383
384 \begin_layout Subsection
385 自動的に生成されるファイル
386 \end_layout
387
388 \begin_layout Standard
389 \begin_inset Flex MenuItem
390 status collapsed
391
392 \begin_layout Plain Layout
393 UserDir
394 \end_layout
395
396 \end_inset
397
398 にある各ファイルは、\SpecialChar LyX
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 lyxrc.defaults
410 \end_layout
411
412 \end_inset
413
414  このファイルには、様々な既定コマンドが置かれています。
415 \end_layout
416
417 \begin_layout Labeling
418 \labelwidthstring 00.00.0000
419 \begin_inset Flex Code
420 status collapsed
421
422 \begin_layout Plain Layout
423 packages.lst
424 \end_layout
425
426 \end_inset
427
428  このファイルには、\SpecialChar LyX
429 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
430 プログラム自体には使用されていませんが、抽出された情報その他は、
431 \begin_inset Flex MenuItem
432 status collapsed
433
434 \begin_layout Plain Layout
435 ヘルプ\SpecialChar menuseparator
436 LaT
437 \begin_inset ERT
438 status collapsed
439
440 \begin_layout Plain Layout
441
442 {}
443 \end_layout
444
445 \end_inset
446
447 eXの設定
448 \end_layout
449
450 \end_inset
451
452 で見ることができます。
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 textclass.lst
462 \end_layout
463
464 \end_inset
465
466  ユーザの
467 \begin_inset Flex Code
468 status collapsed
469
470 \begin_layout Plain Layout
471 Plain L
472 \end_layout
473
474 \end_inset
475
476 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
477 文書クラスおよびその説明の一覧です。
478 \end_layout
479
480 \begin_layout Labeling
481 \labelwidthstring 00.00.0000
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 lyxmodules.lst
487 \end_layout
488
489 \end_inset
490
491  ユーザの
492 \begin_inset Flex Code
493 status collapsed
494
495 \begin_layout Plain Layout
496 layout/
497 \end_layout
498
499 \end_inset
500
501 ディレクトリで検出されたレイアウトモジュールの一覧です。
502 \end_layout
503
504 \begin_layout Labeling
505 \labelwidthstring 00.00.0000
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 *files.lst
511 \end_layout
512
513 \end_inset
514
515  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
516 関連ファイルの一覧です。
517 \end_layout
518
519 \begin_layout Labeling
520 \labelwidthstring 00.00.0000
521 \begin_inset Flex Code
522 status collapsed
523
524 \begin_layout Plain Layout
525 doc/LaT
526 \begin_inset ERT
527 status collapsed
528
529 \begin_layout Plain Layout
530
531 {}
532 \end_layout
533
534 \end_inset
535
536 eXConfig.lyx
537 \end_layout
538
539 \end_inset
540
541  このファイルは、自動設定中に
542 \begin_inset Flex Code
543 status collapsed
544
545 \begin_layout Plain Layout
546 LaT
547 \begin_inset ERT
548 status collapsed
549
550 \begin_layout Plain Layout
551
552 {}
553 \end_layout
554
555 \end_inset
556
557 eXConfig.lyx.in
558 \end_layout
559
560 \end_inset
561
562 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
563 の設定に関する情報が納められています。
564 \end_layout
565
566 \begin_layout Subsection
567 ディレクトリ
568 \end_layout
569
570 \begin_layout Standard
571 以下の各ディレクトリは、
572 \begin_inset Flex Code
573 status collapsed
574
575 \begin_layout Plain Layout
576 LyXDir
577 \end_layout
578
579 \end_inset
580
581
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 UserDir
587 \end_layout
588
589 \end_inset
590
591 に重複して存在します。特定のファイルが両方の場所にある場合には、
592 \begin_inset Flex Code
593 status collapsed
594
595 \begin_layout Plain Layout
596 UserDir
597 \end_layout
598
599 \end_inset
600
601 の方にあるものが使用されます。
602 \end_layout
603
604 \begin_layout Labeling
605 \labelwidthstring 00.00.0000
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610 bind/
611 \end_layout
612
613 \end_inset
614
615  このディレクトリには、\SpecialChar LyX
616 で使用されるキー割当を定義している、拡張子が
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 .bind
622 \end_layout
623
624 \end_inset
625
626 のファイルが置かれています。
627 \begin_inset Flex Code
628 status collapsed
629
630 \begin_layout Plain Layout
631 $LANG_xxx.bind
632 \end_layout
633
634 \end_inset
635
636 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
637 \end_layout
638
639 \begin_layout Labeling
640 \labelwidthstring 00.00.0000
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 clipart/
646 \end_layout
647
648 \end_inset
649
650  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
651 \end_layout
652
653 \begin_layout Labeling
654 \labelwidthstring 00.00.0000
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 doc/
660 \end_layout
661
662 \end_inset
663
664  このディレクトリには、\SpecialChar LyX
665 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 LaTeXConfig.lyx
671 \end_layout
672
673 \end_inset
674
675 ファイルは特に注目に値します。各国語版のヘルプ文書は、
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 doc/xx
681 \end_layout
682
683 \end_inset
684
685 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
686 \begin_inset CommandInset ref
687 LatexCommand ref
688 reference "cha:LyXの各国語対応"
689
690 \end_inset
691
692 をご覧ください。
693 \end_layout
694
695 \begin_layout Labeling
696 \labelwidthstring 00.00.0000
697 \begin_inset Flex Code
698 status collapsed
699
700 \begin_layout Plain Layout
701 examples/
702 \end_layout
703
704 \end_inset
705
706  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
707 \begin_inset Flex MenuItem
708 status collapsed
709
710 \begin_layout Plain Layout
711 用例
712 \end_layout
713
714 \end_inset
715
716 ボタンを押すと、このディレクトリが表示されます。
717 \end_layout
718
719 \begin_layout Labeling
720 \labelwidthstring 00.00.0000
721 \begin_inset Flex Code
722 status collapsed
723
724 \begin_layout Plain Layout
725 images/
726 \end_layout
727
728 \end_inset
729
730  このディレクトリには、
731 \begin_inset Flex MenuItem
732 status collapsed
733
734 \begin_layout Plain Layout
735 文書
736 \end_layout
737
738 \end_inset
739
740 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
741 を起動したときに現れるバナーも納められています。
742 \end_layout
743
744 \begin_layout Labeling
745 \labelwidthstring 00.00.0000
746 \begin_inset Flex Code
747 status collapsed
748
749 \begin_layout Plain Layout
750 kbd/
751 \end_layout
752
753 \end_inset
754
755  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
756 \begin_inset CommandInset ref
757 LatexCommand ref
758 reference "sec:国際キー配列"
759
760 \end_inset
761
762 をご覧ください。
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 layouts/
772 \end_layout
773
774 \end_inset
775
776  このディレクトリには、
777 \begin_inset CommandInset ref
778 LatexCommand ref
779 reference "cha:新規文書を導入"
780
781 \end_inset
782
783 に述べられているテキストクラスおよびモジュールのファイルが納められています。
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 lyx2lyx
793 \end_layout
794
795 \end_inset
796
797  このディレクトリには、\SpecialChar LyX
798 の各バージョン間の変換に使用される
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 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
833 自身が使用するスクリプトもいくつか収められています。
834 \end_layout
835
836 \begin_layout Labeling
837 \labelwidthstring 00.00.0000
838 \begin_inset Flex Code
839 status collapsed
840
841 \begin_layout Plain Layout
842 templates/
843 \end_layout
844
845 \end_inset
846
847  このディレクトリには、
848 \begin_inset CommandInset ref
849 LatexCommand ref
850 reference "sec:ひな型を作成する"
851
852 \end_inset
853
854 で述べられている標準の\SpecialChar LyX
855 ひな型ファイルが納められています。
856 \end_layout
857
858 \begin_layout Labeling
859 \labelwidthstring 00.00.0000
860 \begin_inset Flex Code
861 status collapsed
862
863 \begin_layout Plain Layout
864 ui/
865 \end_layout
866
867 \end_inset
868
869  このディレクトリには、\SpecialChar LyX
870 の操作画面を定義する拡張子
871 \begin_inset Flex Code
872 status collapsed
873
874 \begin_layout Plain Layout
875 .ui
876 \end_layout
877
878 \end_inset
879
880 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
881 \end_layout
882
883 \begin_layout Subsection
884 変更を加えない方がよいファイル
885 \end_layout
886
887 \begin_layout Standard
888 これらのファイルは\SpecialChar LyX
889 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
890 \end_layout
891
892 \begin_layout Labeling
893 \labelwidthstring 00.00.0000
894 \begin_inset Flex Code
895 status collapsed
896
897 \begin_layout Plain Layout
898 CREDITS
899 \end_layout
900
901 \end_inset
902
903  このファイルは、\SpecialChar LyX
904 開発陣の名簿です。この内容は、メニュー項目
905 \begin_inset Flex MenuItem
906 status collapsed
907
908 \begin_layout Plain Layout
909 ヘルプ\SpecialChar menuseparator
910 LyXについて
911 \end_layout
912
913 \end_inset
914
915 で表示されます。
916 \end_layout
917
918 \begin_layout Labeling
919 \labelwidthstring 00.00.0000
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924 chkconfig.ltx
925 \end_layout
926
927 \end_inset
928
929  これは、自動設定プロセスによって使用される\SpecialChar LaTeX
930 スクリプトです。直接実行しないでください。
931 \end_layout
932
933 \begin_layout Labeling
934 \labelwidthstring 00.00.0000
935 \begin_inset Flex Code
936 status collapsed
937
938 \begin_layout Plain Layout
939 configure.py
940 \end_layout
941
942 \end_inset
943
944  これは、\SpecialChar LyX
945 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
946 \end_layout
947
948 \begin_layout Subsection
949 ひとこと必要なファイル群
950 \end_layout
951
952 \begin_layout Labeling
953 \labelwidthstring 00.00.0000
954 \begin_inset Flex Code
955 status collapsed
956
957 \begin_layout Plain Layout
958 encodings
959 \end_layout
960
961 \end_inset
962
963  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
964 \end_layout
965
966 \begin_layout Labeling
967 \labelwidthstring 00.00.0000
968 \begin_inset Flex Code
969 status collapsed
970
971 \begin_layout Plain Layout
972 external_templates
973 \end_layout
974
975 \end_inset
976
977  このファイルには、新しく導入された
978 \begin_inset Flex MenuItem
979 status collapsed
980
981 \begin_layout Plain Layout
982 外用ひな型
983 \end_layout
984
985 \end_inset
986
987 機能で使用できるひな型が載っています。
988 \begin_inset CommandInset ref
989 LatexCommand ref
990 reference "chap:外部素材を取り込む"
991
992 \end_inset
993
994 を参照のこと。
995 \end_layout
996
997 \begin_layout Labeling
998 \labelwidthstring 00.00.0000
999 \begin_inset Flex Code
1000 status collapsed
1001
1002 \begin_layout Plain Layout
1003 languages
1004 \end_layout
1005
1006 \end_inset
1007
1008  このファイルには、現在\SpecialChar LyX
1009 がサポートしている言語の全一覧が載っています。
1010 \end_layout
1011
1012 \begin_layout Labeling
1013 \labelwidthstring 00.00.0000
1014 \begin_inset Flex Code
1015 status collapsed
1016
1017 \begin_layout Plain Layout
1018 latexfonts
1019 \end_layout
1020
1021 \end_inset
1022
1023  サポートされているフォントに関する情報が掲載されています。
1024 \end_layout
1025
1026 \begin_layout Labeling
1027 \labelwidthstring 00.00.0000
1028 \begin_inset Flex Code
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 layouttranslations
1033 \end_layout
1034
1035 \end_inset
1036
1037  このファイルは、国際化された段落様式の翻訳が収録されています(
1038 \begin_inset CommandInset ref
1039 LatexCommand ref
1040 reference "subsec:段落様式の国際化"
1041
1042 \end_inset
1043
1044 参照)。
1045 \end_layout
1046
1047 \begin_layout Labeling
1048 \labelwidthstring 00.00.0000
1049 \begin_inset Flex Code
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 unicodesymbols
1054 \end_layout
1055
1056 \end_inset
1057
1058  このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1059 が\SpecialChar LaTeX
1060 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1061 \end_layout
1062
1063 \begin_layout Section
1064 ユーザのローカル設定ディレクトリ
1065 \end_layout
1066
1067 \begin_layout Standard
1068 \SpecialChar LyX
1069 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1070 の設定を変更したいと思うかもしれません。
1071 \begin_inset Flex Code
1072 status collapsed
1073
1074 \begin_layout Plain Layout
1075 UserDir
1076 \end_layout
1077
1078 \end_inset
1079
1080 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1081 \begin_inset Flex MenuItem
1082 status collapsed
1083
1084 \begin_layout Plain Layout
1085 ヘルプ\SpecialChar menuseparator
1086 LyXについて
1087 \end_layout
1088
1089 \end_inset
1090
1091 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1092 \begin_inset Flex Code
1093 status collapsed
1094
1095 \begin_layout Plain Layout
1096 LyXDir
1097 \end_layout
1098
1099 \end_inset
1100
1101 のミラーとして使用されており、これは
1102 \begin_inset Flex Code
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106 UserDir
1107 \end_layout
1108
1109 \end_inset
1110
1111 内のすべてのファイルが、
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116 LyXDir
1117 \end_layout
1118
1119 \end_inset
1120
1121 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1122 \end_layout
1123
1124 \begin_layout Standard
1125 わかりやすくするために、いくつか例を挙げましょう。
1126 \end_layout
1127
1128 \begin_layout Itemize
1129 \begin_inset Flex MenuItem
1130 status collapsed
1131
1132 \begin_layout Plain Layout
1133 ツール\SpecialChar menuseparator
1134 設定
1135 \end_layout
1136
1137 \end_inset
1138
1139 ダイアログで設定されるユーザ設定は、
1140 \begin_inset Flex Code
1141 status collapsed
1142
1143 \begin_layout Plain Layout
1144 UserDir
1145 \end_layout
1146
1147 \end_inset
1148
1149 中の
1150 \begin_inset Flex Code
1151 status collapsed
1152
1153 \begin_layout Plain Layout
1154 preferences
1155 \end_layout
1156
1157 \end_inset
1158
1159 ファイルに保存されます。
1160 \end_layout
1161
1162 \begin_layout Itemize
1163 \begin_inset Flex MenuItem
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 ツール\SpecialChar menuseparator
1168 環境構成
1169 \end_layout
1170
1171 \end_inset
1172
1173 を使用して環境構成を行うと、\SpecialChar LyX
1174
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179 configure.py
1180 \end_layout
1181
1182 \end_inset
1183
1184 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1185 \begin_inset Flex Code
1186 status collapsed
1187
1188 \begin_layout Plain Layout
1189 UserDir/layouts
1190 \end_layout
1191
1192 \end_inset
1193
1194 にご自身で追加したテキストファイルは、
1195 \begin_inset Flex MenuItem
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 文書\SpecialChar menuseparator
1200 設定
1201 \end_layout
1202
1203 \end_inset
1204
1205 ダイアログのクラス一覧に表示されるようになることを意味します。
1206 \end_layout
1207
1208 \begin_layout Itemize
1209 たとえば、\SpecialChar LyX
1210 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1211 れらのファイルを
1212 \begin_inset Flex Code
1213 status collapsed
1214
1215 \begin_layout Plain Layout
1216 UserDir/doc/
1217 \end_layout
1218
1219 \end_inset
1220
1221 ディレクトリにコピーすれば、
1222 \begin_inset Flex MenuItem
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 ヘルプ
1227 \end_layout
1228
1229 \end_inset
1230
1231 メニュー項目はこれらを開くようになります!
1232 \end_layout
1233
1234 \begin_layout Section
1235 \SpecialChar LyX
1236 を複数の設定を使って実行するには
1237 \end_layout
1238
1239 \begin_layout Standard
1240 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1241 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1242 どのディレクトリを使用するか指定するのです。
1243 \end_layout
1244
1245 \begin_layout Standard
1246 \SpecialChar LyX
1247 をコマンドラインスイッチ
1248 \begin_inset Flex Code
1249 status collapsed
1250
1251 \begin_layout Plain Layout
1252 -userdir
1253 \end_layout
1254
1255 \end_inset
1256
1257 P
1258 \emph on
1259 <ディレクトリ名>
1260 \emph default
1261 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1262
1263 \begin_inset Flex Code
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 -userdir
1268 \end_layout
1269
1270 \end_inset
1271
1272 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1273 は、初めて\SpecialChar LyX
1274 を実行したときに既定ディレクトリを訊い
1275 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1276 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1277 \begin_inset Flex Code
1278 status collapsed
1279
1280 \begin_layout Plain Layout
1281 LYX_USERDIR_20x
1282 \end_layout
1283
1284 \end_inset
1285
1286 を特定の値に設定しても、全く同じ効果があります。
1287 \end_layout
1288
1289 \begin_layout Standard
1290 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1291 \begin_inset Flex Code
1292 status collapsed
1293
1294 \begin_layout Plain Layout
1295 NewUserDir/layouts
1296 \end_layout
1297
1298 \end_inset
1299
1300 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1301 クを使用してください。\SpecialChar LyX
1302 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1303 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1304 \begin_inset Flex Code
1305 status collapsed
1306
1307 \begin_layout Plain Layout
1308 doc/
1309 \end_layout
1310
1311 \end_inset
1312
1313 サブディレクトリには、設定スクリプト(
1314 \begin_inset Flex MenuItem
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 ツール\SpecialChar menuseparator
1319 環境構成
1320 \end_layout
1321
1322 \end_inset
1323
1324 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1325 \end_layout
1326
1327 \begin_layout Chapter
1328 設定ダイアログ
1329 \end_layout
1330
1331 \begin_layout Standard
1332 設定ダイアログのオプションのすべては、
1333 \emph on
1334 ユーザーの手引き
1335 \emph default
1336 の付録
1337 \emph on
1338 設定ダイアログ
1339 \emph default
1340 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1341 \end_layout
1342
1343 \begin_layout Section
1344 ファイル形式
1345 \begin_inset CommandInset label
1346 LatexCommand label
1347 name "sec:ファイル形式"
1348
1349 \end_inset
1350
1351
1352 \end_layout
1353
1354 \begin_layout Standard
1355 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1356 \begin_inset Flex MenuItem
1357 status collapsed
1358
1359 \begin_layout Plain Layout
1360 ツール\SpecialChar menuseparator
1361 設定
1362 \end_layout
1363
1364 \end_inset
1365
1366 ダイアログを開いてください。
1367 \begin_inset Flex MenuItem
1368 status collapsed
1369
1370 \begin_layout Plain Layout
1371 ファイル処理\SpecialChar menuseparator
1372 ファイル形式
1373 \end_layout
1374
1375 \end_inset
1376
1377 の中で
1378 \begin_inset Flex MenuItem
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 新規\SpecialChar ldots
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 フィールドは、GUI中で形式を認識するために用いられる名称です。
1399 \begin_inset Flex MenuItem
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 短縮名
1404 \end_layout
1405
1406 \end_inset
1407
1408 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1409 \begin_inset Flex MenuItem
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413 捷径
1414 \end_layout
1415
1416 \end_inset
1417
1418 フィールドは、メニュー中で
1419 \begin_inset Flex Ruby
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423 捷径
1424 \begin_inset Argument post:1
1425 status collapsed
1426
1427 \begin_layout Plain Layout
1428 ショートカット
1429 \end_layout
1430
1431 \end_inset
1432
1433
1434 \end_layout
1435
1436 \end_inset
1437
1438 を提供するのに使用されます(たとえば、
1439 \begin_inset Flex MenuItem
1440 status collapsed
1441
1442 \begin_layout Plain Layout
1443 Ctrl+D
1444 \end_layout
1445
1446 \end_inset
1447
1448 を押すと
1449 \begin_inset Flex MenuItem
1450 status collapsed
1451
1452 \begin_layout Plain Layout
1453 表示\SpecialChar menuseparator
1454 DVI
1455 \end_layout
1456
1457 \end_inset
1458
1459 となります)。
1460 \end_layout
1461
1462 \begin_layout Standard
1463 形式には、
1464 \begin_inset Flex MenuItem
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468 閲覧プログラム
1469 \end_layout
1470
1471 \end_inset
1472
1473
1474 \begin_inset Flex MenuItem
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 編集プログラム
1479 \end_layout
1480
1481 \end_inset
1482
1483 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1484 \begin_inset Flex MenuItem
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 Ghostview
1489 \end_layout
1490
1491 \end_inset
1492
1493 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1494 いることができます。この閲覧プログラムは、\SpecialChar LyX
1495 中で画像を閲覧したり
1496 \begin_inset Flex MenuItem
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 表示
1501 \end_layout
1502
1503 \end_inset
1504
1505 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1506 \begin_inset Flex MenuItem
1507 status collapsed
1508
1509 \begin_layout Plain Layout
1510 外部で編集
1511 \end_layout
1512
1513 \end_inset
1514
1515 を選択したときに起動します。
1516 \end_layout
1517
1518 \begin_layout Standard
1519 ファイル形式の
1520 \begin_inset Flex MenuItem
1521 status collapsed
1522
1523 \begin_layout Plain Layout
1524 MIME
1525 \end_layout
1526
1527 \end_inset
1528
1529 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1530 ます。重要なファイル形式のうちには、
1531 \begin_inset CommandInset href
1532 LatexCommand href
1533 name "IANA"
1534 target "http://www.iana.org/assignments/media-types/"
1535
1536 \end_inset
1537
1538 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1539 は、
1540 \begin_inset CommandInset href
1541 LatexCommand href
1542 name "freedesktop.org"
1543 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1544
1545 \end_inset
1546
1547 で指定されているMIME型拡張表を使用しています。
1548 \end_layout
1549
1550 \begin_layout Standard
1551 \begin_inset Flex MenuItem
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555 文書形式
1556 \end_layout
1557
1558 \end_inset
1559
1560 オプションは、\SpecialChar LyX
1561 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1562 \begin_inset CommandInset ref
1563 LatexCommand ref
1564 reference "sec:変換子"
1565
1566 \end_inset
1567
1568 節を参照)、この形式が
1569 \begin_inset Flex MenuItem
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573 ファイル\SpecialChar menuseparator
1574 書き出し
1575 \end_layout
1576
1577 \end_inset
1578
1579
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 表示
1585 \end_layout
1586
1587 \end_inset
1588
1589 footlabel Label color for footnotす。
1590 \begin_inset Flex Code
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 png
1595 \end_layout
1596
1597 \end_inset
1598
1599 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1600 \begin_inset Flex Code
1601 status collapsed
1602
1603 \begin_layout Plain Layout
1604 pdf
1605 \end_layout
1606
1607 \end_inset
1608
1609 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1610 \end_layout
1611
1612 \begin_layout Standard
1613 \begin_inset Flex MenuItem
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 ベクター画像形式
1618 \end_layout
1619
1620 \end_inset
1621
1622 オプションは、\SpecialChar LyX
1623 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1624 \begin_inset Flex MenuItem
1625 status collapsed
1626
1627 \begin_layout Plain Layout
1628 pdflatex
1629 \end_layout
1630
1631 \end_inset
1632
1633 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1634 \begin_inset Flex MenuItem
1635 status collapsed
1636
1637 \begin_layout Plain Layout
1638 pdflatex
1639 \end_layout
1640
1641 \end_inset
1642
1643 は、
1644 \begin_inset Flex MenuItem
1645 status collapsed
1646
1647 \begin_layout Plain Layout
1648 pdf
1649 \end_layout
1650
1651 \end_inset
1652
1653
1654 \begin_inset Flex MenuItem
1655 status collapsed
1656
1657 \begin_layout Plain Layout
1658 png
1659 \end_layout
1660
1661 \end_inset
1662
1663
1664 \begin_inset Flex MenuItem
1665 status collapsed
1666
1667 \begin_layout Plain Layout
1668 Des
1669 \end_layout
1670
1671 \end_inset
1672
1673 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1674 \begin_inset Flex MenuItem
1675 status collapsed
1676
1677 \begin_layout Plain Layout
1678 pdf
1679 \end_layout
1680
1681 \end_inset
1682
1683
1684 \begin_inset Flex MenuItem
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 png
1689 \end_layout
1690
1691 \end_inset
1692
1693
1694 \begin_inset Flex MenuItem
1695 status collapsed
1696
1697 \begin_layout Plain Layout
1698 jpg
1699 \end_layout
1700
1701 \end_inset
1702
1703 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1704 \begin_inset Flex MenuItem
1705 status collapsed
1706
1707 \begin_layout Plain Layout
1708 pdf
1709 \end_layout
1710
1711 \end_inset
1712
1713 に変換され、そうでない場合には
1714 \begin_inset Flex MenuItem
1715 status collapsed
1716
1717 \begin_layout Plain Layout
1718 png
1719 \end_layout
1720
1721 \end_inset
1722
1723 に変換されます。
1724 \end_layout
1725
1726 \begin_layout Section
1727 複写子
1728 \end_layout
1729
1730 \begin_layout Standard
1731 形式の変換はすべて、\SpecialChar LyX
1732 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1733 \begin_inset Foot
1734 status collapsed
1735
1736 \begin_layout Plain Layout
1737 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1738 あります。
1739 \end_layout
1740
1741 \end_inset
1742
1743 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1744 \end_layout
1745
1746 \begin_layout Standard
1747 複写子の定義においては、以下の4つの変数を用いることができます。
1748 \end_layout
1749
1750 \begin_layout Labeling
1751 \labelwidthstring 00.00.0000
1752 \begin_inset Flex Code
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 $$s
1757 \end_layout
1758
1759 \end_inset
1760
1761  \SpecialChar LyX
1762 のシステムディレクトリ(例:
1763 \begin_inset Flex MenuItem
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 /usr/share/lyx
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \end_layout
1774
1775 \begin_layout Labeling
1776 \labelwidthstring 00.00.0000
1777 \begin_inset Flex Code
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 $$i
1782 \end_layout
1783
1784 \end_inset
1785
1786  入力ファイル
1787 \end_layout
1788
1789 \begin_layout Labeling
1790 \labelwidthstring 00.00.0000
1791 \begin_inset Flex Code
1792 status collapsed
1793
1794 \begin_layout Plain Layout
1795 $$o
1796 \end_layout
1797
1798 \end_inset
1799
1800  出力ファイル
1801 \end_layout
1802
1803 \begin_layout Labeling
1804 \labelwidthstring 00.00.0000
1805 \begin_inset Flex Code
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 $$b
1810 \end_layout
1811
1812 \end_inset
1813
1814  \SpecialChar LyX
1815 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1816 \end_layout
1817
1818 \begin_layout Labeling
1819 \labelwidthstring 00.00.0000
1820 \begin_inset Flex Code
1821 status collapsed
1822
1823 \begin_layout Plain Layout
1824 $$p
1825 \end_layout
1826
1827 \end_inset
1828
1829  \SpecialChar LyX
1830 一時ディレクトリのフルパス名
1831 \end_layout
1832
1833 \begin_layout Labeling
1834 \labelwidthstring 00.00.0000
1835 \begin_inset Flex Code
1836 status collapsed
1837
1838 \begin_layout Plain Layout
1839 $$r
1840 \end_layout
1841
1842 \end_inset
1843
1844  処理されている元の\SpecialChar LyX
1845 ファイルのフルパス名
1846 \end_layout
1847
1848 \begin_layout Labeling
1849 \labelwidthstring 00.00.0000
1850 \begin_inset Flex Code
1851 status collapsed
1852
1853 \begin_layout Plain Layout
1854 $$f
1855 \end_layout
1856
1857 \end_inset
1858
1859  \SpecialChar LyX
1860 ファイルのファイル名(ディレクトリパスなし)
1861 \end_layout
1862
1863 \begin_layout Labeling
1864 \labelwidthstring 00.00.0000
1865 \begin_inset Flex Code
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 $$l
1870 \end_layout
1871
1872 \end_inset
1873
1874  「\SpecialChar LaTeX
1875 名」
1876 \end_layout
1877
1878 \begin_layout Standard
1879 最後の変数は、\SpecialChar LaTeX
1880
1881 \series bold
1882
1883 \backslash
1884 include
1885 \series default
1886 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1887 \end_layout
1888
1889 \begin_layout Standard
1890 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1891 \begin_inset Flex Code
1892 status collapsed
1893
1894 \begin_layout Plain Layout
1895 /home/you/pdf/
1896 \end_layout
1897
1898 \end_inset
1899
1900 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1901 \end_layout
1902
1903 \begin_layout Standard
1904 \begin_inset listings
1905 inline false
1906 status open
1907
1908 \begin_layout Plain Layout
1909
1910 #!/bin/bash
1911 \end_layout
1912
1913 \begin_layout Plain Layout
1914
1915 FROMFILE=$1
1916 \end_layout
1917
1918 \begin_layout Plain Layout
1919
1920 TOFILE=`basename $2`
1921 \end_layout
1922
1923 \begin_layout Plain Layout
1924
1925 DescriptionE /home/you/pdf/$TOFILE
1926 \end_layout
1927
1928 \end_inset
1929
1930 これを、例えば
1931 \begin_inset Flex Code
1932 status collapsed
1933
1934 \begin_layout Plain Layout
1935 /home/you/.lyx/scripts/pdfcopier.sh
1936 \end_layout
1937
1938 \end_inset
1939
1940 のような、自身のローカル\SpecialChar LyX
1941 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1942 \begin_inset Flex MenuItem
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 ツール\SpecialChar menuseparator
1947 設定
1948 \end_layout
1949
1950 \end_inset
1951
1952 ダイアログの
1953 \begin_inset Flex MenuItem
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 ファイル処理\SpecialChar menuseparator
1958 ファイル形式
1959 \end_layout
1960
1961 \end_inset
1962
1963 の中で、
1964 \begin_inset Flex MenuItem
1965 status collapsed
1966
1967 \begin_layout Plain Layout
1968 PDF(pdflatex)
1969 \end_layout
1970
1971 \end_inset
1972
1973 形式—あるいは他のPDF形式のうちどれか—を選択し、
1974 \begin_inset Flex MenuItem
1975 status collapsed
1976
1977 \begin_layout Plain Layout
1978 複写子
1979 \end_layout
1980
1981 \end_inset
1982
1983 フィールドに
1984 \begin_inset Flex Code
1985 status collapsed
1986
1987 \begin_layout Plain Layout
1988 pdfcopier.sh $$i $$o
1989 \end_layout
1990
1991 \end_inset
1992
1993 と入力します。
1994 \end_layout
1995
1996 \begin_layout Standard
1997 複写子は、\SpecialChar LyX
1998 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
1999 は自動的に
2000 \begin_inset Flex MenuItem
2001 status collapsed
2002
2003 \begin_layout Plain Layout
2004 HTML
2005 \end_layout
2006
2007 \end_inset
2008
2009 形式と
2010 \begin_inset Flex MenuItem
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014 HTML
2015 \begin_inset space ~
2016 \end_inset
2017
2018 (MS Word)
2019 \end_layout
2020
2021 \end_inset
2022
2023 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2024 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2025 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2026 \begin_inset Foot
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2031 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2032 \begin_inset Flex MenuItem
2033 status collapsed
2034
2035 \begin_layout Plain Layout
2036 L
2037 \begin_inset ERT
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041
2042 {}
2043 \end_layout
2044
2045 \end_inset
2046
2047 yXconv
2048 \end_layout
2049
2050 \end_inset
2051
2052 」となっているので、
2053 \begin_inset Flex MenuItem
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057 /path/to/filename.lyx
2058 \end_layout
2059
2060 \end_inset
2061
2062 から生成されたHTMLファイルは、
2063 \begin_inset Flex MenuItem
2064 status collapsed
2065
2066 \begin_layout Plain Layout
2067 /path/to/filename.html.L
2068 \begin_inset ERT
2069 status collapsed
2070
2071 \begin_layout Plain Layout
2072
2073 {}
2074 \end_layout
2075
2076 \end_inset
2077
2078 yXconv
2079 \end_layout
2080
2081 \end_inset
2082
2083 となります。.
2084  
2085 \end_layout
2086
2087 \end_inset
2088
2089
2090 \end_layout
2091
2092 \begin_layout Section
2093 変換子
2094 \begin_inset CommandInset label
2095 LatexCommand label
2096 name "sec:変換子"
2097
2098 \end_inset
2099
2100
2101 \end_layout
2102
2103 \begin_layout Standard
2104 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2105 \begin_inset Flex MenuItem
2106 status collapsed
2107
2108 \begin_layout Plain Layout
2109 ツール\SpecialChar menuseparator
2110 設定\SpecialChar menuseparator
2111 ファイル処理\SpecialChar menuseparator
2112 変換子
2113 \end_layout
2114
2115 \end_inset
2116
2117 ダイアログで行います。
2118 \end_layout
2119
2120 \begin_layout Standard
2121 新規に変換子を定義するには、ドロップダウンリストから
2122 \begin_inset Flex MenuItem
2123 status collapsed
2124
2125 \begin_layout Plain Layout
2126 変換元の形式
2127 \end_layout
2128
2129 \end_inset
2130
2131
2132 \begin_inset Flex MenuItem
2133 status collapsed
2134
2135 \begin_layout Plain Layout
2136 変換先の形式
2137 \end_layout
2138
2139 \end_inset
2140
2141 を選択し、変換に必要なコマンドを入力してから
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 $$s
2161 \end_layout
2162
2163 \end_inset
2164
2165  \SpecialChar LyX
2166 システムディレクトリ
2167 \end_layout
2168
2169 \begin_layout Labeling
2170 \labelwidthstring 00.00.0000
2171 \begin_inset Flex Code
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 $$i
2176 \end_layout
2177
2178 \end_inset
2179
2180  入力ファイル
2181 \end_layout
2182
2183 \begin_layout Labeling
2184 \labelwidthstring 00.00.0000
2185 \begin_inset Flex Code
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 $$o
2190 \end_layout
2191
2192 \end_inset
2193
2194  出力ファイル
2195 \end_layout
2196
2197 \begin_layout Labeling
2198 \labelwidthstring 00.00.0000
2199 \begin_inset Flex Code
2200 status collapsed
2201
2202 \begin_layout Plain Layout
2203 $$b
2204 \end_layout
2205
2206 \end_inset
2207
2208  入力ファイルのベースファイル名(拡張子をとった部分)
2209 \end_layout
2210
2211 \begin_layout Labeling
2212 \labelwidthstring 00.00.0000
2213 \begin_inset Flex Code
2214 status collapsed
2215
2216 \begin_layout Plain Layout
2217 $$p
2218 \end_layout
2219
2220 \end_inset
2221
2222  入力ファイルのパス
2223 \end_layout
2224
2225 \begin_layout Labeling
2226 \labelwidthstring 00.00.0000
2227 \begin_inset Flex Code
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 $$r
2232 \end_layout
2233
2234 \end_inset
2235
2236  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2237 \end_layout
2238
2239 \begin_layout Labeling
2240 \labelwidthstring 00.00.0000
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 $$e
2246 \end_layout
2247
2248 \end_inset
2249
2250  文書エンコーディングのiconv名
2251 \end_layout
2252
2253 \begin_layout Standard
2254 \begin_inset Flex MenuItem
2255 status collapsed
2256
2257 \begin_layout Plain Layout
2258 追加フラグ
2259 \end_layout
2260
2261 \end_inset
2262
2263 フィールドには、以下のフラグをコンマで区切って入力することができます。
2264 \end_layout
2265
2266 \begin_layout Labeling
2267 \labelwidthstring 00.00.0000
2268 \begin_inset Flex Code
2269 status collapsed
2270
2271 \begin_layout Plain Layout
2272 latex
2273 \end_layout
2274
2275 \end_inset
2276
2277  この変換子が\SpecialChar LaTeX
2278 の一種を実行することを示します。これによって、\SpecialChar LyX
2279 の\SpecialChar LaTeX
2280 エラーログに記録を残せるようになります。
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 needaux
2290 \end_layout
2291
2292 \end_inset
2293
2294  変換に\SpecialChar LaTeX
2295
2296 \begin_inset Flex MenuItem
2297 status collapsed
2298
2299 \begin_layout Plain Layout
2300 .aux
2301 \end_layout
2302
2303 \end_inset
2304
2305 ファイルが必要であることを示します。
2306 \end_layout
2307
2308 \begin_layout Labeling
2309 \labelwidthstring 00.00.0000
2310 \begin_inset Flex Code
2311 status collapsed
2312
2313 \begin_layout Plain Layout
2314 nice
2315 \end_layout
2316
2317 \end_inset
2318
2319  バックエンドからの
2320 \begin_inset Quotes erd
2321 \end_inset
2322
2323 nice
2324 \begin_inset Quotes erd
2325 \end_inset
2326
2327 なファイル、つまり\SpecialChar LyX
2328 が書き出す\SpecialChar LaTeX
2329 ファイルのように、
2330 \begin_inset Flex Code
2331 status open
2332
2333 \begin_layout Plain Layout
2334 input@path
2335 \end_layout
2336
2337 \end_inset
2338
2339 のない\SpecialChar LaTeX
2340 ファイルを必要とします。
2341 \end_layout
2342
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Flex Code
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 xml
2350 \end_layout
2351
2352 \end_inset
2353
2354  出力がXMLであることを示します。
2355 \end_layout
2356
2357 \begin_layout Standard
2358 以下の3つのフラグは 
2359 \begin_inset Flex MenuItem
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363 key
2364 \begin_inset space ~
2365 \end_inset
2366
2367 =
2368 \begin_inset space ~
2369 \end_inset
2370
2371 value
2372 \end_layout
2373
2374 \end_inset
2375
2376 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2377 \end_layout
2378
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Flex Code
2382 status collapsed
2383
2384 \begin_layout Plain Layout
2385 parselog
2386 \end_layout
2387
2388 \end_inset
2389
2390  これを指定すると、変換子の標準エラーが
2391 \begin_inset Flex Code
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395 infile.out
2396 \end_layout
2397
2398 \end_inset
2399
2400 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2401 \begin_inset Flex Code
2402 status collapsed
2403
2404 \begin_layout Plain Layout
2405 script < infile.out > infile.log
2406 \end_layout
2407
2408 \end_inset
2409
2410 の形で実行されるようになります。引数には
2411 \begin_inset Flex Code
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 $$s
2416 \end_layout
2417
2418 \end_inset
2419
2420 を指定することができます。
2421 \end_layout
2422
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 resultdir
2430 \end_layout
2431
2432 \end_inset
2433
2434  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2435 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2436 ピーします。引数には、
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 $$b
2442 \end_layout
2443
2444 \end_inset
2445
2446 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2447 \begin_inset Newline newline
2448 \end_inset
2449
2450 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2451 \end_layout
2452
2453 \begin_layout Labeling
2454 \labelwidthstring 00.00.0000
2455 \begin_inset Flex Code
2456 status collapsed
2457
2458 \begin_layout Plain Layout
2459 resultfile
2460 \end_layout
2461
2462 \end_inset
2463
2464  これは出力ファイル名を指定するもので、
2465 \begin_inset Flex Code
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 $$b
2470 \end_layout
2471
2472 \end_inset
2473
2474 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2475 \end_layout
2476
2477 \begin_layout Standard
2478 最後の3つは、\SpecialChar LyX
2479 とともに導入される変換子には、現在いずれも使用されておりません。
2480 \end_layout
2481
2482 \begin_layout Standard
2483 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2484 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2485 はPostScrip
2486 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2487 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2488 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2489 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2490 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2491 設定は、\SpecialChar LaTeX
2492 からPDFへ変換するのに、以下の3つの方法を
2493 用意しています。
2494 \end_layout
2495
2496 \begin_layout Enumerate
2497 直接
2498 \begin_inset Flex MenuItem
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 pdflatex
2503 \end_layout
2504
2505 \end_inset
2506
2507 を使用するもの
2508 \end_layout
2509
2510 \begin_layout Enumerate
2511 (DVIと)PostScriptを経由して
2512 \begin_inset Flex MenuItem
2513 status collapsed
2514
2515 \begin_layout Plain Layout
2516 ps2pdf
2517 \end_layout
2518
2519 \end_inset
2520
2521 を使用するもの
2522 \end_layout
2523
2524 \begin_layout Enumerate
2525 DVI経由で
2526 \begin_inset Flex MenuItem
2527 status collapsed
2528
2529 \begin_layout Plain Layout
2530 dvipdfm
2531 \end_layout
2532
2533 \end_inset
2534
2535 を使用するもの
2536 \end_layout
2537
2538 \begin_layout Enumerate
2539 直接
2540 \begin_inset Flex MenuItem
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 Xe\SpecialChar TeX
2545
2546 \end_layout
2547
2548 \end_inset
2549
2550 を使用するもの
2551 \end_layout
2552
2553 \begin_layout Enumerate
2554 直接
2555 \begin_inset Flex MenuItem
2556 status collapsed
2557
2558 \begin_layout Plain Layout
2559 Lua\SpecialChar TeX
2560
2561 \end_layout
2562
2563 \end_inset
2564
2565 を使用するもの
2566 \end_layout
2567
2568 \begin_layout Standard
2569 このように代替連鎖を定義するには、第
2570 \begin_inset CommandInset ref
2571 LatexCommand ref
2572 reference "sec:ファイル形式"
2573
2574 \end_inset
2575
2576 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2577 \begin_inset Flex MenuItem
2578 status collapsed
2579
2580 \begin_layout Plain Layout
2581 pdf
2582 \end_layout
2583
2584 \end_inset
2585
2586 (
2587 \begin_inset Flex MenuItem
2588 status collapsed
2589
2590 \begin_layout Plain Layout
2591 ps2pdf
2592 \end_layout
2593
2594 \end_inset
2595
2596 用)・
2597 \begin_inset Flex MenuItem
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601 pdf2
2602 \end_layout
2603
2604 \end_inset
2605
2606 (
2607 \begin_inset Flex MenuItem
2608 status collapsed
2609
2610 \begin_layout Plain Layout
2611 pdflatex
2612 \end_layout
2613
2614 \end_inset
2615
2616 用)・
2617 \begin_inset Flex MenuItem
2618 status collapsed
2619
2620 \begin_layout Plain Layout
2621 pdf3
2622 \end_layout
2623
2624 \end_inset
2625
2626 (
2627 \begin_inset Flex MenuItem
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 dvipdfm
2632 \end_layout
2633
2634 \end_inset
2635
2636 用)・
2637 \begin_inset Flex MenuItem
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641 pdf4
2642 \end_layout
2643
2644 \end_inset
2645
2646 (
2647 \begin_inset Flex MenuItem
2648 status collapsed
2649
2650 \begin_layout Plain Layout
2651 Xe\SpecialChar TeX
2652
2653 \end_layout
2654
2655 \end_inset
2656
2657 用)・
2658 \begin_inset Flex MenuItem
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 pdf5
2663 \end_layout
2664
2665 \end_inset
2666
2667 (
2668 \begin_inset Flex MenuItem
2669 status collapsed
2670
2671 \begin_layout Plain Layout
2672 Lua\SpecialChar TeX
2673
2674 \end_layout
2675
2676 \end_inset
2677
2678 用\SpecialChar softhyphen
2679 ) と命名された形式が定義されていて、すべて共通の拡張子
2680 \begin_inset Flex MenuItem
2681 status collapsed
2682
2683 \begin_layout Plain Layout
2684 .pdf
2685 \end_layout
2686
2687 \end_inset
2688
2689 を持ち、上記で言及した各変換方法に対応しています。
2690 \end_layout
2691
2692 \begin_layout Chapter
2693 \SpecialChar LyX
2694 の各国語対応
2695 \begin_inset CommandInset label
2696 LatexCommand label
2697 name "cha:LyXの各国語対応"
2698
2699 \end_inset
2700
2701
2702 \end_layout
2703
2704 \begin_layout Standard
2705 \SpecialChar LyX
2706 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2707 は30言語の翻訳を提供しています。選択した言語は、使用する
2708 \emph on
2709 ロケール
2710 \emph default
2711 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2712 \begin_inset Flex Code
2713 status collapsed
2714
2715 \begin_layout Plain Layout
2716 locale(5)
2717 \end_layout
2718
2719 \end_inset
2720
2721 から見ると良いかもしれません)。
2722 \end_layout
2723
2724 \begin_layout Standard
2725 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2726 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2727 \begin_inset Flex Ruby
2728 status collapsed
2729
2730 \begin_layout Plain Layout
2731 捷径
2732 \begin_inset Argument post:1
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 ショートカット
2737 \end_layout
2738
2739 \end_inset
2740
2741
2742 \end_layout
2743
2744 \end_inset
2745
2746 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2747 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2748 \begin_inset Foot
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2753 コミュニティに報いるたいへん素晴らしい方法です!
2754 \end_layout
2755
2756 \end_inset
2757
2758 —は、\SpecialChar LyX
2759 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2760 \end_layout
2761
2762 \begin_layout Section
2763 \SpecialChar LyX
2764 を翻訳する
2765 \end_layout
2766
2767 \begin_layout Subsection
2768 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2769 \begin_inset Argument 1
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 GUI(テキストメッセージ)を翻訳する
2774 \end_layout
2775
2776 \end_inset
2777
2778
2779 \end_layout
2780
2781 \begin_layout Standard
2782 \SpecialChar LyX
2783 は、操作画面の国際化対応にGNU 
2784 \begin_inset Flex Code
2785 status collapsed
2786
2787 \begin_layout Plain Layout
2788 gettext
2789 \end_layout
2790
2791 \end_inset
2792
2793 ライブラリを使用します。\SpecialChar LyX
2794 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2795 \begin_inset Flex Code
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799 po
2800 \end_layout
2801
2802 \end_inset
2803
2804 ファイルが必要です。このファイルが利用可能であれば、そこから
2805 \begin_inset Flex Code
2806 status collapsed
2807
2808 \begin_layout Plain Layout
2809 mo
2810 \end_layout
2811
2812 \end_inset
2813
2814 ファイルを生成して、この
2815 \begin_inset Flex Code
2816 status collapsed
2817
2818 \begin_layout Plain Layout
2819 mo
2820 \end_layout
2821
2822 \end_inset
2823
2824 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2825 \begin_inset Flex Code
2826 status collapsed
2827
2828 \begin_layout Plain Layout
2829 gettext
2830 \end_layout
2831
2832 \end_inset
2833
2834 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2835 コミュニティの他の人々と分かち
2836 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2837 開発者メーリングリストにメールを送ってください。
2838 \end_layout
2839
2840 \begin_layout Standard
2841 要約すれば、以下のように行います(xxは言語コードを表します)。
2842 \end_layout
2843
2844 \begin_layout Itemize
2845 \SpecialChar LyX
2846 ソースコードをチェックアウトしてください(
2847 \begin_inset CommandInset href
2848 LatexCommand href
2849 name "ウェブ上の情報"
2850 target "http://www.lyx.org/devel/cvs.php"
2851
2852 \end_inset
2853
2854 参照)。
2855 \end_layout
2856
2857 \begin_layout Itemize
2858 \begin_inset Flex Code
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862 lyx.pot
2863 \end_layout
2864
2865 \end_inset
2866
2867 ファイルを
2868 \begin_inset Flex Code
2869 status collapsed
2870
2871 \begin_layout Plain Layout
2872 **.po
2873 \end_layout
2874
2875 \end_inset
2876
2877 ファイルのあるフォルダにコピーして、
2878 \begin_inset Flex Code
2879 status collapsed
2880
2881 \begin_layout Plain Layout
2882 xx.po
2883 \end_layout
2884
2885 \end_inset
2886
2887 に名前を付け替えてください(
2888 \begin_inset Flex Code
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892 lyx.pot
2893 \end_layout
2894
2895 \end_inset
2896
2897 がどこにもない場合には、コンソールからそのディレクトリで
2898 \begin_inset Flex Code
2899 status collapsed
2900
2901 \begin_layout Plain Layout
2902 make lyx.pot
2903 \end_layout
2904
2905 \end_inset
2906
2907 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2908 \end_layout
2909
2910 \begin_layout Itemize
2911 \begin_inset Flex Code
2912 status collapsed
2913
2914 \begin_layout Plain Layout
2915 xx.po
2916 \end_layout
2917
2918 \end_inset
2919
2920 を編集します
2921 \begin_inset Foot
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2926 \family typewriter
2927 Poedit
2928 \family default
2929 (全プラットフォーム用)や
2930 \family typewriter
2931 KBabel
2932 \family default
2933 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2934 \family typewriter
2935 Emacs
2936 \family default
2937 にも
2938 \begin_inset Flex Code
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 po
2943 \end_layout
2944
2945 \end_inset
2946
2947 ファイルを編集するための「モード」があります。
2948 \end_layout
2949
2950 \end_inset
2951
2952 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
2953 \begin_inset Flex Ruby
2954 status collapsed
2955
2956 \begin_layout Plain Layout
2957 捷径
2958 \begin_inset Argument post:1
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 ショートカット
2963 \end_layout
2964
2965 \end_inset
2966
2967
2968 \end_layout
2969
2970 \end_inset
2971
2972 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 po
2978 \end_layout
2979
2980 \end_inset
2981
2982 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2983 \end_layout
2984
2985 \begin_layout Standard
2986 もし、あなたがこれを自身のためだけに行っているのであれば、
2987 \end_layout
2988
2989 \begin_layout Itemize
2990 \begin_inset Flex Code
2991 status collapsed
2992
2993 \begin_layout Plain Layout
2994 xx.mo
2995 \end_layout
2996
2997 \end_inset
2998
2999 を生成してください。これは
3000 \begin_inset Flex Code
3001 status collapsed
3002
3003 \begin_layout Plain Layout
3004 msgfmt -o xx.mo < xx.po
3005 \end_layout
3006
3007 \end_inset
3008
3009 でできます。
3010 \end_layout
3011
3012 \begin_layout Itemize
3013 この
3014 \begin_inset Flex Code
3015 status collapsed
3016
3017 \begin_layout Plain Layout
3018 mo
3019 \end_layout
3020
3021 \end_inset
3022
3023 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3024 \begin_inset Flex Code
3025 status collapsed
3026
3027 \begin_layout Plain Layout
3028 lyx.mo
3029 \end_layout
3030
3031 \end_inset
3032
3033 という名称にしてください(例:
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3039 \end_layout
3040
3041 \end_inset
3042
3043 )。
3044 \end_layout
3045
3046 \begin_layout Standard
3047 しかしながら前述のように、この新しい
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 po
3053 \end_layout
3054
3055 \end_inset
3056
3057 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3058 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3059 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3060 グリストに電子メールを送ってください。
3061 \end_layout
3062
3063 \begin_layout Subsubsection
3064 多義訳語メッセージ
3065 \end_layout
3066
3067 \begin_layout Standard
3068 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3069 \begin_inset Flex Code
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 To
3074 \end_layout
3075
3076 \end_inset
3077
3078 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
3079 \begin_inset Flex Code
3080 status collapsed
3081
3082 \begin_layout Plain Layout
3083 gettext
3084 \end_layout
3085
3086 \end_inset
3087
3088 は、このような多義訳語を
3089 \begin_inset Flex Code
3090 status collapsed
3091
3092 \begin_layout Plain Layout
3093 To
3094 \end_layout
3095
3096 \end_inset
3097
3098 の代わりに、
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 To[[as in 'From format x to format y']]
3104 \end_layout
3105
3106 \end_inset
3107
3108
3109 \begin_inset Flex Code
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113 To[[as in 'From page x to page y']]
3114 \end_layout
3115
3116 \end_inset
3117
3118 としなくてはなりません。これによって、これら2つの
3119 \begin_inset Flex Code
3120 status collapsed
3121
3122 \begin_layout Plain Layout
3123 To
3124 \end_layout
3125
3126 \end_inset
3127
3128 は、
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 gettext
3134 \end_layout
3135
3136 \end_inset
3137
3138 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3139 \end_layout
3140
3141 \begin_layout Standard
3142 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3143 の翻訳機構
3144 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3145 \end_layout
3146
3147 \begin_layout Subsection
3148 説明書を翻訳する
3149 \end_layout
3150
3151 \begin_layout Standard
3152
3153 \begin_inset Flex MenuItem
3154 status collapsed
3155
3156 \begin_layout Plain Layout
3157 Help
3158 \end_layout
3159
3160 \end_inset
3161
3162 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3163 \begin_inset Foot
3164 status collapsed
3165
3166 \begin_layout Plain Layout
3167 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3168 \end_layout
3169
3170 \end_inset
3171
3172 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3173 はこれを自動的に使用します。\SpecialChar LyX
3174 は、翻訳版を
3175 \begin_inset Flex Code
3176 status collapsed
3177
3178 \begin_layout Plain Layout
3179 LyXDir/doc/xx/DocName.lyx
3180 \end_layout
3181
3182 \end_inset
3183
3184
3185 \begin_inset Flex Code
3186 status collapsed
3187
3188 \begin_layout Plain Layout
3189 xx
3190 \end_layout
3191
3192 \end_inset
3193
3194 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199 DocName
3200 \end_layout
3201
3202 \end_inset
3203
3204 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3205 うべきです。
3206 \end_layout
3207
3208 \begin_layout Itemize
3209 説明書翻訳ウェブページ
3210 \begin_inset CommandInset href
3211 LatexCommand href
3212 name "http://www.lyx.org/Translation"
3213 target "http://www.lyx.org/Translation"
3214
3215 \end_inset
3216
3217 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3218 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3219 \end_layout
3220
3221 \begin_layout Standard
3222 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3223 \end_layout
3224
3225 \begin_layout Itemize
3226 文書化チームに所属してください!そのための情報が
3227 \begin_inset Flex Code
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 Intro.lyx
3232 \end_layout
3233
3234 \end_inset
3235
3236
3237 \begin_inset Flex MenuItem
3238 status collapsed
3239
3240 \begin_layout Plain Layout
3241 ヘルプ\SpecialChar menuseparator
3242 はじめの一歩
3243 \end_layout
3244
3245 \end_inset
3246
3247 )にあります。また、この
3248 \begin_inset Flex Code
3249 status collapsed
3250
3251 \begin_layout Plain Layout
3252 Intro.lyx
3253 \end_layout
3254
3255 \end_inset
3256
3257 が最初に訳すべき文書です。
3258 \end_layout
3259
3260 \begin_layout Itemize
3261 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3262 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3263 \emph on
3264 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3265 \emph default
3266
3267 \end_layout
3268
3269 \begin_layout Itemize
3270 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3271 \begin_inset Flex Code
3272 status collapsed
3273
3274 \begin_layout Plain Layout
3275 UserDir/doc/xx/
3276 \end_layout
3277
3278 \end_inset
3279
3280 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3281 \end_layout
3282
3283 \begin_layout Itemize
3284 (\SpecialChar LyX
3285 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3286 \begin_inset CommandInset href
3287 LatexCommand href
3288 name "http://www.lyx.org/trac/timeline"
3289 target "http://www.lyx.org/trac/timeline"
3290
3291 \end_inset
3292
3293 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3294 \end_layout
3295
3296 \begin_layout Standard
3297 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3298 \end_layout
3299
3300 \begin_layout Standard
3301 \begin_inset Branch OutDated
3302 status collapsed
3303
3304 \begin_layout Section
3305 International Keyboard Support
3306 \end_layout
3307
3308 \begin_layout Standard
3309
3310 \emph on
3311 [Editor's Note: The following section is by
3312 \emph default
3313  
3314 \shape smallcaps
3315 \emph on
3316 Ivan Schreter
3317 \shape default
3318 .
3319  It needs to be fixed to conform to the new Documentation Style sheet and
3320  to make use of the new v1.0 features.
3321  The whole thing also needs to be merged with the section following it.-jw
3322  It may also be badly out of date.-rh (2008)]
3323 \end_layout
3324
3325 \begin_layout Subsection
3326 Defining Own Keymaps: Keymap File Format
3327 \end_layout
3328
3329 \begin_layout Standard
3330 Let's look at a keyboard definition file a little closer.
3331  It is a plain text file defining
3332 \end_layout
3333
3334 \begin_layout Itemize
3335 key-to-key or key-to-string translations
3336 \end_layout
3337
3338 \begin_layout Itemize
3339 dead keys
3340 \end_layout
3341
3342 \begin_layout Itemize
3343 dead keys exceptions
3344 \end_layout
3345
3346 \begin_layout Standard
3347 To define key-to-key or key-to-string translation, use this command:
3348 \end_layout
3349
3350 \begin_layout Quotation
3351 \begin_inset Flex Code
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355
3356 \backslash
3357 kmap
3358 \end_layout
3359
3360 \end_inset
3361
3362  
3363 \begin_inset Flex Code
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367 key
3368 \end_layout
3369
3370 \end_inset
3371
3372  outstring 
3373 \end_layout
3374
3375 \begin_layout Standard
3376 where 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 key
3382 \end_layout
3383
3384 \end_inset
3385
3386  is the key to be translated and 
3387 \begin_inset Flex Code
3388 status collapsed
3389
3390 \begin_layout Plain Layout
3391 outstring
3392 \end_layout
3393
3394 \end_inset
3395
3396  is the string to be inserted into the document.
3397  To define dead keys, use:
3398 \end_layout
3399
3400 \begin_layout Quotation
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405
3406 \backslash
3407 kmod
3408 \end_layout
3409
3410 \end_inset
3411
3412  
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417 key
3418 \end_layout
3419
3420 \end_inset
3421
3422  deadkey
3423 \end_layout
3424
3425 \begin_layout Standard
3426 where 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 key
3432 \end_layout
3433
3434 \end_inset
3435
3436  is a keyboard key and 
3437 \begin_inset Flex Code
3438 status collapsed
3439
3440 \begin_layout Plain Layout
3441 deadkey
3442 \end_layout
3443
3444 \end_inset
3445
3446  is dead key name.
3447  The following dead keys are supported (shortcut name is in parentheses):
3448 \end_layout
3449
3450 \begin_layout Quotation
3451
3452 \emph on
3453 Name
3454 \begin_inset space \hfill{}
3455 \end_inset
3456
3457 Example
3458 \end_layout
3459
3460 \begin_layout Quotation
3461 acute (acu)
3462 \begin_inset space \hfill{}
3463 \end_inset
3464
3465
3466 \lang english
3467 áéíóú
3468 \end_layout
3469
3470 \begin_layout Quotation
3471 grave (gra)
3472 \begin_inset space \hfill{}
3473 \end_inset
3474
3475
3476 \lang english
3477 àèìòù
3478 \end_layout
3479
3480 \begin_layout Quotation
3481 macron (mac)
3482 \begin_inset space \hfill{}
3483 \end_inset
3484
3485
3486 \lang english
3487  ō
3488 \end_layout
3489
3490 \begin_layout Quotation
3491 tilde (til)
3492 \begin_inset space \hfill{}
3493 \end_inset
3494
3495
3496 \lang english
3497 ñÑ
3498 \end_layout
3499
3500 \begin_layout Quotation
3501 underbar (underb)
3502 \begin_inset space \hfill{}
3503 \end_inset
3504
3505
3506 \begin_inset ERT
3507 status open
3508
3509 \begin_layout Plain Layout
3510
3511
3512 \backslash
3513 b o
3514 \end_layout
3515
3516 \end_inset
3517
3518
3519 \end_layout
3520
3521 \begin_layout Quotation
3522 cedilla (ced)
3523 \begin_inset space \hfill{}
3524 \end_inset
3525
3526
3527 \lang english
3528 çÇ
3529 \end_layout
3530
3531 \begin_layout Quotation
3532 underdot (underd)
3533 \begin_inset space \hfill{}
3534 \end_inset
3535
3536
3537 \begin_inset ERT
3538 status open
3539
3540 \begin_layout Plain Layout
3541
3542
3543 \backslash
3544 d o
3545 \end_layout
3546
3547 \end_inset
3548
3549
3550 \end_layout
3551
3552 \begin_layout Quotation
3553 circumflex (circu)
3554 \begin_inset space \hfill{}
3555 \end_inset
3556
3557
3558 \lang english
3559 âêîôû
3560 \end_layout
3561
3562 \begin_layout Quotation
3563 circle (circl)
3564 \begin_inset space \hfill{}
3565 \end_inset
3566
3567
3568 \lang english
3569 ÅůŮ
3570 \end_layout
3571
3572 \begin_layout Quotation
3573 tie (tie)
3574 \begin_inset space \hfill{}
3575 \end_inset
3576
3577
3578 \begin_inset ERT
3579 status open
3580
3581 \begin_layout Plain Layout
3582
3583
3584 \backslash
3585 t o
3586 \end_layout
3587
3588 \end_inset
3589
3590
3591 \end_layout
3592
3593 \begin_layout Quotation
3594 breve (bre)
3595 \begin_inset space \hfill{}
3596 \end_inset
3597
3598
3599 \lang english
3600 ă
3601 \lang japanese
3602
3603 \begin_inset ERT
3604 status open
3605
3606 \begin_layout Plain Layout
3607
3608
3609 \backslash
3610 u o
3611 \end_layout
3612
3613 \end_inset
3614
3615
3616 \end_layout
3617
3618 \begin_layout Quotation
3619 caron (car)
3620 \begin_inset space \hfill{}
3621 \end_inset
3622
3623
3624 \lang english
3625 čšž
3626 \end_layout
3627
3628 \begin_layout Quotation
3629 hungarian umlaut (hug)
3630 \begin_inset space \hfill{}
3631 \end_inset
3632
3633
3634 \lang english
3635 őű
3636 \end_layout
3637
3638 \begin_layout Quotation
3639 umlaut (uml)
3640 \begin_inset space \hfill{}
3641 \end_inset
3642
3643
3644 \lang english
3645 äöü
3646 \end_layout
3647
3648 \begin_layout Quotation
3649 dot (dot)
3650 \begin_inset space \hfill{}
3651 \end_inset
3652
3653
3654 \lang english
3655 ż
3656 \lang japanese
3657
3658 \begin_inset ERT
3659 status open
3660
3661 \begin_layout Plain Layout
3662
3663
3664 \backslash
3665 .s
3666 \end_layout
3667
3668 \end_inset
3669
3670
3671 \end_layout
3672
3673 \begin_layout Standard
3674 Since in many international keyboards there are exceptions to what some
3675  dead keys should do, you can define them using
3676 \end_layout
3677
3678 \begin_layout Quotation
3679 \begin_inset Flex Code
3680 status collapsed
3681
3682 \begin_layout Plain Layout
3683
3684 \backslash
3685 kxmod
3686 \end_layout
3687
3688 \end_inset
3689
3690  deadkey key outstring
3691 \end_layout
3692
3693 \begin_layout Standard
3694 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3695 , so you put in
3696 \end_layout
3697
3698 \begin_layout Quotation
3699 \begin_inset Flex Code
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703
3704 \backslash
3705 kxmod
3706 \end_layout
3707
3708 \end_inset
3709
3710  caron o "
3711 \backslash
3712 ^o"
3713 \end_layout
3714
3715 \begin_layout Standard
3716 to make it work correctly.
3717  Also, you have to define as exceptions dead keys over i and j, to remove
3718  the dot from them before inserting an accent mark.
3719  I will change this when the time comes, but so far I haven't had time.
3720 \end_layout
3721
3722 \begin_layout Standard
3723 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3724  double backslash.
3725  Also, quotes and 
3726 \begin_inset Flex Code
3727 status collapsed
3728
3729 \begin_layout Plain Layout
3730 #
3731 \end_layout
3732
3733 \end_inset
3734
3735  have different meaning.
3736  
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741 #
3742 \end_layout
3743
3744 \end_inset
3745
3746  marks comments, quotes start and end \SpecialChar LaTeX
3747 -style commands.
3748  To enter quote, you'll need to use 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753
3754 \backslash
3755 "
3756 \end_layout
3757
3758 \end_inset
3759
3760 , to enter 
3761 \begin_inset Flex Code
3762 status collapsed
3763
3764 \begin_layout Plain Layout
3765 #
3766 \end_layout
3767
3768 \end_inset
3769
3770 , use 
3771 \begin_inset Flex Code
3772 status collapsed
3773
3774 \begin_layout Plain Layout
3775
3776 \backslash
3777 #
3778 \end_layout
3779
3780 \end_inset
3781
3782 .
3783 \end_layout
3784
3785 \begin_layout Standard
3786 If you make a keyboard description file that works for your language, please
3787  mail it to me, so I can include it in the next keymap distribution.
3788 \end_layout
3789
3790 \begin_layout Standard
3791 More keywords will be supported in keymap configuration file in future,
3792  like
3793 \end_layout
3794
3795 \begin_layout Itemize
3796 \begin_inset Flex Code
3797 status collapsed
3798
3799 \begin_layout Plain Layout
3800
3801 \backslash
3802 kinclude filename
3803 \end_layout
3804
3805 \end_inset
3806
3807
3808 \emph on
3809
3810 \begin_inset space \hfill{}
3811 \end_inset
3812
3813
3814 \begin_inset Flex Code
3815 status collapsed
3816
3817 \begin_layout Plain Layout
3818 include
3819 \end_layout
3820
3821 \end_inset
3822
3823  another file
3824 \end_layout
3825
3826 \begin_layout Itemize
3827 \begin_inset Flex Code
3828 status collapsed
3829
3830 \begin_layout Plain Layout
3831
3832 \backslash
3833 kprog program
3834 \end_layout
3835
3836 \end_inset
3837
3838
3839 \emph on
3840
3841 \begin_inset space \hfill{}
3842 \end_inset
3843
3844
3845 \begin_inset Flex Code
3846 status collapsed
3847
3848 \begin_layout Plain Layout
3849 define
3850 \end_layout
3851
3852 \end_inset
3853
3854  an external keymap translation program 
3855 \end_layout
3856
3857 \begin_layout Standard
3858 Also, it should look into 
3859 \begin_inset Flex Code
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863 lyxrc
3864 \end_layout
3865
3866 \end_inset
3867
3868  file for defaults, too (for example, a 
3869 \begin_inset Flex Code
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873
3874 \backslash
3875 kinclude
3876 \end_layout
3877
3878 \end_inset
3879
3880  option to include default keyboard).
3881 \end_layout
3882
3883 \end_inset
3884
3885
3886 \end_layout
3887
3888 \begin_layout Section
3889 国際キー配列
3890 \begin_inset CommandInset label
3891 LatexCommand label
3892 name "sec:国際キー配列"
3893
3894 \end_inset
3895
3896
3897 \end_layout
3898
3899 \begin_layout Standard
3900 \begin_inset Note Note
3901 status open
3902
3903 \begin_layout Plain Layout
3904 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3905 \end_layout
3906
3907 \begin_layout Plain Layout
3908 (RH)
3909 \end_layout
3910
3911 \end_inset
3912
3913
3914 \end_layout
3915
3916 \begin_layout Standard
3917 以下の2節では、
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922 .kmap
3923 \end_layout
3924
3925 \end_inset
3926
3927 および
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932 .cdef
3933 \end_layout
3934
3935 \end_inset
3936
3937 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3938 \end_layout
3939
3940 \begin_layout Subsection
3941 .kmapファイル
3942 \end_layout
3943
3944 \begin_layout Standard
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 .kmap
3950 \end_layout
3951
3952 \end_inset
3953
3954 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3955 \begin_inset Flex Code
3956 status collapsed
3957
3958 \begin_layout Plain Layout
3959 .kmap
3960 \end_layout
3961
3962 \end_inset
3963
3964 ファイルは、以下の各項で説明するように、
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 kmap
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \begin_inset Flex Code
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979 kmod
3980 \end_layout
3981
3982 \end_inset
3983
3984
3985 \begin_inset Flex Code
3986 status collapsed
3987
3988 \begin_layout Plain Layout
3989 ksmod
3990 \end_layout
3991
3992 \end_inset
3993
3994
3995 \begin_inset Flex Code
3996 status collapsed
3997
3998 \begin_layout Plain Layout
3999 kcomb
4000 \end_layout
4001
4002 \end_inset
4003
4004 のキーワードを定義します。
4005 \end_layout
4006
4007 \begin_layout Labeling
4008 \labelwidthstring 00.00.0000
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013 kmap
4014 \end_layout
4015
4016 \end_inset
4017
4018  文字を文字列に割り当てる
4019 \end_layout
4020
4021 \begin_layout LyX-Code
4022
4023 \backslash
4024 kmap 
4025 \family roman
4026 \emph on
4027 文字
4028 \family default
4029 \emph default
4030  
4031 \family roman
4032 \emph on
4033 文字列
4034 \end_layout
4035
4036 \begin_layout Standard
4037 これは、
4038 \emph on
4039 文字
4040 \emph default
4041
4042 \emph on
4043 文字列
4044 \emph default
4045 に割り当てます。
4046 \emph on
4047 文字列
4048 \emph default
4049 中では、二重引用符(")とバックスラッシュ(
4050 \backslash
4051 )は、前にバックスラッシュ(
4052 \backslash
4053 )を付けてエスケープしなくてはならないことに注意してください。
4054 \end_layout
4055
4056 \begin_layout Standard
4057 \begin_inset Flex MenuItem
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 &
4062 \end_layout
4063
4064 \end_inset
4065
4066 を打鍵すると
4067 \begin_inset Flex MenuItem
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 /
4072 \end_layout
4073
4074 \end_inset
4075
4076 記号が出力される
4077 \begin_inset Flex MenuItem
4078 status collapsed
4079
4080 \begin_layout Plain Layout
4081 kmap
4082 \end_layout
4083
4084 \end_inset
4085
4086 ステートメントを、一例としてあげると、
4087 \end_layout
4088
4089 \begin_layout LyX-Code
4090
4091 \backslash
4092 kmap & /
4093 \end_layout
4094
4095 \begin_layout Standard
4096 のようになります。
4097 \end_layout
4098
4099 \begin_layout Labeling
4100 \labelwidthstring 00.00.0000
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 kmod
4106 \end_layout
4107
4108 \end_inset
4109
4110  アクセント文字を指定する
4111 \end_layout
4112
4113 \begin_layout LyX-Code
4114
4115 \backslash
4116 kmod 
4117 \family roman
4118 \emph on
4119 文字 アクセント 許可文字
4120 \end_layout
4121
4122 \begin_layout Standard
4123 これは
4124 \emph on
4125 文字
4126 \emph default
4127
4128 \emph on
4129 許可文字
4130 \emph default
4131 のアクセントとするものです。これはデッドキー
4132 \begin_inset Foot
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136
4137 \emph on
4138 デッドキー
4139 \emph default
4140 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4141 \emph on
4142 ä
4143 \emph default
4144 のようなウムラウトのついた文字は、このようにして出すことができます。
4145 \end_layout
4146
4147 \end_inset
4148
4149 機構です。
4150 \end_layout
4151
4152 \begin_layout Standard
4153
4154 \emph on
4155 文字
4156 \emph default
4157 を打鍵してから
4158 \emph on
4159 許可文字
4160 \emph default
4161 にないキーを打鍵すると、
4162 \emph on
4163 文字
4164 \emph default
4165 の後に許可文字ではないその文字が出力として表示されます。
4166 \begin_inset Flex MenuItem
4167 status collapsed
4168
4169 \begin_layout Plain Layout
4170 Backspace
4171 \end_layout
4172
4173 \end_inset
4174
4175 はデッドキーを取り消しますので、
4176 \emph on
4177 文字
4178 \emph default
4179
4180 \begin_inset Flex MenuItem
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184 Backspace
4185 \end_layout
4186
4187 \end_inset
4188
4189 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4190 \end_layout
4191
4192 \begin_layout Standard
4193 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4194 \end_layout
4195
4196 \begin_layout LyX-Code
4197
4198 \backslash
4199 kmod ' acute aeiouAEIOU
4200 \end_layout
4201
4202 \begin_layout Labeling
4203 \labelwidthstring 00.00.0000
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208 ksmod
4209 \end_layout
4210
4211 \end_inset
4212
4213  アクセント文字に例外を指定する
4214 \end_layout
4215
4216 \begin_layout LyX-Code
4217
4218 \backslash
4219 kxmod  
4220 \family roman
4221 \emph on
4222 アクセント 文字 結果
4223 \end_layout
4224
4225 \begin_layout Standard
4226 これは
4227 \emph on
4228 文字
4229 \emph default
4230 上の
4231 \emph on
4232 アクセント
4233 \emph default
4234 について例外を指定するものです。ここで
4235 \emph on
4236 アクセント
4237 \emph default
4238 には、前出の
4239 \begin_inset Flex Code
4240 status collapsed
4241
4242 \begin_layout Plain Layout
4243
4244 \backslash
4245 kmod
4246 \end_layout
4247
4248 \end_inset
4249
4250 宣言で打鍵キーを既に割り当てられてなくてはならず、
4251 \emph on
4252 文字
4253 \emph default
4254
4255 \emph on
4256 アクセント
4257 \emph default
4258
4259 \emph on
4260 許可文字
4261 \emph default
4262 の集合に属していてはなりません。こうして
4263 \emph on
4264 アクセント
4265 \emph default
4266
4267 \emph on
4268 文字
4269 \emph default
4270 の順に入力すると、
4271 \emph on
4272 結果
4273 \emph default
4274 が出力されるようになります。
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279 .kmap
4280 \end_layout
4281
4282 \end_inset
4283
4284 ファイルにこの宣言がない場合には、
4285 \emph on
4286 アクセント
4287 \emph default
4288
4289 \emph on
4290 文字
4291 \emph default
4292 と入力すると、
4293 \emph on
4294 アクセントキー
4295 \emph default
4296
4297 \emph on
4298 文字
4299 \emph default
4300
4301 \emph on
4302 アクセントキー
4303 \emph default
4304
4305 \begin_inset Flex Code
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309
4310 \backslash
4311 kmod
4312 \end_layout
4313
4314 \end_inset
4315
4316 宣言の最初の変数)と出力されます。
4317 \end_layout
4318
4319 \begin_layout Standard
4320 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4321 \end_layout
4322
4323 \begin_layout LyX-Code
4324
4325 \backslash
4326 kxmod acute i "
4327 \backslash
4328
4329 \backslash
4330 '{
4331 \backslash
4332
4333 \backslash
4334 i}"
4335 \end_layout
4336
4337 \begin_layout Labeling
4338 \labelwidthstring 00.00.0000
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343 kcomb
4344 \end_layout
4345
4346 \end_inset
4347
4348  2つのアクセント文字を結合する
4349 \end_layout
4350
4351 \begin_layout LyX-Code
4352
4353 \backslash
4354 kcomb 
4355 \family roman
4356 \emph on
4357 アクセント1 アクセント2 許可文字
4358 \end_layout
4359
4360 \begin_layout Standard
4361 これはなかなか難解になってきます。これは
4362 \emph on
4363 アクセント1
4364 \emph default
4365
4366 \emph on
4367 アクセント2
4368 \emph default
4369 を(この順番で)結びつけて、
4370 \emph on
4371 許可文字
4372 \emph default
4373 に効果を及ぼすようにします。
4374 \emph on
4375 アクセント1
4376 \emph default
4377
4378 \emph on
4379 アクセント2
4380 \emph default
4381 の打鍵キーは、ファイル内のこのコマンド
4382 \emph on
4383 よりも前に
4384 \emph default
4385
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \backslash
4392 kmod
4393 \end_layout
4394
4395 \end_inset
4396
4397 コマンドで設定されていなくてはなりません。
4398 \end_layout
4399
4400 \begin_layout Standard
4401 \begin_inset Flex Code
4402 status collapsed
4403
4404 \begin_layout Plain Layout
4405 greek.kmap
4406 \end_layout
4407
4408 \end_inset
4409
4410 ファイル上にある例をとってみましょう。
4411 \end_layout
4412
4413 \begin_layout LyX-Code
4414
4415 \backslash
4416 kmod ; acute aeioyvhAEIOYVH 
4417 \backslash
4418 kmod : umlaut iyIY 
4419 \backslash
4420 kcomb acute umlaut iyIY
4421 \end_layout
4422
4423 \begin_layout Standard
4424 これは
4425 \begin_inset Flex MenuItem
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 ;:i
4430 \end_layout
4431
4432 \end_inset
4433
4434 を押すと
4435 \begin_inset Flex Code
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439
4440 \backslash
4441 '{
4442 \backslash
4443 "{i}}
4444 \end_layout
4445
4446 \end_inset
4447
4448 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4449 \begin_inset Flex MenuItem
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 ;: Backspace i
4454 \end_layout
4455
4456 \end_inset
4457
4458 と押した場合には、
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \backslash
4465 '{i}
4466 \end_layout
4467
4468 \end_inset
4469
4470 となります。
4471 \end_layout
4472
4473 \begin_layout Subsection
4474 .cdefファイル
4475 \end_layout
4476
4477 \begin_layout Standard
4478 \begin_inset Flex Code
4479 status collapsed
4480
4481 \begin_layout Plain Layout
4482 .kmap
4483 \end_layout
4484
4485 \end_inset
4486
4487 による割り当てが行われた後、
4488 \begin_inset Flex Code
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492 .cdef
4493 \end_layout
4494
4495 \end_inset
4496
4497 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4498 頒布版には、現在のところ、少なくとも
4499 \begin_inset Flex Code
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 iso8859-1.cdef
4504 \end_layout
4505
4506 \end_inset
4507
4508 ファイルと
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 iso8859-2.cdef
4514 \end_layout
4515
4516 \end_inset
4517
4518 ファイルが含まれています。
4519 \end_layout
4520
4521 \begin_layout Standard
4522 一般的に
4523 \begin_inset Flex Code
4524 status collapsed
4525
4526 \begin_layout Plain Layout
4527 .cdef
4528 \end_layout
4529
4530 \end_inset
4531
4532 ファイルは、
4533 \end_layout
4534
4535 \begin_layout LyX-Code
4536
4537 \family roman
4538 \emph on
4539 セット中の文字番号
4540 \family default
4541 \emph default
4542  
4543 \family roman
4544 \emph on
4545  文字列
4546 \end_layout
4547
4548 \begin_layout Standard
4549 という形の宣言の羅列です。たとえば、
4550 \begin_inset Flex MenuItem
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554
4555 \backslash
4556 '{e}
4557 \end_layout
4558
4559 \end_inset
4560
4561 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4562 \end_layout
4563
4564 \begin_layout LyX-Code
4565 233 "
4566 \backslash
4567
4568 \backslash
4569 '{e}"
4570 \end_layout
4571
4572 \begin_layout Standard
4573 ここで、
4574 \emph on
4575 文字列
4576 \emph default
4577 中の
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582
4583 \backslash
4584
4585 \end_layout
4586
4587 \end_inset
4588
4589
4590 \begin_inset Flex Code
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594 "
4595 \end_layout
4596
4597 \end_inset
4598
4599 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4600 \begin_inset Flex Code
4601 status collapsed
4602
4603 \begin_layout Plain Layout
4604 iso-8859-7.cdef
4605 \end_layout
4606
4607 \end_inset
4608
4609 ファイルには、
4610 \end_layout
4611
4612 \begin_layout LyX-Code
4613 192 "
4614 \backslash
4615
4616 \backslash
4617 '{
4618 \backslash
4619
4620 \backslash
4621
4622 \backslash
4623 "{i}}"
4624 \begin_inset Newline newline
4625 \end_inset
4626
4627 192 "
4628 \backslash
4629
4630 \backslash
4631
4632 \backslash
4633 "{
4634 \backslash
4635
4636 \backslash
4637 '{i}}"
4638 \end_layout
4639
4640 \begin_layout Standard
4641 という例があります。\SpecialChar LyX
4642 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4643 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4644 \end_layout
4645
4646 \begin_layout Subsection
4647 デッドキー
4648 \end_layout
4649
4650 \begin_layout Standard
4651 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4652 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4653 \end_layout
4654
4655 \begin_layout Standard
4656 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4657 \begin_inset Flex Code
4658 status collapsed
4659
4660 \begin_layout Plain Layout
4661 lyxrc
4662 \end_layout
4663
4664 \end_inset
4665
4666 ファイル中で、
4667 \begin_inset Flex MenuItem
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671 ^
4672 \end_layout
4673
4674 \end_inset
4675
4676 キー(すなわち
4677 \begin_inset Flex MenuItem
4678 status collapsed
4679
4680 \begin_layout Plain Layout
4681 Shift-6
4682 \end_layout
4683
4684 \end_inset
4685
4686 キー)を、\SpecialChar LyX
4687 コマンドの
4688 \begin_inset Flex Code
4689 status collapsed
4690
4691 \begin_layout Plain Layout
4692 accent-circumflex
4693 \end_layout
4694
4695 \end_inset
4696
4697 に結びつけることができます。すると
4698 \begin_inset Flex MenuItem
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702 ^
4703 \end_layout
4704
4705 \end_inset
4706
4707 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4708 \begin_inset Flex MenuItem
4709 status collapsed
4710
4711 \begin_layout Plain Layout
4712 ^e
4713 \end_layout
4714
4715 \end_inset
4716
4717 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4718 \begin_inset Flex MenuItem
4719 status collapsed
4720
4721 \begin_layout Plain Layout
4722 ^t
4723 \end_layout
4724
4725 \end_inset
4726
4727 」と打鍵したならば、「
4728 \begin_inset Flex MenuItem
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 t
4733 \end_layout
4734
4735 \end_inset
4736
4737 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4738 はビープを鳴らして文句を付けます。デッドキーの後に
4739 \begin_inset Flex MenuItem
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743 スペース
4744 \end_layout
4745
4746 \end_inset
4747
4748 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4749 あります。たとえば、
4750 \begin_inset Flex MenuItem
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 ,キー
4755 \end_layout
4756
4757 \end_inset
4758
4759 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4760 \end_layout
4761
4762 \begin_layout Standard
4763 デッドキーを割り当てるのによく用いられる方法は、
4764 \begin_inset Flex MenuItem
4765 status collapsed
4766
4767 \begin_layout Plain Layout
4768 Meta-
4769 \end_layout
4770
4771 \end_inset
4772
4773
4774 \begin_inset Flex MenuItem
4775 status collapsed
4776
4777 \begin_layout Plain Layout
4778 Ctrl-
4779 \end_layout
4780
4781 \end_inset
4782
4783
4784 \begin_inset Flex MenuItem
4785 status collapsed
4786
4787 \begin_layout Plain Layout
4788 Shift-
4789 \end_layout
4790
4791 \end_inset
4792
4793 キーを、「
4794 \begin_inset Flex MenuItem
4795 status collapsed
4796
4797 \begin_layout Plain Layout
4798 ~
4799 \end_layout
4800
4801 \end_inset
4802
4803 」・「
4804 \begin_inset Flex MenuItem
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808 ,
4809 \end_layout
4810
4811 \end_inset
4812
4813 」・「
4814 \begin_inset Flex MenuItem
4815 status collapsed
4816
4817 \begin_layout Plain Layout
4818 ^
4819 \end_layout
4820
4821 \end_inset
4822
4823 」のようなアクセントと一緒に用いる方法です。また、
4824 \begin_inset Flex Code
4825 status collapsed
4826
4827 \begin_layout Plain Layout
4828 xmodmap
4829 \end_layout
4830
4831 \end_inset
4832
4833
4834 \begin_inset Flex Code
4835 status collapsed
4836
4837 \begin_layout Plain Layout
4838 xkeycaps
4839 \end_layout
4840
4841 \end_inset
4842
4843 を使って、特別な
4844 \begin_inset Flex Code
4845 status collapsed
4846
4847 \begin_layout Plain Layout
4848 Mode_Switch
4849 \end_layout
4850
4851 \end_inset
4852
4853 キーを設定する方法もあります。
4854 \begin_inset Flex Code
4855 status collapsed
4856
4857 \begin_layout Plain Layout
4858 Mode_Switch
4859 \end_layout
4860
4861 \end_inset
4862
4863 キーは、ちょうど
4864 \begin_inset Flex MenuItem
4865 status collapsed
4866
4867 \begin_layout Plain Layout
4868 Shift
4869 \end_layout
4870
4871 \end_inset
4872
4873 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4874 \begin_inset Flex Code
4875 status collapsed
4876
4877 \begin_layout Plain Layout
4878 usldead_cedilla
4879 \end_layout
4880
4881 \end_inset
4882
4883 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
4884 コマンドに割り当てることもできます
4885 \begin_inset Foot
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889
4890 \noun on
4891 John Weiss
4892 \noun default
4893 からの註:これはまさに私が、自分の
4894 \begin_inset Flex Code
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898 ~/.lyx/lyxrc
4899 \end_layout
4900
4901 \end_inset
4902
4903
4904 \begin_inset Flex Code
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908 ~/.xmodmap
4909 \end_layout
4910
4911 \end_inset
4912
4913 で行っていることです。私は、
4914 \begin_inset Flex MenuItem
4915 status collapsed
4916
4917 \begin_layout Plain Layout
4918 Scroll
4919 \begin_inset space ~
4920 \end_inset
4921
4922 Lock
4923 \end_layout
4924
4925 \end_inset
4926
4927 キーを
4928 \begin_inset Flex Code
4929 status collapsed
4930
4931 \begin_layout Plain Layout
4932 Mode_Shift
4933 \end_layout
4934
4935 \end_inset
4936
4937 に仕立てて、多数の
4938 \begin_inset Flex Code
4939 status collapsed
4940
4941 \begin_layout Plain Layout
4942 usldead_*
4943 \end_layout
4944
4945 \end_inset
4946
4947 シンボリックキーを
4948 \begin_inset Flex MenuItem
4949 status collapsed
4950
4951 \begin_layout Plain Layout
4952 Scroll
4953 \begin_inset space ~
4954 \end_inset
4955
4956 Lock-^
4957 \end_layout
4958
4959 \end_inset
4960
4961
4962 \begin_inset Flex MenuItem
4963 status collapsed
4964
4965 \begin_layout Plain Layout
4966 Scroll
4967 \begin_inset space ~
4968 \end_inset
4969
4970 Lock-~
4971 \end_layout
4972
4973 \end_inset
4974
4975 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4976 \end_layout
4977
4978 \end_inset
4979
4980 。この
4981 \begin_inset Flex Code
4982 status collapsed
4983
4984 \begin_layout Plain Layout
4985 Mode_Switch
4986 \end_layout
4987
4988 \end_inset
4989
4990 キーには、
4991 \begin_inset Flex MenuItem
4992 status collapsed
4993
4994 \begin_layout Plain Layout
4995 Ctrl-
4996 \end_layout
4997
4998 \end_inset
4999
5000 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5001 コマンドについては、
5002 \emph on
5003 \SpecialChar LyX
5004 関数説明書
5005 \emph default
5006
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 LFUN_ACCENT_*
5012 \end_layout
5013
5014 \end_inset
5015
5016 の項をご覧ください。ここには完備した一覧があります。
5017 \end_layout
5018
5019 \begin_layout Subsection
5020 自分の言語設定を保存する
5021 \end_layout
5022
5023 \begin_layout Standard
5024 \begin_inset Flex MenuItem
5025 status collapsed
5026
5027 \begin_layout Plain Layout
5028 ツール\SpecialChar menuseparator
5029 設定
5030 \end_layout
5031
5032 \end_inset
5033
5034 ダイアログを使えば、\SpecialChar LyX
5035 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5036 \end_layout
5037
5038 \begin_layout Chapter
5039 文書クラス・レイアウト・ひな型の新規導入
5040 \begin_inset CommandInset label
5041 LatexCommand label
5042 name "cha:新規文書を導入"
5043
5044 \end_inset
5045
5046
5047 \begin_inset Argument 1
5048 status collapsed
5049
5050 \begin_layout Plain Layout
5051 文書クラスを新規に導入する
5052 \end_layout
5053
5054 \end_inset
5055
5056
5057 \end_layout
5058
5059 \begin_layout Standard
5060 この章では、新しく\SpecialChar LyX
5061 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5062 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5063 します。
5064 \end_layout
5065
5066 \begin_layout Standard
5067 まず、\SpecialChar LyX
5068 と\SpecialChar LaTeX
5069 の間の関係をどのように考えるべきか、若干の註釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5070 は、La\SpecialChar TeX
5071 について何も知らないと
5072 云うことです。実際のところ、\SpecialChar LyX
5073 の観点からは、\SpecialChar LaTeX
5074 は、\SpecialChar LyX
5075 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5076 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5077 は、とくに重要な形式ですが、\SpecialChar LyX
5078 がLa\SpecialChar TeX
5079 について持っている情報のほとんどは、実はプログラム本体には含まれて
5080 いないのです
5081 \begin_inset Foot
5082 status collapsed
5083
5084 \begin_layout Plain Layout
5085 過度に複雑なため、\SpecialChar LyX
5086 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5087 \end_layout
5088
5089 \end_inset
5090
5091 。このような情報は、
5092 \begin_inset Flex Code
5093 status collapsed
5094
5095 \begin_layout Plain Layout
5096 article.cls
5097 \end_layout
5098
5099 \end_inset
5100
5101 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5102 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5103 が知っていることは、レイア
5104 ウトファイルの中にあります。
5105 \end_layout
5106
5107 \begin_layout Standard
5108 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5109 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5110 構成体・DocBook構成体・XHTML構成体との
5111 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5112
5113 \begin_inset Flex Code
5114 status collapsed
5115
5116 \begin_layout Plain Layout
5117 article.cls
5118 \end_layout
5119
5120 \end_inset
5121
5122 について知っていることのほとんど総ては、
5123 \begin_inset Flex Code
5124 status collapsed
5125
5126 \begin_layout Plain Layout
5127 article.layout
5128 \end_layout
5129
5130 \end_inset
5131
5132 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5133 としては、
5134 \begin_inset Flex Code
5135 status collapsed
5136
5137 \begin_layout Plain Layout
5138 article.layout
5139 \end_layout
5140
5141 \end_inset
5142
5143
5144 \begin_inset Flex Code
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148 book.layout
5149 \end_layout
5150
5151 \end_inset
5152
5153 や、文書クラス用の他のレイアウトファイルに取り込まれている
5154 \begin_inset Flex Code
5155 status collapsed
5156
5157 \begin_layout Plain Layout
5158 stdsections.inc
5159 \end_layout
5160
5161 \end_inset
5162
5163 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5164 \begin_inset Flex Code
5165 status collapsed
5166
5167 \begin_layout Plain Layout
5168 stdsections.inc
5169 \end_layout
5170
5171 \end_inset
5172
5173 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5174 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5175 に知らせるものです。基本的に
5176 \begin_inset Flex Code
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180 article.layout
5181 \end_layout
5182
5183 \end_inset
5184
5185 ファイルは、これらの
5186 \begin_inset Flex Code
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190 std*.inc
5191 \end_layout
5192
5193 \end_inset
5194
5195 ファイルを取り込んでいるだけのものです。
5196 \end_layout
5197
5198 \begin_layout Standard
5199 しかしながら、\SpecialChar LyX
5200 –\SpecialChar LaTeX
5201 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5202 構成体自身が画面上にどのように表
5203 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5204 ます。ある段落様式を\SpecialChar LaTeX
5205 に翻訳する仕方を\SpecialChar LyX
5206 に指示することは、その表示の仕方を\SpecialChar LyX
5207 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5208 に指示することは、その段落様
5209 式をどのように\SpecialChar LaTeX
5210 に翻訳するかを\SpecialChar LyX
5211 に指示するものではありません(ましてや\SpecialChar LaTeX
5212 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5213 構成体を定義する際には、(
5214 i)
5215 \begin_inset space ~
5216 \end_inset
5217
5218 \SpecialChar LaTeX
5219 にどのように翻訳するかを\SpecialChar LyX
5220 に指示する、(ii)
5221 \begin_inset space ~
5222 \end_inset
5223
5224 それをどのように表示するかを\SpecialChar LyX
5225 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5226 \end_layout
5227
5228 \begin_layout Standard
5229 もちろん、\SpecialChar LyX
5230 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5231 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5232 力するにあたって、当該段落を\SpecialChar LyX
5233 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5234 が内部的に行うことと、外部的に行う物事の間の区
5235 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5236 \begin_inset CommandInset ref
5237 LatexCommand ref
5238 reference "sec:XHTML出力のタグ"
5239
5240 \end_inset
5241
5242 節をご覧ください。
5243 \end_layout
5244
5245 \begin_layout Section
5246 新しい\SpecialChar LaTeX
5247 ファイルの導入
5248 \end_layout
5249
5250 \begin_layout Standard
5251 頒布版によっては、\SpecialChar LyX
5252 で使いたい\SpecialChar LaTeX
5253 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5254 パッケージである、Foil\SpecialChar TeX
5255 がないかもしれません。\SpecialChar TeX
5256 Live(2008年以降)やMiK\SpecialChar TeX
5257 のような最近の\SpecialChar LaTeX
5258 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5259 ースが用意されています。たとえば、MiK\SpecialChar TeX
5260 では、付属の「Package
5261 \begin_inset space ~
5262 \end_inset
5263
5264 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5265 ださい。
5266 \end_layout
5267
5268 \begin_layout Standard
5269 お使いの\SpecialChar LaTeX
5270 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5271 してください。
5272 \end_layout
5273
5274 \begin_layout Enumerate
5275 \begin_inset CommandInset href
5276 LatexCommand href
5277 name "CTAN"
5278 target "http://www.ctan.org/"
5279
5280 \end_inset
5281
5282 などから欲しいパッケージを入手してください。
5283 \end_layout
5284
5285 \begin_layout Enumerate
5286 パッケージに「
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 .ins
5292 \end_layout
5293
5294 \end_inset
5295
5296 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5297 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5298 \begin_inset Flex Code
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302 latex foiltex.ins
5303 \end_layout
5304
5305 \end_inset
5306
5307 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5308 パッケージは圧縮されていないので、このステップは飛ばすこ
5309 とができます。
5310 \end_layout
5311
5312 \begin_layout Enumerate
5313 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5314 \begin_inset Separator parbreak
5315 \end_inset
5316
5317
5318 \end_layout
5319
5320 \begin_deeper
5321 \begin_layout Enumerate
5322 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5323 ツリーに導入し、そうでなければ「ユー
5324 ザー」\SpecialChar TeX
5325 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5326 \begin_inset Flex Code
5327 status collapsed
5328
5329 \begin_layout Plain Layout
5330 texmf.cnf
5331 \end_layout
5332
5333 \end_inset
5334
5335 ファイルを参照してください
5336 \begin_inset Foot
5337 status collapsed
5338
5339 \begin_layout Plain Layout
5340 このファイルは、通常
5341 \family sans
5342 $TEXMF/web2c
5343 \family default
5344 ディレクトリにありますが、コマンド
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349 kpsewhich texmf.cnf
5350 \end_layout
5351
5352 \end_inset
5353
5354 を実行してその場所を見つけることもできます。
5355 \end_layout
5356
5357 \end_inset
5358
5359 。「ローカル」\SpecialChar TeX
5360 ツリーの場所は、
5361 \begin_inset Flex Code
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365 TEXMFLOCAL
5366 \end_layout
5367
5368 \end_inset
5369
5370 変数で定義されており、通常は
5371 \begin_inset Flex Code
5372 status collapsed
5373
5374 \begin_layout Plain Layout
5375 /usr/local/share/texmf/
5376 \end_layout
5377
5378 \end_inset
5379
5380 のような場所になっています。「ユーザー」\SpecialChar TeX
5381 ツリーの場所は、
5382 \begin_inset Flex Code
5383 status collapsed
5384
5385 \begin_layout Plain Layout
5386 TEXMFHOME
5387 \end_layout
5388
5389 \end_inset
5390
5391 で定義されており、通常は
5392 \begin_inset Flex Code
5393 status collapsed
5394
5395 \begin_layout Plain Layout
5396 $HOME/texmf/
5397 \end_layout
5398
5399 \end_inset
5400
5401 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5402 、「ユーザー」ツリーにはこのような制限はありません。
5403 \begin_inset Newline newline
5404 \end_inset
5405
5406 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5407 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5408 \end_layout
5409
5410 \begin_layout Enumerate
5411 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5412 の導入されているフォルダのサブフォルダ
5413 \begin_inset Flex Code
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 ~
5418 \backslash
5419 tex
5420 \backslash
5421 latex
5422 \end_layout
5423
5424 \end_inset
5425
5426 に移動します(MiK\SpecialChar TeX
5427 の既定値では、これは
5428 \begin_inset Flex Code
5429 status collapsed
5430
5431 \begin_layout Plain Layout
5432 ~:Programs
5433 \backslash
5434 MiKTeX
5435 \backslash
5436 tex
5437 \backslash
5438 latex
5439 \end_layout
5440
5441 \end_inset
5442
5443 です)
5444 \begin_inset Foot
5445 status open
5446
5447 \begin_layout Plain Layout
5448 これは、英語版でのみ正しいパスになっています。独語版では
5449 \begin_inset Flex Code
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 ~:Programme
5454 \backslash
5455 MiKTeX
5456 \backslash
5457 tex
5458 \backslash
5459 latex
5460 \end_layout
5461
5462 \end_inset
5463
5464 となり、他の言語でも同様です。
5465 \end_layout
5466
5467 \end_inset
5468
5469 。ここに新規フォルダ
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474 foiltex
5475 \end_layout
5476
5477 \end_inset
5478
5479 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5480 フォルダで同じ
5481 ことを行います。たとえばMiK\SpecialChar TeX
5482
5483 \begin_inset space ~
5484 \end_inset
5485
5486 2.8では、これはWinXP上では
5487 \begin_inset Newline newline
5488 \end_inset
5489
5490
5491 \begin_inset Flex Code
5492 status collapsed
5493
5494 \begin_layout Plain Layout
5495 ~:
5496 \backslash
5497 Documents and Settings
5498 \backslash
5499 <ユーザー名>
5500 \backslash
5501 Application Data
5502 \backslash
5503
5504 \end_layout
5505
5506 \end_inset
5507
5508
5509 \begin_inset Newline newline
5510 \end_inset
5511
5512
5513 \begin_inset Phantom HPhantom
5514 status open
5515
5516 \begin_layout Plain Layout
5517
5518 \family typewriter
5519 ~:
5520 \backslash
5521
5522 \end_layout
5523
5524 \end_inset
5525
5526
5527 \begin_inset Flex Code
5528 status collapsed
5529
5530 \begin_layout Plain Layout
5531 MiKTeX
5532 \backslash
5533 2.8
5534 \backslash
5535 tex
5536 \backslash
5537 latex
5538 \end_layout
5539
5540 \end_inset
5541
5542
5543 \begin_inset Newline newline
5544 \end_inset
5545
5546 フォルダ、WinVista上では
5547 \begin_inset Newline newline
5548 \end_inset
5549
5550
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555 ~:
5556 \backslash
5557 Users
5558 \backslash
5559 <ユーザー名>
5560 \backslash
5561 AppData
5562 \backslash
5563 Roaming
5564 \backslash
5565 2.8
5566 \backslash
5567 MiKTeX
5568 \backslash
5569 tex
5570 \backslash
5571 latex
5572 \end_layout
5573
5574 \end_inset
5575
5576
5577 \begin_inset Newline newline
5578 \end_inset
5579
5580 フォルダになります。
5581 \end_layout
5582
5583 \end_deeper
5584 \begin_layout Enumerate
5585 ここまで来れば、あとは\SpecialChar LaTeX
5586 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5587 頒布版に依存します。
5588 \begin_inset Separator parbreak
5589 \end_inset
5590
5591
5592 \end_layout
5593
5594 \begin_deeper
5595 \begin_layout Enumerate
5596 \SpecialChar TeX
5597 Liveの場合には、コンソールから
5598 \begin_inset Flex Code
5599 status collapsed
5600
5601 \begin_layout Plain Layout
5602 texhash
5603 \end_layout
5604
5605 \end_inset
5606
5607 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5608 \end_layout
5609
5610 \begin_layout Enumerate
5611 MiK\SpecialChar TeX
5612 では、パッケージを全ユーザー用に導入した場合には、「Settings
5613 \begin_inset space ~
5614 \end_inset
5615
5616 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5617
5618 \end_layout
5619
5620 \end_deeper
5621 \begin_layout Enumerate
5622 最後に、\SpecialChar LyX
5623 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5624 からツール\SpecialChar menuseparator
5625 環境構成メニューを実行して、\SpecialChar LyX
5626 を再起動します。
5627 \end_layout
5628
5629 \begin_layout Standard
5630 これでパッケージが導入されました。この例では、文書クラス
5631 \begin_inset Flex Code
5632 status collapsed
5633
5634 \begin_layout Plain Layout
5635 Slides
5636 \begin_inset space ~
5637 \end_inset
5638
5639 (FoilTeX)
5640 \end_layout
5641
5642 \end_inset
5643
5644
5645 \begin_inset Flex MenuItem
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649 文書\SpecialChar menuseparator
5650 設定\SpecialChar menuseparator
5651 文書クラス
5652 \end_layout
5653
5654 \end_inset
5655
5656 で利用可能になっているはずです。
5657 \end_layout
5658
5659 \begin_layout Standard
5660 \begin_inset Flex MenuItem
5661 status collapsed
5662
5663 \begin_layout Plain Layout
5664 文書\SpecialChar menuseparator
5665 設定\SpecialChar menuseparator
5666 文書クラス
5667 \end_layout
5668
5669 \end_inset
5670
5671 メニューに列挙されてもいない\SpecialChar LaTeX
5672 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5673 \end_layout
5674
5675 \begin_layout Section
5676 レイアウトファイルの型
5677 \end_layout
5678
5679 \begin_layout Standard
5680 この節は、レイアウト情報を含む各種\SpecialChar LyX
5681 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5682 がそれらをどのように
5683 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5684 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5685 \end_layout
5686
5687 \begin_layout Standard
5688 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5689 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5690 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5691 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5692 を出していますので、気軽に質問を投げかけてみてください。
5693 \end_layout
5694
5695 \begin_layout Standard
5696 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5697 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5698 文書クラス用の\SpecialChar LyX
5699 レイアウトを作ったり、
5700 他の人々にも有用なモジュールをお書きになった場合には、
5701 \begin_inset CommandInset href
5702 LatexCommand href
5703 name "LyX Wikiのレイアウトに関する節"
5704 target "http://wiki.lyx.org/Layouts/Layouts"
5705
5706 \end_inset
5707
5708 か、\SpecialChar LyX
5709 開発者メーリングリストに投稿して、\SpecialChar LyX
5710 頒布版に同梱することができるようにしてください
5711 \begin_inset Foot
5712 status collapsed
5713
5714 \begin_layout Plain Layout
5715 \SpecialChar LyX
5716 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5717 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5718 \end_layout
5719
5720 \end_inset
5721
5722
5723 \end_layout
5724
5725 \begin_layout Subsection
5726 レイアウトモジュール
5727 \begin_inset CommandInset label
5728 LatexCommand label
5729 name "subsec:レイアウトモジュール"
5730
5731 \end_inset
5732
5733
5734 \end_layout
5735
5736 \begin_layout Standard
5737 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5738 、それは
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 .layout
5744 \end_layout
5745
5746 \end_inset
5747
5748 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5749 に提供するものを指します。しかしながら、\SpecialChar LyX
5750  1.6以降、レイアウト情報は、拡張子が
5751 \begin_inset Flex Code
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 .module
5756 \end_layout
5757
5758 \end_inset
5759
5760 のレイアウト
5761 \emph on
5762 モジュール
5763 \emph default
5764 にも含めることができます。レイアウトが\SpecialChar LaTeX
5765 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5766 パッケージに対応するものであり、
5767 \begin_inset Flex Code
5768 status collapsed
5769
5770 \begin_layout Plain Layout
5771 endnotes
5772 \end_layout
5773
5774 \end_inset
5775
5776 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5777 イアウトで使用できるという意味において、一面、
5778 \begin_inset Flex Code
5779 status collapsed
5780
5781 \begin_layout Plain Layout
5782 stdsections.inc
5783 \end_layout
5784
5785 \end_inset
5786
5787 等のインクルードファイル
5788 \begin_inset Foot
5789 status collapsed
5790
5791 \begin_layout Plain Layout
5792 これらは任意の拡張子をつけることができますが、慣習的に
5793 \begin_inset Flex Code
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 .inc
5798 \end_layout
5799
5800 \end_inset
5801
5802 拡張子が用いられます。
5803 \end_layout
5804
5805 \end_inset
5806
5807 のようなものです。相異なる点といえば、
5808 \begin_inset Flex Code
5809 status collapsed
5810
5811 \begin_layout Plain Layout
5812 article.cls
5813 \end_layout
5814
5815 \end_inset
5816
5817 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5818 \begin_inset Flex MenuItem
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 文書\SpecialChar menuseparator
5823 設定
5824 \end_layout
5825
5826 \end_inset
5827
5828 ダイアログで選択するだけですみます。
5829 \end_layout
5830
5831 \begin_layout Standard
5832 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5833 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5834 \end_layout
5835
5836 \begin_layout Standard
5837 新しいモジュールを作成し、それを
5838 \begin_inset Flex Code
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 layout/
5843 \end_layout
5844
5845 \end_inset
5846
5847 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
5848 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
5849 \begin_inset Flex MenuItem
5850 status collapsed
5851
5852 \begin_layout Plain Layout
5853 文書\SpecialChar menuseparator
5854 設定
5855 \end_layout
5856
5857 \end_inset
5858
5859 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5860 \emph on
5861 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5862 \emph default
5863 。もっと言えば、
5864 \emph on
5865 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5866 \emph default
5867 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
5868 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
5869 とがあるからです。
5870 \end_layout
5871
5872 \begin_layout Subsubsection
5873 ローカルレイアウト
5874 \end_layout
5875
5876 \begin_layout Standard
5877 \SpecialChar LyX
5878 に於けるモジュールは、\SpecialChar LaTeX
5879 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
5880 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
5881 \end_layout
5882
5883 \begin_layout Standard
5884 これは、
5885 \family sans
5886 文書\SpecialChar menuseparator
5887 設定\SpecialChar menuseparator
5888 ローカルのレイアウト
5889 \family default
5890 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5891 は、その文書専属のモジュールだと考えることができます。したがって、
5892 \begin_inset Flex Code
5893 status collapsed
5894
5895 \begin_layout Plain Layout
5896 Format
5897 \end_layout
5898
5899 \end_inset
5900
5901 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5902  2.1では、最新書式は48です)。また、
5903 ローカルレイアウトは、\SpecialChar LyX
5904  1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
5905  1.5またはそれ以前の版に(ローカルレイアウト
5906 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5907 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
5908  1.6で使用できるレイアウト要素のみを使用してください。
5909 \end_layout
5910
5911 \begin_layout Standard
5912 \begin_inset Flex Code
5913 status collapsed
5914
5915 \begin_layout Plain Layout
5916 ローカルのレイアウト
5917 \end_layout
5918
5919 \end_inset
5920
5921 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
5922 ているかどうかが検証されます。すると、\SpecialChar LyX
5923 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
5924 をターミナル(
5925 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
5926 \end_layout
5927
5928 \begin_layout Standard
5929 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
5930 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
5931 \end_layout
5932
5933 \begin_layout Subsection
5934 \begin_inset Flex MenuItem
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 .sty
5939 \end_layout
5940
5941 \end_inset
5942
5943 ファイル用のレイアウト
5944 \end_layout
5945
5946 \begin_layout Standard
5947 新しく\SpecialChar LaTeX
5948 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
5949 クラス(
5950 \begin_inset Flex Code
5951 status collapsed
5952
5953 \begin_layout Plain Layout
5954 .cls
5955 \end_layout
5956
5957 \end_inset
5958
5959 )ファイルが絡む場合と、スタイル(
5960 \begin_inset Flex Code
5961 status collapsed
5962
5963 \begin_layout Plain Layout
5964 .sty
5965 \end_layout
5966
5967 \end_inset
5968
5969 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5970 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5971 が当てはまります。
5972 \end_layout
5973
5974 \begin_layout Standard
5975 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5976 \begin_inset Flex MenuItem
5977 status collapsed
5978
5979 \begin_layout Plain Layout
5980 myclass.sty
5981 \end_layout
5982
5983 \end_inset
5984
5985 という名称で、標準的なクラスである
5986 \begin_inset Flex MenuItem
5987 status collapsed
5988
5989 \begin_layout Plain Layout
5990 report.cls
5991 \end_layout
5992
5993 \end_inset
5994
5995 と共に用いられるものと仮定しましょう。
5996 \end_layout
5997
5998 \begin_layout Standard
5999 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6000 \begin_inset Foot
6001 status collapsed
6002
6003 \begin_layout Plain Layout
6004 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6005 では、起動時に
6006 \begin_inset Flex MenuItem
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010 -userdir
6011 \end_layout
6012
6013 \end_inset
6014
6015 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6016 \end_layout
6017
6018 \end_inset
6019
6020
6021 \end_layout
6022
6023 \begin_layout LyX-Code
6024 cp report.layout ~/.lyx/layouts/myclass.layout
6025 \end_layout
6026
6027 \begin_layout Standard
6028 それから、
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 myclass.layout
6034 \end_layout
6035
6036 \end_inset
6037
6038 を編集して、
6039 \end_layout
6040
6041 \begin_layout LyX-Code
6042
6043 \backslash
6044 DeclareLaTeXClass{report}
6045 \end_layout
6046
6047 \begin_layout Standard
6048 という行を
6049 \end_layout
6050
6051 \begin_layout LyX-Code
6052
6053 \backslash
6054 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6055 \end_layout
6056
6057 \begin_layout Standard
6058 のように変更してください。それから、ファイル冒頭辺りに
6059 \end_layout
6060
6061 \begin_layout LyX-Code
6062 Preamble 
6063 \begin_inset Newline newline
6064 \end_inset
6065
6066     
6067 \backslash
6068 usepackage{myclass}
6069 \begin_inset Newline newline
6070 \end_inset
6071
6072 EndPreamble
6073 \end_layout
6074
6075 \begin_layout Standard
6076 と書き加えてください。
6077 \end_layout
6078
6079 \begin_layout Standard
6080 \SpecialChar LyX
6081 を起動して
6082 \begin_inset Flex MenuItem
6083 status collapsed
6084
6085 \begin_layout Plain Layout
6086 ツール\SpecialChar menuseparator
6087 環境構成
6088 \end_layout
6089
6090 \end_inset
6091
6092 を選択してください。それから\SpecialChar LyX
6093 を再起動し、新規文書を作成してみてください。すると、
6094 \begin_inset Flex MenuItem
6095 status collapsed
6096
6097 \begin_layout Plain Layout
6098 文書\SpecialChar menuseparator
6099 設定
6100 \end_layout
6101
6102 \end_inset
6103
6104 ダイアログの文書クラスオプションに「
6105 \begin_inset Flex MenuItem
6106 status collapsed
6107
6108 \begin_layout Plain Layout
6109 report (myclass)
6110 \end_layout
6111
6112 \end_inset
6113
6114 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119 report
6120 \end_layout
6121
6122 \end_inset
6123
6124 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6125 \begin_inset Flex Code
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129 stdsections.inc
6130 \end_layout
6131
6132 \end_inset
6133
6134 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6135 \begin_inset Flex Code
6136 status collapsed
6137
6138 \begin_layout Plain Layout
6139 stdsections.inc
6140 \end_layout
6141
6142 \end_inset
6143
6144 も取り込む
6145 \begin_inset Flex Code
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 Input stdclass.inc
6150 \end_layout
6151
6152 \end_inset
6153
6154 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6155 \end_layout
6156
6157 \begin_layout LyX-Code
6158 Style Chapter
6159 \end_layout
6160
6161 \begin_layout LyX-Code
6162     Font
6163 \end_layout
6164
6165 \begin_layout LyX-Code
6166         Family Sans
6167 \end_layout
6168
6169 \begin_layout LyX-Code
6170     EndFont
6171 \end_layout
6172
6173 \begin_layout LyX-Code
6174 End
6175 \end_layout
6176
6177 \begin_layout Standard
6178 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6179 \end_layout
6180
6181 \begin_layout Standard
6182 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6183 いては、第
6184 \begin_inset CommandInset ref
6185 LatexCommand ref
6186 reference "sec:テキストクラス"
6187
6188 \end_inset
6189
6190 節の情報を参照してください。
6191 \end_layout
6192
6193 \begin_layout Standard
6194 もし
6195 \begin_inset Flex Code
6196 status collapsed
6197
6198 \begin_layout Plain Layout
6199 myclass.sty
6200 \end_layout
6201
6202 \end_inset
6203
6204 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6205 う。最も簡単なモジュールの例としては、以下のようなものになります。
6206 \end_layout
6207
6208 \begin_layout LyX-Code
6209 #
6210 \backslash
6211 DeclareLyXModule{My Package}
6212 \end_layout
6213
6214 \begin_layout LyX-Code
6215 #DescriptionBegin
6216 \end_layout
6217
6218 \begin_layout LyX-Code
6219 #Support for mypkg.sty.
6220 \end_layout
6221
6222 \begin_layout LyX-Code
6223 #DescriptionEnd
6224 \begin_inset Newline newline
6225 \end_inset
6226
6227
6228 \end_layout
6229
6230 \begin_layout LyX-Code
6231 Format 35
6232 \begin_inset Newline newline
6233 \end_inset
6234
6235
6236 \end_layout
6237
6238 \begin_layout LyX-Code
6239 Preamble
6240 \begin_inset Newline newline
6241 \end_inset
6242
6243     
6244 \backslash
6245 usepackage{mypkg}
6246 \begin_inset Newline newline
6247 \end_inset
6248
6249 EndPreamble
6250 \end_layout
6251
6252 \begin_layout Standard
6253 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6254 \begin_inset CommandInset ref
6255 LatexCommand ref
6256 reference "sec:テキストクラス"
6257
6258 \end_inset
6259
6260 節を参照してください。
6261 \end_layout
6262
6263 \begin_layout Subsection
6264 \begin_inset Flex MenuItem
6265 status collapsed
6266
6267 \begin_layout Plain Layout
6268 .cls
6269 \end_layout
6270
6271 \end_inset
6272
6273 ファイル用のレイアウト
6274 \end_layout
6275
6276 \begin_layout Standard
6277 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6278 \begin_inset Flex MenuItem
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 book.cls
6283 \end_layout
6284
6285 \end_inset
6286
6287 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6288 \end_layout
6289
6290 \begin_layout LyX-Code
6291
6292 \backslash
6293 LoadClass{book}
6294 \end_layout
6295
6296 \begin_layout Standard
6297 という行がないかどうか探してください。もしこれがあれば、
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 Declare\SpecialChar LaTeX
6303 Class
6304 \end_layout
6305
6306 \end_inset
6307
6308 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6309 \begin_inset Flex Code
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 thesis
6314 \end_layout
6315
6316 \end_inset
6317
6318 であり、
6319 \begin_inset Flex Code
6320 status collapsed
6321
6322 \begin_layout Plain Layout
6323 book
6324 \end_layout
6325
6326 \end_inset
6327
6328 クラスに基づいていれば、
6329 \begin_inset Flex Code
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 Declare\SpecialChar LaTeX
6334 Class
6335 \end_layout
6336
6337 \end_inset
6338
6339 行は以下のようにします
6340 \begin_inset Foot
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 さらに\SpecialChar LyX
6345 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350 thesis.layout
6351 \end_layout
6352
6353 \end_inset
6354
6355 という名前で保存するのが最も簡単です。 
6356 \end_layout
6357
6358 \end_inset
6359
6360
6361 \end_layout
6362
6363 \begin_layout LyX-Code
6364
6365 \backslash
6366 DeclareLaT
6367 \begin_inset ERT
6368 status collapsed
6369
6370 \begin_layout Plain Layout
6371
6372 {}
6373 \end_layout
6374
6375 \end_inset
6376
6377 eXClass[thesis,book]{thesis}
6378 \end_layout
6379
6380 \begin_layout Standard
6381 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6382 クラスを使用してい
6383 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6384 業の開始点としてください。
6385 \end_layout
6386
6387 \begin_layout Subsection
6388 ひな型を作成する
6389 \begin_inset CommandInset label
6390 LatexCommand label
6391 name "sec:ひな型を作成する"
6392
6393 \end_inset
6394
6395
6396 \end_layout
6397
6398 \begin_layout Standard
6399 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6400 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6401 添付のひな型をあれこれ見てみるのもよいでしょう。
6402 \end_layout
6403
6404 \begin_layout Standard
6405 ひな型は、通常の文書と同様、\SpecialChar LyX
6406 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6407 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6408 \begin_inset Flex Code
6409 status collapsed
6410
6411 \begin_layout Plain Layout
6412
6413 \backslash
6414 fontscheme
6415 \end_layout
6416
6417 \end_inset
6418
6419
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424
6425 \backslash
6426 papersize
6427 \end_layout
6428
6429 \end_inset
6430
6431 などの対応するコマンドをひな型\SpecialChar LyX
6432 ファイルから取り除く必要があります。これは、たとえば
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 vi
6438 \end_layout
6439
6440 \end_inset
6441
6442
6443 \begin_inset Flex Code
6444 status collapsed
6445
6446 \begin_layout Plain Layout
6447 notepad
6448 \end_layout
6449
6450 \end_inset
6451
6452 のような、どの軽いテキストエディタでも行うことができます。
6453 \end_layout
6454
6455 \begin_layout Standard
6456 編集したひな型を
6457 \begin_inset Flex Code
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 UserDir/templates/
6462 \end_layout
6463
6464 \end_inset
6465
6466 に置き、グローバルなひな型ディレクトリ
6467 \begin_inset Flex Code
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471 LyXDir/templates/
6472 \end_layout
6473
6474 \end_inset
6475
6476 から使用したいものを同じ場所にコピーし、
6477 \begin_inset Flex MenuItem
6478 status collapsed
6479
6480 \begin_layout Plain Layout
6481 ツール\SpecialChar menuseparator
6482 設定\SpecialChar menuseparator
6483 パス
6484 \end_layout
6485
6486 \end_inset
6487
6488 ダイアログのひな型パスを再定義してください。
6489 \end_layout
6490
6491 \begin_layout Standard
6492 ところで、特別な意味を持つひな型
6493 \begin_inset Flex Code
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 defaults.lyx
6498 \end_layout
6499
6500 \end_inset
6501
6502 があることに注意してください。このひな型は、
6503 \begin_inset Flex MenuItem
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507 ファイル\SpecialChar menuseparator
6508 新規
6509 \end_layout
6510
6511 \end_inset
6512
6513 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6514 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6515 開き、
6516 \begin_inset Flex MenuItem
6517 status collapsed
6518
6519 \begin_layout Plain Layout
6520 文書既定値として保存
6521 \end_layout
6522
6523 \end_inset
6524
6525 ボタンを押すことです。
6526 \end_layout
6527
6528 \begin_layout Subsection
6529 旧レイアウトファイルの更新
6530 \end_layout
6531
6532 \begin_layout Standard
6533 レイアウトファイルの書式は、\SpecialChar LyX
6534 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6535 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6536 は、
6537 自動的に変換ツール
6538 \begin_inset Flex Code
6539 status collapsed
6540
6541 \begin_layout Plain Layout
6542 \SpecialChar LyX
6543 Dir/scripts/layout2layout.py
6544 \end_layout
6545
6546 \end_inset
6547
6548 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6549 がこれを毎回行な
6550 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6551 \end_layout
6552
6553 \begin_layout Enumerate
6554 ファイル
6555 \begin_inset Flex Code
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559 myclass.layout
6560 \end_layout
6561
6562 \end_inset
6563
6564
6565 \begin_inset Flex Code
6566 status collapsed
6567
6568 \begin_layout Plain Layout
6569 myclass.old
6570 \end_layout
6571
6572 \end_inset
6573
6574 に改称
6575 \end_layout
6576
6577 \begin_layout Enumerate
6578 以下のコマンドをコール
6579 \begin_inset Newline newline
6580 \end_inset
6581
6582
6583 \begin_inset Flex Code
6584 status collapsed
6585
6586 \begin_layout Plain Layout
6587 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6588 \end_layout
6589
6590 \end_inset
6591
6592
6593 \begin_inset Newline newline
6594 \end_inset
6595
6596 ここで
6597 \begin_inset Flex Code
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601 LyXDir
6602 \end_layout
6603
6604 \end_inset
6605
6606 は\SpecialChar LyX
6607 システムディレクトリの名前です。
6608 \end_layout
6609
6610 \begin_layout Standard
6611 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6612 \end_layout
6613
6614 \begin_layout Section
6615 \begin_inset CommandInset label
6616 LatexCommand label
6617 name "sec:テキストクラス"
6618
6619 \end_inset
6620
6621 レイアウトファイルの書式
6622 \end_layout
6623
6624 \begin_layout Standard
6625 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6626 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6627 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6628 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6629 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6630 \end_layout
6631
6632 \begin_layout Standard
6633 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6634 \begin_inset Flex Code
6635 status collapsed
6636
6637 \begin_layout Plain Layout
6638 Style
6639 \end_layout
6640
6641 \end_inset
6642
6643
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 style
6649 \end_layout
6650
6651 \end_inset
6652
6653
6654 \begin_inset Flex Code
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 StYlE
6659 \end_layout
6660
6661 \end_inset
6662
6663 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6664 \begin_inset Flex Code
6665 status collapsed
6666
6667 \begin_layout Plain Layout
6668
6669 \emph on
6670 強調
6671 \end_layout
6672
6673 \end_inset
6674
6675 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6676 \begin_inset Flex Code
6677 status collapsed
6678
6679 \begin_layout Plain Layout
6680 浮動小数点型=
6681 \emph on
6682 既定値
6683 \end_layout
6684
6685 \end_inset
6686
6687 のように表示されます。
6688 \end_layout
6689
6690 \begin_layout Subsection
6691 文書クラス宣言と分類
6692 \end_layout
6693
6694 \begin_layout Standard
6695 レイアウトファイル中の
6696 \begin_inset Flex Code
6697 status collapsed
6698
6699 \begin_layout Plain Layout
6700 #
6701 \end_layout
6702
6703 \end_inset
6704
6705 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6706 \begin_inset Flex Code
6707 status collapsed
6708
6709 \begin_layout Plain Layout
6710 *.layout
6711 \end_layout
6712
6713 \end_inset
6714
6715 ファイルは、以下のような行で始めなくてはならないのです。
6716 \end_layout
6717
6718 \begin_layout LyX-Code
6719
6720 \size small
6721 #% Do not delete the line below; configure depends on this
6722 \end_layout
6723
6724 \begin_layout LyX-Code
6725
6726 \size small
6727 #  
6728 \backslash
6729 DeclareLaTeXClass{Article (Standard Class)}
6730 \end_layout
6731
6732 \begin_layout LyX-Code
6733
6734 \size small
6735 #  
6736 \backslash
6737 DeclareCategory{Articles}
6738 \end_layout
6739
6740 \begin_layout Standard
6741 2行目と3行目は、\SpecialChar LyX
6742 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6743 スクリプト
6744 \begin_inset Flex Code
6745 status collapsed
6746
6747 \begin_layout Plain Layout
6748 chkconfig.ltx
6749 \end_layout
6750
6751 \end_inset
6752
6753 が、
6754 \begin_inset Flex Code
6755 status collapsed
6756
6757 \begin_layout Plain Layout
6758 #
6759 \end_layout
6760
6761 \end_inset
6762
6763 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6764 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
6765 行が
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770 article.layout
6771 \end_layout
6772
6773 \end_inset
6774
6775 と名付けられたファイルにあると、
6776 \begin_inset Flex Code
6777 status collapsed
6778
6779 \begin_layout Plain Layout
6780 article
6781 \end_layout
6782
6783 \end_inset
6784
6785 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
6786 文書クラス
6787 \begin_inset Flex Code
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791 article.cls
6792 \end_layout
6793
6794 \end_inset
6795
6796 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
6797 \begin_inset Flex MenuItem
6798 status collapsed
6799
6800 \begin_layout Plain Layout
6801 文書\SpecialChar menuseparator
6802 設定
6803 \end_layout
6804
6805 \end_inset
6806
6807 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
6808 \begin_inset Flex MenuItem
6809 status collapsed
6810
6811 \begin_layout Plain Layout
6812 文書\SpecialChar menuseparator
6813 設定
6814 \end_layout
6815
6816 \end_inset
6817
6818 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
6819 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
6820 rized」グループに属することになります。
6821 \end_layout
6822
6823 \begin_layout Standard
6824 節見出し表示に変更を加えた、
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 article.cls
6830 \end_layout
6831
6832 \end_inset
6833
6834 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6835 \begin_inset Flex Code
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 myarticle.layout
6840 \end_layout
6841
6842 \end_inset
6843
6844 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6845 \end_layout
6846
6847 \begin_layout LyX-Code
6848
6849 \size small
6850 #% Do not delete the line below; configure depends on this 
6851 \end_layout
6852
6853 \begin_layout LyX-Code
6854
6855 \size small
6856 #  
6857 \backslash
6858 DeclareLaTeXClass[article]{article (with My Own Headings)}
6859 \end_layout
6860
6861 \begin_layout LyX-Code
6862
6863 \size small
6864 #  
6865 \backslash
6866 DeclareCategory{Articles}
6867 \end_layout
6868
6869 \begin_layout Standard
6870 これは、\SpecialChar LaTeX
6871 文書クラス
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 article.cls
6877 \end_layout
6878
6879 \end_inset
6880
6881 に関連づけられ、「Article (with My Own Headings)」と表示される、
6882 \begin_inset Flex Code
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 myarticle
6887 \end_layout
6888
6889 \end_inset
6890
6891 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6892 \end_layout
6893
6894 \begin_layout LyX-Code
6895
6896 \size small
6897 #% Do not delete the line below; configure depends on this 
6898 \end_layout
6899
6900 \begin_layout LyX-Code
6901
6902 \size small
6903 #  
6904 \backslash
6905 DeclareLaT
6906 \size default
6907
6908 \begin_inset ERT
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912
6913 {}
6914 \end_layout
6915
6916 \end_inset
6917
6918
6919 \size small
6920 eXClass[article,foo.sty]{Article (with My Own Headings)}
6921 \end_layout
6922
6923 \begin_layout LyX-Code
6924
6925 \size small
6926 #  
6927 \backslash
6928 DeclareCategory{Articles}
6929 \end_layout
6930
6931 \begin_layout Standard
6932 これは、このテキストクラスが
6933 \begin_inset Flex Code
6934 status collapsed
6935
6936 \begin_layout Plain Layout
6937 foo.sty
6938 \end_layout
6939
6940 \end_inset
6941
6942 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6943 \end_layout
6944
6945 \begin_layout LyX-Code
6946
6947 \size small
6948 #% Do not delete the line below; configure depends on this 
6949 \end_layout
6950
6951 \begin_layout LyX-Code
6952
6953 \size small
6954
6955 \backslash
6956 DeclareDocBookClass[article]{SGML (DocBook article)}
6957 \end_layout
6958
6959 \begin_layout LyX-Code
6960
6961 \size small
6962 #  
6963 \backslash
6964 DeclareCategory{Articles}
6965 \end_layout
6966
6967 \begin_layout Standard
6968 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6969 \end_layout
6970
6971 \begin_layout Standard
6972 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \size small
6978 #  
6979 \backslash
6980 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6981 \end_layout
6982
6983 \begin_layout LyX-Code
6984
6985 \size small
6986 #  
6987 \backslash
6988 DeclareCategory{分類}
6989 \end_layout
6990
6991 \begin_layout Standard
6992 ここで「クラス」は、\SpecialChar LaTeX
6993 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
6994 は単純に、クラスファイル
6995 名がレイアウトファイル名と同じであると仮定します。
6996 \end_layout
6997
6998 \begin_layout Standard
6999 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 LyXDir/layouts/
7005 \end_layout
7006
7007 \end_inset
7008
7009
7010 \begin_inset Flex Code
7011 status collapsed
7012
7013 \begin_layout Plain Layout
7014 UserDir/layouts
7015 \end_layout
7016
7017 \end_inset
7018
7019 にコピーし、
7020 \begin_inset Flex MenuItem
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 ツール\SpecialChar menuseparator
7025 環境構成
7026 \end_layout
7027
7028 \end_inset
7029
7030 を実行し、\SpecialChar LyX
7031 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7032 \end_layout
7033
7034 \begin_layout Standard
7035 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7036 を再起動したりすることなく、その変更を確認することができます
7037 \begin_inset Foot
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 第1.6版よりも前の\SpecialChar LyX
7042 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7043 を再起動しなくてはならなかったので、
7044 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7045 \end_layout
7046
7047 \end_inset
7048
7049 。\SpecialChar LyX
7050 関数
7051 \begin_inset Flex MenuItem
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 layout-reload
7056 \end_layout
7057
7058 \end_inset
7059
7060 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7061 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7062 \end_layout
7063
7064 \begin_layout Standard
7065
7066 \emph on
7067 注意
7068 \emph default
7069
7070 \begin_inset Flex MenuItem
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 layout-reload
7075 \end_layout
7076
7077 \end_inset
7078
7079 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7080 \emph on
7081 強く
7082 \emph default
7083 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7084 \emph on
7085 強く
7086 \emph default
7087 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7088 は現在の
7089 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7090 \begin_inset Foot
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7095 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7096 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7097 ださい。
7098 \end_layout
7099
7100 \end_inset
7101
7102 。\SpecialChar LyX
7103 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7104 \begin_inset Foot
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7109 \end_layout
7110
7111 \end_inset
7112
7113
7114 \end_layout
7115
7116 \begin_layout Subsection
7117 モジュール宣言
7118 \end_layout
7119
7120 \begin_layout Standard
7121 モジュールは、以下のような行で始まらなくてはなりません。
7122 \end_layout
7123
7124 \begin_layout LyX-Code
7125 #
7126 \backslash
7127 DeclareL
7128 \begin_inset ERT
7129 status collapsed
7130
7131 \begin_layout Plain Layout
7132
7133 {}
7134 \end_layout
7135
7136 \end_inset
7137
7138 yXModule[endnotes.sty]{Endnotes} 
7139 \end_layout
7140
7141 \begin_layout Standard
7142 波括弧内に入っている必須引数はモジュール名で、これは
7143 \begin_inset Flex MenuItem
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 文書\SpecialChar menuseparator
7148 設定
7149 \end_layout
7150
7151 \end_inset
7152
7153 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7154 パッケージをすべて宣言します。また、非必須引数として、
7155 \begin_inset Flex Code
7156 status collapsed
7157
7158 \begin_layout Plain Layout
7159 変換元->変換先
7160 \end_layout
7161
7162 \end_inset
7163
7164 の形を使用することができます。これは、
7165 \begin_inset Flex Code
7166 status collapsed
7167
7168 \begin_layout Plain Layout
7169 変換元
7170 \end_layout
7171
7172 \end_inset
7173
7174 形式から
7175 \begin_inset Flex Code
7176 status collapsed
7177
7178 \begin_layout Plain Layout
7179 変換先
7180 \end_layout
7181
7182 \end_inset
7183
7184 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7185 \end_layout
7186
7187 \begin_layout Standard
7188 それから、以下のようなモジュール宣言を行います
7189 \begin_inset Foot
7190 status collapsed
7191
7192 \begin_layout Plain Layout
7193 モジュールを\SpecialChar LyX
7194 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7195 \end_layout
7196
7197 \end_inset
7198
7199
7200 \end_layout
7201
7202 \begin_layout LyX-Code
7203 #DescriptionBegin 
7204 \end_layout
7205
7206 \begin_layout LyX-Code
7207 #Adds an endnote command, in addition to footnotes.
7208  
7209 \end_layout
7210
7211 \begin_layout LyX-Code
7212 #You will need to add  
7213 \backslash
7214 theendnotes in TeX code where you 
7215 \end_layout
7216
7217 \begin_layout LyX-Code
7218 #want the endnotes to appear.
7219  
7220 \end_layout
7221
7222 \begin_layout LyX-Code
7223 #DescriptionEnd 
7224 \end_layout
7225
7226 \begin_layout LyX-Code
7227 #Requires: somemodule | othermodule
7228 \end_layout
7229
7230 \begin_layout LyX-Code
7231 #Excludes: badmodule
7232 \end_layout
7233
7234 \begin_layout Standard
7235 ここで説明(Description)は、
7236 \begin_inset Flex MenuItem
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 文書\SpecialChar menuseparator
7241 設定
7242 \end_layout
7243
7244 \end_inset
7245
7246 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 Requires
7252 \end_layout
7253
7254 \end_inset
7255
7256 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 Excludes
7262 \end_layout
7263
7264 \end_inset
7265
7266 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7267 イプ記号「|」で区切らなくてはなりません。
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 Requires
7273 \end_layout
7274
7275 \end_inset
7276
7277 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 Requires
7283 \end_layout
7284
7285 \end_inset
7286
7287 に指定されたモジュールのうち、
7288 \emph on
7289 少なくとも一つ
7290 \emph default
7291 が使用されていればよいということです。同様に、
7292 \begin_inset Flex Code
7293 status collapsed
7294
7295 \begin_layout Plain Layout
7296 Excludes
7297 \end_layout
7298
7299 \end_inset
7300
7301 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7302 \begin_inset Flex Code
7303 status collapsed
7304
7305 \begin_layout Plain Layout
7306 .module
7307 \end_layout
7308
7309 \end_inset
7310
7311 拡張子を除いたファイル名で認識されることに注意してください。つまり
7312 \begin_inset Flex Code
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 somemodule
7317 \end_layout
7318
7319 \end_inset
7320
7321 とは、実のところ
7322 \begin_inset Flex Code
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 somemodule.module
7327 \end_layout
7328
7329 \end_inset
7330
7331 のことです。
7332 \end_layout
7333
7334 \begin_layout Subsection
7335 書式番号
7336 \end_layout
7337
7338 \begin_layout Standard
7339 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7340 \end_layout
7341
7342 \begin_layout Description
7343 \begin_inset Flex Code
7344 status collapsed
7345
7346 \begin_layout Plain Layout
7347 Format
7348 \end_layout
7349
7350 \end_inset
7351
7352  [
7353 \begin_inset Flex Code
7354 status collapsed
7355
7356 \begin_layout Plain Layout
7357 整数型
7358 \end_layout
7359
7360 \end_inset
7361
7362 ] このレイアウトファイルの書式
7363 \end_layout
7364
7365 \begin_layout Standard
7366 このタグは\SpecialChar LyX
7367
7368 \begin_inset space ~
7369 \end_inset
7370
7371 1.4.0で導入されました。\SpecialChar LyX
7372
7373 \begin_inset space ~
7374 \end_inset
7375
7376 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7377 現行版のファイル形式は、書式35です。しかし、\SpecialChar LyX
7378 の各版は、旧版の\SpecialChar LyX
7379 で作成さ
7380 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7381 \end_layout
7382
7383 \begin_layout Subsection
7384 \begin_inset CommandInset label
7385 LatexCommand label
7386 name "subsec:汎用テキストクラスパラメータ"
7387
7388 \end_inset
7389
7390 汎用テキストクラスパラメータ
7391 \end_layout
7392
7393 \begin_layout Standard
7394 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7395 \begin_inset Flex Code
7396 status collapsed
7397
7398 \begin_layout Plain Layout
7399 .layout
7400 \end_layout
7401
7402 \end_inset
7403
7404 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7405 \emph on
7406 ありません
7407 \emph default
7408 。モジュールには、すべてのレイアウトタグを使用することができます)。
7409 \end_layout
7410
7411 \begin_layout Description
7412 \begin_inset Flex Code
7413 status collapsed
7414
7415 \begin_layout Plain Layout
7416 AddToHTMLPreamble
7417 \end_layout
7418
7419 \end_inset
7420
7421  この文書クラスがXHTMLに出力されるときに、
7422 \begin_inset Flex Code
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 <head>
7427 \end_layout
7428
7429 \end_inset
7430
7431 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7432 \begin_inset Flex Code
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 <head>
7437 \end_layout
7438
7439 \end_inset
7440
7441 に出力するものであれば、何でも使用することができます。「
7442 \begin_inset Flex Code
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 EndPreamble
7447 \end_layout
7448
7449 \end_inset
7450
7451 」で閉じる必要があります。
7452 \end_layout
7453
7454 \begin_layout Description
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 AddToPreamble
7460 \end_layout
7461
7462 \end_inset
7463
7464  文書プリアンブルに書き加えられる情報です。「
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 EndPreamble
7470 \end_layout
7471
7472 \end_inset
7473
7474 」で閉じる必要があります。
7475 \end_layout
7476
7477 \begin_layout Description
7478 \begin_inset Flex Code
7479 status collapsed
7480
7481 \begin_layout Plain Layout
7482 CiteFormat
7483 \end_layout
7484
7485 \end_inset
7486
7487  書誌情報の表示に使う書式を定義します。詳細については、
7488 \begin_inset CommandInset ref
7489 LatexCommand ref
7490 reference "subsec:引用書式指定"
7491
7492 \end_inset
7493
7494 をご覧ください。「
7495 \begin_inset Flex Code
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 End
7500 \end_layout
7501
7502 \end_inset
7503
7504 」で閉じる必要があります。
7505 \end_layout
7506
7507 \begin_layout Description
7508 \begin_inset Flex Code
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 ClassOptions
7513 \end_layout
7514
7515 \end_inset
7516
7517  文書クラスがサポートする様々な大域オプションを記します。説明は、
7518 \begin_inset CommandInset ref
7519 LatexCommand ref
7520 reference "subsec:ClassOptions"
7521
7522 \end_inset
7523
7524 を参照してください。「
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 End
7530 \end_layout
7531
7532 \end_inset
7533
7534 」で閉じる必要があります。
7535 \end_layout
7536
7537 \begin_layout Description
7538 \begin_inset Flex Code
7539 status collapsed
7540
7541 \begin_layout Plain Layout
7542 Columns
7543 \end_layout
7544
7545 \end_inset
7546
7547  [
7548 \begin_inset Flex Code
7549 status collapsed
7550
7551 \begin_layout Plain Layout
7552
7553 \emph on
7554 1
7555 \end_layout
7556
7557 \end_inset
7558
7559 ,
7560 \begin_inset space \thinspace{}
7561 \end_inset
7562
7563
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 2
7569 \end_layout
7570
7571 \end_inset
7572
7573 ] 文書クラスが既定で1段組か2段組かを指定します。
7574 \begin_inset Flex MenuItem
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 文書\SpecialChar menuseparator
7579 設定
7580 \end_layout
7581
7582 \end_inset
7583
7584 ダイアログで変更することができます。
7585 \end_layout
7586
7587 \begin_layout Description
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 Counter
7593 \end_layout
7594
7595 \end_inset
7596
7597  [
7598 \begin_inset Flex Code
7599 status collapsed
7600
7601 \begin_layout Plain Layout
7602 文字列
7603 \end_layout
7604
7605 \end_inset
7606
7607 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 End
7613 \end_layout
7614
7615 \end_inset
7616
7617 」で閉じる必要があります。
7618 \begin_inset Newline newline
7619 \end_inset
7620
7621 カウンタについての詳細は、
7622 \begin_inset CommandInset ref
7623 LatexCommand ref
7624 reference "subsec:カウンタ"
7625
7626 \end_inset
7627
7628 を参照してください。
7629 \end_layout
7630
7631 \begin_layout Description
7632 \begin_inset Flex Code
7633 status collapsed
7634
7635 \begin_layout Plain Layout
7636 DefaultFont
7637 \end_layout
7638
7639 \end_inset
7640
7641  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7642 \begin_inset CommandInset ref
7643 LatexCommand ref
7644 reference "subsec:フォント指定"
7645
7646 \end_inset
7647
7648 を参照してください。「
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 EndFont
7654 \end_layout
7655
7656 \end_inset
7657
7658 」で閉じる必要があります。
7659 \end_layout
7660
7661 \begin_layout Description
7662 \begin_inset Flex Code
7663 status collapsed
7664
7665 \begin_layout Plain Layout
7666 DefaultModule
7667 \end_layout
7668
7669 \end_inset
7670
7671  [
7672 \begin_inset Flex Code
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 <モジュール>
7677 \end_layout
7678
7679 \end_inset
7680
7681 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7682 \begin_inset Flex Code
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 .module
7687 \end_layout
7688
7689 \end_inset
7690
7691 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7692 既存の文書にこの文書クラスが選択したときのみ該当します)。
7693 \end_layout
7694
7695 \begin_layout Description
7696 \begin_inset Flex Code
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 DefaultStyle
7701 \end_layout
7702
7703 \end_inset
7704
7705  [
7706 \begin_inset Flex Code
7707 status collapsed
7708
7709 \begin_layout Plain Layout
7710 <様式>
7711 \end_layout
7712
7713 \end_inset
7714
7715 ]
7716 \lang english
7717  
7718 \lang japanese
7719 これは新規段落に割り当てられる様式であり、通常は
7720 \begin_inset Flex MenuItem
7721 status collapsed
7722
7723 \begin_layout Plain Layout
7724 標準
7725 \end_layout
7726
7727 \end_inset
7728
7729 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7730 \end_layout
7731
7732 \begin_layout Description
7733 \begin_inset Flex Code
7734 status collapsed
7735
7736 \begin_layout Plain Layout
7737 ExcludesModule
7738 \end_layout
7739
7740 \end_inset
7741
7742  [
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 <モジュール>
7748 \end_layout
7749
7750 \end_inset
7751
7752 ] このタグは、指定されたモジュール—
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 .module
7758 \end_layout
7759
7760 \end_inset
7761
7762 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7763 に振る
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 theorems-sec
7769 \end_layout
7770
7771 \end_inset
7772
7773 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7774 \emph on
7775 使用してはいけません
7776 \emph default
7777 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
7778 \begin_inset CommandInset ref
7779 LatexCommand ref
7780 reference "subsec:レイアウトモジュール"
7781
7782 \end_inset
7783
7784 参照)。
7785 \end_layout
7786
7787 \begin_layout Description
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792 Float
7793 \end_layout
7794
7795 \end_inset
7796
7797  フロートを新規に定義します。詳細は、
7798 \begin_inset CommandInset ref
7799 LatexCommand ref
7800 reference "subsec:フロート"
7801
7802 \end_inset
7803
7804 を参照してください。「
7805 \begin_inset Flex Code
7806 status collapsed
7807
7808 \begin_layout Plain Layout
7809 End
7810 \end_layout
7811
7812 \end_inset
7813
7814 」で閉じる必要があります。
7815 \end_layout
7816
7817 \begin_layout Description
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 HTMLPreamble
7823 \end_layout
7824
7825 \end_inset
7826
7827  この文書クラスがXHTMLに出力されるときに、
7828 \begin_inset Flex Code
7829 status collapsed
7830
7831 \begin_layout Plain Layout
7832 <head>
7833 \end_layout
7834
7835 \end_inset
7836
7837 ブロックに出力される情報です。これより前に出現した
7838 \begin_inset Flex Code
7839 status collapsed
7840
7841 \begin_layout Plain Layout
7842 HTMLPreamble
7843 \end_layout
7844
7845 \end_inset
7846
7847
7848 \begin_inset Flex Code
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852 AddToHTMLPreamble
7853 \end_layout
7854
7855 \end_inset
7856
7857 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7858 \begin_inset Flex Code
7859 status collapsed
7860
7861 \begin_layout Plain Layout
7862 AddToHTMLPreamble
7863 \end_layout
7864
7865 \end_inset
7866
7867 を使用してください)。これは「
7868 \begin_inset Flex Code
7869 status collapsed
7870
7871 \begin_layout Plain Layout
7872 EndPreamble
7873 \end_layout
7874
7875 \end_inset
7876
7877 」で閉じる必要があります。
7878 \end_layout
7879
7880 \begin_layout Description
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 HTMLTOCSection
7886 \end_layout
7887
7888 \end_inset
7889
7890  [
7891 \begin_inset Flex Code
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 <様式>
7896 \end_layout
7897
7898 \end_inset
7899
7900 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7901 。これを指定しない場合には、\SpecialChar LyX
7902 はどのレイアウトを使用するべきか、解析しようと試みます。
7903 \end_layout
7904
7905 \begin_layout Description
7906 \begin_inset Flex Code
7907 status collapsed
7908
7909 \begin_layout Plain Layout
7910 IfCounter 
7911 \end_layout
7912
7913 \end_inset
7914
7915  [
7916 \begin_inset Flex Code
7917 status collapsed
7918
7919 \begin_layout Plain Layout
7920 <カウンタ>
7921 \end_layout
7922
7923 \end_inset
7924
7925 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 End
7931 \end_layout
7932
7933 \end_inset
7934
7935 」で閉じる必要があります。
7936 \begin_inset Newline newline
7937 \end_inset
7938
7939 カウンタについての詳細は、
7940 \begin_inset CommandInset ref
7941 LatexCommand ref
7942 reference "subsec:カウンタ"
7943
7944 \end_inset
7945
7946 をご覧ください。
7947 \end_layout
7948
7949 \begin_layout Description
7950 \begin_inset Flex Code
7951 status collapsed
7952
7953 \begin_layout Plain Layout
7954 IfStyle
7955 \end_layout
7956
7957 \end_inset
7958
7959  [
7960 \begin_inset Flex Code
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 <様式>
7965 \end_layout
7966
7967 \end_inset
7968
7969 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7970 \begin_inset Flex Code
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 End
7975 \end_layout
7976
7977 \end_inset
7978
7979 」で閉じる必要があります。
7980 \end_layout
7981
7982 \begin_layout Description
7983 \begin_inset Flex Code
7984 status collapsed
7985
7986 \begin_layout Plain Layout
7987 Input
7988 \end_layout
7989
7990 \end_inset
7991
7992  [
7993 \begin_inset Flex Code
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 <ファイル名>
7998 \end_layout
7999
8000 \end_inset
8001
8002 ]
8003 \lang english
8004  
8005 \lang japanese
8006 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8007 のほとんどを収録している
8008 \begin_inset Flex Code
8009 status collapsed
8010
8011 \begin_layout Plain Layout
8012 stdclass.inc
8013 \end_layout
8014
8015 \end_inset
8016
8017 のような標準レイアウトファイルです。
8018 \end_layout
8019
8020 \begin_layout Description
8021 \begin_inset Flex Code
8022 status collapsed
8023
8024 \begin_layout Plain Layout
8025 InsetLayout
8026 \end_layout
8027
8028 \end_inset
8029
8030  [
8031 \begin_inset Flex Code
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035 <型>
8036 \end_layout
8037
8038 \end_inset
8039
8040 ]
8041 \lang english
8042  
8043 \lang japanese
8044 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8045 \begin_inset Flex Code
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049 End
8050 \end_layout
8051
8052 \end_inset
8053
8054 」で閉じる必要があります。
8055 \begin_inset Newline newline
8056 \end_inset
8057
8058 詳しい情報は、
8059 \begin_inset CommandInset ref
8060 LatexCommand ref
8061 reference "subsec:任意設定差込枠"
8062
8063 \end_inset
8064
8065 をご覧ください。
8066 \end_layout
8067
8068 \begin_layout Description
8069 \begin_inset Flex Code
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 LeftMargin
8074 \end_layout
8075
8076 \end_inset
8077
8078  [
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 文字列
8084 \end_layout
8085
8086 \end_inset
8087
8088 ] 画面上の左余白の幅を指示する文字列。例:「
8089 \begin_inset Flex Code
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 MMMMM
8094 \end_layout
8095
8096 \end_inset
8097
8098 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8099 \end_layout
8100
8101 \begin_layout Description
8102 \begin_inset Flex Code
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 NoCounter
8107 \end_layout
8108
8109 \end_inset
8110
8111  [
8112 \begin_inset Flex Code
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 <カウンタ>
8117 \end_layout
8118
8119 \end_inset
8120
8121 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8122 \end_layout
8123
8124 \begin_layout Description
8125 \begin_inset Flex Code
8126 status collapsed
8127
8128 \begin_layout Plain Layout
8129 NoFloat
8130 \end_layout
8131
8132 \end_inset
8133
8134  [
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 <フロート>
8140 \end_layout
8141
8142 \end_inset
8143
8144 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8145 \end_layout
8146
8147 \begin_layout Description
8148 \begin_inset Flex Code
8149 status collapsed
8150
8151 \begin_layout Plain Layout
8152 NoStyle
8153 \end_layout
8154
8155 \end_inset
8156
8157  [
8158 \begin_inset Flex Code
8159 status collapsed
8160
8161 \begin_layout Plain Layout
8162 <様式>
8163 \end_layout
8164
8165 \end_inset
8166
8167 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8168 \end_layout
8169
8170 \begin_layout Description
8171 \begin_inset Flex Code
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 OutputFormat
8176 \end_layout
8177
8178 \end_inset
8179
8180  [
8181 \begin_inset Flex Code
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 <形式>
8186 \end_layout
8187
8188 \end_inset
8189
8190 ] このクラスによって生成されるファイル形式を示す文字列(
8191 \family sans
8192 設定
8193 \family default
8194 ダイアログで定義される形のもの)。おもに、
8195 \begin_inset Flex Code
8196 status collapsed
8197
8198 \begin_layout Plain Layout
8199 OutputType
8200 \end_layout
8201
8202 \end_inset
8203
8204
8205 \begin_inset Flex Code
8206 status collapsed
8207
8208 \begin_layout Plain Layout
8209 literate
8210 \end_layout
8211
8212 \end_inset
8213
8214 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8215 \begin_inset Flex Code
8216 status collapsed
8217
8218 \begin_layout Plain Layout
8219 OutputType
8220 \end_layout
8221
8222 \end_inset
8223
8224 パラメーターに遭遇したときには、この文字列は、「
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 docbook
8230 \end_layout
8231
8232 \end_inset
8233
8234 」・「
8235 \begin_inset Flex Code
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 lat
8240 \emph on
8241 ex
8242 \end_layout
8243
8244 \end_inset
8245
8246 」のいずれかにリセットされます。
8247 \end_layout
8248
8249 \begin_layout Description
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 OutputType
8255 \end_layout
8256
8257 \end_inset
8258
8259  [
8260 \begin_inset Flex Code
8261 status collapsed
8262
8263 \begin_layout Plain Layout
8264
8265 \emph on
8266 lat
8267 \emph default
8268 ex
8269 \end_layout
8270
8271 \end_inset
8272
8273
8274 \begin_inset Flex Code
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278 docbook
8279 \end_layout
8280
8281 \end_inset
8282
8283
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 literate
8289 \end_layout
8290
8291 \end_inset
8292
8293 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8294 \end_layout
8295
8296 \begin_layout Description
8297 \begin_inset Flex Code
8298 status collapsed
8299
8300 \begin_layout Plain Layout
8301 PackageOptions
8302 \end_layout
8303
8304 \end_inset
8305
8306  [
8307 \begin_inset Flex Code
8308 status collapsed
8309
8310 \begin_layout Plain Layout
8311 文字列
8312 \end_layout
8313
8314 \end_inset
8315
8316  
8317 \begin_inset Flex Code
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 文字列
8322 \end_layout
8323
8324 \end_inset
8325
8326 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8327 \begin_inset Flex Code
8328 status collapsed
8329
8330 \begin_layout Plain Layout
8331 PackageOptions natbib square
8332 \end_layout
8333
8334 \end_inset
8335
8336 」とすると、
8337 \begin_inset Flex Code
8338 status collapsed
8339
8340 \begin_layout Plain Layout
8341 natbib
8342 \end_layout
8343
8344 \end_inset
8345
8346
8347 \begin_inset Flex Code
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351 square
8352 \end_layout
8353
8354 \end_inset
8355
8356 オプションとともに読み込みます(\SpecialChar TeX
8357 perts向けに述べると、これは、
8358 \begin_inset Flex Code
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362 natbib
8363 \end_layout
8364
8365 \end_inset
8366
8367 を読み込む前に、\SpecialChar LyX
8368
8369 \begin_inset Flex Code
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373
8374 \backslash
8375 PassOptionsToPackage{natbib}{square}
8376 \end_layout
8377
8378 \end_inset
8379
8380 を出力させます)。
8381 \end_layout
8382
8383 \begin_layout Description
8384 \begin_inset Flex Code
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 PageStyle
8389 \end_layout
8390
8391 \end_inset
8392
8393  [
8394 \emph on
8395
8396 \begin_inset Flex Code
8397 status collapsed
8398
8399 \begin_layout Plain Layout
8400 plain
8401 \end_layout
8402
8403 \end_inset
8404
8405
8406 \emph default
8407
8408 \begin_inset Flex Code
8409 status collapsed
8410
8411 \begin_layout Plain Layout
8412 empty
8413 \end_layout
8414
8415 \end_inset
8416
8417
8418 \begin_inset Flex Code
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 headings
8423 \end_layout
8424
8425 \end_inset
8426
8427 ] 既定ページ様式。
8428 \begin_inset Flex MenuItem
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 文書\SpecialChar menuseparator
8433 設定
8434 \end_layout
8435
8436 \end_inset
8437
8438 ダイアログで変更することができます。
8439 \end_layout
8440
8441 \begin_layout Description
8442 \begin_inset Flex Code
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 Preamble
8447 \end_layout
8448
8449 \end_inset
8450
8451  \SpecialChar LaTeX
8452 文書のプリアンブルを設定します。前に行った
8453 \begin_inset Flex Code
8454 status collapsed
8455
8456 \begin_layout Plain Layout
8457 Preamble
8458 \end_layout
8459
8460 \end_inset
8461
8462 宣言や
8463 \begin_inset Flex Code
8464 status collapsed
8465
8466 \begin_layout Plain Layout
8467 AddToPreamble
8468 \end_layout
8469
8470 \end_inset
8471
8472 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8473 \begin_inset Flex Code
8474 status collapsed
8475
8476 \begin_layout Plain Layout
8477 AddToPreamble
8478 \end_layout
8479
8480 \end_inset
8481
8482 を使用してください。)「
8483 \begin_inset Flex Code
8484 status collapsed
8485
8486 \begin_layout Plain Layout
8487 EndPreamble
8488 \end_layout
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 Provides
8501 \end_layout
8502
8503 \end_inset
8504
8505  [
8506 \begin_inset Flex Code
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 文字列
8511 \end_layout
8512
8513 \end_inset
8514
8515 ] [
8516 \begin_inset Flex Code
8517 status collapsed
8518
8519 \begin_layout Plain Layout
8520
8521 \emph on
8522 0
8523 \end_layout
8524
8525 \end_inset
8526
8527
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 1
8533 \end_layout
8534
8535 \end_inset
8536
8537 ] このクラスが
8538 \begin_inset Flex Code
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 文字列
8543 \end_layout
8544
8545 \end_inset
8546
8547 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8548 \begin_inset Flex Code
8549 status collapsed
8550
8551 \begin_layout Plain Layout
8552 amsmath
8553 \end_layout
8554
8555 \end_inset
8556
8557
8558 \begin_inset Flex Code
8559 status collapsed
8560
8561 \begin_layout Plain Layout
8562 makeidx
8563 \end_layout
8564
8565 \end_inset
8566
8567 ・\SpecialChar ldots
8568 )やマクロ名(
8569 \begin_inset Flex Code
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 url
8574 \end_layout
8575
8576 \end_inset
8577
8578
8579 \begin_inset Flex Code
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 boldsymbol
8584 \end_layout
8585
8586 \end_inset
8587
8588 ・\SpecialChar ldots
8589 )です。機能一覧については、
8590 \begin_inset CommandInset ref
8591 LatexCommand ref
8592 reference "chap:関数一覧"
8593
8594 \end_inset
8595
8596 を参照。
8597 \end_layout
8598
8599 \begin_layout Description
8600 \begin_inset Flex Code
8601 status collapsed
8602
8603 \begin_layout Plain Layout
8604 ProvidesModule
8605 \end_layout
8606
8607 \end_inset
8608
8609  [
8610 \begin_inset Flex Code
8611 status collapsed
8612
8613 \begin_layout Plain Layout
8614 文字列
8615 \end_layout
8616
8617 \end_inset
8618
8619 ] このレイアウトが
8620 \begin_inset Flex Code
8621 status collapsed
8622
8623 \begin_layout Plain Layout
8624 文字列
8625 \end_layout
8626
8627 \end_inset
8628
8629 で表されているモジュールの機能を提供することを示し、
8630 \begin_inset Flex Code
8631 status collapsed
8632
8633 \begin_layout Plain Layout
8634 .module
8635 \end_layout
8636
8637 \end_inset
8638
8639 拡張子を除いたファイル名で指定します。
8640 \begin_inset Flex Code
8641 status collapsed
8642
8643 \begin_layout Plain Layout
8644 DefaultModule
8645 \end_layout
8646
8647 \end_inset
8648
8649 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8650 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8651 \end_layout
8652
8653 \begin_layout Description
8654 \begin_inset Flex Code
8655 status collapsed
8656
8657 \begin_layout Plain Layout
8658 Requires
8659 \end_layout
8660
8661 \end_inset
8662
8663  [
8664 \begin_inset Flex Code
8665 status collapsed
8666
8667 \begin_layout Plain Layout
8668 文字列
8669 \end_layout
8670
8671 \end_inset
8672
8673 ] このクラスが
8674 \begin_inset Flex Code
8675 status collapsed
8676
8677 \begin_layout Plain Layout
8678 文字列
8679 \end_layout
8680
8681 \end_inset
8682
8683 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8684 さい(機能一覧については
8685 \begin_inset CommandInset ref
8686 LatexCommand ref
8687 reference "chap:関数一覧"
8688
8689 \end_inset
8690
8691 を参照)。特定のオプションをとるパッケージを要求する場合、
8692 \begin_inset Flex Code
8693 status collapsed
8694
8695 \begin_layout Plain Layout
8696 PackageOptions
8697 \end_layout
8698
8699 \end_inset
8700
8701 を追加して使うことができます。
8702 \end_layout
8703
8704 \begin_layout Description
8705 \begin_inset Flex Code
8706 status collapsed
8707
8708 \begin_layout Plain Layout
8709 RightMargin
8710 \end_layout
8711
8712 \end_inset
8713
8714  [
8715 \begin_inset Flex Code
8716 status collapsed
8717
8718 \begin_layout Plain Layout
8719 文字列
8720 \end_layout
8721
8722 \end_inset
8723
8724 ] 画面上の右余白の幅を指示する文字列。例:「
8725 \begin_inset Flex Code
8726 status collapsed
8727
8728 \begin_layout Plain Layout
8729 MMMMM
8730 \end_layout
8731
8732 \end_inset
8733
8734 」。
8735 \end_layout
8736
8737 \begin_layout Description
8738 \begin_inset Flex Code
8739 status collapsed
8740
8741 \begin_layout Plain Layout
8742 SecNumDepth
8743 \end_layout
8744
8745 \end_inset
8746
8747  [
8748 \begin_inset Flex Code
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 int=3
8753 \end_layout
8754
8755 \end_inset
8756
8757 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
8758 における
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 secnumdepth
8764 \end_layout
8765
8766 \end_inset
8767
8768 カウンタに対応します。
8769 \end_layout
8770
8771 \begin_layout Description
8772 \begin_inset Flex Code
8773 status collapsed
8774
8775 \begin_layout Plain Layout
8776 Sides
8777 \end_layout
8778
8779 \end_inset
8780
8781  [
8782 \emph on
8783
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 1
8789 \end_layout
8790
8791 \end_inset
8792
8793
8794 \emph default
8795 ,
8796 \begin_inset space \thinspace{}
8797 \end_inset
8798
8799
8800 \begin_inset Flex Code
8801 status collapsed
8802
8803 \begin_layout Plain Layout
8804 2
8805 \end_layout
8806
8807 \end_inset
8808
8809 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8810 \begin_inset Flex MenuItem
8811 status collapsed
8812
8813 \begin_layout Plain Layout
8814 文書\SpecialChar menuseparator
8815 設定
8816 \end_layout
8817
8818 \end_inset
8819
8820 ダイアログで変更することができます。
8821 \end_layout
8822
8823 \begin_layout Description
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 Style
8829 \end_layout
8830
8831 \end_inset
8832
8833  [
8834 \begin_inset Flex Code
8835 status collapsed
8836
8837 \begin_layout Plain Layout
8838 <名称>
8839 \end_layout
8840
8841 \end_inset
8842
8843 ]
8844 \lang english
8845  
8846 \lang japanese
8847 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8848 \begin_inset Flex Code
8849 status collapsed
8850
8851 \begin_layout Plain Layout
8852 End
8853 \end_layout
8854
8855 \end_inset
8856
8857 」で閉じる必要があります。
8858 \begin_inset Newline newline
8859 \end_inset
8860
8861 段落様式に関する詳細は、
8862 \begin_inset CommandInset ref
8863 LatexCommand ref
8864 reference "subsec:段落様式-XHTML"
8865
8866 \end_inset
8867
8868 をご覧ください。
8869 \end_layout
8870
8871 \begin_layout Description
8872 \begin_inset Flex Code
8873 status collapsed
8874
8875 \begin_layout Plain Layout
8876 TitleLatexName
8877 \end_layout
8878
8879 \end_inset
8880
8881  [
8882 \begin_inset Flex Code
8883 status collapsed
8884
8885 \begin_layout Plain Layout
8886 文字列="maketitle"
8887 \end_layout
8888
8889 \end_inset
8890
8891
8892 \begin_inset Flex Code
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 TitleLatexType
8897 \end_layout
8898
8899 \end_inset
8900
8901 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8902  
8903 \begin_inset Flex Code
8904 status collapsed
8905
8906 \begin_layout Plain Layout
8907 TitleLatexType
8908 \end_layout
8909
8910 \end_inset
8911
8912 .
8913 \end_layout
8914
8915 \begin_layout Description
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 TitleLatexType
8921 \end_layout
8922
8923 \end_inset
8924
8925  [
8926 \begin_inset Flex Code
8927 status collapsed
8928
8929 \begin_layout Plain Layout
8930
8931 \emph on
8932 CommandAfter
8933 \end_layout
8934
8935 \end_inset
8936
8937
8938 \begin_inset Flex Code
8939 status collapsed
8940
8941 \begin_layout Plain Layout
8942 Environment
8943 \end_layout
8944
8945 \end_inset
8946
8947 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8948 \begin_inset Flex Code
8949 status collapsed
8950
8951 \begin_layout Plain Layout
8952 CommandAfter
8953 \end_layout
8954
8955 \end_inset
8956
8957 は、「
8958 \begin_inset Flex Code
8959 status collapsed
8960
8961 \begin_layout Plain Layout
8962 InTitle
8963 \begin_inset space ~
8964 \end_inset
8965
8966 1
8967 \end_layout
8968
8969 \end_inset
8970
8971 」が指定されている最後のレイアウトの後に、
8972 \begin_inset Flex Code
8973 status collapsed
8974
8975 \begin_layout Plain Layout
8976 TitleLatexName
8977 \end_layout
8978
8979 \end_inset
8980
8981 で指定したマクロ名を挿入することを意味します。
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 Environment
8987 \end_layout
8988
8989 \end_inset
8990
8991 は、「
8992 \begin_inset Flex Code
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996 InTitle
8997 \begin_inset space ~
8998 \end_inset
8999
9000 1
9001 \end_layout
9002
9003 \end_inset
9004
9005 」を持つ段落群を
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010 TitleLatexName
9011 \end_layout
9012
9013 \end_inset
9014
9015 で指定した環境でくるむ場合に対応します。
9016 \end_layout
9017
9018 \begin_layout Description
9019 \begin_inset Flex Code
9020 status collapsed
9021
9022 \begin_layout Plain Layout
9023 TocDepth
9024 \end_layout
9025
9026 \end_inset
9027
9028  [
9029 \begin_inset Flex Code
9030 status collapsed
9031
9032 \begin_layout Plain Layout
9033 int=3
9034 \end_layout
9035
9036 \end_inset
9037
9038 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9039
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 tocdepth
9045 \end_layout
9046
9047 \end_inset
9048
9049 カウンタに対応します。
9050 \end_layout
9051
9052 \begin_layout Subsection
9053 \begin_inset Flex Code
9054 status collapsed
9055
9056 \begin_layout Plain Layout
9057 ClassOptions
9058 \end_layout
9059
9060 \end_inset
9061
9062
9063 \begin_inset CommandInset label
9064 LatexCommand label
9065 name "subsec:ClassOptions"
9066
9067 \end_inset
9068
9069
9070 \end_layout
9071
9072 \begin_layout Standard
9073 \begin_inset Flex Code
9074 status collapsed
9075
9076 \begin_layout Plain Layout
9077 ClassOptions
9078 \end_layout
9079
9080 \end_inset
9081
9082 部は、以下の項目を取り得ます。
9083 \end_layout
9084
9085 \begin_layout Description
9086 \begin_inset Flex Code
9087 status collapsed
9088
9089 \begin_layout Plain Layout
9090 FontSize
9091 \end_layout
9092
9093 \end_inset
9094
9095  [
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 文字列="10|11|12"
9101 \end_layout
9102
9103 \end_inset
9104
9105 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9106 \begin_inset Flex Code
9107 status collapsed
9108
9109 \begin_layout Plain Layout
9110 |
9111 \end_layout
9112
9113 \end_inset
9114
9115 」で区切ります。
9116 \end_layout
9117
9118 \begin_layout Description
9119 \begin_inset Flex Code
9120 status collapsed
9121
9122 \begin_layout Plain Layout
9123 Header
9124 \end_layout
9125
9126 \end_inset
9127
9128  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9129 \begin_inset Quotes eld
9130 \end_inset
9131
9132 -//OASIS//DTD DocBook V4.2//EN
9133 \begin_inset Quotes erd
9134 \end_inset
9135
9136
9137 \end_layout
9138
9139 \begin_layout Description
9140 \begin_inset Flex Code
9141 status collapsed
9142
9143 \begin_layout Plain Layout
9144 PageStyle
9145 \end_layout
9146
9147 \end_inset
9148
9149  [
9150 \begin_inset Flex Code
9151 status collapsed
9152
9153 \begin_layout Plain Layout
9154 文字列="empty|plain|headings|fancy"
9155 \end_layout
9156
9157 \end_inset
9158
9159 ] 使用できるページ様式の一覧です。「
9160 \begin_inset Flex Code
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 |
9165 \end_layout
9166
9167 \end_inset
9168
9169 」で区切ります。
9170 \end_layout
9171
9172 \begin_layout Description
9173 \begin_inset Flex Code
9174 status collapsed
9175
9176 \begin_layout Plain Layout
9177 Other
9178 \end_layout
9179
9180 \end_inset
9181
9182  [
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 文字列=""
9188 \end_layout
9189
9190 \end_inset
9191
9192
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197
9198 \backslash
9199 documentclass
9200 \end_layout
9201
9202 \end_inset
9203
9204 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9205 \end_layout
9206
9207 \begin_layout Standard
9208 \begin_inset Flex Code
9209 status collapsed
9210
9211 \begin_layout Plain Layout
9212 ClassOptions
9213 \end_layout
9214
9215 \end_inset
9216
9217 部は「
9218 \begin_inset Flex Code
9219 status collapsed
9220
9221 \begin_layout Plain Layout
9222 End
9223 \end_layout
9224
9225 \end_inset
9226
9227 」で閉じる必要があります。
9228 \end_layout
9229
9230 \begin_layout Subsection
9231 段落様式
9232 \begin_inset CommandInset label
9233 LatexCommand label
9234 name "subsec:段落様式"
9235
9236 \end_inset
9237
9238
9239 \end_layout
9240
9241 \begin_layout Standard
9242 段落様式の記述は、以下のようになります
9243 \begin_inset Foot
9244 status collapsed
9245
9246 \begin_layout Plain Layout
9247 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9248 \end_layout
9249
9250 \end_inset
9251
9252
9253 \end_layout
9254
9255 \begin_layout LyX-Code
9256 Style 
9257 \family roman
9258 \emph on
9259 名称
9260 \end_layout
9261
9262 \begin_layout LyX-Code
9263  ...
9264 \end_layout
9265
9266 \begin_layout LyX-Code
9267 End
9268 \end_layout
9269
9270 \begin_layout Standard
9271 ここでは、以下のコマンドを使用することができます。
9272 \end_layout
9273
9274 \begin_layout Description
9275 \begin_inset Flex Code
9276 status collapsed
9277
9278 \begin_layout Plain Layout
9279 Align
9280 \end_layout
9281
9282 \end_inset
9283
9284  [
9285 \begin_inset Flex Code
9286 status collapsed
9287
9288 \begin_layout Plain Layout
9289
9290 \emph on
9291 block
9292 \emph default
9293 , left, right, center
9294 \end_layout
9295
9296 \end_inset
9297
9298 ] 段落の揃え。
9299 \end_layout
9300
9301 \begin_layout Description
9302 \begin_inset Flex Code
9303 status collapsed
9304
9305 \begin_layout Plain Layout
9306 AlignPossible
9307 \end_layout
9308
9309 \end_inset
9310
9311  [
9312 \begin_inset Flex Code
9313 status collapsed
9314
9315 \begin_layout Plain Layout
9316
9317 \emph on
9318 block
9319 \emph default
9320 , left, right, center
9321 \end_layout
9322
9323 \end_inset
9324
9325 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9326 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9327 はできません)。
9328 \end_layout
9329
9330 \begin_layout Description
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 Argument
9336 \end_layout
9337
9338 \end_inset
9339
9340  [
9341 \begin_inset Flex Code
9342 status collapsed
9343
9344 \begin_layout Plain Layout
9345 整数
9346 \end_layout
9347
9348 \end_inset
9349
9350 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9351 でのみ意味を持ちます。コマンドまたは環
9352 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 EndArgument
9358 \end_layout
9359
9360 \end_inset
9361
9362 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9363 \begin_inset Separator parbreak
9364 \end_inset
9365
9366
9367 \end_layout
9368
9369 \begin_deeper
9370 \begin_layout Quote
9371
9372 \family typewriter
9373 Argument 1
9374 \end_layout
9375
9376 \begin_layout Quote
9377
9378 \family typewriter
9379 ...
9380 \end_layout
9381
9382 \begin_layout Quote
9383
9384 \family typewriter
9385 EndArgument
9386 \end_layout
9387
9388 \begin_layout Quote
9389
9390 \family typewriter
9391 Argument 2
9392 \end_layout
9393
9394 \begin_layout Quote
9395
9396 \family typewriter
9397 ...
9398 \end_layout
9399
9400 \begin_layout Quote
9401
9402 \family typewriter
9403 EndArgument
9404 \end_layout
9405
9406 \begin_layout Standard
9407 \begin_inset Flex Code
9408 status collapsed
9409
9410 \begin_layout Plain Layout
9411 Argument
9412 \end_layout
9413
9414 \end_inset
9415
9416 定義内部では、以下の指定をすることができます。
9417 \end_layout
9418
9419 \begin_layout Itemize
9420 \begin_inset Flex Code
9421 status collapsed
9422
9423 \begin_layout Plain Layout
9424 LabelString
9425 \end_layout
9426
9427 \end_inset
9428
9429  
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 [文字列]
9435 \end_layout
9436
9437 \end_inset
9438
9439  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 MenuString
9445 \end_layout
9446
9447 \end_inset
9448
9449 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9450 \begin_inset space \space{}
9451 \end_inset
9452
9453
9454 \begin_inset Quotes eld
9455 \end_inset
9456
9457
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 Short Title|S
9463 \end_layout
9464
9465 \end_inset
9466
9467
9468 \begin_inset Quotes erd
9469 \end_inset
9470
9471 )。
9472 \end_layout
9473
9474 \begin_layout Itemize
9475 \begin_inset Flex Code
9476 status collapsed
9477
9478 \begin_layout Plain Layout
9479 MenuString
9480 \end_layout
9481
9482 \end_inset
9483
9484  
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 [文字列]
9490 \end_layout
9491
9492 \end_inset
9493
9494  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9495 \begin_inset space \space{}
9496 \end_inset
9497
9498
9499 \begin_inset Quotes eld
9500 \end_inset
9501
9502
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 Short Title|S
9508 \end_layout
9509
9510 \end_inset
9511
9512
9513 \begin_inset Quotes erd
9514 \end_inset
9515
9516 )。この指定は必須ではありません。指定しない場合には、代わりに
9517 \begin_inset Flex Code
9518 status collapsed
9519
9520 \begin_layout Plain Layout
9521 LabelString
9522 \end_layout
9523
9524 \end_inset
9525
9526 がメニューに用いられます。
9527 \end_layout
9528
9529 \begin_layout Itemize
9530 \begin_inset Flex Code
9531 status collapsed
9532
9533 \begin_layout Plain Layout
9534 Tooltip
9535 \end_layout
9536
9537 \end_inset
9538
9539  
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 [文字列]
9545 \end_layout
9546
9547 \end_inset
9548
9549  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9550 \end_layout
9551
9552 \begin_layout Itemize
9553 \begin_inset Flex Code
9554 status collapsed
9555
9556 \begin_layout Plain Layout
9557 Mandatory
9558 \end_layout
9559
9560 \end_inset
9561
9562  [
9563 \begin_inset Flex Code
9564 status collapsed
9565
9566 \begin_layout Plain Layout
9567
9568 \emph on
9569 0
9570 \end_layout
9571
9572 \end_inset
9573
9574 ,
9575 \begin_inset space \thinspace{}
9576 \end_inset
9577
9578
9579 \begin_inset Flex Code
9580 status collapsed
9581
9582 \begin_layout Plain Layout
9583 1
9584 \end_layout
9585
9586 \end_inset
9587
9588 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9589 。既定では、必須引数は
9590 \begin_inset Flex Code
9591 status collapsed
9592
9593 \begin_layout Plain Layout
9594 {...}
9595 \end_layout
9596
9597 \end_inset
9598
9599 で区切られ、非必須引数は
9600 \begin_inset Flex Code
9601 status collapsed
9602
9603 \begin_layout Plain Layout
9604 [...]
9605 \end_layout
9606
9607 \end_inset
9608
9609 で区切られます。
9610 \end_layout
9611
9612 \begin_layout Itemize
9613 \begin_inset Flex Code
9614 status collapsed
9615
9616 \begin_layout Plain Layout
9617 Requires
9618 \end_layout
9619
9620 \end_inset
9621
9622  
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 [整数=0]
9628 \end_layout
9629
9630 \end_inset
9631
9632  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9633 コマンドでは、
9634 \begin_inset Flex Code
9635 status collapsed
9636
9637 \begin_layout Plain Layout
9638
9639 \backslash
9640 command[][引数]{文字列}
9641 \end_layout
9642
9643 \end_inset
9644
9645 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9646 \begin_inset Flex Code
9647 status collapsed
9648
9649 \begin_layout Plain Layout
9650 Argument 2
9651 \end_layout
9652
9653 \end_inset
9654
9655 中に
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 Requires 1
9661 \end_layout
9662
9663 \end_inset
9664
9665 ステートメントを置くことで実現できます。
9666 \end_layout
9667
9668 \begin_layout Itemize
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 LeftDelim
9674 \end_layout
9675
9676 \end_inset
9677
9678  
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 [文字列]
9684 \end_layout
9685
9686 \end_inset
9687
9688  (
9689 \begin_inset Flex Code
9690 status collapsed
9691
9692 \begin_layout Plain Layout
9693 {
9694 \end_layout
9695
9696 \end_inset
9697
9698
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 [
9704 \end_layout
9705
9706 \end_inset
9707
9708 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
9709 \begin_inset Flex Code
9710 status collapsed
9711
9712 \begin_layout Plain Layout
9713 <br/>
9714 \end_layout
9715
9716 \end_inset
9717
9718 で指示できます。
9719 \end_layout
9720
9721 \begin_layout Itemize
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 RightDelim
9727 \end_layout
9728
9729 \end_inset
9730
9731  
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 [文字列]
9737 \end_layout
9738
9739 \end_inset
9740
9741  (
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 }
9747 \end_layout
9748
9749 \end_inset
9750
9751
9752 \begin_inset Flex Code
9753 status collapsed
9754
9755 \begin_layout Plain Layout
9756 ]
9757 \end_layout
9758
9759 \end_inset
9760
9761 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
9762 \begin_inset Flex Code
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 <br/>
9767 \end_layout
9768
9769 \end_inset
9770
9771 で指示できます。
9772 \end_layout
9773
9774 \begin_layout Itemize
9775 \begin_inset Flex Code
9776 status collapsed
9777
9778 \begin_layout Plain Layout
9779 DefaultArg
9780 \end_layout
9781
9782 \end_inset
9783
9784  
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 [文字列]
9790 \end_layout
9791
9792 \end_inset
9793
9794  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9795 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
9796 \end_layout
9797
9798 \begin_layout Itemize
9799 \begin_inset Flex Code
9800 status collapsed
9801
9802 \begin_layout Plain Layout
9803 PresetArg
9804 \end_layout
9805
9806 \end_inset
9807
9808  
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 [文字列]
9814 \end_layout
9815
9816 \end_inset
9817
9818  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
9819 \end_layout
9820
9821 \begin_layout Itemize
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 Font
9827 \end_layout
9828
9829 \end_inset
9830
9831  引数の内容に用いられるフォント。
9832 \begin_inset CommandInset ref
9833 LatexCommand ref
9834 reference "subsec:フォント指定"
9835
9836 \end_inset
9837
9838 参照。
9839 \end_layout
9840
9841 \begin_layout Itemize
9842 \begin_inset Flex Code
9843 status collapsed
9844
9845 \begin_layout Plain Layout
9846 LabelFont
9847 \end_layout
9848
9849 \end_inset
9850
9851  ラベルに用いられるフォント。
9852 \begin_inset CommandInset ref
9853 LatexCommand ref
9854 reference "subsec:フォント指定"
9855
9856 \end_inset
9857
9858 参照。
9859 \end_layout
9860
9861 \begin_layout Itemize
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 Decoration
9867 \end_layout
9868
9869 \end_inset
9870
9871  [
9872 \begin_inset Flex Code
9873 status collapsed
9874
9875 \begin_layout Plain Layout
9876
9877 \emph on
9878 Classic
9879 \emph default
9880 , Minimalistic, Conglomerate
9881 \end_layout
9882
9883 \end_inset
9884
9885 ] 差込枠の枠とボタンに用いられる装飾様式。
9886 \end_layout
9887
9888 \begin_layout Itemize
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 AutoInsert
9894 \end_layout
9895
9896 \end_inset
9897
9898  
9899 \begin_inset Flex Code
9900 status collapsed
9901
9902 \begin_layout Plain Layout
9903 [整数=0]
9904 \end_layout
9905
9906 \end_inset
9907
9908  これが
9909 \begin_inset Flex Code
9910 status collapsed
9911
9912 \begin_layout Plain Layout
9913 1
9914 \end_layout
9915
9916 \end_inset
9917
9918 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
9919 \end_layout
9920
9921 \begin_layout Itemize
9922 \begin_inset Flex Code
9923 status collapsed
9924
9925 \begin_layout Plain Layout
9926 InsertCotext
9927 \end_layout
9928
9929 \end_inset
9930
9931  
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936 [整数=0]
9937 \end_layout
9938
9939 \end_inset
9940
9941  これが
9942 \begin_inset Flex Code
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 1
9947 \end_layout
9948
9949 \end_inset
9950
9951 に設定されると、この引数は、副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます。
9952 \end_layout
9953
9954 \begin_layout Itemize
9955 \begin_inset Flex Code
9956 status collapsed
9957
9958 \begin_layout Plain Layout
9959 PassThruChars
9960 \end_layout
9961
9962 \end_inset
9963
9964  [
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969 文字列
9970 \end_layout
9971
9972 \end_inset
9973
9974 ]
9975 \family typewriter
9976  
9977 \family default
9978 \SpecialChar LaTeX
9979 が要求する特別な翻訳は抜きにして、生の形で出力されるべき各文字を定義します。PassThruとは違って、引数用に、これは明示的に定義されなくてはなりません。つま
9980 り、引数は、親差込枠や親レイアウトからPassThruCharsを継承しません。
9981 \end_layout
9982
9983 \begin_layout Standard
9984 既定では、
9985 \begin_inset Flex Code
9986 status collapsed
9987
9988 \begin_layout Plain Layout
9989 LatexType
9990 \end_layout
9991
9992 \end_inset
9993
9994
9995 \begin_inset Flex Code
9996 status collapsed
9997
9998 \begin_layout Plain Layout
9999 Command
10000 \end_layout
10001
10002 \end_inset
10003
10004 のとき、各レイアウトで\SpecialChar LyX
10005 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 post:
10011 \end_layout
10012
10013 \end_inset
10014
10015 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020 post:1
10021 \end_layout
10022
10023 \end_inset
10024
10025 となります。後置引数は、
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 Command
10031 \end_layout
10032
10033 \end_inset
10034
10035 以外の
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 LatexType
10041 \end_layout
10042
10043 \end_inset
10044
10045 では無視されます。
10046 \end_layout
10047
10048 \begin_layout Standard
10049 (
10050 \begin_inset Flex Code
10051 status collapsed
10052
10053 \begin_layout Plain Layout
10054
10055 \backslash
10056 item[foo]
10057 \end_layout
10058
10059 \end_inset
10060
10061 のような)箇条書き
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066
10067 \backslash
10068 item
10069 \end_layout
10070
10071 \end_inset
10072
10073 の引数は、前置句
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 item:
10079 \end_layout
10080
10081 \end_inset
10082
10083 の後に番号を付けます(例:
10084 \begin_inset Flex Code
10085 status collapsed
10086
10087 \begin_layout Plain Layout
10088 Argument item:1
10089 \end_layout
10090
10091 \end_inset
10092
10093 )。
10094 \end_layout
10095
10096 \end_deeper
10097 \begin_layout Description
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 BabelPreamble
10103 \end_layout
10104
10105 \end_inset
10106
10107  これは、前に現れたこの様式の
10108 \begin_inset Flex Code
10109 status collapsed
10110
10111 \begin_layout Plain Layout
10112 BabelPreamble
10113 \end_layout
10114
10115 \end_inset
10116
10117 宣言をすべて、完全に上書きしますので注意してください。「
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 EndBabelPreamble
10123 \end_layout
10124
10125 \end_inset
10126
10127 」で閉じる必要があります。これの利用法についての詳細は、第
10128 \begin_inset CommandInset ref
10129 LatexCommand ref
10130 reference "subsec:段落様式の国際化"
10131
10132 \end_inset
10133
10134 節をご覧ください。
10135 \end_layout
10136
10137 \begin_layout Description
10138 \begin_inset Flex Code
10139 status collapsed
10140
10141 \begin_layout Plain Layout
10142 BottomSep
10143 \end_layout
10144
10145 \end_inset
10146
10147  [
10148 \begin_inset Flex Code
10149 status collapsed
10150
10151 \begin_layout Plain Layout
10152 浮動小数点型=0
10153 \end_layout
10154
10155 \end_inset
10156
10157 ]
10158 \begin_inset Foot
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 ここで「浮動小数点型」とは1.5のような実数を指します。
10163 \end_layout
10164
10165 \end_inset
10166
10167  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10168 す。
10169 \end_layout
10170
10171 \begin_layout Description
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 Category
10177 \end_layout
10178
10179 \end_inset
10180
10181  [
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 文字列
10187 \end_layout
10188
10189 \end_inset
10190
10191 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10192 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10193 \end_layout
10194
10195 \begin_layout Description
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 CommandDepth
10201 \end_layout
10202
10203 \end_inset
10204
10205  XMLコマンドの深度。XML型の書式でのみ使用されます。
10206 \end_layout
10207
10208 \begin_layout Description
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 CopyStyle
10214 \end_layout
10215
10216 \end_inset
10217
10218  [
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 文字列
10224 \end_layout
10225
10226 \end_inset
10227
10228 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10229 \end_layout
10230
10231 \begin_layout Description
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 DependsOn
10237 \end_layout
10238
10239 \end_inset
10240
10241  [
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246 <名称>
10247 \end_layout
10248
10249 \end_inset
10250
10251 ]
10252 \lang english
10253  
10254 \lang japanese
10255 この
10256 \emph on
10257 前に
10258 \emph default
10259 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10260 \begin_inset Foot
10261 status collapsed
10262
10263 \begin_layout Plain Layout
10264 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10265 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10266 あります。
10267 \end_layout
10268
10269 \end_inset
10270
10271
10272 \end_layout
10273
10274 \begin_layout Description
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 EndLabeltype
10280 \end_layout
10281
10282 \end_inset
10283
10284  [
10285 \begin_inset Flex Code
10286 status collapsed
10287
10288 \begin_layout Plain Layout
10289
10290 \emph on
10291 No_Label
10292 \emph default
10293 , Box, Filled_Box, Static
10294 \end_layout
10295
10296 \end_inset
10297
10298 ] 段落の最後(あるいは
10299 \begin_inset Flex Code
10300 status collapsed
10301
10302 \begin_layout Plain Layout
10303 LatexType
10304 \end_layout
10305
10306 \end_inset
10307
10308 が、
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 Environment
10314 \end_layout
10315
10316 \end_inset
10317
10318
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 Item_Environment
10324 \end_layout
10325
10326 \end_inset
10327
10328
10329 \begin_inset Flex Code
10330 status collapsed
10331
10332 \begin_layout Plain Layout
10333 List_Environment
10334 \end_layout
10335
10336 \end_inset
10337
10338 のいずれかの場合は、段落群の最後)に置くラベル。
10339 \begin_inset Flex Code
10340 status collapsed
10341
10342 \begin_layout Plain Layout
10343 No_Label
10344 \end_layout
10345
10346 \end_inset
10347
10348 の場合は「何もない」ことを指し、
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 Box
10354 \end_layout
10355
10356 \end_inset
10357
10358 (あるいは
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 Filled_Box
10364 \end_layout
10365
10366 \end_inset
10367
10368 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 Static
10374 \end_layout
10375
10376 \end_inset
10377
10378 は明示したテキスト文字列を指します。
10379 \end_layout
10380
10381 \begin_layout Description
10382 \begin_inset Flex Code
10383 status collapsed
10384
10385 \begin_layout Plain Layout
10386 EndLabelString
10387 \end_layout
10388
10389 \end_inset
10390
10391  [
10392 \begin_inset Flex Code
10393 status collapsed
10394
10395 \begin_layout Plain Layout
10396 文字列=""
10397 \end_layout
10398
10399 \end_inset
10400
10401
10402 \begin_inset Flex Code
10403 status collapsed
10404
10405 \begin_layout Plain Layout
10406 Static
10407 \end_layout
10408
10409 \end_inset
10410
10411
10412 \begin_inset Flex Code
10413 status collapsed
10414
10415 \begin_layout Plain Layout
10416 EndLabelType
10417 \end_layout
10418
10419 \end_inset
10420
10421 のラベルで用いる文字列。
10422 \end_layout
10423
10424 \begin_layout Description
10425 \begin_inset Flex Code
10426 status collapsed
10427
10428 \begin_layout Plain Layout
10429 Font
10430 \end_layout
10431
10432 \end_inset
10433
10434  本文テキストとラベルの
10435 \emph on
10436 両方で
10437 \emph default
10438 用いられるフォント。第
10439 \begin_inset CommandInset ref
10440 LatexCommand ref
10441 reference "subsec:フォント指定"
10442
10443 \end_inset
10444
10445 節を参照。このフォントを定義すると、自動的に
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 LabelFont
10451 \end_layout
10452
10453 \end_inset
10454
10455 も同じ値で定義されることに注意してください。したがって、
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 LabelFont
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 ForceLocal
10474 \end_layout
10475
10476 \end_inset
10477
10478  [
10479 \begin_inset Flex Code
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483 int=0
10484 \end_layout
10485
10486 \end_inset
10487
10488 ] 新しい様式を\SpecialChar LyX
10489 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10490  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10491 できます。様式の
10492 \begin_inset Flex Code
10493 status collapsed
10494
10495 \begin_layout Plain Layout
10496 ForceLocal
10497 \end_layout
10498
10499 \end_inset
10500
10501 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10502 版の\SpecialChar LyX
10503 もこの様式を取り扱えるようになります。
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 ForceLocal
10509 \end_layout
10510
10511 \end_inset
10512
10513 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10514 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10515 \end_layout
10516
10517 \begin_layout Description
10518 \begin_inset Flex Code
10519 status collapsed
10520
10521 \begin_layout Plain Layout
10522 FreeSpacing
10523 \end_layout
10524
10525 \end_inset
10526
10527  [
10528 \emph on
10529
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 0
10535 \end_layout
10536
10537 \end_inset
10538
10539
10540 \emph default
10541 ,
10542 \begin_inset space \thinspace{}
10543 \end_inset
10544
10545
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 1
10551 \end_layout
10552
10553 \end_inset
10554
10555 ] \SpecialChar LyX
10556 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10557 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10558 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10559 \begin_inset Flex Code
10560 status collapsed
10561
10562 \begin_layout Plain Layout
10563 FreeSpacing
10564 \end_layout
10565
10566 \end_inset
10567
10568 を有効にすることが認められています。\SpecialChar LyX
10569 は、\SpecialChar LaTeX
10570 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10571 \end_layout
10572
10573 \begin_layout Description
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 HTML*
10579 \end_layout
10580
10581 \end_inset
10582
10583  これらのタグは、XHTML出力で使用されます。第
10584 \begin_inset CommandInset ref
10585 LatexCommand ref
10586 reference "subsec:段落様式-XHTML"
10587
10588 \end_inset
10589
10590 節をご覧ください。
10591 \end_layout
10592
10593 \begin_layout Description
10594 \begin_inset Flex Code
10595 status collapsed
10596
10597 \begin_layout Plain Layout
10598 InnerTag
10599 \end_layout
10600
10601 \end_inset
10602
10603  [[FIXME]] (XML型書式でのみ使用されます。)
10604 \end_layout
10605
10606 \begin_layout Description
10607 \begin_inset Flex Code
10608 status collapsed
10609
10610 \begin_layout Plain Layout
10611 InPreamble
10612 \end_layout
10613
10614 \end_inset
10615
10616  [
10617 \emph on
10618
10619 \begin_inset Flex Code
10620 status collapsed
10621
10622 \begin_layout Plain Layout
10623 0
10624 \end_layout
10625
10626 \end_inset
10627
10628
10629 \emph default
10630 ,
10631 \begin_inset space \thinspace{}
10632 \end_inset
10633
10634
10635 \begin_inset Flex Code
10636 status collapsed
10637
10638 \begin_layout Plain Layout
10639 1
10640 \end_layout
10641
10642 \end_inset
10643
10644
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 1
10650 \end_layout
10651
10652 \end_inset
10653
10654 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10655 です。これは、
10656 \begin_inset Flex Code
10657 status collapsed
10658
10659 \begin_layout Plain Layout
10660 LatexType
10661 \end_layout
10662
10663 \end_inset
10664
10665
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670 Command
10671 \end_layout
10672
10673 \end_inset
10674
10675 または
10676 \begin_inset Flex Code
10677 status collapsed
10678
10679 \begin_layout Plain Layout
10680 Paragraph
10681 \end_layout
10682
10683 \end_inset
10684
10685 の様式に対してのみ動作します。
10686 \end_layout
10687
10688 \begin_layout Description
10689 \begin_inset Flex Code
10690 status collapsed
10691
10692 \begin_layout Plain Layout
10693 InTitle
10694 \end_layout
10695
10696 \end_inset
10697
10698  [
10699 \emph on
10700
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 0
10706 \end_layout
10707
10708 \end_inset
10709
10710
10711 \emph default
10712 ,
10713 \begin_inset space \thinspace{}
10714 \end_inset
10715
10716
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 1
10722 \end_layout
10723
10724 \end_inset
10725
10726
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 1
10732 \end_layout
10733
10734 \end_inset
10735
10736 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10737 \begin_inset Flex Code
10738 status collapsed
10739
10740 \begin_layout Plain Layout
10741 TitleLatexType
10742 \end_layout
10743
10744 \end_inset
10745
10746
10747 \begin_inset Flex Code
10748 status collapsed
10749
10750 \begin_layout Plain Layout
10751 TitleLatexName
10752 \end_layout
10753
10754 \end_inset
10755
10756 も参照)。
10757 \end_layout
10758
10759 \begin_layout Description
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 ItemCommand
10765 \end_layout
10766
10767 \end_inset
10768
10769  [
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 文字列="item"
10775 \end_layout
10776
10777 \end_inset
10778
10779 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10780 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
10781 出力中では
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786
10787 \backslash
10788 item
10789 \end_layout
10790
10791 \end_inset
10792
10793 となります)。
10794 \end_layout
10795
10796 \begin_layout Description
10797 \begin_inset Flex Code
10798 status collapsed
10799
10800 \begin_layout Plain Layout
10801 ItemSep
10802 \end_layout
10803
10804 \end_inset
10805
10806  [
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 浮動小数点型=0
10812 \end_layout
10813
10814 \end_inset
10815
10816 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 ParSep
10822 \end_layout
10823
10824 \end_inset
10825
10826 だけ分離されます。しかし、その環境の項目全体は、さらにこの
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831 ItemSep
10832 \end_layout
10833
10834 \end_inset
10835
10836 分だけ離されます。これは
10837 \emph on
10838 乗数
10839 \emph default
10840 であることに注意してください。
10841 \end_layout
10842
10843 \begin_layout Description
10844 \begin_inset Flex Code
10845 status collapsed
10846
10847 \begin_layout Plain Layout
10848 ItemTag
10849 \end_layout
10850
10851 \end_inset
10852
10853  [[FIXME]] (XML型書式でのみ使用されます。)
10854 \end_layout
10855
10856 \begin_layout Description
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 KeepEmpty
10862 \end_layout
10863
10864 \end_inset
10865
10866  [
10867 \emph on
10868
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 0
10874 \end_layout
10875
10876 \end_inset
10877
10878
10879 \emph default
10880 ,
10881 \begin_inset space \thinspace{}
10882 \end_inset
10883
10884
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 1
10890 \end_layout
10891
10892 \end_inset
10893
10894 ] 段落を空のままにすると、\SpecialChar LaTeX
10895 出力が空になってしまうので、通常、\SpecialChar LyX
10896 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
10897 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
10898 まないある種の改行として使用することもあります。
10899 \end_layout
10900
10901 \begin_layout Description
10902 \begin_inset Flex Code
10903 status collapsed
10904
10905 \begin_layout Plain Layout
10906 LabelBottomsep
10907 \end_layout
10908
10909 \end_inset
10910
10911  [
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 浮動小数点型=0
10917 \end_layout
10918
10919 \end_inset
10920
10921 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 Top_Environment
10927 \end_layout
10928
10929 \end_inset
10930
10931 および
10932 \begin_inset Newline linebreak
10933 \end_inset
10934
10935
10936 \begin_inset Flex Code
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 Centered_Top_Environment
10941 \end_layout
10942
10943 \end_inset
10944
10945 )。
10946 \end_layout
10947
10948 \begin_layout Description
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 LabelCounter
10954 \end_layout
10955
10956 \end_inset
10957
10958  [
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963 文字列=""
10964 \end_layout
10965
10966 \end_inset
10967
10968 ] 自動連番に使われるカウンタ名(詳しくは第
10969 \begin_inset CommandInset ref
10970 LatexCommand ref
10971 reference "subsec:カウンタ"
10972
10973 \end_inset
10974
10975 節参照)。カウンタがラベル中に表示されるようにするためには、
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 LabelString
10981 \end_layout
10982
10983 \end_inset
10984
10985 中で参照する必要があります。これは、少なくとも
10986 \begin_inset Flex Code
10987 status collapsed
10988
10989 \begin_layout Plain Layout
10990 Static
10991 \end_layout
10992
10993 \end_inset
10994
10995
10996 \begin_inset Flex Code
10997 status collapsed
10998
10999 \begin_layout Plain Layout
11000 Above
11001 \end_layout
11002
11003 \end_inset
11004
11005
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 Centered
11011 \end_layout
11012
11013 \end_inset
11014
11015 の各
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 LabelType
11021 \end_layout
11022
11023 \end_inset
11024
11025 で動作します。
11026 \begin_inset Newline newline
11027 \end_inset
11028
11029 また、
11030 \begin_inset Flex Code
11031 status collapsed
11032
11033 \begin_layout Plain Layout
11034 LabelType
11035 \end_layout
11036
11037 \end_inset
11038
11039
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 Enumerate
11045 \end_layout
11046
11047 \end_inset
11048
11049 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11050 \begin_inset Flex Code
11051 status collapsed
11052
11053 \begin_layout Plain Layout
11054 LabelCounter myenum
11055 \end_layout
11056
11057 \end_inset
11058
11059 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11060 におけるのと同様、実際に使われるカウンタは、
11061 \begin_inset Flex Code
11062 status collapsed
11063
11064 \begin_layout Plain Layout
11065 myenumi
11066 \end_layout
11067
11068 \end_inset
11069
11070
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 myenumii
11076 \end_layout
11077
11078 \end_inset
11079
11080
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 myenumii
11086 \end_layout
11087
11088 \end_inset
11089
11090
11091 \begin_inset Flex Code
11092 status collapsed
11093
11094 \begin_layout Plain Layout
11095 myenumiv
11096 \end_layout
11097
11098 \end_inset
11099
11100 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11101 \begin_inset Newline newline
11102 \end_inset
11103
11104 カウンタの詳細については、
11105 \begin_inset CommandInset ref
11106 LatexCommand ref
11107 reference "subsec:カウンタ"
11108
11109 \end_inset
11110
11111 をご覧ください。
11112 \end_layout
11113
11114 \begin_layout Description
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 LabelFont
11120 \end_layout
11121
11122 \end_inset
11123
11124  ラベルに使用されるフォント。
11125 \begin_inset CommandInset ref
11126 LatexCommand ref
11127 reference "subsec:フォント指定"
11128
11129 \end_inset
11130
11131 を参照。
11132 \end_layout
11133
11134 \begin_layout Description
11135 \begin_inset Flex Code
11136 status collapsed
11137
11138 \begin_layout Plain Layout
11139 LabelIndent
11140 \end_layout
11141
11142 \end_inset
11143
11144  [
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 文字列=""
11150 \end_layout
11151
11152 \end_inset
11153
11154 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11155 \end_layout
11156
11157 \begin_layout Description
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 LabelSep
11163 \end_layout
11164
11165 \end_inset
11166
11167  [
11168 \begin_inset Flex Code
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172 文字列=""
11173 \end_layout
11174
11175 \end_inset
11176
11177 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11178 \end_layout
11179
11180 \begin_layout Description
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185 LabelString
11186 \end_layout
11187
11188 \end_inset
11189
11190  [
11191 \begin_inset Flex Code
11192 status collapsed
11193
11194 \begin_layout Plain Layout
11195 文字列=""
11196 \end_layout
11197
11198 \end_inset
11199
11200
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 Static
11206 \end_layout
11207
11208 \end_inset
11209
11210 ラベル型でラベルに使用する文字列。
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 LabelCounter
11216 \end_layout
11217
11218 \end_inset
11219
11220 を設定している場合、
11221 \begin_inset CommandInset ref
11222 LatexCommand ref
11223 reference "subsec:カウンタ"
11224
11225 \end_inset
11226
11227 に述べられている特別な整形コマンドを含めることができます。
11228 \end_layout
11229
11230 \begin_layout Description
11231 \begin_inset Flex Code
11232 status collapsed
11233
11234 \begin_layout Plain Layout
11235 LabelStringAppendix
11236 \end_layout
11237
11238 \end_inset
11239
11240  [
11241 \begin_inset Flex Code
11242 status collapsed
11243
11244 \begin_layout Plain Layout
11245 文字列=""
11246 \end_layout
11247
11248 \end_inset
11249
11250 ] これは付録の中で
11251 \begin_inset Flex Code
11252 status collapsed
11253
11254 \begin_layout Plain Layout
11255 LabelString
11256 \end_layout
11257
11258 \end_inset
11259
11260 の代わりに用いられます。各
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 LabelString
11266 \end_layout
11267
11268 \end_inset
11269
11270 ステートメントは、
11271 \begin_inset Flex Code
11272 status collapsed
11273
11274 \begin_layout Plain Layout
11275 LabelStringAppendix
11276 \end_layout
11277
11278 \end_inset
11279
11280 をもリセットすることに注意してください。
11281 \end_layout
11282
11283 \begin_layout Description
11284 \begin_inset Flex Code
11285 status collapsed
11286
11287 \begin_layout Plain Layout
11288 LabelTag
11289 \end_layout
11290
11291 \end_inset
11292
11293  [FIXME] (XML型書式でのみ使用されます。)
11294 \end_layout
11295
11296 \begin_layout Description
11297 \begin_inset Flex Code
11298 status collapsed
11299
11300 \begin_layout Plain Layout
11301 LabelType
11302 \end_layout
11303
11304 \end_inset
11305
11306  [
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311
11312 \emph on
11313 No_Label
11314 \emph default
11315 , Manual, Static, Above,
11316 \begin_inset Newline newline
11317 \end_inset
11318
11319 Centered, Sensitive, Enumerate,
11320 \begin_inset Newline newline
11321 \end_inset
11322
11323 Itemize, Bibliography
11324 \end_layout
11325
11326 \end_inset
11327
11328 ]
11329 \begin_inset Separator parbreak
11330 \end_inset
11331
11332
11333 \end_layout
11334
11335 \begin_deeper
11336 \begin_layout Description
11337 \begin_inset Flex Code
11338 status collapsed
11339
11340 \begin_layout Plain Layout
11341 Manual
11342 \end_layout
11343
11344 \end_inset
11345
11346  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11347 \end_layout
11348
11349 \begin_layout Description
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 Static
11355 \end_layout
11356
11357 \end_inset
11358
11359  は、ラベルが
11360 \begin_inset Flex Code
11361 status collapsed
11362
11363 \begin_layout Plain Layout
11364 LabelString
11365 \end_layout
11366
11367 \end_inset
11368
11369 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11370 \begin_inset Flex Code
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 LatexType
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \begin_inset Flex Code
11381 status collapsed
11382
11383 \begin_layout Plain Layout
11384 Environment
11385 \end_layout
11386
11387 \end_inset
11388
11389 のときは、連続する同じ
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 Style
11395 \end_layout
11396
11397 \end_inset
11398
11399 の段落中、最初の段落にのみ表示されます。
11400 \end_layout
11401
11402 \begin_layout Description
11403 \begin_inset Flex Code
11404 status collapsed
11405
11406 \begin_layout Plain Layout
11407 Above
11408 \end_layout
11409
11410 \end_inset
11411
11412 および
11413 \begin_inset Flex Code
11414 status collapsed
11415
11416 \begin_layout Plain Layout
11417 Centered
11418 \end_layout
11419
11420 \end_inset
11421
11422  は、
11423 \begin_inset Flex Code
11424 status collapsed
11425
11426 \begin_layout Plain Layout
11427 Static
11428 \end_layout
11429
11430 \end_inset
11431
11432 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11433 \end_layout
11434
11435 \begin_layout Description
11436 \begin_inset Flex Code
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 Sensitive
11441 \end_layout
11442
11443 \end_inset
11444
11445  はキャプションラベルの「図」や「表」の特別な場合です。
11446 \begin_inset Flex Code
11447 status collapsed
11448
11449 \begin_layout Plain Layout
11450 Sensitive
11451 \end_layout
11452
11453 \end_inset
11454
11455 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11456 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11457 \begin_inset Flex Code
11458 status collapsed
11459
11460 \begin_layout Plain Layout
11461 LabelString
11462 \end_layout
11463
11464 \end_inset
11465
11466 は「意味を成しません!」と表示されます。
11467 \end_layout
11468
11469 \begin_layout Description
11470 \begin_inset Flex Code
11471 status collapsed
11472
11473 \begin_layout Plain Layout
11474 Enumerate
11475 \end_layout
11476
11477 \end_inset
11478
11479  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11480 す。
11481 \end_layout
11482
11483 \begin_layout Description
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Itemize
11489 \end_layout
11490
11491 \end_inset
11492
11493  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11494 \end_layout
11495
11496 \begin_layout Description
11497 \begin_inset Flex Code
11498 status collapsed
11499
11500 \begin_layout Plain Layout
11501 Bibliography
11502 \end_layout
11503
11504 \end_inset
11505
11506  は、
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511 LatexType BibEnvironment
11512 \end_layout
11513
11514 \end_inset
11515
11516 とともにのみ使用されます。
11517 \end_layout
11518
11519 \end_deeper
11520 \begin_layout Description
11521 \begin_inset Flex Code
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 LangPreamble
11526 \end_layout
11527
11528 \end_inset
11529
11530  これは、この様式で既に出現した
11531 \begin_inset Flex Code
11532 status collapsed
11533
11534 \begin_layout Plain Layout
11535 LangPreamble
11536 \end_layout
11537
11538 \end_inset
11539
11540 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11541 \begin_inset CommandInset ref
11542 LatexCommand ref
11543 reference "subsec:段落様式の国際化"
11544
11545 \end_inset
11546
11547 をご覧ください。
11548 \end_layout
11549
11550 \begin_layout Description
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 LatexName
11556 \end_layout
11557
11558 \end_inset
11559
11560  [
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565 <名称>
11566 \end_layout
11567
11568 \end_inset
11569
11570 ] 対応する\SpecialChar LaTeX
11571 の名称です。環境名かコマンド名を指します。
11572 \end_layout
11573
11574 \begin_layout Description
11575 \begin_inset Flex Code
11576 status collapsed
11577
11578 \begin_layout Plain Layout
11579 LatexParam
11580 \end_layout
11581
11582 \end_inset
11583
11584  [
11585 \begin_inset Flex Code
11586 status collapsed
11587
11588 \begin_layout Plain Layout
11589 <パラメータ>
11590 \end_layout
11591
11592 \end_inset
11593
11594 ] 対応する
11595 \begin_inset Flex Code
11596 status collapsed
11597
11598 \begin_layout Plain Layout
11599 LatexName
11600 \end_layout
11601
11602 \end_inset
11603
11604 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11605 内部から変更することはできません(変更可能なパラメータには
11606 \begin_inset Flex Code
11607 status collapsed
11608
11609 \begin_layout Plain Layout
11610 Argument
11611 \end_layout
11612
11613 \end_inset
11614
11615 を使用してください)。これは、全ての\SpecialChar LaTeX
11616  
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 Argument
11622 \end_layout
11623
11624 \end_inset
11625
11626 の後にそのままの形で出力されます。
11627 \end_layout
11628
11629 \begin_layout Description
11630 \begin_inset Flex Code
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634 LatexType
11635 \end_layout
11636
11637 \end_inset
11638
11639  [
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644
11645 \emph on
11646 Paragraph
11647 \emph default
11648 , Command, Environment, Item_Environment,
11649 \begin_inset Newline newline
11650 \end_inset
11651
11652 List_Environment, Bib_Environment
11653 \end_layout
11654
11655 \end_inset
11656
11657 ] レイアウトがどのように\SpecialChar LaTeX
11658 に変換されるべきかを示します
11659 \begin_inset Foot
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 これらのルールはSGMLクラスにも適用されるので、
11664 \begin_inset Flex Code
11665 status collapsed
11666
11667 \begin_layout Plain Layout
11668 LatexType
11669 \end_layout
11670
11671 \end_inset
11672
11673 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11674 \begin_inset Flex Code
11675 status collapsed
11676
11677 \begin_layout Plain Layout
11678 db_*.inc
11679 \end_layout
11680
11681 \end_inset
11682
11683 )を見てください。
11684 \end_layout
11685
11686 \end_inset
11687
11688
11689 \begin_inset Separator parbreak
11690 \end_inset
11691
11692
11693 \end_layout
11694
11695 \begin_deeper
11696 \begin_layout Description
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701 Paragraph
11702 \end_layout
11703
11704 \end_inset
11705
11706  は、何も特別なことは意味しません。
11707 \end_layout
11708
11709 \begin_layout Description
11710 \begin_inset Flex Code
11711 status collapsed
11712
11713 \begin_layout Plain Layout
11714 Command
11715 \end_layout
11716
11717 \end_inset
11718
11719  は、
11720 \begin_inset Flex Code
11721 status collapsed
11722
11723 \begin_layout Plain Layout
11724
11725 \backslash
11726
11727 \emph on
11728 LatexName
11729 \emph default
11730 {\SpecialChar ldots
11731 }
11732 \end_layout
11733
11734 \end_inset
11735
11736 を意味します。
11737 \end_layout
11738
11739 \begin_layout Description
11740 \begin_inset Flex Code
11741 status collapsed
11742
11743 \begin_layout Plain Layout
11744 Environment
11745 \end_layout
11746
11747 \end_inset
11748
11749  は、
11750 \begin_inset Flex Code
11751 status collapsed
11752
11753 \begin_layout Plain Layout
11754
11755 \backslash
11756 begin{
11757 \emph on
11758 LatexName
11759 \emph default
11760 }\SpecialChar ldots
11761
11762 \backslash
11763 end{
11764 \emph on
11765 LatexName
11766 \emph default
11767 }
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 Item_Environment
11781 \end_layout
11782
11783 \end_inset
11784
11785  は
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 Environment
11791 \end_layout
11792
11793 \end_inset
11794
11795 と同じですが、
11796 \begin_inset Flex Code
11797 status collapsed
11798
11799 \begin_layout Plain Layout
11800
11801 \backslash
11802 item
11803 \end_layout
11804
11805 \end_inset
11806
11807 がこの環境のすべての段落に付けられるところだけが異なっています。
11808 \end_layout
11809
11810 \begin_layout Description
11811 \begin_inset Flex Code
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 List_Environment
11816 \end_layout
11817
11818 \end_inset
11819
11820  は
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 Item_Environment
11826 \end_layout
11827
11828 \end_inset
11829
11830 と同じですが、
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835 LabelWidthString
11836 \end_layout
11837
11838 \end_inset
11839
11840 が環境の引数として渡されるところだけが異なっています。
11841 \begin_inset Flex Code
11842 status collapsed
11843
11844 \begin_layout Plain Layout
11845 LabelWidthString
11846 \end_layout
11847
11848 \end_inset
11849
11850 は、
11851 \begin_inset Flex MenuItem
11852 status collapsed
11853
11854 \begin_layout Plain Layout
11855 編集\SpecialChar menuseparator
11856 段落設定
11857 \end_layout
11858
11859 \end_inset
11860
11861 ダイアログで定義することができます。
11862 \end_layout
11863
11864 \begin_layout Description
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 Bib_Environment
11870 \end_layout
11871
11872 \end_inset
11873
11874  は
11875 \begin_inset Flex Code
11876 status collapsed
11877
11878 \begin_layout Plain Layout
11879 Environment
11880 \end_layout
11881
11882 \end_inset
11883
11884 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
11885 \begin_inset Newline newline
11886 \end_inset
11887
11888
11889 \begin_inset Flex Code
11890 status collapsed
11891
11892 \begin_layout Plain Layout
11893
11894 \backslash
11895 begin{thebibliography}{99}
11896 \end_layout
11897
11898 \end_inset
11899
11900
11901 \begin_inset Newline newline
11902 \end_inset
11903
11904 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
11905 \end_layout
11906
11907 \begin_layout Standard
11908 上記最後のいくつかをまとめると、\SpecialChar LaTeX
11909 出力は、\SpecialChar LaTeX
11910 型に依存して
11911 \end_layout
11912
11913 \begin_layout LyX-Code
11914
11915 \backslash
11916 LatexName[LatexParam]{\SpecialChar ldots
11917 }
11918 \end_layout
11919
11920 \begin_layout Standard
11921 のようになるか、
11922 \end_layout
11923
11924 \begin_layout LyX-Code
11925
11926 \backslash
11927 begin{LatexName}[LatexParam] \SpecialChar ldots
11928  
11929 \backslash
11930 end{LatexName}.
11931 \end_layout
11932
11933 \begin_layout Standard
11934 となります。
11935 \end_layout
11936
11937 \end_deeper
11938 \begin_layout Description
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943 LeftDelim
11944 \end_layout
11945
11946 \end_inset
11947
11948  [
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953 文字列
11954 \end_layout
11955
11956 \end_inset
11957
11958 ] 様式の内容の最初に置かれる文字列。出力中の改行は
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963 <br/>
11964 \end_layout
11965
11966 \end_inset
11967
11968 で指示できます。
11969 \end_layout
11970
11971 \begin_layout Description
11972 \begin_inset Flex Code
11973 status collapsed
11974
11975 \begin_layout Plain Layout
11976 LeftMargin
11977 \end_layout
11978
11979 \end_inset
11980
11981  [
11982 \begin_inset Flex Code
11983 status collapsed
11984
11985 \begin_layout Plain Layout
11986 文字列=""
11987 \end_layout
11988
11989 \end_inset
11990
11991 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
11992 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11993 \end_inset
11994
11995 をかけて加えられます。このパラメータは、
11996 \begin_inset Flex Code
11997 status collapsed
11998
11999 \begin_layout Plain Layout
12000 Margin
12001 \end_layout
12002
12003 \end_inset
12004
12005
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010 Manual
12011 \end_layout
12012
12013 \end_inset
12014
12015 あるいは
12016 \begin_inset Flex Code
12017 status collapsed
12018
12019 \begin_layout Plain Layout
12020 Dynamic
12021 \end_layout
12022
12023 \end_inset
12024
12025 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12026 \begin_inset Newline newline
12027 \end_inset
12028
12029 たとえば「
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034 MM
12035 \end_layout
12036
12037 \end_inset
12038
12039 」と指定すると、段落を通常フォントの「
12040 \begin_inset Flex Code
12041 status collapsed
12042
12043 \begin_layout Plain Layout
12044 MM
12045 \end_layout
12046
12047 \end_inset
12048
12049 」の幅だけ行頭下げを行います。文字列の前に「
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054 -
12055 \end_layout
12056
12057 \end_inset
12058
12059 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12060 \end_layout
12061
12062 \begin_layout Description
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 Margin
12068 \end_layout
12069
12070 \end_inset
12071
12072  [
12073 \begin_inset Flex Code
12074 status collapsed
12075
12076 \begin_layout Plain Layout
12077
12078 \emph on
12079 Static
12080 \emph default
12081 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12082 \end_layout
12083
12084 \end_inset
12085
12086
12087 \begin_inset Newline newline
12088 \end_inset
12089
12090 このレイアウトの左余白の種類です。
12091 \begin_inset Separator parbreak
12092 \end_inset
12093
12094
12095 \end_layout
12096
12097 \begin_deeper
12098 \begin_layout Description
12099 \begin_inset Flex Code
12100 status collapsed
12101
12102 \begin_layout Plain Layout
12103 Static
12104 \end_layout
12105
12106 \end_inset
12107
12108  は固定余白を示します。
12109 \end_layout
12110
12111 \begin_layout Description
12112 \begin_inset Flex Code
12113 status collapsed
12114
12115 \begin_layout Plain Layout
12116 Manual
12117 \end_layout
12118
12119 \end_inset
12120
12121  は、左余白が
12122 \begin_inset Flex MenuItem
12123 status collapsed
12124
12125 \begin_layout Plain Layout
12126 編集\SpecialChar menuseparator
12127 段落設定
12128 \end_layout
12129
12130 \end_inset
12131
12132 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12133 \end_layout
12134
12135 \begin_layout Description
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140 Dynamic
12141 \end_layout
12142
12143 \end_inset
12144
12145  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12146  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12147 \end_layout
12148
12149 \begin_layout Description
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 First_Dynamic
12155 \end_layout
12156
12157 \end_inset
12158
12159  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12160 \end_layout
12161
12162 \begin_layout Description
12163 \begin_inset Flex Code
12164 status collapsed
12165
12166 \begin_layout Plain Layout
12167 Right_Address_Box
12168 \end_layout
12169
12170 \end_inset
12171
12172  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12173 \end_layout
12174
12175 \end_deeper
12176 \begin_layout Description
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181 NeedProtect
12182 \end_layout
12183
12184 \end_inset
12185
12186  [
12187 \begin_inset Flex Code
12188 status collapsed
12189
12190 \begin_layout Plain Layout
12191
12192 \emph on
12193 0
12194 \end_layout
12195
12196 \end_inset
12197
12198 ,
12199 \begin_inset space \thinspace{}
12200 \end_inset
12201
12202
12203 \begin_inset Flex Code
12204 status collapsed
12205
12206 \begin_layout Plain Layout
12207 1
12208 \end_layout
12209
12210 \end_inset
12211
12212 ] このレイアウト中の脆弱なコマンドが
12213 \begin_inset Flex Code
12214 status collapsed
12215
12216 \begin_layout Plain Layout
12217
12218 \backslash
12219 protect
12220 \end_layout
12221
12222 \end_inset
12223
12224 されるべきか否か(註:これはこのコマンド自体が
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229
12230 \backslash
12231 protect
12232 \end_layout
12233
12234 \end_inset
12235
12236 されるべきかでは
12237 \emph on
12238 ありません
12239 \emph default
12240 )。
12241 \end_layout
12242
12243 \begin_layout Description
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 Newline
12249 \end_layout
12250
12251 \end_inset
12252
12253  [
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 0
12259 \end_layout
12260
12261 \end_inset
12262
12263 ,
12264 \begin_inset space \thinspace{}
12265 \end_inset
12266
12267
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272
12273 \emph on
12274 1
12275 \end_layout
12276
12277 \end_inset
12278
12279 ] 新規行を\SpecialChar LaTeX
12280 の新規行(
12281 \begin_inset Flex Code
12282 status collapsed
12283
12284 \begin_layout Plain Layout
12285
12286 \backslash
12287
12288 \backslash
12289
12290 \end_layout
12291
12292 \end_inset
12293
12294 )に変換するか否か。\SpecialChar LyX
12295 中で\SpecialChar LaTeX
12296 編集をやりやすくするために、変換は無効にすることができます。
12297 \end_layout
12298
12299 \begin_layout Description
12300 \begin_inset Flex Code
12301 status collapsed
12302
12303 \begin_layout Plain Layout
12304 NextNoIndent
12305 \end_layout
12306
12307 \end_inset
12308
12309  [
12310 \begin_inset Flex Code
12311 status collapsed
12312
12313 \begin_layout Plain Layout
12314
12315 \emph on
12316 0
12317 \end_layout
12318
12319 \end_inset
12320
12321 ,
12322 \begin_inset space \thinspace{}
12323 \end_inset
12324
12325
12326 \begin_inset Flex Code
12327 status collapsed
12328
12329 \begin_layout Plain Layout
12330 1
12331 \end_layout
12332
12333 \end_inset
12334
12335 ] 真に設定すると、
12336 \begin_inset Flex Code
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340 DefaultStyle
12341 \end_layout
12342
12343 \end_inset
12344
12345  (通常
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350 Standard
12351 \end_layout
12352
12353 \end_inset
12354
12355 )段落が行頭下げになっている場合でも、この型の段落に続くそれらの段落は、字下げされません(逆に言えば,既定でない段落には影響を与えません)。
12356 \end_layout
12357
12358 \begin_layout Description
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 ObsoletedBy
12364 \end_layout
12365
12366 \end_inset
12367
12368  [
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373 <名称>
12374 \end_layout
12375
12376 \end_inset
12377
12378 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12379 \end_layout
12380
12381 \begin_layout Description
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 ParagraphGroup
12387 \end_layout
12388
12389 \end_inset
12390
12391  [
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 0
12397 \end_layout
12398
12399 \end_inset
12400
12401 ,
12402 \begin_inset space \thinspace{}
12403 \end_inset
12404
12405
12406 \begin_inset Flex Code
12407 status collapsed
12408
12409 \begin_layout Plain Layout
12410 1
12411 \end_layout
12412
12413 \end_inset
12414
12415 ] 同じ型の段落が引き続く場合、同じ段落として取り扱うか否かを決定します。これは、そのような連続グループに対して、
12416 \begin_inset Flex Code
12417 status collapsed
12418
12419 \begin_layout Plain Layout
12420 GuiLabel
12421 \end_layout
12422
12423 \end_inset
12424
12425 が一度だけ出力される効果があります。既定では、
12426 \begin_inset Flex Code
12427 status collapsed
12428
12429 \begin_layout Plain Layout
12430 LaTeXType
12431 \end_layout
12432
12433 \end_inset
12434
12435
12436 \begin_inset Flex Code
12437 status collapsed
12438
12439 \begin_layout Plain Layout
12440 Environment
12441 \end_layout
12442
12443 \end_inset
12444
12445 および
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 Bib_Environment
12451 \end_layout
12452
12453 \end_inset
12454
12455  については有効であり、他の型すべてについて無効になっています。
12456 \end_layout
12457
12458 \begin_layout Description
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463 ParbreakIsNewline
12464 \end_layout
12465
12466 \end_inset
12467
12468  [
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473
12474 \emph on
12475 0
12476 \end_layout
12477
12478 \end_inset
12479
12480 ,
12481 \begin_inset space \thinspace{}
12482 \end_inset
12483
12484
12485 \begin_inset Flex Code
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489 1
12490 \end_layout
12491
12492 \end_inset
12493
12494 ] \SpecialChar LaTeX
12495 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 PassThru 1
12501 \end_layout
12502
12503 \end_inset
12504
12505 と併用すれば、(\SpecialChar TeX
12506 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12507 \end_layout
12508
12509 \begin_layout Description
12510 \begin_inset Flex Code
12511 status collapsed
12512
12513 \begin_layout Plain Layout
12514 ParIndent
12515 \end_layout
12516
12517 \end_inset
12518
12519  [
12520 \begin_inset Flex Code
12521 status collapsed
12522
12523 \begin_layout Plain Layout
12524 文字列=""
12525 \end_layout
12526
12527 \end_inset
12528
12529 ] 段落の最初の行の行頭下げ。レイアウトによっては
12530 \begin_inset Flex Code
12531 status collapsed
12532
12533 \begin_layout Plain Layout
12534 Parindent
12535 \end_layout
12536
12537 \end_inset
12538
12539 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12540 \begin_inset Flex Code
12541 status collapsed
12542
12543 \begin_layout Plain Layout
12544 NextNoIndent
12545 \end_layout
12546
12547 \end_inset
12548
12549 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 Parindent
12555 \end_layout
12556
12557 \end_inset
12558
12559 ではなく、この環境の
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564 Parindent
12565 \end_layout
12566
12567 \end_inset
12568
12569 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12570 \end_layout
12571
12572 \begin_layout Description
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 ParSep
12578 \end_layout
12579
12580 \end_inset
12581
12582  [
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 浮動小数点型=0
12588 \end_layout
12589
12590 \end_inset
12591
12592 ] このレイアウトの2段落間の垂直余白。
12593 \end_layout
12594
12595 \begin_layout Description
12596 \begin_inset Flex Code
12597 status collapsed
12598
12599 \begin_layout Plain Layout
12600 Parskip
12601 \end_layout
12602
12603 \end_inset
12604
12605  [
12606 \begin_inset Flex Code
12607 status collapsed
12608
12609 \begin_layout Plain Layout
12610 浮動小数点型=0
12611 \end_layout
12612
12613 \end_inset
12614
12615 ] \SpecialChar LyX
12616 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12617 択した際には、\SpecialChar LaTeX
12618 型「段落」レイアウトの
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 ParIndent
12624 \end_layout
12625
12626 \end_inset
12627
12628 は無視され、すべての段落はこの
12629 \begin_inset Flex Code
12630 status collapsed
12631
12632 \begin_layout Plain Layout
12633 Parskip
12634 \end_layout
12635
12636 \end_inset
12637
12638 引数分だけ引き離されます。垂直余白は、
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643 DefaultHeight
12644 \end_layout
12645
12646 \end_inset
12647
12648 を標準フォントでの1行の高さとすると、
12649 \begin_inset Flex Code
12650 status collapsed
12651
12652 \begin_layout Plain Layout
12653 Parskipの値
12654 \end_layout
12655
12656 \end_inset
12657
12658
12659 \begin_inset Formula $\times$
12660 \end_inset
12661
12662
12663 \begin_inset Flex Code
12664 status collapsed
12665
12666 \begin_layout Plain Layout
12667 DefaultHeight
12668 \end_layout
12669
12670 \end_inset
12671
12672 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
12673 \end_layout
12674
12675 \begin_layout Description
12676 \begin_inset Flex Code
12677 status collapsed
12678
12679 \begin_layout Plain Layout
12680 PassThru
12681 \end_layout
12682
12683 \end_inset
12684
12685  [
12686 \emph on
12687
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692 0
12693 \end_layout
12694
12695 \end_inset
12696
12697
12698 \emph default
12699 ,
12700 \begin_inset space \thinspace{}
12701 \end_inset
12702
12703
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 1
12709 \end_layout
12710
12711 \end_inset
12712
12713 ] この段落の内容が、\SpecialChar LaTeX
12714 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
12715 \end_layout
12716
12717 \begin_layout Description
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722 PassThruChars
12723 \end_layout
12724
12725 \end_inset
12726
12727  [
12728 \begin_inset Flex Code
12729 status collapsed
12730
12731 \begin_layout Plain Layout
12732 文字列
12733 \end_layout
12734
12735 \end_inset
12736
12737 ]
12738 \family typewriter
12739  
12740 \family default
12741 \SpecialChar LaTeX
12742 が要請する特別な翻訳なしで。生の形で出力されるべき、それぞれの文字を定義します。
12743 \end_layout
12744
12745 \begin_layout Description
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750 Preamble
12751 \end_layout
12752
12753 \end_inset
12754
12755  この様式が使用されたときに、\SpecialChar LaTeX
12756 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
12757 \begin_inset Flex Code
12758 status collapsed
12759
12760 \begin_layout Plain Layout
12761 EndPreamble
12762 \end_layout
12763
12764 \end_inset
12765
12766 」で閉じる必要があります。
12767 \end_layout
12768
12769 \begin_layout Description
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 RefPrefix
12775 \end_layout
12776
12777 \end_inset
12778
12779  [
12780 \begin_inset Flex Code
12781 status collapsed
12782
12783 \begin_layout Plain Layout
12784 文字列
12785 \end_layout
12786
12787 \end_inset
12788
12789 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
12790 \end_layout
12791
12792 \begin_layout Description
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797 Requires
12798 \end_layout
12799
12800 \end_inset
12801
12802  [
12803 \begin_inset Flex Code
12804 status collapsed
12805
12806 \begin_layout Plain Layout
12807 文字列
12808 \end_layout
12809
12810 \end_inset
12811
12812 ] この様式が機能
12813 \begin_inset Flex Code
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817 文字列
12818 \end_layout
12819
12820 \end_inset
12821
12822 を必要とするかどうか(機能詳細については、第
12823 \begin_inset CommandInset ref
12824 LatexCommand ref
12825 reference "chap:関数一覧"
12826
12827 \end_inset
12828
12829 節参照)。特定のオプションをとるパッケージを要求する場合、
12830 \begin_inset Flex Code
12831 status collapsed
12832
12833 \begin_layout Plain Layout
12834 PackageOptions
12835 \end_layout
12836
12837 \end_inset
12838
12839 を汎用テキストクラスパラメータとして追加して使うことができます(
12840 \begin_inset CommandInset ref
12841 LatexCommand ref
12842 reference "subsec:汎用テキストクラスパラメータ"
12843
12844 \end_inset
12845
12846 を参照)。
12847 \end_layout
12848
12849 \begin_layout Description
12850 \begin_inset Flex Code
12851 status collapsed
12852
12853 \begin_layout Plain Layout
12854 ResetArgs
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 \emph on
12866 0
12867 \end_layout
12868
12869 \end_inset
12870
12871 ,
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 1
12877 \end_layout
12878
12879 \end_inset
12880
12881 ] (
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 Argument
12887 \end_layout
12888
12889 \end_inset
12890
12891 タグで定義された)この様式の\SpecialChar LaTeX
12892 引数をリセットします。これは、様式を
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 CopyStyle
12898 \end_layout
12899
12900 \end_inset
12901
12902 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
12903 \end_layout
12904
12905 \begin_layout Description
12906 \begin_inset Flex Code
12907 status collapsed
12908
12909 \begin_layout Plain Layout
12910 RightDelim
12911 \end_layout
12912
12913 \end_inset
12914
12915  [
12916 \begin_inset Flex Code
12917 status collapsed
12918
12919 \begin_layout Plain Layout
12920 文字列
12921 \end_layout
12922
12923 \end_inset
12924
12925 ] 様式の内容の最後に置かれる文字列。出力中の改行は
12926 \begin_inset Flex Code
12927 status collapsed
12928
12929 \begin_layout Plain Layout
12930 <br/>
12931 \end_layout
12932
12933 \end_inset
12934
12935 で指示できます。
12936 \end_layout
12937
12938 \begin_layout Description
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 RightMargin
12944 \end_layout
12945
12946 \end_inset
12947
12948  [
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953 文字列=""
12954 \end_layout
12955
12956 \end_inset
12957
12958
12959 \begin_inset Flex Code
12960 status collapsed
12961
12962 \begin_layout Plain Layout
12963 LeftMargin
12964 \end_layout
12965
12966 \end_inset
12967
12968 に同様。
12969 \end_layout
12970
12971 \begin_layout Description
12972 \begin_inset Flex Code
12973 status collapsed
12974
12975 \begin_layout Plain Layout
12976 Spacing
12977 \end_layout
12978
12979 \end_inset
12980
12981  [
12982 \begin_inset Flex Code
12983 status collapsed
12984
12985 \begin_layout Plain Layout
12986
12987 \emph on
12988 single
12989 \end_layout
12990
12991 \end_inset
12992
12993
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 onehalf
12999 \end_layout
13000
13001 \end_inset
13002
13003
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 double
13009 \end_layout
13010
13011 \end_inset
13012
13013
13014 \begin_inset Flex Code
13015 status collapsed
13016
13017 \begin_layout Plain Layout
13018 other
13019 \begin_inset space ~
13020 \end_inset
13021
13022 <
13023 \emph on
13024
13025 \emph default
13026 >
13027 \end_layout
13028
13029 \end_inset
13030
13031 ]
13032 \lang english
13033  
13034 \lang japanese
13035 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 single
13041 \end_layout
13042
13043 \end_inset
13044
13045
13046 \begin_inset Flex Code
13047 status collapsed
13048
13049 \begin_layout Plain Layout
13050 onehalf
13051 \end_layout
13052
13053 \end_inset
13054
13055
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060 double
13061 \end_layout
13062
13063 \end_inset
13064
13065 は、それぞれ乗数1・1.25・1.667に対応します。引数
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 other
13071 \end_layout
13072
13073 \end_inset
13074
13075 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 Spacing
13081 \end_layout
13082
13083 \end_inset
13084
13085 は、\SpecialChar LaTeX
13086 パッケージ
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 setspace
13092 \end_layout
13093
13094 \end_inset
13095
13096 パッケージを使用した、限定的な\SpecialChar LaTeX
13097 コードを生成することを意味することにご注意ください。
13098 \end_layout
13099
13100 \begin_layout Description
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 Spellcheck
13106 \end_layout
13107
13108 \end_inset
13109
13110  [
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 0
13116 \end_layout
13117
13118 \end_inset
13119
13120 ,
13121 \begin_inset space \thinspace{}
13122 \end_inset
13123
13124
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 1
13130 \end_layout
13131
13132 \end_inset
13133
13134 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13135 \end_layout
13136
13137 \begin_layout Description
13138 \begin_inset Flex Code
13139 status collapsed
13140
13141 \begin_layout Plain Layout
13142 TextFont
13143 \end_layout
13144
13145 \end_inset
13146
13147  本文に使うフォント。
13148 \begin_inset CommandInset ref
13149 LatexCommand ref
13150 reference "subsec:フォント指定"
13151
13152 \end_inset
13153
13154 参照。
13155 \end_layout
13156
13157 \begin_layout Description
13158 \begin_inset Flex Code
13159 status collapsed
13160
13161 \begin_layout Plain Layout
13162 TocLevel
13163 \end_layout
13164
13165 \end_inset
13166
13167  [
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 整数型=3
13173 \end_layout
13174
13175 \end_inset
13176
13177 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13178 \end_layout
13179
13180 \begin_layout Description
13181 \begin_inset Flex Code
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185 ToggleIndent
13186 \end_layout
13187
13188 \end_inset
13189
13190  [
13191 \emph on
13192
13193 \begin_inset Flex Code
13194 status collapsed
13195
13196 \begin_layout Plain Layout
13197 default
13198 \end_layout
13199
13200 \end_inset
13201
13202
13203 \emph default
13204
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 always
13210 \end_layout
13211
13212 \end_inset
13213
13214
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 never
13220 \end_layout
13221
13222 \end_inset
13223
13224 ] このタグは、この段落の1行目の行頭下げが、段落設定ダイアログで切り替えられるかどうかを決めます。
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 default
13230 \end_layout
13231
13232 \end_inset
13233
13234 が指定されると、文書設定が「行頭下げ」段落様式を使用しているときに、行頭下げを変更することができます。
13235 \begin_inset Flex Code
13236 status collapsed
13237
13238 \begin_layout Plain Layout
13239 always
13240 \end_layout
13241
13242 \end_inset
13243
13244 は、文書設定にかかわらず変更することができ、
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 never
13250 \end_layout
13251
13252 \end_inset
13253
13254 は、どのような場合でも変更することができません。
13255 \end_layout
13256
13257 \begin_layout Description
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262 TopSep
13263 \end_layout
13264
13265 \end_inset
13266
13267  [
13268 \begin_inset Flex Code
13269 status collapsed
13270
13271 \begin_layout Plain Layout
13272 浮動小数点型=0
13273 \end_layout
13274
13275 \end_inset
13276
13277 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13278 の最大値がとられます。
13279 \end_layout
13280
13281 \begin_layout Subsection
13282 段落様式の国際化
13283 \begin_inset CommandInset label
13284 LatexCommand label
13285 name "subsec:段落様式の国際化"
13286
13287 \end_inset
13288
13289
13290 \end_layout
13291
13292 \begin_layout Standard
13293 \SpecialChar LyX
13294 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13295 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13296 \lang french
13297 Théorème
13298 \lang japanese
13299  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13300 \end_layout
13301
13302 \begin_layout Standard
13303 もし
13304 \begin_inset Flex MenuItem
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 Style
13309 \end_layout
13310
13311 \end_inset
13312
13313 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13314 \begin_inset Flex MenuItem
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 LangPreamble
13319 \end_layout
13320
13321 \end_inset
13322
13323
13324 \begin_inset Flex MenuItem
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 BabelPreamble
13329 \end_layout
13330
13331 \end_inset
13332
13333 を使用することができます。以下の抜粋(
13334 \begin_inset Flex MenuItem
13335 status collapsed
13336
13337 \begin_layout Plain Layout
13338 theorems-ams.inc
13339 \end_layout
13340
13341 \end_inset
13342
13343 より)は、これがどう動作するかを示すものです。
13344 \end_layout
13345
13346 \begin_layout LyX-Code
13347 Preamble
13348 \begin_inset Separator parbreak
13349 \end_inset
13350
13351
13352 \end_layout
13353
13354 \begin_deeper
13355 \begin_layout LyX-Code
13356   
13357 \backslash
13358 theoremstyle{remark}
13359 \end_layout
13360
13361 \begin_layout LyX-Code
13362   
13363 \backslash
13364 newtheorem{claim}[thm]{
13365 \backslash
13366 protect
13367 \backslash
13368 claimname}
13369 \end_layout
13370
13371 \begin_layout LyX-Code
13372 EndPreamble
13373 \end_layout
13374
13375 \begin_layout LyX-Code
13376 LangPreamble
13377 \end_layout
13378
13379 \begin_layout LyX-Code
13380   
13381 \backslash
13382 providecommand{
13383 \backslash
13384 claimname}{_(Claim)}
13385 \end_layout
13386
13387 \begin_layout LyX-Code
13388 EndLangPreamble
13389 \end_layout
13390
13391 \begin_layout LyX-Code
13392 BabelPreamble
13393 \end_layout
13394
13395 \begin_layout LyX-Code
13396     
13397 \backslash
13398 addto
13399 \backslash
13400 captions$$lang{
13401 \backslash
13402 renewcommand{
13403 \backslash
13404 claimname}{_(Claim)}}
13405 \end_layout
13406
13407 \begin_layout LyX-Code
13408 EndBabelPreamble
13409 \end_layout
13410
13411 \end_deeper
13412 \begin_layout Standard
13413 原則として、
13414 \begin_inset Flex MenuItem
13415 status collapsed
13416
13417 \begin_layout Plain Layout
13418 LangPreamble
13419 \end_layout
13420
13421 \end_inset
13422
13423
13424 \begin_inset Flex MenuItem
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 BabelPreamble
13429 \end_layout
13430
13431 \end_inset
13432
13433 タグ内には、有効な\SpecialChar LaTeX
13434 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13435 は、\SpecialChar LaTeX
13436 コマンド
13437 \begin_inset Flex Code
13438 status collapsed
13439
13440 \begin_layout Plain Layout
13441
13442 \backslash
13443 claimname
13444 \end_layout
13445
13446 \end_inset
13447
13448 とその
13449 \begin_inset Flex Code
13450 status collapsed
13451
13452 \begin_layout Plain Layout
13453
13454 \backslash
13455 newtheorem
13456 \end_layout
13457
13458 \end_inset
13459
13460 中での用い方です。
13461 \end_layout
13462
13463 \begin_layout Standard
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 LangPreamble
13469 \end_layout
13470
13471 \end_inset
13472
13473 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 Preamble
13479 \end_layout
13480
13481 \end_inset
13482
13483 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 _()
13489 \end_layout
13490
13491 \end_inset
13492
13493 が使用されていることです。これは、\SpecialChar LyX
13494 が\SpecialChar LaTeX
13495 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13496 \end_layout
13497
13498 \begin_layout Standard
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 BabelPreamble
13504 \end_layout
13505
13506 \end_inset
13507
13508 タグは、複数言語文書をサポートし、
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513 babel
13514 \end_layout
13515
13516 \end_inset
13517
13518 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13519 の場合には、
13520 \begin_inset Flex Code
13521 status collapsed
13522
13523 \begin_layout Plain Layout
13524 _()
13525 \end_layout
13526
13527 \end_inset
13528
13529 の引数は、その当該言語への翻訳で置き換えられ、
13530 \begin_inset Flex Code
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534 $$lang
13535 \end_layout
13536
13537 \end_inset
13538
13539 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13540 \end_layout
13541
13542 \begin_layout Standard
13543 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13544 \end_layout
13545
13546 \begin_layout LyX-Code
13547
13548 \backslash
13549 addto
13550 \backslash
13551 captionsfrench{
13552 \backslash
13553 renewcommand{
13554 \backslash
13555 claimname}{Affirmation}}
13556 \begin_inset Newline newline
13557 \end_inset
13558
13559
13560 \backslash
13561 addto
13562 \backslash
13563 captionsngerman{
13564 \backslash
13565 renewcommand{
13566 \backslash
13567 claimname}{Behauptung}}
13568 \begin_inset Newline newline
13569 \end_inset
13570
13571
13572 \backslash
13573 providecommand{
13574 \backslash
13575 claimname}{Behauptung}
13576 \end_layout
13577
13578 \begin_layout Standard
13579 それから、\SpecialChar LaTeX
13580
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 babel
13586 \end_layout
13587
13588 \end_inset
13589
13590 は協力して、出力に正しい文字列を生成します。
13591 \end_layout
13592
13593 \begin_layout Standard
13594 ここで注意しておくべき一つの重要な点は、翻訳は、
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599 layouttranslations
13600 \end_layout
13601
13602 \end_inset
13603
13604 ファイルを通じて、\SpecialChar LyX
13605 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610 layouttranslations
13611 \end_layout
13612
13613 \end_inset
13614
13615 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13616 の国際化ルーチンでは取り扱われないので、
13617 \begin_inset Flex MenuItem
13618 status collapsed
13619
13620 \begin_layout Plain Layout
13621 LangPreamble
13622 \end_layout
13623
13624 \end_inset
13625
13626
13627 \begin_inset Flex MenuItem
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631 BabelPreamble
13632 \end_layout
13633
13634 \end_inset
13635
13636 は、事実上、\SpecialChar LyX
13637 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
13638 に同梱させようとい
13639 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
13640 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
13641 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
13642 \end_layout
13643
13644 \begin_layout Subsection
13645 フロート
13646 \begin_inset CommandInset label
13647 LatexCommand label
13648 name "subsec:フロート"
13649
13650 \end_inset
13651
13652
13653 \end_layout
13654
13655 \begin_layout Standard
13656 \SpecialChar LyX
13657 第1.3.0版以来、テキストクラス自体の中でフロート(
13658 \begin_inset Flex MenuItem
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 figure
13663 \end_layout
13664
13665 \end_inset
13666
13667
13668 \begin_inset Flex MenuItem
13669 status collapsed
13670
13671 \begin_layout Plain Layout
13672 table
13673 \end_layout
13674
13675 \end_inset
13676
13677 ・\SpecialChar ldots
13678 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
13679 \begin_inset Flex Code
13680 status collapsed
13681
13682 \begin_layout Plain Layout
13683 stdfloats.inc
13684 \end_layout
13685
13686 \end_inset
13687
13688 ファイルに含まれているので、作業中のレイアウトファイルに
13689 \end_layout
13690
13691 \begin_layout LyX-Code
13692 Input stdfloats.inc
13693 \end_layout
13694
13695 \begin_layout Standard
13696 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
13697 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
13698 ましょう。
13699 \end_layout
13700
13701 \begin_layout Description
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 AllowedPlacement
13707 \end_layout
13708
13709 \end_inset
13710
13711  [
13712 \begin_inset Flex Code
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 文字列
13717 \end_layout
13718
13719 \end_inset
13720
13721 =!htbpH] このフロート型に許可された配置用の選択肢。値は、配置文字からなる文字列です。使用できる文字には、
13722 \emph on
13723 h
13724 \emph default
13725  (
13726 \begin_inset Quotes eld
13727 \end_inset
13728
13729 here if possible:可能ならば現在位置に
13730 \begin_inset Quotes erd
13731 \end_inset
13732
13733 ), 
13734 \emph on
13735 t
13736 \emph default
13737  (
13738 \begin_inset Quotes eld
13739 \end_inset
13740
13741 top of page:ページ上部
13742 \begin_inset Quotes erd
13743 \end_inset
13744
13745 )・
13746 \emph on
13747 b
13748 \emph default
13749  (
13750 \begin_inset Quotes eld
13751 \end_inset
13752
13753 bottom of page:ページ下部
13754 \begin_inset Quotes erd
13755 \end_inset
13756
13757 )・
13758 \emph on
13759 p
13760 \emph default
13761  (
13762 \begin_inset Quotes eld
13763 \end_inset
13764
13765 page of floats:フロートを独立したページに
13766 \begin_inset Quotes erd
13767 \end_inset
13768
13769 )・
13770 \emph on
13771 H
13772 \emph default
13773  (
13774 \begin_inset Quotes eld
13775 \end_inset
13776
13777 here definitely:何としても現在位置に置く
13778 \begin_inset Quotes erd
13779 \end_inset
13780
13781 )・
13782 \emph on
13783 !
13784 \emph default
13785  (
13786 \begin_inset Quotes eld
13787 \end_inset
13788
13789 ignore LaTeX rules:LaTeXの規則を無視する
13790 \begin_inset Quotes erd
13791 \end_inset
13792
13793 )があります。文字列中の文字の順序は関係ありません。配置の選択肢を与えない場合には、文字列として
13794 \emph on
13795 none
13796 \emph default
13797 を与えてください。
13798 \end_layout
13799
13800 \begin_layout Description
13801 \begin_inset Flex Code
13802 status collapsed
13803
13804 \begin_layout Plain Layout
13805 AllowsSideways
13806 \end_layout
13807
13808 \end_inset
13809
13810  [
13811 \begin_inset Flex Code
13812 status collapsed
13813
13814 \begin_layout Plain Layout
13815 0
13816 \end_layout
13817
13818 \end_inset
13819
13820 ,
13821 \begin_inset space \thinspace{}
13822 \end_inset
13823
13824
13825 \emph on
13826
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 1
13832 \end_layout
13833
13834 \end_inset
13835
13836
13837 \emph default
13838 ] フロートを、\SpecialChar LaTeX
13839 パッケージの
13840 \family typewriter
13841 rotfloat
13842 \family default
13843  (横向きフロート)を使って回転させることを許可するか否かを指定。フロートにこの機能をサポートさせないときには、
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848 0
13849 \end_layout
13850
13851 \end_inset
13852
13853 を指定してください。
13854 \end_layout
13855
13856 \begin_layout Description
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 AllowsWide
13862 \end_layout
13863
13864 \end_inset
13865
13866  [
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 0
13872 \end_layout
13873
13874 \end_inset
13875
13876 ,
13877 \begin_inset space \thinspace{}
13878 \end_inset
13879
13880
13881 \emph on
13882
13883 \begin_inset Flex Code
13884 status collapsed
13885
13886 \begin_layout Plain Layout
13887 1
13888 \end_layout
13889
13890 \end_inset
13891
13892
13893 \emph default
13894 ] このフロートに、二段組段落において段落をまたぐ、星付き版があるか否かを定義。フロートにこの機能をサポートさせないときには、
13895 \begin_inset Flex Code
13896 status collapsed
13897
13898 \begin_layout Plain Layout
13899 0
13900 \end_layout
13901
13902 \end_inset
13903
13904 を指定してください。
13905 \end_layout
13906
13907 \begin_layout Description
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 Extension
13913 \end_layout
13914
13915 \end_inset
13916
13917  [
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 文字列
13923 \end_layout
13924
13925 \end_inset
13926
13927 =
13928 \begin_inset Quotes erd
13929 \end_inset
13930
13931
13932 \begin_inset Quotes erd
13933 \end_inset
13934
13935 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
13936 がキャプションを書き込むファイルです。
13937 \end_layout
13938
13939 \begin_layout Description
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 GuiName
13945 \end_layout
13946
13947 \end_inset
13948
13949  [
13950 \begin_inset Flex Code
13951 status collapsed
13952
13953 \begin_layout Plain Layout
13954 文字列
13955 \end_layout
13956
13957 \end_inset
13958
13959 =
13960 \begin_inset Quotes erd
13961 \end_inset
13962
13963
13964 \begin_inset Quotes erd
13965 \end_inset
13966
13967 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
13968 \end_layout
13969
13970 \begin_layout Description
13971 \begin_inset Flex Code
13972 status collapsed
13973
13974 \begin_layout Plain Layout
13975 HTML*
13976 \end_layout
13977
13978 \end_inset
13979
13980  これらは、XHTML出力で使用されます。
13981 \begin_inset CommandInset ref
13982 LatexCommand ref
13983 reference "sec:XHTML出力のタグ"
13984
13985 \end_inset
13986
13987 をご覧ください。
13988 \end_layout
13989
13990 \begin_layout Description
13991 \begin_inset Flex Code
13992 status collapsed
13993
13994 \begin_layout Plain Layout
13995 IsPredefined
13996 \end_layout
13997
13998 \end_inset
13999
14000  [
14001 \begin_inset Flex Code
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005
14006 \emph on
14007 0
14008 \end_layout
14009
14010 \end_inset
14011
14012 ,
14013 \begin_inset space \thinspace{}
14014 \end_inset
14015
14016
14017 \begin_inset Flex Code
14018 status collapsed
14019
14020 \begin_layout Plain Layout
14021 1
14022 \end_layout
14023
14024 \end_inset
14025
14026 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14027 パッケージ
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 float
14033 \end_layout
14034
14035 \end_inset
14036
14037 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 0
14043 \end_layout
14044
14045 \end_inset
14046
14047 で、この場合
14048 \begin_inset Flex Code
14049 status collapsed
14050
14051 \begin_layout Plain Layout
14052 float
14053 \end_layout
14054
14055 \end_inset
14056
14057 を使用します。\SpecialChar LaTeX
14058 ドキュメントクラス中に既に定義されているときには、
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 0
14064 \end_layout
14065
14066 \end_inset
14067
14068 に設定しなくてはなりません。
14069 \end_layout
14070
14071 \begin_layout Description
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076 ListCommand
14077 \end_layout
14078
14079 \end_inset
14080
14081  [
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 文字列
14087 \end_layout
14088
14089 \end_inset
14090
14091 =
14092 \begin_inset Quotes erd
14093 \end_inset
14094
14095
14096 \begin_inset Quotes erd
14097 \end_inset
14098
14099 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14100 \backslash
14101 」は書きません。
14102 \begin_inset Flex Code
14103 status collapsed
14104
14105 \begin_layout Plain Layout
14106 NeedsFloatPkg
14107 \end_layout
14108
14109 \end_inset
14110
14111 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14112 \emph on
14113 必ず
14114 \emph default
14115 指定しなくてはなりません。
14116 \begin_inset Flex Code
14117 status collapsed
14118
14119 \begin_layout Plain Layout
14120 NeedsFloatPkg
14121 \end_layout
14122
14123 \end_inset
14124
14125 が真の時は、標準的な方法が存在するので、これは無視されます。
14126 \end_layout
14127
14128 \begin_layout Description
14129 \begin_inset Flex Code
14130 status collapsed
14131
14132 \begin_layout Plain Layout
14133 ListName
14134 \end_layout
14135
14136 \end_inset
14137
14138  [
14139 \begin_inset Flex Code
14140 status collapsed
14141
14142 \begin_layout Plain Layout
14143 文字列
14144 \end_layout
14145
14146 \end_inset
14147
14148 =
14149 \begin_inset Quotes erd
14150 \end_inset
14151
14152
14153 \begin_inset Quotes erd
14154 \end_inset
14155
14156 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14157 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14158 に渡さ
14159 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14160 \end_layout
14161
14162 \begin_layout Description
14163 \begin_inset Flex Code
14164 status collapsed
14165
14166 \begin_layout Plain Layout
14167 NumberWithin
14168 \end_layout
14169
14170 \end_inset
14171
14172  [
14173 \begin_inset Flex Code
14174 status collapsed
14175
14176 \begin_layout Plain Layout
14177 文字列
14178 \end_layout
14179
14180 \end_inset
14181
14182 =
14183 \begin_inset Quotes erd
14184 \end_inset
14185
14186
14187 \begin_inset Quotes erd
14188 \end_inset
14189
14190 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14191 \begin_inset Flex Code
14192 status collapsed
14193
14194 \begin_layout Plain Layout
14195 NumberWithin
14196 \end_layout
14197
14198 \end_inset
14199
14200 が「
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 chapter
14206 \end_layout
14207
14208 \end_inset
14209
14210 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14211 \end_layout
14212
14213 \begin_layout Description
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218 Placement
14219 \end_layout
14220
14221 \end_inset
14222
14223  [
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 文字列
14229 \end_layout
14230
14231 \end_inset
14232
14233 =
14234 \begin_inset Quotes erd
14235 \end_inset
14236
14237
14238 \begin_inset Quotes erd
14239 \end_inset
14240
14241 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14242 表記に従い、
14243 \begin_inset Flex Code
14244 status collapsed
14245
14246 \begin_layout Plain Layout
14247 t
14248 \end_layout
14249
14250 \end_inset
14251
14252 ならば上部(top)、
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257 b
14258 \end_layout
14259
14260 \end_inset
14261
14262 ならば下部(bottom)、
14263 \begin_inset Flex Code
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 p
14268 \end_layout
14269
14270 \end_inset
14271
14272 ならばページ(page)、
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 h
14278 \end_layout
14279
14280 \end_inset
14281
14282 ならばここ(here)を表します
14283 \begin_inset Foot
14284 status collapsed
14285
14286 \begin_layout Plain Layout
14287 \SpecialChar LaTeX
14288 同様、文字列中でのこれらの文字の順序は関係ありません。
14289 \end_layout
14290
14291 \end_inset
14292
14293 。これらの他に新しい型
14294 \begin_inset Flex Code
14295 status collapsed
14296
14297 \begin_layout Plain Layout
14298 H
14299 \end_layout
14300
14301 \end_inset
14302
14303 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14304 \begin_inset Flex Code
14305 status collapsed
14306
14307 \begin_layout Plain Layout
14308 H
14309 \end_layout
14310
14311 \end_inset
14312
14313 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14314 に「
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 tbp
14320 \end_layout
14321
14322 \end_inset
14323
14324 」を指定してください。
14325 \end_layout
14326
14327 \begin_layout Description
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 RefPrefix
14333 \end_layout
14334
14335 \end_inset
14336
14337  [
14338 \begin_inset Flex Code
14339 status collapsed
14340
14341 \begin_layout Plain Layout
14342 文字列
14343 \end_layout
14344
14345 \end_inset
14346
14347 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14348 \begin_inset Flex Code
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352 RefPrefix
14353 \end_layout
14354
14355 \end_inset
14356
14357 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14358 \end_layout
14359
14360 \begin_layout Description
14361 \begin_inset Flex Code
14362 status collapsed
14363
14364 \begin_layout Plain Layout
14365 Style
14366 \end_layout
14367
14368 \end_inset
14369
14370  [
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375 文字列
14376 \end_layout
14377
14378 \end_inset
14379
14380 =
14381 \begin_inset Quotes erd
14382 \end_inset
14383
14384
14385 \begin_inset Quotes erd
14386 \end_inset
14387
14388
14389 \begin_inset Flex Code
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393
14394 \backslash
14395 newfloat
14396 \end_layout
14397
14398 \end_inset
14399
14400 を使用してフロートを定義する際に使用される様式。
14401 \end_layout
14402
14403 \begin_layout Description
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 Type
14409 \end_layout
14410
14411 \end_inset
14412
14413  [
14414 \begin_inset Flex Code
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418 文字列
14419 \end_layout
14420
14421 \end_inset
14422
14423 =
14424 \begin_inset Quotes erd
14425 \end_inset
14426
14427
14428 \begin_inset Quotes erd
14429 \end_inset
14430
14431 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436
14437 \backslash
14438 newfloat
14439 \end_layout
14440
14441 \end_inset
14442
14443 の後で、
14444 \begin_inset Flex Code
14445 status collapsed
14446
14447 \begin_layout Plain Layout
14448
14449 \backslash
14450 begin{program}
14451 \end_layout
14452
14453 \end_inset
14454
14455
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460
14461 \backslash
14462 end{algorithm*}
14463 \end_layout
14464
14465 \end_inset
14466
14467 といったコマンドが利用できます。
14468 \end_layout
14469
14470 \begin_layout Description
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 UsesFloatPkg
14476 \end_layout
14477
14478 \end_inset
14479
14480  [
14481 \begin_inset Flex Code
14482 status collapsed
14483
14484 \begin_layout Plain Layout
14485 0
14486 \end_layout
14487
14488 \end_inset
14489
14490 ,
14491 \begin_inset space \thinspace{}
14492 \end_inset
14493
14494
14495 \begin_inset Flex Code
14496 status collapsed
14497
14498 \begin_layout Plain Layout
14499
14500 \emph on
14501 1
14502 \end_layout
14503
14504 \end_inset
14505
14506 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14507 パッケージ
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512 float
14513 \end_layout
14514
14515 \end_inset
14516
14517 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14518 自身がオン・ザ・フライで定義しているのかを示します。
14519 \end_layout
14520
14521 \begin_layout Standard
14522 \begin_inset Flex Code
14523 status collapsed
14524
14525 \begin_layout Plain Layout
14526
14527 \emph on
14528 type
14529 \end_layout
14530
14531 \end_inset
14532
14533 型のフロートを定義すると、自動的に
14534 \emph on
14535 対応する
14536 \emph default
14537
14538 \begin_inset Flex Code
14539 status collapsed
14540
14541 \begin_layout Plain Layout
14542
14543 \emph on
14544 type
14545 \end_layout
14546
14547 \end_inset
14548
14549 名カウンタが定義されます。
14550 \end_layout
14551
14552 \begin_layout Subsection
14553 自由差込枠と差込枠レイアウト
14554 \begin_inset CommandInset label
14555 LatexCommand label
14556 name "subsec:任意設定差込枠"
14557
14558 \end_inset
14559
14560
14561 \end_layout
14562
14563 \begin_layout Standard
14564 自由差込枠には次の3種類があります。
14565 \end_layout
14566
14567 \begin_layout Itemize
14568 文字様式(
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 CharStyle
14574 \end_layout
14575
14576 \end_inset
14577
14578 )。これは、
14579 \begin_inset Flex Code
14580 status collapsed
14581
14582 \begin_layout Plain Layout
14583
14584 \backslash
14585 noun
14586 \end_layout
14587
14588 \end_inset
14589
14590
14591 \begin_inset Flex Code
14592 status collapsed
14593
14594 \begin_layout Plain Layout
14595
14596 \backslash
14597 code
14598 \end_layout
14599
14600 \end_inset
14601
14602 などの\SpecialChar LaTeX
14603 コマンドに対応した意味論的マークアップを定義するものです。
14604 \end_layout
14605
14606 \begin_layout Itemize
14607 ユーザ設定(
14608 \begin_inset Flex Code
14609 status collapsed
14610
14611 \begin_layout Plain Layout
14612 Custom
14613 \end_layout
14614
14615 \end_inset
14616
14617 )。これは、\SpecialChar TeX
14618 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623 endnote
14624 \end_layout
14625
14626 \end_inset
14627
14628 モジュール中で定義されています。
14629 \end_layout
14630
14631 \begin_layout Itemize
14632 XML要素(
14633 \begin_inset Flex Code
14634 status collapsed
14635
14636 \begin_layout Plain Layout
14637 Element
14638 \end_layout
14639
14640 \end_inset
14641
14642 )。DocBookクラスで使用するものです。
14643 \end_layout
14644
14645 \begin_layout Standard
14646 自由差込枠は、以下で説明する
14647 \begin_inset Flex Code
14648 status collapsed
14649
14650 \begin_layout Plain Layout
14651 InsetLayout
14652 \end_layout
14653
14654 \end_inset
14655
14656 タグを使用して定義されます。
14657 \end_layout
14658
14659 \begin_layout Standard
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 InsetLayout
14665 \end_layout
14666
14667 \end_inset
14668
14669 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 InsetLayout
14675 \end_layout
14676
14677 \end_inset
14678
14679 は自由差込枠を定義することの他に、脚註・傍註・註釈差込枠・\SpecialChar TeX
14680 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14681 ー定義するのに使用されます。
14682 \end_layout
14683
14684 \begin_layout Standard
14685 \begin_inset Flex Code
14686 status collapsed
14687
14688 \begin_layout Plain Layout
14689 InsetLayout
14690 \end_layout
14691
14692 \end_inset
14693
14694 定義は以下の形の行では始まらなくてはなりません。
14695 \end_layout
14696
14697 \begin_layout LyX-Code
14698 InsetLayout <型>
14699 \end_layout
14700
14701 \begin_layout Standard
14702 ここで
14703 \begin_inset Flex Code
14704 status collapsed
14705
14706 \begin_layout Plain Layout
14707 <型>
14708 \end_layout
14709
14710 \end_inset
14711
14712 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
14713 \end_layout
14714
14715 \begin_layout Enumerate
14716 既存の差込枠のレイアウトを変更する場合。この場合、
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721 <型>
14722 \end_layout
14723
14724 \end_inset
14725
14726 は以下のいずれかになります:
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731 Algorithm
14732 \end_layout
14733
14734 \end_inset
14735
14736
14737 \begin_inset Flex Code
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741 Branch
14742 \end_layout
14743
14744 \end_inset
14745
14746
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 Box
14752 \end_layout
14753
14754 \end_inset
14755
14756
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 Box:shaded
14762 \end_layout
14763
14764 \end_inset
14765
14766
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 Caption:Standard
14772 \end_layout
14773
14774 \end_inset
14775
14776
14777 \begin_inset Flex Code
14778 status collapsed
14779
14780 \begin_layout Plain Layout
14781 ERT
14782 \end_layout
14783
14784 \end_inset
14785
14786
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 Figure
14792 \end_layout
14793
14794 \end_inset
14795
14796
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 Foot
14802 \end_layout
14803
14804 \end_inset
14805
14806
14807 \begin_inset Flex Code
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 Index
14812 \end_layout
14813
14814 \end_inset
14815
14816
14817 \begin_inset Flex Code
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 Info
14822 \end_layout
14823
14824 \end_inset
14825
14826
14827 \begin_inset Flex Code
14828 status collapsed
14829
14830 \begin_layout Plain Layout
14831 Info:menu
14832 \end_layout
14833
14834 \end_inset
14835
14836
14837 \begin_inset Flex Code
14838 status collapsed
14839
14840 \begin_layout Plain Layout
14841 Info:shortcut
14842 \end_layout
14843
14844 \end_inset
14845
14846
14847 \begin_inset Flex Code
14848 status collapsed
14849
14850 \begin_layout Plain Layout
14851 Info:shortcuts
14852 \end_layout
14853
14854 \end_inset
14855
14856
14857 \begin_inset Flex Code
14858 status collapsed
14859
14860 \begin_layout Plain Layout
14861 Listings
14862 \end_layout
14863
14864 \end_inset
14865
14866
14867 \begin_inset Flex Code
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871 Marginal
14872 \end_layout
14873
14874 \end_inset
14875
14876
14877 \begin_inset Flex Code
14878 status collapsed
14879
14880 \begin_layout Plain Layout
14881 Note:Comment
14882 \end_layout
14883
14884 \end_inset
14885
14886
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 Note:Note
14892 \end_layout
14893
14894 \end_inset
14895
14896
14897 \begin_inset Flex Code
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901 Note:GreyedOut
14902 \end_layout
14903
14904 \end_inset
14905
14906
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 Table
14912 \end_layout
14913
14914 \end_inset
14915
14916
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 URL
14922 \end_layout
14923
14924 \end_inset
14925
14926
14927 \end_layout
14928
14929 \begin_layout Enumerate
14930 自由差込枠のレイアウトを定義する場合。この場合、
14931 \begin_inset Flex Code
14932 status collapsed
14933
14934 \begin_layout Plain Layout
14935 <型>
14936 \end_layout
14937
14938 \end_inset
14939
14940
14941 \begin_inset Flex Code
14942 status collapsed
14943
14944 \begin_layout Plain Layout
14945 Flex:<名称>
14946 \end_layout
14947
14948 \end_inset
14949
14950 の形でなくてはなりません。ここで、
14951 \begin_inset Flex Code
14952 status collapsed
14953
14954 \begin_layout Plain Layout
14955 名称
14956 \end_layout
14957
14958 \end_inset
14959
14960 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
14961 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 LyXType
14967 \end_layout
14968
14969 \end_inset
14970
14971 項目が含まれていなくてはならないことに注意してください。
14972 \end_layout
14973
14974 \begin_layout Enumerate
14975 ユーザー定義派生枝を定義する場合。この場合、
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 <型>
14981 \end_layout
14982
14983 \end_inset
14984
14985 は「
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 Branch:<名称>
14991 \end_layout
14992
14993 \end_inset
14994
14995 」の形でなくてはなりません。ここで、
14996 \begin_inset Flex Code
14997 status collapsed
14998
14999 \begin_layout Plain Layout
15000 名称
15001 \end_layout
15002
15003 \end_inset
15004
15005 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15006 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15007 がくるむことができるようにすることです。
15008 \end_layout
15009
15010 \begin_layout Enumerate
15011 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 <型>
15017 \end_layout
15018
15019 \end_inset
15020
15021 は「
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 Caption:<名称>
15027 \end_layout
15028
15029 \end_inset
15030
15031 」の形でなくてはなりません。ここで、
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 名称
15037 \end_layout
15038
15039 \end_inset
15040
15041 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 Caption:Standard
15047 \end_layout
15048
15049 \end_inset
15050
15051 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15052 \begin_inset Flex Code
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056 Caption:Above
15057 \end_layout
15058
15059 \end_inset
15060
15061
15062 \begin_inset Flex Code
15063 status collapsed
15064
15065 \begin_layout Plain Layout
15066 Caption:Below
15067 \end_layout
15068
15069 \end_inset
15070
15071 )、
15072 \family sans
15073 多言語キャプション
15074 \family default
15075 モジュール(
15076 \begin_inset Flex Code
15077 status collapsed
15078
15079 \begin_layout Plain Layout
15080 Caption:Bicaption
15081 \end_layout
15082
15083 \end_inset
15084
15085 )をご覧ください。
15086 \end_layout
15087
15088 \begin_layout Standard
15089 \begin_inset Flex Code
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 InsetLayout
15094 \end_layout
15095
15096 \end_inset
15097
15098 定義には以下の項目を入れることができます。
15099 \end_layout
15100
15101 \begin_layout Description
15102 \begin_inset Flex Code
15103 status collapsed
15104
15105 \begin_layout Plain Layout
15106 Argument
15107 \end_layout
15108
15109 \end_inset
15110
15111  [
15112 \begin_inset Flex Code
15113 status collapsed
15114
15115 \begin_layout Plain Layout
15116 整数
15117 \end_layout
15118
15119 \end_inset
15120
15121 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15122 \begin_inset Flex Code
15123 status collapsed
15124
15125 \begin_layout Plain Layout
15126 EndArgument
15127 \end_layout
15128
15129 \end_inset
15130
15131 で閉じなくてはなりません。詳細は
15132 \begin_inset CommandInset ref
15133 LatexCommand ref
15134 reference "subsec:段落様式"
15135
15136 \end_inset
15137
15138 参照。
15139 \end_layout
15140
15141 \begin_layout Description
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146 BabelPreamble
15147 \end_layout
15148
15149 \end_inset
15150
15151  言語コマンドを変更するプリアンブル。
15152 \begin_inset CommandInset ref
15153 LatexCommand ref
15154 reference "subsec:段落様式の国際化"
15155
15156 \end_inset
15157
15158 参照。
15159 \end_layout
15160
15161 \begin_layout Description
15162 \begin_inset Flex Code
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 BgColor
15167 \end_layout
15168
15169 \end_inset
15170
15171  [
15172 \begin_inset Flex Code
15173 status collapsed
15174
15175 \begin_layout Plain Layout
15176 <名称>
15177 \end_layout
15178
15179 \end_inset
15180
15181 ] 差込枠の背景色。使用できる色名一覧は
15182 \begin_inset CommandInset ref
15183 LatexCommand ref
15184 reference "chap:色名"
15185
15186 \end_inset
15187
15188 参照。
15189 \end_layout
15190
15191 \begin_layout Description
15192 \begin_inset Flex Code
15193 status collapsed
15194
15195 \begin_layout Plain Layout
15196 ContentAsLabel
15197 \end_layout
15198
15199 \end_inset
15200
15201  [
15202 \begin_inset Flex Code
15203 status collapsed
15204
15205 \begin_layout Plain Layout
15206
15207 \emph on
15208 0
15209 \end_layout
15210
15211 \end_inset
15212
15213 ,
15214 \begin_inset space \thinspace{}
15215 \end_inset
15216
15217
15218 \begin_inset Flex Code
15219 status collapsed
15220
15221 \begin_layout Plain Layout
15222 1
15223 \end_layout
15224
15225 \end_inset
15226
15227 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15228 \end_layout
15229
15230 \begin_layout Description
15231 \begin_inset Flex Code
15232 status collapsed
15233
15234 \begin_layout Plain Layout
15235 CopyStyle
15236 \end_layout
15237
15238 \end_inset
15239
15240  [<型>] 段落様式と同様です。
15241 \begin_inset CommandInset ref
15242 LatexCommand ref
15243 reference "subsec:段落様式"
15244
15245 \end_inset
15246
15247 参照のこと。完全な型を指定する必要があることに注意してください。例:
15248 \begin_inset Flex Code
15249 status collapsed
15250
15251 \begin_layout Plain Layout
15252 CopyStyle Flex:<名称>
15253 \end_layout
15254
15255 \end_inset
15256
15257
15258 \end_layout
15259
15260 \begin_layout Description
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 CustomPars
15266 \end_layout
15267
15268 \end_inset
15269
15270  [
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275
15276 \emph on
15277 0
15278 \end_layout
15279
15280 \end_inset
15281
15282 ,
15283 \begin_inset space \thinspace{}
15284 \end_inset
15285
15286
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 1
15292 \end_layout
15293
15294 \end_inset
15295
15296 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15297 \end_layout
15298
15299 \begin_layout Description
15300 \begin_inset Flex Code
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304 Decoration
15305 \end_layout
15306
15307 \end_inset
15308
15309  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 Classic
15315 \end_layout
15316
15317 \end_inset
15318
15319
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 Minimalistic
15325 \end_layout
15326
15327 \end_inset
15328
15329
15330 \begin_inset Flex Code
15331 status collapsed
15332
15333 \begin_layout Plain Layout
15334 Conglomerate
15335 \end_layout
15336
15337 \end_inset
15338
15339 のいずれかを指定することができます。脚註は通常
15340 \begin_inset Flex Code
15341 status collapsed
15342
15343 \begin_layout Plain Layout
15344 Classic
15345 \end_layout
15346
15347 \end_inset
15348
15349 を使用し、\SpecialChar TeX
15350 コード差込枠は通常
15351 \begin_inset Flex Code
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355 Minimalistic
15356 \end_layout
15357
15358 \end_inset
15359
15360 、文字様式は
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 Conglomerate
15366 \end_layout
15367
15368 \end_inset
15369
15370 を使用します。
15371 \end_layout
15372
15373 \begin_layout Description
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 Display
15379 \end_layout
15380
15381 \end_inset
15382
15383  [
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388 0
15389 \end_layout
15390
15391 \end_inset
15392
15393 ,
15394 \begin_inset space \thinspace{}
15395 \end_inset
15396
15397
15398 \begin_inset Flex Code
15399 status collapsed
15400
15401 \begin_layout Plain Layout
15402
15403 \emph on
15404 1
15405 \end_layout
15406
15407 \end_inset
15408
15409
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 LatexType
15415 \end_layout
15416
15417 \end_inset
15418
15419
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424 Environment
15425 \end_layout
15426
15427 \end_inset
15428
15429 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15430 環境は、
15431 \begin_inset Flex Code
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435
15436 \backslash
15437 begin{LatexName}
15438 \end_layout
15439
15440 \end_inset
15441
15442 タグと
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447
15448 \backslash
15449 end{LatexName}
15450 \end_layout
15451
15452 \end_inset
15453
15454 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15455 \end_layout
15456
15457 \begin_layout Description
15458 \begin_inset Flex Code
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462 End
15463 \end_layout
15464
15465 \end_inset
15466
15467  
15468 \begin_inset Flex Code
15469 status collapsed
15470
15471 \begin_layout Plain Layout
15472 InsetLayout
15473 \end_layout
15474
15475 \end_inset
15476
15477 宣言を閉じるのに必要です。
15478 \end_layout
15479
15480 \begin_layout Description
15481 \begin_inset Flex Code
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485 Font
15486 \end_layout
15487
15488 \end_inset
15489
15490  本文本体とラベル
15491 \emph on
15492 両方に
15493 \emph default
15494 使用されるフォントです。
15495 \begin_inset CommandInset ref
15496 LatexCommand ref
15497 reference "subsec:フォント指定"
15498
15499 \end_inset
15500
15501 を参照。このフォントを定義すると自動的に
15502 \begin_inset Flex Code
15503 status collapsed
15504
15505 \begin_layout Plain Layout
15506 LabelFont
15507 \end_layout
15508
15509 \end_inset
15510
15511 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516 LabelFont
15517 \end_layout
15518
15519 \end_inset
15520
15521 を定義しなくてはならないことに注意してください。
15522 \end_layout
15523
15524 \begin_layout Description
15525 \begin_inset Flex Code
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529 FixedWidthPreambleEncoding
15530 \end_layout
15531
15532 \end_inset
15533
15534  [
15535 \begin_inset Flex Code
15536 status collapsed
15537
15538 \begin_layout Plain Layout
15539
15540 \emph on
15541 0
15542 \end_layout
15543
15544 \end_inset
15545
15546 ,
15547 \begin_inset space \thinspace{}
15548 \end_inset
15549
15550
15551 \begin_inset Flex Code
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 1
15556 \end_layout
15557
15558 \end_inset
15559
15560 ] このレイアウトによって生成される
15561 \begin_inset Flex Code
15562 status collapsed
15563
15564 \begin_layout Plain Layout
15565 BabelPreamble
15566 \end_layout
15567
15568 \end_inset
15569
15570 および
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 LangPreamble
15576 \end_layout
15577
15578 \end_inset
15579
15580 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か。これは、
15581 \family typewriter
15582 listings
15583 \family default
15584 のように、
15585 \family sans
15586 utf8
15587 \family default
15588 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15589 パッケージのために必要です。この設定は、Xe\SpecialChar TeX
15590 やLua\SpecialChar TeX
15591 のようなUnicodeを完全に解する\SpecialChar LaTeX
15592 バックエンドを使用してい
15593 る場合には、無視されます。
15594 \end_layout
15595
15596 \begin_layout Description
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 ForceLocalFontSwitch
15602 \end_layout
15603
15604 \end_inset
15605
15606  [
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611
15612 \emph on
15613 0
15614 \end_layout
15615
15616 \end_inset
15617
15618 ,
15619 \begin_inset space \thinspace{}
15620 \end_inset
15621
15622
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 1
15628 \end_layout
15629
15630 \end_inset
15631
15632 ] babel使用時に、常にローカルフォント切替(
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637
15638 \backslash
15639 foreignlanguage
15640 \end_layout
15641
15642 \end_inset
15643
15644 )を使い、グローバル切替(
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649
15650 \backslash
15651 selectlanguage
15652 \end_layout
15653
15654 \end_inset
15655
15656 など)は使わない。
15657 \end_layout
15658
15659 \begin_layout Description
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 ForceLTR
15665 \end_layout
15666
15667 \end_inset
15668
15669  [
15670 \begin_inset Flex Code
15671 status collapsed
15672
15673 \begin_layout Plain Layout
15674
15675 \emph on
15676 0
15677 \end_layout
15678
15679 \end_inset
15680
15681 ,
15682 \begin_inset space \thinspace{}
15683 \end_inset
15684
15685
15686 \begin_inset Flex Code
15687 status collapsed
15688
15689 \begin_layout Plain Layout
15690 1
15691 \end_layout
15692
15693 \end_inset
15694
15695 ] たとえば\SpecialChar TeX
15696 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
15697 \end_layout
15698
15699 \begin_layout Description
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704 ForceOwnlines
15705 \end_layout
15706
15707 \end_inset
15708
15709  [
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714
15715 \emph on
15716 0
15717 \end_layout
15718
15719 \end_inset
15720
15721 ,
15722 \begin_inset space \thinspace{}
15723 \end_inset
15724
15725
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 1
15731 \end_layout
15732
15733 \end_inset
15734
15735 ] \SpecialChar LaTeX
15736 出力において、この差込枠が開始する前と終了する後に、改行を強制します。これは、解析上の目的のために、差込枠が単独行に出力されるように保証します。
15737 \end_layout
15738
15739 \begin_layout Description
15740 \begin_inset Flex Code
15741 status collapsed
15742
15743 \begin_layout Plain Layout
15744 ForcePlain
15745 \end_layout
15746
15747 \end_inset
15748
15749  [
15750 \begin_inset Flex Code
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754
15755 \emph on
15756 0
15757 \end_layout
15758
15759 \end_inset
15760
15761 ,
15762 \begin_inset space \thinspace{}
15763 \end_inset
15764
15765
15766 \begin_inset Flex Code
15767 status collapsed
15768
15769 \begin_layout Plain Layout
15770 1
15771 \end_layout
15772
15773 \end_inset
15774
15775 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
15776 \end_layout
15777
15778 \begin_layout Description
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 FreeSpacing
15784 \end_layout
15785
15786 \end_inset
15787
15788  [
15789 \emph on
15790
15791 \begin_inset Flex Code
15792 status collapsed
15793
15794 \begin_layout Plain Layout
15795 0
15796 \end_layout
15797
15798 \end_inset
15799
15800
15801 \emph default
15802 ,
15803 \begin_inset space \thinspace{}
15804 \end_inset
15805
15806
15807 \begin_inset Flex Code
15808 status collapsed
15809
15810 \begin_layout Plain Layout
15811 1
15812 \end_layout
15813
15814 \end_inset
15815
15816 ] 段落様式と同様。
15817 \begin_inset CommandInset ref
15818 LatexCommand ref
15819 reference "subsec:段落様式"
15820
15821 \end_inset
15822
15823 参照。
15824 \end_layout
15825
15826 \begin_layout Description
15827 \begin_inset Flex Code
15828 status collapsed
15829
15830 \begin_layout Plain Layout
15831 HTML*
15832 \end_layout
15833
15834 \end_inset
15835
15836  これらは、XHTML出力で使用されます。
15837 \begin_inset CommandInset ref
15838 LatexCommand ref
15839 reference "sec:XHTML出力のタグ"
15840
15841 \end_inset
15842
15843 をご覧ください。
15844 \end_layout
15845
15846 \begin_layout Description
15847 \begin_inset Flex Code
15848 status collapsed
15849
15850 \begin_layout Plain Layout
15851 InToc
15852 \end_layout
15853
15854 \end_inset
15855
15856  [
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861
15862 \emph on
15863 0
15864 \end_layout
15865
15866 \end_inset
15867
15868 ,
15869 \begin_inset space \thinspace{}
15870 \end_inset
15871
15872
15873 \begin_inset Flex Code
15874 status collapsed
15875
15876 \begin_layout Plain Layout
15877 1
15878 \end_layout
15879
15880 \end_inset
15881
15882 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚註の内容が、文書構造の目次に表示されることは望まないでしょ
15883 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
15884 \end_layout
15885
15886 \begin_layout Description
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 KeepEmpty
15892 \end_layout
15893
15894 \end_inset
15895
15896  [
15897 \emph on
15898
15899 \begin_inset Flex Code
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903 0
15904 \end_layout
15905
15906 \end_inset
15907
15908
15909 \emph default
15910 ,
15911 \begin_inset space \thinspace{}
15912 \end_inset
15913
15914
15915 \begin_inset Flex Code
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919 1
15920 \end_layout
15921
15922 \end_inset
15923
15924 ] 段落様式と同様。
15925 \begin_inset CommandInset ref
15926 LatexCommand ref
15927 reference "subsec:段落様式"
15928
15929 \end_inset
15930
15931 参照。
15932 \end_layout
15933
15934 \begin_layout Description
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 LabelFont
15940 \end_layout
15941
15942 \end_inset
15943
15944  ラベルに使用されるフォント。第
15945 \begin_inset CommandInset ref
15946 LatexCommand ref
15947 reference "subsec:フォント指定"
15948
15949 \end_inset
15950
15951 節を参照。非効率を回避するため、この定義は
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 Font
15957 \end_layout
15958
15959 \end_inset
15960
15961 の前には決して現れてはなりません。
15962 \end_layout
15963
15964 \begin_layout Description
15965 \begin_inset Flex Code
15966 status collapsed
15967
15968 \begin_layout Plain Layout
15969 LabelString
15970 \end_layout
15971
15972 \end_inset
15973
15974  [
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 文字列
15980 \end_layout
15981
15982 \end_inset
15983
15984 =
15985 \begin_inset Quotes erd
15986 \end_inset
15987
15988
15989 \begin_inset Quotes erd
15990 \end_inset
15991
15992 ]
15993 \lang english
15994  
15995 \lang japanese
15996 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
15997 コードや派生枝)、ラベルが動的に変更されます。
15998 \end_layout
15999
16000 \begin_layout Description
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 LangPreamble
16006 \end_layout
16007
16008 \end_inset
16009
16010  言語依存のプリアンブル。
16011 \begin_inset CommandInset ref
16012 LatexCommand ref
16013 reference "subsec:段落様式の国際化"
16014
16015 \end_inset
16016
16017 参照。
16018 \end_layout
16019
16020 \begin_layout Description
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 LatexName
16026 \end_layout
16027
16028 \end_inset
16029
16030  [
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 <名称>
16036 \end_layout
16037
16038 \end_inset
16039
16040 ] 対応する\SpecialChar LaTeX
16041 関連物の名称。環境名ないしはコマンド名。
16042 \end_layout
16043
16044 \begin_layout Description
16045 \begin_inset Flex Code
16046 status collapsed
16047
16048 \begin_layout Plain Layout
16049 LatexParam
16050 \end_layout
16051
16052 \end_inset
16053
16054  [
16055 \begin_inset Flex Code
16056 status collapsed
16057
16058 \begin_layout Plain Layout
16059 <パラメータ>
16060 \end_layout
16061
16062 \end_inset
16063
16064 ]
16065 \lang english
16066  
16067 \lang japanese
16068 対応する
16069 \begin_inset Flex Code
16070 status collapsed
16071
16072 \begin_layout Plain Layout
16073 LatexName
16074 \end_layout
16075
16076 \end_inset
16077
16078 関連物の非必須パラメータ。
16079 \begin_inset Flex Code
16080 status collapsed
16081
16082 \begin_layout Plain Layout
16083 []
16084 \end_layout
16085
16086 \end_inset
16087
16088 のような括弧対を含む。このパラメータは\SpecialChar LyX
16089 内部から変更することはできません(変更可能なパラメータには
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094 Argument
16095 \end_layout
16096
16097 \end_inset
16098
16099 を使用してください)。これは、全ての\SpecialChar LaTeX
16100  
16101 \begin_inset Flex Code
16102 status collapsed
16103
16104 \begin_layout Plain Layout
16105 Argument
16106 \end_layout
16107
16108 \end_inset
16109
16110 の後にそのままの形で出力されます。
16111 \end_layout
16112
16113 \begin_layout Description
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 LatexType
16119 \end_layout
16120
16121 \end_inset
16122
16123  [
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 Command, Environment, None
16129 \end_layout
16130
16131 \end_inset
16132
16133 ] 様式がどのように\SpecialChar LaTeX
16134 に変換されるべきかを示します
16135 \begin_inset Foot
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139 これらのルールはSGMLクラスにも適用されるので、
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 LatexType
16145 \end_layout
16146
16147 \end_inset
16148
16149 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16150 \end_layout
16151
16152 \end_inset
16153
16154
16155 \begin_inset Separator parbreak
16156 \end_inset
16157
16158
16159 \end_layout
16160
16161 \begin_deeper
16162 \begin_layout Description
16163 \begin_inset Flex Code
16164 status collapsed
16165
16166 \begin_layout Plain Layout
16167 None
16168 \end_layout
16169
16170 \end_inset
16171
16172  は、何も特別なことは意味しません
16173 \end_layout
16174
16175 \begin_layout Description
16176 \begin_inset Flex Code
16177 status collapsed
16178
16179 \begin_layout Plain Layout
16180 Command
16181 \end_layout
16182
16183 \end_inset
16184
16185  は、
16186 \begin_inset Flex Code
16187 status collapsed
16188
16189 \begin_layout Plain Layout
16190
16191 \backslash
16192
16193 \emph on
16194 LatexName
16195 \emph default
16196 {\SpecialChar ldots
16197 }
16198 \end_layout
16199
16200 \end_inset
16201
16202 を意味します
16203 \end_layout
16204
16205 \begin_layout Description
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210 Environment
16211 \end_layout
16212
16213 \end_inset
16214
16215  は、
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220
16221 \backslash
16222 begin{
16223 \emph on
16224 LatexName
16225 \emph default
16226 }\SpecialChar ldots
16227
16228 \backslash
16229 end{
16230 \emph on
16231 LatexName
16232 \emph default
16233 }
16234 \end_layout
16235
16236 \end_inset
16237
16238 を意味します
16239 \end_layout
16240
16241 \begin_layout Standard
16242 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16243 出力は、\SpecialChar LaTeX
16244 型に依存して
16245 \end_layout
16246
16247 \begin_layout LyX-Code
16248
16249 \backslash
16250 LatexName[LatexParam]{\SpecialChar ldots
16251 }
16252 \end_layout
16253
16254 \begin_layout Standard
16255 のようになるか、
16256 \end_layout
16257
16258 \begin_layout LyX-Code
16259
16260 \backslash
16261 begin{LatexName}[LatexParam] \SpecialChar ldots
16262  
16263 \backslash
16264 end{LatexName}.
16265 \end_layout
16266
16267 \begin_layout Standard
16268 となります。
16269 \end_layout
16270
16271 \end_deeper
16272 \begin_layout Description
16273 \begin_inset Flex Code
16274 status collapsed
16275
16276 \begin_layout Plain Layout
16277 LeftDelim
16278 \end_layout
16279
16280 \end_inset
16281
16282  [
16283 \begin_inset Flex Code
16284 status collapsed
16285
16286 \begin_layout Plain Layout
16287 文字列
16288 \end_layout
16289
16290 \end_inset
16291
16292 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 <br/>
16298 \end_layout
16299
16300 \end_inset
16301
16302 で指示できます。
16303 \end_layout
16304
16305 \begin_layout Description
16306 \begin_inset Flex Code
16307 status collapsed
16308
16309 \begin_layout Plain Layout
16310 LyxType
16311 \end_layout
16312
16313 \end_inset
16314
16315  
16316 \begin_inset Flex Code
16317 status collapsed
16318
16319 \begin_layout Plain Layout
16320 charstyle
16321 \end_layout
16322
16323 \end_inset
16324
16325
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 custom
16331 \end_layout
16332
16333 \end_inset
16334
16335
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 element
16341 \end_layout
16342
16343 \end_inset
16344
16345
16346 \begin_inset Flex Code
16347 status collapsed
16348
16349 \begin_layout Plain Layout
16350 end
16351 \end_layout
16352
16353 \end_inset
16354
16355 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16356 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 LyXType
16362 \end_layout
16363
16364 \end_inset
16365
16366
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 charstyle
16372 \end_layout
16373
16374 \end_inset
16375
16376 に設定すると、
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381 MultiPar
16382 \end_layout
16383
16384 \end_inset
16385
16386 が偽に設定されます。文字様式差込枠で
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 MultiPar
16392 \end_layout
16393
16394 \end_inset
16395
16396 を真にしたい時には、
16397 \begin_inset Flex Code
16398 status collapsed
16399
16400 \begin_layout Plain Layout
16401 LyXType
16402 \end_layout
16403
16404 \end_inset
16405
16406 を設定した
16407 \emph on
16408 後に
16409 \emph default
16410 設定すれば、真に設定することができます。
16411 \end_layout
16412
16413 \begin_layout Description
16414 \begin_inset Flex Code
16415 status collapsed
16416
16417 \begin_layout Plain Layout
16418 MultiPar
16419 \end_layout
16420
16421 \end_inset
16422
16423  [
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428
16429 \emph on
16430 0
16431 \end_layout
16432
16433 \end_inset
16434
16435 ,
16436 \begin_inset space \thinspace{}
16437 \end_inset
16438
16439
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444 1
16445 \end_layout
16446
16447 \end_inset
16448
16449 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16450 \begin_inset Flex Code
16451 status collapsed
16452
16453 \begin_layout Plain Layout
16454 CustomPars
16455 \end_layout
16456
16457 \end_inset
16458
16459 を同じ値に設定し、
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 ForcePlain
16465 \end_layout
16466
16467 \end_inset
16468
16469 を逆の値に設定します。これらは、
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 MultiPar
16475 \end_layout
16476
16477 \end_inset
16478
16479
16480 \emph on
16481 後に
16482 \emph default
16483 指定されれば、他の値に指定し直すことができます。既定値は真です。
16484 \end_layout
16485
16486 \begin_layout Description
16487 \begin_inset Flex Code
16488 status collapsed
16489
16490 \begin_layout Plain Layout
16491 NeedProtect
16492 \end_layout
16493
16494 \end_inset
16495
16496  [
16497 \begin_inset Flex Code
16498 status collapsed
16499
16500 \begin_layout Plain Layout
16501
16502 \emph on
16503 0
16504 \end_layout
16505
16506 \end_inset
16507
16508 ,
16509 \begin_inset space \thinspace{}
16510 \end_inset
16511
16512
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 1
16518 \end_layout
16519
16520 \end_inset
16521
16522 ] 本レイアウト中で脆弱なコマンドを
16523 \begin_inset Flex Code
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527
16528 \backslash
16529 protect
16530 \end_layout
16531
16532 \end_inset
16533
16534 するか否か(註:当該コマンド自身をprotectするかどうかでは
16535 \emph on
16536 ありません
16537 \emph default
16538 )。既定値は偽です。
16539 \end_layout
16540
16541 \begin_layout Description
16542 \begin_inset Flex Code
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546 NoInsetLayout
16547 \end_layout
16548
16549 \end_inset
16550
16551  [
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556 <レイアウト>
16557 \end_layout
16558
16559 \end_inset
16560
16561 ] 既存の
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566 InsetLayout
16567 \end_layout
16568
16569 \end_inset
16570
16571 を削除します。
16572 \end_layout
16573
16574 \begin_layout Description
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 ObsoletedBy
16580 \end_layout
16581
16582 \end_inset
16583
16584  [
16585 \begin_inset Flex Code
16586 status collapsed
16587
16588 \begin_layout Plain Layout
16589 <レイアウト>
16590 \end_layout
16591
16592 \end_inset
16593
16594 ] この古い
16595 \begin_inset Flex Code
16596 status collapsed
16597
16598 \begin_layout Plain Layout
16599 InsetLayout
16600 \end_layout
16601
16602 \end_inset
16603
16604 を引き継いだ
16605 \begin_inset Flex Code
16606 status collapsed
16607
16608 \begin_layout Plain Layout
16609 InsetLayout
16610 \end_layout
16611
16612 \end_inset
16613
16614 の名称。これは、
16615 \begin_inset Flex Code
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 InsetLayout
16620 \end_layout
16621
16622 \end_inset
16623
16624 の改名を、後方互換性を維持しながら行うために用いられます。
16625 \end_layout
16626
16627 \begin_layout Description
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 ParbreakIsNewline
16633 \end_layout
16634
16635 \end_inset
16636
16637  [
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642
16643 \emph on
16644 0
16645 \end_layout
16646
16647 \end_inset
16648
16649 ,
16650 \begin_inset space \thinspace{}
16651 \end_inset
16652
16653
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 1
16659 \end_layout
16660
16661 \end_inset
16662
16663 ] 段落様式と同様。
16664 \begin_inset CommandInset ref
16665 LatexCommand ref
16666 reference "subsec:段落様式"
16667
16668 \end_inset
16669
16670 参照。
16671 \end_layout
16672
16673 \begin_layout Description
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 PassThru
16679 \end_layout
16680
16681 \end_inset
16682
16683  [
16684 \emph on
16685
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 0
16691 \end_layout
16692
16693 \end_inset
16694
16695
16696 \emph default
16697 ,
16698 \begin_inset space \thinspace{}
16699 \end_inset
16700
16701
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 1
16707 \end_layout
16708
16709 \end_inset
16710
16711 ] 段落様式と同様。
16712 \begin_inset CommandInset ref
16713 LatexCommand ref
16714 reference "subsec:段落様式"
16715
16716 \end_inset
16717
16718 参照。
16719 \end_layout
16720
16721 \begin_layout Description
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 Preamble
16727 \end_layout
16728
16729 \end_inset
16730
16731  段落様式と同様。
16732 \begin_inset CommandInset ref
16733 LatexCommand ref
16734 reference "subsec:段落様式"
16735
16736 \end_inset
16737
16738 参照。
16739 \end_layout
16740
16741 \begin_layout Description
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 RefPrefix
16747 \end_layout
16748
16749 \end_inset
16750
16751  [
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 文字列
16757 \end_layout
16758
16759 \end_inset
16760
16761 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
16762 \end_layout
16763
16764 \begin_layout Description
16765 \begin_inset Flex Code
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769 Requires
16770 \end_layout
16771
16772 \end_inset
16773
16774  [
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779 文字列
16780 \end_layout
16781
16782 \end_inset
16783
16784 ] 段落様式と同様。
16785 \begin_inset CommandInset ref
16786 LatexCommand ref
16787 reference "subsec:段落様式"
16788
16789 \end_inset
16790
16791 参照。
16792 \end_layout
16793
16794 \begin_layout Description
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 ResetArgs
16800 \end_layout
16801
16802 \end_inset
16803
16804  [
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809
16810 \emph on
16811 0
16812 \end_layout
16813
16814 \end_inset
16815
16816 ,
16817 \begin_inset space \thinspace{}
16818 \end_inset
16819
16820
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 1
16826 \end_layout
16827
16828 \end_inset
16829
16830 ] (
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 Argument
16836 \end_layout
16837
16838 \end_inset
16839
16840 タグで定義された)この様式の\SpecialChar LaTeX
16841 引数をリセットします。これは、様式を
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 CopyStyle
16847 \end_layout
16848
16849 \end_inset
16850
16851 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
16852 \end_layout
16853
16854 \begin_layout Description
16855 \begin_inset Flex Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 ResetsFont
16860 \end_layout
16861
16862 \end_inset
16863
16864  [
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869 0
16870 \end_layout
16871
16872 \end_inset
16873
16874 ,
16875 \begin_inset space \thinspace{}
16876 \end_inset
16877
16878
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883
16884 \emph on
16885 1
16886 \end_layout
16887
16888 \end_inset
16889
16890 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
16891 \begin_inset Note Note
16892 status open
16893
16894 \begin_layout Plain Layout
16895 This is outdated: The default changed from 1 to 0
16896 \end_layout
16897
16898 \end_inset
16899
16900
16901 \end_layout
16902
16903 \begin_layout Description
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 RightDelim
16909 \end_layout
16910
16911 \end_inset
16912
16913  [
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 文字列
16919 \end_layout
16920
16921 \end_inset
16922
16923 ] 様式の内容の最後に置かれる文字列。出力中の改行は
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 <br/>
16929 \end_layout
16930
16931 \end_inset
16932
16933 で指示できます。
16934 \end_layout
16935
16936 \begin_layout Description
16937 \begin_inset Flex Code
16938 status collapsed
16939
16940 \begin_layout Plain Layout
16941 Spellcheck
16942 \end_layout
16943
16944 \end_inset
16945
16946  [
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 0
16952 \end_layout
16953
16954 \end_inset
16955
16956 ,
16957 \begin_inset space \thinspace{}
16958 \end_inset
16959
16960
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965
16966 \emph on
16967 1
16968 \end_layout
16969
16970 \end_inset
16971
16972 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
16973 \end_layout
16974
16975 \begin_layout Subsection
16976 カウンタ
16977 \begin_inset CommandInset label
16978 LatexCommand label
16979 name "subsec:カウンタ"
16980
16981 \end_inset
16982
16983
16984 \end_layout
16985
16986 \begin_layout Standard
16987 テキストクラスには、カウンタ(
16988 \begin_inset Flex MenuItem
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 chapter
16993 \end_layout
16994
16995 \end_inset
16996
16997
16998 \begin_inset Flex MenuItem
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 figure
17003 \end_layout
17004
17005 \end_inset
17006
17007 ・\SpecialChar ldots
17008 )を定義することが必要です。標準的なカウンタは
17009 \begin_inset Flex Code
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 stdcounters.inc
17014 \end_layout
17015
17016 \end_inset
17017
17018 ファイルに含まれているので、作業中のレイアウトファイルに
17019 \end_layout
17020
17021 \begin_layout LyX-Code
17022 Input stdcounters.inc
17023 \end_layout
17024
17025 \begin_layout Standard
17026 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17027 \end_layout
17028
17029 \begin_layout LyX-Code
17030 Counter カウンタ名
17031 \end_layout
17032
17033 \begin_layout Standard
17034 で始まらなくてはなりません。ここで「
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 カウンタ名
17040 \end_layout
17041
17042 \end_inset
17043
17044 」は、実際のカウンタ名で置き換えます。また、宣言は「
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 End
17050 \end_layout
17051
17052 \end_inset
17053
17054 」で終わらなくてはなりません。
17055 \end_layout
17056
17057 \begin_layout Standard
17058 以下のパラメータを使用することができます。
17059 \end_layout
17060
17061 \begin_layout Description
17062 \begin_inset Flex Code
17063 status collapsed
17064
17065 \begin_layout Plain Layout
17066 InitialValue
17067 \end_layout
17068
17069 \end_inset
17070
17071  [
17072 \begin_inset Flex Code
17073 status collapsed
17074
17075 \begin_layout Plain Layout
17076 整数=1
17077 \end_layout
17078
17079 \end_inset
17080
17081 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17082 \end_layout
17083
17084 \begin_layout Description
17085 \begin_inset Flex Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089 LabelString [文字列=""]
17090 \end_layout
17091
17092 \end_inset
17093
17094  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17095 \begin_inset Flex Code
17096 status collapsed
17097
17098 \begin_layout Plain Layout
17099 LabelStringAppendix
17100 \end_layout
17101
17102 \end_inset
17103
17104 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17105 \begin_inset Separator parbreak
17106 \end_inset
17107
17108
17109 \end_layout
17110
17111 \begin_deeper
17112 \begin_layout Itemize
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117
17118 \backslash
17119 thecounter
17120 \end_layout
17121
17122 \end_inset
17123
17124 は、カウンタ
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129 counter
17130 \end_layout
17131
17132 \end_inset
17133
17134
17135 \begin_inset Flex Code
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139 LabelString
17140 \end_layout
17141
17142 \end_inset
17143
17144 (または
17145 \begin_inset Newline linebreak
17146 \end_inset
17147
17148
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 LabelStringAppendix
17154 \end_layout
17155
17156 \end_inset
17157
17158 )を展開したもので置き換えられます。 
17159 \end_layout
17160
17161 \begin_layout Itemize
17162 カウンタ値は、\SpecialChar LaTeX
17163 型マクロ
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168
17169 \backslash
17170
17171 \emph on
17172 numbertype
17173 \emph default
17174 {
17175 \emph on
17176 カウンタ
17177 \emph default
17178 }
17179 \end_layout
17180
17181 \end_inset
17182
17183 を用いて表現することができます。ここで
17184 \begin_inset Flex Code
17185 status collapsed
17186
17187 \begin_layout Plain Layout
17188
17189 \emph on
17190 numbertype
17191 \end_layout
17192
17193 \end_inset
17194
17195 は以下のいずれかです。
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 arabic
17201 \end_layout
17202
17203 \end_inset
17204
17205 :1, 2, 3,\SpecialChar ldots
17206
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 alph
17212 \end_layout
17213
17214 \end_inset
17215
17216 :a, b, c, \SpecialChar ldots
17217 (小文字);
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 Alph
17223 \end_layout
17224
17225 \end_inset
17226
17227 :A, B, C, \SpecialChar ldots
17228 (大文字);
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 roman
17234 \end_layout
17235
17236 \end_inset
17237
17238 :i, ii, iii, \SpecialChar ldots
17239 (小文字ローマ数字);
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 Roman
17245 \end_layout
17246
17247 \end_inset
17248
17249 :I, II, III\SpecialChar ldots
17250 (大文字ローマ数字)。
17251 \end_layout
17252
17253 \end_deeper
17254 \begin_layout Standard
17255 \begin_inset Flex Code
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259 LabelString
17260 \end_layout
17261
17262 \end_inset
17263
17264 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 master
17270 \end_layout
17271
17272 \end_inset
17273
17274
17275 \begin_inset Flex Code
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279 Within
17280 \end_layout
17281
17282 \end_inset
17283
17284 で定義)があるときには、文字列
17285 \begin_inset Newline linebreak
17286 \end_inset
17287
17288
17289 \begin_inset Flex Code
17290 status collapsed
17291
17292 \begin_layout Plain Layout
17293
17294 \backslash
17295 themaster.
17296 \backslash
17297 arabic{カウンタ}
17298 \end_layout
17299
17300 \end_inset
17301
17302 が使用されます。それ以外の場合は、
17303 \begin_inset Flex Code
17304 status collapsed
17305
17306 \begin_layout Plain Layout
17307
17308 \backslash
17309 arabic{カウンタ}
17310 \end_layout
17311
17312 \end_inset
17313
17314 が使用されます。
17315 \end_layout
17316
17317 \begin_layout Description
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 LabelStringAppendix
17323 \end_layout
17324
17325 \end_inset
17326
17327  [
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332 文字列
17333 \end_layout
17334
17335 \end_inset
17336
17337 =""] 
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 LabelString
17343 \end_layout
17344
17345 \end_inset
17346
17347 と同様ですが、付録で使用するためのものです。
17348 \end_layout
17349
17350 \begin_layout Description
17351 \begin_inset Flex Code
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355 PrettyFormat
17356 \end_layout
17357
17358 \end_inset
17359
17360  [
17361 \begin_inset Flex Code
17362 status collapsed
17363
17364 \begin_layout Plain Layout
17365 文字列
17366 \end_layout
17367
17368 \end_inset
17369
17370 =
17371 \begin_inset Quotes erd
17372 \end_inset
17373
17374
17375 \begin_inset Quotes erd
17376 \end_inset
17377
17378 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17379 \begin_inset space ~
17380 \end_inset
17381
17382 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17383 す。
17384 \end_layout
17385
17386 \begin_layout Description
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391 Within
17392 \end_layout
17393
17394 \end_inset
17395
17396  [
17397 \begin_inset Flex Code
17398 status collapsed
17399
17400 \begin_layout Plain Layout
17401 文字列
17402 \end_layout
17403
17404 \end_inset
17405
17406 =
17407 \begin_inset Quotes erd
17408 \end_inset
17409
17410
17411 \begin_inset Quotes erd
17412 \end_inset
17413
17414 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419 subsection
17420 \end_layout
17421
17422 \end_inset
17423
17424
17425 \begin_inset Flex Code
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429 section
17430 \end_layout
17431
17432 \end_inset
17433
17434 毎に番号がリセットされます。
17435 \end_layout
17436
17437 \begin_layout Subsection
17438 フォント指定
17439 \begin_inset CommandInset label
17440 LatexCommand label
17441 name "subsec:フォント指定"
17442
17443 \end_inset
17444
17445
17446 \end_layout
17447
17448 \begin_layout Standard
17449 フォント指定は、以下のような形を取ります。
17450 \end_layout
17451
17452 \begin_layout LyX-Code
17453 Font 
17454 \family roman
17455 \emph on
17456 または
17457 \family default
17458 \emph default
17459  LabelFont 
17460 \family roman
17461 \emph on
17462 または
17463 \family default
17464 \emph default
17465  DefaultFont
17466 \end_layout
17467
17468 \begin_layout LyX-Code
17469  ...
17470 \end_layout
17471
17472 \begin_layout LyX-Code
17473 EndFont
17474 \end_layout
17475
17476 \begin_layout Standard
17477 以下のコマンドを使用することができます。
17478 \end_layout
17479
17480 \begin_layout Description
17481 \begin_inset Flex Code
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485 Color
17486 \end_layout
17487
17488 \end_inset
17489
17490  [
17491 \begin_inset Flex Code
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \emph on
17497 none
17498 \end_layout
17499
17500 \end_inset
17501
17502
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 black
17508 \end_layout
17509
17510 \end_inset
17511
17512
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 white
17518 \end_layout
17519
17520 \end_inset
17521
17522
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 red
17528 \end_layout
17529
17530 \end_inset
17531
17532
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 green
17538 \end_layout
17539
17540 \end_inset
17541
17542
17543 \begin_inset Flex Code
17544 status collapsed
17545
17546 \begin_layout Plain Layout
17547 blue
17548 \end_layout
17549
17550 \end_inset
17551
17552
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 cyan
17558 \end_layout
17559
17560 \end_inset
17561
17562
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 magenta
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 yellow
17578 \end_layout
17579
17580 \end_inset
17581
17582 ]
17583 \end_layout
17584
17585 \begin_layout Description
17586 \begin_inset Flex Code
17587 status collapsed
17588
17589 \begin_layout Plain Layout
17590 Family
17591 \end_layout
17592
17593 \end_inset
17594
17595  [
17596 \emph on
17597
17598 \begin_inset Flex Code
17599 status collapsed
17600
17601 \begin_layout Plain Layout
17602 Roman
17603 \end_layout
17604
17605 \end_inset
17606
17607
17608 \emph default
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 Sans
17615 \end_layout
17616
17617 \end_inset
17618
17619
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 Typewriter
17625 \end_layout
17626
17627 \end_inset
17628
17629
17630 \end_layout
17631
17632 \begin_layout Description
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637 Misc
17638 \end_layout
17639
17640 \end_inset
17641
17642  [
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647 文字列
17648 \end_layout
17649
17650 \end_inset
17651
17652 ] 有効な引数は、
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 emph
17658 \end_layout
17659
17660 \end_inset
17661
17662
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 noun
17668 \end_layout
17669
17670 \end_inset
17671
17672
17673 \begin_inset Flex Code
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677 strikeout
17678 \end_layout
17679
17680 \end_inset
17681
17682
17683 \begin_inset Flex Code
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687 underbar
17688 \end_layout
17689
17690 \end_inset
17691
17692
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 uuline
17698 \end_layout
17699
17700 \end_inset
17701
17702
17703 \begin_inset Flex Code
17704 status collapsed
17705
17706 \begin_layout Plain Layout
17707 uwave
17708 \end_layout
17709
17710 \end_inset
17711
17712
17713 \begin_inset Flex Code
17714 status collapsed
17715
17716 \begin_layout Plain Layout
17717 no_emph
17718 \end_layout
17719
17720 \end_inset
17721
17722
17723 \begin_inset Flex Code
17724 status collapsed
17725
17726 \begin_layout Plain Layout
17727 no_noun
17728 \end_layout
17729
17730 \end_inset
17731
17732
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 no_strikeout
17738 \end_layout
17739
17740 \end_inset
17741
17742
17743 \begin_inset Flex Code
17744 status collapsed
17745
17746 \begin_layout Plain Layout
17747 no_bar
17748 \end_layout
17749
17750 \end_inset
17751
17752
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 no_uuline
17758 \end_layout
17759
17760 \end_inset
17761
17762
17763 \begin_inset Flex Code
17764 status collapsed
17765
17766 \begin_layout Plain Layout
17767 no_uwave
17768 \end_layout
17769
17770 \end_inset
17771
17772 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
17773 \begin_inset Newline newline
17774 \end_inset
17775
17776 たとえば、
17777 \begin_inset Flex Code
17778 status collapsed
17779
17780 \begin_layout Plain Layout
17781 emph
17782 \end_layout
17783
17784 \end_inset
17785
17786 は強調を有効にし、
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 no_emph
17792 \end_layout
17793
17794 \end_inset
17795
17796 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
17797
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 no_emph
17803 \end_layout
17804
17805 \end_inset
17806
17807 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
17808 \end_layout
17809
17810 \begin_layout Description
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 Series
17816 \end_layout
17817
17818 \end_inset
17819
17820  [
17821 \emph on
17822
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 Medium
17828 \end_layout
17829
17830 \end_inset
17831
17832
17833 \emph default
17834
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 Bold
17840 \end_layout
17841
17842 \end_inset
17843
17844
17845 \end_layout
17846
17847 \begin_layout Description
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852 Shape
17853 \end_layout
17854
17855 \end_inset
17856
17857  [
17858 \emph on
17859
17860 \begin_inset Flex Code
17861 status collapsed
17862
17863 \begin_layout Plain Layout
17864 Up
17865 \end_layout
17866
17867 \end_inset
17868
17869
17870 \emph default
17871
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 Italic
17877 \end_layout
17878
17879 \end_inset
17880
17881
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 SmallCaps
17887 \end_layout
17888
17889 \end_inset
17890
17891
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 Slanted
17897 \end_layout
17898
17899 \end_inset
17900
17901
17902 \end_layout
17903
17904 \begin_layout Description
17905 \begin_inset Flex Code
17906 status collapsed
17907
17908 \begin_layout Plain Layout
17909 Size
17910 \end_layout
17911
17912 \end_inset
17913
17914  [
17915 \begin_inset Flex Code
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 tiny
17920 \end_layout
17921
17922 \end_inset
17923
17924
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 small
17930 \end_layout
17931
17932 \end_inset
17933
17934
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939
17940 \emph on
17941 normal
17942 \end_layout
17943
17944 \end_inset
17945
17946
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 large
17952 \end_layout
17953
17954 \end_inset
17955
17956
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 larger
17962 \end_layout
17963
17964 \end_inset
17965
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 largest
17972 \end_layout
17973
17974 \end_inset
17975
17976
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 huge
17982 \end_layout
17983
17984 \end_inset
17985
17986
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 giant
17992 \end_layout
17993
17994 \end_inset
17995
17996 ]
17997 \end_layout
17998
17999 \begin_layout Subsection
18000 \begin_inset CommandInset label
18001 LatexCommand label
18002 name "subsec:引用書式指定"
18003
18004 \end_inset
18005
18006 引用書式指定
18007 \end_layout
18008
18009 \begin_layout Standard
18010 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18011 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 CiteFormat
18017 \end_layout
18018
18019 \end_inset
18020
18021 ブロックが使用されています。このブロックは、以下のような形をしています。
18022 \end_layout
18023
18024 \begin_layout LyX-Code
18025 CiteFormat
18026 \end_layout
18027
18028 \begin_layout LyX-Code
18029  article ...
18030 \end_layout
18031
18032 \begin_layout LyX-Code
18033  book ...
18034 \end_layout
18035
18036 \begin_layout LyX-Code
18037 End
18038 \end_layout
18039
18040 \begin_layout Standard
18041 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18042 ファイル中に存在し
18043 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18044 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18045 は、いくつかの書式を
18046 \begin_inset Flex Code
18047 status collapsed
18048
18049 \begin_layout Plain Layout
18050 stdciteformats.inc
18051 \end_layout
18052
18053 \end_inset
18054
18055 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18056 文書クラスにインクルードされています。
18057 \end_layout
18058
18059 \begin_layout Standard
18060 この定義は、Bib\SpecialChar TeX
18061 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 %author%
18067 \end_layout
18068
18069 \end_inset
18070
18071 のように
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 %
18077 \end_layout
18078
18079 \end_inset
18080
18081 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18082 \end_layout
18083
18084 \begin_layout LyX-Code
18085 misc %author%, 
18086 \begin_inset Quotes eld
18087 \end_inset
18088
18089 %title%
18090 \begin_inset Quotes erd
18091 \end_inset
18092
18093
18094 \end_layout
18095
18096 \begin_layout Standard
18097 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18098 \end_layout
18099
18100 \begin_layout Standard
18101 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 {%volume%[[vol.
18107 \begin_inset space ~
18108 \end_inset
18109
18110 %volume%]]}
18111 \end_layout
18112
18113 \end_inset
18114
18115 のように、条件付きの構成を使用することができます。これは、
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120 volume
18121 \end_layout
18122
18123 \end_inset
18124
18125 が存在するならば,「vol.
18126 \begin_inset space ~
18127 \end_inset
18128
18129 」とvolumeキーを出力するという意味です。また、
18130 \begin_inset Newline newline
18131 \end_inset
18132
18133
18134 \begin_inset Flex Code
18135 status collapsed
18136
18137 \begin_layout Plain Layout
18138 {%author%[[%author%]][[%editor%, ed.]]}
18139 \end_layout
18140
18141 \end_inset
18142
18143
18144 \begin_inset Newline newline
18145 \end_inset
18146
18147 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 author
18153 \end_layout
18154
18155 \end_inset
18156
18157 キーが存在するならば出力され、そうでなければeditorキーと「,
18158 \begin_inset space ~
18159 \end_inset
18160
18161 ed.」が出力されます。ここでもキーは、
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 %
18167 \end_layout
18168
18169 \end_inset
18170
18171 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18172 \begin_inset Flex Code
18173 status collapsed
18174
18175 \begin_layout Plain Layout
18176 [[
18177 \end_layout
18178
18179 \end_inset
18180
18181 」と「
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 ]]
18187 \end_layout
18188
18189 \end_inset
18190
18191 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18192 \end_layout
18193
18194 \begin_layout Standard
18195 もう一つ、定義中で使用することのできる文法として、
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 {!<i>!}
18201 \end_layout
18202
18203 \end_inset
18204
18205 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18206 グを出力させたくはありませんから、HTMLタグは「
18207 \begin_inset Flex Code
18208 status collapsed
18209
18210 \begin_layout Plain Layout
18211 {!
18212 \end_layout
18213
18214 \end_inset
18215
18216 」と「
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 !}
18222 \end_layout
18223
18224 \end_inset
18225
18226 」でくるんでやらなくてはならないのです。
18227 \end_layout
18228
18229 \begin_layout Standard
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234 CiteFormat
18235 \end_layout
18236
18237 \end_inset
18238
18239 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18240 \end_layout
18241
18242 \begin_layout LyX-Code
18243 !quotetitle 
18244 \begin_inset Quotes eld
18245 \end_inset
18246
18247 %title%
18248 \begin_inset Quotes erd
18249 \end_inset
18250
18251
18252 \end_layout
18253
18254 \begin_layout Standard
18255 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 %!quotetitle%
18261 \end_layout
18262
18263 \end_inset
18264
18265 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18266 は、
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 %!quotetitle%
18272 \end_layout
18273
18274 \end_inset
18275
18276 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18277 \end_layout
18278
18279 \begin_layout LyX-Code
18280 !funfun %funfun%
18281 \end_layout
18282
18283 \begin_layout Standard
18284 のようなことはしないでください。\SpecialChar LyX
18285 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18286 \end_layout
18287
18288 \begin_layout Standard
18289 特殊な定義の二つめは、
18290 \end_layout
18291
18292 \begin_layout LyX-Code
18293 _pptext pp.
18294 \end_layout
18295
18296 \begin_layout Standard
18297 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 %_pptext%
18303 \end_layout
18304
18305 \end_inset
18306
18307 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 stdciteformats.inc
18313 \end_layout
18314
18315 \end_inset
18316
18317 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18318 \end_layout
18319
18320 \begin_layout Standard
18321 以下は、これらの機能を全て使った例です。
18322 \begin_inset VSpace defskip
18323 \end_inset
18324
18325
18326 \end_layout
18327
18328 \begin_layout Standard
18329 \noindent
18330
18331 \family typewriter
18332 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18333 \end_layout
18334
18335 \begin_layout Standard
18336 \begin_inset VSpace defskip
18337 \end_inset
18338
18339 これは、
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 author
18345 \end_layout
18346
18347 \end_inset
18348
18349 キーが定義されているならば、著者とコンマを出力し、
18350 \begin_inset Flex Code
18351 status collapsed
18352
18353 \begin_layout Plain Layout
18354 author
18355 \end_layout
18356
18357 \end_inset
18358
18359 キーが定義されておらず、
18360 \begin_inset Flex Code
18361 status collapsed
18362
18363 \begin_layout Plain Layout
18364 editor
18365 \end_layout
18366
18367 \end_inset
18368
18369 キーが定義されているならば、編集者名の後に
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 _edtext
18375 \end_layout
18376
18377 \end_inset
18378
18379 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 stdciteformats.inc
18385 \end_layout
18386
18387 \end_inset
18388
18389 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18390 \end_layout
18391
18392 \begin_layout Section
18393 \begin_inset CommandInset label
18394 LatexCommand label
18395 name "sec:XHTML出力のタグ"
18396
18397 \end_inset
18398
18399 XHTML出力のタグ
18400 \end_layout
18401
18402 \begin_layout Standard
18403 \SpecialChar LaTeX
18404 やDocBookと同様、\SpecialChar LyX
18405 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18406 は適切な既定値を提供し、前述したように、他のレイアウト
18407 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18408 は、章様式の
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 Font
18414 \end_layout
18415
18416 \end_inset
18417
18418 宣言で提供されている情報を利用しようと試みます。
18419 \end_layout
18420
18421 \begin_layout Standard
18422 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18423 、これが必要になる場合もあるので、\SpecialChar LyX
18424 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18425 \end_layout
18426
18427 \begin_layout Standard
18428 様式宣言や差込枠宣言の外で使用することができるタグに、
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 HTMLPreamble
18434 \end_layout
18435
18436 \end_inset
18437
18438
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 AddToHTMLPreamble
18444 \end_layout
18445
18446 \end_inset
18447
18448 の2つがあることに注意してください。これらの詳細については、
18449 \begin_inset CommandInset ref
18450 LatexCommand ref
18451 reference "subsec:汎用テキストクラスパラメータ"
18452
18453 \end_inset
18454
18455 をご覧ください。
18456 \end_layout
18457
18458 \begin_layout Subsection
18459 \begin_inset CommandInset label
18460 LatexCommand label
18461 name "subsec:段落様式-XHTML"
18462
18463 \end_inset
18464
18465 段落様式
18466 \end_layout
18467
18468 \begin_layout Standard
18469 \SpecialChar LyX
18470 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18471 \begin_inset Flex Code
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475 \SpecialChar LaTeX
18476 Type
18477 \end_layout
18478
18479 \end_inset
18480
18481 タグの内容によって決定されます。
18482 \end_layout
18483
18484 \begin_layout Standard
18485 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18486 \end_layout
18487
18488 \begin_layout LyX-Code
18489 <tag attr=
18490 \begin_inset Quotes erd
18491 \end_inset
18492
18493 value
18494 \begin_inset Quotes erd
18495 \end_inset
18496
18497 >
18498 \end_layout
18499
18500 \begin_layout LyX-Code
18501 <labeltag attr=
18502 \begin_inset Quotes erd
18503 \end_inset
18504
18505 value
18506 \begin_inset Quotes erd
18507 \end_inset
18508
18509 >ラベル</labeltag>
18510 \end_layout
18511
18512 \begin_layout LyX-Code
18513 段落の内容
18514 \end_layout
18515
18516 \begin_layout LyX-Code
18517 </tag>
18518 \end_layout
18519
18520 \begin_layout Standard
18521 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18522 \end_layout
18523
18524 \begin_layout Standard
18525 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18526 \end_layout
18527
18528 \begin_layout LyX-Code
18529 <tag attr=
18530 \begin_inset Quotes erd
18531 \end_inset
18532
18533 value
18534 \begin_inset Quotes erd
18535 \end_inset
18536
18537 >
18538 \end_layout
18539
18540 \begin_layout LyX-Code
18541 <itemtag attr=
18542 \begin_inset Quotes erd
18543 \end_inset
18544
18545 value
18546 \begin_inset Quotes erd
18547 \end_inset
18548
18549 ><labeltag attr=
18550 \begin_inset Quotes erd
18551 \end_inset
18552
18553 value
18554 \begin_inset Quotes erd
18555 \end_inset
18556
18557 >環境ラベル</labeltag>最初の段落。
18558 \end_layout
18559
18560 \begin_layout LyX-Code
18561 </itemtag>
18562 \end_layout
18563
18564 \begin_layout LyX-Code
18565 <itemtag>二つめの段落。</itemtag>
18566 \end_layout
18567
18568 \begin_layout LyX-Code
18569 </tag>
18570 \end_layout
18571
18572 \begin_layout Standard
18573 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18574 \end_layout
18575
18576 \begin_layout Standard
18577 リストに関しては、次のような形になります。
18578 \end_layout
18579
18580 \begin_layout LyX-Code
18581 <tag attr=
18582 \begin_inset Quotes erd
18583 \end_inset
18584
18585 value
18586 \begin_inset Quotes erd
18587 \end_inset
18588
18589 >
18590 \end_layout
18591
18592 \begin_layout LyX-Code
18593 <itemtag attr=
18594 \begin_inset Quotes erd
18595 \end_inset
18596
18597 value
18598 \begin_inset Quotes erd
18599 \end_inset
18600
18601 ><labeltag attr=
18602 \begin_inset Quotes erd
18603 \end_inset
18604
18605 value
18606 \begin_inset Quotes erd
18607 \end_inset
18608
18609 >リストのラベル</labeltag>最初の項目。</itemtag>
18610 \end_layout
18611
18612 \begin_layout LyX-Code
18613 <itemtag attr=
18614 \begin_inset Quotes erd
18615 \end_inset
18616
18617 value
18618 \begin_inset Quotes erd
18619 \end_inset
18620
18621 ><labeltag attr=
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625 value
18626 \begin_inset Quotes erd
18627 \end_inset
18628
18629 >リストのラベル</labeltag>二つめの項目。</itemtag>
18630 \end_layout
18631
18632 \begin_layout LyX-Code
18633 </tag>
18634 \end_layout
18635
18636 \begin_layout LyX-Code
18637
18638 \end_layout
18639
18640 \begin_layout LyX-Code
18641 <tag attr=
18642 \begin_inset Quotes erd
18643 \end_inset
18644
18645 value
18646 \begin_inset Quotes erd
18647 \end_inset
18648
18649 >
18650 \end_layout
18651
18652 \begin_layout LyX-Code
18653 <labeltag attr=
18654 \begin_inset Quotes erd
18655 \end_inset
18656
18657 value
18658 \begin_inset Quotes erd
18659 \end_inset
18660
18661 >リストのラベル</labeltag><itemtag attr=
18662 \begin_inset Quotes erd
18663 \end_inset
18664
18665 value
18666 \begin_inset Quotes erd
18667 \end_inset
18668
18669 >最初の項目。</itemtag>
18670 \end_layout
18671
18672 \begin_layout LyX-Code
18673 <labeltag attr=
18674 \begin_inset Quotes erd
18675 \end_inset
18676
18677 value
18678 \begin_inset Quotes erd
18679 \end_inset
18680
18681 >リストのラベル</labeltag><itemtag attr=
18682 \begin_inset Quotes erd
18683 \end_inset
18684
18685 value
18686 \begin_inset Quotes erd
18687 \end_inset
18688
18689 >二つめの項目</itemtag>
18690 \end_layout
18691
18692 \begin_layout LyX-Code
18693 </tag>
18694 \end_layout
18695
18696 \begin_layout Standard
18697 ここで
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 labeltag
18703 \end_layout
18704
18705 \end_inset
18706
18707
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 itemtag
18713 \end_layout
18714
18715 \end_inset
18716
18717 の順序が違っていることに注意してください。どちらの順序になるかは、
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 HTMLLabelFirst
18723 \end_layout
18724
18725 \end_inset
18726
18727 の設定に依存します。もし
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 HTMLLabelFirst
18733 \end_layout
18734
18735 \end_inset
18736
18737 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
18738 \end_layout
18739
18740 \begin_layout Standard
18741 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
18742 は適切な既定値を生成
18743 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
18744 でここにあるものと考えてください。
18745 \end_layout
18746
18747 \begin_layout Description
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 HTMLAttr
18753 \end_layout
18754
18755 \end_inset
18756
18757  [
18758 \begin_inset Flex Code
18759 status collapsed
18760
18761 \begin_layout Plain Layout
18762 文字列
18763 \end_layout
18764
18765 \end_inset
18766
18767 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 class=`mydiv'
18773 \end_layout
18774
18775 \end_inset
18776
18777 」のようなものです。既定においては、\SpecialChar LyX
18778 は「
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783 class=`レイアウト名'
18784 \end_layout
18785
18786 \end_inset
18787
18788 」と出力します。ここで
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793 レイアウト名
18794 \end_layout
18795
18796 \end_inset
18797
18798 は、レイアウトの\SpecialChar LyX
18799 名であり、chapterのように小文字で記述します。
18800 \end_layout
18801
18802 \begin_layout Description
18803 \begin_inset Flex Code
18804 status collapsed
18805
18806 \begin_layout Plain Layout
18807 HTMLForceCSS
18808 \end_layout
18809
18810 \end_inset
18811
18812  [
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817
18818 \emph on
18819 0
18820 \emph default
18821 ,1
18822 \end_layout
18823
18824 \end_inset
18825
18826 ] 
18827 \begin_inset Flex Code
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 HTMLStyle
18832 \end_layout
18833
18834 \end_inset
18835
18836 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
18837 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 1
18843 \end_layout
18844
18845 \end_inset
18846
18847 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
18848 \begin_inset Flex Code
18849 status collapsed
18850
18851 \begin_layout Plain Layout
18852 0
18853 \end_layout
18854
18855 \end_inset
18856
18857 です。
18858 \end_layout
18859
18860 \begin_layout Description
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 HTMLItem
18866 \end_layout
18867
18868 \end_inset
18869
18870  [
18871 \begin_inset Flex Code
18872 status collapsed
18873
18874 \begin_layout Plain Layout
18875 文字列
18876 \end_layout
18877
18878 \end_inset
18879
18880 ] 環境の段落に使用されるタグ。上記各例の
18881 \begin_inset Flex Code
18882 status collapsed
18883
18884 \begin_layout Plain Layout
18885 itemtag
18886 \end_layout
18887
18888 \end_inset
18889
18890 を置き換えます。既定値は
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 div
18896 \end_layout
18897
18898 \end_inset
18899
18900 です。
18901 \end_layout
18902
18903 \begin_layout Description
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 HTMLItemAttr
18909 \end_layout
18910
18911 \end_inset
18912
18913  [
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 文字列
18919 \end_layout
18920
18921 \end_inset
18922
18923 ] itemタグの属性。既定値は
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 class=`レイアウト名_item'
18929 \end_layout
18930
18931 \end_inset
18932
18933 です。ここには、様式情報は含まれては
18934 \emph on
18935 なりません
18936 \emph default
18937 。その目的のためには、
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 HTMLStyle
18943 \end_layout
18944
18945 \end_inset
18946
18947 を使用してください。
18948 \end_layout
18949
18950 \begin_layout Description
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 HTMLLabel
18956 \end_layout
18957
18958 \end_inset
18959
18960  [
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 文字列
18966 \end_layout
18967
18968 \end_inset
18969
18970 ] 段落と項目ラベルに使用されるタグ。上記各例の
18971 \begin_inset Flex Code
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 labeltag
18976 \end_layout
18977
18978 \end_inset
18979
18980 を置き換えます。
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 LabelType
18986 \end_layout
18987
18988 \end_inset
18989
18990
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 Top_Environment
18996 \end_layout
18997
18998 \end_inset
18999
19000
19001 \begin_inset Flex Code
19002 status collapsed
19003
19004 \begin_layout Plain Layout
19005 Centered_Top_Environment
19006 \end_layout
19007
19008 \end_inset
19009
19010 の時は、既定値は
19011 \begin_inset Flex Code
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 div
19016 \end_layout
19017
19018 \end_inset
19019
19020 ですが、それ以外の時の既定値は
19021 \begin_inset Flex Code
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025 span
19026 \end_layout
19027
19028 \end_inset
19029
19030 です。
19031 \end_layout
19032
19033 \begin_layout Description
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 HTMLLabelAttr
19039 \end_layout
19040
19041 \end_inset
19042
19043  [
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 文字列
19049 \end_layout
19050
19051 \end_inset
19052
19053 ] labelタグの属性。既定値は
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 class=`レイアウト名_label'
19059 \end_layout
19060
19061 \end_inset
19062
19063 です。ここには、様式情報は含まれては
19064 \emph on
19065 なりません
19066 \emph default
19067 。その目的のためには、
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 HTMLStyle
19073 \end_layout
19074
19075 \end_inset
19076
19077 を使用してください。
19078 \end_layout
19079
19080 \begin_layout Description
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 HTMLLabelFirst
19086 \end_layout
19087
19088 \end_inset
19089
19090  [
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095
19096 \emph on
19097 0
19098 \emph default
19099 ,1
19100 \end_layout
19101
19102 \end_inset
19103
19104 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19105 tion環境の中で、
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 `<dt>\SpecialChar ldots
19111 </dt><dd>\SpecialChar ldots
19112 </dd>
19113 \end_layout
19114
19115 \end_inset
19116
19117 という形を得るために使用されます。既定値は
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 0
19123 \end_layout
19124
19125 \end_inset
19126
19127 で、labelタグはitemタグの中に出力されます。
19128 \end_layout
19129
19130 \begin_layout Description
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 HTMLPreamble
19136 \end_layout
19137
19138 \end_inset
19139
19140  この様式が使用されたときに、
19141 \begin_inset Flex Code
19142 status collapsed
19143
19144 \begin_layout Plain Layout
19145 <head>
19146 \end_layout
19147
19148 \end_inset
19149
19150 セクションに出力される情報。これは、たとえば、
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 onclick
19156 \end_layout
19157
19158 \end_inset
19159
19160 ハンドラを定義するために
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 <script>
19166 \end_layout
19167
19168 \end_inset
19169
19170 ブロックをインクルードするのに使用することができます。
19171 \end_layout
19172
19173 \begin_layout Description
19174 \begin_inset Flex Code
19175 status collapsed
19176
19177 \begin_layout Plain Layout
19178 HTMLStyle
19179 \end_layout
19180
19181 \end_inset
19182
19183   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 <style>
19189 \end_layout
19190
19191 \end_inset
19192
19193 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 EndHTMLStyle
19199 \end_layout
19200
19201 \end_inset
19202
19203 で閉じなくてはなりません。
19204 \end_layout
19205
19206 \begin_layout Description
19207 \begin_inset Flex Code
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 HTMLTag
19212 \end_layout
19213
19214 \end_inset
19215
19216  [
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 文字列
19222 \end_layout
19223
19224 \end_inset
19225
19226 ] 主幹ラベルに使用されるタグ。上記各例の
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 tag
19232 \end_layout
19233
19234 \end_inset
19235
19236 を置き換えます。既定値は
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 div
19242 \end_layout
19243
19244 \end_inset
19245
19246 です。
19247 \end_layout
19248
19249 \begin_layout Description
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 HTMLTitle
19255 \end_layout
19256
19257 \end_inset
19258
19259  [
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264
19265 \emph on
19266 0
19267 \emph default
19268 ,1
19269 \end_layout
19270
19271 \end_inset
19272
19273 ] この様式が、XHTMLファイルの
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 <title>
19279 \end_layout
19280
19281 \end_inset
19282
19283 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 stdtitle.inc
19289 \end_layout
19290
19291 \end_inset
19292
19293 ファイルでは、
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 title
19299 \end_layout
19300
19301 \end_inset
19302
19303 環境のこの項目を真に設定しています。
19304 \end_layout
19305
19306 \begin_layout Subsection
19307 差込枠レイアウトXHTML
19308 \end_layout
19309
19310 \begin_layout Standard
19311 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19312 \begin_inset Foot
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19317 ん。
19318 \end_layout
19319
19320 \end_inset
19321
19322 。ここでも、\SpecialChar LyX
19323 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19324 \end_layout
19325
19326 \begin_layout Standard
19327 \SpecialChar LyX
19328 が差込枠用に出力するXHTMLは、以下の形を取ります。
19329 \end_layout
19330
19331 \begin_layout LyX-Code
19332 <tag attr=
19333 \begin_inset Quotes erd
19334 \end_inset
19335
19336 value
19337 \begin_inset Quotes erd
19338 \end_inset
19339
19340 >
19341 \end_layout
19342
19343 \begin_layout LyX-Code
19344 <labeltag>ラベル</labeltag>
19345 \end_layout
19346
19347 \begin_layout LyX-Code
19348 <innertag attr=
19349 \begin_inset Quotes erd
19350 \end_inset
19351
19352 value
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356 >差込枠の内容。</innertag>
19357 \end_layout
19358
19359 \begin_layout LyX-Code
19360 </tag>
19361 \end_layout
19362
19363 \begin_layout Standard
19364 差込枠が多段落を許可している—つまり
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 MultiPar
19370 \end_layout
19371
19372 \end_inset
19373
19374 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19375 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 span
19381 \end_layout
19382
19383 \end_inset
19384
19385 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19386 す。
19387 \end_layout
19388
19389 \begin_layout Description
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394 HTMLAttr
19395 \end_layout
19396
19397 \end_inset
19398
19399  [
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 文字列
19405 \end_layout
19406
19407 \end_inset
19408
19409 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 class=`myinset' onclick=`\SpecialChar ldots
19415 '
19416 \end_layout
19417
19418 \end_inset
19419
19420 」のようなものです。既定においては、\SpecialChar LyX
19421 は「
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 class=`差込枠名'
19427 \end_layout
19428
19429 \end_inset
19430
19431 」と出力します。ここで
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 差込枠名
19437 \end_layout
19438
19439 \end_inset
19440
19441 は、差込枠の\SpecialChar LyX
19442 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19443 \end_layout
19444
19445 \begin_layout Description
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450 HTMLForceCSS
19451 \end_layout
19452
19453 \end_inset
19454
19455  [
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460
19461 \emph on
19462 0
19463 \emph default
19464 ,1
19465 \end_layout
19466
19467 \end_inset
19468
19469 ] 
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 HTMLStyle
19475 \end_layout
19476
19477 \end_inset
19478
19479 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19480 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19481 \begin_inset Flex Code
19482 status collapsed
19483
19484 \begin_layout Plain Layout
19485 1
19486 \end_layout
19487
19488 \end_inset
19489
19490 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495 0
19496 \end_layout
19497
19498 \end_inset
19499
19500 です。
19501 \end_layout
19502
19503 \begin_layout Description
19504 \begin_inset Flex Code
19505 status collapsed
19506
19507 \begin_layout Plain Layout
19508 HTMLInnerAttr
19509 \end_layout
19510
19511 \end_inset
19512
19513  [
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 文字列
19519 \end_layout
19520
19521 \end_inset
19522
19523 ] innerタグの属性。既定値は
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 class=`差込枠名_inner'
19529 \end_layout
19530
19531 \end_inset
19532
19533 です。
19534 \end_layout
19535
19536 \begin_layout Description
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 HTMLInnerTag
19542 \end_layout
19543
19544 \end_inset
19545
19546  [
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 文字列
19552 \end_layout
19553
19554 \end_inset
19555
19556 ] innerタグです。上記各例の
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 innertag
19562 \end_layout
19563
19564 \end_inset
19565
19566 を置き換えます。既定値はなしです。
19567 \end_layout
19568
19569 \begin_layout Description
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574 HTMLIsBlock
19575 \end_layout
19576
19577 \end_inset
19578
19579  [
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 0,
19585 \emph on
19586 1
19587 \end_layout
19588
19589 \end_inset
19590
19591 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19592 \end_layout
19593
19594 \begin_layout Description
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 HTMLLabel
19600 \end_layout
19601
19602 \end_inset
19603
19604  [
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 文字列
19610 \end_layout
19611
19612 \end_inset
19613
19614 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚註用には
19615 \begin_inset Flex Code
19616 status collapsed
19617
19618 \begin_layout Plain Layout
19619
19620 \backslash
19621 arabic{footnote}
19622 \end_layout
19623
19624 \end_inset
19625
19626 など。これは非必須であり、既定値はありません。
19627 \end_layout
19628
19629 \begin_layout Description
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 HTMLPreamble
19635 \end_layout
19636
19637 \end_inset
19638
19639  この様式が使用されたときに、
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 <head>
19645 \end_layout
19646
19647 \end_inset
19648
19649 セクションに出力される情報。これは、たとえば、
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 onclick
19655 \end_layout
19656
19657 \end_inset
19658
19659 ハンドラを定義するために
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 <script>
19665 \end_layout
19666
19667 \end_inset
19668
19669 ブロックをインクルードするのに使用することができます。
19670 \end_layout
19671
19672 \begin_layout Description
19673 \begin_inset Flex Code
19674 status collapsed
19675
19676 \begin_layout Plain Layout
19677 HTMLStyle
19678 \end_layout
19679
19680 \end_inset
19681
19682   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 <style>
19688 \end_layout
19689
19690 \end_inset
19691
19692 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19693 \end_layout
19694
19695 \begin_layout Description
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700 HTMLTag
19701 \end_layout
19702
19703 \end_inset
19704
19705  [
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 文字列
19711 \end_layout
19712
19713 \end_inset
19714
19715 ] 主幹ラベルに使用されるタグ。上記各例の
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720 tag
19721 \end_layout
19722
19723 \end_inset
19724
19725 を置き換えます。既定値は
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 MultiPar
19731 \end_layout
19732
19733 \end_inset
19734
19735 の設定に依存し、
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740 MultiPar
19741 \end_layout
19742
19743 \end_inset
19744
19745 が真ならば
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 div
19751 \end_layout
19752
19753 \end_inset
19754
19755 、偽ならば
19756 \begin_inset Flex Code
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760 span
19761 \end_layout
19762
19763 \end_inset
19764
19765 です。
19766 \end_layout
19767
19768 \begin_layout Subsection
19769 フロートXHTML
19770 \end_layout
19771
19772 \begin_layout Standard
19773 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
19774 \end_layout
19775
19776 \begin_layout LyX-Code
19777 <tag attr=
19778 \begin_inset Quotes erd
19779 \end_inset
19780
19781 value
19782 \begin_inset Quotes erd
19783 \end_inset
19784
19785 >
19786 \end_layout
19787
19788 \begin_layout LyX-Code
19789 フロートの内容。
19790 \end_layout
19791
19792 \begin_layout LyX-Code
19793 </tag>
19794 \end_layout
19795
19796 \begin_layout Standard
19797 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
19798 きます。
19799 \end_layout
19800
19801 \begin_layout Description
19802 \begin_inset Flex Code
19803 status collapsed
19804
19805 \begin_layout Plain Layout
19806 HTMLAttr
19807 \end_layout
19808
19809 \end_inset
19810
19811  [
19812 \begin_inset Flex Code
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 文字列
19817 \end_layout
19818
19819 \end_inset
19820
19821 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19822 \begin_inset Flex Code
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826 class=`myfloat' onclick=`\SpecialChar ldots
19827 '
19828 \end_layout
19829
19830 \end_inset
19831
19832 」のようなものです。既定においては、\SpecialChar LyX
19833 は「
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 class=`float フロート-フロート型'
19839 \end_layout
19840
19841 \end_inset
19842
19843 」と出力します。ここで
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 フロート型
19849 \end_layout
19850
19851 \end_inset
19852
19853 は、フロート宣言で定義された(
19854 \begin_inset CommandInset ref
19855 LatexCommand ref
19856 reference "subsec:フロート"
19857
19858 \end_inset
19859
19860 参照)、この型のフロートの\SpecialChar LyX
19861 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
19862 \end_layout
19863
19864 \begin_layout Description
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 HTMLStyle
19870 \end_layout
19871
19872 \end_inset
19873
19874   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 <style>
19880 \end_layout
19881
19882 \end_inset
19883
19884 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19885 \end_layout
19886
19887 \begin_layout Description
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 HTMLTag
19893 \end_layout
19894
19895 \end_inset
19896
19897  [
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 文字列
19903 \end_layout
19904
19905 \end_inset
19906
19907 ] このフロートに使用されるタグ。上記各例の
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 tag
19913 \end_layout
19914
19915 \end_inset
19916
19917 を置き換えます。既定値は
19918 \begin_inset Flex Code
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 div
19923 \end_layout
19924
19925 \end_inset
19926
19927 であり、ほとんどの場合変更する必要はありません。
19928 \end_layout
19929
19930 \begin_layout Subsection
19931 書誌情報の整形
19932 \end_layout
19933
19934 \begin_layout Standard
19935 書誌情報は、
19936 \begin_inset Flex Code
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940 CiteFormat
19941 \end_layout
19942
19943 \end_inset
19944
19945 ブロックを使用して整形することができます。詳細については、
19946 \begin_inset CommandInset ref
19947 LatexCommand ref
19948 reference "subsec:引用書式指定"
19949
19950 \end_inset
19951
19952 を参照してください。
19953 \end_layout
19954
19955 \begin_layout Subsection
19956 \SpecialChar LyX
19957 が生成したCSS
19958 \end_layout
19959
19960 \begin_layout Standard
19961 \SpecialChar LyX
19962 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
19963
19964 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
19965 \end_layout
19966
19967 \begin_layout Standard
19968 \SpecialChar LyX
19969 は、現在のところ、
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 Font
19975 \end_layout
19976
19977 \end_inset
19978
19979 宣言で指定されている
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 Family
19985 \end_layout
19986
19987 \end_inset
19988
19989
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 Series
19995 \end_layout
19996
19997 \end_inset
19998
19999
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 Shape
20005 \end_layout
20006
20007 \end_inset
20008
20009
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 Size
20015 \end_layout
20016
20017 \end_inset
20018
20019 を利用して、フォント情報についてのみCSSを自動生成します(
20020 \begin_inset CommandInset ref
20021 LatexCommand ref
20022 reference "subsec:フォント指定"
20023
20024 \end_inset
20025
20026 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 Family Sans
20032 \end_layout
20033
20034 \end_inset
20035
20036 」は「
20037 \begin_inset Flex Code
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 font-family: sans-serif
20042 \end_layout
20043
20044 \end_inset
20045
20046 」になります。\SpecialChar LyX
20047 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20048 \begin_inset Flex URL
20049 status collapsed
20050
20051 \begin_layout Plain Layout
20052
20053 src/FontInfo.cpp
20054 \end_layout
20055
20056 \end_inset
20057
20058
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 getSizeCSS()
20064 \end_layout
20065
20066 \end_inset
20067
20068 関数をご覧ください。
20069 \end_layout
20070
20071 \begin_layout Chapter
20072 外部素材を取り込む
20073 \begin_inset CommandInset label
20074 LatexCommand label
20075 name "chap:外部素材を取り込む"
20076
20077 \end_inset
20078
20079
20080 \end_layout
20081
20082 \begin_layout Standard
20083 \begin_inset Box Shadowbox
20084 position "t"
20085 hor_pos "c"
20086 has_inner_box 1
20087 inner_pos "t"
20088 use_parbox 0
20089 use_makebox 0
20090 width "100col%"
20091 special "none"
20092 height "1in"
20093 height_special "totalheight"
20094 thickness "0.4pt"
20095 separation "3pt"
20096 shadowsize "4pt"
20097 framecolor "black"
20098 backgroundcolor "none"
20099 status open
20100
20101 \begin_layout Plain Layout
20102 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20103 \end_layout
20104
20105 \end_inset
20106
20107
20108 \end_layout
20109
20110 \begin_layout Standard
20111 \SpecialChar LyX
20112 外部のソースから素材を使用する方法は、取扱説明書『
20113 \emph on
20114 埋込オブジェクト篇
20115 \emph default
20116 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20117 \end_layout
20118
20119 \begin_layout Section
20120 どのように機能するのか
20121 \end_layout
20122
20123 \begin_layout Standard
20124 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20125 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20126 は、Xfigの図や、様々
20127 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20128 \begin_inset Flex MenuItem
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132 挿入\SpecialChar menuseparator
20133 ファイル\SpecialChar menuseparator
20134 外部素材
20135 \end_layout
20136
20137 \end_inset
20138
20139 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20140 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20141 の後の版に取り込むことができるようにしてくださることを希望します。
20142 \end_layout
20143
20144 \begin_layout Standard
20145 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20146 いることです。たとえば、
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 Xfig
20152 \end_layout
20153
20154 \end_inset
20155
20156 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 .fig
20162 \end_layout
20163
20164 \end_inset
20165
20166 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 fig
20172 \end_layout
20173
20174 \end_inset
20175
20176 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20177 ファイルにそのままインクルードできるように、
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 transfig
20183 \end_layout
20184
20185 \end_inset
20186
20187 を呼び出してPostScriptファイルを生成します。この場合には、
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 .fig
20193 \end_layout
20194
20195 \end_inset
20196
20197 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20198 \end_layout
20199
20200 \begin_layout Standard
20201 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20202 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20203 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20204 の外部素材マネジメントは
20205 、\SpecialChar LyX
20206 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20207 \end_layout
20208
20209 \begin_layout Standard
20210 \SpecialChar LyX
20211 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20212 の場合には、\SpecialChar LyX
20213 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20214 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20215 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20216 できるようになるのです。
20217 \end_layout
20218
20219 \begin_layout Section
20220 外用ひな型設定ファイル
20221 \end_layout
20222
20223 \begin_layout Standard
20224 \SpecialChar LyX
20225 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20226 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20227 \begin_inset CommandInset ref
20228 LatexCommand ref
20229 reference "sec:セキュリティに関する論点"
20230
20231 \end_inset
20232
20233 のセキュリティに関する議論を読んでおいてください。
20234 \end_layout
20235
20236 \begin_layout Standard
20237 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20238 \end_layout
20239
20240 \begin_layout Standard
20241 外用ひな型は、
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 LyXDir/lib/external_templates
20247 \end_layout
20248
20249 \end_inset
20250
20251 ファイルで定義されています。自分用の版を
20252 \begin_inset Flex Code
20253 status collapsed
20254
20255 \begin_layout Plain Layout
20256 UserDir/external_templates
20257 \end_layout
20258
20259 \end_inset
20260
20261 に置くこともできます。
20262 \end_layout
20263
20264 \begin_layout Standard
20265 典型的なひな型は以下のようになります。
20266 \end_layout
20267
20268 \begin_layout LyX-Code
20269 Template XFig
20270 \end_layout
20271
20272 \begin_layout LyX-Code
20273 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20274 \end_layout
20275
20276 \begin_layout LyX-Code
20277 HelpText
20278 \end_layout
20279
20280 \begin_layout LyX-Code
20281 An XFig figure.
20282 \end_layout
20283
20284 \begin_layout LyX-Code
20285 HelpTextEnd
20286 \end_layout
20287
20288 \begin_layout LyX-Code
20289 InputFormat fig
20290 \end_layout
20291
20292 \begin_layout LyX-Code
20293 FileFilter "*.fig"
20294 \end_layout
20295
20296 \begin_layout LyX-Code
20297 AutomaticProduction true
20298 \end_layout
20299
20300 \begin_layout LyX-Code
20301 Transform Rotate
20302 \end_layout
20303
20304 \begin_layout LyX-Code
20305 Transform Resize
20306 \end_layout
20307
20308 \begin_layout LyX-Code
20309 Format LaTeX
20310 \end_layout
20311
20312 \begin_layout LyX-Code
20313 TransformCommand Rotate RotationLatexCommand
20314 \end_layout
20315
20316 \begin_layout LyX-Code
20317 TransformCommand Resize ResizeLatexCommand
20318 \end_layout
20319
20320 \begin_layout LyX-Code
20321 Product "$$RotateFront$$ResizeFront
20322 \end_layout
20323
20324 \begin_layout LyX-Code
20325          
20326 \backslash
20327
20328 \backslash
20329 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20330 \end_layout
20331
20332 \begin_layout LyX-Code
20333          $$ResizeBack$$RotateBack"
20334 \end_layout
20335
20336 \begin_layout LyX-Code
20337 UpdateFormat pstex
20338 \end_layout
20339
20340 \begin_layout LyX-Code
20341 UpdateResult "$$AbsPath$$Basename.pstex_t"
20342 \end_layout
20343
20344 \begin_layout LyX-Code
20345 Requirement "graphicx"
20346 \end_layout
20347
20348 \begin_layout LyX-Code
20349 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20350 \end_layout
20351
20352 \begin_layout LyX-Code
20353 ReferencedFile latex "$$AbsPath$$Basename.eps"
20354 \end_layout
20355
20356 \begin_layout LyX-Code
20357 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20358 \end_layout
20359
20360 \begin_layout LyX-Code
20361 FormatEnd
20362 \end_layout
20363
20364 \begin_layout LyX-Code
20365 Format PDFLaTeX
20366 \end_layout
20367
20368 \begin_layout LyX-Code
20369 TransformCommand Rotate RotationLatexCommand
20370 \end_layout
20371
20372 \begin_layout LyX-Code
20373 TransformCommand Resize ResizeLatexCommand
20374 \end_layout
20375
20376 \begin_layout LyX-Code
20377 Product "$$RotateFront$$ResizeFront
20378 \end_layout
20379
20380 \begin_layout LyX-Code
20381          
20382 \backslash
20383
20384 \backslash
20385 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20386 \end_layout
20387
20388 \begin_layout LyX-Code
20389          $$ResizeBack$$RotateBack"
20390 \end_layout
20391
20392 \begin_layout LyX-Code
20393 UpdateFormat pdftex
20394 \end_layout
20395
20396 \begin_layout LyX-Code
20397 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20398 \end_layout
20399
20400 \begin_layout LyX-Code
20401 Requirement "graphicx"
20402 \end_layout
20403
20404 \begin_layout LyX-Code
20405 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20406 \end_layout
20407
20408 \begin_layout LyX-Code
20409 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20410 \end_layout
20411
20412 \begin_layout LyX-Code
20413 FormatEnd
20414 \end_layout
20415
20416 \begin_layout LyX-Code
20417 Format Ascii
20418 \end_layout
20419
20420 \begin_layout LyX-Code
20421 Product "$$Contents(
20422 \backslash
20423 "$$AbsPath$$Basename.asc
20424 \backslash
20425 ")"
20426 \end_layout
20427
20428 \begin_layout LyX-Code
20429 UpdateFormat asciixfig
20430 \end_layout
20431
20432 \begin_layout LyX-Code
20433 UpdateResult "$$AbsPath$$Basename.asc"
20434 \end_layout
20435
20436 \begin_layout LyX-Code
20437 FormatEnd
20438 \end_layout
20439
20440 \begin_layout LyX-Code
20441 Format DocBook
20442 \end_layout
20443
20444 \begin_layout LyX-Code
20445 Product "<graphic fileref=
20446 \backslash
20447 "$$AbsOrRelPathMaster$$Basename.eps
20448 \backslash
20449 ">
20450 \end_layout
20451
20452 \begin_layout LyX-Code
20453          </graphic>"
20454 \end_layout
20455
20456 \begin_layout LyX-Code
20457 UpdateFormat eps
20458 \end_layout
20459
20460 \begin_layout LyX-Code
20461 UpdateResult "$$AbsPath$$Basename.eps"
20462 \end_layout
20463
20464 \begin_layout LyX-Code
20465 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20466 \end_layout
20467
20468 \begin_layout LyX-Code
20469 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20470 \end_layout
20471
20472 \begin_layout LyX-Code
20473 FormatEnd
20474 \end_layout
20475
20476 \begin_layout LyX-Code
20477 Product "[XFig: $$FName]"
20478 \end_layout
20479
20480 \begin_layout LyX-Code
20481 FormatEnd
20482 \end_layout
20483
20484 \begin_layout LyX-Code
20485 TemplateEnd
20486 \end_layout
20487
20488 \begin_layout Standard
20489 ご覧の通り、ひな型は
20490 \begin_inset Flex Code
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 Template
20495 \end_layout
20496
20497 \end_inset
20498
20499  \SpecialChar ldots
20500  
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 TemplateEnd
20506 \end_layout
20507
20508 \end_inset
20509
20510 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 Format
20516 \end_layout
20517
20518 \end_inset
20519
20520  \SpecialChar ldots
20521  
20522 \begin_inset Flex Code
20523 status collapsed
20524
20525 \begin_layout Plain Layout
20526 FormatEnd
20527 \end_layout
20528
20529 \end_inset
20530
20531 部があります。
20532 \end_layout
20533
20534 \begin_layout Subsection
20535 ひな型のヘッダ
20536 \end_layout
20537
20538 \begin_layout Description
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 AutomaticProduction
20544 \begin_inset space ~
20545 \end_inset
20546
20547 true|false
20548 \end_layout
20549
20550 \end_inset
20551
20552  このひな型で扱うファイルを\SpecialChar LyX
20553 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20554 \end_layout
20555
20556 \begin_layout Description
20557 \begin_inset Flex Code
20558 status collapsed
20559
20560 \begin_layout Plain Layout
20561 FileFilter
20562 \begin_inset space ~
20563 \end_inset
20564
20565 <パターン>
20566 \end_layout
20567
20568 \end_inset
20569
20570  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20571 \begin_inset Flex Code
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575 .obj
20576 \end_layout
20577
20578 \end_inset
20579
20580
20581 \begin_inset Flex Code
20582 status collapsed
20583
20584 \begin_layout Plain Layout
20585 .tgo
20586 \end_layout
20587
20588 \end_inset
20589
20590 があります)、「
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 *.{obj,tgo}
20596 \end_layout
20597
20598 \end_inset
20599
20600 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
20601 \end_layout
20602
20603 \begin_layout Description
20604 \begin_inset Flex Code
20605 status collapsed
20606
20607 \begin_layout Plain Layout
20608 GuiName
20609 \begin_inset space ~
20610 \end_inset
20611
20612 <GUI名>
20613 \end_layout
20614
20615 \end_inset
20616
20617  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
20618 \end_layout
20619
20620 \begin_layout Description
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 HelpText
20626 \begin_inset space ~
20627 \end_inset
20628
20629 <文章>
20630 \begin_inset space ~
20631 \end_inset
20632
20633 HelpTextEnd
20634 \end_layout
20635
20636 \end_inset
20637
20638  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
20639 ず現れなくてはなりません。
20640 \end_layout
20641
20642 \begin_layout Description
20643 \begin_inset Flex Code
20644 status collapsed
20645
20646 \begin_layout Plain Layout
20647 InputFormat
20648 \begin_inset space ~
20649 \end_inset
20650
20651 <書式>
20652 \end_layout
20653
20654 \end_inset
20655
20656  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
20657 が知っている書式名でなくてはなりません(
20658 \begin_inset CommandInset ref
20659 LatexCommand ref
20660 reference "sec:ファイル形式"
20661
20662 \end_inset
20663
20664 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 *
20670 \end_layout
20671
20672 \end_inset
20673
20674 」を使用してください。この場合、\SpecialChar LyX
20675 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
20676 \end_layout
20677
20678 \begin_layout Description
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 Template
20684 \begin_inset space ~
20685 \end_inset
20686
20687 <ID>
20688 \end_layout
20689
20690 \end_inset
20691
20692  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
20693 \end_layout
20694
20695 \begin_layout Description
20696 \begin_inset Flex Code
20697 status collapsed
20698
20699 \begin_layout Plain Layout
20700 Transform
20701 \begin_inset space ~
20702 \end_inset
20703
20704 Rotate|Resize|Clip|Extra
20705 \end_layout
20706
20707 \end_inset
20708
20709  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
20710 ログ中の対応するタブを使用可能にします。
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 Transform
20716 \end_layout
20717
20718 \end_inset
20719
20720 コマンド一つずつに応じて、
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 Format
20726 \end_layout
20727
20728 \end_inset
20729
20730 部に、対応する
20731 \begin_inset Flex Code
20732 status collapsed
20733
20734 \begin_layout Plain Layout
20735 TransformCommand
20736 \end_layout
20737
20738 \end_inset
20739
20740 コマンドか
20741 \begin_inset Flex Code
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 TransformOption
20746 \end_layout
20747
20748 \end_inset
20749
20750 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
20751 \end_layout
20752
20753 \begin_layout Subsection
20754 \begin_inset Flex Code
20755 status collapsed
20756
20757 \begin_layout Plain Layout
20758 Format
20759 \end_layout
20760
20761 \end_inset
20762
20763
20764 \end_layout
20765
20766 \begin_layout Description
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 Format
20772 \begin_inset space ~
20773 \end_inset
20774
20775 LaTeX|PDFLaTeX|PlainText|DocBook
20776 \end_layout
20777
20778 \end_inset
20779
20780  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 Format
20786 \end_layout
20787
20788 \end_inset
20789
20790 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
20791 ようになります。
20792 \end_layout
20793
20794 \begin_layout Description
20795 \begin_inset Flex Code
20796 status collapsed
20797
20798 \begin_layout Plain Layout
20799 Option
20800 \begin_inset space ~
20801 \end_inset
20802
20803 <名称>
20804 \begin_inset space ~
20805 \end_inset
20806
20807 <値>
20808 \end_layout
20809
20810 \end_inset
20811
20812  このコマンドは、
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 Product
20818 \end_layout
20819
20820 \end_inset
20821
20822 での代入に使うマクロ
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 $$<名称>
20828 \end_layout
20829
20830 \end_inset
20831
20832 を新たに定義します。
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 <値>
20838 \end_layout
20839
20840 \end_inset
20841
20842 自体にも代入マクロを使うことができます。
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 Product
20848 \end_layout
20849
20850 \end_inset
20851
20852
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 <値>
20858 \end_layout
20859
20860 \end_inset
20861
20862 を直接使用するよりも優れた点は、
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 $$<名称>
20868 \end_layout
20869
20870 \end_inset
20871
20872 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
20873 \end_layout
20874
20875 \begin_layout Description
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 Product
20881 \begin_inset space ~
20882 \end_inset
20883
20884 <文>
20885 \end_layout
20886
20887 \end_inset
20888
20889  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
20890
20891 \end_layout
20892
20893 \begin_layout Description
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 Preamble
20899 \begin_inset space ~
20900 \end_inset
20901
20902 <名称>
20903 \end_layout
20904
20905 \end_inset
20906
20907  このコマンドは、\SpecialChar LaTeX
20908 プリアンブルに入れるプリアンブル片を指定します。これは
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 PreambleDef
20914 \end_layout
20915
20916 \end_inset
20917
20918  \SpecialChar ldots
20919  
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 PreambleDefEnd
20925 \end_layout
20926
20927 \end_inset
20928
20929 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
20930 \end_layout
20931
20932 \begin_layout Description
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 ReferencedFile
20938 \begin_inset space ~
20939 \end_inset
20940
20941 <書式>
20942 \begin_inset space ~
20943 \end_inset
20944
20945 <ファイル名>
20946 \end_layout
20947
20948 \end_inset
20949
20950  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
20951 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
20952 \end_layout
20953
20954 \begin_layout Description
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 Requirement
20960 \begin_inset space ~
20961 \end_inset
20962
20963 <package>
20964 \end_layout
20965
20966 \end_inset
20967
20968  必要とされる\SpecialChar LaTeX
20969 パッケージ名。パッケージは、\SpecialChar LaTeX
20970 プリアンブル中で
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975
20976 \backslash
20977 usepackage{}
20978 \end_layout
20979
20980 \end_inset
20981
20982 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
20983 \end_layout
20984
20985 \begin_layout Description
20986 \begin_inset Flex Code
20987 status collapsed
20988
20989 \begin_layout Plain Layout
20990 TransformCommand
20991 \begin_inset space ~
20992 \end_inset
20993
20994 Rotate
20995 \begin_inset space ~
20996 \end_inset
20997
20998 RotationLatexCommand
20999 \end_layout
21000
21001 \end_inset
21002
21003  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21004 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21005 \end_layout
21006
21007 \begin_layout Description
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 TransformCommand
21013 \begin_inset space ~
21014 \end_inset
21015
21016 Resize
21017 \begin_inset space ~
21018 \end_inset
21019
21020 ResizeLatexCommand
21021 \end_layout
21022
21023 \end_inset
21024
21025  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21026 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21027 \end_layout
21028
21029 \begin_layout Description
21030 \begin_inset Flex Code
21031 status collapsed
21032
21033 \begin_layout Plain Layout
21034 TransformOption
21035 \begin_inset space ~
21036 \end_inset
21037
21038 Rotate
21039 \begin_inset space ~
21040 \end_inset
21041
21042 RotationLatexOption
21043 \end_layout
21044
21045 \end_inset
21046
21047  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21048 \end_layout
21049
21050 \begin_layout Description
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 TransformOption
21056 \begin_inset space ~
21057 \end_inset
21058
21059 Resize
21060 \begin_inset space ~
21061 \end_inset
21062
21063 ResizeLatexOption
21064 \end_layout
21065
21066 \end_inset
21067
21068  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21069 \end_layout
21070
21071 \begin_layout Description
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 TransformOption
21077 \begin_inset space ~
21078 \end_inset
21079
21080 Clip
21081 \begin_inset space ~
21082 \end_inset
21083
21084 ClipLatexOption
21085 \end_layout
21086
21087 \end_inset
21088
21089  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21090 \end_layout
21091
21092 \begin_layout Description
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 TransformOption
21098 \begin_inset space ~
21099 \end_inset
21100
21101 Extra
21102 \begin_inset space ~
21103 \end_inset
21104
21105 ExtraLatexOption
21106 \end_layout
21107
21108 \end_inset
21109
21110  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21111 \end_layout
21112
21113 \begin_layout Description
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 UpdateFormat
21119 \begin_inset space ~
21120 \end_inset
21121
21122 <書式>
21123 \end_layout
21124
21125 \end_inset
21126
21127  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21128 が知っている書式名でなくてはなりません(
21129 \begin_inset Flex MenuItem
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 ツール\SpecialChar menuseparator
21134 設定\SpecialChar menuseparator
21135 ファイル処理\SpecialChar menuseparator
21136 ファイル書式
21137 \end_layout
21138
21139 \end_inset
21140
21141 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 pdf6
21147 \end_layout
21148
21149 \end_inset
21150
21151 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21152 \end_layout
21153
21154 \begin_layout Description
21155 \begin_inset Flex Code
21156 status collapsed
21157
21158 \begin_layout Plain Layout
21159 UpdateResult
21160 \begin_inset space ~
21161 \end_inset
21162
21163 <ファイル名>
21164 \end_layout
21165
21166 \end_inset
21167
21168  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21169 \end_layout
21170
21171 \begin_layout Subsection
21172 プリアンブルの定義
21173 \end_layout
21174
21175 \begin_layout Standard
21176 外用ひな型設定ファイルには、
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 PreambleDef
21182 \end_layout
21183
21184 \end_inset
21185
21186  \SpecialChar ldots
21187  
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 PreambleDefEnd
21193 \end_layout
21194
21195 \end_inset
21196
21197 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 Format
21203 \end_layout
21204
21205 \end_inset
21206
21207 部で使用することができます。
21208 \end_layout
21209
21210 \begin_layout Section
21211 代入機構
21212 \end_layout
21213
21214 \begin_layout Standard
21215 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21216 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21217 \end_layout
21218
21219 \begin_layout Standard
21220 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21221 \end_layout
21222
21223 \begin_layout Standard
21224 使用できるマクロは以下の通りです。
21225 \end_layout
21226
21227 \begin_layout Description
21228 \begin_inset Flex Code
21229 status collapsed
21230
21231 \begin_layout Plain Layout
21232 $$AbsOrRelPathMaster
21233 \end_layout
21234
21235 \end_inset
21236
21237  \SpecialChar LyX
21238 親文書への絶対ファイルパスないしは相対ファイルパス
21239 \end_layout
21240
21241 \begin_layout Description
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 $$AbsOrRelPathParent
21247 \end_layout
21248
21249 \end_inset
21250
21251  \SpecialChar LyX
21252 文書への絶対ファイルパスないしは相対ファイルパス
21253 \end_layout
21254
21255 \begin_layout Description
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 $$AbsPath
21261 \end_layout
21262
21263 \end_inset
21264
21265  絶対ファイルパス
21266 \end_layout
21267
21268 \begin_layout Description
21269 \begin_inset Flex Code
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273 $$Basename
21274 \end_layout
21275
21276 \end_inset
21277
21278  パスおよび拡張子を除いたファイル名
21279 \end_layout
21280
21281 \begin_layout Description
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 $$Contents(
21287 \begin_inset Quotes eld
21288 \end_inset
21289
21290 filename.ext
21291 \begin_inset Quotes erd
21292 \end_inset
21293
21294 )
21295 \end_layout
21296
21297 \end_inset
21298
21299  このマクロは、
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 filename.ext
21305 \end_layout
21306
21307 \end_inset
21308
21309 と云う名のファイルの中身を展開します。
21310 \end_layout
21311
21312 \begin_layout Description
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 $$Extension
21318 \end_layout
21319
21320 \end_inset
21321
21322  ファイル拡張子(点を含む)
21323 \end_layout
21324
21325 \begin_layout Description
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330 $$pngOrjpg
21331 \end_layout
21332
21333 \end_inset
21334
21335  これは、ファイルがJPEG形式の場合は、文字列「jpg」となり、それ以外では文字列「png」となります。これは、PNG形式とJPEG形式の両方をサポートする出
21336 力形式に対して、不必要な変換を行うことを避けるのに役立ちます。事前設定されているラスター画像ひな形は、pdf\SpecialChar TeX
21337 出力形式に対してこのマクロを使用します。
21338 \end_layout
21339
21340 \begin_layout Description
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345 $$FName
21346 \end_layout
21347
21348 \end_inset
21349
21350  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21351 文書への絶対パスでも良いですし、相対パスでも構いません。
21352 \end_layout
21353
21354 \begin_layout Description
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 $$FPath
21360 \end_layout
21361
21362 \end_inset
21363
21364  
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 $$FName
21370 \end_layout
21371
21372 \end_inset
21373
21374 のパス部分(\SpecialChar LyX
21375 文書への絶対パス名か相対パス名)
21376 \end_layout
21377
21378 \begin_layout Description
21379 \begin_inset Flex Code
21380 status collapsed
21381
21382 \begin_layout Plain Layout
21383 $$RelPathMaster
21384 \end_layout
21385
21386 \end_inset
21387
21388  \SpecialChar LyX
21389 親文書への相対ファイルパス
21390 \end_layout
21391
21392 \begin_layout Description
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 $$RelPathParent
21398 \end_layout
21399
21400 \end_inset
21401
21402  \SpecialChar LyX
21403 文書への相対ファイルパス
21404 \end_layout
21405
21406 \begin_layout Description
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 $$Sysdir
21412 \end_layout
21413
21414 \end_inset
21415
21416  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21417 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21418 \end_layout
21419
21420 \begin_layout Description
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 $$Tempname
21426 \end_layout
21427
21428 \end_inset
21429
21430  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21431 \end_layout
21432
21433 \begin_layout Standard
21434 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 $$AbsPath$$Basename$$Extension
21440 \end_layout
21441
21442 \end_inset
21443
21444 のようにして作ることができます。
21445 \end_layout
21446
21447 \begin_layout Standard
21448 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453 Transform
21454 \end_layout
21455
21456 \end_inset
21457
21458 コマンドと
21459 \begin_inset Flex Code
21460 status collapsed
21461
21462 \begin_layout Plain Layout
21463 TransformCommand
21464 \end_layout
21465
21466 \end_inset
21467
21468 コマンドが有効にされている場合、
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 Product
21474 \end_layout
21475
21476 \end_inset
21477
21478 コマンドは、これらに加えて以下の代入もサポートします。
21479 \end_layout
21480
21481 \begin_layout Description
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 $$ResizeFront
21487 \end_layout
21488
21489 \end_inset
21490
21491  伸縮コマンドの前置部。
21492 \end_layout
21493
21494 \begin_layout Description
21495 \begin_inset Flex Code
21496 status collapsed
21497
21498 \begin_layout Plain Layout
21499 $$ResizeBack
21500 \end_layout
21501
21502 \end_inset
21503
21504  伸縮コマンドの後置部。
21505 \end_layout
21506
21507 \begin_layout Description
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 $$RotateFront
21513 \end_layout
21514
21515 \end_inset
21516
21517  回転コマンドの前置部。
21518 \end_layout
21519
21520 \begin_layout Description
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 $$RotateBack
21526 \end_layout
21527
21528 \end_inset
21529
21530  回転コマンドの後置部。
21531 \end_layout
21532
21533 \begin_layout Standard
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 Option
21539 \end_layout
21540
21541 \end_inset
21542
21543 コマンドの値に入れる文字列では、
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 Transform
21549 \end_layout
21550
21551 \end_inset
21552
21553 コマンドと
21554 \begin_inset Flex Code
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 TransformOption
21559 \end_layout
21560
21561 \end_inset
21562
21563 コマンドが有効にされていれば、以下の代入もサポートされます。
21564 \end_layout
21565
21566 \begin_layout Description
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 $$Clip
21572 \end_layout
21573
21574 \end_inset
21575
21576  切り抜きオプション。
21577 \end_layout
21578
21579 \begin_layout Description
21580 \begin_inset Flex Code
21581 status collapsed
21582
21583 \begin_layout Plain Layout
21584 $$Extra
21585 \end_layout
21586
21587 \end_inset
21588
21589  追加オプション。
21590 \end_layout
21591
21592 \begin_layout Description
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 $$Resize
21598 \end_layout
21599
21600 \end_inset
21601
21602  伸縮オプション。
21603 \end_layout
21604
21605 \begin_layout Description
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 $$Rotate
21611 \end_layout
21612
21613 \end_inset
21614
21615  回転オプション。
21616 \end_layout
21617
21618 \begin_layout Standard
21619 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
21620 \end_layout
21621
21622 \begin_layout Enumerate
21623 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
21624 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
21625 \end_layout
21626
21627 \begin_layout Enumerate
21628 \SpecialChar LaTeX
21629 は、相対ファイル名に関して、\SpecialChar LyX
21630 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
21631 にとって相対ファイル名とは、常にこのファイル名が書か
21632 れている文書に対して相対的なものになります。\SpecialChar LaTeX
21633 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
21634 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
21635 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
21636 を選びさえすれば、これは\SpecialChar LyX
21637 が自動的に行ってくれます。
21638 \end_layout
21639
21640 \begin_layout Standard
21641 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
21642 \end_layout
21643
21644 \begin_layout Itemize
21645 絶対パスが必要とされるときには
21646 \begin_inset Flex Code
21647 status collapsed
21648
21649 \begin_layout Plain Layout
21650 $$AbsPath
21651 \end_layout
21652
21653 \end_inset
21654
21655 を使う。
21656 \end_layout
21657
21658 \begin_layout Itemize
21659 代入された文字列が、\SpecialChar LaTeX
21660 インプットの一種である場合には、
21661 \begin_inset Flex Code
21662 status collapsed
21663
21664 \begin_layout Plain Layout
21665 $$AbsOrRelPathMaster
21666 \end_layout
21667
21668 \end_inset
21669
21670 を使う。
21671 \end_layout
21672
21673 \begin_layout Itemize
21674 それ以外ならば、ユーザの選択を尊重するために
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 $$AbsOrRelPathParent
21680 \end_layout
21681
21682 \end_inset
21683
21684 を使う。
21685 \end_layout
21686
21687 \begin_layout Standard
21688 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21694 \end_layout
21695
21696 \end_inset
21697
21698 というコマンドがあります。この場合、
21699 \begin_inset Flex Code
21700 status collapsed
21701
21702 \begin_layout Plain Layout
21703 .pstex_t
21704 \end_layout
21705
21706 \end_inset
21707
21708 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
21709 \end_layout
21710
21711 \begin_layout Section
21712 セキュリティに関する論点
21713 \begin_inset CommandInset label
21714 LatexCommand label
21715 name "sec:セキュリティに関する論点"
21716
21717 \end_inset
21718
21719
21720 \end_layout
21721
21722 \begin_layout Standard
21723 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
21724 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
21725 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
21726 \end_layout
21727
21728 \begin_layout Standard
21729 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
21730 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
21731 せん。これは、外部プログラムが
21732 \begin_inset Flex Code
21733 status collapsed
21734
21735 \begin_layout Plain Layout
21736 system
21737 \end_layout
21738
21739 \end_inset
21740
21741 システムコールではなく、
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 execvp
21747 \end_layout
21748
21749 \end_inset
21750
21751 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
21752 \end_layout
21753
21754 \begin_layout Standard
21755 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
21756 できません。これは、\SpecialChar LyX
21757 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
21758 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
21759 \end_layout
21760
21761 \begin_layout Standard
21762 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
21763 うになるため、一般的には、統御下に置いた状態で
21764 \begin_inset Flex Code
21765 status collapsed
21766
21767 \begin_layout Plain Layout
21768 execvp
21769 \end_layout
21770
21771 \end_inset
21772
21773 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
21774 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
21775 \emph on
21776 間違いなく
21777 \emph default
21778 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
21779 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
21780 には、安全でないひな型は決して入っていません
21781
21782 \end_layout
21783
21784 \begin_layout Standard
21785 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
21786 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
21787 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
21788 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
21789 使用する前に、行うようにしてください。
21790 \end_layout
21791
21792 \begin_layout Chapter
21793 \start_of_appendix
21794 サポートされているレイアウト用\SpecialChar LyX
21795 関数一覧
21796 \begin_inset CommandInset label
21797 LatexCommand label
21798 name "chap:関数一覧"
21799
21800 \end_inset
21801
21802
21803 \end_layout
21804
21805 \begin_layout Standard
21806 \align center
21807 \begin_inset Tabular
21808 <lyxtabular version="3" rows="11" columns="8">
21809 <features tabularvalignment="middle">
21810 <column alignment="left" valignment="top">
21811 <column alignment="left" valignment="top">
21812 <column alignment="left" valignment="top">
21813 <column alignment="left" valignment="top">
21814 <column alignment="left" valignment="top">
21815 <column alignment="left" valignment="top">
21816 <column alignment="left" valignment="top">
21817 <column alignment="left" valignment="top">
21818 <row>
21819 <cell alignment="left" valignment="top" usebox="none">
21820 \begin_inset Text
21821
21822 \begin_layout Plain Layout
21823 accents
21824 \end_layout
21825
21826 \end_inset
21827 </cell>
21828 <cell alignment="left" valignment="top" usebox="none">
21829 \begin_inset Text
21830
21831 \begin_layout Plain Layout
21832 booktabs
21833 \end_layout
21834
21835 \end_inset
21836 </cell>
21837 <cell alignment="left" valignment="top" usebox="none">
21838 \begin_inset Text
21839
21840 \begin_layout Plain Layout
21841 feyn
21842 \end_layout
21843
21844 \end_inset
21845 </cell>
21846 <cell alignment="left" valignment="top" usebox="none">
21847 \begin_inset Text
21848
21849 \begin_layout Plain Layout
21850 listings
21851 \end_layout
21852
21853 \end_inset
21854 </cell>
21855 <cell alignment="center" valignment="top" usebox="none">
21856 \begin_inset Text
21857
21858 \begin_layout Plain Layout
21859 natbib
21860 \end_layout
21861
21862 \end_inset
21863 </cell>
21864 <cell alignment="center" valignment="top" usebox="none">
21865 \begin_inset Text
21866
21867 \begin_layout Plain Layout
21868 rotfloat
21869 \end_layout
21870
21871 \end_inset
21872 </cell>
21873 <cell alignment="center" valignment="top" usebox="none">
21874 \begin_inset Text
21875
21876 \begin_layout Plain Layout
21877 tfrupee
21878 \end_layout
21879
21880 \end_inset
21881 </cell>
21882 <cell alignment="center" valignment="top" usebox="none">
21883 \begin_inset Text
21884
21885 \begin_layout Plain Layout
21886 wasysym
21887 \end_layout
21888
21889 \end_inset
21890 </cell>
21891 </row>
21892 <row>
21893 <cell alignment="left" valignment="top" usebox="none">
21894 \begin_inset Text
21895
21896 \begin_layout Plain Layout
21897 amsbsy
21898 \end_layout
21899
21900 \end_inset
21901 </cell>
21902 <cell alignment="left" valignment="top" usebox="none">
21903 \begin_inset Text
21904
21905 \begin_layout Plain Layout
21906 calc
21907 \end_layout
21908
21909 \end_inset
21910 </cell>
21911 <cell alignment="left" valignment="top" usebox="none">
21912 \begin_inset Text
21913
21914 \begin_layout Plain Layout
21915 fixltx2e
21916 \end_layout
21917
21918 \end_inset
21919 </cell>
21920 <cell alignment="left" valignment="top" usebox="none">
21921 \begin_inset Text
21922
21923 \begin_layout Plain Layout
21924 longtable
21925 \end_layout
21926
21927 \end_inset
21928 </cell>
21929 <cell alignment="center" valignment="top" usebox="none">
21930 \begin_inset Text
21931
21932 \begin_layout Plain Layout
21933 nomencl
21934 \end_layout
21935
21936 \end_inset
21937 </cell>
21938 <cell alignment="center" valignment="top" usebox="none">
21939 \begin_inset Text
21940
21941 \begin_layout Plain Layout
21942 rsphrase
21943 \end_layout
21944
21945 \end_inset
21946 </cell>
21947 <cell alignment="center" valignment="top" usebox="none">
21948 \begin_inset Text
21949
21950 \begin_layout Plain Layout
21951 tipa
21952 \end_layout
21953
21954 \end_inset
21955 </cell>
21956 <cell alignment="center" valignment="top" usebox="none">
21957 \begin_inset Text
21958
21959 \begin_layout Plain Layout
21960 wrapfig
21961 \end_layout
21962
21963 \end_inset
21964 </cell>
21965 </row>
21966 <row>
21967 <cell alignment="left" valignment="top" usebox="none">
21968 \begin_inset Text
21969
21970 \begin_layout Plain Layout
21971 amscd
21972 \end_layout
21973
21974 \end_inset
21975 </cell>
21976 <cell alignment="left" valignment="top" usebox="none">
21977 \begin_inset Text
21978
21979 \begin_layout Plain Layout
21980 CJK
21981 \end_layout
21982
21983 \end_inset
21984 </cell>
21985 <cell alignment="left" valignment="top" usebox="none">
21986 \begin_inset Text
21987
21988 \begin_layout Plain Layout
21989 float
21990 \end_layout
21991
21992 \end_inset
21993 </cell>
21994 <cell alignment="left" valignment="top" usebox="none">
21995 \begin_inset Text
21996
21997 \begin_layout Plain Layout
21998 lyxskak
21999 \end_layout
22000
22001 \end_inset
22002 </cell>
22003 <cell alignment="center" valignment="top" usebox="none">
22004 \begin_inset Text
22005
22006 \begin_layout Plain Layout
22007 pdfcolmk
22008 \end_layout
22009
22010 \end_inset
22011 </cell>
22012 <cell alignment="center" valignment="top" usebox="none">
22013 \begin_inset Text
22014
22015 \begin_layout Plain Layout
22016 setspace
22017 \end_layout
22018
22019 \end_inset
22020 </cell>
22021 <cell alignment="center" valignment="top" usebox="none">
22022 \begin_inset Text
22023
22024 \begin_layout Plain Layout
22025 tipx
22026 \end_layout
22027
22028 \end_inset
22029 </cell>
22030 <cell alignment="center" valignment="top" usebox="none">
22031 \begin_inset Text
22032
22033 \begin_layout Plain Layout
22034 xargs
22035 \end_layout
22036
22037 \end_inset
22038 </cell>
22039 </row>
22040 <row>
22041 <cell alignment="left" valignment="top" usebox="none">
22042 \begin_inset Text
22043
22044 \begin_layout Plain Layout
22045 amsmath
22046 \end_layout
22047
22048 \end_inset
22049 </cell>
22050 <cell alignment="left" valignment="top" usebox="none">
22051 \begin_inset Text
22052
22053 \begin_layout Plain Layout
22054 color
22055 \end_layout
22056
22057 \end_inset
22058 </cell>
22059 <cell alignment="left" valignment="top" usebox="none">
22060 \begin_inset Text
22061
22062 \begin_layout Plain Layout
22063 framed
22064 \end_layout
22065
22066 \end_inset
22067 </cell>
22068 <cell alignment="left" valignment="top" usebox="none">
22069 \begin_inset Text
22070
22071 \begin_layout Plain Layout
22072 makeidx
22073 \end_layout
22074
22075 \end_inset
22076 </cell>
22077 <cell alignment="center" valignment="top" usebox="none">
22078 \begin_inset Text
22079
22080 \begin_layout Plain Layout
22081 pdfpages
22082 \end_layout
22083
22084 \end_inset
22085 </cell>
22086 <cell alignment="center" valignment="top" usebox="none">
22087 \begin_inset Text
22088
22089 \begin_layout Plain Layout
22090 shapepar
22091 \end_layout
22092
22093 \end_inset
22094 </cell>
22095 <cell alignment="center" valignment="top" usebox="none">
22096 \begin_inset Text
22097
22098 \begin_layout Plain Layout
22099 tone
22100 \end_layout
22101
22102 \end_inset
22103 </cell>
22104 <cell alignment="center" valignment="top" usebox="none">
22105 \begin_inset Text
22106
22107 \begin_layout Plain Layout
22108 xcolor
22109 \end_layout
22110
22111 \end_inset
22112 </cell>
22113 </row>
22114 <row>
22115 <cell alignment="left" valignment="top" usebox="none">
22116 \begin_inset Text
22117
22118 \begin_layout Plain Layout
22119 amssymb
22120 \end_layout
22121
22122 \end_inset
22123 </cell>
22124 <cell alignment="left" valignment="top" usebox="none">
22125 \begin_inset Text
22126
22127 \begin_layout Plain Layout
22128 covington
22129 \end_layout
22130
22131 \end_inset
22132 </cell>
22133 <cell alignment="left" valignment="top" usebox="none">
22134 \begin_inset Text
22135
22136 \begin_layout Plain Layout
22137 graphicx
22138 \end_layout
22139
22140 \end_inset
22141 </cell>
22142 <cell alignment="left" valignment="top" usebox="none">
22143 \begin_inset Text
22144
22145 \begin_layout Plain Layout
22146 marvosym
22147 \end_layout
22148
22149 \end_inset
22150 </cell>
22151 <cell alignment="center" valignment="top" usebox="none">
22152 \begin_inset Text
22153
22154 \begin_layout Plain Layout
22155 pifont
22156 \end_layout
22157
22158 \end_inset
22159 </cell>
22160 <cell alignment="center" valignment="top" usebox="none">
22161 \begin_inset Text
22162
22163 \begin_layout Plain Layout
22164 slashed
22165 \end_layout
22166
22167 \end_inset
22168 </cell>
22169 <cell alignment="center" valignment="top" usebox="none">
22170 \begin_inset Text
22171
22172 \begin_layout Plain Layout
22173 txfonts
22174 \end_layout
22175
22176 \end_inset
22177 </cell>
22178 <cell alignment="center" valignment="top" usebox="none">
22179 \begin_inset Text
22180
22181 \begin_layout Plain Layout
22182 xy
22183 \end_layout
22184
22185 \end_inset
22186 </cell>
22187 </row>
22188 <row>
22189 <cell alignment="left" valignment="top" usebox="none">
22190 \begin_inset Text
22191
22192 \begin_layout Plain Layout
22193 amstext
22194 \end_layout
22195
22196 \end_inset
22197 </cell>
22198 <cell alignment="left" valignment="top" usebox="none">
22199 \begin_inset Text
22200
22201 \begin_layout Plain Layout
22202 csquotes
22203 \end_layout
22204
22205 \end_inset
22206 </cell>
22207 <cell alignment="left" valignment="top" usebox="none">
22208 \begin_inset Text
22209
22210 \begin_layout Plain Layout
22211 hhline
22212 \end_layout
22213
22214 \end_inset
22215 </cell>
22216 <cell alignment="left" valignment="top" usebox="none">
22217 \begin_inset Text
22218
22219 \begin_layout Plain Layout
22220 mathdesign
22221 \end_layout
22222
22223 \end_inset
22224 </cell>
22225 <cell alignment="center" valignment="top" usebox="none">
22226 \begin_inset Text
22227
22228 \begin_layout Plain Layout
22229 pmboxdraw
22230 \end_layout
22231
22232 \end_inset
22233 </cell>
22234 <cell alignment="center" valignment="top" usebox="none">
22235 \begin_inset Text
22236
22237 \begin_layout Plain Layout
22238 soul
22239 \end_layout
22240
22241 \end_inset
22242 </cell>
22243 <cell alignment="center" valignment="top" usebox="none">
22244 \begin_inset Text
22245
22246 \begin_layout Plain Layout
22247 ulem
22248 \end_layout
22249
22250 \end_inset
22251 </cell>
22252 <cell alignment="center" valignment="top" usebox="none">
22253 \begin_inset Text
22254
22255 \begin_layout Plain Layout
22256 yhmath
22257 \end_layout
22258
22259 \end_inset
22260 </cell>
22261 </row>
22262 <row>
22263 <cell alignment="left" valignment="top" usebox="none">
22264 \begin_inset Text
22265
22266 \begin_layout Plain Layout
22267 amsthm
22268 \end_layout
22269
22270 \end_inset
22271 </cell>
22272 <cell alignment="left" valignment="top" usebox="none">
22273 \begin_inset Text
22274
22275 \begin_layout Plain Layout
22276 dvipost
22277 \end_layout
22278
22279 \end_inset
22280 </cell>
22281 <cell alignment="left" valignment="top" usebox="none">
22282 \begin_inset Text
22283
22284 \begin_layout Plain Layout
22285 hyperref
22286 \end_layout
22287
22288 \end_inset
22289 </cell>
22290 <cell alignment="left" valignment="top" usebox="none">
22291 \begin_inset Text
22292
22293 \begin_layout Plain Layout
22294 mathdots
22295 \end_layout
22296
22297 \end_inset
22298 </cell>
22299 <cell alignment="center" valignment="top" usebox="none">
22300 \begin_inset Text
22301
22302 \begin_layout Plain Layout
22303 polyglossia
22304 \end_layout
22305
22306 \end_inset
22307 </cell>
22308 <cell alignment="center" valignment="top" usebox="none">
22309 \begin_inset Text
22310
22311 \begin_layout Plain Layout
22312 splitidx
22313 \end_layout
22314
22315 \end_inset
22316 </cell>
22317 <cell alignment="center" valignment="top" usebox="none">
22318 \begin_inset Text
22319
22320 \begin_layout Plain Layout
22321 undertilde
22322 \end_layout
22323
22324 \end_inset
22325 </cell>
22326 <cell alignment="center" valignment="top" usebox="none">
22327 \begin_inset Text
22328
22329 \begin_layout Plain Layout
22330
22331 \end_layout
22332
22333 \end_inset
22334 </cell>
22335 </row>
22336 <row>
22337 <cell alignment="left" valignment="top" usebox="none">
22338 \begin_inset Text
22339
22340 \begin_layout Plain Layout
22341 array
22342 \end_layout
22343
22344 \end_inset
22345 </cell>
22346 <cell alignment="left" valignment="top" usebox="none">
22347 \begin_inset Text
22348
22349 \begin_layout Plain Layout
22350 endnotes
22351 \end_layout
22352
22353 \end_inset
22354 </cell>
22355 <cell alignment="left" valignment="top" usebox="none">
22356 \begin_inset Text
22357
22358 \begin_layout Plain Layout
22359 ifsym
22360 \end_layout
22361
22362 \end_inset
22363 </cell>
22364 <cell alignment="left" valignment="top" usebox="none">
22365 \begin_inset Text
22366
22367 \begin_layout Plain Layout
22368 mathrsfs
22369 \end_layout
22370
22371 \end_inset
22372 </cell>
22373 <cell alignment="center" valignment="top" usebox="none">
22374 \begin_inset Text
22375
22376 \begin_layout Plain Layout
22377 prettyref
22378 \end_layout
22379
22380 \end_inset
22381 </cell>
22382 <cell alignment="center" valignment="top" usebox="none">
22383 \begin_inset Text
22384
22385 \begin_layout Plain Layout
22386 subfig
22387 \end_layout
22388
22389 \end_inset
22390 </cell>
22391 <cell alignment="center" valignment="top" usebox="none">
22392 \begin_inset Text
22393
22394 \begin_layout Plain Layout
22395 units
22396 \end_layout
22397
22398 \end_inset
22399 </cell>
22400 <cell alignment="center" valignment="top" usebox="none">
22401 \begin_inset Text
22402
22403 \begin_layout Plain Layout
22404
22405 \end_layout
22406
22407 \end_inset
22408 </cell>
22409 </row>
22410 <row>
22411 <cell alignment="left" valignment="top" usebox="none">
22412 \begin_inset Text
22413
22414 \begin_layout Plain Layout
22415 ascii
22416 \end_layout
22417
22418 \end_inset
22419 </cell>
22420 <cell alignment="left" valignment="top" usebox="none">
22421 \begin_inset Text
22422
22423 \begin_layout Plain Layout
22424 enumitem
22425 \end_layout
22426
22427 \end_inset
22428 </cell>
22429 <cell alignment="left" valignment="top" usebox="none">
22430 \begin_inset Text
22431
22432 \begin_layout Plain Layout
22433 ifthen
22434 \end_layout
22435
22436 \end_inset
22437 </cell>
22438 <cell alignment="left" valignment="top" usebox="none">
22439 \begin_inset Text
22440
22441 \begin_layout Plain Layout
22442 mhchem
22443 \end_layout
22444
22445 \end_inset
22446 </cell>
22447 <cell alignment="center" valignment="top" usebox="none">
22448 \begin_inset Text
22449
22450 \begin_layout Plain Layout
22451 pxfonts
22452 \end_layout
22453
22454 \end_inset
22455 </cell>
22456 <cell alignment="center" valignment="top" usebox="none">
22457 \begin_inset Text
22458
22459 \begin_layout Plain Layout
22460 subscript
22461 \end_layout
22462
22463 \end_inset
22464 </cell>
22465 <cell alignment="center" valignment="top" usebox="none">
22466 \begin_inset Text
22467
22468 \begin_layout Plain Layout
22469 url
22470 \end_layout
22471
22472 \end_inset
22473 </cell>
22474 <cell alignment="center" valignment="top" usebox="none">
22475 \begin_inset Text
22476
22477 \begin_layout Plain Layout
22478
22479 \end_layout
22480
22481 \end_inset
22482 </cell>
22483 </row>
22484 <row>
22485 <cell alignment="left" valignment="top" usebox="none">
22486 \begin_inset Text
22487
22488 \begin_layout Plain Layout
22489 bbding
22490 \end_layout
22491
22492 \end_inset
22493 </cell>
22494 <cell alignment="left" valignment="top" usebox="none">
22495 \begin_inset Text
22496
22497 \begin_layout Plain Layout
22498 esint
22499 \end_layout
22500
22501 \end_inset
22502 </cell>
22503 <cell alignment="left" valignment="top" usebox="none">
22504 \begin_inset Text
22505
22506 \begin_layout Plain Layout
22507 jurabib
22508 \end_layout
22509
22510 \end_inset
22511 </cell>
22512 <cell alignment="left" valignment="top" usebox="none">
22513 \begin_inset Text
22514
22515 \begin_layout Plain Layout
22516 multicol
22517 \end_layout
22518
22519 \end_inset
22520 </cell>
22521 <cell alignment="center" valignment="top" usebox="none">
22522 \begin_inset Text
22523
22524 \begin_layout Plain Layout
22525 refstyle
22526 \end_layout
22527
22528 \end_inset
22529 </cell>
22530 <cell alignment="center" valignment="top" usebox="none">
22531 \begin_inset Text
22532
22533 \begin_layout Plain Layout
22534 textcomp
22535 \end_layout
22536
22537 \end_inset
22538 </cell>
22539 <cell alignment="center" valignment="top" usebox="none">
22540 \begin_inset Text
22541
22542 \begin_layout Plain Layout
22543 varioref
22544 \end_layout
22545
22546 \end_inset
22547 </cell>
22548 <cell alignment="center" valignment="top" usebox="none">
22549 \begin_inset Text
22550
22551 \begin_layout Plain Layout
22552
22553 \end_layout
22554
22555 \end_inset
22556 </cell>
22557 </row>
22558 <row>
22559 <cell alignment="center" valignment="top" usebox="none">
22560 \begin_inset Text
22561
22562 \begin_layout Plain Layout
22563 bm
22564 \end_layout
22565
22566 \end_inset
22567 </cell>
22568 <cell alignment="center" valignment="top" usebox="none">
22569 \begin_inset Text
22570
22571 \begin_layout Plain Layout
22572 fancybox
22573 \end_layout
22574
22575 \end_inset
22576 </cell>
22577 <cell alignment="center" valignment="top" usebox="none">
22578 \begin_inset Text
22579
22580 \begin_layout Plain Layout
22581 latexsym
22582 \end_layout
22583
22584 \end_inset
22585 </cell>
22586 <cell alignment="center" valignment="top" usebox="none">
22587 \begin_inset Text
22588
22589 \begin_layout Plain Layout
22590 multirow
22591 \end_layout
22592
22593 \end_inset
22594 </cell>
22595 <cell alignment="center" valignment="top" usebox="none">
22596 \begin_inset Text
22597
22598 \begin_layout Plain Layout
22599 rotating
22600 \end_layout
22601
22602 \end_inset
22603 </cell>
22604 <cell alignment="center" valignment="top" usebox="none">
22605 \begin_inset Text
22606
22607 \begin_layout Plain Layout
22608 textgreek
22609 \end_layout
22610
22611 \end_inset
22612 </cell>
22613 <cell alignment="center" valignment="top" usebox="none">
22614 \begin_inset Text
22615
22616 \begin_layout Plain Layout
22617 verbatim
22618 \end_layout
22619
22620 \end_inset
22621 </cell>
22622 <cell alignment="center" valignment="top" usebox="none">
22623 \begin_inset Text
22624
22625 \begin_layout Plain Layout
22626
22627 \end_layout
22628
22629 \end_inset
22630 </cell>
22631 </row>
22632 </lyxtabular>
22633
22634 \end_inset
22635
22636
22637 \end_layout
22638
22639 \begin_layout Chapter
22640 レイアウトで使用できる色名
22641 \begin_inset CommandInset label
22642 LatexCommand label
22643 name "chap:色名"
22644
22645 \end_inset
22646
22647
22648 \end_layout
22649
22650 \begin_layout Standard
22651 ここに列挙されている色は標準色であり、\SpecialChar LyX
22652 設定で調整できるものです。
22653 \end_layout
22654
22655 \begin_layout Description
22656 none
22657 \series medium
22658  
22659 \series default
22660 特定の色ではありません – 透明か既定色です
22661 \end_layout
22662
22663 \begin_layout Description
22664 black
22665 \end_layout
22666
22667 \begin_layout Description
22668 white
22669 \end_layout
22670
22671 \begin_layout Description
22672 red
22673 \end_layout
22674
22675 \begin_layout Description
22676 green
22677 \end_layout
22678
22679 \begin_layout Description
22680 blue
22681 \end_layout
22682
22683 \begin_layout Description
22684 cyan
22685 \end_layout
22686
22687 \begin_layout Description
22688 magenta
22689 \end_layout
22690
22691 \begin_layout Description
22692 yellow
22693 \end_layout
22694
22695 \begin_layout Description
22696 added_space 空白マーカ色
22697 \end_layout
22698
22699 \begin_layout Description
22700 addedtext 追加された文章色
22701 \end_layout
22702
22703 \begin_layout Description
22704 appendix 付録マーカ色
22705 \end_layout
22706
22707 \begin_layout Description
22708 background 背景色
22709 \end_layout
22710
22711 \begin_layout Description
22712 bottomarea 下部領域色
22713 \end_layout
22714
22715 \begin_layout Description
22716 branchlabel 派生枝ラベル色
22717 \end_layout
22718
22719 \begin_layout Description
22720 buttonbg ボタンの背景色
22721 \end_layout
22722
22723 \begin_layout Description
22724 buttonhoverbg フォーカスを得ているボタンの背景色
22725 \end_layout
22726
22727 \begin_layout Description
22728 buttonframe 差込枠の縁色
22729 \end_layout
22730
22731 \begin_layout Description
22732 changebar 変更バー色
22733 \end_layout
22734
22735 \begin_layout Description
22736 changedtextauthor1 変更された文章:第1著者の色
22737 \end_layout
22738
22739 \begin_layout Description
22740 changedtextauthor2 変更された文章:第2著者の色
22741 \end_layout
22742
22743 \begin_layout Description
22744 changedtextauthor3 変更された文章:第3著者の色
22745 \end_layout
22746
22747 \begin_layout Description
22748 changedtextauthor4 変更された文章:第4著者の色
22749 \end_layout
22750
22751 \begin_layout Description
22752 changedtextauthor5 変更された文章:第5著者の色
22753 \end_layout
22754
22755 \begin_layout Description
22756 collapsable_inset_frame 畳み込み可能枠の縁色
22757 \end_layout
22758
22759 \begin_layout Description
22760 collapsable_inset_text 畳み込み可能枠の文字色
22761 \end_layout
22762
22763 \begin_layout Description
22764 command コマンド差込枠の文字色
22765 \end_layout
22766
22767 \begin_layout Description
22768 commandbg コマンド差込枠の背景色
22769 \end_layout
22770
22771 \begin_layout Description
22772 commandframe コマンド差込枠の縁色
22773 \end_layout
22774
22775 \begin_layout Description
22776 comment コメント色
22777 \end_layout
22778
22779 \begin_layout Description
22780 commentbg コメントの背景色
22781 \end_layout
22782
22783 \begin_layout Description
22784 cursor カーソル色
22785 \end_layout
22786
22787 \begin_layout Description
22788 deletedtext 削除された文章の色
22789 \end_layout
22790
22791 \begin_layout Description
22792 deletedtextmodifier 削除された文章の修飾子の色
22793 \end_layout
22794
22795 \begin_layout Description
22796 depthbar 余白部の階層表示線の色
22797 \end_layout
22798
22799 \begin_layout Description
22800 eolmarker 行末標色
22801 \end_layout
22802
22803 \begin_layout Description
22804 error \SpecialChar LaTeX
22805 エラーボックス色
22806 \end_layout
22807
22808 \begin_layout Description
22809 footlabel 脚註ラベル色
22810 \end_layout
22811
22812 \begin_layout Description
22813 graphicsbg 画像差込枠の背景色
22814 \end_layout
22815
22816 \begin_layout Description
22817 greyedout 淡色表示差込枠のラベル色
22818 \end_layout
22819
22820 \begin_layout Description
22821 greyedoutbg 淡色表示差込枠の背景色
22822 \end_layout
22823
22824 \begin_layout Description
22825 greyedouttext 淡色表示差込枠の文字色
22826 \end_layout
22827
22828 \begin_layout Description
22829 indexlabel 索引差込枠のラベル色
22830 \end_layout
22831
22832 \begin_layout Description
22833 ignore この色を無視します
22834 \end_layout
22835
22836 \begin_layout Description
22837 inherit この色を継承します
22838 \end_layout
22839
22840 \begin_layout Description
22841 inlinecompletion 行内補完色
22842 \end_layout
22843
22844 \begin_layout Description
22845 insetbg 差込枠標の背景色
22846 \end_layout
22847
22848 \begin_layout Description
22849 insetframe 差込枠標の縁色
22850 \end_layout
22851
22852 \begin_layout Description
22853 language 外国語の単語を標識するための色
22854 \end_layout
22855
22856 \begin_layout Description
22857 latex \SpecialChar LaTeX
22858 モードの文字色
22859 \end_layout
22860
22861 \begin_layout Description
22862 listingsbg プログラムリスト差込枠の背景色
22863 \end_layout
22864
22865 \begin_layout Description
22866 marginlabel 傍註のラベル色
22867 \end_layout
22868
22869 \begin_layout Description
22870 math 数式差込枠の文字色
22871 \end_layout
22872
22873 \begin_layout Description
22874 mathbg 数式差込枠の背景色
22875 \end_layout
22876
22877 \begin_layout Description
22878 mathcorners フォーカスを得ていない数式差込枠の縁色
22879 \end_layout
22880
22881 \begin_layout Description
22882 mathframe フォーカスを得ている数式差込枠の縁色
22883 \end_layout
22884
22885 \begin_layout Description
22886 mathline 数式行色
22887 \end_layout
22888
22889 \begin_layout Description
22890 mathmacrobg 数式マクロ差込枠の背景色
22891 \end_layout
22892
22893 \begin_layout Description
22894 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22895 \end_layout
22896
22897 \begin_layout Description
22898 mathmacroframe 数式マクロ差込枠の縁色
22899 \end_layout
22900
22901 \begin_layout Description
22902 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22903 \end_layout
22904
22905 \begin_layout Description
22906 mathmacrolabel 数式マクロ差込枠のラベル色
22907 \end_layout
22908
22909 \begin_layout Description
22910 mathmacronewarg 数式マクロ新パラメーターのひな型色
22911 \end_layout
22912
22913 \begin_layout Description
22914 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22915 \end_layout
22916
22917 \begin_layout Description
22918 newpage 新規頁色
22919 \end_layout
22920
22921 \begin_layout Description
22922 nonunique_inlinecompletion 行内補完の一意でない部分の色
22923 \end_layout
22924
22925 \begin_layout Description
22926 notebg 註釈の背景色
22927 \end_layout
22928
22929 \begin_layout Description
22930 notelabel 註釈のラベル色
22931 \end_layout
22932
22933 \begin_layout Description
22934 pagebreak 改頁/改行色
22935 \end_layout
22936
22937 \begin_layout Description
22938 paragraphmarker 段落末を標識するための段落標の色
22939 \end_layout
22940
22941 \begin_layout Description
22942 phantomtext 埋め草差込枠の文字色
22943 \end_layout
22944
22945 \begin_layout Description
22946 preview プレビューに用いられる色
22947 \end_layout
22948
22949 \begin_layout Description
22950 previewframe プレビュー縁色
22951 \end_layout
22952
22953 \begin_layout Description
22954 regexpframe 正規表現枠の色
22955 \end_layout
22956
22957 \begin_layout Description
22958 selection 文章選択部の背景色
22959 \end_layout
22960
22961 \begin_layout Description
22962 selectiontext 文章選択部の前景色
22963 \end_layout
22964
22965 \begin_layout Description
22966 shadedbg 影付きボックスの背景色
22967 \end_layout
22968
22969 \begin_layout Description
22970 special 特殊文字の色
22971 \end_layout
22972
22973 \begin_layout Description
22974 tabularline 罫線色
22975 \end_layout
22976
22977 \begin_layout Description
22978 tabularonoffline 罫線色
22979 \end_layout
22980
22981 \begin_layout Description
22982 urllabel URL差込枠のラベル色
22983 \end_layout
22984
22985 \begin_layout Description
22986 urltext URL差込枠の文字色
22987 \end_layout
22988
22989 \end_body
22990 \end_document