]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
Document NeedCProtect -1
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
3 \begin_document
4 \begin_header
5 \save_transient_properties false
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 \end_preamble
27 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,bookmarkpackage=false
28 \use_default_options false
29 \begin_modules
30 logicalmkup
31 ruby
32 \end_modules
33 \maintain_unincluded_children no
34 \begin_local_layout
35 Format 57
36 InsetLayout Flex:MenuItem
37 LyxType               charstyle
38 LabelString           menu
39 LatexType             command
40 LatexName             menuitem
41 Font
42 Family              Sans
43 Series              Bold
44 EndFont
45 Preamble
46 \newcommand*{\menuitem}[1]{{\sffamily #1}}
47 EndPreamble
48 ResetsFont true
49 End
50 # In case we need to do with sans...
51 #InsetLayout CharStyle:Code
52 #Font
53 #Family              Sans
54 #EndFont
55 #Preamble
56 #\renewcommand{\code}[1]{{\sffamily #1}}
57 #EndPreamble
58 #End
59 InsetLayout Flex:圏点
60   LyxType       charstyle
61   LatexType     command
62   LatexName     kenten
63   HTMLTag       kenten
64   HTMLAttr      ""
65   HTMLInnerTag  kt
66   HTMLInnerAttr ""
67   BgColor       none
68   LabelString   "圏点"
69   Decoration    Conglomerate
70   Preamble
71     \usepackage{pxrubrica}
72   EndPreamble
73   Argument  post:1
74     LabelString  "Kenten option"
75     MenuString  "圏点オプション"
76     Tooltip    "Emphasize Chinese characters."
77     Decoration  Conglomerate
78     Font
79       Size    tiny
80     EndFont
81     LabelFont
82       Size    tiny
83     EndFont
84     Mandatory  0
85   EndArgument
86 End
87 \end_local_layout
88 \language japanese
89 \language_package default
90 \inputencoding utf8
91 \fontencoding auto
92 \font_roman "lmodern" "IPAexMincho"
93 \font_sans "default" "IPAexGothic"
94 \font_typewriter "default" "IPAGothic"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
98 \font_sc false
99 \font_roman_osf false
100 \font_sans_osf false
101 \font_typewriter_osf false
102 \font_sf_scale 100 100
103 \font_tt_scale 100 100
104 \use_microtype false
105 \use_dash_ligatures false
106 \graphics default
107 \default_output_format default
108 \output_sync 0
109 \bibtex_command default
110 \index_command default
111 \float_placement class
112 \float_alignment class
113 \paperfontsize 12
114 \spacing single
115 \use_hyperref true
116 \pdf_title "LyX Configuration Manual"
117 \pdf_author "LyX Team"
118 \pdf_subject "LyX-Documentation Customization"
119 \pdf_keywords "LyX, documentation, customization"
120 \pdf_bookmarks false
121 \pdf_bookmarksnumbered true
122 \pdf_bookmarksopen true
123 \pdf_bookmarksopenlevel 1
124 \pdf_breaklinks false
125 \pdf_pdfborder false
126 \pdf_colorlinks true
127 \pdf_backref false
128 \pdf_pdfusetitle false
129 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
130 \papersize default
131 \use_geometry false
132 \use_package amsmath 1
133 \use_package amssymb 1
134 \use_package cancel 1
135 \use_package esint 1
136 \use_package mathdots 1
137 \use_package mathtools 1
138 \use_package mhchem 1
139 \use_package stackrel 1
140 \use_package stmaryrd 1
141 \use_package undertilde 1
142 \cite_engine basic
143 \cite_engine_type default
144 \biblio_style plain
145 \use_bibtopic false
146 \use_indices false
147 \paperorientation portrait
148 \suppress_date false
149 \justification false
150 \use_refstyle 0
151 \use_formatted_ref 0
152 \use_minted 0
153 \use_lineno 0
154 \notefontcolor #0000ff
155 \branch OutDated
156 \selected 0
157 \filename_suffix 0
158 \color #f5fae7 #0a0518
159 \end_branch
160 \index 索引
161 \shortcut idx
162 \color #008000
163 \end_index
164 \secnumdepth 3
165 \tocdepth 3
166 \paragraph_separation indent
167 \paragraph_indentation default
168 \is_math_indent 1
169 \math_indentation default
170 \math_numbering_side default
171 \quotes_style english
172 \dynamic_quotes 0
173 \papercolumns 1
174 \papersides 2
175 \paperpagestyle headings
176 \tablestyle default
177 \tracking_changes false
178 \output_changes false
179 \change_bars false
180 \postpone_fragile_content false
181 \html_math_output 0
182 \html_css_as_file 0
183 \html_be_strict true
184 \docbook_table_output 0
185 \docbook_mathml_prefix 1
186 \end_header
187
188 \begin_body
189
190 \begin_layout Title
191 \SpecialChar LyX
192 の高度設定
193 \begin_inset Newline newline
194 \end_inset
195
196 熟練ユーザのための各機能
197 \end_layout
198
199 \begin_layout Author
200 \SpecialChar LyX
201 開発チーム
202 \begin_inset Foot
203 status collapsed
204
205 \begin_layout Plain Layout
206 \noindent
207 もしコメントや誤りの修正をお持ちでしたら,
208 \SpecialChar LyX
209 文書化メーリングリスト
210 \begin_inset CommandInset href
211 LatexCommand href
212 target "lyx-docs@lists.lyx.org"
213 type "mailto:"
214 literal "false"
215
216 \end_inset
217
218 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,
219 このファイルの現在のメンテナRichard Kimberly Heck <rikiheck@lyx.org>をccにして送ってください.
220 \end_layout
221
222 \end_inset
223
224
225 \begin_inset Newline newline
226 \end_inset
227
228
229 \begin_inset Newline newline
230 \end_inset
231
232 第2.4.x版
233 \end_layout
234
235 \begin_layout Standard
236 \begin_inset CommandInset toc
237 LatexCommand tableofcontents
238
239 \end_inset
240
241
242 \begin_inset Note Note
243 status open
244
245 \begin_layout Plain Layout
246 本文書を修正する際には,
247 変更追跡機能を使用してください.これによって,
248
249 \end_layout
250
251 \begin_layout Plain Layout
252 \SpecialChar LyX
253 翻訳者陣が変更点を認識しやすくなり,
254 メンテナが最新の状態を維持することが容易になります.
255 \end_layout
256
257 \end_inset
258
259
260 \end_layout
261
262 \begin_layout Chapter
263 はじめに
264 \end_layout
265
266 \begin_layout Standard
267 この取扱説明書は,
268 \SpecialChar LyX
269 に備わっている高度設定機能を取り扱います.ここでは,
270 ショートカットや画面プレビューオプション,
271 プリンタオプション,
272 \SpecialChar LyX
273 サーバ経由での\SpecialChar LyX
274 へのコマンド送信,
275 国際化,
276 新しい\SpecialChar LaTeX
277 クラスや\SpecialChar LyX
278 レイアウトの導入などの題材について論じます.おそらくは変更可能なことすべてについて触れることは無理でしょうが—
279 私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—
280
281 もっとも一般的な高度設定については説明を行い,
282 わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
283 \end_layout
284
285 \begin_layout Standard
286 \begin_inset Branch OutDated
287 inverted 0
288 status collapsed
289
290 \begin_layout Standard
291 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
292  By default,
293  this information will not appear in the \SpecialChar LaTeX
294  output.
295 \end_layout
296
297 \end_inset
298
299
300 \end_layout
301
302 \begin_layout Chapter
303 \SpecialChar LyX
304 設定ファイル
305 \end_layout
306
307 \begin_layout Standard
308 本章の目的は,
309 \SpecialChar LyX
310 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
311
312 \begin_inset Flex MenuItem
313 status collapsed
314
315 \begin_layout Plain Layout
316 ヘルプ\SpecialChar menuseparator
317 LyXについて
318 \end_layout
319
320 \end_inset
321
322 を使って,
323 \SpecialChar LyX
324 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,
325 \SpecialChar LyX
326 がシステム全体の設定ファイルを置いておくところです.一方,
327 ユーザディレクトリは,
328 自身がそれを修正した版を置いておくところです.私たちは,
329 本書の以下の部分で,
330 前者を
331 \begin_inset Flex Code
332 status collapsed
333
334 \begin_layout Plain Layout
335 LyXDir
336 \end_layout
337
338 \end_inset
339
340 と呼び,
341 後者を
342 \begin_inset Flex MenuItem
343 status collapsed
344
345 \begin_layout Plain Layout
346 UserDir
347 \end_layout
348
349 \end_inset
350
351 と呼ぶことにします.
352 \end_layout
353
354 \begin_layout Section
355 \begin_inset Flex Code
356 status collapsed
357
358 \begin_layout Plain Layout
359 LyXDir
360 \end_layout
361
362 \end_inset
363
364 にはなにがあるの?
365
366 \end_layout
367
368 \begin_layout Standard
369 \begin_inset Flex Code
370 status collapsed
371
372 \begin_layout Plain Layout
373 LyXDir
374 \end_layout
375
376 \end_inset
377
378 とそのサブディレクトリには,
379 多くのファイルがあり,
380 \SpecialChar LyX
381 の挙動を高度設定するのに使用されます.これらのファイルの多くは,
382 \SpecialChar LyX
383 内の
384 \begin_inset Flex MenuItem
385 status collapsed
386
387 \begin_layout Plain Layout
388 ツール\SpecialChar menuseparator
389 設定
390 \end_layout
391
392 \end_inset
393
394 ダイアログから変更することができます.\SpecialChar LyX
395 中で行いたいと思うような高度設定は,
396 ほとんどこのダイアログから行うことができるようになっています.しかしながら,
397 LyXの他の多くの内部動作は,
398
399 \begin_inset Flex Code
400 status collapsed
401
402 \begin_layout Plain Layout
403 LyXDir
404 \end_layout
405
406 \end_inset
407
408 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,
409 以下の各小節で説明します.
410 \end_layout
411
412 \begin_layout Subsection
413 自動的に生成されるファイル
414 \end_layout
415
416 \begin_layout Standard
417 \begin_inset Flex MenuItem
418 status collapsed
419
420 \begin_layout Plain Layout
421 UserDir
422 \end_layout
423
424 \end_inset
425
426 にある各ファイルは,
427 \SpecialChar LyX
428 が自動設定を行ったときに生成されます.これらのファイルは,
429 環境構成中に自動的に検出された様々な既定値が置かれています.これらは,
430 随時上書きされてしまうので,
431 一般的には修正しないことが望まれます.
432 \end_layout
433
434 \begin_layout Labeling
435 \labelwidthstring 00.00.0000
436 \begin_inset Flex Code
437 status collapsed
438
439 \begin_layout Plain Layout
440 lyxrc.defaults
441 \end_layout
442
443 \end_inset
444
445  このファイルには,
446 様々な既定コマンドが置かれています.
447 \end_layout
448
449 \begin_layout Labeling
450 \labelwidthstring 00.00.0000
451 \begin_inset Flex Code
452 status collapsed
453
454 \begin_layout Plain Layout
455 packages.lst
456 \end_layout
457
458 \end_inset
459
460  このファイルには,
461 \SpecialChar LyX
462 が認識したパッケージの一覧が収められています.現在のところ,
463 これは\SpecialChar LyX
464 プログラム自体には使用されていませんが,
465 抽出された情報その他は,
466
467 \begin_inset Flex MenuItem
468 status collapsed
469
470 \begin_layout Plain Layout
471 ヘルプ\SpecialChar menuseparator
472 LaTeXの設定
473 \end_layout
474
475 \end_inset
476
477 で見ることができます.
478 \end_layout
479
480 \begin_layout Labeling
481 \labelwidthstring 00.00.0000
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 textclass.lst
487 \end_layout
488
489 \end_inset
490
491  ユーザの
492 \begin_inset Flex Code
493 status collapsed
494
495 \begin_layout Plain Layout
496 Plain L
497 \end_layout
498
499 \end_inset
500
501 ディレクトリで検出されたテキストクラスと,
502 関連した\SpecialChar LaTeX
503 文書クラスおよびその説明の一覧です.
504 \end_layout
505
506 \begin_layout Labeling
507 \labelwidthstring 00.00.0000
508 \begin_inset Flex Code
509 status collapsed
510
511 \begin_layout Plain Layout
512 lyxmodules.lst
513 \end_layout
514
515 \end_inset
516
517  ユーザの
518 \begin_inset Flex Code
519 status collapsed
520
521 \begin_layout Plain Layout
522 layout/
523 \end_layout
524
525 \end_inset
526
527 ディレクトリで検出されたレイアウトモジュールの一覧です.
528 \end_layout
529
530 \begin_layout Labeling
531 \labelwidthstring 00.00.0000
532 \begin_inset Flex Code
533 status collapsed
534
535 \begin_layout Plain Layout
536 *files.lst
537 \end_layout
538
539 \end_inset
540
541  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
542 関連ファイルの一覧です.
543 \end_layout
544
545 \begin_layout Labeling
546 \labelwidthstring 00.00.0000
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 doc/LaTeXConfig.lyx
552 \end_layout
553
554 \end_inset
555
556  このファイルは,
557 自動設定中に
558 \begin_inset Flex Code
559 status collapsed
560
561 \begin_layout Plain Layout
562 LaTeXConfig.lyx.in
563 \end_layout
564
565 \end_inset
566
567 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
568 の設定に関する情報が納められています.
569 \end_layout
570
571 \begin_layout Subsection
572 ディレクトリ
573 \end_layout
574
575 \begin_layout Standard
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 LyXDir
581 \end_layout
582
583 \end_inset
584
585 に含まれる以下の各ディレクトリは,
586
587 \begin_inset Flex Code
588 status collapsed
589
590 \begin_layout Plain Layout
591 UserDir
592 \end_layout
593
594 \end_inset
595
596 にも重複して存在することがあります.特定のファイルが両方の場所にある場合には,
597
598 \begin_inset Flex Code
599 status collapsed
600
601 \begin_layout Plain Layout
602 UserDir
603 \end_layout
604
605 \end_inset
606
607 の方にあるものが使用されます.
608 \end_layout
609
610 \begin_layout Labeling
611 \labelwidthstring 00.00.0000
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 bind/
617 \end_layout
618
619 \end_inset
620
621  このディレクトリには,
622 \SpecialChar LyX
623 で使用されるキー割当を定義している,
624 拡張子が
625 \begin_inset Flex Code
626 status collapsed
627
628 \begin_layout Plain Layout
629 .bind
630 \end_layout
631
632 \end_inset
633
634 のファイルが置かれています.サブディレクトリ
635 \begin_inset Flex Code
636 status collapsed
637
638 \begin_layout Plain Layout
639 bind/xx
640 \end_layout
641
642 \end_inset
643
644
645 \begin_inset Quotes eld
646 \end_inset
647
648 xx
649 \begin_inset Quotes erd
650 \end_inset
651
652 はISO言語コード)に割当ファイルの各国語版がある場合には,
653 そちらが用いられます.
654 \end_layout
655
656 \begin_layout Labeling
657 \labelwidthstring 00.00.0000
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 citeengines/
663 \end_layout
664
665 \end_inset
666
667  このディレクトリには,
668 幅広い文献引用力(natbib,
669  biblatexなど)を定義する,
670 拡張子が
671 \begin_inset Flex Code
672 status collapsed
673
674 \begin_layout Plain Layout
675 .citeengine
676 \end_layout
677
678 \end_inset
679
680 のファイルが置かれています.詳細については,
681
682 \begin_inset CommandInset ref
683 LatexCommand ref
684 reference "subsec:引用エンジンファイル"
685 plural "false"
686 caps "false"
687 noprefix "false"
688 nolink "false"
689
690 \end_inset
691
692 節をご覧ください.
693 \end_layout
694
695 \begin_layout Labeling
696 \labelwidthstring 00.00.0000
697 \begin_inset Flex Code
698 status collapsed
699
700 \begin_layout Plain Layout
701 clipart/
702 \end_layout
703
704 \end_inset
705
706  このディレクトリには,
707 文書に取り込むことのできる画像ファイルが納められています.
708 \end_layout
709
710 \begin_layout Labeling
711 \labelwidthstring 00.00.0000
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 doc/
717 \end_layout
718
719 \end_inset
720
721  このディレクトリには,
722 \SpecialChar LyX
723 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
724
725 \begin_inset Flex Code
726 status collapsed
727
728 \begin_layout Plain Layout
729 LaTeXConfig.lyx
730 \end_layout
731
732 \end_inset
733
734 ファイルは特に注目に値します.各国語版のヘルプ文書は,
735
736 \begin_inset Flex Code
737 status collapsed
738
739 \begin_layout Plain Layout
740 doc/xx
741 \end_layout
742
743 \end_inset
744
745 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
746
747 \begin_inset CommandInset ref
748 LatexCommand ref
749 reference "cha:LyXの各国語対応"
750 nolink "false"
751
752 \end_inset
753
754 をご覧ください.
755 \end_layout
756
757 \begin_layout Labeling
758 \labelwidthstring 00.00.0000
759 \begin_inset Flex Code
760 status collapsed
761
762 \begin_layout Plain Layout
763 examples/
764 \end_layout
765
766 \end_inset
767
768  このディレクトリには,
769 何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
770 \begin_inset Flex MenuItem
771 status collapsed
772
773 \begin_layout Plain Layout
774 用例
775 \end_layout
776
777 \end_inset
778
779 ボタンを押すと,
780 このディレクトリが表示されます.
781 \end_layout
782
783 \begin_layout Labeling
784 \labelwidthstring 00.00.0000
785 \begin_inset Flex Code
786 status collapsed
787
788 \begin_layout Plain Layout
789 images/
790 \end_layout
791
792 \end_inset
793
794  このディレクトリには,
795
796 \begin_inset Flex MenuItem
797 status collapsed
798
799 \begin_layout Plain Layout
800 文書
801 \end_layout
802
803 \end_inset
804
805 ダイアログで使用される画像ファイルが納められています.さらに,
806 ツールバーの各アイコンや,
807 \SpecialChar LyX
808 を起動したときに現れるバナーも納められています.
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 kbd/
818 \end_layout
819
820 \end_inset
821
822  このディレクトリには,
823 キーボードのキー割当ファイルが納められています.詳細については,
824
825 \begin_inset CommandInset ref
826 LatexCommand ref
827 reference "sec:国際キー配列"
828 nolink "false"
829
830 \end_inset
831
832 をご覧ください.
833 \end_layout
834
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 layouts/
842 \end_layout
843
844 \end_inset
845
846  このディレクトリには,
847
848 \begin_inset CommandInset ref
849 LatexCommand ref
850 reference "cha:新規文書を導入"
851 nolink "false"
852
853 \end_inset
854
855 に述べられているテキストクラスおよびモジュールのファイルが納められています.
856 \end_layout
857
858 \begin_layout Labeling
859 \labelwidthstring 00.00.0000
860 \begin_inset Flex Code
861 status collapsed
862
863 \begin_layout Plain Layout
864 lyx2lyx
865 \end_layout
866
867 \end_inset
868
869  このディレクトリには,
870 \SpecialChar LyX
871 の各バージョン間の変換に使用される
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 lyx2lyx
877 \end_layout
878
879 \end_inset
880
881  Pythonスクリプトが納められています.複数のファイルの変換をバッチ処理したい場合には,
882 これらをコマンドラインから実行することもできます.
883 \end_layout
884
885 \begin_layout Labeling
886 \labelwidthstring 00.00.0000
887 \begin_inset Flex Code
888 status collapsed
889
890 \begin_layout Plain Layout
891 scripts/
892 \end_layout
893
894 \end_inset
895
896  このディレクトリには,
897
898 \begin_inset Flex MenuItem
899 status collapsed
900
901 \begin_layout Plain Layout
902 外用ひな型
903 \end_layout
904
905 \end_inset
906
907 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
908 自身が使用するスクリプトもいくつか収められています.
909 \end_layout
910
911 \begin_layout Labeling
912 \labelwidthstring 00.00.0000
913 \begin_inset Flex Code
914 status collapsed
915
916 \begin_layout Plain Layout
917 templates/
918 \end_layout
919
920 \end_inset
921
922  このディレクトリには,
923
924 \begin_inset CommandInset ref
925 LatexCommand ref
926 reference "sec:ひな型を作成する"
927 nolink "false"
928
929 \end_inset
930
931 で述べられている標準の\SpecialChar LyX
932 ひな型ファイルが納められています.
933 \end_layout
934
935 \begin_layout Labeling
936 \labelwidthstring 00.00.0000
937 \begin_inset Flex Code
938 status collapsed
939
940 \begin_layout Plain Layout
941 ui/
942 \end_layout
943
944 \end_inset
945
946  このディレクトリには,
947 \SpecialChar LyX
948 の操作画面を定義する拡張子
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 .ui
954 \end_layout
955
956 \end_inset
957
958 のファイルが納められています.つまり,
959 これらのファイルは,
960 どのメニュー項目がどのメニューに現れるかを定義し,
961 どの項目がツールバーに現れるかを定義しています.
962 \end_layout
963
964 \begin_layout Labeling
965 \labelwidthstring 00.00.0000
966 \begin_inset Flex Code
967 status collapsed
968
969 \begin_layout Plain Layout
970 xtemplates/
971 \end_layout
972
973 \end_inset
974
975  このディレクトリには,
976 \SpecialChar LyX
977 文書への外部素材の挿入のひな型を定義する,
978 拡張子が
979 \begin_inset Flex Code
980 status collapsed
981
982 \begin_layout Plain Layout
983 .xtemplate
984 \end_layout
985
986 \end_inset
987
988 のファイルが置かれています.第
989 \begin_inset CommandInset ref
990 LatexCommand ref
991 reference "chap:外部素材を取り込む"
992 plural "false"
993 caps "false"
994 noprefix "false"
995 nolink "false"
996
997 \end_inset
998
999 節参照.
1000 \end_layout
1001
1002 \begin_layout Subsection
1003 変更を加えない方がよいファイル
1004 \end_layout
1005
1006 \begin_layout Standard
1007 これらのファイルは\SpecialChar LyX
1008 が内部的に使用するもので,
1009 あなたが開発者でない限りは,
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 CREDITS
1020 \end_layout
1021
1022 \end_inset
1023
1024  このファイルは,
1025 \SpecialChar LyX
1026 開発陣の名簿です.この内容は,
1027 メニュー項目
1028 \begin_inset Flex MenuItem
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 ヘルプ\SpecialChar menuseparator
1033 LyXについて
1034 \end_layout
1035
1036 \end_inset
1037
1038 で表示されます.
1039 \end_layout
1040
1041 \begin_layout Labeling
1042 \labelwidthstring 00.00.0000
1043 \begin_inset Flex Code
1044 status collapsed
1045
1046 \begin_layout Plain Layout
1047 chkconfig.ltx
1048 \end_layout
1049
1050 \end_inset
1051
1052  これは,
1053 自動設定プロセスによって使用される\SpecialChar LaTeX
1054 スクリプトです.直接実行しないでください.
1055 \end_layout
1056
1057 \begin_layout Labeling
1058 \labelwidthstring 00.00.0000
1059 \begin_inset Flex Code
1060 status collapsed
1061
1062 \begin_layout Plain Layout
1063 configure.py
1064 \end_layout
1065
1066 \end_inset
1067
1068  これは,
1069 \SpecialChar LyX
1070 の環境構成によって使用されるスクリプトです.これは,
1071 このスクリプトを実行したディレクトリに設定ファイルを生成します.
1072 \end_layout
1073
1074 \begin_layout Subsection
1075 ひとこと必要なファイル群
1076 \end_layout
1077
1078 \begin_layout Labeling
1079 \labelwidthstring 00.00.0000
1080 \begin_inset Flex Code
1081 status collapsed
1082
1083 \begin_layout Plain Layout
1084 encodings
1085 \end_layout
1086
1087 \end_inset
1088
1089  このファイルには,
1090 各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
1091 \end_layout
1092
1093 \begin_layout Labeling
1094 \labelwidthstring 00.00.0000
1095 \begin_inset Flex Code
1096 status collapsed
1097
1098 \begin_layout Plain Layout
1099 languages
1100 \end_layout
1101
1102 \end_inset
1103
1104  このファイルには,
1105 現在\SpecialChar LyX
1106 がサポートしている言語の全一覧が載っています.
1107 \end_layout
1108
1109 \begin_layout Labeling
1110 \labelwidthstring 00.00.0000
1111 \begin_inset Flex Code
1112 status collapsed
1113
1114 \begin_layout Plain Layout
1115 latexfonts
1116 \end_layout
1117
1118 \end_inset
1119
1120  サポートされているフォントに関する情報が掲載されています.
1121 \end_layout
1122
1123 \begin_layout Labeling
1124 \labelwidthstring 00.00.0000
1125 \begin_inset Flex Code
1126 status collapsed
1127
1128 \begin_layout Plain Layout
1129 layouttranslations
1130 \end_layout
1131
1132 \end_inset
1133
1134  このファイルは,
1135 国際化された段落様式の翻訳が収録されています(
1136 \begin_inset CommandInset ref
1137 LatexCommand ref
1138 reference "subsec:段落様式の国際化"
1139 nolink "false"
1140
1141 \end_inset
1142
1143 参照).
1144 \end_layout
1145
1146 \begin_layout Labeling
1147 \labelwidthstring 00.00.0000
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152 unicodesymbols
1153 \end_layout
1154
1155 \end_inset
1156
1157  このファイルは,
1158 unicodeエンコーディングされたグリフに関する情報と,
1159 \SpecialChar LyX
1160 が\SpecialChar LaTeX
1161 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1162 \end_layout
1163
1164 \begin_layout Section
1165 ユーザのローカル設定ディレクトリ
1166 \end_layout
1167
1168 \begin_layout Standard
1169 \SpecialChar LyX
1170 を非特権ユーザとして利用している場合でも,
1171 自分自身で使うために,
1172 \SpecialChar LyX
1173 の設定を変更したいと思うかもしれません.
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178 UserDir
1179 \end_layout
1180
1181 \end_inset
1182
1183 ディレクトリには,
1184 すべての個人設定ファイルが収められています.これは,
1185
1186 \begin_inset Flex MenuItem
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 ヘルプ\SpecialChar menuseparator
1191 LyXについて
1192 \end_layout
1193
1194 \end_inset
1195
1196 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1197
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 LyXDir
1203 \end_layout
1204
1205 \end_inset
1206
1207 のミラーとして使用されており,
1208 これは
1209 \begin_inset Flex Code
1210 status collapsed
1211
1212 \begin_layout Plain Layout
1213 UserDir
1214 \end_layout
1215
1216 \end_inset
1217
1218 内のすべてのファイルが,
1219
1220 \begin_inset Flex Code
1221 status collapsed
1222
1223 \begin_layout Plain Layout
1224 LyXDir
1225 \end_layout
1226
1227 \end_inset
1228
1229 すし,
1230 自分自身で使うために個人のローカルディレクトリに置くこともできます.
1231 \end_layout
1232
1233 \begin_layout Standard
1234 わかりやすくするために,
1235 いくつか例を挙げましょう.
1236 \end_layout
1237
1238 \begin_layout Itemize
1239 \begin_inset Flex MenuItem
1240 status collapsed
1241
1242 \begin_layout Plain Layout
1243 ツール\SpecialChar menuseparator
1244 設定
1245 \end_layout
1246
1247 \end_inset
1248
1249 ダイアログで設定されるユーザ設定は,
1250
1251 \begin_inset Flex Code
1252 status collapsed
1253
1254 \begin_layout Plain Layout
1255 UserDir
1256 \end_layout
1257
1258 \end_inset
1259
1260 中の
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 preferences
1266 \end_layout
1267
1268 \end_inset
1269
1270 ファイルに保存されます.
1271 \end_layout
1272
1273 \begin_layout Itemize
1274 \begin_inset Flex MenuItem
1275 status collapsed
1276
1277 \begin_layout Plain Layout
1278 ツール\SpecialChar menuseparator
1279 環境構成
1280 \end_layout
1281
1282 \end_inset
1283
1284 を使用して環境構成を行うと,
1285 \SpecialChar LyX
1286
1287 \begin_inset Flex Code
1288 status collapsed
1289
1290 \begin_layout Plain Layout
1291 configure.py
1292 \end_layout
1293
1294 \end_inset
1295
1296 スクリプトを実行し,
1297 その結果のファイルは,
1298 ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1299
1300 \begin_inset Flex Code
1301 status collapsed
1302
1303 \begin_layout Plain Layout
1304 UserDir/layouts
1305 \end_layout
1306
1307 \end_inset
1308
1309 にご自身で追加したテキストファイルは,
1310
1311 \begin_inset Flex MenuItem
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 文書\SpecialChar menuseparator
1316 設定
1317 \end_layout
1318
1319 \end_inset
1320
1321 ダイアログのクラス一覧に表示されるようになることを意味します.
1322 \end_layout
1323
1324 \begin_layout Itemize
1325 たとえば,
1326 \SpecialChar LyX
1327 のFTPサイトから最新の取扱説明書をとってきたものの,
1328 使用中のシステム上で管理者権限がないために,
1329 それをインストールすることができなかったとしても,
1330 それらのファイルを
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335 UserDir/doc/
1336 \end_layout
1337
1338 \end_inset
1339
1340 ディレクトリにコピーすれば,
1341
1342 \begin_inset Flex MenuItem
1343 status collapsed
1344
1345 \begin_layout Plain Layout
1346 ヘルプ
1347 \end_layout
1348
1349 \end_inset
1350
1351 メニュー項目はこれらを開くようになります!
1352
1353 \end_layout
1354
1355 \begin_layout Section
1356 \SpecialChar LyX
1357 を複数の設定を使って実行するには
1358 \end_layout
1359
1360 \begin_layout Standard
1361 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,
1362 2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,
1363 使用する度に異なるキー割当を使用したり,
1364 異なるプリンタ設定を使用したいことがあるかもしれません.これは,
1365 複数の設定ディレクトリを作ることで実現することができます.そして,
1366 実行時にどのディレクトリを使用するか指定するのです.
1367 \end_layout
1368
1369 \begin_layout Standard
1370 \SpecialChar LyX
1371 をコマンドラインスイッチ
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376 -userdir
1377 \end_layout
1378
1379 \end_inset
1380
1381 P
1382 \emph on
1383 <ディレクトリ名>
1384 \emph default
1385 と共に起動すると,
1386 設定を既定のディレクトリではなく,
1387 指定したディレクトリから読み込むように,
1388 指示することになります(\SpecialChar LyX
1389
1390 \begin_inset Flex Code
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 -userdir
1395 \end_layout
1396
1397 \end_inset
1398
1399 スイッチなしで実行すれば,
1400 既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,
1401 \SpecialChar LyX
1402 は,
1403 初めて\SpecialChar LyX
1404 を実行したときに既定ディレクトリを訊いてくるのと同様に,
1405 そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,
1406 既定ディレクトリで行うのと全く同じように設定オプションを修正することができます.これらのディレクトリは完全に独立しています(が,
1407 読み進めてください).また,
1408 環境変数
1409 \begin_inset Flex Code
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413 LYX_USERDIR_20x
1414 \end_layout
1415
1416 \end_inset
1417
1418 を特定の値に設定しても,
1419 全く同じ効果があります.
1420 \end_layout
1421
1422 \begin_layout Standard
1423 複数の設定を持つことはまた,
1424 維持の手間も増えるということです.もし新しいレイアウトを
1425 \begin_inset Flex Code
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 NewUserDir/layouts
1430 \end_layout
1431
1432 \end_inset
1433
1434 に加えて,
1435 これをすべての設定で利用できるようにしたいならば,
1436 これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,
1437 次のようなトリックを使用してください.\SpecialChar LyX
1438 が新しい設定ディレクトリを生成すると,
1439 そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1440 空のサブディレクトリを,
1441 既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1442 \begin_inset Flex Code
1443 status collapsed
1444
1445 \begin_layout Plain Layout
1446 doc/
1447 \end_layout
1448
1449 \end_inset
1450
1451 サブディレクトリには,
1452 設定スクリプト(
1453 \begin_inset Flex MenuItem
1454 status collapsed
1455
1456 \begin_layout Plain Layout
1457 ツール\SpecialChar menuseparator
1458 環境構成
1459 \end_layout
1460
1461 \end_inset
1462
1463 で使用可能)が書き出した,
1464 設定毎に異なるファイルが含まれていますので,
1465 注意を払ってください.
1466 \end_layout
1467
1468 \begin_layout Chapter
1469 設定ダイアログ
1470 \end_layout
1471
1472 \begin_layout Standard
1473 設定ダイアログのオプションのすべては,
1474
1475 \emph on
1476 ユーザーの手引き
1477 \emph default
1478 の付録
1479 \emph on
1480 設定ダイアログ
1481 \emph default
1482 に述べられています.オプションのうちいくつかについて,
1483 ここでさらに詳細に説明します.
1484 \end_layout
1485
1486 \begin_layout Section
1487 ファイル形式
1488 \begin_inset CommandInset label
1489 LatexCommand label
1490 name "sec:ファイル形式"
1491
1492 \end_inset
1493
1494
1495 \end_layout
1496
1497 \begin_layout Standard
1498 ファイル形式が定義されていない場合,
1499 はじめの一歩は,
1500 使いたいと思うファイル形式を定義することです.それには,
1501
1502 \begin_inset Flex MenuItem
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 ツール\SpecialChar menuseparator
1507 設定
1508 \end_layout
1509
1510 \end_inset
1511
1512 ダイアログを開いてください.
1513 \begin_inset Flex MenuItem
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517 ファイル処理\SpecialChar menuseparator
1518 ファイル形式
1519 \end_layout
1520
1521 \end_inset
1522
1523 の中で
1524 \begin_inset Flex MenuItem
1525 status collapsed
1526
1527 \begin_layout Plain Layout
1528 新規\SpecialChar ldots
1529
1530 \end_layout
1531
1532 \end_inset
1533
1534 ボタンを押して,
1535 登録する新しい形式を定義してください.
1536 \begin_inset Flex MenuItem
1537 status collapsed
1538
1539 \begin_layout Plain Layout
1540 形式
1541 \end_layout
1542
1543 \end_inset
1544
1545 フィールドは,
1546 GUI中で形式を認識するために用いられる名称です.
1547 \begin_inset Flex MenuItem
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 短縮名
1552 \end_layout
1553
1554 \end_inset
1555
1556 は,
1557 形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1558 \begin_inset Flex MenuItem
1559 status collapsed
1560
1561 \begin_layout Plain Layout
1562 ショートカット
1563 \end_layout
1564
1565 \end_inset
1566
1567 フィールドは,
1568 メニュー中でショートカットを提供するのに使用されます(たとえば,
1569
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 Ctrl+D
1575 \end_layout
1576
1577 \end_inset
1578
1579 を押すと
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 表示\SpecialChar menuseparator
1585 DVI
1586 \end_layout
1587
1588 \end_inset
1589
1590 となります).
1591 \end_layout
1592
1593 \begin_layout Standard
1594 形式には,
1595
1596 \begin_inset Flex MenuItem
1597 status collapsed
1598
1599 \begin_layout Plain Layout
1600 閲覧プログラム
1601 \end_layout
1602
1603 \end_inset
1604
1605
1606 \begin_inset Flex MenuItem
1607 status collapsed
1608
1609 \begin_layout Plain Layout
1610 編集プログラム
1611 \end_layout
1612
1613 \end_inset
1614
1615 を関連づけることができます.たとえば,
1616 PostScriptファイルを閲覧するのに
1617 \begin_inset Flex MenuItem
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 Ghostview
1622 \end_layout
1623
1624 \end_inset
1625
1626 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,
1627 コマンドを定義するのに,
1628 次節に掲げる4つの変数を用いることができます.この閲覧プログラムは,
1629 \SpecialChar LyX
1630 中で画像を閲覧したり
1631 \begin_inset Flex MenuItem
1632 status collapsed
1633
1634 \begin_layout Plain Layout
1635 表示
1636 \end_layout
1637
1638 \end_inset
1639
1640 メニューを使用したときに起動されます.一方,
1641 編集プログラムは,
1642 たとえば,
1643 画像を右クリックして現れるコンテクストメニューで
1644 \begin_inset Flex MenuItem
1645 status collapsed
1646
1647 \begin_layout Plain Layout
1648 外部で編集
1649 \end_layout
1650
1651 \end_inset
1652
1653 を選択したときに起動します.
1654 \end_layout
1655
1656 \begin_layout Standard
1657 ファイル形式の
1658 \begin_inset Flex MenuItem
1659 status collapsed
1660
1661 \begin_layout Plain Layout
1662 MIME
1663 \end_layout
1664
1665 \end_inset
1666
1667 型は必須ではありませんが,
1668 指定するときには,
1669 すべての形式の中で一意的なものでなくてはなりません.これは,
1670 この形式のファイルをファイル内容から検出するのに用いられます.重要なファイル形式のうちには,
1671
1672 \begin_inset CommandInset href
1673 LatexCommand href
1674 name "IANA"
1675 target "http://www.iana.org/assignments/media-types/"
1676 literal "false"
1677
1678 \end_inset
1679
1680 に公式に登録されたMIME型がないものがあります.そこで,
1681 \SpecialChar LyX
1682 は,
1683
1684 \begin_inset CommandInset href
1685 LatexCommand href
1686 name "freedesktop.org"
1687 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1688 literal "false"
1689
1690 \end_inset
1691
1692 で指定されているMIME型拡張表を使用しています.
1693 \end_layout
1694
1695 \begin_layout Standard
1696 \begin_inset Flex MenuItem
1697 status collapsed
1698
1699 \begin_layout Plain Layout
1700 文書形式
1701 \end_layout
1702
1703 \end_inset
1704
1705 オプションは,
1706 \SpecialChar LyX
1707 に,
1708 この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,
1709 適切な変換経路が存在する場合には(第
1710 \begin_inset CommandInset ref
1711 LatexCommand ref
1712 reference "sec:変換子"
1713 nolink "false"
1714
1715 \end_inset
1716
1717 節を参照),
1718 この形式が
1719 \begin_inset Flex MenuItem
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 ファイル\SpecialChar menuseparator
1724 書き出し
1725 \end_layout
1726
1727 \end_inset
1728
1729
1730 \begin_inset Flex MenuItem
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 表示
1735 \end_layout
1736
1737 \end_inset
1738
1739 footlabel Label color for footnotす.
1740 \begin_inset Flex Code
1741 status collapsed
1742
1743 \begin_layout Plain Layout
1744 png
1745 \end_layout
1746
1747 \end_inset
1748
1749 のような純粋な画像形式は,
1750 このオプションを有効にしてはいけません.
1751 \begin_inset Flex Code
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755 pdf
1756 \end_layout
1757
1758 \end_inset
1759
1760 のようにベクター画像であると同時に文書でもあるような形式は,
1761 これを有効にします.
1762 \end_layout
1763
1764 \begin_layout Standard
1765 \begin_inset Flex MenuItem
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 ベクター画像形式
1770 \end_layout
1771
1772 \end_inset
1773
1774 オプションは,
1775 \SpecialChar LyX
1776 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1777
1778 \begin_inset Flex MenuItem
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 pdflatex
1783 \end_layout
1784
1785 \end_inset
1786
1787 を書き出す際に,
1788 内包されている画像をどの形式に変換するかを決定するのに使用されます.
1789 \begin_inset Flex MenuItem
1790 status collapsed
1791
1792 \begin_layout Plain Layout
1793 pdflatex
1794 \end_layout
1795
1796 \end_inset
1797
1798 は,
1799
1800 \begin_inset Flex MenuItem
1801 status collapsed
1802
1803 \begin_layout Plain Layout
1804 pdf
1805 \end_layout
1806
1807 \end_inset
1808
1809
1810 \begin_inset Flex MenuItem
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814 png
1815 \end_layout
1816
1817 \end_inset
1818
1819
1820 \begin_inset Flex MenuItem
1821 status collapsed
1822
1823 \begin_layout Plain Layout
1824 Des
1825 \end_layout
1826
1827 \end_inset
1828
1829 以外の画像形式を取り扱うことができないので,
1830 内包されている画像は,
1831 これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1832 \begin_inset Flex MenuItem
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836 pdf
1837 \end_layout
1838
1839 \end_inset
1840
1841
1842 \begin_inset Flex MenuItem
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846 png
1847 \end_layout
1848
1849 \end_inset
1850
1851
1852 \begin_inset Flex MenuItem
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 jpg
1857 \end_layout
1858
1859 \end_inset
1860
1861 のいずれかになっていない場合には,
1862 ベクター画像形式オプションが有効になっている場合には
1863 \begin_inset Flex MenuItem
1864 status collapsed
1865
1866 \begin_layout Plain Layout
1867 pdf
1868 \end_layout
1869
1870 \end_inset
1871
1872 に変換され,
1873 そうでない場合には
1874 \begin_inset Flex MenuItem
1875 status collapsed
1876
1877 \begin_layout Plain Layout
1878 png
1879 \end_layout
1880
1881 \end_inset
1882
1883 に変換されます.
1884 \end_layout
1885
1886 \begin_layout Section
1887 複写子
1888 \end_layout
1889
1890 \begin_layout Standard
1891 形式の変換はすべて,
1892 \SpecialChar LyX
1893 の一時ディレクトリで行われるため,
1894 変換用にファイルを一時ディレクトリにコピーする前段階で,
1895 ファイルに変更を加える必要のあることがあります
1896 \begin_inset Foot
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 たとえば,
1901 ファイルが他のファイル—
1902 たとえば画像—
1903 を,
1904 相対ファイル名を用いて参照している場合,
1905 このファイルが一時ディレクトリにコピーされると参照が無効になる場合があります.
1906 \end_layout
1907
1908 \end_inset
1909
1910 .これは複写子によって取り扱われ,
1911 複写子は,
1912 ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,
1913 その過程でファイルに変更を加えます.
1914 \end_layout
1915
1916 \begin_layout Standard
1917 複写子の定義においては,
1918 以下の8つの変数を用いることができます.
1919 \end_layout
1920
1921 \begin_layout Labeling
1922 \labelwidthstring 00.00.0000
1923 \begin_inset Flex Code
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 $$s
1928 \end_layout
1929
1930 \end_inset
1931
1932  \SpecialChar LyX
1933 のシステムディレクトリ(例:
1934
1935 \begin_inset Flex MenuItem
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 /usr/share/lyx
1940 \end_layout
1941
1942 \end_inset
1943
1944
1945 \end_layout
1946
1947 \begin_layout Labeling
1948 \labelwidthstring 00.00.0000
1949 \begin_inset Flex Code
1950 status collapsed
1951
1952 \begin_layout Plain Layout
1953 $$i
1954 \end_layout
1955
1956 \end_inset
1957
1958  入力ファイル
1959 \end_layout
1960
1961 \begin_layout Labeling
1962 \labelwidthstring 00.00.0000
1963 \begin_inset Flex Code
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967 $$o
1968 \end_layout
1969
1970 \end_inset
1971
1972  出力ファイル
1973 \end_layout
1974
1975 \begin_layout Labeling
1976 \labelwidthstring 00.00.0000
1977 \begin_inset Flex Code
1978 status collapsed
1979
1980 \begin_layout Plain Layout
1981 $$b
1982 \end_layout
1983
1984 \end_inset
1985
1986  \SpecialChar LyX
1987 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1988 \end_layout
1989
1990 \begin_layout Labeling
1991 \labelwidthstring 00.00.0000
1992 \begin_inset Flex Code
1993 status collapsed
1994
1995 \begin_layout Plain Layout
1996 $$p
1997 \end_layout
1998
1999 \end_inset
2000
2001  \SpecialChar LyX
2002 一時ディレクトリのフルパス名
2003 \end_layout
2004
2005 \begin_layout Labeling
2006 \labelwidthstring 00.00.0000
2007 \begin_inset Flex Code
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 $$r
2012 \end_layout
2013
2014 \end_inset
2015
2016  処理されている元の\SpecialChar LyX
2017 ファイルのフルパス名
2018 \end_layout
2019
2020 \begin_layout Labeling
2021 \labelwidthstring 00.00.0000
2022 \begin_inset Flex Code
2023 status collapsed
2024
2025 \begin_layout Plain Layout
2026 $$f
2027 \end_layout
2028
2029 \end_inset
2030
2031  \SpecialChar LyX
2032 ファイルのファイル名(ディレクトリパスなし)
2033 \end_layout
2034
2035 \begin_layout Labeling
2036 \labelwidthstring 00.00.0000
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 $$l
2042 \end_layout
2043
2044 \end_inset
2045
2046  「\SpecialChar LaTeX
2047 名」
2048 \end_layout
2049
2050 \begin_layout Standard
2051 最後の変数は,
2052 \SpecialChar LaTeX
2053
2054 \series bold
2055
2056 \backslash
2057 include
2058 \series default
2059 コマンドで使用されるのと同形式のファイル名です.これは,
2060 書き出すファイルがそのようなインクルードに適している場合のみ,
2061 使用さるべきものです.
2062 \end_layout
2063
2064 \begin_layout Standard
2065 複写子は,
2066 出力ファイルに関する操作であれば,
2067 ほとんどすべてに対応することができます.たとえば,
2068 生成したPDFファイルを,
2069
2070 \begin_inset Flex Code
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 /home/you/pdf/
2075 \end_layout
2076
2077 \end_inset
2078
2079 という特別なディレクトリにコピーしたいものとしましょう.その場合には,
2080 以下のようなシェルスクリプトを書きます.
2081 \end_layout
2082
2083 \begin_layout Standard
2084 \begin_inset listings
2085 inline false
2086 status open
2087
2088 \begin_layout Plain Layout
2089
2090 #!/bin/bash
2091 \end_layout
2092
2093 \begin_layout Plain Layout
2094
2095 FROMFILE=$1
2096 \end_layout
2097
2098 \begin_layout Plain Layout
2099
2100 TOFILE=`basename $2`
2101 \end_layout
2102
2103 \begin_layout Plain Layout
2104
2105 DescriptionE /home/you/pdf/$TOFILE
2106 \end_layout
2107
2108 \end_inset
2109
2110 これを,
2111 例えば
2112 \begin_inset Flex Code
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116 /home/you/.lyx/scripts/pdfcopier.sh
2117 \end_layout
2118
2119 \end_inset
2120
2121 のような,
2122 自身のローカル\SpecialChar LyX
2123 ディレクトリに保存し,
2124 お使いのプラットフォームが必要とするならば,
2125 実行可能属性を付与します.それから,
2126
2127 \begin_inset Flex MenuItem
2128 status collapsed
2129
2130 \begin_layout Plain Layout
2131 ツール\SpecialChar menuseparator
2132 設定
2133 \end_layout
2134
2135 \end_inset
2136
2137 ダイアログの
2138 \begin_inset Flex MenuItem
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 ファイル処理\SpecialChar menuseparator
2143 ファイル形式
2144 \end_layout
2145
2146 \end_inset
2147
2148 の中で,
2149
2150 \begin_inset Flex MenuItem
2151 status collapsed
2152
2153 \begin_layout Plain Layout
2154 PDF(pdflatex)
2155 \end_layout
2156
2157 \end_inset
2158
2159 形式—
2160 あるいは他のPDF形式のうちどれか—
2161 を選択し,
2162
2163 \begin_inset Flex MenuItem
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167 複写子
2168 \end_layout
2169
2170 \end_inset
2171
2172 フィールドに
2173 \begin_inset Flex Code
2174 status collapsed
2175
2176 \begin_layout Plain Layout
2177 pdfcopier.sh $$i $$o
2178 \end_layout
2179
2180 \end_inset
2181
2182 と入力します.
2183 \end_layout
2184
2185 \begin_layout Standard
2186 複写子は,
2187 \SpecialChar LyX
2188 自身が様々な変換に使用します.たとえば,
2189 適切なプログラムが検出された場合,
2190 \SpecialChar LyX
2191 は自動的に
2192 \begin_inset Flex MenuItem
2193 status collapsed
2194
2195 \begin_layout Plain Layout
2196 HTML
2197 \end_layout
2198
2199 \end_inset
2200
2201 形式と
2202 \begin_inset Flex MenuItem
2203 status collapsed
2204
2205 \begin_layout Plain Layout
2206 HTML
2207 \begin_inset space ~
2208 \end_inset
2209
2210 (MS Word)
2211 \end_layout
2212
2213 \end_inset
2214
2215 形式の複写子を導入します.これらの形式を書き出す際,
2216 複写子は,
2217 本体のHTMLファイルだけでなく,
2218 関連した様々なファイル(スタイルファイルや画像など)もコピーされるように手配します.これらのファイルはすべて,
2219 元の\SpecialChar LyX
2220 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2221 \begin_inset Foot
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 この複写子の挙動は調整することができます.非必須の「-e」オプションは,
2226 コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,
2227 すべてのファイルがコピーされます.「-t」引数は,
2228 生成したディレクトリに書き加える拡張子を指定するものです.既定値では,
2229 これは「
2230 \begin_inset Flex MenuItem
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 LyXconv
2235 \end_layout
2236
2237 \end_inset
2238
2239 」となっているので,
2240
2241 \begin_inset Flex MenuItem
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 /path/to/filename.lyx
2246 \end_layout
2247
2248 \end_inset
2249
2250 から生成されたHTMLファイルは,
2251
2252 \begin_inset Flex MenuItem
2253 status collapsed
2254
2255 \begin_layout Plain Layout
2256 /path/to/filename.html.LyXconv
2257 \end_layout
2258
2259 \end_inset
2260
2261 となります..
2262  
2263 \end_layout
2264
2265 \end_inset
2266
2267
2268 \end_layout
2269
2270 \begin_layout Section
2271 変換子
2272 \begin_inset CommandInset label
2273 LatexCommand label
2274 name "sec:変換子"
2275
2276 \end_inset
2277
2278
2279 \end_layout
2280
2281 \begin_layout Standard
2282 各形式間でファイルを変換するために,
2283 ご自身の変換子を定義することができます.これは,
2284
2285 \begin_inset Flex MenuItem
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 ツール\SpecialChar menuseparator
2290 設定\SpecialChar menuseparator
2291 ファイル処理\SpecialChar menuseparator
2292 変換子
2293 \end_layout
2294
2295 \end_inset
2296
2297 ダイアログで行います.
2298 \end_layout
2299
2300 \begin_layout Standard
2301 新規に変換子を定義するには,
2302 ドロップダウンリストから
2303 \begin_inset Flex MenuItem
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 変換元の形式
2308 \end_layout
2309
2310 \end_inset
2311
2312
2313 \begin_inset Flex MenuItem
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 変換先の形式
2318 \end_layout
2319
2320 \end_inset
2321
2322 を選択し,
2323 変換に必要なコマンドを入力してから
2324 \begin_inset Flex MenuItem
2325 status collapsed
2326
2327 \begin_layout Plain Layout
2328 追加
2329 \end_layout
2330
2331 \end_inset
2332
2333 ボタンを押してください.変換子の定義には,
2334 以下のような変数を使用することができます.
2335 \end_layout
2336
2337 \begin_layout Labeling
2338 \labelwidthstring 00.00.0000
2339 \begin_inset Flex Code
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 $$s
2344 \end_layout
2345
2346 \end_inset
2347
2348  \SpecialChar LyX
2349 システムディレクトリ
2350 \end_layout
2351
2352 \begin_layout Labeling
2353 \labelwidthstring 00.00.0000
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 $$i
2359 \end_layout
2360
2361 \end_inset
2362
2363  入力ファイル
2364 \end_layout
2365
2366 \begin_layout Labeling
2367 \labelwidthstring 00.00.0000
2368 \begin_inset Flex Code
2369 status collapsed
2370
2371 \begin_layout Plain Layout
2372 $$o
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 $$b
2387 \end_layout
2388
2389 \end_inset
2390
2391  入力ファイルのベースファイル名(拡張子をとった部分)
2392 \end_layout
2393
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Flex Code
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 $$p
2401 \end_layout
2402
2403 \end_inset
2404
2405  入力ファイルのパス
2406 \end_layout
2407
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Flex Code
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 $$r
2415 \end_layout
2416
2417 \end_inset
2418
2419  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2420 \end_layout
2421
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 $$e
2429 \end_layout
2430
2431 \end_inset
2432
2433  文書エンコーディングのiconv名
2434 \end_layout
2435
2436 \begin_layout Standard
2437 \begin_inset Flex MenuItem
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 追加フラグ
2442 \end_layout
2443
2444 \end_inset
2445
2446 フィールドには,
2447 以下のフラグをコンマで区切って入力することができます.
2448 \end_layout
2449
2450 \begin_layout Labeling
2451 \labelwidthstring 00.00.0000
2452 \begin_inset Flex Code
2453 status collapsed
2454
2455 \begin_layout Plain Layout
2456 latex=flavor
2457 \end_layout
2458
2459 \end_inset
2460
2461  この変換子が\SpecialChar LaTeX
2462 の一種を実行することを示します.これによって,
2463 \SpecialChar LyX
2464 の\SpecialChar LaTeX
2465 エラーログに記録を残せるようになります.オプションの
2466 \begin_inset Flex Code
2467 status open
2468
2469 \begin_layout Plain Layout
2470 flavor
2471 \end_layout
2472
2473 \end_inset
2474
2475 値は実行する\SpecialChar LaTeX
2476 の形を指定します( 
2477 \begin_inset Flex Code
2478 status open
2479
2480 \begin_layout Plain Layout
2481 latex,
2482  pdflatex,
2483  platex,
2484  xetex,
2485  luatex
2486 \end_layout
2487
2488 \end_inset
2489
2490 ).値が指定されなければ
2491 \begin_inset Flex Code
2492 status open
2493
2494 \begin_layout Plain Layout
2495 latex
2496 \end_layout
2497
2498 \end_inset
2499
2500 が用いられます.
2501 \end_layout
2502
2503 \begin_layout Labeling
2504 \labelwidthstring 00.00.0000
2505 \begin_inset Flex Code
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 needauth
2510 \end_layout
2511
2512 \end_inset
2513
2514  この変換子が安全でないと見做されていて,
2515 ユーザーの許可が必要であることを示します.
2516 \family sans
2517 \series bold
2518 ツール\SpecialChar menuseparator
2519 設定\SpecialChar menuseparator
2520 ファイル処理\SpecialChar menuseparator
2521 変換子
2522 \family default
2523 \series default
2524
2525 \begin_inset space \thinspace{}
2526 \end_inset
2527
2528 の設定によって,
2529 ユーザーは,
2530 (a.)現在の文書を一時的もしくは恒久的に信頼するか否かを尋ねられるか,
2531 (b.)セキュリティ上の懸念によって変換は不可能であることを伝えられるか,
2532 (c.)恒久的な同意を与えたので通知されないかのいずれかになります.任意のプログラムを実行する可能性のある変換子には,
2533 このフラグを設定してください.
2534 \end_layout
2535
2536 \begin_layout Labeling
2537 \labelwidthstring 00.00.0000
2538 \begin_inset Flex Code
2539 status collapsed
2540
2541 \begin_layout Plain Layout
2542 needaux=flavor
2543 \end_layout
2544
2545 \end_inset
2546
2547  変換に\SpecialChar LaTeX
2548
2549 \begin_inset Flex MenuItem
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 .aux
2554 \end_layout
2555
2556 \end_inset
2557
2558 ファイルが必要であることを示します.オプションの
2559 \begin_inset Flex Code
2560 status open
2561
2562 \begin_layout Plain Layout
2563 flavor
2564 \end_layout
2565
2566 \end_inset
2567
2568 値は
2569 \begin_inset Flex MenuItem
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 .aux
2574 \end_layout
2575
2576 \end_inset
2577
2578 ファイルを生成するのに実行する\SpecialChar LaTeX
2579 の形を指定します( 
2580 \begin_inset Flex Code
2581 status open
2582
2583 \begin_layout Plain Layout
2584 latex,
2585  pdflatex,
2586  platex,
2587  xetex,
2588  luatex
2589 \end_layout
2590
2591 \end_inset
2592
2593 ).値が指定されなければ
2594 \begin_inset Flex Code
2595 status open
2596
2597 \begin_layout Plain Layout
2598 latex
2599 \end_layout
2600
2601 \end_inset
2602
2603 が用いられます.
2604 \end_layout
2605
2606 \begin_layout Labeling
2607 \labelwidthstring 00.00.0000
2608 \begin_inset Flex Code
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 nice
2613 \end_layout
2614
2615 \end_inset
2616
2617  バックエンドからの
2618 \begin_inset Quotes erd
2619 \end_inset
2620
2621 nice
2622 \begin_inset Quotes erd
2623 \end_inset
2624
2625 なファイル,
2626 つまり\SpecialChar LyX
2627 が書き出す\SpecialChar LaTeX
2628 ファイルのように,
2629
2630 \begin_inset Flex Code
2631 status open
2632
2633 \begin_layout Plain Layout
2634 input@path
2635 \end_layout
2636
2637 \end_inset
2638
2639 のない\SpecialChar LaTeX
2640 ファイルを必要とします.
2641 \end_layout
2642
2643 \begin_layout Labeling
2644 \labelwidthstring 00.00.0000
2645 \begin_inset Flex Code
2646 status collapsed
2647
2648 \begin_layout Plain Layout
2649 xml
2650 \end_layout
2651
2652 \end_inset
2653
2654  出力がXMLであることを示します.
2655 \end_layout
2656
2657 \begin_layout Standard
2658 以下の4つのフラグは 
2659 \begin_inset Flex MenuItem
2660 status collapsed
2661
2662 \begin_layout Plain Layout
2663 key
2664 \begin_inset space ~
2665 \end_inset
2666
2667 =
2668 \begin_inset space ~
2669 \end_inset
2670
2671 value
2672 \end_layout
2673
2674 \end_inset
2675
2676 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2677 \end_layout
2678
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 hyperref-driver
2686 \end_layout
2687
2688 \end_inset
2689
2690  この変換子が
2691 \family sans
2692 hyperref
2693 \family default
2694 パッケージとともに読み込む必要のあるドライバ名.一部のPDF機能を利用するには正しいドライバを読み込む必要があります.詳細については,
2695
2696 \family sans
2697 hyperref
2698 \family default
2699 の取扱説明書を参照してください.
2700 \end_layout
2701
2702 \begin_layout Labeling
2703 \labelwidthstring 00.00.0000
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 parselog
2709 \end_layout
2710
2711 \end_inset
2712
2713  これを指定すると,
2714 変換子の標準エラーが
2715 \begin_inset Flex Code
2716 status collapsed
2717
2718 \begin_layout Plain Layout
2719 infile.out
2720 \end_layout
2721
2722 \end_inset
2723
2724 ファイルにリダイレクトされ,
2725 引数に指定されたスクリプトが
2726 \begin_inset Flex Code
2727 status collapsed
2728
2729 \begin_layout Plain Layout
2730 script < infile.out > infile.log
2731 \end_layout
2732
2733 \end_inset
2734
2735 の形で実行されるようになります.引数には
2736 \begin_inset Flex Code
2737 status collapsed
2738
2739 \begin_layout Plain Layout
2740 $$s
2741 \end_layout
2742
2743 \end_inset
2744
2745 を指定することができます.
2746 \end_layout
2747
2748 \begin_layout Labeling
2749 \labelwidthstring 00.00.0000
2750 \begin_inset Flex Code
2751 status collapsed
2752
2753 \begin_layout Plain Layout
2754 resultdir
2755 \end_layout
2756
2757 \end_inset
2758
2759  これには,
2760 変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2761 はこのディレクトリを作成せず,
2762 ここに何もコピーしませんが,
2763 このディレクトリを宛先にコピーします.引数には,
2764
2765 \begin_inset Flex Code
2766 status collapsed
2767
2768 \begin_layout Plain Layout
2769 $$b
2770 \end_layout
2771
2772 \end_inset
2773
2774 を使用することができ,
2775 これはディレクトリがコピーされる際に,
2776 入力ファイルおよび出力ファイルのベース名で置換されます.
2777 \begin_inset Newline newline
2778 \end_inset
2779
2780 resultdirとusetempdirは,
2781 同時に用いることはできませんのでご注意ください.前者が指定されているときには,
2782 後者は無視されます.
2783 \end_layout
2784
2785 \begin_layout Labeling
2786 \labelwidthstring 00.00.0000
2787 \begin_inset Flex Code
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 resultfile
2792 \end_layout
2793
2794 \end_inset
2795
2796  これは出力ファイル名を指定するもので,
2797
2798 \begin_inset Flex Code
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 $$b
2803 \end_layout
2804
2805 \end_inset
2806
2807 を使用することができます.resultdirが指定されているときのみ有効で,
2808 必ず用いる必要はありません.指定されていなければ,
2809 既定値は「index」です.
2810 \end_layout
2811
2812 \begin_layout Standard
2813 \SpecialChar LyX
2814 とともに導入されている変換子の一部には適切なhyperref-driverが設定されています.しかしながら最後の3つは,
2815 \SpecialChar LyX
2816 に前もって導入されている変換子には,
2817 現在いずれも使用されておりません.
2818 \end_layout
2819
2820 \begin_layout Standard
2821 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,
2822 「\SpecialChar LyX
2823 からPostScript」変換子が定義されていないのに,
2824 \SpecialChar LyX
2825 はPostScriptを書き出していることに気づかれることでしょう.これは,
2826 まず\SpecialChar LaTeX
2827 ファイルを生成した後に(これには変換子を定義する必要はありません),
2828 「LaTeXからDVI」変換子を使用してDVIに変換し,
2829 最後に,
2830 得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2831 はこのような変換子の「連鎖」を自動的に見つけ,
2832 つねに最も短い連鎖を選択します.しかしながら,
2833 なお形式間に複数の変換方法を定義することも可能です.たとえば,
2834 標準的な\SpecialChar LyX
2835 設定は,
2836 \SpecialChar LaTeX
2837 からPDFへ変換するのに,
2838 以下の3つの方法を用意しています.
2839 \end_layout
2840
2841 \begin_layout Enumerate
2842 直接
2843 \begin_inset Flex MenuItem
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847 pdflatex
2848 \end_layout
2849
2850 \end_inset
2851
2852 を使用するもの
2853 \end_layout
2854
2855 \begin_layout Enumerate
2856 (DVIと)PostScriptを経由して
2857 \begin_inset Flex MenuItem
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861 ps2pdf
2862 \end_layout
2863
2864 \end_inset
2865
2866 を使用するもの
2867 \end_layout
2868
2869 \begin_layout Enumerate
2870 DVI経由で
2871 \begin_inset Flex MenuItem
2872 status collapsed
2873
2874 \begin_layout Plain Layout
2875 dvipdfm
2876 \end_layout
2877
2878 \end_inset
2879
2880 を使用するもの
2881 \end_layout
2882
2883 \begin_layout Enumerate
2884 直接
2885 \begin_inset Flex MenuItem
2886 status collapsed
2887
2888 \begin_layout Plain Layout
2889 Xe\SpecialChar TeX
2890
2891 \end_layout
2892
2893 \end_inset
2894
2895 を使用するもの
2896 \end_layout
2897
2898 \begin_layout Enumerate
2899 直接
2900 \begin_inset Flex MenuItem
2901 status collapsed
2902
2903 \begin_layout Plain Layout
2904 Lua\SpecialChar TeX
2905
2906 \end_layout
2907
2908 \end_inset
2909
2910 を使用するもの
2911 \end_layout
2912
2913 \begin_layout Standard
2914 このように代替連鎖を定義するには,
2915
2916 \begin_inset CommandInset ref
2917 LatexCommand ref
2918 reference "sec:ファイル形式"
2919 nolink "false"
2920
2921 \end_inset
2922
2923 節に述べられているように,
2924 ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,
2925 標準設定では,
2926
2927 \begin_inset Flex MenuItem
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 pdf
2932 \end_layout
2933
2934 \end_inset
2935
2936 (
2937 \begin_inset Flex MenuItem
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 ps2pdf
2942 \end_layout
2943
2944 \end_inset
2945
2946 用)・
2947 \begin_inset Flex MenuItem
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 pdf2
2952 \end_layout
2953
2954 \end_inset
2955
2956 (
2957 \begin_inset Flex MenuItem
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 pdflatex
2962 \end_layout
2963
2964 \end_inset
2965
2966 用)・
2967 \begin_inset Flex MenuItem
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 pdf3
2972 \end_layout
2973
2974 \end_inset
2975
2976 (
2977 \begin_inset Flex MenuItem
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 dvipdfm
2982 \end_layout
2983
2984 \end_inset
2985
2986 用)・
2987 \begin_inset Flex MenuItem
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 pdf4
2992 \end_layout
2993
2994 \end_inset
2995
2996 (
2997 \begin_inset Flex MenuItem
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001 Xe\SpecialChar TeX
3002
3003 \end_layout
3004
3005 \end_inset
3006
3007 用)・
3008 \begin_inset Flex MenuItem
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 pdf5
3013 \end_layout
3014
3015 \end_inset
3016
3017 (
3018 \begin_inset Flex MenuItem
3019 status collapsed
3020
3021 \begin_layout Plain Layout
3022 Lua\SpecialChar TeX
3023
3024 \end_layout
3025
3026 \end_inset
3027
3028 用\SpecialChar softhyphen
3029 ) と命名された形式が定義されていて,
3030 すべて共通の拡張子
3031 \begin_inset Flex MenuItem
3032 status collapsed
3033
3034 \begin_layout Plain Layout
3035 .pdf
3036 \end_layout
3037
3038 \end_inset
3039
3040 を持ち,
3041 上記で言及した各変換方法に対応しています.
3042 \end_layout
3043
3044 \begin_layout Chapter
3045 \SpecialChar LyX
3046 の各国語対応
3047 \begin_inset CommandInset label
3048 LatexCommand label
3049 name "cha:LyXの各国語対応"
3050
3051 \end_inset
3052
3053
3054 \end_layout
3055
3056 \begin_layout Standard
3057 \SpecialChar LyX
3058 は,
3059 翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,
3060 \SpecialChar LyX
3061 は30言語の翻訳を提供しています.選択した言語は,
3062 使用する
3063 \emph on
3064 ロケール
3065 \emph default
3066 と呼ばれます(ロケール設定についての詳しい資料は,
3067 お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,
3068 マニュアルページの
3069 \begin_inset Flex Code
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 locale(5)
3074 \end_layout
3075
3076 \end_inset
3077
3078 から見ると良いかもしれません).
3079 \end_layout
3080
3081 \begin_layout Standard
3082 これらの翻訳は適切に機能しますが,
3083 欠点もいくつかあることに注意してください.たとえば,
3084 ダイアログはすべて英文を念頭にデザインされているため,
3085 翻訳文の一部は,
3086 割り当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,
3087 他の障害は引き起こしません.また,
3088 翻訳によっては,
3089 すべてのショートカットが定義されていないことに気づかれるでしょう.ショートカットのために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだショートカットを定義していないこともあるでしょう.もちろん,
3090 私たちの各国語対応チーム—
3091 あなたも参加したいと思われるかもしれません
3092 \begin_inset Foot
3093 status collapsed
3094
3095 \begin_layout Plain Layout
3096 もしあなたが英語以外の言語を流暢に操れるならば,
3097 これらのチームに参加することは,
3098 \SpecialChar LyX
3099 コミュニティに報いるたいへん素晴らしい方法です!
3100
3101 \end_layout
3102
3103 \end_inset
3104
3105
3106 は,
3107 \SpecialChar LyX
3108 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
3109 \end_layout
3110
3111 \begin_layout Section
3112 \SpecialChar LyX
3113 を翻訳する
3114 \end_layout
3115
3116 \begin_layout Subsection
3117 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
3118 \begin_inset Argument 1
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 GUI(テキストメッセージ)を翻訳する
3123 \end_layout
3124
3125 \end_inset
3126
3127
3128 \end_layout
3129
3130 \begin_layout Standard
3131 \SpecialChar LyX
3132 は,
3133 操作画面の国際化対応にGNU 
3134 \begin_inset Flex Code
3135 status collapsed
3136
3137 \begin_layout Plain Layout
3138 gettext
3139 \end_layout
3140
3141 \end_inset
3142
3143 ライブラリを使用します.\SpecialChar LyX
3144 のすべてのメニューやダイアログでお好みの言語を話させたいときには,
3145 その言語の
3146 \begin_inset Flex Code
3147 status collapsed
3148
3149 \begin_layout Plain Layout
3150 po
3151 \end_layout
3152
3153 \end_inset
3154
3155 ファイルが必要です.このファイルが利用可能であれば,
3156 そこから
3157 \begin_inset Flex Code
3158 status collapsed
3159
3160 \begin_layout Plain Layout
3161 mo
3162 \end_layout
3163
3164 \end_inset
3165
3166 ファイルを生成して,
3167 この
3168 \begin_inset Flex Code
3169 status collapsed
3170
3171 \begin_layout Plain Layout
3172 mo
3173 \end_layout
3174
3175 \end_inset
3176
3177 ファイルをインストールしなくてはなりません.この全過程は,
3178 GNU 
3179 \begin_inset Flex Code
3180 status collapsed
3181
3182 \begin_layout Plain Layout
3183 gettext
3184 \end_layout
3185
3186 \end_inset
3187
3188 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,
3189 もしせっかくするのであれば,
3190 あなたの骨折りの結果を\SpecialChar LyX
3191 コミュニティの他の人々と分かち合いませんか.どのように段取りを進めればよいか,
3192 詳しくは\SpecialChar LyX
3193 開発者メーリングリストにメールを送ってください.
3194 \end_layout
3195
3196 \begin_layout Standard
3197 要約すれば,
3198 以下のように行います(xxは言語コードを表します).
3199 \end_layout
3200
3201 \begin_layout Itemize
3202 \SpecialChar LyX
3203 ソースコードをチェックアウトしてください(
3204 \begin_inset CommandInset href
3205 LatexCommand href
3206 name "ウェブ上の情報"
3207 target "https://www.lyx.org/HowToUseGIT"
3208 literal "false"
3209
3210 \end_inset
3211
3212 参照).
3213 \end_layout
3214
3215 \begin_layout Itemize
3216 \begin_inset Flex Code
3217 status collapsed
3218
3219 \begin_layout Plain Layout
3220 lyx.pot
3221 \end_layout
3222
3223 \end_inset
3224
3225 ファイルを
3226 \begin_inset Flex Code
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230 **.po
3231 \end_layout
3232
3233 \end_inset
3234
3235 ファイルのあるフォルダにコピーして,
3236
3237 \begin_inset Flex Code
3238 status collapsed
3239
3240 \begin_layout Plain Layout
3241 xx.po
3242 \end_layout
3243
3244 \end_inset
3245
3246 に名前を付け替えてください(
3247 \begin_inset Flex Code
3248 status collapsed
3249
3250 \begin_layout Plain Layout
3251 lyx.pot
3252 \end_layout
3253
3254 \end_inset
3255
3256 がどこにもない場合には,
3257 コンソールからそのディレクトリで
3258 \begin_inset Flex Code
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 make lyx.pot
3263 \end_layout
3264
3265 \end_inset
3266
3267 コマンドを実行し,
3268 作成し直すか,
3269 他言語の既存のpoファイルをひな型として使用することができます).
3270 \end_layout
3271
3272 \begin_layout Itemize
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277 xx.po
3278 \end_layout
3279
3280 \end_inset
3281
3282 を編集します.
3283 \begin_inset Foot
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287 これは単なるテキストファイルなので,
3288 どのテキストエディタでも編集できます.しかし,
3289
3290 \family typewriter
3291 Poedit
3292 \family default
3293 (全プラットフォーム用)や
3294 \family typewriter
3295 KBabel
3296 \family default
3297 (KDE用)のように,
3298 この目的の編集をサポートする特別なプログラムがあります.
3299 \family typewriter
3300 Emacs
3301 \family default
3302 にも
3303 \begin_inset Flex Code
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 po
3308 \end_layout
3309
3310 \end_inset
3311
3312 ファイルを編集するための「モード」があります,
3313
3314 \begin_inset Flex URL
3315 status open
3316
3317 \begin_layout Plain Layout
3318
3319 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3320 \end_layout
3321
3322 \end_inset
3323
3324
3325 \end_layout
3326
3327 \end_inset
3328
3329 メニューラベルやウィジェットラベルのうちには,
3330 翻訳しなくてはならないショートカットがある場合があります.これらのキーは「|」の後に記されており,
3331 当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,
3332 新しい
3333 \begin_inset Flex Code
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 po
3338 \end_layout
3339
3340 \end_inset
3341
3342 ファイルの冒頭に,
3343 あなたの電子メールアドレスなどの情報も書き加えて,
3344 人々があなたに提案や,
3345 滑稽な怒りのメッセージを届けることができるようにしてください.
3346 \end_layout
3347
3348 \begin_layout Standard
3349 もし,
3350 あなたがこれを自身のためだけに行っているのであれば,
3351
3352 \end_layout
3353
3354 \begin_layout Itemize
3355 \begin_inset Flex Code
3356 status collapsed
3357
3358 \begin_layout Plain Layout
3359 xx.mo
3360 \end_layout
3361
3362 \end_inset
3363
3364 を生成してください.これは
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 msgfmt -o xx.mo < xx.po
3370 \end_layout
3371
3372 \end_inset
3373
3374 でできます.
3375 \end_layout
3376
3377 \begin_layout Itemize
3378 この
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 mo
3384 \end_layout
3385
3386 \end_inset
3387
3388 ファイルを,
3389 お使いのロケールツリー中,
3390 言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3391
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 lyx.mo
3397 \end_layout
3398
3399 \end_inset
3400
3401 という名称にしてください(例:
3402
3403 \begin_inset Flex Code
3404 status collapsed
3405
3406 \begin_layout Plain Layout
3407 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3408 \end_layout
3409
3410 \end_inset
3411
3412 ).
3413 \end_layout
3414
3415 \begin_layout Standard
3416 しかしながら前述のように,
3417 この新しい
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 po
3423 \end_layout
3424
3425 \end_inset
3426
3427 ファイルを他の人たちが使用できるよう,
3428 \SpecialChar LyX
3429 頒布版に追加できることが最善です.これを追加するには,
3430 \SpecialChar LyX
3431 に変更を加える必要がありますので,
3432 もしその気があれば,
3433 開発者メーリングリストに電子メールを送ってください.
3434 \end_layout
3435
3436 \begin_layout Subsubsection
3437 多義訳語メッセージ
3438 \end_layout
3439
3440 \begin_layout Standard
3441 時には,
3442 一つの英語のメッセージが,
3443 翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3444
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449 To
3450 \end_layout
3451
3452 \end_inset
3453
3454 というメッセージで,
3455 これは英語で「to」がどういう意味を持っているかによって,
3456 独語ではNachと訳されたりBisと訳されたりします.GNU 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 gettext
3462 \end_layout
3463
3464 \end_inset
3465
3466 は,
3467 このような多義訳語を
3468 \begin_inset Flex Code
3469 status collapsed
3470
3471 \begin_layout Plain Layout
3472 To
3473 \end_layout
3474
3475 \end_inset
3476
3477 の代わりに,
3478
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483 To[[as in 'From format x to format y']]
3484 \end_layout
3485
3486 \end_inset
3487
3488
3489 \begin_inset Flex Code
3490 status collapsed
3491
3492 \begin_layout Plain Layout
3493 To[[as in 'From page x to page y']]
3494 \end_layout
3495
3496 \end_inset
3497
3498 としなくてはなりません.これによって,
3499 これら2つの
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504 To
3505 \end_layout
3506
3507 \end_inset
3508
3509 は,
3510
3511 \begin_inset Flex Code
3512 status collapsed
3513
3514 \begin_layout Plain Layout
3515 gettext
3516 \end_layout
3517
3518 \end_inset
3519
3520 には別物と解釈され,
3521 それぞれ正しくNachとBisに訳すことができるようになります.
3522 \end_layout
3523
3524 \begin_layout Standard
3525 もちろん,
3526 この文脈情報は,
3527 翻訳が存在しないときには取り去られる必要がありますので,
3528 メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3529 の翻訳機構では,
3530 メッセージの終わりに二重大括弧で囲われているものはすべて,
3531 メッセージを表示する前に取り去るようにされています.
3532 \end_layout
3533
3534 \begin_layout Subsection
3535 説明書を翻訳する
3536 \end_layout
3537
3538 \begin_layout Standard
3539
3540 \begin_inset Flex MenuItem
3541 status collapsed
3542
3543 \begin_layout Plain Layout
3544 Help
3545 \end_layout
3546
3547 \end_inset
3548
3549 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!
3550 ).説明書の翻訳版が利用可能であり
3551 \begin_inset Foot
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555 2008年3月現在,
3556 説明書の少なくとも一部が翻訳されている言語は14言語に上り,
3557 入門編が訳されているものはさらにいくつかあります.
3558 \end_layout
3559
3560 \end_inset
3561
3562
3563 ロケールがその言語に設定されている場合,
3564 \SpecialChar LyX
3565 はこれを自動的に使用します.\SpecialChar LyX
3566 は,
3567 翻訳版を
3568 \begin_inset Flex Code
3569 status collapsed
3570
3571 \begin_layout Plain Layout
3572 LyXDir/doc/xx/DocName.lyx
3573 \end_layout
3574
3575 \end_inset
3576
3577
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582 xx
3583 \end_layout
3584
3585 \end_inset
3586
3587 は現在使用している言語コード)で探します.翻訳文書がない場合には,
3588 既定の英語版が表示されます.翻訳版は,
3589 原典と同じファイル名(上述の
3590 \begin_inset Flex Code
3591 status collapsed
3592
3593 \begin_layout Plain Layout
3594 DocName
3595 \end_layout
3596
3597 \end_inset
3598
3599 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!
3600 ),
3601 以下のような点をすぐに行うべきです.
3602 \end_layout
3603
3604 \begin_layout Itemize
3605 説明書翻訳ウェブページ
3606 \begin_inset CommandInset href
3607 LatexCommand href
3608 name "https://www.lyx.org/Translation"
3609 target "https://www.lyx.org/Translation"
3610 literal "false"
3611
3612 \end_inset
3613
3614 を確認してください.ここで,
3615 どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,
3616 説明書をお使いの言語に翻訳する作業の面倒を見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,
3617 私たちにあなたが興味をお持ちであることを知らせてください.
3618 \end_layout
3619
3620 \begin_layout Standard
3621 いったん実際の翻訳の仕事に取りかかったならば,
3622 トラブルを回避するいくつかのヒントがあります.
3623 \end_layout
3624
3625 \begin_layout Itemize
3626 文書化チームに所属してください!
3627 そのための情報が
3628 \begin_inset Flex Code
3629 status collapsed
3630
3631 \begin_layout Plain Layout
3632 Intro.lyx
3633 \end_layout
3634
3635 \end_inset
3636
3637
3638 \begin_inset Flex MenuItem
3639 status collapsed
3640
3641 \begin_layout Plain Layout
3642 ヘルプ\SpecialChar menuseparator
3643 はじめの一歩
3644 \end_layout
3645
3646 \end_inset
3647
3648 )にあります.また,
3649 この
3650 \begin_inset Flex Code
3651 status collapsed
3652
3653 \begin_layout Plain Layout
3654 Intro.lyx
3655 \end_layout
3656
3657 \end_inset
3658
3659 が最初に訳すべき文書です.
3660 \end_layout
3661
3662 \begin_layout Itemize
3663 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,
3664 何世紀にもわたって世界の至る所で,
3665 様々な慣行を発達させてきました.また,
3666 あなたの国で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3667 \emph on
3668 警告!
3669 活版技術は病みつきになる可能性があるので注意してくさい!
3670
3671 \emph default
3672
3673 \end_layout
3674
3675 \begin_layout Itemize
3676 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681 UserDir/doc/xx/
3682 \end_layout
3683
3684 \end_inset
3685
3686 ディレクトリにコピーすれば,
3687 個人用の翻訳ヘルプファイルとして使用することができます.
3688 \begin_inset Newline newline
3689 \end_inset
3690
3691
3692 \begin_inset Note Greyedout
3693 status open
3694
3695 \begin_layout Plain Layout
3696
3697 \series bold
3698 【註】
3699 \series default
3700 外部素材(画像など)のある複雑な文書の場合,
3701 例えば一時ディレクトリなどにコピーを作ると,
3702 文書を別の場所に移したとき,
3703 外部素材へのリンクは壊れてしまうかもしれないことに注意してください.最も良い方法は,
3704 LyXツリーをgit (
3705 \begin_inset Flex URL
3706 status collapsed
3707
3708 \begin_layout Plain Layout
3709
3710 https://www.lyx.org/HowToUseGIT
3711 \end_layout
3712
3713 \end_inset
3714
3715 参照)からとってきて,
3716 そのdocファイルを直接編集するのが良いでしょう.
3717 \end_layout
3718
3719 \end_inset
3720
3721
3722 \end_layout
3723
3724 \begin_layout Itemize
3725 (\SpecialChar LyX
3726 チームが維持している)原典の説明書は,
3727 時折更新されます.変更点については,
3728
3729 \begin_inset CommandInset href
3730 LatexCommand href
3731 name "https://www.lyx.org/trac/timeline"
3732 target "https://www.lyx.org/trac/timeline"
3733 literal "false"
3734
3735 \end_inset
3736
3737 のソースビューアでご覧ください.この方法で,
3738 翻訳文書のどの部分を更新しなくてはならないか,
3739 たやすく見つけることができます.
3740 \end_layout
3741
3742 \begin_layout Standard
3743 もし原典に誤りを見つけたならば,
3744 修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3745 \end_layout
3746
3747 \begin_layout Standard
3748 \begin_inset Branch OutDated
3749 inverted 0
3750 status collapsed
3751
3752 \begin_layout Section
3753 International Keyboard Support
3754 \end_layout
3755
3756 \begin_layout Standard
3757
3758 \emph on
3759 [Editor's Note:
3760  The following section is by
3761 \emph default
3762  
3763 \shape smallcaps
3764 \emph on
3765 Ivan Schreter
3766 \shape default
3767 .
3768  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
3769  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
3770 \end_layout
3771
3772 \begin_layout Subsection
3773 Defining Own Keymaps:
3774  Keymap File Format
3775 \end_layout
3776
3777 \begin_layout Standard
3778 Let's look at a keyboard definition file a little closer.
3779  It is a plain text file defining
3780 \end_layout
3781
3782 \begin_layout Itemize
3783 key-to-key or key-to-string translations
3784 \end_layout
3785
3786 \begin_layout Itemize
3787 dead keys
3788 \end_layout
3789
3790 \begin_layout Itemize
3791 dead keys exceptions
3792 \end_layout
3793
3794 \begin_layout Standard
3795 To define key-to-key or key-to-string translation,
3796  use this command:
3797 \end_layout
3798
3799 \begin_layout Quotation
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804
3805 \backslash
3806 kmap
3807 \end_layout
3808
3809 \end_inset
3810
3811  
3812 \begin_inset Flex Code
3813 status collapsed
3814
3815 \begin_layout Plain Layout
3816 key
3817 \end_layout
3818
3819 \end_inset
3820
3821  outstring 
3822 \end_layout
3823
3824 \begin_layout Standard
3825 where 
3826 \begin_inset Flex Code
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 key
3831 \end_layout
3832
3833 \end_inset
3834
3835  is the key to be translated and 
3836 \begin_inset Flex Code
3837 status collapsed
3838
3839 \begin_layout Plain Layout
3840 outstring
3841 \end_layout
3842
3843 \end_inset
3844
3845  is the string to be inserted into the document.
3846  To define dead keys,
3847  use:
3848 \end_layout
3849
3850 \begin_layout Quotation
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855
3856 \backslash
3857 kmod
3858 \end_layout
3859
3860 \end_inset
3861
3862  
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 key
3868 \end_layout
3869
3870 \end_inset
3871
3872  deadkey
3873 \end_layout
3874
3875 \begin_layout Standard
3876 where 
3877 \begin_inset Flex Code
3878 status collapsed
3879
3880 \begin_layout Plain Layout
3881 key
3882 \end_layout
3883
3884 \end_inset
3885
3886  is a keyboard key and 
3887 \begin_inset Flex Code
3888 status collapsed
3889
3890 \begin_layout Plain Layout
3891 deadkey
3892 \end_layout
3893
3894 \end_inset
3895
3896  is dead key name.
3897  The following dead keys are supported (shortcut name is in parentheses):
3898 \end_layout
3899
3900 \begin_layout Quotation
3901
3902 \emph on
3903 Name
3904 \begin_inset space \hfill{}
3905 \end_inset
3906
3907 Example
3908 \end_layout
3909
3910 \begin_layout Quotation
3911 acute (acu)
3912 \begin_inset space \hfill{}
3913 \end_inset
3914
3915
3916 \lang english
3917 áéíóú
3918 \end_layout
3919
3920 \begin_layout Quotation
3921 grave (gra)
3922 \begin_inset space \hfill{}
3923 \end_inset
3924
3925
3926 \lang english
3927 àèìòù
3928 \end_layout
3929
3930 \begin_layout Quotation
3931 macron (mac)
3932 \begin_inset space \hfill{}
3933 \end_inset
3934
3935
3936 \lang english
3937  ō
3938 \end_layout
3939
3940 \begin_layout Quotation
3941 tilde (til)
3942 \begin_inset space \hfill{}
3943 \end_inset
3944
3945
3946 \lang english
3947 ñÑ
3948 \end_layout
3949
3950 \begin_layout Quotation
3951 underbar (underb)
3952 \begin_inset space \hfill{}
3953 \end_inset
3954
3955
3956 \begin_inset ERT
3957 status open
3958
3959 \begin_layout Plain Layout
3960
3961
3962 \backslash
3963 b o
3964 \end_layout
3965
3966 \end_inset
3967
3968
3969 \end_layout
3970
3971 \begin_layout Quotation
3972 cedilla (ced)
3973 \begin_inset space \hfill{}
3974 \end_inset
3975
3976
3977 \lang english
3978 çÇ
3979 \end_layout
3980
3981 \begin_layout Quotation
3982 underdot (underd)
3983 \begin_inset space \hfill{}
3984 \end_inset
3985
3986
3987 \begin_inset ERT
3988 status open
3989
3990 \begin_layout Plain Layout
3991
3992
3993 \backslash
3994 d o
3995 \end_layout
3996
3997 \end_inset
3998
3999
4000 \end_layout
4001
4002 \begin_layout Quotation
4003 circumflex (circu)
4004 \begin_inset space \hfill{}
4005 \end_inset
4006
4007
4008 \lang english
4009 âêîôû
4010 \end_layout
4011
4012 \begin_layout Quotation
4013 circle (circl)
4014 \begin_inset space \hfill{}
4015 \end_inset
4016
4017
4018 \lang english
4019 ÅůŮ
4020 \end_layout
4021
4022 \begin_layout Quotation
4023 tie (tie)
4024 \begin_inset space \hfill{}
4025 \end_inset
4026
4027
4028 \begin_inset ERT
4029 status open
4030
4031 \begin_layout Plain Layout
4032
4033
4034 \backslash
4035 t o
4036 \end_layout
4037
4038 \end_inset
4039
4040
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 breve (bre)
4045 \begin_inset space \hfill{}
4046 \end_inset
4047
4048
4049 \lang english
4050 ă
4051 \lang japanese
4052
4053 \begin_inset ERT
4054 status open
4055
4056 \begin_layout Plain Layout
4057
4058
4059 \backslash
4060 u o
4061 \end_layout
4062
4063 \end_inset
4064
4065
4066 \end_layout
4067
4068 \begin_layout Quotation
4069 caron (car)
4070 \begin_inset space \hfill{}
4071 \end_inset
4072
4073
4074 \lang english
4075 čšž
4076 \end_layout
4077
4078 \begin_layout Quotation
4079 hungarian umlaut (hug)
4080 \begin_inset space \hfill{}
4081 \end_inset
4082
4083
4084 \lang english
4085 őű
4086 \end_layout
4087
4088 \begin_layout Quotation
4089 umlaut (uml)
4090 \begin_inset space \hfill{}
4091 \end_inset
4092
4093
4094 \lang english
4095 äöü
4096 \end_layout
4097
4098 \begin_layout Quotation
4099 dot (dot)
4100 \begin_inset space \hfill{}
4101 \end_inset
4102
4103
4104 \lang english
4105 ż
4106 \lang japanese
4107
4108 \begin_inset ERT
4109 status open
4110
4111 \begin_layout Plain Layout
4112
4113
4114 \backslash
4115 .s
4116 \end_layout
4117
4118 \end_inset
4119
4120
4121 \end_layout
4122
4123 \begin_layout Standard
4124 Since in many international keyboards there are exceptions to what some dead keys should do,
4125  you can define them using
4126 \end_layout
4127
4128 \begin_layout Quotation
4129 \begin_inset Flex Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133
4134 \backslash
4135 kxmod
4136 \end_layout
4137
4138 \end_inset
4139
4140  deadkey key outstring
4141 \end_layout
4142
4143 \begin_layout Standard
4144 For example,
4145  on Slovak keyboard,
4146  if you enter caron-o,
4147  it generates circumflex-o,
4148  so you put in
4149 \end_layout
4150
4151 \begin_layout Quotation
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156
4157 \backslash
4158 kxmod
4159 \end_layout
4160
4161 \end_inset
4162
4163  caron o "
4164 \backslash
4165 ^o"
4166 \end_layout
4167
4168 \begin_layout Standard
4169 to make it work correctly.
4170  Also,
4171  you have to define as exceptions dead keys over i and j,
4172  to remove the dot from them before inserting an accent mark.
4173  I will change this when the time comes,
4174  but so far I haven't had time.
4175 \end_layout
4176
4177 \begin_layout Standard
4178 Oh,
4179  and about characters:
4180  backslash is escaped,
4181  so to enter it,
4182  you'll need double backslash.
4183  Also,
4184  quotes and 
4185 \begin_inset Flex Code
4186 status collapsed
4187
4188 \begin_layout Plain Layout
4189 #
4190 \end_layout
4191
4192 \end_inset
4193
4194  have different meaning.
4195  
4196 \begin_inset Flex Code
4197 status collapsed
4198
4199 \begin_layout Plain Layout
4200 #
4201 \end_layout
4202
4203 \end_inset
4204
4205  marks comments,
4206  quotes start and end \SpecialChar LaTeX
4207 -style commands.
4208  To enter quote,
4209  you'll need to use 
4210 \begin_inset Flex Code
4211 status collapsed
4212
4213 \begin_layout Plain Layout
4214
4215 \backslash
4216 "
4217 \end_layout
4218
4219 \end_inset
4220
4221 ,
4222  to enter 
4223 \begin_inset Flex Code
4224 status collapsed
4225
4226 \begin_layout Plain Layout
4227 #
4228 \end_layout
4229
4230 \end_inset
4231
4232 ,
4233  use 
4234 \begin_inset Flex Code
4235 status collapsed
4236
4237 \begin_layout Plain Layout
4238
4239 \backslash
4240 #
4241 \end_layout
4242
4243 \end_inset
4244
4245 .
4246 \end_layout
4247
4248 \begin_layout Standard
4249 If you make a keyboard description file that works for your language,
4250  please mail it to me,
4251  so I can include it in the next keymap distribution.
4252 \end_layout
4253
4254 \begin_layout Standard
4255 More keywords will be supported in keymap configuration file in future,
4256  like
4257 \end_layout
4258
4259 \begin_layout Itemize
4260 \begin_inset Flex Code
4261 status collapsed
4262
4263 \begin_layout Plain Layout
4264
4265 \backslash
4266 kinclude filename
4267 \end_layout
4268
4269 \end_inset
4270
4271
4272 \emph on
4273
4274 \begin_inset space \hfill{}
4275 \end_inset
4276
4277
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282 include
4283 \end_layout
4284
4285 \end_inset
4286
4287  another file
4288 \end_layout
4289
4290 \begin_layout Itemize
4291 \begin_inset Flex Code
4292 status collapsed
4293
4294 \begin_layout Plain Layout
4295
4296 \backslash
4297 kprog program
4298 \end_layout
4299
4300 \end_inset
4301
4302
4303 \emph on
4304
4305 \begin_inset space \hfill{}
4306 \end_inset
4307
4308
4309 \begin_inset Flex Code
4310 status collapsed
4311
4312 \begin_layout Plain Layout
4313 define
4314 \end_layout
4315
4316 \end_inset
4317
4318  an external keymap translation program 
4319 \end_layout
4320
4321 \begin_layout Standard
4322 Also,
4323  it should look into 
4324 \begin_inset Flex Code
4325 status collapsed
4326
4327 \begin_layout Plain Layout
4328 lyxrc
4329 \end_layout
4330
4331 \end_inset
4332
4333  file for defaults,
4334  too (for example,
4335  a 
4336 \begin_inset Flex Code
4337 status collapsed
4338
4339 \begin_layout Plain Layout
4340
4341 \backslash
4342 kinclude
4343 \end_layout
4344
4345 \end_inset
4346
4347  option to include default keyboard).
4348 \end_layout
4349
4350 \end_inset
4351
4352
4353 \end_layout
4354
4355 \begin_layout Section
4356 国際キー配列
4357 \begin_inset CommandInset label
4358 LatexCommand label
4359 name "sec:国際キー配列"
4360
4361 \end_inset
4362
4363
4364 \end_layout
4365
4366 \begin_layout Standard
4367 \begin_inset Note Note
4368 status open
4369
4370 \begin_layout Plain Layout
4371 2008年3月にこの文書を改訂するに当たって,
4372 改訂者が本節の内容に詳しくなかったために,
4373 本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
4374 \end_layout
4375
4376 \begin_layout Plain Layout
4377 (RH)
4378 \end_layout
4379
4380 \end_inset
4381
4382
4383 \end_layout
4384
4385 \begin_layout Standard
4386 以下の2節では,
4387
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392 .kmap
4393 \end_layout
4394
4395 \end_inset
4396
4397 および
4398 \begin_inset Flex Code
4399 status collapsed
4400
4401 \begin_layout Plain Layout
4402 .cdef
4403 \end_layout
4404
4405 \end_inset
4406
4407 ファイルの文法を詳細に解説します.これらの節は,
4408 提供されているキー配列があなたのニーズに合わない場合に,
4409 自身用のキー配列をデザインする手助けとなるでしょう.
4410 \end_layout
4411
4412 \begin_layout Subsection
4413 .kmapファイル
4414 \end_layout
4415
4416 \begin_layout Standard
4417 \begin_inset Flex Code
4418 status collapsed
4419
4420 \begin_layout Plain Layout
4421 .kmap
4422 \end_layout
4423
4424 \end_inset
4425
4426 ファイルは,
4427 打鍵したものを文字や文字列に割り当てます.名前が示唆するように,
4428 これはキーボード配列表を定義します.
4429 \begin_inset Flex Code
4430 status collapsed
4431
4432 \begin_layout Plain Layout
4433 .kmap
4434 \end_layout
4435
4436 \end_inset
4437
4438 ファイルは,
4439 以下の各項で説明するように,
4440
4441 \begin_inset Flex Code
4442 status collapsed
4443
4444 \begin_layout Plain Layout
4445 kmap
4446 \end_layout
4447
4448 \end_inset
4449
4450
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455 kmod
4456 \end_layout
4457
4458 \end_inset
4459
4460
4461 \begin_inset Flex Code
4462 status collapsed
4463
4464 \begin_layout Plain Layout
4465 ksmod
4466 \end_layout
4467
4468 \end_inset
4469
4470
4471 \begin_inset Flex Code
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475 kcomb
4476 \end_layout
4477
4478 \end_inset
4479
4480 のキーワードを定義します.
4481 \end_layout
4482
4483 \begin_layout Labeling
4484 \labelwidthstring 00.00.0000
4485 \begin_inset Flex Code
4486 status collapsed
4487
4488 \begin_layout Plain Layout
4489 kmap
4490 \end_layout
4491
4492 \end_inset
4493
4494  文字を文字列に割り当てる
4495 \end_layout
4496
4497 \begin_layout LyX-Code
4498
4499 \backslash
4500 kmap 
4501 \family roman
4502 \emph on
4503 文字
4504 \family default
4505 \emph default
4506  
4507 \family roman
4508 \emph on
4509 文字列
4510 \end_layout
4511
4512 \begin_layout Standard
4513 これは,
4514
4515 \emph on
4516 文字
4517 \emph default
4518
4519 \emph on
4520 文字列
4521 \emph default
4522 に割り当てます.
4523 \emph on
4524 文字列
4525 \emph default
4526 中では,
4527 二重引用符(")とバックスラッシュ(
4528 \backslash
4529 )は,
4530 前にバックスラッシュ(
4531 \backslash
4532 )を付けてエスケープしなくてはならないことに注意してください.
4533 \end_layout
4534
4535 \begin_layout Standard
4536 \begin_inset Flex MenuItem
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 &
4541 \end_layout
4542
4543 \end_inset
4544
4545 を打鍵すると
4546 \begin_inset Flex MenuItem
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 /
4551 \end_layout
4552
4553 \end_inset
4554
4555 記号が出力される
4556 \begin_inset Flex MenuItem
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560 kmap
4561 \end_layout
4562
4563 \end_inset
4564
4565 ステートメントを,
4566 一例としてあげると,
4567
4568 \end_layout
4569
4570 \begin_layout LyX-Code
4571
4572 \backslash
4573 kmap & /
4574 \end_layout
4575
4576 \begin_layout Standard
4577 のようになります.
4578 \end_layout
4579
4580 \begin_layout Labeling
4581 \labelwidthstring 00.00.0000
4582 \begin_inset Flex Code
4583 status collapsed
4584
4585 \begin_layout Plain Layout
4586 kmod
4587 \end_layout
4588
4589 \end_inset
4590
4591  アクセント文字を指定する
4592 \end_layout
4593
4594 \begin_layout LyX-Code
4595
4596 \backslash
4597 kmod 
4598 \family roman
4599 \emph on
4600 文字 アクセント 許可文字
4601 \end_layout
4602
4603 \begin_layout Standard
4604 これは
4605 \emph on
4606 文字
4607 \emph default
4608
4609 \emph on
4610 許可文字
4611 \emph default
4612 のアクセントとするものです.これはデッドキー
4613 \begin_inset Foot
4614 status collapsed
4615
4616 \begin_layout Plain Layout
4617
4618 \emph on
4619 デッドキー
4620 \emph default
4621 という用語は,
4622 それ自身で文字を出力しないけれども,
4623 別のキーを続けて打つと,
4624 望んだアクセント文字を出力するキーのことを指し示します.たとえば,
4625 独語で
4626 \emph on
4627 ä
4628 \emph default
4629 のようなウムラウトのついた文字は,
4630 このようにして出すことができます.
4631 \end_layout
4632
4633 \end_inset
4634
4635 機構です.
4636 \end_layout
4637
4638 \begin_layout Standard
4639
4640 \emph on
4641 文字
4642 \emph default
4643 を打鍵してから
4644 \emph on
4645 許可文字
4646 \emph default
4647 にないキーを打鍵すると,
4648
4649 \emph on
4650 文字
4651 \emph default
4652 の後に許可文字ではないその文字が出力として表示されます.
4653 \begin_inset Flex MenuItem
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 Backspace
4658 \end_layout
4659
4660 \end_inset
4661
4662 はデッドキーを取り消しますので,
4663
4664 \emph on
4665 文字
4666 \emph default
4667
4668 \begin_inset Flex MenuItem
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672 Backspace
4673 \end_layout
4674
4675 \end_inset
4676
4677 と打鍵すると,
4678 カーソルは一文字戻ることなく,
4679 文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4680 \end_layout
4681
4682 \begin_layout Standard
4683 以下の例は,
4684 '文字をacuteアクセントとして,
4685 a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4686 \end_layout
4687
4688 \begin_layout LyX-Code
4689
4690 \backslash
4691 kmod ' acute aeiouAEIOU
4692 \end_layout
4693
4694 \begin_layout Labeling
4695 \labelwidthstring 00.00.0000
4696 \begin_inset Flex Code
4697 status collapsed
4698
4699 \begin_layout Plain Layout
4700 ksmod
4701 \end_layout
4702
4703 \end_inset
4704
4705  アクセント文字に例外を指定する
4706 \end_layout
4707
4708 \begin_layout LyX-Code
4709
4710 \backslash
4711 kxmod  
4712 \family roman
4713 \emph on
4714 アクセント 文字 結果
4715 \end_layout
4716
4717 \begin_layout Standard
4718 これは
4719 \emph on
4720 文字
4721 \emph default
4722 上の
4723 \emph on
4724 アクセント
4725 \emph default
4726 について例外を指定するものです.ここで
4727 \emph on
4728 アクセント
4729 \emph default
4730 には,
4731 前出の
4732 \begin_inset Flex Code
4733 status collapsed
4734
4735 \begin_layout Plain Layout
4736
4737 \backslash
4738 kmod
4739 \end_layout
4740
4741 \end_inset
4742
4743 宣言で打鍵キーを既に割り当てられてなくてはならず,
4744
4745 \emph on
4746 文字
4747 \emph default
4748
4749 \emph on
4750 アクセント
4751 \emph default
4752
4753 \emph on
4754 許可文字
4755 \emph default
4756 の集合に属していてはなりません.こうして
4757 \emph on
4758 アクセント
4759 \emph default
4760
4761 \emph on
4762 文字
4763 \emph default
4764 の順に入力すると,
4765
4766 \emph on
4767 結果
4768 \emph default
4769 が出力されるようになります.
4770 \begin_inset Flex Code
4771 status collapsed
4772
4773 \begin_layout Plain Layout
4774 .kmap
4775 \end_layout
4776
4777 \end_inset
4778
4779 ファイルにこの宣言がない場合には,
4780
4781 \emph on
4782 アクセント
4783 \emph default
4784
4785 \emph on
4786 文字
4787 \emph default
4788 と入力すると,
4789
4790 \emph on
4791 アクセントキー
4792 \emph default
4793
4794 \emph on
4795 文字
4796 \emph default
4797
4798 \emph on
4799 アクセントキー
4800 \emph default
4801
4802 \begin_inset Flex Code
4803 status collapsed
4804
4805 \begin_layout Plain Layout
4806
4807 \backslash
4808 kmod
4809 \end_layout
4810
4811 \end_inset
4812
4813 宣言の最初の変数)と出力されます.
4814 \end_layout
4815
4816 \begin_layout Standard
4817 以下のコマンドを用いると,
4818 acute-i('i)と入力した場合,
4819 äiと出力されるようになります.
4820 \end_layout
4821
4822 \begin_layout LyX-Code
4823
4824 \backslash
4825 kxmod acute i "
4826 \backslash
4827
4828 \backslash
4829 '{
4830 \backslash
4831
4832 \backslash
4833 i}"
4834 \end_layout
4835
4836 \begin_layout Labeling
4837 \labelwidthstring 00.00.0000
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 kcomb
4843 \end_layout
4844
4845 \end_inset
4846
4847  2つのアクセント文字を結合する
4848 \end_layout
4849
4850 \begin_layout LyX-Code
4851
4852 \backslash
4853 kcomb 
4854 \family roman
4855 \emph on
4856 アクセント1 アクセント2 許可文字
4857 \end_layout
4858
4859 \begin_layout Standard
4860 これはなかなか難解になってきます.これは
4861 \emph on
4862 アクセント1
4863 \emph default
4864
4865 \emph on
4866 アクセント2
4867 \emph default
4868 を(この順番で)結びつけて,
4869
4870 \emph on
4871 許可文字
4872 \emph default
4873 に効果を及ぼすようにします.
4874 \emph on
4875 アクセント1
4876 \emph default
4877
4878 \emph on
4879 アクセント2
4880 \emph default
4881 の打鍵キーは,
4882 ファイル内のこのコマンド
4883 \emph on
4884 よりも前に
4885 \emph default
4886
4887
4888 \begin_inset Flex Code
4889 status collapsed
4890
4891 \begin_layout Plain Layout
4892
4893 \backslash
4894 kmod
4895 \end_layout
4896
4897 \end_inset
4898
4899 コマンドで設定されていなくてはなりません.
4900 \end_layout
4901
4902 \begin_layout Standard
4903 \begin_inset Flex Code
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907 greek.kmap
4908 \end_layout
4909
4910 \end_inset
4911
4912 ファイル上にある例をとってみましょう.
4913 \end_layout
4914
4915 \begin_layout LyX-Code
4916
4917 \backslash
4918 kmod ;
4919  acute aeioyvhAEIOYVH 
4920 \backslash
4921 kmod :
4922  umlaut iyIY 
4923 \backslash
4924 kcomb acute umlaut iyIY
4925 \end_layout
4926
4927 \begin_layout Standard
4928 これは
4929 \begin_inset Flex MenuItem
4930 status collapsed
4931
4932 \begin_layout Plain Layout
4933 ;:i
4934 \end_layout
4935
4936 \end_inset
4937
4938 を押すと
4939 \begin_inset Flex Code
4940 status collapsed
4941
4942 \begin_layout Plain Layout
4943
4944 \backslash
4945 '{
4946 \backslash
4947 "{i}}
4948 \end_layout
4949
4950 \end_inset
4951
4952 という効果を得るようにするものです.この場合のバックスペースは,
4953 最後のデッドキーを取り消すので,
4954
4955 \begin_inset Flex MenuItem
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959 ;:
4960  Backspace i
4961 \end_layout
4962
4963 \end_inset
4964
4965 と押した場合には,
4966
4967 \begin_inset Flex Code
4968 status collapsed
4969
4970 \begin_layout Plain Layout
4971
4972 \backslash
4973 '{i}
4974 \end_layout
4975
4976 \end_inset
4977
4978 となります.
4979 \end_layout
4980
4981 \begin_layout Subsection
4982 .cdefファイル
4983 \end_layout
4984
4985 \begin_layout Standard
4986 \begin_inset Flex Code
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 .kmap
4991 \end_layout
4992
4993 \end_inset
4994
4995 による割り当てが行われた後,
4996
4997 \begin_inset Flex Code
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001 .cdef
5002 \end_layout
5003
5004 \end_inset
5005
5006 ファイルは,
5007 記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
5008 頒布版には,
5009 現在のところ,
5010 少なくとも
5011 \begin_inset Flex Code
5012 status collapsed
5013
5014 \begin_layout Plain Layout
5015 iso8859-1.cdef
5016 \end_layout
5017
5018 \end_inset
5019
5020 ファイルと
5021 \begin_inset Flex Code
5022 status collapsed
5023
5024 \begin_layout Plain Layout
5025 iso8859-2.cdef
5026 \end_layout
5027
5028 \end_inset
5029
5030 ファイルが含まれています.
5031 \end_layout
5032
5033 \begin_layout Standard
5034 一般的に
5035 \begin_inset Flex Code
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039 .cdef
5040 \end_layout
5041
5042 \end_inset
5043
5044 ファイルは,
5045
5046 \end_layout
5047
5048 \begin_layout LyX-Code
5049
5050 \family roman
5051 \emph on
5052 セット中の文字番号
5053 \family default
5054 \emph default
5055  
5056 \family roman
5057 \emph on
5058  文字列
5059 \end_layout
5060
5061 \begin_layout Standard
5062 という形の宣言の羅列です.たとえば,
5063
5064 \begin_inset Flex MenuItem
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068
5069 \backslash
5070 '{e}
5071 \end_layout
5072
5073 \end_inset
5074
5075 をiso-8859-1セットの対応する文字(233)に割り当てるには,
5076 以下の宣言を用います.
5077 \end_layout
5078
5079 \begin_layout LyX-Code
5080 233 "
5081 \backslash
5082
5083 \backslash
5084 '{e}"
5085 \end_layout
5086
5087 \begin_layout Standard
5088 ここで,
5089
5090 \emph on
5091 文字列
5092 \emph default
5093 中の
5094 \begin_inset Flex Code
5095 status collapsed
5096
5097 \begin_layout Plain Layout
5098
5099 \backslash
5100
5101 \end_layout
5102
5103 \end_inset
5104
5105
5106 \begin_inset Flex Code
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110 "
5111 \end_layout
5112
5113 \end_inset
5114
5115 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120 iso-8859-7.cdef
5121 \end_layout
5122
5123 \end_inset
5124
5125 ファイルには,
5126
5127 \end_layout
5128
5129 \begin_layout LyX-Code
5130 192 "
5131 \backslash
5132
5133 \backslash
5134 '{
5135 \backslash
5136
5137 \backslash
5138
5139 \backslash
5140 "{i}}"
5141 \begin_inset Newline newline
5142 \end_inset
5143
5144 192 "
5145 \backslash
5146
5147 \backslash
5148
5149 \backslash
5150 "{
5151 \backslash
5152
5153 \backslash
5154 '{i}}"
5155 \end_layout
5156
5157 \begin_layout Standard
5158 という例があります.\SpecialChar LyX
5159 は,
5160 キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,
5161 それがアクセント付き文字のように解釈ができないかどうかチェックして,
5162 画面上の文字にアクセントを引くことを試みます.
5163 \end_layout
5164
5165 \begin_layout Subsection
5166 デッドキー
5167 \end_layout
5168
5169 \begin_layout Standard
5170 国際文字のサポートを追加する第2の方法として,
5171 いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,
5172 アクセント付き文字を生成します.ここではその機能を説明するために,
5173 きわめて単純なデッドキーの作り方を説明します.
5174 \end_layout
5175
5176 \begin_layout Standard
5177 仮に,
5178 曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,
5179 自身の
5180 \begin_inset Flex Code
5181 status collapsed
5182
5183 \begin_layout Plain Layout
5184 lyxrc
5185 \end_layout
5186
5187 \end_inset
5188
5189 ファイル中で,
5190
5191 \begin_inset Flex MenuItem
5192 status collapsed
5193
5194 \begin_layout Plain Layout
5195 ^
5196 \end_layout
5197
5198 \end_inset
5199
5200 キー(すなわち
5201 \begin_inset Flex MenuItem
5202 status collapsed
5203
5204 \begin_layout Plain Layout
5205 Shift-6
5206 \end_layout
5207
5208 \end_inset
5209
5210 キー)を,
5211 \SpecialChar LyX
5212 コマンドの
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217 accent-circumflex
5218 \end_layout
5219
5220 \end_inset
5221
5222 に結びつけることができます.すると
5223 \begin_inset Flex MenuItem
5224 status collapsed
5225
5226 \begin_layout Plain Layout
5227 ^
5228 \end_layout
5229
5230 \end_inset
5231
5232 キーの後に文字を打ったときはいつでも,
5233 この文字上に曲折アクセントが付けられるようになります.たとえば「
5234 \begin_inset Flex MenuItem
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 ^e
5239 \end_layout
5240
5241 \end_inset
5242
5243 」という打鍵順は「ê」という文字を生成します.しかしながら,
5244 もし「
5245 \begin_inset Flex MenuItem
5246 status collapsed
5247
5248 \begin_layout Plain Layout
5249 ^t
5250 \end_layout
5251
5252 \end_inset
5253
5254 」と打鍵したならば,
5255
5256 \begin_inset Flex MenuItem
5257 status collapsed
5258
5259 \begin_layout Plain Layout
5260 t
5261 \end_layout
5262
5263 \end_inset
5264
5265 」は曲折アクセントをとることは決してないために,
5266 \SpecialChar LyX
5267 はビープを鳴らして文句を付けます.デッドキーの後に
5268 \begin_inset Flex MenuItem
5269 status collapsed
5270
5271 \begin_layout Plain Layout
5272 スペース
5273 \end_layout
5274
5275 \end_inset
5276
5277 を打つと,
5278 アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,
5279 このキー上の文字を別のキーに割り当て直す必要があります.たとえば,
5280
5281 \begin_inset Flex MenuItem
5282 status collapsed
5283
5284 \begin_layout Plain Layout
5285 ,キー
5286 \end_layout
5287
5288 \end_inset
5289
5290 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
5291 \end_layout
5292
5293 \begin_layout Standard
5294 デッドキーを割り当てるのによく用いられる方法は,
5295
5296 \begin_inset Flex MenuItem
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300 Meta-
5301 \end_layout
5302
5303 \end_inset
5304
5305
5306 \begin_inset Flex MenuItem
5307 status collapsed
5308
5309 \begin_layout Plain Layout
5310 Ctrl-
5311 \end_layout
5312
5313 \end_inset
5314
5315
5316 \begin_inset Flex MenuItem
5317 status collapsed
5318
5319 \begin_layout Plain Layout
5320 Shift-
5321 \end_layout
5322
5323 \end_inset
5324
5325 キーを,
5326
5327 \begin_inset Flex MenuItem
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331 ~
5332 \end_layout
5333
5334 \end_inset
5335
5336 」・「
5337 \begin_inset Flex MenuItem
5338 status collapsed
5339
5340 \begin_layout Plain Layout
5341 ,
5342 \end_layout
5343
5344 \end_inset
5345
5346 」・「
5347 \begin_inset Flex MenuItem
5348 status collapsed
5349
5350 \begin_layout Plain Layout
5351 ^
5352 \end_layout
5353
5354 \end_inset
5355
5356 」のようなアクセントと一緒に用いる方法です.また,
5357
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 xmodmap
5363 \end_layout
5364
5365 \end_inset
5366
5367
5368 \begin_inset Flex Code
5369 status collapsed
5370
5371 \begin_layout Plain Layout
5372 xkeycaps
5373 \end_layout
5374
5375 \end_inset
5376
5377 を使って,
5378 特別な
5379 \begin_inset Flex Code
5380 status collapsed
5381
5382 \begin_layout Plain Layout
5383 Mode_Switch
5384 \end_layout
5385
5386 \end_inset
5387
5388 キーを設定する方法もあります.
5389 \begin_inset Flex Code
5390 status collapsed
5391
5392 \begin_layout Plain Layout
5393 Mode_Switch
5394 \end_layout
5395
5396 \end_inset
5397
5398 キーは,
5399 ちょうど
5400 \begin_inset Flex MenuItem
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 Shift
5405 \end_layout
5406
5407 \end_inset
5408
5409 キーのように機能するので,
5410 アクセント文字を割り当てるのに使用できます.また,
5411 特定のキーを
5412 \begin_inset Flex Code
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416 usldead_cedilla
5417 \end_layout
5418
5419 \end_inset
5420
5421 などに割り当てることで,
5422 これらのキーをデッドキーに仕立て,
5423 このシンボリックキーを対応する\SpecialChar LyX
5424 コマンドに割り当てることもできます
5425 \begin_inset Foot
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429
5430 \noun on
5431 John Weiss
5432 \noun default
5433 からの註:
5434 これはまさに私が,
5435 自分の
5436 \begin_inset Flex Code
5437 status collapsed
5438
5439 \begin_layout Plain Layout
5440 ~/.lyx/lyxrc
5441 \end_layout
5442
5443 \end_inset
5444
5445
5446 \begin_inset Flex Code
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 ~/.xmodmap
5451 \end_layout
5452
5453 \end_inset
5454
5455 で行っていることです.私は,
5456
5457 \begin_inset Flex MenuItem
5458 status collapsed
5459
5460 \begin_layout Plain Layout
5461 Scroll
5462 \begin_inset space ~
5463 \end_inset
5464
5465 Lock
5466 \end_layout
5467
5468 \end_inset
5469
5470 キーを
5471 \begin_inset Flex Code
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475 Mode_Shift
5476 \end_layout
5477
5478 \end_inset
5479
5480 に仕立てて,
5481 多数の
5482 \begin_inset Flex Code
5483 status collapsed
5484
5485 \begin_layout Plain Layout
5486 usldead_*
5487 \end_layout
5488
5489 \end_inset
5490
5491 シンボリックキーを
5492 \begin_inset Flex MenuItem
5493 status collapsed
5494
5495 \begin_layout Plain Layout
5496 Scroll
5497 \begin_inset space ~
5498 \end_inset
5499
5500 Lock-^
5501 \end_layout
5502
5503 \end_inset
5504
5505
5506 \begin_inset Flex MenuItem
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510 Scroll
5511 \begin_inset space ~
5512 \end_inset
5513
5514 Lock-~
5515 \end_layout
5516
5517 \end_inset
5518
5519 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5520 \end_layout
5521
5522 \end_inset
5523
5524 .この
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529 Mode_Switch
5530 \end_layout
5531
5532 \end_inset
5533
5534 キーには,
5535
5536 \begin_inset Flex MenuItem
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540 Ctrl-
5541 \end_layout
5542
5543 \end_inset
5544
5545 キーの片方や使われていないファンクションキーなど,
5546 ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5547 コマンドについては,
5548
5549 \emph on
5550 \SpecialChar LyX
5551 関数説明書
5552 \emph default
5553
5554 \begin_inset Flex Code
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558 LFUN_ACCENT_*
5559 \end_layout
5560
5561 \end_inset
5562
5563 の項をご覧ください.ここには完備した一覧があります.
5564 \end_layout
5565
5566 \begin_layout Subsection
5567 自分の言語設定を保存する
5568 \end_layout
5569
5570 \begin_layout Standard
5571 \begin_inset Flex MenuItem
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575 ツール\SpecialChar menuseparator
5576 設定
5577 \end_layout
5578
5579 \end_inset
5580
5581 ダイアログを使えば,
5582 \SpecialChar LyX
5583 を起動したときに,
5584 ご希望の言語環境に自動的に設定されるように,
5585 設定を編集することができます.
5586 \end_layout
5587
5588 \begin_layout Chapter
5589 文書クラス・レイアウト・ひな型の作成と新規導入
5590 \begin_inset CommandInset label
5591 LatexCommand label
5592 name "cha:新規文書を導入"
5593
5594 \end_inset
5595
5596
5597 \begin_inset Argument 1
5598 status collapsed
5599
5600 \begin_layout Plain Layout
5601 文書クラスを新規に導入する
5602 \end_layout
5603
5604 \end_inset
5605
5606
5607 \end_layout
5608
5609 \begin_layout Standard
5610 この章では,
5611 新しく\SpecialChar LyX
5612 のレイアウトファイルやひな型ファイルを作成して,
5613 導入する手順を説明すると共に,
5614 新規に\SpecialChar LaTeX
5615 文書クラス(ドキュメントクラス)を正しく導入する方法を復習します.
5616 \end_layout
5617
5618 \begin_layout Standard
5619 まず,
5620 \SpecialChar LyX
5621 と\SpecialChar LaTeX
5622 の間の関係をどのように考えるべきか,
5623 若干の註釈を加えておくことにしましょう.理解していただきたいことは,
5624 ある意味において,
5625 \SpecialChar LyX
5626 は,
5627 La\SpecialChar TeX
5628 について何も知らないと云うことです.実際のところ,
5629 \SpecialChar LyX
5630 の観点からは,
5631 \SpecialChar LaTeX
5632 は,
5633 \SpecialChar LyX
5634 が出力を生成することができる,
5635 複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形式には,
5636 DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5637 は,
5638 とくに重要な形式ですが,
5639 \SpecialChar LyX
5640 がLa\SpecialChar TeX
5641 について持っている情報のほとんどは,
5642 実はプログラム本体には含まれていないのです
5643 \begin_inset Foot
5644 status collapsed
5645
5646 \begin_layout Plain Layout
5647 過度に複雑なため,
5648 \SpecialChar LyX
5649 に「ハードコード化」されているコマンドもありますが,
5650 一般的に開発者は,
5651 これを「わるいこと」とみなしています.
5652 \end_layout
5653
5654 \end_inset
5655
5656 .このような情報は,
5657
5658 \begin_inset Flex Code
5659 status collapsed
5660
5661 \begin_layout Plain Layout
5662 article.cls
5663 \end_layout
5664
5665 \end_inset
5666
5667 のような標準クラスでも,
5668 「レイアウトファイル」に保管されています.同様に,
5669 \SpecialChar LyX
5670 は,
5671 DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5672 が知っていることは,
5673 レイアウトファイルの中にあります.
5674 \end_layout
5675
5676 \begin_layout Standard
5677 文書クラス用のレイアウトファイルは,
5678 \SpecialChar LyX
5679 構成体—
5680 対応する様式や何らかの差込枠などを有する段落群—
5681 と,
5682 それに対応する\SpecialChar LaTeX
5683 構成体・DocBook構成体・XHTML構成体との間の翻訳指南書のようなものです.たとえば,
5684 \SpecialChar LyX
5685
5686 \begin_inset Flex Code
5687 status collapsed
5688
5689 \begin_layout Plain Layout
5690 article.cls
5691 \end_layout
5692
5693 \end_inset
5694
5695 について知っていることのほとんど総ては,
5696
5697 \begin_inset Flex Code
5698 status collapsed
5699
5700 \begin_layout Plain Layout
5701 article.layout
5702 \end_layout
5703
5704 \end_inset
5705
5706 と,
5707 それが呼び出す他の様々なファイルに書き込まれています.このことから,
5708 レイアウトファイルを書こうとする人は,
5709 既存のファイルを研究することを勧めます.とっかかりとしては,
5710
5711 \begin_inset Flex Code
5712 status collapsed
5713
5714 \begin_layout Plain Layout
5715 article.layout
5716 \end_layout
5717
5718 \end_inset
5719
5720
5721 \begin_inset Flex Code
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 book.layout
5726 \end_layout
5727
5728 \end_inset
5729
5730 や,
5731 文書クラス用の他のレイアウトファイルに取り込まれている
5732 \begin_inset Flex Code
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 stdsections.inc
5737 \end_layout
5738
5739 \end_inset
5740
5741 から見始めるのがよいでしょう.このファイルは,
5742 節などの定義が為されている場所です.
5743 \begin_inset Flex Code
5744 status collapsed
5745
5746 \begin_layout Plain Layout
5747 stdsections.inc
5748 \end_layout
5749
5750 \end_inset
5751
5752 は,
5753 節様式や小節様式などとしてマークされている段落を,
5754 対応する\SpecialChar LaTeX
5755 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5756 に知らせるものです.基本的に
5757 \begin_inset Flex Code
5758 status collapsed
5759
5760 \begin_layout Plain Layout
5761 article.layout
5762 \end_layout
5763
5764 \end_inset
5765
5766 ファイルは,
5767 これらの
5768 \begin_inset Flex Code
5769 status collapsed
5770
5771 \begin_layout Plain Layout
5772 std*.inc
5773 \end_layout
5774
5775 \end_inset
5776
5777 ファイルを取り込んでいるだけのものです.
5778 \end_layout
5779
5780 \begin_layout Standard
5781 しかしながら,
5782 \SpecialChar LyX
5783 –\SpecialChar LaTeX
5784 間の対応を定義するだけが,
5785 レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,
5786 \SpecialChar LyX
5787 構成体自身が画面上にどのように表示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,
5788 レイアウトファイルが2つの仕事を行うという事実は,
5789 しばしば混乱を引き起こす元となります.ある段落様式を\SpecialChar LaTeX
5790 に翻訳する仕方を\SpecialChar LyX
5791 に指示することは,
5792 その表示の仕方を\SpecialChar LyX
5793 に指示するものではありません.逆に,
5794 ある段落様式の表示の仕方を\SpecialChar LyX
5795 に指示することは,
5796 その段落様式をどのように\SpecialChar LaTeX
5797 に翻訳するかを\SpecialChar LyX
5798 に指示するものではありません(ましてや\SpecialChar LaTeX
5799 に表示の仕方を指示するものではありません).つまり,
5800 一般的に,
5801 新しい\SpecialChar LyX
5802 構成体を定義する際には,
5803 (i)
5804 \begin_inset space ~
5805 \end_inset
5806
5807 \SpecialChar LaTeX
5808 にどのように翻訳するかを\SpecialChar LyX
5809 に指示する,
5810 (ii)
5811 \begin_inset space ~
5812 \end_inset
5813
5814 それをどのように表示するかを\SpecialChar LyX
5815 に指示する,
5816 という,
5817 二つのかなり異なることを行わなくてはならないのです.
5818 \end_layout
5819
5820 \begin_layout Standard
5821 もちろん,
5822 \SpecialChar LyX
5823 の他のバックエンド形式に関しても,
5824 ほぼ同じことが言えますが,
5825 XHTMLの場合には若干事情が異なり,
5826 \SpecialChar LyX
5827 が,
5828 ブラウザ中での段落の表示方法を(CSSの形で)出力するにあたって,
5829 当該段落を\SpecialChar LyX
5830 が画面上に出力する仕方の情報を,
5831 ある程度利用することができます.しかし,
5832 この場合でも,
5833 \SpecialChar LyX
5834 が内部的に行うことと,
5835 外部的に行う物事の間の区別は,
5836 依然として有効であり,
5837 この2つは独立して制御することができます.詳細に関しては,
5838
5839 \begin_inset CommandInset ref
5840 LatexCommand ref
5841 reference "sec:XHTML出力のタグ"
5842 nolink "false"
5843
5844 \end_inset
5845
5846 節をご覧ください.
5847 \end_layout
5848
5849 \begin_layout Section
5850 新しい\SpecialChar LaTeX
5851 ファイルの導入
5852 \end_layout
5853
5854 \begin_layout Standard
5855 頒布版によっては,
5856 \SpecialChar LyX
5857 で使いたい\SpecialChar LaTeX
5858 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,
5859 オーバーヘッドプロジェクタ用のスライドを準備するためのパッケージである,
5860 Foil\SpecialChar TeX
5861 がないかもしれません.\SpecialChar TeX
5862 Live(2008年以降)やMiK\SpecialChar TeX
5863 のような最近の\SpecialChar LaTeX
5864 頒布版には,
5865 これらのパッケージを導入するためのユーザーインタフェースが用意されています.たとえば,
5866 MiK\SpecialChar TeX
5867 では,
5868 付属の「Package
5869 \begin_inset space ~
5870 \end_inset
5871
5872 Manager」プログラムを起動すると,
5873 利用できるパッケージの一覧を得ることができます.どれかを導入するには,
5874 その上で右クリックするかツールバーボタンを押してください.
5875 \end_layout
5876
5877 \begin_layout Standard
5878 お使いの\SpecialChar LaTeX
5879 頒布版がこのような「パッケージマネジャー」を提供していなかったり,
5880 使用中の頒布版にそのパッケージが入っていない場合には,
5881 以下のステップに従って手動で導入してください.
5882 \end_layout
5883
5884 \begin_layout Enumerate
5885 \begin_inset CommandInset href
5886 LatexCommand href
5887 name "CTAN"
5888 target "http://www.ctan.org/"
5889 literal "false"
5890
5891 \end_inset
5892
5893 などから欲しいパッケージを入手してください.
5894 \end_layout
5895
5896 \begin_layout Enumerate
5897 パッケージに「
5898 \begin_inset Flex Code
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 .ins
5903 \end_layout
5904
5905 \end_inset
5906
5907 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5908 がその一例です)は,
5909 コンソールを開いて,
5910 このファイルのフォルダに移動し,
5911 コマンド
5912 \begin_inset Flex Code
5913 status collapsed
5914
5915 \begin_layout Plain Layout
5916 latex foiltex.ins
5917 \end_layout
5918
5919 \end_inset
5920
5921 を実行してください.すると,
5922 パッケージが解凍されて,
5923 導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5924 パッケージは圧縮されていないので,
5925 このステップは飛ばすことができます.
5926 \end_layout
5927
5928 \begin_layout Enumerate
5929 ここで,
5930 パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5931 \end_layout
5932
5933 \begin_deeper
5934 \begin_layout Enumerate
5935 (Linux・OSXなどの)*nix系システムでは,
5936 システム上の全ユーザーに新パッケージを利用可能にしたければ,
5937 「ローカル」\SpecialChar TeX
5938 ツリーに導入し,
5939 そうでなければ「ユーザー」\SpecialChar TeX
5940 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,
5941 お使いのシステムに依存します.これを見いだすには,
5942
5943 \begin_inset Flex Code
5944 status collapsed
5945
5946 \begin_layout Plain Layout
5947 texmf.cnf
5948 \end_layout
5949
5950 \end_inset
5951
5952 ファイルを参照してください
5953 \begin_inset Foot
5954 status collapsed
5955
5956 \begin_layout Plain Layout
5957 このファイルは,
5958 通常
5959 \family sans
5960 $TEXMF/web2c
5961 \family default
5962 ディレクトリにありますが,
5963 コマンド
5964 \begin_inset Flex Code
5965 status collapsed
5966
5967 \begin_layout Plain Layout
5968 kpsewhich texmf.cnf
5969 \end_layout
5970
5971 \end_inset
5972
5973 を実行してその場所を見つけることもできます.
5974 \end_layout
5975
5976 \end_inset
5977
5978 .「ローカル」\SpecialChar TeX
5979 ツリーの場所は,
5980
5981 \begin_inset Flex Code
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985 TEXMFLOCAL
5986 \end_layout
5987
5988 \end_inset
5989
5990 変数で定義されており,
5991 通常は
5992 \begin_inset Flex Code
5993 status collapsed
5994
5995 \begin_layout Plain Layout
5996 /usr/local/share/texmf/
5997 \end_layout
5998
5999 \end_inset
6000
6001
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 /usr/local/texlive/XXXX
6007 \end_layout
6008
6009 \end_inset
6010
6011  (XXXXは導入されている\SpecialChar TeX
6012 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
6013 ツリーの場所は,
6014
6015 \begin_inset Flex Code
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 TEXMFHOME
6020 \end_layout
6021
6022 \end_inset
6023
6024 で定義されており,
6025 通常は
6026 \begin_inset Flex Code
6027 status collapsed
6028
6029 \begin_layout Plain Layout
6030 $HOME/texmf/
6031 \end_layout
6032
6033 \end_inset
6034
6035
6036 \begin_inset Flex Code
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040 $HOME/.texliveXXXX
6041 \end_layout
6042
6043 \end_inset
6044
6045 です(もしこれらの変数が事前定義されていなければ,
6046 定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,
6047 おそらくroot権限が必要ですが,
6048 「ユーザー」ツリーにはこのような制限はありません.
6049 \begin_inset Newline newline
6050 \end_inset
6051
6052 一般的に,
6053 システムをアップグレードした際に,
6054 ユーザーが修正されたり上書きされたりということが起こらないので,
6055 ユーザーツリーに導入することが推奨されます.こうすると,
6056 自分のホームディレクトリをバックアップする際に,
6057 パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
6058 \end_layout
6059
6060 \begin_layout Enumerate
6061 Windowで,
6062 システム上の全ユーザーに新パッケージを利用可能にしたい場合には,
6063 \SpecialChar LaTeX
6064 の導入されているフォルダのサブフォルダ
6065 \begin_inset Flex Code
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 ~
6070 \backslash
6071 tex
6072 \backslash
6073 latex
6074 \end_layout
6075
6076 \end_inset
6077
6078 に移動します(MiK\SpecialChar TeX
6079 の既定値では,
6080 これは
6081 \begin_inset Flex Code
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 ~:Programs
6086 \backslash
6087 MiKTeX
6088 \backslash
6089 tex
6090 \backslash
6091 latex
6092 \end_layout
6093
6094 \end_inset
6095
6096 です)
6097 \begin_inset Foot
6098 status open
6099
6100 \begin_layout Plain Layout
6101 これは,
6102 英語版でのみ正しいパスになっています.独語版では
6103 \begin_inset Flex Code
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 ~:Programme
6108 \backslash
6109 MiKTeX
6110 \backslash
6111 tex
6112 \backslash
6113 latex
6114 \end_layout
6115
6116 \end_inset
6117
6118 となり,
6119 他の言語でも同様です.
6120 \end_layout
6121
6122 \end_inset
6123
6124 .ここに新規フォルダ
6125 \begin_inset Flex Code
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129 foiltex
6130 \end_layout
6131
6132 \end_inset
6133
6134 を作成し,
6135 パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,
6136 admin権限を持っていない場合には,
6137 ローカル\SpecialChar LaTeX
6138 フォルダで同じことを行います.たとえばMiK\SpecialChar TeX
6139
6140 \begin_inset space ~
6141 \end_inset
6142
6143 2.8では,
6144 これはWinXP上では
6145 \begin_inset Newline newline
6146 \end_inset
6147
6148
6149 \begin_inset Flex Code
6150 status collapsed
6151
6152 \begin_layout Plain Layout
6153 ~:
6154 \backslash
6155 Documents and Settings
6156 \backslash
6157 <ユーザー名>
6158 \backslash
6159 Application Data
6160 \backslash
6161
6162 \end_layout
6163
6164 \end_inset
6165
6166
6167 \begin_inset Newline newline
6168 \end_inset
6169
6170
6171 \begin_inset Phantom HPhantom
6172 status open
6173
6174 \begin_layout Plain Layout
6175
6176 \family typewriter
6177 ~:
6178 \backslash
6179
6180 \end_layout
6181
6182 \end_inset
6183
6184
6185 \begin_inset Flex Code
6186 status collapsed
6187
6188 \begin_layout Plain Layout
6189 MiKTeX
6190 \backslash
6191 2.8
6192 \backslash
6193 tex
6194 \backslash
6195 latex
6196 \end_layout
6197
6198 \end_inset
6199
6200
6201 \begin_inset Newline newline
6202 \end_inset
6203
6204 フォルダ,
6205 WinVista上では
6206 \begin_inset Newline newline
6207 \end_inset
6208
6209
6210 \begin_inset Flex Code
6211 status collapsed
6212
6213 \begin_layout Plain Layout
6214 ~:
6215 \backslash
6216 Users
6217 \backslash
6218 <ユーザー名>
6219 \backslash
6220 AppData
6221 \backslash
6222 Roaming
6223 \backslash
6224 2.8
6225 \backslash
6226 MiKTeX
6227 \backslash
6228 tex
6229 \backslash
6230 latex
6231 \end_layout
6232
6233 \end_inset
6234
6235
6236 \begin_inset Newline newline
6237 \end_inset
6238
6239 フォルダになります.
6240 \end_layout
6241
6242 \end_deeper
6243 \begin_layout Enumerate
6244 ここまで来れば,
6245 あとは\SpecialChar LaTeX
6246 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
6247 頒布版に依存します.
6248 \end_layout
6249
6250 \begin_deeper
6251 \begin_layout Enumerate
6252 \SpecialChar TeX
6253 Liveの場合には,
6254 コンソールから
6255 \begin_inset Flex Code
6256 status collapsed
6257
6258 \begin_layout Plain Layout
6259 texhash
6260 \end_layout
6261
6262 \end_inset
6263
6264 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,
6265 おそらくroot権限で行う必要があります.
6266 \end_layout
6267
6268 \begin_layout Enumerate
6269 MiK\SpecialChar TeX
6270 では,
6271 パッケージを全ユーザー用に導入した場合には,
6272 「Settings
6273 \begin_inset space ~
6274 \end_inset
6275
6276 (Admin)」を起動し,
6277 「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,
6278 「Settings」を起動して同様に行ってください.
6279 \end_layout
6280
6281 \end_deeper
6282 \begin_layout Enumerate
6283 最後に,
6284 \SpecialChar LyX
6285 に新しいパッケージがあることを告げなくてはなりません.そこで,
6286 \SpecialChar LyX
6287 からツール\SpecialChar menuseparator
6288 環境構成メニューを実行して,
6289 \SpecialChar LyX
6290 を再起動します.
6291 \end_layout
6292
6293 \begin_layout Standard
6294 これでパッケージが導入されました.この例では,
6295 文書クラス
6296 \begin_inset Flex Code
6297 status collapsed
6298
6299 \begin_layout Plain Layout
6300 Slides
6301 \begin_inset space ~
6302 \end_inset
6303
6304 (FoilTeX)
6305 \end_layout
6306
6307 \end_inset
6308
6309
6310 \begin_inset Flex MenuItem
6311 status collapsed
6312
6313 \begin_layout Plain Layout
6314 文書\SpecialChar menuseparator
6315 設定\SpecialChar menuseparator
6316 文書クラス
6317 \end_layout
6318
6319 \end_inset
6320
6321 で利用可能になっているはずです.
6322 \end_layout
6323
6324 \begin_layout Standard
6325 \begin_inset Flex MenuItem
6326 status collapsed
6327
6328 \begin_layout Plain Layout
6329 文書\SpecialChar menuseparator
6330 設定\SpecialChar menuseparator
6331 文書クラス
6332 \end_layout
6333
6334 \end_inset
6335
6336 メニューに列挙されてもいない\SpecialChar LaTeX
6337 文書クラスを使用したい場合には,
6338 その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
6339 \end_layout
6340
6341 \begin_layout Section
6342 レイアウトファイルの型
6343 \end_layout
6344
6345 \begin_layout Standard
6346 この節は,
6347 レイアウト情報を含む各種\SpecialChar LyX
6348 ファイルについて述べます.これらのファイルは,
6349 各種段落様式や文字様式についての記述がされているものであり,
6350 \SpecialChar LyX
6351 がそれらをどのように表示すべきなのか,
6352 また,
6353 それらをどのように\SpecialChar LaTeX
6354 やDocBook,
6355 XHTMLその他の出力形式に翻訳すればよいのかが記されています.
6356 \end_layout
6357
6358 \begin_layout Standard
6359 ここでは,
6360 レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,
6361 \SpecialChar LaTeX
6362 クラスだけでもサポートする文書の種類があまりにたくさんあるので,
6363 読者が出会いうるケースや問題をすべてカバーすることはとても望めません.\SpecialChar LyX
6364 ユーザーメーリングリストには,
6365 自身の経験を人々と分かち合いたいと望む,
6366 レイアウトデザインの経験豊かな人々がよく顔を出していますので,
6367 気軽に質問を投げかけてみてください.
6368 \end_layout
6369
6370 \begin_layout Standard
6371 新しいレイアウトを準備するに当たっては,
6372 \SpecialChar LyX
6373 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
6374 文書クラス用の\SpecialChar LyX
6375 レイアウトを作ったり,
6376 他の人々にも有用なモジュールをお書きになった場合には,
6377
6378 \begin_inset CommandInset href
6379 LatexCommand href
6380 name "LyX Wikiのレイアウトに関する節"
6381 target "https://wiki.lyx.org/Layouts/Layouts"
6382 literal "false"
6383
6384 \end_inset
6385
6386 か,
6387 \SpecialChar LyX
6388 開発者メーリングリストに投稿して,
6389 \SpecialChar LyX
6390 頒布版に同梱することができるようにしてください
6391 \begin_inset Foot
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 \SpecialChar LyX
6396 はGeneral Public Licenseの下でライセンスされていますので,
6397 \SpecialChar LyX
6398 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
6399 \end_layout
6400
6401 \end_inset
6402
6403
6404 \end_layout
6405
6406 \begin_layout Subsection
6407 レイアウトモジュール
6408 \begin_inset CommandInset label
6409 LatexCommand label
6410 name "subsec:レイアウトモジュール"
6411
6412 \end_inset
6413
6414
6415 \end_layout
6416
6417 \begin_layout Standard
6418 ここまで,
6419 「レイアウトファイル」についてお話してきました.しかし,
6420 レイアウト情報を含むものには,
6421 他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき,
6422 それは
6423 \begin_inset Flex Code
6424 status collapsed
6425
6426 \begin_layout Plain Layout
6427 .layout
6428 \end_layout
6429
6430 \end_inset
6431
6432 拡張子を持ち,
6433 文書クラスに関する情報を\SpecialChar LyX
6434 に提供するものを指します.しかしながら,
6435 \SpecialChar LyX
6436  1.6以降,
6437 レイアウト情報は,
6438 拡張子が
6439 \begin_inset Flex Code
6440 status collapsed
6441
6442 \begin_layout Plain Layout
6443 .module
6444 \end_layout
6445
6446 \end_inset
6447
6448 のレイアウト
6449 \emph on
6450 モジュール
6451 \emph default
6452 にも含めることができます.レイアウトが\SpecialChar LaTeX
6453 クラスに対応しているように,
6454 モジュールは\SpecialChar LaTeX
6455 パッケージに対応するものであり,
6456
6457 \begin_inset Flex Code
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 endnotes
6462 \end_layout
6463
6464 \end_inset
6465
6466 モジュールのように,
6467 特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,
6468 特定の文書レイアウトに特化したものではなく,
6469 多くのレイアウトで使用できるという意味において,
6470 一面,
6471
6472 \begin_inset Flex Code
6473 status collapsed
6474
6475 \begin_layout Plain Layout
6476 stdsections.inc
6477 \end_layout
6478
6479 \end_inset
6480
6481 等のインクルードファイル
6482 \begin_inset Foot
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 これらは任意の拡張子をつけることができますが,
6487 慣習的に
6488 \begin_inset Flex Code
6489 status collapsed
6490
6491 \begin_layout Plain Layout
6492 .inc
6493 \end_layout
6494
6495 \end_inset
6496
6497 拡張子が用いられます.
6498 \end_layout
6499
6500 \end_inset
6501
6502 のようなものです.相異なる点といえば,
6503
6504 \begin_inset Flex Code
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508 article.cls
6509 \end_layout
6510
6511 \end_inset
6512
6513 でインクルードファイルを使用するには,
6514 そのファイルを編集しなくてはなりませんが,
6515 モジュールの場合は,
6516
6517 \begin_inset Flex MenuItem
6518 status collapsed
6519
6520 \begin_layout Plain Layout
6521 文書\SpecialChar menuseparator
6522 設定
6523 \end_layout
6524
6525 \end_inset
6526
6527 ダイアログで選択するだけですみます.
6528 \end_layout
6529
6530 \begin_layout Standard
6531 モジュール作成は,
6532 新しく段落様式を一つ加えたり,
6533 自由差込枠を加えたりするだけで済むことも多いので,
6534 レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的には,
6535 レイアウトファイルに入れることのできるものはすべて入れることができます.
6536 \end_layout
6537
6538 \begin_layout Standard
6539 新しいモジュールを作成し,
6540 それを
6541 \begin_inset Flex Code
6542 status collapsed
6543
6544 \begin_layout Plain Layout
6545 layout/
6546 \end_layout
6547
6548 \end_inset
6549
6550 フォルダにコピーした後,
6551 モジュールがメニューに現れるようにするためには,
6552 \SpecialChar LyX
6553 の環境構成を行って再起動しなくてはなりません.しかしながら,
6554 モジュールの修正の場合には,
6555
6556 \begin_inset Flex MenuItem
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 文書\SpecialChar menuseparator
6561 設定
6562 \end_layout
6563
6564 \end_inset
6565
6566 を開いてどれかを選択し「OK」を押せば,
6567 直ちに反映されます.
6568 \emph on
6569 これを実行する前に,
6570 作業中の文書を保存しておくことを強く勧めます
6571 \emph default
6572 .もっと言えば,
6573
6574 \emph on
6575 実際の文書で作業しているときに,
6576 同時にモジュールの編集をしようとしないことを強く勧めます
6577 \emph default
6578 .もちろん開発陣は,
6579 そのような場合でも\SpecialChar LyX
6580 が安定性を維持するように努力していますが,
6581 あなたが作成したモジュール中の文法エラー等によって,
6582 奇妙な挙動が引き起こされることがあるからです.
6583 \end_layout
6584
6585 \begin_layout Subsubsection
6586 ローカルレイアウト
6587 \end_layout
6588
6589 \begin_layout Standard
6590 \SpecialChar LyX
6591 に於けるモジュールは,
6592 \SpecialChar LaTeX
6593 に於けるパッケージに当たります.しかしながら,
6594 特定の差込枠や文字様式を,
6595 ひとつの文書のためだけに作りたいこともあるでしょうから,
6596 そのような場合に,
6597 他の文書でも利用できるようなモジュールをわざわざ書くことには,
6598 あまり意味がありません.このような場合に必要となるのが,
6599 「ローカルレイアウト」なのです.
6600 \end_layout
6601
6602 \begin_layout Standard
6603 これは,
6604
6605 \family sans
6606 文書\SpecialChar menuseparator
6607 設定\SpecialChar menuseparator
6608 ローカルのレイアウト
6609 \family default
6610 にあります.そこにある大きなテキストボックスは,
6611 本来ならレイアウトファイルやモジュールに入力すべきものを,
6612 入力するためのものです.特定の文書のローカルレイアウトは,
6613 その文書専属のモジュールだと考えることができます.したがって,
6614
6615 \begin_inset Flex Code
6616 status collapsed
6617
6618 \begin_layout Plain Layout
6619 Format
6620 \end_layout
6621
6622 \end_inset
6623
6624 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,
6625 通常は,
6626 執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
6627  
6628 \begin_inset Info
6629 type  "lyxinfo"
6630 arg   "version"
6631 \end_inset
6632
6633 では,
6634 最新書式は
6635 \begin_inset Info
6636 type  "lyxinfo"
6637 arg   "layoutformat"
6638 \end_inset
6639
6640 です).
6641 \end_layout
6642
6643 \begin_layout Standard
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 ローカルのレイアウト
6649 \end_layout
6650
6651 \end_inset
6652
6653 面に何かを入力すると,
6654 下部にある「検証」ボタンが有効になります.このボタンを押すと,
6655 ユーザーの入力したものが,
6656 指定された書式に沿って,
6657 有効なレイアウト情報になっているかどうかが検証されます.すると,
6658 \SpecialChar LyX
6659 がその結果を返しますが,
6660 残念ながら,
6661 エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,
6662 \SpecialChar LyX
6663 をターミナル(擬似端末)から起動した場合には,
6664 そのエラーがターミナルに返されます.ローカルレイアウトは,
6665 正しい書式で入力されないうちは,
6666 保存することができません.
6667 \end_layout
6668
6669 \begin_layout Standard
6670 ここで,
6671 前節と同じ警告があります.ローカルレイアウトは,
6672 作業中の文書上で,
6673 特に保存していない文書上ではいじらないでください.それに注意すれば,
6674 テスト用文書上でローカルレイアウトを用いるのは,
6675 レイアウトのアイディアを試すのに便利ですし,
6676 モジュール開発の第一歩としても便利です.
6677 \end_layout
6678
6679 \begin_layout Subsection
6680 \begin_inset Flex MenuItem
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 .sty
6685 \end_layout
6686
6687 \end_inset
6688
6689 ファイル用のレイアウト
6690 \end_layout
6691
6692 \begin_layout Standard
6693 新しく\SpecialChar LaTeX
6694 文書クラスをサポートしようとするとき,
6695 \SpecialChar LaTeX2e
6696 クラス(
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 .cls
6702 \end_layout
6703
6704 \end_inset
6705
6706 )ファイルが絡む場合と,
6707 スタイル(
6708 \begin_inset Flex Code
6709 status collapsed
6710
6711 \begin_layout Plain Layout
6712 .sty
6713 \end_layout
6714
6715 \end_inset
6716
6717 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,
6718 通常は,
6719 かなり容易ですが,
6720 新しくクラスファイルをサポートすることは,
6721 もう少し難しくなります.この節では,
6722 前者について述べることとし,
6723 後者については次節に譲ります.
6724 \end_layout
6725
6726 \begin_layout Standard
6727 この易しい方の場合では,
6728 新しい文書クラスは,
6729 既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,
6730 スタイルファイルは
6731 \begin_inset Flex MenuItem
6732 status collapsed
6733
6734 \begin_layout Plain Layout
6735 myclass.sty
6736 \end_layout
6737
6738 \end_inset
6739
6740 という名称で,
6741 標準的なクラスである
6742 \begin_inset Flex MenuItem
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 report.cls
6747 \end_layout
6748
6749 \end_inset
6750
6751 と共に用いられるものと仮定しましょう.
6752 \end_layout
6753
6754 \begin_layout Standard
6755 既存の文書クラスのレイアウトファイルを,
6756 以下のように,
6757 お使いのローカルディレクトリにコピーすることから始めてください
6758 \begin_inset Foot
6759 status collapsed
6760
6761 \begin_layout Plain Layout
6762 もちろん,
6763 どのディレクトリがローカルディレクトリとなるかは,
6764 プラットフォームに依存します.\SpecialChar LyX
6765 では,
6766 起動時に
6767 \begin_inset Flex MenuItem
6768 status collapsed
6769
6770 \begin_layout Plain Layout
6771 -userdir
6772 \end_layout
6773
6774 \end_inset
6775
6776 オプションを指定することによって,
6777 ローカルディレクトリを指定することも可能です.
6778 \end_layout
6779
6780 \end_inset
6781
6782
6783 \end_layout
6784
6785 \begin_layout LyX-Code
6786 cp report.layout ~/.lyx/layouts/myclass.layout
6787 \end_layout
6788
6789 \begin_layout Standard
6790 それから,
6791
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 myclass.layout
6797 \end_layout
6798
6799 \end_inset
6800
6801 を編集して,
6802
6803 \end_layout
6804
6805 \begin_layout LyX-Code
6806
6807 \backslash
6808 DeclareLaTeXClass{report}
6809 \end_layout
6810
6811 \begin_layout Standard
6812 という行を
6813 \end_layout
6814
6815 \begin_layout LyX-Code
6816
6817 \backslash
6818 DeclareLaTeXClass[report,
6819  myclass.sty]{report (myclass)}
6820 \end_layout
6821
6822 \begin_layout Standard
6823 のように変更してください.それから,
6824 ファイル冒頭辺りに
6825 \end_layout
6826
6827 \begin_layout LyX-Code
6828 Preamble 
6829 \begin_inset Newline newline
6830 \end_inset
6831
6832     
6833 \backslash
6834 usepackage{myclass}
6835 \begin_inset Newline newline
6836 \end_inset
6837
6838 EndPreamble
6839 \end_layout
6840
6841 \begin_layout Standard
6842 と書き加えてください.
6843 \end_layout
6844
6845 \begin_layout Standard
6846 \SpecialChar LyX
6847 を起動して
6848 \begin_inset Flex MenuItem
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 ツール\SpecialChar menuseparator
6853 環境構成
6854 \end_layout
6855
6856 \end_inset
6857
6858 を選択してください.それから\SpecialChar LyX
6859 を再起動し,
6860 新規文書を作成してみてください.すると,
6861
6862 \begin_inset Flex MenuItem
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 文書\SpecialChar menuseparator
6867 設定
6868 \end_layout
6869
6870 \end_inset
6871
6872 ダイアログの文書クラスオプションに「
6873 \begin_inset Flex MenuItem
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 report (myclass)
6878 \end_layout
6879
6880 \end_inset
6881
6882 」が現れるはずです.新しいクラスにおいて,
6883 節区切り用コマンドなどの一部が,
6884 基礎となったクラス—
6885 この例では
6886 \begin_inset Flex Code
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 report
6891 \end_layout
6892
6893 \end_inset
6894
6895
6896 とは違う挙動をすることはよくありますので,
6897 希望に応じて,
6898 各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6899
6900 \begin_inset Flex Code
6901 status collapsed
6902
6903 \begin_layout Plain Layout
6904 stdsections.inc
6905 \end_layout
6906
6907 \end_inset
6908
6909 に含まれていますが,
6910 このファイルをコピーしたり変更したりする必要はありません.代わりに,
6911 自身のレイアウトファイル中,
6912
6913 \begin_inset Flex Code
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 stdsections.inc
6918 \end_layout
6919
6920 \end_inset
6921
6922 も取り込む
6923 \begin_inset Flex Code
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927 Input stdclass.inc
6928 \end_layout
6929
6930 \end_inset
6931
6932 の後に変更を加えるだけです.たとえば,
6933 章見だしのフォントをサンセリフ体に変更するには,
6934 以下のような行を加えます.
6935 \end_layout
6936
6937 \begin_layout LyX-Code
6938 Style Chapter
6939 \end_layout
6940
6941 \begin_layout LyX-Code
6942     Font
6943 \end_layout
6944
6945 \begin_layout LyX-Code
6946         Family Sans
6947 \end_layout
6948
6949 \begin_layout LyX-Code
6950     EndFont
6951 \end_layout
6952
6953 \begin_layout LyX-Code
6954 End
6955 \end_layout
6956
6957 \begin_layout Standard
6958 これは,
6959 既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6960 \end_layout
6961
6962 \begin_layout Standard
6963 新しいパッケージでは,
6964 基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,
6965 これらをレイアウトファイルに加えます.そのやり方については,
6966
6967 \begin_inset CommandInset ref
6968 LatexCommand ref
6969 reference "sec:テキストクラス"
6970 nolink "false"
6971
6972 \end_inset
6973
6974 節の情報を参照してください.
6975 \end_layout
6976
6977 \begin_layout Standard
6978 もし
6979 \begin_inset Flex Code
6980 status collapsed
6981
6982 \begin_layout Plain Layout
6983 myclass.sty
6984 \end_layout
6985
6986 \end_inset
6987
6988 が他の文書クラスで使用することができたり,
6989 あるいはできない場合でも,
6990 基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょう.最も簡単なモジュールの例としては,
6991 以下のようなものになります.
6992 \end_layout
6993
6994 \begin_layout LyX-Code
6995 #
6996 \backslash
6997 DeclareLyXModule{My Package}
6998 \end_layout
6999
7000 \begin_layout LyX-Code
7001 #DescriptionBegin
7002 \end_layout
7003
7004 \begin_layout LyX-Code
7005 #Support for mypkg.sty.
7006 \end_layout
7007
7008 \begin_layout LyX-Code
7009 #DescriptionEnd
7010 \begin_inset Newline newline
7011 \end_inset
7012
7013
7014 \end_layout
7015
7016 \begin_layout LyX-Code
7017 Format 69
7018 \begin_inset Newline newline
7019 \end_inset
7020
7021
7022 \end_layout
7023
7024 \begin_layout LyX-Code
7025 Preamble
7026 \begin_inset Newline newline
7027 \end_inset
7028
7029     
7030 \backslash
7031 usepackage{mypkg}
7032 \begin_inset Newline newline
7033 \end_inset
7034
7035 EndPreamble
7036 \end_layout
7037
7038 \begin_layout Standard
7039 もう少し複雑なモジュールでは,
7040 既存の構成物の挙動を修正したり,
7041 新しい構成物を定義したりすることになるでしょう.この辺りの議論については,
7042
7043 \begin_inset CommandInset ref
7044 LatexCommand ref
7045 reference "sec:テキストクラス"
7046 nolink "false"
7047
7048 \end_inset
7049
7050 節を参照してください.
7051 \end_layout
7052
7053 \begin_layout Subsection
7054 \begin_inset Flex MenuItem
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 .cls
7059 \end_layout
7060
7061 \end_inset
7062
7063 ファイル用のレイアウト
7064 \end_layout
7065
7066 \begin_layout Standard
7067 これには2つのケースがありえます.ひとつは,
7068 クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,
7069 多くの学位論文用クラスは
7070 \begin_inset Flex MenuItem
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 book.cls
7075 \end_layout
7076
7077 \end_inset
7078
7079 に基づいています.お使いのものがどうであるかを見るには,
7080 クラスファイル中に
7081 \end_layout
7082
7083 \begin_layout LyX-Code
7084
7085 \backslash
7086 LoadClass{book}
7087 \end_layout
7088
7089 \begin_layout Standard
7090 という行がないかどうか探してください.もしこれがあれば,
7091
7092 \begin_inset Flex Code
7093 status collapsed
7094
7095 \begin_layout Plain Layout
7096 Declare\SpecialChar LaTeX
7097 Class
7098 \end_layout
7099
7100 \end_inset
7101
7102 行は異なりますが,
7103 おおよそ前節のように進めることができます.あなたが新しく作るクラスが
7104 \begin_inset Flex Code
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108 thesis
7109 \end_layout
7110
7111 \end_inset
7112
7113 であり,
7114
7115 \begin_inset Flex Code
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 book
7120 \end_layout
7121
7122 \end_inset
7123
7124 クラスに基づいていれば,
7125
7126 \begin_inset Flex Code
7127 status collapsed
7128
7129 \begin_layout Plain Layout
7130 Declare\SpecialChar LaTeX
7131 Class
7132 \end_layout
7133
7134 \end_inset
7135
7136 行は以下のようにします
7137 \begin_inset Foot
7138 status collapsed
7139
7140 \begin_layout Plain Layout
7141 さらに\SpecialChar LyX
7142 は,
7143 文書クラス名がレイアウトファイル名と同じだと仮定するので,
7144 クラスファイルを
7145 \begin_inset Flex Code
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149 thesis.layout
7150 \end_layout
7151
7152 \end_inset
7153
7154 という名前で保存するのが最も簡単です. 
7155 \end_layout
7156
7157 \end_inset
7158
7159
7160 \end_layout
7161
7162 \begin_layout LyX-Code
7163
7164 \backslash
7165 DeclareLaTeXClass[thesis,book]{thesis}
7166 \end_layout
7167
7168 \begin_layout Standard
7169 他方,
7170 新しいクラスが既存のクラスに基づいていない場合には,
7171 おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,
7172 類似した\SpecialChar LaTeX
7173 クラスを使用している既存のレイアウトファイルをコピーして,
7174 それに修正を加えるようにすることを強くお勧めします.少なくとも,
7175 どの項目を考慮すべきかがわかるように,
7176 既存のファイルを作業の開始点としてください.
7177 \end_layout
7178
7179 \begin_layout Subsection
7180 ひな型を作成する
7181 \begin_inset CommandInset label
7182 LatexCommand label
7183 name "sec:ひな型を作成する"
7184
7185 \end_inset
7186
7187
7188 \end_layout
7189
7190 \begin_layout Standard
7191 新しい文書クラス用のレイアウトファイルを書いたならば,
7192 そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,
7193 内容はダミーですが,
7194 レイアウトの使い方を示す一種のチュートリアルとして動作します.もちろん,
7195 イメージを得るために,
7196 \SpecialChar LyX
7197 添付のひな型をあれこれ見てみるのもよいでしょう.
7198 \end_layout
7199
7200 \begin_layout Standard
7201 ひな型は,
7202 通常の文書と同様,
7203 \SpecialChar LyX
7204 を使って作成することができます.唯一違う点は,
7205 通常の文書では,
7206 フォント構成や用紙寸法を含め,
7207 すべてのあり得る設定が為されている点です.これらの場合,
7208 通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,
7209 ひな型の設計者は,
7210
7211 \begin_inset Flex Code
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215
7216 \backslash
7217 fontscheme
7218 \end_layout
7219
7220 \end_inset
7221
7222
7223 \begin_inset Flex Code
7224 status collapsed
7225
7226 \begin_layout Plain Layout
7227
7228 \backslash
7229 papersize
7230 \end_layout
7231
7232 \end_inset
7233
7234 などの対応するコマンドをひな型\SpecialChar LyX
7235 ファイルから取り除く必要があります.これは,
7236 たとえば
7237 \begin_inset Flex Code
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 vi
7242 \end_layout
7243
7244 \end_inset
7245
7246
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 notepad
7252 \end_layout
7253
7254 \end_inset
7255
7256 のような,
7257 どの軽いテキストエディタでも行うことができます.
7258 \end_layout
7259
7260 \begin_layout Standard
7261 編集したひな型を
7262 \begin_inset Flex Code
7263 status collapsed
7264
7265 \begin_layout Plain Layout
7266 UserDir/templates/
7267 \end_layout
7268
7269 \end_inset
7270
7271 に置き,
7272 グローバルなひな型ディレクトリ
7273 \begin_inset Flex Code
7274 status collapsed
7275
7276 \begin_layout Plain Layout
7277 LyXDir/templates/
7278 \end_layout
7279
7280 \end_inset
7281
7282 から使用したいものを同じ場所にコピーし,
7283
7284 \begin_inset Flex MenuItem
7285 status collapsed
7286
7287 \begin_layout Plain Layout
7288 ツール\SpecialChar menuseparator
7289 設定\SpecialChar menuseparator
7290 パス
7291 \end_layout
7292
7293 \end_inset
7294
7295 ダイアログのひな型パスを再定義してください.
7296 \end_layout
7297
7298 \begin_layout Standard
7299 ところで,
7300 特別な意味を持つひな型
7301 \begin_inset Flex Code
7302 status collapsed
7303
7304 \begin_layout Plain Layout
7305 defaults.lyx
7306 \end_layout
7307
7308 \end_inset
7309
7310 があることに注意してください.このひな型は,
7311
7312 \begin_inset Flex MenuItem
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 ファイル\SpecialChar menuseparator
7317 新規
7318 \end_layout
7319
7320 \end_inset
7321
7322 を使って新規文書を作成する際,
7323 便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
7324 内部から作成するのにしなくてはならないことは,
7325 対応する設定を持つ文書を開き,
7326
7327 \begin_inset Flex MenuItem
7328 status collapsed
7329
7330 \begin_layout Plain Layout
7331 文書既定値として保存
7332 \end_layout
7333
7334 \end_inset
7335
7336 ボタンを押すことです.
7337 \end_layout
7338
7339 \begin_layout Subsection
7340 旧レイアウトファイルの更新
7341 \end_layout
7342
7343 \begin_layout Standard
7344 レイアウトファイルの書式は,
7345 \SpecialChar LyX
7346 のリリース毎に変更されますので,
7347 古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
7348 が古い書式のレイアウトファイルを読み込むと,
7349 \SpecialChar LyX
7350 は,
7351 自動的に変換ツール
7352 \begin_inset Flex Code
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356 \SpecialChar LyX
7357 Dir/scripts/layout2layout.py
7358 \end_layout
7359
7360 \end_inset
7361
7362 を呼び出し,
7363 それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,
7364 \SpecialChar LyX
7365 がこれを毎回行なわくて済むように,
7366 レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,
7367 以下のように変換子を手動で呼び出してください.
7368 \end_layout
7369
7370 \begin_layout Enumerate
7371 ファイル
7372 \begin_inset Flex Code
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 myclass.layout
7377 \end_layout
7378
7379 \end_inset
7380
7381
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 myclass.old
7387 \end_layout
7388
7389 \end_inset
7390
7391 に改称
7392 \end_layout
7393
7394 \begin_layout Enumerate
7395 以下のコマンドをコール
7396 \begin_inset Newline newline
7397 \end_inset
7398
7399
7400 \begin_inset Flex Code
7401 status collapsed
7402
7403 \begin_layout Plain Layout
7404 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7405 \end_layout
7406
7407 \end_inset
7408
7409
7410 \begin_inset Newline newline
7411 \end_inset
7412
7413 ここで
7414 \begin_inset Flex Code
7415 status collapsed
7416
7417 \begin_layout Plain Layout
7418 LyXDir
7419 \end_layout
7420
7421 \end_inset
7422
7423 は\SpecialChar LyX
7424 システムディレクトリの名前です.
7425 \end_layout
7426
7427 \begin_layout Standard
7428 手動変換は,
7429 インクルードされているファイル内部の変更までは取り扱いませんので,
7430 それらのファイルは別に変換されなくてはなりません.
7431 \end_layout
7432
7433 \begin_layout Subsection
7434 \begin_inset CommandInset label
7435 LatexCommand label
7436 name "subsec:引用エンジンファイル"
7437
7438 \end_inset
7439
7440 引用エンジンファイル
7441 \end_layout
7442
7443 \begin_layout Standard
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 citeengines/
7449 \end_layout
7450
7451 \end_inset
7452
7453 サブディレクトリ以下に収められている,
7454 いわゆる
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 *.citeengine
7460 \end_layout
7461
7462 \end_inset
7463
7464 ファイルは,
7465 レイアウトファイルの特殊形です.これらの目的は,
7466
7467 \family sans
7468 natbib
7469 \family default
7470
7471 \family sans
7472 jurabib
7473 \family default
7474
7475 \family sans
7476 biblatex
7477 \family default
7478 など,
7479 書誌情報を生成する\SpecialChar LaTeX
7480 パッケージの詳細を定義することですが,
7481 通常の(追加パッケージのない)Bib\SpecialChar TeX
7482 引用が\SpecialChar LyX
7483 中でどのように取り扱われるかも,
7484 これらのファイルの中で定義されます.
7485 \end_layout
7486
7487 \begin_layout Standard
7488 より具体的には,
7489 どのパッケージを\SpecialChar LyX
7490 が読み込む必要があるのか,
7491 どの引用コマンドが利用可能であるのか,
7492 これらが\SpecialChar LyX
7493 中(作業領域・ダイアログ・コンテクストメニュー)で,
7494 さらにはXHTMLや平文出力中でどのように表示されるのかを定義します.さらに,
7495 これらのファイルは,
7496 使用できる派生様式(著者-刊行年,
7497 数値など)とその子細を特定します.引用エンジンファイルは,
7498
7499 \family sans
7500 文書\SpecialChar menuseparator
7501 設定\SpecialChar ldots
7502 \SpecialChar menuseparator
7503 書誌情報\SpecialChar menuseparator
7504 様式整形子
7505 \family default
7506 で利用できる選択肢を生成するのにも使用されます.
7507 \end_layout
7508
7509 \begin_layout Standard
7510 引用エンジンファイルは,
7511 本質的に通常のレイアウトファイルであり,
7512 理論上どのようなレイアウト情報も内包することができますが,
7513 通常は
7514 \begin_inset Flex Code
7515 status collapsed
7516
7517 \begin_layout Plain Layout
7518 MaxCiteNames
7519 \end_layout
7520
7521 \end_inset
7522
7523
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 CiteFramework
7529 \end_layout
7530
7531 \end_inset
7532
7533
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 CiteEngine
7539 \end_layout
7540
7541 \end_inset
7542
7543
7544 \begin_inset Flex Code
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 CiteFormat
7549 \end_layout
7550
7551 \end_inset
7552
7553 ブロックのような特定のパラメータをもっぱら含みます.この最後の2つの文法は,
7554 ファイル自身に加え,
7555 第 
7556 \begin_inset CommandInset ref
7557 LatexCommand ref
7558 reference "subsec:引用エンジンの説明"
7559 plural "false"
7560 caps "false"
7561 noprefix "false"
7562 nolink "false"
7563
7564 \end_inset
7565
7566 節と第
7567 \begin_inset CommandInset ref
7568 LatexCommand ref
7569 reference "subsec:引用書式指定"
7570 plural "false"
7571 caps "false"
7572 noprefix "false"
7573 nolink "false"
7574
7575 \end_inset
7576
7577 節に述べられています.
7578 \end_layout
7579
7580 \begin_layout Section
7581 \begin_inset CommandInset label
7582 LatexCommand label
7583 name "sec:テキストクラス"
7584
7585 \end_inset
7586
7587 レイアウトファイルの書式
7588 \end_layout
7589
7590 \begin_layout Standard
7591 以下の各節では,
7592 いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,
7593 直面することの説明を行います.私たちからのアドバイスとしては,
7594 ゆっくりと進めるようにして,
7595 ちょっと進むごとに保存やテストを行い,
7596 心休まる音楽を聴き,
7597 好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰まってしまったときにはそうです.実際にはそんなに難しいことではないのですが,
7598 特に一度に多くのことをやろうとすると,
7599 選択肢が多くありすぎて圧倒されてしまうのです.さて,
7600 もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
7601 の既存のレイアウトを例や参考に使ったり,
7602 既存のレイアウトを自身の目的に合わせて修正したりすると,
7603 作業が容易になります.
7604 \end_layout
7605
7606 \begin_layout Standard
7607 この章で述べられているタグは,
7608 すべて大文字小文字を区別しません.つまり,
7609
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 Style
7615 \end_layout
7616
7617 \end_inset
7618
7619
7620 \begin_inset Flex Code
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 style
7625 \end_layout
7626
7627 \end_inset
7628
7629
7630 \begin_inset Flex Code
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 StYlE
7635 \end_layout
7636
7637 \end_inset
7638
7639 は同じコマンドとなります.機能名の後にある角括弧は,
7640 その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,
7641 既定値は
7642 \begin_inset Flex Code
7643 status collapsed
7644
7645 \begin_layout Plain Layout
7646
7647 \emph on
7648 強調
7649 \end_layout
7650
7651 \end_inset
7652
7653 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,
7654 既定値は
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 浮動小数点型=
7660 \emph on
7661 既定値
7662 \end_layout
7663
7664 \end_inset
7665
7666 のように表示されます.
7667 \end_layout
7668
7669 \begin_layout Subsection
7670 文書クラス宣言と分類
7671 \end_layout
7672
7673 \begin_layout Standard
7674 レイアウトファイル中の
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 #
7680 \end_layout
7681
7682 \end_inset
7683
7684 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
7685 \begin_inset Flex Code
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 *.layout
7690 \end_layout
7691
7692 \end_inset
7693
7694 ファイルは,
7695 以下のような行で始めなくてはならないのです.
7696 \end_layout
7697
7698 \begin_layout LyX-Code
7699
7700 \size small
7701 #% Do not delete the line below;
7702  configure depends on this
7703 \end_layout
7704
7705 \begin_layout LyX-Code
7706
7707 \size small
7708 #  
7709 \backslash
7710 DeclareLaTeXClass{Article (Standard Class)}
7711 \end_layout
7712
7713 \begin_layout LyX-Code
7714
7715 \size small
7716 #  
7717 \backslash
7718 DeclareCategory{Articles}
7719 \end_layout
7720
7721 \begin_layout Standard
7722 2行目と3行目は,
7723 \SpecialChar LyX
7724 が環境構成を行う際に用いられます.このレイアウトファイルは,
7725 \SpecialChar LaTeX
7726 スクリプト
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 chkconfig.ltx
7732 \end_layout
7733
7734 \end_inset
7735
7736 が,
7737
7738 \begin_inset Flex Code
7739 status collapsed
7740
7741 \begin_layout Plain Layout
7742 #
7743 \end_layout
7744
7745 \end_inset
7746
7747 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
7748 コメントですが,
7749 2行目にはテキストクラスの宣言が,
7750 3行目にはクラスの分類(非必須)が書かれています.これらの行が
7751 \begin_inset Flex Code
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 article.layout
7756 \end_layout
7757
7758 \end_inset
7759
7760 と名付けられたファイルにあると,
7761
7762 \begin_inset Flex Code
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766 article
7767 \end_layout
7768
7769 \end_inset
7770
7771 (レイアウトファイル名)という名称のテキストクラスを定義し,
7772 \SpecialChar LaTeX
7773 文書クラス
7774 \begin_inset Flex Code
7775 status collapsed
7776
7777 \begin_layout Plain Layout
7778 article.cls
7779 \end_layout
7780
7781 \end_inset
7782
7783 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
7784
7785 \begin_inset Flex MenuItem
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 文書\SpecialChar menuseparator
7790 設定
7791 \end_layout
7792
7793 \end_inset
7794
7795 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
7796
7797 \begin_inset Flex MenuItem
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801 文書\SpecialChar menuseparator
7802 設定
7803 \end_layout
7804
7805 \end_inset
7806
7807 ダイアログで使用され,
7808 文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,
7809 典型的なものには,
7810 「Articles」「Books」「Reports」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,
7811 このクラスは「Uncategorized」グループに属することになります.
7812 \end_layout
7813
7814 \begin_layout Standard
7815 節見出し表示に変更を加えた,
7816
7817 \begin_inset Flex Code
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821 article.cls
7822 \end_layout
7823
7824 \end_inset
7825
7826 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
7827 \begin_inset Flex Code
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 myarticle.layout
7832 \end_layout
7833
7834 \end_inset
7835
7836 というファイルに置いたとすると,
7837 このファイルのヘッダは以下のようになります.
7838 \end_layout
7839
7840 \begin_layout LyX-Code
7841
7842 \size small
7843 #% Do not delete the line below;
7844  configure depends on this 
7845 \end_layout
7846
7847 \begin_layout LyX-Code
7848
7849 \size small
7850 #  
7851 \backslash
7852 DeclareLaTeXClass[article]{article (with My Own Headings)}
7853 \end_layout
7854
7855 \begin_layout LyX-Code
7856
7857 \size small
7858 #  
7859 \backslash
7860 DeclareCategory{Articles}
7861 \end_layout
7862
7863 \begin_layout Standard
7864 これは,
7865 \SpecialChar LaTeX
7866 文書クラス
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 article.cls
7872 \end_layout
7873
7874 \end_inset
7875
7876 に関連づけられ,
7877 「Article (with My Own Headings)」と表示される,
7878
7879 \begin_inset Flex Code
7880 status collapsed
7881
7882 \begin_layout Plain Layout
7883 myarticle
7884 \end_layout
7885
7886 \end_inset
7887
7888 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,
7889 以下のように宣言すると良いでしょう.
7890 \end_layout
7891
7892 \begin_layout LyX-Code
7893
7894 \size small
7895 #% Do not delete the line below;
7896  configure depends on this 
7897 \end_layout
7898
7899 \begin_layout LyX-Code
7900
7901 \size small
7902 #  
7903 \backslash
7904 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7905 \end_layout
7906
7907 \begin_layout LyX-Code
7908
7909 \size small
7910 #  
7911 \backslash
7912 DeclareCategory{Articles}
7913 \end_layout
7914
7915 \begin_layout Standard
7916 これは,
7917 このテキストクラスが
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 foo.sty
7923 \end_layout
7924
7925 \end_inset
7926
7927 パッケージを使用することを示しています.
7928 \end_layout
7929
7930 \begin_layout Standard
7931 これらの宣言には,
7932 文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7933 \end_layout
7934
7935 \begin_layout Standard
7936 できる限り明示的に要約すると,
7937 レイアウト宣言は以下の形をとります.
7938 \end_layout
7939
7940 \begin_layout LyX-Code
7941
7942 \size small
7943 #  
7944 \backslash
7945 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7946 \end_layout
7947
7948 \begin_layout LyX-Code
7949
7950 \size small
7951 #  
7952 \backslash
7953 DeclareCategory{分類}
7954 \end_layout
7955
7956 \begin_layout Standard
7957 ここで「クラス」は,
7958 \SpecialChar LaTeX
7959 クラスファイル名とレイアウトファイル名が異なるときのみ,
7960 指定する必要があります.クラスファイル名が指定されなければ,
7961 \SpecialChar LyX
7962 は単純に,
7963 クラスファイル名がレイアウトファイル名と同じであると仮定します.
7964 \end_layout
7965
7966 \begin_layout Standard
7967 テキストクラスがあなたの嗜好に合うように修正できたならば,
7968 他にしなくてはならないことは,
7969 それを
7970 \begin_inset Flex Code
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 LyXDir/layouts/
7975 \end_layout
7976
7977 \end_inset
7978
7979
7980 \begin_inset Flex Code
7981 status collapsed
7982
7983 \begin_layout Plain Layout
7984 UserDir/layouts
7985 \end_layout
7986
7987 \end_inset
7988
7989 にコピーし,
7990
7991 \begin_inset Flex MenuItem
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 ツール\SpecialChar menuseparator
7996 環境構成
7997 \end_layout
7998
7999 \end_inset
8000
8001 を実行し,
8002 \SpecialChar LyX
8003 を終了して再起動するだけです.そうすれば,
8004 この新しいテキストクラスが,
8005 他のテキストクラスと同様に使用できるようになります.
8006 \end_layout
8007
8008 \begin_layout Standard
8009 レイアウトファイルが導入されたならば,
8010 これを編集して,
8011 環境構成したり\SpecialChar LyX
8012 を再起動したりすることなく,
8013 その変更を確認することができます
8014 \begin_inset Foot
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 第1.6版よりも前の\SpecialChar LyX
8019 では,
8020 これを行うことはできませんでした.その結果,
8021 レイアウトファイルに加えた変更を反映させるには,
8022 その度に\SpecialChar LyX
8023 を再起動しなくてはならなかったので,
8024 レイアウトファイルを編集する作業は,
8025 たいへん時間を浪費する作業だったのです.
8026 \end_layout
8027
8028 \end_inset
8029
8030 .\SpecialChar LyX
8031 関数
8032 \begin_inset Flex MenuItem
8033 status collapsed
8034
8035 \begin_layout Plain Layout
8036 layout-reload
8037 \end_layout
8038
8039 \end_inset
8040
8041 を使用すれば,
8042 現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—
8043 もちろん自分でどれかのキーに割り当てることもできますが—
8044 .しかし,
8045 通常は,
8046 この関数を使用する場合は,
8047 これをミニバッファに入力します.
8048 \end_layout
8049
8050 \begin_layout Standard
8051
8052 \emph on
8053 注意
8054 \emph default
8055
8056
8057 \begin_inset Flex MenuItem
8058 status collapsed
8059
8060 \begin_layout Plain Layout
8061 layout-reload
8062 \end_layout
8063
8064 \end_inset
8065
8066 はかなり「高度な機能」です.この機能を利用する前に,
8067 作業中の文書を保存しておくことを
8068 \emph on
8069 強く
8070 \emph default
8071 勧めます.もっと言えば,
8072 大事な文書の作業をしているときに,
8073 同時にレイアウト情報の編集をしようとしないことを
8074 \emph on
8075 強く
8076 \emph default
8077 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,
8078 そのようなエラーが起こると,
8079 \SpecialChar LyX
8080 は現在のレイアウトが無効であるものと判断して,
8081 別のレイアウトに切り替えようとする可能性があります
8082 \begin_inset Foot
8083 status collapsed
8084
8085 \begin_layout Plain Layout
8086 非常に悪質な文法エラーの場合には,
8087 \SpecialChar LyX
8088 が終了してしまうことさえあります.これは,
8089 ある種のエラーでは,
8090 \SpecialChar LyX
8091 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意ください.
8092 \end_layout
8093
8094 \end_inset
8095
8096 .\SpecialChar LyX
8097 開発陣は,
8098 このような状況下でも安定性を保つよう努力していますが,
8099 後悔よりも安心の方が良いでしょう
8100 \begin_inset Foot
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 重ねての助言ですが,
8105 つねにバックアップを取ってください.それから,
8106 お母さんのお片づけに注意.
8107 \end_layout
8108
8109 \end_inset
8110
8111
8112 \end_layout
8113
8114 \begin_layout Subsection
8115 モジュール宣言
8116 \end_layout
8117
8118 \begin_layout Standard
8119 モジュールは,
8120 以下のような行で始まらなくてはなりません.
8121 \end_layout
8122
8123 \begin_layout LyX-Code
8124 #
8125 \backslash
8126 DeclareLyXModule[endnotes.sty]{Endnotes}
8127 \end_layout
8128
8129 \begin_layout LyX-Code
8130 #
8131 \backslash
8132 DeclareCategory{Foot- and Endnotes}
8133 \end_layout
8134
8135 \begin_layout Standard
8136 波括弧内に入っている
8137 \family typewriter
8138
8139 \backslash
8140 DeclareLyXModule
8141 \family default
8142 の必須引数はモジュール名で,
8143 これは
8144 \begin_inset Flex MenuItem
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 文書\SpecialChar menuseparator
8149 設定
8150 \end_layout
8151
8152 \end_inset
8153
8154 内に表示されます.角括弧内の引数は非必須です.これは,
8155 モジュールが依存する\SpecialChar LaTeX
8156 パッケージをすべて宣言します.また,
8157 非必須引数として,
8158
8159 \begin_inset Flex Code
8160 status collapsed
8161
8162 \begin_layout Plain Layout
8163 変換元->変換先
8164 \end_layout
8165
8166 \end_inset
8167
8168 の形を使用することができます.これは,
8169
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 変換元
8175 \end_layout
8176
8177 \end_inset
8178
8179 形式から
8180 \begin_inset Flex Code
8181 status collapsed
8182
8183 \begin_layout Plain Layout
8184 変換先
8185 \end_layout
8186
8187 \end_inset
8188
8189 形式への変換鎖が存在するときのみ,
8190 このモジュールを使用できることを宣言するものです.
8191 \family typewriter
8192
8193 \backslash
8194 DeclareLyXModule
8195 \family default
8196 宣言は,
8197 厳密には必須ではありませんが,
8198 モジュールを見つけやすくするために書いておくべきです.既存のモジュールカテゴリを見て,
8199 適切ならばそのどれかを使用してください.
8200 \end_layout
8201
8202 \begin_layout Standard
8203 モジュール宣言とカテゴリ宣言の後には,
8204 以下のような行を続けます
8205 \begin_inset Foot
8206 status collapsed
8207
8208 \begin_layout Plain Layout
8209 モジュールを\SpecialChar LyX
8210 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,
8211 次回のインタフェースの更新時に翻訳されることになります.
8212 \end_layout
8213
8214 \end_inset
8215
8216
8217 \end_layout
8218
8219 \begin_layout LyX-Code
8220 #DescriptionBegin 
8221 \end_layout
8222
8223 \begin_layout LyX-Code
8224 #Adds an endnote command,
8225  in addition to footnotes.
8226  
8227 \end_layout
8228
8229 \begin_layout LyX-Code
8230 #You will need to add  
8231 \backslash
8232 theendnotes in TeX code where you 
8233 \end_layout
8234
8235 \begin_layout LyX-Code
8236 #want the endnotes to appear.
8237  
8238 \end_layout
8239
8240 \begin_layout LyX-Code
8241 #DescriptionEnd 
8242 \end_layout
8243
8244 \begin_layout LyX-Code
8245 #Requires:
8246  somemodule | othermodule
8247 \end_layout
8248
8249 \begin_layout LyX-Code
8250 #Excludes:
8251  badmodule
8252 \end_layout
8253
8254 \begin_layout Standard
8255 ここで説明(Description)は,
8256
8257 \begin_inset Flex MenuItem
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 文書\SpecialChar menuseparator
8262 設定
8263 \end_layout
8264
8265 \end_inset
8266
8267 でこのモジュールが何をするものか,
8268 ユーザに情報を与えるために使用されます.
8269 \begin_inset Flex Code
8270 status collapsed
8271
8272 \begin_layout Plain Layout
8273 Requires
8274 \end_layout
8275
8276 \end_inset
8277
8278 行は,
8279 このモジュールが共に使用する必要がある,
8280 他のモジュールを特定するのに用いられます.一方,
8281
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 Excludes
8287 \end_layout
8288
8289 \end_inset
8290
8291 行は,
8292 このモジュールが共に使用してはならない,
8293 他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,
8294 上記のようにモジュールが複数ある場合には,
8295 パイプ記号「|」で区切らなくてはなりません.
8296 \begin_inset Flex Code
8297 status collapsed
8298
8299 \begin_layout Plain Layout
8300 Requires
8301 \end_layout
8302
8303 \end_inset
8304
8305 に指定されたモジュールは,
8306 選言的に取り扱われることに注意してください.つまり,
8307
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 Requires
8313 \end_layout
8314
8315 \end_inset
8316
8317 に指定されたモジュールのうち,
8318
8319 \emph on
8320 少なくとも一つ
8321 \emph default
8322 が使用されていればよいということです.同様に,
8323
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 Excludes
8329 \end_layout
8330
8331 \end_inset
8332
8333 に指定されたモジュールは,
8334 一つも使用されてはなりません.ここでモジュールは,
8335
8336 \begin_inset Flex Code
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 .module
8341 \end_layout
8342
8343 \end_inset
8344
8345 拡張子を除いたファイル名で認識されることに注意してください.つまり
8346 \begin_inset Flex Code
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 somemodule
8351 \end_layout
8352
8353 \end_inset
8354
8355 とは,
8356 実のところ
8357 \begin_inset Flex Code
8358 status collapsed
8359
8360 \begin_layout Plain Layout
8361 somemodule.module
8362 \end_layout
8363
8364 \end_inset
8365
8366 に他なりません.
8367 \end_layout
8368
8369 \begin_layout Subsection
8370 引用エンジンファイルの宣言
8371 \end_layout
8372
8373 \begin_layout Standard
8374 引用エンジンファイルは,
8375 次のような行で始まらなくてはなりません.
8376 \end_layout
8377
8378 \begin_layout LyX-Code
8379 #
8380 \backslash
8381 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8382 \end_layout
8383
8384 \begin_layout Standard
8385 波括弧内の必須引数はモジュール名で,
8386
8387 \begin_inset Flex Noun
8388 status collapsed
8389
8390 \begin_layout Plain Layout
8391 文書\SpecialChar menuseparator
8392 設定\SpecialChar menuseparator
8393 書誌情報
8394 \end_layout
8395
8396 \end_inset
8397
8398 にそのまま現れます.角括弧内の引数は非必須です.これは,
8399 引用エンジンが依存する\SpecialChar LaTeX
8400 パッケージを宣言します.
8401 \end_layout
8402
8403 \begin_layout Standard
8404 引用エンジン宣言には,
8405 その後,
8406 以下のような行が続きます
8407 \begin_inset Foot
8408 status collapsed
8409
8410 \begin_layout Plain Layout
8411 \SpecialChar LyX
8412 とともに公表するモジュールの場合は,
8413 英語で書かれることが望まれます.この説明は,
8414 翻訳対象メッセージのリストに含まれますので,
8415 次回インタフェースの更新の際に翻訳されることになります.
8416 \end_layout
8417
8418 \end_inset
8419
8420
8421 \end_layout
8422
8423 \begin_layout LyX-Code
8424 # DescriptionBegin
8425 \end_layout
8426
8427 \begin_layout LyX-Code
8428 #   Biblatex supports many author-year and numerical styles.
8429 \end_layout
8430
8431 \begin_layout LyX-Code
8432 #   It is mainly aimed at the Humanities.
8433  It is highly
8434 \end_layout
8435
8436 \begin_layout LyX-Code
8437 #   customizable,
8438  fully localized and provides many features
8439 \end_layout
8440
8441 \begin_layout LyX-Code
8442 #   that are not possible with BibTeX.
8443  The use of 'biber' as
8444 \end_layout
8445
8446 \begin_layout LyX-Code
8447 #   bibliography processor is advised.
8448 \end_layout
8449
8450 \begin_layout LyX-Code
8451 # DescriptionEnd
8452 \end_layout
8453
8454 \begin_layout Standard
8455 この説明は,
8456
8457 \begin_inset Flex Noun
8458 status collapsed
8459
8460 \begin_layout Plain Layout
8461 文書\SpecialChar menuseparator
8462 設定\SpecialChar menuseparator
8463 書誌情報
8464 \end_layout
8465
8466 \end_inset
8467
8468 の中で,
8469 ユーザーに引用エンジンに関する情報を提供するために使われます.
8470 \end_layout
8471
8472 \begin_layout Subsection
8473 書式番号
8474 \end_layout
8475
8476 \begin_layout Standard
8477 レイアウトファイルやインクルードされたファイル,
8478 またはモジュールの最初の非コメント行には,
8479 以下のように,
8480 かならずファイル形式番号が記されていなくてはなりません.
8481 \end_layout
8482
8483 \begin_layout Description
8484 \begin_inset Flex Code
8485 status collapsed
8486
8487 \begin_layout Plain Layout
8488 Format
8489 \end_layout
8490
8491 \end_inset
8492
8493  [
8494 \begin_inset Flex Code
8495 status collapsed
8496
8497 \begin_layout Plain Layout
8498 整数型
8499 \end_layout
8500
8501 \end_inset
8502
8503 ] このレイアウトファイルの書式
8504 \end_layout
8505
8506 \begin_layout Standard
8507 このタグは\SpecialChar LyX
8508
8509 \begin_inset space ~
8510 \end_inset
8511
8512 1.4.0で導入されました.\SpecialChar LyX
8513
8514 \begin_inset space ~
8515 \end_inset
8516
8517 1.3.x以前のレイアウトファイルには,
8518 明示されたファイル形式がないため,
8519 書式1と解されます.\SpecialChar LyX
8520 現行版のファイル形式は,
8521 書式69です.しかし,
8522 \SpecialChar LyX
8523 の各版は,
8524 旧版の\SpecialChar LyX
8525 で作成されたファイルを読むことができるように,
8526 旧版のレイアウトファイルも読むことができます.しかしながら,
8527 以前の書式に変換する方法はありません.
8528 \end_layout
8529
8530 \begin_layout Subsection
8531 \begin_inset CommandInset label
8532 LatexCommand label
8533 name "subsec:汎用テキストクラスパラメータ"
8534
8535 \end_inset
8536
8537 汎用テキストクラスパラメータ
8538 \end_layout
8539
8540 \begin_layout Standard
8541 以下は,
8542 文書クラス全体の挙動を決定する汎用パラメータです(これは,
8543
8544 \begin_inset Flex Code
8545 status collapsed
8546
8547 \begin_layout Plain Layout
8548 .layout
8549 \end_layout
8550
8551 \end_inset
8552
8553 ファイルのみに使用されるべきで,
8554 モジュールでは使ってはならない,
8555 ということを意味するものでは
8556 \emph on
8557 ありません
8558 \emph default
8559 .モジュールには,
8560 すべてのレイアウトタグを使用することができます).
8561 \end_layout
8562
8563 \begin_layout Description
8564 \begin_inset Flex Code
8565 status collapsed
8566
8567 \begin_layout Plain Layout
8568 AddToCiteEngine <エンジン>
8569 \end_layout
8570
8571 \end_inset
8572
8573  引用参考文献の表示能力を拡張します.詳細については、第
8574 \begin_inset CommandInset ref
8575 LatexCommand ref
8576 reference "subsec:引用エンジンの説明"
8577 plural "false"
8578 caps "false"
8579 noprefix "false"
8580 nolink "false"
8581
8582 \end_inset
8583
8584 節を参照してください.「
8585 \begin_inset Flex Code
8586 status collapsed
8587
8588 \begin_layout Plain Layout
8589 End
8590 \end_layout
8591
8592 \end_inset
8593
8594 」で閉じる必要があります.
8595 \end_layout
8596
8597 \begin_layout Description
8598 \begin_inset Flex Code
8599 status collapsed
8600
8601 \begin_layout Plain Layout
8602 AddToHTMLPreamble
8603 \end_layout
8604
8605 \end_inset
8606
8607  この文書クラスがXHTMLに出力されるときに,
8608
8609 \begin_inset Flex Code
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 <head>
8614 \end_layout
8615
8616 \end_inset
8617
8618 ブロックに追加出力される情報です.典型的には,
8619 これはCSSスタイル情報を出力するのに用いられますが,
8620
8621 \begin_inset Flex Code
8622 status collapsed
8623
8624 \begin_layout Plain Layout
8625 <head>
8626 \end_layout
8627
8628 \end_inset
8629
8630 に出力するものであれば,
8631 何でも使用することができます.「
8632 \begin_inset Flex Code
8633 status collapsed
8634
8635 \begin_layout Plain Layout
8636 EndPreamble
8637 \end_layout
8638
8639 \end_inset
8640
8641 」で閉じる必要があります.
8642 \end_layout
8643
8644 \begin_layout Description
8645 \begin_inset Flex Code
8646 status collapsed
8647
8648 \begin_layout Plain Layout
8649 AddToPreamble
8650 \end_layout
8651
8652 \end_inset
8653
8654  文書プリアンブルに書き加えられる情報です.「
8655 \begin_inset Flex Code
8656 status collapsed
8657
8658 \begin_layout Plain Layout
8659 EndPreamble
8660 \end_layout
8661
8662 \end_inset
8663
8664 」で閉じる必要があります.
8665 \end_layout
8666
8667 \begin_layout Description
8668 \begin_inset Flex Code
8669 status collapsed
8670
8671 \begin_layout Plain Layout
8672 BibInToc
8673 \end_layout
8674
8675 \end_inset
8676
8677  [
8678 \begin_inset Flex Code
8679 status collapsed
8680
8681 \begin_layout Plain Layout
8682
8683 \emph on
8684 0
8685 \end_layout
8686
8687 \end_inset
8688
8689 ,
8690 \begin_inset Flex Code
8691 status collapsed
8692
8693 \begin_layout Plain Layout
8694 1
8695 \end_layout
8696
8697 \end_inset
8698
8699 ] この文書クラスが書誌情報を目次に入れるとき,
8700 このオプションの値を
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 1
8706 \end_layout
8707
8708 \end_inset
8709
8710 (もしくは
8711 \begin_inset Flex Code
8712 status collapsed
8713
8714 \begin_layout Plain Layout
8715 true
8716 \end_layout
8717
8718 \end_inset
8719
8720 )にしてください.これによって,
8721 書誌情報が2回目次に現れるのを防ぐことができます.
8722 \end_layout
8723
8724 \begin_layout Description
8725 \begin_inset Flex Code
8726 status collapsed
8727
8728 \begin_layout Plain Layout
8729 CiteEngine <エンジン>
8730 \end_layout
8731
8732 \end_inset
8733
8734  文献参照を表示する方法を定義します.詳細については,
8735
8736 \begin_inset CommandInset ref
8737 LatexCommand ref
8738 reference "subsec:引用エンジンの説明"
8739 plural "false"
8740 caps "false"
8741 noprefix "false"
8742 nolink "false"
8743
8744 \end_inset
8745
8746 節をご覧ください.「
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 End
8752 \end_layout
8753
8754 \end_inset
8755
8756 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
8757 \begin_inset CommandInset ref
8758 LatexCommand ref
8759 reference "subsec:引用エンジンファイル"
8760 plural "false"
8761 caps "false"
8762 noprefix "false"
8763 nolink "false"
8764
8765 \end_inset
8766
8767 節参照).これをレイアウトファイルやモジュールに追加した場合,
8768 引用エンジンの定義は,
8769 すべて上書きされることに注意してください.
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 AddToCiteEngine
8775 \end_layout
8776
8777 \end_inset
8778
8779 も参照してください.
8780 \end_layout
8781
8782 \begin_layout Description
8783 \begin_inset Flex Code
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787 CiteFormat
8788 \end_layout
8789
8790 \end_inset
8791
8792  書誌情報の表示に使う書式を定義します.詳細については,
8793
8794 \begin_inset CommandInset ref
8795 LatexCommand ref
8796 reference "subsec:引用書式指定"
8797 nolink "false"
8798
8799 \end_inset
8800
8801 節をご覧ください.「
8802 \begin_inset Flex Code
8803 status collapsed
8804
8805 \begin_layout Plain Layout
8806 End
8807 \end_layout
8808
8809 \end_inset
8810
8811 」で閉じる必要があります.主に引用エンジンファイルで使用されます(第
8812 \begin_inset CommandInset ref
8813 LatexCommand ref
8814 reference "subsec:引用エンジンファイル"
8815 plural "false"
8816 caps "false"
8817 noprefix "false"
8818 nolink "false"
8819
8820 \end_inset
8821
8822 節参照).レイアウトやモジュールにCiteFormatが指定されると,
8823 引用エンジンの定義は上書きされます.
8824 \end_layout
8825
8826 \begin_layout Description
8827 \begin_inset Flex Code
8828 status collapsed
8829
8830 \begin_layout Plain Layout
8831 CiteFramework
8832 \end_layout
8833
8834 \end_inset
8835
8836  [
8837 \begin_inset Flex Code
8838 status collapsed
8839
8840 \begin_layout Plain Layout
8841
8842 \emph on
8843 bibtex
8844 \end_layout
8845
8846 \end_inset
8847
8848 ,
8849 \begin_inset Flex Code
8850 status collapsed
8851
8852 \begin_layout Plain Layout
8853 biblatex
8854 \end_layout
8855
8856 \end_inset
8857
8858 ] 書誌情報を生成するのに,
8859
8860 \family sans
8861 Biblatex
8862 \family default
8863 を用いるのかBib\SpecialChar TeX
8864 を用いるのかを特定します.主に引用エンジンファイルで使用されます(第
8865 \begin_inset CommandInset ref
8866 LatexCommand ref
8867 reference "subsec:引用エンジンファイル"
8868 plural "false"
8869 caps "false"
8870 noprefix "false"
8871 nolink "false"
8872
8873 \end_inset
8874
8875 節参照).
8876 \end_layout
8877
8878 \begin_layout Description
8879 \begin_inset Flex Code
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 ClassOptions
8884 \end_layout
8885
8886 \end_inset
8887
8888  文書クラスがサポートする様々な大域オプションを記します.説明は,
8889
8890 \begin_inset CommandInset ref
8891 LatexCommand ref
8892 reference "subsec:ClassOptions"
8893 nolink "false"
8894
8895 \end_inset
8896
8897 節を参照してください.「
8898 \begin_inset Flex Code
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902 End
8903 \end_layout
8904
8905 \end_inset
8906
8907 」で閉じる必要があります.
8908 \end_layout
8909
8910 \begin_layout Description
8911 \begin_inset Flex Code
8912 status collapsed
8913
8914 \begin_layout Plain Layout
8915 Columns
8916 \end_layout
8917
8918 \end_inset
8919
8920  [
8921 \begin_inset Flex Code
8922 status collapsed
8923
8924 \begin_layout Plain Layout
8925
8926 \emph on
8927 1
8928 \end_layout
8929
8930 \end_inset
8931
8932 ,
8933 \begin_inset space \thinspace{}
8934 \end_inset
8935
8936
8937 \begin_inset Flex Code
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 2
8942 \end_layout
8943
8944 \end_inset
8945
8946 ] 文書クラスが既定で1段組か2段組かを指定します.
8947 \begin_inset Flex MenuItem
8948 status collapsed
8949
8950 \begin_layout Plain Layout
8951 文書\SpecialChar menuseparator
8952 設定
8953 \end_layout
8954
8955 \end_inset
8956
8957 ダイアログで変更することができます.
8958 \end_layout
8959
8960 \begin_layout Description
8961 \begin_inset Flex Code
8962 status collapsed
8963
8964 \begin_layout Plain Layout
8965 Counter
8966 \end_layout
8967
8968 \end_inset
8969
8970  [
8971 \begin_inset Flex Code
8972 status collapsed
8973
8974 \begin_layout Plain Layout
8975 文字列
8976 \end_layout
8977
8978 \end_inset
8979
8980 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,
8981 生成されます.もし存在しなければ修正されます.「
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 End
8987 \end_layout
8988
8989 \end_inset
8990
8991 」で閉じる必要があります.
8992 \begin_inset Newline newline
8993 \end_inset
8994
8995 カウンタについての詳細は,
8996
8997 \begin_inset CommandInset ref
8998 LatexCommand ref
8999 reference "subsec:カウンタ"
9000 nolink "false"
9001
9002 \end_inset
9003
9004 節を参照してください.
9005 \end_layout
9006
9007 \begin_layout Description
9008 \begin_inset Flex Code
9009 status collapsed
9010
9011 \begin_layout Plain Layout
9012 DefaultFont
9013 \end_layout
9014
9015 \end_inset
9016
9017  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
9018
9019 \begin_inset CommandInset ref
9020 LatexCommand ref
9021 reference "subsec:フォント指定"
9022 nolink "false"
9023
9024 \end_inset
9025
9026 節を参照してください.「
9027 \begin_inset Flex Code
9028 status collapsed
9029
9030 \begin_layout Plain Layout
9031 EndFont
9032 \end_layout
9033
9034 \end_inset
9035
9036 」で閉じる必要があります.
9037 \end_layout
9038
9039 \begin_layout Description
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 DefaultModule
9045 \end_layout
9046
9047 \end_inset
9048
9049  [
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 <モジュール>
9055 \end_layout
9056
9057 \end_inset
9058
9059 ] この文書クラスに,
9060 既定で取り込むモジュールを指定します.モジュールは,
9061
9062 \begin_inset Flex Code
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 .module
9067 \end_layout
9068
9069 \end_inset
9070
9071 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,
9072 当初は有効の状態になっています(これは新しいファイルが作成されたときや,
9073 既存の文書にこの文書クラスが選択したときのみ該当します).
9074 \end_layout
9075
9076 \begin_layout Description
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 DefaultStyle
9082 \end_layout
9083
9084 \end_inset
9085
9086  [
9087 \begin_inset Flex Code
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 <様式>
9092 \end_layout
9093
9094 \end_inset
9095
9096 ]
9097 \lang english
9098  
9099 \lang japanese
9100 これは新規段落に割り当てられる様式であり,
9101 通常は
9102 \begin_inset Flex MenuItem
9103 status collapsed
9104
9105 \begin_layout Plain Layout
9106 標準
9107 \end_layout
9108
9109 \end_inset
9110
9111 です.もしこれを指定しなければ,
9112 最初に定義される様式がこれに割り当てられるようにはなっていますが,
9113 このディレクティブを使用することが推奨されます.
9114 \end_layout
9115
9116 \begin_layout Description
9117 \begin_inset Flex Code
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121 DocBookRoot
9122 \end_layout
9123
9124 \end_inset
9125
9126  [
9127 \begin_inset Flex Code
9128 status collapsed
9129
9130 \begin_layout Plain Layout
9131 文字列
9132 \end_layout
9133
9134 \end_inset
9135
9136 ] 文書をDocBookのこのクラスで出力する際に使用する(文書の最上位の)ルート要素.既定値は「
9137 \begin_inset Flex Code
9138 status collapsed
9139
9140 \begin_layout Plain Layout
9141 article
9142 \end_layout
9143
9144 \end_inset
9145
9146 」です.
9147 \end_layout
9148
9149 \begin_layout Description
9150 \begin_inset Flex Code
9151 status collapsed
9152
9153 \begin_layout Plain Layout
9154 DocBookForceAbstract
9155 \end_layout
9156
9157 \end_inset
9158
9159  [
9160 \begin_inset Flex Code
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 ブール値
9165 \end_layout
9166
9167 \end_inset
9168
9169 ] 「
9170 \begin_inset Flex Code
9171 status collapsed
9172
9173 \begin_layout Plain Layout
9174 true
9175 \end_layout
9176
9177 \end_inset
9178
9179 」ならばルート要素は常に
9180 \family typewriter
9181 <abstract>
9182 \family default
9183 タグを持つことになります.既定値は「
9184 \family typewriter
9185 false
9186 \family default
9187 」です.
9188 \end_layout
9189
9190 \begin_layout Description
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 ExcludesModule
9196 \end_layout
9197
9198 \end_inset
9199
9200  [
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 <モジュール>
9206 \end_layout
9207
9208 \end_inset
9209
9210 ] このタグは,
9211 指定されたモジュール—
9212
9213 \begin_inset Flex Code
9214 status collapsed
9215
9216 \begin_layout Plain Layout
9217 .module
9218 \end_layout
9219
9220 \end_inset
9221
9222 拡張子を除いたファイル名で指定します—
9223 が,
9224 この文書クラスでは使用できないように設定します.これはたとえば,
9225 特定の学術誌用レイアウトファイルの中で,
9226 定理番号を節毎に振る
9227 \begin_inset Flex Code
9228 status collapsed
9229
9230 \begin_layout Plain Layout
9231 theorems-sec
9232 \end_layout
9233
9234 \end_inset
9235
9236 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,
9237 モジュール内で
9238 \emph on
9239 使用してはいけません
9240 \emph default
9241 .モジュールは,
9242 他のモジュールを排除する独自の枠組みがあります(第
9243 \begin_inset CommandInset ref
9244 LatexCommand ref
9245 reference "subsec:レイアウトモジュール"
9246 nolink "false"
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 Float
9259 \end_layout
9260
9261 \end_inset
9262
9263  フロートを新規に定義します.詳細は,
9264
9265 \begin_inset CommandInset ref
9266 LatexCommand ref
9267 reference "subsec:フロート"
9268 nolink "false"
9269
9270 \end_inset
9271
9272 節を参照してください.「
9273 \begin_inset Flex Code
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277 End
9278 \end_layout
9279
9280 \end_inset
9281
9282 」で閉じる必要があります.
9283 \end_layout
9284
9285 \begin_layout Description
9286 \begin_inset Flex Code
9287 status collapsed
9288
9289 \begin_layout Plain Layout
9290 HTMLPreamble
9291 \end_layout
9292
9293 \end_inset
9294
9295  この文書クラスがXHTMLに出力されるときに,
9296
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301 <head>
9302 \end_layout
9303
9304 \end_inset
9305
9306 ブロックに出力される情報です.これより前に出現した
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311 HTMLPreamble
9312 \end_layout
9313
9314 \end_inset
9315
9316
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 AddToHTMLPreamble
9322 \end_layout
9323
9324 \end_inset
9325
9326 宣言は,
9327 すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
9328
9329 \begin_inset Flex Code
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333 AddToHTMLPreamble
9334 \end_layout
9335
9336 \end_inset
9337
9338 を使用してください).これは「
9339 \begin_inset Flex Code
9340 status collapsed
9341
9342 \begin_layout Plain Layout
9343 EndPreamble
9344 \end_layout
9345
9346 \end_inset
9347
9348 」で閉じる必要があります.
9349 \end_layout
9350
9351 \begin_layout Description
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 HTMLTOCSection
9357 \end_layout
9358
9359 \end_inset
9360
9361  [
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 <様式>
9367 \end_layout
9368
9369 \end_inset
9370
9371 ] 文書がHTMLに出力されるときに,
9372 目次や書誌情報などに使用されるレイアウトです.articleの場合には,
9373 これは通常「節」であり,
9374 bookの場合は「章」です.これを指定しない場合には,
9375 \SpecialChar LyX
9376 はどのレイアウトを使用するべきか,
9377 解析しようと試みます.
9378 \end_layout
9379
9380 \begin_layout Description
9381 \begin_inset Flex Code
9382 status collapsed
9383
9384 \begin_layout Plain Layout
9385 IfCounter 
9386 \end_layout
9387
9388 \end_inset
9389
9390  [
9391 \begin_inset Flex Code
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 <カウンタ>
9396 \end_layout
9397
9398 \end_inset
9399
9400 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,
9401 この節は無視されます.「
9402 \begin_inset Flex Code
9403 status collapsed
9404
9405 \begin_layout Plain Layout
9406 End
9407 \end_layout
9408
9409 \end_inset
9410
9411 」で閉じる必要があります.
9412 \begin_inset Newline newline
9413 \end_inset
9414
9415 カウンタについての詳細は,
9416
9417 \begin_inset CommandInset ref
9418 LatexCommand ref
9419 reference "subsec:カウンタ"
9420 nolink "false"
9421
9422 \end_inset
9423
9424 節をご覧ください.
9425 \end_layout
9426
9427 \begin_layout Description
9428 \begin_inset Flex Code
9429 status collapsed
9430
9431 \begin_layout Plain Layout
9432 IfStyle
9433 \end_layout
9434
9435 \end_inset
9436
9437  [
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 <様式>
9443 \end_layout
9444
9445 \end_inset
9446
9447 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,
9448 この節は無視されます.「
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 End
9454 \end_layout
9455
9456 \end_inset
9457
9458 」で閉じる必要があります.
9459 \end_layout
9460
9461 \begin_layout Description
9462 \begin_inset Flex Code
9463 status collapsed
9464
9465 \begin_layout Plain Layout
9466 Input
9467 \end_layout
9468
9469 \end_inset
9470
9471  [
9472 \begin_inset Flex Code
9473 status collapsed
9474
9475 \begin_layout Plain Layout
9476 <ファイル名>
9477 \end_layout
9478
9479 \end_inset
9480
9481 ]
9482 \lang english
9483  
9484 \lang japanese
9485 名称の指し示すように,
9486 このコマンドは,
9487 同じコマンドを何度も指定せずに済むように,
9488 別のレイアウト定義ファイルを取り込ませます.よく使われる例は,
9489 基本的なレイアウトのほとんどを収録している
9490 \begin_inset Flex Code
9491 status collapsed
9492
9493 \begin_layout Plain Layout
9494 stdclass.inc
9495 \end_layout
9496
9497 \end_inset
9498
9499 のような標準レイアウトファイルです.
9500 \end_layout
9501
9502 \begin_layout Description
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 InputGlobal
9508 \end_layout
9509
9510 \end_inset
9511
9512  [
9513 \begin_inset Flex Code
9514 status collapsed
9515
9516 \begin_layout Plain Layout
9517 <ファイル名>
9518 \end_layout
9519
9520 \end_inset
9521
9522 ] は
9523 \begin_inset Flex Code
9524 status collapsed
9525
9526 \begin_layout Plain Layout
9527 Input
9528 \end_layout
9529
9530 \end_inset
9531
9532 コマンドの派生ですが,
9533 ユーザーディレクトリのファイルは探しません.これによって,
9534 ユーザーディレクトリ中に
9535 \begin_inset Flex Code
9536 status collapsed
9537
9538 \begin_layout Plain Layout
9539 name.layout
9540 \end_layout
9541
9542 \end_inset
9543
9544 または
9545 \begin_inset Flex Code
9546 status collapsed
9547
9548 \begin_layout Plain Layout
9549 name.inc
9550 \end_layout
9551
9552 \end_inset
9553
9554 というファイルを作成して,
9555
9556 \begin_inset Flex Code
9557 status collapsed
9558
9559 \begin_layout Plain Layout
9560 InputGlobal name
9561 \end_layout
9562
9563 \end_inset
9564
9565 あるいは
9566 \begin_inset Flex Code
9567 status collapsed
9568
9569 \begin_layout Plain Layout
9570 InputGlobal name.inc
9571 \end_layout
9572
9573 \end_inset
9574
9575 と指定し(ファイル名同順),
9576 同名のグローバルファイルを読み込むことができます(
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 Input
9582 \end_layout
9583
9584 \end_inset
9585
9586 ではファイルを再帰的に読み込んでしまいます).このようにすることで,
9587 グローバルファイル全体をコピーすることなく,
9588 修正できるようになります.
9589 \end_layout
9590
9591 \begin_layout Description
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 InsetLayout
9597 \end_layout
9598
9599 \end_inset
9600
9601  [
9602 \begin_inset Flex Code
9603 status collapsed
9604
9605 \begin_layout Plain Layout
9606 <型>
9607 \end_layout
9608
9609 \end_inset
9610
9611 ]
9612 \lang english
9613  
9614 \lang japanese
9615 このセクションは,
9616 差込枠のレイアウトを定義(再定義)します.これは,
9617 既存の差込枠にも,
9618 新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 End
9624 \end_layout
9625
9626 \end_inset
9627
9628 」で閉じる必要があります.
9629 \begin_inset Newline newline
9630 \end_inset
9631
9632 詳しい情報は,
9633
9634 \begin_inset CommandInset ref
9635 LatexCommand ref
9636 reference "subsec:任意設定差込枠"
9637 nolink "false"
9638
9639 \end_inset
9640
9641 節をご覧ください.
9642 \end_layout
9643
9644 \begin_layout Description
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 LeftMargin
9650 \end_layout
9651
9652 \end_inset
9653
9654  [
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 文字列
9660 \end_layout
9661
9662 \end_inset
9663
9664 ] 画面上の左余白の幅を指示する文字列.例:
9665
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670 MMMMM
9671 \end_layout
9672
9673 \end_inset
9674
9675 」.(これは,
9676 「2ex」のような「長さ」ではないことに注意してください.)
9677 \end_layout
9678
9679 \begin_layout Description
9680 \begin_inset Flex Code
9681 status collapsed
9682
9683 \begin_layout Plain Layout
9684 MaxCiteNames
9685 \end_layout
9686
9687 \end_inset
9688
9689  [
9690 \begin_inset Flex Code
9691 status collapsed
9692
9693 \begin_layout Plain Layout
9694 整数
9695 \end_layout
9696
9697 \end_inset
9698
9699 ] 著者-刊行年引用で,
9700 引用が「第一著者 et al.」に切り替わる前に,
9701 表示される名前の最大数を定める整数.主に引用エンジンファイルで使用されます(第
9702 \begin_inset CommandInset ref
9703 LatexCommand ref
9704 reference "subsec:引用エンジンファイル"
9705 plural "false"
9706 caps "false"
9707 noprefix "false"
9708 nolink "false"
9709
9710 \end_inset
9711
9712 節参照).
9713 \end_layout
9714
9715 \begin_layout Description
9716 \begin_inset Flex Code
9717 status collapsed
9718
9719 \begin_layout Plain Layout
9720 ModifyInsetLayout
9721 \end_layout
9722
9723 \end_inset
9724
9725  [
9726 \begin_inset Flex Code
9727 status collapsed
9728
9729 \begin_layout Plain Layout
9730 <型>
9731 \end_layout
9732
9733 \end_inset
9734
9735 ] は差込枠のレイアウトを修正します.レイアウトが存在しない場合には,
9736 このセクションは無視されます.「
9737 \begin_inset Flex Code
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741 End
9742 \end_layout
9743
9744 \end_inset
9745
9746 」で閉じる必要があります.
9747 \end_layout
9748
9749 \begin_layout Description
9750 \begin_inset Flex Code
9751 status collapsed
9752
9753 \begin_layout Plain Layout
9754 NoCounter
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 既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
9771 \end_layout
9772
9773 \begin_layout Description
9774 \begin_inset Flex Code
9775 status collapsed
9776
9777 \begin_layout Plain Layout
9778 NoFloat
9779 \end_layout
9780
9781 \end_inset
9782
9783  [
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 <フロート>
9789 \end_layout
9790
9791 \end_inset
9792
9793 ] このコマンドは既存のフロートを削除します.これは特に,
9794 Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
9795 \end_layout
9796
9797 \begin_layout Description
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 NoStyle
9803 \end_layout
9804
9805 \end_inset
9806
9807  [
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 <様式>
9813 \end_layout
9814
9815 \end_inset
9816
9817 ] このコマンドは既存の様式を削除します.これは特に,
9818 Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
9819 \end_layout
9820
9821 \begin_layout Description
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 OutlinerName
9827 \end_layout
9828
9829 \end_inset
9830
9831  [
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 <型>
9837 \end_layout
9838
9839 \end_inset
9840
9841 ] [
9842 \begin_inset Flex Code
9843 status collapsed
9844
9845 \begin_layout Plain Layout
9846 <文字列>
9847 \end_layout
9848
9849 \end_inset
9850
9851 ] 型が
9852 \begin_inset Flex Code
9853 status collapsed
9854
9855 \begin_layout Plain Layout
9856 <型>
9857 \end_layout
9858
9859 \end_inset
9860
9861 で名前が
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 <文字列>
9867 \end_layout
9868
9869 \end_inset
9870
9871 の新しい一覧表を定義します.AddToTocコマンドもご覧ください.
9872 \end_layout
9873
9874 \begin_layout Description
9875 \begin_inset Flex Code
9876 status collapsed
9877
9878 \begin_layout Plain Layout
9879 OutputFormat
9880 \end_layout
9881
9882 \end_inset
9883
9884  [
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 <形式>
9890 \end_layout
9891
9892 \end_inset
9893
9894 ] この文書クラスによって生成されるファイル形式(\SpecialChar LyX
9895 設定で定義される形のもの).おもに,
9896
9897 \begin_inset Flex Code
9898 status collapsed
9899
9900 \begin_layout Plain Layout
9901 OutputType
9902 \end_layout
9903
9904 \end_inset
9905
9906
9907 \begin_inset Flex Code
9908 status collapsed
9909
9910 \begin_layout Plain Layout
9911 literate
9912 \end_layout
9913
9914 \end_inset
9915
9916 になっていて,
9917 新しい型のliterate文書を定義したい時に便利です.対応する
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 OutputType
9923 \end_layout
9924
9925 \end_inset
9926
9927 パラメーターに遭遇したときには,
9928 形式は「
9929 \begin_inset Flex Code
9930 status collapsed
9931
9932 \begin_layout Plain Layout
9933 latex
9934 \end_layout
9935
9936 \end_inset
9937
9938 」にリセットされます.
9939 \end_layout
9940
9941 \begin_layout Description
9942 \begin_inset Flex Code
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 OutputType
9947 \end_layout
9948
9949 \end_inset
9950
9951  [
9952 \begin_inset Flex Code
9953 status collapsed
9954
9955 \begin_layout Plain Layout
9956
9957 \emph on
9958 lat
9959 \emph default
9960 ex
9961 \end_layout
9962
9963 \end_inset
9964
9965 ,
9966  
9967 \begin_inset Flex Code
9968 status collapsed
9969
9970 \begin_layout Plain Layout
9971 literate
9972 \end_layout
9973
9974 \end_inset
9975
9976 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.
9977 \end_layout
9978
9979 \begin_layout Description
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984 PackageOptions
9985 \end_layout
9986
9987 \end_inset
9988
9989  [
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 文字列
9995 \end_layout
9996
9997 \end_inset
9998
9999  
10000 \begin_inset Flex Code
10001 status collapsed
10002
10003 \begin_layout Plain Layout
10004 文字列
10005 \end_layout
10006
10007 \end_inset
10008
10009 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,
10010
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 PackageOptions natbib square
10016 \end_layout
10017
10018 \end_inset
10019
10020 」とすると,
10021
10022 \begin_inset Flex Code
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026 natbib
10027 \end_layout
10028
10029 \end_inset
10030
10031
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 square
10037 \end_layout
10038
10039 \end_inset
10040
10041 オプションとともに読み込みます(\SpecialChar TeX
10042 perts向けに述べると,
10043 これは,
10044
10045 \begin_inset Flex Code
10046 status collapsed
10047
10048 \begin_layout Plain Layout
10049 natbib
10050 \end_layout
10051
10052 \end_inset
10053
10054 を読み込む前に,
10055 \SpecialChar LyX
10056
10057 \begin_inset Flex Code
10058 status collapsed
10059
10060 \begin_layout Plain Layout
10061
10062 \backslash
10063 PassOptionsToPackage{natbib}{square}
10064 \end_layout
10065
10066 \end_inset
10067
10068 を出力させます).
10069 \end_layout
10070
10071 \begin_layout Description
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 PageSize
10077 \end_layout
10078
10079 \end_inset
10080
10081  [
10082 \begin_inset Flex Code
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086
10087 \emph on
10088 custom
10089 \emph default
10090 ,
10091  letter,
10092  legal,
10093  executive,
10094  a0,
10095  a1,
10096  a2,
10097  a3,
10098  a4,
10099  a5,
10100  a6,
10101  b0,
10102  b1,
10103  b2,
10104  b3,
10105  b4,
10106  b5,
10107  b6,
10108  c0,
10109  c1,
10110  c2,
10111  c3,
10112  c4,
10113  c5,
10114  c6,
10115  b0j,
10116  b1j,
10117  b2j,
10118  b3j,
10119  b4j,
10120  b5j,
10121  b6j
10122 \end_layout
10123
10124 \end_inset
10125
10126 ] 既定のページサイズです.これは一部の変換子に使われます.
10127 \end_layout
10128
10129 \begin_layout Description
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 PageStyle
10135 \end_layout
10136
10137 \end_inset
10138
10139  [
10140 \emph on
10141
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 plain
10147 \end_layout
10148
10149 \end_inset
10150
10151
10152 \emph default
10153 ,
10154  
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 empty
10160 \end_layout
10161
10162 \end_inset
10163
10164 ,
10165  
10166 \begin_inset Flex Code
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170 headings
10171 \end_layout
10172
10173 \end_inset
10174
10175 ] 既定ページ様式.
10176 \begin_inset Flex MenuItem
10177 status collapsed
10178
10179 \begin_layout Plain Layout
10180 文書\SpecialChar menuseparator
10181 設定
10182 \end_layout
10183
10184 \end_inset
10185
10186 ダイアログで変更することができます.
10187 \end_layout
10188
10189 \begin_layout Description
10190 \begin_inset Flex Code
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 Preamble
10195 \end_layout
10196
10197 \end_inset
10198
10199  \SpecialChar LaTeX
10200 文書のプリアンブルを設定します.前に行った
10201 \begin_inset Flex Code
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 Preamble
10206 \end_layout
10207
10208 \end_inset
10209
10210 宣言や
10211 \begin_inset Flex Code
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215 AddToPreamble
10216 \end_layout
10217
10218 \end_inset
10219
10220 宣言は,
10221 すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
10222
10223 \begin_inset Flex Code
10224 status collapsed
10225
10226 \begin_layout Plain Layout
10227 AddToPreamble
10228 \end_layout
10229
10230 \end_inset
10231
10232 を使用してください.)「
10233 \begin_inset Flex Code
10234 status collapsed
10235
10236 \begin_layout Plain Layout
10237 EndPreamble
10238 \end_layout
10239
10240 \end_inset
10241
10242 」で閉じる必要があります.
10243 \end_layout
10244
10245 \begin_layout Description
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250 ProvideInsetLayout
10251 \end_layout
10252
10253 \end_inset
10254
10255  [
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 <型>
10261 \end_layout
10262
10263 \end_inset
10264
10265 ] 差込枠のレイアウトが存在しない場合に,
10266 それを定義します.レイアウトが存在する場合には,
10267 このセクションは無視されます.「
10268 \begin_inset Flex Code
10269 status collapsed
10270
10271 \begin_layout Plain Layout
10272 End
10273 \end_layout
10274
10275 \end_inset
10276
10277 」で閉じる必要があります.
10278 \end_layout
10279
10280 \begin_layout Description
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 Provides
10286 \end_layout
10287
10288 \end_inset
10289
10290  [
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 文字列
10296 \end_layout
10297
10298 \end_inset
10299
10300 ] [
10301 \begin_inset Flex Code
10302 status collapsed
10303
10304 \begin_layout Plain Layout
10305
10306 \emph on
10307 0
10308 \end_layout
10309
10310 \end_inset
10311
10312 ,
10313  
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 1
10319 \end_layout
10320
10321 \end_inset
10322
10323 ] このクラスが
10324 \begin_inset Flex Code
10325 status collapsed
10326
10327 \begin_layout Plain Layout
10328 文字列
10329 \end_layout
10330
10331 \end_inset
10332
10333 で示される機能を既に提供しているかどうかを示します.機能は,
10334 一般的にパッケージ名(
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 amsmath
10340 \end_layout
10341
10342 \end_inset
10343
10344
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 makeidx
10350 \end_layout
10351
10352 \end_inset
10353
10354 ・\SpecialChar ldots
10355 )やマクロ名(
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 url
10361 \end_layout
10362
10363 \end_inset
10364
10365
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 boldsymbol
10371 \end_layout
10372
10373 \end_inset
10374
10375 ・\SpecialChar ldots
10376 )です.機能一覧については,
10377
10378 \begin_inset CommandInset ref
10379 LatexCommand ref
10380 reference "chap:関数一覧"
10381 nolink "false"
10382
10383 \end_inset
10384
10385 を参照.
10386 \end_layout
10387
10388 \begin_layout Description
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393 ProvidesModule
10394 \end_layout
10395
10396 \end_inset
10397
10398  [
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 文字列
10404 \end_layout
10405
10406 \end_inset
10407
10408 ] このレイアウトが
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 文字列
10414 \end_layout
10415
10416 \end_inset
10417
10418 で表されているモジュールの機能を提供することを示し,
10419
10420 \begin_inset Flex Code
10421 status collapsed
10422
10423 \begin_layout Plain Layout
10424 .module
10425 \end_layout
10426
10427 \end_inset
10428
10429 拡張子を除いたファイル名で指定します.
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434 DefaultModule
10435 \end_layout
10436
10437 \end_inset
10438
10439 タグを使用すると,
10440 モジュールを使用しなくてはならないことを示しますが,
10441 このタグは主に,
10442 このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いられます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
10443 \end_layout
10444
10445 \begin_layout Description
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 Requires
10451 \end_layout
10452
10453 \end_inset
10454
10455  [
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 文字列
10461 \end_layout
10462
10463 \end_inset
10464
10465 ] このクラスが
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 文字列
10471 \end_layout
10472
10473 \end_inset
10474
10475 で表されている機能を要求することを示します.機能が複数ある場合には,
10476 コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してください(機能一覧については
10477 \begin_inset CommandInset ref
10478 LatexCommand ref
10479 reference "chap:関数一覧"
10480 nolink "false"
10481
10482 \end_inset
10483
10484 を参照).特定のオプションをとるパッケージを要求する場合,
10485
10486 \begin_inset Flex Code
10487 status collapsed
10488
10489 \begin_layout Plain Layout
10490 PackageOptions
10491 \end_layout
10492
10493 \end_inset
10494
10495 を追加して使うことができます.
10496 \end_layout
10497
10498 \begin_layout Description
10499 \begin_inset Flex Code
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 RightMargin
10504 \end_layout
10505
10506 \end_inset
10507
10508  [
10509 \begin_inset Flex Code
10510 status collapsed
10511
10512 \begin_layout Plain Layout
10513 文字列
10514 \end_layout
10515
10516 \end_inset
10517
10518 ] 画面上の右余白の幅を指示する文字列.例:
10519
10520 \begin_inset Flex Code
10521 status collapsed
10522
10523 \begin_layout Plain Layout
10524 MMMMM
10525 \end_layout
10526
10527 \end_inset
10528
10529 」.
10530 \end_layout
10531
10532 \begin_layout Description
10533 \begin_inset Flex Code
10534 status collapsed
10535
10536 \begin_layout Plain Layout
10537 SecNumDepth
10538 \end_layout
10539
10540 \end_inset
10541
10542  [
10543 \begin_inset Flex Code
10544 status collapsed
10545
10546 \begin_layout Plain Layout
10547 int=3
10548 \end_layout
10549
10550 \end_inset
10551
10552 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
10553 における
10554 \begin_inset Flex Code
10555 status collapsed
10556
10557 \begin_layout Plain Layout
10558 secnumdepth
10559 \end_layout
10560
10561 \end_inset
10562
10563 カウンタに対応します.
10564 \end_layout
10565
10566 \begin_layout Description
10567 \begin_inset Flex Code
10568 status collapsed
10569
10570 \begin_layout Plain Layout
10571 Sides
10572 \end_layout
10573
10574 \end_inset
10575
10576  [
10577 \emph on
10578
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 1
10584 \end_layout
10585
10586 \end_inset
10587
10588
10589 \emph default
10590 ,
10591 \begin_inset space \thinspace{}
10592 \end_inset
10593
10594
10595 \begin_inset Flex Code
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 2
10600 \end_layout
10601
10602 \end_inset
10603
10604 ] クラスの既定値として,
10605 用紙の片面に印字するか両面に印字するかを指定します.
10606 \begin_inset Flex MenuItem
10607 status collapsed
10608
10609 \begin_layout Plain Layout
10610 文書\SpecialChar menuseparator
10611 設定
10612 \end_layout
10613
10614 \end_inset
10615
10616 ダイアログで変更することができます.
10617 \end_layout
10618
10619 \begin_layout Description
10620 \begin_inset Flex Code
10621 status collapsed
10622
10623 \begin_layout Plain Layout
10624 Style
10625 \end_layout
10626
10627 \end_inset
10628
10629  [
10630 \begin_inset Flex Code
10631 status collapsed
10632
10633 \begin_layout Plain Layout
10634 <名称>
10635 \end_layout
10636
10637 \end_inset
10638
10639 ]
10640 \lang english
10641  
10642 \lang japanese
10643 この部分は段落様式を定義します.様式がまだ存在していなければ,
10644 生成されます.既に存在していれば,
10645 そのパラメータが修正されます.「
10646 \begin_inset Flex Code
10647 status collapsed
10648
10649 \begin_layout Plain Layout
10650 End
10651 \end_layout
10652
10653 \end_inset
10654
10655 」で閉じる必要があります.
10656 \begin_inset Newline newline
10657 \end_inset
10658
10659 段落様式に関する詳細は,
10660
10661 \begin_inset CommandInset ref
10662 LatexCommand ref
10663 reference "subsec:段落様式-XHTML"
10664 nolink "false"
10665
10666 \end_inset
10667
10668 をご覧ください.
10669 \end_layout
10670
10671 \begin_layout Description
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 TableStyle
10677 \end_layout
10678
10679 \end_inset
10680
10681  [
10682 \begin_inset Flex Code
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 <名称>
10687 \end_layout
10688
10689 \end_inset
10690
10691 ] は,
10692 表を挿入する際に用いられる既定の表様式を定義します.下記の様式が利用可能です.
10693 \end_layout
10694
10695 \begin_deeper
10696 \begin_layout Itemize
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 Formal_with_Footline
10702 \end_layout
10703
10704 \end_inset
10705
10706
10707 フォーマル様式(「ブックタブ」様式).すなわち,
10708 水平罫線のみで最上部と最下部が太く,
10709 ときに第一行と最終行は表本体とは細い内部罫線で区切られます.
10710 \end_layout
10711
10712 \begin_layout Itemize
10713 \begin_inset Flex Code
10714 status collapsed
10715
10716 \begin_layout Plain Layout
10717 Formal_without_Footline
10718 \end_layout
10719
10720 \end_inset
10721
10722
10723 上記と同様ですが,
10724 最終行は本体から内部罫線で区切られることはありません.
10725 \end_layout
10726
10727 \begin_layout Itemize
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 Simple_Grid
10733 \end_layout
10734
10735 \end_inset
10736
10737
10738 シンプルな表罫線.
10739 \end_layout
10740
10741 \begin_layout Itemize
10742 \begin_inset Flex Code
10743 status collapsed
10744
10745 \begin_layout Plain Layout
10746 Grid_with_Head
10747 \end_layout
10748
10749 \end_inset
10750
10751
10752
10753 \begin_inset Flex Code
10754 status collapsed
10755
10756 \begin_layout Plain Layout
10757 Simple_Grid
10758 \end_layout
10759
10760 \end_inset
10761
10762 と同様ですが,
10763 ヘッダ行は2本目の罫線が余分に引かれます.これは\SpecialChar LyX
10764 の既定様式でもあります.
10765 \end_layout
10766
10767 \begin_layout Itemize
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 No_Borders
10773 \end_layout
10774
10775 \end_inset
10776
10777
10778 罫線のない表です.
10779 \end_layout
10780
10781 \end_deeper
10782 \begin_layout Description
10783 \begin_inset Flex Code
10784 status collapsed
10785
10786 \begin_layout Plain Layout
10787 TitleLatexName
10788 \end_layout
10789
10790 \end_inset
10791
10792  [
10793 \begin_inset Flex Code
10794 status collapsed
10795
10796 \begin_layout Plain Layout
10797 文字列="maketitle"
10798 \end_layout
10799
10800 \end_inset
10801
10802 ] コマンド名あるいは環境名.
10803 \begin_inset Flex Code
10804 status collapsed
10805
10806 \begin_layout Plain Layout
10807 TitleLatexType
10808 \end_layout
10809
10810 \end_inset
10811
10812 とともに使用します.
10813 \end_layout
10814
10815 \begin_layout Description
10816 \begin_inset Flex Code
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 TitleLatexType
10821 \end_layout
10822
10823 \end_inset
10824
10825  [
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830
10831 \emph on
10832 CommandAfter
10833 \end_layout
10834
10835 \end_inset
10836
10837 ,
10838  
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 Environment
10844 \end_layout
10845
10846 \end_inset
10847
10848 ] 文書のタイトルを定義するのに,
10849 どのようなマークアップを使用するのかを示します.
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 CommandAfter
10855 \end_layout
10856
10857 \end_inset
10858
10859 は,
10860
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865 InTitle
10866 \begin_inset space ~
10867 \end_inset
10868
10869 1
10870 \end_layout
10871
10872 \end_inset
10873
10874 」が指定されている最後のレイアウトの後に,
10875
10876 \begin_inset Flex Code
10877 status collapsed
10878
10879 \begin_layout Plain Layout
10880 TitleLatexName
10881 \end_layout
10882
10883 \end_inset
10884
10885 で指定したマクロ名を挿入することを意味します.
10886 \begin_inset Flex Code
10887 status collapsed
10888
10889 \begin_layout Plain Layout
10890 Environment
10891 \end_layout
10892
10893 \end_inset
10894
10895 は,
10896
10897 \begin_inset Flex Code
10898 status collapsed
10899
10900 \begin_layout Plain Layout
10901 InTitle
10902 \begin_inset space ~
10903 \end_inset
10904
10905 1
10906 \end_layout
10907
10908 \end_inset
10909
10910 」を持つ段落群を
10911 \begin_inset Flex Code
10912 status collapsed
10913
10914 \begin_layout Plain Layout
10915 TitleLatexName
10916 \end_layout
10917
10918 \end_inset
10919
10920 で指定した環境でくるむ場合に対応します.
10921 \end_layout
10922
10923 \begin_layout Description
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 TocDepth
10929 \end_layout
10930
10931 \end_inset
10932
10933  [
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 int=3
10939 \end_layout
10940
10941 \end_inset
10942
10943 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
10944
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 tocdepth
10950 \end_layout
10951
10952 \end_inset
10953
10954 カウンタに対応します.
10955 \end_layout
10956
10957 \begin_layout Subsection
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962 ClassOptions
10963 \end_layout
10964
10965 \end_inset
10966
10967
10968 \begin_inset CommandInset label
10969 LatexCommand label
10970 name "subsec:ClassOptions"
10971
10972 \end_inset
10973
10974
10975 \end_layout
10976
10977 \begin_layout Standard
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 ClassOptions
10983 \end_layout
10984
10985 \end_inset
10986
10987 部は,
10988 以下の項目を取り得ます.
10989 \end_layout
10990
10991 \begin_layout Description
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 FontSize
10997 \end_layout
10998
10999 \end_inset
11000
11001  [
11002 \begin_inset Flex Code
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006 文字列="10|11|12"
11007 \end_layout
11008
11009 \end_inset
11010
11011 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
11012 \begin_inset Flex Code
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016 |
11017 \end_layout
11018
11019 \end_inset
11020
11021 」で区切ります.任意の数値が使用できます.
11022 \end_layout
11023
11024 \begin_layout Description
11025 \begin_inset Flex Code
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 FontSizeFormat
11030 \end_layout
11031
11032 \end_inset
11033
11034  [
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039 文字列
11040 \end_layout
11041
11042 \end_inset
11043
11044 ] フォント寸法オプションのフォーマット.既定値:
11045
11046 \begin_inset Flex Code
11047 status collapsed
11048
11049 \begin_layout Plain Layout
11050 $$spt
11051 \end_layout
11052
11053 \end_inset
11054
11055
11056 ここで
11057 \begin_inset Flex Code
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 $$s
11062 \end_layout
11063
11064 \end_inset
11065
11066 はフォント寸法のプレイスホルダです.
11067 \end_layout
11068
11069 \begin_layout Description
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 PageSize
11075 \end_layout
11076
11077 \end_inset
11078
11079  [
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 文字列="letter|\SpecialChar allowbreak
11085 legal|\SpecialChar allowbreak
11086 executive|\SpecialChar allowbreak
11087 a0|\SpecialChar allowbreak
11088 a1|\SpecialChar allowbreak
11089 a2|\SpecialChar allowbreak
11090 a3|\SpecialChar allowbreak
11091 a4|\SpecialChar allowbreak
11092 a5|\SpecialChar allowbreak
11093 a6|\SpecialChar allowbreak
11094 b0|\SpecialChar allowbreak
11095 b1|\SpecialChar allowbreak
11096 b2|\SpecialChar allowbreak
11097 b3|\SpecialChar allowbreak
11098 b4|\SpecialChar allowbreak
11099 b5|\SpecialChar allowbreak
11100 b6|\SpecialChar allowbreak
11101 c0|\SpecialChar allowbreak
11102 c1|\SpecialChar allowbreak
11103 c2|\SpecialChar allowbreak
11104 c3|\SpecialChar allowbreak
11105 c4|\SpecialChar allowbreak
11106 c5|\SpecialChar allowbreak
11107 c6|\SpecialChar allowbreak
11108 b0j|\SpecialChar allowbreak
11109 b1j|\SpecialChar allowbreak
11110 b2j|\SpecialChar allowbreak
11111 b3j|\SpecialChar allowbreak
11112 b4j|\SpecialChar allowbreak
11113 b5j|\SpecialChar allowbreak
11114 b6j"
11115 \end_layout
11116
11117 \end_inset
11118
11119 ] 使用できるページ寸法を「
11120 \begin_inset Flex Code
11121 status collapsed
11122
11123 \begin_layout Plain Layout
11124 |
11125 \end_layout
11126
11127 \end_inset
11128
11129 」で区切ったのリスト.現在,
11130 表記の寸法のみサポートされています.他の寸法は,
11131 クラスオプション設定で入力することができます.
11132 \end_layout
11133
11134 \begin_layout Description
11135 \begin_inset Flex Code
11136 status collapsed
11137
11138 \begin_layout Plain Layout
11139 PageSizeFormat
11140 \end_layout
11141
11142 \end_inset
11143
11144  [
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 文字列
11150 \end_layout
11151
11152 \end_inset
11153
11154 ] ページ寸法オプションの書式.既定値:
11155
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 $$spaper
11161 \end_layout
11162
11163 \end_inset
11164
11165 .ここで
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 $$s
11171 \end_layout
11172
11173 \end_inset
11174
11175 はページ寸法のプレイスホルダです.
11176 \end_layout
11177
11178 \begin_layout Description
11179 \begin_inset Flex Code
11180 status collapsed
11181
11182 \begin_layout Plain Layout
11183 PageStyle
11184 \end_layout
11185
11186 \end_inset
11187
11188  [
11189 \begin_inset Flex Code
11190 status collapsed
11191
11192 \begin_layout Plain Layout
11193 文字列="empty|plain|headings|fancy"
11194 \end_layout
11195
11196 \end_inset
11197
11198 ] 使用できるページ様式の一覧です.「
11199 \begin_inset Flex Code
11200 status collapsed
11201
11202 \begin_layout Plain Layout
11203 |
11204 \end_layout
11205
11206 \end_inset
11207
11208 」で区切ります.
11209 \end_layout
11210
11211 \begin_layout Description
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 Other
11217 \end_layout
11218
11219 \end_inset
11220
11221  [
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 文字列=""
11227 \end_layout
11228
11229 \end_inset
11230
11231
11232 \begin_inset Flex Code
11233 status collapsed
11234
11235 \begin_layout Plain Layout
11236
11237 \backslash
11238 documentclass
11239 \end_layout
11240
11241 \end_inset
11242
11243 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
11244 \end_layout
11245
11246 \begin_layout Standard
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 ClassOptions
11252 \end_layout
11253
11254 \end_inset
11255
11256 部は「
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 End
11262 \end_layout
11263
11264 \end_inset
11265
11266 」で閉じる必要があります.
11267 \end_layout
11268
11269 \begin_layout Subsection
11270 段落様式
11271 \begin_inset CommandInset label
11272 LatexCommand label
11273 name "subsec:段落様式"
11274
11275 \end_inset
11276
11277
11278 \end_layout
11279
11280 \begin_layout Standard
11281 段落様式の記述は,
11282 以下のようになります
11283 \begin_inset Foot
11284 status collapsed
11285
11286 \begin_layout Plain Layout
11287 これは新しいレイアウトを定義するか,
11288 既存のレイアウトを修正することになることに注意してください.
11289 \end_layout
11290
11291 \end_inset
11292
11293
11294 \end_layout
11295
11296 \begin_layout LyX-Code
11297 Style 
11298 \family roman
11299 \emph on
11300 名称
11301 \end_layout
11302
11303 \begin_layout LyX-Code
11304  ...
11305 \end_layout
11306
11307 \begin_layout LyX-Code
11308 End
11309 \end_layout
11310
11311 \begin_layout Standard
11312 ここでは,
11313 以下のコマンドを使用することができます.
11314 \end_layout
11315
11316 \begin_layout Description
11317 \begin_inset Flex Code
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321 AddToToc
11322 \end_layout
11323
11324 \end_inset
11325
11326  [
11327 \begin_inset Flex Code
11328 status collapsed
11329
11330 \begin_layout Plain Layout
11331 文字列
11332 \end_layout
11333
11334 \end_inset
11335
11336 =""] この段落は指定された型の一覧表に現れます.空の文字列を与えると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドもご覧ください.既定値:
11337 無効.
11338 \end_layout
11339
11340 \begin_layout Description
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 Align
11346 \end_layout
11347
11348 \end_inset
11349
11350  [
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355
11356 \emph on
11357 block
11358 \emph default
11359 ,
11360  left,
11361  right,
11362  center
11363 \end_layout
11364
11365 \end_inset
11366
11367 ] 段落の揃え.
11368 \end_layout
11369
11370 \begin_layout Description
11371 \begin_inset Flex Code
11372 status collapsed
11373
11374 \begin_layout Plain Layout
11375 AlignPossible
11376 \end_layout
11377
11378 \end_inset
11379
11380  [
11381 \begin_inset Flex Code
11382 status collapsed
11383
11384 \begin_layout Plain Layout
11385
11386 \emph on
11387 block
11388 \emph default
11389 ,
11390  left,
11391  right,
11392  center
11393 \end_layout
11394
11395 \end_inset
11396
11397 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
11398 スタイルには,
11399 意味を成さない一部の揃えが禁じられているものがあります.たとえば,
11400 連番箇条書きを右揃えや中央揃えにすることはできません).
11401 \end_layout
11402
11403 \begin_layout Description
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 Argument
11409 \end_layout
11410
11411 \end_inset
11412
11413  [
11414 \begin_inset Flex Code
11415 status collapsed
11416
11417 \begin_layout Plain Layout
11418 整数
11419 \end_layout
11420
11421 \end_inset
11422
11423 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.定義は「
11424 \begin_inset Flex Code
11425 status collapsed
11426
11427 \begin_layout Plain Layout
11428 EndArgument
11429 \end_layout
11430
11431 \end_inset
11432
11433 」で閉じる必要があります.詳細については第
11434 \begin_inset CommandInset ref
11435 LatexCommand ref
11436 reference "subsec:引数"
11437 plural "false"
11438 caps "false"
11439 noprefix "false"
11440 nolink "false"
11441
11442 \end_inset
11443
11444 節をご覧ください.
11445 \end_layout
11446
11447 \begin_layout Description
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 AutoNests
11453 \end_layout
11454
11455 \end_inset
11456
11457  現在のレイアウト中もしくは後にネストすべきレイアウトのコンマ区切りリストを入れます.(環境など)ネスト可能なレイアウトでのみ意味を持ちます.「
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 EndAutoNests
11463 \end_layout
11464
11465 \end_inset
11466
11467 」で閉じる必要があります.
11468 \begin_inset Flex Code
11469 status collapsed
11470
11471 \begin_layout Plain Layout
11472 IsAutoNestedBy
11473 \end_layout
11474
11475 \end_inset
11476
11477 もご参照ください.
11478 \end_layout
11479
11480 \begin_layout Description
11481 \begin_inset Flex Code
11482 status collapsed
11483
11484 \begin_layout Plain Layout
11485 BabelPreamble
11486 \end_layout
11487
11488 \end_inset
11489
11490  これは,
11491 前に現れたこの様式の
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 BabelPreamble
11497 \end_layout
11498
11499 \end_inset
11500
11501 宣言をすべて,
11502 完全に上書きしますので注意してください.「
11503 \begin_inset Flex Code
11504 status collapsed
11505
11506 \begin_layout Plain Layout
11507 EndBabelPreamble
11508 \end_layout
11509
11510 \end_inset
11511
11512 」で閉じる必要があります.これの利用法についての詳細は,
11513
11514 \begin_inset CommandInset ref
11515 LatexCommand ref
11516 reference "subsec:段落様式の国際化"
11517 nolink "false"
11518
11519 \end_inset
11520
11521 節をご覧ください.
11522 \end_layout
11523
11524 \begin_layout Description
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 BottomSep
11530 \end_layout
11531
11532 \end_inset
11533
11534  [
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 浮動小数点型=0
11540 \end_layout
11541
11542 \end_inset
11543
11544 ]
11545 \begin_inset Foot
11546 status collapsed
11547
11548 \begin_layout Plain Layout
11549 ここで「浮動小数点型」とは1.5のような実数を指します.
11550 \end_layout
11551
11552 \end_inset
11553
11554  このレイアウト型の段落塊の最後の段落と,
11555 次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,
11556 分離幅は足し上げられるのではなく,
11557 最大値がとられます.
11558 \end_layout
11559
11560 \begin_layout Description
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565 Category
11566 \end_layout
11567
11568 \end_inset
11569
11570  [
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575 文字列
11576 \end_layout
11577
11578 \end_inset
11579
11580 ] この様式のカテゴリです.これは,
11581 ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが,
11582 作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
11583 \end_layout
11584
11585 \begin_layout Description
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590 CopyStyle
11591 \end_layout
11592
11593 \end_inset
11594
11595  [
11596 \begin_inset Flex Code
11597 status collapsed
11598
11599 \begin_layout Plain Layout
11600 文字列
11601 \end_layout
11602
11603 \end_inset
11604
11605 ] 既存の様式から,
11606 すべての機能を現在の様式にコピーします.これは,
11607 そのときに定義されている様式をコピーすることに注意してください.その後に加えられた変更は,
11608 コピーされた様式には影響しません.
11609 \end_layout
11610
11611 \begin_layout Description
11612 \begin_inset Flex Code
11613 status collapsed
11614
11615 \begin_layout Plain Layout
11616 DocBookGenerateTitle
11617 \end_layout
11618
11619 \end_inset
11620
11621  [
11622 \begin_inset Flex Code
11623 status collapsed
11624
11625 \begin_layout Plain Layout
11626 ブール型=false
11627 \end_layout
11628
11629 \end_inset
11630
11631 ] ラッパータグの後に
11632 \begin_inset Flex Code
11633 status collapsed
11634
11635 \begin_layout Plain Layout
11636 title
11637 \end_layout
11638
11639 \end_inset
11640
11641 タグを生成します.このパラメータは,
11642
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647 DocBookWrapperTag
11648 \end_layout
11649
11650 \end_inset
11651
11652 でのみ使用してください.他の場合はタイトルは環境の中身の
11653 \begin_inset Flex 圏点
11654 status open
11655
11656 \begin_layout Plain Layout
11657 後に
11658 \end_layout
11659
11660 \end_inset
11661
11662 出力されます.生成されるタイトルはLyXHTMLラベルと同じで,
11663 環境型とその番号の組み合わせです.主な使用法は,
11664 DocBookにLaTeX環境を閉じるマッピングがなく,
11665 LaTeXにはないタイトルが必要となる
11666 \begin_inset Flex Code
11667 status collapsed
11668
11669 \begin_layout Plain Layout
11670 figure
11671 \end_layout
11672
11673 \end_inset
11674
11675 のような汎用コンテナをユーザが頼らざるを得ないときに使います.この機能は,
11676 定理型の環境でたいへんよく用いられます.
11677 \end_layout
11678
11679 \begin_layout Description
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684 DependsOn
11685 \end_layout
11686
11687 \end_inset
11688
11689  [
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 <名称>
11695 \end_layout
11696
11697 \end_inset
11698
11699 ]
11700 \lang english
11701  
11702 \lang japanese
11703 この
11704 \emph on
11705 前に
11706 \emph default
11707 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,
11708 プリアンブルの断片の順序を確実にするためのものです
11709 \begin_inset Foot
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 この機能以外には,
11714 プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
11715 の特定のバージョンで観察された順序は,
11716 将来のバージョンで警告なしに変わる可能性があります.
11717 \end_layout
11718
11719 \end_inset
11720
11721
11722 \end_layout
11723
11724 \begin_layout Description
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729 EndLabelType
11730 \end_layout
11731
11732 \end_inset
11733
11734  [
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739
11740 \emph on
11741 No_Label
11742 \emph default
11743 ,
11744  Box,
11745  Filled_Box,
11746  Static
11747 \end_layout
11748
11749 \end_inset
11750
11751 ] 段落の最後(あるいは
11752 \begin_inset Flex Code
11753 status collapsed
11754
11755 \begin_layout Plain Layout
11756 LatexType
11757 \end_layout
11758
11759 \end_inset
11760
11761 が,
11762
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 Environment
11768 \end_layout
11769
11770 \end_inset
11771
11772
11773 \begin_inset Flex Code
11774 status collapsed
11775
11776 \begin_layout Plain Layout
11777 Item_Environment
11778 \end_layout
11779
11780 \end_inset
11781
11782
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787 List_Environment
11788 \end_layout
11789
11790 \end_inset
11791
11792 のいずれかの場合は,
11793 段落群の最後)に置くラベル.
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 No_Label
11799 \end_layout
11800
11801 \end_inset
11802
11803 の場合は「何もない」ことを指し,
11804
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 Box
11810 \end_layout
11811
11812 \end_inset
11813
11814 (あるいは
11815 \begin_inset Flex Code
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819 Filled_Box
11820 \end_layout
11821
11822 \end_inset
11823
11824 )の場合は,
11825 証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
11826
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 Static
11832 \end_layout
11833
11834 \end_inset
11835
11836 は明示したテキスト文字列を指します.
11837 \end_layout
11838
11839 \begin_layout Description
11840 \begin_inset Flex Code
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 EndLabelString
11845 \end_layout
11846
11847 \end_inset
11848
11849  [
11850 \begin_inset Flex Code
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 文字列=""
11855 \end_layout
11856
11857 \end_inset
11858
11859
11860 \begin_inset Flex Code
11861 status collapsed
11862
11863 \begin_layout Plain Layout
11864 Static
11865 \end_layout
11866
11867 \end_inset
11868
11869
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 EndLabelType
11875 \end_layout
11876
11877 \end_inset
11878
11879 のラベルで用いる文字列.
11880 \end_layout
11881
11882 \begin_layout Description
11883 \begin_inset Flex Code
11884 status collapsed
11885
11886 \begin_layout Plain Layout
11887 Font
11888 \end_layout
11889
11890 \end_inset
11891
11892  本文テキストとラベルの
11893 \emph on
11894 両方で
11895 \emph default
11896 用いられるフォント.第
11897 \begin_inset CommandInset ref
11898 LatexCommand ref
11899 reference "subsec:フォント指定"
11900 nolink "false"
11901
11902 \end_inset
11903
11904 節を参照.このフォントを定義すると,
11905 自動的に
11906 \begin_inset Flex Code
11907 status collapsed
11908
11909 \begin_layout Plain Layout
11910 LabelFont
11911 \end_layout
11912
11913 \end_inset
11914
11915 も同じ値で定義されることに注意してください.したがって,
11916
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 LabelFont
11922 \end_layout
11923
11924 \end_inset
11925
11926 も同時に定義したい場合には,
11927 これを先に定義してください.
11928 \end_layout
11929
11930 \begin_layout Description
11931 \begin_inset Flex Code
11932 status collapsed
11933
11934 \begin_layout Plain Layout
11935 ForceLocal
11936 \end_layout
11937
11938 \end_inset
11939
11940  [
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 整数型=0
11946 \end_layout
11947
11948 \end_inset
11949
11950 ] 新しい様式を\SpecialChar LyX
11951 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
11952  2.1.0です.引数は数字で,
11953 0・-1・1以上の任意の数をとることができます.様式の
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 ForceLocal
11959 \end_layout
11960
11961 \end_inset
11962
11963 フラグが1以上ならば,
11964 これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,
11965 文書ヘッダからの様式定義が文書クラスに追加されます.したがって,
11966 古い版の\SpecialChar LyX
11967 もこの様式を取り扱えるようになります.
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972 ForceLocal
11973 \end_layout
11974
11975 \end_inset
11976
11977 の引数は版数です.様式が読み込まれたときに,
11978 文書クラス中の既存の様式の版数よりも小さいと,
11979 新しい様式は無視されます.版数が大きいと,
11980 既存の様式に代わって新しい様式が用いられます.値-1は無限大の版数を意味し,
11981 この様式が常に用いられることになります.
11982 \end_layout
11983
11984 \begin_layout Description
11985 \begin_inset Flex Code
11986 status collapsed
11987
11988 \begin_layout Plain Layout
11989 FreeSpacing
11990 \end_layout
11991
11992 \end_inset
11993
11994  [
11995 \emph on
11996
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 0
12002 \end_layout
12003
12004 \end_inset
12005
12006
12007 \emph default
12008 ,
12009 \begin_inset space \thinspace{}
12010 \end_inset
12011
12012
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 1
12018 \end_layout
12019
12020 \end_inset
12021
12022 ] \SpecialChar LyX
12023 は,
12024 空白をそれ自体文字や記号ではなく,
12025 2つの単語の間の分割子として捉えているため,
12026 単語間に2つ以上の空白を入れることは,
12027 通常許可していません.これ自体はとても素晴らしいことですが,
12028 たとえばプログラムコードや生の\SpecialChar LaTeX
12029 コードを入力しようとするときなどに,
12030 煩わしくなることがあります.このことから,
12031
12032 \begin_inset Flex Code
12033 status collapsed
12034
12035 \begin_layout Plain Layout
12036 FreeSpacing
12037 \end_layout
12038
12039 \end_inset
12040
12041 を有効にすることが認められています.
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 Passthru 1
12047 \end_layout
12048
12049 \end_inset
12050
12051 が指定されていなければ,
12052 \SpecialChar LyX
12053 は2つめ以降の空白には非改行空白を生成します.
12054 \begin_inset Flex Code
12055 status collapsed
12056
12057 \begin_layout Plain Layout
12058 FreeSpacing
12059 \end_layout
12060
12061 \end_inset
12062
12063
12064 \begin_inset Flex Code
12065 status collapsed
12066
12067 \begin_layout Plain Layout
12068 KeepEmpty
12069 \end_layout
12070
12071 \end_inset
12072
12073 を意味することに注意してください.
12074 \end_layout
12075
12076 \begin_layout Description
12077 \begin_inset Flex Code
12078 status collapsed
12079
12080 \begin_layout Plain Layout
12081 HTML*
12082 \end_layout
12083
12084 \end_inset
12085
12086  これらのタグは,
12087 XHTML出力で使用されます.第
12088 \begin_inset CommandInset ref
12089 LatexCommand ref
12090 reference "subsec:段落様式-XHTML"
12091 nolink "false"
12092
12093 \end_inset
12094
12095 節をご覧ください.
12096 \end_layout
12097
12098 \begin_layout Description
12099 \begin_inset Flex Code
12100 status collapsed
12101
12102 \begin_layout Plain Layout
12103 InPreamble
12104 \end_layout
12105
12106 \end_inset
12107
12108  [
12109 \emph on
12110
12111 \begin_inset Flex Code
12112 status collapsed
12113
12114 \begin_layout Plain Layout
12115 0
12116 \end_layout
12117
12118 \end_inset
12119
12120
12121 \emph default
12122 ,
12123 \begin_inset space \thinspace{}
12124 \end_inset
12125
12126
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 1
12132 \end_layout
12133
12134 \end_inset
12135
12136
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 1
12142 \end_layout
12143
12144 \end_inset
12145
12146 の場合,
12147 様式が文書本体ではなく,
12148 文書プリアンブルにインクルードされるようにします.これは,
12149 タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利です.これは,
12150
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 LatexType
12156 \end_layout
12157
12158 \end_inset
12159
12160
12161 \begin_inset Flex Code
12162 status collapsed
12163
12164 \begin_layout Plain Layout
12165 Command
12166 \end_layout
12167
12168 \end_inset
12169
12170 または
12171 \begin_inset Flex Code
12172 status collapsed
12173
12174 \begin_layout Plain Layout
12175 Paragraph
12176 \end_layout
12177
12178 \end_inset
12179
12180 の様式に対してのみ動作します.
12181 \end_layout
12182
12183 \begin_layout Description
12184 \begin_inset Flex Code
12185 status collapsed
12186
12187 \begin_layout Plain Layout
12188 InTitle
12189 \end_layout
12190
12191 \end_inset
12192
12193  [
12194 \emph on
12195
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 0
12201 \end_layout
12202
12203 \end_inset
12204
12205
12206 \emph default
12207 ,
12208 \begin_inset space \thinspace{}
12209 \end_inset
12210
12211
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216 1
12217 \end_layout
12218
12219 \end_inset
12220
12221
12222 \begin_inset Flex Code
12223 status collapsed
12224
12225 \begin_layout Plain Layout
12226 1
12227 \end_layout
12228
12229 \end_inset
12230
12231 の場合,
12232 このレイアウトをタイトルブロックの一部としてマークします(大域項目の
12233 \begin_inset Flex Code
12234 status collapsed
12235
12236 \begin_layout Plain Layout
12237 TitleLatexType
12238 \end_layout
12239
12240 \end_inset
12241
12242
12243 \begin_inset Flex Code
12244 status collapsed
12245
12246 \begin_layout Plain Layout
12247 TitleLatexName
12248 \end_layout
12249
12250 \end_inset
12251
12252 も参照).
12253 \end_layout
12254
12255 \begin_layout Description
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260 IsAutoNestedBy
12261 \end_layout
12262
12263 \end_inset
12264
12265  このレイアウトがネストされるべき親レイアウトのコンマ区切りリストを入れます.(環境など)ネスト可能なレイアウトでのみ意味を持ちます.「
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270 EndAutoNestedBy
12271 \end_layout
12272
12273 \end_inset
12274
12275 」で閉じる必要があります.
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280 AutoNests
12281 \end_layout
12282
12283 \end_inset
12284
12285 もご参照ください.
12286 \end_layout
12287
12288 \begin_layout Description
12289 \begin_inset Flex Code
12290 status collapsed
12291
12292 \begin_layout Plain Layout
12293 IsTocCaption
12294 \end_layout
12295
12296 \end_inset
12297
12298  [
12299 \begin_inset Flex Code
12300 status collapsed
12301
12302 \begin_layout Plain Layout
12303
12304 \emph on
12305 0
12306 \end_layout
12307
12308 \end_inset
12309
12310 ,
12311 \begin_inset space \thinspace{}
12312 \end_inset
12313
12314
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 1
12320 \end_layout
12321
12322 \end_inset
12323
12324 ] これを1に設定すると,
12325 AddToTocが有効になり,
12326 段落は,
12327 その内容の要約を一覧表の項目に表示します.0に設定すると,
12328 ラベルが存在すれば,
12329 それのみが表示されます.
12330 \end_layout
12331
12332 \begin_layout Description
12333 \begin_inset Flex Code
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 ItemCommand
12338 \end_layout
12339
12340 \end_inset
12341
12342  [
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347 文字列="item"
12348 \end_layout
12349
12350 \end_inset
12351
12352 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
12353 コマンド.コマンドは,
12354 前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,
12355 \SpecialChar LaTeX
12356 出力中では
12357 \begin_inset Flex Code
12358 status collapsed
12359
12360 \begin_layout Plain Layout
12361
12362 \backslash
12363 item
12364 \end_layout
12365
12366 \end_inset
12367
12368 となります).
12369 \end_layout
12370
12371 \begin_layout Description
12372 \begin_inset Flex Code
12373 status collapsed
12374
12375 \begin_layout Plain Layout
12376 ItemSep
12377 \end_layout
12378
12379 \end_inset
12380
12381  [
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 浮動小数点型=0
12387 \end_layout
12388
12389 \end_inset
12390
12391 ] これは,
12392 同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,
12393 それぞれのレイアウトは,
12394 その環境の
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 ParSep
12400 \end_layout
12401
12402 \end_inset
12403
12404 だけ分離されます.しかし,
12405 その環境の項目全体は,
12406 さらにこの
12407 \begin_inset Flex Code
12408 status collapsed
12409
12410 \begin_layout Plain Layout
12411 ItemSep
12412 \end_layout
12413
12414 \end_inset
12415
12416 分だけ離されます.これは
12417 \emph on
12418 乗数
12419 \emph default
12420 であることに注意してください.
12421 \end_layout
12422
12423 \begin_layout Description
12424 \begin_inset Flex Code
12425 status collapsed
12426
12427 \begin_layout Plain Layout
12428 KeepEmpty
12429 \end_layout
12430
12431 \end_inset
12432
12433  [
12434 \emph on
12435
12436 \begin_inset Flex Code
12437 status collapsed
12438
12439 \begin_layout Plain Layout
12440 0
12441 \end_layout
12442
12443 \end_inset
12444
12445
12446 \emph default
12447 ,
12448 \begin_inset space \thinspace{}
12449 \end_inset
12450
12451
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 1
12457 \end_layout
12458
12459 \end_inset
12460
12461 ] 段落を空のままにすると,
12462 \SpecialChar LaTeX
12463 出力が空になってしまうので,
12464 通常,
12465 \SpecialChar LyX
12466 は段落を空にすることを許可しません.しかしながら,
12467 これを無効にすることが望ましい場合が存在します.たとえば,
12468 書簡のひな型では,
12469 必須フィールドを人々が忘れないように,
12470 空のフィールドのまま提供する手もあります.特別なクラスにおいては,
12471 レイアウトを実際には文章を含まないある種の改行として使用することもあります.
12472 \end_layout
12473
12474 \begin_layout Description
12475 \begin_inset Flex Code
12476 status collapsed
12477
12478 \begin_layout Plain Layout
12479 LabelBottomsep
12480 \end_layout
12481
12482 \end_inset
12483
12484  [
12485 \begin_inset Flex Code
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489 浮動小数点型=0
12490 \end_layout
12491
12492 \end_inset
12493
12494 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 Top_Environment
12500 \end_layout
12501
12502 \end_inset
12503
12504 および
12505 \begin_inset Newline linebreak
12506 \end_inset
12507
12508
12509 \begin_inset Flex Code
12510 status collapsed
12511
12512 \begin_layout Plain Layout
12513 Centered_Top_Environment
12514 \end_layout
12515
12516 \end_inset
12517
12518 ).
12519 \end_layout
12520
12521 \begin_layout Description
12522 \begin_inset Flex Code
12523 status collapsed
12524
12525 \begin_layout Plain Layout
12526 LabelCounter
12527 \end_layout
12528
12529 \end_inset
12530
12531  [
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536 文字列=""
12537 \end_layout
12538
12539 \end_inset
12540
12541 ] 自動連番に使われるカウンタ名(詳しくは第
12542 \begin_inset CommandInset ref
12543 LatexCommand ref
12544 reference "subsec:カウンタ"
12545 plural "false"
12546 caps "false"
12547 noprefix "false"
12548 nolink "false"
12549
12550 \end_inset
12551
12552 節参照).カウンタがラベル中に表示されるようにするためには,
12553
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 LabelString
12559 \end_layout
12560
12561 \end_inset
12562
12563 中で参照する必要があります.これは,
12564 少なくとも
12565 \begin_inset Flex Code
12566 status collapsed
12567
12568 \begin_layout Plain Layout
12569 Static
12570 \end_layout
12571
12572 \end_inset
12573
12574
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 Above
12580 \end_layout
12581
12582 \end_inset
12583
12584
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 Centered
12590 \end_layout
12591
12592 \end_inset
12593
12594 の各
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 LabelType
12600 \end_layout
12601
12602 \end_inset
12603
12604 で動作します.
12605 \begin_inset Newline newline
12606 \end_inset
12607
12608 また,
12609
12610 \begin_inset Flex Code
12611 status collapsed
12612
12613 \begin_layout Plain Layout
12614 LabelType
12615 \end_layout
12616
12617 \end_inset
12618
12619
12620 \begin_inset Flex Code
12621 status collapsed
12622
12623 \begin_layout Plain Layout
12624 Enumerate
12625 \end_layout
12626
12627 \end_inset
12628
12629 型のときにも,
12630 若干複雑にはなりますが,
12631 本項目を使うことができます.たとえば,
12632
12633 \begin_inset Flex Code
12634 status collapsed
12635
12636 \begin_layout Plain Layout
12637 LabelCounter myenum
12638 \end_layout
12639
12640 \end_inset
12641
12642 」と宣言したものとしましょう.すると,
12643 \SpecialChar LaTeX
12644 におけるのと同様,
12645 実際に使われるカウンタは,
12646
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 myenumi
12652 \end_layout
12653
12654 \end_inset
12655
12656
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 myenumii
12662 \end_layout
12663
12664 \end_inset
12665
12666
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 myenumii
12672 \end_layout
12673
12674 \end_inset
12675
12676
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 myenumiv
12682 \end_layout
12683
12684 \end_inset
12685
12686 のようになります.これらのカウンタは,
12687 全て別々に宣言されなくてはなりません.
12688 \begin_inset Newline newline
12689 \end_inset
12690
12691 カウンタの詳細については,
12692
12693 \begin_inset CommandInset ref
12694 LatexCommand ref
12695 reference "subsec:カウンタ"
12696 nolink "false"
12697
12698 \end_inset
12699
12700 をご覧ください.
12701 \end_layout
12702
12703 \begin_layout Description
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 LabelFont
12709 \end_layout
12710
12711 \end_inset
12712
12713  ラベルに使用されるフォント.
12714 \begin_inset CommandInset ref
12715 LatexCommand ref
12716 reference "subsec:フォント指定"
12717 nolink "false"
12718
12719 \end_inset
12720
12721 を参照.
12722 \end_layout
12723
12724 \begin_layout Description
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 LabelIndent
12730 \end_layout
12731
12732 \end_inset
12733
12734  [
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 文字列=""
12740 \end_layout
12741
12742 \end_inset
12743
12744 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
12745 \end_layout
12746
12747 \begin_layout Description
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752 LabelSep
12753 \end_layout
12754
12755 \end_inset
12756
12757  [
12758 \begin_inset Flex Code
12759 status collapsed
12760
12761 \begin_layout Plain Layout
12762 文字列=""
12763 \end_layout
12764
12765 \end_inset
12766
12767 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
12768 \end_layout
12769
12770 \begin_layout Description
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 LabelString
12776 \end_layout
12777
12778 \end_inset
12779
12780  [
12781 \begin_inset Flex Code
12782 status collapsed
12783
12784 \begin_layout Plain Layout
12785 文字列=""
12786 \end_layout
12787
12788 \end_inset
12789
12790
12791 \begin_inset Flex Code
12792 status collapsed
12793
12794 \begin_layout Plain Layout
12795 Static
12796 \end_layout
12797
12798 \end_inset
12799
12800 ラベル型でラベルに使用する文字列.
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805 LabelCounter
12806 \end_layout
12807
12808 \end_inset
12809
12810 を設定している場合,
12811
12812 \begin_inset CommandInset ref
12813 LatexCommand ref
12814 reference "subsec:カウンタ"
12815 nolink "false"
12816
12817 \end_inset
12818
12819 に述べられている特別な整形コマンドを含めることができます.
12820 \end_layout
12821
12822 \begin_layout Description
12823 \begin_inset Flex Code
12824 status collapsed
12825
12826 \begin_layout Plain Layout
12827 LabelStringAppendix
12828 \end_layout
12829
12830 \end_inset
12831
12832  [
12833 \begin_inset Flex Code
12834 status collapsed
12835
12836 \begin_layout Plain Layout
12837 文字列=""
12838 \end_layout
12839
12840 \end_inset
12841
12842 ] これは付録の中で
12843 \begin_inset Flex Code
12844 status collapsed
12845
12846 \begin_layout Plain Layout
12847 LabelString
12848 \end_layout
12849
12850 \end_inset
12851
12852 の代わりに用いられます.各
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 LabelString
12858 \end_layout
12859
12860 \end_inset
12861
12862 ステートメントは,
12863
12864 \begin_inset Flex Code
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868 LabelStringAppendix
12869 \end_layout
12870
12871 \end_inset
12872
12873 をもリセットすることに注意してください.
12874 \end_layout
12875
12876 \begin_layout Description
12877 \begin_inset Flex Code
12878 status collapsed
12879
12880 \begin_layout Plain Layout
12881 LabelType
12882 \end_layout
12883
12884 \end_inset
12885
12886  [
12887 \begin_inset Flex Code
12888 status collapsed
12889
12890 \begin_layout Plain Layout
12891
12892 \emph on
12893 No_Label
12894 \emph default
12895 ,
12896  Manual,
12897  Static,
12898  Above,
12899 \begin_inset Newline newline
12900 \end_inset
12901
12902 Centered,
12903  Sensitive,
12904  Enumerate,
12905 \begin_inset Newline newline
12906 \end_inset
12907
12908 Itemize,
12909  Bibliography
12910 \end_layout
12911
12912 \end_inset
12913
12914 ]
12915 \end_layout
12916
12917 \begin_deeper
12918 \begin_layout Description
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923 Manual
12924 \end_layout
12925
12926 \end_inset
12927
12928  は,
12929 ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,
12930 非改行空白を使用してください.
12931 \end_layout
12932
12933 \begin_layout Description
12934 \begin_inset Flex Code
12935 status collapsed
12936
12937 \begin_layout Plain Layout
12938 Static
12939 \end_layout
12940
12941 \end_inset
12942
12943  は,
12944 ラベルが
12945 \begin_inset Flex Code
12946 status collapsed
12947
12948 \begin_layout Plain Layout
12949 LabelString
12950 \end_layout
12951
12952 \end_inset
12953
12954 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
12955 \begin_inset Flex Code
12956 status collapsed
12957
12958 \begin_layout Plain Layout
12959 LatexType
12960 \end_layout
12961
12962 \end_inset
12963
12964
12965 \begin_inset Flex Code
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969 Environment
12970 \end_layout
12971
12972 \end_inset
12973
12974 のときは,
12975 連続する同じ
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 Style
12981 \end_layout
12982
12983 \end_inset
12984
12985 の段落中,
12986 最初の段落にのみ表示されます.
12987 \end_layout
12988
12989 \begin_layout Description
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 Above
12995 \end_layout
12996
12997 \end_inset
12998
12999 および
13000 \begin_inset Flex Code
13001 status collapsed
13002
13003 \begin_layout Plain Layout
13004 Centered
13005 \end_layout
13006
13007 \end_inset
13008
13009  は,
13010
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 Static
13016 \end_layout
13017
13018 \end_inset
13019
13020 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
13021 \end_layout
13022
13023 \begin_layout Description
13024 \begin_inset Flex Code
13025 status collapsed
13026
13027 \begin_layout Plain Layout
13028 Sensitive
13029 \end_layout
13030
13031 \end_inset
13032
13033  はキャプションラベルの「図」や「表」の特別な場合です.
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 Sensitive
13039 \end_layout
13040
13041 \end_inset
13042
13043 は,
13044 (ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,
13045 フロートに関連付けられたカウンタの値がNであるものとすると,
13046 「FloatType N」にハードコードされています.キャプションがフロートの外に挿入されると,
13047
13048 \begin_inset Flex Code
13049 status collapsed
13050
13051 \begin_layout Plain Layout
13052 LabelString
13053 \end_layout
13054
13055 \end_inset
13056
13057 は「意味を成しません!」と表示されます.
13058 \end_layout
13059
13060 \begin_layout Description
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065 Enumerate
13066 \end_layout
13067
13068 \end_inset
13069
13070  は,
13071 通常の連番ラベルを生成します.数値型を
13072 \family sans
13073 Counter
13074 \family default
13075 で設定する必要があります.第
13076 \begin_inset CommandInset ref
13077 LatexCommand ref
13078 reference "subsec:カウンタ"
13079 nolink "false"
13080
13081 \end_inset
13082
13083 節を参照してください.
13084 \end_layout
13085
13086 \begin_layout Description
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 Itemize
13092 \end_layout
13093
13094 \end_inset
13095
13096  は,
13097 各階層でさまざまなブリットを生成します.表示されるブリット型は
13098 \begin_inset Flex Noun
13099 status collapsed
13100
13101 \begin_layout Plain Layout
13102 文書\SpecialChar menuseparator
13103 設定\SpecialChar menuseparator
13104 ブリット
13105 \end_layout
13106
13107 \end_inset
13108
13109 で設定できます.
13110 \end_layout
13111
13112 \begin_layout Description
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117 Bibliography
13118 \end_layout
13119
13120 \end_inset
13121
13122  は
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 LatexType BibEnvironment
13128 \end_layout
13129
13130 \end_inset
13131
13132 とともにのみ使用されます.
13133 \end_layout
13134
13135 \end_deeper
13136 \begin_layout Description
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 LangPreamble
13142 \end_layout
13143
13144 \end_inset
13145
13146  これは,
13147 この様式で既に出現した
13148 \begin_inset Flex Code
13149 status collapsed
13150
13151 \begin_layout Plain Layout
13152 LangPreamble
13153 \end_layout
13154
13155 \end_inset
13156
13157 宣言をすべて,
13158 完全に上書きしますので,
13159 注意してください.使用法についての詳細は,
13160
13161 \begin_inset CommandInset ref
13162 LatexCommand ref
13163 reference "subsec:段落様式の国際化"
13164 nolink "false"
13165
13166 \end_inset
13167
13168 をご覧ください.
13169 \end_layout
13170
13171 \begin_layout Description
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176 LatexName
13177 \end_layout
13178
13179 \end_inset
13180
13181  [
13182 \begin_inset Flex Code
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186 <名称>
13187 \end_layout
13188
13189 \end_inset
13190
13191 ] 対応する\SpecialChar LaTeX
13192 の名称です.環境名かコマンド名を指します.
13193 \end_layout
13194
13195 \begin_layout Description
13196 \begin_inset Flex Code
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200 LatexParam
13201 \end_layout
13202
13203 \end_inset
13204
13205  [
13206 \begin_inset Flex Code
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210 <パラメータ>
13211 \end_layout
13212
13213 \end_inset
13214
13215 ] 対応する
13216 \begin_inset Flex Code
13217 status collapsed
13218
13219 \begin_layout Plain Layout
13220 LatexName
13221 \end_layout
13222
13223 \end_inset
13224
13225 の非必須パラメータです.このパラメータは,
13226 \SpecialChar LyX
13227 内部から変更することはできません(変更可能なパラメータには
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 Argument
13233 \end_layout
13234
13235 \end_inset
13236
13237 を使用してください).これは,
13238 全ての\SpecialChar LaTeX
13239  
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244 Argument
13245 \end_layout
13246
13247 \end_inset
13248
13249 の後にそのままの形で出力されます.
13250 \end_layout
13251
13252 \begin_layout Description
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 LatexType
13258 \end_layout
13259
13260 \end_inset
13261
13262  [
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267
13268 \emph on
13269 Paragraph
13270 \emph default
13271 ,
13272  Command,
13273  Environment,
13274  Item_Environment,
13275 \begin_inset Newline newline
13276 \end_inset
13277
13278 List_Environment,
13279  Bib_Environment
13280 \end_layout
13281
13282 \end_inset
13283
13284 ] レイアウトがどのように\SpecialChar LaTeX
13285 に変換されるべきかを示します
13286 \begin_inset Foot
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 これらのルールはSGMLクラスにも適用されるので,
13291
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296 LatexType
13297 \end_layout
13298
13299 \end_inset
13300
13301 の名称は,
13302 少しミスリーディングかもしれません.特定の例については,
13303 SGMLクラスファイル(ファイル名
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 db_*.inc
13309 \end_layout
13310
13311 \end_inset
13312
13313 )を見てください.
13314 \end_layout
13315
13316 \end_inset
13317
13318
13319 \end_layout
13320
13321 \begin_deeper
13322 \begin_layout Description
13323 \begin_inset Flex Code
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327 Paragraph
13328 \end_layout
13329
13330 \end_inset
13331
13332  は,
13333 何も特別なことは意味しません.
13334 \end_layout
13335
13336 \begin_layout Description
13337 \begin_inset Flex Code
13338 status collapsed
13339
13340 \begin_layout Plain Layout
13341 Command
13342 \end_layout
13343
13344 \end_inset
13345
13346  は,
13347
13348 \begin_inset Flex Code
13349 status collapsed
13350
13351 \begin_layout Plain Layout
13352
13353 \backslash
13354
13355 \emph on
13356 LatexName
13357 \emph default
13358 {\SpecialChar ldots
13359 }
13360 \end_layout
13361
13362 \end_inset
13363
13364 を意味します.
13365 \end_layout
13366
13367 \begin_layout Description
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372 Environment
13373 \end_layout
13374
13375 \end_inset
13376
13377  は,
13378
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383
13384 \backslash
13385 begin{
13386 \emph on
13387 LatexName
13388 \emph default
13389 }\SpecialChar ldots
13390
13391 \backslash
13392 end{
13393 \emph on
13394 LatexName
13395 \emph default
13396 }
13397 \end_layout
13398
13399 \end_inset
13400
13401 を意味します.
13402 \end_layout
13403
13404 \begin_layout Description
13405 \begin_inset Flex Code
13406 status collapsed
13407
13408 \begin_layout Plain Layout
13409 Item_Environment
13410 \end_layout
13411
13412 \end_inset
13413
13414  は
13415 \begin_inset Flex Code
13416 status collapsed
13417
13418 \begin_layout Plain Layout
13419 Environment
13420 \end_layout
13421
13422 \end_inset
13423
13424 と同じですが,
13425
13426 \begin_inset Flex Code
13427 status collapsed
13428
13429 \begin_layout Plain Layout
13430
13431 \backslash
13432 item
13433 \end_layout
13434
13435 \end_inset
13436
13437 がこの環境のすべての段落に付けられるところだけが異なっています.
13438 \end_layout
13439
13440 \begin_layout Description
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 List_Environment
13446 \end_layout
13447
13448 \end_inset
13449
13450  は
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 Item_Environment
13456 \end_layout
13457
13458 \end_inset
13459
13460 と同じですが,
13461
13462 \begin_inset Flex Code
13463 status collapsed
13464
13465 \begin_layout Plain Layout
13466 LabelWidthString
13467 \end_layout
13468
13469 \end_inset
13470
13471 が環境の引数として渡されるところだけが異なっています.
13472 \begin_inset Flex Code
13473 status collapsed
13474
13475 \begin_layout Plain Layout
13476 LabelWidthString
13477 \end_layout
13478
13479 \end_inset
13480
13481 は,
13482
13483 \begin_inset Flex MenuItem
13484 status collapsed
13485
13486 \begin_layout Plain Layout
13487 編集\SpecialChar menuseparator
13488 段落設定
13489 \end_layout
13490
13491 \end_inset
13492
13493 ダイアログで定義することができます.
13494 \end_layout
13495
13496 \begin_layout Description
13497 \begin_inset Flex Code
13498 status collapsed
13499
13500 \begin_layout Plain Layout
13501 Bib_Environment
13502 \end_layout
13503
13504 \end_inset
13505
13506  は
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 Environment
13512 \end_layout
13513
13514 \end_inset
13515
13516 に似ていますが,
13517 以下のように,
13518 書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
13519 \begin_inset Newline newline
13520 \end_inset
13521
13522
13523 \begin_inset Flex Code
13524 status collapsed
13525
13526 \begin_layout Plain Layout
13527
13528 \backslash
13529 begin{thebibliography}{99}
13530 \end_layout
13531
13532 \end_inset
13533
13534
13535 \begin_inset Newline newline
13536 \end_inset
13537
13538 したがって,
13539 これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,
13540 書誌情報項目の段落設定で,
13541 ユーザーが変更することができます.
13542 \end_layout
13543
13544 \begin_layout Standard
13545 上記最後のいくつかをまとめると,
13546 \SpecialChar LaTeX
13547 出力は,
13548 \SpecialChar LaTeX
13549 型に依存して
13550 \end_layout
13551
13552 \begin_layout LyX-Code
13553
13554 \backslash
13555 LatexName[LatexParam]{\SpecialChar ldots
13556 }
13557 \end_layout
13558
13559 \begin_layout Standard
13560 のようになるか,
13561
13562 \end_layout
13563
13564 \begin_layout LyX-Code
13565
13566 \backslash
13567 begin{LatexName}[LatexParam] \SpecialChar ldots
13568  
13569 \backslash
13570 end{LatexName}.
13571 \end_layout
13572
13573 \begin_layout Standard
13574 となります.
13575 \end_layout
13576
13577 \end_deeper
13578 \begin_layout Description
13579 \begin_inset Flex Code
13580 status collapsed
13581
13582 \begin_layout Plain Layout
13583 LeftDelim
13584 \end_layout
13585
13586 \end_inset
13587
13588  [
13589 \begin_inset Flex Code
13590 status collapsed
13591
13592 \begin_layout Plain Layout
13593 文字列
13594 \end_layout
13595
13596 \end_inset
13597
13598 ] 様式の内容の最初に置かれる文字列.出力中の改行は
13599 \begin_inset Flex Code
13600 status collapsed
13601
13602 \begin_layout Plain Layout
13603 <br/>
13604 \end_layout
13605
13606 \end_inset
13607
13608 で指示できます.
13609 \end_layout
13610
13611 \begin_layout Description
13612 \begin_inset Flex Code
13613 status collapsed
13614
13615 \begin_layout Plain Layout
13616 LeftMargin
13617 \end_layout
13618
13619 \end_inset
13620
13621  [
13622 \begin_inset Flex Code
13623 status collapsed
13624
13625 \begin_layout Plain Layout
13626 文字列=""
13627 \end_layout
13628
13629 \end_inset
13630
13631 ] レイアウトを環境の中に入れた場合,
13632 左余白は単純に加えられるのではなく,
13633 因子
13634 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13635 \end_inset
13636
13637 をかけて加えられます.このパラメータは,
13638
13639 \begin_inset Flex Code
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643 Margin
13644 \end_layout
13645
13646 \end_inset
13647
13648
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 Manual
13654 \end_layout
13655
13656 \end_inset
13657
13658 あるいは
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 Dynamic
13664 \end_layout
13665
13666 \end_inset
13667
13668 に設定されているときにも用いられることに注意してください.その場合には,
13669 これは手動設定余白または動的設定余白に加えられることに注意してください.
13670 \begin_inset Newline newline
13671 \end_inset
13672
13673 たとえば「
13674 \begin_inset Flex Code
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 MM
13679 \end_layout
13680
13681 \end_inset
13682
13683 」と指定すると,
13684 段落を通常フォントの「
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 MM
13690 \end_layout
13691
13692 \end_inset
13693
13694 」の幅だけ行頭下げを行います.文字列の前に「
13695 \begin_inset Flex Code
13696 status collapsed
13697
13698 \begin_layout Plain Layout
13699 -
13700 \end_layout
13701
13702 \end_inset
13703
13704 」を付けると,
13705 負の幅を与えることができます.この方法が採用されたのは,
13706 どの画面フォントでも見かけが同じになるようにするためです.
13707 \end_layout
13708
13709 \begin_layout Description
13710 \begin_inset Flex Code
13711 status collapsed
13712
13713 \begin_layout Plain Layout
13714 Margin
13715 \end_layout
13716
13717 \end_inset
13718
13719  [
13720 \begin_inset Flex Code
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724
13725 \emph on
13726 Static
13727 \emph default
13728 ,
13729  Manual,
13730  Dynamic,
13731  First_Dynamic,
13732  Right_Address_Box
13733 \end_layout
13734
13735 \end_inset
13736
13737
13738 \begin_inset Newline newline
13739 \end_inset
13740
13741 このレイアウトの左余白の種類です.
13742 \end_layout
13743
13744 \begin_deeper
13745 \begin_layout Description
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 Static
13751 \end_layout
13752
13753 \end_inset
13754
13755  は固定余白を示します.
13756 \end_layout
13757
13758 \begin_layout Description
13759 \begin_inset Flex Code
13760 status collapsed
13761
13762 \begin_layout Plain Layout
13763 Manual
13764 \end_layout
13765
13766 \end_inset
13767
13768  は,
13769 左余白が
13770 \begin_inset Flex MenuItem
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774 編集\SpecialChar menuseparator
13775 段落設定
13776 \end_layout
13777
13778 \end_inset
13779
13780 ダイアログで入力した文字列によって決められることを示します.これは,
13781 タブを用いずに整った一覧表を組むのに使用されます.
13782 \end_layout
13783
13784 \begin_layout Description
13785 \begin_inset Flex Code
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 Dynamic
13790 \end_layout
13791
13792 \end_inset
13793
13794  は,
13795 余白がラベルの大きさに依存することを示します.これは,
13796 自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,
13797 「3.2 非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
13798 \end_layout
13799
13800 \begin_layout Description
13801 \begin_inset Flex Code
13802 status collapsed
13803
13804 \begin_layout Plain Layout
13805 First_Dynamic
13806 \end_layout
13807
13808 \end_inset
13809
13810  は似ていますが,
13811 段落の最初の行だけがDynamicでその他の行はStaticです.これは,
13812 たとえば,
13813 箇条書き(記述)に使用されます.
13814 \end_layout
13815
13816 \begin_layout Description
13817 \begin_inset Flex Code
13818 status collapsed
13819
13820 \begin_layout Plain Layout
13821 Right_Address_Box
13822 \end_layout
13823
13824 \end_inset
13825
13826  は,
13827 段落中,
13828 最も長い行が右余白に合うように余白を選択します.これは,
13829 ページの右端に住所を組版するのに用いられます.
13830 \end_layout
13831
13832 \end_deeper
13833 \begin_layout Description
13834 \begin_inset Flex Code
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838 NeedProtect
13839 \end_layout
13840
13841 \end_inset
13842
13843  [
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848
13849 \emph on
13850 0
13851 \end_layout
13852
13853 \end_inset
13854
13855 ,
13856 \begin_inset space \thinspace{}
13857 \end_inset
13858
13859
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 1
13865 \end_layout
13866
13867 \end_inset
13868
13869 ] このレイアウト中の脆弱なコマンドが
13870 \begin_inset Flex Code
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874
13875 \backslash
13876 protect
13877 \end_layout
13878
13879 \end_inset
13880
13881 されるべきか否か(註:
13882 これはこのコマンド自体が
13883 \begin_inset Flex Code
13884 status collapsed
13885
13886 \begin_layout Plain Layout
13887
13888 \backslash
13889 protect
13890 \end_layout
13891
13892 \end_inset
13893
13894 されるべきかでは
13895 \begin_inset Flex 圏点
13896 status open
13897
13898 \begin_layout Plain Layout
13899 ありません
13900 \end_layout
13901
13902 \end_inset
13903
13904 ).
13905 \end_layout
13906
13907 \begin_layout Description
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 NeedCProtect
13913 \end_layout
13914
13915 \end_inset
13916
13917  [
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922
13923 \emph on
13924 0
13925 \end_layout
13926
13927 \end_inset
13928
13929 ,
13930 \begin_inset space \thinspace{}
13931 \end_inset
13932
13933
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938 1
13939 \end_layout
13940
13941 \end_inset
13942
13943 ] これは必要ならば,
13944 このレイアウトを含むマクロを
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949
13950 \backslash
13951 cprotect
13952 \end_layout
13953
13954 \end_inset
13955
13956 (cf.
13957  
13958 \family sans
13959 cprotect
13960 \family default
13961 パッケージ)を用いて保護するようにし,
13962 マクロ中でverbatimを使えるようにします.
13963 \begin_inset Note Note
13964 status open
13965
13966 \begin_layout Description
13967
13968 \lang english
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973
13974 \lang english
13975 NeedCProtect
13976 \end_layout
13977
13978 \end_inset
13979
13980  [
13981 \begin_inset Flex Code
13982 status collapsed
13983
13984 \begin_layout Plain Layout
13985
13986 \lang english
13987 -1
13988 \end_layout
13989
13990 \end_inset
13991
13992 ,
13993 \begin_inset space \thinspace{}
13994 \end_inset
13995
13996
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001
14002 \emph on
14003 \lang english
14004 0
14005 \end_layout
14006
14007 \end_inset
14008
14009 ,
14010 \begin_inset space \thinspace{}
14011 \end_inset
14012
14013
14014 \begin_inset Flex Code
14015 status collapsed
14016
14017 \begin_layout Plain Layout
14018
14019 \lang english
14020 1
14021 \end_layout
14022
14023 \end_inset
14024
14025 ] Value 
14026 \begin_inset Flex Code
14027 status collapsed
14028
14029 \begin_layout Plain Layout
14030
14031 \lang english
14032 1
14033 \end_layout
14034
14035 \end_inset
14036
14037  causes macros that contain this layout to be protected with 
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042
14043 \lang english
14044
14045 \backslash
14046 cprotect
14047 \end_layout
14048
14049 \end_inset
14050
14051  (cf.
14052  package 
14053 \family sans
14054 cprotect
14055 \family default
14056 ) if necessary and thus allows (some) verbatim stuff in macros.
14057  With the default setting (value 
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062
14063 \lang english
14064 0
14065 \end_layout
14066
14067 \end_inset
14068
14069 ),
14070  
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075
14076 \lang english
14077
14078 \backslash
14079 cprotect
14080 \end_layout
14081
14082 \end_inset
14083
14084  is used if a nested element requires it.
14085  Value 
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090
14091 \lang english
14092 -1
14093 \end_layout
14094
14095 \end_inset
14096
14097  prevents any use of 
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102
14103 \lang english
14104
14105 \backslash
14106 cprotect
14107 \end_layout
14108
14109 \end_inset
14110
14111  within this layout,
14112  even if required by a nested element.
14113 \end_layout
14114
14115 \end_inset
14116
14117
14118 \end_layout
14119
14120 \begin_layout Description
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 NeedMBoxProtect
14126 \end_layout
14127
14128 \end_inset
14129
14130  [
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135
14136 \emph on
14137 0
14138 \end_layout
14139
14140 \end_inset
14141
14142 ,
14143 \begin_inset space \thinspace{}
14144 \end_inset
14145
14146
14147 \begin_inset Flex Code
14148 status collapsed
14149
14150 \begin_layout Plain Layout
14151 1
14152 \end_layout
14153
14154 \end_inset
14155
14156 ] この様式中の(
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161
14162 \backslash
14163 cite
14164 \end_layout
14165
14166 \end_inset
14167
14168
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173
14174 \backslash
14175 ref
14176 \end_layout
14177
14178 \end_inset
14179
14180 のような)特定のコマンドが
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185
14186 \backslash
14187 mbox
14188 \end_layout
14189
14190 \end_inset
14191
14192 中で保護されるか否か.これは,
14193 中身を複雑な方法で解析する
14194 \family sans
14195 ulem
14196 \family default
14197
14198 \family sans
14199 soul
14200 \family default
14201 コマンドに頼る様式でとくに必要になります.
14202 \end_layout
14203
14204 \begin_layout Description
14205 \begin_inset Flex Code
14206 status collapsed
14207
14208 \begin_layout Plain Layout
14209 Newline
14210 \end_layout
14211
14212 \end_inset
14213
14214  [
14215 \begin_inset Flex Code
14216 status collapsed
14217
14218 \begin_layout Plain Layout
14219 0
14220 \end_layout
14221
14222 \end_inset
14223
14224 ,
14225 \begin_inset space \thinspace{}
14226 \end_inset
14227
14228
14229 \begin_inset Flex Code
14230 status collapsed
14231
14232 \begin_layout Plain Layout
14233
14234 \emph on
14235 1
14236 \end_layout
14237
14238 \end_inset
14239
14240 ] 新規行を\SpecialChar LaTeX
14241 の新規行(
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246
14247 \backslash
14248
14249 \backslash
14250
14251 \end_layout
14252
14253 \end_inset
14254
14255 )に変換するか否か.\SpecialChar LyX
14256 中で\SpecialChar LaTeX
14257 編集をやりやすくするために,
14258 変換は無効にすることができます.
14259 \end_layout
14260
14261 \begin_layout Description
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 NextNoIndent
14267 \end_layout
14268
14269 \end_inset
14270
14271  [
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276
14277 \emph on
14278 0
14279 \end_layout
14280
14281 \end_inset
14282
14283 ,
14284 \begin_inset space \thinspace{}
14285 \end_inset
14286
14287
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 1
14293 \end_layout
14294
14295 \end_inset
14296
14297 ] 真に設定すると,
14298
14299 \begin_inset Flex Code
14300 status collapsed
14301
14302 \begin_layout Plain Layout
14303 DefaultStyle
14304 \end_layout
14305
14306 \end_inset
14307
14308  (通常
14309 \begin_inset Flex Code
14310 status collapsed
14311
14312 \begin_layout Plain Layout
14313 Standard
14314 \end_layout
14315
14316 \end_inset
14317
14318 )段落が行頭下げになっている場合でも,
14319 この型の段落に続くそれらの段落は,
14320 字下げされません(逆に言えば,
14321 既定でない段落には影響を与えません).
14322 \end_layout
14323
14324 \begin_layout Description
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 ObsoletedBy
14330 \end_layout
14331
14332 \end_inset
14333
14334  [
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 <名称>
14340 \end_layout
14341
14342 \end_inset
14343
14344 ] このレイアウトが置き換えられたレイアウト名.これは,
14345 後方互換性を維持しながら,
14346 レイアウトの名称を変更するのに使用されます.
14347 \end_layout
14348
14349 \begin_layout Description
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 ParagraphGroup
14355 \end_layout
14356
14357 \end_inset
14358
14359  [
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 0
14365 \end_layout
14366
14367 \end_inset
14368
14369 ,
14370 \begin_inset space \thinspace{}
14371 \end_inset
14372
14373
14374 \begin_inset Flex Code
14375 status collapsed
14376
14377 \begin_layout Plain Layout
14378 1
14379 \end_layout
14380
14381 \end_inset
14382
14383 ] 同じ型の段落が引き続く場合,
14384 同じ段落として取り扱うか否かを決定します.これは,
14385 そのような連続グループに対して,
14386
14387 \begin_inset Flex Code
14388 status collapsed
14389
14390 \begin_layout Plain Layout
14391 GuiLabel
14392 \end_layout
14393
14394 \end_inset
14395
14396 が一度だけ出力される効果があります.既定では,
14397
14398 \begin_inset Flex Code
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402 LaTeXType
14403 \end_layout
14404
14405 \end_inset
14406
14407
14408
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 Environment
14414 \end_layout
14415
14416 \end_inset
14417
14418 および
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Bib_Environment
14424 \end_layout
14425
14426 \end_inset
14427
14428  については有効であり,
14429 他の型すべてについて無効になっています.
14430 \end_layout
14431
14432 \begin_layout Description
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 ParbreakIsNewline
14438 \end_layout
14439
14440 \end_inset
14441
14442  [
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447
14448 \emph on
14449 0
14450 \end_layout
14451
14452 \end_inset
14453
14454 ,
14455 \begin_inset space \thinspace{}
14456 \end_inset
14457
14458
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 1
14464 \end_layout
14465
14466 \end_inset
14467
14468 ] \SpecialChar LaTeX
14469 出力中で,
14470 段落を空行ではなく,
14471 改行で区切るよう指定します.
14472 \begin_inset Flex Code
14473 status collapsed
14474
14475 \begin_layout Plain Layout
14476 PassThru 1
14477 \end_layout
14478
14479 \end_inset
14480
14481 と併用すれば,
14482 (\SpecialChar TeX
14483 コードを使用したときのように)テキストエディタをエミュレートすることができます.
14484 \end_layout
14485
14486 \begin_layout Description
14487 \begin_inset Flex Code
14488 status collapsed
14489
14490 \begin_layout Plain Layout
14491 ParIndent
14492 \end_layout
14493
14494 \end_inset
14495
14496  [
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501 文字列=""
14502 \end_layout
14503
14504 \end_inset
14505
14506 ] 段落の最初の行の行頭下げ.レイアウトによっては
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511 Parindent
14512 \end_layout
14513
14514 \end_inset
14515
14516 は固定されています.例外には標準レイアウトがあり,
14517 標準レイアウトの段落の行頭下げは,
14518
14519 \begin_inset Flex Code
14520 status collapsed
14521
14522 \begin_layout Plain Layout
14523 NextNoIndent
14524 \end_layout
14525
14526 \end_inset
14527
14528 で禁止することができるようになっています.また,
14529 環境中の標準レイアウト段落は,
14530 当該段落の
14531 \begin_inset Flex Code
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535 Parindent
14536 \end_layout
14537
14538 \end_inset
14539
14540 ではなく,
14541 この環境の
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 Parindent
14547 \end_layout
14548
14549 \end_inset
14550
14551 を使用します.たとえば,
14552 箇条書き(連番)内の標準段落は,
14553 行頭下げされません.
14554 \end_layout
14555
14556 \begin_layout Description
14557 \begin_inset Flex Code
14558 status collapsed
14559
14560 \begin_layout Plain Layout
14561 ParSep
14562 \end_layout
14563
14564 \end_inset
14565
14566  [
14567 \begin_inset Flex Code
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 浮動小数点型=0
14572 \end_layout
14573
14574 \end_inset
14575
14576 ] このレイアウトの2段落間の垂直余白.
14577 \end_layout
14578
14579 \begin_layout Description
14580 \begin_inset Flex Code
14581 status collapsed
14582
14583 \begin_layout Plain Layout
14584 Parskip
14585 \end_layout
14586
14587 \end_inset
14588
14589  [
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 浮動小数点型=0
14595 \end_layout
14596
14597 \end_inset
14598
14599 ] \SpecialChar LyX
14600 では,
14601 文書を組版するのに,
14602 ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,
14603 この値は完全に無視されます.「スキップ」を選択した際には,
14604 \SpecialChar LaTeX
14605 型「段落」レイアウトの
14606 \begin_inset Flex Code
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 ParIndent
14611 \end_layout
14612
14613 \end_inset
14614
14615 は無視され,
14616 すべての段落はこの
14617 \begin_inset Flex Code
14618 status collapsed
14619
14620 \begin_layout Plain Layout
14621 Parskip
14622 \end_layout
14623
14624 \end_inset
14625
14626 引数分だけ引き離されます.垂直余白は,
14627
14628 \begin_inset Flex Code
14629 status collapsed
14630
14631 \begin_layout Plain Layout
14632 DefaultHeight
14633 \end_layout
14634
14635 \end_inset
14636
14637 を標準フォントでの1行の高さとすると,
14638
14639 \begin_inset Flex Code
14640 status collapsed
14641
14642 \begin_layout Plain Layout
14643 Parskipの値
14644 \end_layout
14645
14646 \end_inset
14647
14648
14649 \begin_inset Formula $\times$
14650 \end_inset
14651
14652
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 DefaultHeight
14658 \end_layout
14659
14660 \end_inset
14661
14662 によって計算されます.このようにして,
14663 画面フォントを変更しても同じように表示されるのです.
14664 \end_layout
14665
14666 \begin_layout Description
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 PassThru
14672 \end_layout
14673
14674 \end_inset
14675
14676  [
14677 \emph on
14678
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 0
14684 \end_layout
14685
14686 \end_inset
14687
14688
14689 \emph default
14690 ,
14691 \begin_inset space \thinspace{}
14692 \end_inset
14693
14694
14695 \begin_inset Flex Code
14696 status collapsed
14697
14698 \begin_layout Plain Layout
14699 1
14700 \end_layout
14701
14702 \end_inset
14703
14704 ] この段落の内容が,
14705 \SpecialChar LaTeX
14706 が必要とするような特別な変換を行わずに,
14707 生の形で出力されるべきかどうか.
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 PassThruChars
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 文字列
14726 \end_layout
14727
14728 \end_inset
14729
14730 ]
14731 \family typewriter
14732  
14733 \family default
14734 \SpecialChar LaTeX
14735 が要請する特別な翻訳なしで.生の形で出力されるべき,
14736 それぞれの文字を定義します.
14737 \end_layout
14738
14739 \begin_layout Description
14740 \begin_inset Flex Code
14741 status collapsed
14742
14743 \begin_layout Plain Layout
14744 Preamble
14745 \end_layout
14746
14747 \end_inset
14748
14749  この様式が使用されたときに,
14750 \SpecialChar LaTeX
14751 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,
14752 パッケージを読み込んだりと言ったことに使用します.「
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 EndPreamble
14758 \end_layout
14759
14760 \end_inset
14761
14762 」で閉じる必要があります.
14763 \end_layout
14764
14765 \begin_layout Description
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 RefPrefix
14771 \end_layout
14772
14773 \end_inset
14774
14775  [
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 文字列
14781 \end_layout
14782
14783 \end_inset
14784
14785 ] この型の段落を参照する際,
14786 生成されるラベルに使用する前置句.これによって,
14787 整形参照を使用することができるようになります.
14788 \end_layout
14789
14790 \begin_layout Description
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 Requires
14796 \end_layout
14797
14798 \end_inset
14799
14800  [
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 文字列
14806 \end_layout
14807
14808 \end_inset
14809
14810 ] この様式が機能
14811 \begin_inset Flex Code
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815 文字列
14816 \end_layout
14817
14818 \end_inset
14819
14820 を必要とするかどうか(機能詳細については,
14821
14822 \begin_inset CommandInset ref
14823 LatexCommand ref
14824 reference "chap:関数一覧"
14825 nolink "false"
14826
14827 \end_inset
14828
14829 節参照).特定のオプションをとるパッケージを要求する場合,
14830
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 PackageOptions
14836 \end_layout
14837
14838 \end_inset
14839
14840 を汎用テキストクラスパラメータとして追加して使うことができます(
14841 \begin_inset CommandInset ref
14842 LatexCommand ref
14843 reference "subsec:汎用テキストクラスパラメータ"
14844 nolink "false"
14845
14846 \end_inset
14847
14848 を参照).
14849 \end_layout
14850
14851 \begin_layout Description
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 ResetArgs
14857 \end_layout
14858
14859 \end_inset
14860
14861  [
14862 \begin_inset Flex Code
14863 status collapsed
14864
14865 \begin_layout Plain Layout
14866
14867 \emph on
14868 0
14869 \end_layout
14870
14871 \end_inset
14872
14873 ,
14874 \begin_inset Flex Code
14875 status collapsed
14876
14877 \begin_layout Plain Layout
14878 1
14879 \end_layout
14880
14881 \end_inset
14882
14883 ] (
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 Argument
14889 \end_layout
14890
14891 \end_inset
14892
14893 タグで定義された)この様式の\SpecialChar LaTeX
14894 引数をリセットします.これは,
14895 様式を
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 CopyStyle
14901 \end_layout
14902
14903 \end_inset
14904
14905 でコピーし,
14906 その(必須及び非必須)引数は継承したくない場合に便利です.
14907 \end_layout
14908
14909 \begin_layout Description
14910 \begin_inset Flex Code
14911 status collapsed
14912
14913 \begin_layout Plain Layout
14914 ResumeCounter
14915 \end_layout
14916
14917 \end_inset
14918
14919  [
14920 \begin_inset Flex Code
14921 status collapsed
14922
14923 \begin_layout Plain Layout
14924
14925 \emph on
14926 0
14927 \end_layout
14928
14929 \end_inset
14930
14931 ,
14932 \begin_inset Flex Code
14933 status collapsed
14934
14935 \begin_layout Plain Layout
14936 1
14937 \end_layout
14938
14939 \end_inset
14940
14941 ] レイアウトの新しい一群で通常リセットされるカウンタを元に戻します.これは,
14942
14943 \begin_inset Flex Code
14944 status collapsed
14945
14946 \begin_layout Plain Layout
14947 LabelType
14948 \end_layout
14949
14950 \end_inset
14951
14952
14953 \begin_inset Flex Code
14954 status collapsed
14955
14956 \begin_layout Plain Layout
14957 Enumerate
14958 \end_layout
14959
14960 \end_inset
14961
14962 の時のみ有効です.
14963 \end_layout
14964
14965 \begin_layout Description
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 RightDelim
14971 \end_layout
14972
14973 \end_inset
14974
14975  [
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 文字列
14981 \end_layout
14982
14983 \end_inset
14984
14985 ] 様式の内容の最後に置かれる文字列.出力中の改行は
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 <br/>
14991 \end_layout
14992
14993 \end_inset
14994
14995 で指示できます.
14996 \end_layout
14997
14998 \begin_layout Description
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 RightMargin
15004 \end_layout
15005
15006 \end_inset
15007
15008  [
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 文字列=""
15014 \end_layout
15015
15016 \end_inset
15017
15018
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 LeftMargin
15024 \end_layout
15025
15026 \end_inset
15027
15028 に同様.
15029 \end_layout
15030
15031 \begin_layout Description
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 Spacing
15037 \end_layout
15038
15039 \end_inset
15040
15041  [
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046
15047 \emph on
15048 single
15049 \end_layout
15050
15051 \end_inset
15052
15053 ,
15054  
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 onehalf
15060 \end_layout
15061
15062 \end_inset
15063
15064 ,
15065  
15066 \begin_inset Flex Code
15067 status collapsed
15068
15069 \begin_layout Plain Layout
15070 double
15071 \end_layout
15072
15073 \end_inset
15074
15075 ,
15076  
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 other
15082 \begin_inset space ~
15083 \end_inset
15084
15085 <
15086 \emph on
15087
15088 \emph default
15089 >
15090 \end_layout
15091
15092 \end_inset
15093
15094 ]
15095 \lang english
15096  
15097 \lang japanese
15098 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
15099 \begin_inset Flex Code
15100 status collapsed
15101
15102 \begin_layout Plain Layout
15103 single
15104 \end_layout
15105
15106 \end_inset
15107
15108
15109 \begin_inset Flex Code
15110 status collapsed
15111
15112 \begin_layout Plain Layout
15113 onehalf
15114 \end_layout
15115
15116 \end_inset
15117
15118
15119 \begin_inset Flex Code
15120 status collapsed
15121
15122 \begin_layout Plain Layout
15123 double
15124 \end_layout
15125
15126 \end_inset
15127
15128 は,
15129 それぞれ乗数1・1.25・1.667に対応します.引数
15130 \begin_inset Flex Code
15131 status collapsed
15132
15133 \begin_layout Plain Layout
15134 other
15135 \end_layout
15136
15137 \end_inset
15138
15139 を指定した場合には,
15140 実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 Spacing
15146 \end_layout
15147
15148 \end_inset
15149
15150 は,
15151 \SpecialChar LaTeX
15152 パッケージ
15153 \begin_inset Flex Code
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 setspace
15158 \end_layout
15159
15160 \end_inset
15161
15162 パッケージを使用した,
15163 限定的な\SpecialChar LaTeX
15164 コードを生成することを意味することにご注意ください.
15165 \end_layout
15166
15167 \begin_layout Description
15168 \begin_inset Flex Code
15169 status collapsed
15170
15171 \begin_layout Plain Layout
15172 Spellcheck
15173 \end_layout
15174
15175 \end_inset
15176
15177  [
15178 \begin_inset Flex Code
15179 status collapsed
15180
15181 \begin_layout Plain Layout
15182 0
15183 \end_layout
15184
15185 \end_inset
15186
15187 ,
15188 \begin_inset space \thinspace{}
15189 \end_inset
15190
15191
15192 \begin_inset Flex Code
15193 status collapsed
15194
15195 \begin_layout Plain Layout
15196 1
15197 \end_layout
15198
15199 \end_inset
15200
15201 ] この様式の段落をスペルチェックするか否か.既定値は真です.
15202 \end_layout
15203
15204 \begin_layout Description
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 StepParentCounter
15210 \end_layout
15211
15212 \end_inset
15213
15214  [
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219
15220 \emph on
15221 0
15222 \end_layout
15223
15224 \end_inset
15225
15226 ,
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 1
15232 \end_layout
15233
15234 \end_inset
15235
15236 ] 新しいレイアウト群を開始する際に,
15237 このカウンタの親カウンタを進めるか否か.これは,
15238 現在のところ,
15239
15240 \begin_inset Flex Code
15241 status collapsed
15242
15243 \begin_layout Plain Layout
15244 LabelType
15245 \end_layout
15246
15247 \end_inset
15248
15249
15250 \begin_inset Flex Code
15251 status collapsed
15252
15253 \begin_layout Plain Layout
15254 Enumerate
15255 \end_layout
15256
15257 \end_inset
15258
15259 の時のみ有効です.
15260 \end_layout
15261
15262 \begin_layout Description
15263 \begin_inset Flex Code
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267 TextFont
15268 \end_layout
15269
15270 \end_inset
15271
15272  本文に使うフォント.第
15273 \begin_inset CommandInset ref
15274 LatexCommand ref
15275 reference "subsec:フォント指定"
15276 nolink "false"
15277
15278 \end_inset
15279
15280 節参照.
15281 \end_layout
15282
15283 \begin_layout Description
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 TocLevel
15289 \end_layout
15290
15291 \end_inset
15292
15293  [
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 整数型=3
15299 \end_layout
15300
15301 \end_inset
15302
15303 ] 目次中でのこの様式の階層.これは,
15304 節見出しの自動連番に使用されます.
15305 \end_layout
15306
15307 \begin_layout Description
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312 ToggleIndent
15313 \end_layout
15314
15315 \end_inset
15316
15317  [
15318 \emph on
15319
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 default
15325 \end_layout
15326
15327 \end_inset
15328
15329
15330 \emph default
15331 ,
15332  
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 always
15338 \end_layout
15339
15340 \end_inset
15341
15342 ,
15343  
15344 \begin_inset Flex Code
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348 never
15349 \end_layout
15350
15351 \end_inset
15352
15353 ] このタグは,
15354 この段落の1行目の行頭下げが,
15355 段落設定ダイアログで切り替えられるかどうかを決めます.
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 default
15361 \end_layout
15362
15363 \end_inset
15364
15365 が指定されると,
15366 文書設定が「行頭下げ」段落様式を使用しているときに,
15367 行頭下げを変更することができます.
15368 \begin_inset Flex Code
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 always
15373 \end_layout
15374
15375 \end_inset
15376
15377 は,
15378 文書設定にかかわらず変更することができ,
15379
15380 \begin_inset Flex Code
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384 never
15385 \end_layout
15386
15387 \end_inset
15388
15389 は,
15390 どのような場合でも変更することができません.
15391 \end_layout
15392
15393 \begin_layout Description
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 TopSep
15399 \end_layout
15400
15401 \end_inset
15402
15403  [
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 浮動小数点型=0
15409 \end_layout
15410
15411 \end_inset
15412
15413 ] このレイアウトを持つ一連の段落群の最初の段落と,
15414 その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,
15415 余白は単純に追加されるのではなく,
15416 それらの最大値がとられます.
15417 \end_layout
15418
15419 \begin_layout Subsection
15420 段落様式の国際化
15421 \begin_inset CommandInset label
15422 LatexCommand label
15423 name "subsec:段落様式の国際化"
15424
15425 \end_inset
15426
15427
15428 \end_layout
15429
15430 \begin_layout Standard
15431 \SpecialChar LyX
15432 は,
15433 長きにわたってレイアウト情報の国際化をサポートしてきましたが,
15434 第2.0版までは,
15435 これは操作画面にのみ適用されるものであって,
15436 たとえばPDF出力には適用されませんでした.たとえば,
15437 フランスの著者が,
15438 「Theorem 1」の代わりに「
15439 \lang french
15440 Théorème
15441 \lang japanese
15442  1」としたければ,
15443 醜いハックに頼るしかありませんでした.Georg Baumのおかげで,
15444 これは解消されました.
15445 \end_layout
15446
15447 \begin_layout Standard
15448 もし
15449 \begin_inset Flex MenuItem
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 Style
15454 \end_layout
15455
15456 \end_inset
15457
15458 が,
15459 組版文書に出力される文字列を定義するのであれば,
15460 非英語文書や複数言語文書をサポートするために,
15461
15462 \begin_inset Flex MenuItem
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466 LangPreamble
15467 \end_layout
15468
15469 \end_inset
15470
15471
15472 \begin_inset Flex MenuItem
15473 status collapsed
15474
15475 \begin_layout Plain Layout
15476 BabelPreamble
15477 \end_layout
15478
15479 \end_inset
15480
15481 を使用することができます.以下の抜粋(
15482 \begin_inset Flex MenuItem
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486 theorems-ams.inc
15487 \end_layout
15488
15489 \end_inset
15490
15491 より)は,
15492 これがどう動作するかを示すものです.
15493 \end_layout
15494
15495 \begin_layout LyX-Code
15496 Preamble
15497 \end_layout
15498
15499 \begin_deeper
15500 \begin_layout LyX-Code
15501   
15502 \backslash
15503 theoremstyle{remark}
15504 \end_layout
15505
15506 \begin_layout LyX-Code
15507   
15508 \backslash
15509 newtheorem{claim}[thm]{
15510 \backslash
15511 protect
15512 \backslash
15513 claimname}
15514 \end_layout
15515
15516 \begin_layout LyX-Code
15517 EndPreamble
15518 \end_layout
15519
15520 \begin_layout LyX-Code
15521 LangPreamble
15522 \end_layout
15523
15524 \begin_layout LyX-Code
15525   
15526 \backslash
15527 providecommand{
15528 \backslash
15529 claimname}{_(Claim)}
15530 \end_layout
15531
15532 \begin_layout LyX-Code
15533 EndLangPreamble
15534 \end_layout
15535
15536 \begin_layout LyX-Code
15537 BabelPreamble
15538 \end_layout
15539
15540 \begin_layout LyX-Code
15541     
15542 \backslash
15543 addto
15544 \backslash
15545 captions$$lang{
15546 \backslash
15547 renewcommand{
15548 \backslash
15549 claimname}{_(Claim)}}
15550 \end_layout
15551
15552 \begin_layout LyX-Code
15553 EndBabelPreamble
15554 \end_layout
15555
15556 \end_deeper
15557 \begin_layout Standard
15558 原則として,
15559
15560 \begin_inset Flex MenuItem
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 LangPreamble
15565 \end_layout
15566
15567 \end_inset
15568
15569
15570 \begin_inset Flex MenuItem
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 BabelPreamble
15575 \end_layout
15576
15577 \end_inset
15578
15579 タグ内には,
15580 有効な\SpecialChar LaTeX
15581 コードはすべて用いることができますが,
15582 実際においては,
15583 ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるのは,
15584 \SpecialChar LaTeX
15585 コマンド
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590
15591 \backslash
15592 claimname
15593 \end_layout
15594
15595 \end_inset
15596
15597 とその
15598 \begin_inset Flex Code
15599 status collapsed
15600
15601 \begin_layout Plain Layout
15602
15603 \backslash
15604 newtheorem
15605 \end_layout
15606
15607 \end_inset
15608
15609 中での用い方です.
15610 \end_layout
15611
15612 \begin_layout Standard
15613 \begin_inset Flex Code
15614 status collapsed
15615
15616 \begin_layout Plain Layout
15617 LangPreamble
15618 \end_layout
15619
15620 \end_inset
15621
15622 タグは,
15623 文書全体の言語に基づいた国際化を提供します.タグの内容は,
15624
15625 \begin_inset Flex Code
15626 status collapsed
15627
15628 \begin_layout Plain Layout
15629 Preamble
15630 \end_layout
15631
15632 \end_inset
15633
15634 タグと同様,
15635 プリアンブルに置かれるのですが,
15636 これを特別なものにしているのは,
15637 「関数」
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 _()
15643 \end_layout
15644
15645 \end_inset
15646
15647 が使用されていることです.これは,
15648 \SpecialChar LyX
15649 が\SpecialChar LaTeX
15650 出力を生成する際,
15651 その引数を文書言語に翻訳したもので置き換えられます.
15652 \end_layout
15653
15654 \begin_layout Standard
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 BabelPreamble
15660 \end_layout
15661
15662 \end_inset
15663
15664 タグは,
15665 複数言語文書をサポートし,
15666
15667 \begin_inset Flex Code
15668 status collapsed
15669
15670 \begin_layout Plain Layout
15671 babel
15672 \end_layout
15673
15674 \end_inset
15675
15676 パッケージへのインタフェースを提供することを意図しているので,
15677 もう少し複雑です.その内容は,
15678 文書に現れる言語それぞれについて一度,
15679 プリアンブルに追加されます.この場合には,
15680
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 _()
15686 \end_layout
15687
15688 \end_inset
15689
15690 の引数は,
15691 その当該言語への翻訳で置き換えられ,
15692
15693 \begin_inset Flex Code
15694 status collapsed
15695
15696 \begin_layout Plain Layout
15697 $$lang
15698 \end_layout
15699
15700 \end_inset
15701
15702 は言語名(babelパッケージで使用されるもの)で置き換えられます.
15703 \end_layout
15704
15705 \begin_layout Standard
15706 したがって,
15707 フランス語のセクションを持つドイツ語文書では,
15708 以下のような内容がプリアンブルに追加されます
15709 \end_layout
15710
15711 \begin_layout LyX-Code
15712
15713 \backslash
15714 addto
15715 \backslash
15716 captionsfrench{
15717 \backslash
15718 renewcommand{
15719 \backslash
15720 claimname}{Affirmation}}
15721 \begin_inset Newline newline
15722 \end_inset
15723
15724
15725 \backslash
15726 addto
15727 \backslash
15728 captionsngerman{
15729 \backslash
15730 renewcommand{
15731 \backslash
15732 claimname}{Behauptung}}
15733 \begin_inset Newline newline
15734 \end_inset
15735
15736
15737 \backslash
15738 providecommand{
15739 \backslash
15740 claimname}{Behauptung}
15741 \end_layout
15742
15743 \begin_layout Standard
15744 それから,
15745 \SpecialChar LaTeX
15746
15747 \begin_inset Flex Code
15748 status collapsed
15749
15750 \begin_layout Plain Layout
15751 babel
15752 \end_layout
15753
15754 \end_inset
15755
15756 は協力して,
15757 出力に正しい文字列を生成します.
15758 \end_layout
15759
15760 \begin_layout Standard
15761 ここで注意しておくべき一つの重要な点は,
15762 翻訳は,
15763
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 layouttranslations
15769 \end_layout
15770
15771 \end_inset
15772
15773 ファイルを通じて,
15774 \SpecialChar LyX
15775 自身によって提供されるということです.つまり,
15776 ユーザー作成のレイアウトファイルに入力された文字列は,
15777
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 layouttranslations
15783 \end_layout
15784
15785 \end_inset
15786
15787 ファイルをそれに応じて変更しない限り,
15788 \SpecialChar LyX
15789 の国際化ルーチンでは取り扱われないので,
15790
15791 \begin_inset Flex MenuItem
15792 status collapsed
15793
15794 \begin_layout Plain Layout
15795 LangPreamble
15796 \end_layout
15797
15798 \end_inset
15799
15800
15801 \begin_inset Flex MenuItem
15802 status collapsed
15803
15804 \begin_layout Plain Layout
15805 BabelPreamble
15806 \end_layout
15807
15808 \end_inset
15809
15810 は,
15811 事実上,
15812 \SpecialChar LyX
15813 とともに提供されるレイアウトファイルでのみ,
15814 使うことができるということを意味します.とはいえ,
15815 こういうことでありますので,
15816 将来的に\SpecialChar LyX
15817 に同梱させようという意図を以て作成されたレイアウトは,
15818 適切なところではすべて,
15819 これらのタグを使用するべきです.\SpecialChar LyX
15820 が提供する段落様式の翻訳は,
15821 マイナー更新(例えば2.1.x版から2.1.y版)では変更されないことに注意してください.しかしながら,
15822 メジャー更新(例えば2.0.x版から2.1.y版)では,
15823 新しい翻訳や修正が導入される可能性は大いにあります.
15824 \end_layout
15825
15826 \begin_layout Subsection
15827 フロート
15828 \begin_inset CommandInset label
15829 LatexCommand label
15830 name "subsec:フロート"
15831
15832 \end_inset
15833
15834
15835 \end_layout
15836
15837 \begin_layout Standard
15838 \SpecialChar LyX
15839 第1.3.0版以来,
15840 テキストクラス自体の中でフロート(
15841 \begin_inset Flex MenuItem
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845 figure
15846 \end_layout
15847
15848 \end_inset
15849
15850
15851 \begin_inset Flex MenuItem
15852 status collapsed
15853
15854 \begin_layout Plain Layout
15855 table
15856 \end_layout
15857
15858 \end_inset
15859
15860 ・\SpecialChar ldots
15861 )を定義することが可能となり,
15862 かつ必要となりました.標準的なフロートは
15863 \begin_inset Flex Code
15864 status collapsed
15865
15866 \begin_layout Plain Layout
15867 stdfloats.inc
15868 \end_layout
15869
15870 \end_inset
15871
15872 ファイルに含まれているので,
15873 作業中のレイアウトファイルに
15874 \end_layout
15875
15876 \begin_layout LyX-Code
15877 Input stdfloats.inc
15878 \end_layout
15879
15880 \begin_layout Standard
15881 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
15882 に同梱されているAGUクラスのように,
15883 それ以外のフロート型を提供するテキストクラスを実装するには,
15884 以下の情報が役立つでありましょう.
15885 \end_layout
15886
15887 \begin_layout Description
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 AllowedPlacement
15893 \end_layout
15894
15895 \end_inset
15896
15897  [
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 文字列
15903 \end_layout
15904
15905 \end_inset
15906
15907 =!htbpH] このフロート型に許可された配置用の選択肢.値は,
15908 配置文字からなる文字列です.使用できる文字には,
15909
15910 \emph on
15911 h
15912 \emph default
15913  (
15914 \begin_inset Quotes eld
15915 \end_inset
15916
15917 here if possible:
15918 可能ならば現在位置に
15919 \begin_inset Quotes erd
15920 \end_inset
15921
15922 ),
15923  
15924 \emph on
15925 t
15926 \emph default
15927  (
15928 \begin_inset Quotes eld
15929 \end_inset
15930
15931 top of page:
15932 ページ上部
15933 \begin_inset Quotes erd
15934 \end_inset
15935
15936 )・
15937 \emph on
15938 b
15939 \emph default
15940  (
15941 \begin_inset Quotes eld
15942 \end_inset
15943
15944 bottom of page:
15945 ページ下部
15946 \begin_inset Quotes erd
15947 \end_inset
15948
15949 )・
15950 \emph on
15951 p
15952 \emph default
15953  (
15954 \begin_inset Quotes eld
15955 \end_inset
15956
15957 page of floats:
15958 フロートを独立したページに
15959 \begin_inset Quotes erd
15960 \end_inset
15961
15962 )・
15963 \emph on
15964 H
15965 \emph default
15966  (
15967 \begin_inset Quotes eld
15968 \end_inset
15969
15970 here definitely:
15971 何としても現在位置に置く
15972 \begin_inset Quotes erd
15973 \end_inset
15974
15975 )・
15976 \emph on
15977 !
15978
15979 \emph default
15980  (
15981 \begin_inset Quotes eld
15982 \end_inset
15983
15984 ignore LaTeX rules:
15985 LaTeXの規則を無視する
15986 \begin_inset Quotes erd
15987 \end_inset
15988
15989 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,
15990 文字列として
15991 \emph on
15992 none
15993 \emph default
15994 を与えてください.
15995 \end_layout
15996
15997 \begin_layout Description
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 AllowsSideways
16003 \end_layout
16004
16005 \end_inset
16006
16007  [
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 0
16013 \end_layout
16014
16015 \end_inset
16016
16017 ,
16018 \begin_inset space \thinspace{}
16019 \end_inset
16020
16021
16022 \emph on
16023
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028 1
16029 \end_layout
16030
16031 \end_inset
16032
16033
16034 \emph default
16035 ] フロートを,
16036 \SpecialChar LaTeX
16037 パッケージの
16038 \family typewriter
16039 rotfloat
16040 \family default
16041  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
16042
16043 \begin_inset Flex Code
16044 status collapsed
16045
16046 \begin_layout Plain Layout
16047 0
16048 \end_layout
16049
16050 \end_inset
16051
16052 を指定してください.
16053 \end_layout
16054
16055 \begin_layout Description
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 AllowsWide
16061 \end_layout
16062
16063 \end_inset
16064
16065  [
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 0
16071 \end_layout
16072
16073 \end_inset
16074
16075 ,
16076 \begin_inset space \thinspace{}
16077 \end_inset
16078
16079
16080 \emph on
16081
16082 \begin_inset Flex Code
16083 status collapsed
16084
16085 \begin_layout Plain Layout
16086 1
16087 \end_layout
16088
16089 \end_inset
16090
16091
16092 \emph default
16093 ] このフロートに,
16094 二段組段落において段落をまたぐ,
16095 星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
16096
16097 \begin_inset Flex Code
16098 status collapsed
16099
16100 \begin_layout Plain Layout
16101 0
16102 \end_layout
16103
16104 \end_inset
16105
16106 を指定してください.
16107 \end_layout
16108
16109 \begin_layout Description
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 Extension
16115 \end_layout
16116
16117 \end_inset
16118
16119  [
16120 \begin_inset Flex Code
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 文字列
16125 \end_layout
16126
16127 \end_inset
16128
16129 =
16130 \begin_inset Quotes erd
16131 \end_inset
16132
16133
16134 \begin_inset Quotes erd
16135 \end_inset
16136
16137 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
16138 がキャプションを書き込むファイルです.
16139 \end_layout
16140
16141 \begin_layout Description
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 GuiName
16147 \end_layout
16148
16149 \end_inset
16150
16151  [
16152 \begin_inset Flex Code
16153 status collapsed
16154
16155 \begin_layout Plain Layout
16156 文字列
16157 \end_layout
16158
16159 \end_inset
16160
16161 =
16162 \begin_inset Quotes erd
16163 \end_inset
16164
16165
16166 \begin_inset Quotes erd
16167 \end_inset
16168
16169 ] メニューとキャプションに使用される文字列.babelが使用される場合には,
16170 これは現在の言語に翻訳されます.
16171 \end_layout
16172
16173 \begin_layout Description
16174 \begin_inset Flex Code
16175 status collapsed
16176
16177 \begin_layout Plain Layout
16178 HTML*
16179 \end_layout
16180
16181 \end_inset
16182
16183  これらは,
16184 XHTML出力で使用されます.
16185 \begin_inset CommandInset ref
16186 LatexCommand ref
16187 reference "sec:XHTML出力のタグ"
16188 nolink "false"
16189
16190 \end_inset
16191
16192 をご覧ください.
16193 \end_layout
16194
16195 \begin_layout Description
16196 \begin_inset Flex Code
16197 status collapsed
16198
16199 \begin_layout Plain Layout
16200 IsPredefined
16201 \end_layout
16202
16203 \end_inset
16204
16205  [
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210
16211 \emph on
16212 0
16213 \end_layout
16214
16215 \end_inset
16216
16217 ,
16218 \begin_inset space \thinspace{}
16219 \end_inset
16220
16221
16222 \begin_inset Flex Code
16223 status collapsed
16224
16225 \begin_layout Plain Layout
16226 1
16227 \end_layout
16228
16229 \end_inset
16230
16231 ] フロートがドキュメントクラス中に既に定義されているのか,
16232 あるいは\SpecialChar LaTeX
16233 パッケージ
16234 \begin_inset Flex Code
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 float
16239 \end_layout
16240
16241 \end_inset
16242
16243 を読み込む必要があり,
16244 そのファイル内のものを使用して,
16245 オン・ザ・フライで定義するかを示します.既定は
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 0
16251 \end_layout
16252
16253 \end_inset
16254
16255 で,
16256 この場合
16257 \begin_inset Flex Code
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 float
16262 \end_layout
16263
16264 \end_inset
16265
16266 を使用します.\SpecialChar LaTeX
16267 ドキュメントクラス中に既に定義されているときには,
16268
16269 \begin_inset Flex Code
16270 status collapsed
16271
16272 \begin_layout Plain Layout
16273 0
16274 \end_layout
16275
16276 \end_inset
16277
16278 に設定しなくてはなりません.
16279 \end_layout
16280
16281 \begin_layout Description
16282 \begin_inset Flex Code
16283 status collapsed
16284
16285 \begin_layout Plain Layout
16286 ListCommand
16287 \end_layout
16288
16289 \end_inset
16290
16291  [
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 文字列
16297 \end_layout
16298
16299 \end_inset
16300
16301 =
16302 \begin_inset Quotes erd
16303 \end_inset
16304
16305
16306 \begin_inset Quotes erd
16307 \end_inset
16308
16309 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
16310 \backslash
16311 」は書きません.
16312 \begin_inset Flex Code
16313 status collapsed
16314
16315 \begin_layout Plain Layout
16316 NeedsFloatPkg
16317 \end_layout
16318
16319 \end_inset
16320
16321 が偽の時には,
16322 このコマンドを生成する標準的な方法はないので,
16323 これは
16324 \emph on
16325 必ず
16326 \emph default
16327 指定しなくてはなりません.
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 NeedsFloatPkg
16333 \end_layout
16334
16335 \end_inset
16336
16337 が真の時は,
16338 標準的な方法が存在するので,
16339 これは無視されます.
16340 \end_layout
16341
16342 \begin_layout Description
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 ListName
16348 \end_layout
16349
16350 \end_inset
16351
16352  [
16353 \begin_inset Flex Code
16354 status collapsed
16355
16356 \begin_layout Plain Layout
16357 文字列
16358 \end_layout
16359
16360 \end_inset
16361
16362 =
16363 \begin_inset Quotes erd
16364 \end_inset
16365
16366
16367 \begin_inset Quotes erd
16368 \end_inset
16369
16370 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
16371 中では,
16372 これは画面上のラベルとして使用されます.また,
16373 見出しとして使用するために,
16374 La\SpecialChar TeX
16375 に渡され,
16376 XHTML出力でも見出しとして使用されます.これは,
16377 文書言語に翻訳されます.
16378 \end_layout
16379
16380 \begin_layout Description
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 NumberWithin
16386 \end_layout
16387
16388 \end_inset
16389
16390  [
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395 文字列
16396 \end_layout
16397
16398 \end_inset
16399
16400 =
16401 \begin_inset Quotes erd
16402 \end_inset
16403
16404
16405 \begin_inset Quotes erd
16406 \end_inset
16407
16408 ] この(非必須の)引数は,
16409 このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
16410
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 NumberWithin
16416 \end_layout
16417
16418 \end_inset
16419
16420 が「
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 chapter
16426 \end_layout
16427
16428 \end_inset
16429
16430 」に指定されていれば,
16431 フロートは章ごとに番号が振り直されます.
16432 \end_layout
16433
16434 \begin_layout Description
16435 \begin_inset Flex Code
16436 status collapsed
16437
16438 \begin_layout Plain Layout
16439 Placement
16440 \end_layout
16441
16442 \end_inset
16443
16444  [
16445 \begin_inset Flex Code
16446 status collapsed
16447
16448 \begin_layout Plain Layout
16449 文字列
16450 \end_layout
16451
16452 \end_inset
16453
16454 =
16455 \begin_inset Quotes erd
16456 \end_inset
16457
16458
16459 \begin_inset Quotes erd
16460 \end_inset
16461
16462 ] このクラスのフロートの既定の配置法.文字列は,
16463 標準的な\SpecialChar LaTeX
16464 表記に従い,
16465
16466 \begin_inset Flex Code
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470 t
16471 \end_layout
16472
16473 \end_inset
16474
16475 ならば上部(top),
16476
16477 \begin_inset Flex Code
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481 b
16482 \end_layout
16483
16484 \end_inset
16485
16486 ならば下部(bottom),
16487
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 p
16493 \end_layout
16494
16495 \end_inset
16496
16497 ならばページ(page),
16498
16499 \begin_inset Flex Code
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503 h
16504 \end_layout
16505
16506 \end_inset
16507
16508 ならばここ(here)を表します
16509 \begin_inset Foot
16510 status collapsed
16511
16512 \begin_layout Plain Layout
16513 \SpecialChar LaTeX
16514 同様,
16515 文字列中でのこれらの文字の順序は関係ありません.
16516 \end_layout
16517
16518 \end_inset
16519
16520 .これらの他に新しい型
16521 \begin_inset Flex Code
16522 status collapsed
16523
16524 \begin_layout Plain Layout
16525 H
16526 \end_layout
16527
16528 \end_inset
16529
16530 があり,
16531 これはフロートを「ここ」に置いていいけれども他の場所はだめ,
16532 というものなので,
16533 本当はフロートにあるものではありません.しかし,
16534
16535 \begin_inset Flex Code
16536 status collapsed
16537
16538 \begin_layout Plain Layout
16539 H
16540 \end_layout
16541
16542 \end_inset
16543
16544 指定子は特別なものであり,
16545 その細かい実装上の理由で,
16546 組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,
16547 代わりに「
16548 \begin_inset Flex Code
16549 status collapsed
16550
16551 \begin_layout Plain Layout
16552 tbp
16553 \end_layout
16554
16555 \end_inset
16556
16557 」を指定してください.
16558 \end_layout
16559
16560 \begin_layout Description
16561 \begin_inset Flex Code
16562 status collapsed
16563
16564 \begin_layout Plain Layout
16565 PrettyFormat
16566 \end_layout
16567
16568 \end_inset
16569
16570  [
16571 \begin_inset Flex Code
16572 status collapsed
16573
16574 \begin_layout Plain Layout
16575 文字列
16576 \end_layout
16577
16578 \end_inset
16579
16580 =
16581 \begin_inset Quotes erd
16582 \end_inset
16583
16584
16585 \begin_inset Quotes erd
16586 \end_inset
16587
16588 ] このカウンタへの書式付き参照に使われる書式.たとえば,
16589 表への参照を「表2」のように表示させたいとしましょう.この文字列には,
16590 「##」やカウンタ指定を入れることができます(
16591 \begin_inset CommandInset ref
16592 LatexCommand formatted
16593 reference "subsec:カウンタ"
16594 plural "false"
16595 caps "false"
16596 noprefix "false"
16597 nolink "false"
16598
16599 \end_inset
16600
16601
16602 \begin_inset Flex Code
16603 status open
16604
16605 \begin_layout Plain Layout
16606 LabelString
16607 \end_layout
16608
16609 \end_inset
16610
16611 の説明を参照).前者はカウンタ番号そのもので置換されます.したがって,
16612 節の場合には「第##節」のように指定するか,
16613 「第
16614 \backslash
16615 arabic{section}節」のように指定します(これは第2.7節のように翻訳されます).
16616 \end_layout
16617
16618 \begin_layout Description
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 RefPrefix
16624 \end_layout
16625
16626 \end_inset
16627
16628  [
16629 \begin_inset Flex Code
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 文字列
16634 \end_layout
16635
16636 \end_inset
16637
16638 ] この型のフロートを参照する際,
16639 生成されるラベルに使用する前置句.これによって,
16640 整形参照を使用することができるようになります.コピーした様式が設定した
16641 \begin_inset Flex Code
16642 status collapsed
16643
16644 \begin_layout Plain Layout
16645 RefPrefix
16646 \end_layout
16647
16648 \end_inset
16649
16650 は,
16651 特別な文字列「OFF」(すべて大文字)を使えば,
16652 いつでも削除することができます.
16653 \end_layout
16654
16655 \begin_layout Description
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660 Requires
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 CommandInset ref
16677 LatexCommand ref
16678 reference "subsec:段落様式"
16679 plural "false"
16680 caps "false"
16681 noprefix "false"
16682 nolink "false"
16683
16684 \end_inset
16685
16686 節を参照.
16687 \end_layout
16688
16689 \begin_layout Description
16690 \begin_inset Flex Code
16691 status collapsed
16692
16693 \begin_layout Plain Layout
16694 Style
16695 \end_layout
16696
16697 \end_inset
16698
16699  [
16700 \begin_inset Flex Code
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 文字列
16705 \end_layout
16706
16707 \end_inset
16708
16709 =
16710 \begin_inset Quotes erd
16711 \end_inset
16712
16713
16714 \begin_inset Quotes erd
16715 \end_inset
16716
16717
16718 \begin_inset Flex Code
16719 status collapsed
16720
16721 \begin_layout Plain Layout
16722
16723 \backslash
16724 newfloat
16725 \end_layout
16726
16727 \end_inset
16728
16729 を使用してフロートを定義する際に使用される様式.
16730 \end_layout
16731
16732 \begin_layout Description
16733 \begin_inset Flex Code
16734 status collapsed
16735
16736 \begin_layout Plain Layout
16737 Type
16738 \end_layout
16739
16740 \end_inset
16741
16742  [
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747 文字列
16748 \end_layout
16749
16750 \end_inset
16751
16752 =
16753 \begin_inset Quotes erd
16754 \end_inset
16755
16756
16757 \begin_inset Quotes erd
16758 \end_inset
16759
16760 ] プログラムやアルゴリズムのような,
16761 フロートの新しいクラス「型」.適切な
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766
16767 \backslash
16768 newfloat
16769 \end_layout
16770
16771 \end_inset
16772
16773 の後で,
16774
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779
16780 \backslash
16781 begin{program}
16782 \end_layout
16783
16784 \end_inset
16785
16786
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791
16792 \backslash
16793 end{algorithm*}
16794 \end_layout
16795
16796 \end_inset
16797
16798 といったコマンドが利用できます.
16799 \end_layout
16800
16801 \begin_layout Description
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 UsesFloatPkg
16807 \end_layout
16808
16809 \end_inset
16810
16811  [
16812 \begin_inset Flex Code
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 0
16817 \end_layout
16818
16819 \end_inset
16820
16821 ,
16822 \begin_inset space \thinspace{}
16823 \end_inset
16824
16825
16826 \begin_inset Flex Code
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830
16831 \emph on
16832 1
16833 \end_layout
16834
16835 \end_inset
16836
16837 ] このフロートが,
16838 クラスファイルやパッケージ中で,
16839 \SpecialChar LaTeX
16840 パッケージ
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 float
16846 \end_layout
16847
16848 \end_inset
16849
16850 が提供しているものを使用して定義されているのか,
16851 \SpecialChar LyX
16852 自身がオン・ザ・フライで定義しているのかを示します.
16853 \end_layout
16854
16855 \begin_layout Standard
16856 \begin_inset Flex Code
16857 status collapsed
16858
16859 \begin_layout Plain Layout
16860
16861 \emph on
16862 type
16863 \end_layout
16864
16865 \end_inset
16866
16867 型のフロートを定義すると,
16868 自動的に
16869 \emph on
16870 対応する
16871 \emph default
16872
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877
16878 \emph on
16879 type
16880 \end_layout
16881
16882 \end_inset
16883
16884 名カウンタが定義されます.
16885 \end_layout
16886
16887 \begin_layout Subsection
16888 自由差込枠と差込枠レイアウト
16889 \begin_inset CommandInset label
16890 LatexCommand label
16891 name "subsec:任意設定差込枠"
16892
16893 \end_inset
16894
16895
16896 \end_layout
16897
16898 \begin_layout Standard
16899 自由差込枠には次の2種類があります.
16900 \end_layout
16901
16902 \begin_layout Itemize
16903 文字様式(
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 CharStyle
16909 \end_layout
16910
16911 \end_inset
16912
16913 ).これは,
16914
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919
16920 \backslash
16921 noun
16922 \end_layout
16923
16924 \end_inset
16925
16926
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931
16932 \backslash
16933 code
16934 \end_layout
16935
16936 \end_inset
16937
16938 などの\SpecialChar LaTeX
16939 コマンドに対応した意味論的マークアップを定義するものです.
16940 \end_layout
16941
16942 \begin_layout Itemize
16943 ユーザ設定(
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 Custom
16949 \end_layout
16950
16951 \end_inset
16952
16953 ).これは,
16954 \SpecialChar TeX
16955 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,
16956 これは
16957 \begin_inset Flex Code
16958 status collapsed
16959
16960 \begin_layout Plain Layout
16961 endnote
16962 \end_layout
16963
16964 \end_inset
16965
16966 モジュール中で定義されています.
16967 \end_layout
16968
16969 \begin_layout Standard
16970 自由差込枠は,
16971 以下で説明する
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 InsetLayout
16977 \end_layout
16978
16979 \end_inset
16980
16981 タグを使用して定義されます.
16982 \end_layout
16983
16984 \begin_layout Standard
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 InsetLayout
16990 \end_layout
16991
16992 \end_inset
16993
16994 タグは,
16995 もう一つ別の機能も提供します.これを使えば,
16996 いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
16997
16998 \begin_inset Flex Code
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 InsetLayout
17003 \end_layout
17004
17005 \end_inset
17006
17007 は自由差込枠を定義することの他に,
17008 脚註・傍註・註釈差込枠・\SpecialChar TeX
17009 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザー定義するのに使用されます.
17010 \end_layout
17011
17012 \begin_layout Standard
17013 \begin_inset Flex Code
17014 status collapsed
17015
17016 \begin_layout Plain Layout
17017 InsetLayout
17018 \end_layout
17019
17020 \end_inset
17021
17022 定義は以下の形の行では始まらなくてはなりません.
17023 \end_layout
17024
17025 \begin_layout LyX-Code
17026 InsetLayout <型>
17027 \end_layout
17028
17029 \begin_layout Standard
17030 ここで
17031 \begin_inset Flex Code
17032 status collapsed
17033
17034 \begin_layout Plain Layout
17035 <型>
17036 \end_layout
17037
17038 \end_inset
17039
17040 は,
17041 レイアウトを定義しようとしている差込枠を指し,
17042 4つの場合があります.
17043 \end_layout
17044
17045 \begin_layout Enumerate
17046 既存の差込枠のレイアウトを変更する場合.この場合,
17047
17048 \begin_inset Flex Code
17049 status collapsed
17050
17051 \begin_layout Plain Layout
17052 <型>
17053 \end_layout
17054
17055 \end_inset
17056
17057 は以下のいずれかになります:
17058
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063 Algorithm
17064 \end_layout
17065
17066 \end_inset
17067
17068
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 Branch
17074 \end_layout
17075
17076 \end_inset
17077
17078
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 Box
17084 \end_layout
17085
17086 \end_inset
17087
17088
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 Box:shaded
17094 \end_layout
17095
17096 \end_inset
17097
17098
17099 \begin_inset Flex Code
17100 status collapsed
17101
17102 \begin_layout Plain Layout
17103 Caption:Standard
17104 \end_layout
17105
17106 \end_inset
17107
17108
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 ERT
17114 \end_layout
17115
17116 \end_inset
17117
17118
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 Figure
17124 \end_layout
17125
17126 \end_inset
17127
17128
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 Foot
17134 \end_layout
17135
17136 \end_inset
17137
17138
17139 \begin_inset Flex Code
17140 status collapsed
17141
17142 \begin_layout Plain Layout
17143 Index
17144 \end_layout
17145
17146 \end_inset
17147
17148
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 Info
17154 \end_layout
17155
17156 \end_inset
17157
17158
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 Info:menu
17164 \end_layout
17165
17166 \end_inset
17167
17168
17169 \begin_inset Flex Code
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173 Info:shortcut
17174 \end_layout
17175
17176 \end_inset
17177
17178
17179 \begin_inset Flex Code
17180 status collapsed
17181
17182 \begin_layout Plain Layout
17183 Info:shortcuts
17184 \end_layout
17185
17186 \end_inset
17187
17188
17189 \begin_inset Flex Code
17190 status collapsed
17191
17192 \begin_layout Plain Layout
17193 Listings
17194 \end_layout
17195
17196 \end_inset
17197
17198
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203 Marginal
17204 \end_layout
17205
17206 \end_inset
17207
17208
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213 Note:Comment
17214 \end_layout
17215
17216 \end_inset
17217
17218
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223 Note:Note
17224 \end_layout
17225
17226 \end_inset
17227
17228
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 Note:GreyedOut
17234 \end_layout
17235
17236 \end_inset
17237
17238
17239 \begin_inset Flex Code
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243 Table
17244 \end_layout
17245
17246 \end_inset
17247
17248
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253 URL
17254 \end_layout
17255
17256 \end_inset
17257
17258
17259 \end_layout
17260
17261 \begin_layout Enumerate
17262 自由差込枠のレイアウトを定義する場合.この場合,
17263
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268 <型>
17269 \end_layout
17270
17271 \end_inset
17272
17273
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 Flex:<名称>
17279 \end_layout
17280
17281 \end_inset
17282
17283 の形でなくてはなりません.ここで,
17284
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 名称
17290 \end_layout
17291
17292 \end_inset
17293
17294 は,
17295 既存の自由差込枠で使用されていない有効な識別子であれば,
17296 何でも構いません.識別子には空白を入れることもできますが,
17297 この場合には全体を引用符で囲まなくてはなりません.自由差込枠の定義には,
17298 この定義がどの差込枠型なのか宣言するために,
17299
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 LyXType
17305 \end_layout
17306
17307 \end_inset
17308
17309 項目が含まれていなくてはならないことに注意してください.
17310 \end_layout
17311
17312 \begin_layout Enumerate
17313 ユーザー定義派生枝を定義する場合.この場合,
17314
17315 \begin_inset Flex Code
17316 status collapsed
17317
17318 \begin_layout Plain Layout
17319 <型>
17320 \end_layout
17321
17322 \end_inset
17323
17324 は「
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 Branch:<名称>
17330 \end_layout
17331
17332 \end_inset
17333
17334 」の形でなくてはなりません.ここで,
17335
17336 \begin_inset Flex Code
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340 名称
17341 \end_layout
17342
17343 \end_inset
17344
17345 は,
17346 ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,
17347 その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主な目的は,
17348 ユーザーの必要に応じて,
17349 特定の派生枝を\SpecialChar LaTeX
17350 がくるむことができるようにすることです.
17351 \end_layout
17352
17353 \begin_layout Enumerate
17354 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
17355
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 <型>
17361 \end_layout
17362
17363 \end_inset
17364
17365 は「
17366 \begin_inset Flex Code
17367 status collapsed
17368
17369 \begin_layout Plain Layout
17370 Caption:<名称>
17371 \end_layout
17372
17373 \end_inset
17374
17375 」の形でなくてはなりません.ここで,
17376
17377 \begin_inset Flex Code
17378 status collapsed
17379
17380 \begin_layout Plain Layout
17381 名称
17382 \end_layout
17383
17384 \end_inset
17385
17386 は,
17387 メニューに表示されるキャプション名です.応用例については,
17388 標準キャプション(
17389 \begin_inset Flex Code
17390 status collapsed
17391
17392 \begin_layout Plain Layout
17393 Caption:Standard
17394 \end_layout
17395
17396 \end_inset
17397
17398 ),
17399 若しくはKOMA-Scriptクラスのクラス定義キャプション(
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 Caption:Above
17405 \end_layout
17406
17407 \end_inset
17408
17409 ,
17410  
17411 \begin_inset Flex Code
17412 status collapsed
17413
17414 \begin_layout Plain Layout
17415 Caption:Below
17416 \end_layout
17417
17418 \end_inset
17419
17420 ),
17421
17422 \family sans
17423 多言語キャプション
17424 \family default
17425 モジュール(
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 Caption:\SpecialChar allowbreak
17431 Bicaption
17432 \end_layout
17433
17434 \end_inset
17435
17436 )をご覧ください.
17437 \end_layout
17438
17439 \begin_layout Standard
17440 \begin_inset Flex Code
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 InsetLayout
17445 \end_layout
17446
17447 \end_inset
17448
17449 定義には以下の項目を入れることができます.
17450 \end_layout
17451
17452 \begin_layout Description
17453 \begin_inset Flex Code
17454 status collapsed
17455
17456 \begin_layout Plain Layout
17457 AddToToc
17458 \end_layout
17459
17460 \end_inset
17461
17462  [
17463 \begin_inset Flex Code
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467 文字列
17468 \end_layout
17469
17470 \end_inset
17471
17472 =""] この差込枠は,
17473 この型の一覧表に表示されます.空の文字列を入れると無効になります.OutlinerNameコマンドとIsTocCaptionコマンドも参照してください.これは,
17474 自由差込枠にのみ実装されています.既定値:
17475 無効.
17476 \end_layout
17477
17478 \begin_layout Description
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483 AllowedInInsets
17484 \end_layout
17485
17486 \end_inset
17487
17488  この差込枠を挿入することのできる差込枠を,
17489 コンマ区切りリストの形で入れます.「
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494 EndAllowedInInsets
17495 \end_layout
17496
17497 \end_inset
17498
17499 」で閉じる必要があります.挿入先差込枠の特定の引数に挿入を許可したい場合,
17500 引数名を@の後に付記してください(例:
17501
17502 \begin_inset Flex Code
17503 status collapsed
17504
17505 \begin_layout Plain Layout
17506 My_Inset@post:1
17507 \end_layout
17508
17509 \end_inset
17510
17511 ).現在のところ,
17512 これは直下の差込枠しかサポートしていないことに注意してください(入れ子となっているものは不可).
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 AllowedInLayouts
17518 \end_layout
17519
17520 \end_inset
17521
17522 も参照のこと.
17523 \end_layout
17524
17525 \begin_layout Description
17526 \begin_inset Flex Code
17527 status collapsed
17528
17529 \begin_layout Plain Layout
17530 AllowedInLayouts
17531 \end_layout
17532
17533 \end_inset
17534
17535  この差込枠を挿入することのできるレイアウトを,
17536 コンマ区切りリストの形で入れます.「
17537 \begin_inset Flex Code
17538 status collapsed
17539
17540 \begin_layout Plain Layout
17541 EndAllowedInLayouts
17542 \end_layout
17543
17544 \end_inset
17545
17546 」で閉じる必要があります.挿入先差込枠の特定の引数に挿入を許可したい場合,
17547 引数名を@の後に付記してください(例:
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 My_Inset@post:1
17554 \end_layout
17555
17556 \end_inset
17557
17558 ).現在のところ,
17559 これは直下のレイアウトしかサポートしていないことに注意してください(入れ子となっているものは不可).
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 AllowedInInsets
17565 \end_layout
17566
17567 \end_inset
17568
17569 も参照のこと.
17570 \end_layout
17571
17572 \begin_layout Description
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 AllowedOccurrences
17578 \end_layout
17579
17580 \end_inset
17581
17582  [
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 整数
17588 \end_layout
17589
17590 \end_inset
17591
17592
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 AllowedInInsets
17598 \end_layout
17599
17600 \end_inset
17601
17602 または
17603 \begin_inset Flex Code
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607 AllowedInLayouts
17608 \end_layout
17609
17610 \end_inset
17611
17612 が定義されているときに,
17613 これを使用すると,
17614 特定の差込枠や段落(グループ)にこの差込枠を何回挿入することができるかを指定することができます.
17615 \end_layout
17616
17617 \begin_layout Description
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 AllowedOccurrencesPerItem
17623 \end_layout
17624
17625 \end_inset
17626
17627  [
17628 \begin_inset Flex Code
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632 0
17633 \end_layout
17634
17635 \end_inset
17636
17637 ,
17638 \begin_inset space \thinspace{}
17639 \end_inset
17640
17641
17642 \begin_inset Flex Code
17643 status collapsed
17644
17645 \begin_layout Plain Layout
17646 1
17647 \end_layout
17648
17649 \end_inset
17650
17651 ] これが真に設定されていると,
17652
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657
17658 \backslash
17659 item
17660 \end_layout
17661
17662 \end_inset
17663
17664 を用いる)箇条書き型環境の中にいるとき,
17665
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670 AllowedOccurrences
17671 \end_layout
17672
17673 \end_inset
17674
17675 は単一段落ごとに適用されます.
17676 \end_layout
17677
17678 \begin_layout Description
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 Argument
17684 \end_layout
17685
17686 \end_inset
17687
17688  [
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693 整数
17694 \end_layout
17695
17696 \end_inset
17697
17698 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
17699 \begin_inset Flex Code
17700 status collapsed
17701
17702 \begin_layout Plain Layout
17703 EndArgument
17704 \end_layout
17705
17706 \end_inset
17707
17708 で閉じなくてはなりません.詳細は第
17709 \begin_inset CommandInset ref
17710 LatexCommand ref
17711 reference "subsec:引数"
17712 plural "false"
17713 caps "false"
17714 noprefix "false"
17715 nolink "false"
17716
17717 \end_inset
17718
17719 節参照.
17720 \end_layout
17721
17722 \begin_layout Description
17723 \begin_inset Flex Code
17724 status collapsed
17725
17726 \begin_layout Plain Layout
17727 BabelPreamble
17728 \end_layout
17729
17730 \end_inset
17731
17732  言語コマンドを変更するプリアンブル.第
17733 \begin_inset CommandInset ref
17734 LatexCommand ref
17735 reference "subsec:段落様式の国際化"
17736 nolink "false"
17737
17738 \end_inset
17739
17740 節参照.
17741 \end_layout
17742
17743 \begin_layout Description
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748 BgColor
17749 \end_layout
17750
17751 \end_inset
17752
17753  [
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 <名称>
17759 \end_layout
17760
17761 \end_inset
17762
17763 ] 差込枠の背景色.使用できる色名一覧は第
17764 \begin_inset CommandInset ref
17765 LatexCommand ref
17766 reference "chap:色名"
17767 nolink "false"
17768
17769 \end_inset
17770
17771 節参照.
17772 \end_layout
17773
17774 \begin_layout Description
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 ContentAsLabel
17780 \end_layout
17781
17782 \end_inset
17783
17784  [
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789
17790 \emph on
17791 0
17792 \end_layout
17793
17794 \end_inset
17795
17796 ,
17797 \begin_inset space \thinspace{}
17798 \end_inset
17799
17800
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 1
17806 \end_layout
17807
17808 \end_inset
17809
17810 ] 差込枠を閉じた際,
17811 差込枠の内容をラベルとして使用するか否か.既定値は偽です.
17812 \end_layout
17813
17814 \begin_layout Description
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 CopyStyle
17820 \end_layout
17821
17822 \end_inset
17823
17824  [<型>] 段落様式と同様です.第
17825 \begin_inset CommandInset ref
17826 LatexCommand ref
17827 reference "subsec:段落様式"
17828 nolink "false"
17829
17830 \end_inset
17831
17832 節参照のこと.完全な型を指定する必要があることに注意してください.例:
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 CopyStyle Flex:<名称>
17838 \end_layout
17839
17840 \end_inset
17841
17842
17843 \end_layout
17844
17845 \begin_layout Description
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 CustomPars
17851 \end_layout
17852
17853 \end_inset
17854
17855  [
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860
17861 \emph on
17862 0
17863 \end_layout
17864
17865 \end_inset
17866
17867 ,
17868 \begin_inset space \thinspace{}
17869 \end_inset
17870
17871
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 1
17877 \end_layout
17878
17879 \end_inset
17880
17881 ] 段落を設定するのに,
17882 段落設定ダイアログをユーザが使えるかどうかを指定します.
17883 \end_layout
17884
17885 \begin_layout Description
17886 \begin_inset Flex Code
17887 status collapsed
17888
17889 \begin_layout Plain Layout
17890 Decoration
17891 \end_layout
17892
17893 \end_inset
17894
17895  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
17896
17897 \begin_inset Flex Code
17898 status collapsed
17899
17900 \begin_layout Plain Layout
17901 Classic
17902 \end_layout
17903
17904 \end_inset
17905
17906
17907 \begin_inset Flex Code
17908 status collapsed
17909
17910 \begin_layout Plain Layout
17911 Minimalistic
17912 \end_layout
17913
17914 \end_inset
17915
17916
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921 Conglomerate
17922 \end_layout
17923
17924 \end_inset
17925
17926 のいずれかを指定することができます.脚註は通常
17927 \begin_inset Flex Code
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931 Classic
17932 \end_layout
17933
17934 \end_inset
17935
17936 を使用し,
17937 \SpecialChar TeX
17938 コード差込枠は通常
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 Minimalistic
17944 \end_layout
17945
17946 \end_inset
17947
17948
17949 文字様式は
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 Conglomerate
17955 \end_layout
17956
17957 \end_inset
17958
17959 を使用します.
17960 \end_layout
17961
17962 \begin_layout Description
17963 \begin_inset Flex Code
17964 status collapsed
17965
17966 \begin_layout Plain Layout
17967 Display
17968 \end_layout
17969
17970 \end_inset
17971
17972  [
17973 \begin_inset Flex Code
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977 0
17978 \end_layout
17979
17980 \end_inset
17981
17982 ,
17983 \begin_inset space \thinspace{}
17984 \end_inset
17985
17986
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991
17992 \emph on
17993 1
17994 \end_layout
17995
17996 \end_inset
17997
17998
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003 LatexType
18004 \end_layout
18005
18006 \end_inset
18007
18008
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 Environment
18014 \end_layout
18015
18016 \end_inset
18017
18018 の時のみ意味をもちます.環境を,
18019 出力中で独立して出力させるか,
18020 周囲のテキストとインラインで出力させるかを示します.偽にすると,
18021 \SpecialChar LaTeX
18022 環境は,
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028
18029 \backslash
18030 begin{LatexName}
18031 \end_layout
18032
18033 \end_inset
18034
18035 タグと
18036 \begin_inset Flex Code
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040
18041 \backslash
18042 end{LatexName}
18043 \end_layout
18044
18045 \end_inset
18046
18047 タグの後の空白(改行文字を含む)を無視するものと仮定します.
18048 \end_layout
18049
18050 \begin_layout Description
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055 EditExternal
18056 \end_layout
18057
18058 \end_inset
18059
18060  [
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065
18066 \emph on
18067 0
18068 \end_layout
18069
18070 \end_inset
18071
18072 ,
18073 \begin_inset space \thinspace{}
18074 \end_inset
18075
18076
18077 \begin_inset Flex Code
18078 status collapsed
18079
18080 \begin_layout Plain Layout
18081 1
18082 \end_layout
18083
18084 \end_inset
18085
18086 ] 差込枠の内容を外部で編集できるか否か(文書の出力形式に定義されている編集ソフトウェアを使用).
18087 \end_layout
18088
18089 \begin_layout Description
18090 \begin_inset Flex Code
18091 status collapsed
18092
18093 \begin_layout Plain Layout
18094 End
18095 \end_layout
18096
18097 \end_inset
18098
18099  
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104 InsetLayout
18105 \end_layout
18106
18107 \end_inset
18108
18109 宣言を閉じるのに必要です.
18110 \end_layout
18111
18112 \begin_layout Description
18113 \begin_inset Flex Code
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 Font
18118 \end_layout
18119
18120 \end_inset
18121
18122  本文本体とラベル
18123 \emph on
18124 両方に
18125 \emph default
18126 使用されるフォントです.第
18127 \begin_inset CommandInset ref
18128 LatexCommand ref
18129 reference "subsec:フォント指定"
18130 nolink "false"
18131
18132 \end_inset
18133
18134 節を参照.このフォントを定義すると自動的に
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 LabelFont
18140 \end_layout
18141
18142 \end_inset
18143
18144 も同じ値に定義されるので,
18145 これらを別々の値にしたいときは,
18146 これを先に定義してから後に
18147 \begin_inset Flex Code
18148 status collapsed
18149
18150 \begin_layout Plain Layout
18151 LabelFont
18152 \end_layout
18153
18154 \end_inset
18155
18156 を定義しなくてはならないことに注意してください.
18157 \end_layout
18158
18159 \begin_layout Description
18160 \begin_inset Flex Code
18161 status collapsed
18162
18163 \begin_layout Plain Layout
18164 FixedWidthPreambleEncoding
18165 \end_layout
18166
18167 \end_inset
18168
18169  [
18170 \begin_inset Flex Code
18171 status collapsed
18172
18173 \begin_layout Plain Layout
18174
18175 \emph on
18176 0
18177 \end_layout
18178
18179 \end_inset
18180
18181 ,
18182 \begin_inset space \thinspace{}
18183 \end_inset
18184
18185
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 1
18191 \end_layout
18192
18193 \end_inset
18194
18195 ] このレイアウトによって生成される
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 BabelPreamble
18201 \end_layout
18202
18203 \end_inset
18204
18205 および
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 LangPreamble
18211 \end_layout
18212
18213 \end_inset
18214
18215 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
18216
18217 \family typewriter
18218 listings
18219 \family default
18220 のように,
18221
18222 \family sans
18223 utf8
18224 \family default
18225 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
18226 パッケージのために必要です.この設定は,
18227 Xe\SpecialChar TeX
18228 やLua\SpecialChar TeX
18229 のようなUnicodeを完全に解する\SpecialChar LaTeX
18230 バックエンドを使用している場合には,
18231 無視されます.
18232 \end_layout
18233
18234 \begin_layout Description
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 ForceLocalFontSwitch
18240 \end_layout
18241
18242 \end_inset
18243
18244  [
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249
18250 \emph on
18251 0
18252 \end_layout
18253
18254 \end_inset
18255
18256 ,
18257 \begin_inset space \thinspace{}
18258 \end_inset
18259
18260
18261 \begin_inset Flex Code
18262 status collapsed
18263
18264 \begin_layout Plain Layout
18265 1
18266 \end_layout
18267
18268 \end_inset
18269
18270 ] babel使用時に,
18271 常にローカルフォント切替(
18272 \begin_inset Flex Code
18273 status collapsed
18274
18275 \begin_layout Plain Layout
18276
18277 \backslash
18278 foreignlanguage
18279 \end_layout
18280
18281 \end_inset
18282
18283 )を使い,
18284 グローバル切替(
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289
18290 \backslash
18291 selectlanguage
18292 \end_layout
18293
18294 \end_inset
18295
18296 など)は使わない.
18297 \end_layout
18298
18299 \begin_layout Description
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 ForceLTR
18305 \end_layout
18306
18307 \end_inset
18308
18309  [
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314
18315 \emph on
18316 0
18317 \end_layout
18318
18319 \end_inset
18320
18321 ,
18322 \begin_inset space \thinspace{}
18323 \end_inset
18324
18325
18326 \begin_inset Flex Code
18327 status collapsed
18328
18329 \begin_layout Plain Layout
18330 1
18331 \end_layout
18332
18333 \end_inset
18334
18335 ] たとえば\SpecialChar TeX
18336 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
18337 \end_layout
18338
18339 \begin_layout Description
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 ForceOwnlines
18345 \end_layout
18346
18347 \end_inset
18348
18349  [
18350 \begin_inset Flex Code
18351 status collapsed
18352
18353 \begin_layout Plain Layout
18354
18355 \emph on
18356 0
18357 \end_layout
18358
18359 \end_inset
18360
18361 ,
18362 \begin_inset space \thinspace{}
18363 \end_inset
18364
18365
18366 \begin_inset Flex Code
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370 1
18371 \end_layout
18372
18373 \end_inset
18374
18375 ] \SpecialChar LaTeX
18376 出力において,
18377 この差込枠が開始する前と終了する後に,
18378 改行を強制します.これは,
18379 解析上の目的のために,
18380 差込枠が単独行に出力されるように保証します.
18381 \end_layout
18382
18383 \begin_layout Description
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388 ForcePlain
18389 \end_layout
18390
18391 \end_inset
18392
18393  [
18394 \begin_inset Flex Code
18395 status collapsed
18396
18397 \begin_layout Plain Layout
18398
18399 \emph on
18400 0
18401 \end_layout
18402
18403 \end_inset
18404
18405 ,
18406 \begin_inset space \thinspace{}
18407 \end_inset
18408
18409
18410 \begin_inset Flex Code
18411 status collapsed
18412
18413 \begin_layout Plain Layout
18414 1
18415 \end_layout
18416
18417 \end_inset
18418
18419 ] PlainLayoutを使用するべきなのか,
18420 それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
18421 \end_layout
18422
18423 \begin_layout Description
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 FreeSpacing
18429 \end_layout
18430
18431 \end_inset
18432
18433  [
18434 \emph on
18435
18436 \begin_inset Flex Code
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 0
18441 \end_layout
18442
18443 \end_inset
18444
18445
18446 \emph default
18447 ,
18448 \begin_inset space \thinspace{}
18449 \end_inset
18450
18451
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 1
18457 \end_layout
18458
18459 \end_inset
18460
18461 ] 段落様式と同様.第
18462 \begin_inset CommandInset ref
18463 LatexCommand ref
18464 reference "subsec:段落様式"
18465 nolink "false"
18466
18467 \end_inset
18468
18469 節参照.
18470 \end_layout
18471
18472 \begin_layout Description
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477 HTML*
18478 \end_layout
18479
18480 \end_inset
18481
18482  これらは,
18483 XHTML出力で使用されます.第
18484 \begin_inset CommandInset ref
18485 LatexCommand ref
18486 reference "sec:XHTML出力のタグ"
18487 nolink "false"
18488
18489 \end_inset
18490
18491 節をご覧ください.
18492 \end_layout
18493
18494 \begin_layout Description
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 InheritFont
18500 \end_layout
18501
18502 \end_inset
18503
18504  [
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509
18510 \emph on
18511 0
18512 \end_layout
18513
18514 \end_inset
18515
18516 ,
18517 \begin_inset space \thinspace{}
18518 \end_inset
18519
18520
18521 \begin_inset Flex Code
18522 status collapsed
18523
18524 \begin_layout Plain Layout
18525 1
18526 \end_layout
18527
18528 \end_inset
18529
18530 ] このパラメータが1のとき,
18531 この差込枠内のフォントは,
18532 スクリーン上のみならず\SpecialChar LaTeX
18533 への書き出しにおいても親から継承されます.0のときには,
18534 文書の既定フォントが使用されます.
18535 \end_layout
18536
18537 \begin_layout Description
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542 InToc
18543 \end_layout
18544
18545 \end_inset
18546
18547  [
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552
18553 \emph on
18554 0
18555 \end_layout
18556
18557 \end_inset
18558
18559 ,
18560 \begin_inset space \thinspace{}
18561 \end_inset
18562
18563
18564 \begin_inset Flex Code
18565 status collapsed
18566
18567 \begin_layout Plain Layout
18568 1
18569 \end_layout
18570
18571 \end_inset
18572
18573 ] AddToTocの設定に関わらず,
18574 「文書構造」面用に出力される文字列に,
18575 この差込枠の内容を含めるかどうか.たとえば,
18576 節見出しの脚註の内容が,
18577 文書構造の目次に表示されることは望まないでしょうが,
18578 通常,
18579 文字様式の内容は表示されることを望むでしょう.既定値は偽,
18580 すなわち含めません.
18581 \end_layout
18582
18583 \begin_layout Description
18584 \begin_inset Flex Code
18585 status collapsed
18586
18587 \begin_layout Plain Layout
18588 IsTocCaption
18589 \end_layout
18590
18591 \end_inset
18592
18593  [
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598
18599 \emph on
18600 0
18601 \end_layout
18602
18603 \end_inset
18604
18605 ,
18606 \begin_inset space \thinspace{}
18607 \end_inset
18608
18609
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614 1
18615 \end_layout
18616
18617 \end_inset
18618
18619 ] AddToTocが有効なときに,
18620 これが1に設定されていると,
18621 差込枠の内容の要約が,
18622 目次項目に表示されます.0の場合は,
18623 ラベルのみが表示されます.
18624 \end_layout
18625
18626 \begin_layout Description
18627 \begin_inset Flex Code
18628 status collapsed
18629
18630 \begin_layout Plain Layout
18631 KeepEmpty
18632 \end_layout
18633
18634 \end_inset
18635
18636  [
18637 \emph on
18638
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 0
18644 \end_layout
18645
18646 \end_inset
18647
18648
18649 \emph default
18650 ,
18651 \begin_inset space \thinspace{}
18652 \end_inset
18653
18654
18655 \begin_inset Flex Code
18656 status collapsed
18657
18658 \begin_layout Plain Layout
18659 1
18660 \end_layout
18661
18662 \end_inset
18663
18664 ] 段落様式と同様.第
18665 \begin_inset CommandInset ref
18666 LatexCommand ref
18667 reference "subsec:段落様式"
18668 nolink "false"
18669
18670 \end_inset
18671
18672 節参照.
18673 \end_layout
18674
18675 \begin_layout Description
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 LabelFont
18681 \end_layout
18682
18683 \end_inset
18684
18685  ラベルに使用されるフォント.第
18686 \begin_inset CommandInset ref
18687 LatexCommand ref
18688 reference "subsec:フォント指定"
18689 nolink "false"
18690
18691 \end_inset
18692
18693 節を参照.非効率を回避するため,
18694 この定義は
18695 \begin_inset Flex Code
18696 status collapsed
18697
18698 \begin_layout Plain Layout
18699 Font
18700 \end_layout
18701
18702 \end_inset
18703
18704 の前には決して現れてはなりません.
18705 \end_layout
18706
18707 \begin_layout Description
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 LabelString
18713 \end_layout
18714
18715 \end_inset
18716
18717  [
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 文字列
18723 \end_layout
18724
18725 \end_inset
18726
18727 =
18728 \begin_inset Quotes erd
18729 \end_inset
18730
18731
18732 \begin_inset Quotes erd
18733 \end_inset
18734
18735 ]
18736 \lang english
18737  
18738 \lang japanese
18739 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
18740 コードや派生枝),
18741 ラベルが動的に変更されます.
18742 \end_layout
18743
18744 \begin_layout Description
18745 \begin_inset Flex Code
18746 status collapsed
18747
18748 \begin_layout Plain Layout
18749 LangPreamble
18750 \end_layout
18751
18752 \end_inset
18753
18754  言語依存のプリアンブル.第
18755 \begin_inset CommandInset ref
18756 LatexCommand ref
18757 reference "subsec:段落様式の国際化"
18758 nolink "false"
18759
18760 \end_inset
18761
18762 節参照.
18763 \end_layout
18764
18765 \begin_layout Description
18766 \begin_inset Flex Code
18767 status collapsed
18768
18769 \begin_layout Plain Layout
18770 LatexName
18771 \end_layout
18772
18773 \end_inset
18774
18775  [
18776 \begin_inset Flex Code
18777 status collapsed
18778
18779 \begin_layout Plain Layout
18780 <名称>
18781 \end_layout
18782
18783 \end_inset
18784
18785 ] 対応する\SpecialChar LaTeX
18786 関連物の名称.環境名ないしはコマンド名.
18787 \end_layout
18788
18789 \begin_layout Description
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794 LatexParam
18795 \end_layout
18796
18797 \end_inset
18798
18799  [
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 <パラメータ>
18805 \end_layout
18806
18807 \end_inset
18808
18809 ]
18810 \lang english
18811  
18812 \lang japanese
18813 対応する
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818 LatexName
18819 \end_layout
18820
18821 \end_inset
18822
18823 関連物の非必須パラメータ.
18824 \begin_inset Flex Code
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828 []
18829 \end_layout
18830
18831 \end_inset
18832
18833 のような括弧対を含む.このパラメータは\SpecialChar LyX
18834 内部から変更することはできません(変更可能なパラメータには
18835 \begin_inset Flex Code
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 Argument
18840 \end_layout
18841
18842 \end_inset
18843
18844 を使用してください).これは,
18845 全ての\SpecialChar LaTeX
18846  
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 Argument
18852 \end_layout
18853
18854 \end_inset
18855
18856 の後にそのままの形で出力されます.
18857 \end_layout
18858
18859 \begin_layout Description
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 LatexType
18865 \end_layout
18866
18867 \end_inset
18868
18869  [
18870 \begin_inset Flex Code
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874 Command,
18875  Environment,
18876  None
18877 \end_layout
18878
18879 \end_inset
18880
18881 ] 様式がどのように\SpecialChar LaTeX
18882 に変換されるべきかを示します
18883 \begin_inset Foot
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 これらのルールはSGMLクラスにも適用されるので,
18888
18889 \begin_inset Flex Code
18890 status collapsed
18891
18892 \begin_layout Plain Layout
18893 LatexType
18894 \end_layout
18895
18896 \end_inset
18897
18898 の名称は,
18899 少しミスリーディングかもしれません.特定の例については,
18900 SGMLクラスファイルを見てください.
18901 \end_layout
18902
18903 \end_inset
18904
18905
18906 \end_layout
18907
18908 \begin_deeper
18909 \begin_layout Description
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914 None
18915 \end_layout
18916
18917 \end_inset
18918
18919  は,
18920 何も特別なことは意味しません
18921 \end_layout
18922
18923 \begin_layout Description
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 Command
18929 \end_layout
18930
18931 \end_inset
18932
18933  は,
18934
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939
18940 \backslash
18941
18942 \emph on
18943 LatexName
18944 \emph default
18945 {\SpecialChar ldots
18946 }
18947 \end_layout
18948
18949 \end_inset
18950
18951 を意味します
18952 \end_layout
18953
18954 \begin_layout Description
18955 \begin_inset Flex Code
18956 status collapsed
18957
18958 \begin_layout Plain Layout
18959 Environment
18960 \end_layout
18961
18962 \end_inset
18963
18964  は,
18965
18966 \begin_inset Flex Code
18967 status collapsed
18968
18969 \begin_layout Plain Layout
18970
18971 \backslash
18972 begin{
18973 \emph on
18974 LatexName
18975 \emph default
18976 }\SpecialChar ldots
18977
18978 \backslash
18979 end{
18980 \emph on
18981 LatexName
18982 \emph default
18983 }
18984 \end_layout
18985
18986 \end_inset
18987
18988 を意味します
18989 \end_layout
18990
18991 \begin_layout Standard
18992 上記最後のいくつかをまとめると,
18993 \SpecialChar LaTeX
18994 出力は,
18995 \SpecialChar LaTeX
18996 型に依存して
18997 \end_layout
18998
18999 \begin_layout LyX-Code
19000
19001 \backslash
19002 LatexName[LatexParam]{\SpecialChar ldots
19003 }
19004 \end_layout
19005
19006 \begin_layout Standard
19007 のようになるか,
19008
19009 \end_layout
19010
19011 \begin_layout LyX-Code
19012
19013 \backslash
19014 begin{LatexName}[LatexParam] \SpecialChar ldots
19015  
19016 \backslash
19017 end{LatexName}.
19018 \end_layout
19019
19020 \begin_layout Standard
19021 となります.
19022 \end_layout
19023
19024 \end_deeper
19025 \begin_layout Description
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 LeftDelim
19031 \end_layout
19032
19033 \end_inset
19034
19035  [
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 文字列
19041 \end_layout
19042
19043 \end_inset
19044
19045 ] 様式の内容の最初に置かれる文字列.出力中の改行は
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 <br/>
19051 \end_layout
19052
19053 \end_inset
19054
19055 で指示できます.
19056 \end_layout
19057
19058 \begin_layout Description
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 LyxType
19064 \end_layout
19065
19066 \end_inset
19067
19068  
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073 charstyle
19074 \end_layout
19075
19076 \end_inset
19077
19078
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 custom
19084 \end_layout
19085
19086 \end_inset
19087
19088
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 end
19094 \end_layout
19095
19096 \end_inset
19097
19098 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,
19099 自由差込枠に必須であり,
19100 かつ自由差込枠でしか意味を持ちません.この項目は,
19101 就中,
19102 差込枠がどのメニューに表示されるかを決定します.
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 LyxType
19108 \end_layout
19109
19110 \end_inset
19111
19112
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 charstyle
19118 \end_layout
19119
19120 \end_inset
19121
19122 に設定すると,
19123
19124 \begin_inset Flex Code
19125 status collapsed
19126
19127 \begin_layout Plain Layout
19128 MultiPar
19129 \end_layout
19130
19131 \end_inset
19132
19133 が偽に,
19134
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 ForcePlain
19140 \end_layout
19141
19142 \end_inset
19143
19144 が真に設定されます.
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 charstyle
19150 \end_layout
19151
19152 \end_inset
19153
19154 差込枠で
19155 \begin_inset Flex Code
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159 MultiPar
19160 \end_layout
19161
19162 \end_inset
19163
19164 を真,
19165 あるいは
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 ForcePlain
19171 \end_layout
19172
19173 \end_inset
19174
19175 を偽に設定したい場合は,
19176
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 LyxType
19182 \end_layout
19183
19184 \end_inset
19185
19186 を設定した
19187 \begin_inset Flex 圏点
19188 status open
19189
19190 \begin_layout Plain Layout
19191 後に
19192 \end_layout
19193
19194 \end_inset
19195
19196 設定します.
19197 \end_layout
19198
19199 \begin_layout Description
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 MenuString
19205 \end_layout
19206
19207 \end_inset
19208
19209  
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 [文字列]
19215 \end_layout
19216
19217 \end_inset
19218
19219  メニュー用の文字列.この文字列に特定の文字を「|」で区切って追加することでアクセラレーターを定義することができます(例:
19220
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 My Inset|M
19226 \end_layout
19227
19228 \end_inset
19229
19230 ).この指定は必須ではありません.指定がない場合には,
19231 型宣言で指定された差込枠名が,
19232 代わりにメニューに用いられます.
19233 \end_layout
19234
19235 \begin_layout Description
19236 \begin_inset Flex Code
19237 status collapsed
19238
19239 \begin_layout Plain Layout
19240 MultiPar
19241 \end_layout
19242
19243 \end_inset
19244
19245  [
19246 \begin_inset Flex Code
19247 status collapsed
19248
19249 \begin_layout Plain Layout
19250
19251 \emph on
19252 0
19253 \end_layout
19254
19255 \end_inset
19256
19257 ,
19258 \begin_inset space \thinspace{}
19259 \end_inset
19260
19261
19262 \begin_inset Flex Code
19263 status collapsed
19264
19265 \begin_layout Plain Layout
19266 1
19267 \end_layout
19268
19269 \end_inset
19270
19271 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
19272
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 CustomPars
19278 \end_layout
19279
19280 \end_inset
19281
19282 を同じ値に設定し,
19283
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 ForcePlain
19289 \end_layout
19290
19291 \end_inset
19292
19293 を逆の値に設定します.これらは,
19294
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 MultiPar
19300 \end_layout
19301
19302 \end_inset
19303
19304
19305 \emph on
19306 後に
19307 \emph default
19308 指定されれば,
19309 他の値に指定し直すことができます.既定値は真です.
19310 \end_layout
19311
19312 \begin_layout Description
19313 \begin_inset Flex Code
19314 status collapsed
19315
19316 \begin_layout Plain Layout
19317 NeedProtect
19318 \end_layout
19319
19320 \end_inset
19321
19322  [
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327
19328 \emph on
19329 0
19330 \end_layout
19331
19332 \end_inset
19333
19334 ,
19335 \begin_inset space \thinspace{}
19336 \end_inset
19337
19338
19339 \begin_inset Flex Code
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 1
19344 \end_layout
19345
19346 \end_inset
19347
19348 ] 本レイアウト中で脆弱なコマンドを
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353
19354 \backslash
19355 protect
19356 \end_layout
19357
19358 \end_inset
19359
19360 するか否か(註:
19361 当該コマンド自身をprotectするかどうかでは
19362 \emph on
19363 ありません
19364 \emph default
19365 ).既定値は偽です.
19366 \end_layout
19367
19368 \begin_layout Description
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373 NeedCProtect
19374 \end_layout
19375
19376 \end_inset
19377
19378  [
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383
19384 \emph on
19385 0
19386 \end_layout
19387
19388 \end_inset
19389
19390 ,
19391 \begin_inset space \thinspace{}
19392 \end_inset
19393
19394
19395 \begin_inset Flex Code
19396 status collapsed
19397
19398 \begin_layout Plain Layout
19399 1
19400 \end_layout
19401
19402 \end_inset
19403
19404 ] これは必要ならば,
19405 このレイアウトを含むマクロを
19406 \begin_inset Flex Code
19407 status collapsed
19408
19409 \begin_layout Plain Layout
19410
19411 \backslash
19412 cprotect
19413 \end_layout
19414
19415 \end_inset
19416
19417 (cf.
19418  
19419 \family sans
19420 cprotect
19421 \family default
19422 パッケージ)を用いて保護するようにし,
19423 マクロ中でverbatimを使えるようにします.既定値は偽です.
19424 \end_layout
19425
19426 \begin_layout Description
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 NeedMBoxProtect
19432 \end_layout
19433
19434 \end_inset
19435
19436  [
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441
19442 \emph on
19443 0
19444 \end_layout
19445
19446 \end_inset
19447
19448 ,
19449 \begin_inset space \thinspace{}
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 1
19458 \end_layout
19459
19460 \end_inset
19461
19462 ] この様式中の(
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467
19468 \backslash
19469 cite
19470 \end_layout
19471
19472 \end_inset
19473
19474
19475 \begin_inset Flex Code
19476 status collapsed
19477
19478 \begin_layout Plain Layout
19479
19480 \backslash
19481 ref
19482 \end_layout
19483
19484 \end_inset
19485
19486 のような)特定のコマンドが
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491
19492 \backslash
19493 mbox
19494 \end_layout
19495
19496 \end_inset
19497
19498 中で保護されるか否か.これは,
19499 中身を複雑な方法で解析する
19500 \family sans
19501 ulem
19502 \family default
19503
19504 \family sans
19505 soul
19506 \family default
19507 コマンドに頼る様式でとくに必要になります.既定値は偽です.
19508 \end_layout
19509
19510 \begin_layout Description
19511 \begin_inset Flex Code
19512 status collapsed
19513
19514 \begin_layout Plain Layout
19515 NewlineCmd
19516 \end_layout
19517
19518 \end_inset
19519
19520  
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 [文字列]
19526 \end_layout
19527
19528 \end_inset
19529
19530  改行に使用するコマンドを(
19531 \begin_inset Flex Code
19532 status collapsed
19533
19534 \begin_layout Plain Layout
19535
19536 \backslash
19537
19538 \backslash
19539
19540 \end_layout
19541
19542 \end_inset
19543
19544 以外に)定義するオプションです.初期値のバックスラッシュは指定できません.
19545 \end_layout
19546
19547 \begin_layout Description
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 NoInsetLayout
19553 \end_layout
19554
19555 \end_inset
19556
19557  [
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 <レイアウト>
19563 \end_layout
19564
19565 \end_inset
19566
19567 ] 既存の
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 InsetLayout
19573 \end_layout
19574
19575 \end_inset
19576
19577 を削除します.
19578 \end_layout
19579
19580 \begin_layout Description
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 ObsoletedBy
19586 \end_layout
19587
19588 \end_inset
19589
19590  [
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595 <レイアウト>
19596 \end_layout
19597
19598 \end_inset
19599
19600 ] この古い
19601 \begin_inset Flex Code
19602 status collapsed
19603
19604 \begin_layout Plain Layout
19605 InsetLayout
19606 \end_layout
19607
19608 \end_inset
19609
19610 を引き継いだ
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 InsetLayout
19616 \end_layout
19617
19618 \end_inset
19619
19620 の名称.これは,
19621
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 InsetLayout
19627 \end_layout
19628
19629 \end_inset
19630
19631 の改名を,
19632 後方互換性を維持しながら行うために用いられます.
19633 \end_layout
19634
19635 \begin_layout Description
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 ParbreakIgnored
19641 \end_layout
19642
19643 \end_inset
19644
19645  [
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650
19651 \emph on
19652 0
19653 \end_layout
19654
19655 \end_inset
19656
19657 ,
19658 \begin_inset space \thinspace{}
19659 \end_inset
19660
19661
19662 \begin_inset Flex Code
19663 status collapsed
19664
19665 \begin_layout Plain Layout
19666 1
19667 \end_layout
19668
19669 \end_inset
19670
19671
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 1
19677 \end_layout
19678
19679 \end_inset
19680
19681 に設定すると,
19682 段落の改行は出力では無視されます.これは,
19683 内容が\SpecialChar LyX
19684 作業領域内でのみ改行可能で,
19685 出力に影響を与えない差込枠において有用です.
19686 \end_layout
19687
19688 \begin_layout Description
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 ParbreakIsNewline
19694 \end_layout
19695
19696 \end_inset
19697
19698  [
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703
19704 \emph on
19705 0
19706 \end_layout
19707
19708 \end_inset
19709
19710 ,
19711 \begin_inset space \thinspace{}
19712 \end_inset
19713
19714
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 1
19720 \end_layout
19721
19722 \end_inset
19723
19724 ] 段落様式と同様.第
19725 \begin_inset CommandInset ref
19726 LatexCommand ref
19727 reference "subsec:段落様式"
19728 nolink "false"
19729
19730 \end_inset
19731
19732 節参照.
19733 \end_layout
19734
19735 \begin_layout Description
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740 PassThru
19741 \end_layout
19742
19743 \end_inset
19744
19745  [
19746 \emph on
19747
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 0
19753 \end_layout
19754
19755 \end_inset
19756
19757
19758 \emph default
19759 ,
19760 \begin_inset space \thinspace{}
19761 \end_inset
19762
19763
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 1
19769 \end_layout
19770
19771 \end_inset
19772
19773 ] 段落様式と同様.第
19774 \begin_inset CommandInset ref
19775 LatexCommand ref
19776 reference "subsec:段落様式"
19777 nolink "false"
19778
19779 \end_inset
19780
19781 節参照.
19782 \end_layout
19783
19784 \begin_layout Description
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 Preamble
19790 \end_layout
19791
19792 \end_inset
19793
19794  段落様式と同様.第
19795 \begin_inset CommandInset ref
19796 LatexCommand ref
19797 reference "subsec:段落様式"
19798 nolink "false"
19799
19800 \end_inset
19801
19802 節参照.
19803 \end_layout
19804
19805 \begin_layout Description
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 RefPrefix
19811 \end_layout
19812
19813 \end_inset
19814
19815  [
19816 \begin_inset Flex Code
19817 status collapsed
19818
19819 \begin_layout Plain Layout
19820 文字列
19821 \end_layout
19822
19823 \end_inset
19824
19825 ] この型の差込枠を参照する際,
19826 生成されるラベルに使用する前置句.これによって,
19827 整形参照を使用することができるようになります.
19828 \end_layout
19829
19830 \begin_layout Description
19831 \begin_inset Flex Code
19832 status collapsed
19833
19834 \begin_layout Plain Layout
19835 Requires
19836 \end_layout
19837
19838 \end_inset
19839
19840  [
19841 \begin_inset Flex Code
19842 status collapsed
19843
19844 \begin_layout Plain Layout
19845 文字列
19846 \end_layout
19847
19848 \end_inset
19849
19850 ] 段落様式と同様.第
19851 \begin_inset CommandInset ref
19852 LatexCommand ref
19853 reference "subsec:段落様式"
19854 nolink "false"
19855
19856 \end_inset
19857
19858 節参照.
19859 \end_layout
19860
19861 \begin_layout Description
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866 ResetArgs
19867 \end_layout
19868
19869 \end_inset
19870
19871  [
19872 \begin_inset Flex Code
19873 status collapsed
19874
19875 \begin_layout Plain Layout
19876
19877 \emph on
19878 0
19879 \end_layout
19880
19881 \end_inset
19882
19883 ,
19884 \begin_inset space \thinspace{}
19885 \end_inset
19886
19887
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 1
19893 \end_layout
19894
19895 \end_inset
19896
19897 ] (
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 Argument
19903 \end_layout
19904
19905 \end_inset
19906
19907 タグで定義された)この様式の\SpecialChar LaTeX
19908 引数をリセットします.これは,
19909 様式を
19910 \begin_inset Flex Code
19911 status collapsed
19912
19913 \begin_layout Plain Layout
19914 CopyStyle
19915 \end_layout
19916
19917 \end_inset
19918
19919 でコピーし,
19920 その(必須及び非必須)引数は継承したくない場合に便利です.
19921 \end_layout
19922
19923 \begin_layout Description
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 ResetsFont
19929 \end_layout
19930
19931 \end_inset
19932
19933  [
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 0
19939 \end_layout
19940
19941 \end_inset
19942
19943 ,
19944 \begin_inset space \thinspace{}
19945 \end_inset
19946
19947
19948 \begin_inset Flex Code
19949 status collapsed
19950
19951 \begin_layout Plain Layout
19952
19953 \emph on
19954 1
19955 \end_layout
19956
19957 \end_inset
19958
19959
19960 \begin_inset Flex Code
19961 status collapsed
19962
19963 \begin_layout Plain Layout
19964
19965 \emph on
19966 1
19967 \end_layout
19968
19969 \end_inset
19970
19971 ならば,
19972 差込枠がフォント変更指定の中にあるとき,
19973 各差込枠の内部で再度フォント変更指定が為されます(たとえば
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978
19979 \backslash
19980 textbf{周りの文字列
19981 \backslash
19982 myinset{中身}\SpecialChar ldots
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
19994 \backslash
19995 textbf{周りの文字列
19996 \backslash
19997 myinset{
19998 \backslash
19999 textbf{中身}}\SpecialChar ldots
20000 }
20001 \end_layout
20002
20003 \end_inset
20004
20005 ).(脚註のような)内部的にフォント設定をリセットするコマンドで意味を持ちます.これを誤って設定してしまうと,
20006 望まない結果を生むことがあります(例:
20007
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012
20013 \backslash
20014 emph{周りの文字列
20015 \backslash
20016 myinset{
20017 \backslash
20018 emph{中身t}}\SpecialChar ldots
20019 }
20020 \end_layout
20021
20022 \end_inset
20023
20024 では
20025 \begin_inset Flex Code
20026 status collapsed
20027
20028 \begin_layout Plain Layout
20029
20030 \backslash
20031 emph
20032 \end_layout
20033
20034 \end_inset
20035
20036 がトグルですので,
20037 中身がアップライト体になります).既定値は
20038 \begin_inset Flex Code
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 0
20043 \end_layout
20044
20045 \end_inset
20046
20047
20048 フォント変更は差込枠内部で繰り返されません.
20049 \end_layout
20050
20051 \begin_layout Description
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 RightDelim
20057 \end_layout
20058
20059 \end_inset
20060
20061  [
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 文字列
20067 \end_layout
20068
20069 \end_inset
20070
20071 ] 様式の内容の最後に置かれる文字列.出力中の改行は
20072 \begin_inset Flex Code
20073 status collapsed
20074
20075 \begin_layout Plain Layout
20076 <br/>
20077 \end_layout
20078
20079 \end_inset
20080
20081 で指示できます.
20082 \end_layout
20083
20084 \begin_layout Description
20085 \begin_inset Flex Code
20086 status collapsed
20087
20088 \begin_layout Plain Layout
20089 Spellcheck
20090 \end_layout
20091
20092 \end_inset
20093
20094  [
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099 0
20100 \end_layout
20101
20102 \end_inset
20103
20104 ,
20105 \begin_inset space \thinspace{}
20106 \end_inset
20107
20108
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113
20114 \emph on
20115 1
20116 \end_layout
20117
20118 \end_inset
20119
20120 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
20121 \end_layout
20122
20123 \begin_layout Subsection
20124 引数
20125 \begin_inset CommandInset label
20126 LatexCommand label
20127 name "subsec:引数"
20128
20129 \end_inset
20130
20131
20132 \end_layout
20133
20134 \begin_layout Standard
20135 段落様式と差込枠レイアウトは,
20136 内容本体に加えて引数を取ることができます.これは,
20137 節見出しのようなものに便利で,
20138 また\SpecialChar LaTeX
20139 でのみ意味を持ちます.コマンドまたは環境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,
20140 必須・非必須を問わず–,
20141 別の場所で定義され,
20142 引数番号はその順序を表します.定義は
20143 \begin_inset Flex Code
20144 status collapsed
20145
20146 \begin_layout Plain Layout
20147 EndArgument
20148 \end_layout
20149
20150 \end_inset
20151
20152 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,
20153 以下のようになります.
20154 \end_layout
20155
20156 \begin_layout Quote
20157
20158 \family typewriter
20159 Argument 1
20160 \end_layout
20161
20162 \begin_layout Quote
20163
20164 \family typewriter
20165 ...
20166 \end_layout
20167
20168 \begin_layout Quote
20169
20170 \family typewriter
20171 EndArgument
20172 \end_layout
20173
20174 \begin_layout Quote
20175
20176 \family typewriter
20177 Argument 2
20178 \end_layout
20179
20180 \begin_layout Quote
20181
20182 \family typewriter
20183 ...
20184 \end_layout
20185
20186 \begin_layout Quote
20187
20188 \family typewriter
20189 EndArgument
20190 \end_layout
20191
20192 \begin_layout Standard
20193 \begin_inset Flex Code
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197 Argument
20198 \end_layout
20199
20200 \end_inset
20201
20202 定義内部では,
20203 以下の指定をすることができます.
20204 \end_layout
20205
20206 \begin_layout Itemize
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 LabelString
20212 \end_layout
20213
20214 \end_inset
20215
20216  
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 [文字列]
20222 \end_layout
20223
20224 \end_inset
20225
20226  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 MenuString
20232 \end_layout
20233
20234 \end_inset
20235
20236 を指定した場合を除く).メニューには,
20237 後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
20238 \begin_inset space \space{}
20239 \end_inset
20240
20241
20242 \begin_inset Quotes eld
20243 \end_inset
20244
20245
20246 \begin_inset Flex Code
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250 Short Title|S
20251 \end_layout
20252
20253 \end_inset
20254
20255
20256 \begin_inset Quotes erd
20257 \end_inset
20258
20259 ).
20260 \end_layout
20261
20262 \begin_layout Itemize
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 MenuString
20268 \end_layout
20269
20270 \end_inset
20271
20272  
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 [文字列]
20278 \end_layout
20279
20280 \end_inset
20281
20282  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
20283 \begin_inset space \space{}
20284 \end_inset
20285
20286
20287 \begin_inset Quotes eld
20288 \end_inset
20289
20290
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 Short Title|S
20296 \end_layout
20297
20298 \end_inset
20299
20300
20301 \begin_inset Quotes erd
20302 \end_inset
20303
20304 ).この指定は必須ではありません.指定しない場合には,
20305 代わりに
20306 \begin_inset Flex Code
20307 status collapsed
20308
20309 \begin_layout Plain Layout
20310 LabelString
20311 \end_layout
20312
20313 \end_inset
20314
20315 がメニューに用いられます.
20316 \end_layout
20317
20318 \begin_layout Itemize
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323 Tooltip
20324 \end_layout
20325
20326 \end_inset
20327
20328  
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 [文字列]
20334 \end_layout
20335
20336 \end_inset
20337
20338  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
20339 \end_layout
20340
20341 \begin_layout Itemize
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346 Mandatory
20347 \end_layout
20348
20349 \end_inset
20350
20351  [
20352 \begin_inset Flex Code
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356
20357 \emph on
20358 0
20359 \end_layout
20360
20361 \end_inset
20362
20363 ,
20364 \begin_inset space \thinspace{}
20365 \end_inset
20366
20367
20368 \begin_inset Flex Code
20369 status collapsed
20370
20371 \begin_layout Plain Layout
20372 1
20373 \end_layout
20374
20375 \end_inset
20376
20377 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,
20378 与えられなければ空の出力を行いますが,
20379 非必須引数の場合はそもそも出力されません.既定では,
20380 必須引数は
20381 \begin_inset Flex Code
20382 status collapsed
20383
20384 \begin_layout Plain Layout
20385 {...}
20386 \end_layout
20387
20388 \end_inset
20389
20390 で区切られ,
20391 非必須引数は
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 [...]
20397 \end_layout
20398
20399 \end_inset
20400
20401 で区切られます.
20402 \end_layout
20403
20404 \begin_layout Itemize
20405 \begin_inset Flex Code
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409 NewlineCmd
20410 \end_layout
20411
20412 \end_inset
20413
20414  
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 [文字列]
20420 \end_layout
20421
20422 \end_inset
20423
20424  改行に使用するコマンドを(
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429
20430 \backslash
20431
20432 \backslash
20433
20434 \end_layout
20435
20436 \end_inset
20437
20438 以外に)定義するオプションです.初期値のバックスラッシュは指定できません.
20439 \end_layout
20440
20441 \begin_layout Itemize
20442 \begin_inset Flex Code
20443 status collapsed
20444
20445 \begin_layout Plain Layout
20446 Requires
20447 \end_layout
20448
20449 \end_inset
20450
20451  
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 [整数=0]
20457 \end_layout
20458
20459 \end_inset
20460
20461  この引数が出力されるとき,
20462 必要となる別の引数を(番号によって)指定します.例えば,
20463 \SpecialChar LaTeX
20464 コマンドでは,
20465
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470
20471 \backslash
20472 command[][引数]{文字列}
20473 \end_layout
20474
20475 \end_inset
20476
20477 のように,
20478 前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
20479
20480 \begin_inset Flex Code
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 Argument 2
20485 \end_layout
20486
20487 \end_inset
20488
20489 中に
20490 \begin_inset Flex Code
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 Requires 1
20495 \end_layout
20496
20497 \end_inset
20498
20499 ステートメントを置くことで実現できます.
20500 \end_layout
20501
20502 \begin_layout Itemize
20503 \begin_inset Flex Code
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 LeftDelim
20508 \end_layout
20509
20510 \end_inset
20511
20512  
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 [文字列]
20518 \end_layout
20519
20520 \end_inset
20521
20522  (
20523 \begin_inset Flex Code
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527 {
20528 \end_layout
20529
20530 \end_inset
20531
20532
20533 \begin_inset Flex Code
20534 status collapsed
20535
20536 \begin_layout Plain Layout
20537 [
20538 \end_layout
20539
20540 \end_inset
20541
20542 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
20543 \begin_inset Flex Code
20544 status collapsed
20545
20546 \begin_layout Plain Layout
20547 <br/>
20548 \end_layout
20549
20550 \end_inset
20551
20552 で指示できます.
20553 \end_layout
20554
20555 \begin_layout Itemize
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 RightDelim
20561 \end_layout
20562
20563 \end_inset
20564
20565  
20566 \begin_inset Flex Code
20567 status collapsed
20568
20569 \begin_layout Plain Layout
20570 [文字列]
20571 \end_layout
20572
20573 \end_inset
20574
20575  (
20576 \begin_inset Flex Code
20577 status collapsed
20578
20579 \begin_layout Plain Layout
20580 }
20581 \end_layout
20582
20583 \end_inset
20584
20585
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590 ]
20591 \end_layout
20592
20593 \end_inset
20594
20595 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600 <br/>
20601 \end_layout
20602
20603 \end_inset
20604
20605 で指示できます.
20606 \end_layout
20607
20608 \begin_layout Itemize
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 DefaultArg
20614 \end_layout
20615
20616 \end_inset
20617
20618  
20619 \begin_inset Flex Code
20620 status collapsed
20621
20622 \begin_layout Plain Layout
20623 [文字列]
20624 \end_layout
20625
20626 \end_inset
20627
20628  ユーザー指定引数が与えられなかったとき,
20629 すなわち引数差込枠が挿入されなかったときに限り,
20630 挿入される引数を定義します(空の引数差込枠が挿入されてもDefaultArgは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
20631 \end_layout
20632
20633 \begin_layout Itemize
20634 \begin_inset Flex Code
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 PresetArg
20639 \end_layout
20640
20641 \end_inset
20642
20643  
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 [文字列]
20649 \end_layout
20650
20651 \end_inset
20652
20653  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
20654 \end_layout
20655
20656 \begin_layout Itemize
20657 \begin_inset Flex Code
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 Font
20662 \end_layout
20663
20664 \end_inset
20665
20666  引数の内容に用いられるフォント.
20667 \begin_inset CommandInset ref
20668 LatexCommand ref
20669 reference "subsec:フォント指定"
20670 nolink "false"
20671
20672 \end_inset
20673
20674 参照.
20675 \end_layout
20676
20677 \begin_layout Itemize
20678 \begin_inset Flex Code
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682 FreeSpacing
20683 \end_layout
20684
20685 \end_inset
20686
20687  [
20688 \emph on
20689
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 0
20695 \end_layout
20696
20697 \end_inset
20698
20699
20700 \emph default
20701 ,
20702 \begin_inset space \thinspace{}
20703 \end_inset
20704
20705
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 1
20711 \end_layout
20712
20713 \end_inset
20714
20715 ] 段落様式と同様.第
20716 \begin_inset CommandInset ref
20717 LatexCommand ref
20718 reference "subsec:段落様式"
20719 nolink "false"
20720
20721 \end_inset
20722
20723 節参照.
20724 \end_layout
20725
20726 \begin_layout Itemize
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 LabelFont
20732 \end_layout
20733
20734 \end_inset
20735
20736  ラベルに用いられるフォント.
20737 \begin_inset CommandInset ref
20738 LatexCommand ref
20739 reference "subsec:フォント指定"
20740 nolink "false"
20741
20742 \end_inset
20743
20744 参照.
20745 \end_layout
20746
20747 \begin_layout Itemize
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 Decoration
20753 \end_layout
20754
20755 \end_inset
20756
20757  [
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762
20763 \emph on
20764 Classic
20765 \emph default
20766 ,
20767  Minimalistic,
20768  Conglomerate
20769 \end_layout
20770
20771 \end_inset
20772
20773 ] 差込枠の枠とボタンに用いられる装飾様式.
20774 \end_layout
20775
20776 \begin_layout Itemize
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 AutoInsert
20782 \end_layout
20783
20784 \end_inset
20785
20786  
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791 [整数=0]
20792 \end_layout
20793
20794 \end_inset
20795
20796  これが
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 1
20802 \end_layout
20803
20804 \end_inset
20805
20806 に設定されると,
20807 各様式が選択されたときに,
20808 この引数が自動的に挿入されます.
20809 \end_layout
20810
20811 \begin_layout Itemize
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 InsertOnNewline
20817 \end_layout
20818
20819 \end_inset
20820
20821  
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 [整数=0]
20827 \end_layout
20828
20829 \end_inset
20830
20831  これが
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 1
20837 \end_layout
20838
20839 \end_inset
20840
20841 に設定されると,
20842
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 AutoInsert
20848 \end_layout
20849
20850 \end_inset
20851
20852 時にこの変数は新規行に挿入されます(自由差込枠でのみ使用可能).
20853 \end_layout
20854
20855 \begin_layout Itemize
20856 \begin_inset Flex Code
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 InsertCotext
20861 \end_layout
20862
20863 \end_inset
20864
20865  
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 [整数=0]
20871 \end_layout
20872
20873 \end_inset
20874
20875  これが
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 1
20881 \end_layout
20882
20883 \end_inset
20884
20885 に設定されると,
20886 この引数は,
20887 副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
20888 \end_layout
20889
20890 \begin_layout Itemize
20891 \begin_inset Flex Code
20892 status collapsed
20893
20894 \begin_layout Plain Layout
20895 PassThru
20896 \end_layout
20897
20898 \end_inset
20899
20900  [
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905
20906 \emph on
20907 inherited
20908 \emph default
20909 ,
20910  true,
20911  false
20912 \end_layout
20913
20914 \end_inset
20915
20916 ] この引数の内容が,
20917 \SpecialChar LaTeX
20918 が要求する特別な書き換えを行うことなく,
20919 原文のまま出力されるべきかどうかを指定します.既定値では,
20920
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 PassThru
20926 \end_layout
20927
20928 \end_inset
20929
20930 の状態は,
20931 引数が属する差込枠または段落レイアウトに継承されます.trueまたはfalseは,
20932 この引数のみの状態を変更します.
20933 \end_layout
20934
20935 \begin_layout Itemize
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 PassThruChars
20941 \end_layout
20942
20943 \end_inset
20944
20945  [
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 文字列
20951 \end_layout
20952
20953 \end_inset
20954
20955 ]
20956 \family typewriter
20957  
20958 \family default
20959 \SpecialChar LaTeX
20960 が要求する特別な翻訳は抜きにして,
20961 生の形で出力されるべき各文字を定義します.PassThruとは違って,
20962 引数用に,
20963 これは明示的に定義されなくてはなりません.つまり,
20964 引数は,
20965 親差込枠や親レイアウトからPassThruCharsを継承しません.
20966 \end_layout
20967
20968 \begin_layout Itemize
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 IsTocCaption
20974 \end_layout
20975
20976 \end_inset
20977
20978  [
20979 \begin_inset Flex Code
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983
20984 \emph on
20985 0
20986 \end_layout
20987
20988 \end_inset
20989
20990 ,
20991 \begin_inset space \thinspace{}
20992 \end_inset
20993
20994
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 1
21000 \end_layout
21001
21002 \end_inset
21003
21004 ] これを1に設定すると,
21005 引数は,
21006 その内容を対応する一覧表の項目に出力します.AddToTocを参照.
21007 \end_layout
21008
21009 \begin_layout Standard
21010 既定では,
21011
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 LatexType
21017 \end_layout
21018
21019 \end_inset
21020
21021
21022 \begin_inset Flex Code
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 Command
21027 \end_layout
21028
21029 \end_inset
21030
21031 のとき,
21032 各レイアウトで\SpecialChar LyX
21033 作業領域に入力した文字列は,
21034 コマンドの最後の(必須)引数になります.しかしながら,
21035 前置句
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 post:
21041 \end_layout
21042
21043 \end_inset
21044
21045 を付けた文字列は,
21046 この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,
21047 作業領域引数の後の最初の引数は
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 post:1
21053 \end_layout
21054
21055 \end_inset
21056
21057 となります.後置引数は,
21058
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 Command
21064 \end_layout
21065
21066 \end_inset
21067
21068 以外の
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 LatexType
21074 \end_layout
21075
21076 \end_inset
21077
21078 では無視されます.
21079 \end_layout
21080
21081 \begin_layout Standard
21082 (
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087
21088 \backslash
21089 item[foo]
21090 \end_layout
21091
21092 \end_inset
21093
21094 のような)箇条書き
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099
21100 \backslash
21101 item
21102 \end_layout
21103
21104 \end_inset
21105
21106 の引数は,
21107 前置句
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 item:
21113 \end_layout
21114
21115 \end_inset
21116
21117 の後に番号を付けます(例:
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 Argument item:1
21123 \end_layout
21124
21125 \end_inset
21126
21127 ).
21128 \end_layout
21129
21130 \begin_layout Standard
21131 最後に,
21132 前置句
21133 \begin_inset Flex Code
21134 status collapsed
21135
21136 \begin_layout Plain Layout
21137 listpreamble:
21138 \end_layout
21139
21140 \end_inset
21141
21142 を用いる特別な引数型があります.これは本当は引数ではありませんが,
21143 引数インタフェースを用います(したがって前置句後には数値が続きます.例:
21144
21145 \begin_inset Flex Code
21146 status collapsed
21147
21148 \begin_layout Plain Layout
21149 Argument listpreamble:1
21150 \end_layout
21151
21152 \end_inset
21153
21154 ).名前が示すように,
21155
21156 \family sans
21157 Itemize
21158 \family default
21159
21160 \family sans
21161 Enumerate
21162 \family default
21163
21164 \family sans
21165 Description
21166 \family default
21167
21168 \family sans
21169 Bibliography
21170 \family default
21171 のようなリストが対象です.その中身はリスト開始時,
21172 最初の
21173 \begin_inset Flex Code
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177
21178 \backslash
21179 item
21180 \end_layout
21181
21182 \end_inset
21183
21184 の前に独立した行として(\SpecialChar LyX
21185 からは他の方法ではアクセス不能な場所です)出力されます.このようにして,
21186 ユーザーは各リストに(長さ等の)再定義を入れることができます.既定では,
21187 これらの引数は区切り文字を持ちません.
21188 \end_layout
21189
21190 \begin_layout Subsection
21191 カウンタ
21192 \begin_inset CommandInset label
21193 LatexCommand label
21194 name "subsec:カウンタ"
21195
21196 \end_inset
21197
21198
21199 \end_layout
21200
21201 \begin_layout Standard
21202 テキストクラスには,
21203 カウンタ(
21204 \begin_inset Flex MenuItem
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 chapter
21209 \end_layout
21210
21211 \end_inset
21212
21213
21214 \begin_inset Flex MenuItem
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 figure
21219 \end_layout
21220
21221 \end_inset
21222
21223 ・\SpecialChar ldots
21224 )を定義することが必要です.標準的なカウンタは
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 stdcounters.inc
21230 \end_layout
21231
21232 \end_inset
21233
21234 ファイルに含まれているので,
21235 作業中のレイアウトファイルに
21236 \end_layout
21237
21238 \begin_layout LyX-Code
21239 Input stdcounters.inc
21240 \end_layout
21241
21242 \begin_layout Standard
21243 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,
21244 そうすることもできます.カウンタ宣言は,
21245
21246 \end_layout
21247
21248 \begin_layout LyX-Code
21249 Counter カウンタ名
21250 \end_layout
21251
21252 \begin_layout Standard
21253 で始まらなくてはなりません.ここで「
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 カウンタ名
21259 \end_layout
21260
21261 \end_inset
21262
21263 」は,
21264 実際のカウンタ名で置き換えます.また,
21265 宣言は「
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270 End
21271 \end_layout
21272
21273 \end_inset
21274
21275 」で終わらなくてはなりません.
21276 \end_layout
21277
21278 \begin_layout Standard
21279 以下のパラメータを使用することができます.
21280 \end_layout
21281
21282 \begin_layout Description
21283 \begin_inset Flex Code
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 InitialValue
21288 \end_layout
21289
21290 \end_inset
21291
21292  [
21293 \begin_inset Flex Code
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 整数=1
21298 \end_layout
21299
21300 \end_inset
21301
21302 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,
21303 既定値1のままで充分でしょう.
21304 \end_layout
21305
21306 \begin_layout Description
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 LabelString
21312 \end_layout
21313
21314 \end_inset
21315
21316  [
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 文字列
21322 \end_layout
21323
21324 \end_inset
21325
21326 =""] 定義されていると,
21327 ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
21328
21329 \begin_inset Flex Code
21330 status collapsed
21331
21332 \begin_layout Plain Layout
21333 LabelStringAppendix
21334 \end_layout
21335
21336 \end_inset
21337
21338 も同じ値に設定されます.文字列中では,
21339 以下の構成要素を使用することができます.
21340 \end_layout
21341
21342 \begin_deeper
21343 \begin_layout Itemize
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348
21349 \backslash
21350 thecounter
21351 \end_layout
21352
21353 \end_inset
21354
21355 は,
21356 カウンタ
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 counter
21362 \end_layout
21363
21364 \end_inset
21365
21366
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371 LabelString
21372 \end_layout
21373
21374 \end_inset
21375
21376 (または
21377 \begin_inset Newline linebreak
21378 \end_inset
21379
21380
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 LabelStringAppendix
21386 \end_layout
21387
21388 \end_inset
21389
21390 )を展開したもので置き換えられます. 
21391 \end_layout
21392
21393 \begin_layout Itemize
21394 カウンタ値は,
21395 \SpecialChar LaTeX
21396 型マクロ
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401
21402 \backslash
21403
21404 \emph on
21405 numbertype
21406 \emph default
21407 {
21408 \emph on
21409 カウンタ
21410 \emph default
21411 }
21412 \end_layout
21413
21414 \end_inset
21415
21416 を用いて表現することができます.ここで
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421
21422 \emph on
21423 numbertype
21424 \end_layout
21425
21426 \end_inset
21427
21428 は以下のいずれかです.
21429 \begin_inset Flex Code
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433 arabic
21434 \end_layout
21435
21436 \end_inset
21437
21438
21439 1,
21440  2,
21441  3,\SpecialChar ldots
21442
21443
21444 \begin_inset Flex Code
21445 status collapsed
21446
21447 \begin_layout Plain Layout
21448 alph
21449 \end_layout
21450
21451 \end_inset
21452
21453
21454 a,
21455  b,
21456  c,
21457  \SpecialChar ldots
21458 (小文字);
21459
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 Alph
21465 \end_layout
21466
21467 \end_inset
21468
21469
21470 A,
21471  B,
21472  C,
21473  \SpecialChar ldots
21474 (大文字);
21475
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 roman
21481 \end_layout
21482
21483 \end_inset
21484
21485
21486 i,
21487  ii,
21488  iii,
21489  \SpecialChar ldots
21490 (小文字ローマ数字);
21491
21492 \begin_inset Flex Code
21493 status collapsed
21494
21495 \begin_layout Plain Layout
21496 Roman
21497 \end_layout
21498
21499 \end_inset
21500
21501
21502 I,
21503  II,
21504  III\SpecialChar ldots
21505 (大文字ローマ数字).
21506 \end_layout
21507
21508 \end_deeper
21509 \begin_layout Standard
21510 \begin_inset Flex Code
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514 LabelString
21515 \end_layout
21516
21517 \end_inset
21518
21519 が定義されていないときは,
21520 既定値は以下のように組み立てられます.このカウンタに親カウンタ
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 master
21526 \end_layout
21527
21528 \end_inset
21529
21530
21531 \begin_inset Flex Code
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 Within
21536 \end_layout
21537
21538 \end_inset
21539
21540 で定義)があるときには,
21541 文字列
21542 \begin_inset Newline linebreak
21543 \end_inset
21544
21545
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550
21551 \backslash
21552 themaster.
21553 \backslash
21554 arabic{カウンタ}
21555 \end_layout
21556
21557 \end_inset
21558
21559 が使用されます.それ以外の場合は,
21560
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565
21566 \backslash
21567 arabic{カウンタ}
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 LabelStringAppendix
21581 \end_layout
21582
21583 \end_inset
21584
21585  [
21586 \begin_inset Flex Code
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 文字列
21591 \end_layout
21592
21593 \end_inset
21594
21595 =""] 
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 LabelString
21601 \end_layout
21602
21603 \end_inset
21604
21605 と同様ですが,
21606 付録で使用するためのものです.
21607 \end_layout
21608
21609 \begin_layout Description
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 LaTeXName
21615 \end_layout
21616
21617 \end_inset
21618
21619  [
21620 \begin_inset Flex Code
21621 status collapsed
21622
21623 \begin_layout Plain Layout
21624 文字列
21625 \end_layout
21626
21627 \end_inset
21628
21629 =
21630 \begin_inset Quotes erd
21631 \end_inset
21632
21633
21634 \begin_inset Quotes erd
21635 \end_inset
21636
21637 ] \SpecialChar LaTeX
21638 で使用されるカウンタ名(たとえば\SpecialChar LyX
21639 では「theorem」というカウンタがありますが,
21640 \SpecialChar LaTeX
21641 には「thm」と出力されます).
21642 \end_layout
21643
21644 \begin_layout Description
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 PrettyFormat
21650 \end_layout
21651
21652 \end_inset
21653
21654  [
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 文字列
21660 \end_layout
21661
21662 \end_inset
21663
21664 =
21665 \begin_inset Quotes erd
21666 \end_inset
21667
21668
21669 \begin_inset Quotes erd
21670 \end_inset
21671
21672 ] このカウンタの整形参照で使用する書式.たとえば,
21673 節番号への参照を「Section
21674 \begin_inset space ~
21675 \end_inset
21676
21677 2.4」のように表示させたい場合には,
21678 文字列に「##」を含めるか,
21679
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 LabelString
21685 \end_layout
21686
21687 \end_inset
21688
21689 でのようにカウンタ指定を含めます.前者はカウンタ番号で置換されます.したがって,
21690 節の場合には「Section ##」のようにするか,
21691
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696
21697 \backslash
21698 S
21699 \backslash
21700 arabic{section}
21701 \end_layout
21702
21703 \end_inset
21704
21705 」のようにします(これは§2.7のように翻訳されます).
21706 \end_layout
21707
21708 \begin_layout Description
21709 \begin_inset Flex Code
21710 status collapsed
21711
21712 \begin_layout Plain Layout
21713 RefFormat
21714 \end_layout
21715
21716 \end_inset
21717
21718  [
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 文字列
21724 \end_layout
21725
21726 \end_inset
21727
21728 ,
21729  
21730 \begin_inset Flex Code
21731 status collapsed
21732
21733 \begin_layout Plain Layout
21734 文字列
21735 \end_layout
21736
21737 \end_inset
21738
21739 ] とくに,
21740 単一のカウンタを複数の種類の様式で使用するとき「書式付き参照」で使用するためのものです.たとえば,
21741
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 theorem
21747 \end_layout
21748
21749 \end_inset
21750
21751 カウンタは,
21752 往々にしてTheoremやLemmaなど,
21753 定理型の環境の全種類で使用されます.第1引数は,
21754 ラベルで使用される前置詞(たとえば,
21755
21756 \begin_inset Quotes erd
21757 \end_inset
21758
21759 thm
21760 \begin_inset Quotes erd
21761 \end_inset
21762
21763
21764 \begin_inset Quotes erd
21765 \end_inset
21766
21767 lem
21768 \begin_inset Quotes erd
21769 \end_inset
21770
21771 )を与え,
21772 第2変数は,
21773
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 LabelString
21779 \end_layout
21780
21781 \end_inset
21782
21783
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 PrettyFormat
21789 \end_layout
21790
21791 \end_inset
21792
21793 に与えるような書式指定文字列を与えます.これが与えられなければ,
21794
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799 PrettyFormat
21800 \end_layout
21801
21802 \end_inset
21803
21804 が使用されます.
21805 \end_layout
21806
21807 \begin_layout Description
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 Within
21813 \end_layout
21814
21815 \end_inset
21816
21817  [
21818 \begin_inset Flex Code
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 文字列
21823 \end_layout
21824
21825 \end_inset
21826
21827 =
21828 \begin_inset Quotes erd
21829 \end_inset
21830
21831
21832 \begin_inset Quotes erd
21833 \end_inset
21834
21835 ] これを別のカウンタ名に設定すると,
21836 現在のカウンタは,
21837 別のカウンタが増加する毎にリセットされます.たとえば,
21838
21839 \begin_inset Flex Code
21840 status collapsed
21841
21842 \begin_layout Plain Layout
21843 subsection
21844 \end_layout
21845
21846 \end_inset
21847
21848
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853 section
21854 \end_layout
21855
21856 \end_inset
21857
21858 毎に番号がリセットされます.
21859 \end_layout
21860
21861 \begin_layout Subsection
21862 フォント指定
21863 \begin_inset CommandInset label
21864 LatexCommand label
21865 name "subsec:フォント指定"
21866
21867 \end_inset
21868
21869
21870 \end_layout
21871
21872 \begin_layout Standard
21873 フォント指定は,
21874 以下のような形を取ります.
21875 \end_layout
21876
21877 \begin_layout LyX-Code
21878 Font 
21879 \family roman
21880 \emph on
21881 または
21882 \family default
21883 \emph default
21884  LabelFont 
21885 \family roman
21886 \emph on
21887 または
21888 \family default
21889 \emph default
21890  DefaultFont
21891 \end_layout
21892
21893 \begin_layout LyX-Code
21894  ...
21895 \end_layout
21896
21897 \begin_layout LyX-Code
21898 EndFont
21899 \end_layout
21900
21901 \begin_layout Standard
21902 以下のコマンドを使用することができます.
21903 \end_layout
21904
21905 \begin_layout Description
21906 \begin_inset Flex Code
21907 status collapsed
21908
21909 \begin_layout Plain Layout
21910 Color
21911 \end_layout
21912
21913 \end_inset
21914
21915  [
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920 文字列
21921 \end_layout
21922
21923 \end_inset
21924
21925 ] 有効な引数については,
21926 付録
21927 \begin_inset CommandInset ref
21928 LatexCommand ref
21929 reference "chap:色名"
21930 plural "false"
21931 caps "false"
21932 noprefix "false"
21933 nolink "false"
21934
21935 \end_inset
21936
21937 をご覧ください.
21938 \end_layout
21939
21940 \begin_layout Description
21941 \begin_inset Flex Code
21942 status collapsed
21943
21944 \begin_layout Plain Layout
21945 Family
21946 \end_layout
21947
21948 \end_inset
21949
21950  [
21951 \emph on
21952
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 Roman
21958 \end_layout
21959
21960 \end_inset
21961
21962
21963 \emph default
21964 ,
21965  
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 Sans
21971 \end_layout
21972
21973 \end_inset
21974
21975 ,
21976  
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 Typewriter
21982 \end_layout
21983
21984 \end_inset
21985
21986
21987 \end_layout
21988
21989 \begin_layout Description
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 Misc
21995 \end_layout
21996
21997 \end_inset
21998
21999  [
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 文字列
22005 \end_layout
22006
22007 \end_inset
22008
22009 ] 有効な引数は,
22010
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 emph
22016 \end_layout
22017
22018 \end_inset
22019
22020
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 noun
22026 \end_layout
22027
22028 \end_inset
22029
22030
22031 \begin_inset Flex Code
22032 status collapsed
22033
22034 \begin_layout Plain Layout
22035 strikeout
22036 \end_layout
22037
22038 \end_inset
22039
22040
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 underbar
22046 \end_layout
22047
22048 \end_inset
22049
22050
22051 \begin_inset Flex Code
22052 status collapsed
22053
22054 \begin_layout Plain Layout
22055 uuline
22056 \end_layout
22057
22058 \end_inset
22059
22060
22061 \begin_inset Flex Code
22062 status collapsed
22063
22064 \begin_layout Plain Layout
22065 uwave
22066 \end_layout
22067
22068 \end_inset
22069
22070
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 no_emph
22076 \end_layout
22077
22078 \end_inset
22079
22080
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 no_noun
22086 \end_layout
22087
22088 \end_inset
22089
22090
22091 \begin_inset Flex Code
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095 no_strikeout
22096 \end_layout
22097
22098 \end_inset
22099
22100
22101 \begin_inset Flex Code
22102 status collapsed
22103
22104 \begin_layout Plain Layout
22105 no_bar
22106 \end_layout
22107
22108 \end_inset
22109
22110
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 no_uuline
22116 \end_layout
22117
22118 \end_inset
22119
22120
22121 \begin_inset Flex Code
22122 status collapsed
22123
22124 \begin_layout Plain Layout
22125 no_uwave
22126 \end_layout
22127
22128 \end_inset
22129
22130 です.それぞれ,
22131 対応する属性を有効にしたり無効にしたりします.
22132 \begin_inset Newline newline
22133 \end_inset
22134
22135 たとえば,
22136
22137 \begin_inset Flex Code
22138 status collapsed
22139
22140 \begin_layout Plain Layout
22141 emph
22142 \end_layout
22143
22144 \end_inset
22145
22146 は強調を有効にし,
22147
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 no_emph
22153 \end_layout
22154
22155 \end_inset
22156
22157 はそれを無効にします.もし後者がわかりにくければ,
22158 現在のコンテクストのフォント設定は,
22159 一般的に周囲のコンテクストから継承していることを思い出してください.ですから
22160 \begin_inset Flex Code
22161 status collapsed
22162
22163 \begin_layout Plain Layout
22164 no_emph
22165 \end_layout
22166
22167 \end_inset
22168
22169 は,
22170 たとえば定理環境で,
22171 何をせずとも有効となっている強調を無効にするのです.
22172 \end_layout
22173
22174 \begin_layout Description
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 Series
22180 \end_layout
22181
22182 \end_inset
22183
22184  [
22185 \emph on
22186
22187 \begin_inset Flex Code
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191 Medium
22192 \end_layout
22193
22194 \end_inset
22195
22196
22197 \emph default
22198 ,
22199  
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 Bold
22205 \end_layout
22206
22207 \end_inset
22208
22209
22210 \end_layout
22211
22212 \begin_layout Description
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 Shape
22218 \end_layout
22219
22220 \end_inset
22221
22222  [
22223 \emph on
22224
22225 \begin_inset Flex Code
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 Up
22230 \end_layout
22231
22232 \end_inset
22233
22234
22235 \emph default
22236 ,
22237  
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242 Italic
22243 \end_layout
22244
22245 \end_inset
22246
22247 ,
22248  
22249 \begin_inset Flex Code
22250 status collapsed
22251
22252 \begin_layout Plain Layout
22253 SmallCaps
22254 \end_layout
22255
22256 \end_inset
22257
22258 ,
22259  
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 Slanted
22265 \end_layout
22266
22267 \end_inset
22268
22269
22270 \end_layout
22271
22272 \begin_layout Description
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277 Size
22278 \end_layout
22279
22280 \end_inset
22281
22282  [
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 tiny
22288 \end_layout
22289
22290 \end_inset
22291
22292 ,
22293  
22294 \begin_inset Flex Code
22295 status collapsed
22296
22297 \begin_layout Plain Layout
22298 small
22299 \end_layout
22300
22301 \end_inset
22302
22303 ,
22304  
22305 \begin_inset Flex Code
22306 status collapsed
22307
22308 \begin_layout Plain Layout
22309
22310 \emph on
22311 normal
22312 \end_layout
22313
22314 \end_inset
22315
22316 ,
22317  
22318 \begin_inset Flex Code
22319 status collapsed
22320
22321 \begin_layout Plain Layout
22322 large
22323 \end_layout
22324
22325 \end_inset
22326
22327 ,
22328  
22329 \begin_inset Flex Code
22330 status collapsed
22331
22332 \begin_layout Plain Layout
22333 larger
22334 \end_layout
22335
22336 \end_inset
22337
22338 ,
22339  
22340 \begin_inset Flex Code
22341 status collapsed
22342
22343 \begin_layout Plain Layout
22344 largest
22345 \end_layout
22346
22347 \end_inset
22348
22349 ,
22350  
22351 \begin_inset Flex Code
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 huge
22356 \end_layout
22357
22358 \end_inset
22359
22360 ,
22361  
22362 \begin_inset Flex Code
22363 status collapsed
22364
22365 \begin_layout Plain Layout
22366 giant
22367 \end_layout
22368
22369 \end_inset
22370
22371 ]
22372 \end_layout
22373
22374 \begin_layout Subsection
22375 \begin_inset CommandInset label
22376 LatexCommand label
22377 name "subsec:引用エンジンの説明"
22378
22379 \end_inset
22380
22381 引用エンジンの説明
22382 \end_layout
22383
22384 \begin_layout Standard
22385 主に引用エンジンファイル(第
22386 \begin_inset CommandInset ref
22387 LatexCommand ref
22388 reference "subsec:引用エンジンファイル"
22389 plural "false"
22390 caps "false"
22391 noprefix "false"
22392 nolink "false"
22393
22394 \end_inset
22395
22396 節参照)で用いられる
22397 \begin_inset Flex Code
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401 CiteEngine
22402 \end_layout
22403
22404 \end_inset
22405
22406 ブロックは,
22407 特定の「引用エンジン」で提供される引用コマンドを定義します.\SpecialChar LyX
22408 の用語では,
22409 引用エンジンとは,
22410 番号や著者名,
22411 刊行年を使って,
22412 引用を整形する特定の方法のことを指します.\SpecialChar LyX
22413 は,
22414 3つのエンジンの型をサポートします.すなわち,
22415
22416 \end_layout
22417
22418 \begin_layout Enumerate
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 default
22424 \end_layout
22425
22426 \end_inset
22427
22428 :
22429  既定のBib\SpecialChar TeX
22430 流の引用方法である,
22431 単純な番号による様式(例:
22432 「[1]」)
22433 \end_layout
22434
22435 \begin_layout Enumerate
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 authoryear
22441 \end_layout
22442
22443 \end_inset
22444
22445 :
22446  著者名と刊行年を使ったHarvard様式の引用(例:
22447 「Smith and Miller (2017b)」)
22448 \end_layout
22449
22450 \begin_layout Enumerate
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 numerical
22456 \end_layout
22457
22458 \end_inset
22459
22460 :
22461  番号に隣接して著者名やタイトルを付けることのできる拡張された番号引用(例:
22462 「Smith and Miller [1]」)
22463 \end_layout
22464
22465 \begin_layout Standard
22466 \begin_inset Flex Code
22467 status collapsed
22468
22469 \begin_layout Plain Layout
22470 CiteEngine
22471 \end_layout
22472
22473 \end_inset
22474
22475 ブロックは以下のようになります.
22476 \end_layout
22477
22478 \begin_layout LyX-Code
22479 CiteEngine default
22480 \end_layout
22481
22482 \begin_layout LyX-Code
22483  cite
22484 \end_layout
22485
22486 \begin_layout LyX-Code
22487  Citep*[][]
22488 \end_layout
22489
22490 \begin_layout LyX-Code
22491  citeyearpar[][]=parencite*
22492 \end_layout
22493
22494 \begin_layout LyX-Code
22495  ...
22496 \end_layout
22497
22498 \begin_layout LyX-Code
22499 End
22500 \end_layout
22501
22502 \begin_layout Standard
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 CiteEngine
22508 \end_layout
22509
22510 \end_inset
22511
22512 に続くタグがエンジンを表します.各行は,
22513 このエンジンによってサポートされる引用コマンドや引用コマンドパラダイムを定義します.行は,
22514 \SpecialChar LyX
22515 コマンドと\SpecialChar LaTeX
22516 出力を命名するのに使われる引用コマンドのみを含むこともあれば,
22517 色々変えるために複雑なこともあります.完全な文法は
22518 \end_layout
22519
22520 \begin_layout LyX-Code
22521 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22522 \end_layout
22523
22524 \begin_layout Standard
22525 という形になっています.ここで
22526 \end_layout
22527
22528 \begin_layout Itemize
22529 \begin_inset Flex Code
22530 status collapsed
22531
22532 \begin_layout Plain Layout
22533 LyXName
22534 \end_layout
22535
22536 \end_inset
22537
22538 :
22539  
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 *.lyx
22545 \end_layout
22546
22547 \end_inset
22548
22549 ファイルで使用される名前.
22550 \end_layout
22551
22552 \begin_deeper
22553 \begin_layout Standard
22554 可搬性のために,
22555 異なる引用パッケージ中の同じ形をしたコマンドには,
22556 同じ名前をつけるようにしています(したがって,
22557 多くの名前がnatbibから派生しており,
22558 \SpecialChar LaTeX
22559 コマンド名が異なる場合には,
22560 しばしば
22561 \begin_inset Flex Code
22562 status collapsed
22563
22564 \begin_layout Plain Layout
22565 latexcmd
22566 \end_layout
22567
22568 \end_inset
22569
22570 を変える必要があります).
22571 \end_layout
22572
22573 \end_deeper
22574 \begin_layout Itemize
22575 \begin_inset Flex Code
22576 status collapsed
22577
22578 \begin_layout Plain Layout
22579 alias
22580 \end_layout
22581
22582 \end_inset
22583
22584 :
22585  このエンジンにおいて,
22586 与えられた
22587 \begin_inset Flex Code
22588 status collapsed
22589
22590 \begin_layout Plain Layout
22591 LyXName
22592 \end_layout
22593
22594 \end_inset
22595
22596 にフォールバックするコマンドの(コンマで区切られた)リスト.これによって,
22597 引用パッケージとエンジンを切り替えるのが楽になります.
22598 \begin_inset Flex Code
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602 alias
22603 \end_layout
22604
22605 \end_inset
22606
22607 はレイアウト定義中での
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 ObsoletedBy
22613 \end_layout
22614
22615 \end_inset
22616
22617 に相当するものと考えてよいでしょう.
22618 \end_layout
22619
22620 \begin_layout Itemize
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625 latexcmd
22626 \end_layout
22627
22628 \end_inset
22629
22630 :
22631  出力される実際の\SpecialChar LaTeX
22632 コマンド.
22633 \end_layout
22634
22635 \begin_layout Standard
22636 \begin_inset Flex Code
22637 status collapsed
22638
22639 \begin_layout Plain Layout
22640 Alias
22641 \end_layout
22642
22643 \end_inset
22644
22645
22646 \begin_inset Flex Code
22647 status collapsed
22648
22649 \begin_layout Plain Layout
22650 latexcmd
22651 \end_layout
22652
22653 \end_inset
22654
22655 は必須ではありません.
22656 \begin_inset Flex Code
22657 status collapsed
22658
22659 \begin_layout Plain Layout
22660 latexcmd
22661 \end_layout
22662
22663 \end_inset
22664
22665 が与えられない時は,
22666
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671 LyXName
22672 \end_layout
22673
22674 \end_inset
22675
22676 が\SpecialChar LaTeX
22677 に出力されます.
22678 \end_layout
22679
22680 \begin_layout Standard
22681 さらに,
22682 下記の点に注意してください.
22683 \end_layout
22684
22685 \begin_layout Itemize
22686 大文字にするとコマンドも大文字化されたものになります(
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691
22692 \backslash
22693 latexcmd
22694 \end_layout
22695
22696 \end_inset
22697
22698
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703
22704 \backslash
22705 Latexcmd
22706 \end_layout
22707
22708 \end_inset
22709
22710 に).これらは通常,
22711 名前の前置詞を大文字化するのを確実にします(
22712 \emph on
22713 von Goethe
22714 \emph default
22715  
22716 \begin_inset Formula $\Rightarrow$
22717 \end_inset
22718
22719  
22720 \emph on
22721 Von Goethe
22722 \emph default
22723 ).
22724 \end_layout
22725
22726 \begin_layout Itemize
22727 括弧
22728 \begin_inset Flex Code
22729 status collapsed
22730
22731 \begin_layout Plain Layout
22732 []
22733 \end_layout
22734
22735 \end_inset
22736
22737 は非必須引数の数を表します(0-2をとりえます).
22738 \end_layout
22739
22740 \begin_layout Itemize
22741 星印
22742 \begin_inset Flex Code
22743 status collapsed
22744
22745 \begin_layout Plain Layout
22746 *
22747 \end_layout
22748
22749 \end_inset
22750
22751 は星印付きコマンドを示します(
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756
22757 \backslash
22758 latexcmd
22759 \end_layout
22760
22761 \end_inset
22762
22763
22764 \begin_inset Flex Code
22765 status collapsed
22766
22767 \begin_layout Plain Layout
22768
22769 \backslash
22770 latexcmd*
22771 \end_layout
22772
22773 \end_inset
22774
22775 に).
22776 \end_layout
22777
22778 \begin_deeper
22779 \begin_layout Standard
22780 既定では,
22781 星印付きバージョンは,
22782
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 MaxCiteNames
22788 \end_layout
22789
22790 \end_inset
22791
22792 の閾値を超えたために「et al.」に省略されるべき時にも全ての著者を出力することを意味します.
22793 \end_layout
22794
22795 \begin_layout Standard
22796 星印が,
22797 当該コマンドについては別の意味を持つ場合には,
22798
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803 <!_stardesc!_stardesctooltip>
22804 \end_layout
22805
22806 \end_inset
22807
22808 のように三角括弧で指定することができます.前置詞
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 !_
22814 \end_layout
22815
22816 \end_inset
22817
22818 で標識した,
22819 翻訳可能なキーワードを最大2つ与えることができます.最初のキーワードは,
22820 引用ダイアログ中の「Full aut&hor list」チェックボックスラベルを書き換える文字列を指し,
22821 二つ目のキーワードは,
22822 このチェックボックスに対する非必須のツールチップの文字列を指します.
22823 \end_layout
22824
22825 \begin_layout Standard
22826 これらの2つのマクロは,
22827 下記のように,
22828 前置詞から
22829 \begin_inset Flex Code
22830 status collapsed
22831
22832 \begin_layout Plain Layout
22833 !
22834 \end_layout
22835
22836 \end_inset
22837
22838 を落とした形で
22839 \begin_inset Flex Code
22840 status collapsed
22841
22842 \begin_layout Plain Layout
22843 CiteFormat
22844 \end_layout
22845
22846 \end_inset
22847
22848 (次節参照)で定義されなくてはなりません.
22849 \end_layout
22850
22851 \begin_layout LyX-Code
22852 _stardesc Sta&rred command label
22853 \end_layout
22854
22855 \begin_layout LyX-Code
22856 _stardesctooltip Tooltip for the starred command checkbox.
22857 \end_layout
22858
22859 \end_deeper
22860 \begin_layout Itemize
22861 ドル記号
22862 \begin_inset Flex Code
22863 status collapsed
22864
22865 \begin_layout Plain Layout
22866 $
22867 \end_layout
22868
22869 \end_inset
22870
22871 は,
22872 このコマンドが「qualified citation lists」を取り扱うことを示します.これは,
22873 リスト中の個別の引用に対して,
22874 前置文字列と後置文字列を置くことができる,
22875
22876 \family sans
22877 Biblatex
22878 \family default
22879 に特有の複数文献引用機能です.詳細については,
22880
22881 \family sans
22882 Biblatex
22883 \family default
22884 の取扱説明書をご覧ください.
22885 \end_layout
22886
22887 \begin_layout Standard
22888 引用エンジンに引用コマンドを追加したい場合(たとえばクラスによって提供される特定のコマンドを追加するなど)には,
22889
22890 \begin_inset Flex Code
22891 status collapsed
22892
22893 \begin_layout Plain Layout
22894 AddToCiteEngine <engine type> \SpecialChar ldots
22895  End
22896 \end_layout
22897
22898 \end_inset
22899
22900 を使うことができます.まだ存在しない引用コマンドのみ追加することができます.
22901 \end_layout
22902
22903 \begin_layout Subsection
22904 \begin_inset CommandInset label
22905 LatexCommand label
22906 name "subsec:引用書式指定"
22907
22908 \end_inset
22909
22910 引用書式指定
22911 \end_layout
22912
22913 \begin_layout Standard
22914 (引用ダイアログやツールチップなどの)\SpecialChar LyX
22915 内部やXHTML出力において,
22916 書誌情報をどのように表示するべきかの叙述には,
22917
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922 CiteFormat
22923 \end_layout
22924
22925 \end_inset
22926
22927 ブロックが使用されています.このブロックは,
22928 以下のような形をしています.
22929 \end_layout
22930
22931 \begin_layout LyX-Code
22932 CiteFormat
22933 \end_layout
22934
22935 \begin_layout LyX-Code
22936  article ...
22937 \end_layout
22938
22939 \begin_layout LyX-Code
22940  book ...
22941 \end_layout
22942
22943 \begin_layout LyX-Code
22944 End
22945 \end_layout
22946
22947 \begin_layout Standard
22948 あるいは
22949 \end_layout
22950
22951 \begin_layout LyX-Code
22952 CiteFormat
22953 \end_layout
22954
22955 \begin_layout LyX-Code
22956  cite ...
22957 \end_layout
22958
22959 \begin_layout LyX-Code
22960  citet*[][] ...
22961 \end_layout
22962
22963 \begin_layout LyX-Code
22964 End
22965 \end_layout
22966
22967 \begin_layout Standard
22968 最初の例の各行は,
22969 それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,
22970 このような定義は,
22971 Bib\SpecialChar TeX
22972 ファイル中に存在しうる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,
22973 \SpecialChar LyX
22974 は,
22975 ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
22976 は,
22977 いくつかの書式を
22978 \begin_inset Flex Code
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982 stdciteformats.inc
22983 \end_layout
22984
22985 \end_inset
22986
22987 ファイルで事前定義しており,
22988 これはほとんどの\SpecialChar LyX
22989 文書クラスにインクルードされています.
22990 \end_layout
22991
22992 \begin_layout Standard
22993 2つ目の例では,
22994 各行は,
22995 特定の引用コマンド(この例では
22996 \begin_inset Flex Code
22997 status collapsed
22998
22999 \begin_layout Plain Layout
23000
23001 \backslash
23002 cite
23003 \end_layout
23004
23005 \end_inset
23006
23007 及び
23008 \begin_inset Flex Code
23009 status collapsed
23010
23011 \begin_layout Plain Layout
23012
23013 \backslash
23014 citet
23015 \end_layout
23016
23017 \end_inset
23018
23019 )が,
23020 引用差込枠ラベルや引用ダイアログ,
23021 メニュー,
23022 XHTML出力でどのように表示されるべきかを定義しています.\SpecialChar LyX
23023 は,
23024 \SpecialChar LyX
23025 に同梱されている個別の
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 *.citeengine
23031 \end_layout
23032
23033 \end_inset
23034
23035 ファイル中において,
23036
23037 \family sans
23038 文書\SpecialChar menuseparator
23039 設定\SpecialChar menuseparator
23040 書誌情報\SpecialChar ldots
23041
23042 \family default
23043 でサポートしている引用様式用に,
23044 そのような書式を定義しています(第
23045 \begin_inset CommandInset ref
23046 LatexCommand ref
23047 reference "subsec:引用エンジンファイル"
23048 plural "false"
23049 caps "false"
23050 noprefix "false"
23051 nolink "false"
23052
23053 \end_inset
23054
23055 節参照).
23056 \end_layout
23057
23058 \begin_layout Standard
23059 この定義は,
23060 Bib\SpecialChar TeX
23061 キーをその値で置換できる機能を持った,
23062 簡単な言語を使用しています.キーは,
23063
23064 \begin_inset Flex Code
23065 status collapsed
23066
23067 \begin_layout Plain Layout
23068 %author%
23069 \end_layout
23070
23071 \end_inset
23072
23073 のように
23074 \begin_inset Flex Code
23075 status collapsed
23076
23077 \begin_layout Plain Layout
23078 %
23079 \end_layout
23080
23081 \end_inset
23082
23083 記号でくくらなくてはなりません.したがって,
23084 簡単な定義は以下のようになります.
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088 misc %author%,
23089  
23090 \begin_inset Quotes eld
23091 \end_inset
23092
23093 %title%
23094 \begin_inset Quotes erd
23095 \end_inset
23096
23097
23098 \end_layout
23099
23100 \begin_layout Standard
23101 これは,
23102 「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
23103 \end_layout
23104
23105 \begin_layout Standard
23106 もちろん,
23107 キーが存在するときのみ,
23108 そのキーを出力したい時があるはずです.このようなときには
23109 \begin_inset Flex Code
23110 status collapsed
23111
23112 \begin_layout Plain Layout
23113 {%volume%[[vol.
23114 \begin_inset space ~
23115 \end_inset
23116
23117 %volume%]]}
23118 \end_layout
23119
23120 \end_inset
23121
23122 のように,
23123 条件付きの構成を使用することができます.これは,
23124
23125 \begin_inset Flex Code
23126 status collapsed
23127
23128 \begin_layout Plain Layout
23129 volume
23130 \end_layout
23131
23132 \end_inset
23133
23134 が存在するならば,
23135 「vol.
23136 \begin_inset space ~
23137 \end_inset
23138
23139 」とvolumeキーを出力するという意味です.また,
23140
23141 \begin_inset Newline newline
23142 \end_inset
23143
23144
23145 \begin_inset Flex Code
23146 status collapsed
23147
23148 \begin_layout Plain Layout
23149 {%author%[[%author%]][[%editor%,
23150  ed.]]}
23151 \end_layout
23152
23153 \end_inset
23154
23155
23156 \begin_inset Newline newline
23157 \end_inset
23158
23159 のように,
23160 条件の中にelse節を含めることも可能です.ここでは,
23161 もし
23162 \begin_inset Flex Code
23163 status collapsed
23164
23165 \begin_layout Plain Layout
23166 author
23167 \end_layout
23168
23169 \end_inset
23170
23171 キーが存在するならば出力され,
23172 そうでなければeditorキーと「,
23173 \begin_inset space ~
23174 \end_inset
23175
23176 ed.」が出力されます.ここでもキーは,
23177
23178 \begin_inset Flex Code
23179 status collapsed
23180
23181 \begin_layout Plain Layout
23182 %
23183 \end_layout
23184
23185 \end_inset
23186
23187 記号でくくられていることに注意してください.条件全体は,
23188 波括弧で囲まれています.if節およびelse節は,
23189
23190 \begin_inset Flex Code
23191 status collapsed
23192
23193 \begin_layout Plain Layout
23194 [[
23195 \end_layout
23196
23197 \end_inset
23198
23199 」と「
23200 \begin_inset Flex Code
23201 status collapsed
23202
23203 \begin_layout Plain Layout
23204 ]]
23205 \end_layout
23206
23207 \end_inset
23208
23209 」の二重角括弧で囲まれています.これらすべてのあいだには,
23210 空白は入ってはなりません.
23211 \end_layout
23212
23213 \begin_layout Standard
23214 これらの条件文に使うことができるものには,
23215 項目キーの他に,
23216 以下の特殊キーがあります.
23217 \end_layout
23218
23219 \begin_layout Itemize
23220 \begin_inset Flex Code
23221 status collapsed
23222
23223 \begin_layout Plain Layout
23224 {%dialog%[[真]][[偽]]}
23225 \end_layout
23226
23227 \end_inset
23228
23229 :
23230  ダイアログとメニューに対しては「真」の部分を処理し,
23231 他の文脈(作業領域や書き出し)には「偽」の部分を処理します
23232 \end_layout
23233
23234 \begin_layout Itemize
23235 \begin_inset Flex Code
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239 {%export%[[真]][[偽]]}
23240 \end_layout
23241
23242 \end_inset
23243
23244 :
23245  書き出しとメニューに対しては「真」の部分を処理し,
23246 他の文脈(作業領域やダイアログ)には「偽」の部分を処理します
23247 \end_layout
23248
23249 \begin_layout Itemize
23250 \begin_inset Flex Code
23251 status collapsed
23252
23253 \begin_layout Plain Layout
23254 {%next%[[真]]}
23255 \end_layout
23256
23257 \end_inset
23258
23259 :
23260  他の項目が続く場合には「真」の部分を処理します(複数キーを持つ引用など)
23261 \end_layout
23262
23263 \begin_layout Itemize
23264 \begin_inset Flex Code
23265 status collapsed
23266
23267 \begin_layout Plain Layout
23268 {%second%[[真]][[偽]]}
23269 \end_layout
23270
23271 \end_inset
23272
23273 :
23274  これが複数項目の2番目の場合には「真」の部分を処理し,
23275 それ以外の場合には「偽」の部分を処理します
23276 \end_layout
23277
23278 \begin_layout Itemize
23279 \begin_inset Flex Code
23280 status collapsed
23281
23282 \begin_layout Plain Layout
23283 {%ifstar%[[真]][[偽]]}
23284 \end_layout
23285
23286 \end_inset
23287
23288 :
23289  (
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294
23295 \backslash
23296 cite*
23297 \end_layout
23298
23299 \end_inset
23300
23301 など)星印付き引用コマンドの場合には「真」の部分を処理し,
23302 星印付きでない場合には「偽」の部分を処理します
23303 \end_layout
23304
23305 \begin_layout Itemize
23306 \begin_inset Flex Code
23307 status collapsed
23308
23309 \begin_layout Plain Layout
23310 {%ifentrytype:<type>%[[真]][[偽]]}
23311 \end_layout
23312
23313 \end_inset
23314
23315 :
23316  現行の項目が
23317 \begin_inset Flex Code
23318 status collapsed
23319
23320 \begin_layout Plain Layout
23321 <型>
23322 \end_layout
23323
23324 \end_inset
23325
23326 に一致する場合には「真」の部分を処理し,
23327 それ以外の場合には「偽」の部分を処理します(例:
23328 引用定義において
23329 \begin_inset Flex Code
23330 status collapsed
23331
23332 \begin_layout Plain Layout
23333 {%ifentrytype:book%[[これはbookです]][[これはbookではありません]]}
23334 \end_layout
23335
23336 \end_inset
23337
23338
23339 \end_layout
23340
23341 \begin_layout Itemize
23342 \begin_inset Flex Code
23343 status collapsed
23344
23345 \begin_layout Plain Layout
23346 {%ifmultiple:<authortype>%[[真]][[偽]]}
23347 \end_layout
23348
23349 \end_inset
23350
23351 :
23352  現行の項目が著者型(著者・編者など)が複数の著者を含む場合には「真」の部分を処理し,
23353 それ以外の場合には「偽」の部分を処理します(例:
23354 書誌情報定義において
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 {%ifmultiple:editor%[[eds.]][[ed.]]}
23360 \end_layout
23361
23362 \end_inset
23363
23364
23365 \end_layout
23366
23367 \begin_layout Itemize
23368 \begin_inset Flex Code
23369 status collapsed
23370
23371 \begin_layout Plain Layout
23372 {%ifqualified%[[真]][[偽]]}
23373 \end_layout
23374
23375 \end_inset
23376
23377 :
23378  現行の引用がqualified citation listである(複数文献引用に対する
23379 \family sans
23380 Biblatex
23381 \family default
23382 特有の形式)場合には「真」の部分を処理し,
23383 それ以外の場合には「偽」の部分を処理します
23384 \end_layout
23385
23386 \begin_layout Standard
23387 \begin_inset Flex Code
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391 %author%
23392 \end_layout
23393
23394 \end_inset
23395
23396 は書誌情報ファイルに記録されている形のままの著者キーを出力すると述べました.これは「Miller,
23397  Peter and Smith,
23398  Mary and White,
23399  Jane」のような文字列に終わることがあり(Bib\SpecialChar TeX
23400 では著者を区切るのに「and」が用いられるため),
23401 望ましい結果ではありません.したがって,
23402 \SpecialChar LyX
23403 は,
23404 正しく整形された名前のリスト(これも翻訳の対象となります)を得るための方法を提供しています.以下のキーが提供されています.
23405 \end_layout
23406
23407 \begin_layout Enumerate
23408 書誌情報項目の主要著者・編者に適した,
23409 姓名付き名前リスト用.
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414 <nametype>
23415 \end_layout
23416
23417 \end_inset
23418
23419 部分は要請されているリスト型を表します(例:
23420
23421 \begin_inset Flex Code
23422 status collapsed
23423
23424 \begin_layout Plain Layout
23425 <nametype:author>
23426 \end_layout
23427
23428 \end_inset
23429
23430
23431 \end_layout
23432
23433 \begin_deeper
23434 \begin_layout Itemize
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 %abbrvnames:<nametype>%
23440 \end_layout
23441
23442 \end_inset
23443
23444 :
23445  
23446 \begin_inset Flex Code
23447 status collapsed
23448
23449 \begin_layout Plain Layout
23450 MaxCiteNames
23451 \end_layout
23452
23453 \end_inset
23454
23455 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
23456 \end_layout
23457
23458 \begin_layout Itemize
23459 \begin_inset Flex Code
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 %fullnames:<nametype>%
23464 \end_layout
23465
23466 \end_inset
23467
23468 :
23469  完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
23470 \end_layout
23471
23472 \begin_layout Itemize
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 %forceabbrvnames:<nametype>%
23478 \end_layout
23479
23480 \end_inset
23481
23482 :
23483  
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488 MaxCiteNames
23489 \end_layout
23490
23491 \end_inset
23492
23493 に関わらず,
23494 常に短縮される(「et al.」と共に供される)名前リストを提供します.
23495 \end_layout
23496
23497 \end_deeper
23498 \begin_layout Enumerate
23499 書誌情報項目中の姓名の順序が異なっている場合の,
23500 姓名付き名前リスト(例:
23501 「Miller,
23502  John:
23503  何らかの文,
23504  in:
23505  Mary Smith,
23506  ed.:
23507  A volume」
23508 \end_layout
23509
23510 \begin_deeper
23511 \begin_layout Itemize
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 %abbrvbynames:<nametype>%
23517 \end_layout
23518
23519 \end_inset
23520
23521 :
23522  
23523 \begin_inset Flex Code
23524 status collapsed
23525
23526 \begin_layout Plain Layout
23527 MaxCiteNames
23528 \end_layout
23529
23530 \end_inset
23531
23532 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
23533 \end_layout
23534
23535 \begin_layout Itemize
23536 \begin_inset Flex Code
23537 status collapsed
23538
23539 \begin_layout Plain Layout
23540 %fullbynames:<nametype>%
23541 \end_layout
23542
23543 \end_inset
23544
23545 :
23546  完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
23547 \end_layout
23548
23549 \begin_layout Itemize
23550 \begin_inset Flex Code
23551 status collapsed
23552
23553 \begin_layout Plain Layout
23554 %forceabbrvbynames:<nametype>%
23555 \end_layout
23556
23557 \end_inset
23558
23559 :
23560  
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 MaxCiteNames
23566 \end_layout
23567
23568 \end_inset
23569
23570 に関わらず,
23571 常に短縮される(「et al.」と共に供される)名前リストを提供します.
23572 \end_layout
23573
23574 \end_deeper
23575 \begin_layout Enumerate
23576 著者-発行年引用ラベルで用いられるような,
23577 姓のみを含む姓リスト.これらは
23578 \begin_inset Flex Code
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582 <nametype>
23583 \end_layout
23584
23585 \end_inset
23586
23587 部分を取りませんが,
23588 (著者-発行年ラベルで通例であるように)常に著者リストか,
23589 存在しない場合には編者リストを返します.
23590 \end_layout
23591
23592 \begin_deeper
23593 \begin_layout Itemize
23594 \begin_inset Flex Code
23595 status collapsed
23596
23597 \begin_layout Plain Layout
23598 %abbrvciteauthor%
23599 \end_layout
23600
23601 \end_inset
23602
23603 :
23604  
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 MaxCiteNames
23610 \end_layout
23611
23612 \end_inset
23613
23614 に達した場合に短縮される(「et al.」と共に供される)名前リストを提供します.
23615 \end_layout
23616
23617 \begin_layout Itemize
23618 \begin_inset Flex Code
23619 status collapsed
23620
23621 \begin_layout Plain Layout
23622 %fullciteauthor%
23623 \end_layout
23624
23625 \end_inset
23626
23627 :
23628  完全な名前リストを提供します(「et al.」を用いて短縮されることはありません).
23629 \end_layout
23630
23631 \begin_layout Itemize
23632 \begin_inset Flex Code
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 %forceabbrvciteauthor%
23637 \end_layout
23638
23639 \end_inset
23640
23641 :
23642  
23643 \begin_inset Flex Code
23644 status collapsed
23645
23646 \begin_layout Plain Layout
23647 MaxCiteNames
23648 \end_layout
23649
23650 \end_inset
23651
23652 に関わらず,
23653 常に短縮される(「et al.」と共に供される)名前リストを提供します.
23654 \end_layout
23655
23656 \end_deeper
23657 \begin_layout Standard
23658 前二者の姓名の順序は,
23659 下記のマクロで変更することができます.
23660 \end_layout
23661
23662 \begin_layout Itemize
23663 \begin_inset Flex Code
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 !firstnameform %surname%,
23668  %prename%
23669 \end_layout
23670
23671 \end_inset
23672
23673 (1の場合の最初の著者)
23674 \end_layout
23675
23676 \begin_layout Itemize
23677 \begin_inset Flex Code
23678 status collapsed
23679
23680 \begin_layout Plain Layout
23681 !othernameform %surname%,
23682  %prename%
23683 \end_layout
23684
23685 \end_inset
23686
23687 (1の場合の他の著者)
23688 \end_layout
23689
23690 \begin_layout Itemize
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 !firstbynameform %prename% %surname%
23696 \end_layout
23697
23698 \end_inset
23699
23700 (2の場合の最初の著者)
23701 \end_layout
23702
23703 \begin_layout Itemize
23704 \begin_inset Flex Code
23705 status collapsed
23706
23707 \begin_layout Plain Layout
23708 !otherbynameform %prename% %surname%
23709 \end_layout
23710
23711 \end_inset
23712
23713 (2の場合の他の著者)
23714 \end_layout
23715
23716 \begin_layout Standard
23717 これによって,
23718 名前を「Miller,
23719  Peter and Mary Smith:
23720  \SpecialChar ldots
23721 ,
23722  in:
23723  John Doe and Pat Green,
23724  eds.:\SpecialChar ldots
23725 」のように設定することができます.
23726 \end_layout
23727
23728 \begin_layout Standard
23729 もう一つ,
23730 定義中で使用することのできる文法として,
23731
23732 \begin_inset Flex Code
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736 {!<i>!}
23737 \end_layout
23738
23739 \end_inset
23740
23741 という形をしたものがあります.これは,
23742 「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,
23743 平文を書き出すときには,
23744 HTMLタグを出力させたくはありませんから,
23745 HTMLタグは「
23746 \begin_inset Flex Code
23747 status collapsed
23748
23749 \begin_layout Plain Layout
23750 {!
23751 \end_layout
23752
23753 \end_inset
23754
23755 」と「
23756 \begin_inset Flex Code
23757 status collapsed
23758
23759 \begin_layout Plain Layout
23760 !}
23761 \end_layout
23762
23763 \end_inset
23764
23765 」でくるんでやらなくてはならないのです.
23766 \end_layout
23767
23768 \begin_layout Standard
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 CiteFormat
23774 \end_layout
23775
23776 \end_inset
23777
23778 ブロックでは,
23779 他に2つの特殊な定義が可能です.一つめの例としては,
23780
23781 \end_layout
23782
23783 \begin_layout LyX-Code
23784 !quotetitle 
23785 \begin_inset Quotes eld
23786 \end_inset
23787
23788 %title%
23789 \begin_inset Quotes erd
23790 \end_inset
23791
23792
23793 \end_layout
23794
23795 \begin_layout Standard
23796 といった例が挙げられます.これは,
23797 短縮形ないしはマクロであり,
23798
23799 \begin_inset Flex Code
23800 status collapsed
23801
23802 \begin_layout Plain Layout
23803 %!quotetitle%
23804 \end_layout
23805
23806 \end_inset
23807
23808 のように,
23809 これがキーであるかのように扱って使用することができます.\SpecialChar LyX
23810 は,
23811
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 %!quotetitle%
23817 \end_layout
23818
23819 \end_inset
23820
23821 を,
23822 そこで定義されているものを扱う場合と同じように取り扱います.ですから,
23823 明白な警告を敢えてさせて頂くと,
23824
23825 \end_layout
23826
23827 \begin_layout LyX-Code
23828 !funfun %funfun%
23829 \end_layout
23830
23831 \begin_layout Standard
23832 のようなことはしないでください.\SpecialChar LyX
23833 は,
23834 無限ループに陥るようなことはありませんが,
23835 諦めるまでに時間のかかる長いループに入るかもしれません.
23836 \end_layout
23837
23838 \begin_layout Standard
23839 特殊な定義の二つめは,
23840
23841 \end_layout
23842
23843 \begin_layout LyX-Code
23844 B_pptext pp.
23845 \end_layout
23846
23847 \begin_layout Standard
23848 のようなものです.これは翻訳対象となるテキスト部分を定義し,
23849 これによって書誌情報や引用の対応する部分が翻訳されるようになります.
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854 %B_pptext%
23855 \end_layout
23856
23857 \end_inset
23858
23859 のように,
23860 これをキーとして扱って,
23861 定義の中に入れることもできます.以下の2つの翻訳パスがあることに注意してください.上記の例のように
23862 \begin_inset Flex Code
23863 status collapsed
23864
23865 \begin_layout Plain Layout
23866 B_
23867 \end_layout
23868
23869 \end_inset
23870
23871 で始まる定義は,
23872 すべて現在アクティブなバッファ言語に翻訳されます(したがって翻訳は生成された文書に一致します).アンダースコアだけから始まる定義は,
23873 すべてGUI言語に翻訳されます.これは
23874 \end_layout
23875
23876 \begin_layout LyX-Code
23877 _addtobib Add to bibliography only
23878 \end_layout
23879
23880 \begin_layout Standard
23881 のように,
23882 ダイアログやボタンにのみ現れる文字列に適した翻訳です.
23883 \end_layout
23884
23885 \begin_layout Standard
23886 これらの翻訳可能な文字列のうちいくつかは,
23887
23888 \begin_inset Flex Code
23889 status collapsed
23890
23891 \begin_layout Plain Layout
23892 stdciteformats.inc
23893 \end_layout
23894
23895 \end_inset
23896
23897 及び様々な
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902 *.citeengine
23903 \end_layout
23904
23905 \end_inset
23906
23907 ファイル中に事前定義されています.これは,
23908 上記で述べたような意味でのマクロではないことに注意してください.
23909 \end_layout
23910
23911 \begin_layout Standard
23912 以下は,
23913 これらの機能を全て使った例です.
23914 \begin_inset VSpace defskip
23915 \end_inset
23916
23917
23918 \end_layout
23919
23920 \begin_layout Standard
23921 \noindent
23922
23923 \family sans
23924 !authoredit {%author%[[%author%,
23925  ]][[{%editor%[[%editor%,
23926  %B_edtext%,
23927  ]]}]]}
23928 \end_layout
23929
23930 \begin_layout Standard
23931 \begin_inset VSpace defskip
23932 \end_inset
23933
23934 これは,
23935
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 author
23941 \end_layout
23942
23943 \end_inset
23944
23945 キーが定義されているならば,
23946 著者とコンマを出力し,
23947
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952 author
23953 \end_layout
23954
23955 \end_inset
23956
23957 キーが定義されておらず,
23958
23959 \begin_inset Flex Code
23960 status collapsed
23961
23962 \begin_layout Plain Layout
23963 editor
23964 \end_layout
23965
23966 \end_inset
23967
23968 キーが定義されているならば,
23969 編集者名の後に
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 B_edtext
23975 \end_layout
23976
23977 \end_inset
23978
23979 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
23980 \begin_inset Flex Code
23981 status collapsed
23982
23983 \begin_layout Plain Layout
23984 stdciteformats.inc
23985 \end_layout
23986
23987 \end_inset
23988
23989 の中で定義されていますので,
23990 このファイルをまず読みこめば,
23991 ご自身の定義ないしは再定義の中で使用することができます.
23992 \end_layout
23993
23994 \begin_layout Section
23995 \begin_inset CommandInset label
23996 LatexCommand label
23997 name "sec:XHTML出力のタグ"
23998
23999 \end_inset
24000
24001 XHTML出力のタグ
24002 \end_layout
24003
24004 \begin_layout Standard
24005 \SpecialChar LaTeX
24006 やDocBookと同様,
24007 \SpecialChar LyX
24008 のXHTML出力の書式も,
24009 レイアウト情報によって制御することができます.一般的に,
24010 \SpecialChar LyX
24011 は適切な既定値を提供し,
24012 前述したように,
24013 他のレイアウトタグに基づいて,
24014 既定のCSSスタイルの構成まで行ないます.たとえば,
24015 章見出しを適切に整形するためのCSSを書き出すために,
24016 \SpecialChar LyX
24017 は,
24018 章様式の
24019 \begin_inset Flex Code
24020 status collapsed
24021
24022 \begin_layout Plain Layout
24023 Font
24024 \end_layout
24025
24026 \end_inset
24027
24028 宣言で提供されている情報を利用しようと試みます.
24029 \end_layout
24030
24031 \begin_layout Standard
24032 したがって,
24033 多くの場合,
24034 使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,
24035 まったく何もしなくてよいことになるでしょう.しかしながら,
24036 これが必要になる場合もあるので,
24037 \SpecialChar LyX
24038 は,
24039 生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,
24040 たくさん提供しています.
24041 \end_layout
24042
24043 \begin_layout Standard
24044 様式宣言や差込枠宣言の外で使用することができるタグに,
24045
24046 \begin_inset Flex Code
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 HTMLPreamble
24051 \end_layout
24052
24053 \end_inset
24054
24055
24056 \begin_inset Flex Code
24057 status collapsed
24058
24059 \begin_layout Plain Layout
24060 AddToHTMLPreamble
24061 \end_layout
24062
24063 \end_inset
24064
24065 の2つがあることに注意してください.これらの詳細については,
24066
24067 \begin_inset CommandInset ref
24068 LatexCommand ref
24069 reference "subsec:汎用テキストクラスパラメータ"
24070 nolink "false"
24071
24072 \end_inset
24073
24074 をご覧ください.
24075 \end_layout
24076
24077 \begin_layout Subsection
24078 \begin_inset CommandInset label
24079 LatexCommand label
24080 name "subsec:段落様式-XHTML"
24081
24082 \end_inset
24083
24084 段落様式
24085 \end_layout
24086
24087 \begin_layout Standard
24088 \SpecialChar LyX
24089 が段落のために出力するXHTMLの種類は,
24090 通常の段落を取り扱っているのか,
24091 コマンドを取り扱っているのか,
24092 あるいは環境を取り扱っているのかに依存し,
24093 これは対応する
24094 \begin_inset Flex Code
24095 status collapsed
24096
24097 \begin_layout Plain Layout
24098 \SpecialChar LaTeX
24099 Type
24100 \end_layout
24101
24102 \end_inset
24103
24104 タグの内容によって決定されます.
24105 \end_layout
24106
24107 \begin_layout Standard
24108 コマンドや通常の段落の場合には,
24109 XHTML出力は以下の形になります.
24110 \end_layout
24111
24112 \begin_layout LyX-Code
24113
24114 \family sans
24115 <tag attr=
24116 \begin_inset Quotes erd
24117 \end_inset
24118
24119 value
24120 \begin_inset Quotes erd
24121 \end_inset
24122
24123 >
24124 \end_layout
24125
24126 \begin_layout LyX-Code
24127
24128 \family sans
24129 <labeltag attr=
24130 \begin_inset Quotes erd
24131 \end_inset
24132
24133 value
24134 \begin_inset Quotes erd
24135 \end_inset
24136
24137 >ラベル</labeltag>
24138 \end_layout
24139
24140 \begin_layout LyX-Code
24141
24142 \family sans
24143 段落の内容
24144 \end_layout
24145
24146 \begin_layout LyX-Code
24147
24148 \family sans
24149 </tag>
24150 \end_layout
24151
24152 \begin_layout Standard
24153 もちろん,
24154 段落にラベルがなければ,
24155 ラベルタグは省略することができます.
24156 \end_layout
24157
24158 \begin_layout Standard
24159 環境のうち,
24160 リストの変種でないものに関しては,
24161 XHTMLは以下の形を取ります.
24162 \end_layout
24163
24164 \begin_layout LyX-Code
24165
24166 \family sans
24167 <tag attr=
24168 \begin_inset Quotes erd
24169 \end_inset
24170
24171 value
24172 \begin_inset Quotes erd
24173 \end_inset
24174
24175 >
24176 \end_layout
24177
24178 \begin_layout LyX-Code
24179
24180 \family sans
24181 <itemtag attr=
24182 \begin_inset Quotes erd
24183 \end_inset
24184
24185 value
24186 \begin_inset Quotes erd
24187 \end_inset
24188
24189 ><labeltag attr=
24190 \begin_inset Quotes erd
24191 \end_inset
24192
24193 value
24194 \begin_inset Quotes erd
24195 \end_inset
24196
24197 >環境ラベル</labeltag>最初の段落.
24198 \end_layout
24199
24200 \begin_layout LyX-Code
24201
24202 \family sans
24203 </itemtag>
24204 \end_layout
24205
24206 \begin_layout LyX-Code
24207
24208 \family sans
24209 <itemtag>二つめの段落.</itemtag>
24210 \end_layout
24211
24212 \begin_layout LyX-Code
24213
24214 \family sans
24215 </tag>
24216 \end_layout
24217
24218 \begin_layout Standard
24219 ラベルは,
24220 たとえば定理の場合にそうであるように,
24221 最初の段落にだけ出力されることに注意してください.
24222 \end_layout
24223
24224 \begin_layout Standard
24225 リストに関しては,
24226 次のような形になります.
24227 \end_layout
24228
24229 \begin_layout LyX-Code
24230
24231 \family sans
24232 <tag attr=
24233 \begin_inset Quotes erd
24234 \end_inset
24235
24236 value
24237 \begin_inset Quotes erd
24238 \end_inset
24239
24240 >
24241 \end_layout
24242
24243 \begin_layout LyX-Code
24244
24245 \family sans
24246 <itemtag attr=
24247 \begin_inset Quotes erd
24248 \end_inset
24249
24250 value
24251 \begin_inset Quotes erd
24252 \end_inset
24253
24254 ><labeltag attr=
24255 \begin_inset Quotes erd
24256 \end_inset
24257
24258 value
24259 \begin_inset Quotes erd
24260 \end_inset
24261
24262 >リストのラベル</labeltag>最初の項目.</itemtag>
24263 \end_layout
24264
24265 \begin_layout LyX-Code
24266
24267 \family sans
24268 <itemtag attr=
24269 \begin_inset Quotes erd
24270 \end_inset
24271
24272 value
24273 \begin_inset Quotes erd
24274 \end_inset
24275
24276 ><labeltag attr=
24277 \begin_inset Quotes erd
24278 \end_inset
24279
24280 value
24281 \begin_inset Quotes erd
24282 \end_inset
24283
24284 >リストのラベル</labeltag>二つめの項目.</itemtag>
24285 \end_layout
24286
24287 \begin_layout LyX-Code
24288
24289 \family sans
24290 </tag>
24291 \end_layout
24292
24293 \begin_layout LyX-Code
24294
24295 \end_layout
24296
24297 \begin_layout LyX-Code
24298
24299 \family sans
24300 <tag attr=
24301 \begin_inset Quotes erd
24302 \end_inset
24303
24304 value
24305 \begin_inset Quotes erd
24306 \end_inset
24307
24308 >
24309 \end_layout
24310
24311 \begin_layout LyX-Code
24312
24313 \family sans
24314 <labeltag attr=
24315 \begin_inset Quotes erd
24316 \end_inset
24317
24318 value
24319 \begin_inset Quotes erd
24320 \end_inset
24321
24322 >リストのラベル</labeltag><itemtag attr=
24323 \begin_inset Quotes erd
24324 \end_inset
24325
24326 value
24327 \begin_inset Quotes erd
24328 \end_inset
24329
24330 >最初の項目.</itemtag>
24331 \end_layout
24332
24333 \begin_layout LyX-Code
24334
24335 \family sans
24336 <labeltag attr=
24337 \begin_inset Quotes erd
24338 \end_inset
24339
24340 value
24341 \begin_inset Quotes erd
24342 \end_inset
24343
24344 >リストのラベル</labeltag><itemtag attr=
24345 \begin_inset Quotes erd
24346 \end_inset
24347
24348 value
24349 \begin_inset Quotes erd
24350 \end_inset
24351
24352 >二つめの項目</itemtag>
24353 \end_layout
24354
24355 \begin_layout LyX-Code
24356
24357 \family sans
24358 </tag>
24359 \end_layout
24360
24361 \begin_layout Standard
24362 ここで
24363 \begin_inset Flex Code
24364 status collapsed
24365
24366 \begin_layout Plain Layout
24367 labeltag
24368 \end_layout
24369
24370 \end_inset
24371
24372
24373 \begin_inset Flex Code
24374 status collapsed
24375
24376 \begin_layout Plain Layout
24377 itemtag
24378 \end_layout
24379
24380 \end_inset
24381
24382 の順序が違っていることに注意してください.どちらの順序になるかは,
24383
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388 HTMLLabelFirst
24389 \end_layout
24390
24391 \end_inset
24392
24393 の設定に依存します.もし
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398 HTMLLabelFirst
24399 \end_layout
24400
24401 \end_inset
24402
24403 が偽であれば(既定値),
24404 最初のケースのようになり,
24405 これが真であれば,
24406 二番めのケースのように,
24407 labelがitemの外側に来るようになります.
24408 \end_layout
24409
24410 \begin_layout Standard
24411 各段落の特定のタグ出力や属性出力は,
24412 以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,
24413 前述のように,
24414 多くの場合,
24415 \SpecialChar LyX
24416 は適切な既定値を生成するので,
24417 たいしたことをしなくても,
24418 望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,
24419 自分の好みにあわせて微調整する目的でここにあるものと考えてください.
24420 \end_layout
24421
24422 \begin_layout Description
24423 \begin_inset Flex Code
24424 status collapsed
24425
24426 \begin_layout Plain Layout
24427 HTMLAttr
24428 \end_layout
24429
24430 \end_inset
24431
24432  [
24433 \begin_inset Flex Code
24434 status collapsed
24435
24436 \begin_layout Plain Layout
24437 文字列
24438 \end_layout
24439
24440 \end_inset
24441
24442 ] 主幹タグと共に出力される属性情報を指定します.たとえば,
24443
24444 \begin_inset Flex Code
24445 status collapsed
24446
24447 \begin_layout Plain Layout
24448 class=`mydiv'
24449 \end_layout
24450
24451 \end_inset
24452
24453 」のようなものです.既定においては,
24454 \SpecialChar LyX
24455 は「
24456 \begin_inset Flex Code
24457 status collapsed
24458
24459 \begin_layout Plain Layout
24460 class=`レイアウト名'
24461 \end_layout
24462
24463 \end_inset
24464
24465 」と出力します.ここで
24466 \begin_inset Flex Code
24467 status collapsed
24468
24469 \begin_layout Plain Layout
24470 レイアウト名
24471 \end_layout
24472
24473 \end_inset
24474
24475 は,
24476 レイアウトの\SpecialChar LyX
24477 名であり,
24478 chapterのように小文字で記述します.
24479 \end_layout
24480
24481 \begin_layout Description
24482 \begin_inset Flex Code
24483 status collapsed
24484
24485 \begin_layout Plain Layout
24486 HTMLClass
24487 \end_layout
24488
24489 \end_inset
24490
24491  [
24492 \begin_inset Flex Code
24493 status collapsed
24494
24495 \begin_layout Plain Layout
24496 文字列
24497 \end_layout
24498
24499 \end_inset
24500
24501 ] この段落に使用するCSSクラス.段落が連番もしくは記号の箇条書きであるならば,
24502 既定値は「lyxenum」または「lyxitem」および階層の深さにより「i」「ii」「iii」「iv」となることに注意してください.これはここで書き換えることができます.しかしながら,
24503 その場合後置句は付け加えられません.すなわち,
24504 CSSクラスは,
24505 つねにここで宣言されたものの通りとなります.
24506 \end_layout
24507
24508 \begin_layout Description
24509 \begin_inset Flex Code
24510 status collapsed
24511
24512 \begin_layout Plain Layout
24513 HTMLForceCSS
24514 \end_layout
24515
24516 \end_inset
24517
24518  [
24519 \begin_inset Flex Code
24520 status collapsed
24521
24522 \begin_layout Plain Layout
24523
24524 \emph on
24525 0
24526 \emph default
24527 ,1
24528 \end_layout
24529
24530 \end_inset
24531
24532 ] 
24533 \begin_inset Flex Code
24534 status collapsed
24535
24536 \begin_layout Plain Layout
24537 HTMLStyle
24538 \end_layout
24539
24540 \end_inset
24541
24542 で追加情報が明示的に与えられているときでも,
24543 \SpecialChar LyX
24544 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
24545 \begin_inset Flex Code
24546 status collapsed
24547
24548 \begin_layout Plain Layout
24549 1
24550 \end_layout
24551
24552 \end_inset
24553
24554 にすると,
24555 生成されたCSSを完全に上書きする代わりに,
24556 変更したり追加したりすることができます.既定値は
24557 \begin_inset Flex Code
24558 status collapsed
24559
24560 \begin_layout Plain Layout
24561 0
24562 \end_layout
24563
24564 \end_inset
24565
24566 です.
24567 \end_layout
24568
24569 \begin_layout Description
24570 \begin_inset Flex Code
24571 status collapsed
24572
24573 \begin_layout Plain Layout
24574 HTMLForceCSS
24575 \end_layout
24576
24577 \end_inset
24578
24579  [
24580 \begin_inset Flex Code
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584
24585 \emph on
24586 0
24587 \emph default
24588 ,1
24589 \end_layout
24590
24591 \end_inset
24592
24593 ] この段落(通常節やその類い)をTOCに入れるか否か.既定値は真となっているので,
24594 たとえば星付きの節については偽に設定しなくてはなりません.
24595 \end_layout
24596
24597 \begin_layout Description
24598 \begin_inset Flex Code
24599 status collapsed
24600
24601 \begin_layout Plain Layout
24602 HTMLItem
24603 \end_layout
24604
24605 \end_inset
24606
24607  [
24608 \begin_inset Flex Code
24609 status collapsed
24610
24611 \begin_layout Plain Layout
24612 文字列
24613 \end_layout
24614
24615 \end_inset
24616
24617 ] 環境の段落に使用されるタグ.上記各例の
24618 \begin_inset Flex Code
24619 status collapsed
24620
24621 \begin_layout Plain Layout
24622 itemtag
24623 \end_layout
24624
24625 \end_inset
24626
24627 を置き換えます.既定値は
24628 \begin_inset Flex Code
24629 status collapsed
24630
24631 \begin_layout Plain Layout
24632 div
24633 \end_layout
24634
24635 \end_inset
24636
24637 です.
24638 \end_layout
24639
24640 \begin_layout Description
24641 \begin_inset Flex Code
24642 status collapsed
24643
24644 \begin_layout Plain Layout
24645 HTMLItemAttr
24646 \end_layout
24647
24648 \end_inset
24649
24650  [
24651 \begin_inset Flex Code
24652 status collapsed
24653
24654 \begin_layout Plain Layout
24655 文字列
24656 \end_layout
24657
24658 \end_inset
24659
24660 ] itemタグの属性.既定値は
24661 \begin_inset Flex Code
24662 status collapsed
24663
24664 \begin_layout Plain Layout
24665 class=`レイアウト名_item'
24666 \end_layout
24667
24668 \end_inset
24669
24670 です.ここには,
24671 様式情報は含まれては
24672 \emph on
24673 なりません
24674 \emph default
24675 .その目的のためには,
24676
24677 \begin_inset Flex Code
24678 status collapsed
24679
24680 \begin_layout Plain Layout
24681 HTMLStyle
24682 \end_layout
24683
24684 \end_inset
24685
24686 を使用してください.
24687 \end_layout
24688
24689 \begin_layout Description
24690 \begin_inset Flex Code
24691 status collapsed
24692
24693 \begin_layout Plain Layout
24694 HTMLLabel
24695 \end_layout
24696
24697 \end_inset
24698
24699  [
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704 文字列
24705 \end_layout
24706
24707 \end_inset
24708
24709 ] 段落と項目ラベルに使用されるタグ.上記各例の
24710 \begin_inset Flex Code
24711 status collapsed
24712
24713 \begin_layout Plain Layout
24714 labeltag
24715 \end_layout
24716
24717 \end_inset
24718
24719 を置き換えます.
24720 \begin_inset Flex Code
24721 status collapsed
24722
24723 \begin_layout Plain Layout
24724 LabelType
24725 \end_layout
24726
24727 \end_inset
24728
24729
24730 \begin_inset Flex Code
24731 status collapsed
24732
24733 \begin_layout Plain Layout
24734 Top_Environment
24735 \end_layout
24736
24737 \end_inset
24738
24739
24740 \begin_inset Flex Code
24741 status collapsed
24742
24743 \begin_layout Plain Layout
24744 Centered_Top_Environment
24745 \end_layout
24746
24747 \end_inset
24748
24749 の時は,
24750 既定値は
24751 \begin_inset Flex Code
24752 status collapsed
24753
24754 \begin_layout Plain Layout
24755 div
24756 \end_layout
24757
24758 \end_inset
24759
24760 ですが,
24761 それ以外の時の既定値は
24762 \begin_inset Flex Code
24763 status collapsed
24764
24765 \begin_layout Plain Layout
24766 span
24767 \end_layout
24768
24769 \end_inset
24770
24771 です.
24772 \end_layout
24773
24774 \begin_layout Description
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 HTMLLabelAttr
24780 \end_layout
24781
24782 \end_inset
24783
24784  [
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789 文字列
24790 \end_layout
24791
24792 \end_inset
24793
24794 ] labelタグの属性.既定値は
24795 \begin_inset Flex Code
24796 status collapsed
24797
24798 \begin_layout Plain Layout
24799 class=`レイアウト名_label'
24800 \end_layout
24801
24802 \end_inset
24803
24804 です.ここには,
24805 様式情報は含まれては
24806 \emph on
24807 なりません
24808 \emph default
24809 .その目的のためには,
24810
24811 \begin_inset Flex Code
24812 status collapsed
24813
24814 \begin_layout Plain Layout
24815 HTMLStyle
24816 \end_layout
24817
24818 \end_inset
24819
24820 を使用してください.
24821 \end_layout
24822
24823 \begin_layout Description
24824 \begin_inset Flex Code
24825 status collapsed
24826
24827 \begin_layout Plain Layout
24828 HTMLLabelFirst
24829 \end_layout
24830
24831 \end_inset
24832
24833  [
24834 \begin_inset Flex Code
24835 status collapsed
24836
24837 \begin_layout Plain Layout
24838
24839 \emph on
24840 0
24841 \emph default
24842 ,1
24843 \end_layout
24844
24845 \end_inset
24846
24847 ] このタグは,
24848 リスト関係環境でのみ意味を持ち,
24849 labelタグが,
24850 itemタグの前に出力されるか,
24851 中に出力されるかを制御します.これは,
24852 たとえば,
24853 description環境の中で,
24854
24855 \begin_inset Flex Code
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859 `<dt>\SpecialChar ldots
24860 </dt><dd>\SpecialChar ldots
24861 </dd>
24862 \end_layout
24863
24864 \end_inset
24865
24866 という形を得るために使用されます.既定値は
24867 \begin_inset Flex Code
24868 status collapsed
24869
24870 \begin_layout Plain Layout
24871 0
24872 \end_layout
24873
24874 \end_inset
24875
24876 で,
24877 labelタグはitemタグの中に出力されます.
24878 \end_layout
24879
24880 \begin_layout Description
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 HTMLPreamble
24886 \end_layout
24887
24888 \end_inset
24889
24890  この様式が使用されたときに,
24891
24892 \begin_inset Flex Code
24893 status collapsed
24894
24895 \begin_layout Plain Layout
24896 <head>
24897 \end_layout
24898
24899 \end_inset
24900
24901 セクションに出力される情報.これは,
24902 たとえば,
24903
24904 \begin_inset Flex Code
24905 status collapsed
24906
24907 \begin_layout Plain Layout
24908 onclick
24909 \end_layout
24910
24911 \end_inset
24912
24913 ハンドラを定義するために
24914 \begin_inset Flex Code
24915 status collapsed
24916
24917 \begin_layout Plain Layout
24918 <script>
24919 \end_layout
24920
24921 \end_inset
24922
24923 ブロックをインクルードするのに使用することができます.
24924 \end_layout
24925
24926 \begin_layout Description
24927 \begin_inset Flex Code
24928 status collapsed
24929
24930 \begin_layout Plain Layout
24931 HTMLStyle
24932 \end_layout
24933
24934 \end_inset
24935
24936   この様式が使用されたときに,
24937 インクルードするCSSスタイル情報.これは,
24938 レイアウトが生成する
24939 \begin_inset Flex Code
24940 status collapsed
24941
24942 \begin_layout Plain Layout
24943 <style>
24944 \end_layout
24945
24946 \end_inset
24947
24948 ブロックで自動的に包まれますので,
24949 CSS自体をインクルードするだけで大丈夫です.
24950 \begin_inset Flex Code
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954 EndHTMLStyle
24955 \end_layout
24956
24957 \end_inset
24958
24959 で閉じなくてはなりません.
24960 \end_layout
24961
24962 \begin_layout Description
24963 \begin_inset Flex Code
24964 status collapsed
24965
24966 \begin_layout Plain Layout
24967 HTMLTag
24968 \end_layout
24969
24970 \end_inset
24971
24972  [
24973 \begin_inset Flex Code
24974 status collapsed
24975
24976 \begin_layout Plain Layout
24977 文字列
24978 \end_layout
24979
24980 \end_inset
24981
24982 ] 主幹ラベルに使用されるタグ.上記各例の
24983 \begin_inset Flex Code
24984 status collapsed
24985
24986 \begin_layout Plain Layout
24987 tag
24988 \end_layout
24989
24990 \end_inset
24991
24992 を置き換えます.既定値は
24993 \begin_inset Flex Code
24994 status collapsed
24995
24996 \begin_layout Plain Layout
24997 div
24998 \end_layout
24999
25000 \end_inset
25001
25002 です.
25003 \end_layout
25004
25005 \begin_layout Description
25006 \begin_inset Flex Code
25007 status collapsed
25008
25009 \begin_layout Plain Layout
25010 HTMLTitle
25011 \end_layout
25012
25013 \end_inset
25014
25015  [
25016 \begin_inset Flex Code
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020
25021 \emph on
25022 0
25023 \emph default
25024 ,1
25025 \end_layout
25026
25027 \end_inset
25028
25029 ] この様式が,
25030 XHTMLファイルの
25031 \begin_inset Flex Code
25032 status collapsed
25033
25034 \begin_layout Plain Layout
25035 <title>
25036 \end_layout
25037
25038 \end_inset
25039
25040 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
25041 \begin_inset Flex Code
25042 status collapsed
25043
25044 \begin_layout Plain Layout
25045 stdtitle.inc
25046 \end_layout
25047
25048 \end_inset
25049
25050 ファイルでは,
25051
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056 title
25057 \end_layout
25058
25059 \end_inset
25060
25061 環境のこの項目を真に設定しています.
25062 \end_layout
25063
25064 \begin_layout Subsection
25065 差込枠レイアウトXHTML
25066 \end_layout
25067
25068 \begin_layout Standard
25069 差込枠のXHTML出力も,
25070 レイアウトファイル内の情報によって制御することができます
25071 \begin_inset Foot
25072 status collapsed
25073
25074 \begin_layout Plain Layout
25075 現在のところ,
25076 これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,
25077 「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されません.
25078 \end_layout
25079
25080 \end_inset
25081
25082 .ここでも,
25083 \SpecialChar LyX
25084 は適切な既定値を提供しようと試み,
25085 既定のCSS様式を構成します.しかし,
25086 すべてカスタマイズ可能です.
25087 \end_layout
25088
25089 \begin_layout Standard
25090 \SpecialChar LyX
25091 が差込枠用に出力するXHTMLは,
25092 以下の形を取ります.
25093 \end_layout
25094
25095 \begin_layout LyX-Code
25096 <tag attr=
25097 \begin_inset Quotes erd
25098 \end_inset
25099
25100 value
25101 \begin_inset Quotes erd
25102 \end_inset
25103
25104 >
25105 \end_layout
25106
25107 \begin_layout LyX-Code
25108 <labeltag>ラベル</labeltag>
25109 \end_layout
25110
25111 \begin_layout LyX-Code
25112 <innertag attr=
25113 \begin_inset Quotes erd
25114 \end_inset
25115
25116 value
25117 \begin_inset Quotes erd
25118 \end_inset
25119
25120 >差込枠の内容.</innertag>
25121 \end_layout
25122
25123 \begin_layout LyX-Code
25124 </tag>
25125 \end_layout
25126
25127 \begin_layout Standard
25128 差込枠が多段落を許可している—
25129 つまり
25130 \begin_inset Flex Code
25131 status collapsed
25132
25133 \begin_layout Plain Layout
25134 MultiPar
25135 \end_layout
25136
25137 \end_inset
25138
25139 が真—
25140 ならば,
25141 差込枠の内容は,
25142 それ自身段落として出力され,
25143 それらの段落に用いられる様式(標準,
25144 引用など)を用いて整形されます.もちろん,
25145 段落にラベルがなければ,
25146 labelタグは省略され,
25147 ラベルがあれば,
25148 現在のところ,
25149 つねに
25150 \begin_inset Flex Code
25151 status collapsed
25152
25153 \begin_layout Plain Layout
25154 span
25155 \end_layout
25156
25157 \end_inset
25158
25159 が用いられます.innerタグは非必須であり,
25160 既定では出力されません.各差込枠用に出力される特定のタグや属性は,
25161 以下のレイアウトタグによって制御することができます.
25162 \end_layout
25163
25164 \begin_layout Description
25165 \begin_inset Flex Code
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 HTMLAttr
25170 \end_layout
25171
25172 \end_inset
25173
25174  [
25175 \begin_inset Flex Code
25176 status collapsed
25177
25178 \begin_layout Plain Layout
25179 文字列
25180 \end_layout
25181
25182 \end_inset
25183
25184 ] 主幹タグと共に出力される属性情報を指定します.たとえば,
25185
25186 \begin_inset Flex Code
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190 class=`myinset' onclick=`\SpecialChar ldots
25191 '
25192 \end_layout
25193
25194 \end_inset
25195
25196 」のようなものです.既定においては,
25197 \SpecialChar LyX
25198 は「
25199 \begin_inset Flex Code
25200 status collapsed
25201
25202 \begin_layout Plain Layout
25203 class=`差込枠名'
25204 \end_layout
25205
25206 \end_inset
25207
25208 」と出力します.ここで
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213 差込枠名
25214 \end_layout
25215
25216 \end_inset
25217
25218 は,
25219 差込枠の\SpecialChar LyX
25220 名であり,
25221 小文字で記述します.アルファベットや数字以外の文字は,
25222 アンダースコアに置き換えられます.例:
25223 footnote.
25224 \end_layout
25225
25226 \begin_layout Description
25227 \begin_inset Flex Code
25228 status collapsed
25229
25230 \begin_layout Plain Layout
25231 HTMLForceCSS
25232 \end_layout
25233
25234 \end_inset
25235
25236  [
25237 \begin_inset Flex Code
25238 status collapsed
25239
25240 \begin_layout Plain Layout
25241
25242 \emph on
25243 0
25244 \emph default
25245 ,1
25246 \end_layout
25247
25248 \end_inset
25249
25250 ] 
25251 \begin_inset Flex Code
25252 status collapsed
25253
25254 \begin_layout Plain Layout
25255 HTMLStyle
25256 \end_layout
25257
25258 \end_inset
25259
25260 で追加情報が明示的に与えられているときでも,
25261 \SpecialChar LyX
25262 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 1
25268 \end_layout
25269
25270 \end_inset
25271
25272 にすると,
25273 生成されたCSSを完全に上書きする代わりに,
25274 変更したり追加したりすることができます.既定値は
25275 \begin_inset Flex Code
25276 status collapsed
25277
25278 \begin_layout Plain Layout
25279 0
25280 \end_layout
25281
25282 \end_inset
25283
25284 です.
25285 \end_layout
25286
25287 \begin_layout Description
25288 \begin_inset Flex Code
25289 status collapsed
25290
25291 \begin_layout Plain Layout
25292 HTMLInnerAttr
25293 \end_layout
25294
25295 \end_inset
25296
25297  [
25298 \begin_inset Flex Code
25299 status collapsed
25300
25301 \begin_layout Plain Layout
25302 文字列
25303 \end_layout
25304
25305 \end_inset
25306
25307 ] innerタグの属性.既定値は
25308 \begin_inset Flex Code
25309 status collapsed
25310
25311 \begin_layout Plain Layout
25312 class=`差込枠名_inner'
25313 \end_layout
25314
25315 \end_inset
25316
25317 です.
25318 \end_layout
25319
25320 \begin_layout Description
25321 \begin_inset Flex Code
25322 status collapsed
25323
25324 \begin_layout Plain Layout
25325 HTMLInnerTag
25326 \end_layout
25327
25328 \end_inset
25329
25330  [
25331 \begin_inset Flex Code
25332 status collapsed
25333
25334 \begin_layout Plain Layout
25335 文字列
25336 \end_layout
25337
25338 \end_inset
25339
25340 ] innerタグです.上記各例の
25341 \begin_inset Flex Code
25342 status collapsed
25343
25344 \begin_layout Plain Layout
25345 innertag
25346 \end_layout
25347
25348 \end_inset
25349
25350 を置き換えます.既定値はなしです.
25351 \end_layout
25352
25353 \begin_layout Description
25354 \begin_inset Flex Code
25355 status collapsed
25356
25357 \begin_layout Plain Layout
25358 HTMLIsBlock
25359 \end_layout
25360
25361 \end_inset
25362
25363  [
25364 \begin_inset Flex Code
25365 status collapsed
25366
25367 \begin_layout Plain Layout
25368 0,
25369 \emph on
25370 1
25371 \end_layout
25372
25373 \end_inset
25374
25375 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,
25376 それとも,
25377 (派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
25378 \end_layout
25379
25380 \begin_layout Description
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 HTMLLabel
25386 \end_layout
25387
25388 \end_inset
25389
25390  [
25391 \begin_inset Flex Code
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395 文字列
25396 \end_layout
25397
25398 \end_inset
25399
25400 ] 場合によっては,
25401 カウンタへの参照を含む,
25402 この差込枠のラベル.たとえば,
25403 脚註用には
25404 \begin_inset Flex Code
25405 status collapsed
25406
25407 \begin_layout Plain Layout
25408
25409 \backslash
25410 arabic{footnote}
25411 \end_layout
25412
25413 \end_inset
25414
25415 など.これは非必須であり,
25416 既定値はありません.
25417 \end_layout
25418
25419 \begin_layout Description
25420 \begin_inset Flex Code
25421 status collapsed
25422
25423 \begin_layout Plain Layout
25424 HTMLPreamble
25425 \end_layout
25426
25427 \end_inset
25428
25429  この様式が使用されたときに,
25430
25431 \begin_inset Flex Code
25432 status collapsed
25433
25434 \begin_layout Plain Layout
25435 <head>
25436 \end_layout
25437
25438 \end_inset
25439
25440 セクションに出力される情報.これは,
25441 たとえば,
25442
25443 \begin_inset Flex Code
25444 status collapsed
25445
25446 \begin_layout Plain Layout
25447 onclick
25448 \end_layout
25449
25450 \end_inset
25451
25452 ハンドラを定義するために
25453 \begin_inset Flex Code
25454 status collapsed
25455
25456 \begin_layout Plain Layout
25457 <script>
25458 \end_layout
25459
25460 \end_inset
25461
25462 ブロックをインクルードするのに使用することができます.
25463 \end_layout
25464
25465 \begin_layout Description
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 HTMLStyle
25471 \end_layout
25472
25473 \end_inset
25474
25475   この様式が使用されたときに,
25476 インクルードするCSSスタイル情報.これは,
25477 レイアウトが生成する
25478 \begin_inset Flex Code
25479 status collapsed
25480
25481 \begin_layout Plain Layout
25482 <style>
25483 \end_layout
25484
25485 \end_inset
25486
25487 ブロックで自動的に包まれますので,
25488 CSS自体をインクルードするだけで大丈夫です.
25489 \end_layout
25490
25491 \begin_layout Description
25492 \begin_inset Flex Code
25493 status collapsed
25494
25495 \begin_layout Plain Layout
25496 HTMLTag
25497 \end_layout
25498
25499 \end_inset
25500
25501  [
25502 \begin_inset Flex Code
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506 文字列
25507 \end_layout
25508
25509 \end_inset
25510
25511 ] 主幹ラベルに使用されるタグ.上記各例の
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 tag
25517 \end_layout
25518
25519 \end_inset
25520
25521 を置き換えます.既定値は
25522 \begin_inset Flex Code
25523 status collapsed
25524
25525 \begin_layout Plain Layout
25526 MultiPar
25527 \end_layout
25528
25529 \end_inset
25530
25531 の設定に依存し,
25532
25533 \begin_inset Flex Code
25534 status collapsed
25535
25536 \begin_layout Plain Layout
25537 MultiPar
25538 \end_layout
25539
25540 \end_inset
25541
25542 が真ならば
25543 \begin_inset Flex Code
25544 status collapsed
25545
25546 \begin_layout Plain Layout
25547 div
25548 \end_layout
25549
25550 \end_inset
25551
25552
25553 偽ならば
25554 \begin_inset Flex Code
25555 status collapsed
25556
25557 \begin_layout Plain Layout
25558 span
25559 \end_layout
25560
25561 \end_inset
25562
25563 です.
25564 \end_layout
25565
25566 \begin_layout Subsection
25567 フロートXHTML
25568 \end_layout
25569
25570 \begin_layout Standard
25571 フロートのXHTML出力も,
25572 レイアウトファイル内の情報によって制御することができます.出力は,
25573 以下の形を取ります.
25574 \end_layout
25575
25576 \begin_layout LyX-Code
25577 <tag attr=
25578 \begin_inset Quotes erd
25579 \end_inset
25580
25581 value
25582 \begin_inset Quotes erd
25583 \end_inset
25584
25585 >
25586 \end_layout
25587
25588 \begin_layout LyX-Code
25589 フロートの内容.
25590 \end_layout
25591
25592 \begin_layout LyX-Code
25593 </tag>
25594 \end_layout
25595
25596 \begin_layout Standard
25597 キャプションは,
25598 存在している場合には,
25599 独立した差込枠となり,
25600 そのような形で出力されます.その外観は,
25601 キャプション差込枠のInsetLayoutで制御することができます.
25602 \end_layout
25603
25604 \begin_layout Description
25605 \begin_inset Flex Code
25606 status collapsed
25607
25608 \begin_layout Plain Layout
25609 HTMLAttr
25610 \end_layout
25611
25612 \end_inset
25613
25614  [
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 文字列
25620 \end_layout
25621
25622 \end_inset
25623
25624 ] 主幹タグと共に出力される属性情報を指定します.たとえば,
25625
25626 \begin_inset Flex Code
25627 status collapsed
25628
25629 \begin_layout Plain Layout
25630 class=`myfloat' onclick=`\SpecialChar ldots
25631 '
25632 \end_layout
25633
25634 \end_inset
25635
25636 」のようなものです.既定においては,
25637 \SpecialChar LyX
25638 は「
25639 \begin_inset Flex Code
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 class=`float フロート-フロート型'
25644 \end_layout
25645
25646 \end_inset
25647
25648 」と出力します.ここで
25649 \begin_inset Flex Code
25650 status collapsed
25651
25652 \begin_layout Plain Layout
25653 フロート型
25654 \end_layout
25655
25656 \end_inset
25657
25658 は,
25659 フロート宣言で定義された(
25660 \begin_inset CommandInset ref
25661 LatexCommand ref
25662 reference "subsec:フロート"
25663 nolink "false"
25664
25665 \end_inset
25666
25667 参照),
25668 この型のフロートの\SpecialChar LyX
25669 名です.ただし,
25670 これは小文字に変換され,
25671 アルファベットや数字でない文字はアンダースコアに変換されます.例:
25672 float-table.
25673 \end_layout
25674
25675 \begin_layout Description
25676 \begin_inset Flex Code
25677 status collapsed
25678
25679 \begin_layout Plain Layout
25680 HTMLStyle
25681 \end_layout
25682
25683 \end_inset
25684
25685   このフロートが使用されたときに,
25686 インクルードするCSSスタイル情報.これは,
25687 レイアウトが生成する
25688 \begin_inset Flex Code
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 <style>
25693 \end_layout
25694
25695 \end_inset
25696
25697 ブロックで自動的に包まれますので,
25698 CSS自体をインクルードするだけで大丈夫です.
25699 \end_layout
25700
25701 \begin_layout Description
25702 \begin_inset Flex Code
25703 status collapsed
25704
25705 \begin_layout Plain Layout
25706 HTMLTag
25707 \end_layout
25708
25709 \end_inset
25710
25711  [
25712 \begin_inset Flex Code
25713 status collapsed
25714
25715 \begin_layout Plain Layout
25716 文字列
25717 \end_layout
25718
25719 \end_inset
25720
25721 ] このフロートに使用されるタグ.上記各例の
25722 \begin_inset Flex Code
25723 status collapsed
25724
25725 \begin_layout Plain Layout
25726 tag
25727 \end_layout
25728
25729 \end_inset
25730
25731 を置き換えます.既定値は
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 div
25737 \end_layout
25738
25739 \end_inset
25740
25741 であり,
25742 ほとんどの場合変更する必要はありません.
25743 \end_layout
25744
25745 \begin_layout Subsection
25746 書誌情報の整形
25747 \end_layout
25748
25749 \begin_layout Standard
25750 書誌情報は,
25751
25752 \begin_inset Flex Code
25753 status collapsed
25754
25755 \begin_layout Plain Layout
25756 CiteFormat
25757 \end_layout
25758
25759 \end_inset
25760
25761 ブロックを使用して整形することができます.詳細については,
25762
25763 \begin_inset CommandInset ref
25764 LatexCommand ref
25765 reference "subsec:引用書式指定"
25766 nolink "false"
25767
25768 \end_inset
25769
25770 を参照してください.
25771 \end_layout
25772
25773 \begin_layout Subsection
25774 \SpecialChar LyX
25775 が生成したCSS
25776 \end_layout
25777
25778 \begin_layout Standard
25779 \SpecialChar LyX
25780 は,
25781 提供されている他のレイアウト情報に基づいて,
25782 差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,
25783 これまでに何度か触れました.この節では,
25784 \SpecialChar LyX
25785 がどのレイアウト情報を,
25786 どのように使うのか,
25787 ひとこと述べておきたいと思います.
25788 \end_layout
25789
25790 \begin_layout Standard
25791 \SpecialChar LyX
25792 は,
25793 現在のところ,
25794
25795 \begin_inset Flex Code
25796 status collapsed
25797
25798 \begin_layout Plain Layout
25799 Font
25800 \end_layout
25801
25802 \end_inset
25803
25804 宣言で指定されている
25805 \begin_inset Flex Code
25806 status collapsed
25807
25808 \begin_layout Plain Layout
25809 Family
25810 \end_layout
25811
25812 \end_inset
25813
25814
25815 \begin_inset Flex Code
25816 status collapsed
25817
25818 \begin_layout Plain Layout
25819 Series
25820 \end_layout
25821
25822 \end_inset
25823
25824
25825 \begin_inset Flex Code
25826 status collapsed
25827
25828 \begin_layout Plain Layout
25829 Shape
25830 \end_layout
25831
25832 \end_inset
25833
25834
25835 \begin_inset Flex Code
25836 status collapsed
25837
25838 \begin_layout Plain Layout
25839 Size
25840 \end_layout
25841
25842 \end_inset
25843
25844 を利用して,
25845 フォント情報についてのみCSSを自動生成します(
25846 \begin_inset CommandInset ref
25847 LatexCommand ref
25848 reference "subsec:フォント指定"
25849 nolink "false"
25850
25851 \end_inset
25852
25853 を参照).この変換は,
25854 きわめて分かりやすく自明です.たとえば,
25855
25856 \begin_inset Flex Code
25857 status collapsed
25858
25859 \begin_layout Plain Layout
25860 Family Sans
25861 \end_layout
25862
25863 \end_inset
25864
25865 」は「
25866 \begin_inset Flex Code
25867 status collapsed
25868
25869 \begin_layout Plain Layout
25870 font-family:
25871  sans-serif
25872 \end_layout
25873
25874 \end_inset
25875
25876 」になります.\SpecialChar LyX
25877 の寸法とCSSの寸法のあいだの対応は,
25878 少し複雑ですが,
25879 それでも直感的に分かります.詳細については,
25880
25881 \begin_inset Flex URL
25882 status collapsed
25883
25884 \begin_layout Plain Layout
25885
25886 src/FontInfo.cpp
25887 \end_layout
25888
25889 \end_inset
25890
25891
25892 \begin_inset Flex Code
25893 status collapsed
25894
25895 \begin_layout Plain Layout
25896 getSizeCSS()
25897 \end_layout
25898
25899 \end_inset
25900
25901 関数をご覧ください.
25902 \end_layout
25903
25904 \begin_layout Section
25905 DocBook出力のタグ
25906 \begin_inset CommandInset label
25907 LatexCommand label
25908 name "sec:DocBook出力のタグ"
25909
25910 \end_inset
25911
25912
25913 \end_layout
25914
25915 \begin_layout Standard
25916 \SpecialChar LaTeX
25917 やXHTMLと同様に,
25918 \SpecialChar LyX
25919 のDocBook出力の書式もレイアウト情報によって制御されています.一般的に\SpecialChar LyX
25920 は賢明な既定値を提供していますが,
25921 DocBookは厳密にセマンティックであり,
25922 フォーマッティングを許さないため,
25923 スタイリングの多くは変換の途中で失われてしまいます.可能な場合には,
25924 \SpecialChar LyX
25925 からの情報は
25926 \family typewriter
25927 role
25928 \family default
25929 属性に渡されます.
25930 \end_layout
25931
25932 \begin_layout Standard
25933 多くの場合,
25934 設定した環境や特別差込枠等々について,
25935 納得のいくDocBook出力を得るために,
25936 何かしなくてはならないということはまったくありません.しかしながら,
25937 いくつかの場合において必要となることがあるため,
25938 \SpecialChar LyX
25939 は多くのレイアウトタグを提供し,
25940 生成されるDocBookを調整できるようにしています.
25941 \end_layout
25942
25943 \begin_layout Standard
25944 ラベルはDocBookでは冗長であるため,
25945 めったに出力されることはありません.この情報はタグ自身によって伝達され,
25946 (DocBookファイルを処理した後の)最終文書にラベルが現れるかどうかは,
25947 スタイルシートによって制御されます.しかしながら,
25948 定義リストのように,
25949 ラベルが冗長な内容ではないことが時々あり,
25950 この場合には,
25951 定義される用語がラベルとなります.
25952 \end_layout
25953
25954 \begin_layout Subsection
25955 段落様式
25956 \begin_inset CommandInset label
25957 LatexCommand label
25958 name "subsec:DocBook段落様式"
25959
25960 \end_inset
25961
25962
25963 \end_layout
25964
25965 \begin_layout Standard
25966 段落に対して\SpecialChar LyX
25967 が出力するDocBookの類いは,
25968 通常の段落を取り扱っているのか,
25969 コマンドなのか環境なのかによって変化し,
25970 それ自体も対応する
25971 \begin_inset Flex Code
25972 status collapsed
25973
25974 \begin_layout Plain Layout
25975 \SpecialChar LaTeX
25976 Type
25977 \end_layout
25978
25979 \end_inset
25980
25981 タグの内容によって決定されます.
25982 \end_layout
25983
25984 \begin_layout Standard
25985 コマンドや通常の段落については,
25986 DocBook出力は下記の形を取ります:
25987
25988 \end_layout
25989
25990 \begin_layout LyX-Code
25991 <tag attr>
25992 \end_layout
25993
25994 \begin_layout LyX-Code
25995 段落の中身
25996 \end_layout
25997
25998 \begin_layout LyX-Code
25999 </tag>
26000 \end_layout
26001
26002 \begin_layout Standard
26003 箇条書きの類い出ない環境については,
26004 生成されるDocBookは下記の形を取ります:
26005
26006 \end_layout
26007
26008 \begin_layout LyX-Code
26009 <tag attr>
26010 \end_layout
26011
26012 \begin_layout LyX-Code
26013 <itemtag>第1段落</itemtag>
26014 \end_layout
26015
26016 \begin_layout LyX-Code
26017 <itemtag>第2段落</itemtag>
26018 \end_layout
26019
26020 \begin_layout LyX-Code
26021 </tag>
26022 \end_layout
26023
26024 \begin_layout Standard
26025 箇条書きについては,
26026 DocBook出力は下記の形を取ります:
26027
26028 \end_layout
26029
26030 \begin_layout LyX-Code
26031 <tag attr>
26032 \end_layout
26033
26034 \begin_layout LyX-Code
26035 <itemtag attr>第1項目</itemtag>
26036 \end_layout
26037
26038 \begin_layout LyX-Code
26039 <itemtag attr>第2項目</itemtag>
26040 \end_layout
26041
26042 \begin_layout LyX-Code
26043 </tag>
26044 \end_layout
26045
26046 \begin_layout Standard
26047 各段落型に対する特定のタグやロール出力は,
26048 これから説明するレイアウトタグによって制御することができます.まさにDocBookの性質そのものによって,
26049 妥当な既定値というものはまったく存在せず,
26050 値はつねに注意深く選ばなくてはならないと言うことに注意してください.
26051 \end_layout
26052
26053 \begin_layout Description
26054 \begin_inset Flex Code
26055 status collapsed
26056
26057 \begin_layout Plain Layout
26058 DocBookAttr
26059 \end_layout
26060
26061 \end_inset
26062
26063  [
26064 \begin_inset Flex Code
26065 status collapsed
26066
26067 \begin_layout Plain Layout
26068 文字列
26069 \end_layout
26070
26071 \end_inset
26072
26073 ] メインタグに出力される属性情報を,
26074 上記の例の「
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 attr
26080 \end_layout
26081
26082 \end_inset
26083
26084 」の位置に指定します.この情報は,
26085 DocBookファイルの後処理に使用することができます.
26086 \end_layout
26087
26088 \begin_layout Description
26089 \begin_inset Flex Code
26090 status collapsed
26091
26092 \begin_layout Plain Layout
26093 DocBookTag
26094 \end_layout
26095
26096 \end_inset
26097
26098  [
26099 \begin_inset Flex Code
26100 status collapsed
26101
26102 \begin_layout Plain Layout
26103 文字列
26104 \end_layout
26105
26106 \end_inset
26107
26108 ] この差込枠に使用するタグ.上記の例の「
26109 \begin_inset Flex Code
26110 status collapsed
26111
26112 \begin_layout Plain Layout
26113 tag
26114 \end_layout
26115
26116 \end_inset
26117
26118 」の位置に出力します.既定値はフロート名で,
26119 DocBookには一般的なタグはないので,
26120 つねに変更する必要があります.
26121 \end_layout
26122
26123 \begin_layout Description
26124 \begin_inset Flex Code
26125 status collapsed
26126
26127 \begin_layout Plain Layout
26128 DocBookTagType
26129 \end_layout
26130
26131 \end_inset
26132
26133  [
26134 \begin_inset Flex Code
26135 status collapsed
26136
26137 \begin_layout Plain Layout
26138 block
26139 \end_layout
26140
26141 \end_inset
26142
26143 ,
26144  
26145 \begin_inset Flex Code
26146 status collapsed
26147
26148 \begin_layout Plain Layout
26149 paragraph
26150 \end_layout
26151
26152 \end_inset
26153
26154 ,
26155  
26156 \begin_inset Flex Code
26157 status collapsed
26158
26159 \begin_layout Plain Layout
26160 inline
26161 \end_layout
26162
26163 \end_inset
26164
26165 ] このタグの新規行ポリシー.詳細は第
26166 \begin_inset CommandInset ref
26167 LatexCommand ref
26168 reference "subsec:新規行ポリシー"
26169 plural "false"
26170 caps "false"
26171 noprefix "false"
26172 nolink "false"
26173
26174 \end_inset
26175
26176 節を参照のこと.
26177 \end_layout
26178
26179 \begin_layout Subsection
26180 新規行ポリシー
26181 \begin_inset CommandInset label
26182 LatexCommand label
26183 name "subsec:新規行ポリシー"
26184
26185 \end_inset
26186
26187
26188 \end_layout
26189
26190 \begin_layout Standard
26191 すべてのタグに関して,
26192
26193 \begin_inset Flex Code
26194 status collapsed
26195
26196 \begin_layout Plain Layout
26197 DocBook*TagType
26198 \end_layout
26199
26200 \end_inset
26201
26202 属性で指定される)新規行の出力ポリシーに下記の3つの選択肢があります.
26203 \end_layout
26204
26205 \begin_layout Itemize
26206
26207 \begin_inset Flex Code
26208 status collapsed
26209
26210 \begin_layout Plain Layout
26211 block
26212 \end_layout
26213
26214 \end_inset
26215
26216 」:
26217 開始タグと終了タグは独立した行に置きます(つまり開始タグと終了タグの前後にラインフィードします).典型的な要素はフロートです.たとえば,
26218
26219 \end_layout
26220
26221 \begin_deeper
26222 \begin_layout LyX-Code
26223 前の内容
26224 \end_layout
26225
26226 \begin_layout LyX-Code
26227 <blocktag>
26228 \end_layout
26229
26230 \begin_layout LyX-Code
26231  ブロックの内容
26232 \end_layout
26233
26234 \begin_layout LyX-Code
26235 </blocktab>
26236 \end_layout
26237
26238 \begin_layout LyX-Code
26239 後の内容
26240 \end_layout
26241
26242 \begin_layout Standard
26243 のようになります.
26244 \end_layout
26245
26246 \end_deeper
26247 \begin_layout Itemize
26248
26249 \begin_inset Flex Code
26250 status collapsed
26251
26252 \begin_layout Plain Layout
26253 paragraph
26254 \end_layout
26255
26256 \end_inset
26257
26258 」:
26259 開始タグと終了タグは同じ新規行に置きます(開始タグの前と終了タグの後にラインフィードが出力されます).典型的な要素は段落と箇条書き項目です.たとえば,
26260
26261 \end_layout
26262
26263 \begin_deeper
26264 \begin_layout LyX-Code
26265 前の内容
26266 \end_layout
26267
26268 \begin_layout LyX-Code
26269 <paratag>段落の内容</paratag>
26270 \end_layout
26271
26272 \begin_layout LyX-Code
26273 後の内容
26274 \end_layout
26275
26276 \begin_layout Standard
26277 のようになります.
26278 \end_layout
26279
26280 \end_deeper
26281 \begin_layout Itemize
26282
26283 \begin_inset Flex Code
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 inline
26288 \end_layout
26289
26290 \end_inset
26291
26292 」:
26293 開始タグと終了タグは内容と同じ行に置かれます.ラインフィードは出力されません.典型的な要素はフォントです.たとえば,
26294
26295 \end_layout
26296
26297 \begin_deeper
26298 \begin_layout LyX-Code
26299 前の内容<inlinetag>段落の内容</inlinetag>後の内容
26300 \end_layout
26301
26302 \begin_layout Standard
26303 のようになります.
26304 \end_layout
26305
26306 \end_deeper
26307 \begin_layout Standard
26308 既定値はつねに「
26309 \begin_inset Flex Code
26310 status collapsed
26311
26312 \begin_layout Plain Layout
26313 block
26314 \end_layout
26315
26316 \end_inset
26317
26318 」です.
26319 \end_layout
26320
26321 \begin_layout Subsection
26322 InsetLayout DocBook
26323 \end_layout
26324
26325 \begin_layout Standard
26326 差込枠のDocBook出力もレイアウトファイルの情報によって制御されます.
26327 \end_layout
26328
26329 \begin_layout Standard
26330 差込枠に対して\SpecialChar LyX
26331 が出力するDocBookは次のような形を取ります.
26332 \end_layout
26333
26334 \begin_layout LyX-Code
26335 <wrappertag wrapperattr>
26336 \end_layout
26337
26338 \begin_layout LyX-Code
26339   <tag attr>
26340 \end_layout
26341
26342 \begin_layout LyX-Code
26343     <innertag innerattr>
26344 \end_layout
26345
26346 \begin_layout LyX-Code
26347       差込枠の内容
26348 \end_layout
26349
26350 \begin_layout LyX-Code
26351     </innertag>
26352 \end_layout
26353
26354 \begin_layout LyX-Code
26355   </tag>
26356 \end_layout
26357
26358 \begin_layout LyX-Code
26359 </wrappertag>
26360 \end_layout
26361
26362 \begin_layout Standard
26363 項目立てをする差込枠については,
26364 以下のようになります.
26365 \end_layout
26366
26367 \begin_layout LyX-Code
26368 <wrappertag wrapperattr>
26369 \end_layout
26370
26371 \begin_layout LyX-Code
26372   <tag attr>
26373 \end_layout
26374
26375 \begin_layout LyX-Code
26376     <innertag innerattr>
26377 \end_layout
26378
26379 \begin_layout LyX-Code
26380       <itemwrappertag itemwrapperattr>
26381 \end_layout
26382
26383 \begin_layout LyX-Code
26384         <itemlabeltag itemattr>
26385 \end_layout
26386
26387 \begin_layout LyX-Code
26388           第1項目のラベル
26389 \end_layout
26390
26391 \begin_layout LyX-Code
26392         </itemtag>
26393 \end_layout
26394
26395 \begin_layout LyX-Code
26396         <itemtag itemattr>
26397 \end_layout
26398
26399 \begin_layout LyX-Code
26400           <itemtag itemattr>
26401 \end_layout
26402
26403 \begin_layout LyX-Code
26404             第1項目の内容 item.
26405 \end_layout
26406
26407 \begin_layout LyX-Code
26408           </itemtag>
26409 \end_layout
26410
26411 \begin_layout LyX-Code
26412         </itemtag>
26413 \end_layout
26414
26415 \begin_layout LyX-Code
26416       </itemwrappertag>
26417 \end_layout
26418
26419 \begin_layout LyX-Code
26420       <itemwrappertag itemwrapperattr>
26421 \end_layout
26422
26423 \begin_layout LyX-Code
26424         <itemlabeltag itemattr>
26425 \end_layout
26426
26427 \begin_layout LyX-Code
26428           第2項目のラベル
26429 \end_layout
26430
26431 \begin_layout LyX-Code
26432         </itemtag>
26433 \end_layout
26434
26435 \begin_layout LyX-Code
26436         <itemtag itemattr>
26437 \end_layout
26438
26439 \begin_layout LyX-Code
26440           <itemtag itemattr>
26441 \end_layout
26442
26443 \begin_layout LyX-Code
26444             第2項目の内容
26445 \end_layout
26446
26447 \begin_layout LyX-Code
26448           </itemtag>
26449 \end_layout
26450
26451 \begin_layout LyX-Code
26452         </itemtag>
26453 \end_layout
26454
26455 \begin_layout LyX-Code
26456       </itemwrappertag>
26457 \end_layout
26458
26459 \begin_layout LyX-Code
26460       ...
26461 \end_layout
26462
26463 \begin_layout LyX-Code
26464     </innertag>
26465 \end_layout
26466
26467 \begin_layout LyX-Code
26468   </tag>
26469 \end_layout
26470
26471 \begin_layout LyX-Code
26472 </wrappertag>
26473 \end_layout
26474
26475 \begin_layout Standard
26476 差込枠が複数の段落を許容する場合—
26477
26478 つまり
26479 \begin_inset Flex Code
26480 status collapsed
26481
26482 \begin_layout Plain Layout
26483 MultiPar
26484 \end_layout
26485
26486 \end_inset
26487
26488 が真である場合—
26489
26490 には,
26491 差込枠の中身自身は,
26492 段落に使用される様式(標準,
26493 引用等)にしたがって整形された段落として出力されます.内側のタグは必須ではなく,
26494 既定では表示されません.
26495 \end_layout
26496
26497 \begin_layout Standard
26498 各差込枠に出力される特定のタグと属性は,
26499 下記のようなレイアウトタグによって制御されます.
26500 \end_layout
26501
26502 \begin_layout Description
26503 \begin_inset Flex Code
26504 status collapsed
26505
26506 \begin_layout Plain Layout
26507 DocBookAttr
26508 \end_layout
26509
26510 \end_inset
26511
26512  [
26513 \begin_inset Flex Code
26514 status collapsed
26515
26516 \begin_layout Plain Layout
26517 文字列
26518 \end_layout
26519
26520 \end_inset
26521
26522 ] メインタグに出力される属性情報を,
26523 上記の例の「
26524 \begin_inset Flex Code
26525 status collapsed
26526
26527 \begin_layout Plain Layout
26528 attr
26529 \end_layout
26530
26531 \end_inset
26532
26533 」の位置に指定します.この情報は,
26534 DocBookファイルの後処理に使用することができます.
26535 \end_layout
26536
26537 \begin_layout Description
26538 \begin_inset Flex Code
26539 status collapsed
26540
26541 \begin_layout Plain Layout
26542 DocBookInInfo
26543 \end_layout
26544
26545 \end_inset
26546
26547  [
26548 \begin_inset Flex Code
26549 status collapsed
26550
26551 \begin_layout Plain Layout
26552 never,
26553  always,
26554  maybe
26555 \end_layout
26556
26557 \end_inset
26558
26559 ] このタグを親レイアウトの最初にある
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 <info>
26565 \end_layout
26566
26567 \end_inset
26568
26569 タグの中に入れるかどうかを指定します.
26570 \begin_inset Flex Code
26571 status collapsed
26572
26573 \begin_layout Plain Layout
26574 never
26575 \end_layout
26576
26577 \end_inset
26578
26579 は,
26580 このタグを
26581 \begin_inset Flex Code
26582 status collapsed
26583
26584 \begin_layout Plain Layout
26585 <info>
26586 \end_layout
26587
26588 \end_inset
26589
26590 の中に決して入れないことを示します(これは既定値であり通常の内容に対応します).
26591 \begin_inset Flex Code
26592 status collapsed
26593
26594 \begin_layout Plain Layout
26595 always
26596 \end_layout
26597
26598 \end_inset
26599
26600 は,
26601 このタグを
26602 \begin_inset Flex Code
26603 status collapsed
26604
26605 \begin_layout Plain Layout
26606 <info>
26607 \end_layout
26608
26609 \end_inset
26610
26611 の中につねに入れることを示します(これは通常のメタデータに対応します).親に
26612 \begin_inset Flex Code
26613 status collapsed
26614
26615 \begin_layout Plain Layout
26616 <info>
26617 \end_layout
26618
26619 \end_inset
26620
26621 タグがない場合には生成
26622 \begin_inset Flex 圏点
26623 status open
26624
26625 \begin_layout Plain Layout
26626 されます
26627 \end_layout
26628
26629 \end_inset
26630
26631
26632 \begin_inset Flex Code
26633 status collapsed
26634
26635 \begin_layout Plain Layout
26636 maybe
26637 \end_layout
26638
26639 \end_inset
26640
26641 は,
26642 このタグを
26643 \begin_inset Flex Code
26644 status collapsed
26645
26646 \begin_layout Plain Layout
26647 <info>
26648 \end_layout
26649
26650 \end_inset
26651
26652 の中に入れるかもしれないことを示します(これは表題の場合にのみ該当します).親に
26653 \begin_inset Flex Code
26654 status collapsed
26655
26656 \begin_layout Plain Layout
26657 <info>
26658 \end_layout
26659
26660 \end_inset
26661
26662 タグがない場合には生成されることは
26663 \begin_inset Flex 圏点
26664 status open
26665
26666 \begin_layout Plain Layout
26667 ありません
26668 \end_layout
26669
26670 \end_inset
26671
26672 .対応するタグは,
26673 内容として直接出力されます.
26674 \end_layout
26675
26676 \begin_layout Description
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681 DocBookItemAttr
26682 \end_layout
26683
26684 \end_inset
26685
26686  [
26687 \begin_inset Flex Code
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691 文字列
26692 \end_layout
26693
26694 \end_inset
26695
26696 ] 項目タグに出力される属性情報を,
26697 上記の例の「
26698 \begin_inset Flex Code
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702 itemattr
26703 \end_layout
26704
26705 \end_inset
26706
26707 」の位置に指定します.この情報は,
26708 DocBookファイルの後処理に使用することができます.
26709 \end_layout
26710
26711 \begin_layout Description
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 DocBookItemInnerAttr
26717 \end_layout
26718
26719 \end_inset
26720
26721  [
26722 \begin_inset Flex Code
26723 status collapsed
26724
26725 \begin_layout Plain Layout
26726 文字列
26727 \end_layout
26728
26729 \end_inset
26730
26731 ] 項目内部タグに出力される属性情報を,
26732 上記の例の「
26733 \begin_inset Flex Code
26734 status collapsed
26735
26736 \begin_layout Plain Layout
26737 iteminnerattr
26738 \end_layout
26739
26740 \end_inset
26741
26742 」の位置に指定します.この情報は,
26743 DocBookファイルの後処理に使用することができます.
26744 \end_layout
26745
26746 \begin_layout Description
26747 \begin_inset Flex Code
26748 status collapsed
26749
26750 \begin_layout Plain Layout
26751 DocBookItemInnerTag
26752 \end_layout
26753
26754 \end_inset
26755
26756  [
26757 \begin_inset Flex Code
26758 status collapsed
26759
26760 \begin_layout Plain Layout
26761 文字列
26762 \end_layout
26763
26764 \end_inset
26765
26766 ] 差込枠内部の項目内部タグに使用するタグ.上記の例の「
26767 \begin_inset Flex Code
26768 status collapsed
26769
26770 \begin_layout Plain Layout
26771 iteminnertag
26772 \end_layout
26773
26774 \end_inset
26775
26776 」の位置に出力します.既定値は
26777 \begin_inset Flex Code
26778 status collapsed
26779
26780 \begin_layout Plain Layout
26781 NONE
26782 \end_layout
26783
26784 \end_inset
26785
26786 で,
26787 項目内部タグがないことを示します.すなわち,
26788 各項目立て要素について,
26789 項目内部タグなしに中身が直接出力されます.このパラメーターは,
26790 箇条書きのように,
26791 項目立てレイアウトが使われているときのみ意味を持ちます.最もあり得る値は「
26792 \begin_inset Flex Code
26793 status collapsed
26794
26795 \begin_layout Plain Layout
26796 para
26797 \end_layout
26798
26799 \end_inset
26800
26801 」です.
26802 \begin_inset Newline newline
26803 \end_inset
26804
26805 箇条書き項目が新規行を使って分割される場合,
26806 項目内部タグは,
26807 新規行で分割される段落の各部分に対して個別に出力されます.
26808 \end_layout
26809
26810 \begin_layout Description
26811 \begin_inset Flex Code
26812 status collapsed
26813
26814 \begin_layout Plain Layout
26815 DocBookItemInnerTagType
26816 \end_layout
26817
26818 \end_inset
26819
26820  [
26821 \begin_inset Flex Code
26822 status collapsed
26823
26824 \begin_layout Plain Layout
26825 block
26826 \end_layout
26827
26828 \end_inset
26829
26830 ,
26831  
26832 \begin_inset Flex Code
26833 status collapsed
26834
26835 \begin_layout Plain Layout
26836 paragraph
26837 \end_layout
26838
26839 \end_inset
26840
26841 ,
26842  
26843 \begin_inset Flex Code
26844 status collapsed
26845
26846 \begin_layout Plain Layout
26847 inline
26848 \end_layout
26849
26850 \end_inset
26851
26852 ] このタグの新規行ポリシー.詳細は第
26853 \begin_inset CommandInset ref
26854 LatexCommand ref
26855 reference "subsec:新規行ポリシー"
26856 plural "false"
26857 caps "false"
26858 noprefix "false"
26859 nolink "false"
26860
26861 \end_inset
26862
26863 節を参照のこと.
26864 \end_layout
26865
26866 \begin_layout Description
26867 \begin_inset Flex Code
26868 status collapsed
26869
26870 \begin_layout Plain Layout
26871 DocBookItemLabelAttr
26872 \end_layout
26873
26874 \end_inset
26875
26876  [
26877 \begin_inset Flex Code
26878 status collapsed
26879
26880 \begin_layout Plain Layout
26881 文字列
26882 \end_layout
26883
26884 \end_inset
26885
26886 ] 項目ラベルタグに出力される属性情報を,
26887 上記の例の「
26888 \begin_inset Flex Code
26889 status collapsed
26890
26891 \begin_layout Plain Layout
26892 itemlabelattr
26893 \end_layout
26894
26895 \end_inset
26896
26897 」の位置に指定します.この情報は,
26898 DocBookファイルの後処理に使用することができます.
26899 \end_layout
26900
26901 \begin_layout Description
26902 \begin_inset Flex Code
26903 status collapsed
26904
26905 \begin_layout Plain Layout
26906 DocBookItemLabelTag
26907 \end_layout
26908
26909 \end_inset
26910
26911  [
26912 \begin_inset Flex Code
26913 status collapsed
26914
26915 \begin_layout Plain Layout
26916 文字列
26917 \end_layout
26918
26919 \end_inset
26920
26921 ] 差込枠内部の項目ラベルタグに使用するタグ.上記の例の「
26922 \begin_inset Flex Code
26923 status collapsed
26924
26925 \begin_layout Plain Layout
26926 itemlabeltag
26927 \end_layout
26928
26929 \end_inset
26930
26931 」の位置に出力します.このパラメーターは,
26932 定義リストのように,
26933 ラベルの概念を伴う項目立てレイアウトが使われているときのみ意味を持ちます.
26934 \end_layout
26935
26936 \begin_layout Description
26937 \begin_inset Flex Code
26938 status collapsed
26939
26940 \begin_layout Plain Layout
26941 DocBookItemLabelTagType
26942 \end_layout
26943
26944 \end_inset
26945
26946  [
26947 \begin_inset Flex Code
26948 status collapsed
26949
26950 \begin_layout Plain Layout
26951 block
26952 \end_layout
26953
26954 \end_inset
26955
26956 ,
26957  
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 paragraph
26963 \end_layout
26964
26965 \end_inset
26966
26967 ,
26968  
26969 \begin_inset Flex Code
26970 status collapsed
26971
26972 \begin_layout Plain Layout
26973 inline
26974 \end_layout
26975
26976 \end_inset
26977
26978 ] このタグの新規行ポリシー.詳細は第
26979 \begin_inset CommandInset ref
26980 LatexCommand ref
26981 reference "subsec:新規行ポリシー"
26982 plural "false"
26983 caps "false"
26984 noprefix "false"
26985 nolink "false"
26986
26987 \end_inset
26988
26989 節を参照のこと.
26990 \end_layout
26991
26992 \begin_layout Description
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 DocBookItemTag
26998 \end_layout
26999
27000 \end_inset
27001
27002  [
27003 \begin_inset Flex Code
27004 status collapsed
27005
27006 \begin_layout Plain Layout
27007 文字列
27008 \end_layout
27009
27010 \end_inset
27011
27012 ] 差込枠内部の項目タグに使用するタグ.上記の例の「
27013 \begin_inset Flex Code
27014 status collapsed
27015
27016 \begin_layout Plain Layout
27017 itemtag
27018 \end_layout
27019
27020 \end_inset
27021
27022 」の位置に出力します.既定値は
27023 \begin_inset Flex Code
27024 status collapsed
27025
27026 \begin_layout Plain Layout
27027 NONE
27028 \end_layout
27029
27030 \end_inset
27031
27032 で,
27033 項目タグがないことを示します.このパラメーターは,
27034 箇条書きのように,
27035 項目立てレイアウトが使われているときのみ意味を持ちます.
27036 \end_layout
27037
27038 \begin_layout Description
27039 \begin_inset Flex Code
27040 status collapsed
27041
27042 \begin_layout Plain Layout
27043 DocBookItemTagType
27044 \end_layout
27045
27046 \end_inset
27047
27048  [
27049 \begin_inset Flex Code
27050 status collapsed
27051
27052 \begin_layout Plain Layout
27053 block
27054 \end_layout
27055
27056 \end_inset
27057
27058 ,
27059  
27060 \begin_inset Flex Code
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064 paragraph
27065 \end_layout
27066
27067 \end_inset
27068
27069 ,
27070  
27071 \begin_inset Flex Code
27072 status collapsed
27073
27074 \begin_layout Plain Layout
27075 inline
27076 \end_layout
27077
27078 \end_inset
27079
27080 ] このタグの新規行ポリシー.詳細は第
27081 \begin_inset CommandInset ref
27082 LatexCommand ref
27083 reference "subsec:新規行ポリシー"
27084 plural "false"
27085 caps "false"
27086 noprefix "false"
27087 nolink "false"
27088
27089 \end_inset
27090
27091 節を参照のこと.
27092 \end_layout
27093
27094 \begin_layout Description
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 DocBookItemWrapperAttr
27100 \end_layout
27101
27102 \end_inset
27103
27104  [
27105 \begin_inset Flex Code
27106 status collapsed
27107
27108 \begin_layout Plain Layout
27109 文字列
27110 \end_layout
27111
27112 \end_inset
27113
27114 ] 項目ラッパータグに出力される属性情報を,
27115 上記の例の「
27116 \begin_inset Flex Code
27117 status collapsed
27118
27119 \begin_layout Plain Layout
27120 itemwrapperattr
27121 \end_layout
27122
27123 \end_inset
27124
27125 」の位置に指定します.この情報は,
27126 DocBookファイルの後処理に使用することができます.
27127 \end_layout
27128
27129 \begin_layout Description
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 DocBookItemWrapperTag
27135 \end_layout
27136
27137 \end_inset
27138
27139  [
27140 \begin_inset Flex Code
27141 status collapsed
27142
27143 \begin_layout Plain Layout
27144 文字列
27145 \end_layout
27146
27147 \end_inset
27148
27149 ] 差込枠内部の項目ラッパータグに使用するタグ.上記の例の「
27150 \begin_inset Flex Code
27151 status collapsed
27152
27153 \begin_layout Plain Layout
27154 itemwrappertag
27155 \end_layout
27156
27157 \end_inset
27158
27159 」の位置に出力します.既定値は
27160 \begin_inset Flex Code
27161 status collapsed
27162
27163 \begin_layout Plain Layout
27164 NONE
27165 \end_layout
27166
27167 \end_inset
27168
27169 で,
27170 項目ラッパータグがないことを示します.すなわち,
27171 各項目立て要素について,
27172 項目ラッパータグなしにタグと中身が直接出力されます.このパラメーターは,
27173 箇条書きのように,
27174 項目立てレイアウトが使われているときのみ意味を持ちます.
27175 \end_layout
27176
27177 \begin_layout Description
27178 \begin_inset Flex Code
27179 status collapsed
27180
27181 \begin_layout Plain Layout
27182 DocBookItemWrapperTagType
27183 \end_layout
27184
27185 \end_inset
27186
27187  [
27188 \begin_inset Flex Code
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 block
27193 \end_layout
27194
27195 \end_inset
27196
27197 ,
27198  
27199 \begin_inset Flex Code
27200 status collapsed
27201
27202 \begin_layout Plain Layout
27203 paragraph
27204 \end_layout
27205
27206 \end_inset
27207
27208 ,
27209  
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214 inline
27215 \end_layout
27216
27217 \end_inset
27218
27219 ] このタグの新規行ポリシー.詳細は第
27220 \begin_inset CommandInset ref
27221 LatexCommand ref
27222 reference "subsec:新規行ポリシー"
27223 plural "false"
27224 caps "false"
27225 noprefix "false"
27226 nolink "false"
27227
27228 \end_inset
27229
27230 節を参照のこと.
27231 \end_layout
27232
27233 \begin_layout Description
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238 DocBookInnerAttr
27239 \end_layout
27240
27241 \end_inset
27242
27243  [
27244 \begin_inset Flex Code
27245 status collapsed
27246
27247 \begin_layout Plain Layout
27248 文字列
27249 \end_layout
27250
27251 \end_inset
27252
27253 ] 内部タグに出力される属性情報を,
27254 上記の例の「
27255 \begin_inset Flex Code
27256 status collapsed
27257
27258 \begin_layout Plain Layout
27259 innerattr
27260 \end_layout
27261
27262 \end_inset
27263
27264 」の位置に指定します.この情報は,
27265 DocBookファイルの後処理に使用することができます.
27266 \end_layout
27267
27268 \begin_layout Description
27269 \begin_inset Flex Code
27270 status collapsed
27271
27272 \begin_layout Plain Layout
27273 DocBookInnerTag
27274 \end_layout
27275
27276 \end_inset
27277
27278  [
27279 \begin_inset Flex Code
27280 status collapsed
27281
27282 \begin_layout Plain Layout
27283 文字列
27284 \end_layout
27285
27286 \end_inset
27287
27288 ] 差込枠内部の内部タグに使用するタグ.上記の例の「
27289 \begin_inset Flex Code
27290 status collapsed
27291
27292 \begin_layout Plain Layout
27293 innertag
27294 \end_layout
27295
27296 \end_inset
27297
27298 」の位置に出力します.既定値は
27299 \begin_inset Flex Code
27300 status collapsed
27301
27302 \begin_layout Plain Layout
27303 NONE
27304 \end_layout
27305
27306 \end_inset
27307
27308 で,
27309 内部タグがないことを示します.すなわち,
27310 内部タグなしに中身が直接出力されます.
27311 \end_layout
27312
27313 \begin_layout Description
27314 \begin_inset Flex Code
27315 status collapsed
27316
27317 \begin_layout Plain Layout
27318 DocBookInnerTagType
27319 \end_layout
27320
27321 \end_inset
27322
27323  [
27324 \begin_inset Flex Code
27325 status collapsed
27326
27327 \begin_layout Plain Layout
27328 block
27329 \end_layout
27330
27331 \end_inset
27332
27333 ,
27334  
27335 \begin_inset Flex Code
27336 status collapsed
27337
27338 \begin_layout Plain Layout
27339 paragraph
27340 \end_layout
27341
27342 \end_inset
27343
27344 ,
27345  
27346 \begin_inset Flex Code
27347 status collapsed
27348
27349 \begin_layout Plain Layout
27350 inline
27351 \end_layout
27352
27353 \end_inset
27354
27355 ] このタグの新規行ポリシー.詳細は第
27356 \begin_inset CommandInset ref
27357 LatexCommand ref
27358 reference "subsec:新規行ポリシー"
27359 plural "false"
27360 caps "false"
27361 noprefix "false"
27362 nolink "false"
27363
27364 \end_inset
27365
27366 節を参照のこと.
27367 \end_layout
27368
27369 \begin_layout Description
27370 \begin_inset Flex Code
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 DocBookSectionTag
27375 \end_layout
27376
27377 \end_inset
27378
27379  [
27380 \begin_inset Flex Code
27381 status collapsed
27382
27383 \begin_layout Plain Layout
27384 文字列
27385 \end_layout
27386
27387 \end_inset
27388
27389 ] このタイプのセクションに対応するタグを指定します.このパラメーターは,
27390 セクショニング要素(部・章・節等)にのみ意味を持ちます.既定値は
27391 \begin_inset Flex Code
27392 status collapsed
27393
27394 \begin_layout Plain Layout
27395 section
27396 \end_layout
27397
27398 \end_inset
27399
27400 で,
27401 DocBookがセクショニングに他のものを使うときのみ上書きされます(典型的にはbookの部や章).
27402 \end_layout
27403
27404 \begin_layout Description
27405 \begin_inset Flex Code
27406 status collapsed
27407
27408 \begin_layout Plain Layout
27409 DocBookTag
27410 \end_layout
27411
27412 \end_inset
27413
27414  [
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419 文字列
27420 \end_layout
27421
27422 \end_inset
27423
27424 ] この差込枠に使用するタグ.上記の例の「
27425 \begin_inset Flex Code
27426 status collapsed
27427
27428 \begin_layout Plain Layout
27429 tag
27430 \end_layout
27431
27432 \end_inset
27433
27434 」の位置に出力します.既定値はフロート名で,
27435 DocBookには一般的なタグはないので,
27436 つねに変更する必要があります.
27437 \end_layout
27438
27439 \begin_layout Description
27440 \begin_inset Flex Code
27441 status collapsed
27442
27443 \begin_layout Plain Layout
27444 DocBookTagType
27445 \end_layout
27446
27447 \end_inset
27448
27449  [
27450 \begin_inset Flex Code
27451 status collapsed
27452
27453 \begin_layout Plain Layout
27454 block
27455 \end_layout
27456
27457 \end_inset
27458
27459 ,
27460  
27461 \begin_inset Flex Code
27462 status collapsed
27463
27464 \begin_layout Plain Layout
27465 paragraph
27466 \end_layout
27467
27468 \end_inset
27469
27470 ,
27471  
27472 \begin_inset Flex Code
27473 status collapsed
27474
27475 \begin_layout Plain Layout
27476 inline
27477 \end_layout
27478
27479 \end_inset
27480
27481 ] このタグの新規行ポリシー.詳細は第
27482 \begin_inset CommandInset ref
27483 LatexCommand ref
27484 reference "subsec:新規行ポリシー"
27485 plural "false"
27486 caps "false"
27487 noprefix "false"
27488 nolink "false"
27489
27490 \end_inset
27491
27492 節を参照のこと.
27493 \end_layout
27494
27495 \begin_layout Description
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 DocBookWrapperAttr
27501 \end_layout
27502
27503 \end_inset
27504
27505  [
27506 \begin_inset Flex Code
27507 status collapsed
27508
27509 \begin_layout Plain Layout
27510 文字列
27511 \end_layout
27512
27513 \end_inset
27514
27515 ] 外部ラッパータグに出力される属性情報を,
27516 上記の例の「
27517 \begin_inset Flex Code
27518 status collapsed
27519
27520 \begin_layout Plain Layout
27521 wrapperattr
27522 \end_layout
27523
27524 \end_inset
27525
27526 」の位置に指定します.この情報は,
27527 DocBookファイルの後処理に使用することができます.
27528 \end_layout
27529
27530 \begin_layout Description
27531 \begin_inset Flex Code
27532 status collapsed
27533
27534 \begin_layout Plain Layout
27535 DocBookWrapperTag
27536 \end_layout
27537
27538 \end_inset
27539
27540  [
27541 \begin_inset Flex Code
27542 status collapsed
27543
27544 \begin_layout Plain Layout
27545 文字列
27546 \end_layout
27547
27548 \end_inset
27549
27550 ] 差込枠の周りのラッパータグに使用するタグ.上記の例の「
27551 \begin_inset Flex Code
27552 status collapsed
27553
27554 \begin_layout Plain Layout
27555 wrappertag
27556 \end_layout
27557
27558 \end_inset
27559
27560 」の位置に出力します.既定値は
27561 \begin_inset Flex Code
27562 status collapsed
27563
27564 \begin_layout Plain Layout
27565 NONE
27566 \end_layout
27567
27568 \end_inset
27569
27570 で,
27571 ラッパータグがないことを示します.すなわち,
27572 ラッパータグなしにタグと中身が直接出力されます.
27573 \end_layout
27574
27575 \begin_layout Description
27576 \begin_inset Flex Code
27577 status collapsed
27578
27579 \begin_layout Plain Layout
27580 DocBookWrapperTagType
27581 \end_layout
27582
27583 \end_inset
27584
27585  [
27586 \begin_inset Flex Code
27587 status collapsed
27588
27589 \begin_layout Plain Layout
27590 block
27591 \end_layout
27592
27593 \end_inset
27594
27595 ,
27596  
27597 \begin_inset Flex Code
27598 status collapsed
27599
27600 \begin_layout Plain Layout
27601 paragraph
27602 \end_layout
27603
27604 \end_inset
27605
27606 ,
27607  
27608 \begin_inset Flex Code
27609 status collapsed
27610
27611 \begin_layout Plain Layout
27612 inline
27613 \end_layout
27614
27615 \end_inset
27616
27617 ] このタグの新規行ポリシー.詳細は第
27618 \begin_inset CommandInset ref
27619 LatexCommand ref
27620 reference "subsec:新規行ポリシー"
27621 plural "false"
27622 caps "false"
27623 noprefix "false"
27624 nolink "false"
27625
27626 \end_inset
27627
27628 節を参照のこと.
27629 \end_layout
27630
27631 \begin_layout Subsection
27632 Float DocBook
27633 \end_layout
27634
27635 \begin_layout Standard
27636 フロートのDocBook出力もレイアウトファイルの情報によって制御されます.出力は以下の形を取ります.
27637 \end_layout
27638
27639 \begin_layout LyX-Code
27640 <tag attr>
27641 \end_layout
27642
27643 \begin_layout LyX-Code
27644  DocBookとしてのフロートの内容
27645 \end_layout
27646
27647 \begin_layout LyX-Code
27648 </tag>
27649 \end_layout
27650
27651 \begin_layout Standard
27652 キャプションは,
27653 存在するならば別の差込枠となり,
27654 表題とともに出力されます.
27655 \end_layout
27656
27657 \begin_layout Description
27658 \begin_inset Flex Code
27659 status collapsed
27660
27661 \begin_layout Plain Layout
27662 DocBookAttr
27663 \end_layout
27664
27665 \end_inset
27666
27667  [
27668 \begin_inset Flex Code
27669 status collapsed
27670
27671 \begin_layout Plain Layout
27672 文字列
27673 \end_layout
27674
27675 \end_inset
27676
27677 ] メインタグに出力される属性情報を,
27678 上記の例の「
27679 \begin_inset Flex Code
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683 attr
27684 \end_layout
27685
27686 \end_inset
27687
27688 」の位置に指定します.この情報は,
27689 DocBookファイルの後処理に使用することができます.
27690 \end_layout
27691
27692 \begin_layout Description
27693 \begin_inset Flex Code
27694 status collapsed
27695
27696 \begin_layout Plain Layout
27697 DocBookTag
27698 \end_layout
27699
27700 \end_inset
27701
27702  [
27703 \begin_inset Flex Code
27704 status collapsed
27705
27706 \begin_layout Plain Layout
27707 文字列
27708 \end_layout
27709
27710 \end_inset
27711
27712 ] このフロートに使用するタグ.上記の例の「
27713 \begin_inset Flex Code
27714 status collapsed
27715
27716 \begin_layout Plain Layout
27717 tag
27718 \end_layout
27719
27720 \end_inset
27721
27722 」の位置に出力します.既定値はフロート名で,
27723 DocBookには一般的なタグはないので,
27724 つねに変更する必要があります.
27725 \end_layout
27726
27727 \begin_layout Subsection
27728 書誌情報の組版
27729 \end_layout
27730
27731 \begin_layout Standard
27732 読み込んだ書誌情報は整形することができません.すなわち,
27733 フィールドはすべて,
27734
27735 \begin_inset Flex Code
27736 status collapsed
27737
27738 \begin_layout Plain Layout
27739 bibentry
27740 \end_layout
27741
27742 \end_inset
27743
27744 タグを使用して(BibTeXファイルと同等な)データベース型のDocBook形式でつねに出力されます.
27745 \end_layout
27746
27747 \begin_layout Standard
27748 書誌情報項目が,
27749 \SpecialChar LyX
27750 文書に書誌情報項目として手動で挿入されると,
27751 ユーザーはその整形を担当します.すなわち,
27752 ユーザーが書いたことを解析することは為されず,
27753 文字列は(
27754 \begin_inset Flex Code
27755 status collapsed
27756
27757 \begin_layout Plain Layout
27758 bibliomixed
27759 \end_layout
27760
27761 \end_inset
27762
27763 タグを用いて)直接に使用されます.
27764 \end_layout
27765
27766 \begin_layout Chapter
27767 外部素材を取り込む
27768 \begin_inset CommandInset label
27769 LatexCommand label
27770 name "chap:外部素材を取り込む"
27771
27772 \end_inset
27773
27774
27775 \end_layout
27776
27777 \begin_layout Standard
27778 \begin_inset Box Shadowbox
27779 position "t"
27780 hor_pos "c"
27781 has_inner_box 1
27782 inner_pos "t"
27783 use_parbox 0
27784 use_makebox 0
27785 width "100col%"
27786 special "none"
27787 height "1in"
27788 height_special "totalheight"
27789 thickness "0.4pt"
27790 separation "3pt"
27791 shadowsize "4pt"
27792 framecolor "black"
27793 backgroundcolor "none"
27794 status open
27795
27796 \begin_layout Plain Layout
27797 【警告】本説明書のこの部分は,
27798 しばらく更新されていません.もちろんまだ正確であることを期待していますが,
27799 保証の限りではありません.
27800 \end_layout
27801
27802 \end_inset
27803
27804
27805 \end_layout
27806
27807 \begin_layout Standard
27808 \SpecialChar LyX
27809 外部のソースから素材を使用する方法は,
27810 取扱説明書『
27811 \emph on
27812 埋込オブジェクト篇
27813 \emph default
27814 』で詳細にカバーされています.本章は,
27815 新種の素材を取り込む際に,
27816 舞台裏で何をする必要があるかをカバーします.
27817 \end_layout
27818
27819 \begin_layout Section
27820 どのように機能するのか
27821 \end_layout
27822
27823 \begin_layout Standard
27824 外部素材の機能は,
27825 ひな型の概念に基づいています.ひな型は,
27826 \SpecialChar LyX
27827 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,
27828 \SpecialChar LyX
27829 は,
27830 Xfigの図や,
27831 様々なラスター形式画像,
27832 チェス棋譜,
27833 LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
27834
27835 \begin_inset Flex MenuItem
27836 status collapsed
27837
27838 \begin_layout Plain Layout
27839 挿入\SpecialChar menuseparator
27840 ファイル\SpecialChar menuseparator
27841 外部素材
27842 \end_layout
27843
27844 \end_inset
27845
27846 メニューで見ることができます.さらに,
27847 特定の型の素材をサポートするのに,
27848 自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しますが,
27849 できればあなたが作ったすべてのひな型を投稿して,
27850 我々が\SpecialChar LyX
27851 の後の版に取り込むことができるようにしてくださることを希望します.
27852 \end_layout
27853
27854 \begin_layout Standard
27855 外部素材の機能におけるもう一つの基本的な発想は,
27856 最終素材の元となるオリジナルファイルと,
27857 書き出された文書や印刷された文書に取り込むための生成ファイルとを区別していることです.たとえば,
27858
27859 \begin_inset Flex Code
27860 status collapsed
27861
27862 \begin_layout Plain Layout
27863 Xfig
27864 \end_layout
27865
27866 \end_inset
27867
27868 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
27869
27870 \begin_inset Flex Code
27871 status collapsed
27872
27873 \begin_layout Plain Layout
27874 .fig
27875 \end_layout
27876
27877 \end_inset
27878
27879 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,
27880 作業が終われば
27881 \begin_inset Flex Code
27882 status collapsed
27883
27884 \begin_layout Plain Layout
27885 fig
27886 \end_layout
27887
27888 \end_inset
27889
27890 ファイルに保存します.この図をお使いの文書に取り込みたいときには,
27891 \SpecialChar LaTeX
27892 ファイルにそのままインクルードできるように,
27893
27894 \begin_inset Flex Code
27895 status collapsed
27896
27897 \begin_layout Plain Layout
27898 transfig
27899 \end_layout
27900
27901 \end_inset
27902
27903 を呼び出してPostScriptファイルを生成します.この場合には,
27904
27905 \begin_inset Flex Code
27906 status collapsed
27907
27908 \begin_layout Plain Layout
27909 .fig
27910 \end_layout
27911
27912 \end_inset
27913
27914 ファイルがオリジナルファイルであり,
27915 PostScriptファイルが生成ファイルになります.
27916 \end_layout
27917
27918 \begin_layout Standard
27919 この区別は,
27920 文書を執筆している最中に,
27921 素材を更新することができるようにするために重要です.さらに,
27922 これによって,
27923 複数の書き出し書式をサポートするために必要な柔軟性が提供されます.たとえば,
27924 平文テキストファイルの場合には,
27925 図を生のPostScriptファイルとして取り込むのは,
27926 とても褒められた発想とはいえません.むしろ,
27927 その図への参照だけを含めるか,
27928 最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
27929 の外部素材マネジメントは,
27930 \SpecialChar LyX
27931 がサポートする各書き出し書式別に仕分けしているので,
27932 ユーザがこれを行うことが可能となっています.
27933 \end_layout
27934
27935 \begin_layout Standard
27936 \SpecialChar LyX
27937 の外部素材マネジメントは,
27938 書き出し書式によって異なる生成物をサポートすることの他に,
27939 編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図の場合には,
27940 \SpecialChar LyX
27941 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,
27942 ダブルクリックすることで生成されたPostScriptファイルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,
27943 オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファイルブラウザをいじくり回す必要はないのです.このようにして,
27944 文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,
27945 最終的により生産性を上げることができるようになるのです.
27946 \end_layout
27947
27948 \begin_layout Section
27949 外用ひな型設定ファイル
27950 \end_layout
27951
27952 \begin_layout Standard
27953 \SpecialChar LyX
27954 に自製の外用ひな型を付け加えるのは,
27955 比較的簡単です.しかしながら,
27956 これを不用心に行ってしまうと,
27957 たいていの場合,
27958 簡単に濫用されてしまうようなセキュリティホールを作ってしまいがちであることを心に留めておいてください.したがって,
27959 これを実行に移す前に,
27960
27961 \begin_inset CommandInset ref
27962 LatexCommand ref
27963 reference "sec:セキュリティに関する論点"
27964 nolink "false"
27965
27966 \end_inset
27967
27968 のセキュリティに関する議論を読んでおいてください.
27969 \end_layout
27970
27971 \begin_layout Standard
27972 このことに言及した上で,
27973 あなたが作成した面白いひな型は,
27974 ぜひ投稿してください.
27975 \end_layout
27976
27977 \begin_layout Standard
27978 外用ひな型ファイルは,
27979
27980 \begin_inset Flex Code
27981 status collapsed
27982
27983 \begin_layout Plain Layout
27984 LyXDir/lib/xtemplates/
27985 \end_layout
27986
27987 \end_inset
27988
27989 ディレクトリ中にある
27990 \begin_inset Flex Code
27991 status collapsed
27992
27993 \begin_layout Plain Layout
27994 *.xtemplate
27995 \end_layout
27996
27997 \end_inset
27998
27999 ファイルに定義されています.各ひな型は,
28000 そのファイル完結で定義されています.自分専用のひな型を
28001 \begin_inset Flex Code
28002 status collapsed
28003
28004 \begin_layout Plain Layout
28005 UserDir/xtemplates/
28006 \end_layout
28007
28008 \end_inset
28009
28010 に置くこともできますし,
28011 既存のひな型をそのデイレク取りにコピーして修正を加えることもできます.
28012 \end_layout
28013
28014 \begin_layout Standard
28015 典型的なひな型は以下のようになります.
28016 \end_layout
28017
28018 \begin_layout LyX-Code
28019 Template XFig
28020 \end_layout
28021
28022 \begin_layout LyX-Code
28023 GuiName "XFig:
28024  $$AbsOrRelPathParent$$Basename"
28025 \end_layout
28026
28027 \begin_layout LyX-Code
28028 HelpText
28029 \end_layout
28030
28031 \begin_layout LyX-Code
28032 An XFig figure.
28033 \end_layout
28034
28035 \begin_layout LyX-Code
28036 HelpTextEnd
28037 \end_layout
28038
28039 \begin_layout LyX-Code
28040 InputFormat fig
28041 \end_layout
28042
28043 \begin_layout LyX-Code
28044 FileFilter "*.fig"
28045 \end_layout
28046
28047 \begin_layout LyX-Code
28048 AutomaticProduction true
28049 \end_layout
28050
28051 \begin_layout LyX-Code
28052 Transform Rotate
28053 \end_layout
28054
28055 \begin_layout LyX-Code
28056 Transform Resize
28057 \end_layout
28058
28059 \begin_layout LyX-Code
28060 Format LaTeX
28061 \end_layout
28062
28063 \begin_layout LyX-Code
28064 TransformCommand Rotate RotationLatexCommand
28065 \end_layout
28066
28067 \begin_layout LyX-Code
28068 TransformCommand Resize ResizeLatexCommand
28069 \end_layout
28070
28071 \begin_layout LyX-Code
28072 Product "$$RotateFront$$ResizeFront
28073 \end_layout
28074
28075 \begin_layout LyX-Code
28076          
28077 \backslash
28078
28079 \backslash
28080 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
28081 \end_layout
28082
28083 \begin_layout LyX-Code
28084          $$ResizeBack$$RotateBack"
28085 \end_layout
28086
28087 \begin_layout LyX-Code
28088 UpdateFormat pstex
28089 \end_layout
28090
28091 \begin_layout LyX-Code
28092 UpdateResult "$$AbsPath$$Basename.pstex_t"
28093 \end_layout
28094
28095 \begin_layout LyX-Code
28096 Requirement "graphicx"
28097 \end_layout
28098
28099 \begin_layout LyX-Code
28100 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28101 \end_layout
28102
28103 \begin_layout LyX-Code
28104 ReferencedFile latex "$$AbsPath$$Basename.eps"
28105 \end_layout
28106
28107 \begin_layout LyX-Code
28108 ReferencedFile dvi "$$AbsPath$$Basename.eps"
28109 \end_layout
28110
28111 \begin_layout LyX-Code
28112 FormatEnd
28113 \end_layout
28114
28115 \begin_layout LyX-Code
28116 Format PDFLaTeX
28117 \end_layout
28118
28119 \begin_layout LyX-Code
28120 TransformCommand Rotate RotationLatexCommand
28121 \end_layout
28122
28123 \begin_layout LyX-Code
28124 TransformCommand Resize ResizeLatexCommand
28125 \end_layout
28126
28127 \begin_layout LyX-Code
28128 Product "$$RotateFront$$ResizeFront
28129 \end_layout
28130
28131 \begin_layout LyX-Code
28132          
28133 \backslash
28134
28135 \backslash
28136 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
28137 \end_layout
28138
28139 \begin_layout LyX-Code
28140          $$ResizeBack$$RotateBack"
28141 \end_layout
28142
28143 \begin_layout LyX-Code
28144 UpdateFormat pdftex
28145 \end_layout
28146
28147 \begin_layout LyX-Code
28148 UpdateResult "$$AbsPath$$Basename.pdftex_t"
28149 \end_layout
28150
28151 \begin_layout LyX-Code
28152 Requirement "graphicx"
28153 \end_layout
28154
28155 \begin_layout LyX-Code
28156 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
28157 \end_layout
28158
28159 \begin_layout LyX-Code
28160 ReferencedFile latex "$$AbsPath$$Basename.pdf"
28161 \end_layout
28162
28163 \begin_layout LyX-Code
28164 FormatEnd
28165 \end_layout
28166
28167 \begin_layout LyX-Code
28168 Format Ascii
28169 \end_layout
28170
28171 \begin_layout LyX-Code
28172 Product "$$Contents(
28173 \backslash
28174 "$$AbsPath$$Basename.asc
28175 \backslash
28176 ")"
28177 \end_layout
28178
28179 \begin_layout LyX-Code
28180 UpdateFormat asciixfig
28181 \end_layout
28182
28183 \begin_layout LyX-Code
28184 UpdateResult "$$AbsPath$$Basename.asc"
28185 \end_layout
28186
28187 \begin_layout LyX-Code
28188 FormatEnd
28189 \end_layout
28190
28191 \begin_layout LyX-Code
28192 Format DocBook
28193 \end_layout
28194
28195 \begin_layout LyX-Code
28196 Product "<graphic fileref=
28197 \backslash
28198 "$$AbsOrRelPathMaster$$Basename.eps
28199 \backslash
28200 ">
28201 \end_layout
28202
28203 \begin_layout LyX-Code
28204          </graphic>"
28205 \end_layout
28206
28207 \begin_layout LyX-Code
28208 UpdateFormat eps
28209 \end_layout
28210
28211 \begin_layout LyX-Code
28212 UpdateResult "$$AbsPath$$Basename.eps"
28213 \end_layout
28214
28215 \begin_layout LyX-Code
28216 ReferencedFile docbook "$$AbsPath$$Basename.eps"
28217 \end_layout
28218
28219 \begin_layout LyX-Code
28220 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
28221 \end_layout
28222
28223 \begin_layout LyX-Code
28224 FormatEnd
28225 \end_layout
28226
28227 \begin_layout LyX-Code
28228 Product "[XFig:
28229  $$FName]"
28230 \end_layout
28231
28232 \begin_layout LyX-Code
28233 FormatEnd
28234 \end_layout
28235
28236 \begin_layout LyX-Code
28237 TemplateEnd
28238 \end_layout
28239
28240 \begin_layout Standard
28241 ご覧の通り,
28242 ひな型は
28243 \begin_inset Flex Code
28244 status collapsed
28245
28246 \begin_layout Plain Layout
28247 Template
28248 \end_layout
28249
28250 \end_inset
28251
28252  \SpecialChar ldots
28253  
28254 \begin_inset Flex Code
28255 status collapsed
28256
28257 \begin_layout Plain Layout
28258 TemplateEnd
28259 \end_layout
28260
28261 \end_inset
28262
28263 で閉じられます.ひな型には,
28264 一般的な設定を行うヘッダ部と,
28265 サポートされている主要な文書ファイル形式の設定を行う
28266 \begin_inset Flex Code
28267 status collapsed
28268
28269 \begin_layout Plain Layout
28270 Format
28271 \end_layout
28272
28273 \end_inset
28274
28275  \SpecialChar ldots
28276  
28277 \begin_inset Flex Code
28278 status collapsed
28279
28280 \begin_layout Plain Layout
28281 FormatEnd
28282 \end_layout
28283
28284 \end_inset
28285
28286 部があります.
28287 \end_layout
28288
28289 \begin_layout Subsection
28290 ひな型のヘッダ
28291 \end_layout
28292
28293 \begin_layout Description
28294 \begin_inset Flex Code
28295 status collapsed
28296
28297 \begin_layout Plain Layout
28298 AutomaticProduction
28299 \begin_inset space ~
28300 \end_inset
28301
28302 true|false
28303 \end_layout
28304
28305 \end_inset
28306
28307  このひな型で扱うファイルを\SpecialChar LyX
28308 が生成しなくてはならないか否か.このコマンドは,
28309 一度だけ必ず現れなくてはなりません.
28310 \end_layout
28311
28312 \begin_layout Description
28313 \begin_inset Flex Code
28314 status collapsed
28315
28316 \begin_layout Plain Layout
28317 FileFilter
28318 \begin_inset space ~
28319 \end_inset
28320
28321 <パターン>
28322 \end_layout
28323
28324 \end_inset
28325
28326  望むファイル群を表示するために,
28327 ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,
28328 tgifには
28329 \begin_inset Flex Code
28330 status collapsed
28331
28332 \begin_layout Plain Layout
28333 .obj
28334 \end_layout
28335
28336 \end_inset
28337
28338
28339 \begin_inset Flex Code
28340 status collapsed
28341
28342 \begin_layout Plain Layout
28343 .tgo
28344 \end_layout
28345
28346 \end_inset
28347
28348 があります),
28349
28350 \begin_inset Flex Code
28351 status collapsed
28352
28353 \begin_layout Plain Layout
28354 *.{obj,tgo}
28355 \end_layout
28356
28357 \end_inset
28358
28359 」の様なパターンを使用してください.このコマンドは,
28360 一度だけ必ず現れなくてはなりません.
28361 \end_layout
28362
28363 \begin_layout Description
28364 \begin_inset Flex Code
28365 status collapsed
28366
28367 \begin_layout Plain Layout
28368 GuiName
28369 \begin_inset space ~
28370 \end_inset
28371
28372 <GUI名>
28373 \end_layout
28374
28375 \end_inset
28376
28377  この文字列はボタン上に表示されます.このコマンドは,
28378 一度だけ必ず現れなくてはなりません.
28379 \end_layout
28380
28381 \begin_layout Description
28382 \begin_inset Flex Code
28383 status collapsed
28384
28385 \begin_layout Plain Layout
28386 HelpText
28387 \begin_inset space ~
28388 \end_inset
28389
28390 <文章>
28391 \begin_inset space ~
28392 \end_inset
28393
28394 HelpTextEnd
28395 \end_layout
28396
28397 \end_inset
28398
28399  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,
28400 ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,
28401 一度だけ必ず現れなくてはなりません.
28402 \end_layout
28403
28404 \begin_layout Description
28405 \begin_inset Flex Code
28406 status collapsed
28407
28408 \begin_layout Plain Layout
28409 InputFormat
28410 \begin_inset space ~
28411 \end_inset
28412
28413 <書式>
28414 \end_layout
28415
28416 \end_inset
28417
28418  オリジナルファイルのファイル形式.これは,
28419 \SpecialChar LyX
28420 が知っている書式名でなくてはなりません(
28421 \begin_inset CommandInset ref
28422 LatexCommand ref
28423 reference "sec:ファイル形式"
28424 nolink "false"
28425
28426 \end_inset
28427
28428 参照).このひな型が,
28429 2つ以上の書式のオリジナルファイルを取り扱える場合は,
28430
28431 \begin_inset Flex Code
28432 status collapsed
28433
28434 \begin_layout Plain Layout
28435 *
28436 \end_layout
28437
28438 \end_inset
28439
28440 」を使用してください.この場合,
28441 \SpecialChar LyX
28442 はファイル形式を推定するために,
28443 ファイル自体に詮索を試みます.このコマンドは,
28444 一度だけ必ず現れなくてはなりません.
28445 \end_layout
28446
28447 \begin_layout Description
28448 \begin_inset Flex Code
28449 status collapsed
28450
28451 \begin_layout Plain Layout
28452 Template
28453 \begin_inset space ~
28454 \end_inset
28455
28456 <ID>
28457 \end_layout
28458
28459 \end_inset
28460
28461  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
28462 \end_layout
28463
28464 \begin_layout Description
28465 \begin_inset Flex Code
28466 status collapsed
28467
28468 \begin_layout Plain Layout
28469 Transform
28470 \begin_inset space ~
28471 \end_inset
28472
28473 Rotate|Resize|Clip|Extra
28474 \end_layout
28475
28476 \end_inset
28477
28478  このコマンドは,
28479 このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,
28480 外部素材ダイアログ中の対応するタブを使用可能にします.
28481 \begin_inset Flex Code
28482 status collapsed
28483
28484 \begin_layout Plain Layout
28485 Transform
28486 \end_layout
28487
28488 \end_inset
28489
28490 コマンド一つずつに応じて,
28491
28492 \begin_inset Flex Code
28493 status collapsed
28494
28495 \begin_layout Plain Layout
28496 Format
28497 \end_layout
28498
28499 \end_inset
28500
28501 部に,
28502 対応する
28503 \begin_inset Flex Code
28504 status collapsed
28505
28506 \begin_layout Plain Layout
28507 TransformCommand
28508 \end_layout
28509
28510 \end_inset
28511
28512 コマンドか
28513 \begin_inset Flex Code
28514 status collapsed
28515
28516 \begin_layout Plain Layout
28517 TransformOption
28518 \end_layout
28519
28520 \end_inset
28521
28522 コマンドを置かなくてはなりません.これを行わないと,
28523 この書式での変換はサポートされません.
28524 \end_layout
28525
28526 \begin_layout Subsection
28527 \begin_inset Flex Code
28528 status collapsed
28529
28530 \begin_layout Plain Layout
28531 Format
28532 \end_layout
28533
28534 \end_inset
28535
28536
28537 \end_layout
28538
28539 \begin_layout Description
28540 \begin_inset Flex Code
28541 status collapsed
28542
28543 \begin_layout Plain Layout
28544 Format
28545 \begin_inset space ~
28546 \end_inset
28547
28548 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
28549 \end_layout
28550
28551 \end_inset
28552
28553  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,
28554 全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,
28555 全書式に対して
28556 \begin_inset Flex Code
28557 status collapsed
28558
28559 \begin_layout Plain Layout
28560 Format
28561 \end_layout
28562
28563 \end_inset
28564
28565 部を定義してください.表示する方法がないときは,
28566 ダミーテキストを使用してください.これによって,
28567 書き出した文書内で,
28568 少なくとも外部素材への参照を見ることができるようになります.
28569 \end_layout
28570
28571 \begin_layout Description
28572 \begin_inset Flex Code
28573 status collapsed
28574
28575 \begin_layout Plain Layout
28576 Option
28577 \begin_inset space ~
28578 \end_inset
28579
28580 <名称>
28581 \begin_inset space ~
28582 \end_inset
28583
28584 <値>
28585 \end_layout
28586
28587 \end_inset
28588
28589  このコマンドは,
28590
28591 \begin_inset Flex Code
28592 status collapsed
28593
28594 \begin_layout Plain Layout
28595 Product
28596 \end_layout
28597
28598 \end_inset
28599
28600 での代入に使うマクロ
28601 \begin_inset Flex Code
28602 status collapsed
28603
28604 \begin_layout Plain Layout
28605 $$<名称>
28606 \end_layout
28607
28608 \end_inset
28609
28610 を新たに定義します.
28611 \begin_inset Flex Code
28612 status collapsed
28613
28614 \begin_layout Plain Layout
28615 <値>
28616 \end_layout
28617
28618 \end_inset
28619
28620 自体にも代入マクロを使うことができます.
28621 \begin_inset Flex Code
28622 status collapsed
28623
28624 \begin_layout Plain Layout
28625 Product
28626 \end_layout
28627
28628 \end_inset
28629
28630
28631 \begin_inset Flex Code
28632 status collapsed
28633
28634 \begin_layout Plain Layout
28635 <値>
28636 \end_layout
28637
28638 \end_inset
28639
28640 を直接使用するよりも優れた点は,
28641
28642 \begin_inset Flex Code
28643 status collapsed
28644
28645 \begin_layout Plain Layout
28646 $$<名称>
28647 \end_layout
28648
28649 \end_inset
28650
28651 に代入された値が,
28652 その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
28653 \end_layout
28654
28655 \begin_layout Description
28656 \begin_inset Flex Code
28657 status collapsed
28658
28659 \begin_layout Plain Layout
28660 Product
28661 \begin_inset space ~
28662 \end_inset
28663
28664 <文>
28665 \end_layout
28666
28667 \end_inset
28668
28669  書き出された文書に挿入される文.実のところ,
28670 これが最も重要なコマンドであり,
28671 とても複雑になることがあります.このコマンドは,
28672 一度だけ必ず現れなくてはなりません.
28673 \end_layout
28674
28675 \begin_layout Description
28676 \begin_inset Flex Code
28677 status collapsed
28678
28679 \begin_layout Plain Layout
28680 Preamble
28681 \begin_inset space ~
28682 \end_inset
28683
28684 <名称>
28685 \end_layout
28686
28687 \end_inset
28688
28689  このコマンドは,
28690 \SpecialChar LaTeX
28691 プリアンブルに入れるプリアンブル片を指定します.これは
28692 \begin_inset Flex Code
28693 status collapsed
28694
28695 \begin_layout Plain Layout
28696 PreambleDef
28697 \end_layout
28698
28699 \end_inset
28700
28701  \SpecialChar ldots
28702  
28703 \begin_inset Flex Code
28704 status collapsed
28705
28706 \begin_layout Plain Layout
28707 PreambleDefEnd
28708 \end_layout
28709
28710 \end_inset
28711
28712 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
28713 \end_layout
28714
28715 \begin_layout Description
28716 \begin_inset Flex Code
28717 status collapsed
28718
28719 \begin_layout Plain Layout
28720 ReferencedFile
28721 \begin_inset space ~
28722 \end_inset
28723
28724 <書式>
28725 \begin_inset space ~
28726 \end_inset
28727
28728 <ファイル名>
28729 \end_layout
28730
28731 \end_inset
28732
28733  このコマンドは,
28734 変換過程で生成され,
28735 特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,
28736 親文書に対する相対パスとして解釈されます.このコマンドは全く登場しなくても1回以上現れても構いません.
28737 \end_layout
28738
28739 \begin_layout Description
28740 \begin_inset Flex Code
28741 status collapsed
28742
28743 \begin_layout Plain Layout
28744 Requirement
28745 \begin_inset space ~
28746 \end_inset
28747
28748 <package>
28749 \end_layout
28750
28751 \end_inset
28752
28753  必要とされる\SpecialChar LaTeX
28754 パッケージ名.パッケージは,
28755 \SpecialChar LaTeX
28756 プリアンブル中で
28757 \begin_inset Flex Code
28758 status collapsed
28759
28760 \begin_layout Plain Layout
28761
28762 \backslash
28763 usepackage{}
28764 \end_layout
28765
28766 \end_inset
28767
28768 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
28769 \end_layout
28770
28771 \begin_layout Description
28772 \begin_inset Flex Code
28773 status collapsed
28774
28775 \begin_layout Plain Layout
28776 TransformCommand
28777 \begin_inset space ~
28778 \end_inset
28779
28780 Rotate
28781 \begin_inset space ~
28782 \end_inset
28783
28784 RotationLatexCommand
28785 \end_layout
28786
28787 \end_inset
28788
28789  このコマンドは,
28790 回転用に,
28791 組み込みの\SpecialChar LaTeX
28792 コマンドを使用するように指定します.このコマンドは,
28793 1回現れても全く現れなくても構いません.
28794 \end_layout
28795
28796 \begin_layout Description
28797 \begin_inset Flex Code
28798 status collapsed
28799
28800 \begin_layout Plain Layout
28801 TransformCommand
28802 \begin_inset space ~
28803 \end_inset
28804
28805 Resize
28806 \begin_inset space ~
28807 \end_inset
28808
28809 ResizeLatexCommand
28810 \end_layout
28811
28812 \end_inset
28813
28814  このコマンドは,
28815 伸縮用に,
28816 組み込みの\SpecialChar LaTeX
28817 コマンドを使用するように指定します.このコマンドは,
28818 1回現れても全く現れなくても構いません.
28819 \end_layout
28820
28821 \begin_layout Description
28822 \begin_inset Flex Code
28823 status collapsed
28824
28825 \begin_layout Plain Layout
28826 TransformOption
28827 \begin_inset space ~
28828 \end_inset
28829
28830 Rotate
28831 \begin_inset space ~
28832 \end_inset
28833
28834 RotationLatexOption
28835 \end_layout
28836
28837 \end_inset
28838
28839  このコマンドは,
28840 回転が非必須引数を通じて行われるように指定します.このコマンドは,
28841 1回現れても全く現れなくても構いません.
28842 \end_layout
28843
28844 \begin_layout Description
28845 \begin_inset Flex Code
28846 status collapsed
28847
28848 \begin_layout Plain Layout
28849 TransformOption
28850 \begin_inset space ~
28851 \end_inset
28852
28853 Resize
28854 \begin_inset space ~
28855 \end_inset
28856
28857 ResizeLatexOption
28858 \end_layout
28859
28860 \end_inset
28861
28862  このコマンドは,
28863 伸縮が非必須引数を通じて行われるように指定します.このコマンドは,
28864 1回現れても全く現れなくても構いません.
28865 \end_layout
28866
28867 \begin_layout Description
28868 \begin_inset Flex Code
28869 status collapsed
28870
28871 \begin_layout Plain Layout
28872 TransformOption
28873 \begin_inset space ~
28874 \end_inset
28875
28876 Clip
28877 \begin_inset space ~
28878 \end_inset
28879
28880 ClipLatexOption
28881 \end_layout
28882
28883 \end_inset
28884
28885  このコマンドは,
28886 切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,
28887 1回現れても全く現れなくても構いません.
28888 \end_layout
28889
28890 \begin_layout Description
28891 \begin_inset Flex Code
28892 status collapsed
28893
28894 \begin_layout Plain Layout
28895 TransformOption
28896 \begin_inset space ~
28897 \end_inset
28898
28899 Extra
28900 \begin_inset space ~
28901 \end_inset
28902
28903 ExtraLatexOption
28904 \end_layout
28905
28906 \end_inset
28907
28908  このコマンドは,
28909 追加の非必須引数を使用することを指定します.このコマンドは,
28910 1回現れても全く現れなくても構いません.
28911 \end_layout
28912
28913 \begin_layout Description
28914 \begin_inset Flex Code
28915 status collapsed
28916
28917 \begin_layout Plain Layout
28918 UpdateFormat
28919 \begin_inset space ~
28920 \end_inset
28921
28922 <書式>
28923 \end_layout
28924
28925 \end_inset
28926
28927  変換されたファイルのファイル形式.これは,
28928 \SpecialChar LyX
28929 が知っている書式名でなくてはなりません(
28930 \begin_inset Flex MenuItem
28931 status collapsed
28932
28933 \begin_layout Plain Layout
28934 ツール\SpecialChar menuseparator
28935 設定\SpecialChar menuseparator
28936 ファイル処理\SpecialChar menuseparator
28937 ファイル書式
28938 \end_layout
28939
28940 \end_inset
28941
28942 ダイアログを参照).このコマンドは,
28943 一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,
28944 書式
28945 \begin_inset Flex Code
28946 status collapsed
28947
28948 \begin_layout Plain Layout
28949 pdf6
28950 \end_layout
28951
28952 \end_inset
28953
28954 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
28955 \end_layout
28956
28957 \begin_layout Description
28958 \begin_inset Flex Code
28959 status collapsed
28960
28961 \begin_layout Plain Layout
28962 UpdateResult
28963 \begin_inset space ~
28964 \end_inset
28965
28966 <ファイル名>
28967 \end_layout
28968
28969 \end_inset
28970
28971  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,
28972 一度だけ必ず現れなくてはなりません.
28973 \end_layout
28974
28975 \begin_layout Subsection
28976 プリアンブルの定義
28977 \end_layout
28978
28979 \begin_layout Standard
28980 外用ひな型設定ファイルには,
28981
28982 \begin_inset Flex Code
28983 status collapsed
28984
28985 \begin_layout Plain Layout
28986 PreambleDef
28987 \end_layout
28988
28989 \end_inset
28990
28991  \SpecialChar ldots
28992  
28993 \begin_inset Flex Code
28994 status collapsed
28995
28996 \begin_layout Plain Layout
28997 PreambleDefEnd
28998 \end_layout
28999
29000 \end_inset
29001
29002 で囲んだプリアンブル定義を追加することができます.これらの定義は,
29003 ひな型の
29004 \begin_inset Flex Code
29005 status collapsed
29006
29007 \begin_layout Plain Layout
29008 Format
29009 \end_layout
29010
29011 \end_inset
29012
29013 部で使用することができます.
29014 \end_layout
29015
29016 \begin_layout Section
29017 代入機構
29018 \end_layout
29019
29020 \begin_layout Standard
29021 外部素材機構が外部プログラムを呼び出すときには,
29022 ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,
29023 実行前に展開されるマクロをいろいろ入れることができます.実行は,
29024 つねに元の文書があるディレクトリで行われます.
29025 \end_layout
29026
29027 \begin_layout Standard
29028 また,
29029 外部素材が表示されるときにはいつでも,
29030 その名称は代入機構によって組み立てられ,
29031 ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
29032 \end_layout
29033
29034 \begin_layout Standard
29035 使用できるマクロは以下の通りです.
29036 \end_layout
29037
29038 \begin_layout Description
29039 \begin_inset Flex Code
29040 status collapsed
29041
29042 \begin_layout Plain Layout
29043 $$AbsOrRelPathMaster
29044 \end_layout
29045
29046 \end_inset
29047
29048  \SpecialChar LyX
29049 親文書への絶対ファイルパスないしは相対ファイルパス
29050 \end_layout
29051
29052 \begin_layout Description
29053 \begin_inset Flex Code
29054 status collapsed
29055
29056 \begin_layout Plain Layout
29057 $$AbsOrRelPathParent
29058 \end_layout
29059
29060 \end_inset
29061
29062  \SpecialChar LyX
29063 文書への絶対ファイルパスないしは相対ファイルパス
29064 \end_layout
29065
29066 \begin_layout Description
29067 \begin_inset Flex Code
29068 status collapsed
29069
29070 \begin_layout Plain Layout
29071 $$AbsPath
29072 \end_layout
29073
29074 \end_inset
29075
29076  絶対ファイルパス
29077 \end_layout
29078
29079 \begin_layout Description
29080 \begin_inset Flex Code
29081 status collapsed
29082
29083 \begin_layout Plain Layout
29084 $$Basename
29085 \end_layout
29086
29087 \end_inset
29088
29089  パスおよび拡張子を除いたファイル名
29090 \end_layout
29091
29092 \begin_layout Description
29093 \begin_inset Flex Code
29094 status collapsed
29095
29096 \begin_layout Plain Layout
29097 $$Contents(
29098 \begin_inset Quotes eld
29099 \end_inset
29100
29101 filename.ext
29102 \begin_inset Quotes erd
29103 \end_inset
29104
29105 )
29106 \end_layout
29107
29108 \end_inset
29109
29110  このマクロは,
29111
29112 \begin_inset Flex Code
29113 status collapsed
29114
29115 \begin_layout Plain Layout
29116 filename.ext
29117 \end_layout
29118
29119 \end_inset
29120
29121 と云う名のファイルの中身を展開します.
29122 \end_layout
29123
29124 \begin_layout Description
29125 \begin_inset Flex Code
29126 status collapsed
29127
29128 \begin_layout Plain Layout
29129 $$Extension
29130 \end_layout
29131
29132 \end_inset
29133
29134  ファイル拡張子(点を含む)
29135 \end_layout
29136
29137 \begin_layout Description
29138 \begin_inset Flex Code
29139 status collapsed
29140
29141 \begin_layout Plain Layout
29142 $$pngOrjpg
29143 \end_layout
29144
29145 \end_inset
29146
29147  これは,
29148 ファイルがJPEG形式の場合は,
29149 文字列「jpg」となり,
29150 それ以外では文字列「png」となります.これは,
29151 PNG形式とJPEG形式の両方をサポートする出力形式に対して,
29152 不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,
29153 pdf\SpecialChar TeX
29154 出力形式に対してこのマクロを使用します.
29155 \end_layout
29156
29157 \begin_layout Description
29158 \begin_inset Flex Code
29159 status collapsed
29160
29161 \begin_layout Plain Layout
29162 $$FName
29163 \end_layout
29164
29165 \end_inset
29166
29167  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
29168 文書への絶対パスでも良いですし,
29169 相対パスでも構いません.
29170 \end_layout
29171
29172 \begin_layout Description
29173 \begin_inset Flex Code
29174 status collapsed
29175
29176 \begin_layout Plain Layout
29177 $$FPath
29178 \end_layout
29179
29180 \end_inset
29181
29182  
29183 \begin_inset Flex Code
29184 status collapsed
29185
29186 \begin_layout Plain Layout
29187 $$FName
29188 \end_layout
29189
29190 \end_inset
29191
29192 のパス部分(\SpecialChar LyX
29193 文書への絶対パス名か相対パス名)
29194 \end_layout
29195
29196 \begin_layout Description
29197 \begin_inset Flex Code
29198 status collapsed
29199
29200 \begin_layout Plain Layout
29201 $$RelPathMaster
29202 \end_layout
29203
29204 \end_inset
29205
29206  \SpecialChar LyX
29207 親文書への相対ファイルパス
29208 \end_layout
29209
29210 \begin_layout Description
29211 \begin_inset Flex Code
29212 status collapsed
29213
29214 \begin_layout Plain Layout
29215 $$RelPathParent
29216 \end_layout
29217
29218 \end_inset
29219
29220  \SpecialChar LyX
29221 文書への相対ファイルパス
29222 \end_layout
29223
29224 \begin_layout Description
29225 \begin_inset Flex Code
29226 status collapsed
29227
29228 \begin_layout Plain Layout
29229 $$Sysdir
29230 \end_layout
29231
29232 \end_inset
29233
29234  このマクロは,
29235 システムディレクトリの絶対パスを展開します.これは,
29236 典型的には,
29237 \SpecialChar LyX
29238 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
29239 \end_layout
29240
29241 \begin_layout Description
29242 \begin_inset Flex Code
29243 status collapsed
29244
29245 \begin_layout Plain Layout
29246 $$Tempname
29247 \end_layout
29248
29249 \end_inset
29250
29251  元の文書が閉じられたり,
29252 挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
29253 \end_layout
29254
29255 \begin_layout Standard
29256 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,
29257 たとえば絶対パスのファイル名を 
29258 \begin_inset Flex Code
29259 status collapsed
29260
29261 \begin_layout Plain Layout
29262 $$AbsPath$$Basename$$Extension
29263 \end_layout
29264
29265 \end_inset
29266
29267 のようにして作ることができます.
29268 \end_layout
29269
29270 \begin_layout Standard
29271 上記マクロは,
29272 特記しない限りはすべてのコマンドで代入が行われます.
29273 \begin_inset Flex Code
29274 status collapsed
29275
29276 \begin_layout Plain Layout
29277 Transform
29278 \end_layout
29279
29280 \end_inset
29281
29282 コマンドと
29283 \begin_inset Flex Code
29284 status collapsed
29285
29286 \begin_layout Plain Layout
29287 TransformCommand
29288 \end_layout
29289
29290 \end_inset
29291
29292 コマンドが有効にされている場合,
29293
29294 \begin_inset Flex Code
29295 status collapsed
29296
29297 \begin_layout Plain Layout
29298 Product
29299 \end_layout
29300
29301 \end_inset
29302
29303 コマンドは,
29304 これらに加えて以下の代入もサポートします.
29305 \end_layout
29306
29307 \begin_layout Description
29308 \begin_inset Flex Code
29309 status collapsed
29310
29311 \begin_layout Plain Layout
29312 $$ResizeFront
29313 \end_layout
29314
29315 \end_inset
29316
29317  伸縮コマンドの前置部.
29318 \end_layout
29319
29320 \begin_layout Description
29321 \begin_inset Flex Code
29322 status collapsed
29323
29324 \begin_layout Plain Layout
29325 $$ResizeBack
29326 \end_layout
29327
29328 \end_inset
29329
29330  伸縮コマンドの後置部.
29331 \end_layout
29332
29333 \begin_layout Description
29334 \begin_inset Flex Code
29335 status collapsed
29336
29337 \begin_layout Plain Layout
29338 $$RotateFront
29339 \end_layout
29340
29341 \end_inset
29342
29343  回転コマンドの前置部.
29344 \end_layout
29345
29346 \begin_layout Description
29347 \begin_inset Flex Code
29348 status collapsed
29349
29350 \begin_layout Plain Layout
29351 $$RotateBack
29352 \end_layout
29353
29354 \end_inset
29355
29356  回転コマンドの後置部.
29357 \end_layout
29358
29359 \begin_layout Standard
29360 \begin_inset Flex Code
29361 status collapsed
29362
29363 \begin_layout Plain Layout
29364 Option
29365 \end_layout
29366
29367 \end_inset
29368
29369 コマンドの値に入れる文字列では,
29370
29371 \begin_inset Flex Code
29372 status collapsed
29373
29374 \begin_layout Plain Layout
29375 Transform
29376 \end_layout
29377
29378 \end_inset
29379
29380 コマンドと
29381 \begin_inset Flex Code
29382 status collapsed
29383
29384 \begin_layout Plain Layout
29385 TransformOption
29386 \end_layout
29387
29388 \end_inset
29389
29390 コマンドが有効にされていれば,
29391 以下の代入もサポートされます.
29392 \end_layout
29393
29394 \begin_layout Description
29395 \begin_inset Flex Code
29396 status collapsed
29397
29398 \begin_layout Plain Layout
29399 $$Clip
29400 \end_layout
29401
29402 \end_inset
29403
29404  切り抜きオプション.
29405 \end_layout
29406
29407 \begin_layout Description
29408 \begin_inset Flex Code
29409 status collapsed
29410
29411 \begin_layout Plain Layout
29412 $$Extra
29413 \end_layout
29414
29415 \end_inset
29416
29417  追加オプション.
29418 \end_layout
29419
29420 \begin_layout Description
29421 \begin_inset Flex Code
29422 status collapsed
29423
29424 \begin_layout Plain Layout
29425 $$Resize
29426 \end_layout
29427
29428 \end_inset
29429
29430  伸縮オプション.
29431 \end_layout
29432
29433 \begin_layout Description
29434 \begin_inset Flex Code
29435 status collapsed
29436
29437 \begin_layout Plain Layout
29438 $$Rotate
29439 \end_layout
29440
29441 \end_inset
29442
29443  回転オプション.
29444 \end_layout
29445
29446 \begin_layout Standard
29447 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
29448 \end_layout
29449
29450 \begin_layout Enumerate
29451 相対ファイル名と絶対ファイル名は,
29452 それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえば相対名は,
29453 いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,
29454 プログラムによっては必要とされることがあり得ます.
29455 \end_layout
29456
29457 \begin_layout Enumerate
29458 \SpecialChar LaTeX
29459 は,
29460 相対ファイル名に関して,
29461 \SpecialChar LyX
29462 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
29463 にとって相対ファイル名とは,
29464 常にこのファイル名が書かれている文書に対して相対的なものになります.\SpecialChar LaTeX
29465 にとっての相対ファイル名は,
29466 常に親文書に対するものになります.これら二つの定義は,
29467 一つの文書しかないときには同じですが,
29468 部分文書を含む親文書があるときには異なったものとなってきます.つまり,
29469 相対ファイル名は,
29470 \SpecialChar LaTeX
29471 に提示されるときに変換されなくてはならないのです.幸い,
29472 正しいマクロを選びさえすれば,
29473 これは\SpecialChar LyX
29474 が自動的に行ってくれます.
29475 \end_layout
29476
29477 \begin_layout Standard
29478 すると,
29479 新しく作ったひな型定義では,
29480 どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
29481
29482 \end_layout
29483
29484 \begin_layout Itemize
29485 絶対パスが必要とされるときには
29486 \begin_inset Flex Code
29487 status collapsed
29488
29489 \begin_layout Plain Layout
29490 $$AbsPath
29491 \end_layout
29492
29493 \end_inset
29494
29495 を使う.
29496 \end_layout
29497
29498 \begin_layout Itemize
29499 代入された文字列が,
29500 \SpecialChar LaTeX
29501 インプットの一種である場合には,
29502
29503 \begin_inset Flex Code
29504 status collapsed
29505
29506 \begin_layout Plain Layout
29507 $$AbsOrRelPathMaster
29508 \end_layout
29509
29510 \end_inset
29511
29512 を使う.
29513 \end_layout
29514
29515 \begin_layout Itemize
29516 それ以外ならば,
29517 ユーザの選択を尊重するために
29518 \begin_inset Flex Code
29519 status collapsed
29520
29521 \begin_layout Plain Layout
29522 $$AbsOrRelPathParent
29523 \end_layout
29524
29525 \end_inset
29526
29527 を使う.
29528 \end_layout
29529
29530 \begin_layout Standard
29531 このルールが機能せずに,
29532 たとえば相対名が必要となる特殊な場合もありますが,
29533 通常,
29534 上記でうまく動作します.特殊例の例としては,
29535 上述のXFigひな型での
29536 \begin_inset Flex Code
29537 status collapsed
29538
29539 \begin_layout Plain Layout
29540 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
29541 \end_layout
29542
29543 \end_inset
29544
29545 というコマンドがあります.この場合,
29546
29547 \begin_inset Flex Code
29548 status collapsed
29549
29550 \begin_layout Plain Layout
29551 .pstex_t
29552 \end_layout
29553
29554 \end_inset
29555
29556 ファイルの複写子は,
29557 ファイル内容を書き換えるのに相対名を必要とするために,
29558 絶対名を使用することができないのです.
29559 \end_layout
29560
29561 \begin_layout Section
29562 セキュリティに関する論点
29563 \begin_inset CommandInset label
29564 LatexCommand label
29565 name "sec:セキュリティに関する論点"
29566
29567 \end_inset
29568
29569
29570 \end_layout
29571
29572 \begin_layout Standard
29573 外部素材機能は,
29574 多くの外部プログラムとの橋渡しをし,
29575 しかもそれを自動的に行うので,
29576 そのセキュリティ面での帰結を考慮しなくてはなりません.特に,
29577 ユーザは好きなファイル名やパラメータ文字列を含めることが許されていて,
29578 しかもそれらがコマンドに展開されるので,
29579 ユーザが文書を閲覧したり印刷したりしたときに,
29580 任意のコマンドを実行することができるような悪意ある文書を作成することが可能となりましょう.これは,
29581 我々がぜひとも避けたいことなのです.
29582 \end_layout
29583
29584 \begin_layout Standard
29585 しかしながら,
29586 外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,
29587 \SpecialChar LyX
29588 が安全なひな型でのみ適切に設定されているならば,
29589 セキュリティ上の問題は発生しません.これは,
29590 外部プログラムが
29591 \begin_inset Flex Code
29592 status collapsed
29593
29594 \begin_layout Plain Layout
29595 system
29596 \end_layout
29597
29598 \end_inset
29599
29600 システムコールではなく,
29601
29602 \begin_inset Flex Code
29603 status collapsed
29604
29605 \begin_layout Plain Layout
29606 execvp
29607 \end_layout
29608
29609 \end_inset
29610
29611 システムコールで呼び出されているため,
29612 ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
29613 \end_layout
29614
29615 \begin_layout Standard
29616 これは,
29617 外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,
29618 制限があることを意味します.特に,
29619 パイプやリダイレクトはそのまま使用することはできません.これは,
29620 \SpecialChar LyX
29621 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,
29622 これを完全に統御の下においたまま行う安全なスクリプトを書いた上で,
29623 このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
29624 \end_layout
29625
29626 \begin_layout Standard
29627 シェルと直接やりとりするひな型を設計することは可能ではありますが,
29628 悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,
29629 任意のコマンドを実行できるようになるため,
29630 一般的には,
29631 統御下に置いた状態で
29632 \begin_inset Flex Code
29633 status collapsed
29634
29635 \begin_layout Plain Layout
29636 execvp
29637 \end_layout
29638
29639 \end_inset
29640
29641 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,
29642 管理された環境下で使用する分には,
29643 通常のシェルスクリプトを使用する方に流れる誘惑はあります.そうした場合には,
29644 お使いのシステムに簡単に濫用することのできるセキュリティホールを,
29645
29646 \emph on
29647 間違いなく
29648 \emph default
29649 導入することを理解しておいてください.オープンソースの伝統に従って,
29650 私たちは人々に新しいひな型を投稿してくれるよう促していますが,
29651 そのような安全でないひな型はLyXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
29652 には,
29653 安全でないひな型は決して入っていません.
29654 \end_layout
29655
29656 \begin_layout Standard
29657 外部素材を含めることで強力な力を手に入れることができますが,
29658 この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリプトのたった一行に入り込んだ,
29659 ちょっとしたエラーが,
29660 巨大なセキュリティ上の問題に扉を開きうるのです.したがって,
29661 もしこの問題を完全に理解していないならば,
29662 特定のひな型が安全であるかどうか疑問がある際には,
29663 知識豊富なセキュリティの専門家か,
29664 \SpecialChar LyX
29665 開発チームに相談してみてください.そしてこの相談は,
29666 管理されていない環境下でこれを使用する前に,
29667 行うようにしてください.
29668 \end_layout
29669
29670 \begin_layout Chapter
29671 \start_of_appendix
29672 サポートされているレイアウト用\SpecialChar LyX
29673 関数一覧
29674 \begin_inset CommandInset label
29675 LatexCommand label
29676 name "chap:関数一覧"
29677
29678 \end_inset
29679
29680
29681 \end_layout
29682
29683 \begin_layout Standard
29684 \align center
29685 \begin_inset Tabular
29686 <lyxtabular version="3" rows="11" columns="8">
29687 <features tabularvalignment="middle">
29688 <column alignment="left" valignment="top">
29689 <column alignment="left" valignment="top">
29690 <column alignment="left" valignment="top">
29691 <column alignment="left" valignment="top">
29692 <column alignment="left" valignment="top">
29693 <column alignment="left" valignment="top">
29694 <column alignment="left" valignment="top">
29695 <column alignment="left" valignment="top">
29696 <row>
29697 <cell alignment="left" valignment="top" usebox="none">
29698 \begin_inset Text
29699
29700 \begin_layout Plain Layout
29701 accents
29702 \end_layout
29703
29704 \end_inset
29705 </cell>
29706 <cell alignment="left" valignment="top" usebox="none">
29707 \begin_inset Text
29708
29709 \begin_layout Plain Layout
29710 booktabs
29711 \end_layout
29712
29713 \end_inset
29714 </cell>
29715 <cell alignment="left" valignment="top" usebox="none">
29716 \begin_inset Text
29717
29718 \begin_layout Plain Layout
29719 feyn
29720 \end_layout
29721
29722 \end_inset
29723 </cell>
29724 <cell alignment="left" valignment="top" usebox="none">
29725 \begin_inset Text
29726
29727 \begin_layout Plain Layout
29728 listings
29729 \end_layout
29730
29731 \end_inset
29732 </cell>
29733 <cell alignment="center" valignment="top" usebox="none">
29734 \begin_inset Text
29735
29736 \begin_layout Plain Layout
29737 natbib
29738 \end_layout
29739
29740 \end_inset
29741 </cell>
29742 <cell alignment="center" valignment="top" usebox="none">
29743 \begin_inset Text
29744
29745 \begin_layout Plain Layout
29746 rotfloat
29747 \end_layout
29748
29749 \end_inset
29750 </cell>
29751 <cell alignment="center" valignment="top" usebox="none">
29752 \begin_inset Text
29753
29754 \begin_layout Plain Layout
29755 tfrupee
29756 \end_layout
29757
29758 \end_inset
29759 </cell>
29760 <cell alignment="center" valignment="top" usebox="none">
29761 \begin_inset Text
29762
29763 \begin_layout Plain Layout
29764 wasysym
29765 \end_layout
29766
29767 \end_inset
29768 </cell>
29769 </row>
29770 <row>
29771 <cell alignment="left" valignment="top" usebox="none">
29772 \begin_inset Text
29773
29774 \begin_layout Plain Layout
29775 amsbsy
29776 \end_layout
29777
29778 \end_inset
29779 </cell>
29780 <cell alignment="left" valignment="top" usebox="none">
29781 \begin_inset Text
29782
29783 \begin_layout Plain Layout
29784 calc
29785 \end_layout
29786
29787 \end_inset
29788 </cell>
29789 <cell alignment="left" valignment="top" usebox="none">
29790 \begin_inset Text
29791
29792 \begin_layout Plain Layout
29793 fixltx2e
29794 \end_layout
29795
29796 \end_inset
29797 </cell>
29798 <cell alignment="left" valignment="top" usebox="none">
29799 \begin_inset Text
29800
29801 \begin_layout Plain Layout
29802 longtable
29803 \end_layout
29804
29805 \end_inset
29806 </cell>
29807 <cell alignment="center" valignment="top" usebox="none">
29808 \begin_inset Text
29809
29810 \begin_layout Plain Layout
29811 nomencl
29812 \end_layout
29813
29814 \end_inset
29815 </cell>
29816 <cell alignment="center" valignment="top" usebox="none">
29817 \begin_inset Text
29818
29819 \begin_layout Plain Layout
29820 rsphrase
29821 \end_layout
29822
29823 \end_inset
29824 </cell>
29825 <cell alignment="center" valignment="top" usebox="none">
29826 \begin_inset Text
29827
29828 \begin_layout Plain Layout
29829 tipa
29830 \end_layout
29831
29832 \end_inset
29833 </cell>
29834 <cell alignment="center" valignment="top" usebox="none">
29835 \begin_inset Text
29836
29837 \begin_layout Plain Layout
29838 wrapfig
29839 \end_layout
29840
29841 \end_inset
29842 </cell>
29843 </row>
29844 <row>
29845 <cell alignment="left" valignment="top" usebox="none">
29846 \begin_inset Text
29847
29848 \begin_layout Plain Layout
29849 amscd
29850 \end_layout
29851
29852 \end_inset
29853 </cell>
29854 <cell alignment="left" valignment="top" usebox="none">
29855 \begin_inset Text
29856
29857 \begin_layout Plain Layout
29858 CJK
29859 \end_layout
29860
29861 \end_inset
29862 </cell>
29863 <cell alignment="left" valignment="top" usebox="none">
29864 \begin_inset Text
29865
29866 \begin_layout Plain Layout
29867 float
29868 \end_layout
29869
29870 \end_inset
29871 </cell>
29872 <cell alignment="left" valignment="top" usebox="none">
29873 \begin_inset Text
29874
29875 \begin_layout Plain Layout
29876 lyxskak
29877 \end_layout
29878
29879 \end_inset
29880 </cell>
29881 <cell alignment="center" valignment="top" usebox="none">
29882 \begin_inset Text
29883
29884 \begin_layout Plain Layout
29885 pdfcolmk
29886 \end_layout
29887
29888 \end_inset
29889 </cell>
29890 <cell alignment="center" valignment="top" usebox="none">
29891 \begin_inset Text
29892
29893 \begin_layout Plain Layout
29894 setspace
29895 \end_layout
29896
29897 \end_inset
29898 </cell>
29899 <cell alignment="center" valignment="top" usebox="none">
29900 \begin_inset Text
29901
29902 \begin_layout Plain Layout
29903 tipx
29904 \end_layout
29905
29906 \end_inset
29907 </cell>
29908 <cell alignment="center" valignment="top" usebox="none">
29909 \begin_inset Text
29910
29911 \begin_layout Plain Layout
29912 xargs
29913 \end_layout
29914
29915 \end_inset
29916 </cell>
29917 </row>
29918 <row>
29919 <cell alignment="left" valignment="top" usebox="none">
29920 \begin_inset Text
29921
29922 \begin_layout Plain Layout
29923 amsmath
29924 \end_layout
29925
29926 \end_inset
29927 </cell>
29928 <cell alignment="left" valignment="top" usebox="none">
29929 \begin_inset Text
29930
29931 \begin_layout Plain Layout
29932 color
29933 \end_layout
29934
29935 \end_inset
29936 </cell>
29937 <cell alignment="left" valignment="top" usebox="none">
29938 \begin_inset Text
29939
29940 \begin_layout Plain Layout
29941 framed
29942 \end_layout
29943
29944 \end_inset
29945 </cell>
29946 <cell alignment="left" valignment="top" usebox="none">
29947 \begin_inset Text
29948
29949 \begin_layout Plain Layout
29950 makeidx
29951 \end_layout
29952
29953 \end_inset
29954 </cell>
29955 <cell alignment="center" valignment="top" usebox="none">
29956 \begin_inset Text
29957
29958 \begin_layout Plain Layout
29959 pdfpages
29960 \end_layout
29961
29962 \end_inset
29963 </cell>
29964 <cell alignment="center" valignment="top" usebox="none">
29965 \begin_inset Text
29966
29967 \begin_layout Plain Layout
29968 shapepar
29969 \end_layout
29970
29971 \end_inset
29972 </cell>
29973 <cell alignment="center" valignment="top" usebox="none">
29974 \begin_inset Text
29975
29976 \begin_layout Plain Layout
29977 tone
29978 \end_layout
29979
29980 \end_inset
29981 </cell>
29982 <cell alignment="center" valignment="top" usebox="none">
29983 \begin_inset Text
29984
29985 \begin_layout Plain Layout
29986 xcolor
29987 \end_layout
29988
29989 \end_inset
29990 </cell>
29991 </row>
29992 <row>
29993 <cell alignment="left" valignment="top" usebox="none">
29994 \begin_inset Text
29995
29996 \begin_layout Plain Layout
29997 amssymb
29998 \end_layout
29999
30000 \end_inset
30001 </cell>
30002 <cell alignment="left" valignment="top" usebox="none">
30003 \begin_inset Text
30004
30005 \begin_layout Plain Layout
30006 covington
30007 \end_layout
30008
30009 \end_inset
30010 </cell>
30011 <cell alignment="left" valignment="top" usebox="none">
30012 \begin_inset Text
30013
30014 \begin_layout Plain Layout
30015 graphicx
30016 \end_layout
30017
30018 \end_inset
30019 </cell>
30020 <cell alignment="left" valignment="top" usebox="none">
30021 \begin_inset Text
30022
30023 \begin_layout Plain Layout
30024 marvosym
30025 \end_layout
30026
30027 \end_inset
30028 </cell>
30029 <cell alignment="center" valignment="top" usebox="none">
30030 \begin_inset Text
30031
30032 \begin_layout Plain Layout
30033 pifont
30034 \end_layout
30035
30036 \end_inset
30037 </cell>
30038 <cell alignment="center" valignment="top" usebox="none">
30039 \begin_inset Text
30040
30041 \begin_layout Plain Layout
30042 slashed
30043 \end_layout
30044
30045 \end_inset
30046 </cell>
30047 <cell alignment="center" valignment="top" usebox="none">
30048 \begin_inset Text
30049
30050 \begin_layout Plain Layout
30051 txfonts
30052 \end_layout
30053
30054 \end_inset
30055 </cell>
30056 <cell alignment="center" valignment="top" usebox="none">
30057 \begin_inset Text
30058
30059 \begin_layout Plain Layout
30060 xy
30061 \end_layout
30062
30063 \end_inset
30064 </cell>
30065 </row>
30066 <row>
30067 <cell alignment="left" valignment="top" usebox="none">
30068 \begin_inset Text
30069
30070 \begin_layout Plain Layout
30071 amstext
30072 \end_layout
30073
30074 \end_inset
30075 </cell>
30076 <cell alignment="left" valignment="top" usebox="none">
30077 \begin_inset Text
30078
30079 \begin_layout Plain Layout
30080 csquotes
30081 \end_layout
30082
30083 \end_inset
30084 </cell>
30085 <cell alignment="left" valignment="top" usebox="none">
30086 \begin_inset Text
30087
30088 \begin_layout Plain Layout
30089 hhline
30090 \end_layout
30091
30092 \end_inset
30093 </cell>
30094 <cell alignment="left" valignment="top" usebox="none">
30095 \begin_inset Text
30096
30097 \begin_layout Plain Layout
30098 mathdesign
30099 \end_layout
30100
30101 \end_inset
30102 </cell>
30103 <cell alignment="center" valignment="top" usebox="none">
30104 \begin_inset Text
30105
30106 \begin_layout Plain Layout
30107 pmboxdraw
30108 \end_layout
30109
30110 \end_inset
30111 </cell>
30112 <cell alignment="center" valignment="top" usebox="none">
30113 \begin_inset Text
30114
30115 \begin_layout Plain Layout
30116 soul
30117 \end_layout
30118
30119 \end_inset
30120 </cell>
30121 <cell alignment="center" valignment="top" usebox="none">
30122 \begin_inset Text
30123
30124 \begin_layout Plain Layout
30125 ulem
30126 \end_layout
30127
30128 \end_inset
30129 </cell>
30130 <cell alignment="center" valignment="top" usebox="none">
30131 \begin_inset Text
30132
30133 \begin_layout Plain Layout
30134 yhmath
30135 \end_layout
30136
30137 \end_inset
30138 </cell>
30139 </row>
30140 <row>
30141 <cell alignment="left" valignment="top" usebox="none">
30142 \begin_inset Text
30143
30144 \begin_layout Plain Layout
30145 amsthm
30146 \end_layout
30147
30148 \end_inset
30149 </cell>
30150 <cell alignment="left" valignment="top" usebox="none">
30151 \begin_inset Text
30152
30153 \begin_layout Plain Layout
30154 dvipost
30155 \end_layout
30156
30157 \end_inset
30158 </cell>
30159 <cell alignment="left" valignment="top" usebox="none">
30160 \begin_inset Text
30161
30162 \begin_layout Plain Layout
30163 hyperref
30164 \end_layout
30165
30166 \end_inset
30167 </cell>
30168 <cell alignment="left" valignment="top" usebox="none">
30169 \begin_inset Text
30170
30171 \begin_layout Plain Layout
30172 mathdots
30173 \end_layout
30174
30175 \end_inset
30176 </cell>
30177 <cell alignment="center" valignment="top" usebox="none">
30178 \begin_inset Text
30179
30180 \begin_layout Plain Layout
30181 polyglossia
30182 \end_layout
30183
30184 \end_inset
30185 </cell>
30186 <cell alignment="center" valignment="top" usebox="none">
30187 \begin_inset Text
30188
30189 \begin_layout Plain Layout
30190 splitidx
30191 \end_layout
30192
30193 \end_inset
30194 </cell>
30195 <cell alignment="center" valignment="top" usebox="none">
30196 \begin_inset Text
30197
30198 \begin_layout Plain Layout
30199 undertilde
30200 \end_layout
30201
30202 \end_inset
30203 </cell>
30204 <cell alignment="center" valignment="top" usebox="none">
30205 \begin_inset Text
30206
30207 \begin_layout Plain Layout
30208
30209 \end_layout
30210
30211 \end_inset
30212 </cell>
30213 </row>
30214 <row>
30215 <cell alignment="left" valignment="top" usebox="none">
30216 \begin_inset Text
30217
30218 \begin_layout Plain Layout
30219 array
30220 \end_layout
30221
30222 \end_inset
30223 </cell>
30224 <cell alignment="left" valignment="top" usebox="none">
30225 \begin_inset Text
30226
30227 \begin_layout Plain Layout
30228 endnotes
30229 \end_layout
30230
30231 \end_inset
30232 </cell>
30233 <cell alignment="left" valignment="top" usebox="none">
30234 \begin_inset Text
30235
30236 \begin_layout Plain Layout
30237 ifsym
30238 \end_layout
30239
30240 \end_inset
30241 </cell>
30242 <cell alignment="left" valignment="top" usebox="none">
30243 \begin_inset Text
30244
30245 \begin_layout Plain Layout
30246 mathrsfs
30247 \end_layout
30248
30249 \end_inset
30250 </cell>
30251 <cell alignment="center" valignment="top" usebox="none">
30252 \begin_inset Text
30253
30254 \begin_layout Plain Layout
30255 prettyref
30256 \end_layout
30257
30258 \end_inset
30259 </cell>
30260 <cell alignment="center" valignment="top" usebox="none">
30261 \begin_inset Text
30262
30263 \begin_layout Plain Layout
30264 subfig
30265 \end_layout
30266
30267 \end_inset
30268 </cell>
30269 <cell alignment="center" valignment="top" usebox="none">
30270 \begin_inset Text
30271
30272 \begin_layout Plain Layout
30273 units
30274 \end_layout
30275
30276 \end_inset
30277 </cell>
30278 <cell alignment="center" valignment="top" usebox="none">
30279 \begin_inset Text
30280
30281 \begin_layout Plain Layout
30282
30283 \end_layout
30284
30285 \end_inset
30286 </cell>
30287 </row>
30288 <row>
30289 <cell alignment="left" valignment="top" usebox="none">
30290 \begin_inset Text
30291
30292 \begin_layout Plain Layout
30293 ascii
30294 \end_layout
30295
30296 \end_inset
30297 </cell>
30298 <cell alignment="left" valignment="top" usebox="none">
30299 \begin_inset Text
30300
30301 \begin_layout Plain Layout
30302 enumitem
30303 \end_layout
30304
30305 \end_inset
30306 </cell>
30307 <cell alignment="left" valignment="top" usebox="none">
30308 \begin_inset Text
30309
30310 \begin_layout Plain Layout
30311 ifthen
30312 \end_layout
30313
30314 \end_inset
30315 </cell>
30316 <cell alignment="left" valignment="top" usebox="none">
30317 \begin_inset Text
30318
30319 \begin_layout Plain Layout
30320 mhchem
30321 \end_layout
30322
30323 \end_inset
30324 </cell>
30325 <cell alignment="center" valignment="top" usebox="none">
30326 \begin_inset Text
30327
30328 \begin_layout Plain Layout
30329 pxfonts
30330 \end_layout
30331
30332 \end_inset
30333 </cell>
30334 <cell alignment="center" valignment="top" usebox="none">
30335 \begin_inset Text
30336
30337 \begin_layout Plain Layout
30338 subscript
30339 \end_layout
30340
30341 \end_inset
30342 </cell>
30343 <cell alignment="center" valignment="top" usebox="none">
30344 \begin_inset Text
30345
30346 \begin_layout Plain Layout
30347 url
30348 \end_layout
30349
30350 \end_inset
30351 </cell>
30352 <cell alignment="center" valignment="top" usebox="none">
30353 \begin_inset Text
30354
30355 \begin_layout Plain Layout
30356
30357 \end_layout
30358
30359 \end_inset
30360 </cell>
30361 </row>
30362 <row>
30363 <cell alignment="left" valignment="top" usebox="none">
30364 \begin_inset Text
30365
30366 \begin_layout Plain Layout
30367 bbding
30368 \end_layout
30369
30370 \end_inset
30371 </cell>
30372 <cell alignment="left" valignment="top" usebox="none">
30373 \begin_inset Text
30374
30375 \begin_layout Plain Layout
30376 esint
30377 \end_layout
30378
30379 \end_inset
30380 </cell>
30381 <cell alignment="left" valignment="top" usebox="none">
30382 \begin_inset Text
30383
30384 \begin_layout Plain Layout
30385 jurabib
30386 \end_layout
30387
30388 \end_inset
30389 </cell>
30390 <cell alignment="left" valignment="top" usebox="none">
30391 \begin_inset Text
30392
30393 \begin_layout Plain Layout
30394 multicol
30395 \end_layout
30396
30397 \end_inset
30398 </cell>
30399 <cell alignment="center" valignment="top" usebox="none">
30400 \begin_inset Text
30401
30402 \begin_layout Plain Layout
30403 refstyle
30404 \end_layout
30405
30406 \end_inset
30407 </cell>
30408 <cell alignment="center" valignment="top" usebox="none">
30409 \begin_inset Text
30410
30411 \begin_layout Plain Layout
30412 textcomp
30413 \end_layout
30414
30415 \end_inset
30416 </cell>
30417 <cell alignment="center" valignment="top" usebox="none">
30418 \begin_inset Text
30419
30420 \begin_layout Plain Layout
30421 varioref
30422 \end_layout
30423
30424 \end_inset
30425 </cell>
30426 <cell alignment="center" valignment="top" usebox="none">
30427 \begin_inset Text
30428
30429 \begin_layout Plain Layout
30430
30431 \end_layout
30432
30433 \end_inset
30434 </cell>
30435 </row>
30436 <row>
30437 <cell alignment="center" valignment="top" usebox="none">
30438 \begin_inset Text
30439
30440 \begin_layout Plain Layout
30441 bm
30442 \end_layout
30443
30444 \end_inset
30445 </cell>
30446 <cell alignment="center" valignment="top" usebox="none">
30447 \begin_inset Text
30448
30449 \begin_layout Plain Layout
30450 fancybox
30451 \end_layout
30452
30453 \end_inset
30454 </cell>
30455 <cell alignment="center" valignment="top" usebox="none">
30456 \begin_inset Text
30457
30458 \begin_layout Plain Layout
30459 latexsym
30460 \end_layout
30461
30462 \end_inset
30463 </cell>
30464 <cell alignment="center" valignment="top" usebox="none">
30465 \begin_inset Text
30466
30467 \begin_layout Plain Layout
30468 multirow
30469 \end_layout
30470
30471 \end_inset
30472 </cell>
30473 <cell alignment="center" valignment="top" usebox="none">
30474 \begin_inset Text
30475
30476 \begin_layout Plain Layout
30477 rotating
30478 \end_layout
30479
30480 \end_inset
30481 </cell>
30482 <cell alignment="center" valignment="top" usebox="none">
30483 \begin_inset Text
30484
30485 \begin_layout Plain Layout
30486 textgreek
30487 \end_layout
30488
30489 \end_inset
30490 </cell>
30491 <cell alignment="center" valignment="top" usebox="none">
30492 \begin_inset Text
30493
30494 \begin_layout Plain Layout
30495 verbatim
30496 \end_layout
30497
30498 \end_inset
30499 </cell>
30500 <cell alignment="center" valignment="top" usebox="none">
30501 \begin_inset Text
30502
30503 \begin_layout Plain Layout
30504
30505 \end_layout
30506
30507 \end_inset
30508 </cell>
30509 </row>
30510 </lyxtabular>
30511
30512 \end_inset
30513
30514
30515 \end_layout
30516
30517 \begin_layout Chapter
30518 レイアウトで使用できる色名
30519 \begin_inset CommandInset label
30520 LatexCommand label
30521 name "chap:色名"
30522
30523 \end_inset
30524
30525
30526 \end_layout
30527
30528 \begin_layout Standard
30529 ここに列挙されている色は標準色であり,
30530 \SpecialChar LyX
30531 設定で調整できるものです.
30532 \end_layout
30533
30534 \begin_layout Section
30535 色関数
30536 \end_layout
30537
30538 \begin_layout Standard
30539 以下は,
30540 色そのものではありませんが,
30541 色定義に作用します:
30542
30543 \end_layout
30544
30545 \begin_layout Description
30546 ignore この色を無視します
30547 \end_layout
30548
30549 \begin_layout Description
30550 inherit この色を継承します
30551 \end_layout
30552
30553 \begin_layout Description
30554 none
30555 \series medium
30556  
30557 \series default
30558 特定の色ではありません – 透明か既定色です
30559 \end_layout
30560
30561 \begin_layout Section
30562 静的色名
30563 \end_layout
30564
30565 \begin_layout Standard
30566 これらは固定された色名で変更することはできません.これらの色は,
30567 (ダークテーマ等)一部の色テーマでうまく動作しないので,
30568 レイアウト定義の中では用いないでください:
30569
30570 \end_layout
30571
30572 \begin_layout Description
30573 black
30574 \end_layout
30575
30576 \begin_layout Description
30577 white
30578 \end_layout
30579
30580 \begin_layout Description
30581 blue
30582 \end_layout
30583
30584 \begin_layout Description
30585 brown
30586 \end_layout
30587
30588 \begin_layout Description
30589 cyan
30590 \end_layout
30591
30592 \begin_layout Description
30593 darkgray
30594 \end_layout
30595
30596 \begin_layout Description
30597 gray
30598 \end_layout
30599
30600 \begin_layout Description
30601 green
30602 \end_layout
30603
30604 \begin_layout Description
30605 lightgray
30606 \end_layout
30607
30608 \begin_layout Description
30609 lime
30610 \end_layout
30611
30612 \begin_layout Description
30613 magenta
30614 \end_layout
30615
30616 \begin_layout Description
30617 olive
30618 \end_layout
30619
30620 \begin_layout Description
30621 orange
30622 \end_layout
30623
30624 \begin_layout Description
30625 pink
30626 \end_layout
30627
30628 \begin_layout Description
30629 purple
30630 \end_layout
30631
30632 \begin_layout Description
30633 red
30634 \end_layout
30635
30636 \begin_layout Description
30637 teal
30638 \end_layout
30639
30640 \begin_layout Description
30641 violet
30642 \end_layout
30643
30644 \begin_layout Description
30645 yellow
30646 \end_layout
30647
30648 \begin_layout Section
30649 動的色名
30650 \end_layout
30651
30652 \begin_layout Standard
30653 これらは
30654 \begin_inset Info
30655 type  "menu"
30656 arg   "dialog-show prefs"
30657 \end_inset
30658
30659 の特定要素に割り当てられる色です:
30660
30661 \end_layout
30662
30663 \begin_layout Description
30664 added_space 追加空白色
30665 \end_layout
30666
30667 \begin_layout Description
30668 addedtext 追加文字色
30669 \end_layout
30670
30671 \begin_layout Description
30672 appendix 付録マーカ色
30673 \end_layout
30674
30675 \begin_layout Description
30676 background 背景色
30677 \end_layout
30678
30679 \begin_layout Description
30680 bookmark しおり標識色
30681 \end_layout
30682
30683 \begin_layout Description
30684 bottomarea 下部領域色
30685 \end_layout
30686
30687 \begin_layout Description
30688 branchlabel 派生枝ラベル色
30689 \end_layout
30690
30691 \begin_layout Description
30692 buttonbg ボタンの背景色
30693 \end_layout
30694
30695 \begin_layout Description
30696 buttonframe 差込枠の縁色
30697 \end_layout
30698
30699 \begin_layout Description
30700 buttonhoverbg フォーカスを得ているボタンの背景色
30701 \end_layout
30702
30703 \begin_layout Description
30704 buttonhoverbg_broken フォーカスを得ている破損差込枠ボタンの色
30705 \end_layout
30706
30707 \begin_layout Description
30708 changebar 変更バー色
30709 \end_layout
30710
30711 \begin_layout Description
30712 changedtextauthor1 変更された文章:第1著者の色
30713 \end_layout
30714
30715 \begin_layout Description
30716 changedtextauthor2 変更された文章:第2著者の色
30717 \end_layout
30718
30719 \begin_layout Description
30720 changedtextauthor3 変更された文章:第3著者の色
30721 \end_layout
30722
30723 \begin_layout Description
30724 changedtextauthor4 変更された文章:第4著者の色
30725 \end_layout
30726
30727 \begin_layout Description
30728 changedtextauthor5 変更された文章:第5著者の色
30729 \end_layout
30730
30731 \begin_layout Description
30732 changedtextcomparison 変更された文章:文書比較(作業領域)
30733 \end_layout
30734
30735 \begin_layout Description
30736 collapsible 畳み込み可能枠の文字色
30737 \end_layout
30738
30739 \begin_layout Description
30740 collapsibleframe 畳み込み可能枠の縁色
30741 \end_layout
30742
30743 \begin_layout Description
30744 command コマンド差込枠の文字色
30745 \end_layout
30746
30747 \begin_layout Description
30748 commandbg コマンド差込枠の背景色
30749 \end_layout
30750
30751 \begin_layout Description
30752 commandframe コマンド差込枠の縁色
30753 \end_layout
30754
30755 \begin_layout Description
30756 command_broken 破損(参照)差込枠の文字色
30757 \end_layout
30758
30759 \begin_layout Description
30760 commandbg_broken 破損差込枠の背景色
30761 \end_layout
30762
30763 \begin_layout Description
30764 commandframe_broken 破損差込枠の縁色
30765 \end_layout
30766
30767 \begin_layout Description
30768 comment コメント色
30769 \end_layout
30770
30771 \begin_layout Description
30772 commentbg コメントの背景色
30773 \end_layout
30774
30775 \begin_layout Description
30776 cursor カーソル色
30777 \end_layout
30778
30779 \begin_layout Description
30780 deletedtext 削除された文章の色
30781 \end_layout
30782
30783 \begin_layout Description
30784 deletedtextmodifier 削除された文章の修飾子の色(輝度調整用)
30785 \end_layout
30786
30787 \begin_layout Description
30788 depthbar 余白部の階層表示線の色
30789 \end_layout
30790
30791 \begin_layout Description
30792 eolmarker 行末標色
30793 \end_layout
30794
30795 \begin_layout Description
30796 error \SpecialChar LaTeX
30797 エラーボックス色
30798 \end_layout
30799
30800 \begin_layout Description
30801 footlabel 脚註ラベル色
30802 \end_layout
30803
30804 \begin_layout Description
30805 foreground 前景色
30806 \end_layout
30807
30808 \begin_layout Description
30809 graphicsbg 画像差込枠の背景色
30810 \end_layout
30811
30812 \begin_layout Description
30813 greyedoutbg 淡色表示差込枠の背景色
30814 \end_layout
30815
30816 \begin_layout Description
30817 greyedoutlabel 淡色表示差込枠のラベル色
30818 \end_layout
30819
30820 \begin_layout Description
30821 greyedouttext 淡色表示差込枠の文字色
30822 \end_layout
30823
30824 \begin_layout Description
30825 indexlabel 索引差込枠のラベル色
30826 \end_layout
30827
30828 \begin_layout Description
30829 inlinecompletion 行内補完色
30830 \end_layout
30831
30832 \begin_layout Description
30833 insetbg 差込枠標の背景色
30834 \end_layout
30835
30836 \begin_layout Description
30837 insetframe 差込枠標の縁色
30838 \end_layout
30839
30840 \begin_layout Description
30841 language 外国語の単語を標識するための色
30842 \end_layout
30843
30844 \begin_layout Description
30845 latex \SpecialChar LaTeX
30846 モードの文字色
30847 \end_layout
30848
30849 \begin_layout Description
30850 listingsbg プログラムリスト差込枠の背景色
30851 \end_layout
30852
30853 \begin_layout Description
30854 marginlabel 傍註のラベル色
30855 \end_layout
30856
30857 \begin_layout Description
30858 math 数式差込枠の文字色
30859 \end_layout
30860
30861 \begin_layout Description
30862 mathbg 数式差込枠の背景色
30863 \end_layout
30864
30865 \begin_layout Description
30866 mathcorners フォーカスを得ていない数式差込枠の縁色
30867 \end_layout
30868
30869 \begin_layout Description
30870 mathframe フォーカスを得ている数式差込枠の縁色
30871 \end_layout
30872
30873 \begin_layout Description
30874 mathline 数式行色
30875 \end_layout
30876
30877 \begin_layout Description
30878 mathmacrobg 数式マクロ差込枠の背景色
30879 \end_layout
30880
30881 \begin_layout Description
30882 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
30883 \end_layout
30884
30885 \begin_layout Description
30886 mathmacroframe 数式マクロ差込枠の縁色
30887 \end_layout
30888
30889 \begin_layout Description
30890 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
30891 \end_layout
30892
30893 \begin_layout Description
30894 mathmacrolabel 数式マクロ差込枠のラベル色
30895 \end_layout
30896
30897 \begin_layout Description
30898 mathmacronewarg 数式マクロ新パラメーターのひな型色
30899 \end_layout
30900
30901 \begin_layout Description
30902 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
30903 \end_layout
30904
30905 \begin_layout Description
30906 newpage 新規頁色
30907 \end_layout
30908
30909 \begin_layout Description
30910 nonunique_inlinecompletion 行内補完の一意でない部分の色
30911 \end_layout
30912
30913 \begin_layout Description
30914 note 註釈のラベル色
30915 \end_layout
30916
30917 \begin_layout Description
30918 notebg 註釈の背景色
30919 \end_layout
30920
30921 \begin_layout Description
30922 pagebreak 改頁/改行色
30923 \end_layout
30924
30925 \begin_layout Description
30926 paragraphmarker 段落末を標識するための段落標の色
30927 \end_layout
30928
30929 \begin_layout Description
30930 phantomtext 埋め草差込枠の文字色
30931 \end_layout
30932
30933 \begin_layout Description
30934 preview プレビューに用いられる色
30935 \end_layout
30936
30937 \begin_layout Description
30938 previewframe プレビュー縁色
30939 \end_layout
30940
30941 \begin_layout Description
30942 regexpframe 正規表現枠の色
30943 \end_layout
30944
30945 \begin_layout Description
30946 scroll 行をスクロールすることができることを示す色
30947 \end_layout
30948
30949 \begin_layout Description
30950 selection 文章選択部の背景色
30951 \end_layout
30952
30953 \begin_layout Description
30954 selectiontext 文章選択部の前景色
30955 \end_layout
30956
30957 \begin_layout Description
30958 shadedbg 影付きボックスの背景色
30959 \end_layout
30960
30961 \begin_layout Description
30962 special 特殊文字の色
30963 \end_layout
30964
30965 \begin_layout Description
30966 tabularline 罫線色
30967 \end_layout
30968
30969 \begin_layout Description
30970 tabularonoffline 罫線色
30971 \end_layout
30972
30973 \begin_layout Description
30974 textlabel1 レイアウトと特殊差込枠ラベルの色1
30975 \end_layout
30976
30977 \begin_layout Description
30978 textlabel2 レイアウトと特殊差込枠ラベルの色2
30979 \end_layout
30980
30981 \begin_layout Description
30982 textlabel3 レイアウトと特殊差込枠ラベルの色3
30983 \end_layout
30984
30985 \begin_layout Description
30986 urllabel URL差込枠のラベル色
30987 \end_layout
30988
30989 \begin_layout Description
30990 urltext URL差込枠の文字色
30991 \end_layout
30992
30993 \end_body
30994 \end_document