1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
5 \save_transient_properties false
6 \origin /systemlyxdir/doc/ja/
9 % DO NOT ALTER THIS PREAMBLE!!!
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected. If you
14 % have problems LaTeXing this file, please contact
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
23 \pdfbookmark[1]{\contentsname}{}
27 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,bookmarkpackage=false
28 \use_default_options false
33 \maintain_unincluded_children false
36 InsetLayout Flex:MenuItem
45 \newcommand*{\menuitem}[1]{{\sffamily #1}}
49 # In case we need to do with sans...
50 #InsetLayout CharStyle:Code
55 #\renewcommand{\code}[1]{{\sffamily #1}}
60 \language_package default
63 \font_roman "lmodern" "IPAexMincho"
64 \font_sans "default" "IPAexGothic"
65 \font_typewriter "default" "default"
66 \font_math "auto" "auto"
67 \font_default_family default
68 \use_non_tex_fonts false
71 \font_sf_scale 100 100
72 \font_tt_scale 100 100
74 \use_dash_ligatures false
76 \default_output_format default
78 \bibtex_command default
79 \index_command default
83 \pdf_title "LyX Configuration Manual"
84 \pdf_author "LyX Team"
85 \pdf_subject "LyX-Documentation Customization"
86 \pdf_keywords "LyX, documentation, customization"
88 \pdf_bookmarksnumbered true
89 \pdf_bookmarksopen true
90 \pdf_bookmarksopenlevel 1
95 \pdf_pdfusetitle false
96 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
99 \use_package amsmath 1
100 \use_package amssymb 1
101 \use_package cancel 1
103 \use_package mathdots 1
104 \use_package mathtools 1
105 \use_package mhchem 1
106 \use_package stackrel 1
107 \use_package stmaryrd 1
108 \use_package undertilde 1
110 \cite_engine_type default
114 \paperorientation portrait
119 \notefontcolor #0000ff
131 \paragraph_separation indent
132 \paragraph_indentation default
134 \math_indentation default
135 \math_numbering_side default
136 \quotes_style english
140 \paperpagestyle headings
142 \tracking_changes false
143 \output_changes false
154 \begin_inset Newline newline
166 \begin_layout Plain Layout
168 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
170 \begin_inset CommandInset href
172 target "lyx-docs@lists.lyx.org"
178 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
179 ast.net>をccにして送ってください.
185 \begin_inset Newline newline
189 \begin_inset Newline newline
195 \begin_layout Standard
196 \begin_inset CommandInset toc
197 LatexCommand tableofcontents
202 \begin_inset Note Note
205 \begin_layout Plain Layout
206 本文書を修正する際には,変更追跡機能を使用してください.これによって,
209 \begin_layout Plain Layout
211 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
219 \begin_layout Chapter
223 \begin_layout Standard
224 この取扱説明書は,\SpecialChar LyX
225 に備わっている高度設定機能を取り扱います.ここでは,
226 \begin_inset Flex Ruby
229 \begin_layout Plain Layout
231 \begin_inset Argument post:1
234 \begin_layout Plain Layout
245 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
246 サーバ経由での\SpecialChar LyX
247 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
249 レイアウトの導入などの題材について論じます.おそらくは変更
250 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
251 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
254 \begin_layout Standard
255 \begin_inset Branch OutDated
259 \begin_layout Standard
260 Information from previous versions of this document that now seems to be
261 outdated is contained in the OutDated branch of this document.
262 By default, this information will not appear in the \SpecialChar LaTeX
271 \begin_layout Chapter
276 \begin_layout Standard
277 本章の目的は,\SpecialChar LyX
278 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
279 \begin_inset Flex MenuItem
282 \begin_layout Plain Layout
283 ヘルプ\SpecialChar menuseparator
289 を使って,\SpecialChar LyX
290 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
291 がシステム全体の設定ファイルを置いておくところです.一
292 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
293 \begin_inset Flex Code
296 \begin_layout Plain Layout
303 \begin_inset Flex MenuItem
306 \begin_layout Plain Layout
315 \begin_layout Section
316 \begin_inset Flex Code
319 \begin_layout Plain Layout
328 \begin_layout Standard
329 \begin_inset Flex Code
332 \begin_layout Plain Layout
338 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
339 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
341 \begin_inset Flex MenuItem
344 \begin_layout Plain Layout
345 ツール\SpecialChar menuseparator
351 ダイアログから変更することができます.\SpecialChar LyX
352 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
354 \begin_inset Flex Code
357 \begin_layout Plain Layout
363 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
366 \begin_layout Subsection
370 \begin_layout Standard
371 \begin_inset Flex MenuItem
374 \begin_layout Plain Layout
380 にある各ファイルは,\SpecialChar LyX
381 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
382 うので,一般的には修正しないことが望まれます.
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
390 \begin_layout Plain Layout
396 このファイルには,様々な既定コマンドが置かれています.
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
404 \begin_layout Plain Layout
410 このファイルには,\SpecialChar LyX
411 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
412 プログラム自体には使用されていませんが,抽出された情報その他は,
413 \begin_inset Flex MenuItem
416 \begin_layout Plain Layout
417 ヘルプ\SpecialChar menuseparator
426 \begin_layout Labeling
427 \labelwidthstring 00.00.0000
428 \begin_inset Flex Code
431 \begin_layout Plain Layout
438 \begin_inset Flex Code
441 \begin_layout Plain Layout
447 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
451 \begin_layout Labeling
452 \labelwidthstring 00.00.0000
453 \begin_inset Flex Code
456 \begin_layout Plain Layout
463 \begin_inset Flex Code
466 \begin_layout Plain Layout
472 ディレクトリで検出されたレイアウトモジュールの一覧です.
475 \begin_layout Labeling
476 \labelwidthstring 00.00.0000
477 \begin_inset Flex Code
480 \begin_layout Plain Layout
486 ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
490 \begin_layout Labeling
491 \labelwidthstring 00.00.0000
492 \begin_inset Flex Code
495 \begin_layout Plain Layout
502 \begin_inset Flex Code
505 \begin_layout Plain Layout
511 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
515 \begin_layout Subsection
519 \begin_layout Standard
521 \begin_inset Flex Code
524 \begin_layout Plain Layout
531 \begin_inset Flex Code
534 \begin_layout Plain Layout
540 に重複して存在します.特定のファイルが両方の場所にある場合には,
541 \begin_inset Flex Code
544 \begin_layout Plain Layout
553 \begin_layout Labeling
554 \labelwidthstring 00.00.0000
555 \begin_inset Flex Code
558 \begin_layout Plain Layout
564 このディレクトリには,\SpecialChar LyX
565 で使用されるキー割当を定義している,拡張子が
566 \begin_inset Flex Code
569 \begin_layout Plain Layout
576 \begin_inset Flex Code
579 \begin_layout Plain Layout
585 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
588 \begin_layout Labeling
589 \labelwidthstring 00.00.0000
590 \begin_inset Flex Code
593 \begin_layout Plain Layout
599 このディレクトリには,幅広い文献引用力(natbib, biblatexなど)を定義する,拡張子が
600 \begin_inset Flex Code
603 \begin_layout Plain Layout
609 のファイルが置かれています.詳細については,第
610 \begin_inset CommandInset ref
612 reference "subsec:引用エンジンファイル"
622 \begin_layout Labeling
623 \labelwidthstring 00.00.0000
624 \begin_inset Flex Code
627 \begin_layout Plain Layout
633 このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
636 \begin_layout Labeling
637 \labelwidthstring 00.00.0000
638 \begin_inset Flex Code
641 \begin_layout Plain Layout
647 このディレクトリには,\SpecialChar LyX
648 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
649 \begin_inset Flex Code
652 \begin_layout Plain Layout
658 ファイルは特に注目に値します.各国語版のヘルプ文書は,
659 \begin_inset Flex Code
662 \begin_layout Plain Layout
668 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
669 \begin_inset CommandInset ref
671 reference "cha:LyXの各国語対応"
678 \begin_layout Labeling
679 \labelwidthstring 00.00.0000
680 \begin_inset Flex Code
683 \begin_layout Plain Layout
689 このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
690 \begin_inset Flex MenuItem
693 \begin_layout Plain Layout
699 ボタンを押すと,このディレクトリが表示されます.
702 \begin_layout Labeling
703 \labelwidthstring 00.00.0000
704 \begin_inset Flex Code
707 \begin_layout Plain Layout
714 \begin_inset Flex MenuItem
717 \begin_layout Plain Layout
723 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
724 を起動したときに現れるバナーも納められています.
727 \begin_layout Labeling
728 \labelwidthstring 00.00.0000
729 \begin_inset Flex Code
732 \begin_layout Plain Layout
738 このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
739 \begin_inset CommandInset ref
741 reference "sec:国際キー配列"
748 \begin_layout Labeling
749 \labelwidthstring 00.00.0000
750 \begin_inset Flex Code
753 \begin_layout Plain Layout
760 \begin_inset CommandInset ref
762 reference "cha:新規文書を導入"
766 に述べられているテキストクラスおよびモジュールのファイルが納められています.
769 \begin_layout Labeling
770 \labelwidthstring 00.00.0000
771 \begin_inset Flex Code
774 \begin_layout Plain Layout
780 このディレクトリには,\SpecialChar LyX
782 \begin_inset Flex Code
785 \begin_layout Plain Layout
791 Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
794 \begin_layout Labeling
795 \labelwidthstring 00.00.0000
796 \begin_inset Flex Code
799 \begin_layout Plain Layout
806 \begin_inset Flex MenuItem
809 \begin_layout Plain Layout
815 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
816 自身が使用するスクリプトもいくつか収められています.
819 \begin_layout Labeling
820 \labelwidthstring 00.00.0000
821 \begin_inset Flex Code
824 \begin_layout Plain Layout
831 \begin_inset CommandInset ref
833 reference "sec:ひな型を作成する"
837 で述べられている標準の\SpecialChar LyX
841 \begin_layout Labeling
842 \labelwidthstring 00.00.0000
843 \begin_inset Flex Code
846 \begin_layout Plain Layout
852 このディレクトリには,\SpecialChar LyX
854 \begin_inset Flex Code
857 \begin_layout Plain Layout
863 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
866 \begin_layout Labeling
867 \labelwidthstring 00.00.0000
868 \begin_inset Flex Code
871 \begin_layout Plain Layout
877 このディレクトリには,\SpecialChar LyX
878 文書への外部素材の挿入のひな型を定義する,拡張子が
879 \begin_inset Flex Code
882 \begin_layout Plain Layout
889 \begin_inset CommandInset ref
891 reference "chap:外部素材を取り込む"
901 \begin_layout Subsection
905 \begin_layout Standard
906 これらのファイルは\SpecialChar LyX
907 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
910 \begin_layout Labeling
911 \labelwidthstring 00.00.0000
912 \begin_inset Flex Code
915 \begin_layout Plain Layout
921 このファイルは,\SpecialChar LyX
922 開発陣の名簿です.この内容は,メニュー項目
923 \begin_inset Flex MenuItem
926 \begin_layout Plain Layout
927 ヘルプ\SpecialChar menuseparator
936 \begin_layout Labeling
937 \labelwidthstring 00.00.0000
938 \begin_inset Flex Code
941 \begin_layout Plain Layout
947 これは,自動設定プロセスによって使用される\SpecialChar LaTeX
948 スクリプトです.直接実行しないでください.
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
956 \begin_layout Plain Layout
963 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
966 \begin_layout Subsection
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
975 \begin_layout Plain Layout
981 このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
984 \begin_layout Labeling
985 \labelwidthstring 00.00.0000
986 \begin_inset Flex Code
989 \begin_layout Plain Layout
995 このファイルには,現在\SpecialChar LyX
996 がサポートしている言語の全一覧が載っています.
999 \begin_layout Labeling
1000 \labelwidthstring 00.00.0000
1001 \begin_inset Flex Code
1004 \begin_layout Plain Layout
1010 サポートされているフォントに関する情報が掲載されています.
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1018 \begin_layout Plain Layout
1024 このファイルは,国際化された段落様式の翻訳が収録されています(
1025 \begin_inset CommandInset ref
1027 reference "subsec:段落様式の国際化"
1034 \begin_layout Labeling
1035 \labelwidthstring 00.00.0000
1036 \begin_inset Flex Code
1039 \begin_layout Plain Layout
1045 このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1047 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1050 \begin_layout Section
1054 \begin_layout Standard
1056 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1057 の設定を変更したいと思うかもしれません.
1058 \begin_inset Flex Code
1061 \begin_layout Plain Layout
1067 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1068 \begin_inset Flex MenuItem
1071 \begin_layout Plain Layout
1072 ヘルプ\SpecialChar menuseparator
1078 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1079 \begin_inset Flex Code
1082 \begin_layout Plain Layout
1089 \begin_inset Flex Code
1092 \begin_layout Plain Layout
1099 \begin_inset Flex Code
1102 \begin_layout Plain Layout
1108 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1111 \begin_layout Standard
1112 わかりやすくするために,いくつか例を挙げましょう.
1115 \begin_layout Itemize
1116 \begin_inset Flex MenuItem
1119 \begin_layout Plain Layout
1120 ツール\SpecialChar menuseparator
1127 \begin_inset Flex Code
1130 \begin_layout Plain Layout
1137 \begin_inset Flex Code
1140 \begin_layout Plain Layout
1149 \begin_layout Itemize
1150 \begin_inset Flex MenuItem
1153 \begin_layout Plain Layout
1154 ツール\SpecialChar menuseparator
1160 を使用して環境構成を行うと,\SpecialChar LyX
1162 \begin_inset Flex Code
1165 \begin_layout Plain Layout
1171 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1172 \begin_inset Flex Code
1175 \begin_layout Plain Layout
1182 \begin_inset Flex MenuItem
1185 \begin_layout Plain Layout
1186 文書\SpecialChar menuseparator
1192 ダイアログのクラス一覧に表示されるようになることを意味します.
1195 \begin_layout Itemize
1196 たとえば,\SpecialChar LyX
1197 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1199 \begin_inset Flex Code
1202 \begin_layout Plain Layout
1209 \begin_inset Flex MenuItem
1212 \begin_layout Plain Layout
1218 メニュー項目はこれらを開くようになります!
1221 \begin_layout Section
1226 \begin_layout Standard
1227 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1228 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1229 どのディレクトリを使用するか指定するのです.
1232 \begin_layout Standard
1235 \begin_inset Flex Code
1238 \begin_layout Plain Layout
1248 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1250 \begin_inset Flex Code
1253 \begin_layout Plain Layout
1259 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1260 は,初めて\SpecialChar LyX
1262 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1263 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1264 \begin_inset Flex Code
1267 \begin_layout Plain Layout
1273 を特定の値に設定しても,全く同じ効果があります.
1276 \begin_layout Standard
1277 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1278 \begin_inset Flex Code
1281 \begin_layout Plain Layout
1287 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1288 クを使用してください.\SpecialChar LyX
1289 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1290 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1291 \begin_inset Flex Code
1294 \begin_layout Plain Layout
1301 \begin_inset Flex MenuItem
1304 \begin_layout Plain Layout
1305 ツール\SpecialChar menuseparator
1311 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1314 \begin_layout Chapter
1318 \begin_layout Standard
1327 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1330 \begin_layout Section
1332 \begin_inset CommandInset label
1341 \begin_layout Standard
1342 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1343 \begin_inset Flex MenuItem
1346 \begin_layout Plain Layout
1347 ツール\SpecialChar menuseparator
1354 \begin_inset Flex MenuItem
1357 \begin_layout Plain Layout
1358 ファイル処理\SpecialChar menuseparator
1365 \begin_inset Flex MenuItem
1368 \begin_layout Plain Layout
1369 新規\SpecialChar ldots
1375 ボタンを押して,登録する新しい形式を定義してください.
1376 \begin_inset Flex MenuItem
1379 \begin_layout Plain Layout
1385 フィールドは,GUI中で形式を認識するために用いられる名称です.
1386 \begin_inset Flex MenuItem
1389 \begin_layout Plain Layout
1395 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1396 \begin_inset Flex MenuItem
1399 \begin_layout Plain Layout
1406 \begin_inset Flex Ruby
1409 \begin_layout Plain Layout
1411 \begin_inset Argument post:1
1414 \begin_layout Plain Layout
1426 \begin_inset Flex MenuItem
1429 \begin_layout Plain Layout
1436 \begin_inset Flex MenuItem
1439 \begin_layout Plain Layout
1440 表示\SpecialChar menuseparator
1449 \begin_layout Standard
1451 \begin_inset Flex MenuItem
1454 \begin_layout Plain Layout
1461 \begin_inset Flex MenuItem
1464 \begin_layout Plain Layout
1470 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1471 \begin_inset Flex MenuItem
1474 \begin_layout Plain Layout
1480 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1481 いることができます.この閲覧プログラムは,\SpecialChar LyX
1483 \begin_inset Flex MenuItem
1486 \begin_layout Plain Layout
1492 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1493 \begin_inset Flex MenuItem
1496 \begin_layout Plain Layout
1505 \begin_layout Standard
1507 \begin_inset Flex MenuItem
1510 \begin_layout Plain Layout
1516 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1518 \begin_inset CommandInset href
1521 target "http://www.iana.org/assignments/media-types/"
1526 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1528 \begin_inset CommandInset href
1530 name "freedesktop.org"
1531 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1536 で指定されているMIME型拡張表を使用しています.
1539 \begin_layout Standard
1540 \begin_inset Flex MenuItem
1543 \begin_layout Plain Layout
1549 オプションは,\SpecialChar LyX
1550 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1551 \begin_inset CommandInset ref
1558 \begin_inset Flex MenuItem
1561 \begin_layout Plain Layout
1562 ファイル\SpecialChar menuseparator
1569 \begin_inset Flex MenuItem
1572 \begin_layout Plain Layout
1578 footlabel Label color for footnotす.
1579 \begin_inset Flex Code
1582 \begin_layout Plain Layout
1588 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1589 \begin_inset Flex Code
1592 \begin_layout Plain Layout
1598 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1601 \begin_layout Standard
1602 \begin_inset Flex MenuItem
1605 \begin_layout Plain Layout
1611 オプションは,\SpecialChar LyX
1612 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1613 \begin_inset Flex MenuItem
1616 \begin_layout Plain Layout
1622 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1623 \begin_inset Flex MenuItem
1626 \begin_layout Plain Layout
1633 \begin_inset Flex MenuItem
1636 \begin_layout Plain Layout
1643 \begin_inset Flex MenuItem
1646 \begin_layout Plain Layout
1653 \begin_inset Flex MenuItem
1656 \begin_layout Plain Layout
1662 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1663 \begin_inset Flex MenuItem
1666 \begin_layout Plain Layout
1673 \begin_inset Flex MenuItem
1676 \begin_layout Plain Layout
1683 \begin_inset Flex MenuItem
1686 \begin_layout Plain Layout
1692 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1693 \begin_inset Flex MenuItem
1696 \begin_layout Plain Layout
1703 \begin_inset Flex MenuItem
1706 \begin_layout Plain Layout
1715 \begin_layout Section
1719 \begin_layout Standard
1720 形式の変換はすべて,\SpecialChar LyX
1721 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1725 \begin_layout Plain Layout
1726 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1732 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1735 \begin_layout Standard
1736 複写子の定義においては,以下の8つの変数を用いることができます.
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1741 \begin_inset Flex Code
1744 \begin_layout Plain Layout
1752 \begin_inset Flex MenuItem
1755 \begin_layout Plain Layout
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Flex Code
1769 \begin_layout Plain Layout
1778 \begin_layout Labeling
1779 \labelwidthstring 00.00.0000
1780 \begin_inset Flex Code
1783 \begin_layout Plain Layout
1792 \begin_layout Labeling
1793 \labelwidthstring 00.00.0000
1794 \begin_inset Flex Code
1797 \begin_layout Plain Layout
1804 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1807 \begin_layout Labeling
1808 \labelwidthstring 00.00.0000
1809 \begin_inset Flex Code
1812 \begin_layout Plain Layout
1822 \begin_layout Labeling
1823 \labelwidthstring 00.00.0000
1824 \begin_inset Flex Code
1827 \begin_layout Plain Layout
1833 処理されている元の\SpecialChar LyX
1837 \begin_layout Labeling
1838 \labelwidthstring 00.00.0000
1839 \begin_inset Flex Code
1842 \begin_layout Plain Layout
1849 ファイルのファイル名(ディレクトリパスなし)
1852 \begin_layout Labeling
1853 \labelwidthstring 00.00.0000
1854 \begin_inset Flex Code
1857 \begin_layout Plain Layout
1867 \begin_layout Standard
1868 最後の変数は,\SpecialChar LaTeX
1875 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1878 \begin_layout Standard
1879 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1880 \begin_inset Flex Code
1883 \begin_layout Plain Layout
1889 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1892 \begin_layout Standard
1893 \begin_inset listings
1897 \begin_layout Plain Layout
1902 \begin_layout Plain Layout
1907 \begin_layout Plain Layout
1909 TOFILE=`basename $2`
1912 \begin_layout Plain Layout
1914 DescriptionE /home/you/pdf/$TOFILE
1920 \begin_inset Flex Code
1923 \begin_layout Plain Layout
1924 /home/you/.lyx/scripts/pdfcopier.sh
1929 のような,自身のローカル\SpecialChar LyX
1930 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1931 \begin_inset Flex MenuItem
1934 \begin_layout Plain Layout
1935 ツール\SpecialChar menuseparator
1942 \begin_inset Flex MenuItem
1945 \begin_layout Plain Layout
1946 ファイル処理\SpecialChar menuseparator
1953 \begin_inset Flex MenuItem
1956 \begin_layout Plain Layout
1962 形式—あるいは他のPDF形式のうちどれか—を選択し,
1963 \begin_inset Flex MenuItem
1966 \begin_layout Plain Layout
1973 \begin_inset Flex Code
1976 \begin_layout Plain Layout
1977 pdfcopier.sh $$i $$o
1985 \begin_layout Standard
1986 複写子は,\SpecialChar LyX
1987 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
1989 \begin_inset Flex MenuItem
1992 \begin_layout Plain Layout
1999 \begin_inset Flex MenuItem
2002 \begin_layout Plain Layout
2004 \begin_inset space ~
2012 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2013 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2014 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2018 \begin_layout Plain Layout
2019 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2020 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2021 \begin_inset Flex MenuItem
2024 \begin_layout Plain Layout
2031 \begin_inset Flex MenuItem
2034 \begin_layout Plain Layout
2035 /path/to/filename.lyx
2041 \begin_inset Flex MenuItem
2044 \begin_layout Plain Layout
2045 /path/to/filename.html.LyXconv
2059 \begin_layout Section
2061 \begin_inset CommandInset label
2070 \begin_layout Standard
2071 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2072 \begin_inset Flex MenuItem
2075 \begin_layout Plain Layout
2076 ツール\SpecialChar menuseparator
2077 設定\SpecialChar menuseparator
2078 ファイル処理\SpecialChar menuseparator
2087 \begin_layout Standard
2088 新規に変換子を定義するには,ドロップダウンリストから
2089 \begin_inset Flex MenuItem
2092 \begin_layout Plain Layout
2099 \begin_inset Flex MenuItem
2102 \begin_layout Plain Layout
2108 を選択し,変換に必要なコマンドを入力してから
2109 \begin_inset Flex MenuItem
2112 \begin_layout Plain Layout
2118 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2121 \begin_layout Labeling
2122 \labelwidthstring 00.00.0000
2123 \begin_inset Flex Code
2126 \begin_layout Plain Layout
2136 \begin_layout Labeling
2137 \labelwidthstring 00.00.0000
2138 \begin_inset Flex Code
2141 \begin_layout Plain Layout
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2155 \begin_layout Plain Layout
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2169 \begin_layout Plain Layout
2175 入力ファイルのベースファイル名(拡張子をとった部分)
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2183 \begin_layout Plain Layout
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2197 \begin_layout Plain Layout
2203 元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2206 \begin_layout Labeling
2207 \labelwidthstring 00.00.0000
2208 \begin_inset Flex Code
2211 \begin_layout Plain Layout
2220 \begin_layout Standard
2221 \begin_inset Flex MenuItem
2224 \begin_layout Plain Layout
2230 フィールドには,以下のフラグをコンマで区切って入力することができます.
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Flex Code
2238 \begin_layout Plain Layout
2244 この変換子が\SpecialChar LaTeX
2245 の一種を実行することを示します.これによって,\SpecialChar LyX
2247 エラーログに記録を残せるようになります.
2250 \begin_layout Labeling
2251 \labelwidthstring 00.00.0000
2252 \begin_inset Flex Code
2255 \begin_layout Plain Layout
2261 変換に\SpecialChar LaTeX
2263 \begin_inset Flex MenuItem
2266 \begin_layout Plain Layout
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Flex Code
2280 \begin_layout Plain Layout
2287 \begin_inset Quotes erd
2291 \begin_inset Quotes erd
2294 なファイル,つまり\SpecialChar LyX
2295 が書き出す\SpecialChar LaTeX
2297 \begin_inset Flex Code
2300 \begin_layout Plain Layout
2306 のない\SpecialChar LaTeX
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Flex Code
2315 \begin_layout Plain Layout
2324 \begin_layout Standard
2326 \begin_inset Flex MenuItem
2329 \begin_layout Plain Layout
2331 \begin_inset space ~
2335 \begin_inset space ~
2343 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2346 \begin_layout Labeling
2347 \labelwidthstring 00.00.0000
2348 \begin_inset Flex Code
2351 \begin_layout Plain Layout
2358 \begin_inset Flex Code
2361 \begin_layout Plain Layout
2367 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2368 \begin_inset Flex Code
2371 \begin_layout Plain Layout
2372 script < infile.out > infile.log
2377 の形で実行されるようになります.引数には
2378 \begin_inset Flex Code
2381 \begin_layout Plain Layout
2390 \begin_layout Labeling
2391 \labelwidthstring 00.00.0000
2392 \begin_inset Flex Code
2395 \begin_layout Plain Layout
2401 これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2402 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2404 \begin_inset Flex Code
2407 \begin_layout Plain Layout
2413 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2414 \begin_inset Newline newline
2417 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2420 \begin_layout Labeling
2421 \labelwidthstring 00.00.0000
2422 \begin_inset Flex Code
2425 \begin_layout Plain Layout
2432 \begin_inset Flex Code
2435 \begin_layout Plain Layout
2441 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2444 \begin_layout Standard
2445 最後の3つは,\SpecialChar LyX
2446 とともに導入される変換子には,現在いずれも使用されておりません.
2449 \begin_layout Standard
2450 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2451 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2453 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2454 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2455 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2456 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2457 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2458 設定は,\SpecialChar LaTeX
2459 からPDFへ変換するのに,以下の3つの方法を
2463 \begin_layout Enumerate
2465 \begin_inset Flex MenuItem
2468 \begin_layout Plain Layout
2477 \begin_layout Enumerate
2478 (DVIと)PostScriptを経由して
2479 \begin_inset Flex MenuItem
2482 \begin_layout Plain Layout
2491 \begin_layout Enumerate
2493 \begin_inset Flex MenuItem
2496 \begin_layout Plain Layout
2505 \begin_layout Enumerate
2507 \begin_inset Flex MenuItem
2510 \begin_layout Plain Layout
2520 \begin_layout Enumerate
2522 \begin_inset Flex MenuItem
2525 \begin_layout Plain Layout
2535 \begin_layout Standard
2537 \begin_inset CommandInset ref
2539 reference "sec:ファイル形式"
2543 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2544 \begin_inset Flex MenuItem
2547 \begin_layout Plain Layout
2554 \begin_inset Flex MenuItem
2557 \begin_layout Plain Layout
2564 \begin_inset Flex MenuItem
2567 \begin_layout Plain Layout
2574 \begin_inset Flex MenuItem
2577 \begin_layout Plain Layout
2584 \begin_inset Flex MenuItem
2587 \begin_layout Plain Layout
2594 \begin_inset Flex MenuItem
2597 \begin_layout Plain Layout
2604 \begin_inset Flex MenuItem
2607 \begin_layout Plain Layout
2614 \begin_inset Flex MenuItem
2617 \begin_layout Plain Layout
2625 \begin_inset Flex MenuItem
2628 \begin_layout Plain Layout
2635 \begin_inset Flex MenuItem
2638 \begin_layout Plain Layout
2645 用\SpecialChar softhyphen
2646 ) と命名された形式が定義されていて,すべて共通の拡張子
2647 \begin_inset Flex MenuItem
2650 \begin_layout Plain Layout
2656 を持ち,上記で言及した各変換方法に対応しています.
2659 \begin_layout Chapter
2662 \begin_inset CommandInset label
2664 name "cha:LyXの各国語対応"
2671 \begin_layout Standard
2673 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2674 は30言語の翻訳を提供しています.選択した言語は,使用する
2678 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2679 \begin_inset Flex Code
2682 \begin_layout Plain Layout
2691 \begin_layout Standard
2692 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2693 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2694 \begin_inset Flex Ruby
2697 \begin_layout Plain Layout
2699 \begin_inset Argument post:1
2702 \begin_layout Plain Layout
2713 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2714 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2718 \begin_layout Plain Layout
2719 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2720 コミュニティに報いるたいへん素晴らしい方法です!
2726 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2729 \begin_layout Section
2734 \begin_layout Subsection
2735 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2736 \begin_inset Argument 1
2739 \begin_layout Plain Layout
2748 \begin_layout Standard
2751 \begin_inset Flex Code
2754 \begin_layout Plain Layout
2760 ライブラリを使用します.\SpecialChar LyX
2761 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2762 \begin_inset Flex Code
2765 \begin_layout Plain Layout
2771 ファイルが必要です.このファイルが利用可能であれば,そこから
2772 \begin_inset Flex Code
2775 \begin_layout Plain Layout
2782 \begin_inset Flex Code
2785 \begin_layout Plain Layout
2791 ファイルをインストールしなくてはなりません.この全過程は,GNU
2792 \begin_inset Flex Code
2795 \begin_layout Plain Layout
2801 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2803 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2804 開発者メーリングリストにメールを送ってください.
2807 \begin_layout Standard
2808 要約すれば,以下のように行います(xxは言語コードを表します).
2811 \begin_layout Itemize
2813 ソースコードをチェックアウトしてください(
2814 \begin_inset CommandInset href
2817 target "https://www.lyx.org/HowToUseGIT"
2825 \begin_layout Itemize
2826 \begin_inset Flex Code
2829 \begin_layout Plain Layout
2836 \begin_inset Flex Code
2839 \begin_layout Plain Layout
2846 \begin_inset Flex Code
2849 \begin_layout Plain Layout
2856 \begin_inset Flex Code
2859 \begin_layout Plain Layout
2865 がどこにもない場合には,コンソールからそのディレクトリで
2866 \begin_inset Flex Code
2869 \begin_layout Plain Layout
2875 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2878 \begin_layout Itemize
2879 \begin_inset Flex Code
2882 \begin_layout Plain Layout
2892 \begin_layout Plain Layout
2893 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2901 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2906 \begin_inset Flex Code
2909 \begin_layout Plain Layout
2915 ファイルを編集するための「モード」があります,第
2916 \begin_inset Flex URL
2919 \begin_layout Plain Layout
2921 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
2931 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2932 \begin_inset Flex Ruby
2935 \begin_layout Plain Layout
2937 \begin_inset Argument post:1
2940 \begin_layout Plain Layout
2951 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2952 \begin_inset Flex Code
2955 \begin_layout Plain Layout
2961 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2964 \begin_layout Standard
2965 もし,あなたがこれを自身のためだけに行っているのであれば,
2968 \begin_layout Itemize
2969 \begin_inset Flex Code
2972 \begin_layout Plain Layout
2979 \begin_inset Flex Code
2982 \begin_layout Plain Layout
2983 msgfmt -o xx.mo < xx.po
2991 \begin_layout Itemize
2993 \begin_inset Flex Code
2996 \begin_layout Plain Layout
3002 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3003 \begin_inset Flex Code
3006 \begin_layout Plain Layout
3013 \begin_inset Flex Code
3016 \begin_layout Plain Layout
3017 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3025 \begin_layout Standard
3027 \begin_inset Flex Code
3030 \begin_layout Plain Layout
3036 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3037 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3038 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3042 \begin_layout Subsubsection
3046 \begin_layout Standard
3047 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3048 \begin_inset Flex Code
3051 \begin_layout Plain Layout
3057 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU
3058 \begin_inset Flex Code
3061 \begin_layout Plain Layout
3068 \begin_inset Flex Code
3071 \begin_layout Plain Layout
3078 \begin_inset Flex Code
3081 \begin_layout Plain Layout
3082 To[[as in 'From format x to format y']]
3088 \begin_inset Flex Code
3091 \begin_layout Plain Layout
3092 To[[as in 'From page x to page y']]
3097 としなくてはなりません.これによって,これら2つの
3098 \begin_inset Flex Code
3101 \begin_layout Plain Layout
3108 \begin_inset Flex Code
3111 \begin_layout Plain Layout
3117 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3120 \begin_layout Standard
3121 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3123 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3126 \begin_layout Subsection
3130 \begin_layout Standard
3132 \begin_inset Flex MenuItem
3135 \begin_layout Plain Layout
3141 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3145 \begin_layout Plain Layout
3146 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3151 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3152 はこれを自動的に使用します.\SpecialChar LyX
3154 \begin_inset Flex Code
3157 \begin_layout Plain Layout
3158 LyXDir/doc/xx/DocName.lyx
3164 \begin_inset Flex Code
3167 \begin_layout Plain Layout
3173 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3174 \begin_inset Flex Code
3177 \begin_layout Plain Layout
3183 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3187 \begin_layout Itemize
3189 \begin_inset CommandInset href
3191 name "https://www.lyx.org/Translation"
3192 target "https://www.lyx.org/Translation"
3197 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3198 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3201 \begin_layout Standard
3202 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3205 \begin_layout Itemize
3206 文書化チームに所属してください!そのための情報が
3207 \begin_inset Flex Code
3210 \begin_layout Plain Layout
3217 \begin_inset Flex MenuItem
3220 \begin_layout Plain Layout
3221 ヘルプ\SpecialChar menuseparator
3228 \begin_inset Flex Code
3231 \begin_layout Plain Layout
3240 \begin_layout Itemize
3241 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3242 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3244 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3249 \begin_layout Itemize
3250 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3251 \begin_inset Flex Code
3254 \begin_layout Plain Layout
3260 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3261 \begin_inset Newline newline
3265 \begin_inset Note Greyedout
3268 \begin_layout Plain Layout
3273 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3274 ことに注意してください.最も良い方法は,LyXツリーをgit (
3275 \begin_inset Flex URL
3278 \begin_layout Plain Layout
3280 https://www.lyx.org/HowToUseGIT
3285 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3293 \begin_layout Itemize
3295 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3296 \begin_inset CommandInset href
3298 name "https://www.lyx.org/trac/timeline"
3299 target "https://www.lyx.org/trac/timeline"
3304 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3307 \begin_layout Standard
3308 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3311 \begin_layout Standard
3312 \begin_inset Branch OutDated
3316 \begin_layout Section
3317 International Keyboard Support
3320 \begin_layout Standard
3323 [Editor's Note: The following section is by
3331 It needs to be fixed to conform to the new Documentation Style sheet and
3332 to make use of the new v1.0 features.
3333 The whole thing also needs to be merged with the section following it.-jw
3334 It may also be badly out of date.-rh (2008)]
3337 \begin_layout Subsection
3338 Defining Own Keymaps: Keymap File Format
3341 \begin_layout Standard
3342 Let's look at a keyboard definition file a little closer.
3343 It is a plain text file defining
3346 \begin_layout Itemize
3347 key-to-key or key-to-string translations
3350 \begin_layout Itemize
3354 \begin_layout Itemize
3355 dead keys exceptions
3358 \begin_layout Standard
3359 To define key-to-key or key-to-string translation, use this command:
3362 \begin_layout Quotation
3363 \begin_inset Flex Code
3366 \begin_layout Plain Layout
3375 \begin_inset Flex Code
3378 \begin_layout Plain Layout
3387 \begin_layout Standard
3389 \begin_inset Flex Code
3392 \begin_layout Plain Layout
3398 is the key to be translated and
3399 \begin_inset Flex Code
3402 \begin_layout Plain Layout
3408 is the string to be inserted into the document.
3409 To define dead keys, use:
3412 \begin_layout Quotation
3413 \begin_inset Flex Code
3416 \begin_layout Plain Layout
3425 \begin_inset Flex Code
3428 \begin_layout Plain Layout
3437 \begin_layout Standard
3439 \begin_inset Flex Code
3442 \begin_layout Plain Layout
3448 is a keyboard key and
3449 \begin_inset Flex Code
3452 \begin_layout Plain Layout
3459 The following dead keys are supported (shortcut name is in parentheses):
3462 \begin_layout Quotation
3466 \begin_inset space \hfill{}
3472 \begin_layout Quotation
3474 \begin_inset space \hfill{}
3482 \begin_layout Quotation
3484 \begin_inset space \hfill{}
3492 \begin_layout Quotation
3494 \begin_inset space \hfill{}
3502 \begin_layout Quotation
3504 \begin_inset space \hfill{}
3512 \begin_layout Quotation
3514 \begin_inset space \hfill{}
3521 \begin_layout Plain Layout
3533 \begin_layout Quotation
3535 \begin_inset space \hfill{}
3543 \begin_layout Quotation
3545 \begin_inset space \hfill{}
3552 \begin_layout Plain Layout
3564 \begin_layout Quotation
3566 \begin_inset space \hfill{}
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{}
3618 \begin_layout Plain Layout
3630 \begin_layout Quotation
3632 \begin_inset space \hfill{}
3640 \begin_layout Quotation
3641 hungarian umlaut (hug)
3642 \begin_inset space \hfill{}
3650 \begin_layout Quotation
3652 \begin_inset space \hfill{}
3660 \begin_layout Quotation
3662 \begin_inset space \hfill{}
3673 \begin_layout Plain Layout
3685 \begin_layout Standard
3686 Since in many international keyboards there are exceptions to what some
3687 dead keys should do, you can define them using
3690 \begin_layout Quotation
3691 \begin_inset Flex Code
3694 \begin_layout Plain Layout
3702 deadkey key outstring
3705 \begin_layout Standard
3706 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3710 \begin_layout Quotation
3711 \begin_inset Flex Code
3714 \begin_layout Plain Layout
3727 \begin_layout Standard
3728 to make it work correctly.
3729 Also, you have to define as exceptions dead keys over i and j, to remove
3730 the dot from them before inserting an accent mark.
3731 I will change this when the time comes, but so far I haven't had time.
3734 \begin_layout Standard
3735 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3738 \begin_inset Flex Code
3741 \begin_layout Plain Layout
3747 have different meaning.
3749 \begin_inset Flex Code
3752 \begin_layout Plain Layout
3758 marks comments, quotes start and end \SpecialChar LaTeX
3760 To enter quote, you'll need to use
3761 \begin_inset Flex Code
3764 \begin_layout Plain Layout
3773 \begin_inset Flex Code
3776 \begin_layout Plain Layout
3783 \begin_inset Flex Code
3786 \begin_layout Plain Layout
3797 \begin_layout Standard
3798 If you make a keyboard description file that works for your language, please
3799 mail it to me, so I can include it in the next keymap distribution.
3802 \begin_layout Standard
3803 More keywords will be supported in keymap configuration file in future,
3807 \begin_layout Itemize
3808 \begin_inset Flex Code
3811 \begin_layout Plain Layout
3822 \begin_inset space \hfill{}
3826 \begin_inset Flex Code
3829 \begin_layout Plain Layout
3838 \begin_layout Itemize
3839 \begin_inset Flex Code
3842 \begin_layout Plain Layout
3853 \begin_inset space \hfill{}
3857 \begin_inset Flex Code
3860 \begin_layout Plain Layout
3866 an external keymap translation program
3869 \begin_layout Standard
3870 Also, it should look into
3871 \begin_inset Flex Code
3874 \begin_layout Plain Layout
3880 file for defaults, too (for example, a
3881 \begin_inset Flex Code
3884 \begin_layout Plain Layout
3892 option to include default keyboard).
3900 \begin_layout Section
3902 \begin_inset CommandInset label
3911 \begin_layout Standard
3912 \begin_inset Note Note
3915 \begin_layout Plain Layout
3916 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3919 \begin_layout Plain Layout
3928 \begin_layout Standard
3930 \begin_inset Flex Code
3933 \begin_layout Plain Layout
3940 \begin_inset Flex Code
3943 \begin_layout Plain Layout
3949 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3952 \begin_layout Subsection
3956 \begin_layout Standard
3957 \begin_inset Flex Code
3960 \begin_layout Plain Layout
3966 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3967 \begin_inset Flex Code
3970 \begin_layout Plain Layout
3976 ファイルは,以下の各項で説明するように,
3977 \begin_inset Flex Code
3980 \begin_layout Plain Layout
3987 \begin_inset Flex Code
3990 \begin_layout Plain Layout
3997 \begin_inset Flex Code
4000 \begin_layout Plain Layout
4007 \begin_inset Flex Code
4010 \begin_layout Plain Layout
4019 \begin_layout Labeling
4020 \labelwidthstring 00.00.0000
4021 \begin_inset Flex Code
4024 \begin_layout Plain Layout
4033 \begin_layout LyX-Code
4048 \begin_layout Standard
4061 中では,二重引用符(")とバックスラッシュ(
4065 )を付けてエスケープしなくてはならないことに注意してください.
4068 \begin_layout Standard
4069 \begin_inset Flex MenuItem
4072 \begin_layout Plain Layout
4079 \begin_inset Flex MenuItem
4082 \begin_layout Plain Layout
4089 \begin_inset Flex MenuItem
4092 \begin_layout Plain Layout
4101 \begin_layout LyX-Code
4107 \begin_layout Standard
4111 \begin_layout Labeling
4112 \labelwidthstring 00.00.0000
4113 \begin_inset Flex Code
4116 \begin_layout Plain Layout
4125 \begin_layout LyX-Code
4134 \begin_layout Standard
4143 のアクセントとするものです.これはデッドキー
4147 \begin_layout Plain Layout
4152 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4156 のようなウムラウトのついた文字は,このようにして出すことができます.
4164 \begin_layout Standard
4177 の後に許可文字ではないその文字が出力として表示されます.
4178 \begin_inset Flex MenuItem
4181 \begin_layout Plain Layout
4192 \begin_inset Flex MenuItem
4195 \begin_layout Plain Layout
4201 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4204 \begin_layout Standard
4205 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4208 \begin_layout LyX-Code
4211 kmod ' acute aeiouAEIOU
4214 \begin_layout Labeling
4215 \labelwidthstring 00.00.0000
4216 \begin_inset Flex Code
4219 \begin_layout Plain Layout
4228 \begin_layout LyX-Code
4237 \begin_layout Standard
4251 \begin_inset Flex Code
4254 \begin_layout Plain Layout
4262 宣言で打鍵キーを既に割り当てられてなくてはならず,
4274 の集合に属していてはなりません.こうして
4287 \begin_inset Flex Code
4290 \begin_layout Plain Layout
4317 \begin_inset Flex Code
4320 \begin_layout Plain Layout
4331 \begin_layout Standard
4332 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4335 \begin_layout LyX-Code
4349 \begin_layout Labeling
4350 \labelwidthstring 00.00.0000
4351 \begin_inset Flex Code
4354 \begin_layout Plain Layout
4363 \begin_layout LyX-Code
4372 \begin_layout Standard
4373 これはなかなか難解になってきます.これは
4398 \begin_inset Flex Code
4401 \begin_layout Plain Layout
4409 コマンドで設定されていなくてはなりません.
4412 \begin_layout Standard
4413 \begin_inset Flex Code
4416 \begin_layout Plain Layout
4425 \begin_layout LyX-Code
4428 kmod ; acute aeioyvhAEIOYVH
4432 kcomb acute umlaut iyIY
4435 \begin_layout Standard
4437 \begin_inset Flex MenuItem
4440 \begin_layout Plain Layout
4447 \begin_inset Flex Code
4450 \begin_layout Plain Layout
4460 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4461 \begin_inset Flex MenuItem
4464 \begin_layout Plain Layout
4471 \begin_inset Flex Code
4474 \begin_layout Plain Layout
4485 \begin_layout Subsection
4489 \begin_layout Standard
4490 \begin_inset Flex Code
4493 \begin_layout Plain Layout
4500 \begin_inset Flex Code
4503 \begin_layout Plain Layout
4509 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4511 \begin_inset Flex Code
4514 \begin_layout Plain Layout
4521 \begin_inset Flex Code
4524 \begin_layout Plain Layout
4533 \begin_layout Standard
4535 \begin_inset Flex Code
4538 \begin_layout Plain Layout
4547 \begin_layout LyX-Code
4560 \begin_layout Standard
4562 \begin_inset Flex MenuItem
4565 \begin_layout Plain Layout
4573 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4576 \begin_layout LyX-Code
4584 \begin_layout Standard
4590 \begin_inset Flex Code
4593 \begin_layout Plain Layout
4602 \begin_inset Flex Code
4605 \begin_layout Plain Layout
4611 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4612 \begin_inset Flex Code
4615 \begin_layout Plain Layout
4624 \begin_layout LyX-Code
4636 \begin_inset Newline newline
4652 \begin_layout Standard
4653 という例があります.\SpecialChar LyX
4654 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4655 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4658 \begin_layout Subsection
4662 \begin_layout Standard
4663 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4664 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4667 \begin_layout Standard
4668 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4669 \begin_inset Flex Code
4672 \begin_layout Plain Layout
4679 \begin_inset Flex MenuItem
4682 \begin_layout Plain Layout
4689 \begin_inset Flex MenuItem
4692 \begin_layout Plain Layout
4698 キー)を,\SpecialChar LyX
4700 \begin_inset Flex Code
4703 \begin_layout Plain Layout
4710 \begin_inset Flex MenuItem
4713 \begin_layout Plain Layout
4719 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4720 \begin_inset Flex MenuItem
4723 \begin_layout Plain Layout
4729 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4730 \begin_inset Flex MenuItem
4733 \begin_layout Plain Layout
4740 \begin_inset Flex MenuItem
4743 \begin_layout Plain Layout
4749 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4750 はビープを鳴らして文句を付けます.デッドキーの後に
4751 \begin_inset Flex MenuItem
4754 \begin_layout Plain Layout
4760 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4762 \begin_inset Flex MenuItem
4765 \begin_layout Plain Layout
4771 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4774 \begin_layout Standard
4775 デッドキーを割り当てるのによく用いられる方法は,
4776 \begin_inset Flex MenuItem
4779 \begin_layout Plain Layout
4786 \begin_inset Flex MenuItem
4789 \begin_layout Plain Layout
4796 \begin_inset Flex MenuItem
4799 \begin_layout Plain Layout
4806 \begin_inset Flex MenuItem
4809 \begin_layout Plain Layout
4816 \begin_inset Flex MenuItem
4819 \begin_layout Plain Layout
4826 \begin_inset Flex MenuItem
4829 \begin_layout Plain Layout
4835 」のようなアクセントと一緒に用いる方法です.また,
4836 \begin_inset Flex Code
4839 \begin_layout Plain Layout
4846 \begin_inset Flex Code
4849 \begin_layout Plain Layout
4856 \begin_inset Flex Code
4859 \begin_layout Plain Layout
4866 \begin_inset Flex Code
4869 \begin_layout Plain Layout
4876 \begin_inset Flex MenuItem
4879 \begin_layout Plain Layout
4885 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4886 \begin_inset Flex Code
4889 \begin_layout Plain Layout
4895 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4900 \begin_layout Plain Layout
4906 \begin_inset Flex Code
4909 \begin_layout Plain Layout
4916 \begin_inset Flex Code
4919 \begin_layout Plain Layout
4926 \begin_inset Flex MenuItem
4929 \begin_layout Plain Layout
4931 \begin_inset space ~
4940 \begin_inset Flex Code
4943 \begin_layout Plain Layout
4950 \begin_inset Flex Code
4953 \begin_layout Plain Layout
4960 \begin_inset Flex MenuItem
4963 \begin_layout Plain Layout
4965 \begin_inset space ~
4974 \begin_inset Flex MenuItem
4977 \begin_layout Plain Layout
4979 \begin_inset space ~
4987 などに割り当てています.私はこの方法でアクセント文字を入力しています.
4993 \begin_inset Flex Code
4996 \begin_layout Plain Layout
5003 \begin_inset Flex MenuItem
5006 \begin_layout Plain Layout
5012 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5019 \begin_inset Flex Code
5022 \begin_layout Plain Layout
5028 の項をご覧ください.ここには完備した一覧があります.
5031 \begin_layout Subsection
5035 \begin_layout Standard
5036 \begin_inset Flex MenuItem
5039 \begin_layout Plain Layout
5040 ツール\SpecialChar menuseparator
5046 ダイアログを使えば,\SpecialChar LyX
5047 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5050 \begin_layout Chapter
5051 文書クラス・レイアウト・ひな型の新規導入
5052 \begin_inset CommandInset label
5059 \begin_inset Argument 1
5062 \begin_layout Plain Layout
5071 \begin_layout Standard
5072 この章では,新しく\SpecialChar LyX
5073 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5074 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5078 \begin_layout Standard
5081 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5082 は,La\SpecialChar TeX
5084 云うことです.実際のところ,\SpecialChar LyX
5085 の観点からは,\SpecialChar LaTeX
5087 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5088 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5089 は,とくに重要な形式ですが,\SpecialChar LyX
5091 について持っている情報のほとんどは,実はプログラム本体には含まれて
5096 \begin_layout Plain Layout
5097 過度に複雑なため,\SpecialChar LyX
5098 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5104 \begin_inset Flex Code
5107 \begin_layout Plain Layout
5113 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5114 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5119 \begin_layout Standard
5120 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5121 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5122 構成体・DocBook構成体・XHTML構成体との
5123 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5125 \begin_inset Flex Code
5128 \begin_layout Plain Layout
5134 について知っていることのほとんど総ては,
5135 \begin_inset Flex Code
5138 \begin_layout Plain Layout
5144 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5146 \begin_inset Flex Code
5149 \begin_layout Plain Layout
5156 \begin_inset Flex Code
5159 \begin_layout Plain Layout
5165 や,文書クラス用の他のレイアウトファイルに取り込まれている
5166 \begin_inset Flex Code
5169 \begin_layout Plain Layout
5175 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5176 \begin_inset Flex Code
5179 \begin_layout Plain Layout
5185 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5186 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5188 \begin_inset Flex Code
5191 \begin_layout Plain Layout
5198 \begin_inset Flex Code
5201 \begin_layout Plain Layout
5207 ファイルを取り込んでいるだけのものです.
5210 \begin_layout Standard
5211 しかしながら,\SpecialChar LyX
5213 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5215 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5216 ます.ある段落様式を\SpecialChar LaTeX
5217 に翻訳する仕方を\SpecialChar LyX
5218 に指示することは,その表示の仕方を\SpecialChar LyX
5219 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5221 式をどのように\SpecialChar LaTeX
5222 に翻訳するかを\SpecialChar LyX
5223 に指示するものではありません(ましてや\SpecialChar LaTeX
5224 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5227 \begin_inset space ~
5231 にどのように翻訳するかを\SpecialChar LyX
5233 \begin_inset space ~
5236 それをどのように表示するかを\SpecialChar LyX
5237 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5240 \begin_layout Standard
5241 もちろん,\SpecialChar LyX
5242 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5243 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5244 力するにあたって,当該段落を\SpecialChar LyX
5245 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5246 が内部的に行うことと,外部的に行う物事の間の区
5247 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5248 \begin_inset CommandInset ref
5250 reference "sec:XHTML出力のタグ"
5257 \begin_layout Section
5258 新しい\SpecialChar LaTeX
5262 \begin_layout Standard
5263 頒布版によっては,\SpecialChar LyX
5264 で使いたい\SpecialChar LaTeX
5265 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5266 パッケージである,Foil\SpecialChar TeX
5267 がないかもしれません.\SpecialChar TeX
5268 Live(2008年以降)やMiK\SpecialChar TeX
5269 のような最近の\SpecialChar LaTeX
5270 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5271 ースが用意されています.たとえば,MiK\SpecialChar TeX
5273 \begin_inset space ~
5276 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5280 \begin_layout Standard
5281 お使いの\SpecialChar LaTeX
5282 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5286 \begin_layout Enumerate
5287 \begin_inset CommandInset href
5290 target "http://www.ctan.org/"
5295 などから欲しいパッケージを入手してください.
5298 \begin_layout Enumerate
5300 \begin_inset Flex Code
5303 \begin_layout Plain Layout
5309 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5310 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5311 \begin_inset Flex Code
5314 \begin_layout Plain Layout
5320 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5321 パッケージは圧縮されていないので,このステップは飛ばすこ
5325 \begin_layout Enumerate
5326 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5330 \begin_layout Enumerate
5331 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5334 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5335 \begin_inset Flex Code
5338 \begin_layout Plain Layout
5348 \begin_layout Plain Layout
5354 \begin_inset Flex Code
5357 \begin_layout Plain Layout
5363 を実行してその場所を見つけることもできます.
5368 .「ローカル」\SpecialChar TeX
5370 \begin_inset Flex Code
5373 \begin_layout Plain Layout
5380 \begin_inset Flex Code
5383 \begin_layout Plain Layout
5384 /usr/local/share/texmf/
5390 \begin_inset Flex Code
5393 \begin_layout Plain Layout
5394 /usr/local/texlive/XXXX
5399 (XXXXは導入されている\SpecialChar TeX
5400 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5402 \begin_inset Flex Code
5405 \begin_layout Plain Layout
5412 \begin_inset Flex Code
5415 \begin_layout Plain Layout
5422 \begin_inset Flex Code
5425 \begin_layout Plain Layout
5431 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5432 ,「ユーザー」ツリーにはこのような制限はありません.
5433 \begin_inset Newline newline
5436 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5437 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5440 \begin_layout Enumerate
5441 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5443 \begin_inset Flex Code
5446 \begin_layout Plain Layout
5456 に移動します(MiK\SpecialChar TeX
5458 \begin_inset Flex Code
5461 \begin_layout Plain Layout
5477 \begin_layout Plain Layout
5478 これは,英語版でのみ正しいパスになっています.独語版では
5479 \begin_inset Flex Code
5482 \begin_layout Plain Layout
5500 \begin_inset Flex Code
5503 \begin_layout Plain Layout
5509 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5511 ことを行います.たとえばMiK\SpecialChar TeX
5513 \begin_inset space ~
5517 \begin_inset Newline newline
5521 \begin_inset Flex Code
5524 \begin_layout Plain Layout
5527 Documents and Settings
5539 \begin_inset Newline newline
5543 \begin_inset Phantom HPhantom
5546 \begin_layout Plain Layout
5557 \begin_inset Flex Code
5560 \begin_layout Plain Layout
5573 \begin_inset Newline newline
5577 \begin_inset Newline newline
5581 \begin_inset Flex Code
5584 \begin_layout Plain Layout
5607 \begin_inset Newline newline
5614 \begin_layout Enumerate
5615 ここまで来れば,あとは\SpecialChar LaTeX
5616 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5621 \begin_layout Enumerate
5624 \begin_inset Flex Code
5627 \begin_layout Plain Layout
5633 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5636 \begin_layout Enumerate
5638 では,パッケージを全ユーザー用に導入した場合には,「Settings
5639 \begin_inset space ~
5642 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5647 \begin_layout Enumerate
5648 最後に,\SpecialChar LyX
5649 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5650 からツール\SpecialChar menuseparator
5651 環境構成メニューを実行して,\SpecialChar LyX
5655 \begin_layout Standard
5656 これでパッケージが導入されました.この例では,文書クラス
5657 \begin_inset Flex Code
5660 \begin_layout Plain Layout
5662 \begin_inset space ~
5671 \begin_inset Flex MenuItem
5674 \begin_layout Plain Layout
5675 文書\SpecialChar menuseparator
5676 設定\SpecialChar menuseparator
5685 \begin_layout Standard
5686 \begin_inset Flex MenuItem
5689 \begin_layout Plain Layout
5690 文書\SpecialChar menuseparator
5691 設定\SpecialChar menuseparator
5697 メニューに列挙されてもいない\SpecialChar LaTeX
5698 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5701 \begin_layout Section
5705 \begin_layout Standard
5706 この節は,レイアウト情報を含む各種\SpecialChar LyX
5707 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5709 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5710 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5713 \begin_layout Standard
5714 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5715 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5716 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5717 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5718 を出していますので,気軽に質問を投げかけてみてください.
5721 \begin_layout Standard
5722 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5723 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5724 文書クラス用の\SpecialChar LyX
5726 他の人々にも有用なモジュールをお書きになった場合には,
5727 \begin_inset CommandInset href
5729 name "LyX Wikiのレイアウトに関する節"
5730 target "https://wiki.lyx.org/Layouts/Layouts"
5736 開発者メーリングリストに投稿して,\SpecialChar LyX
5737 頒布版に同梱することができるようにしてください
5741 \begin_layout Plain Layout
5743 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5744 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5752 \begin_layout Subsection
5754 \begin_inset CommandInset label
5756 name "subsec:レイアウトモジュール"
5763 \begin_layout Standard
5764 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5766 \begin_inset Flex Code
5769 \begin_layout Plain Layout
5775 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5776 に提供するものを指します.しかしながら,\SpecialChar LyX
5778 \begin_inset Flex Code
5781 \begin_layout Plain Layout
5791 にも含めることができます.レイアウトが\SpecialChar LaTeX
5792 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5794 \begin_inset Flex Code
5797 \begin_layout Plain Layout
5803 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5804 イアウトで使用できるという意味において,一面,
5805 \begin_inset Flex Code
5808 \begin_layout Plain Layout
5818 \begin_layout Plain Layout
5819 これらは任意の拡張子をつけることができますが,慣習的に
5820 \begin_inset Flex Code
5823 \begin_layout Plain Layout
5835 \begin_inset Flex Code
5838 \begin_layout Plain Layout
5844 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5845 \begin_inset Flex MenuItem
5848 \begin_layout Plain Layout
5849 文書\SpecialChar menuseparator
5858 \begin_layout Standard
5859 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5860 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5863 \begin_layout Standard
5865 \begin_inset Flex Code
5868 \begin_layout Plain Layout
5874 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5875 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5876 \begin_inset Flex MenuItem
5879 \begin_layout Plain Layout
5880 文書\SpecialChar menuseparator
5886 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5888 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5892 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5894 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5895 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5899 \begin_layout Subsubsection
5903 \begin_layout Standard
5905 に於けるモジュールは,\SpecialChar LaTeX
5906 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5907 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5910 \begin_layout Standard
5913 文書\SpecialChar menuseparator
5914 設定\SpecialChar menuseparator
5917 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5918 は,その文書専属のモジュールだと考えることができます.したがって,
5919 \begin_inset Flex Code
5922 \begin_layout Plain Layout
5928 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5938 \begin_layout Standard
5939 \begin_inset Flex Code
5942 \begin_layout Plain Layout
5948 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5949 ているかどうかが検証されます.すると,\SpecialChar LyX
5950 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5952 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5955 \begin_layout Standard
5956 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5957 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5960 \begin_layout Subsection
5961 \begin_inset Flex MenuItem
5964 \begin_layout Plain Layout
5973 \begin_layout Standard
5974 新しく\SpecialChar LaTeX
5975 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5977 \begin_inset Flex Code
5980 \begin_layout Plain Layout
5987 \begin_inset Flex Code
5990 \begin_layout Plain Layout
5996 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
5997 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6001 \begin_layout Standard
6002 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6003 \begin_inset Flex MenuItem
6006 \begin_layout Plain Layout
6013 \begin_inset Flex MenuItem
6016 \begin_layout Plain Layout
6025 \begin_layout Standard
6026 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6030 \begin_layout Plain Layout
6031 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6033 \begin_inset Flex MenuItem
6036 \begin_layout Plain Layout
6042 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6050 \begin_layout LyX-Code
6051 cp report.layout ~/.lyx/layouts/myclass.layout
6054 \begin_layout Standard
6056 \begin_inset Flex Code
6059 \begin_layout Plain Layout
6068 \begin_layout LyX-Code
6071 DeclareLaTeXClass{report}
6074 \begin_layout Standard
6078 \begin_layout LyX-Code
6081 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6084 \begin_layout Standard
6085 のように変更してください.それから,ファイル冒頭辺りに
6088 \begin_layout LyX-Code
6090 \begin_inset Newline newline
6096 \begin_inset Newline newline
6102 \begin_layout Standard
6106 \begin_layout Standard
6109 \begin_inset Flex MenuItem
6112 \begin_layout Plain Layout
6113 ツール\SpecialChar menuseparator
6119 を選択してください.それから\SpecialChar LyX
6120 を再起動し,新規文書を作成してみてください.すると,
6121 \begin_inset Flex MenuItem
6124 \begin_layout Plain Layout
6125 文書\SpecialChar menuseparator
6132 \begin_inset Flex MenuItem
6135 \begin_layout Plain Layout
6141 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6142 \begin_inset Flex Code
6145 \begin_layout Plain Layout
6151 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6152 \begin_inset Flex Code
6155 \begin_layout Plain Layout
6161 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6162 \begin_inset Flex Code
6165 \begin_layout Plain Layout
6172 \begin_inset Flex Code
6175 \begin_layout Plain Layout
6181 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6184 \begin_layout LyX-Code
6188 \begin_layout LyX-Code
6192 \begin_layout LyX-Code
6196 \begin_layout LyX-Code
6200 \begin_layout LyX-Code
6204 \begin_layout Standard
6205 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6208 \begin_layout Standard
6209 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6211 \begin_inset CommandInset ref
6213 reference "sec:テキストクラス"
6220 \begin_layout Standard
6222 \begin_inset Flex Code
6225 \begin_layout Plain Layout
6231 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6232 う.最も簡単なモジュールの例としては,以下のようなものになります.
6235 \begin_layout LyX-Code
6238 DeclareLyXModule{My Package}
6241 \begin_layout LyX-Code
6245 \begin_layout LyX-Code
6246 #Support for mypkg.sty.
6249 \begin_layout LyX-Code
6251 \begin_inset Newline newline
6257 \begin_layout LyX-Code
6259 \begin_inset Newline newline
6265 \begin_layout LyX-Code
6267 \begin_inset Newline newline
6273 \begin_inset Newline newline
6279 \begin_layout Standard
6280 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6281 \begin_inset CommandInset ref
6283 reference "sec:テキストクラス"
6290 \begin_layout Subsection
6291 \begin_inset Flex MenuItem
6294 \begin_layout Plain Layout
6303 \begin_layout Standard
6304 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6305 \begin_inset Flex MenuItem
6308 \begin_layout Plain Layout
6314 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6317 \begin_layout LyX-Code
6323 \begin_layout Standard
6324 という行がないかどうか探してください.もしこれがあれば,
6325 \begin_inset Flex Code
6328 \begin_layout Plain Layout
6329 Declare\SpecialChar LaTeX
6335 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6336 \begin_inset Flex Code
6339 \begin_layout Plain Layout
6346 \begin_inset Flex Code
6349 \begin_layout Plain Layout
6356 \begin_inset Flex Code
6359 \begin_layout Plain Layout
6360 Declare\SpecialChar LaTeX
6370 \begin_layout Plain Layout
6372 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6373 \begin_inset Flex Code
6376 \begin_layout Plain Layout
6390 \begin_layout LyX-Code
6393 DeclareLaTeXClass[thesis,book]{thesis}
6396 \begin_layout Standard
6397 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6399 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6403 \begin_layout Subsection
6405 \begin_inset CommandInset label
6414 \begin_layout Standard
6415 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6416 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6417 添付のひな型をあれこれ見てみるのもよいでしょう.
6420 \begin_layout Standard
6421 ひな型は,通常の文書と同様,\SpecialChar LyX
6422 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6423 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6424 \begin_inset Flex Code
6427 \begin_layout Plain Layout
6436 \begin_inset Flex Code
6439 \begin_layout Plain Layout
6447 などの対応するコマンドをひな型\SpecialChar LyX
6448 ファイルから取り除く必要があります.これは,たとえば
6449 \begin_inset Flex Code
6452 \begin_layout Plain Layout
6459 \begin_inset Flex Code
6462 \begin_layout Plain Layout
6468 のような,どの軽いテキストエディタでも行うことができます.
6471 \begin_layout Standard
6473 \begin_inset Flex Code
6476 \begin_layout Plain Layout
6483 \begin_inset Flex Code
6486 \begin_layout Plain Layout
6492 から使用したいものを同じ場所にコピーし,
6493 \begin_inset Flex MenuItem
6496 \begin_layout Plain Layout
6497 ツール\SpecialChar menuseparator
6498 設定\SpecialChar menuseparator
6504 ダイアログのひな型パスを再定義してください.
6507 \begin_layout Standard
6509 \begin_inset Flex Code
6512 \begin_layout Plain Layout
6518 があることに注意してください.このひな型は,
6519 \begin_inset Flex MenuItem
6522 \begin_layout Plain Layout
6523 ファイル\SpecialChar menuseparator
6529 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6530 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6532 \begin_inset Flex MenuItem
6535 \begin_layout Plain Layout
6544 \begin_layout Subsection
6548 \begin_layout Standard
6549 レイアウトファイルの書式は,\SpecialChar LyX
6550 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6551 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6554 \begin_inset Flex Code
6557 \begin_layout Plain Layout
6559 Dir/scripts/layout2layout.py
6564 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6566 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6569 \begin_layout Enumerate
6571 \begin_inset Flex Code
6574 \begin_layout Plain Layout
6581 \begin_inset Flex Code
6584 \begin_layout Plain Layout
6593 \begin_layout Enumerate
6595 \begin_inset Newline newline
6599 \begin_inset Flex Code
6602 \begin_layout Plain Layout
6603 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6609 \begin_inset Newline newline
6613 \begin_inset Flex Code
6616 \begin_layout Plain Layout
6626 \begin_layout Standard
6627 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6630 \begin_layout Subsection
6631 \begin_inset CommandInset label
6633 name "subsec:引用エンジンファイル"
6640 \begin_layout Standard
6641 \begin_inset Flex Code
6644 \begin_layout Plain Layout
6650 サブディレクトリ以下に収められている,いわゆる
6651 \begin_inset Flex Code
6654 \begin_layout Plain Layout
6660 ファイルは,レイアウトファイルの特殊形です.これらの目的は,
6672 など,書誌情報を生成する\SpecialChar LaTeX
6673 パッケージの詳細を定義することですが,通常の(追加パッケージのない)Bib\SpecialChar TeX
6675 中でどのように取り扱われるかも,これらのファイルの中で定
6679 \begin_layout Standard
6680 より具体的には,どのパッケージを\SpecialChar LyX
6681 が読み込む必要があるのか,どの引用コマンドが利用可能であるのか,これらが\SpecialChar LyX
6682 中(作業領域・ダイアログ・コンテクストメニュー)で,さら
6683 にはXHTMLや平文出力中でどのように表示されるのかを定義します.さらに,これらのファイルは,使用できる派生様式(著者-刊行年,数値など)とその子細を特定します
6686 文書\SpecialChar menuseparator
6687 設定\SpecialChar ldots
6688 \SpecialChar menuseparator
6689 書誌情報\SpecialChar menuseparator
6692 で利用できる選択肢を生成するのにも使用されます.
6695 \begin_layout Standard
6696 引用エンジンファイルは,本質的に通常のレイアウトファイルであり,理論上どのようなレイアウト情報も内包することができますが,通常は
6697 \begin_inset Flex Code
6700 \begin_layout Plain Layout
6707 \begin_inset Flex Code
6710 \begin_layout Plain Layout
6717 \begin_inset Flex Code
6720 \begin_layout Plain Layout
6727 \begin_inset Flex Code
6730 \begin_layout Plain Layout
6736 ブロックのような特定のパラメータをもっぱら含みます.この最後の2つの文法は,ファイル自身に加え,第
6737 \begin_inset CommandInset ref
6739 reference "subsec:引用エンジンの説明"
6747 \begin_inset CommandInset ref
6749 reference "subsec:引用書式指定"
6759 \begin_layout Section
6760 \begin_inset CommandInset label
6769 \begin_layout Standard
6770 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6771 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6772 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6773 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6774 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6777 \begin_layout Standard
6778 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6779 \begin_inset Flex Code
6782 \begin_layout Plain Layout
6789 \begin_inset Flex Code
6792 \begin_layout Plain Layout
6799 \begin_inset Flex Code
6802 \begin_layout Plain Layout
6808 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6809 \begin_inset Flex Code
6812 \begin_layout Plain Layout
6820 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6821 \begin_inset Flex Code
6824 \begin_layout Plain Layout
6835 \begin_layout Subsection
6839 \begin_layout Standard
6841 \begin_inset Flex Code
6844 \begin_layout Plain Layout
6850 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6851 \begin_inset Flex Code
6854 \begin_layout Plain Layout
6860 ファイルは,以下のような行で始めなくてはならないのです.
6863 \begin_layout LyX-Code
6866 #% Do not delete the line below; configure depends on this
6869 \begin_layout LyX-Code
6874 DeclareLaTeXClass{Article (Standard Class)}
6877 \begin_layout LyX-Code
6882 DeclareCategory{Articles}
6885 \begin_layout Standard
6886 2行目と3行目は,\SpecialChar LyX
6887 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6889 \begin_inset Flex Code
6892 \begin_layout Plain Layout
6899 \begin_inset Flex Code
6902 \begin_layout Plain Layout
6908 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6909 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6911 \begin_inset Flex Code
6914 \begin_layout Plain Layout
6921 \begin_inset Flex Code
6924 \begin_layout Plain Layout
6930 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6932 \begin_inset Flex Code
6935 \begin_layout Plain Layout
6941 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6942 \begin_inset Flex MenuItem
6945 \begin_layout Plain Layout
6946 文書\SpecialChar menuseparator
6952 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6953 \begin_inset Flex MenuItem
6956 \begin_layout Plain Layout
6957 文書\SpecialChar menuseparator
6963 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6964 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6965 rized」グループに属することになります.
6968 \begin_layout Standard
6970 \begin_inset Flex Code
6973 \begin_layout Plain Layout
6979 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6980 \begin_inset Flex Code
6983 \begin_layout Plain Layout
6989 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6992 \begin_layout LyX-Code
6995 #% Do not delete the line below; configure depends on this
6998 \begin_layout LyX-Code
7003 DeclareLaTeXClass[article]{article (with My Own Headings)}
7006 \begin_layout LyX-Code
7011 DeclareCategory{Articles}
7014 \begin_layout Standard
7015 これは,\SpecialChar LaTeX
7017 \begin_inset Flex Code
7020 \begin_layout Plain Layout
7026 に関連づけられ,「Article (with My Own Headings)」と表示される,
7027 \begin_inset Flex Code
7030 \begin_layout Plain Layout
7036 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
7039 \begin_layout LyX-Code
7042 #% Do not delete the line below; configure depends on this
7045 \begin_layout LyX-Code
7050 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7053 \begin_layout LyX-Code
7058 DeclareCategory{Articles}
7061 \begin_layout Standard
7063 \begin_inset Flex Code
7066 \begin_layout Plain Layout
7072 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7075 \begin_layout LyX-Code
7078 #% Do not delete the line below; configure depends on this
7081 \begin_layout LyX-Code
7086 DeclareDocBookClass[article]{SGML (DocBook article)}
7089 \begin_layout LyX-Code
7094 DeclareCategory{Articles}
7097 \begin_layout Standard
7098 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7101 \begin_layout Standard
7102 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7105 \begin_layout LyX-Code
7110 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7113 \begin_layout LyX-Code
7121 \begin_layout Standard
7122 ここで「クラス」は,\SpecialChar LaTeX
7123 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7125 名がレイアウトファイル名と同じであると仮定します.
7128 \begin_layout Standard
7129 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7130 \begin_inset Flex Code
7133 \begin_layout Plain Layout
7140 \begin_inset Flex Code
7143 \begin_layout Plain Layout
7150 \begin_inset Flex MenuItem
7153 \begin_layout Plain Layout
7154 ツール\SpecialChar menuseparator
7160 を実行し,\SpecialChar LyX
7161 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7164 \begin_layout Standard
7165 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7166 を再起動したりすることなく,その変更を確認することができます
7170 \begin_layout Plain Layout
7171 第1.6版よりも前の\SpecialChar LyX
7172 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7174 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7181 \begin_inset Flex MenuItem
7184 \begin_layout Plain Layout
7190 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7191 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7194 \begin_layout Standard
7200 \begin_inset Flex MenuItem
7203 \begin_layout Plain Layout
7209 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7213 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7217 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7219 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7223 \begin_layout Plain Layout
7224 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7225 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7226 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7233 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7237 \begin_layout Plain Layout
7238 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7246 \begin_layout Subsection
7250 \begin_layout Standard
7251 モジュールは,以下のような行で始まらなくてはなりません.
7254 \begin_layout LyX-Code
7257 DeclareLyXModule[endnotes.sty]{Endnotes}
7260 \begin_layout Standard
7261 波括弧内に入っている必須引数はモジュール名で,これは
7262 \begin_inset Flex MenuItem
7265 \begin_layout Plain Layout
7266 文書\SpecialChar menuseparator
7272 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7273 パッケージをすべて宣言します.また,非必須引数として,
7274 \begin_inset Flex Code
7277 \begin_layout Plain Layout
7284 \begin_inset Flex Code
7287 \begin_layout Plain Layout
7294 \begin_inset Flex Code
7297 \begin_layout Plain Layout
7303 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7306 \begin_layout Standard
7307 それから,以下のようなモジュール宣言を行います
7311 \begin_layout Plain Layout
7312 モジュールを\SpecialChar LyX
7313 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7321 \begin_layout LyX-Code
7325 \begin_layout LyX-Code
7326 #Adds an endnote command, in addition to footnotes.
7330 \begin_layout LyX-Code
7331 #You will need to add
7333 theendnotes in TeX code where you
7336 \begin_layout LyX-Code
7337 #want the endnotes to appear.
7341 \begin_layout LyX-Code
7345 \begin_layout LyX-Code
7346 #Requires: somemodule | othermodule
7349 \begin_layout LyX-Code
7350 #Excludes: badmodule
7353 \begin_layout Standard
7354 ここで説明(Description)は,
7355 \begin_inset Flex MenuItem
7358 \begin_layout Plain Layout
7359 文書\SpecialChar menuseparator
7365 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7366 \begin_inset Flex Code
7369 \begin_layout Plain Layout
7375 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7376 \begin_inset Flex Code
7379 \begin_layout Plain Layout
7385 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7386 イプ記号「|」で区切らなくてはなりません.
7387 \begin_inset Flex Code
7390 \begin_layout Plain Layout
7396 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7397 \begin_inset Flex Code
7400 \begin_layout Plain Layout
7410 が使用されていればよいということです.同様に,
7411 \begin_inset Flex Code
7414 \begin_layout Plain Layout
7420 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7421 \begin_inset Flex Code
7424 \begin_layout Plain Layout
7430 拡張子を除いたファイル名で認識されることに注意してください.つまり
7431 \begin_inset Flex Code
7434 \begin_layout Plain Layout
7441 \begin_inset Flex Code
7444 \begin_layout Plain Layout
7453 \begin_layout Subsection
7457 \begin_layout Standard
7458 引用エンジンファイルは,次のような行で始まらなくてはなりません.
7461 \begin_layout LyX-Code
7464 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
7467 \begin_layout Standard
7469 \begin_inset Flex Noun
7472 \begin_layout Plain Layout
7473 文書\SpecialChar menuseparator
7474 設定\SpecialChar menuseparator
7480 にそのまま現れます.角括弧内の引数は非必須です.これは,引用エンジンが依存する\SpecialChar LaTeX
7484 \begin_layout Standard
7485 引用エンジン宣言には,その後,以下のような行が続きます
7489 \begin_layout Plain Layout
7491 とともに公表するモジュールの場合は,英語で書かれることが望まれます.この説明は,翻訳対象メッセージのリストに含まれますので,次回インタフェースの更新の際に翻訳さ
7500 \begin_layout LyX-Code
7504 \begin_layout LyX-Code
7505 # Biblatex supports many author-year and numerical styles.
7508 \begin_layout LyX-Code
7509 # It is mainly aimed at the Humanities.
7513 \begin_layout LyX-Code
7514 # customizable, fully localized and provides many features
7517 \begin_layout LyX-Code
7518 # that are not possible with BibTeX.
7519 The use of 'biber' as
7522 \begin_layout LyX-Code
7523 # bibliography processor is advised.
7526 \begin_layout LyX-Code
7530 \begin_layout Standard
7532 \begin_inset Flex Noun
7535 \begin_layout Plain Layout
7536 文書\SpecialChar menuseparator
7537 設定\SpecialChar menuseparator
7543 の中で,ユーザーに引用エンジンに関する情報を提供するために使われます.
7546 \begin_layout Subsection
7550 \begin_layout Standard
7551 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7554 \begin_layout Description
7555 \begin_inset Flex Code
7558 \begin_layout Plain Layout
7565 \begin_inset Flex Code
7568 \begin_layout Plain Layout
7577 \begin_layout Standard
7578 このタグは\SpecialChar LyX
7580 \begin_inset space ~
7583 1.4.0で導入されました.\SpecialChar LyX
7585 \begin_inset space ~
7588 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7589 現行版のファイル形式は,書式69です.しかし,\SpecialChar LyX
7590 の各版は,旧版の\SpecialChar LyX
7592 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7595 \begin_layout Subsection
7596 \begin_inset CommandInset label
7598 name "subsec:汎用テキストクラスパラメータ"
7605 \begin_layout Standard
7606 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7607 \begin_inset Flex Code
7610 \begin_layout Plain Layout
7616 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7620 .モジュールには,すべてのレイアウトタグを使用することができます).
7623 \begin_layout Description
7624 \begin_inset Flex Code
7627 \begin_layout Plain Layout
7633 この文書クラスがXHTMLに出力されるときに,
7634 \begin_inset Flex Code
7637 \begin_layout Plain Layout
7643 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7644 \begin_inset Flex Code
7647 \begin_layout Plain Layout
7653 に出力するものであれば,何でも使用することができます.「
7654 \begin_inset Flex Code
7657 \begin_layout Plain Layout
7666 \begin_layout Description
7667 \begin_inset Flex Code
7670 \begin_layout Plain Layout
7676 文書プリアンブルに書き加えられる情報です.「
7677 \begin_inset Flex Code
7680 \begin_layout Plain Layout
7689 \begin_layout Description
7690 \begin_inset Flex Code
7693 \begin_layout Plain Layout
7699 文献参照を表示する方法を定義します.詳細については,第
7700 \begin_inset CommandInset ref
7702 reference "subsec:引用エンジンの説明"
7710 \begin_inset Flex Code
7713 \begin_layout Plain Layout
7719 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7720 \begin_inset CommandInset ref
7722 reference "subsec:引用エンジンファイル"
7732 \begin_layout Description
7733 \begin_inset Flex Code
7736 \begin_layout Plain Layout
7742 書誌情報の表示に使う書式を定義します.詳細については,第
7743 \begin_inset CommandInset ref
7745 reference "subsec:引用書式指定"
7750 \begin_inset Flex Code
7753 \begin_layout Plain Layout
7759 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
7760 \begin_inset CommandInset ref
7762 reference "subsec:引用エンジンファイル"
7772 \begin_layout Description
7773 \begin_inset Flex Code
7776 \begin_layout Plain Layout
7783 \begin_inset Flex Code
7786 \begin_layout Plain Layout
7795 \begin_inset Flex Code
7798 \begin_layout Plain Layout
7808 を用いるのかBib\SpecialChar TeX
7809 を用いるのかを特定します.主に引用エンジンファイルで使用されます(第
7810 \begin_inset CommandInset ref
7812 reference "subsec:引用エンジンファイル"
7822 \begin_layout Description
7823 \begin_inset Flex Code
7826 \begin_layout Plain Layout
7832 文書クラスがサポートする様々な大域オプションを記します.説明は,第
7833 \begin_inset CommandInset ref
7835 reference "subsec:ClassOptions"
7840 \begin_inset Flex Code
7843 \begin_layout Plain Layout
7852 \begin_layout Description
7853 \begin_inset Flex Code
7856 \begin_layout Plain Layout
7863 \begin_inset Flex Code
7866 \begin_layout Plain Layout
7875 \begin_inset space \thinspace{}
7879 \begin_inset Flex Code
7882 \begin_layout Plain Layout
7888 ] 文書クラスが既定で1段組か2段組かを指定します.
7889 \begin_inset Flex MenuItem
7892 \begin_layout Plain Layout
7893 文書\SpecialChar menuseparator
7902 \begin_layout Description
7903 \begin_inset Flex Code
7906 \begin_layout Plain Layout
7913 \begin_inset Flex Code
7916 \begin_layout Plain Layout
7922 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7923 \begin_inset Flex Code
7926 \begin_layout Plain Layout
7933 \begin_inset Newline newline
7937 \begin_inset CommandInset ref
7939 reference "subsec:カウンタ"
7946 \begin_layout Description
7947 \begin_inset Flex Code
7950 \begin_layout Plain Layout
7956 文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,第
7957 \begin_inset CommandInset ref
7959 reference "subsec:フォント指定"
7964 \begin_inset Flex Code
7967 \begin_layout Plain Layout
7976 \begin_layout Description
7977 \begin_inset Flex Code
7980 \begin_layout Plain Layout
7987 \begin_inset Flex Code
7990 \begin_layout Plain Layout
7996 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7997 \begin_inset Flex Code
8000 \begin_layout Plain Layout
8006 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
8007 既存の文書にこの文書クラスが選択したときのみ該当します).
8010 \begin_layout Description
8011 \begin_inset Flex Code
8014 \begin_layout Plain Layout
8021 \begin_inset Flex Code
8024 \begin_layout Plain Layout
8034 これは新規段落に割り当てられる様式であり,通常は
8035 \begin_inset Flex MenuItem
8038 \begin_layout Plain Layout
8044 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
8047 \begin_layout Description
8048 \begin_inset Flex Code
8051 \begin_layout Plain Layout
8058 \begin_inset Flex Code
8061 \begin_layout Plain Layout
8068 \begin_inset Flex Code
8071 \begin_layout Plain Layout
8077 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
8079 \begin_inset Flex Code
8082 \begin_layout Plain Layout
8088 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
8092 .モジュールは,他のモジュールを排除する独自の枠組みがあります(第
8093 \begin_inset CommandInset ref
8095 reference "subsec:レイアウトモジュール"
8102 \begin_layout Description
8103 \begin_inset Flex Code
8106 \begin_layout Plain Layout
8113 \begin_inset CommandInset ref
8115 reference "subsec:フロート"
8120 \begin_inset Flex Code
8123 \begin_layout Plain Layout
8132 \begin_layout Description
8133 \begin_inset Flex Code
8136 \begin_layout Plain Layout
8142 この文書クラスがXHTMLに出力されるときに,
8143 \begin_inset Flex Code
8146 \begin_layout Plain Layout
8152 ブロックに出力される情報です.これより前に出現した
8153 \begin_inset Flex Code
8156 \begin_layout Plain Layout
8163 \begin_inset Flex Code
8166 \begin_layout Plain Layout
8172 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
8173 \begin_inset Flex Code
8176 \begin_layout Plain Layout
8183 \begin_inset Flex Code
8186 \begin_layout Plain Layout
8195 \begin_layout Description
8196 \begin_inset Flex Code
8199 \begin_layout Plain Layout
8206 \begin_inset Flex Code
8209 \begin_layout Plain Layout
8215 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
8216 .これを指定しない場合には,\SpecialChar LyX
8217 はどのレイアウトを使用するべきか,解析しようと試みます.
8220 \begin_layout Description
8221 \begin_inset Flex Code
8224 \begin_layout Plain Layout
8231 \begin_inset Flex Code
8234 \begin_layout Plain Layout
8240 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
8241 \begin_inset Flex Code
8244 \begin_layout Plain Layout
8251 \begin_inset Newline newline
8255 \begin_inset CommandInset ref
8257 reference "subsec:カウンタ"
8264 \begin_layout Description
8265 \begin_inset Flex Code
8268 \begin_layout Plain Layout
8275 \begin_inset Flex Code
8278 \begin_layout Plain Layout
8284 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8285 \begin_inset Flex Code
8288 \begin_layout Plain Layout
8297 \begin_layout Description
8298 \begin_inset Flex Code
8301 \begin_layout Plain Layout
8308 \begin_inset Flex Code
8311 \begin_layout Plain Layout
8321 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8323 \begin_inset Flex Code
8326 \begin_layout Plain Layout
8335 \begin_layout Description
8336 \begin_inset Flex Code
8339 \begin_layout Plain Layout
8346 \begin_inset Flex Code
8349 \begin_layout Plain Layout
8359 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8360 \begin_inset Flex Code
8363 \begin_layout Plain Layout
8370 \begin_inset Newline newline
8374 \begin_inset CommandInset ref
8376 reference "subsec:任意設定差込枠"
8383 \begin_layout Description
8384 \begin_inset Flex Code
8387 \begin_layout Plain Layout
8394 \begin_inset Flex Code
8397 \begin_layout Plain Layout
8403 ] 画面上の左余白の幅を指示する文字列.例:「
8404 \begin_inset Flex Code
8407 \begin_layout Plain Layout
8413 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8416 \begin_layout Description
8417 \begin_inset Flex Code
8420 \begin_layout Plain Layout
8427 \begin_inset Flex Code
8430 \begin_layout Plain Layout
8436 ] 著者-刊行年引用で,引用が「第一著者 et al.」に切り替わる前に,表示される名前の最大数を定める整数.主に引用エンジンファイルで使用されます(第
8437 \begin_inset CommandInset ref
8439 reference "subsec:引用エンジンファイル"
8449 \begin_layout Description
8450 \begin_inset Flex Code
8453 \begin_layout Plain Layout
8460 \begin_inset Flex Code
8463 \begin_layout Plain Layout
8469 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8472 \begin_layout Description
8473 \begin_inset Flex Code
8476 \begin_layout Plain Layout
8483 \begin_inset Flex Code
8486 \begin_layout Plain Layout
8492 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8495 \begin_layout Description
8496 \begin_inset Flex Code
8499 \begin_layout Plain Layout
8506 \begin_inset Flex Code
8509 \begin_layout Plain Layout
8515 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8518 \begin_layout Description
8519 \begin_inset Flex Code
8522 \begin_layout Plain Layout
8529 \begin_inset Flex Code
8532 \begin_layout Plain Layout
8539 \begin_inset Flex Code
8542 \begin_layout Plain Layout
8549 \begin_inset Flex Code
8552 \begin_layout Plain Layout
8559 \begin_inset Flex Code
8562 \begin_layout Plain Layout
8568 の新しい一覧表を定義します.AddToTocコマンドもご覧ください.
8571 \begin_layout Description
8572 \begin_inset Flex Code
8575 \begin_layout Plain Layout
8582 \begin_inset Flex Code
8585 \begin_layout Plain Layout
8591 ] このクラスによって生成されるファイル形式を示す文字列(
8595 ダイアログで定義される形のもの).おもに,
8596 \begin_inset Flex Code
8599 \begin_layout Plain Layout
8606 \begin_inset Flex Code
8609 \begin_layout Plain Layout
8615 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8616 \begin_inset Flex Code
8619 \begin_layout Plain Layout
8625 パラメーターに遭遇したときには,この文字列は,「
8626 \begin_inset Flex Code
8629 \begin_layout Plain Layout
8636 \begin_inset Flex Code
8639 \begin_layout Plain Layout
8650 \begin_layout Description
8651 \begin_inset Flex Code
8654 \begin_layout Plain Layout
8661 \begin_inset Flex Code
8664 \begin_layout Plain Layout
8675 \begin_inset Flex Code
8678 \begin_layout Plain Layout
8685 \begin_inset Flex Code
8688 \begin_layout Plain Layout
8694 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8697 \begin_layout Description
8698 \begin_inset Flex Code
8701 \begin_layout Plain Layout
8708 \begin_inset Flex Code
8711 \begin_layout Plain Layout
8718 \begin_inset Flex Code
8721 \begin_layout Plain Layout
8727 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8728 \begin_inset Flex Code
8731 \begin_layout Plain Layout
8732 PackageOptions natbib square
8738 \begin_inset Flex Code
8741 \begin_layout Plain Layout
8748 \begin_inset Flex Code
8751 \begin_layout Plain Layout
8757 オプションとともに読み込みます(\SpecialChar TeX
8759 \begin_inset Flex Code
8762 \begin_layout Plain Layout
8768 を読み込む前に,\SpecialChar LyX
8770 \begin_inset Flex Code
8773 \begin_layout Plain Layout
8776 PassOptionsToPackage{natbib}{square}
8784 \begin_layout Description
8785 \begin_inset Flex Code
8788 \begin_layout Plain Layout
8797 \begin_inset Flex Code
8800 \begin_layout Plain Layout
8809 \begin_inset Flex Code
8812 \begin_layout Plain Layout
8819 \begin_inset Flex Code
8822 \begin_layout Plain Layout
8829 \begin_inset Flex MenuItem
8832 \begin_layout Plain Layout
8833 文書\SpecialChar menuseparator
8842 \begin_layout Description
8843 \begin_inset Flex Code
8846 \begin_layout Plain Layout
8853 文書のプリアンブルを設定します.前に行った
8854 \begin_inset Flex Code
8857 \begin_layout Plain Layout
8864 \begin_inset Flex Code
8867 \begin_layout Plain Layout
8873 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8874 \begin_inset Flex Code
8877 \begin_layout Plain Layout
8884 \begin_inset Flex Code
8887 \begin_layout Plain Layout
8896 \begin_layout Description
8897 \begin_inset Flex Code
8900 \begin_layout Plain Layout
8907 \begin_inset Flex Code
8910 \begin_layout Plain Layout
8917 \begin_inset Flex Code
8920 \begin_layout Plain Layout
8929 \begin_inset Flex Code
8932 \begin_layout Plain Layout
8939 \begin_inset Flex Code
8942 \begin_layout Plain Layout
8948 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8949 \begin_inset Flex Code
8952 \begin_layout Plain Layout
8959 \begin_inset Flex Code
8962 \begin_layout Plain Layout
8970 \begin_inset Flex Code
8973 \begin_layout Plain Layout
8980 \begin_inset Flex Code
8983 \begin_layout Plain Layout
8991 \begin_inset CommandInset ref
8993 reference "chap:関数一覧"
9000 \begin_layout Description
9001 \begin_inset Flex Code
9004 \begin_layout Plain Layout
9011 \begin_inset Flex Code
9014 \begin_layout Plain Layout
9021 \begin_inset Flex Code
9024 \begin_layout Plain Layout
9030 で表されているモジュールの機能を提供することを示し,
9031 \begin_inset Flex Code
9034 \begin_layout Plain Layout
9041 \begin_inset Flex Code
9044 \begin_layout Plain Layout
9050 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
9051 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
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
9084 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
9086 \begin_inset CommandInset ref
9088 reference "chap:関数一覧"
9092 を参照).特定のオプションをとるパッケージを要求する場合,
9093 \begin_inset Flex Code
9096 \begin_layout Plain Layout
9105 \begin_layout Description
9106 \begin_inset Flex Code
9109 \begin_layout Plain Layout
9116 \begin_inset Flex Code
9119 \begin_layout Plain Layout
9125 ] 画面上の右余白の幅を指示する文字列.例:「
9126 \begin_inset Flex Code
9129 \begin_layout Plain Layout
9138 \begin_layout Description
9139 \begin_inset Flex Code
9142 \begin_layout Plain Layout
9149 \begin_inset Flex Code
9152 \begin_layout Plain Layout
9158 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
9160 \begin_inset Flex Code
9163 \begin_layout Plain Layout
9172 \begin_layout Description
9173 \begin_inset Flex Code
9176 \begin_layout Plain Layout
9185 \begin_inset Flex Code
9188 \begin_layout Plain Layout
9197 \begin_inset space \thinspace{}
9201 \begin_inset Flex Code
9204 \begin_layout Plain Layout
9210 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
9211 \begin_inset Flex MenuItem
9214 \begin_layout Plain Layout
9215 文書\SpecialChar menuseparator
9224 \begin_layout Description
9225 \begin_inset Flex Code
9228 \begin_layout Plain Layout
9235 \begin_inset Flex Code
9238 \begin_layout Plain Layout
9248 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
9249 \begin_inset Flex Code
9252 \begin_layout Plain Layout
9259 \begin_inset Newline newline
9263 \begin_inset CommandInset ref
9265 reference "subsec:段落様式-XHTML"
9272 \begin_layout Description
9273 \begin_inset Flex Code
9276 \begin_layout Plain Layout
9283 \begin_inset Flex Code
9286 \begin_layout Plain Layout
9293 \begin_inset Flex Code
9296 \begin_layout Plain Layout
9302 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
9304 \begin_inset Flex Code
9307 \begin_layout Plain Layout
9316 \begin_layout Description
9317 \begin_inset Flex Code
9320 \begin_layout Plain Layout
9327 \begin_inset Flex Code
9330 \begin_layout Plain Layout
9339 \begin_inset Flex Code
9342 \begin_layout Plain Layout
9348 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9349 \begin_inset Flex Code
9352 \begin_layout Plain Layout
9359 \begin_inset Flex Code
9362 \begin_layout Plain Layout
9364 \begin_inset space ~
9372 」が指定されている最後のレイアウトの後に,
9373 \begin_inset Flex Code
9376 \begin_layout Plain Layout
9382 で指定したマクロ名を挿入することを意味します.
9383 \begin_inset Flex Code
9386 \begin_layout Plain Layout
9393 \begin_inset Flex Code
9396 \begin_layout Plain Layout
9398 \begin_inset space ~
9407 \begin_inset Flex Code
9410 \begin_layout Plain Layout
9416 で指定した環境でくるむ場合に対応します.
9419 \begin_layout Description
9420 \begin_inset Flex Code
9423 \begin_layout Plain Layout
9430 \begin_inset Flex Code
9433 \begin_layout Plain Layout
9439 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9441 \begin_inset Flex Code
9444 \begin_layout Plain Layout
9453 \begin_layout Subsection
9454 \begin_inset Flex Code
9457 \begin_layout Plain Layout
9464 \begin_inset CommandInset label
9466 name "subsec:ClassOptions"
9473 \begin_layout Standard
9474 \begin_inset Flex Code
9477 \begin_layout Plain Layout
9486 \begin_layout Description
9487 \begin_inset Flex Code
9490 \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
9519 \begin_layout Description
9520 \begin_inset Flex Code
9523 \begin_layout Plain Layout
9529 XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC
9530 \begin_inset Quotes eld
9533 -//OASIS//DTD DocBook V4.2//EN
9534 \begin_inset Quotes erd
9540 \begin_layout Description
9541 \begin_inset Flex Code
9544 \begin_layout Plain Layout
9551 \begin_inset Flex Code
9554 \begin_layout Plain Layout
9555 文字列="empty|plain|headings|fancy"
9561 \begin_inset Flex Code
9564 \begin_layout Plain Layout
9573 \begin_layout Description
9574 \begin_inset Flex Code
9577 \begin_layout Plain Layout
9584 \begin_inset Flex Code
9587 \begin_layout Plain Layout
9594 \begin_inset Flex Code
9597 \begin_layout Plain Layout
9605 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9608 \begin_layout Standard
9609 \begin_inset Flex Code
9612 \begin_layout Plain Layout
9619 \begin_inset Flex Code
9622 \begin_layout Plain Layout
9631 \begin_layout Subsection
9633 \begin_inset CommandInset label
9642 \begin_layout Standard
9647 \begin_layout Plain Layout
9648 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9656 \begin_layout LyX-Code
9663 \begin_layout LyX-Code
9667 \begin_layout LyX-Code
9671 \begin_layout Standard
9672 ここでは,以下のコマンドを使用することができます.
9675 \begin_layout Description
9676 \begin_inset Flex Code
9679 \begin_layout Plain Layout
9686 \begin_inset Flex Code
9689 \begin_layout Plain Layout
9695 =""] この段落は指定された型の一覧表に現れます.空の文字列を与えると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドもご覧
9699 \begin_layout Description
9700 \begin_inset Flex Code
9703 \begin_layout Plain Layout
9710 \begin_inset Flex Code
9713 \begin_layout Plain Layout
9718 , left, right, center
9726 \begin_layout Description
9727 \begin_inset Flex Code
9730 \begin_layout Plain Layout
9737 \begin_inset Flex Code
9740 \begin_layout Plain Layout
9745 , left, right, center
9750 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9751 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9755 \begin_layout Description
9756 \begin_inset Flex Code
9759 \begin_layout Plain Layout
9766 \begin_inset Flex Code
9769 \begin_layout Plain Layout
9775 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9777 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9778 \begin_inset Flex Code
9781 \begin_layout Plain Layout
9787 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9827 \begin_layout Standard
9828 \begin_inset Flex Code
9831 \begin_layout Plain Layout
9837 定義内部では,以下の指定をすることができます.
9840 \begin_layout Itemize
9841 \begin_inset Flex Code
9844 \begin_layout Plain Layout
9851 \begin_inset Flex Code
9854 \begin_layout Plain Layout
9860 この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9861 \begin_inset Flex Code
9864 \begin_layout Plain Layout
9870 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9871 \begin_inset space \space{}
9875 \begin_inset Quotes eld
9879 \begin_inset Flex Code
9882 \begin_layout Plain Layout
9889 \begin_inset Quotes erd
9895 \begin_layout Itemize
9896 \begin_inset Flex Code
9899 \begin_layout Plain Layout
9906 \begin_inset Flex Code
9909 \begin_layout Plain Layout
9915 メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9916 \begin_inset space \space{}
9920 \begin_inset Quotes eld
9924 \begin_inset Flex Code
9927 \begin_layout Plain Layout
9934 \begin_inset Quotes erd
9937 ).この指定は必須ではありません.指定しない場合には,代わりに
9938 \begin_inset Flex Code
9941 \begin_layout Plain Layout
9950 \begin_layout Itemize
9951 \begin_inset Flex Code
9954 \begin_layout Plain Layout
9961 \begin_inset Flex Code
9964 \begin_layout Plain Layout
9970 引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9973 \begin_layout Itemize
9974 \begin_inset Flex Code
9977 \begin_layout Plain Layout
9984 \begin_inset Flex Code
9987 \begin_layout Plain Layout
9996 \begin_inset space \thinspace{}
10000 \begin_inset Flex Code
10003 \begin_layout Plain Layout
10009 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
10011 \begin_inset Flex Code
10014 \begin_layout Plain Layout
10021 \begin_inset Flex Code
10024 \begin_layout Plain Layout
10033 \begin_layout Itemize
10034 \begin_inset Flex Code
10037 \begin_layout Plain Layout
10044 \begin_inset Flex Code
10047 \begin_layout Plain Layout
10053 この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
10055 \begin_inset Flex Code
10058 \begin_layout Plain Layout
10066 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
10067 \begin_inset Flex Code
10070 \begin_layout Plain Layout
10077 \begin_inset Flex Code
10080 \begin_layout Plain Layout
10086 ステートメントを置くことで実現できます.
10089 \begin_layout Itemize
10090 \begin_inset Flex Code
10093 \begin_layout Plain Layout
10100 \begin_inset Flex Code
10103 \begin_layout Plain Layout
10110 \begin_inset Flex Code
10113 \begin_layout Plain Layout
10120 \begin_inset Flex Code
10123 \begin_layout Plain Layout
10129 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
10130 \begin_inset Flex Code
10133 \begin_layout Plain Layout
10142 \begin_layout Itemize
10143 \begin_inset Flex Code
10146 \begin_layout Plain Layout
10153 \begin_inset Flex Code
10156 \begin_layout Plain Layout
10163 \begin_inset Flex Code
10166 \begin_layout Plain Layout
10173 \begin_inset Flex Code
10176 \begin_layout Plain Layout
10182 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
10183 \begin_inset Flex Code
10186 \begin_layout Plain Layout
10195 \begin_layout Itemize
10196 \begin_inset Flex Code
10199 \begin_layout Plain Layout
10206 \begin_inset Flex Code
10209 \begin_layout Plain Layout
10215 ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10216 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
10219 \begin_layout Itemize
10220 \begin_inset Flex Code
10223 \begin_layout Plain Layout
10230 \begin_inset Flex Code
10233 \begin_layout Plain Layout
10239 どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
10242 \begin_layout Itemize
10243 \begin_inset Flex Code
10246 \begin_layout Plain Layout
10253 \begin_inset CommandInset ref
10255 reference "subsec:フォント指定"
10262 \begin_layout Itemize
10263 \begin_inset Flex Code
10266 \begin_layout Plain Layout
10273 \begin_inset CommandInset ref
10275 reference "subsec:フォント指定"
10282 \begin_layout Itemize
10283 \begin_inset Flex Code
10286 \begin_layout Plain Layout
10293 \begin_inset Flex Code
10296 \begin_layout Plain Layout
10301 , Minimalistic, Conglomerate
10306 ] 差込枠の枠とボタンに用いられる装飾様式.
10309 \begin_layout Itemize
10310 \begin_inset Flex Code
10313 \begin_layout Plain Layout
10320 \begin_inset Flex Code
10323 \begin_layout Plain Layout
10330 \begin_inset Flex Code
10333 \begin_layout Plain Layout
10339 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
10342 \begin_layout Itemize
10343 \begin_inset Flex Code
10346 \begin_layout Plain Layout
10353 \begin_inset Flex Code
10356 \begin_layout Plain Layout
10363 \begin_inset Flex Code
10366 \begin_layout Plain Layout
10372 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10375 \begin_layout Itemize
10376 \begin_inset Flex Code
10379 \begin_layout Plain Layout
10386 \begin_inset Flex Code
10389 \begin_layout Plain Layout
10399 ] この引数の内容が,\SpecialChar LaTeX
10400 が要求する特別な書き換えを行うことなく,原文のまま出力されるべきかどうかを指定します.既定値では,
10401 \begin_inset Flex Code
10404 \begin_layout Plain Layout
10410 の状態は,引数が属する差込枠または段落レイアウトに継承されます.trueまたはfalseは,この引数のみの状態を変更します.
10413 \begin_layout Itemize
10414 \begin_inset Flex Code
10417 \begin_layout Plain Layout
10424 \begin_inset Flex Code
10427 \begin_layout Plain Layout
10438 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10439 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10442 \begin_layout Itemize
10443 \begin_inset Flex Code
10446 \begin_layout Plain Layout
10453 \begin_inset Flex Code
10456 \begin_layout Plain Layout
10465 \begin_inset space \thinspace{}
10469 \begin_inset Flex Code
10472 \begin_layout Plain Layout
10478 ] これを1に設定すると,引数は,その内容を対応する一覧表の項目に出力します.AddToTocを参照.
10481 \begin_layout Standard
10483 \begin_inset Flex Code
10486 \begin_layout Plain Layout
10493 \begin_inset Flex Code
10496 \begin_layout Plain Layout
10502 のとき,各レイアウトで\SpecialChar LyX
10503 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10504 \begin_inset Flex Code
10507 \begin_layout Plain Layout
10513 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10514 \begin_inset Flex Code
10517 \begin_layout Plain Layout
10524 \begin_inset Flex Code
10527 \begin_layout Plain Layout
10534 \begin_inset Flex Code
10537 \begin_layout Plain Layout
10546 \begin_layout Standard
10548 \begin_inset Flex Code
10551 \begin_layout Plain Layout
10560 \begin_inset Flex Code
10563 \begin_layout Plain Layout
10572 \begin_inset Flex Code
10575 \begin_layout Plain Layout
10582 \begin_inset Flex Code
10585 \begin_layout Plain Layout
10595 \begin_layout Description
10598 \begin_inset Flex Code
10601 \begin_layout Plain Layout
10609 Includes a comma-separated list of layouts that should be nested in and
10610 after the current layout.
10611 Only makes sense for nestable layouts (such as environments).
10613 \begin_inset Quotes eld
10617 \begin_inset Flex Code
10620 \begin_layout Plain Layout
10629 \begin_inset Quotes erd
10634 \begin_inset Flex Code
10637 \begin_layout Plain Layout
10648 \begin_layout Description
10649 \begin_inset Flex Code
10652 \begin_layout Plain Layout
10659 \begin_inset Flex Code
10662 \begin_layout Plain Layout
10668 宣言をすべて,完全に上書きしますので注意してください.「
10669 \begin_inset Flex Code
10672 \begin_layout Plain Layout
10678 」で閉じる必要があります.これの利用法についての詳細は,第
10679 \begin_inset CommandInset ref
10681 reference "subsec:段落様式の国際化"
10688 \begin_layout Description
10689 \begin_inset Flex Code
10692 \begin_layout Plain Layout
10699 \begin_inset Flex Code
10702 \begin_layout Plain Layout
10712 \begin_layout Plain Layout
10713 ここで「浮動小数点型」とは1.5のような実数を指します.
10718 このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10722 \begin_layout Description
10723 \begin_inset Flex Code
10726 \begin_layout Plain Layout
10733 \begin_inset Flex Code
10736 \begin_layout Plain Layout
10742 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10743 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10746 \begin_layout Description
10747 \begin_inset Flex Code
10750 \begin_layout Plain Layout
10756 XMLコマンドの深度.XML型の書式でのみ使用されます.
10759 \begin_layout Description
10760 \begin_inset Flex Code
10763 \begin_layout Plain Layout
10770 \begin_inset Flex Code
10773 \begin_layout Plain Layout
10779 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10782 \begin_layout Description
10783 \begin_inset Flex Code
10786 \begin_layout Plain Layout
10793 \begin_inset Flex Code
10796 \begin_layout Plain Layout
10810 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10814 \begin_layout Plain Layout
10815 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10816 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10825 \begin_layout Description
10826 \begin_inset Flex Code
10829 \begin_layout Plain Layout
10836 \begin_inset Flex Code
10839 \begin_layout Plain Layout
10844 , Box, Filled_Box, Static
10850 \begin_inset Flex Code
10853 \begin_layout Plain Layout
10860 \begin_inset Flex Code
10863 \begin_layout Plain Layout
10870 \begin_inset Flex Code
10873 \begin_layout Plain Layout
10880 \begin_inset Flex Code
10883 \begin_layout Plain Layout
10889 のいずれかの場合は,段落群の最後)に置くラベル.
10890 \begin_inset Flex Code
10893 \begin_layout Plain Layout
10900 \begin_inset Flex Code
10903 \begin_layout Plain Layout
10910 \begin_inset Flex Code
10913 \begin_layout Plain Layout
10919 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10920 \begin_inset Flex Code
10923 \begin_layout Plain Layout
10932 \begin_layout Description
10933 \begin_inset Flex Code
10936 \begin_layout Plain Layout
10943 \begin_inset Flex Code
10946 \begin_layout Plain Layout
10953 \begin_inset Flex Code
10956 \begin_layout Plain Layout
10963 \begin_inset Flex Code
10966 \begin_layout Plain Layout
10975 \begin_layout Description
10976 \begin_inset Flex Code
10979 \begin_layout Plain Layout
10990 \begin_inset CommandInset ref
10992 reference "subsec:フォント指定"
10996 節を参照.このフォントを定義すると,自動的に
10997 \begin_inset Flex Code
11000 \begin_layout Plain Layout
11006 も同じ値で定義されることに注意してください.したがって,
11007 \begin_inset Flex Code
11010 \begin_layout Plain Layout
11016 も同時に定義したい場合には,これを先に定義してください.
11019 \begin_layout Description
11020 \begin_inset Flex Code
11023 \begin_layout Plain Layout
11030 \begin_inset Flex Code
11033 \begin_layout Plain Layout
11039 ] 新しい様式を\SpecialChar LyX
11040 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
11041 2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
11043 \begin_inset Flex Code
11046 \begin_layout Plain Layout
11052 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
11054 もこの様式を取り扱えるようになります.
11055 \begin_inset Flex Code
11058 \begin_layout Plain Layout
11064 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
11065 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
11068 \begin_layout Description
11069 \begin_inset Flex Code
11072 \begin_layout Plain Layout
11081 \begin_inset Flex Code
11084 \begin_layout Plain Layout
11093 \begin_inset space \thinspace{}
11097 \begin_inset Flex Code
11100 \begin_layout Plain Layout
11107 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
11108 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
11109 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
11110 \begin_inset Flex Code
11113 \begin_layout Plain Layout
11119 を有効にすることが認められています.\SpecialChar LyX
11120 は,\SpecialChar LaTeX
11121 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
11124 \begin_layout Description
11125 \begin_inset Flex Code
11128 \begin_layout Plain Layout
11134 これらのタグは,XHTML出力で使用されます.第
11135 \begin_inset CommandInset ref
11137 reference "subsec:段落様式-XHTML"
11144 \begin_layout Description
11145 \begin_inset Flex Code
11148 \begin_layout Plain Layout
11154 [[FIXME]] (XML型書式でのみ使用されます.)
11157 \begin_layout Description
11158 \begin_inset Flex Code
11161 \begin_layout Plain Layout
11170 \begin_inset Flex Code
11173 \begin_layout Plain Layout
11182 \begin_inset space \thinspace{}
11186 \begin_inset Flex Code
11189 \begin_layout Plain Layout
11196 \begin_inset Flex Code
11199 \begin_layout Plain Layout
11205 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11207 \begin_inset Flex Code
11210 \begin_layout Plain Layout
11217 \begin_inset Flex Code
11220 \begin_layout Plain Layout
11227 \begin_inset Flex Code
11230 \begin_layout Plain Layout
11239 \begin_layout Description
11240 \begin_inset Flex Code
11243 \begin_layout Plain Layout
11252 \begin_inset Flex Code
11255 \begin_layout Plain Layout
11264 \begin_inset space \thinspace{}
11268 \begin_inset Flex Code
11271 \begin_layout Plain Layout
11278 \begin_inset Flex Code
11281 \begin_layout Plain Layout
11287 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11288 \begin_inset Flex Code
11291 \begin_layout Plain Layout
11298 \begin_inset Flex Code
11301 \begin_layout Plain Layout
11310 \begin_layout Description
11313 \begin_inset Flex Code
11316 \begin_layout Plain Layout
11324 Includes a comma-separated list of layouts after which this one should
11326 Only makes sense with regard to nestable layouts (such as environments).
11328 \begin_inset Quotes eld
11332 \begin_inset Flex Code
11335 \begin_layout Plain Layout
11344 \begin_inset Quotes erd
11349 \begin_inset Flex Code
11352 \begin_layout Plain Layout
11363 \begin_layout Description
11364 \begin_inset Flex Code
11367 \begin_layout Plain Layout
11374 \begin_inset Flex Code
11377 \begin_layout Plain Layout
11386 \begin_inset space \thinspace{}
11390 \begin_inset Flex Code
11393 \begin_layout Plain Layout
11399 ] これを1に設定すると,AddToTocが有効になり,段落は,その内容の要約を一覧表の項目に表示します.0に設定すると,ラベルが存在すれば,それのみが表示され
11403 \begin_layout Description
11404 \begin_inset Flex Code
11407 \begin_layout Plain Layout
11414 \begin_inset Flex Code
11417 \begin_layout Plain Layout
11423 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11424 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
11426 \begin_inset Flex Code
11429 \begin_layout Plain Layout
11440 \begin_layout Description
11441 \begin_inset Flex Code
11444 \begin_layout Plain Layout
11451 \begin_inset Flex Code
11454 \begin_layout Plain Layout
11460 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
11461 \begin_inset Flex Code
11464 \begin_layout Plain Layout
11470 だけ分離されます.しかし,その環境の項目全体は,さらにこの
11471 \begin_inset Flex Code
11474 \begin_layout Plain Layout
11487 \begin_layout Description
11488 \begin_inset Flex Code
11491 \begin_layout Plain Layout
11497 [[FIXME]] (XML型書式でのみ使用されます.)
11500 \begin_layout Description
11501 \begin_inset Flex Code
11504 \begin_layout Plain Layout
11513 \begin_inset Flex Code
11516 \begin_layout Plain Layout
11525 \begin_inset space \thinspace{}
11529 \begin_inset Flex Code
11532 \begin_layout Plain Layout
11538 ] 段落を空のままにすると,\SpecialChar LaTeX
11539 出力が空になってしまうので,通常,\SpecialChar LyX
11540 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
11541 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
11542 まないある種の改行として使用することもあります.
11545 \begin_layout Description
11546 \begin_inset Flex Code
11549 \begin_layout Plain Layout
11556 \begin_inset Flex Code
11559 \begin_layout Plain Layout
11565 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
11566 \begin_inset Flex Code
11569 \begin_layout Plain Layout
11576 \begin_inset Newline linebreak
11580 \begin_inset Flex Code
11583 \begin_layout Plain Layout
11584 Centered_Top_Environment
11592 \begin_layout Description
11593 \begin_inset Flex Code
11596 \begin_layout Plain Layout
11603 \begin_inset Flex Code
11606 \begin_layout Plain Layout
11612 ] 自動連番に使われるカウンタ名(詳しくは第
11613 \begin_inset CommandInset ref
11615 reference "subsec:カウンタ"
11622 節参照).カウンタがラベル中に表示されるようにするためには,
11623 \begin_inset Flex Code
11626 \begin_layout Plain Layout
11632 中で参照する必要があります.これは,少なくとも
11633 \begin_inset Flex Code
11636 \begin_layout Plain Layout
11643 \begin_inset Flex Code
11646 \begin_layout Plain Layout
11653 \begin_inset Flex Code
11656 \begin_layout Plain Layout
11663 \begin_inset Flex Code
11666 \begin_layout Plain Layout
11673 \begin_inset Newline newline
11677 \begin_inset Flex Code
11680 \begin_layout Plain Layout
11687 \begin_inset Flex Code
11690 \begin_layout Plain Layout
11696 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11697 \begin_inset Flex Code
11700 \begin_layout Plain Layout
11701 LabelCounter myenum
11706 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11707 におけるのと同様,実際に使われるカウンタは,
11708 \begin_inset Flex Code
11711 \begin_layout Plain Layout
11718 \begin_inset Flex Code
11721 \begin_layout Plain Layout
11728 \begin_inset Flex Code
11731 \begin_layout Plain Layout
11738 \begin_inset Flex Code
11741 \begin_layout Plain Layout
11747 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11748 \begin_inset Newline newline
11752 \begin_inset CommandInset ref
11754 reference "subsec:カウンタ"
11761 \begin_layout Description
11762 \begin_inset Flex Code
11765 \begin_layout Plain Layout
11772 \begin_inset CommandInset ref
11774 reference "subsec:フォント指定"
11781 \begin_layout Description
11782 \begin_inset Flex Code
11785 \begin_layout Plain Layout
11792 \begin_inset Flex Code
11795 \begin_layout Plain Layout
11801 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11804 \begin_layout Description
11805 \begin_inset Flex Code
11808 \begin_layout Plain Layout
11815 \begin_inset Flex Code
11818 \begin_layout Plain Layout
11824 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11827 \begin_layout Description
11828 \begin_inset Flex Code
11831 \begin_layout Plain Layout
11838 \begin_inset Flex Code
11841 \begin_layout Plain Layout
11848 \begin_inset Flex Code
11851 \begin_layout Plain Layout
11858 \begin_inset Flex Code
11861 \begin_layout Plain Layout
11868 \begin_inset CommandInset ref
11870 reference "subsec:カウンタ"
11874 に述べられている特別な整形コマンドを含めることができます.
11877 \begin_layout Description
11878 \begin_inset Flex Code
11881 \begin_layout Plain Layout
11882 LabelStringAppendix
11888 \begin_inset Flex Code
11891 \begin_layout Plain Layout
11898 \begin_inset Flex Code
11901 \begin_layout Plain Layout
11908 \begin_inset Flex Code
11911 \begin_layout Plain Layout
11918 \begin_inset Flex Code
11921 \begin_layout Plain Layout
11922 LabelStringAppendix
11927 をもリセットすることに注意してください.
11930 \begin_layout Description
11931 \begin_inset Flex Code
11934 \begin_layout Plain Layout
11940 [FIXME] (XML型書式でのみ使用されます.)
11943 \begin_layout Description
11944 \begin_inset Flex Code
11947 \begin_layout Plain Layout
11954 \begin_inset Flex Code
11957 \begin_layout Plain Layout
11962 , Manual, Static, Above,
11963 \begin_inset Newline newline
11966 Centered, Sensitive, Enumerate,
11967 \begin_inset Newline newline
11970 Itemize, Bibliography
11979 \begin_layout Description
11980 \begin_inset Flex Code
11983 \begin_layout Plain Layout
11989 は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11992 \begin_layout Description
11993 \begin_inset Flex Code
11996 \begin_layout Plain Layout
12003 \begin_inset Flex Code
12006 \begin_layout Plain Layout
12012 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
12013 \begin_inset Flex Code
12016 \begin_layout Plain Layout
12023 \begin_inset Flex Code
12026 \begin_layout Plain Layout
12033 \begin_inset Flex Code
12036 \begin_layout Plain Layout
12042 の段落中,最初の段落にのみ表示されます.
12045 \begin_layout Description
12046 \begin_inset Flex Code
12049 \begin_layout Plain Layout
12056 \begin_inset Flex Code
12059 \begin_layout Plain Layout
12066 \begin_inset Flex Code
12069 \begin_layout Plain Layout
12075 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
12078 \begin_layout Description
12079 \begin_inset Flex Code
12082 \begin_layout Plain Layout
12088 はキャプションラベルの「図」や「表」の特別な場合です.
12089 \begin_inset Flex Code
12092 \begin_layout Plain Layout
12098 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
12099 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
12100 \begin_inset Flex Code
12103 \begin_layout Plain Layout
12109 は「意味を成しません!」と表示されます.
12112 \begin_layout Description
12113 \begin_inset Flex Code
12116 \begin_layout Plain Layout
12124 The number type needs to be set in the
12131 \begin_inset CommandInset ref
12133 reference "subsec:カウンタ"
12140 \begin_layout Description
12141 \begin_inset Flex Code
12144 \begin_layout Plain Layout
12150 は,各階層でさまざまなブリットを生成します.
12152 The bullet types displayed can be set via
12153 \begin_inset Flex Noun
12156 \begin_layout Plain Layout
12159 Document\SpecialChar menuseparator
12160 Settings\SpecialChar menuseparator
12169 \begin_layout Description
12170 \begin_inset Flex Code
12173 \begin_layout Plain Layout
12180 \begin_inset Flex Code
12183 \begin_layout Plain Layout
12184 LatexType BibEnvironment
12193 \begin_layout Description
12194 \begin_inset Flex Code
12197 \begin_layout Plain Layout
12204 \begin_inset Flex Code
12207 \begin_layout Plain Layout
12213 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
12214 \begin_inset CommandInset ref
12216 reference "subsec:段落様式の国際化"
12223 \begin_layout Description
12224 \begin_inset Flex Code
12227 \begin_layout Plain Layout
12234 \begin_inset Flex Code
12237 \begin_layout Plain Layout
12243 ] 対応する\SpecialChar LaTeX
12244 の名称です.環境名かコマンド名を指します.
12247 \begin_layout Description
12248 \begin_inset Flex Code
12251 \begin_layout Plain Layout
12258 \begin_inset Flex Code
12261 \begin_layout Plain Layout
12268 \begin_inset Flex Code
12271 \begin_layout Plain Layout
12277 の非必須パラメータです.このパラメータは,\SpecialChar LyX
12278 内部から変更することはできません(変更可能なパラメータには
12279 \begin_inset Flex Code
12282 \begin_layout Plain Layout
12288 を使用してください).これは,全ての\SpecialChar LaTeX
12290 \begin_inset Flex Code
12293 \begin_layout Plain Layout
12302 \begin_layout Description
12303 \begin_inset Flex Code
12306 \begin_layout Plain Layout
12313 \begin_inset Flex Code
12316 \begin_layout Plain Layout
12321 , Command, Environment, Item_Environment,
12322 \begin_inset Newline newline
12325 List_Environment, Bib_Environment
12330 ] レイアウトがどのように\SpecialChar LaTeX
12335 \begin_layout Plain Layout
12336 これらのルールはSGMLクラスにも適用されるので,
12337 \begin_inset Flex Code
12340 \begin_layout Plain Layout
12346 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
12347 \begin_inset Flex Code
12350 \begin_layout Plain Layout
12365 \begin_layout Description
12366 \begin_inset Flex Code
12369 \begin_layout Plain Layout
12378 \begin_layout Description
12379 \begin_inset Flex Code
12382 \begin_layout Plain Layout
12389 \begin_inset Flex Code
12392 \begin_layout Plain Layout
12399 {\SpecialChar ldots
12408 \begin_layout Description
12409 \begin_inset Flex Code
12412 \begin_layout Plain Layout
12419 \begin_inset Flex Code
12422 \begin_layout Plain Layout
12429 }\SpecialChar ldots
12444 \begin_layout Description
12445 \begin_inset Flex Code
12448 \begin_layout Plain Layout
12455 \begin_inset Flex Code
12458 \begin_layout Plain Layout
12465 \begin_inset Flex Code
12468 \begin_layout Plain Layout
12476 がこの環境のすべての段落に付けられるところだけが異なっています.
12479 \begin_layout Description
12480 \begin_inset Flex Code
12483 \begin_layout Plain Layout
12490 \begin_inset Flex Code
12493 \begin_layout Plain Layout
12500 \begin_inset Flex Code
12503 \begin_layout Plain Layout
12509 が環境の引数として渡されるところだけが異なっています.
12510 \begin_inset Flex Code
12513 \begin_layout Plain Layout
12520 \begin_inset Flex MenuItem
12523 \begin_layout Plain Layout
12524 編集\SpecialChar menuseparator
12533 \begin_layout Description
12534 \begin_inset Flex Code
12537 \begin_layout Plain Layout
12544 \begin_inset Flex Code
12547 \begin_layout Plain Layout
12553 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
12554 \begin_inset Newline newline
12558 \begin_inset Flex Code
12561 \begin_layout Plain Layout
12564 begin{thebibliography}{99}
12570 \begin_inset Newline newline
12573 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
12576 \begin_layout Standard
12577 上記最後のいくつかをまとめると,\SpecialChar LaTeX
12578 出力は,\SpecialChar LaTeX
12582 \begin_layout LyX-Code
12585 LatexName[LatexParam]{\SpecialChar ldots
12589 \begin_layout Standard
12593 \begin_layout LyX-Code
12596 begin{LatexName}[LatexParam] \SpecialChar ldots
12602 \begin_layout Standard
12607 \begin_layout Description
12608 \begin_inset Flex Code
12611 \begin_layout Plain Layout
12618 \begin_inset Flex Code
12621 \begin_layout Plain Layout
12627 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12628 \begin_inset Flex Code
12631 \begin_layout Plain Layout
12640 \begin_layout Description
12641 \begin_inset Flex Code
12644 \begin_layout Plain Layout
12651 \begin_inset Flex Code
12654 \begin_layout Plain Layout
12660 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12661 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12664 をかけて加えられます.このパラメータは,
12665 \begin_inset Flex Code
12668 \begin_layout Plain Layout
12675 \begin_inset Flex Code
12678 \begin_layout Plain Layout
12685 \begin_inset Flex Code
12688 \begin_layout Plain Layout
12694 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12695 \begin_inset Newline newline
12699 \begin_inset Flex Code
12702 \begin_layout Plain Layout
12708 」と指定すると,段落を通常フォントの「
12709 \begin_inset Flex Code
12712 \begin_layout Plain Layout
12718 」の幅だけ行頭下げを行います.文字列の前に「
12719 \begin_inset Flex Code
12722 \begin_layout Plain Layout
12728 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12731 \begin_layout Description
12732 \begin_inset Flex Code
12735 \begin_layout Plain Layout
12742 \begin_inset Flex Code
12745 \begin_layout Plain Layout
12750 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12756 \begin_inset Newline newline
12763 \begin_layout Description
12764 \begin_inset Flex Code
12767 \begin_layout Plain Layout
12776 \begin_layout Description
12777 \begin_inset Flex Code
12780 \begin_layout Plain Layout
12787 \begin_inset Flex MenuItem
12790 \begin_layout Plain Layout
12791 編集\SpecialChar menuseparator
12797 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12800 \begin_layout Description
12801 \begin_inset Flex Code
12804 \begin_layout Plain Layout
12810 は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12811 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12814 \begin_layout Description
12815 \begin_inset Flex Code
12818 \begin_layout Plain Layout
12824 は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12827 \begin_layout Description
12828 \begin_inset Flex Code
12831 \begin_layout Plain Layout
12837 は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12841 \begin_layout Description
12842 \begin_inset Flex Code
12845 \begin_layout Plain Layout
12852 \begin_inset Flex Code
12855 \begin_layout Plain Layout
12864 \begin_inset space \thinspace{}
12868 \begin_inset Flex Code
12871 \begin_layout Plain Layout
12877 ] このレイアウト中の脆弱なコマンドが
12878 \begin_inset Flex Code
12881 \begin_layout Plain Layout
12889 されるべきか否か(註:これはこのコマンド自体が
12890 \begin_inset Flex Code
12893 \begin_layout Plain Layout
12908 \begin_layout Description
12909 \begin_inset Flex Code
12912 \begin_layout Plain Layout
12919 \begin_inset Flex Code
12922 \begin_layout Plain Layout
12929 \begin_inset space \thinspace{}
12933 \begin_inset Flex Code
12936 \begin_layout Plain Layout
12944 ] 新規行を\SpecialChar LaTeX
12946 \begin_inset Flex Code
12949 \begin_layout Plain Layout
12959 )に変換するか否か.\SpecialChar LyX
12960 中で\SpecialChar LaTeX
12961 編集をやりやすくするために,変換は無効にすることができます.
12964 \begin_layout Description
12965 \begin_inset Flex Code
12968 \begin_layout Plain Layout
12975 \begin_inset Flex Code
12978 \begin_layout Plain Layout
12987 \begin_inset space \thinspace{}
12991 \begin_inset Flex Code
12994 \begin_layout Plain Layout
13001 \begin_inset Flex Code
13004 \begin_layout Plain Layout
13011 \begin_inset Flex Code
13014 \begin_layout Plain Layout
13020 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
13023 \begin_layout Description
13024 \begin_inset Flex Code
13027 \begin_layout Plain Layout
13034 \begin_inset Flex Code
13037 \begin_layout Plain Layout
13043 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
13046 \begin_layout Description
13047 \begin_inset Flex Code
13050 \begin_layout Plain Layout
13057 \begin_inset Flex Code
13060 \begin_layout Plain Layout
13067 \begin_inset space \thinspace{}
13071 \begin_inset Flex Code
13074 \begin_layout Plain Layout
13080 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
13081 \begin_inset Flex Code
13084 \begin_layout Plain Layout
13090 が一度だけ出力される効果があります.既定では,
13091 \begin_inset Flex Code
13094 \begin_layout Plain Layout
13101 \begin_inset Flex Code
13104 \begin_layout Plain Layout
13111 \begin_inset Flex Code
13114 \begin_layout Plain Layout
13120 については有効であり,他の型すべてについて無効になっています.
13123 \begin_layout Description
13124 \begin_inset Flex Code
13127 \begin_layout Plain Layout
13134 \begin_inset Flex Code
13137 \begin_layout Plain Layout
13146 \begin_inset space \thinspace{}
13150 \begin_inset Flex Code
13153 \begin_layout Plain Layout
13159 ] \SpecialChar LaTeX
13160 出力中で,段落を空行ではなく,改行で区切るよう指定します.
13161 \begin_inset Flex Code
13164 \begin_layout Plain Layout
13170 と併用すれば,(\SpecialChar TeX
13171 コードを使用したときのように)テキストエディタをエミュレートすることができます.
13174 \begin_layout Description
13175 \begin_inset Flex Code
13178 \begin_layout Plain Layout
13185 \begin_inset Flex Code
13188 \begin_layout Plain Layout
13194 ] 段落の最初の行の行頭下げ.レイアウトによっては
13195 \begin_inset Flex Code
13198 \begin_layout Plain Layout
13204 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
13205 \begin_inset Flex Code
13208 \begin_layout Plain Layout
13214 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
13215 \begin_inset Flex Code
13218 \begin_layout Plain Layout
13225 \begin_inset Flex Code
13228 \begin_layout Plain Layout
13234 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
13237 \begin_layout Description
13238 \begin_inset Flex Code
13241 \begin_layout Plain Layout
13248 \begin_inset Flex Code
13251 \begin_layout Plain Layout
13257 ] このレイアウトの2段落間の垂直余白.
13260 \begin_layout Description
13261 \begin_inset Flex Code
13264 \begin_layout Plain Layout
13271 \begin_inset Flex Code
13274 \begin_layout Plain Layout
13281 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
13282 択した際には,\SpecialChar LaTeX
13284 \begin_inset Flex Code
13287 \begin_layout Plain Layout
13294 \begin_inset Flex Code
13297 \begin_layout Plain Layout
13303 引数分だけ引き離されます.垂直余白は,
13304 \begin_inset Flex Code
13307 \begin_layout Plain Layout
13313 を標準フォントでの1行の高さとすると,
13314 \begin_inset Flex Code
13317 \begin_layout Plain Layout
13324 \begin_inset Formula $\times$
13328 \begin_inset Flex Code
13331 \begin_layout Plain Layout
13337 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
13340 \begin_layout Description
13341 \begin_inset Flex Code
13344 \begin_layout Plain Layout
13353 \begin_inset Flex Code
13356 \begin_layout Plain Layout
13365 \begin_inset space \thinspace{}
13369 \begin_inset Flex Code
13372 \begin_layout Plain Layout
13378 ] この段落の内容が,\SpecialChar LaTeX
13379 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
13382 \begin_layout Description
13383 \begin_inset Flex Code
13386 \begin_layout Plain Layout
13393 \begin_inset Flex Code
13396 \begin_layout Plain Layout
13407 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
13410 \begin_layout Description
13411 \begin_inset Flex Code
13414 \begin_layout Plain Layout
13420 この様式が使用されたときに,\SpecialChar LaTeX
13421 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
13422 \begin_inset Flex Code
13425 \begin_layout Plain Layout
13434 \begin_layout Description
13435 \begin_inset Flex Code
13438 \begin_layout Plain Layout
13445 \begin_inset Flex Code
13448 \begin_layout Plain Layout
13454 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
13457 \begin_layout Description
13458 \begin_inset Flex Code
13461 \begin_layout Plain Layout
13468 \begin_inset Flex Code
13471 \begin_layout Plain Layout
13478 \begin_inset Flex Code
13481 \begin_layout Plain Layout
13487 を必要とするかどうか(機能詳細については,第
13488 \begin_inset CommandInset ref
13490 reference "chap:関数一覧"
13494 節参照).特定のオプションをとるパッケージを要求する場合,
13495 \begin_inset Flex Code
13498 \begin_layout Plain Layout
13504 を汎用テキストクラスパラメータとして追加して使うことができます(
13505 \begin_inset CommandInset ref
13507 reference "subsec:汎用テキストクラスパラメータ"
13514 \begin_layout Description
13515 \begin_inset Flex Code
13518 \begin_layout Plain Layout
13525 \begin_inset Flex Code
13528 \begin_layout Plain Layout
13537 \begin_inset Flex Code
13540 \begin_layout Plain Layout
13547 \begin_inset Flex Code
13550 \begin_layout Plain Layout
13556 タグで定義された)この様式の\SpecialChar LaTeX
13558 \begin_inset Flex Code
13561 \begin_layout Plain Layout
13567 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
13570 \begin_layout Description
13571 \begin_inset Flex Code
13574 \begin_layout Plain Layout
13581 \begin_inset Flex Code
13584 \begin_layout Plain Layout
13593 \begin_inset Flex Code
13596 \begin_layout Plain Layout
13602 ] レイアウトの新しい一群で通常リセットされるカウンタを元に戻します.これは,
13603 \begin_inset Flex Code
13606 \begin_layout Plain Layout
13613 \begin_inset Flex Code
13616 \begin_layout Plain Layout
13625 \begin_layout Description
13626 \begin_inset Flex Code
13629 \begin_layout Plain Layout
13636 \begin_inset Flex Code
13639 \begin_layout Plain Layout
13645 ] 様式の内容の最後に置かれる文字列.出力中の改行は
13646 \begin_inset Flex Code
13649 \begin_layout Plain Layout
13658 \begin_layout Description
13659 \begin_inset Flex Code
13662 \begin_layout Plain Layout
13669 \begin_inset Flex Code
13672 \begin_layout Plain Layout
13679 \begin_inset Flex Code
13682 \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
13714 \begin_inset Flex Code
13717 \begin_layout Plain Layout
13724 \begin_inset Flex Code
13727 \begin_layout Plain Layout
13734 \begin_inset Flex Code
13737 \begin_layout Plain Layout
13739 \begin_inset space ~
13755 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13756 \begin_inset Flex Code
13759 \begin_layout Plain Layout
13766 \begin_inset Flex Code
13769 \begin_layout Plain Layout
13776 \begin_inset Flex Code
13779 \begin_layout Plain Layout
13785 は,それぞれ乗数1・1.25・1.667に対応します.引数
13786 \begin_inset Flex Code
13789 \begin_layout Plain Layout
13795 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13796 \begin_inset Flex Code
13799 \begin_layout Plain Layout
13805 は,\SpecialChar LaTeX
13807 \begin_inset Flex Code
13810 \begin_layout Plain Layout
13816 パッケージを使用した,限定的な\SpecialChar LaTeX
13817 コードを生成することを意味することにご注意ください.
13820 \begin_layout Description
13821 \begin_inset Flex Code
13824 \begin_layout Plain Layout
13831 \begin_inset Flex Code
13834 \begin_layout Plain Layout
13841 \begin_inset space \thinspace{}
13845 \begin_inset Flex Code
13848 \begin_layout Plain Layout
13854 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13857 \begin_layout Description
13858 \begin_inset Flex Code
13861 \begin_layout Plain Layout
13868 \begin_inset Flex Code
13871 \begin_layout Plain Layout
13880 \begin_inset Flex Code
13883 \begin_layout Plain Layout
13889 ] 新しいレイアウト群を開始する際に,このカウンタの親カウンタを進めるか否か.これは,現在のところ,
13890 \begin_inset Flex Code
13893 \begin_layout Plain Layout
13900 \begin_inset Flex Code
13903 \begin_layout Plain Layout
13912 \begin_layout Description
13913 \begin_inset Flex Code
13916 \begin_layout Plain Layout
13923 \begin_inset CommandInset ref
13925 reference "subsec:フォント指定"
13932 \begin_layout Description
13933 \begin_inset Flex Code
13936 \begin_layout Plain Layout
13943 \begin_inset Flex Code
13946 \begin_layout Plain Layout
13952 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13955 \begin_layout Description
13956 \begin_inset Flex Code
13959 \begin_layout Plain Layout
13968 \begin_inset Flex Code
13971 \begin_layout Plain Layout
13980 \begin_inset Flex Code
13983 \begin_layout Plain Layout
13990 \begin_inset Flex Code
13993 \begin_layout Plain Layout
13999 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
14000 \begin_inset Flex Code
14003 \begin_layout Plain Layout
14009 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
14010 \begin_inset Flex Code
14013 \begin_layout Plain Layout
14019 は,文書設定にかかわらず変更することができ,
14020 \begin_inset Flex Code
14023 \begin_layout Plain Layout
14029 は,どのような場合でも変更することができません.
14032 \begin_layout Description
14033 \begin_inset Flex Code
14036 \begin_layout Plain Layout
14043 \begin_inset Flex Code
14046 \begin_layout Plain Layout
14052 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
14056 \begin_layout Subsection
14058 \begin_inset CommandInset label
14060 name "subsec:段落様式の国際化"
14067 \begin_layout Standard
14069 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
14070 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
14074 1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
14077 \begin_layout Standard
14079 \begin_inset Flex MenuItem
14082 \begin_layout Plain Layout
14088 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
14089 \begin_inset Flex MenuItem
14092 \begin_layout Plain Layout
14099 \begin_inset Flex MenuItem
14102 \begin_layout Plain Layout
14108 を使用することができます.以下の抜粋(
14109 \begin_inset Flex MenuItem
14112 \begin_layout Plain Layout
14118 より)は,これがどう動作するかを示すものです.
14121 \begin_layout LyX-Code
14126 \begin_layout LyX-Code
14129 theoremstyle{remark}
14132 \begin_layout LyX-Code
14135 newtheorem{claim}[thm]{
14142 \begin_layout LyX-Code
14146 \begin_layout LyX-Code
14150 \begin_layout LyX-Code
14155 claimname}{_(Claim)}
14158 \begin_layout LyX-Code
14162 \begin_layout LyX-Code
14166 \begin_layout LyX-Code
14175 claimname}{_(Claim)}}
14178 \begin_layout LyX-Code
14183 \begin_layout Standard
14185 \begin_inset Flex MenuItem
14188 \begin_layout Plain Layout
14195 \begin_inset Flex MenuItem
14198 \begin_layout Plain Layout
14204 タグ内には,有効な\SpecialChar LaTeX
14205 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
14206 は,\SpecialChar LaTeX
14208 \begin_inset Flex Code
14211 \begin_layout Plain Layout
14220 \begin_inset Flex Code
14223 \begin_layout Plain Layout
14234 \begin_layout Standard
14235 \begin_inset Flex Code
14238 \begin_layout Plain Layout
14244 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
14245 \begin_inset Flex Code
14248 \begin_layout Plain Layout
14254 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
14255 \begin_inset Flex Code
14258 \begin_layout Plain Layout
14264 が使用されていることです.これは,\SpecialChar LyX
14265 が\SpecialChar LaTeX
14266 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
14269 \begin_layout Standard
14270 \begin_inset Flex Code
14273 \begin_layout Plain Layout
14280 \begin_inset Flex Code
14283 \begin_layout Plain Layout
14289 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
14291 \begin_inset Flex Code
14294 \begin_layout Plain Layout
14300 の引数は,その当該言語への翻訳で置き換えられ,
14301 \begin_inset Flex Code
14304 \begin_layout Plain Layout
14310 は言語名(babelパッケージで使用されるもの)で置き換えられます.
14313 \begin_layout Standard
14314 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
14317 \begin_layout LyX-Code
14326 claimname}{Affirmation}}
14327 \begin_inset Newline newline
14338 claimname}{Behauptung}}
14339 \begin_inset Newline newline
14346 claimname}{Behauptung}
14349 \begin_layout Standard
14350 それから,\SpecialChar LaTeX
14352 \begin_inset Flex Code
14355 \begin_layout Plain Layout
14361 は協力して,出力に正しい文字列を生成します.
14364 \begin_layout Standard
14365 ここで注意しておくべき一つの重要な点は,翻訳は,
14366 \begin_inset Flex Code
14369 \begin_layout Plain Layout
14375 ファイルを通じて,\SpecialChar LyX
14376 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
14377 \begin_inset Flex Code
14380 \begin_layout Plain Layout
14386 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
14387 の国際化ルーチンでは取り扱われないので,
14388 \begin_inset Flex MenuItem
14391 \begin_layout Plain Layout
14398 \begin_inset Flex MenuItem
14401 \begin_layout Plain Layout
14407 は,事実上,\SpecialChar LyX
14408 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
14410 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
14411 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
14412 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
14415 \begin_layout Subsection
14417 \begin_inset CommandInset label
14426 \begin_layout Standard
14428 第1.3.0版以来,テキストクラス自体の中でフロート(
14429 \begin_inset Flex MenuItem
14432 \begin_layout Plain Layout
14439 \begin_inset Flex MenuItem
14442 \begin_layout Plain Layout
14448 ・\SpecialChar ldots
14449 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
14450 \begin_inset Flex Code
14453 \begin_layout Plain Layout
14459 ファイルに含まれているので,作業中のレイアウトファイルに
14462 \begin_layout LyX-Code
14463 Input stdfloats.inc
14466 \begin_layout Standard
14467 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
14468 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
14472 \begin_layout Description
14473 \begin_inset Flex Code
14476 \begin_layout Plain Layout
14483 \begin_inset Flex Code
14486 \begin_layout Plain Layout
14492 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
14497 \begin_inset Quotes eld
14500 here if possible:可能ならば現在位置に
14501 \begin_inset Quotes erd
14509 \begin_inset Quotes eld
14513 \begin_inset Quotes erd
14521 \begin_inset Quotes eld
14524 bottom of page:ページ下部
14525 \begin_inset Quotes erd
14533 \begin_inset Quotes eld
14536 page of floats:フロートを独立したページに
14537 \begin_inset Quotes erd
14545 \begin_inset Quotes eld
14548 here definitely:何としても現在位置に置く
14549 \begin_inset Quotes erd
14557 \begin_inset Quotes eld
14560 ignore LaTeX rules:LaTeXの規則を無視する
14561 \begin_inset Quotes erd
14564 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
14571 \begin_layout Description
14572 \begin_inset Flex Code
14575 \begin_layout Plain Layout
14582 \begin_inset Flex Code
14585 \begin_layout Plain Layout
14592 \begin_inset space \thinspace{}
14598 \begin_inset Flex Code
14601 \begin_layout Plain Layout
14609 ] フロートを,\SpecialChar LaTeX
14614 (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
14615 \begin_inset Flex Code
14618 \begin_layout Plain Layout
14627 \begin_layout Description
14628 \begin_inset Flex Code
14631 \begin_layout Plain Layout
14638 \begin_inset Flex Code
14641 \begin_layout Plain Layout
14648 \begin_inset space \thinspace{}
14654 \begin_inset Flex Code
14657 \begin_layout Plain Layout
14665 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
14666 \begin_inset Flex Code
14669 \begin_layout Plain Layout
14678 \begin_layout Description
14679 \begin_inset Flex Code
14682 \begin_layout Plain Layout
14689 \begin_inset Flex Code
14692 \begin_layout Plain Layout
14699 \begin_inset Quotes erd
14703 \begin_inset Quotes erd
14706 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14707 がキャプションを書き込むファイルです.
14710 \begin_layout Description
14711 \begin_inset Flex Code
14714 \begin_layout Plain Layout
14721 \begin_inset Flex Code
14724 \begin_layout Plain Layout
14731 \begin_inset Quotes erd
14735 \begin_inset Quotes erd
14738 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14741 \begin_layout Description
14742 \begin_inset Flex Code
14745 \begin_layout Plain Layout
14751 これらは,XHTML出力で使用されます.
14752 \begin_inset CommandInset ref
14754 reference "sec:XHTML出力のタグ"
14761 \begin_layout Description
14762 \begin_inset Flex Code
14765 \begin_layout Plain Layout
14772 \begin_inset Flex Code
14775 \begin_layout Plain Layout
14784 \begin_inset space \thinspace{}
14788 \begin_inset Flex Code
14791 \begin_layout Plain Layout
14797 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14799 \begin_inset Flex Code
14802 \begin_layout Plain Layout
14808 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14809 \begin_inset Flex Code
14812 \begin_layout Plain Layout
14819 \begin_inset Flex Code
14822 \begin_layout Plain Layout
14828 を使用します.\SpecialChar LaTeX
14829 ドキュメントクラス中に既に定義されているときには,
14830 \begin_inset Flex Code
14833 \begin_layout Plain Layout
14842 \begin_layout Description
14843 \begin_inset Flex Code
14846 \begin_layout Plain Layout
14853 \begin_inset Flex Code
14856 \begin_layout Plain Layout
14863 \begin_inset Quotes erd
14867 \begin_inset Quotes erd
14870 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14873 \begin_inset Flex Code
14876 \begin_layout Plain Layout
14882 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14887 \begin_inset Flex Code
14890 \begin_layout Plain Layout
14896 が真の時は,標準的な方法が存在するので,これは無視されます.
14899 \begin_layout Description
14900 \begin_inset Flex Code
14903 \begin_layout Plain Layout
14910 \begin_inset Flex Code
14913 \begin_layout Plain Layout
14920 \begin_inset Quotes erd
14924 \begin_inset Quotes erd
14927 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14928 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14930 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14933 \begin_layout Description
14934 \begin_inset Flex Code
14937 \begin_layout Plain Layout
14944 \begin_inset Flex Code
14947 \begin_layout Plain Layout
14954 \begin_inset Quotes erd
14958 \begin_inset Quotes erd
14961 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14962 \begin_inset Flex Code
14965 \begin_layout Plain Layout
14972 \begin_inset Flex Code
14975 \begin_layout Plain Layout
14981 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14984 \begin_layout Description
14985 \begin_inset Flex Code
14988 \begin_layout Plain Layout
14995 \begin_inset Flex Code
14998 \begin_layout Plain Layout
15005 \begin_inset Quotes erd
15009 \begin_inset Quotes erd
15012 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
15014 \begin_inset Flex Code
15017 \begin_layout Plain Layout
15024 \begin_inset Flex Code
15027 \begin_layout Plain Layout
15034 \begin_inset Flex Code
15037 \begin_layout Plain Layout
15044 \begin_inset Flex Code
15047 \begin_layout Plain Layout
15057 \begin_layout Plain Layout
15059 同様,文字列中でのこれらの文字の順序は関係ありません.
15065 \begin_inset Flex Code
15068 \begin_layout Plain Layout
15074 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
15075 \begin_inset Flex Code
15078 \begin_layout Plain Layout
15084 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
15086 \begin_inset Flex Code
15089 \begin_layout Plain Layout
15098 \begin_layout Description
15099 \begin_inset Flex Code
15102 \begin_layout Plain Layout
15109 \begin_inset Flex Code
15112 \begin_layout Plain Layout
15118 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
15119 \begin_inset Flex Code
15122 \begin_layout Plain Layout
15128 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
15131 \begin_layout Description
15132 \begin_inset Flex Code
15135 \begin_layout Plain Layout
15142 \begin_inset Flex Code
15145 \begin_layout Plain Layout
15152 \begin_inset Quotes erd
15156 \begin_inset Quotes erd
15160 \begin_inset Flex Code
15163 \begin_layout Plain Layout
15171 を使用してフロートを定義する際に使用される様式.
15174 \begin_layout Description
15175 \begin_inset Flex Code
15178 \begin_layout Plain Layout
15185 \begin_inset Flex Code
15188 \begin_layout Plain Layout
15195 \begin_inset Quotes erd
15199 \begin_inset Quotes erd
15202 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
15203 \begin_inset Flex Code
15206 \begin_layout Plain Layout
15215 \begin_inset Flex Code
15218 \begin_layout Plain Layout
15227 \begin_inset Flex Code
15230 \begin_layout Plain Layout
15241 \begin_layout Description
15242 \begin_inset Flex Code
15245 \begin_layout Plain Layout
15252 \begin_inset Flex Code
15255 \begin_layout Plain Layout
15262 \begin_inset space \thinspace{}
15266 \begin_inset Flex Code
15269 \begin_layout Plain Layout
15277 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
15279 \begin_inset Flex Code
15282 \begin_layout Plain Layout
15288 が提供しているものを使用して定義されているのか,\SpecialChar LyX
15289 自身がオン・ザ・フライで定義しているのかを示します.
15292 \begin_layout Standard
15293 \begin_inset Flex Code
15296 \begin_layout Plain Layout
15309 \begin_inset Flex Code
15312 \begin_layout Plain Layout
15323 \begin_layout Subsection
15325 \begin_inset CommandInset label
15327 name "subsec:任意設定差込枠"
15334 \begin_layout Standard
15338 \begin_layout Itemize
15340 \begin_inset Flex Code
15343 \begin_layout Plain Layout
15350 \begin_inset Flex Code
15353 \begin_layout Plain Layout
15362 \begin_inset Flex Code
15365 \begin_layout Plain Layout
15373 などの\SpecialChar LaTeX
15374 コマンドに対応した意味論的マークアップを定義するものです.
15377 \begin_layout Itemize
15379 \begin_inset Flex Code
15382 \begin_layout Plain Layout
15388 ).これは,\SpecialChar TeX
15389 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
15390 \begin_inset Flex Code
15393 \begin_layout Plain Layout
15402 \begin_layout Itemize
15404 \begin_inset Flex Code
15407 \begin_layout Plain Layout
15413 ).DocBookクラスで使用するものです.
15416 \begin_layout Standard
15418 \begin_inset Flex Code
15421 \begin_layout Plain Layout
15430 \begin_layout Standard
15431 \begin_inset Flex Code
15434 \begin_layout Plain Layout
15440 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
15441 \begin_inset Flex Code
15444 \begin_layout Plain Layout
15450 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
15451 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15455 \begin_layout Standard
15456 \begin_inset Flex Code
15459 \begin_layout Plain Layout
15465 定義は以下の形の行では始まらなくてはなりません.
15468 \begin_layout LyX-Code
15472 \begin_layout Standard
15474 \begin_inset Flex Code
15477 \begin_layout Plain Layout
15483 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
15486 \begin_layout Enumerate
15487 既存の差込枠のレイアウトを変更する場合.この場合,
15488 \begin_inset Flex Code
15491 \begin_layout Plain Layout
15498 \begin_inset Flex Code
15501 \begin_layout Plain Layout
15508 \begin_inset Flex Code
15511 \begin_layout Plain Layout
15518 \begin_inset Flex Code
15521 \begin_layout Plain Layout
15528 \begin_inset Flex Code
15531 \begin_layout Plain Layout
15538 \begin_inset Flex Code
15541 \begin_layout Plain Layout
15548 \begin_inset Flex Code
15551 \begin_layout Plain Layout
15558 \begin_inset Flex Code
15561 \begin_layout Plain Layout
15568 \begin_inset Flex Code
15571 \begin_layout Plain Layout
15578 \begin_inset Flex Code
15581 \begin_layout Plain Layout
15588 \begin_inset Flex Code
15591 \begin_layout Plain Layout
15598 \begin_inset Flex Code
15601 \begin_layout Plain Layout
15608 \begin_inset Flex Code
15611 \begin_layout Plain Layout
15618 \begin_inset Flex Code
15621 \begin_layout Plain Layout
15628 \begin_inset Flex Code
15631 \begin_layout Plain Layout
15638 \begin_inset Flex Code
15641 \begin_layout Plain Layout
15648 \begin_inset Flex Code
15651 \begin_layout Plain Layout
15658 \begin_inset Flex Code
15661 \begin_layout Plain Layout
15668 \begin_inset Flex Code
15671 \begin_layout Plain Layout
15678 \begin_inset Flex Code
15681 \begin_layout Plain Layout
15688 \begin_inset Flex Code
15691 \begin_layout Plain Layout
15700 \begin_layout Enumerate
15701 自由差込枠のレイアウトを定義する場合.この場合,
15702 \begin_inset Flex Code
15705 \begin_layout Plain Layout
15712 \begin_inset Flex Code
15715 \begin_layout Plain Layout
15722 \begin_inset Flex Code
15725 \begin_layout Plain Layout
15731 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15732 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15733 \begin_inset Flex Code
15736 \begin_layout Plain Layout
15742 項目が含まれていなくてはならないことに注意してください.
15745 \begin_layout Enumerate
15746 ユーザー定義派生枝を定義する場合.この場合,
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
15776 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15777 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15778 がくるむことができるようにすることです.
15781 \begin_layout Enumerate
15782 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15783 \begin_inset Flex Code
15786 \begin_layout Plain Layout
15793 \begin_inset Flex Code
15796 \begin_layout Plain Layout
15803 \begin_inset Flex Code
15806 \begin_layout Plain Layout
15812 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15813 \begin_inset Flex Code
15816 \begin_layout Plain Layout
15822 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15823 \begin_inset Flex Code
15826 \begin_layout Plain Layout
15833 \begin_inset Flex Code
15836 \begin_layout Plain Layout
15847 \begin_inset Flex Code
15850 \begin_layout Plain Layout
15851 Caption:\SpecialChar allowbreak
15860 \begin_layout Standard
15861 \begin_inset Flex Code
15864 \begin_layout Plain Layout
15870 定義には以下の項目を入れることができます.
15873 \begin_layout Description
15874 \begin_inset Flex Code
15877 \begin_layout Plain Layout
15884 \begin_inset Flex Code
15887 \begin_layout Plain Layout
15893 =""] この差込枠は,この型の一覧表に表示されます.空の文字列を入れると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドも参
15894 照してください.これは,自由差込枠にのみ実装されています.既定値:無効.
15897 \begin_layout Description
15898 \begin_inset Flex Code
15901 \begin_layout Plain Layout
15908 \begin_inset Flex Code
15911 \begin_layout Plain Layout
15917 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15918 \begin_inset Flex Code
15921 \begin_layout Plain Layout
15928 \begin_inset CommandInset ref
15930 reference "subsec:段落様式"
15937 \begin_layout Description
15938 \begin_inset Flex Code
15941 \begin_layout Plain Layout
15947 言語コマンドを変更するプリアンブル.第
15948 \begin_inset CommandInset ref
15950 reference "subsec:段落様式の国際化"
15957 \begin_layout Description
15958 \begin_inset Flex Code
15961 \begin_layout Plain Layout
15968 \begin_inset Flex Code
15971 \begin_layout Plain Layout
15977 ] 差込枠の背景色.使用できる色名一覧は第
15978 \begin_inset CommandInset ref
15980 reference "chap:色名"
15987 \begin_layout Description
15988 \begin_inset Flex Code
15991 \begin_layout Plain Layout
15998 \begin_inset Flex Code
16001 \begin_layout Plain Layout
16010 \begin_inset space \thinspace{}
16014 \begin_inset Flex Code
16017 \begin_layout Plain Layout
16023 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
16026 \begin_layout Description
16027 \begin_inset Flex Code
16030 \begin_layout Plain Layout
16037 \begin_inset CommandInset ref
16039 reference "subsec:段落様式"
16043 節参照のこと.完全な型を指定する必要があることに注意してください.例:
16044 \begin_inset Flex Code
16047 \begin_layout Plain Layout
16048 CopyStyle Flex:<名称>
16056 \begin_layout Description
16057 \begin_inset Flex Code
16060 \begin_layout Plain Layout
16067 \begin_inset Flex Code
16070 \begin_layout Plain Layout
16079 \begin_inset space \thinspace{}
16083 \begin_inset Flex Code
16086 \begin_layout Plain Layout
16092 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
16095 \begin_layout Description
16096 \begin_inset Flex Code
16099 \begin_layout Plain Layout
16105 差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
16106 \begin_inset Flex Code
16109 \begin_layout Plain Layout
16116 \begin_inset Flex Code
16119 \begin_layout Plain Layout
16126 \begin_inset Flex Code
16129 \begin_layout Plain Layout
16135 のいずれかを指定することができます.脚註は通常
16136 \begin_inset Flex Code
16139 \begin_layout Plain Layout
16145 を使用し,\SpecialChar TeX
16147 \begin_inset Flex Code
16150 \begin_layout Plain Layout
16157 \begin_inset Flex Code
16160 \begin_layout Plain Layout
16169 \begin_layout Description
16170 \begin_inset Flex Code
16173 \begin_layout Plain Layout
16180 \begin_inset Flex Code
16183 \begin_layout Plain Layout
16190 \begin_inset space \thinspace{}
16194 \begin_inset Flex Code
16197 \begin_layout Plain Layout
16206 \begin_inset Flex Code
16209 \begin_layout Plain Layout
16216 \begin_inset Flex Code
16219 \begin_layout Plain Layout
16225 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
16227 \begin_inset Flex Code
16230 \begin_layout Plain Layout
16239 \begin_inset Flex Code
16242 \begin_layout Plain Layout
16250 タグの後の空白(改行文字を含む)を無視するものと仮定します.
16253 \begin_layout Description
16254 \begin_inset Flex Code
16257 \begin_layout Plain Layout
16264 \begin_inset Flex Code
16267 \begin_layout Plain Layout
16276 \begin_layout Description
16277 \begin_inset Flex Code
16280 \begin_layout Plain Layout
16291 \begin_inset CommandInset ref
16293 reference "subsec:フォント指定"
16297 節を参照.このフォントを定義すると自動的に
16298 \begin_inset Flex Code
16301 \begin_layout Plain Layout
16307 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
16308 \begin_inset Flex Code
16311 \begin_layout Plain Layout
16317 を定義しなくてはならないことに注意してください.
16320 \begin_layout Description
16321 \begin_inset Flex Code
16324 \begin_layout Plain Layout
16325 FixedWidthPreambleEncoding
16331 \begin_inset Flex Code
16334 \begin_layout Plain Layout
16343 \begin_inset space \thinspace{}
16347 \begin_inset Flex Code
16350 \begin_layout Plain Layout
16357 \begin_inset Flex Code
16360 \begin_layout Plain Layout
16367 \begin_inset Flex Code
16370 \begin_layout Plain Layout
16376 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
16384 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
16385 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
16386 やLua\SpecialChar TeX
16387 のようなUnicodeを完全に解する\SpecialChar LaTeX
16392 \begin_layout Description
16393 \begin_inset Flex Code
16396 \begin_layout Plain Layout
16397 ForceLocalFontSwitch
16403 \begin_inset Flex Code
16406 \begin_layout Plain Layout
16415 \begin_inset space \thinspace{}
16419 \begin_inset Flex Code
16422 \begin_layout Plain Layout
16428 ] babel使用時に,常にローカルフォント切替(
16429 \begin_inset Flex Code
16432 \begin_layout Plain Layout
16441 \begin_inset Flex Code
16444 \begin_layout Plain Layout
16455 \begin_layout Description
16456 \begin_inset Flex Code
16459 \begin_layout Plain Layout
16466 \begin_inset Flex Code
16469 \begin_layout Plain Layout
16478 \begin_inset space \thinspace{}
16482 \begin_inset Flex Code
16485 \begin_layout Plain Layout
16491 ] たとえば\SpecialChar TeX
16492 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
16495 \begin_layout Description
16496 \begin_inset Flex Code
16499 \begin_layout Plain Layout
16506 \begin_inset Flex Code
16509 \begin_layout Plain Layout
16518 \begin_inset space \thinspace{}
16522 \begin_inset Flex Code
16525 \begin_layout Plain Layout
16531 ] \SpecialChar LaTeX
16532 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
16535 \begin_layout Description
16536 \begin_inset Flex Code
16539 \begin_layout Plain Layout
16546 \begin_inset Flex Code
16549 \begin_layout Plain Layout
16558 \begin_inset space \thinspace{}
16562 \begin_inset Flex Code
16565 \begin_layout Plain Layout
16571 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
16574 \begin_layout Description
16575 \begin_inset Flex Code
16578 \begin_layout Plain Layout
16587 \begin_inset Flex Code
16590 \begin_layout Plain Layout
16599 \begin_inset space \thinspace{}
16603 \begin_inset Flex Code
16606 \begin_layout Plain Layout
16613 \begin_inset CommandInset ref
16615 reference "subsec:段落様式"
16622 \begin_layout Description
16623 \begin_inset Flex Code
16626 \begin_layout Plain Layout
16632 これらは,XHTML出力で使用されます.第
16633 \begin_inset CommandInset ref
16635 reference "sec:XHTML出力のタグ"
16642 \begin_layout Description
16643 \begin_inset Flex Code
16646 \begin_layout Plain Layout
16653 \begin_inset Flex Code
16656 \begin_layout Plain Layout
16665 \begin_inset space \thinspace{}
16669 \begin_inset Flex Code
16672 \begin_layout Plain Layout
16678 ] AddToTocの設定に関わらず,「文書構造」面用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に
16679 表示されることは望まないでしょうが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
16682 \begin_layout Description
16683 \begin_inset Flex Code
16686 \begin_layout Plain Layout
16693 \begin_inset Flex Code
16696 \begin_layout Plain Layout
16705 \begin_inset space \thinspace{}
16709 \begin_inset Flex Code
16712 \begin_layout Plain Layout
16718 ] AddToTocが有効なときに,これが1に設定されていると,差込枠の内容の要約が,目次項目に表示されます.0の場合は,ラベルのみが表示されます.
16721 \begin_layout Description
16722 \begin_inset Flex Code
16725 \begin_layout Plain Layout
16734 \begin_inset Flex Code
16737 \begin_layout Plain Layout
16746 \begin_inset space \thinspace{}
16750 \begin_inset Flex Code
16753 \begin_layout Plain Layout
16760 \begin_inset CommandInset ref
16762 reference "subsec:段落様式"
16769 \begin_layout Description
16770 \begin_inset Flex Code
16773 \begin_layout Plain Layout
16780 \begin_inset CommandInset ref
16782 reference "subsec:フォント指定"
16786 節を参照.非効率を回避するため,この定義は
16787 \begin_inset Flex Code
16790 \begin_layout Plain Layout
16799 \begin_layout Description
16800 \begin_inset Flex Code
16803 \begin_layout Plain Layout
16810 \begin_inset Flex Code
16813 \begin_layout Plain Layout
16820 \begin_inset Quotes erd
16824 \begin_inset Quotes erd
16831 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16832 コードや派生枝),ラベルが動的に変更されます.
16835 \begin_layout Description
16836 \begin_inset Flex Code
16839 \begin_layout Plain Layout
16846 \begin_inset CommandInset ref
16848 reference "subsec:段落様式の国際化"
16855 \begin_layout Description
16856 \begin_inset Flex Code
16859 \begin_layout Plain Layout
16866 \begin_inset Flex Code
16869 \begin_layout Plain Layout
16875 ] 対応する\SpecialChar LaTeX
16876 関連物の名称.環境名ないしはコマンド名.
16879 \begin_layout Description
16880 \begin_inset Flex Code
16883 \begin_layout Plain Layout
16890 \begin_inset Flex Code
16893 \begin_layout Plain Layout
16904 \begin_inset Flex Code
16907 \begin_layout Plain Layout
16914 \begin_inset Flex Code
16917 \begin_layout Plain Layout
16923 のような括弧対を含む.このパラメータは\SpecialChar LyX
16924 内部から変更することはできません(変更可能なパラメータには
16925 \begin_inset Flex Code
16928 \begin_layout Plain Layout
16934 を使用してください).これは,全ての\SpecialChar LaTeX
16936 \begin_inset Flex Code
16939 \begin_layout Plain Layout
16948 \begin_layout Description
16949 \begin_inset Flex Code
16952 \begin_layout Plain Layout
16959 \begin_inset Flex Code
16962 \begin_layout Plain Layout
16963 Command, Environment, None
16968 ] 様式がどのように\SpecialChar LaTeX
16973 \begin_layout Plain Layout
16974 これらのルールはSGMLクラスにも適用されるので,
16975 \begin_inset Flex Code
16978 \begin_layout Plain Layout
16984 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16993 \begin_layout Description
16994 \begin_inset Flex Code
16997 \begin_layout Plain Layout
17006 \begin_layout Description
17007 \begin_inset Flex Code
17010 \begin_layout Plain Layout
17017 \begin_inset Flex Code
17020 \begin_layout Plain Layout
17027 {\SpecialChar ldots
17036 \begin_layout Description
17037 \begin_inset Flex Code
17040 \begin_layout Plain Layout
17047 \begin_inset Flex Code
17050 \begin_layout Plain Layout
17057 }\SpecialChar ldots
17072 \begin_layout Standard
17073 上記最後のいくつかをまとめると,\SpecialChar LaTeX
17074 出力は,\SpecialChar LaTeX
17078 \begin_layout LyX-Code
17081 LatexName[LatexParam]{\SpecialChar ldots
17085 \begin_layout Standard
17089 \begin_layout LyX-Code
17092 begin{LatexName}[LatexParam] \SpecialChar ldots
17098 \begin_layout Standard
17103 \begin_layout Description
17104 \begin_inset Flex Code
17107 \begin_layout Plain Layout
17114 \begin_inset Flex Code
17117 \begin_layout Plain Layout
17123 ] 様式の内容の最初に置かれる文字列.出力中の改行は
17124 \begin_inset Flex Code
17127 \begin_layout Plain Layout
17136 \begin_layout Description
17137 \begin_inset Flex Code
17140 \begin_layout Plain Layout
17147 \begin_inset Flex Code
17150 \begin_layout Plain Layout
17157 \begin_inset Flex Code
17160 \begin_layout Plain Layout
17167 \begin_inset Flex Code
17170 \begin_layout Plain Layout
17177 \begin_inset Flex Code
17180 \begin_layout Plain Layout
17186 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
17187 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
17188 \begin_inset Flex Code
17191 \begin_layout Plain Layout
17198 \begin_inset Flex Code
17201 \begin_layout Plain Layout
17208 \begin_inset Flex Code
17211 \begin_layout Plain Layout
17222 \begin_inset Flex Code
17225 \begin_layout Plain Layout
17236 \begin_inset Flex Code
17239 \begin_layout Plain Layout
17250 \begin_inset Flex Code
17253 \begin_layout Plain Layout
17264 \begin_inset Flex Code
17267 \begin_layout Plain Layout
17277 設定すれば,真に設定することができます.
17280 \begin_layout Description
17281 \begin_inset Flex Code
17284 \begin_layout Plain Layout
17291 \begin_inset Flex Code
17294 \begin_layout Plain Layout
17303 \begin_inset space \thinspace{}
17307 \begin_inset Flex Code
17310 \begin_layout Plain Layout
17316 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
17317 \begin_inset Flex Code
17320 \begin_layout Plain Layout
17327 \begin_inset Flex Code
17330 \begin_layout Plain Layout
17337 \begin_inset Flex Code
17340 \begin_layout Plain Layout
17350 指定されれば,他の値に指定し直すことができます.既定値は真です.
17353 \begin_layout Description
17354 \begin_inset Flex Code
17357 \begin_layout Plain Layout
17364 \begin_inset Flex Code
17367 \begin_layout Plain Layout
17376 \begin_inset space \thinspace{}
17380 \begin_inset Flex Code
17383 \begin_layout Plain Layout
17390 \begin_inset Flex Code
17393 \begin_layout Plain Layout
17401 するか否か(註:当該コマンド自身をprotectするかどうかでは
17408 \begin_layout Description
17409 \begin_inset Flex Code
17412 \begin_layout Plain Layout
17419 \begin_inset Flex Code
17422 \begin_layout Plain Layout
17429 \begin_inset Flex Code
17432 \begin_layout Plain Layout
17441 \begin_layout Description
17442 \begin_inset Flex Code
17445 \begin_layout Plain Layout
17452 \begin_inset Flex Code
17455 \begin_layout Plain Layout
17462 \begin_inset Flex Code
17465 \begin_layout Plain Layout
17472 \begin_inset Flex Code
17475 \begin_layout Plain Layout
17482 \begin_inset Flex Code
17485 \begin_layout Plain Layout
17491 の改名を,後方互換性を維持しながら行うために用いられます.
17494 \begin_layout Description
17495 \begin_inset Flex Code
17498 \begin_layout Plain Layout
17505 \begin_inset Flex Code
17508 \begin_layout Plain Layout
17517 \begin_inset space \thinspace{}
17521 \begin_inset Flex Code
17524 \begin_layout Plain Layout
17531 \begin_inset CommandInset ref
17533 reference "subsec:段落様式"
17540 \begin_layout Description
17541 \begin_inset Flex Code
17544 \begin_layout Plain Layout
17553 \begin_inset Flex Code
17556 \begin_layout Plain Layout
17565 \begin_inset space \thinspace{}
17569 \begin_inset Flex Code
17572 \begin_layout Plain Layout
17579 \begin_inset CommandInset ref
17581 reference "subsec:段落様式"
17588 \begin_layout Description
17589 \begin_inset Flex Code
17592 \begin_layout Plain Layout
17599 \begin_inset CommandInset ref
17601 reference "subsec:段落様式"
17608 \begin_layout Description
17609 \begin_inset Flex Code
17612 \begin_layout Plain Layout
17619 \begin_inset Flex Code
17622 \begin_layout Plain Layout
17628 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
17631 \begin_layout Description
17632 \begin_inset Flex Code
17635 \begin_layout Plain Layout
17642 \begin_inset Flex Code
17645 \begin_layout Plain Layout
17652 \begin_inset CommandInset ref
17654 reference "subsec:段落様式"
17661 \begin_layout Description
17662 \begin_inset Flex Code
17665 \begin_layout Plain Layout
17672 \begin_inset Flex Code
17675 \begin_layout Plain Layout
17684 \begin_inset space \thinspace{}
17688 \begin_inset Flex Code
17691 \begin_layout Plain Layout
17698 \begin_inset Flex Code
17701 \begin_layout Plain Layout
17707 タグで定義された)この様式の\SpecialChar LaTeX
17709 \begin_inset Flex Code
17712 \begin_layout Plain Layout
17718 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
17721 \begin_layout Description
17722 \begin_inset Flex Code
17725 \begin_layout Plain Layout
17732 \begin_inset Flex Code
17735 \begin_layout Plain Layout
17742 \begin_inset space \thinspace{}
17746 \begin_inset Flex Code
17749 \begin_layout Plain Layout
17757 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
17758 \begin_inset Note Note
17761 \begin_layout Plain Layout
17762 This is outdated: The default changed from 1 to 0
17770 \begin_layout Description
17771 \begin_inset Flex Code
17774 \begin_layout Plain Layout
17781 \begin_inset Flex Code
17784 \begin_layout Plain Layout
17790 ] 様式の内容の最後に置かれる文字列.出力中の改行は
17791 \begin_inset Flex Code
17794 \begin_layout Plain Layout
17803 \begin_layout Description
17804 \begin_inset Flex Code
17807 \begin_layout Plain Layout
17814 \begin_inset Flex Code
17817 \begin_layout Plain Layout
17824 \begin_inset space \thinspace{}
17828 \begin_inset Flex Code
17831 \begin_layout Plain Layout
17839 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17842 \begin_layout Subsection
17844 \begin_inset CommandInset label
17853 \begin_layout Standard
17855 \begin_inset Flex MenuItem
17858 \begin_layout Plain Layout
17865 \begin_inset Flex MenuItem
17868 \begin_layout Plain Layout
17874 ・\SpecialChar ldots
17875 )を定義することが必要です.標準的なカウンタは
17876 \begin_inset Flex Code
17879 \begin_layout Plain Layout
17885 ファイルに含まれているので,作業中のレイアウトファイルに
17888 \begin_layout LyX-Code
17889 Input stdcounters.inc
17892 \begin_layout Standard
17893 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17896 \begin_layout LyX-Code
17900 \begin_layout Standard
17902 \begin_inset Flex Code
17905 \begin_layout Plain Layout
17911 」は,実際のカウンタ名で置き換えます.また,宣言は「
17912 \begin_inset Flex Code
17915 \begin_layout Plain Layout
17924 \begin_layout Standard
17925 以下のパラメータを使用することができます.
17928 \begin_layout Description
17929 \begin_inset Flex Code
17932 \begin_layout Plain Layout
17939 \begin_inset Flex Code
17942 \begin_layout Plain Layout
17948 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17951 \begin_layout Description
17952 \begin_inset Flex Code
17955 \begin_layout Plain Layout
17956 LabelString [文字列=""]
17961 定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17962 \begin_inset Flex Code
17965 \begin_layout Plain Layout
17966 LabelStringAppendix
17971 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17975 \begin_layout Itemize
17976 \begin_inset Flex Code
17979 \begin_layout Plain Layout
17988 \begin_inset Flex Code
17991 \begin_layout Plain Layout
17998 \begin_inset Flex Code
18001 \begin_layout Plain Layout
18008 \begin_inset Newline linebreak
18012 \begin_inset Flex Code
18015 \begin_layout Plain Layout
18016 LabelStringAppendix
18024 \begin_layout Itemize
18025 カウンタ値は,\SpecialChar LaTeX
18027 \begin_inset Flex Code
18030 \begin_layout Plain Layout
18046 を用いて表現することができます.ここで
18047 \begin_inset Flex Code
18050 \begin_layout Plain Layout
18059 \begin_inset Flex Code
18062 \begin_layout Plain Layout
18068 :1, 2, 3,\SpecialChar ldots
18070 \begin_inset Flex Code
18073 \begin_layout Plain Layout
18079 :a, b, c, \SpecialChar ldots
18081 \begin_inset Flex Code
18084 \begin_layout Plain Layout
18090 :A, B, C, \SpecialChar ldots
18092 \begin_inset Flex Code
18095 \begin_layout Plain Layout
18101 :i, ii, iii, \SpecialChar ldots
18103 \begin_inset Flex Code
18106 \begin_layout Plain Layout
18112 :I, II, III\SpecialChar ldots
18117 \begin_layout Standard
18118 \begin_inset Flex Code
18121 \begin_layout Plain Layout
18127 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
18128 \begin_inset Flex Code
18131 \begin_layout Plain Layout
18138 \begin_inset Flex Code
18141 \begin_layout Plain Layout
18148 \begin_inset Newline linebreak
18152 \begin_inset Flex Code
18155 \begin_layout Plain Layout
18166 \begin_inset Flex Code
18169 \begin_layout Plain Layout
18180 \begin_layout Description
18181 \begin_inset Flex Code
18184 \begin_layout Plain Layout
18185 LabelStringAppendix
18191 \begin_inset Flex Code
18194 \begin_layout Plain Layout
18201 \begin_inset Flex Code
18204 \begin_layout Plain Layout
18210 と同様ですが,付録で使用するためのものです.
18213 \begin_layout Description
18214 \begin_inset Flex Code
18217 \begin_layout Plain Layout
18224 \begin_inset Flex Code
18227 \begin_layout Plain Layout
18234 \begin_inset Quotes erd
18238 \begin_inset Quotes erd
18241 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
18242 \begin_inset space ~
18245 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
18249 \begin_layout Description
18250 \begin_inset Flex Code
18253 \begin_layout Plain Layout
18260 \begin_inset Flex Code
18263 \begin_layout Plain Layout
18270 \begin_inset Quotes erd
18274 \begin_inset Quotes erd
18277 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
18278 \begin_inset Flex Code
18281 \begin_layout Plain Layout
18288 \begin_inset Flex Code
18291 \begin_layout Plain Layout
18300 \begin_layout Subsection
18302 \begin_inset CommandInset label
18304 name "subsec:フォント指定"
18311 \begin_layout Standard
18312 フォント指定は,以下のような形を取ります.
18315 \begin_layout LyX-Code
18331 \begin_layout LyX-Code
18335 \begin_layout LyX-Code
18339 \begin_layout Standard
18340 以下のコマンドを使用することができます.
18343 \begin_layout Description
18344 \begin_inset Flex Code
18347 \begin_layout Plain Layout
18354 \begin_inset Flex Code
18357 \begin_layout Plain Layout
18366 \begin_inset Flex Code
18369 \begin_layout Plain Layout
18376 \begin_inset Flex Code
18379 \begin_layout Plain Layout
18386 \begin_inset Flex Code
18389 \begin_layout Plain Layout
18396 \begin_inset Flex Code
18399 \begin_layout Plain Layout
18406 \begin_inset Flex Code
18409 \begin_layout Plain Layout
18416 \begin_inset Flex Code
18419 \begin_layout Plain Layout
18426 \begin_inset Flex Code
18429 \begin_layout Plain Layout
18436 \begin_inset Flex Code
18439 \begin_layout Plain Layout
18446 \begin_inset Flex Code
18449 \begin_layout Plain Layout
18456 \begin_inset Flex Code
18459 \begin_layout Plain Layout
18466 \begin_inset Flex Code
18469 \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
18558 \begin_layout Description
18559 \begin_inset Flex Code
18562 \begin_layout Plain Layout
18571 \begin_inset Flex Code
18574 \begin_layout Plain Layout
18583 \begin_inset Flex Code
18586 \begin_layout Plain Layout
18593 \begin_inset Flex Code
18596 \begin_layout Plain Layout
18605 \begin_layout Description
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
18666 \begin_inset Flex Code
18669 \begin_layout Plain Layout
18676 \begin_inset Flex Code
18679 \begin_layout Plain Layout
18686 \begin_inset Flex Code
18689 \begin_layout Plain Layout
18696 \begin_inset Flex Code
18699 \begin_layout Plain Layout
18706 \begin_inset Flex Code
18709 \begin_layout Plain Layout
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
18745 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
18746 \begin_inset Newline newline
18750 \begin_inset Flex Code
18753 \begin_layout Plain Layout
18760 \begin_inset Flex Code
18763 \begin_layout Plain Layout
18769 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
18771 \begin_inset Flex Code
18774 \begin_layout Plain Layout
18780 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
18783 \begin_layout Description
18784 \begin_inset Flex Code
18787 \begin_layout Plain Layout
18796 \begin_inset Flex Code
18799 \begin_layout Plain Layout
18808 \begin_inset Flex Code
18811 \begin_layout Plain Layout
18820 \begin_layout Description
18821 \begin_inset Flex Code
18824 \begin_layout Plain Layout
18833 \begin_inset Flex Code
18836 \begin_layout Plain Layout
18845 \begin_inset Flex Code
18848 \begin_layout Plain Layout
18855 \begin_inset Flex Code
18858 \begin_layout Plain Layout
18865 \begin_inset Flex Code
18868 \begin_layout Plain Layout
18877 \begin_layout Description
18878 \begin_inset Flex Code
18881 \begin_layout Plain Layout
18888 \begin_inset Flex Code
18891 \begin_layout Plain Layout
18898 \begin_inset Flex Code
18901 \begin_layout Plain Layout
18908 \begin_inset Flex Code
18911 \begin_layout Plain Layout
18920 \begin_inset Flex Code
18923 \begin_layout Plain Layout
18930 \begin_inset Flex Code
18933 \begin_layout Plain Layout
18940 \begin_inset Flex Code
18943 \begin_layout Plain Layout
18950 \begin_inset Flex Code
18953 \begin_layout Plain Layout
18960 \begin_inset Flex Code
18963 \begin_layout Plain Layout
18972 \begin_layout Subsection
18973 \begin_inset CommandInset label
18975 name "subsec:引用エンジンの説明"
18982 \begin_layout Standard
18984 \begin_inset CommandInset ref
18986 reference "subsec:引用エンジンファイル"
18994 \begin_inset Flex Code
18997 \begin_layout Plain Layout
19003 ブロックは,特定の「引用エンジン」で提供される引用コマンドを定義します.\SpecialChar LyX
19004 の用語では,引用エンジンとは,番号や著者名,刊行年を使って,引用を整形する特定の方法のこ
19005 とを指します.\SpecialChar LyX
19006 は,3つのエンジンの型をサポートします.すなわち,
19009 \begin_layout Enumerate
19010 \begin_inset Flex Code
19013 \begin_layout Plain Layout
19019 : 既定のBib\SpecialChar TeX
19020 流の引用方法である,単純な番号による様式(例:「[1]」)
19023 \begin_layout Enumerate
19024 \begin_inset Flex Code
19027 \begin_layout Plain Layout
19033 : 著者名と刊行年を使ったHarvard様式の引用(例:「Smith and Miller (2017b)」)
19036 \begin_layout Enumerate
19037 \begin_inset Flex Code
19040 \begin_layout Plain Layout
19046 : 番号に隣接して著者名やタイトルを付けることのできる拡張された番号引用(例:「Smith and Miller [1]」)
19049 \begin_layout Standard
19050 \begin_inset Flex Code
19053 \begin_layout Plain Layout
19062 \begin_layout LyX-Code
19066 \begin_layout LyX-Code
19070 \begin_layout LyX-Code
19074 \begin_layout LyX-Code
19075 citeyearpar[][]=parencite*
19078 \begin_layout LyX-Code
19082 \begin_layout LyX-Code
19086 \begin_layout Standard
19087 \begin_inset Flex Code
19090 \begin_layout Plain Layout
19096 に続くタグがエンジンを表します.各行は,このエンジンによってサポートされる引用コマンドや引用コマンドパラダイムを定義します.行は,\SpecialChar LyX
19097 コマンドと\SpecialChar LaTeX
19099 われる引用コマンドのみを含むこともあれば,色々変えるために複雑なこともあります.完全な文法は
19102 \begin_layout LyX-Code
19103 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
19106 \begin_layout Standard
19110 \begin_layout Itemize
19111 \begin_inset Flex Code
19114 \begin_layout Plain Layout
19121 \begin_inset Flex Code
19124 \begin_layout Plain Layout
19134 \begin_layout Standard
19135 可搬性のために,異なる引用パッケージ中の同じ形をしたコマンドには,同じ名前をつけるようにしています(したがって,多くの名前がnatbibから派生しており,\SpecialChar LaTeX
19138 \begin_inset Flex Code
19141 \begin_layout Plain Layout
19151 \begin_layout Itemize
19152 \begin_inset Flex Code
19155 \begin_layout Plain Layout
19162 \begin_inset Flex Code
19165 \begin_layout Plain Layout
19171 にフォールバックするコマンドの(コンマで区切られた)リスト.これによって,引用パッケージとエンジンを切り替えるのが楽になります.
19172 \begin_inset Flex Code
19175 \begin_layout Plain Layout
19182 \begin_inset Flex Code
19185 \begin_layout Plain Layout
19194 \begin_layout Itemize
19195 \begin_inset Flex Code
19198 \begin_layout Plain Layout
19204 : 出力される実際の\SpecialChar LaTeX
19208 \begin_layout Standard
19209 \begin_inset Flex Code
19212 \begin_layout Plain Layout
19219 \begin_inset Flex Code
19222 \begin_layout Plain Layout
19229 \begin_inset Flex Code
19232 \begin_layout Plain Layout
19239 \begin_inset Flex Code
19242 \begin_layout Plain Layout
19248 が\SpecialChar LaTeX
19252 \begin_layout Standard
19256 \begin_layout Itemize
19257 大文字にするとコマンドも大文字化されたものになります(
19258 \begin_inset Flex Code
19261 \begin_layout Plain Layout
19270 \begin_inset Flex Code
19273 \begin_layout Plain Layout
19281 に).これらは通常,名前の前置詞を大文字化するのを確実にします(
19286 \begin_inset Formula $\Rightarrow$
19296 \begin_layout Itemize
19298 \begin_inset Flex Code
19301 \begin_layout Plain Layout
19307 は非必須引数の数を表します(0-2をとりえます).
19310 \begin_layout Itemize
19312 \begin_inset Flex Code
19315 \begin_layout Plain Layout
19322 \begin_inset Flex Code
19325 \begin_layout Plain Layout
19334 \begin_inset Flex Code
19337 \begin_layout Plain Layout
19349 \begin_layout Standard
19351 \begin_inset Flex Code
19354 \begin_layout Plain Layout
19360 の閾値を超えたために「et al.」に省略されるべき時にも全ての著者を出力することを意味します.
19363 \begin_layout Standard
19364 星印が,当該コマンドについては別の意味を持つ場合には,
19365 \begin_inset Flex Code
19368 \begin_layout Plain Layout
19369 <!_stardesc!_stardesctooltip>
19374 のように三角括弧で指定することができます.前置詞
19375 \begin_inset Flex Code
19378 \begin_layout Plain Layout
19384 で標識した,翻訳可能なキーワードを最大2つ与えることができます.最初のキーワードは,引用ダイアログ中の「Full aut&hor list」チェックボックスラベ
19385 ルを書き換える文字列を指し,二つ目のキーワードは,このチェックボックスに対する非必須のツールチップの文字列を指します.
19388 \begin_layout Standard
19389 これらの2つのマクロは,下記のように,前置詞から
19390 \begin_inset Flex Code
19393 \begin_layout Plain Layout
19400 \begin_inset Flex Code
19403 \begin_layout Plain Layout
19409 (次節参照)で定義されなくてはなりません.
19412 \begin_layout LyX-Code
19413 _stardesc Sta&rred command label
19416 \begin_layout LyX-Code
19417 _stardesctooltip Tooltip for the starred command checkbox.
19421 \begin_layout Itemize
19423 \begin_inset Flex Code
19426 \begin_layout Plain Layout
19432 は,このコマンドが「qualified citation lists」を取り扱うことを示します.これは,リスト中の個別の引用に対して,前置文字列と後置文字列を置
19437 に特有の複数文献引用機能です.詳細については,
19444 \begin_layout Subsection
19445 \begin_inset CommandInset label
19447 name "subsec:引用書式指定"
19454 \begin_layout Standard
19455 (引用ダイアログやツールチップなどの)\SpecialChar LyX
19456 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
19457 \begin_inset Flex Code
19460 \begin_layout Plain Layout
19466 ブロックが使用されています.このブロックは,以下のような形をしています.
19469 \begin_layout LyX-Code
19473 \begin_layout LyX-Code
19477 \begin_layout LyX-Code
19481 \begin_layout LyX-Code
19485 \begin_layout Standard
19489 \begin_layout LyX-Code
19493 \begin_layout LyX-Code
19497 \begin_layout LyX-Code
19501 \begin_layout LyX-Code
19505 \begin_layout Standard
19506 最初の例の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
19508 在しうる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
19509 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
19511 \begin_inset Flex Code
19514 \begin_layout Plain Layout
19520 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
19521 文書クラスにインクルードされています.
19524 \begin_layout Standard
19525 2つ目の例では,各行は,特定の引用コマンド(この例では
19526 \begin_inset Flex Code
19529 \begin_layout Plain Layout
19538 \begin_inset Flex Code
19541 \begin_layout Plain Layout
19549 )が,引用差込枠ラベルや引用ダイアログ,メニュー,XHTML出力でどのように表示されるべきかを定義しています.\SpecialChar LyX
19552 \begin_inset Flex Code
19555 \begin_layout Plain Layout
19563 文書\SpecialChar menuseparator
19564 設定\SpecialChar menuseparator
19565 書誌情報\SpecialChar ldots
19568 でサポートしている引用様式用に,そのような書式を定義しています(第
19569 \begin_inset CommandInset ref
19571 reference "subsec:引用エンジンファイル"
19581 \begin_layout Standard
19582 この定義は,Bib\SpecialChar TeX
19583 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
19584 \begin_inset Flex Code
19587 \begin_layout Plain Layout
19594 \begin_inset Flex Code
19597 \begin_layout Plain Layout
19603 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
19606 \begin_layout LyX-Code
19608 \begin_inset Quotes eld
19612 \begin_inset Quotes erd
19618 \begin_layout Standard
19619 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
19622 \begin_layout Standard
19623 もちろん,キーが存在するときのみ,そのキーを出力したい時があるはずです.このようなときには
19624 \begin_inset Flex Code
19627 \begin_layout Plain Layout
19629 \begin_inset space ~
19637 のように,条件付きの構成を使用することができます.これは,
19638 \begin_inset Flex Code
19641 \begin_layout Plain Layout
19648 \begin_inset space ~
19651 」とvolumeキーを出力するという意味です.また,
19652 \begin_inset Newline newline
19656 \begin_inset Flex Code
19659 \begin_layout Plain Layout
19660 {%author%[[%author%]][[%editor%, ed.]]}
19666 \begin_inset Newline newline
19669 のように,条件の中にelse節を含めることも可能です.ここでは,もし
19670 \begin_inset Flex Code
19673 \begin_layout Plain Layout
19679 キーが存在するならば出力され,そうでなければeditorキーと「,
19680 \begin_inset space ~
19683 ed.」が出力されます.ここでもキーは,
19684 \begin_inset Flex Code
19687 \begin_layout Plain Layout
19693 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
19694 \begin_inset Flex Code
19697 \begin_layout Plain Layout
19704 \begin_inset Flex Code
19707 \begin_layout Plain Layout
19713 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
19716 \begin_layout Standard
19717 これらの条件文に使うことができるものには,項目キーの他に,以下の特殊キーがあります.
19720 \begin_layout Itemize
19721 \begin_inset Flex Code
19724 \begin_layout Plain Layout
19725 {%dialog%[[真]][[偽]]}
19730 : ダイアログとメニューに対しては「真」の部分を処理し,他の文脈(作業領域や書き出し)には「偽」の部分を処理します
19733 \begin_layout Itemize
19734 \begin_inset Flex Code
19737 \begin_layout Plain Layout
19738 {%export%[[真]][[偽]]}
19743 : 書き出しとメニューに対しては「真」の部分を処理し,他の文脈(作業領域やダイアログ)には「偽」の部分を処理します
19746 \begin_layout Itemize
19747 \begin_inset Flex Code
19750 \begin_layout Plain Layout
19756 : 他の項目が続く場合には「真」の部分を処理します(複数キーを持つ引用など)
19759 \begin_layout Itemize
19760 \begin_inset Flex Code
19763 \begin_layout Plain Layout
19764 {%second%[[真]][[偽]]}
19769 : これが複数項目の2番目の場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19772 \begin_layout Itemize
19773 \begin_inset Flex Code
19776 \begin_layout Plain Layout
19777 {%ifstar%[[真]][[偽]]}
19783 \begin_inset Flex Code
19786 \begin_layout Plain Layout
19794 など)星印付き引用コマンドの場合には「真」の部分を処理し,星印付きでない場合には「偽」の部分を処理します
19797 \begin_layout Itemize
19798 \begin_inset Flex Code
19801 \begin_layout Plain Layout
19802 {%ifentrytype:<type>%[[真]][[偽]]}
19808 \begin_inset Flex Code
19811 \begin_layout Plain Layout
19817 に一致する場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:引用定義において
19818 \begin_inset Flex Code
19821 \begin_layout Plain Layout
19822 {%ifentrytype:book%[[これはbookです]][[これはbookではありません]]}
19830 \begin_layout Itemize
19831 \begin_inset Flex Code
19834 \begin_layout Plain Layout
19835 {%ifmultiple:<authortype>%[[真]][[偽]]}
19840 : 現行の項目が著者型(著者・編者など)が複数の著者を含む場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します(例:書誌情報定義において
19841 \begin_inset Flex Code
19844 \begin_layout Plain Layout
19845 {%ifmultiple:editor%[[eds.]][[ed.]]}
19853 \begin_layout Itemize
19854 \begin_inset Flex Code
19857 \begin_layout Plain Layout
19858 {%ifqualified%[[真]][[偽]]}
19863 : 現行の引用がqualified citation listである(複数文献引用に対する
19867 特有の形式)場合には「真」の部分を処理し,それ以外の場合には「偽」の部分を処理します
19870 \begin_layout Standard
19871 \begin_inset Flex Code
19874 \begin_layout Plain Layout
19880 は書誌情報ファイルに記録されている形のままの著者キーを出力すると述べました.これは「Miller, Peter and Smith, Mary
19881 and White, Jane」のような文字列に終わることがあり(Bib\SpecialChar TeX
19882 では著者を区切るのに「and」が用いられるため),望ましい結果ではありません.したがっ
19884 は,正しく整形された名前のリスト(これも翻訳の対象となります)を得るための方法を提供しています.以下のキーが提供されています.
19887 \begin_layout Enumerate
19888 書誌情報項目の主要著者・編者に適した,姓名付き名前リスト用.
19889 \begin_inset Flex Code
19892 \begin_layout Plain Layout
19898 部分は要請されているリスト型を表します(例:
19899 \begin_inset Flex Code
19902 \begin_layout Plain Layout
19912 \begin_layout Itemize
19913 \begin_inset Flex Code
19916 \begin_layout Plain Layout
19917 %abbrvnames:<nametype>%
19923 \begin_inset Flex Code
19926 \begin_layout Plain Layout
19932 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
19935 \begin_layout Itemize
19936 \begin_inset Flex Code
19939 \begin_layout Plain Layout
19940 %fullnames:<nametype>%
19945 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
19948 \begin_layout Itemize
19949 \begin_inset Flex Code
19952 \begin_layout Plain Layout
19953 %forceabbrvnames:<nametype>%
19959 \begin_inset Flex Code
19962 \begin_layout Plain Layout
19968 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
19972 \begin_layout Enumerate
19973 書誌情報項目中の姓名の順序が異なっている場合の,姓名付き名前リスト(例:「Miller, John: 何らかの文, in: Mary Smith,
19978 \begin_layout Itemize
19979 \begin_inset Flex Code
19982 \begin_layout Plain Layout
19983 %abbrvbynames:<nametype>%
19989 \begin_inset Flex Code
19992 \begin_layout Plain Layout
19998 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20001 \begin_layout Itemize
20002 \begin_inset Flex Code
20005 \begin_layout Plain Layout
20006 %fullbynames:<nametype>%
20011 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20014 \begin_layout Itemize
20015 \begin_inset Flex Code
20018 \begin_layout Plain Layout
20019 %forceabbrvbynames:<nametype>%
20025 \begin_inset Flex Code
20028 \begin_layout Plain Layout
20034 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20038 \begin_layout Enumerate
20039 著者-発行年引用ラベルで用いられるような,姓のみを含む姓リスト.これらは
20040 \begin_inset Flex Code
20043 \begin_layout Plain Layout
20049 部分を取りませんが,(著者-発行年ラベルで通例であるように)常に著者リストか,存在しない場合には編者リストを返します.
20053 \begin_layout Itemize
20054 \begin_inset Flex Code
20057 \begin_layout Plain Layout
20064 \begin_inset Flex Code
20067 \begin_layout Plain Layout
20073 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
20076 \begin_layout Itemize
20077 \begin_inset Flex Code
20080 \begin_layout Plain Layout
20086 : 完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
20089 \begin_layout Itemize
20090 \begin_inset Flex Code
20093 \begin_layout Plain Layout
20094 %forceabbrvciteauthor%
20100 \begin_inset Flex Code
20103 \begin_layout Plain Layout
20109 に関わらず,常に短縮される(「et al.」と共に供される)名前リストを提供します.
20113 \begin_layout Standard
20114 前二者の姓名の順序は,下記のマクロで変更することができます.
20117 \begin_layout Itemize
20118 \begin_inset Flex Code
20121 \begin_layout Plain Layout
20122 !firstnameform %surname%, %prename%
20130 \begin_layout Itemize
20131 \begin_inset Flex Code
20134 \begin_layout Plain Layout
20135 !othernameform %surname%, %prename%
20143 \begin_layout Itemize
20144 \begin_inset Flex Code
20147 \begin_layout Plain Layout
20148 !firstbynameform %prename% %surname%
20156 \begin_layout Itemize
20157 \begin_inset Flex Code
20160 \begin_layout Plain Layout
20161 !otherbynameform %prename% %surname%
20169 \begin_layout Standard
20170 これによって,名前を「Miller, Peter and Mary Smith: \SpecialChar ldots
20171 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
20176 \begin_layout Standard
20177 もう一つ,定義中で使用することのできる文法として,
20178 \begin_inset Flex Code
20181 \begin_layout Plain Layout
20187 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
20188 グを出力させたくはありませんから,HTMLタグは「
20189 \begin_inset Flex Code
20192 \begin_layout Plain Layout
20199 \begin_inset Flex Code
20202 \begin_layout Plain Layout
20208 」でくるんでやらなくてはならないのです.
20211 \begin_layout Standard
20212 \begin_inset Flex Code
20215 \begin_layout Plain Layout
20221 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
20224 \begin_layout LyX-Code
20226 \begin_inset Quotes eld
20230 \begin_inset Quotes erd
20236 \begin_layout Standard
20237 といった例が挙げられます.これは,短縮形ないしはマクロであり,
20238 \begin_inset Flex Code
20241 \begin_layout Plain Layout
20247 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
20249 \begin_inset Flex Code
20252 \begin_layout Plain Layout
20258 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
20261 \begin_layout LyX-Code
20265 \begin_layout Standard
20266 のようなことはしないでください.\SpecialChar LyX
20267 は,無限ループに陥るようなことはありませんが,諦めるまでに時間のかかる長いループに入るかもしれません.
20270 \begin_layout Standard
20274 \begin_layout LyX-Code
20278 \begin_layout Standard
20279 のようなものです.これは翻訳対象となるテキスト部分を定義し,これによって書誌情報や引用の対応する部分が翻訳されるようになります.
20280 \begin_inset Flex Code
20283 \begin_layout Plain Layout
20289 のように,これをキーとして扱って,定義の中に入れることもできます.
20291 Note that there are two different translation paths: All definitions starting
20293 \begin_inset Flex Code
20296 \begin_layout Plain Layout
20304 , such as in the example above, will be translated to the currently active
20305 buffer language (so the translation will match the generated document).
20306 All definitions starting with underscore only will be translated to the
20308 This is the proper translation for strings that only occur in the dialogs
20309 or on buttons, such as this one:
20312 \begin_layout LyX-Code
20315 _addtobib Add to bibliography only.
20318 \begin_layout Standard
20321 translatable strings
20324 \begin_inset Flex Code
20327 \begin_layout Plain Layout
20334 \begin_inset Flex Code
20337 \begin_layout Plain Layout
20343 ファイル中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
20346 \begin_layout Standard
20347 以下は,これらの機能を全て使った例です.
20348 \begin_inset VSpace defskip
20354 \begin_layout Standard
20358 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
20361 \begin_layout Standard
20362 \begin_inset VSpace defskip
20366 \begin_inset Flex Code
20369 \begin_layout Plain Layout
20375 キーが定義されているならば,著者とコンマを出力し,
20376 \begin_inset Flex Code
20379 \begin_layout Plain Layout
20386 \begin_inset Flex Code
20389 \begin_layout Plain Layout
20395 キーが定義されているならば,編集者名の後に
20396 \begin_inset Flex Code
20399 \begin_layout Plain Layout
20405 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
20406 \begin_inset Flex Code
20409 \begin_layout Plain Layout
20415 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
20418 \begin_layout Section
20419 \begin_inset CommandInset label
20421 name "sec:XHTML出力のタグ"
20428 \begin_layout Standard
20430 やDocBookと同様,\SpecialChar LyX
20431 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
20432 は適切な既定値を提供し,前述したように,他のレイアウト
20433 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
20435 \begin_inset Flex Code
20438 \begin_layout Plain Layout
20444 宣言で提供されている情報を利用しようと試みます.
20447 \begin_layout Standard
20448 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
20449 ,これが必要になる場合もあるので,\SpecialChar LyX
20450 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
20453 \begin_layout Standard
20454 様式宣言や差込枠宣言の外で使用することができるタグに,
20455 \begin_inset Flex Code
20458 \begin_layout Plain Layout
20465 \begin_inset Flex Code
20468 \begin_layout Plain Layout
20474 の2つがあることに注意してください.これらの詳細については,
20475 \begin_inset CommandInset ref
20477 reference "subsec:汎用テキストクラスパラメータ"
20484 \begin_layout Subsection
20485 \begin_inset CommandInset label
20487 name "subsec:段落様式-XHTML"
20494 \begin_layout Standard
20496 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
20497 \begin_inset Flex Code
20500 \begin_layout Plain Layout
20510 \begin_layout Standard
20511 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
20514 \begin_layout LyX-Code
20518 \begin_inset Quotes erd
20522 \begin_inset Quotes erd
20528 \begin_layout LyX-Code
20532 \begin_inset Quotes erd
20536 \begin_inset Quotes erd
20542 \begin_layout LyX-Code
20548 \begin_layout LyX-Code
20554 \begin_layout Standard
20555 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
20558 \begin_layout Standard
20559 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
20562 \begin_layout LyX-Code
20566 \begin_inset Quotes erd
20570 \begin_inset Quotes erd
20576 \begin_layout LyX-Code
20580 \begin_inset Quotes erd
20584 \begin_inset Quotes erd
20588 \begin_inset Quotes erd
20592 \begin_inset Quotes erd
20595 >環境ラベル</labeltag>最初の段落.
20598 \begin_layout LyX-Code
20604 \begin_layout LyX-Code
20607 <itemtag>二つめの段落.</itemtag>
20610 \begin_layout LyX-Code
20616 \begin_layout Standard
20617 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
20620 \begin_layout Standard
20621 リストに関しては,次のような形になります.
20624 \begin_layout LyX-Code
20628 \begin_inset Quotes erd
20632 \begin_inset Quotes erd
20638 \begin_layout LyX-Code
20642 \begin_inset Quotes erd
20646 \begin_inset Quotes erd
20650 \begin_inset Quotes erd
20654 \begin_inset Quotes erd
20657 >リストのラベル</labeltag>最初の項目.</itemtag>
20660 \begin_layout LyX-Code
20664 \begin_inset Quotes erd
20668 \begin_inset Quotes erd
20672 \begin_inset Quotes erd
20676 \begin_inset Quotes erd
20679 >リストのラベル</labeltag>二つめの項目.</itemtag>
20682 \begin_layout LyX-Code
20688 \begin_layout LyX-Code
20692 \begin_layout LyX-Code
20696 \begin_inset Quotes erd
20700 \begin_inset Quotes erd
20706 \begin_layout LyX-Code
20710 \begin_inset Quotes erd
20714 \begin_inset Quotes erd
20717 >リストのラベル</labeltag><itemtag attr=
20718 \begin_inset Quotes erd
20722 \begin_inset Quotes erd
20728 \begin_layout LyX-Code
20732 \begin_inset Quotes erd
20736 \begin_inset Quotes erd
20739 >リストのラベル</labeltag><itemtag attr=
20740 \begin_inset Quotes erd
20744 \begin_inset Quotes erd
20750 \begin_layout LyX-Code
20756 \begin_layout Standard
20758 \begin_inset Flex Code
20761 \begin_layout Plain Layout
20768 \begin_inset Flex Code
20771 \begin_layout Plain Layout
20777 の順序が違っていることに注意してください.どちらの順序になるかは,
20778 \begin_inset Flex Code
20781 \begin_layout Plain Layout
20788 \begin_inset Flex Code
20791 \begin_layout Plain Layout
20797 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
20800 \begin_layout Standard
20801 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
20803 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
20807 \begin_layout Description
20808 \begin_inset Flex Code
20811 \begin_layout Plain Layout
20818 \begin_inset Flex Code
20821 \begin_layout Plain Layout
20827 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
20828 \begin_inset Flex Code
20831 \begin_layout Plain Layout
20837 」のようなものです.既定においては,\SpecialChar LyX
20839 \begin_inset Flex Code
20842 \begin_layout Plain Layout
20849 \begin_inset Flex Code
20852 \begin_layout Plain Layout
20858 は,レイアウトの\SpecialChar LyX
20859 名であり,chapterのように小文字で記述します.
20862 \begin_layout Description
20863 \begin_inset Flex Code
20866 \begin_layout Plain Layout
20873 \begin_inset Flex Code
20876 \begin_layout Plain Layout
20887 \begin_inset Flex Code
20890 \begin_layout Plain Layout
20896 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
20897 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
20898 \begin_inset Flex Code
20901 \begin_layout Plain Layout
20907 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
20908 \begin_inset Flex Code
20911 \begin_layout Plain Layout
20920 \begin_layout Description
20921 \begin_inset Flex Code
20924 \begin_layout Plain Layout
20931 \begin_inset Flex Code
20934 \begin_layout Plain Layout
20940 ] 環境の段落に使用されるタグ.上記各例の
20941 \begin_inset Flex Code
20944 \begin_layout Plain Layout
20951 \begin_inset Flex Code
20954 \begin_layout Plain Layout
20963 \begin_layout Description
20964 \begin_inset Flex Code
20967 \begin_layout Plain Layout
20974 \begin_inset Flex Code
20977 \begin_layout Plain Layout
20984 \begin_inset Flex Code
20987 \begin_layout Plain Layout
20988 class=`レイアウト名_item'
20998 \begin_inset Flex Code
21001 \begin_layout Plain Layout
21010 \begin_layout Description
21011 \begin_inset Flex Code
21014 \begin_layout Plain Layout
21021 \begin_inset Flex Code
21024 \begin_layout Plain Layout
21030 ] 段落と項目ラベルに使用されるタグ.上記各例の
21031 \begin_inset Flex Code
21034 \begin_layout Plain Layout
21041 \begin_inset Flex Code
21044 \begin_layout Plain Layout
21051 \begin_inset Flex Code
21054 \begin_layout Plain Layout
21061 \begin_inset Flex Code
21064 \begin_layout Plain Layout
21065 Centered_Top_Environment
21071 \begin_inset Flex Code
21074 \begin_layout Plain Layout
21081 \begin_inset Flex Code
21084 \begin_layout Plain Layout
21093 \begin_layout Description
21094 \begin_inset Flex Code
21097 \begin_layout Plain Layout
21104 \begin_inset Flex Code
21107 \begin_layout Plain Layout
21114 \begin_inset Flex Code
21117 \begin_layout Plain Layout
21118 class=`レイアウト名_label'
21128 \begin_inset Flex Code
21131 \begin_layout Plain Layout
21140 \begin_layout Description
21141 \begin_inset Flex Code
21144 \begin_layout Plain Layout
21151 \begin_inset Flex Code
21154 \begin_layout Plain Layout
21164 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
21166 \begin_inset Flex Code
21169 \begin_layout Plain Layout
21170 `<dt>\SpecialChar ldots
21171 </dt><dd>\SpecialChar ldots
21177 という形を得るために使用されます.既定値は
21178 \begin_inset Flex Code
21181 \begin_layout Plain Layout
21187 で,labelタグはitemタグの中に出力されます.
21190 \begin_layout Description
21191 \begin_inset Flex Code
21194 \begin_layout Plain Layout
21201 \begin_inset Flex Code
21204 \begin_layout Plain Layout
21210 セクションに出力される情報.これは,たとえば,
21211 \begin_inset Flex Code
21214 \begin_layout Plain Layout
21221 \begin_inset Flex Code
21224 \begin_layout Plain Layout
21230 ブロックをインクルードするのに使用することができます.
21233 \begin_layout Description
21234 \begin_inset Flex Code
21237 \begin_layout Plain Layout
21243 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21244 \begin_inset Flex Code
21247 \begin_layout Plain Layout
21253 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21254 \begin_inset Flex Code
21257 \begin_layout Plain Layout
21266 \begin_layout Description
21267 \begin_inset Flex Code
21270 \begin_layout Plain Layout
21277 \begin_inset Flex Code
21280 \begin_layout Plain Layout
21286 ] 主幹ラベルに使用されるタグ.上記各例の
21287 \begin_inset Flex Code
21290 \begin_layout Plain Layout
21297 \begin_inset Flex Code
21300 \begin_layout Plain Layout
21309 \begin_layout Description
21310 \begin_inset Flex Code
21313 \begin_layout Plain Layout
21320 \begin_inset Flex Code
21323 \begin_layout Plain Layout
21334 \begin_inset Flex Code
21337 \begin_layout Plain Layout
21343 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
21344 \begin_inset Flex Code
21347 \begin_layout Plain Layout
21354 \begin_inset Flex Code
21357 \begin_layout Plain Layout
21366 \begin_layout Subsection
21370 \begin_layout Standard
21371 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
21375 \begin_layout Plain Layout
21376 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
21382 .ここでも,\SpecialChar LyX
21383 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
21386 \begin_layout Standard
21388 が差込枠用に出力するXHTMLは,以下の形を取ります.
21391 \begin_layout LyX-Code
21393 \begin_inset Quotes erd
21397 \begin_inset Quotes erd
21403 \begin_layout LyX-Code
21404 <labeltag>ラベル</labeltag>
21407 \begin_layout LyX-Code
21409 \begin_inset Quotes erd
21413 \begin_inset Quotes erd
21416 >差込枠の内容.</innertag>
21419 \begin_layout LyX-Code
21423 \begin_layout Standard
21425 \begin_inset Flex Code
21428 \begin_layout Plain Layout
21434 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
21435 labelタグは省略され,ラベルがあれば,現在のところ,つねに
21436 \begin_inset Flex Code
21439 \begin_layout Plain Layout
21445 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
21449 \begin_layout Description
21450 \begin_inset Flex Code
21453 \begin_layout Plain Layout
21460 \begin_inset Flex Code
21463 \begin_layout Plain Layout
21469 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21470 \begin_inset Flex Code
21473 \begin_layout Plain Layout
21474 class=`myinset' onclick=`\SpecialChar ldots
21480 」のようなものです.既定においては,\SpecialChar LyX
21482 \begin_inset Flex Code
21485 \begin_layout Plain Layout
21492 \begin_inset Flex Code
21495 \begin_layout Plain Layout
21501 は,差込枠の\SpecialChar LyX
21502 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
21505 \begin_layout Description
21506 \begin_inset Flex Code
21509 \begin_layout Plain Layout
21516 \begin_inset Flex Code
21519 \begin_layout Plain Layout
21530 \begin_inset Flex Code
21533 \begin_layout Plain Layout
21539 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
21540 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
21541 \begin_inset Flex Code
21544 \begin_layout Plain Layout
21550 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
21551 \begin_inset Flex Code
21554 \begin_layout Plain Layout
21563 \begin_layout Description
21564 \begin_inset Flex Code
21567 \begin_layout Plain Layout
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
21629 \begin_layout Description
21630 \begin_inset Flex Code
21633 \begin_layout Plain Layout
21640 \begin_inset Flex Code
21643 \begin_layout Plain Layout
21651 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
21654 \begin_layout Description
21655 \begin_inset Flex Code
21658 \begin_layout Plain Layout
21665 \begin_inset Flex Code
21668 \begin_layout Plain Layout
21674 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
21675 \begin_inset Flex Code
21678 \begin_layout Plain Layout
21686 など.これは非必須であり,既定値はありません.
21689 \begin_layout Description
21690 \begin_inset Flex Code
21693 \begin_layout Plain Layout
21700 \begin_inset Flex Code
21703 \begin_layout Plain Layout
21709 セクションに出力される情報.これは,たとえば,
21710 \begin_inset Flex Code
21713 \begin_layout Plain Layout
21720 \begin_inset Flex Code
21723 \begin_layout Plain Layout
21729 ブロックをインクルードするのに使用することができます.
21732 \begin_layout Description
21733 \begin_inset Flex Code
21736 \begin_layout Plain Layout
21742 この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21743 \begin_inset Flex Code
21746 \begin_layout Plain Layout
21752 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21755 \begin_layout Description
21756 \begin_inset Flex Code
21759 \begin_layout Plain Layout
21766 \begin_inset Flex Code
21769 \begin_layout Plain Layout
21775 ] 主幹ラベルに使用されるタグ.上記各例の
21776 \begin_inset Flex Code
21779 \begin_layout Plain Layout
21786 \begin_inset Flex Code
21789 \begin_layout Plain Layout
21796 \begin_inset Flex Code
21799 \begin_layout Plain Layout
21806 \begin_inset Flex Code
21809 \begin_layout Plain Layout
21816 \begin_inset Flex Code
21819 \begin_layout Plain Layout
21828 \begin_layout Subsection
21832 \begin_layout Standard
21833 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
21836 \begin_layout LyX-Code
21838 \begin_inset Quotes erd
21842 \begin_inset Quotes erd
21848 \begin_layout LyX-Code
21852 \begin_layout LyX-Code
21856 \begin_layout Standard
21857 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
21861 \begin_layout Description
21862 \begin_inset Flex Code
21865 \begin_layout Plain Layout
21872 \begin_inset Flex Code
21875 \begin_layout Plain Layout
21881 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
21882 \begin_inset Flex Code
21885 \begin_layout Plain Layout
21886 class=`myfloat' onclick=`\SpecialChar ldots
21892 」のようなものです.既定においては,\SpecialChar LyX
21894 \begin_inset Flex Code
21897 \begin_layout Plain Layout
21898 class=`float フロート-フロート型'
21904 \begin_inset Flex Code
21907 \begin_layout Plain Layout
21914 \begin_inset CommandInset ref
21916 reference "subsec:フロート"
21920 参照),この型のフロートの\SpecialChar LyX
21921 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
21924 \begin_layout Description
21925 \begin_inset Flex Code
21928 \begin_layout Plain Layout
21934 このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
21935 \begin_inset Flex Code
21938 \begin_layout Plain Layout
21944 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
21947 \begin_layout Description
21948 \begin_inset Flex Code
21951 \begin_layout Plain Layout
21958 \begin_inset Flex Code
21961 \begin_layout Plain Layout
21967 ] このフロートに使用されるタグ.上記各例の
21968 \begin_inset Flex Code
21971 \begin_layout Plain Layout
21978 \begin_inset Flex Code
21981 \begin_layout Plain Layout
21987 であり,ほとんどの場合変更する必要はありません.
21990 \begin_layout Subsection
21994 \begin_layout Standard
21996 \begin_inset Flex Code
21999 \begin_layout Plain Layout
22005 ブロックを使用して整形することができます.詳細については,
22006 \begin_inset CommandInset ref
22008 reference "subsec:引用書式指定"
22015 \begin_layout Subsection
22020 \begin_layout Standard
22022 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
22024 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
22027 \begin_layout Standard
22030 \begin_inset Flex Code
22033 \begin_layout Plain Layout
22040 \begin_inset Flex Code
22043 \begin_layout Plain Layout
22050 \begin_inset Flex Code
22053 \begin_layout Plain Layout
22060 \begin_inset Flex Code
22063 \begin_layout Plain Layout
22070 \begin_inset Flex Code
22073 \begin_layout Plain Layout
22079 を利用して,フォント情報についてのみCSSを自動生成します(
22080 \begin_inset CommandInset ref
22082 reference "subsec:フォント指定"
22086 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
22087 \begin_inset Flex Code
22090 \begin_layout Plain Layout
22097 \begin_inset Flex Code
22100 \begin_layout Plain Layout
22101 font-family: sans-serif
22106 」になります.\SpecialChar LyX
22107 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
22108 \begin_inset Flex URL
22111 \begin_layout Plain Layout
22119 \begin_inset Flex Code
22122 \begin_layout Plain Layout
22131 \begin_layout Chapter
22133 \begin_inset CommandInset label
22135 name "chap:外部素材を取り込む"
22142 \begin_layout Standard
22143 \begin_inset Box Shadowbox
22153 height_special "totalheight"
22158 backgroundcolor "none"
22161 \begin_layout Plain Layout
22162 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
22170 \begin_layout Standard
22172 外部のソースから素材を使用する方法は,取扱説明書『
22176 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
22179 \begin_layout Section
22183 \begin_layout Standard
22184 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
22185 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
22187 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
22188 \begin_inset Flex MenuItem
22191 \begin_layout Plain Layout
22192 挿入\SpecialChar menuseparator
22193 ファイル\SpecialChar menuseparator
22199 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
22200 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
22201 の後の版に取り込むことができるようにしてくださることを希望します.
22204 \begin_layout Standard
22205 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
22207 \begin_inset Flex Code
22210 \begin_layout Plain Layout
22216 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
22217 \begin_inset Flex Code
22220 \begin_layout Plain Layout
22226 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
22227 \begin_inset Flex Code
22230 \begin_layout Plain Layout
22236 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
22237 ファイルにそのままインクルードできるように,
22238 \begin_inset Flex Code
22241 \begin_layout Plain Layout
22247 を呼び出してPostScriptファイルを生成します.この場合には,
22248 \begin_inset Flex Code
22251 \begin_layout Plain Layout
22257 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
22260 \begin_layout Standard
22261 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
22262 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
22263 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
22266 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
22269 \begin_layout Standard
22271 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
22272 の場合には,\SpecialChar LyX
22273 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
22274 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
22275 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
22279 \begin_layout Section
22283 \begin_layout Standard
22285 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
22286 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
22287 \begin_inset CommandInset ref
22289 reference "sec:セキュリティに関する論点"
22293 のセキュリティに関する議論を読んでおいてください.
22296 \begin_layout Standard
22297 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
22300 \begin_layout Standard
22302 \begin_inset Flex Code
22305 \begin_layout Plain Layout
22306 LyXDir/lib/xtemplates/
22312 \begin_inset Flex Code
22315 \begin_layout Plain Layout
22321 ファイルに定義されています.各ひな型は,そのファイル完結で定義されています.自分専用のひな型を
22322 \begin_inset Flex Code
22325 \begin_layout Plain Layout
22326 UserDir/xtemplates/
22331 に置くこともできますし,既存のひな型をそのデイレク取りにコピーして修正を加えることもできます.
22334 \begin_layout Standard
22335 典型的なひな型は以下のようになります.
22338 \begin_layout LyX-Code
22342 \begin_layout LyX-Code
22343 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22346 \begin_layout LyX-Code
22350 \begin_layout LyX-Code
22354 \begin_layout LyX-Code
22358 \begin_layout LyX-Code
22362 \begin_layout LyX-Code
22366 \begin_layout LyX-Code
22367 AutomaticProduction true
22370 \begin_layout LyX-Code
22374 \begin_layout LyX-Code
22378 \begin_layout LyX-Code
22382 \begin_layout LyX-Code
22383 TransformCommand Rotate RotationLatexCommand
22386 \begin_layout LyX-Code
22387 TransformCommand Resize ResizeLatexCommand
22390 \begin_layout LyX-Code
22391 Product "$$RotateFront$$ResizeFront
22394 \begin_layout LyX-Code
22399 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22402 \begin_layout LyX-Code
22403 $$ResizeBack$$RotateBack"
22406 \begin_layout LyX-Code
22410 \begin_layout LyX-Code
22411 UpdateResult "$$AbsPath$$Basename.pstex_t"
22414 \begin_layout LyX-Code
22415 Requirement "graphicx"
22418 \begin_layout LyX-Code
22419 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22422 \begin_layout LyX-Code
22423 ReferencedFile latex "$$AbsPath$$Basename.eps"
22426 \begin_layout LyX-Code
22427 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22430 \begin_layout LyX-Code
22434 \begin_layout LyX-Code
22438 \begin_layout LyX-Code
22439 TransformCommand Rotate RotationLatexCommand
22442 \begin_layout LyX-Code
22443 TransformCommand Resize ResizeLatexCommand
22446 \begin_layout LyX-Code
22447 Product "$$RotateFront$$ResizeFront
22450 \begin_layout LyX-Code
22455 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22458 \begin_layout LyX-Code
22459 $$ResizeBack$$RotateBack"
22462 \begin_layout LyX-Code
22463 UpdateFormat pdftex
22466 \begin_layout LyX-Code
22467 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22470 \begin_layout LyX-Code
22471 Requirement "graphicx"
22474 \begin_layout LyX-Code
22475 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22478 \begin_layout LyX-Code
22479 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22482 \begin_layout LyX-Code
22486 \begin_layout LyX-Code
22490 \begin_layout LyX-Code
22491 Product "$$Contents(
22493 "$$AbsPath$$Basename.asc
22498 \begin_layout LyX-Code
22499 UpdateFormat asciixfig
22502 \begin_layout LyX-Code
22503 UpdateResult "$$AbsPath$$Basename.asc"
22506 \begin_layout LyX-Code
22510 \begin_layout LyX-Code
22514 \begin_layout LyX-Code
22515 Product "<graphic fileref=
22517 "$$AbsOrRelPathMaster$$Basename.eps
22522 \begin_layout LyX-Code
22526 \begin_layout LyX-Code
22530 \begin_layout LyX-Code
22531 UpdateResult "$$AbsPath$$Basename.eps"
22534 \begin_layout LyX-Code
22535 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22538 \begin_layout LyX-Code
22539 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22542 \begin_layout LyX-Code
22546 \begin_layout LyX-Code
22547 Product "[XFig: $$FName]"
22550 \begin_layout LyX-Code
22554 \begin_layout LyX-Code
22558 \begin_layout Standard
22560 \begin_inset Flex Code
22563 \begin_layout Plain Layout
22571 \begin_inset Flex Code
22574 \begin_layout Plain Layout
22580 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
22581 \begin_inset Flex Code
22584 \begin_layout Plain Layout
22592 \begin_inset Flex Code
22595 \begin_layout Plain Layout
22604 \begin_layout Subsection
22608 \begin_layout Description
22609 \begin_inset Flex Code
22612 \begin_layout Plain Layout
22613 AutomaticProduction
22614 \begin_inset space ~
22622 このひな型で扱うファイルを\SpecialChar LyX
22623 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
22626 \begin_layout Description
22627 \begin_inset Flex Code
22630 \begin_layout Plain Layout
22632 \begin_inset space ~
22640 望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
22641 \begin_inset Flex Code
22644 \begin_layout Plain Layout
22651 \begin_inset Flex Code
22654 \begin_layout Plain Layout
22661 \begin_inset Flex Code
22664 \begin_layout Plain Layout
22670 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
22673 \begin_layout Description
22674 \begin_inset Flex Code
22677 \begin_layout Plain Layout
22679 \begin_inset space ~
22687 この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
22690 \begin_layout Description
22691 \begin_inset Flex Code
22694 \begin_layout Plain Layout
22696 \begin_inset space ~
22700 \begin_inset space ~
22708 外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
22712 \begin_layout Description
22713 \begin_inset Flex Code
22716 \begin_layout Plain Layout
22718 \begin_inset space ~
22726 オリジナルファイルのファイル形式.これは,\SpecialChar LyX
22727 が知っている書式名でなくてはなりません(
22728 \begin_inset CommandInset ref
22730 reference "sec:ファイル形式"
22734 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
22735 \begin_inset Flex Code
22738 \begin_layout Plain Layout
22744 」を使用してください.この場合,\SpecialChar LyX
22745 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
22748 \begin_layout Description
22749 \begin_inset Flex Code
22752 \begin_layout Plain Layout
22754 \begin_inset space ~
22762 このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
22765 \begin_layout Description
22766 \begin_inset Flex Code
22769 \begin_layout Plain Layout
22771 \begin_inset space ~
22774 Rotate|Resize|Clip|Extra
22779 このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
22780 ログ中の対応するタブを使用可能にします.
22781 \begin_inset Flex Code
22784 \begin_layout Plain Layout
22791 \begin_inset Flex Code
22794 \begin_layout Plain Layout
22801 \begin_inset Flex Code
22804 \begin_layout Plain Layout
22811 \begin_inset Flex Code
22814 \begin_layout Plain Layout
22820 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
22823 \begin_layout Subsection
22824 \begin_inset Flex Code
22827 \begin_layout Plain Layout
22836 \begin_layout Description
22837 \begin_inset Flex Code
22840 \begin_layout Plain Layout
22842 \begin_inset space ~
22845 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
22850 この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
22851 \begin_inset Flex Code
22854 \begin_layout Plain Layout
22860 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
22864 \begin_layout Description
22865 \begin_inset Flex Code
22868 \begin_layout Plain Layout
22870 \begin_inset space ~
22874 \begin_inset space ~
22883 \begin_inset Flex Code
22886 \begin_layout Plain Layout
22893 \begin_inset Flex Code
22896 \begin_layout Plain Layout
22903 \begin_inset Flex Code
22906 \begin_layout Plain Layout
22912 自体にも代入マクロを使うことができます.
22913 \begin_inset Flex Code
22916 \begin_layout Plain Layout
22923 \begin_inset Flex Code
22926 \begin_layout Plain Layout
22933 \begin_inset Flex Code
22936 \begin_layout Plain Layout
22942 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
22945 \begin_layout Description
22946 \begin_inset Flex Code
22949 \begin_layout Plain Layout
22951 \begin_inset space ~
22959 書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
22963 \begin_layout Description
22964 \begin_inset Flex Code
22967 \begin_layout Plain Layout
22969 \begin_inset space ~
22977 このコマンドは,\SpecialChar LaTeX
22978 プリアンブルに入れるプリアンブル片を指定します.これは
22979 \begin_inset Flex Code
22982 \begin_layout Plain Layout
22990 \begin_inset Flex Code
22993 \begin_layout Plain Layout
22999 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
23002 \begin_layout Description
23003 \begin_inset Flex Code
23006 \begin_layout Plain Layout
23008 \begin_inset space ~
23012 \begin_inset space ~
23020 このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
23021 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
23024 \begin_layout Description
23025 \begin_inset Flex Code
23028 \begin_layout Plain Layout
23030 \begin_inset space ~
23038 必要とされる\SpecialChar LaTeX
23039 パッケージ名.パッケージは,\SpecialChar LaTeX
23041 \begin_inset Flex Code
23044 \begin_layout Plain Layout
23052 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
23055 \begin_layout Description
23056 \begin_inset Flex Code
23059 \begin_layout Plain Layout
23061 \begin_inset space ~
23065 \begin_inset space ~
23068 RotationLatexCommand
23073 このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
23074 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23077 \begin_layout Description
23078 \begin_inset Flex Code
23081 \begin_layout Plain Layout
23083 \begin_inset space ~
23087 \begin_inset space ~
23095 このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
23096 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23099 \begin_layout Description
23100 \begin_inset Flex Code
23103 \begin_layout Plain Layout
23105 \begin_inset space ~
23109 \begin_inset space ~
23112 RotationLatexOption
23117 このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23120 \begin_layout Description
23121 \begin_inset Flex Code
23124 \begin_layout Plain Layout
23126 \begin_inset space ~
23130 \begin_inset space ~
23138 このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23141 \begin_layout Description
23142 \begin_inset Flex Code
23145 \begin_layout Plain Layout
23147 \begin_inset space ~
23151 \begin_inset space ~
23159 このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
23162 \begin_layout Description
23163 \begin_inset Flex Code
23166 \begin_layout Plain Layout
23168 \begin_inset space ~
23172 \begin_inset space ~
23180 このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
23183 \begin_layout Description
23184 \begin_inset Flex Code
23187 \begin_layout Plain Layout
23189 \begin_inset space ~
23197 変換されたファイルのファイル形式.これは,\SpecialChar LyX
23198 が知っている書式名でなくてはなりません(
23199 \begin_inset Flex MenuItem
23202 \begin_layout Plain Layout
23203 ツール\SpecialChar menuseparator
23204 設定\SpecialChar menuseparator
23205 ファイル処理\SpecialChar menuseparator
23211 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
23212 \begin_inset Flex Code
23215 \begin_layout Plain Layout
23221 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
23224 \begin_layout Description
23225 \begin_inset Flex Code
23228 \begin_layout Plain Layout
23230 \begin_inset space ~
23238 変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
23241 \begin_layout Subsection
23245 \begin_layout Standard
23247 \begin_inset Flex Code
23250 \begin_layout Plain Layout
23258 \begin_inset Flex Code
23261 \begin_layout Plain Layout
23267 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
23268 \begin_inset Flex Code
23271 \begin_layout Plain Layout
23280 \begin_layout Section
23284 \begin_layout Standard
23285 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
23286 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
23289 \begin_layout Standard
23290 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
23293 \begin_layout Standard
23297 \begin_layout Description
23298 \begin_inset Flex Code
23301 \begin_layout Plain Layout
23302 $$AbsOrRelPathMaster
23308 親文書への絶対ファイルパスないしは相対ファイルパス
23311 \begin_layout Description
23312 \begin_inset Flex Code
23315 \begin_layout Plain Layout
23316 $$AbsOrRelPathParent
23322 文書への絶対ファイルパスないしは相対ファイルパス
23325 \begin_layout Description
23326 \begin_inset Flex Code
23329 \begin_layout Plain Layout
23338 \begin_layout Description
23339 \begin_inset Flex Code
23342 \begin_layout Plain Layout
23351 \begin_layout Description
23352 \begin_inset Flex Code
23355 \begin_layout Plain Layout
23357 \begin_inset Quotes eld
23361 \begin_inset Quotes erd
23370 \begin_inset Flex Code
23373 \begin_layout Plain Layout
23379 と云う名のファイルの中身を展開します.
23382 \begin_layout Description
23383 \begin_inset Flex Code
23386 \begin_layout Plain Layout
23395 \begin_layout Description
23396 \begin_inset Flex Code
23399 \begin_layout Plain Layout
23405 これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
23406 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
23407 出力形式に対してこのマクロを使用します.
23410 \begin_layout Description
23411 \begin_inset Flex Code
23414 \begin_layout Plain Layout
23420 外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
23421 文書への絶対パスでも良いですし,相対パスでも構いません.
23424 \begin_layout Description
23425 \begin_inset Flex Code
23428 \begin_layout Plain Layout
23435 \begin_inset Flex Code
23438 \begin_layout Plain Layout
23444 のパス部分(\SpecialChar LyX
23448 \begin_layout Description
23449 \begin_inset Flex Code
23452 \begin_layout Plain Layout
23462 \begin_layout Description
23463 \begin_inset Flex Code
23466 \begin_layout Plain Layout
23476 \begin_layout Description
23477 \begin_inset Flex Code
23480 \begin_layout Plain Layout
23486 このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
23487 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
23490 \begin_layout Description
23491 \begin_inset Flex Code
23494 \begin_layout Plain Layout
23500 元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
23503 \begin_layout Standard
23504 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を
23505 \begin_inset Flex Code
23508 \begin_layout Plain Layout
23509 $$AbsPath$$Basename$$Extension
23517 \begin_layout Standard
23518 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
23519 \begin_inset Flex Code
23522 \begin_layout Plain Layout
23529 \begin_inset Flex Code
23532 \begin_layout Plain Layout
23539 \begin_inset Flex Code
23542 \begin_layout Plain Layout
23548 コマンドは,これらに加えて以下の代入もサポートします.
23551 \begin_layout Description
23552 \begin_inset Flex Code
23555 \begin_layout Plain Layout
23564 \begin_layout Description
23565 \begin_inset Flex Code
23568 \begin_layout Plain Layout
23577 \begin_layout Description
23578 \begin_inset Flex Code
23581 \begin_layout Plain Layout
23590 \begin_layout Description
23591 \begin_inset Flex Code
23594 \begin_layout Plain Layout
23603 \begin_layout Standard
23604 \begin_inset Flex Code
23607 \begin_layout Plain Layout
23614 \begin_inset Flex Code
23617 \begin_layout Plain Layout
23624 \begin_inset Flex Code
23627 \begin_layout Plain Layout
23633 コマンドが有効にされていれば,以下の代入もサポートされます.
23636 \begin_layout Description
23637 \begin_inset Flex Code
23640 \begin_layout Plain Layout
23649 \begin_layout Description
23650 \begin_inset Flex Code
23653 \begin_layout Plain Layout
23662 \begin_layout Description
23663 \begin_inset Flex Code
23666 \begin_layout Plain Layout
23675 \begin_layout Description
23676 \begin_inset Flex Code
23679 \begin_layout Plain Layout
23688 \begin_layout Standard
23689 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
23692 \begin_layout Enumerate
23693 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
23694 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
23697 \begin_layout Enumerate
23699 は,相対ファイル名に関して,\SpecialChar LyX
23700 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
23701 にとって相対ファイル名とは,常にこのファイル名が書か
23702 れている文書に対して相対的なものになります.\SpecialChar LaTeX
23703 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
23704 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
23705 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
23706 を選びさえすれば,これは\SpecialChar LyX
23710 \begin_layout Standard
23711 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
23714 \begin_layout Itemize
23716 \begin_inset Flex Code
23719 \begin_layout Plain Layout
23728 \begin_layout Itemize
23729 代入された文字列が,\SpecialChar LaTeX
23731 \begin_inset Flex Code
23734 \begin_layout Plain Layout
23735 $$AbsOrRelPathMaster
23743 \begin_layout Itemize
23744 それ以外ならば,ユーザの選択を尊重するために
23745 \begin_inset Flex Code
23748 \begin_layout Plain Layout
23749 $$AbsOrRelPathParent
23757 \begin_layout Standard
23758 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
23759 \begin_inset Flex Code
23762 \begin_layout Plain Layout
23763 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23769 \begin_inset Flex Code
23772 \begin_layout Plain Layout
23778 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
23781 \begin_layout Section
23783 \begin_inset CommandInset label
23785 name "sec:セキュリティに関する論点"
23792 \begin_layout Standard
23793 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
23794 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
23795 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
23798 \begin_layout Standard
23799 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
23800 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
23802 \begin_inset Flex Code
23805 \begin_layout Plain Layout
23812 \begin_inset Flex Code
23815 \begin_layout Plain Layout
23821 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
23824 \begin_layout Standard
23825 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
23826 できません.これは,\SpecialChar LyX
23827 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
23828 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
23831 \begin_layout Standard
23832 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
23833 うになるため,一般的には,統御下に置いた状態で
23834 \begin_inset Flex Code
23837 \begin_layout Plain Layout
23843 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
23844 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
23848 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
23849 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
23850 には,安全でないひな型は決して入っていません
23854 \begin_layout Standard
23855 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
23856 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
23857 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
23858 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
23859 使用する前に,行うようにしてください.
23862 \begin_layout Chapter
23864 サポートされているレイアウト用\SpecialChar LyX
23866 \begin_inset CommandInset label
23875 \begin_layout Standard
23877 \begin_inset Tabular
23878 <lyxtabular version="3" rows="11" columns="8">
23879 <features tabularvalignment="middle">
23880 <column alignment="left" valignment="top">
23881 <column alignment="left" valignment="top">
23882 <column alignment="left" valignment="top">
23883 <column alignment="left" valignment="top">
23884 <column alignment="left" valignment="top">
23885 <column alignment="left" valignment="top">
23886 <column alignment="left" valignment="top">
23887 <column alignment="left" valignment="top">
23889 <cell alignment="left" valignment="top" usebox="none">
23892 \begin_layout Plain Layout
23898 <cell alignment="left" valignment="top" usebox="none">
23901 \begin_layout Plain Layout
23907 <cell alignment="left" valignment="top" usebox="none">
23910 \begin_layout Plain Layout
23916 <cell alignment="left" valignment="top" usebox="none">
23919 \begin_layout Plain Layout
23925 <cell alignment="center" valignment="top" usebox="none">
23928 \begin_layout Plain Layout
23934 <cell alignment="center" valignment="top" usebox="none">
23937 \begin_layout Plain Layout
23943 <cell alignment="center" valignment="top" usebox="none">
23946 \begin_layout Plain Layout
23952 <cell alignment="center" valignment="top" usebox="none">
23955 \begin_layout Plain Layout
23963 <cell alignment="left" valignment="top" usebox="none">
23966 \begin_layout Plain Layout
23972 <cell alignment="left" valignment="top" usebox="none">
23975 \begin_layout Plain Layout
23981 <cell alignment="left" valignment="top" usebox="none">
23984 \begin_layout Plain Layout
23990 <cell alignment="left" valignment="top" usebox="none">
23993 \begin_layout Plain Layout
23999 <cell alignment="center" valignment="top" usebox="none">
24002 \begin_layout Plain Layout
24008 <cell alignment="center" valignment="top" usebox="none">
24011 \begin_layout Plain Layout
24017 <cell alignment="center" valignment="top" usebox="none">
24020 \begin_layout Plain Layout
24026 <cell alignment="center" valignment="top" usebox="none">
24029 \begin_layout Plain Layout
24037 <cell alignment="left" valignment="top" usebox="none">
24040 \begin_layout Plain Layout
24046 <cell alignment="left" valignment="top" usebox="none">
24049 \begin_layout Plain Layout
24055 <cell alignment="left" valignment="top" usebox="none">
24058 \begin_layout Plain Layout
24064 <cell alignment="left" valignment="top" usebox="none">
24067 \begin_layout Plain Layout
24073 <cell alignment="center" valignment="top" usebox="none">
24076 \begin_layout Plain Layout
24082 <cell alignment="center" valignment="top" usebox="none">
24085 \begin_layout Plain Layout
24091 <cell alignment="center" valignment="top" usebox="none">
24094 \begin_layout Plain Layout
24100 <cell alignment="center" valignment="top" usebox="none">
24103 \begin_layout Plain Layout
24111 <cell alignment="left" valignment="top" usebox="none">
24114 \begin_layout Plain Layout
24120 <cell alignment="left" valignment="top" usebox="none">
24123 \begin_layout Plain Layout
24129 <cell alignment="left" valignment="top" usebox="none">
24132 \begin_layout Plain Layout
24138 <cell alignment="left" valignment="top" usebox="none">
24141 \begin_layout Plain Layout
24147 <cell alignment="center" valignment="top" usebox="none">
24150 \begin_layout Plain Layout
24156 <cell alignment="center" valignment="top" usebox="none">
24159 \begin_layout Plain Layout
24165 <cell alignment="center" valignment="top" usebox="none">
24168 \begin_layout Plain Layout
24174 <cell alignment="center" valignment="top" usebox="none">
24177 \begin_layout Plain Layout
24185 <cell alignment="left" valignment="top" usebox="none">
24188 \begin_layout Plain Layout
24194 <cell alignment="left" valignment="top" usebox="none">
24197 \begin_layout Plain Layout
24203 <cell alignment="left" valignment="top" usebox="none">
24206 \begin_layout Plain Layout
24212 <cell alignment="left" valignment="top" usebox="none">
24215 \begin_layout Plain Layout
24221 <cell alignment="center" valignment="top" usebox="none">
24224 \begin_layout Plain Layout
24230 <cell alignment="center" valignment="top" usebox="none">
24233 \begin_layout Plain Layout
24239 <cell alignment="center" valignment="top" usebox="none">
24242 \begin_layout Plain Layout
24248 <cell alignment="center" valignment="top" usebox="none">
24251 \begin_layout Plain Layout
24259 <cell alignment="left" valignment="top" usebox="none">
24262 \begin_layout Plain Layout
24268 <cell alignment="left" valignment="top" usebox="none">
24271 \begin_layout Plain Layout
24277 <cell alignment="left" valignment="top" usebox="none">
24280 \begin_layout Plain Layout
24286 <cell alignment="left" valignment="top" usebox="none">
24289 \begin_layout Plain Layout
24295 <cell alignment="center" valignment="top" usebox="none">
24298 \begin_layout Plain Layout
24304 <cell alignment="center" valignment="top" usebox="none">
24307 \begin_layout Plain Layout
24313 <cell alignment="center" valignment="top" usebox="none">
24316 \begin_layout Plain Layout
24322 <cell alignment="center" valignment="top" usebox="none">
24325 \begin_layout Plain Layout
24333 <cell alignment="left" valignment="top" usebox="none">
24336 \begin_layout Plain Layout
24342 <cell alignment="left" valignment="top" usebox="none">
24345 \begin_layout Plain Layout
24351 <cell alignment="left" valignment="top" usebox="none">
24354 \begin_layout Plain Layout
24360 <cell alignment="left" valignment="top" usebox="none">
24363 \begin_layout Plain Layout
24369 <cell alignment="center" valignment="top" usebox="none">
24372 \begin_layout Plain Layout
24378 <cell alignment="center" valignment="top" usebox="none">
24381 \begin_layout Plain Layout
24387 <cell alignment="center" valignment="top" usebox="none">
24390 \begin_layout Plain Layout
24396 <cell alignment="center" valignment="top" usebox="none">
24399 \begin_layout Plain Layout
24407 <cell alignment="left" valignment="top" usebox="none">
24410 \begin_layout Plain Layout
24416 <cell alignment="left" valignment="top" usebox="none">
24419 \begin_layout Plain Layout
24425 <cell alignment="left" valignment="top" usebox="none">
24428 \begin_layout Plain Layout
24434 <cell alignment="left" valignment="top" usebox="none">
24437 \begin_layout Plain Layout
24443 <cell alignment="center" valignment="top" usebox="none">
24446 \begin_layout Plain Layout
24452 <cell alignment="center" valignment="top" usebox="none">
24455 \begin_layout Plain Layout
24461 <cell alignment="center" valignment="top" usebox="none">
24464 \begin_layout Plain Layout
24470 <cell alignment="center" valignment="top" usebox="none">
24473 \begin_layout Plain Layout
24481 <cell alignment="left" valignment="top" usebox="none">
24484 \begin_layout Plain Layout
24490 <cell alignment="left" valignment="top" usebox="none">
24493 \begin_layout Plain Layout
24499 <cell alignment="left" valignment="top" usebox="none">
24502 \begin_layout Plain Layout
24508 <cell alignment="left" valignment="top" usebox="none">
24511 \begin_layout Plain Layout
24517 <cell alignment="center" valignment="top" usebox="none">
24520 \begin_layout Plain Layout
24526 <cell alignment="center" valignment="top" usebox="none">
24529 \begin_layout Plain Layout
24535 <cell alignment="center" valignment="top" usebox="none">
24538 \begin_layout Plain Layout
24544 <cell alignment="center" valignment="top" usebox="none">
24547 \begin_layout Plain Layout
24555 <cell alignment="left" valignment="top" usebox="none">
24558 \begin_layout Plain Layout
24564 <cell alignment="left" valignment="top" usebox="none">
24567 \begin_layout Plain Layout
24573 <cell alignment="left" valignment="top" usebox="none">
24576 \begin_layout Plain Layout
24582 <cell alignment="left" valignment="top" usebox="none">
24585 \begin_layout Plain Layout
24591 <cell alignment="center" valignment="top" usebox="none">
24594 \begin_layout Plain Layout
24600 <cell alignment="center" valignment="top" usebox="none">
24603 \begin_layout Plain Layout
24609 <cell alignment="center" valignment="top" usebox="none">
24612 \begin_layout Plain Layout
24618 <cell alignment="center" valignment="top" usebox="none">
24621 \begin_layout Plain Layout
24629 <cell alignment="center" valignment="top" usebox="none">
24632 \begin_layout Plain Layout
24638 <cell alignment="center" valignment="top" usebox="none">
24641 \begin_layout Plain Layout
24647 <cell alignment="center" valignment="top" usebox="none">
24650 \begin_layout Plain Layout
24656 <cell alignment="center" valignment="top" usebox="none">
24659 \begin_layout Plain Layout
24665 <cell alignment="center" valignment="top" usebox="none">
24668 \begin_layout Plain Layout
24674 <cell alignment="center" valignment="top" usebox="none">
24677 \begin_layout Plain Layout
24683 <cell alignment="center" valignment="top" usebox="none">
24686 \begin_layout Plain Layout
24692 <cell alignment="center" valignment="top" usebox="none">
24695 \begin_layout Plain Layout
24709 \begin_layout Chapter
24711 \begin_inset CommandInset label
24720 \begin_layout Standard
24721 ここに列挙されている色は標準色であり,\SpecialChar LyX
24725 \begin_layout Section
24731 \begin_layout Standard
24734 The following are no real colors, but rather act on color definitions:
24737 \begin_layout Description
24741 \begin_layout Description
24745 \begin_layout Description
24750 特定の色ではありません – 透明か既定色です
24753 \begin_layout Section
24759 \begin_layout Standard
24762 These are fixed colors that cannot me customized:
24765 \begin_layout Description
24769 \begin_layout Description
24773 \begin_layout Description
24777 \begin_layout Description
24781 \begin_layout Description
24785 \begin_layout Description
24789 \begin_layout Description
24793 \begin_layout Description
24797 \begin_layout Description
24801 \begin_layout Description
24805 \begin_layout Description
24809 \begin_layout Description
24813 \begin_layout Description
24817 \begin_layout Description
24821 \begin_layout Description
24825 \begin_layout Description
24829 \begin_layout Description
24833 \begin_layout Description
24837 \begin_layout Description
24841 \begin_layout Section
24847 \begin_layout Standard
24850 These are the colors allocated to specific elements in
24853 \begin_inset Flex MenuItem
24856 \begin_layout Plain Layout
24857 ツール\SpecialChar menuseparator
24866 \begin_layout Description
24870 \begin_layout Description
24874 \begin_layout Description
24878 \begin_layout Description
24882 \begin_layout Description
24886 \begin_layout Description
24887 branchlabel 派生枝ラベル色
24890 \begin_layout Description
24894 \begin_layout Description
24898 \begin_layout Description
24899 buttonhoverbg フォーカスを得ているボタンの背景色
24902 \begin_layout Description
24906 \begin_layout Description
24907 changedtextauthor1 変更された文章:第1著者の色
24910 \begin_layout Description
24911 changedtextauthor2 変更された文章:第2著者の色
24914 \begin_layout Description
24915 changedtextauthor3 変更された文章:第3著者の色
24918 \begin_layout Description
24919 changedtextauthor4 変更された文章:第4著者の色
24922 \begin_layout Description
24923 changedtextauthor5 変更された文章:第5著者の色
24926 \begin_layout Description
24927 collapsibletext 畳み込み可能枠の文字色
24930 \begin_layout Description
24931 collapsibleframe 畳み込み可能枠の縁色
24934 \begin_layout Description
24935 command コマンド差込枠の文字色
24938 \begin_layout Description
24939 commandbg コマンド差込枠の背景色
24942 \begin_layout Description
24943 commandframe コマンド差込枠の縁色
24946 \begin_layout Description
24950 \begin_layout Description
24954 \begin_layout Description
24958 \begin_layout Description
24959 deletedtext 削除された文章の色
24962 \begin_layout Description
24963 deletedtextmodifier 削除された文章の修飾子の色
24966 \begin_layout Description
24967 depthbar 余白部の階層表示線の色
24970 \begin_layout Description
24974 \begin_layout Description
24975 error \SpecialChar LaTeX
24979 \begin_layout Description
24983 \begin_layout Description
24989 \begin_layout Description
24990 graphicsbg 画像差込枠の背景色
24993 \begin_layout Description
24994 greyedoutbg 淡色表示差込枠の背景色
24997 \begin_layout Description
24998 greyedoutlabel 淡色表示差込枠のラベル色
25001 \begin_layout Description
25002 greyedouttext 淡色表示差込枠の文字色
25005 \begin_layout Description
25006 indexlabel 索引差込枠のラベル色
25009 \begin_layout Description
25010 inlinecompletion 行内補完色
25013 \begin_layout Description
25017 \begin_layout Description
25021 \begin_layout Description
25022 language 外国語の単語を標識するための色
25025 \begin_layout Description
25026 latex \SpecialChar LaTeX
25030 \begin_layout Description
25031 listingsbg プログラムリスト差込枠の背景色
25034 \begin_layout Description
25035 marginlabel 傍註のラベル色
25038 \begin_layout Description
25042 \begin_layout Description
25046 \begin_layout Description
25047 mathcorners フォーカスを得ていない数式差込枠の縁色
25050 \begin_layout Description
25051 mathframe フォーカスを得ている数式差込枠の縁色
25054 \begin_layout Description
25058 \begin_layout Description
25059 mathmacrobg 数式マクロ差込枠の背景色
25062 \begin_layout Description
25063 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
25066 \begin_layout Description
25067 mathmacroframe 数式マクロ差込枠の縁色
25070 \begin_layout Description
25071 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
25074 \begin_layout Description
25075 mathmacrolabel 数式マクロ差込枠のラベル色
25078 \begin_layout Description
25079 mathmacronewarg 数式マクロ新パラメーターのひな型色
25082 \begin_layout Description
25083 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
25086 \begin_layout Description
25090 \begin_layout Description
25091 nonunique_inlinecompletion 行内補完の一意でない部分の色
25094 \begin_layout Description
25098 \begin_layout Description
25102 \begin_layout Description
25106 \begin_layout Description
25107 paragraphmarker 段落末を標識するための段落標の色
25110 \begin_layout Description
25111 phantomtext 埋め草差込枠の文字色
25114 \begin_layout Description
25115 preview プレビューに用いられる色
25118 \begin_layout Description
25119 previewframe プレビュー縁色
25122 \begin_layout Description
25123 regexpframe 正規表現枠の色
25126 \begin_layout Description
25129 Color that indicates when a row can be scrolled
25132 \begin_layout Description
25133 selection 文章選択部の背景色
25136 \begin_layout Description
25137 selectiontext 文章選択部の前景色
25140 \begin_layout Description
25141 shadedbg 影付きボックスの背景色
25144 \begin_layout Description
25148 \begin_layout Description
25152 \begin_layout Description
25153 tabularonoffline 罫線色
25156 \begin_layout Description
25157 urllabel URL差込枠のラベル色
25160 \begin_layout Description