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#PO-Mode
2959 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2960 \begin_inset Flex Ruby
2963 \begin_layout Plain Layout
2965 \begin_inset Argument post:1
2968 \begin_layout Plain Layout
2979 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2980 \begin_inset Flex Code
2983 \begin_layout Plain Layout
2989 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2992 \begin_layout Standard
2993 もし,あなたがこれを自身のためだけに行っているのであれば,
2996 \begin_layout Itemize
2997 \begin_inset Flex Code
3000 \begin_layout Plain Layout
3007 \begin_inset Flex Code
3010 \begin_layout Plain Layout
3011 msgfmt -o xx.mo < xx.po
3019 \begin_layout Itemize
3021 \begin_inset Flex Code
3024 \begin_layout Plain Layout
3030 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3031 \begin_inset Flex Code
3034 \begin_layout Plain Layout
3041 \begin_inset Flex Code
3044 \begin_layout Plain Layout
3045 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3053 \begin_layout Standard
3055 \begin_inset Flex Code
3058 \begin_layout Plain Layout
3064 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3065 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3066 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3070 \begin_layout Subsubsection
3074 \begin_layout Standard
3075 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3076 \begin_inset Flex Code
3079 \begin_layout Plain Layout
3085 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3086 \begin_inset Flex Code
3089 \begin_layout Plain Layout
3096 \begin_inset Flex Code
3099 \begin_layout Plain Layout
3106 \begin_inset Flex Code
3109 \begin_layout Plain Layout
3110 To[[as in 'From format x to format y']]
3116 \begin_inset Flex Code
3119 \begin_layout Plain Layout
3120 To[[as in 'From page x to page y']]
3125 としなくてはなりません.これによって,これら2つの
3126 \begin_inset Flex Code
3129 \begin_layout Plain Layout
3136 \begin_inset Flex Code
3139 \begin_layout Plain Layout
3145 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3148 \begin_layout Standard
3149 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3151 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3154 \begin_layout Subsection
3158 \begin_layout Standard
3160 \begin_inset Flex MenuItem
3163 \begin_layout Plain Layout
3169 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3173 \begin_layout Plain Layout
3174 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3179 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3180 はこれを自動的に使用します.\SpecialChar LyX
3182 \begin_inset Flex Code
3185 \begin_layout Plain Layout
3186 LyXDir/doc/xx/DocName.lyx
3192 \begin_inset Flex Code
3195 \begin_layout Plain Layout
3201 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3202 \begin_inset Flex Code
3205 \begin_layout Plain Layout
3211 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3215 \begin_layout Itemize
3217 \begin_inset CommandInset href
3219 name "https://www.lyx.org/Translation"
3220 target "https://www.lyx.org/Translation"
3225 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3226 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3229 \begin_layout Standard
3230 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3233 \begin_layout Itemize
3234 文書化チームに所属してください!そのための情報が
3235 \begin_inset Flex Code
3238 \begin_layout Plain Layout
3245 \begin_inset Flex MenuItem
3248 \begin_layout Plain Layout
3249 ヘルプ\SpecialChar menuseparator
3256 \begin_inset Flex Code
3259 \begin_layout Plain Layout
3268 \begin_layout Itemize
3269 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3270 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3272 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3277 \begin_layout Itemize
3278 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3279 \begin_inset Flex Code
3282 \begin_layout Plain Layout
3288 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3289 \begin_inset Newline newline
3293 \begin_inset Note Greyedout
3296 \begin_layout Plain Layout
3301 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3302 ことに注意してください.最も良い方法は,LyXツリーをgit (
3303 \begin_inset Flex URL
3306 \begin_layout Plain Layout
3308 https://www.lyx.org/HowToUseGIT
3313 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3321 \begin_layout Itemize
3323 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3324 \begin_inset CommandInset href
3326 name "https://www.lyx.org/trac/timeline"
3327 target "https://www.lyx.org/trac/timeline"
3332 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3335 \begin_layout Standard
3336 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3339 \begin_layout Standard
3340 \begin_inset Branch OutDated
3344 \begin_layout Section
3345 International Keyboard Support
3348 \begin_layout Standard
3351 [Editor's Note: The following section is by
3359 It needs to be fixed to conform to the new Documentation Style sheet and
3360 to make use of the new v1.0 features.
3361 The whole thing also needs to be merged with the section following it.-jw
3362 It may also be badly out of date.-rh (2008)]
3365 \begin_layout Subsection
3366 Defining Own Keymaps: Keymap File Format
3369 \begin_layout Standard
3370 Let's look at a keyboard definition file a little closer.
3371 It is a plain text file defining
3374 \begin_layout Itemize
3375 key-to-key or key-to-string translations
3378 \begin_layout Itemize
3382 \begin_layout Itemize
3383 dead keys exceptions
3386 \begin_layout Standard
3387 To define key-to-key or key-to-string translation, use this command:
3390 \begin_layout Quotation
3391 \begin_inset Flex Code
3394 \begin_layout Plain Layout
3403 \begin_inset Flex Code
3406 \begin_layout Plain Layout
3415 \begin_layout Standard
3417 \begin_inset Flex Code
3420 \begin_layout Plain Layout
3426 is the key to be translated and
3427 \begin_inset Flex Code
3430 \begin_layout Plain Layout
3436 is the string to be inserted into the document.
3437 To define dead keys, use:
3440 \begin_layout Quotation
3441 \begin_inset Flex Code
3444 \begin_layout Plain Layout
3453 \begin_inset Flex Code
3456 \begin_layout Plain Layout
3465 \begin_layout Standard
3467 \begin_inset Flex Code
3470 \begin_layout Plain Layout
3476 is a keyboard key and
3477 \begin_inset Flex Code
3480 \begin_layout Plain Layout
3487 The following dead keys are supported (shortcut name is in parentheses):
3490 \begin_layout Quotation
3494 \begin_inset space \hfill{}
3500 \begin_layout Quotation
3502 \begin_inset space \hfill{}
3510 \begin_layout Quotation
3512 \begin_inset space \hfill{}
3520 \begin_layout Quotation
3522 \begin_inset space \hfill{}
3530 \begin_layout Quotation
3532 \begin_inset space \hfill{}
3540 \begin_layout Quotation
3542 \begin_inset space \hfill{}
3549 \begin_layout Plain Layout
3561 \begin_layout Quotation
3563 \begin_inset space \hfill{}
3571 \begin_layout Quotation
3573 \begin_inset space \hfill{}
3580 \begin_layout Plain Layout
3592 \begin_layout Quotation
3594 \begin_inset space \hfill{}
3602 \begin_layout Quotation
3604 \begin_inset space \hfill{}
3612 \begin_layout Quotation
3614 \begin_inset space \hfill{}
3621 \begin_layout Plain Layout
3633 \begin_layout Quotation
3635 \begin_inset space \hfill{}
3646 \begin_layout Plain Layout
3658 \begin_layout Quotation
3660 \begin_inset space \hfill{}
3668 \begin_layout Quotation
3669 hungarian umlaut (hug)
3670 \begin_inset space \hfill{}
3678 \begin_layout Quotation
3680 \begin_inset space \hfill{}
3688 \begin_layout Quotation
3690 \begin_inset space \hfill{}
3701 \begin_layout Plain Layout
3713 \begin_layout Standard
3714 Since in many international keyboards there are exceptions to what some
3715 dead keys should do, you can define them using
3718 \begin_layout Quotation
3719 \begin_inset Flex Code
3722 \begin_layout Plain Layout
3730 deadkey key outstring
3733 \begin_layout Standard
3734 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3738 \begin_layout Quotation
3739 \begin_inset Flex Code
3742 \begin_layout Plain Layout
3755 \begin_layout Standard
3756 to make it work correctly.
3757 Also, you have to define as exceptions dead keys over i and j, to remove
3758 the dot from them before inserting an accent mark.
3759 I will change this when the time comes, but so far I haven't had time.
3762 \begin_layout Standard
3763 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3766 \begin_inset Flex Code
3769 \begin_layout Plain Layout
3775 have different meaning.
3777 \begin_inset Flex Code
3780 \begin_layout Plain Layout
3786 marks comments, quotes start and end \SpecialChar LaTeX
3788 To enter quote, you'll need to use
3789 \begin_inset Flex Code
3792 \begin_layout Plain Layout
3801 \begin_inset Flex Code
3804 \begin_layout Plain Layout
3811 \begin_inset Flex Code
3814 \begin_layout Plain Layout
3825 \begin_layout Standard
3826 If you make a keyboard description file that works for your language, please
3827 mail it to me, so I can include it in the next keymap distribution.
3830 \begin_layout Standard
3831 More keywords will be supported in keymap configuration file in future,
3835 \begin_layout Itemize
3836 \begin_inset Flex Code
3839 \begin_layout Plain Layout
3850 \begin_inset space \hfill{}
3854 \begin_inset Flex Code
3857 \begin_layout Plain Layout
3866 \begin_layout Itemize
3867 \begin_inset Flex Code
3870 \begin_layout Plain Layout
3881 \begin_inset space \hfill{}
3885 \begin_inset Flex Code
3888 \begin_layout Plain Layout
3894 an external keymap translation program
3897 \begin_layout Standard
3898 Also, it should look into
3899 \begin_inset Flex Code
3902 \begin_layout Plain Layout
3908 file for defaults, too (for example, a
3909 \begin_inset Flex Code
3912 \begin_layout Plain Layout
3920 option to include default keyboard).
3928 \begin_layout Section
3930 \begin_inset CommandInset label
3939 \begin_layout Standard
3940 \begin_inset Note Note
3943 \begin_layout Plain Layout
3944 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3947 \begin_layout Plain Layout
3956 \begin_layout Standard
3958 \begin_inset Flex Code
3961 \begin_layout Plain Layout
3968 \begin_inset Flex Code
3971 \begin_layout Plain Layout
3977 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3980 \begin_layout Subsection
3984 \begin_layout Standard
3985 \begin_inset Flex Code
3988 \begin_layout Plain Layout
3994 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3995 \begin_inset Flex Code
3998 \begin_layout Plain Layout
4004 ファイルは,以下の各項で説明するように,
4005 \begin_inset Flex Code
4008 \begin_layout Plain Layout
4015 \begin_inset Flex Code
4018 \begin_layout Plain Layout
4025 \begin_inset Flex Code
4028 \begin_layout Plain Layout
4035 \begin_inset Flex Code
4038 \begin_layout Plain Layout
4047 \begin_layout Labeling
4048 \labelwidthstring 00.00.0000
4049 \begin_inset Flex Code
4052 \begin_layout Plain Layout
4061 \begin_layout LyX-Code
4076 \begin_layout Standard
4089 中では,二重引用符(")とバックスラッシュ(
4093 )を付けてエスケープしなくてはならないことに注意してください.
4096 \begin_layout Standard
4097 \begin_inset Flex MenuItem
4100 \begin_layout Plain Layout
4107 \begin_inset Flex MenuItem
4110 \begin_layout Plain Layout
4117 \begin_inset Flex MenuItem
4120 \begin_layout Plain Layout
4129 \begin_layout LyX-Code
4135 \begin_layout Standard
4139 \begin_layout Labeling
4140 \labelwidthstring 00.00.0000
4141 \begin_inset Flex Code
4144 \begin_layout Plain Layout
4153 \begin_layout LyX-Code
4162 \begin_layout Standard
4171 のアクセントとするものです.これはデッドキー
4175 \begin_layout Plain Layout
4180 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4184 のようなウムラウトのついた文字は,このようにして出すことができます.
4192 \begin_layout Standard
4205 の後に許可文字ではないその文字が出力として表示されます.
4206 \begin_inset Flex MenuItem
4209 \begin_layout Plain Layout
4220 \begin_inset Flex MenuItem
4223 \begin_layout Plain Layout
4229 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4232 \begin_layout Standard
4233 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4236 \begin_layout LyX-Code
4239 kmod ' acute aeiouAEIOU
4242 \begin_layout Labeling
4243 \labelwidthstring 00.00.0000
4244 \begin_inset Flex Code
4247 \begin_layout Plain Layout
4256 \begin_layout LyX-Code
4265 \begin_layout Standard
4279 \begin_inset Flex Code
4282 \begin_layout Plain Layout
4290 宣言で打鍵キーを既に割り当てられてなくてはならず,
4302 の集合に属していてはなりません.こうして
4315 \begin_inset Flex Code
4318 \begin_layout Plain Layout
4345 \begin_inset Flex Code
4348 \begin_layout Plain Layout
4359 \begin_layout Standard
4360 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4363 \begin_layout LyX-Code
4377 \begin_layout Labeling
4378 \labelwidthstring 00.00.0000
4379 \begin_inset Flex Code
4382 \begin_layout Plain Layout
4391 \begin_layout LyX-Code
4400 \begin_layout Standard
4401 これはなかなか難解になってきます.これは
4426 \begin_inset Flex Code
4429 \begin_layout Plain Layout
4437 コマンドで設定されていなくてはなりません.
4440 \begin_layout Standard
4441 \begin_inset Flex Code
4444 \begin_layout Plain Layout
4453 \begin_layout LyX-Code
4456 kmod ; acute aeioyvhAEIOYVH
4460 kcomb acute umlaut iyIY
4463 \begin_layout Standard
4465 \begin_inset Flex MenuItem
4468 \begin_layout Plain Layout
4475 \begin_inset Flex Code
4478 \begin_layout Plain Layout
4488 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4489 \begin_inset Flex MenuItem
4492 \begin_layout Plain Layout
4499 \begin_inset Flex Code
4502 \begin_layout Plain Layout
4513 \begin_layout Subsection
4517 \begin_layout Standard
4518 \begin_inset Flex Code
4521 \begin_layout Plain Layout
4528 \begin_inset Flex Code
4531 \begin_layout Plain Layout
4537 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4539 \begin_inset Flex Code
4542 \begin_layout Plain Layout
4549 \begin_inset Flex Code
4552 \begin_layout Plain Layout
4561 \begin_layout Standard
4563 \begin_inset Flex Code
4566 \begin_layout Plain Layout
4575 \begin_layout LyX-Code
4588 \begin_layout Standard
4590 \begin_inset Flex MenuItem
4593 \begin_layout Plain Layout
4601 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4604 \begin_layout LyX-Code
4612 \begin_layout Standard
4618 \begin_inset Flex Code
4621 \begin_layout Plain Layout
4630 \begin_inset Flex Code
4633 \begin_layout Plain Layout
4639 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4640 \begin_inset Flex Code
4643 \begin_layout Plain Layout
4652 \begin_layout LyX-Code
4664 \begin_inset Newline newline
4680 \begin_layout Standard
4681 という例があります.\SpecialChar LyX
4682 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4683 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4686 \begin_layout Subsection
4690 \begin_layout Standard
4691 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4692 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4695 \begin_layout Standard
4696 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4697 \begin_inset Flex Code
4700 \begin_layout Plain Layout
4707 \begin_inset Flex MenuItem
4710 \begin_layout Plain Layout
4717 \begin_inset Flex MenuItem
4720 \begin_layout Plain Layout
4726 キー)を,\SpecialChar LyX
4728 \begin_inset Flex Code
4731 \begin_layout Plain Layout
4738 \begin_inset Flex MenuItem
4741 \begin_layout Plain Layout
4747 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4748 \begin_inset Flex MenuItem
4751 \begin_layout Plain Layout
4757 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4758 \begin_inset Flex MenuItem
4761 \begin_layout Plain Layout
4768 \begin_inset Flex MenuItem
4771 \begin_layout Plain Layout
4777 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4778 はビープを鳴らして文句を付けます.デッドキーの後に
4779 \begin_inset Flex MenuItem
4782 \begin_layout Plain Layout
4788 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4790 \begin_inset Flex MenuItem
4793 \begin_layout Plain Layout
4799 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4802 \begin_layout Standard
4803 デッドキーを割り当てるのによく用いられる方法は,
4804 \begin_inset Flex MenuItem
4807 \begin_layout Plain Layout
4814 \begin_inset Flex MenuItem
4817 \begin_layout Plain Layout
4824 \begin_inset Flex MenuItem
4827 \begin_layout Plain Layout
4834 \begin_inset Flex MenuItem
4837 \begin_layout Plain Layout
4844 \begin_inset Flex MenuItem
4847 \begin_layout Plain Layout
4854 \begin_inset Flex MenuItem
4857 \begin_layout Plain Layout
4863 」のようなアクセントと一緒に用いる方法です.また,
4864 \begin_inset Flex Code
4867 \begin_layout Plain Layout
4874 \begin_inset Flex Code
4877 \begin_layout Plain Layout
4884 \begin_inset Flex Code
4887 \begin_layout Plain Layout
4894 \begin_inset Flex Code
4897 \begin_layout Plain Layout
4904 \begin_inset Flex MenuItem
4907 \begin_layout Plain Layout
4913 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4914 \begin_inset Flex Code
4917 \begin_layout Plain Layout
4923 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4928 \begin_layout Plain Layout
4934 \begin_inset Flex Code
4937 \begin_layout Plain Layout
4944 \begin_inset Flex Code
4947 \begin_layout Plain Layout
4954 \begin_inset Flex MenuItem
4957 \begin_layout Plain Layout
4959 \begin_inset space ~
4968 \begin_inset Flex Code
4971 \begin_layout Plain Layout
4978 \begin_inset Flex Code
4981 \begin_layout Plain Layout
4988 \begin_inset Flex MenuItem
4991 \begin_layout Plain Layout
4993 \begin_inset space ~
5002 \begin_inset Flex MenuItem
5005 \begin_layout Plain Layout
5007 \begin_inset space ~
5015 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5021 \begin_inset Flex Code
5024 \begin_layout Plain Layout
5031 \begin_inset Flex MenuItem
5034 \begin_layout Plain Layout
5040 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5047 \begin_inset Flex Code
5050 \begin_layout Plain Layout
5056 の項をご覧ください.ここには完備した一覧があります.
5059 \begin_layout Subsection
5063 \begin_layout Standard
5064 \begin_inset Flex MenuItem
5067 \begin_layout Plain Layout
5068 ツール\SpecialChar menuseparator
5074 ダイアログを使えば,\SpecialChar LyX
5075 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5078 \begin_layout Chapter
5079 文書クラス・レイアウト・ひな型の新規導入
5080 \begin_inset CommandInset label
5087 \begin_inset Argument 1
5090 \begin_layout Plain Layout
5099 \begin_layout Standard
5100 この章では,新しく\SpecialChar LyX
5101 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5102 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5106 \begin_layout Standard
5109 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5110 は,La\SpecialChar TeX
5112 云うことです.実際のところ,\SpecialChar LyX
5113 の観点からは,\SpecialChar LaTeX
5115 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5116 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5117 は,とくに重要な形式ですが,\SpecialChar LyX
5119 について持っている情報のほとんどは,実はプログラム本体には含まれて
5124 \begin_layout Plain Layout
5125 過度に複雑なため,\SpecialChar LyX
5126 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5132 \begin_inset Flex Code
5135 \begin_layout Plain Layout
5141 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5142 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5147 \begin_layout Standard
5148 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5149 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5150 構成体・DocBook構成体・XHTML構成体との
5151 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5153 \begin_inset Flex Code
5156 \begin_layout Plain Layout
5162 について知っていることのほとんど総ては,
5163 \begin_inset Flex Code
5166 \begin_layout Plain Layout
5172 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5174 \begin_inset Flex Code
5177 \begin_layout Plain Layout
5184 \begin_inset Flex Code
5187 \begin_layout Plain Layout
5193 や,文書クラス用の他のレイアウトファイルに取り込まれている
5194 \begin_inset Flex Code
5197 \begin_layout Plain Layout
5203 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5204 \begin_inset Flex Code
5207 \begin_layout Plain Layout
5213 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5214 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5216 \begin_inset Flex Code
5219 \begin_layout Plain Layout
5226 \begin_inset Flex Code
5229 \begin_layout Plain Layout
5235 ファイルを取り込んでいるだけのものです.
5238 \begin_layout Standard
5239 しかしながら,\SpecialChar LyX
5241 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5243 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5244 ます.ある段落様式を\SpecialChar LaTeX
5245 に翻訳する仕方を\SpecialChar LyX
5246 に指示することは,その表示の仕方を\SpecialChar LyX
5247 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5249 式をどのように\SpecialChar LaTeX
5250 に翻訳するかを\SpecialChar LyX
5251 に指示するものではありません(ましてや\SpecialChar LaTeX
5252 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5255 \begin_inset space ~
5259 にどのように翻訳するかを\SpecialChar LyX
5261 \begin_inset space ~
5264 それをどのように表示するかを\SpecialChar LyX
5265 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5268 \begin_layout Standard
5269 もちろん,\SpecialChar LyX
5270 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5271 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5272 力するにあたって,当該段落を\SpecialChar LyX
5273 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5274 が内部的に行うことと,外部的に行う物事の間の区
5275 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5276 \begin_inset CommandInset ref
5278 reference "sec:XHTML出力のタグ"
5285 \begin_layout Section
5286 新しい\SpecialChar LaTeX
5290 \begin_layout Standard
5291 頒布版によっては,\SpecialChar LyX
5292 で使いたい\SpecialChar LaTeX
5293 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5294 パッケージである,Foil\SpecialChar TeX
5295 がないかもしれません.\SpecialChar TeX
5296 Live(2008年以降)やMiK\SpecialChar TeX
5297 のような最近の\SpecialChar LaTeX
5298 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5299 ースが用意されています.たとえば,MiK\SpecialChar TeX
5301 \begin_inset space ~
5304 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5308 \begin_layout Standard
5309 お使いの\SpecialChar LaTeX
5310 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5314 \begin_layout Enumerate
5315 \begin_inset CommandInset href
5318 target "http://www.ctan.org/"
5323 などから欲しいパッケージを入手してください.
5326 \begin_layout Enumerate
5328 \begin_inset Flex Code
5331 \begin_layout Plain Layout
5337 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5338 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5339 \begin_inset Flex Code
5342 \begin_layout Plain Layout
5348 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5349 パッケージは圧縮されていないので,このステップは飛ばすこ
5353 \begin_layout Enumerate
5354 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5358 \begin_layout Enumerate
5359 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5362 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5363 \begin_inset Flex Code
5366 \begin_layout Plain Layout
5376 \begin_layout Plain Layout
5382 \begin_inset Flex Code
5385 \begin_layout Plain Layout
5391 を実行してその場所を見つけることもできます.
5396 .「ローカル」\SpecialChar TeX
5398 \begin_inset Flex Code
5401 \begin_layout Plain Layout
5408 \begin_inset Flex Code
5411 \begin_layout Plain Layout
5412 /usr/local/share/texmf/
5418 \begin_inset Flex Code
5421 \begin_layout Plain Layout
5422 /usr/local/texlive/XXXX
5427 (XXXXは導入されている\SpecialChar TeX
5428 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5430 \begin_inset Flex Code
5433 \begin_layout Plain Layout
5440 \begin_inset Flex Code
5443 \begin_layout Plain Layout
5450 \begin_inset Flex Code
5453 \begin_layout Plain Layout
5459 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5460 ,「ユーザー」ツリーにはこのような制限はありません.
5461 \begin_inset Newline newline
5464 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5465 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5468 \begin_layout Enumerate
5469 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5471 \begin_inset Flex Code
5474 \begin_layout Plain Layout
5484 に移動します(MiK\SpecialChar TeX
5486 \begin_inset Flex Code
5489 \begin_layout Plain Layout
5505 \begin_layout Plain Layout
5506 これは,英語版でのみ正しいパスになっています.独語版では
5507 \begin_inset Flex Code
5510 \begin_layout Plain Layout
5528 \begin_inset Flex Code
5531 \begin_layout Plain Layout
5537 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5539 ことを行います.たとえばMiK\SpecialChar TeX
5541 \begin_inset space ~
5545 \begin_inset Newline newline
5549 \begin_inset Flex Code
5552 \begin_layout Plain Layout
5555 Documents and Settings
5567 \begin_inset Newline newline
5571 \begin_inset Phantom HPhantom
5574 \begin_layout Plain Layout
5585 \begin_inset Flex Code
5588 \begin_layout Plain Layout
5601 \begin_inset Newline newline
5605 \begin_inset Newline newline
5609 \begin_inset Flex Code
5612 \begin_layout Plain Layout
5635 \begin_inset Newline newline
5642 \begin_layout Enumerate
5643 ここまで来れば,あとは\SpecialChar LaTeX
5644 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5649 \begin_layout Enumerate
5652 \begin_inset Flex Code
5655 \begin_layout Plain Layout
5661 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5664 \begin_layout Enumerate
5666 では,パッケージを全ユーザー用に導入した場合には,「Settings
5667 \begin_inset space ~
5670 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5675 \begin_layout Enumerate
5676 最後に,\SpecialChar LyX
5677 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5678 からツール\SpecialChar menuseparator
5679 環境構成メニューを実行して,\SpecialChar LyX
5683 \begin_layout Standard
5684 これでパッケージが導入されました.この例では,文書クラス
5685 \begin_inset Flex Code
5688 \begin_layout Plain Layout
5690 \begin_inset space ~
5699 \begin_inset Flex MenuItem
5702 \begin_layout Plain Layout
5703 文書\SpecialChar menuseparator
5704 設定\SpecialChar menuseparator
5713 \begin_layout Standard
5714 \begin_inset Flex MenuItem
5717 \begin_layout Plain Layout
5718 文書\SpecialChar menuseparator
5719 設定\SpecialChar menuseparator
5725 メニューに列挙されてもいない\SpecialChar LaTeX
5726 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5729 \begin_layout Section
5733 \begin_layout Standard
5734 この節は,レイアウト情報を含む各種\SpecialChar LyX
5735 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5737 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5738 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5741 \begin_layout Standard
5742 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5743 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5744 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5745 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5746 を出していますので,気軽に質問を投げかけてみてください.
5749 \begin_layout Standard
5750 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5751 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5752 文書クラス用の\SpecialChar LyX
5754 他の人々にも有用なモジュールをお書きになった場合には,
5755 \begin_inset CommandInset href
5757 name "LyX Wikiのレイアウトに関する節"
5758 target "https://wiki.lyx.org/Layouts/Layouts"
5764 開発者メーリングリストに投稿して,\SpecialChar LyX
5765 頒布版に同梱することができるようにしてください
5769 \begin_layout Plain Layout
5771 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5772 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5780 \begin_layout Subsection
5782 \begin_inset CommandInset label
5784 name "subsec:レイアウトモジュール"
5791 \begin_layout Standard
5792 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5794 \begin_inset Flex Code
5797 \begin_layout Plain Layout
5803 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5804 に提供するものを指します.しかしながら,\SpecialChar LyX
5806 \begin_inset Flex Code
5809 \begin_layout Plain Layout
5819 にも含めることができます.レイアウトが\SpecialChar LaTeX
5820 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5822 \begin_inset Flex Code
5825 \begin_layout Plain Layout
5831 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5832 イアウトで使用できるという意味において,一面,
5833 \begin_inset Flex Code
5836 \begin_layout Plain Layout
5846 \begin_layout Plain Layout
5847 これらは任意の拡張子をつけることができますが,慣習的に
5848 \begin_inset Flex Code
5851 \begin_layout Plain Layout
5863 \begin_inset Flex Code
5866 \begin_layout Plain Layout
5872 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5873 \begin_inset Flex MenuItem
5876 \begin_layout Plain Layout
5877 文書\SpecialChar menuseparator
5886 \begin_layout Standard
5887 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5888 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5891 \begin_layout Standard
5893 \begin_inset Flex Code
5896 \begin_layout Plain Layout
5902 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5903 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5904 \begin_inset Flex MenuItem
5907 \begin_layout Plain Layout
5908 文書\SpecialChar menuseparator
5914 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5916 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5920 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5922 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5923 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5927 \begin_layout Subsubsection
5931 \begin_layout Standard
5933 に於けるモジュールは,\SpecialChar LaTeX
5934 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5935 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5938 \begin_layout Standard
5941 文書\SpecialChar menuseparator
5942 設定\SpecialChar menuseparator
5945 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5946 は,その文書専属のモジュールだと考えることができます.したがって,
5947 \begin_inset Flex Code
5950 \begin_layout Plain Layout
5956 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5960 \begin_layout Standard
5961 \begin_inset Flex Code
5964 \begin_layout Plain Layout
5970 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5971 ているかどうかが検証されます.すると,\SpecialChar LyX
5972 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5974 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5977 \begin_layout Standard
5978 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5979 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5982 \begin_layout Subsection
5983 \begin_inset Flex MenuItem
5986 \begin_layout Plain Layout
5995 \begin_layout Standard
5996 新しく\SpecialChar LaTeX
5997 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5999 \begin_inset Flex Code
6002 \begin_layout Plain Layout
6009 \begin_inset Flex Code
6012 \begin_layout Plain Layout
6018 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6019 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6023 \begin_layout Standard
6024 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6025 \begin_inset Flex MenuItem
6028 \begin_layout Plain Layout
6035 \begin_inset Flex MenuItem
6038 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6052 \begin_layout Plain Layout
6053 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6055 \begin_inset Flex MenuItem
6058 \begin_layout Plain Layout
6064 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6072 \begin_layout LyX-Code
6073 cp report.layout ~/.lyx/layouts/myclass.layout
6076 \begin_layout Standard
6078 \begin_inset Flex Code
6081 \begin_layout Plain Layout
6090 \begin_layout LyX-Code
6093 DeclareLaTeXClass{report}
6096 \begin_layout Standard
6100 \begin_layout LyX-Code
6103 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6106 \begin_layout Standard
6107 のように変更してください.それから,ファイル冒頭辺りに
6110 \begin_layout LyX-Code
6112 \begin_inset Newline newline
6118 \begin_inset Newline newline
6124 \begin_layout Standard
6128 \begin_layout Standard
6131 \begin_inset Flex MenuItem
6134 \begin_layout Plain Layout
6135 ツール\SpecialChar menuseparator
6141 を選択してください.それから\SpecialChar LyX
6142 を再起動し,新規文書を作成してみてください.すると,
6143 \begin_inset Flex MenuItem
6146 \begin_layout Plain Layout
6147 文書\SpecialChar menuseparator
6154 \begin_inset Flex MenuItem
6157 \begin_layout Plain Layout
6163 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6164 \begin_inset Flex Code
6167 \begin_layout Plain Layout
6173 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6174 \begin_inset Flex Code
6177 \begin_layout Plain Layout
6183 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6184 \begin_inset Flex Code
6187 \begin_layout Plain Layout
6194 \begin_inset Flex Code
6197 \begin_layout Plain Layout
6203 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6206 \begin_layout LyX-Code
6210 \begin_layout LyX-Code
6214 \begin_layout LyX-Code
6218 \begin_layout LyX-Code
6222 \begin_layout LyX-Code
6226 \begin_layout Standard
6227 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6230 \begin_layout Standard
6231 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6233 \begin_inset CommandInset ref
6235 reference "sec:テキストクラス"
6242 \begin_layout Standard
6244 \begin_inset Flex Code
6247 \begin_layout Plain Layout
6253 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6254 う.最も簡単なモジュールの例としては,以下のようなものになります.
6257 \begin_layout LyX-Code
6260 DeclareLyXModule{My Package}
6263 \begin_layout LyX-Code
6267 \begin_layout LyX-Code
6268 #Support for mypkg.sty.
6271 \begin_layout LyX-Code
6273 \begin_inset Newline newline
6279 \begin_layout LyX-Code
6281 \begin_inset Newline newline
6287 \begin_layout LyX-Code
6289 \begin_inset Newline newline
6295 \begin_inset Newline newline
6301 \begin_layout Standard
6302 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6303 \begin_inset CommandInset ref
6305 reference "sec:テキストクラス"
6312 \begin_layout Subsection
6313 \begin_inset Flex MenuItem
6316 \begin_layout Plain Layout
6325 \begin_layout Standard
6326 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6327 \begin_inset Flex MenuItem
6330 \begin_layout Plain Layout
6336 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6339 \begin_layout LyX-Code
6345 \begin_layout Standard
6346 という行がないかどうか探してください.もしこれがあれば,
6347 \begin_inset Flex Code
6350 \begin_layout Plain Layout
6351 Declare\SpecialChar LaTeX
6357 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6358 \begin_inset Flex Code
6361 \begin_layout Plain Layout
6368 \begin_inset Flex Code
6371 \begin_layout Plain Layout
6378 \begin_inset Flex Code
6381 \begin_layout Plain Layout
6382 Declare\SpecialChar LaTeX
6392 \begin_layout Plain Layout
6394 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6395 \begin_inset Flex Code
6398 \begin_layout Plain Layout
6412 \begin_layout LyX-Code
6415 DeclareLaTeXClass[thesis,book]{thesis}
6418 \begin_layout Standard
6419 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6421 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6425 \begin_layout Subsection
6427 \begin_inset CommandInset label
6436 \begin_layout Standard
6437 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6438 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6439 添付のひな型をあれこれ見てみるのもよいでしょう.
6442 \begin_layout Standard
6443 ひな型は,通常の文書と同様,\SpecialChar LyX
6444 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6445 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6446 \begin_inset Flex Code
6449 \begin_layout Plain Layout
6458 \begin_inset Flex Code
6461 \begin_layout Plain Layout
6469 などの対応するコマンドをひな型\SpecialChar LyX
6470 ファイルから取り除く必要があります.これは,たとえば
6471 \begin_inset Flex Code
6474 \begin_layout Plain Layout
6481 \begin_inset Flex Code
6484 \begin_layout Plain Layout
6490 のような,どの軽いテキストエディタでも行うことができます.
6493 \begin_layout Standard
6495 \begin_inset Flex Code
6498 \begin_layout Plain Layout
6505 \begin_inset Flex Code
6508 \begin_layout Plain Layout
6514 から使用したいものを同じ場所にコピーし,
6515 \begin_inset Flex MenuItem
6518 \begin_layout Plain Layout
6519 ツール\SpecialChar menuseparator
6520 設定\SpecialChar menuseparator
6526 ダイアログのひな型パスを再定義してください.
6529 \begin_layout Standard
6531 \begin_inset Flex Code
6534 \begin_layout Plain Layout
6540 があることに注意してください.このひな型は,
6541 \begin_inset Flex MenuItem
6544 \begin_layout Plain Layout
6545 ファイル\SpecialChar menuseparator
6551 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6552 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6554 \begin_inset Flex MenuItem
6557 \begin_layout Plain Layout
6566 \begin_layout Subsection
6570 \begin_layout Standard
6571 レイアウトファイルの書式は,\SpecialChar LyX
6572 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6573 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6576 \begin_inset Flex Code
6579 \begin_layout Plain Layout
6581 Dir/scripts/layout2layout.py
6586 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6588 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6591 \begin_layout Enumerate
6593 \begin_inset Flex Code
6596 \begin_layout Plain Layout
6603 \begin_inset Flex Code
6606 \begin_layout Plain Layout
6615 \begin_layout Enumerate
6617 \begin_inset Newline newline
6621 \begin_inset Flex Code
6624 \begin_layout Plain Layout
6625 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6631 \begin_inset Newline newline
6635 \begin_inset Flex Code
6638 \begin_layout Plain Layout
6648 \begin_layout Standard
6649 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6652 \begin_layout Subsection
6653 \begin_inset CommandInset label
6655 name "subsec:引用エンジンファイル"
6662 \begin_layout Standard
6663 \begin_inset Flex Code
6666 \begin_layout Plain Layout
6672 サブディレクトリ以下に収められている,いわゆる
6673 \begin_inset Flex Code
6676 \begin_layout Plain Layout
6682 ファイルは,レイアウトファイルの特殊形です.これらの目的は,
6694 など,書誌情報を生成する\SpecialChar LaTeX
6695 パッケージの詳細を定義することですが,通常の(追加パッケージのない)Bib\SpecialChar TeX
6697 中でどのように取り扱われるかも,これらのファイルの中で定
6701 \begin_layout Standard
6702 より具体的には,どのパッケージを\SpecialChar LyX
6703 が読み込む必要があるのか,どの引用コマンドが利用可能であるのか,これらが\SpecialChar LyX
6704 中(作業領域・ダイアログ・コンテクストメニュー)で,さら
6705 にはXHTMLや平文出力中でどのように表示されるのかを定義します.さらに,これらのファイルは,使用できる派生様式(著者-刊行年,数値など)とその子細を特定します
6708 文書\SpecialChar menuseparator
6709 設定\SpecialChar ldots
6710 \SpecialChar menuseparator
6711 書誌情報\SpecialChar menuseparator
6714 で利用できる選択肢を生成するのにも使用されます.
6717 \begin_layout Standard
6718 引用エンジンファイルは,本質的に通常のレイアウトファイルであり,理論上どのようなレイアウト情報も内包することができますが,通常は
6719 \begin_inset Flex Code
6722 \begin_layout Plain Layout
6729 \begin_inset Flex Code
6732 \begin_layout Plain Layout
6739 \begin_inset Flex Code
6742 \begin_layout Plain Layout
6749 \begin_inset Flex Code
6752 \begin_layout Plain Layout
6758 ブロックのような特定のパラメータをもっぱら含みます.この最後の2つの文法は,ファイル自身に加え,第
6759 \begin_inset CommandInset ref
6761 reference "subsec:引用エンジンの説明"
6769 \begin_inset CommandInset ref
6771 reference "subsec:引用書式指定"
6781 \begin_layout Section
6782 \begin_inset CommandInset label
6791 \begin_layout Standard
6792 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6793 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6794 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6795 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6796 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6799 \begin_layout Standard
6800 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6801 \begin_inset Flex Code
6804 \begin_layout Plain Layout
6811 \begin_inset Flex Code
6814 \begin_layout Plain Layout
6821 \begin_inset Flex Code
6824 \begin_layout Plain Layout
6830 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6831 \begin_inset Flex Code
6834 \begin_layout Plain Layout
6842 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6843 \begin_inset Flex Code
6846 \begin_layout Plain Layout
6857 \begin_layout Subsection
6861 \begin_layout Standard
6863 \begin_inset Flex Code
6866 \begin_layout Plain Layout
6872 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6873 \begin_inset Flex Code
6876 \begin_layout Plain Layout
6882 ファイルは,以下のような行で始めなくてはならないのです.
6885 \begin_layout LyX-Code
6888 #% Do not delete the line below; configure depends on this
6891 \begin_layout LyX-Code
6896 DeclareLaTeXClass{Article (Standard Class)}
6899 \begin_layout LyX-Code
6904 DeclareCategory{Articles}
6907 \begin_layout Standard
6908 2行目と3行目は,\SpecialChar LyX
6909 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6911 \begin_inset Flex Code
6914 \begin_layout Plain Layout
6921 \begin_inset Flex Code
6924 \begin_layout Plain Layout
6930 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6931 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6933 \begin_inset Flex Code
6936 \begin_layout Plain Layout
6943 \begin_inset Flex Code
6946 \begin_layout Plain Layout
6952 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6954 \begin_inset Flex Code
6957 \begin_layout Plain Layout
6963 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6964 \begin_inset Flex MenuItem
6967 \begin_layout Plain Layout
6968 文書\SpecialChar menuseparator
6974 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6975 \begin_inset Flex MenuItem
6978 \begin_layout Plain Layout
6979 文書\SpecialChar menuseparator
6985 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6986 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6987 rized」グループに属することになります.
6990 \begin_layout Standard
6992 \begin_inset Flex Code
6995 \begin_layout Plain Layout
7001 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
7002 \begin_inset Flex Code
7005 \begin_layout Plain Layout
7011 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
7014 \begin_layout LyX-Code
7017 #% Do not delete the line below; configure depends on this
7020 \begin_layout LyX-Code
7025 DeclareLaTeXClass[article]{article (with My Own Headings)}
7028 \begin_layout LyX-Code
7033 DeclareCategory{Articles}
7036 \begin_layout Standard
7037 これは,\SpecialChar LaTeX
7039 \begin_inset Flex Code
7042 \begin_layout Plain Layout
7048 に関連づけられ,「Article (with My Own Headings)」と表示される,
7049 \begin_inset Flex Code
7052 \begin_layout Plain Layout
7058 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
7061 \begin_layout LyX-Code
7064 #% Do not delete the line below; configure depends on this
7067 \begin_layout LyX-Code
7072 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7075 \begin_layout LyX-Code
7080 DeclareCategory{Articles}
7083 \begin_layout Standard
7085 \begin_inset Flex Code
7088 \begin_layout Plain Layout
7094 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7097 \begin_layout LyX-Code
7100 #% Do not delete the line below; configure depends on this
7103 \begin_layout LyX-Code
7108 DeclareDocBookClass[article]{SGML (DocBook article)}
7111 \begin_layout LyX-Code
7116 DeclareCategory{Articles}
7119 \begin_layout Standard
7120 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7123 \begin_layout Standard
7124 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7127 \begin_layout LyX-Code
7132 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7135 \begin_layout LyX-Code
7143 \begin_layout Standard
7144 ここで「クラス」は,\SpecialChar LaTeX
7145 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7147 名がレイアウトファイル名と同じであると仮定します.
7150 \begin_layout Standard
7151 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7152 \begin_inset Flex Code
7155 \begin_layout Plain Layout
7162 \begin_inset Flex Code
7165 \begin_layout Plain Layout
7172 \begin_inset Flex MenuItem
7175 \begin_layout Plain Layout
7176 ツール\SpecialChar menuseparator
7182 を実行し,\SpecialChar LyX
7183 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7186 \begin_layout Standard
7187 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7188 を再起動したりすることなく,その変更を確認することができます
7192 \begin_layout Plain Layout
7193 第1.6版よりも前の\SpecialChar LyX
7194 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7196 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7203 \begin_inset Flex MenuItem
7206 \begin_layout Plain Layout
7212 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7213 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7216 \begin_layout Standard
7222 \begin_inset Flex MenuItem
7225 \begin_layout Plain Layout
7231 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7235 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7239 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7241 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7245 \begin_layout Plain Layout
7246 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7247 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7248 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7255 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7259 \begin_layout Plain Layout
7260 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7268 \begin_layout Subsection
7272 \begin_layout Standard
7273 モジュールは,以下のような行で始まらなくてはなりません.
7276 \begin_layout LyX-Code
7279 DeclareLyXModule[endnotes.sty]{Endnotes}
7282 \begin_layout Standard
7283 波括弧内に入っている必須引数はモジュール名で,これは
7284 \begin_inset Flex MenuItem
7287 \begin_layout Plain Layout
7288 文書\SpecialChar menuseparator
7294 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7295 パッケージをすべて宣言します.また,非必須引数として,
7296 \begin_inset Flex Code
7299 \begin_layout Plain Layout
7306 \begin_inset Flex Code
7309 \begin_layout Plain Layout
7316 \begin_inset Flex Code
7319 \begin_layout Plain Layout
7325 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7328 \begin_layout Standard
7329 それから,以下のようなモジュール宣言を行います
7333 \begin_layout Plain Layout
7334 モジュールを\SpecialChar LyX
7335 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7343 \begin_layout LyX-Code
7347 \begin_layout LyX-Code
7348 #Adds an endnote command, in addition to footnotes.
7352 \begin_layout LyX-Code
7353 #You will need to add
7355 theendnotes in TeX code where you
7358 \begin_layout LyX-Code
7359 #want the endnotes to appear.
7363 \begin_layout LyX-Code
7367 \begin_layout LyX-Code
7368 #Requires: somemodule | othermodule
7371 \begin_layout LyX-Code
7372 #Excludes: badmodule
7375 \begin_layout Standard
7376 ここで説明(Description)は,
7377 \begin_inset Flex MenuItem
7380 \begin_layout Plain Layout
7381 文書\SpecialChar menuseparator
7387 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7388 \begin_inset Flex Code
7391 \begin_layout Plain Layout
7397 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7398 \begin_inset Flex Code
7401 \begin_layout Plain Layout
7407 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7408 イプ記号「|」で区切らなくてはなりません.
7409 \begin_inset Flex Code
7412 \begin_layout Plain Layout
7418 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7419 \begin_inset Flex Code
7422 \begin_layout Plain Layout
7432 が使用されていればよいということです.同様に,
7433 \begin_inset Flex Code
7436 \begin_layout Plain Layout
7442 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7443 \begin_inset Flex Code
7446 \begin_layout Plain Layout
7452 拡張子を除いたファイル名で認識されることに注意してください.つまり
7453 \begin_inset Flex Code
7456 \begin_layout Plain Layout
7463 \begin_inset Flex Code
7466 \begin_layout Plain Layout
7475 \begin_layout Subsection
7479 \begin_layout Standard
7480 引用エンジンファイルは,次のような行で始まらなくてはなりません.
7483 \begin_layout LyX-Code
7486 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
7489 \begin_layout Standard
7491 \begin_inset Flex Noun
7494 \begin_layout Plain Layout
7495 文書\SpecialChar menuseparator
7496 設定\SpecialChar menuseparator
7502 にそのまま現れます.角括弧内の引数は非必須です.これは,引用エンジンが依存する\SpecialChar LaTeX
7506 \begin_layout Standard
7507 引用エンジン宣言には,その後,以下のような行が続きます
7511 \begin_layout Plain Layout
7513 とともに公表するモジュールの場合は,英語で書かれることが望まれます.この説明は,翻訳対象メッセージのリストに含まれますので,次回インタフェースの更新の際に翻訳さ
7522 \begin_layout LyX-Code
7526 \begin_layout LyX-Code
7527 # Biblatex supports many author-year and numerical styles.
7530 \begin_layout LyX-Code
7531 # It is mainly aimed at the Humanities.
7535 \begin_layout LyX-Code
7536 # customizable, fully localized and provides many features
7539 \begin_layout LyX-Code
7540 # that are not possible with BibTeX.
7541 The use of 'biber' as
7544 \begin_layout LyX-Code
7545 # bibliography processor is advised.
7548 \begin_layout LyX-Code
7552 \begin_layout Standard
7554 \begin_inset Flex Noun
7557 \begin_layout Plain Layout
7558 文書\SpecialChar menuseparator
7559 設定\SpecialChar menuseparator
7565 の中で,ユーザーに引用エンジンに関する情報を提供するために使われます.
7568 \begin_layout Subsection
7572 \begin_layout Standard
7573 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7576 \begin_layout Description
7577 \begin_inset Flex Code
7580 \begin_layout Plain Layout
7587 \begin_inset Flex Code
7590 \begin_layout Plain Layout
7599 \begin_layout Standard
7600 このタグは\SpecialChar LyX
7602 \begin_inset space ~
7605 1.4.0で導入されました.\SpecialChar LyX
7607 \begin_inset space ~
7610 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7611 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7612 の各版は,旧版の\SpecialChar LyX
7614 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7617 \begin_layout Subsection
7618 \begin_inset CommandInset label
7620 name "subsec:汎用テキストクラスパラメータ"
7627 \begin_layout Standard
7628 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7629 \begin_inset Flex Code
7632 \begin_layout Plain Layout
7638 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7642 .モジュールには,すべてのレイアウトタグを使用することができます).
7645 \begin_layout Description
7646 \begin_inset Flex Code
7649 \begin_layout Plain Layout
7655 この文書クラスがXHTMLに出力されるときに,
7656 \begin_inset Flex Code
7659 \begin_layout Plain Layout
7665 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7666 \begin_inset Flex Code
7669 \begin_layout Plain Layout
7675 に出力するものであれば,何でも使用することができます.「
7676 \begin_inset Flex Code
7679 \begin_layout Plain Layout
7688 \begin_layout Description
7689 \begin_inset Flex Code
7692 \begin_layout Plain Layout
7698 文書プリアンブルに書き加えられる情報です.「
7699 \begin_inset Flex Code
7702 \begin_layout Plain Layout
7711 \begin_layout Description
7712 \begin_inset Flex Code
7715 \begin_layout Plain Layout
7721 文献参照を表示する方法を定義します.詳細については,第
7722 \begin_inset CommandInset ref
7724 reference "subsec:引用エンジンの説明"
7732 \begin_inset Flex Code
7735 \begin_layout Plain Layout
7741 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7742 \begin_inset CommandInset ref
7744 reference "subsec:引用エンジンファイル"
7754 \begin_layout Description
7755 \begin_inset Flex Code
7758 \begin_layout Plain Layout
7764 書誌情報の表示に使う書式を定義します.詳細については,第
7765 \begin_inset CommandInset ref
7767 reference "subsec:引用書式指定"
7772 \begin_inset Flex Code
7775 \begin_layout Plain Layout
7781 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7782 \begin_inset CommandInset ref
7784 reference "subsec:引用エンジンファイル"
7794 \begin_layout Description
7795 \begin_inset Flex Code
7798 \begin_layout Plain Layout
7805 \begin_inset Flex Code
7808 \begin_layout Plain Layout
7817 \begin_inset Flex Code
7820 \begin_layout Plain Layout
7830 を用いるのかBib\SpecialChar TeX
7831 を用いるのかを特定します.主に引用エンジンファイルで使用されます(第
7832 \begin_inset CommandInset ref
7834 reference "subsec:引用エンジンファイル"
7844 \begin_layout Description
7845 \begin_inset Flex Code
7848 \begin_layout Plain Layout
7854 文書クラスがサポートする様々な大域オプションを記します.説明は,第
7855 \begin_inset CommandInset ref
7857 reference "subsec:ClassOptions"
7862 \begin_inset Flex Code
7865 \begin_layout Plain Layout
7874 \begin_layout Description
7875 \begin_inset Flex Code
7878 \begin_layout Plain Layout
7885 \begin_inset Flex Code
7888 \begin_layout Plain Layout
7897 \begin_inset space \thinspace{}
7901 \begin_inset Flex Code
7904 \begin_layout Plain Layout
7910 ] 文書クラスが既定で1段組か2段組かを指定します.
7911 \begin_inset Flex MenuItem
7914 \begin_layout Plain Layout
7915 文書\SpecialChar menuseparator
7924 \begin_layout Description
7925 \begin_inset Flex Code
7928 \begin_layout Plain Layout
7935 \begin_inset Flex Code
7938 \begin_layout Plain Layout
7944 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7945 \begin_inset Flex Code
7948 \begin_layout Plain Layout
7955 \begin_inset Newline newline
7959 \begin_inset CommandInset ref
7961 reference "subsec:カウンタ"
7968 \begin_layout Description
7969 \begin_inset Flex Code
7972 \begin_layout Plain Layout
7978 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,第
7979 \begin_inset CommandInset ref
7981 reference "subsec:フォント指定"
7986 \begin_inset Flex Code
7989 \begin_layout Plain Layout
7998 \begin_layout Description
7999 \begin_inset Flex Code
8002 \begin_layout Plain Layout
8009 \begin_inset Flex Code
8012 \begin_layout Plain Layout
8018 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
8019 \begin_inset Flex Code
8022 \begin_layout Plain Layout
8028 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
8029 既存の文書にこの文書クラスが選択したときのみ該当します).
8032 \begin_layout Description
8033 \begin_inset Flex Code
8036 \begin_layout Plain Layout
8043 \begin_inset Flex Code
8046 \begin_layout Plain Layout
8056 これは新規段落に割り当てられる様式であり,通常は
8057 \begin_inset Flex MenuItem
8060 \begin_layout Plain Layout
8066 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
8069 \begin_layout Description
8070 \begin_inset Flex Code
8073 \begin_layout Plain Layout
8080 \begin_inset Flex Code
8083 \begin_layout Plain Layout
8090 \begin_inset Flex Code
8093 \begin_layout Plain Layout
8099 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
8101 \begin_inset Flex Code
8104 \begin_layout Plain Layout
8110 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
8114 .モジュールは,他のモジュールを排除する独自の枠組みがあります(第
8115 \begin_inset CommandInset ref
8117 reference "subsec:レイアウトモジュール"
8124 \begin_layout Description
8125 \begin_inset Flex Code
8128 \begin_layout Plain Layout
8135 \begin_inset CommandInset ref
8137 reference "subsec:フロート"
8142 \begin_inset Flex Code
8145 \begin_layout Plain Layout
8154 \begin_layout Description
8155 \begin_inset Flex Code
8158 \begin_layout Plain Layout
8164 この文書クラスがXHTMLに出力されるときに,
8165 \begin_inset Flex Code
8168 \begin_layout Plain Layout
8174 ブロックに出力される情報です.これより前に出現した
8175 \begin_inset Flex Code
8178 \begin_layout Plain Layout
8185 \begin_inset Flex Code
8188 \begin_layout Plain Layout
8194 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
8195 \begin_inset Flex Code
8198 \begin_layout Plain Layout
8205 \begin_inset Flex Code
8208 \begin_layout Plain Layout
8217 \begin_layout Description
8218 \begin_inset Flex Code
8221 \begin_layout Plain Layout
8228 \begin_inset Flex Code
8231 \begin_layout Plain Layout
8237 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
8238 .これを指定しない場合には,\SpecialChar LyX
8239 はどのレイアウトを使用するべきか,解析しようと試みます.
8242 \begin_layout Description
8243 \begin_inset Flex Code
8246 \begin_layout Plain Layout
8253 \begin_inset Flex Code
8256 \begin_layout Plain Layout
8262 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
8263 \begin_inset Flex Code
8266 \begin_layout Plain Layout
8273 \begin_inset Newline newline
8277 \begin_inset CommandInset ref
8279 reference "subsec:カウンタ"
8286 \begin_layout Description
8287 \begin_inset Flex Code
8290 \begin_layout Plain Layout
8297 \begin_inset Flex Code
8300 \begin_layout Plain Layout
8306 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8307 \begin_inset Flex Code
8310 \begin_layout Plain Layout
8319 \begin_layout Description
8320 \begin_inset Flex Code
8323 \begin_layout Plain Layout
8330 \begin_inset Flex Code
8333 \begin_layout Plain Layout
8343 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8345 \begin_inset Flex Code
8348 \begin_layout Plain Layout
8357 \begin_layout Description
8358 \begin_inset Flex Code
8361 \begin_layout Plain Layout
8368 \begin_inset Flex Code
8371 \begin_layout Plain Layout
8381 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8382 \begin_inset Flex Code
8385 \begin_layout Plain Layout
8392 \begin_inset Newline newline
8396 \begin_inset CommandInset ref
8398 reference "subsec:任意設定差込枠"
8405 \begin_layout Description
8406 \begin_inset Flex Code
8409 \begin_layout Plain Layout
8416 \begin_inset Flex Code
8419 \begin_layout Plain Layout
8425 ] 画面上の左余白の幅を指示する文字列.例:「
8426 \begin_inset Flex Code
8429 \begin_layout Plain Layout
8435 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8438 \begin_layout Description
8439 \begin_inset Flex Code
8442 \begin_layout Plain Layout
8449 \begin_inset Flex Code
8452 \begin_layout Plain Layout
8458 ] 著者-刊行年引用で,引用が「第一著者 et al.」に切り替わる前に,表示される名前の最大数を定める整数.主に引用エンジンファイルで使用されます(第
8459 \begin_inset CommandInset ref
8461 reference "subsec:引用エンジンファイル"
8471 \begin_layout Description
8472 \begin_inset Flex Code
8475 \begin_layout Plain Layout
8482 \begin_inset Flex Code
8485 \begin_layout Plain Layout
8491 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8494 \begin_layout Description
8495 \begin_inset Flex Code
8498 \begin_layout Plain Layout
8505 \begin_inset Flex Code
8508 \begin_layout Plain Layout
8514 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8517 \begin_layout Description
8518 \begin_inset Flex Code
8521 \begin_layout Plain Layout
8528 \begin_inset Flex Code
8531 \begin_layout Plain Layout
8537 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8540 \begin_layout Description
8541 \begin_inset Flex Code
8544 \begin_layout Plain Layout
8551 \begin_inset Flex Code
8554 \begin_layout Plain Layout
8561 \begin_inset Flex Code
8564 \begin_layout Plain Layout
8571 \begin_inset Flex Code
8574 \begin_layout Plain Layout
8581 \begin_inset Flex Code
8584 \begin_layout Plain Layout
8590 の新しい一覧表を定義します.AddToTocコマンドもご覧ください.
8593 \begin_layout Description
8594 \begin_inset Flex Code
8597 \begin_layout Plain Layout
8604 \begin_inset Flex Code
8607 \begin_layout Plain Layout
8613 ] このクラスによって生成されるファイル形式を示す文字列(
8617 ダイアログで定義される形のもの).おもに,
8618 \begin_inset Flex Code
8621 \begin_layout Plain Layout
8628 \begin_inset Flex Code
8631 \begin_layout Plain Layout
8637 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8638 \begin_inset Flex Code
8641 \begin_layout Plain Layout
8647 パラメーターに遭遇したときには,この文字列は,「
8648 \begin_inset Flex Code
8651 \begin_layout Plain Layout
8658 \begin_inset Flex Code
8661 \begin_layout Plain Layout
8672 \begin_layout Description
8673 \begin_inset Flex Code
8676 \begin_layout Plain Layout
8683 \begin_inset Flex Code
8686 \begin_layout Plain Layout
8697 \begin_inset Flex Code
8700 \begin_layout Plain Layout
8707 \begin_inset Flex Code
8710 \begin_layout Plain Layout
8716 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8719 \begin_layout Description
8720 \begin_inset Flex Code
8723 \begin_layout Plain Layout
8730 \begin_inset Flex Code
8733 \begin_layout Plain Layout
8740 \begin_inset Flex Code
8743 \begin_layout Plain Layout
8749 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8750 \begin_inset Flex Code
8753 \begin_layout Plain Layout
8754 PackageOptions natbib square
8760 \begin_inset Flex Code
8763 \begin_layout Plain Layout
8770 \begin_inset Flex Code
8773 \begin_layout Plain Layout
8779 オプションとともに読み込みます(\SpecialChar TeX
8781 \begin_inset Flex Code
8784 \begin_layout Plain Layout
8790 を読み込む前に,\SpecialChar LyX
8792 \begin_inset Flex Code
8795 \begin_layout Plain Layout
8798 PassOptionsToPackage{natbib}{square}
8806 \begin_layout Description
8807 \begin_inset Flex Code
8810 \begin_layout Plain Layout
8819 \begin_inset Flex Code
8822 \begin_layout Plain Layout
8831 \begin_inset Flex Code
8834 \begin_layout Plain Layout
8841 \begin_inset Flex Code
8844 \begin_layout Plain Layout
8851 \begin_inset Flex MenuItem
8854 \begin_layout Plain Layout
8855 文書\SpecialChar menuseparator
8864 \begin_layout Description
8865 \begin_inset Flex Code
8868 \begin_layout Plain Layout
8875 文書のプリアンブルを設定します.前に行った
8876 \begin_inset Flex Code
8879 \begin_layout Plain Layout
8886 \begin_inset Flex Code
8889 \begin_layout Plain Layout
8895 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8896 \begin_inset Flex Code
8899 \begin_layout Plain Layout
8906 \begin_inset Flex Code
8909 \begin_layout Plain Layout
8918 \begin_layout Description
8919 \begin_inset Flex Code
8922 \begin_layout Plain Layout
8929 \begin_inset Flex Code
8932 \begin_layout Plain Layout
8939 \begin_inset Flex Code
8942 \begin_layout Plain Layout
8951 \begin_inset Flex Code
8954 \begin_layout Plain Layout
8961 \begin_inset Flex Code
8964 \begin_layout Plain Layout
8970 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8971 \begin_inset Flex Code
8974 \begin_layout Plain Layout
8981 \begin_inset Flex Code
8984 \begin_layout Plain Layout
8992 \begin_inset Flex Code
8995 \begin_layout Plain Layout
9002 \begin_inset Flex Code
9005 \begin_layout Plain Layout
9013 \begin_inset CommandInset ref
9015 reference "chap:関数一覧"
9022 \begin_layout Description
9023 \begin_inset Flex Code
9026 \begin_layout Plain Layout
9033 \begin_inset Flex Code
9036 \begin_layout Plain Layout
9043 \begin_inset Flex Code
9046 \begin_layout Plain Layout
9052 で表されているモジュールの機能を提供することを示し,
9053 \begin_inset Flex Code
9056 \begin_layout Plain Layout
9063 \begin_inset Flex Code
9066 \begin_layout Plain Layout
9072 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
9073 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
9076 \begin_layout Description
9077 \begin_inset Flex Code
9080 \begin_layout Plain Layout
9087 \begin_inset Flex Code
9090 \begin_layout Plain Layout
9097 \begin_inset Flex Code
9100 \begin_layout Plain Layout
9106 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
9108 \begin_inset CommandInset ref
9110 reference "chap:関数一覧"
9114 を参照).特定のオプションをとるパッケージを要求する場合,
9115 \begin_inset Flex Code
9118 \begin_layout Plain Layout
9127 \begin_layout Description
9128 \begin_inset Flex Code
9131 \begin_layout Plain Layout
9138 \begin_inset Flex Code
9141 \begin_layout Plain Layout
9147 ] 画面上の右余白の幅を指示する文字列.例:「
9148 \begin_inset Flex Code
9151 \begin_layout Plain Layout
9160 \begin_layout Description
9161 \begin_inset Flex Code
9164 \begin_layout Plain Layout
9171 \begin_inset Flex Code
9174 \begin_layout Plain Layout
9180 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
9182 \begin_inset Flex Code
9185 \begin_layout Plain Layout
9194 \begin_layout Description
9195 \begin_inset Flex Code
9198 \begin_layout Plain Layout
9207 \begin_inset Flex Code
9210 \begin_layout Plain Layout
9219 \begin_inset space \thinspace{}
9223 \begin_inset Flex Code
9226 \begin_layout Plain Layout
9232 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
9233 \begin_inset Flex MenuItem
9236 \begin_layout Plain Layout
9237 文書\SpecialChar menuseparator
9246 \begin_layout Description
9247 \begin_inset Flex Code
9250 \begin_layout Plain Layout
9257 \begin_inset Flex Code
9260 \begin_layout Plain Layout
9270 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
9271 \begin_inset Flex Code
9274 \begin_layout Plain Layout
9281 \begin_inset Newline newline
9285 \begin_inset CommandInset ref
9287 reference "subsec:段落様式-XHTML"
9294 \begin_layout Description
9295 \begin_inset Flex Code
9298 \begin_layout Plain Layout
9305 \begin_inset Flex Code
9308 \begin_layout Plain Layout
9315 \begin_inset Flex Code
9318 \begin_layout Plain Layout
9324 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
9326 \begin_inset Flex Code
9329 \begin_layout Plain Layout
9338 \begin_layout Description
9339 \begin_inset Flex Code
9342 \begin_layout Plain Layout
9349 \begin_inset Flex Code
9352 \begin_layout Plain Layout
9361 \begin_inset Flex Code
9364 \begin_layout Plain Layout
9370 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9371 \begin_inset Flex Code
9374 \begin_layout Plain Layout
9381 \begin_inset Flex Code
9384 \begin_layout Plain Layout
9386 \begin_inset space ~
9394 」が指定されている最後のレイアウトの後に,
9395 \begin_inset Flex Code
9398 \begin_layout Plain Layout
9404 で指定したマクロ名を挿入することを意味します.
9405 \begin_inset Flex Code
9408 \begin_layout Plain Layout
9415 \begin_inset Flex Code
9418 \begin_layout Plain Layout
9420 \begin_inset space ~
9429 \begin_inset Flex Code
9432 \begin_layout Plain Layout
9438 で指定した環境でくるむ場合に対応します.
9441 \begin_layout Description
9442 \begin_inset Flex Code
9445 \begin_layout Plain Layout
9452 \begin_inset Flex Code
9455 \begin_layout Plain Layout
9461 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9463 \begin_inset Flex Code
9466 \begin_layout Plain Layout
9475 \begin_layout Subsection
9476 \begin_inset Flex Code
9479 \begin_layout Plain Layout
9486 \begin_inset CommandInset label
9488 name "subsec:ClassOptions"
9495 \begin_layout Standard
9496 \begin_inset Flex Code
9499 \begin_layout Plain Layout
9508 \begin_layout Description
9509 \begin_inset Flex Code
9512 \begin_layout Plain Layout
9519 \begin_inset Flex Code
9522 \begin_layout Plain Layout
9528 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9529 \begin_inset Flex Code
9532 \begin_layout Plain Layout
9541 \begin_layout Description
9542 \begin_inset Flex Code
9545 \begin_layout Plain Layout
9551 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9552 \begin_inset Quotes eld
9555 -//OASIS//DTD DocBook V4.2//EN
9556 \begin_inset Quotes erd
9562 \begin_layout Description
9563 \begin_inset Flex Code
9566 \begin_layout Plain Layout
9573 \begin_inset Flex Code
9576 \begin_layout Plain Layout
9577 文字列="empty|plain|headings|fancy"
9583 \begin_inset Flex Code
9586 \begin_layout Plain Layout
9595 \begin_layout Description
9596 \begin_inset Flex Code
9599 \begin_layout Plain Layout
9606 \begin_inset Flex Code
9609 \begin_layout Plain Layout
9616 \begin_inset Flex Code
9619 \begin_layout Plain Layout
9627 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9630 \begin_layout Standard
9631 \begin_inset Flex Code
9634 \begin_layout Plain Layout
9641 \begin_inset Flex Code
9644 \begin_layout Plain Layout
9653 \begin_layout Subsection
9655 \begin_inset CommandInset label
9664 \begin_layout Standard
9669 \begin_layout Plain Layout
9670 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9678 \begin_layout LyX-Code
9685 \begin_layout LyX-Code
9689 \begin_layout LyX-Code
9693 \begin_layout Standard
9694 ここでは,以下のコマンドを使用することができます.
9697 \begin_layout Description
9698 \begin_inset Flex Code
9701 \begin_layout Plain Layout
9708 \begin_inset Flex Code
9711 \begin_layout Plain Layout
9717 =""] この段落は指定された型の一覧表に現れます.空の文字列を与えると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドもご覧
9721 \begin_layout Description
9722 \begin_inset Flex Code
9725 \begin_layout Plain Layout
9732 \begin_inset Flex Code
9735 \begin_layout Plain Layout
9740 , left, right, center
9748 \begin_layout Description
9749 \begin_inset Flex Code
9752 \begin_layout Plain Layout
9759 \begin_inset Flex Code
9762 \begin_layout Plain Layout
9767 , left, right, center
9772 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9773 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9777 \begin_layout Description
9778 \begin_inset Flex Code
9781 \begin_layout Plain Layout
9788 \begin_inset Flex Code
9791 \begin_layout Plain Layout
9797 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9799 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9800 \begin_inset Flex Code
9803 \begin_layout Plain Layout
9809 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9849 \begin_layout Standard
9850 \begin_inset Flex Code
9853 \begin_layout Plain Layout
9859 定義内部では,以下の指定をすることができます.
9862 \begin_layout Itemize
9863 \begin_inset Flex Code
9866 \begin_layout Plain Layout
9873 \begin_inset Flex Code
9876 \begin_layout Plain Layout
9882 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9883 \begin_inset Flex Code
9886 \begin_layout Plain Layout
9892 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9893 \begin_inset space \space{}
9897 \begin_inset Quotes eld
9901 \begin_inset Flex Code
9904 \begin_layout Plain Layout
9911 \begin_inset Quotes erd
9917 \begin_layout Itemize
9918 \begin_inset Flex Code
9921 \begin_layout Plain Layout
9928 \begin_inset Flex Code
9931 \begin_layout Plain Layout
9937 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9938 \begin_inset space \space{}
9942 \begin_inset Quotes eld
9946 \begin_inset Flex Code
9949 \begin_layout Plain Layout
9956 \begin_inset Quotes erd
9959 ).この指定は必須ではありません.指定しない場合には,代わりに
9960 \begin_inset Flex Code
9963 \begin_layout Plain Layout
9972 \begin_layout Itemize
9973 \begin_inset Flex Code
9976 \begin_layout Plain Layout
9983 \begin_inset Flex Code
9986 \begin_layout Plain Layout
9992 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9995 \begin_layout Itemize
9996 \begin_inset Flex Code
9999 \begin_layout Plain Layout
10006 \begin_inset Flex Code
10009 \begin_layout Plain Layout
10018 \begin_inset space \thinspace{}
10022 \begin_inset Flex Code
10025 \begin_layout Plain Layout
10031 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
10033 \begin_inset Flex Code
10036 \begin_layout Plain Layout
10043 \begin_inset Flex Code
10046 \begin_layout Plain Layout
10055 \begin_layout Itemize
10056 \begin_inset Flex Code
10059 \begin_layout Plain Layout
10066 \begin_inset Flex Code
10069 \begin_layout Plain Layout
10075 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
10077 \begin_inset Flex Code
10080 \begin_layout Plain Layout
10088 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
10089 \begin_inset Flex Code
10092 \begin_layout Plain Layout
10099 \begin_inset Flex Code
10102 \begin_layout Plain Layout
10108 ステートメントを置くことで実現できます.
10111 \begin_layout Itemize
10112 \begin_inset Flex Code
10115 \begin_layout Plain Layout
10122 \begin_inset Flex Code
10125 \begin_layout Plain Layout
10132 \begin_inset Flex Code
10135 \begin_layout Plain Layout
10142 \begin_inset Flex Code
10145 \begin_layout Plain Layout
10151 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
10152 \begin_inset Flex Code
10155 \begin_layout Plain Layout
10164 \begin_layout Itemize
10165 \begin_inset Flex Code
10168 \begin_layout Plain Layout
10175 \begin_inset Flex Code
10178 \begin_layout Plain Layout
10185 \begin_inset Flex Code
10188 \begin_layout Plain Layout
10195 \begin_inset Flex Code
10198 \begin_layout Plain Layout
10204 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
10205 \begin_inset Flex Code
10208 \begin_layout Plain Layout
10217 \begin_layout Itemize
10218 \begin_inset Flex Code
10221 \begin_layout Plain Layout
10228 \begin_inset Flex Code
10231 \begin_layout Plain Layout
10237 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10238 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
10241 \begin_layout Itemize
10242 \begin_inset Flex Code
10245 \begin_layout Plain Layout
10252 \begin_inset Flex Code
10255 \begin_layout Plain Layout
10261 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
10264 \begin_layout Itemize
10265 \begin_inset Flex Code
10268 \begin_layout Plain Layout
10275 \begin_inset CommandInset ref
10277 reference "subsec:フォント指定"
10284 \begin_layout Itemize
10285 \begin_inset Flex Code
10288 \begin_layout Plain Layout
10295 \begin_inset CommandInset ref
10297 reference "subsec:フォント指定"
10304 \begin_layout Itemize
10305 \begin_inset Flex Code
10308 \begin_layout Plain Layout
10315 \begin_inset Flex Code
10318 \begin_layout Plain Layout
10323 , Minimalistic, Conglomerate
10328 ] 差込枠の枠とボタンに用いられる装飾様式.
10331 \begin_layout Itemize
10332 \begin_inset Flex Code
10335 \begin_layout Plain Layout
10342 \begin_inset Flex Code
10345 \begin_layout Plain Layout
10352 \begin_inset Flex Code
10355 \begin_layout Plain Layout
10361 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
10364 \begin_layout Itemize
10365 \begin_inset Flex Code
10368 \begin_layout Plain Layout
10375 \begin_inset Flex Code
10378 \begin_layout Plain Layout
10385 \begin_inset Flex Code
10388 \begin_layout Plain Layout
10394 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10397 \begin_layout Itemize
10398 \begin_inset Flex Code
10401 \begin_layout Plain Layout
10408 \begin_inset Flex Code
10411 \begin_layout Plain Layout
10421 ] この引数の内容が,\SpecialChar LaTeX
10422 が要求する特別な書き換えを行うことなく,原文のまま出力されるべきかどうかを指定します.既定値では,
10423 \begin_inset Flex Code
10426 \begin_layout Plain Layout
10432 の状態は,引数が属する差込枠または段落レイアウトに継承されます.trueまたはfalseは,この引数のみの状態を変更します.
10435 \begin_layout Itemize
10436 \begin_inset Flex Code
10439 \begin_layout Plain Layout
10446 \begin_inset Flex Code
10449 \begin_layout Plain Layout
10460 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10461 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10464 \begin_layout Itemize
10465 \begin_inset Flex Code
10468 \begin_layout Plain Layout
10475 \begin_inset Flex Code
10478 \begin_layout Plain Layout
10487 \begin_inset space \thinspace{}
10491 \begin_inset Flex Code
10494 \begin_layout Plain Layout
10500 ] これを1に設定すると,引数は,その内容を対応する一覧表の項目に出力します.AddToTocを参照.
10503 \begin_layout Standard
10505 \begin_inset Flex Code
10508 \begin_layout Plain Layout
10515 \begin_inset Flex Code
10518 \begin_layout Plain Layout
10524 のとき,各レイアウトで\SpecialChar LyX
10525 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10526 \begin_inset Flex Code
10529 \begin_layout Plain Layout
10535 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10536 \begin_inset Flex Code
10539 \begin_layout Plain Layout
10546 \begin_inset Flex Code
10549 \begin_layout Plain Layout
10556 \begin_inset Flex Code
10559 \begin_layout Plain Layout
10568 \begin_layout Standard
10570 \begin_inset Flex Code
10573 \begin_layout Plain Layout
10582 \begin_inset Flex Code
10585 \begin_layout Plain Layout
10594 \begin_inset Flex Code
10597 \begin_layout Plain Layout
10604 \begin_inset Flex Code
10607 \begin_layout Plain Layout
10617 \begin_layout Description
10620 \begin_inset Flex Code
10623 \begin_layout Plain Layout
10631 Includes a comma-separated list of layouts that should be nested in and
10632 after the current layout.
10633 Only makes sense for nestable layouts (such as environments).
10635 \begin_inset Quotes eld
10639 \begin_inset Flex Code
10642 \begin_layout Plain Layout
10651 \begin_inset Quotes erd
10656 \begin_inset Flex Code
10659 \begin_layout Plain Layout
10670 \begin_layout Description
10671 \begin_inset Flex Code
10674 \begin_layout Plain Layout
10681 \begin_inset Flex Code
10684 \begin_layout Plain Layout
10690 宣言をすべて,完全に上書きしますので注意してください.「
10691 \begin_inset Flex Code
10694 \begin_layout Plain Layout
10700 」で閉じる必要があります.これの利用法についての詳細は,第
10701 \begin_inset CommandInset ref
10703 reference "subsec:段落様式の国際化"
10710 \begin_layout Description
10711 \begin_inset Flex Code
10714 \begin_layout Plain Layout
10721 \begin_inset Flex Code
10724 \begin_layout Plain Layout
10734 \begin_layout Plain Layout
10735 ここで「浮動小数点型」とは1.5のような実数を指します.
10740 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10744 \begin_layout Description
10745 \begin_inset Flex Code
10748 \begin_layout Plain Layout
10755 \begin_inset Flex Code
10758 \begin_layout Plain Layout
10764 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10765 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10768 \begin_layout Description
10769 \begin_inset Flex Code
10772 \begin_layout Plain Layout
10778 XMLコマンドの深度.XML型の書式でのみ使用されます.
10781 \begin_layout Description
10782 \begin_inset Flex Code
10785 \begin_layout Plain Layout
10792 \begin_inset Flex Code
10795 \begin_layout Plain Layout
10801 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10804 \begin_layout Description
10805 \begin_inset Flex Code
10808 \begin_layout Plain Layout
10815 \begin_inset Flex Code
10818 \begin_layout Plain Layout
10832 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10836 \begin_layout Plain Layout
10837 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10838 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10847 \begin_layout Description
10848 \begin_inset Flex Code
10851 \begin_layout Plain Layout
10858 \begin_inset Flex Code
10861 \begin_layout Plain Layout
10866 , Box, Filled_Box, Static
10872 \begin_inset Flex Code
10875 \begin_layout Plain Layout
10882 \begin_inset Flex Code
10885 \begin_layout Plain Layout
10892 \begin_inset Flex Code
10895 \begin_layout Plain Layout
10902 \begin_inset Flex Code
10905 \begin_layout Plain Layout
10911 のいずれかの場合は,段落群の最後)に置くラベル.
10912 \begin_inset Flex Code
10915 \begin_layout Plain Layout
10922 \begin_inset Flex Code
10925 \begin_layout Plain Layout
10932 \begin_inset Flex Code
10935 \begin_layout Plain Layout
10941 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10942 \begin_inset Flex Code
10945 \begin_layout Plain Layout
10954 \begin_layout Description
10955 \begin_inset Flex Code
10958 \begin_layout Plain Layout
10965 \begin_inset Flex Code
10968 \begin_layout Plain Layout
10975 \begin_inset Flex Code
10978 \begin_layout Plain Layout
10985 \begin_inset Flex Code
10988 \begin_layout Plain Layout
10997 \begin_layout Description
10998 \begin_inset Flex Code
11001 \begin_layout Plain Layout
11012 \begin_inset CommandInset ref
11014 reference "subsec:フォント指定"
11018 節を参照.このフォントを定義すると,自動的に
11019 \begin_inset Flex Code
11022 \begin_layout Plain Layout
11028 も同じ値で定義されることに注意してください.したがって,
11029 \begin_inset Flex Code
11032 \begin_layout Plain Layout
11038 も同時に定義したい場合には,これを先に定義してください.
11041 \begin_layout Description
11042 \begin_inset Flex Code
11045 \begin_layout Plain Layout
11052 \begin_inset Flex Code
11055 \begin_layout Plain Layout
11061 ] 新しい様式を\SpecialChar LyX
11062 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
11063 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
11065 \begin_inset Flex Code
11068 \begin_layout Plain Layout
11074 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
11076 もこの様式を取り扱えるようになります.
11077 \begin_inset Flex Code
11080 \begin_layout Plain Layout
11086 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
11087 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
11090 \begin_layout Description
11091 \begin_inset Flex Code
11094 \begin_layout Plain Layout
11103 \begin_inset Flex Code
11106 \begin_layout Plain Layout
11115 \begin_inset space \thinspace{}
11119 \begin_inset Flex Code
11122 \begin_layout Plain Layout
11129 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
11130 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
11131 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
11132 \begin_inset Flex Code
11135 \begin_layout Plain Layout
11141 を有効にすることが認められています.\SpecialChar LyX
11142 は,\SpecialChar LaTeX
11143 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
11146 \begin_layout Description
11147 \begin_inset Flex Code
11150 \begin_layout Plain Layout
11156 これらのタグは,XHTML出力で使用されます.第
11157 \begin_inset CommandInset ref
11159 reference "subsec:段落様式-XHTML"
11166 \begin_layout Description
11167 \begin_inset Flex Code
11170 \begin_layout Plain Layout
11176 [[FIXME]] (XML型書式でのみ使用されます.)
11179 \begin_layout Description
11180 \begin_inset Flex Code
11183 \begin_layout Plain Layout
11192 \begin_inset Flex Code
11195 \begin_layout Plain Layout
11204 \begin_inset space \thinspace{}
11208 \begin_inset Flex Code
11211 \begin_layout Plain Layout
11218 \begin_inset Flex Code
11221 \begin_layout Plain Layout
11227 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11229 \begin_inset Flex Code
11232 \begin_layout Plain Layout
11239 \begin_inset Flex Code
11242 \begin_layout Plain Layout
11249 \begin_inset Flex Code
11252 \begin_layout Plain Layout
11261 \begin_layout Description
11262 \begin_inset Flex Code
11265 \begin_layout Plain Layout
11274 \begin_inset Flex Code
11277 \begin_layout Plain Layout
11286 \begin_inset space \thinspace{}
11290 \begin_inset Flex Code
11293 \begin_layout Plain Layout
11300 \begin_inset Flex Code
11303 \begin_layout Plain Layout
11309 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11310 \begin_inset Flex Code
11313 \begin_layout Plain Layout
11320 \begin_inset Flex Code
11323 \begin_layout Plain Layout
11332 \begin_layout Description
11335 \begin_inset Flex Code
11338 \begin_layout Plain Layout
11346 Includes a comma-separated list of layouts after which this one should
11348 Only makes sense with regard to nestable layouts (such as environments).
11350 \begin_inset Quotes eld
11354 \begin_inset Flex Code
11357 \begin_layout Plain Layout
11366 \begin_inset Quotes erd
11371 \begin_inset Flex Code
11374 \begin_layout Plain Layout
11385 \begin_layout Description
11386 \begin_inset Flex Code
11389 \begin_layout Plain Layout
11396 \begin_inset Flex Code
11399 \begin_layout Plain Layout
11408 \begin_inset space \thinspace{}
11412 \begin_inset Flex Code
11415 \begin_layout Plain Layout
11421 ] これを1に設定すると,AddToTocが有効になり,段落は,その内容の要約を一覧表の項目に表示します.0に設定すると,ラベルが存在すれば,それのみが表示され
11425 \begin_layout Description
11426 \begin_inset Flex Code
11429 \begin_layout Plain Layout
11436 \begin_inset Flex Code
11439 \begin_layout Plain Layout
11445 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11446 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
11448 \begin_inset Flex Code
11451 \begin_layout Plain Layout
11462 \begin_layout Description
11463 \begin_inset Flex Code
11466 \begin_layout Plain Layout
11473 \begin_inset Flex Code
11476 \begin_layout Plain Layout
11482 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
11483 \begin_inset Flex Code
11486 \begin_layout Plain Layout
11492 だけ分離されます.しかし,その環境の項目全体は,さらにこの
11493 \begin_inset Flex Code
11496 \begin_layout Plain Layout
11509 \begin_layout Description
11510 \begin_inset Flex Code
11513 \begin_layout Plain Layout
11519 [[FIXME]] (XML型書式でのみ使用されます.)
11522 \begin_layout Description
11523 \begin_inset Flex Code
11526 \begin_layout Plain Layout
11535 \begin_inset Flex Code
11538 \begin_layout Plain Layout
11547 \begin_inset space \thinspace{}
11551 \begin_inset Flex Code
11554 \begin_layout Plain Layout
11560 ] 段落を空のままにすると,\SpecialChar LaTeX
11561 出力が空になってしまうので,通常,\SpecialChar LyX
11562 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
11563 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
11564 まないある種の改行として使用することもあります.
11567 \begin_layout Description
11568 \begin_inset Flex Code
11571 \begin_layout Plain Layout
11578 \begin_inset Flex Code
11581 \begin_layout Plain Layout
11587 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
11588 \begin_inset Flex Code
11591 \begin_layout Plain Layout
11598 \begin_inset Newline linebreak
11602 \begin_inset Flex Code
11605 \begin_layout Plain Layout
11606 Centered_Top_Environment
11614 \begin_layout Description
11615 \begin_inset Flex Code
11618 \begin_layout Plain Layout
11625 \begin_inset Flex Code
11628 \begin_layout Plain Layout
11634 ] 自動連番に使われるカウンタ名(詳しくは第
11635 \begin_inset CommandInset ref
11637 reference "subsec:カウンタ"
11644 節参照).カウンタがラベル中に表示されるようにするためには,
11645 \begin_inset Flex Code
11648 \begin_layout Plain Layout
11654 中で参照する必要があります.これは,少なくとも
11655 \begin_inset Flex Code
11658 \begin_layout Plain Layout
11665 \begin_inset Flex Code
11668 \begin_layout Plain Layout
11675 \begin_inset Flex Code
11678 \begin_layout Plain Layout
11685 \begin_inset Flex Code
11688 \begin_layout Plain Layout
11695 \begin_inset Newline newline
11699 \begin_inset Flex Code
11702 \begin_layout Plain Layout
11709 \begin_inset Flex Code
11712 \begin_layout Plain Layout
11718 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11719 \begin_inset Flex Code
11722 \begin_layout Plain Layout
11723 LabelCounter myenum
11728 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11729 におけるのと同様,実際に使われるカウンタは,
11730 \begin_inset Flex Code
11733 \begin_layout Plain Layout
11740 \begin_inset Flex Code
11743 \begin_layout Plain Layout
11750 \begin_inset Flex Code
11753 \begin_layout Plain Layout
11760 \begin_inset Flex Code
11763 \begin_layout Plain Layout
11769 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11770 \begin_inset Newline newline
11774 \begin_inset CommandInset ref
11776 reference "subsec:カウンタ"
11783 \begin_layout Description
11784 \begin_inset Flex Code
11787 \begin_layout Plain Layout
11794 \begin_inset CommandInset ref
11796 reference "subsec:フォント指定"
11803 \begin_layout Description
11804 \begin_inset Flex Code
11807 \begin_layout Plain Layout
11814 \begin_inset Flex Code
11817 \begin_layout Plain Layout
11823 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11826 \begin_layout Description
11827 \begin_inset Flex Code
11830 \begin_layout Plain Layout
11837 \begin_inset Flex Code
11840 \begin_layout Plain Layout
11846 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11849 \begin_layout Description
11850 \begin_inset Flex Code
11853 \begin_layout Plain Layout
11860 \begin_inset Flex Code
11863 \begin_layout Plain Layout
11870 \begin_inset Flex Code
11873 \begin_layout Plain Layout
11880 \begin_inset Flex Code
11883 \begin_layout Plain Layout
11890 \begin_inset CommandInset ref
11892 reference "subsec:カウンタ"
11896 に述べられている特別な整形コマンドを含めることができます.
11899 \begin_layout Description
11900 \begin_inset Flex Code
11903 \begin_layout Plain Layout
11904 LabelStringAppendix
11910 \begin_inset Flex Code
11913 \begin_layout Plain Layout
11920 \begin_inset Flex Code
11923 \begin_layout Plain Layout
11930 \begin_inset Flex Code
11933 \begin_layout Plain Layout
11940 \begin_inset Flex Code
11943 \begin_layout Plain Layout
11944 LabelStringAppendix
11949 をもリセットすることに注意してください.
11952 \begin_layout Description
11953 \begin_inset Flex Code
11956 \begin_layout Plain Layout
11962 [FIXME] (XML型書式でのみ使用されます.)
11965 \begin_layout Description
11966 \begin_inset Flex Code
11969 \begin_layout Plain Layout
11976 \begin_inset Flex Code
11979 \begin_layout Plain Layout
11984 , Manual, Static, Above,
11985 \begin_inset Newline newline
11988 Centered, Sensitive, Enumerate,
11989 \begin_inset Newline newline
11992 Itemize, Bibliography
12001 \begin_layout Description
12002 \begin_inset Flex Code
12005 \begin_layout Plain Layout
12011 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
12014 \begin_layout Description
12015 \begin_inset Flex Code
12018 \begin_layout Plain Layout
12025 \begin_inset Flex Code
12028 \begin_layout Plain Layout
12034 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
12035 \begin_inset Flex Code
12038 \begin_layout Plain Layout
12045 \begin_inset Flex Code
12048 \begin_layout Plain Layout
12055 \begin_inset Flex Code
12058 \begin_layout Plain Layout
12064 の段落中,最初の段落にのみ表示されます.
12067 \begin_layout Description
12068 \begin_inset Flex Code
12071 \begin_layout Plain Layout
12078 \begin_inset Flex Code
12081 \begin_layout Plain Layout
12088 \begin_inset Flex Code
12091 \begin_layout Plain Layout
12097 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
12100 \begin_layout Description
12101 \begin_inset Flex Code
12104 \begin_layout Plain Layout
12110 はキャプションラベルの「図」や「表」の特別な場合です.
12111 \begin_inset Flex Code
12114 \begin_layout Plain Layout
12120 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
12121 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
12122 \begin_inset Flex Code
12125 \begin_layout Plain Layout
12131 は「意味を成しません!」と表示されます.
12134 \begin_layout Description
12135 \begin_inset Flex Code
12138 \begin_layout Plain Layout
12146 The number type needs to be set in the
12153 \begin_inset CommandInset ref
12155 reference "subsec:カウンタ"
12162 \begin_layout Description
12163 \begin_inset Flex Code
12166 \begin_layout Plain Layout
12172 は,各階層でさまざまなブリットを生成します.
12174 The bullet types displayed can be set via
12175 \begin_inset Flex Noun
12178 \begin_layout Plain Layout
12181 Document\SpecialChar menuseparator
12182 Settings\SpecialChar menuseparator
12191 \begin_layout Description
12192 \begin_inset Flex Code
12195 \begin_layout Plain Layout
12202 \begin_inset Flex Code
12205 \begin_layout Plain Layout
12206 LatexType BibEnvironment
12215 \begin_layout Description
12216 \begin_inset Flex Code
12219 \begin_layout Plain Layout
12226 \begin_inset Flex Code
12229 \begin_layout Plain Layout
12235 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
12236 \begin_inset CommandInset ref
12238 reference "subsec:段落様式の国際化"
12245 \begin_layout Description
12246 \begin_inset Flex Code
12249 \begin_layout Plain Layout
12256 \begin_inset Flex Code
12259 \begin_layout Plain Layout
12265 ] 対応する\SpecialChar LaTeX
12266 の名称です.環境名かコマンド名を指します.
12269 \begin_layout Description
12270 \begin_inset Flex Code
12273 \begin_layout Plain Layout
12280 \begin_inset Flex Code
12283 \begin_layout Plain Layout
12290 \begin_inset Flex Code
12293 \begin_layout Plain Layout
12299 の非必須パラメータです.このパラメータは,\SpecialChar LyX
12300 内部から変更することはできません(変更可能なパラメータには
12301 \begin_inset Flex Code
12304 \begin_layout Plain Layout
12310 を使用してください).これは,全ての\SpecialChar LaTeX
12312 \begin_inset Flex Code
12315 \begin_layout Plain Layout
12324 \begin_layout Description
12325 \begin_inset Flex Code
12328 \begin_layout Plain Layout
12335 \begin_inset Flex Code
12338 \begin_layout Plain Layout
12343 , Command, Environment, Item_Environment,
12344 \begin_inset Newline newline
12347 List_Environment, Bib_Environment
12352 ] レイアウトがどのように\SpecialChar LaTeX
12357 \begin_layout Plain Layout
12358 これらのルールはSGMLクラスにも適用されるので,
12359 \begin_inset Flex Code
12362 \begin_layout Plain Layout
12368 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
12369 \begin_inset Flex Code
12372 \begin_layout Plain Layout
12387 \begin_layout Description
12388 \begin_inset Flex Code
12391 \begin_layout Plain Layout
12400 \begin_layout Description
12401 \begin_inset Flex Code
12404 \begin_layout Plain Layout
12411 \begin_inset Flex Code
12414 \begin_layout Plain Layout
12421 {\SpecialChar ldots
12430 \begin_layout Description
12431 \begin_inset Flex Code
12434 \begin_layout Plain Layout
12441 \begin_inset Flex Code
12444 \begin_layout Plain Layout
12451 }\SpecialChar ldots
12466 \begin_layout Description
12467 \begin_inset Flex Code
12470 \begin_layout Plain Layout
12477 \begin_inset Flex Code
12480 \begin_layout Plain Layout
12487 \begin_inset Flex Code
12490 \begin_layout Plain Layout
12498 がこの環境のすべての段落に付けられるところだけが異なっています.
12501 \begin_layout Description
12502 \begin_inset Flex Code
12505 \begin_layout Plain Layout
12512 \begin_inset Flex Code
12515 \begin_layout Plain Layout
12522 \begin_inset Flex Code
12525 \begin_layout Plain Layout
12531 が環境の引数として渡されるところだけが異なっています.
12532 \begin_inset Flex Code
12535 \begin_layout Plain Layout
12542 \begin_inset Flex MenuItem
12545 \begin_layout Plain Layout
12546 編集\SpecialChar menuseparator
12555 \begin_layout Description
12556 \begin_inset Flex Code
12559 \begin_layout Plain Layout
12566 \begin_inset Flex Code
12569 \begin_layout Plain Layout
12575 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
12576 \begin_inset Newline newline
12580 \begin_inset Flex Code
12583 \begin_layout Plain Layout
12586 begin{thebibliography}{99}
12592 \begin_inset Newline newline
12595 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
12598 \begin_layout Standard
12599 上記最後のいくつかをまとめると,\SpecialChar LaTeX
12600 出力は,\SpecialChar LaTeX
12604 \begin_layout LyX-Code
12607 LatexName[LatexParam]{\SpecialChar ldots
12611 \begin_layout Standard
12615 \begin_layout LyX-Code
12618 begin{LatexName}[LatexParam] \SpecialChar ldots
12624 \begin_layout Standard
12629 \begin_layout Description
12630 \begin_inset Flex Code
12633 \begin_layout Plain Layout
12640 \begin_inset Flex Code
12643 \begin_layout Plain Layout
12649 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12650 \begin_inset Flex Code
12653 \begin_layout Plain Layout
12662 \begin_layout Description
12663 \begin_inset Flex Code
12666 \begin_layout Plain Layout
12673 \begin_inset Flex Code
12676 \begin_layout Plain Layout
12682 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12683 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12686 をかけて加えられます.このパラメータは,
12687 \begin_inset Flex Code
12690 \begin_layout Plain Layout
12697 \begin_inset Flex Code
12700 \begin_layout Plain Layout
12707 \begin_inset Flex Code
12710 \begin_layout Plain Layout
12716 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12717 \begin_inset Newline newline
12721 \begin_inset Flex Code
12724 \begin_layout Plain Layout
12730 」と指定すると,段落を通常フォントの「
12731 \begin_inset Flex Code
12734 \begin_layout Plain Layout
12740 」の幅だけ行頭下げを行います.文字列の前に「
12741 \begin_inset Flex Code
12744 \begin_layout Plain Layout
12750 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12753 \begin_layout Description
12754 \begin_inset Flex Code
12757 \begin_layout Plain Layout
12764 \begin_inset Flex Code
12767 \begin_layout Plain Layout
12772 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12778 \begin_inset Newline newline
12785 \begin_layout Description
12786 \begin_inset Flex Code
12789 \begin_layout Plain Layout
12798 \begin_layout Description
12799 \begin_inset Flex Code
12802 \begin_layout Plain Layout
12809 \begin_inset Flex MenuItem
12812 \begin_layout Plain Layout
12813 編集\SpecialChar menuseparator
12819 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12822 \begin_layout Description
12823 \begin_inset Flex Code
12826 \begin_layout Plain Layout
12832 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12833 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12836 \begin_layout Description
12837 \begin_inset Flex Code
12840 \begin_layout Plain Layout
12846 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12849 \begin_layout Description
12850 \begin_inset Flex Code
12853 \begin_layout Plain Layout
12859 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12863 \begin_layout Description
12864 \begin_inset Flex Code
12867 \begin_layout Plain Layout
12874 \begin_inset Flex Code
12877 \begin_layout Plain Layout
12886 \begin_inset space \thinspace{}
12890 \begin_inset Flex Code
12893 \begin_layout Plain Layout
12899 ] このレイアウト中の脆弱なコマンドが
12900 \begin_inset Flex Code
12903 \begin_layout Plain Layout
12911 されるべきか否か(註:これはこのコマンド自体が
12912 \begin_inset Flex Code
12915 \begin_layout Plain Layout
12930 \begin_layout Description
12931 \begin_inset Flex Code
12934 \begin_layout Plain Layout
12941 \begin_inset Flex Code
12944 \begin_layout Plain Layout
12951 \begin_inset space \thinspace{}
12955 \begin_inset Flex Code
12958 \begin_layout Plain Layout
12966 ] 新規行を\SpecialChar LaTeX
12968 \begin_inset Flex Code
12971 \begin_layout Plain Layout
12981 )に変換するか否か.\SpecialChar LyX
12982 中で\SpecialChar LaTeX
12983 編集をやりやすくするために,変換は無効にすることができます.
12986 \begin_layout Description
12987 \begin_inset Flex Code
12990 \begin_layout Plain Layout
12997 \begin_inset Flex Code
13000 \begin_layout Plain Layout
13009 \begin_inset space \thinspace{}
13013 \begin_inset Flex Code
13016 \begin_layout Plain Layout
13023 \begin_inset Flex Code
13026 \begin_layout Plain Layout
13033 \begin_inset Flex Code
13036 \begin_layout Plain Layout
13042 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
13045 \begin_layout Description
13046 \begin_inset Flex Code
13049 \begin_layout Plain Layout
13056 \begin_inset Flex Code
13059 \begin_layout Plain Layout
13065 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
13068 \begin_layout Description
13069 \begin_inset Flex Code
13072 \begin_layout Plain Layout
13079 \begin_inset Flex Code
13082 \begin_layout Plain Layout
13089 \begin_inset space \thinspace{}
13093 \begin_inset Flex Code
13096 \begin_layout Plain Layout
13102 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
13103 \begin_inset Flex Code
13106 \begin_layout Plain Layout
13112 が一度だけ出力される効果があります.既定では,
13113 \begin_inset Flex Code
13116 \begin_layout Plain Layout
13123 \begin_inset Flex Code
13126 \begin_layout Plain Layout
13133 \begin_inset Flex Code
13136 \begin_layout Plain Layout
13142 については有効であり,他の型すべてについて無効になっています.
13145 \begin_layout Description
13146 \begin_inset Flex Code
13149 \begin_layout Plain Layout
13156 \begin_inset Flex Code
13159 \begin_layout Plain Layout
13168 \begin_inset space \thinspace{}
13172 \begin_inset Flex Code
13175 \begin_layout Plain Layout
13181 ] \SpecialChar LaTeX
13182 出力中で,段落を空行ではなく,改行で区切るよう指定します.
13183 \begin_inset Flex Code
13186 \begin_layout Plain Layout
13192 と併用すれば,(\SpecialChar TeX
13193 コードを使用したときのように)テキストエディタをエミュレートすることができます.
13196 \begin_layout Description
13197 \begin_inset Flex Code
13200 \begin_layout Plain Layout
13207 \begin_inset Flex Code
13210 \begin_layout Plain Layout
13216 ] 段落の最初の行の行頭下げ.レイアウトによっては
13217 \begin_inset Flex Code
13220 \begin_layout Plain Layout
13226 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
13227 \begin_inset Flex Code
13230 \begin_layout Plain Layout
13236 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
13237 \begin_inset Flex Code
13240 \begin_layout Plain Layout
13247 \begin_inset Flex Code
13250 \begin_layout Plain Layout
13256 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
13259 \begin_layout Description
13260 \begin_inset Flex Code
13263 \begin_layout Plain Layout
13270 \begin_inset Flex Code
13273 \begin_layout Plain Layout
13279 ] このレイアウトの2段落間の垂直余白.
13282 \begin_layout Description
13283 \begin_inset Flex Code
13286 \begin_layout Plain Layout
13293 \begin_inset Flex Code
13296 \begin_layout Plain Layout
13303 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
13304 択した際には,\SpecialChar LaTeX
13306 \begin_inset Flex Code
13309 \begin_layout Plain Layout
13316 \begin_inset Flex Code
13319 \begin_layout Plain Layout
13325 引数分だけ引き離されます.垂直余白は,
13326 \begin_inset Flex Code
13329 \begin_layout Plain Layout
13335 を標準フォントでの1行の高さとすると,
13336 \begin_inset Flex Code
13339 \begin_layout Plain Layout
13346 \begin_inset Formula $\times$
13350 \begin_inset Flex Code
13353 \begin_layout Plain Layout
13359 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
13362 \begin_layout Description
13363 \begin_inset Flex Code
13366 \begin_layout Plain Layout
13375 \begin_inset Flex Code
13378 \begin_layout Plain Layout
13387 \begin_inset space \thinspace{}
13391 \begin_inset Flex Code
13394 \begin_layout Plain Layout
13400 ] この段落の内容が,\SpecialChar LaTeX
13401 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
13404 \begin_layout Description
13405 \begin_inset Flex Code
13408 \begin_layout Plain Layout
13415 \begin_inset Flex Code
13418 \begin_layout Plain Layout
13429 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
13432 \begin_layout Description
13433 \begin_inset Flex Code
13436 \begin_layout Plain Layout
13442 この様式が使用されたときに,\SpecialChar LaTeX
13443 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
13444 \begin_inset Flex Code
13447 \begin_layout Plain Layout
13456 \begin_layout Description
13457 \begin_inset Flex Code
13460 \begin_layout Plain Layout
13467 \begin_inset Flex Code
13470 \begin_layout Plain Layout
13476 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
13479 \begin_layout Description
13480 \begin_inset Flex Code
13483 \begin_layout Plain Layout
13490 \begin_inset Flex Code
13493 \begin_layout Plain Layout
13500 \begin_inset Flex Code
13503 \begin_layout Plain Layout
13509 を必要とするかどうか(機能詳細については,第
13510 \begin_inset CommandInset ref
13512 reference "chap:関数一覧"
13516 節参照).特定のオプションをとるパッケージを要求する場合,
13517 \begin_inset Flex Code
13520 \begin_layout Plain Layout
13526 を汎用テキストクラスパラメータとして追加して使うことができます(
13527 \begin_inset CommandInset ref
13529 reference "subsec:汎用テキストクラスパラメータ"
13536 \begin_layout Description
13537 \begin_inset Flex Code
13540 \begin_layout Plain Layout
13547 \begin_inset Flex Code
13550 \begin_layout Plain Layout
13559 \begin_inset Flex Code
13562 \begin_layout Plain Layout
13569 \begin_inset Flex Code
13572 \begin_layout Plain Layout
13578 タグで定義された)この様式の\SpecialChar LaTeX
13580 \begin_inset Flex Code
13583 \begin_layout Plain Layout
13589 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
13592 \begin_layout Description
13593 \begin_inset Flex Code
13596 \begin_layout Plain Layout
13603 \begin_inset Flex Code
13606 \begin_layout Plain Layout
13615 \begin_inset Flex Code
13618 \begin_layout Plain Layout
13624 ] レイアウトの新しい一群で通常リセットされるカウンタを元に戻します.これは,
13625 \begin_inset Flex Code
13628 \begin_layout Plain Layout
13635 \begin_inset Flex Code
13638 \begin_layout Plain Layout
13647 \begin_layout Description
13648 \begin_inset Flex Code
13651 \begin_layout Plain Layout
13658 \begin_inset Flex Code
13661 \begin_layout Plain Layout
13667 ] 様式の内容の最後に置かれる文字列.出力中の改行は
13668 \begin_inset Flex Code
13671 \begin_layout Plain Layout
13680 \begin_layout Description
13681 \begin_inset Flex Code
13684 \begin_layout Plain Layout
13691 \begin_inset Flex Code
13694 \begin_layout Plain Layout
13701 \begin_inset Flex Code
13704 \begin_layout Plain Layout
13713 \begin_layout Description
13714 \begin_inset Flex Code
13717 \begin_layout Plain Layout
13724 \begin_inset Flex Code
13727 \begin_layout Plain Layout
13736 \begin_inset Flex Code
13739 \begin_layout Plain Layout
13746 \begin_inset Flex Code
13749 \begin_layout Plain Layout
13756 \begin_inset Flex Code
13759 \begin_layout Plain Layout
13761 \begin_inset space ~
13777 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13778 \begin_inset Flex Code
13781 \begin_layout Plain Layout
13788 \begin_inset Flex Code
13791 \begin_layout Plain Layout
13798 \begin_inset Flex Code
13801 \begin_layout Plain Layout
13807 は,それぞれ乗数1・1.25・1.667に対応します.引数
13808 \begin_inset Flex Code
13811 \begin_layout Plain Layout
13817 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13818 \begin_inset Flex Code
13821 \begin_layout Plain Layout
13827 は,\SpecialChar LaTeX
13829 \begin_inset Flex Code
13832 \begin_layout Plain Layout
13838 パッケージを使用した,限定的な\SpecialChar LaTeX
13839 コードを生成することを意味することにご注意ください.
13842 \begin_layout Description
13843 \begin_inset Flex Code
13846 \begin_layout Plain Layout
13853 \begin_inset Flex Code
13856 \begin_layout Plain Layout
13863 \begin_inset space \thinspace{}
13867 \begin_inset Flex Code
13870 \begin_layout Plain Layout
13876 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13879 \begin_layout Description
13880 \begin_inset Flex Code
13883 \begin_layout Plain Layout
13890 \begin_inset Flex Code
13893 \begin_layout Plain Layout
13902 \begin_inset Flex Code
13905 \begin_layout Plain Layout
13911 ] 新しいレイアウト群を開始する際に,このカウンタの親カウンタを進めるか否か.これは,現在のところ,
13912 \begin_inset Flex Code
13915 \begin_layout Plain Layout
13922 \begin_inset Flex Code
13925 \begin_layout Plain Layout
13934 \begin_layout Description
13935 \begin_inset Flex Code
13938 \begin_layout Plain Layout
13945 \begin_inset CommandInset ref
13947 reference "subsec:フォント指定"
13954 \begin_layout Description
13955 \begin_inset Flex Code
13958 \begin_layout Plain Layout
13965 \begin_inset Flex Code
13968 \begin_layout Plain Layout
13974 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13977 \begin_layout Description
13978 \begin_inset Flex Code
13981 \begin_layout Plain Layout
13990 \begin_inset Flex Code
13993 \begin_layout Plain Layout
14002 \begin_inset Flex Code
14005 \begin_layout Plain Layout
14012 \begin_inset Flex Code
14015 \begin_layout Plain Layout
14021 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
14022 \begin_inset Flex Code
14025 \begin_layout Plain Layout
14031 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
14032 \begin_inset Flex Code
14035 \begin_layout Plain Layout
14041 は,文書設定にかかわらず変更することができ,
14042 \begin_inset Flex Code
14045 \begin_layout Plain Layout
14051 は,どのような場合でも変更することができません.
14054 \begin_layout Description
14055 \begin_inset Flex Code
14058 \begin_layout Plain Layout
14065 \begin_inset Flex Code
14068 \begin_layout Plain Layout
14074 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
14078 \begin_layout Subsection
14080 \begin_inset CommandInset label
14082 name "subsec:段落様式の国際化"
14089 \begin_layout Standard
14091 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
14092 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
14096 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
14099 \begin_layout Standard
14101 \begin_inset Flex MenuItem
14104 \begin_layout Plain Layout
14110 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
14111 \begin_inset Flex MenuItem
14114 \begin_layout Plain Layout
14121 \begin_inset Flex MenuItem
14124 \begin_layout Plain Layout
14130 を使用することができます.以下の抜粋(
14131 \begin_inset Flex MenuItem
14134 \begin_layout Plain Layout
14140 より)は,これがどう動作するかを示すものです.
14143 \begin_layout LyX-Code
14148 \begin_layout LyX-Code
14151 theoremstyle{remark}
14154 \begin_layout LyX-Code
14157 newtheorem{claim}[thm]{
14164 \begin_layout LyX-Code
14168 \begin_layout LyX-Code
14172 \begin_layout LyX-Code
14177 claimname}{_(Claim)}
14180 \begin_layout LyX-Code
14184 \begin_layout LyX-Code
14188 \begin_layout LyX-Code
14197 claimname}{_(Claim)}}
14200 \begin_layout LyX-Code
14205 \begin_layout Standard
14207 \begin_inset Flex MenuItem
14210 \begin_layout Plain Layout
14217 \begin_inset Flex MenuItem
14220 \begin_layout Plain Layout
14226 タグ内には,有効な\SpecialChar LaTeX
14227 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
14228 は,\SpecialChar LaTeX
14230 \begin_inset Flex Code
14233 \begin_layout Plain Layout
14242 \begin_inset Flex Code
14245 \begin_layout Plain Layout
14256 \begin_layout Standard
14257 \begin_inset Flex Code
14260 \begin_layout Plain Layout
14266 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
14267 \begin_inset Flex Code
14270 \begin_layout Plain Layout
14276 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
14277 \begin_inset Flex Code
14280 \begin_layout Plain Layout
14286 が使用されていることです.これは,\SpecialChar LyX
14287 が\SpecialChar LaTeX
14288 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
14291 \begin_layout Standard
14292 \begin_inset Flex Code
14295 \begin_layout Plain Layout
14302 \begin_inset Flex Code
14305 \begin_layout Plain Layout
14311 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
14313 \begin_inset Flex Code
14316 \begin_layout Plain Layout
14322 の引数は,その当該言語への翻訳で置き換えられ,
14323 \begin_inset Flex Code
14326 \begin_layout Plain Layout
14332 は言語名(babelパッケージで使用されるもの)で置き換えられます.
14335 \begin_layout Standard
14336 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
14339 \begin_layout LyX-Code
14348 claimname}{Affirmation}}
14349 \begin_inset Newline newline
14360 claimname}{Behauptung}}
14361 \begin_inset Newline newline
14368 claimname}{Behauptung}
14371 \begin_layout Standard
14372 それから,\SpecialChar LaTeX
14374 \begin_inset Flex Code
14377 \begin_layout Plain Layout
14383 は協力して,出力に正しい文字列を生成します.
14386 \begin_layout Standard
14387 ここで注意しておくべき一つの重要な点は,翻訳は,
14388 \begin_inset Flex Code
14391 \begin_layout Plain Layout
14397 ファイルを通じて,\SpecialChar LyX
14398 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
14399 \begin_inset Flex Code
14402 \begin_layout Plain Layout
14408 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
14409 の国際化ルーチンでは取り扱われないので,
14410 \begin_inset Flex MenuItem
14413 \begin_layout Plain Layout
14420 \begin_inset Flex MenuItem
14423 \begin_layout Plain Layout
14429 は,事実上,\SpecialChar LyX
14430 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
14432 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
14433 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
14434 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
14437 \begin_layout Subsection
14439 \begin_inset CommandInset label
14448 \begin_layout Standard
14450 第1.3.0版以来,テキストクラス自体の中でフロート(
14451 \begin_inset Flex MenuItem
14454 \begin_layout Plain Layout
14461 \begin_inset Flex MenuItem
14464 \begin_layout Plain Layout
14470 ・\SpecialChar ldots
14471 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
14472 \begin_inset Flex Code
14475 \begin_layout Plain Layout
14481 ファイルに含まれているので,作業中のレイアウトファイルに
14484 \begin_layout LyX-Code
14485 Input stdfloats.inc
14488 \begin_layout Standard
14489 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
14490 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
14494 \begin_layout Description
14495 \begin_inset Flex Code
14498 \begin_layout Plain Layout
14505 \begin_inset Flex Code
14508 \begin_layout Plain Layout
14514 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
14519 \begin_inset Quotes eld
14522 here if possible:可能ならば現在位置に
14523 \begin_inset Quotes erd
14531 \begin_inset Quotes eld
14535 \begin_inset Quotes erd
14543 \begin_inset Quotes eld
14546 bottom of page:ページ下部
14547 \begin_inset Quotes erd
14555 \begin_inset Quotes eld
14558 page of floats:フロートを独立したページに
14559 \begin_inset Quotes erd
14567 \begin_inset Quotes eld
14570 here definitely:何としても現在位置に置く
14571 \begin_inset Quotes erd
14579 \begin_inset Quotes eld
14582 ignore LaTeX rules:LaTeXの規則を無視する
14583 \begin_inset Quotes erd
14586 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
14593 \begin_layout Description
14594 \begin_inset Flex Code
14597 \begin_layout Plain Layout
14604 \begin_inset Flex Code
14607 \begin_layout Plain Layout
14614 \begin_inset space \thinspace{}
14620 \begin_inset Flex Code
14623 \begin_layout Plain Layout
14631 ] フロートを,\SpecialChar LaTeX
14636 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
14637 \begin_inset Flex Code
14640 \begin_layout Plain Layout
14649 \begin_layout Description
14650 \begin_inset Flex Code
14653 \begin_layout Plain Layout
14660 \begin_inset Flex Code
14663 \begin_layout Plain Layout
14670 \begin_inset space \thinspace{}
14676 \begin_inset Flex Code
14679 \begin_layout Plain Layout
14687 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
14688 \begin_inset Flex Code
14691 \begin_layout Plain Layout
14700 \begin_layout Description
14701 \begin_inset Flex Code
14704 \begin_layout Plain Layout
14711 \begin_inset Flex Code
14714 \begin_layout Plain Layout
14721 \begin_inset Quotes erd
14725 \begin_inset Quotes erd
14728 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14729 がキャプションを書き込むファイルです.
14732 \begin_layout Description
14733 \begin_inset Flex Code
14736 \begin_layout Plain Layout
14743 \begin_inset Flex Code
14746 \begin_layout Plain Layout
14753 \begin_inset Quotes erd
14757 \begin_inset Quotes erd
14760 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14763 \begin_layout Description
14764 \begin_inset Flex Code
14767 \begin_layout Plain Layout
14773 これらは,XHTML出力で使用されます.
14774 \begin_inset CommandInset ref
14776 reference "sec:XHTML出力のタグ"
14783 \begin_layout Description
14784 \begin_inset Flex Code
14787 \begin_layout Plain Layout
14794 \begin_inset Flex Code
14797 \begin_layout Plain Layout
14806 \begin_inset space \thinspace{}
14810 \begin_inset Flex Code
14813 \begin_layout Plain Layout
14819 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14821 \begin_inset Flex Code
14824 \begin_layout Plain Layout
14830 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14831 \begin_inset Flex Code
14834 \begin_layout Plain Layout
14841 \begin_inset Flex Code
14844 \begin_layout Plain Layout
14850 を使用します.\SpecialChar LaTeX
14851 ドキュメントクラス中に既に定義されているときには,
14852 \begin_inset Flex Code
14855 \begin_layout Plain Layout
14864 \begin_layout Description
14865 \begin_inset Flex Code
14868 \begin_layout Plain Layout
14875 \begin_inset Flex Code
14878 \begin_layout Plain Layout
14885 \begin_inset Quotes erd
14889 \begin_inset Quotes erd
14892 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14895 \begin_inset Flex Code
14898 \begin_layout Plain Layout
14904 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14909 \begin_inset Flex Code
14912 \begin_layout Plain Layout
14918 が真の時は,標準的な方法が存在するので,これは無視されます.
14921 \begin_layout Description
14922 \begin_inset Flex Code
14925 \begin_layout Plain Layout
14932 \begin_inset Flex Code
14935 \begin_layout Plain Layout
14942 \begin_inset Quotes erd
14946 \begin_inset Quotes erd
14949 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14950 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14952 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14955 \begin_layout Description
14956 \begin_inset Flex Code
14959 \begin_layout Plain Layout
14966 \begin_inset Flex Code
14969 \begin_layout Plain Layout
14976 \begin_inset Quotes erd
14980 \begin_inset Quotes erd
14983 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14984 \begin_inset Flex Code
14987 \begin_layout Plain Layout
14994 \begin_inset Flex Code
14997 \begin_layout Plain Layout
15003 」に指定されていれば,フロートは章ごとに番号が振り直されます.
15006 \begin_layout Description
15007 \begin_inset Flex Code
15010 \begin_layout Plain Layout
15017 \begin_inset Flex Code
15020 \begin_layout Plain Layout
15027 \begin_inset Quotes erd
15031 \begin_inset Quotes erd
15034 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
15036 \begin_inset Flex Code
15039 \begin_layout Plain Layout
15046 \begin_inset Flex Code
15049 \begin_layout Plain Layout
15056 \begin_inset Flex Code
15059 \begin_layout Plain Layout
15066 \begin_inset Flex Code
15069 \begin_layout Plain Layout
15079 \begin_layout Plain Layout
15081 同様,文字列中でのこれらの文字の順序は関係ありません.
15087 \begin_inset Flex Code
15090 \begin_layout Plain Layout
15096 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
15097 \begin_inset Flex Code
15100 \begin_layout Plain Layout
15106 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
15108 \begin_inset Flex Code
15111 \begin_layout Plain Layout
15120 \begin_layout Description
15121 \begin_inset Flex Code
15124 \begin_layout Plain Layout
15131 \begin_inset Flex Code
15134 \begin_layout Plain Layout
15140 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
15141 \begin_inset Flex Code
15144 \begin_layout Plain Layout
15150 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
15153 \begin_layout Description
15154 \begin_inset Flex Code
15157 \begin_layout Plain Layout
15164 \begin_inset Flex Code
15167 \begin_layout Plain Layout
15174 \begin_inset Quotes erd
15178 \begin_inset Quotes erd
15182 \begin_inset Flex Code
15185 \begin_layout Plain Layout
15193 を使用してフロートを定義する際に使用される様式.
15196 \begin_layout Description
15197 \begin_inset Flex Code
15200 \begin_layout Plain Layout
15207 \begin_inset Flex Code
15210 \begin_layout Plain Layout
15217 \begin_inset Quotes erd
15221 \begin_inset Quotes erd
15224 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
15225 \begin_inset Flex Code
15228 \begin_layout Plain Layout
15237 \begin_inset Flex Code
15240 \begin_layout Plain Layout
15249 \begin_inset Flex Code
15252 \begin_layout Plain Layout
15263 \begin_layout Description
15264 \begin_inset Flex Code
15267 \begin_layout Plain Layout
15274 \begin_inset Flex Code
15277 \begin_layout Plain Layout
15284 \begin_inset space \thinspace{}
15288 \begin_inset Flex Code
15291 \begin_layout Plain Layout
15299 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
15301 \begin_inset Flex Code
15304 \begin_layout Plain Layout
15310 が提供しているものを使用して定義されているのか,\SpecialChar LyX
15311 自身がオン・ザ・フライで定義しているのかを示します.
15314 \begin_layout Standard
15315 \begin_inset Flex Code
15318 \begin_layout Plain Layout
15331 \begin_inset Flex Code
15334 \begin_layout Plain Layout
15345 \begin_layout Subsection
15347 \begin_inset CommandInset label
15349 name "subsec:任意設定差込枠"
15356 \begin_layout Standard
15360 \begin_layout Itemize
15362 \begin_inset Flex Code
15365 \begin_layout Plain Layout
15372 \begin_inset Flex Code
15375 \begin_layout Plain Layout
15384 \begin_inset Flex Code
15387 \begin_layout Plain Layout
15395 などの\SpecialChar LaTeX
15396 コマンドに対応した意味論的マークアップを定義するものです.
15399 \begin_layout Itemize
15401 \begin_inset Flex Code
15404 \begin_layout Plain Layout
15410 ).これは,\SpecialChar TeX
15411 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
15412 \begin_inset Flex Code
15415 \begin_layout Plain Layout
15424 \begin_layout Itemize
15426 \begin_inset Flex Code
15429 \begin_layout Plain Layout
15435 ).DocBookクラスで使用するものです.
15438 \begin_layout Standard
15440 \begin_inset Flex Code
15443 \begin_layout Plain Layout
15452 \begin_layout Standard
15453 \begin_inset Flex Code
15456 \begin_layout Plain Layout
15462 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
15463 \begin_inset Flex Code
15466 \begin_layout Plain Layout
15472 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
15473 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15477 \begin_layout Standard
15478 \begin_inset Flex Code
15481 \begin_layout Plain Layout
15487 定義は以下の形の行では始まらなくてはなりません.
15490 \begin_layout LyX-Code
15494 \begin_layout Standard
15496 \begin_inset Flex Code
15499 \begin_layout Plain Layout
15505 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
15508 \begin_layout Enumerate
15509 既存の差込枠のレイアウトを変更する場合.この場合,
15510 \begin_inset Flex Code
15513 \begin_layout Plain Layout
15520 \begin_inset Flex Code
15523 \begin_layout Plain Layout
15530 \begin_inset Flex Code
15533 \begin_layout Plain Layout
15540 \begin_inset Flex Code
15543 \begin_layout Plain Layout
15550 \begin_inset Flex Code
15553 \begin_layout Plain Layout
15560 \begin_inset Flex Code
15563 \begin_layout Plain Layout
15570 \begin_inset Flex Code
15573 \begin_layout Plain Layout
15580 \begin_inset Flex Code
15583 \begin_layout Plain Layout
15590 \begin_inset Flex Code
15593 \begin_layout Plain Layout
15600 \begin_inset Flex Code
15603 \begin_layout Plain Layout
15610 \begin_inset Flex Code
15613 \begin_layout Plain Layout
15620 \begin_inset Flex Code
15623 \begin_layout Plain Layout
15630 \begin_inset Flex Code
15633 \begin_layout Plain Layout
15640 \begin_inset Flex Code
15643 \begin_layout Plain Layout
15650 \begin_inset Flex Code
15653 \begin_layout Plain Layout
15660 \begin_inset Flex Code
15663 \begin_layout Plain Layout
15670 \begin_inset Flex Code
15673 \begin_layout Plain Layout
15680 \begin_inset Flex Code
15683 \begin_layout Plain Layout
15690 \begin_inset Flex Code
15693 \begin_layout Plain Layout
15700 \begin_inset Flex Code
15703 \begin_layout Plain Layout
15710 \begin_inset Flex Code
15713 \begin_layout Plain Layout
15722 \begin_layout Enumerate
15723 自由差込枠のレイアウトを定義する場合.この場合,
15724 \begin_inset Flex Code
15727 \begin_layout Plain Layout
15734 \begin_inset Flex Code
15737 \begin_layout Plain Layout
15744 \begin_inset Flex Code
15747 \begin_layout Plain Layout
15753 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15754 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15755 \begin_inset Flex Code
15758 \begin_layout Plain Layout
15764 項目が含まれていなくてはならないことに注意してください.
15767 \begin_layout Enumerate
15768 ユーザー定義派生枝を定義する場合.この場合,
15769 \begin_inset Flex Code
15772 \begin_layout Plain Layout
15779 \begin_inset Flex Code
15782 \begin_layout Plain Layout
15789 \begin_inset Flex Code
15792 \begin_layout Plain Layout
15798 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15799 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15800 がくるむことができるようにすることです.
15803 \begin_layout Enumerate
15804 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15805 \begin_inset Flex Code
15808 \begin_layout Plain Layout
15815 \begin_inset Flex Code
15818 \begin_layout Plain Layout
15825 \begin_inset Flex Code
15828 \begin_layout Plain Layout
15834 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15835 \begin_inset Flex Code
15838 \begin_layout Plain Layout
15844 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15845 \begin_inset Flex Code
15848 \begin_layout Plain Layout
15855 \begin_inset Flex Code
15858 \begin_layout Plain Layout
15869 \begin_inset Flex Code
15872 \begin_layout Plain Layout
15873 Caption:\SpecialChar allowbreak
15882 \begin_layout Standard
15883 \begin_inset Flex Code
15886 \begin_layout Plain Layout
15892 定義には以下の項目を入れることができます.
15895 \begin_layout Description
15896 \begin_inset Flex Code
15899 \begin_layout Plain Layout
15906 \begin_inset Flex Code
15909 \begin_layout Plain Layout
15915 =""] この差込枠は,この型の一覧表に表示されます.空の文字列を入れると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドも参
15916 照してください.これは,自由差込枠にのみ実装されています.既定値:無効.
15919 \begin_layout Description
15920 \begin_inset Flex Code
15923 \begin_layout Plain Layout
15930 \begin_inset Flex Code
15933 \begin_layout Plain Layout
15939 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15940 \begin_inset Flex Code
15943 \begin_layout Plain Layout
15950 \begin_inset CommandInset ref
15952 reference "subsec:段落様式"
15959 \begin_layout Description
15960 \begin_inset Flex Code
15963 \begin_layout Plain Layout
15969 言語コマンドを変更するプリアンブル.第
15970 \begin_inset CommandInset ref
15972 reference "subsec:段落様式の国際化"
15979 \begin_layout Description
15980 \begin_inset Flex Code
15983 \begin_layout Plain Layout
15990 \begin_inset Flex Code
15993 \begin_layout Plain Layout
15999 ] 差込枠の背景色.使用できる色名一覧は第
16000 \begin_inset CommandInset ref
16002 reference "chap:色名"
16009 \begin_layout Description
16010 \begin_inset Flex Code
16013 \begin_layout Plain Layout
16020 \begin_inset Flex Code
16023 \begin_layout Plain Layout
16032 \begin_inset space \thinspace{}
16036 \begin_inset Flex Code
16039 \begin_layout Plain Layout
16045 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
16048 \begin_layout Description
16049 \begin_inset Flex Code
16052 \begin_layout Plain Layout
16059 \begin_inset CommandInset ref
16061 reference "subsec:段落様式"
16065 節参照のこと.完全な型を指定する必要があることに注意してください.例:
16066 \begin_inset Flex Code
16069 \begin_layout Plain Layout
16070 CopyStyle Flex:<名称>
16078 \begin_layout Description
16079 \begin_inset Flex Code
16082 \begin_layout Plain Layout
16089 \begin_inset Flex Code
16092 \begin_layout Plain Layout
16101 \begin_inset space \thinspace{}
16105 \begin_inset Flex Code
16108 \begin_layout Plain Layout
16114 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
16117 \begin_layout Description
16118 \begin_inset Flex Code
16121 \begin_layout Plain Layout
16127 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
16128 \begin_inset Flex Code
16131 \begin_layout Plain Layout
16138 \begin_inset Flex Code
16141 \begin_layout Plain Layout
16148 \begin_inset Flex Code
16151 \begin_layout Plain Layout
16157 のいずれかを指定することができます.脚註は通常
16158 \begin_inset Flex Code
16161 \begin_layout Plain Layout
16167 を使用し,\SpecialChar TeX
16169 \begin_inset Flex Code
16172 \begin_layout Plain Layout
16179 \begin_inset Flex Code
16182 \begin_layout Plain Layout
16191 \begin_layout Description
16192 \begin_inset Flex Code
16195 \begin_layout Plain Layout
16202 \begin_inset Flex Code
16205 \begin_layout Plain Layout
16212 \begin_inset space \thinspace{}
16216 \begin_inset Flex Code
16219 \begin_layout Plain Layout
16228 \begin_inset Flex Code
16231 \begin_layout Plain Layout
16238 \begin_inset Flex Code
16241 \begin_layout Plain Layout
16247 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
16249 \begin_inset Flex Code
16252 \begin_layout Plain Layout
16261 \begin_inset Flex Code
16264 \begin_layout Plain Layout
16272 タグの後の空白(改行文字を含む)を無視するものと仮定します.
16275 \begin_layout Description
16276 \begin_inset Flex Code
16279 \begin_layout Plain Layout
16286 \begin_inset Flex Code
16289 \begin_layout Plain Layout
16298 \begin_layout Description
16299 \begin_inset Flex Code
16302 \begin_layout Plain Layout
16313 \begin_inset CommandInset ref
16315 reference "subsec:フォント指定"
16319 節を参照.このフォントを定義すると自動的に
16320 \begin_inset Flex Code
16323 \begin_layout Plain Layout
16329 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
16330 \begin_inset Flex Code
16333 \begin_layout Plain Layout
16339 を定義しなくてはならないことに注意してください.
16342 \begin_layout Description
16343 \begin_inset Flex Code
16346 \begin_layout Plain Layout
16347 FixedWidthPreambleEncoding
16353 \begin_inset Flex Code
16356 \begin_layout Plain Layout
16365 \begin_inset space \thinspace{}
16369 \begin_inset Flex Code
16372 \begin_layout Plain Layout
16379 \begin_inset Flex Code
16382 \begin_layout Plain Layout
16389 \begin_inset Flex Code
16392 \begin_layout Plain Layout
16398 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
16406 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
16407 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
16408 やLua\SpecialChar TeX
16409 のようなUnicodeを完全に解する\SpecialChar LaTeX
16414 \begin_layout Description
16415 \begin_inset Flex Code
16418 \begin_layout Plain Layout
16419 ForceLocalFontSwitch
16425 \begin_inset Flex Code
16428 \begin_layout Plain Layout
16437 \begin_inset space \thinspace{}
16441 \begin_inset Flex Code
16444 \begin_layout Plain Layout
16450 ] babel使用時に,常にローカルフォント切替(
16451 \begin_inset Flex Code
16454 \begin_layout Plain Layout
16463 \begin_inset Flex Code
16466 \begin_layout Plain Layout
16477 \begin_layout Description
16478 \begin_inset Flex Code
16481 \begin_layout Plain Layout
16488 \begin_inset Flex Code
16491 \begin_layout Plain Layout
16500 \begin_inset space \thinspace{}
16504 \begin_inset Flex Code
16507 \begin_layout Plain Layout
16513 ] たとえば\SpecialChar TeX
16514 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
16517 \begin_layout Description
16518 \begin_inset Flex Code
16521 \begin_layout Plain Layout
16528 \begin_inset Flex Code
16531 \begin_layout Plain Layout
16540 \begin_inset space \thinspace{}
16544 \begin_inset Flex Code
16547 \begin_layout Plain Layout
16553 ] \SpecialChar LaTeX
16554 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
16557 \begin_layout Description
16558 \begin_inset Flex Code
16561 \begin_layout Plain Layout
16568 \begin_inset Flex Code
16571 \begin_layout Plain Layout
16580 \begin_inset space \thinspace{}
16584 \begin_inset Flex Code
16587 \begin_layout Plain Layout
16593 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
16596 \begin_layout Description
16597 \begin_inset Flex Code
16600 \begin_layout Plain Layout
16609 \begin_inset Flex Code
16612 \begin_layout Plain Layout
16621 \begin_inset space \thinspace{}
16625 \begin_inset Flex Code
16628 \begin_layout Plain Layout
16635 \begin_inset CommandInset ref
16637 reference "subsec:段落様式"
16644 \begin_layout Description
16645 \begin_inset Flex Code
16648 \begin_layout Plain Layout
16654 これらは,XHTML出力で使用されます.第
16655 \begin_inset CommandInset ref
16657 reference "sec:XHTML出力のタグ"
16664 \begin_layout Description
16665 \begin_inset Flex Code
16668 \begin_layout Plain Layout
16675 \begin_inset Flex Code
16678 \begin_layout Plain Layout
16687 \begin_inset space \thinspace{}
16691 \begin_inset Flex Code
16694 \begin_layout Plain Layout
16700 ] AddToTocの設定に関わらず,「文書構造」面用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に
16701 表示されることは望まないでしょうが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
16704 \begin_layout Description
16705 \begin_inset Flex Code
16708 \begin_layout Plain Layout
16715 \begin_inset Flex Code
16718 \begin_layout Plain Layout
16727 \begin_inset space \thinspace{}
16731 \begin_inset Flex Code
16734 \begin_layout Plain Layout
16740 ] AddToTocが有効なときに,これが1に設定されていると,差込枠の内容の要約が,目次項目に表示されます.0の場合は,ラベルのみが表示されます.
16743 \begin_layout Description
16744 \begin_inset Flex Code
16747 \begin_layout Plain Layout
16756 \begin_inset Flex Code
16759 \begin_layout Plain Layout
16768 \begin_inset space \thinspace{}
16772 \begin_inset Flex Code
16775 \begin_layout Plain Layout
16782 \begin_inset CommandInset ref
16784 reference "subsec:段落様式"
16791 \begin_layout Description
16792 \begin_inset Flex Code
16795 \begin_layout Plain Layout
16802 \begin_inset CommandInset ref
16804 reference "subsec:フォント指定"
16808 節を参照.非効率を回避するため,この定義は
16809 \begin_inset Flex Code
16812 \begin_layout Plain Layout
16821 \begin_layout Description
16822 \begin_inset Flex Code
16825 \begin_layout Plain Layout
16832 \begin_inset Flex Code
16835 \begin_layout Plain Layout
16842 \begin_inset Quotes erd
16846 \begin_inset Quotes erd
16853 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16854 コードや派生枝),ラベルが動的に変更されます.
16857 \begin_layout Description
16858 \begin_inset Flex Code
16861 \begin_layout Plain Layout
16868 \begin_inset CommandInset ref
16870 reference "subsec:段落様式の国際化"
16877 \begin_layout Description
16878 \begin_inset Flex Code
16881 \begin_layout Plain Layout
16888 \begin_inset Flex Code
16891 \begin_layout Plain Layout
16897 ] 対応する\SpecialChar LaTeX
16898 関連物の名称.環境名ないしはコマンド名.
16901 \begin_layout Description
16902 \begin_inset Flex Code
16905 \begin_layout Plain Layout
16912 \begin_inset Flex Code
16915 \begin_layout Plain Layout
16926 \begin_inset Flex Code
16929 \begin_layout Plain Layout
16936 \begin_inset Flex Code
16939 \begin_layout Plain Layout
16945 のような括弧対を含む.このパラメータは\SpecialChar LyX
16946 内部から変更することはできません(変更可能なパラメータには
16947 \begin_inset Flex Code
16950 \begin_layout Plain Layout
16956 を使用してください).これは,全ての\SpecialChar LaTeX
16958 \begin_inset Flex Code
16961 \begin_layout Plain Layout
16970 \begin_layout Description
16971 \begin_inset Flex Code
16974 \begin_layout Plain Layout
16981 \begin_inset Flex Code
16984 \begin_layout Plain Layout
16985 Command, Environment, None
16990 ] 様式がどのように\SpecialChar LaTeX
16995 \begin_layout Plain Layout
16996 これらのルールはSGMLクラスにも適用されるので,
16997 \begin_inset Flex Code
17000 \begin_layout Plain Layout
17006 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
17015 \begin_layout Description
17016 \begin_inset Flex Code
17019 \begin_layout Plain Layout
17028 \begin_layout Description
17029 \begin_inset Flex Code
17032 \begin_layout Plain Layout
17039 \begin_inset Flex Code
17042 \begin_layout Plain Layout
17049 {\SpecialChar ldots
17058 \begin_layout Description
17059 \begin_inset Flex Code
17062 \begin_layout Plain Layout
17069 \begin_inset Flex Code
17072 \begin_layout Plain Layout
17079 }\SpecialChar ldots
17094 \begin_layout Standard
17095 上記最後のいくつかをまとめると,\SpecialChar LaTeX
17096 出力は,\SpecialChar LaTeX
17100 \begin_layout LyX-Code
17103 LatexName[LatexParam]{\SpecialChar ldots
17107 \begin_layout Standard
17111 \begin_layout LyX-Code
17114 begin{LatexName}[LatexParam] \SpecialChar ldots
17120 \begin_layout Standard
17125 \begin_layout Description
17126 \begin_inset Flex Code
17129 \begin_layout Plain Layout
17136 \begin_inset Flex Code
17139 \begin_layout Plain Layout
17145 ] 様式の内容の最初に置かれる文字列.出力中の改行は
17146 \begin_inset Flex Code
17149 \begin_layout Plain Layout
17158 \begin_layout Description
17159 \begin_inset Flex Code
17162 \begin_layout Plain Layout
17169 \begin_inset Flex Code
17172 \begin_layout Plain Layout
17179 \begin_inset Flex Code
17182 \begin_layout Plain Layout
17189 \begin_inset Flex Code
17192 \begin_layout Plain Layout
17199 \begin_inset Flex Code
17202 \begin_layout Plain Layout
17208 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
17209 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
17210 \begin_inset Flex Code
17213 \begin_layout Plain Layout
17220 \begin_inset Flex Code
17223 \begin_layout Plain Layout
17230 \begin_inset Flex Code
17233 \begin_layout Plain Layout
17244 \begin_inset Flex Code
17247 \begin_layout Plain Layout
17258 \begin_inset Flex Code
17261 \begin_layout Plain Layout
17272 \begin_inset Flex Code
17275 \begin_layout Plain Layout
17286 \begin_inset Flex Code
17289 \begin_layout Plain Layout
17299 設定すれば,真に設定することができます.
17302 \begin_layout Description
17303 \begin_inset Flex Code
17306 \begin_layout Plain Layout
17313 \begin_inset Flex Code
17316 \begin_layout Plain Layout
17325 \begin_inset space \thinspace{}
17329 \begin_inset Flex Code
17332 \begin_layout Plain Layout
17338 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
17339 \begin_inset Flex Code
17342 \begin_layout Plain Layout
17349 \begin_inset Flex Code
17352 \begin_layout Plain Layout
17359 \begin_inset Flex Code
17362 \begin_layout Plain Layout
17372 指定されれば,他の値に指定し直すことができます.既定値は真です.
17375 \begin_layout Description
17376 \begin_inset Flex Code
17379 \begin_layout Plain Layout
17386 \begin_inset Flex Code
17389 \begin_layout Plain Layout
17398 \begin_inset space \thinspace{}
17402 \begin_inset Flex Code
17405 \begin_layout Plain Layout
17412 \begin_inset Flex Code
17415 \begin_layout Plain Layout
17423 するか否か(註:当該コマンド自身をprotectするかどうかでは
17430 \begin_layout Description
17431 \begin_inset Flex Code
17434 \begin_layout Plain Layout
17441 \begin_inset Flex Code
17444 \begin_layout Plain Layout
17451 \begin_inset Flex Code
17454 \begin_layout Plain Layout
17463 \begin_layout Description
17464 \begin_inset Flex Code
17467 \begin_layout Plain Layout
17474 \begin_inset Flex Code
17477 \begin_layout Plain Layout
17484 \begin_inset Flex Code
17487 \begin_layout Plain Layout
17494 \begin_inset Flex Code
17497 \begin_layout Plain Layout
17504 \begin_inset Flex Code
17507 \begin_layout Plain Layout
17513 の改名を,後方互換性を維持しながら行うために用いられます.
17516 \begin_layout Description
17517 \begin_inset Flex Code
17520 \begin_layout Plain Layout
17527 \begin_inset Flex Code
17530 \begin_layout Plain Layout
17539 \begin_inset space \thinspace{}
17543 \begin_inset Flex Code
17546 \begin_layout Plain Layout
17553 \begin_inset CommandInset ref
17555 reference "subsec:段落様式"
17562 \begin_layout Description
17563 \begin_inset Flex Code
17566 \begin_layout Plain Layout
17575 \begin_inset Flex Code
17578 \begin_layout Plain Layout
17587 \begin_inset space \thinspace{}
17591 \begin_inset Flex Code
17594 \begin_layout Plain Layout
17601 \begin_inset CommandInset ref
17603 reference "subsec:段落様式"
17610 \begin_layout Description
17611 \begin_inset Flex Code
17614 \begin_layout Plain Layout
17621 \begin_inset CommandInset ref
17623 reference "subsec:段落様式"
17630 \begin_layout Description
17631 \begin_inset Flex Code
17634 \begin_layout Plain Layout
17641 \begin_inset Flex Code
17644 \begin_layout Plain Layout
17650 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
17653 \begin_layout Description
17654 \begin_inset Flex Code
17657 \begin_layout Plain Layout
17664 \begin_inset Flex Code
17667 \begin_layout Plain Layout
17674 \begin_inset CommandInset ref
17676 reference "subsec:段落様式"
17683 \begin_layout Description
17684 \begin_inset Flex Code
17687 \begin_layout Plain Layout
17694 \begin_inset Flex Code
17697 \begin_layout Plain Layout
17706 \begin_inset space \thinspace{}
17710 \begin_inset Flex Code
17713 \begin_layout Plain Layout
17720 \begin_inset Flex Code
17723 \begin_layout Plain Layout
17729 タグで定義された)この様式の\SpecialChar LaTeX
17731 \begin_inset Flex Code
17734 \begin_layout Plain Layout
17740 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
17743 \begin_layout Description
17744 \begin_inset Flex Code
17747 \begin_layout Plain Layout
17754 \begin_inset Flex Code
17757 \begin_layout Plain Layout
17764 \begin_inset space \thinspace{}
17768 \begin_inset Flex Code
17771 \begin_layout Plain Layout
17779 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
17780 \begin_inset Note Note
17783 \begin_layout Plain Layout
17784 This is outdated: The default changed from 1 to 0
17792 \begin_layout Description
17793 \begin_inset Flex Code
17796 \begin_layout Plain Layout
17803 \begin_inset Flex Code
17806 \begin_layout Plain Layout
17812 ] 様式の内容の最後に置かれる文字列.出力中の改行は
17813 \begin_inset Flex Code
17816 \begin_layout Plain Layout
17825 \begin_layout Description
17826 \begin_inset Flex Code
17829 \begin_layout Plain Layout
17836 \begin_inset Flex Code
17839 \begin_layout Plain Layout
17846 \begin_inset space \thinspace{}
17850 \begin_inset Flex Code
17853 \begin_layout Plain Layout
17861 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17864 \begin_layout Subsection
17866 \begin_inset CommandInset label
17875 \begin_layout Standard
17877 \begin_inset Flex MenuItem
17880 \begin_layout Plain Layout
17887 \begin_inset Flex MenuItem
17890 \begin_layout Plain Layout
17896 ・\SpecialChar ldots
17897 )を定義することが必要です.標準的なカウンタは
17898 \begin_inset Flex Code
17901 \begin_layout Plain Layout
17907 ファイルに含まれているので,作業中のレイアウトファイルに
17910 \begin_layout LyX-Code
17911 Input stdcounters.inc
17914 \begin_layout Standard
17915 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17918 \begin_layout LyX-Code
17922 \begin_layout Standard
17924 \begin_inset Flex Code
17927 \begin_layout Plain Layout
17933 」は,実際のカウンタ名で置き換えます.また,宣言は「
17934 \begin_inset Flex Code
17937 \begin_layout Plain Layout
17946 \begin_layout Standard
17947 以下のパラメータを使用することができます.
17950 \begin_layout Description
17951 \begin_inset Flex Code
17954 \begin_layout Plain Layout
17961 \begin_inset Flex Code
17964 \begin_layout Plain Layout
17970 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17973 \begin_layout Description
17974 \begin_inset Flex Code
17977 \begin_layout Plain Layout
17978 LabelString [文字列=""]
17983 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17984 \begin_inset Flex Code
17987 \begin_layout Plain Layout
17988 LabelStringAppendix
17993 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17997 \begin_layout Itemize
17998 \begin_inset Flex Code
18001 \begin_layout Plain Layout
18010 \begin_inset Flex Code
18013 \begin_layout Plain Layout
18020 \begin_inset Flex Code
18023 \begin_layout Plain Layout
18030 \begin_inset Newline linebreak
18034 \begin_inset Flex Code
18037 \begin_layout Plain Layout
18038 LabelStringAppendix
18046 \begin_layout Itemize
18047 カウンタ値は,\SpecialChar LaTeX
18049 \begin_inset Flex Code
18052 \begin_layout Plain Layout
18068 を用いて表現することができます.ここで
18069 \begin_inset Flex Code
18072 \begin_layout Plain Layout
18081 \begin_inset Flex Code
18084 \begin_layout Plain Layout
18090 :1, 2, 3,\SpecialChar ldots
18092 \begin_inset Flex Code
18095 \begin_layout Plain Layout
18101 :a, b, c, \SpecialChar ldots
18103 \begin_inset Flex Code
18106 \begin_layout Plain Layout
18112 :A, B, C, \SpecialChar ldots
18114 \begin_inset Flex Code
18117 \begin_layout Plain Layout
18123 :i, ii, iii, \SpecialChar ldots
18125 \begin_inset Flex Code
18128 \begin_layout Plain Layout
18134 :I, II, III\SpecialChar ldots
18139 \begin_layout Standard
18140 \begin_inset Flex Code
18143 \begin_layout Plain Layout
18149 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
18150 \begin_inset Flex Code
18153 \begin_layout Plain Layout
18160 \begin_inset Flex Code
18163 \begin_layout Plain Layout
18170 \begin_inset Newline linebreak
18174 \begin_inset Flex Code
18177 \begin_layout Plain Layout
18188 \begin_inset Flex Code
18191 \begin_layout Plain Layout
18202 \begin_layout Description
18203 \begin_inset Flex Code
18206 \begin_layout Plain Layout
18207 LabelStringAppendix
18213 \begin_inset Flex Code
18216 \begin_layout Plain Layout
18223 \begin_inset Flex Code
18226 \begin_layout Plain Layout
18232 と同様ですが,付録で使用するためのものです.
18235 \begin_layout Description
18236 \begin_inset Flex Code
18239 \begin_layout Plain Layout
18246 \begin_inset Flex Code
18249 \begin_layout Plain Layout
18256 \begin_inset Quotes erd
18260 \begin_inset Quotes erd
18263 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
18264 \begin_inset space ~
18267 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
18271 \begin_layout Description
18272 \begin_inset Flex Code
18275 \begin_layout Plain Layout
18282 \begin_inset Flex Code
18285 \begin_layout Plain Layout
18292 \begin_inset Quotes erd
18296 \begin_inset Quotes erd
18299 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
18300 \begin_inset Flex Code
18303 \begin_layout Plain Layout
18310 \begin_inset Flex Code
18313 \begin_layout Plain Layout
18322 \begin_layout Subsection
18324 \begin_inset CommandInset label
18326 name "subsec:フォント指定"
18333 \begin_layout Standard
18334 フォント指定は,以下のような形を取ります.
18337 \begin_layout LyX-Code
18353 \begin_layout LyX-Code
18357 \begin_layout LyX-Code
18361 \begin_layout Standard
18362 以下のコマンドを使用することができます.
18365 \begin_layout Description
18366 \begin_inset Flex Code
18369 \begin_layout Plain Layout
18376 \begin_inset Flex Code
18379 \begin_layout Plain Layout
18388 \begin_inset Flex Code
18391 \begin_layout Plain Layout
18398 \begin_inset Flex Code
18401 \begin_layout Plain Layout
18408 \begin_inset Flex Code
18411 \begin_layout Plain Layout
18418 \begin_inset Flex Code
18421 \begin_layout Plain Layout
18428 \begin_inset Flex Code
18431 \begin_layout Plain Layout
18438 \begin_inset Flex Code
18441 \begin_layout Plain Layout
18448 \begin_inset Flex Code
18451 \begin_layout Plain Layout
18458 \begin_inset Flex Code
18461 \begin_layout Plain Layout
18468 \begin_inset Flex Code
18471 \begin_layout Plain Layout
18478 \begin_inset Flex Code
18481 \begin_layout Plain Layout
18488 \begin_inset Flex Code
18491 \begin_layout Plain Layout
18498 \begin_inset Flex Code
18501 \begin_layout Plain Layout
18508 \begin_inset Flex Code
18511 \begin_layout Plain Layout
18518 \begin_inset Flex Code
18521 \begin_layout Plain Layout
18528 \begin_inset Flex Code
18531 \begin_layout Plain Layout
18538 \begin_inset Flex Code
18541 \begin_layout Plain Layout
18548 \begin_inset Flex Code
18551 \begin_layout Plain Layout
18558 \begin_inset Flex Code
18561 \begin_layout Plain Layout
18568 \begin_inset Flex Code
18571 \begin_layout Plain Layout
18580 \begin_layout Description
18581 \begin_inset Flex Code
18584 \begin_layout Plain Layout
18593 \begin_inset Flex Code
18596 \begin_layout Plain Layout
18605 \begin_inset Flex Code
18608 \begin_layout Plain Layout
18615 \begin_inset Flex Code
18618 \begin_layout Plain Layout
18627 \begin_layout Description
18628 \begin_inset Flex Code
18631 \begin_layout Plain Layout
18638 \begin_inset Flex Code
18641 \begin_layout Plain Layout
18648 \begin_inset Flex Code
18651 \begin_layout Plain Layout
18658 \begin_inset Flex Code
18661 \begin_layout Plain Layout
18668 \begin_inset Flex Code
18671 \begin_layout Plain Layout
18678 \begin_inset Flex Code
18681 \begin_layout Plain Layout
18688 \begin_inset Flex Code
18691 \begin_layout Plain Layout
18698 \begin_inset Flex Code
18701 \begin_layout Plain Layout
18708 \begin_inset Flex Code
18711 \begin_layout Plain Layout
18718 \begin_inset Flex Code
18721 \begin_layout Plain Layout
18728 \begin_inset Flex Code
18731 \begin_layout Plain Layout
18738 \begin_inset Flex Code
18741 \begin_layout Plain Layout
18748 \begin_inset Flex Code
18751 \begin_layout Plain Layout
18758 \begin_inset Flex Code
18761 \begin_layout Plain Layout
18767 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
18768 \begin_inset Newline newline
18772 \begin_inset Flex Code
18775 \begin_layout Plain Layout
18782 \begin_inset Flex Code
18785 \begin_layout Plain Layout
18791 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
18793 \begin_inset Flex Code
18796 \begin_layout Plain Layout
18802 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
18805 \begin_layout Description
18806 \begin_inset Flex Code
18809 \begin_layout Plain Layout
18818 \begin_inset Flex Code
18821 \begin_layout Plain Layout
18830 \begin_inset Flex Code
18833 \begin_layout Plain Layout
18842 \begin_layout Description
18843 \begin_inset Flex Code
18846 \begin_layout Plain Layout
18855 \begin_inset Flex Code
18858 \begin_layout Plain Layout
18867 \begin_inset Flex Code
18870 \begin_layout Plain Layout
18877 \begin_inset Flex Code
18880 \begin_layout Plain Layout
18887 \begin_inset Flex Code
18890 \begin_layout Plain Layout
18899 \begin_layout Description
18900 \begin_inset Flex Code
18903 \begin_layout Plain Layout
18910 \begin_inset Flex Code
18913 \begin_layout Plain Layout
18920 \begin_inset Flex Code
18923 \begin_layout Plain Layout
18930 \begin_inset Flex Code
18933 \begin_layout Plain Layout
18942 \begin_inset Flex Code
18945 \begin_layout Plain Layout
18952 \begin_inset Flex Code
18955 \begin_layout Plain Layout
18962 \begin_inset Flex Code
18965 \begin_layout Plain Layout
18972 \begin_inset Flex Code
18975 \begin_layout Plain Layout
18982 \begin_inset Flex Code
18985 \begin_layout Plain Layout
18994 \begin_layout Subsection
18995 \begin_inset CommandInset label
18997 name "subsec:引用エンジンの説明"
19004 \begin_layout Standard
19006 \begin_inset CommandInset ref
19008 reference "subsec:引用エンジンファイル"
19016 \begin_inset Flex Code
19019 \begin_layout Plain Layout
19025 ブロックは,特定の「引用エンジン」で提供される引用コマンドを定義します.\SpecialChar LyX
19026 の用語では,引用エンジンとは,番号や著者名,刊行年を使って,引用を整形する特定の方法のこ
19027 とを指します.\SpecialChar LyX
19028 は,3つのエンジンの型をサポートします.すなわち,
19031 \begin_layout Enumerate
19032 \begin_inset Flex Code
19035 \begin_layout Plain Layout
19041 : 既定のBib\SpecialChar TeX
19042 流の引用方法である,単純な番号による様式(例:「[1]」)
19045 \begin_layout Enumerate
19046 \begin_inset Flex Code
19049 \begin_layout Plain Layout
19055 : 著者名と刊行年を使ったHarvard様式の引用(例:「Smith and Miller (2017b)」)
19058 \begin_layout Enumerate
19059 \begin_inset Flex Code
19062 \begin_layout Plain Layout
19068 : 番号に隣接して著者名やタイトルを付けることのできる拡張された番号引用(例:「Smith and Miller [1]」)
19071 \begin_layout Standard
19072 \begin_inset Flex Code
19075 \begin_layout Plain Layout
19084 \begin_layout LyX-Code
19088 \begin_layout LyX-Code
19092 \begin_layout LyX-Code
19096 \begin_layout LyX-Code
19097 citeyearpar[][]=parencite*
19100 \begin_layout LyX-Code
19104 \begin_layout LyX-Code
19108 \begin_layout Standard
19109 \begin_inset Flex Code
19112 \begin_layout Plain Layout
19118 に続くタグがエンジンを表します.各行は,このエンジンによってサポートされる引用コマンドや引用コマンドパラダイムを定義します.行は,\SpecialChar LyX
19119 コマンドと\SpecialChar LaTeX
19121 われる引用コマンドのみを含むこともあれば,色々変えるために複雑なこともあります.完全な文法は
19124 \begin_layout LyX-Code
19125 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
19128 \begin_layout Standard
19132 \begin_layout Itemize
19133 \begin_inset Flex Code
19136 \begin_layout Plain Layout
19143 \begin_inset Flex Code
19146 \begin_layout Plain Layout
19156 \begin_layout Standard
19157 可搬性のために,異なる引用パッケージ中の同じ形をしたコマンドには,同じ名前をつけるようにしています(したがって,多くの名前がnatbibから派生しており,\SpecialChar LaTeX
19160 \begin_inset Flex Code
19163 \begin_layout Plain Layout
19173 \begin_layout Itemize
19174 \begin_inset Flex Code
19177 \begin_layout Plain Layout
19184 \begin_inset Flex Code
19187 \begin_layout Plain Layout
19193 にフォールバックするコマンドの(コンマで区切られた)リスト.これによって,引用パッケージとエンジンを切り替えるのが楽になります.
19194 \begin_inset Flex Code
19197 \begin_layout Plain Layout
19204 \begin_inset Flex Code
19207 \begin_layout Plain Layout
19216 \begin_layout Itemize
19217 \begin_inset Flex Code
19220 \begin_layout Plain Layout
19226 : 出力される実際の\SpecialChar LaTeX
19230 \begin_layout Standard
19231 \begin_inset Flex Code
19234 \begin_layout Plain Layout
19241 \begin_inset Flex Code
19244 \begin_layout Plain Layout
19251 \begin_inset Flex Code
19254 \begin_layout Plain Layout
19261 \begin_inset Flex Code
19264 \begin_layout Plain Layout
19270 が\SpecialChar LaTeX
19274 \begin_layout Standard
19278 \begin_layout Itemize
19279 大文字にするとコマンドも大文字化されたものになります(
19280 \begin_inset Flex Code
19283 \begin_layout Plain Layout
19292 \begin_inset Flex Code
19295 \begin_layout Plain Layout
19303 に).これらは通常,名前の前置詞を大文字化するのを確実にします(
19308 \begin_inset Formula $\Rightarrow$
19318 \begin_layout Itemize
19320 \begin_inset Flex Code
19323 \begin_layout Plain Layout
19329 は非必須引数の数を表します(0-2をとりえます).
19332 \begin_layout Itemize
19334 \begin_inset Flex Code
19337 \begin_layout Plain Layout
19344 \begin_inset Flex Code
19347 \begin_layout Plain Layout
19356 \begin_inset Flex Code
19359 \begin_layout Plain Layout
19371 \begin_layout Standard
19373 \begin_inset Flex Code
19376 \begin_layout Plain Layout
19382 の閾値を超えたために「et al.」に省略されるべき時にも全ての著者を出力することを意味します.
19385 \begin_layout Standard
19386 星印が,当該コマンドについては別の意味を持つ場合には,
19387 \begin_inset Flex Code
19390 \begin_layout Plain Layout
19391 <!_stardesc!_stardesctooltip>
19396 のように三角括弧で指定することができます.前置詞
19397 \begin_inset Flex Code
19400 \begin_layout Plain Layout
19406 で標識した,翻訳可能なキーワードを最大2つ与えることができます.最初のキーワードは,引用ダイアログ中の「Full aut&hor list」チェックボックスラベ
19407 ルを書き換える文字列を指し,二つ目のキーワードは,このチェックボックスに対する非必須のツールチップの文字列を指します.
19410 \begin_layout Standard
19411 これらの2つのマクロは,下記のように,前置詞から
19412 \begin_inset Flex Code
19415 \begin_layout Plain Layout
19422 \begin_inset Flex Code
19425 \begin_layout Plain Layout
19431 (次節参照)で定義されなくてはなりません.
19434 \begin_layout LyX-Code
19435 _stardesc Sta&rred command label
19438 \begin_layout LyX-Code
19439 _stardesctooltip Tooltip for the starred command checkbox.
19443 \begin_layout Itemize
19445 \begin_inset Flex Code
19448 \begin_layout Plain Layout
19454 は,このコマンドが「qualified citation lists」を取り扱うことを示します.これは,リスト中の個別の引用に対して,前置文字列と後置文字列を置
19459 に特有の複数文献引用機能です.詳細については,
19466 \begin_layout Subsection
19467 \begin_inset CommandInset label
19469 name "subsec:引用書式指定"
19476 \begin_layout Standard
19477 (引用ダイアログやツールチップなどの)\SpecialChar LyX
19478 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
19479 \begin_inset Flex Code
19482 \begin_layout Plain Layout
19488 ブロックが使用されています.このブロックは,以下のような形をしています.
19491 \begin_layout LyX-Code
19495 \begin_layout LyX-Code
19499 \begin_layout LyX-Code
19503 \begin_layout LyX-Code
19507 \begin_layout Standard
19511 \begin_layout LyX-Code
19515 \begin_layout LyX-Code
19519 \begin_layout LyX-Code
19523 \begin_layout LyX-Code
19527 \begin_layout Standard
19528 最初の例の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
19530 在しうる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
19531 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
19533 \begin_inset Flex Code
19536 \begin_layout Plain Layout
19542 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
19543 文書クラスにインクルードされています.
19546 \begin_layout Standard
19547 2つ目の例では,各行は,特定の引用コマンド(この例では
19548 \begin_inset Flex Code
19551 \begin_layout Plain Layout
19560 \begin_inset Flex Code
19563 \begin_layout Plain Layout
19571 )が,引用差込枠ラベルや引用ダイアログ,メニュー,XHTML出力でどのように表示されるべきかを定義しています.\SpecialChar LyX
19574 \begin_inset Flex Code
19577 \begin_layout Plain Layout
19585 文書\SpecialChar menuseparator
19586 設定\SpecialChar menuseparator
19587 書誌情報\SpecialChar ldots
19590 でサポートしている引用様式用に,そのような書式を定義しています(第
19591 \begin_inset CommandInset ref
19593 reference "subsec:引用エンジンファイル"
19603 \begin_layout Standard
19604 この定義は,Bib\SpecialChar TeX
19605 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
19606 \begin_inset Flex Code
19609 \begin_layout Plain Layout
19616 \begin_inset Flex Code
19619 \begin_layout Plain Layout
19625 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
19628 \begin_layout LyX-Code
19630 \begin_inset Quotes eld
19634 \begin_inset Quotes erd
19640 \begin_layout Standard
19641 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
19644 \begin_layout Standard
19645 もちろん,キーが存在するときのみ,そのキーを出力したい時があるはずです.このようなときには
19646 \begin_inset Flex Code
19649 \begin_layout Plain Layout
19651 \begin_inset space ~
19659 のように,条件付きの構成を使用することができます.これは,
19660 \begin_inset Flex Code
19663 \begin_layout Plain Layout
19670 \begin_inset space ~
19673 」とvolumeキーを出力するという意味です.また,
19674 \begin_inset Newline newline
19678 \begin_inset Flex Code
19681 \begin_layout Plain Layout
19682 {%author%[[%author%]][[%editor%, ed.]]}
19688 \begin_inset Newline newline
19691 のように,条件の中にelse節を含めることも可能です.ここでは,もし
19692 \begin_inset Flex Code
19695 \begin_layout Plain Layout
19701 キーが存在するならば出力され,そうでなければeditorキーと「,
19702 \begin_inset space ~
19705 ed.」が出力されます.ここでもキーは,
19706 \begin_inset Flex Code
19709 \begin_layout Plain Layout
19715 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
19716 \begin_inset Flex Code
19719 \begin_layout Plain Layout
19726 \begin_inset Flex Code
19729 \begin_layout Plain Layout
19735 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
19738 \begin_layout Standard
19739 これらの条件文に使うことができるものには,項目キーの他に,以下の特殊キーがあります.
19742 \begin_layout Itemize
19743 \begin_inset Flex Code
19746 \begin_layout Plain Layout
19747 {%dialog%[[真]][[偽]]}
19752 : ダイアログとメニューに対しては「真」の部分を処理し,他の文脈(作業領域や書き出し)には「偽」の部分を処理します
19755 \begin_layout Itemize
19756 \begin_inset Flex Code
19759 \begin_layout Plain Layout
19760 {%export%[[真]][[偽]]}
19765 : 書き出しとメニューに対しては「真」の部分を処理し,他の文脈(作業領域やダイアログ)には「偽」の部分を処理します
19768 \begin_layout Itemize
19769 \begin_inset Flex Code
19772 \begin_layout Plain Layout
19778 : 他の項目が続く場合には「真」の部分を処理します(複数キーを持つ引用など)
19781 \begin_layout Itemize
19782 \begin_inset Flex Code
19785 \begin_layout Plain Layout
19786 {%second%[[真]][[偽]]}
19791 : これが複数項目の2番目の場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19794 \begin_layout Itemize
19795 \begin_inset Flex Code
19798 \begin_layout Plain Layout
19799 {%ifstar%[[真]][[偽]]}
19805 \begin_inset Flex Code
19808 \begin_layout Plain Layout
19816 など)星印付き引用コマンドの場合には「真」の部分を処理し,星印付きでない場合には「偽」の部分を処理します
19819 \begin_layout Itemize
19820 \begin_inset Flex Code
19823 \begin_layout Plain Layout
19824 {%ifentrytype:<type>%[[真]][[偽]]}
19830 \begin_inset Flex Code
19833 \begin_layout Plain Layout
19839 に一致する場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:引用定義において
19840 \begin_inset Flex Code
19843 \begin_layout Plain Layout
19844 {%ifentrytype:book%[[これはbookです]][[これはbookではありません]]}
19852 \begin_layout Itemize
19853 \begin_inset Flex Code
19856 \begin_layout Plain Layout
19857 {%ifmultiple:<authortype>%[[真]][[偽]]}
19862 : 現行の項目が著者型(著者・編者など)が複数の著者を含む場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:書誌情報定義において
19863 \begin_inset Flex Code
19866 \begin_layout Plain Layout
19867 {%ifmultiple:editor%[[eds.]][[ed.]]}
19875 \begin_layout Itemize
19876 \begin_inset Flex Code
19879 \begin_layout Plain Layout
19880 {%ifqualified%[[真]][[偽]]}
19885 : 現行の引用がqualified citation listである(複数文献引用に対する
19889 特有の形式)場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19892 \begin_layout Standard
19893 \begin_inset Flex Code
19896 \begin_layout Plain Layout
19902 は書誌情報ファイルに記録されている形のままの著者キーを出力すると述べました.これは「Miller, Peter and Smith, Mary
19903 and White, Jane」のような文字列に終わることがあり(Bib\SpecialChar TeX
19904 では著者を区切るのに「and」が用いられるため),望ましい結果ではありません.したがっ
19906 は,正しく整形された名前のリスト(これも翻訳の対象となります)を得るための方法を提供しています.以下のキーが提供されています.
19909 \begin_layout Enumerate
19910 書誌情報項目の主要著者・編者に適した,姓名付き名前リスト用.
19911 \begin_inset Flex Code
19914 \begin_layout Plain Layout
19920 部分は要請されているリスト型を表します(例:
19921 \begin_inset Flex Code
19924 \begin_layout Plain Layout
19934 \begin_layout Itemize
19935 \begin_inset Flex Code
19938 \begin_layout Plain Layout
19939 %abbrvnames:<nametype>%
19945 \begin_inset Flex Code
19948 \begin_layout Plain Layout
19954 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
19957 \begin_layout Itemize
19958 \begin_inset Flex Code
19961 \begin_layout Plain Layout
19962 %fullnames:<nametype>%
19967 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
19970 \begin_layout Itemize
19971 \begin_inset Flex Code
19974 \begin_layout Plain Layout
19975 %forceabbrvnames:<nametype>%
19981 \begin_inset Flex Code
19984 \begin_layout Plain Layout
19990 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
19994 \begin_layout Enumerate
19995 書誌情報項目中の姓名の順序が異なっている場合の,姓名付き名前リスト(例:「Miller, John: 何らかの文, in: Mary Smith,
20000 \begin_layout Itemize
20001 \begin_inset Flex Code
20004 \begin_layout Plain Layout
20005 %abbrvbynames:<nametype>%
20011 \begin_inset Flex Code
20014 \begin_layout Plain Layout
20020 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20023 \begin_layout Itemize
20024 \begin_inset Flex Code
20027 \begin_layout Plain Layout
20028 %fullbynames:<nametype>%
20033 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20036 \begin_layout Itemize
20037 \begin_inset Flex Code
20040 \begin_layout Plain Layout
20041 %forceabbrvbynames:<nametype>%
20047 \begin_inset Flex Code
20050 \begin_layout Plain Layout
20056 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20060 \begin_layout Enumerate
20061 著者-発行年引用ラベルで用いられるような,姓のみを含む姓リスト.これらは
20062 \begin_inset Flex Code
20065 \begin_layout Plain Layout
20071 部分を取りませんが,(著者-発行年ラベルで通例であるように)常に著者リストか,存在しない場合には編者リストを返します.
20075 \begin_layout Itemize
20076 \begin_inset Flex Code
20079 \begin_layout Plain Layout
20086 \begin_inset Flex Code
20089 \begin_layout Plain Layout
20095 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20098 \begin_layout Itemize
20099 \begin_inset Flex Code
20102 \begin_layout Plain Layout
20108 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20111 \begin_layout Itemize
20112 \begin_inset Flex Code
20115 \begin_layout Plain Layout
20116 %forceabbrvciteauthor%
20122 \begin_inset Flex Code
20125 \begin_layout Plain Layout
20131 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20135 \begin_layout Standard
20136 前二者の姓名の順序は,下記のマクロで変更することができます.
20139 \begin_layout Itemize
20140 \begin_inset Flex Code
20143 \begin_layout Plain Layout
20144 !firstnameform %surname%, %prename%
20152 \begin_layout Itemize
20153 \begin_inset Flex Code
20156 \begin_layout Plain Layout
20157 !othernameform %surname%, %prename%
20165 \begin_layout Itemize
20166 \begin_inset Flex Code
20169 \begin_layout Plain Layout
20170 !firstbynameform %prename% %surname%
20178 \begin_layout Itemize
20179 \begin_inset Flex Code
20182 \begin_layout Plain Layout
20183 !otherbynameform %prename% %surname%
20191 \begin_layout Standard
20192 これによって,名前を「Miller, Peter and Mary Smith: \SpecialChar ldots
20193 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
20198 \begin_layout Standard
20199 もう一つ,定義中で使用することのできる文法として,
20200 \begin_inset Flex Code
20203 \begin_layout Plain Layout
20209 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
20210 グを出力させたくはありませんから,HTMLタグは「
20211 \begin_inset Flex Code
20214 \begin_layout Plain Layout
20221 \begin_inset Flex Code
20224 \begin_layout Plain Layout
20230 」でくるんでやらなくてはならないのです.
20233 \begin_layout Standard
20234 \begin_inset Flex Code
20237 \begin_layout Plain Layout
20243 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
20246 \begin_layout LyX-Code
20248 \begin_inset Quotes eld
20252 \begin_inset Quotes erd
20258 \begin_layout Standard
20259 といった例が挙げられます.これは,短縮形ないしはマクロであり,
20260 \begin_inset Flex Code
20263 \begin_layout Plain Layout
20269 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
20271 \begin_inset Flex Code
20274 \begin_layout Plain Layout
20280 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
20283 \begin_layout LyX-Code
20287 \begin_layout Standard
20288 のようなことはしないでください.\SpecialChar LyX
20289 は,無限ループに陥るようなことはありませんが,諦めるまでに時間のかかる長いループに入るかもしれません.
20292 \begin_layout Standard
20296 \begin_layout LyX-Code
20300 \begin_layout Standard
20301 のようなものです.これは翻訳対象となるテキスト部分を定義し,これによって書誌情報や引用の対応する部分が翻訳されるようになります.
20302 \begin_inset Flex Code
20305 \begin_layout Plain Layout
20311 のように,これをキーとして扱って,定義の中に入れることもできます.
20313 Note that there are two different translation paths: All definitions starting
20315 \begin_inset Flex Code
20318 \begin_layout Plain Layout
20326 , such as in the example above, will be translated to the currently active
20327 buffer language (so the translation will match the generated document).
20328 All definitions starting with underscore only will be translated to the
20330 This is the proper translation for strings that only occur in the dialogs
20331 or on buttons, such as this one:
20334 \begin_layout LyX-Code
20337 _addtobib Add to bibliography only.
20340 \begin_layout Standard
20343 translatable strings
20346 \begin_inset Flex Code
20349 \begin_layout Plain Layout
20356 \begin_inset Flex Code
20359 \begin_layout Plain Layout
20365 ファイル中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
20368 \begin_layout Standard
20369 以下は,これらの機能を全て使った例です.
20370 \begin_inset VSpace defskip
20376 \begin_layout Standard
20380 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
20383 \begin_layout Standard
20384 \begin_inset VSpace defskip
20388 \begin_inset Flex Code
20391 \begin_layout Plain Layout
20397 キーが定義されているならば,著者とコンマを出力し,
20398 \begin_inset Flex Code
20401 \begin_layout Plain Layout
20408 \begin_inset Flex Code
20411 \begin_layout Plain Layout
20417 キーが定義されているならば,編集者名の後に
20418 \begin_inset Flex Code
20421 \begin_layout Plain Layout
20427 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
20428 \begin_inset Flex Code
20431 \begin_layout Plain Layout
20437 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
20440 \begin_layout Section
20441 \begin_inset CommandInset label
20443 name "sec:XHTML出力のタグ"
20450 \begin_layout Standard
20452 やDocBookと同様,\SpecialChar LyX
20453 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
20454 は適切な既定値を提供し,前述したように,他のレイアウト
20455 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
20457 \begin_inset Flex Code
20460 \begin_layout Plain Layout
20466 宣言で提供されている情報を利用しようと試みます.
20469 \begin_layout Standard
20470 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
20471 ,これが必要になる場合もあるので,\SpecialChar LyX
20472 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
20475 \begin_layout Standard
20476 様式宣言や差込枠宣言の外で使用することができるタグに,
20477 \begin_inset Flex Code
20480 \begin_layout Plain Layout
20487 \begin_inset Flex Code
20490 \begin_layout Plain Layout
20496 の2つがあることに注意してください.これらの詳細については,
20497 \begin_inset CommandInset ref
20499 reference "subsec:汎用テキストクラスパラメータ"
20506 \begin_layout Subsection
20507 \begin_inset CommandInset label
20509 name "subsec:段落様式-XHTML"
20516 \begin_layout Standard
20518 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
20519 \begin_inset Flex Code
20522 \begin_layout Plain Layout
20532 \begin_layout Standard
20533 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
20536 \begin_layout LyX-Code
20540 \begin_inset Quotes erd
20544 \begin_inset Quotes erd
20550 \begin_layout LyX-Code
20554 \begin_inset Quotes erd
20558 \begin_inset Quotes erd
20564 \begin_layout LyX-Code
20570 \begin_layout LyX-Code
20576 \begin_layout Standard
20577 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
20580 \begin_layout Standard
20581 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
20584 \begin_layout LyX-Code
20588 \begin_inset Quotes erd
20592 \begin_inset Quotes erd
20598 \begin_layout LyX-Code
20602 \begin_inset Quotes erd
20606 \begin_inset Quotes erd
20610 \begin_inset Quotes erd
20614 \begin_inset Quotes erd
20617 >環境ラベル</labeltag>最初の段落.
20620 \begin_layout LyX-Code
20626 \begin_layout LyX-Code
20629 <itemtag>二つめの段落.</itemtag>
20632 \begin_layout LyX-Code
20638 \begin_layout Standard
20639 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
20642 \begin_layout Standard
20643 リストに関しては,次のような形になります.
20646 \begin_layout LyX-Code
20650 \begin_inset Quotes erd
20654 \begin_inset Quotes erd
20660 \begin_layout LyX-Code
20664 \begin_inset Quotes erd
20668 \begin_inset Quotes erd
20672 \begin_inset Quotes erd
20676 \begin_inset Quotes erd
20679 >リストのラベル</labeltag>最初の項目.</itemtag>
20682 \begin_layout LyX-Code
20686 \begin_inset Quotes erd
20690 \begin_inset Quotes erd
20694 \begin_inset Quotes erd
20698 \begin_inset Quotes erd
20701 >リストのラベル</labeltag>二つめの項目.</itemtag>
20704 \begin_layout LyX-Code
20710 \begin_layout LyX-Code
20714 \begin_layout LyX-Code
20718 \begin_inset Quotes erd
20722 \begin_inset Quotes erd
20728 \begin_layout LyX-Code
20732 \begin_inset Quotes erd
20736 \begin_inset Quotes erd
20739 >リストのラベル</labeltag><itemtag attr=
20740 \begin_inset Quotes erd
20744 \begin_inset Quotes erd
20750 \begin_layout LyX-Code
20754 \begin_inset Quotes erd
20758 \begin_inset Quotes erd
20761 >リストのラベル</labeltag><itemtag attr=
20762 \begin_inset Quotes erd
20766 \begin_inset Quotes erd
20772 \begin_layout LyX-Code
20778 \begin_layout Standard
20780 \begin_inset Flex Code
20783 \begin_layout Plain Layout
20790 \begin_inset Flex Code
20793 \begin_layout Plain Layout
20799 の順序が違っていることに注意してください.どちらの順序になるかは,
20800 \begin_inset Flex Code
20803 \begin_layout Plain Layout
20810 \begin_inset Flex Code
20813 \begin_layout Plain Layout
20819 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
20822 \begin_layout Standard
20823 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
20825 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
20829 \begin_layout Description
20830 \begin_inset Flex Code
20833 \begin_layout Plain Layout
20840 \begin_inset Flex Code
20843 \begin_layout Plain Layout
20849 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
20850 \begin_inset Flex Code
20853 \begin_layout Plain Layout
20859 」のようなものです.既定においては,\SpecialChar LyX
20861 \begin_inset Flex Code
20864 \begin_layout Plain Layout
20871 \begin_inset Flex Code
20874 \begin_layout Plain Layout
20880 は,レイアウトの\SpecialChar LyX
20881 名であり,chapterのように小文字で記述します.
20884 \begin_layout Description
20885 \begin_inset Flex Code
20888 \begin_layout Plain Layout
20895 \begin_inset Flex Code
20898 \begin_layout Plain Layout
20909 \begin_inset Flex Code
20912 \begin_layout Plain Layout
20918 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
20919 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
20920 \begin_inset Flex Code
20923 \begin_layout Plain Layout
20929 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
20930 \begin_inset Flex Code
20933 \begin_layout Plain Layout
20942 \begin_layout Description
20943 \begin_inset Flex Code
20946 \begin_layout Plain Layout
20953 \begin_inset Flex Code
20956 \begin_layout Plain Layout
20962 ] 環境の段落に使用されるタグ.上記各例の
20963 \begin_inset Flex Code
20966 \begin_layout Plain Layout
20973 \begin_inset Flex Code
20976 \begin_layout Plain Layout
20985 \begin_layout Description
20986 \begin_inset Flex Code
20989 \begin_layout Plain Layout
20996 \begin_inset Flex Code
20999 \begin_layout Plain Layout
21006 \begin_inset Flex Code
21009 \begin_layout Plain Layout
21010 class=`レイアウト名_item'
21020 \begin_inset Flex Code
21023 \begin_layout Plain Layout
21032 \begin_layout Description
21033 \begin_inset Flex Code
21036 \begin_layout Plain Layout
21043 \begin_inset Flex Code
21046 \begin_layout Plain Layout
21052 ] 段落と項目ラベルに使用されるタグ.上記各例の
21053 \begin_inset Flex Code
21056 \begin_layout Plain Layout
21063 \begin_inset Flex Code
21066 \begin_layout Plain Layout
21073 \begin_inset Flex Code
21076 \begin_layout Plain Layout
21083 \begin_inset Flex Code
21086 \begin_layout Plain Layout
21087 Centered_Top_Environment
21093 \begin_inset Flex Code
21096 \begin_layout Plain Layout
21103 \begin_inset Flex Code
21106 \begin_layout Plain Layout
21115 \begin_layout Description
21116 \begin_inset Flex Code
21119 \begin_layout Plain Layout
21126 \begin_inset Flex Code
21129 \begin_layout Plain Layout
21136 \begin_inset Flex Code
21139 \begin_layout Plain Layout
21140 class=`レイアウト名_label'
21150 \begin_inset Flex Code
21153 \begin_layout Plain Layout
21162 \begin_layout Description
21163 \begin_inset Flex Code
21166 \begin_layout Plain Layout
21173 \begin_inset Flex Code
21176 \begin_layout Plain Layout
21186 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
21188 \begin_inset Flex Code
21191 \begin_layout Plain Layout
21192 `<dt>\SpecialChar ldots
21193 </dt><dd>\SpecialChar ldots
21199 という形を得るために使用されます.既定値は
21200 \begin_inset Flex Code
21203 \begin_layout Plain Layout
21209 で,labelタグはitemタグの中に出力されます.
21212 \begin_layout Description
21213 \begin_inset Flex Code
21216 \begin_layout Plain Layout
21223 \begin_inset Flex Code
21226 \begin_layout Plain Layout
21232 セクションに出力される情報.これは,たとえば,
21233 \begin_inset Flex Code
21236 \begin_layout Plain Layout
21243 \begin_inset Flex Code
21246 \begin_layout Plain Layout
21252 ブロックをインクルードするのに使用することができます.
21255 \begin_layout Description
21256 \begin_inset Flex Code
21259 \begin_layout Plain Layout
21265 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21266 \begin_inset Flex Code
21269 \begin_layout Plain Layout
21275 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21276 \begin_inset Flex Code
21279 \begin_layout Plain Layout
21288 \begin_layout Description
21289 \begin_inset Flex Code
21292 \begin_layout Plain Layout
21299 \begin_inset Flex Code
21302 \begin_layout Plain Layout
21308 ] 主幹ラベルに使用されるタグ.上記各例の
21309 \begin_inset Flex Code
21312 \begin_layout Plain Layout
21319 \begin_inset Flex Code
21322 \begin_layout Plain Layout
21331 \begin_layout Description
21332 \begin_inset Flex Code
21335 \begin_layout Plain Layout
21342 \begin_inset Flex Code
21345 \begin_layout Plain Layout
21356 \begin_inset Flex Code
21359 \begin_layout Plain Layout
21365 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
21366 \begin_inset Flex Code
21369 \begin_layout Plain Layout
21376 \begin_inset Flex Code
21379 \begin_layout Plain Layout
21388 \begin_layout Subsection
21392 \begin_layout Standard
21393 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
21397 \begin_layout Plain Layout
21398 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
21404 .ここでも,\SpecialChar LyX
21405 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
21408 \begin_layout Standard
21410 が差込枠用に出力するXHTMLは,以下の形を取ります.
21413 \begin_layout LyX-Code
21415 \begin_inset Quotes erd
21419 \begin_inset Quotes erd
21425 \begin_layout LyX-Code
21426 <labeltag>ラベル</labeltag>
21429 \begin_layout LyX-Code
21431 \begin_inset Quotes erd
21435 \begin_inset Quotes erd
21438 >差込枠の内容.</innertag>
21441 \begin_layout LyX-Code
21445 \begin_layout Standard
21447 \begin_inset Flex Code
21450 \begin_layout Plain Layout
21456 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
21457 labelタグは省略され,ラベルがあれば,現在のところ,つねに
21458 \begin_inset Flex Code
21461 \begin_layout Plain Layout
21467 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
21471 \begin_layout Description
21472 \begin_inset Flex Code
21475 \begin_layout Plain Layout
21482 \begin_inset Flex Code
21485 \begin_layout Plain Layout
21491 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21492 \begin_inset Flex Code
21495 \begin_layout Plain Layout
21496 class=`myinset' onclick=`\SpecialChar ldots
21502 」のようなものです.既定においては,\SpecialChar LyX
21504 \begin_inset Flex Code
21507 \begin_layout Plain Layout
21514 \begin_inset Flex Code
21517 \begin_layout Plain Layout
21523 は,差込枠の\SpecialChar LyX
21524 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
21527 \begin_layout Description
21528 \begin_inset Flex Code
21531 \begin_layout Plain Layout
21538 \begin_inset Flex Code
21541 \begin_layout Plain Layout
21552 \begin_inset Flex Code
21555 \begin_layout Plain Layout
21561 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
21562 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
21563 \begin_inset Flex Code
21566 \begin_layout Plain Layout
21572 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
21573 \begin_inset Flex Code
21576 \begin_layout Plain Layout
21585 \begin_layout Description
21586 \begin_inset Flex Code
21589 \begin_layout Plain Layout
21596 \begin_inset Flex Code
21599 \begin_layout Plain Layout
21606 \begin_inset Flex Code
21609 \begin_layout Plain Layout
21618 \begin_layout Description
21619 \begin_inset Flex Code
21622 \begin_layout Plain Layout
21629 \begin_inset Flex Code
21632 \begin_layout Plain Layout
21639 \begin_inset Flex Code
21642 \begin_layout Plain Layout
21651 \begin_layout Description
21652 \begin_inset Flex Code
21655 \begin_layout Plain Layout
21662 \begin_inset Flex Code
21665 \begin_layout Plain Layout
21673 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
21676 \begin_layout Description
21677 \begin_inset Flex Code
21680 \begin_layout Plain Layout
21687 \begin_inset Flex Code
21690 \begin_layout Plain Layout
21696 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
21697 \begin_inset Flex Code
21700 \begin_layout Plain Layout
21708 など.これは非必須であり,既定値はありません.
21711 \begin_layout Description
21712 \begin_inset Flex Code
21715 \begin_layout Plain Layout
21722 \begin_inset Flex Code
21725 \begin_layout Plain Layout
21731 セクションに出力される情報.これは,たとえば,
21732 \begin_inset Flex Code
21735 \begin_layout Plain Layout
21742 \begin_inset Flex Code
21745 \begin_layout Plain Layout
21751 ブロックをインクルードするのに使用することができます.
21754 \begin_layout Description
21755 \begin_inset Flex Code
21758 \begin_layout Plain Layout
21764 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21765 \begin_inset Flex Code
21768 \begin_layout Plain Layout
21774 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21777 \begin_layout Description
21778 \begin_inset Flex Code
21781 \begin_layout Plain Layout
21788 \begin_inset Flex Code
21791 \begin_layout Plain Layout
21797 ] 主幹ラベルに使用されるタグ.上記各例の
21798 \begin_inset Flex Code
21801 \begin_layout Plain Layout
21808 \begin_inset Flex Code
21811 \begin_layout Plain Layout
21818 \begin_inset Flex Code
21821 \begin_layout Plain Layout
21828 \begin_inset Flex Code
21831 \begin_layout Plain Layout
21838 \begin_inset Flex Code
21841 \begin_layout Plain Layout
21850 \begin_layout Subsection
21854 \begin_layout Standard
21855 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
21858 \begin_layout LyX-Code
21860 \begin_inset Quotes erd
21864 \begin_inset Quotes erd
21870 \begin_layout LyX-Code
21874 \begin_layout LyX-Code
21878 \begin_layout Standard
21879 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
21883 \begin_layout Description
21884 \begin_inset Flex Code
21887 \begin_layout Plain Layout
21894 \begin_inset Flex Code
21897 \begin_layout Plain Layout
21903 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21904 \begin_inset Flex Code
21907 \begin_layout Plain Layout
21908 class=`myfloat' onclick=`\SpecialChar ldots
21914 」のようなものです.既定においては,\SpecialChar LyX
21916 \begin_inset Flex Code
21919 \begin_layout Plain Layout
21920 class=`float フロート-フロート型'
21926 \begin_inset Flex Code
21929 \begin_layout Plain Layout
21936 \begin_inset CommandInset ref
21938 reference "subsec:フロート"
21942 参照),この型のフロートの\SpecialChar LyX
21943 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
21946 \begin_layout Description
21947 \begin_inset Flex Code
21950 \begin_layout Plain Layout
21956 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21957 \begin_inset Flex Code
21960 \begin_layout Plain Layout
21966 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21969 \begin_layout Description
21970 \begin_inset Flex Code
21973 \begin_layout Plain Layout
21980 \begin_inset Flex Code
21983 \begin_layout Plain Layout
21989 ] このフロートに使用されるタグ.上記各例の
21990 \begin_inset Flex Code
21993 \begin_layout Plain Layout
22000 \begin_inset Flex Code
22003 \begin_layout Plain Layout
22009 であり,ほとんどの場合変更する必要はありません.
22012 \begin_layout Subsection
22016 \begin_layout Standard
22018 \begin_inset Flex Code
22021 \begin_layout Plain Layout
22027 ブロックを使用して整形することができます.詳細については,
22028 \begin_inset CommandInset ref
22030 reference "subsec:引用書式指定"
22037 \begin_layout Subsection
22042 \begin_layout Standard
22044 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
22046 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
22049 \begin_layout Standard
22052 \begin_inset Flex Code
22055 \begin_layout Plain Layout
22062 \begin_inset Flex Code
22065 \begin_layout Plain Layout
22072 \begin_inset Flex Code
22075 \begin_layout Plain Layout
22082 \begin_inset Flex Code
22085 \begin_layout Plain Layout
22092 \begin_inset Flex Code
22095 \begin_layout Plain Layout
22101 を利用して,フォント情報についてのみCSSを自動生成します(
22102 \begin_inset CommandInset ref
22104 reference "subsec:フォント指定"
22108 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
22109 \begin_inset Flex Code
22112 \begin_layout Plain Layout
22119 \begin_inset Flex Code
22122 \begin_layout Plain Layout
22123 font-family: sans-serif
22128 」になります.\SpecialChar LyX
22129 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
22130 \begin_inset Flex URL
22133 \begin_layout Plain Layout
22141 \begin_inset Flex Code
22144 \begin_layout Plain Layout
22153 \begin_layout Chapter
22155 \begin_inset CommandInset label
22157 name "chap:外部素材を取り込む"
22164 \begin_layout Standard
22165 \begin_inset Box Shadowbox
22175 height_special "totalheight"
22180 backgroundcolor "none"
22183 \begin_layout Plain Layout
22184 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
22192 \begin_layout Standard
22194 外部のソースから素材を使用する方法は,取扱説明書『
22198 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
22201 \begin_layout Section
22205 \begin_layout Standard
22206 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
22207 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
22209 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
22210 \begin_inset Flex MenuItem
22213 \begin_layout Plain Layout
22214 挿入\SpecialChar menuseparator
22215 ファイル\SpecialChar menuseparator
22221 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
22222 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
22223 の後の版に取り込むことができるようにしてくださることを希望します.
22226 \begin_layout Standard
22227 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
22229 \begin_inset Flex Code
22232 \begin_layout Plain Layout
22238 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
22239 \begin_inset Flex Code
22242 \begin_layout Plain Layout
22248 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
22249 \begin_inset Flex Code
22252 \begin_layout Plain Layout
22258 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
22259 ファイルにそのままインクルードできるように,
22260 \begin_inset Flex Code
22263 \begin_layout Plain Layout
22269 を呼び出してPostScriptファイルを生成します.この場合には,
22270 \begin_inset Flex Code
22273 \begin_layout Plain Layout
22279 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
22282 \begin_layout Standard
22283 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
22284 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
22285 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
22288 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
22291 \begin_layout Standard
22293 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
22294 の場合には,\SpecialChar LyX
22295 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
22296 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
22297 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
22301 \begin_layout Section
22305 \begin_layout Standard
22307 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
22308 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
22309 \begin_inset CommandInset ref
22311 reference "sec:セキュリティに関する論点"
22315 のセキュリティに関する議論を読んでおいてください.
22318 \begin_layout Standard
22319 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
22322 \begin_layout Standard
22324 \begin_inset Flex Code
22327 \begin_layout Plain Layout
22328 LyXDir/lib/xtemplates/
22334 \begin_inset Flex Code
22337 \begin_layout Plain Layout
22343 ファイルに定義されています.各ひな型は,そのファイル完結で定義されています.自分専用のひな型を
22344 \begin_inset Flex Code
22347 \begin_layout Plain Layout
22348 UserDir/xtemplates/
22353 に置くこともできますし,既存のひな型をそのデイレク取りにコピーして修正を加えることもできます.
22356 \begin_layout Standard
22357 典型的なひな型は以下のようになります.
22360 \begin_layout LyX-Code
22364 \begin_layout LyX-Code
22365 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22368 \begin_layout LyX-Code
22372 \begin_layout LyX-Code
22376 \begin_layout LyX-Code
22380 \begin_layout LyX-Code
22384 \begin_layout LyX-Code
22388 \begin_layout LyX-Code
22389 AutomaticProduction true
22392 \begin_layout LyX-Code
22396 \begin_layout LyX-Code
22400 \begin_layout LyX-Code
22404 \begin_layout LyX-Code
22405 TransformCommand Rotate RotationLatexCommand
22408 \begin_layout LyX-Code
22409 TransformCommand Resize ResizeLatexCommand
22412 \begin_layout LyX-Code
22413 Product "$$RotateFront$$ResizeFront
22416 \begin_layout LyX-Code
22421 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22424 \begin_layout LyX-Code
22425 $$ResizeBack$$RotateBack"
22428 \begin_layout LyX-Code
22432 \begin_layout LyX-Code
22433 UpdateResult "$$AbsPath$$Basename.pstex_t"
22436 \begin_layout LyX-Code
22437 Requirement "graphicx"
22440 \begin_layout LyX-Code
22441 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22444 \begin_layout LyX-Code
22445 ReferencedFile latex "$$AbsPath$$Basename.eps"
22448 \begin_layout LyX-Code
22449 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22452 \begin_layout LyX-Code
22456 \begin_layout LyX-Code
22460 \begin_layout LyX-Code
22461 TransformCommand Rotate RotationLatexCommand
22464 \begin_layout LyX-Code
22465 TransformCommand Resize ResizeLatexCommand
22468 \begin_layout LyX-Code
22469 Product "$$RotateFront$$ResizeFront
22472 \begin_layout LyX-Code
22477 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22480 \begin_layout LyX-Code
22481 $$ResizeBack$$RotateBack"
22484 \begin_layout LyX-Code
22485 UpdateFormat pdftex
22488 \begin_layout LyX-Code
22489 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22492 \begin_layout LyX-Code
22493 Requirement "graphicx"
22496 \begin_layout LyX-Code
22497 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22500 \begin_layout LyX-Code
22501 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22504 \begin_layout LyX-Code
22508 \begin_layout LyX-Code
22512 \begin_layout LyX-Code
22513 Product "$$Contents(
22515 "$$AbsPath$$Basename.asc
22520 \begin_layout LyX-Code
22521 UpdateFormat asciixfig
22524 \begin_layout LyX-Code
22525 UpdateResult "$$AbsPath$$Basename.asc"
22528 \begin_layout LyX-Code
22532 \begin_layout LyX-Code
22536 \begin_layout LyX-Code
22537 Product "<graphic fileref=
22539 "$$AbsOrRelPathMaster$$Basename.eps
22544 \begin_layout LyX-Code
22548 \begin_layout LyX-Code
22552 \begin_layout LyX-Code
22553 UpdateResult "$$AbsPath$$Basename.eps"
22556 \begin_layout LyX-Code
22557 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22560 \begin_layout LyX-Code
22561 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22564 \begin_layout LyX-Code
22568 \begin_layout LyX-Code
22569 Product "[XFig: $$FName]"
22572 \begin_layout LyX-Code
22576 \begin_layout LyX-Code
22580 \begin_layout Standard
22582 \begin_inset Flex Code
22585 \begin_layout Plain Layout
22593 \begin_inset Flex Code
22596 \begin_layout Plain Layout
22602 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
22603 \begin_inset Flex Code
22606 \begin_layout Plain Layout
22614 \begin_inset Flex Code
22617 \begin_layout Plain Layout
22626 \begin_layout Subsection
22630 \begin_layout Description
22631 \begin_inset Flex Code
22634 \begin_layout Plain Layout
22635 AutomaticProduction
22636 \begin_inset space ~
22644 このひな型で扱うファイルを\SpecialChar LyX
22645 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
22648 \begin_layout Description
22649 \begin_inset Flex Code
22652 \begin_layout Plain Layout
22654 \begin_inset space ~
22662 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
22663 \begin_inset Flex Code
22666 \begin_layout Plain Layout
22673 \begin_inset Flex Code
22676 \begin_layout Plain Layout
22683 \begin_inset Flex Code
22686 \begin_layout Plain Layout
22692 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
22695 \begin_layout Description
22696 \begin_inset Flex Code
22699 \begin_layout Plain Layout
22701 \begin_inset space ~
22709 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
22712 \begin_layout Description
22713 \begin_inset Flex Code
22716 \begin_layout Plain Layout
22718 \begin_inset space ~
22722 \begin_inset space ~
22730 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
22734 \begin_layout Description
22735 \begin_inset Flex Code
22738 \begin_layout Plain Layout
22740 \begin_inset space ~
22748 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
22749 が知っている書式名でなくてはなりません(
22750 \begin_inset CommandInset ref
22752 reference "sec:ファイル形式"
22756 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
22757 \begin_inset Flex Code
22760 \begin_layout Plain Layout
22766 」を使用してください.この場合,\SpecialChar LyX
22767 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
22770 \begin_layout Description
22771 \begin_inset Flex Code
22774 \begin_layout Plain Layout
22776 \begin_inset space ~
22784 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
22787 \begin_layout Description
22788 \begin_inset Flex Code
22791 \begin_layout Plain Layout
22793 \begin_inset space ~
22796 Rotate|Resize|Clip|Extra
22801 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
22802 ログ中の対応するタブを使用可能にします.
22803 \begin_inset Flex Code
22806 \begin_layout Plain Layout
22813 \begin_inset Flex Code
22816 \begin_layout Plain Layout
22823 \begin_inset Flex Code
22826 \begin_layout Plain Layout
22833 \begin_inset Flex Code
22836 \begin_layout Plain Layout
22842 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
22845 \begin_layout Subsection
22846 \begin_inset Flex Code
22849 \begin_layout Plain Layout
22858 \begin_layout Description
22859 \begin_inset Flex Code
22862 \begin_layout Plain Layout
22864 \begin_inset space ~
22867 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
22872 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
22873 \begin_inset Flex Code
22876 \begin_layout Plain Layout
22882 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
22886 \begin_layout Description
22887 \begin_inset Flex Code
22890 \begin_layout Plain Layout
22892 \begin_inset space ~
22896 \begin_inset space ~
22905 \begin_inset Flex Code
22908 \begin_layout Plain Layout
22915 \begin_inset Flex Code
22918 \begin_layout Plain Layout
22925 \begin_inset Flex Code
22928 \begin_layout Plain Layout
22934 自体にも代入マクロを使うことができます.
22935 \begin_inset Flex Code
22938 \begin_layout Plain Layout
22945 \begin_inset Flex Code
22948 \begin_layout Plain Layout
22955 \begin_inset Flex Code
22958 \begin_layout Plain Layout
22964 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
22967 \begin_layout Description
22968 \begin_inset Flex Code
22971 \begin_layout Plain Layout
22973 \begin_inset space ~
22981 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
22985 \begin_layout Description
22986 \begin_inset Flex Code
22989 \begin_layout Plain Layout
22991 \begin_inset space ~
22999 このコマンドは,\SpecialChar LaTeX
23000 プリアンブルに入れるプリアンブル片を指定します.これは
23001 \begin_inset Flex Code
23004 \begin_layout Plain Layout
23012 \begin_inset Flex Code
23015 \begin_layout Plain Layout
23021 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
23024 \begin_layout Description
23025 \begin_inset Flex Code
23028 \begin_layout Plain Layout
23030 \begin_inset space ~
23034 \begin_inset space ~
23042 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
23043 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
23046 \begin_layout Description
23047 \begin_inset Flex Code
23050 \begin_layout Plain Layout
23052 \begin_inset space ~
23060 必要とされる\SpecialChar LaTeX
23061 パッケージ名.パッケージは,\SpecialChar LaTeX
23063 \begin_inset Flex Code
23066 \begin_layout Plain Layout
23074 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
23077 \begin_layout Description
23078 \begin_inset Flex Code
23081 \begin_layout Plain Layout
23083 \begin_inset space ~
23087 \begin_inset space ~
23090 RotationLatexCommand
23095 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
23096 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23099 \begin_layout Description
23100 \begin_inset Flex Code
23103 \begin_layout Plain Layout
23105 \begin_inset space ~
23109 \begin_inset space ~
23117 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
23118 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23121 \begin_layout Description
23122 \begin_inset Flex Code
23125 \begin_layout Plain Layout
23127 \begin_inset space ~
23131 \begin_inset space ~
23134 RotationLatexOption
23139 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23142 \begin_layout Description
23143 \begin_inset Flex Code
23146 \begin_layout Plain Layout
23148 \begin_inset space ~
23152 \begin_inset space ~
23160 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23163 \begin_layout Description
23164 \begin_inset Flex Code
23167 \begin_layout Plain Layout
23169 \begin_inset space ~
23173 \begin_inset space ~
23181 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23184 \begin_layout Description
23185 \begin_inset Flex Code
23188 \begin_layout Plain Layout
23190 \begin_inset space ~
23194 \begin_inset space ~
23202 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
23205 \begin_layout Description
23206 \begin_inset Flex Code
23209 \begin_layout Plain Layout
23211 \begin_inset space ~
23219 変換されたファイルのファイル形式.これは,\SpecialChar LyX
23220 が知っている書式名でなくてはなりません(
23221 \begin_inset Flex MenuItem
23224 \begin_layout Plain Layout
23225 ツール\SpecialChar menuseparator
23226 設定\SpecialChar menuseparator
23227 ファイル処理\SpecialChar menuseparator
23233 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
23234 \begin_inset Flex Code
23237 \begin_layout Plain Layout
23243 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
23246 \begin_layout Description
23247 \begin_inset Flex Code
23250 \begin_layout Plain Layout
23252 \begin_inset space ~
23260 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
23263 \begin_layout Subsection
23267 \begin_layout Standard
23269 \begin_inset Flex Code
23272 \begin_layout Plain Layout
23280 \begin_inset Flex Code
23283 \begin_layout Plain Layout
23289 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
23290 \begin_inset Flex Code
23293 \begin_layout Plain Layout
23302 \begin_layout Section
23306 \begin_layout Standard
23307 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
23308 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
23311 \begin_layout Standard
23312 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
23315 \begin_layout Standard
23319 \begin_layout Description
23320 \begin_inset Flex Code
23323 \begin_layout Plain Layout
23324 $$AbsOrRelPathMaster
23330 親文書への絶対ファイルパスないしは相対ファイルパス
23333 \begin_layout Description
23334 \begin_inset Flex Code
23337 \begin_layout Plain Layout
23338 $$AbsOrRelPathParent
23344 文書への絶対ファイルパスないしは相対ファイルパス
23347 \begin_layout Description
23348 \begin_inset Flex Code
23351 \begin_layout Plain Layout
23360 \begin_layout Description
23361 \begin_inset Flex Code
23364 \begin_layout Plain Layout
23373 \begin_layout Description
23374 \begin_inset Flex Code
23377 \begin_layout Plain Layout
23379 \begin_inset Quotes eld
23383 \begin_inset Quotes erd
23392 \begin_inset Flex Code
23395 \begin_layout Plain Layout
23401 と云う名のファイルの中身を展開します.
23404 \begin_layout Description
23405 \begin_inset Flex Code
23408 \begin_layout Plain Layout
23417 \begin_layout Description
23418 \begin_inset Flex Code
23421 \begin_layout Plain Layout
23427 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
23428 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
23429 出力形式に対してこのマクロを使用します.
23432 \begin_layout Description
23433 \begin_inset Flex Code
23436 \begin_layout Plain Layout
23442 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
23443 文書への絶対パスでも良いですし,相対パスでも構いません.
23446 \begin_layout Description
23447 \begin_inset Flex Code
23450 \begin_layout Plain Layout
23457 \begin_inset Flex Code
23460 \begin_layout Plain Layout
23466 のパス部分(\SpecialChar LyX
23470 \begin_layout Description
23471 \begin_inset Flex Code
23474 \begin_layout Plain Layout
23484 \begin_layout Description
23485 \begin_inset Flex Code
23488 \begin_layout Plain Layout
23498 \begin_layout Description
23499 \begin_inset Flex Code
23502 \begin_layout Plain Layout
23508 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
23509 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
23512 \begin_layout Description
23513 \begin_inset Flex Code
23516 \begin_layout Plain Layout
23522 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
23525 \begin_layout Standard
23526 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
23527 \begin_inset Flex Code
23530 \begin_layout Plain Layout
23531 $$AbsPath$$Basename$$Extension
23539 \begin_layout Standard
23540 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
23541 \begin_inset Flex Code
23544 \begin_layout Plain Layout
23551 \begin_inset Flex Code
23554 \begin_layout Plain Layout
23561 \begin_inset Flex Code
23564 \begin_layout Plain Layout
23570 コマンドは,これらに加えて以下の代入もサポートします.
23573 \begin_layout Description
23574 \begin_inset Flex Code
23577 \begin_layout Plain Layout
23586 \begin_layout Description
23587 \begin_inset Flex Code
23590 \begin_layout Plain Layout
23599 \begin_layout Description
23600 \begin_inset Flex Code
23603 \begin_layout Plain Layout
23612 \begin_layout Description
23613 \begin_inset Flex Code
23616 \begin_layout Plain Layout
23625 \begin_layout Standard
23626 \begin_inset Flex Code
23629 \begin_layout Plain Layout
23636 \begin_inset Flex Code
23639 \begin_layout Plain Layout
23646 \begin_inset Flex Code
23649 \begin_layout Plain Layout
23655 コマンドが有効にされていれば,以下の代入もサポートされます.
23658 \begin_layout Description
23659 \begin_inset Flex Code
23662 \begin_layout Plain Layout
23671 \begin_layout Description
23672 \begin_inset Flex Code
23675 \begin_layout Plain Layout
23684 \begin_layout Description
23685 \begin_inset Flex Code
23688 \begin_layout Plain Layout
23697 \begin_layout Description
23698 \begin_inset Flex Code
23701 \begin_layout Plain Layout
23710 \begin_layout Standard
23711 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
23714 \begin_layout Enumerate
23715 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
23716 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
23719 \begin_layout Enumerate
23721 は,相対ファイル名に関して,\SpecialChar LyX
23722 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
23723 にとって相対ファイル名とは,常にこのファイル名が書か
23724 れている文書に対して相対的なものになります.\SpecialChar LaTeX
23725 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
23726 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
23727 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
23728 を選びさえすれば,これは\SpecialChar LyX
23732 \begin_layout Standard
23733 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
23736 \begin_layout Itemize
23738 \begin_inset Flex Code
23741 \begin_layout Plain Layout
23750 \begin_layout Itemize
23751 代入された文字列が,\SpecialChar LaTeX
23753 \begin_inset Flex Code
23756 \begin_layout Plain Layout
23757 $$AbsOrRelPathMaster
23765 \begin_layout Itemize
23766 それ以外ならば,ユーザの選択を尊重するために
23767 \begin_inset Flex Code
23770 \begin_layout Plain Layout
23771 $$AbsOrRelPathParent
23779 \begin_layout Standard
23780 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
23781 \begin_inset Flex Code
23784 \begin_layout Plain Layout
23785 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23791 \begin_inset Flex Code
23794 \begin_layout Plain Layout
23800 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
23803 \begin_layout Section
23805 \begin_inset CommandInset label
23807 name "sec:セキュリティに関する論点"
23814 \begin_layout Standard
23815 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
23816 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
23817 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
23820 \begin_layout Standard
23821 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
23822 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
23824 \begin_inset Flex Code
23827 \begin_layout Plain Layout
23834 \begin_inset Flex Code
23837 \begin_layout Plain Layout
23843 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
23846 \begin_layout Standard
23847 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
23848 できません.これは,\SpecialChar LyX
23849 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
23850 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
23853 \begin_layout Standard
23854 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
23855 うになるため,一般的には,統御下に置いた状態で
23856 \begin_inset Flex Code
23859 \begin_layout Plain Layout
23865 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
23866 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
23870 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
23871 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
23872 には,安全でないひな型は決して入っていません
23876 \begin_layout Standard
23877 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
23878 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
23879 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
23880 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
23881 使用する前に,行うようにしてください.
23884 \begin_layout Chapter
23886 サポートされているレイアウト用\SpecialChar LyX
23888 \begin_inset CommandInset label
23897 \begin_layout Standard
23899 \begin_inset Tabular
23900 <lyxtabular version="3" rows="11" columns="8">
23901 <features tabularvalignment="middle">
23902 <column alignment="left" valignment="top">
23903 <column alignment="left" valignment="top">
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">
23911 <cell alignment="left" valignment="top" usebox="none">
23914 \begin_layout Plain Layout
23920 <cell alignment="left" valignment="top" usebox="none">
23923 \begin_layout Plain Layout
23929 <cell alignment="left" valignment="top" usebox="none">
23932 \begin_layout Plain Layout
23938 <cell alignment="left" valignment="top" usebox="none">
23941 \begin_layout Plain Layout
23947 <cell alignment="center" valignment="top" usebox="none">
23950 \begin_layout Plain Layout
23956 <cell alignment="center" valignment="top" usebox="none">
23959 \begin_layout Plain Layout
23965 <cell alignment="center" valignment="top" usebox="none">
23968 \begin_layout Plain Layout
23974 <cell alignment="center" valignment="top" usebox="none">
23977 \begin_layout Plain Layout
23985 <cell alignment="left" valignment="top" usebox="none">
23988 \begin_layout Plain Layout
23994 <cell alignment="left" valignment="top" usebox="none">
23997 \begin_layout Plain Layout
24003 <cell alignment="left" valignment="top" usebox="none">
24006 \begin_layout Plain Layout
24012 <cell alignment="left" valignment="top" usebox="none">
24015 \begin_layout Plain Layout
24021 <cell alignment="center" valignment="top" usebox="none">
24024 \begin_layout Plain Layout
24030 <cell alignment="center" valignment="top" usebox="none">
24033 \begin_layout Plain Layout
24039 <cell alignment="center" valignment="top" usebox="none">
24042 \begin_layout Plain Layout
24048 <cell alignment="center" valignment="top" usebox="none">
24051 \begin_layout Plain Layout
24059 <cell alignment="left" valignment="top" usebox="none">
24062 \begin_layout Plain Layout
24068 <cell alignment="left" valignment="top" usebox="none">
24071 \begin_layout Plain Layout
24077 <cell alignment="left" valignment="top" usebox="none">
24080 \begin_layout Plain Layout
24086 <cell alignment="left" valignment="top" usebox="none">
24089 \begin_layout Plain Layout
24095 <cell alignment="center" valignment="top" usebox="none">
24098 \begin_layout Plain Layout
24104 <cell alignment="center" valignment="top" usebox="none">
24107 \begin_layout Plain Layout
24113 <cell alignment="center" valignment="top" usebox="none">
24116 \begin_layout Plain Layout
24122 <cell alignment="center" valignment="top" usebox="none">
24125 \begin_layout Plain Layout
24133 <cell alignment="left" valignment="top" usebox="none">
24136 \begin_layout Plain Layout
24142 <cell alignment="left" valignment="top" usebox="none">
24145 \begin_layout Plain Layout
24151 <cell alignment="left" valignment="top" usebox="none">
24154 \begin_layout Plain Layout
24160 <cell alignment="left" valignment="top" usebox="none">
24163 \begin_layout Plain Layout
24169 <cell alignment="center" valignment="top" usebox="none">
24172 \begin_layout Plain Layout
24178 <cell alignment="center" valignment="top" usebox="none">
24181 \begin_layout Plain Layout
24187 <cell alignment="center" valignment="top" usebox="none">
24190 \begin_layout Plain Layout
24196 <cell alignment="center" valignment="top" usebox="none">
24199 \begin_layout Plain Layout
24207 <cell alignment="left" valignment="top" usebox="none">
24210 \begin_layout Plain Layout
24216 <cell alignment="left" valignment="top" usebox="none">
24219 \begin_layout Plain Layout
24225 <cell alignment="left" valignment="top" usebox="none">
24228 \begin_layout Plain Layout
24234 <cell alignment="left" valignment="top" usebox="none">
24237 \begin_layout Plain Layout
24243 <cell alignment="center" valignment="top" usebox="none">
24246 \begin_layout Plain Layout
24252 <cell alignment="center" valignment="top" usebox="none">
24255 \begin_layout Plain Layout
24261 <cell alignment="center" valignment="top" usebox="none">
24264 \begin_layout Plain Layout
24270 <cell alignment="center" valignment="top" usebox="none">
24273 \begin_layout Plain Layout
24281 <cell alignment="left" valignment="top" usebox="none">
24284 \begin_layout Plain Layout
24290 <cell alignment="left" valignment="top" usebox="none">
24293 \begin_layout Plain Layout
24299 <cell alignment="left" valignment="top" usebox="none">
24302 \begin_layout Plain Layout
24308 <cell alignment="left" valignment="top" usebox="none">
24311 \begin_layout Plain Layout
24317 <cell alignment="center" valignment="top" usebox="none">
24320 \begin_layout Plain Layout
24326 <cell alignment="center" valignment="top" usebox="none">
24329 \begin_layout Plain Layout
24335 <cell alignment="center" valignment="top" usebox="none">
24338 \begin_layout Plain Layout
24344 <cell alignment="center" valignment="top" usebox="none">
24347 \begin_layout Plain Layout
24355 <cell alignment="left" valignment="top" usebox="none">
24358 \begin_layout Plain Layout
24364 <cell alignment="left" valignment="top" usebox="none">
24367 \begin_layout Plain Layout
24373 <cell alignment="left" valignment="top" usebox="none">
24376 \begin_layout Plain Layout
24382 <cell alignment="left" valignment="top" usebox="none">
24385 \begin_layout Plain Layout
24391 <cell alignment="center" valignment="top" usebox="none">
24394 \begin_layout Plain Layout
24400 <cell alignment="center" valignment="top" usebox="none">
24403 \begin_layout Plain Layout
24409 <cell alignment="center" valignment="top" usebox="none">
24412 \begin_layout Plain Layout
24418 <cell alignment="center" valignment="top" usebox="none">
24421 \begin_layout Plain Layout
24429 <cell alignment="left" valignment="top" usebox="none">
24432 \begin_layout Plain Layout
24438 <cell alignment="left" valignment="top" usebox="none">
24441 \begin_layout Plain Layout
24447 <cell alignment="left" valignment="top" usebox="none">
24450 \begin_layout Plain Layout
24456 <cell alignment="left" valignment="top" usebox="none">
24459 \begin_layout Plain Layout
24465 <cell alignment="center" valignment="top" usebox="none">
24468 \begin_layout Plain Layout
24474 <cell alignment="center" valignment="top" usebox="none">
24477 \begin_layout Plain Layout
24483 <cell alignment="center" valignment="top" usebox="none">
24486 \begin_layout Plain Layout
24492 <cell alignment="center" valignment="top" usebox="none">
24495 \begin_layout Plain Layout
24503 <cell alignment="left" valignment="top" usebox="none">
24506 \begin_layout Plain Layout
24512 <cell alignment="left" valignment="top" usebox="none">
24515 \begin_layout Plain Layout
24521 <cell alignment="left" valignment="top" usebox="none">
24524 \begin_layout Plain Layout
24530 <cell alignment="left" valignment="top" usebox="none">
24533 \begin_layout Plain Layout
24539 <cell alignment="center" valignment="top" usebox="none">
24542 \begin_layout Plain Layout
24548 <cell alignment="center" valignment="top" usebox="none">
24551 \begin_layout Plain Layout
24557 <cell alignment="center" valignment="top" usebox="none">
24560 \begin_layout Plain Layout
24566 <cell alignment="center" valignment="top" usebox="none">
24569 \begin_layout Plain Layout
24577 <cell alignment="left" valignment="top" usebox="none">
24580 \begin_layout Plain Layout
24586 <cell alignment="left" valignment="top" usebox="none">
24589 \begin_layout Plain Layout
24595 <cell alignment="left" valignment="top" usebox="none">
24598 \begin_layout Plain Layout
24604 <cell alignment="left" valignment="top" usebox="none">
24607 \begin_layout Plain Layout
24613 <cell alignment="center" valignment="top" usebox="none">
24616 \begin_layout Plain Layout
24622 <cell alignment="center" valignment="top" usebox="none">
24625 \begin_layout Plain Layout
24631 <cell alignment="center" valignment="top" usebox="none">
24634 \begin_layout Plain Layout
24640 <cell alignment="center" valignment="top" usebox="none">
24643 \begin_layout Plain Layout
24651 <cell alignment="center" valignment="top" usebox="none">
24654 \begin_layout Plain Layout
24660 <cell alignment="center" valignment="top" usebox="none">
24663 \begin_layout Plain Layout
24669 <cell alignment="center" valignment="top" usebox="none">
24672 \begin_layout Plain Layout
24678 <cell alignment="center" valignment="top" usebox="none">
24681 \begin_layout Plain Layout
24687 <cell alignment="center" valignment="top" usebox="none">
24690 \begin_layout Plain Layout
24696 <cell alignment="center" valignment="top" usebox="none">
24699 \begin_layout Plain Layout
24705 <cell alignment="center" valignment="top" usebox="none">
24708 \begin_layout Plain Layout
24714 <cell alignment="center" valignment="top" usebox="none">
24717 \begin_layout Plain Layout
24731 \begin_layout Chapter
24733 \begin_inset CommandInset label
24742 \begin_layout Standard
24743 ここに列挙されている色は標準色であり,\SpecialChar LyX
24747 \begin_layout Section
24753 \begin_layout Standard
24756 The following are no real colors, but rather act on color definitions:
24759 \begin_layout Description
24763 \begin_layout Description
24767 \begin_layout Description
24772 特定の色ではありません – 透明か既定色です
24775 \begin_layout Section
24781 \begin_layout Standard
24784 These are fixed colors that cannot me customized:
24787 \begin_layout Description
24791 \begin_layout Description
24795 \begin_layout Description
24799 \begin_layout Description
24803 \begin_layout Description
24807 \begin_layout Description
24811 \begin_layout Description
24815 \begin_layout Description
24819 \begin_layout Description
24823 \begin_layout Description
24827 \begin_layout Description
24831 \begin_layout Description
24835 \begin_layout Description
24839 \begin_layout Description
24843 \begin_layout Description
24847 \begin_layout Description
24851 \begin_layout Description
24855 \begin_layout Description
24859 \begin_layout Description
24863 \begin_layout Section
24869 \begin_layout Standard
24872 These are the colors allocated to specific elements in
24875 \begin_inset Flex MenuItem
24878 \begin_layout Plain Layout
24879 ツール\SpecialChar menuseparator
24888 \begin_layout Description
24892 \begin_layout Description
24896 \begin_layout Description
24900 \begin_layout Description
24904 \begin_layout Description
24908 \begin_layout Description
24909 branchlabel 派生枝ラベル色
24912 \begin_layout Description
24916 \begin_layout Description
24920 \begin_layout Description
24921 buttonhoverbg フォーカスを得ているボタンの背景色
24924 \begin_layout Description
24928 \begin_layout Description
24929 changedtextauthor1 変更された文章:第1著者の色
24932 \begin_layout Description
24933 changedtextauthor2 変更された文章:第2著者の色
24936 \begin_layout Description
24937 changedtextauthor3 変更された文章:第3著者の色
24940 \begin_layout Description
24941 changedtextauthor4 変更された文章:第4著者の色
24944 \begin_layout Description
24945 changedtextauthor5 変更された文章:第5著者の色
24948 \begin_layout Description
24949 collapsibletext 畳み込み可能枠の文字色
24952 \begin_layout Description
24953 collapsibleframe 畳み込み可能枠の縁色
24956 \begin_layout Description
24957 command コマンド差込枠の文字色
24960 \begin_layout Description
24961 commandbg コマンド差込枠の背景色
24964 \begin_layout Description
24965 commandframe コマンド差込枠の縁色
24968 \begin_layout Description
24972 \begin_layout Description
24976 \begin_layout Description
24980 \begin_layout Description
24981 deletedtext 削除された文章の色
24984 \begin_layout Description
24985 deletedtextmodifier 削除された文章の修飾子の色
24988 \begin_layout Description
24989 depthbar 余白部の階層表示線の色
24992 \begin_layout Description
24996 \begin_layout Description
24997 error \SpecialChar LaTeX
25001 \begin_layout Description
25005 \begin_layout Description
25011 \begin_layout Description
25012 graphicsbg 画像差込枠の背景色
25015 \begin_layout Description
25016 greyedoutbg 淡色表示差込枠の背景色
25019 \begin_layout Description
25020 greyedoutlabel 淡色表示差込枠のラベル色
25023 \begin_layout Description
25024 greyedouttext 淡色表示差込枠の文字色
25027 \begin_layout Description
25028 indexlabel 索引差込枠のラベル色
25031 \begin_layout Description
25032 inlinecompletion 行内補完色
25035 \begin_layout Description
25039 \begin_layout Description
25043 \begin_layout Description
25044 language 外国語の単語を標識するための色
25047 \begin_layout Description
25048 latex \SpecialChar LaTeX
25052 \begin_layout Description
25053 listingsbg プログラムリスト差込枠の背景色
25056 \begin_layout Description
25057 marginlabel 傍註のラベル色
25060 \begin_layout Description
25064 \begin_layout Description
25068 \begin_layout Description
25069 mathcorners フォーカスを得ていない数式差込枠の縁色
25072 \begin_layout Description
25073 mathframe フォーカスを得ている数式差込枠の縁色
25076 \begin_layout Description
25080 \begin_layout Description
25081 mathmacrobg 数式マクロ差込枠の背景色
25084 \begin_layout Description
25085 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
25088 \begin_layout Description
25089 mathmacroframe 数式マクロ差込枠の縁色
25092 \begin_layout Description
25093 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
25096 \begin_layout Description
25097 mathmacrolabel 数式マクロ差込枠のラベル色
25100 \begin_layout Description
25101 mathmacronewarg 数式マクロ新パラメーターのひな型色
25104 \begin_layout Description
25105 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
25108 \begin_layout Description
25112 \begin_layout Description
25113 nonunique_inlinecompletion 行内補完の一意でない部分の色
25116 \begin_layout Description
25120 \begin_layout Description
25124 \begin_layout Description
25128 \begin_layout Description
25129 paragraphmarker 段落末を標識するための段落標の色
25132 \begin_layout Description
25133 phantomtext 埋め草差込枠の文字色
25136 \begin_layout Description
25137 preview プレビューに用いられる色
25140 \begin_layout Description
25141 previewframe プレビュー縁色
25144 \begin_layout Description
25145 regexpframe 正規表現枠の色
25148 \begin_layout Description
25151 Color that indicates when a row can be scrolled
25154 \begin_layout Description
25155 selection 文章選択部の背景色
25158 \begin_layout Description
25159 selectiontext 文章選択部の前景色
25162 \begin_layout Description
25163 shadedbg 影付きボックスの背景色
25166 \begin_layout Description
25170 \begin_layout Description
25174 \begin_layout Description
25175 tabularonoffline 罫線色
25178 \begin_layout Description
25179 urllabel URL差込枠のラベル色
25182 \begin_layout Description