1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
36 \maintain_unincluded_children false
39 InsetLayout Flex:MenuItem
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
58 #\renewcommand{\code}[1]{{\sffamily #1}}
67 Decoration Conglomerate
71 Decoration Conglomerate
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
89 \language_package default
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
103 \default_output_format default
105 \bibtex_command default
106 \index_command default
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
137 \cite_engine_type default
141 \paperorientation portrait
145 \notefontcolor #0000ff
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
175 \begin_inset Newline newline
187 \begin_layout Plain Layout
189 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
191 \begin_inset CommandInset href
193 target "lyx-docs@lists.lyx.org"
198 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください。
205 \begin_inset Newline newline
209 \begin_inset Newline newline
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
222 \begin_inset Note Note
225 \begin_layout Plain Layout
226 本文書を修正する際には、変更追跡機能を使用してください。これによって、
229 \begin_layout Plain Layout
231 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
239 \begin_layout Chapter
243 \begin_layout Standard
244 この取扱説明書は、\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います。ここでは、
246 \begin_inset Flex Ruby
249 \begin_layout Plain Layout
251 \begin_inset Argument post:1
254 \begin_layout Plain Layout
265 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
269 レイアウトの導入などの題材について論じます。おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
271 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
274 \begin_layout Standard
275 \begin_inset Branch OutDated
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280 outdated is contained in the OutDated branch of this document.
281 By default, this information will not appear in the \SpecialChar LaTeX
290 \begin_layout Chapter
295 \begin_layout Standard
296 本章の目的は、\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
298 \begin_inset Flex MenuItem
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
308 を使って、\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです。一
311 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
312 \begin_inset Flex Code
315 \begin_layout Plain Layout
322 \begin_inset Flex MenuItem
325 \begin_layout Plain Layout
334 \begin_layout Section
335 \begin_inset Flex Code
338 \begin_layout Plain Layout
347 \begin_layout Standard
348 \begin_inset Flex Code
351 \begin_layout Plain Layout
357 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
358 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
360 \begin_inset Flex MenuItem
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
370 ダイアログから変更することができます。\SpecialChar LyX
371 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
373 \begin_inset Flex Code
376 \begin_layout Plain Layout
382 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
385 \begin_layout Subsection
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
393 \begin_layout Plain Layout
399 にある各ファイルは、\SpecialChar LyX
400 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
401 うので、一般的には修正しないことが望まれます。
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
409 \begin_layout Plain Layout
415 このファイルには、様々な既定コマンドが置かれています。
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
423 \begin_layout Plain Layout
429 このファイルには、\SpecialChar LyX
430 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
431 プログラム自体には使用されていませんが、抽出された情報その他は、
432 \begin_inset Flex MenuItem
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
441 \begin_layout Plain Layout
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
461 \begin_layout Plain Layout
468 \begin_inset Flex Code
471 \begin_layout Plain Layout
477 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
486 \begin_layout Plain Layout
493 \begin_inset Flex Code
496 \begin_layout Plain Layout
502 ディレクトリで検出されたレイアウトモジュールの一覧です。
505 \begin_layout Labeling
506 \labelwidthstring 00.00.0000
507 \begin_inset Flex Code
510 \begin_layout Plain Layout
516 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
525 \begin_layout Plain Layout
530 \begin_layout Plain Layout
543 \begin_inset Flex Code
546 \begin_layout Plain Layout
551 \begin_layout Plain Layout
563 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
567 \begin_layout Subsection
571 \begin_layout Standard
573 \begin_inset Flex Code
576 \begin_layout Plain Layout
583 \begin_inset Flex Code
586 \begin_layout Plain Layout
592 に重複して存在します。特定のファイルが両方の場所にある場合には、
593 \begin_inset Flex Code
596 \begin_layout Plain Layout
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
610 \begin_layout Plain Layout
616 このディレクトリには、\SpecialChar LyX
617 で使用されるキー割当を定義している、拡張子が
618 \begin_inset Flex Code
621 \begin_layout Plain Layout
628 \begin_inset Flex Code
631 \begin_layout Plain Layout
637 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
645 \begin_layout Plain Layout
651 このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
659 \begin_layout Plain Layout
665 このディレクトリには、\SpecialChar LyX
666 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
667 \begin_inset Flex Code
670 \begin_layout Plain Layout
676 ファイルは特に注目に値します。各国語版のヘルプ文書は、
677 \begin_inset Flex Code
680 \begin_layout Plain Layout
686 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
687 \begin_inset CommandInset ref
689 reference "cha:LyXの各国語対応"
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
701 \begin_layout Plain Layout
707 このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
708 \begin_inset Flex MenuItem
711 \begin_layout Plain Layout
717 ボタンを押すと、このディレクトリが表示されます。
720 \begin_layout Labeling
721 \labelwidthstring 00.00.0000
722 \begin_inset Flex Code
725 \begin_layout Plain Layout
732 \begin_inset Flex MenuItem
735 \begin_layout Plain Layout
741 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
742 を起動したときに現れるバナーも納められています。
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 このディレクトリには、\SpecialChar LyX
800 \begin_inset Flex Code
803 \begin_layout Plain Layout
809 Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
817 \begin_layout Plain Layout
824 \begin_inset Flex MenuItem
827 \begin_layout Plain Layout
833 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
834 自身が使用するスクリプトもいくつか収められています。
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
842 \begin_layout Plain Layout
849 \begin_inset CommandInset ref
851 reference "sec:ひな型を作成する"
855 で述べられている標準の\SpecialChar LyX
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
864 \begin_layout Plain Layout
870 このディレクトリには、\SpecialChar LyX
872 \begin_inset Flex Code
875 \begin_layout Plain Layout
881 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
884 \begin_layout Subsection
888 \begin_layout Standard
889 これらのファイルは\SpecialChar LyX
890 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
893 \begin_layout Labeling
894 \labelwidthstring 00.00.0000
895 \begin_inset Flex Code
898 \begin_layout Plain Layout
904 このファイルは、\SpecialChar LyX
905 開発陣の名簿です。この内容は、メニュー項目
906 \begin_inset Flex MenuItem
909 \begin_layout Plain Layout
910 ヘルプ\SpecialChar menuseparator
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
924 \begin_layout Plain Layout
930 これは、自動設定プロセスによって使用される\SpecialChar LaTeX
931 スクリプトです。直接実行しないでください。
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
939 \begin_layout Plain Layout
946 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
949 \begin_layout Subsection
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
958 \begin_layout Plain Layout
964 このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
967 \begin_layout Labeling
968 \labelwidthstring 00.00.0000
969 \begin_inset Flex Code
972 \begin_layout Plain Layout
979 \begin_inset Flex MenuItem
982 \begin_layout Plain Layout
989 \begin_inset CommandInset ref
991 reference "chap:外部素材を取り込む"
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1003 \begin_layout Plain Layout
1009 このファイルには、現在\SpecialChar LyX
1010 がサポートしている言語の全一覧が載っています。
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1018 \begin_layout Plain Layout
1024 サポートされているフォントに関する情報が掲載されています。
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1032 \begin_layout Plain Layout
1038 このファイルは、国際化された段落様式の翻訳が収録されています(
1039 \begin_inset CommandInset ref
1041 reference "subsec:段落様式の国際化"
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1053 \begin_layout Plain Layout
1059 このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1061 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1064 \begin_layout Section
1068 \begin_layout Standard
1070 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1071 の設定を変更したいと思うかもしれません。
1072 \begin_inset Flex Code
1075 \begin_layout Plain Layout
1081 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1082 \begin_inset Flex MenuItem
1085 \begin_layout Plain Layout
1086 ヘルプ\SpecialChar menuseparator
1092 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1093 \begin_inset Flex Code
1096 \begin_layout Plain Layout
1103 \begin_inset Flex Code
1106 \begin_layout Plain Layout
1113 \begin_inset Flex Code
1116 \begin_layout Plain Layout
1122 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1125 \begin_layout Standard
1126 わかりやすくするために、いくつか例を挙げましょう。
1129 \begin_layout Itemize
1130 \begin_inset Flex MenuItem
1133 \begin_layout Plain Layout
1134 ツール\SpecialChar menuseparator
1141 \begin_inset Flex Code
1144 \begin_layout Plain Layout
1151 \begin_inset Flex Code
1154 \begin_layout Plain Layout
1163 \begin_layout Itemize
1164 \begin_inset Flex MenuItem
1167 \begin_layout Plain Layout
1168 ツール\SpecialChar menuseparator
1174 を使用して環境構成を行うと、\SpecialChar LyX
1176 \begin_inset Flex Code
1179 \begin_layout Plain Layout
1185 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1186 \begin_inset Flex Code
1189 \begin_layout Plain Layout
1196 \begin_inset Flex MenuItem
1199 \begin_layout Plain Layout
1200 文書\SpecialChar menuseparator
1206 ダイアログのクラス一覧に表示されるようになることを意味します。
1209 \begin_layout Itemize
1210 たとえば、\SpecialChar LyX
1211 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1213 \begin_inset Flex Code
1216 \begin_layout Plain Layout
1223 \begin_inset Flex MenuItem
1226 \begin_layout Plain Layout
1232 メニュー項目はこれらを開くようになります!
1235 \begin_layout Section
1240 \begin_layout Standard
1241 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1242 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1243 どのディレクトリを使用するか指定するのです。
1246 \begin_layout Standard
1249 \begin_inset Flex Code
1252 \begin_layout Plain Layout
1262 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1264 \begin_inset Flex Code
1267 \begin_layout Plain Layout
1273 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1274 は、初めて\SpecialChar LyX
1276 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1277 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1278 \begin_inset Flex Code
1281 \begin_layout Plain Layout
1287 を特定の値に設定しても、全く同じ効果があります。
1290 \begin_layout Standard
1291 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1292 \begin_inset Flex Code
1295 \begin_layout Plain Layout
1301 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1302 クを使用してください。\SpecialChar LyX
1303 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1304 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1305 \begin_inset Flex Code
1308 \begin_layout Plain Layout
1315 \begin_inset Flex MenuItem
1318 \begin_layout Plain Layout
1319 ツール\SpecialChar menuseparator
1325 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1328 \begin_layout Chapter
1332 \begin_layout Standard
1341 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1344 \begin_layout Section
1346 \begin_inset CommandInset label
1355 \begin_layout Standard
1356 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1357 \begin_inset Flex MenuItem
1360 \begin_layout Plain Layout
1361 ツール\SpecialChar menuseparator
1368 \begin_inset Flex MenuItem
1371 \begin_layout Plain Layout
1372 ファイル処理\SpecialChar menuseparator
1379 \begin_inset Flex MenuItem
1382 \begin_layout Plain Layout
1383 新規\SpecialChar ldots
1389 ボタンを押して、登録する新しい形式を定義してください。
1390 \begin_inset Flex MenuItem
1393 \begin_layout Plain Layout
1399 フィールドは、GUI中で形式を認識するために用いられる名称です。
1400 \begin_inset Flex MenuItem
1403 \begin_layout Plain Layout
1409 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1410 \begin_inset Flex MenuItem
1413 \begin_layout Plain Layout
1420 \begin_inset Flex Ruby
1423 \begin_layout Plain Layout
1425 \begin_inset Argument post:1
1428 \begin_layout Plain Layout
1440 \begin_inset Flex MenuItem
1443 \begin_layout Plain Layout
1450 \begin_inset Flex MenuItem
1453 \begin_layout Plain Layout
1454 表示\SpecialChar menuseparator
1463 \begin_layout Standard
1465 \begin_inset Flex MenuItem
1468 \begin_layout Plain Layout
1475 \begin_inset Flex MenuItem
1478 \begin_layout Plain Layout
1484 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1485 \begin_inset Flex MenuItem
1488 \begin_layout Plain Layout
1494 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1495 いることができます。この閲覧プログラムは、\SpecialChar LyX
1497 \begin_inset Flex MenuItem
1500 \begin_layout Plain Layout
1506 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1507 \begin_inset Flex MenuItem
1510 \begin_layout Plain Layout
1519 \begin_layout Standard
1521 \begin_inset Flex MenuItem
1524 \begin_layout Plain Layout
1530 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1532 \begin_inset CommandInset href
1535 target "http://www.iana.org/assignments/media-types/"
1539 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1541 \begin_inset CommandInset href
1543 name "freedesktop.org"
1544 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1548 で指定されているMIME型拡張表を使用しています。
1551 \begin_layout Standard
1552 \begin_inset Flex MenuItem
1555 \begin_layout Plain Layout
1561 オプションは、\SpecialChar LyX
1562 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1563 \begin_inset CommandInset ref
1570 \begin_inset Flex MenuItem
1573 \begin_layout Plain Layout
1574 ファイル\SpecialChar menuseparator
1581 \begin_inset Flex MenuItem
1584 \begin_layout Plain Layout
1590 footlabel Label color for footnotす。
1591 \begin_inset Flex Code
1594 \begin_layout Plain Layout
1600 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1601 \begin_inset Flex Code
1604 \begin_layout Plain Layout
1610 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1613 \begin_layout Standard
1614 \begin_inset Flex MenuItem
1617 \begin_layout Plain Layout
1623 オプションは、\SpecialChar LyX
1624 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1625 \begin_inset Flex MenuItem
1628 \begin_layout Plain Layout
1634 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1635 \begin_inset Flex MenuItem
1638 \begin_layout Plain Layout
1645 \begin_inset Flex MenuItem
1648 \begin_layout Plain Layout
1655 \begin_inset Flex MenuItem
1658 \begin_layout Plain Layout
1665 \begin_inset Flex MenuItem
1668 \begin_layout Plain Layout
1674 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1675 \begin_inset Flex MenuItem
1678 \begin_layout Plain Layout
1685 \begin_inset Flex MenuItem
1688 \begin_layout Plain Layout
1695 \begin_inset Flex MenuItem
1698 \begin_layout Plain Layout
1704 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1705 \begin_inset Flex MenuItem
1708 \begin_layout Plain Layout
1715 \begin_inset Flex MenuItem
1718 \begin_layout Plain Layout
1727 \begin_layout Section
1731 \begin_layout Standard
1732 形式の変換はすべて、\SpecialChar LyX
1733 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1737 \begin_layout Plain Layout
1738 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1744 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1747 \begin_layout Standard
1748 複写子の定義においては、以下の8つの変数を用いることができます。
1751 \begin_layout Labeling
1752 \labelwidthstring 00.00.0000
1753 \begin_inset Flex Code
1756 \begin_layout Plain Layout
1764 \begin_inset Flex MenuItem
1767 \begin_layout Plain Layout
1776 \begin_layout Labeling
1777 \labelwidthstring 00.00.0000
1778 \begin_inset Flex Code
1781 \begin_layout Plain Layout
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Flex Code
1795 \begin_layout Plain Layout
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Flex Code
1809 \begin_layout Plain Layout
1816 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1824 \begin_layout Plain Layout
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1839 \begin_layout Plain Layout
1845 処理されている元の\SpecialChar LyX
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1854 \begin_layout Plain Layout
1861 ファイルのファイル名(ディレクトリパスなし)
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1869 \begin_layout Plain Layout
1879 \begin_layout Standard
1880 最後の変数は、\SpecialChar LaTeX
1887 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1890 \begin_layout Standard
1891 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1892 \begin_inset Flex Code
1895 \begin_layout Plain Layout
1901 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1904 \begin_layout Standard
1905 \begin_inset listings
1909 \begin_layout Plain Layout
1914 \begin_layout Plain Layout
1919 \begin_layout Plain Layout
1921 TOFILE=`basename $2`
1924 \begin_layout Plain Layout
1926 DescriptionE /home/you/pdf/$TOFILE
1932 \begin_inset Flex Code
1935 \begin_layout Plain Layout
1936 /home/you/.lyx/scripts/pdfcopier.sh
1941 のような、自身のローカル\SpecialChar LyX
1942 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1943 \begin_inset Flex MenuItem
1946 \begin_layout Plain Layout
1947 ツール\SpecialChar menuseparator
1954 \begin_inset Flex MenuItem
1957 \begin_layout Plain Layout
1958 ファイル処理\SpecialChar menuseparator
1965 \begin_inset Flex MenuItem
1968 \begin_layout Plain Layout
1974 形式—あるいは他のPDF形式のうちどれか—を選択し、
1975 \begin_inset Flex MenuItem
1978 \begin_layout Plain Layout
1985 \begin_inset Flex Code
1988 \begin_layout Plain Layout
1989 pdfcopier.sh $$i $$o
1997 \begin_layout Standard
1998 複写子は、\SpecialChar LyX
1999 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
2001 \begin_inset Flex MenuItem
2004 \begin_layout Plain Layout
2011 \begin_inset Flex MenuItem
2014 \begin_layout Plain Layout
2016 \begin_inset space ~
2024 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2025 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2026 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2030 \begin_layout Plain Layout
2031 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2032 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2033 \begin_inset Flex MenuItem
2036 \begin_layout Plain Layout
2041 \begin_layout Plain Layout
2054 \begin_inset Flex MenuItem
2057 \begin_layout Plain Layout
2058 /path/to/filename.lyx
2064 \begin_inset Flex MenuItem
2067 \begin_layout Plain Layout
2068 /path/to/filename.html.L
2072 \begin_layout Plain Layout
2093 \begin_layout Section
2095 \begin_inset CommandInset label
2104 \begin_layout Standard
2105 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2106 \begin_inset Flex MenuItem
2109 \begin_layout Plain Layout
2110 ツール\SpecialChar menuseparator
2111 設定\SpecialChar menuseparator
2112 ファイル処理\SpecialChar menuseparator
2121 \begin_layout Standard
2122 新規に変換子を定義するには、ドロップダウンリストから
2123 \begin_inset Flex MenuItem
2126 \begin_layout Plain Layout
2133 \begin_inset Flex MenuItem
2136 \begin_layout Plain Layout
2142 を選択し、変換に必要なコマンドを入力してから
2143 \begin_inset Flex MenuItem
2146 \begin_layout Plain Layout
2152 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2155 \begin_layout Labeling
2156 \labelwidthstring 00.00.0000
2157 \begin_inset Flex Code
2160 \begin_layout Plain Layout
2170 \begin_layout Labeling
2171 \labelwidthstring 00.00.0000
2172 \begin_inset Flex Code
2175 \begin_layout Plain Layout
2184 \begin_layout Labeling
2185 \labelwidthstring 00.00.0000
2186 \begin_inset Flex Code
2189 \begin_layout Plain Layout
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2203 \begin_layout Plain Layout
2209 入力ファイルのベースファイル名(拡張子をとった部分)
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2217 \begin_layout Plain Layout
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2231 \begin_layout Plain Layout
2237 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2245 \begin_layout Plain Layout
2254 \begin_layout Standard
2255 \begin_inset Flex MenuItem
2258 \begin_layout Plain Layout
2264 フィールドには、以下のフラグをコンマで区切って入力することができます。
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Flex Code
2272 \begin_layout Plain Layout
2278 この変換子が\SpecialChar LaTeX
2279 の一種を実行することを示します。これによって、\SpecialChar LyX
2281 エラーログに記録を残せるようになります。
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2289 \begin_layout Plain Layout
2295 変換に\SpecialChar LaTeX
2297 \begin_inset Flex MenuItem
2300 \begin_layout Plain Layout
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2314 \begin_layout Plain Layout
2321 \begin_inset Quotes erd
2325 \begin_inset Quotes erd
2328 なファイル、つまり\SpecialChar LyX
2329 が書き出す\SpecialChar LaTeX
2331 \begin_inset Flex Code
2334 \begin_layout Plain Layout
2340 のない\SpecialChar LaTeX
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2349 \begin_layout Plain Layout
2358 \begin_layout Standard
2360 \begin_inset Flex MenuItem
2363 \begin_layout Plain Layout
2365 \begin_inset space ~
2369 \begin_inset space ~
2377 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2385 \begin_layout Plain Layout
2392 \begin_inset Flex Code
2395 \begin_layout Plain Layout
2401 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2402 \begin_inset Flex Code
2405 \begin_layout Plain Layout
2406 script < infile.out > infile.log
2411 の形で実行されるようになります。引数には
2412 \begin_inset Flex Code
2415 \begin_layout Plain Layout
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Flex Code
2429 \begin_layout Plain Layout
2435 これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2436 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2438 \begin_inset Flex Code
2441 \begin_layout Plain Layout
2447 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2448 \begin_inset Newline newline
2451 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2456 \begin_inset Flex Code
2459 \begin_layout Plain Layout
2466 \begin_inset Flex Code
2469 \begin_layout Plain Layout
2475 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2478 \begin_layout Standard
2479 最後の3つは、\SpecialChar LyX
2480 とともに導入される変換子には、現在いずれも使用されておりません。
2483 \begin_layout Standard
2484 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2485 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2487 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2488 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2489 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2490 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2491 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2492 設定は、\SpecialChar LaTeX
2493 からPDFへ変換するのに、以下の3つの方法を
2497 \begin_layout Enumerate
2499 \begin_inset Flex MenuItem
2502 \begin_layout Plain Layout
2511 \begin_layout Enumerate
2512 (DVIと)PostScriptを経由して
2513 \begin_inset Flex MenuItem
2516 \begin_layout Plain Layout
2525 \begin_layout Enumerate
2527 \begin_inset Flex MenuItem
2530 \begin_layout Plain Layout
2539 \begin_layout Enumerate
2541 \begin_inset Flex MenuItem
2544 \begin_layout Plain Layout
2554 \begin_layout Enumerate
2556 \begin_inset Flex MenuItem
2559 \begin_layout Plain Layout
2569 \begin_layout Standard
2571 \begin_inset CommandInset ref
2573 reference "sec:ファイル形式"
2577 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2578 \begin_inset Flex MenuItem
2581 \begin_layout Plain Layout
2588 \begin_inset Flex MenuItem
2591 \begin_layout Plain Layout
2598 \begin_inset Flex MenuItem
2601 \begin_layout Plain Layout
2608 \begin_inset Flex MenuItem
2611 \begin_layout Plain Layout
2618 \begin_inset Flex MenuItem
2621 \begin_layout Plain Layout
2628 \begin_inset Flex MenuItem
2631 \begin_layout Plain Layout
2638 \begin_inset Flex MenuItem
2641 \begin_layout Plain Layout
2648 \begin_inset Flex MenuItem
2651 \begin_layout Plain Layout
2659 \begin_inset Flex MenuItem
2662 \begin_layout Plain Layout
2669 \begin_inset Flex MenuItem
2672 \begin_layout Plain Layout
2679 用\SpecialChar softhyphen
2680 ) と命名された形式が定義されていて、すべて共通の拡張子
2681 \begin_inset Flex MenuItem
2684 \begin_layout Plain Layout
2690 を持ち、上記で言及した各変換方法に対応しています。
2693 \begin_layout Chapter
2696 \begin_inset CommandInset label
2698 name "cha:LyXの各国語対応"
2705 \begin_layout Standard
2707 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2708 は30言語の翻訳を提供しています。選択した言語は、使用する
2712 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2713 \begin_inset Flex Code
2716 \begin_layout Plain Layout
2725 \begin_layout Standard
2726 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2727 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2728 \begin_inset Flex Ruby
2731 \begin_layout Plain Layout
2733 \begin_inset Argument post:1
2736 \begin_layout Plain Layout
2747 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2748 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2752 \begin_layout Plain Layout
2753 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2754 コミュニティに報いるたいへん素晴らしい方法です!
2760 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2763 \begin_layout Section
2768 \begin_layout Subsection
2769 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2770 \begin_inset Argument 1
2773 \begin_layout Plain Layout
2782 \begin_layout Standard
2785 \begin_inset Flex Code
2788 \begin_layout Plain Layout
2794 ライブラリを使用します。\SpecialChar LyX
2795 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2796 \begin_inset Flex Code
2799 \begin_layout Plain Layout
2805 ファイルが必要です。このファイルが利用可能であれば、そこから
2806 \begin_inset Flex Code
2809 \begin_layout Plain Layout
2816 \begin_inset Flex Code
2819 \begin_layout Plain Layout
2825 ファイルをインストールしなくてはなりません。この全過程は、GNU
2826 \begin_inset Flex Code
2829 \begin_layout Plain Layout
2835 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2837 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2838 開発者メーリングリストにメールを送ってください。
2841 \begin_layout Standard
2842 要約すれば、以下のように行います(xxは言語コードを表します)。
2845 \begin_layout Itemize
2847 ソースコードをチェックアウトしてください(
2848 \begin_inset CommandInset href
2851 target "http://www.lyx.org/HowToUseGIT"
2858 \begin_layout Itemize
2859 \begin_inset Flex Code
2862 \begin_layout Plain Layout
2869 \begin_inset Flex Code
2872 \begin_layout Plain Layout
2879 \begin_inset Flex Code
2882 \begin_layout Plain Layout
2889 \begin_inset Flex Code
2892 \begin_layout Plain Layout
2898 がどこにもない場合には、コンソールからそのディレクトリで
2899 \begin_inset Flex Code
2902 \begin_layout Plain Layout
2908 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2911 \begin_layout Itemize
2912 \begin_inset Flex Code
2915 \begin_layout Plain Layout
2925 \begin_layout Plain Layout
2926 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2934 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2939 \begin_inset Flex Code
2942 \begin_layout Plain Layout
2948 ファイルを編集するための「モード」があります、第
2949 \begin_inset Flex URL
2952 \begin_layout Plain Layout
2954 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2966 メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
2967 \begin_inset Flex Ruby
2970 \begin_layout Plain Layout
2972 \begin_inset Argument post:1
2975 \begin_layout Plain Layout
2986 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
2987 \begin_inset Flex Code
2990 \begin_layout Plain Layout
2996 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2999 \begin_layout Standard
3000 もし、あなたがこれを自身のためだけに行っているのであれば、
3003 \begin_layout Itemize
3004 \begin_inset Flex Code
3007 \begin_layout Plain Layout
3014 \begin_inset Flex Code
3017 \begin_layout Plain Layout
3018 msgfmt -o xx.mo < xx.po
3026 \begin_layout Itemize
3028 \begin_inset Flex Code
3031 \begin_layout Plain Layout
3037 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3038 \begin_inset Flex Code
3041 \begin_layout Plain Layout
3048 \begin_inset Flex Code
3051 \begin_layout Plain Layout
3052 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3060 \begin_layout Standard
3062 \begin_inset Flex Code
3065 \begin_layout Plain Layout
3071 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3072 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3073 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3077 \begin_layout Subsubsection
3081 \begin_layout Standard
3082 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3083 \begin_inset Flex Code
3086 \begin_layout Plain Layout
3092 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU
3093 \begin_inset Flex Code
3096 \begin_layout Plain Layout
3103 \begin_inset Flex Code
3106 \begin_layout Plain Layout
3113 \begin_inset Flex Code
3116 \begin_layout Plain Layout
3117 To[[as in 'From format x to format y']]
3123 \begin_inset Flex Code
3126 \begin_layout Plain Layout
3127 To[[as in 'From page x to page y']]
3132 としなくてはなりません。これによって、これら2つの
3133 \begin_inset Flex Code
3136 \begin_layout Plain Layout
3143 \begin_inset Flex Code
3146 \begin_layout Plain Layout
3152 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3155 \begin_layout Standard
3156 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3158 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3161 \begin_layout Subsection
3165 \begin_layout Standard
3167 \begin_inset Flex MenuItem
3170 \begin_layout Plain Layout
3176 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3180 \begin_layout Plain Layout
3181 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3186 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3187 はこれを自動的に使用します。\SpecialChar LyX
3189 \begin_inset Flex Code
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3199 \begin_inset Flex Code
3202 \begin_layout Plain Layout
3208 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3209 \begin_inset Flex Code
3212 \begin_layout Plain Layout
3218 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3222 \begin_layout Itemize
3224 \begin_inset CommandInset href
3226 name "http://www.lyx.org/Translation"
3227 target "http://www.lyx.org/Translation"
3231 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3232 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3235 \begin_layout Standard
3236 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3239 \begin_layout Itemize
3240 文書化チームに所属してください!そのための情報が
3241 \begin_inset Flex Code
3244 \begin_layout Plain Layout
3251 \begin_inset Flex MenuItem
3254 \begin_layout Plain Layout
3255 ヘルプ\SpecialChar menuseparator
3262 \begin_inset Flex Code
3265 \begin_layout Plain Layout
3274 \begin_layout Itemize
3275 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3276 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3278 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3283 \begin_layout Itemize
3284 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3285 \begin_inset Flex Code
3288 \begin_layout Plain Layout
3294 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3295 \begin_inset Newline newline
3301 \begin_inset Note Greyedout
3304 \begin_layout Plain Layout
3310 For a complex document with external material (images, etc.), if you make
3312 \begin_inset space \thinspace{}
3316 \begin_inset space \space{}
3319 in a temp dir, beware that the links to external material may be broken
3320 when the document is moved to a different place.
3321 The best way is to retrieve the \SpecialChar LyX
3323 \begin_inset Flex URL
3326 \begin_layout Plain Layout
3328 http://www.lyx.org/HowToUseGIT
3333 ) and to edit the doc file in place.
3341 \begin_layout Itemize
3343 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3344 \begin_inset CommandInset href
3346 name "http://www.lyx.org/trac/timeline"
3347 target "http://www.lyx.org/trac/timeline"
3351 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3354 \begin_layout Standard
3355 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3358 \begin_layout Standard
3359 \begin_inset Branch OutDated
3362 \begin_layout Section
3363 International Keyboard Support
3366 \begin_layout Standard
3369 [Editor's Note: The following section is by
3377 It needs to be fixed to conform to the new Documentation Style sheet and
3378 to make use of the new v1.0 features.
3379 The whole thing also needs to be merged with the section following it.-jw
3380 It may also be badly out of date.-rh (2008)]
3383 \begin_layout Subsection
3384 Defining Own Keymaps: Keymap File Format
3387 \begin_layout Standard
3388 Let's look at a keyboard definition file a little closer.
3389 It is a plain text file defining
3392 \begin_layout Itemize
3393 key-to-key or key-to-string translations
3396 \begin_layout Itemize
3400 \begin_layout Itemize
3401 dead keys exceptions
3404 \begin_layout Standard
3405 To define key-to-key or key-to-string translation, use this command:
3408 \begin_layout Quotation
3409 \begin_inset Flex Code
3412 \begin_layout Plain Layout
3421 \begin_inset Flex Code
3424 \begin_layout Plain Layout
3433 \begin_layout Standard
3435 \begin_inset Flex Code
3438 \begin_layout Plain Layout
3444 is the key to be translated and
3445 \begin_inset Flex Code
3448 \begin_layout Plain Layout
3454 is the string to be inserted into the document.
3455 To define dead keys, use:
3458 \begin_layout Quotation
3459 \begin_inset Flex Code
3462 \begin_layout Plain Layout
3471 \begin_inset Flex Code
3474 \begin_layout Plain Layout
3483 \begin_layout Standard
3485 \begin_inset Flex Code
3488 \begin_layout Plain Layout
3494 is a keyboard key and
3495 \begin_inset Flex Code
3498 \begin_layout Plain Layout
3505 The following dead keys are supported (shortcut name is in parentheses):
3508 \begin_layout Quotation
3512 \begin_inset space \hfill{}
3518 \begin_layout Quotation
3520 \begin_inset space \hfill{}
3528 \begin_layout Quotation
3530 \begin_inset space \hfill{}
3538 \begin_layout Quotation
3540 \begin_inset space \hfill{}
3548 \begin_layout Quotation
3550 \begin_inset space \hfill{}
3558 \begin_layout Quotation
3560 \begin_inset space \hfill{}
3567 \begin_layout Plain Layout
3579 \begin_layout Quotation
3581 \begin_inset space \hfill{}
3589 \begin_layout Quotation
3591 \begin_inset space \hfill{}
3598 \begin_layout Plain Layout
3610 \begin_layout Quotation
3612 \begin_inset space \hfill{}
3620 \begin_layout Quotation
3622 \begin_inset space \hfill{}
3630 \begin_layout Quotation
3632 \begin_inset space \hfill{}
3639 \begin_layout Plain Layout
3651 \begin_layout Quotation
3653 \begin_inset space \hfill{}
3664 \begin_layout Plain Layout
3676 \begin_layout Quotation
3678 \begin_inset space \hfill{}
3686 \begin_layout Quotation
3687 hungarian umlaut (hug)
3688 \begin_inset space \hfill{}
3696 \begin_layout Quotation
3698 \begin_inset space \hfill{}
3706 \begin_layout Quotation
3708 \begin_inset space \hfill{}
3719 \begin_layout Plain Layout
3731 \begin_layout Standard
3732 Since in many international keyboards there are exceptions to what some
3733 dead keys should do, you can define them using
3736 \begin_layout Quotation
3737 \begin_inset Flex Code
3740 \begin_layout Plain Layout
3748 deadkey key outstring
3751 \begin_layout Standard
3752 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3756 \begin_layout Quotation
3757 \begin_inset Flex Code
3760 \begin_layout Plain Layout
3773 \begin_layout Standard
3774 to make it work correctly.
3775 Also, you have to define as exceptions dead keys over i and j, to remove
3776 the dot from them before inserting an accent mark.
3777 I will change this when the time comes, but so far I haven't had time.
3780 \begin_layout Standard
3781 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3784 \begin_inset Flex Code
3787 \begin_layout Plain Layout
3793 have different meaning.
3795 \begin_inset Flex Code
3798 \begin_layout Plain Layout
3804 marks comments, quotes start and end \SpecialChar LaTeX
3806 To enter quote, you'll need to use
3807 \begin_inset Flex Code
3810 \begin_layout Plain Layout
3819 \begin_inset Flex Code
3822 \begin_layout Plain Layout
3829 \begin_inset Flex Code
3832 \begin_layout Plain Layout
3843 \begin_layout Standard
3844 If you make a keyboard description file that works for your language, please
3845 mail it to me, so I can include it in the next keymap distribution.
3848 \begin_layout Standard
3849 More keywords will be supported in keymap configuration file in future,
3853 \begin_layout Itemize
3854 \begin_inset Flex Code
3857 \begin_layout Plain Layout
3868 \begin_inset space \hfill{}
3872 \begin_inset Flex Code
3875 \begin_layout Plain Layout
3884 \begin_layout Itemize
3885 \begin_inset Flex Code
3888 \begin_layout Plain Layout
3899 \begin_inset space \hfill{}
3903 \begin_inset Flex Code
3906 \begin_layout Plain Layout
3912 an external keymap translation program
3915 \begin_layout Standard
3916 Also, it should look into
3917 \begin_inset Flex Code
3920 \begin_layout Plain Layout
3926 file for defaults, too (for example, a
3927 \begin_inset Flex Code
3930 \begin_layout Plain Layout
3938 option to include default keyboard).
3946 \begin_layout Section
3948 \begin_inset CommandInset label
3957 \begin_layout Standard
3958 \begin_inset Note Note
3961 \begin_layout Plain Layout
3962 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3965 \begin_layout Plain Layout
3974 \begin_layout Standard
3976 \begin_inset Flex Code
3979 \begin_layout Plain Layout
3986 \begin_inset Flex Code
3989 \begin_layout Plain Layout
3995 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3998 \begin_layout Subsection
4002 \begin_layout Standard
4003 \begin_inset Flex Code
4006 \begin_layout Plain Layout
4012 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
4013 \begin_inset Flex Code
4016 \begin_layout Plain Layout
4022 ファイルは、以下の各項で説明するように、
4023 \begin_inset Flex Code
4026 \begin_layout Plain Layout
4033 \begin_inset Flex Code
4036 \begin_layout Plain Layout
4043 \begin_inset Flex Code
4046 \begin_layout Plain Layout
4053 \begin_inset Flex Code
4056 \begin_layout Plain Layout
4065 \begin_layout Labeling
4066 \labelwidthstring 00.00.0000
4067 \begin_inset Flex Code
4070 \begin_layout Plain Layout
4079 \begin_layout LyX-Code
4094 \begin_layout Standard
4107 中では、二重引用符(")とバックスラッシュ(
4111 )を付けてエスケープしなくてはならないことに注意してください。
4114 \begin_layout Standard
4115 \begin_inset Flex MenuItem
4118 \begin_layout Plain Layout
4125 \begin_inset Flex MenuItem
4128 \begin_layout Plain Layout
4135 \begin_inset Flex MenuItem
4138 \begin_layout Plain Layout
4147 \begin_layout LyX-Code
4153 \begin_layout Standard
4157 \begin_layout Labeling
4158 \labelwidthstring 00.00.0000
4159 \begin_inset Flex Code
4162 \begin_layout Plain Layout
4171 \begin_layout LyX-Code
4180 \begin_layout Standard
4189 のアクセントとするものです。これはデッドキー
4193 \begin_layout Plain Layout
4198 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4202 のようなウムラウトのついた文字は、このようにして出すことができます。
4210 \begin_layout Standard
4223 の後に許可文字ではないその文字が出力として表示されます。
4224 \begin_inset Flex MenuItem
4227 \begin_layout Plain Layout
4238 \begin_inset Flex MenuItem
4241 \begin_layout Plain Layout
4247 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4250 \begin_layout Standard
4251 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4254 \begin_layout LyX-Code
4257 kmod ' acute aeiouAEIOU
4260 \begin_layout Labeling
4261 \labelwidthstring 00.00.0000
4262 \begin_inset Flex Code
4265 \begin_layout Plain Layout
4274 \begin_layout LyX-Code
4283 \begin_layout Standard
4297 \begin_inset Flex Code
4300 \begin_layout Plain Layout
4308 宣言で打鍵キーを既に割り当てられてなくてはならず、
4320 の集合に属していてはなりません。こうして
4333 \begin_inset Flex Code
4336 \begin_layout Plain Layout
4363 \begin_inset Flex Code
4366 \begin_layout Plain Layout
4377 \begin_layout Standard
4378 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4381 \begin_layout LyX-Code
4395 \begin_layout Labeling
4396 \labelwidthstring 00.00.0000
4397 \begin_inset Flex Code
4400 \begin_layout Plain Layout
4409 \begin_layout LyX-Code
4418 \begin_layout Standard
4419 これはなかなか難解になってきます。これは
4444 \begin_inset Flex Code
4447 \begin_layout Plain Layout
4455 コマンドで設定されていなくてはなりません。
4458 \begin_layout Standard
4459 \begin_inset Flex Code
4462 \begin_layout Plain Layout
4471 \begin_layout LyX-Code
4474 kmod ; acute aeioyvhAEIOYVH
4478 kcomb acute umlaut iyIY
4481 \begin_layout Standard
4483 \begin_inset Flex MenuItem
4486 \begin_layout Plain Layout
4493 \begin_inset Flex Code
4496 \begin_layout Plain Layout
4506 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4507 \begin_inset Flex MenuItem
4510 \begin_layout Plain Layout
4517 \begin_inset Flex Code
4520 \begin_layout Plain Layout
4531 \begin_layout Subsection
4535 \begin_layout Standard
4536 \begin_inset Flex Code
4539 \begin_layout Plain Layout
4546 \begin_inset Flex Code
4549 \begin_layout Plain Layout
4555 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4557 \begin_inset Flex Code
4560 \begin_layout Plain Layout
4567 \begin_inset Flex Code
4570 \begin_layout Plain Layout
4579 \begin_layout Standard
4581 \begin_inset Flex Code
4584 \begin_layout Plain Layout
4593 \begin_layout LyX-Code
4606 \begin_layout Standard
4608 \begin_inset Flex MenuItem
4611 \begin_layout Plain Layout
4619 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4622 \begin_layout LyX-Code
4630 \begin_layout Standard
4636 \begin_inset Flex Code
4639 \begin_layout Plain Layout
4648 \begin_inset Flex Code
4651 \begin_layout Plain Layout
4657 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4658 \begin_inset Flex Code
4661 \begin_layout Plain Layout
4670 \begin_layout LyX-Code
4682 \begin_inset Newline newline
4698 \begin_layout Standard
4699 という例があります。\SpecialChar LyX
4700 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4701 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4704 \begin_layout Subsection
4708 \begin_layout Standard
4709 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4710 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4713 \begin_layout Standard
4714 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4715 \begin_inset Flex Code
4718 \begin_layout Plain Layout
4725 \begin_inset Flex MenuItem
4728 \begin_layout Plain Layout
4735 \begin_inset Flex MenuItem
4738 \begin_layout Plain Layout
4744 キー)を、\SpecialChar LyX
4746 \begin_inset Flex Code
4749 \begin_layout Plain Layout
4756 \begin_inset Flex MenuItem
4759 \begin_layout Plain Layout
4765 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4766 \begin_inset Flex MenuItem
4769 \begin_layout Plain Layout
4775 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4776 \begin_inset Flex MenuItem
4779 \begin_layout Plain Layout
4786 \begin_inset Flex MenuItem
4789 \begin_layout Plain Layout
4795 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4796 はビープを鳴らして文句を付けます。デッドキーの後に
4797 \begin_inset Flex MenuItem
4800 \begin_layout Plain Layout
4806 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4808 \begin_inset Flex MenuItem
4811 \begin_layout Plain Layout
4817 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4820 \begin_layout Standard
4821 デッドキーを割り当てるのによく用いられる方法は、
4822 \begin_inset Flex MenuItem
4825 \begin_layout Plain Layout
4832 \begin_inset Flex MenuItem
4835 \begin_layout Plain Layout
4842 \begin_inset Flex MenuItem
4845 \begin_layout Plain Layout
4852 \begin_inset Flex MenuItem
4855 \begin_layout Plain Layout
4862 \begin_inset Flex MenuItem
4865 \begin_layout Plain Layout
4872 \begin_inset Flex MenuItem
4875 \begin_layout Plain Layout
4881 」のようなアクセントと一緒に用いる方法です。また、
4882 \begin_inset Flex Code
4885 \begin_layout Plain Layout
4892 \begin_inset Flex Code
4895 \begin_layout Plain Layout
4902 \begin_inset Flex Code
4905 \begin_layout Plain Layout
4912 \begin_inset Flex Code
4915 \begin_layout Plain Layout
4922 \begin_inset Flex MenuItem
4925 \begin_layout Plain Layout
4931 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4932 \begin_inset Flex Code
4935 \begin_layout Plain Layout
4941 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
4946 \begin_layout Plain Layout
4952 \begin_inset Flex Code
4955 \begin_layout Plain Layout
4962 \begin_inset Flex Code
4965 \begin_layout Plain Layout
4972 \begin_inset Flex MenuItem
4975 \begin_layout Plain Layout
4977 \begin_inset space ~
4986 \begin_inset Flex Code
4989 \begin_layout Plain Layout
4996 \begin_inset Flex Code
4999 \begin_layout Plain Layout
5006 \begin_inset Flex MenuItem
5009 \begin_layout Plain Layout
5011 \begin_inset space ~
5020 \begin_inset Flex MenuItem
5023 \begin_layout Plain Layout
5025 \begin_inset space ~
5033 などに割り当てています。私はこの方法でアクセント文字を入力しています。
5039 \begin_inset Flex Code
5042 \begin_layout Plain Layout
5049 \begin_inset Flex MenuItem
5052 \begin_layout Plain Layout
5058 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5065 \begin_inset Flex Code
5068 \begin_layout Plain Layout
5074 の項をご覧ください。ここには完備した一覧があります。
5077 \begin_layout Subsection
5081 \begin_layout Standard
5082 \begin_inset Flex MenuItem
5085 \begin_layout Plain Layout
5086 ツール\SpecialChar menuseparator
5092 ダイアログを使えば、\SpecialChar LyX
5093 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5096 \begin_layout Chapter
5097 文書クラス・レイアウト・ひな型の新規導入
5098 \begin_inset CommandInset label
5105 \begin_inset Argument 1
5108 \begin_layout Plain Layout
5117 \begin_layout Standard
5118 この章では、新しく\SpecialChar LyX
5119 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5120 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5124 \begin_layout Standard
5127 の間の関係をどのように考えるべきか、若干の註釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5128 は、La\SpecialChar TeX
5130 云うことです。実際のところ、\SpecialChar LyX
5131 の観点からは、\SpecialChar LaTeX
5133 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5134 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5135 は、とくに重要な形式ですが、\SpecialChar LyX
5137 について持っている情報のほとんどは、実はプログラム本体には含まれて
5142 \begin_layout Plain Layout
5143 過度に複雑なため、\SpecialChar LyX
5144 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5150 \begin_inset Flex Code
5153 \begin_layout Plain Layout
5159 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5160 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5165 \begin_layout Standard
5166 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5167 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5168 構成体・DocBook構成体・XHTML構成体との
5169 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5171 \begin_inset Flex Code
5174 \begin_layout Plain Layout
5180 について知っていることのほとんど総ては、
5181 \begin_inset Flex Code
5184 \begin_layout Plain Layout
5190 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5192 \begin_inset Flex Code
5195 \begin_layout Plain Layout
5202 \begin_inset Flex Code
5205 \begin_layout Plain Layout
5211 や、文書クラス用の他のレイアウトファイルに取り込まれている
5212 \begin_inset Flex Code
5215 \begin_layout Plain Layout
5221 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5222 \begin_inset Flex Code
5225 \begin_layout Plain Layout
5231 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5232 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5234 \begin_inset Flex Code
5237 \begin_layout Plain Layout
5244 \begin_inset Flex Code
5247 \begin_layout Plain Layout
5253 ファイルを取り込んでいるだけのものです。
5256 \begin_layout Standard
5257 しかしながら、\SpecialChar LyX
5259 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5261 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5262 ます。ある段落様式を\SpecialChar LaTeX
5263 に翻訳する仕方を\SpecialChar LyX
5264 に指示することは、その表示の仕方を\SpecialChar LyX
5265 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5267 式をどのように\SpecialChar LaTeX
5268 に翻訳するかを\SpecialChar LyX
5269 に指示するものではありません(ましてや\SpecialChar LaTeX
5270 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5273 \begin_inset space ~
5277 にどのように翻訳するかを\SpecialChar LyX
5279 \begin_inset space ~
5282 それをどのように表示するかを\SpecialChar LyX
5283 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5286 \begin_layout Standard
5287 もちろん、\SpecialChar LyX
5288 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5289 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5290 力するにあたって、当該段落を\SpecialChar LyX
5291 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5292 が内部的に行うことと、外部的に行う物事の間の区
5293 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5294 \begin_inset CommandInset ref
5296 reference "sec:XHTML出力のタグ"
5303 \begin_layout Section
5304 新しい\SpecialChar LaTeX
5308 \begin_layout Standard
5309 頒布版によっては、\SpecialChar LyX
5310 で使いたい\SpecialChar LaTeX
5311 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5312 パッケージである、Foil\SpecialChar TeX
5313 がないかもしれません。\SpecialChar TeX
5314 Live(2008年以降)やMiK\SpecialChar TeX
5315 のような最近の\SpecialChar LaTeX
5316 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5317 ースが用意されています。たとえば、MiK\SpecialChar TeX
5319 \begin_inset space ~
5322 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5326 \begin_layout Standard
5327 お使いの\SpecialChar LaTeX
5328 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5332 \begin_layout Enumerate
5333 \begin_inset CommandInset href
5336 target "http://www.ctan.org/"
5340 などから欲しいパッケージを入手してください。
5343 \begin_layout Enumerate
5345 \begin_inset Flex Code
5348 \begin_layout Plain Layout
5354 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5355 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5356 \begin_inset Flex Code
5359 \begin_layout Plain Layout
5365 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5366 パッケージは圧縮されていないので、このステップは飛ばすこ
5370 \begin_layout Enumerate
5371 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5372 \begin_inset Separator parbreak
5379 \begin_layout Enumerate
5380 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5383 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5384 \begin_inset Flex Code
5387 \begin_layout Plain Layout
5397 \begin_layout Plain Layout
5403 \begin_inset Flex Code
5406 \begin_layout Plain Layout
5412 を実行してその場所を見つけることもできます。
5417 。「ローカル」\SpecialChar TeX
5419 \begin_inset Flex Code
5422 \begin_layout Plain Layout
5429 \begin_inset Flex Code
5432 \begin_layout Plain Layout
5433 /usr/local/share/texmf/
5440 or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
5444 のような場所になっています。「ユーザー」\SpecialChar TeX
5446 \begin_inset Flex Code
5449 \begin_layout Plain Layout
5456 \begin_inset Flex Code
5459 \begin_layout Plain Layout
5468 \begin_inset Flex Code
5471 \begin_layout Plain Layout
5482 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5483 、「ユーザー」ツリーにはこのような制限はありません。
5484 \begin_inset Newline newline
5487 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5488 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5491 \begin_layout Enumerate
5492 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5494 \begin_inset Flex Code
5497 \begin_layout Plain Layout
5507 に移動します(MiK\SpecialChar TeX
5509 \begin_inset Flex Code
5512 \begin_layout Plain Layout
5528 \begin_layout Plain Layout
5529 これは、英語版でのみ正しいパスになっています。独語版では
5530 \begin_inset Flex Code
5533 \begin_layout Plain Layout
5551 \begin_inset Flex Code
5554 \begin_layout Plain Layout
5560 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5562 ことを行います。たとえばMiK\SpecialChar TeX
5564 \begin_inset space ~
5568 \begin_inset Newline newline
5572 \begin_inset Flex Code
5575 \begin_layout Plain Layout
5578 Documents and Settings
5590 \begin_inset Newline newline
5594 \begin_inset Phantom HPhantom
5597 \begin_layout Plain Layout
5608 \begin_inset Flex Code
5611 \begin_layout Plain Layout
5624 \begin_inset Newline newline
5628 \begin_inset Newline newline
5632 \begin_inset Flex Code
5635 \begin_layout Plain Layout
5658 \begin_inset Newline newline
5665 \begin_layout Enumerate
5666 ここまで来れば、あとは\SpecialChar LaTeX
5667 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5669 \begin_inset Separator parbreak
5676 \begin_layout Enumerate
5679 \begin_inset Flex Code
5682 \begin_layout Plain Layout
5688 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5691 \begin_layout Enumerate
5693 では、パッケージを全ユーザー用に導入した場合には、「Settings
5694 \begin_inset space ~
5697 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5702 \begin_layout Enumerate
5703 最後に、\SpecialChar LyX
5704 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5705 からツール\SpecialChar menuseparator
5706 環境構成メニューを実行して、\SpecialChar LyX
5710 \begin_layout Standard
5711 これでパッケージが導入されました。この例では、文書クラス
5712 \begin_inset Flex Code
5715 \begin_layout Plain Layout
5717 \begin_inset space ~
5726 \begin_inset Flex MenuItem
5729 \begin_layout Plain Layout
5730 文書\SpecialChar menuseparator
5731 設定\SpecialChar menuseparator
5740 \begin_layout Standard
5741 \begin_inset Flex MenuItem
5744 \begin_layout Plain Layout
5745 文書\SpecialChar menuseparator
5746 設定\SpecialChar menuseparator
5752 メニューに列挙されてもいない\SpecialChar LaTeX
5753 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5756 \begin_layout Section
5760 \begin_layout Standard
5761 この節は、レイアウト情報を含む各種\SpecialChar LyX
5762 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5764 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5765 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5768 \begin_layout Standard
5769 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5770 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5771 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5772 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5773 を出していますので、気軽に質問を投げかけてみてください。
5776 \begin_layout Standard
5777 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5778 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5779 文書クラス用の\SpecialChar LyX
5781 他の人々にも有用なモジュールをお書きになった場合には、
5782 \begin_inset CommandInset href
5784 name "LyX Wikiのレイアウトに関する節"
5785 target "http://wiki.lyx.org/Layouts/Layouts"
5790 開発者メーリングリストに投稿して、\SpecialChar LyX
5791 頒布版に同梱することができるようにしてください
5795 \begin_layout Plain Layout
5797 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5798 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5806 \begin_layout Subsection
5808 \begin_inset CommandInset label
5810 name "subsec:レイアウトモジュール"
5817 \begin_layout Standard
5818 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5820 \begin_inset Flex Code
5823 \begin_layout Plain Layout
5829 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5830 に提供するものを指します。しかしながら、\SpecialChar LyX
5832 \begin_inset Flex Code
5835 \begin_layout Plain Layout
5845 にも含めることができます。レイアウトが\SpecialChar LaTeX
5846 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5848 \begin_inset Flex Code
5851 \begin_layout Plain Layout
5857 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5858 イアウトで使用できるという意味において、一面、
5859 \begin_inset Flex Code
5862 \begin_layout Plain Layout
5872 \begin_layout Plain Layout
5873 これらは任意の拡張子をつけることができますが、慣習的に
5874 \begin_inset Flex Code
5877 \begin_layout Plain Layout
5889 \begin_inset Flex Code
5892 \begin_layout Plain Layout
5898 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5899 \begin_inset Flex MenuItem
5902 \begin_layout Plain Layout
5903 文書\SpecialChar menuseparator
5912 \begin_layout Standard
5913 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5914 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5917 \begin_layout Standard
5919 \begin_inset Flex Code
5922 \begin_layout Plain Layout
5928 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
5929 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
5930 \begin_inset Flex MenuItem
5933 \begin_layout Plain Layout
5934 文書\SpecialChar menuseparator
5940 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5942 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5946 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5948 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
5949 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
5953 \begin_layout Subsubsection
5957 \begin_layout Standard
5959 に於けるモジュールは、\SpecialChar LaTeX
5960 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
5961 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
5964 \begin_layout Standard
5967 文書\SpecialChar menuseparator
5968 設定\SpecialChar menuseparator
5971 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5972 は、その文書専属のモジュールだと考えることができます。したがって、
5973 \begin_inset Flex Code
5976 \begin_layout Plain Layout
5982 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5983 2.1では、最新書式は48です)。また、
5984 ローカルレイアウトは、\SpecialChar LyX
5985 1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
5986 1.5またはそれ以前の版に(ローカルレイアウト
5987 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5988 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
5989 1.6で使用できるレイアウト要素のみを使用してください。
5992 \begin_layout Standard
5993 \begin_inset Flex Code
5996 \begin_layout Plain Layout
6002 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
6003 ているかどうかが検証されます。すると、\SpecialChar LyX
6004 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
6006 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
6009 \begin_layout Standard
6010 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
6011 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
6014 \begin_layout Subsection
6015 \begin_inset Flex MenuItem
6018 \begin_layout Plain Layout
6027 \begin_layout Standard
6028 新しく\SpecialChar LaTeX
6029 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
6031 \begin_inset Flex Code
6034 \begin_layout Plain Layout
6041 \begin_inset Flex Code
6044 \begin_layout Plain Layout
6050 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
6051 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
6055 \begin_layout Standard
6056 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
6057 \begin_inset Flex MenuItem
6060 \begin_layout Plain Layout
6067 \begin_inset Flex MenuItem
6070 \begin_layout Plain Layout
6079 \begin_layout Standard
6080 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6084 \begin_layout Plain Layout
6085 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6087 \begin_inset Flex MenuItem
6090 \begin_layout Plain Layout
6096 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6104 \begin_layout LyX-Code
6105 cp report.layout ~/.lyx/layouts/myclass.layout
6108 \begin_layout Standard
6110 \begin_inset Flex Code
6113 \begin_layout Plain Layout
6122 \begin_layout LyX-Code
6125 DeclareLaTeXClass{report}
6128 \begin_layout Standard
6132 \begin_layout LyX-Code
6135 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6138 \begin_layout Standard
6139 のように変更してください。それから、ファイル冒頭辺りに
6142 \begin_layout LyX-Code
6144 \begin_inset Newline newline
6150 \begin_inset Newline newline
6156 \begin_layout Standard
6160 \begin_layout Standard
6163 \begin_inset Flex MenuItem
6166 \begin_layout Plain Layout
6167 ツール\SpecialChar menuseparator
6173 を選択してください。それから\SpecialChar LyX
6174 を再起動し、新規文書を作成してみてください。すると、
6175 \begin_inset Flex MenuItem
6178 \begin_layout Plain Layout
6179 文書\SpecialChar menuseparator
6186 \begin_inset Flex MenuItem
6189 \begin_layout Plain Layout
6195 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6196 \begin_inset Flex Code
6199 \begin_layout Plain Layout
6205 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6206 \begin_inset Flex Code
6209 \begin_layout Plain Layout
6215 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6216 \begin_inset Flex Code
6219 \begin_layout Plain Layout
6226 \begin_inset Flex Code
6229 \begin_layout Plain Layout
6235 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6238 \begin_layout LyX-Code
6242 \begin_layout LyX-Code
6246 \begin_layout LyX-Code
6250 \begin_layout LyX-Code
6254 \begin_layout LyX-Code
6258 \begin_layout Standard
6259 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6262 \begin_layout Standard
6263 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6265 \begin_inset CommandInset ref
6267 reference "sec:テキストクラス"
6274 \begin_layout Standard
6276 \begin_inset Flex Code
6279 \begin_layout Plain Layout
6285 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6286 う。最も簡単なモジュールの例としては、以下のようなものになります。
6289 \begin_layout LyX-Code
6292 DeclareLyXModule{My Package}
6295 \begin_layout LyX-Code
6299 \begin_layout LyX-Code
6300 #Support for mypkg.sty.
6303 \begin_layout LyX-Code
6305 \begin_inset Newline newline
6311 \begin_layout LyX-Code
6313 \begin_inset Newline newline
6319 \begin_layout LyX-Code
6321 \begin_inset Newline newline
6327 \begin_inset Newline newline
6333 \begin_layout Standard
6334 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6335 \begin_inset CommandInset ref
6337 reference "sec:テキストクラス"
6344 \begin_layout Subsection
6345 \begin_inset Flex MenuItem
6348 \begin_layout Plain Layout
6357 \begin_layout Standard
6358 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6359 \begin_inset Flex MenuItem
6362 \begin_layout Plain Layout
6368 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6371 \begin_layout LyX-Code
6377 \begin_layout Standard
6378 という行がないかどうか探してください。もしこれがあれば、
6379 \begin_inset Flex Code
6382 \begin_layout Plain Layout
6383 Declare\SpecialChar LaTeX
6389 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6390 \begin_inset Flex Code
6393 \begin_layout Plain Layout
6400 \begin_inset Flex Code
6403 \begin_layout Plain Layout
6410 \begin_inset Flex Code
6413 \begin_layout Plain Layout
6414 Declare\SpecialChar LaTeX
6424 \begin_layout Plain Layout
6426 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6427 \begin_inset Flex Code
6430 \begin_layout Plain Layout
6444 \begin_layout LyX-Code
6451 \begin_layout Plain Layout
6458 eXClass[thesis,book]{thesis}
6461 \begin_layout Standard
6462 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6464 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6468 \begin_layout Subsection
6470 \begin_inset CommandInset label
6479 \begin_layout Standard
6480 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6481 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6482 添付のひな型をあれこれ見てみるのもよいでしょう。
6485 \begin_layout Standard
6486 ひな型は、通常の文書と同様、\SpecialChar LyX
6487 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6488 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6489 \begin_inset Flex Code
6492 \begin_layout Plain Layout
6501 \begin_inset Flex Code
6504 \begin_layout Plain Layout
6512 などの対応するコマンドをひな型\SpecialChar LyX
6513 ファイルから取り除く必要があります。これは、たとえば
6514 \begin_inset Flex Code
6517 \begin_layout Plain Layout
6524 \begin_inset Flex Code
6527 \begin_layout Plain Layout
6533 のような、どの軽いテキストエディタでも行うことができます。
6536 \begin_layout Standard
6538 \begin_inset Flex Code
6541 \begin_layout Plain Layout
6548 \begin_inset Flex Code
6551 \begin_layout Plain Layout
6557 から使用したいものを同じ場所にコピーし、
6558 \begin_inset Flex MenuItem
6561 \begin_layout Plain Layout
6562 ツール\SpecialChar menuseparator
6563 設定\SpecialChar menuseparator
6569 ダイアログのひな型パスを再定義してください。
6572 \begin_layout Standard
6574 \begin_inset Flex Code
6577 \begin_layout Plain Layout
6583 があることに注意してください。このひな型は、
6584 \begin_inset Flex MenuItem
6587 \begin_layout Plain Layout
6588 ファイル\SpecialChar menuseparator
6594 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6595 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6597 \begin_inset Flex MenuItem
6600 \begin_layout Plain Layout
6609 \begin_layout Subsection
6613 \begin_layout Standard
6614 レイアウトファイルの書式は、\SpecialChar LyX
6615 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6616 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6619 \begin_inset Flex Code
6622 \begin_layout Plain Layout
6624 Dir/scripts/layout2layout.py
6629 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6631 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6634 \begin_layout Enumerate
6636 \begin_inset Flex Code
6639 \begin_layout Plain Layout
6646 \begin_inset Flex Code
6649 \begin_layout Plain Layout
6658 \begin_layout Enumerate
6660 \begin_inset Newline newline
6664 \begin_inset Flex Code
6667 \begin_layout Plain Layout
6668 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6674 \begin_inset Newline newline
6678 \begin_inset Flex Code
6681 \begin_layout Plain Layout
6691 \begin_layout Standard
6692 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6695 \begin_layout Section
6696 \begin_inset CommandInset label
6705 \begin_layout Standard
6706 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6707 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6708 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6709 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6710 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6713 \begin_layout Standard
6714 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6715 \begin_inset Flex Code
6718 \begin_layout Plain Layout
6725 \begin_inset Flex Code
6728 \begin_layout Plain Layout
6735 \begin_inset Flex Code
6738 \begin_layout Plain Layout
6744 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6745 \begin_inset Flex Code
6748 \begin_layout Plain Layout
6756 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6757 \begin_inset Flex Code
6760 \begin_layout Plain Layout
6771 \begin_layout Subsection
6775 \begin_layout Standard
6777 \begin_inset Flex Code
6780 \begin_layout Plain Layout
6786 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6787 \begin_inset Flex Code
6790 \begin_layout Plain Layout
6796 ファイルは、以下のような行で始めなくてはならないのです。
6799 \begin_layout LyX-Code
6802 #% Do not delete the line below; configure depends on this
6805 \begin_layout LyX-Code
6810 DeclareLaTeXClass{Article (Standard Class)}
6813 \begin_layout LyX-Code
6818 DeclareCategory{Articles}
6821 \begin_layout Standard
6822 2行目と3行目は、\SpecialChar LyX
6823 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6825 \begin_inset Flex Code
6828 \begin_layout Plain Layout
6835 \begin_inset Flex Code
6838 \begin_layout Plain Layout
6844 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6845 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
6847 \begin_inset Flex Code
6850 \begin_layout Plain Layout
6857 \begin_inset Flex Code
6860 \begin_layout Plain Layout
6866 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
6868 \begin_inset Flex Code
6871 \begin_layout Plain Layout
6877 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
6878 \begin_inset Flex MenuItem
6881 \begin_layout Plain Layout
6882 文書\SpecialChar menuseparator
6888 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
6889 \begin_inset Flex MenuItem
6892 \begin_layout Plain Layout
6893 文書\SpecialChar menuseparator
6899 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
6900 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
6901 rized」グループに属することになります。
6904 \begin_layout Standard
6906 \begin_inset Flex Code
6909 \begin_layout Plain Layout
6915 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6916 \begin_inset Flex Code
6919 \begin_layout Plain Layout
6925 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6928 \begin_layout LyX-Code
6931 #% Do not delete the line below; configure depends on this
6934 \begin_layout LyX-Code
6939 DeclareLaTeXClass[article]{article (with My Own Headings)}
6942 \begin_layout LyX-Code
6947 DeclareCategory{Articles}
6950 \begin_layout Standard
6951 これは、\SpecialChar LaTeX
6953 \begin_inset Flex Code
6956 \begin_layout Plain Layout
6962 に関連づけられ、「Article (with My Own Headings)」と表示される、
6963 \begin_inset Flex Code
6966 \begin_layout Plain Layout
6972 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6975 \begin_layout LyX-Code
6978 #% Do not delete the line below; configure depends on this
6981 \begin_layout LyX-Code
6992 \begin_layout Plain Layout
7001 eXClass[article,foo.sty]{Article (with My Own Headings)}
7004 \begin_layout LyX-Code
7009 DeclareCategory{Articles}
7012 \begin_layout Standard
7014 \begin_inset Flex Code
7017 \begin_layout Plain Layout
7023 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
7026 \begin_layout LyX-Code
7029 #% Do not delete the line below; configure depends on this
7032 \begin_layout LyX-Code
7037 DeclareDocBookClass[article]{SGML (DocBook article)}
7040 \begin_layout LyX-Code
7045 DeclareCategory{Articles}
7048 \begin_layout Standard
7049 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
7052 \begin_layout Standard
7053 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
7056 \begin_layout LyX-Code
7061 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7064 \begin_layout LyX-Code
7072 \begin_layout Standard
7073 ここで「クラス」は、\SpecialChar LaTeX
7074 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
7076 名がレイアウトファイル名と同じであると仮定します。
7079 \begin_layout Standard
7080 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7081 \begin_inset Flex Code
7084 \begin_layout Plain Layout
7091 \begin_inset Flex Code
7094 \begin_layout Plain Layout
7101 \begin_inset Flex MenuItem
7104 \begin_layout Plain Layout
7105 ツール\SpecialChar menuseparator
7111 を実行し、\SpecialChar LyX
7112 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7115 \begin_layout Standard
7116 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7117 を再起動したりすることなく、その変更を確認することができます
7121 \begin_layout Plain Layout
7122 第1.6版よりも前の\SpecialChar LyX
7123 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7125 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7132 \begin_inset Flex MenuItem
7135 \begin_layout Plain Layout
7141 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7142 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7145 \begin_layout Standard
7151 \begin_inset Flex MenuItem
7154 \begin_layout Plain Layout
7160 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7164 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7168 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7170 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7174 \begin_layout Plain Layout
7175 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7176 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7177 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7184 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7188 \begin_layout Plain Layout
7189 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7197 \begin_layout Subsection
7201 \begin_layout Standard
7202 モジュールは、以下のような行で始まらなくてはなりません。
7205 \begin_layout LyX-Code
7212 \begin_layout Plain Layout
7219 yXModule[endnotes.sty]{Endnotes}
7222 \begin_layout Standard
7223 波括弧内に入っている必須引数はモジュール名で、これは
7224 \begin_inset Flex MenuItem
7227 \begin_layout Plain Layout
7228 文書\SpecialChar menuseparator
7234 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7235 パッケージをすべて宣言します。また、非必須引数として、
7236 \begin_inset Flex Code
7239 \begin_layout Plain Layout
7246 \begin_inset Flex Code
7249 \begin_layout Plain Layout
7256 \begin_inset Flex Code
7259 \begin_layout Plain Layout
7265 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7268 \begin_layout Standard
7269 それから、以下のようなモジュール宣言を行います
7273 \begin_layout Plain Layout
7274 モジュールを\SpecialChar LyX
7275 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7283 \begin_layout LyX-Code
7287 \begin_layout LyX-Code
7288 #Adds an endnote command, in addition to footnotes.
7292 \begin_layout LyX-Code
7293 #You will need to add
7295 theendnotes in TeX code where you
7298 \begin_layout LyX-Code
7299 #want the endnotes to appear.
7303 \begin_layout LyX-Code
7307 \begin_layout LyX-Code
7308 #Requires: somemodule | othermodule
7311 \begin_layout LyX-Code
7312 #Excludes: badmodule
7315 \begin_layout Standard
7316 ここで説明(Description)は、
7317 \begin_inset Flex MenuItem
7320 \begin_layout Plain Layout
7321 文書\SpecialChar menuseparator
7327 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7328 \begin_inset Flex Code
7331 \begin_layout Plain Layout
7337 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7338 \begin_inset Flex Code
7341 \begin_layout Plain Layout
7347 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7348 イプ記号「|」で区切らなくてはなりません。
7349 \begin_inset Flex Code
7352 \begin_layout Plain Layout
7358 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7359 \begin_inset Flex Code
7362 \begin_layout Plain Layout
7372 が使用されていればよいということです。同様に、
7373 \begin_inset Flex Code
7376 \begin_layout Plain Layout
7382 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7383 \begin_inset Flex Code
7386 \begin_layout Plain Layout
7392 拡張子を除いたファイル名で認識されることに注意してください。つまり
7393 \begin_inset Flex Code
7396 \begin_layout Plain Layout
7403 \begin_inset Flex Code
7406 \begin_layout Plain Layout
7415 \begin_layout Subsection
7419 \begin_layout Standard
7420 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7423 \begin_layout Description
7424 \begin_inset Flex Code
7427 \begin_layout Plain Layout
7434 \begin_inset Flex Code
7437 \begin_layout Plain Layout
7446 \begin_layout Standard
7447 このタグは\SpecialChar LyX
7449 \begin_inset space ~
7452 1.4.0で導入されました。\SpecialChar LyX
7454 \begin_inset space ~
7457 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7458 現行版のファイル形式は、書式59です。しかし、\SpecialChar LyX
7459 の各版は、旧版の\SpecialChar LyX
7461 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7464 \begin_layout Subsection
7465 \begin_inset CommandInset label
7467 name "subsec:汎用テキストクラスパラメータ"
7474 \begin_layout Standard
7475 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7476 \begin_inset Flex Code
7479 \begin_layout Plain Layout
7485 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7489 。モジュールには、すべてのレイアウトタグを使用することができます)。
7492 \begin_layout Description
7493 \begin_inset Flex Code
7496 \begin_layout Plain Layout
7502 この文書クラスがXHTMLに出力されるときに、
7503 \begin_inset Flex Code
7506 \begin_layout Plain Layout
7512 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7513 \begin_inset Flex Code
7516 \begin_layout Plain Layout
7522 に出力するものであれば、何でも使用することができます。「
7523 \begin_inset Flex Code
7526 \begin_layout Plain Layout
7535 \begin_layout Description
7536 \begin_inset Flex Code
7539 \begin_layout Plain Layout
7545 文書プリアンブルに書き加えられる情報です。「
7546 \begin_inset Flex Code
7549 \begin_layout Plain Layout
7558 \begin_layout Description
7559 \begin_inset Flex Code
7562 \begin_layout Plain Layout
7568 書誌情報の表示に使う書式を定義します。詳細については、
7569 \begin_inset CommandInset ref
7571 reference "subsec:引用書式指定"
7576 \begin_inset Flex Code
7579 \begin_layout Plain Layout
7588 \begin_layout Description
7589 \begin_inset Flex Code
7592 \begin_layout Plain Layout
7598 文書クラスがサポートする様々な大域オプションを記します。説明は、
7599 \begin_inset CommandInset ref
7601 reference "subsec:ClassOptions"
7606 \begin_inset Flex Code
7609 \begin_layout Plain Layout
7618 \begin_layout Description
7619 \begin_inset Flex Code
7622 \begin_layout Plain Layout
7629 \begin_inset Flex Code
7632 \begin_layout Plain Layout
7641 \begin_inset space \thinspace{}
7645 \begin_inset Flex Code
7648 \begin_layout Plain Layout
7654 ] 文書クラスが既定で1段組か2段組かを指定します。
7655 \begin_inset Flex MenuItem
7658 \begin_layout Plain Layout
7659 文書\SpecialChar menuseparator
7668 \begin_layout Description
7669 \begin_inset Flex Code
7672 \begin_layout Plain Layout
7679 \begin_inset Flex Code
7682 \begin_layout Plain Layout
7688 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7689 \begin_inset Flex Code
7692 \begin_layout Plain Layout
7699 \begin_inset Newline newline
7703 \begin_inset CommandInset ref
7705 reference "subsec:カウンタ"
7712 \begin_layout Description
7713 \begin_inset Flex Code
7716 \begin_layout Plain Layout
7722 文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7723 \begin_inset CommandInset ref
7725 reference "subsec:フォント指定"
7730 \begin_inset Flex Code
7733 \begin_layout Plain Layout
7742 \begin_layout Description
7743 \begin_inset Flex Code
7746 \begin_layout Plain Layout
7753 \begin_inset Flex Code
7756 \begin_layout Plain Layout
7762 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7763 \begin_inset Flex Code
7766 \begin_layout Plain Layout
7772 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7773 既存の文書にこの文書クラスが選択したときのみ該当します)。
7776 \begin_layout Description
7777 \begin_inset Flex Code
7780 \begin_layout Plain Layout
7787 \begin_inset Flex Code
7790 \begin_layout Plain Layout
7800 これは新規段落に割り当てられる様式であり、通常は
7801 \begin_inset Flex MenuItem
7804 \begin_layout Plain Layout
7810 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7813 \begin_layout Description
7814 \begin_inset Flex Code
7817 \begin_layout Plain Layout
7824 \begin_inset Flex Code
7827 \begin_layout Plain Layout
7834 \begin_inset Flex Code
7837 \begin_layout Plain Layout
7843 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7845 \begin_inset Flex Code
7848 \begin_layout Plain Layout
7854 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7858 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
7859 \begin_inset CommandInset ref
7861 reference "subsec:レイアウトモジュール"
7868 \begin_layout Description
7869 \begin_inset Flex Code
7872 \begin_layout Plain Layout
7879 \begin_inset CommandInset ref
7881 reference "subsec:フロート"
7886 \begin_inset Flex Code
7889 \begin_layout Plain Layout
7898 \begin_layout Description
7899 \begin_inset Flex Code
7902 \begin_layout Plain Layout
7908 この文書クラスがXHTMLに出力されるときに、
7909 \begin_inset Flex Code
7912 \begin_layout Plain Layout
7918 ブロックに出力される情報です。これより前に出現した
7919 \begin_inset Flex Code
7922 \begin_layout Plain Layout
7929 \begin_inset Flex Code
7932 \begin_layout Plain Layout
7938 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7939 \begin_inset Flex Code
7942 \begin_layout Plain Layout
7949 \begin_inset Flex Code
7952 \begin_layout Plain Layout
7961 \begin_layout Description
7962 \begin_inset Flex Code
7965 \begin_layout Plain Layout
7972 \begin_inset Flex Code
7975 \begin_layout Plain Layout
7981 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7982 。これを指定しない場合には、\SpecialChar LyX
7983 はどのレイアウトを使用するべきか、解析しようと試みます。
7986 \begin_layout Description
7987 \begin_inset Flex Code
7990 \begin_layout Plain Layout
7997 \begin_inset Flex Code
8000 \begin_layout Plain Layout
8006 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
8007 \begin_inset Flex Code
8010 \begin_layout Plain Layout
8017 \begin_inset Newline newline
8021 \begin_inset CommandInset ref
8023 reference "subsec:カウンタ"
8030 \begin_layout Description
8031 \begin_inset Flex Code
8034 \begin_layout Plain Layout
8041 \begin_inset Flex Code
8044 \begin_layout Plain Layout
8050 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
8051 \begin_inset Flex Code
8054 \begin_layout Plain Layout
8063 \begin_layout Description
8064 \begin_inset Flex Code
8067 \begin_layout Plain Layout
8074 \begin_inset Flex Code
8077 \begin_layout Plain Layout
8087 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8089 \begin_inset Flex Code
8092 \begin_layout Plain Layout
8101 \begin_layout Description
8102 \begin_inset Flex Code
8105 \begin_layout Plain Layout
8112 \begin_inset Flex Code
8115 \begin_layout Plain Layout
8125 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8126 \begin_inset Flex Code
8129 \begin_layout Plain Layout
8136 \begin_inset Newline newline
8140 \begin_inset CommandInset ref
8142 reference "subsec:任意設定差込枠"
8149 \begin_layout Description
8150 \begin_inset Flex Code
8153 \begin_layout Plain Layout
8160 \begin_inset Flex Code
8163 \begin_layout Plain Layout
8169 ] 画面上の左余白の幅を指示する文字列。例:「
8170 \begin_inset Flex Code
8173 \begin_layout Plain Layout
8179 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8182 \begin_layout Description
8183 \begin_inset Flex Code
8186 \begin_layout Plain Layout
8193 \begin_inset Flex Code
8196 \begin_layout Plain Layout
8202 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8205 \begin_layout Description
8206 \begin_inset Flex Code
8209 \begin_layout Plain Layout
8216 \begin_inset Flex Code
8219 \begin_layout Plain Layout
8225 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8228 \begin_layout Description
8229 \begin_inset Flex Code
8232 \begin_layout Plain Layout
8239 \begin_inset Flex Code
8242 \begin_layout Plain Layout
8248 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8251 \begin_layout Description
8252 \begin_inset Flex Code
8255 \begin_layout Plain Layout
8262 \begin_inset Flex Code
8265 \begin_layout Plain Layout
8271 ] このクラスによって生成されるファイル形式を示す文字列(
8275 ダイアログで定義される形のもの)。おもに、
8276 \begin_inset Flex Code
8279 \begin_layout Plain Layout
8286 \begin_inset Flex Code
8289 \begin_layout Plain Layout
8295 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8296 \begin_inset Flex Code
8299 \begin_layout Plain Layout
8305 パラメーターに遭遇したときには、この文字列は、「
8306 \begin_inset Flex Code
8309 \begin_layout Plain Layout
8316 \begin_inset Flex Code
8319 \begin_layout Plain Layout
8330 \begin_layout Description
8331 \begin_inset Flex Code
8334 \begin_layout Plain Layout
8341 \begin_inset Flex Code
8344 \begin_layout Plain Layout
8355 \begin_inset Flex Code
8358 \begin_layout Plain Layout
8365 \begin_inset Flex Code
8368 \begin_layout Plain Layout
8374 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8377 \begin_layout Description
8378 \begin_inset Flex Code
8381 \begin_layout Plain Layout
8388 \begin_inset Flex Code
8391 \begin_layout Plain Layout
8398 \begin_inset Flex Code
8401 \begin_layout Plain Layout
8407 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8408 \begin_inset Flex Code
8411 \begin_layout Plain Layout
8412 PackageOptions natbib square
8418 \begin_inset Flex Code
8421 \begin_layout Plain Layout
8428 \begin_inset Flex Code
8431 \begin_layout Plain Layout
8437 オプションとともに読み込みます(\SpecialChar TeX
8439 \begin_inset Flex Code
8442 \begin_layout Plain Layout
8448 を読み込む前に、\SpecialChar LyX
8450 \begin_inset Flex Code
8453 \begin_layout Plain Layout
8456 PassOptionsToPackage{natbib}{square}
8464 \begin_layout Description
8465 \begin_inset Flex Code
8468 \begin_layout Plain Layout
8477 \begin_inset Flex Code
8480 \begin_layout Plain Layout
8489 \begin_inset Flex Code
8492 \begin_layout Plain Layout
8499 \begin_inset Flex Code
8502 \begin_layout Plain Layout
8509 \begin_inset Flex MenuItem
8512 \begin_layout Plain Layout
8513 文書\SpecialChar menuseparator
8522 \begin_layout Description
8523 \begin_inset Flex Code
8526 \begin_layout Plain Layout
8533 文書のプリアンブルを設定します。前に行った
8534 \begin_inset Flex Code
8537 \begin_layout Plain Layout
8544 \begin_inset Flex Code
8547 \begin_layout Plain Layout
8553 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8554 \begin_inset Flex Code
8557 \begin_layout Plain Layout
8564 \begin_inset Flex Code
8567 \begin_layout Plain Layout
8576 \begin_layout Description
8577 \begin_inset Flex Code
8580 \begin_layout Plain Layout
8587 \begin_inset Flex Code
8590 \begin_layout Plain Layout
8597 \begin_inset Flex Code
8600 \begin_layout Plain Layout
8609 \begin_inset Flex Code
8612 \begin_layout Plain Layout
8619 \begin_inset Flex Code
8622 \begin_layout Plain Layout
8628 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8629 \begin_inset Flex Code
8632 \begin_layout Plain Layout
8639 \begin_inset Flex Code
8642 \begin_layout Plain Layout
8650 \begin_inset Flex Code
8653 \begin_layout Plain Layout
8660 \begin_inset Flex Code
8663 \begin_layout Plain Layout
8671 \begin_inset CommandInset ref
8673 reference "chap:関数一覧"
8680 \begin_layout Description
8681 \begin_inset Flex Code
8684 \begin_layout Plain Layout
8691 \begin_inset Flex Code
8694 \begin_layout Plain Layout
8701 \begin_inset Flex Code
8704 \begin_layout Plain Layout
8710 で表されているモジュールの機能を提供することを示し、
8711 \begin_inset Flex Code
8714 \begin_layout Plain Layout
8721 \begin_inset Flex Code
8724 \begin_layout Plain Layout
8730 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8731 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8734 \begin_layout Description
8735 \begin_inset Flex Code
8738 \begin_layout Plain Layout
8745 \begin_inset Flex Code
8748 \begin_layout Plain Layout
8755 \begin_inset Flex Code
8758 \begin_layout Plain Layout
8764 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8766 \begin_inset CommandInset ref
8768 reference "chap:関数一覧"
8772 を参照)。特定のオプションをとるパッケージを要求する場合、
8773 \begin_inset Flex Code
8776 \begin_layout Plain Layout
8785 \begin_layout Description
8786 \begin_inset Flex Code
8789 \begin_layout Plain Layout
8796 \begin_inset Flex Code
8799 \begin_layout Plain Layout
8805 ] 画面上の右余白の幅を指示する文字列。例:「
8806 \begin_inset Flex Code
8809 \begin_layout Plain Layout
8818 \begin_layout Description
8819 \begin_inset Flex Code
8822 \begin_layout Plain Layout
8829 \begin_inset Flex Code
8832 \begin_layout Plain Layout
8838 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
8840 \begin_inset Flex Code
8843 \begin_layout Plain Layout
8852 \begin_layout Description
8853 \begin_inset Flex Code
8856 \begin_layout Plain Layout
8865 \begin_inset Flex Code
8868 \begin_layout Plain Layout
8877 \begin_inset space \thinspace{}
8881 \begin_inset Flex Code
8884 \begin_layout Plain Layout
8890 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8891 \begin_inset Flex MenuItem
8894 \begin_layout Plain Layout
8895 文書\SpecialChar menuseparator
8904 \begin_layout Description
8905 \begin_inset Flex Code
8908 \begin_layout Plain Layout
8915 \begin_inset Flex Code
8918 \begin_layout Plain Layout
8928 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8929 \begin_inset Flex Code
8932 \begin_layout Plain Layout
8939 \begin_inset Newline newline
8943 \begin_inset CommandInset ref
8945 reference "subsec:段落様式-XHTML"
8952 \begin_layout Description
8953 \begin_inset Flex Code
8956 \begin_layout Plain Layout
8963 \begin_inset Flex Code
8966 \begin_layout Plain Layout
8973 \begin_inset Flex Code
8976 \begin_layout Plain Layout
8982 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8984 \begin_inset Flex Code
8987 \begin_layout Plain Layout
8996 \begin_layout Description
8997 \begin_inset Flex Code
9000 \begin_layout Plain Layout
9007 \begin_inset Flex Code
9010 \begin_layout Plain Layout
9019 \begin_inset Flex Code
9022 \begin_layout Plain Layout
9028 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9029 \begin_inset Flex Code
9032 \begin_layout Plain Layout
9039 \begin_inset Flex Code
9042 \begin_layout Plain Layout
9044 \begin_inset space ~
9052 」が指定されている最後のレイアウトの後に、
9053 \begin_inset Flex Code
9056 \begin_layout Plain Layout
9062 で指定したマクロ名を挿入することを意味します。
9063 \begin_inset Flex Code
9066 \begin_layout Plain Layout
9073 \begin_inset Flex Code
9076 \begin_layout Plain Layout
9078 \begin_inset space ~
9087 \begin_inset Flex Code
9090 \begin_layout Plain Layout
9096 で指定した環境でくるむ場合に対応します。
9099 \begin_layout Description
9100 \begin_inset Flex Code
9103 \begin_layout Plain Layout
9110 \begin_inset Flex Code
9113 \begin_layout Plain Layout
9119 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9121 \begin_inset Flex Code
9124 \begin_layout Plain Layout
9133 \begin_layout Subsection
9134 \begin_inset Flex Code
9137 \begin_layout Plain Layout
9144 \begin_inset CommandInset label
9146 name "subsec:ClassOptions"
9153 \begin_layout Standard
9154 \begin_inset Flex Code
9157 \begin_layout Plain Layout
9166 \begin_layout Description
9167 \begin_inset Flex Code
9170 \begin_layout Plain Layout
9177 \begin_inset Flex Code
9180 \begin_layout Plain Layout
9186 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9187 \begin_inset Flex Code
9190 \begin_layout Plain Layout
9199 \begin_layout Description
9200 \begin_inset Flex Code
9203 \begin_layout Plain Layout
9209 XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC
9210 \begin_inset Quotes eld
9213 -//OASIS//DTD DocBook V4.2//EN
9214 \begin_inset Quotes erd
9220 \begin_layout Description
9221 \begin_inset Flex Code
9224 \begin_layout Plain Layout
9231 \begin_inset Flex Code
9234 \begin_layout Plain Layout
9235 文字列="empty|plain|headings|fancy"
9241 \begin_inset Flex Code
9244 \begin_layout Plain Layout
9253 \begin_layout Description
9254 \begin_inset Flex Code
9257 \begin_layout Plain Layout
9264 \begin_inset Flex Code
9267 \begin_layout Plain Layout
9274 \begin_inset Flex Code
9277 \begin_layout Plain Layout
9285 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9288 \begin_layout Standard
9289 \begin_inset Flex Code
9292 \begin_layout Plain Layout
9299 \begin_inset Flex Code
9302 \begin_layout Plain Layout
9311 \begin_layout Subsection
9313 \begin_inset CommandInset label
9322 \begin_layout Standard
9327 \begin_layout Plain Layout
9328 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9336 \begin_layout LyX-Code
9343 \begin_layout LyX-Code
9347 \begin_layout LyX-Code
9351 \begin_layout Standard
9352 ここでは、以下のコマンドを使用することができます。
9355 \begin_layout Description
9356 \begin_inset Flex Code
9359 \begin_layout Plain Layout
9366 \begin_inset Flex Code
9369 \begin_layout Plain Layout
9374 , left, right, center
9382 \begin_layout Description
9383 \begin_inset Flex Code
9386 \begin_layout Plain Layout
9393 \begin_inset Flex Code
9396 \begin_layout Plain Layout
9401 , left, right, center
9406 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9407 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9411 \begin_layout Description
9412 \begin_inset Flex Code
9415 \begin_layout Plain Layout
9422 \begin_inset Flex Code
9425 \begin_layout Plain Layout
9431 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9433 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9434 \begin_inset Flex Code
9437 \begin_layout Plain Layout
9443 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9444 \begin_inset Separator parbreak
9487 \begin_layout Standard
9488 \begin_inset Flex Code
9491 \begin_layout Plain Layout
9497 定義内部では、以下の指定をすることができます。
9500 \begin_layout Itemize
9501 \begin_inset Flex Code
9504 \begin_layout Plain Layout
9511 \begin_inset Flex Code
9514 \begin_layout Plain Layout
9520 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9521 \begin_inset Flex Code
9524 \begin_layout Plain Layout
9530 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9531 \begin_inset space \space{}
9535 \begin_inset Quotes eld
9539 \begin_inset Flex Code
9542 \begin_layout Plain Layout
9549 \begin_inset Quotes erd
9555 \begin_layout Itemize
9556 \begin_inset Flex Code
9559 \begin_layout Plain Layout
9566 \begin_inset Flex Code
9569 \begin_layout Plain Layout
9575 メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9576 \begin_inset space \space{}
9580 \begin_inset Quotes eld
9584 \begin_inset Flex Code
9587 \begin_layout Plain Layout
9594 \begin_inset Quotes erd
9597 )。この指定は必須ではありません。指定しない場合には、代わりに
9598 \begin_inset Flex Code
9601 \begin_layout Plain Layout
9610 \begin_layout Itemize
9611 \begin_inset Flex Code
9614 \begin_layout Plain Layout
9621 \begin_inset Flex Code
9624 \begin_layout Plain Layout
9630 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9633 \begin_layout Itemize
9634 \begin_inset Flex Code
9637 \begin_layout Plain Layout
9644 \begin_inset Flex Code
9647 \begin_layout Plain Layout
9656 \begin_inset space \thinspace{}
9660 \begin_inset Flex Code
9663 \begin_layout Plain Layout
9669 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9671 \begin_inset Flex Code
9674 \begin_layout Plain Layout
9681 \begin_inset Flex Code
9684 \begin_layout Plain Layout
9693 \begin_layout Itemize
9694 \begin_inset Flex Code
9697 \begin_layout Plain Layout
9704 \begin_inset Flex Code
9707 \begin_layout Plain Layout
9713 この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9715 \begin_inset Flex Code
9718 \begin_layout Plain Layout
9726 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9727 \begin_inset Flex Code
9730 \begin_layout Plain Layout
9737 \begin_inset Flex Code
9740 \begin_layout Plain Layout
9746 ステートメントを置くことで実現できます。
9749 \begin_layout Itemize
9750 \begin_inset Flex Code
9753 \begin_layout Plain Layout
9760 \begin_inset Flex Code
9763 \begin_layout Plain Layout
9770 \begin_inset Flex Code
9773 \begin_layout Plain Layout
9780 \begin_inset Flex Code
9783 \begin_layout Plain Layout
9789 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
9790 \begin_inset Flex Code
9793 \begin_layout Plain Layout
9802 \begin_layout Itemize
9803 \begin_inset Flex Code
9806 \begin_layout Plain Layout
9813 \begin_inset Flex Code
9816 \begin_layout Plain Layout
9823 \begin_inset Flex Code
9826 \begin_layout Plain Layout
9833 \begin_inset Flex Code
9836 \begin_layout Plain Layout
9842 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
9843 \begin_inset Flex Code
9846 \begin_layout Plain Layout
9855 \begin_layout Itemize
9856 \begin_inset Flex Code
9859 \begin_layout Plain Layout
9866 \begin_inset Flex Code
9869 \begin_layout Plain Layout
9875 ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9876 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
9879 \begin_layout Itemize
9880 \begin_inset Flex Code
9883 \begin_layout Plain Layout
9890 \begin_inset Flex Code
9893 \begin_layout Plain Layout
9899 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
9902 \begin_layout Itemize
9903 \begin_inset Flex Code
9906 \begin_layout Plain Layout
9913 \begin_inset CommandInset ref
9915 reference "subsec:フォント指定"
9922 \begin_layout Itemize
9923 \begin_inset Flex Code
9926 \begin_layout Plain Layout
9933 \begin_inset CommandInset ref
9935 reference "subsec:フォント指定"
9942 \begin_layout Itemize
9943 \begin_inset Flex Code
9946 \begin_layout Plain Layout
9953 \begin_inset Flex Code
9956 \begin_layout Plain Layout
9961 , Minimalistic, Conglomerate
9966 ] 差込枠の枠とボタンに用いられる装飾様式。
9969 \begin_layout Itemize
9970 \begin_inset Flex Code
9973 \begin_layout Plain Layout
9980 \begin_inset Flex Code
9983 \begin_layout Plain Layout
9990 \begin_inset Flex Code
9993 \begin_layout Plain Layout
9999 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
10002 \begin_layout Itemize
10003 \begin_inset Flex Code
10006 \begin_layout Plain Layout
10013 \begin_inset Flex Code
10016 \begin_layout Plain Layout
10023 \begin_inset Flex Code
10026 \begin_layout Plain Layout
10032 に設定されると、この引数は、副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます。
10035 \begin_layout Itemize
10036 \begin_inset Flex Code
10039 \begin_layout Plain Layout
10046 \begin_inset Flex Code
10049 \begin_layout Plain Layout
10060 が要求する特別な翻訳は抜きにして、生の形で出力されるべき各文字を定義します。PassThruとは違って、引数用に、これは明示的に定義されなくてはなりません。つま
10061 り、引数は、親差込枠や親レイアウトからPassThruCharsを継承しません。
10064 \begin_layout Standard
10066 \begin_inset Flex Code
10069 \begin_layout Plain Layout
10076 \begin_inset Flex Code
10079 \begin_layout Plain Layout
10085 のとき、各レイアウトで\SpecialChar LyX
10086 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10087 \begin_inset Flex Code
10090 \begin_layout Plain Layout
10096 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10097 \begin_inset Flex Code
10100 \begin_layout Plain Layout
10107 \begin_inset Flex Code
10110 \begin_layout Plain Layout
10117 \begin_inset Flex Code
10120 \begin_layout Plain Layout
10129 \begin_layout Standard
10131 \begin_inset Flex Code
10134 \begin_layout Plain Layout
10143 \begin_inset Flex Code
10146 \begin_layout Plain Layout
10155 \begin_inset Flex Code
10158 \begin_layout Plain Layout
10165 \begin_inset Flex Code
10168 \begin_layout Plain Layout
10178 \begin_layout Description
10179 \begin_inset Flex Code
10182 \begin_layout Plain Layout
10189 \begin_inset Flex Code
10192 \begin_layout Plain Layout
10198 宣言をすべて、完全に上書きしますので注意してください。「
10199 \begin_inset Flex Code
10202 \begin_layout Plain Layout
10208 」で閉じる必要があります。これの利用法についての詳細は、第
10209 \begin_inset CommandInset ref
10211 reference "subsec:段落様式の国際化"
10218 \begin_layout Description
10219 \begin_inset Flex Code
10222 \begin_layout Plain Layout
10229 \begin_inset Flex Code
10232 \begin_layout Plain Layout
10242 \begin_layout Plain Layout
10243 ここで「浮動小数点型」とは1.5のような実数を指します。
10248 このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10252 \begin_layout Description
10253 \begin_inset Flex Code
10256 \begin_layout Plain Layout
10263 \begin_inset Flex Code
10266 \begin_layout Plain Layout
10272 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10273 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10276 \begin_layout Description
10277 \begin_inset Flex Code
10280 \begin_layout Plain Layout
10286 XMLコマンドの深度。XML型の書式でのみ使用されます。
10289 \begin_layout Description
10290 \begin_inset Flex Code
10293 \begin_layout Plain Layout
10300 \begin_inset Flex Code
10303 \begin_layout Plain Layout
10309 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10312 \begin_layout Description
10313 \begin_inset Flex Code
10316 \begin_layout Plain Layout
10323 \begin_inset Flex Code
10326 \begin_layout Plain Layout
10340 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10344 \begin_layout Plain Layout
10345 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10346 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10355 \begin_layout Description
10356 \begin_inset Flex Code
10359 \begin_layout Plain Layout
10366 \begin_inset Flex Code
10369 \begin_layout Plain Layout
10374 , Box, Filled_Box, Static
10380 \begin_inset Flex Code
10383 \begin_layout Plain Layout
10390 \begin_inset Flex Code
10393 \begin_layout Plain Layout
10400 \begin_inset Flex Code
10403 \begin_layout Plain Layout
10410 \begin_inset Flex Code
10413 \begin_layout Plain Layout
10419 のいずれかの場合は、段落群の最後)に置くラベル。
10420 \begin_inset Flex Code
10423 \begin_layout Plain Layout
10430 \begin_inset Flex Code
10433 \begin_layout Plain Layout
10440 \begin_inset Flex Code
10443 \begin_layout Plain Layout
10449 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10450 \begin_inset Flex Code
10453 \begin_layout Plain Layout
10462 \begin_layout Description
10463 \begin_inset Flex Code
10466 \begin_layout Plain Layout
10473 \begin_inset Flex Code
10476 \begin_layout Plain Layout
10483 \begin_inset Flex Code
10486 \begin_layout Plain Layout
10493 \begin_inset Flex Code
10496 \begin_layout Plain Layout
10505 \begin_layout Description
10506 \begin_inset Flex Code
10509 \begin_layout Plain Layout
10520 \begin_inset CommandInset ref
10522 reference "subsec:フォント指定"
10526 節を参照。このフォントを定義すると、自動的に
10527 \begin_inset Flex Code
10530 \begin_layout Plain Layout
10536 も同じ値で定義されることに注意してください。したがって、
10537 \begin_inset Flex Code
10540 \begin_layout Plain Layout
10546 も同時に定義したい場合には、これを先に定義してください。
10549 \begin_layout Description
10550 \begin_inset Flex Code
10553 \begin_layout Plain Layout
10560 \begin_inset Flex Code
10563 \begin_layout Plain Layout
10569 ] 新しい様式を\SpecialChar LyX
10570 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10571 2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10573 \begin_inset Flex Code
10576 \begin_layout Plain Layout
10582 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10584 もこの様式を取り扱えるようになります。
10585 \begin_inset Flex Code
10588 \begin_layout Plain Layout
10594 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10595 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10598 \begin_layout Description
10599 \begin_inset Flex Code
10602 \begin_layout Plain Layout
10611 \begin_inset Flex Code
10614 \begin_layout Plain Layout
10623 \begin_inset space \thinspace{}
10627 \begin_inset Flex Code
10630 \begin_layout Plain Layout
10637 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10638 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10639 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10640 \begin_inset Flex Code
10643 \begin_layout Plain Layout
10649 を有効にすることが認められています。\SpecialChar LyX
10650 は、\SpecialChar LaTeX
10651 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10654 \begin_layout Description
10655 \begin_inset Flex Code
10658 \begin_layout Plain Layout
10664 これらのタグは、XHTML出力で使用されます。第
10665 \begin_inset CommandInset ref
10667 reference "subsec:段落様式-XHTML"
10674 \begin_layout Description
10675 \begin_inset Flex Code
10678 \begin_layout Plain Layout
10684 [[FIXME]] (XML型書式でのみ使用されます。)
10687 \begin_layout Description
10688 \begin_inset Flex Code
10691 \begin_layout Plain Layout
10700 \begin_inset Flex Code
10703 \begin_layout Plain Layout
10712 \begin_inset space \thinspace{}
10716 \begin_inset Flex Code
10719 \begin_layout Plain Layout
10726 \begin_inset Flex Code
10729 \begin_layout Plain Layout
10735 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10737 \begin_inset Flex Code
10740 \begin_layout Plain Layout
10747 \begin_inset Flex Code
10750 \begin_layout Plain Layout
10757 \begin_inset Flex Code
10760 \begin_layout Plain Layout
10769 \begin_layout Description
10770 \begin_inset Flex Code
10773 \begin_layout Plain Layout
10782 \begin_inset Flex Code
10785 \begin_layout Plain Layout
10794 \begin_inset space \thinspace{}
10798 \begin_inset Flex Code
10801 \begin_layout Plain Layout
10808 \begin_inset Flex Code
10811 \begin_layout Plain Layout
10817 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10818 \begin_inset Flex Code
10821 \begin_layout Plain Layout
10828 \begin_inset Flex Code
10831 \begin_layout Plain Layout
10840 \begin_layout Description
10841 \begin_inset Flex Code
10844 \begin_layout Plain Layout
10851 \begin_inset Flex Code
10854 \begin_layout Plain Layout
10860 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10861 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
10863 \begin_inset Flex Code
10866 \begin_layout Plain Layout
10877 \begin_layout Description
10878 \begin_inset Flex Code
10881 \begin_layout Plain Layout
10888 \begin_inset Flex Code
10891 \begin_layout Plain Layout
10897 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
10898 \begin_inset Flex Code
10901 \begin_layout Plain Layout
10907 だけ分離されます。しかし、その環境の項目全体は、さらにこの
10908 \begin_inset Flex Code
10911 \begin_layout Plain Layout
10924 \begin_layout Description
10925 \begin_inset Flex Code
10928 \begin_layout Plain Layout
10934 [[FIXME]] (XML型書式でのみ使用されます。)
10937 \begin_layout Description
10938 \begin_inset Flex Code
10941 \begin_layout Plain Layout
10950 \begin_inset Flex Code
10953 \begin_layout Plain Layout
10962 \begin_inset space \thinspace{}
10966 \begin_inset Flex Code
10969 \begin_layout Plain Layout
10975 ] 段落を空のままにすると、\SpecialChar LaTeX
10976 出力が空になってしまうので、通常、\SpecialChar LyX
10977 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
10978 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
10979 まないある種の改行として使用することもあります。
10982 \begin_layout Description
10983 \begin_inset Flex Code
10986 \begin_layout Plain Layout
10993 \begin_inset Flex Code
10996 \begin_layout Plain Layout
11002 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11003 \begin_inset Flex Code
11006 \begin_layout Plain Layout
11013 \begin_inset Newline linebreak
11017 \begin_inset Flex Code
11020 \begin_layout Plain Layout
11021 Centered_Top_Environment
11029 \begin_layout Description
11030 \begin_inset Flex Code
11033 \begin_layout Plain Layout
11040 \begin_inset Flex Code
11043 \begin_layout Plain Layout
11049 ] 自動連番に使われるカウンタ名(詳しくは第
11050 \begin_inset CommandInset ref
11052 reference "subsec:カウンタ"
11056 節参照)。カウンタがラベル中に表示されるようにするためには、
11057 \begin_inset Flex Code
11060 \begin_layout Plain Layout
11066 中で参照する必要があります。これは、少なくとも
11067 \begin_inset Flex Code
11070 \begin_layout Plain Layout
11077 \begin_inset Flex Code
11080 \begin_layout Plain Layout
11087 \begin_inset Flex Code
11090 \begin_layout Plain Layout
11097 \begin_inset Flex Code
11100 \begin_layout Plain Layout
11107 \begin_inset Newline newline
11111 \begin_inset Flex Code
11114 \begin_layout Plain Layout
11121 \begin_inset Flex Code
11124 \begin_layout Plain Layout
11130 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11131 \begin_inset Flex Code
11134 \begin_layout Plain Layout
11135 LabelCounter myenum
11140 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11141 におけるのと同様、実際に使われるカウンタは、
11142 \begin_inset Flex Code
11145 \begin_layout Plain Layout
11152 \begin_inset Flex Code
11155 \begin_layout Plain Layout
11162 \begin_inset Flex Code
11165 \begin_layout Plain Layout
11172 \begin_inset Flex Code
11175 \begin_layout Plain Layout
11181 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11182 \begin_inset Newline newline
11186 \begin_inset CommandInset ref
11188 reference "subsec:カウンタ"
11195 \begin_layout Description
11196 \begin_inset Flex Code
11199 \begin_layout Plain Layout
11206 \begin_inset CommandInset ref
11208 reference "subsec:フォント指定"
11215 \begin_layout Description
11216 \begin_inset Flex Code
11219 \begin_layout Plain Layout
11226 \begin_inset Flex Code
11229 \begin_layout Plain Layout
11235 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11238 \begin_layout Description
11239 \begin_inset Flex Code
11242 \begin_layout Plain Layout
11249 \begin_inset Flex Code
11252 \begin_layout Plain Layout
11258 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11261 \begin_layout Description
11262 \begin_inset Flex Code
11265 \begin_layout Plain Layout
11272 \begin_inset Flex Code
11275 \begin_layout Plain Layout
11282 \begin_inset Flex Code
11285 \begin_layout Plain Layout
11292 \begin_inset Flex Code
11295 \begin_layout Plain Layout
11302 \begin_inset CommandInset ref
11304 reference "subsec:カウンタ"
11308 に述べられている特別な整形コマンドを含めることができます。
11311 \begin_layout Description
11312 \begin_inset Flex Code
11315 \begin_layout Plain Layout
11316 LabelStringAppendix
11322 \begin_inset Flex Code
11325 \begin_layout Plain Layout
11332 \begin_inset Flex Code
11335 \begin_layout Plain Layout
11342 \begin_inset Flex Code
11345 \begin_layout Plain Layout
11352 \begin_inset Flex Code
11355 \begin_layout Plain Layout
11356 LabelStringAppendix
11361 をもリセットすることに注意してください。
11364 \begin_layout Description
11365 \begin_inset Flex Code
11368 \begin_layout Plain Layout
11374 [FIXME] (XML型書式でのみ使用されます。)
11377 \begin_layout Description
11378 \begin_inset Flex Code
11381 \begin_layout Plain Layout
11388 \begin_inset Flex Code
11391 \begin_layout Plain Layout
11396 , Manual, Static, Above,
11397 \begin_inset Newline newline
11400 Centered, Sensitive, Enumerate,
11401 \begin_inset Newline newline
11404 Itemize, Bibliography
11410 \begin_inset Separator parbreak
11417 \begin_layout Description
11418 \begin_inset Flex Code
11421 \begin_layout Plain Layout
11427 は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11430 \begin_layout Description
11431 \begin_inset Flex Code
11434 \begin_layout Plain Layout
11441 \begin_inset Flex Code
11444 \begin_layout Plain Layout
11450 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11451 \begin_inset Flex Code
11454 \begin_layout Plain Layout
11461 \begin_inset Flex Code
11464 \begin_layout Plain Layout
11471 \begin_inset Flex Code
11474 \begin_layout Plain Layout
11480 の段落中、最初の段落にのみ表示されます。
11483 \begin_layout Description
11484 \begin_inset Flex Code
11487 \begin_layout Plain Layout
11494 \begin_inset Flex Code
11497 \begin_layout Plain Layout
11504 \begin_inset Flex Code
11507 \begin_layout Plain Layout
11513 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11516 \begin_layout Description
11517 \begin_inset Flex Code
11520 \begin_layout Plain Layout
11526 はキャプションラベルの「図」や「表」の特別な場合です。
11527 \begin_inset Flex Code
11530 \begin_layout Plain Layout
11536 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11537 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11538 \begin_inset Flex Code
11541 \begin_layout Plain Layout
11547 は「意味を成しません!」と表示されます。
11550 \begin_layout Description
11551 \begin_inset Flex Code
11554 \begin_layout Plain Layout
11560 は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11564 \begin_layout Description
11565 \begin_inset Flex Code
11568 \begin_layout Plain Layout
11574 は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11577 \begin_layout Description
11578 \begin_inset Flex Code
11581 \begin_layout Plain Layout
11588 \begin_inset Flex Code
11591 \begin_layout Plain Layout
11592 LatexType BibEnvironment
11601 \begin_layout Description
11602 \begin_inset Flex Code
11605 \begin_layout Plain Layout
11612 \begin_inset Flex Code
11615 \begin_layout Plain Layout
11621 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11622 \begin_inset CommandInset ref
11624 reference "subsec:段落様式の国際化"
11631 \begin_layout Description
11632 \begin_inset Flex Code
11635 \begin_layout Plain Layout
11642 \begin_inset Flex Code
11645 \begin_layout Plain Layout
11651 ] 対応する\SpecialChar LaTeX
11652 の名称です。環境名かコマンド名を指します。
11655 \begin_layout Description
11656 \begin_inset Flex Code
11659 \begin_layout Plain Layout
11666 \begin_inset Flex Code
11669 \begin_layout Plain Layout
11676 \begin_inset Flex Code
11679 \begin_layout Plain Layout
11685 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11686 内部から変更することはできません(変更可能なパラメータには
11687 \begin_inset Flex Code
11690 \begin_layout Plain Layout
11696 を使用してください)。これは、全ての\SpecialChar LaTeX
11698 \begin_inset Flex Code
11701 \begin_layout Plain Layout
11710 \begin_layout Description
11711 \begin_inset Flex Code
11714 \begin_layout Plain Layout
11721 \begin_inset Flex Code
11724 \begin_layout Plain Layout
11729 , Command, Environment, Item_Environment,
11730 \begin_inset Newline newline
11733 List_Environment, Bib_Environment
11738 ] レイアウトがどのように\SpecialChar LaTeX
11743 \begin_layout Plain Layout
11744 これらのルールはSGMLクラスにも適用されるので、
11745 \begin_inset Flex Code
11748 \begin_layout Plain Layout
11754 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11755 \begin_inset Flex Code
11758 \begin_layout Plain Layout
11770 \begin_inset Separator parbreak
11777 \begin_layout Description
11778 \begin_inset Flex Code
11781 \begin_layout Plain Layout
11790 \begin_layout Description
11791 \begin_inset Flex Code
11794 \begin_layout Plain Layout
11801 \begin_inset Flex Code
11804 \begin_layout Plain Layout
11811 {\SpecialChar ldots
11820 \begin_layout Description
11821 \begin_inset Flex Code
11824 \begin_layout Plain Layout
11831 \begin_inset Flex Code
11834 \begin_layout Plain Layout
11841 }\SpecialChar ldots
11856 \begin_layout Description
11857 \begin_inset Flex Code
11860 \begin_layout Plain Layout
11867 \begin_inset Flex Code
11870 \begin_layout Plain Layout
11877 \begin_inset Flex Code
11880 \begin_layout Plain Layout
11888 がこの環境のすべての段落に付けられるところだけが異なっています。
11891 \begin_layout Description
11892 \begin_inset Flex Code
11895 \begin_layout Plain Layout
11902 \begin_inset Flex Code
11905 \begin_layout Plain Layout
11912 \begin_inset Flex Code
11915 \begin_layout Plain Layout
11921 が環境の引数として渡されるところだけが異なっています。
11922 \begin_inset Flex Code
11925 \begin_layout Plain Layout
11932 \begin_inset Flex MenuItem
11935 \begin_layout Plain Layout
11936 編集\SpecialChar menuseparator
11945 \begin_layout Description
11946 \begin_inset Flex Code
11949 \begin_layout Plain Layout
11956 \begin_inset Flex Code
11959 \begin_layout Plain Layout
11965 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
11966 \begin_inset Newline newline
11970 \begin_inset Flex Code
11973 \begin_layout Plain Layout
11976 begin{thebibliography}{99}
11982 \begin_inset Newline newline
11985 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
11988 \begin_layout Standard
11989 上記最後のいくつかをまとめると、\SpecialChar LaTeX
11990 出力は、\SpecialChar LaTeX
11994 \begin_layout LyX-Code
11997 LatexName[LatexParam]{\SpecialChar ldots
12001 \begin_layout Standard
12005 \begin_layout LyX-Code
12008 begin{LatexName}[LatexParam] \SpecialChar ldots
12014 \begin_layout Standard
12019 \begin_layout Description
12020 \begin_inset Flex Code
12023 \begin_layout Plain Layout
12030 \begin_inset Flex Code
12033 \begin_layout Plain Layout
12039 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12040 \begin_inset Flex Code
12043 \begin_layout Plain Layout
12052 \begin_layout Description
12053 \begin_inset Flex Code
12056 \begin_layout Plain Layout
12063 \begin_inset Flex Code
12066 \begin_layout Plain Layout
12072 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12073 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12076 をかけて加えられます。このパラメータは、
12077 \begin_inset Flex Code
12080 \begin_layout Plain Layout
12087 \begin_inset Flex Code
12090 \begin_layout Plain Layout
12097 \begin_inset Flex Code
12100 \begin_layout Plain Layout
12106 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12107 \begin_inset Newline newline
12111 \begin_inset Flex Code
12114 \begin_layout Plain Layout
12120 」と指定すると、段落を通常フォントの「
12121 \begin_inset Flex Code
12124 \begin_layout Plain Layout
12130 」の幅だけ行頭下げを行います。文字列の前に「
12131 \begin_inset Flex Code
12134 \begin_layout Plain Layout
12140 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12143 \begin_layout Description
12144 \begin_inset Flex Code
12147 \begin_layout Plain Layout
12154 \begin_inset Flex Code
12157 \begin_layout Plain Layout
12162 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12168 \begin_inset Newline newline
12172 \begin_inset Separator parbreak
12179 \begin_layout Description
12180 \begin_inset Flex Code
12183 \begin_layout Plain Layout
12192 \begin_layout Description
12193 \begin_inset Flex Code
12196 \begin_layout Plain Layout
12203 \begin_inset Flex MenuItem
12206 \begin_layout Plain Layout
12207 編集\SpecialChar menuseparator
12213 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12216 \begin_layout Description
12217 \begin_inset Flex Code
12220 \begin_layout Plain Layout
12226 は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12227 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12230 \begin_layout Description
12231 \begin_inset Flex Code
12234 \begin_layout Plain Layout
12240 は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12243 \begin_layout Description
12244 \begin_inset Flex Code
12247 \begin_layout Plain Layout
12253 は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12257 \begin_layout Description
12258 \begin_inset Flex Code
12261 \begin_layout Plain Layout
12268 \begin_inset Flex Code
12271 \begin_layout Plain Layout
12280 \begin_inset space \thinspace{}
12284 \begin_inset Flex Code
12287 \begin_layout Plain Layout
12293 ] このレイアウト中の脆弱なコマンドが
12294 \begin_inset Flex Code
12297 \begin_layout Plain Layout
12305 されるべきか否か(註:これはこのコマンド自体が
12306 \begin_inset Flex Code
12309 \begin_layout Plain Layout
12324 \begin_layout Description
12325 \begin_inset Flex Code
12328 \begin_layout Plain Layout
12335 \begin_inset Flex Code
12338 \begin_layout Plain Layout
12345 \begin_inset space \thinspace{}
12349 \begin_inset Flex Code
12352 \begin_layout Plain Layout
12360 ] 新規行を\SpecialChar LaTeX
12362 \begin_inset Flex Code
12365 \begin_layout Plain Layout
12375 )に変換するか否か。\SpecialChar LyX
12376 中で\SpecialChar LaTeX
12377 編集をやりやすくするために、変換は無効にすることができます。
12380 \begin_layout Description
12381 \begin_inset Flex Code
12384 \begin_layout Plain Layout
12391 \begin_inset Flex Code
12394 \begin_layout Plain Layout
12403 \begin_inset space \thinspace{}
12407 \begin_inset Flex Code
12410 \begin_layout Plain Layout
12417 \begin_inset Flex Code
12420 \begin_layout Plain Layout
12427 \begin_inset Flex Code
12430 \begin_layout Plain Layout
12436 )段落が行頭下げになっている場合でも、この型の段落に続くそれらの段落は、字下げされません(逆に言えば,既定でない段落には影響を与えません)。
12439 \begin_layout Description
12440 \begin_inset Flex Code
12443 \begin_layout Plain Layout
12450 \begin_inset Flex Code
12453 \begin_layout Plain Layout
12459 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12462 \begin_layout Description
12463 \begin_inset Flex Code
12466 \begin_layout Plain Layout
12473 \begin_inset Flex Code
12476 \begin_layout Plain Layout
12483 \begin_inset space \thinspace{}
12487 \begin_inset Flex Code
12490 \begin_layout Plain Layout
12496 ] 同じ型の段落が引き続く場合、同じ段落として取り扱うか否かを決定します。これは、そのような連続グループに対して、
12497 \begin_inset Flex Code
12500 \begin_layout Plain Layout
12506 が一度だけ出力される効果があります。既定では、
12507 \begin_inset Flex Code
12510 \begin_layout Plain Layout
12517 \begin_inset Flex Code
12520 \begin_layout Plain Layout
12527 \begin_inset Flex Code
12530 \begin_layout Plain Layout
12536 については有効であり、他の型すべてについて無効になっています。
12539 \begin_layout Description
12540 \begin_inset Flex Code
12543 \begin_layout Plain Layout
12550 \begin_inset Flex Code
12553 \begin_layout Plain Layout
12562 \begin_inset space \thinspace{}
12566 \begin_inset Flex Code
12569 \begin_layout Plain Layout
12575 ] \SpecialChar LaTeX
12576 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12577 \begin_inset Flex Code
12580 \begin_layout Plain Layout
12586 と併用すれば、(\SpecialChar TeX
12587 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12590 \begin_layout Description
12591 \begin_inset Flex Code
12594 \begin_layout Plain Layout
12601 \begin_inset Flex Code
12604 \begin_layout Plain Layout
12610 ] 段落の最初の行の行頭下げ。レイアウトによっては
12611 \begin_inset Flex Code
12614 \begin_layout Plain Layout
12620 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12621 \begin_inset Flex Code
12624 \begin_layout Plain Layout
12630 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12631 \begin_inset Flex Code
12634 \begin_layout Plain Layout
12641 \begin_inset Flex Code
12644 \begin_layout Plain Layout
12650 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12653 \begin_layout Description
12654 \begin_inset Flex Code
12657 \begin_layout Plain Layout
12664 \begin_inset Flex Code
12667 \begin_layout Plain Layout
12673 ] このレイアウトの2段落間の垂直余白。
12676 \begin_layout Description
12677 \begin_inset Flex Code
12680 \begin_layout Plain Layout
12687 \begin_inset Flex Code
12690 \begin_layout Plain Layout
12697 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12698 択した際には、\SpecialChar LaTeX
12700 \begin_inset Flex Code
12703 \begin_layout Plain Layout
12710 \begin_inset Flex Code
12713 \begin_layout Plain Layout
12719 引数分だけ引き離されます。垂直余白は、
12720 \begin_inset Flex Code
12723 \begin_layout Plain Layout
12729 を標準フォントでの1行の高さとすると、
12730 \begin_inset Flex Code
12733 \begin_layout Plain Layout
12740 \begin_inset Formula $\times$
12744 \begin_inset Flex Code
12747 \begin_layout Plain Layout
12753 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
12756 \begin_layout Description
12757 \begin_inset Flex Code
12760 \begin_layout Plain Layout
12769 \begin_inset Flex Code
12772 \begin_layout Plain Layout
12781 \begin_inset space \thinspace{}
12785 \begin_inset Flex Code
12788 \begin_layout Plain Layout
12794 ] この段落の内容が、\SpecialChar LaTeX
12795 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
12798 \begin_layout Description
12799 \begin_inset Flex Code
12802 \begin_layout Plain Layout
12809 \begin_inset Flex Code
12812 \begin_layout Plain Layout
12823 が要請する特別な翻訳なしで。生の形で出力されるべき、それぞれの文字を定義します。
12826 \begin_layout Description
12827 \begin_inset Flex Code
12830 \begin_layout Plain Layout
12836 この様式が使用されたときに、\SpecialChar LaTeX
12837 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
12838 \begin_inset Flex Code
12841 \begin_layout Plain Layout
12850 \begin_layout Description
12851 \begin_inset Flex Code
12854 \begin_layout Plain Layout
12861 \begin_inset Flex Code
12864 \begin_layout Plain Layout
12870 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
12873 \begin_layout Description
12874 \begin_inset Flex Code
12877 \begin_layout Plain Layout
12884 \begin_inset Flex Code
12887 \begin_layout Plain Layout
12894 \begin_inset Flex Code
12897 \begin_layout Plain Layout
12903 を必要とするかどうか(機能詳細については、第
12904 \begin_inset CommandInset ref
12906 reference "chap:関数一覧"
12910 節参照)。特定のオプションをとるパッケージを要求する場合、
12911 \begin_inset Flex Code
12914 \begin_layout Plain Layout
12920 を汎用テキストクラスパラメータとして追加して使うことができます(
12921 \begin_inset CommandInset ref
12923 reference "subsec:汎用テキストクラスパラメータ"
12930 \begin_layout Description
12931 \begin_inset Flex Code
12934 \begin_layout Plain Layout
12941 \begin_inset Flex Code
12944 \begin_layout Plain Layout
12953 \begin_inset Flex Code
12956 \begin_layout Plain Layout
12963 \begin_inset Flex Code
12966 \begin_layout Plain Layout
12972 タグで定義された)この様式の\SpecialChar LaTeX
12974 \begin_inset Flex Code
12977 \begin_layout Plain Layout
12983 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
12986 \begin_layout Description
12987 \begin_inset Flex Code
12990 \begin_layout Plain Layout
12997 \begin_inset Flex Code
13000 \begin_layout Plain Layout
13006 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13007 \begin_inset Flex Code
13010 \begin_layout Plain Layout
13019 \begin_layout Description
13020 \begin_inset Flex Code
13023 \begin_layout Plain Layout
13030 \begin_inset Flex Code
13033 \begin_layout Plain Layout
13040 \begin_inset Flex Code
13043 \begin_layout Plain Layout
13052 \begin_layout Description
13053 \begin_inset Flex Code
13056 \begin_layout Plain Layout
13063 \begin_inset Flex Code
13066 \begin_layout Plain Layout
13075 \begin_inset Flex Code
13078 \begin_layout Plain Layout
13085 \begin_inset Flex Code
13088 \begin_layout Plain Layout
13095 \begin_inset Flex Code
13098 \begin_layout Plain Layout
13100 \begin_inset space ~
13116 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13117 \begin_inset Flex Code
13120 \begin_layout Plain Layout
13127 \begin_inset Flex Code
13130 \begin_layout Plain Layout
13137 \begin_inset Flex Code
13140 \begin_layout Plain Layout
13146 は、それぞれ乗数1・1.25・1.667に対応します。引数
13147 \begin_inset Flex Code
13150 \begin_layout Plain Layout
13156 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13157 \begin_inset Flex Code
13160 \begin_layout Plain Layout
13166 は、\SpecialChar LaTeX
13168 \begin_inset Flex Code
13171 \begin_layout Plain Layout
13177 パッケージを使用した、限定的な\SpecialChar LaTeX
13178 コードを生成することを意味することにご注意ください。
13181 \begin_layout Description
13182 \begin_inset Flex Code
13185 \begin_layout Plain Layout
13192 \begin_inset Flex Code
13195 \begin_layout Plain Layout
13202 \begin_inset space \thinspace{}
13206 \begin_inset Flex Code
13209 \begin_layout Plain Layout
13215 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13218 \begin_layout Description
13219 \begin_inset Flex Code
13222 \begin_layout Plain Layout
13229 \begin_inset CommandInset ref
13231 reference "subsec:フォント指定"
13238 \begin_layout Description
13239 \begin_inset Flex Code
13242 \begin_layout Plain Layout
13249 \begin_inset Flex Code
13252 \begin_layout Plain Layout
13258 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13261 \begin_layout Description
13262 \begin_inset Flex Code
13265 \begin_layout Plain Layout
13274 \begin_inset Flex Code
13277 \begin_layout Plain Layout
13286 \begin_inset Flex Code
13289 \begin_layout Plain Layout
13296 \begin_inset Flex Code
13299 \begin_layout Plain Layout
13305 ] このタグは、この段落の1行目の行頭下げが、段落設定ダイアログで切り替えられるかどうかを決めます。
13306 \begin_inset Flex Code
13309 \begin_layout Plain Layout
13315 が指定されると、文書設定が「行頭下げ」段落様式を使用しているときに、行頭下げを変更することができます。
13316 \begin_inset Flex Code
13319 \begin_layout Plain Layout
13325 は、文書設定にかかわらず変更することができ、
13326 \begin_inset Flex Code
13329 \begin_layout Plain Layout
13335 は、どのような場合でも変更することができません。
13338 \begin_layout Description
13339 \begin_inset Flex Code
13342 \begin_layout Plain Layout
13349 \begin_inset Flex Code
13352 \begin_layout Plain Layout
13358 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13362 \begin_layout Subsection
13364 \begin_inset CommandInset label
13366 name "subsec:段落様式の国際化"
13373 \begin_layout Standard
13375 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13376 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13380 1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13383 \begin_layout Standard
13385 \begin_inset Flex MenuItem
13388 \begin_layout Plain Layout
13394 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13395 \begin_inset Flex MenuItem
13398 \begin_layout Plain Layout
13405 \begin_inset Flex MenuItem
13408 \begin_layout Plain Layout
13414 を使用することができます。以下の抜粋(
13415 \begin_inset Flex MenuItem
13418 \begin_layout Plain Layout
13424 より)は、これがどう動作するかを示すものです。
13427 \begin_layout LyX-Code
13429 \begin_inset Separator parbreak
13436 \begin_layout LyX-Code
13439 theoremstyle{remark}
13442 \begin_layout LyX-Code
13445 newtheorem{claim}[thm]{
13452 \begin_layout LyX-Code
13456 \begin_layout LyX-Code
13460 \begin_layout LyX-Code
13465 claimname}{_(Claim)}
13468 \begin_layout LyX-Code
13472 \begin_layout LyX-Code
13476 \begin_layout LyX-Code
13485 claimname}{_(Claim)}}
13488 \begin_layout LyX-Code
13493 \begin_layout Standard
13495 \begin_inset Flex MenuItem
13498 \begin_layout Plain Layout
13505 \begin_inset Flex MenuItem
13508 \begin_layout Plain Layout
13514 タグ内には、有効な\SpecialChar LaTeX
13515 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13516 は、\SpecialChar LaTeX
13518 \begin_inset Flex Code
13521 \begin_layout Plain Layout
13530 \begin_inset Flex Code
13533 \begin_layout Plain Layout
13544 \begin_layout Standard
13545 \begin_inset Flex Code
13548 \begin_layout Plain Layout
13554 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13555 \begin_inset Flex Code
13558 \begin_layout Plain Layout
13564 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13565 \begin_inset Flex Code
13568 \begin_layout Plain Layout
13574 が使用されていることです。これは、\SpecialChar LyX
13575 が\SpecialChar LaTeX
13576 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13579 \begin_layout Standard
13580 \begin_inset Flex Code
13583 \begin_layout Plain Layout
13590 \begin_inset Flex Code
13593 \begin_layout Plain Layout
13599 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13601 \begin_inset Flex Code
13604 \begin_layout Plain Layout
13610 の引数は、その当該言語への翻訳で置き換えられ、
13611 \begin_inset Flex Code
13614 \begin_layout Plain Layout
13620 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13623 \begin_layout Standard
13624 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13627 \begin_layout LyX-Code
13636 claimname}{Affirmation}}
13637 \begin_inset Newline newline
13648 claimname}{Behauptung}}
13649 \begin_inset Newline newline
13656 claimname}{Behauptung}
13659 \begin_layout Standard
13660 それから、\SpecialChar LaTeX
13662 \begin_inset Flex Code
13665 \begin_layout Plain Layout
13671 は協力して、出力に正しい文字列を生成します。
13674 \begin_layout Standard
13675 ここで注意しておくべき一つの重要な点は、翻訳は、
13676 \begin_inset Flex Code
13679 \begin_layout Plain Layout
13685 ファイルを通じて、\SpecialChar LyX
13686 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13687 \begin_inset Flex Code
13690 \begin_layout Plain Layout
13696 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13697 の国際化ルーチンでは取り扱われないので、
13698 \begin_inset Flex MenuItem
13701 \begin_layout Plain Layout
13708 \begin_inset Flex MenuItem
13711 \begin_layout Plain Layout
13717 は、事実上、\SpecialChar LyX
13718 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
13720 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
13721 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
13722 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
13725 \begin_layout Subsection
13727 \begin_inset CommandInset label
13736 \begin_layout Standard
13738 第1.3.0版以来、テキストクラス自体の中でフロート(
13739 \begin_inset Flex MenuItem
13742 \begin_layout Plain Layout
13749 \begin_inset Flex MenuItem
13752 \begin_layout Plain Layout
13758 ・\SpecialChar ldots
13759 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
13760 \begin_inset Flex Code
13763 \begin_layout Plain Layout
13769 ファイルに含まれているので、作業中のレイアウトファイルに
13772 \begin_layout LyX-Code
13773 Input stdfloats.inc
13776 \begin_layout Standard
13777 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
13778 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
13782 \begin_layout Description
13783 \begin_inset Flex Code
13786 \begin_layout Plain Layout
13793 \begin_inset Flex Code
13796 \begin_layout Plain Layout
13802 =!htbpH] このフロート型に許可された配置用の選択肢。値は、配置文字からなる文字列です。使用できる文字には、
13807 \begin_inset Quotes eld
13810 here if possible:可能ならば現在位置に
13811 \begin_inset Quotes erd
13819 \begin_inset Quotes eld
13823 \begin_inset Quotes erd
13831 \begin_inset Quotes eld
13834 bottom of page:ページ下部
13835 \begin_inset Quotes erd
13843 \begin_inset Quotes eld
13846 page of floats:フロートを独立したページに
13847 \begin_inset Quotes erd
13855 \begin_inset Quotes eld
13858 here definitely:何としても現在位置に置く
13859 \begin_inset Quotes erd
13867 \begin_inset Quotes eld
13870 ignore LaTeX rules:LaTeXの規則を無視する
13871 \begin_inset Quotes erd
13874 )があります。文字列中の文字の順序は関係ありません。配置の選択肢を与えない場合には、文字列として
13881 \begin_layout Description
13882 \begin_inset Flex Code
13885 \begin_layout Plain Layout
13892 \begin_inset Flex Code
13895 \begin_layout Plain Layout
13902 \begin_inset space \thinspace{}
13908 \begin_inset Flex Code
13911 \begin_layout Plain Layout
13919 ] フロートを、\SpecialChar LaTeX
13924 (横向きフロート)を使って回転させることを許可するか否かを指定。フロートにこの機能をサポートさせないときには、
13925 \begin_inset Flex Code
13928 \begin_layout Plain Layout
13937 \begin_layout Description
13938 \begin_inset Flex Code
13941 \begin_layout Plain Layout
13948 \begin_inset Flex Code
13951 \begin_layout Plain Layout
13958 \begin_inset space \thinspace{}
13964 \begin_inset Flex Code
13967 \begin_layout Plain Layout
13975 ] このフロートに、二段組段落において段落をまたぐ、星付き版があるか否かを定義。フロートにこの機能をサポートさせないときには、
13976 \begin_inset Flex Code
13979 \begin_layout Plain Layout
13988 \begin_layout Description
13989 \begin_inset Flex Code
13992 \begin_layout Plain Layout
13999 \begin_inset Flex Code
14002 \begin_layout Plain Layout
14009 \begin_inset Quotes erd
14013 \begin_inset Quotes erd
14016 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14017 がキャプションを書き込むファイルです。
14020 \begin_layout Description
14021 \begin_inset Flex Code
14024 \begin_layout Plain Layout
14031 \begin_inset Flex Code
14034 \begin_layout Plain Layout
14041 \begin_inset Quotes erd
14045 \begin_inset Quotes erd
14048 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14051 \begin_layout Description
14052 \begin_inset Flex Code
14055 \begin_layout Plain Layout
14061 これらは、XHTML出力で使用されます。
14062 \begin_inset CommandInset ref
14064 reference "sec:XHTML出力のタグ"
14071 \begin_layout Description
14072 \begin_inset Flex Code
14075 \begin_layout Plain Layout
14082 \begin_inset Flex Code
14085 \begin_layout Plain Layout
14094 \begin_inset space \thinspace{}
14098 \begin_inset Flex Code
14101 \begin_layout Plain Layout
14107 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14109 \begin_inset Flex Code
14112 \begin_layout Plain Layout
14118 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14119 \begin_inset Flex Code
14122 \begin_layout Plain Layout
14129 \begin_inset Flex Code
14132 \begin_layout Plain Layout
14138 を使用します。\SpecialChar LaTeX
14139 ドキュメントクラス中に既に定義されているときには、
14140 \begin_inset Flex Code
14143 \begin_layout Plain Layout
14152 \begin_layout Description
14153 \begin_inset Flex Code
14156 \begin_layout Plain Layout
14163 \begin_inset Flex Code
14166 \begin_layout Plain Layout
14173 \begin_inset Quotes erd
14177 \begin_inset Quotes erd
14180 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14183 \begin_inset Flex Code
14186 \begin_layout Plain Layout
14192 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14197 \begin_inset Flex Code
14200 \begin_layout Plain Layout
14206 が真の時は、標準的な方法が存在するので、これは無視されます。
14209 \begin_layout Description
14210 \begin_inset Flex Code
14213 \begin_layout Plain Layout
14220 \begin_inset Flex Code
14223 \begin_layout Plain Layout
14230 \begin_inset Quotes erd
14234 \begin_inset Quotes erd
14237 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14238 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14240 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14243 \begin_layout Description
14244 \begin_inset Flex Code
14247 \begin_layout Plain Layout
14254 \begin_inset Flex Code
14257 \begin_layout Plain Layout
14264 \begin_inset Quotes erd
14268 \begin_inset Quotes erd
14271 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14272 \begin_inset Flex Code
14275 \begin_layout Plain Layout
14282 \begin_inset Flex Code
14285 \begin_layout Plain Layout
14291 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14294 \begin_layout Description
14295 \begin_inset Flex Code
14298 \begin_layout Plain Layout
14305 \begin_inset Flex Code
14308 \begin_layout Plain Layout
14315 \begin_inset Quotes erd
14319 \begin_inset Quotes erd
14322 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14324 \begin_inset Flex Code
14327 \begin_layout Plain Layout
14334 \begin_inset Flex Code
14337 \begin_layout Plain Layout
14344 \begin_inset Flex Code
14347 \begin_layout Plain Layout
14354 \begin_inset Flex Code
14357 \begin_layout Plain Layout
14367 \begin_layout Plain Layout
14369 同様、文字列中でのこれらの文字の順序は関係ありません。
14375 \begin_inset Flex Code
14378 \begin_layout Plain Layout
14384 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14385 \begin_inset Flex Code
14388 \begin_layout Plain Layout
14394 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14396 \begin_inset Flex Code
14399 \begin_layout Plain Layout
14408 \begin_layout Description
14409 \begin_inset Flex Code
14412 \begin_layout Plain Layout
14419 \begin_inset Flex Code
14422 \begin_layout Plain Layout
14428 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14429 \begin_inset Flex Code
14432 \begin_layout Plain Layout
14438 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14441 \begin_layout Description
14442 \begin_inset Flex Code
14445 \begin_layout Plain Layout
14452 \begin_inset Flex Code
14455 \begin_layout Plain Layout
14462 \begin_inset Quotes erd
14466 \begin_inset Quotes erd
14470 \begin_inset Flex Code
14473 \begin_layout Plain Layout
14481 を使用してフロートを定義する際に使用される様式。
14484 \begin_layout Description
14485 \begin_inset Flex Code
14488 \begin_layout Plain Layout
14495 \begin_inset Flex Code
14498 \begin_layout Plain Layout
14505 \begin_inset Quotes erd
14509 \begin_inset Quotes erd
14512 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14513 \begin_inset Flex Code
14516 \begin_layout Plain Layout
14525 \begin_inset Flex Code
14528 \begin_layout Plain Layout
14537 \begin_inset Flex Code
14540 \begin_layout Plain Layout
14551 \begin_layout Description
14552 \begin_inset Flex Code
14555 \begin_layout Plain Layout
14562 \begin_inset Flex Code
14565 \begin_layout Plain Layout
14572 \begin_inset space \thinspace{}
14576 \begin_inset Flex Code
14579 \begin_layout Plain Layout
14587 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14589 \begin_inset Flex Code
14592 \begin_layout Plain Layout
14598 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14599 自身がオン・ザ・フライで定義しているのかを示します。
14602 \begin_layout Standard
14603 \begin_inset Flex Code
14606 \begin_layout Plain Layout
14619 \begin_inset Flex Code
14622 \begin_layout Plain Layout
14633 \begin_layout Subsection
14635 \begin_inset CommandInset label
14637 name "subsec:任意設定差込枠"
14644 \begin_layout Standard
14648 \begin_layout Itemize
14650 \begin_inset Flex Code
14653 \begin_layout Plain Layout
14660 \begin_inset Flex Code
14663 \begin_layout Plain Layout
14672 \begin_inset Flex Code
14675 \begin_layout Plain Layout
14683 などの\SpecialChar LaTeX
14684 コマンドに対応した意味論的マークアップを定義するものです。
14687 \begin_layout Itemize
14689 \begin_inset Flex Code
14692 \begin_layout Plain Layout
14698 )。これは、\SpecialChar TeX
14699 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14700 \begin_inset Flex Code
14703 \begin_layout Plain Layout
14712 \begin_layout Itemize
14714 \begin_inset Flex Code
14717 \begin_layout Plain Layout
14723 )。DocBookクラスで使用するものです。
14726 \begin_layout Standard
14728 \begin_inset Flex Code
14731 \begin_layout Plain Layout
14740 \begin_layout Standard
14741 \begin_inset Flex Code
14744 \begin_layout Plain Layout
14750 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
14751 \begin_inset Flex Code
14754 \begin_layout Plain Layout
14760 は自由差込枠を定義することの他に、脚註・傍註・註釈差込枠・\SpecialChar TeX
14761 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14765 \begin_layout Standard
14766 \begin_inset Flex Code
14769 \begin_layout Plain Layout
14775 定義は以下の形の行では始まらなくてはなりません。
14778 \begin_layout LyX-Code
14782 \begin_layout Standard
14784 \begin_inset Flex Code
14787 \begin_layout Plain Layout
14793 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
14796 \begin_layout Enumerate
14797 既存の差込枠のレイアウトを変更する場合。この場合、
14798 \begin_inset Flex Code
14801 \begin_layout Plain Layout
14808 \begin_inset Flex Code
14811 \begin_layout Plain Layout
14818 \begin_inset Flex Code
14821 \begin_layout Plain Layout
14828 \begin_inset Flex Code
14831 \begin_layout Plain Layout
14838 \begin_inset Flex Code
14841 \begin_layout Plain Layout
14848 \begin_inset Flex Code
14851 \begin_layout Plain Layout
14858 \begin_inset Flex Code
14861 \begin_layout Plain Layout
14868 \begin_inset Flex Code
14871 \begin_layout Plain Layout
14878 \begin_inset Flex Code
14881 \begin_layout Plain Layout
14888 \begin_inset Flex Code
14891 \begin_layout Plain Layout
14898 \begin_inset Flex Code
14901 \begin_layout Plain Layout
14908 \begin_inset Flex Code
14911 \begin_layout Plain Layout
14918 \begin_inset Flex Code
14921 \begin_layout Plain Layout
14928 \begin_inset Flex Code
14931 \begin_layout Plain Layout
14938 \begin_inset Flex Code
14941 \begin_layout Plain Layout
14948 \begin_inset Flex Code
14951 \begin_layout Plain Layout
14958 \begin_inset Flex Code
14961 \begin_layout Plain Layout
14968 \begin_inset Flex Code
14971 \begin_layout Plain Layout
14978 \begin_inset Flex Code
14981 \begin_layout Plain Layout
14988 \begin_inset Flex Code
14991 \begin_layout Plain Layout
14998 \begin_inset Flex Code
15001 \begin_layout Plain Layout
15010 \begin_layout Enumerate
15011 自由差込枠のレイアウトを定義する場合。この場合、
15012 \begin_inset Flex Code
15015 \begin_layout Plain Layout
15022 \begin_inset Flex Code
15025 \begin_layout Plain Layout
15032 \begin_inset Flex Code
15035 \begin_layout Plain Layout
15041 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15042 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15043 \begin_inset Flex Code
15046 \begin_layout Plain Layout
15052 項目が含まれていなくてはならないことに注意してください。
15055 \begin_layout Enumerate
15056 ユーザー定義派生枝を定義する場合。この場合、
15057 \begin_inset Flex Code
15060 \begin_layout Plain Layout
15067 \begin_inset Flex Code
15070 \begin_layout Plain Layout
15077 \begin_inset Flex Code
15080 \begin_layout Plain Layout
15086 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15087 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15088 がくるむことができるようにすることです。
15091 \begin_layout Enumerate
15092 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15093 \begin_inset Flex Code
15096 \begin_layout Plain Layout
15103 \begin_inset Flex Code
15106 \begin_layout Plain Layout
15113 \begin_inset Flex Code
15116 \begin_layout Plain Layout
15122 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15123 \begin_inset Flex Code
15126 \begin_layout Plain Layout
15132 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15133 \begin_inset Flex Code
15136 \begin_layout Plain Layout
15143 \begin_inset Flex Code
15146 \begin_layout Plain Layout
15157 \begin_inset Flex Code
15160 \begin_layout Plain Layout
15169 \begin_layout Standard
15170 \begin_inset Flex Code
15173 \begin_layout Plain Layout
15179 定義には以下の項目を入れることができます。
15182 \begin_layout Description
15183 \begin_inset Flex Code
15186 \begin_layout Plain Layout
15193 \begin_inset Flex Code
15196 \begin_layout Plain Layout
15202 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15203 \begin_inset Flex Code
15206 \begin_layout Plain Layout
15213 \begin_inset CommandInset ref
15215 reference "subsec:段落様式"
15222 \begin_layout Description
15223 \begin_inset Flex Code
15226 \begin_layout Plain Layout
15233 \begin_inset CommandInset ref
15235 reference "subsec:段落様式の国際化"
15242 \begin_layout Description
15243 \begin_inset Flex Code
15246 \begin_layout Plain Layout
15253 \begin_inset Flex Code
15256 \begin_layout Plain Layout
15262 ] 差込枠の背景色。使用できる色名一覧は
15263 \begin_inset CommandInset ref
15265 reference "chap:色名"
15272 \begin_layout Description
15273 \begin_inset Flex Code
15276 \begin_layout Plain Layout
15283 \begin_inset Flex Code
15286 \begin_layout Plain Layout
15295 \begin_inset space \thinspace{}
15299 \begin_inset Flex Code
15302 \begin_layout Plain Layout
15308 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15311 \begin_layout Description
15312 \begin_inset Flex Code
15315 \begin_layout Plain Layout
15322 \begin_inset CommandInset ref
15324 reference "subsec:段落様式"
15328 参照のこと。完全な型を指定する必要があることに注意してください。例:
15329 \begin_inset Flex Code
15332 \begin_layout Plain Layout
15333 CopyStyle Flex:<名称>
15341 \begin_layout Description
15342 \begin_inset Flex Code
15345 \begin_layout Plain Layout
15352 \begin_inset Flex Code
15355 \begin_layout Plain Layout
15364 \begin_inset space \thinspace{}
15368 \begin_inset Flex Code
15371 \begin_layout Plain Layout
15377 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15380 \begin_layout Description
15381 \begin_inset Flex Code
15384 \begin_layout Plain Layout
15390 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15391 \begin_inset Flex Code
15394 \begin_layout Plain Layout
15401 \begin_inset Flex Code
15404 \begin_layout Plain Layout
15411 \begin_inset Flex Code
15414 \begin_layout Plain Layout
15420 のいずれかを指定することができます。脚註は通常
15421 \begin_inset Flex Code
15424 \begin_layout Plain Layout
15430 を使用し、\SpecialChar TeX
15432 \begin_inset Flex Code
15435 \begin_layout Plain Layout
15442 \begin_inset Flex Code
15445 \begin_layout Plain Layout
15454 \begin_layout Description
15455 \begin_inset Flex Code
15458 \begin_layout Plain Layout
15465 \begin_inset Flex Code
15468 \begin_layout Plain Layout
15475 \begin_inset space \thinspace{}
15479 \begin_inset Flex Code
15482 \begin_layout Plain Layout
15491 \begin_inset Flex Code
15494 \begin_layout Plain Layout
15501 \begin_inset Flex Code
15504 \begin_layout Plain Layout
15510 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15512 \begin_inset Flex Code
15515 \begin_layout Plain Layout
15524 \begin_inset Flex Code
15527 \begin_layout Plain Layout
15535 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15538 \begin_layout Description
15539 \begin_inset Flex Code
15542 \begin_layout Plain Layout
15549 \begin_inset Flex Code
15552 \begin_layout Plain Layout
15561 \begin_layout Description
15562 \begin_inset Flex Code
15565 \begin_layout Plain Layout
15576 \begin_inset CommandInset ref
15578 reference "subsec:フォント指定"
15582 を参照。このフォントを定義すると自動的に
15583 \begin_inset Flex Code
15586 \begin_layout Plain Layout
15592 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15593 \begin_inset Flex Code
15596 \begin_layout Plain Layout
15602 を定義しなくてはならないことに注意してください。
15605 \begin_layout Description
15606 \begin_inset Flex Code
15609 \begin_layout Plain Layout
15610 FixedWidthPreambleEncoding
15616 \begin_inset Flex Code
15619 \begin_layout Plain Layout
15628 \begin_inset space \thinspace{}
15632 \begin_inset Flex Code
15635 \begin_layout Plain Layout
15642 \begin_inset Flex Code
15645 \begin_layout Plain Layout
15652 \begin_inset Flex Code
15655 \begin_layout Plain Layout
15661 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か。これは、
15669 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15670 パッケージのために必要です。この設定は、Xe\SpecialChar TeX
15671 やLua\SpecialChar TeX
15672 のようなUnicodeを完全に解する\SpecialChar LaTeX
15677 \begin_layout Description
15678 \begin_inset Flex Code
15681 \begin_layout Plain Layout
15682 ForceLocalFontSwitch
15688 \begin_inset Flex Code
15691 \begin_layout Plain Layout
15700 \begin_inset space \thinspace{}
15704 \begin_inset Flex Code
15707 \begin_layout Plain Layout
15713 ] babel使用時に、常にローカルフォント切替(
15714 \begin_inset Flex Code
15717 \begin_layout Plain Layout
15726 \begin_inset Flex Code
15729 \begin_layout Plain Layout
15740 \begin_layout Description
15741 \begin_inset Flex Code
15744 \begin_layout Plain Layout
15751 \begin_inset Flex Code
15754 \begin_layout Plain Layout
15763 \begin_inset space \thinspace{}
15767 \begin_inset Flex Code
15770 \begin_layout Plain Layout
15776 ] たとえば\SpecialChar TeX
15777 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
15780 \begin_layout Description
15781 \begin_inset Flex Code
15784 \begin_layout Plain Layout
15791 \begin_inset Flex Code
15794 \begin_layout Plain Layout
15803 \begin_inset space \thinspace{}
15807 \begin_inset Flex Code
15810 \begin_layout Plain Layout
15816 ] \SpecialChar LaTeX
15817 出力において、この差込枠が開始する前と終了する後に、改行を強制します。これは、解析上の目的のために、差込枠が単独行に出力されるように保証します。
15820 \begin_layout Description
15821 \begin_inset Flex Code
15824 \begin_layout Plain Layout
15831 \begin_inset Flex Code
15834 \begin_layout Plain Layout
15843 \begin_inset space \thinspace{}
15847 \begin_inset Flex Code
15850 \begin_layout Plain Layout
15856 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
15859 \begin_layout Description
15860 \begin_inset Flex Code
15863 \begin_layout Plain Layout
15872 \begin_inset Flex Code
15875 \begin_layout Plain Layout
15884 \begin_inset space \thinspace{}
15888 \begin_inset Flex Code
15891 \begin_layout Plain Layout
15898 \begin_inset CommandInset ref
15900 reference "subsec:段落様式"
15907 \begin_layout Description
15908 \begin_inset Flex Code
15911 \begin_layout Plain Layout
15917 これらは、XHTML出力で使用されます。
15918 \begin_inset CommandInset ref
15920 reference "sec:XHTML出力のタグ"
15927 \begin_layout Description
15928 \begin_inset Flex Code
15931 \begin_layout Plain Layout
15938 \begin_inset Flex Code
15941 \begin_layout Plain Layout
15950 \begin_inset space \thinspace{}
15954 \begin_inset Flex Code
15957 \begin_layout Plain Layout
15963 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚註の内容が、文書構造の目次に表示されることは望まないでしょ
15964 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
15967 \begin_layout Description
15968 \begin_inset Flex Code
15971 \begin_layout Plain Layout
15980 \begin_inset Flex Code
15983 \begin_layout Plain Layout
15992 \begin_inset space \thinspace{}
15996 \begin_inset Flex Code
15999 \begin_layout Plain Layout
16006 \begin_inset CommandInset ref
16008 reference "subsec:段落様式"
16015 \begin_layout Description
16016 \begin_inset Flex Code
16019 \begin_layout Plain Layout
16026 \begin_inset CommandInset ref
16028 reference "subsec:フォント指定"
16032 節を参照。非効率を回避するため、この定義は
16033 \begin_inset Flex Code
16036 \begin_layout Plain Layout
16045 \begin_layout Description
16046 \begin_inset Flex Code
16049 \begin_layout Plain Layout
16056 \begin_inset Flex Code
16059 \begin_layout Plain Layout
16066 \begin_inset Quotes erd
16070 \begin_inset Quotes erd
16077 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16078 コードや派生枝)、ラベルが動的に変更されます。
16081 \begin_layout Description
16082 \begin_inset Flex Code
16085 \begin_layout Plain Layout
16092 \begin_inset CommandInset ref
16094 reference "subsec:段落様式の国際化"
16101 \begin_layout Description
16102 \begin_inset Flex Code
16105 \begin_layout Plain Layout
16112 \begin_inset Flex Code
16115 \begin_layout Plain Layout
16121 ] 対応する\SpecialChar LaTeX
16122 関連物の名称。環境名ないしはコマンド名。
16125 \begin_layout Description
16126 \begin_inset Flex Code
16129 \begin_layout Plain Layout
16136 \begin_inset Flex Code
16139 \begin_layout Plain Layout
16150 \begin_inset Flex Code
16153 \begin_layout Plain Layout
16160 \begin_inset Flex Code
16163 \begin_layout Plain Layout
16169 のような括弧対を含む。このパラメータは\SpecialChar LyX
16170 内部から変更することはできません(変更可能なパラメータには
16171 \begin_inset Flex Code
16174 \begin_layout Plain Layout
16180 を使用してください)。これは、全ての\SpecialChar LaTeX
16182 \begin_inset Flex Code
16185 \begin_layout Plain Layout
16194 \begin_layout Description
16195 \begin_inset Flex Code
16198 \begin_layout Plain Layout
16205 \begin_inset Flex Code
16208 \begin_layout Plain Layout
16209 Command, Environment, None
16214 ] 様式がどのように\SpecialChar LaTeX
16219 \begin_layout Plain Layout
16220 これらのルールはSGMLクラスにも適用されるので、
16221 \begin_inset Flex Code
16224 \begin_layout Plain Layout
16230 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16236 \begin_inset Separator parbreak
16243 \begin_layout Description
16244 \begin_inset Flex Code
16247 \begin_layout Plain Layout
16256 \begin_layout Description
16257 \begin_inset Flex Code
16260 \begin_layout Plain Layout
16267 \begin_inset Flex Code
16270 \begin_layout Plain Layout
16277 {\SpecialChar ldots
16286 \begin_layout Description
16287 \begin_inset Flex Code
16290 \begin_layout Plain Layout
16297 \begin_inset Flex Code
16300 \begin_layout Plain Layout
16307 }\SpecialChar ldots
16322 \begin_layout Standard
16323 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16324 出力は、\SpecialChar LaTeX
16328 \begin_layout LyX-Code
16331 LatexName[LatexParam]{\SpecialChar ldots
16335 \begin_layout Standard
16339 \begin_layout LyX-Code
16342 begin{LatexName}[LatexParam] \SpecialChar ldots
16348 \begin_layout Standard
16353 \begin_layout Description
16354 \begin_inset Flex Code
16357 \begin_layout Plain Layout
16364 \begin_inset Flex Code
16367 \begin_layout Plain Layout
16373 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16374 \begin_inset Flex Code
16377 \begin_layout Plain Layout
16386 \begin_layout Description
16387 \begin_inset Flex Code
16390 \begin_layout Plain Layout
16397 \begin_inset Flex Code
16400 \begin_layout Plain Layout
16407 \begin_inset Flex Code
16410 \begin_layout Plain Layout
16417 \begin_inset Flex Code
16420 \begin_layout Plain Layout
16427 \begin_inset Flex Code
16430 \begin_layout Plain Layout
16436 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16437 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16438 \begin_inset Flex Code
16441 \begin_layout Plain Layout
16448 \begin_inset Flex Code
16451 \begin_layout Plain Layout
16458 \begin_inset Flex Code
16461 \begin_layout Plain Layout
16468 \begin_inset Flex Code
16471 \begin_layout Plain Layout
16478 \begin_inset Flex Code
16481 \begin_layout Plain Layout
16491 設定すれば、真に設定することができます。
16494 \begin_layout Description
16495 \begin_inset Flex Code
16498 \begin_layout Plain Layout
16505 \begin_inset Flex Code
16508 \begin_layout Plain Layout
16517 \begin_inset space \thinspace{}
16521 \begin_inset Flex Code
16524 \begin_layout Plain Layout
16530 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16531 \begin_inset Flex Code
16534 \begin_layout Plain Layout
16541 \begin_inset Flex Code
16544 \begin_layout Plain Layout
16551 \begin_inset Flex Code
16554 \begin_layout Plain Layout
16564 指定されれば、他の値に指定し直すことができます。既定値は真です。
16567 \begin_layout Description
16568 \begin_inset Flex Code
16571 \begin_layout Plain Layout
16578 \begin_inset Flex Code
16581 \begin_layout Plain Layout
16590 \begin_inset space \thinspace{}
16594 \begin_inset Flex Code
16597 \begin_layout Plain Layout
16604 \begin_inset Flex Code
16607 \begin_layout Plain Layout
16615 するか否か(註:当該コマンド自身をprotectするかどうかでは
16622 \begin_layout Description
16623 \begin_inset Flex Code
16626 \begin_layout Plain Layout
16633 \begin_inset Flex Code
16636 \begin_layout Plain Layout
16643 \begin_inset Flex Code
16646 \begin_layout Plain Layout
16655 \begin_layout Description
16656 \begin_inset Flex Code
16659 \begin_layout Plain Layout
16666 \begin_inset Flex Code
16669 \begin_layout Plain Layout
16676 \begin_inset Flex Code
16679 \begin_layout Plain Layout
16686 \begin_inset Flex Code
16689 \begin_layout Plain Layout
16696 \begin_inset Flex Code
16699 \begin_layout Plain Layout
16705 の改名を、後方互換性を維持しながら行うために用いられます。
16708 \begin_layout Description
16709 \begin_inset Flex Code
16712 \begin_layout Plain Layout
16719 \begin_inset Flex Code
16722 \begin_layout Plain Layout
16731 \begin_inset space \thinspace{}
16735 \begin_inset Flex Code
16738 \begin_layout Plain Layout
16745 \begin_inset CommandInset ref
16747 reference "subsec:段落様式"
16754 \begin_layout Description
16755 \begin_inset Flex Code
16758 \begin_layout Plain Layout
16767 \begin_inset Flex Code
16770 \begin_layout Plain Layout
16779 \begin_inset space \thinspace{}
16783 \begin_inset Flex Code
16786 \begin_layout Plain Layout
16793 \begin_inset CommandInset ref
16795 reference "subsec:段落様式"
16802 \begin_layout Description
16803 \begin_inset Flex Code
16806 \begin_layout Plain Layout
16813 \begin_inset CommandInset ref
16815 reference "subsec:段落様式"
16822 \begin_layout Description
16823 \begin_inset Flex Code
16826 \begin_layout Plain Layout
16833 \begin_inset Flex Code
16836 \begin_layout Plain Layout
16842 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
16845 \begin_layout Description
16846 \begin_inset Flex Code
16849 \begin_layout Plain Layout
16856 \begin_inset Flex Code
16859 \begin_layout Plain Layout
16866 \begin_inset CommandInset ref
16868 reference "subsec:段落様式"
16875 \begin_layout Description
16876 \begin_inset Flex Code
16879 \begin_layout Plain Layout
16886 \begin_inset Flex Code
16889 \begin_layout Plain Layout
16898 \begin_inset space \thinspace{}
16902 \begin_inset Flex Code
16905 \begin_layout Plain Layout
16912 \begin_inset Flex Code
16915 \begin_layout Plain Layout
16921 タグで定義された)この様式の\SpecialChar LaTeX
16923 \begin_inset Flex Code
16926 \begin_layout Plain Layout
16932 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
16935 \begin_layout Description
16936 \begin_inset Flex Code
16939 \begin_layout Plain Layout
16946 \begin_inset Flex Code
16949 \begin_layout Plain Layout
16956 \begin_inset space \thinspace{}
16960 \begin_inset Flex Code
16963 \begin_layout Plain Layout
16971 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
16972 \begin_inset Note Note
16975 \begin_layout Plain Layout
16976 This is outdated: The default changed from 1 to 0
16984 \begin_layout Description
16985 \begin_inset Flex Code
16988 \begin_layout Plain Layout
16995 \begin_inset Flex Code
16998 \begin_layout Plain Layout
17004 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17005 \begin_inset Flex Code
17008 \begin_layout Plain Layout
17017 \begin_layout Description
17018 \begin_inset Flex Code
17021 \begin_layout Plain Layout
17028 \begin_inset Flex Code
17031 \begin_layout Plain Layout
17038 \begin_inset space \thinspace{}
17042 \begin_inset Flex Code
17045 \begin_layout Plain Layout
17053 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17056 \begin_layout Subsection
17058 \begin_inset CommandInset label
17067 \begin_layout Standard
17069 \begin_inset Flex MenuItem
17072 \begin_layout Plain Layout
17079 \begin_inset Flex MenuItem
17082 \begin_layout Plain Layout
17088 ・\SpecialChar ldots
17089 )を定義することが必要です。標準的なカウンタは
17090 \begin_inset Flex Code
17093 \begin_layout Plain Layout
17099 ファイルに含まれているので、作業中のレイアウトファイルに
17102 \begin_layout LyX-Code
17103 Input stdcounters.inc
17106 \begin_layout Standard
17107 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17110 \begin_layout LyX-Code
17114 \begin_layout Standard
17116 \begin_inset Flex Code
17119 \begin_layout Plain Layout
17125 」は、実際のカウンタ名で置き換えます。また、宣言は「
17126 \begin_inset Flex Code
17129 \begin_layout Plain Layout
17138 \begin_layout Standard
17139 以下のパラメータを使用することができます。
17142 \begin_layout Description
17143 \begin_inset Flex Code
17146 \begin_layout Plain Layout
17153 \begin_inset Flex Code
17156 \begin_layout Plain Layout
17162 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17165 \begin_layout Description
17166 \begin_inset Flex Code
17169 \begin_layout Plain Layout
17170 LabelString [文字列=""]
17175 定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17176 \begin_inset Flex Code
17179 \begin_layout Plain Layout
17180 LabelStringAppendix
17185 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17186 \begin_inset Separator parbreak
17193 \begin_layout Itemize
17194 \begin_inset Flex Code
17197 \begin_layout Plain Layout
17206 \begin_inset Flex Code
17209 \begin_layout Plain Layout
17216 \begin_inset Flex Code
17219 \begin_layout Plain Layout
17226 \begin_inset Newline linebreak
17230 \begin_inset Flex Code
17233 \begin_layout Plain Layout
17234 LabelStringAppendix
17242 \begin_layout Itemize
17243 カウンタ値は、\SpecialChar LaTeX
17245 \begin_inset Flex Code
17248 \begin_layout Plain Layout
17264 を用いて表現することができます。ここで
17265 \begin_inset Flex Code
17268 \begin_layout Plain Layout
17277 \begin_inset Flex Code
17280 \begin_layout Plain Layout
17286 :1, 2, 3,\SpecialChar ldots
17288 \begin_inset Flex Code
17291 \begin_layout Plain Layout
17297 :a, b, c, \SpecialChar ldots
17299 \begin_inset Flex Code
17302 \begin_layout Plain Layout
17308 :A, B, C, \SpecialChar ldots
17310 \begin_inset Flex Code
17313 \begin_layout Plain Layout
17319 :i, ii, iii, \SpecialChar ldots
17321 \begin_inset Flex Code
17324 \begin_layout Plain Layout
17330 :I, II, III\SpecialChar ldots
17335 \begin_layout Standard
17336 \begin_inset Flex Code
17339 \begin_layout Plain Layout
17345 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17346 \begin_inset Flex Code
17349 \begin_layout Plain Layout
17356 \begin_inset Flex Code
17359 \begin_layout Plain Layout
17366 \begin_inset Newline linebreak
17370 \begin_inset Flex Code
17373 \begin_layout Plain Layout
17384 \begin_inset Flex Code
17387 \begin_layout Plain Layout
17398 \begin_layout Description
17399 \begin_inset Flex Code
17402 \begin_layout Plain Layout
17403 LabelStringAppendix
17409 \begin_inset Flex Code
17412 \begin_layout Plain Layout
17419 \begin_inset Flex Code
17422 \begin_layout Plain Layout
17428 と同様ですが、付録で使用するためのものです。
17431 \begin_layout Description
17432 \begin_inset Flex Code
17435 \begin_layout Plain Layout
17442 \begin_inset Flex Code
17445 \begin_layout Plain Layout
17452 \begin_inset Quotes erd
17456 \begin_inset Quotes erd
17459 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17460 \begin_inset space ~
17463 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17467 \begin_layout Description
17468 \begin_inset Flex Code
17471 \begin_layout Plain Layout
17478 \begin_inset Flex Code
17481 \begin_layout Plain Layout
17488 \begin_inset Quotes erd
17492 \begin_inset Quotes erd
17495 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17496 \begin_inset Flex Code
17499 \begin_layout Plain Layout
17506 \begin_inset Flex Code
17509 \begin_layout Plain Layout
17518 \begin_layout Subsection
17520 \begin_inset CommandInset label
17522 name "subsec:フォント指定"
17529 \begin_layout Standard
17530 フォント指定は、以下のような形を取ります。
17533 \begin_layout LyX-Code
17549 \begin_layout LyX-Code
17553 \begin_layout LyX-Code
17557 \begin_layout Standard
17558 以下のコマンドを使用することができます。
17561 \begin_layout Description
17562 \begin_inset Flex Code
17565 \begin_layout Plain Layout
17572 \begin_inset Flex Code
17575 \begin_layout Plain Layout
17584 \begin_inset Flex Code
17587 \begin_layout Plain Layout
17594 \begin_inset Flex Code
17597 \begin_layout Plain Layout
17604 \begin_inset Flex Code
17607 \begin_layout Plain Layout
17614 \begin_inset Flex Code
17617 \begin_layout Plain Layout
17624 \begin_inset Flex Code
17627 \begin_layout Plain Layout
17634 \begin_inset Flex Code
17637 \begin_layout Plain Layout
17644 \begin_inset Flex Code
17647 \begin_layout Plain Layout
17654 \begin_inset Flex Code
17657 \begin_layout Plain Layout
17666 \begin_layout Description
17667 \begin_inset Flex Code
17670 \begin_layout Plain Layout
17679 \begin_inset Flex Code
17682 \begin_layout Plain Layout
17691 \begin_inset Flex Code
17694 \begin_layout Plain Layout
17701 \begin_inset Flex Code
17704 \begin_layout Plain Layout
17713 \begin_layout Description
17714 \begin_inset Flex Code
17717 \begin_layout Plain Layout
17724 \begin_inset Flex Code
17727 \begin_layout Plain Layout
17734 \begin_inset Flex Code
17737 \begin_layout Plain Layout
17744 \begin_inset Flex Code
17747 \begin_layout Plain Layout
17754 \begin_inset Flex Code
17757 \begin_layout Plain Layout
17764 \begin_inset Flex Code
17767 \begin_layout Plain Layout
17774 \begin_inset Flex Code
17777 \begin_layout Plain Layout
17784 \begin_inset Flex Code
17787 \begin_layout Plain Layout
17794 \begin_inset Flex Code
17797 \begin_layout Plain Layout
17804 \begin_inset Flex Code
17807 \begin_layout Plain Layout
17814 \begin_inset Flex Code
17817 \begin_layout Plain Layout
17824 \begin_inset Flex Code
17827 \begin_layout Plain Layout
17834 \begin_inset Flex Code
17837 \begin_layout Plain Layout
17844 \begin_inset Flex Code
17847 \begin_layout Plain Layout
17853 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
17854 \begin_inset Newline newline
17858 \begin_inset Flex Code
17861 \begin_layout Plain Layout
17868 \begin_inset Flex Code
17871 \begin_layout Plain Layout
17877 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
17879 \begin_inset Flex Code
17882 \begin_layout Plain Layout
17888 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
17891 \begin_layout Description
17892 \begin_inset Flex Code
17895 \begin_layout Plain Layout
17904 \begin_inset Flex Code
17907 \begin_layout Plain Layout
17916 \begin_inset Flex Code
17919 \begin_layout Plain Layout
17928 \begin_layout Description
17929 \begin_inset Flex Code
17932 \begin_layout Plain Layout
17941 \begin_inset Flex Code
17944 \begin_layout Plain Layout
17953 \begin_inset Flex Code
17956 \begin_layout Plain Layout
17963 \begin_inset Flex Code
17966 \begin_layout Plain Layout
17973 \begin_inset Flex Code
17976 \begin_layout Plain Layout
17985 \begin_layout Description
17986 \begin_inset Flex Code
17989 \begin_layout Plain Layout
17996 \begin_inset Flex Code
17999 \begin_layout Plain Layout
18006 \begin_inset Flex Code
18009 \begin_layout Plain Layout
18016 \begin_inset Flex Code
18019 \begin_layout Plain Layout
18028 \begin_inset Flex Code
18031 \begin_layout Plain Layout
18038 \begin_inset Flex Code
18041 \begin_layout Plain Layout
18048 \begin_inset Flex Code
18051 \begin_layout Plain Layout
18058 \begin_inset Flex Code
18061 \begin_layout Plain Layout
18068 \begin_inset Flex Code
18071 \begin_layout Plain Layout
18080 \begin_layout Subsection
18081 \begin_inset CommandInset label
18083 name "subsec:引用書式指定"
18090 \begin_layout Standard
18091 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18092 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18093 \begin_inset Flex Code
18096 \begin_layout Plain Layout
18102 ブロックが使用されています。このブロックは、以下のような形をしています。
18105 \begin_layout LyX-Code
18109 \begin_layout LyX-Code
18113 \begin_layout LyX-Code
18117 \begin_layout LyX-Code
18121 \begin_layout Standard
18122 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18124 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18125 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18127 \begin_inset Flex Code
18130 \begin_layout Plain Layout
18136 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18137 文書クラスにインクルードされています。
18140 \begin_layout Standard
18141 この定義は、Bib\SpecialChar TeX
18142 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18143 \begin_inset Flex Code
18146 \begin_layout Plain Layout
18153 \begin_inset Flex Code
18156 \begin_layout Plain Layout
18162 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18165 \begin_layout LyX-Code
18167 \begin_inset Quotes eld
18171 \begin_inset Quotes erd
18177 \begin_layout Standard
18178 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18181 \begin_layout Standard
18182 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18183 \begin_inset Flex Code
18186 \begin_layout Plain Layout
18188 \begin_inset space ~
18196 のように、条件付きの構成を使用することができます。これは、
18197 \begin_inset Flex Code
18200 \begin_layout Plain Layout
18207 \begin_inset space ~
18210 」とvolumeキーを出力するという意味です。また、
18211 \begin_inset Newline newline
18215 \begin_inset Flex Code
18218 \begin_layout Plain Layout
18219 {%author%[[%author%]][[%editor%, ed.]]}
18225 \begin_inset Newline newline
18228 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18229 \begin_inset Flex Code
18232 \begin_layout Plain Layout
18238 キーが存在するならば出力され、そうでなければeditorキーと「,
18239 \begin_inset space ~
18242 ed.」が出力されます。ここでもキーは、
18243 \begin_inset Flex Code
18246 \begin_layout Plain Layout
18252 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18253 \begin_inset Flex Code
18256 \begin_layout Plain Layout
18263 \begin_inset Flex Code
18266 \begin_layout Plain Layout
18272 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18275 \begin_layout Standard
18276 もう一つ、定義中で使用することのできる文法として、
18277 \begin_inset Flex Code
18280 \begin_layout Plain Layout
18286 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18287 グを出力させたくはありませんから、HTMLタグは「
18288 \begin_inset Flex Code
18291 \begin_layout Plain Layout
18298 \begin_inset Flex Code
18301 \begin_layout Plain Layout
18307 」でくるんでやらなくてはならないのです。
18310 \begin_layout Standard
18311 \begin_inset Flex Code
18314 \begin_layout Plain Layout
18320 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18323 \begin_layout LyX-Code
18325 \begin_inset Quotes eld
18329 \begin_inset Quotes erd
18335 \begin_layout Standard
18336 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18337 \begin_inset Flex Code
18340 \begin_layout Plain Layout
18346 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18348 \begin_inset Flex Code
18351 \begin_layout Plain Layout
18357 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18360 \begin_layout LyX-Code
18364 \begin_layout Standard
18365 のようなことはしないでください。\SpecialChar LyX
18366 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18369 \begin_layout Standard
18373 \begin_layout LyX-Code
18377 \begin_layout Standard
18378 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18379 \begin_inset Flex Code
18382 \begin_layout Plain Layout
18388 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18389 \begin_inset Flex Code
18392 \begin_layout Plain Layout
18398 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18401 \begin_layout Standard
18402 以下は、これらの機能を全て使った例です。
18403 \begin_inset VSpace defskip
18409 \begin_layout Standard
18413 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18416 \begin_layout Standard
18417 \begin_inset VSpace defskip
18421 \begin_inset Flex Code
18424 \begin_layout Plain Layout
18430 キーが定義されているならば、著者とコンマを出力し、
18431 \begin_inset Flex Code
18434 \begin_layout Plain Layout
18441 \begin_inset Flex Code
18444 \begin_layout Plain Layout
18450 キーが定義されているならば、編集者名の後に
18451 \begin_inset Flex Code
18454 \begin_layout Plain Layout
18460 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18461 \begin_inset Flex Code
18464 \begin_layout Plain Layout
18470 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18473 \begin_layout Section
18474 \begin_inset CommandInset label
18476 name "sec:XHTML出力のタグ"
18483 \begin_layout Standard
18485 やDocBookと同様、\SpecialChar LyX
18486 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18487 は適切な既定値を提供し、前述したように、他のレイアウト
18488 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18490 \begin_inset Flex Code
18493 \begin_layout Plain Layout
18499 宣言で提供されている情報を利用しようと試みます。
18502 \begin_layout Standard
18503 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18504 、これが必要になる場合もあるので、\SpecialChar LyX
18505 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18508 \begin_layout Standard
18509 様式宣言や差込枠宣言の外で使用することができるタグに、
18510 \begin_inset Flex Code
18513 \begin_layout Plain Layout
18520 \begin_inset Flex Code
18523 \begin_layout Plain Layout
18529 の2つがあることに注意してください。これらの詳細については、
18530 \begin_inset CommandInset ref
18532 reference "subsec:汎用テキストクラスパラメータ"
18539 \begin_layout Subsection
18540 \begin_inset CommandInset label
18542 name "subsec:段落様式-XHTML"
18549 \begin_layout Standard
18551 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18552 \begin_inset Flex Code
18555 \begin_layout Plain Layout
18565 \begin_layout Standard
18566 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18569 \begin_layout LyX-Code
18571 \begin_inset Quotes erd
18575 \begin_inset Quotes erd
18581 \begin_layout LyX-Code
18583 \begin_inset Quotes erd
18587 \begin_inset Quotes erd
18593 \begin_layout LyX-Code
18597 \begin_layout LyX-Code
18601 \begin_layout Standard
18602 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18605 \begin_layout Standard
18606 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18609 \begin_layout LyX-Code
18611 \begin_inset Quotes erd
18615 \begin_inset Quotes erd
18621 \begin_layout LyX-Code
18623 \begin_inset Quotes erd
18627 \begin_inset Quotes erd
18631 \begin_inset Quotes erd
18635 \begin_inset Quotes erd
18638 >環境ラベル</labeltag>最初の段落。
18641 \begin_layout LyX-Code
18645 \begin_layout LyX-Code
18646 <itemtag>二つめの段落。</itemtag>
18649 \begin_layout LyX-Code
18653 \begin_layout Standard
18654 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18657 \begin_layout Standard
18658 リストに関しては、次のような形になります。
18661 \begin_layout LyX-Code
18663 \begin_inset Quotes erd
18667 \begin_inset Quotes erd
18673 \begin_layout LyX-Code
18675 \begin_inset Quotes erd
18679 \begin_inset Quotes erd
18683 \begin_inset Quotes erd
18687 \begin_inset Quotes erd
18690 >リストのラベル</labeltag>最初の項目。</itemtag>
18693 \begin_layout LyX-Code
18695 \begin_inset Quotes erd
18699 \begin_inset Quotes erd
18703 \begin_inset Quotes erd
18707 \begin_inset Quotes erd
18710 >リストのラベル</labeltag>二つめの項目。</itemtag>
18713 \begin_layout LyX-Code
18717 \begin_layout LyX-Code
18721 \begin_layout LyX-Code
18723 \begin_inset Quotes erd
18727 \begin_inset Quotes erd
18733 \begin_layout LyX-Code
18735 \begin_inset Quotes erd
18739 \begin_inset Quotes erd
18742 >リストのラベル</labeltag><itemtag attr=
18743 \begin_inset Quotes erd
18747 \begin_inset Quotes erd
18753 \begin_layout LyX-Code
18755 \begin_inset Quotes erd
18759 \begin_inset Quotes erd
18762 >リストのラベル</labeltag><itemtag attr=
18763 \begin_inset Quotes erd
18767 \begin_inset Quotes erd
18773 \begin_layout LyX-Code
18777 \begin_layout Standard
18779 \begin_inset Flex Code
18782 \begin_layout Plain Layout
18789 \begin_inset Flex Code
18792 \begin_layout Plain Layout
18798 の順序が違っていることに注意してください。どちらの順序になるかは、
18799 \begin_inset Flex Code
18802 \begin_layout Plain Layout
18809 \begin_inset Flex Code
18812 \begin_layout Plain Layout
18818 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
18821 \begin_layout Standard
18822 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
18824 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
18828 \begin_layout Description
18829 \begin_inset Flex Code
18832 \begin_layout Plain Layout
18839 \begin_inset Flex Code
18842 \begin_layout Plain Layout
18848 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
18849 \begin_inset Flex Code
18852 \begin_layout Plain Layout
18858 」のようなものです。既定においては、\SpecialChar LyX
18860 \begin_inset Flex Code
18863 \begin_layout Plain Layout
18870 \begin_inset Flex Code
18873 \begin_layout Plain Layout
18879 は、レイアウトの\SpecialChar LyX
18880 名であり、chapterのように小文字で記述します。
18883 \begin_layout Description
18884 \begin_inset Flex Code
18887 \begin_layout Plain Layout
18894 \begin_inset Flex Code
18897 \begin_layout Plain Layout
18908 \begin_inset Flex Code
18911 \begin_layout Plain Layout
18917 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
18918 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
18919 \begin_inset Flex Code
18922 \begin_layout Plain Layout
18928 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
18929 \begin_inset Flex Code
18932 \begin_layout Plain Layout
18941 \begin_layout Description
18942 \begin_inset Flex Code
18945 \begin_layout Plain Layout
18952 \begin_inset Flex Code
18955 \begin_layout Plain Layout
18961 ] 環境の段落に使用されるタグ。上記各例の
18962 \begin_inset Flex Code
18965 \begin_layout Plain Layout
18972 \begin_inset Flex Code
18975 \begin_layout Plain Layout
18984 \begin_layout Description
18985 \begin_inset Flex Code
18988 \begin_layout Plain Layout
18995 \begin_inset Flex Code
18998 \begin_layout Plain Layout
19005 \begin_inset Flex Code
19008 \begin_layout Plain Layout
19009 class=`レイアウト名_item'
19019 \begin_inset Flex Code
19022 \begin_layout Plain Layout
19031 \begin_layout Description
19032 \begin_inset Flex Code
19035 \begin_layout Plain Layout
19042 \begin_inset Flex Code
19045 \begin_layout Plain Layout
19051 ] 段落と項目ラベルに使用されるタグ。上記各例の
19052 \begin_inset Flex Code
19055 \begin_layout Plain Layout
19062 \begin_inset Flex Code
19065 \begin_layout Plain Layout
19072 \begin_inset Flex Code
19075 \begin_layout Plain Layout
19082 \begin_inset Flex Code
19085 \begin_layout Plain Layout
19086 Centered_Top_Environment
19092 \begin_inset Flex Code
19095 \begin_layout Plain Layout
19102 \begin_inset Flex Code
19105 \begin_layout Plain Layout
19114 \begin_layout Description
19115 \begin_inset Flex Code
19118 \begin_layout Plain Layout
19125 \begin_inset Flex Code
19128 \begin_layout Plain Layout
19135 \begin_inset Flex Code
19138 \begin_layout Plain Layout
19139 class=`レイアウト名_label'
19149 \begin_inset Flex Code
19152 \begin_layout Plain Layout
19161 \begin_layout Description
19162 \begin_inset Flex Code
19165 \begin_layout Plain Layout
19172 \begin_inset Flex Code
19175 \begin_layout Plain Layout
19185 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19187 \begin_inset Flex Code
19190 \begin_layout Plain Layout
19191 `<dt>\SpecialChar ldots
19192 </dt><dd>\SpecialChar ldots
19198 という形を得るために使用されます。既定値は
19199 \begin_inset Flex Code
19202 \begin_layout Plain Layout
19208 で、labelタグはitemタグの中に出力されます。
19211 \begin_layout Description
19212 \begin_inset Flex Code
19215 \begin_layout Plain Layout
19222 \begin_inset Flex Code
19225 \begin_layout Plain Layout
19231 セクションに出力される情報。これは、たとえば、
19232 \begin_inset Flex Code
19235 \begin_layout Plain Layout
19242 \begin_inset Flex Code
19245 \begin_layout Plain Layout
19251 ブロックをインクルードするのに使用することができます。
19254 \begin_layout Description
19255 \begin_inset Flex Code
19258 \begin_layout Plain Layout
19264 この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19265 \begin_inset Flex Code
19268 \begin_layout Plain Layout
19274 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19275 \begin_inset Flex Code
19278 \begin_layout Plain Layout
19287 \begin_layout Description
19288 \begin_inset Flex Code
19291 \begin_layout Plain Layout
19298 \begin_inset Flex Code
19301 \begin_layout Plain Layout
19307 ] 主幹ラベルに使用されるタグ。上記各例の
19308 \begin_inset Flex Code
19311 \begin_layout Plain Layout
19318 \begin_inset Flex Code
19321 \begin_layout Plain Layout
19330 \begin_layout Description
19331 \begin_inset Flex Code
19334 \begin_layout Plain Layout
19341 \begin_inset Flex Code
19344 \begin_layout Plain Layout
19355 \begin_inset Flex Code
19358 \begin_layout Plain Layout
19364 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19365 \begin_inset Flex Code
19368 \begin_layout Plain Layout
19375 \begin_inset Flex Code
19378 \begin_layout Plain Layout
19387 \begin_layout Subsection
19391 \begin_layout Standard
19392 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19396 \begin_layout Plain Layout
19397 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19403 。ここでも、\SpecialChar LyX
19404 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19407 \begin_layout Standard
19409 が差込枠用に出力するXHTMLは、以下の形を取ります。
19412 \begin_layout LyX-Code
19414 \begin_inset Quotes erd
19418 \begin_inset Quotes erd
19424 \begin_layout LyX-Code
19425 <labeltag>ラベル</labeltag>
19428 \begin_layout LyX-Code
19430 \begin_inset Quotes erd
19434 \begin_inset Quotes erd
19437 >差込枠の内容。</innertag>
19440 \begin_layout LyX-Code
19444 \begin_layout Standard
19446 \begin_inset Flex Code
19449 \begin_layout Plain Layout
19455 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19456 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19457 \begin_inset Flex Code
19460 \begin_layout Plain Layout
19466 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19470 \begin_layout Description
19471 \begin_inset Flex Code
19474 \begin_layout Plain Layout
19481 \begin_inset Flex Code
19484 \begin_layout Plain Layout
19490 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19491 \begin_inset Flex Code
19494 \begin_layout Plain Layout
19495 class=`myinset' onclick=`\SpecialChar ldots
19501 」のようなものです。既定においては、\SpecialChar LyX
19503 \begin_inset Flex Code
19506 \begin_layout Plain Layout
19513 \begin_inset Flex Code
19516 \begin_layout Plain Layout
19522 は、差込枠の\SpecialChar LyX
19523 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19526 \begin_layout Description
19527 \begin_inset Flex Code
19530 \begin_layout Plain Layout
19537 \begin_inset Flex Code
19540 \begin_layout Plain Layout
19551 \begin_inset Flex Code
19554 \begin_layout Plain Layout
19560 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19561 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19562 \begin_inset Flex Code
19565 \begin_layout Plain Layout
19571 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19572 \begin_inset Flex Code
19575 \begin_layout Plain Layout
19584 \begin_layout Description
19585 \begin_inset Flex Code
19588 \begin_layout Plain Layout
19595 \begin_inset Flex Code
19598 \begin_layout Plain Layout
19605 \begin_inset Flex Code
19608 \begin_layout Plain Layout
19617 \begin_layout Description
19618 \begin_inset Flex Code
19621 \begin_layout Plain Layout
19628 \begin_inset Flex Code
19631 \begin_layout Plain Layout
19638 \begin_inset Flex Code
19641 \begin_layout Plain Layout
19650 \begin_layout Description
19651 \begin_inset Flex Code
19654 \begin_layout Plain Layout
19661 \begin_inset Flex Code
19664 \begin_layout Plain Layout
19672 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19675 \begin_layout Description
19676 \begin_inset Flex Code
19679 \begin_layout Plain Layout
19686 \begin_inset Flex Code
19689 \begin_layout Plain Layout
19695 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚註用には
19696 \begin_inset Flex Code
19699 \begin_layout Plain Layout
19707 など。これは非必須であり、既定値はありません。
19710 \begin_layout Description
19711 \begin_inset Flex Code
19714 \begin_layout Plain Layout
19721 \begin_inset Flex Code
19724 \begin_layout Plain Layout
19730 セクションに出力される情報。これは、たとえば、
19731 \begin_inset Flex Code
19734 \begin_layout Plain Layout
19741 \begin_inset Flex Code
19744 \begin_layout Plain Layout
19750 ブロックをインクルードするのに使用することができます。
19753 \begin_layout Description
19754 \begin_inset Flex Code
19757 \begin_layout Plain Layout
19763 この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19764 \begin_inset Flex Code
19767 \begin_layout Plain Layout
19773 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19776 \begin_layout Description
19777 \begin_inset Flex Code
19780 \begin_layout Plain Layout
19787 \begin_inset Flex Code
19790 \begin_layout Plain Layout
19796 ] 主幹ラベルに使用されるタグ。上記各例の
19797 \begin_inset Flex Code
19800 \begin_layout Plain Layout
19807 \begin_inset Flex Code
19810 \begin_layout Plain Layout
19817 \begin_inset Flex Code
19820 \begin_layout Plain Layout
19827 \begin_inset Flex Code
19830 \begin_layout Plain Layout
19837 \begin_inset Flex Code
19840 \begin_layout Plain Layout
19849 \begin_layout Subsection
19853 \begin_layout Standard
19854 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
19857 \begin_layout LyX-Code
19859 \begin_inset Quotes erd
19863 \begin_inset Quotes erd
19869 \begin_layout LyX-Code
19873 \begin_layout LyX-Code
19877 \begin_layout Standard
19878 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
19882 \begin_layout Description
19883 \begin_inset Flex Code
19886 \begin_layout Plain Layout
19893 \begin_inset Flex Code
19896 \begin_layout Plain Layout
19902 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19903 \begin_inset Flex Code
19906 \begin_layout Plain Layout
19907 class=`myfloat' onclick=`\SpecialChar ldots
19913 」のようなものです。既定においては、\SpecialChar LyX
19915 \begin_inset Flex Code
19918 \begin_layout Plain Layout
19919 class=`float フロート-フロート型'
19925 \begin_inset Flex Code
19928 \begin_layout Plain Layout
19935 \begin_inset CommandInset ref
19937 reference "subsec:フロート"
19941 参照)、この型のフロートの\SpecialChar LyX
19942 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
19945 \begin_layout Description
19946 \begin_inset Flex Code
19949 \begin_layout Plain Layout
19955 このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19956 \begin_inset Flex Code
19959 \begin_layout Plain Layout
19965 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19968 \begin_layout Description
19969 \begin_inset Flex Code
19972 \begin_layout Plain Layout
19979 \begin_inset Flex Code
19982 \begin_layout Plain Layout
19988 ] このフロートに使用されるタグ。上記各例の
19989 \begin_inset Flex Code
19992 \begin_layout Plain Layout
19999 \begin_inset Flex Code
20002 \begin_layout Plain Layout
20008 であり、ほとんどの場合変更する必要はありません。
20011 \begin_layout Subsection
20015 \begin_layout Standard
20017 \begin_inset Flex Code
20020 \begin_layout Plain Layout
20026 ブロックを使用して整形することができます。詳細については、
20027 \begin_inset CommandInset ref
20029 reference "subsec:引用書式指定"
20036 \begin_layout Subsection
20041 \begin_layout Standard
20043 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20045 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20048 \begin_layout Standard
20051 \begin_inset Flex Code
20054 \begin_layout Plain Layout
20061 \begin_inset Flex Code
20064 \begin_layout Plain Layout
20071 \begin_inset Flex Code
20074 \begin_layout Plain Layout
20081 \begin_inset Flex Code
20084 \begin_layout Plain Layout
20091 \begin_inset Flex Code
20094 \begin_layout Plain Layout
20100 を利用して、フォント情報についてのみCSSを自動生成します(
20101 \begin_inset CommandInset ref
20103 reference "subsec:フォント指定"
20107 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20108 \begin_inset Flex Code
20111 \begin_layout Plain Layout
20118 \begin_inset Flex Code
20121 \begin_layout Plain Layout
20122 font-family: sans-serif
20127 」になります。\SpecialChar LyX
20128 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20129 \begin_inset Flex URL
20132 \begin_layout Plain Layout
20140 \begin_inset Flex Code
20143 \begin_layout Plain Layout
20152 \begin_layout Chapter
20154 \begin_inset CommandInset label
20156 name "chap:外部素材を取り込む"
20163 \begin_layout Standard
20164 \begin_inset Box Shadowbox
20174 height_special "totalheight"
20179 backgroundcolor "none"
20182 \begin_layout Plain Layout
20183 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20191 \begin_layout Standard
20193 外部のソースから素材を使用する方法は、取扱説明書『
20197 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20200 \begin_layout Section
20204 \begin_layout Standard
20205 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20206 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20208 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20209 \begin_inset Flex MenuItem
20212 \begin_layout Plain Layout
20213 挿入\SpecialChar menuseparator
20214 ファイル\SpecialChar menuseparator
20220 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20221 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20222 の後の版に取り込むことができるようにしてくださることを希望します。
20225 \begin_layout Standard
20226 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20228 \begin_inset Flex Code
20231 \begin_layout Plain Layout
20237 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20238 \begin_inset Flex Code
20241 \begin_layout Plain Layout
20247 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20248 \begin_inset Flex Code
20251 \begin_layout Plain Layout
20257 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20258 ファイルにそのままインクルードできるように、
20259 \begin_inset Flex Code
20262 \begin_layout Plain Layout
20268 を呼び出してPostScriptファイルを生成します。この場合には、
20269 \begin_inset Flex Code
20272 \begin_layout Plain Layout
20278 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20281 \begin_layout Standard
20282 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20283 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20284 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20287 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20290 \begin_layout Standard
20292 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20293 の場合には、\SpecialChar LyX
20294 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20295 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20296 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20300 \begin_layout Section
20304 \begin_layout Standard
20306 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20307 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20308 \begin_inset CommandInset ref
20310 reference "sec:セキュリティに関する論点"
20314 のセキュリティに関する議論を読んでおいてください。
20317 \begin_layout Standard
20318 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20321 \begin_layout Standard
20323 \begin_inset Flex Code
20326 \begin_layout Plain Layout
20327 LyXDir/lib/external_templates
20332 ファイルで定義されています。自分用の版を
20333 \begin_inset Flex Code
20336 \begin_layout Plain Layout
20337 UserDir/external_templates
20345 \begin_layout Standard
20346 典型的なひな型は以下のようになります。
20349 \begin_layout LyX-Code
20353 \begin_layout LyX-Code
20354 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20357 \begin_layout LyX-Code
20361 \begin_layout LyX-Code
20365 \begin_layout LyX-Code
20369 \begin_layout LyX-Code
20373 \begin_layout LyX-Code
20377 \begin_layout LyX-Code
20378 AutomaticProduction true
20381 \begin_layout LyX-Code
20385 \begin_layout LyX-Code
20389 \begin_layout LyX-Code
20393 \begin_layout LyX-Code
20394 TransformCommand Rotate RotationLatexCommand
20397 \begin_layout LyX-Code
20398 TransformCommand Resize ResizeLatexCommand
20401 \begin_layout LyX-Code
20402 Product "$$RotateFront$$ResizeFront
20405 \begin_layout LyX-Code
20410 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20413 \begin_layout LyX-Code
20414 $$ResizeBack$$RotateBack"
20417 \begin_layout LyX-Code
20421 \begin_layout LyX-Code
20422 UpdateResult "$$AbsPath$$Basename.pstex_t"
20425 \begin_layout LyX-Code
20426 Requirement "graphicx"
20429 \begin_layout LyX-Code
20430 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20433 \begin_layout LyX-Code
20434 ReferencedFile latex "$$AbsPath$$Basename.eps"
20437 \begin_layout LyX-Code
20438 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20441 \begin_layout LyX-Code
20445 \begin_layout LyX-Code
20449 \begin_layout LyX-Code
20450 TransformCommand Rotate RotationLatexCommand
20453 \begin_layout LyX-Code
20454 TransformCommand Resize ResizeLatexCommand
20457 \begin_layout LyX-Code
20458 Product "$$RotateFront$$ResizeFront
20461 \begin_layout LyX-Code
20466 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20469 \begin_layout LyX-Code
20470 $$ResizeBack$$RotateBack"
20473 \begin_layout LyX-Code
20474 UpdateFormat pdftex
20477 \begin_layout LyX-Code
20478 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20481 \begin_layout LyX-Code
20482 Requirement "graphicx"
20485 \begin_layout LyX-Code
20486 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20489 \begin_layout LyX-Code
20490 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20493 \begin_layout LyX-Code
20497 \begin_layout LyX-Code
20501 \begin_layout LyX-Code
20502 Product "$$Contents(
20504 "$$AbsPath$$Basename.asc
20509 \begin_layout LyX-Code
20510 UpdateFormat asciixfig
20513 \begin_layout LyX-Code
20514 UpdateResult "$$AbsPath$$Basename.asc"
20517 \begin_layout LyX-Code
20521 \begin_layout LyX-Code
20525 \begin_layout LyX-Code
20526 Product "<graphic fileref=
20528 "$$AbsOrRelPathMaster$$Basename.eps
20533 \begin_layout LyX-Code
20537 \begin_layout LyX-Code
20541 \begin_layout LyX-Code
20542 UpdateResult "$$AbsPath$$Basename.eps"
20545 \begin_layout LyX-Code
20546 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20549 \begin_layout LyX-Code
20550 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20553 \begin_layout LyX-Code
20557 \begin_layout LyX-Code
20558 Product "[XFig: $$FName]"
20561 \begin_layout LyX-Code
20565 \begin_layout LyX-Code
20569 \begin_layout Standard
20571 \begin_inset Flex Code
20574 \begin_layout Plain Layout
20582 \begin_inset Flex Code
20585 \begin_layout Plain Layout
20591 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20592 \begin_inset Flex Code
20595 \begin_layout Plain Layout
20603 \begin_inset Flex Code
20606 \begin_layout Plain Layout
20615 \begin_layout Subsection
20619 \begin_layout Description
20620 \begin_inset Flex Code
20623 \begin_layout Plain Layout
20624 AutomaticProduction
20625 \begin_inset space ~
20633 このひな型で扱うファイルを\SpecialChar LyX
20634 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20637 \begin_layout Description
20638 \begin_inset Flex Code
20641 \begin_layout Plain Layout
20643 \begin_inset space ~
20651 望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20652 \begin_inset Flex Code
20655 \begin_layout Plain Layout
20662 \begin_inset Flex Code
20665 \begin_layout Plain Layout
20672 \begin_inset Flex Code
20675 \begin_layout Plain Layout
20681 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
20684 \begin_layout Description
20685 \begin_inset Flex Code
20688 \begin_layout Plain Layout
20690 \begin_inset space ~
20698 この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
20701 \begin_layout Description
20702 \begin_inset Flex Code
20705 \begin_layout Plain Layout
20707 \begin_inset space ~
20711 \begin_inset space ~
20719 外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
20723 \begin_layout Description
20724 \begin_inset Flex Code
20727 \begin_layout Plain Layout
20729 \begin_inset space ~
20737 オリジナルファイルのファイル形式。これは、\SpecialChar LyX
20738 が知っている書式名でなくてはなりません(
20739 \begin_inset CommandInset ref
20741 reference "sec:ファイル形式"
20745 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
20746 \begin_inset Flex Code
20749 \begin_layout Plain Layout
20755 」を使用してください。この場合、\SpecialChar LyX
20756 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
20759 \begin_layout Description
20760 \begin_inset Flex Code
20763 \begin_layout Plain Layout
20765 \begin_inset space ~
20773 このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
20776 \begin_layout Description
20777 \begin_inset Flex Code
20780 \begin_layout Plain Layout
20782 \begin_inset space ~
20785 Rotate|Resize|Clip|Extra
20790 このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
20791 ログ中の対応するタブを使用可能にします。
20792 \begin_inset Flex Code
20795 \begin_layout Plain Layout
20802 \begin_inset Flex Code
20805 \begin_layout Plain Layout
20812 \begin_inset Flex Code
20815 \begin_layout Plain Layout
20822 \begin_inset Flex Code
20825 \begin_layout Plain Layout
20831 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
20834 \begin_layout Subsection
20835 \begin_inset Flex Code
20838 \begin_layout Plain Layout
20847 \begin_layout Description
20848 \begin_inset Flex Code
20851 \begin_layout Plain Layout
20853 \begin_inset space ~
20856 LaTeX|PDFLaTeX|PlainText|DocBook
20861 この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
20862 \begin_inset Flex Code
20865 \begin_layout Plain Layout
20871 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
20875 \begin_layout Description
20876 \begin_inset Flex Code
20879 \begin_layout Plain Layout
20881 \begin_inset space ~
20885 \begin_inset space ~
20894 \begin_inset Flex Code
20897 \begin_layout Plain Layout
20904 \begin_inset Flex Code
20907 \begin_layout Plain Layout
20914 \begin_inset Flex Code
20917 \begin_layout Plain Layout
20923 自体にも代入マクロを使うことができます。
20924 \begin_inset Flex Code
20927 \begin_layout Plain Layout
20934 \begin_inset Flex Code
20937 \begin_layout Plain Layout
20944 \begin_inset Flex Code
20947 \begin_layout Plain Layout
20953 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
20956 \begin_layout Description
20957 \begin_inset Flex Code
20960 \begin_layout Plain Layout
20962 \begin_inset space ~
20970 書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
20974 \begin_layout Description
20975 \begin_inset Flex Code
20978 \begin_layout Plain Layout
20980 \begin_inset space ~
20988 このコマンドは、\SpecialChar LaTeX
20989 プリアンブルに入れるプリアンブル片を指定します。これは
20990 \begin_inset Flex Code
20993 \begin_layout Plain Layout
21001 \begin_inset Flex Code
21004 \begin_layout Plain Layout
21010 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21013 \begin_layout Description
21014 \begin_inset Flex Code
21017 \begin_layout Plain Layout
21019 \begin_inset space ~
21023 \begin_inset space ~
21031 このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21032 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21035 \begin_layout Description
21036 \begin_inset Flex Code
21039 \begin_layout Plain Layout
21041 \begin_inset space ~
21049 必要とされる\SpecialChar LaTeX
21050 パッケージ名。パッケージは、\SpecialChar LaTeX
21052 \begin_inset Flex Code
21055 \begin_layout Plain Layout
21063 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21066 \begin_layout Description
21067 \begin_inset Flex Code
21070 \begin_layout Plain Layout
21072 \begin_inset space ~
21076 \begin_inset space ~
21079 RotationLatexCommand
21084 このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21085 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21088 \begin_layout Description
21089 \begin_inset Flex Code
21092 \begin_layout Plain Layout
21094 \begin_inset space ~
21098 \begin_inset space ~
21106 このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21107 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21110 \begin_layout Description
21111 \begin_inset Flex Code
21114 \begin_layout Plain Layout
21116 \begin_inset space ~
21120 \begin_inset space ~
21123 RotationLatexOption
21128 このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21131 \begin_layout Description
21132 \begin_inset Flex Code
21135 \begin_layout Plain Layout
21137 \begin_inset space ~
21141 \begin_inset space ~
21149 このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21152 \begin_layout Description
21153 \begin_inset Flex Code
21156 \begin_layout Plain Layout
21158 \begin_inset space ~
21162 \begin_inset space ~
21170 このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21173 \begin_layout Description
21174 \begin_inset Flex Code
21177 \begin_layout Plain Layout
21179 \begin_inset space ~
21183 \begin_inset space ~
21191 このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21194 \begin_layout Description
21195 \begin_inset Flex Code
21198 \begin_layout Plain Layout
21200 \begin_inset space ~
21208 変換されたファイルのファイル形式。これは、\SpecialChar LyX
21209 が知っている書式名でなくてはなりません(
21210 \begin_inset Flex MenuItem
21213 \begin_layout Plain Layout
21214 ツール\SpecialChar menuseparator
21215 設定\SpecialChar menuseparator
21216 ファイル処理\SpecialChar menuseparator
21222 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21223 \begin_inset Flex Code
21226 \begin_layout Plain Layout
21232 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21235 \begin_layout Description
21236 \begin_inset Flex Code
21239 \begin_layout Plain Layout
21241 \begin_inset space ~
21249 変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21252 \begin_layout Subsection
21256 \begin_layout Standard
21258 \begin_inset Flex Code
21261 \begin_layout Plain Layout
21269 \begin_inset Flex Code
21272 \begin_layout Plain Layout
21278 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21279 \begin_inset Flex Code
21282 \begin_layout Plain Layout
21291 \begin_layout Section
21295 \begin_layout Standard
21296 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21297 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21300 \begin_layout Standard
21301 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21304 \begin_layout Standard
21308 \begin_layout Description
21309 \begin_inset Flex Code
21312 \begin_layout Plain Layout
21313 $$AbsOrRelPathMaster
21319 親文書への絶対ファイルパスないしは相対ファイルパス
21322 \begin_layout Description
21323 \begin_inset Flex Code
21326 \begin_layout Plain Layout
21327 $$AbsOrRelPathParent
21333 文書への絶対ファイルパスないしは相対ファイルパス
21336 \begin_layout Description
21337 \begin_inset Flex Code
21340 \begin_layout Plain Layout
21349 \begin_layout Description
21350 \begin_inset Flex Code
21353 \begin_layout Plain Layout
21362 \begin_layout Description
21363 \begin_inset Flex Code
21366 \begin_layout Plain Layout
21368 \begin_inset Quotes eld
21372 \begin_inset Quotes erd
21381 \begin_inset Flex Code
21384 \begin_layout Plain Layout
21390 と云う名のファイルの中身を展開します。
21393 \begin_layout Description
21394 \begin_inset Flex Code
21397 \begin_layout Plain Layout
21406 \begin_layout Description
21407 \begin_inset Flex Code
21410 \begin_layout Plain Layout
21416 これは、ファイルがJPEG形式の場合は、文字列「jpg」となり、それ以外では文字列「png」となります。これは、PNG形式とJPEG形式の両方をサポートする出
21417 力形式に対して、不必要な変換を行うことを避けるのに役立ちます。事前設定されているラスター画像ひな形は、pdf\SpecialChar TeX
21418 出力形式に対してこのマクロを使用します。
21421 \begin_layout Description
21422 \begin_inset Flex Code
21425 \begin_layout Plain Layout
21431 外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21432 文書への絶対パスでも良いですし、相対パスでも構いません。
21435 \begin_layout Description
21436 \begin_inset Flex Code
21439 \begin_layout Plain Layout
21446 \begin_inset Flex Code
21449 \begin_layout Plain Layout
21455 のパス部分(\SpecialChar LyX
21459 \begin_layout Description
21460 \begin_inset Flex Code
21463 \begin_layout Plain Layout
21473 \begin_layout Description
21474 \begin_inset Flex Code
21477 \begin_layout Plain Layout
21487 \begin_layout Description
21488 \begin_inset Flex Code
21491 \begin_layout Plain Layout
21497 このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21498 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21501 \begin_layout Description
21502 \begin_inset Flex Code
21505 \begin_layout Plain Layout
21511 元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21514 \begin_layout Standard
21515 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を
21516 \begin_inset Flex Code
21519 \begin_layout Plain Layout
21520 $$AbsPath$$Basename$$Extension
21528 \begin_layout Standard
21529 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21530 \begin_inset Flex Code
21533 \begin_layout Plain Layout
21540 \begin_inset Flex Code
21543 \begin_layout Plain Layout
21550 \begin_inset Flex Code
21553 \begin_layout Plain Layout
21559 コマンドは、これらに加えて以下の代入もサポートします。
21562 \begin_layout Description
21563 \begin_inset Flex Code
21566 \begin_layout Plain Layout
21575 \begin_layout Description
21576 \begin_inset Flex Code
21579 \begin_layout Plain Layout
21588 \begin_layout Description
21589 \begin_inset Flex Code
21592 \begin_layout Plain Layout
21601 \begin_layout Description
21602 \begin_inset Flex Code
21605 \begin_layout Plain Layout
21614 \begin_layout Standard
21615 \begin_inset Flex Code
21618 \begin_layout Plain Layout
21625 \begin_inset Flex Code
21628 \begin_layout Plain Layout
21635 \begin_inset Flex Code
21638 \begin_layout Plain Layout
21644 コマンドが有効にされていれば、以下の代入もサポートされます。
21647 \begin_layout Description
21648 \begin_inset Flex Code
21651 \begin_layout Plain Layout
21660 \begin_layout Description
21661 \begin_inset Flex Code
21664 \begin_layout Plain Layout
21673 \begin_layout Description
21674 \begin_inset Flex Code
21677 \begin_layout Plain Layout
21686 \begin_layout Description
21687 \begin_inset Flex Code
21690 \begin_layout Plain Layout
21699 \begin_layout Standard
21700 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
21703 \begin_layout Enumerate
21704 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
21705 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
21708 \begin_layout Enumerate
21710 は、相対ファイル名に関して、\SpecialChar LyX
21711 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
21712 にとって相対ファイル名とは、常にこのファイル名が書か
21713 れている文書に対して相対的なものになります。\SpecialChar LaTeX
21714 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
21715 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
21716 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
21717 を選びさえすれば、これは\SpecialChar LyX
21721 \begin_layout Standard
21722 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
21725 \begin_layout Itemize
21727 \begin_inset Flex Code
21730 \begin_layout Plain Layout
21739 \begin_layout Itemize
21740 代入された文字列が、\SpecialChar LaTeX
21742 \begin_inset Flex Code
21745 \begin_layout Plain Layout
21746 $$AbsOrRelPathMaster
21754 \begin_layout Itemize
21755 それ以外ならば、ユーザの選択を尊重するために
21756 \begin_inset Flex Code
21759 \begin_layout Plain Layout
21760 $$AbsOrRelPathParent
21768 \begin_layout Standard
21769 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
21770 \begin_inset Flex Code
21773 \begin_layout Plain Layout
21774 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21780 \begin_inset Flex Code
21783 \begin_layout Plain Layout
21789 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
21792 \begin_layout Section
21794 \begin_inset CommandInset label
21796 name "sec:セキュリティに関する論点"
21803 \begin_layout Standard
21804 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
21805 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
21806 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
21809 \begin_layout Standard
21810 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
21811 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
21813 \begin_inset Flex Code
21816 \begin_layout Plain Layout
21823 \begin_inset Flex Code
21826 \begin_layout Plain Layout
21832 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
21835 \begin_layout Standard
21836 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
21837 できません。これは、\SpecialChar LyX
21838 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
21839 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
21842 \begin_layout Standard
21843 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
21844 うになるため、一般的には、統御下に置いた状態で
21845 \begin_inset Flex Code
21848 \begin_layout Plain Layout
21854 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
21855 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
21859 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
21860 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
21861 には、安全でないひな型は決して入っていません
21865 \begin_layout Standard
21866 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
21867 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
21868 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
21869 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
21870 使用する前に、行うようにしてください。
21873 \begin_layout Chapter
21875 サポートされているレイアウト用\SpecialChar LyX
21877 \begin_inset CommandInset label
21886 \begin_layout Standard
21888 \begin_inset Tabular
21889 <lyxtabular version="3" rows="11" columns="8">
21890 <features tabularvalignment="middle">
21891 <column alignment="left" valignment="top">
21892 <column alignment="left" valignment="top">
21893 <column alignment="left" valignment="top">
21894 <column alignment="left" valignment="top">
21895 <column alignment="left" valignment="top">
21896 <column alignment="left" valignment="top">
21897 <column alignment="left" valignment="top">
21898 <column alignment="left" valignment="top">
21900 <cell alignment="left" valignment="top" usebox="none">
21903 \begin_layout Plain Layout
21909 <cell alignment="left" valignment="top" usebox="none">
21912 \begin_layout Plain Layout
21918 <cell alignment="left" valignment="top" usebox="none">
21921 \begin_layout Plain Layout
21927 <cell alignment="left" valignment="top" usebox="none">
21930 \begin_layout Plain Layout
21936 <cell alignment="center" valignment="top" usebox="none">
21939 \begin_layout Plain Layout
21945 <cell alignment="center" valignment="top" usebox="none">
21948 \begin_layout Plain Layout
21954 <cell alignment="center" valignment="top" usebox="none">
21957 \begin_layout Plain Layout
21963 <cell alignment="center" valignment="top" usebox="none">
21966 \begin_layout Plain Layout
21974 <cell alignment="left" valignment="top" usebox="none">
21977 \begin_layout Plain Layout
21983 <cell alignment="left" valignment="top" usebox="none">
21986 \begin_layout Plain Layout
21992 <cell alignment="left" valignment="top" usebox="none">
21995 \begin_layout Plain Layout
22001 <cell alignment="left" valignment="top" usebox="none">
22004 \begin_layout Plain Layout
22010 <cell alignment="center" valignment="top" usebox="none">
22013 \begin_layout Plain Layout
22019 <cell alignment="center" valignment="top" usebox="none">
22022 \begin_layout Plain Layout
22028 <cell alignment="center" valignment="top" usebox="none">
22031 \begin_layout Plain Layout
22037 <cell alignment="center" valignment="top" usebox="none">
22040 \begin_layout Plain Layout
22048 <cell alignment="left" valignment="top" usebox="none">
22051 \begin_layout Plain Layout
22057 <cell alignment="left" valignment="top" usebox="none">
22060 \begin_layout Plain Layout
22066 <cell alignment="left" valignment="top" usebox="none">
22069 \begin_layout Plain Layout
22075 <cell alignment="left" valignment="top" usebox="none">
22078 \begin_layout Plain Layout
22084 <cell alignment="center" valignment="top" usebox="none">
22087 \begin_layout Plain Layout
22093 <cell alignment="center" valignment="top" usebox="none">
22096 \begin_layout Plain Layout
22102 <cell alignment="center" valignment="top" usebox="none">
22105 \begin_layout Plain Layout
22111 <cell alignment="center" valignment="top" usebox="none">
22114 \begin_layout Plain Layout
22122 <cell alignment="left" valignment="top" usebox="none">
22125 \begin_layout Plain Layout
22131 <cell alignment="left" valignment="top" usebox="none">
22134 \begin_layout Plain Layout
22140 <cell alignment="left" valignment="top" usebox="none">
22143 \begin_layout Plain Layout
22149 <cell alignment="left" valignment="top" usebox="none">
22152 \begin_layout Plain Layout
22158 <cell alignment="center" valignment="top" usebox="none">
22161 \begin_layout Plain Layout
22167 <cell alignment="center" valignment="top" usebox="none">
22170 \begin_layout Plain Layout
22176 <cell alignment="center" valignment="top" usebox="none">
22179 \begin_layout Plain Layout
22185 <cell alignment="center" valignment="top" usebox="none">
22188 \begin_layout Plain Layout
22196 <cell alignment="left" valignment="top" usebox="none">
22199 \begin_layout Plain Layout
22205 <cell alignment="left" valignment="top" usebox="none">
22208 \begin_layout Plain Layout
22214 <cell alignment="left" valignment="top" usebox="none">
22217 \begin_layout Plain Layout
22223 <cell alignment="left" valignment="top" usebox="none">
22226 \begin_layout Plain Layout
22232 <cell alignment="center" valignment="top" usebox="none">
22235 \begin_layout Plain Layout
22241 <cell alignment="center" valignment="top" usebox="none">
22244 \begin_layout Plain Layout
22250 <cell alignment="center" valignment="top" usebox="none">
22253 \begin_layout Plain Layout
22259 <cell alignment="center" valignment="top" usebox="none">
22262 \begin_layout Plain Layout
22270 <cell alignment="left" valignment="top" usebox="none">
22273 \begin_layout Plain Layout
22279 <cell alignment="left" valignment="top" usebox="none">
22282 \begin_layout Plain Layout
22288 <cell alignment="left" valignment="top" usebox="none">
22291 \begin_layout Plain Layout
22297 <cell alignment="left" valignment="top" usebox="none">
22300 \begin_layout Plain Layout
22306 <cell alignment="center" valignment="top" usebox="none">
22309 \begin_layout Plain Layout
22315 <cell alignment="center" valignment="top" usebox="none">
22318 \begin_layout Plain Layout
22324 <cell alignment="center" valignment="top" usebox="none">
22327 \begin_layout Plain Layout
22333 <cell alignment="center" valignment="top" usebox="none">
22336 \begin_layout Plain Layout
22344 <cell alignment="left" valignment="top" usebox="none">
22347 \begin_layout Plain Layout
22353 <cell alignment="left" valignment="top" usebox="none">
22356 \begin_layout Plain Layout
22362 <cell alignment="left" valignment="top" usebox="none">
22365 \begin_layout Plain Layout
22371 <cell alignment="left" valignment="top" usebox="none">
22374 \begin_layout Plain Layout
22380 <cell alignment="center" valignment="top" usebox="none">
22383 \begin_layout Plain Layout
22389 <cell alignment="center" valignment="top" usebox="none">
22392 \begin_layout Plain Layout
22398 <cell alignment="center" valignment="top" usebox="none">
22401 \begin_layout Plain Layout
22407 <cell alignment="center" valignment="top" usebox="none">
22410 \begin_layout Plain Layout
22418 <cell alignment="left" valignment="top" usebox="none">
22421 \begin_layout Plain Layout
22427 <cell alignment="left" valignment="top" usebox="none">
22430 \begin_layout Plain Layout
22436 <cell alignment="left" valignment="top" usebox="none">
22439 \begin_layout Plain Layout
22445 <cell alignment="left" valignment="top" usebox="none">
22448 \begin_layout Plain Layout
22454 <cell alignment="center" valignment="top" usebox="none">
22457 \begin_layout Plain Layout
22463 <cell alignment="center" valignment="top" usebox="none">
22466 \begin_layout Plain Layout
22472 <cell alignment="center" valignment="top" usebox="none">
22475 \begin_layout Plain Layout
22481 <cell alignment="center" valignment="top" usebox="none">
22484 \begin_layout Plain Layout
22492 <cell alignment="left" valignment="top" usebox="none">
22495 \begin_layout Plain Layout
22501 <cell alignment="left" valignment="top" usebox="none">
22504 \begin_layout Plain Layout
22510 <cell alignment="left" valignment="top" usebox="none">
22513 \begin_layout Plain Layout
22519 <cell alignment="left" valignment="top" usebox="none">
22522 \begin_layout Plain Layout
22528 <cell alignment="center" valignment="top" usebox="none">
22531 \begin_layout Plain Layout
22537 <cell alignment="center" valignment="top" usebox="none">
22540 \begin_layout Plain Layout
22546 <cell alignment="center" valignment="top" usebox="none">
22549 \begin_layout Plain Layout
22555 <cell alignment="center" valignment="top" usebox="none">
22558 \begin_layout Plain Layout
22566 <cell alignment="left" valignment="top" usebox="none">
22569 \begin_layout Plain Layout
22575 <cell alignment="left" valignment="top" usebox="none">
22578 \begin_layout Plain Layout
22584 <cell alignment="left" valignment="top" usebox="none">
22587 \begin_layout Plain Layout
22593 <cell alignment="left" valignment="top" usebox="none">
22596 \begin_layout Plain Layout
22602 <cell alignment="center" valignment="top" usebox="none">
22605 \begin_layout Plain Layout
22611 <cell alignment="center" valignment="top" usebox="none">
22614 \begin_layout Plain Layout
22620 <cell alignment="center" valignment="top" usebox="none">
22623 \begin_layout Plain Layout
22629 <cell alignment="center" valignment="top" usebox="none">
22632 \begin_layout Plain Layout
22640 <cell alignment="center" valignment="top" usebox="none">
22643 \begin_layout Plain Layout
22649 <cell alignment="center" valignment="top" usebox="none">
22652 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" usebox="none">
22661 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" usebox="none">
22679 \begin_layout Plain Layout
22685 <cell alignment="center" valignment="top" usebox="none">
22688 \begin_layout Plain Layout
22694 <cell alignment="center" valignment="top" usebox="none">
22697 \begin_layout Plain Layout
22703 <cell alignment="center" valignment="top" usebox="none">
22706 \begin_layout Plain Layout
22720 \begin_layout Chapter
22722 \begin_inset CommandInset label
22731 \begin_layout Standard
22732 ここに列挙されている色は標準色であり、\SpecialChar LyX
22736 \begin_layout Description
22741 特定の色ではありません – 透明か既定色です
22744 \begin_layout Description
22748 \begin_layout Description
22752 \begin_layout Description
22756 \begin_layout Description
22760 \begin_layout Description
22764 \begin_layout Description
22768 \begin_layout Description
22772 \begin_layout Description
22776 \begin_layout Description
22780 \begin_layout Description
22784 \begin_layout Description
22788 \begin_layout Description
22792 \begin_layout Description
22796 \begin_layout Description
22797 branchlabel 派生枝ラベル色
22800 \begin_layout Description
22804 \begin_layout Description
22805 buttonhoverbg フォーカスを得ているボタンの背景色
22808 \begin_layout Description
22812 \begin_layout Description
22816 \begin_layout Description
22817 changedtextauthor1 変更された文章:第1著者の色
22820 \begin_layout Description
22821 changedtextauthor2 変更された文章:第2著者の色
22824 \begin_layout Description
22825 changedtextauthor3 変更された文章:第3著者の色
22828 \begin_layout Description
22829 changedtextauthor4 変更された文章:第4著者の色
22832 \begin_layout Description
22833 changedtextauthor5 変更された文章:第5著者の色
22836 \begin_layout Description
22837 collapsable_inset_frame 畳み込み可能枠の縁色
22840 \begin_layout Description
22841 collapsable_inset_text 畳み込み可能枠の文字色
22844 \begin_layout Description
22845 command コマンド差込枠の文字色
22848 \begin_layout Description
22849 commandbg コマンド差込枠の背景色
22852 \begin_layout Description
22853 commandframe コマンド差込枠の縁色
22856 \begin_layout Description
22860 \begin_layout Description
22864 \begin_layout Description
22868 \begin_layout Description
22869 deletedtext 削除された文章の色
22872 \begin_layout Description
22873 deletedtextmodifier 削除された文章の修飾子の色
22876 \begin_layout Description
22877 depthbar 余白部の階層表示線の色
22880 \begin_layout Description
22884 \begin_layout Description
22885 error \SpecialChar LaTeX
22889 \begin_layout Description
22893 \begin_layout Description
22894 graphicsbg 画像差込枠の背景色
22897 \begin_layout Description
22898 greyedout 淡色表示差込枠のラベル色
22901 \begin_layout Description
22902 greyedoutbg 淡色表示差込枠の背景色
22905 \begin_layout Description
22906 greyedouttext 淡色表示差込枠の文字色
22909 \begin_layout Description
22910 indexlabel 索引差込枠のラベル色
22913 \begin_layout Description
22917 \begin_layout Description
22921 \begin_layout Description
22922 inlinecompletion 行内補完色
22925 \begin_layout Description
22929 \begin_layout Description
22933 \begin_layout Description
22934 language 外国語の単語を標識するための色
22937 \begin_layout Description
22938 latex \SpecialChar LaTeX
22942 \begin_layout Description
22943 listingsbg プログラムリスト差込枠の背景色
22946 \begin_layout Description
22947 marginlabel 傍註のラベル色
22950 \begin_layout Description
22954 \begin_layout Description
22958 \begin_layout Description
22959 mathcorners フォーカスを得ていない数式差込枠の縁色
22962 \begin_layout Description
22963 mathframe フォーカスを得ている数式差込枠の縁色
22966 \begin_layout Description
22970 \begin_layout Description
22971 mathmacrobg 数式マクロ差込枠の背景色
22974 \begin_layout Description
22975 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22978 \begin_layout Description
22979 mathmacroframe 数式マクロ差込枠の縁色
22982 \begin_layout Description
22983 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22986 \begin_layout Description
22987 mathmacrolabel 数式マクロ差込枠のラベル色
22990 \begin_layout Description
22991 mathmacronewarg 数式マクロ新パラメーターのひな型色
22994 \begin_layout Description
22995 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22998 \begin_layout Description
23002 \begin_layout Description
23003 nonunique_inlinecompletion 行内補完の一意でない部分の色
23006 \begin_layout Description
23010 \begin_layout Description
23014 \begin_layout Description
23018 \begin_layout Description
23019 paragraphmarker 段落末を標識するための段落標の色
23022 \begin_layout Description
23023 phantomtext 埋め草差込枠の文字色
23026 \begin_layout Description
23027 preview プレビューに用いられる色
23030 \begin_layout Description
23031 previewframe プレビュー縁色
23034 \begin_layout Description
23035 regexpframe 正規表現枠の色
23038 \begin_layout Description
23039 selection 文章選択部の背景色
23042 \begin_layout Description
23043 selectiontext 文章選択部の前景色
23046 \begin_layout Description
23047 shadedbg 影付きボックスの背景色
23050 \begin_layout Description
23054 \begin_layout Description
23058 \begin_layout Description
23059 tabularonoffline 罫線色
23062 \begin_layout Description
23063 urllabel URL差込枠のラベル色
23066 \begin_layout Description