]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
EmbeddedObjects.lyx: some tweaks
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 504
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 \end_modules
36 \maintain_unincluded_children false
37 \begin_local_layout
38 Format 57
39 InsetLayout Flex:MenuItem
40 LyxType               charstyle
41 LabelString           menu
42 LatexType             command
43 LatexName             menuitem
44 Font
45 Family              Sans
46 EndFont
47 Preamble
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
49 EndPreamble
50 ResetsFont true
51 End
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
54 #Font
55 #Family              Sans
56 #EndFont
57 #Preamble
58 #\renewcommand{\code}[1]{{\sffamily #1}}
59 #EndPreamble
60 #End
61 InsetLayout             Flex:Ruby
62 LyxType         charstyle
63 LatexType               command
64 LatexName               ruby
65 BgColor         none
66 LabelString             "ルビ"
67 Decoration              Conglomerate
68 Argument post:1
69 LabelString     "ルビ文"
70 MenuString      "ルビ文(S)|S"
71 Decoration      Conglomerate
72 Font
73 Size            tiny
74 EndFont
75 LabelFont
76 Size            tiny
77 EndFont
78 Mandatory       1
79 EndArgument
80 Preamble
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
84 EndPreamble
85 ResetsFont true
86 End
87 \end_local_layout
88 \language japanese
89 \language_package default
90 \inputencoding auto
91 \fontencoding global
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
98 \font_sc false
99 \font_osf false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
102 \graphics default
103 \default_output_format default
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification false
144 \use_refstyle 0
145 \notefontcolor #0000ff
146 \branch OutDated
147 \selected 0
148 \filename_suffix 0
149 \color #f5fae7
150 \end_branch
151 \index 索引
152 \shortcut idx
153 \color #008000
154 \end_index
155 \secnumdepth 3
156 \tocdepth 3
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \end_header
169
170 \begin_body
171
172 \begin_layout Title
173 \SpecialChar LyX
174 の高度設定
175 \begin_inset Newline newline
176 \end_inset
177
178 熟練ユーザのための各機能
179 \end_layout
180
181 \begin_layout Author
182 \SpecialChar LyX
183 開発チーム
184 \begin_inset Foot
185 status collapsed
186
187 \begin_layout Plain Layout
188 \noindent
189 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
190 文書化メーリングリスト
191 \begin_inset CommandInset href
192 LatexCommand href
193 target "lyx-docs@lists.lyx.org"
194 type "mailto:"
195
196 \end_inset
197
198 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください。
200 \end_layout
201
202 \end_inset
203
204
205 \begin_inset Newline newline
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212 第2.2.x版 
213 \end_layout
214
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
218
219 \end_inset
220
221
222 \begin_inset Note Note
223 status open
224
225 \begin_layout Plain Layout
226 本文書を修正する際には、変更追跡機能を使用してください。これによって、
227 \end_layout
228
229 \begin_layout Plain Layout
230 \SpecialChar LyX
231 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
232 \end_layout
233
234 \end_inset
235
236
237 \end_layout
238
239 \begin_layout Chapter
240 はじめに
241 \end_layout
242
243 \begin_layout Standard
244 この取扱説明書は、\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います。ここでは、
246 \begin_inset Flex Ruby
247 status collapsed
248
249 \begin_layout Plain Layout
250 捷径
251 \begin_inset Argument post:1
252 status collapsed
253
254 \begin_layout Plain Layout
255 ショートカット
256 \end_layout
257
258 \end_inset
259
260
261 \end_layout
262
263 \end_inset
264
265 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
268 クラスや\SpecialChar LyX
269 レイアウトの導入などの題材について論じます。おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
271 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
272 \end_layout
273
274 \begin_layout Standard
275 \begin_inset Branch OutDated
276 status collapsed
277
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280  outdated is contained in the OutDated branch of this document.
281  By default, this information will not appear in the \SpecialChar LaTeX
282  output.
283 \end_layout
284
285 \end_inset
286
287
288 \end_layout
289
290 \begin_layout Chapter
291 \SpecialChar LyX
292 設定ファイル
293 \end_layout
294
295 \begin_layout Standard
296 本章の目的は、\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
298 \begin_inset Flex MenuItem
299 status collapsed
300
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
303 LyXについて
304 \end_layout
305
306 \end_inset
307
308 を使って、\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです。一
311 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
312 \begin_inset Flex Code
313 status collapsed
314
315 \begin_layout Plain Layout
316 LyXDir
317 \end_layout
318
319 \end_inset
320
321 と呼び、後者を
322 \begin_inset Flex MenuItem
323 status collapsed
324
325 \begin_layout Plain Layout
326 UserDir
327 \end_layout
328
329 \end_inset
330
331 と呼ぶことにします。
332 \end_layout
333
334 \begin_layout Section
335 \begin_inset Flex Code
336 status collapsed
337
338 \begin_layout Plain Layout
339 LyXDir
340 \end_layout
341
342 \end_inset
343
344 にはなにがあるの?
345 \end_layout
346
347 \begin_layout Standard
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 LyXDir
353 \end_layout
354
355 \end_inset
356
357 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
358 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
359 内の
360 \begin_inset Flex MenuItem
361 status collapsed
362
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
365 設定
366 \end_layout
367
368 \end_inset
369
370 ダイアログから変更することができます。\SpecialChar LyX
371 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
372 の多くの内部動作は、
373 \begin_inset Flex Code
374 status collapsed
375
376 \begin_layout Plain Layout
377 LyXDir
378 \end_layout
379
380 \end_inset
381
382 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
383 \end_layout
384
385 \begin_layout Subsection
386 自動的に生成されるファイル
387 \end_layout
388
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
391 status collapsed
392
393 \begin_layout Plain Layout
394 UserDir
395 \end_layout
396
397 \end_inset
398
399 にある各ファイルは、\SpecialChar LyX
400 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
401 うので、一般的には修正しないことが望まれます。
402 \end_layout
403
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
407 status collapsed
408
409 \begin_layout Plain Layout
410 lyxrc.defaults
411 \end_layout
412
413 \end_inset
414
415  このファイルには、様々な既定コマンドが置かれています。
416 \end_layout
417
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
421 status collapsed
422
423 \begin_layout Plain Layout
424 packages.lst
425 \end_layout
426
427 \end_inset
428
429  このファイルには、\SpecialChar LyX
430 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
431 プログラム自体には使用されていませんが、抽出された情報その他は、
432 \begin_inset Flex MenuItem
433 status collapsed
434
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
437 LaT
438 \begin_inset ERT
439 status collapsed
440
441 \begin_layout Plain Layout
442
443 {}
444 \end_layout
445
446 \end_inset
447
448 eXの設定
449 \end_layout
450
451 \end_inset
452
453 で見ることができます。
454 \end_layout
455
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 textclass.lst
463 \end_layout
464
465 \end_inset
466
467  ユーザの
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 Plain L
473 \end_layout
474
475 \end_inset
476
477 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
478 文書クラスおよびその説明の一覧です。
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 lyxmodules.lst
488 \end_layout
489
490 \end_inset
491
492  ユーザの
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 layout/
498 \end_layout
499
500 \end_inset
501
502 ディレクトリで検出されたレイアウトモジュールの一覧です。
503 \end_layout
504
505 \begin_layout Labeling
506 \labelwidthstring 00.00.0000
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 *files.lst
512 \end_layout
513
514 \end_inset
515
516  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
517 関連ファイルの一覧です。
518 \end_layout
519
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 doc/LaT
527 \begin_inset ERT
528 status collapsed
529
530 \begin_layout Plain Layout
531
532 {}
533 \end_layout
534
535 \end_inset
536
537 eXConfig.lyx
538 \end_layout
539
540 \end_inset
541
542  このファイルは、自動設定中に
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 LaT
548 \begin_inset ERT
549 status collapsed
550
551 \begin_layout Plain Layout
552
553 {}
554 \end_layout
555
556 \end_inset
557
558 eXConfig.lyx.in
559 \end_layout
560
561 \end_inset
562
563 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
564 の設定に関する情報が納められています。
565 \end_layout
566
567 \begin_layout Subsection
568 ディレクトリ
569 \end_layout
570
571 \begin_layout Standard
572 以下の各ディレクトリは、
573 \begin_inset Flex Code
574 status collapsed
575
576 \begin_layout Plain Layout
577 LyXDir
578 \end_layout
579
580 \end_inset
581
582
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 UserDir
588 \end_layout
589
590 \end_inset
591
592 に重複して存在します。特定のファイルが両方の場所にある場合には、
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 UserDir
598 \end_layout
599
600 \end_inset
601
602 の方にあるものが使用されます。
603 \end_layout
604
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 bind/
612 \end_layout
613
614 \end_inset
615
616  このディレクトリには、\SpecialChar LyX
617 で使用されるキー割当を定義している、拡張子が
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 .bind
623 \end_layout
624
625 \end_inset
626
627 のファイルが置かれています。
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 $LANG_xxx.bind
633 \end_layout
634
635 \end_inset
636
637 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
638 \end_layout
639
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 clipart/
647 \end_layout
648
649 \end_inset
650
651  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
652 \end_layout
653
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 doc/
661 \end_layout
662
663 \end_inset
664
665  このディレクトリには、\SpecialChar LyX
666 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 LaTeXConfig.lyx
672 \end_layout
673
674 \end_inset
675
676 ファイルは特に注目に値します。各国語版のヘルプ文書は、
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 doc/xx
682 \end_layout
683
684 \end_inset
685
686 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
687 \begin_inset CommandInset ref
688 LatexCommand ref
689 reference "cha:LyXの各国語対応"
690
691 \end_inset
692
693 をご覧ください。
694 \end_layout
695
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 examples/
703 \end_layout
704
705 \end_inset
706
707  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
708 \begin_inset Flex MenuItem
709 status collapsed
710
711 \begin_layout Plain Layout
712 用例
713 \end_layout
714
715 \end_inset
716
717 ボタンを押すと、このディレクトリが表示されます。
718 \end_layout
719
720 \begin_layout Labeling
721 \labelwidthstring 00.00.0000
722 \begin_inset Flex Code
723 status collapsed
724
725 \begin_layout Plain Layout
726 images/
727 \end_layout
728
729 \end_inset
730
731  このディレクトリには、
732 \begin_inset Flex MenuItem
733 status collapsed
734
735 \begin_layout Plain Layout
736 文書
737 \end_layout
738
739 \end_inset
740
741 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
742 を起動したときに現れるバナーも納められています。
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 をご覧ください。
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには、
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 に述べられているテキストクラスおよびモジュールのファイルが納められています。
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには、\SpecialChar LyX
799 の各バージョン間の変換に使用される
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 lyx2lyx
805 \end_layout
806
807 \end_inset
808
809  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
810 \end_layout
811
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 scripts/
819 \end_layout
820
821 \end_inset
822
823  このディレクトリには、
824 \begin_inset Flex MenuItem
825 status collapsed
826
827 \begin_layout Plain Layout
828 外用ひな型
829 \end_layout
830
831 \end_inset
832
833 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
834 自身が使用するスクリプトもいくつか収められています。
835 \end_layout
836
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 templates/
844 \end_layout
845
846 \end_inset
847
848  このディレクトリには、
849 \begin_inset CommandInset ref
850 LatexCommand ref
851 reference "sec:ひな型を作成する"
852
853 \end_inset
854
855 で述べられている標準の\SpecialChar LyX
856 ひな型ファイルが納められています。
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 ui/
866 \end_layout
867
868 \end_inset
869
870  このディレクトリには、\SpecialChar LyX
871 の操作画面を定義する拡張子
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 .ui
877 \end_layout
878
879 \end_inset
880
881 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
882 \end_layout
883
884 \begin_layout Subsection
885 変更を加えない方がよいファイル
886 \end_layout
887
888 \begin_layout Standard
889 これらのファイルは\SpecialChar LyX
890 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
891 \end_layout
892
893 \begin_layout Labeling
894 \labelwidthstring 00.00.0000
895 \begin_inset Flex Code
896 status collapsed
897
898 \begin_layout Plain Layout
899 CREDITS
900 \end_layout
901
902 \end_inset
903
904  このファイルは、\SpecialChar LyX
905 開発陣の名簿です。この内容は、メニュー項目
906 \begin_inset Flex MenuItem
907 status collapsed
908
909 \begin_layout Plain Layout
910 ヘルプ\SpecialChar menuseparator
911 LyXについて
912 \end_layout
913
914 \end_inset
915
916 で表示されます。
917 \end_layout
918
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 chkconfig.ltx
926 \end_layout
927
928 \end_inset
929
930  これは、自動設定プロセスによって使用される\SpecialChar LaTeX
931 スクリプトです。直接実行しないでください。
932 \end_layout
933
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 configure.py
941 \end_layout
942
943 \end_inset
944
945  これは、\SpecialChar LyX
946 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
947 \end_layout
948
949 \begin_layout Subsection
950 ひとこと必要なファイル群
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 encodings
960 \end_layout
961
962 \end_inset
963
964  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
965 \end_layout
966
967 \begin_layout Labeling
968 \labelwidthstring 00.00.0000
969 \begin_inset Flex Code
970 status collapsed
971
972 \begin_layout Plain Layout
973 external_templates
974 \end_layout
975
976 \end_inset
977
978  このファイルには、新しく導入された
979 \begin_inset Flex MenuItem
980 status collapsed
981
982 \begin_layout Plain Layout
983 外用ひな型
984 \end_layout
985
986 \end_inset
987
988 機能で使用できるひな型が載っています。
989 \begin_inset CommandInset ref
990 LatexCommand ref
991 reference "chap:外部素材を取り込む"
992
993 \end_inset
994
995 を参照のこと。
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 languages
1005 \end_layout
1006
1007 \end_inset
1008
1009  このファイルには、現在\SpecialChar LyX
1010 がサポートしている言語の全一覧が載っています。
1011 \end_layout
1012
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 latexfonts
1020 \end_layout
1021
1022 \end_inset
1023
1024  サポートされているフォントに関する情報が掲載されています。
1025 \end_layout
1026
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 layouttranslations
1034 \end_layout
1035
1036 \end_inset
1037
1038  このファイルは、国際化された段落様式の翻訳が収録されています(
1039 \begin_inset CommandInset ref
1040 LatexCommand ref
1041 reference "subsec:段落様式の国際化"
1042
1043 \end_inset
1044
1045 参照)。
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 unicodesymbols
1055 \end_layout
1056
1057 \end_inset
1058
1059  このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1060 が\SpecialChar LaTeX
1061 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1062 \end_layout
1063
1064 \begin_layout Section
1065 ユーザのローカル設定ディレクトリ
1066 \end_layout
1067
1068 \begin_layout Standard
1069 \SpecialChar LyX
1070 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1071 の設定を変更したいと思うかもしれません。
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 UserDir
1077 \end_layout
1078
1079 \end_inset
1080
1081 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1082 \begin_inset Flex MenuItem
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086 ヘルプ\SpecialChar menuseparator
1087 LyXについて
1088 \end_layout
1089
1090 \end_inset
1091
1092 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1093 \begin_inset Flex Code
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 LyXDir
1098 \end_layout
1099
1100 \end_inset
1101
1102 のミラーとして使用されており、これは
1103 \begin_inset Flex Code
1104 status collapsed
1105
1106 \begin_layout Plain Layout
1107 UserDir
1108 \end_layout
1109
1110 \end_inset
1111
1112 内のすべてのファイルが、
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 LyXDir
1118 \end_layout
1119
1120 \end_inset
1121
1122 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1123 \end_layout
1124
1125 \begin_layout Standard
1126 わかりやすくするために、いくつか例を挙げましょう。
1127 \end_layout
1128
1129 \begin_layout Itemize
1130 \begin_inset Flex MenuItem
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 ツール\SpecialChar menuseparator
1135 設定
1136 \end_layout
1137
1138 \end_inset
1139
1140 ダイアログで設定されるユーザ設定は、
1141 \begin_inset Flex Code
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145 UserDir
1146 \end_layout
1147
1148 \end_inset
1149
1150 中の
1151 \begin_inset Flex Code
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 preferences
1156 \end_layout
1157
1158 \end_inset
1159
1160 ファイルに保存されます。
1161 \end_layout
1162
1163 \begin_layout Itemize
1164 \begin_inset Flex MenuItem
1165 status collapsed
1166
1167 \begin_layout Plain Layout
1168 ツール\SpecialChar menuseparator
1169 環境構成
1170 \end_layout
1171
1172 \end_inset
1173
1174 を使用して環境構成を行うと、\SpecialChar LyX
1175
1176 \begin_inset Flex Code
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 configure.py
1181 \end_layout
1182
1183 \end_inset
1184
1185 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1186 \begin_inset Flex Code
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 UserDir/layouts
1191 \end_layout
1192
1193 \end_inset
1194
1195 にご自身で追加したテキストファイルは、
1196 \begin_inset Flex MenuItem
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 文書\SpecialChar menuseparator
1201 設定
1202 \end_layout
1203
1204 \end_inset
1205
1206 ダイアログのクラス一覧に表示されるようになることを意味します。
1207 \end_layout
1208
1209 \begin_layout Itemize
1210 たとえば、\SpecialChar LyX
1211 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1212 れらのファイルを
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 UserDir/doc/
1218 \end_layout
1219
1220 \end_inset
1221
1222 ディレクトリにコピーすれば、
1223 \begin_inset Flex MenuItem
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 ヘルプ
1228 \end_layout
1229
1230 \end_inset
1231
1232 メニュー項目はこれらを開くようになります!
1233 \end_layout
1234
1235 \begin_layout Section
1236 \SpecialChar LyX
1237 を複数の設定を使って実行するには
1238 \end_layout
1239
1240 \begin_layout Standard
1241 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1242 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1243 どのディレクトリを使用するか指定するのです。
1244 \end_layout
1245
1246 \begin_layout Standard
1247 \SpecialChar LyX
1248 をコマンドラインスイッチ
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 -userdir
1254 \end_layout
1255
1256 \end_inset
1257
1258 P
1259 \emph on
1260 <ディレクトリ名>
1261 \emph default
1262 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1263
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 -userdir
1269 \end_layout
1270
1271 \end_inset
1272
1273 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1274 は、初めて\SpecialChar LyX
1275 を実行したときに既定ディレクトリを訊い
1276 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1277 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 LYX_USERDIR_20x
1283 \end_layout
1284
1285 \end_inset
1286
1287 を特定の値に設定しても、全く同じ効果があります。
1288 \end_layout
1289
1290 \begin_layout Standard
1291 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 NewUserDir/layouts
1297 \end_layout
1298
1299 \end_inset
1300
1301 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1302 クを使用してください。\SpecialChar LyX
1303 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1304 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1305 \begin_inset Flex Code
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309 doc/
1310 \end_layout
1311
1312 \end_inset
1313
1314 サブディレクトリには、設定スクリプト(
1315 \begin_inset Flex MenuItem
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 ツール\SpecialChar menuseparator
1320 環境構成
1321 \end_layout
1322
1323 \end_inset
1324
1325 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1326 \end_layout
1327
1328 \begin_layout Chapter
1329 設定ダイアログ
1330 \end_layout
1331
1332 \begin_layout Standard
1333 設定ダイアログのオプションのすべては、
1334 \emph on
1335 ユーザーの手引き
1336 \emph default
1337 の付録
1338 \emph on
1339 設定ダイアログ
1340 \emph default
1341 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1342 \end_layout
1343
1344 \begin_layout Section
1345 ファイル形式
1346 \begin_inset CommandInset label
1347 LatexCommand label
1348 name "sec:ファイル形式"
1349
1350 \end_inset
1351
1352
1353 \end_layout
1354
1355 \begin_layout Standard
1356 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1357 \begin_inset Flex MenuItem
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 ツール\SpecialChar menuseparator
1362 設定
1363 \end_layout
1364
1365 \end_inset
1366
1367 ダイアログを開いてください。
1368 \begin_inset Flex MenuItem
1369 status collapsed
1370
1371 \begin_layout Plain Layout
1372 ファイル処理\SpecialChar menuseparator
1373 ファイル形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 の中で
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 新規\SpecialChar ldots
1384
1385 \end_layout
1386
1387 \end_inset
1388
1389 ボタンを押して、登録する新しい形式を定義してください。
1390 \begin_inset Flex MenuItem
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 形式
1395 \end_layout
1396
1397 \end_inset
1398
1399 フィールドは、GUI中で形式を認識するために用いられる名称です。
1400 \begin_inset Flex MenuItem
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404 短縮名
1405 \end_layout
1406
1407 \end_inset
1408
1409 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1410 \begin_inset Flex MenuItem
1411 status collapsed
1412
1413 \begin_layout Plain Layout
1414 捷径
1415 \end_layout
1416
1417 \end_inset
1418
1419 フィールドは、メニュー中で
1420 \begin_inset Flex Ruby
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424 捷径
1425 \begin_inset Argument post:1
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 ショートカット
1430 \end_layout
1431
1432 \end_inset
1433
1434
1435 \end_layout
1436
1437 \end_inset
1438
1439 を提供するのに使用されます(たとえば、
1440 \begin_inset Flex MenuItem
1441 status collapsed
1442
1443 \begin_layout Plain Layout
1444 Ctrl+D
1445 \end_layout
1446
1447 \end_inset
1448
1449 を押すと
1450 \begin_inset Flex MenuItem
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 表示\SpecialChar menuseparator
1455 DVI
1456 \end_layout
1457
1458 \end_inset
1459
1460 となります)。
1461 \end_layout
1462
1463 \begin_layout Standard
1464 形式には、
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 閲覧プログラム
1470 \end_layout
1471
1472 \end_inset
1473
1474
1475 \begin_inset Flex MenuItem
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 編集プログラム
1480 \end_layout
1481
1482 \end_inset
1483
1484 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1485 \begin_inset Flex MenuItem
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 Ghostview
1490 \end_layout
1491
1492 \end_inset
1493
1494 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1495 いることができます。この閲覧プログラムは、\SpecialChar LyX
1496 中で画像を閲覧したり
1497 \begin_inset Flex MenuItem
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 表示
1502 \end_layout
1503
1504 \end_inset
1505
1506 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1507 \begin_inset Flex MenuItem
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 外部で編集
1512 \end_layout
1513
1514 \end_inset
1515
1516 を選択したときに起動します。
1517 \end_layout
1518
1519 \begin_layout Standard
1520 ファイル形式の
1521 \begin_inset Flex MenuItem
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 MIME
1526 \end_layout
1527
1528 \end_inset
1529
1530 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1531 ます。重要なファイル形式のうちには、
1532 \begin_inset CommandInset href
1533 LatexCommand href
1534 name "IANA"
1535 target "http://www.iana.org/assignments/media-types/"
1536
1537 \end_inset
1538
1539 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1540 は、
1541 \begin_inset CommandInset href
1542 LatexCommand href
1543 name "freedesktop.org"
1544 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1545
1546 \end_inset
1547
1548 で指定されているMIME型拡張表を使用しています。
1549 \end_layout
1550
1551 \begin_layout Standard
1552 \begin_inset Flex MenuItem
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 文書形式
1557 \end_layout
1558
1559 \end_inset
1560
1561 オプションは、\SpecialChar LyX
1562 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1563 \begin_inset CommandInset ref
1564 LatexCommand ref
1565 reference "sec:変換子"
1566
1567 \end_inset
1568
1569 節を参照)、この形式が
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ファイル\SpecialChar menuseparator
1575 書き出し
1576 \end_layout
1577
1578 \end_inset
1579
1580
1581 \begin_inset Flex MenuItem
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 表示
1586 \end_layout
1587
1588 \end_inset
1589
1590 footlabel Label color for footnotす。
1591 \begin_inset Flex Code
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 png
1596 \end_layout
1597
1598 \end_inset
1599
1600 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1601 \begin_inset Flex Code
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 pdf
1606 \end_layout
1607
1608 \end_inset
1609
1610 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1611 \end_layout
1612
1613 \begin_layout Standard
1614 \begin_inset Flex MenuItem
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618 ベクター画像形式
1619 \end_layout
1620
1621 \end_inset
1622
1623 オプションは、\SpecialChar LyX
1624 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1625 \begin_inset Flex MenuItem
1626 status collapsed
1627
1628 \begin_layout Plain Layout
1629 pdflatex
1630 \end_layout
1631
1632 \end_inset
1633
1634 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1635 \begin_inset Flex MenuItem
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 pdflatex
1640 \end_layout
1641
1642 \end_inset
1643
1644 は、
1645 \begin_inset Flex MenuItem
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 pdf
1650 \end_layout
1651
1652 \end_inset
1653
1654
1655 \begin_inset Flex MenuItem
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 png
1660 \end_layout
1661
1662 \end_inset
1663
1664
1665 \begin_inset Flex MenuItem
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Des
1670 \end_layout
1671
1672 \end_inset
1673
1674 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1675 \begin_inset Flex MenuItem
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 pdf
1680 \end_layout
1681
1682 \end_inset
1683
1684
1685 \begin_inset Flex MenuItem
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 png
1690 \end_layout
1691
1692 \end_inset
1693
1694
1695 \begin_inset Flex MenuItem
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 jpg
1700 \end_layout
1701
1702 \end_inset
1703
1704 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1705 \begin_inset Flex MenuItem
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 pdf
1710 \end_layout
1711
1712 \end_inset
1713
1714 に変換され、そうでない場合には
1715 \begin_inset Flex MenuItem
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 png
1720 \end_layout
1721
1722 \end_inset
1723
1724 に変換されます。
1725 \end_layout
1726
1727 \begin_layout Section
1728 複写子
1729 \end_layout
1730
1731 \begin_layout Standard
1732 形式の変換はすべて、\SpecialChar LyX
1733 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1734 \begin_inset Foot
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1739 あります。
1740 \end_layout
1741
1742 \end_inset
1743
1744 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1745 \end_layout
1746
1747 \begin_layout Standard
1748 複写子の定義においては、以下の8つの変数を用いることができます。
1749 \end_layout
1750
1751 \begin_layout Labeling
1752 \labelwidthstring 00.00.0000
1753 \begin_inset Flex Code
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 $$s
1758 \end_layout
1759
1760 \end_inset
1761
1762  \SpecialChar LyX
1763 のシステムディレクトリ(例:
1764 \begin_inset Flex MenuItem
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 /usr/share/lyx
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \end_layout
1775
1776 \begin_layout Labeling
1777 \labelwidthstring 00.00.0000
1778 \begin_inset Flex Code
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 $$i
1783 \end_layout
1784
1785 \end_inset
1786
1787  入力ファイル
1788 \end_layout
1789
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 $$o
1797 \end_layout
1798
1799 \end_inset
1800
1801  出力ファイル
1802 \end_layout
1803
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Flex Code
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 $$b
1811 \end_layout
1812
1813 \end_inset
1814
1815  \SpecialChar LyX
1816 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1817 \end_layout
1818
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 $$p
1826 \end_layout
1827
1828 \end_inset
1829
1830  \SpecialChar LyX
1831 一時ディレクトリのフルパス名
1832 \end_layout
1833
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 $$r
1841 \end_layout
1842
1843 \end_inset
1844
1845  処理されている元の\SpecialChar LyX
1846 ファイルのフルパス名
1847 \end_layout
1848
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 $$f
1856 \end_layout
1857
1858 \end_inset
1859
1860  \SpecialChar LyX
1861 ファイルのファイル名(ディレクトリパスなし)
1862 \end_layout
1863
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 $$l
1871 \end_layout
1872
1873 \end_inset
1874
1875  「\SpecialChar LaTeX
1876 名」
1877 \end_layout
1878
1879 \begin_layout Standard
1880 最後の変数は、\SpecialChar LaTeX
1881
1882 \series bold
1883
1884 \backslash
1885 include
1886 \series default
1887 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1888 \end_layout
1889
1890 \begin_layout Standard
1891 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 /home/you/pdf/
1897 \end_layout
1898
1899 \end_inset
1900
1901 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1902 \end_layout
1903
1904 \begin_layout Standard
1905 \begin_inset listings
1906 inline false
1907 status open
1908
1909 \begin_layout Plain Layout
1910
1911 #!/bin/bash
1912 \end_layout
1913
1914 \begin_layout Plain Layout
1915
1916 FROMFILE=$1
1917 \end_layout
1918
1919 \begin_layout Plain Layout
1920
1921 TOFILE=`basename $2`
1922 \end_layout
1923
1924 \begin_layout Plain Layout
1925
1926 DescriptionE /home/you/pdf/$TOFILE
1927 \end_layout
1928
1929 \end_inset
1930
1931 これを、例えば
1932 \begin_inset Flex Code
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 /home/you/.lyx/scripts/pdfcopier.sh
1937 \end_layout
1938
1939 \end_inset
1940
1941 のような、自身のローカル\SpecialChar LyX
1942 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1943 \begin_inset Flex MenuItem
1944 status collapsed
1945
1946 \begin_layout Plain Layout
1947 ツール\SpecialChar menuseparator
1948 設定
1949 \end_layout
1950
1951 \end_inset
1952
1953 ダイアログの
1954 \begin_inset Flex MenuItem
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 ファイル処理\SpecialChar menuseparator
1959 ファイル形式
1960 \end_layout
1961
1962 \end_inset
1963
1964 の中で、
1965 \begin_inset Flex MenuItem
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 PDF(pdflatex)
1970 \end_layout
1971
1972 \end_inset
1973
1974 形式—あるいは他のPDF形式のうちどれか—を選択し、
1975 \begin_inset Flex MenuItem
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 複写子
1980 \end_layout
1981
1982 \end_inset
1983
1984 フィールドに
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdfcopier.sh $$i $$o
1990 \end_layout
1991
1992 \end_inset
1993
1994 と入力します。
1995 \end_layout
1996
1997 \begin_layout Standard
1998 複写子は、\SpecialChar LyX
1999 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
2000 は自動的に
2001 \begin_inset Flex MenuItem
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 HTML
2006 \end_layout
2007
2008 \end_inset
2009
2010 形式と
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 HTML
2016 \begin_inset space ~
2017 \end_inset
2018
2019 (MS Word)
2020 \end_layout
2021
2022 \end_inset
2023
2024 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2025 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2026 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2027 \begin_inset Foot
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2032 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2033 \begin_inset Flex MenuItem
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 L
2038 \begin_inset ERT
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042
2043 {}
2044 \end_layout
2045
2046 \end_inset
2047
2048 yXconv
2049 \end_layout
2050
2051 \end_inset
2052
2053 」となっているので、
2054 \begin_inset Flex MenuItem
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 /path/to/filename.lyx
2059 \end_layout
2060
2061 \end_inset
2062
2063 から生成されたHTMLファイルは、
2064 \begin_inset Flex MenuItem
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 /path/to/filename.html.L
2069 \begin_inset ERT
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073
2074 {}
2075 \end_layout
2076
2077 \end_inset
2078
2079 yXconv
2080 \end_layout
2081
2082 \end_inset
2083
2084 となります。.
2085  
2086 \end_layout
2087
2088 \end_inset
2089
2090
2091 \end_layout
2092
2093 \begin_layout Section
2094 変換子
2095 \begin_inset CommandInset label
2096 LatexCommand label
2097 name "sec:変換子"
2098
2099 \end_inset
2100
2101
2102 \end_layout
2103
2104 \begin_layout Standard
2105 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 ツール\SpecialChar menuseparator
2111 設定\SpecialChar menuseparator
2112 ファイル処理\SpecialChar menuseparator
2113 変換子
2114 \end_layout
2115
2116 \end_inset
2117
2118 ダイアログで行います。
2119 \end_layout
2120
2121 \begin_layout Standard
2122 新規に変換子を定義するには、ドロップダウンリストから
2123 \begin_inset Flex MenuItem
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 変換元の形式
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Flex MenuItem
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137 変換先の形式
2138 \end_layout
2139
2140 \end_inset
2141
2142 を選択し、変換に必要なコマンドを入力してから
2143 \begin_inset Flex MenuItem
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 追加
2148 \end_layout
2149
2150 \end_inset
2151
2152 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2153 \end_layout
2154
2155 \begin_layout Labeling
2156 \labelwidthstring 00.00.0000
2157 \begin_inset Flex Code
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 $$s
2162 \end_layout
2163
2164 \end_inset
2165
2166  \SpecialChar LyX
2167 システムディレクトリ
2168 \end_layout
2169
2170 \begin_layout Labeling
2171 \labelwidthstring 00.00.0000
2172 \begin_inset Flex Code
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 $$i
2177 \end_layout
2178
2179 \end_inset
2180
2181  入力ファイル
2182 \end_layout
2183
2184 \begin_layout Labeling
2185 \labelwidthstring 00.00.0000
2186 \begin_inset Flex Code
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 $$o
2191 \end_layout
2192
2193 \end_inset
2194
2195  出力ファイル
2196 \end_layout
2197
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 $$b
2205 \end_layout
2206
2207 \end_inset
2208
2209  入力ファイルのベースファイル名(拡張子をとった部分)
2210 \end_layout
2211
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2215 status collapsed
2216
2217 \begin_layout Plain Layout
2218 $$p
2219 \end_layout
2220
2221 \end_inset
2222
2223  入力ファイルのパス
2224 \end_layout
2225
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 $$r
2233 \end_layout
2234
2235 \end_inset
2236
2237  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2238 \end_layout
2239
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 $$e
2247 \end_layout
2248
2249 \end_inset
2250
2251  文書エンコーディングのiconv名
2252 \end_layout
2253
2254 \begin_layout Standard
2255 \begin_inset Flex MenuItem
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 追加フラグ
2260 \end_layout
2261
2262 \end_inset
2263
2264 フィールドには、以下のフラグをコンマで区切って入力することができます。
2265 \end_layout
2266
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 latex
2274 \end_layout
2275
2276 \end_inset
2277
2278  この変換子が\SpecialChar LaTeX
2279 の一種を実行することを示します。これによって、\SpecialChar LyX
2280 の\SpecialChar LaTeX
2281 エラーログに記録を残せるようになります。
2282 \end_layout
2283
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290 needaux
2291 \end_layout
2292
2293 \end_inset
2294
2295  変換に\SpecialChar LaTeX
2296
2297 \begin_inset Flex MenuItem
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 .aux
2302 \end_layout
2303
2304 \end_inset
2305
2306 ファイルが必要であることを示します。
2307 \end_layout
2308
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 nice
2316 \end_layout
2317
2318 \end_inset
2319
2320  バックエンドからの
2321 \begin_inset Quotes erd
2322 \end_inset
2323
2324 nice
2325 \begin_inset Quotes erd
2326 \end_inset
2327
2328 なファイル、つまり\SpecialChar LyX
2329 が書き出す\SpecialChar LaTeX
2330 ファイルのように、
2331 \begin_inset Flex Code
2332 status open
2333
2334 \begin_layout Plain Layout
2335 input@path
2336 \end_layout
2337
2338 \end_inset
2339
2340 のない\SpecialChar LaTeX
2341 ファイルを必要とします。
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 xml
2351 \end_layout
2352
2353 \end_inset
2354
2355  出力がXMLであることを示します。
2356 \end_layout
2357
2358 \begin_layout Standard
2359 以下の3つのフラグは 
2360 \begin_inset Flex MenuItem
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 key
2365 \begin_inset space ~
2366 \end_inset
2367
2368 =
2369 \begin_inset space ~
2370 \end_inset
2371
2372 value
2373 \end_layout
2374
2375 \end_inset
2376
2377 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2378 \end_layout
2379
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 parselog
2387 \end_layout
2388
2389 \end_inset
2390
2391  これを指定すると、変換子の標準エラーが
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 infile.out
2397 \end_layout
2398
2399 \end_inset
2400
2401 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2402 \begin_inset Flex Code
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406 script < infile.out > infile.log
2407 \end_layout
2408
2409 \end_inset
2410
2411 の形で実行されるようになります。引数には
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 $$s
2417 \end_layout
2418
2419 \end_inset
2420
2421 を指定することができます。
2422 \end_layout
2423
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Flex Code
2427 status collapsed
2428
2429 \begin_layout Plain Layout
2430 resultdir
2431 \end_layout
2432
2433 \end_inset
2434
2435  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2436 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2437 ピーします。引数には、
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442 $$b
2443 \end_layout
2444
2445 \end_inset
2446
2447 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2448 \begin_inset Newline newline
2449 \end_inset
2450
2451 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2452 \end_layout
2453
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2456 \begin_inset Flex Code
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 resultfile
2461 \end_layout
2462
2463 \end_inset
2464
2465  これは出力ファイル名を指定するもので、
2466 \begin_inset Flex Code
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 $$b
2471 \end_layout
2472
2473 \end_inset
2474
2475 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2476 \end_layout
2477
2478 \begin_layout Standard
2479 最後の3つは、\SpecialChar LyX
2480 とともに導入される変換子には、現在いずれも使用されておりません。
2481 \end_layout
2482
2483 \begin_layout Standard
2484 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2485 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2486 はPostScrip
2487 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2488 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2489 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2490 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2491 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2492 設定は、\SpecialChar LaTeX
2493 からPDFへ変換するのに、以下の3つの方法を
2494 用意しています。
2495 \end_layout
2496
2497 \begin_layout Enumerate
2498 直接
2499 \begin_inset Flex MenuItem
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 pdflatex
2504 \end_layout
2505
2506 \end_inset
2507
2508 を使用するもの
2509 \end_layout
2510
2511 \begin_layout Enumerate
2512 (DVIと)PostScriptを経由して
2513 \begin_inset Flex MenuItem
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 ps2pdf
2518 \end_layout
2519
2520 \end_inset
2521
2522 を使用するもの
2523 \end_layout
2524
2525 \begin_layout Enumerate
2526 DVI経由で
2527 \begin_inset Flex MenuItem
2528 status collapsed
2529
2530 \begin_layout Plain Layout
2531 dvipdfm
2532 \end_layout
2533
2534 \end_inset
2535
2536 を使用するもの
2537 \end_layout
2538
2539 \begin_layout Enumerate
2540 直接
2541 \begin_inset Flex MenuItem
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 Xe\SpecialChar TeX
2546
2547 \end_layout
2548
2549 \end_inset
2550
2551 を使用するもの
2552 \end_layout
2553
2554 \begin_layout Enumerate
2555 直接
2556 \begin_inset Flex MenuItem
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 Lua\SpecialChar TeX
2561
2562 \end_layout
2563
2564 \end_inset
2565
2566 を使用するもの
2567 \end_layout
2568
2569 \begin_layout Standard
2570 このように代替連鎖を定義するには、第
2571 \begin_inset CommandInset ref
2572 LatexCommand ref
2573 reference "sec:ファイル形式"
2574
2575 \end_inset
2576
2577 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2578 \begin_inset Flex MenuItem
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582 pdf
2583 \end_layout
2584
2585 \end_inset
2586
2587 (
2588 \begin_inset Flex MenuItem
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 ps2pdf
2593 \end_layout
2594
2595 \end_inset
2596
2597 用)・
2598 \begin_inset Flex MenuItem
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 pdf2
2603 \end_layout
2604
2605 \end_inset
2606
2607 (
2608 \begin_inset Flex MenuItem
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 pdflatex
2613 \end_layout
2614
2615 \end_inset
2616
2617 用)・
2618 \begin_inset Flex MenuItem
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 pdf3
2623 \end_layout
2624
2625 \end_inset
2626
2627 (
2628 \begin_inset Flex MenuItem
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 dvipdfm
2633 \end_layout
2634
2635 \end_inset
2636
2637 用)・
2638 \begin_inset Flex MenuItem
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642 pdf4
2643 \end_layout
2644
2645 \end_inset
2646
2647 (
2648 \begin_inset Flex MenuItem
2649 status collapsed
2650
2651 \begin_layout Plain Layout
2652 Xe\SpecialChar TeX
2653
2654 \end_layout
2655
2656 \end_inset
2657
2658 用)・
2659 \begin_inset Flex MenuItem
2660 status collapsed
2661
2662 \begin_layout Plain Layout
2663 pdf5
2664 \end_layout
2665
2666 \end_inset
2667
2668 (
2669 \begin_inset Flex MenuItem
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 Lua\SpecialChar TeX
2674
2675 \end_layout
2676
2677 \end_inset
2678
2679 用\SpecialChar softhyphen
2680 ) と命名された形式が定義されていて、すべて共通の拡張子
2681 \begin_inset Flex MenuItem
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 .pdf
2686 \end_layout
2687
2688 \end_inset
2689
2690 を持ち、上記で言及した各変換方法に対応しています。
2691 \end_layout
2692
2693 \begin_layout Chapter
2694 \SpecialChar LyX
2695 の各国語対応
2696 \begin_inset CommandInset label
2697 LatexCommand label
2698 name "cha:LyXの各国語対応"
2699
2700 \end_inset
2701
2702
2703 \end_layout
2704
2705 \begin_layout Standard
2706 \SpecialChar LyX
2707 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2708 は30言語の翻訳を提供しています。選択した言語は、使用する
2709 \emph on
2710 ロケール
2711 \emph default
2712 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 locale(5)
2718 \end_layout
2719
2720 \end_inset
2721
2722 から見ると良いかもしれません)。
2723 \end_layout
2724
2725 \begin_layout Standard
2726 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2727 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2728 \begin_inset Flex Ruby
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 捷径
2733 \begin_inset Argument post:1
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 ショートカット
2738 \end_layout
2739
2740 \end_inset
2741
2742
2743 \end_layout
2744
2745 \end_inset
2746
2747 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2748 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2749 \begin_inset Foot
2750 status collapsed
2751
2752 \begin_layout Plain Layout
2753 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2754 コミュニティに報いるたいへん素晴らしい方法です!
2755 \end_layout
2756
2757 \end_inset
2758
2759 —は、\SpecialChar LyX
2760 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2761 \end_layout
2762
2763 \begin_layout Section
2764 \SpecialChar LyX
2765 を翻訳する
2766 \end_layout
2767
2768 \begin_layout Subsection
2769 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2770 \begin_inset Argument 1
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 GUI(テキストメッセージ)を翻訳する
2775 \end_layout
2776
2777 \end_inset
2778
2779
2780 \end_layout
2781
2782 \begin_layout Standard
2783 \SpecialChar LyX
2784 は、操作画面の国際化対応にGNU 
2785 \begin_inset Flex Code
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 gettext
2790 \end_layout
2791
2792 \end_inset
2793
2794 ライブラリを使用します。\SpecialChar LyX
2795 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2796 \begin_inset Flex Code
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800 po
2801 \end_layout
2802
2803 \end_inset
2804
2805 ファイルが必要です。このファイルが利用可能であれば、そこから
2806 \begin_inset Flex Code
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 mo
2811 \end_layout
2812
2813 \end_inset
2814
2815 ファイルを生成して、この
2816 \begin_inset Flex Code
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 mo
2821 \end_layout
2822
2823 \end_inset
2824
2825 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2826 \begin_inset Flex Code
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 gettext
2831 \end_layout
2832
2833 \end_inset
2834
2835 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2836 コミュニティの他の人々と分かち
2837 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2838 開発者メーリングリストにメールを送ってください。
2839 \end_layout
2840
2841 \begin_layout Standard
2842 要約すれば、以下のように行います(xxは言語コードを表します)。
2843 \end_layout
2844
2845 \begin_layout Itemize
2846 \SpecialChar LyX
2847 ソースコードをチェックアウトしてください(
2848 \begin_inset CommandInset href
2849 LatexCommand href
2850 name "ウェブ上の情報"
2851 target "http://www.lyx.org/HowToUseGIT"
2852
2853 \end_inset
2854
2855 参照)。
2856 \end_layout
2857
2858 \begin_layout Itemize
2859 \begin_inset Flex Code
2860 status collapsed
2861
2862 \begin_layout Plain Layout
2863 lyx.pot
2864 \end_layout
2865
2866 \end_inset
2867
2868 ファイルを
2869 \begin_inset Flex Code
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 **.po
2874 \end_layout
2875
2876 \end_inset
2877
2878 ファイルのあるフォルダにコピーして、
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 xx.po
2884 \end_layout
2885
2886 \end_inset
2887
2888 に名前を付け替えてください(
2889 \begin_inset Flex Code
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893 lyx.pot
2894 \end_layout
2895
2896 \end_inset
2897
2898 がどこにもない場合には、コンソールからそのディレクトリで
2899 \begin_inset Flex Code
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 make lyx.pot
2904 \end_layout
2905
2906 \end_inset
2907
2908 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2909 \end_layout
2910
2911 \begin_layout Itemize
2912 \begin_inset Flex Code
2913 status collapsed
2914
2915 \begin_layout Plain Layout
2916 xx.po
2917 \end_layout
2918
2919 \end_inset
2920
2921 を編集します。
2922 \begin_inset Foot
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2927 \family typewriter
2928 Poedit
2929 \family default
2930 (全プラットフォーム用)や
2931 \family typewriter
2932 KBabel
2933 \family default
2934 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2935 \family typewriter
2936 Emacs
2937 \family default
2938 にも
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 ファイルを編集するための「モード」があります、第
2949 \begin_inset Flex URL
2950 status open
2951
2952 \begin_layout Plain Layout
2953
2954 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2955 \backslash
2956 #PO-Mode
2957 \end_layout
2958
2959 \end_inset
2960
2961
2962 \end_layout
2963
2964 \end_inset
2965
2966 メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
2967 \begin_inset Flex Ruby
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 捷径
2972 \begin_inset Argument post:1
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 ショートカット
2977 \end_layout
2978
2979 \end_inset
2980
2981
2982 \end_layout
2983
2984 \end_inset
2985
2986 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 po
2992 \end_layout
2993
2994 \end_inset
2995
2996 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2997 \end_layout
2998
2999 \begin_layout Standard
3000 もし、あなたがこれを自身のためだけに行っているのであれば、
3001 \end_layout
3002
3003 \begin_layout Itemize
3004 \begin_inset Flex Code
3005 status collapsed
3006
3007 \begin_layout Plain Layout
3008 xx.mo
3009 \end_layout
3010
3011 \end_inset
3012
3013 を生成してください。これは
3014 \begin_inset Flex Code
3015 status collapsed
3016
3017 \begin_layout Plain Layout
3018 msgfmt -o xx.mo < xx.po
3019 \end_layout
3020
3021 \end_inset
3022
3023 でできます。
3024 \end_layout
3025
3026 \begin_layout Itemize
3027 この
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 mo
3033 \end_layout
3034
3035 \end_inset
3036
3037 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 lyx.mo
3043 \end_layout
3044
3045 \end_inset
3046
3047 という名称にしてください(例:
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3053 \end_layout
3054
3055 \end_inset
3056
3057 )。
3058 \end_layout
3059
3060 \begin_layout Standard
3061 しかしながら前述のように、この新しい
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 po
3067 \end_layout
3068
3069 \end_inset
3070
3071 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3072 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3073 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3074 グリストに電子メールを送ってください。
3075 \end_layout
3076
3077 \begin_layout Subsubsection
3078 多義訳語メッセージ
3079 \end_layout
3080
3081 \begin_layout Standard
3082 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3083 \begin_inset Flex Code
3084 status collapsed
3085
3086 \begin_layout Plain Layout
3087 To
3088 \end_layout
3089
3090 \end_inset
3091
3092 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 gettext
3098 \end_layout
3099
3100 \end_inset
3101
3102 は、このような多義訳語を
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 To
3108 \end_layout
3109
3110 \end_inset
3111
3112 の代わりに、
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 To[[as in 'From format x to format y']]
3118 \end_layout
3119
3120 \end_inset
3121
3122
3123 \begin_inset Flex Code
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 To[[as in 'From page x to page y']]
3128 \end_layout
3129
3130 \end_inset
3131
3132 としなくてはなりません。これによって、これら2つの
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 To
3138 \end_layout
3139
3140 \end_inset
3141
3142 は、
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3153 \end_layout
3154
3155 \begin_layout Standard
3156 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3157 の翻訳機構
3158 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3159 \end_layout
3160
3161 \begin_layout Subsection
3162 説明書を翻訳する
3163 \end_layout
3164
3165 \begin_layout Standard
3166
3167 \begin_inset Flex MenuItem
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 Help
3172 \end_layout
3173
3174 \end_inset
3175
3176 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3177 \begin_inset Foot
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3182 \end_layout
3183
3184 \end_inset
3185
3186 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3187 はこれを自動的に使用します。\SpecialChar LyX
3188 は、翻訳版を
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3194 \end_layout
3195
3196 \end_inset
3197
3198
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 xx
3204 \end_layout
3205
3206 \end_inset
3207
3208 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 DocName
3214 \end_layout
3215
3216 \end_inset
3217
3218 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3219 うべきです。
3220 \end_layout
3221
3222 \begin_layout Itemize
3223 説明書翻訳ウェブページ
3224 \begin_inset CommandInset href
3225 LatexCommand href
3226 name "http://www.lyx.org/Translation"
3227 target "http://www.lyx.org/Translation"
3228
3229 \end_inset
3230
3231 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3232 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3233 \end_layout
3234
3235 \begin_layout Standard
3236 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3237 \end_layout
3238
3239 \begin_layout Itemize
3240 文書化チームに所属してください!そのための情報が
3241 \begin_inset Flex Code
3242 status collapsed
3243
3244 \begin_layout Plain Layout
3245 Intro.lyx
3246 \end_layout
3247
3248 \end_inset
3249
3250
3251 \begin_inset Flex MenuItem
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 ヘルプ\SpecialChar menuseparator
3256 はじめの一歩
3257 \end_layout
3258
3259 \end_inset
3260
3261 )にあります。また、この
3262 \begin_inset Flex Code
3263 status collapsed
3264
3265 \begin_layout Plain Layout
3266 Intro.lyx
3267 \end_layout
3268
3269 \end_inset
3270
3271 が最初に訳すべき文書です。
3272 \end_layout
3273
3274 \begin_layout Itemize
3275 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3276 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3277 \emph on
3278 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3279 \emph default
3280
3281 \end_layout
3282
3283 \begin_layout Itemize
3284 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 UserDir/doc/xx/
3290 \end_layout
3291
3292 \end_inset
3293
3294 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3295 \begin_inset Newline newline
3296 \end_inset
3297
3298
3299 \lang english
3300
3301 \begin_inset Note Greyedout
3302 status open
3303
3304 \begin_layout Plain Layout
3305
3306 \series bold
3307 \lang english
3308 Note:
3309 \series default
3310  For a complex document with external material (images, etc.), if you make
3311  a copy e.
3312 \begin_inset space \thinspace{}
3313 \end_inset
3314
3315 g.
3316 \begin_inset space \space{}
3317 \end_inset
3318
3319 in a temp dir, beware that the links to external material may be broken
3320  when the document is moved to a different place.
3321  The best way is to retrieve the \SpecialChar LyX
3322  tree from git (see 
3323 \begin_inset Flex URL
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327
3328 http://www.lyx.org/HowToUseGIT
3329 \end_layout
3330
3331 \end_inset
3332
3333 ) and to edit the doc file in place.
3334 \end_layout
3335
3336 \end_inset
3337
3338
3339 \end_layout
3340
3341 \begin_layout Itemize
3342 (\SpecialChar LyX
3343 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3344 \begin_inset CommandInset href
3345 LatexCommand href
3346 name "http://www.lyx.org/trac/timeline"
3347 target "http://www.lyx.org/trac/timeline"
3348
3349 \end_inset
3350
3351 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3352 \end_layout
3353
3354 \begin_layout Standard
3355 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3356 \end_layout
3357
3358 \begin_layout Standard
3359 \begin_inset Branch OutDated
3360 status collapsed
3361
3362 \begin_layout Section
3363 International Keyboard Support
3364 \end_layout
3365
3366 \begin_layout Standard
3367
3368 \emph on
3369 [Editor's Note: The following section is by
3370 \emph default
3371  
3372 \shape smallcaps
3373 \emph on
3374 Ivan Schreter
3375 \shape default
3376 .
3377  It needs to be fixed to conform to the new Documentation Style sheet and
3378  to make use of the new v1.0 features.
3379  The whole thing also needs to be merged with the section following it.-jw
3380  It may also be badly out of date.-rh (2008)]
3381 \end_layout
3382
3383 \begin_layout Subsection
3384 Defining Own Keymaps: Keymap File Format
3385 \end_layout
3386
3387 \begin_layout Standard
3388 Let's look at a keyboard definition file a little closer.
3389  It is a plain text file defining
3390 \end_layout
3391
3392 \begin_layout Itemize
3393 key-to-key or key-to-string translations
3394 \end_layout
3395
3396 \begin_layout Itemize
3397 dead keys
3398 \end_layout
3399
3400 \begin_layout Itemize
3401 dead keys exceptions
3402 \end_layout
3403
3404 \begin_layout Standard
3405 To define key-to-key or key-to-string translation, use this command:
3406 \end_layout
3407
3408 \begin_layout Quotation
3409 \begin_inset Flex Code
3410 status collapsed
3411
3412 \begin_layout Plain Layout
3413
3414 \backslash
3415 kmap
3416 \end_layout
3417
3418 \end_inset
3419
3420  
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 key
3426 \end_layout
3427
3428 \end_inset
3429
3430  outstring 
3431 \end_layout
3432
3433 \begin_layout Standard
3434 where 
3435 \begin_inset Flex Code
3436 status collapsed
3437
3438 \begin_layout Plain Layout
3439 key
3440 \end_layout
3441
3442 \end_inset
3443
3444  is the key to be translated and 
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449 outstring
3450 \end_layout
3451
3452 \end_inset
3453
3454  is the string to be inserted into the document.
3455  To define dead keys, use:
3456 \end_layout
3457
3458 \begin_layout Quotation
3459 \begin_inset Flex Code
3460 status collapsed
3461
3462 \begin_layout Plain Layout
3463
3464 \backslash
3465 kmod
3466 \end_layout
3467
3468 \end_inset
3469
3470  
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 key
3476 \end_layout
3477
3478 \end_inset
3479
3480  deadkey
3481 \end_layout
3482
3483 \begin_layout Standard
3484 where 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 key
3490 \end_layout
3491
3492 \end_inset
3493
3494  is a keyboard key and 
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499 deadkey
3500 \end_layout
3501
3502 \end_inset
3503
3504  is dead key name.
3505  The following dead keys are supported (shortcut name is in parentheses):
3506 \end_layout
3507
3508 \begin_layout Quotation
3509
3510 \emph on
3511 Name
3512 \begin_inset space \hfill{}
3513 \end_inset
3514
3515 Example
3516 \end_layout
3517
3518 \begin_layout Quotation
3519 acute (acu)
3520 \begin_inset space \hfill{}
3521 \end_inset
3522
3523
3524 \lang english
3525 áéíóú
3526 \end_layout
3527
3528 \begin_layout Quotation
3529 grave (gra)
3530 \begin_inset space \hfill{}
3531 \end_inset
3532
3533
3534 \lang english
3535 àèìòù
3536 \end_layout
3537
3538 \begin_layout Quotation
3539 macron (mac)
3540 \begin_inset space \hfill{}
3541 \end_inset
3542
3543
3544 \lang english
3545  ō
3546 \end_layout
3547
3548 \begin_layout Quotation
3549 tilde (til)
3550 \begin_inset space \hfill{}
3551 \end_inset
3552
3553
3554 \lang english
3555 ñÑ
3556 \end_layout
3557
3558 \begin_layout Quotation
3559 underbar (underb)
3560 \begin_inset space \hfill{}
3561 \end_inset
3562
3563
3564 \begin_inset ERT
3565 status open
3566
3567 \begin_layout Plain Layout
3568
3569
3570 \backslash
3571 b o
3572 \end_layout
3573
3574 \end_inset
3575
3576
3577 \end_layout
3578
3579 \begin_layout Quotation
3580 cedilla (ced)
3581 \begin_inset space \hfill{}
3582 \end_inset
3583
3584
3585 \lang english
3586 çÇ
3587 \end_layout
3588
3589 \begin_layout Quotation
3590 underdot (underd)
3591 \begin_inset space \hfill{}
3592 \end_inset
3593
3594
3595 \begin_inset ERT
3596 status open
3597
3598 \begin_layout Plain Layout
3599
3600
3601 \backslash
3602 d o
3603 \end_layout
3604
3605 \end_inset
3606
3607
3608 \end_layout
3609
3610 \begin_layout Quotation
3611 circumflex (circu)
3612 \begin_inset space \hfill{}
3613 \end_inset
3614
3615
3616 \lang english
3617 âêîôû
3618 \end_layout
3619
3620 \begin_layout Quotation
3621 circle (circl)
3622 \begin_inset space \hfill{}
3623 \end_inset
3624
3625
3626 \lang english
3627 ÅůŮ
3628 \end_layout
3629
3630 \begin_layout Quotation
3631 tie (tie)
3632 \begin_inset space \hfill{}
3633 \end_inset
3634
3635
3636 \begin_inset ERT
3637 status open
3638
3639 \begin_layout Plain Layout
3640
3641
3642 \backslash
3643 t o
3644 \end_layout
3645
3646 \end_inset
3647
3648
3649 \end_layout
3650
3651 \begin_layout Quotation
3652 breve (bre)
3653 \begin_inset space \hfill{}
3654 \end_inset
3655
3656
3657 \lang english
3658 ă
3659 \lang japanese
3660
3661 \begin_inset ERT
3662 status open
3663
3664 \begin_layout Plain Layout
3665
3666
3667 \backslash
3668 u o
3669 \end_layout
3670
3671 \end_inset
3672
3673
3674 \end_layout
3675
3676 \begin_layout Quotation
3677 caron (car)
3678 \begin_inset space \hfill{}
3679 \end_inset
3680
3681
3682 \lang english
3683 čšž
3684 \end_layout
3685
3686 \begin_layout Quotation
3687 hungarian umlaut (hug)
3688 \begin_inset space \hfill{}
3689 \end_inset
3690
3691
3692 \lang english
3693 őű
3694 \end_layout
3695
3696 \begin_layout Quotation
3697 umlaut (uml)
3698 \begin_inset space \hfill{}
3699 \end_inset
3700
3701
3702 \lang english
3703 äöü
3704 \end_layout
3705
3706 \begin_layout Quotation
3707 dot (dot)
3708 \begin_inset space \hfill{}
3709 \end_inset
3710
3711
3712 \lang english
3713 ż
3714 \lang japanese
3715
3716 \begin_inset ERT
3717 status open
3718
3719 \begin_layout Plain Layout
3720
3721
3722 \backslash
3723 .s
3724 \end_layout
3725
3726 \end_inset
3727
3728
3729 \end_layout
3730
3731 \begin_layout Standard
3732 Since in many international keyboards there are exceptions to what some
3733  dead keys should do, you can define them using
3734 \end_layout
3735
3736 \begin_layout Quotation
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741
3742 \backslash
3743 kxmod
3744 \end_layout
3745
3746 \end_inset
3747
3748  deadkey key outstring
3749 \end_layout
3750
3751 \begin_layout Standard
3752 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3753 , so you put in
3754 \end_layout
3755
3756 \begin_layout Quotation
3757 \begin_inset Flex Code
3758 status collapsed
3759
3760 \begin_layout Plain Layout
3761
3762 \backslash
3763 kxmod
3764 \end_layout
3765
3766 \end_inset
3767
3768  caron o "
3769 \backslash
3770 ^o"
3771 \end_layout
3772
3773 \begin_layout Standard
3774 to make it work correctly.
3775  Also, you have to define as exceptions dead keys over i and j, to remove
3776  the dot from them before inserting an accent mark.
3777  I will change this when the time comes, but so far I haven't had time.
3778 \end_layout
3779
3780 \begin_layout Standard
3781 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3782  double backslash.
3783  Also, quotes and 
3784 \begin_inset Flex Code
3785 status collapsed
3786
3787 \begin_layout Plain Layout
3788 #
3789 \end_layout
3790
3791 \end_inset
3792
3793  have different meaning.
3794  
3795 \begin_inset Flex Code
3796 status collapsed
3797
3798 \begin_layout Plain Layout
3799 #
3800 \end_layout
3801
3802 \end_inset
3803
3804  marks comments, quotes start and end \SpecialChar LaTeX
3805 -style commands.
3806  To enter quote, you'll need to use 
3807 \begin_inset Flex Code
3808 status collapsed
3809
3810 \begin_layout Plain Layout
3811
3812 \backslash
3813 "
3814 \end_layout
3815
3816 \end_inset
3817
3818 , to enter 
3819 \begin_inset Flex Code
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 #
3824 \end_layout
3825
3826 \end_inset
3827
3828 , use 
3829 \begin_inset Flex Code
3830 status collapsed
3831
3832 \begin_layout Plain Layout
3833
3834 \backslash
3835 #
3836 \end_layout
3837
3838 \end_inset
3839
3840 .
3841 \end_layout
3842
3843 \begin_layout Standard
3844 If you make a keyboard description file that works for your language, please
3845  mail it to me, so I can include it in the next keymap distribution.
3846 \end_layout
3847
3848 \begin_layout Standard
3849 More keywords will be supported in keymap configuration file in future,
3850  like
3851 \end_layout
3852
3853 \begin_layout Itemize
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858
3859 \backslash
3860 kinclude filename
3861 \end_layout
3862
3863 \end_inset
3864
3865
3866 \emph on
3867
3868 \begin_inset space \hfill{}
3869 \end_inset
3870
3871
3872 \begin_inset Flex Code
3873 status collapsed
3874
3875 \begin_layout Plain Layout
3876 include
3877 \end_layout
3878
3879 \end_inset
3880
3881  another file
3882 \end_layout
3883
3884 \begin_layout Itemize
3885 \begin_inset Flex Code
3886 status collapsed
3887
3888 \begin_layout Plain Layout
3889
3890 \backslash
3891 kprog program
3892 \end_layout
3893
3894 \end_inset
3895
3896
3897 \emph on
3898
3899 \begin_inset space \hfill{}
3900 \end_inset
3901
3902
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 define
3908 \end_layout
3909
3910 \end_inset
3911
3912  an external keymap translation program 
3913 \end_layout
3914
3915 \begin_layout Standard
3916 Also, it should look into 
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 lyxrc
3922 \end_layout
3923
3924 \end_inset
3925
3926  file for defaults, too (for example, a 
3927 \begin_inset Flex Code
3928 status collapsed
3929
3930 \begin_layout Plain Layout
3931
3932 \backslash
3933 kinclude
3934 \end_layout
3935
3936 \end_inset
3937
3938  option to include default keyboard).
3939 \end_layout
3940
3941 \end_inset
3942
3943
3944 \end_layout
3945
3946 \begin_layout Section
3947 国際キー配列
3948 \begin_inset CommandInset label
3949 LatexCommand label
3950 name "sec:国際キー配列"
3951
3952 \end_inset
3953
3954
3955 \end_layout
3956
3957 \begin_layout Standard
3958 \begin_inset Note Note
3959 status open
3960
3961 \begin_layout Plain Layout
3962 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3963 \end_layout
3964
3965 \begin_layout Plain Layout
3966 (RH)
3967 \end_layout
3968
3969 \end_inset
3970
3971
3972 \end_layout
3973
3974 \begin_layout Standard
3975 以下の2節では、
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 .kmap
3981 \end_layout
3982
3983 \end_inset
3984
3985 および
3986 \begin_inset Flex Code
3987 status collapsed
3988
3989 \begin_layout Plain Layout
3990 .cdef
3991 \end_layout
3992
3993 \end_inset
3994
3995 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3996 \end_layout
3997
3998 \begin_layout Subsection
3999 .kmapファイル
4000 \end_layout
4001
4002 \begin_layout Standard
4003 \begin_inset Flex Code
4004 status collapsed
4005
4006 \begin_layout Plain Layout
4007 .kmap
4008 \end_layout
4009
4010 \end_inset
4011
4012 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
4013 \begin_inset Flex Code
4014 status collapsed
4015
4016 \begin_layout Plain Layout
4017 .kmap
4018 \end_layout
4019
4020 \end_inset
4021
4022 ファイルは、以下の各項で説明するように、
4023 \begin_inset Flex Code
4024 status collapsed
4025
4026 \begin_layout Plain Layout
4027 kmap
4028 \end_layout
4029
4030 \end_inset
4031
4032
4033 \begin_inset Flex Code
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037 kmod
4038 \end_layout
4039
4040 \end_inset
4041
4042
4043 \begin_inset Flex Code
4044 status collapsed
4045
4046 \begin_layout Plain Layout
4047 ksmod
4048 \end_layout
4049
4050 \end_inset
4051
4052
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 kcomb
4058 \end_layout
4059
4060 \end_inset
4061
4062 のキーワードを定義します。
4063 \end_layout
4064
4065 \begin_layout Labeling
4066 \labelwidthstring 00.00.0000
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 kmap
4072 \end_layout
4073
4074 \end_inset
4075
4076  文字を文字列に割り当てる
4077 \end_layout
4078
4079 \begin_layout LyX-Code
4080
4081 \backslash
4082 kmap 
4083 \family roman
4084 \emph on
4085 文字
4086 \family default
4087 \emph default
4088  
4089 \family roman
4090 \emph on
4091 文字列
4092 \end_layout
4093
4094 \begin_layout Standard
4095 これは、
4096 \emph on
4097 文字
4098 \emph default
4099
4100 \emph on
4101 文字列
4102 \emph default
4103 に割り当てます。
4104 \emph on
4105 文字列
4106 \emph default
4107 中では、二重引用符(")とバックスラッシュ(
4108 \backslash
4109 )は、前にバックスラッシュ(
4110 \backslash
4111 )を付けてエスケープしなくてはならないことに注意してください。
4112 \end_layout
4113
4114 \begin_layout Standard
4115 \begin_inset Flex MenuItem
4116 status collapsed
4117
4118 \begin_layout Plain Layout
4119 &
4120 \end_layout
4121
4122 \end_inset
4123
4124 を打鍵すると
4125 \begin_inset Flex MenuItem
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129 /
4130 \end_layout
4131
4132 \end_inset
4133
4134 記号が出力される
4135 \begin_inset Flex MenuItem
4136 status collapsed
4137
4138 \begin_layout Plain Layout
4139 kmap
4140 \end_layout
4141
4142 \end_inset
4143
4144 ステートメントを、一例としてあげると、
4145 \end_layout
4146
4147 \begin_layout LyX-Code
4148
4149 \backslash
4150 kmap & /
4151 \end_layout
4152
4153 \begin_layout Standard
4154 のようになります。
4155 \end_layout
4156
4157 \begin_layout Labeling
4158 \labelwidthstring 00.00.0000
4159 \begin_inset Flex Code
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163 kmod
4164 \end_layout
4165
4166 \end_inset
4167
4168  アクセント文字を指定する
4169 \end_layout
4170
4171 \begin_layout LyX-Code
4172
4173 \backslash
4174 kmod 
4175 \family roman
4176 \emph on
4177 文字 アクセント 許可文字
4178 \end_layout
4179
4180 \begin_layout Standard
4181 これは
4182 \emph on
4183 文字
4184 \emph default
4185
4186 \emph on
4187 許可文字
4188 \emph default
4189 のアクセントとするものです。これはデッドキー
4190 \begin_inset Foot
4191 status collapsed
4192
4193 \begin_layout Plain Layout
4194
4195 \emph on
4196 デッドキー
4197 \emph default
4198 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4199 \emph on
4200 ä
4201 \emph default
4202 のようなウムラウトのついた文字は、このようにして出すことができます。
4203 \end_layout
4204
4205 \end_inset
4206
4207 機構です。
4208 \end_layout
4209
4210 \begin_layout Standard
4211
4212 \emph on
4213 文字
4214 \emph default
4215 を打鍵してから
4216 \emph on
4217 許可文字
4218 \emph default
4219 にないキーを打鍵すると、
4220 \emph on
4221 文字
4222 \emph default
4223 の後に許可文字ではないその文字が出力として表示されます。
4224 \begin_inset Flex MenuItem
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228 Backspace
4229 \end_layout
4230
4231 \end_inset
4232
4233 はデッドキーを取り消しますので、
4234 \emph on
4235 文字
4236 \emph default
4237
4238 \begin_inset Flex MenuItem
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242 Backspace
4243 \end_layout
4244
4245 \end_inset
4246
4247 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4248 \end_layout
4249
4250 \begin_layout Standard
4251 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4252 \end_layout
4253
4254 \begin_layout LyX-Code
4255
4256 \backslash
4257 kmod ' acute aeiouAEIOU
4258 \end_layout
4259
4260 \begin_layout Labeling
4261 \labelwidthstring 00.00.0000
4262 \begin_inset Flex Code
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 ksmod
4267 \end_layout
4268
4269 \end_inset
4270
4271  アクセント文字に例外を指定する
4272 \end_layout
4273
4274 \begin_layout LyX-Code
4275
4276 \backslash
4277 kxmod  
4278 \family roman
4279 \emph on
4280 アクセント 文字 結果
4281 \end_layout
4282
4283 \begin_layout Standard
4284 これは
4285 \emph on
4286 文字
4287 \emph default
4288 上の
4289 \emph on
4290 アクセント
4291 \emph default
4292 について例外を指定するものです。ここで
4293 \emph on
4294 アクセント
4295 \emph default
4296 には、前出の
4297 \begin_inset Flex Code
4298 status collapsed
4299
4300 \begin_layout Plain Layout
4301
4302 \backslash
4303 kmod
4304 \end_layout
4305
4306 \end_inset
4307
4308 宣言で打鍵キーを既に割り当てられてなくてはならず、
4309 \emph on
4310 文字
4311 \emph default
4312
4313 \emph on
4314 アクセント
4315 \emph default
4316
4317 \emph on
4318 許可文字
4319 \emph default
4320 の集合に属していてはなりません。こうして
4321 \emph on
4322 アクセント
4323 \emph default
4324
4325 \emph on
4326 文字
4327 \emph default
4328 の順に入力すると、
4329 \emph on
4330 結果
4331 \emph default
4332 が出力されるようになります。
4333 \begin_inset Flex Code
4334 status collapsed
4335
4336 \begin_layout Plain Layout
4337 .kmap
4338 \end_layout
4339
4340 \end_inset
4341
4342 ファイルにこの宣言がない場合には、
4343 \emph on
4344 アクセント
4345 \emph default
4346
4347 \emph on
4348 文字
4349 \emph default
4350 と入力すると、
4351 \emph on
4352 アクセントキー
4353 \emph default
4354
4355 \emph on
4356 文字
4357 \emph default
4358
4359 \emph on
4360 アクセントキー
4361 \emph default
4362
4363 \begin_inset Flex Code
4364 status collapsed
4365
4366 \begin_layout Plain Layout
4367
4368 \backslash
4369 kmod
4370 \end_layout
4371
4372 \end_inset
4373
4374 宣言の最初の変数)と出力されます。
4375 \end_layout
4376
4377 \begin_layout Standard
4378 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4379 \end_layout
4380
4381 \begin_layout LyX-Code
4382
4383 \backslash
4384 kxmod acute i "
4385 \backslash
4386
4387 \backslash
4388 '{
4389 \backslash
4390
4391 \backslash
4392 i}"
4393 \end_layout
4394
4395 \begin_layout Labeling
4396 \labelwidthstring 00.00.0000
4397 \begin_inset Flex Code
4398 status collapsed
4399
4400 \begin_layout Plain Layout
4401 kcomb
4402 \end_layout
4403
4404 \end_inset
4405
4406  2つのアクセント文字を結合する
4407 \end_layout
4408
4409 \begin_layout LyX-Code
4410
4411 \backslash
4412 kcomb 
4413 \family roman
4414 \emph on
4415 アクセント1 アクセント2 許可文字
4416 \end_layout
4417
4418 \begin_layout Standard
4419 これはなかなか難解になってきます。これは
4420 \emph on
4421 アクセント1
4422 \emph default
4423
4424 \emph on
4425 アクセント2
4426 \emph default
4427 を(この順番で)結びつけて、
4428 \emph on
4429 許可文字
4430 \emph default
4431 に効果を及ぼすようにします。
4432 \emph on
4433 アクセント1
4434 \emph default
4435
4436 \emph on
4437 アクセント2
4438 \emph default
4439 の打鍵キーは、ファイル内のこのコマンド
4440 \emph on
4441 よりも前に
4442 \emph default
4443
4444 \begin_inset Flex Code
4445 status collapsed
4446
4447 \begin_layout Plain Layout
4448
4449 \backslash
4450 kmod
4451 \end_layout
4452
4453 \end_inset
4454
4455 コマンドで設定されていなくてはなりません。
4456 \end_layout
4457
4458 \begin_layout Standard
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 greek.kmap
4464 \end_layout
4465
4466 \end_inset
4467
4468 ファイル上にある例をとってみましょう。
4469 \end_layout
4470
4471 \begin_layout LyX-Code
4472
4473 \backslash
4474 kmod ; acute aeioyvhAEIOYVH 
4475 \backslash
4476 kmod : umlaut iyIY 
4477 \backslash
4478 kcomb acute umlaut iyIY
4479 \end_layout
4480
4481 \begin_layout Standard
4482 これは
4483 \begin_inset Flex MenuItem
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487 ;:i
4488 \end_layout
4489
4490 \end_inset
4491
4492 を押すと
4493 \begin_inset Flex Code
4494 status collapsed
4495
4496 \begin_layout Plain Layout
4497
4498 \backslash
4499 '{
4500 \backslash
4501 "{i}}
4502 \end_layout
4503
4504 \end_inset
4505
4506 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4507 \begin_inset Flex MenuItem
4508 status collapsed
4509
4510 \begin_layout Plain Layout
4511 ;: Backspace i
4512 \end_layout
4513
4514 \end_inset
4515
4516 と押した場合には、
4517 \begin_inset Flex Code
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521
4522 \backslash
4523 '{i}
4524 \end_layout
4525
4526 \end_inset
4527
4528 となります。
4529 \end_layout
4530
4531 \begin_layout Subsection
4532 .cdefファイル
4533 \end_layout
4534
4535 \begin_layout Standard
4536 \begin_inset Flex Code
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 .kmap
4541 \end_layout
4542
4543 \end_inset
4544
4545 による割り当てが行われた後、
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 .cdef
4551 \end_layout
4552
4553 \end_inset
4554
4555 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4556 頒布版には、現在のところ、少なくとも
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561 iso8859-1.cdef
4562 \end_layout
4563
4564 \end_inset
4565
4566 ファイルと
4567 \begin_inset Flex Code
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 iso8859-2.cdef
4572 \end_layout
4573
4574 \end_inset
4575
4576 ファイルが含まれています。
4577 \end_layout
4578
4579 \begin_layout Standard
4580 一般的に
4581 \begin_inset Flex Code
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585 .cdef
4586 \end_layout
4587
4588 \end_inset
4589
4590 ファイルは、
4591 \end_layout
4592
4593 \begin_layout LyX-Code
4594
4595 \family roman
4596 \emph on
4597 セット中の文字番号
4598 \family default
4599 \emph default
4600  
4601 \family roman
4602 \emph on
4603  文字列
4604 \end_layout
4605
4606 \begin_layout Standard
4607 という形の宣言の羅列です。たとえば、
4608 \begin_inset Flex MenuItem
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612
4613 \backslash
4614 '{e}
4615 \end_layout
4616
4617 \end_inset
4618
4619 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4620 \end_layout
4621
4622 \begin_layout LyX-Code
4623 233 "
4624 \backslash
4625
4626 \backslash
4627 '{e}"
4628 \end_layout
4629
4630 \begin_layout Standard
4631 ここで、
4632 \emph on
4633 文字列
4634 \emph default
4635 中の
4636 \begin_inset Flex Code
4637 status collapsed
4638
4639 \begin_layout Plain Layout
4640
4641 \backslash
4642
4643 \end_layout
4644
4645 \end_inset
4646
4647
4648 \begin_inset Flex Code
4649 status collapsed
4650
4651 \begin_layout Plain Layout
4652 "
4653 \end_layout
4654
4655 \end_inset
4656
4657 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4658 \begin_inset Flex Code
4659 status collapsed
4660
4661 \begin_layout Plain Layout
4662 iso-8859-7.cdef
4663 \end_layout
4664
4665 \end_inset
4666
4667 ファイルには、
4668 \end_layout
4669
4670 \begin_layout LyX-Code
4671 192 "
4672 \backslash
4673
4674 \backslash
4675 '{
4676 \backslash
4677
4678 \backslash
4679
4680 \backslash
4681 "{i}}"
4682 \begin_inset Newline newline
4683 \end_inset
4684
4685 192 "
4686 \backslash
4687
4688 \backslash
4689
4690 \backslash
4691 "{
4692 \backslash
4693
4694 \backslash
4695 '{i}}"
4696 \end_layout
4697
4698 \begin_layout Standard
4699 という例があります。\SpecialChar LyX
4700 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4701 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4702 \end_layout
4703
4704 \begin_layout Subsection
4705 デッドキー
4706 \end_layout
4707
4708 \begin_layout Standard
4709 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4710 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4711 \end_layout
4712
4713 \begin_layout Standard
4714 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4715 \begin_inset Flex Code
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719 lyxrc
4720 \end_layout
4721
4722 \end_inset
4723
4724 ファイル中で、
4725 \begin_inset Flex MenuItem
4726 status collapsed
4727
4728 \begin_layout Plain Layout
4729 ^
4730 \end_layout
4731
4732 \end_inset
4733
4734 キー(すなわち
4735 \begin_inset Flex MenuItem
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739 Shift-6
4740 \end_layout
4741
4742 \end_inset
4743
4744 キー)を、\SpecialChar LyX
4745 コマンドの
4746 \begin_inset Flex Code
4747 status collapsed
4748
4749 \begin_layout Plain Layout
4750 accent-circumflex
4751 \end_layout
4752
4753 \end_inset
4754
4755 に結びつけることができます。すると
4756 \begin_inset Flex MenuItem
4757 status collapsed
4758
4759 \begin_layout Plain Layout
4760 ^
4761 \end_layout
4762
4763 \end_inset
4764
4765 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4766 \begin_inset Flex MenuItem
4767 status collapsed
4768
4769 \begin_layout Plain Layout
4770 ^e
4771 \end_layout
4772
4773 \end_inset
4774
4775 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4776 \begin_inset Flex MenuItem
4777 status collapsed
4778
4779 \begin_layout Plain Layout
4780 ^t
4781 \end_layout
4782
4783 \end_inset
4784
4785 」と打鍵したならば、「
4786 \begin_inset Flex MenuItem
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 t
4791 \end_layout
4792
4793 \end_inset
4794
4795 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4796 はビープを鳴らして文句を付けます。デッドキーの後に
4797 \begin_inset Flex MenuItem
4798 status collapsed
4799
4800 \begin_layout Plain Layout
4801 スペース
4802 \end_layout
4803
4804 \end_inset
4805
4806 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4807 あります。たとえば、
4808 \begin_inset Flex MenuItem
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812 ,キー
4813 \end_layout
4814
4815 \end_inset
4816
4817 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4818 \end_layout
4819
4820 \begin_layout Standard
4821 デッドキーを割り当てるのによく用いられる方法は、
4822 \begin_inset Flex MenuItem
4823 status collapsed
4824
4825 \begin_layout Plain Layout
4826 Meta-
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \begin_inset Flex MenuItem
4833 status collapsed
4834
4835 \begin_layout Plain Layout
4836 Ctrl-
4837 \end_layout
4838
4839 \end_inset
4840
4841
4842 \begin_inset Flex MenuItem
4843 status collapsed
4844
4845 \begin_layout Plain Layout
4846 Shift-
4847 \end_layout
4848
4849 \end_inset
4850
4851 キーを、「
4852 \begin_inset Flex MenuItem
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856 ~
4857 \end_layout
4858
4859 \end_inset
4860
4861 」・「
4862 \begin_inset Flex MenuItem
4863 status collapsed
4864
4865 \begin_layout Plain Layout
4866 ,
4867 \end_layout
4868
4869 \end_inset
4870
4871 」・「
4872 \begin_inset Flex MenuItem
4873 status collapsed
4874
4875 \begin_layout Plain Layout
4876 ^
4877 \end_layout
4878
4879 \end_inset
4880
4881 」のようなアクセントと一緒に用いる方法です。また、
4882 \begin_inset Flex Code
4883 status collapsed
4884
4885 \begin_layout Plain Layout
4886 xmodmap
4887 \end_layout
4888
4889 \end_inset
4890
4891
4892 \begin_inset Flex Code
4893 status collapsed
4894
4895 \begin_layout Plain Layout
4896 xkeycaps
4897 \end_layout
4898
4899 \end_inset
4900
4901 を使って、特別な
4902 \begin_inset Flex Code
4903 status collapsed
4904
4905 \begin_layout Plain Layout
4906 Mode_Switch
4907 \end_layout
4908
4909 \end_inset
4910
4911 キーを設定する方法もあります。
4912 \begin_inset Flex Code
4913 status collapsed
4914
4915 \begin_layout Plain Layout
4916 Mode_Switch
4917 \end_layout
4918
4919 \end_inset
4920
4921 キーは、ちょうど
4922 \begin_inset Flex MenuItem
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926 Shift
4927 \end_layout
4928
4929 \end_inset
4930
4931 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 usldead_cedilla
4937 \end_layout
4938
4939 \end_inset
4940
4941 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
4942 コマンドに割り当てることもできます
4943 \begin_inset Foot
4944 status collapsed
4945
4946 \begin_layout Plain Layout
4947
4948 \noun on
4949 John Weiss
4950 \noun default
4951 からの註:これはまさに私が、自分の
4952 \begin_inset Flex Code
4953 status collapsed
4954
4955 \begin_layout Plain Layout
4956 ~/.lyx/lyxrc
4957 \end_layout
4958
4959 \end_inset
4960
4961
4962 \begin_inset Flex Code
4963 status collapsed
4964
4965 \begin_layout Plain Layout
4966 ~/.xmodmap
4967 \end_layout
4968
4969 \end_inset
4970
4971 で行っていることです。私は、
4972 \begin_inset Flex MenuItem
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 Scroll
4977 \begin_inset space ~
4978 \end_inset
4979
4980 Lock
4981 \end_layout
4982
4983 \end_inset
4984
4985 キーを
4986 \begin_inset Flex Code
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 Mode_Shift
4991 \end_layout
4992
4993 \end_inset
4994
4995 に仕立てて、多数の
4996 \begin_inset Flex Code
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 usldead_*
5001 \end_layout
5002
5003 \end_inset
5004
5005 シンボリックキーを
5006 \begin_inset Flex MenuItem
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 Scroll
5011 \begin_inset space ~
5012 \end_inset
5013
5014 Lock-^
5015 \end_layout
5016
5017 \end_inset
5018
5019
5020 \begin_inset Flex MenuItem
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024 Scroll
5025 \begin_inset space ~
5026 \end_inset
5027
5028 Lock-~
5029 \end_layout
5030
5031 \end_inset
5032
5033 などに割り当てています。私はこの方法でアクセント文字を入力しています。
5034 \end_layout
5035
5036 \end_inset
5037
5038 。この
5039 \begin_inset Flex Code
5040 status collapsed
5041
5042 \begin_layout Plain Layout
5043 Mode_Switch
5044 \end_layout
5045
5046 \end_inset
5047
5048 キーには、
5049 \begin_inset Flex MenuItem
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053 Ctrl-
5054 \end_layout
5055
5056 \end_inset
5057
5058 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5059 コマンドについては、
5060 \emph on
5061 \SpecialChar LyX
5062 関数説明書
5063 \emph default
5064
5065 \begin_inset Flex Code
5066 status collapsed
5067
5068 \begin_layout Plain Layout
5069 LFUN_ACCENT_*
5070 \end_layout
5071
5072 \end_inset
5073
5074 の項をご覧ください。ここには完備した一覧があります。
5075 \end_layout
5076
5077 \begin_layout Subsection
5078 自分の言語設定を保存する
5079 \end_layout
5080
5081 \begin_layout Standard
5082 \begin_inset Flex MenuItem
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086 ツール\SpecialChar menuseparator
5087 設定
5088 \end_layout
5089
5090 \end_inset
5091
5092 ダイアログを使えば、\SpecialChar LyX
5093 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5094 \end_layout
5095
5096 \begin_layout Chapter
5097 文書クラス・レイアウト・ひな型の新規導入
5098 \begin_inset CommandInset label
5099 LatexCommand label
5100 name "cha:新規文書を導入"
5101
5102 \end_inset
5103
5104
5105 \begin_inset Argument 1
5106 status collapsed
5107
5108 \begin_layout Plain Layout
5109 文書クラスを新規に導入する
5110 \end_layout
5111
5112 \end_inset
5113
5114
5115 \end_layout
5116
5117 \begin_layout Standard
5118 この章では、新しく\SpecialChar LyX
5119 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5120 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5121 します。
5122 \end_layout
5123
5124 \begin_layout Standard
5125 まず、\SpecialChar LyX
5126 と\SpecialChar LaTeX
5127 の間の関係をどのように考えるべきか、若干の註釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5128 は、La\SpecialChar TeX
5129 について何も知らないと
5130 云うことです。実際のところ、\SpecialChar LyX
5131 の観点からは、\SpecialChar LaTeX
5132 は、\SpecialChar LyX
5133 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5134 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5135 は、とくに重要な形式ですが、\SpecialChar LyX
5136 がLa\SpecialChar TeX
5137 について持っている情報のほとんどは、実はプログラム本体には含まれて
5138 いないのです
5139 \begin_inset Foot
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143 過度に複雑なため、\SpecialChar LyX
5144 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5145 \end_layout
5146
5147 \end_inset
5148
5149 。このような情報は、
5150 \begin_inset Flex Code
5151 status collapsed
5152
5153 \begin_layout Plain Layout
5154 article.cls
5155 \end_layout
5156
5157 \end_inset
5158
5159 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5160 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5161 が知っていることは、レイア
5162 ウトファイルの中にあります。
5163 \end_layout
5164
5165 \begin_layout Standard
5166 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5167 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5168 構成体・DocBook構成体・XHTML構成体との
5169 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5170
5171 \begin_inset Flex Code
5172 status collapsed
5173
5174 \begin_layout Plain Layout
5175 article.cls
5176 \end_layout
5177
5178 \end_inset
5179
5180 について知っていることのほとんど総ては、
5181 \begin_inset Flex Code
5182 status collapsed
5183
5184 \begin_layout Plain Layout
5185 article.layout
5186 \end_layout
5187
5188 \end_inset
5189
5190 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5191 としては、
5192 \begin_inset Flex Code
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196 article.layout
5197 \end_layout
5198
5199 \end_inset
5200
5201
5202 \begin_inset Flex Code
5203 status collapsed
5204
5205 \begin_layout Plain Layout
5206 book.layout
5207 \end_layout
5208
5209 \end_inset
5210
5211 や、文書クラス用の他のレイアウトファイルに取り込まれている
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216 stdsections.inc
5217 \end_layout
5218
5219 \end_inset
5220
5221 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226 stdsections.inc
5227 \end_layout
5228
5229 \end_inset
5230
5231 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5232 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5233 に知らせるものです。基本的に
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 article.layout
5239 \end_layout
5240
5241 \end_inset
5242
5243 ファイルは、これらの
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248 std*.inc
5249 \end_layout
5250
5251 \end_inset
5252
5253 ファイルを取り込んでいるだけのものです。
5254 \end_layout
5255
5256 \begin_layout Standard
5257 しかしながら、\SpecialChar LyX
5258 –\SpecialChar LaTeX
5259 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5260 構成体自身が画面上にどのように表
5261 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5262 ます。ある段落様式を\SpecialChar LaTeX
5263 に翻訳する仕方を\SpecialChar LyX
5264 に指示することは、その表示の仕方を\SpecialChar LyX
5265 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5266 に指示することは、その段落様
5267 式をどのように\SpecialChar LaTeX
5268 に翻訳するかを\SpecialChar LyX
5269 に指示するものではありません(ましてや\SpecialChar LaTeX
5270 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5271 構成体を定義する際には、(
5272 i)
5273 \begin_inset space ~
5274 \end_inset
5275
5276 \SpecialChar LaTeX
5277 にどのように翻訳するかを\SpecialChar LyX
5278 に指示する、(ii)
5279 \begin_inset space ~
5280 \end_inset
5281
5282 それをどのように表示するかを\SpecialChar LyX
5283 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5284 \end_layout
5285
5286 \begin_layout Standard
5287 もちろん、\SpecialChar LyX
5288 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5289 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5290 力するにあたって、当該段落を\SpecialChar LyX
5291 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5292 が内部的に行うことと、外部的に行う物事の間の区
5293 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5294 \begin_inset CommandInset ref
5295 LatexCommand ref
5296 reference "sec:XHTML出力のタグ"
5297
5298 \end_inset
5299
5300 節をご覧ください。
5301 \end_layout
5302
5303 \begin_layout Section
5304 新しい\SpecialChar LaTeX
5305 ファイルの導入
5306 \end_layout
5307
5308 \begin_layout Standard
5309 頒布版によっては、\SpecialChar LyX
5310 で使いたい\SpecialChar LaTeX
5311 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5312 パッケージである、Foil\SpecialChar TeX
5313 がないかもしれません。\SpecialChar TeX
5314 Live(2008年以降)やMiK\SpecialChar TeX
5315 のような最近の\SpecialChar LaTeX
5316 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5317 ースが用意されています。たとえば、MiK\SpecialChar TeX
5318 では、付属の「Package
5319 \begin_inset space ~
5320 \end_inset
5321
5322 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5323 ださい。
5324 \end_layout
5325
5326 \begin_layout Standard
5327 お使いの\SpecialChar LaTeX
5328 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5329 してください。
5330 \end_layout
5331
5332 \begin_layout Enumerate
5333 \begin_inset CommandInset href
5334 LatexCommand href
5335 name "CTAN"
5336 target "http://www.ctan.org/"
5337
5338 \end_inset
5339
5340 などから欲しいパッケージを入手してください。
5341 \end_layout
5342
5343 \begin_layout Enumerate
5344 パッケージに「
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349 .ins
5350 \end_layout
5351
5352 \end_inset
5353
5354 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5355 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5356 \begin_inset Flex Code
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360 latex foiltex.ins
5361 \end_layout
5362
5363 \end_inset
5364
5365 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5366 パッケージは圧縮されていないので、このステップは飛ばすこ
5367 とができます。
5368 \end_layout
5369
5370 \begin_layout Enumerate
5371 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5372 \begin_inset Separator parbreak
5373 \end_inset
5374
5375
5376 \end_layout
5377
5378 \begin_deeper
5379 \begin_layout Enumerate
5380 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5381 ツリーに導入し、そうでなければ「ユー
5382 ザー」\SpecialChar TeX
5383 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5384 \begin_inset Flex Code
5385 status collapsed
5386
5387 \begin_layout Plain Layout
5388 texmf.cnf
5389 \end_layout
5390
5391 \end_inset
5392
5393 ファイルを参照してください
5394 \begin_inset Foot
5395 status collapsed
5396
5397 \begin_layout Plain Layout
5398 このファイルは、通常
5399 \family sans
5400 $TEXMF/web2c
5401 \family default
5402 ディレクトリにありますが、コマンド
5403 \begin_inset Flex Code
5404 status collapsed
5405
5406 \begin_layout Plain Layout
5407 kpsewhich texmf.cnf
5408 \end_layout
5409
5410 \end_inset
5411
5412 を実行してその場所を見つけることもできます。
5413 \end_layout
5414
5415 \end_inset
5416
5417 。「ローカル」\SpecialChar TeX
5418 ツリーの場所は、
5419 \begin_inset Flex Code
5420 status collapsed
5421
5422 \begin_layout Plain Layout
5423 TEXMFLOCAL
5424 \end_layout
5425
5426 \end_inset
5427
5428 変数で定義されており、通常は
5429 \begin_inset Flex Code
5430 status collapsed
5431
5432 \begin_layout Plain Layout
5433 /usr/local/share/texmf/
5434 \end_layout
5435
5436 \end_inset
5437
5438
5439 \lang english
5440 or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
5441 Live
5442  distribution.
5443 \lang japanese
5444 のような場所になっています。「ユーザー」\SpecialChar TeX
5445 ツリーの場所は、
5446 \begin_inset Flex Code
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 TEXMFHOME
5451 \end_layout
5452
5453 \end_inset
5454
5455 で定義されており、通常は
5456 \begin_inset Flex Code
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460 $HOME/texmf/
5461 \end_layout
5462
5463 \end_inset
5464
5465
5466 \lang english
5467  or 
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472
5473 \family sans
5474 \lang french
5475 $HOME/.texliveXXXX
5476 \end_layout
5477
5478 \end_inset
5479
5480 .
5481 \lang japanese
5482 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5483 、「ユーザー」ツリーにはこのような制限はありません。
5484 \begin_inset Newline newline
5485 \end_inset
5486
5487 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5488 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5489 \end_layout
5490
5491 \begin_layout Enumerate
5492 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5493 の導入されているフォルダのサブフォルダ
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 ~
5499 \backslash
5500 tex
5501 \backslash
5502 latex
5503 \end_layout
5504
5505 \end_inset
5506
5507 に移動します(MiK\SpecialChar TeX
5508 の既定値では、これは
5509 \begin_inset Flex Code
5510 status collapsed
5511
5512 \begin_layout Plain Layout
5513 ~:Programs
5514 \backslash
5515 MiKTeX
5516 \backslash
5517 tex
5518 \backslash
5519 latex
5520 \end_layout
5521
5522 \end_inset
5523
5524 です)
5525 \begin_inset Foot
5526 status open
5527
5528 \begin_layout Plain Layout
5529 これは、英語版でのみ正しいパスになっています。独語版では
5530 \begin_inset Flex Code
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 ~:Programme
5535 \backslash
5536 MiKTeX
5537 \backslash
5538 tex
5539 \backslash
5540 latex
5541 \end_layout
5542
5543 \end_inset
5544
5545 となり、他の言語でも同様です。
5546 \end_layout
5547
5548 \end_inset
5549
5550 。ここに新規フォルダ
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555 foiltex
5556 \end_layout
5557
5558 \end_inset
5559
5560 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5561 フォルダで同じ
5562 ことを行います。たとえばMiK\SpecialChar TeX
5563
5564 \begin_inset space ~
5565 \end_inset
5566
5567 2.8では、これはWinXP上では
5568 \begin_inset Newline newline
5569 \end_inset
5570
5571
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 ~:
5577 \backslash
5578 Documents and Settings
5579 \backslash
5580 <ユーザー名>
5581 \backslash
5582 Application Data
5583 \backslash
5584
5585 \end_layout
5586
5587 \end_inset
5588
5589
5590 \begin_inset Newline newline
5591 \end_inset
5592
5593
5594 \begin_inset Phantom HPhantom
5595 status open
5596
5597 \begin_layout Plain Layout
5598
5599 \family typewriter
5600 ~:
5601 \backslash
5602
5603 \end_layout
5604
5605 \end_inset
5606
5607
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612 MiKTeX
5613 \backslash
5614 2.8
5615 \backslash
5616 tex
5617 \backslash
5618 latex
5619 \end_layout
5620
5621 \end_inset
5622
5623
5624 \begin_inset Newline newline
5625 \end_inset
5626
5627 フォルダ、WinVista上では
5628 \begin_inset Newline newline
5629 \end_inset
5630
5631
5632 \begin_inset Flex Code
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636 ~:
5637 \backslash
5638 Users
5639 \backslash
5640 <ユーザー名>
5641 \backslash
5642 AppData
5643 \backslash
5644 Roaming
5645 \backslash
5646 2.8
5647 \backslash
5648 MiKTeX
5649 \backslash
5650 tex
5651 \backslash
5652 latex
5653 \end_layout
5654
5655 \end_inset
5656
5657
5658 \begin_inset Newline newline
5659 \end_inset
5660
5661 フォルダになります。
5662 \end_layout
5663
5664 \end_deeper
5665 \begin_layout Enumerate
5666 ここまで来れば、あとは\SpecialChar LaTeX
5667 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5668 頒布版に依存します。
5669 \begin_inset Separator parbreak
5670 \end_inset
5671
5672
5673 \end_layout
5674
5675 \begin_deeper
5676 \begin_layout Enumerate
5677 \SpecialChar TeX
5678 Liveの場合には、コンソールから
5679 \begin_inset Flex Code
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 texhash
5684 \end_layout
5685
5686 \end_inset
5687
5688 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5689 \end_layout
5690
5691 \begin_layout Enumerate
5692 MiK\SpecialChar TeX
5693 では、パッケージを全ユーザー用に導入した場合には、「Settings
5694 \begin_inset space ~
5695 \end_inset
5696
5697 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5698
5699 \end_layout
5700
5701 \end_deeper
5702 \begin_layout Enumerate
5703 最後に、\SpecialChar LyX
5704 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5705 からツール\SpecialChar menuseparator
5706 環境構成メニューを実行して、\SpecialChar LyX
5707 を再起動します。
5708 \end_layout
5709
5710 \begin_layout Standard
5711 これでパッケージが導入されました。この例では、文書クラス
5712 \begin_inset Flex Code
5713 status collapsed
5714
5715 \begin_layout Plain Layout
5716 Slides
5717 \begin_inset space ~
5718 \end_inset
5719
5720 (FoilTeX)
5721 \end_layout
5722
5723 \end_inset
5724
5725
5726 \begin_inset Flex MenuItem
5727 status collapsed
5728
5729 \begin_layout Plain Layout
5730 文書\SpecialChar menuseparator
5731 設定\SpecialChar menuseparator
5732 文書クラス
5733 \end_layout
5734
5735 \end_inset
5736
5737 で利用可能になっているはずです。
5738 \end_layout
5739
5740 \begin_layout Standard
5741 \begin_inset Flex MenuItem
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 文書\SpecialChar menuseparator
5746 設定\SpecialChar menuseparator
5747 文書クラス
5748 \end_layout
5749
5750 \end_inset
5751
5752 メニューに列挙されてもいない\SpecialChar LaTeX
5753 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5754 \end_layout
5755
5756 \begin_layout Section
5757 レイアウトファイルの型
5758 \end_layout
5759
5760 \begin_layout Standard
5761 この節は、レイアウト情報を含む各種\SpecialChar LyX
5762 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5763 がそれらをどのように
5764 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5765 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5766 \end_layout
5767
5768 \begin_layout Standard
5769 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5770 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5771 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5772 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5773 を出していますので、気軽に質問を投げかけてみてください。
5774 \end_layout
5775
5776 \begin_layout Standard
5777 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5778 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5779 文書クラス用の\SpecialChar LyX
5780 レイアウトを作ったり、
5781 他の人々にも有用なモジュールをお書きになった場合には、
5782 \begin_inset CommandInset href
5783 LatexCommand href
5784 name "LyX Wikiのレイアウトに関する節"
5785 target "http://wiki.lyx.org/Layouts/Layouts"
5786
5787 \end_inset
5788
5789 か、\SpecialChar LyX
5790 開発者メーリングリストに投稿して、\SpecialChar LyX
5791 頒布版に同梱することができるようにしてください
5792 \begin_inset Foot
5793 status collapsed
5794
5795 \begin_layout Plain Layout
5796 \SpecialChar LyX
5797 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5798 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5799 \end_layout
5800
5801 \end_inset
5802
5803
5804 \end_layout
5805
5806 \begin_layout Subsection
5807 レイアウトモジュール
5808 \begin_inset CommandInset label
5809 LatexCommand label
5810 name "subsec:レイアウトモジュール"
5811
5812 \end_inset
5813
5814
5815 \end_layout
5816
5817 \begin_layout Standard
5818 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5819 、それは
5820 \begin_inset Flex Code
5821 status collapsed
5822
5823 \begin_layout Plain Layout
5824 .layout
5825 \end_layout
5826
5827 \end_inset
5828
5829 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5830 に提供するものを指します。しかしながら、\SpecialChar LyX
5831  1.6以降、レイアウト情報は、拡張子が
5832 \begin_inset Flex Code
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836 .module
5837 \end_layout
5838
5839 \end_inset
5840
5841 のレイアウト
5842 \emph on
5843 モジュール
5844 \emph default
5845 にも含めることができます。レイアウトが\SpecialChar LaTeX
5846 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5847 パッケージに対応するものであり、
5848 \begin_inset Flex Code
5849 status collapsed
5850
5851 \begin_layout Plain Layout
5852 endnotes
5853 \end_layout
5854
5855 \end_inset
5856
5857 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5858 イアウトで使用できるという意味において、一面、
5859 \begin_inset Flex Code
5860 status collapsed
5861
5862 \begin_layout Plain Layout
5863 stdsections.inc
5864 \end_layout
5865
5866 \end_inset
5867
5868 等のインクルードファイル
5869 \begin_inset Foot
5870 status collapsed
5871
5872 \begin_layout Plain Layout
5873 これらは任意の拡張子をつけることができますが、慣習的に
5874 \begin_inset Flex Code
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 .inc
5879 \end_layout
5880
5881 \end_inset
5882
5883 拡張子が用いられます。
5884 \end_layout
5885
5886 \end_inset
5887
5888 のようなものです。相異なる点といえば、
5889 \begin_inset Flex Code
5890 status collapsed
5891
5892 \begin_layout Plain Layout
5893 article.cls
5894 \end_layout
5895
5896 \end_inset
5897
5898 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5899 \begin_inset Flex MenuItem
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 文書\SpecialChar menuseparator
5904 設定
5905 \end_layout
5906
5907 \end_inset
5908
5909 ダイアログで選択するだけですみます。
5910 \end_layout
5911
5912 \begin_layout Standard
5913 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5914 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5915 \end_layout
5916
5917 \begin_layout Standard
5918 新しいモジュールを作成し、それを
5919 \begin_inset Flex Code
5920 status collapsed
5921
5922 \begin_layout Plain Layout
5923 layout/
5924 \end_layout
5925
5926 \end_inset
5927
5928 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
5929 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
5930 \begin_inset Flex MenuItem
5931 status collapsed
5932
5933 \begin_layout Plain Layout
5934 文書\SpecialChar menuseparator
5935 設定
5936 \end_layout
5937
5938 \end_inset
5939
5940 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5941 \emph on
5942 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5943 \emph default
5944 。もっと言えば、
5945 \emph on
5946 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5947 \emph default
5948 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
5949 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
5950 とがあるからです。
5951 \end_layout
5952
5953 \begin_layout Subsubsection
5954 ローカルレイアウト
5955 \end_layout
5956
5957 \begin_layout Standard
5958 \SpecialChar LyX
5959 に於けるモジュールは、\SpecialChar LaTeX
5960 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
5961 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
5962 \end_layout
5963
5964 \begin_layout Standard
5965 これは、
5966 \family sans
5967 文書\SpecialChar menuseparator
5968 設定\SpecialChar menuseparator
5969 ローカルのレイアウト
5970 \family default
5971 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5972 は、その文書専属のモジュールだと考えることができます。したがって、
5973 \begin_inset Flex Code
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 Format
5978 \end_layout
5979
5980 \end_inset
5981
5982 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5983  2.1では、最新書式は48です)。また、
5984 ローカルレイアウトは、\SpecialChar LyX
5985  1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
5986  1.5またはそれ以前の版に(ローカルレイアウト
5987 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5988 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
5989  1.6で使用できるレイアウト要素のみを使用してください。
5990 \end_layout
5991
5992 \begin_layout Standard
5993 \begin_inset Flex Code
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 ローカルのレイアウト
5998 \end_layout
5999
6000 \end_inset
6001
6002 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
6003 ているかどうかが検証されます。すると、\SpecialChar LyX
6004 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
6005 をターミナル(
6006 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
6007 \end_layout
6008
6009 \begin_layout Standard
6010 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
6011 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
6012 \end_layout
6013
6014 \begin_layout Subsection
6015 \begin_inset Flex MenuItem
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 .sty
6020 \end_layout
6021
6022 \end_inset
6023
6024 ファイル用のレイアウト
6025 \end_layout
6026
6027 \begin_layout Standard
6028 新しく\SpecialChar LaTeX
6029 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
6030 クラス(
6031 \begin_inset Flex Code
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 .cls
6036 \end_layout
6037
6038 \end_inset
6039
6040 )ファイルが絡む場合と、スタイル(
6041 \begin_inset Flex Code
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 .sty
6046 \end_layout
6047
6048 \end_inset
6049
6050 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
6051 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
6052 が当てはまります。
6053 \end_layout
6054
6055 \begin_layout Standard
6056 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
6057 \begin_inset Flex MenuItem
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 myclass.sty
6062 \end_layout
6063
6064 \end_inset
6065
6066 という名称で、標準的なクラスである
6067 \begin_inset Flex MenuItem
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 report.cls
6072 \end_layout
6073
6074 \end_inset
6075
6076 と共に用いられるものと仮定しましょう。
6077 \end_layout
6078
6079 \begin_layout Standard
6080 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6081 \begin_inset Foot
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6086 では、起動時に
6087 \begin_inset Flex MenuItem
6088 status collapsed
6089
6090 \begin_layout Plain Layout
6091 -userdir
6092 \end_layout
6093
6094 \end_inset
6095
6096 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6097 \end_layout
6098
6099 \end_inset
6100
6101
6102 \end_layout
6103
6104 \begin_layout LyX-Code
6105 cp report.layout ~/.lyx/layouts/myclass.layout
6106 \end_layout
6107
6108 \begin_layout Standard
6109 それから、
6110 \begin_inset Flex Code
6111 status collapsed
6112
6113 \begin_layout Plain Layout
6114 myclass.layout
6115 \end_layout
6116
6117 \end_inset
6118
6119 を編集して、
6120 \end_layout
6121
6122 \begin_layout LyX-Code
6123
6124 \backslash
6125 DeclareLaTeXClass{report}
6126 \end_layout
6127
6128 \begin_layout Standard
6129 という行を
6130 \end_layout
6131
6132 \begin_layout LyX-Code
6133
6134 \backslash
6135 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6136 \end_layout
6137
6138 \begin_layout Standard
6139 のように変更してください。それから、ファイル冒頭辺りに
6140 \end_layout
6141
6142 \begin_layout LyX-Code
6143 Preamble 
6144 \begin_inset Newline newline
6145 \end_inset
6146
6147     
6148 \backslash
6149 usepackage{myclass}
6150 \begin_inset Newline newline
6151 \end_inset
6152
6153 EndPreamble
6154 \end_layout
6155
6156 \begin_layout Standard
6157 と書き加えてください。
6158 \end_layout
6159
6160 \begin_layout Standard
6161 \SpecialChar LyX
6162 を起動して
6163 \begin_inset Flex MenuItem
6164 status collapsed
6165
6166 \begin_layout Plain Layout
6167 ツール\SpecialChar menuseparator
6168 環境構成
6169 \end_layout
6170
6171 \end_inset
6172
6173 を選択してください。それから\SpecialChar LyX
6174 を再起動し、新規文書を作成してみてください。すると、
6175 \begin_inset Flex MenuItem
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179 文書\SpecialChar menuseparator
6180 設定
6181 \end_layout
6182
6183 \end_inset
6184
6185 ダイアログの文書クラスオプションに「
6186 \begin_inset Flex MenuItem
6187 status collapsed
6188
6189 \begin_layout Plain Layout
6190 report (myclass)
6191 \end_layout
6192
6193 \end_inset
6194
6195 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6196 \begin_inset Flex Code
6197 status collapsed
6198
6199 \begin_layout Plain Layout
6200 report
6201 \end_layout
6202
6203 \end_inset
6204
6205 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6206 \begin_inset Flex Code
6207 status collapsed
6208
6209 \begin_layout Plain Layout
6210 stdsections.inc
6211 \end_layout
6212
6213 \end_inset
6214
6215 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6216 \begin_inset Flex Code
6217 status collapsed
6218
6219 \begin_layout Plain Layout
6220 stdsections.inc
6221 \end_layout
6222
6223 \end_inset
6224
6225 も取り込む
6226 \begin_inset Flex Code
6227 status collapsed
6228
6229 \begin_layout Plain Layout
6230 Input stdclass.inc
6231 \end_layout
6232
6233 \end_inset
6234
6235 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6236 \end_layout
6237
6238 \begin_layout LyX-Code
6239 Style Chapter
6240 \end_layout
6241
6242 \begin_layout LyX-Code
6243     Font
6244 \end_layout
6245
6246 \begin_layout LyX-Code
6247         Family Sans
6248 \end_layout
6249
6250 \begin_layout LyX-Code
6251     EndFont
6252 \end_layout
6253
6254 \begin_layout LyX-Code
6255 End
6256 \end_layout
6257
6258 \begin_layout Standard
6259 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6260 \end_layout
6261
6262 \begin_layout Standard
6263 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6264 いては、第
6265 \begin_inset CommandInset ref
6266 LatexCommand ref
6267 reference "sec:テキストクラス"
6268
6269 \end_inset
6270
6271 節の情報を参照してください。
6272 \end_layout
6273
6274 \begin_layout Standard
6275 もし
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 myclass.sty
6281 \end_layout
6282
6283 \end_inset
6284
6285 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6286 う。最も簡単なモジュールの例としては、以下のようなものになります。
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290 #
6291 \backslash
6292 DeclareLyXModule{My Package}
6293 \end_layout
6294
6295 \begin_layout LyX-Code
6296 #DescriptionBegin
6297 \end_layout
6298
6299 \begin_layout LyX-Code
6300 #Support for mypkg.sty.
6301 \end_layout
6302
6303 \begin_layout LyX-Code
6304 #DescriptionEnd
6305 \begin_inset Newline newline
6306 \end_inset
6307
6308
6309 \end_layout
6310
6311 \begin_layout LyX-Code
6312 Format 35
6313 \begin_inset Newline newline
6314 \end_inset
6315
6316
6317 \end_layout
6318
6319 \begin_layout LyX-Code
6320 Preamble
6321 \begin_inset Newline newline
6322 \end_inset
6323
6324     
6325 \backslash
6326 usepackage{mypkg}
6327 \begin_inset Newline newline
6328 \end_inset
6329
6330 EndPreamble
6331 \end_layout
6332
6333 \begin_layout Standard
6334 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6335 \begin_inset CommandInset ref
6336 LatexCommand ref
6337 reference "sec:テキストクラス"
6338
6339 \end_inset
6340
6341 節を参照してください。
6342 \end_layout
6343
6344 \begin_layout Subsection
6345 \begin_inset Flex MenuItem
6346 status collapsed
6347
6348 \begin_layout Plain Layout
6349 .cls
6350 \end_layout
6351
6352 \end_inset
6353
6354 ファイル用のレイアウト
6355 \end_layout
6356
6357 \begin_layout Standard
6358 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6359 \begin_inset Flex MenuItem
6360 status collapsed
6361
6362 \begin_layout Plain Layout
6363 book.cls
6364 \end_layout
6365
6366 \end_inset
6367
6368 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6369 \end_layout
6370
6371 \begin_layout LyX-Code
6372
6373 \backslash
6374 LoadClass{book}
6375 \end_layout
6376
6377 \begin_layout Standard
6378 という行がないかどうか探してください。もしこれがあれば、
6379 \begin_inset Flex Code
6380 status collapsed
6381
6382 \begin_layout Plain Layout
6383 Declare\SpecialChar LaTeX
6384 Class
6385 \end_layout
6386
6387 \end_inset
6388
6389 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6390 \begin_inset Flex Code
6391 status collapsed
6392
6393 \begin_layout Plain Layout
6394 thesis
6395 \end_layout
6396
6397 \end_inset
6398
6399 であり、
6400 \begin_inset Flex Code
6401 status collapsed
6402
6403 \begin_layout Plain Layout
6404 book
6405 \end_layout
6406
6407 \end_inset
6408
6409 クラスに基づいていれば、
6410 \begin_inset Flex Code
6411 status collapsed
6412
6413 \begin_layout Plain Layout
6414 Declare\SpecialChar LaTeX
6415 Class
6416 \end_layout
6417
6418 \end_inset
6419
6420 行は以下のようにします
6421 \begin_inset Foot
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425 さらに\SpecialChar LyX
6426 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6427 \begin_inset Flex Code
6428 status collapsed
6429
6430 \begin_layout Plain Layout
6431 thesis.layout
6432 \end_layout
6433
6434 \end_inset
6435
6436 という名前で保存するのが最も簡単です。 
6437 \end_layout
6438
6439 \end_inset
6440
6441
6442 \end_layout
6443
6444 \begin_layout LyX-Code
6445
6446 \backslash
6447 DeclareLaT
6448 \begin_inset ERT
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452
6453 {}
6454 \end_layout
6455
6456 \end_inset
6457
6458 eXClass[thesis,book]{thesis}
6459 \end_layout
6460
6461 \begin_layout Standard
6462 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6463 クラスを使用してい
6464 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6465 業の開始点としてください。
6466 \end_layout
6467
6468 \begin_layout Subsection
6469 ひな型を作成する
6470 \begin_inset CommandInset label
6471 LatexCommand label
6472 name "sec:ひな型を作成する"
6473
6474 \end_inset
6475
6476
6477 \end_layout
6478
6479 \begin_layout Standard
6480 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6481 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6482 添付のひな型をあれこれ見てみるのもよいでしょう。
6483 \end_layout
6484
6485 \begin_layout Standard
6486 ひな型は、通常の文書と同様、\SpecialChar LyX
6487 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6488 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6489 \begin_inset Flex Code
6490 status collapsed
6491
6492 \begin_layout Plain Layout
6493
6494 \backslash
6495 fontscheme
6496 \end_layout
6497
6498 \end_inset
6499
6500
6501 \begin_inset Flex Code
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505
6506 \backslash
6507 papersize
6508 \end_layout
6509
6510 \end_inset
6511
6512 などの対応するコマンドをひな型\SpecialChar LyX
6513 ファイルから取り除く必要があります。これは、たとえば
6514 \begin_inset Flex Code
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 vi
6519 \end_layout
6520
6521 \end_inset
6522
6523
6524 \begin_inset Flex Code
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528 notepad
6529 \end_layout
6530
6531 \end_inset
6532
6533 のような、どの軽いテキストエディタでも行うことができます。
6534 \end_layout
6535
6536 \begin_layout Standard
6537 編集したひな型を
6538 \begin_inset Flex Code
6539 status collapsed
6540
6541 \begin_layout Plain Layout
6542 UserDir/templates/
6543 \end_layout
6544
6545 \end_inset
6546
6547 に置き、グローバルなひな型ディレクトリ
6548 \begin_inset Flex Code
6549 status collapsed
6550
6551 \begin_layout Plain Layout
6552 LyXDir/templates/
6553 \end_layout
6554
6555 \end_inset
6556
6557 から使用したいものを同じ場所にコピーし、
6558 \begin_inset Flex MenuItem
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 ツール\SpecialChar menuseparator
6563 設定\SpecialChar menuseparator
6564 パス
6565 \end_layout
6566
6567 \end_inset
6568
6569 ダイアログのひな型パスを再定義してください。
6570 \end_layout
6571
6572 \begin_layout Standard
6573 ところで、特別な意味を持つひな型
6574 \begin_inset Flex Code
6575 status collapsed
6576
6577 \begin_layout Plain Layout
6578 defaults.lyx
6579 \end_layout
6580
6581 \end_inset
6582
6583 があることに注意してください。このひな型は、
6584 \begin_inset Flex MenuItem
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 ファイル\SpecialChar menuseparator
6589 新規
6590 \end_layout
6591
6592 \end_inset
6593
6594 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6595 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6596 開き、
6597 \begin_inset Flex MenuItem
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601 文書既定値として保存
6602 \end_layout
6603
6604 \end_inset
6605
6606 ボタンを押すことです。
6607 \end_layout
6608
6609 \begin_layout Subsection
6610 旧レイアウトファイルの更新
6611 \end_layout
6612
6613 \begin_layout Standard
6614 レイアウトファイルの書式は、\SpecialChar LyX
6615 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6616 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6617 は、
6618 自動的に変換ツール
6619 \begin_inset Flex Code
6620 status collapsed
6621
6622 \begin_layout Plain Layout
6623 \SpecialChar LyX
6624 Dir/scripts/layout2layout.py
6625 \end_layout
6626
6627 \end_inset
6628
6629 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6630 がこれを毎回行な
6631 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6632 \end_layout
6633
6634 \begin_layout Enumerate
6635 ファイル
6636 \begin_inset Flex Code
6637 status collapsed
6638
6639 \begin_layout Plain Layout
6640 myclass.layout
6641 \end_layout
6642
6643 \end_inset
6644
6645
6646 \begin_inset Flex Code
6647 status collapsed
6648
6649 \begin_layout Plain Layout
6650 myclass.old
6651 \end_layout
6652
6653 \end_inset
6654
6655 に改称
6656 \end_layout
6657
6658 \begin_layout Enumerate
6659 以下のコマンドをコール
6660 \begin_inset Newline newline
6661 \end_inset
6662
6663
6664 \begin_inset Flex Code
6665 status collapsed
6666
6667 \begin_layout Plain Layout
6668 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6669 \end_layout
6670
6671 \end_inset
6672
6673
6674 \begin_inset Newline newline
6675 \end_inset
6676
6677 ここで
6678 \begin_inset Flex Code
6679 status collapsed
6680
6681 \begin_layout Plain Layout
6682 LyXDir
6683 \end_layout
6684
6685 \end_inset
6686
6687 は\SpecialChar LyX
6688 システムディレクトリの名前です。
6689 \end_layout
6690
6691 \begin_layout Standard
6692 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6693 \end_layout
6694
6695 \begin_layout Section
6696 \begin_inset CommandInset label
6697 LatexCommand label
6698 name "sec:テキストクラス"
6699
6700 \end_inset
6701
6702 レイアウトファイルの書式
6703 \end_layout
6704
6705 \begin_layout Standard
6706 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6707 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6708 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6709 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6710 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6711 \end_layout
6712
6713 \begin_layout Standard
6714 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6715 \begin_inset Flex Code
6716 status collapsed
6717
6718 \begin_layout Plain Layout
6719 Style
6720 \end_layout
6721
6722 \end_inset
6723
6724
6725 \begin_inset Flex Code
6726 status collapsed
6727
6728 \begin_layout Plain Layout
6729 style
6730 \end_layout
6731
6732 \end_inset
6733
6734
6735 \begin_inset Flex Code
6736 status collapsed
6737
6738 \begin_layout Plain Layout
6739 StYlE
6740 \end_layout
6741
6742 \end_inset
6743
6744 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6745 \begin_inset Flex Code
6746 status collapsed
6747
6748 \begin_layout Plain Layout
6749
6750 \emph on
6751 強調
6752 \end_layout
6753
6754 \end_inset
6755
6756 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6757 \begin_inset Flex Code
6758 status collapsed
6759
6760 \begin_layout Plain Layout
6761 浮動小数点型=
6762 \emph on
6763 既定値
6764 \end_layout
6765
6766 \end_inset
6767
6768 のように表示されます。
6769 \end_layout
6770
6771 \begin_layout Subsection
6772 文書クラス宣言と分類
6773 \end_layout
6774
6775 \begin_layout Standard
6776 レイアウトファイル中の
6777 \begin_inset Flex Code
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 #
6782 \end_layout
6783
6784 \end_inset
6785
6786 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6787 \begin_inset Flex Code
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791 *.layout
6792 \end_layout
6793
6794 \end_inset
6795
6796 ファイルは、以下のような行で始めなくてはならないのです。
6797 \end_layout
6798
6799 \begin_layout LyX-Code
6800
6801 \size small
6802 #% Do not delete the line below; configure depends on this
6803 \end_layout
6804
6805 \begin_layout LyX-Code
6806
6807 \size small
6808 #  
6809 \backslash
6810 DeclareLaTeXClass{Article (Standard Class)}
6811 \end_layout
6812
6813 \begin_layout LyX-Code
6814
6815 \size small
6816 #  
6817 \backslash
6818 DeclareCategory{Articles}
6819 \end_layout
6820
6821 \begin_layout Standard
6822 2行目と3行目は、\SpecialChar LyX
6823 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6824 スクリプト
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 chkconfig.ltx
6830 \end_layout
6831
6832 \end_inset
6833
6834 が、
6835 \begin_inset Flex Code
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 #
6840 \end_layout
6841
6842 \end_inset
6843
6844 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6845 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
6846 行が
6847 \begin_inset Flex Code
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 article.layout
6852 \end_layout
6853
6854 \end_inset
6855
6856 と名付けられたファイルにあると、
6857 \begin_inset Flex Code
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 article
6862 \end_layout
6863
6864 \end_inset
6865
6866 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
6867 文書クラス
6868 \begin_inset Flex Code
6869 status collapsed
6870
6871 \begin_layout Plain Layout
6872 article.cls
6873 \end_layout
6874
6875 \end_inset
6876
6877 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
6878 \begin_inset Flex MenuItem
6879 status collapsed
6880
6881 \begin_layout Plain Layout
6882 文書\SpecialChar menuseparator
6883 設定
6884 \end_layout
6885
6886 \end_inset
6887
6888 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
6889 \begin_inset Flex MenuItem
6890 status collapsed
6891
6892 \begin_layout Plain Layout
6893 文書\SpecialChar menuseparator
6894 設定
6895 \end_layout
6896
6897 \end_inset
6898
6899 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
6900 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
6901 rized」グループに属することになります。
6902 \end_layout
6903
6904 \begin_layout Standard
6905 節見出し表示に変更を加えた、
6906 \begin_inset Flex Code
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910 article.cls
6911 \end_layout
6912
6913 \end_inset
6914
6915 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6916 \begin_inset Flex Code
6917 status collapsed
6918
6919 \begin_layout Plain Layout
6920 myarticle.layout
6921 \end_layout
6922
6923 \end_inset
6924
6925 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6926 \end_layout
6927
6928 \begin_layout LyX-Code
6929
6930 \size small
6931 #% Do not delete the line below; configure depends on this 
6932 \end_layout
6933
6934 \begin_layout LyX-Code
6935
6936 \size small
6937 #  
6938 \backslash
6939 DeclareLaTeXClass[article]{article (with My Own Headings)}
6940 \end_layout
6941
6942 \begin_layout LyX-Code
6943
6944 \size small
6945 #  
6946 \backslash
6947 DeclareCategory{Articles}
6948 \end_layout
6949
6950 \begin_layout Standard
6951 これは、\SpecialChar LaTeX
6952 文書クラス
6953 \begin_inset Flex Code
6954 status collapsed
6955
6956 \begin_layout Plain Layout
6957 article.cls
6958 \end_layout
6959
6960 \end_inset
6961
6962 に関連づけられ、「Article (with My Own Headings)」と表示される、
6963 \begin_inset Flex Code
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 myarticle
6968 \end_layout
6969
6970 \end_inset
6971
6972 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \size small
6978 #% Do not delete the line below; configure depends on this 
6979 \end_layout
6980
6981 \begin_layout LyX-Code
6982
6983 \size small
6984 #  
6985 \backslash
6986 DeclareLaT
6987 \size default
6988
6989 \begin_inset ERT
6990 status collapsed
6991
6992 \begin_layout Plain Layout
6993
6994 {}
6995 \end_layout
6996
6997 \end_inset
6998
6999
7000 \size small
7001 eXClass[article,foo.sty]{Article (with My Own Headings)}
7002 \end_layout
7003
7004 \begin_layout LyX-Code
7005
7006 \size small
7007 #  
7008 \backslash
7009 DeclareCategory{Articles}
7010 \end_layout
7011
7012 \begin_layout Standard
7013 これは、このテキストクラスが
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 foo.sty
7019 \end_layout
7020
7021 \end_inset
7022
7023 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
7024 \end_layout
7025
7026 \begin_layout LyX-Code
7027
7028 \size small
7029 #% Do not delete the line below; configure depends on this 
7030 \end_layout
7031
7032 \begin_layout LyX-Code
7033
7034 \size small
7035
7036 \backslash
7037 DeclareDocBookClass[article]{SGML (DocBook article)}
7038 \end_layout
7039
7040 \begin_layout LyX-Code
7041
7042 \size small
7043 #  
7044 \backslash
7045 DeclareCategory{Articles}
7046 \end_layout
7047
7048 \begin_layout Standard
7049 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
7050 \end_layout
7051
7052 \begin_layout Standard
7053 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
7054 \end_layout
7055
7056 \begin_layout LyX-Code
7057
7058 \size small
7059 #  
7060 \backslash
7061 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7062 \end_layout
7063
7064 \begin_layout LyX-Code
7065
7066 \size small
7067 #  
7068 \backslash
7069 DeclareCategory{分類}
7070 \end_layout
7071
7072 \begin_layout Standard
7073 ここで「クラス」は、\SpecialChar LaTeX
7074 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
7075 は単純に、クラスファイル
7076 名がレイアウトファイル名と同じであると仮定します。
7077 \end_layout
7078
7079 \begin_layout Standard
7080 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7081 \begin_inset Flex Code
7082 status collapsed
7083
7084 \begin_layout Plain Layout
7085 LyXDir/layouts/
7086 \end_layout
7087
7088 \end_inset
7089
7090
7091 \begin_inset Flex Code
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 UserDir/layouts
7096 \end_layout
7097
7098 \end_inset
7099
7100 にコピーし、
7101 \begin_inset Flex MenuItem
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105 ツール\SpecialChar menuseparator
7106 環境構成
7107 \end_layout
7108
7109 \end_inset
7110
7111 を実行し、\SpecialChar LyX
7112 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7113 \end_layout
7114
7115 \begin_layout Standard
7116 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7117 を再起動したりすることなく、その変更を確認することができます
7118 \begin_inset Foot
7119 status collapsed
7120
7121 \begin_layout Plain Layout
7122 第1.6版よりも前の\SpecialChar LyX
7123 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7124 を再起動しなくてはならなかったので、
7125 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7126 \end_layout
7127
7128 \end_inset
7129
7130 。\SpecialChar LyX
7131 関数
7132 \begin_inset Flex MenuItem
7133 status collapsed
7134
7135 \begin_layout Plain Layout
7136 layout-reload
7137 \end_layout
7138
7139 \end_inset
7140
7141 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7142 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7143 \end_layout
7144
7145 \begin_layout Standard
7146
7147 \emph on
7148 注意
7149 \emph default
7150
7151 \begin_inset Flex MenuItem
7152 status collapsed
7153
7154 \begin_layout Plain Layout
7155 layout-reload
7156 \end_layout
7157
7158 \end_inset
7159
7160 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7161 \emph on
7162 強く
7163 \emph default
7164 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7165 \emph on
7166 強く
7167 \emph default
7168 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7169 は現在の
7170 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7171 \begin_inset Foot
7172 status collapsed
7173
7174 \begin_layout Plain Layout
7175 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7176 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7177 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7178 ださい。
7179 \end_layout
7180
7181 \end_inset
7182
7183 。\SpecialChar LyX
7184 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7185 \begin_inset Foot
7186 status collapsed
7187
7188 \begin_layout Plain Layout
7189 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7190 \end_layout
7191
7192 \end_inset
7193
7194
7195 \end_layout
7196
7197 \begin_layout Subsection
7198 モジュール宣言
7199 \end_layout
7200
7201 \begin_layout Standard
7202 モジュールは、以下のような行で始まらなくてはなりません。
7203 \end_layout
7204
7205 \begin_layout LyX-Code
7206 #
7207 \backslash
7208 DeclareL
7209 \begin_inset ERT
7210 status collapsed
7211
7212 \begin_layout Plain Layout
7213
7214 {}
7215 \end_layout
7216
7217 \end_inset
7218
7219 yXModule[endnotes.sty]{Endnotes} 
7220 \end_layout
7221
7222 \begin_layout Standard
7223 波括弧内に入っている必須引数はモジュール名で、これは
7224 \begin_inset Flex MenuItem
7225 status collapsed
7226
7227 \begin_layout Plain Layout
7228 文書\SpecialChar menuseparator
7229 設定
7230 \end_layout
7231
7232 \end_inset
7233
7234 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7235 パッケージをすべて宣言します。また、非必須引数として、
7236 \begin_inset Flex Code
7237 status collapsed
7238
7239 \begin_layout Plain Layout
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 変換元
7251 \end_layout
7252
7253 \end_inset
7254
7255 形式から
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 変換先
7261 \end_layout
7262
7263 \end_inset
7264
7265 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7266 \end_layout
7267
7268 \begin_layout Standard
7269 それから、以下のようなモジュール宣言を行います
7270 \begin_inset Foot
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 モジュールを\SpecialChar LyX
7275 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7276 \end_layout
7277
7278 \end_inset
7279
7280
7281 \end_layout
7282
7283 \begin_layout LyX-Code
7284 #DescriptionBegin 
7285 \end_layout
7286
7287 \begin_layout LyX-Code
7288 #Adds an endnote command, in addition to footnotes.
7289  
7290 \end_layout
7291
7292 \begin_layout LyX-Code
7293 #You will need to add  
7294 \backslash
7295 theendnotes in TeX code where you 
7296 \end_layout
7297
7298 \begin_layout LyX-Code
7299 #want the endnotes to appear.
7300  
7301 \end_layout
7302
7303 \begin_layout LyX-Code
7304 #DescriptionEnd 
7305 \end_layout
7306
7307 \begin_layout LyX-Code
7308 #Requires: somemodule | othermodule
7309 \end_layout
7310
7311 \begin_layout LyX-Code
7312 #Excludes: badmodule
7313 \end_layout
7314
7315 \begin_layout Standard
7316 ここで説明(Description)は、
7317 \begin_inset Flex MenuItem
7318 status collapsed
7319
7320 \begin_layout Plain Layout
7321 文書\SpecialChar menuseparator
7322 設定
7323 \end_layout
7324
7325 \end_inset
7326
7327 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7328 \begin_inset Flex Code
7329 status collapsed
7330
7331 \begin_layout Plain Layout
7332 Requires
7333 \end_layout
7334
7335 \end_inset
7336
7337 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7338 \begin_inset Flex Code
7339 status collapsed
7340
7341 \begin_layout Plain Layout
7342 Excludes
7343 \end_layout
7344
7345 \end_inset
7346
7347 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7348 イプ記号「|」で区切らなくてはなりません。
7349 \begin_inset Flex Code
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353 Requires
7354 \end_layout
7355
7356 \end_inset
7357
7358 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7359 \begin_inset Flex Code
7360 status collapsed
7361
7362 \begin_layout Plain Layout
7363 Requires
7364 \end_layout
7365
7366 \end_inset
7367
7368 に指定されたモジュールのうち、
7369 \emph on
7370 少なくとも一つ
7371 \emph default
7372 が使用されていればよいということです。同様に、
7373 \begin_inset Flex Code
7374 status collapsed
7375
7376 \begin_layout Plain Layout
7377 Excludes
7378 \end_layout
7379
7380 \end_inset
7381
7382 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 .module
7388 \end_layout
7389
7390 \end_inset
7391
7392 拡張子を除いたファイル名で認識されることに注意してください。つまり
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 somemodule
7398 \end_layout
7399
7400 \end_inset
7401
7402 とは、実のところ
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 somemodule.module
7408 \end_layout
7409
7410 \end_inset
7411
7412 のことです。
7413 \end_layout
7414
7415 \begin_layout Subsection
7416 書式番号
7417 \end_layout
7418
7419 \begin_layout Standard
7420 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7421 \end_layout
7422
7423 \begin_layout Description
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428 Format
7429 \end_layout
7430
7431 \end_inset
7432
7433  [
7434 \begin_inset Flex Code
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438 整数型
7439 \end_layout
7440
7441 \end_inset
7442
7443 ] このレイアウトファイルの書式
7444 \end_layout
7445
7446 \begin_layout Standard
7447 このタグは\SpecialChar LyX
7448
7449 \begin_inset space ~
7450 \end_inset
7451
7452 1.4.0で導入されました。\SpecialChar LyX
7453
7454 \begin_inset space ~
7455 \end_inset
7456
7457 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7458 現行版のファイル形式は、書式59です。しかし、\SpecialChar LyX
7459 の各版は、旧版の\SpecialChar LyX
7460 で作成さ
7461 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7462 \end_layout
7463
7464 \begin_layout Subsection
7465 \begin_inset CommandInset label
7466 LatexCommand label
7467 name "subsec:汎用テキストクラスパラメータ"
7468
7469 \end_inset
7470
7471 汎用テキストクラスパラメータ
7472 \end_layout
7473
7474 \begin_layout Standard
7475 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 .layout
7481 \end_layout
7482
7483 \end_inset
7484
7485 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7486 \emph on
7487 ありません
7488 \emph default
7489 。モジュールには、すべてのレイアウトタグを使用することができます)。
7490 \end_layout
7491
7492 \begin_layout Description
7493 \begin_inset Flex Code
7494 status collapsed
7495
7496 \begin_layout Plain Layout
7497 AddToHTMLPreamble
7498 \end_layout
7499
7500 \end_inset
7501
7502  この文書クラスがXHTMLに出力されるときに、
7503 \begin_inset Flex Code
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507 <head>
7508 \end_layout
7509
7510 \end_inset
7511
7512 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7513 \begin_inset Flex Code
7514 status collapsed
7515
7516 \begin_layout Plain Layout
7517 <head>
7518 \end_layout
7519
7520 \end_inset
7521
7522 に出力するものであれば、何でも使用することができます。「
7523 \begin_inset Flex Code
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 EndPreamble
7528 \end_layout
7529
7530 \end_inset
7531
7532 」で閉じる必要があります。
7533 \end_layout
7534
7535 \begin_layout Description
7536 \begin_inset Flex Code
7537 status collapsed
7538
7539 \begin_layout Plain Layout
7540 AddToPreamble
7541 \end_layout
7542
7543 \end_inset
7544
7545  文書プリアンブルに書き加えられる情報です。「
7546 \begin_inset Flex Code
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550 EndPreamble
7551 \end_layout
7552
7553 \end_inset
7554
7555 」で閉じる必要があります。
7556 \end_layout
7557
7558 \begin_layout Description
7559 \begin_inset Flex Code
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563 CiteFormat
7564 \end_layout
7565
7566 \end_inset
7567
7568  書誌情報の表示に使う書式を定義します。詳細については、
7569 \begin_inset CommandInset ref
7570 LatexCommand ref
7571 reference "subsec:引用書式指定"
7572
7573 \end_inset
7574
7575 をご覧ください。「
7576 \begin_inset Flex Code
7577 status collapsed
7578
7579 \begin_layout Plain Layout
7580 End
7581 \end_layout
7582
7583 \end_inset
7584
7585 」で閉じる必要があります。
7586 \end_layout
7587
7588 \begin_layout Description
7589 \begin_inset Flex Code
7590 status collapsed
7591
7592 \begin_layout Plain Layout
7593 ClassOptions
7594 \end_layout
7595
7596 \end_inset
7597
7598  文書クラスがサポートする様々な大域オプションを記します。説明は、
7599 \begin_inset CommandInset ref
7600 LatexCommand ref
7601 reference "subsec:ClassOptions"
7602
7603 \end_inset
7604
7605 を参照してください。「
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 End
7611 \end_layout
7612
7613 \end_inset
7614
7615 」で閉じる必要があります。
7616 \end_layout
7617
7618 \begin_layout Description
7619 \begin_inset Flex Code
7620 status collapsed
7621
7622 \begin_layout Plain Layout
7623 Columns
7624 \end_layout
7625
7626 \end_inset
7627
7628  [
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633
7634 \emph on
7635 1
7636 \end_layout
7637
7638 \end_inset
7639
7640 ,
7641 \begin_inset space \thinspace{}
7642 \end_inset
7643
7644
7645 \begin_inset Flex Code
7646 status collapsed
7647
7648 \begin_layout Plain Layout
7649 2
7650 \end_layout
7651
7652 \end_inset
7653
7654 ] 文書クラスが既定で1段組か2段組かを指定します。
7655 \begin_inset Flex MenuItem
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 文書\SpecialChar menuseparator
7660 設定
7661 \end_layout
7662
7663 \end_inset
7664
7665 ダイアログで変更することができます。
7666 \end_layout
7667
7668 \begin_layout Description
7669 \begin_inset Flex Code
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 Counter
7674 \end_layout
7675
7676 \end_inset
7677
7678  [
7679 \begin_inset Flex Code
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 文字列
7684 \end_layout
7685
7686 \end_inset
7687
7688 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7689 \begin_inset Flex Code
7690 status collapsed
7691
7692 \begin_layout Plain Layout
7693 End
7694 \end_layout
7695
7696 \end_inset
7697
7698 」で閉じる必要があります。
7699 \begin_inset Newline newline
7700 \end_inset
7701
7702 カウンタについての詳細は、
7703 \begin_inset CommandInset ref
7704 LatexCommand ref
7705 reference "subsec:カウンタ"
7706
7707 \end_inset
7708
7709 を参照してください。
7710 \end_layout
7711
7712 \begin_layout Description
7713 \begin_inset Flex Code
7714 status collapsed
7715
7716 \begin_layout Plain Layout
7717 DefaultFont
7718 \end_layout
7719
7720 \end_inset
7721
7722  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7723 \begin_inset CommandInset ref
7724 LatexCommand ref
7725 reference "subsec:フォント指定"
7726
7727 \end_inset
7728
7729 を参照してください。「
7730 \begin_inset Flex Code
7731 status collapsed
7732
7733 \begin_layout Plain Layout
7734 EndFont
7735 \end_layout
7736
7737 \end_inset
7738
7739 」で閉じる必要があります。
7740 \end_layout
7741
7742 \begin_layout Description
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 DefaultModule
7748 \end_layout
7749
7750 \end_inset
7751
7752  [
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 <モジュール>
7758 \end_layout
7759
7760 \end_inset
7761
7762 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7763 \begin_inset Flex Code
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 .module
7768 \end_layout
7769
7770 \end_inset
7771
7772 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7773 既存の文書にこの文書クラスが選択したときのみ該当します)。
7774 \end_layout
7775
7776 \begin_layout Description
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 DefaultStyle
7782 \end_layout
7783
7784 \end_inset
7785
7786  [
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 <様式>
7792 \end_layout
7793
7794 \end_inset
7795
7796 ]
7797 \lang english
7798  
7799 \lang japanese
7800 これは新規段落に割り当てられる様式であり、通常は
7801 \begin_inset Flex MenuItem
7802 status collapsed
7803
7804 \begin_layout Plain Layout
7805 標準
7806 \end_layout
7807
7808 \end_inset
7809
7810 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7811 \end_layout
7812
7813 \begin_layout Description
7814 \begin_inset Flex Code
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 ExcludesModule
7819 \end_layout
7820
7821 \end_inset
7822
7823  [
7824 \begin_inset Flex Code
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 <モジュール>
7829 \end_layout
7830
7831 \end_inset
7832
7833 ] このタグは、指定されたモジュール—
7834 \begin_inset Flex Code
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 .module
7839 \end_layout
7840
7841 \end_inset
7842
7843 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7844 に振る
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849 theorems-sec
7850 \end_layout
7851
7852 \end_inset
7853
7854 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7855 \emph on
7856 使用してはいけません
7857 \emph default
7858 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
7859 \begin_inset CommandInset ref
7860 LatexCommand ref
7861 reference "subsec:レイアウトモジュール"
7862
7863 \end_inset
7864
7865 参照)。
7866 \end_layout
7867
7868 \begin_layout Description
7869 \begin_inset Flex Code
7870 status collapsed
7871
7872 \begin_layout Plain Layout
7873 Float
7874 \end_layout
7875
7876 \end_inset
7877
7878  フロートを新規に定義します。詳細は、
7879 \begin_inset CommandInset ref
7880 LatexCommand ref
7881 reference "subsec:フロート"
7882
7883 \end_inset
7884
7885 を参照してください。「
7886 \begin_inset Flex Code
7887 status collapsed
7888
7889 \begin_layout Plain Layout
7890 End
7891 \end_layout
7892
7893 \end_inset
7894
7895 」で閉じる必要があります。
7896 \end_layout
7897
7898 \begin_layout Description
7899 \begin_inset Flex Code
7900 status collapsed
7901
7902 \begin_layout Plain Layout
7903 HTMLPreamble
7904 \end_layout
7905
7906 \end_inset
7907
7908  この文書クラスがXHTMLに出力されるときに、
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 <head>
7914 \end_layout
7915
7916 \end_inset
7917
7918 ブロックに出力される情報です。これより前に出現した
7919 \begin_inset Flex Code
7920 status collapsed
7921
7922 \begin_layout Plain Layout
7923 HTMLPreamble
7924 \end_layout
7925
7926 \end_inset
7927
7928
7929 \begin_inset Flex Code
7930 status collapsed
7931
7932 \begin_layout Plain Layout
7933 AddToHTMLPreamble
7934 \end_layout
7935
7936 \end_inset
7937
7938 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7939 \begin_inset Flex Code
7940 status collapsed
7941
7942 \begin_layout Plain Layout
7943 AddToHTMLPreamble
7944 \end_layout
7945
7946 \end_inset
7947
7948 を使用してください)。これは「
7949 \begin_inset Flex Code
7950 status collapsed
7951
7952 \begin_layout Plain Layout
7953 EndPreamble
7954 \end_layout
7955
7956 \end_inset
7957
7958 」で閉じる必要があります。
7959 \end_layout
7960
7961 \begin_layout Description
7962 \begin_inset Flex Code
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 HTMLTOCSection
7967 \end_layout
7968
7969 \end_inset
7970
7971  [
7972 \begin_inset Flex Code
7973 status collapsed
7974
7975 \begin_layout Plain Layout
7976 <様式>
7977 \end_layout
7978
7979 \end_inset
7980
7981 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7982 。これを指定しない場合には、\SpecialChar LyX
7983 はどのレイアウトを使用するべきか、解析しようと試みます。
7984 \end_layout
7985
7986 \begin_layout Description
7987 \begin_inset Flex Code
7988 status collapsed
7989
7990 \begin_layout Plain Layout
7991 IfCounter 
7992 \end_layout
7993
7994 \end_inset
7995
7996  [
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 <カウンタ>
8002 \end_layout
8003
8004 \end_inset
8005
8006 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 End
8012 \end_layout
8013
8014 \end_inset
8015
8016 」で閉じる必要があります。
8017 \begin_inset Newline newline
8018 \end_inset
8019
8020 カウンタについての詳細は、
8021 \begin_inset CommandInset ref
8022 LatexCommand ref
8023 reference "subsec:カウンタ"
8024
8025 \end_inset
8026
8027 をご覧ください。
8028 \end_layout
8029
8030 \begin_layout Description
8031 \begin_inset Flex Code
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035 IfStyle
8036 \end_layout
8037
8038 \end_inset
8039
8040  [
8041 \begin_inset Flex Code
8042 status collapsed
8043
8044 \begin_layout Plain Layout
8045 <様式>
8046 \end_layout
8047
8048 \end_inset
8049
8050 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
8051 \begin_inset Flex Code
8052 status collapsed
8053
8054 \begin_layout Plain Layout
8055 End
8056 \end_layout
8057
8058 \end_inset
8059
8060 」で閉じる必要があります。
8061 \end_layout
8062
8063 \begin_layout Description
8064 \begin_inset Flex Code
8065 status collapsed
8066
8067 \begin_layout Plain Layout
8068 Input
8069 \end_layout
8070
8071 \end_inset
8072
8073  [
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 <ファイル名>
8079 \end_layout
8080
8081 \end_inset
8082
8083 ]
8084 \lang english
8085  
8086 \lang japanese
8087 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8088 のほとんどを収録している
8089 \begin_inset Flex Code
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 stdclass.inc
8094 \end_layout
8095
8096 \end_inset
8097
8098 のような標準レイアウトファイルです。
8099 \end_layout
8100
8101 \begin_layout Description
8102 \begin_inset Flex Code
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 InsetLayout
8107 \end_layout
8108
8109 \end_inset
8110
8111  [
8112 \begin_inset Flex Code
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 <型>
8117 \end_layout
8118
8119 \end_inset
8120
8121 ]
8122 \lang english
8123  
8124 \lang japanese
8125 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8126 \begin_inset Flex Code
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 End
8131 \end_layout
8132
8133 \end_inset
8134
8135 」で閉じる必要があります。
8136 \begin_inset Newline newline
8137 \end_inset
8138
8139 詳しい情報は、
8140 \begin_inset CommandInset ref
8141 LatexCommand ref
8142 reference "subsec:任意設定差込枠"
8143
8144 \end_inset
8145
8146 をご覧ください。
8147 \end_layout
8148
8149 \begin_layout Description
8150 \begin_inset Flex Code
8151 status collapsed
8152
8153 \begin_layout Plain Layout
8154 LeftMargin
8155 \end_layout
8156
8157 \end_inset
8158
8159  [
8160 \begin_inset Flex Code
8161 status collapsed
8162
8163 \begin_layout Plain Layout
8164 文字列
8165 \end_layout
8166
8167 \end_inset
8168
8169 ] 画面上の左余白の幅を指示する文字列。例:「
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 MMMMM
8175 \end_layout
8176
8177 \end_inset
8178
8179 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8180 \end_layout
8181
8182 \begin_layout Description
8183 \begin_inset Flex Code
8184 status collapsed
8185
8186 \begin_layout Plain Layout
8187 NoCounter
8188 \end_layout
8189
8190 \end_inset
8191
8192  [
8193 \begin_inset Flex Code
8194 status collapsed
8195
8196 \begin_layout Plain Layout
8197 <カウンタ>
8198 \end_layout
8199
8200 \end_inset
8201
8202 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8203 \end_layout
8204
8205 \begin_layout Description
8206 \begin_inset Flex Code
8207 status collapsed
8208
8209 \begin_layout Plain Layout
8210 NoFloat
8211 \end_layout
8212
8213 \end_inset
8214
8215  [
8216 \begin_inset Flex Code
8217 status collapsed
8218
8219 \begin_layout Plain Layout
8220 <フロート>
8221 \end_layout
8222
8223 \end_inset
8224
8225 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8226 \end_layout
8227
8228 \begin_layout Description
8229 \begin_inset Flex Code
8230 status collapsed
8231
8232 \begin_layout Plain Layout
8233 NoStyle
8234 \end_layout
8235
8236 \end_inset
8237
8238  [
8239 \begin_inset Flex Code
8240 status collapsed
8241
8242 \begin_layout Plain Layout
8243 <様式>
8244 \end_layout
8245
8246 \end_inset
8247
8248 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8249 \end_layout
8250
8251 \begin_layout Description
8252 \begin_inset Flex Code
8253 status collapsed
8254
8255 \begin_layout Plain Layout
8256 OutputFormat
8257 \end_layout
8258
8259 \end_inset
8260
8261  [
8262 \begin_inset Flex Code
8263 status collapsed
8264
8265 \begin_layout Plain Layout
8266 <形式>
8267 \end_layout
8268
8269 \end_inset
8270
8271 ] このクラスによって生成されるファイル形式を示す文字列(
8272 \family sans
8273 設定
8274 \family default
8275 ダイアログで定義される形のもの)。おもに、
8276 \begin_inset Flex Code
8277 status collapsed
8278
8279 \begin_layout Plain Layout
8280 OutputType
8281 \end_layout
8282
8283 \end_inset
8284
8285
8286 \begin_inset Flex Code
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290 literate
8291 \end_layout
8292
8293 \end_inset
8294
8295 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8296 \begin_inset Flex Code
8297 status collapsed
8298
8299 \begin_layout Plain Layout
8300 OutputType
8301 \end_layout
8302
8303 \end_inset
8304
8305 パラメーターに遭遇したときには、この文字列は、「
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 docbook
8311 \end_layout
8312
8313 \end_inset
8314
8315 」・「
8316 \begin_inset Flex Code
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 lat
8321 \emph on
8322 ex
8323 \end_layout
8324
8325 \end_inset
8326
8327 」のいずれかにリセットされます。
8328 \end_layout
8329
8330 \begin_layout Description
8331 \begin_inset Flex Code
8332 status collapsed
8333
8334 \begin_layout Plain Layout
8335 OutputType
8336 \end_layout
8337
8338 \end_inset
8339
8340  [
8341 \begin_inset Flex Code
8342 status collapsed
8343
8344 \begin_layout Plain Layout
8345
8346 \emph on
8347 lat
8348 \emph default
8349 ex
8350 \end_layout
8351
8352 \end_inset
8353
8354
8355 \begin_inset Flex Code
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 docbook
8360 \end_layout
8361
8362 \end_inset
8363
8364
8365 \begin_inset Flex Code
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 literate
8370 \end_layout
8371
8372 \end_inset
8373
8374 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8375 \end_layout
8376
8377 \begin_layout Description
8378 \begin_inset Flex Code
8379 status collapsed
8380
8381 \begin_layout Plain Layout
8382 PackageOptions
8383 \end_layout
8384
8385 \end_inset
8386
8387  [
8388 \begin_inset Flex Code
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 文字列
8393 \end_layout
8394
8395 \end_inset
8396
8397  
8398 \begin_inset Flex Code
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402 文字列
8403 \end_layout
8404
8405 \end_inset
8406
8407 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8408 \begin_inset Flex Code
8409 status collapsed
8410
8411 \begin_layout Plain Layout
8412 PackageOptions natbib square
8413 \end_layout
8414
8415 \end_inset
8416
8417 」とすると、
8418 \begin_inset Flex Code
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 natbib
8423 \end_layout
8424
8425 \end_inset
8426
8427
8428 \begin_inset Flex Code
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 square
8433 \end_layout
8434
8435 \end_inset
8436
8437 オプションとともに読み込みます(\SpecialChar TeX
8438 perts向けに述べると、これは、
8439 \begin_inset Flex Code
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 natbib
8444 \end_layout
8445
8446 \end_inset
8447
8448 を読み込む前に、\SpecialChar LyX
8449
8450 \begin_inset Flex Code
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454
8455 \backslash
8456 PassOptionsToPackage{natbib}{square}
8457 \end_layout
8458
8459 \end_inset
8460
8461 を出力させます)。
8462 \end_layout
8463
8464 \begin_layout Description
8465 \begin_inset Flex Code
8466 status collapsed
8467
8468 \begin_layout Plain Layout
8469 PageStyle
8470 \end_layout
8471
8472 \end_inset
8473
8474  [
8475 \emph on
8476
8477 \begin_inset Flex Code
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 plain
8482 \end_layout
8483
8484 \end_inset
8485
8486
8487 \emph default
8488
8489 \begin_inset Flex Code
8490 status collapsed
8491
8492 \begin_layout Plain Layout
8493 empty
8494 \end_layout
8495
8496 \end_inset
8497
8498
8499 \begin_inset Flex Code
8500 status collapsed
8501
8502 \begin_layout Plain Layout
8503 headings
8504 \end_layout
8505
8506 \end_inset
8507
8508 ] 既定ページ様式。
8509 \begin_inset Flex MenuItem
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513 文書\SpecialChar menuseparator
8514 設定
8515 \end_layout
8516
8517 \end_inset
8518
8519 ダイアログで変更することができます。
8520 \end_layout
8521
8522 \begin_layout Description
8523 \begin_inset Flex Code
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 Preamble
8528 \end_layout
8529
8530 \end_inset
8531
8532  \SpecialChar LaTeX
8533 文書のプリアンブルを設定します。前に行った
8534 \begin_inset Flex Code
8535 status collapsed
8536
8537 \begin_layout Plain Layout
8538 Preamble
8539 \end_layout
8540
8541 \end_inset
8542
8543 宣言や
8544 \begin_inset Flex Code
8545 status collapsed
8546
8547 \begin_layout Plain Layout
8548 AddToPreamble
8549 \end_layout
8550
8551 \end_inset
8552
8553 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8554 \begin_inset Flex Code
8555 status collapsed
8556
8557 \begin_layout Plain Layout
8558 AddToPreamble
8559 \end_layout
8560
8561 \end_inset
8562
8563 を使用してください。)「
8564 \begin_inset Flex Code
8565 status collapsed
8566
8567 \begin_layout Plain Layout
8568 EndPreamble
8569 \end_layout
8570
8571 \end_inset
8572
8573 」で閉じる必要があります。
8574 \end_layout
8575
8576 \begin_layout Description
8577 \begin_inset Flex Code
8578 status collapsed
8579
8580 \begin_layout Plain Layout
8581 Provides
8582 \end_layout
8583
8584 \end_inset
8585
8586  [
8587 \begin_inset Flex Code
8588 status collapsed
8589
8590 \begin_layout Plain Layout
8591 文字列
8592 \end_layout
8593
8594 \end_inset
8595
8596 ] [
8597 \begin_inset Flex Code
8598 status collapsed
8599
8600 \begin_layout Plain Layout
8601
8602 \emph on
8603 0
8604 \end_layout
8605
8606 \end_inset
8607
8608
8609 \begin_inset Flex Code
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 1
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 amsmath
8634 \end_layout
8635
8636 \end_inset
8637
8638
8639 \begin_inset Flex Code
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 makeidx
8644 \end_layout
8645
8646 \end_inset
8647
8648 ・\SpecialChar ldots
8649 )やマクロ名(
8650 \begin_inset Flex Code
8651 status collapsed
8652
8653 \begin_layout Plain Layout
8654 url
8655 \end_layout
8656
8657 \end_inset
8658
8659
8660 \begin_inset Flex Code
8661 status collapsed
8662
8663 \begin_layout Plain Layout
8664 boldsymbol
8665 \end_layout
8666
8667 \end_inset
8668
8669 ・\SpecialChar ldots
8670 )です。機能一覧については、
8671 \begin_inset CommandInset ref
8672 LatexCommand ref
8673 reference "chap:関数一覧"
8674
8675 \end_inset
8676
8677 を参照。
8678 \end_layout
8679
8680 \begin_layout Description
8681 \begin_inset Flex Code
8682 status collapsed
8683
8684 \begin_layout Plain Layout
8685 ProvidesModule
8686 \end_layout
8687
8688 \end_inset
8689
8690  [
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 文字列
8696 \end_layout
8697
8698 \end_inset
8699
8700 ] このレイアウトが
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 文字列
8706 \end_layout
8707
8708 \end_inset
8709
8710 で表されているモジュールの機能を提供することを示し、
8711 \begin_inset Flex Code
8712 status collapsed
8713
8714 \begin_layout Plain Layout
8715 .module
8716 \end_layout
8717
8718 \end_inset
8719
8720 拡張子を除いたファイル名で指定します。
8721 \begin_inset Flex Code
8722 status collapsed
8723
8724 \begin_layout Plain Layout
8725 DefaultModule
8726 \end_layout
8727
8728 \end_inset
8729
8730 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8731 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8732 \end_layout
8733
8734 \begin_layout Description
8735 \begin_inset Flex Code
8736 status collapsed
8737
8738 \begin_layout Plain Layout
8739 Requires
8740 \end_layout
8741
8742 \end_inset
8743
8744  [
8745 \begin_inset Flex Code
8746 status collapsed
8747
8748 \begin_layout Plain Layout
8749 文字列
8750 \end_layout
8751
8752 \end_inset
8753
8754 ] このクラスが
8755 \begin_inset Flex Code
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 文字列
8760 \end_layout
8761
8762 \end_inset
8763
8764 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8765 さい(機能一覧については
8766 \begin_inset CommandInset ref
8767 LatexCommand ref
8768 reference "chap:関数一覧"
8769
8770 \end_inset
8771
8772 を参照)。特定のオプションをとるパッケージを要求する場合、
8773 \begin_inset Flex Code
8774 status collapsed
8775
8776 \begin_layout Plain Layout
8777 PackageOptions
8778 \end_layout
8779
8780 \end_inset
8781
8782 を追加して使うことができます。
8783 \end_layout
8784
8785 \begin_layout Description
8786 \begin_inset Flex Code
8787 status collapsed
8788
8789 \begin_layout Plain Layout
8790 RightMargin
8791 \end_layout
8792
8793 \end_inset
8794
8795  [
8796 \begin_inset Flex Code
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 文字列
8801 \end_layout
8802
8803 \end_inset
8804
8805 ] 画面上の右余白の幅を指示する文字列。例:「
8806 \begin_inset Flex Code
8807 status collapsed
8808
8809 \begin_layout Plain Layout
8810 MMMMM
8811 \end_layout
8812
8813 \end_inset
8814
8815 」。
8816 \end_layout
8817
8818 \begin_layout Description
8819 \begin_inset Flex Code
8820 status collapsed
8821
8822 \begin_layout Plain Layout
8823 SecNumDepth
8824 \end_layout
8825
8826 \end_inset
8827
8828  [
8829 \begin_inset Flex Code
8830 status collapsed
8831
8832 \begin_layout Plain Layout
8833 int=3
8834 \end_layout
8835
8836 \end_inset
8837
8838 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
8839 における
8840 \begin_inset Flex Code
8841 status collapsed
8842
8843 \begin_layout Plain Layout
8844 secnumdepth
8845 \end_layout
8846
8847 \end_inset
8848
8849 カウンタに対応します。
8850 \end_layout
8851
8852 \begin_layout Description
8853 \begin_inset Flex Code
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857 Sides
8858 \end_layout
8859
8860 \end_inset
8861
8862  [
8863 \emph on
8864
8865 \begin_inset Flex Code
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 1
8870 \end_layout
8871
8872 \end_inset
8873
8874
8875 \emph default
8876 ,
8877 \begin_inset space \thinspace{}
8878 \end_inset
8879
8880
8881 \begin_inset Flex Code
8882 status collapsed
8883
8884 \begin_layout Plain Layout
8885 2
8886 \end_layout
8887
8888 \end_inset
8889
8890 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8891 \begin_inset Flex MenuItem
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 文書\SpecialChar menuseparator
8896 設定
8897 \end_layout
8898
8899 \end_inset
8900
8901 ダイアログで変更することができます。
8902 \end_layout
8903
8904 \begin_layout Description
8905 \begin_inset Flex Code
8906 status collapsed
8907
8908 \begin_layout Plain Layout
8909 Style
8910 \end_layout
8911
8912 \end_inset
8913
8914  [
8915 \begin_inset Flex Code
8916 status collapsed
8917
8918 \begin_layout Plain Layout
8919 <名称>
8920 \end_layout
8921
8922 \end_inset
8923
8924 ]
8925 \lang english
8926  
8927 \lang japanese
8928 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8929 \begin_inset Flex Code
8930 status collapsed
8931
8932 \begin_layout Plain Layout
8933 End
8934 \end_layout
8935
8936 \end_inset
8937
8938 」で閉じる必要があります。
8939 \begin_inset Newline newline
8940 \end_inset
8941
8942 段落様式に関する詳細は、
8943 \begin_inset CommandInset ref
8944 LatexCommand ref
8945 reference "subsec:段落様式-XHTML"
8946
8947 \end_inset
8948
8949 をご覧ください。
8950 \end_layout
8951
8952 \begin_layout Description
8953 \begin_inset Flex Code
8954 status collapsed
8955
8956 \begin_layout Plain Layout
8957 TitleLatexName
8958 \end_layout
8959
8960 \end_inset
8961
8962  [
8963 \begin_inset Flex Code
8964 status collapsed
8965
8966 \begin_layout Plain Layout
8967 文字列="maketitle"
8968 \end_layout
8969
8970 \end_inset
8971
8972
8973 \begin_inset Flex Code
8974 status collapsed
8975
8976 \begin_layout Plain Layout
8977 TitleLatexType
8978 \end_layout
8979
8980 \end_inset
8981
8982 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8983  
8984 \begin_inset Flex Code
8985 status collapsed
8986
8987 \begin_layout Plain Layout
8988 TitleLatexType
8989 \end_layout
8990
8991 \end_inset
8992
8993 .
8994 \end_layout
8995
8996 \begin_layout Description
8997 \begin_inset Flex Code
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 TitleLatexType
9002 \end_layout
9003
9004 \end_inset
9005
9006  [
9007 \begin_inset Flex Code
9008 status collapsed
9009
9010 \begin_layout Plain Layout
9011
9012 \emph on
9013 CommandAfter
9014 \end_layout
9015
9016 \end_inset
9017
9018
9019 \begin_inset Flex Code
9020 status collapsed
9021
9022 \begin_layout Plain Layout
9023 Environment
9024 \end_layout
9025
9026 \end_inset
9027
9028 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9029 \begin_inset Flex Code
9030 status collapsed
9031
9032 \begin_layout Plain Layout
9033 CommandAfter
9034 \end_layout
9035
9036 \end_inset
9037
9038 は、「
9039 \begin_inset Flex Code
9040 status collapsed
9041
9042 \begin_layout Plain Layout
9043 InTitle
9044 \begin_inset space ~
9045 \end_inset
9046
9047 1
9048 \end_layout
9049
9050 \end_inset
9051
9052 」が指定されている最後のレイアウトの後に、
9053 \begin_inset Flex Code
9054 status collapsed
9055
9056 \begin_layout Plain Layout
9057 TitleLatexName
9058 \end_layout
9059
9060 \end_inset
9061
9062 で指定したマクロ名を挿入することを意味します。
9063 \begin_inset Flex Code
9064 status collapsed
9065
9066 \begin_layout Plain Layout
9067 Environment
9068 \end_layout
9069
9070 \end_inset
9071
9072 は、「
9073 \begin_inset Flex Code
9074 status collapsed
9075
9076 \begin_layout Plain Layout
9077 InTitle
9078 \begin_inset space ~
9079 \end_inset
9080
9081 1
9082 \end_layout
9083
9084 \end_inset
9085
9086 」を持つ段落群を
9087 \begin_inset Flex Code
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 TitleLatexName
9092 \end_layout
9093
9094 \end_inset
9095
9096 で指定した環境でくるむ場合に対応します。
9097 \end_layout
9098
9099 \begin_layout Description
9100 \begin_inset Flex Code
9101 status collapsed
9102
9103 \begin_layout Plain Layout
9104 TocDepth
9105 \end_layout
9106
9107 \end_inset
9108
9109  [
9110 \begin_inset Flex Code
9111 status collapsed
9112
9113 \begin_layout Plain Layout
9114 int=3
9115 \end_layout
9116
9117 \end_inset
9118
9119 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9120
9121 \begin_inset Flex Code
9122 status collapsed
9123
9124 \begin_layout Plain Layout
9125 tocdepth
9126 \end_layout
9127
9128 \end_inset
9129
9130 カウンタに対応します。
9131 \end_layout
9132
9133 \begin_layout Subsection
9134 \begin_inset Flex Code
9135 status collapsed
9136
9137 \begin_layout Plain Layout
9138 ClassOptions
9139 \end_layout
9140
9141 \end_inset
9142
9143
9144 \begin_inset CommandInset label
9145 LatexCommand label
9146 name "subsec:ClassOptions"
9147
9148 \end_inset
9149
9150
9151 \end_layout
9152
9153 \begin_layout Standard
9154 \begin_inset Flex Code
9155 status collapsed
9156
9157 \begin_layout Plain Layout
9158 ClassOptions
9159 \end_layout
9160
9161 \end_inset
9162
9163 部は、以下の項目を取り得ます。
9164 \end_layout
9165
9166 \begin_layout Description
9167 \begin_inset Flex Code
9168 status collapsed
9169
9170 \begin_layout Plain Layout
9171 FontSize
9172 \end_layout
9173
9174 \end_inset
9175
9176  [
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 文字列="10|11|12"
9182 \end_layout
9183
9184 \end_inset
9185
9186 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9187 \begin_inset Flex Code
9188 status collapsed
9189
9190 \begin_layout Plain Layout
9191 |
9192 \end_layout
9193
9194 \end_inset
9195
9196 」で区切ります。
9197 \end_layout
9198
9199 \begin_layout Description
9200 \begin_inset Flex Code
9201 status collapsed
9202
9203 \begin_layout Plain Layout
9204 Header
9205 \end_layout
9206
9207 \end_inset
9208
9209  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9210 \begin_inset Quotes eld
9211 \end_inset
9212
9213 -//OASIS//DTD DocBook V4.2//EN
9214 \begin_inset Quotes erd
9215 \end_inset
9216
9217
9218 \end_layout
9219
9220 \begin_layout Description
9221 \begin_inset Flex Code
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 PageStyle
9226 \end_layout
9227
9228 \end_inset
9229
9230  [
9231 \begin_inset Flex Code
9232 status collapsed
9233
9234 \begin_layout Plain Layout
9235 文字列="empty|plain|headings|fancy"
9236 \end_layout
9237
9238 \end_inset
9239
9240 ] 使用できるページ様式の一覧です。「
9241 \begin_inset Flex Code
9242 status collapsed
9243
9244 \begin_layout Plain Layout
9245 |
9246 \end_layout
9247
9248 \end_inset
9249
9250 」で区切ります。
9251 \end_layout
9252
9253 \begin_layout Description
9254 \begin_inset Flex Code
9255 status collapsed
9256
9257 \begin_layout Plain Layout
9258 Other
9259 \end_layout
9260
9261 \end_inset
9262
9263  [
9264 \begin_inset Flex Code
9265 status collapsed
9266
9267 \begin_layout Plain Layout
9268 文字列=""
9269 \end_layout
9270
9271 \end_inset
9272
9273
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278
9279 \backslash
9280 documentclass
9281 \end_layout
9282
9283 \end_inset
9284
9285 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9286 \end_layout
9287
9288 \begin_layout Standard
9289 \begin_inset Flex Code
9290 status collapsed
9291
9292 \begin_layout Plain Layout
9293 ClassOptions
9294 \end_layout
9295
9296 \end_inset
9297
9298 部は「
9299 \begin_inset Flex Code
9300 status collapsed
9301
9302 \begin_layout Plain Layout
9303 End
9304 \end_layout
9305
9306 \end_inset
9307
9308 」で閉じる必要があります。
9309 \end_layout
9310
9311 \begin_layout Subsection
9312 段落様式
9313 \begin_inset CommandInset label
9314 LatexCommand label
9315 name "subsec:段落様式"
9316
9317 \end_inset
9318
9319
9320 \end_layout
9321
9322 \begin_layout Standard
9323 段落様式の記述は、以下のようになります
9324 \begin_inset Foot
9325 status collapsed
9326
9327 \begin_layout Plain Layout
9328 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9329 \end_layout
9330
9331 \end_inset
9332
9333
9334 \end_layout
9335
9336 \begin_layout LyX-Code
9337 Style 
9338 \family roman
9339 \emph on
9340 名称
9341 \end_layout
9342
9343 \begin_layout LyX-Code
9344  ...
9345 \end_layout
9346
9347 \begin_layout LyX-Code
9348 End
9349 \end_layout
9350
9351 \begin_layout Standard
9352 ここでは、以下のコマンドを使用することができます。
9353 \end_layout
9354
9355 \begin_layout Description
9356 \begin_inset Flex Code
9357 status collapsed
9358
9359 \begin_layout Plain Layout
9360 Align
9361 \end_layout
9362
9363 \end_inset
9364
9365  [
9366 \begin_inset Flex Code
9367 status collapsed
9368
9369 \begin_layout Plain Layout
9370
9371 \emph on
9372 block
9373 \emph default
9374 , left, right, center
9375 \end_layout
9376
9377 \end_inset
9378
9379 ] 段落の揃え。
9380 \end_layout
9381
9382 \begin_layout Description
9383 \begin_inset Flex Code
9384 status collapsed
9385
9386 \begin_layout Plain Layout
9387 AlignPossible
9388 \end_layout
9389
9390 \end_inset
9391
9392  [
9393 \begin_inset Flex Code
9394 status collapsed
9395
9396 \begin_layout Plain Layout
9397
9398 \emph on
9399 block
9400 \emph default
9401 , left, right, center
9402 \end_layout
9403
9404 \end_inset
9405
9406 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9407 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9408 はできません)。
9409 \end_layout
9410
9411 \begin_layout Description
9412 \begin_inset Flex Code
9413 status collapsed
9414
9415 \begin_layout Plain Layout
9416 Argument
9417 \end_layout
9418
9419 \end_inset
9420
9421  [
9422 \begin_inset Flex Code
9423 status collapsed
9424
9425 \begin_layout Plain Layout
9426 整数
9427 \end_layout
9428
9429 \end_inset
9430
9431 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9432 でのみ意味を持ちます。コマンドまたは環
9433 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9434 \begin_inset Flex Code
9435 status collapsed
9436
9437 \begin_layout Plain Layout
9438 EndArgument
9439 \end_layout
9440
9441 \end_inset
9442
9443 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9444 \begin_inset Separator parbreak
9445 \end_inset
9446
9447
9448 \end_layout
9449
9450 \begin_deeper
9451 \begin_layout Quote
9452
9453 \family typewriter
9454 Argument 1
9455 \end_layout
9456
9457 \begin_layout Quote
9458
9459 \family typewriter
9460 ...
9461 \end_layout
9462
9463 \begin_layout Quote
9464
9465 \family typewriter
9466 EndArgument
9467 \end_layout
9468
9469 \begin_layout Quote
9470
9471 \family typewriter
9472 Argument 2
9473 \end_layout
9474
9475 \begin_layout Quote
9476
9477 \family typewriter
9478 ...
9479 \end_layout
9480
9481 \begin_layout Quote
9482
9483 \family typewriter
9484 EndArgument
9485 \end_layout
9486
9487 \begin_layout Standard
9488 \begin_inset Flex Code
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492 Argument
9493 \end_layout
9494
9495 \end_inset
9496
9497 定義内部では、以下の指定をすることができます。
9498 \end_layout
9499
9500 \begin_layout Itemize
9501 \begin_inset Flex Code
9502 status collapsed
9503
9504 \begin_layout Plain Layout
9505 LabelString
9506 \end_layout
9507
9508 \end_inset
9509
9510  
9511 \begin_inset Flex Code
9512 status collapsed
9513
9514 \begin_layout Plain Layout
9515 [文字列]
9516 \end_layout
9517
9518 \end_inset
9519
9520  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 MenuString
9526 \end_layout
9527
9528 \end_inset
9529
9530 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9531 \begin_inset space \space{}
9532 \end_inset
9533
9534
9535 \begin_inset Quotes eld
9536 \end_inset
9537
9538
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 Short Title|S
9544 \end_layout
9545
9546 \end_inset
9547
9548
9549 \begin_inset Quotes erd
9550 \end_inset
9551
9552 )。
9553 \end_layout
9554
9555 \begin_layout Itemize
9556 \begin_inset Flex Code
9557 status collapsed
9558
9559 \begin_layout Plain Layout
9560 MenuString
9561 \end_layout
9562
9563 \end_inset
9564
9565  
9566 \begin_inset Flex Code
9567 status collapsed
9568
9569 \begin_layout Plain Layout
9570 [文字列]
9571 \end_layout
9572
9573 \end_inset
9574
9575  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9576 \begin_inset space \space{}
9577 \end_inset
9578
9579
9580 \begin_inset Quotes eld
9581 \end_inset
9582
9583
9584 \begin_inset Flex Code
9585 status collapsed
9586
9587 \begin_layout Plain Layout
9588 Short Title|S
9589 \end_layout
9590
9591 \end_inset
9592
9593
9594 \begin_inset Quotes erd
9595 \end_inset
9596
9597 )。この指定は必須ではありません。指定しない場合には、代わりに
9598 \begin_inset Flex Code
9599 status collapsed
9600
9601 \begin_layout Plain Layout
9602 LabelString
9603 \end_layout
9604
9605 \end_inset
9606
9607 がメニューに用いられます。
9608 \end_layout
9609
9610 \begin_layout Itemize
9611 \begin_inset Flex Code
9612 status collapsed
9613
9614 \begin_layout Plain Layout
9615 Tooltip
9616 \end_layout
9617
9618 \end_inset
9619
9620  
9621 \begin_inset Flex Code
9622 status collapsed
9623
9624 \begin_layout Plain Layout
9625 [文字列]
9626 \end_layout
9627
9628 \end_inset
9629
9630  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9631 \end_layout
9632
9633 \begin_layout Itemize
9634 \begin_inset Flex Code
9635 status collapsed
9636
9637 \begin_layout Plain Layout
9638 Mandatory
9639 \end_layout
9640
9641 \end_inset
9642
9643  [
9644 \begin_inset Flex Code
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648
9649 \emph on
9650 0
9651 \end_layout
9652
9653 \end_inset
9654
9655 ,
9656 \begin_inset space \thinspace{}
9657 \end_inset
9658
9659
9660 \begin_inset Flex Code
9661 status collapsed
9662
9663 \begin_layout Plain Layout
9664 1
9665 \end_layout
9666
9667 \end_inset
9668
9669 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9670 。既定では、必須引数は
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 {...}
9676 \end_layout
9677
9678 \end_inset
9679
9680 で区切られ、非必須引数は
9681 \begin_inset Flex Code
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 [...]
9686 \end_layout
9687
9688 \end_inset
9689
9690 で区切られます。
9691 \end_layout
9692
9693 \begin_layout Itemize
9694 \begin_inset Flex Code
9695 status collapsed
9696
9697 \begin_layout Plain Layout
9698 Requires
9699 \end_layout
9700
9701 \end_inset
9702
9703  
9704 \begin_inset Flex Code
9705 status collapsed
9706
9707 \begin_layout Plain Layout
9708 [整数=0]
9709 \end_layout
9710
9711 \end_inset
9712
9713  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9714 コマンドでは、
9715 \begin_inset Flex Code
9716 status collapsed
9717
9718 \begin_layout Plain Layout
9719
9720 \backslash
9721 command[][引数]{文字列}
9722 \end_layout
9723
9724 \end_inset
9725
9726 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 Argument 2
9732 \end_layout
9733
9734 \end_inset
9735
9736 中に
9737 \begin_inset Flex Code
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741 Requires 1
9742 \end_layout
9743
9744 \end_inset
9745
9746 ステートメントを置くことで実現できます。
9747 \end_layout
9748
9749 \begin_layout Itemize
9750 \begin_inset Flex Code
9751 status collapsed
9752
9753 \begin_layout Plain Layout
9754 LeftDelim
9755 \end_layout
9756
9757 \end_inset
9758
9759  
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 [文字列]
9765 \end_layout
9766
9767 \end_inset
9768
9769  (
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 {
9775 \end_layout
9776
9777 \end_inset
9778
9779
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 [
9785 \end_layout
9786
9787 \end_inset
9788
9789 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
9790 \begin_inset Flex Code
9791 status collapsed
9792
9793 \begin_layout Plain Layout
9794 <br/>
9795 \end_layout
9796
9797 \end_inset
9798
9799 で指示できます。
9800 \end_layout
9801
9802 \begin_layout Itemize
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 RightDelim
9808 \end_layout
9809
9810 \end_inset
9811
9812  
9813 \begin_inset Flex Code
9814 status collapsed
9815
9816 \begin_layout Plain Layout
9817 [文字列]
9818 \end_layout
9819
9820 \end_inset
9821
9822  (
9823 \begin_inset Flex Code
9824 status collapsed
9825
9826 \begin_layout Plain Layout
9827 }
9828 \end_layout
9829
9830 \end_inset
9831
9832
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 ]
9838 \end_layout
9839
9840 \end_inset
9841
9842 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 <br/>
9848 \end_layout
9849
9850 \end_inset
9851
9852 で指示できます。
9853 \end_layout
9854
9855 \begin_layout Itemize
9856 \begin_inset Flex Code
9857 status collapsed
9858
9859 \begin_layout Plain Layout
9860 DefaultArg
9861 \end_layout
9862
9863 \end_inset
9864
9865  
9866 \begin_inset Flex Code
9867 status collapsed
9868
9869 \begin_layout Plain Layout
9870 [文字列]
9871 \end_layout
9872
9873 \end_inset
9874
9875  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9876 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
9877 \end_layout
9878
9879 \begin_layout Itemize
9880 \begin_inset Flex Code
9881 status collapsed
9882
9883 \begin_layout Plain Layout
9884 PresetArg
9885 \end_layout
9886
9887 \end_inset
9888
9889  
9890 \begin_inset Flex Code
9891 status collapsed
9892
9893 \begin_layout Plain Layout
9894 [文字列]
9895 \end_layout
9896
9897 \end_inset
9898
9899  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
9900 \end_layout
9901
9902 \begin_layout Itemize
9903 \begin_inset Flex Code
9904 status collapsed
9905
9906 \begin_layout Plain Layout
9907 Font
9908 \end_layout
9909
9910 \end_inset
9911
9912  引数の内容に用いられるフォント。
9913 \begin_inset CommandInset ref
9914 LatexCommand ref
9915 reference "subsec:フォント指定"
9916
9917 \end_inset
9918
9919 参照。
9920 \end_layout
9921
9922 \begin_layout Itemize
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 LabelFont
9928 \end_layout
9929
9930 \end_inset
9931
9932  ラベルに用いられるフォント。
9933 \begin_inset CommandInset ref
9934 LatexCommand ref
9935 reference "subsec:フォント指定"
9936
9937 \end_inset
9938
9939 参照。
9940 \end_layout
9941
9942 \begin_layout Itemize
9943 \begin_inset Flex Code
9944 status collapsed
9945
9946 \begin_layout Plain Layout
9947 Decoration
9948 \end_layout
9949
9950 \end_inset
9951
9952  [
9953 \begin_inset Flex Code
9954 status collapsed
9955
9956 \begin_layout Plain Layout
9957
9958 \emph on
9959 Classic
9960 \emph default
9961 , Minimalistic, Conglomerate
9962 \end_layout
9963
9964 \end_inset
9965
9966 ] 差込枠の枠とボタンに用いられる装飾様式。
9967 \end_layout
9968
9969 \begin_layout Itemize
9970 \begin_inset Flex Code
9971 status collapsed
9972
9973 \begin_layout Plain Layout
9974 AutoInsert
9975 \end_layout
9976
9977 \end_inset
9978
9979  
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984 [整数=0]
9985 \end_layout
9986
9987 \end_inset
9988
9989  これが
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 1
9995 \end_layout
9996
9997 \end_inset
9998
9999 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
10000 \end_layout
10001
10002 \begin_layout Itemize
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007 InsertCotext
10008 \end_layout
10009
10010 \end_inset
10011
10012  
10013 \begin_inset Flex Code
10014 status collapsed
10015
10016 \begin_layout Plain Layout
10017 [整数=0]
10018 \end_layout
10019
10020 \end_inset
10021
10022  これが
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 1
10028 \end_layout
10029
10030 \end_inset
10031
10032 に設定されると、この引数は、副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます。
10033 \end_layout
10034
10035 \begin_layout Itemize
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 PassThruChars
10041 \end_layout
10042
10043 \end_inset
10044
10045  [
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 文字列
10051 \end_layout
10052
10053 \end_inset
10054
10055 ]
10056 \family typewriter
10057  
10058 \family default
10059 \SpecialChar LaTeX
10060 が要求する特別な翻訳は抜きにして、生の形で出力されるべき各文字を定義します。PassThruとは違って、引数用に、これは明示的に定義されなくてはなりません。つま
10061 り、引数は、親差込枠や親レイアウトからPassThruCharsを継承しません。
10062 \end_layout
10063
10064 \begin_layout Standard
10065 既定では、
10066 \begin_inset Flex Code
10067 status collapsed
10068
10069 \begin_layout Plain Layout
10070 LatexType
10071 \end_layout
10072
10073 \end_inset
10074
10075
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 Command
10081 \end_layout
10082
10083 \end_inset
10084
10085 のとき、各レイアウトで\SpecialChar LyX
10086 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10087 \begin_inset Flex Code
10088 status collapsed
10089
10090 \begin_layout Plain Layout
10091 post:
10092 \end_layout
10093
10094 \end_inset
10095
10096 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101 post:1
10102 \end_layout
10103
10104 \end_inset
10105
10106 となります。後置引数は、
10107 \begin_inset Flex Code
10108 status collapsed
10109
10110 \begin_layout Plain Layout
10111 Command
10112 \end_layout
10113
10114 \end_inset
10115
10116 以外の
10117 \begin_inset Flex Code
10118 status collapsed
10119
10120 \begin_layout Plain Layout
10121 LatexType
10122 \end_layout
10123
10124 \end_inset
10125
10126 では無視されます。
10127 \end_layout
10128
10129 \begin_layout Standard
10130 (
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135
10136 \backslash
10137 item[foo]
10138 \end_layout
10139
10140 \end_inset
10141
10142 のような)箇条書き
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147
10148 \backslash
10149 item
10150 \end_layout
10151
10152 \end_inset
10153
10154 の引数は、前置句
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 item:
10160 \end_layout
10161
10162 \end_inset
10163
10164 の後に番号を付けます(例:
10165 \begin_inset Flex Code
10166 status collapsed
10167
10168 \begin_layout Plain Layout
10169 Argument item:1
10170 \end_layout
10171
10172 \end_inset
10173
10174 )。
10175 \end_layout
10176
10177 \end_deeper
10178 \begin_layout Description
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 BabelPreamble
10184 \end_layout
10185
10186 \end_inset
10187
10188  これは、前に現れたこの様式の
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 BabelPreamble
10194 \end_layout
10195
10196 \end_inset
10197
10198 宣言をすべて、完全に上書きしますので注意してください。「
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 EndBabelPreamble
10204 \end_layout
10205
10206 \end_inset
10207
10208 」で閉じる必要があります。これの利用法についての詳細は、第
10209 \begin_inset CommandInset ref
10210 LatexCommand ref
10211 reference "subsec:段落様式の国際化"
10212
10213 \end_inset
10214
10215 節をご覧ください。
10216 \end_layout
10217
10218 \begin_layout Description
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 BottomSep
10224 \end_layout
10225
10226 \end_inset
10227
10228  [
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 浮動小数点型=0
10234 \end_layout
10235
10236 \end_inset
10237
10238 ]
10239 \begin_inset Foot
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 ここで「浮動小数点型」とは1.5のような実数を指します。
10244 \end_layout
10245
10246 \end_inset
10247
10248  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10249 す。
10250 \end_layout
10251
10252 \begin_layout Description
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 Category
10258 \end_layout
10259
10260 \end_inset
10261
10262  [
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 文字列
10268 \end_layout
10269
10270 \end_inset
10271
10272 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10273 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10274 \end_layout
10275
10276 \begin_layout Description
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 CommandDepth
10282 \end_layout
10283
10284 \end_inset
10285
10286  XMLコマンドの深度。XML型の書式でのみ使用されます。
10287 \end_layout
10288
10289 \begin_layout Description
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 CopyStyle
10295 \end_layout
10296
10297 \end_inset
10298
10299  [
10300 \begin_inset Flex Code
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304 文字列
10305 \end_layout
10306
10307 \end_inset
10308
10309 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10310 \end_layout
10311
10312 \begin_layout Description
10313 \begin_inset Flex Code
10314 status collapsed
10315
10316 \begin_layout Plain Layout
10317 DependsOn
10318 \end_layout
10319
10320 \end_inset
10321
10322  [
10323 \begin_inset Flex Code
10324 status collapsed
10325
10326 \begin_layout Plain Layout
10327 <名称>
10328 \end_layout
10329
10330 \end_inset
10331
10332 ]
10333 \lang english
10334  
10335 \lang japanese
10336 この
10337 \emph on
10338 前に
10339 \emph default
10340 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10341 \begin_inset Foot
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10346 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10347 あります。
10348 \end_layout
10349
10350 \end_inset
10351
10352
10353 \end_layout
10354
10355 \begin_layout Description
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 EndLabeltype
10361 \end_layout
10362
10363 \end_inset
10364
10365  [
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370
10371 \emph on
10372 No_Label
10373 \emph default
10374 , Box, Filled_Box, Static
10375 \end_layout
10376
10377 \end_inset
10378
10379 ] 段落の最後(あるいは
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384 LatexType
10385 \end_layout
10386
10387 \end_inset
10388
10389 が、
10390 \begin_inset Flex Code
10391 status collapsed
10392
10393 \begin_layout Plain Layout
10394 Environment
10395 \end_layout
10396
10397 \end_inset
10398
10399
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404 Item_Environment
10405 \end_layout
10406
10407 \end_inset
10408
10409
10410 \begin_inset Flex Code
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 List_Environment
10415 \end_layout
10416
10417 \end_inset
10418
10419 のいずれかの場合は、段落群の最後)に置くラベル。
10420 \begin_inset Flex Code
10421 status collapsed
10422
10423 \begin_layout Plain Layout
10424 No_Label
10425 \end_layout
10426
10427 \end_inset
10428
10429 の場合は「何もない」ことを指し、
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434 Box
10435 \end_layout
10436
10437 \end_inset
10438
10439 (あるいは
10440 \begin_inset Flex Code
10441 status collapsed
10442
10443 \begin_layout Plain Layout
10444 Filled_Box
10445 \end_layout
10446
10447 \end_inset
10448
10449 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10450 \begin_inset Flex Code
10451 status collapsed
10452
10453 \begin_layout Plain Layout
10454 Static
10455 \end_layout
10456
10457 \end_inset
10458
10459 は明示したテキスト文字列を指します。
10460 \end_layout
10461
10462 \begin_layout Description
10463 \begin_inset Flex Code
10464 status collapsed
10465
10466 \begin_layout Plain Layout
10467 EndLabelString
10468 \end_layout
10469
10470 \end_inset
10471
10472  [
10473 \begin_inset Flex Code
10474 status collapsed
10475
10476 \begin_layout Plain Layout
10477 文字列=""
10478 \end_layout
10479
10480 \end_inset
10481
10482
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 Static
10488 \end_layout
10489
10490 \end_inset
10491
10492
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 EndLabelType
10498 \end_layout
10499
10500 \end_inset
10501
10502 のラベルで用いる文字列。
10503 \end_layout
10504
10505 \begin_layout Description
10506 \begin_inset Flex Code
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 Font
10511 \end_layout
10512
10513 \end_inset
10514
10515  本文テキストとラベルの
10516 \emph on
10517 両方で
10518 \emph default
10519 用いられるフォント。第
10520 \begin_inset CommandInset ref
10521 LatexCommand ref
10522 reference "subsec:フォント指定"
10523
10524 \end_inset
10525
10526 節を参照。このフォントを定義すると、自動的に
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 LabelFont
10532 \end_layout
10533
10534 \end_inset
10535
10536 も同じ値で定義されることに注意してください。したがって、
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 LabelFont
10542 \end_layout
10543
10544 \end_inset
10545
10546 も同時に定義したい場合には、これを先に定義してください。
10547 \end_layout
10548
10549 \begin_layout Description
10550 \begin_inset Flex Code
10551 status collapsed
10552
10553 \begin_layout Plain Layout
10554 ForceLocal
10555 \end_layout
10556
10557 \end_inset
10558
10559  [
10560 \begin_inset Flex Code
10561 status collapsed
10562
10563 \begin_layout Plain Layout
10564 int=0
10565 \end_layout
10566
10567 \end_inset
10568
10569 ] 新しい様式を\SpecialChar LyX
10570 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10571  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10572 できます。様式の
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577 ForceLocal
10578 \end_layout
10579
10580 \end_inset
10581
10582 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10583 版の\SpecialChar LyX
10584 もこの様式を取り扱えるようになります。
10585 \begin_inset Flex Code
10586 status collapsed
10587
10588 \begin_layout Plain Layout
10589 ForceLocal
10590 \end_layout
10591
10592 \end_inset
10593
10594 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10595 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10596 \end_layout
10597
10598 \begin_layout Description
10599 \begin_inset Flex Code
10600 status collapsed
10601
10602 \begin_layout Plain Layout
10603 FreeSpacing
10604 \end_layout
10605
10606 \end_inset
10607
10608  [
10609 \emph on
10610
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 0
10616 \end_layout
10617
10618 \end_inset
10619
10620
10621 \emph default
10622 ,
10623 \begin_inset space \thinspace{}
10624 \end_inset
10625
10626
10627 \begin_inset Flex Code
10628 status collapsed
10629
10630 \begin_layout Plain Layout
10631 1
10632 \end_layout
10633
10634 \end_inset
10635
10636 ] \SpecialChar LyX
10637 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10638 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10639 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 FreeSpacing
10645 \end_layout
10646
10647 \end_inset
10648
10649 を有効にすることが認められています。\SpecialChar LyX
10650 は、\SpecialChar LaTeX
10651 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10652 \end_layout
10653
10654 \begin_layout Description
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 HTML*
10660 \end_layout
10661
10662 \end_inset
10663
10664  これらのタグは、XHTML出力で使用されます。第
10665 \begin_inset CommandInset ref
10666 LatexCommand ref
10667 reference "subsec:段落様式-XHTML"
10668
10669 \end_inset
10670
10671 節をご覧ください。
10672 \end_layout
10673
10674 \begin_layout Description
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 InnerTag
10680 \end_layout
10681
10682 \end_inset
10683
10684  [[FIXME]] (XML型書式でのみ使用されます。)
10685 \end_layout
10686
10687 \begin_layout Description
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 InPreamble
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 です。これは、
10737 \begin_inset Flex Code
10738 status collapsed
10739
10740 \begin_layout Plain Layout
10741 LatexType
10742 \end_layout
10743
10744 \end_inset
10745
10746
10747 \begin_inset Flex Code
10748 status collapsed
10749
10750 \begin_layout Plain Layout
10751 Command
10752 \end_layout
10753
10754 \end_inset
10755
10756 または
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 Paragraph
10762 \end_layout
10763
10764 \end_inset
10765
10766 の様式に対してのみ動作します。
10767 \end_layout
10768
10769 \begin_layout Description
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 InTitle
10775 \end_layout
10776
10777 \end_inset
10778
10779  [
10780 \emph on
10781
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 0
10787 \end_layout
10788
10789 \end_inset
10790
10791
10792 \emph default
10793 ,
10794 \begin_inset space \thinspace{}
10795 \end_inset
10796
10797
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802 1
10803 \end_layout
10804
10805 \end_inset
10806
10807
10808 \begin_inset Flex Code
10809 status collapsed
10810
10811 \begin_layout Plain Layout
10812 1
10813 \end_layout
10814
10815 \end_inset
10816
10817 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 TitleLatexType
10823 \end_layout
10824
10825 \end_inset
10826
10827
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 TitleLatexName
10833 \end_layout
10834
10835 \end_inset
10836
10837 も参照)。
10838 \end_layout
10839
10840 \begin_layout Description
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 ItemCommand
10846 \end_layout
10847
10848 \end_inset
10849
10850  [
10851 \begin_inset Flex Code
10852 status collapsed
10853
10854 \begin_layout Plain Layout
10855 文字列="item"
10856 \end_layout
10857
10858 \end_inset
10859
10860 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10861 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
10862 出力中では
10863 \begin_inset Flex Code
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867
10868 \backslash
10869 item
10870 \end_layout
10871
10872 \end_inset
10873
10874 となります)。
10875 \end_layout
10876
10877 \begin_layout Description
10878 \begin_inset Flex Code
10879 status collapsed
10880
10881 \begin_layout Plain Layout
10882 ItemSep
10883 \end_layout
10884
10885 \end_inset
10886
10887  [
10888 \begin_inset Flex Code
10889 status collapsed
10890
10891 \begin_layout Plain Layout
10892 浮動小数点型=0
10893 \end_layout
10894
10895 \end_inset
10896
10897 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 ParSep
10903 \end_layout
10904
10905 \end_inset
10906
10907 だけ分離されます。しかし、その環境の項目全体は、さらにこの
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912 ItemSep
10913 \end_layout
10914
10915 \end_inset
10916
10917 分だけ離されます。これは
10918 \emph on
10919 乗数
10920 \emph default
10921 であることに注意してください。
10922 \end_layout
10923
10924 \begin_layout Description
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 ItemTag
10930 \end_layout
10931
10932 \end_inset
10933
10934  [[FIXME]] (XML型書式でのみ使用されます。)
10935 \end_layout
10936
10937 \begin_layout Description
10938 \begin_inset Flex Code
10939 status collapsed
10940
10941 \begin_layout Plain Layout
10942 KeepEmpty
10943 \end_layout
10944
10945 \end_inset
10946
10947  [
10948 \emph on
10949
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 0
10955 \end_layout
10956
10957 \end_inset
10958
10959
10960 \emph default
10961 ,
10962 \begin_inset space \thinspace{}
10963 \end_inset
10964
10965
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 1
10971 \end_layout
10972
10973 \end_inset
10974
10975 ] 段落を空のままにすると、\SpecialChar LaTeX
10976 出力が空になってしまうので、通常、\SpecialChar LyX
10977 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
10978 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
10979 まないある種の改行として使用することもあります。
10980 \end_layout
10981
10982 \begin_layout Description
10983 \begin_inset Flex Code
10984 status collapsed
10985
10986 \begin_layout Plain Layout
10987 LabelBottomsep
10988 \end_layout
10989
10990 \end_inset
10991
10992  [
10993 \begin_inset Flex Code
10994 status collapsed
10995
10996 \begin_layout Plain Layout
10997 浮動小数点型=0
10998 \end_layout
10999
11000 \end_inset
11001
11002 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11003 \begin_inset Flex Code
11004 status collapsed
11005
11006 \begin_layout Plain Layout
11007 Top_Environment
11008 \end_layout
11009
11010 \end_inset
11011
11012 および
11013 \begin_inset Newline linebreak
11014 \end_inset
11015
11016
11017 \begin_inset Flex Code
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 Centered_Top_Environment
11022 \end_layout
11023
11024 \end_inset
11025
11026 )。
11027 \end_layout
11028
11029 \begin_layout Description
11030 \begin_inset Flex Code
11031 status collapsed
11032
11033 \begin_layout Plain Layout
11034 LabelCounter
11035 \end_layout
11036
11037 \end_inset
11038
11039  [
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 文字列=""
11045 \end_layout
11046
11047 \end_inset
11048
11049 ] 自動連番に使われるカウンタ名(詳しくは第
11050 \begin_inset CommandInset ref
11051 LatexCommand ref
11052 reference "subsec:カウンタ"
11053
11054 \end_inset
11055
11056 節参照)。カウンタがラベル中に表示されるようにするためには、
11057 \begin_inset Flex Code
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 LabelString
11062 \end_layout
11063
11064 \end_inset
11065
11066 中で参照する必要があります。これは、少なくとも
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071 Static
11072 \end_layout
11073
11074 \end_inset
11075
11076
11077 \begin_inset Flex Code
11078 status collapsed
11079
11080 \begin_layout Plain Layout
11081 Above
11082 \end_layout
11083
11084 \end_inset
11085
11086
11087 \begin_inset Flex Code
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091 Centered
11092 \end_layout
11093
11094 \end_inset
11095
11096 の各
11097 \begin_inset Flex Code
11098 status collapsed
11099
11100 \begin_layout Plain Layout
11101 LabelType
11102 \end_layout
11103
11104 \end_inset
11105
11106 で動作します。
11107 \begin_inset Newline newline
11108 \end_inset
11109
11110 また、
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115 LabelType
11116 \end_layout
11117
11118 \end_inset
11119
11120
11121 \begin_inset Flex Code
11122 status collapsed
11123
11124 \begin_layout Plain Layout
11125 Enumerate
11126 \end_layout
11127
11128 \end_inset
11129
11130 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11131 \begin_inset Flex Code
11132 status collapsed
11133
11134 \begin_layout Plain Layout
11135 LabelCounter myenum
11136 \end_layout
11137
11138 \end_inset
11139
11140 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11141 におけるのと同様、実際に使われるカウンタは、
11142 \begin_inset Flex Code
11143 status collapsed
11144
11145 \begin_layout Plain Layout
11146 myenumi
11147 \end_layout
11148
11149 \end_inset
11150
11151
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 myenumii
11157 \end_layout
11158
11159 \end_inset
11160
11161
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 myenumii
11167 \end_layout
11168
11169 \end_inset
11170
11171
11172 \begin_inset Flex Code
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176 myenumiv
11177 \end_layout
11178
11179 \end_inset
11180
11181 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11182 \begin_inset Newline newline
11183 \end_inset
11184
11185 カウンタの詳細については、
11186 \begin_inset CommandInset ref
11187 LatexCommand ref
11188 reference "subsec:カウンタ"
11189
11190 \end_inset
11191
11192 をご覧ください。
11193 \end_layout
11194
11195 \begin_layout Description
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200 LabelFont
11201 \end_layout
11202
11203 \end_inset
11204
11205  ラベルに使用されるフォント。
11206 \begin_inset CommandInset ref
11207 LatexCommand ref
11208 reference "subsec:フォント指定"
11209
11210 \end_inset
11211
11212 を参照。
11213 \end_layout
11214
11215 \begin_layout Description
11216 \begin_inset Flex Code
11217 status collapsed
11218
11219 \begin_layout Plain Layout
11220 LabelIndent
11221 \end_layout
11222
11223 \end_inset
11224
11225  [
11226 \begin_inset Flex Code
11227 status collapsed
11228
11229 \begin_layout Plain Layout
11230 文字列=""
11231 \end_layout
11232
11233 \end_inset
11234
11235 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11236 \end_layout
11237
11238 \begin_layout Description
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 LabelSep
11244 \end_layout
11245
11246 \end_inset
11247
11248  [
11249 \begin_inset Flex Code
11250 status collapsed
11251
11252 \begin_layout Plain Layout
11253 文字列=""
11254 \end_layout
11255
11256 \end_inset
11257
11258 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11259 \end_layout
11260
11261 \begin_layout Description
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 LabelString
11267 \end_layout
11268
11269 \end_inset
11270
11271  [
11272 \begin_inset Flex Code
11273 status collapsed
11274
11275 \begin_layout Plain Layout
11276 文字列=""
11277 \end_layout
11278
11279 \end_inset
11280
11281
11282 \begin_inset Flex Code
11283 status collapsed
11284
11285 \begin_layout Plain Layout
11286 Static
11287 \end_layout
11288
11289 \end_inset
11290
11291 ラベル型でラベルに使用する文字列。
11292 \begin_inset Flex Code
11293 status collapsed
11294
11295 \begin_layout Plain Layout
11296 LabelCounter
11297 \end_layout
11298
11299 \end_inset
11300
11301 を設定している場合、
11302 \begin_inset CommandInset ref
11303 LatexCommand ref
11304 reference "subsec:カウンタ"
11305
11306 \end_inset
11307
11308 に述べられている特別な整形コマンドを含めることができます。
11309 \end_layout
11310
11311 \begin_layout Description
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 LabelStringAppendix
11317 \end_layout
11318
11319 \end_inset
11320
11321  [
11322 \begin_inset Flex Code
11323 status collapsed
11324
11325 \begin_layout Plain Layout
11326 文字列=""
11327 \end_layout
11328
11329 \end_inset
11330
11331 ] これは付録の中で
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336 LabelString
11337 \end_layout
11338
11339 \end_inset
11340
11341 の代わりに用いられます。各
11342 \begin_inset Flex Code
11343 status collapsed
11344
11345 \begin_layout Plain Layout
11346 LabelString
11347 \end_layout
11348
11349 \end_inset
11350
11351 ステートメントは、
11352 \begin_inset Flex Code
11353 status collapsed
11354
11355 \begin_layout Plain Layout
11356 LabelStringAppendix
11357 \end_layout
11358
11359 \end_inset
11360
11361 をもリセットすることに注意してください。
11362 \end_layout
11363
11364 \begin_layout Description
11365 \begin_inset Flex Code
11366 status collapsed
11367
11368 \begin_layout Plain Layout
11369 LabelTag
11370 \end_layout
11371
11372 \end_inset
11373
11374  [FIXME] (XML型書式でのみ使用されます。)
11375 \end_layout
11376
11377 \begin_layout Description
11378 \begin_inset Flex Code
11379 status collapsed
11380
11381 \begin_layout Plain Layout
11382 LabelType
11383 \end_layout
11384
11385 \end_inset
11386
11387  [
11388 \begin_inset Flex Code
11389 status collapsed
11390
11391 \begin_layout Plain Layout
11392
11393 \emph on
11394 No_Label
11395 \emph default
11396 , Manual, Static, Above,
11397 \begin_inset Newline newline
11398 \end_inset
11399
11400 Centered, Sensitive, Enumerate,
11401 \begin_inset Newline newline
11402 \end_inset
11403
11404 Itemize, Bibliography
11405 \end_layout
11406
11407 \end_inset
11408
11409 ]
11410 \begin_inset Separator parbreak
11411 \end_inset
11412
11413
11414 \end_layout
11415
11416 \begin_deeper
11417 \begin_layout Description
11418 \begin_inset Flex Code
11419 status collapsed
11420
11421 \begin_layout Plain Layout
11422 Manual
11423 \end_layout
11424
11425 \end_inset
11426
11427  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11428 \end_layout
11429
11430 \begin_layout Description
11431 \begin_inset Flex Code
11432 status collapsed
11433
11434 \begin_layout Plain Layout
11435 Static
11436 \end_layout
11437
11438 \end_inset
11439
11440  は、ラベルが
11441 \begin_inset Flex Code
11442 status collapsed
11443
11444 \begin_layout Plain Layout
11445 LabelString
11446 \end_layout
11447
11448 \end_inset
11449
11450 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 LatexType
11456 \end_layout
11457
11458 \end_inset
11459
11460
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 Environment
11466 \end_layout
11467
11468 \end_inset
11469
11470 のときは、連続する同じ
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 Style
11476 \end_layout
11477
11478 \end_inset
11479
11480 の段落中、最初の段落にのみ表示されます。
11481 \end_layout
11482
11483 \begin_layout Description
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Above
11489 \end_layout
11490
11491 \end_inset
11492
11493 および
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 Centered
11499 \end_layout
11500
11501 \end_inset
11502
11503  は、
11504 \begin_inset Flex Code
11505 status collapsed
11506
11507 \begin_layout Plain Layout
11508 Static
11509 \end_layout
11510
11511 \end_inset
11512
11513 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11514 \end_layout
11515
11516 \begin_layout Description
11517 \begin_inset Flex Code
11518 status collapsed
11519
11520 \begin_layout Plain Layout
11521 Sensitive
11522 \end_layout
11523
11524 \end_inset
11525
11526  はキャプションラベルの「図」や「表」の特別な場合です。
11527 \begin_inset Flex Code
11528 status collapsed
11529
11530 \begin_layout Plain Layout
11531 Sensitive
11532 \end_layout
11533
11534 \end_inset
11535
11536 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11537 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11538 \begin_inset Flex Code
11539 status collapsed
11540
11541 \begin_layout Plain Layout
11542 LabelString
11543 \end_layout
11544
11545 \end_inset
11546
11547 は「意味を成しません!」と表示されます。
11548 \end_layout
11549
11550 \begin_layout Description
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 Enumerate
11556 \end_layout
11557
11558 \end_inset
11559
11560  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11561 す。
11562 \end_layout
11563
11564 \begin_layout Description
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569 Itemize
11570 \end_layout
11571
11572 \end_inset
11573
11574  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11575 \end_layout
11576
11577 \begin_layout Description
11578 \begin_inset Flex Code
11579 status collapsed
11580
11581 \begin_layout Plain Layout
11582 Bibliography
11583 \end_layout
11584
11585 \end_inset
11586
11587  は、
11588 \begin_inset Flex Code
11589 status collapsed
11590
11591 \begin_layout Plain Layout
11592 LatexType BibEnvironment
11593 \end_layout
11594
11595 \end_inset
11596
11597 とともにのみ使用されます。
11598 \end_layout
11599
11600 \end_deeper
11601 \begin_layout Description
11602 \begin_inset Flex Code
11603 status collapsed
11604
11605 \begin_layout Plain Layout
11606 LangPreamble
11607 \end_layout
11608
11609 \end_inset
11610
11611  これは、この様式で既に出現した
11612 \begin_inset Flex Code
11613 status collapsed
11614
11615 \begin_layout Plain Layout
11616 LangPreamble
11617 \end_layout
11618
11619 \end_inset
11620
11621 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11622 \begin_inset CommandInset ref
11623 LatexCommand ref
11624 reference "subsec:段落様式の国際化"
11625
11626 \end_inset
11627
11628 をご覧ください。
11629 \end_layout
11630
11631 \begin_layout Description
11632 \begin_inset Flex Code
11633 status collapsed
11634
11635 \begin_layout Plain Layout
11636 LatexName
11637 \end_layout
11638
11639 \end_inset
11640
11641  [
11642 \begin_inset Flex Code
11643 status collapsed
11644
11645 \begin_layout Plain Layout
11646 <名称>
11647 \end_layout
11648
11649 \end_inset
11650
11651 ] 対応する\SpecialChar LaTeX
11652 の名称です。環境名かコマンド名を指します。
11653 \end_layout
11654
11655 \begin_layout Description
11656 \begin_inset Flex Code
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660 LatexParam
11661 \end_layout
11662
11663 \end_inset
11664
11665  [
11666 \begin_inset Flex Code
11667 status collapsed
11668
11669 \begin_layout Plain Layout
11670 <パラメータ>
11671 \end_layout
11672
11673 \end_inset
11674
11675 ] 対応する
11676 \begin_inset Flex Code
11677 status collapsed
11678
11679 \begin_layout Plain Layout
11680 LatexName
11681 \end_layout
11682
11683 \end_inset
11684
11685 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11686 内部から変更することはできません(変更可能なパラメータには
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 Argument
11692 \end_layout
11693
11694 \end_inset
11695
11696 を使用してください)。これは、全ての\SpecialChar LaTeX
11697  
11698 \begin_inset Flex Code
11699 status collapsed
11700
11701 \begin_layout Plain Layout
11702 Argument
11703 \end_layout
11704
11705 \end_inset
11706
11707 の後にそのままの形で出力されます。
11708 \end_layout
11709
11710 \begin_layout Description
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 LatexType
11716 \end_layout
11717
11718 \end_inset
11719
11720  [
11721 \begin_inset Flex Code
11722 status collapsed
11723
11724 \begin_layout Plain Layout
11725
11726 \emph on
11727 Paragraph
11728 \emph default
11729 , Command, Environment, Item_Environment,
11730 \begin_inset Newline newline
11731 \end_inset
11732
11733 List_Environment, Bib_Environment
11734 \end_layout
11735
11736 \end_inset
11737
11738 ] レイアウトがどのように\SpecialChar LaTeX
11739 に変換されるべきかを示します
11740 \begin_inset Foot
11741 status collapsed
11742
11743 \begin_layout Plain Layout
11744 これらのルールはSGMLクラスにも適用されるので、
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 LatexType
11750 \end_layout
11751
11752 \end_inset
11753
11754 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11755 \begin_inset Flex Code
11756 status collapsed
11757
11758 \begin_layout Plain Layout
11759 db_*.inc
11760 \end_layout
11761
11762 \end_inset
11763
11764 )を見てください。
11765 \end_layout
11766
11767 \end_inset
11768
11769
11770 \begin_inset Separator parbreak
11771 \end_inset
11772
11773
11774 \end_layout
11775
11776 \begin_deeper
11777 \begin_layout Description
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782 Paragraph
11783 \end_layout
11784
11785 \end_inset
11786
11787  は、何も特別なことは意味しません。
11788 \end_layout
11789
11790 \begin_layout Description
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 Command
11796 \end_layout
11797
11798 \end_inset
11799
11800  は、
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805
11806 \backslash
11807
11808 \emph on
11809 LatexName
11810 \emph default
11811 {\SpecialChar ldots
11812 }
11813 \end_layout
11814
11815 \end_inset
11816
11817 を意味します。
11818 \end_layout
11819
11820 \begin_layout Description
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 Environment
11826 \end_layout
11827
11828 \end_inset
11829
11830  は、
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \backslash
11837 begin{
11838 \emph on
11839 LatexName
11840 \emph default
11841 }\SpecialChar ldots
11842
11843 \backslash
11844 end{
11845 \emph on
11846 LatexName
11847 \emph default
11848 }
11849 \end_layout
11850
11851 \end_inset
11852
11853 を意味します。
11854 \end_layout
11855
11856 \begin_layout Description
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861 Item_Environment
11862 \end_layout
11863
11864 \end_inset
11865
11866  は
11867 \begin_inset Flex Code
11868 status collapsed
11869
11870 \begin_layout Plain Layout
11871 Environment
11872 \end_layout
11873
11874 \end_inset
11875
11876 と同じですが、
11877 \begin_inset Flex Code
11878 status collapsed
11879
11880 \begin_layout Plain Layout
11881
11882 \backslash
11883 item
11884 \end_layout
11885
11886 \end_inset
11887
11888 がこの環境のすべての段落に付けられるところだけが異なっています。
11889 \end_layout
11890
11891 \begin_layout Description
11892 \begin_inset Flex Code
11893 status collapsed
11894
11895 \begin_layout Plain Layout
11896 List_Environment
11897 \end_layout
11898
11899 \end_inset
11900
11901  は
11902 \begin_inset Flex Code
11903 status collapsed
11904
11905 \begin_layout Plain Layout
11906 Item_Environment
11907 \end_layout
11908
11909 \end_inset
11910
11911 と同じですが、
11912 \begin_inset Flex Code
11913 status collapsed
11914
11915 \begin_layout Plain Layout
11916 LabelWidthString
11917 \end_layout
11918
11919 \end_inset
11920
11921 が環境の引数として渡されるところだけが異なっています。
11922 \begin_inset Flex Code
11923 status collapsed
11924
11925 \begin_layout Plain Layout
11926 LabelWidthString
11927 \end_layout
11928
11929 \end_inset
11930
11931 は、
11932 \begin_inset Flex MenuItem
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 編集\SpecialChar menuseparator
11937 段落設定
11938 \end_layout
11939
11940 \end_inset
11941
11942 ダイアログで定義することができます。
11943 \end_layout
11944
11945 \begin_layout Description
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 Bib_Environment
11951 \end_layout
11952
11953 \end_inset
11954
11955  は
11956 \begin_inset Flex Code
11957 status collapsed
11958
11959 \begin_layout Plain Layout
11960 Environment
11961 \end_layout
11962
11963 \end_inset
11964
11965 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
11966 \begin_inset Newline newline
11967 \end_inset
11968
11969
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974
11975 \backslash
11976 begin{thebibliography}{99}
11977 \end_layout
11978
11979 \end_inset
11980
11981
11982 \begin_inset Newline newline
11983 \end_inset
11984
11985 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
11986 \end_layout
11987
11988 \begin_layout Standard
11989 上記最後のいくつかをまとめると、\SpecialChar LaTeX
11990 出力は、\SpecialChar LaTeX
11991 型に依存して
11992 \end_layout
11993
11994 \begin_layout LyX-Code
11995
11996 \backslash
11997 LatexName[LatexParam]{\SpecialChar ldots
11998 }
11999 \end_layout
12000
12001 \begin_layout Standard
12002 のようになるか、
12003 \end_layout
12004
12005 \begin_layout LyX-Code
12006
12007 \backslash
12008 begin{LatexName}[LatexParam] \SpecialChar ldots
12009  
12010 \backslash
12011 end{LatexName}.
12012 \end_layout
12013
12014 \begin_layout Standard
12015 となります。
12016 \end_layout
12017
12018 \end_deeper
12019 \begin_layout Description
12020 \begin_inset Flex Code
12021 status collapsed
12022
12023 \begin_layout Plain Layout
12024 LeftDelim
12025 \end_layout
12026
12027 \end_inset
12028
12029  [
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034 文字列
12035 \end_layout
12036
12037 \end_inset
12038
12039 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12040 \begin_inset Flex Code
12041 status collapsed
12042
12043 \begin_layout Plain Layout
12044 <br/>
12045 \end_layout
12046
12047 \end_inset
12048
12049 で指示できます。
12050 \end_layout
12051
12052 \begin_layout Description
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 LeftMargin
12058 \end_layout
12059
12060 \end_inset
12061
12062  [
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 文字列=""
12068 \end_layout
12069
12070 \end_inset
12071
12072 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12073 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12074 \end_inset
12075
12076 をかけて加えられます。このパラメータは、
12077 \begin_inset Flex Code
12078 status collapsed
12079
12080 \begin_layout Plain Layout
12081 Margin
12082 \end_layout
12083
12084 \end_inset
12085
12086
12087 \begin_inset Flex Code
12088 status collapsed
12089
12090 \begin_layout Plain Layout
12091 Manual
12092 \end_layout
12093
12094 \end_inset
12095
12096 あるいは
12097 \begin_inset Flex Code
12098 status collapsed
12099
12100 \begin_layout Plain Layout
12101 Dynamic
12102 \end_layout
12103
12104 \end_inset
12105
12106 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12107 \begin_inset Newline newline
12108 \end_inset
12109
12110 たとえば「
12111 \begin_inset Flex Code
12112 status collapsed
12113
12114 \begin_layout Plain Layout
12115 MM
12116 \end_layout
12117
12118 \end_inset
12119
12120 」と指定すると、段落を通常フォントの「
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 MM
12126 \end_layout
12127
12128 \end_inset
12129
12130 」の幅だけ行頭下げを行います。文字列の前に「
12131 \begin_inset Flex Code
12132 status collapsed
12133
12134 \begin_layout Plain Layout
12135 -
12136 \end_layout
12137
12138 \end_inset
12139
12140 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12141 \end_layout
12142
12143 \begin_layout Description
12144 \begin_inset Flex Code
12145 status collapsed
12146
12147 \begin_layout Plain Layout
12148 Margin
12149 \end_layout
12150
12151 \end_inset
12152
12153  [
12154 \begin_inset Flex Code
12155 status collapsed
12156
12157 \begin_layout Plain Layout
12158
12159 \emph on
12160 Static
12161 \emph default
12162 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12163 \end_layout
12164
12165 \end_inset
12166
12167
12168 \begin_inset Newline newline
12169 \end_inset
12170
12171 このレイアウトの左余白の種類です。
12172 \begin_inset Separator parbreak
12173 \end_inset
12174
12175
12176 \end_layout
12177
12178 \begin_deeper
12179 \begin_layout Description
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 Static
12185 \end_layout
12186
12187 \end_inset
12188
12189  は固定余白を示します。
12190 \end_layout
12191
12192 \begin_layout Description
12193 \begin_inset Flex Code
12194 status collapsed
12195
12196 \begin_layout Plain Layout
12197 Manual
12198 \end_layout
12199
12200 \end_inset
12201
12202  は、左余白が
12203 \begin_inset Flex MenuItem
12204 status collapsed
12205
12206 \begin_layout Plain Layout
12207 編集\SpecialChar menuseparator
12208 段落設定
12209 \end_layout
12210
12211 \end_inset
12212
12213 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12214 \end_layout
12215
12216 \begin_layout Description
12217 \begin_inset Flex Code
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221 Dynamic
12222 \end_layout
12223
12224 \end_inset
12225
12226  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12227  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12228 \end_layout
12229
12230 \begin_layout Description
12231 \begin_inset Flex Code
12232 status collapsed
12233
12234 \begin_layout Plain Layout
12235 First_Dynamic
12236 \end_layout
12237
12238 \end_inset
12239
12240  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12241 \end_layout
12242
12243 \begin_layout Description
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 Right_Address_Box
12249 \end_layout
12250
12251 \end_inset
12252
12253  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12254 \end_layout
12255
12256 \end_deeper
12257 \begin_layout Description
12258 \begin_inset Flex Code
12259 status collapsed
12260
12261 \begin_layout Plain Layout
12262 NeedProtect
12263 \end_layout
12264
12265 \end_inset
12266
12267  [
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272
12273 \emph on
12274 0
12275 \end_layout
12276
12277 \end_inset
12278
12279 ,
12280 \begin_inset space \thinspace{}
12281 \end_inset
12282
12283
12284 \begin_inset Flex Code
12285 status collapsed
12286
12287 \begin_layout Plain Layout
12288 1
12289 \end_layout
12290
12291 \end_inset
12292
12293 ] このレイアウト中の脆弱なコマンドが
12294 \begin_inset Flex Code
12295 status collapsed
12296
12297 \begin_layout Plain Layout
12298
12299 \backslash
12300 protect
12301 \end_layout
12302
12303 \end_inset
12304
12305 されるべきか否か(註:これはこのコマンド自体が
12306 \begin_inset Flex Code
12307 status collapsed
12308
12309 \begin_layout Plain Layout
12310
12311 \backslash
12312 protect
12313 \end_layout
12314
12315 \end_inset
12316
12317 されるべきかでは
12318 \emph on
12319 ありません
12320 \emph default
12321 )。
12322 \end_layout
12323
12324 \begin_layout Description
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 Newline
12330 \end_layout
12331
12332 \end_inset
12333
12334  [
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 0
12340 \end_layout
12341
12342 \end_inset
12343
12344 ,
12345 \begin_inset space \thinspace{}
12346 \end_inset
12347
12348
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353
12354 \emph on
12355 1
12356 \end_layout
12357
12358 \end_inset
12359
12360 ] 新規行を\SpecialChar LaTeX
12361 の新規行(
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366
12367 \backslash
12368
12369 \backslash
12370
12371 \end_layout
12372
12373 \end_inset
12374
12375 )に変換するか否か。\SpecialChar LyX
12376 中で\SpecialChar LaTeX
12377 編集をやりやすくするために、変換は無効にすることができます。
12378 \end_layout
12379
12380 \begin_layout Description
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 NextNoIndent
12386 \end_layout
12387
12388 \end_inset
12389
12390  [
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395
12396 \emph on
12397 0
12398 \end_layout
12399
12400 \end_inset
12401
12402 ,
12403 \begin_inset space \thinspace{}
12404 \end_inset
12405
12406
12407 \begin_inset Flex Code
12408 status collapsed
12409
12410 \begin_layout Plain Layout
12411 1
12412 \end_layout
12413
12414 \end_inset
12415
12416 ] 真に設定すると、
12417 \begin_inset Flex Code
12418 status collapsed
12419
12420 \begin_layout Plain Layout
12421 DefaultStyle
12422 \end_layout
12423
12424 \end_inset
12425
12426  (通常
12427 \begin_inset Flex Code
12428 status collapsed
12429
12430 \begin_layout Plain Layout
12431 Standard
12432 \end_layout
12433
12434 \end_inset
12435
12436 )段落が行頭下げになっている場合でも、この型の段落に続くそれらの段落は、字下げされません(逆に言えば,既定でない段落には影響を与えません)。
12437 \end_layout
12438
12439 \begin_layout Description
12440 \begin_inset Flex Code
12441 status collapsed
12442
12443 \begin_layout Plain Layout
12444 ObsoletedBy
12445 \end_layout
12446
12447 \end_inset
12448
12449  [
12450 \begin_inset Flex Code
12451 status collapsed
12452
12453 \begin_layout Plain Layout
12454 <名称>
12455 \end_layout
12456
12457 \end_inset
12458
12459 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12460 \end_layout
12461
12462 \begin_layout Description
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 ParagraphGroup
12468 \end_layout
12469
12470 \end_inset
12471
12472  [
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 0
12478 \end_layout
12479
12480 \end_inset
12481
12482 ,
12483 \begin_inset space \thinspace{}
12484 \end_inset
12485
12486
12487 \begin_inset Flex Code
12488 status collapsed
12489
12490 \begin_layout Plain Layout
12491 1
12492 \end_layout
12493
12494 \end_inset
12495
12496 ] 同じ型の段落が引き続く場合、同じ段落として取り扱うか否かを決定します。これは、そのような連続グループに対して、
12497 \begin_inset Flex Code
12498 status collapsed
12499
12500 \begin_layout Plain Layout
12501 GuiLabel
12502 \end_layout
12503
12504 \end_inset
12505
12506 が一度だけ出力される効果があります。既定では、
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 LaTeXType
12512 \end_layout
12513
12514 \end_inset
12515
12516
12517 \begin_inset Flex Code
12518 status collapsed
12519
12520 \begin_layout Plain Layout
12521 Environment
12522 \end_layout
12523
12524 \end_inset
12525
12526 および
12527 \begin_inset Flex Code
12528 status collapsed
12529
12530 \begin_layout Plain Layout
12531 Bib_Environment
12532 \end_layout
12533
12534 \end_inset
12535
12536  については有効であり、他の型すべてについて無効になっています。
12537 \end_layout
12538
12539 \begin_layout Description
12540 \begin_inset Flex Code
12541 status collapsed
12542
12543 \begin_layout Plain Layout
12544 ParbreakIsNewline
12545 \end_layout
12546
12547 \end_inset
12548
12549  [
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554
12555 \emph on
12556 0
12557 \end_layout
12558
12559 \end_inset
12560
12561 ,
12562 \begin_inset space \thinspace{}
12563 \end_inset
12564
12565
12566 \begin_inset Flex Code
12567 status collapsed
12568
12569 \begin_layout Plain Layout
12570 1
12571 \end_layout
12572
12573 \end_inset
12574
12575 ] \SpecialChar LaTeX
12576 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12577 \begin_inset Flex Code
12578 status collapsed
12579
12580 \begin_layout Plain Layout
12581 PassThru 1
12582 \end_layout
12583
12584 \end_inset
12585
12586 と併用すれば、(\SpecialChar TeX
12587 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12588 \end_layout
12589
12590 \begin_layout Description
12591 \begin_inset Flex Code
12592 status collapsed
12593
12594 \begin_layout Plain Layout
12595 ParIndent
12596 \end_layout
12597
12598 \end_inset
12599
12600  [
12601 \begin_inset Flex Code
12602 status collapsed
12603
12604 \begin_layout Plain Layout
12605 文字列=""
12606 \end_layout
12607
12608 \end_inset
12609
12610 ] 段落の最初の行の行頭下げ。レイアウトによっては
12611 \begin_inset Flex Code
12612 status collapsed
12613
12614 \begin_layout Plain Layout
12615 Parindent
12616 \end_layout
12617
12618 \end_inset
12619
12620 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12621 \begin_inset Flex Code
12622 status collapsed
12623
12624 \begin_layout Plain Layout
12625 NextNoIndent
12626 \end_layout
12627
12628 \end_inset
12629
12630 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635 Parindent
12636 \end_layout
12637
12638 \end_inset
12639
12640 ではなく、この環境の
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 Parindent
12646 \end_layout
12647
12648 \end_inset
12649
12650 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12651 \end_layout
12652
12653 \begin_layout Description
12654 \begin_inset Flex Code
12655 status collapsed
12656
12657 \begin_layout Plain Layout
12658 ParSep
12659 \end_layout
12660
12661 \end_inset
12662
12663  [
12664 \begin_inset Flex Code
12665 status collapsed
12666
12667 \begin_layout Plain Layout
12668 浮動小数点型=0
12669 \end_layout
12670
12671 \end_inset
12672
12673 ] このレイアウトの2段落間の垂直余白。
12674 \end_layout
12675
12676 \begin_layout Description
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 Parskip
12682 \end_layout
12683
12684 \end_inset
12685
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 ] \SpecialChar LyX
12697 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12698 択した際には、\SpecialChar LaTeX
12699 型「段落」レイアウトの
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704 ParIndent
12705 \end_layout
12706
12707 \end_inset
12708
12709 は無視され、すべての段落はこの
12710 \begin_inset Flex Code
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 Parskip
12715 \end_layout
12716
12717 \end_inset
12718
12719 引数分だけ引き離されます。垂直余白は、
12720 \begin_inset Flex Code
12721 status collapsed
12722
12723 \begin_layout Plain Layout
12724 DefaultHeight
12725 \end_layout
12726
12727 \end_inset
12728
12729 を標準フォントでの1行の高さとすると、
12730 \begin_inset Flex Code
12731 status collapsed
12732
12733 \begin_layout Plain Layout
12734 Parskipの値
12735 \end_layout
12736
12737 \end_inset
12738
12739
12740 \begin_inset Formula $\times$
12741 \end_inset
12742
12743
12744 \begin_inset Flex Code
12745 status collapsed
12746
12747 \begin_layout Plain Layout
12748 DefaultHeight
12749 \end_layout
12750
12751 \end_inset
12752
12753 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
12754 \end_layout
12755
12756 \begin_layout Description
12757 \begin_inset Flex Code
12758 status collapsed
12759
12760 \begin_layout Plain Layout
12761 PassThru
12762 \end_layout
12763
12764 \end_inset
12765
12766  [
12767 \emph on
12768
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 0
12774 \end_layout
12775
12776 \end_inset
12777
12778
12779 \emph default
12780 ,
12781 \begin_inset space \thinspace{}
12782 \end_inset
12783
12784
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 1
12790 \end_layout
12791
12792 \end_inset
12793
12794 ] この段落の内容が、\SpecialChar LaTeX
12795 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
12796 \end_layout
12797
12798 \begin_layout Description
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803 PassThruChars
12804 \end_layout
12805
12806 \end_inset
12807
12808  [
12809 \begin_inset Flex Code
12810 status collapsed
12811
12812 \begin_layout Plain Layout
12813 文字列
12814 \end_layout
12815
12816 \end_inset
12817
12818 ]
12819 \family typewriter
12820  
12821 \family default
12822 \SpecialChar LaTeX
12823 が要請する特別な翻訳なしで。生の形で出力されるべき、それぞれの文字を定義します。
12824 \end_layout
12825
12826 \begin_layout Description
12827 \begin_inset Flex Code
12828 status collapsed
12829
12830 \begin_layout Plain Layout
12831 Preamble
12832 \end_layout
12833
12834 \end_inset
12835
12836  この様式が使用されたときに、\SpecialChar LaTeX
12837 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 EndPreamble
12843 \end_layout
12844
12845 \end_inset
12846
12847 」で閉じる必要があります。
12848 \end_layout
12849
12850 \begin_layout Description
12851 \begin_inset Flex Code
12852 status collapsed
12853
12854 \begin_layout Plain Layout
12855 RefPrefix
12856 \end_layout
12857
12858 \end_inset
12859
12860  [
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 文字列
12866 \end_layout
12867
12868 \end_inset
12869
12870 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
12871 \end_layout
12872
12873 \begin_layout Description
12874 \begin_inset Flex Code
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878 Requires
12879 \end_layout
12880
12881 \end_inset
12882
12883  [
12884 \begin_inset Flex Code
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888 文字列
12889 \end_layout
12890
12891 \end_inset
12892
12893 ] この様式が機能
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 文字列
12899 \end_layout
12900
12901 \end_inset
12902
12903 を必要とするかどうか(機能詳細については、第
12904 \begin_inset CommandInset ref
12905 LatexCommand ref
12906 reference "chap:関数一覧"
12907
12908 \end_inset
12909
12910 節参照)。特定のオプションをとるパッケージを要求する場合、
12911 \begin_inset Flex Code
12912 status collapsed
12913
12914 \begin_layout Plain Layout
12915 PackageOptions
12916 \end_layout
12917
12918 \end_inset
12919
12920 を汎用テキストクラスパラメータとして追加して使うことができます(
12921 \begin_inset CommandInset ref
12922 LatexCommand ref
12923 reference "subsec:汎用テキストクラスパラメータ"
12924
12925 \end_inset
12926
12927 を参照)。
12928 \end_layout
12929
12930 \begin_layout Description
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935 ResetArgs
12936 \end_layout
12937
12938 \end_inset
12939
12940  [
12941 \begin_inset Flex Code
12942 status collapsed
12943
12944 \begin_layout Plain Layout
12945
12946 \emph on
12947 0
12948 \end_layout
12949
12950 \end_inset
12951
12952 ,
12953 \begin_inset Flex Code
12954 status collapsed
12955
12956 \begin_layout Plain Layout
12957 1
12958 \end_layout
12959
12960 \end_inset
12961
12962 ] (
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 Argument
12968 \end_layout
12969
12970 \end_inset
12971
12972 タグで定義された)この様式の\SpecialChar LaTeX
12973 引数をリセットします。これは、様式を
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 CopyStyle
12979 \end_layout
12980
12981 \end_inset
12982
12983 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
12984 \end_layout
12985
12986 \begin_layout Description
12987 \begin_inset Flex Code
12988 status collapsed
12989
12990 \begin_layout Plain Layout
12991 RightDelim
12992 \end_layout
12993
12994 \end_inset
12995
12996  [
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001 文字列
13002 \end_layout
13003
13004 \end_inset
13005
13006 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 <br/>
13012 \end_layout
13013
13014 \end_inset
13015
13016 で指示できます。
13017 \end_layout
13018
13019 \begin_layout Description
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 RightMargin
13025 \end_layout
13026
13027 \end_inset
13028
13029  [
13030 \begin_inset Flex Code
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 文字列=""
13035 \end_layout
13036
13037 \end_inset
13038
13039
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044 LeftMargin
13045 \end_layout
13046
13047 \end_inset
13048
13049 に同様。
13050 \end_layout
13051
13052 \begin_layout Description
13053 \begin_inset Flex Code
13054 status collapsed
13055
13056 \begin_layout Plain Layout
13057 Spacing
13058 \end_layout
13059
13060 \end_inset
13061
13062  [
13063 \begin_inset Flex Code
13064 status collapsed
13065
13066 \begin_layout Plain Layout
13067
13068 \emph on
13069 single
13070 \end_layout
13071
13072 \end_inset
13073
13074
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 onehalf
13080 \end_layout
13081
13082 \end_inset
13083
13084
13085 \begin_inset Flex Code
13086 status collapsed
13087
13088 \begin_layout Plain Layout
13089 double
13090 \end_layout
13091
13092 \end_inset
13093
13094
13095 \begin_inset Flex Code
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 other
13100 \begin_inset space ~
13101 \end_inset
13102
13103 <
13104 \emph on
13105
13106 \emph default
13107 >
13108 \end_layout
13109
13110 \end_inset
13111
13112 ]
13113 \lang english
13114  
13115 \lang japanese
13116 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 single
13122 \end_layout
13123
13124 \end_inset
13125
13126
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 onehalf
13132 \end_layout
13133
13134 \end_inset
13135
13136
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 double
13142 \end_layout
13143
13144 \end_inset
13145
13146 は、それぞれ乗数1・1.25・1.667に対応します。引数
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151 other
13152 \end_layout
13153
13154 \end_inset
13155
13156 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13157 \begin_inset Flex Code
13158 status collapsed
13159
13160 \begin_layout Plain Layout
13161 Spacing
13162 \end_layout
13163
13164 \end_inset
13165
13166 は、\SpecialChar LaTeX
13167 パッケージ
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 setspace
13173 \end_layout
13174
13175 \end_inset
13176
13177 パッケージを使用した、限定的な\SpecialChar LaTeX
13178 コードを生成することを意味することにご注意ください。
13179 \end_layout
13180
13181 \begin_layout Description
13182 \begin_inset Flex Code
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186 Spellcheck
13187 \end_layout
13188
13189 \end_inset
13190
13191  [
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196 0
13197 \end_layout
13198
13199 \end_inset
13200
13201 ,
13202 \begin_inset space \thinspace{}
13203 \end_inset
13204
13205
13206 \begin_inset Flex Code
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210 1
13211 \end_layout
13212
13213 \end_inset
13214
13215 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13216 \end_layout
13217
13218 \begin_layout Description
13219 \begin_inset Flex Code
13220 status collapsed
13221
13222 \begin_layout Plain Layout
13223 TextFont
13224 \end_layout
13225
13226 \end_inset
13227
13228  本文に使うフォント。
13229 \begin_inset CommandInset ref
13230 LatexCommand ref
13231 reference "subsec:フォント指定"
13232
13233 \end_inset
13234
13235 参照。
13236 \end_layout
13237
13238 \begin_layout Description
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243 TocLevel
13244 \end_layout
13245
13246 \end_inset
13247
13248  [
13249 \begin_inset Flex Code
13250 status collapsed
13251
13252 \begin_layout Plain Layout
13253 整数型=3
13254 \end_layout
13255
13256 \end_inset
13257
13258 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13259 \end_layout
13260
13261 \begin_layout Description
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 ToggleIndent
13267 \end_layout
13268
13269 \end_inset
13270
13271  [
13272 \emph on
13273
13274 \begin_inset Flex Code
13275 status collapsed
13276
13277 \begin_layout Plain Layout
13278 default
13279 \end_layout
13280
13281 \end_inset
13282
13283
13284 \emph default
13285
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 always
13291 \end_layout
13292
13293 \end_inset
13294
13295
13296 \begin_inset Flex Code
13297 status collapsed
13298
13299 \begin_layout Plain Layout
13300 never
13301 \end_layout
13302
13303 \end_inset
13304
13305 ] このタグは、この段落の1行目の行頭下げが、段落設定ダイアログで切り替えられるかどうかを決めます。
13306 \begin_inset Flex Code
13307 status collapsed
13308
13309 \begin_layout Plain Layout
13310 default
13311 \end_layout
13312
13313 \end_inset
13314
13315 が指定されると、文書設定が「行頭下げ」段落様式を使用しているときに、行頭下げを変更することができます。
13316 \begin_inset Flex Code
13317 status collapsed
13318
13319 \begin_layout Plain Layout
13320 always
13321 \end_layout
13322
13323 \end_inset
13324
13325 は、文書設定にかかわらず変更することができ、
13326 \begin_inset Flex Code
13327 status collapsed
13328
13329 \begin_layout Plain Layout
13330 never
13331 \end_layout
13332
13333 \end_inset
13334
13335 は、どのような場合でも変更することができません。
13336 \end_layout
13337
13338 \begin_layout Description
13339 \begin_inset Flex Code
13340 status collapsed
13341
13342 \begin_layout Plain Layout
13343 TopSep
13344 \end_layout
13345
13346 \end_inset
13347
13348  [
13349 \begin_inset Flex Code
13350 status collapsed
13351
13352 \begin_layout Plain Layout
13353 浮動小数点型=0
13354 \end_layout
13355
13356 \end_inset
13357
13358 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13359 の最大値がとられます。
13360 \end_layout
13361
13362 \begin_layout Subsection
13363 段落様式の国際化
13364 \begin_inset CommandInset label
13365 LatexCommand label
13366 name "subsec:段落様式の国際化"
13367
13368 \end_inset
13369
13370
13371 \end_layout
13372
13373 \begin_layout Standard
13374 \SpecialChar LyX
13375 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13376 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13377 \lang french
13378 Théorème
13379 \lang japanese
13380  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13381 \end_layout
13382
13383 \begin_layout Standard
13384 もし
13385 \begin_inset Flex MenuItem
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389 Style
13390 \end_layout
13391
13392 \end_inset
13393
13394 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13395 \begin_inset Flex MenuItem
13396 status collapsed
13397
13398 \begin_layout Plain Layout
13399 LangPreamble
13400 \end_layout
13401
13402 \end_inset
13403
13404
13405 \begin_inset Flex MenuItem
13406 status collapsed
13407
13408 \begin_layout Plain Layout
13409 BabelPreamble
13410 \end_layout
13411
13412 \end_inset
13413
13414 を使用することができます。以下の抜粋(
13415 \begin_inset Flex MenuItem
13416 status collapsed
13417
13418 \begin_layout Plain Layout
13419 theorems-ams.inc
13420 \end_layout
13421
13422 \end_inset
13423
13424 より)は、これがどう動作するかを示すものです。
13425 \end_layout
13426
13427 \begin_layout LyX-Code
13428 Preamble
13429 \begin_inset Separator parbreak
13430 \end_inset
13431
13432
13433 \end_layout
13434
13435 \begin_deeper
13436 \begin_layout LyX-Code
13437   
13438 \backslash
13439 theoremstyle{remark}
13440 \end_layout
13441
13442 \begin_layout LyX-Code
13443   
13444 \backslash
13445 newtheorem{claim}[thm]{
13446 \backslash
13447 protect
13448 \backslash
13449 claimname}
13450 \end_layout
13451
13452 \begin_layout LyX-Code
13453 EndPreamble
13454 \end_layout
13455
13456 \begin_layout LyX-Code
13457 LangPreamble
13458 \end_layout
13459
13460 \begin_layout LyX-Code
13461   
13462 \backslash
13463 providecommand{
13464 \backslash
13465 claimname}{_(Claim)}
13466 \end_layout
13467
13468 \begin_layout LyX-Code
13469 EndLangPreamble
13470 \end_layout
13471
13472 \begin_layout LyX-Code
13473 BabelPreamble
13474 \end_layout
13475
13476 \begin_layout LyX-Code
13477     
13478 \backslash
13479 addto
13480 \backslash
13481 captions$$lang{
13482 \backslash
13483 renewcommand{
13484 \backslash
13485 claimname}{_(Claim)}}
13486 \end_layout
13487
13488 \begin_layout LyX-Code
13489 EndBabelPreamble
13490 \end_layout
13491
13492 \end_deeper
13493 \begin_layout Standard
13494 原則として、
13495 \begin_inset Flex MenuItem
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 LangPreamble
13500 \end_layout
13501
13502 \end_inset
13503
13504
13505 \begin_inset Flex MenuItem
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 BabelPreamble
13510 \end_layout
13511
13512 \end_inset
13513
13514 タグ内には、有効な\SpecialChar LaTeX
13515 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13516 は、\SpecialChar LaTeX
13517 コマンド
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522
13523 \backslash
13524 claimname
13525 \end_layout
13526
13527 \end_inset
13528
13529 とその
13530 \begin_inset Flex Code
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534
13535 \backslash
13536 newtheorem
13537 \end_layout
13538
13539 \end_inset
13540
13541 中での用い方です。
13542 \end_layout
13543
13544 \begin_layout Standard
13545 \begin_inset Flex Code
13546 status collapsed
13547
13548 \begin_layout Plain Layout
13549 LangPreamble
13550 \end_layout
13551
13552 \end_inset
13553
13554 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 Preamble
13560 \end_layout
13561
13562 \end_inset
13563
13564 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13565 \begin_inset Flex Code
13566 status collapsed
13567
13568 \begin_layout Plain Layout
13569 _()
13570 \end_layout
13571
13572 \end_inset
13573
13574 が使用されていることです。これは、\SpecialChar LyX
13575 が\SpecialChar LaTeX
13576 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13577 \end_layout
13578
13579 \begin_layout Standard
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 BabelPreamble
13585 \end_layout
13586
13587 \end_inset
13588
13589 タグは、複数言語文書をサポートし、
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 babel
13595 \end_layout
13596
13597 \end_inset
13598
13599 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13600 の場合には、
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 _()
13606 \end_layout
13607
13608 \end_inset
13609
13610 の引数は、その当該言語への翻訳で置き換えられ、
13611 \begin_inset Flex Code
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615 $$lang
13616 \end_layout
13617
13618 \end_inset
13619
13620 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13621 \end_layout
13622
13623 \begin_layout Standard
13624 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13625 \end_layout
13626
13627 \begin_layout LyX-Code
13628
13629 \backslash
13630 addto
13631 \backslash
13632 captionsfrench{
13633 \backslash
13634 renewcommand{
13635 \backslash
13636 claimname}{Affirmation}}
13637 \begin_inset Newline newline
13638 \end_inset
13639
13640
13641 \backslash
13642 addto
13643 \backslash
13644 captionsngerman{
13645 \backslash
13646 renewcommand{
13647 \backslash
13648 claimname}{Behauptung}}
13649 \begin_inset Newline newline
13650 \end_inset
13651
13652
13653 \backslash
13654 providecommand{
13655 \backslash
13656 claimname}{Behauptung}
13657 \end_layout
13658
13659 \begin_layout Standard
13660 それから、\SpecialChar LaTeX
13661
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 babel
13667 \end_layout
13668
13669 \end_inset
13670
13671 は協力して、出力に正しい文字列を生成します。
13672 \end_layout
13673
13674 \begin_layout Standard
13675 ここで注意しておくべき一つの重要な点は、翻訳は、
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680 layouttranslations
13681 \end_layout
13682
13683 \end_inset
13684
13685 ファイルを通じて、\SpecialChar LyX
13686 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13687 \begin_inset Flex Code
13688 status collapsed
13689
13690 \begin_layout Plain Layout
13691 layouttranslations
13692 \end_layout
13693
13694 \end_inset
13695
13696 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13697 の国際化ルーチンでは取り扱われないので、
13698 \begin_inset Flex MenuItem
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 LangPreamble
13703 \end_layout
13704
13705 \end_inset
13706
13707
13708 \begin_inset Flex MenuItem
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 BabelPreamble
13713 \end_layout
13714
13715 \end_inset
13716
13717 は、事実上、\SpecialChar LyX
13718 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
13719 に同梱させようとい
13720 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
13721 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
13722 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
13723 \end_layout
13724
13725 \begin_layout Subsection
13726 フロート
13727 \begin_inset CommandInset label
13728 LatexCommand label
13729 name "subsec:フロート"
13730
13731 \end_inset
13732
13733
13734 \end_layout
13735
13736 \begin_layout Standard
13737 \SpecialChar LyX
13738 第1.3.0版以来、テキストクラス自体の中でフロート(
13739 \begin_inset Flex MenuItem
13740 status collapsed
13741
13742 \begin_layout Plain Layout
13743 figure
13744 \end_layout
13745
13746 \end_inset
13747
13748
13749 \begin_inset Flex MenuItem
13750 status collapsed
13751
13752 \begin_layout Plain Layout
13753 table
13754 \end_layout
13755
13756 \end_inset
13757
13758 ・\SpecialChar ldots
13759 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764 stdfloats.inc
13765 \end_layout
13766
13767 \end_inset
13768
13769 ファイルに含まれているので、作業中のレイアウトファイルに
13770 \end_layout
13771
13772 \begin_layout LyX-Code
13773 Input stdfloats.inc
13774 \end_layout
13775
13776 \begin_layout Standard
13777 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
13778 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
13779 ましょう。
13780 \end_layout
13781
13782 \begin_layout Description
13783 \begin_inset Flex Code
13784 status collapsed
13785
13786 \begin_layout Plain Layout
13787 AllowedPlacement
13788 \end_layout
13789
13790 \end_inset
13791
13792  [
13793 \begin_inset Flex Code
13794 status collapsed
13795
13796 \begin_layout Plain Layout
13797 文字列
13798 \end_layout
13799
13800 \end_inset
13801
13802 =!htbpH] このフロート型に許可された配置用の選択肢。値は、配置文字からなる文字列です。使用できる文字には、
13803 \emph on
13804 h
13805 \emph default
13806  (
13807 \begin_inset Quotes eld
13808 \end_inset
13809
13810 here if possible:可能ならば現在位置に
13811 \begin_inset Quotes erd
13812 \end_inset
13813
13814 ), 
13815 \emph on
13816 t
13817 \emph default
13818  (
13819 \begin_inset Quotes eld
13820 \end_inset
13821
13822 top of page:ページ上部
13823 \begin_inset Quotes erd
13824 \end_inset
13825
13826 )・
13827 \emph on
13828 b
13829 \emph default
13830  (
13831 \begin_inset Quotes eld
13832 \end_inset
13833
13834 bottom of page:ページ下部
13835 \begin_inset Quotes erd
13836 \end_inset
13837
13838 )・
13839 \emph on
13840 p
13841 \emph default
13842  (
13843 \begin_inset Quotes eld
13844 \end_inset
13845
13846 page of floats:フロートを独立したページに
13847 \begin_inset Quotes erd
13848 \end_inset
13849
13850 )・
13851 \emph on
13852 H
13853 \emph default
13854  (
13855 \begin_inset Quotes eld
13856 \end_inset
13857
13858 here definitely:何としても現在位置に置く
13859 \begin_inset Quotes erd
13860 \end_inset
13861
13862 )・
13863 \emph on
13864 !
13865 \emph default
13866  (
13867 \begin_inset Quotes eld
13868 \end_inset
13869
13870 ignore LaTeX rules:LaTeXの規則を無視する
13871 \begin_inset Quotes erd
13872 \end_inset
13873
13874 )があります。文字列中の文字の順序は関係ありません。配置の選択肢を与えない場合には、文字列として
13875 \emph on
13876 none
13877 \emph default
13878 を与えてください。
13879 \end_layout
13880
13881 \begin_layout Description
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 AllowsSideways
13887 \end_layout
13888
13889 \end_inset
13890
13891  [
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 0
13897 \end_layout
13898
13899 \end_inset
13900
13901 ,
13902 \begin_inset space \thinspace{}
13903 \end_inset
13904
13905
13906 \emph on
13907
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 1
13913 \end_layout
13914
13915 \end_inset
13916
13917
13918 \emph default
13919 ] フロートを、\SpecialChar LaTeX
13920 パッケージの
13921 \family typewriter
13922 rotfloat
13923 \family default
13924  (横向きフロート)を使って回転させることを許可するか否かを指定。フロートにこの機能をサポートさせないときには、
13925 \begin_inset Flex Code
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 0
13930 \end_layout
13931
13932 \end_inset
13933
13934 を指定してください。
13935 \end_layout
13936
13937 \begin_layout Description
13938 \begin_inset Flex Code
13939 status collapsed
13940
13941 \begin_layout Plain Layout
13942 AllowsWide
13943 \end_layout
13944
13945 \end_inset
13946
13947  [
13948 \begin_inset Flex Code
13949 status collapsed
13950
13951 \begin_layout Plain Layout
13952 0
13953 \end_layout
13954
13955 \end_inset
13956
13957 ,
13958 \begin_inset space \thinspace{}
13959 \end_inset
13960
13961
13962 \emph on
13963
13964 \begin_inset Flex Code
13965 status collapsed
13966
13967 \begin_layout Plain Layout
13968 1
13969 \end_layout
13970
13971 \end_inset
13972
13973
13974 \emph default
13975 ] このフロートに、二段組段落において段落をまたぐ、星付き版があるか否かを定義。フロートにこの機能をサポートさせないときには、
13976 \begin_inset Flex Code
13977 status collapsed
13978
13979 \begin_layout Plain Layout
13980 0
13981 \end_layout
13982
13983 \end_inset
13984
13985 を指定してください。
13986 \end_layout
13987
13988 \begin_layout Description
13989 \begin_inset Flex Code
13990 status collapsed
13991
13992 \begin_layout Plain Layout
13993 Extension
13994 \end_layout
13995
13996 \end_inset
13997
13998  [
13999 \begin_inset Flex Code
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003 文字列
14004 \end_layout
14005
14006 \end_inset
14007
14008 =
14009 \begin_inset Quotes erd
14010 \end_inset
14011
14012
14013 \begin_inset Quotes erd
14014 \end_inset
14015
14016 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14017 がキャプションを書き込むファイルです。
14018 \end_layout
14019
14020 \begin_layout Description
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 GuiName
14026 \end_layout
14027
14028 \end_inset
14029
14030  [
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 文字列
14036 \end_layout
14037
14038 \end_inset
14039
14040 =
14041 \begin_inset Quotes erd
14042 \end_inset
14043
14044
14045 \begin_inset Quotes erd
14046 \end_inset
14047
14048 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14049 \end_layout
14050
14051 \begin_layout Description
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056 HTML*
14057 \end_layout
14058
14059 \end_inset
14060
14061  これらは、XHTML出力で使用されます。
14062 \begin_inset CommandInset ref
14063 LatexCommand ref
14064 reference "sec:XHTML出力のタグ"
14065
14066 \end_inset
14067
14068 をご覧ください。
14069 \end_layout
14070
14071 \begin_layout Description
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076 IsPredefined
14077 \end_layout
14078
14079 \end_inset
14080
14081  [
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086
14087 \emph on
14088 0
14089 \end_layout
14090
14091 \end_inset
14092
14093 ,
14094 \begin_inset space \thinspace{}
14095 \end_inset
14096
14097
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102 1
14103 \end_layout
14104
14105 \end_inset
14106
14107 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14108 パッケージ
14109 \begin_inset Flex Code
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 float
14114 \end_layout
14115
14116 \end_inset
14117
14118 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 0
14124 \end_layout
14125
14126 \end_inset
14127
14128 で、この場合
14129 \begin_inset Flex Code
14130 status collapsed
14131
14132 \begin_layout Plain Layout
14133 float
14134 \end_layout
14135
14136 \end_inset
14137
14138 を使用します。\SpecialChar LaTeX
14139 ドキュメントクラス中に既に定義されているときには、
14140 \begin_inset Flex Code
14141 status collapsed
14142
14143 \begin_layout Plain Layout
14144 0
14145 \end_layout
14146
14147 \end_inset
14148
14149 に設定しなくてはなりません。
14150 \end_layout
14151
14152 \begin_layout Description
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 ListCommand
14158 \end_layout
14159
14160 \end_inset
14161
14162  [
14163 \begin_inset Flex Code
14164 status collapsed
14165
14166 \begin_layout Plain Layout
14167 文字列
14168 \end_layout
14169
14170 \end_inset
14171
14172 =
14173 \begin_inset Quotes erd
14174 \end_inset
14175
14176
14177 \begin_inset Quotes erd
14178 \end_inset
14179
14180 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14181 \backslash
14182 」は書きません。
14183 \begin_inset Flex Code
14184 status collapsed
14185
14186 \begin_layout Plain Layout
14187 NeedsFloatPkg
14188 \end_layout
14189
14190 \end_inset
14191
14192 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14193 \emph on
14194 必ず
14195 \emph default
14196 指定しなくてはなりません。
14197 \begin_inset Flex Code
14198 status collapsed
14199
14200 \begin_layout Plain Layout
14201 NeedsFloatPkg
14202 \end_layout
14203
14204 \end_inset
14205
14206 が真の時は、標準的な方法が存在するので、これは無視されます。
14207 \end_layout
14208
14209 \begin_layout Description
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 ListName
14215 \end_layout
14216
14217 \end_inset
14218
14219  [
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224 文字列
14225 \end_layout
14226
14227 \end_inset
14228
14229 =
14230 \begin_inset Quotes erd
14231 \end_inset
14232
14233
14234 \begin_inset Quotes erd
14235 \end_inset
14236
14237 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14238 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14239 に渡さ
14240 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14241 \end_layout
14242
14243 \begin_layout Description
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 NumberWithin
14249 \end_layout
14250
14251 \end_inset
14252
14253  [
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 文字列
14259 \end_layout
14260
14261 \end_inset
14262
14263 =
14264 \begin_inset Quotes erd
14265 \end_inset
14266
14267
14268 \begin_inset Quotes erd
14269 \end_inset
14270
14271 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276 NumberWithin
14277 \end_layout
14278
14279 \end_inset
14280
14281 が「
14282 \begin_inset Flex Code
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 chapter
14287 \end_layout
14288
14289 \end_inset
14290
14291 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14292 \end_layout
14293
14294 \begin_layout Description
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 Placement
14300 \end_layout
14301
14302 \end_inset
14303
14304  [
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 文字列
14310 \end_layout
14311
14312 \end_inset
14313
14314 =
14315 \begin_inset Quotes erd
14316 \end_inset
14317
14318
14319 \begin_inset Quotes erd
14320 \end_inset
14321
14322 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14323 表記に従い、
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 t
14329 \end_layout
14330
14331 \end_inset
14332
14333 ならば上部(top)、
14334 \begin_inset Flex Code
14335 status collapsed
14336
14337 \begin_layout Plain Layout
14338 b
14339 \end_layout
14340
14341 \end_inset
14342
14343 ならば下部(bottom)、
14344 \begin_inset Flex Code
14345 status collapsed
14346
14347 \begin_layout Plain Layout
14348 p
14349 \end_layout
14350
14351 \end_inset
14352
14353 ならばページ(page)、
14354 \begin_inset Flex Code
14355 status collapsed
14356
14357 \begin_layout Plain Layout
14358 h
14359 \end_layout
14360
14361 \end_inset
14362
14363 ならばここ(here)を表します
14364 \begin_inset Foot
14365 status collapsed
14366
14367 \begin_layout Plain Layout
14368 \SpecialChar LaTeX
14369 同様、文字列中でのこれらの文字の順序は関係ありません。
14370 \end_layout
14371
14372 \end_inset
14373
14374 。これらの他に新しい型
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379 H
14380 \end_layout
14381
14382 \end_inset
14383
14384 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 H
14390 \end_layout
14391
14392 \end_inset
14393
14394 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14395 に「
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 tbp
14401 \end_layout
14402
14403 \end_inset
14404
14405 」を指定してください。
14406 \end_layout
14407
14408 \begin_layout Description
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 RefPrefix
14414 \end_layout
14415
14416 \end_inset
14417
14418  [
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 文字列
14424 \end_layout
14425
14426 \end_inset
14427
14428 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 RefPrefix
14434 \end_layout
14435
14436 \end_inset
14437
14438 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14439 \end_layout
14440
14441 \begin_layout Description
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 Style
14447 \end_layout
14448
14449 \end_inset
14450
14451  [
14452 \begin_inset Flex Code
14453 status collapsed
14454
14455 \begin_layout Plain Layout
14456 文字列
14457 \end_layout
14458
14459 \end_inset
14460
14461 =
14462 \begin_inset Quotes erd
14463 \end_inset
14464
14465
14466 \begin_inset Quotes erd
14467 \end_inset
14468
14469
14470 \begin_inset Flex Code
14471 status collapsed
14472
14473 \begin_layout Plain Layout
14474
14475 \backslash
14476 newfloat
14477 \end_layout
14478
14479 \end_inset
14480
14481 を使用してフロートを定義する際に使用される様式。
14482 \end_layout
14483
14484 \begin_layout Description
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489 Type
14490 \end_layout
14491
14492 \end_inset
14493
14494  [
14495 \begin_inset Flex Code
14496 status collapsed
14497
14498 \begin_layout Plain Layout
14499 文字列
14500 \end_layout
14501
14502 \end_inset
14503
14504 =
14505 \begin_inset Quotes erd
14506 \end_inset
14507
14508
14509 \begin_inset Quotes erd
14510 \end_inset
14511
14512 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14513 \begin_inset Flex Code
14514 status collapsed
14515
14516 \begin_layout Plain Layout
14517
14518 \backslash
14519 newfloat
14520 \end_layout
14521
14522 \end_inset
14523
14524 の後で、
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529
14530 \backslash
14531 begin{program}
14532 \end_layout
14533
14534 \end_inset
14535
14536
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541
14542 \backslash
14543 end{algorithm*}
14544 \end_layout
14545
14546 \end_inset
14547
14548 といったコマンドが利用できます。
14549 \end_layout
14550
14551 \begin_layout Description
14552 \begin_inset Flex Code
14553 status collapsed
14554
14555 \begin_layout Plain Layout
14556 UsesFloatPkg
14557 \end_layout
14558
14559 \end_inset
14560
14561  [
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566 0
14567 \end_layout
14568
14569 \end_inset
14570
14571 ,
14572 \begin_inset space \thinspace{}
14573 \end_inset
14574
14575
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580
14581 \emph on
14582 1
14583 \end_layout
14584
14585 \end_inset
14586
14587 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14588 パッケージ
14589 \begin_inset Flex Code
14590 status collapsed
14591
14592 \begin_layout Plain Layout
14593 float
14594 \end_layout
14595
14596 \end_inset
14597
14598 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14599 自身がオン・ザ・フライで定義しているのかを示します。
14600 \end_layout
14601
14602 \begin_layout Standard
14603 \begin_inset Flex Code
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607
14608 \emph on
14609 type
14610 \end_layout
14611
14612 \end_inset
14613
14614 型のフロートを定義すると、自動的に
14615 \emph on
14616 対応する
14617 \emph default
14618
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623
14624 \emph on
14625 type
14626 \end_layout
14627
14628 \end_inset
14629
14630 名カウンタが定義されます。
14631 \end_layout
14632
14633 \begin_layout Subsection
14634 自由差込枠と差込枠レイアウト
14635 \begin_inset CommandInset label
14636 LatexCommand label
14637 name "subsec:任意設定差込枠"
14638
14639 \end_inset
14640
14641
14642 \end_layout
14643
14644 \begin_layout Standard
14645 自由差込枠には次の3種類があります。
14646 \end_layout
14647
14648 \begin_layout Itemize
14649 文字様式(
14650 \begin_inset Flex Code
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 CharStyle
14655 \end_layout
14656
14657 \end_inset
14658
14659 )。これは、
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664
14665 \backslash
14666 noun
14667 \end_layout
14668
14669 \end_inset
14670
14671
14672 \begin_inset Flex Code
14673 status collapsed
14674
14675 \begin_layout Plain Layout
14676
14677 \backslash
14678 code
14679 \end_layout
14680
14681 \end_inset
14682
14683 などの\SpecialChar LaTeX
14684 コマンドに対応した意味論的マークアップを定義するものです。
14685 \end_layout
14686
14687 \begin_layout Itemize
14688 ユーザ設定(
14689 \begin_inset Flex Code
14690 status collapsed
14691
14692 \begin_layout Plain Layout
14693 Custom
14694 \end_layout
14695
14696 \end_inset
14697
14698 )。これは、\SpecialChar TeX
14699 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14700 \begin_inset Flex Code
14701 status collapsed
14702
14703 \begin_layout Plain Layout
14704 endnote
14705 \end_layout
14706
14707 \end_inset
14708
14709 モジュール中で定義されています。
14710 \end_layout
14711
14712 \begin_layout Itemize
14713 XML要素(
14714 \begin_inset Flex Code
14715 status collapsed
14716
14717 \begin_layout Plain Layout
14718 Element
14719 \end_layout
14720
14721 \end_inset
14722
14723 )。DocBookクラスで使用するものです。
14724 \end_layout
14725
14726 \begin_layout Standard
14727 自由差込枠は、以下で説明する
14728 \begin_inset Flex Code
14729 status collapsed
14730
14731 \begin_layout Plain Layout
14732 InsetLayout
14733 \end_layout
14734
14735 \end_inset
14736
14737 タグを使用して定義されます。
14738 \end_layout
14739
14740 \begin_layout Standard
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 InsetLayout
14746 \end_layout
14747
14748 \end_inset
14749
14750 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 InsetLayout
14756 \end_layout
14757
14758 \end_inset
14759
14760 は自由差込枠を定義することの他に、脚註・傍註・註釈差込枠・\SpecialChar TeX
14761 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14762 ー定義するのに使用されます。
14763 \end_layout
14764
14765 \begin_layout Standard
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 InsetLayout
14771 \end_layout
14772
14773 \end_inset
14774
14775 定義は以下の形の行では始まらなくてはなりません。
14776 \end_layout
14777
14778 \begin_layout LyX-Code
14779 InsetLayout <型>
14780 \end_layout
14781
14782 \begin_layout Standard
14783 ここで
14784 \begin_inset Flex Code
14785 status collapsed
14786
14787 \begin_layout Plain Layout
14788 <型>
14789 \end_layout
14790
14791 \end_inset
14792
14793 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
14794 \end_layout
14795
14796 \begin_layout Enumerate
14797 既存の差込枠のレイアウトを変更する場合。この場合、
14798 \begin_inset Flex Code
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802 <型>
14803 \end_layout
14804
14805 \end_inset
14806
14807 は以下のいずれかになります:
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 Algorithm
14813 \end_layout
14814
14815 \end_inset
14816
14817
14818 \begin_inset Flex Code
14819 status collapsed
14820
14821 \begin_layout Plain Layout
14822 Branch
14823 \end_layout
14824
14825 \end_inset
14826
14827
14828 \begin_inset Flex Code
14829 status collapsed
14830
14831 \begin_layout Plain Layout
14832 Box
14833 \end_layout
14834
14835 \end_inset
14836
14837
14838 \begin_inset Flex Code
14839 status collapsed
14840
14841 \begin_layout Plain Layout
14842 Box:shaded
14843 \end_layout
14844
14845 \end_inset
14846
14847
14848 \begin_inset Flex Code
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852 Caption:Standard
14853 \end_layout
14854
14855 \end_inset
14856
14857
14858 \begin_inset Flex Code
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862 ERT
14863 \end_layout
14864
14865 \end_inset
14866
14867
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 Figure
14873 \end_layout
14874
14875 \end_inset
14876
14877
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 Foot
14883 \end_layout
14884
14885 \end_inset
14886
14887
14888 \begin_inset Flex Code
14889 status collapsed
14890
14891 \begin_layout Plain Layout
14892 Index
14893 \end_layout
14894
14895 \end_inset
14896
14897
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 Info
14903 \end_layout
14904
14905 \end_inset
14906
14907
14908 \begin_inset Flex Code
14909 status collapsed
14910
14911 \begin_layout Plain Layout
14912 Info:menu
14913 \end_layout
14914
14915 \end_inset
14916
14917
14918 \begin_inset Flex Code
14919 status collapsed
14920
14921 \begin_layout Plain Layout
14922 Info:shortcut
14923 \end_layout
14924
14925 \end_inset
14926
14927
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 Info:shortcuts
14933 \end_layout
14934
14935 \end_inset
14936
14937
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 Listings
14943 \end_layout
14944
14945 \end_inset
14946
14947
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 Marginal
14953 \end_layout
14954
14955 \end_inset
14956
14957
14958 \begin_inset Flex Code
14959 status collapsed
14960
14961 \begin_layout Plain Layout
14962 Note:Comment
14963 \end_layout
14964
14965 \end_inset
14966
14967
14968 \begin_inset Flex Code
14969 status collapsed
14970
14971 \begin_layout Plain Layout
14972 Note:Note
14973 \end_layout
14974
14975 \end_inset
14976
14977
14978 \begin_inset Flex Code
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982 Note:GreyedOut
14983 \end_layout
14984
14985 \end_inset
14986
14987
14988 \begin_inset Flex Code
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992 Table
14993 \end_layout
14994
14995 \end_inset
14996
14997
14998 \begin_inset Flex Code
14999 status collapsed
15000
15001 \begin_layout Plain Layout
15002 URL
15003 \end_layout
15004
15005 \end_inset
15006
15007
15008 \end_layout
15009
15010 \begin_layout Enumerate
15011 自由差込枠のレイアウトを定義する場合。この場合、
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 <型>
15017 \end_layout
15018
15019 \end_inset
15020
15021
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 Flex:<名称>
15027 \end_layout
15028
15029 \end_inset
15030
15031 の形でなくてはなりません。ここで、
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 名称
15037 \end_layout
15038
15039 \end_inset
15040
15041 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15042 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15043 \begin_inset Flex Code
15044 status collapsed
15045
15046 \begin_layout Plain Layout
15047 LyXType
15048 \end_layout
15049
15050 \end_inset
15051
15052 項目が含まれていなくてはならないことに注意してください。
15053 \end_layout
15054
15055 \begin_layout Enumerate
15056 ユーザー定義派生枝を定義する場合。この場合、
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 <型>
15062 \end_layout
15063
15064 \end_inset
15065
15066 は「
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 Branch:<名称>
15072 \end_layout
15073
15074 \end_inset
15075
15076 」の形でなくてはなりません。ここで、
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 名称
15082 \end_layout
15083
15084 \end_inset
15085
15086 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15087 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15088 がくるむことができるようにすることです。
15089 \end_layout
15090
15091 \begin_layout Enumerate
15092 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15093 \begin_inset Flex Code
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097 <型>
15098 \end_layout
15099
15100 \end_inset
15101
15102 は「
15103 \begin_inset Flex Code
15104 status collapsed
15105
15106 \begin_layout Plain Layout
15107 Caption:<名称>
15108 \end_layout
15109
15110 \end_inset
15111
15112 」の形でなくてはなりません。ここで、
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117 名称
15118 \end_layout
15119
15120 \end_inset
15121
15122 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15123 \begin_inset Flex Code
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127 Caption:Standard
15128 \end_layout
15129
15130 \end_inset
15131
15132 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15133 \begin_inset Flex Code
15134 status collapsed
15135
15136 \begin_layout Plain Layout
15137 Caption:Above
15138 \end_layout
15139
15140 \end_inset
15141
15142
15143 \begin_inset Flex Code
15144 status collapsed
15145
15146 \begin_layout Plain Layout
15147 Caption:Below
15148 \end_layout
15149
15150 \end_inset
15151
15152 )、
15153 \family sans
15154 多言語キャプション
15155 \family default
15156 モジュール(
15157 \begin_inset Flex Code
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 Caption:Bicaption
15162 \end_layout
15163
15164 \end_inset
15165
15166 )をご覧ください。
15167 \end_layout
15168
15169 \begin_layout Standard
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 InsetLayout
15175 \end_layout
15176
15177 \end_inset
15178
15179 定義には以下の項目を入れることができます。
15180 \end_layout
15181
15182 \begin_layout Description
15183 \begin_inset Flex Code
15184 status collapsed
15185
15186 \begin_layout Plain Layout
15187 Argument
15188 \end_layout
15189
15190 \end_inset
15191
15192  [
15193 \begin_inset Flex Code
15194 status collapsed
15195
15196 \begin_layout Plain Layout
15197 整数
15198 \end_layout
15199
15200 \end_inset
15201
15202 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15203 \begin_inset Flex Code
15204 status collapsed
15205
15206 \begin_layout Plain Layout
15207 EndArgument
15208 \end_layout
15209
15210 \end_inset
15211
15212 で閉じなくてはなりません。詳細は
15213 \begin_inset CommandInset ref
15214 LatexCommand ref
15215 reference "subsec:段落様式"
15216
15217 \end_inset
15218
15219 参照。
15220 \end_layout
15221
15222 \begin_layout Description
15223 \begin_inset Flex Code
15224 status collapsed
15225
15226 \begin_layout Plain Layout
15227 BabelPreamble
15228 \end_layout
15229
15230 \end_inset
15231
15232  言語コマンドを変更するプリアンブル。
15233 \begin_inset CommandInset ref
15234 LatexCommand ref
15235 reference "subsec:段落様式の国際化"
15236
15237 \end_inset
15238
15239 参照。
15240 \end_layout
15241
15242 \begin_layout Description
15243 \begin_inset Flex Code
15244 status collapsed
15245
15246 \begin_layout Plain Layout
15247 BgColor
15248 \end_layout
15249
15250 \end_inset
15251
15252  [
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 <名称>
15258 \end_layout
15259
15260 \end_inset
15261
15262 ] 差込枠の背景色。使用できる色名一覧は
15263 \begin_inset CommandInset ref
15264 LatexCommand ref
15265 reference "chap:色名"
15266
15267 \end_inset
15268
15269 参照。
15270 \end_layout
15271
15272 \begin_layout Description
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277 ContentAsLabel
15278 \end_layout
15279
15280 \end_inset
15281
15282  [
15283 \begin_inset Flex Code
15284 status collapsed
15285
15286 \begin_layout Plain Layout
15287
15288 \emph on
15289 0
15290 \end_layout
15291
15292 \end_inset
15293
15294 ,
15295 \begin_inset space \thinspace{}
15296 \end_inset
15297
15298
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 1
15304 \end_layout
15305
15306 \end_inset
15307
15308 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15309 \end_layout
15310
15311 \begin_layout Description
15312 \begin_inset Flex Code
15313 status collapsed
15314
15315 \begin_layout Plain Layout
15316 CopyStyle
15317 \end_layout
15318
15319 \end_inset
15320
15321  [<型>] 段落様式と同様です。
15322 \begin_inset CommandInset ref
15323 LatexCommand ref
15324 reference "subsec:段落様式"
15325
15326 \end_inset
15327
15328 参照のこと。完全な型を指定する必要があることに注意してください。例:
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 CopyStyle Flex:<名称>
15334 \end_layout
15335
15336 \end_inset
15337
15338
15339 \end_layout
15340
15341 \begin_layout Description
15342 \begin_inset Flex Code
15343 status collapsed
15344
15345 \begin_layout Plain Layout
15346 CustomPars
15347 \end_layout
15348
15349 \end_inset
15350
15351  [
15352 \begin_inset Flex Code
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356
15357 \emph on
15358 0
15359 \end_layout
15360
15361 \end_inset
15362
15363 ,
15364 \begin_inset space \thinspace{}
15365 \end_inset
15366
15367
15368 \begin_inset Flex Code
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 1
15373 \end_layout
15374
15375 \end_inset
15376
15377 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15378 \end_layout
15379
15380 \begin_layout Description
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 Decoration
15386 \end_layout
15387
15388 \end_inset
15389
15390  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395 Classic
15396 \end_layout
15397
15398 \end_inset
15399
15400
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 Minimalistic
15406 \end_layout
15407
15408 \end_inset
15409
15410
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 Conglomerate
15416 \end_layout
15417
15418 \end_inset
15419
15420 のいずれかを指定することができます。脚註は通常
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 Classic
15426 \end_layout
15427
15428 \end_inset
15429
15430 を使用し、\SpecialChar TeX
15431 コード差込枠は通常
15432 \begin_inset Flex Code
15433 status collapsed
15434
15435 \begin_layout Plain Layout
15436 Minimalistic
15437 \end_layout
15438
15439 \end_inset
15440
15441 、文字様式は
15442 \begin_inset Flex Code
15443 status collapsed
15444
15445 \begin_layout Plain Layout
15446 Conglomerate
15447 \end_layout
15448
15449 \end_inset
15450
15451 を使用します。
15452 \end_layout
15453
15454 \begin_layout Description
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 Display
15460 \end_layout
15461
15462 \end_inset
15463
15464  [
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 0
15470 \end_layout
15471
15472 \end_inset
15473
15474 ,
15475 \begin_inset space \thinspace{}
15476 \end_inset
15477
15478
15479 \begin_inset Flex Code
15480 status collapsed
15481
15482 \begin_layout Plain Layout
15483
15484 \emph on
15485 1
15486 \end_layout
15487
15488 \end_inset
15489
15490
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495 LatexType
15496 \end_layout
15497
15498 \end_inset
15499
15500
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 Environment
15506 \end_layout
15507
15508 \end_inset
15509
15510 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15511 環境は、
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516
15517 \backslash
15518 begin{LatexName}
15519 \end_layout
15520
15521 \end_inset
15522
15523 タグと
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528
15529 \backslash
15530 end{LatexName}
15531 \end_layout
15532
15533 \end_inset
15534
15535 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15536 \end_layout
15537
15538 \begin_layout Description
15539 \begin_inset Flex Code
15540 status collapsed
15541
15542 \begin_layout Plain Layout
15543 End
15544 \end_layout
15545
15546 \end_inset
15547
15548  
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 InsetLayout
15554 \end_layout
15555
15556 \end_inset
15557
15558 宣言を閉じるのに必要です。
15559 \end_layout
15560
15561 \begin_layout Description
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 Font
15567 \end_layout
15568
15569 \end_inset
15570
15571  本文本体とラベル
15572 \emph on
15573 両方に
15574 \emph default
15575 使用されるフォントです。
15576 \begin_inset CommandInset ref
15577 LatexCommand ref
15578 reference "subsec:フォント指定"
15579
15580 \end_inset
15581
15582 を参照。このフォントを定義すると自動的に
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587 LabelFont
15588 \end_layout
15589
15590 \end_inset
15591
15592 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597 LabelFont
15598 \end_layout
15599
15600 \end_inset
15601
15602 を定義しなくてはならないことに注意してください。
15603 \end_layout
15604
15605 \begin_layout Description
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610 FixedWidthPreambleEncoding
15611 \end_layout
15612
15613 \end_inset
15614
15615  [
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620
15621 \emph on
15622 0
15623 \end_layout
15624
15625 \end_inset
15626
15627 ,
15628 \begin_inset space \thinspace{}
15629 \end_inset
15630
15631
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 1
15637 \end_layout
15638
15639 \end_inset
15640
15641 ] このレイアウトによって生成される
15642 \begin_inset Flex Code
15643 status collapsed
15644
15645 \begin_layout Plain Layout
15646 BabelPreamble
15647 \end_layout
15648
15649 \end_inset
15650
15651 および
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 LangPreamble
15657 \end_layout
15658
15659 \end_inset
15660
15661 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か。これは、
15662 \family typewriter
15663 listings
15664 \family default
15665 のように、
15666 \family sans
15667 utf8
15668 \family default
15669 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15670 パッケージのために必要です。この設定は、Xe\SpecialChar TeX
15671 やLua\SpecialChar TeX
15672 のようなUnicodeを完全に解する\SpecialChar LaTeX
15673 バックエンドを使用してい
15674 る場合には、無視されます。
15675 \end_layout
15676
15677 \begin_layout Description
15678 \begin_inset Flex Code
15679 status collapsed
15680
15681 \begin_layout Plain Layout
15682 ForceLocalFontSwitch
15683 \end_layout
15684
15685 \end_inset
15686
15687  [
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692
15693 \emph on
15694 0
15695 \end_layout
15696
15697 \end_inset
15698
15699 ,
15700 \begin_inset space \thinspace{}
15701 \end_inset
15702
15703
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708 1
15709 \end_layout
15710
15711 \end_inset
15712
15713 ] babel使用時に、常にローカルフォント切替(
15714 \begin_inset Flex Code
15715 status collapsed
15716
15717 \begin_layout Plain Layout
15718
15719 \backslash
15720 foreignlanguage
15721 \end_layout
15722
15723 \end_inset
15724
15725 )を使い、グローバル切替(
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730
15731 \backslash
15732 selectlanguage
15733 \end_layout
15734
15735 \end_inset
15736
15737 など)は使わない。
15738 \end_layout
15739
15740 \begin_layout Description
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745 ForceLTR
15746 \end_layout
15747
15748 \end_inset
15749
15750  [
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755
15756 \emph on
15757 0
15758 \end_layout
15759
15760 \end_inset
15761
15762 ,
15763 \begin_inset space \thinspace{}
15764 \end_inset
15765
15766
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 1
15772 \end_layout
15773
15774 \end_inset
15775
15776 ] たとえば\SpecialChar TeX
15777 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
15778 \end_layout
15779
15780 \begin_layout Description
15781 \begin_inset Flex Code
15782 status collapsed
15783
15784 \begin_layout Plain Layout
15785 ForceOwnlines
15786 \end_layout
15787
15788 \end_inset
15789
15790  [
15791 \begin_inset Flex Code
15792 status collapsed
15793
15794 \begin_layout Plain Layout
15795
15796 \emph on
15797 0
15798 \end_layout
15799
15800 \end_inset
15801
15802 ,
15803 \begin_inset space \thinspace{}
15804 \end_inset
15805
15806
15807 \begin_inset Flex Code
15808 status collapsed
15809
15810 \begin_layout Plain Layout
15811 1
15812 \end_layout
15813
15814 \end_inset
15815
15816 ] \SpecialChar LaTeX
15817 出力において、この差込枠が開始する前と終了する後に、改行を強制します。これは、解析上の目的のために、差込枠が単独行に出力されるように保証します。
15818 \end_layout
15819
15820 \begin_layout Description
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 ForcePlain
15826 \end_layout
15827
15828 \end_inset
15829
15830  [
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835
15836 \emph on
15837 0
15838 \end_layout
15839
15840 \end_inset
15841
15842 ,
15843 \begin_inset space \thinspace{}
15844 \end_inset
15845
15846
15847 \begin_inset Flex Code
15848 status collapsed
15849
15850 \begin_layout Plain Layout
15851 1
15852 \end_layout
15853
15854 \end_inset
15855
15856 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
15857 \end_layout
15858
15859 \begin_layout Description
15860 \begin_inset Flex Code
15861 status collapsed
15862
15863 \begin_layout Plain Layout
15864 FreeSpacing
15865 \end_layout
15866
15867 \end_inset
15868
15869  [
15870 \emph on
15871
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 0
15877 \end_layout
15878
15879 \end_inset
15880
15881
15882 \emph default
15883 ,
15884 \begin_inset space \thinspace{}
15885 \end_inset
15886
15887
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 1
15893 \end_layout
15894
15895 \end_inset
15896
15897 ] 段落様式と同様。
15898 \begin_inset CommandInset ref
15899 LatexCommand ref
15900 reference "subsec:段落様式"
15901
15902 \end_inset
15903
15904 参照。
15905 \end_layout
15906
15907 \begin_layout Description
15908 \begin_inset Flex Code
15909 status collapsed
15910
15911 \begin_layout Plain Layout
15912 HTML*
15913 \end_layout
15914
15915 \end_inset
15916
15917  これらは、XHTML出力で使用されます。
15918 \begin_inset CommandInset ref
15919 LatexCommand ref
15920 reference "sec:XHTML出力のタグ"
15921
15922 \end_inset
15923
15924 をご覧ください。
15925 \end_layout
15926
15927 \begin_layout Description
15928 \begin_inset Flex Code
15929 status collapsed
15930
15931 \begin_layout Plain Layout
15932 InToc
15933 \end_layout
15934
15935 \end_inset
15936
15937  [
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942
15943 \emph on
15944 0
15945 \end_layout
15946
15947 \end_inset
15948
15949 ,
15950 \begin_inset space \thinspace{}
15951 \end_inset
15952
15953
15954 \begin_inset Flex Code
15955 status collapsed
15956
15957 \begin_layout Plain Layout
15958 1
15959 \end_layout
15960
15961 \end_inset
15962
15963 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚註の内容が、文書構造の目次に表示されることは望まないでしょ
15964 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
15965 \end_layout
15966
15967 \begin_layout Description
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972 KeepEmpty
15973 \end_layout
15974
15975 \end_inset
15976
15977  [
15978 \emph on
15979
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 0
15985 \end_layout
15986
15987 \end_inset
15988
15989
15990 \emph default
15991 ,
15992 \begin_inset space \thinspace{}
15993 \end_inset
15994
15995
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 1
16001 \end_layout
16002
16003 \end_inset
16004
16005 ] 段落様式と同様。
16006 \begin_inset CommandInset ref
16007 LatexCommand ref
16008 reference "subsec:段落様式"
16009
16010 \end_inset
16011
16012 参照。
16013 \end_layout
16014
16015 \begin_layout Description
16016 \begin_inset Flex Code
16017 status collapsed
16018
16019 \begin_layout Plain Layout
16020 LabelFont
16021 \end_layout
16022
16023 \end_inset
16024
16025  ラベルに使用されるフォント。第
16026 \begin_inset CommandInset ref
16027 LatexCommand ref
16028 reference "subsec:フォント指定"
16029
16030 \end_inset
16031
16032 節を参照。非効率を回避するため、この定義は
16033 \begin_inset Flex Code
16034 status collapsed
16035
16036 \begin_layout Plain Layout
16037 Font
16038 \end_layout
16039
16040 \end_inset
16041
16042 の前には決して現れてはなりません。
16043 \end_layout
16044
16045 \begin_layout Description
16046 \begin_inset Flex Code
16047 status collapsed
16048
16049 \begin_layout Plain Layout
16050 LabelString
16051 \end_layout
16052
16053 \end_inset
16054
16055  [
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 文字列
16061 \end_layout
16062
16063 \end_inset
16064
16065 =
16066 \begin_inset Quotes erd
16067 \end_inset
16068
16069
16070 \begin_inset Quotes erd
16071 \end_inset
16072
16073 ]
16074 \lang english
16075  
16076 \lang japanese
16077 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16078 コードや派生枝)、ラベルが動的に変更されます。
16079 \end_layout
16080
16081 \begin_layout Description
16082 \begin_inset Flex Code
16083 status collapsed
16084
16085 \begin_layout Plain Layout
16086 LangPreamble
16087 \end_layout
16088
16089 \end_inset
16090
16091  言語依存のプリアンブル。
16092 \begin_inset CommandInset ref
16093 LatexCommand ref
16094 reference "subsec:段落様式の国際化"
16095
16096 \end_inset
16097
16098 参照。
16099 \end_layout
16100
16101 \begin_layout Description
16102 \begin_inset Flex Code
16103 status collapsed
16104
16105 \begin_layout Plain Layout
16106 LatexName
16107 \end_layout
16108
16109 \end_inset
16110
16111  [
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 <名称>
16117 \end_layout
16118
16119 \end_inset
16120
16121 ] 対応する\SpecialChar LaTeX
16122 関連物の名称。環境名ないしはコマンド名。
16123 \end_layout
16124
16125 \begin_layout Description
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 LatexParam
16131 \end_layout
16132
16133 \end_inset
16134
16135  [
16136 \begin_inset Flex Code
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 <パラメータ>
16141 \end_layout
16142
16143 \end_inset
16144
16145 ]
16146 \lang english
16147  
16148 \lang japanese
16149 対応する
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 LatexName
16155 \end_layout
16156
16157 \end_inset
16158
16159 関連物の非必須パラメータ。
16160 \begin_inset Flex Code
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 []
16165 \end_layout
16166
16167 \end_inset
16168
16169 のような括弧対を含む。このパラメータは\SpecialChar LyX
16170 内部から変更することはできません(変更可能なパラメータには
16171 \begin_inset Flex Code
16172 status collapsed
16173
16174 \begin_layout Plain Layout
16175 Argument
16176 \end_layout
16177
16178 \end_inset
16179
16180 を使用してください)。これは、全ての\SpecialChar LaTeX
16181  
16182 \begin_inset Flex Code
16183 status collapsed
16184
16185 \begin_layout Plain Layout
16186 Argument
16187 \end_layout
16188
16189 \end_inset
16190
16191 の後にそのままの形で出力されます。
16192 \end_layout
16193
16194 \begin_layout Description
16195 \begin_inset Flex Code
16196 status collapsed
16197
16198 \begin_layout Plain Layout
16199 LatexType
16200 \end_layout
16201
16202 \end_inset
16203
16204  [
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 Command, Environment, None
16210 \end_layout
16211
16212 \end_inset
16213
16214 ] 様式がどのように\SpecialChar LaTeX
16215 に変換されるべきかを示します
16216 \begin_inset Foot
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 これらのルールはSGMLクラスにも適用されるので、
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 LatexType
16226 \end_layout
16227
16228 \end_inset
16229
16230 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16231 \end_layout
16232
16233 \end_inset
16234
16235
16236 \begin_inset Separator parbreak
16237 \end_inset
16238
16239
16240 \end_layout
16241
16242 \begin_deeper
16243 \begin_layout Description
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 None
16249 \end_layout
16250
16251 \end_inset
16252
16253  は、何も特別なことは意味しません
16254 \end_layout
16255
16256 \begin_layout Description
16257 \begin_inset Flex Code
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 Command
16262 \end_layout
16263
16264 \end_inset
16265
16266  は、
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271
16272 \backslash
16273
16274 \emph on
16275 LatexName
16276 \emph default
16277 {\SpecialChar ldots
16278 }
16279 \end_layout
16280
16281 \end_inset
16282
16283 を意味します
16284 \end_layout
16285
16286 \begin_layout Description
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291 Environment
16292 \end_layout
16293
16294 \end_inset
16295
16296  は、
16297 \begin_inset Flex Code
16298 status collapsed
16299
16300 \begin_layout Plain Layout
16301
16302 \backslash
16303 begin{
16304 \emph on
16305 LatexName
16306 \emph default
16307 }\SpecialChar ldots
16308
16309 \backslash
16310 end{
16311 \emph on
16312 LatexName
16313 \emph default
16314 }
16315 \end_layout
16316
16317 \end_inset
16318
16319 を意味します
16320 \end_layout
16321
16322 \begin_layout Standard
16323 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16324 出力は、\SpecialChar LaTeX
16325 型に依存して
16326 \end_layout
16327
16328 \begin_layout LyX-Code
16329
16330 \backslash
16331 LatexName[LatexParam]{\SpecialChar ldots
16332 }
16333 \end_layout
16334
16335 \begin_layout Standard
16336 のようになるか、
16337 \end_layout
16338
16339 \begin_layout LyX-Code
16340
16341 \backslash
16342 begin{LatexName}[LatexParam] \SpecialChar ldots
16343  
16344 \backslash
16345 end{LatexName}.
16346 \end_layout
16347
16348 \begin_layout Standard
16349 となります。
16350 \end_layout
16351
16352 \end_deeper
16353 \begin_layout Description
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358 LeftDelim
16359 \end_layout
16360
16361 \end_inset
16362
16363  [
16364 \begin_inset Flex Code
16365 status collapsed
16366
16367 \begin_layout Plain Layout
16368 文字列
16369 \end_layout
16370
16371 \end_inset
16372
16373 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16374 \begin_inset Flex Code
16375 status collapsed
16376
16377 \begin_layout Plain Layout
16378 <br/>
16379 \end_layout
16380
16381 \end_inset
16382
16383 で指示できます。
16384 \end_layout
16385
16386 \begin_layout Description
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 LyxType
16392 \end_layout
16393
16394 \end_inset
16395
16396  
16397 \begin_inset Flex Code
16398 status collapsed
16399
16400 \begin_layout Plain Layout
16401 charstyle
16402 \end_layout
16403
16404 \end_inset
16405
16406
16407 \begin_inset Flex Code
16408 status collapsed
16409
16410 \begin_layout Plain Layout
16411 custom
16412 \end_layout
16413
16414 \end_inset
16415
16416
16417 \begin_inset Flex Code
16418 status collapsed
16419
16420 \begin_layout Plain Layout
16421 element
16422 \end_layout
16423
16424 \end_inset
16425
16426
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 end
16432 \end_layout
16433
16434 \end_inset
16435
16436 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16437 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16438 \begin_inset Flex Code
16439 status collapsed
16440
16441 \begin_layout Plain Layout
16442 LyXType
16443 \end_layout
16444
16445 \end_inset
16446
16447
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 charstyle
16453 \end_layout
16454
16455 \end_inset
16456
16457 に設定すると、
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462 MultiPar
16463 \end_layout
16464
16465 \end_inset
16466
16467 が偽に設定されます。文字様式差込枠で
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 MultiPar
16473 \end_layout
16474
16475 \end_inset
16476
16477 を真にしたい時には、
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 LyXType
16483 \end_layout
16484
16485 \end_inset
16486
16487 を設定した
16488 \emph on
16489 後に
16490 \emph default
16491 設定すれば、真に設定することができます。
16492 \end_layout
16493
16494 \begin_layout Description
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499 MultiPar
16500 \end_layout
16501
16502 \end_inset
16503
16504  [
16505 \begin_inset Flex Code
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509
16510 \emph on
16511 0
16512 \end_layout
16513
16514 \end_inset
16515
16516 ,
16517 \begin_inset space \thinspace{}
16518 \end_inset
16519
16520
16521 \begin_inset Flex Code
16522 status collapsed
16523
16524 \begin_layout Plain Layout
16525 1
16526 \end_layout
16527
16528 \end_inset
16529
16530 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16531 \begin_inset Flex Code
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 CustomPars
16536 \end_layout
16537
16538 \end_inset
16539
16540 を同じ値に設定し、
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 ForcePlain
16546 \end_layout
16547
16548 \end_inset
16549
16550 を逆の値に設定します。これらは、
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 MultiPar
16556 \end_layout
16557
16558 \end_inset
16559
16560
16561 \emph on
16562 後に
16563 \emph default
16564 指定されれば、他の値に指定し直すことができます。既定値は真です。
16565 \end_layout
16566
16567 \begin_layout Description
16568 \begin_inset Flex Code
16569 status collapsed
16570
16571 \begin_layout Plain Layout
16572 NeedProtect
16573 \end_layout
16574
16575 \end_inset
16576
16577  [
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582
16583 \emph on
16584 0
16585 \end_layout
16586
16587 \end_inset
16588
16589 ,
16590 \begin_inset space \thinspace{}
16591 \end_inset
16592
16593
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 1
16599 \end_layout
16600
16601 \end_inset
16602
16603 ] 本レイアウト中で脆弱なコマンドを
16604 \begin_inset Flex Code
16605 status collapsed
16606
16607 \begin_layout Plain Layout
16608
16609 \backslash
16610 protect
16611 \end_layout
16612
16613 \end_inset
16614
16615 するか否か(註:当該コマンド自身をprotectするかどうかでは
16616 \emph on
16617 ありません
16618 \emph default
16619 )。既定値は偽です。
16620 \end_layout
16621
16622 \begin_layout Description
16623 \begin_inset Flex Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 NoInsetLayout
16628 \end_layout
16629
16630 \end_inset
16631
16632  [
16633 \begin_inset Flex Code
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 <レイアウト>
16638 \end_layout
16639
16640 \end_inset
16641
16642 ] 既存の
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 InsetLayout
16648 \end_layout
16649
16650 \end_inset
16651
16652 を削除します。
16653 \end_layout
16654
16655 \begin_layout Description
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660 ObsoletedBy
16661 \end_layout
16662
16663 \end_inset
16664
16665  [
16666 \begin_inset Flex Code
16667 status collapsed
16668
16669 \begin_layout Plain Layout
16670 <レイアウト>
16671 \end_layout
16672
16673 \end_inset
16674
16675 ] この古い
16676 \begin_inset Flex Code
16677 status collapsed
16678
16679 \begin_layout Plain Layout
16680 InsetLayout
16681 \end_layout
16682
16683 \end_inset
16684
16685 を引き継いだ
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 InsetLayout
16691 \end_layout
16692
16693 \end_inset
16694
16695 の名称。これは、
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 InsetLayout
16701 \end_layout
16702
16703 \end_inset
16704
16705 の改名を、後方互換性を維持しながら行うために用いられます。
16706 \end_layout
16707
16708 \begin_layout Description
16709 \begin_inset Flex Code
16710 status collapsed
16711
16712 \begin_layout Plain Layout
16713 ParbreakIsNewline
16714 \end_layout
16715
16716 \end_inset
16717
16718  [
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723
16724 \emph on
16725 0
16726 \end_layout
16727
16728 \end_inset
16729
16730 ,
16731 \begin_inset space \thinspace{}
16732 \end_inset
16733
16734
16735 \begin_inset Flex Code
16736 status collapsed
16737
16738 \begin_layout Plain Layout
16739 1
16740 \end_layout
16741
16742 \end_inset
16743
16744 ] 段落様式と同様。
16745 \begin_inset CommandInset ref
16746 LatexCommand ref
16747 reference "subsec:段落様式"
16748
16749 \end_inset
16750
16751 参照。
16752 \end_layout
16753
16754 \begin_layout Description
16755 \begin_inset Flex Code
16756 status collapsed
16757
16758 \begin_layout Plain Layout
16759 PassThru
16760 \end_layout
16761
16762 \end_inset
16763
16764  [
16765 \emph on
16766
16767 \begin_inset Flex Code
16768 status collapsed
16769
16770 \begin_layout Plain Layout
16771 0
16772 \end_layout
16773
16774 \end_inset
16775
16776
16777 \emph default
16778 ,
16779 \begin_inset space \thinspace{}
16780 \end_inset
16781
16782
16783 \begin_inset Flex Code
16784 status collapsed
16785
16786 \begin_layout Plain Layout
16787 1
16788 \end_layout
16789
16790 \end_inset
16791
16792 ] 段落様式と同様。
16793 \begin_inset CommandInset ref
16794 LatexCommand ref
16795 reference "subsec:段落様式"
16796
16797 \end_inset
16798
16799 参照。
16800 \end_layout
16801
16802 \begin_layout Description
16803 \begin_inset Flex Code
16804 status collapsed
16805
16806 \begin_layout Plain Layout
16807 Preamble
16808 \end_layout
16809
16810 \end_inset
16811
16812  段落様式と同様。
16813 \begin_inset CommandInset ref
16814 LatexCommand ref
16815 reference "subsec:段落様式"
16816
16817 \end_inset
16818
16819 参照。
16820 \end_layout
16821
16822 \begin_layout Description
16823 \begin_inset Flex Code
16824 status collapsed
16825
16826 \begin_layout Plain Layout
16827 RefPrefix
16828 \end_layout
16829
16830 \end_inset
16831
16832  [
16833 \begin_inset Flex Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 文字列
16838 \end_layout
16839
16840 \end_inset
16841
16842 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
16843 \end_layout
16844
16845 \begin_layout Description
16846 \begin_inset Flex Code
16847 status collapsed
16848
16849 \begin_layout Plain Layout
16850 Requires
16851 \end_layout
16852
16853 \end_inset
16854
16855  [
16856 \begin_inset Flex Code
16857 status collapsed
16858
16859 \begin_layout Plain Layout
16860 文字列
16861 \end_layout
16862
16863 \end_inset
16864
16865 ] 段落様式と同様。
16866 \begin_inset CommandInset ref
16867 LatexCommand ref
16868 reference "subsec:段落様式"
16869
16870 \end_inset
16871
16872 参照。
16873 \end_layout
16874
16875 \begin_layout Description
16876 \begin_inset Flex Code
16877 status collapsed
16878
16879 \begin_layout Plain Layout
16880 ResetArgs
16881 \end_layout
16882
16883 \end_inset
16884
16885  [
16886 \begin_inset Flex Code
16887 status collapsed
16888
16889 \begin_layout Plain Layout
16890
16891 \emph on
16892 0
16893 \end_layout
16894
16895 \end_inset
16896
16897 ,
16898 \begin_inset space \thinspace{}
16899 \end_inset
16900
16901
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 1
16907 \end_layout
16908
16909 \end_inset
16910
16911 ] (
16912 \begin_inset Flex Code
16913 status collapsed
16914
16915 \begin_layout Plain Layout
16916 Argument
16917 \end_layout
16918
16919 \end_inset
16920
16921 タグで定義された)この様式の\SpecialChar LaTeX
16922 引数をリセットします。これは、様式を
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 CopyStyle
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 ResetsFont
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 \begin_inset Note Note
16973 status open
16974
16975 \begin_layout Plain Layout
16976 This is outdated: The default changed from 1 to 0
16977 \end_layout
16978
16979 \end_inset
16980
16981
16982 \end_layout
16983
16984 \begin_layout Description
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 RightDelim
16990 \end_layout
16991
16992 \end_inset
16993
16994  [
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 文字列
17000 \end_layout
17001
17002 \end_inset
17003
17004 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 <br/>
17010 \end_layout
17011
17012 \end_inset
17013
17014 で指示できます。
17015 \end_layout
17016
17017 \begin_layout Description
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 Spellcheck
17023 \end_layout
17024
17025 \end_inset
17026
17027  [
17028 \begin_inset Flex Code
17029 status collapsed
17030
17031 \begin_layout Plain Layout
17032 0
17033 \end_layout
17034
17035 \end_inset
17036
17037 ,
17038 \begin_inset space \thinspace{}
17039 \end_inset
17040
17041
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046
17047 \emph on
17048 1
17049 \end_layout
17050
17051 \end_inset
17052
17053 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17054 \end_layout
17055
17056 \begin_layout Subsection
17057 カウンタ
17058 \begin_inset CommandInset label
17059 LatexCommand label
17060 name "subsec:カウンタ"
17061
17062 \end_inset
17063
17064
17065 \end_layout
17066
17067 \begin_layout Standard
17068 テキストクラスには、カウンタ(
17069 \begin_inset Flex MenuItem
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 chapter
17074 \end_layout
17075
17076 \end_inset
17077
17078
17079 \begin_inset Flex MenuItem
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 figure
17084 \end_layout
17085
17086 \end_inset
17087
17088 ・\SpecialChar ldots
17089 )を定義することが必要です。標準的なカウンタは
17090 \begin_inset Flex Code
17091 status collapsed
17092
17093 \begin_layout Plain Layout
17094 stdcounters.inc
17095 \end_layout
17096
17097 \end_inset
17098
17099 ファイルに含まれているので、作業中のレイアウトファイルに
17100 \end_layout
17101
17102 \begin_layout LyX-Code
17103 Input stdcounters.inc
17104 \end_layout
17105
17106 \begin_layout Standard
17107 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17108 \end_layout
17109
17110 \begin_layout LyX-Code
17111 Counter カウンタ名
17112 \end_layout
17113
17114 \begin_layout Standard
17115 で始まらなくてはなりません。ここで「
17116 \begin_inset Flex Code
17117 status collapsed
17118
17119 \begin_layout Plain Layout
17120 カウンタ名
17121 \end_layout
17122
17123 \end_inset
17124
17125 」は、実際のカウンタ名で置き換えます。また、宣言は「
17126 \begin_inset Flex Code
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130 End
17131 \end_layout
17132
17133 \end_inset
17134
17135 」で終わらなくてはなりません。
17136 \end_layout
17137
17138 \begin_layout Standard
17139 以下のパラメータを使用することができます。
17140 \end_layout
17141
17142 \begin_layout Description
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147 InitialValue
17148 \end_layout
17149
17150 \end_inset
17151
17152  [
17153 \begin_inset Flex Code
17154 status collapsed
17155
17156 \begin_layout Plain Layout
17157 整数=1
17158 \end_layout
17159
17160 \end_inset
17161
17162 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17163 \end_layout
17164
17165 \begin_layout Description
17166 \begin_inset Flex Code
17167 status collapsed
17168
17169 \begin_layout Plain Layout
17170 LabelString [文字列=""]
17171 \end_layout
17172
17173 \end_inset
17174
17175  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17176 \begin_inset Flex Code
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 LabelStringAppendix
17181 \end_layout
17182
17183 \end_inset
17184
17185 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17186 \begin_inset Separator parbreak
17187 \end_inset
17188
17189
17190 \end_layout
17191
17192 \begin_deeper
17193 \begin_layout Itemize
17194 \begin_inset Flex Code
17195 status collapsed
17196
17197 \begin_layout Plain Layout
17198
17199 \backslash
17200 thecounter
17201 \end_layout
17202
17203 \end_inset
17204
17205 は、カウンタ
17206 \begin_inset Flex Code
17207 status collapsed
17208
17209 \begin_layout Plain Layout
17210 counter
17211 \end_layout
17212
17213 \end_inset
17214
17215
17216 \begin_inset Flex Code
17217 status collapsed
17218
17219 \begin_layout Plain Layout
17220 LabelString
17221 \end_layout
17222
17223 \end_inset
17224
17225 (または
17226 \begin_inset Newline linebreak
17227 \end_inset
17228
17229
17230 \begin_inset Flex Code
17231 status collapsed
17232
17233 \begin_layout Plain Layout
17234 LabelStringAppendix
17235 \end_layout
17236
17237 \end_inset
17238
17239 )を展開したもので置き換えられます。 
17240 \end_layout
17241
17242 \begin_layout Itemize
17243 カウンタ値は、\SpecialChar LaTeX
17244 型マクロ
17245 \begin_inset Flex Code
17246 status collapsed
17247
17248 \begin_layout Plain Layout
17249
17250 \backslash
17251
17252 \emph on
17253 numbertype
17254 \emph default
17255 {
17256 \emph on
17257 カウンタ
17258 \emph default
17259 }
17260 \end_layout
17261
17262 \end_inset
17263
17264 を用いて表現することができます。ここで
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269
17270 \emph on
17271 numbertype
17272 \end_layout
17273
17274 \end_inset
17275
17276 は以下のいずれかです。
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 arabic
17282 \end_layout
17283
17284 \end_inset
17285
17286 :1, 2, 3,\SpecialChar ldots
17287
17288 \begin_inset Flex Code
17289 status collapsed
17290
17291 \begin_layout Plain Layout
17292 alph
17293 \end_layout
17294
17295 \end_inset
17296
17297 :a, b, c, \SpecialChar ldots
17298 (小文字);
17299 \begin_inset Flex Code
17300 status collapsed
17301
17302 \begin_layout Plain Layout
17303 Alph
17304 \end_layout
17305
17306 \end_inset
17307
17308 :A, B, C, \SpecialChar ldots
17309 (大文字);
17310 \begin_inset Flex Code
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 roman
17315 \end_layout
17316
17317 \end_inset
17318
17319 :i, ii, iii, \SpecialChar ldots
17320 (小文字ローマ数字);
17321 \begin_inset Flex Code
17322 status collapsed
17323
17324 \begin_layout Plain Layout
17325 Roman
17326 \end_layout
17327
17328 \end_inset
17329
17330 :I, II, III\SpecialChar ldots
17331 (大文字ローマ数字)。
17332 \end_layout
17333
17334 \end_deeper
17335 \begin_layout Standard
17336 \begin_inset Flex Code
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340 LabelString
17341 \end_layout
17342
17343 \end_inset
17344
17345 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 master
17351 \end_layout
17352
17353 \end_inset
17354
17355
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 Within
17361 \end_layout
17362
17363 \end_inset
17364
17365 で定義)があるときには、文字列
17366 \begin_inset Newline linebreak
17367 \end_inset
17368
17369
17370 \begin_inset Flex Code
17371 status collapsed
17372
17373 \begin_layout Plain Layout
17374
17375 \backslash
17376 themaster.
17377 \backslash
17378 arabic{カウンタ}
17379 \end_layout
17380
17381 \end_inset
17382
17383 が使用されます。それ以外の場合は、
17384 \begin_inset Flex Code
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388
17389 \backslash
17390 arabic{カウンタ}
17391 \end_layout
17392
17393 \end_inset
17394
17395 が使用されます。
17396 \end_layout
17397
17398 \begin_layout Description
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403 LabelStringAppendix
17404 \end_layout
17405
17406 \end_inset
17407
17408  [
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 文字列
17414 \end_layout
17415
17416 \end_inset
17417
17418 =""] 
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 LabelString
17424 \end_layout
17425
17426 \end_inset
17427
17428 と同様ですが、付録で使用するためのものです。
17429 \end_layout
17430
17431 \begin_layout Description
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 PrettyFormat
17437 \end_layout
17438
17439 \end_inset
17440
17441  [
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 文字列
17447 \end_layout
17448
17449 \end_inset
17450
17451 =
17452 \begin_inset Quotes erd
17453 \end_inset
17454
17455
17456 \begin_inset Quotes erd
17457 \end_inset
17458
17459 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17460 \begin_inset space ~
17461 \end_inset
17462
17463 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17464 す。
17465 \end_layout
17466
17467 \begin_layout Description
17468 \begin_inset Flex Code
17469 status collapsed
17470
17471 \begin_layout Plain Layout
17472 Within
17473 \end_layout
17474
17475 \end_inset
17476
17477  [
17478 \begin_inset Flex Code
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 文字列
17483 \end_layout
17484
17485 \end_inset
17486
17487 =
17488 \begin_inset Quotes erd
17489 \end_inset
17490
17491
17492 \begin_inset Quotes erd
17493 \end_inset
17494
17495 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 subsection
17501 \end_layout
17502
17503 \end_inset
17504
17505
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 section
17511 \end_layout
17512
17513 \end_inset
17514
17515 毎に番号がリセットされます。
17516 \end_layout
17517
17518 \begin_layout Subsection
17519 フォント指定
17520 \begin_inset CommandInset label
17521 LatexCommand label
17522 name "subsec:フォント指定"
17523
17524 \end_inset
17525
17526
17527 \end_layout
17528
17529 \begin_layout Standard
17530 フォント指定は、以下のような形を取ります。
17531 \end_layout
17532
17533 \begin_layout LyX-Code
17534 Font 
17535 \family roman
17536 \emph on
17537 または
17538 \family default
17539 \emph default
17540  LabelFont 
17541 \family roman
17542 \emph on
17543 または
17544 \family default
17545 \emph default
17546  DefaultFont
17547 \end_layout
17548
17549 \begin_layout LyX-Code
17550  ...
17551 \end_layout
17552
17553 \begin_layout LyX-Code
17554 EndFont
17555 \end_layout
17556
17557 \begin_layout Standard
17558 以下のコマンドを使用することができます。
17559 \end_layout
17560
17561 \begin_layout Description
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 Color
17567 \end_layout
17568
17569 \end_inset
17570
17571  [
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576
17577 \emph on
17578 none
17579 \end_layout
17580
17581 \end_inset
17582
17583
17584 \begin_inset Flex Code
17585 status collapsed
17586
17587 \begin_layout Plain Layout
17588 black
17589 \end_layout
17590
17591 \end_inset
17592
17593
17594 \begin_inset Flex Code
17595 status collapsed
17596
17597 \begin_layout Plain Layout
17598 white
17599 \end_layout
17600
17601 \end_inset
17602
17603
17604 \begin_inset Flex Code
17605 status collapsed
17606
17607 \begin_layout Plain Layout
17608 red
17609 \end_layout
17610
17611 \end_inset
17612
17613
17614 \begin_inset Flex Code
17615 status collapsed
17616
17617 \begin_layout Plain Layout
17618 green
17619 \end_layout
17620
17621 \end_inset
17622
17623
17624 \begin_inset Flex Code
17625 status collapsed
17626
17627 \begin_layout Plain Layout
17628 blue
17629 \end_layout
17630
17631 \end_inset
17632
17633
17634 \begin_inset Flex Code
17635 status collapsed
17636
17637 \begin_layout Plain Layout
17638 cyan
17639 \end_layout
17640
17641 \end_inset
17642
17643
17644 \begin_inset Flex Code
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648 magenta
17649 \end_layout
17650
17651 \end_inset
17652
17653
17654 \begin_inset Flex Code
17655 status collapsed
17656
17657 \begin_layout Plain Layout
17658 yellow
17659 \end_layout
17660
17661 \end_inset
17662
17663 ]
17664 \end_layout
17665
17666 \begin_layout Description
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671 Family
17672 \end_layout
17673
17674 \end_inset
17675
17676  [
17677 \emph on
17678
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 Roman
17684 \end_layout
17685
17686 \end_inset
17687
17688
17689 \emph default
17690
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 Sans
17696 \end_layout
17697
17698 \end_inset
17699
17700
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705 Typewriter
17706 \end_layout
17707
17708 \end_inset
17709
17710
17711 \end_layout
17712
17713 \begin_layout Description
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 Misc
17719 \end_layout
17720
17721 \end_inset
17722
17723  [
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 文字列
17729 \end_layout
17730
17731 \end_inset
17732
17733 ] 有効な引数は、
17734 \begin_inset Flex Code
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738 emph
17739 \end_layout
17740
17741 \end_inset
17742
17743
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748 noun
17749 \end_layout
17750
17751 \end_inset
17752
17753
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 strikeout
17759 \end_layout
17760
17761 \end_inset
17762
17763
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768 underbar
17769 \end_layout
17770
17771 \end_inset
17772
17773
17774 \begin_inset Flex Code
17775 status collapsed
17776
17777 \begin_layout Plain Layout
17778 uuline
17779 \end_layout
17780
17781 \end_inset
17782
17783
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788 uwave
17789 \end_layout
17790
17791 \end_inset
17792
17793
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 no_emph
17799 \end_layout
17800
17801 \end_inset
17802
17803
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 no_noun
17809 \end_layout
17810
17811 \end_inset
17812
17813
17814 \begin_inset Flex Code
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 no_strikeout
17819 \end_layout
17820
17821 \end_inset
17822
17823
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 no_bar
17829 \end_layout
17830
17831 \end_inset
17832
17833
17834 \begin_inset Flex Code
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 no_uuline
17839 \end_layout
17840
17841 \end_inset
17842
17843
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 no_uwave
17849 \end_layout
17850
17851 \end_inset
17852
17853 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
17854 \begin_inset Newline newline
17855 \end_inset
17856
17857 たとえば、
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 emph
17863 \end_layout
17864
17865 \end_inset
17866
17867 は強調を有効にし、
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 no_emph
17873 \end_layout
17874
17875 \end_inset
17876
17877 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
17878
17879 \begin_inset Flex Code
17880 status collapsed
17881
17882 \begin_layout Plain Layout
17883 no_emph
17884 \end_layout
17885
17886 \end_inset
17887
17888 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
17889 \end_layout
17890
17891 \begin_layout Description
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 Series
17897 \end_layout
17898
17899 \end_inset
17900
17901  [
17902 \emph on
17903
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908 Medium
17909 \end_layout
17910
17911 \end_inset
17912
17913
17914 \emph default
17915
17916 \begin_inset Flex Code
17917 status collapsed
17918
17919 \begin_layout Plain Layout
17920 Bold
17921 \end_layout
17922
17923 \end_inset
17924
17925
17926 \end_layout
17927
17928 \begin_layout Description
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 Shape
17934 \end_layout
17935
17936 \end_inset
17937
17938  [
17939 \emph on
17940
17941 \begin_inset Flex Code
17942 status collapsed
17943
17944 \begin_layout Plain Layout
17945 Up
17946 \end_layout
17947
17948 \end_inset
17949
17950
17951 \emph default
17952
17953 \begin_inset Flex Code
17954 status collapsed
17955
17956 \begin_layout Plain Layout
17957 Italic
17958 \end_layout
17959
17960 \end_inset
17961
17962
17963 \begin_inset Flex Code
17964 status collapsed
17965
17966 \begin_layout Plain Layout
17967 SmallCaps
17968 \end_layout
17969
17970 \end_inset
17971
17972
17973 \begin_inset Flex Code
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977 Slanted
17978 \end_layout
17979
17980 \end_inset
17981
17982
17983 \end_layout
17984
17985 \begin_layout Description
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 Size
17991 \end_layout
17992
17993 \end_inset
17994
17995  [
17996 \begin_inset Flex Code
17997 status collapsed
17998
17999 \begin_layout Plain Layout
18000 tiny
18001 \end_layout
18002
18003 \end_inset
18004
18005
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010 small
18011 \end_layout
18012
18013 \end_inset
18014
18015
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020
18021 \emph on
18022 normal
18023 \end_layout
18024
18025 \end_inset
18026
18027
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 large
18033 \end_layout
18034
18035 \end_inset
18036
18037
18038 \begin_inset Flex Code
18039 status collapsed
18040
18041 \begin_layout Plain Layout
18042 larger
18043 \end_layout
18044
18045 \end_inset
18046
18047
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 largest
18053 \end_layout
18054
18055 \end_inset
18056
18057
18058 \begin_inset Flex Code
18059 status collapsed
18060
18061 \begin_layout Plain Layout
18062 huge
18063 \end_layout
18064
18065 \end_inset
18066
18067
18068 \begin_inset Flex Code
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072 giant
18073 \end_layout
18074
18075 \end_inset
18076
18077 ]
18078 \end_layout
18079
18080 \begin_layout Subsection
18081 \begin_inset CommandInset label
18082 LatexCommand label
18083 name "subsec:引用書式指定"
18084
18085 \end_inset
18086
18087 引用書式指定
18088 \end_layout
18089
18090 \begin_layout Standard
18091 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18092 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 CiteFormat
18098 \end_layout
18099
18100 \end_inset
18101
18102 ブロックが使用されています。このブロックは、以下のような形をしています。
18103 \end_layout
18104
18105 \begin_layout LyX-Code
18106 CiteFormat
18107 \end_layout
18108
18109 \begin_layout LyX-Code
18110  article ...
18111 \end_layout
18112
18113 \begin_layout LyX-Code
18114  book ...
18115 \end_layout
18116
18117 \begin_layout LyX-Code
18118 End
18119 \end_layout
18120
18121 \begin_layout Standard
18122 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18123 ファイル中に存在し
18124 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18125 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18126 は、いくつかの書式を
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131 stdciteformats.inc
18132 \end_layout
18133
18134 \end_inset
18135
18136 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18137 文書クラスにインクルードされています。
18138 \end_layout
18139
18140 \begin_layout Standard
18141 この定義は、Bib\SpecialChar TeX
18142 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18143 \begin_inset Flex Code
18144 status collapsed
18145
18146 \begin_layout Plain Layout
18147 %author%
18148 \end_layout
18149
18150 \end_inset
18151
18152 のように
18153 \begin_inset Flex Code
18154 status collapsed
18155
18156 \begin_layout Plain Layout
18157 %
18158 \end_layout
18159
18160 \end_inset
18161
18162 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18163 \end_layout
18164
18165 \begin_layout LyX-Code
18166 misc %author%, 
18167 \begin_inset Quotes eld
18168 \end_inset
18169
18170 %title%
18171 \begin_inset Quotes erd
18172 \end_inset
18173
18174
18175 \end_layout
18176
18177 \begin_layout Standard
18178 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18179 \end_layout
18180
18181 \begin_layout Standard
18182 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 {%volume%[[vol.
18188 \begin_inset space ~
18189 \end_inset
18190
18191 %volume%]]}
18192 \end_layout
18193
18194 \end_inset
18195
18196 のように、条件付きの構成を使用することができます。これは、
18197 \begin_inset Flex Code
18198 status collapsed
18199
18200 \begin_layout Plain Layout
18201 volume
18202 \end_layout
18203
18204 \end_inset
18205
18206 が存在するならば,「vol.
18207 \begin_inset space ~
18208 \end_inset
18209
18210 」とvolumeキーを出力するという意味です。また、
18211 \begin_inset Newline newline
18212 \end_inset
18213
18214
18215 \begin_inset Flex Code
18216 status collapsed
18217
18218 \begin_layout Plain Layout
18219 {%author%[[%author%]][[%editor%, ed.]]}
18220 \end_layout
18221
18222 \end_inset
18223
18224
18225 \begin_inset Newline newline
18226 \end_inset
18227
18228 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 author
18234 \end_layout
18235
18236 \end_inset
18237
18238 キーが存在するならば出力され、そうでなければeditorキーと「,
18239 \begin_inset space ~
18240 \end_inset
18241
18242 ed.」が出力されます。ここでもキーは、
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 %
18248 \end_layout
18249
18250 \end_inset
18251
18252 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18253 \begin_inset Flex Code
18254 status collapsed
18255
18256 \begin_layout Plain Layout
18257 [[
18258 \end_layout
18259
18260 \end_inset
18261
18262 」と「
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 ]]
18268 \end_layout
18269
18270 \end_inset
18271
18272 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18273 \end_layout
18274
18275 \begin_layout Standard
18276 もう一つ、定義中で使用することのできる文法として、
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 {!<i>!}
18282 \end_layout
18283
18284 \end_inset
18285
18286 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18287 グを出力させたくはありませんから、HTMLタグは「
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 {!
18293 \end_layout
18294
18295 \end_inset
18296
18297 」と「
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 !}
18303 \end_layout
18304
18305 \end_inset
18306
18307 」でくるんでやらなくてはならないのです。
18308 \end_layout
18309
18310 \begin_layout Standard
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 CiteFormat
18316 \end_layout
18317
18318 \end_inset
18319
18320 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18321 \end_layout
18322
18323 \begin_layout LyX-Code
18324 !quotetitle 
18325 \begin_inset Quotes eld
18326 \end_inset
18327
18328 %title%
18329 \begin_inset Quotes erd
18330 \end_inset
18331
18332
18333 \end_layout
18334
18335 \begin_layout Standard
18336 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 %!quotetitle%
18342 \end_layout
18343
18344 \end_inset
18345
18346 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18347 は、
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352 %!quotetitle%
18353 \end_layout
18354
18355 \end_inset
18356
18357 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18358 \end_layout
18359
18360 \begin_layout LyX-Code
18361 !funfun %funfun%
18362 \end_layout
18363
18364 \begin_layout Standard
18365 のようなことはしないでください。\SpecialChar LyX
18366 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18367 \end_layout
18368
18369 \begin_layout Standard
18370 特殊な定義の二つめは、
18371 \end_layout
18372
18373 \begin_layout LyX-Code
18374 _pptext pp.
18375 \end_layout
18376
18377 \begin_layout Standard
18378 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 %_pptext%
18384 \end_layout
18385
18386 \end_inset
18387
18388 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 stdciteformats.inc
18394 \end_layout
18395
18396 \end_inset
18397
18398 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18399 \end_layout
18400
18401 \begin_layout Standard
18402 以下は、これらの機能を全て使った例です。
18403 \begin_inset VSpace defskip
18404 \end_inset
18405
18406
18407 \end_layout
18408
18409 \begin_layout Standard
18410 \noindent
18411
18412 \family typewriter
18413 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18414 \end_layout
18415
18416 \begin_layout Standard
18417 \begin_inset VSpace defskip
18418 \end_inset
18419
18420 これは、
18421 \begin_inset Flex Code
18422 status collapsed
18423
18424 \begin_layout Plain Layout
18425 author
18426 \end_layout
18427
18428 \end_inset
18429
18430 キーが定義されているならば、著者とコンマを出力し、
18431 \begin_inset Flex Code
18432 status collapsed
18433
18434 \begin_layout Plain Layout
18435 author
18436 \end_layout
18437
18438 \end_inset
18439
18440 キーが定義されておらず、
18441 \begin_inset Flex Code
18442 status collapsed
18443
18444 \begin_layout Plain Layout
18445 editor
18446 \end_layout
18447
18448 \end_inset
18449
18450 キーが定義されているならば、編集者名の後に
18451 \begin_inset Flex Code
18452 status collapsed
18453
18454 \begin_layout Plain Layout
18455 _edtext
18456 \end_layout
18457
18458 \end_inset
18459
18460 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18461 \begin_inset Flex Code
18462 status collapsed
18463
18464 \begin_layout Plain Layout
18465 stdciteformats.inc
18466 \end_layout
18467
18468 \end_inset
18469
18470 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18471 \end_layout
18472
18473 \begin_layout Section
18474 \begin_inset CommandInset label
18475 LatexCommand label
18476 name "sec:XHTML出力のタグ"
18477
18478 \end_inset
18479
18480 XHTML出力のタグ
18481 \end_layout
18482
18483 \begin_layout Standard
18484 \SpecialChar LaTeX
18485 やDocBookと同様、\SpecialChar LyX
18486 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18487 は適切な既定値を提供し、前述したように、他のレイアウト
18488 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18489 は、章様式の
18490 \begin_inset Flex Code
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494 Font
18495 \end_layout
18496
18497 \end_inset
18498
18499 宣言で提供されている情報を利用しようと試みます。
18500 \end_layout
18501
18502 \begin_layout Standard
18503 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18504 、これが必要になる場合もあるので、\SpecialChar LyX
18505 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18506 \end_layout
18507
18508 \begin_layout Standard
18509 様式宣言や差込枠宣言の外で使用することができるタグに、
18510 \begin_inset Flex Code
18511 status collapsed
18512
18513 \begin_layout Plain Layout
18514 HTMLPreamble
18515 \end_layout
18516
18517 \end_inset
18518
18519
18520 \begin_inset Flex Code
18521 status collapsed
18522
18523 \begin_layout Plain Layout
18524 AddToHTMLPreamble
18525 \end_layout
18526
18527 \end_inset
18528
18529 の2つがあることに注意してください。これらの詳細については、
18530 \begin_inset CommandInset ref
18531 LatexCommand ref
18532 reference "subsec:汎用テキストクラスパラメータ"
18533
18534 \end_inset
18535
18536 をご覧ください。
18537 \end_layout
18538
18539 \begin_layout Subsection
18540 \begin_inset CommandInset label
18541 LatexCommand label
18542 name "subsec:段落様式-XHTML"
18543
18544 \end_inset
18545
18546 段落様式
18547 \end_layout
18548
18549 \begin_layout Standard
18550 \SpecialChar LyX
18551 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556 \SpecialChar LaTeX
18557 Type
18558 \end_layout
18559
18560 \end_inset
18561
18562 タグの内容によって決定されます。
18563 \end_layout
18564
18565 \begin_layout Standard
18566 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18567 \end_layout
18568
18569 \begin_layout LyX-Code
18570 <tag attr=
18571 \begin_inset Quotes erd
18572 \end_inset
18573
18574 value
18575 \begin_inset Quotes erd
18576 \end_inset
18577
18578 >
18579 \end_layout
18580
18581 \begin_layout LyX-Code
18582 <labeltag attr=
18583 \begin_inset Quotes erd
18584 \end_inset
18585
18586 value
18587 \begin_inset Quotes erd
18588 \end_inset
18589
18590 >ラベル</labeltag>
18591 \end_layout
18592
18593 \begin_layout LyX-Code
18594 段落の内容
18595 \end_layout
18596
18597 \begin_layout LyX-Code
18598 </tag>
18599 \end_layout
18600
18601 \begin_layout Standard
18602 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18603 \end_layout
18604
18605 \begin_layout Standard
18606 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18607 \end_layout
18608
18609 \begin_layout LyX-Code
18610 <tag attr=
18611 \begin_inset Quotes erd
18612 \end_inset
18613
18614 value
18615 \begin_inset Quotes erd
18616 \end_inset
18617
18618 >
18619 \end_layout
18620
18621 \begin_layout LyX-Code
18622 <itemtag attr=
18623 \begin_inset Quotes erd
18624 \end_inset
18625
18626 value
18627 \begin_inset Quotes erd
18628 \end_inset
18629
18630 ><labeltag attr=
18631 \begin_inset Quotes erd
18632 \end_inset
18633
18634 value
18635 \begin_inset Quotes erd
18636 \end_inset
18637
18638 >環境ラベル</labeltag>最初の段落。
18639 \end_layout
18640
18641 \begin_layout LyX-Code
18642 </itemtag>
18643 \end_layout
18644
18645 \begin_layout LyX-Code
18646 <itemtag>二つめの段落。</itemtag>
18647 \end_layout
18648
18649 \begin_layout LyX-Code
18650 </tag>
18651 \end_layout
18652
18653 \begin_layout Standard
18654 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18655 \end_layout
18656
18657 \begin_layout Standard
18658 リストに関しては、次のような形になります。
18659 \end_layout
18660
18661 \begin_layout LyX-Code
18662 <tag attr=
18663 \begin_inset Quotes erd
18664 \end_inset
18665
18666 value
18667 \begin_inset Quotes erd
18668 \end_inset
18669
18670 >
18671 \end_layout
18672
18673 \begin_layout LyX-Code
18674 <itemtag attr=
18675 \begin_inset Quotes erd
18676 \end_inset
18677
18678 value
18679 \begin_inset Quotes erd
18680 \end_inset
18681
18682 ><labeltag attr=
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686 value
18687 \begin_inset Quotes erd
18688 \end_inset
18689
18690 >リストのラベル</labeltag>最初の項目。</itemtag>
18691 \end_layout
18692
18693 \begin_layout LyX-Code
18694 <itemtag attr=
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698 value
18699 \begin_inset Quotes erd
18700 \end_inset
18701
18702 ><labeltag attr=
18703 \begin_inset Quotes erd
18704 \end_inset
18705
18706 value
18707 \begin_inset Quotes erd
18708 \end_inset
18709
18710 >リストのラベル</labeltag>二つめの項目。</itemtag>
18711 \end_layout
18712
18713 \begin_layout LyX-Code
18714 </tag>
18715 \end_layout
18716
18717 \begin_layout LyX-Code
18718
18719 \end_layout
18720
18721 \begin_layout LyX-Code
18722 <tag attr=
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726 value
18727 \begin_inset Quotes erd
18728 \end_inset
18729
18730 >
18731 \end_layout
18732
18733 \begin_layout LyX-Code
18734 <labeltag attr=
18735 \begin_inset Quotes erd
18736 \end_inset
18737
18738 value
18739 \begin_inset Quotes erd
18740 \end_inset
18741
18742 >リストのラベル</labeltag><itemtag attr=
18743 \begin_inset Quotes erd
18744 \end_inset
18745
18746 value
18747 \begin_inset Quotes erd
18748 \end_inset
18749
18750 >最初の項目。</itemtag>
18751 \end_layout
18752
18753 \begin_layout LyX-Code
18754 <labeltag attr=
18755 \begin_inset Quotes erd
18756 \end_inset
18757
18758 value
18759 \begin_inset Quotes erd
18760 \end_inset
18761
18762 >リストのラベル</labeltag><itemtag attr=
18763 \begin_inset Quotes erd
18764 \end_inset
18765
18766 value
18767 \begin_inset Quotes erd
18768 \end_inset
18769
18770 >二つめの項目</itemtag>
18771 \end_layout
18772
18773 \begin_layout LyX-Code
18774 </tag>
18775 \end_layout
18776
18777 \begin_layout Standard
18778 ここで
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783 labeltag
18784 \end_layout
18785
18786 \end_inset
18787
18788
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793 itemtag
18794 \end_layout
18795
18796 \end_inset
18797
18798 の順序が違っていることに注意してください。どちらの順序になるかは、
18799 \begin_inset Flex Code
18800 status collapsed
18801
18802 \begin_layout Plain Layout
18803 HTMLLabelFirst
18804 \end_layout
18805
18806 \end_inset
18807
18808 の設定に依存します。もし
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 HTMLLabelFirst
18814 \end_layout
18815
18816 \end_inset
18817
18818 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
18819 \end_layout
18820
18821 \begin_layout Standard
18822 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
18823 は適切な既定値を生成
18824 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
18825 でここにあるものと考えてください。
18826 \end_layout
18827
18828 \begin_layout Description
18829 \begin_inset Flex Code
18830 status collapsed
18831
18832 \begin_layout Plain Layout
18833 HTMLAttr
18834 \end_layout
18835
18836 \end_inset
18837
18838  [
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 文字列
18844 \end_layout
18845
18846 \end_inset
18847
18848 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 class=`mydiv'
18854 \end_layout
18855
18856 \end_inset
18857
18858 」のようなものです。既定においては、\SpecialChar LyX
18859 は「
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 class=`レイアウト名'
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 は、レイアウトの\SpecialChar LyX
18880 名であり、chapterのように小文字で記述します。
18881 \end_layout
18882
18883 \begin_layout Description
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 HTMLForceCSS
18889 \end_layout
18890
18891 \end_inset
18892
18893  [
18894 \begin_inset Flex Code
18895 status collapsed
18896
18897 \begin_layout Plain Layout
18898
18899 \emph on
18900 0
18901 \emph default
18902 ,1
18903 \end_layout
18904
18905 \end_inset
18906
18907 ] 
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912 HTMLStyle
18913 \end_layout
18914
18915 \end_inset
18916
18917 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
18918 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 1
18924 \end_layout
18925
18926 \end_inset
18927
18928 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 0
18934 \end_layout
18935
18936 \end_inset
18937
18938 です。
18939 \end_layout
18940
18941 \begin_layout Description
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946 HTMLItem
18947 \end_layout
18948
18949 \end_inset
18950
18951  [
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956 文字列
18957 \end_layout
18958
18959 \end_inset
18960
18961 ] 環境の段落に使用されるタグ。上記各例の
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 itemtag
18967 \end_layout
18968
18969 \end_inset
18970
18971 を置き換えます。既定値は
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 div
18977 \end_layout
18978
18979 \end_inset
18980
18981 です。
18982 \end_layout
18983
18984 \begin_layout Description
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 HTMLItemAttr
18990 \end_layout
18991
18992 \end_inset
18993
18994  [
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 文字列
19000 \end_layout
19001
19002 \end_inset
19003
19004 ] itemタグの属性。既定値は
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 class=`レイアウト名_item'
19010 \end_layout
19011
19012 \end_inset
19013
19014 です。ここには、様式情報は含まれては
19015 \emph on
19016 なりません
19017 \emph default
19018 。その目的のためには、
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 HTMLStyle
19024 \end_layout
19025
19026 \end_inset
19027
19028 を使用してください。
19029 \end_layout
19030
19031 \begin_layout Description
19032 \begin_inset Flex Code
19033 status collapsed
19034
19035 \begin_layout Plain Layout
19036 HTMLLabel
19037 \end_layout
19038
19039 \end_inset
19040
19041  [
19042 \begin_inset Flex Code
19043 status collapsed
19044
19045 \begin_layout Plain Layout
19046 文字列
19047 \end_layout
19048
19049 \end_inset
19050
19051 ] 段落と項目ラベルに使用されるタグ。上記各例の
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 labeltag
19057 \end_layout
19058
19059 \end_inset
19060
19061 を置き換えます。
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066 LabelType
19067 \end_layout
19068
19069 \end_inset
19070
19071
19072 \begin_inset Flex Code
19073 status collapsed
19074
19075 \begin_layout Plain Layout
19076 Top_Environment
19077 \end_layout
19078
19079 \end_inset
19080
19081
19082 \begin_inset Flex Code
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 Centered_Top_Environment
19087 \end_layout
19088
19089 \end_inset
19090
19091 の時は、既定値は
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 div
19097 \end_layout
19098
19099 \end_inset
19100
19101 ですが、それ以外の時の既定値は
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 span
19107 \end_layout
19108
19109 \end_inset
19110
19111 です。
19112 \end_layout
19113
19114 \begin_layout Description
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 HTMLLabelAttr
19120 \end_layout
19121
19122 \end_inset
19123
19124  [
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 文字列
19130 \end_layout
19131
19132 \end_inset
19133
19134 ] labelタグの属性。既定値は
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 class=`レイアウト名_label'
19140 \end_layout
19141
19142 \end_inset
19143
19144 です。ここには、様式情報は含まれては
19145 \emph on
19146 なりません
19147 \emph default
19148 。その目的のためには、
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 HTMLStyle
19154 \end_layout
19155
19156 \end_inset
19157
19158 を使用してください。
19159 \end_layout
19160
19161 \begin_layout Description
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 HTMLLabelFirst
19167 \end_layout
19168
19169 \end_inset
19170
19171  [
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176
19177 \emph on
19178 0
19179 \emph default
19180 ,1
19181 \end_layout
19182
19183 \end_inset
19184
19185 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19186 tion環境の中で、
19187 \begin_inset Flex Code
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191 `<dt>\SpecialChar ldots
19192 </dt><dd>\SpecialChar ldots
19193 </dd>
19194 \end_layout
19195
19196 \end_inset
19197
19198 という形を得るために使用されます。既定値は
19199 \begin_inset Flex Code
19200 status collapsed
19201
19202 \begin_layout Plain Layout
19203 0
19204 \end_layout
19205
19206 \end_inset
19207
19208 で、labelタグはitemタグの中に出力されます。
19209 \end_layout
19210
19211 \begin_layout Description
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216 HTMLPreamble
19217 \end_layout
19218
19219 \end_inset
19220
19221  この様式が使用されたときに、
19222 \begin_inset Flex Code
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226 <head>
19227 \end_layout
19228
19229 \end_inset
19230
19231 セクションに出力される情報。これは、たとえば、
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 onclick
19237 \end_layout
19238
19239 \end_inset
19240
19241 ハンドラを定義するために
19242 \begin_inset Flex Code
19243 status collapsed
19244
19245 \begin_layout Plain Layout
19246 <script>
19247 \end_layout
19248
19249 \end_inset
19250
19251 ブロックをインクルードするのに使用することができます。
19252 \end_layout
19253
19254 \begin_layout Description
19255 \begin_inset Flex Code
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 HTMLStyle
19260 \end_layout
19261
19262 \end_inset
19263
19264   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 <style>
19270 \end_layout
19271
19272 \end_inset
19273
19274 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 EndHTMLStyle
19280 \end_layout
19281
19282 \end_inset
19283
19284 で閉じなくてはなりません。
19285 \end_layout
19286
19287 \begin_layout Description
19288 \begin_inset Flex Code
19289 status collapsed
19290
19291 \begin_layout Plain Layout
19292 HTMLTag
19293 \end_layout
19294
19295 \end_inset
19296
19297  [
19298 \begin_inset Flex Code
19299 status collapsed
19300
19301 \begin_layout Plain Layout
19302 文字列
19303 \end_layout
19304
19305 \end_inset
19306
19307 ] 主幹ラベルに使用されるタグ。上記各例の
19308 \begin_inset Flex Code
19309 status collapsed
19310
19311 \begin_layout Plain Layout
19312 tag
19313 \end_layout
19314
19315 \end_inset
19316
19317 を置き換えます。既定値は
19318 \begin_inset Flex Code
19319 status collapsed
19320
19321 \begin_layout Plain Layout
19322 div
19323 \end_layout
19324
19325 \end_inset
19326
19327 です。
19328 \end_layout
19329
19330 \begin_layout Description
19331 \begin_inset Flex Code
19332 status collapsed
19333
19334 \begin_layout Plain Layout
19335 HTMLTitle
19336 \end_layout
19337
19338 \end_inset
19339
19340  [
19341 \begin_inset Flex Code
19342 status collapsed
19343
19344 \begin_layout Plain Layout
19345
19346 \emph on
19347 0
19348 \emph default
19349 ,1
19350 \end_layout
19351
19352 \end_inset
19353
19354 ] この様式が、XHTMLファイルの
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 <title>
19360 \end_layout
19361
19362 \end_inset
19363
19364 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 stdtitle.inc
19370 \end_layout
19371
19372 \end_inset
19373
19374 ファイルでは、
19375 \begin_inset Flex Code
19376 status collapsed
19377
19378 \begin_layout Plain Layout
19379 title
19380 \end_layout
19381
19382 \end_inset
19383
19384 環境のこの項目を真に設定しています。
19385 \end_layout
19386
19387 \begin_layout Subsection
19388 差込枠レイアウトXHTML
19389 \end_layout
19390
19391 \begin_layout Standard
19392 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19393 \begin_inset Foot
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19398 ん。
19399 \end_layout
19400
19401 \end_inset
19402
19403 。ここでも、\SpecialChar LyX
19404 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19405 \end_layout
19406
19407 \begin_layout Standard
19408 \SpecialChar LyX
19409 が差込枠用に出力するXHTMLは、以下の形を取ります。
19410 \end_layout
19411
19412 \begin_layout LyX-Code
19413 <tag attr=
19414 \begin_inset Quotes erd
19415 \end_inset
19416
19417 value
19418 \begin_inset Quotes erd
19419 \end_inset
19420
19421 >
19422 \end_layout
19423
19424 \begin_layout LyX-Code
19425 <labeltag>ラベル</labeltag>
19426 \end_layout
19427
19428 \begin_layout LyX-Code
19429 <innertag attr=
19430 \begin_inset Quotes erd
19431 \end_inset
19432
19433 value
19434 \begin_inset Quotes erd
19435 \end_inset
19436
19437 >差込枠の内容。</innertag>
19438 \end_layout
19439
19440 \begin_layout LyX-Code
19441 </tag>
19442 \end_layout
19443
19444 \begin_layout Standard
19445 差込枠が多段落を許可している—つまり
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450 MultiPar
19451 \end_layout
19452
19453 \end_inset
19454
19455 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19456 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19457 \begin_inset Flex Code
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461 span
19462 \end_layout
19463
19464 \end_inset
19465
19466 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19467 す。
19468 \end_layout
19469
19470 \begin_layout Description
19471 \begin_inset Flex Code
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475 HTMLAttr
19476 \end_layout
19477
19478 \end_inset
19479
19480  [
19481 \begin_inset Flex Code
19482 status collapsed
19483
19484 \begin_layout Plain Layout
19485 文字列
19486 \end_layout
19487
19488 \end_inset
19489
19490 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495 class=`myinset' onclick=`\SpecialChar ldots
19496 '
19497 \end_layout
19498
19499 \end_inset
19500
19501 」のようなものです。既定においては、\SpecialChar LyX
19502 は「
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 class=`差込枠名'
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 は、差込枠の\SpecialChar LyX
19523 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19524 \end_layout
19525
19526 \begin_layout Description
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 HTMLForceCSS
19532 \end_layout
19533
19534 \end_inset
19535
19536  [
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541
19542 \emph on
19543 0
19544 \emph default
19545 ,1
19546 \end_layout
19547
19548 \end_inset
19549
19550 ] 
19551 \begin_inset Flex Code
19552 status collapsed
19553
19554 \begin_layout Plain Layout
19555 HTMLStyle
19556 \end_layout
19557
19558 \end_inset
19559
19560 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19561 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 1
19567 \end_layout
19568
19569 \end_inset
19570
19571 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19572 \begin_inset Flex Code
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576 0
19577 \end_layout
19578
19579 \end_inset
19580
19581 です。
19582 \end_layout
19583
19584 \begin_layout Description
19585 \begin_inset Flex Code
19586 status collapsed
19587
19588 \begin_layout Plain Layout
19589 HTMLInnerAttr
19590 \end_layout
19591
19592 \end_inset
19593
19594  [
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 文字列
19600 \end_layout
19601
19602 \end_inset
19603
19604 ] innerタグの属性。既定値は
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 class=`差込枠名_inner'
19610 \end_layout
19611
19612 \end_inset
19613
19614 です。
19615 \end_layout
19616
19617 \begin_layout Description
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 HTMLInnerTag
19623 \end_layout
19624
19625 \end_inset
19626
19627  [
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 文字列
19633 \end_layout
19634
19635 \end_inset
19636
19637 ] innerタグです。上記各例の
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 innertag
19643 \end_layout
19644
19645 \end_inset
19646
19647 を置き換えます。既定値はなしです。
19648 \end_layout
19649
19650 \begin_layout Description
19651 \begin_inset Flex Code
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 HTMLIsBlock
19656 \end_layout
19657
19658 \end_inset
19659
19660  [
19661 \begin_inset Flex Code
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665 0,
19666 \emph on
19667 1
19668 \end_layout
19669
19670 \end_inset
19671
19672 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19673 \end_layout
19674
19675 \begin_layout Description
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 HTMLLabel
19681 \end_layout
19682
19683 \end_inset
19684
19685  [
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 文字列
19691 \end_layout
19692
19693 \end_inset
19694
19695 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚註用には
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700
19701 \backslash
19702 arabic{footnote}
19703 \end_layout
19704
19705 \end_inset
19706
19707 など。これは非必須であり、既定値はありません。
19708 \end_layout
19709
19710 \begin_layout Description
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715 HTMLPreamble
19716 \end_layout
19717
19718 \end_inset
19719
19720  この様式が使用されたときに、
19721 \begin_inset Flex Code
19722 status collapsed
19723
19724 \begin_layout Plain Layout
19725 <head>
19726 \end_layout
19727
19728 \end_inset
19729
19730 セクションに出力される情報。これは、たとえば、
19731 \begin_inset Flex Code
19732 status collapsed
19733
19734 \begin_layout Plain Layout
19735 onclick
19736 \end_layout
19737
19738 \end_inset
19739
19740 ハンドラを定義するために
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 <script>
19746 \end_layout
19747
19748 \end_inset
19749
19750 ブロックをインクルードするのに使用することができます。
19751 \end_layout
19752
19753 \begin_layout Description
19754 \begin_inset Flex Code
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758 HTMLStyle
19759 \end_layout
19760
19761 \end_inset
19762
19763   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 <style>
19769 \end_layout
19770
19771 \end_inset
19772
19773 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19774 \end_layout
19775
19776 \begin_layout Description
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 HTMLTag
19782 \end_layout
19783
19784 \end_inset
19785
19786  [
19787 \begin_inset Flex Code
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791 文字列
19792 \end_layout
19793
19794 \end_inset
19795
19796 ] 主幹ラベルに使用されるタグ。上記各例の
19797 \begin_inset Flex Code
19798 status collapsed
19799
19800 \begin_layout Plain Layout
19801 tag
19802 \end_layout
19803
19804 \end_inset
19805
19806 を置き換えます。既定値は
19807 \begin_inset Flex Code
19808 status collapsed
19809
19810 \begin_layout Plain Layout
19811 MultiPar
19812 \end_layout
19813
19814 \end_inset
19815
19816 の設定に依存し、
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 MultiPar
19822 \end_layout
19823
19824 \end_inset
19825
19826 が真ならば
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 div
19832 \end_layout
19833
19834 \end_inset
19835
19836 、偽ならば
19837 \begin_inset Flex Code
19838 status collapsed
19839
19840 \begin_layout Plain Layout
19841 span
19842 \end_layout
19843
19844 \end_inset
19845
19846 です。
19847 \end_layout
19848
19849 \begin_layout Subsection
19850 フロートXHTML
19851 \end_layout
19852
19853 \begin_layout Standard
19854 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
19855 \end_layout
19856
19857 \begin_layout LyX-Code
19858 <tag attr=
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862 value
19863 \begin_inset Quotes erd
19864 \end_inset
19865
19866 >
19867 \end_layout
19868
19869 \begin_layout LyX-Code
19870 フロートの内容。
19871 \end_layout
19872
19873 \begin_layout LyX-Code
19874 </tag>
19875 \end_layout
19876
19877 \begin_layout Standard
19878 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
19879 きます。
19880 \end_layout
19881
19882 \begin_layout Description
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 HTMLAttr
19888 \end_layout
19889
19890 \end_inset
19891
19892  [
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897 文字列
19898 \end_layout
19899
19900 \end_inset
19901
19902 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19903 \begin_inset Flex Code
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907 class=`myfloat' onclick=`\SpecialChar ldots
19908 '
19909 \end_layout
19910
19911 \end_inset
19912
19913 」のようなものです。既定においては、\SpecialChar LyX
19914 は「
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 class=`float フロート-フロート型'
19920 \end_layout
19921
19922 \end_inset
19923
19924 」と出力します。ここで
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 フロート型
19930 \end_layout
19931
19932 \end_inset
19933
19934 は、フロート宣言で定義された(
19935 \begin_inset CommandInset ref
19936 LatexCommand ref
19937 reference "subsec:フロート"
19938
19939 \end_inset
19940
19941 参照)、この型のフロートの\SpecialChar LyX
19942 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
19943 \end_layout
19944
19945 \begin_layout Description
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 HTMLStyle
19951 \end_layout
19952
19953 \end_inset
19954
19955   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19956 \begin_inset Flex Code
19957 status collapsed
19958
19959 \begin_layout Plain Layout
19960 <style>
19961 \end_layout
19962
19963 \end_inset
19964
19965 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19966 \end_layout
19967
19968 \begin_layout Description
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 HTMLTag
19974 \end_layout
19975
19976 \end_inset
19977
19978  [
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 文字列
19984 \end_layout
19985
19986 \end_inset
19987
19988 ] このフロートに使用されるタグ。上記各例の
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 tag
19994 \end_layout
19995
19996 \end_inset
19997
19998 を置き換えます。既定値は
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 div
20004 \end_layout
20005
20006 \end_inset
20007
20008 であり、ほとんどの場合変更する必要はありません。
20009 \end_layout
20010
20011 \begin_layout Subsection
20012 書誌情報の整形
20013 \end_layout
20014
20015 \begin_layout Standard
20016 書誌情報は、
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 CiteFormat
20022 \end_layout
20023
20024 \end_inset
20025
20026 ブロックを使用して整形することができます。詳細については、
20027 \begin_inset CommandInset ref
20028 LatexCommand ref
20029 reference "subsec:引用書式指定"
20030
20031 \end_inset
20032
20033 を参照してください。
20034 \end_layout
20035
20036 \begin_layout Subsection
20037 \SpecialChar LyX
20038 が生成したCSS
20039 \end_layout
20040
20041 \begin_layout Standard
20042 \SpecialChar LyX
20043 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20044
20045 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20046 \end_layout
20047
20048 \begin_layout Standard
20049 \SpecialChar LyX
20050 は、現在のところ、
20051 \begin_inset Flex Code
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055 Font
20056 \end_layout
20057
20058 \end_inset
20059
20060 宣言で指定されている
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065 Family
20066 \end_layout
20067
20068 \end_inset
20069
20070
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 Series
20076 \end_layout
20077
20078 \end_inset
20079
20080
20081 \begin_inset Flex Code
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085 Shape
20086 \end_layout
20087
20088 \end_inset
20089
20090
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 Size
20096 \end_layout
20097
20098 \end_inset
20099
20100 を利用して、フォント情報についてのみCSSを自動生成します(
20101 \begin_inset CommandInset ref
20102 LatexCommand ref
20103 reference "subsec:フォント指定"
20104
20105 \end_inset
20106
20107 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 Family Sans
20113 \end_layout
20114
20115 \end_inset
20116
20117 」は「
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 font-family: sans-serif
20123 \end_layout
20124
20125 \end_inset
20126
20127 」になります。\SpecialChar LyX
20128 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20129 \begin_inset Flex URL
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133
20134 src/FontInfo.cpp
20135 \end_layout
20136
20137 \end_inset
20138
20139
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 getSizeCSS()
20145 \end_layout
20146
20147 \end_inset
20148
20149 関数をご覧ください。
20150 \end_layout
20151
20152 \begin_layout Chapter
20153 外部素材を取り込む
20154 \begin_inset CommandInset label
20155 LatexCommand label
20156 name "chap:外部素材を取り込む"
20157
20158 \end_inset
20159
20160
20161 \end_layout
20162
20163 \begin_layout Standard
20164 \begin_inset Box Shadowbox
20165 position "t"
20166 hor_pos "c"
20167 has_inner_box 1
20168 inner_pos "t"
20169 use_parbox 0
20170 use_makebox 0
20171 width "100col%"
20172 special "none"
20173 height "1in"
20174 height_special "totalheight"
20175 thickness "0.4pt"
20176 separation "3pt"
20177 shadowsize "4pt"
20178 framecolor "black"
20179 backgroundcolor "none"
20180 status open
20181
20182 \begin_layout Plain Layout
20183 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20184 \end_layout
20185
20186 \end_inset
20187
20188
20189 \end_layout
20190
20191 \begin_layout Standard
20192 \SpecialChar LyX
20193 外部のソースから素材を使用する方法は、取扱説明書『
20194 \emph on
20195 埋込オブジェクト篇
20196 \emph default
20197 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20198 \end_layout
20199
20200 \begin_layout Section
20201 どのように機能するのか
20202 \end_layout
20203
20204 \begin_layout Standard
20205 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20206 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20207 は、Xfigの図や、様々
20208 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20209 \begin_inset Flex MenuItem
20210 status collapsed
20211
20212 \begin_layout Plain Layout
20213 挿入\SpecialChar menuseparator
20214 ファイル\SpecialChar menuseparator
20215 外部素材
20216 \end_layout
20217
20218 \end_inset
20219
20220 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20221 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20222 の後の版に取り込むことができるようにしてくださることを希望します。
20223 \end_layout
20224
20225 \begin_layout Standard
20226 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20227 いることです。たとえば、
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 Xfig
20233 \end_layout
20234
20235 \end_inset
20236
20237 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 .fig
20243 \end_layout
20244
20245 \end_inset
20246
20247 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20248 \begin_inset Flex Code
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252 fig
20253 \end_layout
20254
20255 \end_inset
20256
20257 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20258 ファイルにそのままインクルードできるように、
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 transfig
20264 \end_layout
20265
20266 \end_inset
20267
20268 を呼び出してPostScriptファイルを生成します。この場合には、
20269 \begin_inset Flex Code
20270 status collapsed
20271
20272 \begin_layout Plain Layout
20273 .fig
20274 \end_layout
20275
20276 \end_inset
20277
20278 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20279 \end_layout
20280
20281 \begin_layout Standard
20282 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20283 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20284 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20285 の外部素材マネジメントは
20286 、\SpecialChar LyX
20287 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20288 \end_layout
20289
20290 \begin_layout Standard
20291 \SpecialChar LyX
20292 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20293 の場合には、\SpecialChar LyX
20294 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20295 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20296 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20297 できるようになるのです。
20298 \end_layout
20299
20300 \begin_layout Section
20301 外用ひな型設定ファイル
20302 \end_layout
20303
20304 \begin_layout Standard
20305 \SpecialChar LyX
20306 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20307 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20308 \begin_inset CommandInset ref
20309 LatexCommand ref
20310 reference "sec:セキュリティに関する論点"
20311
20312 \end_inset
20313
20314 のセキュリティに関する議論を読んでおいてください。
20315 \end_layout
20316
20317 \begin_layout Standard
20318 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20319 \end_layout
20320
20321 \begin_layout Standard
20322 外用ひな型は、
20323 \begin_inset Flex Code
20324 status collapsed
20325
20326 \begin_layout Plain Layout
20327 LyXDir/lib/external_templates
20328 \end_layout
20329
20330 \end_inset
20331
20332 ファイルで定義されています。自分用の版を
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 UserDir/external_templates
20338 \end_layout
20339
20340 \end_inset
20341
20342 に置くこともできます。
20343 \end_layout
20344
20345 \begin_layout Standard
20346 典型的なひな型は以下のようになります。
20347 \end_layout
20348
20349 \begin_layout LyX-Code
20350 Template XFig
20351 \end_layout
20352
20353 \begin_layout LyX-Code
20354 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20355 \end_layout
20356
20357 \begin_layout LyX-Code
20358 HelpText
20359 \end_layout
20360
20361 \begin_layout LyX-Code
20362 An XFig figure.
20363 \end_layout
20364
20365 \begin_layout LyX-Code
20366 HelpTextEnd
20367 \end_layout
20368
20369 \begin_layout LyX-Code
20370 InputFormat fig
20371 \end_layout
20372
20373 \begin_layout LyX-Code
20374 FileFilter "*.fig"
20375 \end_layout
20376
20377 \begin_layout LyX-Code
20378 AutomaticProduction true
20379 \end_layout
20380
20381 \begin_layout LyX-Code
20382 Transform Rotate
20383 \end_layout
20384
20385 \begin_layout LyX-Code
20386 Transform Resize
20387 \end_layout
20388
20389 \begin_layout LyX-Code
20390 Format LaTeX
20391 \end_layout
20392
20393 \begin_layout LyX-Code
20394 TransformCommand Rotate RotationLatexCommand
20395 \end_layout
20396
20397 \begin_layout LyX-Code
20398 TransformCommand Resize ResizeLatexCommand
20399 \end_layout
20400
20401 \begin_layout LyX-Code
20402 Product "$$RotateFront$$ResizeFront
20403 \end_layout
20404
20405 \begin_layout LyX-Code
20406          
20407 \backslash
20408
20409 \backslash
20410 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20411 \end_layout
20412
20413 \begin_layout LyX-Code
20414          $$ResizeBack$$RotateBack"
20415 \end_layout
20416
20417 \begin_layout LyX-Code
20418 UpdateFormat pstex
20419 \end_layout
20420
20421 \begin_layout LyX-Code
20422 UpdateResult "$$AbsPath$$Basename.pstex_t"
20423 \end_layout
20424
20425 \begin_layout LyX-Code
20426 Requirement "graphicx"
20427 \end_layout
20428
20429 \begin_layout LyX-Code
20430 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20431 \end_layout
20432
20433 \begin_layout LyX-Code
20434 ReferencedFile latex "$$AbsPath$$Basename.eps"
20435 \end_layout
20436
20437 \begin_layout LyX-Code
20438 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20439 \end_layout
20440
20441 \begin_layout LyX-Code
20442 FormatEnd
20443 \end_layout
20444
20445 \begin_layout LyX-Code
20446 Format PDFLaTeX
20447 \end_layout
20448
20449 \begin_layout LyX-Code
20450 TransformCommand Rotate RotationLatexCommand
20451 \end_layout
20452
20453 \begin_layout LyX-Code
20454 TransformCommand Resize ResizeLatexCommand
20455 \end_layout
20456
20457 \begin_layout LyX-Code
20458 Product "$$RotateFront$$ResizeFront
20459 \end_layout
20460
20461 \begin_layout LyX-Code
20462          
20463 \backslash
20464
20465 \backslash
20466 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20467 \end_layout
20468
20469 \begin_layout LyX-Code
20470          $$ResizeBack$$RotateBack"
20471 \end_layout
20472
20473 \begin_layout LyX-Code
20474 UpdateFormat pdftex
20475 \end_layout
20476
20477 \begin_layout LyX-Code
20478 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20479 \end_layout
20480
20481 \begin_layout LyX-Code
20482 Requirement "graphicx"
20483 \end_layout
20484
20485 \begin_layout LyX-Code
20486 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20487 \end_layout
20488
20489 \begin_layout LyX-Code
20490 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20491 \end_layout
20492
20493 \begin_layout LyX-Code
20494 FormatEnd
20495 \end_layout
20496
20497 \begin_layout LyX-Code
20498 Format Ascii
20499 \end_layout
20500
20501 \begin_layout LyX-Code
20502 Product "$$Contents(
20503 \backslash
20504 "$$AbsPath$$Basename.asc
20505 \backslash
20506 ")"
20507 \end_layout
20508
20509 \begin_layout LyX-Code
20510 UpdateFormat asciixfig
20511 \end_layout
20512
20513 \begin_layout LyX-Code
20514 UpdateResult "$$AbsPath$$Basename.asc"
20515 \end_layout
20516
20517 \begin_layout LyX-Code
20518 FormatEnd
20519 \end_layout
20520
20521 \begin_layout LyX-Code
20522 Format DocBook
20523 \end_layout
20524
20525 \begin_layout LyX-Code
20526 Product "<graphic fileref=
20527 \backslash
20528 "$$AbsOrRelPathMaster$$Basename.eps
20529 \backslash
20530 ">
20531 \end_layout
20532
20533 \begin_layout LyX-Code
20534          </graphic>"
20535 \end_layout
20536
20537 \begin_layout LyX-Code
20538 UpdateFormat eps
20539 \end_layout
20540
20541 \begin_layout LyX-Code
20542 UpdateResult "$$AbsPath$$Basename.eps"
20543 \end_layout
20544
20545 \begin_layout LyX-Code
20546 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20547 \end_layout
20548
20549 \begin_layout LyX-Code
20550 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20551 \end_layout
20552
20553 \begin_layout LyX-Code
20554 FormatEnd
20555 \end_layout
20556
20557 \begin_layout LyX-Code
20558 Product "[XFig: $$FName]"
20559 \end_layout
20560
20561 \begin_layout LyX-Code
20562 FormatEnd
20563 \end_layout
20564
20565 \begin_layout LyX-Code
20566 TemplateEnd
20567 \end_layout
20568
20569 \begin_layout Standard
20570 ご覧の通り、ひな型は
20571 \begin_inset Flex Code
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575 Template
20576 \end_layout
20577
20578 \end_inset
20579
20580  \SpecialChar ldots
20581  
20582 \begin_inset Flex Code
20583 status collapsed
20584
20585 \begin_layout Plain Layout
20586 TemplateEnd
20587 \end_layout
20588
20589 \end_inset
20590
20591 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20592 \begin_inset Flex Code
20593 status collapsed
20594
20595 \begin_layout Plain Layout
20596 Format
20597 \end_layout
20598
20599 \end_inset
20600
20601  \SpecialChar ldots
20602  
20603 \begin_inset Flex Code
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 FormatEnd
20608 \end_layout
20609
20610 \end_inset
20611
20612 部があります。
20613 \end_layout
20614
20615 \begin_layout Subsection
20616 ひな型のヘッダ
20617 \end_layout
20618
20619 \begin_layout Description
20620 \begin_inset Flex Code
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 AutomaticProduction
20625 \begin_inset space ~
20626 \end_inset
20627
20628 true|false
20629 \end_layout
20630
20631 \end_inset
20632
20633  このひな型で扱うファイルを\SpecialChar LyX
20634 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20635 \end_layout
20636
20637 \begin_layout Description
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 FileFilter
20643 \begin_inset space ~
20644 \end_inset
20645
20646 <パターン>
20647 \end_layout
20648
20649 \end_inset
20650
20651  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20652 \begin_inset Flex Code
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656 .obj
20657 \end_layout
20658
20659 \end_inset
20660
20661
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 .tgo
20667 \end_layout
20668
20669 \end_inset
20670
20671 があります)、「
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 *.{obj,tgo}
20677 \end_layout
20678
20679 \end_inset
20680
20681 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
20682 \end_layout
20683
20684 \begin_layout Description
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 GuiName
20690 \begin_inset space ~
20691 \end_inset
20692
20693 <GUI名>
20694 \end_layout
20695
20696 \end_inset
20697
20698  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
20699 \end_layout
20700
20701 \begin_layout Description
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706 HelpText
20707 \begin_inset space ~
20708 \end_inset
20709
20710 <文章>
20711 \begin_inset space ~
20712 \end_inset
20713
20714 HelpTextEnd
20715 \end_layout
20716
20717 \end_inset
20718
20719  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
20720 ず現れなくてはなりません。
20721 \end_layout
20722
20723 \begin_layout Description
20724 \begin_inset Flex Code
20725 status collapsed
20726
20727 \begin_layout Plain Layout
20728 InputFormat
20729 \begin_inset space ~
20730 \end_inset
20731
20732 <書式>
20733 \end_layout
20734
20735 \end_inset
20736
20737  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
20738 が知っている書式名でなくてはなりません(
20739 \begin_inset CommandInset ref
20740 LatexCommand ref
20741 reference "sec:ファイル形式"
20742
20743 \end_inset
20744
20745 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 *
20751 \end_layout
20752
20753 \end_inset
20754
20755 」を使用してください。この場合、\SpecialChar LyX
20756 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
20757 \end_layout
20758
20759 \begin_layout Description
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 Template
20765 \begin_inset space ~
20766 \end_inset
20767
20768 <ID>
20769 \end_layout
20770
20771 \end_inset
20772
20773  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
20774 \end_layout
20775
20776 \begin_layout Description
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 Transform
20782 \begin_inset space ~
20783 \end_inset
20784
20785 Rotate|Resize|Clip|Extra
20786 \end_layout
20787
20788 \end_inset
20789
20790  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
20791 ログ中の対応するタブを使用可能にします。
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 Transform
20797 \end_layout
20798
20799 \end_inset
20800
20801 コマンド一つずつに応じて、
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 Format
20807 \end_layout
20808
20809 \end_inset
20810
20811 部に、対応する
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 TransformCommand
20817 \end_layout
20818
20819 \end_inset
20820
20821 コマンドか
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 TransformOption
20827 \end_layout
20828
20829 \end_inset
20830
20831 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
20832 \end_layout
20833
20834 \begin_layout Subsection
20835 \begin_inset Flex Code
20836 status collapsed
20837
20838 \begin_layout Plain Layout
20839 Format
20840 \end_layout
20841
20842 \end_inset
20843
20844
20845 \end_layout
20846
20847 \begin_layout Description
20848 \begin_inset Flex Code
20849 status collapsed
20850
20851 \begin_layout Plain Layout
20852 Format
20853 \begin_inset space ~
20854 \end_inset
20855
20856 LaTeX|PDFLaTeX|PlainText|DocBook
20857 \end_layout
20858
20859 \end_inset
20860
20861  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866 Format
20867 \end_layout
20868
20869 \end_inset
20870
20871 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
20872 ようになります。
20873 \end_layout
20874
20875 \begin_layout Description
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 Option
20881 \begin_inset space ~
20882 \end_inset
20883
20884 <名称>
20885 \begin_inset space ~
20886 \end_inset
20887
20888 <値>
20889 \end_layout
20890
20891 \end_inset
20892
20893  このコマンドは、
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 Product
20899 \end_layout
20900
20901 \end_inset
20902
20903 での代入に使うマクロ
20904 \begin_inset Flex Code
20905 status collapsed
20906
20907 \begin_layout Plain Layout
20908 $$<名称>
20909 \end_layout
20910
20911 \end_inset
20912
20913 を新たに定義します。
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 <値>
20919 \end_layout
20920
20921 \end_inset
20922
20923 自体にも代入マクロを使うことができます。
20924 \begin_inset Flex Code
20925 status collapsed
20926
20927 \begin_layout Plain Layout
20928 Product
20929 \end_layout
20930
20931 \end_inset
20932
20933
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 <値>
20939 \end_layout
20940
20941 \end_inset
20942
20943 を直接使用するよりも優れた点は、
20944 \begin_inset Flex Code
20945 status collapsed
20946
20947 \begin_layout Plain Layout
20948 $$<名称>
20949 \end_layout
20950
20951 \end_inset
20952
20953 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
20954 \end_layout
20955
20956 \begin_layout Description
20957 \begin_inset Flex Code
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961 Product
20962 \begin_inset space ~
20963 \end_inset
20964
20965 <文>
20966 \end_layout
20967
20968 \end_inset
20969
20970  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
20971
20972 \end_layout
20973
20974 \begin_layout Description
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979 Preamble
20980 \begin_inset space ~
20981 \end_inset
20982
20983 <名称>
20984 \end_layout
20985
20986 \end_inset
20987
20988  このコマンドは、\SpecialChar LaTeX
20989 プリアンブルに入れるプリアンブル片を指定します。これは
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 PreambleDef
20995 \end_layout
20996
20997 \end_inset
20998
20999  \SpecialChar ldots
21000  
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 PreambleDefEnd
21006 \end_layout
21007
21008 \end_inset
21009
21010 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21011 \end_layout
21012
21013 \begin_layout Description
21014 \begin_inset Flex Code
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 ReferencedFile
21019 \begin_inset space ~
21020 \end_inset
21021
21022 <書式>
21023 \begin_inset space ~
21024 \end_inset
21025
21026 <ファイル名>
21027 \end_layout
21028
21029 \end_inset
21030
21031  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21032 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21033 \end_layout
21034
21035 \begin_layout Description
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 Requirement
21041 \begin_inset space ~
21042 \end_inset
21043
21044 <package>
21045 \end_layout
21046
21047 \end_inset
21048
21049  必要とされる\SpecialChar LaTeX
21050 パッケージ名。パッケージは、\SpecialChar LaTeX
21051 プリアンブル中で
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056
21057 \backslash
21058 usepackage{}
21059 \end_layout
21060
21061 \end_inset
21062
21063 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21064 \end_layout
21065
21066 \begin_layout Description
21067 \begin_inset Flex Code
21068 status collapsed
21069
21070 \begin_layout Plain Layout
21071 TransformCommand
21072 \begin_inset space ~
21073 \end_inset
21074
21075 Rotate
21076 \begin_inset space ~
21077 \end_inset
21078
21079 RotationLatexCommand
21080 \end_layout
21081
21082 \end_inset
21083
21084  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21085 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21086 \end_layout
21087
21088 \begin_layout Description
21089 \begin_inset Flex Code
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 TransformCommand
21094 \begin_inset space ~
21095 \end_inset
21096
21097 Resize
21098 \begin_inset space ~
21099 \end_inset
21100
21101 ResizeLatexCommand
21102 \end_layout
21103
21104 \end_inset
21105
21106  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21107 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21108 \end_layout
21109
21110 \begin_layout Description
21111 \begin_inset Flex Code
21112 status collapsed
21113
21114 \begin_layout Plain Layout
21115 TransformOption
21116 \begin_inset space ~
21117 \end_inset
21118
21119 Rotate
21120 \begin_inset space ~
21121 \end_inset
21122
21123 RotationLatexOption
21124 \end_layout
21125
21126 \end_inset
21127
21128  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21129 \end_layout
21130
21131 \begin_layout Description
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 TransformOption
21137 \begin_inset space ~
21138 \end_inset
21139
21140 Resize
21141 \begin_inset space ~
21142 \end_inset
21143
21144 ResizeLatexOption
21145 \end_layout
21146
21147 \end_inset
21148
21149  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21150 \end_layout
21151
21152 \begin_layout Description
21153 \begin_inset Flex Code
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157 TransformOption
21158 \begin_inset space ~
21159 \end_inset
21160
21161 Clip
21162 \begin_inset space ~
21163 \end_inset
21164
21165 ClipLatexOption
21166 \end_layout
21167
21168 \end_inset
21169
21170  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21171 \end_layout
21172
21173 \begin_layout Description
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 TransformOption
21179 \begin_inset space ~
21180 \end_inset
21181
21182 Extra
21183 \begin_inset space ~
21184 \end_inset
21185
21186 ExtraLatexOption
21187 \end_layout
21188
21189 \end_inset
21190
21191  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21192 \end_layout
21193
21194 \begin_layout Description
21195 \begin_inset Flex Code
21196 status collapsed
21197
21198 \begin_layout Plain Layout
21199 UpdateFormat
21200 \begin_inset space ~
21201 \end_inset
21202
21203 <書式>
21204 \end_layout
21205
21206 \end_inset
21207
21208  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21209 が知っている書式名でなくてはなりません(
21210 \begin_inset Flex MenuItem
21211 status collapsed
21212
21213 \begin_layout Plain Layout
21214 ツール\SpecialChar menuseparator
21215 設定\SpecialChar menuseparator
21216 ファイル処理\SpecialChar menuseparator
21217 ファイル書式
21218 \end_layout
21219
21220 \end_inset
21221
21222 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21223 \begin_inset Flex Code
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 pdf6
21228 \end_layout
21229
21230 \end_inset
21231
21232 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21233 \end_layout
21234
21235 \begin_layout Description
21236 \begin_inset Flex Code
21237 status collapsed
21238
21239 \begin_layout Plain Layout
21240 UpdateResult
21241 \begin_inset space ~
21242 \end_inset
21243
21244 <ファイル名>
21245 \end_layout
21246
21247 \end_inset
21248
21249  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21250 \end_layout
21251
21252 \begin_layout Subsection
21253 プリアンブルの定義
21254 \end_layout
21255
21256 \begin_layout Standard
21257 外用ひな型設定ファイルには、
21258 \begin_inset Flex Code
21259 status collapsed
21260
21261 \begin_layout Plain Layout
21262 PreambleDef
21263 \end_layout
21264
21265 \end_inset
21266
21267  \SpecialChar ldots
21268  
21269 \begin_inset Flex Code
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273 PreambleDefEnd
21274 \end_layout
21275
21276 \end_inset
21277
21278 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 Format
21284 \end_layout
21285
21286 \end_inset
21287
21288 部で使用することができます。
21289 \end_layout
21290
21291 \begin_layout Section
21292 代入機構
21293 \end_layout
21294
21295 \begin_layout Standard
21296 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21297 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21298 \end_layout
21299
21300 \begin_layout Standard
21301 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21302 \end_layout
21303
21304 \begin_layout Standard
21305 使用できるマクロは以下の通りです。
21306 \end_layout
21307
21308 \begin_layout Description
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 $$AbsOrRelPathMaster
21314 \end_layout
21315
21316 \end_inset
21317
21318  \SpecialChar LyX
21319 親文書への絶対ファイルパスないしは相対ファイルパス
21320 \end_layout
21321
21322 \begin_layout Description
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 $$AbsOrRelPathParent
21328 \end_layout
21329
21330 \end_inset
21331
21332  \SpecialChar LyX
21333 文書への絶対ファイルパスないしは相対ファイルパス
21334 \end_layout
21335
21336 \begin_layout Description
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341 $$AbsPath
21342 \end_layout
21343
21344 \end_inset
21345
21346  絶対ファイルパス
21347 \end_layout
21348
21349 \begin_layout Description
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354 $$Basename
21355 \end_layout
21356
21357 \end_inset
21358
21359  パスおよび拡張子を除いたファイル名
21360 \end_layout
21361
21362 \begin_layout Description
21363 \begin_inset Flex Code
21364 status collapsed
21365
21366 \begin_layout Plain Layout
21367 $$Contents(
21368 \begin_inset Quotes eld
21369 \end_inset
21370
21371 filename.ext
21372 \begin_inset Quotes erd
21373 \end_inset
21374
21375 )
21376 \end_layout
21377
21378 \end_inset
21379
21380  このマクロは、
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 filename.ext
21386 \end_layout
21387
21388 \end_inset
21389
21390 と云う名のファイルの中身を展開します。
21391 \end_layout
21392
21393 \begin_layout Description
21394 \begin_inset Flex Code
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398 $$Extension
21399 \end_layout
21400
21401 \end_inset
21402
21403  ファイル拡張子(点を含む)
21404 \end_layout
21405
21406 \begin_layout Description
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 $$pngOrjpg
21412 \end_layout
21413
21414 \end_inset
21415
21416  これは、ファイルがJPEG形式の場合は、文字列「jpg」となり、それ以外では文字列「png」となります。これは、PNG形式とJPEG形式の両方をサポートする出
21417 力形式に対して、不必要な変換を行うことを避けるのに役立ちます。事前設定されているラスター画像ひな形は、pdf\SpecialChar TeX
21418 出力形式に対してこのマクロを使用します。
21419 \end_layout
21420
21421 \begin_layout Description
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426 $$FName
21427 \end_layout
21428
21429 \end_inset
21430
21431  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21432 文書への絶対パスでも良いですし、相対パスでも構いません。
21433 \end_layout
21434
21435 \begin_layout Description
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 $$FPath
21441 \end_layout
21442
21443 \end_inset
21444
21445  
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450 $$FName
21451 \end_layout
21452
21453 \end_inset
21454
21455 のパス部分(\SpecialChar LyX
21456 文書への絶対パス名か相対パス名)
21457 \end_layout
21458
21459 \begin_layout Description
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 $$RelPathMaster
21465 \end_layout
21466
21467 \end_inset
21468
21469  \SpecialChar LyX
21470 親文書への相対ファイルパス
21471 \end_layout
21472
21473 \begin_layout Description
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 $$RelPathParent
21479 \end_layout
21480
21481 \end_inset
21482
21483  \SpecialChar LyX
21484 文書への相対ファイルパス
21485 \end_layout
21486
21487 \begin_layout Description
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 $$Sysdir
21493 \end_layout
21494
21495 \end_inset
21496
21497  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21498 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21499 \end_layout
21500
21501 \begin_layout Description
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 $$Tempname
21507 \end_layout
21508
21509 \end_inset
21510
21511  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21512 \end_layout
21513
21514 \begin_layout Standard
21515 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 $$AbsPath$$Basename$$Extension
21521 \end_layout
21522
21523 \end_inset
21524
21525 のようにして作ることができます。
21526 \end_layout
21527
21528 \begin_layout Standard
21529 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 Transform
21535 \end_layout
21536
21537 \end_inset
21538
21539 コマンドと
21540 \begin_inset Flex Code
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 TransformCommand
21545 \end_layout
21546
21547 \end_inset
21548
21549 コマンドが有効にされている場合、
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 Product
21555 \end_layout
21556
21557 \end_inset
21558
21559 コマンドは、これらに加えて以下の代入もサポートします。
21560 \end_layout
21561
21562 \begin_layout Description
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567 $$ResizeFront
21568 \end_layout
21569
21570 \end_inset
21571
21572  伸縮コマンドの前置部。
21573 \end_layout
21574
21575 \begin_layout Description
21576 \begin_inset Flex Code
21577 status collapsed
21578
21579 \begin_layout Plain Layout
21580 $$ResizeBack
21581 \end_layout
21582
21583 \end_inset
21584
21585  伸縮コマンドの後置部。
21586 \end_layout
21587
21588 \begin_layout Description
21589 \begin_inset Flex Code
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593 $$RotateFront
21594 \end_layout
21595
21596 \end_inset
21597
21598  回転コマンドの前置部。
21599 \end_layout
21600
21601 \begin_layout Description
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 $$RotateBack
21607 \end_layout
21608
21609 \end_inset
21610
21611  回転コマンドの後置部。
21612 \end_layout
21613
21614 \begin_layout Standard
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 Option
21620 \end_layout
21621
21622 \end_inset
21623
21624 コマンドの値に入れる文字列では、
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 Transform
21630 \end_layout
21631
21632 \end_inset
21633
21634 コマンドと
21635 \begin_inset Flex Code
21636 status collapsed
21637
21638 \begin_layout Plain Layout
21639 TransformOption
21640 \end_layout
21641
21642 \end_inset
21643
21644 コマンドが有効にされていれば、以下の代入もサポートされます。
21645 \end_layout
21646
21647 \begin_layout Description
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 $$Clip
21653 \end_layout
21654
21655 \end_inset
21656
21657  切り抜きオプション。
21658 \end_layout
21659
21660 \begin_layout Description
21661 \begin_inset Flex Code
21662 status collapsed
21663
21664 \begin_layout Plain Layout
21665 $$Extra
21666 \end_layout
21667
21668 \end_inset
21669
21670  追加オプション。
21671 \end_layout
21672
21673 \begin_layout Description
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 $$Resize
21679 \end_layout
21680
21681 \end_inset
21682
21683  伸縮オプション。
21684 \end_layout
21685
21686 \begin_layout Description
21687 \begin_inset Flex Code
21688 status collapsed
21689
21690 \begin_layout Plain Layout
21691 $$Rotate
21692 \end_layout
21693
21694 \end_inset
21695
21696  回転オプション。
21697 \end_layout
21698
21699 \begin_layout Standard
21700 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
21701 \end_layout
21702
21703 \begin_layout Enumerate
21704 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
21705 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
21706 \end_layout
21707
21708 \begin_layout Enumerate
21709 \SpecialChar LaTeX
21710 は、相対ファイル名に関して、\SpecialChar LyX
21711 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
21712 にとって相対ファイル名とは、常にこのファイル名が書か
21713 れている文書に対して相対的なものになります。\SpecialChar LaTeX
21714 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
21715 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
21716 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
21717 を選びさえすれば、これは\SpecialChar LyX
21718 が自動的に行ってくれます。
21719 \end_layout
21720
21721 \begin_layout Standard
21722 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
21723 \end_layout
21724
21725 \begin_layout Itemize
21726 絶対パスが必要とされるときには
21727 \begin_inset Flex Code
21728 status collapsed
21729
21730 \begin_layout Plain Layout
21731 $$AbsPath
21732 \end_layout
21733
21734 \end_inset
21735
21736 を使う。
21737 \end_layout
21738
21739 \begin_layout Itemize
21740 代入された文字列が、\SpecialChar LaTeX
21741 インプットの一種である場合には、
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 $$AbsOrRelPathMaster
21747 \end_layout
21748
21749 \end_inset
21750
21751 を使う。
21752 \end_layout
21753
21754 \begin_layout Itemize
21755 それ以外ならば、ユーザの選択を尊重するために
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 $$AbsOrRelPathParent
21761 \end_layout
21762
21763 \end_inset
21764
21765 を使う。
21766 \end_layout
21767
21768 \begin_layout Standard
21769 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21775 \end_layout
21776
21777 \end_inset
21778
21779 というコマンドがあります。この場合、
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784 .pstex_t
21785 \end_layout
21786
21787 \end_inset
21788
21789 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
21790 \end_layout
21791
21792 \begin_layout Section
21793 セキュリティに関する論点
21794 \begin_inset CommandInset label
21795 LatexCommand label
21796 name "sec:セキュリティに関する論点"
21797
21798 \end_inset
21799
21800
21801 \end_layout
21802
21803 \begin_layout Standard
21804 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
21805 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
21806 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
21807 \end_layout
21808
21809 \begin_layout Standard
21810 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
21811 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
21812 せん。これは、外部プログラムが
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 system
21818 \end_layout
21819
21820 \end_inset
21821
21822 システムコールではなく、
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 execvp
21828 \end_layout
21829
21830 \end_inset
21831
21832 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
21833 \end_layout
21834
21835 \begin_layout Standard
21836 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
21837 できません。これは、\SpecialChar LyX
21838 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
21839 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
21840 \end_layout
21841
21842 \begin_layout Standard
21843 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
21844 うになるため、一般的には、統御下に置いた状態で
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 execvp
21850 \end_layout
21851
21852 \end_inset
21853
21854 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
21855 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
21856 \emph on
21857 間違いなく
21858 \emph default
21859 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
21860 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
21861 には、安全でないひな型は決して入っていません
21862
21863 \end_layout
21864
21865 \begin_layout Standard
21866 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
21867 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
21868 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
21869 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
21870 使用する前に、行うようにしてください。
21871 \end_layout
21872
21873 \begin_layout Chapter
21874 \start_of_appendix
21875 サポートされているレイアウト用\SpecialChar LyX
21876 関数一覧
21877 \begin_inset CommandInset label
21878 LatexCommand label
21879 name "chap:関数一覧"
21880
21881 \end_inset
21882
21883
21884 \end_layout
21885
21886 \begin_layout Standard
21887 \align center
21888 \begin_inset Tabular
21889 <lyxtabular version="3" rows="11" columns="8">
21890 <features tabularvalignment="middle">
21891 <column alignment="left" valignment="top">
21892 <column alignment="left" valignment="top">
21893 <column alignment="left" valignment="top">
21894 <column alignment="left" valignment="top">
21895 <column alignment="left" valignment="top">
21896 <column alignment="left" valignment="top">
21897 <column alignment="left" valignment="top">
21898 <column alignment="left" valignment="top">
21899 <row>
21900 <cell alignment="left" valignment="top" usebox="none">
21901 \begin_inset Text
21902
21903 \begin_layout Plain Layout
21904 accents
21905 \end_layout
21906
21907 \end_inset
21908 </cell>
21909 <cell alignment="left" valignment="top" usebox="none">
21910 \begin_inset Text
21911
21912 \begin_layout Plain Layout
21913 booktabs
21914 \end_layout
21915
21916 \end_inset
21917 </cell>
21918 <cell alignment="left" valignment="top" usebox="none">
21919 \begin_inset Text
21920
21921 \begin_layout Plain Layout
21922 feyn
21923 \end_layout
21924
21925 \end_inset
21926 </cell>
21927 <cell alignment="left" valignment="top" usebox="none">
21928 \begin_inset Text
21929
21930 \begin_layout Plain Layout
21931 listings
21932 \end_layout
21933
21934 \end_inset
21935 </cell>
21936 <cell alignment="center" valignment="top" usebox="none">
21937 \begin_inset Text
21938
21939 \begin_layout Plain Layout
21940 natbib
21941 \end_layout
21942
21943 \end_inset
21944 </cell>
21945 <cell alignment="center" valignment="top" usebox="none">
21946 \begin_inset Text
21947
21948 \begin_layout Plain Layout
21949 rotfloat
21950 \end_layout
21951
21952 \end_inset
21953 </cell>
21954 <cell alignment="center" valignment="top" usebox="none">
21955 \begin_inset Text
21956
21957 \begin_layout Plain Layout
21958 tfrupee
21959 \end_layout
21960
21961 \end_inset
21962 </cell>
21963 <cell alignment="center" valignment="top" usebox="none">
21964 \begin_inset Text
21965
21966 \begin_layout Plain Layout
21967 wasysym
21968 \end_layout
21969
21970 \end_inset
21971 </cell>
21972 </row>
21973 <row>
21974 <cell alignment="left" valignment="top" usebox="none">
21975 \begin_inset Text
21976
21977 \begin_layout Plain Layout
21978 amsbsy
21979 \end_layout
21980
21981 \end_inset
21982 </cell>
21983 <cell alignment="left" valignment="top" usebox="none">
21984 \begin_inset Text
21985
21986 \begin_layout Plain Layout
21987 calc
21988 \end_layout
21989
21990 \end_inset
21991 </cell>
21992 <cell alignment="left" valignment="top" usebox="none">
21993 \begin_inset Text
21994
21995 \begin_layout Plain Layout
21996 fixltx2e
21997 \end_layout
21998
21999 \end_inset
22000 </cell>
22001 <cell alignment="left" valignment="top" usebox="none">
22002 \begin_inset Text
22003
22004 \begin_layout Plain Layout
22005 longtable
22006 \end_layout
22007
22008 \end_inset
22009 </cell>
22010 <cell alignment="center" valignment="top" usebox="none">
22011 \begin_inset Text
22012
22013 \begin_layout Plain Layout
22014 nomencl
22015 \end_layout
22016
22017 \end_inset
22018 </cell>
22019 <cell alignment="center" valignment="top" usebox="none">
22020 \begin_inset Text
22021
22022 \begin_layout Plain Layout
22023 rsphrase
22024 \end_layout
22025
22026 \end_inset
22027 </cell>
22028 <cell alignment="center" valignment="top" usebox="none">
22029 \begin_inset Text
22030
22031 \begin_layout Plain Layout
22032 tipa
22033 \end_layout
22034
22035 \end_inset
22036 </cell>
22037 <cell alignment="center" valignment="top" usebox="none">
22038 \begin_inset Text
22039
22040 \begin_layout Plain Layout
22041 wrapfig
22042 \end_layout
22043
22044 \end_inset
22045 </cell>
22046 </row>
22047 <row>
22048 <cell alignment="left" valignment="top" usebox="none">
22049 \begin_inset Text
22050
22051 \begin_layout Plain Layout
22052 amscd
22053 \end_layout
22054
22055 \end_inset
22056 </cell>
22057 <cell alignment="left" valignment="top" usebox="none">
22058 \begin_inset Text
22059
22060 \begin_layout Plain Layout
22061 CJK
22062 \end_layout
22063
22064 \end_inset
22065 </cell>
22066 <cell alignment="left" valignment="top" usebox="none">
22067 \begin_inset Text
22068
22069 \begin_layout Plain Layout
22070 float
22071 \end_layout
22072
22073 \end_inset
22074 </cell>
22075 <cell alignment="left" valignment="top" usebox="none">
22076 \begin_inset Text
22077
22078 \begin_layout Plain Layout
22079 lyxskak
22080 \end_layout
22081
22082 \end_inset
22083 </cell>
22084 <cell alignment="center" valignment="top" usebox="none">
22085 \begin_inset Text
22086
22087 \begin_layout Plain Layout
22088 pdfcolmk
22089 \end_layout
22090
22091 \end_inset
22092 </cell>
22093 <cell alignment="center" valignment="top" usebox="none">
22094 \begin_inset Text
22095
22096 \begin_layout Plain Layout
22097 setspace
22098 \end_layout
22099
22100 \end_inset
22101 </cell>
22102 <cell alignment="center" valignment="top" usebox="none">
22103 \begin_inset Text
22104
22105 \begin_layout Plain Layout
22106 tipx
22107 \end_layout
22108
22109 \end_inset
22110 </cell>
22111 <cell alignment="center" valignment="top" usebox="none">
22112 \begin_inset Text
22113
22114 \begin_layout Plain Layout
22115 xargs
22116 \end_layout
22117
22118 \end_inset
22119 </cell>
22120 </row>
22121 <row>
22122 <cell alignment="left" valignment="top" usebox="none">
22123 \begin_inset Text
22124
22125 \begin_layout Plain Layout
22126 amsmath
22127 \end_layout
22128
22129 \end_inset
22130 </cell>
22131 <cell alignment="left" valignment="top" usebox="none">
22132 \begin_inset Text
22133
22134 \begin_layout Plain Layout
22135 color
22136 \end_layout
22137
22138 \end_inset
22139 </cell>
22140 <cell alignment="left" valignment="top" usebox="none">
22141 \begin_inset Text
22142
22143 \begin_layout Plain Layout
22144 framed
22145 \end_layout
22146
22147 \end_inset
22148 </cell>
22149 <cell alignment="left" valignment="top" usebox="none">
22150 \begin_inset Text
22151
22152 \begin_layout Plain Layout
22153 makeidx
22154 \end_layout
22155
22156 \end_inset
22157 </cell>
22158 <cell alignment="center" valignment="top" usebox="none">
22159 \begin_inset Text
22160
22161 \begin_layout Plain Layout
22162 pdfpages
22163 \end_layout
22164
22165 \end_inset
22166 </cell>
22167 <cell alignment="center" valignment="top" usebox="none">
22168 \begin_inset Text
22169
22170 \begin_layout Plain Layout
22171 shapepar
22172 \end_layout
22173
22174 \end_inset
22175 </cell>
22176 <cell alignment="center" valignment="top" usebox="none">
22177 \begin_inset Text
22178
22179 \begin_layout Plain Layout
22180 tone
22181 \end_layout
22182
22183 \end_inset
22184 </cell>
22185 <cell alignment="center" valignment="top" usebox="none">
22186 \begin_inset Text
22187
22188 \begin_layout Plain Layout
22189 xcolor
22190 \end_layout
22191
22192 \end_inset
22193 </cell>
22194 </row>
22195 <row>
22196 <cell alignment="left" valignment="top" usebox="none">
22197 \begin_inset Text
22198
22199 \begin_layout Plain Layout
22200 amssymb
22201 \end_layout
22202
22203 \end_inset
22204 </cell>
22205 <cell alignment="left" valignment="top" usebox="none">
22206 \begin_inset Text
22207
22208 \begin_layout Plain Layout
22209 covington
22210 \end_layout
22211
22212 \end_inset
22213 </cell>
22214 <cell alignment="left" valignment="top" usebox="none">
22215 \begin_inset Text
22216
22217 \begin_layout Plain Layout
22218 graphicx
22219 \end_layout
22220
22221 \end_inset
22222 </cell>
22223 <cell alignment="left" valignment="top" usebox="none">
22224 \begin_inset Text
22225
22226 \begin_layout Plain Layout
22227 marvosym
22228 \end_layout
22229
22230 \end_inset
22231 </cell>
22232 <cell alignment="center" valignment="top" usebox="none">
22233 \begin_inset Text
22234
22235 \begin_layout Plain Layout
22236 pifont
22237 \end_layout
22238
22239 \end_inset
22240 </cell>
22241 <cell alignment="center" valignment="top" usebox="none">
22242 \begin_inset Text
22243
22244 \begin_layout Plain Layout
22245 slashed
22246 \end_layout
22247
22248 \end_inset
22249 </cell>
22250 <cell alignment="center" valignment="top" usebox="none">
22251 \begin_inset Text
22252
22253 \begin_layout Plain Layout
22254 txfonts
22255 \end_layout
22256
22257 \end_inset
22258 </cell>
22259 <cell alignment="center" valignment="top" usebox="none">
22260 \begin_inset Text
22261
22262 \begin_layout Plain Layout
22263 xy
22264 \end_layout
22265
22266 \end_inset
22267 </cell>
22268 </row>
22269 <row>
22270 <cell alignment="left" valignment="top" usebox="none">
22271 \begin_inset Text
22272
22273 \begin_layout Plain Layout
22274 amstext
22275 \end_layout
22276
22277 \end_inset
22278 </cell>
22279 <cell alignment="left" valignment="top" usebox="none">
22280 \begin_inset Text
22281
22282 \begin_layout Plain Layout
22283 csquotes
22284 \end_layout
22285
22286 \end_inset
22287 </cell>
22288 <cell alignment="left" valignment="top" usebox="none">
22289 \begin_inset Text
22290
22291 \begin_layout Plain Layout
22292 hhline
22293 \end_layout
22294
22295 \end_inset
22296 </cell>
22297 <cell alignment="left" valignment="top" usebox="none">
22298 \begin_inset Text
22299
22300 \begin_layout Plain Layout
22301 mathdesign
22302 \end_layout
22303
22304 \end_inset
22305 </cell>
22306 <cell alignment="center" valignment="top" usebox="none">
22307 \begin_inset Text
22308
22309 \begin_layout Plain Layout
22310 pmboxdraw
22311 \end_layout
22312
22313 \end_inset
22314 </cell>
22315 <cell alignment="center" valignment="top" usebox="none">
22316 \begin_inset Text
22317
22318 \begin_layout Plain Layout
22319 soul
22320 \end_layout
22321
22322 \end_inset
22323 </cell>
22324 <cell alignment="center" valignment="top" usebox="none">
22325 \begin_inset Text
22326
22327 \begin_layout Plain Layout
22328 ulem
22329 \end_layout
22330
22331 \end_inset
22332 </cell>
22333 <cell alignment="center" valignment="top" usebox="none">
22334 \begin_inset Text
22335
22336 \begin_layout Plain Layout
22337 yhmath
22338 \end_layout
22339
22340 \end_inset
22341 </cell>
22342 </row>
22343 <row>
22344 <cell alignment="left" valignment="top" usebox="none">
22345 \begin_inset Text
22346
22347 \begin_layout Plain Layout
22348 amsthm
22349 \end_layout
22350
22351 \end_inset
22352 </cell>
22353 <cell alignment="left" valignment="top" usebox="none">
22354 \begin_inset Text
22355
22356 \begin_layout Plain Layout
22357 dvipost
22358 \end_layout
22359
22360 \end_inset
22361 </cell>
22362 <cell alignment="left" valignment="top" usebox="none">
22363 \begin_inset Text
22364
22365 \begin_layout Plain Layout
22366 hyperref
22367 \end_layout
22368
22369 \end_inset
22370 </cell>
22371 <cell alignment="left" valignment="top" usebox="none">
22372 \begin_inset Text
22373
22374 \begin_layout Plain Layout
22375 mathdots
22376 \end_layout
22377
22378 \end_inset
22379 </cell>
22380 <cell alignment="center" valignment="top" usebox="none">
22381 \begin_inset Text
22382
22383 \begin_layout Plain Layout
22384 polyglossia
22385 \end_layout
22386
22387 \end_inset
22388 </cell>
22389 <cell alignment="center" valignment="top" usebox="none">
22390 \begin_inset Text
22391
22392 \begin_layout Plain Layout
22393 splitidx
22394 \end_layout
22395
22396 \end_inset
22397 </cell>
22398 <cell alignment="center" valignment="top" usebox="none">
22399 \begin_inset Text
22400
22401 \begin_layout Plain Layout
22402 undertilde
22403 \end_layout
22404
22405 \end_inset
22406 </cell>
22407 <cell alignment="center" valignment="top" usebox="none">
22408 \begin_inset Text
22409
22410 \begin_layout Plain Layout
22411
22412 \end_layout
22413
22414 \end_inset
22415 </cell>
22416 </row>
22417 <row>
22418 <cell alignment="left" valignment="top" usebox="none">
22419 \begin_inset Text
22420
22421 \begin_layout Plain Layout
22422 array
22423 \end_layout
22424
22425 \end_inset
22426 </cell>
22427 <cell alignment="left" valignment="top" usebox="none">
22428 \begin_inset Text
22429
22430 \begin_layout Plain Layout
22431 endnotes
22432 \end_layout
22433
22434 \end_inset
22435 </cell>
22436 <cell alignment="left" valignment="top" usebox="none">
22437 \begin_inset Text
22438
22439 \begin_layout Plain Layout
22440 ifsym
22441 \end_layout
22442
22443 \end_inset
22444 </cell>
22445 <cell alignment="left" valignment="top" usebox="none">
22446 \begin_inset Text
22447
22448 \begin_layout Plain Layout
22449 mathrsfs
22450 \end_layout
22451
22452 \end_inset
22453 </cell>
22454 <cell alignment="center" valignment="top" usebox="none">
22455 \begin_inset Text
22456
22457 \begin_layout Plain Layout
22458 prettyref
22459 \end_layout
22460
22461 \end_inset
22462 </cell>
22463 <cell alignment="center" valignment="top" usebox="none">
22464 \begin_inset Text
22465
22466 \begin_layout Plain Layout
22467 subfig
22468 \end_layout
22469
22470 \end_inset
22471 </cell>
22472 <cell alignment="center" valignment="top" usebox="none">
22473 \begin_inset Text
22474
22475 \begin_layout Plain Layout
22476 units
22477 \end_layout
22478
22479 \end_inset
22480 </cell>
22481 <cell alignment="center" valignment="top" usebox="none">
22482 \begin_inset Text
22483
22484 \begin_layout Plain Layout
22485
22486 \end_layout
22487
22488 \end_inset
22489 </cell>
22490 </row>
22491 <row>
22492 <cell alignment="left" valignment="top" usebox="none">
22493 \begin_inset Text
22494
22495 \begin_layout Plain Layout
22496 ascii
22497 \end_layout
22498
22499 \end_inset
22500 </cell>
22501 <cell alignment="left" valignment="top" usebox="none">
22502 \begin_inset Text
22503
22504 \begin_layout Plain Layout
22505 enumitem
22506 \end_layout
22507
22508 \end_inset
22509 </cell>
22510 <cell alignment="left" valignment="top" usebox="none">
22511 \begin_inset Text
22512
22513 \begin_layout Plain Layout
22514 ifthen
22515 \end_layout
22516
22517 \end_inset
22518 </cell>
22519 <cell alignment="left" valignment="top" usebox="none">
22520 \begin_inset Text
22521
22522 \begin_layout Plain Layout
22523 mhchem
22524 \end_layout
22525
22526 \end_inset
22527 </cell>
22528 <cell alignment="center" valignment="top" usebox="none">
22529 \begin_inset Text
22530
22531 \begin_layout Plain Layout
22532 pxfonts
22533 \end_layout
22534
22535 \end_inset
22536 </cell>
22537 <cell alignment="center" valignment="top" usebox="none">
22538 \begin_inset Text
22539
22540 \begin_layout Plain Layout
22541 subscript
22542 \end_layout
22543
22544 \end_inset
22545 </cell>
22546 <cell alignment="center" valignment="top" usebox="none">
22547 \begin_inset Text
22548
22549 \begin_layout Plain Layout
22550 url
22551 \end_layout
22552
22553 \end_inset
22554 </cell>
22555 <cell alignment="center" valignment="top" usebox="none">
22556 \begin_inset Text
22557
22558 \begin_layout Plain Layout
22559
22560 \end_layout
22561
22562 \end_inset
22563 </cell>
22564 </row>
22565 <row>
22566 <cell alignment="left" valignment="top" usebox="none">
22567 \begin_inset Text
22568
22569 \begin_layout Plain Layout
22570 bbding
22571 \end_layout
22572
22573 \end_inset
22574 </cell>
22575 <cell alignment="left" valignment="top" usebox="none">
22576 \begin_inset Text
22577
22578 \begin_layout Plain Layout
22579 esint
22580 \end_layout
22581
22582 \end_inset
22583 </cell>
22584 <cell alignment="left" valignment="top" usebox="none">
22585 \begin_inset Text
22586
22587 \begin_layout Plain Layout
22588 jurabib
22589 \end_layout
22590
22591 \end_inset
22592 </cell>
22593 <cell alignment="left" valignment="top" usebox="none">
22594 \begin_inset Text
22595
22596 \begin_layout Plain Layout
22597 multicol
22598 \end_layout
22599
22600 \end_inset
22601 </cell>
22602 <cell alignment="center" valignment="top" usebox="none">
22603 \begin_inset Text
22604
22605 \begin_layout Plain Layout
22606 refstyle
22607 \end_layout
22608
22609 \end_inset
22610 </cell>
22611 <cell alignment="center" valignment="top" usebox="none">
22612 \begin_inset Text
22613
22614 \begin_layout Plain Layout
22615 textcomp
22616 \end_layout
22617
22618 \end_inset
22619 </cell>
22620 <cell alignment="center" valignment="top" usebox="none">
22621 \begin_inset Text
22622
22623 \begin_layout Plain Layout
22624 varioref
22625 \end_layout
22626
22627 \end_inset
22628 </cell>
22629 <cell alignment="center" valignment="top" usebox="none">
22630 \begin_inset Text
22631
22632 \begin_layout Plain Layout
22633
22634 \end_layout
22635
22636 \end_inset
22637 </cell>
22638 </row>
22639 <row>
22640 <cell alignment="center" valignment="top" usebox="none">
22641 \begin_inset Text
22642
22643 \begin_layout Plain Layout
22644 bm
22645 \end_layout
22646
22647 \end_inset
22648 </cell>
22649 <cell alignment="center" valignment="top" usebox="none">
22650 \begin_inset Text
22651
22652 \begin_layout Plain Layout
22653 fancybox
22654 \end_layout
22655
22656 \end_inset
22657 </cell>
22658 <cell alignment="center" valignment="top" usebox="none">
22659 \begin_inset Text
22660
22661 \begin_layout Plain Layout
22662 latexsym
22663 \end_layout
22664
22665 \end_inset
22666 </cell>
22667 <cell alignment="center" valignment="top" usebox="none">
22668 \begin_inset Text
22669
22670 \begin_layout Plain Layout
22671 multirow
22672 \end_layout
22673
22674 \end_inset
22675 </cell>
22676 <cell alignment="center" valignment="top" usebox="none">
22677 \begin_inset Text
22678
22679 \begin_layout Plain Layout
22680 rotating
22681 \end_layout
22682
22683 \end_inset
22684 </cell>
22685 <cell alignment="center" valignment="top" usebox="none">
22686 \begin_inset Text
22687
22688 \begin_layout Plain Layout
22689 textgreek
22690 \end_layout
22691
22692 \end_inset
22693 </cell>
22694 <cell alignment="center" valignment="top" usebox="none">
22695 \begin_inset Text
22696
22697 \begin_layout Plain Layout
22698 verbatim
22699 \end_layout
22700
22701 \end_inset
22702 </cell>
22703 <cell alignment="center" valignment="top" usebox="none">
22704 \begin_inset Text
22705
22706 \begin_layout Plain Layout
22707
22708 \end_layout
22709
22710 \end_inset
22711 </cell>
22712 </row>
22713 </lyxtabular>
22714
22715 \end_inset
22716
22717
22718 \end_layout
22719
22720 \begin_layout Chapter
22721 レイアウトで使用できる色名
22722 \begin_inset CommandInset label
22723 LatexCommand label
22724 name "chap:色名"
22725
22726 \end_inset
22727
22728
22729 \end_layout
22730
22731 \begin_layout Standard
22732 ここに列挙されている色は標準色であり、\SpecialChar LyX
22733 設定で調整できるものです。
22734 \end_layout
22735
22736 \begin_layout Description
22737 none
22738 \series medium
22739  
22740 \series default
22741 特定の色ではありません – 透明か既定色です
22742 \end_layout
22743
22744 \begin_layout Description
22745 black
22746 \end_layout
22747
22748 \begin_layout Description
22749 white
22750 \end_layout
22751
22752 \begin_layout Description
22753 red
22754 \end_layout
22755
22756 \begin_layout Description
22757 green
22758 \end_layout
22759
22760 \begin_layout Description
22761 blue
22762 \end_layout
22763
22764 \begin_layout Description
22765 cyan
22766 \end_layout
22767
22768 \begin_layout Description
22769 magenta
22770 \end_layout
22771
22772 \begin_layout Description
22773 yellow
22774 \end_layout
22775
22776 \begin_layout Description
22777 added_space 空白マーカ色
22778 \end_layout
22779
22780 \begin_layout Description
22781 addedtext 追加された文章色
22782 \end_layout
22783
22784 \begin_layout Description
22785 appendix 付録マーカ色
22786 \end_layout
22787
22788 \begin_layout Description
22789 background 背景色
22790 \end_layout
22791
22792 \begin_layout Description
22793 bottomarea 下部領域色
22794 \end_layout
22795
22796 \begin_layout Description
22797 branchlabel 派生枝ラベル色
22798 \end_layout
22799
22800 \begin_layout Description
22801 buttonbg ボタンの背景色
22802 \end_layout
22803
22804 \begin_layout Description
22805 buttonhoverbg フォーカスを得ているボタンの背景色
22806 \end_layout
22807
22808 \begin_layout Description
22809 buttonframe 差込枠の縁色
22810 \end_layout
22811
22812 \begin_layout Description
22813 changebar 変更バー色
22814 \end_layout
22815
22816 \begin_layout Description
22817 changedtextauthor1 変更された文章:第1著者の色
22818 \end_layout
22819
22820 \begin_layout Description
22821 changedtextauthor2 変更された文章:第2著者の色
22822 \end_layout
22823
22824 \begin_layout Description
22825 changedtextauthor3 変更された文章:第3著者の色
22826 \end_layout
22827
22828 \begin_layout Description
22829 changedtextauthor4 変更された文章:第4著者の色
22830 \end_layout
22831
22832 \begin_layout Description
22833 changedtextauthor5 変更された文章:第5著者の色
22834 \end_layout
22835
22836 \begin_layout Description
22837 collapsable_inset_frame 畳み込み可能枠の縁色
22838 \end_layout
22839
22840 \begin_layout Description
22841 collapsable_inset_text 畳み込み可能枠の文字色
22842 \end_layout
22843
22844 \begin_layout Description
22845 command コマンド差込枠の文字色
22846 \end_layout
22847
22848 \begin_layout Description
22849 commandbg コマンド差込枠の背景色
22850 \end_layout
22851
22852 \begin_layout Description
22853 commandframe コマンド差込枠の縁色
22854 \end_layout
22855
22856 \begin_layout Description
22857 comment コメント色
22858 \end_layout
22859
22860 \begin_layout Description
22861 commentbg コメントの背景色
22862 \end_layout
22863
22864 \begin_layout Description
22865 cursor カーソル色
22866 \end_layout
22867
22868 \begin_layout Description
22869 deletedtext 削除された文章の色
22870 \end_layout
22871
22872 \begin_layout Description
22873 deletedtextmodifier 削除された文章の修飾子の色
22874 \end_layout
22875
22876 \begin_layout Description
22877 depthbar 余白部の階層表示線の色
22878 \end_layout
22879
22880 \begin_layout Description
22881 eolmarker 行末標色
22882 \end_layout
22883
22884 \begin_layout Description
22885 error \SpecialChar LaTeX
22886 エラーボックス色
22887 \end_layout
22888
22889 \begin_layout Description
22890 footlabel 脚註ラベル色
22891 \end_layout
22892
22893 \begin_layout Description
22894 graphicsbg 画像差込枠の背景色
22895 \end_layout
22896
22897 \begin_layout Description
22898 greyedout 淡色表示差込枠のラベル色
22899 \end_layout
22900
22901 \begin_layout Description
22902 greyedoutbg 淡色表示差込枠の背景色
22903 \end_layout
22904
22905 \begin_layout Description
22906 greyedouttext 淡色表示差込枠の文字色
22907 \end_layout
22908
22909 \begin_layout Description
22910 indexlabel 索引差込枠のラベル色
22911 \end_layout
22912
22913 \begin_layout Description
22914 ignore この色を無視します
22915 \end_layout
22916
22917 \begin_layout Description
22918 inherit この色を継承します
22919 \end_layout
22920
22921 \begin_layout Description
22922 inlinecompletion 行内補完色
22923 \end_layout
22924
22925 \begin_layout Description
22926 insetbg 差込枠標の背景色
22927 \end_layout
22928
22929 \begin_layout Description
22930 insetframe 差込枠標の縁色
22931 \end_layout
22932
22933 \begin_layout Description
22934 language 外国語の単語を標識するための色
22935 \end_layout
22936
22937 \begin_layout Description
22938 latex \SpecialChar LaTeX
22939 モードの文字色
22940 \end_layout
22941
22942 \begin_layout Description
22943 listingsbg プログラムリスト差込枠の背景色
22944 \end_layout
22945
22946 \begin_layout Description
22947 marginlabel 傍註のラベル色
22948 \end_layout
22949
22950 \begin_layout Description
22951 math 数式差込枠の文字色
22952 \end_layout
22953
22954 \begin_layout Description
22955 mathbg 数式差込枠の背景色
22956 \end_layout
22957
22958 \begin_layout Description
22959 mathcorners フォーカスを得ていない数式差込枠の縁色
22960 \end_layout
22961
22962 \begin_layout Description
22963 mathframe フォーカスを得ている数式差込枠の縁色
22964 \end_layout
22965
22966 \begin_layout Description
22967 mathline 数式行色
22968 \end_layout
22969
22970 \begin_layout Description
22971 mathmacrobg 数式マクロ差込枠の背景色
22972 \end_layout
22973
22974 \begin_layout Description
22975 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22976 \end_layout
22977
22978 \begin_layout Description
22979 mathmacroframe 数式マクロ差込枠の縁色
22980 \end_layout
22981
22982 \begin_layout Description
22983 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22984 \end_layout
22985
22986 \begin_layout Description
22987 mathmacrolabel 数式マクロ差込枠のラベル色
22988 \end_layout
22989
22990 \begin_layout Description
22991 mathmacronewarg 数式マクロ新パラメーターのひな型色
22992 \end_layout
22993
22994 \begin_layout Description
22995 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22996 \end_layout
22997
22998 \begin_layout Description
22999 newpage 新規頁色
23000 \end_layout
23001
23002 \begin_layout Description
23003 nonunique_inlinecompletion 行内補完の一意でない部分の色
23004 \end_layout
23005
23006 \begin_layout Description
23007 notebg 註釈の背景色
23008 \end_layout
23009
23010 \begin_layout Description
23011 notelabel 註釈のラベル色
23012 \end_layout
23013
23014 \begin_layout Description
23015 pagebreak 改頁/改行色
23016 \end_layout
23017
23018 \begin_layout Description
23019 paragraphmarker 段落末を標識するための段落標の色
23020 \end_layout
23021
23022 \begin_layout Description
23023 phantomtext 埋め草差込枠の文字色
23024 \end_layout
23025
23026 \begin_layout Description
23027 preview プレビューに用いられる色
23028 \end_layout
23029
23030 \begin_layout Description
23031 previewframe プレビュー縁色
23032 \end_layout
23033
23034 \begin_layout Description
23035 regexpframe 正規表現枠の色
23036 \end_layout
23037
23038 \begin_layout Description
23039 selection 文章選択部の背景色
23040 \end_layout
23041
23042 \begin_layout Description
23043 selectiontext 文章選択部の前景色
23044 \end_layout
23045
23046 \begin_layout Description
23047 shadedbg 影付きボックスの背景色
23048 \end_layout
23049
23050 \begin_layout Description
23051 special 特殊文字の色
23052 \end_layout
23053
23054 \begin_layout Description
23055 tabularline 罫線色
23056 \end_layout
23057
23058 \begin_layout Description
23059 tabularonoffline 罫線色
23060 \end_layout
23061
23062 \begin_layout Description
23063 urllabel URL差込枠のラベル色
23064 \end_layout
23065
23066 \begin_layout Description
23067 urltext URL差込枠の文字色
23068 \end_layout
23069
23070 \end_body
23071 \end_document