1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
36 \maintain_unincluded_children false
39 InsetLayout Flex:MenuItem
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
58 #\renewcommand{\code}[1]{{\sffamily #1}}
67 Decoration Conglomerate
71 Decoration Conglomerate
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
89 \language_package default
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
103 \use_dash_ligatures false
105 \default_output_format pdf3
107 \bibtex_command default
108 \index_command default
112 \pdf_title "LyX Configuration Manual"
113 \pdf_author "LyX Team"
114 \pdf_subject "LyX-Documentation Customization"
115 \pdf_keywords "LyX, documentation, customization"
117 \pdf_bookmarksnumbered true
118 \pdf_bookmarksopen true
119 \pdf_bookmarksopenlevel 1
120 \pdf_breaklinks false
124 \pdf_pdfusetitle false
125 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
128 \use_package amsmath 0
129 \use_package amssymb 0
130 \use_package cancel 0
132 \use_package mathdots 0
133 \use_package mathtools 0
134 \use_package mhchem 0
135 \use_package stackrel 0
136 \use_package stmaryrd 0
137 \use_package undertilde 0
139 \cite_engine_type default
143 \paperorientation portrait
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
620 \begin_inset Flex Code
623 \begin_layout Plain Layout
631 contains files with the extension
632 \begin_inset Flex Code
635 \begin_layout Plain Layout
643 which define the diverse citation possibilities (natbib, biblatex etc.).
645 \begin_inset CommandInset ref
647 reference "subsec:Cite-Engine-Files"
657 \begin_layout Labeling
658 \labelwidthstring 00.00.0000
659 \begin_inset Flex Code
662 \begin_layout Plain Layout
668 このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
671 \begin_layout Labeling
672 \labelwidthstring 00.00.0000
673 \begin_inset Flex Code
676 \begin_layout Plain Layout
682 このディレクトリには,\SpecialChar LyX
683 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
684 \begin_inset Flex Code
687 \begin_layout Plain Layout
693 ファイルは特に注目に値します.各国語版のヘルプ文書は,
694 \begin_inset Flex Code
697 \begin_layout Plain Layout
703 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
704 \begin_inset CommandInset ref
706 reference "cha:LyXの各国語対応"
713 \begin_layout Labeling
714 \labelwidthstring 00.00.0000
715 \begin_inset Flex Code
718 \begin_layout Plain Layout
724 このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
725 \begin_inset Flex MenuItem
728 \begin_layout Plain Layout
734 ボタンを押すと,このディレクトリが表示されます.
737 \begin_layout Labeling
738 \labelwidthstring 00.00.0000
739 \begin_inset Flex Code
742 \begin_layout Plain Layout
749 \begin_inset Flex MenuItem
752 \begin_layout Plain Layout
758 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
759 を起動したときに現れるバナーも納められています.
762 \begin_layout Labeling
763 \labelwidthstring 00.00.0000
764 \begin_inset Flex Code
767 \begin_layout Plain Layout
773 このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
774 \begin_inset CommandInset ref
776 reference "sec:国際キー配列"
783 \begin_layout Labeling
784 \labelwidthstring 00.00.0000
785 \begin_inset Flex Code
788 \begin_layout Plain Layout
795 \begin_inset CommandInset ref
797 reference "cha:新規文書を導入"
801 に述べられているテキストクラスおよびモジュールのファイルが納められています.
804 \begin_layout Labeling
805 \labelwidthstring 00.00.0000
806 \begin_inset Flex Code
809 \begin_layout Plain Layout
815 このディレクトリには,\SpecialChar LyX
817 \begin_inset Flex Code
820 \begin_layout Plain Layout
826 Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
834 \begin_layout Plain Layout
841 \begin_inset Flex MenuItem
844 \begin_layout Plain Layout
850 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
851 自身が使用するスクリプトもいくつか収められています.
854 \begin_layout Labeling
855 \labelwidthstring 00.00.0000
856 \begin_inset Flex Code
859 \begin_layout Plain Layout
866 \begin_inset CommandInset ref
868 reference "sec:ひな型を作成する"
872 で述べられている標準の\SpecialChar LyX
876 \begin_layout Labeling
877 \labelwidthstring 00.00.0000
878 \begin_inset Flex Code
881 \begin_layout Plain Layout
887 このディレクトリには,\SpecialChar LyX
889 \begin_inset Flex Code
892 \begin_layout Plain Layout
898 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
901 \begin_layout Labeling
902 \labelwidthstring 00.00.0000
905 \begin_inset Flex Code
908 \begin_layout Plain Layout
916 contains files with the extension
917 \begin_inset Flex Code
920 \begin_layout Plain Layout
928 which define the templates for the insertion of external material to a
931 \begin_inset CommandInset ref
933 reference "chap:Including-External-Material"
940 \begin_layout Subsection
944 \begin_layout Standard
945 これらのファイルは\SpecialChar LyX
946 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
949 \begin_layout Labeling
950 \labelwidthstring 00.00.0000
951 \begin_inset Flex Code
954 \begin_layout Plain Layout
960 このファイルは,\SpecialChar LyX
961 開発陣の名簿です.この内容は,メニュー項目
962 \begin_inset Flex MenuItem
965 \begin_layout Plain Layout
966 ヘルプ\SpecialChar menuseparator
975 \begin_layout Labeling
976 \labelwidthstring 00.00.0000
977 \begin_inset Flex Code
980 \begin_layout Plain Layout
986 これは,自動設定プロセスによって使用される\SpecialChar LaTeX
987 スクリプトです.直接実行しないでください.
990 \begin_layout Labeling
991 \labelwidthstring 00.00.0000
992 \begin_inset Flex Code
995 \begin_layout Plain Layout
1001 これは,\SpecialChar LyX
1002 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
1005 \begin_layout Subsection
1009 \begin_layout Labeling
1010 \labelwidthstring 00.00.0000
1011 \begin_inset Flex Code
1014 \begin_layout Plain Layout
1020 このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
1023 \begin_layout Labeling
1024 \labelwidthstring 00.00.0000
1025 \begin_inset Flex Code
1028 \begin_layout Plain Layout
1034 このファイルには,現在\SpecialChar LyX
1035 がサポートしている言語の全一覧が載っています.
1038 \begin_layout Labeling
1039 \labelwidthstring 00.00.0000
1040 \begin_inset Flex Code
1043 \begin_layout Plain Layout
1049 サポートされているフォントに関する情報が掲載されています.
1052 \begin_layout Labeling
1053 \labelwidthstring 00.00.0000
1054 \begin_inset Flex Code
1057 \begin_layout Plain Layout
1063 このファイルは,国際化された段落様式の翻訳が収録されています(
1064 \begin_inset CommandInset ref
1066 reference "subsec:段落様式の国際化"
1073 \begin_layout Labeling
1074 \labelwidthstring 00.00.0000
1075 \begin_inset Flex Code
1078 \begin_layout Plain Layout
1084 このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1086 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1089 \begin_layout Section
1093 \begin_layout Standard
1095 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1096 の設定を変更したいと思うかもしれません.
1097 \begin_inset Flex Code
1100 \begin_layout Plain Layout
1106 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1107 \begin_inset Flex MenuItem
1110 \begin_layout Plain Layout
1111 ヘルプ\SpecialChar menuseparator
1117 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1118 \begin_inset Flex Code
1121 \begin_layout Plain Layout
1128 \begin_inset Flex Code
1131 \begin_layout Plain Layout
1138 \begin_inset Flex Code
1141 \begin_layout Plain Layout
1147 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1150 \begin_layout Standard
1151 わかりやすくするために,いくつか例を挙げましょう.
1154 \begin_layout Itemize
1155 \begin_inset Flex MenuItem
1158 \begin_layout Plain Layout
1159 ツール\SpecialChar menuseparator
1166 \begin_inset Flex Code
1169 \begin_layout Plain Layout
1176 \begin_inset Flex Code
1179 \begin_layout Plain Layout
1188 \begin_layout Itemize
1189 \begin_inset Flex MenuItem
1192 \begin_layout Plain Layout
1193 ツール\SpecialChar menuseparator
1199 を使用して環境構成を行うと,\SpecialChar LyX
1201 \begin_inset Flex Code
1204 \begin_layout Plain Layout
1210 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1211 \begin_inset Flex Code
1214 \begin_layout Plain Layout
1221 \begin_inset Flex MenuItem
1224 \begin_layout Plain Layout
1225 文書\SpecialChar menuseparator
1231 ダイアログのクラス一覧に表示されるようになることを意味します.
1234 \begin_layout Itemize
1235 たとえば,\SpecialChar LyX
1236 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1238 \begin_inset Flex Code
1241 \begin_layout Plain Layout
1248 \begin_inset Flex MenuItem
1251 \begin_layout Plain Layout
1257 メニュー項目はこれらを開くようになります!
1260 \begin_layout Section
1265 \begin_layout Standard
1266 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1267 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1268 どのディレクトリを使用するか指定するのです.
1271 \begin_layout Standard
1274 \begin_inset Flex Code
1277 \begin_layout Plain Layout
1287 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1289 \begin_inset Flex Code
1292 \begin_layout Plain Layout
1298 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1299 は,初めて\SpecialChar LyX
1301 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1302 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1303 \begin_inset Flex Code
1306 \begin_layout Plain Layout
1312 を特定の値に設定しても,全く同じ効果があります.
1315 \begin_layout Standard
1316 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1317 \begin_inset Flex Code
1320 \begin_layout Plain Layout
1326 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1327 クを使用してください.\SpecialChar LyX
1328 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1329 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1330 \begin_inset Flex Code
1333 \begin_layout Plain Layout
1340 \begin_inset Flex MenuItem
1343 \begin_layout Plain Layout
1344 ツール\SpecialChar menuseparator
1350 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1353 \begin_layout Chapter
1357 \begin_layout Standard
1366 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1369 \begin_layout Section
1371 \begin_inset CommandInset label
1380 \begin_layout Standard
1381 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
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 menuseparator
1404 \begin_inset Flex MenuItem
1407 \begin_layout Plain Layout
1408 新規\SpecialChar ldots
1414 ボタンを押して,登録する新しい形式を定義してください.
1415 \begin_inset Flex MenuItem
1418 \begin_layout Plain Layout
1424 フィールドは,GUI中で形式を認識するために用いられる名称です.
1425 \begin_inset Flex MenuItem
1428 \begin_layout Plain Layout
1434 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1435 \begin_inset Flex MenuItem
1438 \begin_layout Plain Layout
1445 \begin_inset Flex Ruby
1448 \begin_layout Plain Layout
1450 \begin_inset Argument post:1
1453 \begin_layout Plain Layout
1465 \begin_inset Flex MenuItem
1468 \begin_layout Plain Layout
1475 \begin_inset Flex MenuItem
1478 \begin_layout Plain Layout
1479 表示\SpecialChar menuseparator
1488 \begin_layout Standard
1490 \begin_inset Flex MenuItem
1493 \begin_layout Plain Layout
1500 \begin_inset Flex MenuItem
1503 \begin_layout Plain Layout
1509 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1510 \begin_inset Flex MenuItem
1513 \begin_layout Plain Layout
1519 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1520 いることができます.この閲覧プログラムは,\SpecialChar LyX
1522 \begin_inset Flex MenuItem
1525 \begin_layout Plain Layout
1531 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1532 \begin_inset Flex MenuItem
1535 \begin_layout Plain Layout
1544 \begin_layout Standard
1546 \begin_inset Flex MenuItem
1549 \begin_layout Plain Layout
1555 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1557 \begin_inset CommandInset href
1560 target "http://www.iana.org/assignments/media-types/"
1565 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1567 \begin_inset CommandInset href
1569 name "freedesktop.org"
1570 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1575 で指定されているMIME型拡張表を使用しています.
1578 \begin_layout Standard
1579 \begin_inset Flex MenuItem
1582 \begin_layout Plain Layout
1588 オプションは,\SpecialChar LyX
1589 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1590 \begin_inset CommandInset ref
1597 \begin_inset Flex MenuItem
1600 \begin_layout Plain Layout
1601 ファイル\SpecialChar menuseparator
1608 \begin_inset Flex MenuItem
1611 \begin_layout Plain Layout
1617 footlabel Label color for footnotす.
1618 \begin_inset Flex Code
1621 \begin_layout Plain Layout
1627 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1628 \begin_inset Flex Code
1631 \begin_layout Plain Layout
1637 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1640 \begin_layout Standard
1641 \begin_inset Flex MenuItem
1644 \begin_layout Plain Layout
1650 オプションは,\SpecialChar LyX
1651 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1652 \begin_inset Flex MenuItem
1655 \begin_layout Plain Layout
1661 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1662 \begin_inset Flex MenuItem
1665 \begin_layout Plain Layout
1672 \begin_inset Flex MenuItem
1675 \begin_layout Plain Layout
1682 \begin_inset Flex MenuItem
1685 \begin_layout Plain Layout
1692 \begin_inset Flex MenuItem
1695 \begin_layout Plain Layout
1701 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1702 \begin_inset Flex MenuItem
1705 \begin_layout Plain Layout
1712 \begin_inset Flex MenuItem
1715 \begin_layout Plain Layout
1722 \begin_inset Flex MenuItem
1725 \begin_layout Plain Layout
1731 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1732 \begin_inset Flex MenuItem
1735 \begin_layout Plain Layout
1742 \begin_inset Flex MenuItem
1745 \begin_layout Plain Layout
1754 \begin_layout Section
1758 \begin_layout Standard
1759 形式の変換はすべて,\SpecialChar LyX
1760 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1764 \begin_layout Plain Layout
1765 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1771 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1774 \begin_layout Standard
1775 複写子の定義においては,以下の8つの変数を用いることができます.
1778 \begin_layout Labeling
1779 \labelwidthstring 00.00.0000
1780 \begin_inset Flex Code
1783 \begin_layout Plain Layout
1791 \begin_inset Flex MenuItem
1794 \begin_layout Plain Layout
1803 \begin_layout Labeling
1804 \labelwidthstring 00.00.0000
1805 \begin_inset Flex Code
1808 \begin_layout Plain Layout
1817 \begin_layout Labeling
1818 \labelwidthstring 00.00.0000
1819 \begin_inset Flex Code
1822 \begin_layout Plain Layout
1831 \begin_layout Labeling
1832 \labelwidthstring 00.00.0000
1833 \begin_inset Flex Code
1836 \begin_layout Plain Layout
1843 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Flex Code
1851 \begin_layout Plain Layout
1861 \begin_layout Labeling
1862 \labelwidthstring 00.00.0000
1863 \begin_inset Flex Code
1866 \begin_layout Plain Layout
1872 処理されている元の\SpecialChar LyX
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Flex Code
1881 \begin_layout Plain Layout
1888 ファイルのファイル名(ディレクトリパスなし)
1891 \begin_layout Labeling
1892 \labelwidthstring 00.00.0000
1893 \begin_inset Flex Code
1896 \begin_layout Plain Layout
1906 \begin_layout Standard
1907 最後の変数は,\SpecialChar LaTeX
1914 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1917 \begin_layout Standard
1918 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1919 \begin_inset Flex Code
1922 \begin_layout Plain Layout
1928 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1931 \begin_layout Standard
1932 \begin_inset listings
1936 \begin_layout Plain Layout
1941 \begin_layout Plain Layout
1946 \begin_layout Plain Layout
1948 TOFILE=`basename $2`
1951 \begin_layout Plain Layout
1953 DescriptionE /home/you/pdf/$TOFILE
1959 \begin_inset Flex Code
1962 \begin_layout Plain Layout
1963 /home/you/.lyx/scripts/pdfcopier.sh
1968 のような,自身のローカル\SpecialChar LyX
1969 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1970 \begin_inset Flex MenuItem
1973 \begin_layout Plain Layout
1974 ツール\SpecialChar menuseparator
1981 \begin_inset Flex MenuItem
1984 \begin_layout Plain Layout
1985 ファイル処理\SpecialChar menuseparator
1992 \begin_inset Flex MenuItem
1995 \begin_layout Plain Layout
2001 形式—あるいは他のPDF形式のうちどれか—を選択し,
2002 \begin_inset Flex MenuItem
2005 \begin_layout Plain Layout
2012 \begin_inset Flex Code
2015 \begin_layout Plain Layout
2016 pdfcopier.sh $$i $$o
2024 \begin_layout Standard
2025 複写子は,\SpecialChar LyX
2026 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
2028 \begin_inset Flex MenuItem
2031 \begin_layout Plain Layout
2038 \begin_inset Flex MenuItem
2041 \begin_layout Plain Layout
2043 \begin_inset space ~
2051 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2052 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2053 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2057 \begin_layout Plain Layout
2058 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2059 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2060 \begin_inset Flex MenuItem
2063 \begin_layout Plain Layout
2070 \begin_inset Flex MenuItem
2073 \begin_layout Plain Layout
2074 /path/to/filename.lyx
2080 \begin_inset Flex MenuItem
2083 \begin_layout Plain Layout
2084 /path/to/filename.html.LyXconv
2098 \begin_layout Section
2100 \begin_inset CommandInset label
2109 \begin_layout Standard
2110 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2111 \begin_inset Flex MenuItem
2114 \begin_layout Plain Layout
2115 ツール\SpecialChar menuseparator
2116 設定\SpecialChar menuseparator
2117 ファイル処理\SpecialChar menuseparator
2126 \begin_layout Standard
2127 新規に変換子を定義するには,ドロップダウンリストから
2128 \begin_inset Flex MenuItem
2131 \begin_layout Plain Layout
2138 \begin_inset Flex MenuItem
2141 \begin_layout Plain Layout
2147 を選択し,変換に必要なコマンドを入力してから
2148 \begin_inset Flex MenuItem
2151 \begin_layout Plain Layout
2157 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2160 \begin_layout Labeling
2161 \labelwidthstring 00.00.0000
2162 \begin_inset Flex Code
2165 \begin_layout Plain Layout
2175 \begin_layout Labeling
2176 \labelwidthstring 00.00.0000
2177 \begin_inset Flex Code
2180 \begin_layout Plain Layout
2189 \begin_layout Labeling
2190 \labelwidthstring 00.00.0000
2191 \begin_inset Flex Code
2194 \begin_layout Plain Layout
2203 \begin_layout Labeling
2204 \labelwidthstring 00.00.0000
2205 \begin_inset Flex Code
2208 \begin_layout Plain Layout
2214 入力ファイルのベースファイル名(拡張子をとった部分)
2217 \begin_layout Labeling
2218 \labelwidthstring 00.00.0000
2219 \begin_inset Flex Code
2222 \begin_layout Plain Layout
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Flex Code
2236 \begin_layout Plain Layout
2242 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2245 \begin_layout Labeling
2246 \labelwidthstring 00.00.0000
2247 \begin_inset Flex Code
2250 \begin_layout Plain Layout
2259 \begin_layout Standard
2260 \begin_inset Flex MenuItem
2263 \begin_layout Plain Layout
2269 フィールドには,以下のフラグをコンマで区切って入力することができます.
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Flex Code
2277 \begin_layout Plain Layout
2283 この変換子が\SpecialChar LaTeX
2284 の一種を実行することを示します.これによって,\SpecialChar LyX
2286 エラーログに記録を残せるようになります.
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Flex Code
2294 \begin_layout Plain Layout
2300 変換に\SpecialChar LaTeX
2302 \begin_inset Flex MenuItem
2305 \begin_layout Plain Layout
2314 \begin_layout Labeling
2315 \labelwidthstring 00.00.0000
2316 \begin_inset Flex Code
2319 \begin_layout Plain Layout
2326 \begin_inset Quotes erd
2330 \begin_inset Quotes erd
2333 なファイル,つまり\SpecialChar LyX
2334 が書き出す\SpecialChar LaTeX
2336 \begin_inset Flex Code
2339 \begin_layout Plain Layout
2345 のない\SpecialChar LaTeX
2349 \begin_layout Labeling
2350 \labelwidthstring 00.00.0000
2351 \begin_inset Flex Code
2354 \begin_layout Plain Layout
2363 \begin_layout Standard
2365 \begin_inset Flex MenuItem
2368 \begin_layout Plain Layout
2370 \begin_inset space ~
2374 \begin_inset space ~
2382 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2385 \begin_layout Labeling
2386 \labelwidthstring 00.00.0000
2387 \begin_inset Flex Code
2390 \begin_layout Plain Layout
2397 \begin_inset Flex Code
2400 \begin_layout Plain Layout
2406 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2407 \begin_inset Flex Code
2410 \begin_layout Plain Layout
2411 script < infile.out > infile.log
2416 の形で実行されるようになります.引数には
2417 \begin_inset Flex Code
2420 \begin_layout Plain Layout
2429 \begin_layout Labeling
2430 \labelwidthstring 00.00.0000
2431 \begin_inset Flex Code
2434 \begin_layout Plain Layout
2440 これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2441 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2443 \begin_inset Flex Code
2446 \begin_layout Plain Layout
2452 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2453 \begin_inset Newline newline
2456 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2459 \begin_layout Labeling
2460 \labelwidthstring 00.00.0000
2461 \begin_inset Flex Code
2464 \begin_layout Plain Layout
2471 \begin_inset Flex Code
2474 \begin_layout Plain Layout
2480 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2483 \begin_layout Standard
2484 最後の3つは,\SpecialChar LyX
2485 とともに導入される変換子には,現在いずれも使用されておりません.
2488 \begin_layout Standard
2489 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2490 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2492 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2493 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2494 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2495 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2496 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2497 設定は,\SpecialChar LaTeX
2498 からPDFへ変換するのに,以下の3つの方法を
2502 \begin_layout Enumerate
2504 \begin_inset Flex MenuItem
2507 \begin_layout Plain Layout
2516 \begin_layout Enumerate
2517 (DVIと)PostScriptを経由して
2518 \begin_inset Flex MenuItem
2521 \begin_layout Plain Layout
2530 \begin_layout Enumerate
2532 \begin_inset Flex MenuItem
2535 \begin_layout Plain Layout
2544 \begin_layout Enumerate
2546 \begin_inset Flex MenuItem
2549 \begin_layout Plain Layout
2559 \begin_layout Enumerate
2561 \begin_inset Flex MenuItem
2564 \begin_layout Plain Layout
2574 \begin_layout Standard
2576 \begin_inset CommandInset ref
2578 reference "sec:ファイル形式"
2582 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2583 \begin_inset Flex MenuItem
2586 \begin_layout Plain Layout
2593 \begin_inset Flex MenuItem
2596 \begin_layout Plain Layout
2603 \begin_inset Flex MenuItem
2606 \begin_layout Plain Layout
2613 \begin_inset Flex MenuItem
2616 \begin_layout Plain Layout
2623 \begin_inset Flex MenuItem
2626 \begin_layout Plain Layout
2633 \begin_inset Flex MenuItem
2636 \begin_layout Plain Layout
2643 \begin_inset Flex MenuItem
2646 \begin_layout Plain Layout
2653 \begin_inset Flex MenuItem
2656 \begin_layout Plain Layout
2664 \begin_inset Flex MenuItem
2667 \begin_layout Plain Layout
2674 \begin_inset Flex MenuItem
2677 \begin_layout Plain Layout
2684 用\SpecialChar softhyphen
2685 ) と命名された形式が定義されていて,すべて共通の拡張子
2686 \begin_inset Flex MenuItem
2689 \begin_layout Plain Layout
2695 を持ち,上記で言及した各変換方法に対応しています.
2698 \begin_layout Chapter
2701 \begin_inset CommandInset label
2703 name "cha:LyXの各国語対応"
2710 \begin_layout Standard
2712 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2713 は30言語の翻訳を提供しています.選択した言語は,使用する
2717 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2718 \begin_inset Flex Code
2721 \begin_layout Plain Layout
2730 \begin_layout Standard
2731 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2732 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2733 \begin_inset Flex Ruby
2736 \begin_layout Plain Layout
2738 \begin_inset Argument post:1
2741 \begin_layout Plain Layout
2752 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2753 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2757 \begin_layout Plain Layout
2758 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2759 コミュニティに報いるたいへん素晴らしい方法です!
2765 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2768 \begin_layout Section
2773 \begin_layout Subsection
2774 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2775 \begin_inset Argument 1
2778 \begin_layout Plain Layout
2787 \begin_layout Standard
2790 \begin_inset Flex Code
2793 \begin_layout Plain Layout
2799 ライブラリを使用します.\SpecialChar LyX
2800 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2801 \begin_inset Flex Code
2804 \begin_layout Plain Layout
2810 ファイルが必要です.このファイルが利用可能であれば,そこから
2811 \begin_inset Flex Code
2814 \begin_layout Plain Layout
2821 \begin_inset Flex Code
2824 \begin_layout Plain Layout
2830 ファイルをインストールしなくてはなりません.この全過程は,GNU
2831 \begin_inset Flex Code
2834 \begin_layout Plain Layout
2840 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2842 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2843 開発者メーリングリストにメールを送ってください.
2846 \begin_layout Standard
2847 要約すれば,以下のように行います(xxは言語コードを表します).
2850 \begin_layout Itemize
2852 ソースコードをチェックアウトしてください(
2853 \begin_inset CommandInset href
2856 target "http://www.lyx.org/HowToUseGIT"
2864 \begin_layout Itemize
2865 \begin_inset Flex Code
2868 \begin_layout Plain Layout
2875 \begin_inset Flex Code
2878 \begin_layout Plain Layout
2885 \begin_inset Flex Code
2888 \begin_layout Plain Layout
2895 \begin_inset Flex Code
2898 \begin_layout Plain Layout
2904 がどこにもない場合には,コンソールからそのディレクトリで
2905 \begin_inset Flex Code
2908 \begin_layout Plain Layout
2914 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2917 \begin_layout Itemize
2918 \begin_inset Flex Code
2921 \begin_layout Plain Layout
2931 \begin_layout Plain Layout
2932 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2940 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2945 \begin_inset Flex Code
2948 \begin_layout Plain Layout
2954 ファイルを編集するための「モード」があります,第
2955 \begin_inset Flex URL
2958 \begin_layout Plain Layout
2960 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2972 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2973 \begin_inset Flex Ruby
2976 \begin_layout Plain Layout
2978 \begin_inset Argument post:1
2981 \begin_layout Plain Layout
2992 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2993 \begin_inset Flex Code
2996 \begin_layout Plain Layout
3002 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
3005 \begin_layout Standard
3006 もし,あなたがこれを自身のためだけに行っているのであれば,
3009 \begin_layout Itemize
3010 \begin_inset Flex Code
3013 \begin_layout Plain Layout
3020 \begin_inset Flex Code
3023 \begin_layout Plain Layout
3024 msgfmt -o xx.mo < xx.po
3032 \begin_layout Itemize
3034 \begin_inset Flex Code
3037 \begin_layout Plain Layout
3043 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3044 \begin_inset Flex Code
3047 \begin_layout Plain Layout
3054 \begin_inset Flex Code
3057 \begin_layout Plain Layout
3058 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3066 \begin_layout Standard
3068 \begin_inset Flex Code
3071 \begin_layout Plain Layout
3077 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3078 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3079 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3083 \begin_layout Subsubsection
3087 \begin_layout Standard
3088 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3089 \begin_inset Flex Code
3092 \begin_layout Plain Layout
3098 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3099 \begin_inset Flex Code
3102 \begin_layout Plain Layout
3109 \begin_inset Flex Code
3112 \begin_layout Plain Layout
3119 \begin_inset Flex Code
3122 \begin_layout Plain Layout
3123 To[[as in 'From format x to format y']]
3129 \begin_inset Flex Code
3132 \begin_layout Plain Layout
3133 To[[as in 'From page x to page y']]
3138 としなくてはなりません.これによって,これら2つの
3139 \begin_inset Flex Code
3142 \begin_layout Plain Layout
3149 \begin_inset Flex Code
3152 \begin_layout Plain Layout
3158 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3161 \begin_layout Standard
3162 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3164 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3167 \begin_layout Subsection
3171 \begin_layout Standard
3173 \begin_inset Flex MenuItem
3176 \begin_layout Plain Layout
3182 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3186 \begin_layout Plain Layout
3187 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3192 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3193 はこれを自動的に使用します.\SpecialChar LyX
3195 \begin_inset Flex Code
3198 \begin_layout Plain Layout
3199 LyXDir/doc/xx/DocName.lyx
3205 \begin_inset Flex Code
3208 \begin_layout Plain Layout
3214 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3215 \begin_inset Flex Code
3218 \begin_layout Plain Layout
3224 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3228 \begin_layout Itemize
3230 \begin_inset CommandInset href
3232 name "http://www.lyx.org/Translation"
3233 target "http://www.lyx.org/Translation"
3238 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3239 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3242 \begin_layout Standard
3243 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3246 \begin_layout Itemize
3247 文書化チームに所属してください!そのための情報が
3248 \begin_inset Flex Code
3251 \begin_layout Plain Layout
3258 \begin_inset Flex MenuItem
3261 \begin_layout Plain Layout
3262 ヘルプ\SpecialChar menuseparator
3269 \begin_inset Flex Code
3272 \begin_layout Plain Layout
3281 \begin_layout Itemize
3282 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3283 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3285 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3290 \begin_layout Itemize
3291 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3292 \begin_inset Flex Code
3295 \begin_layout Plain Layout
3301 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3302 \begin_inset Newline newline
3306 \begin_inset Note Greyedout
3309 \begin_layout Plain Layout
3314 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3315 ことに注意してください.最も良い方法は,LyXツリーをgit (
3316 \begin_inset Flex URL
3319 \begin_layout Plain Layout
3321 http://www.lyx.org/HowToUseGIT
3326 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3334 \begin_layout Itemize
3336 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3337 \begin_inset CommandInset href
3339 name "http://www.lyx.org/trac/timeline"
3340 target "http://www.lyx.org/trac/timeline"
3345 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3348 \begin_layout Standard
3349 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3352 \begin_layout Standard
3353 \begin_inset Branch OutDated
3357 \begin_layout Section
3358 International Keyboard Support
3361 \begin_layout Standard
3364 [Editor's Note: The following section is by
3372 It needs to be fixed to conform to the new Documentation Style sheet and
3373 to make use of the new v1.0 features.
3374 The whole thing also needs to be merged with the section following it.-jw
3375 It may also be badly out of date.-rh (2008)]
3378 \begin_layout Subsection
3379 Defining Own Keymaps: Keymap File Format
3382 \begin_layout Standard
3383 Let's look at a keyboard definition file a little closer.
3384 It is a plain text file defining
3387 \begin_layout Itemize
3388 key-to-key or key-to-string translations
3391 \begin_layout Itemize
3395 \begin_layout Itemize
3396 dead keys exceptions
3399 \begin_layout Standard
3400 To define key-to-key or key-to-string translation, use this command:
3403 \begin_layout Quotation
3404 \begin_inset Flex Code
3407 \begin_layout Plain Layout
3416 \begin_inset Flex Code
3419 \begin_layout Plain Layout
3428 \begin_layout Standard
3430 \begin_inset Flex Code
3433 \begin_layout Plain Layout
3439 is the key to be translated and
3440 \begin_inset Flex Code
3443 \begin_layout Plain Layout
3449 is the string to be inserted into the document.
3450 To define dead keys, use:
3453 \begin_layout Quotation
3454 \begin_inset Flex Code
3457 \begin_layout Plain Layout
3466 \begin_inset Flex Code
3469 \begin_layout Plain Layout
3478 \begin_layout Standard
3480 \begin_inset Flex Code
3483 \begin_layout Plain Layout
3489 is a keyboard key and
3490 \begin_inset Flex Code
3493 \begin_layout Plain Layout
3500 The following dead keys are supported (shortcut name is in parentheses):
3503 \begin_layout Quotation
3507 \begin_inset space \hfill{}
3513 \begin_layout Quotation
3515 \begin_inset space \hfill{}
3523 \begin_layout Quotation
3525 \begin_inset space \hfill{}
3533 \begin_layout Quotation
3535 \begin_inset space \hfill{}
3543 \begin_layout Quotation
3545 \begin_inset space \hfill{}
3553 \begin_layout Quotation
3555 \begin_inset space \hfill{}
3562 \begin_layout Plain Layout
3574 \begin_layout Quotation
3576 \begin_inset space \hfill{}
3584 \begin_layout Quotation
3586 \begin_inset space \hfill{}
3593 \begin_layout Plain Layout
3605 \begin_layout Quotation
3607 \begin_inset space \hfill{}
3615 \begin_layout Quotation
3617 \begin_inset space \hfill{}
3625 \begin_layout Quotation
3627 \begin_inset space \hfill{}
3634 \begin_layout Plain Layout
3646 \begin_layout Quotation
3648 \begin_inset space \hfill{}
3659 \begin_layout Plain Layout
3671 \begin_layout Quotation
3673 \begin_inset space \hfill{}
3681 \begin_layout Quotation
3682 hungarian umlaut (hug)
3683 \begin_inset space \hfill{}
3691 \begin_layout Quotation
3693 \begin_inset space \hfill{}
3701 \begin_layout Quotation
3703 \begin_inset space \hfill{}
3714 \begin_layout Plain Layout
3726 \begin_layout Standard
3727 Since in many international keyboards there are exceptions to what some
3728 dead keys should do, you can define them using
3731 \begin_layout Quotation
3732 \begin_inset Flex Code
3735 \begin_layout Plain Layout
3743 deadkey key outstring
3746 \begin_layout Standard
3747 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3751 \begin_layout Quotation
3752 \begin_inset Flex Code
3755 \begin_layout Plain Layout
3768 \begin_layout Standard
3769 to make it work correctly.
3770 Also, you have to define as exceptions dead keys over i and j, to remove
3771 the dot from them before inserting an accent mark.
3772 I will change this when the time comes, but so far I haven't had time.
3775 \begin_layout Standard
3776 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3779 \begin_inset Flex Code
3782 \begin_layout Plain Layout
3788 have different meaning.
3790 \begin_inset Flex Code
3793 \begin_layout Plain Layout
3799 marks comments, quotes start and end \SpecialChar LaTeX
3801 To enter quote, you'll need to use
3802 \begin_inset Flex Code
3805 \begin_layout Plain Layout
3814 \begin_inset Flex Code
3817 \begin_layout Plain Layout
3824 \begin_inset Flex Code
3827 \begin_layout Plain Layout
3838 \begin_layout Standard
3839 If you make a keyboard description file that works for your language, please
3840 mail it to me, so I can include it in the next keymap distribution.
3843 \begin_layout Standard
3844 More keywords will be supported in keymap configuration file in future,
3848 \begin_layout Itemize
3849 \begin_inset Flex Code
3852 \begin_layout Plain Layout
3863 \begin_inset space \hfill{}
3867 \begin_inset Flex Code
3870 \begin_layout Plain Layout
3879 \begin_layout Itemize
3880 \begin_inset Flex Code
3883 \begin_layout Plain Layout
3894 \begin_inset space \hfill{}
3898 \begin_inset Flex Code
3901 \begin_layout Plain Layout
3907 an external keymap translation program
3910 \begin_layout Standard
3911 Also, it should look into
3912 \begin_inset Flex Code
3915 \begin_layout Plain Layout
3921 file for defaults, too (for example, a
3922 \begin_inset Flex Code
3925 \begin_layout Plain Layout
3933 option to include default keyboard).
3941 \begin_layout Section
3943 \begin_inset CommandInset label
3952 \begin_layout Standard
3953 \begin_inset Note Note
3956 \begin_layout Plain Layout
3957 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3960 \begin_layout Plain Layout
3969 \begin_layout Standard
3971 \begin_inset Flex Code
3974 \begin_layout Plain Layout
3981 \begin_inset Flex Code
3984 \begin_layout Plain Layout
3990 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3993 \begin_layout Subsection
3997 \begin_layout Standard
3998 \begin_inset Flex Code
4001 \begin_layout Plain Layout
4007 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
4008 \begin_inset Flex Code
4011 \begin_layout Plain Layout
4017 ファイルは,以下の各項で説明するように,
4018 \begin_inset Flex Code
4021 \begin_layout Plain Layout
4028 \begin_inset Flex Code
4031 \begin_layout Plain Layout
4038 \begin_inset Flex Code
4041 \begin_layout Plain Layout
4048 \begin_inset Flex Code
4051 \begin_layout Plain Layout
4060 \begin_layout Labeling
4061 \labelwidthstring 00.00.0000
4062 \begin_inset Flex Code
4065 \begin_layout Plain Layout
4074 \begin_layout LyX-Code
4089 \begin_layout Standard
4102 中では,二重引用符(")とバックスラッシュ(
4106 )を付けてエスケープしなくてはならないことに注意してください.
4109 \begin_layout Standard
4110 \begin_inset Flex MenuItem
4113 \begin_layout Plain Layout
4120 \begin_inset Flex MenuItem
4123 \begin_layout Plain Layout
4130 \begin_inset Flex MenuItem
4133 \begin_layout Plain Layout
4142 \begin_layout LyX-Code
4148 \begin_layout Standard
4152 \begin_layout Labeling
4153 \labelwidthstring 00.00.0000
4154 \begin_inset Flex Code
4157 \begin_layout Plain Layout
4166 \begin_layout LyX-Code
4175 \begin_layout Standard
4184 のアクセントとするものです.これはデッドキー
4188 \begin_layout Plain Layout
4193 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4197 のようなウムラウトのついた文字は,このようにして出すことができます.
4205 \begin_layout Standard
4218 の後に許可文字ではないその文字が出力として表示されます.
4219 \begin_inset Flex MenuItem
4222 \begin_layout Plain Layout
4233 \begin_inset Flex MenuItem
4236 \begin_layout Plain Layout
4242 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4245 \begin_layout Standard
4246 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4249 \begin_layout LyX-Code
4252 kmod ' acute aeiouAEIOU
4255 \begin_layout Labeling
4256 \labelwidthstring 00.00.0000
4257 \begin_inset Flex Code
4260 \begin_layout Plain Layout
4269 \begin_layout LyX-Code
4278 \begin_layout Standard
4292 \begin_inset Flex Code
4295 \begin_layout Plain Layout
4303 宣言で打鍵キーを既に割り当てられてなくてはならず,
4315 の集合に属していてはなりません.こうして
4328 \begin_inset Flex Code
4331 \begin_layout Plain Layout
4358 \begin_inset Flex Code
4361 \begin_layout Plain Layout
4372 \begin_layout Standard
4373 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4376 \begin_layout LyX-Code
4390 \begin_layout Labeling
4391 \labelwidthstring 00.00.0000
4392 \begin_inset Flex Code
4395 \begin_layout Plain Layout
4404 \begin_layout LyX-Code
4413 \begin_layout Standard
4414 これはなかなか難解になってきます.これは
4439 \begin_inset Flex Code
4442 \begin_layout Plain Layout
4450 コマンドで設定されていなくてはなりません.
4453 \begin_layout Standard
4454 \begin_inset Flex Code
4457 \begin_layout Plain Layout
4466 \begin_layout LyX-Code
4469 kmod ; acute aeioyvhAEIOYVH
4473 kcomb acute umlaut iyIY
4476 \begin_layout Standard
4478 \begin_inset Flex MenuItem
4481 \begin_layout Plain Layout
4488 \begin_inset Flex Code
4491 \begin_layout Plain Layout
4501 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4502 \begin_inset Flex MenuItem
4505 \begin_layout Plain Layout
4512 \begin_inset Flex Code
4515 \begin_layout Plain Layout
4526 \begin_layout Subsection
4530 \begin_layout Standard
4531 \begin_inset Flex Code
4534 \begin_layout Plain Layout
4541 \begin_inset Flex Code
4544 \begin_layout Plain Layout
4550 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4552 \begin_inset Flex Code
4555 \begin_layout Plain Layout
4562 \begin_inset Flex Code
4565 \begin_layout Plain Layout
4574 \begin_layout Standard
4576 \begin_inset Flex Code
4579 \begin_layout Plain Layout
4588 \begin_layout LyX-Code
4601 \begin_layout Standard
4603 \begin_inset Flex MenuItem
4606 \begin_layout Plain Layout
4614 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4617 \begin_layout LyX-Code
4625 \begin_layout Standard
4631 \begin_inset Flex Code
4634 \begin_layout Plain Layout
4643 \begin_inset Flex Code
4646 \begin_layout Plain Layout
4652 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4653 \begin_inset Flex Code
4656 \begin_layout Plain Layout
4665 \begin_layout LyX-Code
4677 \begin_inset Newline newline
4693 \begin_layout Standard
4694 という例があります.\SpecialChar LyX
4695 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4696 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4699 \begin_layout Subsection
4703 \begin_layout Standard
4704 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4705 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4708 \begin_layout Standard
4709 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4710 \begin_inset Flex Code
4713 \begin_layout Plain Layout
4720 \begin_inset Flex MenuItem
4723 \begin_layout Plain Layout
4730 \begin_inset Flex MenuItem
4733 \begin_layout Plain Layout
4739 キー)を,\SpecialChar LyX
4741 \begin_inset Flex Code
4744 \begin_layout Plain Layout
4751 \begin_inset Flex MenuItem
4754 \begin_layout Plain Layout
4760 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4761 \begin_inset Flex MenuItem
4764 \begin_layout Plain Layout
4770 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4771 \begin_inset Flex MenuItem
4774 \begin_layout Plain Layout
4781 \begin_inset Flex MenuItem
4784 \begin_layout Plain Layout
4790 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4791 はビープを鳴らして文句を付けます.デッドキーの後に
4792 \begin_inset Flex MenuItem
4795 \begin_layout Plain Layout
4801 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4803 \begin_inset Flex MenuItem
4806 \begin_layout Plain Layout
4812 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4815 \begin_layout Standard
4816 デッドキーを割り当てるのによく用いられる方法は,
4817 \begin_inset Flex MenuItem
4820 \begin_layout Plain Layout
4827 \begin_inset Flex MenuItem
4830 \begin_layout Plain Layout
4837 \begin_inset Flex MenuItem
4840 \begin_layout Plain Layout
4847 \begin_inset Flex MenuItem
4850 \begin_layout Plain Layout
4857 \begin_inset Flex MenuItem
4860 \begin_layout Plain Layout
4867 \begin_inset Flex MenuItem
4870 \begin_layout Plain Layout
4876 」のようなアクセントと一緒に用いる方法です.また,
4877 \begin_inset Flex Code
4880 \begin_layout Plain Layout
4887 \begin_inset Flex Code
4890 \begin_layout Plain Layout
4897 \begin_inset Flex Code
4900 \begin_layout Plain Layout
4907 \begin_inset Flex Code
4910 \begin_layout Plain Layout
4917 \begin_inset Flex MenuItem
4920 \begin_layout Plain Layout
4926 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4927 \begin_inset Flex Code
4930 \begin_layout Plain Layout
4936 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4941 \begin_layout Plain Layout
4947 \begin_inset Flex Code
4950 \begin_layout Plain Layout
4957 \begin_inset Flex Code
4960 \begin_layout Plain Layout
4967 \begin_inset Flex MenuItem
4970 \begin_layout Plain Layout
4972 \begin_inset space ~
4981 \begin_inset Flex Code
4984 \begin_layout Plain Layout
4991 \begin_inset Flex Code
4994 \begin_layout Plain Layout
5001 \begin_inset Flex MenuItem
5004 \begin_layout Plain Layout
5006 \begin_inset space ~
5015 \begin_inset Flex MenuItem
5018 \begin_layout Plain Layout
5020 \begin_inset space ~
5028 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5034 \begin_inset Flex Code
5037 \begin_layout Plain Layout
5044 \begin_inset Flex MenuItem
5047 \begin_layout Plain Layout
5053 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5060 \begin_inset Flex Code
5063 \begin_layout Plain Layout
5069 の項をご覧ください.ここには完備した一覧があります.
5072 \begin_layout Subsection
5076 \begin_layout Standard
5077 \begin_inset Flex MenuItem
5080 \begin_layout Plain Layout
5081 ツール\SpecialChar menuseparator
5087 ダイアログを使えば,\SpecialChar LyX
5088 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5091 \begin_layout Chapter
5092 文書クラス・レイアウト・ひな型の新規導入
5093 \begin_inset CommandInset label
5100 \begin_inset Argument 1
5103 \begin_layout Plain Layout
5112 \begin_layout Standard
5113 この章では,新しく\SpecialChar LyX
5114 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5115 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5119 \begin_layout Standard
5122 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5123 は,La\SpecialChar TeX
5125 云うことです.実際のところ,\SpecialChar LyX
5126 の観点からは,\SpecialChar LaTeX
5128 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5129 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5130 は,とくに重要な形式ですが,\SpecialChar LyX
5132 について持っている情報のほとんどは,実はプログラム本体には含まれて
5137 \begin_layout Plain Layout
5138 過度に複雑なため,\SpecialChar LyX
5139 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5145 \begin_inset Flex Code
5148 \begin_layout Plain Layout
5154 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5155 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5160 \begin_layout Standard
5161 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5162 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5163 構成体・DocBook構成体・XHTML構成体との
5164 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5166 \begin_inset Flex Code
5169 \begin_layout Plain Layout
5175 について知っていることのほとんど総ては,
5176 \begin_inset Flex Code
5179 \begin_layout Plain Layout
5185 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5187 \begin_inset Flex Code
5190 \begin_layout Plain Layout
5197 \begin_inset Flex Code
5200 \begin_layout Plain Layout
5206 や,文書クラス用の他のレイアウトファイルに取り込まれている
5207 \begin_inset Flex Code
5210 \begin_layout Plain Layout
5216 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5217 \begin_inset Flex Code
5220 \begin_layout Plain Layout
5226 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5227 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5229 \begin_inset Flex Code
5232 \begin_layout Plain Layout
5239 \begin_inset Flex Code
5242 \begin_layout Plain Layout
5248 ファイルを取り込んでいるだけのものです.
5251 \begin_layout Standard
5252 しかしながら,\SpecialChar LyX
5254 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5256 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5257 ます.ある段落様式を\SpecialChar LaTeX
5258 に翻訳する仕方を\SpecialChar LyX
5259 に指示することは,その表示の仕方を\SpecialChar LyX
5260 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5262 式をどのように\SpecialChar LaTeX
5263 に翻訳するかを\SpecialChar LyX
5264 に指示するものではありません(ましてや\SpecialChar LaTeX
5265 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5268 \begin_inset space ~
5272 にどのように翻訳するかを\SpecialChar LyX
5274 \begin_inset space ~
5277 それをどのように表示するかを\SpecialChar LyX
5278 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5281 \begin_layout Standard
5282 もちろん,\SpecialChar LyX
5283 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5284 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5285 力するにあたって,当該段落を\SpecialChar LyX
5286 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5287 が内部的に行うことと,外部的に行う物事の間の区
5288 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5289 \begin_inset CommandInset ref
5291 reference "sec:XHTML出力のタグ"
5298 \begin_layout Section
5299 新しい\SpecialChar LaTeX
5303 \begin_layout Standard
5304 頒布版によっては,\SpecialChar LyX
5305 で使いたい\SpecialChar LaTeX
5306 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5307 パッケージである,Foil\SpecialChar TeX
5308 がないかもしれません.\SpecialChar TeX
5309 Live(2008年以降)やMiK\SpecialChar TeX
5310 のような最近の\SpecialChar LaTeX
5311 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5312 ースが用意されています.たとえば,MiK\SpecialChar TeX
5314 \begin_inset space ~
5317 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5321 \begin_layout Standard
5322 お使いの\SpecialChar LaTeX
5323 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5327 \begin_layout Enumerate
5328 \begin_inset CommandInset href
5331 target "http://www.ctan.org/"
5336 などから欲しいパッケージを入手してください.
5339 \begin_layout Enumerate
5341 \begin_inset Flex Code
5344 \begin_layout Plain Layout
5350 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5351 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5352 \begin_inset Flex Code
5355 \begin_layout Plain Layout
5361 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5362 パッケージは圧縮されていないので,このステップは飛ばすこ
5366 \begin_layout Enumerate
5367 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5371 \begin_layout Enumerate
5372 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5375 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5376 \begin_inset Flex Code
5379 \begin_layout Plain Layout
5389 \begin_layout Plain Layout
5395 \begin_inset Flex Code
5398 \begin_layout Plain Layout
5404 を実行してその場所を見つけることもできます.
5409 .「ローカル」\SpecialChar TeX
5411 \begin_inset Flex Code
5414 \begin_layout Plain Layout
5421 \begin_inset Flex Code
5424 \begin_layout Plain Layout
5425 /usr/local/share/texmf/
5431 \begin_inset Flex Code
5434 \begin_layout Plain Layout
5435 /usr/local/texlive/XXXX
5440 (XXXXは導入されている\SpecialChar TeX
5441 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5443 \begin_inset Flex Code
5446 \begin_layout Plain Layout
5453 \begin_inset Flex Code
5456 \begin_layout Plain Layout
5463 \begin_inset Flex Code
5466 \begin_layout Plain Layout
5472 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5473 ,「ユーザー」ツリーにはこのような制限はありません.
5474 \begin_inset Newline newline
5477 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5478 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5481 \begin_layout Enumerate
5482 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5484 \begin_inset Flex Code
5487 \begin_layout Plain Layout
5497 に移動します(MiK\SpecialChar TeX
5499 \begin_inset Flex Code
5502 \begin_layout Plain Layout
5518 \begin_layout Plain Layout
5519 これは,英語版でのみ正しいパスになっています.独語版では
5520 \begin_inset Flex Code
5523 \begin_layout Plain Layout
5541 \begin_inset Flex Code
5544 \begin_layout Plain Layout
5550 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5552 ことを行います.たとえばMiK\SpecialChar TeX
5554 \begin_inset space ~
5558 \begin_inset Newline newline
5562 \begin_inset Flex Code
5565 \begin_layout Plain Layout
5568 Documents and Settings
5580 \begin_inset Newline newline
5584 \begin_inset Phantom HPhantom
5587 \begin_layout Plain Layout
5598 \begin_inset Flex Code
5601 \begin_layout Plain Layout
5614 \begin_inset Newline newline
5618 \begin_inset Newline newline
5622 \begin_inset Flex Code
5625 \begin_layout Plain Layout
5648 \begin_inset Newline newline
5655 \begin_layout Enumerate
5656 ここまで来れば,あとは\SpecialChar LaTeX
5657 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5662 \begin_layout Enumerate
5665 \begin_inset Flex Code
5668 \begin_layout Plain Layout
5674 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5677 \begin_layout Enumerate
5679 では,パッケージを全ユーザー用に導入した場合には,「Settings
5680 \begin_inset space ~
5683 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5688 \begin_layout Enumerate
5689 最後に,\SpecialChar LyX
5690 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5691 からツール\SpecialChar menuseparator
5692 環境構成メニューを実行して,\SpecialChar LyX
5696 \begin_layout Standard
5697 これでパッケージが導入されました.この例では,文書クラス
5698 \begin_inset Flex Code
5701 \begin_layout Plain Layout
5703 \begin_inset space ~
5712 \begin_inset Flex MenuItem
5715 \begin_layout Plain Layout
5716 文書\SpecialChar menuseparator
5717 設定\SpecialChar menuseparator
5726 \begin_layout Standard
5727 \begin_inset Flex MenuItem
5730 \begin_layout Plain Layout
5731 文書\SpecialChar menuseparator
5732 設定\SpecialChar menuseparator
5738 メニューに列挙されてもいない\SpecialChar LaTeX
5739 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5742 \begin_layout Section
5746 \begin_layout Standard
5747 この節は,レイアウト情報を含む各種\SpecialChar LyX
5748 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5750 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5751 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5754 \begin_layout Standard
5755 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5756 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5757 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5758 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5759 を出していますので,気軽に質問を投げかけてみてください.
5762 \begin_layout Standard
5763 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5764 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5765 文書クラス用の\SpecialChar LyX
5767 他の人々にも有用なモジュールをお書きになった場合には,
5768 \begin_inset CommandInset href
5770 name "LyX Wikiのレイアウトに関する節"
5771 target "http://wiki.lyx.org/Layouts/Layouts"
5777 開発者メーリングリストに投稿して,\SpecialChar LyX
5778 頒布版に同梱することができるようにしてください
5782 \begin_layout Plain Layout
5784 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5785 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5793 \begin_layout Subsection
5795 \begin_inset CommandInset label
5797 name "subsec:レイアウトモジュール"
5804 \begin_layout Standard
5805 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5807 \begin_inset Flex Code
5810 \begin_layout Plain Layout
5816 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5817 に提供するものを指します.しかしながら,\SpecialChar LyX
5819 \begin_inset Flex Code
5822 \begin_layout Plain Layout
5832 にも含めることができます.レイアウトが\SpecialChar LaTeX
5833 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5835 \begin_inset Flex Code
5838 \begin_layout Plain Layout
5844 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5845 イアウトで使用できるという意味において,一面,
5846 \begin_inset Flex Code
5849 \begin_layout Plain Layout
5859 \begin_layout Plain Layout
5860 これらは任意の拡張子をつけることができますが,慣習的に
5861 \begin_inset Flex Code
5864 \begin_layout Plain Layout
5876 \begin_inset Flex Code
5879 \begin_layout Plain Layout
5885 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5886 \begin_inset Flex MenuItem
5889 \begin_layout Plain Layout
5890 文書\SpecialChar menuseparator
5899 \begin_layout Standard
5900 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5901 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5904 \begin_layout Standard
5906 \begin_inset Flex Code
5909 \begin_layout Plain Layout
5915 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5916 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5917 \begin_inset Flex MenuItem
5920 \begin_layout Plain Layout
5921 文書\SpecialChar menuseparator
5927 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5929 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5933 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5935 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5936 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5940 \begin_layout Subsubsection
5944 \begin_layout Standard
5946 に於けるモジュールは,\SpecialChar LaTeX
5947 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5948 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5951 \begin_layout Standard
5954 文書\SpecialChar menuseparator
5955 設定\SpecialChar menuseparator
5958 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5959 は,その文書専属のモジュールだと考えることができます.したがって,
5960 \begin_inset Flex Code
5963 \begin_layout Plain Layout
5969 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5973 \begin_layout Standard
5974 \begin_inset Flex Code
5977 \begin_layout Plain Layout
5983 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5984 ているかどうかが検証されます.すると,\SpecialChar LyX
5985 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5987 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5990 \begin_layout Standard
5991 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5992 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5995 \begin_layout Subsection
5996 \begin_inset Flex MenuItem
5999 \begin_layout Plain Layout
6008 \begin_layout Standard
6009 新しく\SpecialChar LaTeX
6010 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
6012 \begin_inset Flex Code
6015 \begin_layout Plain Layout
6022 \begin_inset Flex Code
6025 \begin_layout Plain Layout
6031 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6032 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6036 \begin_layout Standard
6037 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6038 \begin_inset Flex MenuItem
6041 \begin_layout Plain Layout
6048 \begin_inset Flex MenuItem
6051 \begin_layout Plain Layout
6060 \begin_layout Standard
6061 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6065 \begin_layout Plain Layout
6066 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6068 \begin_inset Flex MenuItem
6071 \begin_layout Plain Layout
6077 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6085 \begin_layout LyX-Code
6086 cp report.layout ~/.lyx/layouts/myclass.layout
6089 \begin_layout Standard
6091 \begin_inset Flex Code
6094 \begin_layout Plain Layout
6103 \begin_layout LyX-Code
6106 DeclareLaTeXClass{report}
6109 \begin_layout Standard
6113 \begin_layout LyX-Code
6116 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6119 \begin_layout Standard
6120 のように変更してください.それから,ファイル冒頭辺りに
6123 \begin_layout LyX-Code
6125 \begin_inset Newline newline
6131 \begin_inset Newline newline
6137 \begin_layout Standard
6141 \begin_layout Standard
6144 \begin_inset Flex MenuItem
6147 \begin_layout Plain Layout
6148 ツール\SpecialChar menuseparator
6154 を選択してください.それから\SpecialChar LyX
6155 を再起動し,新規文書を作成してみてください.すると,
6156 \begin_inset Flex MenuItem
6159 \begin_layout Plain Layout
6160 文書\SpecialChar menuseparator
6167 \begin_inset Flex MenuItem
6170 \begin_layout Plain Layout
6176 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6177 \begin_inset Flex Code
6180 \begin_layout Plain Layout
6186 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6187 \begin_inset Flex Code
6190 \begin_layout Plain Layout
6196 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6197 \begin_inset Flex Code
6200 \begin_layout Plain Layout
6207 \begin_inset Flex Code
6210 \begin_layout Plain Layout
6216 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6219 \begin_layout LyX-Code
6223 \begin_layout LyX-Code
6227 \begin_layout LyX-Code
6231 \begin_layout LyX-Code
6235 \begin_layout LyX-Code
6239 \begin_layout Standard
6240 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6243 \begin_layout Standard
6244 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6246 \begin_inset CommandInset ref
6248 reference "sec:テキストクラス"
6255 \begin_layout Standard
6257 \begin_inset Flex Code
6260 \begin_layout Plain Layout
6266 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6267 う.最も簡単なモジュールの例としては,以下のようなものになります.
6270 \begin_layout LyX-Code
6273 DeclareLyXModule{My Package}
6276 \begin_layout LyX-Code
6280 \begin_layout LyX-Code
6281 #Support for mypkg.sty.
6284 \begin_layout LyX-Code
6286 \begin_inset Newline newline
6292 \begin_layout LyX-Code
6294 \begin_inset Newline newline
6300 \begin_layout LyX-Code
6302 \begin_inset Newline newline
6308 \begin_inset Newline newline
6314 \begin_layout Standard
6315 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6316 \begin_inset CommandInset ref
6318 reference "sec:テキストクラス"
6325 \begin_layout Subsection
6326 \begin_inset Flex MenuItem
6329 \begin_layout Plain Layout
6338 \begin_layout Standard
6339 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6340 \begin_inset Flex MenuItem
6343 \begin_layout Plain Layout
6349 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6352 \begin_layout LyX-Code
6358 \begin_layout Standard
6359 という行がないかどうか探してください.もしこれがあれば,
6360 \begin_inset Flex Code
6363 \begin_layout Plain Layout
6364 Declare\SpecialChar LaTeX
6370 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6371 \begin_inset Flex Code
6374 \begin_layout Plain Layout
6381 \begin_inset Flex Code
6384 \begin_layout Plain Layout
6391 \begin_inset Flex Code
6394 \begin_layout Plain Layout
6395 Declare\SpecialChar LaTeX
6405 \begin_layout Plain Layout
6407 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6408 \begin_inset Flex Code
6411 \begin_layout Plain Layout
6425 \begin_layout LyX-Code
6428 DeclareLaTeXClass[thesis,book]{thesis}
6431 \begin_layout Standard
6432 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6434 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6438 \begin_layout Subsection
6440 \begin_inset CommandInset label
6449 \begin_layout Standard
6450 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6451 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6452 添付のひな型をあれこれ見てみるのもよいでしょう.
6455 \begin_layout Standard
6456 ひな型は,通常の文書と同様,\SpecialChar LyX
6457 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6458 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6459 \begin_inset Flex Code
6462 \begin_layout Plain Layout
6471 \begin_inset Flex Code
6474 \begin_layout Plain Layout
6482 などの対応するコマンドをひな型\SpecialChar LyX
6483 ファイルから取り除く必要があります.これは,たとえば
6484 \begin_inset Flex Code
6487 \begin_layout Plain Layout
6494 \begin_inset Flex Code
6497 \begin_layout Plain Layout
6503 のような,どの軽いテキストエディタでも行うことができます.
6506 \begin_layout Standard
6508 \begin_inset Flex Code
6511 \begin_layout Plain Layout
6518 \begin_inset Flex Code
6521 \begin_layout Plain Layout
6527 から使用したいものを同じ場所にコピーし,
6528 \begin_inset Flex MenuItem
6531 \begin_layout Plain Layout
6532 ツール\SpecialChar menuseparator
6533 設定\SpecialChar menuseparator
6539 ダイアログのひな型パスを再定義してください.
6542 \begin_layout Standard
6544 \begin_inset Flex Code
6547 \begin_layout Plain Layout
6553 があることに注意してください.このひな型は,
6554 \begin_inset Flex MenuItem
6557 \begin_layout Plain Layout
6558 ファイル\SpecialChar menuseparator
6564 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6565 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6567 \begin_inset Flex MenuItem
6570 \begin_layout Plain Layout
6579 \begin_layout Subsection
6583 \begin_layout Standard
6584 レイアウトファイルの書式は,\SpecialChar LyX
6585 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6586 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6589 \begin_inset Flex Code
6592 \begin_layout Plain Layout
6594 Dir/scripts/layout2layout.py
6599 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6601 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6604 \begin_layout Enumerate
6606 \begin_inset Flex Code
6609 \begin_layout Plain Layout
6616 \begin_inset Flex Code
6619 \begin_layout Plain Layout
6628 \begin_layout Enumerate
6630 \begin_inset Newline newline
6634 \begin_inset Flex Code
6637 \begin_layout Plain Layout
6638 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6644 \begin_inset Newline newline
6648 \begin_inset Flex Code
6651 \begin_layout Plain Layout
6661 \begin_layout Standard
6662 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6665 \begin_layout Subsection
6668 \begin_inset CommandInset label
6670 name "subsec:Cite-Engine-Files"
6677 \begin_layout Standard
6680 A specific form of layout files are the so-called
6681 \begin_inset Flex Code
6684 \begin_layout Plain Layout
6692 files that are located in the
6693 \begin_inset Flex Code
6696 \begin_layout Plain Layout
6705 Their purpose is to define the specifics of \SpecialChar LaTeX
6706 packages aimed at bibliography
6719 , but also the way how normal Bib\SpecialChar TeX
6720 citations (without additional packages)
6721 are handled in \SpecialChar LyX
6722 is defined in such a file.
6726 \begin_layout Standard
6729 More specifically, it is defined which packages \SpecialChar LyX
6730 needs to load, which citation
6731 commands are available, how these are to be displayed in \SpecialChar LyX
6733 the dialogs, the context menus) as well as in the XHTML and plain text
6735 Furthermore, the files specify available style variants (author-year, numerical
6736 , etc.) and their specifics.
6737 The cite engine files are also used to generate the options that are available
6740 Document\SpecialChar menuseparator
6741 Settings\SpecialChar ldots
6742 \SpecialChar menuseparator
6743 Bibliography\SpecialChar menuseparator
6749 \begin_layout Standard
6752 Even though a cite engine file is essentially a normal layout file that
6753 could theoretically include any layout information, it usually primarily
6754 includes some specific parameters such as
6755 \begin_inset Flex Code
6758 \begin_layout Plain Layout
6767 \begin_inset Flex Code
6770 \begin_layout Plain Layout
6779 \begin_inset Flex Code
6782 \begin_layout Plain Layout
6791 \begin_inset Flex Code
6794 \begin_layout Plain Layout
6803 The syntax of the latter two is described in
6804 \begin_inset CommandInset ref
6806 reference "subsec:Citation-engine-description"
6814 \begin_inset CommandInset ref
6816 reference "subsec:Citation-format-description"
6820 , as well as in the files themselves.
6823 \begin_layout Section
6824 \begin_inset CommandInset label
6833 \begin_layout Standard
6834 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6835 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6836 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6837 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6838 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6841 \begin_layout Standard
6842 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6843 \begin_inset Flex Code
6846 \begin_layout Plain Layout
6853 \begin_inset Flex Code
6856 \begin_layout Plain Layout
6863 \begin_inset Flex Code
6866 \begin_layout Plain Layout
6872 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6873 \begin_inset Flex Code
6876 \begin_layout Plain Layout
6884 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6885 \begin_inset Flex Code
6888 \begin_layout Plain Layout
6899 \begin_layout Subsection
6903 \begin_layout Standard
6905 \begin_inset Flex Code
6908 \begin_layout Plain Layout
6914 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6915 \begin_inset Flex Code
6918 \begin_layout Plain Layout
6924 ファイルは,以下のような行で始めなくてはならないのです.
6927 \begin_layout LyX-Code
6930 #% Do not delete the line below; configure depends on this
6933 \begin_layout LyX-Code
6938 DeclareLaTeXClass{Article (Standard Class)}
6941 \begin_layout LyX-Code
6946 DeclareCategory{Articles}
6949 \begin_layout Standard
6950 2行目と3行目は,\SpecialChar LyX
6951 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6953 \begin_inset Flex Code
6956 \begin_layout Plain Layout
6963 \begin_inset Flex Code
6966 \begin_layout Plain Layout
6972 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6973 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6975 \begin_inset Flex Code
6978 \begin_layout Plain Layout
6985 \begin_inset Flex Code
6988 \begin_layout Plain Layout
6994 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6996 \begin_inset Flex Code
6999 \begin_layout Plain Layout
7005 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
7006 \begin_inset Flex MenuItem
7009 \begin_layout Plain Layout
7010 文書\SpecialChar menuseparator
7016 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
7017 \begin_inset Flex MenuItem
7020 \begin_layout Plain Layout
7021 文書\SpecialChar menuseparator
7027 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
7028 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
7029 rized」グループに属することになります.
7032 \begin_layout Standard
7034 \begin_inset Flex Code
7037 \begin_layout Plain Layout
7043 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
7044 \begin_inset Flex Code
7047 \begin_layout Plain Layout
7053 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
7056 \begin_layout LyX-Code
7059 #% Do not delete the line below; configure depends on this
7062 \begin_layout LyX-Code
7067 DeclareLaTeXClass[article]{article (with My Own Headings)}
7070 \begin_layout LyX-Code
7075 DeclareCategory{Articles}
7078 \begin_layout Standard
7079 これは,\SpecialChar LaTeX
7081 \begin_inset Flex Code
7084 \begin_layout Plain Layout
7090 に関連づけられ,「Article (with My Own Headings)」と表示される,
7091 \begin_inset Flex Code
7094 \begin_layout Plain Layout
7100 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
7103 \begin_layout LyX-Code
7106 #% Do not delete the line below; configure depends on this
7109 \begin_layout LyX-Code
7114 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7117 \begin_layout LyX-Code
7122 DeclareCategory{Articles}
7125 \begin_layout Standard
7127 \begin_inset Flex Code
7130 \begin_layout Plain Layout
7136 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7139 \begin_layout LyX-Code
7142 #% Do not delete the line below; configure depends on this
7145 \begin_layout LyX-Code
7150 DeclareDocBookClass[article]{SGML (DocBook article)}
7153 \begin_layout LyX-Code
7158 DeclareCategory{Articles}
7161 \begin_layout Standard
7162 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7165 \begin_layout Standard
7166 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7169 \begin_layout LyX-Code
7174 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7177 \begin_layout LyX-Code
7185 \begin_layout Standard
7186 ここで「クラス」は,\SpecialChar LaTeX
7187 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7189 名がレイアウトファイル名と同じであると仮定します.
7192 \begin_layout Standard
7193 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7194 \begin_inset Flex Code
7197 \begin_layout Plain Layout
7204 \begin_inset Flex Code
7207 \begin_layout Plain Layout
7214 \begin_inset Flex MenuItem
7217 \begin_layout Plain Layout
7218 ツール\SpecialChar menuseparator
7224 を実行し,\SpecialChar LyX
7225 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7228 \begin_layout Standard
7229 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7230 を再起動したりすることなく,その変更を確認することができます
7234 \begin_layout Plain Layout
7235 第1.6版よりも前の\SpecialChar LyX
7236 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7238 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7245 \begin_inset Flex MenuItem
7248 \begin_layout Plain Layout
7254 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7255 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7258 \begin_layout Standard
7264 \begin_inset Flex MenuItem
7267 \begin_layout Plain Layout
7273 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7277 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7281 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7283 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7287 \begin_layout Plain Layout
7288 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7289 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7290 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7297 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7301 \begin_layout Plain Layout
7302 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7310 \begin_layout Subsection
7314 \begin_layout Standard
7315 モジュールは,以下のような行で始まらなくてはなりません.
7318 \begin_layout LyX-Code
7321 DeclareLyXModule[endnotes.sty]{Endnotes}
7324 \begin_layout Standard
7325 波括弧内に入っている必須引数はモジュール名で,これは
7326 \begin_inset Flex MenuItem
7329 \begin_layout Plain Layout
7330 文書\SpecialChar menuseparator
7336 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7337 パッケージをすべて宣言します.また,非必須引数として,
7338 \begin_inset Flex Code
7341 \begin_layout Plain Layout
7348 \begin_inset Flex Code
7351 \begin_layout Plain Layout
7358 \begin_inset Flex Code
7361 \begin_layout Plain Layout
7367 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7370 \begin_layout Standard
7371 それから,以下のようなモジュール宣言を行います
7375 \begin_layout Plain Layout
7376 モジュールを\SpecialChar LyX
7377 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7385 \begin_layout LyX-Code
7389 \begin_layout LyX-Code
7390 #Adds an endnote command, in addition to footnotes.
7394 \begin_layout LyX-Code
7395 #You will need to add
7397 theendnotes in TeX code where you
7400 \begin_layout LyX-Code
7401 #want the endnotes to appear.
7405 \begin_layout LyX-Code
7409 \begin_layout LyX-Code
7410 #Requires: somemodule | othermodule
7413 \begin_layout LyX-Code
7414 #Excludes: badmodule
7417 \begin_layout Standard
7418 ここで説明(Description)は,
7419 \begin_inset Flex MenuItem
7422 \begin_layout Plain Layout
7423 文書\SpecialChar menuseparator
7429 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7430 \begin_inset Flex Code
7433 \begin_layout Plain Layout
7439 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7440 \begin_inset Flex Code
7443 \begin_layout Plain Layout
7449 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7450 イプ記号「|」で区切らなくてはなりません.
7451 \begin_inset Flex Code
7454 \begin_layout Plain Layout
7460 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7461 \begin_inset Flex Code
7464 \begin_layout Plain Layout
7474 が使用されていればよいということです.同様に,
7475 \begin_inset Flex Code
7478 \begin_layout Plain Layout
7484 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7485 \begin_inset Flex Code
7488 \begin_layout Plain Layout
7494 拡張子を除いたファイル名で認識されることに注意してください.つまり
7495 \begin_inset Flex Code
7498 \begin_layout Plain Layout
7505 \begin_inset Flex Code
7508 \begin_layout Plain Layout
7517 \begin_layout Subsection
7520 The CiteEngine file declaration
7523 \begin_layout Standard
7526 A cite engine file must begin with a line like the following:
7529 \begin_layout LyX-Code
7534 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
7537 \begin_layout Standard
7540 The mandatory argument, in curly brackets, is the name of the module, as
7542 \begin_inset Flex Noun
7545 \begin_layout Plain Layout
7548 Document\SpecialChar menuseparator
7549 Settings\SpecialChar menuseparator
7556 The argument in square brackets is optional: It declares any \SpecialChar LaTeX
7558 on which the cite engine depends.
7561 \begin_layout Standard
7564 The cite engine declaration should then be followed by lines like the following
7568 \begin_layout Plain Layout
7571 Preferably in English if the module should be published with \SpecialChar LyX
7573 This description will appear in the list of messages to be translated and
7574 will be thus translated with the next interface update.
7582 \begin_layout LyX-Code
7588 \begin_layout LyX-Code
7591 # Biblatex supports many author-year and numerical styles.
7594 \begin_layout LyX-Code
7597 # It is mainly aimed at the Humanities.
7601 \begin_layout LyX-Code
7604 # customizable, fully localized and provides many features
7607 \begin_layout LyX-Code
7610 # that are not possible with BibTeX.
7611 The use of 'biber' as
7614 \begin_layout LyX-Code
7617 # bibliography processor is advised.
7620 \begin_layout LyX-Code
7626 \begin_layout Standard
7629 The description is used in
7630 \begin_inset Flex Noun
7633 \begin_layout Plain Layout
7636 Document\SpecialChar menuseparator
7637 Settings\SpecialChar menuseparator
7643 to provide the user with information about the cite engine.
7648 \begin_layout Subsection
7652 \begin_layout Standard
7653 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7656 \begin_layout Description
7657 \begin_inset Flex Code
7660 \begin_layout Plain Layout
7667 \begin_inset Flex Code
7670 \begin_layout Plain Layout
7679 \begin_layout Standard
7680 このタグは\SpecialChar LyX
7682 \begin_inset space ~
7685 1.4.0で導入されました.\SpecialChar LyX
7687 \begin_inset space ~
7690 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7691 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7692 の各版は,旧版の\SpecialChar LyX
7694 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7697 \begin_layout Subsection
7698 \begin_inset CommandInset label
7700 name "subsec:汎用テキストクラスパラメータ"
7707 \begin_layout Standard
7708 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7709 \begin_inset Flex Code
7712 \begin_layout Plain Layout
7718 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7722 .モジュールには,すべてのレイアウトタグを使用することができます).
7725 \begin_layout Description
7726 \begin_inset Flex Code
7729 \begin_layout Plain Layout
7735 この文書クラスがXHTMLに出力されるときに,
7736 \begin_inset Flex Code
7739 \begin_layout Plain Layout
7745 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7746 \begin_inset Flex Code
7749 \begin_layout Plain Layout
7755 に出力するものであれば,何でも使用することができます.「
7756 \begin_inset Flex Code
7759 \begin_layout Plain Layout
7768 \begin_layout Description
7769 \begin_inset Flex Code
7772 \begin_layout Plain Layout
7778 文書プリアンブルに書き加えられる情報です.「
7779 \begin_inset Flex Code
7782 \begin_layout Plain Layout
7791 \begin_layout Description
7794 \begin_inset Flex Code
7797 \begin_layout Plain Layout
7805 Defines the possibilities for displaying citation references.
7807 \begin_inset CommandInset ref
7809 reference "subsec:Citation-engine-description"
7818 \begin_inset Quotes eld
7822 \begin_inset Flex Code
7825 \begin_layout Plain Layout
7834 \begin_inset Quotes erd
7838 Primarily used in cite engine files (see
7839 \begin_inset CommandInset ref
7841 reference "subsec:Cite-Engine-Files"
7851 \begin_layout Description
7852 \begin_inset Flex Code
7855 \begin_layout Plain Layout
7861 書誌情報の表示に使う書式を定義します.詳細については,
7862 \begin_inset CommandInset ref
7864 reference "subsec:引用書式指定"
7869 \begin_inset Flex Code
7872 \begin_layout Plain Layout
7880 Primarily used in cite engine files (see
7881 \begin_inset CommandInset ref
7883 reference "subsec:Cite-Engine-Files"
7893 \begin_layout Description
7896 \begin_inset Flex Code
7899 \begin_layout Plain Layout
7908 \begin_inset Flex Code
7911 \begin_layout Plain Layout
7921 \begin_inset Flex Code
7924 \begin_layout Plain Layout
7932 ] Determines whether
7936 or Bib\SpecialChar TeX
7937 is used to generate a Bibliography.
7938 Primarily used in cite engine files (see
7939 \begin_inset CommandInset ref
7941 reference "subsec:Cite-Engine-Files"
7951 \begin_layout Description
7952 \begin_inset Flex Code
7955 \begin_layout Plain Layout
7961 文書クラスがサポートする様々な大域オプションを記します.説明は,
7962 \begin_inset CommandInset ref
7964 reference "subsec:ClassOptions"
7969 \begin_inset Flex Code
7972 \begin_layout Plain Layout
7981 \begin_layout Description
7982 \begin_inset Flex Code
7985 \begin_layout Plain Layout
7992 \begin_inset Flex Code
7995 \begin_layout Plain Layout
8004 \begin_inset space \thinspace{}
8008 \begin_inset Flex Code
8011 \begin_layout Plain Layout
8017 ] 文書クラスが既定で1段組か2段組かを指定します.
8018 \begin_inset Flex MenuItem
8021 \begin_layout Plain Layout
8022 文書\SpecialChar menuseparator
8031 \begin_layout Description
8032 \begin_inset Flex Code
8035 \begin_layout Plain Layout
8042 \begin_inset Flex Code
8045 \begin_layout Plain Layout
8051 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
8052 \begin_inset Flex Code
8055 \begin_layout Plain Layout
8062 \begin_inset Newline newline
8066 \begin_inset CommandInset ref
8068 reference "subsec:カウンタ"
8075 \begin_layout Description
8076 \begin_inset Flex Code
8079 \begin_layout Plain Layout
8085 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
8086 \begin_inset CommandInset ref
8088 reference "subsec:フォント指定"
8093 \begin_inset Flex Code
8096 \begin_layout Plain Layout
8105 \begin_layout Description
8106 \begin_inset Flex Code
8109 \begin_layout Plain Layout
8116 \begin_inset Flex Code
8119 \begin_layout Plain Layout
8125 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
8126 \begin_inset Flex Code
8129 \begin_layout Plain Layout
8135 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
8136 既存の文書にこの文書クラスが選択したときのみ該当します).
8139 \begin_layout Description
8140 \begin_inset Flex Code
8143 \begin_layout Plain Layout
8150 \begin_inset Flex Code
8153 \begin_layout Plain Layout
8163 これは新規段落に割り当てられる様式であり,通常は
8164 \begin_inset Flex MenuItem
8167 \begin_layout Plain Layout
8173 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
8176 \begin_layout Description
8177 \begin_inset Flex Code
8180 \begin_layout Plain Layout
8187 \begin_inset Flex Code
8190 \begin_layout Plain Layout
8197 \begin_inset Flex Code
8200 \begin_layout Plain Layout
8206 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
8208 \begin_inset Flex Code
8211 \begin_layout Plain Layout
8217 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
8221 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
8222 \begin_inset CommandInset ref
8224 reference "subsec:レイアウトモジュール"
8231 \begin_layout Description
8232 \begin_inset Flex Code
8235 \begin_layout Plain Layout
8242 \begin_inset CommandInset ref
8244 reference "subsec:フロート"
8249 \begin_inset Flex Code
8252 \begin_layout Plain Layout
8261 \begin_layout Description
8262 \begin_inset Flex Code
8265 \begin_layout Plain Layout
8271 この文書クラスがXHTMLに出力されるときに,
8272 \begin_inset Flex Code
8275 \begin_layout Plain Layout
8281 ブロックに出力される情報です.これより前に出現した
8282 \begin_inset Flex Code
8285 \begin_layout Plain Layout
8292 \begin_inset Flex Code
8295 \begin_layout Plain Layout
8301 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
8302 \begin_inset Flex Code
8305 \begin_layout Plain Layout
8312 \begin_inset Flex Code
8315 \begin_layout Plain Layout
8324 \begin_layout Description
8325 \begin_inset Flex Code
8328 \begin_layout Plain Layout
8335 \begin_inset Flex Code
8338 \begin_layout Plain Layout
8344 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
8345 .これを指定しない場合には,\SpecialChar LyX
8346 はどのレイアウトを使用するべきか,解析しようと試みます.
8349 \begin_layout Description
8350 \begin_inset Flex Code
8353 \begin_layout Plain Layout
8360 \begin_inset Flex Code
8363 \begin_layout Plain Layout
8369 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
8370 \begin_inset Flex Code
8373 \begin_layout Plain Layout
8380 \begin_inset Newline newline
8384 \begin_inset CommandInset ref
8386 reference "subsec:カウンタ"
8393 \begin_layout Description
8394 \begin_inset Flex Code
8397 \begin_layout Plain Layout
8404 \begin_inset Flex Code
8407 \begin_layout Plain Layout
8413 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8414 \begin_inset Flex Code
8417 \begin_layout Plain Layout
8426 \begin_layout Description
8427 \begin_inset Flex Code
8430 \begin_layout Plain Layout
8437 \begin_inset Flex Code
8440 \begin_layout Plain Layout
8450 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8452 \begin_inset Flex Code
8455 \begin_layout Plain Layout
8464 \begin_layout Description
8465 \begin_inset Flex Code
8468 \begin_layout Plain Layout
8475 \begin_inset Flex Code
8478 \begin_layout Plain Layout
8488 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8489 \begin_inset Flex Code
8492 \begin_layout Plain Layout
8499 \begin_inset Newline newline
8503 \begin_inset CommandInset ref
8505 reference "subsec:任意設定差込枠"
8512 \begin_layout Description
8513 \begin_inset Flex Code
8516 \begin_layout Plain Layout
8523 \begin_inset Flex Code
8526 \begin_layout Plain Layout
8532 ] 画面上の左余白の幅を指示する文字列.例:「
8533 \begin_inset Flex Code
8536 \begin_layout Plain Layout
8542 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8545 \begin_layout Description
8548 \begin_inset Flex Code
8551 \begin_layout Plain Layout
8560 \begin_inset Flex Code
8563 \begin_layout Plain Layout
8571 ] An integer that determines the maximal number of names displayed in an
8572 author-year citation before the citation switches to
8573 \begin_inset Quotes eld
8577 \begin_inset Quotes erd
8581 Primarily used in cite engine files (see
8582 \begin_inset CommandInset ref
8584 reference "subsec:Cite-Engine-Files"
8594 \begin_layout Description
8595 \begin_inset Flex Code
8598 \begin_layout Plain Layout
8605 \begin_inset Flex Code
8608 \begin_layout Plain Layout
8614 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8617 \begin_layout Description
8618 \begin_inset Flex Code
8621 \begin_layout Plain Layout
8628 \begin_inset Flex Code
8631 \begin_layout Plain Layout
8637 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8640 \begin_layout Description
8641 \begin_inset Flex Code
8644 \begin_layout Plain Layout
8651 \begin_inset Flex Code
8654 \begin_layout Plain Layout
8660 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8663 \begin_layout Description
8666 \begin_inset Flex Code
8669 \begin_layout Plain Layout
8678 \begin_inset Flex Code
8681 \begin_layout Plain Layout
8690 \begin_inset Flex Code
8693 \begin_layout Plain Layout
8701 ] Define a new table of contents with type
8702 \begin_inset Flex Code
8705 \begin_layout Plain Layout
8714 \begin_inset Flex Code
8717 \begin_layout Plain Layout
8726 See also the AddToToc commands.
8729 \begin_layout Description
8730 \begin_inset Flex Code
8733 \begin_layout Plain Layout
8740 \begin_inset Flex Code
8743 \begin_layout Plain Layout
8749 ] このクラスによって生成されるファイル形式を示す文字列(
8753 ダイアログで定義される形のもの).おもに,
8754 \begin_inset Flex Code
8757 \begin_layout Plain Layout
8764 \begin_inset Flex Code
8767 \begin_layout Plain Layout
8773 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8774 \begin_inset Flex Code
8777 \begin_layout Plain Layout
8783 パラメーターに遭遇したときには,この文字列は,「
8784 \begin_inset Flex Code
8787 \begin_layout Plain Layout
8794 \begin_inset Flex Code
8797 \begin_layout Plain Layout
8808 \begin_layout Description
8809 \begin_inset Flex Code
8812 \begin_layout Plain Layout
8819 \begin_inset Flex Code
8822 \begin_layout Plain Layout
8833 \begin_inset Flex Code
8836 \begin_layout Plain Layout
8843 \begin_inset Flex Code
8846 \begin_layout Plain Layout
8852 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8855 \begin_layout Description
8856 \begin_inset Flex Code
8859 \begin_layout Plain Layout
8866 \begin_inset Flex Code
8869 \begin_layout Plain Layout
8876 \begin_inset Flex Code
8879 \begin_layout Plain Layout
8885 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8886 \begin_inset Flex Code
8889 \begin_layout Plain Layout
8890 PackageOptions natbib square
8896 \begin_inset Flex Code
8899 \begin_layout Plain Layout
8906 \begin_inset Flex Code
8909 \begin_layout Plain Layout
8915 オプションとともに読み込みます(\SpecialChar TeX
8917 \begin_inset Flex Code
8920 \begin_layout Plain Layout
8926 を読み込む前に,\SpecialChar LyX
8928 \begin_inset Flex Code
8931 \begin_layout Plain Layout
8934 PassOptionsToPackage{natbib}{square}
8942 \begin_layout Description
8943 \begin_inset Flex Code
8946 \begin_layout Plain Layout
8955 \begin_inset Flex Code
8958 \begin_layout Plain Layout
8967 \begin_inset Flex Code
8970 \begin_layout Plain Layout
8977 \begin_inset Flex Code
8980 \begin_layout Plain Layout
8987 \begin_inset Flex MenuItem
8990 \begin_layout Plain Layout
8991 文書\SpecialChar menuseparator
9000 \begin_layout Description
9001 \begin_inset Flex Code
9004 \begin_layout Plain Layout
9011 文書のプリアンブルを設定します.前に行った
9012 \begin_inset Flex Code
9015 \begin_layout Plain Layout
9022 \begin_inset Flex Code
9025 \begin_layout Plain Layout
9031 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
9032 \begin_inset Flex Code
9035 \begin_layout Plain Layout
9042 \begin_inset Flex Code
9045 \begin_layout Plain Layout
9054 \begin_layout Description
9055 \begin_inset Flex Code
9058 \begin_layout Plain Layout
9065 \begin_inset Flex Code
9068 \begin_layout Plain Layout
9075 \begin_inset Flex Code
9078 \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 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
9107 \begin_inset Flex Code
9110 \begin_layout Plain Layout
9117 \begin_inset Flex Code
9120 \begin_layout Plain Layout
9128 \begin_inset Flex Code
9131 \begin_layout Plain Layout
9138 \begin_inset Flex Code
9141 \begin_layout Plain Layout
9149 \begin_inset CommandInset ref
9151 reference "chap:関数一覧"
9158 \begin_layout Description
9159 \begin_inset Flex Code
9162 \begin_layout Plain Layout
9169 \begin_inset Flex Code
9172 \begin_layout Plain Layout
9179 \begin_inset Flex Code
9182 \begin_layout Plain Layout
9188 で表されているモジュールの機能を提供することを示し,
9189 \begin_inset Flex Code
9192 \begin_layout Plain Layout
9199 \begin_inset Flex Code
9202 \begin_layout Plain Layout
9208 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
9209 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
9212 \begin_layout Description
9213 \begin_inset Flex Code
9216 \begin_layout Plain Layout
9223 \begin_inset Flex Code
9226 \begin_layout Plain Layout
9233 \begin_inset Flex Code
9236 \begin_layout Plain Layout
9242 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
9244 \begin_inset CommandInset ref
9246 reference "chap:関数一覧"
9250 を参照).特定のオプションをとるパッケージを要求する場合,
9251 \begin_inset Flex Code
9254 \begin_layout Plain Layout
9263 \begin_layout Description
9264 \begin_inset Flex Code
9267 \begin_layout Plain Layout
9274 \begin_inset Flex Code
9277 \begin_layout Plain Layout
9283 ] 画面上の右余白の幅を指示する文字列.例:「
9284 \begin_inset Flex Code
9287 \begin_layout Plain Layout
9296 \begin_layout Description
9297 \begin_inset Flex Code
9300 \begin_layout Plain Layout
9307 \begin_inset Flex Code
9310 \begin_layout Plain Layout
9316 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
9318 \begin_inset Flex Code
9321 \begin_layout Plain Layout
9330 \begin_layout Description
9331 \begin_inset Flex Code
9334 \begin_layout Plain Layout
9343 \begin_inset Flex Code
9346 \begin_layout Plain Layout
9355 \begin_inset space \thinspace{}
9359 \begin_inset Flex Code
9362 \begin_layout Plain Layout
9368 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
9369 \begin_inset Flex MenuItem
9372 \begin_layout Plain Layout
9373 文書\SpecialChar menuseparator
9382 \begin_layout Description
9383 \begin_inset Flex Code
9386 \begin_layout Plain Layout
9393 \begin_inset Flex Code
9396 \begin_layout Plain Layout
9406 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
9407 \begin_inset Flex Code
9410 \begin_layout Plain Layout
9417 \begin_inset Newline newline
9421 \begin_inset CommandInset ref
9423 reference "subsec:段落様式-XHTML"
9430 \begin_layout Description
9431 \begin_inset Flex Code
9434 \begin_layout Plain Layout
9441 \begin_inset Flex Code
9444 \begin_layout Plain Layout
9451 \begin_inset Flex Code
9454 \begin_layout Plain Layout
9460 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
9462 \begin_inset Flex Code
9465 \begin_layout Plain Layout
9474 \begin_layout Description
9475 \begin_inset Flex Code
9478 \begin_layout Plain Layout
9485 \begin_inset Flex Code
9488 \begin_layout Plain Layout
9497 \begin_inset Flex Code
9500 \begin_layout Plain Layout
9506 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9507 \begin_inset Flex Code
9510 \begin_layout Plain Layout
9517 \begin_inset Flex Code
9520 \begin_layout Plain Layout
9522 \begin_inset space ~
9530 」が指定されている最後のレイアウトの後に,
9531 \begin_inset Flex Code
9534 \begin_layout Plain Layout
9540 で指定したマクロ名を挿入することを意味します.
9541 \begin_inset Flex Code
9544 \begin_layout Plain Layout
9551 \begin_inset Flex Code
9554 \begin_layout Plain Layout
9556 \begin_inset space ~
9565 \begin_inset Flex Code
9568 \begin_layout Plain Layout
9574 で指定した環境でくるむ場合に対応します.
9577 \begin_layout Description
9578 \begin_inset Flex Code
9581 \begin_layout Plain Layout
9588 \begin_inset Flex Code
9591 \begin_layout Plain Layout
9597 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9599 \begin_inset Flex Code
9602 \begin_layout Plain Layout
9611 \begin_layout Subsection
9612 \begin_inset Flex Code
9615 \begin_layout Plain Layout
9622 \begin_inset CommandInset label
9624 name "subsec:ClassOptions"
9631 \begin_layout Standard
9632 \begin_inset Flex Code
9635 \begin_layout Plain Layout
9644 \begin_layout Description
9645 \begin_inset Flex Code
9648 \begin_layout Plain Layout
9655 \begin_inset Flex Code
9658 \begin_layout Plain Layout
9664 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9665 \begin_inset Flex Code
9668 \begin_layout Plain Layout
9677 \begin_layout Description
9678 \begin_inset Flex Code
9681 \begin_layout Plain Layout
9687 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9688 \begin_inset Quotes eld
9691 -//OASIS//DTD DocBook V4.2//EN
9692 \begin_inset Quotes erd
9698 \begin_layout Description
9699 \begin_inset Flex Code
9702 \begin_layout Plain Layout
9709 \begin_inset Flex Code
9712 \begin_layout Plain Layout
9713 文字列="empty|plain|headings|fancy"
9719 \begin_inset Flex Code
9722 \begin_layout Plain Layout
9731 \begin_layout Description
9732 \begin_inset Flex Code
9735 \begin_layout Plain Layout
9742 \begin_inset Flex Code
9745 \begin_layout Plain Layout
9752 \begin_inset Flex Code
9755 \begin_layout Plain Layout
9763 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9766 \begin_layout Standard
9767 \begin_inset Flex Code
9770 \begin_layout Plain Layout
9777 \begin_inset Flex Code
9780 \begin_layout Plain Layout
9789 \begin_layout Subsection
9791 \begin_inset CommandInset label
9800 \begin_layout Standard
9805 \begin_layout Plain Layout
9806 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9814 \begin_layout LyX-Code
9821 \begin_layout LyX-Code
9825 \begin_layout LyX-Code
9829 \begin_layout Standard
9830 ここでは,以下のコマンドを使用することができます.
9833 \begin_layout Description
9836 \begin_inset Flex Code
9839 \begin_layout Plain Layout
9848 \begin_inset Flex Code
9851 \begin_layout Plain Layout
9859 =""] This paragraph will appear in the table of contents of the given type.
9860 An empty string disables.
9861 See also the OutlinerName and the IsTocCaption commands.
9865 \begin_layout Description
9866 \begin_inset Flex Code
9869 \begin_layout Plain Layout
9876 \begin_inset Flex Code
9879 \begin_layout Plain Layout
9884 , left, right, center
9892 \begin_layout Description
9893 \begin_inset Flex Code
9896 \begin_layout Plain Layout
9903 \begin_inset Flex Code
9906 \begin_layout Plain Layout
9911 , left, right, center
9916 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9917 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9921 \begin_layout Description
9922 \begin_inset Flex Code
9925 \begin_layout Plain Layout
9932 \begin_inset Flex Code
9935 \begin_layout Plain Layout
9941 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9943 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9944 \begin_inset Flex Code
9947 \begin_layout Plain Layout
9953 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9993 \begin_layout Standard
9994 \begin_inset Flex Code
9997 \begin_layout Plain Layout
10003 定義内部では,以下の指定をすることができます.
10006 \begin_layout Itemize
10007 \begin_inset Flex Code
10010 \begin_layout Plain Layout
10017 \begin_inset Flex Code
10020 \begin_layout Plain Layout
10026 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
10027 \begin_inset Flex Code
10030 \begin_layout Plain Layout
10036 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
10037 \begin_inset space \space{}
10041 \begin_inset Quotes eld
10045 \begin_inset Flex Code
10048 \begin_layout Plain Layout
10055 \begin_inset Quotes erd
10061 \begin_layout Itemize
10062 \begin_inset Flex Code
10065 \begin_layout Plain Layout
10072 \begin_inset Flex Code
10075 \begin_layout Plain Layout
10081 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
10082 \begin_inset space \space{}
10086 \begin_inset Quotes eld
10090 \begin_inset Flex Code
10093 \begin_layout Plain Layout
10100 \begin_inset Quotes erd
10103 ).この指定は必須ではありません.指定しない場合には,代わりに
10104 \begin_inset Flex Code
10107 \begin_layout Plain Layout
10116 \begin_layout Itemize
10117 \begin_inset Flex Code
10120 \begin_layout Plain Layout
10127 \begin_inset Flex Code
10130 \begin_layout Plain Layout
10136 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
10139 \begin_layout Itemize
10140 \begin_inset Flex Code
10143 \begin_layout Plain Layout
10150 \begin_inset Flex Code
10153 \begin_layout Plain Layout
10162 \begin_inset space \thinspace{}
10166 \begin_inset Flex Code
10169 \begin_layout Plain Layout
10175 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
10177 \begin_inset Flex Code
10180 \begin_layout Plain Layout
10187 \begin_inset Flex Code
10190 \begin_layout Plain Layout
10199 \begin_layout Itemize
10200 \begin_inset Flex Code
10203 \begin_layout Plain Layout
10210 \begin_inset Flex Code
10213 \begin_layout Plain Layout
10219 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
10221 \begin_inset Flex Code
10224 \begin_layout Plain Layout
10232 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
10233 \begin_inset Flex Code
10236 \begin_layout Plain Layout
10243 \begin_inset Flex Code
10246 \begin_layout Plain Layout
10252 ステートメントを置くことで実現できます.
10255 \begin_layout Itemize
10256 \begin_inset Flex Code
10259 \begin_layout Plain Layout
10266 \begin_inset Flex Code
10269 \begin_layout Plain Layout
10276 \begin_inset Flex Code
10279 \begin_layout Plain Layout
10286 \begin_inset Flex Code
10289 \begin_layout Plain Layout
10295 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
10296 \begin_inset Flex Code
10299 \begin_layout Plain Layout
10308 \begin_layout Itemize
10309 \begin_inset Flex Code
10312 \begin_layout Plain Layout
10319 \begin_inset Flex Code
10322 \begin_layout Plain Layout
10329 \begin_inset Flex Code
10332 \begin_layout Plain Layout
10339 \begin_inset Flex Code
10342 \begin_layout Plain Layout
10348 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
10349 \begin_inset Flex Code
10352 \begin_layout Plain Layout
10361 \begin_layout Itemize
10362 \begin_inset Flex Code
10365 \begin_layout Plain Layout
10372 \begin_inset Flex Code
10375 \begin_layout Plain Layout
10381 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10382 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
10385 \begin_layout Itemize
10386 \begin_inset Flex Code
10389 \begin_layout Plain Layout
10396 \begin_inset Flex Code
10399 \begin_layout Plain Layout
10405 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
10408 \begin_layout Itemize
10409 \begin_inset Flex Code
10412 \begin_layout Plain Layout
10419 \begin_inset CommandInset ref
10421 reference "subsec:フォント指定"
10428 \begin_layout Itemize
10429 \begin_inset Flex Code
10432 \begin_layout Plain Layout
10439 \begin_inset CommandInset ref
10441 reference "subsec:フォント指定"
10448 \begin_layout Itemize
10449 \begin_inset Flex Code
10452 \begin_layout Plain Layout
10459 \begin_inset Flex Code
10462 \begin_layout Plain Layout
10467 , Minimalistic, Conglomerate
10472 ] 差込枠の枠とボタンに用いられる装飾様式.
10475 \begin_layout Itemize
10476 \begin_inset Flex Code
10479 \begin_layout Plain Layout
10486 \begin_inset Flex Code
10489 \begin_layout Plain Layout
10496 \begin_inset Flex Code
10499 \begin_layout Plain Layout
10505 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
10508 \begin_layout Itemize
10509 \begin_inset Flex Code
10512 \begin_layout Plain Layout
10519 \begin_inset Flex Code
10522 \begin_layout Plain Layout
10529 \begin_inset Flex Code
10532 \begin_layout Plain Layout
10538 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10541 \begin_layout Itemize
10544 \begin_inset Flex Code
10547 \begin_layout Plain Layout
10556 \begin_inset Flex Code
10559 \begin_layout Plain Layout
10570 ] Whether the contents of this argument should be output in raw form, meaning
10571 without special translations that \SpecialChar LaTeX
10574 \begin_inset Flex Code
10577 \begin_layout Plain Layout
10585 status is inherited by the inset or paragraph layout the argument belongs
10586 to, true and false change the status for the given argument only.
10589 \begin_layout Itemize
10590 \begin_inset Flex Code
10593 \begin_layout Plain Layout
10600 \begin_inset Flex Code
10603 \begin_layout Plain Layout
10614 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10615 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10618 \begin_layout Itemize
10621 \begin_inset Flex Code
10624 \begin_layout Plain Layout
10633 \begin_inset Flex Code
10636 \begin_layout Plain Layout
10646 \begin_inset space \thinspace{}
10650 \begin_inset Flex Code
10653 \begin_layout Plain Layout
10661 ] If this is set to 1, the argument will output its content in the corresponding
10662 item in the table of contents.
10666 \begin_layout Standard
10668 \begin_inset Flex Code
10671 \begin_layout Plain Layout
10678 \begin_inset Flex Code
10681 \begin_layout Plain Layout
10687 のとき,各レイアウトで\SpecialChar LyX
10688 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10689 \begin_inset Flex Code
10692 \begin_layout Plain Layout
10698 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10699 \begin_inset Flex Code
10702 \begin_layout Plain Layout
10709 \begin_inset Flex Code
10712 \begin_layout Plain Layout
10719 \begin_inset Flex Code
10722 \begin_layout Plain Layout
10731 \begin_layout Standard
10733 \begin_inset Flex Code
10736 \begin_layout Plain Layout
10745 \begin_inset Flex Code
10748 \begin_layout Plain Layout
10757 \begin_inset Flex Code
10760 \begin_layout Plain Layout
10767 \begin_inset Flex Code
10770 \begin_layout Plain Layout
10780 \begin_layout Description
10781 \begin_inset Flex Code
10784 \begin_layout Plain Layout
10791 \begin_inset Flex Code
10794 \begin_layout Plain Layout
10800 宣言をすべて,完全に上書きしますので注意してください.「
10801 \begin_inset Flex Code
10804 \begin_layout Plain Layout
10810 」で閉じる必要があります.これの利用法についての詳細は,第
10811 \begin_inset CommandInset ref
10813 reference "subsec:段落様式の国際化"
10820 \begin_layout Description
10821 \begin_inset Flex Code
10824 \begin_layout Plain Layout
10831 \begin_inset Flex Code
10834 \begin_layout Plain Layout
10844 \begin_layout Plain Layout
10845 ここで「浮動小数点型」とは1.5のような実数を指します.
10850 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10854 \begin_layout Description
10855 \begin_inset Flex Code
10858 \begin_layout Plain Layout
10865 \begin_inset Flex Code
10868 \begin_layout Plain Layout
10874 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10875 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10878 \begin_layout Description
10879 \begin_inset Flex Code
10882 \begin_layout Plain Layout
10888 XMLコマンドの深度.XML型の書式でのみ使用されます.
10891 \begin_layout Description
10892 \begin_inset Flex Code
10895 \begin_layout Plain Layout
10902 \begin_inset Flex Code
10905 \begin_layout Plain Layout
10911 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10914 \begin_layout Description
10915 \begin_inset Flex Code
10918 \begin_layout Plain Layout
10925 \begin_inset Flex Code
10928 \begin_layout Plain Layout
10942 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10946 \begin_layout Plain Layout
10947 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10948 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10957 \begin_layout Description
10958 \begin_inset Flex Code
10961 \begin_layout Plain Layout
10968 \begin_inset Flex Code
10971 \begin_layout Plain Layout
10976 , Box, Filled_Box, Static
10982 \begin_inset Flex Code
10985 \begin_layout Plain Layout
10992 \begin_inset Flex Code
10995 \begin_layout Plain Layout
11002 \begin_inset Flex Code
11005 \begin_layout Plain Layout
11012 \begin_inset Flex Code
11015 \begin_layout Plain Layout
11021 のいずれかの場合は,段落群の最後)に置くラベル.
11022 \begin_inset Flex Code
11025 \begin_layout Plain Layout
11032 \begin_inset Flex Code
11035 \begin_layout Plain Layout
11042 \begin_inset Flex Code
11045 \begin_layout Plain Layout
11051 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
11052 \begin_inset Flex Code
11055 \begin_layout Plain Layout
11064 \begin_layout Description
11065 \begin_inset Flex Code
11068 \begin_layout Plain Layout
11075 \begin_inset Flex Code
11078 \begin_layout Plain Layout
11085 \begin_inset Flex Code
11088 \begin_layout Plain Layout
11095 \begin_inset Flex Code
11098 \begin_layout Plain Layout
11107 \begin_layout Description
11108 \begin_inset Flex Code
11111 \begin_layout Plain Layout
11122 \begin_inset CommandInset ref
11124 reference "subsec:フォント指定"
11128 節を参照.このフォントを定義すると,自動的に
11129 \begin_inset Flex Code
11132 \begin_layout Plain Layout
11138 も同じ値で定義されることに注意してください.したがって,
11139 \begin_inset Flex Code
11142 \begin_layout Plain Layout
11148 も同時に定義したい場合には,これを先に定義してください.
11151 \begin_layout Description
11152 \begin_inset Flex Code
11155 \begin_layout Plain Layout
11162 \begin_inset Flex Code
11165 \begin_layout Plain Layout
11171 ] 新しい様式を\SpecialChar LyX
11172 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
11173 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
11175 \begin_inset Flex Code
11178 \begin_layout Plain Layout
11184 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
11186 もこの様式を取り扱えるようになります.
11187 \begin_inset Flex Code
11190 \begin_layout Plain Layout
11196 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
11197 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
11200 \begin_layout Description
11201 \begin_inset Flex Code
11204 \begin_layout Plain Layout
11213 \begin_inset Flex Code
11216 \begin_layout Plain Layout
11225 \begin_inset space \thinspace{}
11229 \begin_inset Flex Code
11232 \begin_layout Plain Layout
11239 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
11240 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
11241 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
11242 \begin_inset Flex Code
11245 \begin_layout Plain Layout
11251 を有効にすることが認められています.\SpecialChar LyX
11252 は,\SpecialChar LaTeX
11253 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
11256 \begin_layout Description
11257 \begin_inset Flex Code
11260 \begin_layout Plain Layout
11266 これらのタグは,XHTML出力で使用されます.第
11267 \begin_inset CommandInset ref
11269 reference "subsec:段落様式-XHTML"
11276 \begin_layout Description
11277 \begin_inset Flex Code
11280 \begin_layout Plain Layout
11286 [[FIXME]] (XML型書式でのみ使用されます.)
11289 \begin_layout Description
11290 \begin_inset Flex Code
11293 \begin_layout Plain Layout
11302 \begin_inset Flex Code
11305 \begin_layout Plain Layout
11314 \begin_inset space \thinspace{}
11318 \begin_inset Flex Code
11321 \begin_layout Plain Layout
11328 \begin_inset Flex Code
11331 \begin_layout Plain Layout
11337 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11339 \begin_inset Flex Code
11342 \begin_layout Plain Layout
11349 \begin_inset Flex Code
11352 \begin_layout Plain Layout
11359 \begin_inset Flex Code
11362 \begin_layout Plain Layout
11371 \begin_layout Description
11372 \begin_inset Flex Code
11375 \begin_layout Plain Layout
11384 \begin_inset Flex Code
11387 \begin_layout Plain Layout
11396 \begin_inset space \thinspace{}
11400 \begin_inset Flex Code
11403 \begin_layout Plain Layout
11410 \begin_inset Flex Code
11413 \begin_layout Plain Layout
11419 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11420 \begin_inset Flex Code
11423 \begin_layout Plain Layout
11430 \begin_inset Flex Code
11433 \begin_layout Plain Layout
11442 \begin_layout Description
11445 \begin_inset Flex Code
11448 \begin_layout Plain Layout
11457 \begin_inset Flex Code
11460 \begin_layout Plain Layout
11470 \begin_inset space \thinspace{}
11474 \begin_inset Flex Code
11477 \begin_layout Plain Layout
11485 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
11486 of its contents in its item in the table of contents.
11487 Otherwise, only the label, if it exists, appears.
11490 \begin_layout Description
11491 \begin_inset Flex Code
11494 \begin_layout Plain Layout
11501 \begin_inset Flex Code
11504 \begin_layout Plain Layout
11510 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11511 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
11513 \begin_inset Flex Code
11516 \begin_layout Plain Layout
11527 \begin_layout Description
11528 \begin_inset Flex Code
11531 \begin_layout Plain Layout
11538 \begin_inset Flex Code
11541 \begin_layout Plain Layout
11547 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
11548 \begin_inset Flex Code
11551 \begin_layout Plain Layout
11557 だけ分離されます.しかし,その環境の項目全体は,さらにこの
11558 \begin_inset Flex Code
11561 \begin_layout Plain Layout
11574 \begin_layout Description
11575 \begin_inset Flex Code
11578 \begin_layout Plain Layout
11584 [[FIXME]] (XML型書式でのみ使用されます.)
11587 \begin_layout Description
11588 \begin_inset Flex Code
11591 \begin_layout Plain Layout
11600 \begin_inset Flex Code
11603 \begin_layout Plain Layout
11612 \begin_inset space \thinspace{}
11616 \begin_inset Flex Code
11619 \begin_layout Plain Layout
11625 ] 段落を空のままにすると,\SpecialChar LaTeX
11626 出力が空になってしまうので,通常,\SpecialChar LyX
11627 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
11628 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
11629 まないある種の改行として使用することもあります.
11632 \begin_layout Description
11633 \begin_inset Flex Code
11636 \begin_layout Plain Layout
11643 \begin_inset Flex Code
11646 \begin_layout Plain Layout
11652 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
11653 \begin_inset Flex Code
11656 \begin_layout Plain Layout
11663 \begin_inset Newline linebreak
11667 \begin_inset Flex Code
11670 \begin_layout Plain Layout
11671 Centered_Top_Environment
11679 \begin_layout Description
11680 \begin_inset Flex Code
11683 \begin_layout Plain Layout
11690 \begin_inset Flex Code
11693 \begin_layout Plain Layout
11699 ] 自動連番に使われるカウンタ名(詳しくは第
11700 \begin_inset CommandInset ref
11702 reference "subsec:カウンタ"
11706 節参照).カウンタがラベル中に表示されるようにするためには,
11707 \begin_inset Flex Code
11710 \begin_layout Plain Layout
11716 中で参照する必要があります.これは,少なくとも
11717 \begin_inset Flex Code
11720 \begin_layout Plain Layout
11727 \begin_inset Flex Code
11730 \begin_layout Plain Layout
11737 \begin_inset Flex Code
11740 \begin_layout Plain Layout
11747 \begin_inset Flex Code
11750 \begin_layout Plain Layout
11757 \begin_inset Newline newline
11761 \begin_inset Flex Code
11764 \begin_layout Plain Layout
11771 \begin_inset Flex Code
11774 \begin_layout Plain Layout
11780 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11781 \begin_inset Flex Code
11784 \begin_layout Plain Layout
11785 LabelCounter myenum
11790 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11791 におけるのと同様,実際に使われるカウンタは,
11792 \begin_inset Flex Code
11795 \begin_layout Plain Layout
11802 \begin_inset Flex Code
11805 \begin_layout Plain Layout
11812 \begin_inset Flex Code
11815 \begin_layout Plain Layout
11822 \begin_inset Flex Code
11825 \begin_layout Plain Layout
11831 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11832 \begin_inset Newline newline
11836 \begin_inset CommandInset ref
11838 reference "subsec:カウンタ"
11845 \begin_layout Description
11846 \begin_inset Flex Code
11849 \begin_layout Plain Layout
11856 \begin_inset CommandInset ref
11858 reference "subsec:フォント指定"
11865 \begin_layout Description
11866 \begin_inset Flex Code
11869 \begin_layout Plain Layout
11876 \begin_inset Flex Code
11879 \begin_layout Plain Layout
11885 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11888 \begin_layout Description
11889 \begin_inset Flex Code
11892 \begin_layout Plain Layout
11899 \begin_inset Flex Code
11902 \begin_layout Plain Layout
11908 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11911 \begin_layout Description
11912 \begin_inset Flex Code
11915 \begin_layout Plain Layout
11922 \begin_inset Flex Code
11925 \begin_layout Plain Layout
11932 \begin_inset Flex Code
11935 \begin_layout Plain Layout
11942 \begin_inset Flex Code
11945 \begin_layout Plain Layout
11952 \begin_inset CommandInset ref
11954 reference "subsec:カウンタ"
11958 に述べられている特別な整形コマンドを含めることができます.
11961 \begin_layout Description
11962 \begin_inset Flex Code
11965 \begin_layout Plain Layout
11966 LabelStringAppendix
11972 \begin_inset Flex Code
11975 \begin_layout Plain Layout
11982 \begin_inset Flex Code
11985 \begin_layout Plain Layout
11992 \begin_inset Flex Code
11995 \begin_layout Plain Layout
12002 \begin_inset Flex Code
12005 \begin_layout Plain Layout
12006 LabelStringAppendix
12011 をもリセットすることに注意してください.
12014 \begin_layout Description
12015 \begin_inset Flex Code
12018 \begin_layout Plain Layout
12024 [FIXME] (XML型書式でのみ使用されます.)
12027 \begin_layout Description
12028 \begin_inset Flex Code
12031 \begin_layout Plain Layout
12038 \begin_inset Flex Code
12041 \begin_layout Plain Layout
12046 , Manual, Static, Above,
12047 \begin_inset Newline newline
12050 Centered, Sensitive, Enumerate,
12051 \begin_inset Newline newline
12054 Itemize, Bibliography
12063 \begin_layout Description
12064 \begin_inset Flex Code
12067 \begin_layout Plain Layout
12073 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
12076 \begin_layout Description
12077 \begin_inset Flex Code
12080 \begin_layout Plain Layout
12087 \begin_inset Flex Code
12090 \begin_layout Plain Layout
12096 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
12097 \begin_inset Flex Code
12100 \begin_layout Plain Layout
12107 \begin_inset Flex Code
12110 \begin_layout Plain Layout
12117 \begin_inset Flex Code
12120 \begin_layout Plain Layout
12126 の段落中,最初の段落にのみ表示されます.
12129 \begin_layout Description
12130 \begin_inset Flex Code
12133 \begin_layout Plain Layout
12140 \begin_inset Flex Code
12143 \begin_layout Plain Layout
12150 \begin_inset Flex Code
12153 \begin_layout Plain Layout
12159 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
12162 \begin_layout Description
12163 \begin_inset Flex Code
12166 \begin_layout Plain Layout
12172 はキャプションラベルの「図」や「表」の特別な場合です.
12173 \begin_inset Flex Code
12176 \begin_layout Plain Layout
12182 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
12183 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
12184 \begin_inset Flex Code
12187 \begin_layout Plain Layout
12193 は「意味を成しません!」と表示されます.
12196 \begin_layout Description
12197 \begin_inset Flex Code
12200 \begin_layout Plain Layout
12206 は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
12210 \begin_layout Description
12211 \begin_inset Flex Code
12214 \begin_layout Plain Layout
12220 は,各階層でさまざまなブリットを生成します.これもハードコードされています.
12223 \begin_layout Description
12224 \begin_inset Flex Code
12227 \begin_layout Plain Layout
12234 \begin_inset Flex Code
12237 \begin_layout Plain Layout
12238 LatexType BibEnvironment
12247 \begin_layout Description
12248 \begin_inset Flex Code
12251 \begin_layout Plain Layout
12258 \begin_inset Flex Code
12261 \begin_layout Plain Layout
12267 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
12268 \begin_inset CommandInset ref
12270 reference "subsec:段落様式の国際化"
12277 \begin_layout Description
12278 \begin_inset Flex Code
12281 \begin_layout Plain Layout
12288 \begin_inset Flex Code
12291 \begin_layout Plain Layout
12297 ] 対応する\SpecialChar LaTeX
12298 の名称です.環境名かコマンド名を指します.
12301 \begin_layout Description
12302 \begin_inset Flex Code
12305 \begin_layout Plain Layout
12312 \begin_inset Flex Code
12315 \begin_layout Plain Layout
12322 \begin_inset Flex Code
12325 \begin_layout Plain Layout
12331 の非必須パラメータです.このパラメータは,\SpecialChar LyX
12332 内部から変更することはできません(変更可能なパラメータには
12333 \begin_inset Flex Code
12336 \begin_layout Plain Layout
12342 を使用してください).これは,全ての\SpecialChar LaTeX
12344 \begin_inset Flex Code
12347 \begin_layout Plain Layout
12356 \begin_layout Description
12357 \begin_inset Flex Code
12360 \begin_layout Plain Layout
12367 \begin_inset Flex Code
12370 \begin_layout Plain Layout
12375 , Command, Environment, Item_Environment,
12376 \begin_inset Newline newline
12379 List_Environment, Bib_Environment
12384 ] レイアウトがどのように\SpecialChar LaTeX
12389 \begin_layout Plain Layout
12390 これらのルールはSGMLクラスにも適用されるので,
12391 \begin_inset Flex Code
12394 \begin_layout Plain Layout
12400 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
12401 \begin_inset Flex Code
12404 \begin_layout Plain Layout
12419 \begin_layout Description
12420 \begin_inset Flex Code
12423 \begin_layout Plain Layout
12432 \begin_layout Description
12433 \begin_inset Flex Code
12436 \begin_layout Plain Layout
12443 \begin_inset Flex Code
12446 \begin_layout Plain Layout
12453 {\SpecialChar ldots
12462 \begin_layout Description
12463 \begin_inset Flex Code
12466 \begin_layout Plain Layout
12473 \begin_inset Flex Code
12476 \begin_layout Plain Layout
12483 }\SpecialChar ldots
12498 \begin_layout Description
12499 \begin_inset Flex Code
12502 \begin_layout Plain Layout
12509 \begin_inset Flex Code
12512 \begin_layout Plain Layout
12519 \begin_inset Flex Code
12522 \begin_layout Plain Layout
12530 がこの環境のすべての段落に付けられるところだけが異なっています.
12533 \begin_layout Description
12534 \begin_inset Flex Code
12537 \begin_layout Plain Layout
12544 \begin_inset Flex Code
12547 \begin_layout Plain Layout
12554 \begin_inset Flex Code
12557 \begin_layout Plain Layout
12563 が環境の引数として渡されるところだけが異なっています.
12564 \begin_inset Flex Code
12567 \begin_layout Plain Layout
12574 \begin_inset Flex MenuItem
12577 \begin_layout Plain Layout
12578 編集\SpecialChar menuseparator
12587 \begin_layout Description
12588 \begin_inset Flex Code
12591 \begin_layout Plain Layout
12598 \begin_inset Flex Code
12601 \begin_layout Plain Layout
12607 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
12608 \begin_inset Newline newline
12612 \begin_inset Flex Code
12615 \begin_layout Plain Layout
12618 begin{thebibliography}{99}
12624 \begin_inset Newline newline
12627 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
12630 \begin_layout Standard
12631 上記最後のいくつかをまとめると,\SpecialChar LaTeX
12632 出力は,\SpecialChar LaTeX
12636 \begin_layout LyX-Code
12639 LatexName[LatexParam]{\SpecialChar ldots
12643 \begin_layout Standard
12647 \begin_layout LyX-Code
12650 begin{LatexName}[LatexParam] \SpecialChar ldots
12656 \begin_layout Standard
12661 \begin_layout Description
12662 \begin_inset Flex Code
12665 \begin_layout Plain Layout
12672 \begin_inset Flex Code
12675 \begin_layout Plain Layout
12681 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12682 \begin_inset Flex Code
12685 \begin_layout Plain Layout
12694 \begin_layout Description
12695 \begin_inset Flex Code
12698 \begin_layout Plain Layout
12705 \begin_inset Flex Code
12708 \begin_layout Plain Layout
12714 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12715 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12718 をかけて加えられます.このパラメータは,
12719 \begin_inset Flex Code
12722 \begin_layout Plain Layout
12729 \begin_inset Flex Code
12732 \begin_layout Plain Layout
12739 \begin_inset Flex Code
12742 \begin_layout Plain Layout
12748 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12749 \begin_inset Newline newline
12753 \begin_inset Flex Code
12756 \begin_layout Plain Layout
12762 」と指定すると,段落を通常フォントの「
12763 \begin_inset Flex Code
12766 \begin_layout Plain Layout
12772 」の幅だけ行頭下げを行います.文字列の前に「
12773 \begin_inset Flex Code
12776 \begin_layout Plain Layout
12782 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12785 \begin_layout Description
12786 \begin_inset Flex Code
12789 \begin_layout Plain Layout
12796 \begin_inset Flex Code
12799 \begin_layout Plain Layout
12804 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12810 \begin_inset Newline newline
12817 \begin_layout Description
12818 \begin_inset Flex Code
12821 \begin_layout Plain Layout
12830 \begin_layout Description
12831 \begin_inset Flex Code
12834 \begin_layout Plain Layout
12841 \begin_inset Flex MenuItem
12844 \begin_layout Plain Layout
12845 編集\SpecialChar menuseparator
12851 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12854 \begin_layout Description
12855 \begin_inset Flex Code
12858 \begin_layout Plain Layout
12864 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12865 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12868 \begin_layout Description
12869 \begin_inset Flex Code
12872 \begin_layout Plain Layout
12878 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12881 \begin_layout Description
12882 \begin_inset Flex Code
12885 \begin_layout Plain Layout
12891 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12895 \begin_layout Description
12896 \begin_inset Flex Code
12899 \begin_layout Plain Layout
12906 \begin_inset Flex Code
12909 \begin_layout Plain Layout
12918 \begin_inset space \thinspace{}
12922 \begin_inset Flex Code
12925 \begin_layout Plain Layout
12931 ] このレイアウト中の脆弱なコマンドが
12932 \begin_inset Flex Code
12935 \begin_layout Plain Layout
12943 されるべきか否か(註:これはこのコマンド自体が
12944 \begin_inset Flex Code
12947 \begin_layout Plain Layout
12962 \begin_layout Description
12963 \begin_inset Flex Code
12966 \begin_layout Plain Layout
12973 \begin_inset Flex Code
12976 \begin_layout Plain Layout
12983 \begin_inset space \thinspace{}
12987 \begin_inset Flex Code
12990 \begin_layout Plain Layout
12998 ] 新規行を\SpecialChar LaTeX
13000 \begin_inset Flex Code
13003 \begin_layout Plain Layout
13013 )に変換するか否か.\SpecialChar LyX
13014 中で\SpecialChar LaTeX
13015 編集をやりやすくするために,変換は無効にすることができます.
13018 \begin_layout Description
13019 \begin_inset Flex Code
13022 \begin_layout Plain Layout
13029 \begin_inset Flex Code
13032 \begin_layout Plain Layout
13041 \begin_inset space \thinspace{}
13045 \begin_inset Flex Code
13048 \begin_layout Plain Layout
13055 \begin_inset Flex Code
13058 \begin_layout Plain Layout
13065 \begin_inset Flex Code
13068 \begin_layout Plain Layout
13074 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
13077 \begin_layout Description
13078 \begin_inset Flex Code
13081 \begin_layout Plain Layout
13088 \begin_inset Flex Code
13091 \begin_layout Plain Layout
13097 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
13100 \begin_layout Description
13101 \begin_inset Flex Code
13104 \begin_layout Plain Layout
13111 \begin_inset Flex Code
13114 \begin_layout Plain Layout
13121 \begin_inset space \thinspace{}
13125 \begin_inset Flex Code
13128 \begin_layout Plain Layout
13134 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
13135 \begin_inset Flex Code
13138 \begin_layout Plain Layout
13144 が一度だけ出力される効果があります.既定では,
13145 \begin_inset Flex Code
13148 \begin_layout Plain Layout
13155 \begin_inset Flex Code
13158 \begin_layout Plain Layout
13165 \begin_inset Flex Code
13168 \begin_layout Plain Layout
13174 については有効であり,他の型すべてについて無効になっています.
13177 \begin_layout Description
13178 \begin_inset Flex Code
13181 \begin_layout Plain Layout
13188 \begin_inset Flex Code
13191 \begin_layout Plain Layout
13200 \begin_inset space \thinspace{}
13204 \begin_inset Flex Code
13207 \begin_layout Plain Layout
13213 ] \SpecialChar LaTeX
13214 出力中で,段落を空行ではなく,改行で区切るよう指定します.
13215 \begin_inset Flex Code
13218 \begin_layout Plain Layout
13224 と併用すれば,(\SpecialChar TeX
13225 コードを使用したときのように)テキストエディタをエミュレートすることができます.
13228 \begin_layout Description
13229 \begin_inset Flex Code
13232 \begin_layout Plain Layout
13239 \begin_inset Flex Code
13242 \begin_layout Plain Layout
13248 ] 段落の最初の行の行頭下げ.レイアウトによっては
13249 \begin_inset Flex Code
13252 \begin_layout Plain Layout
13258 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
13259 \begin_inset Flex Code
13262 \begin_layout Plain Layout
13268 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
13269 \begin_inset Flex Code
13272 \begin_layout Plain Layout
13279 \begin_inset Flex Code
13282 \begin_layout Plain Layout
13288 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
13291 \begin_layout Description
13292 \begin_inset Flex Code
13295 \begin_layout Plain Layout
13302 \begin_inset Flex Code
13305 \begin_layout Plain Layout
13311 ] このレイアウトの2段落間の垂直余白.
13314 \begin_layout Description
13315 \begin_inset Flex Code
13318 \begin_layout Plain Layout
13325 \begin_inset Flex Code
13328 \begin_layout Plain Layout
13335 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
13336 択した際には,\SpecialChar LaTeX
13338 \begin_inset Flex Code
13341 \begin_layout Plain Layout
13348 \begin_inset Flex Code
13351 \begin_layout Plain Layout
13357 引数分だけ引き離されます.垂直余白は,
13358 \begin_inset Flex Code
13361 \begin_layout Plain Layout
13367 を標準フォントでの1行の高さとすると,
13368 \begin_inset Flex Code
13371 \begin_layout Plain Layout
13378 \begin_inset Formula $\times$
13382 \begin_inset Flex Code
13385 \begin_layout Plain Layout
13391 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
13394 \begin_layout Description
13395 \begin_inset Flex Code
13398 \begin_layout Plain Layout
13407 \begin_inset Flex Code
13410 \begin_layout Plain Layout
13419 \begin_inset space \thinspace{}
13423 \begin_inset Flex Code
13426 \begin_layout Plain Layout
13432 ] この段落の内容が,\SpecialChar LaTeX
13433 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
13436 \begin_layout Description
13437 \begin_inset Flex Code
13440 \begin_layout Plain Layout
13447 \begin_inset Flex Code
13450 \begin_layout Plain Layout
13461 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
13464 \begin_layout Description
13465 \begin_inset Flex Code
13468 \begin_layout Plain Layout
13474 この様式が使用されたときに,\SpecialChar LaTeX
13475 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
13476 \begin_inset Flex Code
13479 \begin_layout Plain Layout
13488 \begin_layout Description
13489 \begin_inset Flex Code
13492 \begin_layout Plain Layout
13499 \begin_inset Flex Code
13502 \begin_layout Plain Layout
13508 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
13511 \begin_layout Description
13512 \begin_inset Flex Code
13515 \begin_layout Plain Layout
13522 \begin_inset Flex Code
13525 \begin_layout Plain Layout
13532 \begin_inset Flex Code
13535 \begin_layout Plain Layout
13541 を必要とするかどうか(機能詳細については,第
13542 \begin_inset CommandInset ref
13544 reference "chap:関数一覧"
13548 節参照).特定のオプションをとるパッケージを要求する場合,
13549 \begin_inset Flex Code
13552 \begin_layout Plain Layout
13558 を汎用テキストクラスパラメータとして追加して使うことができます(
13559 \begin_inset CommandInset ref
13561 reference "subsec:汎用テキストクラスパラメータ"
13568 \begin_layout Description
13569 \begin_inset Flex Code
13572 \begin_layout Plain Layout
13579 \begin_inset Flex Code
13582 \begin_layout Plain Layout
13591 \begin_inset Flex Code
13594 \begin_layout Plain Layout
13601 \begin_inset Flex Code
13604 \begin_layout Plain Layout
13610 タグで定義された)この様式の\SpecialChar LaTeX
13612 \begin_inset Flex Code
13615 \begin_layout Plain Layout
13621 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
13624 \begin_layout Description
13627 \begin_inset Flex Code
13630 \begin_layout Plain Layout
13639 \begin_inset Flex Code
13642 \begin_layout Plain Layout
13652 \begin_inset Flex Code
13655 \begin_layout Plain Layout
13663 ] Resumes a counter that is usually reset at each new sequence of layouts.
13664 This is currently only useful when
13665 \begin_inset Flex Code
13668 \begin_layout Plain Layout
13677 \begin_inset Flex Code
13680 \begin_layout Plain Layout
13691 \begin_layout Description
13692 \begin_inset Flex Code
13695 \begin_layout Plain Layout
13702 \begin_inset Flex Code
13705 \begin_layout Plain Layout
13711 ] 様式の内容の最後に置かれる文字列.出力中の改行は
13712 \begin_inset Flex Code
13715 \begin_layout Plain Layout
13724 \begin_layout Description
13725 \begin_inset Flex Code
13728 \begin_layout Plain Layout
13735 \begin_inset Flex Code
13738 \begin_layout Plain Layout
13745 \begin_inset Flex Code
13748 \begin_layout Plain Layout
13757 \begin_layout Description
13758 \begin_inset Flex Code
13761 \begin_layout Plain Layout
13768 \begin_inset Flex Code
13771 \begin_layout Plain Layout
13780 \begin_inset Flex Code
13783 \begin_layout Plain Layout
13790 \begin_inset Flex Code
13793 \begin_layout Plain Layout
13800 \begin_inset Flex Code
13803 \begin_layout Plain Layout
13805 \begin_inset space ~
13821 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13822 \begin_inset Flex Code
13825 \begin_layout Plain Layout
13832 \begin_inset Flex Code
13835 \begin_layout Plain Layout
13842 \begin_inset Flex Code
13845 \begin_layout Plain Layout
13851 は,それぞれ乗数1・1.25・1.667に対応します.引数
13852 \begin_inset Flex Code
13855 \begin_layout Plain Layout
13861 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13862 \begin_inset Flex Code
13865 \begin_layout Plain Layout
13871 は,\SpecialChar LaTeX
13873 \begin_inset Flex Code
13876 \begin_layout Plain Layout
13882 パッケージを使用した,限定的な\SpecialChar LaTeX
13883 コードを生成することを意味することにご注意ください.
13886 \begin_layout Description
13887 \begin_inset Flex Code
13890 \begin_layout Plain Layout
13897 \begin_inset Flex Code
13900 \begin_layout Plain Layout
13907 \begin_inset space \thinspace{}
13911 \begin_inset Flex Code
13914 \begin_layout Plain Layout
13920 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13923 \begin_layout Description
13926 \begin_inset Flex Code
13929 \begin_layout Plain Layout
13938 \begin_inset Flex Code
13941 \begin_layout Plain Layout
13951 \begin_inset Flex Code
13954 \begin_layout Plain Layout
13962 ] Steps the master counter of a given counter at the beginning of a new
13963 sequence of layouts.
13964 This is currently only useful when
13965 \begin_inset Flex Code
13968 \begin_layout Plain Layout
13977 \begin_inset Flex Code
13980 \begin_layout Plain Layout
13991 \begin_layout Description
13992 \begin_inset Flex Code
13995 \begin_layout Plain Layout
14002 \begin_inset CommandInset ref
14004 reference "subsec:フォント指定"
14011 \begin_layout Description
14012 \begin_inset Flex Code
14015 \begin_layout Plain Layout
14022 \begin_inset Flex Code
14025 \begin_layout Plain Layout
14031 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
14034 \begin_layout Description
14035 \begin_inset Flex Code
14038 \begin_layout Plain Layout
14047 \begin_inset Flex Code
14050 \begin_layout Plain Layout
14059 \begin_inset Flex Code
14062 \begin_layout Plain Layout
14069 \begin_inset Flex Code
14072 \begin_layout Plain Layout
14078 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
14079 \begin_inset Flex Code
14082 \begin_layout Plain Layout
14088 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
14089 \begin_inset Flex Code
14092 \begin_layout Plain Layout
14098 は,文書設定にかかわらず変更することができ,
14099 \begin_inset Flex Code
14102 \begin_layout Plain Layout
14108 は,どのような場合でも変更することができません.
14111 \begin_layout Description
14112 \begin_inset Flex Code
14115 \begin_layout Plain Layout
14122 \begin_inset Flex Code
14125 \begin_layout Plain Layout
14131 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
14135 \begin_layout Subsection
14137 \begin_inset CommandInset label
14139 name "subsec:段落様式の国際化"
14146 \begin_layout Standard
14148 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
14149 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
14153 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
14156 \begin_layout Standard
14158 \begin_inset Flex MenuItem
14161 \begin_layout Plain Layout
14167 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
14168 \begin_inset Flex MenuItem
14171 \begin_layout Plain Layout
14178 \begin_inset Flex MenuItem
14181 \begin_layout Plain Layout
14187 を使用することができます.以下の抜粋(
14188 \begin_inset Flex MenuItem
14191 \begin_layout Plain Layout
14197 より)は,これがどう動作するかを示すものです.
14200 \begin_layout LyX-Code
14205 \begin_layout LyX-Code
14208 theoremstyle{remark}
14211 \begin_layout LyX-Code
14214 newtheorem{claim}[thm]{
14221 \begin_layout LyX-Code
14225 \begin_layout LyX-Code
14229 \begin_layout LyX-Code
14234 claimname}{_(Claim)}
14237 \begin_layout LyX-Code
14241 \begin_layout LyX-Code
14245 \begin_layout LyX-Code
14254 claimname}{_(Claim)}}
14257 \begin_layout LyX-Code
14262 \begin_layout Standard
14264 \begin_inset Flex MenuItem
14267 \begin_layout Plain Layout
14274 \begin_inset Flex MenuItem
14277 \begin_layout Plain Layout
14283 タグ内には,有効な\SpecialChar LaTeX
14284 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
14285 は,\SpecialChar LaTeX
14287 \begin_inset Flex Code
14290 \begin_layout Plain Layout
14299 \begin_inset Flex Code
14302 \begin_layout Plain Layout
14313 \begin_layout Standard
14314 \begin_inset Flex Code
14317 \begin_layout Plain Layout
14323 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
14324 \begin_inset Flex Code
14327 \begin_layout Plain Layout
14333 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
14334 \begin_inset Flex Code
14337 \begin_layout Plain Layout
14343 が使用されていることです.これは,\SpecialChar LyX
14344 が\SpecialChar LaTeX
14345 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
14348 \begin_layout Standard
14349 \begin_inset Flex Code
14352 \begin_layout Plain Layout
14359 \begin_inset Flex Code
14362 \begin_layout Plain Layout
14368 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
14370 \begin_inset Flex Code
14373 \begin_layout Plain Layout
14379 の引数は,その当該言語への翻訳で置き換えられ,
14380 \begin_inset Flex Code
14383 \begin_layout Plain Layout
14389 は言語名(babelパッケージで使用されるもの)で置き換えられます.
14392 \begin_layout Standard
14393 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
14396 \begin_layout LyX-Code
14405 claimname}{Affirmation}}
14406 \begin_inset Newline newline
14417 claimname}{Behauptung}}
14418 \begin_inset Newline newline
14425 claimname}{Behauptung}
14428 \begin_layout Standard
14429 それから,\SpecialChar LaTeX
14431 \begin_inset Flex Code
14434 \begin_layout Plain Layout
14440 は協力して,出力に正しい文字列を生成します.
14443 \begin_layout Standard
14444 ここで注意しておくべき一つの重要な点は,翻訳は,
14445 \begin_inset Flex Code
14448 \begin_layout Plain Layout
14454 ファイルを通じて,\SpecialChar LyX
14455 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
14456 \begin_inset Flex Code
14459 \begin_layout Plain Layout
14465 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
14466 の国際化ルーチンでは取り扱われないので,
14467 \begin_inset Flex MenuItem
14470 \begin_layout Plain Layout
14477 \begin_inset Flex MenuItem
14480 \begin_layout Plain Layout
14486 は,事実上,\SpecialChar LyX
14487 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
14489 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
14490 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
14491 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
14494 \begin_layout Subsection
14496 \begin_inset CommandInset label
14505 \begin_layout Standard
14507 第1.3.0版以来,テキストクラス自体の中でフロート(
14508 \begin_inset Flex MenuItem
14511 \begin_layout Plain Layout
14518 \begin_inset Flex MenuItem
14521 \begin_layout Plain Layout
14527 ・\SpecialChar ldots
14528 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
14529 \begin_inset Flex Code
14532 \begin_layout Plain Layout
14538 ファイルに含まれているので,作業中のレイアウトファイルに
14541 \begin_layout LyX-Code
14542 Input stdfloats.inc
14545 \begin_layout Standard
14546 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
14547 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
14551 \begin_layout Description
14552 \begin_inset Flex Code
14555 \begin_layout Plain Layout
14562 \begin_inset Flex Code
14565 \begin_layout Plain Layout
14571 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
14576 \begin_inset Quotes eld
14579 here if possible:可能ならば現在位置に
14580 \begin_inset Quotes erd
14588 \begin_inset Quotes eld
14592 \begin_inset Quotes erd
14600 \begin_inset Quotes eld
14603 bottom of page:ページ下部
14604 \begin_inset Quotes erd
14612 \begin_inset Quotes eld
14615 page of floats:フロートを独立したページに
14616 \begin_inset Quotes erd
14624 \begin_inset Quotes eld
14627 here definitely:何としても現在位置に置く
14628 \begin_inset Quotes erd
14636 \begin_inset Quotes eld
14639 ignore LaTeX rules:LaTeXの規則を無視する
14640 \begin_inset Quotes erd
14643 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
14650 \begin_layout Description
14651 \begin_inset Flex Code
14654 \begin_layout Plain Layout
14661 \begin_inset Flex Code
14664 \begin_layout Plain Layout
14671 \begin_inset space \thinspace{}
14677 \begin_inset Flex Code
14680 \begin_layout Plain Layout
14688 ] フロートを,\SpecialChar LaTeX
14693 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
14694 \begin_inset Flex Code
14697 \begin_layout Plain Layout
14706 \begin_layout Description
14707 \begin_inset Flex Code
14710 \begin_layout Plain Layout
14717 \begin_inset Flex Code
14720 \begin_layout Plain Layout
14727 \begin_inset space \thinspace{}
14733 \begin_inset Flex Code
14736 \begin_layout Plain Layout
14744 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
14745 \begin_inset Flex Code
14748 \begin_layout Plain Layout
14757 \begin_layout Description
14758 \begin_inset Flex Code
14761 \begin_layout Plain Layout
14768 \begin_inset Flex Code
14771 \begin_layout Plain Layout
14778 \begin_inset Quotes erd
14782 \begin_inset Quotes erd
14785 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14786 がキャプションを書き込むファイルです.
14789 \begin_layout Description
14790 \begin_inset Flex Code
14793 \begin_layout Plain Layout
14800 \begin_inset Flex Code
14803 \begin_layout Plain Layout
14810 \begin_inset Quotes erd
14814 \begin_inset Quotes erd
14817 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14820 \begin_layout Description
14821 \begin_inset Flex Code
14824 \begin_layout Plain Layout
14830 これらは,XHTML出力で使用されます.
14831 \begin_inset CommandInset ref
14833 reference "sec:XHTML出力のタグ"
14840 \begin_layout Description
14841 \begin_inset Flex Code
14844 \begin_layout Plain Layout
14851 \begin_inset Flex Code
14854 \begin_layout Plain Layout
14863 \begin_inset space \thinspace{}
14867 \begin_inset Flex Code
14870 \begin_layout Plain Layout
14876 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14878 \begin_inset Flex Code
14881 \begin_layout Plain Layout
14887 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14888 \begin_inset Flex Code
14891 \begin_layout Plain Layout
14898 \begin_inset Flex Code
14901 \begin_layout Plain Layout
14907 を使用します.\SpecialChar LaTeX
14908 ドキュメントクラス中に既に定義されているときには,
14909 \begin_inset Flex Code
14912 \begin_layout Plain Layout
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 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14952 \begin_inset Flex Code
14955 \begin_layout Plain Layout
14961 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14966 \begin_inset Flex Code
14969 \begin_layout Plain Layout
14975 が真の時は,標準的な方法が存在するので,これは無視されます.
14978 \begin_layout Description
14979 \begin_inset Flex Code
14982 \begin_layout Plain Layout
14989 \begin_inset Flex Code
14992 \begin_layout Plain Layout
14999 \begin_inset Quotes erd
15003 \begin_inset Quotes erd
15006 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
15007 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
15009 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
15012 \begin_layout Description
15013 \begin_inset Flex Code
15016 \begin_layout Plain Layout
15023 \begin_inset Flex Code
15026 \begin_layout Plain Layout
15033 \begin_inset Quotes erd
15037 \begin_inset Quotes erd
15040 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
15041 \begin_inset Flex Code
15044 \begin_layout Plain Layout
15051 \begin_inset Flex Code
15054 \begin_layout Plain Layout
15060 」に指定されていれば,フロートは章ごとに番号が振り直されます.
15063 \begin_layout Description
15064 \begin_inset Flex Code
15067 \begin_layout Plain Layout
15074 \begin_inset Flex Code
15077 \begin_layout Plain Layout
15084 \begin_inset Quotes erd
15088 \begin_inset Quotes erd
15091 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
15093 \begin_inset Flex Code
15096 \begin_layout Plain Layout
15103 \begin_inset Flex Code
15106 \begin_layout Plain Layout
15113 \begin_inset Flex Code
15116 \begin_layout Plain Layout
15123 \begin_inset Flex Code
15126 \begin_layout Plain Layout
15136 \begin_layout Plain Layout
15138 同様,文字列中でのこれらの文字の順序は関係ありません.
15144 \begin_inset Flex Code
15147 \begin_layout Plain Layout
15153 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
15154 \begin_inset Flex Code
15157 \begin_layout Plain Layout
15163 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
15165 \begin_inset Flex Code
15168 \begin_layout Plain Layout
15177 \begin_layout Description
15178 \begin_inset Flex Code
15181 \begin_layout Plain Layout
15188 \begin_inset Flex Code
15191 \begin_layout Plain Layout
15197 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
15198 \begin_inset Flex Code
15201 \begin_layout Plain Layout
15207 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
15210 \begin_layout Description
15211 \begin_inset Flex Code
15214 \begin_layout Plain Layout
15221 \begin_inset Flex Code
15224 \begin_layout Plain Layout
15231 \begin_inset Quotes erd
15235 \begin_inset Quotes erd
15239 \begin_inset Flex Code
15242 \begin_layout Plain Layout
15250 を使用してフロートを定義する際に使用される様式.
15253 \begin_layout Description
15254 \begin_inset Flex Code
15257 \begin_layout Plain Layout
15264 \begin_inset Flex Code
15267 \begin_layout Plain Layout
15274 \begin_inset Quotes erd
15278 \begin_inset Quotes erd
15281 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
15282 \begin_inset Flex Code
15285 \begin_layout Plain Layout
15294 \begin_inset Flex Code
15297 \begin_layout Plain Layout
15306 \begin_inset Flex Code
15309 \begin_layout Plain Layout
15320 \begin_layout Description
15321 \begin_inset Flex Code
15324 \begin_layout Plain Layout
15331 \begin_inset Flex Code
15334 \begin_layout Plain Layout
15341 \begin_inset space \thinspace{}
15345 \begin_inset Flex Code
15348 \begin_layout Plain Layout
15356 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
15358 \begin_inset Flex Code
15361 \begin_layout Plain Layout
15367 が提供しているものを使用して定義されているのか,\SpecialChar LyX
15368 自身がオン・ザ・フライで定義しているのかを示します.
15371 \begin_layout Standard
15372 \begin_inset Flex Code
15375 \begin_layout Plain Layout
15388 \begin_inset Flex Code
15391 \begin_layout Plain Layout
15402 \begin_layout Subsection
15404 \begin_inset CommandInset label
15406 name "subsec:任意設定差込枠"
15413 \begin_layout Standard
15417 \begin_layout Itemize
15419 \begin_inset Flex Code
15422 \begin_layout Plain Layout
15429 \begin_inset Flex Code
15432 \begin_layout Plain Layout
15441 \begin_inset Flex Code
15444 \begin_layout Plain Layout
15452 などの\SpecialChar LaTeX
15453 コマンドに対応した意味論的マークアップを定義するものです.
15456 \begin_layout Itemize
15458 \begin_inset Flex Code
15461 \begin_layout Plain Layout
15467 ).これは,\SpecialChar TeX
15468 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
15469 \begin_inset Flex Code
15472 \begin_layout Plain Layout
15481 \begin_layout Itemize
15483 \begin_inset Flex Code
15486 \begin_layout Plain Layout
15492 ).DocBookクラスで使用するものです.
15495 \begin_layout Standard
15497 \begin_inset Flex Code
15500 \begin_layout Plain Layout
15509 \begin_layout Standard
15510 \begin_inset Flex Code
15513 \begin_layout Plain Layout
15519 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
15520 \begin_inset Flex Code
15523 \begin_layout Plain Layout
15529 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
15530 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15534 \begin_layout Standard
15535 \begin_inset Flex Code
15538 \begin_layout Plain Layout
15544 定義は以下の形の行では始まらなくてはなりません.
15547 \begin_layout LyX-Code
15551 \begin_layout Standard
15553 \begin_inset Flex Code
15556 \begin_layout Plain Layout
15562 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
15565 \begin_layout Enumerate
15566 既存の差込枠のレイアウトを変更する場合.この場合,
15567 \begin_inset Flex Code
15570 \begin_layout Plain Layout
15577 \begin_inset Flex Code
15580 \begin_layout Plain Layout
15587 \begin_inset Flex Code
15590 \begin_layout Plain Layout
15597 \begin_inset Flex Code
15600 \begin_layout Plain Layout
15607 \begin_inset Flex Code
15610 \begin_layout Plain Layout
15617 \begin_inset Flex Code
15620 \begin_layout Plain Layout
15627 \begin_inset Flex Code
15630 \begin_layout Plain Layout
15637 \begin_inset Flex Code
15640 \begin_layout Plain Layout
15647 \begin_inset Flex Code
15650 \begin_layout Plain Layout
15657 \begin_inset Flex Code
15660 \begin_layout Plain Layout
15667 \begin_inset Flex Code
15670 \begin_layout Plain Layout
15677 \begin_inset Flex Code
15680 \begin_layout Plain Layout
15687 \begin_inset Flex Code
15690 \begin_layout Plain Layout
15697 \begin_inset Flex Code
15700 \begin_layout Plain Layout
15707 \begin_inset Flex Code
15710 \begin_layout Plain Layout
15717 \begin_inset Flex Code
15720 \begin_layout Plain Layout
15727 \begin_inset Flex Code
15730 \begin_layout Plain Layout
15737 \begin_inset Flex Code
15740 \begin_layout Plain Layout
15747 \begin_inset Flex Code
15750 \begin_layout Plain Layout
15757 \begin_inset Flex Code
15760 \begin_layout Plain Layout
15767 \begin_inset Flex Code
15770 \begin_layout Plain Layout
15779 \begin_layout Enumerate
15780 自由差込枠のレイアウトを定義する場合.この場合,
15781 \begin_inset Flex Code
15784 \begin_layout Plain Layout
15791 \begin_inset Flex Code
15794 \begin_layout Plain Layout
15801 \begin_inset Flex Code
15804 \begin_layout Plain Layout
15810 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15811 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15812 \begin_inset Flex Code
15815 \begin_layout Plain Layout
15821 項目が含まれていなくてはならないことに注意してください.
15824 \begin_layout Enumerate
15825 ユーザー定義派生枝を定義する場合.この場合,
15826 \begin_inset Flex Code
15829 \begin_layout Plain Layout
15836 \begin_inset Flex Code
15839 \begin_layout Plain Layout
15846 \begin_inset Flex Code
15849 \begin_layout Plain Layout
15855 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15856 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15857 がくるむことができるようにすることです.
15860 \begin_layout Enumerate
15861 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15862 \begin_inset Flex Code
15865 \begin_layout Plain Layout
15872 \begin_inset Flex Code
15875 \begin_layout Plain Layout
15882 \begin_inset Flex Code
15885 \begin_layout Plain Layout
15891 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15892 \begin_inset Flex Code
15895 \begin_layout Plain Layout
15901 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15902 \begin_inset Flex Code
15905 \begin_layout Plain Layout
15912 \begin_inset Flex Code
15915 \begin_layout Plain Layout
15926 \begin_inset Flex Code
15929 \begin_layout Plain Layout
15938 \begin_layout Standard
15939 \begin_inset Flex Code
15942 \begin_layout Plain Layout
15948 定義には以下の項目を入れることができます.
15951 \begin_layout Description
15954 \begin_inset Flex Code
15957 \begin_layout Plain Layout
15966 \begin_inset Flex Code
15969 \begin_layout Plain Layout
15977 =""] This inset will appear in the table of contents of the given type.
15978 An empty string disables.
15979 See also the OutlinerName and the IsTocCaption commands.
15980 This is only implemented for Flex insets.
15984 \begin_layout Description
15985 \begin_inset Flex Code
15988 \begin_layout Plain Layout
15995 \begin_inset Flex Code
15998 \begin_layout Plain Layout
16004 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引
16007 \begin_layout Description
16009 \begin_inset Flex Code
16012 \begin_layout Plain Layout
16019 \begin_inset CommandInset ref
16021 reference "subsec:段落様式"
16028 \begin_layout Description
16029 \begin_inset Flex Code
16032 \begin_layout Plain Layout
16039 \begin_inset CommandInset ref
16041 reference "subsec:段落様式の国際化"
16048 \begin_layout Description
16049 \begin_inset Flex Code
16052 \begin_layout Plain Layout
16059 \begin_inset Flex Code
16062 \begin_layout Plain Layout
16068 ] 差込枠の背景色.使用できる色名一覧は
16069 \begin_inset CommandInset ref
16071 reference "chap:色名"
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
16128 \begin_inset CommandInset ref
16130 reference "subsec:段落様式"
16134 参照のこと.完全な型を指定する必要があることに注意してください.例:
16135 \begin_inset Flex Code
16138 \begin_layout Plain Layout
16139 CopyStyle Flex:<名称>
16147 \begin_layout Description
16148 \begin_inset Flex Code
16151 \begin_layout Plain Layout
16158 \begin_inset Flex Code
16161 \begin_layout Plain Layout
16170 \begin_inset space \thinspace{}
16174 \begin_inset Flex Code
16177 \begin_layout Plain Layout
16183 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
16186 \begin_layout Description
16187 \begin_inset Flex Code
16190 \begin_layout Plain Layout
16196 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
16197 \begin_inset Flex Code
16200 \begin_layout Plain Layout
16207 \begin_inset Flex Code
16210 \begin_layout Plain Layout
16217 \begin_inset Flex Code
16220 \begin_layout Plain Layout
16226 のいずれかを指定することができます.脚註は通常
16227 \begin_inset Flex Code
16230 \begin_layout Plain Layout
16236 を使用し,\SpecialChar TeX
16238 \begin_inset Flex Code
16241 \begin_layout Plain Layout
16248 \begin_inset Flex Code
16251 \begin_layout Plain Layout
16260 \begin_layout Description
16261 \begin_inset Flex Code
16264 \begin_layout Plain Layout
16271 \begin_inset Flex Code
16274 \begin_layout Plain Layout
16281 \begin_inset space \thinspace{}
16285 \begin_inset Flex Code
16288 \begin_layout Plain Layout
16297 \begin_inset Flex Code
16300 \begin_layout Plain Layout
16307 \begin_inset Flex Code
16310 \begin_layout Plain Layout
16316 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
16318 \begin_inset Flex Code
16321 \begin_layout Plain Layout
16330 \begin_inset Flex Code
16333 \begin_layout Plain Layout
16341 タグの後の空白(改行文字を含む)を無視するものと仮定します.
16344 \begin_layout Description
16345 \begin_inset Flex Code
16348 \begin_layout Plain Layout
16355 \begin_inset Flex Code
16358 \begin_layout Plain Layout
16367 \begin_layout Description
16368 \begin_inset Flex Code
16371 \begin_layout Plain Layout
16382 \begin_inset CommandInset ref
16384 reference "subsec:フォント指定"
16388 を参照.このフォントを定義すると自動的に
16389 \begin_inset Flex Code
16392 \begin_layout Plain Layout
16398 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
16399 \begin_inset Flex Code
16402 \begin_layout Plain Layout
16408 を定義しなくてはならないことに注意してください.
16411 \begin_layout Description
16412 \begin_inset Flex Code
16415 \begin_layout Plain Layout
16416 FixedWidthPreambleEncoding
16422 \begin_inset Flex Code
16425 \begin_layout Plain Layout
16434 \begin_inset space \thinspace{}
16438 \begin_inset Flex Code
16441 \begin_layout Plain Layout
16448 \begin_inset Flex Code
16451 \begin_layout Plain Layout
16458 \begin_inset Flex Code
16461 \begin_layout Plain Layout
16467 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
16475 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
16476 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
16477 やLua\SpecialChar TeX
16478 のようなUnicodeを完全に解する\SpecialChar LaTeX
16483 \begin_layout Description
16484 \begin_inset Flex Code
16487 \begin_layout Plain Layout
16488 ForceLocalFontSwitch
16494 \begin_inset Flex Code
16497 \begin_layout Plain Layout
16506 \begin_inset space \thinspace{}
16510 \begin_inset Flex Code
16513 \begin_layout Plain Layout
16519 ] babel使用時に,常にローカルフォント切替(
16520 \begin_inset Flex Code
16523 \begin_layout Plain Layout
16532 \begin_inset Flex Code
16535 \begin_layout Plain Layout
16546 \begin_layout Description
16547 \begin_inset Flex Code
16550 \begin_layout Plain Layout
16557 \begin_inset Flex Code
16560 \begin_layout Plain Layout
16569 \begin_inset space \thinspace{}
16573 \begin_inset Flex Code
16576 \begin_layout Plain Layout
16582 ] たとえば\SpecialChar TeX
16583 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
16586 \begin_layout Description
16587 \begin_inset Flex Code
16590 \begin_layout Plain Layout
16597 \begin_inset Flex Code
16600 \begin_layout Plain Layout
16609 \begin_inset space \thinspace{}
16613 \begin_inset Flex Code
16616 \begin_layout Plain Layout
16622 ] \SpecialChar LaTeX
16623 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
16626 \begin_layout Description
16627 \begin_inset Flex Code
16630 \begin_layout Plain Layout
16637 \begin_inset Flex Code
16640 \begin_layout Plain Layout
16649 \begin_inset space \thinspace{}
16653 \begin_inset Flex Code
16656 \begin_layout Plain Layout
16662 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
16665 \begin_layout Description
16666 \begin_inset Flex Code
16669 \begin_layout Plain Layout
16678 \begin_inset Flex Code
16681 \begin_layout Plain Layout
16690 \begin_inset space \thinspace{}
16694 \begin_inset Flex Code
16697 \begin_layout Plain Layout
16704 \begin_inset CommandInset ref
16706 reference "subsec:段落様式"
16713 \begin_layout Description
16714 \begin_inset Flex Code
16717 \begin_layout Plain Layout
16723 これらは,XHTML出力で使用されます.
16724 \begin_inset CommandInset ref
16726 reference "sec:XHTML出力のタグ"
16733 \begin_layout Description
16734 \begin_inset Flex Code
16737 \begin_layout Plain Layout
16744 \begin_inset Flex Code
16747 \begin_layout Plain Layout
16756 \begin_inset space \thinspace{}
16760 \begin_inset Flex Code
16763 \begin_layout Plain Layout
16771 Whether to include the contents of this inset in the strings generated for
16772 the `Outline' pane for all table of contents, regardless of the AddToToc
16774 One would not, for example, want the content of a footnote in a section
16775 header to be included in the TOC displayed in the outline, but one would
16776 normally want the content of a character style displayed.
16777 Default is false: not to includ
16779 e「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょう
16780 が,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
16783 \begin_layout Description
16786 \begin_inset Flex Code
16789 \begin_layout Plain Layout
16798 \begin_inset Flex Code
16801 \begin_layout Plain Layout
16811 \begin_inset space \thinspace{}
16815 \begin_inset Flex Code
16818 \begin_layout Plain Layout
16826 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
16827 of its contents in its item in the table of contents.
16828 Otherwise, only the label appears.
16831 \begin_layout Description
16832 \begin_inset Flex Code
16835 \begin_layout Plain Layout
16844 \begin_inset Flex Code
16847 \begin_layout Plain Layout
16856 \begin_inset space \thinspace{}
16860 \begin_inset Flex Code
16863 \begin_layout Plain Layout
16870 \begin_inset CommandInset ref
16872 reference "subsec:段落様式"
16879 \begin_layout Description
16880 \begin_inset Flex Code
16883 \begin_layout Plain Layout
16890 \begin_inset CommandInset ref
16892 reference "subsec:フォント指定"
16896 節を参照.非効率を回避するため,この定義は
16897 \begin_inset Flex Code
16900 \begin_layout Plain Layout
16909 \begin_layout Description
16910 \begin_inset Flex Code
16913 \begin_layout Plain Layout
16920 \begin_inset Flex Code
16923 \begin_layout Plain Layout
16930 \begin_inset Quotes erd
16934 \begin_inset Quotes erd
16941 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16942 コードや派生枝),ラベルが動的に変更されます.
16945 \begin_layout Description
16946 \begin_inset Flex Code
16949 \begin_layout Plain Layout
16956 \begin_inset CommandInset ref
16958 reference "subsec:段落様式の国際化"
16965 \begin_layout Description
16966 \begin_inset Flex Code
16969 \begin_layout Plain Layout
16976 \begin_inset Flex Code
16979 \begin_layout Plain Layout
16985 ] 対応する\SpecialChar LaTeX
16986 関連物の名称.環境名ないしはコマンド名.
16989 \begin_layout Description
16990 \begin_inset Flex Code
16993 \begin_layout Plain Layout
17000 \begin_inset Flex Code
17003 \begin_layout Plain Layout
17014 \begin_inset Flex Code
17017 \begin_layout Plain Layout
17024 \begin_inset Flex Code
17027 \begin_layout Plain Layout
17033 のような括弧対を含む.このパラメータは\SpecialChar LyX
17034 内部から変更することはできません(変更可能なパラメータには
17035 \begin_inset Flex Code
17038 \begin_layout Plain Layout
17044 を使用してください).これは,全ての\SpecialChar LaTeX
17046 \begin_inset Flex Code
17049 \begin_layout Plain Layout
17058 \begin_layout Description
17059 \begin_inset Flex Code
17062 \begin_layout Plain Layout
17069 \begin_inset Flex Code
17072 \begin_layout Plain Layout
17073 Command, Environment, None
17078 ] 様式がどのように\SpecialChar LaTeX
17083 \begin_layout Plain Layout
17084 これらのルールはSGMLクラスにも適用されるので,
17085 \begin_inset Flex Code
17088 \begin_layout Plain Layout
17094 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
17103 \begin_layout Description
17104 \begin_inset Flex Code
17107 \begin_layout Plain Layout
17116 \begin_layout Description
17117 \begin_inset Flex Code
17120 \begin_layout Plain Layout
17127 \begin_inset Flex Code
17130 \begin_layout Plain Layout
17137 {\SpecialChar ldots
17146 \begin_layout Description
17147 \begin_inset Flex Code
17150 \begin_layout Plain Layout
17157 \begin_inset Flex Code
17160 \begin_layout Plain Layout
17167 }\SpecialChar ldots
17182 \begin_layout Standard
17183 上記最後のいくつかをまとめると,\SpecialChar LaTeX
17184 出力は,\SpecialChar LaTeX
17188 \begin_layout LyX-Code
17191 LatexName[LatexParam]{\SpecialChar ldots
17195 \begin_layout Standard
17199 \begin_layout LyX-Code
17202 begin{LatexName}[LatexParam] \SpecialChar ldots
17208 \begin_layout Standard
17213 \begin_layout Description
17214 \begin_inset Flex Code
17217 \begin_layout Plain Layout
17224 \begin_inset Flex Code
17227 \begin_layout Plain Layout
17233 ] 様式の内容の最初に置かれる文字列.出力中の改行は
17234 \begin_inset Flex Code
17237 \begin_layout Plain Layout
17246 \begin_layout Description
17247 \begin_inset Flex Code
17250 \begin_layout Plain Layout
17257 \begin_inset Flex Code
17260 \begin_layout Plain Layout
17267 \begin_inset Flex Code
17270 \begin_layout Plain Layout
17277 \begin_inset Flex Code
17280 \begin_layout Plain Layout
17287 \begin_inset Flex Code
17290 \begin_layout Plain Layout
17296 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
17297 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
17298 \begin_inset Flex Code
17301 \begin_layout Plain Layout
17308 \begin_inset Flex Code
17311 \begin_layout Plain Layout
17318 \begin_inset Flex Code
17321 \begin_layout Plain Layout
17332 \begin_inset Flex Code
17335 \begin_layout Plain Layout
17346 \begin_inset Flex Code
17349 \begin_layout Plain Layout
17360 \begin_inset Flex Code
17363 \begin_layout Plain Layout
17374 \begin_inset Flex Code
17377 \begin_layout Plain Layout
17387 設定すれば,真に設定することができます.
17390 \begin_layout Description
17391 \begin_inset Flex Code
17394 \begin_layout Plain Layout
17401 \begin_inset Flex Code
17404 \begin_layout Plain Layout
17413 \begin_inset space \thinspace{}
17417 \begin_inset Flex Code
17420 \begin_layout Plain Layout
17426 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
17427 \begin_inset Flex Code
17430 \begin_layout Plain Layout
17437 \begin_inset Flex Code
17440 \begin_layout Plain Layout
17447 \begin_inset Flex Code
17450 \begin_layout Plain Layout
17460 指定されれば,他の値に指定し直すことができます.既定値は真です.
17463 \begin_layout Description
17464 \begin_inset Flex Code
17467 \begin_layout Plain Layout
17474 \begin_inset Flex Code
17477 \begin_layout Plain Layout
17486 \begin_inset space \thinspace{}
17490 \begin_inset Flex Code
17493 \begin_layout Plain Layout
17500 \begin_inset Flex Code
17503 \begin_layout Plain Layout
17511 するか否か(註:当該コマンド自身をprotectするかどうかでは
17518 \begin_layout Description
17519 \begin_inset Flex Code
17522 \begin_layout Plain Layout
17529 \begin_inset Flex Code
17532 \begin_layout Plain Layout
17539 \begin_inset Flex Code
17542 \begin_layout Plain Layout
17551 \begin_layout Description
17552 \begin_inset Flex Code
17555 \begin_layout Plain Layout
17562 \begin_inset Flex Code
17565 \begin_layout Plain Layout
17572 \begin_inset Flex Code
17575 \begin_layout Plain Layout
17582 \begin_inset Flex Code
17585 \begin_layout Plain Layout
17592 \begin_inset Flex Code
17595 \begin_layout Plain Layout
17601 の改名を,後方互換性を維持しながら行うために用いられます.
17604 \begin_layout Description
17605 \begin_inset Flex Code
17608 \begin_layout Plain Layout
17615 \begin_inset Flex Code
17618 \begin_layout Plain Layout
17627 \begin_inset space \thinspace{}
17631 \begin_inset Flex Code
17634 \begin_layout Plain Layout
17641 \begin_inset CommandInset ref
17643 reference "subsec:段落様式"
17650 \begin_layout Description
17651 \begin_inset Flex Code
17654 \begin_layout Plain Layout
17663 \begin_inset Flex Code
17666 \begin_layout Plain Layout
17675 \begin_inset space \thinspace{}
17679 \begin_inset Flex Code
17682 \begin_layout Plain Layout
17689 \begin_inset CommandInset ref
17691 reference "subsec:段落様式"
17698 \begin_layout Description
17699 \begin_inset Flex Code
17702 \begin_layout Plain Layout
17709 \begin_inset CommandInset ref
17711 reference "subsec:段落様式"
17718 \begin_layout Description
17719 \begin_inset Flex Code
17722 \begin_layout Plain Layout
17729 \begin_inset Flex Code
17732 \begin_layout Plain Layout
17738 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
17741 \begin_layout Description
17742 \begin_inset Flex Code
17745 \begin_layout Plain Layout
17752 \begin_inset Flex Code
17755 \begin_layout Plain Layout
17762 \begin_inset CommandInset ref
17764 reference "subsec:段落様式"
17771 \begin_layout Description
17772 \begin_inset Flex Code
17775 \begin_layout Plain Layout
17782 \begin_inset Flex Code
17785 \begin_layout Plain Layout
17794 \begin_inset space \thinspace{}
17798 \begin_inset Flex Code
17801 \begin_layout Plain Layout
17808 \begin_inset Flex Code
17811 \begin_layout Plain Layout
17817 タグで定義された)この様式の\SpecialChar LaTeX
17819 \begin_inset Flex Code
17822 \begin_layout Plain Layout
17828 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
17831 \begin_layout Description
17832 \begin_inset Flex Code
17835 \begin_layout Plain Layout
17842 \begin_inset Flex Code
17845 \begin_layout Plain Layout
17852 \begin_inset space \thinspace{}
17856 \begin_inset Flex Code
17859 \begin_layout Plain Layout
17867 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
17868 \begin_inset Note Note
17871 \begin_layout Plain Layout
17872 This is outdated: The default changed from 1 to 0
17880 \begin_layout Description
17881 \begin_inset Flex Code
17884 \begin_layout Plain Layout
17891 \begin_inset Flex Code
17894 \begin_layout Plain Layout
17900 ] 様式の内容の最後に置かれる文字列.出力中の改行は
17901 \begin_inset Flex Code
17904 \begin_layout Plain Layout
17913 \begin_layout Description
17914 \begin_inset Flex Code
17917 \begin_layout Plain Layout
17924 \begin_inset Flex Code
17927 \begin_layout Plain Layout
17934 \begin_inset space \thinspace{}
17938 \begin_inset Flex Code
17941 \begin_layout Plain Layout
17949 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17952 \begin_layout Subsection
17954 \begin_inset CommandInset label
17963 \begin_layout Standard
17965 \begin_inset Flex MenuItem
17968 \begin_layout Plain Layout
17975 \begin_inset Flex MenuItem
17978 \begin_layout Plain Layout
17984 ・\SpecialChar ldots
17985 )を定義することが必要です.標準的なカウンタは
17986 \begin_inset Flex Code
17989 \begin_layout Plain Layout
17995 ファイルに含まれているので,作業中のレイアウトファイルに
17998 \begin_layout LyX-Code
17999 Input stdcounters.inc
18002 \begin_layout Standard
18003 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
18006 \begin_layout LyX-Code
18010 \begin_layout Standard
18012 \begin_inset Flex Code
18015 \begin_layout Plain Layout
18021 」は,実際のカウンタ名で置き換えます.また,宣言は「
18022 \begin_inset Flex Code
18025 \begin_layout Plain Layout
18034 \begin_layout Standard
18035 以下のパラメータを使用することができます.
18038 \begin_layout Description
18039 \begin_inset Flex Code
18042 \begin_layout Plain Layout
18049 \begin_inset Flex Code
18052 \begin_layout Plain Layout
18058 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
18061 \begin_layout Description
18062 \begin_inset Flex Code
18065 \begin_layout Plain Layout
18066 LabelString [文字列=""]
18071 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
18072 \begin_inset Flex Code
18075 \begin_layout Plain Layout
18076 LabelStringAppendix
18081 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
18085 \begin_layout Itemize
18086 \begin_inset Flex Code
18089 \begin_layout Plain Layout
18098 \begin_inset Flex Code
18101 \begin_layout Plain Layout
18108 \begin_inset Flex Code
18111 \begin_layout Plain Layout
18118 \begin_inset Newline linebreak
18122 \begin_inset Flex Code
18125 \begin_layout Plain Layout
18126 LabelStringAppendix
18134 \begin_layout Itemize
18135 カウンタ値は,\SpecialChar LaTeX
18137 \begin_inset Flex Code
18140 \begin_layout Plain Layout
18156 を用いて表現することができます.ここで
18157 \begin_inset Flex Code
18160 \begin_layout Plain Layout
18169 \begin_inset Flex Code
18172 \begin_layout Plain Layout
18178 :1, 2, 3,\SpecialChar ldots
18180 \begin_inset Flex Code
18183 \begin_layout Plain Layout
18189 :a, b, c, \SpecialChar ldots
18191 \begin_inset Flex Code
18194 \begin_layout Plain Layout
18200 :A, B, C, \SpecialChar ldots
18202 \begin_inset Flex Code
18205 \begin_layout Plain Layout
18211 :i, ii, iii, \SpecialChar ldots
18213 \begin_inset Flex Code
18216 \begin_layout Plain Layout
18222 :I, II, III\SpecialChar ldots
18227 \begin_layout Standard
18228 \begin_inset Flex Code
18231 \begin_layout Plain Layout
18237 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
18238 \begin_inset Flex Code
18241 \begin_layout Plain Layout
18248 \begin_inset Flex Code
18251 \begin_layout Plain Layout
18258 \begin_inset Newline linebreak
18262 \begin_inset Flex Code
18265 \begin_layout Plain Layout
18276 \begin_inset Flex Code
18279 \begin_layout Plain Layout
18290 \begin_layout Description
18291 \begin_inset Flex Code
18294 \begin_layout Plain Layout
18295 LabelStringAppendix
18301 \begin_inset Flex Code
18304 \begin_layout Plain Layout
18311 \begin_inset Flex Code
18314 \begin_layout Plain Layout
18320 と同様ですが,付録で使用するためのものです.
18323 \begin_layout Description
18324 \begin_inset Flex Code
18327 \begin_layout Plain Layout
18334 \begin_inset Flex Code
18337 \begin_layout Plain Layout
18344 \begin_inset Quotes erd
18348 \begin_inset Quotes erd
18351 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
18352 \begin_inset space ~
18355 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
18359 \begin_layout Description
18360 \begin_inset Flex Code
18363 \begin_layout Plain Layout
18370 \begin_inset Flex Code
18373 \begin_layout Plain Layout
18380 \begin_inset Quotes erd
18384 \begin_inset Quotes erd
18387 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
18388 \begin_inset Flex Code
18391 \begin_layout Plain Layout
18398 \begin_inset Flex Code
18401 \begin_layout Plain Layout
18410 \begin_layout Subsection
18412 \begin_inset CommandInset label
18414 name "subsec:フォント指定"
18421 \begin_layout Standard
18422 フォント指定は,以下のような形を取ります.
18425 \begin_layout LyX-Code
18441 \begin_layout LyX-Code
18445 \begin_layout LyX-Code
18449 \begin_layout Standard
18450 以下のコマンドを使用することができます.
18453 \begin_layout Description
18454 \begin_inset Flex Code
18457 \begin_layout Plain Layout
18464 \begin_inset Flex Code
18467 \begin_layout Plain Layout
18476 \begin_inset Flex Code
18479 \begin_layout Plain Layout
18486 \begin_inset Flex Code
18489 \begin_layout Plain Layout
18496 \begin_inset Flex Code
18499 \begin_layout Plain Layout
18506 \begin_inset Flex Code
18509 \begin_layout Plain Layout
18516 \begin_inset Flex Code
18519 \begin_layout Plain Layout
18526 \begin_inset Flex Code
18529 \begin_layout Plain Layout
18536 \begin_inset Flex Code
18539 \begin_layout Plain Layout
18546 \begin_inset Flex Code
18549 \begin_layout Plain Layout
18556 \begin_inset Flex Code
18559 \begin_layout Plain Layout
18566 \begin_inset Flex Code
18569 \begin_layout Plain Layout
18576 \begin_inset Flex Code
18579 \begin_layout Plain Layout
18586 \begin_inset Flex Code
18589 \begin_layout Plain Layout
18596 \begin_inset Flex Code
18599 \begin_layout Plain Layout
18606 \begin_inset Flex Code
18609 \begin_layout Plain Layout
18616 \begin_inset Flex Code
18619 \begin_layout Plain Layout
18626 \begin_inset Flex Code
18629 \begin_layout Plain Layout
18636 \begin_inset Flex Code
18639 \begin_layout Plain Layout
18646 \begin_inset Flex Code
18649 \begin_layout Plain Layout
18656 \begin_inset Flex Code
18659 \begin_layout Plain Layout
18668 \begin_layout Description
18669 \begin_inset Flex Code
18672 \begin_layout Plain Layout
18681 \begin_inset Flex Code
18684 \begin_layout Plain Layout
18693 \begin_inset Flex Code
18696 \begin_layout Plain Layout
18703 \begin_inset Flex Code
18706 \begin_layout Plain Layout
18715 \begin_layout Description
18716 \begin_inset Flex Code
18719 \begin_layout Plain Layout
18726 \begin_inset Flex Code
18729 \begin_layout Plain Layout
18736 \begin_inset Flex Code
18739 \begin_layout Plain Layout
18746 \begin_inset Flex Code
18749 \begin_layout Plain Layout
18756 \begin_inset Flex Code
18759 \begin_layout Plain Layout
18766 \begin_inset Flex Code
18769 \begin_layout Plain Layout
18776 \begin_inset Flex Code
18779 \begin_layout Plain Layout
18786 \begin_inset Flex Code
18789 \begin_layout Plain Layout
18796 \begin_inset Flex Code
18799 \begin_layout Plain Layout
18806 \begin_inset Flex Code
18809 \begin_layout Plain Layout
18816 \begin_inset Flex Code
18819 \begin_layout Plain Layout
18826 \begin_inset Flex Code
18829 \begin_layout Plain Layout
18836 \begin_inset Flex Code
18839 \begin_layout Plain Layout
18846 \begin_inset Flex Code
18849 \begin_layout Plain Layout
18855 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
18856 \begin_inset Newline newline
18860 \begin_inset Flex Code
18863 \begin_layout Plain Layout
18870 \begin_inset Flex Code
18873 \begin_layout Plain Layout
18879 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
18881 \begin_inset Flex Code
18884 \begin_layout Plain Layout
18890 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
18893 \begin_layout Description
18894 \begin_inset Flex Code
18897 \begin_layout Plain Layout
18906 \begin_inset Flex Code
18909 \begin_layout Plain Layout
18918 \begin_inset Flex Code
18921 \begin_layout Plain Layout
18930 \begin_layout Description
18931 \begin_inset Flex Code
18934 \begin_layout Plain Layout
18943 \begin_inset Flex Code
18946 \begin_layout Plain Layout
18955 \begin_inset Flex Code
18958 \begin_layout Plain Layout
18965 \begin_inset Flex Code
18968 \begin_layout Plain Layout
18975 \begin_inset Flex Code
18978 \begin_layout Plain Layout
18987 \begin_layout Description
18988 \begin_inset Flex Code
18991 \begin_layout Plain Layout
18998 \begin_inset Flex Code
19001 \begin_layout Plain Layout
19008 \begin_inset Flex Code
19011 \begin_layout Plain Layout
19018 \begin_inset Flex Code
19021 \begin_layout Plain Layout
19030 \begin_inset Flex Code
19033 \begin_layout Plain Layout
19040 \begin_inset Flex Code
19043 \begin_layout Plain Layout
19050 \begin_inset Flex Code
19053 \begin_layout Plain Layout
19060 \begin_inset Flex Code
19063 \begin_layout Plain Layout
19070 \begin_inset Flex Code
19073 \begin_layout Plain Layout
19082 \begin_layout Subsection
19085 \begin_inset CommandInset label
19087 name "subsec:Citation-engine-description"
19091 Citation engine description
19094 \begin_layout Standard
19098 \begin_inset Flex Code
19101 \begin_layout Plain Layout
19109 blocks, as used mainly in cite engine files (see
19110 \begin_inset CommandInset ref
19112 reference "subsec:Cite-Engine-Files"
19119 ), define the citation commands provided by a specific
19120 \begin_inset Quotes eld
19124 \begin_inset Quotes erd
19128 A cite engine, in \SpecialChar LyX
19129 terms, is way specific way to format citations, using
19130 numbers, author names and/or years.
19131 Currently, \SpecialChar LyX
19132 supports three such engine types, namely:
19135 \begin_layout Enumerate
19138 \begin_inset Flex Code
19141 \begin_layout Plain Layout
19149 : the default Bib\SpecialChar TeX
19150 way to format citations, a simple numeric style (e.
19151 \begin_inset space \thinspace{}
19155 \begin_inset Quotes eld
19159 \begin_inset Quotes erd
19165 \begin_layout Enumerate
19168 \begin_inset Flex Code
19171 \begin_layout Plain Layout
19179 : Harvard-styled citations using author names and publication year (e.
19180 \begin_inset space \thinspace{}
19184 \begin_inset Quotes eld
19187 Smith and Miller (2017b)
19188 \begin_inset Quotes erd
19194 \begin_layout Enumerate
19197 \begin_inset Flex Code
19200 \begin_layout Plain Layout
19208 : extended numerical citations that also allow for author or title next
19210 \begin_inset space \thinspace{}
19214 \begin_inset Quotes eld
19217 Smith and Miller [1]
19218 \begin_inset Quotes erd
19224 \begin_layout Standard
19227 \begin_inset Flex Code
19230 \begin_layout Plain Layout
19238 blocks look like this:
19241 \begin_layout LyX-Code
19247 \begin_layout LyX-Code
19253 \begin_layout LyX-Code
19259 \begin_layout LyX-Code
19262 citeyearpar[][]=parencite*
19265 \begin_layout LyX-Code
19271 \begin_layout LyX-Code
19277 \begin_layout Standard
19281 \begin_inset Flex Code
19284 \begin_layout Plain Layout
19292 denotes the engine.
19293 The individual lines respectively define a cite command or cite command
19294 paradigm supported by this engine.
19295 The line can be as simple as a cite command that is used both to name the
19296 respective \SpecialChar LyX
19297 command and the \SpecialChar LaTeX
19298 output or more complex in order to differentiate
19300 The full syntax is:
19303 \begin_layout LyX-Code
19306 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
19309 \begin_layout Itemize
19312 \begin_inset Flex Code
19315 \begin_layout Plain Layout
19323 : The name as used in the
19324 \begin_inset Flex Code
19327 \begin_layout Plain Layout
19339 \begin_layout Standard
19342 For portability reasons, we try to use the same name for same-formatted
19343 commands in different cite packages (thus many names stem from natbib,
19344 and thus we need to differentiate a
19345 \begin_inset Flex Code
19348 \begin_layout Plain Layout
19356 sometimes, if the \SpecialChar LaTeX
19357 command names differ).
19361 \begin_layout Itemize
19364 \begin_inset Flex Code
19367 \begin_layout Plain Layout
19375 : a (comma-separated) list of commands that fall back to the given
19376 \begin_inset Flex Code
19379 \begin_layout Plain Layout
19387 in the current engine.
19388 This eases the switch of citation packages and engines.
19390 \begin_inset Flex Code
19393 \begin_layout Plain Layout
19402 \begin_inset Flex Code
19405 \begin_layout Plain Layout
19413 in layout definitions.
19416 \begin_layout Itemize
19419 \begin_inset Flex Code
19422 \begin_layout Plain Layout
19430 : The actual \SpecialChar LaTeX
19431 command that is output.
19435 \begin_layout Standard
19438 \begin_inset Flex Code
19441 \begin_layout Plain Layout
19450 \begin_inset Flex Code
19453 \begin_layout Plain Layout
19463 \begin_inset Flex Code
19466 \begin_layout Plain Layout
19475 \begin_inset Flex Code
19478 \begin_layout Plain Layout
19486 will be output to \SpecialChar LaTeX
19490 \begin_layout Standard
19496 \begin_layout Itemize
19499 Capitalization indicates that the command also has a capitalized form (
19500 \begin_inset Flex Code
19503 \begin_layout Plain Layout
19515 \begin_inset Flex Code
19518 \begin_layout Plain Layout
19529 These usually enforce up-casing of name prefixes (
19534 \begin_inset Formula $\Rightarrow$
19544 \begin_layout Itemize
19548 \begin_inset Flex Code
19551 \begin_layout Plain Layout
19559 indicate the number of optional arguments (there can be 0–2).
19562 \begin_layout Itemize
19566 \begin_inset Flex Code
19569 \begin_layout Plain Layout
19577 indicates there is a starred version of the command (
19578 \begin_inset Flex Code
19581 \begin_layout Plain Layout
19593 \begin_inset Flex Code
19596 \begin_layout Plain Layout
19611 \begin_layout Standard
19614 By default, the starred version means: Output all authors even if it should
19616 \begin_inset Quotes eld
19620 \begin_inset Quotes erd
19624 \begin_inset Flex Code
19627 \begin_layout Plain Layout
19638 \begin_layout Standard
19641 If the star has a different meaning for a given command, it can be specified
19643 \begin_inset Flex Code
19646 \begin_layout Plain Layout
19649 <!_stardesc!_stardesctooltip>
19655 Maximal two translatable macro keywords, marked by the prefix
19656 \begin_inset Flex Code
19659 \begin_layout Plain Layout
19668 The first points to the string that replaces the
19669 \begin_inset Quotes eld
19673 \begin_inset Quotes erd
19676 checkbox label in the citation dialog, the second one to an optional tool
19677 tip for this checkbox.
19681 \begin_layout Standard
19684 Note that these two macros have to be defined in a
19685 \begin_inset Flex Code
19688 \begin_layout Plain Layout
19696 (see next section), dropping the
19697 \begin_inset Flex Code
19700 \begin_layout Plain Layout
19708 from the prefix, like this:
19711 \begin_layout LyX-Code
19714 _stardesc Sta&rred command label
19717 \begin_layout LyX-Code
19720 _stardesctooltip Tooltip for the starred command checkbox.
19724 \begin_layout Itemize
19728 \begin_inset Flex Code
19731 \begin_layout Plain Layout
19739 indicates that this command features
19740 \begin_inset Quotes eld
19743 qualified citation lists
19744 \begin_inset Quotes erd
19752 -specific feature for multi-reference citations where an individual pre-
19753 and postnote can be given to each reference in the list.
19754 Please refer to the
19758 manual for details.
19761 \begin_layout Subsection
19762 \begin_inset CommandInset label
19764 name "subsec:引用書式指定"
19771 \begin_layout Standard
19772 (引用ダイアログやツールチップなどの)\SpecialChar LyX
19773 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
19774 \begin_inset Flex Code
19777 \begin_layout Plain Layout
19783 ブロックが使用されています.このブロックは,以下のような形をしています.
19786 \begin_layout LyX-Code
19790 \begin_layout LyX-Code
19794 \begin_layout LyX-Code
19798 \begin_layout LyX-Code
19802 \begin_layout Standard
19808 \begin_layout LyX-Code
19814 \begin_layout LyX-Code
19820 \begin_layout LyX-Code
19826 \begin_layout LyX-Code
19832 \begin_layout Standard
19835 In the first case, the individual lines
19838 \begin_layout Standard
19839 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
19841 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
19842 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
19844 \begin_inset Flex Code
19847 \begin_layout Plain Layout
19853 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
19857 \begin_layout Standard
19860 In the second case, the lines define how a specific citation command (in
19862 \begin_inset Flex Code
19865 \begin_layout Plain Layout
19876 \begin_inset Flex Code
19879 \begin_layout Plain Layout
19889 ) is to be displayed on the citation inset label, in the citation dialog,
19890 menu or XHTML output.
19892 defines such formats for the citation style variants it supports via
19894 Document\SpecialChar menuseparator
19895 Setting\SpecialChar menuseparator
19896 Bibliography\SpecialChar ldots
19900 \begin_inset Flex Code
19903 \begin_layout Plain Layout
19911 files that are shipped with \SpecialChar LyX
19913 \begin_inset CommandInset ref
19915 reference "subsec:Cite-Engine-Files"
19925 \begin_layout Standard
19926 文書クラスにインクルードされています.
19929 \begin_layout Standard
19930 この定義は,Bib\SpecialChar TeX
19931 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
19932 \begin_inset Flex Code
19935 \begin_layout Plain Layout
19942 \begin_inset Flex Code
19945 \begin_layout Plain Layout
19951 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
19954 \begin_layout LyX-Code
19956 \begin_inset Quotes eld
19960 \begin_inset Quotes erd
19966 \begin_layout Standard
19967 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
19970 \begin_layout Standard
19971 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
19972 \begin_inset Flex Code
19975 \begin_layout Plain Layout
19977 \begin_inset space ~
19985 のように,条件付きの構成を使用することができます.これは,
19986 \begin_inset Flex Code
19989 \begin_layout Plain Layout
19996 \begin_inset space ~
19999 」とvolumeキーを出力するという意味です.また,
20000 \begin_inset Newline newline
20004 \begin_inset Flex Code
20007 \begin_layout Plain Layout
20008 {%author%[[%author%]][[%editor%, ed.]]}
20014 \begin_inset Newline newline
20017 のように,条件の中にelse節を含めることも可能です.ここでは,もし
20018 \begin_inset Flex Code
20021 \begin_layout Plain Layout
20027 キーが存在するならば出力され,そうでなければeditorキーと「,
20028 \begin_inset space ~
20031 ed.」が出力されます.ここでもキーは,
20032 \begin_inset Flex Code
20035 \begin_layout Plain Layout
20041 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
20042 \begin_inset Flex Code
20045 \begin_layout Plain Layout
20052 \begin_inset Flex Code
20055 \begin_layout Plain Layout
20064 \begin_layout Standard
20068 \begin_layout Standard
20071 Next to the entry keys, there are some special keys that can be used for
20072 these conditionals:
20075 \begin_layout Itemize
20078 \begin_inset Flex Code
20081 \begin_layout Plain Layout
20084 {%dialog%[[true]][[false]]}
20090 \begin_inset Quotes eld
20094 \begin_inset Quotes erd
20097 part for dialogs and menus, the
20098 \begin_inset Quotes eld
20102 \begin_inset Quotes erd
20105 part for other contexts (workarea, export)
20108 \begin_layout Itemize
20111 \begin_inset Flex Code
20114 \begin_layout Plain Layout
20117 {%export%[[true]][[false]]}
20123 \begin_inset Quotes eld
20127 \begin_inset Quotes erd
20130 part for export and menus, the
20131 \begin_inset Quotes eld
20135 \begin_inset Quotes erd
20138 part for other contexts (workarea, dialog)
20141 \begin_layout Itemize
20144 \begin_inset Flex Code
20147 \begin_layout Plain Layout
20156 \begin_inset Quotes eld
20160 \begin_inset Quotes erd
20163 part if another item follows (e.
20164 \begin_inset space \thinspace{}
20167 g., in a citation with multiple keys)
20170 \begin_layout Itemize
20173 \begin_inset Flex Code
20176 \begin_layout Plain Layout
20179 {%second%[[true]][[false]]}
20185 \begin_inset Quotes eld
20189 \begin_inset Quotes erd
20192 if this is the second of multiple items, else the
20193 \begin_inset Quotes eld
20197 \begin_inset Quotes erd
20203 \begin_layout Itemize
20206 \begin_inset Flex Code
20209 \begin_layout Plain Layout
20212 {%ifstar%[[true]][[false]]}
20218 \begin_inset Quotes eld
20222 \begin_inset Quotes erd
20225 part for starred citation commands (such as
20226 \begin_inset Flex Code
20229 \begin_layout Plain Layout
20239 ), the false part for unstarred
20242 \begin_layout Itemize
20245 \begin_inset Flex Code
20248 \begin_layout Plain Layout
20251 {%ifentrytype:<type>%[[true]][[false]]}
20257 \begin_inset Quotes eld
20261 \begin_inset Quotes erd
20264 if the current entry type matches
20265 \begin_inset Flex Code
20268 \begin_layout Plain Layout
20276 , else the false part (e.g., in a citation definition:
20277 \begin_inset Flex Code
20280 \begin_layout Plain Layout
20283 {%ifentrytype:book%[[this is a book]][[this is no book]]}
20291 \begin_layout Itemize
20294 \begin_inset Flex Code
20297 \begin_layout Plain Layout
20300 {%ifmultiple:<authortype>%[[true]][[false]]}
20306 \begin_inset Quotes eld
20310 \begin_inset Quotes erd
20313 if the current author type (author, editor etc.) has multiple authors, else
20314 the false part (e.g., in a bibliography definition:
20315 \begin_inset Flex Code
20318 \begin_layout Plain Layout
20321 {%ifmultiple:editor%[[eds.]][[ed.]]}
20329 \begin_layout Itemize
20332 \begin_inset Flex Code
20335 \begin_layout Plain Layout
20338 {%ifqualified%[[true]][[false]]}
20344 \begin_inset Quotes eld
20348 \begin_inset Quotes erd
20351 part if the current citation is a qualified citation list (a specific
20355 format for multi-reference citations), the false part if this is not the
20359 \begin_layout Standard
20363 \begin_inset Flex Code
20366 \begin_layout Plain Layout
20374 prints the author key as it is recorded in the bibliography file.
20375 This might not be what you want, since it will result in a string such
20377 \begin_inset Quotes eld
20380 Miller, Peter and Smith, Mary and White, Jane
20381 \begin_inset Quotes erd
20385 \begin_inset Quotes eld
20389 \begin_inset Quotes erd
20392 is used by Bib\SpecialChar TeX
20393 to delimit authors).
20395 therefore provides some methods to get properly formatted name lists (which
20396 will also get translated).
20397 The following keys are provided:
20400 \begin_layout Enumerate
20403 For name lists with pre- and surname, suitable for the main authors/editors
20404 of a bibliography item.
20406 \begin_inset Flex Code
20409 \begin_layout Plain Layout
20417 part denotes the kind of list that is requested (e.g.
20419 \begin_inset Flex Code
20422 \begin_layout Plain Layout
20434 \begin_layout Itemize
20437 \begin_inset Flex Code
20440 \begin_layout Plain Layout
20443 %abbrvnames:<nametype>%
20448 : Provides a name list which is abbreviated (with
20449 \begin_inset Quotes eld
20453 \begin_inset Quotes erd
20457 \begin_inset Flex Code
20460 \begin_layout Plain Layout
20471 \begin_layout Itemize
20474 \begin_inset Flex Code
20477 \begin_layout Plain Layout
20480 %fullnames:<nametype>%
20485 : Provides a full name list (never abbreviated with
20486 \begin_inset Quotes eld
20490 \begin_inset Quotes erd
20496 \begin_layout Itemize
20499 \begin_inset Flex Code
20502 \begin_layout Plain Layout
20505 %forceabbrvnames:<nametype>%
20510 : Provides a name list which is always abbreviated (with
20511 \begin_inset Quotes eld
20515 \begin_inset Quotes erd
20519 \begin_inset Flex Code
20522 \begin_layout Plain Layout
20534 \begin_layout Enumerate
20537 Alternative name lists with pre- and surname, if the order of pre- and surname
20538 inside the bibliography item differs (as in:
20539 \begin_inset Quotes eld
20542 Miller, John: Some text, in: Mary Smith, ed.: A volume
20543 \begin_inset Quotes erd
20550 \begin_layout Itemize
20553 \begin_inset Flex Code
20556 \begin_layout Plain Layout
20559 %abbrvbynames:<nametype>%
20564 : Provides a name list which is abbreviated (with
20565 \begin_inset Quotes eld
20569 \begin_inset Quotes erd
20573 \begin_inset Flex Code
20576 \begin_layout Plain Layout
20587 \begin_layout Itemize
20590 \begin_inset Flex Code
20593 \begin_layout Plain Layout
20596 %fullbynames:<nametype>%
20601 : Provides a full name list (never abbreviated with
20602 \begin_inset Quotes eld
20606 \begin_inset Quotes erd
20612 \begin_layout Itemize
20615 \begin_inset Flex Code
20618 \begin_layout Plain Layout
20621 %forceabbrvbynames:<nametype>%
20626 : Provides a name list which is always abbreviated (with
20627 \begin_inset Quotes eld
20631 \begin_inset Quotes erd
20635 \begin_inset Flex Code
20638 \begin_layout Plain Layout
20650 \begin_layout Enumerate
20653 And finally name lists which consist of family names only, as used in author-yea
20655 these do not take a
20656 \begin_inset Flex Code
20659 \begin_layout Plain Layout
20667 part, but always return either an author list or, if this does not exist,
20668 an editor list (as common in author-year labels):
20672 \begin_layout Itemize
20675 \begin_inset Flex Code
20678 \begin_layout Plain Layout
20686 : Provides a name list which is abbreviated (with
20687 \begin_inset Quotes eld
20691 \begin_inset Quotes erd
20695 \begin_inset Flex Code
20698 \begin_layout Plain Layout
20709 \begin_layout Itemize
20712 \begin_inset Flex Code
20715 \begin_layout Plain Layout
20723 : Provides a full name list (never abbreviated with
20724 \begin_inset Quotes eld
20728 \begin_inset Quotes erd
20734 \begin_layout Itemize
20737 \begin_inset Flex Code
20740 \begin_layout Plain Layout
20743 %forceabbrvciteauthor%
20748 : Provides a name list which is always abbreviated (with
20749 \begin_inset Quotes eld
20753 \begin_inset Quotes erd
20757 \begin_inset Flex Code
20760 \begin_layout Plain Layout
20772 \begin_layout Standard
20775 The order of pre- and surname in the former two lists can be adjusted by
20779 \begin_layout Itemize
20782 \begin_inset Flex Code
20785 \begin_layout Plain Layout
20788 !firstnameform %surname%, %prename%
20793 (first author in lists of type 1)
20796 \begin_layout Itemize
20799 \begin_inset Flex Code
20802 \begin_layout Plain Layout
20805 !othernameform %surname%, %prename%
20810 (other authors in lists of type 1)
20813 \begin_layout Itemize
20816 \begin_inset Flex Code
20819 \begin_layout Plain Layout
20822 !firstbynameform %prename% %surname%
20827 (first author in lists of type 2)
20830 \begin_layout Itemize
20833 \begin_inset Flex Code
20836 \begin_layout Plain Layout
20839 !otherbynameform %prename% %surname%
20844 (other authors in lists of type 2)
20847 \begin_layout Standard
20850 This allows you to configure namings like
20851 \begin_inset Quotes eld
20854 Miller, Peter and Mary Smith: \SpecialChar ldots
20855 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
20857 \begin_inset Quotes erd
20862 ます.これらすべてのあいだには,空白は入ってはなりません.
20865 \begin_layout Standard
20866 もう一つ,定義中で使用することのできる文法として,
20867 \begin_inset Flex Code
20870 \begin_layout Plain Layout
20876 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
20877 グを出力させたくはありませんから,HTMLタグは「
20878 \begin_inset Flex Code
20881 \begin_layout Plain Layout
20888 \begin_inset Flex Code
20891 \begin_layout Plain Layout
20897 」でくるんでやらなくてはならないのです.
20900 \begin_layout Standard
20901 \begin_inset Flex Code
20904 \begin_layout Plain Layout
20910 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
20913 \begin_layout LyX-Code
20915 \begin_inset Quotes eld
20919 \begin_inset Quotes erd
20925 \begin_layout Standard
20926 といった例が挙げられます.これは,短縮形ないしはマクロであり,
20927 \begin_inset Flex Code
20930 \begin_layout Plain Layout
20936 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
20938 \begin_inset Flex Code
20941 \begin_layout Plain Layout
20947 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
20950 \begin_layout LyX-Code
20954 \begin_layout Standard
20955 のようなことはしないでください.\SpecialChar LyX
20956 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
20959 \begin_layout Standard
20963 \begin_layout LyX-Code
20967 \begin_layout LyX-Code
20970 This defines a translatable piece of text, which allows relevant parts of
20971 the bibliography or citation to be translated.
20975 \begin_layout Standard
20976 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
20977 \begin_inset Flex Code
20980 \begin_layout Plain Layout
20986 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
20987 \begin_inset Flex Code
20990 \begin_layout Plain Layout
20994 \begin_inset Flex Code
20997 \begin_layout Plain Layout
21010 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
21013 \begin_layout Standard
21014 以下は,これらの機能を全て使った例です.
21015 \begin_inset VSpace defskip
21021 \begin_layout Standard
21025 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
21028 \begin_layout Standard
21029 \begin_inset VSpace defskip
21033 \begin_inset Flex Code
21036 \begin_layout Plain Layout
21042 キーが定義されているならば,著者とコンマを出力し,
21043 \begin_inset Flex Code
21046 \begin_layout Plain Layout
21053 \begin_inset Flex Code
21056 \begin_layout Plain Layout
21062 キーが定義されているならば,編集者名の後に
21063 \begin_inset Flex Code
21066 \begin_layout Plain Layout
21072 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
21073 \begin_inset Flex Code
21076 \begin_layout Plain Layout
21082 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
21085 \begin_layout Section
21086 \begin_inset CommandInset label
21088 name "sec:XHTML出力のタグ"
21095 \begin_layout Standard
21097 やDocBookと同様,\SpecialChar LyX
21098 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
21099 は適切な既定値を提供し,前述したように,他のレイアウト
21100 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
21102 \begin_inset Flex Code
21105 \begin_layout Plain Layout
21111 宣言で提供されている情報を利用しようと試みます.
21114 \begin_layout Standard
21115 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
21116 ,これが必要になる場合もあるので,\SpecialChar LyX
21117 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
21120 \begin_layout Standard
21121 様式宣言や差込枠宣言の外で使用することができるタグに,
21122 \begin_inset Flex Code
21125 \begin_layout Plain Layout
21132 \begin_inset Flex Code
21135 \begin_layout Plain Layout
21141 の2つがあることに注意してください.これらの詳細については,
21142 \begin_inset CommandInset ref
21144 reference "subsec:汎用テキストクラスパラメータ"
21151 \begin_layout Subsection
21152 \begin_inset CommandInset label
21154 name "subsec:段落様式-XHTML"
21161 \begin_layout Standard
21163 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
21164 \begin_inset Flex Code
21167 \begin_layout Plain Layout
21177 \begin_layout Standard
21178 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
21181 \begin_layout LyX-Code
21183 \begin_inset Quotes erd
21187 \begin_inset Quotes erd
21193 \begin_layout LyX-Code
21195 \begin_inset Quotes erd
21199 \begin_inset Quotes erd
21205 \begin_layout LyX-Code
21209 \begin_layout LyX-Code
21213 \begin_layout Standard
21214 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
21217 \begin_layout Standard
21218 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
21221 \begin_layout LyX-Code
21223 \begin_inset Quotes erd
21227 \begin_inset Quotes erd
21233 \begin_layout LyX-Code
21235 \begin_inset Quotes erd
21239 \begin_inset Quotes erd
21243 \begin_inset Quotes erd
21247 \begin_inset Quotes erd
21250 >環境ラベル</labeltag>最初の段落.
21253 \begin_layout LyX-Code
21257 \begin_layout LyX-Code
21258 <itemtag>二つめの段落.</itemtag>
21261 \begin_layout LyX-Code
21265 \begin_layout Standard
21266 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
21269 \begin_layout Standard
21270 リストに関しては,次のような形になります.
21273 \begin_layout LyX-Code
21275 \begin_inset Quotes erd
21279 \begin_inset Quotes erd
21285 \begin_layout LyX-Code
21287 \begin_inset Quotes erd
21291 \begin_inset Quotes erd
21295 \begin_inset Quotes erd
21299 \begin_inset Quotes erd
21302 >リストのラベル</labeltag>最初の項目.</itemtag>
21305 \begin_layout LyX-Code
21307 \begin_inset Quotes erd
21311 \begin_inset Quotes erd
21315 \begin_inset Quotes erd
21319 \begin_inset Quotes erd
21322 >リストのラベル</labeltag>二つめの項目.</itemtag>
21325 \begin_layout LyX-Code
21329 \begin_layout LyX-Code
21333 \begin_layout LyX-Code
21335 \begin_inset Quotes erd
21339 \begin_inset Quotes erd
21345 \begin_layout LyX-Code
21347 \begin_inset Quotes erd
21351 \begin_inset Quotes erd
21354 >リストのラベル</labeltag><itemtag attr=
21355 \begin_inset Quotes erd
21359 \begin_inset Quotes erd
21365 \begin_layout LyX-Code
21367 \begin_inset Quotes erd
21371 \begin_inset Quotes erd
21374 >リストのラベル</labeltag><itemtag attr=
21375 \begin_inset Quotes erd
21379 \begin_inset Quotes erd
21385 \begin_layout LyX-Code
21389 \begin_layout Standard
21391 \begin_inset Flex Code
21394 \begin_layout Plain Layout
21401 \begin_inset Flex Code
21404 \begin_layout Plain Layout
21410 の順序が違っていることに注意してください.どちらの順序になるかは,
21411 \begin_inset Flex Code
21414 \begin_layout Plain Layout
21421 \begin_inset Flex Code
21424 \begin_layout Plain Layout
21430 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
21433 \begin_layout Standard
21434 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
21436 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
21440 \begin_layout Description
21441 \begin_inset Flex Code
21444 \begin_layout Plain Layout
21451 \begin_inset Flex Code
21454 \begin_layout Plain Layout
21460 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21461 \begin_inset Flex Code
21464 \begin_layout Plain Layout
21470 」のようなものです.既定においては,\SpecialChar LyX
21472 \begin_inset Flex Code
21475 \begin_layout Plain Layout
21482 \begin_inset Flex Code
21485 \begin_layout Plain Layout
21491 は,レイアウトの\SpecialChar LyX
21492 名であり,chapterのように小文字で記述します.
21495 \begin_layout Description
21496 \begin_inset Flex Code
21499 \begin_layout Plain Layout
21506 \begin_inset Flex Code
21509 \begin_layout Plain Layout
21520 \begin_inset Flex Code
21523 \begin_layout Plain Layout
21529 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
21530 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
21531 \begin_inset Flex Code
21534 \begin_layout Plain Layout
21540 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
21541 \begin_inset Flex Code
21544 \begin_layout Plain Layout
21553 \begin_layout Description
21554 \begin_inset Flex Code
21557 \begin_layout Plain Layout
21564 \begin_inset Flex Code
21567 \begin_layout Plain Layout
21573 ] 環境の段落に使用されるタグ.上記各例の
21574 \begin_inset Flex Code
21577 \begin_layout Plain Layout
21584 \begin_inset Flex Code
21587 \begin_layout Plain Layout
21596 \begin_layout Description
21597 \begin_inset Flex Code
21600 \begin_layout Plain Layout
21607 \begin_inset Flex Code
21610 \begin_layout Plain Layout
21617 \begin_inset Flex Code
21620 \begin_layout Plain Layout
21621 class=`レイアウト名_item'
21631 \begin_inset Flex Code
21634 \begin_layout Plain Layout
21643 \begin_layout Description
21644 \begin_inset Flex Code
21647 \begin_layout Plain Layout
21654 \begin_inset Flex Code
21657 \begin_layout Plain Layout
21663 ] 段落と項目ラベルに使用されるタグ.上記各例の
21664 \begin_inset Flex Code
21667 \begin_layout Plain Layout
21674 \begin_inset Flex Code
21677 \begin_layout Plain Layout
21684 \begin_inset Flex Code
21687 \begin_layout Plain Layout
21694 \begin_inset Flex Code
21697 \begin_layout Plain Layout
21698 Centered_Top_Environment
21704 \begin_inset Flex Code
21707 \begin_layout Plain Layout
21714 \begin_inset Flex Code
21717 \begin_layout Plain Layout
21726 \begin_layout Description
21727 \begin_inset Flex Code
21730 \begin_layout Plain Layout
21737 \begin_inset Flex Code
21740 \begin_layout Plain Layout
21747 \begin_inset Flex Code
21750 \begin_layout Plain Layout
21751 class=`レイアウト名_label'
21761 \begin_inset Flex Code
21764 \begin_layout Plain Layout
21773 \begin_layout Description
21774 \begin_inset Flex Code
21777 \begin_layout Plain Layout
21784 \begin_inset Flex Code
21787 \begin_layout Plain Layout
21797 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
21799 \begin_inset Flex Code
21802 \begin_layout Plain Layout
21803 `<dt>\SpecialChar ldots
21804 </dt><dd>\SpecialChar ldots
21810 という形を得るために使用されます.既定値は
21811 \begin_inset Flex Code
21814 \begin_layout Plain Layout
21820 で,labelタグはitemタグの中に出力されます.
21823 \begin_layout Description
21824 \begin_inset Flex Code
21827 \begin_layout Plain Layout
21834 \begin_inset Flex Code
21837 \begin_layout Plain Layout
21843 セクションに出力される情報.これは,たとえば,
21844 \begin_inset Flex Code
21847 \begin_layout Plain Layout
21854 \begin_inset Flex Code
21857 \begin_layout Plain Layout
21863 ブロックをインクルードするのに使用することができます.
21866 \begin_layout Description
21867 \begin_inset Flex Code
21870 \begin_layout Plain Layout
21876 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21877 \begin_inset Flex Code
21880 \begin_layout Plain Layout
21886 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21887 \begin_inset Flex Code
21890 \begin_layout Plain Layout
21899 \begin_layout Description
21900 \begin_inset Flex Code
21903 \begin_layout Plain Layout
21910 \begin_inset Flex Code
21913 \begin_layout Plain Layout
21919 ] 主幹ラベルに使用されるタグ.上記各例の
21920 \begin_inset Flex Code
21923 \begin_layout Plain Layout
21930 \begin_inset Flex Code
21933 \begin_layout Plain Layout
21942 \begin_layout Description
21943 \begin_inset Flex Code
21946 \begin_layout Plain Layout
21953 \begin_inset Flex Code
21956 \begin_layout Plain Layout
21967 \begin_inset Flex Code
21970 \begin_layout Plain Layout
21976 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
21977 \begin_inset Flex Code
21980 \begin_layout Plain Layout
21987 \begin_inset Flex Code
21990 \begin_layout Plain Layout
21999 \begin_layout Subsection
22003 \begin_layout Standard
22004 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
22008 \begin_layout Plain Layout
22009 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
22015 .ここでも,\SpecialChar LyX
22016 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
22019 \begin_layout Standard
22021 が差込枠用に出力するXHTMLは,以下の形を取ります.
22024 \begin_layout LyX-Code
22026 \begin_inset Quotes erd
22030 \begin_inset Quotes erd
22036 \begin_layout LyX-Code
22037 <labeltag>ラベル</labeltag>
22040 \begin_layout LyX-Code
22042 \begin_inset Quotes erd
22046 \begin_inset Quotes erd
22049 >差込枠の内容.</innertag>
22052 \begin_layout LyX-Code
22056 \begin_layout Standard
22058 \begin_inset Flex Code
22061 \begin_layout Plain Layout
22067 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
22068 labelタグは省略され,ラベルがあれば,現在のところ,つねに
22069 \begin_inset Flex Code
22072 \begin_layout Plain Layout
22078 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
22082 \begin_layout Description
22083 \begin_inset Flex Code
22086 \begin_layout Plain Layout
22093 \begin_inset Flex Code
22096 \begin_layout Plain Layout
22102 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
22103 \begin_inset Flex Code
22106 \begin_layout Plain Layout
22107 class=`myinset' onclick=`\SpecialChar ldots
22113 」のようなものです.既定においては,\SpecialChar LyX
22115 \begin_inset Flex Code
22118 \begin_layout Plain Layout
22125 \begin_inset Flex Code
22128 \begin_layout Plain Layout
22134 は,差込枠の\SpecialChar LyX
22135 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
22138 \begin_layout Description
22139 \begin_inset Flex Code
22142 \begin_layout Plain Layout
22149 \begin_inset Flex Code
22152 \begin_layout Plain Layout
22163 \begin_inset Flex Code
22166 \begin_layout Plain Layout
22172 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
22173 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
22174 \begin_inset Flex Code
22177 \begin_layout Plain Layout
22183 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
22184 \begin_inset Flex Code
22187 \begin_layout Plain Layout
22196 \begin_layout Description
22197 \begin_inset Flex Code
22200 \begin_layout Plain Layout
22207 \begin_inset Flex Code
22210 \begin_layout Plain Layout
22217 \begin_inset Flex Code
22220 \begin_layout Plain Layout
22229 \begin_layout Description
22230 \begin_inset Flex Code
22233 \begin_layout Plain Layout
22240 \begin_inset Flex Code
22243 \begin_layout Plain Layout
22250 \begin_inset Flex Code
22253 \begin_layout Plain Layout
22262 \begin_layout Description
22263 \begin_inset Flex Code
22266 \begin_layout Plain Layout
22273 \begin_inset Flex Code
22276 \begin_layout Plain Layout
22284 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
22287 \begin_layout Description
22288 \begin_inset Flex Code
22291 \begin_layout Plain Layout
22298 \begin_inset Flex Code
22301 \begin_layout Plain Layout
22307 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
22308 \begin_inset Flex Code
22311 \begin_layout Plain Layout
22319 など.これは非必須であり,既定値はありません.
22322 \begin_layout Description
22323 \begin_inset Flex Code
22326 \begin_layout Plain Layout
22333 \begin_inset Flex Code
22336 \begin_layout Plain Layout
22342 セクションに出力される情報.これは,たとえば,
22343 \begin_inset Flex Code
22346 \begin_layout Plain Layout
22353 \begin_inset Flex Code
22356 \begin_layout Plain Layout
22362 ブロックをインクルードするのに使用することができます.
22365 \begin_layout Description
22366 \begin_inset Flex Code
22369 \begin_layout Plain Layout
22375 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
22376 \begin_inset Flex Code
22379 \begin_layout Plain Layout
22385 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
22388 \begin_layout Description
22389 \begin_inset Flex Code
22392 \begin_layout Plain Layout
22399 \begin_inset Flex Code
22402 \begin_layout Plain Layout
22408 ] 主幹ラベルに使用されるタグ.上記各例の
22409 \begin_inset Flex Code
22412 \begin_layout Plain Layout
22419 \begin_inset Flex Code
22422 \begin_layout Plain Layout
22429 \begin_inset Flex Code
22432 \begin_layout Plain Layout
22439 \begin_inset Flex Code
22442 \begin_layout Plain Layout
22449 \begin_inset Flex Code
22452 \begin_layout Plain Layout
22461 \begin_layout Subsection
22465 \begin_layout Standard
22466 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
22469 \begin_layout LyX-Code
22471 \begin_inset Quotes erd
22475 \begin_inset Quotes erd
22481 \begin_layout LyX-Code
22485 \begin_layout LyX-Code
22489 \begin_layout Standard
22490 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
22494 \begin_layout Description
22495 \begin_inset Flex Code
22498 \begin_layout Plain Layout
22505 \begin_inset Flex Code
22508 \begin_layout Plain Layout
22514 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
22515 \begin_inset Flex Code
22518 \begin_layout Plain Layout
22519 class=`myfloat' onclick=`\SpecialChar ldots
22525 」のようなものです.既定においては,\SpecialChar LyX
22527 \begin_inset Flex Code
22530 \begin_layout Plain Layout
22531 class=`float フロート-フロート型'
22537 \begin_inset Flex Code
22540 \begin_layout Plain Layout
22547 \begin_inset CommandInset ref
22549 reference "subsec:フロート"
22553 参照),この型のフロートの\SpecialChar LyX
22554 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
22557 \begin_layout Description
22558 \begin_inset Flex Code
22561 \begin_layout Plain Layout
22567 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
22568 \begin_inset Flex Code
22571 \begin_layout Plain Layout
22577 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
22580 \begin_layout Description
22581 \begin_inset Flex Code
22584 \begin_layout Plain Layout
22591 \begin_inset Flex Code
22594 \begin_layout Plain Layout
22600 ] このフロートに使用されるタグ.上記各例の
22601 \begin_inset Flex Code
22604 \begin_layout Plain Layout
22611 \begin_inset Flex Code
22614 \begin_layout Plain Layout
22620 であり,ほとんどの場合変更する必要はありません.
22623 \begin_layout Subsection
22627 \begin_layout Standard
22629 \begin_inset Flex Code
22632 \begin_layout Plain Layout
22638 ブロックを使用して整形することができます.詳細については,
22639 \begin_inset CommandInset ref
22641 reference "subsec:引用書式指定"
22648 \begin_layout Subsection
22653 \begin_layout Standard
22655 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
22657 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
22660 \begin_layout Standard
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
22693 \begin_inset Flex Code
22696 \begin_layout Plain Layout
22703 \begin_inset Flex Code
22706 \begin_layout Plain Layout
22712 を利用して,フォント情報についてのみCSSを自動生成します(
22713 \begin_inset CommandInset ref
22715 reference "subsec:フォント指定"
22719 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
22720 \begin_inset Flex Code
22723 \begin_layout Plain Layout
22730 \begin_inset Flex Code
22733 \begin_layout Plain Layout
22734 font-family: sans-serif
22739 」になります.\SpecialChar LyX
22740 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
22741 \begin_inset Flex URL
22744 \begin_layout Plain Layout
22752 \begin_inset Flex Code
22755 \begin_layout Plain Layout
22764 \begin_layout Chapter
22766 \begin_inset CommandInset label
22768 name "chap:外部素材を取り込む"
22775 \begin_layout Standard
22776 \begin_inset Box Shadowbox
22786 height_special "totalheight"
22791 backgroundcolor "none"
22794 \begin_layout Plain Layout
22795 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
22803 \begin_layout Standard
22805 外部のソースから素材を使用する方法は,取扱説明書『
22809 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
22812 \begin_layout Section
22816 \begin_layout Standard
22817 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
22818 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
22820 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
22821 \begin_inset Flex MenuItem
22824 \begin_layout Plain Layout
22825 挿入\SpecialChar menuseparator
22826 ファイル\SpecialChar menuseparator
22832 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
22833 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
22834 の後の版に取り込むことができるようにしてくださることを希望します.
22837 \begin_layout Standard
22838 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
22840 \begin_inset Flex Code
22843 \begin_layout Plain Layout
22849 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
22850 \begin_inset Flex Code
22853 \begin_layout Plain Layout
22859 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
22860 \begin_inset Flex Code
22863 \begin_layout Plain Layout
22869 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
22870 ファイルにそのままインクルードできるように,
22871 \begin_inset Flex Code
22874 \begin_layout Plain Layout
22880 を呼び出してPostScriptファイルを生成します.この場合には,
22881 \begin_inset Flex Code
22884 \begin_layout Plain Layout
22890 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
22893 \begin_layout Standard
22894 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
22895 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
22896 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
22899 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
22902 \begin_layout Standard
22904 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
22905 の場合には,\SpecialChar LyX
22906 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
22907 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
22908 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
22912 \begin_layout Section
22916 \begin_layout Standard
22918 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
22919 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
22920 \begin_inset CommandInset ref
22922 reference "sec:セキュリティに関する論点"
22926 のセキュリティに関する議論を読んでおいてください.
22928 The external templates are defined in the
22929 \begin_inset Flex Code
22932 \begin_layout Plain Layout
22940 files that are stored in the
22941 \begin_inset Flex Code
22944 \begin_layout Plain Layout
22947 LyXDir/lib/xtemplates/
22953 Each template is defined in a file of its own.
22954 You can place your own templates in
22955 \begin_inset Flex Code
22958 \begin_layout Plain Layout
22961 UserDir/xtemplates/
22966 or copy existing templates to that directory in order to modify them.
22969 \begin_layout Standard
22970 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
22973 \begin_layout Standard
22975 \begin_inset Flex Code
22978 \begin_layout Plain Layout
22979 LyXDir/lib/external_templates
22984 ファイルで定義されています.自分用の版を
22985 \begin_inset Flex Code
22988 \begin_layout Plain Layout
22989 UserDir/external_templates
22997 \begin_layout Standard
22998 典型的なひな型は以下のようになります.
23001 \begin_layout LyX-Code
23005 \begin_layout LyX-Code
23006 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
23009 \begin_layout LyX-Code
23013 \begin_layout LyX-Code
23017 \begin_layout LyX-Code
23021 \begin_layout LyX-Code
23025 \begin_layout LyX-Code
23029 \begin_layout LyX-Code
23030 AutomaticProduction true
23033 \begin_layout LyX-Code
23037 \begin_layout LyX-Code
23041 \begin_layout LyX-Code
23045 \begin_layout LyX-Code
23046 TransformCommand Rotate RotationLatexCommand
23049 \begin_layout LyX-Code
23050 TransformCommand Resize ResizeLatexCommand
23053 \begin_layout LyX-Code
23054 Product "$$RotateFront$$ResizeFront
23057 \begin_layout LyX-Code
23062 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
23065 \begin_layout LyX-Code
23066 $$ResizeBack$$RotateBack"
23069 \begin_layout LyX-Code
23073 \begin_layout LyX-Code
23074 UpdateResult "$$AbsPath$$Basename.pstex_t"
23077 \begin_layout LyX-Code
23078 Requirement "graphicx"
23081 \begin_layout LyX-Code
23082 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23085 \begin_layout LyX-Code
23086 ReferencedFile latex "$$AbsPath$$Basename.eps"
23089 \begin_layout LyX-Code
23090 ReferencedFile dvi "$$AbsPath$$Basename.eps"
23093 \begin_layout LyX-Code
23097 \begin_layout LyX-Code
23101 \begin_layout LyX-Code
23102 TransformCommand Rotate RotationLatexCommand
23105 \begin_layout LyX-Code
23106 TransformCommand Resize ResizeLatexCommand
23109 \begin_layout LyX-Code
23110 Product "$$RotateFront$$ResizeFront
23113 \begin_layout LyX-Code
23118 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23121 \begin_layout LyX-Code
23122 $$ResizeBack$$RotateBack"
23125 \begin_layout LyX-Code
23126 UpdateFormat pdftex
23129 \begin_layout LyX-Code
23130 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23133 \begin_layout LyX-Code
23134 Requirement "graphicx"
23137 \begin_layout LyX-Code
23138 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23141 \begin_layout LyX-Code
23142 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23145 \begin_layout LyX-Code
23149 \begin_layout LyX-Code
23153 \begin_layout LyX-Code
23154 Product "$$Contents(
23156 "$$AbsPath$$Basename.asc
23161 \begin_layout LyX-Code
23162 UpdateFormat asciixfig
23165 \begin_layout LyX-Code
23166 UpdateResult "$$AbsPath$$Basename.asc"
23169 \begin_layout LyX-Code
23173 \begin_layout LyX-Code
23177 \begin_layout LyX-Code
23178 Product "<graphic fileref=
23180 "$$AbsOrRelPathMaster$$Basename.eps
23185 \begin_layout LyX-Code
23189 \begin_layout LyX-Code
23193 \begin_layout LyX-Code
23194 UpdateResult "$$AbsPath$$Basename.eps"
23197 \begin_layout LyX-Code
23198 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23201 \begin_layout LyX-Code
23202 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23205 \begin_layout LyX-Code
23209 \begin_layout LyX-Code
23210 Product "[XFig: $$FName]"
23213 \begin_layout LyX-Code
23217 \begin_layout LyX-Code
23221 \begin_layout Standard
23223 \begin_inset Flex Code
23226 \begin_layout Plain Layout
23234 \begin_inset Flex Code
23237 \begin_layout Plain Layout
23243 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
23244 \begin_inset Flex Code
23247 \begin_layout Plain Layout
23255 \begin_inset Flex Code
23258 \begin_layout Plain Layout
23267 \begin_layout Subsection
23271 \begin_layout Description
23272 \begin_inset Flex Code
23275 \begin_layout Plain Layout
23276 AutomaticProduction
23277 \begin_inset space ~
23285 このひな型で扱うファイルを\SpecialChar LyX
23286 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
23289 \begin_layout Description
23290 \begin_inset Flex Code
23293 \begin_layout Plain Layout
23295 \begin_inset space ~
23303 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
23304 \begin_inset Flex Code
23307 \begin_layout Plain Layout
23314 \begin_inset Flex Code
23317 \begin_layout Plain Layout
23324 \begin_inset Flex Code
23327 \begin_layout Plain Layout
23333 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
23336 \begin_layout Description
23337 \begin_inset Flex Code
23340 \begin_layout Plain Layout
23342 \begin_inset space ~
23350 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
23353 \begin_layout Description
23354 \begin_inset Flex Code
23357 \begin_layout Plain Layout
23359 \begin_inset space ~
23363 \begin_inset space ~
23371 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
23375 \begin_layout Description
23376 \begin_inset Flex Code
23379 \begin_layout Plain Layout
23381 \begin_inset space ~
23389 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
23390 が知っている書式名でなくてはなりません(
23391 \begin_inset CommandInset ref
23393 reference "sec:ファイル形式"
23397 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
23398 \begin_inset Flex Code
23401 \begin_layout Plain Layout
23407 」を使用してください.この場合,\SpecialChar LyX
23408 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
23411 \begin_layout Description
23412 \begin_inset Flex Code
23415 \begin_layout Plain Layout
23417 \begin_inset space ~
23425 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
23428 \begin_layout Description
23429 \begin_inset Flex Code
23432 \begin_layout Plain Layout
23434 \begin_inset space ~
23437 Rotate|Resize|Clip|Extra
23442 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
23443 ログ中の対応するタブを使用可能にします.
23444 \begin_inset Flex Code
23447 \begin_layout Plain Layout
23454 \begin_inset Flex Code
23457 \begin_layout Plain Layout
23464 \begin_inset Flex Code
23467 \begin_layout Plain Layout
23474 \begin_inset Flex Code
23477 \begin_layout Plain Layout
23483 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
23486 \begin_layout Subsection
23487 \begin_inset Flex Code
23490 \begin_layout Plain Layout
23499 \begin_layout Description
23500 \begin_inset Flex Code
23503 \begin_layout Plain Layout
23505 \begin_inset space ~
23508 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
23513 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
23514 \begin_inset Flex Code
23517 \begin_layout Plain Layout
23523 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
23527 \begin_layout Description
23528 \begin_inset Flex Code
23531 \begin_layout Plain Layout
23533 \begin_inset space ~
23537 \begin_inset space ~
23546 \begin_inset Flex Code
23549 \begin_layout Plain Layout
23556 \begin_inset Flex Code
23559 \begin_layout Plain Layout
23566 \begin_inset Flex Code
23569 \begin_layout Plain Layout
23575 自体にも代入マクロを使うことができます.
23576 \begin_inset Flex Code
23579 \begin_layout Plain Layout
23586 \begin_inset Flex Code
23589 \begin_layout Plain Layout
23596 \begin_inset Flex Code
23599 \begin_layout Plain Layout
23605 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
23608 \begin_layout Description
23609 \begin_inset Flex Code
23612 \begin_layout Plain Layout
23614 \begin_inset space ~
23622 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
23626 \begin_layout Description
23627 \begin_inset Flex Code
23630 \begin_layout Plain Layout
23632 \begin_inset space ~
23640 このコマンドは,\SpecialChar LaTeX
23641 プリアンブルに入れるプリアンブル片を指定します.これは
23642 \begin_inset Flex Code
23645 \begin_layout Plain Layout
23653 \begin_inset Flex Code
23656 \begin_layout Plain Layout
23662 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
23665 \begin_layout Description
23666 \begin_inset Flex Code
23669 \begin_layout Plain Layout
23671 \begin_inset space ~
23675 \begin_inset space ~
23683 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
23684 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
23687 \begin_layout Description
23688 \begin_inset Flex Code
23691 \begin_layout Plain Layout
23693 \begin_inset space ~
23701 必要とされる\SpecialChar LaTeX
23702 パッケージ名.パッケージは,\SpecialChar LaTeX
23704 \begin_inset Flex Code
23707 \begin_layout Plain Layout
23715 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
23718 \begin_layout Description
23719 \begin_inset Flex Code
23722 \begin_layout Plain Layout
23724 \begin_inset space ~
23728 \begin_inset space ~
23731 RotationLatexCommand
23736 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
23737 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23740 \begin_layout Description
23741 \begin_inset Flex Code
23744 \begin_layout Plain Layout
23746 \begin_inset space ~
23750 \begin_inset space ~
23758 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
23759 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23762 \begin_layout Description
23763 \begin_inset Flex Code
23766 \begin_layout Plain Layout
23768 \begin_inset space ~
23772 \begin_inset space ~
23775 RotationLatexOption
23780 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23783 \begin_layout Description
23784 \begin_inset Flex Code
23787 \begin_layout Plain Layout
23789 \begin_inset space ~
23793 \begin_inset space ~
23801 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23804 \begin_layout Description
23805 \begin_inset Flex Code
23808 \begin_layout Plain Layout
23810 \begin_inset space ~
23814 \begin_inset space ~
23822 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23825 \begin_layout Description
23826 \begin_inset Flex Code
23829 \begin_layout Plain Layout
23831 \begin_inset space ~
23835 \begin_inset space ~
23843 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
23846 \begin_layout Description
23847 \begin_inset Flex Code
23850 \begin_layout Plain Layout
23852 \begin_inset space ~
23860 変換されたファイルのファイル形式.これは,\SpecialChar LyX
23861 が知っている書式名でなくてはなりません(
23862 \begin_inset Flex MenuItem
23865 \begin_layout Plain Layout
23866 ツール\SpecialChar menuseparator
23867 設定\SpecialChar menuseparator
23868 ファイル処理\SpecialChar menuseparator
23874 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
23875 \begin_inset Flex Code
23878 \begin_layout Plain Layout
23884 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
23887 \begin_layout Description
23888 \begin_inset Flex Code
23891 \begin_layout Plain Layout
23893 \begin_inset space ~
23901 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
23904 \begin_layout Subsection
23908 \begin_layout Standard
23910 \begin_inset Flex Code
23913 \begin_layout Plain Layout
23921 \begin_inset Flex Code
23924 \begin_layout Plain Layout
23930 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
23931 \begin_inset Flex Code
23934 \begin_layout Plain Layout
23943 \begin_layout Section
23947 \begin_layout Standard
23948 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
23949 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
23952 \begin_layout Standard
23953 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
23956 \begin_layout Standard
23960 \begin_layout Description
23961 \begin_inset Flex Code
23964 \begin_layout Plain Layout
23965 $$AbsOrRelPathMaster
23971 親文書への絶対ファイルパスないしは相対ファイルパス
23974 \begin_layout Description
23975 \begin_inset Flex Code
23978 \begin_layout Plain Layout
23979 $$AbsOrRelPathParent
23985 文書への絶対ファイルパスないしは相対ファイルパス
23988 \begin_layout Description
23989 \begin_inset Flex Code
23992 \begin_layout Plain Layout
24001 \begin_layout Description
24002 \begin_inset Flex Code
24005 \begin_layout Plain Layout
24014 \begin_layout Description
24015 \begin_inset Flex Code
24018 \begin_layout Plain Layout
24020 \begin_inset Quotes eld
24024 \begin_inset Quotes erd
24033 \begin_inset Flex Code
24036 \begin_layout Plain Layout
24042 と云う名のファイルの中身を展開します.
24045 \begin_layout Description
24046 \begin_inset Flex Code
24049 \begin_layout Plain Layout
24058 \begin_layout Description
24059 \begin_inset Flex Code
24062 \begin_layout Plain Layout
24068 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
24069 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
24070 出力形式に対してこのマクロを使用します.
24073 \begin_layout Description
24074 \begin_inset Flex Code
24077 \begin_layout Plain Layout
24083 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
24084 文書への絶対パスでも良いですし,相対パスでも構いません.
24087 \begin_layout Description
24088 \begin_inset Flex Code
24091 \begin_layout Plain Layout
24098 \begin_inset Flex Code
24101 \begin_layout Plain Layout
24107 のパス部分(\SpecialChar LyX
24111 \begin_layout Description
24112 \begin_inset Flex Code
24115 \begin_layout Plain Layout
24125 \begin_layout Description
24126 \begin_inset Flex Code
24129 \begin_layout Plain Layout
24139 \begin_layout Description
24140 \begin_inset Flex Code
24143 \begin_layout Plain Layout
24149 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
24150 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
24153 \begin_layout Description
24154 \begin_inset Flex Code
24157 \begin_layout Plain Layout
24163 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
24166 \begin_layout Standard
24167 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
24168 \begin_inset Flex Code
24171 \begin_layout Plain Layout
24172 $$AbsPath$$Basename$$Extension
24180 \begin_layout Standard
24181 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
24182 \begin_inset Flex Code
24185 \begin_layout Plain Layout
24192 \begin_inset Flex Code
24195 \begin_layout Plain Layout
24202 \begin_inset Flex Code
24205 \begin_layout Plain Layout
24211 コマンドは,これらに加えて以下の代入もサポートします.
24214 \begin_layout Description
24215 \begin_inset Flex Code
24218 \begin_layout Plain Layout
24227 \begin_layout Description
24228 \begin_inset Flex Code
24231 \begin_layout Plain Layout
24240 \begin_layout Description
24241 \begin_inset Flex Code
24244 \begin_layout Plain Layout
24253 \begin_layout Description
24254 \begin_inset Flex Code
24257 \begin_layout Plain Layout
24266 \begin_layout Standard
24267 \begin_inset Flex Code
24270 \begin_layout Plain Layout
24277 \begin_inset Flex Code
24280 \begin_layout Plain Layout
24287 \begin_inset Flex Code
24290 \begin_layout Plain Layout
24296 コマンドが有効にされていれば,以下の代入もサポートされます.
24299 \begin_layout Description
24300 \begin_inset Flex Code
24303 \begin_layout Plain Layout
24312 \begin_layout Description
24313 \begin_inset Flex Code
24316 \begin_layout Plain Layout
24325 \begin_layout Description
24326 \begin_inset Flex Code
24329 \begin_layout Plain Layout
24338 \begin_layout Description
24339 \begin_inset Flex Code
24342 \begin_layout Plain Layout
24351 \begin_layout Standard
24352 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
24355 \begin_layout Enumerate
24356 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
24357 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
24360 \begin_layout Enumerate
24362 は,相対ファイル名に関して,\SpecialChar LyX
24363 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
24364 にとって相対ファイル名とは,常にこのファイル名が書か
24365 れている文書に対して相対的なものになります.\SpecialChar LaTeX
24366 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
24367 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
24368 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
24369 を選びさえすれば,これは\SpecialChar LyX
24373 \begin_layout Standard
24374 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
24377 \begin_layout Itemize
24379 \begin_inset Flex Code
24382 \begin_layout Plain Layout
24391 \begin_layout Itemize
24392 代入された文字列が,\SpecialChar LaTeX
24394 \begin_inset Flex Code
24397 \begin_layout Plain Layout
24398 $$AbsOrRelPathMaster
24406 \begin_layout Itemize
24407 それ以外ならば,ユーザの選択を尊重するために
24408 \begin_inset Flex Code
24411 \begin_layout Plain Layout
24412 $$AbsOrRelPathParent
24420 \begin_layout Standard
24421 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
24422 \begin_inset Flex Code
24425 \begin_layout Plain Layout
24426 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24432 \begin_inset Flex Code
24435 \begin_layout Plain Layout
24441 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
24444 \begin_layout Section
24446 \begin_inset CommandInset label
24448 name "sec:セキュリティに関する論点"
24455 \begin_layout Standard
24456 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
24457 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
24458 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
24461 \begin_layout Standard
24462 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
24463 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
24465 \begin_inset Flex Code
24468 \begin_layout Plain Layout
24475 \begin_inset Flex Code
24478 \begin_layout Plain Layout
24484 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
24487 \begin_layout Standard
24488 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
24489 できません.これは,\SpecialChar LyX
24490 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
24491 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
24494 \begin_layout Standard
24495 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
24496 うになるため,一般的には,統御下に置いた状態で
24497 \begin_inset Flex Code
24500 \begin_layout Plain Layout
24506 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
24507 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
24511 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
24512 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
24513 には,安全でないひな型は決して入っていません
24517 \begin_layout Standard
24518 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
24519 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
24520 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
24521 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
24522 使用する前に,行うようにしてください.
24525 \begin_layout Chapter
24527 サポートされているレイアウト用\SpecialChar LyX
24529 \begin_inset CommandInset label
24538 \begin_layout Standard
24540 \begin_inset Tabular
24541 <lyxtabular version="3" rows="11" columns="8">
24542 <features tabularvalignment="middle">
24543 <column alignment="left" valignment="top">
24544 <column alignment="left" valignment="top">
24545 <column alignment="left" valignment="top">
24546 <column alignment="left" valignment="top">
24547 <column alignment="left" valignment="top">
24548 <column alignment="left" valignment="top">
24549 <column alignment="left" valignment="top">
24550 <column alignment="left" valignment="top">
24552 <cell alignment="left" valignment="top" usebox="none">
24555 \begin_layout Plain Layout
24561 <cell alignment="left" valignment="top" usebox="none">
24564 \begin_layout Plain Layout
24570 <cell alignment="left" valignment="top" usebox="none">
24573 \begin_layout Plain Layout
24579 <cell alignment="left" valignment="top" usebox="none">
24582 \begin_layout Plain Layout
24588 <cell alignment="center" valignment="top" usebox="none">
24591 \begin_layout Plain Layout
24597 <cell alignment="center" valignment="top" usebox="none">
24600 \begin_layout Plain Layout
24606 <cell alignment="center" valignment="top" usebox="none">
24609 \begin_layout Plain Layout
24615 <cell alignment="center" valignment="top" usebox="none">
24618 \begin_layout Plain Layout
24626 <cell alignment="left" valignment="top" usebox="none">
24629 \begin_layout Plain Layout
24635 <cell alignment="left" valignment="top" usebox="none">
24638 \begin_layout Plain Layout
24644 <cell alignment="left" valignment="top" usebox="none">
24647 \begin_layout Plain Layout
24653 <cell alignment="left" valignment="top" usebox="none">
24656 \begin_layout Plain Layout
24662 <cell alignment="center" valignment="top" usebox="none">
24665 \begin_layout Plain Layout
24671 <cell alignment="center" valignment="top" usebox="none">
24674 \begin_layout Plain Layout
24680 <cell alignment="center" valignment="top" usebox="none">
24683 \begin_layout Plain Layout
24689 <cell alignment="center" valignment="top" usebox="none">
24692 \begin_layout Plain Layout
24700 <cell alignment="left" valignment="top" usebox="none">
24703 \begin_layout Plain Layout
24709 <cell alignment="left" valignment="top" usebox="none">
24712 \begin_layout Plain Layout
24718 <cell alignment="left" valignment="top" usebox="none">
24721 \begin_layout Plain Layout
24727 <cell alignment="left" valignment="top" usebox="none">
24730 \begin_layout Plain Layout
24736 <cell alignment="center" valignment="top" usebox="none">
24739 \begin_layout Plain Layout
24745 <cell alignment="center" valignment="top" usebox="none">
24748 \begin_layout Plain Layout
24754 <cell alignment="center" valignment="top" usebox="none">
24757 \begin_layout Plain Layout
24763 <cell alignment="center" valignment="top" usebox="none">
24766 \begin_layout Plain Layout
24774 <cell alignment="left" valignment="top" usebox="none">
24777 \begin_layout Plain Layout
24783 <cell alignment="left" valignment="top" usebox="none">
24786 \begin_layout Plain Layout
24792 <cell alignment="left" valignment="top" usebox="none">
24795 \begin_layout Plain Layout
24801 <cell alignment="left" valignment="top" usebox="none">
24804 \begin_layout Plain Layout
24810 <cell alignment="center" valignment="top" usebox="none">
24813 \begin_layout Plain Layout
24819 <cell alignment="center" valignment="top" usebox="none">
24822 \begin_layout Plain Layout
24828 <cell alignment="center" valignment="top" usebox="none">
24831 \begin_layout Plain Layout
24837 <cell alignment="center" valignment="top" usebox="none">
24840 \begin_layout Plain Layout
24848 <cell alignment="left" valignment="top" usebox="none">
24851 \begin_layout Plain Layout
24857 <cell alignment="left" valignment="top" usebox="none">
24860 \begin_layout Plain Layout
24866 <cell alignment="left" valignment="top" usebox="none">
24869 \begin_layout Plain Layout
24875 <cell alignment="left" valignment="top" usebox="none">
24878 \begin_layout Plain Layout
24884 <cell alignment="center" valignment="top" usebox="none">
24887 \begin_layout Plain Layout
24893 <cell alignment="center" valignment="top" usebox="none">
24896 \begin_layout Plain Layout
24902 <cell alignment="center" valignment="top" usebox="none">
24905 \begin_layout Plain Layout
24911 <cell alignment="center" valignment="top" usebox="none">
24914 \begin_layout Plain Layout
24922 <cell alignment="left" valignment="top" usebox="none">
24925 \begin_layout Plain Layout
24931 <cell alignment="left" valignment="top" usebox="none">
24934 \begin_layout Plain Layout
24940 <cell alignment="left" valignment="top" usebox="none">
24943 \begin_layout Plain Layout
24949 <cell alignment="left" valignment="top" usebox="none">
24952 \begin_layout Plain Layout
24958 <cell alignment="center" valignment="top" usebox="none">
24961 \begin_layout Plain Layout
24967 <cell alignment="center" valignment="top" usebox="none">
24970 \begin_layout Plain Layout
24976 <cell alignment="center" valignment="top" usebox="none">
24979 \begin_layout Plain Layout
24985 <cell alignment="center" valignment="top" usebox="none">
24988 \begin_layout Plain Layout
24996 <cell alignment="left" valignment="top" usebox="none">
24999 \begin_layout Plain Layout
25005 <cell alignment="left" valignment="top" usebox="none">
25008 \begin_layout Plain Layout
25014 <cell alignment="left" valignment="top" usebox="none">
25017 \begin_layout Plain Layout
25023 <cell alignment="left" valignment="top" usebox="none">
25026 \begin_layout Plain Layout
25032 <cell alignment="center" valignment="top" usebox="none">
25035 \begin_layout Plain Layout
25041 <cell alignment="center" valignment="top" usebox="none">
25044 \begin_layout Plain Layout
25050 <cell alignment="center" valignment="top" usebox="none">
25053 \begin_layout Plain Layout
25059 <cell alignment="center" valignment="top" usebox="none">
25062 \begin_layout Plain Layout
25070 <cell alignment="left" valignment="top" usebox="none">
25073 \begin_layout Plain Layout
25079 <cell alignment="left" valignment="top" usebox="none">
25082 \begin_layout Plain Layout
25088 <cell alignment="left" valignment="top" usebox="none">
25091 \begin_layout Plain Layout
25097 <cell alignment="left" valignment="top" usebox="none">
25100 \begin_layout Plain Layout
25106 <cell alignment="center" valignment="top" usebox="none">
25109 \begin_layout Plain Layout
25115 <cell alignment="center" valignment="top" usebox="none">
25118 \begin_layout Plain Layout
25124 <cell alignment="center" valignment="top" usebox="none">
25127 \begin_layout Plain Layout
25133 <cell alignment="center" valignment="top" usebox="none">
25136 \begin_layout Plain Layout
25144 <cell alignment="left" valignment="top" usebox="none">
25147 \begin_layout Plain Layout
25153 <cell alignment="left" valignment="top" usebox="none">
25156 \begin_layout Plain Layout
25162 <cell alignment="left" valignment="top" usebox="none">
25165 \begin_layout Plain Layout
25171 <cell alignment="left" valignment="top" usebox="none">
25174 \begin_layout Plain Layout
25180 <cell alignment="center" valignment="top" usebox="none">
25183 \begin_layout Plain Layout
25189 <cell alignment="center" valignment="top" usebox="none">
25192 \begin_layout Plain Layout
25198 <cell alignment="center" valignment="top" usebox="none">
25201 \begin_layout Plain Layout
25207 <cell alignment="center" valignment="top" usebox="none">
25210 \begin_layout Plain Layout
25218 <cell alignment="left" valignment="top" usebox="none">
25221 \begin_layout Plain Layout
25227 <cell alignment="left" valignment="top" usebox="none">
25230 \begin_layout Plain Layout
25236 <cell alignment="left" valignment="top" usebox="none">
25239 \begin_layout Plain Layout
25245 <cell alignment="left" valignment="top" usebox="none">
25248 \begin_layout Plain Layout
25254 <cell alignment="center" valignment="top" usebox="none">
25257 \begin_layout Plain Layout
25263 <cell alignment="center" valignment="top" usebox="none">
25266 \begin_layout Plain Layout
25272 <cell alignment="center" valignment="top" usebox="none">
25275 \begin_layout Plain Layout
25281 <cell alignment="center" valignment="top" usebox="none">
25284 \begin_layout Plain Layout
25292 <cell alignment="center" valignment="top" usebox="none">
25295 \begin_layout Plain Layout
25301 <cell alignment="center" valignment="top" usebox="none">
25304 \begin_layout Plain Layout
25310 <cell alignment="center" valignment="top" usebox="none">
25313 \begin_layout Plain Layout
25319 <cell alignment="center" valignment="top" usebox="none">
25322 \begin_layout Plain Layout
25328 <cell alignment="center" valignment="top" usebox="none">
25331 \begin_layout Plain Layout
25337 <cell alignment="center" valignment="top" usebox="none">
25340 \begin_layout Plain Layout
25346 <cell alignment="center" valignment="top" usebox="none">
25349 \begin_layout Plain Layout
25355 <cell alignment="center" valignment="top" usebox="none">
25358 \begin_layout Plain Layout
25372 \begin_layout Chapter
25374 \begin_inset CommandInset label
25383 \begin_layout Standard
25384 ここに列挙されている色は標準色であり,\SpecialChar LyX
25388 \begin_layout Description
25393 特定の色ではありません – 透明か既定色です
25396 \begin_layout Description
25400 \begin_layout Description
25404 \begin_layout Description
25408 \begin_layout Description
25412 \begin_layout Description
25416 \begin_layout Description
25420 \begin_layout Description
25424 \begin_layout Description
25428 \begin_layout Description
25432 \begin_layout Description
25436 \begin_layout Description
25440 \begin_layout Description
25444 \begin_layout Description
25448 \begin_layout Description
25449 branchlabel 派生枝ラベル色
25452 \begin_layout Description
25456 \begin_layout Description
25457 buttonhoverbg フォーカスを得ているボタンの背景色
25460 \begin_layout Description
25464 \begin_layout Description
25468 \begin_layout Description
25469 changedtextauthor1 変更された文章:第1著者の色
25472 \begin_layout Description
25473 changedtextauthor2 変更された文章:第2著者の色
25476 \begin_layout Description
25477 changedtextauthor3 変更された文章:第3著者の色
25480 \begin_layout Description
25481 changedtextauthor4 変更された文章:第4著者の色
25484 \begin_layout Description
25485 changedtextauthor5 変更された文章:第5著者の色
25488 \begin_layout Description
25489 collapsable_inset_frame 畳み込み可能枠の縁色
25492 \begin_layout Description
25493 collapsable_inset_text 畳み込み可能枠の文字色
25496 \begin_layout Description
25497 command コマンド差込枠の文字色
25500 \begin_layout Description
25501 commandbg コマンド差込枠の背景色
25504 \begin_layout Description
25505 commandframe コマンド差込枠の縁色
25508 \begin_layout Description
25512 \begin_layout Description
25516 \begin_layout Description
25520 \begin_layout Description
25521 deletedtext 削除された文章の色
25524 \begin_layout Description
25525 deletedtextmodifier 削除された文章の修飾子の色
25528 \begin_layout Description
25529 depthbar 余白部の階層表示線の色
25532 \begin_layout Description
25536 \begin_layout Description
25537 error \SpecialChar LaTeX
25541 \begin_layout Description
25545 \begin_layout Description
25546 graphicsbg 画像差込枠の背景色
25549 \begin_layout Description
25550 greyedout 淡色表示差込枠のラベル色
25553 \begin_layout Description
25554 greyedoutbg 淡色表示差込枠の背景色
25557 \begin_layout Description
25558 greyedouttext 淡色表示差込枠の文字色
25561 \begin_layout Description
25562 indexlabel 索引差込枠のラベル色
25565 \begin_layout Description
25569 \begin_layout Description
25573 \begin_layout Description
25574 inlinecompletion 行内補完色
25577 \begin_layout Description
25581 \begin_layout Description
25585 \begin_layout Description
25586 language 外国語の単語を標識するための色
25589 \begin_layout Description
25590 latex \SpecialChar LaTeX
25594 \begin_layout Description
25595 listingsbg プログラムリスト差込枠の背景色
25598 \begin_layout Description
25599 marginlabel 傍註のラベル色
25602 \begin_layout Description
25606 \begin_layout Description
25610 \begin_layout Description
25611 mathcorners フォーカスを得ていない数式差込枠の縁色
25614 \begin_layout Description
25615 mathframe フォーカスを得ている数式差込枠の縁色
25618 \begin_layout Description
25622 \begin_layout Description
25623 mathmacrobg 数式マクロ差込枠の背景色
25626 \begin_layout Description
25627 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
25630 \begin_layout Description
25631 mathmacroframe 数式マクロ差込枠の縁色
25634 \begin_layout Description
25635 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
25638 \begin_layout Description
25639 mathmacrolabel 数式マクロ差込枠のラベル色
25642 \begin_layout Description
25643 mathmacronewarg 数式マクロ新パラメーターのひな型色
25646 \begin_layout Description
25647 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
25650 \begin_layout Description
25654 \begin_layout Description
25655 nonunique_inlinecompletion 行内補完の一意でない部分の色
25658 \begin_layout Description
25662 \begin_layout Description
25666 \begin_layout Description
25670 \begin_layout Description
25671 paragraphmarker 段落末を標識するための段落標の色
25674 \begin_layout Description
25675 phantomtext 埋め草差込枠の文字色
25678 \begin_layout Description
25679 preview プレビューに用いられる色
25682 \begin_layout Description
25683 previewframe プレビュー縁色
25686 \begin_layout Description
25687 regexpframe 正規表現枠の色
25690 \begin_layout Description
25691 selection 文章選択部の背景色
25694 \begin_layout Description
25695 selectiontext 文章選択部の前景色
25698 \begin_layout Description
25699 shadedbg 影付きボックスの背景色
25702 \begin_layout Description
25706 \begin_layout Description
25710 \begin_layout Description
25711 tabularonoffline 罫線色
25714 \begin_layout Description
25715 urllabel URL差込枠のラベル色
25718 \begin_layout Description