1 #LyX 2.3 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 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 \use_dash_ligatures false
105 \default_output_format pdf3
107 \bibtex_command default
108 \index_command default
112 \pdf_title "LyX Configuration Manual"
113 \pdf_author "LyX Team"
114 \pdf_subject "LyX-Documentation Customization"
115 \pdf_keywords "LyX, documentation, customization"
117 \pdf_bookmarksnumbered true
118 \pdf_bookmarksopen true
119 \pdf_bookmarksopenlevel 1
120 \pdf_breaklinks false
124 \pdf_pdfusetitle false
125 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
128 \use_package amsmath 0
129 \use_package amssymb 0
130 \use_package cancel 0
132 \use_package mathdots 0
133 \use_package mathtools 0
134 \use_package mhchem 0
135 \use_package stackrel 0
136 \use_package stmaryrd 0
137 \use_package undertilde 0
139 \cite_engine_type default
143 \paperorientation portrait
147 \notefontcolor #0000ff
159 \paragraph_separation indent
160 \paragraph_indentation default
162 \quotes_style english
165 \paperpagestyle headings
166 \tracking_changes false
167 \output_changes false
178 \begin_inset Newline newline
190 \begin_layout Plain Layout
192 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
194 \begin_inset CommandInset href
196 target "lyx-docs@lists.lyx.org"
202 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
203 ast.net>をccにして送ってください.
209 \begin_inset Newline newline
213 \begin_inset Newline newline
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
226 \begin_inset Note Note
229 \begin_layout Plain Layout
230 本文書を修正する際には,変更追跡機能を使用してください.これによって,
233 \begin_layout Plain Layout
235 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
243 \begin_layout Chapter
247 \begin_layout Standard
248 この取扱説明書は,\SpecialChar LyX
249 に備わっている高度設定機能を取り扱います.ここでは,
250 \begin_inset Flex Ruby
253 \begin_layout Plain Layout
255 \begin_inset Argument post:1
258 \begin_layout Plain Layout
269 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
270 サーバ経由での\SpecialChar LyX
271 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
273 レイアウトの導入などの題材について論じます.おそらくは変更
274 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
275 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
278 \begin_layout Standard
279 \begin_inset Branch OutDated
283 \begin_layout Standard
284 Information from previous versions of this document that now seems to be
285 outdated is contained in the OutDated branch of this document.
286 By default, this information will not appear in the \SpecialChar LaTeX
295 \begin_layout Chapter
300 \begin_layout Standard
301 本章の目的は,\SpecialChar LyX
302 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
303 \begin_inset Flex MenuItem
306 \begin_layout Plain Layout
307 ヘルプ\SpecialChar menuseparator
313 を使って,\SpecialChar LyX
314 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
315 がシステム全体の設定ファイルを置いておくところです.一
316 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
317 \begin_inset Flex Code
320 \begin_layout Plain Layout
327 \begin_inset Flex MenuItem
330 \begin_layout Plain Layout
339 \begin_layout Section
340 \begin_inset Flex Code
343 \begin_layout Plain Layout
352 \begin_layout Standard
353 \begin_inset Flex Code
356 \begin_layout Plain Layout
362 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
363 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
365 \begin_inset Flex MenuItem
368 \begin_layout Plain Layout
369 ツール\SpecialChar menuseparator
375 ダイアログから変更することができます.\SpecialChar LyX
376 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
378 \begin_inset Flex Code
381 \begin_layout Plain Layout
387 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
390 \begin_layout Subsection
394 \begin_layout Standard
395 \begin_inset Flex MenuItem
398 \begin_layout Plain Layout
404 にある各ファイルは,\SpecialChar LyX
405 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
406 うので,一般的には修正しないことが望まれます.
409 \begin_layout Labeling
410 \labelwidthstring 00.00.0000
411 \begin_inset Flex Code
414 \begin_layout Plain Layout
420 このファイルには,様々な既定コマンドが置かれています.
423 \begin_layout Labeling
424 \labelwidthstring 00.00.0000
425 \begin_inset Flex Code
428 \begin_layout Plain Layout
434 このファイルには,\SpecialChar LyX
435 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
436 プログラム自体には使用されていませんが,抽出された情報その他は,
437 \begin_inset Flex MenuItem
440 \begin_layout Plain Layout
441 ヘルプ\SpecialChar menuseparator
450 \begin_layout Labeling
451 \labelwidthstring 00.00.0000
452 \begin_inset Flex Code
455 \begin_layout Plain Layout
462 \begin_inset Flex Code
465 \begin_layout Plain Layout
471 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
475 \begin_layout Labeling
476 \labelwidthstring 00.00.0000
477 \begin_inset Flex Code
480 \begin_layout Plain Layout
487 \begin_inset Flex Code
490 \begin_layout Plain Layout
496 ディレクトリで検出されたレイアウトモジュールの一覧です.
499 \begin_layout Labeling
500 \labelwidthstring 00.00.0000
501 \begin_inset Flex Code
504 \begin_layout Plain Layout
510 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
514 \begin_layout Labeling
515 \labelwidthstring 00.00.0000
516 \begin_inset Flex Code
519 \begin_layout Plain Layout
526 \begin_inset Flex Code
529 \begin_layout Plain Layout
535 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
539 \begin_layout Subsection
543 \begin_layout Standard
545 \begin_inset Flex Code
548 \begin_layout Plain Layout
555 \begin_inset Flex Code
558 \begin_layout Plain Layout
564 に重複して存在します.特定のファイルが両方の場所にある場合には,
565 \begin_inset Flex Code
568 \begin_layout Plain Layout
577 \begin_layout Labeling
578 \labelwidthstring 00.00.0000
579 \begin_inset Flex Code
582 \begin_layout Plain Layout
588 このディレクトリには,\SpecialChar LyX
589 で使用されるキー割当を定義している,拡張子が
590 \begin_inset Flex Code
593 \begin_layout Plain Layout
600 \begin_inset Flex Code
603 \begin_layout Plain Layout
609 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
612 \begin_layout Labeling
613 \labelwidthstring 00.00.0000
614 \begin_inset Flex Code
617 \begin_layout Plain Layout
623 このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
626 \begin_layout Labeling
627 \labelwidthstring 00.00.0000
628 \begin_inset Flex Code
631 \begin_layout Plain Layout
637 このディレクトリには,\SpecialChar LyX
638 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
639 \begin_inset Flex Code
642 \begin_layout Plain Layout
648 ファイルは特に注目に値します.各国語版のヘルプ文書は,
649 \begin_inset Flex Code
652 \begin_layout Plain Layout
658 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
659 \begin_inset CommandInset ref
661 reference "cha:LyXの各国語対応"
668 \begin_layout Labeling
669 \labelwidthstring 00.00.0000
670 \begin_inset Flex Code
673 \begin_layout Plain Layout
679 このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
680 \begin_inset Flex MenuItem
683 \begin_layout Plain Layout
689 ボタンを押すと,このディレクトリが表示されます.
692 \begin_layout Labeling
693 \labelwidthstring 00.00.0000
694 \begin_inset Flex Code
697 \begin_layout Plain Layout
704 \begin_inset Flex MenuItem
707 \begin_layout Plain Layout
713 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
714 を起動したときに現れるバナーも納められています.
717 \begin_layout Labeling
718 \labelwidthstring 00.00.0000
719 \begin_inset Flex Code
722 \begin_layout Plain Layout
728 このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
729 \begin_inset CommandInset ref
731 reference "sec:国際キー配列"
738 \begin_layout Labeling
739 \labelwidthstring 00.00.0000
740 \begin_inset Flex Code
743 \begin_layout Plain Layout
750 \begin_inset CommandInset ref
752 reference "cha:新規文書を導入"
756 に述べられているテキストクラスおよびモジュールのファイルが納められています.
759 \begin_layout Labeling
760 \labelwidthstring 00.00.0000
761 \begin_inset Flex Code
764 \begin_layout Plain Layout
770 このディレクトリには,\SpecialChar LyX
772 \begin_inset Flex Code
775 \begin_layout Plain Layout
781 Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
784 \begin_layout Labeling
785 \labelwidthstring 00.00.0000
786 \begin_inset Flex Code
789 \begin_layout Plain Layout
796 \begin_inset Flex MenuItem
799 \begin_layout Plain Layout
805 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
806 自身が使用するスクリプトもいくつか収められています.
809 \begin_layout Labeling
810 \labelwidthstring 00.00.0000
811 \begin_inset Flex Code
814 \begin_layout Plain Layout
821 \begin_inset CommandInset ref
823 reference "sec:ひな型を作成する"
827 で述べられている標準の\SpecialChar LyX
831 \begin_layout Labeling
832 \labelwidthstring 00.00.0000
833 \begin_inset Flex Code
836 \begin_layout Plain Layout
842 このディレクトリには,\SpecialChar LyX
844 \begin_inset Flex Code
847 \begin_layout Plain Layout
853 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
856 \begin_layout Subsection
860 \begin_layout Standard
861 これらのファイルは\SpecialChar LyX
862 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
865 \begin_layout Labeling
866 \labelwidthstring 00.00.0000
867 \begin_inset Flex Code
870 \begin_layout Plain Layout
876 このファイルは,\SpecialChar LyX
877 開発陣の名簿です.この内容は,メニュー項目
878 \begin_inset Flex MenuItem
881 \begin_layout Plain Layout
882 ヘルプ\SpecialChar menuseparator
891 \begin_layout Labeling
892 \labelwidthstring 00.00.0000
893 \begin_inset Flex Code
896 \begin_layout Plain Layout
902 これは,自動設定プロセスによって使用される\SpecialChar LaTeX
903 スクリプトです.直接実行しないでください.
906 \begin_layout Labeling
907 \labelwidthstring 00.00.0000
908 \begin_inset Flex Code
911 \begin_layout Plain Layout
918 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
921 \begin_layout Subsection
925 \begin_layout Labeling
926 \labelwidthstring 00.00.0000
927 \begin_inset Flex Code
930 \begin_layout Plain Layout
936 このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
939 \begin_layout Labeling
940 \labelwidthstring 00.00.0000
941 \begin_inset Flex Code
944 \begin_layout Plain Layout
951 \begin_inset Flex MenuItem
954 \begin_layout Plain Layout
961 \begin_inset CommandInset ref
963 reference "chap:外部素材を取り込む"
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
975 \begin_layout Plain Layout
981 このファイルには,現在\SpecialChar LyX
982 がサポートしている言語の全一覧が載っています.
985 \begin_layout Labeling
986 \labelwidthstring 00.00.0000
987 \begin_inset Flex Code
990 \begin_layout Plain Layout
996 サポートされているフォントに関する情報が掲載されています.
999 \begin_layout Labeling
1000 \labelwidthstring 00.00.0000
1001 \begin_inset Flex Code
1004 \begin_layout Plain Layout
1010 このファイルは,国際化された段落様式の翻訳が収録されています(
1011 \begin_inset CommandInset ref
1013 reference "subsec:段落様式の国際化"
1020 \begin_layout Labeling
1021 \labelwidthstring 00.00.0000
1022 \begin_inset Flex Code
1025 \begin_layout Plain Layout
1031 このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1033 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1036 \begin_layout Section
1040 \begin_layout Standard
1042 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1043 の設定を変更したいと思うかもしれません.
1044 \begin_inset Flex Code
1047 \begin_layout Plain Layout
1053 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1054 \begin_inset Flex MenuItem
1057 \begin_layout Plain Layout
1058 ヘルプ\SpecialChar menuseparator
1064 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1065 \begin_inset Flex Code
1068 \begin_layout Plain Layout
1075 \begin_inset Flex Code
1078 \begin_layout Plain Layout
1085 \begin_inset Flex Code
1088 \begin_layout Plain Layout
1094 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1097 \begin_layout Standard
1098 わかりやすくするために,いくつか例を挙げましょう.
1101 \begin_layout Itemize
1102 \begin_inset Flex MenuItem
1105 \begin_layout Plain Layout
1106 ツール\SpecialChar menuseparator
1113 \begin_inset Flex Code
1116 \begin_layout Plain Layout
1123 \begin_inset Flex Code
1126 \begin_layout Plain Layout
1135 \begin_layout Itemize
1136 \begin_inset Flex MenuItem
1139 \begin_layout Plain Layout
1140 ツール\SpecialChar menuseparator
1146 を使用して環境構成を行うと,\SpecialChar LyX
1148 \begin_inset Flex Code
1151 \begin_layout Plain Layout
1157 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1158 \begin_inset Flex Code
1161 \begin_layout Plain Layout
1168 \begin_inset Flex MenuItem
1171 \begin_layout Plain Layout
1172 文書\SpecialChar menuseparator
1178 ダイアログのクラス一覧に表示されるようになることを意味します.
1181 \begin_layout Itemize
1182 たとえば,\SpecialChar LyX
1183 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1185 \begin_inset Flex Code
1188 \begin_layout Plain Layout
1195 \begin_inset Flex MenuItem
1198 \begin_layout Plain Layout
1204 メニュー項目はこれらを開くようになります!
1207 \begin_layout Section
1212 \begin_layout Standard
1213 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1214 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1215 どのディレクトリを使用するか指定するのです.
1218 \begin_layout Standard
1221 \begin_inset Flex Code
1224 \begin_layout Plain Layout
1234 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1236 \begin_inset Flex Code
1239 \begin_layout Plain Layout
1245 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1246 は,初めて\SpecialChar LyX
1248 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1249 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1250 \begin_inset Flex Code
1253 \begin_layout Plain Layout
1259 を特定の値に設定しても,全く同じ効果があります.
1262 \begin_layout Standard
1263 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1264 \begin_inset Flex Code
1267 \begin_layout Plain Layout
1273 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1274 クを使用してください.\SpecialChar LyX
1275 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1276 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1277 \begin_inset Flex Code
1280 \begin_layout Plain Layout
1287 \begin_inset Flex MenuItem
1290 \begin_layout Plain Layout
1291 ツール\SpecialChar menuseparator
1297 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1300 \begin_layout Chapter
1304 \begin_layout Standard
1313 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1316 \begin_layout Section
1318 \begin_inset CommandInset label
1327 \begin_layout Standard
1328 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1329 \begin_inset Flex MenuItem
1332 \begin_layout Plain Layout
1333 ツール\SpecialChar menuseparator
1340 \begin_inset Flex MenuItem
1343 \begin_layout Plain Layout
1344 ファイル処理\SpecialChar menuseparator
1351 \begin_inset Flex MenuItem
1354 \begin_layout Plain Layout
1355 新規\SpecialChar ldots
1361 ボタンを押して,登録する新しい形式を定義してください.
1362 \begin_inset Flex MenuItem
1365 \begin_layout Plain Layout
1371 フィールドは,GUI中で形式を認識するために用いられる名称です.
1372 \begin_inset Flex MenuItem
1375 \begin_layout Plain Layout
1381 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1382 \begin_inset Flex MenuItem
1385 \begin_layout Plain Layout
1392 \begin_inset Flex Ruby
1395 \begin_layout Plain Layout
1397 \begin_inset Argument post:1
1400 \begin_layout Plain Layout
1412 \begin_inset Flex MenuItem
1415 \begin_layout Plain Layout
1422 \begin_inset Flex MenuItem
1425 \begin_layout Plain Layout
1426 表示\SpecialChar menuseparator
1435 \begin_layout Standard
1437 \begin_inset Flex MenuItem
1440 \begin_layout Plain Layout
1447 \begin_inset Flex MenuItem
1450 \begin_layout Plain Layout
1456 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1457 \begin_inset Flex MenuItem
1460 \begin_layout Plain Layout
1466 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1467 いることができます.この閲覧プログラムは,\SpecialChar LyX
1469 \begin_inset Flex MenuItem
1472 \begin_layout Plain Layout
1478 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1479 \begin_inset Flex MenuItem
1482 \begin_layout Plain Layout
1491 \begin_layout Standard
1493 \begin_inset Flex MenuItem
1496 \begin_layout Plain Layout
1502 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1504 \begin_inset CommandInset href
1507 target "http://www.iana.org/assignments/media-types/"
1512 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1514 \begin_inset CommandInset href
1516 name "freedesktop.org"
1517 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1522 で指定されているMIME型拡張表を使用しています.
1525 \begin_layout Standard
1526 \begin_inset Flex MenuItem
1529 \begin_layout Plain Layout
1535 オプションは,\SpecialChar LyX
1536 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1537 \begin_inset CommandInset ref
1544 \begin_inset Flex MenuItem
1547 \begin_layout Plain Layout
1548 ファイル\SpecialChar menuseparator
1555 \begin_inset Flex MenuItem
1558 \begin_layout Plain Layout
1564 footlabel Label color for footnotす.
1565 \begin_inset Flex Code
1568 \begin_layout Plain Layout
1574 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1575 \begin_inset Flex Code
1578 \begin_layout Plain Layout
1584 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1587 \begin_layout Standard
1588 \begin_inset Flex MenuItem
1591 \begin_layout Plain Layout
1597 オプションは,\SpecialChar LyX
1598 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1599 \begin_inset Flex MenuItem
1602 \begin_layout Plain Layout
1608 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1609 \begin_inset Flex MenuItem
1612 \begin_layout Plain Layout
1619 \begin_inset Flex MenuItem
1622 \begin_layout Plain Layout
1629 \begin_inset Flex MenuItem
1632 \begin_layout Plain Layout
1639 \begin_inset Flex MenuItem
1642 \begin_layout Plain Layout
1648 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1649 \begin_inset Flex MenuItem
1652 \begin_layout Plain Layout
1659 \begin_inset Flex MenuItem
1662 \begin_layout Plain Layout
1669 \begin_inset Flex MenuItem
1672 \begin_layout Plain Layout
1678 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1679 \begin_inset Flex MenuItem
1682 \begin_layout Plain Layout
1689 \begin_inset Flex MenuItem
1692 \begin_layout Plain Layout
1701 \begin_layout Section
1705 \begin_layout Standard
1706 形式の変換はすべて,\SpecialChar LyX
1707 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1711 \begin_layout Plain Layout
1712 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1718 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1721 \begin_layout Standard
1722 複写子の定義においては,以下の8つの変数を用いることができます.
1725 \begin_layout Labeling
1726 \labelwidthstring 00.00.0000
1727 \begin_inset Flex Code
1730 \begin_layout Plain Layout
1738 \begin_inset Flex MenuItem
1741 \begin_layout Plain Layout
1750 \begin_layout Labeling
1751 \labelwidthstring 00.00.0000
1752 \begin_inset Flex Code
1755 \begin_layout Plain Layout
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Flex Code
1769 \begin_layout Plain Layout
1778 \begin_layout Labeling
1779 \labelwidthstring 00.00.0000
1780 \begin_inset Flex Code
1783 \begin_layout Plain Layout
1790 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1793 \begin_layout Labeling
1794 \labelwidthstring 00.00.0000
1795 \begin_inset Flex Code
1798 \begin_layout Plain Layout
1808 \begin_layout Labeling
1809 \labelwidthstring 00.00.0000
1810 \begin_inset Flex Code
1813 \begin_layout Plain Layout
1819 処理されている元の\SpecialChar LyX
1823 \begin_layout Labeling
1824 \labelwidthstring 00.00.0000
1825 \begin_inset Flex Code
1828 \begin_layout Plain Layout
1835 ファイルのファイル名(ディレクトリパスなし)
1838 \begin_layout Labeling
1839 \labelwidthstring 00.00.0000
1840 \begin_inset Flex Code
1843 \begin_layout Plain Layout
1853 \begin_layout Standard
1854 最後の変数は,\SpecialChar LaTeX
1861 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1864 \begin_layout Standard
1865 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1866 \begin_inset Flex Code
1869 \begin_layout Plain Layout
1875 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1878 \begin_layout Standard
1879 \begin_inset listings
1883 \begin_layout Plain Layout
1888 \begin_layout Plain Layout
1893 \begin_layout Plain Layout
1895 TOFILE=`basename $2`
1898 \begin_layout Plain Layout
1900 DescriptionE /home/you/pdf/$TOFILE
1906 \begin_inset Flex Code
1909 \begin_layout Plain Layout
1910 /home/you/.lyx/scripts/pdfcopier.sh
1915 のような,自身のローカル\SpecialChar LyX
1916 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1917 \begin_inset Flex MenuItem
1920 \begin_layout Plain Layout
1921 ツール\SpecialChar menuseparator
1928 \begin_inset Flex MenuItem
1931 \begin_layout Plain Layout
1932 ファイル処理\SpecialChar menuseparator
1939 \begin_inset Flex MenuItem
1942 \begin_layout Plain Layout
1948 形式—あるいは他のPDF形式のうちどれか—を選択し,
1949 \begin_inset Flex MenuItem
1952 \begin_layout Plain Layout
1959 \begin_inset Flex Code
1962 \begin_layout Plain Layout
1963 pdfcopier.sh $$i $$o
1971 \begin_layout Standard
1972 複写子は,\SpecialChar LyX
1973 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
1975 \begin_inset Flex MenuItem
1978 \begin_layout Plain Layout
1985 \begin_inset Flex MenuItem
1988 \begin_layout Plain Layout
1990 \begin_inset space ~
1998 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1999 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2000 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2004 \begin_layout Plain Layout
2005 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2006 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2007 \begin_inset Flex MenuItem
2010 \begin_layout Plain Layout
2017 \begin_inset Flex MenuItem
2020 \begin_layout Plain Layout
2021 /path/to/filename.lyx
2027 \begin_inset Flex MenuItem
2030 \begin_layout Plain Layout
2031 /path/to/filename.html.LyXconv
2045 \begin_layout Section
2047 \begin_inset CommandInset label
2056 \begin_layout Standard
2057 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2058 \begin_inset Flex MenuItem
2061 \begin_layout Plain Layout
2062 ツール\SpecialChar menuseparator
2063 設定\SpecialChar menuseparator
2064 ファイル処理\SpecialChar menuseparator
2073 \begin_layout Standard
2074 新規に変換子を定義するには,ドロップダウンリストから
2075 \begin_inset Flex MenuItem
2078 \begin_layout Plain Layout
2085 \begin_inset Flex MenuItem
2088 \begin_layout Plain Layout
2094 を選択し,変換に必要なコマンドを入力してから
2095 \begin_inset Flex MenuItem
2098 \begin_layout Plain Layout
2104 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2107 \begin_layout Labeling
2108 \labelwidthstring 00.00.0000
2109 \begin_inset Flex Code
2112 \begin_layout Plain Layout
2122 \begin_layout Labeling
2123 \labelwidthstring 00.00.0000
2124 \begin_inset Flex Code
2127 \begin_layout Plain Layout
2136 \begin_layout Labeling
2137 \labelwidthstring 00.00.0000
2138 \begin_inset Flex Code
2141 \begin_layout Plain Layout
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2155 \begin_layout Plain Layout
2161 入力ファイルのベースファイル名(拡張子をとった部分)
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2169 \begin_layout Plain Layout
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2183 \begin_layout Plain Layout
2189 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2197 \begin_layout Plain Layout
2206 \begin_layout Standard
2207 \begin_inset Flex MenuItem
2210 \begin_layout Plain Layout
2216 フィールドには,以下のフラグをコンマで区切って入力することができます.
2219 \begin_layout Labeling
2220 \labelwidthstring 00.00.0000
2221 \begin_inset Flex Code
2224 \begin_layout Plain Layout
2230 この変換子が\SpecialChar LaTeX
2231 の一種を実行することを示します.これによって,\SpecialChar LyX
2233 エラーログに記録を残せるようになります.
2236 \begin_layout Labeling
2237 \labelwidthstring 00.00.0000
2238 \begin_inset Flex Code
2241 \begin_layout Plain Layout
2247 変換に\SpecialChar LaTeX
2249 \begin_inset Flex MenuItem
2252 \begin_layout Plain Layout
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2266 \begin_layout Plain Layout
2273 \begin_inset Quotes erd
2277 \begin_inset Quotes erd
2280 なファイル,つまり\SpecialChar LyX
2281 が書き出す\SpecialChar LaTeX
2283 \begin_inset Flex Code
2286 \begin_layout Plain Layout
2292 のない\SpecialChar LaTeX
2296 \begin_layout Labeling
2297 \labelwidthstring 00.00.0000
2298 \begin_inset Flex Code
2301 \begin_layout Plain Layout
2310 \begin_layout Standard
2312 \begin_inset Flex MenuItem
2315 \begin_layout Plain Layout
2317 \begin_inset space ~
2321 \begin_inset space ~
2329 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Flex Code
2337 \begin_layout Plain Layout
2344 \begin_inset Flex Code
2347 \begin_layout Plain Layout
2353 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2354 \begin_inset Flex Code
2357 \begin_layout Plain Layout
2358 script < infile.out > infile.log
2363 の形で実行されるようになります.引数には
2364 \begin_inset Flex Code
2367 \begin_layout Plain Layout
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Flex Code
2381 \begin_layout Plain Layout
2387 これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2388 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2390 \begin_inset Flex Code
2393 \begin_layout Plain Layout
2399 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2400 \begin_inset Newline newline
2403 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2406 \begin_layout Labeling
2407 \labelwidthstring 00.00.0000
2408 \begin_inset Flex Code
2411 \begin_layout Plain Layout
2418 \begin_inset Flex Code
2421 \begin_layout Plain Layout
2427 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2430 \begin_layout Standard
2431 最後の3つは,\SpecialChar LyX
2432 とともに導入される変換子には,現在いずれも使用されておりません.
2435 \begin_layout Standard
2436 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2437 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2439 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2440 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2441 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2442 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2443 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2444 設定は,\SpecialChar LaTeX
2445 からPDFへ変換するのに,以下の3つの方法を
2449 \begin_layout Enumerate
2451 \begin_inset Flex MenuItem
2454 \begin_layout Plain Layout
2463 \begin_layout Enumerate
2464 (DVIと)PostScriptを経由して
2465 \begin_inset Flex MenuItem
2468 \begin_layout Plain Layout
2477 \begin_layout Enumerate
2479 \begin_inset Flex MenuItem
2482 \begin_layout Plain Layout
2491 \begin_layout Enumerate
2493 \begin_inset Flex MenuItem
2496 \begin_layout Plain Layout
2506 \begin_layout Enumerate
2508 \begin_inset Flex MenuItem
2511 \begin_layout Plain Layout
2521 \begin_layout Standard
2523 \begin_inset CommandInset ref
2525 reference "sec:ファイル形式"
2529 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2530 \begin_inset Flex MenuItem
2533 \begin_layout Plain Layout
2540 \begin_inset Flex MenuItem
2543 \begin_layout Plain Layout
2550 \begin_inset Flex MenuItem
2553 \begin_layout Plain Layout
2560 \begin_inset Flex MenuItem
2563 \begin_layout Plain Layout
2570 \begin_inset Flex MenuItem
2573 \begin_layout Plain Layout
2580 \begin_inset Flex MenuItem
2583 \begin_layout Plain Layout
2590 \begin_inset Flex MenuItem
2593 \begin_layout Plain Layout
2600 \begin_inset Flex MenuItem
2603 \begin_layout Plain Layout
2611 \begin_inset Flex MenuItem
2614 \begin_layout Plain Layout
2621 \begin_inset Flex MenuItem
2624 \begin_layout Plain Layout
2631 用\SpecialChar softhyphen
2632 ) と命名された形式が定義されていて,すべて共通の拡張子
2633 \begin_inset Flex MenuItem
2636 \begin_layout Plain Layout
2642 を持ち,上記で言及した各変換方法に対応しています.
2645 \begin_layout Chapter
2648 \begin_inset CommandInset label
2650 name "cha:LyXの各国語対応"
2657 \begin_layout Standard
2659 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2660 は30言語の翻訳を提供しています.選択した言語は,使用する
2664 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2665 \begin_inset Flex Code
2668 \begin_layout Plain Layout
2677 \begin_layout Standard
2678 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2679 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2680 \begin_inset Flex Ruby
2683 \begin_layout Plain Layout
2685 \begin_inset Argument post:1
2688 \begin_layout Plain Layout
2699 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2700 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2704 \begin_layout Plain Layout
2705 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2706 コミュニティに報いるたいへん素晴らしい方法です!
2712 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2715 \begin_layout Section
2720 \begin_layout Subsection
2721 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2722 \begin_inset Argument 1
2725 \begin_layout Plain Layout
2734 \begin_layout Standard
2737 \begin_inset Flex Code
2740 \begin_layout Plain Layout
2746 ライブラリを使用します.\SpecialChar LyX
2747 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2748 \begin_inset Flex Code
2751 \begin_layout Plain Layout
2757 ファイルが必要です.このファイルが利用可能であれば,そこから
2758 \begin_inset Flex Code
2761 \begin_layout Plain Layout
2768 \begin_inset Flex Code
2771 \begin_layout Plain Layout
2777 ファイルをインストールしなくてはなりません.この全過程は,GNU
2778 \begin_inset Flex Code
2781 \begin_layout Plain Layout
2787 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2789 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2790 開発者メーリングリストにメールを送ってください.
2793 \begin_layout Standard
2794 要約すれば,以下のように行います(xxは言語コードを表します).
2797 \begin_layout Itemize
2799 ソースコードをチェックアウトしてください(
2800 \begin_inset CommandInset href
2803 target "http://www.lyx.org/HowToUseGIT"
2811 \begin_layout Itemize
2812 \begin_inset Flex Code
2815 \begin_layout Plain Layout
2822 \begin_inset Flex Code
2825 \begin_layout Plain Layout
2832 \begin_inset Flex Code
2835 \begin_layout Plain Layout
2842 \begin_inset Flex Code
2845 \begin_layout Plain Layout
2851 がどこにもない場合には,コンソールからそのディレクトリで
2852 \begin_inset Flex Code
2855 \begin_layout Plain Layout
2861 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2864 \begin_layout Itemize
2865 \begin_inset Flex Code
2868 \begin_layout Plain Layout
2878 \begin_layout Plain Layout
2879 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2887 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2892 \begin_inset Flex Code
2895 \begin_layout Plain Layout
2901 ファイルを編集するための「モード」があります,第
2902 \begin_inset Flex URL
2905 \begin_layout Plain Layout
2907 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2919 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2920 \begin_inset Flex Ruby
2923 \begin_layout Plain Layout
2925 \begin_inset Argument post:1
2928 \begin_layout Plain Layout
2939 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2940 \begin_inset Flex Code
2943 \begin_layout Plain Layout
2949 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2952 \begin_layout Standard
2953 もし,あなたがこれを自身のためだけに行っているのであれば,
2956 \begin_layout Itemize
2957 \begin_inset Flex Code
2960 \begin_layout Plain Layout
2967 \begin_inset Flex Code
2970 \begin_layout Plain Layout
2971 msgfmt -o xx.mo < xx.po
2979 \begin_layout Itemize
2981 \begin_inset Flex Code
2984 \begin_layout Plain Layout
2990 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
2991 \begin_inset Flex Code
2994 \begin_layout Plain Layout
3001 \begin_inset Flex Code
3004 \begin_layout Plain Layout
3005 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3013 \begin_layout Standard
3015 \begin_inset Flex Code
3018 \begin_layout Plain Layout
3024 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3025 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3026 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3030 \begin_layout Subsubsection
3034 \begin_layout Standard
3035 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3036 \begin_inset Flex Code
3039 \begin_layout Plain Layout
3045 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3046 \begin_inset Flex Code
3049 \begin_layout Plain Layout
3056 \begin_inset Flex Code
3059 \begin_layout Plain Layout
3066 \begin_inset Flex Code
3069 \begin_layout Plain Layout
3070 To[[as in 'From format x to format y']]
3076 \begin_inset Flex Code
3079 \begin_layout Plain Layout
3080 To[[as in 'From page x to page y']]
3085 としなくてはなりません.これによって,これら2つの
3086 \begin_inset Flex Code
3089 \begin_layout Plain Layout
3096 \begin_inset Flex Code
3099 \begin_layout Plain Layout
3105 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3108 \begin_layout Standard
3109 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3111 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3114 \begin_layout Subsection
3118 \begin_layout Standard
3120 \begin_inset Flex MenuItem
3123 \begin_layout Plain Layout
3129 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3133 \begin_layout Plain Layout
3134 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3139 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3140 はこれを自動的に使用します.\SpecialChar LyX
3142 \begin_inset Flex Code
3145 \begin_layout Plain Layout
3146 LyXDir/doc/xx/DocName.lyx
3152 \begin_inset Flex Code
3155 \begin_layout Plain Layout
3161 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3162 \begin_inset Flex Code
3165 \begin_layout Plain Layout
3171 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3175 \begin_layout Itemize
3177 \begin_inset CommandInset href
3179 name "http://www.lyx.org/Translation"
3180 target "http://www.lyx.org/Translation"
3185 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3186 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3189 \begin_layout Standard
3190 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3193 \begin_layout Itemize
3194 文書化チームに所属してください!そのための情報が
3195 \begin_inset Flex Code
3198 \begin_layout Plain Layout
3205 \begin_inset Flex MenuItem
3208 \begin_layout Plain Layout
3209 ヘルプ\SpecialChar menuseparator
3216 \begin_inset Flex Code
3219 \begin_layout Plain Layout
3228 \begin_layout Itemize
3229 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3230 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3232 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3237 \begin_layout Itemize
3238 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3239 \begin_inset Flex Code
3242 \begin_layout Plain Layout
3248 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3249 \begin_inset Newline newline
3253 \begin_inset Note Greyedout
3256 \begin_layout Plain Layout
3261 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3262 ことに注意してください.最も良い方法は,LyXツリーをgit (
3263 \begin_inset Flex URL
3266 \begin_layout Plain Layout
3268 http://www.lyx.org/HowToUseGIT
3273 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3281 \begin_layout Itemize
3283 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3284 \begin_inset CommandInset href
3286 name "http://www.lyx.org/trac/timeline"
3287 target "http://www.lyx.org/trac/timeline"
3292 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3295 \begin_layout Standard
3296 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3299 \begin_layout Standard
3300 \begin_inset Branch OutDated
3304 \begin_layout Section
3305 International Keyboard Support
3308 \begin_layout Standard
3311 [Editor's Note: The following section is by
3319 It needs to be fixed to conform to the new Documentation Style sheet and
3320 to make use of the new v1.0 features.
3321 The whole thing also needs to be merged with the section following it.-jw
3322 It may also be badly out of date.-rh (2008)]
3325 \begin_layout Subsection
3326 Defining Own Keymaps: Keymap File Format
3329 \begin_layout Standard
3330 Let's look at a keyboard definition file a little closer.
3331 It is a plain text file defining
3334 \begin_layout Itemize
3335 key-to-key or key-to-string translations
3338 \begin_layout Itemize
3342 \begin_layout Itemize
3343 dead keys exceptions
3346 \begin_layout Standard
3347 To define key-to-key or key-to-string translation, use this command:
3350 \begin_layout Quotation
3351 \begin_inset Flex Code
3354 \begin_layout Plain Layout
3363 \begin_inset Flex Code
3366 \begin_layout Plain Layout
3375 \begin_layout Standard
3377 \begin_inset Flex Code
3380 \begin_layout Plain Layout
3386 is the key to be translated and
3387 \begin_inset Flex Code
3390 \begin_layout Plain Layout
3396 is the string to be inserted into the document.
3397 To define dead keys, use:
3400 \begin_layout Quotation
3401 \begin_inset Flex Code
3404 \begin_layout Plain Layout
3413 \begin_inset Flex Code
3416 \begin_layout Plain Layout
3425 \begin_layout Standard
3427 \begin_inset Flex Code
3430 \begin_layout Plain Layout
3436 is a keyboard key and
3437 \begin_inset Flex Code
3440 \begin_layout Plain Layout
3447 The following dead keys are supported (shortcut name is in parentheses):
3450 \begin_layout Quotation
3454 \begin_inset space \hfill{}
3460 \begin_layout Quotation
3462 \begin_inset space \hfill{}
3470 \begin_layout Quotation
3472 \begin_inset space \hfill{}
3480 \begin_layout Quotation
3482 \begin_inset space \hfill{}
3490 \begin_layout Quotation
3492 \begin_inset space \hfill{}
3500 \begin_layout Quotation
3502 \begin_inset space \hfill{}
3509 \begin_layout Plain Layout
3521 \begin_layout Quotation
3523 \begin_inset space \hfill{}
3531 \begin_layout Quotation
3533 \begin_inset space \hfill{}
3540 \begin_layout Plain Layout
3552 \begin_layout Quotation
3554 \begin_inset space \hfill{}
3562 \begin_layout Quotation
3564 \begin_inset space \hfill{}
3572 \begin_layout Quotation
3574 \begin_inset space \hfill{}
3581 \begin_layout Plain Layout
3593 \begin_layout Quotation
3595 \begin_inset space \hfill{}
3606 \begin_layout Plain Layout
3618 \begin_layout Quotation
3620 \begin_inset space \hfill{}
3628 \begin_layout Quotation
3629 hungarian umlaut (hug)
3630 \begin_inset space \hfill{}
3638 \begin_layout Quotation
3640 \begin_inset space \hfill{}
3648 \begin_layout Quotation
3650 \begin_inset space \hfill{}
3661 \begin_layout Plain Layout
3673 \begin_layout Standard
3674 Since in many international keyboards there are exceptions to what some
3675 dead keys should do, you can define them using
3678 \begin_layout Quotation
3679 \begin_inset Flex Code
3682 \begin_layout Plain Layout
3690 deadkey key outstring
3693 \begin_layout Standard
3694 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3698 \begin_layout Quotation
3699 \begin_inset Flex Code
3702 \begin_layout Plain Layout
3715 \begin_layout Standard
3716 to make it work correctly.
3717 Also, you have to define as exceptions dead keys over i and j, to remove
3718 the dot from them before inserting an accent mark.
3719 I will change this when the time comes, but so far I haven't had time.
3722 \begin_layout Standard
3723 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3726 \begin_inset Flex Code
3729 \begin_layout Plain Layout
3735 have different meaning.
3737 \begin_inset Flex Code
3740 \begin_layout Plain Layout
3746 marks comments, quotes start and end \SpecialChar LaTeX
3748 To enter quote, you'll need to use
3749 \begin_inset Flex Code
3752 \begin_layout Plain Layout
3761 \begin_inset Flex Code
3764 \begin_layout Plain Layout
3771 \begin_inset Flex Code
3774 \begin_layout Plain Layout
3785 \begin_layout Standard
3786 If you make a keyboard description file that works for your language, please
3787 mail it to me, so I can include it in the next keymap distribution.
3790 \begin_layout Standard
3791 More keywords will be supported in keymap configuration file in future,
3795 \begin_layout Itemize
3796 \begin_inset Flex Code
3799 \begin_layout Plain Layout
3810 \begin_inset space \hfill{}
3814 \begin_inset Flex Code
3817 \begin_layout Plain Layout
3826 \begin_layout Itemize
3827 \begin_inset Flex Code
3830 \begin_layout Plain Layout
3841 \begin_inset space \hfill{}
3845 \begin_inset Flex Code
3848 \begin_layout Plain Layout
3854 an external keymap translation program
3857 \begin_layout Standard
3858 Also, it should look into
3859 \begin_inset Flex Code
3862 \begin_layout Plain Layout
3868 file for defaults, too (for example, a
3869 \begin_inset Flex Code
3872 \begin_layout Plain Layout
3880 option to include default keyboard).
3888 \begin_layout Section
3890 \begin_inset CommandInset label
3899 \begin_layout Standard
3900 \begin_inset Note Note
3903 \begin_layout Plain Layout
3904 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3907 \begin_layout Plain Layout
3916 \begin_layout Standard
3918 \begin_inset Flex Code
3921 \begin_layout Plain Layout
3928 \begin_inset Flex Code
3931 \begin_layout Plain Layout
3937 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3940 \begin_layout Subsection
3944 \begin_layout Standard
3945 \begin_inset Flex Code
3948 \begin_layout Plain Layout
3954 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3955 \begin_inset Flex Code
3958 \begin_layout Plain Layout
3964 ファイルは,以下の各項で説明するように,
3965 \begin_inset Flex Code
3968 \begin_layout Plain Layout
3975 \begin_inset Flex Code
3978 \begin_layout Plain Layout
3985 \begin_inset Flex Code
3988 \begin_layout Plain Layout
3995 \begin_inset Flex Code
3998 \begin_layout Plain Layout
4007 \begin_layout Labeling
4008 \labelwidthstring 00.00.0000
4009 \begin_inset Flex Code
4012 \begin_layout Plain Layout
4021 \begin_layout LyX-Code
4036 \begin_layout Standard
4049 中では,二重引用符(")とバックスラッシュ(
4053 )を付けてエスケープしなくてはならないことに注意してください.
4056 \begin_layout Standard
4057 \begin_inset Flex MenuItem
4060 \begin_layout Plain Layout
4067 \begin_inset Flex MenuItem
4070 \begin_layout Plain Layout
4077 \begin_inset Flex MenuItem
4080 \begin_layout Plain Layout
4089 \begin_layout LyX-Code
4095 \begin_layout Standard
4099 \begin_layout Labeling
4100 \labelwidthstring 00.00.0000
4101 \begin_inset Flex Code
4104 \begin_layout Plain Layout
4113 \begin_layout LyX-Code
4122 \begin_layout Standard
4131 のアクセントとするものです.これはデッドキー
4135 \begin_layout Plain Layout
4140 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4144 のようなウムラウトのついた文字は,このようにして出すことができます.
4152 \begin_layout Standard
4165 の後に許可文字ではないその文字が出力として表示されます.
4166 \begin_inset Flex MenuItem
4169 \begin_layout Plain Layout
4180 \begin_inset Flex MenuItem
4183 \begin_layout Plain Layout
4189 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4192 \begin_layout Standard
4193 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4196 \begin_layout LyX-Code
4199 kmod ' acute aeiouAEIOU
4202 \begin_layout Labeling
4203 \labelwidthstring 00.00.0000
4204 \begin_inset Flex Code
4207 \begin_layout Plain Layout
4216 \begin_layout LyX-Code
4225 \begin_layout Standard
4239 \begin_inset Flex Code
4242 \begin_layout Plain Layout
4250 宣言で打鍵キーを既に割り当てられてなくてはならず,
4262 の集合に属していてはなりません.こうして
4275 \begin_inset Flex Code
4278 \begin_layout Plain Layout
4305 \begin_inset Flex Code
4308 \begin_layout Plain Layout
4319 \begin_layout Standard
4320 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4323 \begin_layout LyX-Code
4337 \begin_layout Labeling
4338 \labelwidthstring 00.00.0000
4339 \begin_inset Flex Code
4342 \begin_layout Plain Layout
4351 \begin_layout LyX-Code
4360 \begin_layout Standard
4361 これはなかなか難解になってきます.これは
4386 \begin_inset Flex Code
4389 \begin_layout Plain Layout
4397 コマンドで設定されていなくてはなりません.
4400 \begin_layout Standard
4401 \begin_inset Flex Code
4404 \begin_layout Plain Layout
4413 \begin_layout LyX-Code
4416 kmod ; acute aeioyvhAEIOYVH
4420 kcomb acute umlaut iyIY
4423 \begin_layout Standard
4425 \begin_inset Flex MenuItem
4428 \begin_layout Plain Layout
4435 \begin_inset Flex Code
4438 \begin_layout Plain Layout
4448 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4449 \begin_inset Flex MenuItem
4452 \begin_layout Plain Layout
4459 \begin_inset Flex Code
4462 \begin_layout Plain Layout
4473 \begin_layout Subsection
4477 \begin_layout Standard
4478 \begin_inset Flex Code
4481 \begin_layout Plain Layout
4488 \begin_inset Flex Code
4491 \begin_layout Plain Layout
4497 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4499 \begin_inset Flex Code
4502 \begin_layout Plain Layout
4509 \begin_inset Flex Code
4512 \begin_layout Plain Layout
4521 \begin_layout Standard
4523 \begin_inset Flex Code
4526 \begin_layout Plain Layout
4535 \begin_layout LyX-Code
4548 \begin_layout Standard
4550 \begin_inset Flex MenuItem
4553 \begin_layout Plain Layout
4561 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4564 \begin_layout LyX-Code
4572 \begin_layout Standard
4578 \begin_inset Flex Code
4581 \begin_layout Plain Layout
4590 \begin_inset Flex Code
4593 \begin_layout Plain Layout
4599 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4600 \begin_inset Flex Code
4603 \begin_layout Plain Layout
4612 \begin_layout LyX-Code
4624 \begin_inset Newline newline
4640 \begin_layout Standard
4641 という例があります.\SpecialChar LyX
4642 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4643 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4646 \begin_layout Subsection
4650 \begin_layout Standard
4651 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4652 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4655 \begin_layout Standard
4656 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4657 \begin_inset Flex Code
4660 \begin_layout Plain Layout
4667 \begin_inset Flex MenuItem
4670 \begin_layout Plain Layout
4677 \begin_inset Flex MenuItem
4680 \begin_layout Plain Layout
4686 キー)を,\SpecialChar LyX
4688 \begin_inset Flex Code
4691 \begin_layout Plain Layout
4698 \begin_inset Flex MenuItem
4701 \begin_layout Plain Layout
4707 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4708 \begin_inset Flex MenuItem
4711 \begin_layout Plain Layout
4717 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4718 \begin_inset Flex MenuItem
4721 \begin_layout Plain Layout
4728 \begin_inset Flex MenuItem
4731 \begin_layout Plain Layout
4737 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4738 はビープを鳴らして文句を付けます.デッドキーの後に
4739 \begin_inset Flex MenuItem
4742 \begin_layout Plain Layout
4748 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4750 \begin_inset Flex MenuItem
4753 \begin_layout Plain Layout
4759 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4762 \begin_layout Standard
4763 デッドキーを割り当てるのによく用いられる方法は,
4764 \begin_inset Flex MenuItem
4767 \begin_layout Plain Layout
4774 \begin_inset Flex MenuItem
4777 \begin_layout Plain Layout
4784 \begin_inset Flex MenuItem
4787 \begin_layout Plain Layout
4794 \begin_inset Flex MenuItem
4797 \begin_layout Plain Layout
4804 \begin_inset Flex MenuItem
4807 \begin_layout Plain Layout
4814 \begin_inset Flex MenuItem
4817 \begin_layout Plain Layout
4823 」のようなアクセントと一緒に用いる方法です.また,
4824 \begin_inset Flex Code
4827 \begin_layout Plain Layout
4834 \begin_inset Flex Code
4837 \begin_layout Plain Layout
4844 \begin_inset Flex Code
4847 \begin_layout Plain Layout
4854 \begin_inset Flex Code
4857 \begin_layout Plain Layout
4864 \begin_inset Flex MenuItem
4867 \begin_layout Plain Layout
4873 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4874 \begin_inset Flex Code
4877 \begin_layout Plain Layout
4883 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4888 \begin_layout Plain Layout
4894 \begin_inset Flex Code
4897 \begin_layout Plain Layout
4904 \begin_inset Flex Code
4907 \begin_layout Plain Layout
4914 \begin_inset Flex MenuItem
4917 \begin_layout Plain Layout
4919 \begin_inset space ~
4928 \begin_inset Flex Code
4931 \begin_layout Plain Layout
4938 \begin_inset Flex Code
4941 \begin_layout Plain Layout
4948 \begin_inset Flex MenuItem
4951 \begin_layout Plain Layout
4953 \begin_inset space ~
4962 \begin_inset Flex MenuItem
4965 \begin_layout Plain Layout
4967 \begin_inset space ~
4975 などに割り当てています.私はこの方法でアクセント文字を入力しています.
4981 \begin_inset Flex Code
4984 \begin_layout Plain Layout
4991 \begin_inset Flex MenuItem
4994 \begin_layout Plain Layout
5000 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5007 \begin_inset Flex Code
5010 \begin_layout Plain Layout
5016 の項をご覧ください.ここには完備した一覧があります.
5019 \begin_layout Subsection
5023 \begin_layout Standard
5024 \begin_inset Flex MenuItem
5027 \begin_layout Plain Layout
5028 ツール\SpecialChar menuseparator
5034 ダイアログを使えば,\SpecialChar LyX
5035 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5038 \begin_layout Chapter
5039 文書クラス・レイアウト・ひな型の新規導入
5040 \begin_inset CommandInset label
5047 \begin_inset Argument 1
5050 \begin_layout Plain Layout
5059 \begin_layout Standard
5060 この章では,新しく\SpecialChar LyX
5061 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5062 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5066 \begin_layout Standard
5069 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5070 は,La\SpecialChar TeX
5072 云うことです.実際のところ,\SpecialChar LyX
5073 の観点からは,\SpecialChar LaTeX
5075 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5076 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5077 は,とくに重要な形式ですが,\SpecialChar LyX
5079 について持っている情報のほとんどは,実はプログラム本体には含まれて
5084 \begin_layout Plain Layout
5085 過度に複雑なため,\SpecialChar LyX
5086 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5092 \begin_inset Flex Code
5095 \begin_layout Plain Layout
5101 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5102 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5107 \begin_layout Standard
5108 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5109 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5110 構成体・DocBook構成体・XHTML構成体との
5111 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5113 \begin_inset Flex Code
5116 \begin_layout Plain Layout
5122 について知っていることのほとんど総ては,
5123 \begin_inset Flex Code
5126 \begin_layout Plain Layout
5132 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5134 \begin_inset Flex Code
5137 \begin_layout Plain Layout
5144 \begin_inset Flex Code
5147 \begin_layout Plain Layout
5153 や,文書クラス用の他のレイアウトファイルに取り込まれている
5154 \begin_inset Flex Code
5157 \begin_layout Plain Layout
5163 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5164 \begin_inset Flex Code
5167 \begin_layout Plain Layout
5173 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5174 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5176 \begin_inset Flex Code
5179 \begin_layout Plain Layout
5186 \begin_inset Flex Code
5189 \begin_layout Plain Layout
5195 ファイルを取り込んでいるだけのものです.
5198 \begin_layout Standard
5199 しかしながら,\SpecialChar LyX
5201 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5203 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5204 ます.ある段落様式を\SpecialChar LaTeX
5205 に翻訳する仕方を\SpecialChar LyX
5206 に指示することは,その表示の仕方を\SpecialChar LyX
5207 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5209 式をどのように\SpecialChar LaTeX
5210 に翻訳するかを\SpecialChar LyX
5211 に指示するものではありません(ましてや\SpecialChar LaTeX
5212 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5215 \begin_inset space ~
5219 にどのように翻訳するかを\SpecialChar LyX
5221 \begin_inset space ~
5224 それをどのように表示するかを\SpecialChar LyX
5225 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5228 \begin_layout Standard
5229 もちろん,\SpecialChar LyX
5230 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5231 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5232 力するにあたって,当該段落を\SpecialChar LyX
5233 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5234 が内部的に行うことと,外部的に行う物事の間の区
5235 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5236 \begin_inset CommandInset ref
5238 reference "sec:XHTML出力のタグ"
5245 \begin_layout Section
5246 新しい\SpecialChar LaTeX
5250 \begin_layout Standard
5251 頒布版によっては,\SpecialChar LyX
5252 で使いたい\SpecialChar LaTeX
5253 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5254 パッケージである,Foil\SpecialChar TeX
5255 がないかもしれません.\SpecialChar TeX
5256 Live(2008年以降)やMiK\SpecialChar TeX
5257 のような最近の\SpecialChar LaTeX
5258 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5259 ースが用意されています.たとえば,MiK\SpecialChar TeX
5261 \begin_inset space ~
5264 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5268 \begin_layout Standard
5269 お使いの\SpecialChar LaTeX
5270 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5274 \begin_layout Enumerate
5275 \begin_inset CommandInset href
5278 target "http://www.ctan.org/"
5283 などから欲しいパッケージを入手してください.
5286 \begin_layout Enumerate
5288 \begin_inset Flex Code
5291 \begin_layout Plain Layout
5297 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5298 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5299 \begin_inset Flex Code
5302 \begin_layout Plain Layout
5308 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5309 パッケージは圧縮されていないので,このステップは飛ばすこ
5313 \begin_layout Enumerate
5314 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5318 \begin_layout Enumerate
5319 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5322 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5323 \begin_inset Flex Code
5326 \begin_layout Plain Layout
5336 \begin_layout Plain Layout
5342 \begin_inset Flex Code
5345 \begin_layout Plain Layout
5351 を実行してその場所を見つけることもできます.
5356 .「ローカル」\SpecialChar TeX
5358 \begin_inset Flex Code
5361 \begin_layout Plain Layout
5368 \begin_inset Flex Code
5371 \begin_layout Plain Layout
5372 /usr/local/share/texmf/
5378 \begin_inset Flex Code
5381 \begin_layout Plain Layout
5382 /usr/local/texlive/XXXX
5387 (XXXXは導入されている\SpecialChar TeX
5388 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5390 \begin_inset Flex Code
5393 \begin_layout Plain Layout
5400 \begin_inset Flex Code
5403 \begin_layout Plain Layout
5410 \begin_inset Flex Code
5413 \begin_layout Plain Layout
5419 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5420 ,「ユーザー」ツリーにはこのような制限はありません.
5421 \begin_inset Newline newline
5424 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5425 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5428 \begin_layout Enumerate
5429 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5431 \begin_inset Flex Code
5434 \begin_layout Plain Layout
5444 に移動します(MiK\SpecialChar TeX
5446 \begin_inset Flex Code
5449 \begin_layout Plain Layout
5465 \begin_layout Plain Layout
5466 これは,英語版でのみ正しいパスになっています.独語版では
5467 \begin_inset Flex Code
5470 \begin_layout Plain Layout
5488 \begin_inset Flex Code
5491 \begin_layout Plain Layout
5497 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5499 ことを行います.たとえばMiK\SpecialChar TeX
5501 \begin_inset space ~
5505 \begin_inset Newline newline
5509 \begin_inset Flex Code
5512 \begin_layout Plain Layout
5515 Documents and Settings
5527 \begin_inset Newline newline
5531 \begin_inset Phantom HPhantom
5534 \begin_layout Plain Layout
5545 \begin_inset Flex Code
5548 \begin_layout Plain Layout
5561 \begin_inset Newline newline
5565 \begin_inset Newline newline
5569 \begin_inset Flex Code
5572 \begin_layout Plain Layout
5595 \begin_inset Newline newline
5602 \begin_layout Enumerate
5603 ここまで来れば,あとは\SpecialChar LaTeX
5604 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5609 \begin_layout Enumerate
5612 \begin_inset Flex Code
5615 \begin_layout Plain Layout
5621 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5624 \begin_layout Enumerate
5626 では,パッケージを全ユーザー用に導入した場合には,「Settings
5627 \begin_inset space ~
5630 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5635 \begin_layout Enumerate
5636 最後に,\SpecialChar LyX
5637 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5638 からツール\SpecialChar menuseparator
5639 環境構成メニューを実行して,\SpecialChar LyX
5643 \begin_layout Standard
5644 これでパッケージが導入されました.この例では,文書クラス
5645 \begin_inset Flex Code
5648 \begin_layout Plain Layout
5650 \begin_inset space ~
5659 \begin_inset Flex MenuItem
5662 \begin_layout Plain Layout
5663 文書\SpecialChar menuseparator
5664 設定\SpecialChar menuseparator
5673 \begin_layout Standard
5674 \begin_inset Flex MenuItem
5677 \begin_layout Plain Layout
5678 文書\SpecialChar menuseparator
5679 設定\SpecialChar menuseparator
5685 メニューに列挙されてもいない\SpecialChar LaTeX
5686 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5689 \begin_layout Section
5693 \begin_layout Standard
5694 この節は,レイアウト情報を含む各種\SpecialChar LyX
5695 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5697 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5698 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5701 \begin_layout Standard
5702 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5703 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5704 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5705 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5706 を出していますので,気軽に質問を投げかけてみてください.
5709 \begin_layout Standard
5710 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5711 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5712 文書クラス用の\SpecialChar LyX
5714 他の人々にも有用なモジュールをお書きになった場合には,
5715 \begin_inset CommandInset href
5717 name "LyX Wikiのレイアウトに関する節"
5718 target "http://wiki.lyx.org/Layouts/Layouts"
5724 開発者メーリングリストに投稿して,\SpecialChar LyX
5725 頒布版に同梱することができるようにしてください
5729 \begin_layout Plain Layout
5731 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5732 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5740 \begin_layout Subsection
5742 \begin_inset CommandInset label
5744 name "subsec:レイアウトモジュール"
5751 \begin_layout Standard
5752 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5754 \begin_inset Flex Code
5757 \begin_layout Plain Layout
5763 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5764 に提供するものを指します.しかしながら,\SpecialChar LyX
5766 \begin_inset Flex Code
5769 \begin_layout Plain Layout
5779 にも含めることができます.レイアウトが\SpecialChar LaTeX
5780 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5782 \begin_inset Flex Code
5785 \begin_layout Plain Layout
5791 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5792 イアウトで使用できるという意味において,一面,
5793 \begin_inset Flex Code
5796 \begin_layout Plain Layout
5806 \begin_layout Plain Layout
5807 これらは任意の拡張子をつけることができますが,慣習的に
5808 \begin_inset Flex Code
5811 \begin_layout Plain Layout
5823 \begin_inset Flex Code
5826 \begin_layout Plain Layout
5832 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5833 \begin_inset Flex MenuItem
5836 \begin_layout Plain Layout
5837 文書\SpecialChar menuseparator
5846 \begin_layout Standard
5847 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5848 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5851 \begin_layout Standard
5853 \begin_inset Flex Code
5856 \begin_layout Plain Layout
5862 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5863 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5864 \begin_inset Flex MenuItem
5867 \begin_layout Plain Layout
5868 文書\SpecialChar menuseparator
5874 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5876 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5880 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5882 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5883 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5887 \begin_layout Subsubsection
5891 \begin_layout Standard
5893 に於けるモジュールは,\SpecialChar LaTeX
5894 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5895 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5898 \begin_layout Standard
5901 文書\SpecialChar menuseparator
5902 設定\SpecialChar menuseparator
5905 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5906 は,その文書専属のモジュールだと考えることができます.したがって,
5907 \begin_inset Flex Code
5910 \begin_layout Plain Layout
5916 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5920 \begin_layout Standard
5921 \begin_inset Flex Code
5924 \begin_layout Plain Layout
5930 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5931 ているかどうかが検証されます.すると,\SpecialChar LyX
5932 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5934 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5937 \begin_layout Standard
5938 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5939 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5942 \begin_layout Subsection
5943 \begin_inset Flex MenuItem
5946 \begin_layout Plain Layout
5955 \begin_layout Standard
5956 新しく\SpecialChar LaTeX
5957 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5959 \begin_inset Flex Code
5962 \begin_layout Plain Layout
5969 \begin_inset Flex Code
5972 \begin_layout Plain Layout
5978 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
5979 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
5983 \begin_layout Standard
5984 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
5985 \begin_inset Flex MenuItem
5988 \begin_layout Plain Layout
5995 \begin_inset Flex MenuItem
5998 \begin_layout Plain Layout
6007 \begin_layout Standard
6008 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6012 \begin_layout Plain Layout
6013 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6015 \begin_inset Flex MenuItem
6018 \begin_layout Plain Layout
6024 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6032 \begin_layout LyX-Code
6033 cp report.layout ~/.lyx/layouts/myclass.layout
6036 \begin_layout Standard
6038 \begin_inset Flex Code
6041 \begin_layout Plain Layout
6050 \begin_layout LyX-Code
6053 DeclareLaTeXClass{report}
6056 \begin_layout Standard
6060 \begin_layout LyX-Code
6063 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6066 \begin_layout Standard
6067 のように変更してください.それから,ファイル冒頭辺りに
6070 \begin_layout LyX-Code
6072 \begin_inset Newline newline
6078 \begin_inset Newline newline
6084 \begin_layout Standard
6088 \begin_layout Standard
6091 \begin_inset Flex MenuItem
6094 \begin_layout Plain Layout
6095 ツール\SpecialChar menuseparator
6101 を選択してください.それから\SpecialChar LyX
6102 を再起動し,新規文書を作成してみてください.すると,
6103 \begin_inset Flex MenuItem
6106 \begin_layout Plain Layout
6107 文書\SpecialChar menuseparator
6114 \begin_inset Flex MenuItem
6117 \begin_layout Plain Layout
6123 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6124 \begin_inset Flex Code
6127 \begin_layout Plain Layout
6133 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6134 \begin_inset Flex Code
6137 \begin_layout Plain Layout
6143 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6144 \begin_inset Flex Code
6147 \begin_layout Plain Layout
6154 \begin_inset Flex Code
6157 \begin_layout Plain Layout
6163 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6166 \begin_layout LyX-Code
6170 \begin_layout LyX-Code
6174 \begin_layout LyX-Code
6178 \begin_layout LyX-Code
6182 \begin_layout LyX-Code
6186 \begin_layout Standard
6187 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6190 \begin_layout Standard
6191 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6193 \begin_inset CommandInset ref
6195 reference "sec:テキストクラス"
6202 \begin_layout Standard
6204 \begin_inset Flex Code
6207 \begin_layout Plain Layout
6213 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6214 う.最も簡単なモジュールの例としては,以下のようなものになります.
6217 \begin_layout LyX-Code
6220 DeclareLyXModule{My Package}
6223 \begin_layout LyX-Code
6227 \begin_layout LyX-Code
6228 #Support for mypkg.sty.
6231 \begin_layout LyX-Code
6233 \begin_inset Newline newline
6239 \begin_layout LyX-Code
6241 \begin_inset Newline newline
6247 \begin_layout LyX-Code
6249 \begin_inset Newline newline
6255 \begin_inset Newline newline
6261 \begin_layout Standard
6262 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6263 \begin_inset CommandInset ref
6265 reference "sec:テキストクラス"
6272 \begin_layout Subsection
6273 \begin_inset Flex MenuItem
6276 \begin_layout Plain Layout
6285 \begin_layout Standard
6286 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6287 \begin_inset Flex MenuItem
6290 \begin_layout Plain Layout
6296 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6299 \begin_layout LyX-Code
6305 \begin_layout Standard
6306 という行がないかどうか探してください.もしこれがあれば,
6307 \begin_inset Flex Code
6310 \begin_layout Plain Layout
6311 Declare\SpecialChar LaTeX
6317 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6318 \begin_inset Flex Code
6321 \begin_layout Plain Layout
6328 \begin_inset Flex Code
6331 \begin_layout Plain Layout
6338 \begin_inset Flex Code
6341 \begin_layout Plain Layout
6342 Declare\SpecialChar LaTeX
6352 \begin_layout Plain Layout
6354 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6355 \begin_inset Flex Code
6358 \begin_layout Plain Layout
6372 \begin_layout LyX-Code
6375 DeclareLaTeXClass[thesis,book]{thesis}
6378 \begin_layout Standard
6379 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6381 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6385 \begin_layout Subsection
6387 \begin_inset CommandInset label
6396 \begin_layout Standard
6397 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6398 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6399 添付のひな型をあれこれ見てみるのもよいでしょう.
6402 \begin_layout Standard
6403 ひな型は,通常の文書と同様,\SpecialChar LyX
6404 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6405 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6406 \begin_inset Flex Code
6409 \begin_layout Plain Layout
6418 \begin_inset Flex Code
6421 \begin_layout Plain Layout
6429 などの対応するコマンドをひな型\SpecialChar LyX
6430 ファイルから取り除く必要があります.これは,たとえば
6431 \begin_inset Flex Code
6434 \begin_layout Plain Layout
6441 \begin_inset Flex Code
6444 \begin_layout Plain Layout
6450 のような,どの軽いテキストエディタでも行うことができます.
6453 \begin_layout Standard
6455 \begin_inset Flex Code
6458 \begin_layout Plain Layout
6465 \begin_inset Flex Code
6468 \begin_layout Plain Layout
6474 から使用したいものを同じ場所にコピーし,
6475 \begin_inset Flex MenuItem
6478 \begin_layout Plain Layout
6479 ツール\SpecialChar menuseparator
6480 設定\SpecialChar menuseparator
6486 ダイアログのひな型パスを再定義してください.
6489 \begin_layout Standard
6491 \begin_inset Flex Code
6494 \begin_layout Plain Layout
6500 があることに注意してください.このひな型は,
6501 \begin_inset Flex MenuItem
6504 \begin_layout Plain Layout
6505 ファイル\SpecialChar menuseparator
6511 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6512 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6514 \begin_inset Flex MenuItem
6517 \begin_layout Plain Layout
6526 \begin_layout Subsection
6530 \begin_layout Standard
6531 レイアウトファイルの書式は,\SpecialChar LyX
6532 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6533 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6536 \begin_inset Flex Code
6539 \begin_layout Plain Layout
6541 Dir/scripts/layout2layout.py
6546 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6548 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6551 \begin_layout Enumerate
6553 \begin_inset Flex Code
6556 \begin_layout Plain Layout
6563 \begin_inset Flex Code
6566 \begin_layout Plain Layout
6575 \begin_layout Enumerate
6577 \begin_inset Newline newline
6581 \begin_inset Flex Code
6584 \begin_layout Plain Layout
6585 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6591 \begin_inset Newline newline
6595 \begin_inset Flex Code
6598 \begin_layout Plain Layout
6608 \begin_layout Standard
6609 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6612 \begin_layout Section
6613 \begin_inset CommandInset label
6622 \begin_layout Standard
6623 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6624 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6625 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6626 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6627 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6630 \begin_layout Standard
6631 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6632 \begin_inset Flex Code
6635 \begin_layout Plain Layout
6642 \begin_inset Flex Code
6645 \begin_layout Plain Layout
6652 \begin_inset Flex Code
6655 \begin_layout Plain Layout
6661 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6662 \begin_inset Flex Code
6665 \begin_layout Plain Layout
6673 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6674 \begin_inset Flex Code
6677 \begin_layout Plain Layout
6688 \begin_layout Subsection
6692 \begin_layout Standard
6694 \begin_inset Flex Code
6697 \begin_layout Plain Layout
6703 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6704 \begin_inset Flex Code
6707 \begin_layout Plain Layout
6713 ファイルは,以下のような行で始めなくてはならないのです.
6716 \begin_layout LyX-Code
6719 #% Do not delete the line below; configure depends on this
6722 \begin_layout LyX-Code
6727 DeclareLaTeXClass{Article (Standard Class)}
6730 \begin_layout LyX-Code
6735 DeclareCategory{Articles}
6738 \begin_layout Standard
6739 2行目と3行目は,\SpecialChar LyX
6740 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6742 \begin_inset Flex Code
6745 \begin_layout Plain Layout
6752 \begin_inset Flex Code
6755 \begin_layout Plain Layout
6761 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6762 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6764 \begin_inset Flex Code
6767 \begin_layout Plain Layout
6774 \begin_inset Flex Code
6777 \begin_layout Plain Layout
6783 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6785 \begin_inset Flex Code
6788 \begin_layout Plain Layout
6794 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6795 \begin_inset Flex MenuItem
6798 \begin_layout Plain Layout
6799 文書\SpecialChar menuseparator
6805 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6806 \begin_inset Flex MenuItem
6809 \begin_layout Plain Layout
6810 文書\SpecialChar menuseparator
6816 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6817 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6818 rized」グループに属することになります.
6821 \begin_layout Standard
6823 \begin_inset Flex Code
6826 \begin_layout Plain Layout
6832 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6833 \begin_inset Flex Code
6836 \begin_layout Plain Layout
6842 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6845 \begin_layout LyX-Code
6848 #% Do not delete the line below; configure depends on this
6851 \begin_layout LyX-Code
6856 DeclareLaTeXClass[article]{article (with My Own Headings)}
6859 \begin_layout LyX-Code
6864 DeclareCategory{Articles}
6867 \begin_layout Standard
6868 これは,\SpecialChar LaTeX
6870 \begin_inset Flex Code
6873 \begin_layout Plain Layout
6879 に関連づけられ,「Article (with My Own Headings)」と表示される,
6880 \begin_inset Flex Code
6883 \begin_layout Plain Layout
6889 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6892 \begin_layout LyX-Code
6895 #% Do not delete the line below; configure depends on this
6898 \begin_layout LyX-Code
6903 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
6906 \begin_layout LyX-Code
6911 DeclareCategory{Articles}
6914 \begin_layout Standard
6916 \begin_inset Flex Code
6919 \begin_layout Plain Layout
6925 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
6928 \begin_layout LyX-Code
6931 #% Do not delete the line below; configure depends on this
6934 \begin_layout LyX-Code
6939 DeclareDocBookClass[article]{SGML (DocBook article)}
6942 \begin_layout LyX-Code
6947 DeclareCategory{Articles}
6950 \begin_layout Standard
6951 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
6954 \begin_layout Standard
6955 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
6958 \begin_layout LyX-Code
6963 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6966 \begin_layout LyX-Code
6974 \begin_layout Standard
6975 ここで「クラス」は,\SpecialChar LaTeX
6976 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
6978 名がレイアウトファイル名と同じであると仮定します.
6981 \begin_layout Standard
6982 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
6983 \begin_inset Flex Code
6986 \begin_layout Plain Layout
6993 \begin_inset Flex Code
6996 \begin_layout Plain Layout
7003 \begin_inset Flex MenuItem
7006 \begin_layout Plain Layout
7007 ツール\SpecialChar menuseparator
7013 を実行し,\SpecialChar LyX
7014 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7017 \begin_layout Standard
7018 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7019 を再起動したりすることなく,その変更を確認することができます
7023 \begin_layout Plain Layout
7024 第1.6版よりも前の\SpecialChar LyX
7025 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7027 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7034 \begin_inset Flex MenuItem
7037 \begin_layout Plain Layout
7043 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7044 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7047 \begin_layout Standard
7053 \begin_inset Flex MenuItem
7056 \begin_layout Plain Layout
7062 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7066 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7070 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7072 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7076 \begin_layout Plain Layout
7077 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7078 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7079 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7086 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7090 \begin_layout Plain Layout
7091 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7099 \begin_layout Subsection
7103 \begin_layout Standard
7104 モジュールは,以下のような行で始まらなくてはなりません.
7107 \begin_layout LyX-Code
7110 DeclareLyXModule[endnotes.sty]{Endnotes}
7113 \begin_layout Standard
7114 波括弧内に入っている必須引数はモジュール名で,これは
7115 \begin_inset Flex MenuItem
7118 \begin_layout Plain Layout
7119 文書\SpecialChar menuseparator
7125 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7126 パッケージをすべて宣言します.また,非必須引数として,
7127 \begin_inset Flex Code
7130 \begin_layout Plain Layout
7137 \begin_inset Flex Code
7140 \begin_layout Plain Layout
7147 \begin_inset Flex Code
7150 \begin_layout Plain Layout
7156 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7159 \begin_layout Standard
7160 それから,以下のようなモジュール宣言を行います
7164 \begin_layout Plain Layout
7165 モジュールを\SpecialChar LyX
7166 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7174 \begin_layout LyX-Code
7178 \begin_layout LyX-Code
7179 #Adds an endnote command, in addition to footnotes.
7183 \begin_layout LyX-Code
7184 #You will need to add
7186 theendnotes in TeX code where you
7189 \begin_layout LyX-Code
7190 #want the endnotes to appear.
7194 \begin_layout LyX-Code
7198 \begin_layout LyX-Code
7199 #Requires: somemodule | othermodule
7202 \begin_layout LyX-Code
7203 #Excludes: badmodule
7206 \begin_layout Standard
7207 ここで説明(Description)は,
7208 \begin_inset Flex MenuItem
7211 \begin_layout Plain Layout
7212 文書\SpecialChar menuseparator
7218 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7219 \begin_inset Flex Code
7222 \begin_layout Plain Layout
7228 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7229 \begin_inset Flex Code
7232 \begin_layout Plain Layout
7238 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7239 イプ記号「|」で区切らなくてはなりません.
7240 \begin_inset Flex Code
7243 \begin_layout Plain Layout
7249 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7250 \begin_inset Flex Code
7253 \begin_layout Plain Layout
7263 が使用されていればよいということです.同様に,
7264 \begin_inset Flex Code
7267 \begin_layout Plain Layout
7273 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7274 \begin_inset Flex Code
7277 \begin_layout Plain Layout
7283 拡張子を除いたファイル名で認識されることに注意してください.つまり
7284 \begin_inset Flex Code
7287 \begin_layout Plain Layout
7294 \begin_inset Flex Code
7297 \begin_layout Plain Layout
7306 \begin_layout Subsection
7310 \begin_layout Standard
7311 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7314 \begin_layout Description
7315 \begin_inset Flex Code
7318 \begin_layout Plain Layout
7325 \begin_inset Flex Code
7328 \begin_layout Plain Layout
7337 \begin_layout Standard
7338 このタグは\SpecialChar LyX
7340 \begin_inset space ~
7343 1.4.0で導入されました.\SpecialChar LyX
7345 \begin_inset space ~
7348 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7349 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7350 の各版は,旧版の\SpecialChar LyX
7352 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7355 \begin_layout Subsection
7356 \begin_inset CommandInset label
7358 name "subsec:汎用テキストクラスパラメータ"
7365 \begin_layout Standard
7366 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7367 \begin_inset Flex Code
7370 \begin_layout Plain Layout
7376 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7380 .モジュールには,すべてのレイアウトタグを使用することができます).
7383 \begin_layout Description
7384 \begin_inset Flex Code
7387 \begin_layout Plain Layout
7393 この文書クラスがXHTMLに出力されるときに,
7394 \begin_inset Flex Code
7397 \begin_layout Plain Layout
7403 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7404 \begin_inset Flex Code
7407 \begin_layout Plain Layout
7413 に出力するものであれば,何でも使用することができます.「
7414 \begin_inset Flex Code
7417 \begin_layout Plain Layout
7426 \begin_layout Description
7427 \begin_inset Flex Code
7430 \begin_layout Plain Layout
7436 文書プリアンブルに書き加えられる情報です.「
7437 \begin_inset Flex Code
7440 \begin_layout Plain Layout
7449 \begin_layout Description
7450 \begin_inset Flex Code
7453 \begin_layout Plain Layout
7459 書誌情報の表示に使う書式を定義します.詳細については,
7460 \begin_inset CommandInset ref
7462 reference "subsec:引用書式指定"
7467 \begin_inset Flex Code
7470 \begin_layout Plain Layout
7479 \begin_layout Description
7480 \begin_inset Flex Code
7483 \begin_layout Plain Layout
7489 文書クラスがサポートする様々な大域オプションを記します.説明は,
7490 \begin_inset CommandInset ref
7492 reference "subsec:ClassOptions"
7497 \begin_inset Flex Code
7500 \begin_layout Plain Layout
7509 \begin_layout Description
7510 \begin_inset Flex Code
7513 \begin_layout Plain Layout
7520 \begin_inset Flex Code
7523 \begin_layout Plain Layout
7532 \begin_inset space \thinspace{}
7536 \begin_inset Flex Code
7539 \begin_layout Plain Layout
7545 ] 文書クラスが既定で1段組か2段組かを指定します.
7546 \begin_inset Flex MenuItem
7549 \begin_layout Plain Layout
7550 文書\SpecialChar menuseparator
7559 \begin_layout Description
7560 \begin_inset Flex Code
7563 \begin_layout Plain Layout
7570 \begin_inset Flex Code
7573 \begin_layout Plain Layout
7579 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7580 \begin_inset Flex Code
7583 \begin_layout Plain Layout
7590 \begin_inset Newline newline
7594 \begin_inset CommandInset ref
7596 reference "subsec:カウンタ"
7603 \begin_layout Description
7604 \begin_inset Flex Code
7607 \begin_layout Plain Layout
7613 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7614 \begin_inset CommandInset ref
7616 reference "subsec:フォント指定"
7621 \begin_inset Flex Code
7624 \begin_layout Plain Layout
7633 \begin_layout Description
7634 \begin_inset Flex Code
7637 \begin_layout Plain Layout
7644 \begin_inset Flex Code
7647 \begin_layout Plain Layout
7653 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7654 \begin_inset Flex Code
7657 \begin_layout Plain Layout
7663 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7664 既存の文書にこの文書クラスが選択したときのみ該当します).
7667 \begin_layout Description
7668 \begin_inset Flex Code
7671 \begin_layout Plain Layout
7678 \begin_inset Flex Code
7681 \begin_layout Plain Layout
7691 これは新規段落に割り当てられる様式であり,通常は
7692 \begin_inset Flex MenuItem
7695 \begin_layout Plain Layout
7701 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7704 \begin_layout Description
7705 \begin_inset Flex Code
7708 \begin_layout Plain Layout
7715 \begin_inset Flex Code
7718 \begin_layout Plain Layout
7725 \begin_inset Flex Code
7728 \begin_layout Plain Layout
7734 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7736 \begin_inset Flex Code
7739 \begin_layout Plain Layout
7745 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7749 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7750 \begin_inset CommandInset ref
7752 reference "subsec:レイアウトモジュール"
7759 \begin_layout Description
7760 \begin_inset Flex Code
7763 \begin_layout Plain Layout
7770 \begin_inset CommandInset ref
7772 reference "subsec:フロート"
7777 \begin_inset Flex Code
7780 \begin_layout Plain Layout
7789 \begin_layout Description
7790 \begin_inset Flex Code
7793 \begin_layout Plain Layout
7799 この文書クラスがXHTMLに出力されるときに,
7800 \begin_inset Flex Code
7803 \begin_layout Plain Layout
7809 ブロックに出力される情報です.これより前に出現した
7810 \begin_inset Flex Code
7813 \begin_layout Plain Layout
7820 \begin_inset Flex Code
7823 \begin_layout Plain Layout
7829 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7830 \begin_inset Flex Code
7833 \begin_layout Plain Layout
7840 \begin_inset Flex Code
7843 \begin_layout Plain Layout
7852 \begin_layout Description
7853 \begin_inset Flex Code
7856 \begin_layout Plain Layout
7863 \begin_inset Flex Code
7866 \begin_layout Plain Layout
7872 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7873 .これを指定しない場合には,\SpecialChar LyX
7874 はどのレイアウトを使用するべきか,解析しようと試みます.
7877 \begin_layout Description
7878 \begin_inset Flex Code
7881 \begin_layout Plain Layout
7888 \begin_inset Flex Code
7891 \begin_layout Plain Layout
7897 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7898 \begin_inset Flex Code
7901 \begin_layout Plain Layout
7908 \begin_inset Newline newline
7912 \begin_inset CommandInset ref
7914 reference "subsec:カウンタ"
7921 \begin_layout Description
7922 \begin_inset Flex Code
7925 \begin_layout Plain Layout
7932 \begin_inset Flex Code
7935 \begin_layout Plain Layout
7941 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
7942 \begin_inset Flex Code
7945 \begin_layout Plain Layout
7954 \begin_layout Description
7955 \begin_inset Flex Code
7958 \begin_layout Plain Layout
7965 \begin_inset Flex Code
7968 \begin_layout Plain Layout
7978 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
7980 \begin_inset Flex Code
7983 \begin_layout Plain Layout
7992 \begin_layout Description
7993 \begin_inset Flex Code
7996 \begin_layout Plain Layout
8003 \begin_inset Flex Code
8006 \begin_layout Plain Layout
8016 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8017 \begin_inset Flex Code
8020 \begin_layout Plain Layout
8027 \begin_inset Newline newline
8031 \begin_inset CommandInset ref
8033 reference "subsec:任意設定差込枠"
8040 \begin_layout Description
8041 \begin_inset Flex Code
8044 \begin_layout Plain Layout
8051 \begin_inset Flex Code
8054 \begin_layout Plain Layout
8060 ] 画面上の左余白の幅を指示する文字列.例:「
8061 \begin_inset Flex Code
8064 \begin_layout Plain Layout
8070 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8073 \begin_layout Description
8074 \begin_inset Flex Code
8077 \begin_layout Plain Layout
8084 \begin_inset Flex Code
8087 \begin_layout Plain Layout
8093 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8096 \begin_layout Description
8097 \begin_inset Flex Code
8100 \begin_layout Plain Layout
8107 \begin_inset Flex Code
8110 \begin_layout Plain Layout
8116 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8119 \begin_layout Description
8120 \begin_inset Flex Code
8123 \begin_layout Plain Layout
8130 \begin_inset Flex Code
8133 \begin_layout Plain Layout
8139 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8142 \begin_layout Description
8143 \begin_inset Flex Code
8146 \begin_layout Plain Layout
8153 \begin_inset Flex Code
8156 \begin_layout Plain Layout
8162 ] このクラスによって生成されるファイル形式を示す文字列(
8166 ダイアログで定義される形のもの).おもに,
8167 \begin_inset Flex Code
8170 \begin_layout Plain Layout
8177 \begin_inset Flex Code
8180 \begin_layout Plain Layout
8186 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8187 \begin_inset Flex Code
8190 \begin_layout Plain Layout
8196 パラメーターに遭遇したときには,この文字列は,「
8197 \begin_inset Flex Code
8200 \begin_layout Plain Layout
8207 \begin_inset Flex Code
8210 \begin_layout Plain Layout
8221 \begin_layout Description
8222 \begin_inset Flex Code
8225 \begin_layout Plain Layout
8232 \begin_inset Flex Code
8235 \begin_layout Plain Layout
8246 \begin_inset Flex Code
8249 \begin_layout Plain Layout
8256 \begin_inset Flex Code
8259 \begin_layout Plain Layout
8265 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8268 \begin_layout Description
8269 \begin_inset Flex Code
8272 \begin_layout Plain Layout
8279 \begin_inset Flex Code
8282 \begin_layout Plain Layout
8289 \begin_inset Flex Code
8292 \begin_layout Plain Layout
8298 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8299 \begin_inset Flex Code
8302 \begin_layout Plain Layout
8303 PackageOptions natbib square
8309 \begin_inset Flex Code
8312 \begin_layout Plain Layout
8319 \begin_inset Flex Code
8322 \begin_layout Plain Layout
8328 オプションとともに読み込みます(\SpecialChar TeX
8330 \begin_inset Flex Code
8333 \begin_layout Plain Layout
8339 を読み込む前に,\SpecialChar LyX
8341 \begin_inset Flex Code
8344 \begin_layout Plain Layout
8347 PassOptionsToPackage{natbib}{square}
8355 \begin_layout Description
8356 \begin_inset Flex Code
8359 \begin_layout Plain Layout
8368 \begin_inset Flex Code
8371 \begin_layout Plain Layout
8380 \begin_inset Flex Code
8383 \begin_layout Plain Layout
8390 \begin_inset Flex Code
8393 \begin_layout Plain Layout
8400 \begin_inset Flex MenuItem
8403 \begin_layout Plain Layout
8404 文書\SpecialChar menuseparator
8413 \begin_layout Description
8414 \begin_inset Flex Code
8417 \begin_layout Plain Layout
8424 文書のプリアンブルを設定します.前に行った
8425 \begin_inset Flex Code
8428 \begin_layout Plain Layout
8435 \begin_inset Flex Code
8438 \begin_layout Plain Layout
8444 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8445 \begin_inset Flex Code
8448 \begin_layout Plain Layout
8455 \begin_inset Flex Code
8458 \begin_layout Plain Layout
8467 \begin_layout Description
8468 \begin_inset Flex Code
8471 \begin_layout Plain Layout
8478 \begin_inset Flex Code
8481 \begin_layout Plain Layout
8488 \begin_inset Flex Code
8491 \begin_layout Plain Layout
8500 \begin_inset Flex Code
8503 \begin_layout Plain Layout
8510 \begin_inset Flex Code
8513 \begin_layout Plain Layout
8519 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8520 \begin_inset Flex Code
8523 \begin_layout Plain Layout
8530 \begin_inset Flex Code
8533 \begin_layout Plain Layout
8541 \begin_inset Flex Code
8544 \begin_layout Plain Layout
8551 \begin_inset Flex Code
8554 \begin_layout Plain Layout
8562 \begin_inset CommandInset ref
8564 reference "chap:関数一覧"
8571 \begin_layout Description
8572 \begin_inset Flex Code
8575 \begin_layout Plain Layout
8582 \begin_inset Flex Code
8585 \begin_layout Plain Layout
8592 \begin_inset Flex Code
8595 \begin_layout Plain Layout
8601 で表されているモジュールの機能を提供することを示し,
8602 \begin_inset Flex Code
8605 \begin_layout Plain Layout
8612 \begin_inset Flex Code
8615 \begin_layout Plain Layout
8621 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8622 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8625 \begin_layout Description
8626 \begin_inset Flex Code
8629 \begin_layout Plain Layout
8636 \begin_inset Flex Code
8639 \begin_layout Plain Layout
8646 \begin_inset Flex Code
8649 \begin_layout Plain Layout
8655 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8657 \begin_inset CommandInset ref
8659 reference "chap:関数一覧"
8663 を参照).特定のオプションをとるパッケージを要求する場合,
8664 \begin_inset Flex Code
8667 \begin_layout Plain Layout
8676 \begin_layout Description
8677 \begin_inset Flex Code
8680 \begin_layout Plain Layout
8687 \begin_inset Flex Code
8690 \begin_layout Plain Layout
8696 ] 画面上の右余白の幅を指示する文字列.例:「
8697 \begin_inset Flex Code
8700 \begin_layout Plain Layout
8709 \begin_layout Description
8710 \begin_inset Flex Code
8713 \begin_layout Plain Layout
8720 \begin_inset Flex Code
8723 \begin_layout Plain Layout
8729 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8731 \begin_inset Flex Code
8734 \begin_layout Plain Layout
8743 \begin_layout Description
8744 \begin_inset Flex Code
8747 \begin_layout Plain Layout
8756 \begin_inset Flex Code
8759 \begin_layout Plain Layout
8768 \begin_inset space \thinspace{}
8772 \begin_inset Flex Code
8775 \begin_layout Plain Layout
8781 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8782 \begin_inset Flex MenuItem
8785 \begin_layout Plain Layout
8786 文書\SpecialChar menuseparator
8795 \begin_layout Description
8796 \begin_inset Flex Code
8799 \begin_layout Plain Layout
8806 \begin_inset Flex Code
8809 \begin_layout Plain Layout
8819 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8820 \begin_inset Flex Code
8823 \begin_layout Plain Layout
8830 \begin_inset Newline newline
8834 \begin_inset CommandInset ref
8836 reference "subsec:段落様式-XHTML"
8843 \begin_layout Description
8844 \begin_inset Flex Code
8847 \begin_layout Plain Layout
8854 \begin_inset Flex Code
8857 \begin_layout Plain Layout
8864 \begin_inset Flex Code
8867 \begin_layout Plain Layout
8873 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8875 \begin_inset Flex Code
8878 \begin_layout Plain Layout
8887 \begin_layout Description
8888 \begin_inset Flex Code
8891 \begin_layout Plain Layout
8898 \begin_inset Flex Code
8901 \begin_layout Plain Layout
8910 \begin_inset Flex Code
8913 \begin_layout Plain Layout
8919 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
8920 \begin_inset Flex Code
8923 \begin_layout Plain Layout
8930 \begin_inset Flex Code
8933 \begin_layout Plain Layout
8935 \begin_inset space ~
8943 」が指定されている最後のレイアウトの後に,
8944 \begin_inset Flex Code
8947 \begin_layout Plain Layout
8953 で指定したマクロ名を挿入することを意味します.
8954 \begin_inset Flex Code
8957 \begin_layout Plain Layout
8964 \begin_inset Flex Code
8967 \begin_layout Plain Layout
8969 \begin_inset space ~
8978 \begin_inset Flex Code
8981 \begin_layout Plain Layout
8987 で指定した環境でくるむ場合に対応します.
8990 \begin_layout Description
8991 \begin_inset Flex Code
8994 \begin_layout Plain Layout
9001 \begin_inset Flex Code
9004 \begin_layout Plain Layout
9010 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9012 \begin_inset Flex Code
9015 \begin_layout Plain Layout
9024 \begin_layout Subsection
9025 \begin_inset Flex Code
9028 \begin_layout Plain Layout
9035 \begin_inset CommandInset label
9037 name "subsec:ClassOptions"
9044 \begin_layout Standard
9045 \begin_inset Flex Code
9048 \begin_layout Plain Layout
9057 \begin_layout Description
9058 \begin_inset Flex Code
9061 \begin_layout Plain Layout
9068 \begin_inset Flex Code
9071 \begin_layout Plain Layout
9077 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9078 \begin_inset Flex Code
9081 \begin_layout Plain Layout
9090 \begin_layout Description
9091 \begin_inset Flex Code
9094 \begin_layout Plain Layout
9100 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9101 \begin_inset Quotes eld
9104 -//OASIS//DTD DocBook V4.2//EN
9105 \begin_inset Quotes erd
9111 \begin_layout Description
9112 \begin_inset Flex Code
9115 \begin_layout Plain Layout
9122 \begin_inset Flex Code
9125 \begin_layout Plain Layout
9126 文字列="empty|plain|headings|fancy"
9132 \begin_inset Flex Code
9135 \begin_layout Plain Layout
9144 \begin_layout Description
9145 \begin_inset Flex Code
9148 \begin_layout Plain Layout
9155 \begin_inset Flex Code
9158 \begin_layout Plain Layout
9165 \begin_inset Flex Code
9168 \begin_layout Plain Layout
9176 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9179 \begin_layout Standard
9180 \begin_inset Flex Code
9183 \begin_layout Plain Layout
9190 \begin_inset Flex Code
9193 \begin_layout Plain Layout
9202 \begin_layout Subsection
9204 \begin_inset CommandInset label
9213 \begin_layout Standard
9218 \begin_layout Plain Layout
9219 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9227 \begin_layout LyX-Code
9234 \begin_layout LyX-Code
9238 \begin_layout LyX-Code
9242 \begin_layout Standard
9243 ここでは,以下のコマンドを使用することができます.
9246 \begin_layout Description
9247 \begin_inset Flex Code
9250 \begin_layout Plain Layout
9257 \begin_inset Flex Code
9260 \begin_layout Plain Layout
9265 , left, right, center
9273 \begin_layout Description
9274 \begin_inset Flex Code
9277 \begin_layout Plain Layout
9284 \begin_inset Flex Code
9287 \begin_layout Plain Layout
9292 , left, right, center
9297 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9298 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9302 \begin_layout Description
9303 \begin_inset Flex Code
9306 \begin_layout Plain Layout
9313 \begin_inset Flex Code
9316 \begin_layout Plain Layout
9322 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9324 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9325 \begin_inset Flex Code
9328 \begin_layout Plain Layout
9334 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9374 \begin_layout Standard
9375 \begin_inset Flex Code
9378 \begin_layout Plain Layout
9384 定義内部では,以下の指定をすることができます.
9387 \begin_layout Itemize
9388 \begin_inset Flex Code
9391 \begin_layout Plain Layout
9398 \begin_inset Flex Code
9401 \begin_layout Plain Layout
9407 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9408 \begin_inset Flex Code
9411 \begin_layout Plain Layout
9417 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9418 \begin_inset space \space{}
9422 \begin_inset Quotes eld
9426 \begin_inset Flex Code
9429 \begin_layout Plain Layout
9436 \begin_inset Quotes erd
9442 \begin_layout Itemize
9443 \begin_inset Flex Code
9446 \begin_layout Plain Layout
9453 \begin_inset Flex Code
9456 \begin_layout Plain Layout
9462 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9463 \begin_inset space \space{}
9467 \begin_inset Quotes eld
9471 \begin_inset Flex Code
9474 \begin_layout Plain Layout
9481 \begin_inset Quotes erd
9484 ).この指定は必須ではありません.指定しない場合には,代わりに
9485 \begin_inset Flex Code
9488 \begin_layout Plain Layout
9497 \begin_layout Itemize
9498 \begin_inset Flex Code
9501 \begin_layout Plain Layout
9508 \begin_inset Flex Code
9511 \begin_layout Plain Layout
9517 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9520 \begin_layout Itemize
9521 \begin_inset Flex Code
9524 \begin_layout Plain Layout
9531 \begin_inset Flex Code
9534 \begin_layout Plain Layout
9543 \begin_inset space \thinspace{}
9547 \begin_inset Flex Code
9550 \begin_layout Plain Layout
9556 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9558 \begin_inset Flex Code
9561 \begin_layout Plain Layout
9568 \begin_inset Flex Code
9571 \begin_layout Plain Layout
9580 \begin_layout Itemize
9581 \begin_inset Flex Code
9584 \begin_layout Plain Layout
9591 \begin_inset Flex Code
9594 \begin_layout Plain Layout
9600 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9602 \begin_inset Flex Code
9605 \begin_layout Plain Layout
9613 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9614 \begin_inset Flex Code
9617 \begin_layout Plain Layout
9624 \begin_inset Flex Code
9627 \begin_layout Plain Layout
9633 ステートメントを置くことで実現できます.
9636 \begin_layout Itemize
9637 \begin_inset Flex Code
9640 \begin_layout Plain Layout
9647 \begin_inset Flex Code
9650 \begin_layout Plain Layout
9657 \begin_inset Flex Code
9660 \begin_layout Plain Layout
9667 \begin_inset Flex Code
9670 \begin_layout Plain Layout
9676 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9677 \begin_inset Flex Code
9680 \begin_layout Plain Layout
9689 \begin_layout Itemize
9690 \begin_inset Flex Code
9693 \begin_layout Plain Layout
9700 \begin_inset Flex Code
9703 \begin_layout Plain Layout
9710 \begin_inset Flex Code
9713 \begin_layout Plain Layout
9720 \begin_inset Flex Code
9723 \begin_layout Plain Layout
9729 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9730 \begin_inset Flex Code
9733 \begin_layout Plain Layout
9742 \begin_layout Itemize
9743 \begin_inset Flex Code
9746 \begin_layout Plain Layout
9753 \begin_inset Flex Code
9756 \begin_layout Plain Layout
9762 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9763 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9766 \begin_layout Itemize
9767 \begin_inset Flex Code
9770 \begin_layout Plain Layout
9777 \begin_inset Flex Code
9780 \begin_layout Plain Layout
9786 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9789 \begin_layout Itemize
9790 \begin_inset Flex Code
9793 \begin_layout Plain Layout
9800 \begin_inset CommandInset ref
9802 reference "subsec:フォント指定"
9809 \begin_layout Itemize
9810 \begin_inset Flex Code
9813 \begin_layout Plain Layout
9820 \begin_inset CommandInset ref
9822 reference "subsec:フォント指定"
9829 \begin_layout Itemize
9830 \begin_inset Flex Code
9833 \begin_layout Plain Layout
9840 \begin_inset Flex Code
9843 \begin_layout Plain Layout
9848 , Minimalistic, Conglomerate
9853 ] 差込枠の枠とボタンに用いられる装飾様式.
9856 \begin_layout Itemize
9857 \begin_inset Flex Code
9860 \begin_layout Plain Layout
9867 \begin_inset Flex Code
9870 \begin_layout Plain Layout
9877 \begin_inset Flex Code
9880 \begin_layout Plain Layout
9886 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9889 \begin_layout Itemize
9890 \begin_inset Flex Code
9893 \begin_layout Plain Layout
9900 \begin_inset Flex Code
9903 \begin_layout Plain Layout
9910 \begin_inset Flex Code
9913 \begin_layout Plain Layout
9919 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
9922 \begin_layout Itemize
9923 \begin_inset Flex Code
9926 \begin_layout Plain Layout
9933 \begin_inset Flex Code
9936 \begin_layout Plain Layout
9947 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
9948 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
9951 \begin_layout Standard
9953 \begin_inset Flex Code
9956 \begin_layout Plain Layout
9963 \begin_inset Flex Code
9966 \begin_layout Plain Layout
9972 のとき,各レイアウトで\SpecialChar LyX
9973 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
9974 \begin_inset Flex Code
9977 \begin_layout Plain Layout
9983 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
9984 \begin_inset Flex Code
9987 \begin_layout Plain Layout
9994 \begin_inset Flex Code
9997 \begin_layout Plain Layout
10004 \begin_inset Flex Code
10007 \begin_layout Plain Layout
10016 \begin_layout Standard
10018 \begin_inset Flex Code
10021 \begin_layout Plain Layout
10030 \begin_inset Flex Code
10033 \begin_layout Plain Layout
10042 \begin_inset Flex Code
10045 \begin_layout Plain Layout
10052 \begin_inset Flex Code
10055 \begin_layout Plain Layout
10065 \begin_layout Description
10066 \begin_inset Flex Code
10069 \begin_layout Plain Layout
10076 \begin_inset Flex Code
10079 \begin_layout Plain Layout
10085 宣言をすべて,完全に上書きしますので注意してください.「
10086 \begin_inset Flex Code
10089 \begin_layout Plain Layout
10095 」で閉じる必要があります.これの利用法についての詳細は,第
10096 \begin_inset CommandInset ref
10098 reference "subsec:段落様式の国際化"
10105 \begin_layout Description
10106 \begin_inset Flex Code
10109 \begin_layout Plain Layout
10116 \begin_inset Flex Code
10119 \begin_layout Plain Layout
10129 \begin_layout Plain Layout
10130 ここで「浮動小数点型」とは1.5のような実数を指します.
10135 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10139 \begin_layout Description
10140 \begin_inset Flex Code
10143 \begin_layout Plain Layout
10150 \begin_inset Flex Code
10153 \begin_layout Plain Layout
10159 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10160 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10163 \begin_layout Description
10164 \begin_inset Flex Code
10167 \begin_layout Plain Layout
10173 XMLコマンドの深度.XML型の書式でのみ使用されます.
10176 \begin_layout Description
10177 \begin_inset Flex Code
10180 \begin_layout Plain Layout
10187 \begin_inset Flex Code
10190 \begin_layout Plain Layout
10196 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10199 \begin_layout Description
10200 \begin_inset Flex Code
10203 \begin_layout Plain Layout
10210 \begin_inset Flex Code
10213 \begin_layout Plain Layout
10227 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10231 \begin_layout Plain Layout
10232 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10233 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10242 \begin_layout Description
10243 \begin_inset Flex Code
10246 \begin_layout Plain Layout
10253 \begin_inset Flex Code
10256 \begin_layout Plain Layout
10261 , Box, Filled_Box, Static
10267 \begin_inset Flex Code
10270 \begin_layout Plain Layout
10277 \begin_inset Flex Code
10280 \begin_layout Plain Layout
10287 \begin_inset Flex Code
10290 \begin_layout Plain Layout
10297 \begin_inset Flex Code
10300 \begin_layout Plain Layout
10306 のいずれかの場合は,段落群の最後)に置くラベル.
10307 \begin_inset Flex Code
10310 \begin_layout Plain Layout
10317 \begin_inset Flex Code
10320 \begin_layout Plain Layout
10327 \begin_inset Flex Code
10330 \begin_layout Plain Layout
10336 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10337 \begin_inset Flex Code
10340 \begin_layout Plain Layout
10349 \begin_layout Description
10350 \begin_inset Flex Code
10353 \begin_layout Plain Layout
10360 \begin_inset Flex Code
10363 \begin_layout Plain Layout
10370 \begin_inset Flex Code
10373 \begin_layout Plain Layout
10380 \begin_inset Flex Code
10383 \begin_layout Plain Layout
10392 \begin_layout Description
10393 \begin_inset Flex Code
10396 \begin_layout Plain Layout
10407 \begin_inset CommandInset ref
10409 reference "subsec:フォント指定"
10413 節を参照.このフォントを定義すると,自動的に
10414 \begin_inset Flex Code
10417 \begin_layout Plain Layout
10423 も同じ値で定義されることに注意してください.したがって,
10424 \begin_inset Flex Code
10427 \begin_layout Plain Layout
10433 も同時に定義したい場合には,これを先に定義してください.
10436 \begin_layout Description
10437 \begin_inset Flex Code
10440 \begin_layout Plain Layout
10447 \begin_inset Flex Code
10450 \begin_layout Plain Layout
10456 ] 新しい様式を\SpecialChar LyX
10457 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10458 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10460 \begin_inset Flex Code
10463 \begin_layout Plain Layout
10469 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10471 もこの様式を取り扱えるようになります.
10472 \begin_inset Flex Code
10475 \begin_layout Plain Layout
10481 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10482 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10485 \begin_layout Description
10486 \begin_inset Flex Code
10489 \begin_layout Plain Layout
10498 \begin_inset Flex Code
10501 \begin_layout Plain Layout
10510 \begin_inset space \thinspace{}
10514 \begin_inset Flex Code
10517 \begin_layout Plain Layout
10524 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10525 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10526 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10527 \begin_inset Flex Code
10530 \begin_layout Plain Layout
10536 を有効にすることが認められています.\SpecialChar LyX
10537 は,\SpecialChar LaTeX
10538 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10541 \begin_layout Description
10542 \begin_inset Flex Code
10545 \begin_layout Plain Layout
10551 これらのタグは,XHTML出力で使用されます.第
10552 \begin_inset CommandInset ref
10554 reference "subsec:段落様式-XHTML"
10561 \begin_layout Description
10562 \begin_inset Flex Code
10565 \begin_layout Plain Layout
10571 [[FIXME]] (XML型書式でのみ使用されます.)
10574 \begin_layout Description
10575 \begin_inset Flex Code
10578 \begin_layout Plain Layout
10587 \begin_inset Flex Code
10590 \begin_layout Plain Layout
10599 \begin_inset space \thinspace{}
10603 \begin_inset Flex Code
10606 \begin_layout Plain Layout
10613 \begin_inset Flex Code
10616 \begin_layout Plain Layout
10622 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10624 \begin_inset Flex Code
10627 \begin_layout Plain Layout
10634 \begin_inset Flex Code
10637 \begin_layout Plain Layout
10644 \begin_inset Flex Code
10647 \begin_layout Plain Layout
10656 \begin_layout Description
10657 \begin_inset Flex Code
10660 \begin_layout Plain Layout
10669 \begin_inset Flex Code
10672 \begin_layout Plain Layout
10681 \begin_inset space \thinspace{}
10685 \begin_inset Flex Code
10688 \begin_layout Plain Layout
10695 \begin_inset Flex Code
10698 \begin_layout Plain Layout
10704 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10705 \begin_inset Flex Code
10708 \begin_layout Plain Layout
10715 \begin_inset Flex Code
10718 \begin_layout Plain Layout
10727 \begin_layout Description
10728 \begin_inset Flex Code
10731 \begin_layout Plain Layout
10738 \begin_inset Flex Code
10741 \begin_layout Plain Layout
10747 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10748 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10750 \begin_inset Flex Code
10753 \begin_layout Plain Layout
10764 \begin_layout Description
10765 \begin_inset Flex Code
10768 \begin_layout Plain Layout
10775 \begin_inset Flex Code
10778 \begin_layout Plain Layout
10784 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10785 \begin_inset Flex Code
10788 \begin_layout Plain Layout
10794 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10795 \begin_inset Flex Code
10798 \begin_layout Plain Layout
10811 \begin_layout Description
10812 \begin_inset Flex Code
10815 \begin_layout Plain Layout
10821 [[FIXME]] (XML型書式でのみ使用されます.)
10824 \begin_layout Description
10825 \begin_inset Flex Code
10828 \begin_layout Plain Layout
10837 \begin_inset Flex Code
10840 \begin_layout Plain Layout
10849 \begin_inset space \thinspace{}
10853 \begin_inset Flex Code
10856 \begin_layout Plain Layout
10862 ] 段落を空のままにすると,\SpecialChar LaTeX
10863 出力が空になってしまうので,通常,\SpecialChar LyX
10864 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10865 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10866 まないある種の改行として使用することもあります.
10869 \begin_layout Description
10870 \begin_inset Flex Code
10873 \begin_layout Plain Layout
10880 \begin_inset Flex Code
10883 \begin_layout Plain Layout
10889 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10890 \begin_inset Flex Code
10893 \begin_layout Plain Layout
10900 \begin_inset Newline linebreak
10904 \begin_inset Flex Code
10907 \begin_layout Plain Layout
10908 Centered_Top_Environment
10916 \begin_layout Description
10917 \begin_inset Flex Code
10920 \begin_layout Plain Layout
10927 \begin_inset Flex Code
10930 \begin_layout Plain Layout
10936 ] 自動連番に使われるカウンタ名(詳しくは第
10937 \begin_inset CommandInset ref
10939 reference "subsec:カウンタ"
10943 節参照).カウンタがラベル中に表示されるようにするためには,
10944 \begin_inset Flex Code
10947 \begin_layout Plain Layout
10953 中で参照する必要があります.これは,少なくとも
10954 \begin_inset Flex Code
10957 \begin_layout Plain Layout
10964 \begin_inset Flex Code
10967 \begin_layout Plain Layout
10974 \begin_inset Flex Code
10977 \begin_layout Plain Layout
10984 \begin_inset Flex Code
10987 \begin_layout Plain Layout
10994 \begin_inset Newline newline
10998 \begin_inset Flex Code
11001 \begin_layout Plain Layout
11008 \begin_inset Flex Code
11011 \begin_layout Plain Layout
11017 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11018 \begin_inset Flex Code
11021 \begin_layout Plain Layout
11022 LabelCounter myenum
11027 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11028 におけるのと同様,実際に使われるカウンタは,
11029 \begin_inset Flex Code
11032 \begin_layout Plain Layout
11039 \begin_inset Flex Code
11042 \begin_layout Plain Layout
11049 \begin_inset Flex Code
11052 \begin_layout Plain Layout
11059 \begin_inset Flex Code
11062 \begin_layout Plain Layout
11068 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11069 \begin_inset Newline newline
11073 \begin_inset CommandInset ref
11075 reference "subsec:カウンタ"
11082 \begin_layout Description
11083 \begin_inset Flex Code
11086 \begin_layout Plain Layout
11093 \begin_inset CommandInset ref
11095 reference "subsec:フォント指定"
11102 \begin_layout Description
11103 \begin_inset Flex Code
11106 \begin_layout Plain Layout
11113 \begin_inset Flex Code
11116 \begin_layout Plain Layout
11122 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11125 \begin_layout Description
11126 \begin_inset Flex Code
11129 \begin_layout Plain Layout
11136 \begin_inset Flex Code
11139 \begin_layout Plain Layout
11145 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11148 \begin_layout Description
11149 \begin_inset Flex Code
11152 \begin_layout Plain Layout
11159 \begin_inset Flex Code
11162 \begin_layout Plain Layout
11169 \begin_inset Flex Code
11172 \begin_layout Plain Layout
11179 \begin_inset Flex Code
11182 \begin_layout Plain Layout
11189 \begin_inset CommandInset ref
11191 reference "subsec:カウンタ"
11195 に述べられている特別な整形コマンドを含めることができます.
11198 \begin_layout Description
11199 \begin_inset Flex Code
11202 \begin_layout Plain Layout
11203 LabelStringAppendix
11209 \begin_inset Flex Code
11212 \begin_layout Plain Layout
11219 \begin_inset Flex Code
11222 \begin_layout Plain Layout
11229 \begin_inset Flex Code
11232 \begin_layout Plain Layout
11239 \begin_inset Flex Code
11242 \begin_layout Plain Layout
11243 LabelStringAppendix
11248 をもリセットすることに注意してください.
11251 \begin_layout Description
11252 \begin_inset Flex Code
11255 \begin_layout Plain Layout
11261 [FIXME] (XML型書式でのみ使用されます.)
11264 \begin_layout Description
11265 \begin_inset Flex Code
11268 \begin_layout Plain Layout
11275 \begin_inset Flex Code
11278 \begin_layout Plain Layout
11283 , Manual, Static, Above,
11284 \begin_inset Newline newline
11287 Centered, Sensitive, Enumerate,
11288 \begin_inset Newline newline
11291 Itemize, Bibliography
11300 \begin_layout Description
11301 \begin_inset Flex Code
11304 \begin_layout Plain Layout
11310 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11313 \begin_layout Description
11314 \begin_inset Flex Code
11317 \begin_layout Plain Layout
11324 \begin_inset Flex Code
11327 \begin_layout Plain Layout
11333 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11334 \begin_inset Flex Code
11337 \begin_layout Plain Layout
11344 \begin_inset Flex Code
11347 \begin_layout Plain Layout
11354 \begin_inset Flex Code
11357 \begin_layout Plain Layout
11363 の段落中,最初の段落にのみ表示されます.
11366 \begin_layout Description
11367 \begin_inset Flex Code
11370 \begin_layout Plain Layout
11377 \begin_inset Flex Code
11380 \begin_layout Plain Layout
11387 \begin_inset Flex Code
11390 \begin_layout Plain Layout
11396 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11399 \begin_layout Description
11400 \begin_inset Flex Code
11403 \begin_layout Plain Layout
11409 はキャプションラベルの「図」や「表」の特別な場合です.
11410 \begin_inset Flex Code
11413 \begin_layout Plain Layout
11419 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11420 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11421 \begin_inset Flex Code
11424 \begin_layout Plain Layout
11430 は「意味を成しません!」と表示されます.
11433 \begin_layout Description
11434 \begin_inset Flex Code
11437 \begin_layout Plain Layout
11443 は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11447 \begin_layout Description
11448 \begin_inset Flex Code
11451 \begin_layout Plain Layout
11457 は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11460 \begin_layout Description
11461 \begin_inset Flex Code
11464 \begin_layout Plain Layout
11471 \begin_inset Flex Code
11474 \begin_layout Plain Layout
11475 LatexType BibEnvironment
11484 \begin_layout Description
11485 \begin_inset Flex Code
11488 \begin_layout Plain Layout
11495 \begin_inset Flex Code
11498 \begin_layout Plain Layout
11504 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11505 \begin_inset CommandInset ref
11507 reference "subsec:段落様式の国際化"
11514 \begin_layout Description
11515 \begin_inset Flex Code
11518 \begin_layout Plain Layout
11525 \begin_inset Flex Code
11528 \begin_layout Plain Layout
11534 ] 対応する\SpecialChar LaTeX
11535 の名称です.環境名かコマンド名を指します.
11538 \begin_layout Description
11539 \begin_inset Flex Code
11542 \begin_layout Plain Layout
11549 \begin_inset Flex Code
11552 \begin_layout Plain Layout
11559 \begin_inset Flex Code
11562 \begin_layout Plain Layout
11568 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11569 内部から変更することはできません(変更可能なパラメータには
11570 \begin_inset Flex Code
11573 \begin_layout Plain Layout
11579 を使用してください).これは,全ての\SpecialChar LaTeX
11581 \begin_inset Flex Code
11584 \begin_layout Plain Layout
11593 \begin_layout Description
11594 \begin_inset Flex Code
11597 \begin_layout Plain Layout
11604 \begin_inset Flex Code
11607 \begin_layout Plain Layout
11612 , Command, Environment, Item_Environment,
11613 \begin_inset Newline newline
11616 List_Environment, Bib_Environment
11621 ] レイアウトがどのように\SpecialChar LaTeX
11626 \begin_layout Plain Layout
11627 これらのルールはSGMLクラスにも適用されるので,
11628 \begin_inset Flex Code
11631 \begin_layout Plain Layout
11637 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11638 \begin_inset Flex Code
11641 \begin_layout Plain Layout
11656 \begin_layout Description
11657 \begin_inset Flex Code
11660 \begin_layout Plain Layout
11669 \begin_layout Description
11670 \begin_inset Flex Code
11673 \begin_layout Plain Layout
11680 \begin_inset Flex Code
11683 \begin_layout Plain Layout
11690 {\SpecialChar ldots
11699 \begin_layout Description
11700 \begin_inset Flex Code
11703 \begin_layout Plain Layout
11710 \begin_inset Flex Code
11713 \begin_layout Plain Layout
11720 }\SpecialChar ldots
11735 \begin_layout Description
11736 \begin_inset Flex Code
11739 \begin_layout Plain Layout
11746 \begin_inset Flex Code
11749 \begin_layout Plain Layout
11756 \begin_inset Flex Code
11759 \begin_layout Plain Layout
11767 がこの環境のすべての段落に付けられるところだけが異なっています.
11770 \begin_layout Description
11771 \begin_inset Flex Code
11774 \begin_layout Plain Layout
11781 \begin_inset Flex Code
11784 \begin_layout Plain Layout
11791 \begin_inset Flex Code
11794 \begin_layout Plain Layout
11800 が環境の引数として渡されるところだけが異なっています.
11801 \begin_inset Flex Code
11804 \begin_layout Plain Layout
11811 \begin_inset Flex MenuItem
11814 \begin_layout Plain Layout
11815 編集\SpecialChar menuseparator
11824 \begin_layout Description
11825 \begin_inset Flex Code
11828 \begin_layout Plain Layout
11835 \begin_inset Flex Code
11838 \begin_layout Plain Layout
11844 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11845 \begin_inset Newline newline
11849 \begin_inset Flex Code
11852 \begin_layout Plain Layout
11855 begin{thebibliography}{99}
11861 \begin_inset Newline newline
11864 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11867 \begin_layout Standard
11868 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11869 出力は,\SpecialChar LaTeX
11873 \begin_layout LyX-Code
11876 LatexName[LatexParam]{\SpecialChar ldots
11880 \begin_layout Standard
11884 \begin_layout LyX-Code
11887 begin{LatexName}[LatexParam] \SpecialChar ldots
11893 \begin_layout Standard
11898 \begin_layout Description
11899 \begin_inset Flex Code
11902 \begin_layout Plain Layout
11909 \begin_inset Flex Code
11912 \begin_layout Plain Layout
11918 ] 様式の内容の最初に置かれる文字列.出力中の改行は
11919 \begin_inset Flex Code
11922 \begin_layout Plain Layout
11931 \begin_layout Description
11932 \begin_inset Flex Code
11935 \begin_layout Plain Layout
11942 \begin_inset Flex Code
11945 \begin_layout Plain Layout
11951 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
11952 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11955 をかけて加えられます.このパラメータは,
11956 \begin_inset Flex Code
11959 \begin_layout Plain Layout
11966 \begin_inset Flex Code
11969 \begin_layout Plain Layout
11976 \begin_inset Flex Code
11979 \begin_layout Plain Layout
11985 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
11986 \begin_inset Newline newline
11990 \begin_inset Flex Code
11993 \begin_layout Plain Layout
11999 」と指定すると,段落を通常フォントの「
12000 \begin_inset Flex Code
12003 \begin_layout Plain Layout
12009 」の幅だけ行頭下げを行います.文字列の前に「
12010 \begin_inset Flex Code
12013 \begin_layout Plain Layout
12019 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12022 \begin_layout Description
12023 \begin_inset Flex Code
12026 \begin_layout Plain Layout
12033 \begin_inset Flex Code
12036 \begin_layout Plain Layout
12041 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12047 \begin_inset Newline newline
12054 \begin_layout Description
12055 \begin_inset Flex Code
12058 \begin_layout Plain Layout
12067 \begin_layout Description
12068 \begin_inset Flex Code
12071 \begin_layout Plain Layout
12078 \begin_inset Flex MenuItem
12081 \begin_layout Plain Layout
12082 編集\SpecialChar menuseparator
12088 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12091 \begin_layout Description
12092 \begin_inset Flex Code
12095 \begin_layout Plain Layout
12101 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12102 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12105 \begin_layout Description
12106 \begin_inset Flex Code
12109 \begin_layout Plain Layout
12115 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12118 \begin_layout Description
12119 \begin_inset Flex Code
12122 \begin_layout Plain Layout
12128 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12132 \begin_layout Description
12133 \begin_inset Flex Code
12136 \begin_layout Plain Layout
12143 \begin_inset Flex Code
12146 \begin_layout Plain Layout
12155 \begin_inset space \thinspace{}
12159 \begin_inset Flex Code
12162 \begin_layout Plain Layout
12168 ] このレイアウト中の脆弱なコマンドが
12169 \begin_inset Flex Code
12172 \begin_layout Plain Layout
12180 されるべきか否か(註:これはこのコマンド自体が
12181 \begin_inset Flex Code
12184 \begin_layout Plain Layout
12199 \begin_layout Description
12200 \begin_inset Flex Code
12203 \begin_layout Plain Layout
12210 \begin_inset Flex Code
12213 \begin_layout Plain Layout
12220 \begin_inset space \thinspace{}
12224 \begin_inset Flex Code
12227 \begin_layout Plain Layout
12235 ] 新規行を\SpecialChar LaTeX
12237 \begin_inset Flex Code
12240 \begin_layout Plain Layout
12250 )に変換するか否か.\SpecialChar LyX
12251 中で\SpecialChar LaTeX
12252 編集をやりやすくするために,変換は無効にすることができます.
12255 \begin_layout Description
12256 \begin_inset Flex Code
12259 \begin_layout Plain Layout
12266 \begin_inset Flex Code
12269 \begin_layout Plain Layout
12278 \begin_inset space \thinspace{}
12282 \begin_inset Flex Code
12285 \begin_layout Plain Layout
12292 \begin_inset Flex Code
12295 \begin_layout Plain Layout
12302 \begin_inset Flex Code
12305 \begin_layout Plain Layout
12311 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12314 \begin_layout Description
12315 \begin_inset Flex Code
12318 \begin_layout Plain Layout
12325 \begin_inset Flex Code
12328 \begin_layout Plain Layout
12334 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12337 \begin_layout Description
12338 \begin_inset Flex Code
12341 \begin_layout Plain Layout
12348 \begin_inset Flex Code
12351 \begin_layout Plain Layout
12358 \begin_inset space \thinspace{}
12362 \begin_inset Flex Code
12365 \begin_layout Plain Layout
12371 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12372 \begin_inset Flex Code
12375 \begin_layout Plain Layout
12381 が一度だけ出力される効果があります.既定では,
12382 \begin_inset Flex Code
12385 \begin_layout Plain Layout
12392 \begin_inset Flex Code
12395 \begin_layout Plain Layout
12402 \begin_inset Flex Code
12405 \begin_layout Plain Layout
12411 については有効であり,他の型すべてについて無効になっています.
12414 \begin_layout Description
12415 \begin_inset Flex Code
12418 \begin_layout Plain Layout
12425 \begin_inset Flex Code
12428 \begin_layout Plain Layout
12437 \begin_inset space \thinspace{}
12441 \begin_inset Flex Code
12444 \begin_layout Plain Layout
12450 ] \SpecialChar LaTeX
12451 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12452 \begin_inset Flex Code
12455 \begin_layout Plain Layout
12461 と併用すれば,(\SpecialChar TeX
12462 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12465 \begin_layout Description
12466 \begin_inset Flex Code
12469 \begin_layout Plain Layout
12476 \begin_inset Flex Code
12479 \begin_layout Plain Layout
12485 ] 段落の最初の行の行頭下げ.レイアウトによっては
12486 \begin_inset Flex Code
12489 \begin_layout Plain Layout
12495 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12496 \begin_inset Flex Code
12499 \begin_layout Plain Layout
12505 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12506 \begin_inset Flex Code
12509 \begin_layout Plain Layout
12516 \begin_inset Flex Code
12519 \begin_layout Plain Layout
12525 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12528 \begin_layout Description
12529 \begin_inset Flex Code
12532 \begin_layout Plain Layout
12539 \begin_inset Flex Code
12542 \begin_layout Plain Layout
12548 ] このレイアウトの2段落間の垂直余白.
12551 \begin_layout Description
12552 \begin_inset Flex Code
12555 \begin_layout Plain Layout
12562 \begin_inset Flex Code
12565 \begin_layout Plain Layout
12572 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12573 択した際には,\SpecialChar LaTeX
12575 \begin_inset Flex Code
12578 \begin_layout Plain Layout
12585 \begin_inset Flex Code
12588 \begin_layout Plain Layout
12594 引数分だけ引き離されます.垂直余白は,
12595 \begin_inset Flex Code
12598 \begin_layout Plain Layout
12604 を標準フォントでの1行の高さとすると,
12605 \begin_inset Flex Code
12608 \begin_layout Plain Layout
12615 \begin_inset Formula $\times$
12619 \begin_inset Flex Code
12622 \begin_layout Plain Layout
12628 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12631 \begin_layout Description
12632 \begin_inset Flex Code
12635 \begin_layout Plain Layout
12644 \begin_inset Flex Code
12647 \begin_layout Plain Layout
12656 \begin_inset space \thinspace{}
12660 \begin_inset Flex Code
12663 \begin_layout Plain Layout
12669 ] この段落の内容が,\SpecialChar LaTeX
12670 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12673 \begin_layout Description
12674 \begin_inset Flex Code
12677 \begin_layout Plain Layout
12684 \begin_inset Flex Code
12687 \begin_layout Plain Layout
12698 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12701 \begin_layout Description
12702 \begin_inset Flex Code
12705 \begin_layout Plain Layout
12711 この様式が使用されたときに,\SpecialChar LaTeX
12712 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12713 \begin_inset Flex Code
12716 \begin_layout Plain Layout
12725 \begin_layout Description
12726 \begin_inset Flex Code
12729 \begin_layout Plain Layout
12736 \begin_inset Flex Code
12739 \begin_layout Plain Layout
12745 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12748 \begin_layout Description
12749 \begin_inset Flex Code
12752 \begin_layout Plain Layout
12759 \begin_inset Flex Code
12762 \begin_layout Plain Layout
12769 \begin_inset Flex Code
12772 \begin_layout Plain Layout
12778 を必要とするかどうか(機能詳細については,第
12779 \begin_inset CommandInset ref
12781 reference "chap:関数一覧"
12785 節参照).特定のオプションをとるパッケージを要求する場合,
12786 \begin_inset Flex Code
12789 \begin_layout Plain Layout
12795 を汎用テキストクラスパラメータとして追加して使うことができます(
12796 \begin_inset CommandInset ref
12798 reference "subsec:汎用テキストクラスパラメータ"
12805 \begin_layout Description
12806 \begin_inset Flex Code
12809 \begin_layout Plain Layout
12816 \begin_inset Flex Code
12819 \begin_layout Plain Layout
12828 \begin_inset Flex Code
12831 \begin_layout Plain Layout
12838 \begin_inset Flex Code
12841 \begin_layout Plain Layout
12847 タグで定義された)この様式の\SpecialChar LaTeX
12849 \begin_inset Flex Code
12852 \begin_layout Plain Layout
12858 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12861 \begin_layout Description
12862 \begin_inset Flex Code
12865 \begin_layout Plain Layout
12872 \begin_inset Flex Code
12875 \begin_layout Plain Layout
12881 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12882 \begin_inset Flex Code
12885 \begin_layout Plain Layout
12894 \begin_layout Description
12895 \begin_inset Flex Code
12898 \begin_layout Plain Layout
12905 \begin_inset Flex Code
12908 \begin_layout Plain Layout
12915 \begin_inset Flex Code
12918 \begin_layout Plain Layout
12927 \begin_layout Description
12928 \begin_inset Flex Code
12931 \begin_layout Plain Layout
12938 \begin_inset Flex Code
12941 \begin_layout Plain Layout
12950 \begin_inset Flex Code
12953 \begin_layout Plain Layout
12960 \begin_inset Flex Code
12963 \begin_layout Plain Layout
12970 \begin_inset Flex Code
12973 \begin_layout Plain Layout
12975 \begin_inset space ~
12991 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
12992 \begin_inset Flex Code
12995 \begin_layout Plain Layout
13002 \begin_inset Flex Code
13005 \begin_layout Plain Layout
13012 \begin_inset Flex Code
13015 \begin_layout Plain Layout
13021 は,それぞれ乗数1・1.25・1.667に対応します.引数
13022 \begin_inset Flex Code
13025 \begin_layout Plain Layout
13031 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13032 \begin_inset Flex Code
13035 \begin_layout Plain Layout
13041 は,\SpecialChar LaTeX
13043 \begin_inset Flex Code
13046 \begin_layout Plain Layout
13052 パッケージを使用した,限定的な\SpecialChar LaTeX
13053 コードを生成することを意味することにご注意ください.
13056 \begin_layout Description
13057 \begin_inset Flex Code
13060 \begin_layout Plain Layout
13067 \begin_inset Flex Code
13070 \begin_layout Plain Layout
13077 \begin_inset space \thinspace{}
13081 \begin_inset Flex Code
13084 \begin_layout Plain Layout
13090 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13093 \begin_layout Description
13094 \begin_inset Flex Code
13097 \begin_layout Plain Layout
13104 \begin_inset CommandInset ref
13106 reference "subsec:フォント指定"
13113 \begin_layout Description
13114 \begin_inset Flex Code
13117 \begin_layout Plain Layout
13124 \begin_inset Flex Code
13127 \begin_layout Plain Layout
13133 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13136 \begin_layout Description
13137 \begin_inset Flex Code
13140 \begin_layout Plain Layout
13149 \begin_inset Flex Code
13152 \begin_layout Plain Layout
13161 \begin_inset Flex Code
13164 \begin_layout Plain Layout
13171 \begin_inset Flex Code
13174 \begin_layout Plain Layout
13180 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13181 \begin_inset Flex Code
13184 \begin_layout Plain Layout
13190 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13191 \begin_inset Flex Code
13194 \begin_layout Plain Layout
13200 は,文書設定にかかわらず変更することができ,
13201 \begin_inset Flex Code
13204 \begin_layout Plain Layout
13210 は,どのような場合でも変更することができません.
13213 \begin_layout Description
13214 \begin_inset Flex Code
13217 \begin_layout Plain Layout
13224 \begin_inset Flex Code
13227 \begin_layout Plain Layout
13233 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13237 \begin_layout Subsection
13239 \begin_inset CommandInset label
13241 name "subsec:段落様式の国際化"
13248 \begin_layout Standard
13250 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13251 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13255 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13258 \begin_layout Standard
13260 \begin_inset Flex MenuItem
13263 \begin_layout Plain Layout
13269 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13270 \begin_inset Flex MenuItem
13273 \begin_layout Plain Layout
13280 \begin_inset Flex MenuItem
13283 \begin_layout Plain Layout
13289 を使用することができます.以下の抜粋(
13290 \begin_inset Flex MenuItem
13293 \begin_layout Plain Layout
13299 より)は,これがどう動作するかを示すものです.
13302 \begin_layout LyX-Code
13307 \begin_layout LyX-Code
13310 theoremstyle{remark}
13313 \begin_layout LyX-Code
13316 newtheorem{claim}[thm]{
13323 \begin_layout LyX-Code
13327 \begin_layout LyX-Code
13331 \begin_layout LyX-Code
13336 claimname}{_(Claim)}
13339 \begin_layout LyX-Code
13343 \begin_layout LyX-Code
13347 \begin_layout LyX-Code
13356 claimname}{_(Claim)}}
13359 \begin_layout LyX-Code
13364 \begin_layout Standard
13366 \begin_inset Flex MenuItem
13369 \begin_layout Plain Layout
13376 \begin_inset Flex MenuItem
13379 \begin_layout Plain Layout
13385 タグ内には,有効な\SpecialChar LaTeX
13386 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13387 は,\SpecialChar LaTeX
13389 \begin_inset Flex Code
13392 \begin_layout Plain Layout
13401 \begin_inset Flex Code
13404 \begin_layout Plain Layout
13415 \begin_layout Standard
13416 \begin_inset Flex Code
13419 \begin_layout Plain Layout
13425 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13426 \begin_inset Flex Code
13429 \begin_layout Plain Layout
13435 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13436 \begin_inset Flex Code
13439 \begin_layout Plain Layout
13445 が使用されていることです.これは,\SpecialChar LyX
13446 が\SpecialChar LaTeX
13447 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13450 \begin_layout Standard
13451 \begin_inset Flex Code
13454 \begin_layout Plain Layout
13461 \begin_inset Flex Code
13464 \begin_layout Plain Layout
13470 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13472 \begin_inset Flex Code
13475 \begin_layout Plain Layout
13481 の引数は,その当該言語への翻訳で置き換えられ,
13482 \begin_inset Flex Code
13485 \begin_layout Plain Layout
13491 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13494 \begin_layout Standard
13495 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13498 \begin_layout LyX-Code
13507 claimname}{Affirmation}}
13508 \begin_inset Newline newline
13519 claimname}{Behauptung}}
13520 \begin_inset Newline newline
13527 claimname}{Behauptung}
13530 \begin_layout Standard
13531 それから,\SpecialChar LaTeX
13533 \begin_inset Flex Code
13536 \begin_layout Plain Layout
13542 は協力して,出力に正しい文字列を生成します.
13545 \begin_layout Standard
13546 ここで注意しておくべき一つの重要な点は,翻訳は,
13547 \begin_inset Flex Code
13550 \begin_layout Plain Layout
13556 ファイルを通じて,\SpecialChar LyX
13557 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13558 \begin_inset Flex Code
13561 \begin_layout Plain Layout
13567 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13568 の国際化ルーチンでは取り扱われないので,
13569 \begin_inset Flex MenuItem
13572 \begin_layout Plain Layout
13579 \begin_inset Flex MenuItem
13582 \begin_layout Plain Layout
13588 は,事実上,\SpecialChar LyX
13589 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13591 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13592 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13593 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13596 \begin_layout Subsection
13598 \begin_inset CommandInset label
13607 \begin_layout Standard
13609 第1.3.0版以来,テキストクラス自体の中でフロート(
13610 \begin_inset Flex MenuItem
13613 \begin_layout Plain Layout
13620 \begin_inset Flex MenuItem
13623 \begin_layout Plain Layout
13629 ・\SpecialChar ldots
13630 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13631 \begin_inset Flex Code
13634 \begin_layout Plain Layout
13640 ファイルに含まれているので,作業中のレイアウトファイルに
13643 \begin_layout LyX-Code
13644 Input stdfloats.inc
13647 \begin_layout Standard
13648 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13649 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13653 \begin_layout Description
13654 \begin_inset Flex Code
13657 \begin_layout Plain Layout
13664 \begin_inset Flex Code
13667 \begin_layout Plain Layout
13673 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13678 \begin_inset Quotes eld
13681 here if possible:可能ならば現在位置に
13682 \begin_inset Quotes erd
13690 \begin_inset Quotes eld
13694 \begin_inset Quotes erd
13702 \begin_inset Quotes eld
13705 bottom of page:ページ下部
13706 \begin_inset Quotes erd
13714 \begin_inset Quotes eld
13717 page of floats:フロートを独立したページに
13718 \begin_inset Quotes erd
13726 \begin_inset Quotes eld
13729 here definitely:何としても現在位置に置く
13730 \begin_inset Quotes erd
13738 \begin_inset Quotes eld
13741 ignore LaTeX rules:LaTeXの規則を無視する
13742 \begin_inset Quotes erd
13745 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13752 \begin_layout Description
13753 \begin_inset Flex Code
13756 \begin_layout Plain Layout
13763 \begin_inset Flex Code
13766 \begin_layout Plain Layout
13773 \begin_inset space \thinspace{}
13779 \begin_inset Flex Code
13782 \begin_layout Plain Layout
13790 ] フロートを,\SpecialChar LaTeX
13795 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13796 \begin_inset Flex Code
13799 \begin_layout Plain Layout
13808 \begin_layout Description
13809 \begin_inset Flex Code
13812 \begin_layout Plain Layout
13819 \begin_inset Flex Code
13822 \begin_layout Plain Layout
13829 \begin_inset space \thinspace{}
13835 \begin_inset Flex Code
13838 \begin_layout Plain Layout
13846 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13847 \begin_inset Flex Code
13850 \begin_layout Plain Layout
13859 \begin_layout Description
13860 \begin_inset Flex Code
13863 \begin_layout Plain Layout
13870 \begin_inset Flex Code
13873 \begin_layout Plain Layout
13880 \begin_inset Quotes erd
13884 \begin_inset Quotes erd
13887 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
13888 がキャプションを書き込むファイルです.
13891 \begin_layout Description
13892 \begin_inset Flex Code
13895 \begin_layout Plain Layout
13902 \begin_inset Flex Code
13905 \begin_layout Plain Layout
13912 \begin_inset Quotes erd
13916 \begin_inset Quotes erd
13919 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
13922 \begin_layout Description
13923 \begin_inset Flex Code
13926 \begin_layout Plain Layout
13932 これらは,XHTML出力で使用されます.
13933 \begin_inset CommandInset ref
13935 reference "sec:XHTML出力のタグ"
13942 \begin_layout Description
13943 \begin_inset Flex Code
13946 \begin_layout Plain Layout
13953 \begin_inset Flex Code
13956 \begin_layout Plain Layout
13965 \begin_inset space \thinspace{}
13969 \begin_inset Flex Code
13972 \begin_layout Plain Layout
13978 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
13980 \begin_inset Flex Code
13983 \begin_layout Plain Layout
13989 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
13990 \begin_inset Flex Code
13993 \begin_layout Plain Layout
14000 \begin_inset Flex Code
14003 \begin_layout Plain Layout
14009 を使用します.\SpecialChar LaTeX
14010 ドキュメントクラス中に既に定義されているときには,
14011 \begin_inset Flex Code
14014 \begin_layout Plain Layout
14023 \begin_layout Description
14024 \begin_inset Flex Code
14027 \begin_layout Plain Layout
14034 \begin_inset Flex Code
14037 \begin_layout Plain Layout
14044 \begin_inset Quotes erd
14048 \begin_inset Quotes erd
14051 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14054 \begin_inset Flex Code
14057 \begin_layout Plain Layout
14063 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14068 \begin_inset Flex Code
14071 \begin_layout Plain Layout
14077 が真の時は,標準的な方法が存在するので,これは無視されます.
14080 \begin_layout Description
14081 \begin_inset Flex Code
14084 \begin_layout Plain Layout
14091 \begin_inset Flex Code
14094 \begin_layout Plain Layout
14101 \begin_inset Quotes erd
14105 \begin_inset Quotes erd
14108 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14109 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14111 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14114 \begin_layout Description
14115 \begin_inset Flex Code
14118 \begin_layout Plain Layout
14125 \begin_inset Flex Code
14128 \begin_layout Plain Layout
14135 \begin_inset Quotes erd
14139 \begin_inset Quotes erd
14142 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14143 \begin_inset Flex Code
14146 \begin_layout Plain Layout
14153 \begin_inset Flex Code
14156 \begin_layout Plain Layout
14162 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14165 \begin_layout Description
14166 \begin_inset Flex Code
14169 \begin_layout Plain Layout
14176 \begin_inset Flex Code
14179 \begin_layout Plain Layout
14186 \begin_inset Quotes erd
14190 \begin_inset Quotes erd
14193 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14195 \begin_inset Flex Code
14198 \begin_layout Plain Layout
14205 \begin_inset Flex Code
14208 \begin_layout Plain Layout
14215 \begin_inset Flex Code
14218 \begin_layout Plain Layout
14225 \begin_inset Flex Code
14228 \begin_layout Plain Layout
14238 \begin_layout Plain Layout
14240 同様,文字列中でのこれらの文字の順序は関係ありません.
14246 \begin_inset Flex Code
14249 \begin_layout Plain Layout
14255 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14256 \begin_inset Flex Code
14259 \begin_layout Plain Layout
14265 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14267 \begin_inset Flex Code
14270 \begin_layout Plain Layout
14279 \begin_layout Description
14280 \begin_inset Flex Code
14283 \begin_layout Plain Layout
14290 \begin_inset Flex Code
14293 \begin_layout Plain Layout
14299 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14300 \begin_inset Flex Code
14303 \begin_layout Plain Layout
14309 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14312 \begin_layout Description
14313 \begin_inset Flex Code
14316 \begin_layout Plain Layout
14323 \begin_inset Flex Code
14326 \begin_layout Plain Layout
14333 \begin_inset Quotes erd
14337 \begin_inset Quotes erd
14341 \begin_inset Flex Code
14344 \begin_layout Plain Layout
14352 を使用してフロートを定義する際に使用される様式.
14355 \begin_layout Description
14356 \begin_inset Flex Code
14359 \begin_layout Plain Layout
14366 \begin_inset Flex Code
14369 \begin_layout Plain Layout
14376 \begin_inset Quotes erd
14380 \begin_inset Quotes erd
14383 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14384 \begin_inset Flex Code
14387 \begin_layout Plain Layout
14396 \begin_inset Flex Code
14399 \begin_layout Plain Layout
14408 \begin_inset Flex Code
14411 \begin_layout Plain Layout
14422 \begin_layout Description
14423 \begin_inset Flex Code
14426 \begin_layout Plain Layout
14433 \begin_inset Flex Code
14436 \begin_layout Plain Layout
14443 \begin_inset space \thinspace{}
14447 \begin_inset Flex Code
14450 \begin_layout Plain Layout
14458 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14460 \begin_inset Flex Code
14463 \begin_layout Plain Layout
14469 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14470 自身がオン・ザ・フライで定義しているのかを示します.
14473 \begin_layout Standard
14474 \begin_inset Flex Code
14477 \begin_layout Plain Layout
14490 \begin_inset Flex Code
14493 \begin_layout Plain Layout
14504 \begin_layout Subsection
14506 \begin_inset CommandInset label
14508 name "subsec:任意設定差込枠"
14515 \begin_layout Standard
14519 \begin_layout Itemize
14521 \begin_inset Flex Code
14524 \begin_layout Plain Layout
14531 \begin_inset Flex Code
14534 \begin_layout Plain Layout
14543 \begin_inset Flex Code
14546 \begin_layout Plain Layout
14554 などの\SpecialChar LaTeX
14555 コマンドに対応した意味論的マークアップを定義するものです.
14558 \begin_layout Itemize
14560 \begin_inset Flex Code
14563 \begin_layout Plain Layout
14569 ).これは,\SpecialChar TeX
14570 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14571 \begin_inset Flex Code
14574 \begin_layout Plain Layout
14583 \begin_layout Itemize
14585 \begin_inset Flex Code
14588 \begin_layout Plain Layout
14594 ).DocBookクラスで使用するものです.
14597 \begin_layout Standard
14599 \begin_inset Flex Code
14602 \begin_layout Plain Layout
14611 \begin_layout Standard
14612 \begin_inset Flex Code
14615 \begin_layout Plain Layout
14621 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14622 \begin_inset Flex Code
14625 \begin_layout Plain Layout
14631 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14632 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14636 \begin_layout Standard
14637 \begin_inset Flex Code
14640 \begin_layout Plain Layout
14646 定義は以下の形の行では始まらなくてはなりません.
14649 \begin_layout LyX-Code
14653 \begin_layout Standard
14655 \begin_inset Flex Code
14658 \begin_layout Plain Layout
14664 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14667 \begin_layout Enumerate
14668 既存の差込枠のレイアウトを変更する場合.この場合,
14669 \begin_inset Flex Code
14672 \begin_layout Plain Layout
14679 \begin_inset Flex Code
14682 \begin_layout Plain Layout
14689 \begin_inset Flex Code
14692 \begin_layout Plain Layout
14699 \begin_inset Flex Code
14702 \begin_layout Plain Layout
14709 \begin_inset Flex Code
14712 \begin_layout Plain Layout
14719 \begin_inset Flex Code
14722 \begin_layout Plain Layout
14729 \begin_inset Flex Code
14732 \begin_layout Plain Layout
14739 \begin_inset Flex Code
14742 \begin_layout Plain Layout
14749 \begin_inset Flex Code
14752 \begin_layout Plain Layout
14759 \begin_inset Flex Code
14762 \begin_layout Plain Layout
14769 \begin_inset Flex Code
14772 \begin_layout Plain Layout
14779 \begin_inset Flex Code
14782 \begin_layout Plain Layout
14789 \begin_inset Flex Code
14792 \begin_layout Plain Layout
14799 \begin_inset Flex Code
14802 \begin_layout Plain Layout
14809 \begin_inset Flex Code
14812 \begin_layout Plain Layout
14819 \begin_inset Flex Code
14822 \begin_layout Plain Layout
14829 \begin_inset Flex Code
14832 \begin_layout Plain Layout
14839 \begin_inset Flex Code
14842 \begin_layout Plain Layout
14849 \begin_inset Flex Code
14852 \begin_layout Plain Layout
14859 \begin_inset Flex Code
14862 \begin_layout Plain Layout
14869 \begin_inset Flex Code
14872 \begin_layout Plain Layout
14881 \begin_layout Enumerate
14882 自由差込枠のレイアウトを定義する場合.この場合,
14883 \begin_inset Flex Code
14886 \begin_layout Plain Layout
14893 \begin_inset Flex Code
14896 \begin_layout Plain Layout
14903 \begin_inset Flex Code
14906 \begin_layout Plain Layout
14912 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
14913 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
14914 \begin_inset Flex Code
14917 \begin_layout Plain Layout
14923 項目が含まれていなくてはならないことに注意してください.
14926 \begin_layout Enumerate
14927 ユーザー定義派生枝を定義する場合.この場合,
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
14957 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
14958 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
14959 がくるむことができるようにすることです.
14962 \begin_layout Enumerate
14963 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
14964 \begin_inset Flex Code
14967 \begin_layout Plain Layout
14974 \begin_inset Flex Code
14977 \begin_layout Plain Layout
14984 \begin_inset Flex Code
14987 \begin_layout Plain Layout
14993 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
14994 \begin_inset Flex Code
14997 \begin_layout Plain Layout
15003 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15004 \begin_inset Flex Code
15007 \begin_layout Plain Layout
15014 \begin_inset Flex Code
15017 \begin_layout Plain Layout
15028 \begin_inset Flex Code
15031 \begin_layout Plain Layout
15040 \begin_layout Standard
15041 \begin_inset Flex Code
15044 \begin_layout Plain Layout
15050 定義には以下の項目を入れることができます.
15053 \begin_layout Description
15054 \begin_inset Flex Code
15057 \begin_layout Plain Layout
15064 \begin_inset Flex Code
15067 \begin_layout Plain Layout
15073 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15074 \begin_inset Flex Code
15077 \begin_layout Plain Layout
15084 \begin_inset CommandInset ref
15086 reference "subsec:段落様式"
15093 \begin_layout Description
15094 \begin_inset Flex Code
15097 \begin_layout Plain Layout
15104 \begin_inset CommandInset ref
15106 reference "subsec:段落様式の国際化"
15113 \begin_layout Description
15114 \begin_inset Flex Code
15117 \begin_layout Plain Layout
15124 \begin_inset Flex Code
15127 \begin_layout Plain Layout
15133 ] 差込枠の背景色.使用できる色名一覧は
15134 \begin_inset CommandInset ref
15136 reference "chap:色名"
15143 \begin_layout Description
15144 \begin_inset Flex Code
15147 \begin_layout Plain Layout
15154 \begin_inset Flex Code
15157 \begin_layout Plain Layout
15166 \begin_inset space \thinspace{}
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 CommandInset ref
15195 reference "subsec:段落様式"
15199 参照のこと.完全な型を指定する必要があることに注意してください.例:
15200 \begin_inset Flex Code
15203 \begin_layout Plain Layout
15204 CopyStyle Flex:<名称>
15212 \begin_layout Description
15213 \begin_inset Flex Code
15216 \begin_layout Plain Layout
15223 \begin_inset Flex Code
15226 \begin_layout Plain Layout
15235 \begin_inset space \thinspace{}
15239 \begin_inset Flex Code
15242 \begin_layout Plain Layout
15248 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15251 \begin_layout Description
15252 \begin_inset Flex Code
15255 \begin_layout Plain Layout
15261 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15262 \begin_inset Flex Code
15265 \begin_layout Plain Layout
15272 \begin_inset Flex Code
15275 \begin_layout Plain Layout
15282 \begin_inset Flex Code
15285 \begin_layout Plain Layout
15291 のいずれかを指定することができます.脚註は通常
15292 \begin_inset Flex Code
15295 \begin_layout Plain Layout
15301 を使用し,\SpecialChar TeX
15303 \begin_inset Flex Code
15306 \begin_layout Plain Layout
15313 \begin_inset Flex Code
15316 \begin_layout Plain Layout
15325 \begin_layout Description
15326 \begin_inset Flex Code
15329 \begin_layout Plain Layout
15336 \begin_inset Flex Code
15339 \begin_layout Plain Layout
15346 \begin_inset space \thinspace{}
15350 \begin_inset Flex Code
15353 \begin_layout Plain Layout
15362 \begin_inset Flex Code
15365 \begin_layout Plain Layout
15372 \begin_inset Flex Code
15375 \begin_layout Plain Layout
15381 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15383 \begin_inset Flex Code
15386 \begin_layout Plain Layout
15395 \begin_inset Flex Code
15398 \begin_layout Plain Layout
15406 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15409 \begin_layout Description
15410 \begin_inset Flex Code
15413 \begin_layout Plain Layout
15420 \begin_inset Flex Code
15423 \begin_layout Plain Layout
15432 \begin_layout Description
15433 \begin_inset Flex Code
15436 \begin_layout Plain Layout
15447 \begin_inset CommandInset ref
15449 reference "subsec:フォント指定"
15453 を参照.このフォントを定義すると自動的に
15454 \begin_inset Flex Code
15457 \begin_layout Plain Layout
15463 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15464 \begin_inset Flex Code
15467 \begin_layout Plain Layout
15473 を定義しなくてはならないことに注意してください.
15476 \begin_layout Description
15477 \begin_inset Flex Code
15480 \begin_layout Plain Layout
15481 FixedWidthPreambleEncoding
15487 \begin_inset Flex Code
15490 \begin_layout Plain Layout
15499 \begin_inset space \thinspace{}
15503 \begin_inset Flex Code
15506 \begin_layout Plain Layout
15513 \begin_inset Flex Code
15516 \begin_layout Plain Layout
15523 \begin_inset Flex Code
15526 \begin_layout Plain Layout
15532 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15540 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15541 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15542 やLua\SpecialChar TeX
15543 のようなUnicodeを完全に解する\SpecialChar LaTeX
15548 \begin_layout Description
15549 \begin_inset Flex Code
15552 \begin_layout Plain Layout
15553 ForceLocalFontSwitch
15559 \begin_inset Flex Code
15562 \begin_layout Plain Layout
15571 \begin_inset space \thinspace{}
15575 \begin_inset Flex Code
15578 \begin_layout Plain Layout
15584 ] babel使用時に,常にローカルフォント切替(
15585 \begin_inset Flex Code
15588 \begin_layout Plain Layout
15597 \begin_inset Flex Code
15600 \begin_layout Plain Layout
15611 \begin_layout Description
15612 \begin_inset Flex Code
15615 \begin_layout Plain Layout
15622 \begin_inset Flex Code
15625 \begin_layout Plain Layout
15634 \begin_inset space \thinspace{}
15638 \begin_inset Flex Code
15641 \begin_layout Plain Layout
15647 ] たとえば\SpecialChar TeX
15648 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15651 \begin_layout Description
15652 \begin_inset Flex Code
15655 \begin_layout Plain Layout
15662 \begin_inset Flex Code
15665 \begin_layout Plain Layout
15674 \begin_inset space \thinspace{}
15678 \begin_inset Flex Code
15681 \begin_layout Plain Layout
15687 ] \SpecialChar LaTeX
15688 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15691 \begin_layout Description
15692 \begin_inset Flex Code
15695 \begin_layout Plain Layout
15702 \begin_inset Flex Code
15705 \begin_layout Plain Layout
15714 \begin_inset space \thinspace{}
15718 \begin_inset Flex Code
15721 \begin_layout Plain Layout
15727 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15730 \begin_layout Description
15731 \begin_inset Flex Code
15734 \begin_layout Plain Layout
15743 \begin_inset Flex Code
15746 \begin_layout Plain Layout
15755 \begin_inset space \thinspace{}
15759 \begin_inset Flex Code
15762 \begin_layout Plain Layout
15769 \begin_inset CommandInset ref
15771 reference "subsec:段落様式"
15778 \begin_layout Description
15779 \begin_inset Flex Code
15782 \begin_layout Plain Layout
15788 これらは,XHTML出力で使用されます.
15789 \begin_inset CommandInset ref
15791 reference "sec:XHTML出力のタグ"
15798 \begin_layout Description
15799 \begin_inset Flex Code
15802 \begin_layout Plain Layout
15809 \begin_inset Flex Code
15812 \begin_layout Plain Layout
15821 \begin_inset space \thinspace{}
15825 \begin_inset Flex Code
15828 \begin_layout Plain Layout
15834 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15835 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15838 \begin_layout Description
15839 \begin_inset Flex Code
15842 \begin_layout Plain Layout
15851 \begin_inset Flex Code
15854 \begin_layout Plain Layout
15863 \begin_inset space \thinspace{}
15867 \begin_inset Flex Code
15870 \begin_layout Plain Layout
15877 \begin_inset CommandInset ref
15879 reference "subsec:段落様式"
15886 \begin_layout Description
15887 \begin_inset Flex Code
15890 \begin_layout Plain Layout
15897 \begin_inset CommandInset ref
15899 reference "subsec:フォント指定"
15903 節を参照.非効率を回避するため,この定義は
15904 \begin_inset Flex Code
15907 \begin_layout Plain Layout
15916 \begin_layout Description
15917 \begin_inset Flex Code
15920 \begin_layout Plain Layout
15927 \begin_inset Flex Code
15930 \begin_layout Plain Layout
15937 \begin_inset Quotes erd
15941 \begin_inset Quotes erd
15948 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
15949 コードや派生枝),ラベルが動的に変更されます.
15952 \begin_layout Description
15953 \begin_inset Flex Code
15956 \begin_layout Plain Layout
15963 \begin_inset CommandInset ref
15965 reference "subsec:段落様式の国際化"
15972 \begin_layout Description
15973 \begin_inset Flex Code
15976 \begin_layout Plain Layout
15983 \begin_inset Flex Code
15986 \begin_layout Plain Layout
15992 ] 対応する\SpecialChar LaTeX
15993 関連物の名称.環境名ないしはコマンド名.
15996 \begin_layout Description
15997 \begin_inset Flex Code
16000 \begin_layout Plain Layout
16007 \begin_inset Flex Code
16010 \begin_layout Plain Layout
16021 \begin_inset Flex Code
16024 \begin_layout Plain Layout
16031 \begin_inset Flex Code
16034 \begin_layout Plain Layout
16040 のような括弧対を含む.このパラメータは\SpecialChar LyX
16041 内部から変更することはできません(変更可能なパラメータには
16042 \begin_inset Flex Code
16045 \begin_layout Plain Layout
16051 を使用してください).これは,全ての\SpecialChar LaTeX
16053 \begin_inset Flex Code
16056 \begin_layout Plain Layout
16065 \begin_layout Description
16066 \begin_inset Flex Code
16069 \begin_layout Plain Layout
16076 \begin_inset Flex Code
16079 \begin_layout Plain Layout
16080 Command, Environment, None
16085 ] 様式がどのように\SpecialChar LaTeX
16090 \begin_layout Plain Layout
16091 これらのルールはSGMLクラスにも適用されるので,
16092 \begin_inset Flex Code
16095 \begin_layout Plain Layout
16101 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16110 \begin_layout Description
16111 \begin_inset Flex Code
16114 \begin_layout Plain Layout
16123 \begin_layout Description
16124 \begin_inset Flex Code
16127 \begin_layout Plain Layout
16134 \begin_inset Flex Code
16137 \begin_layout Plain Layout
16144 {\SpecialChar ldots
16153 \begin_layout Description
16154 \begin_inset Flex Code
16157 \begin_layout Plain Layout
16164 \begin_inset Flex Code
16167 \begin_layout Plain Layout
16174 }\SpecialChar ldots
16189 \begin_layout Standard
16190 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16191 出力は,\SpecialChar LaTeX
16195 \begin_layout LyX-Code
16198 LatexName[LatexParam]{\SpecialChar ldots
16202 \begin_layout Standard
16206 \begin_layout LyX-Code
16209 begin{LatexName}[LatexParam] \SpecialChar ldots
16215 \begin_layout Standard
16220 \begin_layout Description
16221 \begin_inset Flex Code
16224 \begin_layout Plain Layout
16231 \begin_inset Flex Code
16234 \begin_layout Plain Layout
16240 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16241 \begin_inset Flex Code
16244 \begin_layout Plain Layout
16253 \begin_layout Description
16254 \begin_inset Flex Code
16257 \begin_layout Plain Layout
16264 \begin_inset Flex Code
16267 \begin_layout Plain Layout
16274 \begin_inset Flex Code
16277 \begin_layout Plain Layout
16284 \begin_inset Flex Code
16287 \begin_layout Plain Layout
16294 \begin_inset Flex Code
16297 \begin_layout Plain Layout
16303 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16304 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16305 \begin_inset Flex Code
16308 \begin_layout Plain Layout
16315 \begin_inset Flex Code
16318 \begin_layout Plain Layout
16325 \begin_inset Flex Code
16328 \begin_layout Plain Layout
16339 \begin_inset Flex Code
16342 \begin_layout Plain Layout
16353 \begin_inset Flex Code
16356 \begin_layout Plain Layout
16367 \begin_inset Flex Code
16370 \begin_layout Plain Layout
16381 \begin_inset Flex Code
16384 \begin_layout Plain Layout
16394 設定すれば,真に設定することができます.
16397 \begin_layout Description
16398 \begin_inset Flex Code
16401 \begin_layout Plain Layout
16408 \begin_inset Flex Code
16411 \begin_layout Plain Layout
16420 \begin_inset space \thinspace{}
16424 \begin_inset Flex Code
16427 \begin_layout Plain Layout
16433 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16434 \begin_inset Flex Code
16437 \begin_layout Plain Layout
16444 \begin_inset Flex Code
16447 \begin_layout Plain Layout
16454 \begin_inset Flex Code
16457 \begin_layout Plain Layout
16467 指定されれば,他の値に指定し直すことができます.既定値は真です.
16470 \begin_layout Description
16471 \begin_inset Flex Code
16474 \begin_layout Plain Layout
16481 \begin_inset Flex Code
16484 \begin_layout Plain Layout
16493 \begin_inset space \thinspace{}
16497 \begin_inset Flex Code
16500 \begin_layout Plain Layout
16507 \begin_inset Flex Code
16510 \begin_layout Plain Layout
16518 するか否か(註:当該コマンド自身をprotectするかどうかでは
16525 \begin_layout Description
16526 \begin_inset Flex Code
16529 \begin_layout Plain Layout
16536 \begin_inset Flex Code
16539 \begin_layout Plain Layout
16546 \begin_inset Flex Code
16549 \begin_layout Plain Layout
16558 \begin_layout Description
16559 \begin_inset Flex Code
16562 \begin_layout Plain Layout
16569 \begin_inset Flex Code
16572 \begin_layout Plain Layout
16579 \begin_inset Flex Code
16582 \begin_layout Plain Layout
16589 \begin_inset Flex Code
16592 \begin_layout Plain Layout
16599 \begin_inset Flex Code
16602 \begin_layout Plain Layout
16608 の改名を,後方互換性を維持しながら行うために用いられます.
16611 \begin_layout Description
16612 \begin_inset Flex Code
16615 \begin_layout Plain Layout
16622 \begin_inset Flex Code
16625 \begin_layout Plain Layout
16634 \begin_inset space \thinspace{}
16638 \begin_inset Flex Code
16641 \begin_layout Plain Layout
16648 \begin_inset CommandInset ref
16650 reference "subsec:段落様式"
16657 \begin_layout Description
16658 \begin_inset Flex Code
16661 \begin_layout Plain Layout
16670 \begin_inset Flex Code
16673 \begin_layout Plain Layout
16682 \begin_inset space \thinspace{}
16686 \begin_inset Flex Code
16689 \begin_layout Plain Layout
16696 \begin_inset CommandInset ref
16698 reference "subsec:段落様式"
16705 \begin_layout Description
16706 \begin_inset Flex Code
16709 \begin_layout Plain Layout
16716 \begin_inset CommandInset ref
16718 reference "subsec:段落様式"
16725 \begin_layout Description
16726 \begin_inset Flex Code
16729 \begin_layout Plain Layout
16736 \begin_inset Flex Code
16739 \begin_layout Plain Layout
16745 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16748 \begin_layout Description
16749 \begin_inset Flex Code
16752 \begin_layout Plain Layout
16759 \begin_inset Flex Code
16762 \begin_layout Plain Layout
16769 \begin_inset CommandInset ref
16771 reference "subsec:段落様式"
16778 \begin_layout Description
16779 \begin_inset Flex Code
16782 \begin_layout Plain Layout
16789 \begin_inset Flex Code
16792 \begin_layout Plain Layout
16801 \begin_inset space \thinspace{}
16805 \begin_inset Flex Code
16808 \begin_layout Plain Layout
16815 \begin_inset Flex Code
16818 \begin_layout Plain Layout
16824 タグで定義された)この様式の\SpecialChar LaTeX
16826 \begin_inset Flex Code
16829 \begin_layout Plain Layout
16835 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16838 \begin_layout Description
16839 \begin_inset Flex Code
16842 \begin_layout Plain Layout
16849 \begin_inset Flex Code
16852 \begin_layout Plain Layout
16859 \begin_inset space \thinspace{}
16863 \begin_inset Flex Code
16866 \begin_layout Plain Layout
16874 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16875 \begin_inset Note Note
16878 \begin_layout Plain Layout
16879 This is outdated: The default changed from 1 to 0
16887 \begin_layout Description
16888 \begin_inset Flex Code
16891 \begin_layout Plain Layout
16898 \begin_inset Flex Code
16901 \begin_layout Plain Layout
16907 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16908 \begin_inset Flex Code
16911 \begin_layout Plain Layout
16920 \begin_layout Description
16921 \begin_inset Flex Code
16924 \begin_layout Plain Layout
16931 \begin_inset Flex Code
16934 \begin_layout Plain Layout
16941 \begin_inset space \thinspace{}
16945 \begin_inset Flex Code
16948 \begin_layout Plain Layout
16956 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
16959 \begin_layout Subsection
16961 \begin_inset CommandInset label
16970 \begin_layout Standard
16972 \begin_inset Flex MenuItem
16975 \begin_layout Plain Layout
16982 \begin_inset Flex MenuItem
16985 \begin_layout Plain Layout
16991 ・\SpecialChar ldots
16992 )を定義することが必要です.標準的なカウンタは
16993 \begin_inset Flex Code
16996 \begin_layout Plain Layout
17002 ファイルに含まれているので,作業中のレイアウトファイルに
17005 \begin_layout LyX-Code
17006 Input stdcounters.inc
17009 \begin_layout Standard
17010 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17013 \begin_layout LyX-Code
17017 \begin_layout Standard
17019 \begin_inset Flex Code
17022 \begin_layout Plain Layout
17028 」は,実際のカウンタ名で置き換えます.また,宣言は「
17029 \begin_inset Flex Code
17032 \begin_layout Plain Layout
17041 \begin_layout Standard
17042 以下のパラメータを使用することができます.
17045 \begin_layout Description
17046 \begin_inset Flex Code
17049 \begin_layout Plain Layout
17056 \begin_inset Flex Code
17059 \begin_layout Plain Layout
17065 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17068 \begin_layout Description
17069 \begin_inset Flex Code
17072 \begin_layout Plain Layout
17073 LabelString [文字列=""]
17078 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17079 \begin_inset Flex Code
17082 \begin_layout Plain Layout
17083 LabelStringAppendix
17088 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17092 \begin_layout Itemize
17093 \begin_inset Flex Code
17096 \begin_layout Plain Layout
17105 \begin_inset Flex Code
17108 \begin_layout Plain Layout
17115 \begin_inset Flex Code
17118 \begin_layout Plain Layout
17125 \begin_inset Newline linebreak
17129 \begin_inset Flex Code
17132 \begin_layout Plain Layout
17133 LabelStringAppendix
17141 \begin_layout Itemize
17142 カウンタ値は,\SpecialChar LaTeX
17144 \begin_inset Flex Code
17147 \begin_layout Plain Layout
17163 を用いて表現することができます.ここで
17164 \begin_inset Flex Code
17167 \begin_layout Plain Layout
17176 \begin_inset Flex Code
17179 \begin_layout Plain Layout
17185 :1, 2, 3,\SpecialChar ldots
17187 \begin_inset Flex Code
17190 \begin_layout Plain Layout
17196 :a, b, c, \SpecialChar ldots
17198 \begin_inset Flex Code
17201 \begin_layout Plain Layout
17207 :A, B, C, \SpecialChar ldots
17209 \begin_inset Flex Code
17212 \begin_layout Plain Layout
17218 :i, ii, iii, \SpecialChar ldots
17220 \begin_inset Flex Code
17223 \begin_layout Plain Layout
17229 :I, II, III\SpecialChar ldots
17234 \begin_layout Standard
17235 \begin_inset Flex Code
17238 \begin_layout Plain Layout
17244 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17245 \begin_inset Flex Code
17248 \begin_layout Plain Layout
17255 \begin_inset Flex Code
17258 \begin_layout Plain Layout
17265 \begin_inset Newline linebreak
17269 \begin_inset Flex Code
17272 \begin_layout Plain Layout
17283 \begin_inset Flex Code
17286 \begin_layout Plain Layout
17297 \begin_layout Description
17298 \begin_inset Flex Code
17301 \begin_layout Plain Layout
17302 LabelStringAppendix
17308 \begin_inset Flex Code
17311 \begin_layout Plain Layout
17318 \begin_inset Flex Code
17321 \begin_layout Plain Layout
17327 と同様ですが,付録で使用するためのものです.
17330 \begin_layout Description
17331 \begin_inset Flex Code
17334 \begin_layout Plain Layout
17341 \begin_inset Flex Code
17344 \begin_layout Plain Layout
17351 \begin_inset Quotes erd
17355 \begin_inset Quotes erd
17358 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17359 \begin_inset space ~
17362 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17366 \begin_layout Description
17367 \begin_inset Flex Code
17370 \begin_layout Plain Layout
17377 \begin_inset Flex Code
17380 \begin_layout Plain Layout
17387 \begin_inset Quotes erd
17391 \begin_inset Quotes erd
17394 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17395 \begin_inset Flex Code
17398 \begin_layout Plain Layout
17405 \begin_inset Flex Code
17408 \begin_layout Plain Layout
17417 \begin_layout Subsection
17419 \begin_inset CommandInset label
17421 name "subsec:フォント指定"
17428 \begin_layout Standard
17429 フォント指定は,以下のような形を取ります.
17432 \begin_layout LyX-Code
17448 \begin_layout LyX-Code
17452 \begin_layout LyX-Code
17456 \begin_layout Standard
17457 以下のコマンドを使用することができます.
17460 \begin_layout Description
17461 \begin_inset Flex Code
17464 \begin_layout Plain Layout
17471 \begin_inset Flex Code
17474 \begin_layout Plain Layout
17483 \begin_inset Flex Code
17486 \begin_layout Plain Layout
17493 \begin_inset Flex Code
17496 \begin_layout Plain Layout
17503 \begin_inset Flex Code
17506 \begin_layout Plain Layout
17513 \begin_inset Flex Code
17516 \begin_layout Plain Layout
17523 \begin_inset Flex Code
17526 \begin_layout Plain Layout
17533 \begin_inset Flex Code
17536 \begin_layout Plain Layout
17543 \begin_inset Flex Code
17546 \begin_layout Plain Layout
17553 \begin_inset Flex Code
17556 \begin_layout Plain Layout
17563 \begin_inset Flex Code
17566 \begin_layout Plain Layout
17573 \begin_inset Flex Code
17576 \begin_layout Plain Layout
17583 \begin_inset Flex Code
17586 \begin_layout Plain Layout
17593 \begin_inset Flex Code
17596 \begin_layout Plain Layout
17603 \begin_inset Flex Code
17606 \begin_layout Plain Layout
17613 \begin_inset Flex Code
17616 \begin_layout Plain Layout
17623 \begin_inset Flex Code
17626 \begin_layout Plain Layout
17633 \begin_inset Flex Code
17636 \begin_layout Plain Layout
17643 \begin_inset Flex Code
17646 \begin_layout Plain Layout
17653 \begin_inset Flex Code
17656 \begin_layout Plain Layout
17663 \begin_inset Flex Code
17666 \begin_layout Plain Layout
17675 \begin_layout Description
17676 \begin_inset Flex Code
17679 \begin_layout Plain Layout
17688 \begin_inset Flex Code
17691 \begin_layout Plain Layout
17700 \begin_inset Flex Code
17703 \begin_layout Plain Layout
17710 \begin_inset Flex Code
17713 \begin_layout Plain Layout
17722 \begin_layout Description
17723 \begin_inset Flex Code
17726 \begin_layout Plain Layout
17733 \begin_inset Flex Code
17736 \begin_layout Plain Layout
17743 \begin_inset Flex Code
17746 \begin_layout Plain Layout
17753 \begin_inset Flex Code
17756 \begin_layout Plain Layout
17763 \begin_inset Flex Code
17766 \begin_layout Plain Layout
17773 \begin_inset Flex Code
17776 \begin_layout Plain Layout
17783 \begin_inset Flex Code
17786 \begin_layout Plain Layout
17793 \begin_inset Flex Code
17796 \begin_layout Plain Layout
17803 \begin_inset Flex Code
17806 \begin_layout Plain Layout
17813 \begin_inset Flex Code
17816 \begin_layout Plain Layout
17823 \begin_inset Flex Code
17826 \begin_layout Plain Layout
17833 \begin_inset Flex Code
17836 \begin_layout Plain Layout
17843 \begin_inset Flex Code
17846 \begin_layout Plain Layout
17853 \begin_inset Flex Code
17856 \begin_layout Plain Layout
17862 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17863 \begin_inset Newline newline
17867 \begin_inset Flex Code
17870 \begin_layout Plain Layout
17877 \begin_inset Flex Code
17880 \begin_layout Plain Layout
17886 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17888 \begin_inset Flex Code
17891 \begin_layout Plain Layout
17897 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17900 \begin_layout Description
17901 \begin_inset Flex Code
17904 \begin_layout Plain Layout
17913 \begin_inset Flex Code
17916 \begin_layout Plain Layout
17925 \begin_inset Flex Code
17928 \begin_layout Plain Layout
17937 \begin_layout Description
17938 \begin_inset Flex Code
17941 \begin_layout Plain Layout
17950 \begin_inset Flex Code
17953 \begin_layout Plain Layout
17962 \begin_inset Flex Code
17965 \begin_layout Plain Layout
17972 \begin_inset Flex Code
17975 \begin_layout Plain Layout
17982 \begin_inset Flex Code
17985 \begin_layout Plain Layout
17994 \begin_layout Description
17995 \begin_inset Flex Code
17998 \begin_layout Plain Layout
18005 \begin_inset Flex Code
18008 \begin_layout Plain Layout
18015 \begin_inset Flex Code
18018 \begin_layout Plain Layout
18025 \begin_inset Flex Code
18028 \begin_layout Plain Layout
18037 \begin_inset Flex Code
18040 \begin_layout Plain Layout
18047 \begin_inset Flex Code
18050 \begin_layout Plain Layout
18057 \begin_inset Flex Code
18060 \begin_layout Plain Layout
18067 \begin_inset Flex Code
18070 \begin_layout Plain Layout
18077 \begin_inset Flex Code
18080 \begin_layout Plain Layout
18089 \begin_layout Subsection
18090 \begin_inset CommandInset label
18092 name "subsec:引用書式指定"
18099 \begin_layout Standard
18100 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18101 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18102 \begin_inset Flex Code
18105 \begin_layout Plain Layout
18111 ブロックが使用されています.このブロックは,以下のような形をしています.
18114 \begin_layout LyX-Code
18118 \begin_layout LyX-Code
18122 \begin_layout LyX-Code
18126 \begin_layout LyX-Code
18130 \begin_layout Standard
18131 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18133 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18134 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18136 \begin_inset Flex Code
18139 \begin_layout Plain Layout
18145 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18146 文書クラスにインクルードされています.
18149 \begin_layout Standard
18150 この定義は,Bib\SpecialChar TeX
18151 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18152 \begin_inset Flex Code
18155 \begin_layout Plain Layout
18162 \begin_inset Flex Code
18165 \begin_layout Plain Layout
18171 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18174 \begin_layout LyX-Code
18176 \begin_inset Quotes eld
18180 \begin_inset Quotes erd
18186 \begin_layout Standard
18187 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18190 \begin_layout Standard
18191 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18192 \begin_inset Flex Code
18195 \begin_layout Plain Layout
18197 \begin_inset space ~
18205 のように,条件付きの構成を使用することができます.これは,
18206 \begin_inset Flex Code
18209 \begin_layout Plain Layout
18216 \begin_inset space ~
18219 」とvolumeキーを出力するという意味です.また,
18220 \begin_inset Newline newline
18224 \begin_inset Flex Code
18227 \begin_layout Plain Layout
18228 {%author%[[%author%]][[%editor%, ed.]]}
18234 \begin_inset Newline newline
18237 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18238 \begin_inset Flex Code
18241 \begin_layout Plain Layout
18247 キーが存在するならば出力され,そうでなければeditorキーと「,
18248 \begin_inset space ~
18251 ed.」が出力されます.ここでもキーは,
18252 \begin_inset Flex Code
18255 \begin_layout Plain Layout
18261 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18262 \begin_inset Flex Code
18265 \begin_layout Plain Layout
18272 \begin_inset Flex Code
18275 \begin_layout Plain Layout
18281 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18284 \begin_layout Standard
18285 もう一つ,定義中で使用することのできる文法として,
18286 \begin_inset Flex Code
18289 \begin_layout Plain Layout
18295 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18296 グを出力させたくはありませんから,HTMLタグは「
18297 \begin_inset Flex Code
18300 \begin_layout Plain Layout
18307 \begin_inset Flex Code
18310 \begin_layout Plain Layout
18316 」でくるんでやらなくてはならないのです.
18319 \begin_layout Standard
18320 \begin_inset Flex Code
18323 \begin_layout Plain Layout
18329 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18332 \begin_layout LyX-Code
18334 \begin_inset Quotes eld
18338 \begin_inset Quotes erd
18344 \begin_layout Standard
18345 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18346 \begin_inset Flex Code
18349 \begin_layout Plain Layout
18355 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18357 \begin_inset Flex Code
18360 \begin_layout Plain Layout
18366 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18369 \begin_layout LyX-Code
18373 \begin_layout Standard
18374 のようなことはしないでください.\SpecialChar LyX
18375 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18378 \begin_layout Standard
18382 \begin_layout LyX-Code
18386 \begin_layout Standard
18387 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18388 \begin_inset Flex Code
18391 \begin_layout Plain Layout
18397 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18398 \begin_inset Flex Code
18401 \begin_layout Plain Layout
18407 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18410 \begin_layout Standard
18411 以下は,これらの機能を全て使った例です.
18412 \begin_inset VSpace defskip
18418 \begin_layout Standard
18422 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18425 \begin_layout Standard
18426 \begin_inset VSpace defskip
18430 \begin_inset Flex Code
18433 \begin_layout Plain Layout
18439 キーが定義されているならば,著者とコンマを出力し,
18440 \begin_inset Flex Code
18443 \begin_layout Plain Layout
18450 \begin_inset Flex Code
18453 \begin_layout Plain Layout
18459 キーが定義されているならば,編集者名の後に
18460 \begin_inset Flex Code
18463 \begin_layout Plain Layout
18469 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18470 \begin_inset Flex Code
18473 \begin_layout Plain Layout
18479 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18482 \begin_layout Section
18483 \begin_inset CommandInset label
18485 name "sec:XHTML出力のタグ"
18492 \begin_layout Standard
18494 やDocBookと同様,\SpecialChar LyX
18495 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18496 は適切な既定値を提供し,前述したように,他のレイアウト
18497 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18499 \begin_inset Flex Code
18502 \begin_layout Plain Layout
18508 宣言で提供されている情報を利用しようと試みます.
18511 \begin_layout Standard
18512 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18513 ,これが必要になる場合もあるので,\SpecialChar LyX
18514 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18517 \begin_layout Standard
18518 様式宣言や差込枠宣言の外で使用することができるタグに,
18519 \begin_inset Flex Code
18522 \begin_layout Plain Layout
18529 \begin_inset Flex Code
18532 \begin_layout Plain Layout
18538 の2つがあることに注意してください.これらの詳細については,
18539 \begin_inset CommandInset ref
18541 reference "subsec:汎用テキストクラスパラメータ"
18548 \begin_layout Subsection
18549 \begin_inset CommandInset label
18551 name "subsec:段落様式-XHTML"
18558 \begin_layout Standard
18560 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18561 \begin_inset Flex Code
18564 \begin_layout Plain Layout
18574 \begin_layout Standard
18575 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18578 \begin_layout LyX-Code
18580 \begin_inset Quotes erd
18584 \begin_inset Quotes erd
18590 \begin_layout LyX-Code
18592 \begin_inset Quotes erd
18596 \begin_inset Quotes erd
18602 \begin_layout LyX-Code
18606 \begin_layout LyX-Code
18610 \begin_layout Standard
18611 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18614 \begin_layout Standard
18615 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18618 \begin_layout LyX-Code
18620 \begin_inset Quotes erd
18624 \begin_inset Quotes erd
18630 \begin_layout LyX-Code
18632 \begin_inset Quotes erd
18636 \begin_inset Quotes erd
18640 \begin_inset Quotes erd
18644 \begin_inset Quotes erd
18647 >環境ラベル</labeltag>最初の段落.
18650 \begin_layout LyX-Code
18654 \begin_layout LyX-Code
18655 <itemtag>二つめの段落.</itemtag>
18658 \begin_layout LyX-Code
18662 \begin_layout Standard
18663 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18666 \begin_layout Standard
18667 リストに関しては,次のような形になります.
18670 \begin_layout LyX-Code
18672 \begin_inset Quotes erd
18676 \begin_inset Quotes erd
18682 \begin_layout LyX-Code
18684 \begin_inset Quotes erd
18688 \begin_inset Quotes erd
18692 \begin_inset Quotes erd
18696 \begin_inset Quotes erd
18699 >リストのラベル</labeltag>最初の項目.</itemtag>
18702 \begin_layout LyX-Code
18704 \begin_inset Quotes erd
18708 \begin_inset Quotes erd
18712 \begin_inset Quotes erd
18716 \begin_inset Quotes erd
18719 >リストのラベル</labeltag>二つめの項目.</itemtag>
18722 \begin_layout LyX-Code
18726 \begin_layout LyX-Code
18730 \begin_layout LyX-Code
18732 \begin_inset Quotes erd
18736 \begin_inset Quotes erd
18742 \begin_layout LyX-Code
18744 \begin_inset Quotes erd
18748 \begin_inset Quotes erd
18751 >リストのラベル</labeltag><itemtag attr=
18752 \begin_inset Quotes erd
18756 \begin_inset Quotes erd
18762 \begin_layout LyX-Code
18764 \begin_inset Quotes erd
18768 \begin_inset Quotes erd
18771 >リストのラベル</labeltag><itemtag attr=
18772 \begin_inset Quotes erd
18776 \begin_inset Quotes erd
18782 \begin_layout LyX-Code
18786 \begin_layout Standard
18788 \begin_inset Flex Code
18791 \begin_layout Plain Layout
18798 \begin_inset Flex Code
18801 \begin_layout Plain Layout
18807 の順序が違っていることに注意してください.どちらの順序になるかは,
18808 \begin_inset Flex Code
18811 \begin_layout Plain Layout
18818 \begin_inset Flex Code
18821 \begin_layout Plain Layout
18827 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18830 \begin_layout Standard
18831 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18833 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18837 \begin_layout Description
18838 \begin_inset Flex Code
18841 \begin_layout Plain Layout
18848 \begin_inset Flex Code
18851 \begin_layout Plain Layout
18857 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18858 \begin_inset Flex Code
18861 \begin_layout Plain Layout
18867 」のようなものです.既定においては,\SpecialChar LyX
18869 \begin_inset Flex Code
18872 \begin_layout Plain Layout
18879 \begin_inset Flex Code
18882 \begin_layout Plain Layout
18888 は,レイアウトの\SpecialChar LyX
18889 名であり,chapterのように小文字で記述します.
18892 \begin_layout Description
18893 \begin_inset Flex Code
18896 \begin_layout Plain Layout
18903 \begin_inset Flex Code
18906 \begin_layout Plain Layout
18917 \begin_inset Flex Code
18920 \begin_layout Plain Layout
18926 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
18927 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
18928 \begin_inset Flex Code
18931 \begin_layout Plain Layout
18937 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
18938 \begin_inset Flex Code
18941 \begin_layout Plain Layout
18950 \begin_layout Description
18951 \begin_inset Flex Code
18954 \begin_layout Plain Layout
18961 \begin_inset Flex Code
18964 \begin_layout Plain Layout
18970 ] 環境の段落に使用されるタグ.上記各例の
18971 \begin_inset Flex Code
18974 \begin_layout Plain Layout
18981 \begin_inset Flex Code
18984 \begin_layout Plain Layout
18993 \begin_layout Description
18994 \begin_inset Flex Code
18997 \begin_layout Plain Layout
19004 \begin_inset Flex Code
19007 \begin_layout Plain Layout
19014 \begin_inset Flex Code
19017 \begin_layout Plain Layout
19018 class=`レイアウト名_item'
19028 \begin_inset Flex Code
19031 \begin_layout Plain Layout
19040 \begin_layout Description
19041 \begin_inset Flex Code
19044 \begin_layout Plain Layout
19051 \begin_inset Flex Code
19054 \begin_layout Plain Layout
19060 ] 段落と項目ラベルに使用されるタグ.上記各例の
19061 \begin_inset Flex Code
19064 \begin_layout Plain Layout
19071 \begin_inset Flex Code
19074 \begin_layout Plain Layout
19081 \begin_inset Flex Code
19084 \begin_layout Plain Layout
19091 \begin_inset Flex Code
19094 \begin_layout Plain Layout
19095 Centered_Top_Environment
19101 \begin_inset Flex Code
19104 \begin_layout Plain Layout
19111 \begin_inset Flex Code
19114 \begin_layout Plain Layout
19123 \begin_layout Description
19124 \begin_inset Flex Code
19127 \begin_layout Plain Layout
19134 \begin_inset Flex Code
19137 \begin_layout Plain Layout
19144 \begin_inset Flex Code
19147 \begin_layout Plain Layout
19148 class=`レイアウト名_label'
19158 \begin_inset Flex Code
19161 \begin_layout Plain Layout
19170 \begin_layout Description
19171 \begin_inset Flex Code
19174 \begin_layout Plain Layout
19181 \begin_inset Flex Code
19184 \begin_layout Plain Layout
19194 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19196 \begin_inset Flex Code
19199 \begin_layout Plain Layout
19200 `<dt>\SpecialChar ldots
19201 </dt><dd>\SpecialChar ldots
19207 という形を得るために使用されます.既定値は
19208 \begin_inset Flex Code
19211 \begin_layout Plain Layout
19217 で,labelタグはitemタグの中に出力されます.
19220 \begin_layout Description
19221 \begin_inset Flex Code
19224 \begin_layout Plain Layout
19231 \begin_inset Flex Code
19234 \begin_layout Plain Layout
19240 セクションに出力される情報.これは,たとえば,
19241 \begin_inset Flex Code
19244 \begin_layout Plain Layout
19251 \begin_inset Flex Code
19254 \begin_layout Plain Layout
19260 ブロックをインクルードするのに使用することができます.
19263 \begin_layout Description
19264 \begin_inset Flex Code
19267 \begin_layout Plain Layout
19273 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19274 \begin_inset Flex Code
19277 \begin_layout Plain Layout
19283 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19284 \begin_inset Flex Code
19287 \begin_layout Plain Layout
19296 \begin_layout Description
19297 \begin_inset Flex Code
19300 \begin_layout Plain Layout
19307 \begin_inset Flex Code
19310 \begin_layout Plain Layout
19316 ] 主幹ラベルに使用されるタグ.上記各例の
19317 \begin_inset Flex Code
19320 \begin_layout Plain Layout
19327 \begin_inset Flex Code
19330 \begin_layout Plain Layout
19339 \begin_layout Description
19340 \begin_inset Flex Code
19343 \begin_layout Plain Layout
19350 \begin_inset Flex Code
19353 \begin_layout Plain Layout
19364 \begin_inset Flex Code
19367 \begin_layout Plain Layout
19373 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19374 \begin_inset Flex Code
19377 \begin_layout Plain Layout
19384 \begin_inset Flex Code
19387 \begin_layout Plain Layout
19396 \begin_layout Subsection
19400 \begin_layout Standard
19401 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19405 \begin_layout Plain Layout
19406 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19412 .ここでも,\SpecialChar LyX
19413 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19416 \begin_layout Standard
19418 が差込枠用に出力するXHTMLは,以下の形を取ります.
19421 \begin_layout LyX-Code
19423 \begin_inset Quotes erd
19427 \begin_inset Quotes erd
19433 \begin_layout LyX-Code
19434 <labeltag>ラベル</labeltag>
19437 \begin_layout LyX-Code
19439 \begin_inset Quotes erd
19443 \begin_inset Quotes erd
19446 >差込枠の内容.</innertag>
19449 \begin_layout LyX-Code
19453 \begin_layout Standard
19455 \begin_inset Flex Code
19458 \begin_layout Plain Layout
19464 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19465 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19466 \begin_inset Flex Code
19469 \begin_layout Plain Layout
19475 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19479 \begin_layout Description
19480 \begin_inset Flex Code
19483 \begin_layout Plain Layout
19490 \begin_inset Flex Code
19493 \begin_layout Plain Layout
19499 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19500 \begin_inset Flex Code
19503 \begin_layout Plain Layout
19504 class=`myinset' onclick=`\SpecialChar ldots
19510 」のようなものです.既定においては,\SpecialChar LyX
19512 \begin_inset Flex Code
19515 \begin_layout Plain Layout
19522 \begin_inset Flex Code
19525 \begin_layout Plain Layout
19531 は,差込枠の\SpecialChar LyX
19532 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19535 \begin_layout Description
19536 \begin_inset Flex Code
19539 \begin_layout Plain Layout
19546 \begin_inset Flex Code
19549 \begin_layout Plain Layout
19560 \begin_inset Flex Code
19563 \begin_layout Plain Layout
19569 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19570 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19571 \begin_inset Flex Code
19574 \begin_layout Plain Layout
19580 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19581 \begin_inset Flex Code
19584 \begin_layout Plain Layout
19593 \begin_layout Description
19594 \begin_inset Flex Code
19597 \begin_layout Plain Layout
19604 \begin_inset Flex Code
19607 \begin_layout Plain Layout
19614 \begin_inset Flex Code
19617 \begin_layout Plain Layout
19626 \begin_layout Description
19627 \begin_inset Flex Code
19630 \begin_layout Plain Layout
19637 \begin_inset Flex Code
19640 \begin_layout Plain Layout
19647 \begin_inset Flex Code
19650 \begin_layout Plain Layout
19659 \begin_layout Description
19660 \begin_inset Flex Code
19663 \begin_layout Plain Layout
19670 \begin_inset Flex Code
19673 \begin_layout Plain Layout
19681 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19684 \begin_layout Description
19685 \begin_inset Flex Code
19688 \begin_layout Plain Layout
19695 \begin_inset Flex Code
19698 \begin_layout Plain Layout
19704 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19705 \begin_inset Flex Code
19708 \begin_layout Plain Layout
19716 など.これは非必須であり,既定値はありません.
19719 \begin_layout Description
19720 \begin_inset Flex Code
19723 \begin_layout Plain Layout
19730 \begin_inset Flex Code
19733 \begin_layout Plain Layout
19739 セクションに出力される情報.これは,たとえば,
19740 \begin_inset Flex Code
19743 \begin_layout Plain Layout
19750 \begin_inset Flex Code
19753 \begin_layout Plain Layout
19759 ブロックをインクルードするのに使用することができます.
19762 \begin_layout Description
19763 \begin_inset Flex Code
19766 \begin_layout Plain Layout
19772 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19773 \begin_inset Flex Code
19776 \begin_layout Plain Layout
19782 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19785 \begin_layout Description
19786 \begin_inset Flex Code
19789 \begin_layout Plain Layout
19796 \begin_inset Flex Code
19799 \begin_layout Plain Layout
19805 ] 主幹ラベルに使用されるタグ.上記各例の
19806 \begin_inset Flex Code
19809 \begin_layout Plain Layout
19816 \begin_inset Flex Code
19819 \begin_layout Plain Layout
19826 \begin_inset Flex Code
19829 \begin_layout Plain Layout
19836 \begin_inset Flex Code
19839 \begin_layout Plain Layout
19846 \begin_inset Flex Code
19849 \begin_layout Plain Layout
19858 \begin_layout Subsection
19862 \begin_layout Standard
19863 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19866 \begin_layout LyX-Code
19868 \begin_inset Quotes erd
19872 \begin_inset Quotes erd
19878 \begin_layout LyX-Code
19882 \begin_layout LyX-Code
19886 \begin_layout Standard
19887 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19891 \begin_layout Description
19892 \begin_inset Flex Code
19895 \begin_layout Plain Layout
19902 \begin_inset Flex Code
19905 \begin_layout Plain Layout
19911 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19912 \begin_inset Flex Code
19915 \begin_layout Plain Layout
19916 class=`myfloat' onclick=`\SpecialChar ldots
19922 」のようなものです.既定においては,\SpecialChar LyX
19924 \begin_inset Flex Code
19927 \begin_layout Plain Layout
19928 class=`float フロート-フロート型'
19934 \begin_inset Flex Code
19937 \begin_layout Plain Layout
19944 \begin_inset CommandInset ref
19946 reference "subsec:フロート"
19950 参照),この型のフロートの\SpecialChar LyX
19951 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
19954 \begin_layout Description
19955 \begin_inset Flex Code
19958 \begin_layout Plain Layout
19964 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19965 \begin_inset Flex Code
19968 \begin_layout Plain Layout
19974 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19977 \begin_layout Description
19978 \begin_inset Flex Code
19981 \begin_layout Plain Layout
19988 \begin_inset Flex Code
19991 \begin_layout Plain Layout
19997 ] このフロートに使用されるタグ.上記各例の
19998 \begin_inset Flex Code
20001 \begin_layout Plain Layout
20008 \begin_inset Flex Code
20011 \begin_layout Plain Layout
20017 であり,ほとんどの場合変更する必要はありません.
20020 \begin_layout Subsection
20024 \begin_layout Standard
20026 \begin_inset Flex Code
20029 \begin_layout Plain Layout
20035 ブロックを使用して整形することができます.詳細については,
20036 \begin_inset CommandInset ref
20038 reference "subsec:引用書式指定"
20045 \begin_layout Subsection
20050 \begin_layout Standard
20052 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20054 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20057 \begin_layout Standard
20060 \begin_inset Flex Code
20063 \begin_layout Plain Layout
20070 \begin_inset Flex Code
20073 \begin_layout Plain Layout
20080 \begin_inset Flex Code
20083 \begin_layout Plain Layout
20090 \begin_inset Flex Code
20093 \begin_layout Plain Layout
20100 \begin_inset Flex Code
20103 \begin_layout Plain Layout
20109 を利用して,フォント情報についてのみCSSを自動生成します(
20110 \begin_inset CommandInset ref
20112 reference "subsec:フォント指定"
20116 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20117 \begin_inset Flex Code
20120 \begin_layout Plain Layout
20127 \begin_inset Flex Code
20130 \begin_layout Plain Layout
20131 font-family: sans-serif
20136 」になります.\SpecialChar LyX
20137 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20138 \begin_inset Flex URL
20141 \begin_layout Plain Layout
20149 \begin_inset Flex Code
20152 \begin_layout Plain Layout
20161 \begin_layout Chapter
20163 \begin_inset CommandInset label
20165 name "chap:外部素材を取り込む"
20172 \begin_layout Standard
20173 \begin_inset Box Shadowbox
20183 height_special "totalheight"
20188 backgroundcolor "none"
20191 \begin_layout Plain Layout
20192 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20200 \begin_layout Standard
20202 外部のソースから素材を使用する方法は,取扱説明書『
20206 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20209 \begin_layout Section
20213 \begin_layout Standard
20214 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20215 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20217 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20218 \begin_inset Flex MenuItem
20221 \begin_layout Plain Layout
20222 挿入\SpecialChar menuseparator
20223 ファイル\SpecialChar menuseparator
20229 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20230 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20231 の後の版に取り込むことができるようにしてくださることを希望します.
20234 \begin_layout Standard
20235 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20237 \begin_inset Flex Code
20240 \begin_layout Plain Layout
20246 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20247 \begin_inset Flex Code
20250 \begin_layout Plain Layout
20256 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20257 \begin_inset Flex Code
20260 \begin_layout Plain Layout
20266 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20267 ファイルにそのままインクルードできるように,
20268 \begin_inset Flex Code
20271 \begin_layout Plain Layout
20277 を呼び出してPostScriptファイルを生成します.この場合には,
20278 \begin_inset Flex Code
20281 \begin_layout Plain Layout
20287 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20290 \begin_layout Standard
20291 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20292 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20293 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20296 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20299 \begin_layout Standard
20301 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20302 の場合には,\SpecialChar LyX
20303 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20304 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20305 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20309 \begin_layout Section
20313 \begin_layout Standard
20315 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20316 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20317 \begin_inset CommandInset ref
20319 reference "sec:セキュリティに関する論点"
20323 のセキュリティに関する議論を読んでおいてください.
20326 \begin_layout Standard
20327 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20330 \begin_layout Standard
20332 \begin_inset Flex Code
20335 \begin_layout Plain Layout
20336 LyXDir/lib/external_templates
20341 ファイルで定義されています.自分用の版を
20342 \begin_inset Flex Code
20345 \begin_layout Plain Layout
20346 UserDir/external_templates
20354 \begin_layout Standard
20355 典型的なひな型は以下のようになります.
20358 \begin_layout LyX-Code
20362 \begin_layout LyX-Code
20363 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20366 \begin_layout LyX-Code
20370 \begin_layout LyX-Code
20374 \begin_layout LyX-Code
20378 \begin_layout LyX-Code
20382 \begin_layout LyX-Code
20386 \begin_layout LyX-Code
20387 AutomaticProduction true
20390 \begin_layout LyX-Code
20394 \begin_layout LyX-Code
20398 \begin_layout LyX-Code
20402 \begin_layout LyX-Code
20403 TransformCommand Rotate RotationLatexCommand
20406 \begin_layout LyX-Code
20407 TransformCommand Resize ResizeLatexCommand
20410 \begin_layout LyX-Code
20411 Product "$$RotateFront$$ResizeFront
20414 \begin_layout LyX-Code
20419 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20422 \begin_layout LyX-Code
20423 $$ResizeBack$$RotateBack"
20426 \begin_layout LyX-Code
20430 \begin_layout LyX-Code
20431 UpdateResult "$$AbsPath$$Basename.pstex_t"
20434 \begin_layout LyX-Code
20435 Requirement "graphicx"
20438 \begin_layout LyX-Code
20439 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20442 \begin_layout LyX-Code
20443 ReferencedFile latex "$$AbsPath$$Basename.eps"
20446 \begin_layout LyX-Code
20447 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20450 \begin_layout LyX-Code
20454 \begin_layout LyX-Code
20458 \begin_layout LyX-Code
20459 TransformCommand Rotate RotationLatexCommand
20462 \begin_layout LyX-Code
20463 TransformCommand Resize ResizeLatexCommand
20466 \begin_layout LyX-Code
20467 Product "$$RotateFront$$ResizeFront
20470 \begin_layout LyX-Code
20475 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20478 \begin_layout LyX-Code
20479 $$ResizeBack$$RotateBack"
20482 \begin_layout LyX-Code
20483 UpdateFormat pdftex
20486 \begin_layout LyX-Code
20487 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20490 \begin_layout LyX-Code
20491 Requirement "graphicx"
20494 \begin_layout LyX-Code
20495 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20498 \begin_layout LyX-Code
20499 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20502 \begin_layout LyX-Code
20506 \begin_layout LyX-Code
20510 \begin_layout LyX-Code
20511 Product "$$Contents(
20513 "$$AbsPath$$Basename.asc
20518 \begin_layout LyX-Code
20519 UpdateFormat asciixfig
20522 \begin_layout LyX-Code
20523 UpdateResult "$$AbsPath$$Basename.asc"
20526 \begin_layout LyX-Code
20530 \begin_layout LyX-Code
20534 \begin_layout LyX-Code
20535 Product "<graphic fileref=
20537 "$$AbsOrRelPathMaster$$Basename.eps
20542 \begin_layout LyX-Code
20546 \begin_layout LyX-Code
20550 \begin_layout LyX-Code
20551 UpdateResult "$$AbsPath$$Basename.eps"
20554 \begin_layout LyX-Code
20555 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20558 \begin_layout LyX-Code
20559 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20562 \begin_layout LyX-Code
20566 \begin_layout LyX-Code
20567 Product "[XFig: $$FName]"
20570 \begin_layout LyX-Code
20574 \begin_layout LyX-Code
20578 \begin_layout Standard
20580 \begin_inset Flex Code
20583 \begin_layout Plain Layout
20591 \begin_inset Flex Code
20594 \begin_layout Plain Layout
20600 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20601 \begin_inset Flex Code
20604 \begin_layout Plain Layout
20612 \begin_inset Flex Code
20615 \begin_layout Plain Layout
20624 \begin_layout Subsection
20628 \begin_layout Description
20629 \begin_inset Flex Code
20632 \begin_layout Plain Layout
20633 AutomaticProduction
20634 \begin_inset space ~
20642 このひな型で扱うファイルを\SpecialChar LyX
20643 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20646 \begin_layout Description
20647 \begin_inset Flex Code
20650 \begin_layout Plain Layout
20652 \begin_inset space ~
20660 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20661 \begin_inset Flex Code
20664 \begin_layout Plain Layout
20671 \begin_inset Flex Code
20674 \begin_layout Plain Layout
20681 \begin_inset Flex Code
20684 \begin_layout Plain Layout
20690 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20693 \begin_layout Description
20694 \begin_inset Flex Code
20697 \begin_layout Plain Layout
20699 \begin_inset space ~
20707 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20710 \begin_layout Description
20711 \begin_inset Flex Code
20714 \begin_layout Plain Layout
20716 \begin_inset space ~
20720 \begin_inset space ~
20728 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20732 \begin_layout Description
20733 \begin_inset Flex Code
20736 \begin_layout Plain Layout
20738 \begin_inset space ~
20746 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20747 が知っている書式名でなくてはなりません(
20748 \begin_inset CommandInset ref
20750 reference "sec:ファイル形式"
20754 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20755 \begin_inset Flex Code
20758 \begin_layout Plain Layout
20764 」を使用してください.この場合,\SpecialChar LyX
20765 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20768 \begin_layout Description
20769 \begin_inset Flex Code
20772 \begin_layout Plain Layout
20774 \begin_inset space ~
20782 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20785 \begin_layout Description
20786 \begin_inset Flex Code
20789 \begin_layout Plain Layout
20791 \begin_inset space ~
20794 Rotate|Resize|Clip|Extra
20799 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20800 ログ中の対応するタブを使用可能にします.
20801 \begin_inset Flex Code
20804 \begin_layout Plain Layout
20811 \begin_inset Flex Code
20814 \begin_layout Plain Layout
20821 \begin_inset Flex Code
20824 \begin_layout Plain Layout
20831 \begin_inset Flex Code
20834 \begin_layout Plain Layout
20840 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20843 \begin_layout Subsection
20844 \begin_inset Flex Code
20847 \begin_layout Plain Layout
20856 \begin_layout Description
20857 \begin_inset Flex Code
20860 \begin_layout Plain Layout
20862 \begin_inset space ~
20865 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
20870 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20871 \begin_inset Flex Code
20874 \begin_layout Plain Layout
20880 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20884 \begin_layout Description
20885 \begin_inset Flex Code
20888 \begin_layout Plain Layout
20890 \begin_inset space ~
20894 \begin_inset space ~
20903 \begin_inset Flex Code
20906 \begin_layout Plain Layout
20913 \begin_inset Flex Code
20916 \begin_layout Plain Layout
20923 \begin_inset Flex Code
20926 \begin_layout Plain Layout
20932 自体にも代入マクロを使うことができます.
20933 \begin_inset Flex Code
20936 \begin_layout Plain Layout
20943 \begin_inset Flex Code
20946 \begin_layout Plain Layout
20953 \begin_inset Flex Code
20956 \begin_layout Plain Layout
20962 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
20965 \begin_layout Description
20966 \begin_inset Flex Code
20969 \begin_layout Plain Layout
20971 \begin_inset space ~
20979 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
20983 \begin_layout Description
20984 \begin_inset Flex Code
20987 \begin_layout Plain Layout
20989 \begin_inset space ~
20997 このコマンドは,\SpecialChar LaTeX
20998 プリアンブルに入れるプリアンブル片を指定します.これは
20999 \begin_inset Flex Code
21002 \begin_layout Plain Layout
21010 \begin_inset Flex Code
21013 \begin_layout Plain Layout
21019 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21022 \begin_layout Description
21023 \begin_inset Flex Code
21026 \begin_layout Plain Layout
21028 \begin_inset space ~
21032 \begin_inset space ~
21040 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21041 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21044 \begin_layout Description
21045 \begin_inset Flex Code
21048 \begin_layout Plain Layout
21050 \begin_inset space ~
21058 必要とされる\SpecialChar LaTeX
21059 パッケージ名.パッケージは,\SpecialChar LaTeX
21061 \begin_inset Flex Code
21064 \begin_layout Plain Layout
21072 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21075 \begin_layout Description
21076 \begin_inset Flex Code
21079 \begin_layout Plain Layout
21081 \begin_inset space ~
21085 \begin_inset space ~
21088 RotationLatexCommand
21093 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21094 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21097 \begin_layout Description
21098 \begin_inset Flex Code
21101 \begin_layout Plain Layout
21103 \begin_inset space ~
21107 \begin_inset space ~
21115 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21116 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21119 \begin_layout Description
21120 \begin_inset Flex Code
21123 \begin_layout Plain Layout
21125 \begin_inset space ~
21129 \begin_inset space ~
21132 RotationLatexOption
21137 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21140 \begin_layout Description
21141 \begin_inset Flex Code
21144 \begin_layout Plain Layout
21146 \begin_inset space ~
21150 \begin_inset space ~
21158 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21161 \begin_layout Description
21162 \begin_inset Flex Code
21165 \begin_layout Plain Layout
21167 \begin_inset space ~
21171 \begin_inset space ~
21179 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21182 \begin_layout Description
21183 \begin_inset Flex Code
21186 \begin_layout Plain Layout
21188 \begin_inset space ~
21192 \begin_inset space ~
21200 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21203 \begin_layout Description
21204 \begin_inset Flex Code
21207 \begin_layout Plain Layout
21209 \begin_inset space ~
21217 変換されたファイルのファイル形式.これは,\SpecialChar LyX
21218 が知っている書式名でなくてはなりません(
21219 \begin_inset Flex MenuItem
21222 \begin_layout Plain Layout
21223 ツール\SpecialChar menuseparator
21224 設定\SpecialChar menuseparator
21225 ファイル処理\SpecialChar menuseparator
21231 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21232 \begin_inset Flex Code
21235 \begin_layout Plain Layout
21241 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21244 \begin_layout Description
21245 \begin_inset Flex Code
21248 \begin_layout Plain Layout
21250 \begin_inset space ~
21258 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21261 \begin_layout Subsection
21265 \begin_layout Standard
21267 \begin_inset Flex Code
21270 \begin_layout Plain Layout
21278 \begin_inset Flex Code
21281 \begin_layout Plain Layout
21287 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21288 \begin_inset Flex Code
21291 \begin_layout Plain Layout
21300 \begin_layout Section
21304 \begin_layout Standard
21305 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21306 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21309 \begin_layout Standard
21310 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21313 \begin_layout Standard
21317 \begin_layout Description
21318 \begin_inset Flex Code
21321 \begin_layout Plain Layout
21322 $$AbsOrRelPathMaster
21328 親文書への絶対ファイルパスないしは相対ファイルパス
21331 \begin_layout Description
21332 \begin_inset Flex Code
21335 \begin_layout Plain Layout
21336 $$AbsOrRelPathParent
21342 文書への絶対ファイルパスないしは相対ファイルパス
21345 \begin_layout Description
21346 \begin_inset Flex Code
21349 \begin_layout Plain Layout
21358 \begin_layout Description
21359 \begin_inset Flex Code
21362 \begin_layout Plain Layout
21371 \begin_layout Description
21372 \begin_inset Flex Code
21375 \begin_layout Plain Layout
21377 \begin_inset Quotes eld
21381 \begin_inset Quotes erd
21390 \begin_inset Flex Code
21393 \begin_layout Plain Layout
21399 と云う名のファイルの中身を展開します.
21402 \begin_layout Description
21403 \begin_inset Flex Code
21406 \begin_layout Plain Layout
21415 \begin_layout Description
21416 \begin_inset Flex Code
21419 \begin_layout Plain Layout
21425 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21426 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21427 出力形式に対してこのマクロを使用します.
21430 \begin_layout Description
21431 \begin_inset Flex Code
21434 \begin_layout Plain Layout
21440 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21441 文書への絶対パスでも良いですし,相対パスでも構いません.
21444 \begin_layout Description
21445 \begin_inset Flex Code
21448 \begin_layout Plain Layout
21455 \begin_inset Flex Code
21458 \begin_layout Plain Layout
21464 のパス部分(\SpecialChar LyX
21468 \begin_layout Description
21469 \begin_inset Flex Code
21472 \begin_layout Plain Layout
21482 \begin_layout Description
21483 \begin_inset Flex Code
21486 \begin_layout Plain Layout
21496 \begin_layout Description
21497 \begin_inset Flex Code
21500 \begin_layout Plain Layout
21506 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21507 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21510 \begin_layout Description
21511 \begin_inset Flex Code
21514 \begin_layout Plain Layout
21520 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21523 \begin_layout Standard
21524 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
21525 \begin_inset Flex Code
21528 \begin_layout Plain Layout
21529 $$AbsPath$$Basename$$Extension
21537 \begin_layout Standard
21538 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21539 \begin_inset Flex Code
21542 \begin_layout Plain Layout
21549 \begin_inset Flex Code
21552 \begin_layout Plain Layout
21559 \begin_inset Flex Code
21562 \begin_layout Plain Layout
21568 コマンドは,これらに加えて以下の代入もサポートします.
21571 \begin_layout Description
21572 \begin_inset Flex Code
21575 \begin_layout Plain Layout
21584 \begin_layout Description
21585 \begin_inset Flex Code
21588 \begin_layout Plain Layout
21597 \begin_layout Description
21598 \begin_inset Flex Code
21601 \begin_layout Plain Layout
21610 \begin_layout Description
21611 \begin_inset Flex Code
21614 \begin_layout Plain Layout
21623 \begin_layout Standard
21624 \begin_inset Flex Code
21627 \begin_layout Plain Layout
21634 \begin_inset Flex Code
21637 \begin_layout Plain Layout
21644 \begin_inset Flex Code
21647 \begin_layout Plain Layout
21653 コマンドが有効にされていれば,以下の代入もサポートされます.
21656 \begin_layout Description
21657 \begin_inset Flex Code
21660 \begin_layout Plain Layout
21669 \begin_layout Description
21670 \begin_inset Flex Code
21673 \begin_layout Plain Layout
21682 \begin_layout Description
21683 \begin_inset Flex Code
21686 \begin_layout Plain Layout
21695 \begin_layout Description
21696 \begin_inset Flex Code
21699 \begin_layout Plain Layout
21708 \begin_layout Standard
21709 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21712 \begin_layout Enumerate
21713 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21714 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21717 \begin_layout Enumerate
21719 は,相対ファイル名に関して,\SpecialChar LyX
21720 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21721 にとって相対ファイル名とは,常にこのファイル名が書か
21722 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21723 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21724 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21725 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21726 を選びさえすれば,これは\SpecialChar LyX
21730 \begin_layout Standard
21731 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21734 \begin_layout Itemize
21736 \begin_inset Flex Code
21739 \begin_layout Plain Layout
21748 \begin_layout Itemize
21749 代入された文字列が,\SpecialChar LaTeX
21751 \begin_inset Flex Code
21754 \begin_layout Plain Layout
21755 $$AbsOrRelPathMaster
21763 \begin_layout Itemize
21764 それ以外ならば,ユーザの選択を尊重するために
21765 \begin_inset Flex Code
21768 \begin_layout Plain Layout
21769 $$AbsOrRelPathParent
21777 \begin_layout Standard
21778 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21779 \begin_inset Flex Code
21782 \begin_layout Plain Layout
21783 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21789 \begin_inset Flex Code
21792 \begin_layout Plain Layout
21798 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21801 \begin_layout Section
21803 \begin_inset CommandInset label
21805 name "sec:セキュリティに関する論点"
21812 \begin_layout Standard
21813 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21814 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21815 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21818 \begin_layout Standard
21819 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21820 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21822 \begin_inset Flex Code
21825 \begin_layout Plain Layout
21832 \begin_inset Flex Code
21835 \begin_layout Plain Layout
21841 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21844 \begin_layout Standard
21845 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21846 できません.これは,\SpecialChar LyX
21847 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21848 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21851 \begin_layout Standard
21852 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21853 うになるため,一般的には,統御下に置いた状態で
21854 \begin_inset Flex Code
21857 \begin_layout Plain Layout
21863 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21864 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21868 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21869 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21870 には,安全でないひな型は決して入っていません
21874 \begin_layout Standard
21875 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21876 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21877 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21878 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21879 使用する前に,行うようにしてください.
21882 \begin_layout Chapter
21884 サポートされているレイアウト用\SpecialChar LyX
21886 \begin_inset CommandInset label
21895 \begin_layout Standard
21897 \begin_inset Tabular
21898 <lyxtabular version="3" rows="11" columns="8">
21899 <features tabularvalignment="middle">
21900 <column alignment="left" valignment="top">
21901 <column alignment="left" valignment="top">
21902 <column alignment="left" valignment="top">
21903 <column alignment="left" valignment="top">
21904 <column alignment="left" valignment="top">
21905 <column alignment="left" valignment="top">
21906 <column alignment="left" valignment="top">
21907 <column alignment="left" valignment="top">
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="left" 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
21972 <cell alignment="center" valignment="top" usebox="none">
21975 \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="left" 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
22046 <cell alignment="center" valignment="top" usebox="none">
22049 \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="left" 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
22120 <cell alignment="center" valignment="top" usebox="none">
22123 \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="left" 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
22194 <cell alignment="center" valignment="top" usebox="none">
22197 \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="left" 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
22268 <cell alignment="center" valignment="top" usebox="none">
22271 \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="left" 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
22342 <cell alignment="center" valignment="top" usebox="none">
22345 \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="left" 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
22416 <cell alignment="center" valignment="top" usebox="none">
22419 \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="left" 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
22490 <cell alignment="center" valignment="top" usebox="none">
22493 \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="left" 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
22564 <cell alignment="center" valignment="top" usebox="none">
22567 \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="left" 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
22638 <cell alignment="center" valignment="top" usebox="none">
22641 \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
22712 <cell alignment="center" valignment="top" usebox="none">
22715 \begin_layout Plain Layout
22729 \begin_layout Chapter
22731 \begin_inset CommandInset label
22740 \begin_layout Standard
22741 ここに列挙されている色は標準色であり,\SpecialChar LyX
22745 \begin_layout Description
22750 特定の色ではありません – 透明か既定色です
22753 \begin_layout Description
22757 \begin_layout Description
22761 \begin_layout Description
22765 \begin_layout Description
22769 \begin_layout Description
22773 \begin_layout Description
22777 \begin_layout Description
22781 \begin_layout Description
22785 \begin_layout Description
22789 \begin_layout Description
22793 \begin_layout Description
22797 \begin_layout Description
22801 \begin_layout Description
22805 \begin_layout Description
22806 branchlabel 派生枝ラベル色
22809 \begin_layout Description
22813 \begin_layout Description
22814 buttonhoverbg フォーカスを得ているボタンの背景色
22817 \begin_layout Description
22821 \begin_layout Description
22825 \begin_layout Description
22826 changedtextauthor1 変更された文章:第1著者の色
22829 \begin_layout Description
22830 changedtextauthor2 変更された文章:第2著者の色
22833 \begin_layout Description
22834 changedtextauthor3 変更された文章:第3著者の色
22837 \begin_layout Description
22838 changedtextauthor4 変更された文章:第4著者の色
22841 \begin_layout Description
22842 changedtextauthor5 変更された文章:第5著者の色
22845 \begin_layout Description
22846 collapsable_inset_frame 畳み込み可能枠の縁色
22849 \begin_layout Description
22850 collapsable_inset_text 畳み込み可能枠の文字色
22853 \begin_layout Description
22854 command コマンド差込枠の文字色
22857 \begin_layout Description
22858 commandbg コマンド差込枠の背景色
22861 \begin_layout Description
22862 commandframe コマンド差込枠の縁色
22865 \begin_layout Description
22869 \begin_layout Description
22873 \begin_layout Description
22877 \begin_layout Description
22878 deletedtext 削除された文章の色
22881 \begin_layout Description
22882 deletedtextmodifier 削除された文章の修飾子の色
22885 \begin_layout Description
22886 depthbar 余白部の階層表示線の色
22889 \begin_layout Description
22893 \begin_layout Description
22894 error \SpecialChar LaTeX
22898 \begin_layout Description
22902 \begin_layout Description
22903 graphicsbg 画像差込枠の背景色
22906 \begin_layout Description
22907 greyedout 淡色表示差込枠のラベル色
22910 \begin_layout Description
22911 greyedoutbg 淡色表示差込枠の背景色
22914 \begin_layout Description
22915 greyedouttext 淡色表示差込枠の文字色
22918 \begin_layout Description
22919 indexlabel 索引差込枠のラベル色
22922 \begin_layout Description
22926 \begin_layout Description
22930 \begin_layout Description
22931 inlinecompletion 行内補完色
22934 \begin_layout Description
22938 \begin_layout Description
22942 \begin_layout Description
22943 language 外国語の単語を標識するための色
22946 \begin_layout Description
22947 latex \SpecialChar LaTeX
22951 \begin_layout Description
22952 listingsbg プログラムリスト差込枠の背景色
22955 \begin_layout Description
22956 marginlabel 傍註のラベル色
22959 \begin_layout Description
22963 \begin_layout Description
22967 \begin_layout Description
22968 mathcorners フォーカスを得ていない数式差込枠の縁色
22971 \begin_layout Description
22972 mathframe フォーカスを得ている数式差込枠の縁色
22975 \begin_layout Description
22979 \begin_layout Description
22980 mathmacrobg 数式マクロ差込枠の背景色
22983 \begin_layout Description
22984 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22987 \begin_layout Description
22988 mathmacroframe 数式マクロ差込枠の縁色
22991 \begin_layout Description
22992 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22995 \begin_layout Description
22996 mathmacrolabel 数式マクロ差込枠のラベル色
22999 \begin_layout Description
23000 mathmacronewarg 数式マクロ新パラメーターのひな型色
23003 \begin_layout Description
23004 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23007 \begin_layout Description
23011 \begin_layout Description
23012 nonunique_inlinecompletion 行内補完の一意でない部分の色
23015 \begin_layout Description
23019 \begin_layout Description
23023 \begin_layout Description
23027 \begin_layout Description
23028 paragraphmarker 段落末を標識するための段落標の色
23031 \begin_layout Description
23032 phantomtext 埋め草差込枠の文字色
23035 \begin_layout Description
23036 preview プレビューに用いられる色
23039 \begin_layout Description
23040 previewframe プレビュー縁色
23043 \begin_layout Description
23044 regexpframe 正規表現枠の色
23047 \begin_layout Description
23048 selection 文章選択部の背景色
23051 \begin_layout Description
23052 selectiontext 文章選択部の前景色
23055 \begin_layout Description
23056 shadedbg 影付きボックスの背景色
23059 \begin_layout Description
23063 \begin_layout Description
23067 \begin_layout Description
23068 tabularonoffline 罫線色
23071 \begin_layout Description
23072 urllabel URL差込枠のラベル色
23075 \begin_layout Description