1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties false
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
36 \maintain_unincluded_children false
39 InsetLayout Flex:MenuItem
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
58 #\renewcommand{\code}[1]{{\sffamily #1}}
67 Decoration Conglomerate
71 Decoration Conglomerate
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
89 \language_package default
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
103 \use_dash_ligatures false
105 \default_output_format default
107 \bibtex_command default
108 \index_command default
112 \pdf_title "LyX Configuration Manual"
113 \pdf_author "LyX Team"
114 \pdf_subject "LyX-Documentation Customization"
115 \pdf_keywords "LyX, documentation, customization"
117 \pdf_bookmarksnumbered true
118 \pdf_bookmarksopen true
119 \pdf_bookmarksopenlevel 1
120 \pdf_breaklinks false
124 \pdf_pdfusetitle false
125 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
128 \use_package amsmath 1
129 \use_package amssymb 1
130 \use_package cancel 1
132 \use_package mathdots 1
133 \use_package mathtools 1
134 \use_package mhchem 1
135 \use_package stackrel 1
136 \use_package stmaryrd 1
137 \use_package undertilde 1
139 \cite_engine_type default
143 \paperorientation portrait
148 \notefontcolor #0000ff
160 \paragraph_separation indent
161 \paragraph_indentation default
163 \math_indentation default
164 \math_numbering_side default
165 \quotes_style english
169 \paperpagestyle headings
170 \tracking_changes false
171 \output_changes false
182 \begin_inset Newline newline
194 \begin_layout Plain Layout
196 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
198 \begin_inset CommandInset href
200 target "lyx-docs@lists.lyx.org"
206 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
207 ast.net>をccにして送ってください.
213 \begin_inset Newline newline
217 \begin_inset Newline newline
223 \begin_layout Standard
224 \begin_inset CommandInset toc
225 LatexCommand tableofcontents
230 \begin_inset Note Note
233 \begin_layout Plain Layout
234 本文書を修正する際には,変更追跡機能を使用してください.これによって,
237 \begin_layout Plain Layout
239 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
247 \begin_layout Chapter
251 \begin_layout Standard
252 この取扱説明書は,\SpecialChar LyX
253 に備わっている高度設定機能を取り扱います.ここでは,
254 \begin_inset Flex Ruby
257 \begin_layout Plain Layout
259 \begin_inset Argument post:1
262 \begin_layout Plain Layout
273 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
274 サーバ経由での\SpecialChar LyX
275 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
277 レイアウトの導入などの題材について論じます.おそらくは変更
278 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
279 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
282 \begin_layout Standard
283 \begin_inset Branch OutDated
287 \begin_layout Standard
288 Information from previous versions of this document that now seems to be
289 outdated is contained in the OutDated branch of this document.
290 By default, this information will not appear in the \SpecialChar LaTeX
299 \begin_layout Chapter
304 \begin_layout Standard
305 本章の目的は,\SpecialChar LyX
306 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
307 \begin_inset Flex MenuItem
310 \begin_layout Plain Layout
311 ヘルプ\SpecialChar menuseparator
317 を使って,\SpecialChar LyX
318 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
319 がシステム全体の設定ファイルを置いておくところです.一
320 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
321 \begin_inset Flex Code
324 \begin_layout Plain Layout
331 \begin_inset Flex MenuItem
334 \begin_layout Plain Layout
343 \begin_layout Section
344 \begin_inset Flex Code
347 \begin_layout Plain Layout
356 \begin_layout Standard
357 \begin_inset Flex Code
360 \begin_layout Plain Layout
366 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
367 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
369 \begin_inset Flex MenuItem
372 \begin_layout Plain Layout
373 ツール\SpecialChar menuseparator
379 ダイアログから変更することができます.\SpecialChar LyX
380 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
382 \begin_inset Flex Code
385 \begin_layout Plain Layout
391 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
394 \begin_layout Subsection
398 \begin_layout Standard
399 \begin_inset Flex MenuItem
402 \begin_layout Plain Layout
408 にある各ファイルは,\SpecialChar LyX
409 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
410 うので,一般的には修正しないことが望まれます.
413 \begin_layout Labeling
414 \labelwidthstring 00.00.0000
415 \begin_inset Flex Code
418 \begin_layout Plain Layout
424 このファイルには,様々な既定コマンドが置かれています.
427 \begin_layout Labeling
428 \labelwidthstring 00.00.0000
429 \begin_inset Flex Code
432 \begin_layout Plain Layout
438 このファイルには,\SpecialChar LyX
439 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
440 プログラム自体には使用されていませんが,抽出された情報その他は,
441 \begin_inset Flex MenuItem
444 \begin_layout Plain Layout
445 ヘルプ\SpecialChar menuseparator
454 \begin_layout Labeling
455 \labelwidthstring 00.00.0000
456 \begin_inset Flex Code
459 \begin_layout Plain Layout
466 \begin_inset Flex Code
469 \begin_layout Plain Layout
475 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
479 \begin_layout Labeling
480 \labelwidthstring 00.00.0000
481 \begin_inset Flex Code
484 \begin_layout Plain Layout
491 \begin_inset Flex Code
494 \begin_layout Plain Layout
500 ディレクトリで検出されたレイアウトモジュールの一覧です.
503 \begin_layout Labeling
504 \labelwidthstring 00.00.0000
505 \begin_inset Flex Code
508 \begin_layout Plain Layout
514 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
518 \begin_layout Labeling
519 \labelwidthstring 00.00.0000
520 \begin_inset Flex Code
523 \begin_layout Plain Layout
530 \begin_inset Flex Code
533 \begin_layout Plain Layout
539 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
543 \begin_layout Subsection
547 \begin_layout Standard
549 \begin_inset Flex Code
552 \begin_layout Plain Layout
559 \begin_inset Flex Code
562 \begin_layout Plain Layout
568 に重複して存在します.特定のファイルが両方の場所にある場合には,
569 \begin_inset Flex Code
572 \begin_layout Plain Layout
581 \begin_layout Labeling
582 \labelwidthstring 00.00.0000
583 \begin_inset Flex Code
586 \begin_layout Plain Layout
592 このディレクトリには,\SpecialChar LyX
593 で使用されるキー割当を定義している,拡張子が
594 \begin_inset Flex Code
597 \begin_layout Plain Layout
604 \begin_inset Flex Code
607 \begin_layout Plain Layout
613 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
616 \begin_layout Labeling
617 \labelwidthstring 00.00.0000
618 \begin_inset Flex Code
621 \begin_layout Plain Layout
627 このディレクトリには,幅広い文献引用力(natbib, biblatexなど)を定義する,拡張子が
628 \begin_inset Flex Code
631 \begin_layout Plain Layout
637 のファイルが置かれています.詳細については,第
638 \begin_inset CommandInset ref
640 reference "subsec:引用エンジンファイル"
650 \begin_layout Labeling
651 \labelwidthstring 00.00.0000
652 \begin_inset Flex Code
655 \begin_layout Plain Layout
661 このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
664 \begin_layout Labeling
665 \labelwidthstring 00.00.0000
666 \begin_inset Flex Code
669 \begin_layout Plain Layout
675 このディレクトリには,\SpecialChar LyX
676 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
677 \begin_inset Flex Code
680 \begin_layout Plain Layout
686 ファイルは特に注目に値します.各国語版のヘルプ文書は,
687 \begin_inset Flex Code
690 \begin_layout Plain Layout
696 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
697 \begin_inset CommandInset ref
699 reference "cha:LyXの各国語対応"
706 \begin_layout Labeling
707 \labelwidthstring 00.00.0000
708 \begin_inset Flex Code
711 \begin_layout Plain Layout
717 このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
718 \begin_inset Flex MenuItem
721 \begin_layout Plain Layout
727 ボタンを押すと,このディレクトリが表示されます.
730 \begin_layout Labeling
731 \labelwidthstring 00.00.0000
732 \begin_inset Flex Code
735 \begin_layout Plain Layout
742 \begin_inset Flex MenuItem
745 \begin_layout Plain Layout
751 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
752 を起動したときに現れるバナーも納められています.
755 \begin_layout Labeling
756 \labelwidthstring 00.00.0000
757 \begin_inset Flex Code
760 \begin_layout Plain Layout
766 このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
767 \begin_inset CommandInset ref
769 reference "sec:国際キー配列"
776 \begin_layout Labeling
777 \labelwidthstring 00.00.0000
778 \begin_inset Flex Code
781 \begin_layout Plain Layout
788 \begin_inset CommandInset ref
790 reference "cha:新規文書を導入"
794 に述べられているテキストクラスおよびモジュールのファイルが納められています.
797 \begin_layout Labeling
798 \labelwidthstring 00.00.0000
799 \begin_inset Flex Code
802 \begin_layout Plain Layout
808 このディレクトリには,\SpecialChar LyX
810 \begin_inset Flex Code
813 \begin_layout Plain Layout
819 Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
822 \begin_layout Labeling
823 \labelwidthstring 00.00.0000
824 \begin_inset Flex Code
827 \begin_layout Plain Layout
834 \begin_inset Flex MenuItem
837 \begin_layout Plain Layout
843 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
844 自身が使用するスクリプトもいくつか収められています.
847 \begin_layout Labeling
848 \labelwidthstring 00.00.0000
849 \begin_inset Flex Code
852 \begin_layout Plain Layout
859 \begin_inset CommandInset ref
861 reference "sec:ひな型を作成する"
865 で述べられている標準の\SpecialChar LyX
869 \begin_layout Labeling
870 \labelwidthstring 00.00.0000
871 \begin_inset Flex Code
874 \begin_layout Plain Layout
880 このディレクトリには,\SpecialChar LyX
882 \begin_inset Flex Code
885 \begin_layout Plain Layout
891 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
894 \begin_layout Labeling
895 \labelwidthstring 00.00.0000
896 \begin_inset Flex Code
899 \begin_layout Plain Layout
905 このディレクトリには,\SpecialChar LyX
906 文書への外部素材の挿入のひな型を定義する,拡張子が
907 \begin_inset Flex Code
910 \begin_layout Plain Layout
917 \begin_inset CommandInset ref
919 reference "chap:外部素材を取り込む"
929 \begin_layout Subsection
933 \begin_layout Standard
934 これらのファイルは\SpecialChar LyX
935 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
938 \begin_layout Labeling
939 \labelwidthstring 00.00.0000
940 \begin_inset Flex Code
943 \begin_layout Plain Layout
949 このファイルは,\SpecialChar LyX
950 開発陣の名簿です.この内容は,メニュー項目
951 \begin_inset Flex MenuItem
954 \begin_layout Plain Layout
955 ヘルプ\SpecialChar menuseparator
964 \begin_layout Labeling
965 \labelwidthstring 00.00.0000
966 \begin_inset Flex Code
969 \begin_layout Plain Layout
975 これは,自動設定プロセスによって使用される\SpecialChar LaTeX
976 スクリプトです.直接実行しないでください.
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
984 \begin_layout Plain Layout
991 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
994 \begin_layout Subsection
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1003 \begin_layout Plain Layout
1009 このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
1012 \begin_layout Labeling
1013 \labelwidthstring 00.00.0000
1014 \begin_inset Flex Code
1017 \begin_layout Plain Layout
1023 このファイルには,現在\SpecialChar LyX
1024 がサポートしている言語の全一覧が載っています.
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1032 \begin_layout Plain Layout
1038 サポートされているフォントに関する情報が掲載されています.
1041 \begin_layout Labeling
1042 \labelwidthstring 00.00.0000
1043 \begin_inset Flex Code
1046 \begin_layout Plain Layout
1052 このファイルは,国際化された段落様式の翻訳が収録されています(
1053 \begin_inset CommandInset ref
1055 reference "subsec:段落様式の国際化"
1062 \begin_layout Labeling
1063 \labelwidthstring 00.00.0000
1064 \begin_inset Flex Code
1067 \begin_layout Plain Layout
1073 このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1075 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1078 \begin_layout Section
1082 \begin_layout Standard
1084 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1085 の設定を変更したいと思うかもしれません.
1086 \begin_inset Flex Code
1089 \begin_layout Plain Layout
1095 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1096 \begin_inset Flex MenuItem
1099 \begin_layout Plain Layout
1100 ヘルプ\SpecialChar menuseparator
1106 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1107 \begin_inset Flex Code
1110 \begin_layout Plain Layout
1117 \begin_inset Flex Code
1120 \begin_layout Plain Layout
1127 \begin_inset Flex Code
1130 \begin_layout Plain Layout
1136 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1139 \begin_layout Standard
1140 わかりやすくするために,いくつか例を挙げましょう.
1143 \begin_layout Itemize
1144 \begin_inset Flex MenuItem
1147 \begin_layout Plain Layout
1148 ツール\SpecialChar menuseparator
1155 \begin_inset Flex Code
1158 \begin_layout Plain Layout
1165 \begin_inset Flex Code
1168 \begin_layout Plain Layout
1177 \begin_layout Itemize
1178 \begin_inset Flex MenuItem
1181 \begin_layout Plain Layout
1182 ツール\SpecialChar menuseparator
1188 を使用して環境構成を行うと,\SpecialChar LyX
1190 \begin_inset Flex Code
1193 \begin_layout Plain Layout
1199 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1200 \begin_inset Flex Code
1203 \begin_layout Plain Layout
1210 \begin_inset Flex MenuItem
1213 \begin_layout Plain Layout
1214 文書\SpecialChar menuseparator
1220 ダイアログのクラス一覧に表示されるようになることを意味します.
1223 \begin_layout Itemize
1224 たとえば,\SpecialChar LyX
1225 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1227 \begin_inset Flex Code
1230 \begin_layout Plain Layout
1237 \begin_inset Flex MenuItem
1240 \begin_layout Plain Layout
1246 メニュー項目はこれらを開くようになります!
1249 \begin_layout Section
1254 \begin_layout Standard
1255 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1256 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1257 どのディレクトリを使用するか指定するのです.
1260 \begin_layout Standard
1263 \begin_inset Flex Code
1266 \begin_layout Plain Layout
1276 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1278 \begin_inset Flex Code
1281 \begin_layout Plain Layout
1287 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1288 は,初めて\SpecialChar LyX
1290 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1291 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1292 \begin_inset Flex Code
1295 \begin_layout Plain Layout
1301 を特定の値に設定しても,全く同じ効果があります.
1304 \begin_layout Standard
1305 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1306 \begin_inset Flex Code
1309 \begin_layout Plain Layout
1315 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1316 クを使用してください.\SpecialChar LyX
1317 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1318 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1319 \begin_inset Flex Code
1322 \begin_layout Plain Layout
1329 \begin_inset Flex MenuItem
1332 \begin_layout Plain Layout
1333 ツール\SpecialChar menuseparator
1339 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1342 \begin_layout Chapter
1346 \begin_layout Standard
1355 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1358 \begin_layout Section
1360 \begin_inset CommandInset label
1369 \begin_layout Standard
1370 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1371 \begin_inset Flex MenuItem
1374 \begin_layout Plain Layout
1375 ツール\SpecialChar menuseparator
1382 \begin_inset Flex MenuItem
1385 \begin_layout Plain Layout
1386 ファイル処理\SpecialChar menuseparator
1393 \begin_inset Flex MenuItem
1396 \begin_layout Plain Layout
1397 新規\SpecialChar ldots
1403 ボタンを押して,登録する新しい形式を定義してください.
1404 \begin_inset Flex MenuItem
1407 \begin_layout Plain Layout
1413 フィールドは,GUI中で形式を認識するために用いられる名称です.
1414 \begin_inset Flex MenuItem
1417 \begin_layout Plain Layout
1423 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1424 \begin_inset Flex MenuItem
1427 \begin_layout Plain Layout
1434 \begin_inset Flex Ruby
1437 \begin_layout Plain Layout
1439 \begin_inset Argument post:1
1442 \begin_layout Plain Layout
1454 \begin_inset Flex MenuItem
1457 \begin_layout Plain Layout
1464 \begin_inset Flex MenuItem
1467 \begin_layout Plain Layout
1468 表示\SpecialChar menuseparator
1477 \begin_layout Standard
1479 \begin_inset Flex MenuItem
1482 \begin_layout Plain Layout
1489 \begin_inset Flex MenuItem
1492 \begin_layout Plain Layout
1498 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1499 \begin_inset Flex MenuItem
1502 \begin_layout Plain Layout
1508 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1509 いることができます.この閲覧プログラムは,\SpecialChar LyX
1511 \begin_inset Flex MenuItem
1514 \begin_layout Plain Layout
1520 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1521 \begin_inset Flex MenuItem
1524 \begin_layout Plain Layout
1533 \begin_layout Standard
1535 \begin_inset Flex MenuItem
1538 \begin_layout Plain Layout
1544 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1546 \begin_inset CommandInset href
1549 target "http://www.iana.org/assignments/media-types/"
1554 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1556 \begin_inset CommandInset href
1558 name "freedesktop.org"
1559 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1564 で指定されているMIME型拡張表を使用しています.
1567 \begin_layout Standard
1568 \begin_inset Flex MenuItem
1571 \begin_layout Plain Layout
1577 オプションは,\SpecialChar LyX
1578 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1579 \begin_inset CommandInset ref
1586 \begin_inset Flex MenuItem
1589 \begin_layout Plain Layout
1590 ファイル\SpecialChar menuseparator
1597 \begin_inset Flex MenuItem
1600 \begin_layout Plain Layout
1606 footlabel Label color for footnotす.
1607 \begin_inset Flex Code
1610 \begin_layout Plain Layout
1616 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1617 \begin_inset Flex Code
1620 \begin_layout Plain Layout
1626 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1629 \begin_layout Standard
1630 \begin_inset Flex MenuItem
1633 \begin_layout Plain Layout
1639 オプションは,\SpecialChar LyX
1640 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1641 \begin_inset Flex MenuItem
1644 \begin_layout Plain Layout
1650 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1651 \begin_inset Flex MenuItem
1654 \begin_layout Plain Layout
1661 \begin_inset Flex MenuItem
1664 \begin_layout Plain Layout
1671 \begin_inset Flex MenuItem
1674 \begin_layout Plain Layout
1681 \begin_inset Flex MenuItem
1684 \begin_layout Plain Layout
1690 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1691 \begin_inset Flex MenuItem
1694 \begin_layout Plain Layout
1701 \begin_inset Flex MenuItem
1704 \begin_layout Plain Layout
1711 \begin_inset Flex MenuItem
1714 \begin_layout Plain Layout
1720 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1721 \begin_inset Flex MenuItem
1724 \begin_layout Plain Layout
1731 \begin_inset Flex MenuItem
1734 \begin_layout Plain Layout
1743 \begin_layout Section
1747 \begin_layout Standard
1748 形式の変換はすべて,\SpecialChar LyX
1749 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1753 \begin_layout Plain Layout
1754 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1760 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1763 \begin_layout Standard
1764 複写子の定義においては,以下の8つの変数を用いることができます.
1767 \begin_layout Labeling
1768 \labelwidthstring 00.00.0000
1769 \begin_inset Flex Code
1772 \begin_layout Plain Layout
1780 \begin_inset Flex MenuItem
1783 \begin_layout Plain Layout
1792 \begin_layout Labeling
1793 \labelwidthstring 00.00.0000
1794 \begin_inset Flex Code
1797 \begin_layout Plain Layout
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Flex Code
1811 \begin_layout Plain Layout
1820 \begin_layout Labeling
1821 \labelwidthstring 00.00.0000
1822 \begin_inset Flex Code
1825 \begin_layout Plain Layout
1832 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1835 \begin_layout Labeling
1836 \labelwidthstring 00.00.0000
1837 \begin_inset Flex Code
1840 \begin_layout Plain Layout
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Flex Code
1855 \begin_layout Plain Layout
1861 処理されている元の\SpecialChar LyX
1865 \begin_layout Labeling
1866 \labelwidthstring 00.00.0000
1867 \begin_inset Flex Code
1870 \begin_layout Plain Layout
1877 ファイルのファイル名(ディレクトリパスなし)
1880 \begin_layout Labeling
1881 \labelwidthstring 00.00.0000
1882 \begin_inset Flex Code
1885 \begin_layout Plain Layout
1895 \begin_layout Standard
1896 最後の変数は,\SpecialChar LaTeX
1903 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1906 \begin_layout Standard
1907 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1908 \begin_inset Flex Code
1911 \begin_layout Plain Layout
1917 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1920 \begin_layout Standard
1921 \begin_inset listings
1925 \begin_layout Plain Layout
1930 \begin_layout Plain Layout
1935 \begin_layout Plain Layout
1937 TOFILE=`basename $2`
1940 \begin_layout Plain Layout
1942 DescriptionE /home/you/pdf/$TOFILE
1948 \begin_inset Flex Code
1951 \begin_layout Plain Layout
1952 /home/you/.lyx/scripts/pdfcopier.sh
1957 のような,自身のローカル\SpecialChar LyX
1958 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1959 \begin_inset Flex MenuItem
1962 \begin_layout Plain Layout
1963 ツール\SpecialChar menuseparator
1970 \begin_inset Flex MenuItem
1973 \begin_layout Plain Layout
1974 ファイル処理\SpecialChar menuseparator
1981 \begin_inset Flex MenuItem
1984 \begin_layout Plain Layout
1990 形式—あるいは他のPDF形式のうちどれか—を選択し,
1991 \begin_inset Flex MenuItem
1994 \begin_layout Plain Layout
2001 \begin_inset Flex Code
2004 \begin_layout Plain Layout
2005 pdfcopier.sh $$i $$o
2013 \begin_layout Standard
2014 複写子は,\SpecialChar LyX
2015 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
2017 \begin_inset Flex MenuItem
2020 \begin_layout Plain Layout
2027 \begin_inset Flex MenuItem
2030 \begin_layout Plain Layout
2032 \begin_inset space ~
2040 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2041 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2042 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2046 \begin_layout Plain Layout
2047 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2048 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2049 \begin_inset Flex MenuItem
2052 \begin_layout Plain Layout
2059 \begin_inset Flex MenuItem
2062 \begin_layout Plain Layout
2063 /path/to/filename.lyx
2069 \begin_inset Flex MenuItem
2072 \begin_layout Plain Layout
2073 /path/to/filename.html.LyXconv
2087 \begin_layout Section
2089 \begin_inset CommandInset label
2098 \begin_layout Standard
2099 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2100 \begin_inset Flex MenuItem
2103 \begin_layout Plain Layout
2104 ツール\SpecialChar menuseparator
2105 設定\SpecialChar menuseparator
2106 ファイル処理\SpecialChar menuseparator
2115 \begin_layout Standard
2116 新規に変換子を定義するには,ドロップダウンリストから
2117 \begin_inset Flex MenuItem
2120 \begin_layout Plain Layout
2127 \begin_inset Flex MenuItem
2130 \begin_layout Plain Layout
2136 を選択し,変換に必要なコマンドを入力してから
2137 \begin_inset Flex MenuItem
2140 \begin_layout Plain Layout
2146 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2149 \begin_layout Labeling
2150 \labelwidthstring 00.00.0000
2151 \begin_inset Flex Code
2154 \begin_layout Plain Layout
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2169 \begin_layout Plain Layout
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2183 \begin_layout Plain Layout
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2197 \begin_layout Plain Layout
2203 入力ファイルのベースファイル名(拡張子をとった部分)
2206 \begin_layout Labeling
2207 \labelwidthstring 00.00.0000
2208 \begin_inset Flex Code
2211 \begin_layout Plain Layout
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Flex Code
2225 \begin_layout Plain Layout
2231 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2234 \begin_layout Labeling
2235 \labelwidthstring 00.00.0000
2236 \begin_inset Flex Code
2239 \begin_layout Plain Layout
2248 \begin_layout Standard
2249 \begin_inset Flex MenuItem
2252 \begin_layout Plain Layout
2258 フィールドには,以下のフラグをコンマで区切って入力することができます.
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2266 \begin_layout Plain Layout
2272 この変換子が\SpecialChar LaTeX
2273 の一種を実行することを示します.これによって,\SpecialChar LyX
2275 エラーログに記録を残せるようになります.
2278 \begin_layout Labeling
2279 \labelwidthstring 00.00.0000
2280 \begin_inset Flex Code
2283 \begin_layout Plain Layout
2289 変換に\SpecialChar LaTeX
2291 \begin_inset Flex MenuItem
2294 \begin_layout Plain Layout
2303 \begin_layout Labeling
2304 \labelwidthstring 00.00.0000
2305 \begin_inset Flex Code
2308 \begin_layout Plain Layout
2315 \begin_inset Quotes erd
2319 \begin_inset Quotes erd
2322 なファイル,つまり\SpecialChar LyX
2323 が書き出す\SpecialChar LaTeX
2325 \begin_inset Flex Code
2328 \begin_layout Plain Layout
2334 のない\SpecialChar LaTeX
2338 \begin_layout Labeling
2339 \labelwidthstring 00.00.0000
2340 \begin_inset Flex Code
2343 \begin_layout Plain Layout
2352 \begin_layout Standard
2354 \begin_inset Flex MenuItem
2357 \begin_layout Plain Layout
2359 \begin_inset space ~
2363 \begin_inset space ~
2371 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2374 \begin_layout Labeling
2375 \labelwidthstring 00.00.0000
2376 \begin_inset Flex Code
2379 \begin_layout Plain Layout
2386 \begin_inset Flex Code
2389 \begin_layout Plain Layout
2395 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2396 \begin_inset Flex Code
2399 \begin_layout Plain Layout
2400 script < infile.out > infile.log
2405 の形で実行されるようになります.引数には
2406 \begin_inset Flex Code
2409 \begin_layout Plain Layout
2418 \begin_layout Labeling
2419 \labelwidthstring 00.00.0000
2420 \begin_inset Flex Code
2423 \begin_layout Plain Layout
2429 これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2430 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2432 \begin_inset Flex Code
2435 \begin_layout Plain Layout
2441 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2442 \begin_inset Newline newline
2445 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2453 \begin_layout Plain Layout
2460 \begin_inset Flex Code
2463 \begin_layout Plain Layout
2469 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2472 \begin_layout Standard
2473 最後の3つは,\SpecialChar LyX
2474 とともに導入される変換子には,現在いずれも使用されておりません.
2477 \begin_layout Standard
2478 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2479 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2481 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2482 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2483 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2484 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2485 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2486 設定は,\SpecialChar LaTeX
2487 からPDFへ変換するのに,以下の3つの方法を
2491 \begin_layout Enumerate
2493 \begin_inset Flex MenuItem
2496 \begin_layout Plain Layout
2505 \begin_layout Enumerate
2506 (DVIと)PostScriptを経由して
2507 \begin_inset Flex MenuItem
2510 \begin_layout Plain Layout
2519 \begin_layout Enumerate
2521 \begin_inset Flex MenuItem
2524 \begin_layout Plain Layout
2533 \begin_layout Enumerate
2535 \begin_inset Flex MenuItem
2538 \begin_layout Plain Layout
2548 \begin_layout Enumerate
2550 \begin_inset Flex MenuItem
2553 \begin_layout Plain Layout
2563 \begin_layout Standard
2565 \begin_inset CommandInset ref
2567 reference "sec:ファイル形式"
2571 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2572 \begin_inset Flex MenuItem
2575 \begin_layout Plain Layout
2582 \begin_inset Flex MenuItem
2585 \begin_layout Plain Layout
2592 \begin_inset Flex MenuItem
2595 \begin_layout Plain Layout
2602 \begin_inset Flex MenuItem
2605 \begin_layout Plain Layout
2612 \begin_inset Flex MenuItem
2615 \begin_layout Plain Layout
2622 \begin_inset Flex MenuItem
2625 \begin_layout Plain Layout
2632 \begin_inset Flex MenuItem
2635 \begin_layout Plain Layout
2642 \begin_inset Flex MenuItem
2645 \begin_layout Plain Layout
2653 \begin_inset Flex MenuItem
2656 \begin_layout Plain Layout
2663 \begin_inset Flex MenuItem
2666 \begin_layout Plain Layout
2673 用\SpecialChar softhyphen
2674 ) と命名された形式が定義されていて,すべて共通の拡張子
2675 \begin_inset Flex MenuItem
2678 \begin_layout Plain Layout
2684 を持ち,上記で言及した各変換方法に対応しています.
2687 \begin_layout Chapter
2690 \begin_inset CommandInset label
2692 name "cha:LyXの各国語対応"
2699 \begin_layout Standard
2701 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2702 は30言語の翻訳を提供しています.選択した言語は,使用する
2706 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2707 \begin_inset Flex Code
2710 \begin_layout Plain Layout
2719 \begin_layout Standard
2720 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2721 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2722 \begin_inset Flex Ruby
2725 \begin_layout Plain Layout
2727 \begin_inset Argument post:1
2730 \begin_layout Plain Layout
2741 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2742 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2746 \begin_layout Plain Layout
2747 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2748 コミュニティに報いるたいへん素晴らしい方法です!
2754 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2757 \begin_layout Section
2762 \begin_layout Subsection
2763 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2764 \begin_inset Argument 1
2767 \begin_layout Plain Layout
2776 \begin_layout Standard
2779 \begin_inset Flex Code
2782 \begin_layout Plain Layout
2788 ライブラリを使用します.\SpecialChar LyX
2789 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2790 \begin_inset Flex Code
2793 \begin_layout Plain Layout
2799 ファイルが必要です.このファイルが利用可能であれば,そこから
2800 \begin_inset Flex Code
2803 \begin_layout Plain Layout
2810 \begin_inset Flex Code
2813 \begin_layout Plain Layout
2819 ファイルをインストールしなくてはなりません.この全過程は,GNU
2820 \begin_inset Flex Code
2823 \begin_layout Plain Layout
2829 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2831 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2832 開発者メーリングリストにメールを送ってください.
2835 \begin_layout Standard
2836 要約すれば,以下のように行います(xxは言語コードを表します).
2839 \begin_layout Itemize
2841 ソースコードをチェックアウトしてください(
2842 \begin_inset CommandInset href
2845 target "https://www.lyx.org/HowToUseGIT"
2853 \begin_layout Itemize
2854 \begin_inset Flex Code
2857 \begin_layout Plain Layout
2864 \begin_inset Flex Code
2867 \begin_layout Plain Layout
2874 \begin_inset Flex Code
2877 \begin_layout Plain Layout
2884 \begin_inset Flex Code
2887 \begin_layout Plain Layout
2893 がどこにもない場合には,コンソールからそのディレクトリで
2894 \begin_inset Flex Code
2897 \begin_layout Plain Layout
2903 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2906 \begin_layout Itemize
2907 \begin_inset Flex Code
2910 \begin_layout Plain Layout
2920 \begin_layout Plain Layout
2921 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2929 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2934 \begin_inset Flex Code
2937 \begin_layout Plain Layout
2943 ファイルを編集するための「モード」があります,第
2944 \begin_inset Flex URL
2947 \begin_layout Plain Layout
2949 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2961 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2962 \begin_inset Flex Ruby
2965 \begin_layout Plain Layout
2967 \begin_inset Argument post:1
2970 \begin_layout Plain Layout
2981 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2982 \begin_inset Flex Code
2985 \begin_layout Plain Layout
2991 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2994 \begin_layout Standard
2995 もし,あなたがこれを自身のためだけに行っているのであれば,
2998 \begin_layout Itemize
2999 \begin_inset Flex Code
3002 \begin_layout Plain Layout
3009 \begin_inset Flex Code
3012 \begin_layout Plain Layout
3013 msgfmt -o xx.mo < xx.po
3021 \begin_layout Itemize
3023 \begin_inset Flex Code
3026 \begin_layout Plain Layout
3032 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3033 \begin_inset Flex Code
3036 \begin_layout Plain Layout
3043 \begin_inset Flex Code
3046 \begin_layout Plain Layout
3047 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3055 \begin_layout Standard
3057 \begin_inset Flex Code
3060 \begin_layout Plain Layout
3066 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3067 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3068 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3072 \begin_layout Subsubsection
3076 \begin_layout Standard
3077 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3078 \begin_inset Flex Code
3081 \begin_layout Plain Layout
3087 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3088 \begin_inset Flex Code
3091 \begin_layout Plain Layout
3098 \begin_inset Flex Code
3101 \begin_layout Plain Layout
3108 \begin_inset Flex Code
3111 \begin_layout Plain Layout
3112 To[[as in 'From format x to format y']]
3118 \begin_inset Flex Code
3121 \begin_layout Plain Layout
3122 To[[as in 'From page x to page y']]
3127 としなくてはなりません.これによって,これら2つの
3128 \begin_inset Flex Code
3131 \begin_layout Plain Layout
3138 \begin_inset Flex Code
3141 \begin_layout Plain Layout
3147 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3150 \begin_layout Standard
3151 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3153 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3156 \begin_layout Subsection
3160 \begin_layout Standard
3162 \begin_inset Flex MenuItem
3165 \begin_layout Plain Layout
3171 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3175 \begin_layout Plain Layout
3176 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3181 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3182 はこれを自動的に使用します.\SpecialChar LyX
3184 \begin_inset Flex Code
3187 \begin_layout Plain Layout
3188 LyXDir/doc/xx/DocName.lyx
3194 \begin_inset Flex Code
3197 \begin_layout Plain Layout
3203 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3204 \begin_inset Flex Code
3207 \begin_layout Plain Layout
3213 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3217 \begin_layout Itemize
3219 \begin_inset CommandInset href
3221 name "https://www.lyx.org/Translation"
3222 target "https://www.lyx.org/Translation"
3227 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3228 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3231 \begin_layout Standard
3232 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3235 \begin_layout Itemize
3236 文書化チームに所属してください!そのための情報が
3237 \begin_inset Flex Code
3240 \begin_layout Plain Layout
3247 \begin_inset Flex MenuItem
3250 \begin_layout Plain Layout
3251 ヘルプ\SpecialChar menuseparator
3258 \begin_inset Flex Code
3261 \begin_layout Plain Layout
3270 \begin_layout Itemize
3271 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3272 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3274 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3279 \begin_layout Itemize
3280 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3281 \begin_inset Flex Code
3284 \begin_layout Plain Layout
3290 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3291 \begin_inset Newline newline
3295 \begin_inset Note Greyedout
3298 \begin_layout Plain Layout
3303 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3304 ことに注意してください.最も良い方法は,LyXツリーをgit (
3305 \begin_inset Flex URL
3308 \begin_layout Plain Layout
3310 https://www.lyx.org/HowToUseGIT
3315 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3323 \begin_layout Itemize
3325 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3326 \begin_inset CommandInset href
3328 name "https://www.lyx.org/trac/timeline"
3329 target "https://www.lyx.org/trac/timeline"
3334 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3337 \begin_layout Standard
3338 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3341 \begin_layout Standard
3342 \begin_inset Branch OutDated
3346 \begin_layout Section
3347 International Keyboard Support
3350 \begin_layout Standard
3353 [Editor's Note: The following section is by
3361 It needs to be fixed to conform to the new Documentation Style sheet and
3362 to make use of the new v1.0 features.
3363 The whole thing also needs to be merged with the section following it.-jw
3364 It may also be badly out of date.-rh (2008)]
3367 \begin_layout Subsection
3368 Defining Own Keymaps: Keymap File Format
3371 \begin_layout Standard
3372 Let's look at a keyboard definition file a little closer.
3373 It is a plain text file defining
3376 \begin_layout Itemize
3377 key-to-key or key-to-string translations
3380 \begin_layout Itemize
3384 \begin_layout Itemize
3385 dead keys exceptions
3388 \begin_layout Standard
3389 To define key-to-key or key-to-string translation, use this command:
3392 \begin_layout Quotation
3393 \begin_inset Flex Code
3396 \begin_layout Plain Layout
3405 \begin_inset Flex Code
3408 \begin_layout Plain Layout
3417 \begin_layout Standard
3419 \begin_inset Flex Code
3422 \begin_layout Plain Layout
3428 is the key to be translated and
3429 \begin_inset Flex Code
3432 \begin_layout Plain Layout
3438 is the string to be inserted into the document.
3439 To define dead keys, use:
3442 \begin_layout Quotation
3443 \begin_inset Flex Code
3446 \begin_layout Plain Layout
3455 \begin_inset Flex Code
3458 \begin_layout Plain Layout
3467 \begin_layout Standard
3469 \begin_inset Flex Code
3472 \begin_layout Plain Layout
3478 is a keyboard key and
3479 \begin_inset Flex Code
3482 \begin_layout Plain Layout
3489 The following dead keys are supported (shortcut name is in parentheses):
3492 \begin_layout Quotation
3496 \begin_inset space \hfill{}
3502 \begin_layout Quotation
3504 \begin_inset space \hfill{}
3512 \begin_layout Quotation
3514 \begin_inset space \hfill{}
3522 \begin_layout Quotation
3524 \begin_inset space \hfill{}
3532 \begin_layout Quotation
3534 \begin_inset space \hfill{}
3542 \begin_layout Quotation
3544 \begin_inset space \hfill{}
3551 \begin_layout Plain Layout
3563 \begin_layout Quotation
3565 \begin_inset space \hfill{}
3573 \begin_layout Quotation
3575 \begin_inset space \hfill{}
3582 \begin_layout Plain Layout
3594 \begin_layout Quotation
3596 \begin_inset space \hfill{}
3604 \begin_layout Quotation
3606 \begin_inset space \hfill{}
3614 \begin_layout Quotation
3616 \begin_inset space \hfill{}
3623 \begin_layout Plain Layout
3635 \begin_layout Quotation
3637 \begin_inset space \hfill{}
3648 \begin_layout Plain Layout
3660 \begin_layout Quotation
3662 \begin_inset space \hfill{}
3670 \begin_layout Quotation
3671 hungarian umlaut (hug)
3672 \begin_inset space \hfill{}
3680 \begin_layout Quotation
3682 \begin_inset space \hfill{}
3690 \begin_layout Quotation
3692 \begin_inset space \hfill{}
3703 \begin_layout Plain Layout
3715 \begin_layout Standard
3716 Since in many international keyboards there are exceptions to what some
3717 dead keys should do, you can define them using
3720 \begin_layout Quotation
3721 \begin_inset Flex Code
3724 \begin_layout Plain Layout
3732 deadkey key outstring
3735 \begin_layout Standard
3736 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3740 \begin_layout Quotation
3741 \begin_inset Flex Code
3744 \begin_layout Plain Layout
3757 \begin_layout Standard
3758 to make it work correctly.
3759 Also, you have to define as exceptions dead keys over i and j, to remove
3760 the dot from them before inserting an accent mark.
3761 I will change this when the time comes, but so far I haven't had time.
3764 \begin_layout Standard
3765 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3768 \begin_inset Flex Code
3771 \begin_layout Plain Layout
3777 have different meaning.
3779 \begin_inset Flex Code
3782 \begin_layout Plain Layout
3788 marks comments, quotes start and end \SpecialChar LaTeX
3790 To enter quote, you'll need to use
3791 \begin_inset Flex Code
3794 \begin_layout Plain Layout
3803 \begin_inset Flex Code
3806 \begin_layout Plain Layout
3813 \begin_inset Flex Code
3816 \begin_layout Plain Layout
3827 \begin_layout Standard
3828 If you make a keyboard description file that works for your language, please
3829 mail it to me, so I can include it in the next keymap distribution.
3832 \begin_layout Standard
3833 More keywords will be supported in keymap configuration file in future,
3837 \begin_layout Itemize
3838 \begin_inset Flex Code
3841 \begin_layout Plain Layout
3852 \begin_inset space \hfill{}
3856 \begin_inset Flex Code
3859 \begin_layout Plain Layout
3868 \begin_layout Itemize
3869 \begin_inset Flex Code
3872 \begin_layout Plain Layout
3883 \begin_inset space \hfill{}
3887 \begin_inset Flex Code
3890 \begin_layout Plain Layout
3896 an external keymap translation program
3899 \begin_layout Standard
3900 Also, it should look into
3901 \begin_inset Flex Code
3904 \begin_layout Plain Layout
3910 file for defaults, too (for example, a
3911 \begin_inset Flex Code
3914 \begin_layout Plain Layout
3922 option to include default keyboard).
3930 \begin_layout Section
3932 \begin_inset CommandInset label
3941 \begin_layout Standard
3942 \begin_inset Note Note
3945 \begin_layout Plain Layout
3946 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3949 \begin_layout Plain Layout
3958 \begin_layout Standard
3960 \begin_inset Flex Code
3963 \begin_layout Plain Layout
3970 \begin_inset Flex Code
3973 \begin_layout Plain Layout
3979 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3982 \begin_layout Subsection
3986 \begin_layout Standard
3987 \begin_inset Flex Code
3990 \begin_layout Plain Layout
3996 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3997 \begin_inset Flex Code
4000 \begin_layout Plain Layout
4006 ファイルは,以下の各項で説明するように,
4007 \begin_inset Flex Code
4010 \begin_layout Plain Layout
4017 \begin_inset Flex Code
4020 \begin_layout Plain Layout
4027 \begin_inset Flex Code
4030 \begin_layout Plain Layout
4037 \begin_inset Flex Code
4040 \begin_layout Plain Layout
4049 \begin_layout Labeling
4050 \labelwidthstring 00.00.0000
4051 \begin_inset Flex Code
4054 \begin_layout Plain Layout
4063 \begin_layout LyX-Code
4078 \begin_layout Standard
4091 中では,二重引用符(")とバックスラッシュ(
4095 )を付けてエスケープしなくてはならないことに注意してください.
4098 \begin_layout Standard
4099 \begin_inset Flex MenuItem
4102 \begin_layout Plain Layout
4109 \begin_inset Flex MenuItem
4112 \begin_layout Plain Layout
4119 \begin_inset Flex MenuItem
4122 \begin_layout Plain Layout
4131 \begin_layout LyX-Code
4137 \begin_layout Standard
4141 \begin_layout Labeling
4142 \labelwidthstring 00.00.0000
4143 \begin_inset Flex Code
4146 \begin_layout Plain Layout
4155 \begin_layout LyX-Code
4164 \begin_layout Standard
4173 のアクセントとするものです.これはデッドキー
4177 \begin_layout Plain Layout
4182 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4186 のようなウムラウトのついた文字は,このようにして出すことができます.
4194 \begin_layout Standard
4207 の後に許可文字ではないその文字が出力として表示されます.
4208 \begin_inset Flex MenuItem
4211 \begin_layout Plain Layout
4222 \begin_inset Flex MenuItem
4225 \begin_layout Plain Layout
4231 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4234 \begin_layout Standard
4235 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4238 \begin_layout LyX-Code
4241 kmod ' acute aeiouAEIOU
4244 \begin_layout Labeling
4245 \labelwidthstring 00.00.0000
4246 \begin_inset Flex Code
4249 \begin_layout Plain Layout
4258 \begin_layout LyX-Code
4267 \begin_layout Standard
4281 \begin_inset Flex Code
4284 \begin_layout Plain Layout
4292 宣言で打鍵キーを既に割り当てられてなくてはならず,
4304 の集合に属していてはなりません.こうして
4317 \begin_inset Flex Code
4320 \begin_layout Plain Layout
4347 \begin_inset Flex Code
4350 \begin_layout Plain Layout
4361 \begin_layout Standard
4362 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4365 \begin_layout LyX-Code
4379 \begin_layout Labeling
4380 \labelwidthstring 00.00.0000
4381 \begin_inset Flex Code
4384 \begin_layout Plain Layout
4393 \begin_layout LyX-Code
4402 \begin_layout Standard
4403 これはなかなか難解になってきます.これは
4428 \begin_inset Flex Code
4431 \begin_layout Plain Layout
4439 コマンドで設定されていなくてはなりません.
4442 \begin_layout Standard
4443 \begin_inset Flex Code
4446 \begin_layout Plain Layout
4455 \begin_layout LyX-Code
4458 kmod ; acute aeioyvhAEIOYVH
4462 kcomb acute umlaut iyIY
4465 \begin_layout Standard
4467 \begin_inset Flex MenuItem
4470 \begin_layout Plain Layout
4477 \begin_inset Flex Code
4480 \begin_layout Plain Layout
4490 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4491 \begin_inset Flex MenuItem
4494 \begin_layout Plain Layout
4501 \begin_inset Flex Code
4504 \begin_layout Plain Layout
4515 \begin_layout Subsection
4519 \begin_layout Standard
4520 \begin_inset Flex Code
4523 \begin_layout Plain Layout
4530 \begin_inset Flex Code
4533 \begin_layout Plain Layout
4539 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4541 \begin_inset Flex Code
4544 \begin_layout Plain Layout
4551 \begin_inset Flex Code
4554 \begin_layout Plain Layout
4563 \begin_layout Standard
4565 \begin_inset Flex Code
4568 \begin_layout Plain Layout
4577 \begin_layout LyX-Code
4590 \begin_layout Standard
4592 \begin_inset Flex MenuItem
4595 \begin_layout Plain Layout
4603 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4606 \begin_layout LyX-Code
4614 \begin_layout Standard
4620 \begin_inset Flex Code
4623 \begin_layout Plain Layout
4632 \begin_inset Flex Code
4635 \begin_layout Plain Layout
4641 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4642 \begin_inset Flex Code
4645 \begin_layout Plain Layout
4654 \begin_layout LyX-Code
4666 \begin_inset Newline newline
4682 \begin_layout Standard
4683 という例があります.\SpecialChar LyX
4684 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4685 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4688 \begin_layout Subsection
4692 \begin_layout Standard
4693 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4694 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4697 \begin_layout Standard
4698 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4699 \begin_inset Flex Code
4702 \begin_layout Plain Layout
4709 \begin_inset Flex MenuItem
4712 \begin_layout Plain Layout
4719 \begin_inset Flex MenuItem
4722 \begin_layout Plain Layout
4728 キー)を,\SpecialChar LyX
4730 \begin_inset Flex Code
4733 \begin_layout Plain Layout
4740 \begin_inset Flex MenuItem
4743 \begin_layout Plain Layout
4749 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4750 \begin_inset Flex MenuItem
4753 \begin_layout Plain Layout
4759 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4760 \begin_inset Flex MenuItem
4763 \begin_layout Plain Layout
4770 \begin_inset Flex MenuItem
4773 \begin_layout Plain Layout
4779 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4780 はビープを鳴らして文句を付けます.デッドキーの後に
4781 \begin_inset Flex MenuItem
4784 \begin_layout Plain Layout
4790 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4792 \begin_inset Flex MenuItem
4795 \begin_layout Plain Layout
4801 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4804 \begin_layout Standard
4805 デッドキーを割り当てるのによく用いられる方法は,
4806 \begin_inset Flex MenuItem
4809 \begin_layout Plain Layout
4816 \begin_inset Flex MenuItem
4819 \begin_layout Plain Layout
4826 \begin_inset Flex MenuItem
4829 \begin_layout Plain Layout
4836 \begin_inset Flex MenuItem
4839 \begin_layout Plain Layout
4846 \begin_inset Flex MenuItem
4849 \begin_layout Plain Layout
4856 \begin_inset Flex MenuItem
4859 \begin_layout Plain Layout
4865 」のようなアクセントと一緒に用いる方法です.また,
4866 \begin_inset Flex Code
4869 \begin_layout Plain Layout
4876 \begin_inset Flex Code
4879 \begin_layout Plain Layout
4886 \begin_inset Flex Code
4889 \begin_layout Plain Layout
4896 \begin_inset Flex Code
4899 \begin_layout Plain Layout
4906 \begin_inset Flex MenuItem
4909 \begin_layout Plain Layout
4915 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4916 \begin_inset Flex Code
4919 \begin_layout Plain Layout
4925 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4930 \begin_layout Plain Layout
4936 \begin_inset Flex Code
4939 \begin_layout Plain Layout
4946 \begin_inset Flex Code
4949 \begin_layout Plain Layout
4956 \begin_inset Flex MenuItem
4959 \begin_layout Plain Layout
4961 \begin_inset space ~
4970 \begin_inset Flex Code
4973 \begin_layout Plain Layout
4980 \begin_inset Flex Code
4983 \begin_layout Plain Layout
4990 \begin_inset Flex MenuItem
4993 \begin_layout Plain Layout
4995 \begin_inset space ~
5004 \begin_inset Flex MenuItem
5007 \begin_layout Plain Layout
5009 \begin_inset space ~
5017 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5023 \begin_inset Flex Code
5026 \begin_layout Plain Layout
5033 \begin_inset Flex MenuItem
5036 \begin_layout Plain Layout
5042 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5049 \begin_inset Flex Code
5052 \begin_layout Plain Layout
5058 の項をご覧ください.ここには完備した一覧があります.
5061 \begin_layout Subsection
5065 \begin_layout Standard
5066 \begin_inset Flex MenuItem
5069 \begin_layout Plain Layout
5070 ツール\SpecialChar menuseparator
5076 ダイアログを使えば,\SpecialChar LyX
5077 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5080 \begin_layout Chapter
5081 文書クラス・レイアウト・ひな型の新規導入
5082 \begin_inset CommandInset label
5089 \begin_inset Argument 1
5092 \begin_layout Plain Layout
5101 \begin_layout Standard
5102 この章では,新しく\SpecialChar LyX
5103 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5104 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5108 \begin_layout Standard
5111 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5112 は,La\SpecialChar TeX
5114 云うことです.実際のところ,\SpecialChar LyX
5115 の観点からは,\SpecialChar LaTeX
5117 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5118 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5119 は,とくに重要な形式ですが,\SpecialChar LyX
5121 について持っている情報のほとんどは,実はプログラム本体には含まれて
5126 \begin_layout Plain Layout
5127 過度に複雑なため,\SpecialChar LyX
5128 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5134 \begin_inset Flex Code
5137 \begin_layout Plain Layout
5143 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5144 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5149 \begin_layout Standard
5150 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5151 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5152 構成体・DocBook構成体・XHTML構成体との
5153 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5155 \begin_inset Flex Code
5158 \begin_layout Plain Layout
5164 について知っていることのほとんど総ては,
5165 \begin_inset Flex Code
5168 \begin_layout Plain Layout
5174 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5176 \begin_inset Flex Code
5179 \begin_layout Plain Layout
5186 \begin_inset Flex Code
5189 \begin_layout Plain Layout
5195 や,文書クラス用の他のレイアウトファイルに取り込まれている
5196 \begin_inset Flex Code
5199 \begin_layout Plain Layout
5205 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5206 \begin_inset Flex Code
5209 \begin_layout Plain Layout
5215 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5216 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5218 \begin_inset Flex Code
5221 \begin_layout Plain Layout
5228 \begin_inset Flex Code
5231 \begin_layout Plain Layout
5237 ファイルを取り込んでいるだけのものです.
5240 \begin_layout Standard
5241 しかしながら,\SpecialChar LyX
5243 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5245 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5246 ます.ある段落様式を\SpecialChar LaTeX
5247 に翻訳する仕方を\SpecialChar LyX
5248 に指示することは,その表示の仕方を\SpecialChar LyX
5249 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5251 式をどのように\SpecialChar LaTeX
5252 に翻訳するかを\SpecialChar LyX
5253 に指示するものではありません(ましてや\SpecialChar LaTeX
5254 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5257 \begin_inset space ~
5261 にどのように翻訳するかを\SpecialChar LyX
5263 \begin_inset space ~
5266 それをどのように表示するかを\SpecialChar LyX
5267 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5270 \begin_layout Standard
5271 もちろん,\SpecialChar LyX
5272 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5273 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5274 力するにあたって,当該段落を\SpecialChar LyX
5275 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5276 が内部的に行うことと,外部的に行う物事の間の区
5277 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5278 \begin_inset CommandInset ref
5280 reference "sec:XHTML出力のタグ"
5287 \begin_layout Section
5288 新しい\SpecialChar LaTeX
5292 \begin_layout Standard
5293 頒布版によっては,\SpecialChar LyX
5294 で使いたい\SpecialChar LaTeX
5295 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5296 パッケージである,Foil\SpecialChar TeX
5297 がないかもしれません.\SpecialChar TeX
5298 Live(2008年以降)やMiK\SpecialChar TeX
5299 のような最近の\SpecialChar LaTeX
5300 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5301 ースが用意されています.たとえば,MiK\SpecialChar TeX
5303 \begin_inset space ~
5306 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5310 \begin_layout Standard
5311 お使いの\SpecialChar LaTeX
5312 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5316 \begin_layout Enumerate
5317 \begin_inset CommandInset href
5320 target "http://www.ctan.org/"
5325 などから欲しいパッケージを入手してください.
5328 \begin_layout Enumerate
5330 \begin_inset Flex Code
5333 \begin_layout Plain Layout
5339 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5340 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5341 \begin_inset Flex Code
5344 \begin_layout Plain Layout
5350 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5351 パッケージは圧縮されていないので,このステップは飛ばすこ
5355 \begin_layout Enumerate
5356 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5360 \begin_layout Enumerate
5361 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5364 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5365 \begin_inset Flex Code
5368 \begin_layout Plain Layout
5378 \begin_layout Plain Layout
5384 \begin_inset Flex Code
5387 \begin_layout Plain Layout
5393 を実行してその場所を見つけることもできます.
5398 .「ローカル」\SpecialChar TeX
5400 \begin_inset Flex Code
5403 \begin_layout Plain Layout
5410 \begin_inset Flex Code
5413 \begin_layout Plain Layout
5414 /usr/local/share/texmf/
5420 \begin_inset Flex Code
5423 \begin_layout Plain Layout
5424 /usr/local/texlive/XXXX
5429 (XXXXは導入されている\SpecialChar TeX
5430 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5432 \begin_inset Flex Code
5435 \begin_layout Plain Layout
5442 \begin_inset Flex Code
5445 \begin_layout Plain Layout
5452 \begin_inset Flex Code
5455 \begin_layout Plain Layout
5461 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5462 ,「ユーザー」ツリーにはこのような制限はありません.
5463 \begin_inset Newline newline
5466 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5467 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5470 \begin_layout Enumerate
5471 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5473 \begin_inset Flex Code
5476 \begin_layout Plain Layout
5486 に移動します(MiK\SpecialChar TeX
5488 \begin_inset Flex Code
5491 \begin_layout Plain Layout
5507 \begin_layout Plain Layout
5508 これは,英語版でのみ正しいパスになっています.独語版では
5509 \begin_inset Flex Code
5512 \begin_layout Plain Layout
5530 \begin_inset Flex Code
5533 \begin_layout Plain Layout
5539 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5541 ことを行います.たとえばMiK\SpecialChar TeX
5543 \begin_inset space ~
5547 \begin_inset Newline newline
5551 \begin_inset Flex Code
5554 \begin_layout Plain Layout
5557 Documents and Settings
5569 \begin_inset Newline newline
5573 \begin_inset Phantom HPhantom
5576 \begin_layout Plain Layout
5587 \begin_inset Flex Code
5590 \begin_layout Plain Layout
5603 \begin_inset Newline newline
5607 \begin_inset Newline newline
5611 \begin_inset Flex Code
5614 \begin_layout Plain Layout
5637 \begin_inset Newline newline
5644 \begin_layout Enumerate
5645 ここまで来れば,あとは\SpecialChar LaTeX
5646 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5651 \begin_layout Enumerate
5654 \begin_inset Flex Code
5657 \begin_layout Plain Layout
5663 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5666 \begin_layout Enumerate
5668 では,パッケージを全ユーザー用に導入した場合には,「Settings
5669 \begin_inset space ~
5672 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5677 \begin_layout Enumerate
5678 最後に,\SpecialChar LyX
5679 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5680 からツール\SpecialChar menuseparator
5681 環境構成メニューを実行して,\SpecialChar LyX
5685 \begin_layout Standard
5686 これでパッケージが導入されました.この例では,文書クラス
5687 \begin_inset Flex Code
5690 \begin_layout Plain Layout
5692 \begin_inset space ~
5701 \begin_inset Flex MenuItem
5704 \begin_layout Plain Layout
5705 文書\SpecialChar menuseparator
5706 設定\SpecialChar menuseparator
5715 \begin_layout Standard
5716 \begin_inset Flex MenuItem
5719 \begin_layout Plain Layout
5720 文書\SpecialChar menuseparator
5721 設定\SpecialChar menuseparator
5727 メニューに列挙されてもいない\SpecialChar LaTeX
5728 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5731 \begin_layout Section
5735 \begin_layout Standard
5736 この節は,レイアウト情報を含む各種\SpecialChar LyX
5737 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5739 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5740 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5743 \begin_layout Standard
5744 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5745 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5746 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5747 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5748 を出していますので,気軽に質問を投げかけてみてください.
5751 \begin_layout Standard
5752 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5753 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5754 文書クラス用の\SpecialChar LyX
5756 他の人々にも有用なモジュールをお書きになった場合には,
5757 \begin_inset CommandInset href
5759 name "LyX Wikiのレイアウトに関する節"
5760 target "https://wiki.lyx.org/Layouts/Layouts"
5766 開発者メーリングリストに投稿して,\SpecialChar LyX
5767 頒布版に同梱することができるようにしてください
5771 \begin_layout Plain Layout
5773 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5774 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5782 \begin_layout Subsection
5784 \begin_inset CommandInset label
5786 name "subsec:レイアウトモジュール"
5793 \begin_layout Standard
5794 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5796 \begin_inset Flex Code
5799 \begin_layout Plain Layout
5805 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5806 に提供するものを指します.しかしながら,\SpecialChar LyX
5808 \begin_inset Flex Code
5811 \begin_layout Plain Layout
5821 にも含めることができます.レイアウトが\SpecialChar LaTeX
5822 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5824 \begin_inset Flex Code
5827 \begin_layout Plain Layout
5833 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5834 イアウトで使用できるという意味において,一面,
5835 \begin_inset Flex Code
5838 \begin_layout Plain Layout
5848 \begin_layout Plain Layout
5849 これらは任意の拡張子をつけることができますが,慣習的に
5850 \begin_inset Flex Code
5853 \begin_layout Plain Layout
5865 \begin_inset Flex Code
5868 \begin_layout Plain Layout
5874 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5875 \begin_inset Flex MenuItem
5878 \begin_layout Plain Layout
5879 文書\SpecialChar menuseparator
5888 \begin_layout Standard
5889 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5890 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5893 \begin_layout Standard
5895 \begin_inset Flex Code
5898 \begin_layout Plain Layout
5904 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5905 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5906 \begin_inset Flex MenuItem
5909 \begin_layout Plain Layout
5910 文書\SpecialChar menuseparator
5916 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5918 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5922 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5924 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5925 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5929 \begin_layout Subsubsection
5933 \begin_layout Standard
5935 に於けるモジュールは,\SpecialChar LaTeX
5936 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5937 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5940 \begin_layout Standard
5943 文書\SpecialChar menuseparator
5944 設定\SpecialChar menuseparator
5947 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5948 は,その文書専属のモジュールだと考えることができます.したがって,
5949 \begin_inset Flex Code
5952 \begin_layout Plain Layout
5958 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5962 \begin_layout Standard
5963 \begin_inset Flex Code
5966 \begin_layout Plain Layout
5972 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5973 ているかどうかが検証されます.すると,\SpecialChar LyX
5974 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5976 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5979 \begin_layout Standard
5980 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5981 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5984 \begin_layout Subsection
5985 \begin_inset Flex MenuItem
5988 \begin_layout Plain Layout
5997 \begin_layout Standard
5998 新しく\SpecialChar LaTeX
5999 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
6001 \begin_inset Flex Code
6004 \begin_layout Plain Layout
6011 \begin_inset Flex Code
6014 \begin_layout Plain Layout
6020 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6021 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6025 \begin_layout Standard
6026 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6027 \begin_inset Flex MenuItem
6030 \begin_layout Plain Layout
6037 \begin_inset Flex MenuItem
6040 \begin_layout Plain Layout
6049 \begin_layout Standard
6050 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6054 \begin_layout Plain Layout
6055 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6057 \begin_inset Flex MenuItem
6060 \begin_layout Plain Layout
6066 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6074 \begin_layout LyX-Code
6075 cp report.layout ~/.lyx/layouts/myclass.layout
6078 \begin_layout Standard
6080 \begin_inset Flex Code
6083 \begin_layout Plain Layout
6092 \begin_layout LyX-Code
6095 DeclareLaTeXClass{report}
6098 \begin_layout Standard
6102 \begin_layout LyX-Code
6105 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6108 \begin_layout Standard
6109 のように変更してください.それから,ファイル冒頭辺りに
6112 \begin_layout LyX-Code
6114 \begin_inset Newline newline
6120 \begin_inset Newline newline
6126 \begin_layout Standard
6130 \begin_layout Standard
6133 \begin_inset Flex MenuItem
6136 \begin_layout Plain Layout
6137 ツール\SpecialChar menuseparator
6143 を選択してください.それから\SpecialChar LyX
6144 を再起動し,新規文書を作成してみてください.すると,
6145 \begin_inset Flex MenuItem
6148 \begin_layout Plain Layout
6149 文書\SpecialChar menuseparator
6156 \begin_inset Flex MenuItem
6159 \begin_layout Plain Layout
6165 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6166 \begin_inset Flex Code
6169 \begin_layout Plain Layout
6175 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6176 \begin_inset Flex Code
6179 \begin_layout Plain Layout
6185 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6186 \begin_inset Flex Code
6189 \begin_layout Plain Layout
6196 \begin_inset Flex Code
6199 \begin_layout Plain Layout
6205 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6208 \begin_layout LyX-Code
6212 \begin_layout LyX-Code
6216 \begin_layout LyX-Code
6220 \begin_layout LyX-Code
6224 \begin_layout LyX-Code
6228 \begin_layout Standard
6229 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6232 \begin_layout Standard
6233 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6235 \begin_inset CommandInset ref
6237 reference "sec:テキストクラス"
6244 \begin_layout Standard
6246 \begin_inset Flex Code
6249 \begin_layout Plain Layout
6255 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6256 う.最も簡単なモジュールの例としては,以下のようなものになります.
6259 \begin_layout LyX-Code
6262 DeclareLyXModule{My Package}
6265 \begin_layout LyX-Code
6269 \begin_layout LyX-Code
6270 #Support for mypkg.sty.
6273 \begin_layout LyX-Code
6275 \begin_inset Newline newline
6281 \begin_layout LyX-Code
6283 \begin_inset Newline newline
6289 \begin_layout LyX-Code
6291 \begin_inset Newline newline
6297 \begin_inset Newline newline
6303 \begin_layout Standard
6304 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6305 \begin_inset CommandInset ref
6307 reference "sec:テキストクラス"
6314 \begin_layout Subsection
6315 \begin_inset Flex MenuItem
6318 \begin_layout Plain Layout
6327 \begin_layout Standard
6328 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6329 \begin_inset Flex MenuItem
6332 \begin_layout Plain Layout
6338 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6341 \begin_layout LyX-Code
6347 \begin_layout Standard
6348 という行がないかどうか探してください.もしこれがあれば,
6349 \begin_inset Flex Code
6352 \begin_layout Plain Layout
6353 Declare\SpecialChar LaTeX
6359 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6360 \begin_inset Flex Code
6363 \begin_layout Plain Layout
6370 \begin_inset Flex Code
6373 \begin_layout Plain Layout
6380 \begin_inset Flex Code
6383 \begin_layout Plain Layout
6384 Declare\SpecialChar LaTeX
6394 \begin_layout Plain Layout
6396 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6397 \begin_inset Flex Code
6400 \begin_layout Plain Layout
6414 \begin_layout LyX-Code
6417 DeclareLaTeXClass[thesis,book]{thesis}
6420 \begin_layout Standard
6421 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6423 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6427 \begin_layout Subsection
6429 \begin_inset CommandInset label
6438 \begin_layout Standard
6439 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6440 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6441 添付のひな型をあれこれ見てみるのもよいでしょう.
6444 \begin_layout Standard
6445 ひな型は,通常の文書と同様,\SpecialChar LyX
6446 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6447 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6448 \begin_inset Flex Code
6451 \begin_layout Plain Layout
6460 \begin_inset Flex Code
6463 \begin_layout Plain Layout
6471 などの対応するコマンドをひな型\SpecialChar LyX
6472 ファイルから取り除く必要があります.これは,たとえば
6473 \begin_inset Flex Code
6476 \begin_layout Plain Layout
6483 \begin_inset Flex Code
6486 \begin_layout Plain Layout
6492 のような,どの軽いテキストエディタでも行うことができます.
6495 \begin_layout Standard
6497 \begin_inset Flex Code
6500 \begin_layout Plain Layout
6507 \begin_inset Flex Code
6510 \begin_layout Plain Layout
6516 から使用したいものを同じ場所にコピーし,
6517 \begin_inset Flex MenuItem
6520 \begin_layout Plain Layout
6521 ツール\SpecialChar menuseparator
6522 設定\SpecialChar menuseparator
6528 ダイアログのひな型パスを再定義してください.
6531 \begin_layout Standard
6533 \begin_inset Flex Code
6536 \begin_layout Plain Layout
6542 があることに注意してください.このひな型は,
6543 \begin_inset Flex MenuItem
6546 \begin_layout Plain Layout
6547 ファイル\SpecialChar menuseparator
6553 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6554 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6556 \begin_inset Flex MenuItem
6559 \begin_layout Plain Layout
6568 \begin_layout Subsection
6572 \begin_layout Standard
6573 レイアウトファイルの書式は,\SpecialChar LyX
6574 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6575 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6578 \begin_inset Flex Code
6581 \begin_layout Plain Layout
6583 Dir/scripts/layout2layout.py
6588 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6590 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6593 \begin_layout Enumerate
6595 \begin_inset Flex Code
6598 \begin_layout Plain Layout
6605 \begin_inset Flex Code
6608 \begin_layout Plain Layout
6617 \begin_layout Enumerate
6619 \begin_inset Newline newline
6623 \begin_inset Flex Code
6626 \begin_layout Plain Layout
6627 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6633 \begin_inset Newline newline
6637 \begin_inset Flex Code
6640 \begin_layout Plain Layout
6650 \begin_layout Standard
6651 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6654 \begin_layout Subsection
6655 \begin_inset CommandInset label
6657 name "subsec:引用エンジンファイル"
6664 \begin_layout Standard
6665 \begin_inset Flex Code
6668 \begin_layout Plain Layout
6674 サブディレクトリ以下に収められている,いわゆる
6675 \begin_inset Flex Code
6678 \begin_layout Plain Layout
6684 ファイルは,レイアウトファイルの特殊形です.これらの目的は,
6696 など,書誌情報を生成する\SpecialChar LaTeX
6697 パッケージの詳細を定義することですが,通常の(追加パッケージのない)Bib\SpecialChar TeX
6699 中でどのように取り扱われるかも,これらのファイルの中で定
6703 \begin_layout Standard
6704 より具体的には,どのパッケージを\SpecialChar LyX
6705 が読み込む必要があるのか,どの引用コマンドが利用可能であるのか,これらが\SpecialChar LyX
6706 中(作業領域・ダイアログ・コンテクストメニュー)で,さら
6707 にはXHTMLや平文出力中でどのように表示されるのかを定義します.さらに,これらのファイルは,使用できる派生様式(著者-刊行年,数値など)とその子細を特定します
6710 文書\SpecialChar menuseparator
6711 設定\SpecialChar ldots
6712 \SpecialChar menuseparator
6713 書誌情報\SpecialChar menuseparator
6716 で利用できる選択肢を生成するのにも使用されます.
6719 \begin_layout Standard
6720 引用エンジンファイルは,本質的に通常のレイアウトファイルであり,理論上どのようなレイアウト情報も内包することができますが,通常は
6721 \begin_inset Flex Code
6724 \begin_layout Plain Layout
6731 \begin_inset Flex Code
6734 \begin_layout Plain Layout
6741 \begin_inset Flex Code
6744 \begin_layout Plain Layout
6751 \begin_inset Flex Code
6754 \begin_layout Plain Layout
6760 ブロックのような特定のパラメータをもっぱら含みます.この最後の2つの文法は,ファイル自身に加え,第
6761 \begin_inset CommandInset ref
6763 reference "subsec:引用エンジンの説明"
6771 \begin_inset CommandInset ref
6773 reference "subsec:引用書式指定"
6783 \begin_layout Section
6784 \begin_inset CommandInset label
6793 \begin_layout Standard
6794 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6795 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6796 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6797 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6798 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6801 \begin_layout Standard
6802 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6803 \begin_inset Flex Code
6806 \begin_layout Plain Layout
6813 \begin_inset Flex Code
6816 \begin_layout Plain Layout
6823 \begin_inset Flex Code
6826 \begin_layout Plain Layout
6832 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6833 \begin_inset Flex Code
6836 \begin_layout Plain Layout
6844 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6845 \begin_inset Flex Code
6848 \begin_layout Plain Layout
6859 \begin_layout Subsection
6863 \begin_layout Standard
6865 \begin_inset Flex Code
6868 \begin_layout Plain Layout
6874 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6875 \begin_inset Flex Code
6878 \begin_layout Plain Layout
6884 ファイルは,以下のような行で始めなくてはならないのです.
6887 \begin_layout LyX-Code
6890 #% Do not delete the line below; configure depends on this
6893 \begin_layout LyX-Code
6898 DeclareLaTeXClass{Article (Standard Class)}
6901 \begin_layout LyX-Code
6906 DeclareCategory{Articles}
6909 \begin_layout Standard
6910 2行目と3行目は,\SpecialChar LyX
6911 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6913 \begin_inset Flex Code
6916 \begin_layout Plain Layout
6923 \begin_inset Flex Code
6926 \begin_layout Plain Layout
6932 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6933 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6935 \begin_inset Flex Code
6938 \begin_layout Plain Layout
6945 \begin_inset Flex Code
6948 \begin_layout Plain Layout
6954 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6956 \begin_inset Flex Code
6959 \begin_layout Plain Layout
6965 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6966 \begin_inset Flex MenuItem
6969 \begin_layout Plain Layout
6970 文書\SpecialChar menuseparator
6976 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6977 \begin_inset Flex MenuItem
6980 \begin_layout Plain Layout
6981 文書\SpecialChar menuseparator
6987 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6988 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6989 rized」グループに属することになります.
6992 \begin_layout Standard
6994 \begin_inset Flex Code
6997 \begin_layout Plain Layout
7003 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
7004 \begin_inset Flex Code
7007 \begin_layout Plain Layout
7013 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
7016 \begin_layout LyX-Code
7019 #% Do not delete the line below; configure depends on this
7022 \begin_layout LyX-Code
7027 DeclareLaTeXClass[article]{article (with My Own Headings)}
7030 \begin_layout LyX-Code
7035 DeclareCategory{Articles}
7038 \begin_layout Standard
7039 これは,\SpecialChar LaTeX
7041 \begin_inset Flex Code
7044 \begin_layout Plain Layout
7050 に関連づけられ,「Article (with My Own Headings)」と表示される,
7051 \begin_inset Flex Code
7054 \begin_layout Plain Layout
7060 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
7063 \begin_layout LyX-Code
7066 #% Do not delete the line below; configure depends on this
7069 \begin_layout LyX-Code
7074 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7077 \begin_layout LyX-Code
7082 DeclareCategory{Articles}
7085 \begin_layout Standard
7087 \begin_inset Flex Code
7090 \begin_layout Plain Layout
7096 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7099 \begin_layout LyX-Code
7102 #% Do not delete the line below; configure depends on this
7105 \begin_layout LyX-Code
7110 DeclareDocBookClass[article]{SGML (DocBook article)}
7113 \begin_layout LyX-Code
7118 DeclareCategory{Articles}
7121 \begin_layout Standard
7122 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7125 \begin_layout Standard
7126 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7129 \begin_layout LyX-Code
7134 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7137 \begin_layout LyX-Code
7145 \begin_layout Standard
7146 ここで「クラス」は,\SpecialChar LaTeX
7147 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7149 名がレイアウトファイル名と同じであると仮定します.
7152 \begin_layout Standard
7153 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7154 \begin_inset Flex Code
7157 \begin_layout Plain Layout
7164 \begin_inset Flex Code
7167 \begin_layout Plain Layout
7174 \begin_inset Flex MenuItem
7177 \begin_layout Plain Layout
7178 ツール\SpecialChar menuseparator
7184 を実行し,\SpecialChar LyX
7185 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7188 \begin_layout Standard
7189 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7190 を再起動したりすることなく,その変更を確認することができます
7194 \begin_layout Plain Layout
7195 第1.6版よりも前の\SpecialChar LyX
7196 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7198 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7205 \begin_inset Flex MenuItem
7208 \begin_layout Plain Layout
7214 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7215 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7218 \begin_layout Standard
7224 \begin_inset Flex MenuItem
7227 \begin_layout Plain Layout
7233 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7237 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7241 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7243 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7247 \begin_layout Plain Layout
7248 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7249 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7250 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7257 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7261 \begin_layout Plain Layout
7262 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7270 \begin_layout Subsection
7274 \begin_layout Standard
7275 モジュールは,以下のような行で始まらなくてはなりません.
7278 \begin_layout LyX-Code
7281 DeclareLyXModule[endnotes.sty]{Endnotes}
7284 \begin_layout Standard
7285 波括弧内に入っている必須引数はモジュール名で,これは
7286 \begin_inset Flex MenuItem
7289 \begin_layout Plain Layout
7290 文書\SpecialChar menuseparator
7296 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7297 パッケージをすべて宣言します.また,非必須引数として,
7298 \begin_inset Flex Code
7301 \begin_layout Plain Layout
7308 \begin_inset Flex Code
7311 \begin_layout Plain Layout
7318 \begin_inset Flex Code
7321 \begin_layout Plain Layout
7327 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7330 \begin_layout Standard
7331 それから,以下のようなモジュール宣言を行います
7335 \begin_layout Plain Layout
7336 モジュールを\SpecialChar LyX
7337 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7345 \begin_layout LyX-Code
7349 \begin_layout LyX-Code
7350 #Adds an endnote command, in addition to footnotes.
7354 \begin_layout LyX-Code
7355 #You will need to add
7357 theendnotes in TeX code where you
7360 \begin_layout LyX-Code
7361 #want the endnotes to appear.
7365 \begin_layout LyX-Code
7369 \begin_layout LyX-Code
7370 #Requires: somemodule | othermodule
7373 \begin_layout LyX-Code
7374 #Excludes: badmodule
7377 \begin_layout Standard
7378 ここで説明(Description)は,
7379 \begin_inset Flex MenuItem
7382 \begin_layout Plain Layout
7383 文書\SpecialChar menuseparator
7389 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7390 \begin_inset Flex Code
7393 \begin_layout Plain Layout
7399 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7400 \begin_inset Flex Code
7403 \begin_layout Plain Layout
7409 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7410 イプ記号「|」で区切らなくてはなりません.
7411 \begin_inset Flex Code
7414 \begin_layout Plain Layout
7420 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7421 \begin_inset Flex Code
7424 \begin_layout Plain Layout
7434 が使用されていればよいということです.同様に,
7435 \begin_inset Flex Code
7438 \begin_layout Plain Layout
7444 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7445 \begin_inset Flex Code
7448 \begin_layout Plain Layout
7454 拡張子を除いたファイル名で認識されることに注意してください.つまり
7455 \begin_inset Flex Code
7458 \begin_layout Plain Layout
7465 \begin_inset Flex Code
7468 \begin_layout Plain Layout
7477 \begin_layout Subsection
7481 \begin_layout Standard
7482 引用エンジンファイルは,次のような行で始まらなくてはなりません.
7485 \begin_layout LyX-Code
7488 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
7491 \begin_layout Standard
7493 \begin_inset Flex Noun
7496 \begin_layout Plain Layout
7497 文書\SpecialChar menuseparator
7498 設定\SpecialChar menuseparator
7504 にそのまま現れます.角括弧内の引数は非必須です.これは,引用エンジンが依存する\SpecialChar LaTeX
7508 \begin_layout Standard
7509 引用エンジン宣言には,その後,以下のような行が続きます
7513 \begin_layout Plain Layout
7515 とともに公表するモジュールの場合は,英語で書かれることが望まれます.この説明は,翻訳対象メッセージのリストに含まれますので,次回インタフェースの更新の際に翻訳さ
7524 \begin_layout LyX-Code
7528 \begin_layout LyX-Code
7529 # Biblatex supports many author-year and numerical styles.
7532 \begin_layout LyX-Code
7533 # It is mainly aimed at the Humanities.
7537 \begin_layout LyX-Code
7538 # customizable, fully localized and provides many features
7541 \begin_layout LyX-Code
7542 # that are not possible with BibTeX.
7543 The use of 'biber' as
7546 \begin_layout LyX-Code
7547 # bibliography processor is advised.
7550 \begin_layout LyX-Code
7554 \begin_layout Standard
7556 \begin_inset Flex Noun
7559 \begin_layout Plain Layout
7560 文書\SpecialChar menuseparator
7561 設定\SpecialChar menuseparator
7567 の中で,ユーザーに引用エンジンに関する情報を提供するために使われます.
7570 \begin_layout Subsection
7574 \begin_layout Standard
7575 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7578 \begin_layout Description
7579 \begin_inset Flex Code
7582 \begin_layout Plain Layout
7589 \begin_inset Flex Code
7592 \begin_layout Plain Layout
7601 \begin_layout Standard
7602 このタグは\SpecialChar LyX
7604 \begin_inset space ~
7607 1.4.0で導入されました.\SpecialChar LyX
7609 \begin_inset space ~
7612 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7613 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7614 の各版は,旧版の\SpecialChar LyX
7616 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7619 \begin_layout Subsection
7620 \begin_inset CommandInset label
7622 name "subsec:汎用テキストクラスパラメータ"
7629 \begin_layout Standard
7630 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7631 \begin_inset Flex Code
7634 \begin_layout Plain Layout
7640 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7644 .モジュールには,すべてのレイアウトタグを使用することができます).
7647 \begin_layout Description
7648 \begin_inset Flex Code
7651 \begin_layout Plain Layout
7657 この文書クラスがXHTMLに出力されるときに,
7658 \begin_inset Flex Code
7661 \begin_layout Plain Layout
7667 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7668 \begin_inset Flex Code
7671 \begin_layout Plain Layout
7677 に出力するものであれば,何でも使用することができます.「
7678 \begin_inset Flex Code
7681 \begin_layout Plain Layout
7690 \begin_layout Description
7691 \begin_inset Flex Code
7694 \begin_layout Plain Layout
7700 文書プリアンブルに書き加えられる情報です.「
7701 \begin_inset Flex Code
7704 \begin_layout Plain Layout
7713 \begin_layout Description
7714 \begin_inset Flex Code
7717 \begin_layout Plain Layout
7723 文献参照を表示する方法を定義します.詳細については,第
7724 \begin_inset CommandInset ref
7726 reference "subsec:引用エンジンの説明"
7734 \begin_inset Flex Code
7737 \begin_layout Plain Layout
7743 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7744 \begin_inset CommandInset ref
7746 reference "subsec:引用エンジンファイル"
7756 \begin_layout Description
7757 \begin_inset Flex Code
7760 \begin_layout Plain Layout
7766 書誌情報の表示に使う書式を定義します.詳細については,第
7767 \begin_inset CommandInset ref
7769 reference "subsec:引用書式指定"
7774 \begin_inset Flex Code
7777 \begin_layout Plain Layout
7783 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7784 \begin_inset CommandInset ref
7786 reference "subsec:引用エンジンファイル"
7796 \begin_layout Description
7797 \begin_inset Flex Code
7800 \begin_layout Plain Layout
7807 \begin_inset Flex Code
7810 \begin_layout Plain Layout
7819 \begin_inset Flex Code
7822 \begin_layout Plain Layout
7832 を用いるのかBib\SpecialChar TeX
7833 を用いるのかを特定します.主に引用エンジンファイルで使用されます(第
7834 \begin_inset CommandInset ref
7836 reference "subsec:引用エンジンファイル"
7846 \begin_layout Description
7847 \begin_inset Flex Code
7850 \begin_layout Plain Layout
7856 文書クラスがサポートする様々な大域オプションを記します.説明は,第
7857 \begin_inset CommandInset ref
7859 reference "subsec:ClassOptions"
7864 \begin_inset Flex Code
7867 \begin_layout Plain Layout
7876 \begin_layout Description
7877 \begin_inset Flex Code
7880 \begin_layout Plain Layout
7887 \begin_inset Flex Code
7890 \begin_layout Plain Layout
7899 \begin_inset space \thinspace{}
7903 \begin_inset Flex Code
7906 \begin_layout Plain Layout
7912 ] 文書クラスが既定で1段組か2段組かを指定します.
7913 \begin_inset Flex MenuItem
7916 \begin_layout Plain Layout
7917 文書\SpecialChar menuseparator
7926 \begin_layout Description
7927 \begin_inset Flex Code
7930 \begin_layout Plain Layout
7937 \begin_inset Flex Code
7940 \begin_layout Plain Layout
7946 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7947 \begin_inset Flex Code
7950 \begin_layout Plain Layout
7957 \begin_inset Newline newline
7961 \begin_inset CommandInset ref
7963 reference "subsec:カウンタ"
7970 \begin_layout Description
7971 \begin_inset Flex Code
7974 \begin_layout Plain Layout
7980 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,第
7981 \begin_inset CommandInset ref
7983 reference "subsec:フォント指定"
7988 \begin_inset Flex Code
7991 \begin_layout Plain Layout
8000 \begin_layout Description
8001 \begin_inset Flex Code
8004 \begin_layout Plain Layout
8011 \begin_inset Flex Code
8014 \begin_layout Plain Layout
8020 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
8021 \begin_inset Flex Code
8024 \begin_layout Plain Layout
8030 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
8031 既存の文書にこの文書クラスが選択したときのみ該当します).
8034 \begin_layout Description
8035 \begin_inset Flex Code
8038 \begin_layout Plain Layout
8045 \begin_inset Flex Code
8048 \begin_layout Plain Layout
8058 これは新規段落に割り当てられる様式であり,通常は
8059 \begin_inset Flex MenuItem
8062 \begin_layout Plain Layout
8068 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
8071 \begin_layout Description
8072 \begin_inset Flex Code
8075 \begin_layout Plain Layout
8082 \begin_inset Flex Code
8085 \begin_layout Plain Layout
8092 \begin_inset Flex Code
8095 \begin_layout Plain Layout
8101 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
8103 \begin_inset Flex Code
8106 \begin_layout Plain Layout
8112 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
8116 .モジュールは,他のモジュールを排除する独自の枠組みがあります(第
8117 \begin_inset CommandInset ref
8119 reference "subsec:レイアウトモジュール"
8126 \begin_layout Description
8127 \begin_inset Flex Code
8130 \begin_layout Plain Layout
8137 \begin_inset CommandInset ref
8139 reference "subsec:フロート"
8144 \begin_inset Flex Code
8147 \begin_layout Plain Layout
8156 \begin_layout Description
8157 \begin_inset Flex Code
8160 \begin_layout Plain Layout
8166 この文書クラスがXHTMLに出力されるときに,
8167 \begin_inset Flex Code
8170 \begin_layout Plain Layout
8176 ブロックに出力される情報です.これより前に出現した
8177 \begin_inset Flex Code
8180 \begin_layout Plain Layout
8187 \begin_inset Flex Code
8190 \begin_layout Plain Layout
8196 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
8197 \begin_inset Flex Code
8200 \begin_layout Plain Layout
8207 \begin_inset Flex Code
8210 \begin_layout Plain Layout
8219 \begin_layout Description
8220 \begin_inset Flex Code
8223 \begin_layout Plain Layout
8230 \begin_inset Flex Code
8233 \begin_layout Plain Layout
8239 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
8240 .これを指定しない場合には,\SpecialChar LyX
8241 はどのレイアウトを使用するべきか,解析しようと試みます.
8244 \begin_layout Description
8245 \begin_inset Flex Code
8248 \begin_layout Plain Layout
8255 \begin_inset Flex Code
8258 \begin_layout Plain Layout
8264 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
8265 \begin_inset Flex Code
8268 \begin_layout Plain Layout
8275 \begin_inset Newline newline
8279 \begin_inset CommandInset ref
8281 reference "subsec:カウンタ"
8288 \begin_layout Description
8289 \begin_inset Flex Code
8292 \begin_layout Plain Layout
8299 \begin_inset Flex Code
8302 \begin_layout Plain Layout
8308 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8309 \begin_inset Flex Code
8312 \begin_layout Plain Layout
8321 \begin_layout Description
8322 \begin_inset Flex Code
8325 \begin_layout Plain Layout
8332 \begin_inset Flex Code
8335 \begin_layout Plain Layout
8345 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8347 \begin_inset Flex Code
8350 \begin_layout Plain Layout
8359 \begin_layout Description
8360 \begin_inset Flex Code
8363 \begin_layout Plain Layout
8370 \begin_inset Flex Code
8373 \begin_layout Plain Layout
8383 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8384 \begin_inset Flex Code
8387 \begin_layout Plain Layout
8394 \begin_inset Newline newline
8398 \begin_inset CommandInset ref
8400 reference "subsec:任意設定差込枠"
8407 \begin_layout Description
8408 \begin_inset Flex Code
8411 \begin_layout Plain Layout
8418 \begin_inset Flex Code
8421 \begin_layout Plain Layout
8427 ] 画面上の左余白の幅を指示する文字列.例:「
8428 \begin_inset Flex Code
8431 \begin_layout Plain Layout
8437 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8440 \begin_layout Description
8441 \begin_inset Flex Code
8444 \begin_layout Plain Layout
8451 \begin_inset Flex Code
8454 \begin_layout Plain Layout
8460 ] 著者-刊行年引用で,引用が「第一著者 et al.」に切り替わる前に,表示される名前の最大数を定める整数.主に引用エンジンファイルで使用されます(第
8461 \begin_inset CommandInset ref
8463 reference "subsec:引用エンジンファイル"
8473 \begin_layout Description
8474 \begin_inset Flex Code
8477 \begin_layout Plain Layout
8484 \begin_inset Flex Code
8487 \begin_layout Plain Layout
8493 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8496 \begin_layout Description
8497 \begin_inset Flex Code
8500 \begin_layout Plain Layout
8507 \begin_inset Flex Code
8510 \begin_layout Plain Layout
8516 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8519 \begin_layout Description
8520 \begin_inset Flex Code
8523 \begin_layout Plain Layout
8530 \begin_inset Flex Code
8533 \begin_layout Plain Layout
8539 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8542 \begin_layout Description
8543 \begin_inset Flex Code
8546 \begin_layout Plain Layout
8553 \begin_inset Flex Code
8556 \begin_layout Plain Layout
8563 \begin_inset Flex Code
8566 \begin_layout Plain Layout
8573 \begin_inset Flex Code
8576 \begin_layout Plain Layout
8583 \begin_inset Flex Code
8586 \begin_layout Plain Layout
8592 の新しい一覧表を定義します.AddToTocコマンドもご覧ください.
8595 \begin_layout Description
8596 \begin_inset Flex Code
8599 \begin_layout Plain Layout
8606 \begin_inset Flex Code
8609 \begin_layout Plain Layout
8615 ] このクラスによって生成されるファイル形式を示す文字列(
8619 ダイアログで定義される形のもの).おもに,
8620 \begin_inset Flex Code
8623 \begin_layout Plain Layout
8630 \begin_inset Flex Code
8633 \begin_layout Plain Layout
8639 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8640 \begin_inset Flex Code
8643 \begin_layout Plain Layout
8649 パラメーターに遭遇したときには,この文字列は,「
8650 \begin_inset Flex Code
8653 \begin_layout Plain Layout
8660 \begin_inset Flex Code
8663 \begin_layout Plain Layout
8674 \begin_layout Description
8675 \begin_inset Flex Code
8678 \begin_layout Plain Layout
8685 \begin_inset Flex Code
8688 \begin_layout Plain Layout
8699 \begin_inset Flex Code
8702 \begin_layout Plain Layout
8709 \begin_inset Flex Code
8712 \begin_layout Plain Layout
8718 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8721 \begin_layout Description
8722 \begin_inset Flex Code
8725 \begin_layout Plain Layout
8732 \begin_inset Flex Code
8735 \begin_layout Plain Layout
8742 \begin_inset Flex Code
8745 \begin_layout Plain Layout
8751 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8752 \begin_inset Flex Code
8755 \begin_layout Plain Layout
8756 PackageOptions natbib square
8762 \begin_inset Flex Code
8765 \begin_layout Plain Layout
8772 \begin_inset Flex Code
8775 \begin_layout Plain Layout
8781 オプションとともに読み込みます(\SpecialChar TeX
8783 \begin_inset Flex Code
8786 \begin_layout Plain Layout
8792 を読み込む前に,\SpecialChar LyX
8794 \begin_inset Flex Code
8797 \begin_layout Plain Layout
8800 PassOptionsToPackage{natbib}{square}
8808 \begin_layout Description
8809 \begin_inset Flex Code
8812 \begin_layout Plain Layout
8821 \begin_inset Flex Code
8824 \begin_layout Plain Layout
8833 \begin_inset Flex Code
8836 \begin_layout Plain Layout
8843 \begin_inset Flex Code
8846 \begin_layout Plain Layout
8853 \begin_inset Flex MenuItem
8856 \begin_layout Plain Layout
8857 文書\SpecialChar menuseparator
8866 \begin_layout Description
8867 \begin_inset Flex Code
8870 \begin_layout Plain Layout
8877 文書のプリアンブルを設定します.前に行った
8878 \begin_inset Flex Code
8881 \begin_layout Plain Layout
8888 \begin_inset Flex Code
8891 \begin_layout Plain Layout
8897 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8898 \begin_inset Flex Code
8901 \begin_layout Plain Layout
8908 \begin_inset Flex Code
8911 \begin_layout Plain Layout
8920 \begin_layout Description
8921 \begin_inset Flex Code
8924 \begin_layout Plain Layout
8931 \begin_inset Flex Code
8934 \begin_layout Plain Layout
8941 \begin_inset Flex Code
8944 \begin_layout Plain Layout
8953 \begin_inset Flex Code
8956 \begin_layout Plain Layout
8963 \begin_inset Flex Code
8966 \begin_layout Plain Layout
8972 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8973 \begin_inset Flex Code
8976 \begin_layout Plain Layout
8983 \begin_inset Flex Code
8986 \begin_layout Plain Layout
8994 \begin_inset Flex Code
8997 \begin_layout Plain Layout
9004 \begin_inset Flex Code
9007 \begin_layout Plain Layout
9015 \begin_inset CommandInset ref
9017 reference "chap:関数一覧"
9024 \begin_layout Description
9025 \begin_inset Flex Code
9028 \begin_layout Plain Layout
9035 \begin_inset Flex Code
9038 \begin_layout Plain Layout
9045 \begin_inset Flex Code
9048 \begin_layout Plain Layout
9054 で表されているモジュールの機能を提供することを示し,
9055 \begin_inset Flex Code
9058 \begin_layout Plain Layout
9065 \begin_inset Flex Code
9068 \begin_layout Plain Layout
9074 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
9075 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
9078 \begin_layout Description
9079 \begin_inset Flex Code
9082 \begin_layout Plain Layout
9089 \begin_inset Flex Code
9092 \begin_layout Plain Layout
9099 \begin_inset Flex Code
9102 \begin_layout Plain Layout
9108 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
9110 \begin_inset CommandInset ref
9112 reference "chap:関数一覧"
9116 を参照).特定のオプションをとるパッケージを要求する場合,
9117 \begin_inset Flex Code
9120 \begin_layout Plain Layout
9129 \begin_layout Description
9130 \begin_inset Flex Code
9133 \begin_layout Plain Layout
9140 \begin_inset Flex Code
9143 \begin_layout Plain Layout
9149 ] 画面上の右余白の幅を指示する文字列.例:「
9150 \begin_inset Flex Code
9153 \begin_layout Plain Layout
9162 \begin_layout Description
9163 \begin_inset Flex Code
9166 \begin_layout Plain Layout
9173 \begin_inset Flex Code
9176 \begin_layout Plain Layout
9182 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
9184 \begin_inset Flex Code
9187 \begin_layout Plain Layout
9196 \begin_layout Description
9197 \begin_inset Flex Code
9200 \begin_layout Plain Layout
9209 \begin_inset Flex Code
9212 \begin_layout Plain Layout
9221 \begin_inset space \thinspace{}
9225 \begin_inset Flex Code
9228 \begin_layout Plain Layout
9234 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
9235 \begin_inset Flex MenuItem
9238 \begin_layout Plain Layout
9239 文書\SpecialChar menuseparator
9248 \begin_layout Description
9249 \begin_inset Flex Code
9252 \begin_layout Plain Layout
9259 \begin_inset Flex Code
9262 \begin_layout Plain Layout
9272 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
9273 \begin_inset Flex Code
9276 \begin_layout Plain Layout
9283 \begin_inset Newline newline
9287 \begin_inset CommandInset ref
9289 reference "subsec:段落様式-XHTML"
9296 \begin_layout Description
9297 \begin_inset Flex Code
9300 \begin_layout Plain Layout
9307 \begin_inset Flex Code
9310 \begin_layout Plain Layout
9317 \begin_inset Flex Code
9320 \begin_layout Plain Layout
9326 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
9328 \begin_inset Flex Code
9331 \begin_layout Plain Layout
9340 \begin_layout Description
9341 \begin_inset Flex Code
9344 \begin_layout Plain Layout
9351 \begin_inset Flex Code
9354 \begin_layout Plain Layout
9363 \begin_inset Flex Code
9366 \begin_layout Plain Layout
9372 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9373 \begin_inset Flex Code
9376 \begin_layout Plain Layout
9383 \begin_inset Flex Code
9386 \begin_layout Plain Layout
9388 \begin_inset space ~
9396 」が指定されている最後のレイアウトの後に,
9397 \begin_inset Flex Code
9400 \begin_layout Plain Layout
9406 で指定したマクロ名を挿入することを意味します.
9407 \begin_inset Flex Code
9410 \begin_layout Plain Layout
9417 \begin_inset Flex Code
9420 \begin_layout Plain Layout
9422 \begin_inset space ~
9431 \begin_inset Flex Code
9434 \begin_layout Plain Layout
9440 で指定した環境でくるむ場合に対応します.
9443 \begin_layout Description
9444 \begin_inset Flex Code
9447 \begin_layout Plain Layout
9454 \begin_inset Flex Code
9457 \begin_layout Plain Layout
9463 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9465 \begin_inset Flex Code
9468 \begin_layout Plain Layout
9477 \begin_layout Subsection
9478 \begin_inset Flex Code
9481 \begin_layout Plain Layout
9488 \begin_inset CommandInset label
9490 name "subsec:ClassOptions"
9497 \begin_layout Standard
9498 \begin_inset Flex Code
9501 \begin_layout Plain Layout
9510 \begin_layout Description
9511 \begin_inset Flex Code
9514 \begin_layout Plain Layout
9521 \begin_inset Flex Code
9524 \begin_layout Plain Layout
9530 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9531 \begin_inset Flex Code
9534 \begin_layout Plain Layout
9543 \begin_layout Description
9544 \begin_inset Flex Code
9547 \begin_layout Plain Layout
9553 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9554 \begin_inset Quotes eld
9557 -//OASIS//DTD DocBook V4.2//EN
9558 \begin_inset Quotes erd
9564 \begin_layout Description
9565 \begin_inset Flex Code
9568 \begin_layout Plain Layout
9575 \begin_inset Flex Code
9578 \begin_layout Plain Layout
9579 文字列="empty|plain|headings|fancy"
9585 \begin_inset Flex Code
9588 \begin_layout Plain Layout
9597 \begin_layout Description
9598 \begin_inset Flex Code
9601 \begin_layout Plain Layout
9608 \begin_inset Flex Code
9611 \begin_layout Plain Layout
9618 \begin_inset Flex Code
9621 \begin_layout Plain Layout
9629 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9632 \begin_layout Standard
9633 \begin_inset Flex Code
9636 \begin_layout Plain Layout
9643 \begin_inset Flex Code
9646 \begin_layout Plain Layout
9655 \begin_layout Subsection
9657 \begin_inset CommandInset label
9666 \begin_layout Standard
9671 \begin_layout Plain Layout
9672 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9680 \begin_layout LyX-Code
9687 \begin_layout LyX-Code
9691 \begin_layout LyX-Code
9695 \begin_layout Standard
9696 ここでは,以下のコマンドを使用することができます.
9699 \begin_layout Description
9700 \begin_inset Flex Code
9703 \begin_layout Plain Layout
9710 \begin_inset Flex Code
9713 \begin_layout Plain Layout
9719 =""] この段落は指定された型の一覧表に現れます.空の文字列を与えると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドもご覧
9723 \begin_layout Description
9724 \begin_inset Flex Code
9727 \begin_layout Plain Layout
9734 \begin_inset Flex Code
9737 \begin_layout Plain Layout
9742 , left, right, center
9750 \begin_layout Description
9751 \begin_inset Flex Code
9754 \begin_layout Plain Layout
9761 \begin_inset Flex Code
9764 \begin_layout Plain Layout
9769 , left, right, center
9774 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9775 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9779 \begin_layout Description
9780 \begin_inset Flex Code
9783 \begin_layout Plain Layout
9790 \begin_inset Flex Code
9793 \begin_layout Plain Layout
9799 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9801 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9802 \begin_inset Flex Code
9805 \begin_layout Plain Layout
9811 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9851 \begin_layout Standard
9852 \begin_inset Flex Code
9855 \begin_layout Plain Layout
9861 定義内部では,以下の指定をすることができます.
9864 \begin_layout Itemize
9865 \begin_inset Flex Code
9868 \begin_layout Plain Layout
9875 \begin_inset Flex Code
9878 \begin_layout Plain Layout
9884 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9885 \begin_inset Flex Code
9888 \begin_layout Plain Layout
9894 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9895 \begin_inset space \space{}
9899 \begin_inset Quotes eld
9903 \begin_inset Flex Code
9906 \begin_layout Plain Layout
9913 \begin_inset Quotes erd
9919 \begin_layout Itemize
9920 \begin_inset Flex Code
9923 \begin_layout Plain Layout
9930 \begin_inset Flex Code
9933 \begin_layout Plain Layout
9939 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9940 \begin_inset space \space{}
9944 \begin_inset Quotes eld
9948 \begin_inset Flex Code
9951 \begin_layout Plain Layout
9958 \begin_inset Quotes erd
9961 ).この指定は必須ではありません.指定しない場合には,代わりに
9962 \begin_inset Flex Code
9965 \begin_layout Plain Layout
9974 \begin_layout Itemize
9975 \begin_inset Flex Code
9978 \begin_layout Plain Layout
9985 \begin_inset Flex Code
9988 \begin_layout Plain Layout
9994 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9997 \begin_layout Itemize
9998 \begin_inset Flex Code
10001 \begin_layout Plain Layout
10008 \begin_inset Flex Code
10011 \begin_layout Plain Layout
10020 \begin_inset space \thinspace{}
10024 \begin_inset Flex Code
10027 \begin_layout Plain Layout
10033 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
10035 \begin_inset Flex Code
10038 \begin_layout Plain Layout
10045 \begin_inset Flex Code
10048 \begin_layout Plain Layout
10057 \begin_layout Itemize
10058 \begin_inset Flex Code
10061 \begin_layout Plain Layout
10068 \begin_inset Flex Code
10071 \begin_layout Plain Layout
10077 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
10079 \begin_inset Flex Code
10082 \begin_layout Plain Layout
10090 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
10091 \begin_inset Flex Code
10094 \begin_layout Plain Layout
10101 \begin_inset Flex Code
10104 \begin_layout Plain Layout
10110 ステートメントを置くことで実現できます.
10113 \begin_layout Itemize
10114 \begin_inset Flex Code
10117 \begin_layout Plain Layout
10124 \begin_inset Flex Code
10127 \begin_layout Plain Layout
10134 \begin_inset Flex Code
10137 \begin_layout Plain Layout
10144 \begin_inset Flex Code
10147 \begin_layout Plain Layout
10153 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
10154 \begin_inset Flex Code
10157 \begin_layout Plain Layout
10166 \begin_layout Itemize
10167 \begin_inset Flex Code
10170 \begin_layout Plain Layout
10177 \begin_inset Flex Code
10180 \begin_layout Plain Layout
10187 \begin_inset Flex Code
10190 \begin_layout Plain Layout
10197 \begin_inset Flex Code
10200 \begin_layout Plain Layout
10206 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
10207 \begin_inset Flex Code
10210 \begin_layout Plain Layout
10219 \begin_layout Itemize
10220 \begin_inset Flex Code
10223 \begin_layout Plain Layout
10230 \begin_inset Flex Code
10233 \begin_layout Plain Layout
10239 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10240 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
10243 \begin_layout Itemize
10244 \begin_inset Flex Code
10247 \begin_layout Plain Layout
10254 \begin_inset Flex Code
10257 \begin_layout Plain Layout
10263 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
10266 \begin_layout Itemize
10267 \begin_inset Flex Code
10270 \begin_layout Plain Layout
10277 \begin_inset CommandInset ref
10279 reference "subsec:フォント指定"
10286 \begin_layout Itemize
10287 \begin_inset Flex Code
10290 \begin_layout Plain Layout
10297 \begin_inset CommandInset ref
10299 reference "subsec:フォント指定"
10306 \begin_layout Itemize
10307 \begin_inset Flex Code
10310 \begin_layout Plain Layout
10317 \begin_inset Flex Code
10320 \begin_layout Plain Layout
10325 , Minimalistic, Conglomerate
10330 ] 差込枠の枠とボタンに用いられる装飾様式.
10333 \begin_layout Itemize
10334 \begin_inset Flex Code
10337 \begin_layout Plain Layout
10344 \begin_inset Flex Code
10347 \begin_layout Plain Layout
10354 \begin_inset Flex Code
10357 \begin_layout Plain Layout
10363 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
10366 \begin_layout Itemize
10367 \begin_inset Flex Code
10370 \begin_layout Plain Layout
10377 \begin_inset Flex Code
10380 \begin_layout Plain Layout
10387 \begin_inset Flex Code
10390 \begin_layout Plain Layout
10396 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10399 \begin_layout Itemize
10400 \begin_inset Flex Code
10403 \begin_layout Plain Layout
10410 \begin_inset Flex Code
10413 \begin_layout Plain Layout
10423 ] この引数の内容が,\SpecialChar LaTeX
10424 が要求する特別な書き換えを行うことなく,原文のまま出力されるべきかどうかを指定します.既定値では,
10425 \begin_inset Flex Code
10428 \begin_layout Plain Layout
10434 の状態は,引数が属する差込枠または段落レイアウトに継承されます.trueまたはfalseは,この引数のみの状態を変更します.
10437 \begin_layout Itemize
10438 \begin_inset Flex Code
10441 \begin_layout Plain Layout
10448 \begin_inset Flex Code
10451 \begin_layout Plain Layout
10462 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10463 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10466 \begin_layout Itemize
10467 \begin_inset Flex Code
10470 \begin_layout Plain Layout
10477 \begin_inset Flex Code
10480 \begin_layout Plain Layout
10489 \begin_inset space \thinspace{}
10493 \begin_inset Flex Code
10496 \begin_layout Plain Layout
10502 ] これを1に設定すると,引数は,その内容を対応する一覧表の項目に出力します.AddToTocを参照.
10505 \begin_layout Standard
10507 \begin_inset Flex Code
10510 \begin_layout Plain Layout
10517 \begin_inset Flex Code
10520 \begin_layout Plain Layout
10526 のとき,各レイアウトで\SpecialChar LyX
10527 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10528 \begin_inset Flex Code
10531 \begin_layout Plain Layout
10537 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10538 \begin_inset Flex Code
10541 \begin_layout Plain Layout
10548 \begin_inset Flex Code
10551 \begin_layout Plain Layout
10558 \begin_inset Flex Code
10561 \begin_layout Plain Layout
10570 \begin_layout Standard
10572 \begin_inset Flex Code
10575 \begin_layout Plain Layout
10584 \begin_inset Flex Code
10587 \begin_layout Plain Layout
10596 \begin_inset Flex Code
10599 \begin_layout Plain Layout
10606 \begin_inset Flex Code
10609 \begin_layout Plain Layout
10619 \begin_layout Description
10622 \begin_inset Flex Code
10625 \begin_layout Plain Layout
10633 Includes a comma-separated list of layouts that should be nested in and
10634 after the current layout.
10635 Only makes sense for nestable layouts (such as environments).
10637 \begin_inset Quotes eld
10641 \begin_inset Flex Code
10644 \begin_layout Plain Layout
10653 \begin_inset Quotes erd
10658 \begin_inset Flex Code
10661 \begin_layout Plain Layout
10672 \begin_layout Description
10673 \begin_inset Flex Code
10676 \begin_layout Plain Layout
10683 \begin_inset Flex Code
10686 \begin_layout Plain Layout
10692 宣言をすべて,完全に上書きしますので注意してください.「
10693 \begin_inset Flex Code
10696 \begin_layout Plain Layout
10702 」で閉じる必要があります.これの利用法についての詳細は,第
10703 \begin_inset CommandInset ref
10705 reference "subsec:段落様式の国際化"
10712 \begin_layout Description
10713 \begin_inset Flex Code
10716 \begin_layout Plain Layout
10723 \begin_inset Flex Code
10726 \begin_layout Plain Layout
10736 \begin_layout Plain Layout
10737 ここで「浮動小数点型」とは1.5のような実数を指します.
10742 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10746 \begin_layout Description
10747 \begin_inset Flex Code
10750 \begin_layout Plain Layout
10757 \begin_inset Flex Code
10760 \begin_layout Plain Layout
10766 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10767 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10770 \begin_layout Description
10771 \begin_inset Flex Code
10774 \begin_layout Plain Layout
10780 XMLコマンドの深度.XML型の書式でのみ使用されます.
10783 \begin_layout Description
10784 \begin_inset Flex Code
10787 \begin_layout Plain Layout
10794 \begin_inset Flex Code
10797 \begin_layout Plain Layout
10803 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10806 \begin_layout Description
10807 \begin_inset Flex Code
10810 \begin_layout Plain Layout
10817 \begin_inset Flex Code
10820 \begin_layout Plain Layout
10834 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10838 \begin_layout Plain Layout
10839 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10840 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10849 \begin_layout Description
10850 \begin_inset Flex Code
10853 \begin_layout Plain Layout
10860 \begin_inset Flex Code
10863 \begin_layout Plain Layout
10868 , Box, Filled_Box, Static
10874 \begin_inset Flex Code
10877 \begin_layout Plain Layout
10884 \begin_inset Flex Code
10887 \begin_layout Plain Layout
10894 \begin_inset Flex Code
10897 \begin_layout Plain Layout
10904 \begin_inset Flex Code
10907 \begin_layout Plain Layout
10913 のいずれかの場合は,段落群の最後)に置くラベル.
10914 \begin_inset Flex Code
10917 \begin_layout Plain Layout
10924 \begin_inset Flex Code
10927 \begin_layout Plain Layout
10934 \begin_inset Flex Code
10937 \begin_layout Plain Layout
10943 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10944 \begin_inset Flex Code
10947 \begin_layout Plain Layout
10956 \begin_layout Description
10957 \begin_inset Flex Code
10960 \begin_layout Plain Layout
10967 \begin_inset Flex Code
10970 \begin_layout Plain Layout
10977 \begin_inset Flex Code
10980 \begin_layout Plain Layout
10987 \begin_inset Flex Code
10990 \begin_layout Plain Layout
10999 \begin_layout Description
11000 \begin_inset Flex Code
11003 \begin_layout Plain Layout
11014 \begin_inset CommandInset ref
11016 reference "subsec:フォント指定"
11020 節を参照.このフォントを定義すると,自動的に
11021 \begin_inset Flex Code
11024 \begin_layout Plain Layout
11030 も同じ値で定義されることに注意してください.したがって,
11031 \begin_inset Flex Code
11034 \begin_layout Plain Layout
11040 も同時に定義したい場合には,これを先に定義してください.
11043 \begin_layout Description
11044 \begin_inset Flex Code
11047 \begin_layout Plain Layout
11054 \begin_inset Flex Code
11057 \begin_layout Plain Layout
11063 ] 新しい様式を\SpecialChar LyX
11064 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
11065 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
11067 \begin_inset Flex Code
11070 \begin_layout Plain Layout
11076 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
11078 もこの様式を取り扱えるようになります.
11079 \begin_inset Flex Code
11082 \begin_layout Plain Layout
11088 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
11089 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
11092 \begin_layout Description
11093 \begin_inset Flex Code
11096 \begin_layout Plain Layout
11105 \begin_inset Flex Code
11108 \begin_layout Plain Layout
11117 \begin_inset space \thinspace{}
11121 \begin_inset Flex Code
11124 \begin_layout Plain Layout
11131 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
11132 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
11133 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
11134 \begin_inset Flex Code
11137 \begin_layout Plain Layout
11143 を有効にすることが認められています.\SpecialChar LyX
11144 は,\SpecialChar LaTeX
11145 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
11148 \begin_layout Description
11149 \begin_inset Flex Code
11152 \begin_layout Plain Layout
11158 これらのタグは,XHTML出力で使用されます.第
11159 \begin_inset CommandInset ref
11161 reference "subsec:段落様式-XHTML"
11168 \begin_layout Description
11169 \begin_inset Flex Code
11172 \begin_layout Plain Layout
11178 [[FIXME]] (XML型書式でのみ使用されます.)
11181 \begin_layout Description
11182 \begin_inset Flex Code
11185 \begin_layout Plain Layout
11194 \begin_inset Flex Code
11197 \begin_layout Plain Layout
11206 \begin_inset space \thinspace{}
11210 \begin_inset Flex Code
11213 \begin_layout Plain Layout
11220 \begin_inset Flex Code
11223 \begin_layout Plain Layout
11229 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11231 \begin_inset Flex Code
11234 \begin_layout Plain Layout
11241 \begin_inset Flex Code
11244 \begin_layout Plain Layout
11251 \begin_inset Flex Code
11254 \begin_layout Plain Layout
11263 \begin_layout Description
11264 \begin_inset Flex Code
11267 \begin_layout Plain Layout
11276 \begin_inset Flex Code
11279 \begin_layout Plain Layout
11288 \begin_inset space \thinspace{}
11292 \begin_inset Flex Code
11295 \begin_layout Plain Layout
11302 \begin_inset Flex Code
11305 \begin_layout Plain Layout
11311 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11312 \begin_inset Flex Code
11315 \begin_layout Plain Layout
11322 \begin_inset Flex Code
11325 \begin_layout Plain Layout
11334 \begin_layout Description
11337 \begin_inset Flex Code
11340 \begin_layout Plain Layout
11348 Includes a comma-separated list of layouts after which this one should
11350 Only makes sense with regard to nestable layouts (such as environments).
11352 \begin_inset Quotes eld
11356 \begin_inset Flex Code
11359 \begin_layout Plain Layout
11368 \begin_inset Quotes erd
11373 \begin_inset Flex Code
11376 \begin_layout Plain Layout
11387 \begin_layout Description
11388 \begin_inset Flex Code
11391 \begin_layout Plain Layout
11398 \begin_inset Flex Code
11401 \begin_layout Plain Layout
11410 \begin_inset space \thinspace{}
11414 \begin_inset Flex Code
11417 \begin_layout Plain Layout
11423 ] これを1に設定すると,AddToTocが有効になり,段落は,その内容の要約を一覧表の項目に表示します.0に設定すると,ラベルが存在すれば,それのみが表示され
11427 \begin_layout Description
11428 \begin_inset Flex Code
11431 \begin_layout Plain Layout
11438 \begin_inset Flex Code
11441 \begin_layout Plain Layout
11447 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11448 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
11450 \begin_inset Flex Code
11453 \begin_layout Plain Layout
11464 \begin_layout Description
11465 \begin_inset Flex Code
11468 \begin_layout Plain Layout
11475 \begin_inset Flex Code
11478 \begin_layout Plain Layout
11484 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
11485 \begin_inset Flex Code
11488 \begin_layout Plain Layout
11494 だけ分離されます.しかし,その環境の項目全体は,さらにこの
11495 \begin_inset Flex Code
11498 \begin_layout Plain Layout
11511 \begin_layout Description
11512 \begin_inset Flex Code
11515 \begin_layout Plain Layout
11521 [[FIXME]] (XML型書式でのみ使用されます.)
11524 \begin_layout Description
11525 \begin_inset Flex Code
11528 \begin_layout Plain Layout
11537 \begin_inset Flex Code
11540 \begin_layout Plain Layout
11549 \begin_inset space \thinspace{}
11553 \begin_inset Flex Code
11556 \begin_layout Plain Layout
11562 ] 段落を空のままにすると,\SpecialChar LaTeX
11563 出力が空になってしまうので,通常,\SpecialChar LyX
11564 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
11565 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
11566 まないある種の改行として使用することもあります.
11569 \begin_layout Description
11570 \begin_inset Flex Code
11573 \begin_layout Plain Layout
11580 \begin_inset Flex Code
11583 \begin_layout Plain Layout
11589 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
11590 \begin_inset Flex Code
11593 \begin_layout Plain Layout
11600 \begin_inset Newline linebreak
11604 \begin_inset Flex Code
11607 \begin_layout Plain Layout
11608 Centered_Top_Environment
11616 \begin_layout Description
11617 \begin_inset Flex Code
11620 \begin_layout Plain Layout
11627 \begin_inset Flex Code
11630 \begin_layout Plain Layout
11636 ] 自動連番に使われるカウンタ名(詳しくは第
11637 \begin_inset CommandInset ref
11639 reference "subsec:カウンタ"
11646 節参照).カウンタがラベル中に表示されるようにするためには,
11647 \begin_inset Flex Code
11650 \begin_layout Plain Layout
11656 中で参照する必要があります.これは,少なくとも
11657 \begin_inset Flex Code
11660 \begin_layout Plain Layout
11667 \begin_inset Flex Code
11670 \begin_layout Plain Layout
11677 \begin_inset Flex Code
11680 \begin_layout Plain Layout
11687 \begin_inset Flex Code
11690 \begin_layout Plain Layout
11697 \begin_inset Newline newline
11701 \begin_inset Flex Code
11704 \begin_layout Plain Layout
11711 \begin_inset Flex Code
11714 \begin_layout Plain Layout
11720 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11721 \begin_inset Flex Code
11724 \begin_layout Plain Layout
11725 LabelCounter myenum
11730 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11731 におけるのと同様,実際に使われるカウンタは,
11732 \begin_inset Flex Code
11735 \begin_layout Plain Layout
11742 \begin_inset Flex Code
11745 \begin_layout Plain Layout
11752 \begin_inset Flex Code
11755 \begin_layout Plain Layout
11762 \begin_inset Flex Code
11765 \begin_layout Plain Layout
11771 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11772 \begin_inset Newline newline
11776 \begin_inset CommandInset ref
11778 reference "subsec:カウンタ"
11785 \begin_layout Description
11786 \begin_inset Flex Code
11789 \begin_layout Plain Layout
11796 \begin_inset CommandInset ref
11798 reference "subsec:フォント指定"
11805 \begin_layout Description
11806 \begin_inset Flex Code
11809 \begin_layout Plain Layout
11816 \begin_inset Flex Code
11819 \begin_layout Plain Layout
11825 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11828 \begin_layout Description
11829 \begin_inset Flex Code
11832 \begin_layout Plain Layout
11839 \begin_inset Flex Code
11842 \begin_layout Plain Layout
11848 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11851 \begin_layout Description
11852 \begin_inset Flex Code
11855 \begin_layout Plain Layout
11862 \begin_inset Flex Code
11865 \begin_layout Plain Layout
11872 \begin_inset Flex Code
11875 \begin_layout Plain Layout
11882 \begin_inset Flex Code
11885 \begin_layout Plain Layout
11892 \begin_inset CommandInset ref
11894 reference "subsec:カウンタ"
11898 に述べられている特別な整形コマンドを含めることができます.
11901 \begin_layout Description
11902 \begin_inset Flex Code
11905 \begin_layout Plain Layout
11906 LabelStringAppendix
11912 \begin_inset Flex Code
11915 \begin_layout Plain Layout
11922 \begin_inset Flex Code
11925 \begin_layout Plain Layout
11932 \begin_inset Flex Code
11935 \begin_layout Plain Layout
11942 \begin_inset Flex Code
11945 \begin_layout Plain Layout
11946 LabelStringAppendix
11951 をもリセットすることに注意してください.
11954 \begin_layout Description
11955 \begin_inset Flex Code
11958 \begin_layout Plain Layout
11964 [FIXME] (XML型書式でのみ使用されます.)
11967 \begin_layout Description
11968 \begin_inset Flex Code
11971 \begin_layout Plain Layout
11978 \begin_inset Flex Code
11981 \begin_layout Plain Layout
11986 , Manual, Static, Above,
11987 \begin_inset Newline newline
11990 Centered, Sensitive, Enumerate,
11991 \begin_inset Newline newline
11994 Itemize, Bibliography
12003 \begin_layout Description
12004 \begin_inset Flex Code
12007 \begin_layout Plain Layout
12013 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
12016 \begin_layout Description
12017 \begin_inset Flex Code
12020 \begin_layout Plain Layout
12027 \begin_inset Flex Code
12030 \begin_layout Plain Layout
12036 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
12037 \begin_inset Flex Code
12040 \begin_layout Plain Layout
12047 \begin_inset Flex Code
12050 \begin_layout Plain Layout
12057 \begin_inset Flex Code
12060 \begin_layout Plain Layout
12066 の段落中,最初の段落にのみ表示されます.
12069 \begin_layout Description
12070 \begin_inset Flex Code
12073 \begin_layout Plain Layout
12080 \begin_inset Flex Code
12083 \begin_layout Plain Layout
12090 \begin_inset Flex Code
12093 \begin_layout Plain Layout
12099 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
12102 \begin_layout Description
12103 \begin_inset Flex Code
12106 \begin_layout Plain Layout
12112 はキャプションラベルの「図」や「表」の特別な場合です.
12113 \begin_inset Flex Code
12116 \begin_layout Plain Layout
12122 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
12123 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
12124 \begin_inset Flex Code
12127 \begin_layout Plain Layout
12133 は「意味を成しません!」と表示されます.
12136 \begin_layout Description
12137 \begin_inset Flex Code
12140 \begin_layout Plain Layout
12148 The number type needs to be set in the
12155 \begin_inset CommandInset ref
12157 reference "subsec:カウンタ"
12164 \begin_layout Description
12165 \begin_inset Flex Code
12168 \begin_layout Plain Layout
12174 は,各階層でさまざまなブリットを生成します.
12176 The bullet types displayed can be set via
12177 \begin_inset Flex Noun
12180 \begin_layout Plain Layout
12183 Document\SpecialChar menuseparator
12184 Settings\SpecialChar menuseparator
12193 \begin_layout Description
12194 \begin_inset Flex Code
12197 \begin_layout Plain Layout
12204 \begin_inset Flex Code
12207 \begin_layout Plain Layout
12208 LatexType BibEnvironment
12217 \begin_layout Description
12218 \begin_inset Flex Code
12221 \begin_layout Plain Layout
12228 \begin_inset Flex Code
12231 \begin_layout Plain Layout
12237 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
12238 \begin_inset CommandInset ref
12240 reference "subsec:段落様式の国際化"
12247 \begin_layout Description
12248 \begin_inset Flex Code
12251 \begin_layout Plain Layout
12258 \begin_inset Flex Code
12261 \begin_layout Plain Layout
12267 ] 対応する\SpecialChar LaTeX
12268 の名称です.環境名かコマンド名を指します.
12271 \begin_layout Description
12272 \begin_inset Flex Code
12275 \begin_layout Plain Layout
12282 \begin_inset Flex Code
12285 \begin_layout Plain Layout
12292 \begin_inset Flex Code
12295 \begin_layout Plain Layout
12301 の非必須パラメータです.このパラメータは,\SpecialChar LyX
12302 内部から変更することはできません(変更可能なパラメータには
12303 \begin_inset Flex Code
12306 \begin_layout Plain Layout
12312 を使用してください).これは,全ての\SpecialChar LaTeX
12314 \begin_inset Flex Code
12317 \begin_layout Plain Layout
12326 \begin_layout Description
12327 \begin_inset Flex Code
12330 \begin_layout Plain Layout
12337 \begin_inset Flex Code
12340 \begin_layout Plain Layout
12345 , Command, Environment, Item_Environment,
12346 \begin_inset Newline newline
12349 List_Environment, Bib_Environment
12354 ] レイアウトがどのように\SpecialChar LaTeX
12359 \begin_layout Plain Layout
12360 これらのルールはSGMLクラスにも適用されるので,
12361 \begin_inset Flex Code
12364 \begin_layout Plain Layout
12370 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
12371 \begin_inset Flex Code
12374 \begin_layout Plain Layout
12389 \begin_layout Description
12390 \begin_inset Flex Code
12393 \begin_layout Plain Layout
12402 \begin_layout Description
12403 \begin_inset Flex Code
12406 \begin_layout Plain Layout
12413 \begin_inset Flex Code
12416 \begin_layout Plain Layout
12423 {\SpecialChar ldots
12432 \begin_layout Description
12433 \begin_inset Flex Code
12436 \begin_layout Plain Layout
12443 \begin_inset Flex Code
12446 \begin_layout Plain Layout
12453 }\SpecialChar ldots
12468 \begin_layout Description
12469 \begin_inset Flex Code
12472 \begin_layout Plain Layout
12479 \begin_inset Flex Code
12482 \begin_layout Plain Layout
12489 \begin_inset Flex Code
12492 \begin_layout Plain Layout
12500 がこの環境のすべての段落に付けられるところだけが異なっています.
12503 \begin_layout Description
12504 \begin_inset Flex Code
12507 \begin_layout Plain Layout
12514 \begin_inset Flex Code
12517 \begin_layout Plain Layout
12524 \begin_inset Flex Code
12527 \begin_layout Plain Layout
12533 が環境の引数として渡されるところだけが異なっています.
12534 \begin_inset Flex Code
12537 \begin_layout Plain Layout
12544 \begin_inset Flex MenuItem
12547 \begin_layout Plain Layout
12548 編集\SpecialChar menuseparator
12557 \begin_layout Description
12558 \begin_inset Flex Code
12561 \begin_layout Plain Layout
12568 \begin_inset Flex Code
12571 \begin_layout Plain Layout
12577 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
12578 \begin_inset Newline newline
12582 \begin_inset Flex Code
12585 \begin_layout Plain Layout
12588 begin{thebibliography}{99}
12594 \begin_inset Newline newline
12597 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
12600 \begin_layout Standard
12601 上記最後のいくつかをまとめると,\SpecialChar LaTeX
12602 出力は,\SpecialChar LaTeX
12606 \begin_layout LyX-Code
12609 LatexName[LatexParam]{\SpecialChar ldots
12613 \begin_layout Standard
12617 \begin_layout LyX-Code
12620 begin{LatexName}[LatexParam] \SpecialChar ldots
12626 \begin_layout Standard
12631 \begin_layout Description
12632 \begin_inset Flex Code
12635 \begin_layout Plain Layout
12642 \begin_inset Flex Code
12645 \begin_layout Plain Layout
12651 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12652 \begin_inset Flex Code
12655 \begin_layout Plain Layout
12664 \begin_layout Description
12665 \begin_inset Flex Code
12668 \begin_layout Plain Layout
12675 \begin_inset Flex Code
12678 \begin_layout Plain Layout
12684 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12685 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12688 をかけて加えられます.このパラメータは,
12689 \begin_inset Flex Code
12692 \begin_layout Plain Layout
12699 \begin_inset Flex Code
12702 \begin_layout Plain Layout
12709 \begin_inset Flex Code
12712 \begin_layout Plain Layout
12718 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12719 \begin_inset Newline newline
12723 \begin_inset Flex Code
12726 \begin_layout Plain Layout
12732 」と指定すると,段落を通常フォントの「
12733 \begin_inset Flex Code
12736 \begin_layout Plain Layout
12742 」の幅だけ行頭下げを行います.文字列の前に「
12743 \begin_inset Flex Code
12746 \begin_layout Plain Layout
12752 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12755 \begin_layout Description
12756 \begin_inset Flex Code
12759 \begin_layout Plain Layout
12766 \begin_inset Flex Code
12769 \begin_layout Plain Layout
12774 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12780 \begin_inset Newline newline
12787 \begin_layout Description
12788 \begin_inset Flex Code
12791 \begin_layout Plain Layout
12800 \begin_layout Description
12801 \begin_inset Flex Code
12804 \begin_layout Plain Layout
12811 \begin_inset Flex MenuItem
12814 \begin_layout Plain Layout
12815 編集\SpecialChar menuseparator
12821 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12824 \begin_layout Description
12825 \begin_inset Flex Code
12828 \begin_layout Plain Layout
12834 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12835 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12838 \begin_layout Description
12839 \begin_inset Flex Code
12842 \begin_layout Plain Layout
12848 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12851 \begin_layout Description
12852 \begin_inset Flex Code
12855 \begin_layout Plain Layout
12861 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12865 \begin_layout Description
12866 \begin_inset Flex Code
12869 \begin_layout Plain Layout
12876 \begin_inset Flex Code
12879 \begin_layout Plain Layout
12888 \begin_inset space \thinspace{}
12892 \begin_inset Flex Code
12895 \begin_layout Plain Layout
12901 ] このレイアウト中の脆弱なコマンドが
12902 \begin_inset Flex Code
12905 \begin_layout Plain Layout
12913 されるべきか否か(註:これはこのコマンド自体が
12914 \begin_inset Flex Code
12917 \begin_layout Plain Layout
12932 \begin_layout Description
12933 \begin_inset Flex Code
12936 \begin_layout Plain Layout
12943 \begin_inset Flex Code
12946 \begin_layout Plain Layout
12953 \begin_inset space \thinspace{}
12957 \begin_inset Flex Code
12960 \begin_layout Plain Layout
12968 ] 新規行を\SpecialChar LaTeX
12970 \begin_inset Flex Code
12973 \begin_layout Plain Layout
12983 )に変換するか否か.\SpecialChar LyX
12984 中で\SpecialChar LaTeX
12985 編集をやりやすくするために,変換は無効にすることができます.
12988 \begin_layout Description
12989 \begin_inset Flex Code
12992 \begin_layout Plain Layout
12999 \begin_inset Flex Code
13002 \begin_layout Plain Layout
13011 \begin_inset space \thinspace{}
13015 \begin_inset Flex Code
13018 \begin_layout Plain Layout
13025 \begin_inset Flex Code
13028 \begin_layout Plain Layout
13035 \begin_inset Flex Code
13038 \begin_layout Plain Layout
13044 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
13047 \begin_layout Description
13048 \begin_inset Flex Code
13051 \begin_layout Plain Layout
13058 \begin_inset Flex Code
13061 \begin_layout Plain Layout
13067 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
13070 \begin_layout Description
13071 \begin_inset Flex Code
13074 \begin_layout Plain Layout
13081 \begin_inset Flex Code
13084 \begin_layout Plain Layout
13091 \begin_inset space \thinspace{}
13095 \begin_inset Flex Code
13098 \begin_layout Plain Layout
13104 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
13105 \begin_inset Flex Code
13108 \begin_layout Plain Layout
13114 が一度だけ出力される効果があります.既定では,
13115 \begin_inset Flex Code
13118 \begin_layout Plain Layout
13125 \begin_inset Flex Code
13128 \begin_layout Plain Layout
13135 \begin_inset Flex Code
13138 \begin_layout Plain Layout
13144 については有効であり,他の型すべてについて無効になっています.
13147 \begin_layout Description
13148 \begin_inset Flex Code
13151 \begin_layout Plain Layout
13158 \begin_inset Flex Code
13161 \begin_layout Plain Layout
13170 \begin_inset space \thinspace{}
13174 \begin_inset Flex Code
13177 \begin_layout Plain Layout
13183 ] \SpecialChar LaTeX
13184 出力中で,段落を空行ではなく,改行で区切るよう指定します.
13185 \begin_inset Flex Code
13188 \begin_layout Plain Layout
13194 と併用すれば,(\SpecialChar TeX
13195 コードを使用したときのように)テキストエディタをエミュレートすることができます.
13198 \begin_layout Description
13199 \begin_inset Flex Code
13202 \begin_layout Plain Layout
13209 \begin_inset Flex Code
13212 \begin_layout Plain Layout
13218 ] 段落の最初の行の行頭下げ.レイアウトによっては
13219 \begin_inset Flex Code
13222 \begin_layout Plain Layout
13228 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
13229 \begin_inset Flex Code
13232 \begin_layout Plain Layout
13238 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
13239 \begin_inset Flex Code
13242 \begin_layout Plain Layout
13249 \begin_inset Flex Code
13252 \begin_layout Plain Layout
13258 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
13261 \begin_layout Description
13262 \begin_inset Flex Code
13265 \begin_layout Plain Layout
13272 \begin_inset Flex Code
13275 \begin_layout Plain Layout
13281 ] このレイアウトの2段落間の垂直余白.
13284 \begin_layout Description
13285 \begin_inset Flex Code
13288 \begin_layout Plain Layout
13295 \begin_inset Flex Code
13298 \begin_layout Plain Layout
13305 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
13306 択した際には,\SpecialChar LaTeX
13308 \begin_inset Flex Code
13311 \begin_layout Plain Layout
13318 \begin_inset Flex Code
13321 \begin_layout Plain Layout
13327 引数分だけ引き離されます.垂直余白は,
13328 \begin_inset Flex Code
13331 \begin_layout Plain Layout
13337 を標準フォントでの1行の高さとすると,
13338 \begin_inset Flex Code
13341 \begin_layout Plain Layout
13348 \begin_inset Formula $\times$
13352 \begin_inset Flex Code
13355 \begin_layout Plain Layout
13361 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
13364 \begin_layout Description
13365 \begin_inset Flex Code
13368 \begin_layout Plain Layout
13377 \begin_inset Flex Code
13380 \begin_layout Plain Layout
13389 \begin_inset space \thinspace{}
13393 \begin_inset Flex Code
13396 \begin_layout Plain Layout
13402 ] この段落の内容が,\SpecialChar LaTeX
13403 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
13406 \begin_layout Description
13407 \begin_inset Flex Code
13410 \begin_layout Plain Layout
13417 \begin_inset Flex Code
13420 \begin_layout Plain Layout
13431 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
13434 \begin_layout Description
13435 \begin_inset Flex Code
13438 \begin_layout Plain Layout
13444 この様式が使用されたときに,\SpecialChar LaTeX
13445 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
13446 \begin_inset Flex Code
13449 \begin_layout Plain Layout
13458 \begin_layout Description
13459 \begin_inset Flex Code
13462 \begin_layout Plain Layout
13469 \begin_inset Flex Code
13472 \begin_layout Plain Layout
13478 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
13481 \begin_layout Description
13482 \begin_inset Flex Code
13485 \begin_layout Plain Layout
13492 \begin_inset Flex Code
13495 \begin_layout Plain Layout
13502 \begin_inset Flex Code
13505 \begin_layout Plain Layout
13511 を必要とするかどうか(機能詳細については,第
13512 \begin_inset CommandInset ref
13514 reference "chap:関数一覧"
13518 節参照).特定のオプションをとるパッケージを要求する場合,
13519 \begin_inset Flex Code
13522 \begin_layout Plain Layout
13528 を汎用テキストクラスパラメータとして追加して使うことができます(
13529 \begin_inset CommandInset ref
13531 reference "subsec:汎用テキストクラスパラメータ"
13538 \begin_layout Description
13539 \begin_inset Flex Code
13542 \begin_layout Plain Layout
13549 \begin_inset Flex Code
13552 \begin_layout Plain Layout
13561 \begin_inset Flex Code
13564 \begin_layout Plain Layout
13571 \begin_inset Flex Code
13574 \begin_layout Plain Layout
13580 タグで定義された)この様式の\SpecialChar LaTeX
13582 \begin_inset Flex Code
13585 \begin_layout Plain Layout
13591 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
13594 \begin_layout Description
13595 \begin_inset Flex Code
13598 \begin_layout Plain Layout
13605 \begin_inset Flex Code
13608 \begin_layout Plain Layout
13617 \begin_inset Flex Code
13620 \begin_layout Plain Layout
13626 ] レイアウトの新しい一群で通常リセットされるカウンタを元に戻します.これは,
13627 \begin_inset Flex Code
13630 \begin_layout Plain Layout
13637 \begin_inset Flex Code
13640 \begin_layout Plain Layout
13649 \begin_layout Description
13650 \begin_inset Flex Code
13653 \begin_layout Plain Layout
13660 \begin_inset Flex Code
13663 \begin_layout Plain Layout
13669 ] 様式の内容の最後に置かれる文字列.出力中の改行は
13670 \begin_inset Flex Code
13673 \begin_layout Plain Layout
13682 \begin_layout Description
13683 \begin_inset Flex Code
13686 \begin_layout Plain Layout
13693 \begin_inset Flex Code
13696 \begin_layout Plain Layout
13703 \begin_inset Flex Code
13706 \begin_layout Plain Layout
13715 \begin_layout Description
13716 \begin_inset Flex Code
13719 \begin_layout Plain Layout
13726 \begin_inset Flex Code
13729 \begin_layout Plain Layout
13738 \begin_inset Flex Code
13741 \begin_layout Plain Layout
13748 \begin_inset Flex Code
13751 \begin_layout Plain Layout
13758 \begin_inset Flex Code
13761 \begin_layout Plain Layout
13763 \begin_inset space ~
13779 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13780 \begin_inset Flex Code
13783 \begin_layout Plain Layout
13790 \begin_inset Flex Code
13793 \begin_layout Plain Layout
13800 \begin_inset Flex Code
13803 \begin_layout Plain Layout
13809 は,それぞれ乗数1・1.25・1.667に対応します.引数
13810 \begin_inset Flex Code
13813 \begin_layout Plain Layout
13819 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13820 \begin_inset Flex Code
13823 \begin_layout Plain Layout
13829 は,\SpecialChar LaTeX
13831 \begin_inset Flex Code
13834 \begin_layout Plain Layout
13840 パッケージを使用した,限定的な\SpecialChar LaTeX
13841 コードを生成することを意味することにご注意ください.
13844 \begin_layout Description
13845 \begin_inset Flex Code
13848 \begin_layout Plain Layout
13855 \begin_inset Flex Code
13858 \begin_layout Plain Layout
13865 \begin_inset space \thinspace{}
13869 \begin_inset Flex Code
13872 \begin_layout Plain Layout
13878 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13881 \begin_layout Description
13882 \begin_inset Flex Code
13885 \begin_layout Plain Layout
13892 \begin_inset Flex Code
13895 \begin_layout Plain Layout
13904 \begin_inset Flex Code
13907 \begin_layout Plain Layout
13913 ] 新しいレイアウト群を開始する際に,このカウンタの親カウンタを進めるか否か.これは,現在のところ,
13914 \begin_inset Flex Code
13917 \begin_layout Plain Layout
13924 \begin_inset Flex Code
13927 \begin_layout Plain Layout
13936 \begin_layout Description
13937 \begin_inset Flex Code
13940 \begin_layout Plain Layout
13947 \begin_inset CommandInset ref
13949 reference "subsec:フォント指定"
13956 \begin_layout Description
13957 \begin_inset Flex Code
13960 \begin_layout Plain Layout
13967 \begin_inset Flex Code
13970 \begin_layout Plain Layout
13976 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13979 \begin_layout Description
13980 \begin_inset Flex Code
13983 \begin_layout Plain Layout
13992 \begin_inset Flex Code
13995 \begin_layout Plain Layout
14004 \begin_inset Flex Code
14007 \begin_layout Plain Layout
14014 \begin_inset Flex Code
14017 \begin_layout Plain Layout
14023 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
14024 \begin_inset Flex Code
14027 \begin_layout Plain Layout
14033 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
14034 \begin_inset Flex Code
14037 \begin_layout Plain Layout
14043 は,文書設定にかかわらず変更することができ,
14044 \begin_inset Flex Code
14047 \begin_layout Plain Layout
14053 は,どのような場合でも変更することができません.
14056 \begin_layout Description
14057 \begin_inset Flex Code
14060 \begin_layout Plain Layout
14067 \begin_inset Flex Code
14070 \begin_layout Plain Layout
14076 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
14080 \begin_layout Subsection
14082 \begin_inset CommandInset label
14084 name "subsec:段落様式の国際化"
14091 \begin_layout Standard
14093 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
14094 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
14098 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
14101 \begin_layout Standard
14103 \begin_inset Flex MenuItem
14106 \begin_layout Plain Layout
14112 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
14113 \begin_inset Flex MenuItem
14116 \begin_layout Plain Layout
14123 \begin_inset Flex MenuItem
14126 \begin_layout Plain Layout
14132 を使用することができます.以下の抜粋(
14133 \begin_inset Flex MenuItem
14136 \begin_layout Plain Layout
14142 より)は,これがどう動作するかを示すものです.
14145 \begin_layout LyX-Code
14150 \begin_layout LyX-Code
14153 theoremstyle{remark}
14156 \begin_layout LyX-Code
14159 newtheorem{claim}[thm]{
14166 \begin_layout LyX-Code
14170 \begin_layout LyX-Code
14174 \begin_layout LyX-Code
14179 claimname}{_(Claim)}
14182 \begin_layout LyX-Code
14186 \begin_layout LyX-Code
14190 \begin_layout LyX-Code
14199 claimname}{_(Claim)}}
14202 \begin_layout LyX-Code
14207 \begin_layout Standard
14209 \begin_inset Flex MenuItem
14212 \begin_layout Plain Layout
14219 \begin_inset Flex MenuItem
14222 \begin_layout Plain Layout
14228 タグ内には,有効な\SpecialChar LaTeX
14229 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
14230 は,\SpecialChar LaTeX
14232 \begin_inset Flex Code
14235 \begin_layout Plain Layout
14244 \begin_inset Flex Code
14247 \begin_layout Plain Layout
14258 \begin_layout Standard
14259 \begin_inset Flex Code
14262 \begin_layout Plain Layout
14268 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
14269 \begin_inset Flex Code
14272 \begin_layout Plain Layout
14278 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
14279 \begin_inset Flex Code
14282 \begin_layout Plain Layout
14288 が使用されていることです.これは,\SpecialChar LyX
14289 が\SpecialChar LaTeX
14290 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
14293 \begin_layout Standard
14294 \begin_inset Flex Code
14297 \begin_layout Plain Layout
14304 \begin_inset Flex Code
14307 \begin_layout Plain Layout
14313 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
14315 \begin_inset Flex Code
14318 \begin_layout Plain Layout
14324 の引数は,その当該言語への翻訳で置き換えられ,
14325 \begin_inset Flex Code
14328 \begin_layout Plain Layout
14334 は言語名(babelパッケージで使用されるもの)で置き換えられます.
14337 \begin_layout Standard
14338 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
14341 \begin_layout LyX-Code
14350 claimname}{Affirmation}}
14351 \begin_inset Newline newline
14362 claimname}{Behauptung}}
14363 \begin_inset Newline newline
14370 claimname}{Behauptung}
14373 \begin_layout Standard
14374 それから,\SpecialChar LaTeX
14376 \begin_inset Flex Code
14379 \begin_layout Plain Layout
14385 は協力して,出力に正しい文字列を生成します.
14388 \begin_layout Standard
14389 ここで注意しておくべき一つの重要な点は,翻訳は,
14390 \begin_inset Flex Code
14393 \begin_layout Plain Layout
14399 ファイルを通じて,\SpecialChar LyX
14400 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
14401 \begin_inset Flex Code
14404 \begin_layout Plain Layout
14410 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
14411 の国際化ルーチンでは取り扱われないので,
14412 \begin_inset Flex MenuItem
14415 \begin_layout Plain Layout
14422 \begin_inset Flex MenuItem
14425 \begin_layout Plain Layout
14431 は,事実上,\SpecialChar LyX
14432 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
14434 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
14435 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
14436 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
14439 \begin_layout Subsection
14441 \begin_inset CommandInset label
14450 \begin_layout Standard
14452 第1.3.0版以来,テキストクラス自体の中でフロート(
14453 \begin_inset Flex MenuItem
14456 \begin_layout Plain Layout
14463 \begin_inset Flex MenuItem
14466 \begin_layout Plain Layout
14472 ・\SpecialChar ldots
14473 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
14474 \begin_inset Flex Code
14477 \begin_layout Plain Layout
14483 ファイルに含まれているので,作業中のレイアウトファイルに
14486 \begin_layout LyX-Code
14487 Input stdfloats.inc
14490 \begin_layout Standard
14491 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
14492 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
14496 \begin_layout Description
14497 \begin_inset Flex Code
14500 \begin_layout Plain Layout
14507 \begin_inset Flex Code
14510 \begin_layout Plain Layout
14516 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
14521 \begin_inset Quotes eld
14524 here if possible:可能ならば現在位置に
14525 \begin_inset Quotes erd
14533 \begin_inset Quotes eld
14537 \begin_inset Quotes erd
14545 \begin_inset Quotes eld
14548 bottom of page:ページ下部
14549 \begin_inset Quotes erd
14557 \begin_inset Quotes eld
14560 page of floats:フロートを独立したページに
14561 \begin_inset Quotes erd
14569 \begin_inset Quotes eld
14572 here definitely:何としても現在位置に置く
14573 \begin_inset Quotes erd
14581 \begin_inset Quotes eld
14584 ignore LaTeX rules:LaTeXの規則を無視する
14585 \begin_inset Quotes erd
14588 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
14595 \begin_layout Description
14596 \begin_inset Flex Code
14599 \begin_layout Plain Layout
14606 \begin_inset Flex Code
14609 \begin_layout Plain Layout
14616 \begin_inset space \thinspace{}
14622 \begin_inset Flex Code
14625 \begin_layout Plain Layout
14633 ] フロートを,\SpecialChar LaTeX
14638 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
14639 \begin_inset Flex Code
14642 \begin_layout Plain Layout
14651 \begin_layout Description
14652 \begin_inset Flex Code
14655 \begin_layout Plain Layout
14662 \begin_inset Flex Code
14665 \begin_layout Plain Layout
14672 \begin_inset space \thinspace{}
14678 \begin_inset Flex Code
14681 \begin_layout Plain Layout
14689 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
14690 \begin_inset Flex Code
14693 \begin_layout Plain Layout
14702 \begin_layout Description
14703 \begin_inset Flex Code
14706 \begin_layout Plain Layout
14713 \begin_inset Flex Code
14716 \begin_layout Plain Layout
14723 \begin_inset Quotes erd
14727 \begin_inset Quotes erd
14730 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14731 がキャプションを書き込むファイルです.
14734 \begin_layout Description
14735 \begin_inset Flex Code
14738 \begin_layout Plain Layout
14745 \begin_inset Flex Code
14748 \begin_layout Plain Layout
14755 \begin_inset Quotes erd
14759 \begin_inset Quotes erd
14762 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14765 \begin_layout Description
14766 \begin_inset Flex Code
14769 \begin_layout Plain Layout
14775 これらは,XHTML出力で使用されます.
14776 \begin_inset CommandInset ref
14778 reference "sec:XHTML出力のタグ"
14785 \begin_layout Description
14786 \begin_inset Flex Code
14789 \begin_layout Plain Layout
14796 \begin_inset Flex Code
14799 \begin_layout Plain Layout
14808 \begin_inset space \thinspace{}
14812 \begin_inset Flex Code
14815 \begin_layout Plain Layout
14821 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14823 \begin_inset Flex Code
14826 \begin_layout Plain Layout
14832 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14833 \begin_inset Flex Code
14836 \begin_layout Plain Layout
14843 \begin_inset Flex Code
14846 \begin_layout Plain Layout
14852 を使用します.\SpecialChar LaTeX
14853 ドキュメントクラス中に既に定義されているときには,
14854 \begin_inset Flex Code
14857 \begin_layout Plain Layout
14866 \begin_layout Description
14867 \begin_inset Flex Code
14870 \begin_layout Plain Layout
14877 \begin_inset Flex Code
14880 \begin_layout Plain Layout
14887 \begin_inset Quotes erd
14891 \begin_inset Quotes erd
14894 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14897 \begin_inset Flex Code
14900 \begin_layout Plain Layout
14906 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14911 \begin_inset Flex Code
14914 \begin_layout Plain Layout
14920 が真の時は,標準的な方法が存在するので,これは無視されます.
14923 \begin_layout Description
14924 \begin_inset Flex Code
14927 \begin_layout Plain Layout
14934 \begin_inset Flex Code
14937 \begin_layout Plain Layout
14944 \begin_inset Quotes erd
14948 \begin_inset Quotes erd
14951 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14952 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14954 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14957 \begin_layout Description
14958 \begin_inset Flex Code
14961 \begin_layout Plain Layout
14968 \begin_inset Flex Code
14971 \begin_layout Plain Layout
14978 \begin_inset Quotes erd
14982 \begin_inset Quotes erd
14985 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14986 \begin_inset Flex Code
14989 \begin_layout Plain Layout
14996 \begin_inset Flex Code
14999 \begin_layout Plain Layout
15005 」に指定されていれば,フロートは章ごとに番号が振り直されます.
15008 \begin_layout Description
15009 \begin_inset Flex Code
15012 \begin_layout Plain Layout
15019 \begin_inset Flex Code
15022 \begin_layout Plain Layout
15029 \begin_inset Quotes erd
15033 \begin_inset Quotes erd
15036 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
15038 \begin_inset Flex Code
15041 \begin_layout Plain Layout
15048 \begin_inset Flex Code
15051 \begin_layout Plain Layout
15058 \begin_inset Flex Code
15061 \begin_layout Plain Layout
15068 \begin_inset Flex Code
15071 \begin_layout Plain Layout
15081 \begin_layout Plain Layout
15083 同様,文字列中でのこれらの文字の順序は関係ありません.
15089 \begin_inset Flex Code
15092 \begin_layout Plain Layout
15098 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
15099 \begin_inset Flex Code
15102 \begin_layout Plain Layout
15108 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
15110 \begin_inset Flex Code
15113 \begin_layout Plain Layout
15122 \begin_layout Description
15123 \begin_inset Flex Code
15126 \begin_layout Plain Layout
15133 \begin_inset Flex Code
15136 \begin_layout Plain Layout
15142 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
15143 \begin_inset Flex Code
15146 \begin_layout Plain Layout
15152 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
15155 \begin_layout Description
15156 \begin_inset Flex Code
15159 \begin_layout Plain Layout
15166 \begin_inset Flex Code
15169 \begin_layout Plain Layout
15176 \begin_inset Quotes erd
15180 \begin_inset Quotes erd
15184 \begin_inset Flex Code
15187 \begin_layout Plain Layout
15195 を使用してフロートを定義する際に使用される様式.
15198 \begin_layout Description
15199 \begin_inset Flex Code
15202 \begin_layout Plain Layout
15209 \begin_inset Flex Code
15212 \begin_layout Plain Layout
15219 \begin_inset Quotes erd
15223 \begin_inset Quotes erd
15226 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
15227 \begin_inset Flex Code
15230 \begin_layout Plain Layout
15239 \begin_inset Flex Code
15242 \begin_layout Plain Layout
15251 \begin_inset Flex Code
15254 \begin_layout Plain Layout
15265 \begin_layout Description
15266 \begin_inset Flex Code
15269 \begin_layout Plain Layout
15276 \begin_inset Flex Code
15279 \begin_layout Plain Layout
15286 \begin_inset space \thinspace{}
15290 \begin_inset Flex Code
15293 \begin_layout Plain Layout
15301 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
15303 \begin_inset Flex Code
15306 \begin_layout Plain Layout
15312 が提供しているものを使用して定義されているのか,\SpecialChar LyX
15313 自身がオン・ザ・フライで定義しているのかを示します.
15316 \begin_layout Standard
15317 \begin_inset Flex Code
15320 \begin_layout Plain Layout
15333 \begin_inset Flex Code
15336 \begin_layout Plain Layout
15347 \begin_layout Subsection
15349 \begin_inset CommandInset label
15351 name "subsec:任意設定差込枠"
15358 \begin_layout Standard
15362 \begin_layout Itemize
15364 \begin_inset Flex Code
15367 \begin_layout Plain Layout
15374 \begin_inset Flex Code
15377 \begin_layout Plain Layout
15386 \begin_inset Flex Code
15389 \begin_layout Plain Layout
15397 などの\SpecialChar LaTeX
15398 コマンドに対応した意味論的マークアップを定義するものです.
15401 \begin_layout Itemize
15403 \begin_inset Flex Code
15406 \begin_layout Plain Layout
15412 ).これは,\SpecialChar TeX
15413 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
15414 \begin_inset Flex Code
15417 \begin_layout Plain Layout
15426 \begin_layout Itemize
15428 \begin_inset Flex Code
15431 \begin_layout Plain Layout
15437 ).DocBookクラスで使用するものです.
15440 \begin_layout Standard
15442 \begin_inset Flex Code
15445 \begin_layout Plain Layout
15454 \begin_layout Standard
15455 \begin_inset Flex Code
15458 \begin_layout Plain Layout
15464 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
15465 \begin_inset Flex Code
15468 \begin_layout Plain Layout
15474 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
15475 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15479 \begin_layout Standard
15480 \begin_inset Flex Code
15483 \begin_layout Plain Layout
15489 定義は以下の形の行では始まらなくてはなりません.
15492 \begin_layout LyX-Code
15496 \begin_layout Standard
15498 \begin_inset Flex Code
15501 \begin_layout Plain Layout
15507 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
15510 \begin_layout Enumerate
15511 既存の差込枠のレイアウトを変更する場合.この場合,
15512 \begin_inset Flex Code
15515 \begin_layout Plain Layout
15522 \begin_inset Flex Code
15525 \begin_layout Plain Layout
15532 \begin_inset Flex Code
15535 \begin_layout Plain Layout
15542 \begin_inset Flex Code
15545 \begin_layout Plain Layout
15552 \begin_inset Flex Code
15555 \begin_layout Plain Layout
15562 \begin_inset Flex Code
15565 \begin_layout Plain Layout
15572 \begin_inset Flex Code
15575 \begin_layout Plain Layout
15582 \begin_inset Flex Code
15585 \begin_layout Plain Layout
15592 \begin_inset Flex Code
15595 \begin_layout Plain Layout
15602 \begin_inset Flex Code
15605 \begin_layout Plain Layout
15612 \begin_inset Flex Code
15615 \begin_layout Plain Layout
15622 \begin_inset Flex Code
15625 \begin_layout Plain Layout
15632 \begin_inset Flex Code
15635 \begin_layout Plain Layout
15642 \begin_inset Flex Code
15645 \begin_layout Plain Layout
15652 \begin_inset Flex Code
15655 \begin_layout Plain Layout
15662 \begin_inset Flex Code
15665 \begin_layout Plain Layout
15672 \begin_inset Flex Code
15675 \begin_layout Plain Layout
15682 \begin_inset Flex Code
15685 \begin_layout Plain Layout
15692 \begin_inset Flex Code
15695 \begin_layout Plain Layout
15702 \begin_inset Flex Code
15705 \begin_layout Plain Layout
15712 \begin_inset Flex Code
15715 \begin_layout Plain Layout
15724 \begin_layout Enumerate
15725 自由差込枠のレイアウトを定義する場合.この場合,
15726 \begin_inset Flex Code
15729 \begin_layout Plain Layout
15736 \begin_inset Flex Code
15739 \begin_layout Plain Layout
15746 \begin_inset Flex Code
15749 \begin_layout Plain Layout
15755 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15756 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15757 \begin_inset Flex Code
15760 \begin_layout Plain Layout
15766 項目が含まれていなくてはならないことに注意してください.
15769 \begin_layout Enumerate
15770 ユーザー定義派生枝を定義する場合.この場合,
15771 \begin_inset Flex Code
15774 \begin_layout Plain Layout
15781 \begin_inset Flex Code
15784 \begin_layout Plain Layout
15791 \begin_inset Flex Code
15794 \begin_layout Plain Layout
15800 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15801 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15802 がくるむことができるようにすることです.
15805 \begin_layout Enumerate
15806 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15807 \begin_inset Flex Code
15810 \begin_layout Plain Layout
15817 \begin_inset Flex Code
15820 \begin_layout Plain Layout
15827 \begin_inset Flex Code
15830 \begin_layout Plain Layout
15836 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15837 \begin_inset Flex Code
15840 \begin_layout Plain Layout
15846 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15847 \begin_inset Flex Code
15850 \begin_layout Plain Layout
15857 \begin_inset Flex Code
15860 \begin_layout Plain Layout
15871 \begin_inset Flex Code
15874 \begin_layout Plain Layout
15875 Caption:\SpecialChar allowbreak
15884 \begin_layout Standard
15885 \begin_inset Flex Code
15888 \begin_layout Plain Layout
15894 定義には以下の項目を入れることができます.
15897 \begin_layout Description
15898 \begin_inset Flex Code
15901 \begin_layout Plain Layout
15908 \begin_inset Flex Code
15911 \begin_layout Plain Layout
15917 =""] この差込枠は,この型の一覧表に表示されます.空の文字列を入れると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドも参
15918 照してください.これは,自由差込枠にのみ実装されています.既定値:無効.
15921 \begin_layout Description
15922 \begin_inset Flex Code
15925 \begin_layout Plain Layout
15932 \begin_inset Flex Code
15935 \begin_layout Plain Layout
15941 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15942 \begin_inset Flex Code
15945 \begin_layout Plain Layout
15952 \begin_inset CommandInset ref
15954 reference "subsec:段落様式"
15961 \begin_layout Description
15962 \begin_inset Flex Code
15965 \begin_layout Plain Layout
15971 言語コマンドを変更するプリアンブル.第
15972 \begin_inset CommandInset ref
15974 reference "subsec:段落様式の国際化"
15981 \begin_layout Description
15982 \begin_inset Flex Code
15985 \begin_layout Plain Layout
15992 \begin_inset Flex Code
15995 \begin_layout Plain Layout
16001 ] 差込枠の背景色.使用できる色名一覧は第
16002 \begin_inset CommandInset ref
16004 reference "chap:色名"
16011 \begin_layout Description
16012 \begin_inset Flex Code
16015 \begin_layout Plain Layout
16022 \begin_inset Flex Code
16025 \begin_layout Plain Layout
16034 \begin_inset space \thinspace{}
16038 \begin_inset Flex Code
16041 \begin_layout Plain Layout
16047 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
16050 \begin_layout Description
16051 \begin_inset Flex Code
16054 \begin_layout Plain Layout
16061 \begin_inset CommandInset ref
16063 reference "subsec:段落様式"
16067 節参照のこと.完全な型を指定する必要があることに注意してください.例:
16068 \begin_inset Flex Code
16071 \begin_layout Plain Layout
16072 CopyStyle Flex:<名称>
16080 \begin_layout Description
16081 \begin_inset Flex Code
16084 \begin_layout Plain Layout
16091 \begin_inset Flex Code
16094 \begin_layout Plain Layout
16103 \begin_inset space \thinspace{}
16107 \begin_inset Flex Code
16110 \begin_layout Plain Layout
16116 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
16119 \begin_layout Description
16120 \begin_inset Flex Code
16123 \begin_layout Plain Layout
16129 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
16130 \begin_inset Flex Code
16133 \begin_layout Plain Layout
16140 \begin_inset Flex Code
16143 \begin_layout Plain Layout
16150 \begin_inset Flex Code
16153 \begin_layout Plain Layout
16159 のいずれかを指定することができます.脚註は通常
16160 \begin_inset Flex Code
16163 \begin_layout Plain Layout
16169 を使用し,\SpecialChar TeX
16171 \begin_inset Flex Code
16174 \begin_layout Plain Layout
16181 \begin_inset Flex Code
16184 \begin_layout Plain Layout
16193 \begin_layout Description
16194 \begin_inset Flex Code
16197 \begin_layout Plain Layout
16204 \begin_inset Flex Code
16207 \begin_layout Plain Layout
16214 \begin_inset space \thinspace{}
16218 \begin_inset Flex Code
16221 \begin_layout Plain Layout
16230 \begin_inset Flex Code
16233 \begin_layout Plain Layout
16240 \begin_inset Flex Code
16243 \begin_layout Plain Layout
16249 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
16251 \begin_inset Flex Code
16254 \begin_layout Plain Layout
16263 \begin_inset Flex Code
16266 \begin_layout Plain Layout
16274 タグの後の空白(改行文字を含む)を無視するものと仮定します.
16277 \begin_layout Description
16278 \begin_inset Flex Code
16281 \begin_layout Plain Layout
16288 \begin_inset Flex Code
16291 \begin_layout Plain Layout
16300 \begin_layout Description
16301 \begin_inset Flex Code
16304 \begin_layout Plain Layout
16315 \begin_inset CommandInset ref
16317 reference "subsec:フォント指定"
16321 節を参照.このフォントを定義すると自動的に
16322 \begin_inset Flex Code
16325 \begin_layout Plain Layout
16331 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
16332 \begin_inset Flex Code
16335 \begin_layout Plain Layout
16341 を定義しなくてはならないことに注意してください.
16344 \begin_layout Description
16345 \begin_inset Flex Code
16348 \begin_layout Plain Layout
16349 FixedWidthPreambleEncoding
16355 \begin_inset Flex Code
16358 \begin_layout Plain Layout
16367 \begin_inset space \thinspace{}
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
16400 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
16408 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
16409 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
16410 やLua\SpecialChar TeX
16411 のようなUnicodeを完全に解する\SpecialChar LaTeX
16416 \begin_layout Description
16417 \begin_inset Flex Code
16420 \begin_layout Plain Layout
16421 ForceLocalFontSwitch
16427 \begin_inset Flex Code
16430 \begin_layout Plain Layout
16439 \begin_inset space \thinspace{}
16443 \begin_inset Flex Code
16446 \begin_layout Plain Layout
16452 ] babel使用時に,常にローカルフォント切替(
16453 \begin_inset Flex Code
16456 \begin_layout Plain Layout
16465 \begin_inset Flex Code
16468 \begin_layout Plain Layout
16479 \begin_layout Description
16480 \begin_inset Flex Code
16483 \begin_layout Plain Layout
16490 \begin_inset Flex Code
16493 \begin_layout Plain Layout
16502 \begin_inset space \thinspace{}
16506 \begin_inset Flex Code
16509 \begin_layout Plain Layout
16515 ] たとえば\SpecialChar TeX
16516 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
16519 \begin_layout Description
16520 \begin_inset Flex Code
16523 \begin_layout Plain Layout
16530 \begin_inset Flex Code
16533 \begin_layout Plain Layout
16542 \begin_inset space \thinspace{}
16546 \begin_inset Flex Code
16549 \begin_layout Plain Layout
16555 ] \SpecialChar LaTeX
16556 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
16559 \begin_layout Description
16560 \begin_inset Flex Code
16563 \begin_layout Plain Layout
16570 \begin_inset Flex Code
16573 \begin_layout Plain Layout
16582 \begin_inset space \thinspace{}
16586 \begin_inset Flex Code
16589 \begin_layout Plain Layout
16595 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
16598 \begin_layout Description
16599 \begin_inset Flex Code
16602 \begin_layout Plain Layout
16611 \begin_inset Flex Code
16614 \begin_layout Plain Layout
16623 \begin_inset space \thinspace{}
16627 \begin_inset Flex Code
16630 \begin_layout Plain Layout
16637 \begin_inset CommandInset ref
16639 reference "subsec:段落様式"
16646 \begin_layout Description
16647 \begin_inset Flex Code
16650 \begin_layout Plain Layout
16656 これらは,XHTML出力で使用されます.第
16657 \begin_inset CommandInset ref
16659 reference "sec:XHTML出力のタグ"
16666 \begin_layout Description
16667 \begin_inset Flex Code
16670 \begin_layout Plain Layout
16677 \begin_inset Flex Code
16680 \begin_layout Plain Layout
16689 \begin_inset space \thinspace{}
16693 \begin_inset Flex Code
16696 \begin_layout Plain Layout
16702 ] AddToTocの設定に関わらず,「文書構造」面用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に
16703 表示されることは望まないでしょうが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
16706 \begin_layout Description
16707 \begin_inset Flex Code
16710 \begin_layout Plain Layout
16717 \begin_inset Flex Code
16720 \begin_layout Plain Layout
16729 \begin_inset space \thinspace{}
16733 \begin_inset Flex Code
16736 \begin_layout Plain Layout
16742 ] AddToTocが有効なときに,これが1に設定されていると,差込枠の内容の要約が,目次項目に表示されます.0の場合は,ラベルのみが表示されます.
16745 \begin_layout Description
16746 \begin_inset Flex Code
16749 \begin_layout Plain Layout
16758 \begin_inset Flex Code
16761 \begin_layout Plain Layout
16770 \begin_inset space \thinspace{}
16774 \begin_inset Flex Code
16777 \begin_layout Plain Layout
16784 \begin_inset CommandInset ref
16786 reference "subsec:段落様式"
16793 \begin_layout Description
16794 \begin_inset Flex Code
16797 \begin_layout Plain Layout
16804 \begin_inset CommandInset ref
16806 reference "subsec:フォント指定"
16810 節を参照.非効率を回避するため,この定義は
16811 \begin_inset Flex Code
16814 \begin_layout Plain Layout
16823 \begin_layout Description
16824 \begin_inset Flex Code
16827 \begin_layout Plain Layout
16834 \begin_inset Flex Code
16837 \begin_layout Plain Layout
16844 \begin_inset Quotes erd
16848 \begin_inset Quotes erd
16855 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16856 コードや派生枝),ラベルが動的に変更されます.
16859 \begin_layout Description
16860 \begin_inset Flex Code
16863 \begin_layout Plain Layout
16870 \begin_inset CommandInset ref
16872 reference "subsec:段落様式の国際化"
16879 \begin_layout Description
16880 \begin_inset Flex Code
16883 \begin_layout Plain Layout
16890 \begin_inset Flex Code
16893 \begin_layout Plain Layout
16899 ] 対応する\SpecialChar LaTeX
16900 関連物の名称.環境名ないしはコマンド名.
16903 \begin_layout Description
16904 \begin_inset Flex Code
16907 \begin_layout Plain Layout
16914 \begin_inset Flex Code
16917 \begin_layout Plain Layout
16928 \begin_inset Flex Code
16931 \begin_layout Plain Layout
16938 \begin_inset Flex Code
16941 \begin_layout Plain Layout
16947 のような括弧対を含む.このパラメータは\SpecialChar LyX
16948 内部から変更することはできません(変更可能なパラメータには
16949 \begin_inset Flex Code
16952 \begin_layout Plain Layout
16958 を使用してください).これは,全ての\SpecialChar LaTeX
16960 \begin_inset Flex Code
16963 \begin_layout Plain Layout
16972 \begin_layout Description
16973 \begin_inset Flex Code
16976 \begin_layout Plain Layout
16983 \begin_inset Flex Code
16986 \begin_layout Plain Layout
16987 Command, Environment, None
16992 ] 様式がどのように\SpecialChar LaTeX
16997 \begin_layout Plain Layout
16998 これらのルールはSGMLクラスにも適用されるので,
16999 \begin_inset Flex Code
17002 \begin_layout Plain Layout
17008 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
17017 \begin_layout Description
17018 \begin_inset Flex Code
17021 \begin_layout Plain Layout
17030 \begin_layout Description
17031 \begin_inset Flex Code
17034 \begin_layout Plain Layout
17041 \begin_inset Flex Code
17044 \begin_layout Plain Layout
17051 {\SpecialChar ldots
17060 \begin_layout Description
17061 \begin_inset Flex Code
17064 \begin_layout Plain Layout
17071 \begin_inset Flex Code
17074 \begin_layout Plain Layout
17081 }\SpecialChar ldots
17096 \begin_layout Standard
17097 上記最後のいくつかをまとめると,\SpecialChar LaTeX
17098 出力は,\SpecialChar LaTeX
17102 \begin_layout LyX-Code
17105 LatexName[LatexParam]{\SpecialChar ldots
17109 \begin_layout Standard
17113 \begin_layout LyX-Code
17116 begin{LatexName}[LatexParam] \SpecialChar ldots
17122 \begin_layout Standard
17127 \begin_layout Description
17128 \begin_inset Flex Code
17131 \begin_layout Plain Layout
17138 \begin_inset Flex Code
17141 \begin_layout Plain Layout
17147 ] 様式の内容の最初に置かれる文字列.出力中の改行は
17148 \begin_inset Flex Code
17151 \begin_layout Plain Layout
17160 \begin_layout Description
17161 \begin_inset Flex Code
17164 \begin_layout Plain Layout
17171 \begin_inset Flex Code
17174 \begin_layout Plain Layout
17181 \begin_inset Flex Code
17184 \begin_layout Plain Layout
17191 \begin_inset Flex Code
17194 \begin_layout Plain Layout
17201 \begin_inset Flex Code
17204 \begin_layout Plain Layout
17210 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
17211 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
17212 \begin_inset Flex Code
17215 \begin_layout Plain Layout
17222 \begin_inset Flex Code
17225 \begin_layout Plain Layout
17232 \begin_inset Flex Code
17235 \begin_layout Plain Layout
17246 \begin_inset Flex Code
17249 \begin_layout Plain Layout
17260 \begin_inset Flex Code
17263 \begin_layout Plain Layout
17274 \begin_inset Flex Code
17277 \begin_layout Plain Layout
17288 \begin_inset Flex Code
17291 \begin_layout Plain Layout
17301 設定すれば,真に設定することができます.
17304 \begin_layout Description
17305 \begin_inset Flex Code
17308 \begin_layout Plain Layout
17315 \begin_inset Flex Code
17318 \begin_layout Plain Layout
17327 \begin_inset space \thinspace{}
17331 \begin_inset Flex Code
17334 \begin_layout Plain Layout
17340 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
17341 \begin_inset Flex Code
17344 \begin_layout Plain Layout
17351 \begin_inset Flex Code
17354 \begin_layout Plain Layout
17361 \begin_inset Flex Code
17364 \begin_layout Plain Layout
17374 指定されれば,他の値に指定し直すことができます.既定値は真です.
17377 \begin_layout Description
17378 \begin_inset Flex Code
17381 \begin_layout Plain Layout
17388 \begin_inset Flex Code
17391 \begin_layout Plain Layout
17400 \begin_inset space \thinspace{}
17404 \begin_inset Flex Code
17407 \begin_layout Plain Layout
17414 \begin_inset Flex Code
17417 \begin_layout Plain Layout
17425 するか否か(註:当該コマンド自身をprotectするかどうかでは
17432 \begin_layout Description
17433 \begin_inset Flex Code
17436 \begin_layout Plain Layout
17443 \begin_inset Flex Code
17446 \begin_layout Plain Layout
17453 \begin_inset Flex Code
17456 \begin_layout Plain Layout
17465 \begin_layout Description
17466 \begin_inset Flex Code
17469 \begin_layout Plain Layout
17476 \begin_inset Flex Code
17479 \begin_layout Plain Layout
17486 \begin_inset Flex Code
17489 \begin_layout Plain Layout
17496 \begin_inset Flex Code
17499 \begin_layout Plain Layout
17506 \begin_inset Flex Code
17509 \begin_layout Plain Layout
17515 の改名を,後方互換性を維持しながら行うために用いられます.
17518 \begin_layout Description
17519 \begin_inset Flex Code
17522 \begin_layout Plain Layout
17529 \begin_inset Flex Code
17532 \begin_layout Plain Layout
17541 \begin_inset space \thinspace{}
17545 \begin_inset Flex Code
17548 \begin_layout Plain Layout
17555 \begin_inset CommandInset ref
17557 reference "subsec:段落様式"
17564 \begin_layout Description
17565 \begin_inset Flex Code
17568 \begin_layout Plain Layout
17577 \begin_inset Flex Code
17580 \begin_layout Plain Layout
17589 \begin_inset space \thinspace{}
17593 \begin_inset Flex Code
17596 \begin_layout Plain Layout
17603 \begin_inset CommandInset ref
17605 reference "subsec:段落様式"
17612 \begin_layout Description
17613 \begin_inset Flex Code
17616 \begin_layout Plain Layout
17623 \begin_inset CommandInset ref
17625 reference "subsec:段落様式"
17632 \begin_layout Description
17633 \begin_inset Flex Code
17636 \begin_layout Plain Layout
17643 \begin_inset Flex Code
17646 \begin_layout Plain Layout
17652 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
17655 \begin_layout Description
17656 \begin_inset Flex Code
17659 \begin_layout Plain Layout
17666 \begin_inset Flex Code
17669 \begin_layout Plain Layout
17676 \begin_inset CommandInset ref
17678 reference "subsec:段落様式"
17685 \begin_layout Description
17686 \begin_inset Flex Code
17689 \begin_layout Plain Layout
17696 \begin_inset Flex Code
17699 \begin_layout Plain Layout
17708 \begin_inset space \thinspace{}
17712 \begin_inset Flex Code
17715 \begin_layout Plain Layout
17722 \begin_inset Flex Code
17725 \begin_layout Plain Layout
17731 タグで定義された)この様式の\SpecialChar LaTeX
17733 \begin_inset Flex Code
17736 \begin_layout Plain Layout
17742 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
17745 \begin_layout Description
17746 \begin_inset Flex Code
17749 \begin_layout Plain Layout
17756 \begin_inset Flex Code
17759 \begin_layout Plain Layout
17766 \begin_inset space \thinspace{}
17770 \begin_inset Flex Code
17773 \begin_layout Plain Layout
17781 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
17782 \begin_inset Note Note
17785 \begin_layout Plain Layout
17786 This is outdated: The default changed from 1 to 0
17794 \begin_layout Description
17795 \begin_inset Flex Code
17798 \begin_layout Plain Layout
17805 \begin_inset Flex Code
17808 \begin_layout Plain Layout
17814 ] 様式の内容の最後に置かれる文字列.出力中の改行は
17815 \begin_inset Flex Code
17818 \begin_layout Plain Layout
17827 \begin_layout Description
17828 \begin_inset Flex Code
17831 \begin_layout Plain Layout
17838 \begin_inset Flex Code
17841 \begin_layout Plain Layout
17848 \begin_inset space \thinspace{}
17852 \begin_inset Flex Code
17855 \begin_layout Plain Layout
17863 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17866 \begin_layout Subsection
17868 \begin_inset CommandInset label
17877 \begin_layout Standard
17879 \begin_inset Flex MenuItem
17882 \begin_layout Plain Layout
17889 \begin_inset Flex MenuItem
17892 \begin_layout Plain Layout
17898 ・\SpecialChar ldots
17899 )を定義することが必要です.標準的なカウンタは
17900 \begin_inset Flex Code
17903 \begin_layout Plain Layout
17909 ファイルに含まれているので,作業中のレイアウトファイルに
17912 \begin_layout LyX-Code
17913 Input stdcounters.inc
17916 \begin_layout Standard
17917 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17920 \begin_layout LyX-Code
17924 \begin_layout Standard
17926 \begin_inset Flex Code
17929 \begin_layout Plain Layout
17935 」は,実際のカウンタ名で置き換えます.また,宣言は「
17936 \begin_inset Flex Code
17939 \begin_layout Plain Layout
17948 \begin_layout Standard
17949 以下のパラメータを使用することができます.
17952 \begin_layout Description
17953 \begin_inset Flex Code
17956 \begin_layout Plain Layout
17963 \begin_inset Flex Code
17966 \begin_layout Plain Layout
17972 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17975 \begin_layout Description
17976 \begin_inset Flex Code
17979 \begin_layout Plain Layout
17980 LabelString [文字列=""]
17985 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17986 \begin_inset Flex Code
17989 \begin_layout Plain Layout
17990 LabelStringAppendix
17995 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17999 \begin_layout Itemize
18000 \begin_inset Flex Code
18003 \begin_layout Plain Layout
18012 \begin_inset Flex Code
18015 \begin_layout Plain Layout
18022 \begin_inset Flex Code
18025 \begin_layout Plain Layout
18032 \begin_inset Newline linebreak
18036 \begin_inset Flex Code
18039 \begin_layout Plain Layout
18040 LabelStringAppendix
18048 \begin_layout Itemize
18049 カウンタ値は,\SpecialChar LaTeX
18051 \begin_inset Flex Code
18054 \begin_layout Plain Layout
18070 を用いて表現することができます.ここで
18071 \begin_inset Flex Code
18074 \begin_layout Plain Layout
18083 \begin_inset Flex Code
18086 \begin_layout Plain Layout
18092 :1, 2, 3,\SpecialChar ldots
18094 \begin_inset Flex Code
18097 \begin_layout Plain Layout
18103 :a, b, c, \SpecialChar ldots
18105 \begin_inset Flex Code
18108 \begin_layout Plain Layout
18114 :A, B, C, \SpecialChar ldots
18116 \begin_inset Flex Code
18119 \begin_layout Plain Layout
18125 :i, ii, iii, \SpecialChar ldots
18127 \begin_inset Flex Code
18130 \begin_layout Plain Layout
18136 :I, II, III\SpecialChar ldots
18141 \begin_layout Standard
18142 \begin_inset Flex Code
18145 \begin_layout Plain Layout
18151 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
18152 \begin_inset Flex Code
18155 \begin_layout Plain Layout
18162 \begin_inset Flex Code
18165 \begin_layout Plain Layout
18172 \begin_inset Newline linebreak
18176 \begin_inset Flex Code
18179 \begin_layout Plain Layout
18190 \begin_inset Flex Code
18193 \begin_layout Plain Layout
18204 \begin_layout Description
18205 \begin_inset Flex Code
18208 \begin_layout Plain Layout
18209 LabelStringAppendix
18215 \begin_inset Flex Code
18218 \begin_layout Plain Layout
18225 \begin_inset Flex Code
18228 \begin_layout Plain Layout
18234 と同様ですが,付録で使用するためのものです.
18237 \begin_layout Description
18238 \begin_inset Flex Code
18241 \begin_layout Plain Layout
18248 \begin_inset Flex Code
18251 \begin_layout Plain Layout
18258 \begin_inset Quotes erd
18262 \begin_inset Quotes erd
18265 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
18266 \begin_inset space ~
18269 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
18273 \begin_layout Description
18274 \begin_inset Flex Code
18277 \begin_layout Plain Layout
18284 \begin_inset Flex Code
18287 \begin_layout Plain Layout
18294 \begin_inset Quotes erd
18298 \begin_inset Quotes erd
18301 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
18302 \begin_inset Flex Code
18305 \begin_layout Plain Layout
18312 \begin_inset Flex Code
18315 \begin_layout Plain Layout
18324 \begin_layout Subsection
18326 \begin_inset CommandInset label
18328 name "subsec:フォント指定"
18335 \begin_layout Standard
18336 フォント指定は,以下のような形を取ります.
18339 \begin_layout LyX-Code
18355 \begin_layout LyX-Code
18359 \begin_layout LyX-Code
18363 \begin_layout Standard
18364 以下のコマンドを使用することができます.
18367 \begin_layout Description
18368 \begin_inset Flex Code
18371 \begin_layout Plain Layout
18378 \begin_inset Flex Code
18381 \begin_layout Plain Layout
18390 \begin_inset Flex Code
18393 \begin_layout Plain Layout
18400 \begin_inset Flex Code
18403 \begin_layout Plain Layout
18410 \begin_inset Flex Code
18413 \begin_layout Plain Layout
18420 \begin_inset Flex Code
18423 \begin_layout Plain Layout
18430 \begin_inset Flex Code
18433 \begin_layout Plain Layout
18440 \begin_inset Flex Code
18443 \begin_layout Plain Layout
18450 \begin_inset Flex Code
18453 \begin_layout Plain Layout
18460 \begin_inset Flex Code
18463 \begin_layout Plain Layout
18470 \begin_inset Flex Code
18473 \begin_layout Plain Layout
18480 \begin_inset Flex Code
18483 \begin_layout Plain Layout
18490 \begin_inset Flex Code
18493 \begin_layout Plain Layout
18500 \begin_inset Flex Code
18503 \begin_layout Plain Layout
18510 \begin_inset Flex Code
18513 \begin_layout Plain Layout
18520 \begin_inset Flex Code
18523 \begin_layout Plain Layout
18530 \begin_inset Flex Code
18533 \begin_layout Plain Layout
18540 \begin_inset Flex Code
18543 \begin_layout Plain Layout
18550 \begin_inset Flex Code
18553 \begin_layout Plain Layout
18560 \begin_inset Flex Code
18563 \begin_layout Plain Layout
18570 \begin_inset Flex Code
18573 \begin_layout Plain Layout
18582 \begin_layout Description
18583 \begin_inset Flex Code
18586 \begin_layout Plain Layout
18595 \begin_inset Flex Code
18598 \begin_layout Plain Layout
18607 \begin_inset Flex Code
18610 \begin_layout Plain Layout
18617 \begin_inset Flex Code
18620 \begin_layout Plain Layout
18629 \begin_layout Description
18630 \begin_inset Flex Code
18633 \begin_layout Plain Layout
18640 \begin_inset Flex Code
18643 \begin_layout Plain Layout
18650 \begin_inset Flex Code
18653 \begin_layout Plain Layout
18660 \begin_inset Flex Code
18663 \begin_layout Plain Layout
18670 \begin_inset Flex Code
18673 \begin_layout Plain Layout
18680 \begin_inset Flex Code
18683 \begin_layout Plain Layout
18690 \begin_inset Flex Code
18693 \begin_layout Plain Layout
18700 \begin_inset Flex Code
18703 \begin_layout Plain Layout
18710 \begin_inset Flex Code
18713 \begin_layout Plain Layout
18720 \begin_inset Flex Code
18723 \begin_layout Plain Layout
18730 \begin_inset Flex Code
18733 \begin_layout Plain Layout
18740 \begin_inset Flex Code
18743 \begin_layout Plain Layout
18750 \begin_inset Flex Code
18753 \begin_layout Plain Layout
18760 \begin_inset Flex Code
18763 \begin_layout Plain Layout
18769 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
18770 \begin_inset Newline newline
18774 \begin_inset Flex Code
18777 \begin_layout Plain Layout
18784 \begin_inset Flex Code
18787 \begin_layout Plain Layout
18793 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
18795 \begin_inset Flex Code
18798 \begin_layout Plain Layout
18804 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
18807 \begin_layout Description
18808 \begin_inset Flex Code
18811 \begin_layout Plain Layout
18820 \begin_inset Flex Code
18823 \begin_layout Plain Layout
18832 \begin_inset Flex Code
18835 \begin_layout Plain Layout
18844 \begin_layout Description
18845 \begin_inset Flex Code
18848 \begin_layout Plain Layout
18857 \begin_inset Flex Code
18860 \begin_layout Plain Layout
18869 \begin_inset Flex Code
18872 \begin_layout Plain Layout
18879 \begin_inset Flex Code
18882 \begin_layout Plain Layout
18889 \begin_inset Flex Code
18892 \begin_layout Plain Layout
18901 \begin_layout Description
18902 \begin_inset Flex Code
18905 \begin_layout Plain Layout
18912 \begin_inset Flex Code
18915 \begin_layout Plain Layout
18922 \begin_inset Flex Code
18925 \begin_layout Plain Layout
18932 \begin_inset Flex Code
18935 \begin_layout Plain Layout
18944 \begin_inset Flex Code
18947 \begin_layout Plain Layout
18954 \begin_inset Flex Code
18957 \begin_layout Plain Layout
18964 \begin_inset Flex Code
18967 \begin_layout Plain Layout
18974 \begin_inset Flex Code
18977 \begin_layout Plain Layout
18984 \begin_inset Flex Code
18987 \begin_layout Plain Layout
18996 \begin_layout Subsection
18997 \begin_inset CommandInset label
18999 name "subsec:引用エンジンの説明"
19006 \begin_layout Standard
19008 \begin_inset CommandInset ref
19010 reference "subsec:引用エンジンファイル"
19018 \begin_inset Flex Code
19021 \begin_layout Plain Layout
19027 ブロックは,特定の「引用エンジン」で提供される引用コマンドを定義します.\SpecialChar LyX
19028 の用語では,引用エンジンとは,番号や著者名,刊行年を使って,引用を整形する特定の方法のこ
19029 とを指します.\SpecialChar LyX
19030 は,3つのエンジンの型をサポートします.すなわち,
19033 \begin_layout Enumerate
19034 \begin_inset Flex Code
19037 \begin_layout Plain Layout
19043 : 既定のBib\SpecialChar TeX
19044 流の引用方法である,単純な番号による様式(例:「[1]」)
19047 \begin_layout Enumerate
19048 \begin_inset Flex Code
19051 \begin_layout Plain Layout
19057 : 著者名と刊行年を使ったHarvard様式の引用(例:「Smith and Miller (2017b)」)
19060 \begin_layout Enumerate
19061 \begin_inset Flex Code
19064 \begin_layout Plain Layout
19070 : 番号に隣接して著者名やタイトルを付けることのできる拡張された番号引用(例:「Smith and Miller [1]」)
19073 \begin_layout Standard
19074 \begin_inset Flex Code
19077 \begin_layout Plain Layout
19086 \begin_layout LyX-Code
19090 \begin_layout LyX-Code
19094 \begin_layout LyX-Code
19098 \begin_layout LyX-Code
19099 citeyearpar[][]=parencite*
19102 \begin_layout LyX-Code
19106 \begin_layout LyX-Code
19110 \begin_layout Standard
19111 \begin_inset Flex Code
19114 \begin_layout Plain Layout
19120 に続くタグがエンジンを表します.各行は,このエンジンによってサポートされる引用コマンドや引用コマンドパラダイムを定義します.行は,\SpecialChar LyX
19121 コマンドと\SpecialChar LaTeX
19123 われる引用コマンドのみを含むこともあれば,色々変えるために複雑なこともあります.完全な文法は
19126 \begin_layout LyX-Code
19127 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
19130 \begin_layout Standard
19134 \begin_layout Itemize
19135 \begin_inset Flex Code
19138 \begin_layout Plain Layout
19145 \begin_inset Flex Code
19148 \begin_layout Plain Layout
19158 \begin_layout Standard
19159 可搬性のために,異なる引用パッケージ中の同じ形をしたコマンドには,同じ名前をつけるようにしています(したがって,多くの名前がnatbibから派生しており,\SpecialChar LaTeX
19162 \begin_inset Flex Code
19165 \begin_layout Plain Layout
19175 \begin_layout Itemize
19176 \begin_inset Flex Code
19179 \begin_layout Plain Layout
19186 \begin_inset Flex Code
19189 \begin_layout Plain Layout
19195 にフォールバックするコマンドの(コンマで区切られた)リスト.これによって,引用パッケージとエンジンを切り替えるのが楽になります.
19196 \begin_inset Flex Code
19199 \begin_layout Plain Layout
19206 \begin_inset Flex Code
19209 \begin_layout Plain Layout
19218 \begin_layout Itemize
19219 \begin_inset Flex Code
19222 \begin_layout Plain Layout
19228 : 出力される実際の\SpecialChar LaTeX
19232 \begin_layout Standard
19233 \begin_inset Flex Code
19236 \begin_layout Plain Layout
19243 \begin_inset Flex Code
19246 \begin_layout Plain Layout
19253 \begin_inset Flex Code
19256 \begin_layout Plain Layout
19263 \begin_inset Flex Code
19266 \begin_layout Plain Layout
19272 が\SpecialChar LaTeX
19276 \begin_layout Standard
19280 \begin_layout Itemize
19281 大文字にするとコマンドも大文字化されたものになります(
19282 \begin_inset Flex Code
19285 \begin_layout Plain Layout
19294 \begin_inset Flex Code
19297 \begin_layout Plain Layout
19305 に).これらは通常,名前の前置詞を大文字化するのを確実にします(
19310 \begin_inset Formula $\Rightarrow$
19320 \begin_layout Itemize
19322 \begin_inset Flex Code
19325 \begin_layout Plain Layout
19331 は非必須引数の数を表します(0-2をとりえます).
19334 \begin_layout Itemize
19336 \begin_inset Flex Code
19339 \begin_layout Plain Layout
19346 \begin_inset Flex Code
19349 \begin_layout Plain Layout
19358 \begin_inset Flex Code
19361 \begin_layout Plain Layout
19373 \begin_layout Standard
19375 \begin_inset Flex Code
19378 \begin_layout Plain Layout
19384 の閾値を超えたために「et al.」に省略されるべき時にも全ての著者を出力することを意味します.
19387 \begin_layout Standard
19388 星印が,当該コマンドについては別の意味を持つ場合には,
19389 \begin_inset Flex Code
19392 \begin_layout Plain Layout
19393 <!_stardesc!_stardesctooltip>
19398 のように三角括弧で指定することができます.前置詞
19399 \begin_inset Flex Code
19402 \begin_layout Plain Layout
19408 で標識した,翻訳可能なキーワードを最大2つ与えることができます.最初のキーワードは,引用ダイアログ中の「Full aut&hor list」チェックボックスラベ
19409 ルを書き換える文字列を指し,二つ目のキーワードは,このチェックボックスに対する非必須のツールチップの文字列を指します.
19412 \begin_layout Standard
19413 これらの2つのマクロは,下記のように,前置詞から
19414 \begin_inset Flex Code
19417 \begin_layout Plain Layout
19424 \begin_inset Flex Code
19427 \begin_layout Plain Layout
19433 (次節参照)で定義されなくてはなりません.
19436 \begin_layout LyX-Code
19437 _stardesc Sta&rred command label
19440 \begin_layout LyX-Code
19441 _stardesctooltip Tooltip for the starred command checkbox.
19445 \begin_layout Itemize
19447 \begin_inset Flex Code
19450 \begin_layout Plain Layout
19456 は,このコマンドが「qualified citation lists」を取り扱うことを示します.これは,リスト中の個別の引用に対して,前置文字列と後置文字列を置
19461 に特有の複数文献引用機能です.詳細については,
19468 \begin_layout Subsection
19469 \begin_inset CommandInset label
19471 name "subsec:引用書式指定"
19478 \begin_layout Standard
19479 (引用ダイアログやツールチップなどの)\SpecialChar LyX
19480 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
19481 \begin_inset Flex Code
19484 \begin_layout Plain Layout
19490 ブロックが使用されています.このブロックは,以下のような形をしています.
19493 \begin_layout LyX-Code
19497 \begin_layout LyX-Code
19501 \begin_layout LyX-Code
19505 \begin_layout LyX-Code
19509 \begin_layout Standard
19513 \begin_layout LyX-Code
19517 \begin_layout LyX-Code
19521 \begin_layout LyX-Code
19525 \begin_layout LyX-Code
19529 \begin_layout Standard
19530 最初の例の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
19532 在しうる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
19533 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
19535 \begin_inset Flex Code
19538 \begin_layout Plain Layout
19544 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
19545 文書クラスにインクルードされています.
19548 \begin_layout Standard
19549 2つ目の例では,各行は,特定の引用コマンド(この例では
19550 \begin_inset Flex Code
19553 \begin_layout Plain Layout
19562 \begin_inset Flex Code
19565 \begin_layout Plain Layout
19573 )が,引用差込枠ラベルや引用ダイアログ,メニュー,XHTML出力でどのように表示されるべきかを定義しています.\SpecialChar LyX
19576 \begin_inset Flex Code
19579 \begin_layout Plain Layout
19587 文書\SpecialChar menuseparator
19588 設定\SpecialChar menuseparator
19589 書誌情報\SpecialChar ldots
19592 でサポートしている引用様式用に,そのような書式を定義しています(第
19593 \begin_inset CommandInset ref
19595 reference "subsec:引用エンジンファイル"
19605 \begin_layout Standard
19606 この定義は,Bib\SpecialChar TeX
19607 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
19608 \begin_inset Flex Code
19611 \begin_layout Plain Layout
19618 \begin_inset Flex Code
19621 \begin_layout Plain Layout
19627 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
19630 \begin_layout LyX-Code
19632 \begin_inset Quotes eld
19636 \begin_inset Quotes erd
19642 \begin_layout Standard
19643 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
19646 \begin_layout Standard
19647 もちろん,キーが存在するときのみ,そのキーを出力したい時があるはずです.このようなときには
19648 \begin_inset Flex Code
19651 \begin_layout Plain Layout
19653 \begin_inset space ~
19661 のように,条件付きの構成を使用することができます.これは,
19662 \begin_inset Flex Code
19665 \begin_layout Plain Layout
19672 \begin_inset space ~
19675 」とvolumeキーを出力するという意味です.また,
19676 \begin_inset Newline newline
19680 \begin_inset Flex Code
19683 \begin_layout Plain Layout
19684 {%author%[[%author%]][[%editor%, ed.]]}
19690 \begin_inset Newline newline
19693 のように,条件の中にelse節を含めることも可能です.ここでは,もし
19694 \begin_inset Flex Code
19697 \begin_layout Plain Layout
19703 キーが存在するならば出力され,そうでなければeditorキーと「,
19704 \begin_inset space ~
19707 ed.」が出力されます.ここでもキーは,
19708 \begin_inset Flex Code
19711 \begin_layout Plain Layout
19717 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
19718 \begin_inset Flex Code
19721 \begin_layout Plain Layout
19728 \begin_inset Flex Code
19731 \begin_layout Plain Layout
19737 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
19740 \begin_layout Standard
19741 これらの条件文に使うことができるものには,項目キーの他に,以下の特殊キーがあります.
19744 \begin_layout Itemize
19745 \begin_inset Flex Code
19748 \begin_layout Plain Layout
19749 {%dialog%[[真]][[偽]]}
19754 : ダイアログとメニューに対しては「真」の部分を処理し,他の文脈(作業領域や書き出し)には「偽」の部分を処理します
19757 \begin_layout Itemize
19758 \begin_inset Flex Code
19761 \begin_layout Plain Layout
19762 {%export%[[真]][[偽]]}
19767 : 書き出しとメニューに対しては「真」の部分を処理し,他の文脈(作業領域やダイアログ)には「偽」の部分を処理します
19770 \begin_layout Itemize
19771 \begin_inset Flex Code
19774 \begin_layout Plain Layout
19780 : 他の項目が続く場合には「真」の部分を処理します(複数キーを持つ引用など)
19783 \begin_layout Itemize
19784 \begin_inset Flex Code
19787 \begin_layout Plain Layout
19788 {%second%[[真]][[偽]]}
19793 : これが複数項目の2番目の場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19796 \begin_layout Itemize
19797 \begin_inset Flex Code
19800 \begin_layout Plain Layout
19801 {%ifstar%[[真]][[偽]]}
19807 \begin_inset Flex Code
19810 \begin_layout Plain Layout
19818 など)星印付き引用コマンドの場合には「真」の部分を処理し,星印付きでない場合には「偽」の部分を処理します
19821 \begin_layout Itemize
19822 \begin_inset Flex Code
19825 \begin_layout Plain Layout
19826 {%ifentrytype:<type>%[[真]][[偽]]}
19832 \begin_inset Flex Code
19835 \begin_layout Plain Layout
19841 に一致する場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:引用定義において
19842 \begin_inset Flex Code
19845 \begin_layout Plain Layout
19846 {%ifentrytype:book%[[これはbookです]][[これはbookではありません]]}
19854 \begin_layout Itemize
19855 \begin_inset Flex Code
19858 \begin_layout Plain Layout
19859 {%ifmultiple:<authortype>%[[真]][[偽]]}
19864 : 現行の項目が著者型(著者・編者など)が複数の著者を含む場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:書誌情報定義において
19865 \begin_inset Flex Code
19868 \begin_layout Plain Layout
19869 {%ifmultiple:editor%[[eds.]][[ed.]]}
19877 \begin_layout Itemize
19878 \begin_inset Flex Code
19881 \begin_layout Plain Layout
19882 {%ifqualified%[[真]][[偽]]}
19887 : 現行の引用がqualified citation listである(複数文献引用に対する
19891 特有の形式)場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19894 \begin_layout Standard
19895 \begin_inset Flex Code
19898 \begin_layout Plain Layout
19904 は書誌情報ファイルに記録されている形のままの著者キーを出力すると述べました.これは「Miller, Peter and Smith, Mary
19905 and White, Jane」のような文字列に終わることがあり(Bib\SpecialChar TeX
19906 では著者を区切るのに「and」が用いられるため),望ましい結果ではありません.したがっ
19908 は,正しく整形された名前のリスト(これも翻訳の対象となります)を得るための方法を提供しています.以下のキーが提供されています.
19911 \begin_layout Enumerate
19912 書誌情報項目の主要著者・編者に適した,姓名付き名前リスト用.
19913 \begin_inset Flex Code
19916 \begin_layout Plain Layout
19922 部分は要請されているリスト型を表します(例:
19923 \begin_inset Flex Code
19926 \begin_layout Plain Layout
19936 \begin_layout Itemize
19937 \begin_inset Flex Code
19940 \begin_layout Plain Layout
19941 %abbrvnames:<nametype>%
19947 \begin_inset Flex Code
19950 \begin_layout Plain Layout
19956 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
19959 \begin_layout Itemize
19960 \begin_inset Flex Code
19963 \begin_layout Plain Layout
19964 %fullnames:<nametype>%
19969 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
19972 \begin_layout Itemize
19973 \begin_inset Flex Code
19976 \begin_layout Plain Layout
19977 %forceabbrvnames:<nametype>%
19983 \begin_inset Flex Code
19986 \begin_layout Plain Layout
19992 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
19996 \begin_layout Enumerate
19997 書誌情報項目中の姓名の順序が異なっている場合の,姓名付き名前リスト(例:「Miller, John: 何らかの文, in: Mary Smith,
20002 \begin_layout Itemize
20003 \begin_inset Flex Code
20006 \begin_layout Plain Layout
20007 %abbrvbynames:<nametype>%
20013 \begin_inset Flex Code
20016 \begin_layout Plain Layout
20022 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20025 \begin_layout Itemize
20026 \begin_inset Flex Code
20029 \begin_layout Plain Layout
20030 %fullbynames:<nametype>%
20035 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20038 \begin_layout Itemize
20039 \begin_inset Flex Code
20042 \begin_layout Plain Layout
20043 %forceabbrvbynames:<nametype>%
20049 \begin_inset Flex Code
20052 \begin_layout Plain Layout
20058 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20062 \begin_layout Enumerate
20063 著者-発行年引用ラベルで用いられるような,姓のみを含む姓リスト.これらは
20064 \begin_inset Flex Code
20067 \begin_layout Plain Layout
20073 部分を取りませんが,(著者-発行年ラベルで通例であるように)常に著者リストか,存在しない場合には編者リストを返します.
20077 \begin_layout Itemize
20078 \begin_inset Flex Code
20081 \begin_layout Plain Layout
20088 \begin_inset Flex Code
20091 \begin_layout Plain Layout
20097 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20100 \begin_layout Itemize
20101 \begin_inset Flex Code
20104 \begin_layout Plain Layout
20110 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20113 \begin_layout Itemize
20114 \begin_inset Flex Code
20117 \begin_layout Plain Layout
20118 %forceabbrvciteauthor%
20124 \begin_inset Flex Code
20127 \begin_layout Plain Layout
20133 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20137 \begin_layout Standard
20138 前二者の姓名の順序は,下記のマクロで変更することができます.
20141 \begin_layout Itemize
20142 \begin_inset Flex Code
20145 \begin_layout Plain Layout
20146 !firstnameform %surname%, %prename%
20154 \begin_layout Itemize
20155 \begin_inset Flex Code
20158 \begin_layout Plain Layout
20159 !othernameform %surname%, %prename%
20167 \begin_layout Itemize
20168 \begin_inset Flex Code
20171 \begin_layout Plain Layout
20172 !firstbynameform %prename% %surname%
20180 \begin_layout Itemize
20181 \begin_inset Flex Code
20184 \begin_layout Plain Layout
20185 !otherbynameform %prename% %surname%
20193 \begin_layout Standard
20194 これによって,名前を「Miller, Peter and Mary Smith: \SpecialChar ldots
20195 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
20200 \begin_layout Standard
20201 もう一つ,定義中で使用することのできる文法として,
20202 \begin_inset Flex Code
20205 \begin_layout Plain Layout
20211 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
20212 グを出力させたくはありませんから,HTMLタグは「
20213 \begin_inset Flex Code
20216 \begin_layout Plain Layout
20223 \begin_inset Flex Code
20226 \begin_layout Plain Layout
20232 」でくるんでやらなくてはならないのです.
20235 \begin_layout Standard
20236 \begin_inset Flex Code
20239 \begin_layout Plain Layout
20245 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
20248 \begin_layout LyX-Code
20250 \begin_inset Quotes eld
20254 \begin_inset Quotes erd
20260 \begin_layout Standard
20261 といった例が挙げられます.これは,短縮形ないしはマクロであり,
20262 \begin_inset Flex Code
20265 \begin_layout Plain Layout
20271 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
20273 \begin_inset Flex Code
20276 \begin_layout Plain Layout
20282 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
20285 \begin_layout LyX-Code
20289 \begin_layout Standard
20290 のようなことはしないでください.\SpecialChar LyX
20291 は,無限ループに陥るようなことはありませんが,諦めるまでに時間のかかる長いループに入るかもしれません.
20294 \begin_layout Standard
20298 \begin_layout LyX-Code
20302 \begin_layout Standard
20303 のようなものです.これは翻訳対象となるテキスト部分を定義し,これによって書誌情報や引用の対応する部分が翻訳されるようになります.
20304 \begin_inset Flex Code
20307 \begin_layout Plain Layout
20313 のように,これをキーとして扱って,定義の中に入れることもできます.
20315 Note that there are two different translation paths: All definitions starting
20317 \begin_inset Flex Code
20320 \begin_layout Plain Layout
20328 , such as in the example above, will be translated to the currently active
20329 buffer language (so the translation will match the generated document).
20330 All definitions starting with underscore only will be translated to the
20332 This is the proper translation for strings that only occur in the dialogs
20333 or on buttons, such as this one:
20336 \begin_layout LyX-Code
20339 _addtobib Add to bibliography only.
20342 \begin_layout Standard
20345 translatable strings
20348 \begin_inset Flex Code
20351 \begin_layout Plain Layout
20358 \begin_inset Flex Code
20361 \begin_layout Plain Layout
20367 ファイル中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
20370 \begin_layout Standard
20371 以下は,これらの機能を全て使った例です.
20372 \begin_inset VSpace defskip
20378 \begin_layout Standard
20382 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
20385 \begin_layout Standard
20386 \begin_inset VSpace defskip
20390 \begin_inset Flex Code
20393 \begin_layout Plain Layout
20399 キーが定義されているならば,著者とコンマを出力し,
20400 \begin_inset Flex Code
20403 \begin_layout Plain Layout
20410 \begin_inset Flex Code
20413 \begin_layout Plain Layout
20419 キーが定義されているならば,編集者名の後に
20420 \begin_inset Flex Code
20423 \begin_layout Plain Layout
20429 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
20430 \begin_inset Flex Code
20433 \begin_layout Plain Layout
20439 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
20442 \begin_layout Section
20443 \begin_inset CommandInset label
20445 name "sec:XHTML出力のタグ"
20452 \begin_layout Standard
20454 やDocBookと同様,\SpecialChar LyX
20455 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
20456 は適切な既定値を提供し,前述したように,他のレイアウト
20457 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
20459 \begin_inset Flex Code
20462 \begin_layout Plain Layout
20468 宣言で提供されている情報を利用しようと試みます.
20471 \begin_layout Standard
20472 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
20473 ,これが必要になる場合もあるので,\SpecialChar LyX
20474 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
20477 \begin_layout Standard
20478 様式宣言や差込枠宣言の外で使用することができるタグに,
20479 \begin_inset Flex Code
20482 \begin_layout Plain Layout
20489 \begin_inset Flex Code
20492 \begin_layout Plain Layout
20498 の2つがあることに注意してください.これらの詳細については,
20499 \begin_inset CommandInset ref
20501 reference "subsec:汎用テキストクラスパラメータ"
20508 \begin_layout Subsection
20509 \begin_inset CommandInset label
20511 name "subsec:段落様式-XHTML"
20518 \begin_layout Standard
20520 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
20521 \begin_inset Flex Code
20524 \begin_layout Plain Layout
20534 \begin_layout Standard
20535 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
20538 \begin_layout LyX-Code
20542 \begin_inset Quotes erd
20546 \begin_inset Quotes erd
20552 \begin_layout LyX-Code
20556 \begin_inset Quotes erd
20560 \begin_inset Quotes erd
20566 \begin_layout LyX-Code
20572 \begin_layout LyX-Code
20578 \begin_layout Standard
20579 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
20582 \begin_layout Standard
20583 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
20586 \begin_layout LyX-Code
20590 \begin_inset Quotes erd
20594 \begin_inset Quotes erd
20600 \begin_layout LyX-Code
20604 \begin_inset Quotes erd
20608 \begin_inset Quotes erd
20612 \begin_inset Quotes erd
20616 \begin_inset Quotes erd
20619 >環境ラベル</labeltag>最初の段落.
20622 \begin_layout LyX-Code
20628 \begin_layout LyX-Code
20631 <itemtag>二つめの段落.</itemtag>
20634 \begin_layout LyX-Code
20640 \begin_layout Standard
20641 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
20644 \begin_layout Standard
20645 リストに関しては,次のような形になります.
20648 \begin_layout LyX-Code
20652 \begin_inset Quotes erd
20656 \begin_inset Quotes erd
20662 \begin_layout LyX-Code
20666 \begin_inset Quotes erd
20670 \begin_inset Quotes erd
20674 \begin_inset Quotes erd
20678 \begin_inset Quotes erd
20681 >リストのラベル</labeltag>最初の項目.</itemtag>
20684 \begin_layout LyX-Code
20688 \begin_inset Quotes erd
20692 \begin_inset Quotes erd
20696 \begin_inset Quotes erd
20700 \begin_inset Quotes erd
20703 >リストのラベル</labeltag>二つめの項目.</itemtag>
20706 \begin_layout LyX-Code
20712 \begin_layout LyX-Code
20716 \begin_layout LyX-Code
20720 \begin_inset Quotes erd
20724 \begin_inset Quotes erd
20730 \begin_layout LyX-Code
20734 \begin_inset Quotes erd
20738 \begin_inset Quotes erd
20741 >リストのラベル</labeltag><itemtag attr=
20742 \begin_inset Quotes erd
20746 \begin_inset Quotes erd
20752 \begin_layout LyX-Code
20756 \begin_inset Quotes erd
20760 \begin_inset Quotes erd
20763 >リストのラベル</labeltag><itemtag attr=
20764 \begin_inset Quotes erd
20768 \begin_inset Quotes erd
20774 \begin_layout LyX-Code
20780 \begin_layout Standard
20782 \begin_inset Flex Code
20785 \begin_layout Plain Layout
20792 \begin_inset Flex Code
20795 \begin_layout Plain Layout
20801 の順序が違っていることに注意してください.どちらの順序になるかは,
20802 \begin_inset Flex Code
20805 \begin_layout Plain Layout
20812 \begin_inset Flex Code
20815 \begin_layout Plain Layout
20821 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
20824 \begin_layout Standard
20825 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
20827 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
20831 \begin_layout Description
20832 \begin_inset Flex Code
20835 \begin_layout Plain Layout
20842 \begin_inset Flex Code
20845 \begin_layout Plain Layout
20851 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
20852 \begin_inset Flex Code
20855 \begin_layout Plain Layout
20861 」のようなものです.既定においては,\SpecialChar LyX
20863 \begin_inset Flex Code
20866 \begin_layout Plain Layout
20873 \begin_inset Flex Code
20876 \begin_layout Plain Layout
20882 は,レイアウトの\SpecialChar LyX
20883 名であり,chapterのように小文字で記述します.
20886 \begin_layout Description
20887 \begin_inset Flex Code
20890 \begin_layout Plain Layout
20897 \begin_inset Flex Code
20900 \begin_layout Plain Layout
20911 \begin_inset Flex Code
20914 \begin_layout Plain Layout
20920 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
20921 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
20922 \begin_inset Flex Code
20925 \begin_layout Plain Layout
20931 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
20932 \begin_inset Flex Code
20935 \begin_layout Plain Layout
20944 \begin_layout Description
20945 \begin_inset Flex Code
20948 \begin_layout Plain Layout
20955 \begin_inset Flex Code
20958 \begin_layout Plain Layout
20964 ] 環境の段落に使用されるタグ.上記各例の
20965 \begin_inset Flex Code
20968 \begin_layout Plain Layout
20975 \begin_inset Flex Code
20978 \begin_layout Plain Layout
20987 \begin_layout Description
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
21012 class=`レイアウト名_item'
21022 \begin_inset Flex Code
21025 \begin_layout Plain Layout
21034 \begin_layout Description
21035 \begin_inset Flex Code
21038 \begin_layout Plain Layout
21045 \begin_inset Flex Code
21048 \begin_layout Plain Layout
21054 ] 段落と項目ラベルに使用されるタグ.上記各例の
21055 \begin_inset Flex Code
21058 \begin_layout Plain Layout
21065 \begin_inset Flex Code
21068 \begin_layout Plain Layout
21075 \begin_inset Flex Code
21078 \begin_layout Plain Layout
21085 \begin_inset Flex Code
21088 \begin_layout Plain Layout
21089 Centered_Top_Environment
21095 \begin_inset Flex Code
21098 \begin_layout Plain Layout
21105 \begin_inset Flex Code
21108 \begin_layout Plain Layout
21117 \begin_layout Description
21118 \begin_inset Flex Code
21121 \begin_layout Plain Layout
21128 \begin_inset Flex Code
21131 \begin_layout Plain Layout
21138 \begin_inset Flex Code
21141 \begin_layout Plain Layout
21142 class=`レイアウト名_label'
21152 \begin_inset Flex Code
21155 \begin_layout Plain Layout
21164 \begin_layout Description
21165 \begin_inset Flex Code
21168 \begin_layout Plain Layout
21175 \begin_inset Flex Code
21178 \begin_layout Plain Layout
21188 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
21190 \begin_inset Flex Code
21193 \begin_layout Plain Layout
21194 `<dt>\SpecialChar ldots
21195 </dt><dd>\SpecialChar ldots
21201 という形を得るために使用されます.既定値は
21202 \begin_inset Flex Code
21205 \begin_layout Plain Layout
21211 で,labelタグはitemタグの中に出力されます.
21214 \begin_layout Description
21215 \begin_inset Flex Code
21218 \begin_layout Plain Layout
21225 \begin_inset Flex Code
21228 \begin_layout Plain Layout
21234 セクションに出力される情報.これは,たとえば,
21235 \begin_inset Flex Code
21238 \begin_layout Plain Layout
21245 \begin_inset Flex Code
21248 \begin_layout Plain Layout
21254 ブロックをインクルードするのに使用することができます.
21257 \begin_layout Description
21258 \begin_inset Flex Code
21261 \begin_layout Plain Layout
21267 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21268 \begin_inset Flex Code
21271 \begin_layout Plain Layout
21277 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21278 \begin_inset Flex Code
21281 \begin_layout Plain Layout
21290 \begin_layout Description
21291 \begin_inset Flex Code
21294 \begin_layout Plain Layout
21301 \begin_inset Flex Code
21304 \begin_layout Plain Layout
21310 ] 主幹ラベルに使用されるタグ.上記各例の
21311 \begin_inset Flex Code
21314 \begin_layout Plain Layout
21321 \begin_inset Flex Code
21324 \begin_layout Plain Layout
21333 \begin_layout Description
21334 \begin_inset Flex Code
21337 \begin_layout Plain Layout
21344 \begin_inset Flex Code
21347 \begin_layout Plain Layout
21358 \begin_inset Flex Code
21361 \begin_layout Plain Layout
21367 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
21368 \begin_inset Flex Code
21371 \begin_layout Plain Layout
21378 \begin_inset Flex Code
21381 \begin_layout Plain Layout
21390 \begin_layout Subsection
21394 \begin_layout Standard
21395 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
21399 \begin_layout Plain Layout
21400 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
21406 .ここでも,\SpecialChar LyX
21407 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
21410 \begin_layout Standard
21412 が差込枠用に出力するXHTMLは,以下の形を取ります.
21415 \begin_layout LyX-Code
21417 \begin_inset Quotes erd
21421 \begin_inset Quotes erd
21427 \begin_layout LyX-Code
21428 <labeltag>ラベル</labeltag>
21431 \begin_layout LyX-Code
21433 \begin_inset Quotes erd
21437 \begin_inset Quotes erd
21440 >差込枠の内容.</innertag>
21443 \begin_layout LyX-Code
21447 \begin_layout Standard
21449 \begin_inset Flex Code
21452 \begin_layout Plain Layout
21458 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
21459 labelタグは省略され,ラベルがあれば,現在のところ,つねに
21460 \begin_inset Flex Code
21463 \begin_layout Plain Layout
21469 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
21473 \begin_layout Description
21474 \begin_inset Flex Code
21477 \begin_layout Plain Layout
21484 \begin_inset Flex Code
21487 \begin_layout Plain Layout
21493 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21494 \begin_inset Flex Code
21497 \begin_layout Plain Layout
21498 class=`myinset' onclick=`\SpecialChar ldots
21504 」のようなものです.既定においては,\SpecialChar LyX
21506 \begin_inset Flex Code
21509 \begin_layout Plain Layout
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
21554 \begin_inset Flex Code
21557 \begin_layout Plain Layout
21563 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
21564 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
21565 \begin_inset Flex Code
21568 \begin_layout Plain Layout
21574 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
21575 \begin_inset Flex Code
21578 \begin_layout Plain Layout
21587 \begin_layout Description
21588 \begin_inset Flex Code
21591 \begin_layout Plain Layout
21598 \begin_inset Flex Code
21601 \begin_layout Plain Layout
21608 \begin_inset Flex Code
21611 \begin_layout Plain Layout
21620 \begin_layout Description
21621 \begin_inset Flex Code
21624 \begin_layout Plain Layout
21631 \begin_inset Flex Code
21634 \begin_layout Plain Layout
21641 \begin_inset Flex Code
21644 \begin_layout Plain Layout
21653 \begin_layout Description
21654 \begin_inset Flex Code
21657 \begin_layout Plain Layout
21664 \begin_inset Flex Code
21667 \begin_layout Plain Layout
21675 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
21678 \begin_layout Description
21679 \begin_inset Flex Code
21682 \begin_layout Plain Layout
21689 \begin_inset Flex Code
21692 \begin_layout Plain Layout
21698 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
21699 \begin_inset Flex Code
21702 \begin_layout Plain Layout
21710 など.これは非必須であり,既定値はありません.
21713 \begin_layout Description
21714 \begin_inset Flex Code
21717 \begin_layout Plain Layout
21724 \begin_inset Flex Code
21727 \begin_layout Plain Layout
21733 セクションに出力される情報.これは,たとえば,
21734 \begin_inset Flex Code
21737 \begin_layout Plain Layout
21744 \begin_inset Flex Code
21747 \begin_layout Plain Layout
21753 ブロックをインクルードするのに使用することができます.
21756 \begin_layout Description
21757 \begin_inset Flex Code
21760 \begin_layout Plain Layout
21766 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21767 \begin_inset Flex Code
21770 \begin_layout Plain Layout
21776 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21779 \begin_layout Description
21780 \begin_inset Flex Code
21783 \begin_layout Plain Layout
21790 \begin_inset Flex Code
21793 \begin_layout Plain Layout
21799 ] 主幹ラベルに使用されるタグ.上記各例の
21800 \begin_inset Flex Code
21803 \begin_layout Plain Layout
21810 \begin_inset Flex Code
21813 \begin_layout Plain Layout
21820 \begin_inset Flex Code
21823 \begin_layout Plain Layout
21830 \begin_inset Flex Code
21833 \begin_layout Plain Layout
21840 \begin_inset Flex Code
21843 \begin_layout Plain Layout
21852 \begin_layout Subsection
21856 \begin_layout Standard
21857 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
21860 \begin_layout LyX-Code
21862 \begin_inset Quotes erd
21866 \begin_inset Quotes erd
21872 \begin_layout LyX-Code
21876 \begin_layout LyX-Code
21880 \begin_layout Standard
21881 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
21885 \begin_layout Description
21886 \begin_inset Flex Code
21889 \begin_layout Plain Layout
21896 \begin_inset Flex Code
21899 \begin_layout Plain Layout
21905 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21906 \begin_inset Flex Code
21909 \begin_layout Plain Layout
21910 class=`myfloat' onclick=`\SpecialChar ldots
21916 」のようなものです.既定においては,\SpecialChar LyX
21918 \begin_inset Flex Code
21921 \begin_layout Plain Layout
21922 class=`float フロート-フロート型'
21928 \begin_inset Flex Code
21931 \begin_layout Plain Layout
21938 \begin_inset CommandInset ref
21940 reference "subsec:フロート"
21944 参照),この型のフロートの\SpecialChar LyX
21945 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
21948 \begin_layout Description
21949 \begin_inset Flex Code
21952 \begin_layout Plain Layout
21958 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21959 \begin_inset Flex Code
21962 \begin_layout Plain Layout
21968 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21971 \begin_layout Description
21972 \begin_inset Flex Code
21975 \begin_layout Plain Layout
21982 \begin_inset Flex Code
21985 \begin_layout Plain Layout
21991 ] このフロートに使用されるタグ.上記各例の
21992 \begin_inset Flex Code
21995 \begin_layout Plain Layout
22002 \begin_inset Flex Code
22005 \begin_layout Plain Layout
22011 であり,ほとんどの場合変更する必要はありません.
22014 \begin_layout Subsection
22018 \begin_layout Standard
22020 \begin_inset Flex Code
22023 \begin_layout Plain Layout
22029 ブロックを使用して整形することができます.詳細については,
22030 \begin_inset CommandInset ref
22032 reference "subsec:引用書式指定"
22039 \begin_layout Subsection
22044 \begin_layout Standard
22046 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
22048 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
22051 \begin_layout Standard
22054 \begin_inset Flex Code
22057 \begin_layout Plain Layout
22064 \begin_inset Flex Code
22067 \begin_layout Plain Layout
22074 \begin_inset Flex Code
22077 \begin_layout Plain Layout
22084 \begin_inset Flex Code
22087 \begin_layout Plain Layout
22094 \begin_inset Flex Code
22097 \begin_layout Plain Layout
22103 を利用して,フォント情報についてのみCSSを自動生成します(
22104 \begin_inset CommandInset ref
22106 reference "subsec:フォント指定"
22110 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
22111 \begin_inset Flex Code
22114 \begin_layout Plain Layout
22121 \begin_inset Flex Code
22124 \begin_layout Plain Layout
22125 font-family: sans-serif
22130 」になります.\SpecialChar LyX
22131 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
22132 \begin_inset Flex URL
22135 \begin_layout Plain Layout
22143 \begin_inset Flex Code
22146 \begin_layout Plain Layout
22155 \begin_layout Chapter
22157 \begin_inset CommandInset label
22159 name "chap:外部素材を取り込む"
22166 \begin_layout Standard
22167 \begin_inset Box Shadowbox
22177 height_special "totalheight"
22182 backgroundcolor "none"
22185 \begin_layout Plain Layout
22186 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
22194 \begin_layout Standard
22196 外部のソースから素材を使用する方法は,取扱説明書『
22200 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
22203 \begin_layout Section
22207 \begin_layout Standard
22208 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
22209 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
22211 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
22212 \begin_inset Flex MenuItem
22215 \begin_layout Plain Layout
22216 挿入\SpecialChar menuseparator
22217 ファイル\SpecialChar menuseparator
22223 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
22224 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
22225 の後の版に取り込むことができるようにしてくださることを希望します.
22228 \begin_layout Standard
22229 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
22231 \begin_inset Flex Code
22234 \begin_layout Plain Layout
22240 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
22241 \begin_inset Flex Code
22244 \begin_layout Plain Layout
22250 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
22251 \begin_inset Flex Code
22254 \begin_layout Plain Layout
22260 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
22261 ファイルにそのままインクルードできるように,
22262 \begin_inset Flex Code
22265 \begin_layout Plain Layout
22271 を呼び出してPostScriptファイルを生成します.この場合には,
22272 \begin_inset Flex Code
22275 \begin_layout Plain Layout
22281 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
22284 \begin_layout Standard
22285 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
22286 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
22287 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
22290 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
22293 \begin_layout Standard
22295 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
22296 の場合には,\SpecialChar LyX
22297 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
22298 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
22299 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
22303 \begin_layout Section
22307 \begin_layout Standard
22309 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
22310 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
22311 \begin_inset CommandInset ref
22313 reference "sec:セキュリティに関する論点"
22317 のセキュリティに関する議論を読んでおいてください.
22320 \begin_layout Standard
22321 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
22324 \begin_layout Standard
22326 \begin_inset Flex Code
22329 \begin_layout Plain Layout
22330 LyXDir/lib/xtemplates/
22336 \begin_inset Flex Code
22339 \begin_layout Plain Layout
22345 ファイルに定義されています.各ひな型は,そのファイル完結で定義されています.自分専用のひな型を
22346 \begin_inset Flex Code
22349 \begin_layout Plain Layout
22350 UserDir/xtemplates/
22355 に置くこともできますし,既存のひな型をそのデイレク取りにコピーして修正を加えることもできます.
22358 \begin_layout Standard
22359 典型的なひな型は以下のようになります.
22362 \begin_layout LyX-Code
22366 \begin_layout LyX-Code
22367 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22370 \begin_layout LyX-Code
22374 \begin_layout LyX-Code
22378 \begin_layout LyX-Code
22382 \begin_layout LyX-Code
22386 \begin_layout LyX-Code
22390 \begin_layout LyX-Code
22391 AutomaticProduction true
22394 \begin_layout LyX-Code
22398 \begin_layout LyX-Code
22402 \begin_layout LyX-Code
22406 \begin_layout LyX-Code
22407 TransformCommand Rotate RotationLatexCommand
22410 \begin_layout LyX-Code
22411 TransformCommand Resize ResizeLatexCommand
22414 \begin_layout LyX-Code
22415 Product "$$RotateFront$$ResizeFront
22418 \begin_layout LyX-Code
22423 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22426 \begin_layout LyX-Code
22427 $$ResizeBack$$RotateBack"
22430 \begin_layout LyX-Code
22434 \begin_layout LyX-Code
22435 UpdateResult "$$AbsPath$$Basename.pstex_t"
22438 \begin_layout LyX-Code
22439 Requirement "graphicx"
22442 \begin_layout LyX-Code
22443 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22446 \begin_layout LyX-Code
22447 ReferencedFile latex "$$AbsPath$$Basename.eps"
22450 \begin_layout LyX-Code
22451 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22454 \begin_layout LyX-Code
22458 \begin_layout LyX-Code
22462 \begin_layout LyX-Code
22463 TransformCommand Rotate RotationLatexCommand
22466 \begin_layout LyX-Code
22467 TransformCommand Resize ResizeLatexCommand
22470 \begin_layout LyX-Code
22471 Product "$$RotateFront$$ResizeFront
22474 \begin_layout LyX-Code
22479 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22482 \begin_layout LyX-Code
22483 $$ResizeBack$$RotateBack"
22486 \begin_layout LyX-Code
22487 UpdateFormat pdftex
22490 \begin_layout LyX-Code
22491 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22494 \begin_layout LyX-Code
22495 Requirement "graphicx"
22498 \begin_layout LyX-Code
22499 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22502 \begin_layout LyX-Code
22503 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22506 \begin_layout LyX-Code
22510 \begin_layout LyX-Code
22514 \begin_layout LyX-Code
22515 Product "$$Contents(
22517 "$$AbsPath$$Basename.asc
22522 \begin_layout LyX-Code
22523 UpdateFormat asciixfig
22526 \begin_layout LyX-Code
22527 UpdateResult "$$AbsPath$$Basename.asc"
22530 \begin_layout LyX-Code
22534 \begin_layout LyX-Code
22538 \begin_layout LyX-Code
22539 Product "<graphic fileref=
22541 "$$AbsOrRelPathMaster$$Basename.eps
22546 \begin_layout LyX-Code
22550 \begin_layout LyX-Code
22554 \begin_layout LyX-Code
22555 UpdateResult "$$AbsPath$$Basename.eps"
22558 \begin_layout LyX-Code
22559 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22562 \begin_layout LyX-Code
22563 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22566 \begin_layout LyX-Code
22570 \begin_layout LyX-Code
22571 Product "[XFig: $$FName]"
22574 \begin_layout LyX-Code
22578 \begin_layout LyX-Code
22582 \begin_layout Standard
22584 \begin_inset Flex Code
22587 \begin_layout Plain Layout
22595 \begin_inset Flex Code
22598 \begin_layout Plain Layout
22604 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
22605 \begin_inset Flex Code
22608 \begin_layout Plain Layout
22616 \begin_inset Flex Code
22619 \begin_layout Plain Layout
22628 \begin_layout Subsection
22632 \begin_layout Description
22633 \begin_inset Flex Code
22636 \begin_layout Plain Layout
22637 AutomaticProduction
22638 \begin_inset space ~
22646 このひな型で扱うファイルを\SpecialChar LyX
22647 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
22650 \begin_layout Description
22651 \begin_inset Flex Code
22654 \begin_layout Plain Layout
22656 \begin_inset space ~
22664 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
22665 \begin_inset Flex Code
22668 \begin_layout Plain Layout
22675 \begin_inset Flex Code
22678 \begin_layout Plain Layout
22685 \begin_inset Flex Code
22688 \begin_layout Plain Layout
22694 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
22697 \begin_layout Description
22698 \begin_inset Flex Code
22701 \begin_layout Plain Layout
22703 \begin_inset space ~
22711 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
22714 \begin_layout Description
22715 \begin_inset Flex Code
22718 \begin_layout Plain Layout
22720 \begin_inset space ~
22724 \begin_inset space ~
22732 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
22736 \begin_layout Description
22737 \begin_inset Flex Code
22740 \begin_layout Plain Layout
22742 \begin_inset space ~
22750 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
22751 が知っている書式名でなくてはなりません(
22752 \begin_inset CommandInset ref
22754 reference "sec:ファイル形式"
22758 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
22759 \begin_inset Flex Code
22762 \begin_layout Plain Layout
22768 」を使用してください.この場合,\SpecialChar LyX
22769 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
22772 \begin_layout Description
22773 \begin_inset Flex Code
22776 \begin_layout Plain Layout
22778 \begin_inset space ~
22786 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
22789 \begin_layout Description
22790 \begin_inset Flex Code
22793 \begin_layout Plain Layout
22795 \begin_inset space ~
22798 Rotate|Resize|Clip|Extra
22803 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
22804 ログ中の対応するタブを使用可能にします.
22805 \begin_inset Flex Code
22808 \begin_layout Plain Layout
22815 \begin_inset Flex Code
22818 \begin_layout Plain Layout
22825 \begin_inset Flex Code
22828 \begin_layout Plain Layout
22835 \begin_inset Flex Code
22838 \begin_layout Plain Layout
22844 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
22847 \begin_layout Subsection
22848 \begin_inset Flex Code
22851 \begin_layout Plain Layout
22860 \begin_layout Description
22861 \begin_inset Flex Code
22864 \begin_layout Plain Layout
22866 \begin_inset space ~
22869 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
22874 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
22875 \begin_inset Flex Code
22878 \begin_layout Plain Layout
22884 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
22888 \begin_layout Description
22889 \begin_inset Flex Code
22892 \begin_layout Plain Layout
22894 \begin_inset space ~
22898 \begin_inset space ~
22907 \begin_inset Flex Code
22910 \begin_layout Plain Layout
22917 \begin_inset Flex Code
22920 \begin_layout Plain Layout
22927 \begin_inset Flex Code
22930 \begin_layout Plain Layout
22936 自体にも代入マクロを使うことができます.
22937 \begin_inset Flex Code
22940 \begin_layout Plain Layout
22947 \begin_inset Flex Code
22950 \begin_layout Plain Layout
22957 \begin_inset Flex Code
22960 \begin_layout Plain Layout
22966 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
22969 \begin_layout Description
22970 \begin_inset Flex Code
22973 \begin_layout Plain Layout
22975 \begin_inset space ~
22983 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
22987 \begin_layout Description
22988 \begin_inset Flex Code
22991 \begin_layout Plain Layout
22993 \begin_inset space ~
23001 このコマンドは,\SpecialChar LaTeX
23002 プリアンブルに入れるプリアンブル片を指定します.これは
23003 \begin_inset Flex Code
23006 \begin_layout Plain Layout
23014 \begin_inset Flex Code
23017 \begin_layout Plain Layout
23023 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
23026 \begin_layout Description
23027 \begin_inset Flex Code
23030 \begin_layout Plain Layout
23032 \begin_inset space ~
23036 \begin_inset space ~
23044 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
23045 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
23048 \begin_layout Description
23049 \begin_inset Flex Code
23052 \begin_layout Plain Layout
23054 \begin_inset space ~
23062 必要とされる\SpecialChar LaTeX
23063 パッケージ名.パッケージは,\SpecialChar LaTeX
23065 \begin_inset Flex Code
23068 \begin_layout Plain Layout
23076 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
23079 \begin_layout Description
23080 \begin_inset Flex Code
23083 \begin_layout Plain Layout
23085 \begin_inset space ~
23089 \begin_inset space ~
23092 RotationLatexCommand
23097 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
23098 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23101 \begin_layout Description
23102 \begin_inset Flex Code
23105 \begin_layout Plain Layout
23107 \begin_inset space ~
23111 \begin_inset space ~
23119 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
23120 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23123 \begin_layout Description
23124 \begin_inset Flex Code
23127 \begin_layout Plain Layout
23129 \begin_inset space ~
23133 \begin_inset space ~
23136 RotationLatexOption
23141 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23144 \begin_layout Description
23145 \begin_inset Flex Code
23148 \begin_layout Plain Layout
23150 \begin_inset space ~
23154 \begin_inset space ~
23162 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23165 \begin_layout Description
23166 \begin_inset Flex Code
23169 \begin_layout Plain Layout
23171 \begin_inset space ~
23175 \begin_inset space ~
23183 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23186 \begin_layout Description
23187 \begin_inset Flex Code
23190 \begin_layout Plain Layout
23192 \begin_inset space ~
23196 \begin_inset space ~
23204 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
23207 \begin_layout Description
23208 \begin_inset Flex Code
23211 \begin_layout Plain Layout
23213 \begin_inset space ~
23221 変換されたファイルのファイル形式.これは,\SpecialChar LyX
23222 が知っている書式名でなくてはなりません(
23223 \begin_inset Flex MenuItem
23226 \begin_layout Plain Layout
23227 ツール\SpecialChar menuseparator
23228 設定\SpecialChar menuseparator
23229 ファイル処理\SpecialChar menuseparator
23235 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
23236 \begin_inset Flex Code
23239 \begin_layout Plain Layout
23245 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
23248 \begin_layout Description
23249 \begin_inset Flex Code
23252 \begin_layout Plain Layout
23254 \begin_inset space ~
23262 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
23265 \begin_layout Subsection
23269 \begin_layout Standard
23271 \begin_inset Flex Code
23274 \begin_layout Plain Layout
23282 \begin_inset Flex Code
23285 \begin_layout Plain Layout
23291 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
23292 \begin_inset Flex Code
23295 \begin_layout Plain Layout
23304 \begin_layout Section
23308 \begin_layout Standard
23309 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
23310 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
23313 \begin_layout Standard
23314 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
23317 \begin_layout Standard
23321 \begin_layout Description
23322 \begin_inset Flex Code
23325 \begin_layout Plain Layout
23326 $$AbsOrRelPathMaster
23332 親文書への絶対ファイルパスないしは相対ファイルパス
23335 \begin_layout Description
23336 \begin_inset Flex Code
23339 \begin_layout Plain Layout
23340 $$AbsOrRelPathParent
23346 文書への絶対ファイルパスないしは相対ファイルパス
23349 \begin_layout Description
23350 \begin_inset Flex Code
23353 \begin_layout Plain Layout
23362 \begin_layout Description
23363 \begin_inset Flex Code
23366 \begin_layout Plain Layout
23375 \begin_layout Description
23376 \begin_inset Flex Code
23379 \begin_layout Plain Layout
23381 \begin_inset Quotes eld
23385 \begin_inset Quotes erd
23394 \begin_inset Flex Code
23397 \begin_layout Plain Layout
23403 と云う名のファイルの中身を展開します.
23406 \begin_layout Description
23407 \begin_inset Flex Code
23410 \begin_layout Plain Layout
23419 \begin_layout Description
23420 \begin_inset Flex Code
23423 \begin_layout Plain Layout
23429 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
23430 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
23431 出力形式に対してこのマクロを使用します.
23434 \begin_layout Description
23435 \begin_inset Flex Code
23438 \begin_layout Plain Layout
23444 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
23445 文書への絶対パスでも良いですし,相対パスでも構いません.
23448 \begin_layout Description
23449 \begin_inset Flex Code
23452 \begin_layout Plain Layout
23459 \begin_inset Flex Code
23462 \begin_layout Plain Layout
23468 のパス部分(\SpecialChar LyX
23472 \begin_layout Description
23473 \begin_inset Flex Code
23476 \begin_layout Plain Layout
23486 \begin_layout Description
23487 \begin_inset Flex Code
23490 \begin_layout Plain Layout
23500 \begin_layout Description
23501 \begin_inset Flex Code
23504 \begin_layout Plain Layout
23510 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
23511 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
23514 \begin_layout Description
23515 \begin_inset Flex Code
23518 \begin_layout Plain Layout
23524 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
23527 \begin_layout Standard
23528 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
23529 \begin_inset Flex Code
23532 \begin_layout Plain Layout
23533 $$AbsPath$$Basename$$Extension
23541 \begin_layout Standard
23542 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
23543 \begin_inset Flex Code
23546 \begin_layout Plain Layout
23553 \begin_inset Flex Code
23556 \begin_layout Plain Layout
23563 \begin_inset Flex Code
23566 \begin_layout Plain Layout
23572 コマンドは,これらに加えて以下の代入もサポートします.
23575 \begin_layout Description
23576 \begin_inset Flex Code
23579 \begin_layout Plain Layout
23588 \begin_layout Description
23589 \begin_inset Flex Code
23592 \begin_layout Plain Layout
23601 \begin_layout Description
23602 \begin_inset Flex Code
23605 \begin_layout Plain Layout
23614 \begin_layout Description
23615 \begin_inset Flex Code
23618 \begin_layout Plain Layout
23627 \begin_layout Standard
23628 \begin_inset Flex Code
23631 \begin_layout Plain Layout
23638 \begin_inset Flex Code
23641 \begin_layout Plain Layout
23648 \begin_inset Flex Code
23651 \begin_layout Plain Layout
23657 コマンドが有効にされていれば,以下の代入もサポートされます.
23660 \begin_layout Description
23661 \begin_inset Flex Code
23664 \begin_layout Plain Layout
23673 \begin_layout Description
23674 \begin_inset Flex Code
23677 \begin_layout Plain Layout
23686 \begin_layout Description
23687 \begin_inset Flex Code
23690 \begin_layout Plain Layout
23699 \begin_layout Description
23700 \begin_inset Flex Code
23703 \begin_layout Plain Layout
23712 \begin_layout Standard
23713 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
23716 \begin_layout Enumerate
23717 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
23718 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
23721 \begin_layout Enumerate
23723 は,相対ファイル名に関して,\SpecialChar LyX
23724 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
23725 にとって相対ファイル名とは,常にこのファイル名が書か
23726 れている文書に対して相対的なものになります.\SpecialChar LaTeX
23727 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
23728 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
23729 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
23730 を選びさえすれば,これは\SpecialChar LyX
23734 \begin_layout Standard
23735 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
23738 \begin_layout Itemize
23740 \begin_inset Flex Code
23743 \begin_layout Plain Layout
23752 \begin_layout Itemize
23753 代入された文字列が,\SpecialChar LaTeX
23755 \begin_inset Flex Code
23758 \begin_layout Plain Layout
23759 $$AbsOrRelPathMaster
23767 \begin_layout Itemize
23768 それ以外ならば,ユーザの選択を尊重するために
23769 \begin_inset Flex Code
23772 \begin_layout Plain Layout
23773 $$AbsOrRelPathParent
23781 \begin_layout Standard
23782 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
23783 \begin_inset Flex Code
23786 \begin_layout Plain Layout
23787 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23793 \begin_inset Flex Code
23796 \begin_layout Plain Layout
23802 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
23805 \begin_layout Section
23807 \begin_inset CommandInset label
23809 name "sec:セキュリティに関する論点"
23816 \begin_layout Standard
23817 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
23818 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
23819 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
23822 \begin_layout Standard
23823 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
23824 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
23826 \begin_inset Flex Code
23829 \begin_layout Plain Layout
23836 \begin_inset Flex Code
23839 \begin_layout Plain Layout
23845 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
23848 \begin_layout Standard
23849 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
23850 できません.これは,\SpecialChar LyX
23851 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
23852 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
23855 \begin_layout Standard
23856 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
23857 うになるため,一般的には,統御下に置いた状態で
23858 \begin_inset Flex Code
23861 \begin_layout Plain Layout
23867 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
23868 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
23872 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
23873 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
23874 には,安全でないひな型は決して入っていません
23878 \begin_layout Standard
23879 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
23880 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
23881 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
23882 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
23883 使用する前に,行うようにしてください.
23886 \begin_layout Chapter
23888 サポートされているレイアウト用\SpecialChar LyX
23890 \begin_inset CommandInset label
23899 \begin_layout Standard
23901 \begin_inset Tabular
23902 <lyxtabular version="3" rows="11" columns="8">
23903 <features tabularvalignment="middle">
23904 <column alignment="left" valignment="top">
23905 <column alignment="left" valignment="top">
23906 <column alignment="left" valignment="top">
23907 <column alignment="left" valignment="top">
23908 <column alignment="left" valignment="top">
23909 <column alignment="left" valignment="top">
23910 <column alignment="left" valignment="top">
23911 <column alignment="left" valignment="top">
23913 <cell alignment="left" valignment="top" usebox="none">
23916 \begin_layout Plain Layout
23922 <cell alignment="left" valignment="top" usebox="none">
23925 \begin_layout Plain Layout
23931 <cell alignment="left" valignment="top" usebox="none">
23934 \begin_layout Plain Layout
23940 <cell alignment="left" valignment="top" usebox="none">
23943 \begin_layout Plain Layout
23949 <cell alignment="center" valignment="top" usebox="none">
23952 \begin_layout Plain Layout
23958 <cell alignment="center" valignment="top" usebox="none">
23961 \begin_layout Plain Layout
23967 <cell alignment="center" valignment="top" usebox="none">
23970 \begin_layout Plain Layout
23976 <cell alignment="center" valignment="top" usebox="none">
23979 \begin_layout Plain Layout
23987 <cell alignment="left" valignment="top" usebox="none">
23990 \begin_layout Plain Layout
23996 <cell alignment="left" valignment="top" usebox="none">
23999 \begin_layout Plain Layout
24005 <cell alignment="left" valignment="top" usebox="none">
24008 \begin_layout Plain Layout
24014 <cell alignment="left" valignment="top" usebox="none">
24017 \begin_layout Plain Layout
24023 <cell alignment="center" valignment="top" usebox="none">
24026 \begin_layout Plain Layout
24032 <cell alignment="center" valignment="top" usebox="none">
24035 \begin_layout Plain Layout
24041 <cell alignment="center" valignment="top" usebox="none">
24044 \begin_layout Plain Layout
24050 <cell alignment="center" valignment="top" usebox="none">
24053 \begin_layout Plain Layout
24061 <cell alignment="left" valignment="top" usebox="none">
24064 \begin_layout Plain Layout
24070 <cell alignment="left" valignment="top" usebox="none">
24073 \begin_layout Plain Layout
24079 <cell alignment="left" valignment="top" usebox="none">
24082 \begin_layout Plain Layout
24088 <cell alignment="left" valignment="top" usebox="none">
24091 \begin_layout Plain Layout
24097 <cell alignment="center" valignment="top" usebox="none">
24100 \begin_layout Plain Layout
24106 <cell alignment="center" valignment="top" usebox="none">
24109 \begin_layout Plain Layout
24115 <cell alignment="center" valignment="top" usebox="none">
24118 \begin_layout Plain Layout
24124 <cell alignment="center" valignment="top" usebox="none">
24127 \begin_layout Plain Layout
24135 <cell alignment="left" valignment="top" usebox="none">
24138 \begin_layout Plain Layout
24144 <cell alignment="left" valignment="top" usebox="none">
24147 \begin_layout Plain Layout
24153 <cell alignment="left" valignment="top" usebox="none">
24156 \begin_layout Plain Layout
24162 <cell alignment="left" valignment="top" usebox="none">
24165 \begin_layout Plain Layout
24171 <cell alignment="center" valignment="top" usebox="none">
24174 \begin_layout Plain Layout
24180 <cell alignment="center" valignment="top" usebox="none">
24183 \begin_layout Plain Layout
24189 <cell alignment="center" valignment="top" usebox="none">
24192 \begin_layout Plain Layout
24198 <cell alignment="center" valignment="top" usebox="none">
24201 \begin_layout Plain Layout
24209 <cell alignment="left" valignment="top" usebox="none">
24212 \begin_layout Plain Layout
24218 <cell alignment="left" valignment="top" usebox="none">
24221 \begin_layout Plain Layout
24227 <cell alignment="left" valignment="top" usebox="none">
24230 \begin_layout Plain Layout
24236 <cell alignment="left" valignment="top" usebox="none">
24239 \begin_layout Plain Layout
24245 <cell alignment="center" valignment="top" usebox="none">
24248 \begin_layout Plain Layout
24254 <cell alignment="center" valignment="top" usebox="none">
24257 \begin_layout Plain Layout
24263 <cell alignment="center" valignment="top" usebox="none">
24266 \begin_layout Plain Layout
24272 <cell alignment="center" valignment="top" usebox="none">
24275 \begin_layout Plain Layout
24283 <cell alignment="left" valignment="top" usebox="none">
24286 \begin_layout Plain Layout
24292 <cell alignment="left" valignment="top" usebox="none">
24295 \begin_layout Plain Layout
24301 <cell alignment="left" valignment="top" usebox="none">
24304 \begin_layout Plain Layout
24310 <cell alignment="left" valignment="top" usebox="none">
24313 \begin_layout Plain Layout
24319 <cell alignment="center" valignment="top" usebox="none">
24322 \begin_layout Plain Layout
24328 <cell alignment="center" valignment="top" usebox="none">
24331 \begin_layout Plain Layout
24337 <cell alignment="center" valignment="top" usebox="none">
24340 \begin_layout Plain Layout
24346 <cell alignment="center" valignment="top" usebox="none">
24349 \begin_layout Plain Layout
24357 <cell alignment="left" valignment="top" usebox="none">
24360 \begin_layout Plain Layout
24366 <cell alignment="left" valignment="top" usebox="none">
24369 \begin_layout Plain Layout
24375 <cell alignment="left" valignment="top" usebox="none">
24378 \begin_layout Plain Layout
24384 <cell alignment="left" valignment="top" usebox="none">
24387 \begin_layout Plain Layout
24393 <cell alignment="center" valignment="top" usebox="none">
24396 \begin_layout Plain Layout
24402 <cell alignment="center" valignment="top" usebox="none">
24405 \begin_layout Plain Layout
24411 <cell alignment="center" valignment="top" usebox="none">
24414 \begin_layout Plain Layout
24420 <cell alignment="center" valignment="top" usebox="none">
24423 \begin_layout Plain Layout
24431 <cell alignment="left" valignment="top" usebox="none">
24434 \begin_layout Plain Layout
24440 <cell alignment="left" valignment="top" usebox="none">
24443 \begin_layout Plain Layout
24449 <cell alignment="left" valignment="top" usebox="none">
24452 \begin_layout Plain Layout
24458 <cell alignment="left" valignment="top" usebox="none">
24461 \begin_layout Plain Layout
24467 <cell alignment="center" valignment="top" usebox="none">
24470 \begin_layout Plain Layout
24476 <cell alignment="center" valignment="top" usebox="none">
24479 \begin_layout Plain Layout
24485 <cell alignment="center" valignment="top" usebox="none">
24488 \begin_layout Plain Layout
24494 <cell alignment="center" valignment="top" usebox="none">
24497 \begin_layout Plain Layout
24505 <cell alignment="left" valignment="top" usebox="none">
24508 \begin_layout Plain Layout
24514 <cell alignment="left" valignment="top" usebox="none">
24517 \begin_layout Plain Layout
24523 <cell alignment="left" valignment="top" usebox="none">
24526 \begin_layout Plain Layout
24532 <cell alignment="left" valignment="top" usebox="none">
24535 \begin_layout Plain Layout
24541 <cell alignment="center" valignment="top" usebox="none">
24544 \begin_layout Plain Layout
24550 <cell alignment="center" valignment="top" usebox="none">
24553 \begin_layout Plain Layout
24559 <cell alignment="center" valignment="top" usebox="none">
24562 \begin_layout Plain Layout
24568 <cell alignment="center" valignment="top" usebox="none">
24571 \begin_layout Plain Layout
24579 <cell alignment="left" valignment="top" usebox="none">
24582 \begin_layout Plain Layout
24588 <cell alignment="left" valignment="top" usebox="none">
24591 \begin_layout Plain Layout
24597 <cell alignment="left" valignment="top" usebox="none">
24600 \begin_layout Plain Layout
24606 <cell alignment="left" valignment="top" usebox="none">
24609 \begin_layout Plain Layout
24615 <cell alignment="center" valignment="top" usebox="none">
24618 \begin_layout Plain Layout
24624 <cell alignment="center" valignment="top" usebox="none">
24627 \begin_layout Plain Layout
24633 <cell alignment="center" valignment="top" usebox="none">
24636 \begin_layout Plain Layout
24642 <cell alignment="center" valignment="top" usebox="none">
24645 \begin_layout Plain Layout
24653 <cell alignment="center" valignment="top" usebox="none">
24656 \begin_layout Plain Layout
24662 <cell alignment="center" valignment="top" usebox="none">
24665 \begin_layout Plain Layout
24671 <cell alignment="center" valignment="top" usebox="none">
24674 \begin_layout Plain Layout
24680 <cell alignment="center" valignment="top" usebox="none">
24683 \begin_layout Plain Layout
24689 <cell alignment="center" valignment="top" usebox="none">
24692 \begin_layout Plain Layout
24698 <cell alignment="center" valignment="top" usebox="none">
24701 \begin_layout Plain Layout
24707 <cell alignment="center" valignment="top" usebox="none">
24710 \begin_layout Plain Layout
24716 <cell alignment="center" valignment="top" usebox="none">
24719 \begin_layout Plain Layout
24733 \begin_layout Chapter
24735 \begin_inset CommandInset label
24744 \begin_layout Standard
24745 ここに列挙されている色は標準色であり,\SpecialChar LyX
24749 \begin_layout Section
24755 \begin_layout Standard
24758 The following are no real colors, but rather act on color definitions:
24761 \begin_layout Description
24765 \begin_layout Description
24769 \begin_layout Description
24774 特定の色ではありません – 透明か既定色です
24777 \begin_layout Section
24783 \begin_layout Standard
24786 These are fixed colors that cannot me customized:
24789 \begin_layout Description
24793 \begin_layout Description
24797 \begin_layout Description
24801 \begin_layout Description
24805 \begin_layout Description
24809 \begin_layout Description
24813 \begin_layout Description
24817 \begin_layout Description
24821 \begin_layout Description
24825 \begin_layout Description
24829 \begin_layout Description
24833 \begin_layout Description
24837 \begin_layout Description
24841 \begin_layout Description
24845 \begin_layout Description
24849 \begin_layout Description
24853 \begin_layout Description
24857 \begin_layout Description
24861 \begin_layout Description
24865 \begin_layout Section
24871 \begin_layout Standard
24874 These are the colors allocated to specific elements in
24877 \begin_inset Flex MenuItem
24880 \begin_layout Plain Layout
24881 ツール\SpecialChar menuseparator
24890 \begin_layout Description
24894 \begin_layout Description
24898 \begin_layout Description
24902 \begin_layout Description
24906 \begin_layout Description
24910 \begin_layout Description
24911 branchlabel 派生枝ラベル色
24914 \begin_layout Description
24918 \begin_layout Description
24922 \begin_layout Description
24923 buttonhoverbg フォーカスを得ているボタンの背景色
24926 \begin_layout Description
24930 \begin_layout Description
24931 changedtextauthor1 変更された文章:第1著者の色
24934 \begin_layout Description
24935 changedtextauthor2 変更された文章:第2著者の色
24938 \begin_layout Description
24939 changedtextauthor3 変更された文章:第3著者の色
24942 \begin_layout Description
24943 changedtextauthor4 変更された文章:第4著者の色
24946 \begin_layout Description
24947 changedtextauthor5 変更された文章:第5著者の色
24950 \begin_layout Description
24951 collapsibletext 畳み込み可能枠の文字色
24954 \begin_layout Description
24955 collapsibleframe 畳み込み可能枠の縁色
24958 \begin_layout Description
24959 command コマンド差込枠の文字色
24962 \begin_layout Description
24963 commandbg コマンド差込枠の背景色
24966 \begin_layout Description
24967 commandframe コマンド差込枠の縁色
24970 \begin_layout Description
24974 \begin_layout Description
24978 \begin_layout Description
24982 \begin_layout Description
24983 deletedtext 削除された文章の色
24986 \begin_layout Description
24987 deletedtextmodifier 削除された文章の修飾子の色
24990 \begin_layout Description
24991 depthbar 余白部の階層表示線の色
24994 \begin_layout Description
24998 \begin_layout Description
24999 error \SpecialChar LaTeX
25003 \begin_layout Description
25007 \begin_layout Description
25013 \begin_layout Description
25014 graphicsbg 画像差込枠の背景色
25017 \begin_layout Description
25018 greyedoutbg 淡色表示差込枠の背景色
25021 \begin_layout Description
25022 greyedoutlabel 淡色表示差込枠のラベル色
25025 \begin_layout Description
25026 greyedouttext 淡色表示差込枠の文字色
25029 \begin_layout Description
25030 indexlabel 索引差込枠のラベル色
25033 \begin_layout Description
25034 inlinecompletion 行内補完色
25037 \begin_layout Description
25041 \begin_layout Description
25045 \begin_layout Description
25046 language 外国語の単語を標識するための色
25049 \begin_layout Description
25050 latex \SpecialChar LaTeX
25054 \begin_layout Description
25055 listingsbg プログラムリスト差込枠の背景色
25058 \begin_layout Description
25059 marginlabel 傍註のラベル色
25062 \begin_layout Description
25066 \begin_layout Description
25070 \begin_layout Description
25071 mathcorners フォーカスを得ていない数式差込枠の縁色
25074 \begin_layout Description
25075 mathframe フォーカスを得ている数式差込枠の縁色
25078 \begin_layout Description
25082 \begin_layout Description
25083 mathmacrobg 数式マクロ差込枠の背景色
25086 \begin_layout Description
25087 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
25090 \begin_layout Description
25091 mathmacroframe 数式マクロ差込枠の縁色
25094 \begin_layout Description
25095 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
25098 \begin_layout Description
25099 mathmacrolabel 数式マクロ差込枠のラベル色
25102 \begin_layout Description
25103 mathmacronewarg 数式マクロ新パラメーターのひな型色
25106 \begin_layout Description
25107 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
25110 \begin_layout Description
25114 \begin_layout Description
25115 nonunique_inlinecompletion 行内補完の一意でない部分の色
25118 \begin_layout Description
25122 \begin_layout Description
25126 \begin_layout Description
25130 \begin_layout Description
25131 paragraphmarker 段落末を標識するための段落標の色
25134 \begin_layout Description
25135 phantomtext 埋め草差込枠の文字色
25138 \begin_layout Description
25139 preview プレビューに用いられる色
25142 \begin_layout Description
25143 previewframe プレビュー縁色
25146 \begin_layout Description
25147 regexpframe 正規表現枠の色
25150 \begin_layout Description
25153 Color that indicates when a row can be scrolled
25156 \begin_layout Description
25157 selection 文章選択部の背景色
25160 \begin_layout Description
25161 selectiontext 文章選択部の前景色
25164 \begin_layout Description
25165 shadedbg 影付きボックスの背景色
25168 \begin_layout Description
25172 \begin_layout Description
25176 \begin_layout Description
25177 tabularonoffline 罫線色
25180 \begin_layout Description
25181 urllabel URL差込枠のラベル色
25184 \begin_layout Description