1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
7 % DO NOT ALTER THIS PREAMBLE!!!
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected. If you
12 % have problems LaTeXing this file, please contact
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
19 % set fonts for nicer pdf view
20 \IfFileExists{lmodern.sty}
21 {\usepackage{lmodern}}{}
23 \fi % end if pdflatex is used
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
30 \pdfbookmark[1]{\contentsname}{}
34 % Added only for Japanese translation
35 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
36 \usepackage[T1]{fontenc}
37 % Below is to correct PDF bookmarks
38 % but doesn't work because hyperref is automatically called.
39 % Modify \usepackage{hyperref} line manually
40 %\usepackage[dvipdfm,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc]{hyperref}
41 %\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
42 %\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
49 \maintain_unincluded_children false
52 InsetLayout CharStyle:MenuItem
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 \language_package default
71 \font_typewriter default
72 \font_default_family default
73 \use_non_tex_fonts false
80 \default_output_format dvi4
82 \bibtex_command default
83 \index_command default
87 \pdf_title "LyX Configuration Manual"
88 \pdf_author "LyX Team"
89 \pdf_subject "LyX-Documentation Customization"
90 \pdf_keywords "LyX, documentation, customization"
92 \pdf_bookmarksnumbered true
93 \pdf_bookmarksopen true
94 \pdf_bookmarksopenlevel 1
99 \pdf_pdfusetitle false
100 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
110 \paperorientation portrait
124 \paragraph_separation indent
125 \paragraph_indentation default
126 \quotes_language english
129 \paperpagestyle headings
130 \tracking_changes false
131 \output_changes false
141 \begin_inset Newline newline
152 \begin_layout Plain Layout
154 もしコメントや誤りの修正をお持ちでしたら、LyX文書化メーリングリスト
155 \begin_inset CommandInset href
157 target "lyx-docs@lists.lyx.org"
162 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
163 ast.net>をccにして送ってください。
169 \begin_inset Newline newline
173 \begin_inset Newline newline
179 \begin_layout Standard
180 \begin_inset CommandInset toc
181 LatexCommand tableofcontents
186 \begin_inset Note Note
189 \begin_layout Plain Layout
190 本文書を修正する際には、変更追跡機能を使用してください。これによって、
193 \begin_layout Plain Layout
194 LyX翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
202 \begin_layout Chapter
206 \begin_layout Standard
207 この取扱説明書は、LyXに備わっている高度設定機能を取り扱います。ここでは、短絡キーや画面プレビューオプション、プリンタオプション、LyXサーバ経由でのLyXへ
208 のコマンド送信、国際化、新しいLaTeXクラスやLyXレイアウトの導入などの題材について論じます。おそらくは変更可能なことすべてについて触れることは無理でしょう
209 が—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高度設定については説明を行い、わかりにくいものにつ
210 いては正しい方向を指し示すことができるようにしていくつもりです。
213 \begin_layout Standard
214 \begin_inset Branch OutDated
217 \begin_layout Standard
218 Information from previous versions of this document that now seems to be
219 outdated is contained in the OutDated branch of this document.
220 By default, this information will not appear in the LaTeX output.
228 \begin_layout Chapter
232 \begin_layout Standard
233 本章の目的は、LyX設定ファイル群を理解するための一助となることです。本章を読み進める前に、
234 \begin_inset Flex MenuItem
237 \begin_layout Plain Layout
238 ヘルプ\SpecialChar \menuseparator
243 \begin_layout Plain Layout
255 を使って、LyXライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、LyXがシステム全体の設定ファイルを置いておくと
256 ころです。一方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
257 \begin_inset Flex Code
260 \begin_layout Plain Layout
265 \begin_layout Plain Layout
278 \begin_inset Flex MenuItem
281 \begin_layout Plain Layout
290 \begin_layout Section
291 \begin_inset Flex Code
294 \begin_layout Plain Layout
299 \begin_layout Plain Layout
314 \begin_layout Standard
315 \begin_inset Flex Code
318 \begin_layout Plain Layout
323 \begin_layout Plain Layout
335 とそのサブディレクトリには、多くのファイルがあり、LyXの挙動を高度設定するのに使用されます。これらのファイルの多くは、LyX内の
336 \begin_inset Flex MenuItem
339 \begin_layout Plain Layout
340 ツール\SpecialChar \menuseparator
346 ダイアログから変更することができます。LyX中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、Ly
348 \begin_inset Flex Code
351 \begin_layout Plain Layout
356 \begin_layout Plain Layout
368 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
371 \begin_layout Subsection
375 \begin_layout Standard
376 \begin_inset Flex MenuItem
379 \begin_layout Plain Layout
385 にある各ファイルは、LyXが自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされ
386 てしまうので、一般的には修正しないことが望まれます。
389 \begin_layout Labeling
390 \labelwidthstring 00.00.0000
391 \begin_inset Flex Code
394 \begin_layout Plain Layout
400 このファイルには、様々な既定コマンドが置かれています。
403 \begin_layout Labeling
404 \labelwidthstring 00.00.0000
405 \begin_inset Flex Code
408 \begin_layout Plain Layout
414 このファイルには、LyXが認識したパッケージの一覧が収められています。現在のところ、これはLyXプログラム自体には使用されていませんが、抽出された情報その他は
416 \begin_inset Flex MenuItem
419 \begin_layout Plain Layout
420 ヘルプ\SpecialChar \menuseparator
425 \begin_layout Plain Layout
440 \begin_layout Labeling
441 \labelwidthstring 00.00.0000
442 \begin_inset Flex Code
445 \begin_layout Plain Layout
452 \begin_inset Flex Code
455 \begin_layout Plain Layout
461 ディレクトリで検出されたテキストクラスと、関連したLaTeX文書クラスおよびその説明の一覧です。
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
469 \begin_layout Plain Layout
476 \begin_inset Flex Code
479 \begin_layout Plain Layout
485 ディレクトリで検出されたレイアウトモジュールの一覧です。
488 \begin_layout Labeling
489 \labelwidthstring 00.00.0000
490 \begin_inset Flex Code
493 \begin_layout Plain Layout
499 ご使用のシステムで検出された様々な種類のLaTeX関連ファイルの一覧です。
502 \begin_layout Labeling
503 \labelwidthstring 00.00.0000
504 \begin_inset Flex Code
507 \begin_layout Plain Layout
512 \begin_layout Plain Layout
525 \begin_inset Flex Code
528 \begin_layout Plain Layout
533 \begin_layout Plain Layout
545 から自動的に生成されます。ご使用中のLaTeXの設定に関する情報が納められています。
548 \begin_layout Subsection
552 \begin_layout Standard
554 \begin_inset Flex Code
557 \begin_layout Plain Layout
562 \begin_layout Plain Layout
575 \begin_inset Flex Code
578 \begin_layout Plain Layout
584 に重複して存在します。特定のファイルが両方の場所にある場合には、
585 \begin_inset Flex Code
588 \begin_layout Plain Layout
597 \begin_layout Labeling
598 \labelwidthstring 00.00.0000
599 \begin_inset Flex Code
602 \begin_layout Plain Layout
608 このディレクトリには、LyXで使用されるキー割当を定義している、拡張子が
609 \begin_inset Flex Code
612 \begin_layout Plain Layout
619 \begin_inset Flex Code
622 \begin_layout Plain Layout
628 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
631 \begin_layout Labeling
632 \labelwidthstring 00.00.0000
633 \begin_inset Flex Code
636 \begin_layout Plain Layout
642 このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
645 \begin_layout Labeling
646 \labelwidthstring 00.00.0000
647 \begin_inset Flex Code
650 \begin_layout Plain Layout
656 このディレクトリには、LyXの取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
657 \begin_inset Flex Code
660 \begin_layout Plain Layout
665 \begin_layout Plain Layout
677 ファイルは特に注目に値します。各国語版のヘルプ文書は、
678 \begin_inset Flex Code
681 \begin_layout Plain Layout
687 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、第
688 \begin_inset CommandInset ref
690 reference "cha:LyXの各国語対応"
697 \begin_layout Labeling
698 \labelwidthstring 00.00.0000
699 \begin_inset Flex Code
702 \begin_layout Plain Layout
708 このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
709 \begin_inset Flex MenuItem
712 \begin_layout Plain Layout
718 ボタンを押すと、このディレクトリが表示されます。
721 \begin_layout Labeling
722 \labelwidthstring 00.00.0000
723 \begin_inset Flex Code
726 \begin_layout Plain Layout
733 \begin_inset Flex MenuItem
736 \begin_layout Plain Layout
742 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、LyXを起動したときに現れるバナーも納められています。
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
750 \begin_layout Plain Layout
756 このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、第
757 \begin_inset CommandInset ref
759 reference "sec:国際キー配列"
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
771 \begin_layout Plain Layout
778 \begin_inset CommandInset ref
780 reference "cha:新規文書を導入"
784 章に述べられているテキストクラスおよびモジュールのファイルが納められています。
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
792 \begin_layout Plain Layout
798 このディレクトリには、LyXの各バージョン間の変換に使用される
799 \begin_inset Flex Code
802 \begin_layout Plain Layout
808 Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
816 \begin_layout Plain Layout
823 \begin_inset Flex MenuItem
826 \begin_layout Plain Layout
832 機能の有用性を示すためのファイルがいくつか納められています。LyX自身が使用するスクリプトもいくつか収められています。
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
840 \begin_layout Plain Layout
847 \begin_inset CommandInset ref
849 reference "sec:ひな型を作成する"
853 章で述べられている標準のLyXひな型ファイルが納められています。
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
861 \begin_layout Plain Layout
867 このディレクトリには、LyXの操作画面を定義する拡張子
868 \begin_inset Flex Code
871 \begin_layout Plain Layout
877 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
880 \begin_layout Subsection
884 \begin_layout Standard
885 これらのファイルはLyXが内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
888 \begin_layout Labeling
889 \labelwidthstring 00.00.0000
890 \begin_inset Flex Code
893 \begin_layout Plain Layout
899 このファイルは、LyX開発陣の名簿です。この内容は、メニュー項目
900 \begin_inset Flex MenuItem
903 \begin_layout Plain Layout
904 ヘルプ\SpecialChar \menuseparator
909 \begin_layout Plain Layout
924 \begin_layout Labeling
925 \labelwidthstring 00.00.0000
926 \begin_inset Flex Code
929 \begin_layout Plain Layout
935 これは、自動設定プロセスによって使用されるLaTeXスクリプトです。直接実行しないでください。
938 \begin_layout Labeling
939 \labelwidthstring 00.00.0000
940 \begin_inset Flex Code
943 \begin_layout Plain Layout
949 これは、LyXの再設定によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
952 \begin_layout Subsection
956 \begin_layout Labeling
957 \labelwidthstring 00.00.0000
958 \begin_inset Flex Code
961 \begin_layout Plain Layout
967 このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
975 \begin_layout Plain Layout
982 \begin_inset Flex MenuItem
985 \begin_layout Plain Layout
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
999 \begin_layout Plain Layout
1005 このファイルには、現在LyXがサポートしている言語の全一覧が載っています。
1008 \begin_layout Section
1012 \begin_layout Standard
1013 LyXを非特権ユーザとして利用している場合でも、自分自身で使うために、LyXの設定を変更したいと思うかもしれません。
1014 \begin_inset Flex Code
1017 \begin_layout Plain Layout
1023 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1024 \begin_inset Flex MenuItem
1027 \begin_layout Plain Layout
1028 ヘルプ\SpecialChar \menuseparator
1033 \begin_layout Plain Layout
1044 \begin_layout Plain Layout
1056 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1057 \begin_inset Flex Code
1060 \begin_layout Plain Layout
1065 \begin_layout Plain Layout
1078 \begin_inset Flex Code
1081 \begin_layout Plain Layout
1088 \begin_inset Flex Code
1091 \begin_layout Plain Layout
1096 \begin_layout Plain Layout
1108 の対応するファイルを置き換えるものとして機能していることを意味します。前節で述べられた設定はどれも、全ユーザに影響する全システム用ディレクトリに置くこともできま
1109 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1112 \begin_layout Standard
1113 わかりやすくするために、いくつか例を挙げましょう。
1116 \begin_layout Itemize
1117 \begin_inset Flex MenuItem
1120 \begin_layout Plain Layout
1121 ツール\SpecialChar \menuseparator
1128 \begin_inset Flex Code
1131 \begin_layout Plain Layout
1138 \begin_inset Flex Code
1141 \begin_layout Plain Layout
1150 \begin_layout Itemize
1151 \begin_inset Flex MenuItem
1154 \begin_layout Plain Layout
1155 ツール\SpecialChar \menuseparator
1162 \begin_inset Flex Code
1165 \begin_layout Plain Layout
1171 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1172 \begin_inset Flex Code
1175 \begin_layout Plain Layout
1182 \begin_inset Flex MenuItem
1185 \begin_layout Plain Layout
1186 文書\SpecialChar \menuseparator
1192 ダイアログのクラス一覧に表示されるようになることを意味します。
1195 \begin_layout Itemize
1196 たとえば、LyXのFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとして
1198 \begin_inset Flex Code
1201 \begin_layout Plain Layout
1208 \begin_inset Flex MenuItem
1211 \begin_layout Plain Layout
1217 メニュー項目はこれらを開くようになります!
1220 \begin_layout Section
1224 \begin_layout Standard
1225 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1226 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1227 どのディレクトリを使用するか指定するのです。
1230 \begin_layout Standard
1232 \begin_inset Flex Code
1235 \begin_layout Plain Layout
1245 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(LyXを
1246 \begin_inset Flex Code
1249 \begin_layout Plain Layout
1255 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、LyXは、初めてLyXを実行したときに既定ディレ
1256 クトリを訊いてくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプシ
1257 ョンを修正することができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1258 \begin_inset Flex Code
1261 \begin_layout Plain Layout
1267 を特定の値に設定しても、全く同じ効果があります。
1270 \begin_layout Standard
1271 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1272 \begin_inset Flex Code
1275 \begin_layout Plain Layout
1281 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1282 クを使用してください。LyXが新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにする
1283 には、空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1284 \begin_inset Flex Code
1287 \begin_layout Plain Layout
1294 \begin_inset Flex MenuItem
1297 \begin_layout Plain Layout
1298 ツール\SpecialChar \menuseparator
1304 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1307 \begin_layout Chapter
1311 \begin_layout Standard
1320 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1323 \begin_layout Section
1325 \begin_inset CommandInset label
1334 \begin_layout Standard
1335 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1336 \begin_inset Flex MenuItem
1339 \begin_layout Plain Layout
1340 ツール\SpecialChar \menuseparator
1347 \begin_inset Flex MenuItem
1350 \begin_layout Plain Layout
1351 ファイル処理\SpecialChar \menuseparator
1358 \begin_inset Flex MenuItem
1361 \begin_layout Plain Layout
1362 新規\SpecialChar \ldots{}
1368 ボタンを押して、登録する新しい形式を定義してください。
1369 \begin_inset Flex MenuItem
1372 \begin_layout Plain Layout
1378 フィールドは、GUI中で形式を認識するために用いられる名称です。
1379 \begin_inset Flex MenuItem
1382 \begin_layout Plain Layout
1388 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1389 \begin_inset Flex MenuItem
1392 \begin_layout Plain Layout
1398 フィールドは、メニュー中で短絡キーを提供するのに使用されます(たとえば、
1399 \begin_inset Flex MenuItem
1402 \begin_layout Plain Layout
1409 \begin_inset Flex MenuItem
1412 \begin_layout Plain Layout
1413 表示\SpecialChar \menuseparator
1422 \begin_layout Standard
1424 \begin_inset Flex MenuItem
1427 \begin_layout Plain Layout
1434 \begin_inset Flex MenuItem
1437 \begin_layout Plain Layout
1443 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1444 \begin_inset Flex MenuItem
1447 \begin_layout Plain Layout
1453 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1454 いることができます。この閲覧プログラムは、LyX中で画像を閲覧したり
1455 \begin_inset Flex MenuItem
1458 \begin_layout Plain Layout
1464 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1465 \begin_inset Flex MenuItem
1468 \begin_layout Plain Layout
1477 \begin_layout Standard
1479 \begin_inset Flex MenuItem
1482 \begin_layout Plain Layout
1488 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1490 \begin_inset CommandInset href
1493 target "http://www.iana.org/assignments/media-types/"
1497 に公式に登録されたMIME型がないものがあります。そこで、LyXは、
1498 \begin_inset CommandInset href
1500 name "freedesktop.org"
1501 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1505 で指定されているMIME型拡張表を使用しています。
1508 \begin_layout Standard
1509 \begin_inset Flex MenuItem
1512 \begin_layout Plain Layout
1518 オプションは、LyXに、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1519 \begin_inset CommandInset ref
1526 \begin_inset Flex MenuItem
1529 \begin_layout Plain Layout
1530 ファイル\SpecialChar \menuseparator
1536 メニューに表示されます。また、この形式に閲覧プログラムが指定されている場合には、この形式は
1537 \begin_inset Flex MenuItem
1540 \begin_layout Plain Layout
1547 \begin_inset Flex Code
1550 \begin_layout Plain Layout
1556 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1557 \begin_inset Flex Code
1560 \begin_layout Plain Layout
1566 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1569 \begin_layout Standard
1570 \begin_inset Flex MenuItem
1573 \begin_layout Plain Layout
1579 オプションは、LyXにこの形式がベクター画像を含みうることを教示するものです。この情報は、
1580 \begin_inset Flex MenuItem
1583 \begin_layout Plain Layout
1589 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1590 \begin_inset Flex MenuItem
1593 \begin_layout Plain Layout
1600 \begin_inset Flex MenuItem
1603 \begin_layout Plain Layout
1610 \begin_inset Flex MenuItem
1613 \begin_layout Plain Layout
1620 \begin_inset Flex MenuItem
1623 \begin_layout Plain Layout
1629 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1630 \begin_inset Flex MenuItem
1633 \begin_layout Plain Layout
1640 \begin_inset Flex MenuItem
1643 \begin_layout Plain Layout
1650 \begin_inset Flex MenuItem
1653 \begin_layout Plain Layout
1659 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1660 \begin_inset Flex MenuItem
1663 \begin_layout Plain Layout
1670 \begin_inset Flex MenuItem
1673 \begin_layout Plain Layout
1682 \begin_layout Section
1686 \begin_layout Standard
1687 形式の変換はすべて、LyXの一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがありま
1692 \begin_layout Plain Layout
1693 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1699 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1702 \begin_layout Standard
1703 複写子の定義においては、以下の4つの変数を用いることができます。
1706 \begin_layout Labeling
1707 \labelwidthstring 00.00.0000
1708 \begin_inset Flex Code
1711 \begin_layout Plain Layout
1718 \begin_inset Flex MenuItem
1721 \begin_layout Plain Layout
1730 \begin_layout Labeling
1731 \labelwidthstring 00.00.0000
1732 \begin_inset Flex Code
1735 \begin_layout Plain Layout
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Flex Code
1749 \begin_layout Plain Layout
1758 \begin_layout Labeling
1759 \labelwidthstring 00.00.0000
1760 \begin_inset Flex Code
1763 \begin_layout Plain Layout
1772 \begin_layout Standard
1779 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1782 \begin_layout Standard
1783 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1784 \begin_inset Flex Code
1787 \begin_layout Plain Layout
1793 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1796 \begin_layout Standard
1797 \begin_inset listings
1801 \begin_layout Plain Layout
1806 \begin_layout Plain Layout
1811 \begin_layout Plain Layout
1813 TOFILE=`basename $2`
1816 \begin_layout Plain Layout
1818 cp $FROMFILE /home/you/pdf/$TOFILE
1823 これを、自身のローカルLyXディレクトリ—たとえば
1824 \begin_inset Flex Code
1827 \begin_layout Plain Layout
1828 /home/you/.lyx/scripts/pdfcopier.sh
1833 —に保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1834 \begin_inset Flex MenuItem
1837 \begin_layout Plain Layout
1838 ツール\SpecialChar \menuseparator
1845 \begin_inset Flex MenuItem
1848 \begin_layout Plain Layout
1849 ファイル処理\SpecialChar \menuseparator
1856 \begin_inset Flex MenuItem
1859 \begin_layout Plain Layout
1865 形式—あるいは他のPDF形式のうちどれか—を選択し、
1866 \begin_inset Flex MenuItem
1869 \begin_layout Plain Layout
1876 \begin_inset Flex Code
1879 \begin_layout Plain Layout
1880 pdfcopier.sh $$i $$o
1888 \begin_layout Standard
1889 複写子は、LyX自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、LyXは自動的に
1890 \begin_inset Flex MenuItem
1893 \begin_layout Plain Layout
1900 \begin_inset Flex MenuItem
1903 \begin_layout Plain Layout
1905 \begin_inset space ~
1913 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1914 るように手配します。これらのファイルはすべて、元のLyXファイルのあるディレクトリのサブディレクトリに書き込まれます
1918 \begin_layout Plain Layout
1919 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
1920 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
1921 \begin_inset Flex MenuItem
1924 \begin_layout Plain Layout
1929 \begin_layout Plain Layout
1942 \begin_inset Flex MenuItem
1945 \begin_layout Plain Layout
1946 /path/to/filename.lyx
1952 \begin_inset Flex MenuItem
1955 \begin_layout Plain Layout
1956 /path/to/filename.html.L
1960 \begin_layout Plain Layout
1981 \begin_layout Section
1983 \begin_inset CommandInset label
1992 \begin_layout Standard
1993 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
1994 \begin_inset Flex MenuItem
1997 \begin_layout Plain Layout
1998 ツール\SpecialChar \menuseparator
1999 設定\SpecialChar \menuseparator
2000 ファイル処理\SpecialChar \menuseparator
2009 \begin_layout Standard
2010 新規に変換子を定義するには、ドロップダウンリストから
2011 \begin_inset Flex MenuItem
2014 \begin_layout Plain Layout
2021 \begin_inset Flex MenuItem
2024 \begin_layout Plain Layout
2030 を選択し、変換に必要なコマンドを入力してから
2031 \begin_inset Flex MenuItem
2034 \begin_layout Plain Layout
2040 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2043 \begin_layout Labeling
2044 \labelwidthstring 00.00.0000
2045 \begin_inset Flex Code
2048 \begin_layout Plain Layout
2057 \begin_layout Labeling
2058 \labelwidthstring 00.00.0000
2059 \begin_inset Flex Code
2062 \begin_layout Plain Layout
2071 \begin_layout Labeling
2072 \labelwidthstring 00.00.0000
2073 \begin_inset Flex Code
2076 \begin_layout Plain Layout
2085 \begin_layout Labeling
2086 \labelwidthstring 00.00.0000
2087 \begin_inset Flex Code
2090 \begin_layout Plain Layout
2096 入力ファイルのベースファイル名(拡張子をとった部分)
2099 \begin_layout Labeling
2100 \labelwidthstring 00.00.0000
2101 \begin_inset Flex Code
2104 \begin_layout Plain Layout
2113 \begin_layout Labeling
2114 \labelwidthstring 00.00.0000
2115 \begin_inset Flex Code
2118 \begin_layout Plain Layout
2124 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2127 \begin_layout Labeling
2128 \labelwidthstring 00.00.0000
2129 \begin_inset Flex Code
2132 \begin_layout Plain Layout
2141 \begin_layout Standard
2142 \begin_inset Flex MenuItem
2145 \begin_layout Plain Layout
2151 フィールドには、以下のフラグをコンマで区切って入力することができます。
2154 \begin_layout Labeling
2155 \labelwidthstring 00.00.0000
2156 \begin_inset Flex Code
2159 \begin_layout Plain Layout
2165 この変換子がLaTeXの一種を実行することを示します。これによって、LyXのLaTeXエラーログに記録を残せるようになります。
2168 \begin_layout Labeling
2169 \labelwidthstring 00.00.0000
2170 \begin_inset Flex Code
2173 \begin_layout Plain Layout
2180 \begin_inset Flex MenuItem
2183 \begin_layout Plain Layout
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2197 \begin_layout Plain Layout
2206 \begin_layout Standard
2208 \begin_inset Flex MenuItem
2211 \begin_layout Plain Layout
2213 \begin_inset space ~
2217 \begin_inset space ~
2225 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Flex Code
2233 \begin_layout Plain Layout
2240 \begin_inset Flex Code
2243 \begin_layout Plain Layout
2249 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2250 \begin_inset Flex Code
2253 \begin_layout Plain Layout
2254 script < infile.out > infile.log
2259 の形で実行されるようになります。引数には
2260 \begin_inset Flex Code
2263 \begin_layout Plain Layout
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Flex Code
2277 \begin_layout Plain Layout
2283 これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。LyXはこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛
2285 \begin_inset Flex Code
2288 \begin_layout Plain Layout
2294 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2295 \begin_inset Newline newline
2298 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2306 \begin_layout Plain Layout
2313 \begin_inset Flex Code
2316 \begin_layout Plain Layout
2322 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2325 \begin_layout Standard
2326 最後の3つは、LyXとともに導入される変換子には、現在いずれも使用されておりません。
2329 \begin_layout Standard
2330 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「LyXからPostScript」変換子が定義されていないのに、LyXはPos
2331 tScriptを書き出していることに気づかれることでしょう。これは、まずLaTeXファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTe
2332 XからDVI」変換子を使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。LyXはこのような変換子の「連鎖
2333 」を自動的に見つけ、つねに最も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的なLyX設定は、LaTeX
2334 からPDFへ変換するのに、以下の3つの方法を用意しています。(1)
2335 \begin_inset space ~
2339 \begin_inset Flex MenuItem
2342 \begin_layout Plain Layout
2349 \begin_inset space ~
2352 (DVIと)PostScriptを経由して
2353 \begin_inset Flex MenuItem
2356 \begin_layout Plain Layout
2363 \begin_inset space ~
2367 \begin_inset Flex MenuItem
2370 \begin_layout Plain Layout
2376 を使用するもの。このように代替連鎖を定義するには、第
2377 \begin_inset CommandInset ref
2379 reference "sec:ファイル形式"
2383 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2384 \begin_inset Flex MenuItem
2387 \begin_layout Plain Layout
2394 \begin_inset Flex MenuItem
2397 \begin_layout Plain Layout
2404 \begin_inset Flex MenuItem
2407 \begin_layout Plain Layout
2413 と命名された形式が定義されていて、すべて共通の拡張子
2414 \begin_inset Flex MenuItem
2417 \begin_layout Plain Layout
2423 を持ち、上記で言及した各変換方法に対応しています。
2426 \begin_layout Chapter
2428 \begin_inset CommandInset label
2430 name "cha:LyXの各国語対応"
2437 \begin_layout Standard
2438 LyXは、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、LyXは30言語の翻訳を提供しています。選択した言語は、使用する
2442 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2443 \begin_inset Flex Code
2446 \begin_layout Plain Layout
2455 \begin_layout Standard
2456 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2457 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての短絡キーが定義され
2458 ていないことに気づかれるでしょう。短絡キーのために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ短絡キーを定義していないこともあるでしょう。もち
2459 ろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2463 \begin_layout Plain Layout
2464 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、LyXコミュニティに報いるたいへん素晴らしい方法です!
2469 —は、LyXの将来のバージョンでこれらの欠点を修正しようとするでしょう。
2472 \begin_layout Section
2476 \begin_layout Subsection
2477 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2478 \begin_inset Argument
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2492 \begin_inset Flex Code
2495 \begin_layout Plain Layout
2501 ライブラリを使用します。LyXのすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2502 \begin_inset Flex Code
2505 \begin_layout Plain Layout
2511 ファイルが必要です。このファイルが利用可能であれば、そこから
2512 \begin_inset Flex Code
2515 \begin_layout Plain Layout
2522 \begin_inset Flex Code
2525 \begin_layout Plain Layout
2531 ファイルをインストールしなくてはなりません。この全過程は、GNU
2532 \begin_inset Flex Code
2535 \begin_layout Plain Layout
2541 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果をLyXコミュニティの他の人々と
2542 分かち合いませんか。どのように段取りを進めればよいか、詳しくはLyX開発者メーリングリストにメールを送ってください。
2545 \begin_layout Standard
2546 要約すれば、以下のように行います(xxは言語コードを表します)。
2549 \begin_layout Itemize
2550 LyXソースコードをチェックアウトしてください(
2551 \begin_inset CommandInset href
2554 target "http://www.lyx.org/devel/cvs.php"
2561 \begin_layout Itemize
2562 \begin_inset Flex Code
2565 \begin_layout Plain Layout
2572 \begin_inset Flex Code
2575 \begin_layout Plain Layout
2582 \begin_inset Flex Code
2585 \begin_layout Plain Layout
2592 \begin_inset Flex Code
2595 \begin_layout Plain Layout
2601 がどこにもない場合には、コンソールからそのディレクトリで
2602 \begin_inset Flex Code
2605 \begin_layout Plain Layout
2611 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2614 \begin_layout Itemize
2615 \begin_inset Flex Code
2618 \begin_layout Plain Layout
2628 \begin_layout Plain Layout
2629 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2637 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2642 \begin_inset Flex Code
2645 \begin_layout Plain Layout
2651 ファイルを編集するための「モード」があります。
2656 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない短絡キーがある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレ
2657 ーズに対応して翻訳しなくてはなりません。さらに、新しい
2658 \begin_inset Flex Code
2661 \begin_layout Plain Layout
2667 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2670 \begin_layout Standard
2671 もし、あなたがこれを自身のためだけに行っているのであれば、
2674 \begin_layout Itemize
2675 \begin_inset Flex Code
2678 \begin_layout Plain Layout
2685 \begin_inset Flex Code
2688 \begin_layout Plain Layout
2689 msgfmt -o xx.mo < xx.po
2697 \begin_layout Itemize
2699 \begin_inset Flex Code
2702 \begin_layout Plain Layout
2708 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
2709 \begin_inset Flex Code
2712 \begin_layout Plain Layout
2719 \begin_inset Flex Code
2722 \begin_layout Plain Layout
2723 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
2731 \begin_layout Standard
2733 \begin_inset Flex Code
2736 \begin_layout Plain Layout
2742 ファイルを他の人たちが使用できるよう、LyX頒布版に追加できることが最善です。これを追加するには、LyXに変更を加える必要がありますので、もしその気があれば、開
2743 発者メーリングリストに電子メールを送ってください。
2746 \begin_layout Subsubsection
2750 \begin_layout Standard
2751 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
2752 \begin_inset Flex Code
2755 \begin_layout Plain Layout
2761 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU
2762 \begin_inset Flex Code
2765 \begin_layout Plain Layout
2772 \begin_inset Flex Code
2775 \begin_layout Plain Layout
2782 \begin_inset Flex Code
2785 \begin_layout Plain Layout
2786 To[[as in 'From format x to format y']]
2792 \begin_inset Flex Code
2795 \begin_layout Plain Layout
2796 To[[as in 'From page x to page y']]
2801 としなくてはなりません。これによって、これら2つの
2802 \begin_inset Flex Code
2805 \begin_layout Plain Layout
2812 \begin_inset Flex Code
2815 \begin_layout Plain Layout
2821 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
2824 \begin_layout Standard
2825 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。LyXの翻
2826 訳機構では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
2829 \begin_layout Subsection
2833 \begin_layout Standard
2835 \begin_inset Flex MenuItem
2838 \begin_layout Plain Layout
2844 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
2848 \begin_layout Plain Layout
2849 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
2854 、ロケールがその言語に設定されている場合、LyXはこれを自動的に使用します。LyXは、翻訳版を
2855 \begin_inset Flex Code
2858 \begin_layout Plain Layout
2863 \begin_layout Plain Layout
2870 yXDir/doc/xx/DocName.lyx
2876 \begin_inset Flex Code
2879 \begin_layout Plain Layout
2885 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
2886 \begin_inset Flex Code
2889 \begin_layout Plain Layout
2895 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
2899 \begin_layout Itemize
2901 \begin_inset CommandInset href
2903 name "http://www.lyx.org/Translation"
2904 target "http://www.lyx.org/Translation"
2908 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
2909 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
2912 \begin_layout Standard
2913 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
2916 \begin_layout Itemize
2917 文書化チームに所属してください!そのための情報が
2918 \begin_inset Flex Code
2921 \begin_layout Plain Layout
2928 \begin_inset Flex MenuItem
2931 \begin_layout Plain Layout
2932 ヘルプ\SpecialChar \menuseparator
2939 \begin_inset Flex Code
2942 \begin_layout Plain Layout
2951 \begin_layout Itemize
2952 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
2953 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
2955 警告!活版技術は病みつきになる可能性があるので注意してくさい!
2960 \begin_layout Itemize
2961 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
2962 \begin_inset Flex Code
2965 \begin_layout Plain Layout
2971 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
2974 \begin_layout Itemize
2975 (LyXチームが維持している)原典の説明書は、時折更新されます。変更点については、
2976 \begin_inset CommandInset href
2978 name "http://www.lyx.org/trac/timeline"
2979 target "http://www.lyx.org/trac/timeline"
2983 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
2986 \begin_layout Standard
2987 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
2990 \begin_layout Standard
2991 \begin_inset Branch OutDated
2994 \begin_layout Section
2995 International Keyboard Support
2998 \begin_layout Standard
3001 [Editor's Note: The following section is by
3009 It needs to be fixed to conform to the new Documentation Style sheet and
3010 to make use of the new v1.0 features.
3011 The whole thing also needs to be merged with the section following it.-jw
3012 It may also be badly out of date.-rh (2008)]
3015 \begin_layout Subsection
3016 Defining Own Keymaps: Keymap File Format
3019 \begin_layout Standard
3020 Let's look at a keyboard definition file a little closer.
3021 It is a plain text file defining
3024 \begin_layout Itemize
3025 key-to-key or key-to-string translations
3028 \begin_layout Itemize
3032 \begin_layout Itemize
3033 dead keys exceptions
3036 \begin_layout Standard
3037 To define key-to-key or key-to-string translation, use this command:
3040 \begin_layout Quotation
3041 \begin_inset Flex Code
3044 \begin_layout Plain Layout
3053 \begin_inset Flex Code
3056 \begin_layout Plain Layout
3065 \begin_layout Standard
3067 \begin_inset Flex Code
3070 \begin_layout Plain Layout
3076 is the key to be translated and
3077 \begin_inset Flex Code
3080 \begin_layout Plain Layout
3086 is the string to be inserted into the document.
3087 To define dead keys, use:
3090 \begin_layout Quotation
3091 \begin_inset Flex Code
3094 \begin_layout Plain Layout
3103 \begin_inset Flex Code
3106 \begin_layout Plain Layout
3115 \begin_layout Standard
3117 \begin_inset Flex Code
3120 \begin_layout Plain Layout
3126 is a keyboard key and
3127 \begin_inset Flex Code
3130 \begin_layout Plain Layout
3137 The following dead keys are supported (shortcut name is in parentheses):
3140 \begin_layout Quotation
3144 \begin_inset space \hfill{}
3150 \begin_layout Quotation
3152 \begin_inset space \hfill{}
3160 \begin_layout Quotation
3162 \begin_inset space \hfill{}
3170 \begin_layout Quotation
3172 \begin_inset space \hfill{}
3180 \begin_layout Quotation
3182 \begin_inset space \hfill{}
3190 \begin_layout Quotation
3192 \begin_inset space \hfill{}
3199 \begin_layout Plain Layout
3211 \begin_layout Quotation
3213 \begin_inset space \hfill{}
3221 \begin_layout Quotation
3223 \begin_inset space \hfill{}
3230 \begin_layout Plain Layout
3242 \begin_layout Quotation
3244 \begin_inset space \hfill{}
3252 \begin_layout Quotation
3254 \begin_inset space \hfill{}
3262 \begin_layout Quotation
3264 \begin_inset space \hfill{}
3271 \begin_layout Plain Layout
3283 \begin_layout Quotation
3285 \begin_inset space \hfill{}
3296 \begin_layout Plain Layout
3308 \begin_layout Quotation
3310 \begin_inset space \hfill{}
3318 \begin_layout Quotation
3319 hungarian umlaut (hug)
3320 \begin_inset space \hfill{}
3328 \begin_layout Quotation
3330 \begin_inset space \hfill{}
3338 \begin_layout Quotation
3340 \begin_inset space \hfill{}
3351 \begin_layout Plain Layout
3363 \begin_layout Standard
3364 Since in many international keyboards there are exceptions to what some
3365 dead keys should do, you can define them using
3368 \begin_layout Quotation
3369 \begin_inset Flex Code
3372 \begin_layout Plain Layout
3380 deadkey key outstring
3383 \begin_layout Standard
3384 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3388 \begin_layout Quotation
3389 \begin_inset Flex Code
3392 \begin_layout Plain Layout
3405 \begin_layout Standard
3406 to make it work correctly.
3407 Also, you have to define as exceptions dead keys over i and j, to remove
3408 the dot from them before inserting an accent mark.
3409 I will change this when the time comes, but so far I haven't had time.
3412 \begin_layout Standard
3413 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3416 \begin_inset Flex Code
3419 \begin_layout Plain Layout
3425 have different meaning.
3427 \begin_inset Flex Code
3430 \begin_layout Plain Layout
3436 marks comments, quotes start and end LaTeX-style commands.
3437 To enter quote, you'll need to use
3438 \begin_inset Flex Code
3441 \begin_layout Plain Layout
3450 \begin_inset Flex Code
3453 \begin_layout Plain Layout
3460 \begin_inset Flex Code
3463 \begin_layout Plain Layout
3474 \begin_layout Standard
3475 If you make a keyboard description file that works for your language, please
3476 mail it to me, so I can include it in the next keymap distribution.
3479 \begin_layout Standard
3480 More keywords will be supported in keymap configuration file in future,
3484 \begin_layout Itemize
3485 \begin_inset Flex Code
3488 \begin_layout Plain Layout
3499 \begin_inset space \hfill{}
3503 \begin_inset Flex Code
3506 \begin_layout Plain Layout
3515 \begin_layout Itemize
3516 \begin_inset Flex Code
3519 \begin_layout Plain Layout
3530 \begin_inset space \hfill{}
3534 \begin_inset Flex Code
3537 \begin_layout Plain Layout
3543 an external keymap translation program
3546 \begin_layout Standard
3547 Also, it should look into
3548 \begin_inset Flex Code
3551 \begin_layout Plain Layout
3557 file for defaults, too (for example, a
3558 \begin_inset Flex Code
3561 \begin_layout Plain Layout
3569 option to include default keyboard).
3577 \begin_layout Section
3579 \begin_inset CommandInset label
3588 \begin_layout Standard
3589 \begin_inset Note Note
3592 \begin_layout Plain Layout
3593 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3596 \begin_layout Plain Layout
3605 \begin_layout Standard
3607 \begin_inset Flex Code
3610 \begin_layout Plain Layout
3617 \begin_inset Flex Code
3620 \begin_layout Plain Layout
3626 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3629 \begin_layout Subsection
3633 \begin_layout Standard
3634 \begin_inset Flex Code
3637 \begin_layout Plain Layout
3643 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3644 \begin_inset Flex Code
3647 \begin_layout Plain Layout
3653 ファイルは、以下の各項で説明するように、
3654 \begin_inset Flex Code
3657 \begin_layout Plain Layout
3664 \begin_inset Flex Code
3667 \begin_layout Plain Layout
3674 \begin_inset Flex Code
3677 \begin_layout Plain Layout
3684 \begin_inset Flex Code
3687 \begin_layout Plain Layout
3696 \begin_layout Labeling
3697 \labelwidthstring 00.00.0000
3698 \begin_inset Flex Code
3701 \begin_layout Plain Layout
3710 \begin_layout LyX-Code
3725 \begin_layout Standard
3738 中では、二重引用符(")とバックスラッシュ(
3742 )を付けてエスケープしなくてはならないことに注意してください。
3745 \begin_layout Standard
3746 \begin_inset Flex MenuItem
3749 \begin_layout Plain Layout
3756 \begin_inset Flex MenuItem
3759 \begin_layout Plain Layout
3766 \begin_inset Flex MenuItem
3769 \begin_layout Plain Layout
3778 \begin_layout LyX-Code
3784 \begin_layout Standard
3788 \begin_layout Labeling
3789 \labelwidthstring 00.00.0000
3790 \begin_inset Flex Code
3793 \begin_layout Plain Layout
3802 \begin_layout LyX-Code
3811 \begin_layout Standard
3820 のアクセントとするものです。これはデッドキー
3824 \begin_layout Plain Layout
3829 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
3833 のようなウムラウトのついた文字は、このようにして出すことができます。
3841 \begin_layout Standard
3854 の後に許可文字ではないその文字が出力として表示されます。
3855 \begin_inset Flex MenuItem
3858 \begin_layout Plain Layout
3869 \begin_inset Flex MenuItem
3872 \begin_layout Plain Layout
3878 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
3881 \begin_layout Standard
3882 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
3885 \begin_layout LyX-Code
3888 kmod ' acute aeiouAEIOU
3891 \begin_layout Labeling
3892 \labelwidthstring 00.00.0000
3893 \begin_inset Flex Code
3896 \begin_layout Plain Layout
3905 \begin_layout LyX-Code
3914 \begin_layout Standard
3928 \begin_inset Flex Code
3931 \begin_layout Plain Layout
3939 宣言で打鍵キーを既に割り当てられてなくてはならず、
3951 の集合に属していてはなりません。こうして
3964 \begin_inset Flex Code
3967 \begin_layout Plain Layout
3994 \begin_inset Flex Code
3997 \begin_layout Plain Layout
4008 \begin_layout Standard
4009 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4012 \begin_layout LyX-Code
4026 \begin_layout Labeling
4027 \labelwidthstring 00.00.0000
4028 \begin_inset Flex Code
4031 \begin_layout Plain Layout
4040 \begin_layout LyX-Code
4049 \begin_layout Standard
4050 これはなかなか難解になってきます。これは
4075 \begin_inset Flex Code
4078 \begin_layout Plain Layout
4086 コマンドで設定されていなくてはなりません。
4089 \begin_layout Standard
4090 \begin_inset Flex Code
4093 \begin_layout Plain Layout
4102 \begin_layout LyX-Code
4105 kmod ; acute aeioyvhAEIOYVH
4109 kcomb acute umlaut iyIY
4112 \begin_layout Standard
4114 \begin_inset Flex MenuItem
4117 \begin_layout Plain Layout
4124 \begin_inset Flex Code
4127 \begin_layout Plain Layout
4137 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4138 \begin_inset Flex MenuItem
4141 \begin_layout Plain Layout
4148 \begin_inset Flex Code
4151 \begin_layout Plain Layout
4162 \begin_layout Subsection
4166 \begin_layout Standard
4167 \begin_inset Flex Code
4170 \begin_layout Plain Layout
4177 \begin_inset Flex Code
4180 \begin_layout Plain Layout
4186 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。LyX頒布版には、現在のところ、少なくとも
4187 \begin_inset Flex Code
4190 \begin_layout Plain Layout
4197 \begin_inset Flex Code
4200 \begin_layout Plain Layout
4209 \begin_layout Standard
4211 \begin_inset Flex Code
4214 \begin_layout Plain Layout
4223 \begin_layout LyX-Code
4236 \begin_layout Standard
4238 \begin_inset Flex MenuItem
4241 \begin_layout Plain Layout
4249 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4252 \begin_layout LyX-Code
4260 \begin_layout Standard
4266 \begin_inset Flex Code
4269 \begin_layout Plain Layout
4278 \begin_inset Flex Code
4281 \begin_layout Plain Layout
4287 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4288 \begin_inset Flex Code
4291 \begin_layout Plain Layout
4300 \begin_layout LyX-Code
4312 \begin_inset Newline newline
4328 \begin_layout Standard
4329 という例があります。LyXは、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈がで
4330 きないかどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4333 \begin_layout Subsection
4337 \begin_layout Standard
4338 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4339 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4342 \begin_layout Standard
4343 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4344 \begin_inset Flex Code
4347 \begin_layout Plain Layout
4354 \begin_inset Flex MenuItem
4357 \begin_layout Plain Layout
4364 \begin_inset Flex MenuItem
4367 \begin_layout Plain Layout
4374 \begin_inset Flex Code
4377 \begin_layout Plain Layout
4384 \begin_inset Flex MenuItem
4387 \begin_layout Plain Layout
4393 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4394 \begin_inset Flex MenuItem
4397 \begin_layout Plain Layout
4403 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4404 \begin_inset Flex MenuItem
4407 \begin_layout Plain Layout
4414 \begin_inset Flex MenuItem
4417 \begin_layout Plain Layout
4423 」は曲折アクセントをとることは決してないために、LyXはビープを鳴らして文句を付けます。デッドキーの後に
4424 \begin_inset Flex MenuItem
4427 \begin_layout Plain Layout
4433 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4435 \begin_inset Flex MenuItem
4438 \begin_layout Plain Layout
4444 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4447 \begin_layout Standard
4448 デッドキーを割り当てるのによく用いられる方法は、
4449 \begin_inset Flex MenuItem
4452 \begin_layout Plain Layout
4459 \begin_inset Flex MenuItem
4462 \begin_layout Plain Layout
4469 \begin_inset Flex MenuItem
4472 \begin_layout Plain Layout
4479 \begin_inset Flex MenuItem
4482 \begin_layout Plain Layout
4489 \begin_inset Flex MenuItem
4492 \begin_layout Plain Layout
4499 \begin_inset Flex MenuItem
4502 \begin_layout Plain Layout
4508 」のようなアクセントと一緒に用いる方法です。また、
4509 \begin_inset Flex Code
4512 \begin_layout Plain Layout
4519 \begin_inset Flex Code
4522 \begin_layout Plain Layout
4529 \begin_inset Flex Code
4532 \begin_layout Plain Layout
4539 \begin_inset Flex Code
4542 \begin_layout Plain Layout
4549 \begin_inset Flex MenuItem
4552 \begin_layout Plain Layout
4558 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4559 \begin_inset Flex Code
4562 \begin_layout Plain Layout
4568 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応するLyXコマンドに割り当てることもできます
4572 \begin_layout Plain Layout
4578 \begin_inset Flex Code
4581 \begin_layout Plain Layout
4588 \begin_inset Flex Code
4591 \begin_layout Plain Layout
4598 \begin_inset Flex MenuItem
4601 \begin_layout Plain Layout
4603 \begin_inset space ~
4612 \begin_inset Flex Code
4615 \begin_layout Plain Layout
4622 \begin_inset Flex Code
4625 \begin_layout Plain Layout
4632 \begin_inset Flex MenuItem
4635 \begin_layout Plain Layout
4637 \begin_inset space ~
4646 \begin_inset Flex MenuItem
4649 \begin_layout Plain Layout
4651 \begin_inset space ~
4659 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4665 \begin_inset Flex Code
4668 \begin_layout Plain Layout
4675 \begin_inset Flex MenuItem
4678 \begin_layout Plain Layout
4684 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出すLyXコマンドについては、
4689 \begin_inset Flex Code
4692 \begin_layout Plain Layout
4698 の項をご覧ください。ここには完備した一覧があります。
4701 \begin_layout Subsection
4705 \begin_layout Standard
4706 \begin_inset Flex MenuItem
4709 \begin_layout Plain Layout
4710 ツール\SpecialChar \menuseparator
4716 ダイアログを使えば、LyXを起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
4719 \begin_layout Chapter
4720 文書クラス・レイアウト・ひな型の新規導入
4721 \begin_inset CommandInset label
4728 \begin_inset Argument
4731 \begin_layout Plain Layout
4740 \begin_layout Standard
4741 この章では、新しくLyXのレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規にLaTeX文書クラス(ドキュメントクラス)を正しく導
4745 \begin_layout Standard
4746 まず、LyXとLaTeXの間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、LyXは、La
4747 TeXについて何も知らないと云うことです。実際のところ、LyXの観点からは、LaTeXは、LyXが出力を生成することができる、複数の「バックエンド形式」のうちの
4748 一つに過ぎないということです。同種のバックエンド形式には、DocBook・平文・XHTMLがあります。もちろんLaTeXは、とくに重要な形式ですが、LyXがLa
4749 TeXについて持っている情報のほとんどは、実はプログラム本体には含まれていないのです
4753 \begin_layout Plain Layout
4754 過度に複雑なため、LyXに「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
4760 \begin_inset Flex Code
4763 \begin_layout Plain Layout
4769 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、LyXは、DocBookやXHTMLについてもほとんど知りません。LyXが知っているこ
4770 とは、レイアウトファイルの中にあります。
4773 \begin_layout Standard
4774 文書クラス用のレイアウトファイルは、LyX構成体---対応する様式や何らかの差込枠などを有する段落群---と、それに対応するLaTeX構成体・DocBook構成
4775 体・XHTML構成体との間の翻訳指南書のようなものです。たとえば、LyXが
4776 \begin_inset Flex Code
4779 \begin_layout Plain Layout
4785 について知っていることのほとんど総ては、
4786 \begin_inset Flex Code
4789 \begin_layout Plain Layout
4795 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
4797 \begin_inset Flex Code
4800 \begin_layout Plain Layout
4807 \begin_inset Flex Code
4810 \begin_layout Plain Layout
4816 や、文書クラス用の他のレイアウトファイルに取り込まれている
4817 \begin_inset Flex Code
4820 \begin_layout Plain Layout
4826 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
4827 \begin_inset Flex Code
4830 \begin_layout Plain Layout
4836 は、節様式や小節様式などとしてマークされている段落を、対応するLaTeX・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかをLyXに知らせるも
4838 \begin_inset Flex Code
4841 \begin_layout Plain Layout
4848 \begin_inset Flex Code
4851 \begin_layout Plain Layout
4857 ファイルを取り込んでいるだけのものです。
4860 \begin_layout Standard
4861 しかしながら、LyX--LaTeX間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、LyX構成体自
4862 身が画面上にどのように表示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば
4863 混乱を引き起こす元となります。ある段落様式をLaTeXに翻訳する仕方をLyXに指示することは、その表示の仕方をLyXに指示するものではありません。逆に、ある段落
4864 様式の表示の仕方をLyXに指示することは、その段落様式をどのようにLaTeXに翻訳するかをLyXに指示するものではありません(ましてやLaTeXに表示の仕方を指
4865 示するものではありません)。つまり、一般的に、新しいLyX構成体を定義する際には、(i)
4866 \begin_inset space ~
4869 LaTeXにどのように翻訳するかをLyXに指示する、(ii)
4870 \begin_inset space ~
4873 それをどのように表示するかをLyXに指示する、という、二つのかなり異なることを行わなくてはならないのです。
4876 \begin_layout Standard
4877 もちろん、LyXの他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、LyXが、ブラウザ中での段落の表示方法を(CS
4878 Sの形で)出力するにあたって、当該段落をLyXが画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、LyXが内部的に行うことと、
4879 外部的に行う物事の間の区別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
4880 \begin_inset CommandInset ref
4882 reference "sec:XHTML出力のタグ"
4889 \begin_layout Section
4893 \begin_layout Standard
4894 頒布版によっては、LyXで使いたいLaTeXパッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライド
4895 を準備するためのパッケージである、FoilTeXがないかもしれません。TeXLive(2008年以降)やMiKTeXのような最近のLaTeX頒布版には、これらの
4896 パッケージを導入するためのユーザーインタフェースが用意されています。たとえば、MiKTeXでは、付属の「Package
4897 \begin_inset space ~
4900 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
4904 \begin_layout Standard
4905 お使いのLaTeX頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って
4909 \begin_layout Enumerate
4910 \begin_inset CommandInset href
4913 target "http://www.ctan.org/"
4917 などから欲しいパッケージを入手してください。
4920 \begin_layout Enumerate
4922 \begin_inset Flex Code
4925 \begin_layout Plain Layout
4931 」で終わるファイル名が入っている場合(FoilTeXがその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
4932 \begin_inset Flex Code
4935 \begin_layout Plain Layout
4941 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていのLaTeXパッケージは圧縮されていないので、このステップ
4945 \begin_layout Enumerate
4946 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
4950 \begin_layout Enumerate
4951 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」TeXツリーに導入し、そうでなければ
4952 「ユーザー」TeXツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
4953 \begin_inset Flex Code
4956 \begin_layout Plain Layout
4966 \begin_layout Plain Layout
4972 \begin_inset Flex Code
4975 \begin_layout Plain Layout
4981 を実行してその場所を見つけることもできます。
4987 \begin_inset Flex Code
4990 \begin_layout Plain Layout
4997 \begin_inset Flex Code
5000 \begin_layout Plain Layout
5001 /usr/local/share/texmf/
5006 のような場所になっています。「ユーザー」TeXツリーの場所は、
5007 \begin_inset Flex Code
5010 \begin_layout Plain Layout
5017 \begin_inset Flex Code
5020 \begin_layout Plain Layout
5026 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5027 、「ユーザー」ツリーにはこのような制限はありません。
5028 \begin_inset Newline newline
5031 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5032 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5035 \begin_layout Enumerate
5036 Windowでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、LaTeXの導入されているフォルダに移動し、それからサブフォルダ
5037 \begin_inset Flex Code
5040 \begin_layout Plain Layout
5050 に移動します(MiKTeXでは、これは既定では
5051 \begin_inset Flex Code
5054 \begin_layout Plain Layout
5070 \begin_layout Plain Layout
5071 これは、英語版でのみ正しいパスになっています。独語版では
5072 \begin_inset Flex Code
5075 \begin_layout Plain Layout
5093 \begin_inset Flex Code
5096 \begin_layout Plain Layout
5102 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカルLaTeXフォ
5103 ルダで同じことを行います。たとえばMiKTeX
5104 \begin_inset space ~
5108 \begin_inset Newline newline
5112 \begin_inset Flex Code
5115 \begin_layout Plain Layout
5118 Documents and Settings
5130 \begin_inset Newline newline
5134 \begin_inset Phantom HPhantom
5137 \begin_layout Plain Layout
5148 \begin_inset Flex Code
5151 \begin_layout Plain Layout
5164 \begin_inset Newline newline
5168 \begin_inset Newline newline
5172 \begin_inset Flex Code
5175 \begin_layout Plain Layout
5198 \begin_inset Newline newline
5205 \begin_layout Enumerate
5206 ここまで来れば、あとはLaTeXに新しいファイルがあることを告げるだけです。これは使用しているLaTeX頒布版に依存します。
5210 \begin_layout Enumerate
5211 TeXLiveの場合には、コンソールから
5212 \begin_inset Flex Code
5215 \begin_layout Plain Layout
5221 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5224 \begin_layout Enumerate
5225 MiKTeXでは、パッケージを全ユーザー用に導入した場合には、「Settings
5226 \begin_inset space ~
5229 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5234 \begin_layout Enumerate
5235 最後に、LyXに新しいパッケージがあることを告げなくてはなりません。そこで、LyXからツール\SpecialChar \menuseparator
5236 再初期設定メニューを実行して、LyXを再起動します。
5239 \begin_layout Standard
5240 これでパッケージが導入されました。この例では、文書クラス
5241 \begin_inset Flex Code
5244 \begin_layout Plain Layout
5246 \begin_inset space ~
5253 \begin_layout Plain Layout
5266 \begin_inset Flex MenuItem
5269 \begin_layout Plain Layout
5270 文書\SpecialChar \menuseparator
5271 設定\SpecialChar \menuseparator
5280 \begin_layout Standard
5281 \begin_inset Flex MenuItem
5284 \begin_layout Plain Layout
5285 文書\SpecialChar \menuseparator
5286 設定\SpecialChar \menuseparator
5292 メニューに列挙されてもいないLaTeX文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5295 \begin_layout Section
5299 \begin_layout Standard
5300 この節は、レイアウト情報を含む各種LyXファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、LyXがそれら
5301 をどのように表示すべきなのか、また、それらをどのようにLaTeXやDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5304 \begin_layout Standard
5305 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、LaTeXクラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会い
5306 うるケースや問題をすべてカバーすることはとても望めません。LyXユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊
5307 かな人々がよく顔を出していますので、気軽に質問を投げかけてみてください。
5310 \begin_layout Standard
5311 新しいレイアウトを準備するに当たっては、LyXと共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できるLaTeX文書クラス用のLyX
5312 レイアウトを作ったり、他の人々にも有用なモジュールをお書きになった場合には、
5313 \begin_inset CommandInset href
5315 name "LyX Wikiのレイアウトに関する節"
5316 target "http://wiki.lyx.org/Layouts/Layouts"
5320 か、LyX開発者メーリングリストに投稿して、LyX頒布版に同梱することができるようにしてください
5324 \begin_layout Plain Layout
5325 LyXはGeneral Public Licenseの下でライセンスされていますので、LyXに寄贈されたものは総て同じライセンス下に置かれることに注意してくださ
5334 \begin_layout Subsection
5336 \begin_inset CommandInset label
5338 name "sub:レイアウトモジュール"
5345 \begin_layout Standard
5346 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5348 \begin_inset Flex Code
5351 \begin_layout Plain Layout
5357 拡張子を持ち、文書クラスに関する情報をLyXに提供するものを指します。しかしながら、LyX 1.6以降、レイアウト情報は、拡張子が
5358 \begin_inset Flex Code
5361 \begin_layout Plain Layout
5371 にも含めることができます。レイアウトがLaTeXクラスに対応しているように、モジュールはLaTeXパッケージに対応するものであり、
5372 \begin_inset Flex Code
5375 \begin_layout Plain Layout
5381 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5382 イアウトで使用できるという意味において、一面、
5383 \begin_inset Flex Code
5386 \begin_layout Plain Layout
5396 \begin_layout Plain Layout
5397 これらは任意の拡張子をつけることができますが、慣習的に
5398 \begin_inset Flex Code
5401 \begin_layout Plain Layout
5413 \begin_inset Flex Code
5416 \begin_layout Plain Layout
5422 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5423 \begin_inset Flex MenuItem
5426 \begin_layout Plain Layout
5427 文書\SpecialChar \menuseparator
5436 \begin_layout Standard
5437 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5438 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5441 \begin_layout Standard
5443 \begin_inset Flex Code
5446 \begin_layout Plain Layout
5452 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、LyXの再設定を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合に
5454 \begin_inset Flex MenuItem
5457 \begin_layout Plain Layout
5458 文書\SpecialChar \menuseparator
5464 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5466 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5470 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5472 。もちろん開発陣は、そのような場合でもLyXが安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こさ
5476 \begin_layout Subsubsection
5480 \begin_layout Standard
5481 LyXに於けるモジュールは、LaTeXに於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょう
5482 から、そのような場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウ
5486 \begin_layout Standard
5489 文書\SpecialChar \menuseparator
5490 設定\SpecialChar \menuseparator
5493 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5494 は、その文書専属のモジュールだと考えることができます。したがって、
5495 \begin_inset Flex Code
5498 \begin_layout Plain Layout
5504 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(LyX 2.0では、最新書式は35です)。
5505 また、ローカルレイアウトは、LyX 1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書をLyX 1.5またはそれ以前の版に(
5506 ローカルレイアウト情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ---第1.6版はUIはありませんがローカルレイアウトをサ
5507 ポートしています---書き出せることを望むならば、書式11を用いて、さらにLyX 1.6で使用できるレイアウト要素のみを使用してください。
5510 \begin_layout Standard
5511 \begin_inset Flex Code
5514 \begin_layout Plain Layout
5520 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
5521 ているかどうかが検証されます。すると、LyXがその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、LyXを
5522 ターミナル(擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
5525 \begin_layout Standard
5526 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
5527 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
5530 \begin_layout Subsection
5531 \begin_inset Flex MenuItem
5534 \begin_layout Plain Layout
5543 \begin_layout Standard
5544 新しくLaTeX文書クラスをサポートしようとするとき、LaTeX2eクラス(
5545 \begin_inset Flex Code
5548 \begin_layout Plain Layout
5555 \begin_inset Flex Code
5558 \begin_layout Plain Layout
5564 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5565 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5569 \begin_layout Standard
5570 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5571 \begin_inset Flex MenuItem
5574 \begin_layout Plain Layout
5581 \begin_inset Flex MenuItem
5584 \begin_layout Plain Layout
5593 \begin_layout Standard
5594 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
5598 \begin_layout Plain Layout
5599 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。LyXでは、起動時に
5600 \begin_inset Flex MenuItem
5603 \begin_layout Plain Layout
5609 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
5617 \begin_layout LyX-Code
5618 cp report.layout ~/.lyx/layouts/myclass.layout
5621 \begin_layout Standard
5623 \begin_inset Flex Code
5626 \begin_layout Plain Layout
5635 \begin_layout LyX-Code
5642 \begin_layout Plain Layout
5652 \begin_layout Standard
5656 \begin_layout LyX-Code
5666 \begin_layout Plain Layout
5676 eXClass[report, myclass.sty]{report (myclass)}
5679 \begin_layout Standard
5680 のように変更してください。それから、ファイル冒頭辺りに
5683 \begin_layout LyX-Code
5685 \begin_inset Newline newline
5691 \begin_inset Newline newline
5697 \begin_layout Standard
5701 \begin_layout Standard
5703 \begin_inset Flex MenuItem
5706 \begin_layout Plain Layout
5707 ツール\SpecialChar \menuseparator
5713 を選択してください。それからLyXを再起動し、新規文書を作成してみてください。すると、
5714 \begin_inset Flex MenuItem
5717 \begin_layout Plain Layout
5718 文書\SpecialChar \menuseparator
5725 \begin_inset Flex MenuItem
5728 \begin_layout Plain Layout
5734 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
5735 \begin_inset Flex Code
5738 \begin_layout Plain Layout
5744 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
5745 \begin_inset Flex Code
5748 \begin_layout Plain Layout
5754 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
5755 \begin_inset Flex Code
5758 \begin_layout Plain Layout
5765 \begin_inset Flex Code
5768 \begin_layout Plain Layout
5774 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
5777 \begin_layout LyX-Code
5781 \begin_layout LyX-Code
5785 \begin_layout LyX-Code
5789 \begin_layout LyX-Code
5793 \begin_layout LyX-Code
5797 \begin_layout Standard
5798 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
5801 \begin_layout Standard
5802 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
5804 \begin_inset CommandInset ref
5806 reference "sec:テキストクラス"
5813 \begin_layout Standard
5815 \begin_inset Flex Code
5818 \begin_layout Plain Layout
5824 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
5825 う。最も簡単なモジュールの例としては、以下のようなものになります。
5828 \begin_layout LyX-Code
5831 DeclareLyXModule{My Package}
5834 \begin_layout LyX-Code
5838 \begin_layout LyX-Code
5839 #Support for mypkg.sty.
5842 \begin_layout LyX-Code
5844 \begin_inset Newline newline
5850 \begin_layout LyX-Code
5852 \begin_inset Newline newline
5858 \begin_layout LyX-Code
5860 \begin_inset Newline newline
5866 \begin_inset Newline newline
5872 \begin_layout Standard
5873 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
5874 \begin_inset CommandInset ref
5876 reference "sec:テキストクラス"
5883 \begin_layout Subsection
5884 \begin_inset Flex MenuItem
5887 \begin_layout Plain Layout
5896 \begin_layout Standard
5897 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
5898 \begin_inset Flex MenuItem
5901 \begin_layout Plain Layout
5907 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
5910 \begin_layout LyX-Code
5916 \begin_layout Standard
5917 という行がないかどうか探してください。もしこれがあれば、
5918 \begin_inset Flex Code
5921 \begin_layout Plain Layout
5927 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
5928 \begin_inset Flex Code
5931 \begin_layout Plain Layout
5938 \begin_inset Flex Code
5941 \begin_layout Plain Layout
5948 \begin_inset Flex Code
5951 \begin_layout Plain Layout
5961 \begin_layout Plain Layout
5962 さらにLyXは、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
5963 \begin_inset Flex Code
5966 \begin_layout Plain Layout
5980 \begin_layout LyX-Code
5987 \begin_layout Plain Layout
5994 eXClass[thesis,book]{thesis}
5997 \begin_layout Standard
5998 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似したLaTeXクラスを
5999 使用している既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のフ
6003 \begin_layout Subsection
6005 \begin_inset CommandInset label
6014 \begin_layout Standard
6015 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6016 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、LyX添付のひな型をあれこれ見てみるのもよいでしょう。
6019 \begin_layout Standard
6020 ひな型は、通常の文書と同様、LyXを使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている
6021 点です。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6022 \begin_inset Flex Code
6025 \begin_layout Plain Layout
6034 \begin_inset Flex Code
6037 \begin_layout Plain Layout
6045 などの対応するコマンドをひな型LyXファイルから取り除く必要があります。これは、たとえば
6046 \begin_inset Flex Code
6049 \begin_layout Plain Layout
6056 \begin_inset Flex Code
6059 \begin_layout Plain Layout
6065 のような、どの軽いテキストエディタでも行うことができます。
6068 \begin_layout Standard
6070 \begin_inset Flex Code
6073 \begin_layout Plain Layout
6080 \begin_inset Flex Code
6083 \begin_layout Plain Layout
6089 から使用したいものを同じ場所にコピーし、
6090 \begin_inset Flex MenuItem
6093 \begin_layout Plain Layout
6094 ツール\SpecialChar \menuseparator
6095 設定\SpecialChar \menuseparator
6101 ダイアログのひな型パスを再定義してください。
6104 \begin_layout Standard
6106 \begin_inset Flex Code
6109 \begin_layout Plain Layout
6115 があることに注意してください。このひな型は、
6116 \begin_inset Flex MenuItem
6119 \begin_layout Plain Layout
6120 ファイル\SpecialChar \menuseparator
6126 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型をLyX内部から作成するのにしなくてはならないことは、対応する設定を持つ
6128 \begin_inset Flex MenuItem
6131 \begin_layout Plain Layout
6140 \begin_layout Subsection
6144 \begin_layout Standard
6145 レイアウトファイルの書式は、LyXのリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。LyXが古い書式のレイアウトファイルを読み
6147 \begin_inset Flex Code
6150 \begin_layout Plain Layout
6151 LyXDir/scripts/layout2layout.py
6156 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、LyXがこれを毎
6157 回行なわくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6160 \begin_layout Enumerate
6164 \begin_inset Flex Code
6167 \begin_layout Plain Layout
6176 \begin_inset Flex Code
6179 \begin_layout Plain Layout
6190 \begin_layout Enumerate
6196 \begin_inset Newline newline
6200 \begin_inset Flex Code
6203 \begin_layout Plain Layout
6204 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6210 \begin_inset Newline newline
6216 \begin_inset Flex Code
6219 \begin_layout Plain Layout
6227 is the name of your LyX system directory.
6230 \begin_layout Standard
6231 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6234 \begin_layout Section
6235 \begin_inset CommandInset label
6244 \begin_layout Standard
6245 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6246 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6247 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6248 て、もう一杯大人向け飲料をどうぞ。適量ね。
6250 It becomes easier if you use existing layouts of LyX as examples/reference
6251 or if you modify an existing layout to your needs.
6254 \begin_layout Standard
6255 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6256 \begin_inset Flex Code
6259 \begin_layout Plain Layout
6266 \begin_inset Flex Code
6269 \begin_layout Plain Layout
6276 \begin_inset Flex Code
6279 \begin_layout Plain Layout
6285 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6286 \begin_inset Flex Code
6289 \begin_layout Plain Layout
6297 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6298 \begin_inset Flex Code
6301 \begin_layout Plain Layout
6312 \begin_layout Subsection
6316 \begin_layout Standard
6318 \begin_inset Flex Code
6321 \begin_layout Plain Layout
6327 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6328 \begin_inset Flex Code
6331 \begin_layout Plain Layout
6337 ファイルは、以下のような行で始めなくてはならないのです。
6340 \begin_layout LyX-Code
6343 #% Do not delete the line below; configure depends on this
6346 \begin_layout LyX-Code
6357 \begin_layout Plain Layout
6369 \begin_layout Standard
6370 この2行目は、LyXを初期設定や(再)設定するときに用いられるのです。このレイアウトファイルは、LaTeXスクリプト
6371 \begin_inset Flex Code
6374 \begin_layout Plain Layout
6381 \begin_inset Flex Code
6384 \begin_layout Plain Layout
6390 を無視する特別なモードで読み込みます。1行目は単なるLaTeXコメントですが、2行目にはテキストクラスの宣言が書かれています。これらの行が
6391 \begin_inset Flex Code
6394 \begin_layout Plain Layout
6401 \begin_inset Flex Code
6404 \begin_layout Plain Layout
6410 (レイアウトファイル名)という名称のテキストクラスを定義し、LaTeX文書クラス
6411 \begin_inset Flex Code
6414 \begin_layout Plain Layout
6420 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「article」という文字列は、
6421 \begin_inset Flex MenuItem
6424 \begin_layout Plain Layout
6425 文書\SpecialChar \menuseparator
6431 ダイアログのテキストクラスの説明に使用されます。
6434 \begin_layout Standard
6436 \begin_inset Flex Code
6439 \begin_layout Plain Layout
6445 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6446 \begin_inset Flex Code
6449 \begin_layout Plain Layout
6455 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6458 \begin_layout LyX-Code
6461 #% Do not delete the line below; configure depends on this
6464 \begin_layout LyX-Code
6475 \begin_layout Plain Layout
6484 eXClass[article]{article (with my own headings)}
6487 \begin_layout Standard
6489 \begin_inset Flex Code
6492 \begin_layout Plain Layout
6498 に関連づけられ、「article (with my own headings)」と表示される、
6499 \begin_inset Flex Code
6502 \begin_layout Plain Layout
6508 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6511 \begin_layout LyX-Code
6514 #% Do not delete the line below; configure depends on this
6517 \begin_layout LyX-Code
6528 \begin_layout Plain Layout
6537 eXClass[article,foo.sty]{article (with my own headings)}
6540 \begin_layout Standard
6542 \begin_inset Flex Code
6545 \begin_layout Plain Layout
6551 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6554 \begin_layout LyX-Code
6557 #% Do not delete the line below; configure depends on this
6560 \begin_layout LyX-Code
6565 DeclareDocBookClass[article]{SGML (DocBook article)}
6568 \begin_layout Standard
6569 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6572 \begin_layout Standard
6573 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6576 \begin_layout LyX-Code
6587 \begin_layout Plain Layout
6596 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6599 \begin_layout Standard
6600 ここで「クラス」は、LaTeXクラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、LyXは単純に
6601 、クラスファイル名がレイアウトファイル名と同じであると仮定します。
6604 \begin_layout Standard
6605 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6606 \begin_inset Flex Code
6609 \begin_layout Plain Layout
6614 \begin_layout Plain Layout
6627 \begin_inset Flex Code
6630 \begin_layout Plain Layout
6637 \begin_inset Flex MenuItem
6640 \begin_layout Plain Layout
6641 ツール\SpecialChar \menuseparator
6647 を実行し、LyXを終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
6650 \begin_layout Standard
6651 レイアウトファイルが導入されたならば、これを編集して、再初期設定したりLyXを再起動したりすることなく、その変更を確認することができます
6655 \begin_layout Plain Layout
6656 第1.6版よりも前のLyXでは、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度にLyXを再起動しなくてはならな
6657 かったので、レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
6663 \begin_inset Flex MenuItem
6666 \begin_layout Plain Layout
6672 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
6673 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
6676 \begin_layout Standard
6682 \begin_inset Flex MenuItem
6685 \begin_layout Plain Layout
6691 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
6695 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
6699 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、LyXは
6700 現在のレイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
6704 \begin_layout Plain Layout
6705 非常に悪質な文法エラーの場合には、LyXが終了してしまうことさえあります。これは、ある種のエラーでは、LyXがレイアウト情報を全く読めなくなる可能性があるからで
6711 。LyX開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
6715 \begin_layout Plain Layout
6716 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
6724 \begin_layout Subsection
6728 \begin_layout Standard
6729 モジュールは、以下のような行で始まらなくてはなりません。
6732 \begin_layout LyX-Code
6739 \begin_layout Plain Layout
6746 yXModule[endnotes.sty]{Endnotes}
6749 \begin_layout Standard
6750 波括弧内に入っている必須引数はモジュール名で、これは
6751 \begin_inset Flex MenuItem
6754 \begin_layout Plain Layout
6755 文書\SpecialChar \menuseparator
6761 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存するLaTeXパッケージをすべて宣言します。また、非必須引数として、
6762 \begin_inset Flex Code
6765 \begin_layout Plain Layout
6772 \begin_inset Flex Code
6775 \begin_layout Plain Layout
6782 \begin_inset Flex Code
6785 \begin_layout Plain Layout
6791 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
6794 \begin_layout Standard
6795 それから、以下のようなモジュール宣言を行います。
6801 \begin_layout Plain Layout
6804 Preferably in English if the module should be published with LyX.
6805 This description will appear in the list of messages to be translated and
6806 will be thus translated with the next interface update.
6814 \begin_layout LyX-Code
6818 \begin_layout LyX-Code
6819 #Adds an endnote command, in addition to footnotes.
6823 \begin_layout LyX-Code
6824 #You will need to add
6830 \begin_layout Plain Layout
6840 \begin_layout LyX-Code
6841 #want the endnotes to appear.
6845 \begin_layout LyX-Code
6849 \begin_layout LyX-Code
6850 #Requires: somemodule | othermodule
6853 \begin_layout LyX-Code
6854 #Excludes: badmodule
6857 \begin_layout Standard
6858 ここで説明(Description)は、
6859 \begin_inset Flex MenuItem
6862 \begin_layout Plain Layout
6863 文書\SpecialChar \menuseparator
6869 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
6870 \begin_inset Flex Code
6873 \begin_layout Plain Layout
6879 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
6880 \begin_inset Flex Code
6883 \begin_layout Plain Layout
6889 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
6890 イプ記号「|」で区切らなくてはなりません。
6891 \begin_inset Flex Code
6894 \begin_layout Plain Layout
6900 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
6901 \begin_inset Flex Code
6904 \begin_layout Plain Layout
6914 が使用されていればよいということです。同様に、
6915 \begin_inset Flex Code
6918 \begin_layout Plain Layout
6924 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
6925 \begin_inset Flex Code
6928 \begin_layout Plain Layout
6934 拡張子を除いたファイル名で認識されることに注意してください。つまり
6935 \begin_inset Flex Code
6938 \begin_layout Plain Layout
6945 \begin_inset Flex Code
6948 \begin_layout Plain Layout
6957 \begin_layout Subsection
6961 \begin_layout Standard
6962 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
6965 \begin_layout Description
6966 \begin_inset Flex Code
6969 \begin_layout Plain Layout
6976 \begin_inset Flex Code
6979 \begin_layout Plain Layout
6988 \begin_layout Standard
6990 \begin_inset space ~
6994 \begin_inset space ~
6997 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。LyX現行版のファイル形式は、書式35です。しかし、LyXの各版は、旧
6998 版のLyXで作成されたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7001 \begin_layout Subsection
7002 \begin_inset CommandInset label
7004 name "sub:汎用テキストクラスパラメータ"
7011 \begin_layout Standard
7012 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7013 \begin_inset Flex Code
7016 \begin_layout Plain Layout
7022 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7026 。モジュールには、すべてのレイアウトタグを使用することができます)。
7029 \begin_layout Description
7030 \begin_inset Flex Code
7033 \begin_layout Plain Layout
7039 この文書クラスがXHTMLに出力されるときに、
7040 \begin_inset Flex Code
7043 \begin_layout Plain Layout
7049 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7050 \begin_inset Flex Code
7053 \begin_layout Plain Layout
7059 に出力するものであれば、何でも使用することができます。「
7060 \begin_inset Flex Code
7063 \begin_layout Plain Layout
7072 \begin_layout Description
7073 \begin_inset Flex Code
7076 \begin_layout Plain Layout
7082 文書プリアンブルに書き加えられる情報です。「
7083 \begin_inset Flex Code
7086 \begin_layout Plain Layout
7095 \begin_layout Description
7096 \begin_inset Flex Code
7099 \begin_layout Plain Layout
7105 書誌情報の表示に使う書式を定義します。詳細については、第
7106 \begin_inset CommandInset ref
7108 reference "sub:引用書式指定"
7113 \begin_inset Flex Code
7116 \begin_layout Plain Layout
7125 \begin_layout Description
7126 \begin_inset Flex Code
7129 \begin_layout Plain Layout
7135 文書クラスがサポートする様々な大域オプションを記します。説明は、第
7136 \begin_inset CommandInset ref
7138 reference "sub:ClassOptions"
7143 \begin_inset Flex Code
7146 \begin_layout Plain Layout
7155 \begin_layout Description
7156 \begin_inset Flex Code
7159 \begin_layout Plain Layout
7166 \begin_inset Flex Code
7169 \begin_layout Plain Layout
7178 \begin_inset space \thinspace{}
7182 \begin_inset Flex Code
7185 \begin_layout Plain Layout
7191 ] 文書クラスが既定で1段組か2段組かを指定します。
7192 \begin_inset Flex MenuItem
7195 \begin_layout Plain Layout
7196 文書\SpecialChar \menuseparator
7205 \begin_layout Description
7206 \begin_inset Flex Code
7209 \begin_layout Plain Layout
7216 \begin_inset Flex Code
7219 \begin_layout Plain Layout
7225 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7226 \begin_inset Flex Code
7229 \begin_layout Plain Layout
7236 \begin_inset Newline newline
7240 \begin_inset CommandInset ref
7242 reference "sub:カウンタ"
7249 \begin_layout Description
7250 \begin_inset Flex Code
7253 \begin_layout Plain Layout
7259 文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、第
7260 \begin_inset CommandInset ref
7262 reference "sub:フォント指定"
7267 \begin_inset Flex Code
7270 \begin_layout Plain Layout
7279 \begin_layout Description
7282 \begin_inset Flex Code
7285 \begin_layout Plain Layout
7294 \begin_inset Flex Code
7297 \begin_layout Plain Layout
7307 この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7308 \begin_inset Flex Code
7311 \begin_layout Plain Layout
7317 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7318 既存の文書にこの文書クラスが選択したときのみ該当します)。
7321 \begin_layout Description
7322 \begin_inset Flex Code
7325 \begin_layout Plain Layout
7334 \begin_inset Flex Code
7337 \begin_layout Plain Layout
7347 これは新規段落に割り当てられる様式であり、通常は
7348 \begin_inset Flex MenuItem
7351 \begin_layout Plain Layout
7357 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7360 \begin_layout Description
7361 \begin_inset Flex Code
7364 \begin_layout Plain Layout
7373 \begin_inset Flex Code
7376 \begin_layout Plain Layout
7387 \begin_inset Flex Code
7390 \begin_layout Plain Layout
7396 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7398 \begin_inset Flex Code
7401 \begin_layout Plain Layout
7407 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7411 。モジュールは、他のモジュールを排除する独自の枠組みがあります(第
7412 \begin_inset CommandInset ref
7414 reference "sub:レイアウトモジュール"
7421 \begin_layout Description
7422 \begin_inset Flex Code
7425 \begin_layout Plain Layout
7432 \begin_inset CommandInset ref
7434 reference "sub:フロート"
7439 \begin_inset Flex Code
7442 \begin_layout Plain Layout
7451 \begin_layout Description
7452 \begin_inset Flex Code
7455 \begin_layout Plain Layout
7461 この文書クラスがXHTMLに出力されるときに、
7462 \begin_inset Flex Code
7465 \begin_layout Plain Layout
7471 ブロックに出力される情報です。これより前に出現した
7472 \begin_inset Flex Code
7475 \begin_layout Plain Layout
7482 \begin_inset Flex Code
7485 \begin_layout Plain Layout
7491 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7492 \begin_inset Flex Code
7495 \begin_layout Plain Layout
7502 \begin_inset Flex Code
7505 \begin_layout Plain Layout
7514 \begin_layout Description
7515 \begin_inset Flex Code
7518 \begin_layout Plain Layout
7524 CSSスタイル情報を指定します。これは、「
7525 \begin_inset Flex Code
7528 \begin_layout Plain Layout
7534 」ブロック内か、ユーザーがそのように選択すれば、独立したCSSファイル内に出力されます。これは、これより以前に宣言された
7535 \begin_inset Flex Code
7538 \begin_layout Plain Layout
7545 \begin_inset Flex Code
7548 \begin_layout Plain Layout
7554 をすべて完全に上書きしてしまうことに注意してください(追加をしたい時には`
7555 \begin_inset Flex Code
7558 \begin_layout Plain Layout
7565 \begin_inset Flex Code
7568 \begin_layout Plain Layout
7577 \begin_layout Description
7578 \begin_inset Flex Code
7581 \begin_layout Plain Layout
7590 \begin_inset Flex Code
7593 \begin_layout Plain Layout
7603 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です。
7604 これを指定しない場合には、LyXはどのレイアウトを使用するべきか、解析しようと試みます。
7607 \begin_layout Description
7608 \begin_inset Flex Code
7611 \begin_layout Plain Layout
7618 \begin_inset Flex Code
7621 \begin_layout Plain Layout
7629 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7630 \begin_inset Flex Code
7633 \begin_layout Plain Layout
7640 \begin_inset Newline newline
7644 \begin_inset CommandInset ref
7646 reference "sub:カウンタ"
7653 \begin_layout Description
7654 \begin_inset Flex Code
7657 \begin_layout Plain Layout
7664 \begin_inset Flex Code
7667 \begin_layout Plain Layout
7675 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7676 \begin_inset Flex Code
7679 \begin_layout Plain Layout
7688 \begin_layout Description
7689 \begin_inset Flex Code
7692 \begin_layout Plain Layout
7701 \begin_inset Flex Code
7704 \begin_layout Plain Layout
7714 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
7716 \begin_inset Flex Code
7719 \begin_layout Plain Layout
7728 \begin_layout Description
7729 \begin_inset Flex Code
7732 \begin_layout Plain Layout
7741 \begin_inset Flex Code
7744 \begin_layout Plain Layout
7754 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
7755 \begin_inset Flex Code
7758 \begin_layout Plain Layout
7765 \begin_inset Newline newline
7769 \begin_inset CommandInset ref
7771 reference "sub:任意設定差込枠"
7778 \begin_layout Description
7779 \begin_inset Flex Code
7782 \begin_layout Plain Layout
7789 \begin_inset Flex Code
7792 \begin_layout Plain Layout
7798 ] 画面上の左余白の幅を指示する文字列。例:「
7799 \begin_inset Flex Code
7802 \begin_layout Plain Layout
7808 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
7811 \begin_layout Description
7812 \begin_inset Flex Code
7815 \begin_layout Plain Layout
7824 \begin_inset Flex Code
7827 \begin_layout Plain Layout
7835 ] This command deletes an existing counter, usually one defined in an included
7839 \begin_layout Description
7840 \begin_inset Flex Code
7843 \begin_layout Plain Layout
7852 \begin_inset Flex Code
7855 \begin_layout Plain Layout
7865 このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
7868 \begin_layout Description
7869 \begin_inset Flex Code
7872 \begin_layout Plain Layout
7881 \begin_inset Flex Code
7884 \begin_layout Plain Layout
7894 このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
7897 \begin_layout Description
7898 \begin_inset Flex Code
7901 \begin_layout Plain Layout
7908 \begin_inset Flex Code
7911 \begin_layout Plain Layout
7919 ] このクラスによって生成されるファイル形式を示す文字列(
7923 ダイアログで定義される形のもの)。おもに、
7924 \begin_inset Flex Code
7927 \begin_layout Plain Layout
7934 \begin_inset Flex Code
7937 \begin_layout Plain Layout
7943 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
7944 \begin_inset Flex Code
7947 \begin_layout Plain Layout
7953 パラメーターに遭遇したときには、この文字列は、「
7954 \begin_inset Flex Code
7957 \begin_layout Plain Layout
7964 \begin_inset Flex Code
7967 \begin_layout Plain Layout
7978 \begin_layout Description
7979 \begin_inset Flex Code
7982 \begin_layout Plain Layout
7989 \begin_inset Flex Code
7992 \begin_layout Plain Layout
8003 \begin_inset Flex Code
8006 \begin_layout Plain Layout
8013 \begin_inset Flex Code
8016 \begin_layout Plain Layout
8022 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8025 \begin_layout Description
8026 \begin_inset Flex Code
8029 \begin_layout Plain Layout
8038 \begin_inset Flex Code
8041 \begin_layout Plain Layout
8050 \begin_inset Flex Code
8053 \begin_layout Plain Layout
8060 \begin_inset Flex Code
8063 \begin_layout Plain Layout
8070 \begin_inset Flex MenuItem
8073 \begin_layout Plain Layout
8074 文書\SpecialChar \menuseparator
8083 \begin_layout Description
8084 \begin_inset Flex Code
8087 \begin_layout Plain Layout
8093 LaTeX文書のプリアンブルを設定します。前に行った
8094 \begin_inset Flex Code
8097 \begin_layout Plain Layout
8104 \begin_inset Flex Code
8107 \begin_layout Plain Layout
8113 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8114 \begin_inset Flex Code
8117 \begin_layout Plain Layout
8124 \begin_inset Flex Code
8127 \begin_layout Plain Layout
8136 \begin_layout Description
8137 \begin_inset Flex Code
8140 \begin_layout Plain Layout
8147 \begin_inset Flex Code
8150 \begin_layout Plain Layout
8157 \begin_inset Flex Code
8160 \begin_layout Plain Layout
8169 \begin_inset Flex Code
8172 \begin_layout Plain Layout
8179 \begin_inset Flex Code
8182 \begin_layout Plain Layout
8188 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8189 \begin_inset Flex Code
8192 \begin_layout Plain Layout
8199 \begin_inset Flex Code
8202 \begin_layout Plain Layout
8208 ・\SpecialChar \ldots{}
8210 \begin_inset Flex Code
8213 \begin_layout Plain Layout
8220 \begin_inset Flex Code
8223 \begin_layout Plain Layout
8229 ・\SpecialChar \ldots{}
8233 \begin_inset space ~
8237 \begin_inset CommandInset ref
8239 reference "chap:List-of-functions"
8243 for the list of features.
8246 \begin_layout Description
8247 \begin_inset Flex Code
8250 \begin_layout Plain Layout
8257 \begin_inset Flex Code
8260 \begin_layout Plain Layout
8267 \begin_inset Flex Code
8270 \begin_layout Plain Layout
8276 で表されているモジュールの機能を提供することを示し、
8277 \begin_inset Flex Code
8280 \begin_layout Plain Layout
8287 \begin_inset Flex Code
8290 \begin_layout Plain Layout
8296 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8297 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8300 \begin_layout Description
8301 \begin_inset Flex Code
8304 \begin_layout Plain Layout
8311 \begin_inset Flex Code
8314 \begin_layout Plain Layout
8321 \begin_inset Flex Code
8324 \begin_layout Plain Layout
8330 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8334 \begin_inset space ~
8338 \begin_inset CommandInset ref
8340 reference "chap:List-of-functions"
8344 for the list of features
8349 \begin_layout Description
8350 \begin_inset Flex Code
8353 \begin_layout Plain Layout
8360 \begin_inset Flex Code
8363 \begin_layout Plain Layout
8369 ] 画面上の右余白の幅を指示する文字列。例:「
8370 \begin_inset Flex Code
8373 \begin_layout Plain Layout
8382 \begin_layout Description
8383 \begin_inset Flex Code
8386 \begin_layout Plain Layout
8393 \begin_inset Flex Code
8396 \begin_layout Plain Layout
8402 ] どの節区切りまで連番を振るかを指定します。LaTeXにおける
8403 \begin_inset Flex Code
8406 \begin_layout Plain Layout
8415 \begin_layout Description
8416 \begin_inset Flex Code
8419 \begin_layout Plain Layout
8428 \begin_inset Flex Code
8431 \begin_layout Plain Layout
8440 \begin_inset space \thinspace{}
8444 \begin_inset Flex Code
8447 \begin_layout Plain Layout
8453 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8454 \begin_inset Flex MenuItem
8457 \begin_layout Plain Layout
8458 文書\SpecialChar \menuseparator
8467 \begin_layout Description
8468 \begin_inset Flex Code
8471 \begin_layout Plain Layout
8480 \begin_inset Flex Code
8483 \begin_layout Plain Layout
8493 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8494 \begin_inset Flex Code
8497 \begin_layout Plain Layout
8504 \begin_inset Newline newline
8508 \begin_inset CommandInset ref
8510 reference "sub:段落様式-XHTML"
8517 \begin_layout Description
8518 \begin_inset Flex Code
8521 \begin_layout Plain Layout
8528 \begin_inset Flex Code
8531 \begin_layout Plain Layout
8538 \begin_inset Flex Code
8541 \begin_layout Plain Layout
8547 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8549 \begin_inset Flex Code
8552 \begin_layout Plain Layout
8561 \begin_layout Description
8562 \begin_inset Flex Code
8565 \begin_layout Plain Layout
8572 \begin_inset Flex Code
8575 \begin_layout Plain Layout
8584 \begin_inset Flex Code
8587 \begin_layout Plain Layout
8593 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8594 \begin_inset Flex Code
8597 \begin_layout Plain Layout
8604 \begin_inset Flex Code
8607 \begin_layout Plain Layout
8609 \begin_inset space ~
8617 」が指定されている最後のレイアウトの後に、
8618 \begin_inset Flex Code
8621 \begin_layout Plain Layout
8627 で指定したマクロ名を挿入することを意味します。
8628 \begin_inset Flex Code
8631 \begin_layout Plain Layout
8638 \begin_inset Flex Code
8641 \begin_layout Plain Layout
8643 \begin_inset space ~
8652 \begin_inset Flex Code
8655 \begin_layout Plain Layout
8661 で指定した環境でくるむ場合に対応します。
8664 \begin_layout Description
8665 \begin_inset Flex Code
8668 \begin_layout Plain Layout
8675 \begin_inset Flex Code
8678 \begin_layout Plain Layout
8684 ] どの節区切りまで目次に取り込むかを指定します。LaTeXの
8685 \begin_inset Flex Code
8688 \begin_layout Plain Layout
8697 \begin_layout Subsection
8698 \begin_inset Flex Code
8701 \begin_layout Plain Layout
8708 \begin_inset CommandInset label
8710 name "sub:ClassOptions"
8717 \begin_layout Standard
8718 \begin_inset Flex Code
8721 \begin_layout Plain Layout
8730 \begin_layout Description
8731 \begin_inset Flex Code
8734 \begin_layout Plain Layout
8741 \begin_inset Flex Code
8744 \begin_layout Plain Layout
8750 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
8751 \begin_inset Flex Code
8754 \begin_layout Plain Layout
8763 \begin_layout Description
8764 \begin_inset Flex Code
8767 \begin_layout Plain Layout
8773 XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC
8774 \begin_inset Quotes eld
8777 -//OASIS//DTD DocBook V4.2//EN
8778 \begin_inset Quotes erd
8784 \begin_layout Description
8785 \begin_inset Flex Code
8788 \begin_layout Plain Layout
8795 \begin_inset Flex Code
8798 \begin_layout Plain Layout
8805 \begin_inset Flex Code
8808 \begin_layout Plain Layout
8816 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
8819 \begin_layout Description
8820 \begin_inset Flex Code
8823 \begin_layout Plain Layout
8830 \begin_inset Flex Code
8833 \begin_layout Plain Layout
8834 文字列="empty|plain|headings|fancy"
8840 \begin_inset Flex Code
8843 \begin_layout Plain Layout
8852 \begin_layout Standard
8853 \begin_inset Flex Code
8856 \begin_layout Plain Layout
8863 \begin_inset Flex Code
8866 \begin_layout Plain Layout
8875 \begin_layout Subsection
8877 \begin_inset CommandInset label
8886 \begin_layout Standard
8891 \begin_layout Plain Layout
8892 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
8900 \begin_layout LyX-Code
8907 \begin_layout LyX-Code
8911 \begin_layout LyX-Code
8915 \begin_layout Standard
8916 ここでは、以下のコマンドを使用することができます。
8919 \begin_layout Description
8920 \begin_inset Flex Code
8923 \begin_layout Plain Layout
8930 \begin_inset Flex Code
8933 \begin_layout Plain Layout
8938 , left, right, center
8946 \begin_layout Description
8947 \begin_inset Flex Code
8950 \begin_layout Plain Layout
8957 \begin_inset Flex Code
8960 \begin_layout Plain Layout
8965 , left, right, center
8970 ] 使用できる揃えのコンマ区切りリスト(LaTeXスタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃え
8974 \begin_layout Description
8975 \begin_inset Flex Code
8978 \begin_layout Plain Layout
8985 \begin_inset Flex Code
8988 \begin_layout Plain Layout
8994 宣言をすべて、完全に上書きしますので注意してください。「
8995 \begin_inset Flex Code
8998 \begin_layout Plain Layout
9004 」で閉じる必要があります。これの利用法についての詳細は、第
9005 \begin_inset CommandInset ref
9007 reference "sub:段落様式の国際化"
9014 \begin_layout Description
9015 \begin_inset Flex Code
9018 \begin_layout Plain Layout
9025 \begin_inset Flex Code
9028 \begin_layout Plain Layout
9038 \begin_layout Plain Layout
9039 ここで「浮動小数点型」とは1.5のような実数を指します。
9044 このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
9048 \begin_layout Description
9049 \begin_inset Flex Code
9052 \begin_layout Plain Layout
9059 \begin_inset Flex Code
9062 \begin_layout Plain Layout
9068 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
9069 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
9072 \begin_layout Description
9073 \begin_inset Flex Code
9076 \begin_layout Plain Layout
9082 XMLコマンドの深度。XML型の書式でのみ使用されます。
9085 \begin_layout Description
9086 \begin_inset Flex Code
9089 \begin_layout Plain Layout
9096 \begin_inset Flex Code
9099 \begin_layout Plain Layout
9105 ] 既存の様式から、すべての機能を現在の様式にコピーします。
9108 \begin_layout Description
9109 \begin_inset Flex Code
9112 \begin_layout Plain Layout
9121 \begin_inset Flex Code
9124 \begin_layout Plain Layout
9138 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
9142 \begin_layout Plain Layout
9143 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。LyXの特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可
9152 \begin_layout Description
9153 \begin_inset Flex Code
9156 \begin_layout Plain Layout
9163 \begin_inset Flex Code
9166 \begin_layout Plain Layout
9171 , Box, Filled_Box, Static
9177 \begin_inset Flex Code
9180 \begin_layout Plain Layout
9187 \begin_inset Flex Code
9190 \begin_layout Plain Layout
9197 \begin_inset Flex Code
9200 \begin_layout Plain Layout
9207 \begin_inset Flex Code
9210 \begin_layout Plain Layout
9216 のいずれかの場合は、段落群の最後)に置くラベル。
9217 \begin_inset Flex Code
9220 \begin_layout Plain Layout
9227 \begin_inset Flex Code
9230 \begin_layout Plain Layout
9237 \begin_inset Flex Code
9240 \begin_layout Plain Layout
9246 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
9247 \begin_inset Flex Code
9250 \begin_layout Plain Layout
9259 \begin_layout Description
9260 \begin_inset Flex Code
9263 \begin_layout Plain Layout
9270 \begin_inset Flex Code
9273 \begin_layout Plain Layout
9280 \begin_inset Flex Code
9283 \begin_layout Plain Layout
9290 \begin_inset Flex Code
9293 \begin_layout Plain Layout
9302 \begin_layout Description
9303 \begin_inset Flex Code
9306 \begin_layout Plain Layout
9317 \begin_inset CommandInset ref
9319 reference "sub:フォント指定"
9323 節を参照。このフォントを定義すると、自動的に
9324 \begin_inset Flex Code
9327 \begin_layout Plain Layout
9333 も同じ値で定義されることに注意してください。したがって、
9334 \begin_inset Flex Code
9337 \begin_layout Plain Layout
9343 も同時に定義したい場合には、これを先に定義してください。
9346 \begin_layout Description
9347 \begin_inset Flex Code
9350 \begin_layout Plain Layout
9359 \begin_inset Flex Code
9362 \begin_layout Plain Layout
9371 \begin_inset space \thinspace{}
9375 \begin_inset Flex Code
9378 \begin_layout Plain Layout
9384 ] LyXは、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体
9385 はとても素晴らしいことですが、たとえばプログラムコードや生のLaTeXコードを入力しようとするときなどに、煩わしくなることがあります。このことから、
9386 \begin_inset Flex Code
9389 \begin_layout Plain Layout
9395 を有効にすることが認められています。LyXは、LaTeXモード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
9398 \begin_layout Description
9399 \begin_inset Flex Code
9402 \begin_layout Plain Layout
9408 これらのタグは、XHTML出力で使用されます。第
9409 \begin_inset CommandInset ref
9411 reference "sub:段落様式-XHTML"
9418 \begin_layout Description
9419 \begin_inset Flex Code
9422 \begin_layout Plain Layout
9428 [[FIXME]] (XML型書式でのみ使用されます。)
9431 \begin_layout Description
9432 \begin_inset Flex Code
9435 \begin_layout Plain Layout
9444 \begin_inset Flex Code
9447 \begin_layout Plain Layout
9456 \begin_inset space \thinspace{}
9460 \begin_inset Flex Code
9463 \begin_layout Plain Layout
9470 \begin_inset Flex Code
9473 \begin_layout Plain Layout
9479 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
9481 \begin_inset Flex Code
9484 \begin_layout Plain Layout
9491 \begin_inset Flex Code
9494 \begin_layout Plain Layout
9501 \begin_inset Flex Code
9504 \begin_layout Plain Layout
9513 \begin_layout Description
9514 \begin_inset Flex Code
9517 \begin_layout Plain Layout
9526 \begin_inset Flex Code
9529 \begin_layout Plain Layout
9538 \begin_inset space \thinspace{}
9542 \begin_inset Flex Code
9545 \begin_layout Plain Layout
9552 \begin_inset Flex Code
9555 \begin_layout Plain Layout
9561 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
9562 \begin_inset Flex Code
9565 \begin_layout Plain Layout
9572 \begin_inset Flex Code
9575 \begin_layout Plain Layout
9584 \begin_layout Description
9585 \begin_inset Flex Code
9588 \begin_layout Plain Layout
9595 \begin_inset Flex Code
9598 \begin_layout Plain Layout
9604 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
9605 \begin_inset Flex Code
9608 \begin_layout Plain Layout
9614 だけ分離されます。しかし、その環境の項目全体は、さらにこの
9615 \begin_inset Flex Code
9618 \begin_layout Plain Layout
9631 \begin_layout Description
9632 \begin_inset Flex Code
9635 \begin_layout Plain Layout
9641 [[FIXME]] (XML型書式でのみ使用されます。)
9644 \begin_layout Description
9645 \begin_inset Flex Code
9648 \begin_layout Plain Layout
9657 \begin_inset Flex Code
9660 \begin_layout Plain Layout
9669 \begin_inset space \thinspace{}
9673 \begin_inset Flex Code
9676 \begin_layout Plain Layout
9682 ] 段落を空のままにすると、LaTeX出力が空になってしまうので、通常、LyXは段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場
9683 合が存在します。たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを
9684 実際には文章を含まないある種の改行として使用することもあります。
9687 \begin_layout Description
9688 \begin_inset Flex Code
9691 \begin_layout Plain Layout
9698 \begin_inset Flex Code
9701 \begin_layout Plain Layout
9707 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
9708 \begin_inset Flex Code
9711 \begin_layout Plain Layout
9718 \begin_inset Newline linebreak
9722 \begin_inset Flex Code
9725 \begin_layout Plain Layout
9726 Centered_Top_Environment
9734 \begin_layout Description
9735 \begin_inset Flex Code
9738 \begin_layout Plain Layout
9745 \begin_inset Flex Code
9748 \begin_layout Plain Layout
9754 ] 自動連番に使われるカウンタ名(詳しくは第
9755 \begin_inset CommandInset ref
9757 reference "sub:カウンタ"
9762 \begin_inset Newline newline
9766 \begin_inset Flex Code
9769 \begin_layout Plain Layout
9776 \begin_inset Flex Code
9779 \begin_layout Plain Layout
9789 です。この場合には、この様式が出現するたびにカウンタが増えます。
9790 \begin_inset Newline newline
9794 \begin_inset Flex Code
9797 \begin_layout Plain Layout
9804 \begin_inset Flex Code
9807 \begin_layout Plain Layout
9813 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
9814 \begin_inset Flex Code
9817 \begin_layout Plain Layout
9823 」と宣言したものとしましょう。すると、LaTeXにおけるのと同様、実際に使われるカウンタは、
9824 \begin_inset Flex Code
9827 \begin_layout Plain Layout
9834 \begin_inset Flex Code
9837 \begin_layout Plain Layout
9844 \begin_inset Flex Code
9847 \begin_layout Plain Layout
9854 \begin_inset Flex Code
9857 \begin_layout Plain Layout
9863 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
9864 \begin_inset Newline newline
9868 \begin_inset CommandInset ref
9870 reference "sub:カウンタ"
9877 \begin_layout Description
9878 \begin_inset Flex Code
9881 \begin_layout Plain Layout
9888 \begin_inset CommandInset ref
9890 reference "sub:フォント指定"
9897 \begin_layout Description
9898 \begin_inset Flex Code
9901 \begin_layout Plain Layout
9908 \begin_inset Flex Code
9911 \begin_layout Plain Layout
9917 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
9920 \begin_layout Description
9921 \begin_inset Flex Code
9924 \begin_layout Plain Layout
9931 \begin_inset Flex Code
9934 \begin_layout Plain Layout
9942 Text that indicates the amount of
9944 ラベルと本文テキストの間の水平余白。本文テキストの上に来ないラベルにのみ使用されます。
9947 \begin_layout Description
9948 \begin_inset Flex Code
9951 \begin_layout Plain Layout
9958 \begin_inset Flex Code
9961 \begin_layout Plain Layout
9968 \begin_inset Flex Code
9971 \begin_layout Plain Layout
9978 \begin_inset Flex Code
9981 \begin_layout Plain Layout
9988 \begin_inset CommandInset ref
9990 reference "sub:カウンタ"
9994 節に述べられている特別な整形コマンドを含めることができます。
9997 \begin_layout Description
9998 \begin_inset Flex Code
10001 \begin_layout Plain Layout
10002 LabelStringAppendix
10008 \begin_inset Flex Code
10011 \begin_layout Plain Layout
10018 \begin_inset Flex Code
10021 \begin_layout Plain Layout
10028 \begin_inset Flex Code
10031 \begin_layout Plain Layout
10038 \begin_inset Flex Code
10041 \begin_layout Plain Layout
10042 LabelStringAppendix
10047 をもリセットすることに注意してください。
10050 \begin_layout Description
10051 \begin_inset Flex Code
10054 \begin_layout Plain Layout
10060 [FIXME] (XML型書式でのみ使用されます。)
10063 \begin_layout Description
10064 \begin_inset Flex Code
10067 \begin_layout Plain Layout
10074 \begin_inset Flex Code
10077 \begin_layout Plain Layout
10082 , Manual, Static, Top_Environment,
10083 \begin_inset Newline newline
10086 Centered_Top_Environment, Counter, Sensitive, Enumerate,
10087 \begin_inset Newline newline
10090 Itemize, Bibliography
10099 \begin_layout Description
10100 \begin_inset Flex Code
10103 \begin_layout Plain Layout
10109 は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
10112 \begin_layout Description
10113 \begin_inset Flex Code
10116 \begin_layout Plain Layout
10123 \begin_inset Flex Code
10126 \begin_layout Plain Layout
10132 で宣言したものであることを示します。これは「静的」であることに注意してください。
10135 \begin_layout Description
10136 \begin_inset Flex Code
10139 \begin_layout Plain Layout
10146 \begin_inset Flex Code
10149 \begin_layout Plain Layout
10150 Centered_Top_Environment
10156 \begin_inset Flex Code
10159 \begin_layout Plain Layout
10165 の特別な場合です。ラベルは段落の上に印字されるのですが、それは単一の環境の上か、このレイアウトを持つ連続した段落群の上だけに印字されます。たとえば、
10166 \begin_inset Flex MenuItem
10169 \begin_layout Plain Layout
10178 \begin_layout Description
10179 \begin_inset Flex Code
10182 \begin_layout Plain Layout
10188 はキャプションラベルの「図」や「表」の特別な場合です。
10189 \begin_inset Flex Code
10192 \begin_layout Plain Layout
10198 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
10199 Type N」にハードコードされています。
10201 For the case that a caption is inserted outside of a float
10202 \begin_inset Flex Code
10205 \begin_layout Plain Layout
10213 should be set to e.
10214 \begin_inset space \thinspace{}
10218 \begin_inset space \space{}
10222 \begin_inset Quotes eld
10226 \begin_inset Quotes erd
10232 \begin_layout Description
10233 \begin_inset Flex Code
10236 \begin_layout Plain Layout
10242 ラベル型は、自動的に連番が付されるラベルを定義します。
10243 \begin_inset Flex Code
10246 \begin_layout Plain Layout
10252 は、それが含むカウンタ参照をすべて解決するために展開されます。これは、たとえば
10253 \begin_inset Flex Code
10256 \begin_layout Plain Layout
10267 \begin_inset CommandInset ref
10269 reference "sub:カウンタ"
10276 \begin_layout Description
10277 \begin_inset Flex Code
10280 \begin_layout Plain Layout
10286 は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
10290 \begin_layout Description
10291 \begin_inset Flex Code
10294 \begin_layout Plain Layout
10300 は、各階層でさまざまなブリットを生成します。これもハードコードされています。
10303 \begin_layout Description
10304 \begin_inset Flex Code
10307 \begin_layout Plain Layout
10314 \begin_inset Flex Code
10317 \begin_layout Plain Layout
10318 LatexType BibEnvironment
10327 \begin_layout Description
10328 \begin_inset Flex Code
10331 \begin_layout Plain Layout
10338 \begin_inset Flex Code
10341 \begin_layout Plain Layout
10347 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、第
10348 \begin_inset CommandInset ref
10350 reference "sub:段落様式の国際化"
10357 \begin_layout Description
10358 \begin_inset Flex Code
10361 \begin_layout Plain Layout
10370 \begin_inset Flex Code
10373 \begin_layout Plain Layout
10383 対応するLaTeXの名称です。環境名かコマンド名を指します。
10386 \begin_layout Description
10387 \begin_inset Flex Code
10390 \begin_layout Plain Layout
10399 \begin_inset Flex Code
10402 \begin_layout Plain Layout
10413 \begin_inset Flex Code
10416 \begin_layout Plain Layout
10422 の非必須パラメータです。このパラメータは、LyX内部から変更することはできません。
10425 \begin_layout Description
10426 \begin_inset Flex Code
10429 \begin_layout Plain Layout
10436 \begin_inset Flex Code
10439 \begin_layout Plain Layout
10444 , Command, Environment, Item_Environment,
10445 \begin_inset Newline newline
10448 List_Environment, Bib_Environment
10453 ] レイアウトがどのようにLaTeXに変換されるべきかを示します。
10457 \begin_layout Plain Layout
10458 これらのルールはDocBookクラスにも適用されるので、
10459 \begin_inset Flex Code
10462 \begin_layout Plain Layout
10468 の名称は、少しミスリーディングかもしれません。特定の例については、DocBook
10471 \begin_inset Flex Code
10474 \begin_layout Plain Layout
10493 \begin_layout Description
10494 \begin_inset Flex Code
10497 \begin_layout Plain Layout
10506 \begin_layout Description
10507 \begin_inset Flex Code
10510 \begin_layout Plain Layout
10517 \begin_inset Flex Code
10520 \begin_layout Plain Layout
10527 {\SpecialChar \ldots{}
10536 \begin_layout Description
10537 \begin_inset Flex Code
10540 \begin_layout Plain Layout
10547 \begin_inset Flex Code
10550 \begin_layout Plain Layout
10557 }\SpecialChar \ldots{}
10572 \begin_layout Description
10573 \begin_inset Flex Code
10576 \begin_layout Plain Layout
10583 \begin_inset Flex Code
10586 \begin_layout Plain Layout
10593 \begin_inset Flex Code
10596 \begin_layout Plain Layout
10604 がこの環境のすべての段落に付けられるところだけが異なっています。
10607 \begin_layout Description
10608 \begin_inset Flex Code
10611 \begin_layout Plain Layout
10618 \begin_inset Flex Code
10621 \begin_layout Plain Layout
10628 \begin_inset Flex Code
10631 \begin_layout Plain Layout
10637 が環境の引数として渡されるところだけが異なっています。
10638 \begin_inset Flex Code
10641 \begin_layout Plain Layout
10648 \begin_inset Flex MenuItem
10651 \begin_layout Plain Layout
10652 編集\SpecialChar \menuseparator
10661 \begin_layout Description
10664 \begin_inset Flex Code
10667 \begin_layout Plain Layout
10676 \begin_inset Flex Code
10679 \begin_layout Plain Layout
10687 but adds additionally the necessary mandatory argument (the longest label)
10688 to the begin statement of the bibliography environment:
10689 \begin_inset Newline newline
10693 \begin_inset Flex Code
10696 \begin_layout Plain Layout
10701 begin{thebibliography}{99}
10706 It is therefore only useful for bibliography environments.
10707 The default longest label
10708 \begin_inset Quotes eld
10712 \begin_inset Quotes erd
10715 can be changed by the user in the paragraph settings of a bibliography
10719 \begin_layout Standard
10720 上記最後のいくつかをまとめると、LaTeX出力は、LaTeX型に依存して
10723 \begin_layout LyX-Code
10726 LatexName[LatexParam]{\SpecialChar \ldots{}
10730 \begin_layout Standard
10734 \begin_layout LyX-Code
10737 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
10743 \begin_layout Standard
10748 \begin_layout Description
10749 \begin_inset Flex Code
10752 \begin_layout Plain Layout
10759 \begin_inset Flex Code
10762 \begin_layout Plain Layout
10768 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
10769 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
10772 をかけて加えられます。このパラメータは、
10773 \begin_inset Flex Code
10776 \begin_layout Plain Layout
10783 \begin_inset Flex Code
10786 \begin_layout Plain Layout
10793 \begin_inset Flex Code
10796 \begin_layout Plain Layout
10802 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
10803 \begin_inset Newline newline
10807 \begin_inset Flex Code
10810 \begin_layout Plain Layout
10816 」と指定すると、段落を通常フォントの「
10817 \begin_inset Flex Code
10820 \begin_layout Plain Layout
10826 」の幅だけ行頭下げを行います。文字列の前に「
10827 \begin_inset Flex Code
10830 \begin_layout Plain Layout
10836 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
10839 \begin_layout Description
10840 \begin_inset Flex Code
10843 \begin_layout Plain Layout
10850 \begin_inset Flex Code
10853 \begin_layout Plain Layout
10858 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10864 \begin_inset Newline newline
10871 \begin_layout Description
10872 \begin_inset Flex Code
10875 \begin_layout Plain Layout
10884 \begin_layout Description
10885 \begin_inset Flex Code
10888 \begin_layout Plain Layout
10895 \begin_inset Flex MenuItem
10898 \begin_layout Plain Layout
10899 編集\SpecialChar \menuseparator
10905 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
10908 \begin_layout Description
10909 \begin_inset Flex Code
10912 \begin_layout Plain Layout
10918 は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
10919 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
10922 \begin_layout Description
10923 \begin_inset Flex Code
10926 \begin_layout Plain Layout
10932 は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
10935 \begin_layout Description
10936 \begin_inset Flex Code
10939 \begin_layout Plain Layout
10945 は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
10949 \begin_layout Description
10950 \begin_inset Flex Code
10953 \begin_layout Plain Layout
10960 \begin_inset Flex Code
10963 \begin_layout Plain Layout
10972 \begin_inset space \thinspace{}
10976 \begin_inset Flex Code
10979 \begin_layout Plain Layout
10985 ] このレイアウト中の脆弱なコマンドが
10986 \begin_inset Flex Code
10989 \begin_layout Plain Layout
10997 されるべきか否か(註:これはこのコマンド自体が
10998 \begin_inset Flex Code
11001 \begin_layout Plain Layout
11016 \begin_layout Description
11017 \begin_inset Flex Code
11020 \begin_layout Plain Layout
11027 \begin_inset Flex Code
11030 \begin_layout Plain Layout
11037 \begin_inset space \thinspace{}
11041 \begin_inset Flex Code
11044 \begin_layout Plain Layout
11053 \begin_inset Flex Code
11056 \begin_layout Plain Layout
11066 )に変換するか否か。LyX中でLaTeX編集をやりやすくするために、変換は無効にすることができます。
11069 \begin_layout Description
11070 \begin_inset Flex Code
11073 \begin_layout Plain Layout
11080 \begin_inset Flex Code
11083 \begin_layout Plain Layout
11092 \begin_inset space \thinspace{}
11096 \begin_inset Flex Code
11099 \begin_layout Plain Layout
11105 ] 次の段落に最初の行の行頭下げを許すか否か。
11106 \begin_inset Flex Code
11109 \begin_layout Plain Layout
11116 \begin_inset Flex Code
11119 \begin_layout Plain Layout
11125 は望むならば行頭下げできることを意味します。
11128 \begin_layout Description
11129 \begin_inset Flex Code
11132 \begin_layout Plain Layout
11141 \begin_inset Flex Code
11144 \begin_layout Plain Layout
11154 このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
11157 \begin_layout Description
11158 \begin_inset Flex Code
11161 \begin_layout Plain Layout
11168 \begin_inset Flex Code
11171 \begin_layout Plain Layout
11177 ] このレイアウトに使用することのできる非必須引数の数。節見出しのようなものに有用であり、LaTeXでのみ意味を持ちます。出力時には、非必須引数は、すべての必須
11178 引数の前に来ることに注意してください(以下参照)。つまり、
11182 \begin_layout LyX-Code
11185 mycmd[非必須引数1]{必須引数1}{段落の内容}
11188 \begin_layout Standard
11192 \begin_layout LyX-Code
11195 mycmd[非必須引数1]{必須引数1}[非必須引数2]{段落の内容}
11198 \begin_layout Standard
11199 のようなコマンドは、TeXコード(これを使えば何でもできます)を使用することなしには、生成することができません。
11203 \begin_layout Description
11204 \begin_inset Flex Code
11207 \begin_layout Plain Layout
11214 \begin_inset Flex Code
11217 \begin_layout Plain Layout
11226 \begin_inset space \thinspace{}
11230 \begin_inset Flex Code
11233 \begin_layout Plain Layout
11239 ] LaTeX出力中で、段落を空行ではなく、改行で区切るよう指定します。
11240 \begin_inset Flex Code
11243 \begin_layout Plain Layout
11249 と併用すれば、(TeXコードを使用したときのように)テキストエディタをエミュレートすることができます。
11252 \begin_layout Description
11253 \begin_inset Flex Code
11256 \begin_layout Plain Layout
11263 \begin_inset Flex Code
11266 \begin_layout Plain Layout
11272 ] 段落の最初の行の行頭下げ。レイアウトによっては
11273 \begin_inset Flex Code
11276 \begin_layout Plain Layout
11282 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
11283 \begin_inset Flex Code
11286 \begin_layout Plain Layout
11292 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
11293 \begin_inset Flex Code
11296 \begin_layout Plain Layout
11303 \begin_inset Flex Code
11306 \begin_layout Plain Layout
11312 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
11315 \begin_layout Description
11316 \begin_inset Flex Code
11319 \begin_layout Plain Layout
11326 \begin_inset Flex Code
11329 \begin_layout Plain Layout
11335 ] このレイアウトの2段落間の垂直余白。
11338 \begin_layout Description
11339 \begin_inset Flex Code
11342 \begin_layout Plain Layout
11349 \begin_inset Flex Code
11352 \begin_layout Plain Layout
11358 ] LyXでは、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ
11359 」を選択した際には、LaTeX型「段落」レイアウトの
11360 \begin_inset Flex Code
11363 \begin_layout Plain Layout
11370 \begin_inset Flex Code
11373 \begin_layout Plain Layout
11379 引数分だけ引き離されます。垂直余白は、
11380 \begin_inset Flex Code
11383 \begin_layout Plain Layout
11389 を標準フォントでの1行の高さとすると、
11390 \begin_inset Flex Code
11393 \begin_layout Plain Layout
11400 \begin_inset Formula $\times$
11404 \begin_inset Flex Code
11407 \begin_layout Plain Layout
11413 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
11416 \begin_layout Description
11417 \begin_inset Flex Code
11420 \begin_layout Plain Layout
11429 \begin_inset Flex Code
11432 \begin_layout Plain Layout
11441 \begin_inset space \thinspace{}
11445 \begin_inset Flex Code
11448 \begin_layout Plain Layout
11454 ] この段落の内容が、LaTeXが必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
11457 \begin_layout Description
11458 \begin_inset Flex Code
11461 \begin_layout Plain Layout
11467 この様式が使用されたときに、LaTeXプリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用
11469 \begin_inset Flex Code
11472 \begin_layout Plain Layout
11481 \begin_layout Description
11482 \begin_inset Flex Code
11485 \begin_layout Plain Layout
11492 \begin_inset Flex Code
11495 \begin_layout Plain Layout
11501 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
11504 \begin_layout Description
11505 \begin_inset Flex Code
11508 \begin_layout Plain Layout
11515 \begin_inset Flex Code
11518 \begin_layout Plain Layout
11524 ] このレイアウトに対応するLaTeXコマンドやLaTeX環境が予期している、必須引数の数。コマンドの場合には、段落の内容自体に関連付けられている引数
11528 、必要な引数の数のことです。これらの引数は、実際には渡されなくても構いません。必要な場合は、LyXが空の引数を生成します。非必須引数は、必須引数の前に出力される
11529 ことに注意してください。詳細については、上記
11530 \begin_inset Flex Code
11533 \begin_layout Plain Layout
11542 \begin_layout Description
11543 \begin_inset Flex Code
11546 \begin_layout Plain Layout
11553 \begin_inset Flex Code
11556 \begin_layout Plain Layout
11564 Whether the style requires the feature
11565 \begin_inset Flex Code
11568 \begin_layout Plain Layout
11577 See the description of
11578 \begin_inset Flex Code
11581 \begin_layout Plain Layout
11592 \begin_inset space ~
11596 \begin_inset CommandInset ref
11598 reference "sub:汎用テキストクラスパラメータ"
11604 ) for information on `features'
11609 \begin_layout Description
11610 \begin_inset Flex Code
11613 \begin_layout Plain Layout
11620 \begin_inset Flex Code
11623 \begin_layout Plain Layout
11630 \begin_inset Flex Code
11633 \begin_layout Plain Layout
11642 \begin_layout Description
11643 \begin_inset Flex Code
11646 \begin_layout Plain Layout
11653 \begin_inset Flex Code
11656 \begin_layout Plain Layout
11665 \begin_inset Flex Code
11668 \begin_layout Plain Layout
11675 \begin_inset Flex Code
11678 \begin_layout Plain Layout
11685 \begin_inset Flex Code
11688 \begin_layout Plain Layout
11690 \begin_inset space ~
11706 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
11707 \begin_inset Flex Code
11710 \begin_layout Plain Layout
11717 \begin_inset Flex Code
11720 \begin_layout Plain Layout
11727 \begin_inset Flex Code
11730 \begin_layout Plain Layout
11736 は、それぞれ乗数1・1.25・1.667に対応します。引数
11737 \begin_inset Flex Code
11740 \begin_layout Plain Layout
11746 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
11747 \begin_inset Flex Code
11750 \begin_layout Plain Layout
11761 \begin_inset Flex Code
11764 \begin_layout Plain Layout
11770 パッケージを使用した、限定的なLaTeXコードを生成することを意味することにご注意ください。
11773 \begin_layout Description
11774 \begin_inset Flex Code
11777 \begin_layout Plain Layout
11784 \begin_inset Flex Code
11787 \begin_layout Plain Layout
11794 \begin_inset space \thinspace{}
11798 \begin_inset Flex Code
11801 \begin_layout Plain Layout
11807 ] この様式の段落をスペルチェックするか否か。既定値は真です。
11810 \begin_layout Description
11811 \begin_inset Flex Code
11814 \begin_layout Plain Layout
11821 \begin_inset CommandInset ref
11823 reference "sub:フォント指定"
11830 \begin_layout Description
11831 \begin_inset Flex Code
11834 \begin_layout Plain Layout
11841 \begin_inset Flex Code
11844 \begin_layout Plain Layout
11850 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
11853 \begin_layout Description
11854 \begin_inset Flex Code
11857 \begin_layout Plain Layout
11864 \begin_inset Flex Code
11867 \begin_layout Plain Layout
11873 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
11877 \begin_layout Subsection
11878 \begin_inset CommandInset label
11880 name "sub:段落様式の国際化"
11887 \begin_layout Standard
11888 LyXは、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用さ
11889 れませんでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
11893 1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
11896 \begin_layout Standard
11898 \begin_inset Flex MenuItem
11901 \begin_layout Plain Layout
11907 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
11908 \begin_inset Flex MenuItem
11911 \begin_layout Plain Layout
11918 \begin_inset Flex MenuItem
11921 \begin_layout Plain Layout
11927 を使用することができます。以下の抜粋(
11928 \begin_inset Flex MenuItem
11931 \begin_layout Plain Layout
11937 より)は、これがどう動作するかを示すものです。
11940 \begin_layout LyX-Code
11945 \begin_layout LyX-Code
11948 theoremstyle{remark}
11951 \begin_layout LyX-Code
11954 newtheorem{claim}[thm]{
11961 \begin_layout LyX-Code
11965 \begin_layout LyX-Code
11969 \begin_layout LyX-Code
11974 claimname}{_(Claim)}
11977 \begin_layout LyX-Code
11981 \begin_layout LyX-Code
11985 \begin_layout LyX-Code
11994 claimname}{_(Claim)}}
11997 \begin_layout LyX-Code
12002 \begin_layout Standard
12004 \begin_inset Flex MenuItem
12007 \begin_layout Plain Layout
12014 \begin_inset Flex MenuItem
12017 \begin_layout Plain Layout
12023 タグ内には、有効なLaTeXコードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための
12025 \begin_inset Flex Code
12028 \begin_layout Plain Layout
12037 \begin_inset Flex Code
12040 \begin_layout Plain Layout
12051 \begin_layout Standard
12052 \begin_inset Flex Code
12055 \begin_layout Plain Layout
12061 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
12062 \begin_inset Flex Code
12065 \begin_layout Plain Layout
12071 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
12072 \begin_inset Flex Code
12075 \begin_layout Plain Layout
12081 が使用されていることです。これは、LyXがLaTeX出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
12084 \begin_layout Standard
12085 \begin_inset Flex Code
12088 \begin_layout Plain Layout
12095 \begin_inset Flex Code
12098 \begin_layout Plain Layout
12104 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
12106 \begin_inset Flex Code
12109 \begin_layout Plain Layout
12115 の引数は、その当該言語への翻訳で置き換えられ、
12116 \begin_inset Flex Code
12119 \begin_layout Plain Layout
12125 は言語名(babelパッケージで使用されるもの)で置き換えられます。
12128 \begin_layout Standard
12129 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
12132 \begin_layout LyX-Code
12141 claimname}{Affirmation}}
12142 \begin_inset Newline newline
12153 claimname}{Behauptung}}
12154 \begin_inset Newline newline
12161 claimname}{Behauptung}
12164 \begin_layout Standard
12166 \begin_inset Flex Code
12169 \begin_layout Plain Layout
12175 は協力して、出力に正しい文字列を生成します。
12178 \begin_layout Standard
12179 ここで注意しなくてはならない重要な点は、翻訳は、操作画面の国際化に使われるのと同じ機構を通じて、LyX自身によって提供されるということです。つまり、ユーザー作成
12180 のレイアウトファイルに入力された文字列は、LyXの国際化ルーチンでは取り扱われないので、
12181 \begin_inset Flex MenuItem
12184 \begin_layout Plain Layout
12191 \begin_inset Flex MenuItem
12194 \begin_layout Plain Layout
12200 は、事実上、LyXとともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的にLyXに同梱
12201 させようという意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。
12204 \begin_layout Subsection
12206 \begin_inset CommandInset label
12215 \begin_layout Standard
12216 LyX第1.3.0版以来、テキストクラス自体の中でフロート(
12217 \begin_inset Flex MenuItem
12220 \begin_layout Plain Layout
12227 \begin_inset Flex MenuItem
12230 \begin_layout Plain Layout
12236 ・\SpecialChar \ldots{}
12237 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
12238 \begin_inset Flex Code
12241 \begin_layout Plain Layout
12247 ファイルに含まれているので、作業中のレイアウトファイルに
12250 \begin_layout LyX-Code
12251 Input stdfloats.inc
12254 \begin_layout Standard
12255 と加えるだけで済むことも多いでしょう。LyXに同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つ
12259 \begin_layout Description
12260 \begin_inset Flex Code
12263 \begin_layout Plain Layout
12270 \begin_inset Flex Code
12273 \begin_layout Plain Layout
12280 \begin_inset Quotes erd
12284 \begin_inset Quotes erd
12287 ] 図などのリストを含む外部ファイルのファイル拡張子名。LaTeXがキャプションを書き込むファイルです。
12290 \begin_layout Description
12291 \begin_inset Flex Code
12294 \begin_layout Plain Layout
12301 \begin_inset Flex Code
12304 \begin_layout Plain Layout
12311 \begin_inset Quotes erd
12315 \begin_inset Quotes erd
12318 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
12321 \begin_layout Description
12322 \begin_inset Flex Code
12325 \begin_layout Plain Layout
12331 これらは、XHTML出力で使用されます。第
12332 \begin_inset CommandInset ref
12334 reference "sec:XHTML出力のタグ"
12341 \begin_layout Description
12342 \begin_inset Flex Code
12345 \begin_layout Plain Layout
12352 \begin_inset Flex Code
12355 \begin_layout Plain Layout
12364 \begin_inset space \thinspace{}
12368 \begin_inset Flex Code
12371 \begin_layout Plain Layout
12377 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは
12382 \begin_inset Flex Code
12385 \begin_layout Plain Layout
12391 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
12392 \begin_inset Flex Code
12395 \begin_layout Plain Layout
12402 \begin_inset Flex Code
12405 \begin_layout Plain Layout
12411 を使用します。LaTeXドキュメントクラス中に既に定義されているときには、
12412 \begin_inset Flex Code
12415 \begin_layout Plain Layout
12424 \begin_layout Description
12425 \begin_inset Flex Code
12428 \begin_layout Plain Layout
12435 \begin_inset Flex Code
12438 \begin_layout Plain Layout
12445 \begin_inset Quotes erd
12449 \begin_inset Quotes erd
12452 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
12455 \begin_inset Flex Code
12458 \begin_layout Plain Layout
12464 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
12469 \begin_inset Flex Code
12472 \begin_layout Plain Layout
12478 が真の時は、標準的な方法が存在するので、これは無視されます。
12481 \begin_layout Description
12482 \begin_inset Flex Code
12485 \begin_layout Plain Layout
12492 \begin_inset Flex Code
12495 \begin_layout Plain Layout
12502 \begin_inset Quotes erd
12506 \begin_inset Quotes erd
12509 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。LyX中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La
12510 TeXに渡され、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
12513 \begin_layout Description
12514 \begin_inset Flex Code
12517 \begin_layout Plain Layout
12524 \begin_inset Flex Code
12527 \begin_layout Plain Layout
12534 \begin_inset Quotes erd
12538 \begin_inset Quotes erd
12541 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。
12546 \begin_inset Flex Code
12549 \begin_layout Plain Layout
12560 \begin_inset Flex Code
12563 \begin_layout Plain Layout
12569 」と指定されていれば、フロートは章ごとに番号が振り直されます。
12572 \begin_layout Description
12573 \begin_inset Flex Code
12576 \begin_layout Plain Layout
12583 \begin_inset Flex Code
12586 \begin_layout Plain Layout
12593 \begin_inset Quotes erd
12597 \begin_inset Quotes erd
12600 ] このクラスのフロートの既定の配置法。文字列は、標準的なLaTeX表記に従い、
12601 \begin_inset Flex Code
12604 \begin_layout Plain Layout
12611 \begin_inset Flex Code
12614 \begin_layout Plain Layout
12621 \begin_inset Flex Code
12624 \begin_layout Plain Layout
12631 \begin_inset Flex Code
12634 \begin_layout Plain Layout
12644 \begin_layout Plain Layout
12645 LaTeX同様、文字列中でのこれらの文字の順序は関係ありません。
12651 \begin_inset Flex Code
12654 \begin_layout Plain Layout
12660 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
12661 \begin_inset Flex Code
12664 \begin_layout Plain Layout
12670 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
12672 \begin_inset Flex Code
12675 \begin_layout Plain Layout
12684 \begin_layout Description
12685 \begin_inset Flex Code
12688 \begin_layout Plain Layout
12695 \begin_inset Flex Code
12698 \begin_layout Plain Layout
12704 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
12705 \begin_inset Flex Code
12708 \begin_layout Plain Layout
12714 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
12717 \begin_layout Description
12718 \begin_inset Flex Code
12721 \begin_layout Plain Layout
12728 \begin_inset Flex Code
12731 \begin_layout Plain Layout
12738 \begin_inset Quotes erd
12742 \begin_inset Quotes erd
12746 \begin_inset Flex Code
12749 \begin_layout Plain Layout
12757 を使用してフロートを定義する際に使用される様式。
12760 \begin_layout Description
12761 \begin_inset Flex Code
12764 \begin_layout Plain Layout
12771 \begin_inset Flex Code
12774 \begin_layout Plain Layout
12781 \begin_inset Quotes erd
12785 \begin_inset Quotes erd
12788 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
12789 \begin_inset Flex Code
12792 \begin_layout Plain Layout
12801 \begin_inset Flex Code
12804 \begin_layout Plain Layout
12813 \begin_inset Flex Code
12816 \begin_layout Plain Layout
12827 \begin_layout Description
12828 \begin_inset Flex Code
12831 \begin_layout Plain Layout
12838 \begin_inset Flex Code
12841 \begin_layout Plain Layout
12848 \begin_inset space \thinspace{}
12852 \begin_inset Flex Code
12855 \begin_layout Plain Layout
12863 ] このフロートが、クラスファイルやパッケージ中で、
12868 \begin_inset Flex Code
12871 \begin_layout Plain Layout
12877 が提供しているものを使用して定義されているのか、LyX自身がオン・ザ・フライで定義しているのかを示します。
12880 \begin_layout Standard
12881 \begin_inset Flex Code
12884 \begin_layout Plain Layout
12897 \begin_inset Flex Code
12900 \begin_layout Plain Layout
12911 \begin_layout Subsection
12913 \begin_inset CommandInset label
12922 \begin_layout Standard
12926 \begin_layout Itemize
12928 \begin_inset Flex Code
12931 \begin_layout Plain Layout
12938 \begin_inset Flex Code
12941 \begin_layout Plain Layout
12950 \begin_inset Flex Code
12953 \begin_layout Plain Layout
12961 などのLaTeXコマンドに対応した意味論的マークアップを定義するものです。
12964 \begin_layout Itemize
12966 \begin_inset Flex Code
12969 \begin_layout Plain Layout
12975 )。これは、TeXコードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
12976 \begin_inset Flex Code
12979 \begin_layout Plain Layout
12988 \begin_layout Itemize
12990 \begin_inset Flex Code
12993 \begin_layout Plain Layout
12999 )。DocBookクラスで使用するものです。
13002 \begin_layout Standard
13004 \begin_inset Flex Code
13007 \begin_layout Plain Layout
13016 \begin_layout Standard
13017 \begin_inset Flex Code
13020 \begin_layout Plain Layout
13026 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
13027 \begin_inset Flex Code
13030 \begin_layout Plain Layout
13036 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・TeXコード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・オプション引数
13037 のレイアウトパラメータを設定するのに使用することができます。
13040 \begin_layout Standard
13041 \begin_inset Flex Code
13044 \begin_layout Plain Layout
13050 定義は以下の形の行では始まらなくてはなりません。
13053 \begin_layout LyX-Code
13057 \begin_layout Standard
13059 \begin_inset Flex Code
13062 \begin_layout Plain Layout
13068 は、レイアウトを定義しようとしている差込枠を指し、以下の2つの場合がありえます。
13071 \begin_layout Enumerate
13072 既存の差込枠のレイアウトを変更する場合。この場合、
13073 \begin_inset Flex Code
13076 \begin_layout Plain Layout
13083 \begin_inset Flex Code
13086 \begin_layout Plain Layout
13093 \begin_inset Flex Code
13096 \begin_layout Plain Layout
13103 \begin_inset Flex Code
13106 \begin_layout Plain Layout
13113 \begin_inset Flex Code
13116 \begin_layout Plain Layout
13123 \begin_inset Flex Code
13126 \begin_layout Plain Layout
13133 \begin_inset Flex Code
13136 \begin_layout Plain Layout
13143 \begin_inset Flex Code
13146 \begin_layout Plain Layout
13153 \begin_inset Flex Code
13156 \begin_layout Plain Layout
13163 \begin_inset Flex Code
13166 \begin_layout Plain Layout
13173 \begin_inset Flex Code
13176 \begin_layout Plain Layout
13183 \begin_inset Flex Code
13186 \begin_layout Plain Layout
13193 \begin_inset Flex Code
13196 \begin_layout Plain Layout
13203 \begin_inset Flex Code
13206 \begin_layout Plain Layout
13213 \begin_inset Flex Code
13216 \begin_layout Plain Layout
13223 \begin_inset Flex Code
13226 \begin_layout Plain Layout
13233 \begin_inset Flex Code
13236 \begin_layout Plain Layout
13243 \begin_inset Flex Code
13246 \begin_layout Plain Layout
13253 \begin_inset Flex Code
13256 \begin_layout Plain Layout
13263 \begin_inset Flex Code
13266 \begin_layout Plain Layout
13273 \begin_inset Flex Code
13276 \begin_layout Plain Layout
13285 \begin_layout Enumerate
13286 自由差込枠のレイアウトを定義する場合。この場合、
13287 \begin_inset Flex Code
13290 \begin_layout Plain Layout
13297 \begin_inset Flex Code
13300 \begin_layout Plain Layout
13307 \begin_inset Flex Code
13310 \begin_layout Plain Layout
13316 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
13317 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
13318 \begin_inset Flex Code
13321 \begin_layout Plain Layout
13327 項目が含まれていなくてはならないことに注意してください。
13330 \begin_layout Standard
13331 \begin_inset Flex Code
13334 \begin_layout Plain Layout
13340 定義には以下の項目を入れることができます。
13343 \begin_layout Description
13344 \begin_inset Flex Code
13347 \begin_layout Plain Layout
13356 \begin_inset Flex Code
13359 \begin_layout Plain Layout
13372 \begin_inset space ~
13376 \begin_inset CommandInset ref
13378 reference "chap:Names-of-colors"
13382 for a list of the available color names.
13385 \begin_layout Description
13386 \begin_inset Flex Code
13389 \begin_layout Plain Layout
13396 \begin_inset Flex Code
13399 \begin_layout Plain Layout
13408 \begin_inset space \thinspace{}
13412 \begin_inset Flex Code
13415 \begin_layout Plain Layout
13421 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
13424 \begin_layout Description
13425 \begin_inset Flex Code
13428 \begin_layout Plain Layout
13436 As with paragraph styles, see sec.
13437 \begin_inset space ~
13443 \begin_inset CommandInset ref
13445 reference "sub:段落様式"
13451 Note that you need to specify the complete type, e.
13452 \begin_inset space \thinspace{}
13456 \begin_inset space ~
13460 \begin_inset Flex Code
13463 \begin_layout Plain Layout
13466 CopyStyle Flex:<name>
13474 \begin_layout Description
13475 \begin_inset Flex Code
13478 \begin_layout Plain Layout
13485 \begin_inset Flex Code
13488 \begin_layout Plain Layout
13497 \begin_inset space \thinspace{}
13501 \begin_inset Flex Code
13504 \begin_layout Plain Layout
13510 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
13513 \begin_layout Description
13514 \begin_inset Flex Code
13517 \begin_layout Plain Layout
13523 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
13524 \begin_inset Flex Code
13527 \begin_layout Plain Layout
13534 \begin_inset Flex Code
13537 \begin_layout Plain Layout
13544 \begin_inset Flex Code
13547 \begin_layout Plain Layout
13553 のいずれかを指定することができます。脚注は通常
13554 \begin_inset Flex Code
13557 \begin_layout Plain Layout
13564 \begin_inset Flex Code
13567 \begin_layout Plain Layout
13574 \begin_inset Flex Code
13577 \begin_layout Plain Layout
13586 \begin_layout Description
13587 \begin_inset Flex Code
13590 \begin_layout Plain Layout
13597 \begin_inset Flex Code
13600 \begin_layout Plain Layout
13607 \begin_inset space \thinspace{}
13611 \begin_inset Flex Code
13614 \begin_layout Plain Layout
13623 \begin_inset Flex Code
13626 \begin_layout Plain Layout
13633 \begin_inset Flex Code
13636 \begin_layout Plain Layout
13642 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、LaTeX環境は、
13643 \begin_inset Flex Code
13646 \begin_layout Plain Layout
13655 \begin_inset Flex Code
13658 \begin_layout Plain Layout
13666 タグの後の空白(改行文字を含む)を無視するものと仮定します。
13669 \begin_layout Description
13670 \begin_inset Flex Code
13673 \begin_layout Plain Layout
13680 \begin_inset Flex Code
13683 \begin_layout Plain Layout
13692 \begin_layout Description
13693 \begin_inset Flex Code
13696 \begin_layout Plain Layout
13707 \begin_inset CommandInset ref
13709 reference "sub:フォント指定"
13713 節を参照。このフォントを定義すると自動的に
13714 \begin_inset Flex Code
13717 \begin_layout Plain Layout
13723 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
13724 \begin_inset Flex Code
13727 \begin_layout Plain Layout
13733 を定義しなくてはならないことに注意してください。
13736 \begin_layout Description
13737 \begin_inset Flex Code
13740 \begin_layout Plain Layout
13747 \begin_inset Flex Code
13750 \begin_layout Plain Layout
13759 \begin_inset space \thinspace{}
13763 \begin_inset Flex Code
13766 \begin_layout Plain Layout
13772 ] たとえばTeXコードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
13775 \begin_layout Description
13776 \begin_inset Flex Code
13779 \begin_layout Plain Layout
13786 \begin_inset Flex Code
13789 \begin_layout Plain Layout
13798 \begin_inset space \thinspace{}
13802 \begin_inset Flex Code
13805 \begin_layout Plain Layout
13811 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
13814 \begin_layout Description
13815 \begin_inset Flex Code
13818 \begin_layout Plain Layout
13827 \begin_inset Flex Code
13830 \begin_layout Plain Layout
13839 \begin_inset space \thinspace{}
13843 \begin_inset Flex Code
13846 \begin_layout Plain Layout
13854 As with paragraph styles, see sec.
13855 \begin_inset space ~
13861 \begin_inset CommandInset ref
13863 reference "sub:段落様式"
13870 \begin_layout Description
13871 \begin_inset Flex Code
13874 \begin_layout Plain Layout
13880 これらは、XHTML出力で使用されます。第
13881 \begin_inset CommandInset ref
13883 reference "sec:XHTML出力のタグ"
13890 \begin_layout Description
13891 \begin_inset Flex Code
13894 \begin_layout Plain Layout
13901 \begin_inset Flex Code
13904 \begin_layout Plain Layout
13913 \begin_inset space \thinspace{}
13917 \begin_inset Flex Code
13920 \begin_layout Plain Layout
13926 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
13927 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
13930 \begin_layout Description
13931 \begin_inset Flex Code
13934 \begin_layout Plain Layout
13943 \begin_inset Flex Code
13946 \begin_layout Plain Layout
13955 \begin_inset space \thinspace{}
13959 \begin_inset Flex Code
13962 \begin_layout Plain Layout
13970 As with paragraph styles, see sec.
13971 \begin_inset space ~
13977 \begin_inset CommandInset ref
13979 reference "sub:段落様式"
13986 \begin_layout Description
13987 \begin_inset Flex Code
13990 \begin_layout Plain Layout
13997 \begin_inset CommandInset ref
13999 reference "sub:フォント指定"
14003 節を参照。非効率を回避するため、この定義は
14004 \begin_inset Flex Code
14007 \begin_layout Plain Layout
14016 \begin_layout Description
14017 \begin_inset Flex Code
14020 \begin_layout Plain Layout
14027 \begin_inset Flex Code
14030 \begin_layout Plain Layout
14037 \begin_inset Quotes erd
14041 \begin_inset Quotes erd
14048 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(TeXコードや派生枝)、ラベルが動的に変更されます。
14051 \begin_layout Description
14052 \begin_inset Flex Code
14055 \begin_layout Plain Layout
14064 \begin_inset Flex Code
14067 \begin_layout Plain Layout
14077 ] 対応するLaTeX関連物の名称。環境名ないしはコマンド名。
14080 \begin_layout Description
14081 \begin_inset Flex Code
14084 \begin_layout Plain Layout
14093 \begin_inset Flex Code
14096 \begin_layout Plain Layout
14107 \begin_inset Flex Code
14110 \begin_layout Plain Layout
14117 \begin_inset Flex Code
14120 \begin_layout Plain Layout
14126 のような括弧対を含む。このパラメータはLyX内部から変更することはできません。
14129 \begin_layout Description
14130 \begin_inset Flex Code
14133 \begin_layout Plain Layout
14141 As with paragraph styles, see sec.
14142 \begin_inset space ~
14148 \begin_inset CommandInset ref
14150 reference "sub:段落様式"
14157 \begin_layout Description
14158 \begin_inset Flex Code
14161 \begin_layout Plain Layout
14168 \begin_inset Flex Code
14171 \begin_layout Plain Layout
14178 \begin_inset Flex Code
14181 \begin_layout Plain Layout
14188 \begin_inset Flex Code
14191 \begin_layout Plain Layout
14198 \begin_inset Flex Code
14201 \begin_layout Plain Layout
14207 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
14208 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
14209 \begin_inset Flex Code
14212 \begin_layout Plain Layout
14219 \begin_inset Flex Code
14222 \begin_layout Plain Layout
14229 \begin_inset Flex Code
14232 \begin_layout Plain Layout
14239 \begin_inset Flex Code
14242 \begin_layout Plain Layout
14249 \begin_inset Flex Code
14252 \begin_layout Plain Layout
14262 設定すれば、真に設定することができます。
14265 \begin_layout Description
14266 \begin_inset Flex Code
14269 \begin_layout Plain Layout
14276 \begin_inset Flex Code
14279 \begin_layout Plain Layout
14288 \begin_inset space \thinspace{}
14292 \begin_inset Flex Code
14295 \begin_layout Plain Layout
14301 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
14302 \begin_inset Flex Code
14305 \begin_layout Plain Layout
14312 \begin_inset Flex Code
14315 \begin_layout Plain Layout
14322 \begin_inset Flex Code
14325 \begin_layout Plain Layout
14335 指定されれば、他の値に指定し直すことができます。既定値は真です。
14338 \begin_layout Description
14339 \begin_inset Flex Code
14342 \begin_layout Plain Layout
14349 \begin_inset Flex Code
14352 \begin_layout Plain Layout
14361 \begin_inset space \thinspace{}
14365 \begin_inset Flex Code
14368 \begin_layout Plain Layout
14375 \begin_inset Flex Code
14378 \begin_layout Plain Layout
14386 するか否か(註:当該コマンド自身をprotectするかどうかでは
14393 \begin_layout Description
14394 \begin_inset Flex Code
14397 \begin_layout Plain Layout
14404 \begin_inset Flex Code
14407 \begin_layout Plain Layout
14416 \begin_inset space \thinspace{}
14420 \begin_inset Flex Code
14423 \begin_layout Plain Layout
14431 As with paragraph styles, see sec.
14432 \begin_inset space ~
14438 \begin_inset CommandInset ref
14440 reference "sub:段落様式"
14447 \begin_layout Description
14448 \begin_inset Flex Code
14451 \begin_layout Plain Layout
14460 \begin_inset Flex Code
14463 \begin_layout Plain Layout
14472 \begin_inset space \thinspace{}
14476 \begin_inset Flex Code
14479 \begin_layout Plain Layout
14487 As with paragraph styles, see sec.
14488 \begin_inset space ~
14494 \begin_inset CommandInset ref
14496 reference "sub:段落様式"
14503 \begin_layout Description
14504 \begin_inset Flex Code
14507 \begin_layout Plain Layout
14515 As with paragraph styles, see sec.
14516 \begin_inset space ~
14522 \begin_inset CommandInset ref
14524 reference "sub:段落様式"
14531 \begin_layout Description
14532 \begin_inset Flex Code
14535 \begin_layout Plain Layout
14542 \begin_inset Flex Code
14545 \begin_layout Plain Layout
14551 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
14554 \begin_layout Description
14555 \begin_inset Flex Code
14558 \begin_layout Plain Layout
14565 \begin_inset Flex Code
14568 \begin_layout Plain Layout
14576 As with paragraph styles, see sec.
14577 \begin_inset space ~
14583 \begin_inset CommandInset ref
14585 reference "sub:段落様式"
14592 \begin_layout Description
14593 \begin_inset Flex Code
14596 \begin_layout Plain Layout
14603 \begin_inset Flex Code
14606 \begin_layout Plain Layout
14613 \begin_inset space \thinspace{}
14617 \begin_inset Flex Code
14620 \begin_layout Plain Layout
14628 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
14631 \begin_layout Description
14632 \begin_inset Flex Code
14635 \begin_layout Plain Layout
14642 \begin_inset Flex Code
14645 \begin_layout Plain Layout
14652 \begin_inset space \thinspace{}
14656 \begin_inset Flex Code
14659 \begin_layout Plain Layout
14667 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
14670 \begin_layout Subsection
14672 \begin_inset CommandInset label
14681 \begin_layout Standard
14684 It is necessary to define the counters
14687 \begin_inset Flex MenuItem
14690 \begin_layout Plain Layout
14697 \begin_inset Flex MenuItem
14700 \begin_layout Plain Layout
14706 ・\SpecialChar \ldots{}
14707 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14708 \begin_inset Flex Code
14711 \begin_layout Plain Layout
14717 ファイルに含まれているので、作業中のレイアウトファイルに
14720 \begin_layout LyX-Code
14721 Input stdcounters.inc
14724 \begin_layout Standard
14725 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
14728 \begin_layout LyX-Code
14732 \begin_layout Standard
14734 \begin_inset Flex Code
14737 \begin_layout Plain Layout
14743 」は、実際のカウンタ名で置き換えます。また、宣言は「
14744 \begin_inset Flex Code
14747 \begin_layout Plain Layout
14756 \begin_layout Standard
14757 以下のパラメータを使用することができます。
14760 \begin_layout Description
14761 \begin_inset Flex Code
14764 \begin_layout Plain Layout
14765 LabelString [文字列=""]
14770 定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
14771 \begin_inset Flex Code
14774 \begin_layout Plain Layout
14775 LabelStringAppendix
14780 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
14784 \begin_layout Itemize
14785 \begin_inset Flex Code
14788 \begin_layout Plain Layout
14797 \begin_inset Flex Code
14800 \begin_layout Plain Layout
14807 \begin_inset Flex Code
14810 \begin_layout Plain Layout
14817 \begin_inset Newline linebreak
14821 \begin_inset Flex Code
14824 \begin_layout Plain Layout
14825 LabelStringAppendix
14833 \begin_layout Itemize
14835 \begin_inset Flex Code
14838 \begin_layout Plain Layout
14854 を用いて表現することができます。ここで
14855 \begin_inset Flex Code
14858 \begin_layout Plain Layout
14867 \begin_inset Flex Code
14870 \begin_layout Plain Layout
14876 :1, 2, 3,\SpecialChar \ldots{}
14878 \begin_inset Flex Code
14881 \begin_layout Plain Layout
14887 :a, b, c, \SpecialChar \ldots{}
14889 \begin_inset Flex Code
14892 \begin_layout Plain Layout
14898 :A, B, C, \SpecialChar \ldots{}
14900 \begin_inset Flex Code
14903 \begin_layout Plain Layout
14909 :i, ii, iii, \SpecialChar \ldots{}
14911 \begin_inset Flex Code
14914 \begin_layout Plain Layout
14920 :I, II, III\SpecialChar \ldots{}
14925 \begin_layout Standard
14926 \begin_inset Flex Code
14929 \begin_layout Plain Layout
14935 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
14936 \begin_inset Flex Code
14939 \begin_layout Plain Layout
14946 \begin_inset Flex Code
14949 \begin_layout Plain Layout
14956 \begin_inset Newline linebreak
14960 \begin_inset Flex Code
14963 \begin_layout Plain Layout
14974 \begin_inset Flex Code
14977 \begin_layout Plain Layout
14988 \begin_layout Description
14989 \begin_inset Flex Code
14992 \begin_layout Plain Layout
14993 LabelStringAppendix
14999 \begin_inset Flex Code
15002 \begin_layout Plain Layout
15009 \begin_inset Flex Code
15012 \begin_layout Plain Layout
15018 と同様ですが、付録で使用するためのものです。
15021 \begin_layout Description
15022 \begin_inset Flex Code
15025 \begin_layout Plain Layout
15032 \begin_inset Flex Code
15035 \begin_layout Plain Layout
15042 \begin_inset Quotes erd
15046 \begin_inset Quotes erd
15049 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
15050 \begin_inset space ~
15053 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
15057 \begin_layout Description
15058 \begin_inset Flex Code
15061 \begin_layout Plain Layout
15068 \begin_inset Flex Code
15071 \begin_layout Plain Layout
15078 \begin_inset Quotes erd
15082 \begin_inset Quotes erd
15085 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
15086 \begin_inset Flex Code
15089 \begin_layout Plain Layout
15096 \begin_inset Flex Code
15099 \begin_layout Plain Layout
15108 \begin_layout Subsection
15110 \begin_inset CommandInset label
15119 \begin_layout Standard
15120 フォント指定は、以下のような形を取ります。
15123 \begin_layout LyX-Code
15139 \begin_layout LyX-Code
15143 \begin_layout LyX-Code
15147 \begin_layout Standard
15148 以下のコマンドを使用することができます。
15151 \begin_layout Description
15152 \begin_inset Flex Code
15155 \begin_layout Plain Layout
15162 \begin_inset Flex Code
15165 \begin_layout Plain Layout
15174 \begin_inset Flex Code
15177 \begin_layout Plain Layout
15184 \begin_inset Flex Code
15187 \begin_layout Plain Layout
15194 \begin_inset Flex Code
15197 \begin_layout Plain Layout
15204 \begin_inset Flex Code
15207 \begin_layout Plain Layout
15214 \begin_inset Flex Code
15217 \begin_layout Plain Layout
15224 \begin_inset Flex Code
15227 \begin_layout Plain Layout
15234 \begin_inset Flex Code
15237 \begin_layout Plain Layout
15244 \begin_inset Flex Code
15247 \begin_layout Plain Layout
15256 \begin_layout Description
15257 \begin_inset Flex Code
15260 \begin_layout Plain Layout
15269 \begin_inset Flex Code
15272 \begin_layout Plain Layout
15281 \begin_inset Flex Code
15284 \begin_layout Plain Layout
15291 \begin_inset Flex Code
15294 \begin_layout Plain Layout
15303 \begin_layout Description
15304 \begin_inset Flex Code
15307 \begin_layout Plain Layout
15314 \begin_inset Flex Code
15317 \begin_layout Plain Layout
15324 \begin_inset Flex Code
15327 \begin_layout Plain Layout
15334 \begin_inset Flex Code
15337 \begin_layout Plain Layout
15344 \begin_inset Flex Code
15347 \begin_layout Plain Layout
15354 \begin_inset Flex Code
15357 \begin_layout Plain Layout
15364 \begin_inset Flex Code
15367 \begin_layout Plain Layout
15374 \begin_inset Flex Code
15377 \begin_layout Plain Layout
15384 \begin_inset Flex Code
15387 \begin_layout Plain Layout
15394 \begin_inset Flex Code
15397 \begin_layout Plain Layout
15404 \begin_inset Flex Code
15407 \begin_layout Plain Layout
15414 \begin_inset Flex Code
15417 \begin_layout Plain Layout
15424 \begin_inset Flex Code
15427 \begin_layout Plain Layout
15434 \begin_inset Flex Code
15437 \begin_layout Plain Layout
15443 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
15444 \begin_inset Newline newline
15448 \begin_inset Flex Code
15451 \begin_layout Plain Layout
15458 \begin_inset Flex Code
15461 \begin_layout Plain Layout
15467 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
15469 \begin_inset Flex Code
15472 \begin_layout Plain Layout
15478 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
15481 \begin_layout Description
15482 \begin_inset Flex Code
15485 \begin_layout Plain Layout
15494 \begin_inset Flex Code
15497 \begin_layout Plain Layout
15506 \begin_inset Flex Code
15509 \begin_layout Plain Layout
15518 \begin_layout Description
15519 \begin_inset Flex Code
15522 \begin_layout Plain Layout
15531 \begin_inset Flex Code
15534 \begin_layout Plain Layout
15543 \begin_inset Flex Code
15546 \begin_layout Plain Layout
15553 \begin_inset Flex Code
15556 \begin_layout Plain Layout
15563 \begin_inset Flex Code
15566 \begin_layout Plain Layout
15575 \begin_layout Description
15576 \begin_inset Flex Code
15579 \begin_layout Plain Layout
15586 \begin_inset Flex Code
15589 \begin_layout Plain Layout
15596 \begin_inset Flex Code
15599 \begin_layout Plain Layout
15606 \begin_inset Flex Code
15609 \begin_layout Plain Layout
15618 \begin_inset Flex Code
15621 \begin_layout Plain Layout
15628 \begin_inset Flex Code
15631 \begin_layout Plain Layout
15638 \begin_inset Flex Code
15641 \begin_layout Plain Layout
15648 \begin_inset Flex Code
15651 \begin_layout Plain Layout
15658 \begin_inset Flex Code
15661 \begin_layout Plain Layout
15670 \begin_layout Subsection
15671 \begin_inset CommandInset label
15680 \begin_layout Standard
15681 (引用ダイアログやツールチップなどの)LyX内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
15682 \begin_inset Flex Code
15685 \begin_layout Plain Layout
15691 ブロックが使用されています。このブロックは、以下のような形をしています。
15694 \begin_layout LyX-Code
15698 \begin_layout LyX-Code
15702 \begin_layout LyX-Code
15706 \begin_layout LyX-Code
15710 \begin_layout Standard
15711 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、BibTeXファイル中に
15712 存在しうる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、LyXは、ソースコード中に定義されている既定書式を使用します。LyXは、い
15714 \begin_inset Flex Code
15717 \begin_layout Plain Layout
15723 ファイルで事前定義しており、これはほとんどのLyX文書クラスにインクルードされています。
15726 \begin_layout Standard
15727 この定義は、BibTeXキーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
15728 \begin_inset Flex Code
15731 \begin_layout Plain Layout
15738 \begin_inset Flex Code
15741 \begin_layout Plain Layout
15747 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
15750 \begin_layout LyX-Code
15752 \begin_inset Quotes eld
15756 \begin_inset Quotes erd
15762 \begin_layout Standard
15763 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
15766 \begin_layout Standard
15767 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
15768 \begin_inset Flex Code
15771 \begin_layout Plain Layout
15773 \begin_inset space ~
15781 のように、条件付きの構成を使用することができます。これは、
15782 \begin_inset Flex Code
15785 \begin_layout Plain Layout
15792 \begin_inset space ~
15795 」とvolumeキーを出力するという意味です。また、
15796 \begin_inset Newline newline
15800 \begin_inset Flex Code
15803 \begin_layout Plain Layout
15804 {%author%[[%author%]][[%editor%, ed.]]}
15810 \begin_inset Newline newline
15813 のように、条件の中にelse節を含めることも可能です。ここでは、もし
15814 \begin_inset Flex Code
15817 \begin_layout Plain Layout
15823 キーが存在するならば出力され、そうでなければeditorキーと「,
15824 \begin_inset space ~
15827 ed.」が出力されます。ここでもキーは、
15828 \begin_inset Flex Code
15831 \begin_layout Plain Layout
15837 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
15838 \begin_inset Flex Code
15841 \begin_layout Plain Layout
15848 \begin_inset Flex Code
15851 \begin_layout Plain Layout
15857 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
15860 \begin_layout Standard
15861 もう一つ、定義中で使用することのできる文法として、
15862 \begin_inset Flex Code
15865 \begin_layout Plain Layout
15871 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
15872 グを出力させたくはありませんから、HTMLタグは「
15873 \begin_inset Flex Code
15876 \begin_layout Plain Layout
15883 \begin_inset Flex Code
15886 \begin_layout Plain Layout
15892 」でくるんでやらなくてはならないのです。
15895 \begin_layout Standard
15896 \begin_inset Flex Code
15899 \begin_layout Plain Layout
15905 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
15908 \begin_layout LyX-Code
15910 \begin_inset Quotes eld
15914 \begin_inset Quotes erd
15920 \begin_layout Standard
15921 といった例が挙げられます。これは、短縮形ないしはマクロであり、
15922 \begin_inset Flex Code
15925 \begin_layout Plain Layout
15931 のように、これがキーであるかのように扱って使用することができます。LyXは、
15932 \begin_inset Flex Code
15935 \begin_layout Plain Layout
15941 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
15944 \begin_layout LyX-Code
15948 \begin_layout Standard
15949 のようなことはしないでください。LyXは、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
15952 \begin_layout Standard
15956 \begin_layout LyX-Code
15960 \begin_layout Standard
15961 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
15962 \begin_inset Flex Code
15965 \begin_layout Plain Layout
15971 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
15972 \begin_inset Flex Code
15975 \begin_layout Plain Layout
15981 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
15984 \begin_layout Standard
15985 以下は、これらの機能を全て使った例です。
15986 \begin_inset VSpace defskip
15992 \begin_layout Standard
15996 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
15999 \begin_layout Standard
16000 \begin_inset VSpace defskip
16004 \begin_inset Flex Code
16007 \begin_layout Plain Layout
16013 キーが定義されているならば、著者とコンマを出力し、
16014 \begin_inset Flex Code
16017 \begin_layout Plain Layout
16024 \begin_inset Flex Code
16027 \begin_layout Plain Layout
16033 キーが定義されているならば、編集者名の後に
16034 \begin_inset Flex Code
16037 \begin_layout Plain Layout
16043 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
16044 \begin_inset Flex Code
16047 \begin_layout Plain Layout
16053 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
16056 \begin_layout Section
16057 \begin_inset CommandInset label
16059 name "sec:XHTML出力のタグ"
16066 \begin_layout Standard
16067 LaTeXやDocBookと同様、LyXのXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、LyXは適切な既定値を提供し、前述した
16068 ように、他のレイアウトタグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、LyXは、章様式
16070 \begin_inset Flex Code
16073 \begin_layout Plain Layout
16079 宣言で提供されている情報を利用しようと試みます。
16082 \begin_layout Standard
16083 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
16084 、これが必要になる場合もあるので、LyXは、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
16087 \begin_layout Standard
16088 様式宣言や差込枠宣言の外で使用することができるタグに、
16089 \begin_inset Flex Code
16092 \begin_layout Plain Layout
16099 \begin_inset Flex Code
16102 \begin_layout Plain Layout
16108 の2つがあることに注意してください。これらの詳細については、第
16109 \begin_inset CommandInset ref
16111 reference "sub:汎用テキストクラスパラメータ"
16118 \begin_layout Subsection
16119 \begin_inset CommandInset label
16121 name "sub:段落様式-XHTML"
16128 \begin_layout Standard
16129 LyXが段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対
16131 \begin_inset Flex Code
16134 \begin_layout Plain Layout
16143 \begin_layout Standard
16144 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
16147 \begin_layout LyX-Code
16149 \begin_inset Quotes erd
16153 \begin_inset Quotes erd
16159 \begin_layout LyX-Code
16161 \begin_inset Quotes erd
16165 \begin_inset Quotes erd
16171 \begin_layout LyX-Code
16175 \begin_layout LyX-Code
16179 \begin_layout Standard
16180 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
16183 \begin_layout Standard
16184 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
16187 \begin_layout LyX-Code
16189 \begin_inset Quotes erd
16193 \begin_inset Quotes erd
16199 \begin_layout LyX-Code
16201 \begin_inset Quotes erd
16205 \begin_inset Quotes erd
16209 \begin_inset Quotes erd
16213 \begin_inset Quotes erd
16216 >環境ラベル</labeltag>最初の段落。
16219 \begin_layout LyX-Code
16223 \begin_layout LyX-Code
16224 <itemtag>二つめの段落。</itemtag>
16227 \begin_layout LyX-Code
16231 \begin_layout Standard
16232 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
16235 \begin_layout Standard
16236 リストに関しては、次のような形になります。
16239 \begin_layout LyX-Code
16241 \begin_inset Quotes erd
16245 \begin_inset Quotes erd
16251 \begin_layout LyX-Code
16253 \begin_inset Quotes erd
16257 \begin_inset Quotes erd
16261 \begin_inset Quotes erd
16265 \begin_inset Quotes erd
16268 >リストのラベル</labeltag>最初の項目。</itemtag>
16271 \begin_layout LyX-Code
16273 \begin_inset Quotes erd
16277 \begin_inset Quotes erd
16281 \begin_inset Quotes erd
16285 \begin_inset Quotes erd
16288 >リストのラベル</labeltag>二つめの項目。</itemtag>
16291 \begin_layout LyX-Code
16295 \begin_layout LyX-Code
16299 \begin_layout LyX-Code
16301 \begin_inset Quotes erd
16305 \begin_inset Quotes erd
16311 \begin_layout LyX-Code
16313 \begin_inset Quotes erd
16317 \begin_inset Quotes erd
16320 >リストのラベル</labeltag><itemtag attr=
16321 \begin_inset Quotes erd
16325 \begin_inset Quotes erd
16331 \begin_layout LyX-Code
16333 \begin_inset Quotes erd
16337 \begin_inset Quotes erd
16340 >リストのラベル</labeltag><itemtag attr=
16341 \begin_inset Quotes erd
16345 \begin_inset Quotes erd
16351 \begin_layout LyX-Code
16355 \begin_layout Standard
16357 \begin_inset Flex Code
16360 \begin_layout Plain Layout
16367 \begin_inset Flex Code
16370 \begin_layout Plain Layout
16376 の順序が違っていることに注意してください。どちらの順序になるかは、
16377 \begin_inset Flex Code
16380 \begin_layout Plain Layout
16387 \begin_inset Flex Code
16390 \begin_layout Plain Layout
16396 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
16399 \begin_layout Standard
16400 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、LyXは適切な既定値
16401 を生成するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整す
16402 る目的でここにあるものと考えてください。
16405 \begin_layout Description
16406 \begin_inset Flex Code
16409 \begin_layout Plain Layout
16416 \begin_inset Flex Code
16419 \begin_layout Plain Layout
16425 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16426 \begin_inset Flex Code
16429 \begin_layout Plain Layout
16435 」のようなものです。既定においては、LyXは「
16436 \begin_inset Flex Code
16439 \begin_layout Plain Layout
16446 \begin_inset Flex Code
16449 \begin_layout Plain Layout
16455 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
16458 \begin_layout Description
16459 \begin_inset Flex Code
16462 \begin_layout Plain Layout
16469 \begin_inset Flex Code
16472 \begin_layout Plain Layout
16481 \begin_inset space \thinspace{}
16485 \begin_inset Flex Code
16488 \begin_layout Plain Layout
16495 \begin_inset Flex Code
16498 \begin_layout Plain Layout
16504 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
16505 \begin_inset Flex Code
16508 \begin_layout Plain Layout
16514 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
16515 \begin_inset Flex Code
16518 \begin_layout Plain Layout
16527 \begin_layout Description
16528 \begin_inset Flex Code
16531 \begin_layout Plain Layout
16538 \begin_inset Flex Code
16541 \begin_layout Plain Layout
16547 ] 環境の段落に使用されるタグ。上記各例の
16548 \begin_inset Flex Code
16551 \begin_layout Plain Layout
16558 \begin_inset Flex Code
16561 \begin_layout Plain Layout
16570 \begin_layout Description
16571 \begin_inset Flex Code
16574 \begin_layout Plain Layout
16581 \begin_inset Flex Code
16584 \begin_layout Plain Layout
16591 \begin_inset Flex Code
16594 \begin_layout Plain Layout
16595 class=`レイアウト名_item'
16605 \begin_inset Flex Code
16608 \begin_layout Plain Layout
16617 \begin_layout Description
16618 \begin_inset Flex Code
16621 \begin_layout Plain Layout
16628 \begin_inset Flex Code
16631 \begin_layout Plain Layout
16637 ] 段落と項目ラベルに使用されるタグ。上記各例の
16638 \begin_inset Flex Code
16641 \begin_layout Plain Layout
16648 \begin_inset Flex Code
16651 \begin_layout Plain Layout
16658 \begin_inset Flex Code
16661 \begin_layout Plain Layout
16668 \begin_inset Flex Code
16671 \begin_layout Plain Layout
16672 Centered_Top_Environment
16678 \begin_inset Flex Code
16681 \begin_layout Plain Layout
16688 \begin_inset Flex Code
16691 \begin_layout Plain Layout
16700 \begin_layout Description
16701 \begin_inset Flex Code
16704 \begin_layout Plain Layout
16711 \begin_inset Flex Code
16714 \begin_layout Plain Layout
16721 \begin_inset Flex Code
16724 \begin_layout Plain Layout
16725 class=`レイアウト名_label'
16735 \begin_inset Flex Code
16738 \begin_layout Plain Layout
16747 \begin_layout Description
16748 \begin_inset Flex Code
16751 \begin_layout Plain Layout
16758 \begin_inset Flex Code
16761 \begin_layout Plain Layout
16770 \begin_inset space \thinspace{}
16774 \begin_inset Flex Code
16777 \begin_layout Plain Layout
16783 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
16785 \begin_inset Flex Code
16788 \begin_layout Plain Layout
16789 `<dt>\SpecialChar \ldots{}
16790 </dt><dd>\SpecialChar \ldots{}
16796 という形を得るために使用されます。既定値は
16797 \begin_inset Flex Code
16800 \begin_layout Plain Layout
16806 で、labelタグはitemタグの中に出力されます。
16809 \begin_layout Description
16810 \begin_inset Flex Code
16813 \begin_layout Plain Layout
16820 \begin_inset Flex Code
16823 \begin_layout Plain Layout
16829 セクションに出力される情報。これは、たとえば、
16830 \begin_inset Flex Code
16833 \begin_layout Plain Layout
16840 \begin_inset Flex Code
16843 \begin_layout Plain Layout
16849 ブロックをインクルードするのに使用することができます。
16852 \begin_layout Description
16853 \begin_inset Flex Code
16856 \begin_layout Plain Layout
16862 この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16863 \begin_inset Flex Code
16866 \begin_layout Plain Layout
16872 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16875 \begin_layout Description
16876 \begin_inset Flex Code
16879 \begin_layout Plain Layout
16886 \begin_inset Flex Code
16889 \begin_layout Plain Layout
16895 ] 主幹ラベルに使用されるタグ。上記各例の
16896 \begin_inset Flex Code
16899 \begin_layout Plain Layout
16906 \begin_inset Flex Code
16909 \begin_layout Plain Layout
16918 \begin_layout Description
16919 \begin_inset Flex Code
16922 \begin_layout Plain Layout
16929 \begin_inset Flex Code
16932 \begin_layout Plain Layout
16941 \begin_inset space \thinspace{}
16945 \begin_inset Flex Code
16948 \begin_layout Plain Layout
16955 \begin_inset Flex Code
16958 \begin_layout Plain Layout
16964 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
16965 \begin_inset Flex Code
16968 \begin_layout Plain Layout
16975 \begin_inset Flex Code
16978 \begin_layout Plain Layout
16987 \begin_layout Subsection
16991 \begin_layout Standard
16992 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
16996 \begin_layout Plain Layout
16997 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
17003 。ここでも、LyXは適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
17006 \begin_layout Standard
17007 LyXが差込枠用に出力するXHTMLは、以下の形を取ります。
17010 \begin_layout LyX-Code
17012 \begin_inset Quotes erd
17016 \begin_inset Quotes erd
17022 \begin_layout LyX-Code
17023 <labeltag>ラベル</labeltag>
17026 \begin_layout LyX-Code
17028 \begin_inset Quotes erd
17032 \begin_inset Quotes erd
17035 >差込枠の内容。</innertag>
17038 \begin_layout LyX-Code
17042 \begin_layout Standard
17043 差込枠が多段落を許可している---つまり
17044 \begin_inset Flex Code
17047 \begin_layout Plain Layout
17053 が真---ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなけれ
17054 ば、labelタグは省略され、ラベルがあれば、現在のところ、つねに
17055 \begin_inset Flex Code
17058 \begin_layout Plain Layout
17064 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
17068 \begin_layout Description
17069 \begin_inset Flex Code
17072 \begin_layout Plain Layout
17079 \begin_inset Flex Code
17082 \begin_layout Plain Layout
17088 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17089 \begin_inset Flex Code
17092 \begin_layout Plain Layout
17093 class=`myinset' onclick=`\SpecialChar \ldots{}
17099 」のようなものです。既定においては、LyXは「
17100 \begin_inset Flex Code
17103 \begin_layout Plain Layout
17110 \begin_inset Flex Code
17113 \begin_layout Plain Layout
17119 は、差込枠のLyX名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
17122 \begin_layout Description
17123 \begin_inset Flex Code
17126 \begin_layout Plain Layout
17133 \begin_inset Flex Code
17136 \begin_layout Plain Layout
17147 \begin_inset Flex Code
17150 \begin_layout Plain Layout
17156 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
17157 \begin_inset Flex Code
17160 \begin_layout Plain Layout
17166 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
17167 \begin_inset Flex Code
17170 \begin_layout Plain Layout
17179 \begin_layout Description
17180 \begin_inset Flex Code
17183 \begin_layout Plain Layout
17190 \begin_inset Flex Code
17193 \begin_layout Plain Layout
17200 \begin_inset Flex Code
17203 \begin_layout Plain Layout
17212 \begin_layout Description
17213 \begin_inset Flex Code
17216 \begin_layout Plain Layout
17223 \begin_inset Flex Code
17226 \begin_layout Plain Layout
17233 \begin_inset Flex Code
17236 \begin_layout Plain Layout
17245 \begin_layout Description
17246 \begin_inset Flex Code
17249 \begin_layout Plain Layout
17256 \begin_inset Flex Code
17259 \begin_layout Plain Layout
17266 \begin_inset space \thinspace{}
17270 \begin_inset Flex Code
17273 \begin_layout Plain Layout
17281 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
17284 \begin_layout Description
17285 \begin_inset Flex Code
17288 \begin_layout Plain Layout
17295 \begin_inset Flex Code
17298 \begin_layout Plain Layout
17304 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
17305 \begin_inset Flex Code
17308 \begin_layout Plain Layout
17316 など。これは非必須であり、既定値はありません。
17319 \begin_layout Description
17320 \begin_inset Flex Code
17323 \begin_layout Plain Layout
17330 \begin_inset Flex Code
17333 \begin_layout Plain Layout
17339 セクションに出力される情報。これは、たとえば、
17340 \begin_inset Flex Code
17343 \begin_layout Plain Layout
17350 \begin_inset Flex Code
17353 \begin_layout Plain Layout
17359 ブロックをインクルードするのに使用することができます。
17362 \begin_layout Description
17363 \begin_inset Flex Code
17366 \begin_layout Plain Layout
17372 この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17373 \begin_inset Flex Code
17376 \begin_layout Plain Layout
17382 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17385 \begin_layout Description
17386 \begin_inset Flex Code
17389 \begin_layout Plain Layout
17396 \begin_inset Flex Code
17399 \begin_layout Plain Layout
17405 ] 主幹ラベルに使用されるタグ。上記各例の
17406 \begin_inset Flex Code
17409 \begin_layout Plain Layout
17416 \begin_inset Flex Code
17419 \begin_layout Plain Layout
17426 \begin_inset Flex Code
17429 \begin_layout Plain Layout
17436 \begin_inset Flex Code
17439 \begin_layout Plain Layout
17446 \begin_inset Flex Code
17449 \begin_layout Plain Layout
17458 \begin_layout Subsection
17462 \begin_layout Standard
17463 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
17466 \begin_layout LyX-Code
17468 \begin_inset Quotes erd
17472 \begin_inset Quotes erd
17478 \begin_layout LyX-Code
17482 \begin_layout LyX-Code
17486 \begin_layout Standard
17487 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
17491 \begin_layout Description
17492 \begin_inset Flex Code
17495 \begin_layout Plain Layout
17502 \begin_inset Flex Code
17505 \begin_layout Plain Layout
17511 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
17512 \begin_inset Flex Code
17515 \begin_layout Plain Layout
17516 class=`myfloat' onclick=`\SpecialChar \ldots{}
17522 」のようなものです。既定においては、LyXは「
17523 \begin_inset Flex Code
17526 \begin_layout Plain Layout
17527 class=`float フロート-フロート型'
17533 \begin_inset Flex Code
17536 \begin_layout Plain Layout
17543 \begin_inset CommandInset ref
17545 reference "sub:フロート"
17549 参照)、この型のフロートのLyX名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table
17553 \begin_layout Description
17554 \begin_inset Flex Code
17557 \begin_layout Plain Layout
17563 このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
17564 \begin_inset Flex Code
17567 \begin_layout Plain Layout
17573 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
17576 \begin_layout Description
17577 \begin_inset Flex Code
17580 \begin_layout Plain Layout
17587 \begin_inset Flex Code
17590 \begin_layout Plain Layout
17596 ] このフロートに使用されるタグ。上記各例の
17597 \begin_inset Flex Code
17600 \begin_layout Plain Layout
17607 \begin_inset Flex Code
17610 \begin_layout Plain Layout
17616 であり、ほとんどの場合変更する必要はありません。
17619 \begin_layout Subsection
17623 \begin_layout Standard
17625 \begin_inset Flex Code
17628 \begin_layout Plain Layout
17634 ブロックを使用して整形することができます。詳細については、第
17635 \begin_inset CommandInset ref
17637 reference "sub:引用書式指定"
17644 \begin_layout Subsection
17648 \begin_layout Standard
17649 LyXは、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節
17650 では、LyXがどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
17653 \begin_layout Standard
17655 \begin_inset Flex Code
17658 \begin_layout Plain Layout
17665 \begin_inset Flex Code
17668 \begin_layout Plain Layout
17675 \begin_inset Flex Code
17678 \begin_layout Plain Layout
17685 \begin_inset Flex Code
17688 \begin_layout Plain Layout
17695 \begin_inset Flex Code
17698 \begin_layout Plain Layout
17704 を利用して、フォント情報についてのみCSSを自動生成します(第
17705 \begin_inset CommandInset ref
17707 reference "sub:フォント指定"
17711 節を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
17712 \begin_inset Flex Code
17715 \begin_layout Plain Layout
17722 \begin_inset Flex Code
17725 \begin_layout Plain Layout
17726 font-family: sans-serif
17731 」になります。LyXの寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
17732 \begin_inset Flex URL
17735 \begin_layout Plain Layout
17743 \begin_inset Flex Code
17746 \begin_layout Plain Layout
17755 \begin_layout Chapter
17759 \begin_layout Standard
17760 \begin_inset Box Shadowbox
17770 height_special "totalheight"
17773 \begin_layout Plain Layout
17774 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
17782 \begin_layout Standard
17783 LyX外部のソースから素材を使用する方法は、取扱説明書
17787 で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
17790 \begin_layout Section
17794 \begin_layout Standard
17795 外部素材の機能は、ひな型の概念に基づいています。ひな型は、LyXがある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、LyXは、Xfig
17796 の図や、様々なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
17797 \begin_inset Flex MenuItem
17800 \begin_layout Plain Layout
17801 挿入\SpecialChar \menuseparator
17802 ファイル\SpecialChar \menuseparator
17808 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
17809 すが、できればあなたが作ったすべてのひな型を投稿して、我々がLyXの後の版に取り込むことができるようにしてくださることを希望します。
17812 \begin_layout Standard
17813 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
17815 \begin_inset Flex Code
17818 \begin_layout Plain Layout
17824 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
17825 \begin_inset Flex Code
17828 \begin_layout Plain Layout
17834 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
17835 \begin_inset Flex Code
17838 \begin_layout Plain Layout
17844 ファイルに保存します。この図をお使いの文書に取り込みたいときには、LaTeXファイルにそのままインクルードできるように、
17845 \begin_inset Flex Code
17848 \begin_layout Plain Layout
17854 を呼び出してPostScriptファイルを生成します。この場合には、
17855 \begin_inset Flex Code
17858 \begin_layout Plain Layout
17864 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
17867 \begin_layout Standard
17868 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
17869 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
17870 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。LyXの外部素材マネジメ
17871 ントは、LyXがサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
17874 \begin_layout Standard
17875 LyXの外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfi
17876 gの図の場合には、LyXの外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScr
17877 iptファイルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加え
17878 るためにファイルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を
17882 \begin_layout Section
17886 \begin_layout Standard
17887 LyXに自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホ
17888 ールを作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、第
17889 \begin_inset CommandInset ref
17891 reference "sec:セキュリティに関する論点"
17895 節のセキュリティに関する議論を読んでおいてください。
17898 \begin_layout Standard
17899 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
17902 \begin_layout Standard
17904 \begin_inset Flex Code
17907 \begin_layout Plain Layout
17908 LyXDir/lib/external_templates
17913 ファイルで定義されています。自分用の版を
17914 \begin_inset Flex Code
17917 \begin_layout Plain Layout
17918 UserDir/external_templates
17926 \begin_layout Standard
17927 典型的なひな型は以下のようになります。
17930 \begin_layout LyX-Code
17934 \begin_layout LyX-Code
17935 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
17938 \begin_layout LyX-Code
17942 \begin_layout LyX-Code
17946 \begin_layout LyX-Code
17950 \begin_layout LyX-Code
17954 \begin_layout LyX-Code
17958 \begin_layout LyX-Code
17959 AutomaticProduction true
17962 \begin_layout LyX-Code
17966 \begin_layout LyX-Code
17970 \begin_layout LyX-Code
17975 \begin_layout Plain Layout
17985 \begin_layout LyX-Code
17986 TransformCommand Rotate RotationLatexCommand
17989 \begin_layout LyX-Code
17990 TransformCommand Resize ResizeLatexCommand
17993 \begin_layout LyX-Code
17994 Product "$$RotateFront$$ResizeFront
17997 \begin_layout LyX-Code
18002 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
18005 \begin_layout LyX-Code
18006 $$ResizeBack$$RotateBack"
18009 \begin_layout LyX-Code
18013 \begin_layout LyX-Code
18014 UpdateResult "$$AbsPath$$Basename.pstex_t"
18017 \begin_layout LyX-Code
18018 Requirement "graphicx"
18021 \begin_layout LyX-Code
18022 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
18025 \begin_layout LyX-Code
18026 ReferencedFile latex "$$AbsPath$$Basename.eps"
18029 \begin_layout LyX-Code
18030 ReferencedFile dvi "$$AbsPath$$Basename.eps"
18033 \begin_layout LyX-Code
18037 \begin_layout LyX-Code
18042 \begin_layout Plain Layout
18052 \begin_layout LyX-Code
18053 TransformCommand Rotate RotationLatexCommand
18056 \begin_layout LyX-Code
18057 TransformCommand Resize ResizeLatexCommand
18060 \begin_layout LyX-Code
18061 Product "$$RotateFront$$ResizeFront
18064 \begin_layout LyX-Code
18069 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
18072 \begin_layout LyX-Code
18073 $$ResizeBack$$RotateBack"
18076 \begin_layout LyX-Code
18077 UpdateFormat pdftex
18080 \begin_layout LyX-Code
18081 UpdateResult "$$AbsPath$$Basename.pdftex_t"
18084 \begin_layout LyX-Code
18085 Requirement "graphicx"
18088 \begin_layout LyX-Code
18089 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
18092 \begin_layout LyX-Code
18093 ReferencedFile latex "$$AbsPath$$Basename.pdf"
18096 \begin_layout LyX-Code
18100 \begin_layout LyX-Code
18104 \begin_layout LyX-Code
18105 Product "$$Contents(
18107 "$$AbsPath$$Basename.asc
18112 \begin_layout LyX-Code
18113 UpdateFormat asciixfig
18116 \begin_layout LyX-Code
18117 UpdateResult "$$AbsPath$$Basename.asc"
18120 \begin_layout LyX-Code
18124 \begin_layout LyX-Code
18128 \begin_layout LyX-Code
18129 Product "<graphic fileref=
18131 "$$AbsOrRelPathMaster$$Basename.eps
18136 \begin_layout LyX-Code
18140 \begin_layout LyX-Code
18144 \begin_layout LyX-Code
18145 UpdateResult "$$AbsPath$$Basename.eps"
18148 \begin_layout LyX-Code
18149 ReferencedFile docbook "$$AbsPath$$Basename.eps"
18152 \begin_layout LyX-Code
18153 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
18156 \begin_layout LyX-Code
18160 \begin_layout LyX-Code
18161 Product "[XFig: $$FName]"
18164 \begin_layout LyX-Code
18168 \begin_layout LyX-Code
18172 \begin_layout Standard
18174 \begin_inset Flex Code
18177 \begin_layout Plain Layout
18183 \SpecialChar \ldots{}
18185 \begin_inset Flex Code
18188 \begin_layout Plain Layout
18194 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
18195 \begin_inset Flex Code
18198 \begin_layout Plain Layout
18204 \SpecialChar \ldots{}
18206 \begin_inset Flex Code
18209 \begin_layout Plain Layout
18218 \begin_layout Subsection
18222 \begin_layout Description
18223 \begin_inset Flex Code
18226 \begin_layout Plain Layout
18227 AutomaticProduction
18228 \begin_inset space ~
18236 このひな型で扱うファイルをLyXが生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
18239 \begin_layout Description
18240 \begin_inset Flex Code
18243 \begin_layout Plain Layout
18245 \begin_inset space ~
18253 望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
18254 \begin_inset Flex Code
18257 \begin_layout Plain Layout
18264 \begin_inset Flex Code
18267 \begin_layout Plain Layout
18274 \begin_inset Flex Code
18277 \begin_layout Plain Layout
18283 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
18286 \begin_layout Description
18287 \begin_inset Flex Code
18290 \begin_layout Plain Layout
18292 \begin_inset space ~
18300 この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
18303 \begin_layout Description
18304 \begin_inset Flex Code
18307 \begin_layout Plain Layout
18309 \begin_inset space ~
18313 \begin_inset space ~
18321 外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
18325 \begin_layout Description
18326 \begin_inset Flex Code
18329 \begin_layout Plain Layout
18331 \begin_inset space ~
18339 オリジナルファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(第
18340 \begin_inset CommandInset ref
18342 reference "sec:ファイル形式"
18346 章参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
18347 \begin_inset Flex Code
18350 \begin_layout Plain Layout
18356 」を使用してください。この場合、LyXはファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
18359 \begin_layout Description
18360 \begin_inset Flex Code
18363 \begin_layout Plain Layout
18365 \begin_inset space ~
18373 このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
18376 \begin_layout Description
18377 \begin_inset Flex Code
18380 \begin_layout Plain Layout
18382 \begin_inset space ~
18385 Rotate|Resize|Clip|Extra
18390 このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
18391 ログ中の対応するタブを使用可能にします。
18392 \begin_inset Flex Code
18395 \begin_layout Plain Layout
18402 \begin_inset Flex Code
18405 \begin_layout Plain Layout
18412 \begin_inset Flex Code
18415 \begin_layout Plain Layout
18422 \begin_inset Flex Code
18425 \begin_layout Plain Layout
18431 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
18434 \begin_layout Subsection
18435 \begin_inset Flex Code
18438 \begin_layout Plain Layout
18447 \begin_layout Description
18448 \begin_inset Flex Code
18451 \begin_layout Plain Layout
18453 \begin_inset space ~
18460 \begin_layout Plain Layout
18471 \begin_layout Plain Layout
18478 eX|PlainText|DocBook
18483 この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
18484 \begin_inset Flex Code
18487 \begin_layout Plain Layout
18493 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
18497 \begin_layout Description
18498 \begin_inset Flex Code
18501 \begin_layout Plain Layout
18503 \begin_inset space ~
18507 \begin_inset space ~
18516 \begin_inset Flex Code
18519 \begin_layout Plain Layout
18526 \begin_inset Flex Code
18529 \begin_layout Plain Layout
18536 \begin_inset Flex Code
18539 \begin_layout Plain Layout
18545 自体にも代入マクロを使うことができます。
18546 \begin_inset Flex Code
18549 \begin_layout Plain Layout
18556 \begin_inset Flex Code
18559 \begin_layout Plain Layout
18566 \begin_inset Flex Code
18569 \begin_layout Plain Layout
18575 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
18578 \begin_layout Description
18579 \begin_inset Flex Code
18582 \begin_layout Plain Layout
18584 \begin_inset space ~
18592 書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
18596 \begin_layout Description
18597 \begin_inset Flex Code
18600 \begin_layout Plain Layout
18602 \begin_inset space ~
18610 このコマンドは、LaTeXプリアンブルに入れるプリアンブル片を指定します。これは
18611 \begin_inset Flex Code
18614 \begin_layout Plain Layout
18620 \SpecialChar \ldots{}
18622 \begin_inset Flex Code
18625 \begin_layout Plain Layout
18631 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
18634 \begin_layout Description
18635 \begin_inset Flex Code
18638 \begin_layout Plain Layout
18640 \begin_inset space ~
18644 \begin_inset space ~
18652 このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
18653 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
18656 \begin_layout Description
18657 \begin_inset Flex Code
18660 \begin_layout Plain Layout
18662 \begin_inset space ~
18670 必要とされるLaTeXパッケージ名。パッケージは、LaTeXプリアンブル中で
18671 \begin_inset Flex Code
18674 \begin_layout Plain Layout
18682 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
18685 \begin_layout Description
18686 \begin_inset Flex Code
18689 \begin_layout Plain Layout
18691 \begin_inset space ~
18695 \begin_inset space ~
18698 RotationLatexCommand
18703 このコマンドは、回転用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18706 \begin_layout Description
18707 \begin_inset Flex Code
18710 \begin_layout Plain Layout
18712 \begin_inset space ~
18716 \begin_inset space ~
18724 このコマンドは、伸縮用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18727 \begin_layout Description
18728 \begin_inset Flex Code
18731 \begin_layout Plain Layout
18733 \begin_inset space ~
18737 \begin_inset space ~
18740 RotationLatexOption
18745 このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18748 \begin_layout Description
18749 \begin_inset Flex Code
18752 \begin_layout Plain Layout
18754 \begin_inset space ~
18758 \begin_inset space ~
18766 このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18769 \begin_layout Description
18770 \begin_inset Flex Code
18773 \begin_layout Plain Layout
18775 \begin_inset space ~
18779 \begin_inset space ~
18787 このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
18790 \begin_layout Description
18791 \begin_inset Flex Code
18794 \begin_layout Plain Layout
18796 \begin_inset space ~
18800 \begin_inset space ~
18808 このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
18811 \begin_layout Description
18812 \begin_inset Flex Code
18815 \begin_layout Plain Layout
18817 \begin_inset space ~
18825 変換されたファイルのファイル形式。これは、LyXが知っている書式名でなくてはなりません(
18826 \begin_inset Flex MenuItem
18829 \begin_layout Plain Layout
18830 ツール\SpecialChar \menuseparator
18836 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。
18839 \begin_layout Description
18840 \begin_inset Flex Code
18843 \begin_layout Plain Layout
18845 \begin_inset space ~
18853 変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
18856 \begin_layout Subsection
18860 \begin_layout Standard
18862 \begin_inset Flex Code
18865 \begin_layout Plain Layout
18871 \SpecialChar \ldots{}
18873 \begin_inset Flex Code
18876 \begin_layout Plain Layout
18882 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
18883 \begin_inset Flex Code
18886 \begin_layout Plain Layout
18895 \begin_layout Section
18899 \begin_layout Standard
18900 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
18901 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
18904 \begin_layout Standard
18905 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
18908 \begin_layout Standard
18912 \begin_layout Description
18913 \begin_inset Flex Code
18916 \begin_layout Plain Layout
18917 $$AbsOrRelPathMaster
18922 LyX親文書への絶対ファイルパスないしは相対ファイルパス
18925 \begin_layout Description
18926 \begin_inset Flex Code
18929 \begin_layout Plain Layout
18930 $$AbsOrRelPathParent
18935 LyX文書への絶対ファイルパスないしは相対ファイルパス
18938 \begin_layout Description
18939 \begin_inset Flex Code
18942 \begin_layout Plain Layout
18951 \begin_layout Description
18952 \begin_inset Flex Code
18955 \begin_layout Plain Layout
18964 \begin_layout Description
18965 \begin_inset Flex Code
18968 \begin_layout Plain Layout
18970 \begin_inset Quotes eld
18974 \begin_inset Quotes erd
18983 \begin_inset Flex Code
18986 \begin_layout Plain Layout
18992 と云う名のファイルの中身を展開します。
18995 \begin_layout Description
18996 \begin_inset Flex Code
18999 \begin_layout Plain Layout
19008 \begin_layout Description
19009 \begin_inset Flex Code
19012 \begin_layout Plain Layout
19018 外部素材ダイアログで指定されたファイルのファイル名。これはLyX文書への絶対パスでも良いですし、相対パスでも構いません。
19021 \begin_layout Description
19022 \begin_inset Flex Code
19025 \begin_layout Plain Layout
19032 \begin_inset Flex Code
19035 \begin_layout Plain Layout
19041 のパス部分(LyX文書への絶対パス名か相対パス名)
19044 \begin_layout Description
19045 \begin_inset Flex Code
19048 \begin_layout Plain Layout
19057 \begin_layout Description
19058 \begin_inset Flex Code
19061 \begin_layout Plain Layout
19070 \begin_layout Description
19071 \begin_inset Flex Code
19074 \begin_layout Plain Layout
19080 このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、LyXに同梱されているヘルパースクリプト群を示したりするのに使用されます。
19083 \begin_layout Description
19084 \begin_inset Flex Code
19087 \begin_layout Plain Layout
19093 元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
19096 \begin_layout Standard
19097 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を
19098 \begin_inset Flex Code
19101 \begin_layout Plain Layout
19102 $$AbsPath$$Basename$$Extension
19110 \begin_layout Standard
19111 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
19112 \begin_inset Flex Code
19115 \begin_layout Plain Layout
19122 \begin_inset Flex Code
19125 \begin_layout Plain Layout
19132 \begin_inset Flex Code
19135 \begin_layout Plain Layout
19141 コマンドは、これらに加えて以下の代入もサポートします。
19144 \begin_layout Description
19145 \begin_inset Flex Code
19148 \begin_layout Plain Layout
19157 \begin_layout Description
19158 \begin_inset Flex Code
19161 \begin_layout Plain Layout
19170 \begin_layout Description
19171 \begin_inset Flex Code
19174 \begin_layout Plain Layout
19183 \begin_layout Description
19184 \begin_inset Flex Code
19187 \begin_layout Plain Layout
19196 \begin_layout Standard
19197 \begin_inset Flex Code
19200 \begin_layout Plain Layout
19207 \begin_inset Flex Code
19210 \begin_layout Plain Layout
19217 \begin_inset Flex Code
19220 \begin_layout Plain Layout
19226 コマンドが有効にされていれば、以下の代入もサポートされます。
19229 \begin_layout Description
19230 \begin_inset Flex Code
19233 \begin_layout Plain Layout
19242 \begin_layout Description
19243 \begin_inset Flex Code
19246 \begin_layout Plain Layout
19255 \begin_layout Description
19256 \begin_inset Flex Code
19259 \begin_layout Plain Layout
19268 \begin_layout Description
19269 \begin_inset Flex Code
19272 \begin_layout Plain Layout
19281 \begin_layout Standard
19282 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
19285 \begin_layout Enumerate
19286 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
19287 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
19290 \begin_layout Enumerate
19291 LaTeXは、相対ファイル名に関して、LyXや入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。LyXにとって相対ファイル名とは、常
19292 にこのファイル名が書かれている文書に対して相対的なものになります。LaTeXにとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一
19293 つの文書しかないときには同じですが、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、LaTeXに提示されるときに変換され
19294 なくてはならないのです。幸い、正しいマクロを選びさえすれば、これはLyXが自動的に行ってくれます。
19297 \begin_layout Standard
19298 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
19301 \begin_layout Itemize
19303 \begin_inset Flex Code
19306 \begin_layout Plain Layout
19315 \begin_layout Itemize
19316 代入された文字列が、LaTeXインプットの一種である場合には、
19317 \begin_inset Flex Code
19320 \begin_layout Plain Layout
19321 $$AbsOrRelPathMaster
19329 \begin_layout Itemize
19330 それ以外ならば、ユーザの選択を尊重するために
19331 \begin_inset Flex Code
19334 \begin_layout Plain Layout
19335 $$AbsOrRelPathParent
19343 \begin_layout Standard
19344 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
19345 \begin_inset Flex Code
19348 \begin_layout Plain Layout
19349 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
19355 \begin_inset Flex Code
19358 \begin_layout Plain Layout
19364 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
19367 \begin_layout Section
19369 \begin_inset CommandInset label
19371 name "sec:セキュリティに関する論点"
19378 \begin_layout Standard
19379 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
19380 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
19381 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
19384 \begin_layout Standard
19385 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、LyXが安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発
19387 \begin_inset Flex Code
19390 \begin_layout Plain Layout
19397 \begin_inset Flex Code
19400 \begin_layout Plain Layout
19406 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
19409 \begin_layout Standard
19410 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
19411 できません。これは、LyXの安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安
19412 全なスクリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
19415 \begin_layout Standard
19416 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
19417 うになるため、一般的には、統御下に置いた状態で
19418 \begin_inset Flex Code
19421 \begin_layout Plain Layout
19427 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
19428 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
19432 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
19433 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されているLyXには、安全でないひな型は決して入ってい
19437 \begin_layout Standard
19438 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
19439 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
19440 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、LyX開発チームに相談してみてください。そしてこの相談は、管理されていない環境下で
19441 これを使用する前に、行うようにしてください。
19444 \begin_layout Chapter
19448 List of functions to be used in layouts
19451 \begin_inset CommandInset label
19453 name "chap:List-of-functions"
19460 \begin_layout Standard
19462 \begin_inset Tabular
19463 <lyxtabular version="3" rows="10" columns="6">
19464 <features tabularvalignment="middle">
19465 <column alignment="left" valignment="top" width="14col%">
19466 <column alignment="left" valignment="top" width="14col%">
19467 <column alignment="left" valignment="top" width="14col%">
19468 <column alignment="left" valignment="top" width="14col%">
19469 <column alignment="left" valignment="top" width="14col%">
19470 <column alignment="left" valignment="top" width="14col%">
19472 <cell alignment="left" valignment="top" usebox="none">
19475 \begin_layout Plain Layout
19481 <cell alignment="left" valignment="top" usebox="none">
19484 \begin_layout Plain Layout
19490 <cell alignment="left" valignment="top" usebox="none">
19493 \begin_layout Plain Layout
19499 <cell alignment="left" valignment="top" usebox="none">
19502 \begin_layout Plain Layout
19508 <cell alignment="left" valignment="top" usebox="none">
19511 \begin_layout Plain Layout
19517 <cell alignment="left" valignment="top" usebox="none">
19520 \begin_layout Plain Layout
19528 <cell alignment="left" valignment="top" usebox="none">
19531 \begin_layout Plain Layout
19537 <cell alignment="left" valignment="top" usebox="none">
19540 \begin_layout Plain Layout
19546 <cell alignment="left" valignment="top" usebox="none">
19549 \begin_layout Plain Layout
19555 <cell alignment="left" valignment="top" usebox="none">
19558 \begin_layout Plain Layout
19564 <cell alignment="left" valignment="top" usebox="none">
19567 \begin_layout Plain Layout
19573 <cell alignment="left" valignment="top" usebox="none">
19576 \begin_layout Plain Layout
19584 <cell alignment="left" valignment="top" usebox="none">
19587 \begin_layout Plain Layout
19593 <cell alignment="left" valignment="top" usebox="none">
19596 \begin_layout Plain Layout
19602 <cell alignment="left" valignment="top" usebox="none">
19605 \begin_layout Plain Layout
19611 <cell alignment="left" valignment="top" usebox="none">
19614 \begin_layout Plain Layout
19620 <cell alignment="left" valignment="top" usebox="none">
19623 \begin_layout Plain Layout
19629 <cell alignment="left" valignment="top" usebox="none">
19632 \begin_layout Plain Layout
19640 <cell alignment="left" valignment="top" usebox="none">
19643 \begin_layout Plain Layout
19649 <cell alignment="left" valignment="top" usebox="none">
19652 \begin_layout Plain Layout
19658 <cell alignment="left" valignment="top" usebox="none">
19661 \begin_layout Plain Layout
19667 <cell alignment="left" valignment="top" usebox="none">
19670 \begin_layout Plain Layout
19676 <cell alignment="left" valignment="top" usebox="none">
19679 \begin_layout Plain Layout
19685 <cell alignment="left" valignment="top" usebox="none">
19688 \begin_layout Plain Layout
19696 <cell alignment="left" valignment="top" usebox="none">
19699 \begin_layout Plain Layout
19705 <cell alignment="left" valignment="top" usebox="none">
19708 \begin_layout Plain Layout
19714 <cell alignment="left" valignment="top" usebox="none">
19717 \begin_layout Plain Layout
19723 <cell alignment="left" valignment="top" usebox="none">
19726 \begin_layout Plain Layout
19732 <cell alignment="left" valignment="top" usebox="none">
19735 \begin_layout Plain Layout
19741 <cell alignment="left" valignment="top" usebox="none">
19744 \begin_layout Plain Layout
19752 <cell alignment="left" valignment="top" usebox="none">
19755 \begin_layout Plain Layout
19761 <cell alignment="left" valignment="top" usebox="none">
19764 \begin_layout Plain Layout
19770 <cell alignment="left" valignment="top" usebox="none">
19773 \begin_layout Plain Layout
19779 <cell alignment="left" valignment="top" usebox="none">
19782 \begin_layout Plain Layout
19788 <cell alignment="left" valignment="top" usebox="none">
19791 \begin_layout Plain Layout
19797 <cell alignment="left" valignment="top" usebox="none">
19800 \begin_layout Plain Layout
19808 <cell alignment="left" valignment="top" usebox="none">
19811 \begin_layout Plain Layout
19817 <cell alignment="left" valignment="top" usebox="none">
19820 \begin_layout Plain Layout
19826 <cell alignment="left" valignment="top" usebox="none">
19829 \begin_layout Plain Layout
19835 <cell alignment="left" valignment="top" usebox="none">
19838 \begin_layout Plain Layout
19844 <cell alignment="left" valignment="top" usebox="none">
19847 \begin_layout Plain Layout
19853 <cell alignment="left" valignment="top" usebox="none">
19856 \begin_layout Plain Layout
19864 <cell alignment="left" valignment="top" usebox="none">
19867 \begin_layout Plain Layout
19873 <cell alignment="left" valignment="top" usebox="none">
19876 \begin_layout Plain Layout
19882 <cell alignment="left" valignment="top" usebox="none">
19885 \begin_layout Plain Layout
19891 <cell alignment="left" valignment="top" usebox="none">
19894 \begin_layout Plain Layout
19900 <cell alignment="left" valignment="top" usebox="none">
19903 \begin_layout Plain Layout
19909 <cell alignment="left" valignment="top" usebox="none">
19912 \begin_layout Plain Layout
19920 <cell alignment="left" valignment="top" usebox="none">
19923 \begin_layout Plain Layout
19929 <cell alignment="left" valignment="top" usebox="none">
19932 \begin_layout Plain Layout
19938 <cell alignment="left" valignment="top" usebox="none">
19941 \begin_layout Plain Layout
19947 <cell alignment="left" valignment="top" usebox="none">
19950 \begin_layout Plain Layout
19956 <cell alignment="left" valignment="top" usebox="none">
19959 \begin_layout Plain Layout
19965 <cell alignment="left" valignment="top" usebox="none">
19968 \begin_layout Plain Layout
19976 <cell alignment="left" valignment="top" usebox="none">
19979 \begin_layout Plain Layout
19985 <cell alignment="left" valignment="top" usebox="none">
19988 \begin_layout Plain Layout
19994 <cell alignment="left" valignment="top" usebox="none">
19997 \begin_layout Plain Layout
20003 <cell alignment="left" valignment="top" usebox="none">
20006 \begin_layout Plain Layout
20012 <cell alignment="left" valignment="top" usebox="none">
20015 \begin_layout Plain Layout
20021 <cell alignment="left" valignment="top" usebox="none">
20024 \begin_layout Plain Layout
20038 \begin_layout Standard
20040 \begin_inset Tabular
20041 <lyxtabular version="3" rows="10" columns="6">
20042 <features tabularvalignment="middle">
20043 <column alignment="left" valignment="top" width="14col%">
20044 <column alignment="left" valignment="top" width="14col%">
20045 <column alignment="left" valignment="top" width="14col%">
20046 <column alignment="left" valignment="top" width="14col%">
20047 <column alignment="left" valignment="top" width="14col%">
20048 <column alignment="left" valignment="top" width="14col%">
20050 <cell alignment="left" valignment="top" usebox="none">
20053 \begin_layout Plain Layout
20059 <cell alignment="left" valignment="top" usebox="none">
20062 \begin_layout Plain Layout
20068 <cell alignment="left" valignment="top" usebox="none">
20071 \begin_layout Plain Layout
20077 <cell alignment="left" valignment="top" usebox="none">
20080 \begin_layout Plain Layout
20086 <cell alignment="left" valignment="top" usebox="none">
20089 \begin_layout Plain Layout
20095 <cell alignment="left" valignment="top" usebox="none">
20098 \begin_layout Plain Layout
20106 <cell alignment="left" valignment="top" usebox="none">
20109 \begin_layout Plain Layout
20115 <cell alignment="left" valignment="top" usebox="none">
20118 \begin_layout Plain Layout
20124 <cell alignment="left" valignment="top" usebox="none">
20127 \begin_layout Plain Layout
20133 <cell alignment="left" valignment="top" usebox="none">
20136 \begin_layout Plain Layout
20142 <cell alignment="left" valignment="top" usebox="none">
20145 \begin_layout Plain Layout
20151 <cell alignment="left" valignment="top" usebox="none">
20154 \begin_layout Plain Layout
20162 <cell alignment="left" valignment="top" usebox="none">
20165 \begin_layout Plain Layout
20171 <cell alignment="left" valignment="top" usebox="none">
20174 \begin_layout Plain Layout
20180 <cell alignment="left" valignment="top" usebox="none">
20183 \begin_layout Plain Layout
20189 <cell alignment="left" valignment="top" usebox="none">
20192 \begin_layout Plain Layout
20198 <cell alignment="left" valignment="top" usebox="none">
20201 \begin_layout Plain Layout
20207 <cell alignment="left" valignment="top" usebox="none">
20210 \begin_layout Plain Layout
20218 <cell alignment="left" valignment="top" usebox="none">
20221 \begin_layout Plain Layout
20227 <cell alignment="left" valignment="top" usebox="none">
20230 \begin_layout Plain Layout
20236 <cell alignment="left" valignment="top" usebox="none">
20239 \begin_layout Plain Layout
20245 <cell alignment="left" valignment="top" usebox="none">
20248 \begin_layout Plain Layout
20254 <cell alignment="left" valignment="top" usebox="none">
20257 \begin_layout Plain Layout
20263 <cell alignment="left" valignment="top" usebox="none">
20266 \begin_layout Plain Layout
20274 <cell alignment="left" valignment="top" usebox="none">
20277 \begin_layout Plain Layout
20283 <cell alignment="left" valignment="top" usebox="none">
20286 \begin_layout Plain Layout
20292 <cell alignment="left" valignment="top" usebox="none">
20295 \begin_layout Plain Layout
20301 <cell alignment="left" valignment="top" usebox="none">
20304 \begin_layout Plain Layout
20310 <cell alignment="left" valignment="top" usebox="none">
20313 \begin_layout Plain Layout
20319 <cell alignment="left" valignment="top" usebox="none">
20322 \begin_layout Plain Layout
20330 <cell alignment="left" valignment="top" usebox="none">
20333 \begin_layout Plain Layout
20339 <cell alignment="left" valignment="top" usebox="none">
20342 \begin_layout Plain Layout
20348 <cell alignment="left" valignment="top" usebox="none">
20351 \begin_layout Plain Layout
20357 <cell alignment="left" valignment="top" usebox="none">
20360 \begin_layout Plain Layout
20366 <cell alignment="left" valignment="top" usebox="none">
20369 \begin_layout Plain Layout
20375 <cell alignment="left" valignment="top" usebox="none">
20378 \begin_layout Plain Layout
20386 <cell alignment="left" valignment="top" usebox="none">
20389 \begin_layout Plain Layout
20395 <cell alignment="left" valignment="top" usebox="none">
20398 \begin_layout Plain Layout
20404 <cell alignment="left" valignment="top" usebox="none">
20407 \begin_layout Plain Layout
20413 <cell alignment="left" valignment="top" usebox="none">
20416 \begin_layout Plain Layout
20422 <cell alignment="left" valignment="top" usebox="none">
20425 \begin_layout Plain Layout
20431 <cell alignment="left" valignment="top" usebox="none">
20434 \begin_layout Plain Layout
20442 <cell alignment="left" valignment="top" usebox="none">
20445 \begin_layout Plain Layout
20451 <cell alignment="left" valignment="top" usebox="none">
20454 \begin_layout Plain Layout
20460 <cell alignment="left" valignment="top" usebox="none">
20463 \begin_layout Plain Layout
20469 <cell alignment="left" valignment="top" usebox="none">
20472 \begin_layout Plain Layout
20478 <cell alignment="left" valignment="top" usebox="none">
20481 \begin_layout Plain Layout
20487 <cell alignment="left" valignment="top" usebox="none">
20490 \begin_layout Plain Layout
20498 <cell alignment="left" valignment="top" usebox="none">
20501 \begin_layout Plain Layout
20507 <cell alignment="left" valignment="top" usebox="none">
20510 \begin_layout Plain Layout
20516 <cell alignment="left" valignment="top" usebox="none">
20519 \begin_layout Plain Layout
20525 <cell alignment="left" valignment="top" usebox="none">
20528 \begin_layout Plain Layout
20534 <cell alignment="left" valignment="top" usebox="none">
20537 \begin_layout Plain Layout
20543 <cell alignment="left" valignment="top" usebox="none">
20546 \begin_layout Plain Layout
20554 <cell alignment="left" valignment="top" usebox="none">
20557 \begin_layout Plain Layout
20563 <cell alignment="left" valignment="top" usebox="none">
20566 \begin_layout Plain Layout
20572 <cell alignment="left" valignment="top" usebox="none">
20575 \begin_layout Plain Layout
20581 <cell alignment="left" valignment="top" usebox="none">
20584 \begin_layout Plain Layout
20590 <cell alignment="left" valignment="top" usebox="none">
20593 \begin_layout Plain Layout
20599 <cell alignment="left" valignment="top" usebox="none">
20602 \begin_layout Plain Layout
20616 \begin_layout Chapter
20619 Names of available colors to be used in layouts
20620 \begin_inset CommandInset label
20622 name "chap:Names-of-colors"
20629 \begin_layout Standard
20632 The colors listed here are the standard colors and the those that you can
20633 adjust in the LyX preferences.
20636 \begin_layout Description
20651 No particular color -- clear or default
20654 \begin_layout Description
20660 \begin_layout Description
20666 \begin_layout Description
20672 \begin_layout Description
20678 \begin_layout Description
20684 \begin_layout Description
20690 \begin_layout Description
20696 \begin_layout Description
20702 \begin_layout Description
20705 cursor Cursor color
20708 \begin_layout Description
20711 background Background color
20714 \begin_layout Description
20717 foreground Foreground color
20720 \begin_layout Description
20723 selection Background color of selected text
20726 \begin_layout Description
20729 selectiontext Foreground color of selected text
20732 \begin_layout Description
20735 latex Text color in LaTeX mode
20738 \begin_layout Description
20741 preview The color used for previews
20744 \begin_layout Description
20747 inlinecompletion Inline completion color
20750 \begin_layout Description
20753 nonunique_inlinecompletion Inline completion color for the non-unique part
20756 \begin_layout Description
20759 notelabel Label color for notes
20762 \begin_layout Description
20765 notebg Background color of notes
20768 \begin_layout Description
20771 commentlabel Label color for comments
20774 \begin_layout Description
20777 commentbg Background color of comments
20780 \begin_layout Description
20783 greyedoutlabel Label color for greyedout insets
20786 \begin_layout Description
20789 greyedouttext Color for greyedout inset text
20792 \begin_layout Description
20795 greyedoutbg Background color of greyedout inset
20798 \begin_layout Description
20801 shadedbg Background color of shaded box
20804 \begin_layout Description
20807 listingsbg Background color of listings inset
20810 \begin_layout Description
20813 branchlabel Label color for branches
20816 \begin_layout Description
20819 footlabel Label color for footnotes
20822 \begin_layout Description
20825 indexlabel Label color for index insets
20828 \begin_layout Description
20831 marginlabel Label color for margin notes
20834 \begin_layout Description
20837 phantomtext Text color for phantom insets
20840 \begin_layout Description
20843 urllabel Label color for URL insets
20846 \begin_layout Description
20849 urltext Color for URL inset text
20852 \begin_layout Description
20855 depthbar Color for the depth bars in the margin
20858 \begin_layout Description
20861 language Color for marking foreign language words
20864 \begin_layout Description
20867 command Text color for command insets
20870 \begin_layout Description
20873 commandbg Background color for command insets
20876 \begin_layout Description
20879 commandframe Frame color for command insets
20882 \begin_layout Description
20885 special Special chars text color
20888 \begin_layout Description
20891 graphicsbg Graphics inset background color
20894 \begin_layout Description
20897 math Math inset text color
20900 \begin_layout Description
20903 mathbg Math inset background color
20906 \begin_layout Description
20909 mathmacrobg Macro math inset background color
20912 \begin_layout Description
20915 mathmacrohoverbg Macro math inset background color hovered
20918 \begin_layout Description
20921 mathmacrolabel Macro math label color
20924 \begin_layout Description
20927 mathmacroframe Macro math frame color
20930 \begin_layout Description
20933 mathmacroblend Macro math blended color
20936 \begin_layout Description
20939 mathmacrooldarg Macro template color for old parameters
20942 \begin_layout Description
20945 mathmacronewarg Macro template color for new parameters
20948 \begin_layout Description
20951 mathframe Math inset frame color under focus
20954 \begin_layout Description
20957 mathcorners Math inset frame color not under focus
20960 \begin_layout Description
20963 mathline Math line color
20966 \begin_layout Description
20969 collapsable Collapsable insets text
20972 \begin_layout Description
20975 collapsableframe Collapsable insets frame
20978 \begin_layout Description
20981 insetbg Inset marker background color
20984 \begin_layout Description
20987 insetframe Inset marker frame color
20990 \begin_layout Description
20993 error Error box text color
20996 \begin_layout Description
20999 eolmarker End of line marker color
21002 \begin_layout Description
21005 added_space Added space colour
21008 \begin_layout Description
21011 appendix Appendix marker color
21014 \begin_layout Description
21017 changebar Changebar color
21020 \begin_layout Description
21023 deletedtext Deleted text color
21026 \begin_layout Description
21029 addedtext Added text color
21032 \begin_layout Description
21035 changedtextauthor1 Changed text color author 1
21038 \begin_layout Description
21041 changedtextauthor2 Changed text color author 2
21044 \begin_layout Description
21047 changedtextauthor3 Changed text color author 3
21050 \begin_layout Description
21053 changedtextauthor4 Changed text color author 4
21056 \begin_layout Description
21059 changedtextauthor5 Changed text color author 5
21062 \begin_layout Description
21065 deletedtextmodifier Deleted text modifying color
21068 \begin_layout Description
21071 tabularline Table line color
21074 \begin_layout Description
21077 tabularonoffline Table line color
21080 \begin_layout Description
21083 bottomarea Bottom area color
21086 \begin_layout Description
21089 newpage New page color
21092 \begin_layout Description
21095 pagebreak Page break color
21098 \begin_layout Description
21101 buttonframe Color used for button frame
21104 \begin_layout Description
21107 buttonbg Color used for bottom background
21110 \begin_layout Description
21113 buttonhoverbg Color used for buttom under focus
21116 \begin_layout Description
21119 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
21123 \begin_layout Description
21126 previewframe Preview frame color
21129 \begin_layout Description
21132 inherit Color is inherited
21135 \begin_layout Description
21138 regexpframe Color for regexp frame
21141 \begin_layout Description
21144 ignore For ignoring updates of a color