]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Doc files: re-add some origin paths
[features.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin /systemlyxdir/doc/ja/
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 % the pages of the TOC is numbered roman
18 % and a pdf-bookmark for the TOC is added
19 \let\myTOC\tableofcontents
20 \renewcommand\tableofcontents{%
21   \frontmatter
22   \pdfbookmark[1]{\contentsname}{}
23   \myTOC
24   \mainmatter }
25
26 % Added only for Japanese translation
27 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
28 \usepackage[T1]{fontenc}
29 \end_preamble
30 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
31 \use_default_options false
32 \begin_modules
33 logicalmkup
34 \end_modules
35 \maintain_unincluded_children false
36 \begin_local_layout
37 Format 57
38 InsetLayout Flex:MenuItem
39 LyxType               charstyle
40 LabelString           menu
41 LatexType             command
42 LatexName             menuitem
43 Font
44 Family              Sans
45 EndFont
46 Preamble
47 \newcommand*{\menuitem}[1]{{\sffamily #1}}
48 EndPreamble
49 ResetsFont true
50 End
51 # In case we need to do with sans...
52 #InsetLayout CharStyle:Code
53 #Font
54 #Family              Sans
55 #EndFont
56 #Preamble
57 #\renewcommand{\code}[1]{{\sffamily #1}}
58 #EndPreamble
59 #End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 ResetsFont true
85 End
86 \end_local_layout
87 \language japanese
88 \language_package default
89 \inputencoding auto
90 \fontencoding global
91 \font_roman "default" "default"
92 \font_sans "default" "default"
93 \font_typewriter "default" "default"
94 \font_math "auto" "auto"
95 \font_default_family default
96 \use_non_tex_fonts false
97 \font_sc false
98 \font_osf false
99 \font_sf_scale 100 100
100 \font_tt_scale 100 100
101 \graphics default
102 \default_output_format default
103 \output_sync 0
104 \bibtex_command default
105 \index_command default
106 \paperfontsize 12
107 \spacing single
108 \use_hyperref true
109 \pdf_title "LyX Configuration Manual"
110 \pdf_author "LyX Team"
111 \pdf_subject "LyX-Documentation Customization"
112 \pdf_keywords "LyX, documentation, customization"
113 \pdf_bookmarks false
114 \pdf_bookmarksnumbered true
115 \pdf_bookmarksopen true
116 \pdf_bookmarksopenlevel 1
117 \pdf_breaklinks false
118 \pdf_pdfborder false
119 \pdf_colorlinks true
120 \pdf_backref false
121 \pdf_pdfusetitle false
122 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
123 \papersize default
124 \use_geometry false
125 \use_package amsmath 0
126 \use_package amssymb 0
127 \use_package cancel 0
128 \use_package esint 0
129 \use_package mathdots 0
130 \use_package mathtools 0
131 \use_package mhchem 0
132 \use_package stackrel 0
133 \use_package stmaryrd 0
134 \use_package undertilde 0
135 \cite_engine basic
136 \cite_engine_type default
137 \biblio_style plain
138 \use_bibtopic false
139 \use_indices false
140 \paperorientation portrait
141 \suppress_date false
142 \justification false
143 \use_refstyle 0
144 \branch OutDated
145 \selected 0
146 \filename_suffix 0
147 \color #f5fae7
148 \end_branch
149 \index 索引
150 \shortcut idx
151 \color #008000
152 \end_index
153 \secnumdepth 3
154 \tocdepth 3
155 \paragraph_separation indent
156 \paragraph_indentation default
157 \quotes_language english
158 \papercolumns 1
159 \papersides 2
160 \paperpagestyle headings
161 \tracking_changes false
162 \html_math_output 0
163 \html_css_as_file 0
164 \output_changes false
165 \html_be_strict true
166 \end_header
167
168 \begin_body
169
170 \begin_layout Title
171 \SpecialChar LyX
172 の高度設定
173 \begin_inset Newline newline
174 \end_inset
175
176 熟練ユーザのための各機能
177 \end_layout
178
179 \begin_layout Author
180 \SpecialChar LyX
181 開発チーム
182 \begin_inset Foot
183 status collapsed
184
185 \begin_layout Plain Layout
186 \noindent
187 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
188 文書化メーリングリスト
189 \begin_inset CommandInset href
190 LatexCommand href
191 target "lyx-docs@lists.lyx.org"
192 type "mailto:"
193
194 \end_inset
195
196 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
197 ast.net>をccにして送ってください。
198 \end_layout
199
200 \end_inset
201
202
203 \begin_inset Newline newline
204 \end_inset
205
206
207 \begin_inset Newline newline
208 \end_inset
209
210 第2.2.x版 
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
216
217 \end_inset
218
219
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 本文書を修正する際には、変更追跡機能を使用してください。これによって、
225 \end_layout
226
227 \begin_layout Plain Layout
228 \SpecialChar LyX
229 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
230 \end_layout
231
232 \end_inset
233
234
235 \end_layout
236
237 \begin_layout Chapter
238 はじめに
239 \end_layout
240
241 \begin_layout Standard
242 この取扱説明書は、\SpecialChar LyX
243 に備わっている高度設定機能を取り扱います。ここでは、
244 \begin_inset Flex Ruby
245 status collapsed
246
247 \begin_layout Plain Layout
248 捷径
249 \begin_inset Argument post:1
250 status collapsed
251
252 \begin_layout Plain Layout
253 ショートカット
254 \end_layout
255
256 \end_inset
257
258
259 \end_layout
260
261 \end_inset
262
263 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
264 サーバ経由での\SpecialChar LyX
265 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
266 クラスや\SpecialChar LyX
267 レイアウトの導入などの題材について論じます。おそらくは変更
268 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
269 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
270 \end_layout
271
272 \begin_layout Standard
273 \begin_inset Branch OutDated
274 status collapsed
275
276 \begin_layout Standard
277 Information from previous versions of this document that now seems to be
278  outdated is contained in the OutDated branch of this document.
279  By default, this information will not appear in the \SpecialChar LaTeX
280  output.
281 \end_layout
282
283 \end_inset
284
285
286 \end_layout
287
288 \begin_layout Chapter
289 \SpecialChar LyX
290 設定ファイル
291 \end_layout
292
293 \begin_layout Standard
294 本章の目的は、\SpecialChar LyX
295 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
296 \begin_inset Flex MenuItem
297 status collapsed
298
299 \begin_layout Plain Layout
300 ヘルプ\SpecialChar menuseparator
301 LyXについて
302 \end_layout
303
304 \end_inset
305
306 を使って、\SpecialChar LyX
307 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
308 がシステム全体の設定ファイルを置いておくところです。一
309 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
310 \begin_inset Flex Code
311 status collapsed
312
313 \begin_layout Plain Layout
314 LyXDir
315 \end_layout
316
317 \end_inset
318
319 と呼び、後者を
320 \begin_inset Flex MenuItem
321 status collapsed
322
323 \begin_layout Plain Layout
324 UserDir
325 \end_layout
326
327 \end_inset
328
329 と呼ぶことにします。
330 \end_layout
331
332 \begin_layout Section
333 \begin_inset Flex Code
334 status collapsed
335
336 \begin_layout Plain Layout
337 LyXDir
338 \end_layout
339
340 \end_inset
341
342 にはなにがあるの?
343 \end_layout
344
345 \begin_layout Standard
346 \begin_inset Flex Code
347 status collapsed
348
349 \begin_layout Plain Layout
350 LyXDir
351 \end_layout
352
353 \end_inset
354
355 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
356 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
357 内の
358 \begin_inset Flex MenuItem
359 status collapsed
360
361 \begin_layout Plain Layout
362 ツール\SpecialChar menuseparator
363 設定
364 \end_layout
365
366 \end_inset
367
368 ダイアログから変更することができます。\SpecialChar LyX
369 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
370 の多くの内部動作は、
371 \begin_inset Flex Code
372 status collapsed
373
374 \begin_layout Plain Layout
375 LyXDir
376 \end_layout
377
378 \end_inset
379
380 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
381 \end_layout
382
383 \begin_layout Subsection
384 自動的に生成されるファイル
385 \end_layout
386
387 \begin_layout Standard
388 \begin_inset Flex MenuItem
389 status collapsed
390
391 \begin_layout Plain Layout
392 UserDir
393 \end_layout
394
395 \end_inset
396
397 にある各ファイルは、\SpecialChar LyX
398 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
399 うので、一般的には修正しないことが望まれます。
400 \end_layout
401
402 \begin_layout Labeling
403 \labelwidthstring 00.00.0000
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 lyxrc.defaults
409 \end_layout
410
411 \end_inset
412
413  このファイルには、様々な既定コマンドが置かれています。
414 \end_layout
415
416 \begin_layout Labeling
417 \labelwidthstring 00.00.0000
418 \begin_inset Flex Code
419 status collapsed
420
421 \begin_layout Plain Layout
422 packages.lst
423 \end_layout
424
425 \end_inset
426
427  このファイルには、\SpecialChar LyX
428 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
429 プログラム自体には使用されていませんが、抽出された情報その他は、
430 \begin_inset Flex MenuItem
431 status collapsed
432
433 \begin_layout Plain Layout
434 ヘルプ\SpecialChar menuseparator
435 LaT
436 \begin_inset ERT
437 status collapsed
438
439 \begin_layout Plain Layout
440
441 {}
442 \end_layout
443
444 \end_inset
445
446 eXの設定
447 \end_layout
448
449 \end_inset
450
451 で見ることができます。
452 \end_layout
453
454 \begin_layout Labeling
455 \labelwidthstring 00.00.0000
456 \begin_inset Flex Code
457 status collapsed
458
459 \begin_layout Plain Layout
460 textclass.lst
461 \end_layout
462
463 \end_inset
464
465  ユーザの
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 Plain L
471 \end_layout
472
473 \end_inset
474
475 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
476 文書クラスおよびその説明の一覧です。
477 \end_layout
478
479 \begin_layout Labeling
480 \labelwidthstring 00.00.0000
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 lyxmodules.lst
486 \end_layout
487
488 \end_inset
489
490  ユーザの
491 \begin_inset Flex Code
492 status collapsed
493
494 \begin_layout Plain Layout
495 layout/
496 \end_layout
497
498 \end_inset
499
500 ディレクトリで検出されたレイアウトモジュールの一覧です。
501 \end_layout
502
503 \begin_layout Labeling
504 \labelwidthstring 00.00.0000
505 \begin_inset Flex Code
506 status collapsed
507
508 \begin_layout Plain Layout
509 *files.lst
510 \end_layout
511
512 \end_inset
513
514  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
515 関連ファイルの一覧です。
516 \end_layout
517
518 \begin_layout Labeling
519 \labelwidthstring 00.00.0000
520 \begin_inset Flex Code
521 status collapsed
522
523 \begin_layout Plain Layout
524 doc/LaT
525 \begin_inset ERT
526 status collapsed
527
528 \begin_layout Plain Layout
529
530 {}
531 \end_layout
532
533 \end_inset
534
535 eXConfig.lyx
536 \end_layout
537
538 \end_inset
539
540  このファイルは、自動設定中に
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 LaT
546 \begin_inset ERT
547 status collapsed
548
549 \begin_layout Plain Layout
550
551 {}
552 \end_layout
553
554 \end_inset
555
556 eXConfig.lyx.in
557 \end_layout
558
559 \end_inset
560
561 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
562 の設定に関する情報が納められています。
563 \end_layout
564
565 \begin_layout Subsection
566 ディレクトリ
567 \end_layout
568
569 \begin_layout Standard
570 以下の各ディレクトリは、
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 LyXDir
576 \end_layout
577
578 \end_inset
579
580
581 \begin_inset Flex Code
582 status collapsed
583
584 \begin_layout Plain Layout
585 UserDir
586 \end_layout
587
588 \end_inset
589
590 に重複して存在します。特定のファイルが両方の場所にある場合には、
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 UserDir
596 \end_layout
597
598 \end_inset
599
600 の方にあるものが使用されます。
601 \end_layout
602
603 \begin_layout Labeling
604 \labelwidthstring 00.00.0000
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 bind/
610 \end_layout
611
612 \end_inset
613
614  このディレクトリには、\SpecialChar LyX
615 で使用されるキー割当を定義している、拡張子が
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620 .bind
621 \end_layout
622
623 \end_inset
624
625 のファイルが置かれています。
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 $LANG_xxx.bind
631 \end_layout
632
633 \end_inset
634
635 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
636 \end_layout
637
638 \begin_layout Labeling
639 \labelwidthstring 00.00.0000
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 clipart/
645 \end_layout
646
647 \end_inset
648
649  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
650 \end_layout
651
652 \begin_layout Labeling
653 \labelwidthstring 00.00.0000
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 doc/
659 \end_layout
660
661 \end_inset
662
663  このディレクトリには、\SpecialChar LyX
664 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 LaTeXConfig.lyx
670 \end_layout
671
672 \end_inset
673
674 ファイルは特に注目に値します。各国語版のヘルプ文書は、
675 \begin_inset Flex Code
676 status collapsed
677
678 \begin_layout Plain Layout
679 doc/xx
680 \end_layout
681
682 \end_inset
683
684 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
685 \begin_inset CommandInset ref
686 LatexCommand ref
687 reference "cha:LyXの各国語対応"
688
689 \end_inset
690
691 をご覧ください。
692 \end_layout
693
694 \begin_layout Labeling
695 \labelwidthstring 00.00.0000
696 \begin_inset Flex Code
697 status collapsed
698
699 \begin_layout Plain Layout
700 examples/
701 \end_layout
702
703 \end_inset
704
705  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
706 \begin_inset Flex MenuItem
707 status collapsed
708
709 \begin_layout Plain Layout
710 用例
711 \end_layout
712
713 \end_inset
714
715 ボタンを押すと、このディレクトリが表示されます。
716 \end_layout
717
718 \begin_layout Labeling
719 \labelwidthstring 00.00.0000
720 \begin_inset Flex Code
721 status collapsed
722
723 \begin_layout Plain Layout
724 images/
725 \end_layout
726
727 \end_inset
728
729  このディレクトリには、
730 \begin_inset Flex MenuItem
731 status collapsed
732
733 \begin_layout Plain Layout
734 文書
735 \end_layout
736
737 \end_inset
738
739 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
740 を起動したときに現れるバナーも納められています。
741 \end_layout
742
743 \begin_layout Labeling
744 \labelwidthstring 00.00.0000
745 \begin_inset Flex Code
746 status collapsed
747
748 \begin_layout Plain Layout
749 kbd/
750 \end_layout
751
752 \end_inset
753
754  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
755 \begin_inset CommandInset ref
756 LatexCommand ref
757 reference "sec:国際キー配列"
758
759 \end_inset
760
761 をご覧ください。
762 \end_layout
763
764 \begin_layout Labeling
765 \labelwidthstring 00.00.0000
766 \begin_inset Flex Code
767 status collapsed
768
769 \begin_layout Plain Layout
770 layouts/
771 \end_layout
772
773 \end_inset
774
775  このディレクトリには、
776 \begin_inset CommandInset ref
777 LatexCommand ref
778 reference "cha:新規文書を導入"
779
780 \end_inset
781
782 に述べられているテキストクラスおよびモジュールのファイルが納められています。
783 \end_layout
784
785 \begin_layout Labeling
786 \labelwidthstring 00.00.0000
787 \begin_inset Flex Code
788 status collapsed
789
790 \begin_layout Plain Layout
791 lyx2lyx
792 \end_layout
793
794 \end_inset
795
796  このディレクトリには、\SpecialChar LyX
797 の各バージョン間の変換に使用される
798 \begin_inset Flex Code
799 status collapsed
800
801 \begin_layout Plain Layout
802 lyx2lyx
803 \end_layout
804
805 \end_inset
806
807  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
808 \end_layout
809
810 \begin_layout Labeling
811 \labelwidthstring 00.00.0000
812 \begin_inset Flex Code
813 status collapsed
814
815 \begin_layout Plain Layout
816 scripts/
817 \end_layout
818
819 \end_inset
820
821  このディレクトリには、
822 \begin_inset Flex MenuItem
823 status collapsed
824
825 \begin_layout Plain Layout
826 外用ひな型
827 \end_layout
828
829 \end_inset
830
831 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
832 自身が使用するスクリプトもいくつか収められています。
833 \end_layout
834
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 templates/
842 \end_layout
843
844 \end_inset
845
846  このディレクトリには、
847 \begin_inset CommandInset ref
848 LatexCommand ref
849 reference "sec:ひな型を作成する"
850
851 \end_inset
852
853 で述べられている標準の\SpecialChar LyX
854 ひな型ファイルが納められています。
855 \end_layout
856
857 \begin_layout Labeling
858 \labelwidthstring 00.00.0000
859 \begin_inset Flex Code
860 status collapsed
861
862 \begin_layout Plain Layout
863 ui/
864 \end_layout
865
866 \end_inset
867
868  このディレクトリには、\SpecialChar LyX
869 の操作画面を定義する拡張子
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874 .ui
875 \end_layout
876
877 \end_inset
878
879 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
880 \end_layout
881
882 \begin_layout Subsection
883 変更を加えない方がよいファイル
884 \end_layout
885
886 \begin_layout Standard
887 これらのファイルは\SpecialChar LyX
888 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
889 \end_layout
890
891 \begin_layout Labeling
892 \labelwidthstring 00.00.0000
893 \begin_inset Flex Code
894 status collapsed
895
896 \begin_layout Plain Layout
897 CREDITS
898 \end_layout
899
900 \end_inset
901
902  このファイルは、\SpecialChar LyX
903 開発陣の名簿です。この内容は、メニュー項目
904 \begin_inset Flex MenuItem
905 status collapsed
906
907 \begin_layout Plain Layout
908 ヘルプ\SpecialChar menuseparator
909 LyXについて
910 \end_layout
911
912 \end_inset
913
914 で表示されます。
915 \end_layout
916
917 \begin_layout Labeling
918 \labelwidthstring 00.00.0000
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 chkconfig.ltx
924 \end_layout
925
926 \end_inset
927
928  これは、自動設定プロセスによって使用される\SpecialChar LaTeX
929 スクリプトです。直接実行しないでください。
930 \end_layout
931
932 \begin_layout Labeling
933 \labelwidthstring 00.00.0000
934 \begin_inset Flex Code
935 status collapsed
936
937 \begin_layout Plain Layout
938 configure.py
939 \end_layout
940
941 \end_inset
942
943  これは、\SpecialChar LyX
944 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
945 \end_layout
946
947 \begin_layout Subsection
948 ひとこと必要なファイル群
949 \end_layout
950
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
954 status collapsed
955
956 \begin_layout Plain Layout
957 encodings
958 \end_layout
959
960 \end_inset
961
962  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
963 \end_layout
964
965 \begin_layout Labeling
966 \labelwidthstring 00.00.0000
967 \begin_inset Flex Code
968 status collapsed
969
970 \begin_layout Plain Layout
971 external_templates
972 \end_layout
973
974 \end_inset
975
976  このファイルには、新しく導入された
977 \begin_inset Flex MenuItem
978 status collapsed
979
980 \begin_layout Plain Layout
981 外用ひな型
982 \end_layout
983
984 \end_inset
985
986 機能で使用できるひな型が載っています。
987 \begin_inset CommandInset ref
988 LatexCommand ref
989 reference "chap:外部素材を取り込む"
990
991 \end_inset
992
993 を参照のこと。
994 \end_layout
995
996 \begin_layout Labeling
997 \labelwidthstring 00.00.0000
998 \begin_inset Flex Code
999 status collapsed
1000
1001 \begin_layout Plain Layout
1002 languages
1003 \end_layout
1004
1005 \end_inset
1006
1007  このファイルには、現在\SpecialChar LyX
1008 がサポートしている言語の全一覧が載っています。
1009 \end_layout
1010
1011 \begin_layout Labeling
1012 \labelwidthstring 00.00.0000
1013 \begin_inset Flex Code
1014 status collapsed
1015
1016 \begin_layout Plain Layout
1017 latexfonts
1018 \end_layout
1019
1020 \end_inset
1021
1022  サポートされているフォントに関する情報が掲載されています。
1023 \end_layout
1024
1025 \begin_layout Labeling
1026 \labelwidthstring 00.00.0000
1027 \begin_inset Flex Code
1028 status collapsed
1029
1030 \begin_layout Plain Layout
1031 layouttranslations
1032 \end_layout
1033
1034 \end_inset
1035
1036  このファイルは、国際化された段落様式の翻訳が収録されています(
1037 \begin_inset CommandInset ref
1038 LatexCommand ref
1039 reference "subsec:段落様式の国際化"
1040
1041 \end_inset
1042
1043 参照)。
1044 \end_layout
1045
1046 \begin_layout Labeling
1047 \labelwidthstring 00.00.0000
1048 \begin_inset Flex Code
1049 status collapsed
1050
1051 \begin_layout Plain Layout
1052 unicodesymbols
1053 \end_layout
1054
1055 \end_inset
1056
1057  このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1058 が\SpecialChar LaTeX
1059 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1060 \end_layout
1061
1062 \begin_layout Section
1063 ユーザのローカル設定ディレクトリ
1064 \end_layout
1065
1066 \begin_layout Standard
1067 \SpecialChar LyX
1068 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1069 の設定を変更したいと思うかもしれません。
1070 \begin_inset Flex Code
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074 UserDir
1075 \end_layout
1076
1077 \end_inset
1078
1079 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1080 \begin_inset Flex MenuItem
1081 status collapsed
1082
1083 \begin_layout Plain Layout
1084 ヘルプ\SpecialChar menuseparator
1085 LyXについて
1086 \end_layout
1087
1088 \end_inset
1089
1090 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1091 \begin_inset Flex Code
1092 status collapsed
1093
1094 \begin_layout Plain Layout
1095 LyXDir
1096 \end_layout
1097
1098 \end_inset
1099
1100 のミラーとして使用されており、これは
1101 \begin_inset Flex Code
1102 status collapsed
1103
1104 \begin_layout Plain Layout
1105 UserDir
1106 \end_layout
1107
1108 \end_inset
1109
1110 内のすべてのファイルが、
1111 \begin_inset Flex Code
1112 status collapsed
1113
1114 \begin_layout Plain Layout
1115 LyXDir
1116 \end_layout
1117
1118 \end_inset
1119
1120 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1121 \end_layout
1122
1123 \begin_layout Standard
1124 わかりやすくするために、いくつか例を挙げましょう。
1125 \end_layout
1126
1127 \begin_layout Itemize
1128 \begin_inset Flex MenuItem
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 ツール\SpecialChar menuseparator
1133 設定
1134 \end_layout
1135
1136 \end_inset
1137
1138 ダイアログで設定されるユーザ設定は、
1139 \begin_inset Flex Code
1140 status collapsed
1141
1142 \begin_layout Plain Layout
1143 UserDir
1144 \end_layout
1145
1146 \end_inset
1147
1148 中の
1149 \begin_inset Flex Code
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153 preferences
1154 \end_layout
1155
1156 \end_inset
1157
1158 ファイルに保存されます。
1159 \end_layout
1160
1161 \begin_layout Itemize
1162 \begin_inset Flex MenuItem
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 ツール\SpecialChar menuseparator
1167 環境構成
1168 \end_layout
1169
1170 \end_inset
1171
1172 を使用して環境構成を行うと、\SpecialChar LyX
1173
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178 configure.py
1179 \end_layout
1180
1181 \end_inset
1182
1183 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1184 \begin_inset Flex Code
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 UserDir/layouts
1189 \end_layout
1190
1191 \end_inset
1192
1193 にご自身で追加したテキストファイルは、
1194 \begin_inset Flex MenuItem
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 文書\SpecialChar menuseparator
1199 設定
1200 \end_layout
1201
1202 \end_inset
1203
1204 ダイアログのクラス一覧に表示されるようになることを意味します。
1205 \end_layout
1206
1207 \begin_layout Itemize
1208 たとえば、\SpecialChar LyX
1209 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1210 れらのファイルを
1211 \begin_inset Flex Code
1212 status collapsed
1213
1214 \begin_layout Plain Layout
1215 UserDir/doc/
1216 \end_layout
1217
1218 \end_inset
1219
1220 ディレクトリにコピーすれば、
1221 \begin_inset Flex MenuItem
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 ヘルプ
1226 \end_layout
1227
1228 \end_inset
1229
1230 メニュー項目はこれらを開くようになります!
1231 \end_layout
1232
1233 \begin_layout Section
1234 \SpecialChar LyX
1235 を複数の設定を使って実行するには
1236 \end_layout
1237
1238 \begin_layout Standard
1239 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1240 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1241 どのディレクトリを使用するか指定するのです。
1242 \end_layout
1243
1244 \begin_layout Standard
1245 \SpecialChar LyX
1246 をコマンドラインスイッチ
1247 \begin_inset Flex Code
1248 status collapsed
1249
1250 \begin_layout Plain Layout
1251 -userdir
1252 \end_layout
1253
1254 \end_inset
1255
1256 P
1257 \emph on
1258 <ディレクトリ名>
1259 \emph default
1260 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1261
1262 \begin_inset Flex Code
1263 status collapsed
1264
1265 \begin_layout Plain Layout
1266 -userdir
1267 \end_layout
1268
1269 \end_inset
1270
1271 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1272 は、初めて\SpecialChar LyX
1273 を実行したときに既定ディレクトリを訊い
1274 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1275 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1276 \begin_inset Flex Code
1277 status collapsed
1278
1279 \begin_layout Plain Layout
1280 LYX_USERDIR_20x
1281 \end_layout
1282
1283 \end_inset
1284
1285 を特定の値に設定しても、全く同じ効果があります。
1286 \end_layout
1287
1288 \begin_layout Standard
1289 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1290 \begin_inset Flex Code
1291 status collapsed
1292
1293 \begin_layout Plain Layout
1294 NewUserDir/layouts
1295 \end_layout
1296
1297 \end_inset
1298
1299 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1300 クを使用してください。\SpecialChar LyX
1301 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1302 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1303 \begin_inset Flex Code
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307 doc/
1308 \end_layout
1309
1310 \end_inset
1311
1312 サブディレクトリには、設定スクリプト(
1313 \begin_inset Flex MenuItem
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 ツール\SpecialChar menuseparator
1318 環境構成
1319 \end_layout
1320
1321 \end_inset
1322
1323 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1324 \end_layout
1325
1326 \begin_layout Chapter
1327 設定ダイアログ
1328 \end_layout
1329
1330 \begin_layout Standard
1331 設定ダイアログのオプションのすべては、
1332 \emph on
1333 ユーザーの手引き
1334 \emph default
1335 の付録
1336 \emph on
1337 設定ダイアログ
1338 \emph default
1339 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1340 \end_layout
1341
1342 \begin_layout Section
1343 ファイル形式
1344 \begin_inset CommandInset label
1345 LatexCommand label
1346 name "sec:ファイル形式"
1347
1348 \end_inset
1349
1350
1351 \end_layout
1352
1353 \begin_layout Standard
1354 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1355 \begin_inset Flex MenuItem
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359 ツール\SpecialChar menuseparator
1360 設定
1361 \end_layout
1362
1363 \end_inset
1364
1365 ダイアログを開いてください。
1366 \begin_inset Flex MenuItem
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370 ファイル処理\SpecialChar menuseparator
1371 ファイル形式
1372 \end_layout
1373
1374 \end_inset
1375
1376 の中で
1377 \begin_inset Flex MenuItem
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381 新規\SpecialChar ldots
1382
1383 \end_layout
1384
1385 \end_inset
1386
1387 ボタンを押して、登録する新しい形式を定義してください。
1388 \begin_inset Flex MenuItem
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 形式
1393 \end_layout
1394
1395 \end_inset
1396
1397 フィールドは、GUI中で形式を認識するために用いられる名称です。
1398 \begin_inset Flex MenuItem
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402 短縮名
1403 \end_layout
1404
1405 \end_inset
1406
1407 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1408 \begin_inset Flex MenuItem
1409 status collapsed
1410
1411 \begin_layout Plain Layout
1412 捷径
1413 \end_layout
1414
1415 \end_inset
1416
1417 フィールドは、メニュー中で
1418 \begin_inset Flex Ruby
1419 status collapsed
1420
1421 \begin_layout Plain Layout
1422 捷径
1423 \begin_inset Argument post:1
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427 ショートカット
1428 \end_layout
1429
1430 \end_inset
1431
1432
1433 \end_layout
1434
1435 \end_inset
1436
1437 を提供するのに使用されます(たとえば、
1438 \begin_inset Flex MenuItem
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 Ctrl+D
1443 \end_layout
1444
1445 \end_inset
1446
1447 を押すと
1448 \begin_inset Flex MenuItem
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 表示\SpecialChar menuseparator
1453 DVI
1454 \end_layout
1455
1456 \end_inset
1457
1458 となります)。
1459 \end_layout
1460
1461 \begin_layout Standard
1462 形式には、
1463 \begin_inset Flex MenuItem
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467 閲覧プログラム
1468 \end_layout
1469
1470 \end_inset
1471
1472
1473 \begin_inset Flex MenuItem
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 編集プログラム
1478 \end_layout
1479
1480 \end_inset
1481
1482 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1483 \begin_inset Flex MenuItem
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 Ghostview
1488 \end_layout
1489
1490 \end_inset
1491
1492 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1493 いることができます。この閲覧プログラムは、\SpecialChar LyX
1494 中で画像を閲覧したり
1495 \begin_inset Flex MenuItem
1496 status collapsed
1497
1498 \begin_layout Plain Layout
1499 表示
1500 \end_layout
1501
1502 \end_inset
1503
1504 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1505 \begin_inset Flex MenuItem
1506 status collapsed
1507
1508 \begin_layout Plain Layout
1509 外部で編集
1510 \end_layout
1511
1512 \end_inset
1513
1514 を選択したときに起動します。
1515 \end_layout
1516
1517 \begin_layout Standard
1518 ファイル形式の
1519 \begin_inset Flex MenuItem
1520 status collapsed
1521
1522 \begin_layout Plain Layout
1523 MIME
1524 \end_layout
1525
1526 \end_inset
1527
1528 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1529 ます。重要なファイル形式のうちには、
1530 \begin_inset CommandInset href
1531 LatexCommand href
1532 name "IANA"
1533 target "http://www.iana.org/assignments/media-types/"
1534
1535 \end_inset
1536
1537 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1538 は、
1539 \begin_inset CommandInset href
1540 LatexCommand href
1541 name "freedesktop.org"
1542 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1543
1544 \end_inset
1545
1546 で指定されているMIME型拡張表を使用しています。
1547 \end_layout
1548
1549 \begin_layout Standard
1550 \begin_inset Flex MenuItem
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 文書形式
1555 \end_layout
1556
1557 \end_inset
1558
1559 オプションは、\SpecialChar LyX
1560 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1561 \begin_inset CommandInset ref
1562 LatexCommand ref
1563 reference "sec:変換子"
1564
1565 \end_inset
1566
1567 節を参照)、この形式が
1568 \begin_inset Flex MenuItem
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 ファイル\SpecialChar menuseparator
1573 書き出し
1574 \end_layout
1575
1576 \end_inset
1577
1578
1579 \begin_inset Flex MenuItem
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 表示
1584 \end_layout
1585
1586 \end_inset
1587
1588 footlabel Label color for footnotす。
1589 \begin_inset Flex Code
1590 status collapsed
1591
1592 \begin_layout Plain Layout
1593 png
1594 \end_layout
1595
1596 \end_inset
1597
1598 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1599 \begin_inset Flex Code
1600 status collapsed
1601
1602 \begin_layout Plain Layout
1603 pdf
1604 \end_layout
1605
1606 \end_inset
1607
1608 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1609 \end_layout
1610
1611 \begin_layout Standard
1612 \begin_inset Flex MenuItem
1613 status collapsed
1614
1615 \begin_layout Plain Layout
1616 ベクター画像形式
1617 \end_layout
1618
1619 \end_inset
1620
1621 オプションは、\SpecialChar LyX
1622 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1623 \begin_inset Flex MenuItem
1624 status collapsed
1625
1626 \begin_layout Plain Layout
1627 pdflatex
1628 \end_layout
1629
1630 \end_inset
1631
1632 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1633 \begin_inset Flex MenuItem
1634 status collapsed
1635
1636 \begin_layout Plain Layout
1637 pdflatex
1638 \end_layout
1639
1640 \end_inset
1641
1642 は、
1643 \begin_inset Flex MenuItem
1644 status collapsed
1645
1646 \begin_layout Plain Layout
1647 pdf
1648 \end_layout
1649
1650 \end_inset
1651
1652
1653 \begin_inset Flex MenuItem
1654 status collapsed
1655
1656 \begin_layout Plain Layout
1657 png
1658 \end_layout
1659
1660 \end_inset
1661
1662
1663 \begin_inset Flex MenuItem
1664 status collapsed
1665
1666 \begin_layout Plain Layout
1667 Des
1668 \end_layout
1669
1670 \end_inset
1671
1672 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1673 \begin_inset Flex MenuItem
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 pdf
1678 \end_layout
1679
1680 \end_inset
1681
1682
1683 \begin_inset Flex MenuItem
1684 status collapsed
1685
1686 \begin_layout Plain Layout
1687 png
1688 \end_layout
1689
1690 \end_inset
1691
1692
1693 \begin_inset Flex MenuItem
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 jpg
1698 \end_layout
1699
1700 \end_inset
1701
1702 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1703 \begin_inset Flex MenuItem
1704 status collapsed
1705
1706 \begin_layout Plain Layout
1707 pdf
1708 \end_layout
1709
1710 \end_inset
1711
1712 に変換され、そうでない場合には
1713 \begin_inset Flex MenuItem
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 png
1718 \end_layout
1719
1720 \end_inset
1721
1722 に変換されます。
1723 \end_layout
1724
1725 \begin_layout Section
1726 複写子
1727 \end_layout
1728
1729 \begin_layout Standard
1730 形式の変換はすべて、\SpecialChar LyX
1731 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1732 \begin_inset Foot
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1737 あります。
1738 \end_layout
1739
1740 \end_inset
1741
1742 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1743 \end_layout
1744
1745 \begin_layout Standard
1746 複写子の定義においては、以下の4つの変数を用いることができます。
1747 \end_layout
1748
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Flex Code
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755 $$s
1756 \end_layout
1757
1758 \end_inset
1759
1760  \SpecialChar LyX
1761 のシステムディレクトリ(例:
1762 \begin_inset Flex MenuItem
1763 status collapsed
1764
1765 \begin_layout Plain Layout
1766 /usr/share/lyx
1767 \end_layout
1768
1769 \end_inset
1770
1771
1772 \end_layout
1773
1774 \begin_layout Labeling
1775 \labelwidthstring 00.00.0000
1776 \begin_inset Flex Code
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 $$i
1781 \end_layout
1782
1783 \end_inset
1784
1785  入力ファイル
1786 \end_layout
1787
1788 \begin_layout Labeling
1789 \labelwidthstring 00.00.0000
1790 \begin_inset Flex Code
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 $$o
1795 \end_layout
1796
1797 \end_inset
1798
1799  出力ファイル
1800 \end_layout
1801
1802 \begin_layout Labeling
1803 \labelwidthstring 00.00.0000
1804 \begin_inset Flex Code
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 $$b
1809 \end_layout
1810
1811 \end_inset
1812
1813  \SpecialChar LyX
1814 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1815 \end_layout
1816
1817 \begin_layout Labeling
1818 \labelwidthstring 00.00.0000
1819 \begin_inset Flex Code
1820 status collapsed
1821
1822 \begin_layout Plain Layout
1823 $$p
1824 \end_layout
1825
1826 \end_inset
1827
1828  \SpecialChar LyX
1829 一時ディレクトリのフルパス名
1830 \end_layout
1831
1832 \begin_layout Labeling
1833 \labelwidthstring 00.00.0000
1834 \begin_inset Flex Code
1835 status collapsed
1836
1837 \begin_layout Plain Layout
1838 $$r
1839 \end_layout
1840
1841 \end_inset
1842
1843  処理されている元の\SpecialChar LyX
1844 ファイルのフルパス名
1845 \end_layout
1846
1847 \begin_layout Labeling
1848 \labelwidthstring 00.00.0000
1849 \begin_inset Flex Code
1850 status collapsed
1851
1852 \begin_layout Plain Layout
1853 $$f
1854 \end_layout
1855
1856 \end_inset
1857
1858  \SpecialChar LyX
1859 ファイルのファイル名(ディレクトリパスなし)
1860 \end_layout
1861
1862 \begin_layout Labeling
1863 \labelwidthstring 00.00.0000
1864 \begin_inset Flex Code
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 $$l
1869 \end_layout
1870
1871 \end_inset
1872
1873  「\SpecialChar LaTeX
1874 名」
1875 \end_layout
1876
1877 \begin_layout Standard
1878 最後の変数は、\SpecialChar LaTeX
1879
1880 \series bold
1881
1882 \backslash
1883 include
1884 \series default
1885 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1886 \end_layout
1887
1888 \begin_layout Standard
1889 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1890 \begin_inset Flex Code
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 /home/you/pdf/
1895 \end_layout
1896
1897 \end_inset
1898
1899 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1900 \end_layout
1901
1902 \begin_layout Standard
1903 \begin_inset listings
1904 inline false
1905 status open
1906
1907 \begin_layout Plain Layout
1908
1909 #!/bin/bash
1910 \end_layout
1911
1912 \begin_layout Plain Layout
1913
1914 FROMFILE=$1
1915 \end_layout
1916
1917 \begin_layout Plain Layout
1918
1919 TOFILE=`basename $2`
1920 \end_layout
1921
1922 \begin_layout Plain Layout
1923
1924 DescriptionE /home/you/pdf/$TOFILE
1925 \end_layout
1926
1927 \end_inset
1928
1929 これを、例えば
1930 \begin_inset Flex Code
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 /home/you/.lyx/scripts/pdfcopier.sh
1935 \end_layout
1936
1937 \end_inset
1938
1939 のような、自身のローカル\SpecialChar LyX
1940 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1941 \begin_inset Flex MenuItem
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 ツール\SpecialChar menuseparator
1946 設定
1947 \end_layout
1948
1949 \end_inset
1950
1951 ダイアログの
1952 \begin_inset Flex MenuItem
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 ファイル処理\SpecialChar menuseparator
1957 ファイル形式
1958 \end_layout
1959
1960 \end_inset
1961
1962 の中で、
1963 \begin_inset Flex MenuItem
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967 PDF(pdflatex)
1968 \end_layout
1969
1970 \end_inset
1971
1972 形式—あるいは他のPDF形式のうちどれか—を選択し、
1973 \begin_inset Flex MenuItem
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 複写子
1978 \end_layout
1979
1980 \end_inset
1981
1982 フィールドに
1983 \begin_inset Flex Code
1984 status collapsed
1985
1986 \begin_layout Plain Layout
1987 pdfcopier.sh $$i $$o
1988 \end_layout
1989
1990 \end_inset
1991
1992 と入力します。
1993 \end_layout
1994
1995 \begin_layout Standard
1996 複写子は、\SpecialChar LyX
1997 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
1998 は自動的に
1999 \begin_inset Flex MenuItem
2000 status collapsed
2001
2002 \begin_layout Plain Layout
2003 HTML
2004 \end_layout
2005
2006 \end_inset
2007
2008 形式と
2009 \begin_inset Flex MenuItem
2010 status collapsed
2011
2012 \begin_layout Plain Layout
2013 HTML
2014 \begin_inset space ~
2015 \end_inset
2016
2017 (MS Word)
2018 \end_layout
2019
2020 \end_inset
2021
2022 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2023 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2024 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2025 \begin_inset Foot
2026 status collapsed
2027
2028 \begin_layout Plain Layout
2029 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2030 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2031 \begin_inset Flex MenuItem
2032 status collapsed
2033
2034 \begin_layout Plain Layout
2035 L
2036 \begin_inset ERT
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040
2041 {}
2042 \end_layout
2043
2044 \end_inset
2045
2046 yXconv
2047 \end_layout
2048
2049 \end_inset
2050
2051 」となっているので、
2052 \begin_inset Flex MenuItem
2053 status collapsed
2054
2055 \begin_layout Plain Layout
2056 /path/to/filename.lyx
2057 \end_layout
2058
2059 \end_inset
2060
2061 から生成されたHTMLファイルは、
2062 \begin_inset Flex MenuItem
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 /path/to/filename.html.L
2067 \begin_inset ERT
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071
2072 {}
2073 \end_layout
2074
2075 \end_inset
2076
2077 yXconv
2078 \end_layout
2079
2080 \end_inset
2081
2082 となります。.
2083  
2084 \end_layout
2085
2086 \end_inset
2087
2088
2089 \end_layout
2090
2091 \begin_layout Section
2092 変換子
2093 \begin_inset CommandInset label
2094 LatexCommand label
2095 name "sec:変換子"
2096
2097 \end_inset
2098
2099
2100 \end_layout
2101
2102 \begin_layout Standard
2103 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2104 \begin_inset Flex MenuItem
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 ツール\SpecialChar menuseparator
2109 設定\SpecialChar menuseparator
2110 ファイル処理\SpecialChar menuseparator
2111 変換子
2112 \end_layout
2113
2114 \end_inset
2115
2116 ダイアログで行います。
2117 \end_layout
2118
2119 \begin_layout Standard
2120 新規に変換子を定義するには、ドロップダウンリストから
2121 \begin_inset Flex MenuItem
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 変換元の形式
2126 \end_layout
2127
2128 \end_inset
2129
2130
2131 \begin_inset Flex MenuItem
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135 変換先の形式
2136 \end_layout
2137
2138 \end_inset
2139
2140 を選択し、変換に必要なコマンドを入力してから
2141 \begin_inset Flex MenuItem
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 追加
2146 \end_layout
2147
2148 \end_inset
2149
2150 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2151 \end_layout
2152
2153 \begin_layout Labeling
2154 \labelwidthstring 00.00.0000
2155 \begin_inset Flex Code
2156 status collapsed
2157
2158 \begin_layout Plain Layout
2159 $$s
2160 \end_layout
2161
2162 \end_inset
2163
2164  \SpecialChar LyX
2165 システムディレクトリ
2166 \end_layout
2167
2168 \begin_layout Labeling
2169 \labelwidthstring 00.00.0000
2170 \begin_inset Flex Code
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 $$i
2175 \end_layout
2176
2177 \end_inset
2178
2179  入力ファイル
2180 \end_layout
2181
2182 \begin_layout Labeling
2183 \labelwidthstring 00.00.0000
2184 \begin_inset Flex Code
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188 $$o
2189 \end_layout
2190
2191 \end_inset
2192
2193  出力ファイル
2194 \end_layout
2195
2196 \begin_layout Labeling
2197 \labelwidthstring 00.00.0000
2198 \begin_inset Flex Code
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 $$b
2203 \end_layout
2204
2205 \end_inset
2206
2207  入力ファイルのベースファイル名(拡張子をとった部分)
2208 \end_layout
2209
2210 \begin_layout Labeling
2211 \labelwidthstring 00.00.0000
2212 \begin_inset Flex Code
2213 status collapsed
2214
2215 \begin_layout Plain Layout
2216 $$p
2217 \end_layout
2218
2219 \end_inset
2220
2221  入力ファイルのパス
2222 \end_layout
2223
2224 \begin_layout Labeling
2225 \labelwidthstring 00.00.0000
2226 \begin_inset Flex Code
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230 $$r
2231 \end_layout
2232
2233 \end_inset
2234
2235  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2236 \end_layout
2237
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 $$e
2245 \end_layout
2246
2247 \end_inset
2248
2249  文書エンコーディングのiconv名
2250 \end_layout
2251
2252 \begin_layout Standard
2253 \begin_inset Flex MenuItem
2254 status collapsed
2255
2256 \begin_layout Plain Layout
2257 追加フラグ
2258 \end_layout
2259
2260 \end_inset
2261
2262 フィールドには、以下のフラグをコンマで区切って入力することができます。
2263 \end_layout
2264
2265 \begin_layout Labeling
2266 \labelwidthstring 00.00.0000
2267 \begin_inset Flex Code
2268 status collapsed
2269
2270 \begin_layout Plain Layout
2271 latex
2272 \end_layout
2273
2274 \end_inset
2275
2276  この変換子が\SpecialChar LaTeX
2277 の一種を実行することを示します。これによって、\SpecialChar LyX
2278 の\SpecialChar LaTeX
2279 エラーログに記録を残せるようになります。
2280 \end_layout
2281
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Flex Code
2285 status collapsed
2286
2287 \begin_layout Plain Layout
2288 needaux
2289 \end_layout
2290
2291 \end_inset
2292
2293  変換に\SpecialChar LaTeX
2294
2295 \begin_inset Flex MenuItem
2296 status collapsed
2297
2298 \begin_layout Plain Layout
2299 .aux
2300 \end_layout
2301
2302 \end_inset
2303
2304 ファイルが必要であることを示します。
2305 \end_layout
2306
2307 \begin_layout Labeling
2308 \labelwidthstring 00.00.0000
2309 \begin_inset Flex Code
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313 nice
2314 \end_layout
2315
2316 \end_inset
2317
2318  バックエンドからの
2319 \begin_inset Quotes erd
2320 \end_inset
2321
2322 nice
2323 \begin_inset Quotes erd
2324 \end_inset
2325
2326 なファイル、つまり\SpecialChar LyX
2327 が書き出す\SpecialChar LaTeX
2328 ファイルのように、
2329 \begin_inset Flex Code
2330 status open
2331
2332 \begin_layout Plain Layout
2333 input@path
2334 \end_layout
2335
2336 \end_inset
2337
2338 のない\SpecialChar LaTeX
2339 ファイルを必要とします。
2340 \end_layout
2341
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Flex Code
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 xml
2349 \end_layout
2350
2351 \end_inset
2352
2353  出力がXMLであることを示します。
2354 \end_layout
2355
2356 \begin_layout Standard
2357 以下の3つのフラグは 
2358 \begin_inset Flex MenuItem
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362 key
2363 \begin_inset space ~
2364 \end_inset
2365
2366 =
2367 \begin_inset space ~
2368 \end_inset
2369
2370 value
2371 \end_layout
2372
2373 \end_inset
2374
2375 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2376 \end_layout
2377
2378 \begin_layout Labeling
2379 \labelwidthstring 00.00.0000
2380 \begin_inset Flex Code
2381 status collapsed
2382
2383 \begin_layout Plain Layout
2384 parselog
2385 \end_layout
2386
2387 \end_inset
2388
2389  これを指定すると、変換子の標準エラーが
2390 \begin_inset Flex Code
2391 status collapsed
2392
2393 \begin_layout Plain Layout
2394 infile.out
2395 \end_layout
2396
2397 \end_inset
2398
2399 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2400 \begin_inset Flex Code
2401 status collapsed
2402
2403 \begin_layout Plain Layout
2404 script < infile.out > infile.log
2405 \end_layout
2406
2407 \end_inset
2408
2409 の形で実行されるようになります。引数には
2410 \begin_inset Flex Code
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 $$s
2415 \end_layout
2416
2417 \end_inset
2418
2419 を指定することができます。
2420 \end_layout
2421
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 resultdir
2429 \end_layout
2430
2431 \end_inset
2432
2433  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2434 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2435 ピーします。引数には、
2436 \begin_inset Flex Code
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 $$b
2441 \end_layout
2442
2443 \end_inset
2444
2445 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2446 \begin_inset Newline newline
2447 \end_inset
2448
2449 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2450 \end_layout
2451
2452 \begin_layout Labeling
2453 \labelwidthstring 00.00.0000
2454 \begin_inset Flex Code
2455 status collapsed
2456
2457 \begin_layout Plain Layout
2458 resultfile
2459 \end_layout
2460
2461 \end_inset
2462
2463  これは出力ファイル名を指定するもので、
2464 \begin_inset Flex Code
2465 status collapsed
2466
2467 \begin_layout Plain Layout
2468 $$b
2469 \end_layout
2470
2471 \end_inset
2472
2473 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2474 \end_layout
2475
2476 \begin_layout Standard
2477 最後の3つは、\SpecialChar LyX
2478 とともに導入される変換子には、現在いずれも使用されておりません。
2479 \end_layout
2480
2481 \begin_layout Standard
2482 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2483 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2484 はPostScrip
2485 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2486 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2487 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2488 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2489 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2490 設定は、\SpecialChar LaTeX
2491 からPDFへ変換するのに、以下の3つの方法を
2492 用意しています。
2493 \end_layout
2494
2495 \begin_layout Enumerate
2496 直接
2497 \begin_inset Flex MenuItem
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501 pdflatex
2502 \end_layout
2503
2504 \end_inset
2505
2506 を使用するもの
2507 \end_layout
2508
2509 \begin_layout Enumerate
2510 (DVIと)PostScriptを経由して
2511 \begin_inset Flex MenuItem
2512 status collapsed
2513
2514 \begin_layout Plain Layout
2515 ps2pdf
2516 \end_layout
2517
2518 \end_inset
2519
2520 を使用するもの
2521 \end_layout
2522
2523 \begin_layout Enumerate
2524 DVI経由で
2525 \begin_inset Flex MenuItem
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529 dvipdfm
2530 \end_layout
2531
2532 \end_inset
2533
2534 を使用するもの
2535 \end_layout
2536
2537 \begin_layout Enumerate
2538 直接
2539 \begin_inset Flex MenuItem
2540 status collapsed
2541
2542 \begin_layout Plain Layout
2543 Xe\SpecialChar TeX
2544
2545 \end_layout
2546
2547 \end_inset
2548
2549 を使用するもの
2550 \end_layout
2551
2552 \begin_layout Enumerate
2553 直接
2554 \begin_inset Flex MenuItem
2555 status collapsed
2556
2557 \begin_layout Plain Layout
2558 Lua\SpecialChar TeX
2559
2560 \end_layout
2561
2562 \end_inset
2563
2564 を使用するもの
2565 \end_layout
2566
2567 \begin_layout Standard
2568 このように代替連鎖を定義するには、第
2569 \begin_inset CommandInset ref
2570 LatexCommand ref
2571 reference "sec:ファイル形式"
2572
2573 \end_inset
2574
2575 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2576 \begin_inset Flex MenuItem
2577 status collapsed
2578
2579 \begin_layout Plain Layout
2580 pdf
2581 \end_layout
2582
2583 \end_inset
2584
2585 (
2586 \begin_inset Flex MenuItem
2587 status collapsed
2588
2589 \begin_layout Plain Layout
2590 ps2pdf
2591 \end_layout
2592
2593 \end_inset
2594
2595 用)・
2596 \begin_inset Flex MenuItem
2597 status collapsed
2598
2599 \begin_layout Plain Layout
2600 pdf2
2601 \end_layout
2602
2603 \end_inset
2604
2605 (
2606 \begin_inset Flex MenuItem
2607 status collapsed
2608
2609 \begin_layout Plain Layout
2610 pdflatex
2611 \end_layout
2612
2613 \end_inset
2614
2615 用)・
2616 \begin_inset Flex MenuItem
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620 pdf3
2621 \end_layout
2622
2623 \end_inset
2624
2625 (
2626 \begin_inset Flex MenuItem
2627 status collapsed
2628
2629 \begin_layout Plain Layout
2630 dvipdfm
2631 \end_layout
2632
2633 \end_inset
2634
2635 用)・
2636 \begin_inset Flex MenuItem
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640 pdf4
2641 \end_layout
2642
2643 \end_inset
2644
2645 (
2646 \begin_inset Flex MenuItem
2647 status collapsed
2648
2649 \begin_layout Plain Layout
2650 Xe\SpecialChar TeX
2651
2652 \end_layout
2653
2654 \end_inset
2655
2656 用)・
2657 \begin_inset Flex MenuItem
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 pdf5
2662 \end_layout
2663
2664 \end_inset
2665
2666 (
2667 \begin_inset Flex MenuItem
2668 status collapsed
2669
2670 \begin_layout Plain Layout
2671 Lua\SpecialChar TeX
2672
2673 \end_layout
2674
2675 \end_inset
2676
2677 用\SpecialChar softhyphen
2678 ) と命名された形式が定義されていて、すべて共通の拡張子
2679 \begin_inset Flex MenuItem
2680 status collapsed
2681
2682 \begin_layout Plain Layout
2683 .pdf
2684 \end_layout
2685
2686 \end_inset
2687
2688 を持ち、上記で言及した各変換方法に対応しています。
2689 \end_layout
2690
2691 \begin_layout Chapter
2692 \SpecialChar LyX
2693 の各国語対応
2694 \begin_inset CommandInset label
2695 LatexCommand label
2696 name "cha:LyXの各国語対応"
2697
2698 \end_inset
2699
2700
2701 \end_layout
2702
2703 \begin_layout Standard
2704 \SpecialChar LyX
2705 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2706 は30言語の翻訳を提供しています。選択した言語は、使用する
2707 \emph on
2708 ロケール
2709 \emph default
2710 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2711 \begin_inset Flex Code
2712 status collapsed
2713
2714 \begin_layout Plain Layout
2715 locale(5)
2716 \end_layout
2717
2718 \end_inset
2719
2720 から見ると良いかもしれません)。
2721 \end_layout
2722
2723 \begin_layout Standard
2724 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2725 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2726 \begin_inset Flex Ruby
2727 status collapsed
2728
2729 \begin_layout Plain Layout
2730 捷径
2731 \begin_inset Argument post:1
2732 status collapsed
2733
2734 \begin_layout Plain Layout
2735 ショートカット
2736 \end_layout
2737
2738 \end_inset
2739
2740
2741 \end_layout
2742
2743 \end_inset
2744
2745 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2746 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2747 \begin_inset Foot
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2752 コミュニティに報いるたいへん素晴らしい方法です!
2753 \end_layout
2754
2755 \end_inset
2756
2757 —は、\SpecialChar LyX
2758 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2759 \end_layout
2760
2761 \begin_layout Section
2762 \SpecialChar LyX
2763 を翻訳する
2764 \end_layout
2765
2766 \begin_layout Subsection
2767 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2768 \begin_inset Argument 1
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 GUI(テキストメッセージ)を翻訳する
2773 \end_layout
2774
2775 \end_inset
2776
2777
2778 \end_layout
2779
2780 \begin_layout Standard
2781 \SpecialChar LyX
2782 は、操作画面の国際化対応にGNU 
2783 \begin_inset Flex Code
2784 status collapsed
2785
2786 \begin_layout Plain Layout
2787 gettext
2788 \end_layout
2789
2790 \end_inset
2791
2792 ライブラリを使用します。\SpecialChar LyX
2793 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2794 \begin_inset Flex Code
2795 status collapsed
2796
2797 \begin_layout Plain Layout
2798 po
2799 \end_layout
2800
2801 \end_inset
2802
2803 ファイルが必要です。このファイルが利用可能であれば、そこから
2804 \begin_inset Flex Code
2805 status collapsed
2806
2807 \begin_layout Plain Layout
2808 mo
2809 \end_layout
2810
2811 \end_inset
2812
2813 ファイルを生成して、この
2814 \begin_inset Flex Code
2815 status collapsed
2816
2817 \begin_layout Plain Layout
2818 mo
2819 \end_layout
2820
2821 \end_inset
2822
2823 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2824 \begin_inset Flex Code
2825 status collapsed
2826
2827 \begin_layout Plain Layout
2828 gettext
2829 \end_layout
2830
2831 \end_inset
2832
2833 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2834 コミュニティの他の人々と分かち
2835 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2836 開発者メーリングリストにメールを送ってください。
2837 \end_layout
2838
2839 \begin_layout Standard
2840 要約すれば、以下のように行います(xxは言語コードを表します)。
2841 \end_layout
2842
2843 \begin_layout Itemize
2844 \SpecialChar LyX
2845 ソースコードをチェックアウトしてください(
2846 \begin_inset CommandInset href
2847 LatexCommand href
2848 name "ウェブ上の情報"
2849 target "http://www.lyx.org/devel/cvs.php"
2850
2851 \end_inset
2852
2853 参照)。
2854 \end_layout
2855
2856 \begin_layout Itemize
2857 \begin_inset Flex Code
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861 lyx.pot
2862 \end_layout
2863
2864 \end_inset
2865
2866 ファイルを
2867 \begin_inset Flex Code
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 **.po
2872 \end_layout
2873
2874 \end_inset
2875
2876 ファイルのあるフォルダにコピーして、
2877 \begin_inset Flex Code
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 xx.po
2882 \end_layout
2883
2884 \end_inset
2885
2886 に名前を付け替えてください(
2887 \begin_inset Flex Code
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891 lyx.pot
2892 \end_layout
2893
2894 \end_inset
2895
2896 がどこにもない場合には、コンソールからそのディレクトリで
2897 \begin_inset Flex Code
2898 status collapsed
2899
2900 \begin_layout Plain Layout
2901 make lyx.pot
2902 \end_layout
2903
2904 \end_inset
2905
2906 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2907 \end_layout
2908
2909 \begin_layout Itemize
2910 \begin_inset Flex Code
2911 status collapsed
2912
2913 \begin_layout Plain Layout
2914 xx.po
2915 \end_layout
2916
2917 \end_inset
2918
2919 を編集します
2920 \begin_inset Foot
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2925 \family typewriter
2926 Poedit
2927 \family default
2928 (全プラットフォーム用)や
2929 \family typewriter
2930 KBabel
2931 \family default
2932 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2933 \family typewriter
2934 Emacs
2935 \family default
2936 にも
2937 \begin_inset Flex Code
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 po
2942 \end_layout
2943
2944 \end_inset
2945
2946 ファイルを編集するための「モード」があります。
2947 \end_layout
2948
2949 \end_inset
2950
2951 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
2952 \begin_inset Flex Ruby
2953 status collapsed
2954
2955 \begin_layout Plain Layout
2956 捷径
2957 \begin_inset Argument post:1
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 ショートカット
2962 \end_layout
2963
2964 \end_inset
2965
2966
2967 \end_layout
2968
2969 \end_inset
2970
2971 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
2972 \begin_inset Flex Code
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 po
2977 \end_layout
2978
2979 \end_inset
2980
2981 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2982 \end_layout
2983
2984 \begin_layout Standard
2985 もし、あなたがこれを自身のためだけに行っているのであれば、
2986 \end_layout
2987
2988 \begin_layout Itemize
2989 \begin_inset Flex Code
2990 status collapsed
2991
2992 \begin_layout Plain Layout
2993 xx.mo
2994 \end_layout
2995
2996 \end_inset
2997
2998 を生成してください。これは
2999 \begin_inset Flex Code
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 msgfmt -o xx.mo < xx.po
3004 \end_layout
3005
3006 \end_inset
3007
3008 でできます。
3009 \end_layout
3010
3011 \begin_layout Itemize
3012 この
3013 \begin_inset Flex Code
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 mo
3018 \end_layout
3019
3020 \end_inset
3021
3022 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3023 \begin_inset Flex Code
3024 status collapsed
3025
3026 \begin_layout Plain Layout
3027 lyx.mo
3028 \end_layout
3029
3030 \end_inset
3031
3032 という名称にしてください(例:
3033 \begin_inset Flex Code
3034 status collapsed
3035
3036 \begin_layout Plain Layout
3037 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3038 \end_layout
3039
3040 \end_inset
3041
3042 )。
3043 \end_layout
3044
3045 \begin_layout Standard
3046 しかしながら前述のように、この新しい
3047 \begin_inset Flex Code
3048 status collapsed
3049
3050 \begin_layout Plain Layout
3051 po
3052 \end_layout
3053
3054 \end_inset
3055
3056 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3057 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3058 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3059 グリストに電子メールを送ってください。
3060 \end_layout
3061
3062 \begin_layout Subsubsection
3063 多義訳語メッセージ
3064 \end_layout
3065
3066 \begin_layout Standard
3067 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 To
3073 \end_layout
3074
3075 \end_inset
3076
3077 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 gettext
3083 \end_layout
3084
3085 \end_inset
3086
3087 は、このような多義訳語を
3088 \begin_inset Flex Code
3089 status collapsed
3090
3091 \begin_layout Plain Layout
3092 To
3093 \end_layout
3094
3095 \end_inset
3096
3097 の代わりに、
3098 \begin_inset Flex Code
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 To[[as in 'From format x to format y']]
3103 \end_layout
3104
3105 \end_inset
3106
3107
3108 \begin_inset Flex Code
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 To[[as in 'From page x to page y']]
3113 \end_layout
3114
3115 \end_inset
3116
3117 としなくてはなりません。これによって、これら2つの
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 To
3123 \end_layout
3124
3125 \end_inset
3126
3127 は、
3128 \begin_inset Flex Code
3129 status collapsed
3130
3131 \begin_layout Plain Layout
3132 gettext
3133 \end_layout
3134
3135 \end_inset
3136
3137 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3138 \end_layout
3139
3140 \begin_layout Standard
3141 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3142 の翻訳機構
3143 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3144 \end_layout
3145
3146 \begin_layout Subsection
3147 説明書を翻訳する
3148 \end_layout
3149
3150 \begin_layout Standard
3151
3152 \begin_inset Flex MenuItem
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 Help
3157 \end_layout
3158
3159 \end_inset
3160
3161 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3162 \begin_inset Foot
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3167 \end_layout
3168
3169 \end_inset
3170
3171 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3172 はこれを自動的に使用します。\SpecialChar LyX
3173 は、翻訳版を
3174 \begin_inset Flex Code
3175 status collapsed
3176
3177 \begin_layout Plain Layout
3178 LyXDir/doc/xx/DocName.lyx
3179 \end_layout
3180
3181 \end_inset
3182
3183
3184 \begin_inset Flex Code
3185 status collapsed
3186
3187 \begin_layout Plain Layout
3188 xx
3189 \end_layout
3190
3191 \end_inset
3192
3193 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3194 \begin_inset Flex Code
3195 status collapsed
3196
3197 \begin_layout Plain Layout
3198 DocName
3199 \end_layout
3200
3201 \end_inset
3202
3203 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3204 うべきです。
3205 \end_layout
3206
3207 \begin_layout Itemize
3208 説明書翻訳ウェブページ
3209 \begin_inset CommandInset href
3210 LatexCommand href
3211 name "http://www.lyx.org/Translation"
3212 target "http://www.lyx.org/Translation"
3213
3214 \end_inset
3215
3216 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3217 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3218 \end_layout
3219
3220 \begin_layout Standard
3221 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3222 \end_layout
3223
3224 \begin_layout Itemize
3225 文書化チームに所属してください!そのための情報が
3226 \begin_inset Flex Code
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230 Intro.lyx
3231 \end_layout
3232
3233 \end_inset
3234
3235
3236 \begin_inset Flex MenuItem
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240 ヘルプ\SpecialChar menuseparator
3241 はじめの一歩
3242 \end_layout
3243
3244 \end_inset
3245
3246 )にあります。また、この
3247 \begin_inset Flex Code
3248 status collapsed
3249
3250 \begin_layout Plain Layout
3251 Intro.lyx
3252 \end_layout
3253
3254 \end_inset
3255
3256 が最初に訳すべき文書です。
3257 \end_layout
3258
3259 \begin_layout Itemize
3260 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3261 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3262 \emph on
3263 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3264 \emph default
3265
3266 \end_layout
3267
3268 \begin_layout Itemize
3269 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3270 \begin_inset Flex Code
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 UserDir/doc/xx/
3275 \end_layout
3276
3277 \end_inset
3278
3279 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3280 \end_layout
3281
3282 \begin_layout Itemize
3283 (\SpecialChar LyX
3284 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3285 \begin_inset CommandInset href
3286 LatexCommand href
3287 name "http://www.lyx.org/trac/timeline"
3288 target "http://www.lyx.org/trac/timeline"
3289
3290 \end_inset
3291
3292 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3293 \end_layout
3294
3295 \begin_layout Standard
3296 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3297 \end_layout
3298
3299 \begin_layout Standard
3300 \begin_inset Branch OutDated
3301 status collapsed
3302
3303 \begin_layout Section
3304 International Keyboard Support
3305 \end_layout
3306
3307 \begin_layout Standard
3308
3309 \emph on
3310 [Editor's Note: The following section is by
3311 \emph default
3312  
3313 \shape smallcaps
3314 \emph on
3315 Ivan Schreter
3316 \shape default
3317 .
3318  It needs to be fixed to conform to the new Documentation Style sheet and
3319  to make use of the new v1.0 features.
3320  The whole thing also needs to be merged with the section following it.-jw
3321  It may also be badly out of date.-rh (2008)]
3322 \end_layout
3323
3324 \begin_layout Subsection
3325 Defining Own Keymaps: Keymap File Format
3326 \end_layout
3327
3328 \begin_layout Standard
3329 Let's look at a keyboard definition file a little closer.
3330  It is a plain text file defining
3331 \end_layout
3332
3333 \begin_layout Itemize
3334 key-to-key or key-to-string translations
3335 \end_layout
3336
3337 \begin_layout Itemize
3338 dead keys
3339 \end_layout
3340
3341 \begin_layout Itemize
3342 dead keys exceptions
3343 \end_layout
3344
3345 \begin_layout Standard
3346 To define key-to-key or key-to-string translation, use this command:
3347 \end_layout
3348
3349 \begin_layout Quotation
3350 \begin_inset Flex Code
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354
3355 \backslash
3356 kmap
3357 \end_layout
3358
3359 \end_inset
3360
3361  
3362 \begin_inset Flex Code
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366 key
3367 \end_layout
3368
3369 \end_inset
3370
3371  outstring 
3372 \end_layout
3373
3374 \begin_layout Standard
3375 where 
3376 \begin_inset Flex Code
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 key
3381 \end_layout
3382
3383 \end_inset
3384
3385  is the key to be translated and 
3386 \begin_inset Flex Code
3387 status collapsed
3388
3389 \begin_layout Plain Layout
3390 outstring
3391 \end_layout
3392
3393 \end_inset
3394
3395  is the string to be inserted into the document.
3396  To define dead keys, use:
3397 \end_layout
3398
3399 \begin_layout Quotation
3400 \begin_inset Flex Code
3401 status collapsed
3402
3403 \begin_layout Plain Layout
3404
3405 \backslash
3406 kmod
3407 \end_layout
3408
3409 \end_inset
3410
3411  
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 key
3417 \end_layout
3418
3419 \end_inset
3420
3421  deadkey
3422 \end_layout
3423
3424 \begin_layout Standard
3425 where 
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430 key
3431 \end_layout
3432
3433 \end_inset
3434
3435  is a keyboard key and 
3436 \begin_inset Flex Code
3437 status collapsed
3438
3439 \begin_layout Plain Layout
3440 deadkey
3441 \end_layout
3442
3443 \end_inset
3444
3445  is dead key name.
3446  The following dead keys are supported (shortcut name is in parentheses):
3447 \end_layout
3448
3449 \begin_layout Quotation
3450
3451 \emph on
3452 Name
3453 \begin_inset space \hfill{}
3454 \end_inset
3455
3456 Example
3457 \end_layout
3458
3459 \begin_layout Quotation
3460 acute (acu)
3461 \begin_inset space \hfill{}
3462 \end_inset
3463
3464
3465 \lang english
3466 áéíóú
3467 \end_layout
3468
3469 \begin_layout Quotation
3470 grave (gra)
3471 \begin_inset space \hfill{}
3472 \end_inset
3473
3474
3475 \lang english
3476 àèìòù
3477 \end_layout
3478
3479 \begin_layout Quotation
3480 macron (mac)
3481 \begin_inset space \hfill{}
3482 \end_inset
3483
3484
3485 \lang english
3486  ō
3487 \end_layout
3488
3489 \begin_layout Quotation
3490 tilde (til)
3491 \begin_inset space \hfill{}
3492 \end_inset
3493
3494
3495 \lang english
3496 ñÑ
3497 \end_layout
3498
3499 \begin_layout Quotation
3500 underbar (underb)
3501 \begin_inset space \hfill{}
3502 \end_inset
3503
3504
3505 \begin_inset ERT
3506 status open
3507
3508 \begin_layout Plain Layout
3509
3510
3511 \backslash
3512 b o
3513 \end_layout
3514
3515 \end_inset
3516
3517
3518 \end_layout
3519
3520 \begin_layout Quotation
3521 cedilla (ced)
3522 \begin_inset space \hfill{}
3523 \end_inset
3524
3525
3526 \lang english
3527 çÇ
3528 \end_layout
3529
3530 \begin_layout Quotation
3531 underdot (underd)
3532 \begin_inset space \hfill{}
3533 \end_inset
3534
3535
3536 \begin_inset ERT
3537 status open
3538
3539 \begin_layout Plain Layout
3540
3541
3542 \backslash
3543 d o
3544 \end_layout
3545
3546 \end_inset
3547
3548
3549 \end_layout
3550
3551 \begin_layout Quotation
3552 circumflex (circu)
3553 \begin_inset space \hfill{}
3554 \end_inset
3555
3556
3557 \lang english
3558 âêîôû
3559 \end_layout
3560
3561 \begin_layout Quotation
3562 circle (circl)
3563 \begin_inset space \hfill{}
3564 \end_inset
3565
3566
3567 \lang english
3568 ÅůŮ
3569 \end_layout
3570
3571 \begin_layout Quotation
3572 tie (tie)
3573 \begin_inset space \hfill{}
3574 \end_inset
3575
3576
3577 \begin_inset ERT
3578 status open
3579
3580 \begin_layout Plain Layout
3581
3582
3583 \backslash
3584 t o
3585 \end_layout
3586
3587 \end_inset
3588
3589
3590 \end_layout
3591
3592 \begin_layout Quotation
3593 breve (bre)
3594 \begin_inset space \hfill{}
3595 \end_inset
3596
3597
3598 \lang english
3599 ă
3600 \lang japanese
3601
3602 \begin_inset ERT
3603 status open
3604
3605 \begin_layout Plain Layout
3606
3607
3608 \backslash
3609 u o
3610 \end_layout
3611
3612 \end_inset
3613
3614
3615 \end_layout
3616
3617 \begin_layout Quotation
3618 caron (car)
3619 \begin_inset space \hfill{}
3620 \end_inset
3621
3622
3623 \lang english
3624 čšž
3625 \end_layout
3626
3627 \begin_layout Quotation
3628 hungarian umlaut (hug)
3629 \begin_inset space \hfill{}
3630 \end_inset
3631
3632
3633 \lang english
3634 őű
3635 \end_layout
3636
3637 \begin_layout Quotation
3638 umlaut (uml)
3639 \begin_inset space \hfill{}
3640 \end_inset
3641
3642
3643 \lang english
3644 äöü
3645 \end_layout
3646
3647 \begin_layout Quotation
3648 dot (dot)
3649 \begin_inset space \hfill{}
3650 \end_inset
3651
3652
3653 \lang english
3654 ż
3655 \lang japanese
3656
3657 \begin_inset ERT
3658 status open
3659
3660 \begin_layout Plain Layout
3661
3662
3663 \backslash
3664 .s
3665 \end_layout
3666
3667 \end_inset
3668
3669
3670 \end_layout
3671
3672 \begin_layout Standard
3673 Since in many international keyboards there are exceptions to what some
3674  dead keys should do, you can define them using
3675 \end_layout
3676
3677 \begin_layout Quotation
3678 \begin_inset Flex Code
3679 status collapsed
3680
3681 \begin_layout Plain Layout
3682
3683 \backslash
3684 kxmod
3685 \end_layout
3686
3687 \end_inset
3688
3689  deadkey key outstring
3690 \end_layout
3691
3692 \begin_layout Standard
3693 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3694 , so you put in
3695 \end_layout
3696
3697 \begin_layout Quotation
3698 \begin_inset Flex Code
3699 status collapsed
3700
3701 \begin_layout Plain Layout
3702
3703 \backslash
3704 kxmod
3705 \end_layout
3706
3707 \end_inset
3708
3709  caron o "
3710 \backslash
3711 ^o"
3712 \end_layout
3713
3714 \begin_layout Standard
3715 to make it work correctly.
3716  Also, you have to define as exceptions dead keys over i and j, to remove
3717  the dot from them before inserting an accent mark.
3718  I will change this when the time comes, but so far I haven't had time.
3719 \end_layout
3720
3721 \begin_layout Standard
3722 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3723  double backslash.
3724  Also, quotes and 
3725 \begin_inset Flex Code
3726 status collapsed
3727
3728 \begin_layout Plain Layout
3729 #
3730 \end_layout
3731
3732 \end_inset
3733
3734  have different meaning.
3735  
3736 \begin_inset Flex Code
3737 status collapsed
3738
3739 \begin_layout Plain Layout
3740 #
3741 \end_layout
3742
3743 \end_inset
3744
3745  marks comments, quotes start and end \SpecialChar LaTeX
3746 -style commands.
3747  To enter quote, you'll need to use 
3748 \begin_inset Flex Code
3749 status collapsed
3750
3751 \begin_layout Plain Layout
3752
3753 \backslash
3754 "
3755 \end_layout
3756
3757 \end_inset
3758
3759 , to enter 
3760 \begin_inset Flex Code
3761 status collapsed
3762
3763 \begin_layout Plain Layout
3764 #
3765 \end_layout
3766
3767 \end_inset
3768
3769 , use 
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774
3775 \backslash
3776 #
3777 \end_layout
3778
3779 \end_inset
3780
3781 .
3782 \end_layout
3783
3784 \begin_layout Standard
3785 If you make a keyboard description file that works for your language, please
3786  mail it to me, so I can include it in the next keymap distribution.
3787 \end_layout
3788
3789 \begin_layout Standard
3790 More keywords will be supported in keymap configuration file in future,
3791  like
3792 \end_layout
3793
3794 \begin_layout Itemize
3795 \begin_inset Flex Code
3796 status collapsed
3797
3798 \begin_layout Plain Layout
3799
3800 \backslash
3801 kinclude filename
3802 \end_layout
3803
3804 \end_inset
3805
3806
3807 \emph on
3808
3809 \begin_inset space \hfill{}
3810 \end_inset
3811
3812
3813 \begin_inset Flex Code
3814 status collapsed
3815
3816 \begin_layout Plain Layout
3817 include
3818 \end_layout
3819
3820 \end_inset
3821
3822  another file
3823 \end_layout
3824
3825 \begin_layout Itemize
3826 \begin_inset Flex Code
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830
3831 \backslash
3832 kprog program
3833 \end_layout
3834
3835 \end_inset
3836
3837
3838 \emph on
3839
3840 \begin_inset space \hfill{}
3841 \end_inset
3842
3843
3844 \begin_inset Flex Code
3845 status collapsed
3846
3847 \begin_layout Plain Layout
3848 define
3849 \end_layout
3850
3851 \end_inset
3852
3853  an external keymap translation program 
3854 \end_layout
3855
3856 \begin_layout Standard
3857 Also, it should look into 
3858 \begin_inset Flex Code
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 lyxrc
3863 \end_layout
3864
3865 \end_inset
3866
3867  file for defaults, too (for example, a 
3868 \begin_inset Flex Code
3869 status collapsed
3870
3871 \begin_layout Plain Layout
3872
3873 \backslash
3874 kinclude
3875 \end_layout
3876
3877 \end_inset
3878
3879  option to include default keyboard).
3880 \end_layout
3881
3882 \end_inset
3883
3884
3885 \end_layout
3886
3887 \begin_layout Section
3888 国際キー配列
3889 \begin_inset CommandInset label
3890 LatexCommand label
3891 name "sec:国際キー配列"
3892
3893 \end_inset
3894
3895
3896 \end_layout
3897
3898 \begin_layout Standard
3899 \begin_inset Note Note
3900 status open
3901
3902 \begin_layout Plain Layout
3903 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3904 \end_layout
3905
3906 \begin_layout Plain Layout
3907 (RH)
3908 \end_layout
3909
3910 \end_inset
3911
3912
3913 \end_layout
3914
3915 \begin_layout Standard
3916 以下の2節では、
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 .kmap
3922 \end_layout
3923
3924 \end_inset
3925
3926 および
3927 \begin_inset Flex Code
3928 status collapsed
3929
3930 \begin_layout Plain Layout
3931 .cdef
3932 \end_layout
3933
3934 \end_inset
3935
3936 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3937 \end_layout
3938
3939 \begin_layout Subsection
3940 .kmapファイル
3941 \end_layout
3942
3943 \begin_layout Standard
3944 \begin_inset Flex Code
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948 .kmap
3949 \end_layout
3950
3951 \end_inset
3952
3953 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3954 \begin_inset Flex Code
3955 status collapsed
3956
3957 \begin_layout Plain Layout
3958 .kmap
3959 \end_layout
3960
3961 \end_inset
3962
3963 ファイルは、以下の各項で説明するように、
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 kmap
3969 \end_layout
3970
3971 \end_inset
3972
3973
3974 \begin_inset Flex Code
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978 kmod
3979 \end_layout
3980
3981 \end_inset
3982
3983
3984 \begin_inset Flex Code
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988 ksmod
3989 \end_layout
3990
3991 \end_inset
3992
3993
3994 \begin_inset Flex Code
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998 kcomb
3999 \end_layout
4000
4001 \end_inset
4002
4003 のキーワードを定義します。
4004 \end_layout
4005
4006 \begin_layout Labeling
4007 \labelwidthstring 00.00.0000
4008 \begin_inset Flex Code
4009 status collapsed
4010
4011 \begin_layout Plain Layout
4012 kmap
4013 \end_layout
4014
4015 \end_inset
4016
4017  文字を文字列に割り当てる
4018 \end_layout
4019
4020 \begin_layout LyX-Code
4021
4022 \backslash
4023 kmap 
4024 \family roman
4025 \emph on
4026 文字
4027 \family default
4028 \emph default
4029  
4030 \family roman
4031 \emph on
4032 文字列
4033 \end_layout
4034
4035 \begin_layout Standard
4036 これは、
4037 \emph on
4038 文字
4039 \emph default
4040
4041 \emph on
4042 文字列
4043 \emph default
4044 に割り当てます。
4045 \emph on
4046 文字列
4047 \emph default
4048 中では、二重引用符(")とバックスラッシュ(
4049 \backslash
4050 )は、前にバックスラッシュ(
4051 \backslash
4052 )を付けてエスケープしなくてはならないことに注意してください。
4053 \end_layout
4054
4055 \begin_layout Standard
4056 \begin_inset Flex MenuItem
4057 status collapsed
4058
4059 \begin_layout Plain Layout
4060 &
4061 \end_layout
4062
4063 \end_inset
4064
4065 を打鍵すると
4066 \begin_inset Flex MenuItem
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070 /
4071 \end_layout
4072
4073 \end_inset
4074
4075 記号が出力される
4076 \begin_inset Flex MenuItem
4077 status collapsed
4078
4079 \begin_layout Plain Layout
4080 kmap
4081 \end_layout
4082
4083 \end_inset
4084
4085 ステートメントを、一例としてあげると、
4086 \end_layout
4087
4088 \begin_layout LyX-Code
4089
4090 \backslash
4091 kmap & /
4092 \end_layout
4093
4094 \begin_layout Standard
4095 のようになります。
4096 \end_layout
4097
4098 \begin_layout Labeling
4099 \labelwidthstring 00.00.0000
4100 \begin_inset Flex Code
4101 status collapsed
4102
4103 \begin_layout Plain Layout
4104 kmod
4105 \end_layout
4106
4107 \end_inset
4108
4109  アクセント文字を指定する
4110 \end_layout
4111
4112 \begin_layout LyX-Code
4113
4114 \backslash
4115 kmod 
4116 \family roman
4117 \emph on
4118 文字 アクセント 許可文字
4119 \end_layout
4120
4121 \begin_layout Standard
4122 これは
4123 \emph on
4124 文字
4125 \emph default
4126
4127 \emph on
4128 許可文字
4129 \emph default
4130 のアクセントとするものです。これはデッドキー
4131 \begin_inset Foot
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135
4136 \emph on
4137 デッドキー
4138 \emph default
4139 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4140 \emph on
4141 ä
4142 \emph default
4143 のようなウムラウトのついた文字は、このようにして出すことができます。
4144 \end_layout
4145
4146 \end_inset
4147
4148 機構です。
4149 \end_layout
4150
4151 \begin_layout Standard
4152
4153 \emph on
4154 文字
4155 \emph default
4156 を打鍵してから
4157 \emph on
4158 許可文字
4159 \emph default
4160 にないキーを打鍵すると、
4161 \emph on
4162 文字
4163 \emph default
4164 の後に許可文字ではないその文字が出力として表示されます。
4165 \begin_inset Flex MenuItem
4166 status collapsed
4167
4168 \begin_layout Plain Layout
4169 Backspace
4170 \end_layout
4171
4172 \end_inset
4173
4174 はデッドキーを取り消しますので、
4175 \emph on
4176 文字
4177 \emph default
4178
4179 \begin_inset Flex MenuItem
4180 status collapsed
4181
4182 \begin_layout Plain Layout
4183 Backspace
4184 \end_layout
4185
4186 \end_inset
4187
4188 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4189 \end_layout
4190
4191 \begin_layout Standard
4192 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4193 \end_layout
4194
4195 \begin_layout LyX-Code
4196
4197 \backslash
4198 kmod ' acute aeiouAEIOU
4199 \end_layout
4200
4201 \begin_layout Labeling
4202 \labelwidthstring 00.00.0000
4203 \begin_inset Flex Code
4204 status collapsed
4205
4206 \begin_layout Plain Layout
4207 ksmod
4208 \end_layout
4209
4210 \end_inset
4211
4212  アクセント文字に例外を指定する
4213 \end_layout
4214
4215 \begin_layout LyX-Code
4216
4217 \backslash
4218 kxmod  
4219 \family roman
4220 \emph on
4221 アクセント 文字 結果
4222 \end_layout
4223
4224 \begin_layout Standard
4225 これは
4226 \emph on
4227 文字
4228 \emph default
4229 上の
4230 \emph on
4231 アクセント
4232 \emph default
4233 について例外を指定するものです。ここで
4234 \emph on
4235 アクセント
4236 \emph default
4237 には、前出の
4238 \begin_inset Flex Code
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242
4243 \backslash
4244 kmod
4245 \end_layout
4246
4247 \end_inset
4248
4249 宣言で打鍵キーを既に割り当てられてなくてはならず、
4250 \emph on
4251 文字
4252 \emph default
4253
4254 \emph on
4255 アクセント
4256 \emph default
4257
4258 \emph on
4259 許可文字
4260 \emph default
4261 の集合に属していてはなりません。こうして
4262 \emph on
4263 アクセント
4264 \emph default
4265
4266 \emph on
4267 文字
4268 \emph default
4269 の順に入力すると、
4270 \emph on
4271 結果
4272 \emph default
4273 が出力されるようになります。
4274 \begin_inset Flex Code
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278 .kmap
4279 \end_layout
4280
4281 \end_inset
4282
4283 ファイルにこの宣言がない場合には、
4284 \emph on
4285 アクセント
4286 \emph default
4287
4288 \emph on
4289 文字
4290 \emph default
4291 と入力すると、
4292 \emph on
4293 アクセントキー
4294 \emph default
4295
4296 \emph on
4297 文字
4298 \emph default
4299
4300 \emph on
4301 アクセントキー
4302 \emph default
4303
4304 \begin_inset Flex Code
4305 status collapsed
4306
4307 \begin_layout Plain Layout
4308
4309 \backslash
4310 kmod
4311 \end_layout
4312
4313 \end_inset
4314
4315 宣言の最初の変数)と出力されます。
4316 \end_layout
4317
4318 \begin_layout Standard
4319 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4320 \end_layout
4321
4322 \begin_layout LyX-Code
4323
4324 \backslash
4325 kxmod acute i "
4326 \backslash
4327
4328 \backslash
4329 '{
4330 \backslash
4331
4332 \backslash
4333 i}"
4334 \end_layout
4335
4336 \begin_layout Labeling
4337 \labelwidthstring 00.00.0000
4338 \begin_inset Flex Code
4339 status collapsed
4340
4341 \begin_layout Plain Layout
4342 kcomb
4343 \end_layout
4344
4345 \end_inset
4346
4347  2つのアクセント文字を結合する
4348 \end_layout
4349
4350 \begin_layout LyX-Code
4351
4352 \backslash
4353 kcomb 
4354 \family roman
4355 \emph on
4356 アクセント1 アクセント2 許可文字
4357 \end_layout
4358
4359 \begin_layout Standard
4360 これはなかなか難解になってきます。これは
4361 \emph on
4362 アクセント1
4363 \emph default
4364
4365 \emph on
4366 アクセント2
4367 \emph default
4368 を(この順番で)結びつけて、
4369 \emph on
4370 許可文字
4371 \emph default
4372 に効果を及ぼすようにします。
4373 \emph on
4374 アクセント1
4375 \emph default
4376
4377 \emph on
4378 アクセント2
4379 \emph default
4380 の打鍵キーは、ファイル内のこのコマンド
4381 \emph on
4382 よりも前に
4383 \emph default
4384
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \backslash
4391 kmod
4392 \end_layout
4393
4394 \end_inset
4395
4396 コマンドで設定されていなくてはなりません。
4397 \end_layout
4398
4399 \begin_layout Standard
4400 \begin_inset Flex Code
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404 greek.kmap
4405 \end_layout
4406
4407 \end_inset
4408
4409 ファイル上にある例をとってみましょう。
4410 \end_layout
4411
4412 \begin_layout LyX-Code
4413
4414 \backslash
4415 kmod ; acute aeioyvhAEIOYVH 
4416 \backslash
4417 kmod : umlaut iyIY 
4418 \backslash
4419 kcomb acute umlaut iyIY
4420 \end_layout
4421
4422 \begin_layout Standard
4423 これは
4424 \begin_inset Flex MenuItem
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 ;:i
4429 \end_layout
4430
4431 \end_inset
4432
4433 を押すと
4434 \begin_inset Flex Code
4435 status collapsed
4436
4437 \begin_layout Plain Layout
4438
4439 \backslash
4440 '{
4441 \backslash
4442 "{i}}
4443 \end_layout
4444
4445 \end_inset
4446
4447 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4448 \begin_inset Flex MenuItem
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452 ;: Backspace i
4453 \end_layout
4454
4455 \end_inset
4456
4457 と押した場合には、
4458 \begin_inset Flex Code
4459 status collapsed
4460
4461 \begin_layout Plain Layout
4462
4463 \backslash
4464 '{i}
4465 \end_layout
4466
4467 \end_inset
4468
4469 となります。
4470 \end_layout
4471
4472 \begin_layout Subsection
4473 .cdefファイル
4474 \end_layout
4475
4476 \begin_layout Standard
4477 \begin_inset Flex Code
4478 status collapsed
4479
4480 \begin_layout Plain Layout
4481 .kmap
4482 \end_layout
4483
4484 \end_inset
4485
4486 による割り当てが行われた後、
4487 \begin_inset Flex Code
4488 status collapsed
4489
4490 \begin_layout Plain Layout
4491 .cdef
4492 \end_layout
4493
4494 \end_inset
4495
4496 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4497 頒布版には、現在のところ、少なくとも
4498 \begin_inset Flex Code
4499 status collapsed
4500
4501 \begin_layout Plain Layout
4502 iso8859-1.cdef
4503 \end_layout
4504
4505 \end_inset
4506
4507 ファイルと
4508 \begin_inset Flex Code
4509 status collapsed
4510
4511 \begin_layout Plain Layout
4512 iso8859-2.cdef
4513 \end_layout
4514
4515 \end_inset
4516
4517 ファイルが含まれています。
4518 \end_layout
4519
4520 \begin_layout Standard
4521 一般的に
4522 \begin_inset Flex Code
4523 status collapsed
4524
4525 \begin_layout Plain Layout
4526 .cdef
4527 \end_layout
4528
4529 \end_inset
4530
4531 ファイルは、
4532 \end_layout
4533
4534 \begin_layout LyX-Code
4535
4536 \family roman
4537 \emph on
4538 セット中の文字番号
4539 \family default
4540 \emph default
4541  
4542 \family roman
4543 \emph on
4544  文字列
4545 \end_layout
4546
4547 \begin_layout Standard
4548 という形の宣言の羅列です。たとえば、
4549 \begin_inset Flex MenuItem
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553
4554 \backslash
4555 '{e}
4556 \end_layout
4557
4558 \end_inset
4559
4560 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4561 \end_layout
4562
4563 \begin_layout LyX-Code
4564 233 "
4565 \backslash
4566
4567 \backslash
4568 '{e}"
4569 \end_layout
4570
4571 \begin_layout Standard
4572 ここで、
4573 \emph on
4574 文字列
4575 \emph default
4576 中の
4577 \begin_inset Flex Code
4578 status collapsed
4579
4580 \begin_layout Plain Layout
4581
4582 \backslash
4583
4584 \end_layout
4585
4586 \end_inset
4587
4588
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593 "
4594 \end_layout
4595
4596 \end_inset
4597
4598 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4599 \begin_inset Flex Code
4600 status collapsed
4601
4602 \begin_layout Plain Layout
4603 iso-8859-7.cdef
4604 \end_layout
4605
4606 \end_inset
4607
4608 ファイルには、
4609 \end_layout
4610
4611 \begin_layout LyX-Code
4612 192 "
4613 \backslash
4614
4615 \backslash
4616 '{
4617 \backslash
4618
4619 \backslash
4620
4621 \backslash
4622 "{i}}"
4623 \begin_inset Newline newline
4624 \end_inset
4625
4626 192 "
4627 \backslash
4628
4629 \backslash
4630
4631 \backslash
4632 "{
4633 \backslash
4634
4635 \backslash
4636 '{i}}"
4637 \end_layout
4638
4639 \begin_layout Standard
4640 という例があります。\SpecialChar LyX
4641 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4642 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4643 \end_layout
4644
4645 \begin_layout Subsection
4646 デッドキー
4647 \end_layout
4648
4649 \begin_layout Standard
4650 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4651 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4652 \end_layout
4653
4654 \begin_layout Standard
4655 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4656 \begin_inset Flex Code
4657 status collapsed
4658
4659 \begin_layout Plain Layout
4660 lyxrc
4661 \end_layout
4662
4663 \end_inset
4664
4665 ファイル中で、
4666 \begin_inset Flex MenuItem
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670 ^
4671 \end_layout
4672
4673 \end_inset
4674
4675 キー(すなわち
4676 \begin_inset Flex MenuItem
4677 status collapsed
4678
4679 \begin_layout Plain Layout
4680 Shift-6
4681 \end_layout
4682
4683 \end_inset
4684
4685 キー)を、\SpecialChar LyX
4686 コマンドの
4687 \begin_inset Flex Code
4688 status collapsed
4689
4690 \begin_layout Plain Layout
4691 accent-circumflex
4692 \end_layout
4693
4694 \end_inset
4695
4696 に結びつけることができます。すると
4697 \begin_inset Flex MenuItem
4698 status collapsed
4699
4700 \begin_layout Plain Layout
4701 ^
4702 \end_layout
4703
4704 \end_inset
4705
4706 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4707 \begin_inset Flex MenuItem
4708 status collapsed
4709
4710 \begin_layout Plain Layout
4711 ^e
4712 \end_layout
4713
4714 \end_inset
4715
4716 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4717 \begin_inset Flex MenuItem
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721 ^t
4722 \end_layout
4723
4724 \end_inset
4725
4726 」と打鍵したならば、「
4727 \begin_inset Flex MenuItem
4728 status collapsed
4729
4730 \begin_layout Plain Layout
4731 t
4732 \end_layout
4733
4734 \end_inset
4735
4736 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4737 はビープを鳴らして文句を付けます。デッドキーの後に
4738 \begin_inset Flex MenuItem
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742 スペース
4743 \end_layout
4744
4745 \end_inset
4746
4747 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4748 あります。たとえば、
4749 \begin_inset Flex MenuItem
4750 status collapsed
4751
4752 \begin_layout Plain Layout
4753 ,キー
4754 \end_layout
4755
4756 \end_inset
4757
4758 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4759 \end_layout
4760
4761 \begin_layout Standard
4762 デッドキーを割り当てるのによく用いられる方法は、
4763 \begin_inset Flex MenuItem
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767 Meta-
4768 \end_layout
4769
4770 \end_inset
4771
4772
4773 \begin_inset Flex MenuItem
4774 status collapsed
4775
4776 \begin_layout Plain Layout
4777 Ctrl-
4778 \end_layout
4779
4780 \end_inset
4781
4782
4783 \begin_inset Flex MenuItem
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 Shift-
4788 \end_layout
4789
4790 \end_inset
4791
4792 キーを、「
4793 \begin_inset Flex MenuItem
4794 status collapsed
4795
4796 \begin_layout Plain Layout
4797 ~
4798 \end_layout
4799
4800 \end_inset
4801
4802 」・「
4803 \begin_inset Flex MenuItem
4804 status collapsed
4805
4806 \begin_layout Plain Layout
4807 ,
4808 \end_layout
4809
4810 \end_inset
4811
4812 」・「
4813 \begin_inset Flex MenuItem
4814 status collapsed
4815
4816 \begin_layout Plain Layout
4817 ^
4818 \end_layout
4819
4820 \end_inset
4821
4822 」のようなアクセントと一緒に用いる方法です。また、
4823 \begin_inset Flex Code
4824 status collapsed
4825
4826 \begin_layout Plain Layout
4827 xmodmap
4828 \end_layout
4829
4830 \end_inset
4831
4832
4833 \begin_inset Flex Code
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837 xkeycaps
4838 \end_layout
4839
4840 \end_inset
4841
4842 を使って、特別な
4843 \begin_inset Flex Code
4844 status collapsed
4845
4846 \begin_layout Plain Layout
4847 Mode_Switch
4848 \end_layout
4849
4850 \end_inset
4851
4852 キーを設定する方法もあります。
4853 \begin_inset Flex Code
4854 status collapsed
4855
4856 \begin_layout Plain Layout
4857 Mode_Switch
4858 \end_layout
4859
4860 \end_inset
4861
4862 キーは、ちょうど
4863 \begin_inset Flex MenuItem
4864 status collapsed
4865
4866 \begin_layout Plain Layout
4867 Shift
4868 \end_layout
4869
4870 \end_inset
4871
4872 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4873 \begin_inset Flex Code
4874 status collapsed
4875
4876 \begin_layout Plain Layout
4877 usldead_cedilla
4878 \end_layout
4879
4880 \end_inset
4881
4882 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
4883 コマンドに割り当てることもできます
4884 \begin_inset Foot
4885 status collapsed
4886
4887 \begin_layout Plain Layout
4888
4889 \noun on
4890 John Weiss
4891 \noun default
4892 からの註:これはまさに私が、自分の
4893 \begin_inset Flex Code
4894 status collapsed
4895
4896 \begin_layout Plain Layout
4897 ~/.lyx/lyxrc
4898 \end_layout
4899
4900 \end_inset
4901
4902
4903 \begin_inset Flex Code
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907 ~/.xmodmap
4908 \end_layout
4909
4910 \end_inset
4911
4912 で行っていることです。私は、
4913 \begin_inset Flex MenuItem
4914 status collapsed
4915
4916 \begin_layout Plain Layout
4917 Scroll
4918 \begin_inset space ~
4919 \end_inset
4920
4921 Lock
4922 \end_layout
4923
4924 \end_inset
4925
4926 キーを
4927 \begin_inset Flex Code
4928 status collapsed
4929
4930 \begin_layout Plain Layout
4931 Mode_Shift
4932 \end_layout
4933
4934 \end_inset
4935
4936 に仕立てて、多数の
4937 \begin_inset Flex Code
4938 status collapsed
4939
4940 \begin_layout Plain Layout
4941 usldead_*
4942 \end_layout
4943
4944 \end_inset
4945
4946 シンボリックキーを
4947 \begin_inset Flex MenuItem
4948 status collapsed
4949
4950 \begin_layout Plain Layout
4951 Scroll
4952 \begin_inset space ~
4953 \end_inset
4954
4955 Lock-^
4956 \end_layout
4957
4958 \end_inset
4959
4960
4961 \begin_inset Flex MenuItem
4962 status collapsed
4963
4964 \begin_layout Plain Layout
4965 Scroll
4966 \begin_inset space ~
4967 \end_inset
4968
4969 Lock-~
4970 \end_layout
4971
4972 \end_inset
4973
4974 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4975 \end_layout
4976
4977 \end_inset
4978
4979 。この
4980 \begin_inset Flex Code
4981 status collapsed
4982
4983 \begin_layout Plain Layout
4984 Mode_Switch
4985 \end_layout
4986
4987 \end_inset
4988
4989 キーには、
4990 \begin_inset Flex MenuItem
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994 Ctrl-
4995 \end_layout
4996
4997 \end_inset
4998
4999 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5000 コマンドについては、
5001 \emph on
5002 \SpecialChar LyX
5003 関数説明書
5004 \emph default
5005
5006 \begin_inset Flex Code
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 LFUN_ACCENT_*
5011 \end_layout
5012
5013 \end_inset
5014
5015 の項をご覧ください。ここには完備した一覧があります。
5016 \end_layout
5017
5018 \begin_layout Subsection
5019 自分の言語設定を保存する
5020 \end_layout
5021
5022 \begin_layout Standard
5023 \begin_inset Flex MenuItem
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027 ツール\SpecialChar menuseparator
5028 設定
5029 \end_layout
5030
5031 \end_inset
5032
5033 ダイアログを使えば、\SpecialChar LyX
5034 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5035 \end_layout
5036
5037 \begin_layout Chapter
5038 文書クラス・レイアウト・ひな型の新規導入
5039 \begin_inset CommandInset label
5040 LatexCommand label
5041 name "cha:新規文書を導入"
5042
5043 \end_inset
5044
5045
5046 \begin_inset Argument 1
5047 status collapsed
5048
5049 \begin_layout Plain Layout
5050 文書クラスを新規に導入する
5051 \end_layout
5052
5053 \end_inset
5054
5055
5056 \end_layout
5057
5058 \begin_layout Standard
5059 この章では、新しく\SpecialChar LyX
5060 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5061 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5062 します。
5063 \end_layout
5064
5065 \begin_layout Standard
5066 まず、\SpecialChar LyX
5067 と\SpecialChar LaTeX
5068 の間の関係をどのように考えるべきか、若干の註釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5069 は、La\SpecialChar TeX
5070 について何も知らないと
5071 云うことです。実際のところ、\SpecialChar LyX
5072 の観点からは、\SpecialChar LaTeX
5073 は、\SpecialChar LyX
5074 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5075 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5076 は、とくに重要な形式ですが、\SpecialChar LyX
5077 がLa\SpecialChar TeX
5078 について持っている情報のほとんどは、実はプログラム本体には含まれて
5079 いないのです
5080 \begin_inset Foot
5081 status collapsed
5082
5083 \begin_layout Plain Layout
5084 過度に複雑なため、\SpecialChar LyX
5085 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5086 \end_layout
5087
5088 \end_inset
5089
5090 。このような情報は、
5091 \begin_inset Flex Code
5092 status collapsed
5093
5094 \begin_layout Plain Layout
5095 article.cls
5096 \end_layout
5097
5098 \end_inset
5099
5100 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5101 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5102 が知っていることは、レイア
5103 ウトファイルの中にあります。
5104 \end_layout
5105
5106 \begin_layout Standard
5107 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5108 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5109 構成体・DocBook構成体・XHTML構成体との
5110 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5111
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 article.cls
5117 \end_layout
5118
5119 \end_inset
5120
5121 について知っていることのほとんど総ては、
5122 \begin_inset Flex Code
5123 status collapsed
5124
5125 \begin_layout Plain Layout
5126 article.layout
5127 \end_layout
5128
5129 \end_inset
5130
5131 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5132 としては、
5133 \begin_inset Flex Code
5134 status collapsed
5135
5136 \begin_layout Plain Layout
5137 article.layout
5138 \end_layout
5139
5140 \end_inset
5141
5142
5143 \begin_inset Flex Code
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147 book.layout
5148 \end_layout
5149
5150 \end_inset
5151
5152 や、文書クラス用の他のレイアウトファイルに取り込まれている
5153 \begin_inset Flex Code
5154 status collapsed
5155
5156 \begin_layout Plain Layout
5157 stdsections.inc
5158 \end_layout
5159
5160 \end_inset
5161
5162 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5163 \begin_inset Flex Code
5164 status collapsed
5165
5166 \begin_layout Plain Layout
5167 stdsections.inc
5168 \end_layout
5169
5170 \end_inset
5171
5172 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5173 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5174 に知らせるものです。基本的に
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179 article.layout
5180 \end_layout
5181
5182 \end_inset
5183
5184 ファイルは、これらの
5185 \begin_inset Flex Code
5186 status collapsed
5187
5188 \begin_layout Plain Layout
5189 std*.inc
5190 \end_layout
5191
5192 \end_inset
5193
5194 ファイルを取り込んでいるだけのものです。
5195 \end_layout
5196
5197 \begin_layout Standard
5198 しかしながら、\SpecialChar LyX
5199 –\SpecialChar LaTeX
5200 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5201 構成体自身が画面上にどのように表
5202 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5203 ます。ある段落様式を\SpecialChar LaTeX
5204 に翻訳する仕方を\SpecialChar LyX
5205 に指示することは、その表示の仕方を\SpecialChar LyX
5206 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5207 に指示することは、その段落様
5208 式をどのように\SpecialChar LaTeX
5209 に翻訳するかを\SpecialChar LyX
5210 に指示するものではありません(ましてや\SpecialChar LaTeX
5211 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5212 構成体を定義する際には、(
5213 i)
5214 \begin_inset space ~
5215 \end_inset
5216
5217 \SpecialChar LaTeX
5218 にどのように翻訳するかを\SpecialChar LyX
5219 に指示する、(ii)
5220 \begin_inset space ~
5221 \end_inset
5222
5223 それをどのように表示するかを\SpecialChar LyX
5224 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5225 \end_layout
5226
5227 \begin_layout Standard
5228 もちろん、\SpecialChar LyX
5229 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5230 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5231 力するにあたって、当該段落を\SpecialChar LyX
5232 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5233 が内部的に行うことと、外部的に行う物事の間の区
5234 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5235 \begin_inset CommandInset ref
5236 LatexCommand ref
5237 reference "sec:XHTML出力のタグ"
5238
5239 \end_inset
5240
5241 節をご覧ください。
5242 \end_layout
5243
5244 \begin_layout Section
5245 新しい\SpecialChar LaTeX
5246 ファイルの導入
5247 \end_layout
5248
5249 \begin_layout Standard
5250 頒布版によっては、\SpecialChar LyX
5251 で使いたい\SpecialChar LaTeX
5252 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5253 パッケージである、Foil\SpecialChar TeX
5254 がないかもしれません。\SpecialChar TeX
5255 Live(2008年以降)やMiK\SpecialChar TeX
5256 のような最近の\SpecialChar LaTeX
5257 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5258 ースが用意されています。たとえば、MiK\SpecialChar TeX
5259 では、付属の「Package
5260 \begin_inset space ~
5261 \end_inset
5262
5263 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5264 ださい。
5265 \end_layout
5266
5267 \begin_layout Standard
5268 お使いの\SpecialChar LaTeX
5269 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5270 してください。
5271 \end_layout
5272
5273 \begin_layout Enumerate
5274 \begin_inset CommandInset href
5275 LatexCommand href
5276 name "CTAN"
5277 target "http://www.ctan.org/"
5278
5279 \end_inset
5280
5281 などから欲しいパッケージを入手してください。
5282 \end_layout
5283
5284 \begin_layout Enumerate
5285 パッケージに「
5286 \begin_inset Flex Code
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290 .ins
5291 \end_layout
5292
5293 \end_inset
5294
5295 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5296 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5297 \begin_inset Flex Code
5298 status collapsed
5299
5300 \begin_layout Plain Layout
5301 latex foiltex.ins
5302 \end_layout
5303
5304 \end_inset
5305
5306 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5307 パッケージは圧縮されていないので、このステップは飛ばすこ
5308 とができます。
5309 \end_layout
5310
5311 \begin_layout Enumerate
5312 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5313 \begin_inset Separator parbreak
5314 \end_inset
5315
5316
5317 \end_layout
5318
5319 \begin_deeper
5320 \begin_layout Enumerate
5321 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5322 ツリーに導入し、そうでなければ「ユー
5323 ザー」\SpecialChar TeX
5324 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5325 \begin_inset Flex Code
5326 status collapsed
5327
5328 \begin_layout Plain Layout
5329 texmf.cnf
5330 \end_layout
5331
5332 \end_inset
5333
5334 ファイルを参照してください
5335 \begin_inset Foot
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339 このファイルは、通常
5340 \family sans
5341 $TEXMF/web2c
5342 \family default
5343 ディレクトリにありますが、コマンド
5344 \begin_inset Flex Code
5345 status collapsed
5346
5347 \begin_layout Plain Layout
5348 kpsewhich texmf.cnf
5349 \end_layout
5350
5351 \end_inset
5352
5353 を実行してその場所を見つけることもできます。
5354 \end_layout
5355
5356 \end_inset
5357
5358 。「ローカル」\SpecialChar TeX
5359 ツリーの場所は、
5360 \begin_inset Flex Code
5361 status collapsed
5362
5363 \begin_layout Plain Layout
5364 TEXMFLOCAL
5365 \end_layout
5366
5367 \end_inset
5368
5369 変数で定義されており、通常は
5370 \begin_inset Flex Code
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374 /usr/local/share/texmf/
5375 \end_layout
5376
5377 \end_inset
5378
5379 のような場所になっています。「ユーザー」\SpecialChar TeX
5380 ツリーの場所は、
5381 \begin_inset Flex Code
5382 status collapsed
5383
5384 \begin_layout Plain Layout
5385 TEXMFHOME
5386 \end_layout
5387
5388 \end_inset
5389
5390 で定義されており、通常は
5391 \begin_inset Flex Code
5392 status collapsed
5393
5394 \begin_layout Plain Layout
5395 $HOME/texmf/
5396 \end_layout
5397
5398 \end_inset
5399
5400 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5401 、「ユーザー」ツリーにはこのような制限はありません。
5402 \begin_inset Newline newline
5403 \end_inset
5404
5405 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5406 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5407 \end_layout
5408
5409 \begin_layout Enumerate
5410 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5411 の導入されているフォルダのサブフォルダ
5412 \begin_inset Flex Code
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416 ~
5417 \backslash
5418 tex
5419 \backslash
5420 latex
5421 \end_layout
5422
5423 \end_inset
5424
5425 に移動します(MiK\SpecialChar TeX
5426 の既定値では、これは
5427 \begin_inset Flex Code
5428 status collapsed
5429
5430 \begin_layout Plain Layout
5431 ~:Programs
5432 \backslash
5433 MiKTeX
5434 \backslash
5435 tex
5436 \backslash
5437 latex
5438 \end_layout
5439
5440 \end_inset
5441
5442 です)
5443 \begin_inset Foot
5444 status open
5445
5446 \begin_layout Plain Layout
5447 これは、英語版でのみ正しいパスになっています。独語版では
5448 \begin_inset Flex Code
5449 status collapsed
5450
5451 \begin_layout Plain Layout
5452 ~:Programme
5453 \backslash
5454 MiKTeX
5455 \backslash
5456 tex
5457 \backslash
5458 latex
5459 \end_layout
5460
5461 \end_inset
5462
5463 となり、他の言語でも同様です。
5464 \end_layout
5465
5466 \end_inset
5467
5468 。ここに新規フォルダ
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 foiltex
5474 \end_layout
5475
5476 \end_inset
5477
5478 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5479 フォルダで同じ
5480 ことを行います。たとえばMiK\SpecialChar TeX
5481
5482 \begin_inset space ~
5483 \end_inset
5484
5485 2.8では、これはWinXP上では
5486 \begin_inset Newline newline
5487 \end_inset
5488
5489
5490 \begin_inset Flex Code
5491 status collapsed
5492
5493 \begin_layout Plain Layout
5494 ~:
5495 \backslash
5496 Documents and Settings
5497 \backslash
5498 <ユーザー名>
5499 \backslash
5500 Application Data
5501 \backslash
5502
5503 \end_layout
5504
5505 \end_inset
5506
5507
5508 \begin_inset Newline newline
5509 \end_inset
5510
5511
5512 \begin_inset Phantom HPhantom
5513 status open
5514
5515 \begin_layout Plain Layout
5516
5517 \family typewriter
5518 ~:
5519 \backslash
5520
5521 \end_layout
5522
5523 \end_inset
5524
5525
5526 \begin_inset Flex Code
5527 status collapsed
5528
5529 \begin_layout Plain Layout
5530 MiKTeX
5531 \backslash
5532 2.8
5533 \backslash
5534 tex
5535 \backslash
5536 latex
5537 \end_layout
5538
5539 \end_inset
5540
5541
5542 \begin_inset Newline newline
5543 \end_inset
5544
5545 フォルダ、WinVista上では
5546 \begin_inset Newline newline
5547 \end_inset
5548
5549
5550 \begin_inset Flex Code
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 ~:
5555 \backslash
5556 Users
5557 \backslash
5558 <ユーザー名>
5559 \backslash
5560 AppData
5561 \backslash
5562 Roaming
5563 \backslash
5564 2.8
5565 \backslash
5566 MiKTeX
5567 \backslash
5568 tex
5569 \backslash
5570 latex
5571 \end_layout
5572
5573 \end_inset
5574
5575
5576 \begin_inset Newline newline
5577 \end_inset
5578
5579 フォルダになります。
5580 \end_layout
5581
5582 \end_deeper
5583 \begin_layout Enumerate
5584 ここまで来れば、あとは\SpecialChar LaTeX
5585 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5586 頒布版に依存します。
5587 \begin_inset Separator parbreak
5588 \end_inset
5589
5590
5591 \end_layout
5592
5593 \begin_deeper
5594 \begin_layout Enumerate
5595 \SpecialChar TeX
5596 Liveの場合には、コンソールから
5597 \begin_inset Flex Code
5598 status collapsed
5599
5600 \begin_layout Plain Layout
5601 texhash
5602 \end_layout
5603
5604 \end_inset
5605
5606 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5607 \end_layout
5608
5609 \begin_layout Enumerate
5610 MiK\SpecialChar TeX
5611 では、パッケージを全ユーザー用に導入した場合には、「Settings
5612 \begin_inset space ~
5613 \end_inset
5614
5615 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5616
5617 \end_layout
5618
5619 \end_deeper
5620 \begin_layout Enumerate
5621 最後に、\SpecialChar LyX
5622 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5623 からツール\SpecialChar menuseparator
5624 環境構成メニューを実行して、\SpecialChar LyX
5625 を再起動します。
5626 \end_layout
5627
5628 \begin_layout Standard
5629 これでパッケージが導入されました。この例では、文書クラス
5630 \begin_inset Flex Code
5631 status collapsed
5632
5633 \begin_layout Plain Layout
5634 Slides
5635 \begin_inset space ~
5636 \end_inset
5637
5638 (FoilTeX)
5639 \end_layout
5640
5641 \end_inset
5642
5643
5644 \begin_inset Flex MenuItem
5645 status collapsed
5646
5647 \begin_layout Plain Layout
5648 文書\SpecialChar menuseparator
5649 設定\SpecialChar menuseparator
5650 文書クラス
5651 \end_layout
5652
5653 \end_inset
5654
5655 で利用可能になっているはずです。
5656 \end_layout
5657
5658 \begin_layout Standard
5659 \begin_inset Flex MenuItem
5660 status collapsed
5661
5662 \begin_layout Plain Layout
5663 文書\SpecialChar menuseparator
5664 設定\SpecialChar menuseparator
5665 文書クラス
5666 \end_layout
5667
5668 \end_inset
5669
5670 メニューに列挙されてもいない\SpecialChar LaTeX
5671 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5672 \end_layout
5673
5674 \begin_layout Section
5675 レイアウトファイルの型
5676 \end_layout
5677
5678 \begin_layout Standard
5679 この節は、レイアウト情報を含む各種\SpecialChar LyX
5680 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5681 がそれらをどのように
5682 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5683 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5684 \end_layout
5685
5686 \begin_layout Standard
5687 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5688 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5689 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5690 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5691 を出していますので、気軽に質問を投げかけてみてください。
5692 \end_layout
5693
5694 \begin_layout Standard
5695 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5696 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5697 文書クラス用の\SpecialChar LyX
5698 レイアウトを作ったり、
5699 他の人々にも有用なモジュールをお書きになった場合には、
5700 \begin_inset CommandInset href
5701 LatexCommand href
5702 name "LyX Wikiのレイアウトに関する節"
5703 target "http://wiki.lyx.org/Layouts/Layouts"
5704
5705 \end_inset
5706
5707 か、\SpecialChar LyX
5708 開発者メーリングリストに投稿して、\SpecialChar LyX
5709 頒布版に同梱することができるようにしてください
5710 \begin_inset Foot
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714 \SpecialChar LyX
5715 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5716 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5717 \end_layout
5718
5719 \end_inset
5720
5721
5722 \end_layout
5723
5724 \begin_layout Subsection
5725 レイアウトモジュール
5726 \begin_inset CommandInset label
5727 LatexCommand label
5728 name "subsec:レイアウトモジュール"
5729
5730 \end_inset
5731
5732
5733 \end_layout
5734
5735 \begin_layout Standard
5736 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5737 、それは
5738 \begin_inset Flex Code
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 .layout
5743 \end_layout
5744
5745 \end_inset
5746
5747 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5748 に提供するものを指します。しかしながら、\SpecialChar LyX
5749  1.6以降、レイアウト情報は、拡張子が
5750 \begin_inset Flex Code
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754 .module
5755 \end_layout
5756
5757 \end_inset
5758
5759 のレイアウト
5760 \emph on
5761 モジュール
5762 \emph default
5763 にも含めることができます。レイアウトが\SpecialChar LaTeX
5764 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5765 パッケージに対応するものであり、
5766 \begin_inset Flex Code
5767 status collapsed
5768
5769 \begin_layout Plain Layout
5770 endnotes
5771 \end_layout
5772
5773 \end_inset
5774
5775 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5776 イアウトで使用できるという意味において、一面、
5777 \begin_inset Flex Code
5778 status collapsed
5779
5780 \begin_layout Plain Layout
5781 stdsections.inc
5782 \end_layout
5783
5784 \end_inset
5785
5786 等のインクルードファイル
5787 \begin_inset Foot
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791 これらは任意の拡張子をつけることができますが、慣習的に
5792 \begin_inset Flex Code
5793 status collapsed
5794
5795 \begin_layout Plain Layout
5796 .inc
5797 \end_layout
5798
5799 \end_inset
5800
5801 拡張子が用いられます。
5802 \end_layout
5803
5804 \end_inset
5805
5806 のようなものです。相異なる点といえば、
5807 \begin_inset Flex Code
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 article.cls
5812 \end_layout
5813
5814 \end_inset
5815
5816 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5817 \begin_inset Flex MenuItem
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 文書\SpecialChar menuseparator
5822 設定
5823 \end_layout
5824
5825 \end_inset
5826
5827 ダイアログで選択するだけですみます。
5828 \end_layout
5829
5830 \begin_layout Standard
5831 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5832 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5833 \end_layout
5834
5835 \begin_layout Standard
5836 新しいモジュールを作成し、それを
5837 \begin_inset Flex Code
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 layout/
5842 \end_layout
5843
5844 \end_inset
5845
5846 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
5847 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
5848 \begin_inset Flex MenuItem
5849 status collapsed
5850
5851 \begin_layout Plain Layout
5852 文書\SpecialChar menuseparator
5853 設定
5854 \end_layout
5855
5856 \end_inset
5857
5858 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5859 \emph on
5860 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5861 \emph default
5862 。もっと言えば、
5863 \emph on
5864 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5865 \emph default
5866 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
5867 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
5868 とがあるからです。
5869 \end_layout
5870
5871 \begin_layout Subsubsection
5872 ローカルレイアウト
5873 \end_layout
5874
5875 \begin_layout Standard
5876 \SpecialChar LyX
5877 に於けるモジュールは、\SpecialChar LaTeX
5878 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
5879 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
5880 \end_layout
5881
5882 \begin_layout Standard
5883 これは、
5884 \family sans
5885 文書\SpecialChar menuseparator
5886 設定\SpecialChar menuseparator
5887 ローカルのレイアウト
5888 \family default
5889 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5890 は、その文書専属のモジュールだと考えることができます。したがって、
5891 \begin_inset Flex Code
5892 status collapsed
5893
5894 \begin_layout Plain Layout
5895 Format
5896 \end_layout
5897
5898 \end_inset
5899
5900 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5901  2.1では、最新書式は48です)。また、
5902 ローカルレイアウトは、\SpecialChar LyX
5903  1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
5904  1.5またはそれ以前の版に(ローカルレイアウト
5905 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5906 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
5907  1.6で使用できるレイアウト要素のみを使用してください。
5908 \end_layout
5909
5910 \begin_layout Standard
5911 \begin_inset Flex Code
5912 status collapsed
5913
5914 \begin_layout Plain Layout
5915 ローカルのレイアウト
5916 \end_layout
5917
5918 \end_inset
5919
5920 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
5921 ているかどうかが検証されます。すると、\SpecialChar LyX
5922 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
5923 をターミナル(
5924 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
5925 \end_layout
5926
5927 \begin_layout Standard
5928 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
5929 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
5930 \end_layout
5931
5932 \begin_layout Subsection
5933 \begin_inset Flex MenuItem
5934 status collapsed
5935
5936 \begin_layout Plain Layout
5937 .sty
5938 \end_layout
5939
5940 \end_inset
5941
5942 ファイル用のレイアウト
5943 \end_layout
5944
5945 \begin_layout Standard
5946 新しく\SpecialChar LaTeX
5947 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
5948 クラス(
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 .cls
5954 \end_layout
5955
5956 \end_inset
5957
5958 )ファイルが絡む場合と、スタイル(
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 .sty
5964 \end_layout
5965
5966 \end_inset
5967
5968 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5969 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5970 が当てはまります。
5971 \end_layout
5972
5973 \begin_layout Standard
5974 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5975 \begin_inset Flex MenuItem
5976 status collapsed
5977
5978 \begin_layout Plain Layout
5979 myclass.sty
5980 \end_layout
5981
5982 \end_inset
5983
5984 という名称で、標準的なクラスである
5985 \begin_inset Flex MenuItem
5986 status collapsed
5987
5988 \begin_layout Plain Layout
5989 report.cls
5990 \end_layout
5991
5992 \end_inset
5993
5994 と共に用いられるものと仮定しましょう。
5995 \end_layout
5996
5997 \begin_layout Standard
5998 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
5999 \begin_inset Foot
6000 status collapsed
6001
6002 \begin_layout Plain Layout
6003 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6004 では、起動時に
6005 \begin_inset Flex MenuItem
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 -userdir
6010 \end_layout
6011
6012 \end_inset
6013
6014 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6015 \end_layout
6016
6017 \end_inset
6018
6019
6020 \end_layout
6021
6022 \begin_layout LyX-Code
6023 cp report.layout ~/.lyx/layouts/myclass.layout
6024 \end_layout
6025
6026 \begin_layout Standard
6027 それから、
6028 \begin_inset Flex Code
6029 status collapsed
6030
6031 \begin_layout Plain Layout
6032 myclass.layout
6033 \end_layout
6034
6035 \end_inset
6036
6037 を編集して、
6038 \end_layout
6039
6040 \begin_layout LyX-Code
6041
6042 \backslash
6043 DeclareLaTeXClass{report}
6044 \end_layout
6045
6046 \begin_layout Standard
6047 という行を
6048 \end_layout
6049
6050 \begin_layout LyX-Code
6051
6052 \backslash
6053 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6054 \end_layout
6055
6056 \begin_layout Standard
6057 のように変更してください。それから、ファイル冒頭辺りに
6058 \end_layout
6059
6060 \begin_layout LyX-Code
6061 Preamble 
6062 \begin_inset Newline newline
6063 \end_inset
6064
6065     
6066 \backslash
6067 usepackage{myclass}
6068 \begin_inset Newline newline
6069 \end_inset
6070
6071 EndPreamble
6072 \end_layout
6073
6074 \begin_layout Standard
6075 と書き加えてください。
6076 \end_layout
6077
6078 \begin_layout Standard
6079 \SpecialChar LyX
6080 を起動して
6081 \begin_inset Flex MenuItem
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 ツール\SpecialChar menuseparator
6086 環境構成
6087 \end_layout
6088
6089 \end_inset
6090
6091 を選択してください。それから\SpecialChar LyX
6092 を再起動し、新規文書を作成してみてください。すると、
6093 \begin_inset Flex MenuItem
6094 status collapsed
6095
6096 \begin_layout Plain Layout
6097 文書\SpecialChar menuseparator
6098 設定
6099 \end_layout
6100
6101 \end_inset
6102
6103 ダイアログの文書クラスオプションに「
6104 \begin_inset Flex MenuItem
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 report (myclass)
6109 \end_layout
6110
6111 \end_inset
6112
6113 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6114 \begin_inset Flex Code
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 report
6119 \end_layout
6120
6121 \end_inset
6122
6123 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6124 \begin_inset Flex Code
6125 status collapsed
6126
6127 \begin_layout Plain Layout
6128 stdsections.inc
6129 \end_layout
6130
6131 \end_inset
6132
6133 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6134 \begin_inset Flex Code
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 stdsections.inc
6139 \end_layout
6140
6141 \end_inset
6142
6143 も取り込む
6144 \begin_inset Flex Code
6145 status collapsed
6146
6147 \begin_layout Plain Layout
6148 Input stdclass.inc
6149 \end_layout
6150
6151 \end_inset
6152
6153 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6154 \end_layout
6155
6156 \begin_layout LyX-Code
6157 Style Chapter
6158 \end_layout
6159
6160 \begin_layout LyX-Code
6161     Font
6162 \end_layout
6163
6164 \begin_layout LyX-Code
6165         Family Sans
6166 \end_layout
6167
6168 \begin_layout LyX-Code
6169     EndFont
6170 \end_layout
6171
6172 \begin_layout LyX-Code
6173 End
6174 \end_layout
6175
6176 \begin_layout Standard
6177 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6178 \end_layout
6179
6180 \begin_layout Standard
6181 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6182 いては、第
6183 \begin_inset CommandInset ref
6184 LatexCommand ref
6185 reference "sec:テキストクラス"
6186
6187 \end_inset
6188
6189 節の情報を参照してください。
6190 \end_layout
6191
6192 \begin_layout Standard
6193 もし
6194 \begin_inset Flex Code
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 myclass.sty
6199 \end_layout
6200
6201 \end_inset
6202
6203 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6204 う。最も簡単なモジュールの例としては、以下のようなものになります。
6205 \end_layout
6206
6207 \begin_layout LyX-Code
6208 #
6209 \backslash
6210 DeclareLyXModule{My Package}
6211 \end_layout
6212
6213 \begin_layout LyX-Code
6214 #DescriptionBegin
6215 \end_layout
6216
6217 \begin_layout LyX-Code
6218 #Support for mypkg.sty.
6219 \end_layout
6220
6221 \begin_layout LyX-Code
6222 #DescriptionEnd
6223 \begin_inset Newline newline
6224 \end_inset
6225
6226
6227 \end_layout
6228
6229 \begin_layout LyX-Code
6230 Format 35
6231 \begin_inset Newline newline
6232 \end_inset
6233
6234
6235 \end_layout
6236
6237 \begin_layout LyX-Code
6238 Preamble
6239 \begin_inset Newline newline
6240 \end_inset
6241
6242     
6243 \backslash
6244 usepackage{mypkg}
6245 \begin_inset Newline newline
6246 \end_inset
6247
6248 EndPreamble
6249 \end_layout
6250
6251 \begin_layout Standard
6252 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6253 \begin_inset CommandInset ref
6254 LatexCommand ref
6255 reference "sec:テキストクラス"
6256
6257 \end_inset
6258
6259 節を参照してください。
6260 \end_layout
6261
6262 \begin_layout Subsection
6263 \begin_inset Flex MenuItem
6264 status collapsed
6265
6266 \begin_layout Plain Layout
6267 .cls
6268 \end_layout
6269
6270 \end_inset
6271
6272 ファイル用のレイアウト
6273 \end_layout
6274
6275 \begin_layout Standard
6276 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6277 \begin_inset Flex MenuItem
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 book.cls
6282 \end_layout
6283
6284 \end_inset
6285
6286 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290
6291 \backslash
6292 LoadClass{book}
6293 \end_layout
6294
6295 \begin_layout Standard
6296 という行がないかどうか探してください。もしこれがあれば、
6297 \begin_inset Flex Code
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 Declare\SpecialChar LaTeX
6302 Class
6303 \end_layout
6304
6305 \end_inset
6306
6307 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6308 \begin_inset Flex Code
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 thesis
6313 \end_layout
6314
6315 \end_inset
6316
6317 であり、
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 book
6323 \end_layout
6324
6325 \end_inset
6326
6327 クラスに基づいていれば、
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 Declare\SpecialChar LaTeX
6333 Class
6334 \end_layout
6335
6336 \end_inset
6337
6338 行は以下のようにします
6339 \begin_inset Foot
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 さらに\SpecialChar LyX
6344 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6345 \begin_inset Flex Code
6346 status collapsed
6347
6348 \begin_layout Plain Layout
6349 thesis.layout
6350 \end_layout
6351
6352 \end_inset
6353
6354 という名前で保存するのが最も簡単です。 
6355 \end_layout
6356
6357 \end_inset
6358
6359
6360 \end_layout
6361
6362 \begin_layout LyX-Code
6363
6364 \backslash
6365 DeclareLaT
6366 \begin_inset ERT
6367 status collapsed
6368
6369 \begin_layout Plain Layout
6370
6371 {}
6372 \end_layout
6373
6374 \end_inset
6375
6376 eXClass[thesis,book]{thesis}
6377 \end_layout
6378
6379 \begin_layout Standard
6380 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6381 クラスを使用してい
6382 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6383 業の開始点としてください。
6384 \end_layout
6385
6386 \begin_layout Subsection
6387 ひな型を作成する
6388 \begin_inset CommandInset label
6389 LatexCommand label
6390 name "sec:ひな型を作成する"
6391
6392 \end_inset
6393
6394
6395 \end_layout
6396
6397 \begin_layout Standard
6398 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6399 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6400 添付のひな型をあれこれ見てみるのもよいでしょう。
6401 \end_layout
6402
6403 \begin_layout Standard
6404 ひな型は、通常の文書と同様、\SpecialChar LyX
6405 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6406 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6407 \begin_inset Flex Code
6408 status collapsed
6409
6410 \begin_layout Plain Layout
6411
6412 \backslash
6413 fontscheme
6414 \end_layout
6415
6416 \end_inset
6417
6418
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423
6424 \backslash
6425 papersize
6426 \end_layout
6427
6428 \end_inset
6429
6430 などの対応するコマンドをひな型\SpecialChar LyX
6431 ファイルから取り除く必要があります。これは、たとえば
6432 \begin_inset Flex Code
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436 vi
6437 \end_layout
6438
6439 \end_inset
6440
6441
6442 \begin_inset Flex Code
6443 status collapsed
6444
6445 \begin_layout Plain Layout
6446 notepad
6447 \end_layout
6448
6449 \end_inset
6450
6451 のような、どの軽いテキストエディタでも行うことができます。
6452 \end_layout
6453
6454 \begin_layout Standard
6455 編集したひな型を
6456 \begin_inset Flex Code
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460 UserDir/templates/
6461 \end_layout
6462
6463 \end_inset
6464
6465 に置き、グローバルなひな型ディレクトリ
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 LyXDir/templates/
6471 \end_layout
6472
6473 \end_inset
6474
6475 から使用したいものを同じ場所にコピーし、
6476 \begin_inset Flex MenuItem
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 ツール\SpecialChar menuseparator
6481 設定\SpecialChar menuseparator
6482 パス
6483 \end_layout
6484
6485 \end_inset
6486
6487 ダイアログのひな型パスを再定義してください。
6488 \end_layout
6489
6490 \begin_layout Standard
6491 ところで、特別な意味を持つひな型
6492 \begin_inset Flex Code
6493 status collapsed
6494
6495 \begin_layout Plain Layout
6496 defaults.lyx
6497 \end_layout
6498
6499 \end_inset
6500
6501 があることに注意してください。このひな型は、
6502 \begin_inset Flex MenuItem
6503 status collapsed
6504
6505 \begin_layout Plain Layout
6506 ファイル\SpecialChar menuseparator
6507 新規
6508 \end_layout
6509
6510 \end_inset
6511
6512 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6513 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6514 開き、
6515 \begin_inset Flex MenuItem
6516 status collapsed
6517
6518 \begin_layout Plain Layout
6519 文書既定値として保存
6520 \end_layout
6521
6522 \end_inset
6523
6524 ボタンを押すことです。
6525 \end_layout
6526
6527 \begin_layout Subsection
6528 旧レイアウトファイルの更新
6529 \end_layout
6530
6531 \begin_layout Standard
6532 レイアウトファイルの書式は、\SpecialChar LyX
6533 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6534 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6535 は、
6536 自動的に変換ツール
6537 \begin_inset Flex Code
6538 status collapsed
6539
6540 \begin_layout Plain Layout
6541 \SpecialChar LyX
6542 Dir/scripts/layout2layout.py
6543 \end_layout
6544
6545 \end_inset
6546
6547 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6548 がこれを毎回行な
6549 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6550 \end_layout
6551
6552 \begin_layout Enumerate
6553 ファイル
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 myclass.layout
6559 \end_layout
6560
6561 \end_inset
6562
6563
6564 \begin_inset Flex Code
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 myclass.old
6569 \end_layout
6570
6571 \end_inset
6572
6573 に改称
6574 \end_layout
6575
6576 \begin_layout Enumerate
6577 以下のコマンドをコール
6578 \begin_inset Newline newline
6579 \end_inset
6580
6581
6582 \begin_inset Flex Code
6583 status collapsed
6584
6585 \begin_layout Plain Layout
6586 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6587 \end_layout
6588
6589 \end_inset
6590
6591
6592 \begin_inset Newline newline
6593 \end_inset
6594
6595 ここで
6596 \begin_inset Flex Code
6597 status collapsed
6598
6599 \begin_layout Plain Layout
6600 LyXDir
6601 \end_layout
6602
6603 \end_inset
6604
6605 は\SpecialChar LyX
6606 システムディレクトリの名前です。
6607 \end_layout
6608
6609 \begin_layout Standard
6610 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6611 \end_layout
6612
6613 \begin_layout Section
6614 \begin_inset CommandInset label
6615 LatexCommand label
6616 name "sec:テキストクラス"
6617
6618 \end_inset
6619
6620 レイアウトファイルの書式
6621 \end_layout
6622
6623 \begin_layout Standard
6624 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6625 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6626 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6627 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6628 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6629 \end_layout
6630
6631 \begin_layout Standard
6632 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6633 \begin_inset Flex Code
6634 status collapsed
6635
6636 \begin_layout Plain Layout
6637 Style
6638 \end_layout
6639
6640 \end_inset
6641
6642
6643 \begin_inset Flex Code
6644 status collapsed
6645
6646 \begin_layout Plain Layout
6647 style
6648 \end_layout
6649
6650 \end_inset
6651
6652
6653 \begin_inset Flex Code
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 StYlE
6658 \end_layout
6659
6660 \end_inset
6661
6662 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667
6668 \emph on
6669 強調
6670 \end_layout
6671
6672 \end_inset
6673
6674 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6675 \begin_inset Flex Code
6676 status collapsed
6677
6678 \begin_layout Plain Layout
6679 浮動小数点型=
6680 \emph on
6681 既定値
6682 \end_layout
6683
6684 \end_inset
6685
6686 のように表示されます。
6687 \end_layout
6688
6689 \begin_layout Subsection
6690 文書クラス宣言と分類
6691 \end_layout
6692
6693 \begin_layout Standard
6694 レイアウトファイル中の
6695 \begin_inset Flex Code
6696 status collapsed
6697
6698 \begin_layout Plain Layout
6699 #
6700 \end_layout
6701
6702 \end_inset
6703
6704 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6705 \begin_inset Flex Code
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 *.layout
6710 \end_layout
6711
6712 \end_inset
6713
6714 ファイルは、以下のような行で始めなくてはならないのです。
6715 \end_layout
6716
6717 \begin_layout LyX-Code
6718
6719 \size small
6720 #% Do not delete the line below; configure depends on this
6721 \end_layout
6722
6723 \begin_layout LyX-Code
6724
6725 \size small
6726 #  
6727 \backslash
6728 DeclareLaTeXClass{Article (Standard Class)}
6729 \end_layout
6730
6731 \begin_layout LyX-Code
6732
6733 \size small
6734 #  
6735 \backslash
6736 DeclareCategory{Articles}
6737 \end_layout
6738
6739 \begin_layout Standard
6740 2行目と3行目は、\SpecialChar LyX
6741 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6742 スクリプト
6743 \begin_inset Flex Code
6744 status collapsed
6745
6746 \begin_layout Plain Layout
6747 chkconfig.ltx
6748 \end_layout
6749
6750 \end_inset
6751
6752 が、
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 #
6758 \end_layout
6759
6760 \end_inset
6761
6762 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6763 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
6764 行が
6765 \begin_inset Flex Code
6766 status collapsed
6767
6768 \begin_layout Plain Layout
6769 article.layout
6770 \end_layout
6771
6772 \end_inset
6773
6774 と名付けられたファイルにあると、
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 article
6780 \end_layout
6781
6782 \end_inset
6783
6784 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
6785 文書クラス
6786 \begin_inset Flex Code
6787 status collapsed
6788
6789 \begin_layout Plain Layout
6790 article.cls
6791 \end_layout
6792
6793 \end_inset
6794
6795 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
6796 \begin_inset Flex MenuItem
6797 status collapsed
6798
6799 \begin_layout Plain Layout
6800 文書\SpecialChar menuseparator
6801 設定
6802 \end_layout
6803
6804 \end_inset
6805
6806 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
6807 \begin_inset Flex MenuItem
6808 status collapsed
6809
6810 \begin_layout Plain Layout
6811 文書\SpecialChar menuseparator
6812 設定
6813 \end_layout
6814
6815 \end_inset
6816
6817 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
6818 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
6819 rized」グループに属することになります。
6820 \end_layout
6821
6822 \begin_layout Standard
6823 節見出し表示に変更を加えた、
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 article.cls
6829 \end_layout
6830
6831 \end_inset
6832
6833 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 myarticle.layout
6839 \end_layout
6840
6841 \end_inset
6842
6843 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6844 \end_layout
6845
6846 \begin_layout LyX-Code
6847
6848 \size small
6849 #% Do not delete the line below; configure depends on this 
6850 \end_layout
6851
6852 \begin_layout LyX-Code
6853
6854 \size small
6855 #  
6856 \backslash
6857 DeclareLaTeXClass[article]{article (with My Own Headings)}
6858 \end_layout
6859
6860 \begin_layout LyX-Code
6861
6862 \size small
6863 #  
6864 \backslash
6865 DeclareCategory{Articles}
6866 \end_layout
6867
6868 \begin_layout Standard
6869 これは、\SpecialChar LaTeX
6870 文書クラス
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 article.cls
6876 \end_layout
6877
6878 \end_inset
6879
6880 に関連づけられ、「Article (with My Own Headings)」と表示される、
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 myarticle
6886 \end_layout
6887
6888 \end_inset
6889
6890 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6891 \end_layout
6892
6893 \begin_layout LyX-Code
6894
6895 \size small
6896 #% Do not delete the line below; configure depends on this 
6897 \end_layout
6898
6899 \begin_layout LyX-Code
6900
6901 \size small
6902 #  
6903 \backslash
6904 DeclareLaT
6905 \size default
6906
6907 \begin_inset ERT
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911
6912 {}
6913 \end_layout
6914
6915 \end_inset
6916
6917
6918 \size small
6919 eXClass[article,foo.sty]{Article (with My Own Headings)}
6920 \end_layout
6921
6922 \begin_layout LyX-Code
6923
6924 \size small
6925 #  
6926 \backslash
6927 DeclareCategory{Articles}
6928 \end_layout
6929
6930 \begin_layout Standard
6931 これは、このテキストクラスが
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 foo.sty
6937 \end_layout
6938
6939 \end_inset
6940
6941 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6942 \end_layout
6943
6944 \begin_layout LyX-Code
6945
6946 \size small
6947 #% Do not delete the line below; configure depends on this 
6948 \end_layout
6949
6950 \begin_layout LyX-Code
6951
6952 \size small
6953
6954 \backslash
6955 DeclareDocBookClass[article]{SGML (DocBook article)}
6956 \end_layout
6957
6958 \begin_layout LyX-Code
6959
6960 \size small
6961 #  
6962 \backslash
6963 DeclareCategory{Articles}
6964 \end_layout
6965
6966 \begin_layout Standard
6967 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6968 \end_layout
6969
6970 \begin_layout Standard
6971 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6972 \end_layout
6973
6974 \begin_layout LyX-Code
6975
6976 \size small
6977 #  
6978 \backslash
6979 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6980 \end_layout
6981
6982 \begin_layout LyX-Code
6983
6984 \size small
6985 #  
6986 \backslash
6987 DeclareCategory{分類}
6988 \end_layout
6989
6990 \begin_layout Standard
6991 ここで「クラス」は、\SpecialChar LaTeX
6992 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
6993 は単純に、クラスファイル
6994 名がレイアウトファイル名と同じであると仮定します。
6995 \end_layout
6996
6997 \begin_layout Standard
6998 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6999 \begin_inset Flex Code
7000 status collapsed
7001
7002 \begin_layout Plain Layout
7003 LyXDir/layouts/
7004 \end_layout
7005
7006 \end_inset
7007
7008
7009 \begin_inset Flex Code
7010 status collapsed
7011
7012 \begin_layout Plain Layout
7013 UserDir/layouts
7014 \end_layout
7015
7016 \end_inset
7017
7018 にコピーし、
7019 \begin_inset Flex MenuItem
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 ツール\SpecialChar menuseparator
7024 環境構成
7025 \end_layout
7026
7027 \end_inset
7028
7029 を実行し、\SpecialChar LyX
7030 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7031 \end_layout
7032
7033 \begin_layout Standard
7034 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7035 を再起動したりすることなく、その変更を確認することができます
7036 \begin_inset Foot
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 第1.6版よりも前の\SpecialChar LyX
7041 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7042 を再起動しなくてはならなかったので、
7043 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7044 \end_layout
7045
7046 \end_inset
7047
7048 。\SpecialChar LyX
7049 関数
7050 \begin_inset Flex MenuItem
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 layout-reload
7055 \end_layout
7056
7057 \end_inset
7058
7059 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7060 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7061 \end_layout
7062
7063 \begin_layout Standard
7064
7065 \emph on
7066 注意
7067 \emph default
7068
7069 \begin_inset Flex MenuItem
7070 status collapsed
7071
7072 \begin_layout Plain Layout
7073 layout-reload
7074 \end_layout
7075
7076 \end_inset
7077
7078 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7079 \emph on
7080 強く
7081 \emph default
7082 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7083 \emph on
7084 強く
7085 \emph default
7086 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7087 は現在の
7088 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7089 \begin_inset Foot
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7094 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7095 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7096 ださい。
7097 \end_layout
7098
7099 \end_inset
7100
7101 。\SpecialChar LyX
7102 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7103 \begin_inset Foot
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7108 \end_layout
7109
7110 \end_inset
7111
7112
7113 \end_layout
7114
7115 \begin_layout Subsection
7116 モジュール宣言
7117 \end_layout
7118
7119 \begin_layout Standard
7120 モジュールは、以下のような行で始まらなくてはなりません。
7121 \end_layout
7122
7123 \begin_layout LyX-Code
7124 #
7125 \backslash
7126 DeclareL
7127 \begin_inset ERT
7128 status collapsed
7129
7130 \begin_layout Plain Layout
7131
7132 {}
7133 \end_layout
7134
7135 \end_inset
7136
7137 yXModule[endnotes.sty]{Endnotes} 
7138 \end_layout
7139
7140 \begin_layout Standard
7141 波括弧内に入っている必須引数はモジュール名で、これは
7142 \begin_inset Flex MenuItem
7143 status collapsed
7144
7145 \begin_layout Plain Layout
7146 文書\SpecialChar menuseparator
7147 設定
7148 \end_layout
7149
7150 \end_inset
7151
7152 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7153 パッケージをすべて宣言します。また、非必須引数として、
7154 \begin_inset Flex Code
7155 status collapsed
7156
7157 \begin_layout Plain Layout
7158 変換元->変換先
7159 \end_layout
7160
7161 \end_inset
7162
7163 の形を使用することができます。これは、
7164 \begin_inset Flex Code
7165 status collapsed
7166
7167 \begin_layout Plain Layout
7168 変換元
7169 \end_layout
7170
7171 \end_inset
7172
7173 形式から
7174 \begin_inset Flex Code
7175 status collapsed
7176
7177 \begin_layout Plain Layout
7178 変換先
7179 \end_layout
7180
7181 \end_inset
7182
7183 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7184 \end_layout
7185
7186 \begin_layout Standard
7187 それから、以下のようなモジュール宣言を行います
7188 \begin_inset Foot
7189 status collapsed
7190
7191 \begin_layout Plain Layout
7192 モジュールを\SpecialChar LyX
7193 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7194 \end_layout
7195
7196 \end_inset
7197
7198
7199 \end_layout
7200
7201 \begin_layout LyX-Code
7202 #DescriptionBegin 
7203 \end_layout
7204
7205 \begin_layout LyX-Code
7206 #Adds an endnote command, in addition to footnotes.
7207  
7208 \end_layout
7209
7210 \begin_layout LyX-Code
7211 #You will need to add  
7212 \backslash
7213 theendnotes in TeX code where you 
7214 \end_layout
7215
7216 \begin_layout LyX-Code
7217 #want the endnotes to appear.
7218  
7219 \end_layout
7220
7221 \begin_layout LyX-Code
7222 #DescriptionEnd 
7223 \end_layout
7224
7225 \begin_layout LyX-Code
7226 #Requires: somemodule | othermodule
7227 \end_layout
7228
7229 \begin_layout LyX-Code
7230 #Excludes: badmodule
7231 \end_layout
7232
7233 \begin_layout Standard
7234 ここで説明(Description)は、
7235 \begin_inset Flex MenuItem
7236 status collapsed
7237
7238 \begin_layout Plain Layout
7239 文書\SpecialChar menuseparator
7240 設定
7241 \end_layout
7242
7243 \end_inset
7244
7245 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 Requires
7251 \end_layout
7252
7253 \end_inset
7254
7255 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 Excludes
7261 \end_layout
7262
7263 \end_inset
7264
7265 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7266 イプ記号「|」で区切らなくてはなりません。
7267 \begin_inset Flex Code
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271 Requires
7272 \end_layout
7273
7274 \end_inset
7275
7276 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7277 \begin_inset Flex Code
7278 status collapsed
7279
7280 \begin_layout Plain Layout
7281 Requires
7282 \end_layout
7283
7284 \end_inset
7285
7286 に指定されたモジュールのうち、
7287 \emph on
7288 少なくとも一つ
7289 \emph default
7290 が使用されていればよいということです。同様に、
7291 \begin_inset Flex Code
7292 status collapsed
7293
7294 \begin_layout Plain Layout
7295 Excludes
7296 \end_layout
7297
7298 \end_inset
7299
7300 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7301 \begin_inset Flex Code
7302 status collapsed
7303
7304 \begin_layout Plain Layout
7305 .module
7306 \end_layout
7307
7308 \end_inset
7309
7310 拡張子を除いたファイル名で認識されることに注意してください。つまり
7311 \begin_inset Flex Code
7312 status collapsed
7313
7314 \begin_layout Plain Layout
7315 somemodule
7316 \end_layout
7317
7318 \end_inset
7319
7320 とは、実のところ
7321 \begin_inset Flex Code
7322 status collapsed
7323
7324 \begin_layout Plain Layout
7325 somemodule.module
7326 \end_layout
7327
7328 \end_inset
7329
7330 のことです。
7331 \end_layout
7332
7333 \begin_layout Subsection
7334 書式番号
7335 \end_layout
7336
7337 \begin_layout Standard
7338 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7339 \end_layout
7340
7341 \begin_layout Description
7342 \begin_inset Flex Code
7343 status collapsed
7344
7345 \begin_layout Plain Layout
7346 Format
7347 \end_layout
7348
7349 \end_inset
7350
7351  [
7352 \begin_inset Flex Code
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356 整数型
7357 \end_layout
7358
7359 \end_inset
7360
7361 ] このレイアウトファイルの書式
7362 \end_layout
7363
7364 \begin_layout Standard
7365 このタグは\SpecialChar LyX
7366
7367 \begin_inset space ~
7368 \end_inset
7369
7370 1.4.0で導入されました。\SpecialChar LyX
7371
7372 \begin_inset space ~
7373 \end_inset
7374
7375 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7376 現行版のファイル形式は、書式35です。しかし、\SpecialChar LyX
7377 の各版は、旧版の\SpecialChar LyX
7378 で作成さ
7379 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7380 \end_layout
7381
7382 \begin_layout Subsection
7383 \begin_inset CommandInset label
7384 LatexCommand label
7385 name "subsec:汎用テキストクラスパラメータ"
7386
7387 \end_inset
7388
7389 汎用テキストクラスパラメータ
7390 \end_layout
7391
7392 \begin_layout Standard
7393 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 .layout
7399 \end_layout
7400
7401 \end_inset
7402
7403 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7404 \emph on
7405 ありません
7406 \emph default
7407 。モジュールには、すべてのレイアウトタグを使用することができます)。
7408 \end_layout
7409
7410 \begin_layout Description
7411 \begin_inset Flex Code
7412 status collapsed
7413
7414 \begin_layout Plain Layout
7415 AddToHTMLPreamble
7416 \end_layout
7417
7418 \end_inset
7419
7420  この文書クラスがXHTMLに出力されるときに、
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 <head>
7426 \end_layout
7427
7428 \end_inset
7429
7430 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 <head>
7436 \end_layout
7437
7438 \end_inset
7439
7440 に出力するものであれば、何でも使用することができます。「
7441 \begin_inset Flex Code
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 EndPreamble
7446 \end_layout
7447
7448 \end_inset
7449
7450 」で閉じる必要があります。
7451 \end_layout
7452
7453 \begin_layout Description
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 AddToPreamble
7459 \end_layout
7460
7461 \end_inset
7462
7463  文書プリアンブルに書き加えられる情報です。「
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 EndPreamble
7469 \end_layout
7470
7471 \end_inset
7472
7473 」で閉じる必要があります。
7474 \end_layout
7475
7476 \begin_layout Description
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 CiteFormat
7482 \end_layout
7483
7484 \end_inset
7485
7486  書誌情報の表示に使う書式を定義します。詳細については、
7487 \begin_inset CommandInset ref
7488 LatexCommand ref
7489 reference "subsec:引用書式指定"
7490
7491 \end_inset
7492
7493 をご覧ください。「
7494 \begin_inset Flex Code
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498 End
7499 \end_layout
7500
7501 \end_inset
7502
7503 」で閉じる必要があります。
7504 \end_layout
7505
7506 \begin_layout Description
7507 \begin_inset Flex Code
7508 status collapsed
7509
7510 \begin_layout Plain Layout
7511 ClassOptions
7512 \end_layout
7513
7514 \end_inset
7515
7516  文書クラスがサポートする様々な大域オプションを記します。説明は、
7517 \begin_inset CommandInset ref
7518 LatexCommand ref
7519 reference "subsec:ClassOptions"
7520
7521 \end_inset
7522
7523 を参照してください。「
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 End
7529 \end_layout
7530
7531 \end_inset
7532
7533 」で閉じる必要があります。
7534 \end_layout
7535
7536 \begin_layout Description
7537 \begin_inset Flex Code
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 Columns
7542 \end_layout
7543
7544 \end_inset
7545
7546  [
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551
7552 \emph on
7553 1
7554 \end_layout
7555
7556 \end_inset
7557
7558 ,
7559 \begin_inset space \thinspace{}
7560 \end_inset
7561
7562
7563 \begin_inset Flex Code
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 2
7568 \end_layout
7569
7570 \end_inset
7571
7572 ] 文書クラスが既定で1段組か2段組かを指定します。
7573 \begin_inset Flex MenuItem
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 文書\SpecialChar menuseparator
7578 設定
7579 \end_layout
7580
7581 \end_inset
7582
7583 ダイアログで変更することができます。
7584 \end_layout
7585
7586 \begin_layout Description
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 Counter
7592 \end_layout
7593
7594 \end_inset
7595
7596  [
7597 \begin_inset Flex Code
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 文字列
7602 \end_layout
7603
7604 \end_inset
7605
7606 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 End
7612 \end_layout
7613
7614 \end_inset
7615
7616 」で閉じる必要があります。
7617 \begin_inset Newline newline
7618 \end_inset
7619
7620 カウンタについての詳細は、
7621 \begin_inset CommandInset ref
7622 LatexCommand ref
7623 reference "subsec:カウンタ"
7624
7625 \end_inset
7626
7627 を参照してください。
7628 \end_layout
7629
7630 \begin_layout Description
7631 \begin_inset Flex Code
7632 status collapsed
7633
7634 \begin_layout Plain Layout
7635 DefaultFont
7636 \end_layout
7637
7638 \end_inset
7639
7640  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7641 \begin_inset CommandInset ref
7642 LatexCommand ref
7643 reference "subsec:フォント指定"
7644
7645 \end_inset
7646
7647 を参照してください。「
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 EndFont
7653 \end_layout
7654
7655 \end_inset
7656
7657 」で閉じる必要があります。
7658 \end_layout
7659
7660 \begin_layout Description
7661 \begin_inset Flex Code
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 DefaultModule
7666 \end_layout
7667
7668 \end_inset
7669
7670  [
7671 \begin_inset Flex Code
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 <モジュール>
7676 \end_layout
7677
7678 \end_inset
7679
7680 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7681 \begin_inset Flex Code
7682 status collapsed
7683
7684 \begin_layout Plain Layout
7685 .module
7686 \end_layout
7687
7688 \end_inset
7689
7690 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7691 既存の文書にこの文書クラスが選択したときのみ該当します)。
7692 \end_layout
7693
7694 \begin_layout Description
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 DefaultStyle
7700 \end_layout
7701
7702 \end_inset
7703
7704  [
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709 <様式>
7710 \end_layout
7711
7712 \end_inset
7713
7714 ]
7715 \lang english
7716  
7717 \lang japanese
7718 これは新規段落に割り当てられる様式であり、通常は
7719 \begin_inset Flex MenuItem
7720 status collapsed
7721
7722 \begin_layout Plain Layout
7723 標準
7724 \end_layout
7725
7726 \end_inset
7727
7728 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7729 \end_layout
7730
7731 \begin_layout Description
7732 \begin_inset Flex Code
7733 status collapsed
7734
7735 \begin_layout Plain Layout
7736 ExcludesModule
7737 \end_layout
7738
7739 \end_inset
7740
7741  [
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 <モジュール>
7747 \end_layout
7748
7749 \end_inset
7750
7751 ] このタグは、指定されたモジュール—
7752 \begin_inset Flex Code
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756 .module
7757 \end_layout
7758
7759 \end_inset
7760
7761 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7762 に振る
7763 \begin_inset Flex Code
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 theorems-sec
7768 \end_layout
7769
7770 \end_inset
7771
7772 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7773 \emph on
7774 使用してはいけません
7775 \emph default
7776 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
7777 \begin_inset CommandInset ref
7778 LatexCommand ref
7779 reference "subsec:レイアウトモジュール"
7780
7781 \end_inset
7782
7783 参照)。
7784 \end_layout
7785
7786 \begin_layout Description
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 Float
7792 \end_layout
7793
7794 \end_inset
7795
7796  フロートを新規に定義します。詳細は、
7797 \begin_inset CommandInset ref
7798 LatexCommand ref
7799 reference "subsec:フロート"
7800
7801 \end_inset
7802
7803 を参照してください。「
7804 \begin_inset Flex Code
7805 status collapsed
7806
7807 \begin_layout Plain Layout
7808 End
7809 \end_layout
7810
7811 \end_inset
7812
7813 」で閉じる必要があります。
7814 \end_layout
7815
7816 \begin_layout Description
7817 \begin_inset Flex Code
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821 HTMLPreamble
7822 \end_layout
7823
7824 \end_inset
7825
7826  この文書クラスがXHTMLに出力されるときに、
7827 \begin_inset Flex Code
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 <head>
7832 \end_layout
7833
7834 \end_inset
7835
7836 ブロックに出力される情報です。これより前に出現した
7837 \begin_inset Flex Code
7838 status collapsed
7839
7840 \begin_layout Plain Layout
7841 HTMLPreamble
7842 \end_layout
7843
7844 \end_inset
7845
7846
7847 \begin_inset Flex Code
7848 status collapsed
7849
7850 \begin_layout Plain Layout
7851 AddToHTMLPreamble
7852 \end_layout
7853
7854 \end_inset
7855
7856 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7857 \begin_inset Flex Code
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861 AddToHTMLPreamble
7862 \end_layout
7863
7864 \end_inset
7865
7866 を使用してください)。これは「
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 EndPreamble
7872 \end_layout
7873
7874 \end_inset
7875
7876 」で閉じる必要があります。
7877 \end_layout
7878
7879 \begin_layout Description
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 HTMLTOCSection
7885 \end_layout
7886
7887 \end_inset
7888
7889  [
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 <様式>
7895 \end_layout
7896
7897 \end_inset
7898
7899 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7900 。これを指定しない場合には、\SpecialChar LyX
7901 はどのレイアウトを使用するべきか、解析しようと試みます。
7902 \end_layout
7903
7904 \begin_layout Description
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 IfCounter 
7910 \end_layout
7911
7912 \end_inset
7913
7914  [
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 <カウンタ>
7920 \end_layout
7921
7922 \end_inset
7923
7924 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7925 \begin_inset Flex Code
7926 status collapsed
7927
7928 \begin_layout Plain Layout
7929 End
7930 \end_layout
7931
7932 \end_inset
7933
7934 」で閉じる必要があります。
7935 \begin_inset Newline newline
7936 \end_inset
7937
7938 カウンタについての詳細は、
7939 \begin_inset CommandInset ref
7940 LatexCommand ref
7941 reference "subsec:カウンタ"
7942
7943 \end_inset
7944
7945 をご覧ください。
7946 \end_layout
7947
7948 \begin_layout Description
7949 \begin_inset Flex Code
7950 status collapsed
7951
7952 \begin_layout Plain Layout
7953 IfStyle
7954 \end_layout
7955
7956 \end_inset
7957
7958  [
7959 \begin_inset Flex Code
7960 status collapsed
7961
7962 \begin_layout Plain Layout
7963 <様式>
7964 \end_layout
7965
7966 \end_inset
7967
7968 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7969 \begin_inset Flex Code
7970 status collapsed
7971
7972 \begin_layout Plain Layout
7973 End
7974 \end_layout
7975
7976 \end_inset
7977
7978 」で閉じる必要があります。
7979 \end_layout
7980
7981 \begin_layout Description
7982 \begin_inset Flex Code
7983 status collapsed
7984
7985 \begin_layout Plain Layout
7986 Input
7987 \end_layout
7988
7989 \end_inset
7990
7991  [
7992 \begin_inset Flex Code
7993 status collapsed
7994
7995 \begin_layout Plain Layout
7996 <ファイル名>
7997 \end_layout
7998
7999 \end_inset
8000
8001 ]
8002 \lang english
8003  
8004 \lang japanese
8005 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8006 のほとんどを収録している
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 stdclass.inc
8012 \end_layout
8013
8014 \end_inset
8015
8016 のような標準レイアウトファイルです。
8017 \end_layout
8018
8019 \begin_layout Description
8020 \begin_inset Flex Code
8021 status collapsed
8022
8023 \begin_layout Plain Layout
8024 InsetLayout
8025 \end_layout
8026
8027 \end_inset
8028
8029  [
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 <型>
8035 \end_layout
8036
8037 \end_inset
8038
8039 ]
8040 \lang english
8041  
8042 \lang japanese
8043 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8044 \begin_inset Flex Code
8045 status collapsed
8046
8047 \begin_layout Plain Layout
8048 End
8049 \end_layout
8050
8051 \end_inset
8052
8053 」で閉じる必要があります。
8054 \begin_inset Newline newline
8055 \end_inset
8056
8057 詳しい情報は、
8058 \begin_inset CommandInset ref
8059 LatexCommand ref
8060 reference "subsec:任意設定差込枠"
8061
8062 \end_inset
8063
8064 をご覧ください。
8065 \end_layout
8066
8067 \begin_layout Description
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 LeftMargin
8073 \end_layout
8074
8075 \end_inset
8076
8077  [
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 文字列
8083 \end_layout
8084
8085 \end_inset
8086
8087 ] 画面上の左余白の幅を指示する文字列。例:「
8088 \begin_inset Flex Code
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092 MMMMM
8093 \end_layout
8094
8095 \end_inset
8096
8097 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8098 \end_layout
8099
8100 \begin_layout Description
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 NoCounter
8106 \end_layout
8107
8108 \end_inset
8109
8110  [
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 <カウンタ>
8116 \end_layout
8117
8118 \end_inset
8119
8120 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8121 \end_layout
8122
8123 \begin_layout Description
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 NoFloat
8129 \end_layout
8130
8131 \end_inset
8132
8133  [
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 <フロート>
8139 \end_layout
8140
8141 \end_inset
8142
8143 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8144 \end_layout
8145
8146 \begin_layout Description
8147 \begin_inset Flex Code
8148 status collapsed
8149
8150 \begin_layout Plain Layout
8151 NoStyle
8152 \end_layout
8153
8154 \end_inset
8155
8156  [
8157 \begin_inset Flex Code
8158 status collapsed
8159
8160 \begin_layout Plain Layout
8161 <様式>
8162 \end_layout
8163
8164 \end_inset
8165
8166 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8167 \end_layout
8168
8169 \begin_layout Description
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 OutputFormat
8175 \end_layout
8176
8177 \end_inset
8178
8179  [
8180 \begin_inset Flex Code
8181 status collapsed
8182
8183 \begin_layout Plain Layout
8184 <形式>
8185 \end_layout
8186
8187 \end_inset
8188
8189 ] このクラスによって生成されるファイル形式を示す文字列(
8190 \family sans
8191 設定
8192 \family default
8193 ダイアログで定義される形のもの)。おもに、
8194 \begin_inset Flex Code
8195 status collapsed
8196
8197 \begin_layout Plain Layout
8198 OutputType
8199 \end_layout
8200
8201 \end_inset
8202
8203
8204 \begin_inset Flex Code
8205 status collapsed
8206
8207 \begin_layout Plain Layout
8208 literate
8209 \end_layout
8210
8211 \end_inset
8212
8213 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8214 \begin_inset Flex Code
8215 status collapsed
8216
8217 \begin_layout Plain Layout
8218 OutputType
8219 \end_layout
8220
8221 \end_inset
8222
8223 パラメーターに遭遇したときには、この文字列は、「
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 docbook
8229 \end_layout
8230
8231 \end_inset
8232
8233 」・「
8234 \begin_inset Flex Code
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 lat
8239 \emph on
8240 ex
8241 \end_layout
8242
8243 \end_inset
8244
8245 」のいずれかにリセットされます。
8246 \end_layout
8247
8248 \begin_layout Description
8249 \begin_inset Flex Code
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253 OutputType
8254 \end_layout
8255
8256 \end_inset
8257
8258  [
8259 \begin_inset Flex Code
8260 status collapsed
8261
8262 \begin_layout Plain Layout
8263
8264 \emph on
8265 lat
8266 \emph default
8267 ex
8268 \end_layout
8269
8270 \end_inset
8271
8272
8273 \begin_inset Flex Code
8274 status collapsed
8275
8276 \begin_layout Plain Layout
8277 docbook
8278 \end_layout
8279
8280 \end_inset
8281
8282
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 literate
8288 \end_layout
8289
8290 \end_inset
8291
8292 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8293 \end_layout
8294
8295 \begin_layout Description
8296 \begin_inset Flex Code
8297 status collapsed
8298
8299 \begin_layout Plain Layout
8300 PackageOptions
8301 \end_layout
8302
8303 \end_inset
8304
8305  [
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 文字列
8311 \end_layout
8312
8313 \end_inset
8314
8315  
8316 \begin_inset Flex Code
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 文字列
8321 \end_layout
8322
8323 \end_inset
8324
8325 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8326 \begin_inset Flex Code
8327 status collapsed
8328
8329 \begin_layout Plain Layout
8330 PackageOptions natbib square
8331 \end_layout
8332
8333 \end_inset
8334
8335 」とすると、
8336 \begin_inset Flex Code
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 natbib
8341 \end_layout
8342
8343 \end_inset
8344
8345
8346 \begin_inset Flex Code
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 square
8351 \end_layout
8352
8353 \end_inset
8354
8355 オプションとともに読み込みます(\SpecialChar TeX
8356 perts向けに述べると、これは、
8357 \begin_inset Flex Code
8358 status collapsed
8359
8360 \begin_layout Plain Layout
8361 natbib
8362 \end_layout
8363
8364 \end_inset
8365
8366 を読み込む前に、\SpecialChar LyX
8367
8368 \begin_inset Flex Code
8369 status collapsed
8370
8371 \begin_layout Plain Layout
8372
8373 \backslash
8374 PassOptionsToPackage{natbib}{square}
8375 \end_layout
8376
8377 \end_inset
8378
8379 を出力させます)。
8380 \end_layout
8381
8382 \begin_layout Description
8383 \begin_inset Flex Code
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387 PageStyle
8388 \end_layout
8389
8390 \end_inset
8391
8392  [
8393 \emph on
8394
8395 \begin_inset Flex Code
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 plain
8400 \end_layout
8401
8402 \end_inset
8403
8404
8405 \emph default
8406
8407 \begin_inset Flex Code
8408 status collapsed
8409
8410 \begin_layout Plain Layout
8411 empty
8412 \end_layout
8413
8414 \end_inset
8415
8416
8417 \begin_inset Flex Code
8418 status collapsed
8419
8420 \begin_layout Plain Layout
8421 headings
8422 \end_layout
8423
8424 \end_inset
8425
8426 ] 既定ページ様式。
8427 \begin_inset Flex MenuItem
8428 status collapsed
8429
8430 \begin_layout Plain Layout
8431 文書\SpecialChar menuseparator
8432 設定
8433 \end_layout
8434
8435 \end_inset
8436
8437 ダイアログで変更することができます。
8438 \end_layout
8439
8440 \begin_layout Description
8441 \begin_inset Flex Code
8442 status collapsed
8443
8444 \begin_layout Plain Layout
8445 Preamble
8446 \end_layout
8447
8448 \end_inset
8449
8450  \SpecialChar LaTeX
8451 文書のプリアンブルを設定します。前に行った
8452 \begin_inset Flex Code
8453 status collapsed
8454
8455 \begin_layout Plain Layout
8456 Preamble
8457 \end_layout
8458
8459 \end_inset
8460
8461 宣言や
8462 \begin_inset Flex Code
8463 status collapsed
8464
8465 \begin_layout Plain Layout
8466 AddToPreamble
8467 \end_layout
8468
8469 \end_inset
8470
8471 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8472 \begin_inset Flex Code
8473 status collapsed
8474
8475 \begin_layout Plain Layout
8476 AddToPreamble
8477 \end_layout
8478
8479 \end_inset
8480
8481 を使用してください。)「
8482 \begin_inset Flex Code
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 EndPreamble
8487 \end_layout
8488
8489 \end_inset
8490
8491 」で閉じる必要があります。
8492 \end_layout
8493
8494 \begin_layout Description
8495 \begin_inset Flex Code
8496 status collapsed
8497
8498 \begin_layout Plain Layout
8499 Provides
8500 \end_layout
8501
8502 \end_inset
8503
8504  [
8505 \begin_inset Flex Code
8506 status collapsed
8507
8508 \begin_layout Plain Layout
8509 文字列
8510 \end_layout
8511
8512 \end_inset
8513
8514 ] [
8515 \begin_inset Flex Code
8516 status collapsed
8517
8518 \begin_layout Plain Layout
8519
8520 \emph on
8521 0
8522 \end_layout
8523
8524 \end_inset
8525
8526
8527 \begin_inset Flex Code
8528 status collapsed
8529
8530 \begin_layout Plain Layout
8531 1
8532 \end_layout
8533
8534 \end_inset
8535
8536 ] このクラスが
8537 \begin_inset Flex Code
8538 status collapsed
8539
8540 \begin_layout Plain Layout
8541 文字列
8542 \end_layout
8543
8544 \end_inset
8545
8546 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8547 \begin_inset Flex Code
8548 status collapsed
8549
8550 \begin_layout Plain Layout
8551 amsmath
8552 \end_layout
8553
8554 \end_inset
8555
8556
8557 \begin_inset Flex Code
8558 status collapsed
8559
8560 \begin_layout Plain Layout
8561 makeidx
8562 \end_layout
8563
8564 \end_inset
8565
8566 ・\SpecialChar ldots
8567 )やマクロ名(
8568 \begin_inset Flex Code
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 url
8573 \end_layout
8574
8575 \end_inset
8576
8577
8578 \begin_inset Flex Code
8579 status collapsed
8580
8581 \begin_layout Plain Layout
8582 boldsymbol
8583 \end_layout
8584
8585 \end_inset
8586
8587 ・\SpecialChar ldots
8588 )です。機能一覧については、
8589 \begin_inset CommandInset ref
8590 LatexCommand ref
8591 reference "chap:関数一覧"
8592
8593 \end_inset
8594
8595 を参照。
8596 \end_layout
8597
8598 \begin_layout Description
8599 \begin_inset Flex Code
8600 status collapsed
8601
8602 \begin_layout Plain Layout
8603 ProvidesModule
8604 \end_layout
8605
8606 \end_inset
8607
8608  [
8609 \begin_inset Flex Code
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 文字列
8614 \end_layout
8615
8616 \end_inset
8617
8618 ] このレイアウトが
8619 \begin_inset Flex Code
8620 status collapsed
8621
8622 \begin_layout Plain Layout
8623 文字列
8624 \end_layout
8625
8626 \end_inset
8627
8628 で表されているモジュールの機能を提供することを示し、
8629 \begin_inset Flex Code
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 .module
8634 \end_layout
8635
8636 \end_inset
8637
8638 拡張子を除いたファイル名で指定します。
8639 \begin_inset Flex Code
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 DefaultModule
8644 \end_layout
8645
8646 \end_inset
8647
8648 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8649 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8650 \end_layout
8651
8652 \begin_layout Description
8653 \begin_inset Flex Code
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 Requires
8658 \end_layout
8659
8660 \end_inset
8661
8662  [
8663 \begin_inset Flex Code
8664 status collapsed
8665
8666 \begin_layout Plain Layout
8667 文字列
8668 \end_layout
8669
8670 \end_inset
8671
8672 ] このクラスが
8673 \begin_inset Flex Code
8674 status collapsed
8675
8676 \begin_layout Plain Layout
8677 文字列
8678 \end_layout
8679
8680 \end_inset
8681
8682 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8683 さい(機能一覧については
8684 \begin_inset CommandInset ref
8685 LatexCommand ref
8686 reference "chap:関数一覧"
8687
8688 \end_inset
8689
8690 を参照)。特定のオプションをとるパッケージを要求する場合、
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 PackageOptions
8696 \end_layout
8697
8698 \end_inset
8699
8700 を追加して使うことができます。
8701 \end_layout
8702
8703 \begin_layout Description
8704 \begin_inset Flex Code
8705 status collapsed
8706
8707 \begin_layout Plain Layout
8708 RightMargin
8709 \end_layout
8710
8711 \end_inset
8712
8713  [
8714 \begin_inset Flex Code
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 文字列
8719 \end_layout
8720
8721 \end_inset
8722
8723 ] 画面上の右余白の幅を指示する文字列。例:「
8724 \begin_inset Flex Code
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 MMMMM
8729 \end_layout
8730
8731 \end_inset
8732
8733 」。
8734 \end_layout
8735
8736 \begin_layout Description
8737 \begin_inset Flex Code
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 SecNumDepth
8742 \end_layout
8743
8744 \end_inset
8745
8746  [
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 int=3
8752 \end_layout
8753
8754 \end_inset
8755
8756 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
8757 における
8758 \begin_inset Flex Code
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 secnumdepth
8763 \end_layout
8764
8765 \end_inset
8766
8767 カウンタに対応します。
8768 \end_layout
8769
8770 \begin_layout Description
8771 \begin_inset Flex Code
8772 status collapsed
8773
8774 \begin_layout Plain Layout
8775 Sides
8776 \end_layout
8777
8778 \end_inset
8779
8780  [
8781 \emph on
8782
8783 \begin_inset Flex Code
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787 1
8788 \end_layout
8789
8790 \end_inset
8791
8792
8793 \emph default
8794 ,
8795 \begin_inset space \thinspace{}
8796 \end_inset
8797
8798
8799 \begin_inset Flex Code
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 2
8804 \end_layout
8805
8806 \end_inset
8807
8808 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8809 \begin_inset Flex MenuItem
8810 status collapsed
8811
8812 \begin_layout Plain Layout
8813 文書\SpecialChar menuseparator
8814 設定
8815 \end_layout
8816
8817 \end_inset
8818
8819 ダイアログで変更することができます。
8820 \end_layout
8821
8822 \begin_layout Description
8823 \begin_inset Flex Code
8824 status collapsed
8825
8826 \begin_layout Plain Layout
8827 Style
8828 \end_layout
8829
8830 \end_inset
8831
8832  [
8833 \begin_inset Flex Code
8834 status collapsed
8835
8836 \begin_layout Plain Layout
8837 <名称>
8838 \end_layout
8839
8840 \end_inset
8841
8842 ]
8843 \lang english
8844  
8845 \lang japanese
8846 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8847 \begin_inset Flex Code
8848 status collapsed
8849
8850 \begin_layout Plain Layout
8851 End
8852 \end_layout
8853
8854 \end_inset
8855
8856 」で閉じる必要があります。
8857 \begin_inset Newline newline
8858 \end_inset
8859
8860 段落様式に関する詳細は、
8861 \begin_inset CommandInset ref
8862 LatexCommand ref
8863 reference "subsec:段落様式-XHTML"
8864
8865 \end_inset
8866
8867 をご覧ください。
8868 \end_layout
8869
8870 \begin_layout Description
8871 \begin_inset Flex Code
8872 status collapsed
8873
8874 \begin_layout Plain Layout
8875 TitleLatexName
8876 \end_layout
8877
8878 \end_inset
8879
8880  [
8881 \begin_inset Flex Code
8882 status collapsed
8883
8884 \begin_layout Plain Layout
8885 文字列="maketitle"
8886 \end_layout
8887
8888 \end_inset
8889
8890
8891 \begin_inset Flex Code
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 TitleLatexType
8896 \end_layout
8897
8898 \end_inset
8899
8900 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8901  
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 TitleLatexType
8907 \end_layout
8908
8909 \end_inset
8910
8911 .
8912 \end_layout
8913
8914 \begin_layout Description
8915 \begin_inset Flex Code
8916 status collapsed
8917
8918 \begin_layout Plain Layout
8919 TitleLatexType
8920 \end_layout
8921
8922 \end_inset
8923
8924  [
8925 \begin_inset Flex Code
8926 status collapsed
8927
8928 \begin_layout Plain Layout
8929
8930 \emph on
8931 CommandAfter
8932 \end_layout
8933
8934 \end_inset
8935
8936
8937 \begin_inset Flex Code
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 Environment
8942 \end_layout
8943
8944 \end_inset
8945
8946 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8947 \begin_inset Flex Code
8948 status collapsed
8949
8950 \begin_layout Plain Layout
8951 CommandAfter
8952 \end_layout
8953
8954 \end_inset
8955
8956 は、「
8957 \begin_inset Flex Code
8958 status collapsed
8959
8960 \begin_layout Plain Layout
8961 InTitle
8962 \begin_inset space ~
8963 \end_inset
8964
8965 1
8966 \end_layout
8967
8968 \end_inset
8969
8970 」が指定されている最後のレイアウトの後に、
8971 \begin_inset Flex Code
8972 status collapsed
8973
8974 \begin_layout Plain Layout
8975 TitleLatexName
8976 \end_layout
8977
8978 \end_inset
8979
8980 で指定したマクロ名を挿入することを意味します。
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985 Environment
8986 \end_layout
8987
8988 \end_inset
8989
8990 は、「
8991 \begin_inset Flex Code
8992 status collapsed
8993
8994 \begin_layout Plain Layout
8995 InTitle
8996 \begin_inset space ~
8997 \end_inset
8998
8999 1
9000 \end_layout
9001
9002 \end_inset
9003
9004 」を持つ段落群を
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009 TitleLatexName
9010 \end_layout
9011
9012 \end_inset
9013
9014 で指定した環境でくるむ場合に対応します。
9015 \end_layout
9016
9017 \begin_layout Description
9018 \begin_inset Flex Code
9019 status collapsed
9020
9021 \begin_layout Plain Layout
9022 TocDepth
9023 \end_layout
9024
9025 \end_inset
9026
9027  [
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 int=3
9033 \end_layout
9034
9035 \end_inset
9036
9037 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9038
9039 \begin_inset Flex Code
9040 status collapsed
9041
9042 \begin_layout Plain Layout
9043 tocdepth
9044 \end_layout
9045
9046 \end_inset
9047
9048 カウンタに対応します。
9049 \end_layout
9050
9051 \begin_layout Subsection
9052 \begin_inset Flex Code
9053 status collapsed
9054
9055 \begin_layout Plain Layout
9056 ClassOptions
9057 \end_layout
9058
9059 \end_inset
9060
9061
9062 \begin_inset CommandInset label
9063 LatexCommand label
9064 name "subsec:ClassOptions"
9065
9066 \end_inset
9067
9068
9069 \end_layout
9070
9071 \begin_layout Standard
9072 \begin_inset Flex Code
9073 status collapsed
9074
9075 \begin_layout Plain Layout
9076 ClassOptions
9077 \end_layout
9078
9079 \end_inset
9080
9081 部は、以下の項目を取り得ます。
9082 \end_layout
9083
9084 \begin_layout Description
9085 \begin_inset Flex Code
9086 status collapsed
9087
9088 \begin_layout Plain Layout
9089 FontSize
9090 \end_layout
9091
9092 \end_inset
9093
9094  [
9095 \begin_inset Flex Code
9096 status collapsed
9097
9098 \begin_layout Plain Layout
9099 文字列="10|11|12"
9100 \end_layout
9101
9102 \end_inset
9103
9104 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9105 \begin_inset Flex Code
9106 status collapsed
9107
9108 \begin_layout Plain Layout
9109 |
9110 \end_layout
9111
9112 \end_inset
9113
9114 」で区切ります。
9115 \end_layout
9116
9117 \begin_layout Description
9118 \begin_inset Flex Code
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122 Header
9123 \end_layout
9124
9125 \end_inset
9126
9127  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9128 \begin_inset Quotes eld
9129 \end_inset
9130
9131 -//OASIS//DTD DocBook V4.2//EN
9132 \begin_inset Quotes erd
9133 \end_inset
9134
9135
9136 \end_layout
9137
9138 \begin_layout Description
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 PageStyle
9144 \end_layout
9145
9146 \end_inset
9147
9148  [
9149 \begin_inset Flex Code
9150 status collapsed
9151
9152 \begin_layout Plain Layout
9153 文字列="empty|plain|headings|fancy"
9154 \end_layout
9155
9156 \end_inset
9157
9158 ] 使用できるページ様式の一覧です。「
9159 \begin_inset Flex Code
9160 status collapsed
9161
9162 \begin_layout Plain Layout
9163 |
9164 \end_layout
9165
9166 \end_inset
9167
9168 」で区切ります。
9169 \end_layout
9170
9171 \begin_layout Description
9172 \begin_inset Flex Code
9173 status collapsed
9174
9175 \begin_layout Plain Layout
9176 Other
9177 \end_layout
9178
9179 \end_inset
9180
9181  [
9182 \begin_inset Flex Code
9183 status collapsed
9184
9185 \begin_layout Plain Layout
9186 文字列=""
9187 \end_layout
9188
9189 \end_inset
9190
9191
9192 \begin_inset Flex Code
9193 status collapsed
9194
9195 \begin_layout Plain Layout
9196
9197 \backslash
9198 documentclass
9199 \end_layout
9200
9201 \end_inset
9202
9203 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9204 \end_layout
9205
9206 \begin_layout Standard
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211 ClassOptions
9212 \end_layout
9213
9214 \end_inset
9215
9216 部は「
9217 \begin_inset Flex Code
9218 status collapsed
9219
9220 \begin_layout Plain Layout
9221 End
9222 \end_layout
9223
9224 \end_inset
9225
9226 」で閉じる必要があります。
9227 \end_layout
9228
9229 \begin_layout Subsection
9230 段落様式
9231 \begin_inset CommandInset label
9232 LatexCommand label
9233 name "subsec:段落様式"
9234
9235 \end_inset
9236
9237
9238 \end_layout
9239
9240 \begin_layout Standard
9241 段落様式の記述は、以下のようになります
9242 \begin_inset Foot
9243 status collapsed
9244
9245 \begin_layout Plain Layout
9246 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9247 \end_layout
9248
9249 \end_inset
9250
9251
9252 \end_layout
9253
9254 \begin_layout LyX-Code
9255 Style 
9256 \family roman
9257 \emph on
9258 名称
9259 \end_layout
9260
9261 \begin_layout LyX-Code
9262  ...
9263 \end_layout
9264
9265 \begin_layout LyX-Code
9266 End
9267 \end_layout
9268
9269 \begin_layout Standard
9270 ここでは、以下のコマンドを使用することができます。
9271 \end_layout
9272
9273 \begin_layout Description
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278 Align
9279 \end_layout
9280
9281 \end_inset
9282
9283  [
9284 \begin_inset Flex Code
9285 status collapsed
9286
9287 \begin_layout Plain Layout
9288
9289 \emph on
9290 block
9291 \emph default
9292 , left, right, center
9293 \end_layout
9294
9295 \end_inset
9296
9297 ] 段落の揃え。
9298 \end_layout
9299
9300 \begin_layout Description
9301 \begin_inset Flex Code
9302 status collapsed
9303
9304 \begin_layout Plain Layout
9305 AlignPossible
9306 \end_layout
9307
9308 \end_inset
9309
9310  [
9311 \begin_inset Flex Code
9312 status collapsed
9313
9314 \begin_layout Plain Layout
9315
9316 \emph on
9317 block
9318 \emph default
9319 , left, right, center
9320 \end_layout
9321
9322 \end_inset
9323
9324 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9325 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9326 はできません)。
9327 \end_layout
9328
9329 \begin_layout Description
9330 \begin_inset Flex Code
9331 status collapsed
9332
9333 \begin_layout Plain Layout
9334 Argument
9335 \end_layout
9336
9337 \end_inset
9338
9339  [
9340 \begin_inset Flex Code
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344 整数
9345 \end_layout
9346
9347 \end_inset
9348
9349 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9350 でのみ意味を持ちます。コマンドまたは環
9351 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 EndArgument
9357 \end_layout
9358
9359 \end_inset
9360
9361 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9362 \begin_inset Separator parbreak
9363 \end_inset
9364
9365
9366 \end_layout
9367
9368 \begin_deeper
9369 \begin_layout Quote
9370
9371 \family typewriter
9372 Argument 1
9373 \end_layout
9374
9375 \begin_layout Quote
9376
9377 \family typewriter
9378 ...
9379 \end_layout
9380
9381 \begin_layout Quote
9382
9383 \family typewriter
9384 EndArgument
9385 \end_layout
9386
9387 \begin_layout Quote
9388
9389 \family typewriter
9390 Argument 2
9391 \end_layout
9392
9393 \begin_layout Quote
9394
9395 \family typewriter
9396 ...
9397 \end_layout
9398
9399 \begin_layout Quote
9400
9401 \family typewriter
9402 EndArgument
9403 \end_layout
9404
9405 \begin_layout Standard
9406 \begin_inset Flex Code
9407 status collapsed
9408
9409 \begin_layout Plain Layout
9410 Argument
9411 \end_layout
9412
9413 \end_inset
9414
9415 定義内部では、以下の指定をすることができます。
9416 \end_layout
9417
9418 \begin_layout Itemize
9419 \begin_inset Flex Code
9420 status collapsed
9421
9422 \begin_layout Plain Layout
9423 LabelString
9424 \end_layout
9425
9426 \end_inset
9427
9428  
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433 [文字列]
9434 \end_layout
9435
9436 \end_inset
9437
9438  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9439 \begin_inset Flex Code
9440 status collapsed
9441
9442 \begin_layout Plain Layout
9443 MenuString
9444 \end_layout
9445
9446 \end_inset
9447
9448 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9449 \begin_inset space \space{}
9450 \end_inset
9451
9452
9453 \begin_inset Quotes eld
9454 \end_inset
9455
9456
9457 \begin_inset Flex Code
9458 status collapsed
9459
9460 \begin_layout Plain Layout
9461 Short Title|S
9462 \end_layout
9463
9464 \end_inset
9465
9466
9467 \begin_inset Quotes erd
9468 \end_inset
9469
9470 )。
9471 \end_layout
9472
9473 \begin_layout Itemize
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478 MenuString
9479 \end_layout
9480
9481 \end_inset
9482
9483  
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 [文字列]
9489 \end_layout
9490
9491 \end_inset
9492
9493  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9494 \begin_inset space \space{}
9495 \end_inset
9496
9497
9498 \begin_inset Quotes eld
9499 \end_inset
9500
9501
9502 \begin_inset Flex Code
9503 status collapsed
9504
9505 \begin_layout Plain Layout
9506 Short Title|S
9507 \end_layout
9508
9509 \end_inset
9510
9511
9512 \begin_inset Quotes erd
9513 \end_inset
9514
9515 )。この指定は必須ではありません。指定しない場合には、代わりに
9516 \begin_inset Flex Code
9517 status collapsed
9518
9519 \begin_layout Plain Layout
9520 LabelString
9521 \end_layout
9522
9523 \end_inset
9524
9525 がメニューに用いられます。
9526 \end_layout
9527
9528 \begin_layout Itemize
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 Tooltip
9534 \end_layout
9535
9536 \end_inset
9537
9538  
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 [文字列]
9544 \end_layout
9545
9546 \end_inset
9547
9548  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9549 \end_layout
9550
9551 \begin_layout Itemize
9552 \begin_inset Flex Code
9553 status collapsed
9554
9555 \begin_layout Plain Layout
9556 Mandatory
9557 \end_layout
9558
9559 \end_inset
9560
9561  [
9562 \begin_inset Flex Code
9563 status collapsed
9564
9565 \begin_layout Plain Layout
9566
9567 \emph on
9568 0
9569 \end_layout
9570
9571 \end_inset
9572
9573 ,
9574 \begin_inset space \thinspace{}
9575 \end_inset
9576
9577
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 1
9583 \end_layout
9584
9585 \end_inset
9586
9587 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9588 。既定では、必須引数は
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 {...}
9594 \end_layout
9595
9596 \end_inset
9597
9598 で区切られ、非必須引数は
9599 \begin_inset Flex Code
9600 status collapsed
9601
9602 \begin_layout Plain Layout
9603 [...]
9604 \end_layout
9605
9606 \end_inset
9607
9608 で区切られます。
9609 \end_layout
9610
9611 \begin_layout Itemize
9612 \begin_inset Flex Code
9613 status collapsed
9614
9615 \begin_layout Plain Layout
9616 Requires
9617 \end_layout
9618
9619 \end_inset
9620
9621  
9622 \begin_inset Flex Code
9623 status collapsed
9624
9625 \begin_layout Plain Layout
9626 [整数=0]
9627 \end_layout
9628
9629 \end_inset
9630
9631  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9632 コマンドでは、
9633 \begin_inset Flex Code
9634 status collapsed
9635
9636 \begin_layout Plain Layout
9637
9638 \backslash
9639 command[][引数]{文字列}
9640 \end_layout
9641
9642 \end_inset
9643
9644 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 Argument 2
9650 \end_layout
9651
9652 \end_inset
9653
9654 中に
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 Requires 1
9660 \end_layout
9661
9662 \end_inset
9663
9664 ステートメントを置くことで実現できます。
9665 \end_layout
9666
9667 \begin_layout Itemize
9668 \begin_inset Flex Code
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672 LeftDelim
9673 \end_layout
9674
9675 \end_inset
9676
9677  
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 [文字列]
9683 \end_layout
9684
9685 \end_inset
9686
9687  (
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 {
9693 \end_layout
9694
9695 \end_inset
9696
9697
9698 \begin_inset Flex Code
9699 status collapsed
9700
9701 \begin_layout Plain Layout
9702 [
9703 \end_layout
9704
9705 \end_inset
9706
9707 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
9708 \begin_inset Flex Code
9709 status collapsed
9710
9711 \begin_layout Plain Layout
9712 <br/>
9713 \end_layout
9714
9715 \end_inset
9716
9717 で指示できます。
9718 \end_layout
9719
9720 \begin_layout Itemize
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 RightDelim
9726 \end_layout
9727
9728 \end_inset
9729
9730  
9731 \begin_inset Flex Code
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735 [文字列]
9736 \end_layout
9737
9738 \end_inset
9739
9740  (
9741 \begin_inset Flex Code
9742 status collapsed
9743
9744 \begin_layout Plain Layout
9745 }
9746 \end_layout
9747
9748 \end_inset
9749
9750
9751 \begin_inset Flex Code
9752 status collapsed
9753
9754 \begin_layout Plain Layout
9755 ]
9756 \end_layout
9757
9758 \end_inset
9759
9760 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
9761 \begin_inset Flex Code
9762 status collapsed
9763
9764 \begin_layout Plain Layout
9765 <br/>
9766 \end_layout
9767
9768 \end_inset
9769
9770 で指示できます。
9771 \end_layout
9772
9773 \begin_layout Itemize
9774 \begin_inset Flex Code
9775 status collapsed
9776
9777 \begin_layout Plain Layout
9778 DefaultArg
9779 \end_layout
9780
9781 \end_inset
9782
9783  
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 [文字列]
9789 \end_layout
9790
9791 \end_inset
9792
9793  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9794 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
9795 \end_layout
9796
9797 \begin_layout Itemize
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 PresetArg
9803 \end_layout
9804
9805 \end_inset
9806
9807  
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 [文字列]
9813 \end_layout
9814
9815 \end_inset
9816
9817  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
9818 \end_layout
9819
9820 \begin_layout Itemize
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 Font
9826 \end_layout
9827
9828 \end_inset
9829
9830  引数の内容に用いられるフォント。
9831 \begin_inset CommandInset ref
9832 LatexCommand ref
9833 reference "subsec:フォント指定"
9834
9835 \end_inset
9836
9837 参照。
9838 \end_layout
9839
9840 \begin_layout Itemize
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 LabelFont
9846 \end_layout
9847
9848 \end_inset
9849
9850  ラベルに用いられるフォント。
9851 \begin_inset CommandInset ref
9852 LatexCommand ref
9853 reference "subsec:フォント指定"
9854
9855 \end_inset
9856
9857 参照。
9858 \end_layout
9859
9860 \begin_layout Itemize
9861 \begin_inset Flex Code
9862 status collapsed
9863
9864 \begin_layout Plain Layout
9865 Decoration
9866 \end_layout
9867
9868 \end_inset
9869
9870  [
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875
9876 \emph on
9877 Classic
9878 \emph default
9879 , Minimalistic, Conglomerate
9880 \end_layout
9881
9882 \end_inset
9883
9884 ] 差込枠の枠とボタンに用いられる装飾様式。
9885 \end_layout
9886
9887 \begin_layout Itemize
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 AutoInsert
9893 \end_layout
9894
9895 \end_inset
9896
9897  
9898 \begin_inset Flex Code
9899 status collapsed
9900
9901 \begin_layout Plain Layout
9902 [整数=0]
9903 \end_layout
9904
9905 \end_inset
9906
9907  これが
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 1
9913 \end_layout
9914
9915 \end_inset
9916
9917 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
9918 \end_layout
9919
9920 \begin_layout Itemize
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 InsertCotext
9926 \end_layout
9927
9928 \end_inset
9929
9930  
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 [整数=0]
9936 \end_layout
9937
9938 \end_inset
9939
9940  これが
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945 1
9946 \end_layout
9947
9948 \end_inset
9949
9950 に設定されると、この引数は、副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます。
9951 \end_layout
9952
9953 \begin_layout Itemize
9954 \begin_inset Flex Code
9955 status collapsed
9956
9957 \begin_layout Plain Layout
9958 PassThruChars
9959 \end_layout
9960
9961 \end_inset
9962
9963  [
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968 文字列
9969 \end_layout
9970
9971 \end_inset
9972
9973 ]
9974 \family typewriter
9975  
9976 \family default
9977 \SpecialChar LaTeX
9978 が要求する特別な翻訳は抜きにして、生の形で出力されるべき各文字を定義します。PassThruとは違って、引数用に、これは明示的に定義されなくてはなりません。つま
9979 り、引数は、親差込枠や親レイアウトからPassThruCharsを継承しません。
9980 \end_layout
9981
9982 \begin_layout Standard
9983 既定では、
9984 \begin_inset Flex Code
9985 status collapsed
9986
9987 \begin_layout Plain Layout
9988 LatexType
9989 \end_layout
9990
9991 \end_inset
9992
9993
9994 \begin_inset Flex Code
9995 status collapsed
9996
9997 \begin_layout Plain Layout
9998 Command
9999 \end_layout
10000
10001 \end_inset
10002
10003 のとき、各レイアウトで\SpecialChar LyX
10004 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10005 \begin_inset Flex Code
10006 status collapsed
10007
10008 \begin_layout Plain Layout
10009 post:
10010 \end_layout
10011
10012 \end_inset
10013
10014 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10015 \begin_inset Flex Code
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 post:1
10020 \end_layout
10021
10022 \end_inset
10023
10024 となります。後置引数は、
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 Command
10030 \end_layout
10031
10032 \end_inset
10033
10034 以外の
10035 \begin_inset Flex Code
10036 status collapsed
10037
10038 \begin_layout Plain Layout
10039 LatexType
10040 \end_layout
10041
10042 \end_inset
10043
10044 では無視されます。
10045 \end_layout
10046
10047 \begin_layout Standard
10048 (
10049 \begin_inset Flex Code
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053
10054 \backslash
10055 item[foo]
10056 \end_layout
10057
10058 \end_inset
10059
10060 のような)箇条書き
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065
10066 \backslash
10067 item
10068 \end_layout
10069
10070 \end_inset
10071
10072 の引数は、前置句
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 item:
10078 \end_layout
10079
10080 \end_inset
10081
10082 の後に番号を付けます(例:
10083 \begin_inset Flex Code
10084 status collapsed
10085
10086 \begin_layout Plain Layout
10087 Argument item:1
10088 \end_layout
10089
10090 \end_inset
10091
10092 )。
10093 \end_layout
10094
10095 \end_deeper
10096 \begin_layout Description
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101 BabelPreamble
10102 \end_layout
10103
10104 \end_inset
10105
10106  これは、前に現れたこの様式の
10107 \begin_inset Flex Code
10108 status collapsed
10109
10110 \begin_layout Plain Layout
10111 BabelPreamble
10112 \end_layout
10113
10114 \end_inset
10115
10116 宣言をすべて、完全に上書きしますので注意してください。「
10117 \begin_inset Flex Code
10118 status collapsed
10119
10120 \begin_layout Plain Layout
10121 EndBabelPreamble
10122 \end_layout
10123
10124 \end_inset
10125
10126 」で閉じる必要があります。これの利用法についての詳細は、第
10127 \begin_inset CommandInset ref
10128 LatexCommand ref
10129 reference "subsec:段落様式の国際化"
10130
10131 \end_inset
10132
10133 節をご覧ください。
10134 \end_layout
10135
10136 \begin_layout Description
10137 \begin_inset Flex Code
10138 status collapsed
10139
10140 \begin_layout Plain Layout
10141 BottomSep
10142 \end_layout
10143
10144 \end_inset
10145
10146  [
10147 \begin_inset Flex Code
10148 status collapsed
10149
10150 \begin_layout Plain Layout
10151 浮動小数点型=0
10152 \end_layout
10153
10154 \end_inset
10155
10156 ]
10157 \begin_inset Foot
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 ここで「浮動小数点型」とは1.5のような実数を指します。
10162 \end_layout
10163
10164 \end_inset
10165
10166  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10167 す。
10168 \end_layout
10169
10170 \begin_layout Description
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 Category
10176 \end_layout
10177
10178 \end_inset
10179
10180  [
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 文字列
10186 \end_layout
10187
10188 \end_inset
10189
10190 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10191 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10192 \end_layout
10193
10194 \begin_layout Description
10195 \begin_inset Flex Code
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199 CommandDepth
10200 \end_layout
10201
10202 \end_inset
10203
10204  XMLコマンドの深度。XML型の書式でのみ使用されます。
10205 \end_layout
10206
10207 \begin_layout Description
10208 \begin_inset Flex Code
10209 status collapsed
10210
10211 \begin_layout Plain Layout
10212 CopyStyle
10213 \end_layout
10214
10215 \end_inset
10216
10217  [
10218 \begin_inset Flex Code
10219 status collapsed
10220
10221 \begin_layout Plain Layout
10222 文字列
10223 \end_layout
10224
10225 \end_inset
10226
10227 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10228 \end_layout
10229
10230 \begin_layout Description
10231 \begin_inset Flex Code
10232 status collapsed
10233
10234 \begin_layout Plain Layout
10235 DependsOn
10236 \end_layout
10237
10238 \end_inset
10239
10240  [
10241 \begin_inset Flex Code
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245 <名称>
10246 \end_layout
10247
10248 \end_inset
10249
10250 ]
10251 \lang english
10252  
10253 \lang japanese
10254 この
10255 \emph on
10256 前に
10257 \emph default
10258 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10259 \begin_inset Foot
10260 status collapsed
10261
10262 \begin_layout Plain Layout
10263 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10264 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10265 あります。
10266 \end_layout
10267
10268 \end_inset
10269
10270
10271 \end_layout
10272
10273 \begin_layout Description
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 EndLabeltype
10279 \end_layout
10280
10281 \end_inset
10282
10283  [
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288
10289 \emph on
10290 No_Label
10291 \emph default
10292 , Box, Filled_Box, Static
10293 \end_layout
10294
10295 \end_inset
10296
10297 ] 段落の最後(あるいは
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 LatexType
10303 \end_layout
10304
10305 \end_inset
10306
10307 が、
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312 Environment
10313 \end_layout
10314
10315 \end_inset
10316
10317
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 Item_Environment
10323 \end_layout
10324
10325 \end_inset
10326
10327
10328 \begin_inset Flex Code
10329 status collapsed
10330
10331 \begin_layout Plain Layout
10332 List_Environment
10333 \end_layout
10334
10335 \end_inset
10336
10337 のいずれかの場合は、段落群の最後)に置くラベル。
10338 \begin_inset Flex Code
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 No_Label
10343 \end_layout
10344
10345 \end_inset
10346
10347 の場合は「何もない」ことを指し、
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 Box
10353 \end_layout
10354
10355 \end_inset
10356
10357 (あるいは
10358 \begin_inset Flex Code
10359 status collapsed
10360
10361 \begin_layout Plain Layout
10362 Filled_Box
10363 \end_layout
10364
10365 \end_inset
10366
10367 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 Static
10373 \end_layout
10374
10375 \end_inset
10376
10377 は明示したテキスト文字列を指します。
10378 \end_layout
10379
10380 \begin_layout Description
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 EndLabelString
10386 \end_layout
10387
10388 \end_inset
10389
10390  [
10391 \begin_inset Flex Code
10392 status collapsed
10393
10394 \begin_layout Plain Layout
10395 文字列=""
10396 \end_layout
10397
10398 \end_inset
10399
10400
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 Static
10406 \end_layout
10407
10408 \end_inset
10409
10410
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 EndLabelType
10416 \end_layout
10417
10418 \end_inset
10419
10420 のラベルで用いる文字列。
10421 \end_layout
10422
10423 \begin_layout Description
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 Font
10429 \end_layout
10430
10431 \end_inset
10432
10433  本文テキストとラベルの
10434 \emph on
10435 両方で
10436 \emph default
10437 用いられるフォント。第
10438 \begin_inset CommandInset ref
10439 LatexCommand ref
10440 reference "subsec:フォント指定"
10441
10442 \end_inset
10443
10444 節を参照。このフォントを定義すると、自動的に
10445 \begin_inset Flex Code
10446 status collapsed
10447
10448 \begin_layout Plain Layout
10449 LabelFont
10450 \end_layout
10451
10452 \end_inset
10453
10454 も同じ値で定義されることに注意してください。したがって、
10455 \begin_inset Flex Code
10456 status collapsed
10457
10458 \begin_layout Plain Layout
10459 LabelFont
10460 \end_layout
10461
10462 \end_inset
10463
10464 も同時に定義したい場合には、これを先に定義してください。
10465 \end_layout
10466
10467 \begin_layout Description
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 ForceLocal
10473 \end_layout
10474
10475 \end_inset
10476
10477  [
10478 \begin_inset Flex Code
10479 status collapsed
10480
10481 \begin_layout Plain Layout
10482 int=0
10483 \end_layout
10484
10485 \end_inset
10486
10487 ] 新しい様式を\SpecialChar LyX
10488 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10489  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10490 できます。様式の
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 ForceLocal
10496 \end_layout
10497
10498 \end_inset
10499
10500 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10501 版の\SpecialChar LyX
10502 もこの様式を取り扱えるようになります。
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 ForceLocal
10508 \end_layout
10509
10510 \end_inset
10511
10512 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10513 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10514 \end_layout
10515
10516 \begin_layout Description
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 FreeSpacing
10522 \end_layout
10523
10524 \end_inset
10525
10526  [
10527 \emph on
10528
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 0
10534 \end_layout
10535
10536 \end_inset
10537
10538
10539 \emph default
10540 ,
10541 \begin_inset space \thinspace{}
10542 \end_inset
10543
10544
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 1
10550 \end_layout
10551
10552 \end_inset
10553
10554 ] \SpecialChar LyX
10555 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10556 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10557 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10558 \begin_inset Flex Code
10559 status collapsed
10560
10561 \begin_layout Plain Layout
10562 FreeSpacing
10563 \end_layout
10564
10565 \end_inset
10566
10567 を有効にすることが認められています。\SpecialChar LyX
10568 は、\SpecialChar LaTeX
10569 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10570 \end_layout
10571
10572 \begin_layout Description
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577 HTML*
10578 \end_layout
10579
10580 \end_inset
10581
10582  これらのタグは、XHTML出力で使用されます。第
10583 \begin_inset CommandInset ref
10584 LatexCommand ref
10585 reference "subsec:段落様式-XHTML"
10586
10587 \end_inset
10588
10589 節をご覧ください。
10590 \end_layout
10591
10592 \begin_layout Description
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 InnerTag
10598 \end_layout
10599
10600 \end_inset
10601
10602  [[FIXME]] (XML型書式でのみ使用されます。)
10603 \end_layout
10604
10605 \begin_layout Description
10606 \begin_inset Flex Code
10607 status collapsed
10608
10609 \begin_layout Plain Layout
10610 InPreamble
10611 \end_layout
10612
10613 \end_inset
10614
10615  [
10616 \emph on
10617
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 0
10623 \end_layout
10624
10625 \end_inset
10626
10627
10628 \emph default
10629 ,
10630 \begin_inset space \thinspace{}
10631 \end_inset
10632
10633
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638 1
10639 \end_layout
10640
10641 \end_inset
10642
10643
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 1
10649 \end_layout
10650
10651 \end_inset
10652
10653 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10654 です。これは、
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 LatexType
10660 \end_layout
10661
10662 \end_inset
10663
10664
10665 \begin_inset Flex Code
10666 status collapsed
10667
10668 \begin_layout Plain Layout
10669 Command
10670 \end_layout
10671
10672 \end_inset
10673
10674 または
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 Paragraph
10680 \end_layout
10681
10682 \end_inset
10683
10684 の様式に対してのみ動作します。
10685 \end_layout
10686
10687 \begin_layout Description
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 InTitle
10693 \end_layout
10694
10695 \end_inset
10696
10697  [
10698 \emph on
10699
10700 \begin_inset Flex Code
10701 status collapsed
10702
10703 \begin_layout Plain Layout
10704 0
10705 \end_layout
10706
10707 \end_inset
10708
10709
10710 \emph default
10711 ,
10712 \begin_inset space \thinspace{}
10713 \end_inset
10714
10715
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 1
10721 \end_layout
10722
10723 \end_inset
10724
10725
10726 \begin_inset Flex Code
10727 status collapsed
10728
10729 \begin_layout Plain Layout
10730 1
10731 \end_layout
10732
10733 \end_inset
10734
10735 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10736 \begin_inset Flex Code
10737 status collapsed
10738
10739 \begin_layout Plain Layout
10740 TitleLatexType
10741 \end_layout
10742
10743 \end_inset
10744
10745
10746 \begin_inset Flex Code
10747 status collapsed
10748
10749 \begin_layout Plain Layout
10750 TitleLatexName
10751 \end_layout
10752
10753 \end_inset
10754
10755 も参照)。
10756 \end_layout
10757
10758 \begin_layout Description
10759 \begin_inset Flex Code
10760 status collapsed
10761
10762 \begin_layout Plain Layout
10763 ItemCommand
10764 \end_layout
10765
10766 \end_inset
10767
10768  [
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 文字列="item"
10774 \end_layout
10775
10776 \end_inset
10777
10778 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10779 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
10780 出力中では
10781 \begin_inset Flex Code
10782 status collapsed
10783
10784 \begin_layout Plain Layout
10785
10786 \backslash
10787 item
10788 \end_layout
10789
10790 \end_inset
10791
10792 となります)。
10793 \end_layout
10794
10795 \begin_layout Description
10796 \begin_inset Flex Code
10797 status collapsed
10798
10799 \begin_layout Plain Layout
10800 ItemSep
10801 \end_layout
10802
10803 \end_inset
10804
10805  [
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 浮動小数点型=0
10811 \end_layout
10812
10813 \end_inset
10814
10815 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
10816 \begin_inset Flex Code
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 ParSep
10821 \end_layout
10822
10823 \end_inset
10824
10825 だけ分離されます。しかし、その環境の項目全体は、さらにこの
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 ItemSep
10831 \end_layout
10832
10833 \end_inset
10834
10835 分だけ離されます。これは
10836 \emph on
10837 乗数
10838 \emph default
10839 であることに注意してください。
10840 \end_layout
10841
10842 \begin_layout Description
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 ItemTag
10848 \end_layout
10849
10850 \end_inset
10851
10852  [[FIXME]] (XML型書式でのみ使用されます。)
10853 \end_layout
10854
10855 \begin_layout Description
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 KeepEmpty
10861 \end_layout
10862
10863 \end_inset
10864
10865  [
10866 \emph on
10867
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872 0
10873 \end_layout
10874
10875 \end_inset
10876
10877
10878 \emph default
10879 ,
10880 \begin_inset space \thinspace{}
10881 \end_inset
10882
10883
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888 1
10889 \end_layout
10890
10891 \end_inset
10892
10893 ] 段落を空のままにすると、\SpecialChar LaTeX
10894 出力が空になってしまうので、通常、\SpecialChar LyX
10895 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
10896 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
10897 まないある種の改行として使用することもあります。
10898 \end_layout
10899
10900 \begin_layout Description
10901 \begin_inset Flex Code
10902 status collapsed
10903
10904 \begin_layout Plain Layout
10905 LabelBottomsep
10906 \end_layout
10907
10908 \end_inset
10909
10910  [
10911 \begin_inset Flex Code
10912 status collapsed
10913
10914 \begin_layout Plain Layout
10915 浮動小数点型=0
10916 \end_layout
10917
10918 \end_inset
10919
10920 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
10921 \begin_inset Flex Code
10922 status collapsed
10923
10924 \begin_layout Plain Layout
10925 Top_Environment
10926 \end_layout
10927
10928 \end_inset
10929
10930 および
10931 \begin_inset Newline linebreak
10932 \end_inset
10933
10934
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 Centered_Top_Environment
10940 \end_layout
10941
10942 \end_inset
10943
10944 )。
10945 \end_layout
10946
10947 \begin_layout Description
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 LabelCounter
10953 \end_layout
10954
10955 \end_inset
10956
10957  [
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962 文字列=""
10963 \end_layout
10964
10965 \end_inset
10966
10967 ] 自動連番に使われるカウンタ名(詳しくは第
10968 \begin_inset CommandInset ref
10969 LatexCommand ref
10970 reference "subsec:カウンタ"
10971
10972 \end_inset
10973
10974 節参照)。カウンタがラベル中に表示されるようにするためには、
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 LabelString
10980 \end_layout
10981
10982 \end_inset
10983
10984 中で参照する必要があります。これは、少なくとも
10985 \begin_inset Flex Code
10986 status collapsed
10987
10988 \begin_layout Plain Layout
10989 Static
10990 \end_layout
10991
10992 \end_inset
10993
10994
10995 \begin_inset Flex Code
10996 status collapsed
10997
10998 \begin_layout Plain Layout
10999 Above
11000 \end_layout
11001
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 Centered
11010 \end_layout
11011
11012 \end_inset
11013
11014 の各
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 LabelType
11020 \end_layout
11021
11022 \end_inset
11023
11024 で動作します。
11025 \begin_inset Newline newline
11026 \end_inset
11027
11028 また、
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033 LabelType
11034 \end_layout
11035
11036 \end_inset
11037
11038
11039 \begin_inset Flex Code
11040 status collapsed
11041
11042 \begin_layout Plain Layout
11043 Enumerate
11044 \end_layout
11045
11046 \end_inset
11047
11048 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11049 \begin_inset Flex Code
11050 status collapsed
11051
11052 \begin_layout Plain Layout
11053 LabelCounter myenum
11054 \end_layout
11055
11056 \end_inset
11057
11058 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11059 におけるのと同様、実際に使われるカウンタは、
11060 \begin_inset Flex Code
11061 status collapsed
11062
11063 \begin_layout Plain Layout
11064 myenumi
11065 \end_layout
11066
11067 \end_inset
11068
11069
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 myenumii
11075 \end_layout
11076
11077 \end_inset
11078
11079
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 myenumii
11085 \end_layout
11086
11087 \end_inset
11088
11089
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 myenumiv
11095 \end_layout
11096
11097 \end_inset
11098
11099 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11100 \begin_inset Newline newline
11101 \end_inset
11102
11103 カウンタの詳細については、
11104 \begin_inset CommandInset ref
11105 LatexCommand ref
11106 reference "subsec:カウンタ"
11107
11108 \end_inset
11109
11110 をご覧ください。
11111 \end_layout
11112
11113 \begin_layout Description
11114 \begin_inset Flex Code
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118 LabelFont
11119 \end_layout
11120
11121 \end_inset
11122
11123  ラベルに使用されるフォント。
11124 \begin_inset CommandInset ref
11125 LatexCommand ref
11126 reference "subsec:フォント指定"
11127
11128 \end_inset
11129
11130 を参照。
11131 \end_layout
11132
11133 \begin_layout Description
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138 LabelIndent
11139 \end_layout
11140
11141 \end_inset
11142
11143  [
11144 \begin_inset Flex Code
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148 文字列=""
11149 \end_layout
11150
11151 \end_inset
11152
11153 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11154 \end_layout
11155
11156 \begin_layout Description
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 LabelSep
11162 \end_layout
11163
11164 \end_inset
11165
11166  [
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 文字列=""
11172 \end_layout
11173
11174 \end_inset
11175
11176 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11177 \end_layout
11178
11179 \begin_layout Description
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 LabelString
11185 \end_layout
11186
11187 \end_inset
11188
11189  [
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194 文字列=""
11195 \end_layout
11196
11197 \end_inset
11198
11199
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 Static
11205 \end_layout
11206
11207 \end_inset
11208
11209 ラベル型でラベルに使用する文字列。
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214 LabelCounter
11215 \end_layout
11216
11217 \end_inset
11218
11219 を設定している場合、
11220 \begin_inset CommandInset ref
11221 LatexCommand ref
11222 reference "subsec:カウンタ"
11223
11224 \end_inset
11225
11226 に述べられている特別な整形コマンドを含めることができます。
11227 \end_layout
11228
11229 \begin_layout Description
11230 \begin_inset Flex Code
11231 status collapsed
11232
11233 \begin_layout Plain Layout
11234 LabelStringAppendix
11235 \end_layout
11236
11237 \end_inset
11238
11239  [
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 文字列=""
11245 \end_layout
11246
11247 \end_inset
11248
11249 ] これは付録の中で
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 LabelString
11255 \end_layout
11256
11257 \end_inset
11258
11259 の代わりに用いられます。各
11260 \begin_inset Flex Code
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264 LabelString
11265 \end_layout
11266
11267 \end_inset
11268
11269 ステートメントは、
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274 LabelStringAppendix
11275 \end_layout
11276
11277 \end_inset
11278
11279 をもリセットすることに注意してください。
11280 \end_layout
11281
11282 \begin_layout Description
11283 \begin_inset Flex Code
11284 status collapsed
11285
11286 \begin_layout Plain Layout
11287 LabelTag
11288 \end_layout
11289
11290 \end_inset
11291
11292  [FIXME] (XML型書式でのみ使用されます。)
11293 \end_layout
11294
11295 \begin_layout Description
11296 \begin_inset Flex Code
11297 status collapsed
11298
11299 \begin_layout Plain Layout
11300 LabelType
11301 \end_layout
11302
11303 \end_inset
11304
11305  [
11306 \begin_inset Flex Code
11307 status collapsed
11308
11309 \begin_layout Plain Layout
11310
11311 \emph on
11312 No_Label
11313 \emph default
11314 , Manual, Static, Above,
11315 \begin_inset Newline newline
11316 \end_inset
11317
11318 Centered, Sensitive, Enumerate,
11319 \begin_inset Newline newline
11320 \end_inset
11321
11322 Itemize, Bibliography
11323 \end_layout
11324
11325 \end_inset
11326
11327 ]
11328 \begin_inset Separator parbreak
11329 \end_inset
11330
11331
11332 \end_layout
11333
11334 \begin_deeper
11335 \begin_layout Description
11336 \begin_inset Flex Code
11337 status collapsed
11338
11339 \begin_layout Plain Layout
11340 Manual
11341 \end_layout
11342
11343 \end_inset
11344
11345  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11346 \end_layout
11347
11348 \begin_layout Description
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353 Static
11354 \end_layout
11355
11356 \end_inset
11357
11358  は、ラベルが
11359 \begin_inset Flex Code
11360 status collapsed
11361
11362 \begin_layout Plain Layout
11363 LabelString
11364 \end_layout
11365
11366 \end_inset
11367
11368 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11369 \begin_inset Flex Code
11370 status collapsed
11371
11372 \begin_layout Plain Layout
11373 LatexType
11374 \end_layout
11375
11376 \end_inset
11377
11378
11379 \begin_inset Flex Code
11380 status collapsed
11381
11382 \begin_layout Plain Layout
11383 Environment
11384 \end_layout
11385
11386 \end_inset
11387
11388 のときは、連続する同じ
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393 Style
11394 \end_layout
11395
11396 \end_inset
11397
11398 の段落中、最初の段落にのみ表示されます。
11399 \end_layout
11400
11401 \begin_layout Description
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 Above
11407 \end_layout
11408
11409 \end_inset
11410
11411 および
11412 \begin_inset Flex Code
11413 status collapsed
11414
11415 \begin_layout Plain Layout
11416 Centered
11417 \end_layout
11418
11419 \end_inset
11420
11421  は、
11422 \begin_inset Flex Code
11423 status collapsed
11424
11425 \begin_layout Plain Layout
11426 Static
11427 \end_layout
11428
11429 \end_inset
11430
11431 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11432 \end_layout
11433
11434 \begin_layout Description
11435 \begin_inset Flex Code
11436 status collapsed
11437
11438 \begin_layout Plain Layout
11439 Sensitive
11440 \end_layout
11441
11442 \end_inset
11443
11444  はキャプションラベルの「図」や「表」の特別な場合です。
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449 Sensitive
11450 \end_layout
11451
11452 \end_inset
11453
11454 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11455 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460 LabelString
11461 \end_layout
11462
11463 \end_inset
11464
11465 は「意味を成しません!」と表示されます。
11466 \end_layout
11467
11468 \begin_layout Description
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 Enumerate
11474 \end_layout
11475
11476 \end_inset
11477
11478  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11479 す。
11480 \end_layout
11481
11482 \begin_layout Description
11483 \begin_inset Flex Code
11484 status collapsed
11485
11486 \begin_layout Plain Layout
11487 Itemize
11488 \end_layout
11489
11490 \end_inset
11491
11492  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11493 \end_layout
11494
11495 \begin_layout Description
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 Bibliography
11501 \end_layout
11502
11503 \end_inset
11504
11505  は、
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510 LatexType BibEnvironment
11511 \end_layout
11512
11513 \end_inset
11514
11515 とともにのみ使用されます。
11516 \end_layout
11517
11518 \end_deeper
11519 \begin_layout Description
11520 \begin_inset Flex Code
11521 status collapsed
11522
11523 \begin_layout Plain Layout
11524 LangPreamble
11525 \end_layout
11526
11527 \end_inset
11528
11529  これは、この様式で既に出現した
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534 LangPreamble
11535 \end_layout
11536
11537 \end_inset
11538
11539 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11540 \begin_inset CommandInset ref
11541 LatexCommand ref
11542 reference "subsec:段落様式の国際化"
11543
11544 \end_inset
11545
11546 をご覧ください。
11547 \end_layout
11548
11549 \begin_layout Description
11550 \begin_inset Flex Code
11551 status collapsed
11552
11553 \begin_layout Plain Layout
11554 LatexName
11555 \end_layout
11556
11557 \end_inset
11558
11559  [
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 <名称>
11565 \end_layout
11566
11567 \end_inset
11568
11569 ] 対応する\SpecialChar LaTeX
11570 の名称です。環境名かコマンド名を指します。
11571 \end_layout
11572
11573 \begin_layout Description
11574 \begin_inset Flex Code
11575 status collapsed
11576
11577 \begin_layout Plain Layout
11578 LatexParam
11579 \end_layout
11580
11581 \end_inset
11582
11583  [
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588 <パラメータ>
11589 \end_layout
11590
11591 \end_inset
11592
11593 ] 対応する
11594 \begin_inset Flex Code
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598 LatexName
11599 \end_layout
11600
11601 \end_inset
11602
11603 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11604 内部から変更することはできません(変更可能なパラメータには
11605 \begin_inset Flex Code
11606 status collapsed
11607
11608 \begin_layout Plain Layout
11609 Argument
11610 \end_layout
11611
11612 \end_inset
11613
11614 を使用してください)。これは、全ての\SpecialChar LaTeX
11615  
11616 \begin_inset Flex Code
11617 status collapsed
11618
11619 \begin_layout Plain Layout
11620 Argument
11621 \end_layout
11622
11623 \end_inset
11624
11625 の後にそのままの形で出力されます。
11626 \end_layout
11627
11628 \begin_layout Description
11629 \begin_inset Flex Code
11630 status collapsed
11631
11632 \begin_layout Plain Layout
11633 LatexType
11634 \end_layout
11635
11636 \end_inset
11637
11638  [
11639 \begin_inset Flex Code
11640 status collapsed
11641
11642 \begin_layout Plain Layout
11643
11644 \emph on
11645 Paragraph
11646 \emph default
11647 , Command, Environment, Item_Environment,
11648 \begin_inset Newline newline
11649 \end_inset
11650
11651 List_Environment, Bib_Environment
11652 \end_layout
11653
11654 \end_inset
11655
11656 ] レイアウトがどのように\SpecialChar LaTeX
11657 に変換されるべきかを示します
11658 \begin_inset Foot
11659 status collapsed
11660
11661 \begin_layout Plain Layout
11662 これらのルールはSGMLクラスにも適用されるので、
11663 \begin_inset Flex Code
11664 status collapsed
11665
11666 \begin_layout Plain Layout
11667 LatexType
11668 \end_layout
11669
11670 \end_inset
11671
11672 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 db_*.inc
11678 \end_layout
11679
11680 \end_inset
11681
11682 )を見てください。
11683 \end_layout
11684
11685 \end_inset
11686
11687
11688 \begin_inset Separator parbreak
11689 \end_inset
11690
11691
11692 \end_layout
11693
11694 \begin_deeper
11695 \begin_layout Description
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 Paragraph
11701 \end_layout
11702
11703 \end_inset
11704
11705  は、何も特別なことは意味しません。
11706 \end_layout
11707
11708 \begin_layout Description
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 Command
11714 \end_layout
11715
11716 \end_inset
11717
11718  は、
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723
11724 \backslash
11725
11726 \emph on
11727 LatexName
11728 \emph default
11729 {\SpecialChar ldots
11730 }
11731 \end_layout
11732
11733 \end_inset
11734
11735 を意味します。
11736 \end_layout
11737
11738 \begin_layout Description
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743 Environment
11744 \end_layout
11745
11746 \end_inset
11747
11748  は、
11749 \begin_inset Flex Code
11750 status collapsed
11751
11752 \begin_layout Plain Layout
11753
11754 \backslash
11755 begin{
11756 \emph on
11757 LatexName
11758 \emph default
11759 }\SpecialChar ldots
11760
11761 \backslash
11762 end{
11763 \emph on
11764 LatexName
11765 \emph default
11766 }
11767 \end_layout
11768
11769 \end_inset
11770
11771 を意味します。
11772 \end_layout
11773
11774 \begin_layout Description
11775 \begin_inset Flex Code
11776 status collapsed
11777
11778 \begin_layout Plain Layout
11779 Item_Environment
11780 \end_layout
11781
11782 \end_inset
11783
11784  は
11785 \begin_inset Flex Code
11786 status collapsed
11787
11788 \begin_layout Plain Layout
11789 Environment
11790 \end_layout
11791
11792 \end_inset
11793
11794 と同じですが、
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799
11800 \backslash
11801 item
11802 \end_layout
11803
11804 \end_inset
11805
11806 がこの環境のすべての段落に付けられるところだけが異なっています。
11807 \end_layout
11808
11809 \begin_layout Description
11810 \begin_inset Flex Code
11811 status collapsed
11812
11813 \begin_layout Plain Layout
11814 List_Environment
11815 \end_layout
11816
11817 \end_inset
11818
11819  は
11820 \begin_inset Flex Code
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 Item_Environment
11825 \end_layout
11826
11827 \end_inset
11828
11829 と同じですが、
11830 \begin_inset Flex Code
11831 status collapsed
11832
11833 \begin_layout Plain Layout
11834 LabelWidthString
11835 \end_layout
11836
11837 \end_inset
11838
11839 が環境の引数として渡されるところだけが異なっています。
11840 \begin_inset Flex Code
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 LabelWidthString
11845 \end_layout
11846
11847 \end_inset
11848
11849 は、
11850 \begin_inset Flex MenuItem
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 編集\SpecialChar menuseparator
11855 段落設定
11856 \end_layout
11857
11858 \end_inset
11859
11860 ダイアログで定義することができます。
11861 \end_layout
11862
11863 \begin_layout Description
11864 \begin_inset Flex Code
11865 status collapsed
11866
11867 \begin_layout Plain Layout
11868 Bib_Environment
11869 \end_layout
11870
11871 \end_inset
11872
11873  は
11874 \begin_inset Flex Code
11875 status collapsed
11876
11877 \begin_layout Plain Layout
11878 Environment
11879 \end_layout
11880
11881 \end_inset
11882
11883 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
11884 \begin_inset Newline newline
11885 \end_inset
11886
11887
11888 \begin_inset Flex Code
11889 status collapsed
11890
11891 \begin_layout Plain Layout
11892
11893 \backslash
11894 begin{thebibliography}{99}
11895 \end_layout
11896
11897 \end_inset
11898
11899
11900 \begin_inset Newline newline
11901 \end_inset
11902
11903 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
11904 \end_layout
11905
11906 \begin_layout Standard
11907 上記最後のいくつかをまとめると、\SpecialChar LaTeX
11908 出力は、\SpecialChar LaTeX
11909 型に依存して
11910 \end_layout
11911
11912 \begin_layout LyX-Code
11913
11914 \backslash
11915 LatexName[LatexParam]{\SpecialChar ldots
11916 }
11917 \end_layout
11918
11919 \begin_layout Standard
11920 のようになるか、
11921 \end_layout
11922
11923 \begin_layout LyX-Code
11924
11925 \backslash
11926 begin{LatexName}[LatexParam] \SpecialChar ldots
11927  
11928 \backslash
11929 end{LatexName}.
11930 \end_layout
11931
11932 \begin_layout Standard
11933 となります。
11934 \end_layout
11935
11936 \end_deeper
11937 \begin_layout Description
11938 \begin_inset Flex Code
11939 status collapsed
11940
11941 \begin_layout Plain Layout
11942 LeftDelim
11943 \end_layout
11944
11945 \end_inset
11946
11947  [
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 文字列
11953 \end_layout
11954
11955 \end_inset
11956
11957 ] 様式の内容の最初に置かれる文字列。出力中の改行は
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962 <br/>
11963 \end_layout
11964
11965 \end_inset
11966
11967 で指示できます。
11968 \end_layout
11969
11970 \begin_layout Description
11971 \begin_inset Flex Code
11972 status collapsed
11973
11974 \begin_layout Plain Layout
11975 LeftMargin
11976 \end_layout
11977
11978 \end_inset
11979
11980  [
11981 \begin_inset Flex Code
11982 status collapsed
11983
11984 \begin_layout Plain Layout
11985 文字列=""
11986 \end_layout
11987
11988 \end_inset
11989
11990 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
11991 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11992 \end_inset
11993
11994 をかけて加えられます。このパラメータは、
11995 \begin_inset Flex Code
11996 status collapsed
11997
11998 \begin_layout Plain Layout
11999 Margin
12000 \end_layout
12001
12002 \end_inset
12003
12004
12005 \begin_inset Flex Code
12006 status collapsed
12007
12008 \begin_layout Plain Layout
12009 Manual
12010 \end_layout
12011
12012 \end_inset
12013
12014 あるいは
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 Dynamic
12020 \end_layout
12021
12022 \end_inset
12023
12024 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12025 \begin_inset Newline newline
12026 \end_inset
12027
12028 たとえば「
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033 MM
12034 \end_layout
12035
12036 \end_inset
12037
12038 」と指定すると、段落を通常フォントの「
12039 \begin_inset Flex Code
12040 status collapsed
12041
12042 \begin_layout Plain Layout
12043 MM
12044 \end_layout
12045
12046 \end_inset
12047
12048 」の幅だけ行頭下げを行います。文字列の前に「
12049 \begin_inset Flex Code
12050 status collapsed
12051
12052 \begin_layout Plain Layout
12053 -
12054 \end_layout
12055
12056 \end_inset
12057
12058 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12059 \end_layout
12060
12061 \begin_layout Description
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 Margin
12067 \end_layout
12068
12069 \end_inset
12070
12071  [
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076
12077 \emph on
12078 Static
12079 \emph default
12080 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12081 \end_layout
12082
12083 \end_inset
12084
12085
12086 \begin_inset Newline newline
12087 \end_inset
12088
12089 このレイアウトの左余白の種類です。
12090 \begin_inset Separator parbreak
12091 \end_inset
12092
12093
12094 \end_layout
12095
12096 \begin_deeper
12097 \begin_layout Description
12098 \begin_inset Flex Code
12099 status collapsed
12100
12101 \begin_layout Plain Layout
12102 Static
12103 \end_layout
12104
12105 \end_inset
12106
12107  は固定余白を示します。
12108 \end_layout
12109
12110 \begin_layout Description
12111 \begin_inset Flex Code
12112 status collapsed
12113
12114 \begin_layout Plain Layout
12115 Manual
12116 \end_layout
12117
12118 \end_inset
12119
12120  は、左余白が
12121 \begin_inset Flex MenuItem
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 編集\SpecialChar menuseparator
12126 段落設定
12127 \end_layout
12128
12129 \end_inset
12130
12131 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12132 \end_layout
12133
12134 \begin_layout Description
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 Dynamic
12140 \end_layout
12141
12142 \end_inset
12143
12144  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12145  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12146 \end_layout
12147
12148 \begin_layout Description
12149 \begin_inset Flex Code
12150 status collapsed
12151
12152 \begin_layout Plain Layout
12153 First_Dynamic
12154 \end_layout
12155
12156 \end_inset
12157
12158  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12159 \end_layout
12160
12161 \begin_layout Description
12162 \begin_inset Flex Code
12163 status collapsed
12164
12165 \begin_layout Plain Layout
12166 Right_Address_Box
12167 \end_layout
12168
12169 \end_inset
12170
12171  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12172 \end_layout
12173
12174 \end_deeper
12175 \begin_layout Description
12176 \begin_inset Flex Code
12177 status collapsed
12178
12179 \begin_layout Plain Layout
12180 NeedProtect
12181 \end_layout
12182
12183 \end_inset
12184
12185  [
12186 \begin_inset Flex Code
12187 status collapsed
12188
12189 \begin_layout Plain Layout
12190
12191 \emph on
12192 0
12193 \end_layout
12194
12195 \end_inset
12196
12197 ,
12198 \begin_inset space \thinspace{}
12199 \end_inset
12200
12201
12202 \begin_inset Flex Code
12203 status collapsed
12204
12205 \begin_layout Plain Layout
12206 1
12207 \end_layout
12208
12209 \end_inset
12210
12211 ] このレイアウト中の脆弱なコマンドが
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216
12217 \backslash
12218 protect
12219 \end_layout
12220
12221 \end_inset
12222
12223 されるべきか否か(註:これはこのコマンド自体が
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228
12229 \backslash
12230 protect
12231 \end_layout
12232
12233 \end_inset
12234
12235 されるべきかでは
12236 \emph on
12237 ありません
12238 \emph default
12239 )。
12240 \end_layout
12241
12242 \begin_layout Description
12243 \begin_inset Flex Code
12244 status collapsed
12245
12246 \begin_layout Plain Layout
12247 Newline
12248 \end_layout
12249
12250 \end_inset
12251
12252  [
12253 \begin_inset Flex Code
12254 status collapsed
12255
12256 \begin_layout Plain Layout
12257 0
12258 \end_layout
12259
12260 \end_inset
12261
12262 ,
12263 \begin_inset space \thinspace{}
12264 \end_inset
12265
12266
12267 \begin_inset Flex Code
12268 status collapsed
12269
12270 \begin_layout Plain Layout
12271
12272 \emph on
12273 1
12274 \end_layout
12275
12276 \end_inset
12277
12278 ] 新規行を\SpecialChar LaTeX
12279 の新規行(
12280 \begin_inset Flex Code
12281 status collapsed
12282
12283 \begin_layout Plain Layout
12284
12285 \backslash
12286
12287 \backslash
12288
12289 \end_layout
12290
12291 \end_inset
12292
12293 )に変換するか否か。\SpecialChar LyX
12294 中で\SpecialChar LaTeX
12295 編集をやりやすくするために、変換は無効にすることができます。
12296 \end_layout
12297
12298 \begin_layout Description
12299 \begin_inset Flex Code
12300 status collapsed
12301
12302 \begin_layout Plain Layout
12303 NextNoIndent
12304 \end_layout
12305
12306 \end_inset
12307
12308  [
12309 \begin_inset Flex Code
12310 status collapsed
12311
12312 \begin_layout Plain Layout
12313
12314 \emph on
12315 0
12316 \end_layout
12317
12318 \end_inset
12319
12320 ,
12321 \begin_inset space \thinspace{}
12322 \end_inset
12323
12324
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 1
12330 \end_layout
12331
12332 \end_inset
12333
12334 ] 真に設定すると、
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 DefaultStyle
12340 \end_layout
12341
12342 \end_inset
12343
12344  (通常
12345 \begin_inset Flex Code
12346 status collapsed
12347
12348 \begin_layout Plain Layout
12349 Standard
12350 \end_layout
12351
12352 \end_inset
12353
12354 )段落が行頭下げになっている場合でも、この型の段落に続くそれらの段落は、字下げされません(逆に言えば,既定でない段落には影響を与えません)。
12355 \end_layout
12356
12357 \begin_layout Description
12358 \begin_inset Flex Code
12359 status collapsed
12360
12361 \begin_layout Plain Layout
12362 ObsoletedBy
12363 \end_layout
12364
12365 \end_inset
12366
12367  [
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 <名称>
12373 \end_layout
12374
12375 \end_inset
12376
12377 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12378 \end_layout
12379
12380 \begin_layout Description
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 ParagraphGroup
12386 \end_layout
12387
12388 \end_inset
12389
12390  [
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 0
12396 \end_layout
12397
12398 \end_inset
12399
12400 ,
12401 \begin_inset space \thinspace{}
12402 \end_inset
12403
12404
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409 1
12410 \end_layout
12411
12412 \end_inset
12413
12414 ] 同じ型の段落が引き続く場合、同じ段落として取り扱うか否かを決定します。これは、そのような連続グループに対して、
12415 \begin_inset Flex Code
12416 status collapsed
12417
12418 \begin_layout Plain Layout
12419 GuiLabel
12420 \end_layout
12421
12422 \end_inset
12423
12424 が一度だけ出力される効果があります。既定では、
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 LaTeXType
12430 \end_layout
12431
12432 \end_inset
12433
12434
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439 Environment
12440 \end_layout
12441
12442 \end_inset
12443
12444 および
12445 \begin_inset Flex Code
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449 Bib_Environment
12450 \end_layout
12451
12452 \end_inset
12453
12454  については有効であり、他の型すべてについて無効になっています。
12455 \end_layout
12456
12457 \begin_layout Description
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 ParbreakIsNewline
12463 \end_layout
12464
12465 \end_inset
12466
12467  [
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472
12473 \emph on
12474 0
12475 \end_layout
12476
12477 \end_inset
12478
12479 ,
12480 \begin_inset space \thinspace{}
12481 \end_inset
12482
12483
12484 \begin_inset Flex Code
12485 status collapsed
12486
12487 \begin_layout Plain Layout
12488 1
12489 \end_layout
12490
12491 \end_inset
12492
12493 ] \SpecialChar LaTeX
12494 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 PassThru 1
12500 \end_layout
12501
12502 \end_inset
12503
12504 と併用すれば、(\SpecialChar TeX
12505 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12506 \end_layout
12507
12508 \begin_layout Description
12509 \begin_inset Flex Code
12510 status collapsed
12511
12512 \begin_layout Plain Layout
12513 ParIndent
12514 \end_layout
12515
12516 \end_inset
12517
12518  [
12519 \begin_inset Flex Code
12520 status collapsed
12521
12522 \begin_layout Plain Layout
12523 文字列=""
12524 \end_layout
12525
12526 \end_inset
12527
12528 ] 段落の最初の行の行頭下げ。レイアウトによっては
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 Parindent
12534 \end_layout
12535
12536 \end_inset
12537
12538 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 NextNoIndent
12544 \end_layout
12545
12546 \end_inset
12547
12548 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12549 \begin_inset Flex Code
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553 Parindent
12554 \end_layout
12555
12556 \end_inset
12557
12558 ではなく、この環境の
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563 Parindent
12564 \end_layout
12565
12566 \end_inset
12567
12568 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12569 \end_layout
12570
12571 \begin_layout Description
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 ParSep
12577 \end_layout
12578
12579 \end_inset
12580
12581  [
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 浮動小数点型=0
12587 \end_layout
12588
12589 \end_inset
12590
12591 ] このレイアウトの2段落間の垂直余白。
12592 \end_layout
12593
12594 \begin_layout Description
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 Parskip
12600 \end_layout
12601
12602 \end_inset
12603
12604  [
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 浮動小数点型=0
12610 \end_layout
12611
12612 \end_inset
12613
12614 ] \SpecialChar LyX
12615 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12616 択した際には、\SpecialChar LaTeX
12617 型「段落」レイアウトの
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 ParIndent
12623 \end_layout
12624
12625 \end_inset
12626
12627 は無視され、すべての段落はこの
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 Parskip
12633 \end_layout
12634
12635 \end_inset
12636
12637 引数分だけ引き離されます。垂直余白は、
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 DefaultHeight
12643 \end_layout
12644
12645 \end_inset
12646
12647 を標準フォントでの1行の高さとすると、
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 Parskipの値
12653 \end_layout
12654
12655 \end_inset
12656
12657
12658 \begin_inset Formula $\times$
12659 \end_inset
12660
12661
12662 \begin_inset Flex Code
12663 status collapsed
12664
12665 \begin_layout Plain Layout
12666 DefaultHeight
12667 \end_layout
12668
12669 \end_inset
12670
12671 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
12672 \end_layout
12673
12674 \begin_layout Description
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 PassThru
12680 \end_layout
12681
12682 \end_inset
12683
12684  [
12685 \emph on
12686
12687 \begin_inset Flex Code
12688 status collapsed
12689
12690 \begin_layout Plain Layout
12691 0
12692 \end_layout
12693
12694 \end_inset
12695
12696
12697 \emph default
12698 ,
12699 \begin_inset space \thinspace{}
12700 \end_inset
12701
12702
12703 \begin_inset Flex Code
12704 status collapsed
12705
12706 \begin_layout Plain Layout
12707 1
12708 \end_layout
12709
12710 \end_inset
12711
12712 ] この段落の内容が、\SpecialChar LaTeX
12713 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
12714 \end_layout
12715
12716 \begin_layout Description
12717 \begin_inset Flex Code
12718 status collapsed
12719
12720 \begin_layout Plain Layout
12721 PassThruChars
12722 \end_layout
12723
12724 \end_inset
12725
12726  [
12727 \begin_inset Flex Code
12728 status collapsed
12729
12730 \begin_layout Plain Layout
12731 文字列
12732 \end_layout
12733
12734 \end_inset
12735
12736 ]
12737 \family typewriter
12738  
12739 \family default
12740 \SpecialChar LaTeX
12741 が要請する特別な翻訳なしで。生の形で出力されるべき、それぞれの文字を定義します。
12742 \end_layout
12743
12744 \begin_layout Description
12745 \begin_inset Flex Code
12746 status collapsed
12747
12748 \begin_layout Plain Layout
12749 Preamble
12750 \end_layout
12751
12752 \end_inset
12753
12754  この様式が使用されたときに、\SpecialChar LaTeX
12755 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
12756 \begin_inset Flex Code
12757 status collapsed
12758
12759 \begin_layout Plain Layout
12760 EndPreamble
12761 \end_layout
12762
12763 \end_inset
12764
12765 」で閉じる必要があります。
12766 \end_layout
12767
12768 \begin_layout Description
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 RefPrefix
12774 \end_layout
12775
12776 \end_inset
12777
12778  [
12779 \begin_inset Flex Code
12780 status collapsed
12781
12782 \begin_layout Plain Layout
12783 文字列
12784 \end_layout
12785
12786 \end_inset
12787
12788 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
12789 \end_layout
12790
12791 \begin_layout Description
12792 \begin_inset Flex Code
12793 status collapsed
12794
12795 \begin_layout Plain Layout
12796 Requires
12797 \end_layout
12798
12799 \end_inset
12800
12801  [
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806 文字列
12807 \end_layout
12808
12809 \end_inset
12810
12811 ] この様式が機能
12812 \begin_inset Flex Code
12813 status collapsed
12814
12815 \begin_layout Plain Layout
12816 文字列
12817 \end_layout
12818
12819 \end_inset
12820
12821 を必要とするかどうか(機能詳細については、第
12822 \begin_inset CommandInset ref
12823 LatexCommand ref
12824 reference "chap:関数一覧"
12825
12826 \end_inset
12827
12828 節参照)。特定のオプションをとるパッケージを要求する場合、
12829 \begin_inset Flex Code
12830 status collapsed
12831
12832 \begin_layout Plain Layout
12833 PackageOptions
12834 \end_layout
12835
12836 \end_inset
12837
12838 を汎用テキストクラスパラメータとして追加して使うことができます(
12839 \begin_inset CommandInset ref
12840 LatexCommand ref
12841 reference "subsec:汎用テキストクラスパラメータ"
12842
12843 \end_inset
12844
12845 を参照)。
12846 \end_layout
12847
12848 \begin_layout Description
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 ResetArgs
12854 \end_layout
12855
12856 \end_inset
12857
12858  [
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863
12864 \emph on
12865 0
12866 \end_layout
12867
12868 \end_inset
12869
12870 ,
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875 1
12876 \end_layout
12877
12878 \end_inset
12879
12880 ] (
12881 \begin_inset Flex Code
12882 status collapsed
12883
12884 \begin_layout Plain Layout
12885 Argument
12886 \end_layout
12887
12888 \end_inset
12889
12890 タグで定義された)この様式の\SpecialChar LaTeX
12891 引数をリセットします。これは、様式を
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 CopyStyle
12897 \end_layout
12898
12899 \end_inset
12900
12901 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
12902 \end_layout
12903
12904 \begin_layout Description
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909 RightDelim
12910 \end_layout
12911
12912 \end_inset
12913
12914  [
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 文字列
12920 \end_layout
12921
12922 \end_inset
12923
12924 ] 様式の内容の最後に置かれる文字列。出力中の改行は
12925 \begin_inset Flex Code
12926 status collapsed
12927
12928 \begin_layout Plain Layout
12929 <br/>
12930 \end_layout
12931
12932 \end_inset
12933
12934 で指示できます。
12935 \end_layout
12936
12937 \begin_layout Description
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942 RightMargin
12943 \end_layout
12944
12945 \end_inset
12946
12947  [
12948 \begin_inset Flex Code
12949 status collapsed
12950
12951 \begin_layout Plain Layout
12952 文字列=""
12953 \end_layout
12954
12955 \end_inset
12956
12957
12958 \begin_inset Flex Code
12959 status collapsed
12960
12961 \begin_layout Plain Layout
12962 LeftMargin
12963 \end_layout
12964
12965 \end_inset
12966
12967 に同様。
12968 \end_layout
12969
12970 \begin_layout Description
12971 \begin_inset Flex Code
12972 status collapsed
12973
12974 \begin_layout Plain Layout
12975 Spacing
12976 \end_layout
12977
12978 \end_inset
12979
12980  [
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985
12986 \emph on
12987 single
12988 \end_layout
12989
12990 \end_inset
12991
12992
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 onehalf
12998 \end_layout
12999
13000 \end_inset
13001
13002
13003 \begin_inset Flex Code
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007 double
13008 \end_layout
13009
13010 \end_inset
13011
13012
13013 \begin_inset Flex Code
13014 status collapsed
13015
13016 \begin_layout Plain Layout
13017 other
13018 \begin_inset space ~
13019 \end_inset
13020
13021 <
13022 \emph on
13023
13024 \emph default
13025 >
13026 \end_layout
13027
13028 \end_inset
13029
13030 ]
13031 \lang english
13032  
13033 \lang japanese
13034 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13035 \begin_inset Flex Code
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039 single
13040 \end_layout
13041
13042 \end_inset
13043
13044
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049 onehalf
13050 \end_layout
13051
13052 \end_inset
13053
13054
13055 \begin_inset Flex Code
13056 status collapsed
13057
13058 \begin_layout Plain Layout
13059 double
13060 \end_layout
13061
13062 \end_inset
13063
13064 は、それぞれ乗数1・1.25・1.667に対応します。引数
13065 \begin_inset Flex Code
13066 status collapsed
13067
13068 \begin_layout Plain Layout
13069 other
13070 \end_layout
13071
13072 \end_inset
13073
13074 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 Spacing
13080 \end_layout
13081
13082 \end_inset
13083
13084 は、\SpecialChar LaTeX
13085 パッケージ
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 setspace
13091 \end_layout
13092
13093 \end_inset
13094
13095 パッケージを使用した、限定的な\SpecialChar LaTeX
13096 コードを生成することを意味することにご注意ください。
13097 \end_layout
13098
13099 \begin_layout Description
13100 \begin_inset Flex Code
13101 status collapsed
13102
13103 \begin_layout Plain Layout
13104 Spellcheck
13105 \end_layout
13106
13107 \end_inset
13108
13109  [
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114 0
13115 \end_layout
13116
13117 \end_inset
13118
13119 ,
13120 \begin_inset space \thinspace{}
13121 \end_inset
13122
13123
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 1
13129 \end_layout
13130
13131 \end_inset
13132
13133 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13134 \end_layout
13135
13136 \begin_layout Description
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 TextFont
13142 \end_layout
13143
13144 \end_inset
13145
13146  本文に使うフォント。
13147 \begin_inset CommandInset ref
13148 LatexCommand ref
13149 reference "subsec:フォント指定"
13150
13151 \end_inset
13152
13153 参照。
13154 \end_layout
13155
13156 \begin_layout Description
13157 \begin_inset Flex Code
13158 status collapsed
13159
13160 \begin_layout Plain Layout
13161 TocLevel
13162 \end_layout
13163
13164 \end_inset
13165
13166  [
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 整数型=3
13172 \end_layout
13173
13174 \end_inset
13175
13176 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13177 \end_layout
13178
13179 \begin_layout Description
13180 \begin_inset Flex Code
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184 ToggleIndent
13185 \end_layout
13186
13187 \end_inset
13188
13189  [
13190 \emph on
13191
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196 default
13197 \end_layout
13198
13199 \end_inset
13200
13201
13202 \emph default
13203
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 always
13209 \end_layout
13210
13211 \end_inset
13212
13213
13214 \begin_inset Flex Code
13215 status collapsed
13216
13217 \begin_layout Plain Layout
13218 never
13219 \end_layout
13220
13221 \end_inset
13222
13223 ] このタグは、この段落の1行目の行頭下げが、段落設定ダイアログで切り替えられるかどうかを決めます。
13224 \begin_inset Flex Code
13225 status collapsed
13226
13227 \begin_layout Plain Layout
13228 default
13229 \end_layout
13230
13231 \end_inset
13232
13233 が指定されると、文書設定が「行頭下げ」段落様式を使用しているときに、行頭下げを変更することができます。
13234 \begin_inset Flex Code
13235 status collapsed
13236
13237 \begin_layout Plain Layout
13238 always
13239 \end_layout
13240
13241 \end_inset
13242
13243 は、文書設定にかかわらず変更することができ、
13244 \begin_inset Flex Code
13245 status collapsed
13246
13247 \begin_layout Plain Layout
13248 never
13249 \end_layout
13250
13251 \end_inset
13252
13253 は、どのような場合でも変更することができません。
13254 \end_layout
13255
13256 \begin_layout Description
13257 \begin_inset Flex Code
13258 status collapsed
13259
13260 \begin_layout Plain Layout
13261 TopSep
13262 \end_layout
13263
13264 \end_inset
13265
13266  [
13267 \begin_inset Flex Code
13268 status collapsed
13269
13270 \begin_layout Plain Layout
13271 浮動小数点型=0
13272 \end_layout
13273
13274 \end_inset
13275
13276 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13277 の最大値がとられます。
13278 \end_layout
13279
13280 \begin_layout Subsection
13281 段落様式の国際化
13282 \begin_inset CommandInset label
13283 LatexCommand label
13284 name "subsec:段落様式の国際化"
13285
13286 \end_inset
13287
13288
13289 \end_layout
13290
13291 \begin_layout Standard
13292 \SpecialChar LyX
13293 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13294 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13295 \lang french
13296 Théorème
13297 \lang japanese
13298  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13299 \end_layout
13300
13301 \begin_layout Standard
13302 もし
13303 \begin_inset Flex MenuItem
13304 status collapsed
13305
13306 \begin_layout Plain Layout
13307 Style
13308 \end_layout
13309
13310 \end_inset
13311
13312 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13313 \begin_inset Flex MenuItem
13314 status collapsed
13315
13316 \begin_layout Plain Layout
13317 LangPreamble
13318 \end_layout
13319
13320 \end_inset
13321
13322
13323 \begin_inset Flex MenuItem
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327 BabelPreamble
13328 \end_layout
13329
13330 \end_inset
13331
13332 を使用することができます。以下の抜粋(
13333 \begin_inset Flex MenuItem
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337 theorems-ams.inc
13338 \end_layout
13339
13340 \end_inset
13341
13342 より)は、これがどう動作するかを示すものです。
13343 \end_layout
13344
13345 \begin_layout LyX-Code
13346 Preamble
13347 \begin_inset Separator parbreak
13348 \end_inset
13349
13350
13351 \end_layout
13352
13353 \begin_deeper
13354 \begin_layout LyX-Code
13355   
13356 \backslash
13357 theoremstyle{remark}
13358 \end_layout
13359
13360 \begin_layout LyX-Code
13361   
13362 \backslash
13363 newtheorem{claim}[thm]{
13364 \backslash
13365 protect
13366 \backslash
13367 claimname}
13368 \end_layout
13369
13370 \begin_layout LyX-Code
13371 EndPreamble
13372 \end_layout
13373
13374 \begin_layout LyX-Code
13375 LangPreamble
13376 \end_layout
13377
13378 \begin_layout LyX-Code
13379   
13380 \backslash
13381 providecommand{
13382 \backslash
13383 claimname}{_(Claim)}
13384 \end_layout
13385
13386 \begin_layout LyX-Code
13387 EndLangPreamble
13388 \end_layout
13389
13390 \begin_layout LyX-Code
13391 BabelPreamble
13392 \end_layout
13393
13394 \begin_layout LyX-Code
13395     
13396 \backslash
13397 addto
13398 \backslash
13399 captions$$lang{
13400 \backslash
13401 renewcommand{
13402 \backslash
13403 claimname}{_(Claim)}}
13404 \end_layout
13405
13406 \begin_layout LyX-Code
13407 EndBabelPreamble
13408 \end_layout
13409
13410 \end_deeper
13411 \begin_layout Standard
13412 原則として、
13413 \begin_inset Flex MenuItem
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 LangPreamble
13418 \end_layout
13419
13420 \end_inset
13421
13422
13423 \begin_inset Flex MenuItem
13424 status collapsed
13425
13426 \begin_layout Plain Layout
13427 BabelPreamble
13428 \end_layout
13429
13430 \end_inset
13431
13432 タグ内には、有効な\SpecialChar LaTeX
13433 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13434 は、\SpecialChar LaTeX
13435 コマンド
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440
13441 \backslash
13442 claimname
13443 \end_layout
13444
13445 \end_inset
13446
13447 とその
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452
13453 \backslash
13454 newtheorem
13455 \end_layout
13456
13457 \end_inset
13458
13459 中での用い方です。
13460 \end_layout
13461
13462 \begin_layout Standard
13463 \begin_inset Flex Code
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467 LangPreamble
13468 \end_layout
13469
13470 \end_inset
13471
13472 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13473 \begin_inset Flex Code
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477 Preamble
13478 \end_layout
13479
13480 \end_inset
13481
13482 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13483 \begin_inset Flex Code
13484 status collapsed
13485
13486 \begin_layout Plain Layout
13487 _()
13488 \end_layout
13489
13490 \end_inset
13491
13492 が使用されていることです。これは、\SpecialChar LyX
13493 が\SpecialChar LaTeX
13494 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13495 \end_layout
13496
13497 \begin_layout Standard
13498 \begin_inset Flex Code
13499 status collapsed
13500
13501 \begin_layout Plain Layout
13502 BabelPreamble
13503 \end_layout
13504
13505 \end_inset
13506
13507 タグは、複数言語文書をサポートし、
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512 babel
13513 \end_layout
13514
13515 \end_inset
13516
13517 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13518 の場合には、
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 _()
13524 \end_layout
13525
13526 \end_inset
13527
13528 の引数は、その当該言語への翻訳で置き換えられ、
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 $$lang
13534 \end_layout
13535
13536 \end_inset
13537
13538 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13539 \end_layout
13540
13541 \begin_layout Standard
13542 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13543 \end_layout
13544
13545 \begin_layout LyX-Code
13546
13547 \backslash
13548 addto
13549 \backslash
13550 captionsfrench{
13551 \backslash
13552 renewcommand{
13553 \backslash
13554 claimname}{Affirmation}}
13555 \begin_inset Newline newline
13556 \end_inset
13557
13558
13559 \backslash
13560 addto
13561 \backslash
13562 captionsngerman{
13563 \backslash
13564 renewcommand{
13565 \backslash
13566 claimname}{Behauptung}}
13567 \begin_inset Newline newline
13568 \end_inset
13569
13570
13571 \backslash
13572 providecommand{
13573 \backslash
13574 claimname}{Behauptung}
13575 \end_layout
13576
13577 \begin_layout Standard
13578 それから、\SpecialChar LaTeX
13579
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 babel
13585 \end_layout
13586
13587 \end_inset
13588
13589 は協力して、出力に正しい文字列を生成します。
13590 \end_layout
13591
13592 \begin_layout Standard
13593 ここで注意しておくべき一つの重要な点は、翻訳は、
13594 \begin_inset Flex Code
13595 status collapsed
13596
13597 \begin_layout Plain Layout
13598 layouttranslations
13599 \end_layout
13600
13601 \end_inset
13602
13603 ファイルを通じて、\SpecialChar LyX
13604 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13605 \begin_inset Flex Code
13606 status collapsed
13607
13608 \begin_layout Plain Layout
13609 layouttranslations
13610 \end_layout
13611
13612 \end_inset
13613
13614 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13615 の国際化ルーチンでは取り扱われないので、
13616 \begin_inset Flex MenuItem
13617 status collapsed
13618
13619 \begin_layout Plain Layout
13620 LangPreamble
13621 \end_layout
13622
13623 \end_inset
13624
13625
13626 \begin_inset Flex MenuItem
13627 status collapsed
13628
13629 \begin_layout Plain Layout
13630 BabelPreamble
13631 \end_layout
13632
13633 \end_inset
13634
13635 は、事実上、\SpecialChar LyX
13636 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
13637 に同梱させようとい
13638 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
13639 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
13640 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
13641 \end_layout
13642
13643 \begin_layout Subsection
13644 フロート
13645 \begin_inset CommandInset label
13646 LatexCommand label
13647 name "subsec:フロート"
13648
13649 \end_inset
13650
13651
13652 \end_layout
13653
13654 \begin_layout Standard
13655 \SpecialChar LyX
13656 第1.3.0版以来、テキストクラス自体の中でフロート(
13657 \begin_inset Flex MenuItem
13658 status collapsed
13659
13660 \begin_layout Plain Layout
13661 figure
13662 \end_layout
13663
13664 \end_inset
13665
13666
13667 \begin_inset Flex MenuItem
13668 status collapsed
13669
13670 \begin_layout Plain Layout
13671 table
13672 \end_layout
13673
13674 \end_inset
13675
13676 ・\SpecialChar ldots
13677 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
13678 \begin_inset Flex Code
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682 stdfloats.inc
13683 \end_layout
13684
13685 \end_inset
13686
13687 ファイルに含まれているので、作業中のレイアウトファイルに
13688 \end_layout
13689
13690 \begin_layout LyX-Code
13691 Input stdfloats.inc
13692 \end_layout
13693
13694 \begin_layout Standard
13695 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
13696 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
13697 ましょう。
13698 \end_layout
13699
13700 \begin_layout Description
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 AllowedPlacement
13706 \end_layout
13707
13708 \end_inset
13709
13710  [
13711 \begin_inset Flex Code
13712 status collapsed
13713
13714 \begin_layout Plain Layout
13715 文字列
13716 \end_layout
13717
13718 \end_inset
13719
13720 =!htbpH] このフロート型に許可された配置用の選択肢。値は、配置文字からなる文字列です。使用できる文字には、
13721 \emph on
13722 h
13723 \emph default
13724  (
13725 \begin_inset Quotes eld
13726 \end_inset
13727
13728 here if possible:可能ならば現在位置に
13729 \begin_inset Quotes erd
13730 \end_inset
13731
13732 ), 
13733 \emph on
13734 t
13735 \emph default
13736  (
13737 \begin_inset Quotes eld
13738 \end_inset
13739
13740 top of page:ページ上部
13741 \begin_inset Quotes erd
13742 \end_inset
13743
13744 )・
13745 \emph on
13746 b
13747 \emph default
13748  (
13749 \begin_inset Quotes eld
13750 \end_inset
13751
13752 bottom of page:ページ下部
13753 \begin_inset Quotes erd
13754 \end_inset
13755
13756 )・
13757 \emph on
13758 p
13759 \emph default
13760  (
13761 \begin_inset Quotes eld
13762 \end_inset
13763
13764 page of floats:フロートを独立したページに
13765 \begin_inset Quotes erd
13766 \end_inset
13767
13768 )・
13769 \emph on
13770 H
13771 \emph default
13772  (
13773 \begin_inset Quotes eld
13774 \end_inset
13775
13776 here definitely:何としても現在位置に置く
13777 \begin_inset Quotes erd
13778 \end_inset
13779
13780 )・
13781 \emph on
13782 !
13783 \emph default
13784  (
13785 \begin_inset Quotes eld
13786 \end_inset
13787
13788 ignore LaTeX rules:LaTeXの規則を無視する
13789 \begin_inset Quotes erd
13790 \end_inset
13791
13792 )があります。文字列中の文字の順序は関係ありません。配置の選択肢を与えない場合には、文字列として
13793 \emph on
13794 none
13795 \emph default
13796 を与えてください。
13797 \end_layout
13798
13799 \begin_layout Description
13800 \begin_inset Flex Code
13801 status collapsed
13802
13803 \begin_layout Plain Layout
13804 AllowsSideways
13805 \end_layout
13806
13807 \end_inset
13808
13809  [
13810 \begin_inset Flex Code
13811 status collapsed
13812
13813 \begin_layout Plain Layout
13814 0
13815 \end_layout
13816
13817 \end_inset
13818
13819 ,
13820 \begin_inset space \thinspace{}
13821 \end_inset
13822
13823
13824 \emph on
13825
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 1
13831 \end_layout
13832
13833 \end_inset
13834
13835
13836 \emph default
13837 ] フロートを、\SpecialChar LaTeX
13838 パッケージの
13839 \family typewriter
13840 rotfloat
13841 \family default
13842  (横向きフロート)を使って回転させることを許可するか否かを指定。フロートにこの機能をサポートさせないときには、
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 0
13848 \end_layout
13849
13850 \end_inset
13851
13852 を指定してください。
13853 \end_layout
13854
13855 \begin_layout Description
13856 \begin_inset Flex Code
13857 status collapsed
13858
13859 \begin_layout Plain Layout
13860 AllowsWide
13861 \end_layout
13862
13863 \end_inset
13864
13865  [
13866 \begin_inset Flex Code
13867 status collapsed
13868
13869 \begin_layout Plain Layout
13870 0
13871 \end_layout
13872
13873 \end_inset
13874
13875 ,
13876 \begin_inset space \thinspace{}
13877 \end_inset
13878
13879
13880 \emph on
13881
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 1
13887 \end_layout
13888
13889 \end_inset
13890
13891
13892 \emph default
13893 ] このフロートに、二段組段落において段落をまたぐ、星付き版があるか否かを定義。フロートにこの機能をサポートさせないときには、
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 0
13899 \end_layout
13900
13901 \end_inset
13902
13903 を指定してください。
13904 \end_layout
13905
13906 \begin_layout Description
13907 \begin_inset Flex Code
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911 Extension
13912 \end_layout
13913
13914 \end_inset
13915
13916  [
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 文字列
13922 \end_layout
13923
13924 \end_inset
13925
13926 =
13927 \begin_inset Quotes erd
13928 \end_inset
13929
13930
13931 \begin_inset Quotes erd
13932 \end_inset
13933
13934 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
13935 がキャプションを書き込むファイルです。
13936 \end_layout
13937
13938 \begin_layout Description
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943 GuiName
13944 \end_layout
13945
13946 \end_inset
13947
13948  [
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 文字列
13954 \end_layout
13955
13956 \end_inset
13957
13958 =
13959 \begin_inset Quotes erd
13960 \end_inset
13961
13962
13963 \begin_inset Quotes erd
13964 \end_inset
13965
13966 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
13967 \end_layout
13968
13969 \begin_layout Description
13970 \begin_inset Flex Code
13971 status collapsed
13972
13973 \begin_layout Plain Layout
13974 HTML*
13975 \end_layout
13976
13977 \end_inset
13978
13979  これらは、XHTML出力で使用されます。
13980 \begin_inset CommandInset ref
13981 LatexCommand ref
13982 reference "sec:XHTML出力のタグ"
13983
13984 \end_inset
13985
13986 をご覧ください。
13987 \end_layout
13988
13989 \begin_layout Description
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 IsPredefined
13995 \end_layout
13996
13997 \end_inset
13998
13999  [
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004
14005 \emph on
14006 0
14007 \end_layout
14008
14009 \end_inset
14010
14011 ,
14012 \begin_inset space \thinspace{}
14013 \end_inset
14014
14015
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020 1
14021 \end_layout
14022
14023 \end_inset
14024
14025 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14026 パッケージ
14027 \begin_inset Flex Code
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 float
14032 \end_layout
14033
14034 \end_inset
14035
14036 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14037 \begin_inset Flex Code
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041 0
14042 \end_layout
14043
14044 \end_inset
14045
14046 で、この場合
14047 \begin_inset Flex Code
14048 status collapsed
14049
14050 \begin_layout Plain Layout
14051 float
14052 \end_layout
14053
14054 \end_inset
14055
14056 を使用します。\SpecialChar LaTeX
14057 ドキュメントクラス中に既に定義されているときには、
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 0
14063 \end_layout
14064
14065 \end_inset
14066
14067 に設定しなくてはなりません。
14068 \end_layout
14069
14070 \begin_layout Description
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075 ListCommand
14076 \end_layout
14077
14078 \end_inset
14079
14080  [
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 文字列
14086 \end_layout
14087
14088 \end_inset
14089
14090 =
14091 \begin_inset Quotes erd
14092 \end_inset
14093
14094
14095 \begin_inset Quotes erd
14096 \end_inset
14097
14098 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14099 \backslash
14100 」は書きません。
14101 \begin_inset Flex Code
14102 status collapsed
14103
14104 \begin_layout Plain Layout
14105 NeedsFloatPkg
14106 \end_layout
14107
14108 \end_inset
14109
14110 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14111 \emph on
14112 必ず
14113 \emph default
14114 指定しなくてはなりません。
14115 \begin_inset Flex Code
14116 status collapsed
14117
14118 \begin_layout Plain Layout
14119 NeedsFloatPkg
14120 \end_layout
14121
14122 \end_inset
14123
14124 が真の時は、標準的な方法が存在するので、これは無視されます。
14125 \end_layout
14126
14127 \begin_layout Description
14128 \begin_inset Flex Code
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 ListName
14133 \end_layout
14134
14135 \end_inset
14136
14137  [
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 文字列
14143 \end_layout
14144
14145 \end_inset
14146
14147 =
14148 \begin_inset Quotes erd
14149 \end_inset
14150
14151
14152 \begin_inset Quotes erd
14153 \end_inset
14154
14155 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14156 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14157 に渡さ
14158 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14159 \end_layout
14160
14161 \begin_layout Description
14162 \begin_inset Flex Code
14163 status collapsed
14164
14165 \begin_layout Plain Layout
14166 NumberWithin
14167 \end_layout
14168
14169 \end_inset
14170
14171  [
14172 \begin_inset Flex Code
14173 status collapsed
14174
14175 \begin_layout Plain Layout
14176 文字列
14177 \end_layout
14178
14179 \end_inset
14180
14181 =
14182 \begin_inset Quotes erd
14183 \end_inset
14184
14185
14186 \begin_inset Quotes erd
14187 \end_inset
14188
14189 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 NumberWithin
14195 \end_layout
14196
14197 \end_inset
14198
14199 が「
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 chapter
14205 \end_layout
14206
14207 \end_inset
14208
14209 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14210 \end_layout
14211
14212 \begin_layout Description
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 Placement
14218 \end_layout
14219
14220 \end_inset
14221
14222  [
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 文字列
14228 \end_layout
14229
14230 \end_inset
14231
14232 =
14233 \begin_inset Quotes erd
14234 \end_inset
14235
14236
14237 \begin_inset Quotes erd
14238 \end_inset
14239
14240 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14241 表記に従い、
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 t
14247 \end_layout
14248
14249 \end_inset
14250
14251 ならば上部(top)、
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 b
14257 \end_layout
14258
14259 \end_inset
14260
14261 ならば下部(bottom)、
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 p
14267 \end_layout
14268
14269 \end_inset
14270
14271 ならばページ(page)、
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276 h
14277 \end_layout
14278
14279 \end_inset
14280
14281 ならばここ(here)を表します
14282 \begin_inset Foot
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 \SpecialChar LaTeX
14287 同様、文字列中でのこれらの文字の順序は関係ありません。
14288 \end_layout
14289
14290 \end_inset
14291
14292 。これらの他に新しい型
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 H
14298 \end_layout
14299
14300 \end_inset
14301
14302 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 H
14308 \end_layout
14309
14310 \end_inset
14311
14312 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14313 に「
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 tbp
14319 \end_layout
14320
14321 \end_inset
14322
14323 」を指定してください。
14324 \end_layout
14325
14326 \begin_layout Description
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 RefPrefix
14332 \end_layout
14333
14334 \end_inset
14335
14336  [
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 文字列
14342 \end_layout
14343
14344 \end_inset
14345
14346 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14347 \begin_inset Flex Code
14348 status collapsed
14349
14350 \begin_layout Plain Layout
14351 RefPrefix
14352 \end_layout
14353
14354 \end_inset
14355
14356 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14357 \end_layout
14358
14359 \begin_layout Description
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 Style
14365 \end_layout
14366
14367 \end_inset
14368
14369  [
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 文字列
14375 \end_layout
14376
14377 \end_inset
14378
14379 =
14380 \begin_inset Quotes erd
14381 \end_inset
14382
14383
14384 \begin_inset Quotes erd
14385 \end_inset
14386
14387
14388 \begin_inset Flex Code
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392
14393 \backslash
14394 newfloat
14395 \end_layout
14396
14397 \end_inset
14398
14399 を使用してフロートを定義する際に使用される様式。
14400 \end_layout
14401
14402 \begin_layout Description
14403 \begin_inset Flex Code
14404 status collapsed
14405
14406 \begin_layout Plain Layout
14407 Type
14408 \end_layout
14409
14410 \end_inset
14411
14412  [
14413 \begin_inset Flex Code
14414 status collapsed
14415
14416 \begin_layout Plain Layout
14417 文字列
14418 \end_layout
14419
14420 \end_inset
14421
14422 =
14423 \begin_inset Quotes erd
14424 \end_inset
14425
14426
14427 \begin_inset Quotes erd
14428 \end_inset
14429
14430 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435
14436 \backslash
14437 newfloat
14438 \end_layout
14439
14440 \end_inset
14441
14442 の後で、
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447
14448 \backslash
14449 begin{program}
14450 \end_layout
14451
14452 \end_inset
14453
14454
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459
14460 \backslash
14461 end{algorithm*}
14462 \end_layout
14463
14464 \end_inset
14465
14466 といったコマンドが利用できます。
14467 \end_layout
14468
14469 \begin_layout Description
14470 \begin_inset Flex Code
14471 status collapsed
14472
14473 \begin_layout Plain Layout
14474 UsesFloatPkg
14475 \end_layout
14476
14477 \end_inset
14478
14479  [
14480 \begin_inset Flex Code
14481 status collapsed
14482
14483 \begin_layout Plain Layout
14484 0
14485 \end_layout
14486
14487 \end_inset
14488
14489 ,
14490 \begin_inset space \thinspace{}
14491 \end_inset
14492
14493
14494 \begin_inset Flex Code
14495 status collapsed
14496
14497 \begin_layout Plain Layout
14498
14499 \emph on
14500 1
14501 \end_layout
14502
14503 \end_inset
14504
14505 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14506 パッケージ
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511 float
14512 \end_layout
14513
14514 \end_inset
14515
14516 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14517 自身がオン・ザ・フライで定義しているのかを示します。
14518 \end_layout
14519
14520 \begin_layout Standard
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525
14526 \emph on
14527 type
14528 \end_layout
14529
14530 \end_inset
14531
14532 型のフロートを定義すると、自動的に
14533 \emph on
14534 対応する
14535 \emph default
14536
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541
14542 \emph on
14543 type
14544 \end_layout
14545
14546 \end_inset
14547
14548 名カウンタが定義されます。
14549 \end_layout
14550
14551 \begin_layout Subsection
14552 自由差込枠と差込枠レイアウト
14553 \begin_inset CommandInset label
14554 LatexCommand label
14555 name "subsec:任意設定差込枠"
14556
14557 \end_inset
14558
14559
14560 \end_layout
14561
14562 \begin_layout Standard
14563 自由差込枠には次の3種類があります。
14564 \end_layout
14565
14566 \begin_layout Itemize
14567 文字様式(
14568 \begin_inset Flex Code
14569 status collapsed
14570
14571 \begin_layout Plain Layout
14572 CharStyle
14573 \end_layout
14574
14575 \end_inset
14576
14577 )。これは、
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582
14583 \backslash
14584 noun
14585 \end_layout
14586
14587 \end_inset
14588
14589
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594
14595 \backslash
14596 code
14597 \end_layout
14598
14599 \end_inset
14600
14601 などの\SpecialChar LaTeX
14602 コマンドに対応した意味論的マークアップを定義するものです。
14603 \end_layout
14604
14605 \begin_layout Itemize
14606 ユーザ設定(
14607 \begin_inset Flex Code
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611 Custom
14612 \end_layout
14613
14614 \end_inset
14615
14616 )。これは、\SpecialChar TeX
14617 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14618 \begin_inset Flex Code
14619 status collapsed
14620
14621 \begin_layout Plain Layout
14622 endnote
14623 \end_layout
14624
14625 \end_inset
14626
14627 モジュール中で定義されています。
14628 \end_layout
14629
14630 \begin_layout Itemize
14631 XML要素(
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 Element
14637 \end_layout
14638
14639 \end_inset
14640
14641 )。DocBookクラスで使用するものです。
14642 \end_layout
14643
14644 \begin_layout Standard
14645 自由差込枠は、以下で説明する
14646 \begin_inset Flex Code
14647 status collapsed
14648
14649 \begin_layout Plain Layout
14650 InsetLayout
14651 \end_layout
14652
14653 \end_inset
14654
14655 タグを使用して定義されます。
14656 \end_layout
14657
14658 \begin_layout Standard
14659 \begin_inset Flex Code
14660 status collapsed
14661
14662 \begin_layout Plain Layout
14663 InsetLayout
14664 \end_layout
14665
14666 \end_inset
14667
14668 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 InsetLayout
14674 \end_layout
14675
14676 \end_inset
14677
14678 は自由差込枠を定義することの他に、脚註・傍註・註釈差込枠・\SpecialChar TeX
14679 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14680 ー定義するのに使用されます。
14681 \end_layout
14682
14683 \begin_layout Standard
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 InsetLayout
14689 \end_layout
14690
14691 \end_inset
14692
14693 定義は以下の形の行では始まらなくてはなりません。
14694 \end_layout
14695
14696 \begin_layout LyX-Code
14697 InsetLayout <型>
14698 \end_layout
14699
14700 \begin_layout Standard
14701 ここで
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706 <型>
14707 \end_layout
14708
14709 \end_inset
14710
14711 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
14712 \end_layout
14713
14714 \begin_layout Enumerate
14715 既存の差込枠のレイアウトを変更する場合。この場合、
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 <型>
14721 \end_layout
14722
14723 \end_inset
14724
14725 は以下のいずれかになります:
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 Algorithm
14731 \end_layout
14732
14733 \end_inset
14734
14735
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740 Branch
14741 \end_layout
14742
14743 \end_inset
14744
14745
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 Box
14751 \end_layout
14752
14753 \end_inset
14754
14755
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Box:shaded
14761 \end_layout
14762
14763 \end_inset
14764
14765
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 Caption:Standard
14771 \end_layout
14772
14773 \end_inset
14774
14775
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 ERT
14781 \end_layout
14782
14783 \end_inset
14784
14785
14786 \begin_inset Flex Code
14787 status collapsed
14788
14789 \begin_layout Plain Layout
14790 Figure
14791 \end_layout
14792
14793 \end_inset
14794
14795
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 Foot
14801 \end_layout
14802
14803 \end_inset
14804
14805
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810 Index
14811 \end_layout
14812
14813 \end_inset
14814
14815
14816 \begin_inset Flex Code
14817 status collapsed
14818
14819 \begin_layout Plain Layout
14820 Info
14821 \end_layout
14822
14823 \end_inset
14824
14825
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 Info:menu
14831 \end_layout
14832
14833 \end_inset
14834
14835
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Info:shortcut
14841 \end_layout
14842
14843 \end_inset
14844
14845
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 Info:shortcuts
14851 \end_layout
14852
14853 \end_inset
14854
14855
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 Listings
14861 \end_layout
14862
14863 \end_inset
14864
14865
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 Marginal
14871 \end_layout
14872
14873 \end_inset
14874
14875
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 Note:Comment
14881 \end_layout
14882
14883 \end_inset
14884
14885
14886 \begin_inset Flex Code
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890 Note:Note
14891 \end_layout
14892
14893 \end_inset
14894
14895
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 Note:GreyedOut
14901 \end_layout
14902
14903 \end_inset
14904
14905
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 Table
14911 \end_layout
14912
14913 \end_inset
14914
14915
14916 \begin_inset Flex Code
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920 URL
14921 \end_layout
14922
14923 \end_inset
14924
14925
14926 \end_layout
14927
14928 \begin_layout Enumerate
14929 自由差込枠のレイアウトを定義する場合。この場合、
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 <型>
14935 \end_layout
14936
14937 \end_inset
14938
14939
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 Flex:<名称>
14945 \end_layout
14946
14947 \end_inset
14948
14949 の形でなくてはなりません。ここで、
14950 \begin_inset Flex Code
14951 status collapsed
14952
14953 \begin_layout Plain Layout
14954 名称
14955 \end_layout
14956
14957 \end_inset
14958
14959 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
14960 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 LyXType
14966 \end_layout
14967
14968 \end_inset
14969
14970 項目が含まれていなくてはならないことに注意してください。
14971 \end_layout
14972
14973 \begin_layout Enumerate
14974 ユーザー定義派生枝を定義する場合。この場合、
14975 \begin_inset Flex Code
14976 status collapsed
14977
14978 \begin_layout Plain Layout
14979 <型>
14980 \end_layout
14981
14982 \end_inset
14983
14984 は「
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989 Branch:<名称>
14990 \end_layout
14991
14992 \end_inset
14993
14994 」の形でなくてはなりません。ここで、
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 名称
15000 \end_layout
15001
15002 \end_inset
15003
15004 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15005 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15006 がくるむことができるようにすることです。
15007 \end_layout
15008
15009 \begin_layout Enumerate
15010 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 <型>
15016 \end_layout
15017
15018 \end_inset
15019
15020 は「
15021 \begin_inset Flex Code
15022 status collapsed
15023
15024 \begin_layout Plain Layout
15025 Caption:<名称>
15026 \end_layout
15027
15028 \end_inset
15029
15030 」の形でなくてはなりません。ここで、
15031 \begin_inset Flex Code
15032 status collapsed
15033
15034 \begin_layout Plain Layout
15035 名称
15036 \end_layout
15037
15038 \end_inset
15039
15040 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 Caption:Standard
15046 \end_layout
15047
15048 \end_inset
15049
15050 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 Caption:Above
15056 \end_layout
15057
15058 \end_inset
15059
15060
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 Caption:Below
15066 \end_layout
15067
15068 \end_inset
15069
15070 )、
15071 \family sans
15072 多言語キャプション
15073 \family default
15074 モジュール(
15075 \begin_inset Flex Code
15076 status collapsed
15077
15078 \begin_layout Plain Layout
15079 Caption:Bicaption
15080 \end_layout
15081
15082 \end_inset
15083
15084 )をご覧ください。
15085 \end_layout
15086
15087 \begin_layout Standard
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 InsetLayout
15093 \end_layout
15094
15095 \end_inset
15096
15097 定義には以下の項目を入れることができます。
15098 \end_layout
15099
15100 \begin_layout Description
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 Argument
15106 \end_layout
15107
15108 \end_inset
15109
15110  [
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 整数
15116 \end_layout
15117
15118 \end_inset
15119
15120 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15121 \begin_inset Flex Code
15122 status collapsed
15123
15124 \begin_layout Plain Layout
15125 EndArgument
15126 \end_layout
15127
15128 \end_inset
15129
15130 で閉じなくてはなりません。詳細は
15131 \begin_inset CommandInset ref
15132 LatexCommand ref
15133 reference "subsec:段落様式"
15134
15135 \end_inset
15136
15137 参照。
15138 \end_layout
15139
15140 \begin_layout Description
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 BabelPreamble
15146 \end_layout
15147
15148 \end_inset
15149
15150  言語コマンドを変更するプリアンブル。
15151 \begin_inset CommandInset ref
15152 LatexCommand ref
15153 reference "subsec:段落様式の国際化"
15154
15155 \end_inset
15156
15157 参照。
15158 \end_layout
15159
15160 \begin_layout Description
15161 \begin_inset Flex Code
15162 status collapsed
15163
15164 \begin_layout Plain Layout
15165 BgColor
15166 \end_layout
15167
15168 \end_inset
15169
15170  [
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 <名称>
15176 \end_layout
15177
15178 \end_inset
15179
15180 ] 差込枠の背景色。使用できる色名一覧は
15181 \begin_inset CommandInset ref
15182 LatexCommand ref
15183 reference "chap:色名"
15184
15185 \end_inset
15186
15187 参照。
15188 \end_layout
15189
15190 \begin_layout Description
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 ContentAsLabel
15196 \end_layout
15197
15198 \end_inset
15199
15200  [
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205
15206 \emph on
15207 0
15208 \end_layout
15209
15210 \end_inset
15211
15212 ,
15213 \begin_inset space \thinspace{}
15214 \end_inset
15215
15216
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 1
15222 \end_layout
15223
15224 \end_inset
15225
15226 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15227 \end_layout
15228
15229 \begin_layout Description
15230 \begin_inset Flex Code
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234 CopyStyle
15235 \end_layout
15236
15237 \end_inset
15238
15239  [<型>] 段落様式と同様です。
15240 \begin_inset CommandInset ref
15241 LatexCommand ref
15242 reference "subsec:段落様式"
15243
15244 \end_inset
15245
15246 参照のこと。完全な型を指定する必要があることに注意してください。例:
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 CopyStyle Flex:<名称>
15252 \end_layout
15253
15254 \end_inset
15255
15256
15257 \end_layout
15258
15259 \begin_layout Description
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 CustomPars
15265 \end_layout
15266
15267 \end_inset
15268
15269  [
15270 \begin_inset Flex Code
15271 status collapsed
15272
15273 \begin_layout Plain Layout
15274
15275 \emph on
15276 0
15277 \end_layout
15278
15279 \end_inset
15280
15281 ,
15282 \begin_inset space \thinspace{}
15283 \end_inset
15284
15285
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 1
15291 \end_layout
15292
15293 \end_inset
15294
15295 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15296 \end_layout
15297
15298 \begin_layout Description
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 Decoration
15304 \end_layout
15305
15306 \end_inset
15307
15308  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 Classic
15314 \end_layout
15315
15316 \end_inset
15317
15318
15319 \begin_inset Flex Code
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323 Minimalistic
15324 \end_layout
15325
15326 \end_inset
15327
15328
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 Conglomerate
15334 \end_layout
15335
15336 \end_inset
15337
15338 のいずれかを指定することができます。脚註は通常
15339 \begin_inset Flex Code
15340 status collapsed
15341
15342 \begin_layout Plain Layout
15343 Classic
15344 \end_layout
15345
15346 \end_inset
15347
15348 を使用し、\SpecialChar TeX
15349 コード差込枠は通常
15350 \begin_inset Flex Code
15351 status collapsed
15352
15353 \begin_layout Plain Layout
15354 Minimalistic
15355 \end_layout
15356
15357 \end_inset
15358
15359 、文字様式は
15360 \begin_inset Flex Code
15361 status collapsed
15362
15363 \begin_layout Plain Layout
15364 Conglomerate
15365 \end_layout
15366
15367 \end_inset
15368
15369 を使用します。
15370 \end_layout
15371
15372 \begin_layout Description
15373 \begin_inset Flex Code
15374 status collapsed
15375
15376 \begin_layout Plain Layout
15377 Display
15378 \end_layout
15379
15380 \end_inset
15381
15382  [
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 0
15388 \end_layout
15389
15390 \end_inset
15391
15392 ,
15393 \begin_inset space \thinspace{}
15394 \end_inset
15395
15396
15397 \begin_inset Flex Code
15398 status collapsed
15399
15400 \begin_layout Plain Layout
15401
15402 \emph on
15403 1
15404 \end_layout
15405
15406 \end_inset
15407
15408
15409 \begin_inset Flex Code
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413 LatexType
15414 \end_layout
15415
15416 \end_inset
15417
15418
15419 \begin_inset Flex Code
15420 status collapsed
15421
15422 \begin_layout Plain Layout
15423 Environment
15424 \end_layout
15425
15426 \end_inset
15427
15428 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15429 環境は、
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434
15435 \backslash
15436 begin{LatexName}
15437 \end_layout
15438
15439 \end_inset
15440
15441 タグと
15442 \begin_inset Flex Code
15443 status collapsed
15444
15445 \begin_layout Plain Layout
15446
15447 \backslash
15448 end{LatexName}
15449 \end_layout
15450
15451 \end_inset
15452
15453 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15454 \end_layout
15455
15456 \begin_layout Description
15457 \begin_inset Flex Code
15458 status collapsed
15459
15460 \begin_layout Plain Layout
15461 End
15462 \end_layout
15463
15464 \end_inset
15465
15466  
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471 InsetLayout
15472 \end_layout
15473
15474 \end_inset
15475
15476 宣言を閉じるのに必要です。
15477 \end_layout
15478
15479 \begin_layout Description
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 Font
15485 \end_layout
15486
15487 \end_inset
15488
15489  本文本体とラベル
15490 \emph on
15491 両方に
15492 \emph default
15493 使用されるフォントです。
15494 \begin_inset CommandInset ref
15495 LatexCommand ref
15496 reference "subsec:フォント指定"
15497
15498 \end_inset
15499
15500 を参照。このフォントを定義すると自動的に
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 LabelFont
15506 \end_layout
15507
15508 \end_inset
15509
15510 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515 LabelFont
15516 \end_layout
15517
15518 \end_inset
15519
15520 を定義しなくてはならないことに注意してください。
15521 \end_layout
15522
15523 \begin_layout Description
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 FixedWidthPreambleEncoding
15529 \end_layout
15530
15531 \end_inset
15532
15533  [
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538
15539 \emph on
15540 0
15541 \end_layout
15542
15543 \end_inset
15544
15545 ,
15546 \begin_inset space \thinspace{}
15547 \end_inset
15548
15549
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 1
15555 \end_layout
15556
15557 \end_inset
15558
15559 ] このレイアウトによって生成される
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 BabelPreamble
15565 \end_layout
15566
15567 \end_inset
15568
15569 および
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 LangPreamble
15575 \end_layout
15576
15577 \end_inset
15578
15579 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か。これは、
15580 \family typewriter
15581 listings
15582 \family default
15583 のように、
15584 \family sans
15585 utf8
15586 \family default
15587 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15588 パッケージのために必要です。この設定は、Xe\SpecialChar TeX
15589 やLua\SpecialChar TeX
15590 のようなUnicodeを完全に解する\SpecialChar LaTeX
15591 バックエンドを使用してい
15592 る場合には、無視されます。
15593 \end_layout
15594
15595 \begin_layout Description
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 ForceLocalFontSwitch
15601 \end_layout
15602
15603 \end_inset
15604
15605  [
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610
15611 \emph on
15612 0
15613 \end_layout
15614
15615 \end_inset
15616
15617 ,
15618 \begin_inset space \thinspace{}
15619 \end_inset
15620
15621
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 1
15627 \end_layout
15628
15629 \end_inset
15630
15631 ] babel使用時に、常にローカルフォント切替(
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636
15637 \backslash
15638 foreignlanguage
15639 \end_layout
15640
15641 \end_inset
15642
15643 )を使い、グローバル切替(
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648
15649 \backslash
15650 selectlanguage
15651 \end_layout
15652
15653 \end_inset
15654
15655 など)は使わない。
15656 \end_layout
15657
15658 \begin_layout Description
15659 \begin_inset Flex Code
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 ForceLTR
15664 \end_layout
15665
15666 \end_inset
15667
15668  [
15669 \begin_inset Flex Code
15670 status collapsed
15671
15672 \begin_layout Plain Layout
15673
15674 \emph on
15675 0
15676 \end_layout
15677
15678 \end_inset
15679
15680 ,
15681 \begin_inset space \thinspace{}
15682 \end_inset
15683
15684
15685 \begin_inset Flex Code
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689 1
15690 \end_layout
15691
15692 \end_inset
15693
15694 ] たとえば\SpecialChar TeX
15695 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
15696 \end_layout
15697
15698 \begin_layout Description
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703 ForceOwnlines
15704 \end_layout
15705
15706 \end_inset
15707
15708  [
15709 \begin_inset Flex Code
15710 status collapsed
15711
15712 \begin_layout Plain Layout
15713
15714 \emph on
15715 0
15716 \end_layout
15717
15718 \end_inset
15719
15720 ,
15721 \begin_inset space \thinspace{}
15722 \end_inset
15723
15724
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 1
15730 \end_layout
15731
15732 \end_inset
15733
15734 ] \SpecialChar LaTeX
15735 出力において、この差込枠が開始する前と終了する後に、改行を強制します。これは、解析上の目的のために、差込枠が単独行に出力されるように保証します。
15736 \end_layout
15737
15738 \begin_layout Description
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 ForcePlain
15744 \end_layout
15745
15746 \end_inset
15747
15748  [
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753
15754 \emph on
15755 0
15756 \end_layout
15757
15758 \end_inset
15759
15760 ,
15761 \begin_inset space \thinspace{}
15762 \end_inset
15763
15764
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 1
15770 \end_layout
15771
15772 \end_inset
15773
15774 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
15775 \end_layout
15776
15777 \begin_layout Description
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 FreeSpacing
15783 \end_layout
15784
15785 \end_inset
15786
15787  [
15788 \emph on
15789
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 0
15795 \end_layout
15796
15797 \end_inset
15798
15799
15800 \emph default
15801 ,
15802 \begin_inset space \thinspace{}
15803 \end_inset
15804
15805
15806 \begin_inset Flex Code
15807 status collapsed
15808
15809 \begin_layout Plain Layout
15810 1
15811 \end_layout
15812
15813 \end_inset
15814
15815 ] 段落様式と同様。
15816 \begin_inset CommandInset ref
15817 LatexCommand ref
15818 reference "subsec:段落様式"
15819
15820 \end_inset
15821
15822 参照。
15823 \end_layout
15824
15825 \begin_layout Description
15826 \begin_inset Flex Code
15827 status collapsed
15828
15829 \begin_layout Plain Layout
15830 HTML*
15831 \end_layout
15832
15833 \end_inset
15834
15835  これらは、XHTML出力で使用されます。
15836 \begin_inset CommandInset ref
15837 LatexCommand ref
15838 reference "sec:XHTML出力のタグ"
15839
15840 \end_inset
15841
15842 をご覧ください。
15843 \end_layout
15844
15845 \begin_layout Description
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 InToc
15851 \end_layout
15852
15853 \end_inset
15854
15855  [
15856 \begin_inset Flex Code
15857 status collapsed
15858
15859 \begin_layout Plain Layout
15860
15861 \emph on
15862 0
15863 \end_layout
15864
15865 \end_inset
15866
15867 ,
15868 \begin_inset space \thinspace{}
15869 \end_inset
15870
15871
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 1
15877 \end_layout
15878
15879 \end_inset
15880
15881 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚註の内容が、文書構造の目次に表示されることは望まないでしょ
15882 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
15883 \end_layout
15884
15885 \begin_layout Description
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 KeepEmpty
15891 \end_layout
15892
15893 \end_inset
15894
15895  [
15896 \emph on
15897
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 0
15903 \end_layout
15904
15905 \end_inset
15906
15907
15908 \emph default
15909 ,
15910 \begin_inset space \thinspace{}
15911 \end_inset
15912
15913
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918 1
15919 \end_layout
15920
15921 \end_inset
15922
15923 ] 段落様式と同様。
15924 \begin_inset CommandInset ref
15925 LatexCommand ref
15926 reference "subsec:段落様式"
15927
15928 \end_inset
15929
15930 参照。
15931 \end_layout
15932
15933 \begin_layout Description
15934 \begin_inset Flex Code
15935 status collapsed
15936
15937 \begin_layout Plain Layout
15938 LabelFont
15939 \end_layout
15940
15941 \end_inset
15942
15943  ラベルに使用されるフォント。第
15944 \begin_inset CommandInset ref
15945 LatexCommand ref
15946 reference "subsec:フォント指定"
15947
15948 \end_inset
15949
15950 節を参照。非効率を回避するため、この定義は
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 Font
15956 \end_layout
15957
15958 \end_inset
15959
15960 の前には決して現れてはなりません。
15961 \end_layout
15962
15963 \begin_layout Description
15964 \begin_inset Flex Code
15965 status collapsed
15966
15967 \begin_layout Plain Layout
15968 LabelString
15969 \end_layout
15970
15971 \end_inset
15972
15973  [
15974 \begin_inset Flex Code
15975 status collapsed
15976
15977 \begin_layout Plain Layout
15978 文字列
15979 \end_layout
15980
15981 \end_inset
15982
15983 =
15984 \begin_inset Quotes erd
15985 \end_inset
15986
15987
15988 \begin_inset Quotes erd
15989 \end_inset
15990
15991 ]
15992 \lang english
15993  
15994 \lang japanese
15995 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
15996 コードや派生枝)、ラベルが動的に変更されます。
15997 \end_layout
15998
15999 \begin_layout Description
16000 \begin_inset Flex Code
16001 status collapsed
16002
16003 \begin_layout Plain Layout
16004 LangPreamble
16005 \end_layout
16006
16007 \end_inset
16008
16009  言語依存のプリアンブル。
16010 \begin_inset CommandInset ref
16011 LatexCommand ref
16012 reference "subsec:段落様式の国際化"
16013
16014 \end_inset
16015
16016 参照。
16017 \end_layout
16018
16019 \begin_layout Description
16020 \begin_inset Flex Code
16021 status collapsed
16022
16023 \begin_layout Plain Layout
16024 LatexName
16025 \end_layout
16026
16027 \end_inset
16028
16029  [
16030 \begin_inset Flex Code
16031 status collapsed
16032
16033 \begin_layout Plain Layout
16034 <名称>
16035 \end_layout
16036
16037 \end_inset
16038
16039 ] 対応する\SpecialChar LaTeX
16040 関連物の名称。環境名ないしはコマンド名。
16041 \end_layout
16042
16043 \begin_layout Description
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048 LatexParam
16049 \end_layout
16050
16051 \end_inset
16052
16053  [
16054 \begin_inset Flex Code
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058 <パラメータ>
16059 \end_layout
16060
16061 \end_inset
16062
16063 ]
16064 \lang english
16065  
16066 \lang japanese
16067 対応する
16068 \begin_inset Flex Code
16069 status collapsed
16070
16071 \begin_layout Plain Layout
16072 LatexName
16073 \end_layout
16074
16075 \end_inset
16076
16077 関連物の非必須パラメータ。
16078 \begin_inset Flex Code
16079 status collapsed
16080
16081 \begin_layout Plain Layout
16082 []
16083 \end_layout
16084
16085 \end_inset
16086
16087 のような括弧対を含む。このパラメータは\SpecialChar LyX
16088 内部から変更することはできません(変更可能なパラメータには
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093 Argument
16094 \end_layout
16095
16096 \end_inset
16097
16098 を使用してください)。これは、全ての\SpecialChar LaTeX
16099  
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 Argument
16105 \end_layout
16106
16107 \end_inset
16108
16109 の後にそのままの形で出力されます。
16110 \end_layout
16111
16112 \begin_layout Description
16113 \begin_inset Flex Code
16114 status collapsed
16115
16116 \begin_layout Plain Layout
16117 LatexType
16118 \end_layout
16119
16120 \end_inset
16121
16122  [
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 Command, Environment, None
16128 \end_layout
16129
16130 \end_inset
16131
16132 ] 様式がどのように\SpecialChar LaTeX
16133 に変換されるべきかを示します
16134 \begin_inset Foot
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138 これらのルールはSGMLクラスにも適用されるので、
16139 \begin_inset Flex Code
16140 status collapsed
16141
16142 \begin_layout Plain Layout
16143 LatexType
16144 \end_layout
16145
16146 \end_inset
16147
16148 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16149 \end_layout
16150
16151 \end_inset
16152
16153
16154 \begin_inset Separator parbreak
16155 \end_inset
16156
16157
16158 \end_layout
16159
16160 \begin_deeper
16161 \begin_layout Description
16162 \begin_inset Flex Code
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166 None
16167 \end_layout
16168
16169 \end_inset
16170
16171  は、何も特別なことは意味しません
16172 \end_layout
16173
16174 \begin_layout Description
16175 \begin_inset Flex Code
16176 status collapsed
16177
16178 \begin_layout Plain Layout
16179 Command
16180 \end_layout
16181
16182 \end_inset
16183
16184  は、
16185 \begin_inset Flex Code
16186 status collapsed
16187
16188 \begin_layout Plain Layout
16189
16190 \backslash
16191
16192 \emph on
16193 LatexName
16194 \emph default
16195 {\SpecialChar ldots
16196 }
16197 \end_layout
16198
16199 \end_inset
16200
16201 を意味します
16202 \end_layout
16203
16204 \begin_layout Description
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 Environment
16210 \end_layout
16211
16212 \end_inset
16213
16214  は、
16215 \begin_inset Flex Code
16216 status collapsed
16217
16218 \begin_layout Plain Layout
16219
16220 \backslash
16221 begin{
16222 \emph on
16223 LatexName
16224 \emph default
16225 }\SpecialChar ldots
16226
16227 \backslash
16228 end{
16229 \emph on
16230 LatexName
16231 \emph default
16232 }
16233 \end_layout
16234
16235 \end_inset
16236
16237 を意味します
16238 \end_layout
16239
16240 \begin_layout Standard
16241 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16242 出力は、\SpecialChar LaTeX
16243 型に依存して
16244 \end_layout
16245
16246 \begin_layout LyX-Code
16247
16248 \backslash
16249 LatexName[LatexParam]{\SpecialChar ldots
16250 }
16251 \end_layout
16252
16253 \begin_layout Standard
16254 のようになるか、
16255 \end_layout
16256
16257 \begin_layout LyX-Code
16258
16259 \backslash
16260 begin{LatexName}[LatexParam] \SpecialChar ldots
16261  
16262 \backslash
16263 end{LatexName}.
16264 \end_layout
16265
16266 \begin_layout Standard
16267 となります。
16268 \end_layout
16269
16270 \end_deeper
16271 \begin_layout Description
16272 \begin_inset Flex Code
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276 LeftDelim
16277 \end_layout
16278
16279 \end_inset
16280
16281  [
16282 \begin_inset Flex Code
16283 status collapsed
16284
16285 \begin_layout Plain Layout
16286 文字列
16287 \end_layout
16288
16289 \end_inset
16290
16291 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 <br/>
16297 \end_layout
16298
16299 \end_inset
16300
16301 で指示できます。
16302 \end_layout
16303
16304 \begin_layout Description
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309 LyxType
16310 \end_layout
16311
16312 \end_inset
16313
16314  
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 charstyle
16320 \end_layout
16321
16322 \end_inset
16323
16324
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 custom
16330 \end_layout
16331
16332 \end_inset
16333
16334
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 element
16340 \end_layout
16341
16342 \end_inset
16343
16344
16345 \begin_inset Flex Code
16346 status collapsed
16347
16348 \begin_layout Plain Layout
16349 end
16350 \end_layout
16351
16352 \end_inset
16353
16354 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16355 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16356 \begin_inset Flex Code
16357 status collapsed
16358
16359 \begin_layout Plain Layout
16360 LyXType
16361 \end_layout
16362
16363 \end_inset
16364
16365
16366 \begin_inset Flex Code
16367 status collapsed
16368
16369 \begin_layout Plain Layout
16370 charstyle
16371 \end_layout
16372
16373 \end_inset
16374
16375 に設定すると、
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 MultiPar
16381 \end_layout
16382
16383 \end_inset
16384
16385 が偽に設定されます。文字様式差込枠で
16386 \begin_inset Flex Code
16387 status collapsed
16388
16389 \begin_layout Plain Layout
16390 MultiPar
16391 \end_layout
16392
16393 \end_inset
16394
16395 を真にしたい時には、
16396 \begin_inset Flex Code
16397 status collapsed
16398
16399 \begin_layout Plain Layout
16400 LyXType
16401 \end_layout
16402
16403 \end_inset
16404
16405 を設定した
16406 \emph on
16407 後に
16408 \emph default
16409 設定すれば、真に設定することができます。
16410 \end_layout
16411
16412 \begin_layout Description
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417 MultiPar
16418 \end_layout
16419
16420 \end_inset
16421
16422  [
16423 \begin_inset Flex Code
16424 status collapsed
16425
16426 \begin_layout Plain Layout
16427
16428 \emph on
16429 0
16430 \end_layout
16431
16432 \end_inset
16433
16434 ,
16435 \begin_inset space \thinspace{}
16436 \end_inset
16437
16438
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443 1
16444 \end_layout
16445
16446 \end_inset
16447
16448 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 CustomPars
16454 \end_layout
16455
16456 \end_inset
16457
16458 を同じ値に設定し、
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463 ForcePlain
16464 \end_layout
16465
16466 \end_inset
16467
16468 を逆の値に設定します。これらは、
16469 \begin_inset Flex Code
16470 status collapsed
16471
16472 \begin_layout Plain Layout
16473 MultiPar
16474 \end_layout
16475
16476 \end_inset
16477
16478
16479 \emph on
16480 後に
16481 \emph default
16482 指定されれば、他の値に指定し直すことができます。既定値は真です。
16483 \end_layout
16484
16485 \begin_layout Description
16486 \begin_inset Flex Code
16487 status collapsed
16488
16489 \begin_layout Plain Layout
16490 NeedProtect
16491 \end_layout
16492
16493 \end_inset
16494
16495  [
16496 \begin_inset Flex Code
16497 status collapsed
16498
16499 \begin_layout Plain Layout
16500
16501 \emph on
16502 0
16503 \end_layout
16504
16505 \end_inset
16506
16507 ,
16508 \begin_inset space \thinspace{}
16509 \end_inset
16510
16511
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 1
16517 \end_layout
16518
16519 \end_inset
16520
16521 ] 本レイアウト中で脆弱なコマンドを
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526
16527 \backslash
16528 protect
16529 \end_layout
16530
16531 \end_inset
16532
16533 するか否か(註:当該コマンド自身をprotectするかどうかでは
16534 \emph on
16535 ありません
16536 \emph default
16537 )。既定値は偽です。
16538 \end_layout
16539
16540 \begin_layout Description
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 NoInsetLayout
16546 \end_layout
16547
16548 \end_inset
16549
16550  [
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 <レイアウト>
16556 \end_layout
16557
16558 \end_inset
16559
16560 ] 既存の
16561 \begin_inset Flex Code
16562 status collapsed
16563
16564 \begin_layout Plain Layout
16565 InsetLayout
16566 \end_layout
16567
16568 \end_inset
16569
16570 を削除します。
16571 \end_layout
16572
16573 \begin_layout Description
16574 \begin_inset Flex Code
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 ObsoletedBy
16579 \end_layout
16580
16581 \end_inset
16582
16583  [
16584 \begin_inset Flex Code
16585 status collapsed
16586
16587 \begin_layout Plain Layout
16588 <レイアウト>
16589 \end_layout
16590
16591 \end_inset
16592
16593 ] この古い
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 InsetLayout
16599 \end_layout
16600
16601 \end_inset
16602
16603 を引き継いだ
16604 \begin_inset Flex Code
16605 status collapsed
16606
16607 \begin_layout Plain Layout
16608 InsetLayout
16609 \end_layout
16610
16611 \end_inset
16612
16613 の名称。これは、
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618 InsetLayout
16619 \end_layout
16620
16621 \end_inset
16622
16623 の改名を、後方互換性を維持しながら行うために用いられます。
16624 \end_layout
16625
16626 \begin_layout Description
16627 \begin_inset Flex Code
16628 status collapsed
16629
16630 \begin_layout Plain Layout
16631 ParbreakIsNewline
16632 \end_layout
16633
16634 \end_inset
16635
16636  [
16637 \begin_inset Flex Code
16638 status collapsed
16639
16640 \begin_layout Plain Layout
16641
16642 \emph on
16643 0
16644 \end_layout
16645
16646 \end_inset
16647
16648 ,
16649 \begin_inset space \thinspace{}
16650 \end_inset
16651
16652
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 1
16658 \end_layout
16659
16660 \end_inset
16661
16662 ] 段落様式と同様。
16663 \begin_inset CommandInset ref
16664 LatexCommand ref
16665 reference "subsec:段落様式"
16666
16667 \end_inset
16668
16669 参照。
16670 \end_layout
16671
16672 \begin_layout Description
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 PassThru
16678 \end_layout
16679
16680 \end_inset
16681
16682  [
16683 \emph on
16684
16685 \begin_inset Flex Code
16686 status collapsed
16687
16688 \begin_layout Plain Layout
16689 0
16690 \end_layout
16691
16692 \end_inset
16693
16694
16695 \emph default
16696 ,
16697 \begin_inset space \thinspace{}
16698 \end_inset
16699
16700
16701 \begin_inset Flex Code
16702 status collapsed
16703
16704 \begin_layout Plain Layout
16705 1
16706 \end_layout
16707
16708 \end_inset
16709
16710 ] 段落様式と同様。
16711 \begin_inset CommandInset ref
16712 LatexCommand ref
16713 reference "subsec:段落様式"
16714
16715 \end_inset
16716
16717 参照。
16718 \end_layout
16719
16720 \begin_layout Description
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 Preamble
16726 \end_layout
16727
16728 \end_inset
16729
16730  段落様式と同様。
16731 \begin_inset CommandInset ref
16732 LatexCommand ref
16733 reference "subsec:段落様式"
16734
16735 \end_inset
16736
16737 参照。
16738 \end_layout
16739
16740 \begin_layout Description
16741 \begin_inset Flex Code
16742 status collapsed
16743
16744 \begin_layout Plain Layout
16745 RefPrefix
16746 \end_layout
16747
16748 \end_inset
16749
16750  [
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 文字列
16756 \end_layout
16757
16758 \end_inset
16759
16760 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
16761 \end_layout
16762
16763 \begin_layout Description
16764 \begin_inset Flex Code
16765 status collapsed
16766
16767 \begin_layout Plain Layout
16768 Requires
16769 \end_layout
16770
16771 \end_inset
16772
16773  [
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 文字列
16779 \end_layout
16780
16781 \end_inset
16782
16783 ] 段落様式と同様。
16784 \begin_inset CommandInset ref
16785 LatexCommand ref
16786 reference "subsec:段落様式"
16787
16788 \end_inset
16789
16790 参照。
16791 \end_layout
16792
16793 \begin_layout Description
16794 \begin_inset Flex Code
16795 status collapsed
16796
16797 \begin_layout Plain Layout
16798 ResetArgs
16799 \end_layout
16800
16801 \end_inset
16802
16803  [
16804 \begin_inset Flex Code
16805 status collapsed
16806
16807 \begin_layout Plain Layout
16808
16809 \emph on
16810 0
16811 \end_layout
16812
16813 \end_inset
16814
16815 ,
16816 \begin_inset space \thinspace{}
16817 \end_inset
16818
16819
16820 \begin_inset Flex Code
16821 status collapsed
16822
16823 \begin_layout Plain Layout
16824 1
16825 \end_layout
16826
16827 \end_inset
16828
16829 ] (
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 Argument
16835 \end_layout
16836
16837 \end_inset
16838
16839 タグで定義された)この様式の\SpecialChar LaTeX
16840 引数をリセットします。これは、様式を
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 CopyStyle
16846 \end_layout
16847
16848 \end_inset
16849
16850 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
16851 \end_layout
16852
16853 \begin_layout Description
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 ResetsFont
16859 \end_layout
16860
16861 \end_inset
16862
16863  [
16864 \begin_inset Flex Code
16865 status collapsed
16866
16867 \begin_layout Plain Layout
16868 0
16869 \end_layout
16870
16871 \end_inset
16872
16873 ,
16874 \begin_inset space \thinspace{}
16875 \end_inset
16876
16877
16878 \begin_inset Flex Code
16879 status collapsed
16880
16881 \begin_layout Plain Layout
16882
16883 \emph on
16884 1
16885 \end_layout
16886
16887 \end_inset
16888
16889 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
16890 \begin_inset Note Note
16891 status open
16892
16893 \begin_layout Plain Layout
16894 This is outdated: The default changed from 1 to 0
16895 \end_layout
16896
16897 \end_inset
16898
16899
16900 \end_layout
16901
16902 \begin_layout Description
16903 \begin_inset Flex Code
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 RightDelim
16908 \end_layout
16909
16910 \end_inset
16911
16912  [
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 文字列
16918 \end_layout
16919
16920 \end_inset
16921
16922 ] 様式の内容の最後に置かれる文字列。出力中の改行は
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 <br/>
16928 \end_layout
16929
16930 \end_inset
16931
16932 で指示できます。
16933 \end_layout
16934
16935 \begin_layout Description
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 Spellcheck
16941 \end_layout
16942
16943 \end_inset
16944
16945  [
16946 \begin_inset Flex Code
16947 status collapsed
16948
16949 \begin_layout Plain Layout
16950 0
16951 \end_layout
16952
16953 \end_inset
16954
16955 ,
16956 \begin_inset space \thinspace{}
16957 \end_inset
16958
16959
16960 \begin_inset Flex Code
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964
16965 \emph on
16966 1
16967 \end_layout
16968
16969 \end_inset
16970
16971 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
16972 \end_layout
16973
16974 \begin_layout Subsection
16975 カウンタ
16976 \begin_inset CommandInset label
16977 LatexCommand label
16978 name "subsec:カウンタ"
16979
16980 \end_inset
16981
16982
16983 \end_layout
16984
16985 \begin_layout Standard
16986 テキストクラスには、カウンタ(
16987 \begin_inset Flex MenuItem
16988 status collapsed
16989
16990 \begin_layout Plain Layout
16991 chapter
16992 \end_layout
16993
16994 \end_inset
16995
16996
16997 \begin_inset Flex MenuItem
16998 status collapsed
16999
17000 \begin_layout Plain Layout
17001 figure
17002 \end_layout
17003
17004 \end_inset
17005
17006 ・\SpecialChar ldots
17007 )を定義することが必要です。標準的なカウンタは
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 stdcounters.inc
17013 \end_layout
17014
17015 \end_inset
17016
17017 ファイルに含まれているので、作業中のレイアウトファイルに
17018 \end_layout
17019
17020 \begin_layout LyX-Code
17021 Input stdcounters.inc
17022 \end_layout
17023
17024 \begin_layout Standard
17025 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17026 \end_layout
17027
17028 \begin_layout LyX-Code
17029 Counter カウンタ名
17030 \end_layout
17031
17032 \begin_layout Standard
17033 で始まらなくてはなりません。ここで「
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 カウンタ名
17039 \end_layout
17040
17041 \end_inset
17042
17043 」は、実際のカウンタ名で置き換えます。また、宣言は「
17044 \begin_inset Flex Code
17045 status collapsed
17046
17047 \begin_layout Plain Layout
17048 End
17049 \end_layout
17050
17051 \end_inset
17052
17053 」で終わらなくてはなりません。
17054 \end_layout
17055
17056 \begin_layout Standard
17057 以下のパラメータを使用することができます。
17058 \end_layout
17059
17060 \begin_layout Description
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 InitialValue
17066 \end_layout
17067
17068 \end_inset
17069
17070  [
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 整数=1
17076 \end_layout
17077
17078 \end_inset
17079
17080 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17081 \end_layout
17082
17083 \begin_layout Description
17084 \begin_inset Flex Code
17085 status collapsed
17086
17087 \begin_layout Plain Layout
17088 LabelString [文字列=""]
17089 \end_layout
17090
17091 \end_inset
17092
17093  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17094 \begin_inset Flex Code
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 LabelStringAppendix
17099 \end_layout
17100
17101 \end_inset
17102
17103 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17104 \begin_inset Separator parbreak
17105 \end_inset
17106
17107
17108 \end_layout
17109
17110 \begin_deeper
17111 \begin_layout Itemize
17112 \begin_inset Flex Code
17113 status collapsed
17114
17115 \begin_layout Plain Layout
17116
17117 \backslash
17118 thecounter
17119 \end_layout
17120
17121 \end_inset
17122
17123 は、カウンタ
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128 counter
17129 \end_layout
17130
17131 \end_inset
17132
17133
17134 \begin_inset Flex Code
17135 status collapsed
17136
17137 \begin_layout Plain Layout
17138 LabelString
17139 \end_layout
17140
17141 \end_inset
17142
17143 (または
17144 \begin_inset Newline linebreak
17145 \end_inset
17146
17147
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 LabelStringAppendix
17153 \end_layout
17154
17155 \end_inset
17156
17157 )を展開したもので置き換えられます。 
17158 \end_layout
17159
17160 \begin_layout Itemize
17161 カウンタ値は、\SpecialChar LaTeX
17162 型マクロ
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167
17168 \backslash
17169
17170 \emph on
17171 numbertype
17172 \emph default
17173 {
17174 \emph on
17175 カウンタ
17176 \emph default
17177 }
17178 \end_layout
17179
17180 \end_inset
17181
17182 を用いて表現することができます。ここで
17183 \begin_inset Flex Code
17184 status collapsed
17185
17186 \begin_layout Plain Layout
17187
17188 \emph on
17189 numbertype
17190 \end_layout
17191
17192 \end_inset
17193
17194 は以下のいずれかです。
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 arabic
17200 \end_layout
17201
17202 \end_inset
17203
17204 :1, 2, 3,\SpecialChar ldots
17205
17206 \begin_inset Flex Code
17207 status collapsed
17208
17209 \begin_layout Plain Layout
17210 alph
17211 \end_layout
17212
17213 \end_inset
17214
17215 :a, b, c, \SpecialChar ldots
17216 (小文字);
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 Alph
17222 \end_layout
17223
17224 \end_inset
17225
17226 :A, B, C, \SpecialChar ldots
17227 (大文字);
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 roman
17233 \end_layout
17234
17235 \end_inset
17236
17237 :i, ii, iii, \SpecialChar ldots
17238 (小文字ローマ数字);
17239 \begin_inset Flex Code
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243 Roman
17244 \end_layout
17245
17246 \end_inset
17247
17248 :I, II, III\SpecialChar ldots
17249 (大文字ローマ数字)。
17250 \end_layout
17251
17252 \end_deeper
17253 \begin_layout Standard
17254 \begin_inset Flex Code
17255 status collapsed
17256
17257 \begin_layout Plain Layout
17258 LabelString
17259 \end_layout
17260
17261 \end_inset
17262
17263 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268 master
17269 \end_layout
17270
17271 \end_inset
17272
17273
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 Within
17279 \end_layout
17280
17281 \end_inset
17282
17283 で定義)があるときには、文字列
17284 \begin_inset Newline linebreak
17285 \end_inset
17286
17287
17288 \begin_inset Flex Code
17289 status collapsed
17290
17291 \begin_layout Plain Layout
17292
17293 \backslash
17294 themaster.
17295 \backslash
17296 arabic{カウンタ}
17297 \end_layout
17298
17299 \end_inset
17300
17301 が使用されます。それ以外の場合は、
17302 \begin_inset Flex Code
17303 status collapsed
17304
17305 \begin_layout Plain Layout
17306
17307 \backslash
17308 arabic{カウンタ}
17309 \end_layout
17310
17311 \end_inset
17312
17313 が使用されます。
17314 \end_layout
17315
17316 \begin_layout Description
17317 \begin_inset Flex Code
17318 status collapsed
17319
17320 \begin_layout Plain Layout
17321 LabelStringAppendix
17322 \end_layout
17323
17324 \end_inset
17325
17326  [
17327 \begin_inset Flex Code
17328 status collapsed
17329
17330 \begin_layout Plain Layout
17331 文字列
17332 \end_layout
17333
17334 \end_inset
17335
17336 =""] 
17337 \begin_inset Flex Code
17338 status collapsed
17339
17340 \begin_layout Plain Layout
17341 LabelString
17342 \end_layout
17343
17344 \end_inset
17345
17346 と同様ですが、付録で使用するためのものです。
17347 \end_layout
17348
17349 \begin_layout Description
17350 \begin_inset Flex Code
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354 PrettyFormat
17355 \end_layout
17356
17357 \end_inset
17358
17359  [
17360 \begin_inset Flex Code
17361 status collapsed
17362
17363 \begin_layout Plain Layout
17364 文字列
17365 \end_layout
17366
17367 \end_inset
17368
17369 =
17370 \begin_inset Quotes erd
17371 \end_inset
17372
17373
17374 \begin_inset Quotes erd
17375 \end_inset
17376
17377 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17378 \begin_inset space ~
17379 \end_inset
17380
17381 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17382 す。
17383 \end_layout
17384
17385 \begin_layout Description
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390 Within
17391 \end_layout
17392
17393 \end_inset
17394
17395  [
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400 文字列
17401 \end_layout
17402
17403 \end_inset
17404
17405 =
17406 \begin_inset Quotes erd
17407 \end_inset
17408
17409
17410 \begin_inset Quotes erd
17411 \end_inset
17412
17413 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 subsection
17419 \end_layout
17420
17421 \end_inset
17422
17423
17424 \begin_inset Flex Code
17425 status collapsed
17426
17427 \begin_layout Plain Layout
17428 section
17429 \end_layout
17430
17431 \end_inset
17432
17433 毎に番号がリセットされます。
17434 \end_layout
17435
17436 \begin_layout Subsection
17437 フォント指定
17438 \begin_inset CommandInset label
17439 LatexCommand label
17440 name "subsec:フォント指定"
17441
17442 \end_inset
17443
17444
17445 \end_layout
17446
17447 \begin_layout Standard
17448 フォント指定は、以下のような形を取ります。
17449 \end_layout
17450
17451 \begin_layout LyX-Code
17452 Font 
17453 \family roman
17454 \emph on
17455 または
17456 \family default
17457 \emph default
17458  LabelFont 
17459 \family roman
17460 \emph on
17461 または
17462 \family default
17463 \emph default
17464  DefaultFont
17465 \end_layout
17466
17467 \begin_layout LyX-Code
17468  ...
17469 \end_layout
17470
17471 \begin_layout LyX-Code
17472 EndFont
17473 \end_layout
17474
17475 \begin_layout Standard
17476 以下のコマンドを使用することができます。
17477 \end_layout
17478
17479 \begin_layout Description
17480 \begin_inset Flex Code
17481 status collapsed
17482
17483 \begin_layout Plain Layout
17484 Color
17485 \end_layout
17486
17487 \end_inset
17488
17489  [
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494
17495 \emph on
17496 none
17497 \end_layout
17498
17499 \end_inset
17500
17501
17502 \begin_inset Flex Code
17503 status collapsed
17504
17505 \begin_layout Plain Layout
17506 black
17507 \end_layout
17508
17509 \end_inset
17510
17511
17512 \begin_inset Flex Code
17513 status collapsed
17514
17515 \begin_layout Plain Layout
17516 white
17517 \end_layout
17518
17519 \end_inset
17520
17521
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 red
17527 \end_layout
17528
17529 \end_inset
17530
17531
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 green
17537 \end_layout
17538
17539 \end_inset
17540
17541
17542 \begin_inset Flex Code
17543 status collapsed
17544
17545 \begin_layout Plain Layout
17546 blue
17547 \end_layout
17548
17549 \end_inset
17550
17551
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 cyan
17557 \end_layout
17558
17559 \end_inset
17560
17561
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 magenta
17567 \end_layout
17568
17569 \end_inset
17570
17571
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576 yellow
17577 \end_layout
17578
17579 \end_inset
17580
17581 ]
17582 \end_layout
17583
17584 \begin_layout Description
17585 \begin_inset Flex Code
17586 status collapsed
17587
17588 \begin_layout Plain Layout
17589 Family
17590 \end_layout
17591
17592 \end_inset
17593
17594  [
17595 \emph on
17596
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 Roman
17602 \end_layout
17603
17604 \end_inset
17605
17606
17607 \emph default
17608
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 Sans
17614 \end_layout
17615
17616 \end_inset
17617
17618
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 Typewriter
17624 \end_layout
17625
17626 \end_inset
17627
17628
17629 \end_layout
17630
17631 \begin_layout Description
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 Misc
17637 \end_layout
17638
17639 \end_inset
17640
17641  [
17642 \begin_inset Flex Code
17643 status collapsed
17644
17645 \begin_layout Plain Layout
17646 文字列
17647 \end_layout
17648
17649 \end_inset
17650
17651 ] 有効な引数は、
17652 \begin_inset Flex Code
17653 status collapsed
17654
17655 \begin_layout Plain Layout
17656 emph
17657 \end_layout
17658
17659 \end_inset
17660
17661
17662 \begin_inset Flex Code
17663 status collapsed
17664
17665 \begin_layout Plain Layout
17666 noun
17667 \end_layout
17668
17669 \end_inset
17670
17671
17672 \begin_inset Flex Code
17673 status collapsed
17674
17675 \begin_layout Plain Layout
17676 strikeout
17677 \end_layout
17678
17679 \end_inset
17680
17681
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 underbar
17687 \end_layout
17688
17689 \end_inset
17690
17691
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 uuline
17697 \end_layout
17698
17699 \end_inset
17700
17701
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 uwave
17707 \end_layout
17708
17709 \end_inset
17710
17711
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 no_emph
17717 \end_layout
17718
17719 \end_inset
17720
17721
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726 no_noun
17727 \end_layout
17728
17729 \end_inset
17730
17731
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 no_strikeout
17737 \end_layout
17738
17739 \end_inset
17740
17741
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 no_bar
17747 \end_layout
17748
17749 \end_inset
17750
17751
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 no_uuline
17757 \end_layout
17758
17759 \end_inset
17760
17761
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766 no_uwave
17767 \end_layout
17768
17769 \end_inset
17770
17771 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
17772 \begin_inset Newline newline
17773 \end_inset
17774
17775 たとえば、
17776 \begin_inset Flex Code
17777 status collapsed
17778
17779 \begin_layout Plain Layout
17780 emph
17781 \end_layout
17782
17783 \end_inset
17784
17785 は強調を有効にし、
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 no_emph
17791 \end_layout
17792
17793 \end_inset
17794
17795 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
17796
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 no_emph
17802 \end_layout
17803
17804 \end_inset
17805
17806 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
17807 \end_layout
17808
17809 \begin_layout Description
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 Series
17815 \end_layout
17816
17817 \end_inset
17818
17819  [
17820 \emph on
17821
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 Medium
17827 \end_layout
17828
17829 \end_inset
17830
17831
17832 \emph default
17833
17834 \begin_inset Flex Code
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 Bold
17839 \end_layout
17840
17841 \end_inset
17842
17843
17844 \end_layout
17845
17846 \begin_layout Description
17847 \begin_inset Flex Code
17848 status collapsed
17849
17850 \begin_layout Plain Layout
17851 Shape
17852 \end_layout
17853
17854 \end_inset
17855
17856  [
17857 \emph on
17858
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 Up
17864 \end_layout
17865
17866 \end_inset
17867
17868
17869 \emph default
17870
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875 Italic
17876 \end_layout
17877
17878 \end_inset
17879
17880
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 SmallCaps
17886 \end_layout
17887
17888 \end_inset
17889
17890
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 Slanted
17896 \end_layout
17897
17898 \end_inset
17899
17900
17901 \end_layout
17902
17903 \begin_layout Description
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908 Size
17909 \end_layout
17910
17911 \end_inset
17912
17913  [
17914 \begin_inset Flex Code
17915 status collapsed
17916
17917 \begin_layout Plain Layout
17918 tiny
17919 \end_layout
17920
17921 \end_inset
17922
17923
17924 \begin_inset Flex Code
17925 status collapsed
17926
17927 \begin_layout Plain Layout
17928 small
17929 \end_layout
17930
17931 \end_inset
17932
17933
17934 \begin_inset Flex Code
17935 status collapsed
17936
17937 \begin_layout Plain Layout
17938
17939 \emph on
17940 normal
17941 \end_layout
17942
17943 \end_inset
17944
17945
17946 \begin_inset Flex Code
17947 status collapsed
17948
17949 \begin_layout Plain Layout
17950 large
17951 \end_layout
17952
17953 \end_inset
17954
17955
17956 \begin_inset Flex Code
17957 status collapsed
17958
17959 \begin_layout Plain Layout
17960 larger
17961 \end_layout
17962
17963 \end_inset
17964
17965
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 largest
17971 \end_layout
17972
17973 \end_inset
17974
17975
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 huge
17981 \end_layout
17982
17983 \end_inset
17984
17985
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 giant
17991 \end_layout
17992
17993 \end_inset
17994
17995 ]
17996 \end_layout
17997
17998 \begin_layout Subsection
17999 \begin_inset CommandInset label
18000 LatexCommand label
18001 name "subsec:引用書式指定"
18002
18003 \end_inset
18004
18005 引用書式指定
18006 \end_layout
18007
18008 \begin_layout Standard
18009 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18010 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 CiteFormat
18016 \end_layout
18017
18018 \end_inset
18019
18020 ブロックが使用されています。このブロックは、以下のような形をしています。
18021 \end_layout
18022
18023 \begin_layout LyX-Code
18024 CiteFormat
18025 \end_layout
18026
18027 \begin_layout LyX-Code
18028  article ...
18029 \end_layout
18030
18031 \begin_layout LyX-Code
18032  book ...
18033 \end_layout
18034
18035 \begin_layout LyX-Code
18036 End
18037 \end_layout
18038
18039 \begin_layout Standard
18040 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18041 ファイル中に存在し
18042 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18043 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18044 は、いくつかの書式を
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 stdciteformats.inc
18050 \end_layout
18051
18052 \end_inset
18053
18054 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18055 文書クラスにインクルードされています。
18056 \end_layout
18057
18058 \begin_layout Standard
18059 この定義は、Bib\SpecialChar TeX
18060 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 %author%
18066 \end_layout
18067
18068 \end_inset
18069
18070 のように
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075 %
18076 \end_layout
18077
18078 \end_inset
18079
18080 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18081 \end_layout
18082
18083 \begin_layout LyX-Code
18084 misc %author%, 
18085 \begin_inset Quotes eld
18086 \end_inset
18087
18088 %title%
18089 \begin_inset Quotes erd
18090 \end_inset
18091
18092
18093 \end_layout
18094
18095 \begin_layout Standard
18096 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18097 \end_layout
18098
18099 \begin_layout Standard
18100 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18101 \begin_inset Flex Code
18102 status collapsed
18103
18104 \begin_layout Plain Layout
18105 {%volume%[[vol.
18106 \begin_inset space ~
18107 \end_inset
18108
18109 %volume%]]}
18110 \end_layout
18111
18112 \end_inset
18113
18114 のように、条件付きの構成を使用することができます。これは、
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 volume
18120 \end_layout
18121
18122 \end_inset
18123
18124 が存在するならば,「vol.
18125 \begin_inset space ~
18126 \end_inset
18127
18128 」とvolumeキーを出力するという意味です。また、
18129 \begin_inset Newline newline
18130 \end_inset
18131
18132
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137 {%author%[[%author%]][[%editor%, ed.]]}
18138 \end_layout
18139
18140 \end_inset
18141
18142
18143 \begin_inset Newline newline
18144 \end_inset
18145
18146 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18147 \begin_inset Flex Code
18148 status collapsed
18149
18150 \begin_layout Plain Layout
18151 author
18152 \end_layout
18153
18154 \end_inset
18155
18156 キーが存在するならば出力され、そうでなければeditorキーと「,
18157 \begin_inset space ~
18158 \end_inset
18159
18160 ed.」が出力されます。ここでもキーは、
18161 \begin_inset Flex Code
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 %
18166 \end_layout
18167
18168 \end_inset
18169
18170 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18171 \begin_inset Flex Code
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 [[
18176 \end_layout
18177
18178 \end_inset
18179
18180 」と「
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 ]]
18186 \end_layout
18187
18188 \end_inset
18189
18190 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18191 \end_layout
18192
18193 \begin_layout Standard
18194 もう一つ、定義中で使用することのできる文法として、
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 {!<i>!}
18200 \end_layout
18201
18202 \end_inset
18203
18204 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18205 グを出力させたくはありませんから、HTMLタグは「
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 {!
18211 \end_layout
18212
18213 \end_inset
18214
18215 」と「
18216 \begin_inset Flex Code
18217 status collapsed
18218
18219 \begin_layout Plain Layout
18220 !}
18221 \end_layout
18222
18223 \end_inset
18224
18225 」でくるんでやらなくてはならないのです。
18226 \end_layout
18227
18228 \begin_layout Standard
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 CiteFormat
18234 \end_layout
18235
18236 \end_inset
18237
18238 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18239 \end_layout
18240
18241 \begin_layout LyX-Code
18242 !quotetitle 
18243 \begin_inset Quotes eld
18244 \end_inset
18245
18246 %title%
18247 \begin_inset Quotes erd
18248 \end_inset
18249
18250
18251 \end_layout
18252
18253 \begin_layout Standard
18254 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18255 \begin_inset Flex Code
18256 status collapsed
18257
18258 \begin_layout Plain Layout
18259 %!quotetitle%
18260 \end_layout
18261
18262 \end_inset
18263
18264 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18265 は、
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270 %!quotetitle%
18271 \end_layout
18272
18273 \end_inset
18274
18275 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18276 \end_layout
18277
18278 \begin_layout LyX-Code
18279 !funfun %funfun%
18280 \end_layout
18281
18282 \begin_layout Standard
18283 のようなことはしないでください。\SpecialChar LyX
18284 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18285 \end_layout
18286
18287 \begin_layout Standard
18288 特殊な定義の二つめは、
18289 \end_layout
18290
18291 \begin_layout LyX-Code
18292 _pptext pp.
18293 \end_layout
18294
18295 \begin_layout Standard
18296 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 %_pptext%
18302 \end_layout
18303
18304 \end_inset
18305
18306 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 stdciteformats.inc
18312 \end_layout
18313
18314 \end_inset
18315
18316 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18317 \end_layout
18318
18319 \begin_layout Standard
18320 以下は、これらの機能を全て使った例です。
18321 \begin_inset VSpace defskip
18322 \end_inset
18323
18324
18325 \end_layout
18326
18327 \begin_layout Standard
18328 \noindent
18329
18330 \family typewriter
18331 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18332 \end_layout
18333
18334 \begin_layout Standard
18335 \begin_inset VSpace defskip
18336 \end_inset
18337
18338 これは、
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343 author
18344 \end_layout
18345
18346 \end_inset
18347
18348 キーが定義されているならば、著者とコンマを出力し、
18349 \begin_inset Flex Code
18350 status collapsed
18351
18352 \begin_layout Plain Layout
18353 author
18354 \end_layout
18355
18356 \end_inset
18357
18358 キーが定義されておらず、
18359 \begin_inset Flex Code
18360 status collapsed
18361
18362 \begin_layout Plain Layout
18363 editor
18364 \end_layout
18365
18366 \end_inset
18367
18368 キーが定義されているならば、編集者名の後に
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 _edtext
18374 \end_layout
18375
18376 \end_inset
18377
18378 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 stdciteformats.inc
18384 \end_layout
18385
18386 \end_inset
18387
18388 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18389 \end_layout
18390
18391 \begin_layout Section
18392 \begin_inset CommandInset label
18393 LatexCommand label
18394 name "sec:XHTML出力のタグ"
18395
18396 \end_inset
18397
18398 XHTML出力のタグ
18399 \end_layout
18400
18401 \begin_layout Standard
18402 \SpecialChar LaTeX
18403 やDocBookと同様、\SpecialChar LyX
18404 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18405 は適切な既定値を提供し、前述したように、他のレイアウト
18406 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18407 は、章様式の
18408 \begin_inset Flex Code
18409 status collapsed
18410
18411 \begin_layout Plain Layout
18412 Font
18413 \end_layout
18414
18415 \end_inset
18416
18417 宣言で提供されている情報を利用しようと試みます。
18418 \end_layout
18419
18420 \begin_layout Standard
18421 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18422 、これが必要になる場合もあるので、\SpecialChar LyX
18423 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18424 \end_layout
18425
18426 \begin_layout Standard
18427 様式宣言や差込枠宣言の外で使用することができるタグに、
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432 HTMLPreamble
18433 \end_layout
18434
18435 \end_inset
18436
18437
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 AddToHTMLPreamble
18443 \end_layout
18444
18445 \end_inset
18446
18447 の2つがあることに注意してください。これらの詳細については、
18448 \begin_inset CommandInset ref
18449 LatexCommand ref
18450 reference "subsec:汎用テキストクラスパラメータ"
18451
18452 \end_inset
18453
18454 をご覧ください。
18455 \end_layout
18456
18457 \begin_layout Subsection
18458 \begin_inset CommandInset label
18459 LatexCommand label
18460 name "subsec:段落様式-XHTML"
18461
18462 \end_inset
18463
18464 段落様式
18465 \end_layout
18466
18467 \begin_layout Standard
18468 \SpecialChar LyX
18469 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 \SpecialChar LaTeX
18475 Type
18476 \end_layout
18477
18478 \end_inset
18479
18480 タグの内容によって決定されます。
18481 \end_layout
18482
18483 \begin_layout Standard
18484 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18485 \end_layout
18486
18487 \begin_layout LyX-Code
18488 <tag attr=
18489 \begin_inset Quotes erd
18490 \end_inset
18491
18492 value
18493 \begin_inset Quotes erd
18494 \end_inset
18495
18496 >
18497 \end_layout
18498
18499 \begin_layout LyX-Code
18500 <labeltag attr=
18501 \begin_inset Quotes erd
18502 \end_inset
18503
18504 value
18505 \begin_inset Quotes erd
18506 \end_inset
18507
18508 >ラベル</labeltag>
18509 \end_layout
18510
18511 \begin_layout LyX-Code
18512 段落の内容
18513 \end_layout
18514
18515 \begin_layout LyX-Code
18516 </tag>
18517 \end_layout
18518
18519 \begin_layout Standard
18520 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18521 \end_layout
18522
18523 \begin_layout Standard
18524 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18525 \end_layout
18526
18527 \begin_layout LyX-Code
18528 <tag attr=
18529 \begin_inset Quotes erd
18530 \end_inset
18531
18532 value
18533 \begin_inset Quotes erd
18534 \end_inset
18535
18536 >
18537 \end_layout
18538
18539 \begin_layout LyX-Code
18540 <itemtag attr=
18541 \begin_inset Quotes erd
18542 \end_inset
18543
18544 value
18545 \begin_inset Quotes erd
18546 \end_inset
18547
18548 ><labeltag attr=
18549 \begin_inset Quotes erd
18550 \end_inset
18551
18552 value
18553 \begin_inset Quotes erd
18554 \end_inset
18555
18556 >環境ラベル</labeltag>最初の段落。
18557 \end_layout
18558
18559 \begin_layout LyX-Code
18560 </itemtag>
18561 \end_layout
18562
18563 \begin_layout LyX-Code
18564 <itemtag>二つめの段落。</itemtag>
18565 \end_layout
18566
18567 \begin_layout LyX-Code
18568 </tag>
18569 \end_layout
18570
18571 \begin_layout Standard
18572 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18573 \end_layout
18574
18575 \begin_layout Standard
18576 リストに関しては、次のような形になります。
18577 \end_layout
18578
18579 \begin_layout LyX-Code
18580 <tag attr=
18581 \begin_inset Quotes erd
18582 \end_inset
18583
18584 value
18585 \begin_inset Quotes erd
18586 \end_inset
18587
18588 >
18589 \end_layout
18590
18591 \begin_layout LyX-Code
18592 <itemtag attr=
18593 \begin_inset Quotes erd
18594 \end_inset
18595
18596 value
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600 ><labeltag attr=
18601 \begin_inset Quotes erd
18602 \end_inset
18603
18604 value
18605 \begin_inset Quotes erd
18606 \end_inset
18607
18608 >リストのラベル</labeltag>最初の項目。</itemtag>
18609 \end_layout
18610
18611 \begin_layout LyX-Code
18612 <itemtag attr=
18613 \begin_inset Quotes erd
18614 \end_inset
18615
18616 value
18617 \begin_inset Quotes erd
18618 \end_inset
18619
18620 ><labeltag attr=
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624 value
18625 \begin_inset Quotes erd
18626 \end_inset
18627
18628 >リストのラベル</labeltag>二つめの項目。</itemtag>
18629 \end_layout
18630
18631 \begin_layout LyX-Code
18632 </tag>
18633 \end_layout
18634
18635 \begin_layout LyX-Code
18636
18637 \end_layout
18638
18639 \begin_layout LyX-Code
18640 <tag attr=
18641 \begin_inset Quotes erd
18642 \end_inset
18643
18644 value
18645 \begin_inset Quotes erd
18646 \end_inset
18647
18648 >
18649 \end_layout
18650
18651 \begin_layout LyX-Code
18652 <labeltag attr=
18653 \begin_inset Quotes erd
18654 \end_inset
18655
18656 value
18657 \begin_inset Quotes erd
18658 \end_inset
18659
18660 >リストのラベル</labeltag><itemtag attr=
18661 \begin_inset Quotes erd
18662 \end_inset
18663
18664 value
18665 \begin_inset Quotes erd
18666 \end_inset
18667
18668 >最初の項目。</itemtag>
18669 \end_layout
18670
18671 \begin_layout LyX-Code
18672 <labeltag attr=
18673 \begin_inset Quotes erd
18674 \end_inset
18675
18676 value
18677 \begin_inset Quotes erd
18678 \end_inset
18679
18680 >リストのラベル</labeltag><itemtag attr=
18681 \begin_inset Quotes erd
18682 \end_inset
18683
18684 value
18685 \begin_inset Quotes erd
18686 \end_inset
18687
18688 >二つめの項目</itemtag>
18689 \end_layout
18690
18691 \begin_layout LyX-Code
18692 </tag>
18693 \end_layout
18694
18695 \begin_layout Standard
18696 ここで
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 labeltag
18702 \end_layout
18703
18704 \end_inset
18705
18706
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 itemtag
18712 \end_layout
18713
18714 \end_inset
18715
18716 の順序が違っていることに注意してください。どちらの順序になるかは、
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721 HTMLLabelFirst
18722 \end_layout
18723
18724 \end_inset
18725
18726 の設定に依存します。もし
18727 \begin_inset Flex Code
18728 status collapsed
18729
18730 \begin_layout Plain Layout
18731 HTMLLabelFirst
18732 \end_layout
18733
18734 \end_inset
18735
18736 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
18737 \end_layout
18738
18739 \begin_layout Standard
18740 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
18741 は適切な既定値を生成
18742 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
18743 でここにあるものと考えてください。
18744 \end_layout
18745
18746 \begin_layout Description
18747 \begin_inset Flex Code
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751 HTMLAttr
18752 \end_layout
18753
18754 \end_inset
18755
18756  [
18757 \begin_inset Flex Code
18758 status collapsed
18759
18760 \begin_layout Plain Layout
18761 文字列
18762 \end_layout
18763
18764 \end_inset
18765
18766 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 class=`mydiv'
18772 \end_layout
18773
18774 \end_inset
18775
18776 」のようなものです。既定においては、\SpecialChar LyX
18777 は「
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 class=`レイアウト名'
18783 \end_layout
18784
18785 \end_inset
18786
18787 」と出力します。ここで
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 レイアウト名
18793 \end_layout
18794
18795 \end_inset
18796
18797 は、レイアウトの\SpecialChar LyX
18798 名であり、chapterのように小文字で記述します。
18799 \end_layout
18800
18801 \begin_layout Description
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 HTMLForceCSS
18807 \end_layout
18808
18809 \end_inset
18810
18811  [
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816
18817 \emph on
18818 0
18819 \emph default
18820 ,1
18821 \end_layout
18822
18823 \end_inset
18824
18825 ] 
18826 \begin_inset Flex Code
18827 status collapsed
18828
18829 \begin_layout Plain Layout
18830 HTMLStyle
18831 \end_layout
18832
18833 \end_inset
18834
18835 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
18836 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
18837 \begin_inset Flex Code
18838 status collapsed
18839
18840 \begin_layout Plain Layout
18841 1
18842 \end_layout
18843
18844 \end_inset
18845
18846 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 0
18852 \end_layout
18853
18854 \end_inset
18855
18856 です。
18857 \end_layout
18858
18859 \begin_layout Description
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 HTMLItem
18865 \end_layout
18866
18867 \end_inset
18868
18869  [
18870 \begin_inset Flex Code
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874 文字列
18875 \end_layout
18876
18877 \end_inset
18878
18879 ] 環境の段落に使用されるタグ。上記各例の
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 itemtag
18885 \end_layout
18886
18887 \end_inset
18888
18889 を置き換えます。既定値は
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 div
18895 \end_layout
18896
18897 \end_inset
18898
18899 です。
18900 \end_layout
18901
18902 \begin_layout Description
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 HTMLItemAttr
18908 \end_layout
18909
18910 \end_inset
18911
18912  [
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 文字列
18918 \end_layout
18919
18920 \end_inset
18921
18922 ] itemタグの属性。既定値は
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 class=`レイアウト名_item'
18928 \end_layout
18929
18930 \end_inset
18931
18932 です。ここには、様式情報は含まれては
18933 \emph on
18934 なりません
18935 \emph default
18936 。その目的のためには、
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941 HTMLStyle
18942 \end_layout
18943
18944 \end_inset
18945
18946 を使用してください。
18947 \end_layout
18948
18949 \begin_layout Description
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 HTMLLabel
18955 \end_layout
18956
18957 \end_inset
18958
18959  [
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 文字列
18965 \end_layout
18966
18967 \end_inset
18968
18969 ] 段落と項目ラベルに使用されるタグ。上記各例の
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 labeltag
18975 \end_layout
18976
18977 \end_inset
18978
18979 を置き換えます。
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 LabelType
18985 \end_layout
18986
18987 \end_inset
18988
18989
18990 \begin_inset Flex Code
18991 status collapsed
18992
18993 \begin_layout Plain Layout
18994 Top_Environment
18995 \end_layout
18996
18997 \end_inset
18998
18999
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 Centered_Top_Environment
19005 \end_layout
19006
19007 \end_inset
19008
19009 の時は、既定値は
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 div
19015 \end_layout
19016
19017 \end_inset
19018
19019 ですが、それ以外の時の既定値は
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 span
19025 \end_layout
19026
19027 \end_inset
19028
19029 です。
19030 \end_layout
19031
19032 \begin_layout Description
19033 \begin_inset Flex Code
19034 status collapsed
19035
19036 \begin_layout Plain Layout
19037 HTMLLabelAttr
19038 \end_layout
19039
19040 \end_inset
19041
19042  [
19043 \begin_inset Flex Code
19044 status collapsed
19045
19046 \begin_layout Plain Layout
19047 文字列
19048 \end_layout
19049
19050 \end_inset
19051
19052 ] labelタグの属性。既定値は
19053 \begin_inset Flex Code
19054 status collapsed
19055
19056 \begin_layout Plain Layout
19057 class=`レイアウト名_label'
19058 \end_layout
19059
19060 \end_inset
19061
19062 です。ここには、様式情報は含まれては
19063 \emph on
19064 なりません
19065 \emph default
19066 。その目的のためには、
19067 \begin_inset Flex Code
19068 status collapsed
19069
19070 \begin_layout Plain Layout
19071 HTMLStyle
19072 \end_layout
19073
19074 \end_inset
19075
19076 を使用してください。
19077 \end_layout
19078
19079 \begin_layout Description
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 HTMLLabelFirst
19085 \end_layout
19086
19087 \end_inset
19088
19089  [
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094
19095 \emph on
19096 0
19097 \emph default
19098 ,1
19099 \end_layout
19100
19101 \end_inset
19102
19103 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19104 tion環境の中で、
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 `<dt>\SpecialChar ldots
19110 </dt><dd>\SpecialChar ldots
19111 </dd>
19112 \end_layout
19113
19114 \end_inset
19115
19116 という形を得るために使用されます。既定値は
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 0
19122 \end_layout
19123
19124 \end_inset
19125
19126 で、labelタグはitemタグの中に出力されます。
19127 \end_layout
19128
19129 \begin_layout Description
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 HTMLPreamble
19135 \end_layout
19136
19137 \end_inset
19138
19139  この様式が使用されたときに、
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 <head>
19145 \end_layout
19146
19147 \end_inset
19148
19149 セクションに出力される情報。これは、たとえば、
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 onclick
19155 \end_layout
19156
19157 \end_inset
19158
19159 ハンドラを定義するために
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 <script>
19165 \end_layout
19166
19167 \end_inset
19168
19169 ブロックをインクルードするのに使用することができます。
19170 \end_layout
19171
19172 \begin_layout Description
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 HTMLStyle
19178 \end_layout
19179
19180 \end_inset
19181
19182   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 <style>
19188 \end_layout
19189
19190 \end_inset
19191
19192 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19193 \begin_inset Flex Code
19194 status collapsed
19195
19196 \begin_layout Plain Layout
19197 EndHTMLStyle
19198 \end_layout
19199
19200 \end_inset
19201
19202 で閉じなくてはなりません。
19203 \end_layout
19204
19205 \begin_layout Description
19206 \begin_inset Flex Code
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210 HTMLTag
19211 \end_layout
19212
19213 \end_inset
19214
19215  [
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 文字列
19221 \end_layout
19222
19223 \end_inset
19224
19225 ] 主幹ラベルに使用されるタグ。上記各例の
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 tag
19231 \end_layout
19232
19233 \end_inset
19234
19235 を置き換えます。既定値は
19236 \begin_inset Flex Code
19237 status collapsed
19238
19239 \begin_layout Plain Layout
19240 div
19241 \end_layout
19242
19243 \end_inset
19244
19245 です。
19246 \end_layout
19247
19248 \begin_layout Description
19249 \begin_inset Flex Code
19250 status collapsed
19251
19252 \begin_layout Plain Layout
19253 HTMLTitle
19254 \end_layout
19255
19256 \end_inset
19257
19258  [
19259 \begin_inset Flex Code
19260 status collapsed
19261
19262 \begin_layout Plain Layout
19263
19264 \emph on
19265 0
19266 \emph default
19267 ,1
19268 \end_layout
19269
19270 \end_inset
19271
19272 ] この様式が、XHTMLファイルの
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 <title>
19278 \end_layout
19279
19280 \end_inset
19281
19282 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 stdtitle.inc
19288 \end_layout
19289
19290 \end_inset
19291
19292 ファイルでは、
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 title
19298 \end_layout
19299
19300 \end_inset
19301
19302 環境のこの項目を真に設定しています。
19303 \end_layout
19304
19305 \begin_layout Subsection
19306 差込枠レイアウトXHTML
19307 \end_layout
19308
19309 \begin_layout Standard
19310 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19311 \begin_inset Foot
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19316 ん。
19317 \end_layout
19318
19319 \end_inset
19320
19321 。ここでも、\SpecialChar LyX
19322 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19323 \end_layout
19324
19325 \begin_layout Standard
19326 \SpecialChar LyX
19327 が差込枠用に出力するXHTMLは、以下の形を取ります。
19328 \end_layout
19329
19330 \begin_layout LyX-Code
19331 <tag attr=
19332 \begin_inset Quotes erd
19333 \end_inset
19334
19335 value
19336 \begin_inset Quotes erd
19337 \end_inset
19338
19339 >
19340 \end_layout
19341
19342 \begin_layout LyX-Code
19343 <labeltag>ラベル</labeltag>
19344 \end_layout
19345
19346 \begin_layout LyX-Code
19347 <innertag attr=
19348 \begin_inset Quotes erd
19349 \end_inset
19350
19351 value
19352 \begin_inset Quotes erd
19353 \end_inset
19354
19355 >差込枠の内容。</innertag>
19356 \end_layout
19357
19358 \begin_layout LyX-Code
19359 </tag>
19360 \end_layout
19361
19362 \begin_layout Standard
19363 差込枠が多段落を許可している—つまり
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368 MultiPar
19369 \end_layout
19370
19371 \end_inset
19372
19373 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19374 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19375 \begin_inset Flex Code
19376 status collapsed
19377
19378 \begin_layout Plain Layout
19379 span
19380 \end_layout
19381
19382 \end_inset
19383
19384 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19385 す。
19386 \end_layout
19387
19388 \begin_layout Description
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 HTMLAttr
19394 \end_layout
19395
19396 \end_inset
19397
19398  [
19399 \begin_inset Flex Code
19400 status collapsed
19401
19402 \begin_layout Plain Layout
19403 文字列
19404 \end_layout
19405
19406 \end_inset
19407
19408 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 class=`myinset' onclick=`\SpecialChar ldots
19414 '
19415 \end_layout
19416
19417 \end_inset
19418
19419 」のようなものです。既定においては、\SpecialChar LyX
19420 は「
19421 \begin_inset Flex Code
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 class=`差込枠名'
19426 \end_layout
19427
19428 \end_inset
19429
19430 」と出力します。ここで
19431 \begin_inset Flex Code
19432 status collapsed
19433
19434 \begin_layout Plain Layout
19435 差込枠名
19436 \end_layout
19437
19438 \end_inset
19439
19440 は、差込枠の\SpecialChar LyX
19441 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19442 \end_layout
19443
19444 \begin_layout Description
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 HTMLForceCSS
19450 \end_layout
19451
19452 \end_inset
19453
19454  [
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459
19460 \emph on
19461 0
19462 \emph default
19463 ,1
19464 \end_layout
19465
19466 \end_inset
19467
19468 ] 
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 HTMLStyle
19474 \end_layout
19475
19476 \end_inset
19477
19478 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19479 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19480 \begin_inset Flex Code
19481 status collapsed
19482
19483 \begin_layout Plain Layout
19484 1
19485 \end_layout
19486
19487 \end_inset
19488
19489 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19490 \begin_inset Flex Code
19491 status collapsed
19492
19493 \begin_layout Plain Layout
19494 0
19495 \end_layout
19496
19497 \end_inset
19498
19499 です。
19500 \end_layout
19501
19502 \begin_layout Description
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 HTMLInnerAttr
19508 \end_layout
19509
19510 \end_inset
19511
19512  [
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 文字列
19518 \end_layout
19519
19520 \end_inset
19521
19522 ] innerタグの属性。既定値は
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 class=`差込枠名_inner'
19528 \end_layout
19529
19530 \end_inset
19531
19532 です。
19533 \end_layout
19534
19535 \begin_layout Description
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 HTMLInnerTag
19541 \end_layout
19542
19543 \end_inset
19544
19545  [
19546 \begin_inset Flex Code
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550 文字列
19551 \end_layout
19552
19553 \end_inset
19554
19555 ] innerタグです。上記各例の
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 innertag
19561 \end_layout
19562
19563 \end_inset
19564
19565 を置き換えます。既定値はなしです。
19566 \end_layout
19567
19568 \begin_layout Description
19569 \begin_inset Flex Code
19570 status collapsed
19571
19572 \begin_layout Plain Layout
19573 HTMLIsBlock
19574 \end_layout
19575
19576 \end_inset
19577
19578  [
19579 \begin_inset Flex Code
19580 status collapsed
19581
19582 \begin_layout Plain Layout
19583 0,
19584 \emph on
19585 1
19586 \end_layout
19587
19588 \end_inset
19589
19590 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19591 \end_layout
19592
19593 \begin_layout Description
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598 HTMLLabel
19599 \end_layout
19600
19601 \end_inset
19602
19603  [
19604 \begin_inset Flex Code
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608 文字列
19609 \end_layout
19610
19611 \end_inset
19612
19613 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚註用には
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618
19619 \backslash
19620 arabic{footnote}
19621 \end_layout
19622
19623 \end_inset
19624
19625 など。これは非必須であり、既定値はありません。
19626 \end_layout
19627
19628 \begin_layout Description
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 HTMLPreamble
19634 \end_layout
19635
19636 \end_inset
19637
19638  この様式が使用されたときに、
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 <head>
19644 \end_layout
19645
19646 \end_inset
19647
19648 セクションに出力される情報。これは、たとえば、
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 onclick
19654 \end_layout
19655
19656 \end_inset
19657
19658 ハンドラを定義するために
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 <script>
19664 \end_layout
19665
19666 \end_inset
19667
19668 ブロックをインクルードするのに使用することができます。
19669 \end_layout
19670
19671 \begin_layout Description
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 HTMLStyle
19677 \end_layout
19678
19679 \end_inset
19680
19681   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 <style>
19687 \end_layout
19688
19689 \end_inset
19690
19691 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19692 \end_layout
19693
19694 \begin_layout Description
19695 \begin_inset Flex Code
19696 status collapsed
19697
19698 \begin_layout Plain Layout
19699 HTMLTag
19700 \end_layout
19701
19702 \end_inset
19703
19704  [
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 文字列
19710 \end_layout
19711
19712 \end_inset
19713
19714 ] 主幹ラベルに使用されるタグ。上記各例の
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 tag
19720 \end_layout
19721
19722 \end_inset
19723
19724 を置き換えます。既定値は
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 MultiPar
19730 \end_layout
19731
19732 \end_inset
19733
19734 の設定に依存し、
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 MultiPar
19740 \end_layout
19741
19742 \end_inset
19743
19744 が真ならば
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 div
19750 \end_layout
19751
19752 \end_inset
19753
19754 、偽ならば
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 span
19760 \end_layout
19761
19762 \end_inset
19763
19764 です。
19765 \end_layout
19766
19767 \begin_layout Subsection
19768 フロートXHTML
19769 \end_layout
19770
19771 \begin_layout Standard
19772 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
19773 \end_layout
19774
19775 \begin_layout LyX-Code
19776 <tag attr=
19777 \begin_inset Quotes erd
19778 \end_inset
19779
19780 value
19781 \begin_inset Quotes erd
19782 \end_inset
19783
19784 >
19785 \end_layout
19786
19787 \begin_layout LyX-Code
19788 フロートの内容。
19789 \end_layout
19790
19791 \begin_layout LyX-Code
19792 </tag>
19793 \end_layout
19794
19795 \begin_layout Standard
19796 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
19797 きます。
19798 \end_layout
19799
19800 \begin_layout Description
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 HTMLAttr
19806 \end_layout
19807
19808 \end_inset
19809
19810  [
19811 \begin_inset Flex Code
19812 status collapsed
19813
19814 \begin_layout Plain Layout
19815 文字列
19816 \end_layout
19817
19818 \end_inset
19819
19820 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 class=`myfloat' onclick=`\SpecialChar ldots
19826 '
19827 \end_layout
19828
19829 \end_inset
19830
19831 」のようなものです。既定においては、\SpecialChar LyX
19832 は「
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 class=`float フロート-フロート型'
19838 \end_layout
19839
19840 \end_inset
19841
19842 」と出力します。ここで
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 フロート型
19848 \end_layout
19849
19850 \end_inset
19851
19852 は、フロート宣言で定義された(
19853 \begin_inset CommandInset ref
19854 LatexCommand ref
19855 reference "subsec:フロート"
19856
19857 \end_inset
19858
19859 参照)、この型のフロートの\SpecialChar LyX
19860 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
19861 \end_layout
19862
19863 \begin_layout Description
19864 \begin_inset Flex Code
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 HTMLStyle
19869 \end_layout
19870
19871 \end_inset
19872
19873   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 <style>
19879 \end_layout
19880
19881 \end_inset
19882
19883 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19884 \end_layout
19885
19886 \begin_layout Description
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 HTMLTag
19892 \end_layout
19893
19894 \end_inset
19895
19896  [
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 文字列
19902 \end_layout
19903
19904 \end_inset
19905
19906 ] このフロートに使用されるタグ。上記各例の
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 tag
19912 \end_layout
19913
19914 \end_inset
19915
19916 を置き換えます。既定値は
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 div
19922 \end_layout
19923
19924 \end_inset
19925
19926 であり、ほとんどの場合変更する必要はありません。
19927 \end_layout
19928
19929 \begin_layout Subsection
19930 書誌情報の整形
19931 \end_layout
19932
19933 \begin_layout Standard
19934 書誌情報は、
19935 \begin_inset Flex Code
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939 CiteFormat
19940 \end_layout
19941
19942 \end_inset
19943
19944 ブロックを使用して整形することができます。詳細については、
19945 \begin_inset CommandInset ref
19946 LatexCommand ref
19947 reference "subsec:引用書式指定"
19948
19949 \end_inset
19950
19951 を参照してください。
19952 \end_layout
19953
19954 \begin_layout Subsection
19955 \SpecialChar LyX
19956 が生成したCSS
19957 \end_layout
19958
19959 \begin_layout Standard
19960 \SpecialChar LyX
19961 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
19962
19963 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
19964 \end_layout
19965
19966 \begin_layout Standard
19967 \SpecialChar LyX
19968 は、現在のところ、
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 Font
19974 \end_layout
19975
19976 \end_inset
19977
19978 宣言で指定されている
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 Family
19984 \end_layout
19985
19986 \end_inset
19987
19988
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 Series
19994 \end_layout
19995
19996 \end_inset
19997
19998
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 Shape
20004 \end_layout
20005
20006 \end_inset
20007
20008
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 Size
20014 \end_layout
20015
20016 \end_inset
20017
20018 を利用して、フォント情報についてのみCSSを自動生成します(
20019 \begin_inset CommandInset ref
20020 LatexCommand ref
20021 reference "subsec:フォント指定"
20022
20023 \end_inset
20024
20025 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 Family Sans
20031 \end_layout
20032
20033 \end_inset
20034
20035 」は「
20036 \begin_inset Flex Code
20037 status collapsed
20038
20039 \begin_layout Plain Layout
20040 font-family: sans-serif
20041 \end_layout
20042
20043 \end_inset
20044
20045 」になります。\SpecialChar LyX
20046 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20047 \begin_inset Flex URL
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051
20052 src/FontInfo.cpp
20053 \end_layout
20054
20055 \end_inset
20056
20057
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 getSizeCSS()
20063 \end_layout
20064
20065 \end_inset
20066
20067 関数をご覧ください。
20068 \end_layout
20069
20070 \begin_layout Chapter
20071 外部素材を取り込む
20072 \begin_inset CommandInset label
20073 LatexCommand label
20074 name "chap:外部素材を取り込む"
20075
20076 \end_inset
20077
20078
20079 \end_layout
20080
20081 \begin_layout Standard
20082 \begin_inset Box Shadowbox
20083 position "t"
20084 hor_pos "c"
20085 has_inner_box 1
20086 inner_pos "t"
20087 use_parbox 0
20088 use_makebox 0
20089 width "100col%"
20090 special "none"
20091 height "1in"
20092 height_special "totalheight"
20093 thickness "0.4pt"
20094 separation "3pt"
20095 shadowsize "4pt"
20096 framecolor "black"
20097 backgroundcolor "none"
20098 status open
20099
20100 \begin_layout Plain Layout
20101 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20102 \end_layout
20103
20104 \end_inset
20105
20106
20107 \end_layout
20108
20109 \begin_layout Standard
20110 \SpecialChar LyX
20111 外部のソースから素材を使用する方法は、取扱説明書『
20112 \emph on
20113 埋込オブジェクト篇
20114 \emph default
20115 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20116 \end_layout
20117
20118 \begin_layout Section
20119 どのように機能するのか
20120 \end_layout
20121
20122 \begin_layout Standard
20123 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20124 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20125 は、Xfigの図や、様々
20126 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20127 \begin_inset Flex MenuItem
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 挿入\SpecialChar menuseparator
20132 ファイル\SpecialChar menuseparator
20133 外部素材
20134 \end_layout
20135
20136 \end_inset
20137
20138 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20139 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20140 の後の版に取り込むことができるようにしてくださることを希望します。
20141 \end_layout
20142
20143 \begin_layout Standard
20144 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20145 いることです。たとえば、
20146 \begin_inset Flex Code
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150 Xfig
20151 \end_layout
20152
20153 \end_inset
20154
20155 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 .fig
20161 \end_layout
20162
20163 \end_inset
20164
20165 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20166 \begin_inset Flex Code
20167 status collapsed
20168
20169 \begin_layout Plain Layout
20170 fig
20171 \end_layout
20172
20173 \end_inset
20174
20175 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20176 ファイルにそのままインクルードできるように、
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 transfig
20182 \end_layout
20183
20184 \end_inset
20185
20186 を呼び出してPostScriptファイルを生成します。この場合には、
20187 \begin_inset Flex Code
20188 status collapsed
20189
20190 \begin_layout Plain Layout
20191 .fig
20192 \end_layout
20193
20194 \end_inset
20195
20196 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20197 \end_layout
20198
20199 \begin_layout Standard
20200 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20201 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20202 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20203 の外部素材マネジメントは
20204 、\SpecialChar LyX
20205 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20206 \end_layout
20207
20208 \begin_layout Standard
20209 \SpecialChar LyX
20210 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20211 の場合には、\SpecialChar LyX
20212 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20213 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20214 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20215 できるようになるのです。
20216 \end_layout
20217
20218 \begin_layout Section
20219 外用ひな型設定ファイル
20220 \end_layout
20221
20222 \begin_layout Standard
20223 \SpecialChar LyX
20224 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20225 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20226 \begin_inset CommandInset ref
20227 LatexCommand ref
20228 reference "sec:セキュリティに関する論点"
20229
20230 \end_inset
20231
20232 のセキュリティに関する議論を読んでおいてください。
20233 \end_layout
20234
20235 \begin_layout Standard
20236 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20237 \end_layout
20238
20239 \begin_layout Standard
20240 外用ひな型は、
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 LyXDir/lib/external_templates
20246 \end_layout
20247
20248 \end_inset
20249
20250 ファイルで定義されています。自分用の版を
20251 \begin_inset Flex Code
20252 status collapsed
20253
20254 \begin_layout Plain Layout
20255 UserDir/external_templates
20256 \end_layout
20257
20258 \end_inset
20259
20260 に置くこともできます。
20261 \end_layout
20262
20263 \begin_layout Standard
20264 典型的なひな型は以下のようになります。
20265 \end_layout
20266
20267 \begin_layout LyX-Code
20268 Template XFig
20269 \end_layout
20270
20271 \begin_layout LyX-Code
20272 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20273 \end_layout
20274
20275 \begin_layout LyX-Code
20276 HelpText
20277 \end_layout
20278
20279 \begin_layout LyX-Code
20280 An XFig figure.
20281 \end_layout
20282
20283 \begin_layout LyX-Code
20284 HelpTextEnd
20285 \end_layout
20286
20287 \begin_layout LyX-Code
20288 InputFormat fig
20289 \end_layout
20290
20291 \begin_layout LyX-Code
20292 FileFilter "*.fig"
20293 \end_layout
20294
20295 \begin_layout LyX-Code
20296 AutomaticProduction true
20297 \end_layout
20298
20299 \begin_layout LyX-Code
20300 Transform Rotate
20301 \end_layout
20302
20303 \begin_layout LyX-Code
20304 Transform Resize
20305 \end_layout
20306
20307 \begin_layout LyX-Code
20308 Format LaTeX
20309 \end_layout
20310
20311 \begin_layout LyX-Code
20312 TransformCommand Rotate RotationLatexCommand
20313 \end_layout
20314
20315 \begin_layout LyX-Code
20316 TransformCommand Resize ResizeLatexCommand
20317 \end_layout
20318
20319 \begin_layout LyX-Code
20320 Product "$$RotateFront$$ResizeFront
20321 \end_layout
20322
20323 \begin_layout LyX-Code
20324          
20325 \backslash
20326
20327 \backslash
20328 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20329 \end_layout
20330
20331 \begin_layout LyX-Code
20332          $$ResizeBack$$RotateBack"
20333 \end_layout
20334
20335 \begin_layout LyX-Code
20336 UpdateFormat pstex
20337 \end_layout
20338
20339 \begin_layout LyX-Code
20340 UpdateResult "$$AbsPath$$Basename.pstex_t"
20341 \end_layout
20342
20343 \begin_layout LyX-Code
20344 Requirement "graphicx"
20345 \end_layout
20346
20347 \begin_layout LyX-Code
20348 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20349 \end_layout
20350
20351 \begin_layout LyX-Code
20352 ReferencedFile latex "$$AbsPath$$Basename.eps"
20353 \end_layout
20354
20355 \begin_layout LyX-Code
20356 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20357 \end_layout
20358
20359 \begin_layout LyX-Code
20360 FormatEnd
20361 \end_layout
20362
20363 \begin_layout LyX-Code
20364 Format PDFLaTeX
20365 \end_layout
20366
20367 \begin_layout LyX-Code
20368 TransformCommand Rotate RotationLatexCommand
20369 \end_layout
20370
20371 \begin_layout LyX-Code
20372 TransformCommand Resize ResizeLatexCommand
20373 \end_layout
20374
20375 \begin_layout LyX-Code
20376 Product "$$RotateFront$$ResizeFront
20377 \end_layout
20378
20379 \begin_layout LyX-Code
20380          
20381 \backslash
20382
20383 \backslash
20384 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20385 \end_layout
20386
20387 \begin_layout LyX-Code
20388          $$ResizeBack$$RotateBack"
20389 \end_layout
20390
20391 \begin_layout LyX-Code
20392 UpdateFormat pdftex
20393 \end_layout
20394
20395 \begin_layout LyX-Code
20396 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20397 \end_layout
20398
20399 \begin_layout LyX-Code
20400 Requirement "graphicx"
20401 \end_layout
20402
20403 \begin_layout LyX-Code
20404 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20405 \end_layout
20406
20407 \begin_layout LyX-Code
20408 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20409 \end_layout
20410
20411 \begin_layout LyX-Code
20412 FormatEnd
20413 \end_layout
20414
20415 \begin_layout LyX-Code
20416 Format Ascii
20417 \end_layout
20418
20419 \begin_layout LyX-Code
20420 Product "$$Contents(
20421 \backslash
20422 "$$AbsPath$$Basename.asc
20423 \backslash
20424 ")"
20425 \end_layout
20426
20427 \begin_layout LyX-Code
20428 UpdateFormat asciixfig
20429 \end_layout
20430
20431 \begin_layout LyX-Code
20432 UpdateResult "$$AbsPath$$Basename.asc"
20433 \end_layout
20434
20435 \begin_layout LyX-Code
20436 FormatEnd
20437 \end_layout
20438
20439 \begin_layout LyX-Code
20440 Format DocBook
20441 \end_layout
20442
20443 \begin_layout LyX-Code
20444 Product "<graphic fileref=
20445 \backslash
20446 "$$AbsOrRelPathMaster$$Basename.eps
20447 \backslash
20448 ">
20449 \end_layout
20450
20451 \begin_layout LyX-Code
20452          </graphic>"
20453 \end_layout
20454
20455 \begin_layout LyX-Code
20456 UpdateFormat eps
20457 \end_layout
20458
20459 \begin_layout LyX-Code
20460 UpdateResult "$$AbsPath$$Basename.eps"
20461 \end_layout
20462
20463 \begin_layout LyX-Code
20464 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20465 \end_layout
20466
20467 \begin_layout LyX-Code
20468 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20469 \end_layout
20470
20471 \begin_layout LyX-Code
20472 FormatEnd
20473 \end_layout
20474
20475 \begin_layout LyX-Code
20476 Product "[XFig: $$FName]"
20477 \end_layout
20478
20479 \begin_layout LyX-Code
20480 FormatEnd
20481 \end_layout
20482
20483 \begin_layout LyX-Code
20484 TemplateEnd
20485 \end_layout
20486
20487 \begin_layout Standard
20488 ご覧の通り、ひな型は
20489 \begin_inset Flex Code
20490 status collapsed
20491
20492 \begin_layout Plain Layout
20493 Template
20494 \end_layout
20495
20496 \end_inset
20497
20498  \SpecialChar ldots
20499  
20500 \begin_inset Flex Code
20501 status collapsed
20502
20503 \begin_layout Plain Layout
20504 TemplateEnd
20505 \end_layout
20506
20507 \end_inset
20508
20509 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20510 \begin_inset Flex Code
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514 Format
20515 \end_layout
20516
20517 \end_inset
20518
20519  \SpecialChar ldots
20520  
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525 FormatEnd
20526 \end_layout
20527
20528 \end_inset
20529
20530 部があります。
20531 \end_layout
20532
20533 \begin_layout Subsection
20534 ひな型のヘッダ
20535 \end_layout
20536
20537 \begin_layout Description
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 AutomaticProduction
20543 \begin_inset space ~
20544 \end_inset
20545
20546 true|false
20547 \end_layout
20548
20549 \end_inset
20550
20551  このひな型で扱うファイルを\SpecialChar LyX
20552 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20553 \end_layout
20554
20555 \begin_layout Description
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 FileFilter
20561 \begin_inset space ~
20562 \end_inset
20563
20564 <パターン>
20565 \end_layout
20566
20567 \end_inset
20568
20569  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 .obj
20575 \end_layout
20576
20577 \end_inset
20578
20579
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 .tgo
20585 \end_layout
20586
20587 \end_inset
20588
20589 があります)、「
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 *.{obj,tgo}
20595 \end_layout
20596
20597 \end_inset
20598
20599 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
20600 \end_layout
20601
20602 \begin_layout Description
20603 \begin_inset Flex Code
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 GuiName
20608 \begin_inset space ~
20609 \end_inset
20610
20611 <GUI名>
20612 \end_layout
20613
20614 \end_inset
20615
20616  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
20617 \end_layout
20618
20619 \begin_layout Description
20620 \begin_inset Flex Code
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 HelpText
20625 \begin_inset space ~
20626 \end_inset
20627
20628 <文章>
20629 \begin_inset space ~
20630 \end_inset
20631
20632 HelpTextEnd
20633 \end_layout
20634
20635 \end_inset
20636
20637  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
20638 ず現れなくてはなりません。
20639 \end_layout
20640
20641 \begin_layout Description
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 InputFormat
20647 \begin_inset space ~
20648 \end_inset
20649
20650 <書式>
20651 \end_layout
20652
20653 \end_inset
20654
20655  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
20656 が知っている書式名でなくてはなりません(
20657 \begin_inset CommandInset ref
20658 LatexCommand ref
20659 reference "sec:ファイル形式"
20660
20661 \end_inset
20662
20663 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 *
20669 \end_layout
20670
20671 \end_inset
20672
20673 」を使用してください。この場合、\SpecialChar LyX
20674 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
20675 \end_layout
20676
20677 \begin_layout Description
20678 \begin_inset Flex Code
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682 Template
20683 \begin_inset space ~
20684 \end_inset
20685
20686 <ID>
20687 \end_layout
20688
20689 \end_inset
20690
20691  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
20692 \end_layout
20693
20694 \begin_layout Description
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 Transform
20700 \begin_inset space ~
20701 \end_inset
20702
20703 Rotate|Resize|Clip|Extra
20704 \end_layout
20705
20706 \end_inset
20707
20708  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
20709 ログ中の対応するタブを使用可能にします。
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 Transform
20715 \end_layout
20716
20717 \end_inset
20718
20719 コマンド一つずつに応じて、
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 Format
20725 \end_layout
20726
20727 \end_inset
20728
20729 部に、対応する
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 TransformCommand
20735 \end_layout
20736
20737 \end_inset
20738
20739 コマンドか
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 TransformOption
20745 \end_layout
20746
20747 \end_inset
20748
20749 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
20750 \end_layout
20751
20752 \begin_layout Subsection
20753 \begin_inset Flex Code
20754 status collapsed
20755
20756 \begin_layout Plain Layout
20757 Format
20758 \end_layout
20759
20760 \end_inset
20761
20762
20763 \end_layout
20764
20765 \begin_layout Description
20766 \begin_inset Flex Code
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770 Format
20771 \begin_inset space ~
20772 \end_inset
20773
20774 LaTeX|PDFLaTeX|PlainText|DocBook
20775 \end_layout
20776
20777 \end_inset
20778
20779  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 Format
20785 \end_layout
20786
20787 \end_inset
20788
20789 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
20790 ようになります。
20791 \end_layout
20792
20793 \begin_layout Description
20794 \begin_inset Flex Code
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 Option
20799 \begin_inset space ~
20800 \end_inset
20801
20802 <名称>
20803 \begin_inset space ~
20804 \end_inset
20805
20806 <値>
20807 \end_layout
20808
20809 \end_inset
20810
20811  このコマンドは、
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 Product
20817 \end_layout
20818
20819 \end_inset
20820
20821 での代入に使うマクロ
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 $$<名称>
20827 \end_layout
20828
20829 \end_inset
20830
20831 を新たに定義します。
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 <値>
20837 \end_layout
20838
20839 \end_inset
20840
20841 自体にも代入マクロを使うことができます。
20842 \begin_inset Flex Code
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846 Product
20847 \end_layout
20848
20849 \end_inset
20850
20851
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 <値>
20857 \end_layout
20858
20859 \end_inset
20860
20861 を直接使用するよりも優れた点は、
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866 $$<名称>
20867 \end_layout
20868
20869 \end_inset
20870
20871 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
20872 \end_layout
20873
20874 \begin_layout Description
20875 \begin_inset Flex Code
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879 Product
20880 \begin_inset space ~
20881 \end_inset
20882
20883 <文>
20884 \end_layout
20885
20886 \end_inset
20887
20888  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
20889
20890 \end_layout
20891
20892 \begin_layout Description
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 Preamble
20898 \begin_inset space ~
20899 \end_inset
20900
20901 <名称>
20902 \end_layout
20903
20904 \end_inset
20905
20906  このコマンドは、\SpecialChar LaTeX
20907 プリアンブルに入れるプリアンブル片を指定します。これは
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 PreambleDef
20913 \end_layout
20914
20915 \end_inset
20916
20917  \SpecialChar ldots
20918  
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 PreambleDefEnd
20924 \end_layout
20925
20926 \end_inset
20927
20928 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
20929 \end_layout
20930
20931 \begin_layout Description
20932 \begin_inset Flex Code
20933 status collapsed
20934
20935 \begin_layout Plain Layout
20936 ReferencedFile
20937 \begin_inset space ~
20938 \end_inset
20939
20940 <書式>
20941 \begin_inset space ~
20942 \end_inset
20943
20944 <ファイル名>
20945 \end_layout
20946
20947 \end_inset
20948
20949  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
20950 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
20951 \end_layout
20952
20953 \begin_layout Description
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 Requirement
20959 \begin_inset space ~
20960 \end_inset
20961
20962 <package>
20963 \end_layout
20964
20965 \end_inset
20966
20967  必要とされる\SpecialChar LaTeX
20968 パッケージ名。パッケージは、\SpecialChar LaTeX
20969 プリアンブル中で
20970 \begin_inset Flex Code
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974
20975 \backslash
20976 usepackage{}
20977 \end_layout
20978
20979 \end_inset
20980
20981 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
20982 \end_layout
20983
20984 \begin_layout Description
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 TransformCommand
20990 \begin_inset space ~
20991 \end_inset
20992
20993 Rotate
20994 \begin_inset space ~
20995 \end_inset
20996
20997 RotationLatexCommand
20998 \end_layout
20999
21000 \end_inset
21001
21002  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21003 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21004 \end_layout
21005
21006 \begin_layout Description
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 TransformCommand
21012 \begin_inset space ~
21013 \end_inset
21014
21015 Resize
21016 \begin_inset space ~
21017 \end_inset
21018
21019 ResizeLatexCommand
21020 \end_layout
21021
21022 \end_inset
21023
21024  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21025 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21026 \end_layout
21027
21028 \begin_layout Description
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 TransformOption
21034 \begin_inset space ~
21035 \end_inset
21036
21037 Rotate
21038 \begin_inset space ~
21039 \end_inset
21040
21041 RotationLatexOption
21042 \end_layout
21043
21044 \end_inset
21045
21046  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21047 \end_layout
21048
21049 \begin_layout Description
21050 \begin_inset Flex Code
21051 status collapsed
21052
21053 \begin_layout Plain Layout
21054 TransformOption
21055 \begin_inset space ~
21056 \end_inset
21057
21058 Resize
21059 \begin_inset space ~
21060 \end_inset
21061
21062 ResizeLatexOption
21063 \end_layout
21064
21065 \end_inset
21066
21067  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21068 \end_layout
21069
21070 \begin_layout Description
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 TransformOption
21076 \begin_inset space ~
21077 \end_inset
21078
21079 Clip
21080 \begin_inset space ~
21081 \end_inset
21082
21083 ClipLatexOption
21084 \end_layout
21085
21086 \end_inset
21087
21088  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21089 \end_layout
21090
21091 \begin_layout Description
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096 TransformOption
21097 \begin_inset space ~
21098 \end_inset
21099
21100 Extra
21101 \begin_inset space ~
21102 \end_inset
21103
21104 ExtraLatexOption
21105 \end_layout
21106
21107 \end_inset
21108
21109  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21110 \end_layout
21111
21112 \begin_layout Description
21113 \begin_inset Flex Code
21114 status collapsed
21115
21116 \begin_layout Plain Layout
21117 UpdateFormat
21118 \begin_inset space ~
21119 \end_inset
21120
21121 <書式>
21122 \end_layout
21123
21124 \end_inset
21125
21126  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21127 が知っている書式名でなくてはなりません(
21128 \begin_inset Flex MenuItem
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 ツール\SpecialChar menuseparator
21133 設定\SpecialChar menuseparator
21134 ファイル処理\SpecialChar menuseparator
21135 ファイル書式
21136 \end_layout
21137
21138 \end_inset
21139
21140 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 pdf6
21146 \end_layout
21147
21148 \end_inset
21149
21150 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21151 \end_layout
21152
21153 \begin_layout Description
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 UpdateResult
21159 \begin_inset space ~
21160 \end_inset
21161
21162 <ファイル名>
21163 \end_layout
21164
21165 \end_inset
21166
21167  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21168 \end_layout
21169
21170 \begin_layout Subsection
21171 プリアンブルの定義
21172 \end_layout
21173
21174 \begin_layout Standard
21175 外用ひな型設定ファイルには、
21176 \begin_inset Flex Code
21177 status collapsed
21178
21179 \begin_layout Plain Layout
21180 PreambleDef
21181 \end_layout
21182
21183 \end_inset
21184
21185  \SpecialChar ldots
21186  
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 PreambleDefEnd
21192 \end_layout
21193
21194 \end_inset
21195
21196 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 Format
21202 \end_layout
21203
21204 \end_inset
21205
21206 部で使用することができます。
21207 \end_layout
21208
21209 \begin_layout Section
21210 代入機構
21211 \end_layout
21212
21213 \begin_layout Standard
21214 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21215 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21216 \end_layout
21217
21218 \begin_layout Standard
21219 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21220 \end_layout
21221
21222 \begin_layout Standard
21223 使用できるマクロは以下の通りです。
21224 \end_layout
21225
21226 \begin_layout Description
21227 \begin_inset Flex Code
21228 status collapsed
21229
21230 \begin_layout Plain Layout
21231 $$AbsOrRelPathMaster
21232 \end_layout
21233
21234 \end_inset
21235
21236  \SpecialChar LyX
21237 親文書への絶対ファイルパスないしは相対ファイルパス
21238 \end_layout
21239
21240 \begin_layout Description
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 $$AbsOrRelPathParent
21246 \end_layout
21247
21248 \end_inset
21249
21250  \SpecialChar LyX
21251 文書への絶対ファイルパスないしは相対ファイルパス
21252 \end_layout
21253
21254 \begin_layout Description
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 $$AbsPath
21260 \end_layout
21261
21262 \end_inset
21263
21264  絶対ファイルパス
21265 \end_layout
21266
21267 \begin_layout Description
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 $$Basename
21273 \end_layout
21274
21275 \end_inset
21276
21277  パスおよび拡張子を除いたファイル名
21278 \end_layout
21279
21280 \begin_layout Description
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 $$Contents(
21286 \begin_inset Quotes eld
21287 \end_inset
21288
21289 filename.ext
21290 \begin_inset Quotes erd
21291 \end_inset
21292
21293 )
21294 \end_layout
21295
21296 \end_inset
21297
21298  このマクロは、
21299 \begin_inset Flex Code
21300 status collapsed
21301
21302 \begin_layout Plain Layout
21303 filename.ext
21304 \end_layout
21305
21306 \end_inset
21307
21308 と云う名のファイルの中身を展開します。
21309 \end_layout
21310
21311 \begin_layout Description
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316 $$Extension
21317 \end_layout
21318
21319 \end_inset
21320
21321  ファイル拡張子(点を含む)
21322 \end_layout
21323
21324 \begin_layout Description
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329 $$pngOrjpg
21330 \end_layout
21331
21332 \end_inset
21333
21334  これは、ファイルがJPEG形式の場合は、文字列「jpg」となり、それ以外では文字列「png」となります。これは、PNG形式とJPEG形式の両方をサポートする出
21335 力形式に対して、不必要な変換を行うことを避けるのに役立ちます。事前設定されているラスター画像ひな形は、pdf\SpecialChar TeX
21336 出力形式に対してこのマクロを使用します。
21337 \end_layout
21338
21339 \begin_layout Description
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344 $$FName
21345 \end_layout
21346
21347 \end_inset
21348
21349  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21350 文書への絶対パスでも良いですし、相対パスでも構いません。
21351 \end_layout
21352
21353 \begin_layout Description
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 $$FPath
21359 \end_layout
21360
21361 \end_inset
21362
21363  
21364 \begin_inset Flex Code
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 $$FName
21369 \end_layout
21370
21371 \end_inset
21372
21373 のパス部分(\SpecialChar LyX
21374 文書への絶対パス名か相対パス名)
21375 \end_layout
21376
21377 \begin_layout Description
21378 \begin_inset Flex Code
21379 status collapsed
21380
21381 \begin_layout Plain Layout
21382 $$RelPathMaster
21383 \end_layout
21384
21385 \end_inset
21386
21387  \SpecialChar LyX
21388 親文書への相対ファイルパス
21389 \end_layout
21390
21391 \begin_layout Description
21392 \begin_inset Flex Code
21393 status collapsed
21394
21395 \begin_layout Plain Layout
21396 $$RelPathParent
21397 \end_layout
21398
21399 \end_inset
21400
21401  \SpecialChar LyX
21402 文書への相対ファイルパス
21403 \end_layout
21404
21405 \begin_layout Description
21406 \begin_inset Flex Code
21407 status collapsed
21408
21409 \begin_layout Plain Layout
21410 $$Sysdir
21411 \end_layout
21412
21413 \end_inset
21414
21415  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21416 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21417 \end_layout
21418
21419 \begin_layout Description
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 $$Tempname
21425 \end_layout
21426
21427 \end_inset
21428
21429  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21430 \end_layout
21431
21432 \begin_layout Standard
21433 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438 $$AbsPath$$Basename$$Extension
21439 \end_layout
21440
21441 \end_inset
21442
21443 のようにして作ることができます。
21444 \end_layout
21445
21446 \begin_layout Standard
21447 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 Transform
21453 \end_layout
21454
21455 \end_inset
21456
21457 コマンドと
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 TransformCommand
21463 \end_layout
21464
21465 \end_inset
21466
21467 コマンドが有効にされている場合、
21468 \begin_inset Flex Code
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 Product
21473 \end_layout
21474
21475 \end_inset
21476
21477 コマンドは、これらに加えて以下の代入もサポートします。
21478 \end_layout
21479
21480 \begin_layout Description
21481 \begin_inset Flex Code
21482 status collapsed
21483
21484 \begin_layout Plain Layout
21485 $$ResizeFront
21486 \end_layout
21487
21488 \end_inset
21489
21490  伸縮コマンドの前置部。
21491 \end_layout
21492
21493 \begin_layout Description
21494 \begin_inset Flex Code
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 $$ResizeBack
21499 \end_layout
21500
21501 \end_inset
21502
21503  伸縮コマンドの後置部。
21504 \end_layout
21505
21506 \begin_layout Description
21507 \begin_inset Flex Code
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511 $$RotateFront
21512 \end_layout
21513
21514 \end_inset
21515
21516  回転コマンドの前置部。
21517 \end_layout
21518
21519 \begin_layout Description
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 $$RotateBack
21525 \end_layout
21526
21527 \end_inset
21528
21529  回転コマンドの後置部。
21530 \end_layout
21531
21532 \begin_layout Standard
21533 \begin_inset Flex Code
21534 status collapsed
21535
21536 \begin_layout Plain Layout
21537 Option
21538 \end_layout
21539
21540 \end_inset
21541
21542 コマンドの値に入れる文字列では、
21543 \begin_inset Flex Code
21544 status collapsed
21545
21546 \begin_layout Plain Layout
21547 Transform
21548 \end_layout
21549
21550 \end_inset
21551
21552 コマンドと
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 TransformOption
21558 \end_layout
21559
21560 \end_inset
21561
21562 コマンドが有効にされていれば、以下の代入もサポートされます。
21563 \end_layout
21564
21565 \begin_layout Description
21566 \begin_inset Flex Code
21567 status collapsed
21568
21569 \begin_layout Plain Layout
21570 $$Clip
21571 \end_layout
21572
21573 \end_inset
21574
21575  切り抜きオプション。
21576 \end_layout
21577
21578 \begin_layout Description
21579 \begin_inset Flex Code
21580 status collapsed
21581
21582 \begin_layout Plain Layout
21583 $$Extra
21584 \end_layout
21585
21586 \end_inset
21587
21588  追加オプション。
21589 \end_layout
21590
21591 \begin_layout Description
21592 \begin_inset Flex Code
21593 status collapsed
21594
21595 \begin_layout Plain Layout
21596 $$Resize
21597 \end_layout
21598
21599 \end_inset
21600
21601  伸縮オプション。
21602 \end_layout
21603
21604 \begin_layout Description
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609 $$Rotate
21610 \end_layout
21611
21612 \end_inset
21613
21614  回転オプション。
21615 \end_layout
21616
21617 \begin_layout Standard
21618 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
21619 \end_layout
21620
21621 \begin_layout Enumerate
21622 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
21623 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
21624 \end_layout
21625
21626 \begin_layout Enumerate
21627 \SpecialChar LaTeX
21628 は、相対ファイル名に関して、\SpecialChar LyX
21629 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
21630 にとって相対ファイル名とは、常にこのファイル名が書か
21631 れている文書に対して相対的なものになります。\SpecialChar LaTeX
21632 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
21633 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
21634 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
21635 を選びさえすれば、これは\SpecialChar LyX
21636 が自動的に行ってくれます。
21637 \end_layout
21638
21639 \begin_layout Standard
21640 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
21641 \end_layout
21642
21643 \begin_layout Itemize
21644 絶対パスが必要とされるときには
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 $$AbsPath
21650 \end_layout
21651
21652 \end_inset
21653
21654 を使う。
21655 \end_layout
21656
21657 \begin_layout Itemize
21658 代入された文字列が、\SpecialChar LaTeX
21659 インプットの一種である場合には、
21660 \begin_inset Flex Code
21661 status collapsed
21662
21663 \begin_layout Plain Layout
21664 $$AbsOrRelPathMaster
21665 \end_layout
21666
21667 \end_inset
21668
21669 を使う。
21670 \end_layout
21671
21672 \begin_layout Itemize
21673 それ以外ならば、ユーザの選択を尊重するために
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 $$AbsOrRelPathParent
21679 \end_layout
21680
21681 \end_inset
21682
21683 を使う。
21684 \end_layout
21685
21686 \begin_layout Standard
21687 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
21688 \begin_inset Flex Code
21689 status collapsed
21690
21691 \begin_layout Plain Layout
21692 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21693 \end_layout
21694
21695 \end_inset
21696
21697 というコマンドがあります。この場合、
21698 \begin_inset Flex Code
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702 .pstex_t
21703 \end_layout
21704
21705 \end_inset
21706
21707 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
21708 \end_layout
21709
21710 \begin_layout Section
21711 セキュリティに関する論点
21712 \begin_inset CommandInset label
21713 LatexCommand label
21714 name "sec:セキュリティに関する論点"
21715
21716 \end_inset
21717
21718
21719 \end_layout
21720
21721 \begin_layout Standard
21722 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
21723 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
21724 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
21725 \end_layout
21726
21727 \begin_layout Standard
21728 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
21729 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
21730 せん。これは、外部プログラムが
21731 \begin_inset Flex Code
21732 status collapsed
21733
21734 \begin_layout Plain Layout
21735 system
21736 \end_layout
21737
21738 \end_inset
21739
21740 システムコールではなく、
21741 \begin_inset Flex Code
21742 status collapsed
21743
21744 \begin_layout Plain Layout
21745 execvp
21746 \end_layout
21747
21748 \end_inset
21749
21750 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
21751 \end_layout
21752
21753 \begin_layout Standard
21754 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
21755 できません。これは、\SpecialChar LyX
21756 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
21757 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
21758 \end_layout
21759
21760 \begin_layout Standard
21761 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
21762 うになるため、一般的には、統御下に置いた状態で
21763 \begin_inset Flex Code
21764 status collapsed
21765
21766 \begin_layout Plain Layout
21767 execvp
21768 \end_layout
21769
21770 \end_inset
21771
21772 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
21773 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
21774 \emph on
21775 間違いなく
21776 \emph default
21777 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
21778 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
21779 には、安全でないひな型は決して入っていません
21780
21781 \end_layout
21782
21783 \begin_layout Standard
21784 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
21785 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
21786 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
21787 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
21788 使用する前に、行うようにしてください。
21789 \end_layout
21790
21791 \begin_layout Chapter
21792 \start_of_appendix
21793 サポートされているレイアウト用\SpecialChar LyX
21794 関数一覧
21795 \begin_inset CommandInset label
21796 LatexCommand label
21797 name "chap:関数一覧"
21798
21799 \end_inset
21800
21801
21802 \end_layout
21803
21804 \begin_layout Standard
21805 \align center
21806 \begin_inset Tabular
21807 <lyxtabular version="3" rows="11" columns="8">
21808 <features tabularvalignment="middle">
21809 <column alignment="left" valignment="top">
21810 <column alignment="left" valignment="top">
21811 <column alignment="left" valignment="top">
21812 <column alignment="left" valignment="top">
21813 <column alignment="left" valignment="top">
21814 <column alignment="left" valignment="top">
21815 <column alignment="left" valignment="top">
21816 <column alignment="left" valignment="top">
21817 <row>
21818 <cell alignment="left" valignment="top" usebox="none">
21819 \begin_inset Text
21820
21821 \begin_layout Plain Layout
21822 accents
21823 \end_layout
21824
21825 \end_inset
21826 </cell>
21827 <cell alignment="left" valignment="top" usebox="none">
21828 \begin_inset Text
21829
21830 \begin_layout Plain Layout
21831 booktabs
21832 \end_layout
21833
21834 \end_inset
21835 </cell>
21836 <cell alignment="left" valignment="top" usebox="none">
21837 \begin_inset Text
21838
21839 \begin_layout Plain Layout
21840 feyn
21841 \end_layout
21842
21843 \end_inset
21844 </cell>
21845 <cell alignment="left" valignment="top" usebox="none">
21846 \begin_inset Text
21847
21848 \begin_layout Plain Layout
21849 listings
21850 \end_layout
21851
21852 \end_inset
21853 </cell>
21854 <cell alignment="center" valignment="top" usebox="none">
21855 \begin_inset Text
21856
21857 \begin_layout Plain Layout
21858 natbib
21859 \end_layout
21860
21861 \end_inset
21862 </cell>
21863 <cell alignment="center" valignment="top" usebox="none">
21864 \begin_inset Text
21865
21866 \begin_layout Plain Layout
21867 rotfloat
21868 \end_layout
21869
21870 \end_inset
21871 </cell>
21872 <cell alignment="center" valignment="top" usebox="none">
21873 \begin_inset Text
21874
21875 \begin_layout Plain Layout
21876 tfrupee
21877 \end_layout
21878
21879 \end_inset
21880 </cell>
21881 <cell alignment="center" valignment="top" usebox="none">
21882 \begin_inset Text
21883
21884 \begin_layout Plain Layout
21885 wasysym
21886 \end_layout
21887
21888 \end_inset
21889 </cell>
21890 </row>
21891 <row>
21892 <cell alignment="left" valignment="top" usebox="none">
21893 \begin_inset Text
21894
21895 \begin_layout Plain Layout
21896 amsbsy
21897 \end_layout
21898
21899 \end_inset
21900 </cell>
21901 <cell alignment="left" valignment="top" usebox="none">
21902 \begin_inset Text
21903
21904 \begin_layout Plain Layout
21905 calc
21906 \end_layout
21907
21908 \end_inset
21909 </cell>
21910 <cell alignment="left" valignment="top" usebox="none">
21911 \begin_inset Text
21912
21913 \begin_layout Plain Layout
21914 fixltx2e
21915 \end_layout
21916
21917 \end_inset
21918 </cell>
21919 <cell alignment="left" valignment="top" usebox="none">
21920 \begin_inset Text
21921
21922 \begin_layout Plain Layout
21923 longtable
21924 \end_layout
21925
21926 \end_inset
21927 </cell>
21928 <cell alignment="center" valignment="top" usebox="none">
21929 \begin_inset Text
21930
21931 \begin_layout Plain Layout
21932 nomencl
21933 \end_layout
21934
21935 \end_inset
21936 </cell>
21937 <cell alignment="center" valignment="top" usebox="none">
21938 \begin_inset Text
21939
21940 \begin_layout Plain Layout
21941 rsphrase
21942 \end_layout
21943
21944 \end_inset
21945 </cell>
21946 <cell alignment="center" valignment="top" usebox="none">
21947 \begin_inset Text
21948
21949 \begin_layout Plain Layout
21950 tipa
21951 \end_layout
21952
21953 \end_inset
21954 </cell>
21955 <cell alignment="center" valignment="top" usebox="none">
21956 \begin_inset Text
21957
21958 \begin_layout Plain Layout
21959 wrapfig
21960 \end_layout
21961
21962 \end_inset
21963 </cell>
21964 </row>
21965 <row>
21966 <cell alignment="left" valignment="top" usebox="none">
21967 \begin_inset Text
21968
21969 \begin_layout Plain Layout
21970 amscd
21971 \end_layout
21972
21973 \end_inset
21974 </cell>
21975 <cell alignment="left" valignment="top" usebox="none">
21976 \begin_inset Text
21977
21978 \begin_layout Plain Layout
21979 CJK
21980 \end_layout
21981
21982 \end_inset
21983 </cell>
21984 <cell alignment="left" valignment="top" usebox="none">
21985 \begin_inset Text
21986
21987 \begin_layout Plain Layout
21988 float
21989 \end_layout
21990
21991 \end_inset
21992 </cell>
21993 <cell alignment="left" valignment="top" usebox="none">
21994 \begin_inset Text
21995
21996 \begin_layout Plain Layout
21997 lyxskak
21998 \end_layout
21999
22000 \end_inset
22001 </cell>
22002 <cell alignment="center" valignment="top" usebox="none">
22003 \begin_inset Text
22004
22005 \begin_layout Plain Layout
22006 pdfcolmk
22007 \end_layout
22008
22009 \end_inset
22010 </cell>
22011 <cell alignment="center" valignment="top" usebox="none">
22012 \begin_inset Text
22013
22014 \begin_layout Plain Layout
22015 setspace
22016 \end_layout
22017
22018 \end_inset
22019 </cell>
22020 <cell alignment="center" valignment="top" usebox="none">
22021 \begin_inset Text
22022
22023 \begin_layout Plain Layout
22024 tipx
22025 \end_layout
22026
22027 \end_inset
22028 </cell>
22029 <cell alignment="center" valignment="top" usebox="none">
22030 \begin_inset Text
22031
22032 \begin_layout Plain Layout
22033 xargs
22034 \end_layout
22035
22036 \end_inset
22037 </cell>
22038 </row>
22039 <row>
22040 <cell alignment="left" valignment="top" usebox="none">
22041 \begin_inset Text
22042
22043 \begin_layout Plain Layout
22044 amsmath
22045 \end_layout
22046
22047 \end_inset
22048 </cell>
22049 <cell alignment="left" valignment="top" usebox="none">
22050 \begin_inset Text
22051
22052 \begin_layout Plain Layout
22053 color
22054 \end_layout
22055
22056 \end_inset
22057 </cell>
22058 <cell alignment="left" valignment="top" usebox="none">
22059 \begin_inset Text
22060
22061 \begin_layout Plain Layout
22062 framed
22063 \end_layout
22064
22065 \end_inset
22066 </cell>
22067 <cell alignment="left" valignment="top" usebox="none">
22068 \begin_inset Text
22069
22070 \begin_layout Plain Layout
22071 makeidx
22072 \end_layout
22073
22074 \end_inset
22075 </cell>
22076 <cell alignment="center" valignment="top" usebox="none">
22077 \begin_inset Text
22078
22079 \begin_layout Plain Layout
22080 pdfpages
22081 \end_layout
22082
22083 \end_inset
22084 </cell>
22085 <cell alignment="center" valignment="top" usebox="none">
22086 \begin_inset Text
22087
22088 \begin_layout Plain Layout
22089 shapepar
22090 \end_layout
22091
22092 \end_inset
22093 </cell>
22094 <cell alignment="center" valignment="top" usebox="none">
22095 \begin_inset Text
22096
22097 \begin_layout Plain Layout
22098 tone
22099 \end_layout
22100
22101 \end_inset
22102 </cell>
22103 <cell alignment="center" valignment="top" usebox="none">
22104 \begin_inset Text
22105
22106 \begin_layout Plain Layout
22107 xcolor
22108 \end_layout
22109
22110 \end_inset
22111 </cell>
22112 </row>
22113 <row>
22114 <cell alignment="left" valignment="top" usebox="none">
22115 \begin_inset Text
22116
22117 \begin_layout Plain Layout
22118 amssymb
22119 \end_layout
22120
22121 \end_inset
22122 </cell>
22123 <cell alignment="left" valignment="top" usebox="none">
22124 \begin_inset Text
22125
22126 \begin_layout Plain Layout
22127 covington
22128 \end_layout
22129
22130 \end_inset
22131 </cell>
22132 <cell alignment="left" valignment="top" usebox="none">
22133 \begin_inset Text
22134
22135 \begin_layout Plain Layout
22136 graphicx
22137 \end_layout
22138
22139 \end_inset
22140 </cell>
22141 <cell alignment="left" valignment="top" usebox="none">
22142 \begin_inset Text
22143
22144 \begin_layout Plain Layout
22145 marvosym
22146 \end_layout
22147
22148 \end_inset
22149 </cell>
22150 <cell alignment="center" valignment="top" usebox="none">
22151 \begin_inset Text
22152
22153 \begin_layout Plain Layout
22154 pifont
22155 \end_layout
22156
22157 \end_inset
22158 </cell>
22159 <cell alignment="center" valignment="top" usebox="none">
22160 \begin_inset Text
22161
22162 \begin_layout Plain Layout
22163 slashed
22164 \end_layout
22165
22166 \end_inset
22167 </cell>
22168 <cell alignment="center" valignment="top" usebox="none">
22169 \begin_inset Text
22170
22171 \begin_layout Plain Layout
22172 txfonts
22173 \end_layout
22174
22175 \end_inset
22176 </cell>
22177 <cell alignment="center" valignment="top" usebox="none">
22178 \begin_inset Text
22179
22180 \begin_layout Plain Layout
22181 xy
22182 \end_layout
22183
22184 \end_inset
22185 </cell>
22186 </row>
22187 <row>
22188 <cell alignment="left" valignment="top" usebox="none">
22189 \begin_inset Text
22190
22191 \begin_layout Plain Layout
22192 amstext
22193 \end_layout
22194
22195 \end_inset
22196 </cell>
22197 <cell alignment="left" valignment="top" usebox="none">
22198 \begin_inset Text
22199
22200 \begin_layout Plain Layout
22201 csquotes
22202 \end_layout
22203
22204 \end_inset
22205 </cell>
22206 <cell alignment="left" valignment="top" usebox="none">
22207 \begin_inset Text
22208
22209 \begin_layout Plain Layout
22210 hhline
22211 \end_layout
22212
22213 \end_inset
22214 </cell>
22215 <cell alignment="left" valignment="top" usebox="none">
22216 \begin_inset Text
22217
22218 \begin_layout Plain Layout
22219 mathdesign
22220 \end_layout
22221
22222 \end_inset
22223 </cell>
22224 <cell alignment="center" valignment="top" usebox="none">
22225 \begin_inset Text
22226
22227 \begin_layout Plain Layout
22228 pmboxdraw
22229 \end_layout
22230
22231 \end_inset
22232 </cell>
22233 <cell alignment="center" valignment="top" usebox="none">
22234 \begin_inset Text
22235
22236 \begin_layout Plain Layout
22237 soul
22238 \end_layout
22239
22240 \end_inset
22241 </cell>
22242 <cell alignment="center" valignment="top" usebox="none">
22243 \begin_inset Text
22244
22245 \begin_layout Plain Layout
22246 ulem
22247 \end_layout
22248
22249 \end_inset
22250 </cell>
22251 <cell alignment="center" valignment="top" usebox="none">
22252 \begin_inset Text
22253
22254 \begin_layout Plain Layout
22255 yhmath
22256 \end_layout
22257
22258 \end_inset
22259 </cell>
22260 </row>
22261 <row>
22262 <cell alignment="left" valignment="top" usebox="none">
22263 \begin_inset Text
22264
22265 \begin_layout Plain Layout
22266 amsthm
22267 \end_layout
22268
22269 \end_inset
22270 </cell>
22271 <cell alignment="left" valignment="top" usebox="none">
22272 \begin_inset Text
22273
22274 \begin_layout Plain Layout
22275 dvipost
22276 \end_layout
22277
22278 \end_inset
22279 </cell>
22280 <cell alignment="left" valignment="top" usebox="none">
22281 \begin_inset Text
22282
22283 \begin_layout Plain Layout
22284 hyperref
22285 \end_layout
22286
22287 \end_inset
22288 </cell>
22289 <cell alignment="left" valignment="top" usebox="none">
22290 \begin_inset Text
22291
22292 \begin_layout Plain Layout
22293 mathdots
22294 \end_layout
22295
22296 \end_inset
22297 </cell>
22298 <cell alignment="center" valignment="top" usebox="none">
22299 \begin_inset Text
22300
22301 \begin_layout Plain Layout
22302 polyglossia
22303 \end_layout
22304
22305 \end_inset
22306 </cell>
22307 <cell alignment="center" valignment="top" usebox="none">
22308 \begin_inset Text
22309
22310 \begin_layout Plain Layout
22311 splitidx
22312 \end_layout
22313
22314 \end_inset
22315 </cell>
22316 <cell alignment="center" valignment="top" usebox="none">
22317 \begin_inset Text
22318
22319 \begin_layout Plain Layout
22320 undertilde
22321 \end_layout
22322
22323 \end_inset
22324 </cell>
22325 <cell alignment="center" valignment="top" usebox="none">
22326 \begin_inset Text
22327
22328 \begin_layout Plain Layout
22329
22330 \end_layout
22331
22332 \end_inset
22333 </cell>
22334 </row>
22335 <row>
22336 <cell alignment="left" valignment="top" usebox="none">
22337 \begin_inset Text
22338
22339 \begin_layout Plain Layout
22340 array
22341 \end_layout
22342
22343 \end_inset
22344 </cell>
22345 <cell alignment="left" valignment="top" usebox="none">
22346 \begin_inset Text
22347
22348 \begin_layout Plain Layout
22349 endnotes
22350 \end_layout
22351
22352 \end_inset
22353 </cell>
22354 <cell alignment="left" valignment="top" usebox="none">
22355 \begin_inset Text
22356
22357 \begin_layout Plain Layout
22358 ifsym
22359 \end_layout
22360
22361 \end_inset
22362 </cell>
22363 <cell alignment="left" valignment="top" usebox="none">
22364 \begin_inset Text
22365
22366 \begin_layout Plain Layout
22367 mathrsfs
22368 \end_layout
22369
22370 \end_inset
22371 </cell>
22372 <cell alignment="center" valignment="top" usebox="none">
22373 \begin_inset Text
22374
22375 \begin_layout Plain Layout
22376 prettyref
22377 \end_layout
22378
22379 \end_inset
22380 </cell>
22381 <cell alignment="center" valignment="top" usebox="none">
22382 \begin_inset Text
22383
22384 \begin_layout Plain Layout
22385 subfig
22386 \end_layout
22387
22388 \end_inset
22389 </cell>
22390 <cell alignment="center" valignment="top" usebox="none">
22391 \begin_inset Text
22392
22393 \begin_layout Plain Layout
22394 units
22395 \end_layout
22396
22397 \end_inset
22398 </cell>
22399 <cell alignment="center" valignment="top" usebox="none">
22400 \begin_inset Text
22401
22402 \begin_layout Plain Layout
22403
22404 \end_layout
22405
22406 \end_inset
22407 </cell>
22408 </row>
22409 <row>
22410 <cell alignment="left" valignment="top" usebox="none">
22411 \begin_inset Text
22412
22413 \begin_layout Plain Layout
22414 ascii
22415 \end_layout
22416
22417 \end_inset
22418 </cell>
22419 <cell alignment="left" valignment="top" usebox="none">
22420 \begin_inset Text
22421
22422 \begin_layout Plain Layout
22423 enumitem
22424 \end_layout
22425
22426 \end_inset
22427 </cell>
22428 <cell alignment="left" valignment="top" usebox="none">
22429 \begin_inset Text
22430
22431 \begin_layout Plain Layout
22432 ifthen
22433 \end_layout
22434
22435 \end_inset
22436 </cell>
22437 <cell alignment="left" valignment="top" usebox="none">
22438 \begin_inset Text
22439
22440 \begin_layout Plain Layout
22441 mhchem
22442 \end_layout
22443
22444 \end_inset
22445 </cell>
22446 <cell alignment="center" valignment="top" usebox="none">
22447 \begin_inset Text
22448
22449 \begin_layout Plain Layout
22450 pxfonts
22451 \end_layout
22452
22453 \end_inset
22454 </cell>
22455 <cell alignment="center" valignment="top" usebox="none">
22456 \begin_inset Text
22457
22458 \begin_layout Plain Layout
22459 subscript
22460 \end_layout
22461
22462 \end_inset
22463 </cell>
22464 <cell alignment="center" valignment="top" usebox="none">
22465 \begin_inset Text
22466
22467 \begin_layout Plain Layout
22468 url
22469 \end_layout
22470
22471 \end_inset
22472 </cell>
22473 <cell alignment="center" valignment="top" usebox="none">
22474 \begin_inset Text
22475
22476 \begin_layout Plain Layout
22477
22478 \end_layout
22479
22480 \end_inset
22481 </cell>
22482 </row>
22483 <row>
22484 <cell alignment="left" valignment="top" usebox="none">
22485 \begin_inset Text
22486
22487 \begin_layout Plain Layout
22488 bbding
22489 \end_layout
22490
22491 \end_inset
22492 </cell>
22493 <cell alignment="left" valignment="top" usebox="none">
22494 \begin_inset Text
22495
22496 \begin_layout Plain Layout
22497 esint
22498 \end_layout
22499
22500 \end_inset
22501 </cell>
22502 <cell alignment="left" valignment="top" usebox="none">
22503 \begin_inset Text
22504
22505 \begin_layout Plain Layout
22506 jurabib
22507 \end_layout
22508
22509 \end_inset
22510 </cell>
22511 <cell alignment="left" valignment="top" usebox="none">
22512 \begin_inset Text
22513
22514 \begin_layout Plain Layout
22515 multicol
22516 \end_layout
22517
22518 \end_inset
22519 </cell>
22520 <cell alignment="center" valignment="top" usebox="none">
22521 \begin_inset Text
22522
22523 \begin_layout Plain Layout
22524 refstyle
22525 \end_layout
22526
22527 \end_inset
22528 </cell>
22529 <cell alignment="center" valignment="top" usebox="none">
22530 \begin_inset Text
22531
22532 \begin_layout Plain Layout
22533 textcomp
22534 \end_layout
22535
22536 \end_inset
22537 </cell>
22538 <cell alignment="center" valignment="top" usebox="none">
22539 \begin_inset Text
22540
22541 \begin_layout Plain Layout
22542 varioref
22543 \end_layout
22544
22545 \end_inset
22546 </cell>
22547 <cell alignment="center" valignment="top" usebox="none">
22548 \begin_inset Text
22549
22550 \begin_layout Plain Layout
22551
22552 \end_layout
22553
22554 \end_inset
22555 </cell>
22556 </row>
22557 <row>
22558 <cell alignment="center" valignment="top" usebox="none">
22559 \begin_inset Text
22560
22561 \begin_layout Plain Layout
22562 bm
22563 \end_layout
22564
22565 \end_inset
22566 </cell>
22567 <cell alignment="center" valignment="top" usebox="none">
22568 \begin_inset Text
22569
22570 \begin_layout Plain Layout
22571 fancybox
22572 \end_layout
22573
22574 \end_inset
22575 </cell>
22576 <cell alignment="center" valignment="top" usebox="none">
22577 \begin_inset Text
22578
22579 \begin_layout Plain Layout
22580 latexsym
22581 \end_layout
22582
22583 \end_inset
22584 </cell>
22585 <cell alignment="center" valignment="top" usebox="none">
22586 \begin_inset Text
22587
22588 \begin_layout Plain Layout
22589 multirow
22590 \end_layout
22591
22592 \end_inset
22593 </cell>
22594 <cell alignment="center" valignment="top" usebox="none">
22595 \begin_inset Text
22596
22597 \begin_layout Plain Layout
22598 rotating
22599 \end_layout
22600
22601 \end_inset
22602 </cell>
22603 <cell alignment="center" valignment="top" usebox="none">
22604 \begin_inset Text
22605
22606 \begin_layout Plain Layout
22607 textgreek
22608 \end_layout
22609
22610 \end_inset
22611 </cell>
22612 <cell alignment="center" valignment="top" usebox="none">
22613 \begin_inset Text
22614
22615 \begin_layout Plain Layout
22616 verbatim
22617 \end_layout
22618
22619 \end_inset
22620 </cell>
22621 <cell alignment="center" valignment="top" usebox="none">
22622 \begin_inset Text
22623
22624 \begin_layout Plain Layout
22625
22626 \end_layout
22627
22628 \end_inset
22629 </cell>
22630 </row>
22631 </lyxtabular>
22632
22633 \end_inset
22634
22635
22636 \end_layout
22637
22638 \begin_layout Chapter
22639 レイアウトで使用できる色名
22640 \begin_inset CommandInset label
22641 LatexCommand label
22642 name "chap:色名"
22643
22644 \end_inset
22645
22646
22647 \end_layout
22648
22649 \begin_layout Standard
22650 ここに列挙されている色は標準色であり、\SpecialChar LyX
22651 設定で調整できるものです。
22652 \end_layout
22653
22654 \begin_layout Description
22655 none
22656 \series medium
22657  
22658 \series default
22659 特定の色ではありません – 透明か既定色です
22660 \end_layout
22661
22662 \begin_layout Description
22663 black
22664 \end_layout
22665
22666 \begin_layout Description
22667 white
22668 \end_layout
22669
22670 \begin_layout Description
22671 red
22672 \end_layout
22673
22674 \begin_layout Description
22675 green
22676 \end_layout
22677
22678 \begin_layout Description
22679 blue
22680 \end_layout
22681
22682 \begin_layout Description
22683 cyan
22684 \end_layout
22685
22686 \begin_layout Description
22687 magenta
22688 \end_layout
22689
22690 \begin_layout Description
22691 yellow
22692 \end_layout
22693
22694 \begin_layout Description
22695 added_space 空白マーカ色
22696 \end_layout
22697
22698 \begin_layout Description
22699 addedtext 追加された文章色
22700 \end_layout
22701
22702 \begin_layout Description
22703 appendix 付録マーカ色
22704 \end_layout
22705
22706 \begin_layout Description
22707 background 背景色
22708 \end_layout
22709
22710 \begin_layout Description
22711 bottomarea 下部領域色
22712 \end_layout
22713
22714 \begin_layout Description
22715 branchlabel 派生枝ラベル色
22716 \end_layout
22717
22718 \begin_layout Description
22719 buttonbg ボタンの背景色
22720 \end_layout
22721
22722 \begin_layout Description
22723 buttonhoverbg フォーカスを得ているボタンの背景色
22724 \end_layout
22725
22726 \begin_layout Description
22727 buttonframe 差込枠の縁色
22728 \end_layout
22729
22730 \begin_layout Description
22731 changebar 変更バー色
22732 \end_layout
22733
22734 \begin_layout Description
22735 changedtextauthor1 変更された文章:第1著者の色
22736 \end_layout
22737
22738 \begin_layout Description
22739 changedtextauthor2 変更された文章:第2著者の色
22740 \end_layout
22741
22742 \begin_layout Description
22743 changedtextauthor3 変更された文章:第3著者の色
22744 \end_layout
22745
22746 \begin_layout Description
22747 changedtextauthor4 変更された文章:第4著者の色
22748 \end_layout
22749
22750 \begin_layout Description
22751 changedtextauthor5 変更された文章:第5著者の色
22752 \end_layout
22753
22754 \begin_layout Description
22755 collapsable_inset_frame 畳み込み可能枠の縁色
22756 \end_layout
22757
22758 \begin_layout Description
22759 collapsable_inset_text 畳み込み可能枠の文字色
22760 \end_layout
22761
22762 \begin_layout Description
22763 command コマンド差込枠の文字色
22764 \end_layout
22765
22766 \begin_layout Description
22767 commandbg コマンド差込枠の背景色
22768 \end_layout
22769
22770 \begin_layout Description
22771 commandframe コマンド差込枠の縁色
22772 \end_layout
22773
22774 \begin_layout Description
22775 comment コメント色
22776 \end_layout
22777
22778 \begin_layout Description
22779 commentbg コメントの背景色
22780 \end_layout
22781
22782 \begin_layout Description
22783 cursor カーソル色
22784 \end_layout
22785
22786 \begin_layout Description
22787 deletedtext 削除された文章の色
22788 \end_layout
22789
22790 \begin_layout Description
22791 deletedtextmodifier 削除された文章の修飾子の色
22792 \end_layout
22793
22794 \begin_layout Description
22795 depthbar 余白部の階層表示線の色
22796 \end_layout
22797
22798 \begin_layout Description
22799 eolmarker 行末標色
22800 \end_layout
22801
22802 \begin_layout Description
22803 error \SpecialChar LaTeX
22804 エラーボックス色
22805 \end_layout
22806
22807 \begin_layout Description
22808 footlabel 脚註ラベル色
22809 \end_layout
22810
22811 \begin_layout Description
22812 graphicsbg 画像差込枠の背景色
22813 \end_layout
22814
22815 \begin_layout Description
22816 greyedout 淡色表示差込枠のラベル色
22817 \end_layout
22818
22819 \begin_layout Description
22820 greyedoutbg 淡色表示差込枠の背景色
22821 \end_layout
22822
22823 \begin_layout Description
22824 greyedouttext 淡色表示差込枠の文字色
22825 \end_layout
22826
22827 \begin_layout Description
22828 indexlabel 索引差込枠のラベル色
22829 \end_layout
22830
22831 \begin_layout Description
22832 ignore この色を無視します
22833 \end_layout
22834
22835 \begin_layout Description
22836 inherit この色を継承します
22837 \end_layout
22838
22839 \begin_layout Description
22840 inlinecompletion 行内補完色
22841 \end_layout
22842
22843 \begin_layout Description
22844 insetbg 差込枠標の背景色
22845 \end_layout
22846
22847 \begin_layout Description
22848 insetframe 差込枠標の縁色
22849 \end_layout
22850
22851 \begin_layout Description
22852 language 外国語の単語を標識するための色
22853 \end_layout
22854
22855 \begin_layout Description
22856 latex \SpecialChar LaTeX
22857 モードの文字色
22858 \end_layout
22859
22860 \begin_layout Description
22861 listingsbg プログラムリスト差込枠の背景色
22862 \end_layout
22863
22864 \begin_layout Description
22865 marginlabel 傍註のラベル色
22866 \end_layout
22867
22868 \begin_layout Description
22869 math 数式差込枠の文字色
22870 \end_layout
22871
22872 \begin_layout Description
22873 mathbg 数式差込枠の背景色
22874 \end_layout
22875
22876 \begin_layout Description
22877 mathcorners フォーカスを得ていない数式差込枠の縁色
22878 \end_layout
22879
22880 \begin_layout Description
22881 mathframe フォーカスを得ている数式差込枠の縁色
22882 \end_layout
22883
22884 \begin_layout Description
22885 mathline 数式行色
22886 \end_layout
22887
22888 \begin_layout Description
22889 mathmacrobg 数式マクロ差込枠の背景色
22890 \end_layout
22891
22892 \begin_layout Description
22893 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22894 \end_layout
22895
22896 \begin_layout Description
22897 mathmacroframe 数式マクロ差込枠の縁色
22898 \end_layout
22899
22900 \begin_layout Description
22901 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22902 \end_layout
22903
22904 \begin_layout Description
22905 mathmacrolabel 数式マクロ差込枠のラベル色
22906 \end_layout
22907
22908 \begin_layout Description
22909 mathmacronewarg 数式マクロ新パラメーターのひな型色
22910 \end_layout
22911
22912 \begin_layout Description
22913 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22914 \end_layout
22915
22916 \begin_layout Description
22917 newpage 新規頁色
22918 \end_layout
22919
22920 \begin_layout Description
22921 nonunique_inlinecompletion 行内補完の一意でない部分の色
22922 \end_layout
22923
22924 \begin_layout Description
22925 notebg 註釈の背景色
22926 \end_layout
22927
22928 \begin_layout Description
22929 notelabel 註釈のラベル色
22930 \end_layout
22931
22932 \begin_layout Description
22933 pagebreak 改頁/改行色
22934 \end_layout
22935
22936 \begin_layout Description
22937 paragraphmarker 段落末を標識するための段落標の色
22938 \end_layout
22939
22940 \begin_layout Description
22941 phantomtext 埋め草差込枠の文字色
22942 \end_layout
22943
22944 \begin_layout Description
22945 preview プレビューに用いられる色
22946 \end_layout
22947
22948 \begin_layout Description
22949 previewframe プレビュー縁色
22950 \end_layout
22951
22952 \begin_layout Description
22953 regexpframe 正規表現枠の色
22954 \end_layout
22955
22956 \begin_layout Description
22957 selection 文章選択部の背景色
22958 \end_layout
22959
22960 \begin_layout Description
22961 selectiontext 文章選択部の前景色
22962 \end_layout
22963
22964 \begin_layout Description
22965 shadedbg 影付きボックスの背景色
22966 \end_layout
22967
22968 \begin_layout Description
22969 special 特殊文字の色
22970 \end_layout
22971
22972 \begin_layout Description
22973 tabularline 罫線色
22974 \end_layout
22975
22976 \begin_layout Description
22977 tabularonoffline 罫線色
22978 \end_layout
22979
22980 \begin_layout Description
22981 urllabel URL差込枠のラベル色
22982 \end_layout
22983
22984 \begin_layout Description
22985 urltext URL差込枠の文字色
22986 \end_layout
22987
22988 \end_body
22989 \end_document