1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
36 \maintain_unincluded_children false
39 InsetLayout Flex:MenuItem
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
58 #\renewcommand{\code}[1]{{\sffamily #1}}
67 Decoration Conglomerate
71 Decoration Conglomerate
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
89 \language_package default
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
103 \default_output_format pdf3
105 \bibtex_command default
106 \index_command default
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
137 \cite_engine_type default
141 \paperorientation portrait
145 \notefontcolor #0000ff
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
175 \begin_inset Newline newline
187 \begin_layout Plain Layout
189 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
191 \begin_inset CommandInset href
193 target "lyx-docs@lists.lyx.org"
198 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください.
205 \begin_inset Newline newline
209 \begin_inset Newline newline
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
222 \begin_inset Note Note
225 \begin_layout Plain Layout
226 本文書を修正する際には,変更追跡機能を使用してください.これによって,
229 \begin_layout Plain Layout
231 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
239 \begin_layout Chapter
243 \begin_layout Standard
244 この取扱説明書は,\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います.ここでは,
246 \begin_inset Flex Ruby
249 \begin_layout Plain Layout
251 \begin_inset Argument post:1
254 \begin_layout Plain Layout
265 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
269 レイアウトの導入などの題材について論じます.おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
271 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
274 \begin_layout Standard
275 \begin_inset Branch OutDated
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280 outdated is contained in the OutDated branch of this document.
281 By default, this information will not appear in the \SpecialChar LaTeX
290 \begin_layout Chapter
295 \begin_layout Standard
296 本章の目的は,\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
298 \begin_inset Flex MenuItem
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
308 を使って,\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです.一
311 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
312 \begin_inset Flex Code
315 \begin_layout Plain Layout
322 \begin_inset Flex MenuItem
325 \begin_layout Plain Layout
334 \begin_layout Section
335 \begin_inset Flex Code
338 \begin_layout Plain Layout
347 \begin_layout Standard
348 \begin_inset Flex Code
351 \begin_layout Plain Layout
357 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
358 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
360 \begin_inset Flex MenuItem
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
370 ダイアログから変更することができます.\SpecialChar LyX
371 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
373 \begin_inset Flex Code
376 \begin_layout Plain Layout
382 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
385 \begin_layout Subsection
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
393 \begin_layout Plain Layout
399 にある各ファイルは,\SpecialChar LyX
400 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
401 うので,一般的には修正しないことが望まれます.
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
409 \begin_layout Plain Layout
415 このファイルには,様々な既定コマンドが置かれています.
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
423 \begin_layout Plain Layout
429 このファイルには,\SpecialChar LyX
430 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
431 プログラム自体には使用されていませんが,抽出された情報その他は,
432 \begin_inset Flex MenuItem
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
441 \begin_layout Plain Layout
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
461 \begin_layout Plain Layout
468 \begin_inset Flex Code
471 \begin_layout Plain Layout
477 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
486 \begin_layout Plain Layout
493 \begin_inset Flex Code
496 \begin_layout Plain Layout
502 ディレクトリで検出されたレイアウトモジュールの一覧です.
505 \begin_layout Labeling
506 \labelwidthstring 00.00.0000
507 \begin_inset Flex Code
510 \begin_layout Plain Layout
516 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
525 \begin_layout Plain Layout
530 \begin_layout Plain Layout
543 \begin_inset Flex Code
546 \begin_layout Plain Layout
551 \begin_layout Plain Layout
563 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
567 \begin_layout Subsection
571 \begin_layout Standard
573 \begin_inset Flex Code
576 \begin_layout Plain Layout
583 \begin_inset Flex Code
586 \begin_layout Plain Layout
592 に重複して存在します.特定のファイルが両方の場所にある場合には,
593 \begin_inset Flex Code
596 \begin_layout Plain Layout
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
610 \begin_layout Plain Layout
616 このディレクトリには,\SpecialChar LyX
617 で使用されるキー割当を定義している,拡張子が
618 \begin_inset Flex Code
621 \begin_layout Plain Layout
628 \begin_inset Flex Code
631 \begin_layout Plain Layout
637 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
645 \begin_layout Plain Layout
651 このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
659 \begin_layout Plain Layout
665 このディレクトリには,\SpecialChar LyX
666 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
667 \begin_inset Flex Code
670 \begin_layout Plain Layout
676 ファイルは特に注目に値します.各国語版のヘルプ文書は,
677 \begin_inset Flex Code
680 \begin_layout Plain Layout
686 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
687 \begin_inset CommandInset ref
689 reference "cha:LyXの各国語対応"
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
701 \begin_layout Plain Layout
707 このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
708 \begin_inset Flex MenuItem
711 \begin_layout Plain Layout
717 ボタンを押すと,このディレクトリが表示されます.
720 \begin_layout Labeling
721 \labelwidthstring 00.00.0000
722 \begin_inset Flex Code
725 \begin_layout Plain Layout
732 \begin_inset Flex MenuItem
735 \begin_layout Plain Layout
741 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
742 を起動したときに現れるバナーも納められています.
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
750 \begin_layout Plain Layout
756 このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
757 \begin_inset CommandInset ref
759 reference "sec:国際キー配列"
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
771 \begin_layout Plain Layout
778 \begin_inset CommandInset ref
780 reference "cha:新規文書を導入"
784 に述べられているテキストクラスおよびモジュールのファイルが納められています.
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
792 \begin_layout Plain Layout
798 このディレクトリには,\SpecialChar LyX
800 \begin_inset Flex Code
803 \begin_layout Plain Layout
809 Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
817 \begin_layout Plain Layout
824 \begin_inset Flex MenuItem
827 \begin_layout Plain Layout
833 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
834 自身が使用するスクリプトもいくつか収められています.
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
842 \begin_layout Plain Layout
849 \begin_inset CommandInset ref
851 reference "sec:ひな型を作成する"
855 で述べられている標準の\SpecialChar LyX
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
864 \begin_layout Plain Layout
870 このディレクトリには,\SpecialChar LyX
872 \begin_inset Flex Code
875 \begin_layout Plain Layout
881 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
884 \begin_layout Subsection
888 \begin_layout Standard
889 これらのファイルは\SpecialChar LyX
890 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
893 \begin_layout Labeling
894 \labelwidthstring 00.00.0000
895 \begin_inset Flex Code
898 \begin_layout Plain Layout
904 このファイルは,\SpecialChar LyX
905 開発陣の名簿です.この内容は,メニュー項目
906 \begin_inset Flex MenuItem
909 \begin_layout Plain Layout
910 ヘルプ\SpecialChar menuseparator
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
924 \begin_layout Plain Layout
930 これは,自動設定プロセスによって使用される\SpecialChar LaTeX
931 スクリプトです.直接実行しないでください.
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
939 \begin_layout Plain Layout
946 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
949 \begin_layout Subsection
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
958 \begin_layout Plain Layout
964 このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
967 \begin_layout Labeling
968 \labelwidthstring 00.00.0000
969 \begin_inset Flex Code
972 \begin_layout Plain Layout
979 \begin_inset Flex MenuItem
982 \begin_layout Plain Layout
989 \begin_inset CommandInset ref
991 reference "chap:外部素材を取り込む"
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1003 \begin_layout Plain Layout
1009 このファイルには,現在\SpecialChar LyX
1010 がサポートしている言語の全一覧が載っています.
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1018 \begin_layout Plain Layout
1024 サポートされているフォントに関する情報が掲載されています.
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1032 \begin_layout Plain Layout
1038 このファイルは,国際化された段落様式の翻訳が収録されています(
1039 \begin_inset CommandInset ref
1041 reference "subsec:段落様式の国際化"
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1053 \begin_layout Plain Layout
1059 このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1061 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1064 \begin_layout Section
1068 \begin_layout Standard
1070 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1071 の設定を変更したいと思うかもしれません.
1072 \begin_inset Flex Code
1075 \begin_layout Plain Layout
1081 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1082 \begin_inset Flex MenuItem
1085 \begin_layout Plain Layout
1086 ヘルプ\SpecialChar menuseparator
1092 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1093 \begin_inset Flex Code
1096 \begin_layout Plain Layout
1103 \begin_inset Flex Code
1106 \begin_layout Plain Layout
1113 \begin_inset Flex Code
1116 \begin_layout Plain Layout
1122 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1125 \begin_layout Standard
1126 わかりやすくするために,いくつか例を挙げましょう.
1129 \begin_layout Itemize
1130 \begin_inset Flex MenuItem
1133 \begin_layout Plain Layout
1134 ツール\SpecialChar menuseparator
1141 \begin_inset Flex Code
1144 \begin_layout Plain Layout
1151 \begin_inset Flex Code
1154 \begin_layout Plain Layout
1163 \begin_layout Itemize
1164 \begin_inset Flex MenuItem
1167 \begin_layout Plain Layout
1168 ツール\SpecialChar menuseparator
1174 を使用して環境構成を行うと,\SpecialChar LyX
1176 \begin_inset Flex Code
1179 \begin_layout Plain Layout
1185 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1186 \begin_inset Flex Code
1189 \begin_layout Plain Layout
1196 \begin_inset Flex MenuItem
1199 \begin_layout Plain Layout
1200 文書\SpecialChar menuseparator
1206 ダイアログのクラス一覧に表示されるようになることを意味します.
1209 \begin_layout Itemize
1210 たとえば,\SpecialChar LyX
1211 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1213 \begin_inset Flex Code
1216 \begin_layout Plain Layout
1223 \begin_inset Flex MenuItem
1226 \begin_layout Plain Layout
1232 メニュー項目はこれらを開くようになります!
1235 \begin_layout Section
1240 \begin_layout Standard
1241 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1242 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1243 どのディレクトリを使用するか指定するのです.
1246 \begin_layout Standard
1249 \begin_inset Flex Code
1252 \begin_layout Plain Layout
1262 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1264 \begin_inset Flex Code
1267 \begin_layout Plain Layout
1273 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1274 は,初めて\SpecialChar LyX
1276 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1277 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1278 \begin_inset Flex Code
1281 \begin_layout Plain Layout
1287 を特定の値に設定しても,全く同じ効果があります.
1290 \begin_layout Standard
1291 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1292 \begin_inset Flex Code
1295 \begin_layout Plain Layout
1301 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1302 クを使用してください.\SpecialChar LyX
1303 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1304 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1305 \begin_inset Flex Code
1308 \begin_layout Plain Layout
1315 \begin_inset Flex MenuItem
1318 \begin_layout Plain Layout
1319 ツール\SpecialChar menuseparator
1325 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1328 \begin_layout Chapter
1332 \begin_layout Standard
1341 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1344 \begin_layout Section
1346 \begin_inset CommandInset label
1355 \begin_layout Standard
1356 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1357 \begin_inset Flex MenuItem
1360 \begin_layout Plain Layout
1361 ツール\SpecialChar menuseparator
1368 \begin_inset Flex MenuItem
1371 \begin_layout Plain Layout
1372 ファイル処理\SpecialChar menuseparator
1379 \begin_inset Flex MenuItem
1382 \begin_layout Plain Layout
1383 新規\SpecialChar ldots
1389 ボタンを押して,登録する新しい形式を定義してください.
1390 \begin_inset Flex MenuItem
1393 \begin_layout Plain Layout
1399 フィールドは,GUI中で形式を認識するために用いられる名称です.
1400 \begin_inset Flex MenuItem
1403 \begin_layout Plain Layout
1409 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1410 \begin_inset Flex MenuItem
1413 \begin_layout Plain Layout
1420 \begin_inset Flex Ruby
1423 \begin_layout Plain Layout
1425 \begin_inset Argument post:1
1428 \begin_layout Plain Layout
1440 \begin_inset Flex MenuItem
1443 \begin_layout Plain Layout
1450 \begin_inset Flex MenuItem
1453 \begin_layout Plain Layout
1454 表示\SpecialChar menuseparator
1463 \begin_layout Standard
1465 \begin_inset Flex MenuItem
1468 \begin_layout Plain Layout
1475 \begin_inset Flex MenuItem
1478 \begin_layout Plain Layout
1484 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1485 \begin_inset Flex MenuItem
1488 \begin_layout Plain Layout
1494 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1495 いることができます.この閲覧プログラムは,\SpecialChar LyX
1497 \begin_inset Flex MenuItem
1500 \begin_layout Plain Layout
1506 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1507 \begin_inset Flex MenuItem
1510 \begin_layout Plain Layout
1519 \begin_layout Standard
1521 \begin_inset Flex MenuItem
1524 \begin_layout Plain Layout
1530 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1532 \begin_inset CommandInset href
1535 target "http://www.iana.org/assignments/media-types/"
1539 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1541 \begin_inset CommandInset href
1543 name "freedesktop.org"
1544 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1548 で指定されているMIME型拡張表を使用しています.
1551 \begin_layout Standard
1552 \begin_inset Flex MenuItem
1555 \begin_layout Plain Layout
1561 オプションは,\SpecialChar LyX
1562 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1563 \begin_inset CommandInset ref
1570 \begin_inset Flex MenuItem
1573 \begin_layout Plain Layout
1574 ファイル\SpecialChar menuseparator
1581 \begin_inset Flex MenuItem
1584 \begin_layout Plain Layout
1590 footlabel Label color for footnotす.
1591 \begin_inset Flex Code
1594 \begin_layout Plain Layout
1600 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1601 \begin_inset Flex Code
1604 \begin_layout Plain Layout
1610 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1613 \begin_layout Standard
1614 \begin_inset Flex MenuItem
1617 \begin_layout Plain Layout
1623 オプションは,\SpecialChar LyX
1624 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1625 \begin_inset Flex MenuItem
1628 \begin_layout Plain Layout
1634 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1635 \begin_inset Flex MenuItem
1638 \begin_layout Plain Layout
1645 \begin_inset Flex MenuItem
1648 \begin_layout Plain Layout
1655 \begin_inset Flex MenuItem
1658 \begin_layout Plain Layout
1665 \begin_inset Flex MenuItem
1668 \begin_layout Plain Layout
1674 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1675 \begin_inset Flex MenuItem
1678 \begin_layout Plain Layout
1685 \begin_inset Flex MenuItem
1688 \begin_layout Plain Layout
1695 \begin_inset Flex MenuItem
1698 \begin_layout Plain Layout
1704 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1705 \begin_inset Flex MenuItem
1708 \begin_layout Plain Layout
1715 \begin_inset Flex MenuItem
1718 \begin_layout Plain Layout
1727 \begin_layout Section
1731 \begin_layout Standard
1732 形式の変換はすべて,\SpecialChar LyX
1733 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1737 \begin_layout Plain Layout
1738 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1744 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1747 \begin_layout Standard
1748 複写子の定義においては,以下の8つの変数を用いることができます.
1751 \begin_layout Labeling
1752 \labelwidthstring 00.00.0000
1753 \begin_inset Flex Code
1756 \begin_layout Plain Layout
1764 \begin_inset Flex MenuItem
1767 \begin_layout Plain Layout
1776 \begin_layout Labeling
1777 \labelwidthstring 00.00.0000
1778 \begin_inset Flex Code
1781 \begin_layout Plain Layout
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Flex Code
1795 \begin_layout Plain Layout
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Flex Code
1809 \begin_layout Plain Layout
1816 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1824 \begin_layout Plain Layout
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1839 \begin_layout Plain Layout
1845 処理されている元の\SpecialChar LyX
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1854 \begin_layout Plain Layout
1861 ファイルのファイル名(ディレクトリパスなし)
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1869 \begin_layout Plain Layout
1879 \begin_layout Standard
1880 最後の変数は,\SpecialChar LaTeX
1887 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1890 \begin_layout Standard
1891 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1892 \begin_inset Flex Code
1895 \begin_layout Plain Layout
1901 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1904 \begin_layout Standard
1905 \begin_inset listings
1909 \begin_layout Plain Layout
1914 \begin_layout Plain Layout
1919 \begin_layout Plain Layout
1921 TOFILE=`basename $2`
1924 \begin_layout Plain Layout
1926 DescriptionE /home/you/pdf/$TOFILE
1932 \begin_inset Flex Code
1935 \begin_layout Plain Layout
1936 /home/you/.lyx/scripts/pdfcopier.sh
1941 のような,自身のローカル\SpecialChar LyX
1942 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1943 \begin_inset Flex MenuItem
1946 \begin_layout Plain Layout
1947 ツール\SpecialChar menuseparator
1954 \begin_inset Flex MenuItem
1957 \begin_layout Plain Layout
1958 ファイル処理\SpecialChar menuseparator
1965 \begin_inset Flex MenuItem
1968 \begin_layout Plain Layout
1974 形式—あるいは他のPDF形式のうちどれか—を選択し,
1975 \begin_inset Flex MenuItem
1978 \begin_layout Plain Layout
1985 \begin_inset Flex Code
1988 \begin_layout Plain Layout
1989 pdfcopier.sh $$i $$o
1997 \begin_layout Standard
1998 複写子は,\SpecialChar LyX
1999 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
2001 \begin_inset Flex MenuItem
2004 \begin_layout Plain Layout
2011 \begin_inset Flex MenuItem
2014 \begin_layout Plain Layout
2016 \begin_inset space ~
2024 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2025 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2026 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2030 \begin_layout Plain Layout
2031 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2032 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2033 \begin_inset Flex MenuItem
2036 \begin_layout Plain Layout
2041 \begin_layout Plain Layout
2054 \begin_inset Flex MenuItem
2057 \begin_layout Plain Layout
2058 /path/to/filename.lyx
2064 \begin_inset Flex MenuItem
2067 \begin_layout Plain Layout
2068 /path/to/filename.html.L
2072 \begin_layout Plain Layout
2093 \begin_layout Section
2095 \begin_inset CommandInset label
2104 \begin_layout Standard
2105 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2106 \begin_inset Flex MenuItem
2109 \begin_layout Plain Layout
2110 ツール\SpecialChar menuseparator
2111 設定\SpecialChar menuseparator
2112 ファイル処理\SpecialChar menuseparator
2121 \begin_layout Standard
2122 新規に変換子を定義するには,ドロップダウンリストから
2123 \begin_inset Flex MenuItem
2126 \begin_layout Plain Layout
2133 \begin_inset Flex MenuItem
2136 \begin_layout Plain Layout
2142 を選択し,変換に必要なコマンドを入力してから
2143 \begin_inset Flex MenuItem
2146 \begin_layout Plain Layout
2152 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2155 \begin_layout Labeling
2156 \labelwidthstring 00.00.0000
2157 \begin_inset Flex Code
2160 \begin_layout Plain Layout
2170 \begin_layout Labeling
2171 \labelwidthstring 00.00.0000
2172 \begin_inset Flex Code
2175 \begin_layout Plain Layout
2184 \begin_layout Labeling
2185 \labelwidthstring 00.00.0000
2186 \begin_inset Flex Code
2189 \begin_layout Plain Layout
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2203 \begin_layout Plain Layout
2209 入力ファイルのベースファイル名(拡張子をとった部分)
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2217 \begin_layout Plain Layout
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2231 \begin_layout Plain Layout
2237 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2245 \begin_layout Plain Layout
2254 \begin_layout Standard
2255 \begin_inset Flex MenuItem
2258 \begin_layout Plain Layout
2264 フィールドには,以下のフラグをコンマで区切って入力することができます.
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Flex Code
2272 \begin_layout Plain Layout
2278 この変換子が\SpecialChar LaTeX
2279 の一種を実行することを示します.これによって,\SpecialChar LyX
2281 エラーログに記録を残せるようになります.
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2289 \begin_layout Plain Layout
2295 変換に\SpecialChar LaTeX
2297 \begin_inset Flex MenuItem
2300 \begin_layout Plain Layout
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2314 \begin_layout Plain Layout
2321 \begin_inset Quotes erd
2325 \begin_inset Quotes erd
2328 なファイル,つまり\SpecialChar LyX
2329 が書き出す\SpecialChar LaTeX
2331 \begin_inset Flex Code
2334 \begin_layout Plain Layout
2340 のない\SpecialChar LaTeX
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2349 \begin_layout Plain Layout
2358 \begin_layout Standard
2360 \begin_inset Flex MenuItem
2363 \begin_layout Plain Layout
2365 \begin_inset space ~
2369 \begin_inset space ~
2377 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2385 \begin_layout Plain Layout
2392 \begin_inset Flex Code
2395 \begin_layout Plain Layout
2401 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2402 \begin_inset Flex Code
2405 \begin_layout Plain Layout
2406 script < infile.out > infile.log
2411 の形で実行されるようになります.引数には
2412 \begin_inset Flex Code
2415 \begin_layout Plain Layout
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Flex Code
2429 \begin_layout Plain Layout
2435 これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2436 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2438 \begin_inset Flex Code
2441 \begin_layout Plain Layout
2447 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2448 \begin_inset Newline newline
2451 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2456 \begin_inset Flex Code
2459 \begin_layout Plain Layout
2466 \begin_inset Flex Code
2469 \begin_layout Plain Layout
2475 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2478 \begin_layout Standard
2479 最後の3つは,\SpecialChar LyX
2480 とともに導入される変換子には,現在いずれも使用されておりません.
2483 \begin_layout Standard
2484 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2485 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2487 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2488 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2489 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2490 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2491 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2492 設定は,\SpecialChar LaTeX
2493 からPDFへ変換するのに,以下の3つの方法を
2497 \begin_layout Enumerate
2499 \begin_inset Flex MenuItem
2502 \begin_layout Plain Layout
2511 \begin_layout Enumerate
2512 (DVIと)PostScriptを経由して
2513 \begin_inset Flex MenuItem
2516 \begin_layout Plain Layout
2525 \begin_layout Enumerate
2527 \begin_inset Flex MenuItem
2530 \begin_layout Plain Layout
2539 \begin_layout Enumerate
2541 \begin_inset Flex MenuItem
2544 \begin_layout Plain Layout
2554 \begin_layout Enumerate
2556 \begin_inset Flex MenuItem
2559 \begin_layout Plain Layout
2569 \begin_layout Standard
2571 \begin_inset CommandInset ref
2573 reference "sec:ファイル形式"
2577 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2578 \begin_inset Flex MenuItem
2581 \begin_layout Plain Layout
2588 \begin_inset Flex MenuItem
2591 \begin_layout Plain Layout
2598 \begin_inset Flex MenuItem
2601 \begin_layout Plain Layout
2608 \begin_inset Flex MenuItem
2611 \begin_layout Plain Layout
2618 \begin_inset Flex MenuItem
2621 \begin_layout Plain Layout
2628 \begin_inset Flex MenuItem
2631 \begin_layout Plain Layout
2638 \begin_inset Flex MenuItem
2641 \begin_layout Plain Layout
2648 \begin_inset Flex MenuItem
2651 \begin_layout Plain Layout
2659 \begin_inset Flex MenuItem
2662 \begin_layout Plain Layout
2669 \begin_inset Flex MenuItem
2672 \begin_layout Plain Layout
2679 用\SpecialChar softhyphen
2680 ) と命名された形式が定義されていて,すべて共通の拡張子
2681 \begin_inset Flex MenuItem
2684 \begin_layout Plain Layout
2690 を持ち,上記で言及した各変換方法に対応しています.
2693 \begin_layout Chapter
2696 \begin_inset CommandInset label
2698 name "cha:LyXの各国語対応"
2705 \begin_layout Standard
2707 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2708 は30言語の翻訳を提供しています.選択した言語は,使用する
2712 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2713 \begin_inset Flex Code
2716 \begin_layout Plain Layout
2725 \begin_layout Standard
2726 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2727 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2728 \begin_inset Flex Ruby
2731 \begin_layout Plain Layout
2733 \begin_inset Argument post:1
2736 \begin_layout Plain Layout
2747 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2748 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2752 \begin_layout Plain Layout
2753 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2754 コミュニティに報いるたいへん素晴らしい方法です!
2760 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2763 \begin_layout Section
2768 \begin_layout Subsection
2769 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2770 \begin_inset Argument 1
2773 \begin_layout Plain Layout
2782 \begin_layout Standard
2785 \begin_inset Flex Code
2788 \begin_layout Plain Layout
2794 ライブラリを使用します.\SpecialChar LyX
2795 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2796 \begin_inset Flex Code
2799 \begin_layout Plain Layout
2805 ファイルが必要です.このファイルが利用可能であれば,そこから
2806 \begin_inset Flex Code
2809 \begin_layout Plain Layout
2816 \begin_inset Flex Code
2819 \begin_layout Plain Layout
2825 ファイルをインストールしなくてはなりません.この全過程は,GNU
2826 \begin_inset Flex Code
2829 \begin_layout Plain Layout
2835 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2837 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2838 開発者メーリングリストにメールを送ってください.
2841 \begin_layout Standard
2842 要約すれば,以下のように行います(xxは言語コードを表します).
2845 \begin_layout Itemize
2847 ソースコードをチェックアウトしてください(
2848 \begin_inset CommandInset href
2851 target "http://www.lyx.org/HowToUseGIT"
2858 \begin_layout Itemize
2859 \begin_inset Flex Code
2862 \begin_layout Plain Layout
2869 \begin_inset Flex Code
2872 \begin_layout Plain Layout
2879 \begin_inset Flex Code
2882 \begin_layout Plain Layout
2889 \begin_inset Flex Code
2892 \begin_layout Plain Layout
2898 がどこにもない場合には,コンソールからそのディレクトリで
2899 \begin_inset Flex Code
2902 \begin_layout Plain Layout
2908 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2911 \begin_layout Itemize
2912 \begin_inset Flex Code
2915 \begin_layout Plain Layout
2925 \begin_layout Plain Layout
2926 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2934 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2939 \begin_inset Flex Code
2942 \begin_layout Plain Layout
2948 ファイルを編集するための「モード」があります,第
2949 \begin_inset Flex URL
2952 \begin_layout Plain Layout
2954 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2966 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2967 \begin_inset Flex Ruby
2970 \begin_layout Plain Layout
2972 \begin_inset Argument post:1
2975 \begin_layout Plain Layout
2986 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2987 \begin_inset Flex Code
2990 \begin_layout Plain Layout
2996 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2999 \begin_layout Standard
3000 もし,あなたがこれを自身のためだけに行っているのであれば,
3003 \begin_layout Itemize
3004 \begin_inset Flex Code
3007 \begin_layout Plain Layout
3014 \begin_inset Flex Code
3017 \begin_layout Plain Layout
3018 msgfmt -o xx.mo < xx.po
3026 \begin_layout Itemize
3028 \begin_inset Flex Code
3031 \begin_layout Plain Layout
3037 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3038 \begin_inset Flex Code
3041 \begin_layout Plain Layout
3048 \begin_inset Flex Code
3051 \begin_layout Plain Layout
3052 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3060 \begin_layout Standard
3062 \begin_inset Flex Code
3065 \begin_layout Plain Layout
3071 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3072 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3073 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3077 \begin_layout Subsubsection
3081 \begin_layout Standard
3082 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3083 \begin_inset Flex Code
3086 \begin_layout Plain Layout
3092 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3093 \begin_inset Flex Code
3096 \begin_layout Plain Layout
3103 \begin_inset Flex Code
3106 \begin_layout Plain Layout
3113 \begin_inset Flex Code
3116 \begin_layout Plain Layout
3117 To[[as in 'From format x to format y']]
3123 \begin_inset Flex Code
3126 \begin_layout Plain Layout
3127 To[[as in 'From page x to page y']]
3132 としなくてはなりません.これによって,これら2つの
3133 \begin_inset Flex Code
3136 \begin_layout Plain Layout
3143 \begin_inset Flex Code
3146 \begin_layout Plain Layout
3152 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3155 \begin_layout Standard
3156 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3158 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3161 \begin_layout Subsection
3165 \begin_layout Standard
3167 \begin_inset Flex MenuItem
3170 \begin_layout Plain Layout
3176 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3180 \begin_layout Plain Layout
3181 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3186 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3187 はこれを自動的に使用します.\SpecialChar LyX
3189 \begin_inset Flex Code
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3199 \begin_inset Flex Code
3202 \begin_layout Plain Layout
3208 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3209 \begin_inset Flex Code
3212 \begin_layout Plain Layout
3218 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3222 \begin_layout Itemize
3224 \begin_inset CommandInset href
3226 name "http://www.lyx.org/Translation"
3227 target "http://www.lyx.org/Translation"
3231 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3232 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3235 \begin_layout Standard
3236 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3239 \begin_layout Itemize
3240 文書化チームに所属してください!そのための情報が
3241 \begin_inset Flex Code
3244 \begin_layout Plain Layout
3251 \begin_inset Flex MenuItem
3254 \begin_layout Plain Layout
3255 ヘルプ\SpecialChar menuseparator
3262 \begin_inset Flex Code
3265 \begin_layout Plain Layout
3274 \begin_layout Itemize
3275 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3276 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3278 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3283 \begin_layout Itemize
3284 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3285 \begin_inset Flex Code
3288 \begin_layout Plain Layout
3294 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3295 \begin_inset Newline newline
3299 \begin_inset Note Greyedout
3302 \begin_layout Plain Layout
3307 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3308 ことに注意してください.最も良い方法は,LyXツリーをgit (
3309 \begin_inset Flex URL
3312 \begin_layout Plain Layout
3314 http://www.lyx.org/HowToUseGIT
3319 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3327 \begin_layout Itemize
3329 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3330 \begin_inset CommandInset href
3332 name "http://www.lyx.org/trac/timeline"
3333 target "http://www.lyx.org/trac/timeline"
3337 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3340 \begin_layout Standard
3341 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3344 \begin_layout Standard
3345 \begin_inset Branch OutDated
3348 \begin_layout Section
3349 International Keyboard Support
3352 \begin_layout Standard
3355 [Editor's Note: The following section is by
3363 It needs to be fixed to conform to the new Documentation Style sheet and
3364 to make use of the new v1.0 features.
3365 The whole thing also needs to be merged with the section following it.-jw
3366 It may also be badly out of date.-rh (2008)]
3369 \begin_layout Subsection
3370 Defining Own Keymaps: Keymap File Format
3373 \begin_layout Standard
3374 Let's look at a keyboard definition file a little closer.
3375 It is a plain text file defining
3378 \begin_layout Itemize
3379 key-to-key or key-to-string translations
3382 \begin_layout Itemize
3386 \begin_layout Itemize
3387 dead keys exceptions
3390 \begin_layout Standard
3391 To define key-to-key or key-to-string translation, use this command:
3394 \begin_layout Quotation
3395 \begin_inset Flex Code
3398 \begin_layout Plain Layout
3407 \begin_inset Flex Code
3410 \begin_layout Plain Layout
3419 \begin_layout Standard
3421 \begin_inset Flex Code
3424 \begin_layout Plain Layout
3430 is the key to be translated and
3431 \begin_inset Flex Code
3434 \begin_layout Plain Layout
3440 is the string to be inserted into the document.
3441 To define dead keys, use:
3444 \begin_layout Quotation
3445 \begin_inset Flex Code
3448 \begin_layout Plain Layout
3457 \begin_inset Flex Code
3460 \begin_layout Plain Layout
3469 \begin_layout Standard
3471 \begin_inset Flex Code
3474 \begin_layout Plain Layout
3480 is a keyboard key and
3481 \begin_inset Flex Code
3484 \begin_layout Plain Layout
3491 The following dead keys are supported (shortcut name is in parentheses):
3494 \begin_layout Quotation
3498 \begin_inset space \hfill{}
3504 \begin_layout Quotation
3506 \begin_inset space \hfill{}
3514 \begin_layout Quotation
3516 \begin_inset space \hfill{}
3524 \begin_layout Quotation
3526 \begin_inset space \hfill{}
3534 \begin_layout Quotation
3536 \begin_inset space \hfill{}
3544 \begin_layout Quotation
3546 \begin_inset space \hfill{}
3553 \begin_layout Plain Layout
3565 \begin_layout Quotation
3567 \begin_inset space \hfill{}
3575 \begin_layout Quotation
3577 \begin_inset space \hfill{}
3584 \begin_layout Plain Layout
3596 \begin_layout Quotation
3598 \begin_inset space \hfill{}
3606 \begin_layout Quotation
3608 \begin_inset space \hfill{}
3616 \begin_layout Quotation
3618 \begin_inset space \hfill{}
3625 \begin_layout Plain Layout
3637 \begin_layout Quotation
3639 \begin_inset space \hfill{}
3650 \begin_layout Plain Layout
3662 \begin_layout Quotation
3664 \begin_inset space \hfill{}
3672 \begin_layout Quotation
3673 hungarian umlaut (hug)
3674 \begin_inset space \hfill{}
3682 \begin_layout Quotation
3684 \begin_inset space \hfill{}
3692 \begin_layout Quotation
3694 \begin_inset space \hfill{}
3705 \begin_layout Plain Layout
3717 \begin_layout Standard
3718 Since in many international keyboards there are exceptions to what some
3719 dead keys should do, you can define them using
3722 \begin_layout Quotation
3723 \begin_inset Flex Code
3726 \begin_layout Plain Layout
3734 deadkey key outstring
3737 \begin_layout Standard
3738 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3742 \begin_layout Quotation
3743 \begin_inset Flex Code
3746 \begin_layout Plain Layout
3759 \begin_layout Standard
3760 to make it work correctly.
3761 Also, you have to define as exceptions dead keys over i and j, to remove
3762 the dot from them before inserting an accent mark.
3763 I will change this when the time comes, but so far I haven't had time.
3766 \begin_layout Standard
3767 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3770 \begin_inset Flex Code
3773 \begin_layout Plain Layout
3779 have different meaning.
3781 \begin_inset Flex Code
3784 \begin_layout Plain Layout
3790 marks comments, quotes start and end \SpecialChar LaTeX
3792 To enter quote, you'll need to use
3793 \begin_inset Flex Code
3796 \begin_layout Plain Layout
3805 \begin_inset Flex Code
3808 \begin_layout Plain Layout
3815 \begin_inset Flex Code
3818 \begin_layout Plain Layout
3829 \begin_layout Standard
3830 If you make a keyboard description file that works for your language, please
3831 mail it to me, so I can include it in the next keymap distribution.
3834 \begin_layout Standard
3835 More keywords will be supported in keymap configuration file in future,
3839 \begin_layout Itemize
3840 \begin_inset Flex Code
3843 \begin_layout Plain Layout
3854 \begin_inset space \hfill{}
3858 \begin_inset Flex Code
3861 \begin_layout Plain Layout
3870 \begin_layout Itemize
3871 \begin_inset Flex Code
3874 \begin_layout Plain Layout
3885 \begin_inset space \hfill{}
3889 \begin_inset Flex Code
3892 \begin_layout Plain Layout
3898 an external keymap translation program
3901 \begin_layout Standard
3902 Also, it should look into
3903 \begin_inset Flex Code
3906 \begin_layout Plain Layout
3912 file for defaults, too (for example, a
3913 \begin_inset Flex Code
3916 \begin_layout Plain Layout
3924 option to include default keyboard).
3932 \begin_layout Section
3934 \begin_inset CommandInset label
3943 \begin_layout Standard
3944 \begin_inset Note Note
3947 \begin_layout Plain Layout
3948 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3951 \begin_layout Plain Layout
3960 \begin_layout Standard
3962 \begin_inset Flex Code
3965 \begin_layout Plain Layout
3972 \begin_inset Flex Code
3975 \begin_layout Plain Layout
3981 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3984 \begin_layout Subsection
3988 \begin_layout Standard
3989 \begin_inset Flex Code
3992 \begin_layout Plain Layout
3998 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3999 \begin_inset Flex Code
4002 \begin_layout Plain Layout
4008 ファイルは,以下の各項で説明するように,
4009 \begin_inset Flex Code
4012 \begin_layout Plain Layout
4019 \begin_inset Flex Code
4022 \begin_layout Plain Layout
4029 \begin_inset Flex Code
4032 \begin_layout Plain Layout
4039 \begin_inset Flex Code
4042 \begin_layout Plain Layout
4051 \begin_layout Labeling
4052 \labelwidthstring 00.00.0000
4053 \begin_inset Flex Code
4056 \begin_layout Plain Layout
4065 \begin_layout LyX-Code
4080 \begin_layout Standard
4093 中では,二重引用符(")とバックスラッシュ(
4097 )を付けてエスケープしなくてはならないことに注意してください.
4100 \begin_layout Standard
4101 \begin_inset Flex MenuItem
4104 \begin_layout Plain Layout
4111 \begin_inset Flex MenuItem
4114 \begin_layout Plain Layout
4121 \begin_inset Flex MenuItem
4124 \begin_layout Plain Layout
4133 \begin_layout LyX-Code
4139 \begin_layout Standard
4143 \begin_layout Labeling
4144 \labelwidthstring 00.00.0000
4145 \begin_inset Flex Code
4148 \begin_layout Plain Layout
4157 \begin_layout LyX-Code
4166 \begin_layout Standard
4175 のアクセントとするものです.これはデッドキー
4179 \begin_layout Plain Layout
4184 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4188 のようなウムラウトのついた文字は,このようにして出すことができます.
4196 \begin_layout Standard
4209 の後に許可文字ではないその文字が出力として表示されます.
4210 \begin_inset Flex MenuItem
4213 \begin_layout Plain Layout
4224 \begin_inset Flex MenuItem
4227 \begin_layout Plain Layout
4233 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4236 \begin_layout Standard
4237 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4240 \begin_layout LyX-Code
4243 kmod ' acute aeiouAEIOU
4246 \begin_layout Labeling
4247 \labelwidthstring 00.00.0000
4248 \begin_inset Flex Code
4251 \begin_layout Plain Layout
4260 \begin_layout LyX-Code
4269 \begin_layout Standard
4283 \begin_inset Flex Code
4286 \begin_layout Plain Layout
4294 宣言で打鍵キーを既に割り当てられてなくてはならず,
4306 の集合に属していてはなりません.こうして
4319 \begin_inset Flex Code
4322 \begin_layout Plain Layout
4349 \begin_inset Flex Code
4352 \begin_layout Plain Layout
4363 \begin_layout Standard
4364 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4367 \begin_layout LyX-Code
4381 \begin_layout Labeling
4382 \labelwidthstring 00.00.0000
4383 \begin_inset Flex Code
4386 \begin_layout Plain Layout
4395 \begin_layout LyX-Code
4404 \begin_layout Standard
4405 これはなかなか難解になってきます.これは
4430 \begin_inset Flex Code
4433 \begin_layout Plain Layout
4441 コマンドで設定されていなくてはなりません.
4444 \begin_layout Standard
4445 \begin_inset Flex Code
4448 \begin_layout Plain Layout
4457 \begin_layout LyX-Code
4460 kmod ; acute aeioyvhAEIOYVH
4464 kcomb acute umlaut iyIY
4467 \begin_layout Standard
4469 \begin_inset Flex MenuItem
4472 \begin_layout Plain Layout
4479 \begin_inset Flex Code
4482 \begin_layout Plain Layout
4492 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4493 \begin_inset Flex MenuItem
4496 \begin_layout Plain Layout
4503 \begin_inset Flex Code
4506 \begin_layout Plain Layout
4517 \begin_layout Subsection
4521 \begin_layout Standard
4522 \begin_inset Flex Code
4525 \begin_layout Plain Layout
4532 \begin_inset Flex Code
4535 \begin_layout Plain Layout
4541 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4543 \begin_inset Flex Code
4546 \begin_layout Plain Layout
4553 \begin_inset Flex Code
4556 \begin_layout Plain Layout
4565 \begin_layout Standard
4567 \begin_inset Flex Code
4570 \begin_layout Plain Layout
4579 \begin_layout LyX-Code
4592 \begin_layout Standard
4594 \begin_inset Flex MenuItem
4597 \begin_layout Plain Layout
4605 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4608 \begin_layout LyX-Code
4616 \begin_layout Standard
4622 \begin_inset Flex Code
4625 \begin_layout Plain Layout
4634 \begin_inset Flex Code
4637 \begin_layout Plain Layout
4643 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4644 \begin_inset Flex Code
4647 \begin_layout Plain Layout
4656 \begin_layout LyX-Code
4668 \begin_inset Newline newline
4684 \begin_layout Standard
4685 という例があります.\SpecialChar LyX
4686 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4687 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4690 \begin_layout Subsection
4694 \begin_layout Standard
4695 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4696 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4699 \begin_layout Standard
4700 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4701 \begin_inset Flex Code
4704 \begin_layout Plain Layout
4711 \begin_inset Flex MenuItem
4714 \begin_layout Plain Layout
4721 \begin_inset Flex MenuItem
4724 \begin_layout Plain Layout
4730 キー)を,\SpecialChar LyX
4732 \begin_inset Flex Code
4735 \begin_layout Plain Layout
4742 \begin_inset Flex MenuItem
4745 \begin_layout Plain Layout
4751 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4752 \begin_inset Flex MenuItem
4755 \begin_layout Plain Layout
4761 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4762 \begin_inset Flex MenuItem
4765 \begin_layout Plain Layout
4772 \begin_inset Flex MenuItem
4775 \begin_layout Plain Layout
4781 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4782 はビープを鳴らして文句を付けます.デッドキーの後に
4783 \begin_inset Flex MenuItem
4786 \begin_layout Plain Layout
4792 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4794 \begin_inset Flex MenuItem
4797 \begin_layout Plain Layout
4803 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4806 \begin_layout Standard
4807 デッドキーを割り当てるのによく用いられる方法は,
4808 \begin_inset Flex MenuItem
4811 \begin_layout Plain Layout
4818 \begin_inset Flex MenuItem
4821 \begin_layout Plain Layout
4828 \begin_inset Flex MenuItem
4831 \begin_layout Plain Layout
4838 \begin_inset Flex MenuItem
4841 \begin_layout Plain Layout
4848 \begin_inset Flex MenuItem
4851 \begin_layout Plain Layout
4858 \begin_inset Flex MenuItem
4861 \begin_layout Plain Layout
4867 」のようなアクセントと一緒に用いる方法です.また,
4868 \begin_inset Flex Code
4871 \begin_layout Plain Layout
4878 \begin_inset Flex Code
4881 \begin_layout Plain Layout
4888 \begin_inset Flex Code
4891 \begin_layout Plain Layout
4898 \begin_inset Flex Code
4901 \begin_layout Plain Layout
4908 \begin_inset Flex MenuItem
4911 \begin_layout Plain Layout
4917 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4918 \begin_inset Flex Code
4921 \begin_layout Plain Layout
4927 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4932 \begin_layout Plain Layout
4938 \begin_inset Flex Code
4941 \begin_layout Plain Layout
4948 \begin_inset Flex Code
4951 \begin_layout Plain Layout
4958 \begin_inset Flex MenuItem
4961 \begin_layout Plain Layout
4963 \begin_inset space ~
4972 \begin_inset Flex Code
4975 \begin_layout Plain Layout
4982 \begin_inset Flex Code
4985 \begin_layout Plain Layout
4992 \begin_inset Flex MenuItem
4995 \begin_layout Plain Layout
4997 \begin_inset space ~
5006 \begin_inset Flex MenuItem
5009 \begin_layout Plain Layout
5011 \begin_inset space ~
5019 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5025 \begin_inset Flex Code
5028 \begin_layout Plain Layout
5035 \begin_inset Flex MenuItem
5038 \begin_layout Plain Layout
5044 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5051 \begin_inset Flex Code
5054 \begin_layout Plain Layout
5060 の項をご覧ください.ここには完備した一覧があります.
5063 \begin_layout Subsection
5067 \begin_layout Standard
5068 \begin_inset Flex MenuItem
5071 \begin_layout Plain Layout
5072 ツール\SpecialChar menuseparator
5078 ダイアログを使えば,\SpecialChar LyX
5079 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5082 \begin_layout Chapter
5083 文書クラス・レイアウト・ひな型の新規導入
5084 \begin_inset CommandInset label
5091 \begin_inset Argument 1
5094 \begin_layout Plain Layout
5103 \begin_layout Standard
5104 この章では,新しく\SpecialChar LyX
5105 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5106 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5110 \begin_layout Standard
5113 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5114 は,La\SpecialChar TeX
5116 云うことです.実際のところ,\SpecialChar LyX
5117 の観点からは,\SpecialChar LaTeX
5119 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5120 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5121 は,とくに重要な形式ですが,\SpecialChar LyX
5123 について持っている情報のほとんどは,実はプログラム本体には含まれて
5128 \begin_layout Plain Layout
5129 過度に複雑なため,\SpecialChar LyX
5130 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5136 \begin_inset Flex Code
5139 \begin_layout Plain Layout
5145 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5146 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5151 \begin_layout Standard
5152 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5153 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5154 構成体・DocBook構成体・XHTML構成体との
5155 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5157 \begin_inset Flex Code
5160 \begin_layout Plain Layout
5166 について知っていることのほとんど総ては,
5167 \begin_inset Flex Code
5170 \begin_layout Plain Layout
5176 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5178 \begin_inset Flex Code
5181 \begin_layout Plain Layout
5188 \begin_inset Flex Code
5191 \begin_layout Plain Layout
5197 や,文書クラス用の他のレイアウトファイルに取り込まれている
5198 \begin_inset Flex Code
5201 \begin_layout Plain Layout
5207 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5208 \begin_inset Flex Code
5211 \begin_layout Plain Layout
5217 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5218 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5220 \begin_inset Flex Code
5223 \begin_layout Plain Layout
5230 \begin_inset Flex Code
5233 \begin_layout Plain Layout
5239 ファイルを取り込んでいるだけのものです.
5242 \begin_layout Standard
5243 しかしながら,\SpecialChar LyX
5245 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5247 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5248 ます.ある段落様式を\SpecialChar LaTeX
5249 に翻訳する仕方を\SpecialChar LyX
5250 に指示することは,その表示の仕方を\SpecialChar LyX
5251 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5253 式をどのように\SpecialChar LaTeX
5254 に翻訳するかを\SpecialChar LyX
5255 に指示するものではありません(ましてや\SpecialChar LaTeX
5256 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5259 \begin_inset space ~
5263 にどのように翻訳するかを\SpecialChar LyX
5265 \begin_inset space ~
5268 それをどのように表示するかを\SpecialChar LyX
5269 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5272 \begin_layout Standard
5273 もちろん,\SpecialChar LyX
5274 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5275 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5276 力するにあたって,当該段落を\SpecialChar LyX
5277 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5278 が内部的に行うことと,外部的に行う物事の間の区
5279 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5280 \begin_inset CommandInset ref
5282 reference "sec:XHTML出力のタグ"
5289 \begin_layout Section
5290 新しい\SpecialChar LaTeX
5294 \begin_layout Standard
5295 頒布版によっては,\SpecialChar LyX
5296 で使いたい\SpecialChar LaTeX
5297 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5298 パッケージである,Foil\SpecialChar TeX
5299 がないかもしれません.\SpecialChar TeX
5300 Live(2008年以降)やMiK\SpecialChar TeX
5301 のような最近の\SpecialChar LaTeX
5302 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5303 ースが用意されています.たとえば,MiK\SpecialChar TeX
5305 \begin_inset space ~
5308 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5312 \begin_layout Standard
5313 お使いの\SpecialChar LaTeX
5314 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5318 \begin_layout Enumerate
5319 \begin_inset CommandInset href
5322 target "http://www.ctan.org/"
5326 などから欲しいパッケージを入手してください.
5329 \begin_layout Enumerate
5331 \begin_inset Flex Code
5334 \begin_layout Plain Layout
5340 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5341 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5342 \begin_inset Flex Code
5345 \begin_layout Plain Layout
5351 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5352 パッケージは圧縮されていないので,このステップは飛ばすこ
5356 \begin_layout Enumerate
5357 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5358 \begin_inset Separator latexpar
5365 \begin_layout Enumerate
5366 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5369 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5370 \begin_inset Flex Code
5373 \begin_layout Plain Layout
5383 \begin_layout Plain Layout
5389 \begin_inset Flex Code
5392 \begin_layout Plain Layout
5398 を実行してその場所を見つけることもできます.
5403 .「ローカル」\SpecialChar TeX
5405 \begin_inset Flex Code
5408 \begin_layout Plain Layout
5415 \begin_inset Flex Code
5418 \begin_layout Plain Layout
5419 /usr/local/share/texmf/
5425 \begin_inset Flex Code
5428 \begin_layout Plain Layout
5429 /usr/local/texlive/XXXX
5434 (XXXXは導入されている\SpecialChar TeX
5435 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5437 \begin_inset Flex Code
5440 \begin_layout Plain Layout
5447 \begin_inset Flex Code
5450 \begin_layout Plain Layout
5457 \begin_inset Flex Code
5460 \begin_layout Plain Layout
5466 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5467 ,「ユーザー」ツリーにはこのような制限はありません.
5468 \begin_inset Newline newline
5471 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5472 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5475 \begin_layout Enumerate
5476 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5478 \begin_inset Flex Code
5481 \begin_layout Plain Layout
5491 に移動します(MiK\SpecialChar TeX
5493 \begin_inset Flex Code
5496 \begin_layout Plain Layout
5512 \begin_layout Plain Layout
5513 これは,英語版でのみ正しいパスになっています.独語版では
5514 \begin_inset Flex Code
5517 \begin_layout Plain Layout
5535 \begin_inset Flex Code
5538 \begin_layout Plain Layout
5544 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5546 ことを行います.たとえばMiK\SpecialChar TeX
5548 \begin_inset space ~
5552 \begin_inset Newline newline
5556 \begin_inset Flex Code
5559 \begin_layout Plain Layout
5562 Documents and Settings
5574 \begin_inset Newline newline
5578 \begin_inset Phantom HPhantom
5581 \begin_layout Plain Layout
5592 \begin_inset Flex Code
5595 \begin_layout Plain Layout
5608 \begin_inset Newline newline
5612 \begin_inset Newline newline
5616 \begin_inset Flex Code
5619 \begin_layout Plain Layout
5642 \begin_inset Newline newline
5649 \begin_layout Enumerate
5650 ここまで来れば,あとは\SpecialChar LaTeX
5651 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5653 \begin_inset Separator latexpar
5660 \begin_layout Enumerate
5663 \begin_inset Flex Code
5666 \begin_layout Plain Layout
5672 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5675 \begin_layout Enumerate
5677 では,パッケージを全ユーザー用に導入した場合には,「Settings
5678 \begin_inset space ~
5681 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5686 \begin_layout Enumerate
5687 最後に,\SpecialChar LyX
5688 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5689 からツール\SpecialChar menuseparator
5690 環境構成メニューを実行して,\SpecialChar LyX
5694 \begin_layout Standard
5695 これでパッケージが導入されました.この例では,文書クラス
5696 \begin_inset Flex Code
5699 \begin_layout Plain Layout
5701 \begin_inset space ~
5710 \begin_inset Flex MenuItem
5713 \begin_layout Plain Layout
5714 文書\SpecialChar menuseparator
5715 設定\SpecialChar menuseparator
5724 \begin_layout Standard
5725 \begin_inset Flex MenuItem
5728 \begin_layout Plain Layout
5729 文書\SpecialChar menuseparator
5730 設定\SpecialChar menuseparator
5736 メニューに列挙されてもいない\SpecialChar LaTeX
5737 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5740 \begin_layout Section
5744 \begin_layout Standard
5745 この節は,レイアウト情報を含む各種\SpecialChar LyX
5746 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5748 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5749 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5752 \begin_layout Standard
5753 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5754 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5755 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5756 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5757 を出していますので,気軽に質問を投げかけてみてください.
5760 \begin_layout Standard
5761 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5762 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5763 文書クラス用の\SpecialChar LyX
5765 他の人々にも有用なモジュールをお書きになった場合には,
5766 \begin_inset CommandInset href
5768 name "LyX Wikiのレイアウトに関する節"
5769 target "http://wiki.lyx.org/Layouts/Layouts"
5774 開発者メーリングリストに投稿して,\SpecialChar LyX
5775 頒布版に同梱することができるようにしてください
5779 \begin_layout Plain Layout
5781 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5782 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5790 \begin_layout Subsection
5792 \begin_inset CommandInset label
5794 name "subsec:レイアウトモジュール"
5801 \begin_layout Standard
5802 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5804 \begin_inset Flex Code
5807 \begin_layout Plain Layout
5813 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5814 に提供するものを指します.しかしながら,\SpecialChar LyX
5816 \begin_inset Flex Code
5819 \begin_layout Plain Layout
5829 にも含めることができます.レイアウトが\SpecialChar LaTeX
5830 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5832 \begin_inset Flex Code
5835 \begin_layout Plain Layout
5841 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5842 イアウトで使用できるという意味において,一面,
5843 \begin_inset Flex Code
5846 \begin_layout Plain Layout
5856 \begin_layout Plain Layout
5857 これらは任意の拡張子をつけることができますが,慣習的に
5858 \begin_inset Flex Code
5861 \begin_layout Plain Layout
5873 \begin_inset Flex Code
5876 \begin_layout Plain Layout
5882 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5883 \begin_inset Flex MenuItem
5886 \begin_layout Plain Layout
5887 文書\SpecialChar menuseparator
5896 \begin_layout Standard
5897 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5898 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5901 \begin_layout Standard
5903 \begin_inset Flex Code
5906 \begin_layout Plain Layout
5912 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5913 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5914 \begin_inset Flex MenuItem
5917 \begin_layout Plain Layout
5918 文書\SpecialChar menuseparator
5924 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5926 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5930 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5932 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5933 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5937 \begin_layout Subsubsection
5941 \begin_layout Standard
5943 に於けるモジュールは,\SpecialChar LaTeX
5944 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5945 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5948 \begin_layout Standard
5951 文書\SpecialChar menuseparator
5952 設定\SpecialChar menuseparator
5955 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5956 は,その文書専属のモジュールだと考えることができます.したがって,
5957 \begin_inset Flex Code
5960 \begin_layout Plain Layout
5966 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5967 2.1では,最新書式は48です).また,
5968 ローカルレイアウトは,\SpecialChar LyX
5969 1.6より前の版ではサポートされていないことを認識しておく必要があります.したがって,文書を\SpecialChar LyX
5970 1.5またはそれ以前の版に(ローカルレイアウト
5971 情報を失うことなく)書き出せることを望むならば,使用するべきではありません.第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5972 出せることを望むならば,書式11を用いて,さらに\SpecialChar LyX
5973 1.6で使用できるレイアウト要素のみを使用してください.
5976 \begin_layout Standard
5977 \begin_inset Flex Code
5980 \begin_layout Plain Layout
5986 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5987 ているかどうかが検証されます.すると,\SpecialChar LyX
5988 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5990 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5993 \begin_layout Standard
5994 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5995 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5998 \begin_layout Subsection
5999 \begin_inset Flex MenuItem
6002 \begin_layout Plain Layout
6011 \begin_layout Standard
6012 新しく\SpecialChar LaTeX
6013 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
6015 \begin_inset Flex Code
6018 \begin_layout Plain Layout
6025 \begin_inset Flex Code
6028 \begin_layout Plain Layout
6034 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6035 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6039 \begin_layout Standard
6040 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6041 \begin_inset Flex MenuItem
6044 \begin_layout Plain Layout
6051 \begin_inset Flex MenuItem
6054 \begin_layout Plain Layout
6063 \begin_layout Standard
6064 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6068 \begin_layout Plain Layout
6069 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6071 \begin_inset Flex MenuItem
6074 \begin_layout Plain Layout
6080 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6088 \begin_layout LyX-Code
6089 cp report.layout ~/.lyx/layouts/myclass.layout
6092 \begin_layout Standard
6094 \begin_inset Flex Code
6097 \begin_layout Plain Layout
6106 \begin_layout LyX-Code
6109 DeclareLaTeXClass{report}
6112 \begin_layout Standard
6116 \begin_layout LyX-Code
6119 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6122 \begin_layout Standard
6123 のように変更してください.それから,ファイル冒頭辺りに
6126 \begin_layout LyX-Code
6128 \begin_inset Newline newline
6134 \begin_inset Newline newline
6140 \begin_layout Standard
6144 \begin_layout Standard
6147 \begin_inset Flex MenuItem
6150 \begin_layout Plain Layout
6151 ツール\SpecialChar menuseparator
6157 を選択してください.それから\SpecialChar LyX
6158 を再起動し,新規文書を作成してみてください.すると,
6159 \begin_inset Flex MenuItem
6162 \begin_layout Plain Layout
6163 文書\SpecialChar menuseparator
6170 \begin_inset Flex MenuItem
6173 \begin_layout Plain Layout
6179 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6180 \begin_inset Flex Code
6183 \begin_layout Plain Layout
6189 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6190 \begin_inset Flex Code
6193 \begin_layout Plain Layout
6199 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6200 \begin_inset Flex Code
6203 \begin_layout Plain Layout
6210 \begin_inset Flex Code
6213 \begin_layout Plain Layout
6219 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6222 \begin_layout LyX-Code
6226 \begin_layout LyX-Code
6230 \begin_layout LyX-Code
6234 \begin_layout LyX-Code
6238 \begin_layout LyX-Code
6242 \begin_layout Standard
6243 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6246 \begin_layout Standard
6247 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6249 \begin_inset CommandInset ref
6251 reference "sec:テキストクラス"
6258 \begin_layout Standard
6260 \begin_inset Flex Code
6263 \begin_layout Plain Layout
6269 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6270 う.最も簡単なモジュールの例としては,以下のようなものになります.
6273 \begin_layout LyX-Code
6276 DeclareLyXModule{My Package}
6279 \begin_layout LyX-Code
6283 \begin_layout LyX-Code
6284 #Support for mypkg.sty.
6287 \begin_layout LyX-Code
6289 \begin_inset Newline newline
6295 \begin_layout LyX-Code
6297 \begin_inset Newline newline
6303 \begin_layout LyX-Code
6305 \begin_inset Newline newline
6311 \begin_inset Newline newline
6317 \begin_layout Standard
6318 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6319 \begin_inset CommandInset ref
6321 reference "sec:テキストクラス"
6328 \begin_layout Subsection
6329 \begin_inset Flex MenuItem
6332 \begin_layout Plain Layout
6341 \begin_layout Standard
6342 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6343 \begin_inset Flex MenuItem
6346 \begin_layout Plain Layout
6352 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6355 \begin_layout LyX-Code
6361 \begin_layout Standard
6362 という行がないかどうか探してください.もしこれがあれば,
6363 \begin_inset Flex Code
6366 \begin_layout Plain Layout
6367 Declare\SpecialChar LaTeX
6373 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6374 \begin_inset Flex Code
6377 \begin_layout Plain Layout
6384 \begin_inset Flex Code
6387 \begin_layout Plain Layout
6394 \begin_inset Flex Code
6397 \begin_layout Plain Layout
6398 Declare\SpecialChar LaTeX
6408 \begin_layout Plain Layout
6410 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6411 \begin_inset Flex Code
6414 \begin_layout Plain Layout
6428 \begin_layout LyX-Code
6435 \begin_layout Plain Layout
6442 eXClass[thesis,book]{thesis}
6445 \begin_layout Standard
6446 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6448 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6452 \begin_layout Subsection
6454 \begin_inset CommandInset label
6463 \begin_layout Standard
6464 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6465 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6466 添付のひな型をあれこれ見てみるのもよいでしょう.
6469 \begin_layout Standard
6470 ひな型は,通常の文書と同様,\SpecialChar LyX
6471 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6472 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6473 \begin_inset Flex Code
6476 \begin_layout Plain Layout
6485 \begin_inset Flex Code
6488 \begin_layout Plain Layout
6496 などの対応するコマンドをひな型\SpecialChar LyX
6497 ファイルから取り除く必要があります.これは,たとえば
6498 \begin_inset Flex Code
6501 \begin_layout Plain Layout
6508 \begin_inset Flex Code
6511 \begin_layout Plain Layout
6517 のような,どの軽いテキストエディタでも行うことができます.
6520 \begin_layout Standard
6522 \begin_inset Flex Code
6525 \begin_layout Plain Layout
6532 \begin_inset Flex Code
6535 \begin_layout Plain Layout
6541 から使用したいものを同じ場所にコピーし,
6542 \begin_inset Flex MenuItem
6545 \begin_layout Plain Layout
6546 ツール\SpecialChar menuseparator
6547 設定\SpecialChar menuseparator
6553 ダイアログのひな型パスを再定義してください.
6556 \begin_layout Standard
6558 \begin_inset Flex Code
6561 \begin_layout Plain Layout
6567 があることに注意してください.このひな型は,
6568 \begin_inset Flex MenuItem
6571 \begin_layout Plain Layout
6572 ファイル\SpecialChar menuseparator
6578 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6579 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6581 \begin_inset Flex MenuItem
6584 \begin_layout Plain Layout
6593 \begin_layout Subsection
6597 \begin_layout Standard
6598 レイアウトファイルの書式は,\SpecialChar LyX
6599 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6600 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6603 \begin_inset Flex Code
6606 \begin_layout Plain Layout
6608 Dir/scripts/layout2layout.py
6613 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6615 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6618 \begin_layout Enumerate
6620 \begin_inset Flex Code
6623 \begin_layout Plain Layout
6630 \begin_inset Flex Code
6633 \begin_layout Plain Layout
6642 \begin_layout Enumerate
6644 \begin_inset Newline newline
6648 \begin_inset Flex Code
6651 \begin_layout Plain Layout
6652 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6658 \begin_inset Newline newline
6662 \begin_inset Flex Code
6665 \begin_layout Plain Layout
6675 \begin_layout Standard
6676 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6679 \begin_layout Section
6680 \begin_inset CommandInset label
6689 \begin_layout Standard
6690 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6691 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6692 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6693 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6694 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6697 \begin_layout Standard
6698 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6699 \begin_inset Flex Code
6702 \begin_layout Plain Layout
6709 \begin_inset Flex Code
6712 \begin_layout Plain Layout
6719 \begin_inset Flex Code
6722 \begin_layout Plain Layout
6728 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6729 \begin_inset Flex Code
6732 \begin_layout Plain Layout
6740 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6741 \begin_inset Flex Code
6744 \begin_layout Plain Layout
6755 \begin_layout Subsection
6759 \begin_layout Standard
6761 \begin_inset Flex Code
6764 \begin_layout Plain Layout
6770 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6771 \begin_inset Flex Code
6774 \begin_layout Plain Layout
6780 ファイルは,以下のような行で始めなくてはならないのです.
6783 \begin_layout LyX-Code
6786 #% Do not delete the line below; configure depends on this
6789 \begin_layout LyX-Code
6794 DeclareLaTeXClass{Article (Standard Class)}
6797 \begin_layout LyX-Code
6802 DeclareCategory{Articles}
6805 \begin_layout Standard
6806 2行目と3行目は,\SpecialChar LyX
6807 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6809 \begin_inset Flex Code
6812 \begin_layout Plain Layout
6819 \begin_inset Flex Code
6822 \begin_layout Plain Layout
6828 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6829 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6831 \begin_inset Flex Code
6834 \begin_layout Plain Layout
6841 \begin_inset Flex Code
6844 \begin_layout Plain Layout
6850 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6852 \begin_inset Flex Code
6855 \begin_layout Plain Layout
6861 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6862 \begin_inset Flex MenuItem
6865 \begin_layout Plain Layout
6866 文書\SpecialChar menuseparator
6872 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6873 \begin_inset Flex MenuItem
6876 \begin_layout Plain Layout
6877 文書\SpecialChar menuseparator
6883 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6884 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6885 rized」グループに属することになります.
6888 \begin_layout Standard
6890 \begin_inset Flex Code
6893 \begin_layout Plain Layout
6899 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6900 \begin_inset Flex Code
6903 \begin_layout Plain Layout
6909 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6912 \begin_layout LyX-Code
6915 #% Do not delete the line below; configure depends on this
6918 \begin_layout LyX-Code
6923 DeclareLaTeXClass[article]{article (with My Own Headings)}
6926 \begin_layout LyX-Code
6931 DeclareCategory{Articles}
6934 \begin_layout Standard
6935 これは,\SpecialChar LaTeX
6937 \begin_inset Flex Code
6940 \begin_layout Plain Layout
6946 に関連づけられ,「Article (with My Own Headings)」と表示される,
6947 \begin_inset Flex Code
6950 \begin_layout Plain Layout
6956 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6959 \begin_layout LyX-Code
6962 #% Do not delete the line below; configure depends on this
6965 \begin_layout LyX-Code
6976 \begin_layout Plain Layout
6985 eXClass[article,foo.sty]{Article (with My Own Headings)}
6988 \begin_layout LyX-Code
6993 DeclareCategory{Articles}
6996 \begin_layout Standard
6998 \begin_inset Flex Code
7001 \begin_layout Plain Layout
7007 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7010 \begin_layout LyX-Code
7013 #% Do not delete the line below; configure depends on this
7016 \begin_layout LyX-Code
7021 DeclareDocBookClass[article]{SGML (DocBook article)}
7024 \begin_layout LyX-Code
7029 DeclareCategory{Articles}
7032 \begin_layout Standard
7033 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7036 \begin_layout Standard
7037 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7040 \begin_layout LyX-Code
7045 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7048 \begin_layout LyX-Code
7056 \begin_layout Standard
7057 ここで「クラス」は,\SpecialChar LaTeX
7058 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7060 名がレイアウトファイル名と同じであると仮定します.
7063 \begin_layout Standard
7064 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7065 \begin_inset Flex Code
7068 \begin_layout Plain Layout
7075 \begin_inset Flex Code
7078 \begin_layout Plain Layout
7085 \begin_inset Flex MenuItem
7088 \begin_layout Plain Layout
7089 ツール\SpecialChar menuseparator
7095 を実行し,\SpecialChar LyX
7096 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7099 \begin_layout Standard
7100 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7101 を再起動したりすることなく,その変更を確認することができます
7105 \begin_layout Plain Layout
7106 第1.6版よりも前の\SpecialChar LyX
7107 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7109 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7116 \begin_inset Flex MenuItem
7119 \begin_layout Plain Layout
7125 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7126 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7129 \begin_layout Standard
7135 \begin_inset Flex MenuItem
7138 \begin_layout Plain Layout
7144 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7148 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7152 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7154 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7158 \begin_layout Plain Layout
7159 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7160 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7161 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7168 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7172 \begin_layout Plain Layout
7173 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7181 \begin_layout Subsection
7185 \begin_layout Standard
7186 モジュールは,以下のような行で始まらなくてはなりません.
7189 \begin_layout LyX-Code
7196 \begin_layout Plain Layout
7203 yXModule[endnotes.sty]{Endnotes}
7206 \begin_layout Standard
7207 波括弧内に入っている必須引数はモジュール名で,これは
7208 \begin_inset Flex MenuItem
7211 \begin_layout Plain Layout
7212 文書\SpecialChar menuseparator
7218 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7219 パッケージをすべて宣言します.また,非必須引数として,
7220 \begin_inset Flex Code
7223 \begin_layout Plain Layout
7230 \begin_inset Flex Code
7233 \begin_layout Plain Layout
7240 \begin_inset Flex Code
7243 \begin_layout Plain Layout
7249 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7252 \begin_layout Standard
7253 それから,以下のようなモジュール宣言を行います
7257 \begin_layout Plain Layout
7258 モジュールを\SpecialChar LyX
7259 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7267 \begin_layout LyX-Code
7271 \begin_layout LyX-Code
7272 #Adds an endnote command, in addition to footnotes.
7276 \begin_layout LyX-Code
7277 #You will need to add
7279 theendnotes in TeX code where you
7282 \begin_layout LyX-Code
7283 #want the endnotes to appear.
7287 \begin_layout LyX-Code
7291 \begin_layout LyX-Code
7292 #Requires: somemodule | othermodule
7295 \begin_layout LyX-Code
7296 #Excludes: badmodule
7299 \begin_layout Standard
7300 ここで説明(Description)は,
7301 \begin_inset Flex MenuItem
7304 \begin_layout Plain Layout
7305 文書\SpecialChar menuseparator
7311 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7312 \begin_inset Flex Code
7315 \begin_layout Plain Layout
7321 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7322 \begin_inset Flex Code
7325 \begin_layout Plain Layout
7331 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7332 イプ記号「|」で区切らなくてはなりません.
7333 \begin_inset Flex Code
7336 \begin_layout Plain Layout
7342 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7343 \begin_inset Flex Code
7346 \begin_layout Plain Layout
7356 が使用されていればよいということです.同様に,
7357 \begin_inset Flex Code
7360 \begin_layout Plain Layout
7366 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7367 \begin_inset Flex Code
7370 \begin_layout Plain Layout
7376 拡張子を除いたファイル名で認識されることに注意してください.つまり
7377 \begin_inset Flex Code
7380 \begin_layout Plain Layout
7387 \begin_inset Flex Code
7390 \begin_layout Plain Layout
7399 \begin_layout Subsection
7403 \begin_layout Standard
7404 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7407 \begin_layout Description
7408 \begin_inset Flex Code
7411 \begin_layout Plain Layout
7418 \begin_inset Flex Code
7421 \begin_layout Plain Layout
7430 \begin_layout Standard
7431 このタグは\SpecialChar LyX
7433 \begin_inset space ~
7436 1.4.0で導入されました.\SpecialChar LyX
7438 \begin_inset space ~
7441 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7442 現行版のファイル形式は,書式59です.しかし,\SpecialChar LyX
7443 の各版は,旧版の\SpecialChar LyX
7445 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7448 \begin_layout Subsection
7449 \begin_inset CommandInset label
7451 name "subsec:汎用テキストクラスパラメータ"
7458 \begin_layout Standard
7459 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7460 \begin_inset Flex Code
7463 \begin_layout Plain Layout
7469 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7473 .モジュールには,すべてのレイアウトタグを使用することができます).
7476 \begin_layout Description
7477 \begin_inset Flex Code
7480 \begin_layout Plain Layout
7486 この文書クラスがXHTMLに出力されるときに,
7487 \begin_inset Flex Code
7490 \begin_layout Plain Layout
7496 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7497 \begin_inset Flex Code
7500 \begin_layout Plain Layout
7506 に出力するものであれば,何でも使用することができます.「
7507 \begin_inset Flex Code
7510 \begin_layout Plain Layout
7519 \begin_layout Description
7520 \begin_inset Flex Code
7523 \begin_layout Plain Layout
7529 文書プリアンブルに書き加えられる情報です.「
7530 \begin_inset Flex Code
7533 \begin_layout Plain Layout
7542 \begin_layout Description
7543 \begin_inset Flex Code
7546 \begin_layout Plain Layout
7552 書誌情報の表示に使う書式を定義します.詳細については,
7553 \begin_inset CommandInset ref
7555 reference "subsec:引用書式指定"
7560 \begin_inset Flex Code
7563 \begin_layout Plain Layout
7572 \begin_layout Description
7573 \begin_inset Flex Code
7576 \begin_layout Plain Layout
7582 文書クラスがサポートする様々な大域オプションを記します.説明は,
7583 \begin_inset CommandInset ref
7585 reference "subsec:ClassOptions"
7590 \begin_inset Flex Code
7593 \begin_layout Plain Layout
7602 \begin_layout Description
7603 \begin_inset Flex Code
7606 \begin_layout Plain Layout
7613 \begin_inset Flex Code
7616 \begin_layout Plain Layout
7625 \begin_inset space \thinspace{}
7629 \begin_inset Flex Code
7632 \begin_layout Plain Layout
7638 ] 文書クラスが既定で1段組か2段組かを指定します.
7639 \begin_inset Flex MenuItem
7642 \begin_layout Plain Layout
7643 文書\SpecialChar menuseparator
7652 \begin_layout Description
7653 \begin_inset Flex Code
7656 \begin_layout Plain Layout
7663 \begin_inset Flex Code
7666 \begin_layout Plain Layout
7672 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7673 \begin_inset Flex Code
7676 \begin_layout Plain Layout
7683 \begin_inset Newline newline
7687 \begin_inset CommandInset ref
7689 reference "subsec:カウンタ"
7696 \begin_layout Description
7697 \begin_inset Flex Code
7700 \begin_layout Plain Layout
7706 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7707 \begin_inset CommandInset ref
7709 reference "subsec:フォント指定"
7714 \begin_inset Flex Code
7717 \begin_layout Plain Layout
7726 \begin_layout Description
7727 \begin_inset Flex Code
7730 \begin_layout Plain Layout
7737 \begin_inset Flex Code
7740 \begin_layout Plain Layout
7746 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7747 \begin_inset Flex Code
7750 \begin_layout Plain Layout
7756 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7757 既存の文書にこの文書クラスが選択したときのみ該当します).
7760 \begin_layout Description
7761 \begin_inset Flex Code
7764 \begin_layout Plain Layout
7771 \begin_inset Flex Code
7774 \begin_layout Plain Layout
7784 これは新規段落に割り当てられる様式であり,通常は
7785 \begin_inset Flex MenuItem
7788 \begin_layout Plain Layout
7794 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7797 \begin_layout Description
7798 \begin_inset Flex Code
7801 \begin_layout Plain Layout
7808 \begin_inset Flex Code
7811 \begin_layout Plain Layout
7818 \begin_inset Flex Code
7821 \begin_layout Plain Layout
7827 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7829 \begin_inset Flex Code
7832 \begin_layout Plain Layout
7838 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7842 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7843 \begin_inset CommandInset ref
7845 reference "subsec:レイアウトモジュール"
7852 \begin_layout Description
7853 \begin_inset Flex Code
7856 \begin_layout Plain Layout
7863 \begin_inset CommandInset ref
7865 reference "subsec:フロート"
7870 \begin_inset Flex Code
7873 \begin_layout Plain Layout
7882 \begin_layout Description
7883 \begin_inset Flex Code
7886 \begin_layout Plain Layout
7892 この文書クラスがXHTMLに出力されるときに,
7893 \begin_inset Flex Code
7896 \begin_layout Plain Layout
7902 ブロックに出力される情報です.これより前に出現した
7903 \begin_inset Flex Code
7906 \begin_layout Plain Layout
7913 \begin_inset Flex Code
7916 \begin_layout Plain Layout
7922 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7923 \begin_inset Flex Code
7926 \begin_layout Plain Layout
7933 \begin_inset Flex Code
7936 \begin_layout Plain Layout
7945 \begin_layout Description
7946 \begin_inset Flex Code
7949 \begin_layout Plain Layout
7956 \begin_inset Flex Code
7959 \begin_layout Plain Layout
7965 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7966 .これを指定しない場合には,\SpecialChar LyX
7967 はどのレイアウトを使用するべきか,解析しようと試みます.
7970 \begin_layout Description
7971 \begin_inset Flex Code
7974 \begin_layout Plain Layout
7981 \begin_inset Flex Code
7984 \begin_layout Plain Layout
7990 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7991 \begin_inset Flex Code
7994 \begin_layout Plain Layout
8001 \begin_inset Newline newline
8005 \begin_inset CommandInset ref
8007 reference "subsec:カウンタ"
8014 \begin_layout Description
8015 \begin_inset Flex Code
8018 \begin_layout Plain Layout
8025 \begin_inset Flex Code
8028 \begin_layout Plain Layout
8034 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8035 \begin_inset Flex Code
8038 \begin_layout Plain Layout
8047 \begin_layout Description
8048 \begin_inset Flex Code
8051 \begin_layout Plain Layout
8058 \begin_inset Flex Code
8061 \begin_layout Plain Layout
8071 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8073 \begin_inset Flex Code
8076 \begin_layout Plain Layout
8085 \begin_layout Description
8086 \begin_inset Flex Code
8089 \begin_layout Plain Layout
8096 \begin_inset Flex Code
8099 \begin_layout Plain Layout
8109 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8110 \begin_inset Flex Code
8113 \begin_layout Plain Layout
8120 \begin_inset Newline newline
8124 \begin_inset CommandInset ref
8126 reference "subsec:任意設定差込枠"
8133 \begin_layout Description
8134 \begin_inset Flex Code
8137 \begin_layout Plain Layout
8144 \begin_inset Flex Code
8147 \begin_layout Plain Layout
8153 ] 画面上の左余白の幅を指示する文字列.例:「
8154 \begin_inset Flex Code
8157 \begin_layout Plain Layout
8163 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8166 \begin_layout Description
8167 \begin_inset Flex Code
8170 \begin_layout Plain Layout
8177 \begin_inset Flex Code
8180 \begin_layout Plain Layout
8186 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8189 \begin_layout Description
8190 \begin_inset Flex Code
8193 \begin_layout Plain Layout
8200 \begin_inset Flex Code
8203 \begin_layout Plain Layout
8209 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8212 \begin_layout Description
8213 \begin_inset Flex Code
8216 \begin_layout Plain Layout
8223 \begin_inset Flex Code
8226 \begin_layout Plain Layout
8232 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8235 \begin_layout Description
8236 \begin_inset Flex Code
8239 \begin_layout Plain Layout
8246 \begin_inset Flex Code
8249 \begin_layout Plain Layout
8255 ] このクラスによって生成されるファイル形式を示す文字列(
8259 ダイアログで定義される形のもの).おもに,
8260 \begin_inset Flex Code
8263 \begin_layout Plain Layout
8270 \begin_inset Flex Code
8273 \begin_layout Plain Layout
8279 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8280 \begin_inset Flex Code
8283 \begin_layout Plain Layout
8289 パラメーターに遭遇したときには,この文字列は,「
8290 \begin_inset Flex Code
8293 \begin_layout Plain Layout
8300 \begin_inset Flex Code
8303 \begin_layout Plain Layout
8314 \begin_layout Description
8315 \begin_inset Flex Code
8318 \begin_layout Plain Layout
8325 \begin_inset Flex Code
8328 \begin_layout Plain Layout
8339 \begin_inset Flex Code
8342 \begin_layout Plain Layout
8349 \begin_inset Flex Code
8352 \begin_layout Plain Layout
8358 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8361 \begin_layout Description
8362 \begin_inset Flex Code
8365 \begin_layout Plain Layout
8372 \begin_inset Flex Code
8375 \begin_layout Plain Layout
8382 \begin_inset Flex Code
8385 \begin_layout Plain Layout
8391 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8392 \begin_inset Flex Code
8395 \begin_layout Plain Layout
8396 PackageOptions natbib square
8402 \begin_inset Flex Code
8405 \begin_layout Plain Layout
8412 \begin_inset Flex Code
8415 \begin_layout Plain Layout
8421 オプションとともに読み込みます(\SpecialChar TeX
8423 \begin_inset Flex Code
8426 \begin_layout Plain Layout
8432 を読み込む前に,\SpecialChar LyX
8434 \begin_inset Flex Code
8437 \begin_layout Plain Layout
8440 PassOptionsToPackage{natbib}{square}
8448 \begin_layout Description
8449 \begin_inset Flex Code
8452 \begin_layout Plain Layout
8461 \begin_inset Flex Code
8464 \begin_layout Plain Layout
8473 \begin_inset Flex Code
8476 \begin_layout Plain Layout
8483 \begin_inset Flex Code
8486 \begin_layout Plain Layout
8493 \begin_inset Flex MenuItem
8496 \begin_layout Plain Layout
8497 文書\SpecialChar menuseparator
8506 \begin_layout Description
8507 \begin_inset Flex Code
8510 \begin_layout Plain Layout
8517 文書のプリアンブルを設定します.前に行った
8518 \begin_inset Flex Code
8521 \begin_layout Plain Layout
8528 \begin_inset Flex Code
8531 \begin_layout Plain Layout
8537 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8538 \begin_inset Flex Code
8541 \begin_layout Plain Layout
8548 \begin_inset Flex Code
8551 \begin_layout Plain Layout
8560 \begin_layout Description
8561 \begin_inset Flex Code
8564 \begin_layout Plain Layout
8571 \begin_inset Flex Code
8574 \begin_layout Plain Layout
8581 \begin_inset Flex Code
8584 \begin_layout Plain Layout
8593 \begin_inset Flex Code
8596 \begin_layout Plain Layout
8603 \begin_inset Flex Code
8606 \begin_layout Plain Layout
8612 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8613 \begin_inset Flex Code
8616 \begin_layout Plain Layout
8623 \begin_inset Flex Code
8626 \begin_layout Plain Layout
8634 \begin_inset Flex Code
8637 \begin_layout Plain Layout
8644 \begin_inset Flex Code
8647 \begin_layout Plain Layout
8655 \begin_inset CommandInset ref
8657 reference "chap:関数一覧"
8664 \begin_layout Description
8665 \begin_inset Flex Code
8668 \begin_layout Plain Layout
8675 \begin_inset Flex Code
8678 \begin_layout Plain Layout
8685 \begin_inset Flex Code
8688 \begin_layout Plain Layout
8694 で表されているモジュールの機能を提供することを示し,
8695 \begin_inset Flex Code
8698 \begin_layout Plain Layout
8705 \begin_inset Flex Code
8708 \begin_layout Plain Layout
8714 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8715 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8718 \begin_layout Description
8719 \begin_inset Flex Code
8722 \begin_layout Plain Layout
8729 \begin_inset Flex Code
8732 \begin_layout Plain Layout
8739 \begin_inset Flex Code
8742 \begin_layout Plain Layout
8748 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8750 \begin_inset CommandInset ref
8752 reference "chap:関数一覧"
8756 を参照).特定のオプションをとるパッケージを要求する場合,
8757 \begin_inset Flex Code
8760 \begin_layout Plain Layout
8769 \begin_layout Description
8770 \begin_inset Flex Code
8773 \begin_layout Plain Layout
8780 \begin_inset Flex Code
8783 \begin_layout Plain Layout
8789 ] 画面上の右余白の幅を指示する文字列.例:「
8790 \begin_inset Flex Code
8793 \begin_layout Plain Layout
8802 \begin_layout Description
8803 \begin_inset Flex Code
8806 \begin_layout Plain Layout
8813 \begin_inset Flex Code
8816 \begin_layout Plain Layout
8822 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8824 \begin_inset Flex Code
8827 \begin_layout Plain Layout
8836 \begin_layout Description
8837 \begin_inset Flex Code
8840 \begin_layout Plain Layout
8849 \begin_inset Flex Code
8852 \begin_layout Plain Layout
8861 \begin_inset space \thinspace{}
8865 \begin_inset Flex Code
8868 \begin_layout Plain Layout
8874 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8875 \begin_inset Flex MenuItem
8878 \begin_layout Plain Layout
8879 文書\SpecialChar menuseparator
8888 \begin_layout Description
8889 \begin_inset Flex Code
8892 \begin_layout Plain Layout
8899 \begin_inset Flex Code
8902 \begin_layout Plain Layout
8912 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8913 \begin_inset Flex Code
8916 \begin_layout Plain Layout
8923 \begin_inset Newline newline
8927 \begin_inset CommandInset ref
8929 reference "subsec:段落様式-XHTML"
8936 \begin_layout Description
8937 \begin_inset Flex Code
8940 \begin_layout Plain Layout
8947 \begin_inset Flex Code
8950 \begin_layout Plain Layout
8957 \begin_inset Flex Code
8960 \begin_layout Plain Layout
8966 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8968 \begin_inset Flex Code
8971 \begin_layout Plain Layout
8980 \begin_layout Description
8981 \begin_inset Flex Code
8984 \begin_layout Plain Layout
8991 \begin_inset Flex Code
8994 \begin_layout Plain Layout
9003 \begin_inset Flex Code
9006 \begin_layout Plain Layout
9012 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9013 \begin_inset Flex Code
9016 \begin_layout Plain Layout
9023 \begin_inset Flex Code
9026 \begin_layout Plain Layout
9028 \begin_inset space ~
9036 」が指定されている最後のレイアウトの後に,
9037 \begin_inset Flex Code
9040 \begin_layout Plain Layout
9046 で指定したマクロ名を挿入することを意味します.
9047 \begin_inset Flex Code
9050 \begin_layout Plain Layout
9057 \begin_inset Flex Code
9060 \begin_layout Plain Layout
9062 \begin_inset space ~
9071 \begin_inset Flex Code
9074 \begin_layout Plain Layout
9080 で指定した環境でくるむ場合に対応します.
9083 \begin_layout Description
9084 \begin_inset Flex Code
9087 \begin_layout Plain Layout
9094 \begin_inset Flex Code
9097 \begin_layout Plain Layout
9103 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9105 \begin_inset Flex Code
9108 \begin_layout Plain Layout
9117 \begin_layout Subsection
9118 \begin_inset Flex Code
9121 \begin_layout Plain Layout
9128 \begin_inset CommandInset label
9130 name "subsec:ClassOptions"
9137 \begin_layout Standard
9138 \begin_inset Flex Code
9141 \begin_layout Plain Layout
9150 \begin_layout Description
9151 \begin_inset Flex Code
9154 \begin_layout Plain Layout
9161 \begin_inset Flex Code
9164 \begin_layout Plain Layout
9170 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9171 \begin_inset Flex Code
9174 \begin_layout Plain Layout
9183 \begin_layout Description
9184 \begin_inset Flex Code
9187 \begin_layout Plain Layout
9193 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9194 \begin_inset Quotes eld
9197 -//OASIS//DTD DocBook V4.2//EN
9198 \begin_inset Quotes erd
9204 \begin_layout Description
9205 \begin_inset Flex Code
9208 \begin_layout Plain Layout
9215 \begin_inset Flex Code
9218 \begin_layout Plain Layout
9219 文字列="empty|plain|headings|fancy"
9225 \begin_inset Flex Code
9228 \begin_layout Plain Layout
9237 \begin_layout Description
9238 \begin_inset Flex Code
9241 \begin_layout Plain Layout
9248 \begin_inset Flex Code
9251 \begin_layout Plain Layout
9258 \begin_inset Flex Code
9261 \begin_layout Plain Layout
9269 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9272 \begin_layout Standard
9273 \begin_inset Flex Code
9276 \begin_layout Plain Layout
9283 \begin_inset Flex Code
9286 \begin_layout Plain Layout
9295 \begin_layout Subsection
9297 \begin_inset CommandInset label
9306 \begin_layout Standard
9311 \begin_layout Plain Layout
9312 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9320 \begin_layout LyX-Code
9327 \begin_layout LyX-Code
9331 \begin_layout LyX-Code
9335 \begin_layout Standard
9336 ここでは,以下のコマンドを使用することができます.
9339 \begin_layout Description
9340 \begin_inset Flex Code
9343 \begin_layout Plain Layout
9350 \begin_inset Flex Code
9353 \begin_layout Plain Layout
9358 , left, right, center
9366 \begin_layout Description
9367 \begin_inset Flex Code
9370 \begin_layout Plain Layout
9377 \begin_inset Flex Code
9380 \begin_layout Plain Layout
9385 , left, right, center
9390 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9391 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9395 \begin_layout Description
9396 \begin_inset Flex Code
9399 \begin_layout Plain Layout
9406 \begin_inset Flex Code
9409 \begin_layout Plain Layout
9415 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9417 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9418 \begin_inset Flex Code
9421 \begin_layout Plain Layout
9427 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9428 \begin_inset Separator latexpar
9471 \begin_layout Standard
9472 \begin_inset Flex Code
9475 \begin_layout Plain Layout
9481 定義内部では,以下の指定をすることができます.
9484 \begin_layout Itemize
9485 \begin_inset Flex Code
9488 \begin_layout Plain Layout
9495 \begin_inset Flex Code
9498 \begin_layout Plain Layout
9504 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9505 \begin_inset Flex Code
9508 \begin_layout Plain Layout
9514 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9515 \begin_inset space \space{}
9519 \begin_inset Quotes eld
9523 \begin_inset Flex Code
9526 \begin_layout Plain Layout
9533 \begin_inset Quotes erd
9539 \begin_layout Itemize
9540 \begin_inset Flex Code
9543 \begin_layout Plain Layout
9550 \begin_inset Flex Code
9553 \begin_layout Plain Layout
9559 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9560 \begin_inset space \space{}
9564 \begin_inset Quotes eld
9568 \begin_inset Flex Code
9571 \begin_layout Plain Layout
9578 \begin_inset Quotes erd
9581 ).この指定は必須ではありません.指定しない場合には,代わりに
9582 \begin_inset Flex Code
9585 \begin_layout Plain Layout
9594 \begin_layout Itemize
9595 \begin_inset Flex Code
9598 \begin_layout Plain Layout
9605 \begin_inset Flex Code
9608 \begin_layout Plain Layout
9614 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9617 \begin_layout Itemize
9618 \begin_inset Flex Code
9621 \begin_layout Plain Layout
9628 \begin_inset Flex Code
9631 \begin_layout Plain Layout
9640 \begin_inset space \thinspace{}
9644 \begin_inset Flex Code
9647 \begin_layout Plain Layout
9653 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9655 \begin_inset Flex Code
9658 \begin_layout Plain Layout
9665 \begin_inset Flex Code
9668 \begin_layout Plain Layout
9677 \begin_layout Itemize
9678 \begin_inset Flex Code
9681 \begin_layout Plain Layout
9688 \begin_inset Flex Code
9691 \begin_layout Plain Layout
9697 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9699 \begin_inset Flex Code
9702 \begin_layout Plain Layout
9710 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9711 \begin_inset Flex Code
9714 \begin_layout Plain Layout
9721 \begin_inset Flex Code
9724 \begin_layout Plain Layout
9730 ステートメントを置くことで実現できます.
9733 \begin_layout Itemize
9734 \begin_inset Flex Code
9737 \begin_layout Plain Layout
9744 \begin_inset Flex Code
9747 \begin_layout Plain Layout
9754 \begin_inset Flex Code
9757 \begin_layout Plain Layout
9764 \begin_inset Flex Code
9767 \begin_layout Plain Layout
9773 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9774 \begin_inset Flex Code
9777 \begin_layout Plain Layout
9786 \begin_layout Itemize
9787 \begin_inset Flex Code
9790 \begin_layout Plain Layout
9797 \begin_inset Flex Code
9800 \begin_layout Plain Layout
9807 \begin_inset Flex Code
9810 \begin_layout Plain Layout
9817 \begin_inset Flex Code
9820 \begin_layout Plain Layout
9826 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9827 \begin_inset Flex Code
9830 \begin_layout Plain Layout
9839 \begin_layout Itemize
9840 \begin_inset Flex Code
9843 \begin_layout Plain Layout
9850 \begin_inset Flex Code
9853 \begin_layout Plain Layout
9859 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9860 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9863 \begin_layout Itemize
9864 \begin_inset Flex Code
9867 \begin_layout Plain Layout
9874 \begin_inset Flex Code
9877 \begin_layout Plain Layout
9883 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9886 \begin_layout Itemize
9887 \begin_inset Flex Code
9890 \begin_layout Plain Layout
9897 \begin_inset CommandInset ref
9899 reference "subsec:フォント指定"
9906 \begin_layout Itemize
9907 \begin_inset Flex Code
9910 \begin_layout Plain Layout
9917 \begin_inset CommandInset ref
9919 reference "subsec:フォント指定"
9926 \begin_layout Itemize
9927 \begin_inset Flex Code
9930 \begin_layout Plain Layout
9937 \begin_inset Flex Code
9940 \begin_layout Plain Layout
9945 , Minimalistic, Conglomerate
9950 ] 差込枠の枠とボタンに用いられる装飾様式.
9953 \begin_layout Itemize
9954 \begin_inset Flex Code
9957 \begin_layout Plain Layout
9964 \begin_inset Flex Code
9967 \begin_layout Plain Layout
9974 \begin_inset Flex Code
9977 \begin_layout Plain Layout
9983 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9986 \begin_layout Itemize
9987 \begin_inset Flex Code
9990 \begin_layout Plain Layout
9997 \begin_inset Flex Code
10000 \begin_layout Plain Layout
10007 \begin_inset Flex Code
10010 \begin_layout Plain Layout
10016 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10019 \begin_layout Itemize
10020 \begin_inset Flex Code
10023 \begin_layout Plain Layout
10030 \begin_inset Flex Code
10033 \begin_layout Plain Layout
10044 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10045 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10048 \begin_layout Standard
10050 \begin_inset Flex Code
10053 \begin_layout Plain Layout
10060 \begin_inset Flex Code
10063 \begin_layout Plain Layout
10069 のとき,各レイアウトで\SpecialChar LyX
10070 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10071 \begin_inset Flex Code
10074 \begin_layout Plain Layout
10080 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10081 \begin_inset Flex Code
10084 \begin_layout Plain Layout
10091 \begin_inset Flex Code
10094 \begin_layout Plain Layout
10101 \begin_inset Flex Code
10104 \begin_layout Plain Layout
10113 \begin_layout Standard
10115 \begin_inset Flex Code
10118 \begin_layout Plain Layout
10127 \begin_inset Flex Code
10130 \begin_layout Plain Layout
10139 \begin_inset Flex Code
10142 \begin_layout Plain Layout
10149 \begin_inset Flex Code
10152 \begin_layout Plain Layout
10162 \begin_layout Description
10163 \begin_inset Flex Code
10166 \begin_layout Plain Layout
10173 \begin_inset Flex Code
10176 \begin_layout Plain Layout
10182 宣言をすべて,完全に上書きしますので注意してください.「
10183 \begin_inset Flex Code
10186 \begin_layout Plain Layout
10192 」で閉じる必要があります.これの利用法についての詳細は,第
10193 \begin_inset CommandInset ref
10195 reference "subsec:段落様式の国際化"
10202 \begin_layout Description
10203 \begin_inset Flex Code
10206 \begin_layout Plain Layout
10213 \begin_inset Flex Code
10216 \begin_layout Plain Layout
10226 \begin_layout Plain Layout
10227 ここで「浮動小数点型」とは1.5のような実数を指します.
10232 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10236 \begin_layout Description
10237 \begin_inset Flex Code
10240 \begin_layout Plain Layout
10247 \begin_inset Flex Code
10250 \begin_layout Plain Layout
10256 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10257 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10260 \begin_layout Description
10261 \begin_inset Flex Code
10264 \begin_layout Plain Layout
10270 XMLコマンドの深度.XML型の書式でのみ使用されます.
10273 \begin_layout Description
10274 \begin_inset Flex Code
10277 \begin_layout Plain Layout
10284 \begin_inset Flex Code
10287 \begin_layout Plain Layout
10293 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10296 \begin_layout Description
10297 \begin_inset Flex Code
10300 \begin_layout Plain Layout
10307 \begin_inset Flex Code
10310 \begin_layout Plain Layout
10324 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10328 \begin_layout Plain Layout
10329 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10330 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10339 \begin_layout Description
10340 \begin_inset Flex Code
10343 \begin_layout Plain Layout
10350 \begin_inset Flex Code
10353 \begin_layout Plain Layout
10358 , Box, Filled_Box, Static
10364 \begin_inset Flex Code
10367 \begin_layout Plain Layout
10374 \begin_inset Flex Code
10377 \begin_layout Plain Layout
10384 \begin_inset Flex Code
10387 \begin_layout Plain Layout
10394 \begin_inset Flex Code
10397 \begin_layout Plain Layout
10403 のいずれかの場合は,段落群の最後)に置くラベル.
10404 \begin_inset Flex Code
10407 \begin_layout Plain Layout
10414 \begin_inset Flex Code
10417 \begin_layout Plain Layout
10424 \begin_inset Flex Code
10427 \begin_layout Plain Layout
10433 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10434 \begin_inset Flex Code
10437 \begin_layout Plain Layout
10446 \begin_layout Description
10447 \begin_inset Flex Code
10450 \begin_layout Plain Layout
10457 \begin_inset Flex Code
10460 \begin_layout Plain Layout
10467 \begin_inset Flex Code
10470 \begin_layout Plain Layout
10477 \begin_inset Flex Code
10480 \begin_layout Plain Layout
10489 \begin_layout Description
10490 \begin_inset Flex Code
10493 \begin_layout Plain Layout
10504 \begin_inset CommandInset ref
10506 reference "subsec:フォント指定"
10510 節を参照.このフォントを定義すると,自動的に
10511 \begin_inset Flex Code
10514 \begin_layout Plain Layout
10520 も同じ値で定義されることに注意してください.したがって,
10521 \begin_inset Flex Code
10524 \begin_layout Plain Layout
10530 も同時に定義したい場合には,これを先に定義してください.
10533 \begin_layout Description
10534 \begin_inset Flex Code
10537 \begin_layout Plain Layout
10544 \begin_inset Flex Code
10547 \begin_layout Plain Layout
10553 ] 新しい様式を\SpecialChar LyX
10554 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10555 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10557 \begin_inset Flex Code
10560 \begin_layout Plain Layout
10566 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10568 もこの様式を取り扱えるようになります.
10569 \begin_inset Flex Code
10572 \begin_layout Plain Layout
10578 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10579 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10582 \begin_layout Description
10583 \begin_inset Flex Code
10586 \begin_layout Plain Layout
10595 \begin_inset Flex Code
10598 \begin_layout Plain Layout
10607 \begin_inset space \thinspace{}
10611 \begin_inset Flex Code
10614 \begin_layout Plain Layout
10621 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10622 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10623 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10624 \begin_inset Flex Code
10627 \begin_layout Plain Layout
10633 を有効にすることが認められています.\SpecialChar LyX
10634 は,\SpecialChar LaTeX
10635 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10638 \begin_layout Description
10639 \begin_inset Flex Code
10642 \begin_layout Plain Layout
10648 これらのタグは,XHTML出力で使用されます.第
10649 \begin_inset CommandInset ref
10651 reference "subsec:段落様式-XHTML"
10658 \begin_layout Description
10659 \begin_inset Flex Code
10662 \begin_layout Plain Layout
10668 [[FIXME]] (XML型書式でのみ使用されます.)
10671 \begin_layout Description
10672 \begin_inset Flex Code
10675 \begin_layout Plain Layout
10684 \begin_inset Flex Code
10687 \begin_layout Plain Layout
10696 \begin_inset space \thinspace{}
10700 \begin_inset Flex Code
10703 \begin_layout Plain Layout
10710 \begin_inset Flex Code
10713 \begin_layout Plain Layout
10719 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10721 \begin_inset Flex Code
10724 \begin_layout Plain Layout
10731 \begin_inset Flex Code
10734 \begin_layout Plain Layout
10741 \begin_inset Flex Code
10744 \begin_layout Plain Layout
10753 \begin_layout Description
10754 \begin_inset Flex Code
10757 \begin_layout Plain Layout
10766 \begin_inset Flex Code
10769 \begin_layout Plain Layout
10778 \begin_inset space \thinspace{}
10782 \begin_inset Flex Code
10785 \begin_layout Plain Layout
10792 \begin_inset Flex Code
10795 \begin_layout Plain Layout
10801 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10802 \begin_inset Flex Code
10805 \begin_layout Plain Layout
10812 \begin_inset Flex Code
10815 \begin_layout Plain Layout
10824 \begin_layout Description
10825 \begin_inset Flex Code
10828 \begin_layout Plain Layout
10835 \begin_inset Flex Code
10838 \begin_layout Plain Layout
10844 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10845 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10847 \begin_inset Flex Code
10850 \begin_layout Plain Layout
10861 \begin_layout Description
10862 \begin_inset Flex Code
10865 \begin_layout Plain Layout
10872 \begin_inset Flex Code
10875 \begin_layout Plain Layout
10881 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10882 \begin_inset Flex Code
10885 \begin_layout Plain Layout
10891 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10892 \begin_inset Flex Code
10895 \begin_layout Plain Layout
10908 \begin_layout Description
10909 \begin_inset Flex Code
10912 \begin_layout Plain Layout
10918 [[FIXME]] (XML型書式でのみ使用されます.)
10921 \begin_layout Description
10922 \begin_inset Flex Code
10925 \begin_layout Plain Layout
10934 \begin_inset Flex Code
10937 \begin_layout Plain Layout
10946 \begin_inset space \thinspace{}
10950 \begin_inset Flex Code
10953 \begin_layout Plain Layout
10959 ] 段落を空のままにすると,\SpecialChar LaTeX
10960 出力が空になってしまうので,通常,\SpecialChar LyX
10961 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10962 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10963 まないある種の改行として使用することもあります.
10966 \begin_layout Description
10967 \begin_inset Flex Code
10970 \begin_layout Plain Layout
10977 \begin_inset Flex Code
10980 \begin_layout Plain Layout
10986 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10987 \begin_inset Flex Code
10990 \begin_layout Plain Layout
10997 \begin_inset Newline linebreak
11001 \begin_inset Flex Code
11004 \begin_layout Plain Layout
11005 Centered_Top_Environment
11013 \begin_layout Description
11014 \begin_inset Flex Code
11017 \begin_layout Plain Layout
11024 \begin_inset Flex Code
11027 \begin_layout Plain Layout
11033 ] 自動連番に使われるカウンタ名(詳しくは第
11034 \begin_inset CommandInset ref
11036 reference "subsec:カウンタ"
11040 節参照).カウンタがラベル中に表示されるようにするためには,
11041 \begin_inset Flex Code
11044 \begin_layout Plain Layout
11050 中で参照する必要があります.これは,少なくとも
11051 \begin_inset Flex Code
11054 \begin_layout Plain Layout
11061 \begin_inset Flex Code
11064 \begin_layout Plain Layout
11071 \begin_inset Flex Code
11074 \begin_layout Plain Layout
11081 \begin_inset Flex Code
11084 \begin_layout Plain Layout
11091 \begin_inset Newline newline
11095 \begin_inset Flex Code
11098 \begin_layout Plain Layout
11105 \begin_inset Flex Code
11108 \begin_layout Plain Layout
11114 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11115 \begin_inset Flex Code
11118 \begin_layout Plain Layout
11119 LabelCounter myenum
11124 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11125 におけるのと同様,実際に使われるカウンタは,
11126 \begin_inset Flex Code
11129 \begin_layout Plain Layout
11136 \begin_inset Flex Code
11139 \begin_layout Plain Layout
11146 \begin_inset Flex Code
11149 \begin_layout Plain Layout
11156 \begin_inset Flex Code
11159 \begin_layout Plain Layout
11165 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11166 \begin_inset Newline newline
11170 \begin_inset CommandInset ref
11172 reference "subsec:カウンタ"
11179 \begin_layout Description
11180 \begin_inset Flex Code
11183 \begin_layout Plain Layout
11190 \begin_inset CommandInset ref
11192 reference "subsec:フォント指定"
11199 \begin_layout Description
11200 \begin_inset Flex Code
11203 \begin_layout Plain Layout
11210 \begin_inset Flex Code
11213 \begin_layout Plain Layout
11219 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11222 \begin_layout Description
11223 \begin_inset Flex Code
11226 \begin_layout Plain Layout
11233 \begin_inset Flex Code
11236 \begin_layout Plain Layout
11242 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11245 \begin_layout Description
11246 \begin_inset Flex Code
11249 \begin_layout Plain Layout
11256 \begin_inset Flex Code
11259 \begin_layout Plain Layout
11266 \begin_inset Flex Code
11269 \begin_layout Plain Layout
11276 \begin_inset Flex Code
11279 \begin_layout Plain Layout
11286 \begin_inset CommandInset ref
11288 reference "subsec:カウンタ"
11292 に述べられている特別な整形コマンドを含めることができます.
11295 \begin_layout Description
11296 \begin_inset Flex Code
11299 \begin_layout Plain Layout
11300 LabelStringAppendix
11306 \begin_inset Flex Code
11309 \begin_layout Plain Layout
11316 \begin_inset Flex Code
11319 \begin_layout Plain Layout
11326 \begin_inset Flex Code
11329 \begin_layout Plain Layout
11336 \begin_inset Flex Code
11339 \begin_layout Plain Layout
11340 LabelStringAppendix
11345 をもリセットすることに注意してください.
11348 \begin_layout Description
11349 \begin_inset Flex Code
11352 \begin_layout Plain Layout
11358 [FIXME] (XML型書式でのみ使用されます.)
11361 \begin_layout Description
11362 \begin_inset Flex Code
11365 \begin_layout Plain Layout
11372 \begin_inset Flex Code
11375 \begin_layout Plain Layout
11380 , Manual, Static, Above,
11381 \begin_inset Newline newline
11384 Centered, Sensitive, Enumerate,
11385 \begin_inset Newline newline
11388 Itemize, Bibliography
11394 \begin_inset Separator latexpar
11401 \begin_layout Description
11402 \begin_inset Flex Code
11405 \begin_layout Plain Layout
11411 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11414 \begin_layout Description
11415 \begin_inset Flex Code
11418 \begin_layout Plain Layout
11425 \begin_inset Flex Code
11428 \begin_layout Plain Layout
11434 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11435 \begin_inset Flex Code
11438 \begin_layout Plain Layout
11445 \begin_inset Flex Code
11448 \begin_layout Plain Layout
11455 \begin_inset Flex Code
11458 \begin_layout Plain Layout
11464 の段落中,最初の段落にのみ表示されます.
11467 \begin_layout Description
11468 \begin_inset Flex Code
11471 \begin_layout Plain Layout
11478 \begin_inset Flex Code
11481 \begin_layout Plain Layout
11488 \begin_inset Flex Code
11491 \begin_layout Plain Layout
11497 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11500 \begin_layout Description
11501 \begin_inset Flex Code
11504 \begin_layout Plain Layout
11510 はキャプションラベルの「図」や「表」の特別な場合です.
11511 \begin_inset Flex Code
11514 \begin_layout Plain Layout
11520 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11521 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11522 \begin_inset Flex Code
11525 \begin_layout Plain Layout
11531 は「意味を成しません!」と表示されます.
11534 \begin_layout Description
11535 \begin_inset Flex Code
11538 \begin_layout Plain Layout
11544 は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11548 \begin_layout Description
11549 \begin_inset Flex Code
11552 \begin_layout Plain Layout
11558 は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11561 \begin_layout Description
11562 \begin_inset Flex Code
11565 \begin_layout Plain Layout
11572 \begin_inset Flex Code
11575 \begin_layout Plain Layout
11576 LatexType BibEnvironment
11585 \begin_layout Description
11586 \begin_inset Flex Code
11589 \begin_layout Plain Layout
11596 \begin_inset Flex Code
11599 \begin_layout Plain Layout
11605 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11606 \begin_inset CommandInset ref
11608 reference "subsec:段落様式の国際化"
11615 \begin_layout Description
11616 \begin_inset Flex Code
11619 \begin_layout Plain Layout
11626 \begin_inset Flex Code
11629 \begin_layout Plain Layout
11635 ] 対応する\SpecialChar LaTeX
11636 の名称です.環境名かコマンド名を指します.
11639 \begin_layout Description
11640 \begin_inset Flex Code
11643 \begin_layout Plain Layout
11650 \begin_inset Flex Code
11653 \begin_layout Plain Layout
11660 \begin_inset Flex Code
11663 \begin_layout Plain Layout
11669 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11670 内部から変更することはできません(変更可能なパラメータには
11671 \begin_inset Flex Code
11674 \begin_layout Plain Layout
11680 を使用してください).これは,全ての\SpecialChar LaTeX
11682 \begin_inset Flex Code
11685 \begin_layout Plain Layout
11694 \begin_layout Description
11695 \begin_inset Flex Code
11698 \begin_layout Plain Layout
11705 \begin_inset Flex Code
11708 \begin_layout Plain Layout
11713 , Command, Environment, Item_Environment,
11714 \begin_inset Newline newline
11717 List_Environment, Bib_Environment
11722 ] レイアウトがどのように\SpecialChar LaTeX
11727 \begin_layout Plain Layout
11728 これらのルールはSGMLクラスにも適用されるので,
11729 \begin_inset Flex Code
11732 \begin_layout Plain Layout
11738 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11739 \begin_inset Flex Code
11742 \begin_layout Plain Layout
11754 \begin_inset Separator latexpar
11761 \begin_layout Description
11762 \begin_inset Flex Code
11765 \begin_layout Plain Layout
11774 \begin_layout Description
11775 \begin_inset Flex Code
11778 \begin_layout Plain Layout
11785 \begin_inset Flex Code
11788 \begin_layout Plain Layout
11795 {\SpecialChar ldots
11804 \begin_layout Description
11805 \begin_inset Flex Code
11808 \begin_layout Plain Layout
11815 \begin_inset Flex Code
11818 \begin_layout Plain Layout
11825 }\SpecialChar ldots
11840 \begin_layout Description
11841 \begin_inset Flex Code
11844 \begin_layout Plain Layout
11851 \begin_inset Flex Code
11854 \begin_layout Plain Layout
11861 \begin_inset Flex Code
11864 \begin_layout Plain Layout
11872 がこの環境のすべての段落に付けられるところだけが異なっています.
11875 \begin_layout Description
11876 \begin_inset Flex Code
11879 \begin_layout Plain Layout
11886 \begin_inset Flex Code
11889 \begin_layout Plain Layout
11896 \begin_inset Flex Code
11899 \begin_layout Plain Layout
11905 が環境の引数として渡されるところだけが異なっています.
11906 \begin_inset Flex Code
11909 \begin_layout Plain Layout
11916 \begin_inset Flex MenuItem
11919 \begin_layout Plain Layout
11920 編集\SpecialChar menuseparator
11929 \begin_layout Description
11930 \begin_inset Flex Code
11933 \begin_layout Plain Layout
11940 \begin_inset Flex Code
11943 \begin_layout Plain Layout
11949 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11950 \begin_inset Newline newline
11954 \begin_inset Flex Code
11957 \begin_layout Plain Layout
11960 begin{thebibliography}{99}
11966 \begin_inset Newline newline
11969 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11972 \begin_layout Standard
11973 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11974 出力は,\SpecialChar LaTeX
11978 \begin_layout LyX-Code
11981 LatexName[LatexParam]{\SpecialChar ldots
11985 \begin_layout Standard
11989 \begin_layout LyX-Code
11992 begin{LatexName}[LatexParam] \SpecialChar ldots
11998 \begin_layout Standard
12003 \begin_layout Description
12004 \begin_inset Flex Code
12007 \begin_layout Plain Layout
12014 \begin_inset Flex Code
12017 \begin_layout Plain Layout
12023 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12024 \begin_inset Flex Code
12027 \begin_layout Plain Layout
12036 \begin_layout Description
12037 \begin_inset Flex Code
12040 \begin_layout Plain Layout
12047 \begin_inset Flex Code
12050 \begin_layout Plain Layout
12056 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12057 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12060 をかけて加えられます.このパラメータは,
12061 \begin_inset Flex Code
12064 \begin_layout Plain Layout
12071 \begin_inset Flex Code
12074 \begin_layout Plain Layout
12081 \begin_inset Flex Code
12084 \begin_layout Plain Layout
12090 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12091 \begin_inset Newline newline
12095 \begin_inset Flex Code
12098 \begin_layout Plain Layout
12104 」と指定すると,段落を通常フォントの「
12105 \begin_inset Flex Code
12108 \begin_layout Plain Layout
12114 」の幅だけ行頭下げを行います.文字列の前に「
12115 \begin_inset Flex Code
12118 \begin_layout Plain Layout
12124 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12127 \begin_layout Description
12128 \begin_inset Flex Code
12131 \begin_layout Plain Layout
12138 \begin_inset Flex Code
12141 \begin_layout Plain Layout
12146 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12152 \begin_inset Newline newline
12156 \begin_inset Separator latexpar
12163 \begin_layout Description
12164 \begin_inset Flex Code
12167 \begin_layout Plain Layout
12176 \begin_layout Description
12177 \begin_inset Flex Code
12180 \begin_layout Plain Layout
12187 \begin_inset Flex MenuItem
12190 \begin_layout Plain Layout
12191 編集\SpecialChar menuseparator
12197 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12200 \begin_layout Description
12201 \begin_inset Flex Code
12204 \begin_layout Plain Layout
12210 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12211 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12214 \begin_layout Description
12215 \begin_inset Flex Code
12218 \begin_layout Plain Layout
12224 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12227 \begin_layout Description
12228 \begin_inset Flex Code
12231 \begin_layout Plain Layout
12237 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12241 \begin_layout Description
12242 \begin_inset Flex Code
12245 \begin_layout Plain Layout
12252 \begin_inset Flex Code
12255 \begin_layout Plain Layout
12264 \begin_inset space \thinspace{}
12268 \begin_inset Flex Code
12271 \begin_layout Plain Layout
12277 ] このレイアウト中の脆弱なコマンドが
12278 \begin_inset Flex Code
12281 \begin_layout Plain Layout
12289 されるべきか否か(註:これはこのコマンド自体が
12290 \begin_inset Flex Code
12293 \begin_layout Plain Layout
12308 \begin_layout Description
12309 \begin_inset Flex Code
12312 \begin_layout Plain Layout
12319 \begin_inset Flex Code
12322 \begin_layout Plain Layout
12329 \begin_inset space \thinspace{}
12333 \begin_inset Flex Code
12336 \begin_layout Plain Layout
12344 ] 新規行を\SpecialChar LaTeX
12346 \begin_inset Flex Code
12349 \begin_layout Plain Layout
12359 )に変換するか否か.\SpecialChar LyX
12360 中で\SpecialChar LaTeX
12361 編集をやりやすくするために,変換は無効にすることができます.
12364 \begin_layout Description
12365 \begin_inset Flex Code
12368 \begin_layout Plain Layout
12375 \begin_inset Flex Code
12378 \begin_layout Plain Layout
12387 \begin_inset space \thinspace{}
12391 \begin_inset Flex Code
12394 \begin_layout Plain Layout
12401 \begin_inset Flex Code
12404 \begin_layout Plain Layout
12411 \begin_inset Flex Code
12414 \begin_layout Plain Layout
12420 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12423 \begin_layout Description
12424 \begin_inset Flex Code
12427 \begin_layout Plain Layout
12434 \begin_inset Flex Code
12437 \begin_layout Plain Layout
12443 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12446 \begin_layout Description
12447 \begin_inset Flex Code
12450 \begin_layout Plain Layout
12457 \begin_inset Flex Code
12460 \begin_layout Plain Layout
12467 \begin_inset space \thinspace{}
12471 \begin_inset Flex Code
12474 \begin_layout Plain Layout
12480 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12481 \begin_inset Flex Code
12484 \begin_layout Plain Layout
12490 が一度だけ出力される効果があります.既定では,
12491 \begin_inset Flex Code
12494 \begin_layout Plain Layout
12501 \begin_inset Flex Code
12504 \begin_layout Plain Layout
12511 \begin_inset Flex Code
12514 \begin_layout Plain Layout
12520 については有効であり,他の型すべてについて無効になっています.
12523 \begin_layout Description
12524 \begin_inset Flex Code
12527 \begin_layout Plain Layout
12534 \begin_inset Flex Code
12537 \begin_layout Plain Layout
12546 \begin_inset space \thinspace{}
12550 \begin_inset Flex Code
12553 \begin_layout Plain Layout
12559 ] \SpecialChar LaTeX
12560 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12561 \begin_inset Flex Code
12564 \begin_layout Plain Layout
12570 と併用すれば,(\SpecialChar TeX
12571 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12574 \begin_layout Description
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 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12605 \begin_inset Flex Code
12608 \begin_layout Plain Layout
12614 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12615 \begin_inset Flex Code
12618 \begin_layout Plain Layout
12625 \begin_inset Flex Code
12628 \begin_layout Plain Layout
12634 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12637 \begin_layout Description
12638 \begin_inset Flex Code
12641 \begin_layout Plain Layout
12648 \begin_inset Flex Code
12651 \begin_layout Plain Layout
12657 ] このレイアウトの2段落間の垂直余白.
12660 \begin_layout Description
12661 \begin_inset Flex Code
12664 \begin_layout Plain Layout
12671 \begin_inset Flex Code
12674 \begin_layout Plain Layout
12681 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12682 択した際には,\SpecialChar LaTeX
12684 \begin_inset Flex Code
12687 \begin_layout Plain Layout
12694 \begin_inset Flex Code
12697 \begin_layout Plain Layout
12703 引数分だけ引き離されます.垂直余白は,
12704 \begin_inset Flex Code
12707 \begin_layout Plain Layout
12713 を標準フォントでの1行の高さとすると,
12714 \begin_inset Flex Code
12717 \begin_layout Plain Layout
12724 \begin_inset Formula $\times$
12728 \begin_inset Flex Code
12731 \begin_layout Plain Layout
12737 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12740 \begin_layout Description
12741 \begin_inset Flex Code
12744 \begin_layout Plain Layout
12753 \begin_inset Flex Code
12756 \begin_layout Plain Layout
12765 \begin_inset space \thinspace{}
12769 \begin_inset Flex Code
12772 \begin_layout Plain Layout
12778 ] この段落の内容が,\SpecialChar LaTeX
12779 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12782 \begin_layout Description
12783 \begin_inset Flex Code
12786 \begin_layout Plain Layout
12793 \begin_inset Flex Code
12796 \begin_layout Plain Layout
12807 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12810 \begin_layout Description
12811 \begin_inset Flex Code
12814 \begin_layout Plain Layout
12820 この様式が使用されたときに,\SpecialChar LaTeX
12821 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12822 \begin_inset Flex Code
12825 \begin_layout Plain Layout
12834 \begin_layout Description
12835 \begin_inset Flex Code
12838 \begin_layout Plain Layout
12845 \begin_inset Flex Code
12848 \begin_layout Plain Layout
12854 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12857 \begin_layout Description
12858 \begin_inset Flex Code
12861 \begin_layout Plain Layout
12868 \begin_inset Flex Code
12871 \begin_layout Plain Layout
12878 \begin_inset Flex Code
12881 \begin_layout Plain Layout
12887 を必要とするかどうか(機能詳細については,第
12888 \begin_inset CommandInset ref
12890 reference "chap:関数一覧"
12894 節参照).特定のオプションをとるパッケージを要求する場合,
12895 \begin_inset Flex Code
12898 \begin_layout Plain Layout
12904 を汎用テキストクラスパラメータとして追加して使うことができます(
12905 \begin_inset CommandInset ref
12907 reference "subsec:汎用テキストクラスパラメータ"
12914 \begin_layout Description
12915 \begin_inset Flex Code
12918 \begin_layout Plain Layout
12925 \begin_inset Flex Code
12928 \begin_layout Plain Layout
12937 \begin_inset Flex Code
12940 \begin_layout Plain Layout
12947 \begin_inset Flex Code
12950 \begin_layout Plain Layout
12956 タグで定義された)この様式の\SpecialChar LaTeX
12958 \begin_inset Flex Code
12961 \begin_layout Plain Layout
12967 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12970 \begin_layout Description
12971 \begin_inset Flex Code
12974 \begin_layout Plain Layout
12981 \begin_inset Flex Code
12984 \begin_layout Plain Layout
12990 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12991 \begin_inset Flex Code
12994 \begin_layout Plain Layout
13003 \begin_layout Description
13004 \begin_inset Flex Code
13007 \begin_layout Plain Layout
13014 \begin_inset Flex Code
13017 \begin_layout Plain Layout
13024 \begin_inset Flex Code
13027 \begin_layout Plain Layout
13036 \begin_layout Description
13037 \begin_inset Flex Code
13040 \begin_layout Plain Layout
13047 \begin_inset Flex Code
13050 \begin_layout Plain Layout
13059 \begin_inset Flex Code
13062 \begin_layout Plain Layout
13069 \begin_inset Flex Code
13072 \begin_layout Plain Layout
13079 \begin_inset Flex Code
13082 \begin_layout Plain Layout
13084 \begin_inset space ~
13100 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13101 \begin_inset Flex Code
13104 \begin_layout Plain Layout
13111 \begin_inset Flex Code
13114 \begin_layout Plain Layout
13121 \begin_inset Flex Code
13124 \begin_layout Plain Layout
13130 は,それぞれ乗数1・1.25・1.667に対応します.引数
13131 \begin_inset Flex Code
13134 \begin_layout Plain Layout
13140 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13141 \begin_inset Flex Code
13144 \begin_layout Plain Layout
13150 は,\SpecialChar LaTeX
13152 \begin_inset Flex Code
13155 \begin_layout Plain Layout
13161 パッケージを使用した,限定的な\SpecialChar LaTeX
13162 コードを生成することを意味することにご注意ください.
13165 \begin_layout Description
13166 \begin_inset Flex Code
13169 \begin_layout Plain Layout
13176 \begin_inset Flex Code
13179 \begin_layout Plain Layout
13186 \begin_inset space \thinspace{}
13190 \begin_inset Flex Code
13193 \begin_layout Plain Layout
13199 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13202 \begin_layout Description
13203 \begin_inset Flex Code
13206 \begin_layout Plain Layout
13213 \begin_inset CommandInset ref
13215 reference "subsec:フォント指定"
13222 \begin_layout Description
13223 \begin_inset Flex Code
13226 \begin_layout Plain Layout
13233 \begin_inset Flex Code
13236 \begin_layout Plain Layout
13242 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13245 \begin_layout Description
13246 \begin_inset Flex Code
13249 \begin_layout Plain Layout
13258 \begin_inset Flex Code
13261 \begin_layout Plain Layout
13270 \begin_inset Flex Code
13273 \begin_layout Plain Layout
13280 \begin_inset Flex Code
13283 \begin_layout Plain Layout
13289 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13290 \begin_inset Flex Code
13293 \begin_layout Plain Layout
13299 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13300 \begin_inset Flex Code
13303 \begin_layout Plain Layout
13309 は,文書設定にかかわらず変更することができ,
13310 \begin_inset Flex Code
13313 \begin_layout Plain Layout
13319 は,どのような場合でも変更することができません.
13322 \begin_layout Description
13323 \begin_inset Flex Code
13326 \begin_layout Plain Layout
13333 \begin_inset Flex Code
13336 \begin_layout Plain Layout
13342 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13346 \begin_layout Subsection
13348 \begin_inset CommandInset label
13350 name "subsec:段落様式の国際化"
13357 \begin_layout Standard
13359 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13360 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13364 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13367 \begin_layout Standard
13369 \begin_inset Flex MenuItem
13372 \begin_layout Plain Layout
13378 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13379 \begin_inset Flex MenuItem
13382 \begin_layout Plain Layout
13389 \begin_inset Flex MenuItem
13392 \begin_layout Plain Layout
13398 を使用することができます.以下の抜粋(
13399 \begin_inset Flex MenuItem
13402 \begin_layout Plain Layout
13408 より)は,これがどう動作するかを示すものです.
13411 \begin_layout LyX-Code
13413 \begin_inset Separator latexpar
13420 \begin_layout LyX-Code
13423 theoremstyle{remark}
13426 \begin_layout LyX-Code
13429 newtheorem{claim}[thm]{
13436 \begin_layout LyX-Code
13440 \begin_layout LyX-Code
13444 \begin_layout LyX-Code
13449 claimname}{_(Claim)}
13452 \begin_layout LyX-Code
13456 \begin_layout LyX-Code
13460 \begin_layout LyX-Code
13469 claimname}{_(Claim)}}
13472 \begin_layout LyX-Code
13477 \begin_layout Standard
13479 \begin_inset Flex MenuItem
13482 \begin_layout Plain Layout
13489 \begin_inset Flex MenuItem
13492 \begin_layout Plain Layout
13498 タグ内には,有効な\SpecialChar LaTeX
13499 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13500 は,\SpecialChar LaTeX
13502 \begin_inset Flex Code
13505 \begin_layout Plain Layout
13514 \begin_inset Flex Code
13517 \begin_layout Plain Layout
13528 \begin_layout Standard
13529 \begin_inset Flex Code
13532 \begin_layout Plain Layout
13538 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13539 \begin_inset Flex Code
13542 \begin_layout Plain Layout
13548 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13549 \begin_inset Flex Code
13552 \begin_layout Plain Layout
13558 が使用されていることです.これは,\SpecialChar LyX
13559 が\SpecialChar LaTeX
13560 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13563 \begin_layout Standard
13564 \begin_inset Flex Code
13567 \begin_layout Plain Layout
13574 \begin_inset Flex Code
13577 \begin_layout Plain Layout
13583 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13585 \begin_inset Flex Code
13588 \begin_layout Plain Layout
13594 の引数は,その当該言語への翻訳で置き換えられ,
13595 \begin_inset Flex Code
13598 \begin_layout Plain Layout
13604 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13607 \begin_layout Standard
13608 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13611 \begin_layout LyX-Code
13620 claimname}{Affirmation}}
13621 \begin_inset Newline newline
13632 claimname}{Behauptung}}
13633 \begin_inset Newline newline
13640 claimname}{Behauptung}
13643 \begin_layout Standard
13644 それから,\SpecialChar LaTeX
13646 \begin_inset Flex Code
13649 \begin_layout Plain Layout
13655 は協力して,出力に正しい文字列を生成します.
13658 \begin_layout Standard
13659 ここで注意しておくべき一つの重要な点は,翻訳は,
13660 \begin_inset Flex Code
13663 \begin_layout Plain Layout
13669 ファイルを通じて,\SpecialChar LyX
13670 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13671 \begin_inset Flex Code
13674 \begin_layout Plain Layout
13680 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13681 の国際化ルーチンでは取り扱われないので,
13682 \begin_inset Flex MenuItem
13685 \begin_layout Plain Layout
13692 \begin_inset Flex MenuItem
13695 \begin_layout Plain Layout
13701 は,事実上,\SpecialChar LyX
13702 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13704 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13705 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13706 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13709 \begin_layout Subsection
13711 \begin_inset CommandInset label
13720 \begin_layout Standard
13722 第1.3.0版以来,テキストクラス自体の中でフロート(
13723 \begin_inset Flex MenuItem
13726 \begin_layout Plain Layout
13733 \begin_inset Flex MenuItem
13736 \begin_layout Plain Layout
13742 ・\SpecialChar ldots
13743 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13744 \begin_inset Flex Code
13747 \begin_layout Plain Layout
13753 ファイルに含まれているので,作業中のレイアウトファイルに
13756 \begin_layout LyX-Code
13757 Input stdfloats.inc
13760 \begin_layout Standard
13761 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13762 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13766 \begin_layout Description
13767 \begin_inset Flex Code
13770 \begin_layout Plain Layout
13777 \begin_inset Flex Code
13780 \begin_layout Plain Layout
13786 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13791 \begin_inset Quotes eld
13794 here if possible:可能ならば現在位置に
13795 \begin_inset Quotes erd
13803 \begin_inset Quotes eld
13807 \begin_inset Quotes erd
13815 \begin_inset Quotes eld
13818 bottom of page:ページ下部
13819 \begin_inset Quotes erd
13827 \begin_inset Quotes eld
13830 page of floats:フロートを独立したページに
13831 \begin_inset Quotes erd
13839 \begin_inset Quotes eld
13842 here definitely:何としても現在位置に置く
13843 \begin_inset Quotes erd
13851 \begin_inset Quotes eld
13854 ignore LaTeX rules:LaTeXの規則を無視する
13855 \begin_inset Quotes erd
13858 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13865 \begin_layout Description
13866 \begin_inset Flex Code
13869 \begin_layout Plain Layout
13876 \begin_inset Flex Code
13879 \begin_layout Plain Layout
13886 \begin_inset space \thinspace{}
13892 \begin_inset Flex Code
13895 \begin_layout Plain Layout
13903 ] フロートを,\SpecialChar LaTeX
13908 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13909 \begin_inset Flex Code
13912 \begin_layout Plain Layout
13921 \begin_layout Description
13922 \begin_inset Flex Code
13925 \begin_layout Plain Layout
13932 \begin_inset Flex Code
13935 \begin_layout Plain Layout
13942 \begin_inset space \thinspace{}
13948 \begin_inset Flex Code
13951 \begin_layout Plain Layout
13959 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13960 \begin_inset Flex Code
13963 \begin_layout Plain Layout
13972 \begin_layout Description
13973 \begin_inset Flex Code
13976 \begin_layout Plain Layout
13983 \begin_inset Flex Code
13986 \begin_layout Plain Layout
13993 \begin_inset Quotes erd
13997 \begin_inset Quotes erd
14000 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14001 がキャプションを書き込むファイルです.
14004 \begin_layout Description
14005 \begin_inset Flex Code
14008 \begin_layout Plain Layout
14015 \begin_inset Flex Code
14018 \begin_layout Plain Layout
14025 \begin_inset Quotes erd
14029 \begin_inset Quotes erd
14032 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14035 \begin_layout Description
14036 \begin_inset Flex Code
14039 \begin_layout Plain Layout
14045 これらは,XHTML出力で使用されます.
14046 \begin_inset CommandInset ref
14048 reference "sec:XHTML出力のタグ"
14055 \begin_layout Description
14056 \begin_inset Flex Code
14059 \begin_layout Plain Layout
14066 \begin_inset Flex Code
14069 \begin_layout Plain Layout
14078 \begin_inset space \thinspace{}
14082 \begin_inset Flex Code
14085 \begin_layout Plain Layout
14091 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14093 \begin_inset Flex Code
14096 \begin_layout Plain Layout
14102 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14103 \begin_inset Flex Code
14106 \begin_layout Plain Layout
14113 \begin_inset Flex Code
14116 \begin_layout Plain Layout
14122 を使用します.\SpecialChar LaTeX
14123 ドキュメントクラス中に既に定義されているときには,
14124 \begin_inset Flex Code
14127 \begin_layout Plain Layout
14136 \begin_layout Description
14137 \begin_inset Flex Code
14140 \begin_layout Plain Layout
14147 \begin_inset Flex Code
14150 \begin_layout Plain Layout
14157 \begin_inset Quotes erd
14161 \begin_inset Quotes erd
14164 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14167 \begin_inset Flex Code
14170 \begin_layout Plain Layout
14176 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14181 \begin_inset Flex Code
14184 \begin_layout Plain Layout
14190 が真の時は,標準的な方法が存在するので,これは無視されます.
14193 \begin_layout Description
14194 \begin_inset Flex Code
14197 \begin_layout Plain Layout
14204 \begin_inset Flex Code
14207 \begin_layout Plain Layout
14214 \begin_inset Quotes erd
14218 \begin_inset Quotes erd
14221 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14222 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14224 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14227 \begin_layout Description
14228 \begin_inset Flex Code
14231 \begin_layout Plain Layout
14238 \begin_inset Flex Code
14241 \begin_layout Plain Layout
14248 \begin_inset Quotes erd
14252 \begin_inset Quotes erd
14255 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14256 \begin_inset Flex Code
14259 \begin_layout Plain Layout
14266 \begin_inset Flex Code
14269 \begin_layout Plain Layout
14275 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14278 \begin_layout Description
14279 \begin_inset Flex Code
14282 \begin_layout Plain Layout
14289 \begin_inset Flex Code
14292 \begin_layout Plain Layout
14299 \begin_inset Quotes erd
14303 \begin_inset Quotes erd
14306 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14308 \begin_inset Flex Code
14311 \begin_layout Plain Layout
14318 \begin_inset Flex Code
14321 \begin_layout Plain Layout
14328 \begin_inset Flex Code
14331 \begin_layout Plain Layout
14338 \begin_inset Flex Code
14341 \begin_layout Plain Layout
14351 \begin_layout Plain Layout
14353 同様,文字列中でのこれらの文字の順序は関係ありません.
14359 \begin_inset Flex Code
14362 \begin_layout Plain Layout
14368 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14369 \begin_inset Flex Code
14372 \begin_layout Plain Layout
14378 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14380 \begin_inset Flex Code
14383 \begin_layout Plain Layout
14392 \begin_layout Description
14393 \begin_inset Flex Code
14396 \begin_layout Plain Layout
14403 \begin_inset Flex Code
14406 \begin_layout Plain Layout
14412 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14413 \begin_inset Flex Code
14416 \begin_layout Plain Layout
14422 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14425 \begin_layout Description
14426 \begin_inset Flex Code
14429 \begin_layout Plain Layout
14436 \begin_inset Flex Code
14439 \begin_layout Plain Layout
14446 \begin_inset Quotes erd
14450 \begin_inset Quotes erd
14454 \begin_inset Flex Code
14457 \begin_layout Plain Layout
14465 を使用してフロートを定義する際に使用される様式.
14468 \begin_layout Description
14469 \begin_inset Flex Code
14472 \begin_layout Plain Layout
14479 \begin_inset Flex Code
14482 \begin_layout Plain Layout
14489 \begin_inset Quotes erd
14493 \begin_inset Quotes erd
14496 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14497 \begin_inset Flex Code
14500 \begin_layout Plain Layout
14509 \begin_inset Flex Code
14512 \begin_layout Plain Layout
14521 \begin_inset Flex Code
14524 \begin_layout Plain Layout
14535 \begin_layout Description
14536 \begin_inset Flex Code
14539 \begin_layout Plain Layout
14546 \begin_inset Flex Code
14549 \begin_layout Plain Layout
14556 \begin_inset space \thinspace{}
14560 \begin_inset Flex Code
14563 \begin_layout Plain Layout
14571 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14573 \begin_inset Flex Code
14576 \begin_layout Plain Layout
14582 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14583 自身がオン・ザ・フライで定義しているのかを示します.
14586 \begin_layout Standard
14587 \begin_inset Flex Code
14590 \begin_layout Plain Layout
14603 \begin_inset Flex Code
14606 \begin_layout Plain Layout
14617 \begin_layout Subsection
14619 \begin_inset CommandInset label
14621 name "subsec:任意設定差込枠"
14628 \begin_layout Standard
14632 \begin_layout Itemize
14634 \begin_inset Flex Code
14637 \begin_layout Plain Layout
14644 \begin_inset Flex Code
14647 \begin_layout Plain Layout
14656 \begin_inset Flex Code
14659 \begin_layout Plain Layout
14667 などの\SpecialChar LaTeX
14668 コマンドに対応した意味論的マークアップを定義するものです.
14671 \begin_layout Itemize
14673 \begin_inset Flex Code
14676 \begin_layout Plain Layout
14682 ).これは,\SpecialChar TeX
14683 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14684 \begin_inset Flex Code
14687 \begin_layout Plain Layout
14696 \begin_layout Itemize
14698 \begin_inset Flex Code
14701 \begin_layout Plain Layout
14707 ).DocBookクラスで使用するものです.
14710 \begin_layout Standard
14712 \begin_inset Flex Code
14715 \begin_layout Plain Layout
14724 \begin_layout Standard
14725 \begin_inset Flex Code
14728 \begin_layout Plain Layout
14734 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14735 \begin_inset Flex Code
14738 \begin_layout Plain Layout
14744 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14745 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14749 \begin_layout Standard
14750 \begin_inset Flex Code
14753 \begin_layout Plain Layout
14759 定義は以下の形の行では始まらなくてはなりません.
14762 \begin_layout LyX-Code
14766 \begin_layout Standard
14768 \begin_inset Flex Code
14771 \begin_layout Plain Layout
14777 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14780 \begin_layout Enumerate
14781 既存の差込枠のレイアウトを変更する場合.この場合,
14782 \begin_inset Flex Code
14785 \begin_layout Plain Layout
14792 \begin_inset Flex Code
14795 \begin_layout Plain Layout
14802 \begin_inset Flex Code
14805 \begin_layout Plain Layout
14812 \begin_inset Flex Code
14815 \begin_layout Plain Layout
14822 \begin_inset Flex Code
14825 \begin_layout Plain Layout
14832 \begin_inset Flex Code
14835 \begin_layout Plain Layout
14842 \begin_inset Flex Code
14845 \begin_layout Plain Layout
14852 \begin_inset Flex Code
14855 \begin_layout Plain Layout
14862 \begin_inset Flex Code
14865 \begin_layout Plain Layout
14872 \begin_inset Flex Code
14875 \begin_layout Plain Layout
14882 \begin_inset Flex Code
14885 \begin_layout Plain Layout
14892 \begin_inset Flex Code
14895 \begin_layout Plain Layout
14902 \begin_inset Flex Code
14905 \begin_layout Plain Layout
14912 \begin_inset Flex Code
14915 \begin_layout Plain Layout
14922 \begin_inset Flex Code
14925 \begin_layout Plain Layout
14932 \begin_inset Flex Code
14935 \begin_layout Plain Layout
14942 \begin_inset Flex Code
14945 \begin_layout Plain Layout
14952 \begin_inset Flex Code
14955 \begin_layout Plain Layout
14962 \begin_inset Flex Code
14965 \begin_layout Plain Layout
14972 \begin_inset Flex Code
14975 \begin_layout Plain Layout
14982 \begin_inset Flex Code
14985 \begin_layout Plain Layout
14994 \begin_layout Enumerate
14995 自由差込枠のレイアウトを定義する場合.この場合,
14996 \begin_inset Flex Code
14999 \begin_layout Plain Layout
15006 \begin_inset Flex Code
15009 \begin_layout Plain Layout
15016 \begin_inset Flex Code
15019 \begin_layout Plain Layout
15025 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15026 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15027 \begin_inset Flex Code
15030 \begin_layout Plain Layout
15036 項目が含まれていなくてはならないことに注意してください.
15039 \begin_layout Enumerate
15040 ユーザー定義派生枝を定義する場合.この場合,
15041 \begin_inset Flex Code
15044 \begin_layout Plain Layout
15051 \begin_inset Flex Code
15054 \begin_layout Plain Layout
15061 \begin_inset Flex Code
15064 \begin_layout Plain Layout
15070 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15071 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15072 がくるむことができるようにすることです.
15075 \begin_layout Enumerate
15076 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15077 \begin_inset Flex Code
15080 \begin_layout Plain Layout
15087 \begin_inset Flex Code
15090 \begin_layout Plain Layout
15097 \begin_inset Flex Code
15100 \begin_layout Plain Layout
15106 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15107 \begin_inset Flex Code
15110 \begin_layout Plain Layout
15116 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15117 \begin_inset Flex Code
15120 \begin_layout Plain Layout
15127 \begin_inset Flex Code
15130 \begin_layout Plain Layout
15141 \begin_inset Flex Code
15144 \begin_layout Plain Layout
15153 \begin_layout Standard
15154 \begin_inset Flex Code
15157 \begin_layout Plain Layout
15163 定義には以下の項目を入れることができます.
15166 \begin_layout Description
15167 \begin_inset Flex Code
15170 \begin_layout Plain Layout
15177 \begin_inset Flex Code
15180 \begin_layout Plain Layout
15186 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15187 \begin_inset Flex Code
15190 \begin_layout Plain Layout
15197 \begin_inset CommandInset ref
15199 reference "subsec:段落様式"
15206 \begin_layout Description
15207 \begin_inset Flex Code
15210 \begin_layout Plain Layout
15217 \begin_inset CommandInset ref
15219 reference "subsec:段落様式の国際化"
15226 \begin_layout Description
15227 \begin_inset Flex Code
15230 \begin_layout Plain Layout
15237 \begin_inset Flex Code
15240 \begin_layout Plain Layout
15246 ] 差込枠の背景色.使用できる色名一覧は
15247 \begin_inset CommandInset ref
15249 reference "chap:色名"
15256 \begin_layout Description
15257 \begin_inset Flex Code
15260 \begin_layout Plain Layout
15267 \begin_inset Flex Code
15270 \begin_layout Plain Layout
15279 \begin_inset space \thinspace{}
15283 \begin_inset Flex Code
15286 \begin_layout Plain Layout
15292 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15295 \begin_layout Description
15296 \begin_inset Flex Code
15299 \begin_layout Plain Layout
15306 \begin_inset CommandInset ref
15308 reference "subsec:段落様式"
15312 参照のこと.完全な型を指定する必要があることに注意してください.例:
15313 \begin_inset Flex Code
15316 \begin_layout Plain Layout
15317 CopyStyle Flex:<名称>
15325 \begin_layout Description
15326 \begin_inset Flex Code
15329 \begin_layout Plain Layout
15336 \begin_inset Flex Code
15339 \begin_layout Plain Layout
15348 \begin_inset space \thinspace{}
15352 \begin_inset Flex Code
15355 \begin_layout Plain Layout
15361 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15364 \begin_layout Description
15365 \begin_inset Flex Code
15368 \begin_layout Plain Layout
15374 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15375 \begin_inset Flex Code
15378 \begin_layout Plain Layout
15385 \begin_inset Flex Code
15388 \begin_layout Plain Layout
15395 \begin_inset Flex Code
15398 \begin_layout Plain Layout
15404 のいずれかを指定することができます.脚註は通常
15405 \begin_inset Flex Code
15408 \begin_layout Plain Layout
15414 を使用し,\SpecialChar TeX
15416 \begin_inset Flex Code
15419 \begin_layout Plain Layout
15426 \begin_inset Flex Code
15429 \begin_layout Plain Layout
15438 \begin_layout Description
15439 \begin_inset Flex Code
15442 \begin_layout Plain Layout
15449 \begin_inset Flex Code
15452 \begin_layout Plain Layout
15459 \begin_inset space \thinspace{}
15463 \begin_inset Flex Code
15466 \begin_layout Plain Layout
15475 \begin_inset Flex Code
15478 \begin_layout Plain Layout
15485 \begin_inset Flex Code
15488 \begin_layout Plain Layout
15494 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15496 \begin_inset Flex Code
15499 \begin_layout Plain Layout
15508 \begin_inset Flex Code
15511 \begin_layout Plain Layout
15519 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15522 \begin_layout Description
15523 \begin_inset Flex Code
15526 \begin_layout Plain Layout
15533 \begin_inset Flex Code
15536 \begin_layout Plain Layout
15545 \begin_layout Description
15546 \begin_inset Flex Code
15549 \begin_layout Plain Layout
15560 \begin_inset CommandInset ref
15562 reference "subsec:フォント指定"
15566 を参照.このフォントを定義すると自動的に
15567 \begin_inset Flex Code
15570 \begin_layout Plain Layout
15576 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15577 \begin_inset Flex Code
15580 \begin_layout Plain Layout
15586 を定義しなくてはならないことに注意してください.
15589 \begin_layout Description
15590 \begin_inset Flex Code
15593 \begin_layout Plain Layout
15594 FixedWidthPreambleEncoding
15600 \begin_inset Flex Code
15603 \begin_layout Plain Layout
15612 \begin_inset space \thinspace{}
15616 \begin_inset Flex Code
15619 \begin_layout Plain Layout
15626 \begin_inset Flex Code
15629 \begin_layout Plain Layout
15636 \begin_inset Flex Code
15639 \begin_layout Plain Layout
15645 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15653 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15654 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15655 やLua\SpecialChar TeX
15656 のようなUnicodeを完全に解する\SpecialChar LaTeX
15661 \begin_layout Description
15662 \begin_inset Flex Code
15665 \begin_layout Plain Layout
15666 ForceLocalFontSwitch
15672 \begin_inset Flex Code
15675 \begin_layout Plain Layout
15684 \begin_inset space \thinspace{}
15688 \begin_inset Flex Code
15691 \begin_layout Plain Layout
15697 ] babel使用時に,常にローカルフォント切替(
15698 \begin_inset Flex Code
15701 \begin_layout Plain Layout
15710 \begin_inset Flex Code
15713 \begin_layout Plain Layout
15724 \begin_layout Description
15725 \begin_inset Flex Code
15728 \begin_layout Plain Layout
15735 \begin_inset Flex Code
15738 \begin_layout Plain Layout
15747 \begin_inset space \thinspace{}
15751 \begin_inset Flex Code
15754 \begin_layout Plain Layout
15760 ] たとえば\SpecialChar TeX
15761 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15764 \begin_layout Description
15765 \begin_inset Flex Code
15768 \begin_layout Plain Layout
15775 \begin_inset Flex Code
15778 \begin_layout Plain Layout
15787 \begin_inset space \thinspace{}
15791 \begin_inset Flex Code
15794 \begin_layout Plain Layout
15800 ] \SpecialChar LaTeX
15801 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15804 \begin_layout Description
15805 \begin_inset Flex Code
15808 \begin_layout Plain Layout
15815 \begin_inset Flex Code
15818 \begin_layout Plain Layout
15827 \begin_inset space \thinspace{}
15831 \begin_inset Flex Code
15834 \begin_layout Plain Layout
15840 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15843 \begin_layout Description
15844 \begin_inset Flex Code
15847 \begin_layout Plain Layout
15856 \begin_inset Flex Code
15859 \begin_layout Plain Layout
15868 \begin_inset space \thinspace{}
15872 \begin_inset Flex Code
15875 \begin_layout Plain Layout
15882 \begin_inset CommandInset ref
15884 reference "subsec:段落様式"
15891 \begin_layout Description
15892 \begin_inset Flex Code
15895 \begin_layout Plain Layout
15901 これらは,XHTML出力で使用されます.
15902 \begin_inset CommandInset ref
15904 reference "sec:XHTML出力のタグ"
15911 \begin_layout Description
15912 \begin_inset Flex Code
15915 \begin_layout Plain Layout
15922 \begin_inset Flex Code
15925 \begin_layout Plain Layout
15934 \begin_inset space \thinspace{}
15938 \begin_inset Flex Code
15941 \begin_layout Plain Layout
15947 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15948 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15951 \begin_layout Description
15952 \begin_inset Flex Code
15955 \begin_layout Plain Layout
15964 \begin_inset Flex Code
15967 \begin_layout Plain Layout
15976 \begin_inset space \thinspace{}
15980 \begin_inset Flex Code
15983 \begin_layout Plain Layout
15990 \begin_inset CommandInset ref
15992 reference "subsec:段落様式"
15999 \begin_layout Description
16000 \begin_inset Flex Code
16003 \begin_layout Plain Layout
16010 \begin_inset CommandInset ref
16012 reference "subsec:フォント指定"
16016 節を参照.非効率を回避するため,この定義は
16017 \begin_inset Flex Code
16020 \begin_layout Plain Layout
16029 \begin_layout Description
16030 \begin_inset Flex Code
16033 \begin_layout Plain Layout
16040 \begin_inset Flex Code
16043 \begin_layout Plain Layout
16050 \begin_inset Quotes erd
16054 \begin_inset Quotes erd
16061 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16062 コードや派生枝),ラベルが動的に変更されます.
16065 \begin_layout Description
16066 \begin_inset Flex Code
16069 \begin_layout Plain Layout
16076 \begin_inset CommandInset ref
16078 reference "subsec:段落様式の国際化"
16085 \begin_layout Description
16086 \begin_inset Flex Code
16089 \begin_layout Plain Layout
16096 \begin_inset Flex Code
16099 \begin_layout Plain Layout
16105 ] 対応する\SpecialChar LaTeX
16106 関連物の名称.環境名ないしはコマンド名.
16109 \begin_layout Description
16110 \begin_inset Flex Code
16113 \begin_layout Plain Layout
16120 \begin_inset Flex Code
16123 \begin_layout Plain Layout
16134 \begin_inset Flex Code
16137 \begin_layout Plain Layout
16144 \begin_inset Flex Code
16147 \begin_layout Plain Layout
16153 のような括弧対を含む.このパラメータは\SpecialChar LyX
16154 内部から変更することはできません(変更可能なパラメータには
16155 \begin_inset Flex Code
16158 \begin_layout Plain Layout
16164 を使用してください).これは,全ての\SpecialChar LaTeX
16166 \begin_inset Flex Code
16169 \begin_layout Plain Layout
16178 \begin_layout Description
16179 \begin_inset Flex Code
16182 \begin_layout Plain Layout
16189 \begin_inset Flex Code
16192 \begin_layout Plain Layout
16193 Command, Environment, None
16198 ] 様式がどのように\SpecialChar LaTeX
16203 \begin_layout Plain Layout
16204 これらのルールはSGMLクラスにも適用されるので,
16205 \begin_inset Flex Code
16208 \begin_layout Plain Layout
16214 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16220 \begin_inset Separator latexpar
16227 \begin_layout Description
16228 \begin_inset Flex Code
16231 \begin_layout Plain Layout
16240 \begin_layout Description
16241 \begin_inset Flex Code
16244 \begin_layout Plain Layout
16251 \begin_inset Flex Code
16254 \begin_layout Plain Layout
16261 {\SpecialChar ldots
16270 \begin_layout Description
16271 \begin_inset Flex Code
16274 \begin_layout Plain Layout
16281 \begin_inset Flex Code
16284 \begin_layout Plain Layout
16291 }\SpecialChar ldots
16306 \begin_layout Standard
16307 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16308 出力は,\SpecialChar LaTeX
16312 \begin_layout LyX-Code
16315 LatexName[LatexParam]{\SpecialChar ldots
16319 \begin_layout Standard
16323 \begin_layout LyX-Code
16326 begin{LatexName}[LatexParam] \SpecialChar ldots
16332 \begin_layout Standard
16337 \begin_layout Description
16338 \begin_inset Flex Code
16341 \begin_layout Plain Layout
16348 \begin_inset Flex Code
16351 \begin_layout Plain Layout
16357 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16358 \begin_inset Flex Code
16361 \begin_layout Plain Layout
16370 \begin_layout Description
16371 \begin_inset Flex Code
16374 \begin_layout Plain Layout
16381 \begin_inset Flex Code
16384 \begin_layout Plain Layout
16391 \begin_inset Flex Code
16394 \begin_layout Plain Layout
16401 \begin_inset Flex Code
16404 \begin_layout Plain Layout
16411 \begin_inset Flex Code
16414 \begin_layout Plain Layout
16420 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16421 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16422 \begin_inset Flex Code
16425 \begin_layout Plain Layout
16432 \begin_inset Flex Code
16435 \begin_layout Plain Layout
16442 \begin_inset Flex Code
16445 \begin_layout Plain Layout
16452 \begin_inset Flex Code
16455 \begin_layout Plain Layout
16462 \begin_inset Flex Code
16465 \begin_layout Plain Layout
16475 設定すれば,真に設定することができます.
16478 \begin_layout Description
16479 \begin_inset Flex Code
16482 \begin_layout Plain Layout
16489 \begin_inset Flex Code
16492 \begin_layout Plain Layout
16501 \begin_inset space \thinspace{}
16505 \begin_inset Flex Code
16508 \begin_layout Plain Layout
16514 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16515 \begin_inset Flex Code
16518 \begin_layout Plain Layout
16525 \begin_inset Flex Code
16528 \begin_layout Plain Layout
16535 \begin_inset Flex Code
16538 \begin_layout Plain Layout
16548 指定されれば,他の値に指定し直すことができます.既定値は真です.
16551 \begin_layout Description
16552 \begin_inset Flex Code
16555 \begin_layout Plain Layout
16562 \begin_inset Flex Code
16565 \begin_layout Plain Layout
16574 \begin_inset space \thinspace{}
16578 \begin_inset Flex Code
16581 \begin_layout Plain Layout
16588 \begin_inset Flex Code
16591 \begin_layout Plain Layout
16599 するか否か(註:当該コマンド自身をprotectするかどうかでは
16606 \begin_layout Description
16607 \begin_inset Flex Code
16610 \begin_layout Plain Layout
16617 \begin_inset Flex Code
16620 \begin_layout Plain Layout
16627 \begin_inset Flex Code
16630 \begin_layout Plain Layout
16639 \begin_layout Description
16640 \begin_inset Flex Code
16643 \begin_layout Plain Layout
16650 \begin_inset Flex Code
16653 \begin_layout Plain Layout
16660 \begin_inset Flex Code
16663 \begin_layout Plain Layout
16670 \begin_inset Flex Code
16673 \begin_layout Plain Layout
16680 \begin_inset Flex Code
16683 \begin_layout Plain Layout
16689 の改名を,後方互換性を維持しながら行うために用いられます.
16692 \begin_layout Description
16693 \begin_inset Flex Code
16696 \begin_layout Plain Layout
16703 \begin_inset Flex Code
16706 \begin_layout Plain Layout
16715 \begin_inset space \thinspace{}
16719 \begin_inset Flex Code
16722 \begin_layout Plain Layout
16729 \begin_inset CommandInset ref
16731 reference "subsec:段落様式"
16738 \begin_layout Description
16739 \begin_inset Flex Code
16742 \begin_layout Plain Layout
16751 \begin_inset Flex Code
16754 \begin_layout Plain Layout
16763 \begin_inset space \thinspace{}
16767 \begin_inset Flex Code
16770 \begin_layout Plain Layout
16777 \begin_inset CommandInset ref
16779 reference "subsec:段落様式"
16786 \begin_layout Description
16787 \begin_inset Flex Code
16790 \begin_layout Plain Layout
16797 \begin_inset CommandInset ref
16799 reference "subsec:段落様式"
16806 \begin_layout Description
16807 \begin_inset Flex Code
16810 \begin_layout Plain Layout
16817 \begin_inset Flex Code
16820 \begin_layout Plain Layout
16826 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16829 \begin_layout Description
16830 \begin_inset Flex Code
16833 \begin_layout Plain Layout
16840 \begin_inset Flex Code
16843 \begin_layout Plain Layout
16850 \begin_inset CommandInset ref
16852 reference "subsec:段落様式"
16859 \begin_layout Description
16860 \begin_inset Flex Code
16863 \begin_layout Plain Layout
16870 \begin_inset Flex Code
16873 \begin_layout Plain Layout
16882 \begin_inset space \thinspace{}
16886 \begin_inset Flex Code
16889 \begin_layout Plain Layout
16896 \begin_inset Flex Code
16899 \begin_layout Plain Layout
16905 タグで定義された)この様式の\SpecialChar LaTeX
16907 \begin_inset Flex Code
16910 \begin_layout Plain Layout
16916 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16919 \begin_layout Description
16920 \begin_inset Flex Code
16923 \begin_layout Plain Layout
16930 \begin_inset Flex Code
16933 \begin_layout Plain Layout
16940 \begin_inset space \thinspace{}
16944 \begin_inset Flex Code
16947 \begin_layout Plain Layout
16955 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16956 \begin_inset Note Note
16959 \begin_layout Plain Layout
16960 This is outdated: The default changed from 1 to 0
16968 \begin_layout Description
16969 \begin_inset Flex Code
16972 \begin_layout Plain Layout
16979 \begin_inset Flex Code
16982 \begin_layout Plain Layout
16988 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16989 \begin_inset Flex Code
16992 \begin_layout Plain Layout
17001 \begin_layout Description
17002 \begin_inset Flex Code
17005 \begin_layout Plain Layout
17012 \begin_inset Flex Code
17015 \begin_layout Plain Layout
17022 \begin_inset space \thinspace{}
17026 \begin_inset Flex Code
17029 \begin_layout Plain Layout
17037 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17040 \begin_layout Subsection
17042 \begin_inset CommandInset label
17051 \begin_layout Standard
17053 \begin_inset Flex MenuItem
17056 \begin_layout Plain Layout
17063 \begin_inset Flex MenuItem
17066 \begin_layout Plain Layout
17072 ・\SpecialChar ldots
17073 )を定義することが必要です.標準的なカウンタは
17074 \begin_inset Flex Code
17077 \begin_layout Plain Layout
17083 ファイルに含まれているので,作業中のレイアウトファイルに
17086 \begin_layout LyX-Code
17087 Input stdcounters.inc
17090 \begin_layout Standard
17091 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17094 \begin_layout LyX-Code
17098 \begin_layout Standard
17100 \begin_inset Flex Code
17103 \begin_layout Plain Layout
17109 」は,実際のカウンタ名で置き換えます.また,宣言は「
17110 \begin_inset Flex Code
17113 \begin_layout Plain Layout
17122 \begin_layout Standard
17123 以下のパラメータを使用することができます.
17126 \begin_layout Description
17127 \begin_inset Flex Code
17130 \begin_layout Plain Layout
17137 \begin_inset Flex Code
17140 \begin_layout Plain Layout
17146 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17149 \begin_layout Description
17150 \begin_inset Flex Code
17153 \begin_layout Plain Layout
17154 LabelString [文字列=""]
17159 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17160 \begin_inset Flex Code
17163 \begin_layout Plain Layout
17164 LabelStringAppendix
17169 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17170 \begin_inset Separator latexpar
17177 \begin_layout Itemize
17178 \begin_inset Flex Code
17181 \begin_layout Plain Layout
17190 \begin_inset Flex Code
17193 \begin_layout Plain Layout
17200 \begin_inset Flex Code
17203 \begin_layout Plain Layout
17210 \begin_inset Newline linebreak
17214 \begin_inset Flex Code
17217 \begin_layout Plain Layout
17218 LabelStringAppendix
17226 \begin_layout Itemize
17227 カウンタ値は,\SpecialChar LaTeX
17229 \begin_inset Flex Code
17232 \begin_layout Plain Layout
17248 を用いて表現することができます.ここで
17249 \begin_inset Flex Code
17252 \begin_layout Plain Layout
17261 \begin_inset Flex Code
17264 \begin_layout Plain Layout
17270 :1, 2, 3,\SpecialChar ldots
17272 \begin_inset Flex Code
17275 \begin_layout Plain Layout
17281 :a, b, c, \SpecialChar ldots
17283 \begin_inset Flex Code
17286 \begin_layout Plain Layout
17292 :A, B, C, \SpecialChar ldots
17294 \begin_inset Flex Code
17297 \begin_layout Plain Layout
17303 :i, ii, iii, \SpecialChar ldots
17305 \begin_inset Flex Code
17308 \begin_layout Plain Layout
17314 :I, II, III\SpecialChar ldots
17319 \begin_layout Standard
17320 \begin_inset Flex Code
17323 \begin_layout Plain Layout
17329 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17330 \begin_inset Flex Code
17333 \begin_layout Plain Layout
17340 \begin_inset Flex Code
17343 \begin_layout Plain Layout
17350 \begin_inset Newline linebreak
17354 \begin_inset Flex Code
17357 \begin_layout Plain Layout
17368 \begin_inset Flex Code
17371 \begin_layout Plain Layout
17382 \begin_layout Description
17383 \begin_inset Flex Code
17386 \begin_layout Plain Layout
17387 LabelStringAppendix
17393 \begin_inset Flex Code
17396 \begin_layout Plain Layout
17403 \begin_inset Flex Code
17406 \begin_layout Plain Layout
17412 と同様ですが,付録で使用するためのものです.
17415 \begin_layout Description
17416 \begin_inset Flex Code
17419 \begin_layout Plain Layout
17426 \begin_inset Flex Code
17429 \begin_layout Plain Layout
17436 \begin_inset Quotes erd
17440 \begin_inset Quotes erd
17443 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17444 \begin_inset space ~
17447 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17451 \begin_layout Description
17452 \begin_inset Flex Code
17455 \begin_layout Plain Layout
17462 \begin_inset Flex Code
17465 \begin_layout Plain Layout
17472 \begin_inset Quotes erd
17476 \begin_inset Quotes erd
17479 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17480 \begin_inset Flex Code
17483 \begin_layout Plain Layout
17490 \begin_inset Flex Code
17493 \begin_layout Plain Layout
17502 \begin_layout Subsection
17504 \begin_inset CommandInset label
17506 name "subsec:フォント指定"
17513 \begin_layout Standard
17514 フォント指定は,以下のような形を取ります.
17517 \begin_layout LyX-Code
17533 \begin_layout LyX-Code
17537 \begin_layout LyX-Code
17541 \begin_layout Standard
17542 以下のコマンドを使用することができます.
17545 \begin_layout Description
17546 \begin_inset Flex Code
17549 \begin_layout Plain Layout
17556 \begin_inset Flex Code
17559 \begin_layout Plain Layout
17568 \begin_inset Flex Code
17571 \begin_layout Plain Layout
17578 \begin_inset Flex Code
17581 \begin_layout Plain Layout
17588 \begin_inset Flex Code
17591 \begin_layout Plain Layout
17598 \begin_inset Flex Code
17601 \begin_layout Plain Layout
17608 \begin_inset Flex Code
17611 \begin_layout Plain Layout
17618 \begin_inset Flex Code
17621 \begin_layout Plain Layout
17628 \begin_inset Flex Code
17631 \begin_layout Plain Layout
17638 \begin_inset Flex Code
17641 \begin_layout Plain Layout
17648 \begin_inset Flex Code
17651 \begin_layout Plain Layout
17658 \begin_inset Flex Code
17661 \begin_layout Plain Layout
17668 \begin_inset Flex Code
17671 \begin_layout Plain Layout
17678 \begin_inset Flex Code
17681 \begin_layout Plain Layout
17688 \begin_inset Flex Code
17691 \begin_layout Plain Layout
17698 \begin_inset Flex Code
17701 \begin_layout Plain Layout
17708 \begin_inset Flex Code
17711 \begin_layout Plain Layout
17718 \begin_inset Flex Code
17721 \begin_layout Plain Layout
17728 \begin_inset Flex Code
17731 \begin_layout Plain Layout
17738 \begin_inset Flex Code
17741 \begin_layout Plain Layout
17748 \begin_inset Flex Code
17751 \begin_layout Plain Layout
17760 \begin_layout Description
17761 \begin_inset Flex Code
17764 \begin_layout Plain Layout
17773 \begin_inset Flex Code
17776 \begin_layout Plain Layout
17785 \begin_inset Flex Code
17788 \begin_layout Plain Layout
17795 \begin_inset Flex Code
17798 \begin_layout Plain Layout
17807 \begin_layout Description
17808 \begin_inset Flex Code
17811 \begin_layout Plain Layout
17818 \begin_inset Flex Code
17821 \begin_layout Plain Layout
17828 \begin_inset Flex Code
17831 \begin_layout Plain Layout
17838 \begin_inset Flex Code
17841 \begin_layout Plain Layout
17848 \begin_inset Flex Code
17851 \begin_layout Plain Layout
17858 \begin_inset Flex Code
17861 \begin_layout Plain Layout
17868 \begin_inset Flex Code
17871 \begin_layout Plain Layout
17878 \begin_inset Flex Code
17881 \begin_layout Plain Layout
17888 \begin_inset Flex Code
17891 \begin_layout Plain Layout
17898 \begin_inset Flex Code
17901 \begin_layout Plain Layout
17908 \begin_inset Flex Code
17911 \begin_layout Plain Layout
17918 \begin_inset Flex Code
17921 \begin_layout Plain Layout
17928 \begin_inset Flex Code
17931 \begin_layout Plain Layout
17938 \begin_inset Flex Code
17941 \begin_layout Plain Layout
17947 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17948 \begin_inset Newline newline
17952 \begin_inset Flex Code
17955 \begin_layout Plain Layout
17962 \begin_inset Flex Code
17965 \begin_layout Plain Layout
17971 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17973 \begin_inset Flex Code
17976 \begin_layout Plain Layout
17982 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17985 \begin_layout Description
17986 \begin_inset Flex Code
17989 \begin_layout Plain Layout
17998 \begin_inset Flex Code
18001 \begin_layout Plain Layout
18010 \begin_inset Flex Code
18013 \begin_layout Plain Layout
18022 \begin_layout Description
18023 \begin_inset Flex Code
18026 \begin_layout Plain Layout
18035 \begin_inset Flex Code
18038 \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
18079 \begin_layout Description
18080 \begin_inset Flex Code
18083 \begin_layout Plain Layout
18090 \begin_inset Flex Code
18093 \begin_layout Plain Layout
18100 \begin_inset Flex Code
18103 \begin_layout Plain Layout
18110 \begin_inset Flex Code
18113 \begin_layout Plain Layout
18122 \begin_inset Flex Code
18125 \begin_layout Plain Layout
18132 \begin_inset Flex Code
18135 \begin_layout Plain Layout
18142 \begin_inset Flex Code
18145 \begin_layout Plain Layout
18152 \begin_inset Flex Code
18155 \begin_layout Plain Layout
18162 \begin_inset Flex Code
18165 \begin_layout Plain Layout
18174 \begin_layout Subsection
18175 \begin_inset CommandInset label
18177 name "subsec:引用書式指定"
18184 \begin_layout Standard
18185 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18186 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18187 \begin_inset Flex Code
18190 \begin_layout Plain Layout
18196 ブロックが使用されています.このブロックは,以下のような形をしています.
18199 \begin_layout LyX-Code
18203 \begin_layout LyX-Code
18207 \begin_layout LyX-Code
18211 \begin_layout LyX-Code
18215 \begin_layout Standard
18216 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18218 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18219 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18221 \begin_inset Flex Code
18224 \begin_layout Plain Layout
18230 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18231 文書クラスにインクルードされています.
18234 \begin_layout Standard
18235 この定義は,Bib\SpecialChar TeX
18236 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18237 \begin_inset Flex Code
18240 \begin_layout Plain Layout
18247 \begin_inset Flex Code
18250 \begin_layout Plain Layout
18256 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18259 \begin_layout LyX-Code
18261 \begin_inset Quotes eld
18265 \begin_inset Quotes erd
18271 \begin_layout Standard
18272 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18275 \begin_layout Standard
18276 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18277 \begin_inset Flex Code
18280 \begin_layout Plain Layout
18282 \begin_inset space ~
18290 のように,条件付きの構成を使用することができます.これは,
18291 \begin_inset Flex Code
18294 \begin_layout Plain Layout
18301 \begin_inset space ~
18304 」とvolumeキーを出力するという意味です.また,
18305 \begin_inset Newline newline
18309 \begin_inset Flex Code
18312 \begin_layout Plain Layout
18313 {%author%[[%author%]][[%editor%, ed.]]}
18319 \begin_inset Newline newline
18322 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18323 \begin_inset Flex Code
18326 \begin_layout Plain Layout
18332 キーが存在するならば出力され,そうでなければeditorキーと「,
18333 \begin_inset space ~
18336 ed.」が出力されます.ここでもキーは,
18337 \begin_inset Flex Code
18340 \begin_layout Plain Layout
18346 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18347 \begin_inset Flex Code
18350 \begin_layout Plain Layout
18357 \begin_inset Flex Code
18360 \begin_layout Plain Layout
18366 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18369 \begin_layout Standard
18370 もう一つ,定義中で使用することのできる文法として,
18371 \begin_inset Flex Code
18374 \begin_layout Plain Layout
18380 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18381 グを出力させたくはありませんから,HTMLタグは「
18382 \begin_inset Flex Code
18385 \begin_layout Plain Layout
18392 \begin_inset Flex Code
18395 \begin_layout Plain Layout
18401 」でくるんでやらなくてはならないのです.
18404 \begin_layout Standard
18405 \begin_inset Flex Code
18408 \begin_layout Plain Layout
18414 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18417 \begin_layout LyX-Code
18419 \begin_inset Quotes eld
18423 \begin_inset Quotes erd
18429 \begin_layout Standard
18430 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18431 \begin_inset Flex Code
18434 \begin_layout Plain Layout
18440 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18442 \begin_inset Flex Code
18445 \begin_layout Plain Layout
18451 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18454 \begin_layout LyX-Code
18458 \begin_layout Standard
18459 のようなことはしないでください.\SpecialChar LyX
18460 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18463 \begin_layout Standard
18467 \begin_layout LyX-Code
18471 \begin_layout Standard
18472 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18473 \begin_inset Flex Code
18476 \begin_layout Plain Layout
18482 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18483 \begin_inset Flex Code
18486 \begin_layout Plain Layout
18492 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18495 \begin_layout Standard
18496 以下は,これらの機能を全て使った例です.
18497 \begin_inset VSpace defskip
18503 \begin_layout Standard
18507 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18510 \begin_layout Standard
18511 \begin_inset VSpace defskip
18515 \begin_inset Flex Code
18518 \begin_layout Plain Layout
18524 キーが定義されているならば,著者とコンマを出力し,
18525 \begin_inset Flex Code
18528 \begin_layout Plain Layout
18535 \begin_inset Flex Code
18538 \begin_layout Plain Layout
18544 キーが定義されているならば,編集者名の後に
18545 \begin_inset Flex Code
18548 \begin_layout Plain Layout
18554 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18555 \begin_inset Flex Code
18558 \begin_layout Plain Layout
18564 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18567 \begin_layout Section
18568 \begin_inset CommandInset label
18570 name "sec:XHTML出力のタグ"
18577 \begin_layout Standard
18579 やDocBookと同様,\SpecialChar LyX
18580 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18581 は適切な既定値を提供し,前述したように,他のレイアウト
18582 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18584 \begin_inset Flex Code
18587 \begin_layout Plain Layout
18593 宣言で提供されている情報を利用しようと試みます.
18596 \begin_layout Standard
18597 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18598 ,これが必要になる場合もあるので,\SpecialChar LyX
18599 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18602 \begin_layout Standard
18603 様式宣言や差込枠宣言の外で使用することができるタグに,
18604 \begin_inset Flex Code
18607 \begin_layout Plain Layout
18614 \begin_inset Flex Code
18617 \begin_layout Plain Layout
18623 の2つがあることに注意してください.これらの詳細については,
18624 \begin_inset CommandInset ref
18626 reference "subsec:汎用テキストクラスパラメータ"
18633 \begin_layout Subsection
18634 \begin_inset CommandInset label
18636 name "subsec:段落様式-XHTML"
18643 \begin_layout Standard
18645 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18646 \begin_inset Flex Code
18649 \begin_layout Plain Layout
18659 \begin_layout Standard
18660 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18663 \begin_layout LyX-Code
18665 \begin_inset Quotes erd
18669 \begin_inset Quotes erd
18675 \begin_layout LyX-Code
18677 \begin_inset Quotes erd
18681 \begin_inset Quotes erd
18687 \begin_layout LyX-Code
18691 \begin_layout LyX-Code
18695 \begin_layout Standard
18696 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18699 \begin_layout Standard
18700 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18703 \begin_layout LyX-Code
18705 \begin_inset Quotes erd
18709 \begin_inset Quotes erd
18715 \begin_layout LyX-Code
18717 \begin_inset Quotes erd
18721 \begin_inset Quotes erd
18725 \begin_inset Quotes erd
18729 \begin_inset Quotes erd
18732 >環境ラベル</labeltag>最初の段落.
18735 \begin_layout LyX-Code
18739 \begin_layout LyX-Code
18740 <itemtag>二つめの段落.</itemtag>
18743 \begin_layout LyX-Code
18747 \begin_layout Standard
18748 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18751 \begin_layout Standard
18752 リストに関しては,次のような形になります.
18755 \begin_layout LyX-Code
18757 \begin_inset Quotes erd
18761 \begin_inset Quotes erd
18767 \begin_layout LyX-Code
18769 \begin_inset Quotes erd
18773 \begin_inset Quotes erd
18777 \begin_inset Quotes erd
18781 \begin_inset Quotes erd
18784 >リストのラベル</labeltag>最初の項目.</itemtag>
18787 \begin_layout LyX-Code
18789 \begin_inset Quotes erd
18793 \begin_inset Quotes erd
18797 \begin_inset Quotes erd
18801 \begin_inset Quotes erd
18804 >リストのラベル</labeltag>二つめの項目.</itemtag>
18807 \begin_layout LyX-Code
18811 \begin_layout LyX-Code
18815 \begin_layout LyX-Code
18817 \begin_inset Quotes erd
18821 \begin_inset Quotes erd
18827 \begin_layout LyX-Code
18829 \begin_inset Quotes erd
18833 \begin_inset Quotes erd
18836 >リストのラベル</labeltag><itemtag attr=
18837 \begin_inset Quotes erd
18841 \begin_inset Quotes erd
18847 \begin_layout LyX-Code
18849 \begin_inset Quotes erd
18853 \begin_inset Quotes erd
18856 >リストのラベル</labeltag><itemtag attr=
18857 \begin_inset Quotes erd
18861 \begin_inset Quotes erd
18867 \begin_layout LyX-Code
18871 \begin_layout Standard
18873 \begin_inset Flex Code
18876 \begin_layout Plain Layout
18883 \begin_inset Flex Code
18886 \begin_layout Plain Layout
18892 の順序が違っていることに注意してください.どちらの順序になるかは,
18893 \begin_inset Flex Code
18896 \begin_layout Plain Layout
18903 \begin_inset Flex Code
18906 \begin_layout Plain Layout
18912 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18915 \begin_layout Standard
18916 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18918 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18922 \begin_layout Description
18923 \begin_inset Flex Code
18926 \begin_layout Plain Layout
18933 \begin_inset Flex Code
18936 \begin_layout Plain Layout
18942 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18943 \begin_inset Flex Code
18946 \begin_layout Plain Layout
18952 」のようなものです.既定においては,\SpecialChar LyX
18954 \begin_inset Flex Code
18957 \begin_layout Plain Layout
18964 \begin_inset Flex Code
18967 \begin_layout Plain Layout
18973 は,レイアウトの\SpecialChar LyX
18974 名であり,chapterのように小文字で記述します.
18977 \begin_layout Description
18978 \begin_inset Flex Code
18981 \begin_layout Plain Layout
18988 \begin_inset Flex Code
18991 \begin_layout Plain Layout
19002 \begin_inset Flex Code
19005 \begin_layout Plain Layout
19011 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19012 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19013 \begin_inset Flex Code
19016 \begin_layout Plain Layout
19022 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19023 \begin_inset Flex Code
19026 \begin_layout Plain Layout
19035 \begin_layout Description
19036 \begin_inset Flex Code
19039 \begin_layout Plain Layout
19046 \begin_inset Flex Code
19049 \begin_layout Plain Layout
19055 ] 環境の段落に使用されるタグ.上記各例の
19056 \begin_inset Flex Code
19059 \begin_layout Plain Layout
19066 \begin_inset Flex Code
19069 \begin_layout Plain Layout
19078 \begin_layout Description
19079 \begin_inset Flex Code
19082 \begin_layout Plain Layout
19089 \begin_inset Flex Code
19092 \begin_layout Plain Layout
19099 \begin_inset Flex Code
19102 \begin_layout Plain Layout
19103 class=`レイアウト名_item'
19113 \begin_inset Flex Code
19116 \begin_layout Plain Layout
19125 \begin_layout Description
19126 \begin_inset Flex Code
19129 \begin_layout Plain Layout
19136 \begin_inset Flex Code
19139 \begin_layout Plain Layout
19145 ] 段落と項目ラベルに使用されるタグ.上記各例の
19146 \begin_inset Flex Code
19149 \begin_layout Plain Layout
19156 \begin_inset Flex Code
19159 \begin_layout Plain Layout
19166 \begin_inset Flex Code
19169 \begin_layout Plain Layout
19176 \begin_inset Flex Code
19179 \begin_layout Plain Layout
19180 Centered_Top_Environment
19186 \begin_inset Flex Code
19189 \begin_layout Plain Layout
19196 \begin_inset Flex Code
19199 \begin_layout Plain Layout
19208 \begin_layout Description
19209 \begin_inset Flex Code
19212 \begin_layout Plain Layout
19219 \begin_inset Flex Code
19222 \begin_layout Plain Layout
19229 \begin_inset Flex Code
19232 \begin_layout Plain Layout
19233 class=`レイアウト名_label'
19243 \begin_inset Flex Code
19246 \begin_layout Plain Layout
19255 \begin_layout Description
19256 \begin_inset Flex Code
19259 \begin_layout Plain Layout
19266 \begin_inset Flex Code
19269 \begin_layout Plain Layout
19279 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19281 \begin_inset Flex Code
19284 \begin_layout Plain Layout
19285 `<dt>\SpecialChar ldots
19286 </dt><dd>\SpecialChar ldots
19292 という形を得るために使用されます.既定値は
19293 \begin_inset Flex Code
19296 \begin_layout Plain Layout
19302 で,labelタグはitemタグの中に出力されます.
19305 \begin_layout Description
19306 \begin_inset Flex Code
19309 \begin_layout Plain Layout
19316 \begin_inset Flex Code
19319 \begin_layout Plain Layout
19325 セクションに出力される情報.これは,たとえば,
19326 \begin_inset Flex Code
19329 \begin_layout Plain Layout
19336 \begin_inset Flex Code
19339 \begin_layout Plain Layout
19345 ブロックをインクルードするのに使用することができます.
19348 \begin_layout Description
19349 \begin_inset Flex Code
19352 \begin_layout Plain Layout
19358 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19359 \begin_inset Flex Code
19362 \begin_layout Plain Layout
19368 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19369 \begin_inset Flex Code
19372 \begin_layout Plain Layout
19381 \begin_layout Description
19382 \begin_inset Flex Code
19385 \begin_layout Plain Layout
19392 \begin_inset Flex Code
19395 \begin_layout Plain Layout
19401 ] 主幹ラベルに使用されるタグ.上記各例の
19402 \begin_inset Flex Code
19405 \begin_layout Plain Layout
19412 \begin_inset Flex Code
19415 \begin_layout Plain Layout
19424 \begin_layout Description
19425 \begin_inset Flex Code
19428 \begin_layout Plain Layout
19435 \begin_inset Flex Code
19438 \begin_layout Plain Layout
19449 \begin_inset Flex Code
19452 \begin_layout Plain Layout
19458 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19459 \begin_inset Flex Code
19462 \begin_layout Plain Layout
19469 \begin_inset Flex Code
19472 \begin_layout Plain Layout
19481 \begin_layout Subsection
19485 \begin_layout Standard
19486 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19490 \begin_layout Plain Layout
19491 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19497 .ここでも,\SpecialChar LyX
19498 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19501 \begin_layout Standard
19503 が差込枠用に出力するXHTMLは,以下の形を取ります.
19506 \begin_layout LyX-Code
19508 \begin_inset Quotes erd
19512 \begin_inset Quotes erd
19518 \begin_layout LyX-Code
19519 <labeltag>ラベル</labeltag>
19522 \begin_layout LyX-Code
19524 \begin_inset Quotes erd
19528 \begin_inset Quotes erd
19531 >差込枠の内容.</innertag>
19534 \begin_layout LyX-Code
19538 \begin_layout Standard
19540 \begin_inset Flex Code
19543 \begin_layout Plain Layout
19549 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19550 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19551 \begin_inset Flex Code
19554 \begin_layout Plain Layout
19560 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19564 \begin_layout Description
19565 \begin_inset Flex Code
19568 \begin_layout Plain Layout
19575 \begin_inset Flex Code
19578 \begin_layout Plain Layout
19584 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19585 \begin_inset Flex Code
19588 \begin_layout Plain Layout
19589 class=`myinset' onclick=`\SpecialChar ldots
19595 」のようなものです.既定においては,\SpecialChar LyX
19597 \begin_inset Flex Code
19600 \begin_layout Plain Layout
19607 \begin_inset Flex Code
19610 \begin_layout Plain Layout
19616 は,差込枠の\SpecialChar LyX
19617 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19620 \begin_layout Description
19621 \begin_inset Flex Code
19624 \begin_layout Plain Layout
19631 \begin_inset Flex Code
19634 \begin_layout Plain Layout
19645 \begin_inset Flex Code
19648 \begin_layout Plain Layout
19654 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19655 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19656 \begin_inset Flex Code
19659 \begin_layout Plain Layout
19665 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19666 \begin_inset Flex Code
19669 \begin_layout Plain Layout
19678 \begin_layout Description
19679 \begin_inset Flex Code
19682 \begin_layout Plain Layout
19689 \begin_inset Flex Code
19692 \begin_layout Plain Layout
19699 \begin_inset Flex Code
19702 \begin_layout Plain Layout
19711 \begin_layout Description
19712 \begin_inset Flex Code
19715 \begin_layout Plain Layout
19722 \begin_inset Flex Code
19725 \begin_layout Plain Layout
19732 \begin_inset Flex Code
19735 \begin_layout Plain Layout
19744 \begin_layout Description
19745 \begin_inset Flex Code
19748 \begin_layout Plain Layout
19755 \begin_inset Flex Code
19758 \begin_layout Plain Layout
19766 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19769 \begin_layout Description
19770 \begin_inset Flex Code
19773 \begin_layout Plain Layout
19780 \begin_inset Flex Code
19783 \begin_layout Plain Layout
19789 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19790 \begin_inset Flex Code
19793 \begin_layout Plain Layout
19801 など.これは非必須であり,既定値はありません.
19804 \begin_layout Description
19805 \begin_inset Flex Code
19808 \begin_layout Plain Layout
19815 \begin_inset Flex Code
19818 \begin_layout Plain Layout
19824 セクションに出力される情報.これは,たとえば,
19825 \begin_inset Flex Code
19828 \begin_layout Plain Layout
19835 \begin_inset Flex Code
19838 \begin_layout Plain Layout
19844 ブロックをインクルードするのに使用することができます.
19847 \begin_layout Description
19848 \begin_inset Flex Code
19851 \begin_layout Plain Layout
19857 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19858 \begin_inset Flex Code
19861 \begin_layout Plain Layout
19867 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19870 \begin_layout Description
19871 \begin_inset Flex Code
19874 \begin_layout Plain Layout
19881 \begin_inset Flex Code
19884 \begin_layout Plain Layout
19890 ] 主幹ラベルに使用されるタグ.上記各例の
19891 \begin_inset Flex Code
19894 \begin_layout Plain Layout
19901 \begin_inset Flex Code
19904 \begin_layout Plain Layout
19911 \begin_inset Flex Code
19914 \begin_layout Plain Layout
19921 \begin_inset Flex Code
19924 \begin_layout Plain Layout
19931 \begin_inset Flex Code
19934 \begin_layout Plain Layout
19943 \begin_layout Subsection
19947 \begin_layout Standard
19948 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19951 \begin_layout LyX-Code
19953 \begin_inset Quotes erd
19957 \begin_inset Quotes erd
19963 \begin_layout LyX-Code
19967 \begin_layout LyX-Code
19971 \begin_layout Standard
19972 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19976 \begin_layout Description
19977 \begin_inset Flex Code
19980 \begin_layout Plain Layout
19987 \begin_inset Flex Code
19990 \begin_layout Plain Layout
19996 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19997 \begin_inset Flex Code
20000 \begin_layout Plain Layout
20001 class=`myfloat' onclick=`\SpecialChar ldots
20007 」のようなものです.既定においては,\SpecialChar LyX
20009 \begin_inset Flex Code
20012 \begin_layout Plain Layout
20013 class=`float フロート-フロート型'
20019 \begin_inset Flex Code
20022 \begin_layout Plain Layout
20029 \begin_inset CommandInset ref
20031 reference "subsec:フロート"
20035 参照),この型のフロートの\SpecialChar LyX
20036 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
20039 \begin_layout Description
20040 \begin_inset Flex Code
20043 \begin_layout Plain Layout
20049 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
20050 \begin_inset Flex Code
20053 \begin_layout Plain Layout
20059 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
20062 \begin_layout Description
20063 \begin_inset Flex Code
20066 \begin_layout Plain Layout
20073 \begin_inset Flex Code
20076 \begin_layout Plain Layout
20082 ] このフロートに使用されるタグ.上記各例の
20083 \begin_inset Flex Code
20086 \begin_layout Plain Layout
20093 \begin_inset Flex Code
20096 \begin_layout Plain Layout
20102 であり,ほとんどの場合変更する必要はありません.
20105 \begin_layout Subsection
20109 \begin_layout Standard
20111 \begin_inset Flex Code
20114 \begin_layout Plain Layout
20120 ブロックを使用して整形することができます.詳細については,
20121 \begin_inset CommandInset ref
20123 reference "subsec:引用書式指定"
20130 \begin_layout Subsection
20135 \begin_layout Standard
20137 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20139 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20142 \begin_layout Standard
20145 \begin_inset Flex Code
20148 \begin_layout Plain Layout
20155 \begin_inset Flex Code
20158 \begin_layout Plain Layout
20165 \begin_inset Flex Code
20168 \begin_layout Plain Layout
20175 \begin_inset Flex Code
20178 \begin_layout Plain Layout
20185 \begin_inset Flex Code
20188 \begin_layout Plain Layout
20194 を利用して,フォント情報についてのみCSSを自動生成します(
20195 \begin_inset CommandInset ref
20197 reference "subsec:フォント指定"
20201 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20202 \begin_inset Flex Code
20205 \begin_layout Plain Layout
20212 \begin_inset Flex Code
20215 \begin_layout Plain Layout
20216 font-family: sans-serif
20221 」になります.\SpecialChar LyX
20222 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20223 \begin_inset Flex URL
20226 \begin_layout Plain Layout
20234 \begin_inset Flex Code
20237 \begin_layout Plain Layout
20246 \begin_layout Chapter
20248 \begin_inset CommandInset label
20250 name "chap:外部素材を取り込む"
20257 \begin_layout Standard
20258 \begin_inset Box Shadowbox
20268 height_special "totalheight"
20273 backgroundcolor "none"
20276 \begin_layout Plain Layout
20277 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20285 \begin_layout Standard
20287 外部のソースから素材を使用する方法は,取扱説明書『
20291 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20294 \begin_layout Section
20298 \begin_layout Standard
20299 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20300 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20302 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20303 \begin_inset Flex MenuItem
20306 \begin_layout Plain Layout
20307 挿入\SpecialChar menuseparator
20308 ファイル\SpecialChar menuseparator
20314 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20315 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20316 の後の版に取り込むことができるようにしてくださることを希望します.
20319 \begin_layout Standard
20320 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20322 \begin_inset Flex Code
20325 \begin_layout Plain Layout
20331 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20332 \begin_inset Flex Code
20335 \begin_layout Plain Layout
20341 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20342 \begin_inset Flex Code
20345 \begin_layout Plain Layout
20351 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20352 ファイルにそのままインクルードできるように,
20353 \begin_inset Flex Code
20356 \begin_layout Plain Layout
20362 を呼び出してPostScriptファイルを生成します.この場合には,
20363 \begin_inset Flex Code
20366 \begin_layout Plain Layout
20372 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20375 \begin_layout Standard
20376 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20377 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20378 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20381 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20384 \begin_layout Standard
20386 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20387 の場合には,\SpecialChar LyX
20388 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20389 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20390 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20394 \begin_layout Section
20398 \begin_layout Standard
20400 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20401 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20402 \begin_inset CommandInset ref
20404 reference "sec:セキュリティに関する論点"
20408 のセキュリティに関する議論を読んでおいてください.
20411 \begin_layout Standard
20412 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20415 \begin_layout Standard
20417 \begin_inset Flex Code
20420 \begin_layout Plain Layout
20421 LyXDir/lib/external_templates
20426 ファイルで定義されています.自分用の版を
20427 \begin_inset Flex Code
20430 \begin_layout Plain Layout
20431 UserDir/external_templates
20439 \begin_layout Standard
20440 典型的なひな型は以下のようになります.
20443 \begin_layout LyX-Code
20447 \begin_layout LyX-Code
20448 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20451 \begin_layout LyX-Code
20455 \begin_layout LyX-Code
20459 \begin_layout LyX-Code
20463 \begin_layout LyX-Code
20467 \begin_layout LyX-Code
20471 \begin_layout LyX-Code
20472 AutomaticProduction true
20475 \begin_layout LyX-Code
20479 \begin_layout LyX-Code
20483 \begin_layout LyX-Code
20487 \begin_layout LyX-Code
20488 TransformCommand Rotate RotationLatexCommand
20491 \begin_layout LyX-Code
20492 TransformCommand Resize ResizeLatexCommand
20495 \begin_layout LyX-Code
20496 Product "$$RotateFront$$ResizeFront
20499 \begin_layout LyX-Code
20504 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20507 \begin_layout LyX-Code
20508 $$ResizeBack$$RotateBack"
20511 \begin_layout LyX-Code
20515 \begin_layout LyX-Code
20516 UpdateResult "$$AbsPath$$Basename.pstex_t"
20519 \begin_layout LyX-Code
20520 Requirement "graphicx"
20523 \begin_layout LyX-Code
20524 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20527 \begin_layout LyX-Code
20528 ReferencedFile latex "$$AbsPath$$Basename.eps"
20531 \begin_layout LyX-Code
20532 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20535 \begin_layout LyX-Code
20539 \begin_layout LyX-Code
20543 \begin_layout LyX-Code
20544 TransformCommand Rotate RotationLatexCommand
20547 \begin_layout LyX-Code
20548 TransformCommand Resize ResizeLatexCommand
20551 \begin_layout LyX-Code
20552 Product "$$RotateFront$$ResizeFront
20555 \begin_layout LyX-Code
20560 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20563 \begin_layout LyX-Code
20564 $$ResizeBack$$RotateBack"
20567 \begin_layout LyX-Code
20568 UpdateFormat pdftex
20571 \begin_layout LyX-Code
20572 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20575 \begin_layout LyX-Code
20576 Requirement "graphicx"
20579 \begin_layout LyX-Code
20580 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20583 \begin_layout LyX-Code
20584 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20587 \begin_layout LyX-Code
20591 \begin_layout LyX-Code
20595 \begin_layout LyX-Code
20596 Product "$$Contents(
20598 "$$AbsPath$$Basename.asc
20603 \begin_layout LyX-Code
20604 UpdateFormat asciixfig
20607 \begin_layout LyX-Code
20608 UpdateResult "$$AbsPath$$Basename.asc"
20611 \begin_layout LyX-Code
20615 \begin_layout LyX-Code
20619 \begin_layout LyX-Code
20620 Product "<graphic fileref=
20622 "$$AbsOrRelPathMaster$$Basename.eps
20627 \begin_layout LyX-Code
20631 \begin_layout LyX-Code
20635 \begin_layout LyX-Code
20636 UpdateResult "$$AbsPath$$Basename.eps"
20639 \begin_layout LyX-Code
20640 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20643 \begin_layout LyX-Code
20644 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20647 \begin_layout LyX-Code
20651 \begin_layout LyX-Code
20652 Product "[XFig: $$FName]"
20655 \begin_layout LyX-Code
20659 \begin_layout LyX-Code
20663 \begin_layout Standard
20665 \begin_inset Flex Code
20668 \begin_layout Plain Layout
20676 \begin_inset Flex Code
20679 \begin_layout Plain Layout
20685 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20686 \begin_inset Flex Code
20689 \begin_layout Plain Layout
20697 \begin_inset Flex Code
20700 \begin_layout Plain Layout
20709 \begin_layout Subsection
20713 \begin_layout Description
20714 \begin_inset Flex Code
20717 \begin_layout Plain Layout
20718 AutomaticProduction
20719 \begin_inset space ~
20727 このひな型で扱うファイルを\SpecialChar LyX
20728 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20731 \begin_layout Description
20732 \begin_inset Flex Code
20735 \begin_layout Plain Layout
20737 \begin_inset space ~
20745 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20746 \begin_inset Flex Code
20749 \begin_layout Plain Layout
20756 \begin_inset Flex Code
20759 \begin_layout Plain Layout
20766 \begin_inset Flex Code
20769 \begin_layout Plain Layout
20775 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20778 \begin_layout Description
20779 \begin_inset Flex Code
20782 \begin_layout Plain Layout
20784 \begin_inset space ~
20792 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20795 \begin_layout Description
20796 \begin_inset Flex Code
20799 \begin_layout Plain Layout
20801 \begin_inset space ~
20805 \begin_inset space ~
20813 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20817 \begin_layout Description
20818 \begin_inset Flex Code
20821 \begin_layout Plain Layout
20823 \begin_inset space ~
20831 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20832 が知っている書式名でなくてはなりません(
20833 \begin_inset CommandInset ref
20835 reference "sec:ファイル形式"
20839 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20840 \begin_inset Flex Code
20843 \begin_layout Plain Layout
20849 」を使用してください.この場合,\SpecialChar LyX
20850 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20853 \begin_layout Description
20854 \begin_inset Flex Code
20857 \begin_layout Plain Layout
20859 \begin_inset space ~
20867 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20870 \begin_layout Description
20871 \begin_inset Flex Code
20874 \begin_layout Plain Layout
20876 \begin_inset space ~
20879 Rotate|Resize|Clip|Extra
20884 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20885 ログ中の対応するタブを使用可能にします.
20886 \begin_inset Flex Code
20889 \begin_layout Plain Layout
20896 \begin_inset Flex Code
20899 \begin_layout Plain Layout
20906 \begin_inset Flex Code
20909 \begin_layout Plain Layout
20916 \begin_inset Flex Code
20919 \begin_layout Plain Layout
20925 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20928 \begin_layout Subsection
20929 \begin_inset Flex Code
20932 \begin_layout Plain Layout
20941 \begin_layout Description
20942 \begin_inset Flex Code
20945 \begin_layout Plain Layout
20947 \begin_inset space ~
20950 LaTeX|PDFLaTeX|PlainText|DocBook
20955 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20956 \begin_inset Flex Code
20959 \begin_layout Plain Layout
20965 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20969 \begin_layout Description
20970 \begin_inset Flex Code
20973 \begin_layout Plain Layout
20975 \begin_inset space ~
20979 \begin_inset space ~
20988 \begin_inset Flex Code
20991 \begin_layout Plain Layout
20998 \begin_inset Flex Code
21001 \begin_layout Plain Layout
21008 \begin_inset Flex Code
21011 \begin_layout Plain Layout
21017 自体にも代入マクロを使うことができます.
21018 \begin_inset Flex Code
21021 \begin_layout Plain Layout
21028 \begin_inset Flex Code
21031 \begin_layout Plain Layout
21038 \begin_inset Flex Code
21041 \begin_layout Plain Layout
21047 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
21050 \begin_layout Description
21051 \begin_inset Flex Code
21054 \begin_layout Plain Layout
21056 \begin_inset space ~
21064 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
21068 \begin_layout Description
21069 \begin_inset Flex Code
21072 \begin_layout Plain Layout
21074 \begin_inset space ~
21082 このコマンドは,\SpecialChar LaTeX
21083 プリアンブルに入れるプリアンブル片を指定します.これは
21084 \begin_inset Flex Code
21087 \begin_layout Plain Layout
21095 \begin_inset Flex Code
21098 \begin_layout Plain Layout
21104 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21107 \begin_layout Description
21108 \begin_inset Flex Code
21111 \begin_layout Plain Layout
21113 \begin_inset space ~
21117 \begin_inset space ~
21125 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21126 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21129 \begin_layout Description
21130 \begin_inset Flex Code
21133 \begin_layout Plain Layout
21135 \begin_inset space ~
21143 必要とされる\SpecialChar LaTeX
21144 パッケージ名.パッケージは,\SpecialChar LaTeX
21146 \begin_inset Flex Code
21149 \begin_layout Plain Layout
21157 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21160 \begin_layout Description
21161 \begin_inset Flex Code
21164 \begin_layout Plain Layout
21166 \begin_inset space ~
21170 \begin_inset space ~
21173 RotationLatexCommand
21178 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
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 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21201 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21204 \begin_layout Description
21205 \begin_inset Flex Code
21208 \begin_layout Plain Layout
21210 \begin_inset space ~
21214 \begin_inset space ~
21217 RotationLatexOption
21222 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21225 \begin_layout Description
21226 \begin_inset Flex Code
21229 \begin_layout Plain Layout
21231 \begin_inset space ~
21235 \begin_inset space ~
21243 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21246 \begin_layout Description
21247 \begin_inset Flex Code
21250 \begin_layout Plain Layout
21252 \begin_inset space ~
21256 \begin_inset space ~
21264 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21267 \begin_layout Description
21268 \begin_inset Flex Code
21271 \begin_layout Plain Layout
21273 \begin_inset space ~
21277 \begin_inset space ~
21285 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21288 \begin_layout Description
21289 \begin_inset Flex Code
21292 \begin_layout Plain Layout
21294 \begin_inset space ~
21302 変換されたファイルのファイル形式.これは,\SpecialChar LyX
21303 が知っている書式名でなくてはなりません(
21304 \begin_inset Flex MenuItem
21307 \begin_layout Plain Layout
21308 ツール\SpecialChar menuseparator
21309 設定\SpecialChar menuseparator
21310 ファイル処理\SpecialChar menuseparator
21316 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21317 \begin_inset Flex Code
21320 \begin_layout Plain Layout
21326 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21329 \begin_layout Description
21330 \begin_inset Flex Code
21333 \begin_layout Plain Layout
21335 \begin_inset space ~
21343 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21346 \begin_layout Subsection
21350 \begin_layout Standard
21352 \begin_inset Flex Code
21355 \begin_layout Plain Layout
21363 \begin_inset Flex Code
21366 \begin_layout Plain Layout
21372 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21373 \begin_inset Flex Code
21376 \begin_layout Plain Layout
21385 \begin_layout Section
21389 \begin_layout Standard
21390 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21391 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21394 \begin_layout Standard
21395 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21398 \begin_layout Standard
21402 \begin_layout Description
21403 \begin_inset Flex Code
21406 \begin_layout Plain Layout
21407 $$AbsOrRelPathMaster
21413 親文書への絶対ファイルパスないしは相対ファイルパス
21416 \begin_layout Description
21417 \begin_inset Flex Code
21420 \begin_layout Plain Layout
21421 $$AbsOrRelPathParent
21427 文書への絶対ファイルパスないしは相対ファイルパス
21430 \begin_layout Description
21431 \begin_inset Flex Code
21434 \begin_layout Plain Layout
21443 \begin_layout Description
21444 \begin_inset Flex Code
21447 \begin_layout Plain Layout
21456 \begin_layout Description
21457 \begin_inset Flex Code
21460 \begin_layout Plain Layout
21462 \begin_inset Quotes eld
21466 \begin_inset Quotes erd
21475 \begin_inset Flex Code
21478 \begin_layout Plain Layout
21484 と云う名のファイルの中身を展開します.
21487 \begin_layout Description
21488 \begin_inset Flex Code
21491 \begin_layout Plain Layout
21500 \begin_layout Description
21501 \begin_inset Flex Code
21504 \begin_layout Plain Layout
21510 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21511 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21512 出力形式に対してこのマクロを使用します.
21515 \begin_layout Description
21516 \begin_inset Flex Code
21519 \begin_layout Plain Layout
21525 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21526 文書への絶対パスでも良いですし,相対パスでも構いません.
21529 \begin_layout Description
21530 \begin_inset Flex Code
21533 \begin_layout Plain Layout
21540 \begin_inset Flex Code
21543 \begin_layout Plain Layout
21549 のパス部分(\SpecialChar LyX
21553 \begin_layout Description
21554 \begin_inset Flex Code
21557 \begin_layout Plain Layout
21567 \begin_layout Description
21568 \begin_inset Flex Code
21571 \begin_layout Plain Layout
21581 \begin_layout Description
21582 \begin_inset Flex Code
21585 \begin_layout Plain Layout
21591 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21592 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21595 \begin_layout Description
21596 \begin_inset Flex Code
21599 \begin_layout Plain Layout
21605 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21608 \begin_layout Standard
21609 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
21610 \begin_inset Flex Code
21613 \begin_layout Plain Layout
21614 $$AbsPath$$Basename$$Extension
21622 \begin_layout Standard
21623 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
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 \begin_inset Flex Code
21712 \begin_layout Plain Layout
21719 \begin_inset Flex Code
21722 \begin_layout Plain Layout
21729 \begin_inset Flex Code
21732 \begin_layout Plain Layout
21738 コマンドが有効にされていれば,以下の代入もサポートされます.
21741 \begin_layout Description
21742 \begin_inset Flex Code
21745 \begin_layout Plain Layout
21754 \begin_layout Description
21755 \begin_inset Flex Code
21758 \begin_layout Plain Layout
21767 \begin_layout Description
21768 \begin_inset Flex Code
21771 \begin_layout Plain Layout
21780 \begin_layout Description
21781 \begin_inset Flex Code
21784 \begin_layout Plain Layout
21793 \begin_layout Standard
21794 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21797 \begin_layout Enumerate
21798 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21799 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21802 \begin_layout Enumerate
21804 は,相対ファイル名に関して,\SpecialChar LyX
21805 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21806 にとって相対ファイル名とは,常にこのファイル名が書か
21807 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21808 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21809 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21810 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21811 を選びさえすれば,これは\SpecialChar LyX
21815 \begin_layout Standard
21816 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21819 \begin_layout Itemize
21821 \begin_inset Flex Code
21824 \begin_layout Plain Layout
21833 \begin_layout Itemize
21834 代入された文字列が,\SpecialChar LaTeX
21836 \begin_inset Flex Code
21839 \begin_layout Plain Layout
21840 $$AbsOrRelPathMaster
21848 \begin_layout Itemize
21849 それ以外ならば,ユーザの選択を尊重するために
21850 \begin_inset Flex Code
21853 \begin_layout Plain Layout
21854 $$AbsOrRelPathParent
21862 \begin_layout Standard
21863 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21864 \begin_inset Flex Code
21867 \begin_layout Plain Layout
21868 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21874 \begin_inset Flex Code
21877 \begin_layout Plain Layout
21883 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21886 \begin_layout Section
21888 \begin_inset CommandInset label
21890 name "sec:セキュリティに関する論点"
21897 \begin_layout Standard
21898 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21899 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21900 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21903 \begin_layout Standard
21904 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21905 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21907 \begin_inset Flex Code
21910 \begin_layout Plain Layout
21917 \begin_inset Flex Code
21920 \begin_layout Plain Layout
21926 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21929 \begin_layout Standard
21930 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21931 できません.これは,\SpecialChar LyX
21932 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21933 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21936 \begin_layout Standard
21937 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21938 うになるため,一般的には,統御下に置いた状態で
21939 \begin_inset Flex Code
21942 \begin_layout Plain Layout
21948 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21949 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21953 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21954 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21955 には,安全でないひな型は決して入っていません
21959 \begin_layout Standard
21960 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21961 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21962 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21963 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21964 使用する前に,行うようにしてください.
21967 \begin_layout Chapter
21969 サポートされているレイアウト用\SpecialChar LyX
21971 \begin_inset CommandInset label
21980 \begin_layout Standard
21982 \begin_inset Tabular
21983 <lyxtabular version="3" rows="11" columns="8">
21984 <features tabularvalignment="middle">
21985 <column alignment="left" valignment="top">
21986 <column alignment="left" valignment="top">
21987 <column alignment="left" valignment="top">
21988 <column alignment="left" valignment="top">
21989 <column alignment="left" valignment="top">
21990 <column alignment="left" valignment="top">
21991 <column alignment="left" valignment="top">
21992 <column alignment="left" valignment="top">
21994 <cell alignment="left" valignment="top" usebox="none">
21997 \begin_layout Plain Layout
22003 <cell alignment="left" valignment="top" usebox="none">
22006 \begin_layout Plain Layout
22012 <cell alignment="left" valignment="top" usebox="none">
22015 \begin_layout Plain Layout
22021 <cell alignment="left" valignment="top" usebox="none">
22024 \begin_layout Plain Layout
22030 <cell alignment="center" valignment="top" usebox="none">
22033 \begin_layout Plain Layout
22039 <cell alignment="center" valignment="top" usebox="none">
22042 \begin_layout Plain Layout
22048 <cell alignment="center" valignment="top" usebox="none">
22051 \begin_layout Plain Layout
22057 <cell alignment="center" valignment="top" usebox="none">
22060 \begin_layout Plain Layout
22068 <cell alignment="left" valignment="top" usebox="none">
22071 \begin_layout Plain Layout
22077 <cell alignment="left" valignment="top" usebox="none">
22080 \begin_layout Plain Layout
22086 <cell alignment="left" valignment="top" usebox="none">
22089 \begin_layout Plain Layout
22095 <cell alignment="left" valignment="top" usebox="none">
22098 \begin_layout Plain Layout
22104 <cell alignment="center" valignment="top" usebox="none">
22107 \begin_layout Plain Layout
22113 <cell alignment="center" valignment="top" usebox="none">
22116 \begin_layout Plain Layout
22122 <cell alignment="center" valignment="top" usebox="none">
22125 \begin_layout Plain Layout
22131 <cell alignment="center" valignment="top" usebox="none">
22134 \begin_layout Plain Layout
22142 <cell alignment="left" valignment="top" usebox="none">
22145 \begin_layout Plain Layout
22151 <cell alignment="left" valignment="top" usebox="none">
22154 \begin_layout Plain Layout
22160 <cell alignment="left" valignment="top" usebox="none">
22163 \begin_layout Plain Layout
22169 <cell alignment="left" valignment="top" usebox="none">
22172 \begin_layout Plain Layout
22178 <cell alignment="center" valignment="top" usebox="none">
22181 \begin_layout Plain Layout
22187 <cell alignment="center" valignment="top" usebox="none">
22190 \begin_layout Plain Layout
22196 <cell alignment="center" valignment="top" usebox="none">
22199 \begin_layout Plain Layout
22205 <cell alignment="center" valignment="top" usebox="none">
22208 \begin_layout Plain Layout
22216 <cell alignment="left" valignment="top" usebox="none">
22219 \begin_layout Plain Layout
22225 <cell alignment="left" valignment="top" usebox="none">
22228 \begin_layout Plain Layout
22234 <cell alignment="left" valignment="top" usebox="none">
22237 \begin_layout Plain Layout
22243 <cell alignment="left" valignment="top" usebox="none">
22246 \begin_layout Plain Layout
22252 <cell alignment="center" valignment="top" usebox="none">
22255 \begin_layout Plain Layout
22261 <cell alignment="center" valignment="top" usebox="none">
22264 \begin_layout Plain Layout
22270 <cell alignment="center" valignment="top" usebox="none">
22273 \begin_layout Plain Layout
22279 <cell alignment="center" valignment="top" usebox="none">
22282 \begin_layout Plain Layout
22290 <cell alignment="left" valignment="top" usebox="none">
22293 \begin_layout Plain Layout
22299 <cell alignment="left" valignment="top" usebox="none">
22302 \begin_layout Plain Layout
22308 <cell alignment="left" valignment="top" usebox="none">
22311 \begin_layout Plain Layout
22317 <cell alignment="left" valignment="top" usebox="none">
22320 \begin_layout Plain Layout
22326 <cell alignment="center" valignment="top" usebox="none">
22329 \begin_layout Plain Layout
22335 <cell alignment="center" valignment="top" usebox="none">
22338 \begin_layout Plain Layout
22344 <cell alignment="center" valignment="top" usebox="none">
22347 \begin_layout Plain Layout
22353 <cell alignment="center" valignment="top" usebox="none">
22356 \begin_layout Plain Layout
22364 <cell alignment="left" valignment="top" usebox="none">
22367 \begin_layout Plain Layout
22373 <cell alignment="left" valignment="top" usebox="none">
22376 \begin_layout Plain Layout
22382 <cell alignment="left" valignment="top" usebox="none">
22385 \begin_layout Plain Layout
22391 <cell alignment="left" valignment="top" usebox="none">
22394 \begin_layout Plain Layout
22400 <cell alignment="center" valignment="top" usebox="none">
22403 \begin_layout Plain Layout
22409 <cell alignment="center" valignment="top" usebox="none">
22412 \begin_layout Plain Layout
22418 <cell alignment="center" valignment="top" usebox="none">
22421 \begin_layout Plain Layout
22427 <cell alignment="center" valignment="top" usebox="none">
22430 \begin_layout Plain Layout
22438 <cell alignment="left" valignment="top" usebox="none">
22441 \begin_layout Plain Layout
22447 <cell alignment="left" valignment="top" usebox="none">
22450 \begin_layout Plain Layout
22456 <cell alignment="left" valignment="top" usebox="none">
22459 \begin_layout Plain Layout
22465 <cell alignment="left" valignment="top" usebox="none">
22468 \begin_layout Plain Layout
22474 <cell alignment="center" valignment="top" usebox="none">
22477 \begin_layout Plain Layout
22483 <cell alignment="center" valignment="top" usebox="none">
22486 \begin_layout Plain Layout
22492 <cell alignment="center" valignment="top" usebox="none">
22495 \begin_layout Plain Layout
22501 <cell alignment="center" valignment="top" usebox="none">
22504 \begin_layout Plain Layout
22512 <cell alignment="left" valignment="top" usebox="none">
22515 \begin_layout Plain Layout
22521 <cell alignment="left" valignment="top" usebox="none">
22524 \begin_layout Plain Layout
22530 <cell alignment="left" valignment="top" usebox="none">
22533 \begin_layout Plain Layout
22539 <cell alignment="left" valignment="top" usebox="none">
22542 \begin_layout Plain Layout
22548 <cell alignment="center" valignment="top" usebox="none">
22551 \begin_layout Plain Layout
22557 <cell alignment="center" valignment="top" usebox="none">
22560 \begin_layout Plain Layout
22566 <cell alignment="center" valignment="top" usebox="none">
22569 \begin_layout Plain Layout
22575 <cell alignment="center" valignment="top" usebox="none">
22578 \begin_layout Plain Layout
22586 <cell alignment="left" valignment="top" usebox="none">
22589 \begin_layout Plain Layout
22595 <cell alignment="left" valignment="top" usebox="none">
22598 \begin_layout Plain Layout
22604 <cell alignment="left" valignment="top" usebox="none">
22607 \begin_layout Plain Layout
22613 <cell alignment="left" valignment="top" usebox="none">
22616 \begin_layout Plain Layout
22622 <cell alignment="center" valignment="top" usebox="none">
22625 \begin_layout Plain Layout
22631 <cell alignment="center" valignment="top" usebox="none">
22634 \begin_layout Plain Layout
22640 <cell alignment="center" valignment="top" usebox="none">
22643 \begin_layout Plain Layout
22649 <cell alignment="center" valignment="top" usebox="none">
22652 \begin_layout Plain Layout
22660 <cell alignment="left" valignment="top" usebox="none">
22663 \begin_layout Plain Layout
22669 <cell alignment="left" valignment="top" usebox="none">
22672 \begin_layout Plain Layout
22678 <cell alignment="left" valignment="top" usebox="none">
22681 \begin_layout Plain Layout
22687 <cell alignment="left" valignment="top" usebox="none">
22690 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" usebox="none">
22699 \begin_layout Plain Layout
22705 <cell alignment="center" valignment="top" usebox="none">
22708 \begin_layout Plain Layout
22714 <cell alignment="center" valignment="top" usebox="none">
22717 \begin_layout Plain Layout
22723 <cell alignment="center" valignment="top" usebox="none">
22726 \begin_layout Plain Layout
22734 <cell alignment="center" valignment="top" usebox="none">
22737 \begin_layout Plain Layout
22743 <cell alignment="center" valignment="top" usebox="none">
22746 \begin_layout Plain Layout
22752 <cell alignment="center" valignment="top" usebox="none">
22755 \begin_layout Plain Layout
22761 <cell alignment="center" valignment="top" usebox="none">
22764 \begin_layout Plain Layout
22770 <cell alignment="center" valignment="top" usebox="none">
22773 \begin_layout Plain Layout
22779 <cell alignment="center" valignment="top" usebox="none">
22782 \begin_layout Plain Layout
22788 <cell alignment="center" valignment="top" usebox="none">
22791 \begin_layout Plain Layout
22797 <cell alignment="center" valignment="top" usebox="none">
22800 \begin_layout Plain Layout
22814 \begin_layout Chapter
22816 \begin_inset CommandInset label
22825 \begin_layout Standard
22826 ここに列挙されている色は標準色であり,\SpecialChar LyX
22830 \begin_layout Description
22835 特定の色ではありません – 透明か既定色です
22838 \begin_layout Description
22842 \begin_layout Description
22846 \begin_layout Description
22850 \begin_layout Description
22854 \begin_layout Description
22858 \begin_layout Description
22862 \begin_layout Description
22866 \begin_layout Description
22870 \begin_layout Description
22874 \begin_layout Description
22878 \begin_layout Description
22882 \begin_layout Description
22886 \begin_layout Description
22890 \begin_layout Description
22891 branchlabel 派生枝ラベル色
22894 \begin_layout Description
22898 \begin_layout Description
22899 buttonhoverbg フォーカスを得ているボタンの背景色
22902 \begin_layout Description
22906 \begin_layout Description
22910 \begin_layout Description
22911 changedtextauthor1 変更された文章:第1著者の色
22914 \begin_layout Description
22915 changedtextauthor2 変更された文章:第2著者の色
22918 \begin_layout Description
22919 changedtextauthor3 変更された文章:第3著者の色
22922 \begin_layout Description
22923 changedtextauthor4 変更された文章:第4著者の色
22926 \begin_layout Description
22927 changedtextauthor5 変更された文章:第5著者の色
22930 \begin_layout Description
22931 collapsable_inset_frame 畳み込み可能枠の縁色
22934 \begin_layout Description
22935 collapsable_inset_text 畳み込み可能枠の文字色
22938 \begin_layout Description
22939 command コマンド差込枠の文字色
22942 \begin_layout Description
22943 commandbg コマンド差込枠の背景色
22946 \begin_layout Description
22947 commandframe コマンド差込枠の縁色
22950 \begin_layout Description
22954 \begin_layout Description
22958 \begin_layout Description
22962 \begin_layout Description
22963 deletedtext 削除された文章の色
22966 \begin_layout Description
22967 deletedtextmodifier 削除された文章の修飾子の色
22970 \begin_layout Description
22971 depthbar 余白部の階層表示線の色
22974 \begin_layout Description
22978 \begin_layout Description
22979 error \SpecialChar LaTeX
22983 \begin_layout Description
22987 \begin_layout Description
22988 graphicsbg 画像差込枠の背景色
22991 \begin_layout Description
22992 greyedout 淡色表示差込枠のラベル色
22995 \begin_layout Description
22996 greyedoutbg 淡色表示差込枠の背景色
22999 \begin_layout Description
23000 greyedouttext 淡色表示差込枠の文字色
23003 \begin_layout Description
23004 indexlabel 索引差込枠のラベル色
23007 \begin_layout Description
23011 \begin_layout Description
23015 \begin_layout Description
23016 inlinecompletion 行内補完色
23019 \begin_layout Description
23023 \begin_layout Description
23027 \begin_layout Description
23028 language 外国語の単語を標識するための色
23031 \begin_layout Description
23032 latex \SpecialChar LaTeX
23036 \begin_layout Description
23037 listingsbg プログラムリスト差込枠の背景色
23040 \begin_layout Description
23041 marginlabel 傍註のラベル色
23044 \begin_layout Description
23048 \begin_layout Description
23052 \begin_layout Description
23053 mathcorners フォーカスを得ていない数式差込枠の縁色
23056 \begin_layout Description
23057 mathframe フォーカスを得ている数式差込枠の縁色
23060 \begin_layout Description
23064 \begin_layout Description
23065 mathmacrobg 数式マクロ差込枠の背景色
23068 \begin_layout Description
23069 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23072 \begin_layout Description
23073 mathmacroframe 数式マクロ差込枠の縁色
23076 \begin_layout Description
23077 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23080 \begin_layout Description
23081 mathmacrolabel 数式マクロ差込枠のラベル色
23084 \begin_layout Description
23085 mathmacronewarg 数式マクロ新パラメーターのひな型色
23088 \begin_layout Description
23089 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23092 \begin_layout Description
23096 \begin_layout Description
23097 nonunique_inlinecompletion 行内補完の一意でない部分の色
23100 \begin_layout Description
23104 \begin_layout Description
23108 \begin_layout Description
23112 \begin_layout Description
23113 paragraphmarker 段落末を標識するための段落標の色
23116 \begin_layout Description
23117 phantomtext 埋め草差込枠の文字色
23120 \begin_layout Description
23121 preview プレビューに用いられる色
23124 \begin_layout Description
23125 previewframe プレビュー縁色
23128 \begin_layout Description
23129 regexpframe 正規表現枠の色
23132 \begin_layout Description
23133 selection 文章選択部の背景色
23136 \begin_layout Description
23137 selectiontext 文章選択部の前景色
23140 \begin_layout Description
23141 shadedbg 影付きボックスの背景色
23144 \begin_layout Description
23148 \begin_layout Description
23152 \begin_layout Description
23153 tabularonoffline 罫線色
23156 \begin_layout Description
23157 urllabel URL差込枠のラベル色
23160 \begin_layout Description