]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
Math.lyx: revise section about subnumbering
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 506
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 \end_modules
36 \maintain_unincluded_children false
37 \begin_local_layout
38 Format 57
39 InsetLayout Flex:MenuItem
40 LyxType               charstyle
41 LabelString           menu
42 LatexType             command
43 LatexName             menuitem
44 Font
45 Family              Sans
46 EndFont
47 Preamble
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
49 EndPreamble
50 ResetsFont true
51 End
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
54 #Font
55 #Family              Sans
56 #EndFont
57 #Preamble
58 #\renewcommand{\code}[1]{{\sffamily #1}}
59 #EndPreamble
60 #End
61 InsetLayout             Flex:Ruby
62 LyxType         charstyle
63 LatexType               command
64 LatexName               ruby
65 BgColor         none
66 LabelString             "ルビ"
67 Decoration              Conglomerate
68 Argument post:1
69 LabelString     "ルビ文"
70 MenuString      "ルビ文(S)|S"
71 Decoration      Conglomerate
72 Font
73 Size            tiny
74 EndFont
75 LabelFont
76 Size            tiny
77 EndFont
78 Mandatory       1
79 EndArgument
80 Preamble
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
84 EndPreamble
85 ResetsFont true
86 End
87 \end_local_layout
88 \language japanese
89 \language_package default
90 \inputencoding auto
91 \fontencoding global
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
98 \font_sc false
99 \font_osf false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
102 \graphics default
103 \default_output_format default
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification false
144 \use_refstyle 0
145 \notefontcolor #0000ff
146 \branch OutDated
147 \selected 0
148 \filename_suffix 0
149 \color #f5fae7
150 \end_branch
151 \index 索引
152 \shortcut idx
153 \color #008000
154 \end_index
155 \secnumdepth 3
156 \tocdepth 3
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \end_header
169
170 \begin_body
171
172 \begin_layout Title
173 \SpecialChar LyX
174 の高度設定
175 \begin_inset Newline newline
176 \end_inset
177
178 熟練ユーザのための各機能
179 \end_layout
180
181 \begin_layout Author
182 \SpecialChar LyX
183 開発チーム
184 \begin_inset Foot
185 status collapsed
186
187 \begin_layout Plain Layout
188 \noindent
189 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
190 文書化メーリングリスト
191 \begin_inset CommandInset href
192 LatexCommand href
193 target "lyx-docs@lists.lyx.org"
194 type "mailto:"
195
196 \end_inset
197
198 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください。
200 \end_layout
201
202 \end_inset
203
204
205 \begin_inset Newline newline
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212 第2.2.x版 
213 \end_layout
214
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
218
219 \end_inset
220
221
222 \begin_inset Note Note
223 status open
224
225 \begin_layout Plain Layout
226 本文書を修正する際には、変更追跡機能を使用してください。これによって、
227 \end_layout
228
229 \begin_layout Plain Layout
230 \SpecialChar LyX
231 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
232 \end_layout
233
234 \end_inset
235
236
237 \end_layout
238
239 \begin_layout Chapter
240 はじめに
241 \end_layout
242
243 \begin_layout Standard
244 この取扱説明書は、\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います。ここでは、
246 \begin_inset Flex Ruby
247 status collapsed
248
249 \begin_layout Plain Layout
250 捷径
251 \begin_inset Argument post:1
252 status collapsed
253
254 \begin_layout Plain Layout
255 ショートカット
256 \end_layout
257
258 \end_inset
259
260
261 \end_layout
262
263 \end_inset
264
265 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
268 クラスや\SpecialChar LyX
269 レイアウトの導入などの題材について論じます。おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
271 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
272 \end_layout
273
274 \begin_layout Standard
275 \begin_inset Branch OutDated
276 status collapsed
277
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280  outdated is contained in the OutDated branch of this document.
281  By default, this information will not appear in the \SpecialChar LaTeX
282  output.
283 \end_layout
284
285 \end_inset
286
287
288 \end_layout
289
290 \begin_layout Chapter
291 \SpecialChar LyX
292 設定ファイル
293 \end_layout
294
295 \begin_layout Standard
296 本章の目的は、\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
298 \begin_inset Flex MenuItem
299 status collapsed
300
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
303 LyXについて
304 \end_layout
305
306 \end_inset
307
308 を使って、\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです。一
311 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
312 \begin_inset Flex Code
313 status collapsed
314
315 \begin_layout Plain Layout
316 LyXDir
317 \end_layout
318
319 \end_inset
320
321 と呼び、後者を
322 \begin_inset Flex MenuItem
323 status collapsed
324
325 \begin_layout Plain Layout
326 UserDir
327 \end_layout
328
329 \end_inset
330
331 と呼ぶことにします。
332 \end_layout
333
334 \begin_layout Section
335 \begin_inset Flex Code
336 status collapsed
337
338 \begin_layout Plain Layout
339 LyXDir
340 \end_layout
341
342 \end_inset
343
344 にはなにがあるの?
345 \end_layout
346
347 \begin_layout Standard
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 LyXDir
353 \end_layout
354
355 \end_inset
356
357 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
358 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
359 内の
360 \begin_inset Flex MenuItem
361 status collapsed
362
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
365 設定
366 \end_layout
367
368 \end_inset
369
370 ダイアログから変更することができます。\SpecialChar LyX
371 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
372 の多くの内部動作は、
373 \begin_inset Flex Code
374 status collapsed
375
376 \begin_layout Plain Layout
377 LyXDir
378 \end_layout
379
380 \end_inset
381
382 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
383 \end_layout
384
385 \begin_layout Subsection
386 自動的に生成されるファイル
387 \end_layout
388
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
391 status collapsed
392
393 \begin_layout Plain Layout
394 UserDir
395 \end_layout
396
397 \end_inset
398
399 にある各ファイルは、\SpecialChar LyX
400 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
401 うので、一般的には修正しないことが望まれます。
402 \end_layout
403
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
407 status collapsed
408
409 \begin_layout Plain Layout
410 lyxrc.defaults
411 \end_layout
412
413 \end_inset
414
415  このファイルには、様々な既定コマンドが置かれています。
416 \end_layout
417
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
421 status collapsed
422
423 \begin_layout Plain Layout
424 packages.lst
425 \end_layout
426
427 \end_inset
428
429  このファイルには、\SpecialChar LyX
430 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
431 プログラム自体には使用されていませんが、抽出された情報その他は、
432 \begin_inset Flex MenuItem
433 status collapsed
434
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
437 LaT
438 \begin_inset ERT
439 status collapsed
440
441 \begin_layout Plain Layout
442
443 {}
444 \end_layout
445
446 \end_inset
447
448 eXの設定
449 \end_layout
450
451 \end_inset
452
453 で見ることができます。
454 \end_layout
455
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 textclass.lst
463 \end_layout
464
465 \end_inset
466
467  ユーザの
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 Plain L
473 \end_layout
474
475 \end_inset
476
477 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
478 文書クラスおよびその説明の一覧です。
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 lyxmodules.lst
488 \end_layout
489
490 \end_inset
491
492  ユーザの
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 layout/
498 \end_layout
499
500 \end_inset
501
502 ディレクトリで検出されたレイアウトモジュールの一覧です。
503 \end_layout
504
505 \begin_layout Labeling
506 \labelwidthstring 00.00.0000
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 *files.lst
512 \end_layout
513
514 \end_inset
515
516  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
517 関連ファイルの一覧です。
518 \end_layout
519
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 doc/LaT
527 \begin_inset ERT
528 status collapsed
529
530 \begin_layout Plain Layout
531
532 {}
533 \end_layout
534
535 \end_inset
536
537 eXConfig.lyx
538 \end_layout
539
540 \end_inset
541
542  このファイルは、自動設定中に
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 LaT
548 \begin_inset ERT
549 status collapsed
550
551 \begin_layout Plain Layout
552
553 {}
554 \end_layout
555
556 \end_inset
557
558 eXConfig.lyx.in
559 \end_layout
560
561 \end_inset
562
563 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
564 の設定に関する情報が納められています。
565 \end_layout
566
567 \begin_layout Subsection
568 ディレクトリ
569 \end_layout
570
571 \begin_layout Standard
572 以下の各ディレクトリは、
573 \begin_inset Flex Code
574 status collapsed
575
576 \begin_layout Plain Layout
577 LyXDir
578 \end_layout
579
580 \end_inset
581
582
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 UserDir
588 \end_layout
589
590 \end_inset
591
592 に重複して存在します。特定のファイルが両方の場所にある場合には、
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 UserDir
598 \end_layout
599
600 \end_inset
601
602 の方にあるものが使用されます。
603 \end_layout
604
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 bind/
612 \end_layout
613
614 \end_inset
615
616  このディレクトリには、\SpecialChar LyX
617 で使用されるキー割当を定義している、拡張子が
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 .bind
623 \end_layout
624
625 \end_inset
626
627 のファイルが置かれています。
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 $LANG_xxx.bind
633 \end_layout
634
635 \end_inset
636
637 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
638 \end_layout
639
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 clipart/
647 \end_layout
648
649 \end_inset
650
651  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
652 \end_layout
653
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 doc/
661 \end_layout
662
663 \end_inset
664
665  このディレクトリには、\SpecialChar LyX
666 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 LaTeXConfig.lyx
672 \end_layout
673
674 \end_inset
675
676 ファイルは特に注目に値します。各国語版のヘルプ文書は、
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 doc/xx
682 \end_layout
683
684 \end_inset
685
686 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
687 \begin_inset CommandInset ref
688 LatexCommand ref
689 reference "cha:LyXの各国語対応"
690
691 \end_inset
692
693 をご覧ください。
694 \end_layout
695
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 examples/
703 \end_layout
704
705 \end_inset
706
707  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
708 \begin_inset Flex MenuItem
709 status collapsed
710
711 \begin_layout Plain Layout
712 用例
713 \end_layout
714
715 \end_inset
716
717 ボタンを押すと、このディレクトリが表示されます。
718 \end_layout
719
720 \begin_layout Labeling
721 \labelwidthstring 00.00.0000
722 \begin_inset Flex Code
723 status collapsed
724
725 \begin_layout Plain Layout
726 images/
727 \end_layout
728
729 \end_inset
730
731  このディレクトリには、
732 \begin_inset Flex MenuItem
733 status collapsed
734
735 \begin_layout Plain Layout
736 文書
737 \end_layout
738
739 \end_inset
740
741 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
742 を起動したときに現れるバナーも納められています。
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 をご覧ください。
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには、
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 に述べられているテキストクラスおよびモジュールのファイルが納められています。
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには、\SpecialChar LyX
799 の各バージョン間の変換に使用される
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 lyx2lyx
805 \end_layout
806
807 \end_inset
808
809  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
810 \end_layout
811
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 scripts/
819 \end_layout
820
821 \end_inset
822
823  このディレクトリには、
824 \begin_inset Flex MenuItem
825 status collapsed
826
827 \begin_layout Plain Layout
828 外用ひな型
829 \end_layout
830
831 \end_inset
832
833 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
834 自身が使用するスクリプトもいくつか収められています。
835 \end_layout
836
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 templates/
844 \end_layout
845
846 \end_inset
847
848  このディレクトリには、
849 \begin_inset CommandInset ref
850 LatexCommand ref
851 reference "sec:ひな型を作成する"
852
853 \end_inset
854
855 で述べられている標準の\SpecialChar LyX
856 ひな型ファイルが納められています。
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 ui/
866 \end_layout
867
868 \end_inset
869
870  このディレクトリには、\SpecialChar LyX
871 の操作画面を定義する拡張子
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 .ui
877 \end_layout
878
879 \end_inset
880
881 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
882 \end_layout
883
884 \begin_layout Subsection
885 変更を加えない方がよいファイル
886 \end_layout
887
888 \begin_layout Standard
889 これらのファイルは\SpecialChar LyX
890 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
891 \end_layout
892
893 \begin_layout Labeling
894 \labelwidthstring 00.00.0000
895 \begin_inset Flex Code
896 status collapsed
897
898 \begin_layout Plain Layout
899 CREDITS
900 \end_layout
901
902 \end_inset
903
904  このファイルは、\SpecialChar LyX
905 開発陣の名簿です。この内容は、メニュー項目
906 \begin_inset Flex MenuItem
907 status collapsed
908
909 \begin_layout Plain Layout
910 ヘルプ\SpecialChar menuseparator
911 LyXについて
912 \end_layout
913
914 \end_inset
915
916 で表示されます。
917 \end_layout
918
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 chkconfig.ltx
926 \end_layout
927
928 \end_inset
929
930  これは、自動設定プロセスによって使用される\SpecialChar LaTeX
931 スクリプトです。直接実行しないでください。
932 \end_layout
933
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 configure.py
941 \end_layout
942
943 \end_inset
944
945  これは、\SpecialChar LyX
946 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
947 \end_layout
948
949 \begin_layout Subsection
950 ひとこと必要なファイル群
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 encodings
960 \end_layout
961
962 \end_inset
963
964  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
965 \end_layout
966
967 \begin_layout Labeling
968 \labelwidthstring 00.00.0000
969 \begin_inset Flex Code
970 status collapsed
971
972 \begin_layout Plain Layout
973 external_templates
974 \end_layout
975
976 \end_inset
977
978  このファイルには、新しく導入された
979 \begin_inset Flex MenuItem
980 status collapsed
981
982 \begin_layout Plain Layout
983 外用ひな型
984 \end_layout
985
986 \end_inset
987
988 機能で使用できるひな型が載っています。
989 \begin_inset CommandInset ref
990 LatexCommand ref
991 reference "chap:外部素材を取り込む"
992
993 \end_inset
994
995 を参照のこと。
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 languages
1005 \end_layout
1006
1007 \end_inset
1008
1009  このファイルには、現在\SpecialChar LyX
1010 がサポートしている言語の全一覧が載っています。
1011 \end_layout
1012
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 latexfonts
1020 \end_layout
1021
1022 \end_inset
1023
1024  サポートされているフォントに関する情報が掲載されています。
1025 \end_layout
1026
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 layouttranslations
1034 \end_layout
1035
1036 \end_inset
1037
1038  このファイルは、国際化された段落様式の翻訳が収録されています(
1039 \begin_inset CommandInset ref
1040 LatexCommand ref
1041 reference "subsec:段落様式の国際化"
1042
1043 \end_inset
1044
1045 参照)。
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 unicodesymbols
1055 \end_layout
1056
1057 \end_inset
1058
1059  このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1060 が\SpecialChar LaTeX
1061 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1062 \end_layout
1063
1064 \begin_layout Section
1065 ユーザのローカル設定ディレクトリ
1066 \end_layout
1067
1068 \begin_layout Standard
1069 \SpecialChar LyX
1070 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1071 の設定を変更したいと思うかもしれません。
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 UserDir
1077 \end_layout
1078
1079 \end_inset
1080
1081 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1082 \begin_inset Flex MenuItem
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086 ヘルプ\SpecialChar menuseparator
1087 LyXについて
1088 \end_layout
1089
1090 \end_inset
1091
1092 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1093 \begin_inset Flex Code
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 LyXDir
1098 \end_layout
1099
1100 \end_inset
1101
1102 のミラーとして使用されており、これは
1103 \begin_inset Flex Code
1104 status collapsed
1105
1106 \begin_layout Plain Layout
1107 UserDir
1108 \end_layout
1109
1110 \end_inset
1111
1112 内のすべてのファイルが、
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 LyXDir
1118 \end_layout
1119
1120 \end_inset
1121
1122 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1123 \end_layout
1124
1125 \begin_layout Standard
1126 わかりやすくするために、いくつか例を挙げましょう。
1127 \end_layout
1128
1129 \begin_layout Itemize
1130 \begin_inset Flex MenuItem
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 ツール\SpecialChar menuseparator
1135 設定
1136 \end_layout
1137
1138 \end_inset
1139
1140 ダイアログで設定されるユーザ設定は、
1141 \begin_inset Flex Code
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145 UserDir
1146 \end_layout
1147
1148 \end_inset
1149
1150 中の
1151 \begin_inset Flex Code
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 preferences
1156 \end_layout
1157
1158 \end_inset
1159
1160 ファイルに保存されます。
1161 \end_layout
1162
1163 \begin_layout Itemize
1164 \begin_inset Flex MenuItem
1165 status collapsed
1166
1167 \begin_layout Plain Layout
1168 ツール\SpecialChar menuseparator
1169 環境構成
1170 \end_layout
1171
1172 \end_inset
1173
1174 を使用して環境構成を行うと、\SpecialChar LyX
1175
1176 \begin_inset Flex Code
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 configure.py
1181 \end_layout
1182
1183 \end_inset
1184
1185 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1186 \begin_inset Flex Code
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 UserDir/layouts
1191 \end_layout
1192
1193 \end_inset
1194
1195 にご自身で追加したテキストファイルは、
1196 \begin_inset Flex MenuItem
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 文書\SpecialChar menuseparator
1201 設定
1202 \end_layout
1203
1204 \end_inset
1205
1206 ダイアログのクラス一覧に表示されるようになることを意味します。
1207 \end_layout
1208
1209 \begin_layout Itemize
1210 たとえば、\SpecialChar LyX
1211 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1212 れらのファイルを
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 UserDir/doc/
1218 \end_layout
1219
1220 \end_inset
1221
1222 ディレクトリにコピーすれば、
1223 \begin_inset Flex MenuItem
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 ヘルプ
1228 \end_layout
1229
1230 \end_inset
1231
1232 メニュー項目はこれらを開くようになります!
1233 \end_layout
1234
1235 \begin_layout Section
1236 \SpecialChar LyX
1237 を複数の設定を使って実行するには
1238 \end_layout
1239
1240 \begin_layout Standard
1241 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1242 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1243 どのディレクトリを使用するか指定するのです。
1244 \end_layout
1245
1246 \begin_layout Standard
1247 \SpecialChar LyX
1248 をコマンドラインスイッチ
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 -userdir
1254 \end_layout
1255
1256 \end_inset
1257
1258 P
1259 \emph on
1260 <ディレクトリ名>
1261 \emph default
1262 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1263
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 -userdir
1269 \end_layout
1270
1271 \end_inset
1272
1273 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1274 は、初めて\SpecialChar LyX
1275 を実行したときに既定ディレクトリを訊い
1276 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1277 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 LYX_USERDIR_20x
1283 \end_layout
1284
1285 \end_inset
1286
1287 を特定の値に設定しても、全く同じ効果があります。
1288 \end_layout
1289
1290 \begin_layout Standard
1291 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 NewUserDir/layouts
1297 \end_layout
1298
1299 \end_inset
1300
1301 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1302 クを使用してください。\SpecialChar LyX
1303 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1304 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1305 \begin_inset Flex Code
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309 doc/
1310 \end_layout
1311
1312 \end_inset
1313
1314 サブディレクトリには、設定スクリプト(
1315 \begin_inset Flex MenuItem
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 ツール\SpecialChar menuseparator
1320 環境構成
1321 \end_layout
1322
1323 \end_inset
1324
1325 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1326 \end_layout
1327
1328 \begin_layout Chapter
1329 設定ダイアログ
1330 \end_layout
1331
1332 \begin_layout Standard
1333 設定ダイアログのオプションのすべては、
1334 \emph on
1335 ユーザーの手引き
1336 \emph default
1337 の付録
1338 \emph on
1339 設定ダイアログ
1340 \emph default
1341 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1342 \end_layout
1343
1344 \begin_layout Section
1345 ファイル形式
1346 \begin_inset CommandInset label
1347 LatexCommand label
1348 name "sec:ファイル形式"
1349
1350 \end_inset
1351
1352
1353 \end_layout
1354
1355 \begin_layout Standard
1356 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1357 \begin_inset Flex MenuItem
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 ツール\SpecialChar menuseparator
1362 設定
1363 \end_layout
1364
1365 \end_inset
1366
1367 ダイアログを開いてください。
1368 \begin_inset Flex MenuItem
1369 status collapsed
1370
1371 \begin_layout Plain Layout
1372 ファイル処理\SpecialChar menuseparator
1373 ファイル形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 の中で
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 新規\SpecialChar ldots
1384
1385 \end_layout
1386
1387 \end_inset
1388
1389 ボタンを押して、登録する新しい形式を定義してください。
1390 \begin_inset Flex MenuItem
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 形式
1395 \end_layout
1396
1397 \end_inset
1398
1399 フィールドは、GUI中で形式を認識するために用いられる名称です。
1400 \begin_inset Flex MenuItem
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404 短縮名
1405 \end_layout
1406
1407 \end_inset
1408
1409 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1410 \begin_inset Flex MenuItem
1411 status collapsed
1412
1413 \begin_layout Plain Layout
1414 捷径
1415 \end_layout
1416
1417 \end_inset
1418
1419 フィールドは、メニュー中で
1420 \begin_inset Flex Ruby
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424 捷径
1425 \begin_inset Argument post:1
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 ショートカット
1430 \end_layout
1431
1432 \end_inset
1433
1434
1435 \end_layout
1436
1437 \end_inset
1438
1439 を提供するのに使用されます(たとえば、
1440 \begin_inset Flex MenuItem
1441 status collapsed
1442
1443 \begin_layout Plain Layout
1444 Ctrl+D
1445 \end_layout
1446
1447 \end_inset
1448
1449 を押すと
1450 \begin_inset Flex MenuItem
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 表示\SpecialChar menuseparator
1455 DVI
1456 \end_layout
1457
1458 \end_inset
1459
1460 となります)。
1461 \end_layout
1462
1463 \begin_layout Standard
1464 形式には、
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 閲覧プログラム
1470 \end_layout
1471
1472 \end_inset
1473
1474
1475 \begin_inset Flex MenuItem
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 編集プログラム
1480 \end_layout
1481
1482 \end_inset
1483
1484 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1485 \begin_inset Flex MenuItem
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 Ghostview
1490 \end_layout
1491
1492 \end_inset
1493
1494 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1495 いることができます。この閲覧プログラムは、\SpecialChar LyX
1496 中で画像を閲覧したり
1497 \begin_inset Flex MenuItem
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 表示
1502 \end_layout
1503
1504 \end_inset
1505
1506 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1507 \begin_inset Flex MenuItem
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 外部で編集
1512 \end_layout
1513
1514 \end_inset
1515
1516 を選択したときに起動します。
1517 \end_layout
1518
1519 \begin_layout Standard
1520 ファイル形式の
1521 \begin_inset Flex MenuItem
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 MIME
1526 \end_layout
1527
1528 \end_inset
1529
1530 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1531 ます。重要なファイル形式のうちには、
1532 \begin_inset CommandInset href
1533 LatexCommand href
1534 name "IANA"
1535 target "http://www.iana.org/assignments/media-types/"
1536
1537 \end_inset
1538
1539 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1540 は、
1541 \begin_inset CommandInset href
1542 LatexCommand href
1543 name "freedesktop.org"
1544 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1545
1546 \end_inset
1547
1548 で指定されているMIME型拡張表を使用しています。
1549 \end_layout
1550
1551 \begin_layout Standard
1552 \begin_inset Flex MenuItem
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 文書形式
1557 \end_layout
1558
1559 \end_inset
1560
1561 オプションは、\SpecialChar LyX
1562 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1563 \begin_inset CommandInset ref
1564 LatexCommand ref
1565 reference "sec:変換子"
1566
1567 \end_inset
1568
1569 節を参照)、この形式が
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ファイル\SpecialChar menuseparator
1575 書き出し
1576 \end_layout
1577
1578 \end_inset
1579
1580
1581 \begin_inset Flex MenuItem
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 表示
1586 \end_layout
1587
1588 \end_inset
1589
1590 footlabel Label color for footnotす。
1591 \begin_inset Flex Code
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 png
1596 \end_layout
1597
1598 \end_inset
1599
1600 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1601 \begin_inset Flex Code
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 pdf
1606 \end_layout
1607
1608 \end_inset
1609
1610 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1611 \end_layout
1612
1613 \begin_layout Standard
1614 \begin_inset Flex MenuItem
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618 ベクター画像形式
1619 \end_layout
1620
1621 \end_inset
1622
1623 オプションは、\SpecialChar LyX
1624 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1625 \begin_inset Flex MenuItem
1626 status collapsed
1627
1628 \begin_layout Plain Layout
1629 pdflatex
1630 \end_layout
1631
1632 \end_inset
1633
1634 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1635 \begin_inset Flex MenuItem
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 pdflatex
1640 \end_layout
1641
1642 \end_inset
1643
1644 は、
1645 \begin_inset Flex MenuItem
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 pdf
1650 \end_layout
1651
1652 \end_inset
1653
1654
1655 \begin_inset Flex MenuItem
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 png
1660 \end_layout
1661
1662 \end_inset
1663
1664
1665 \begin_inset Flex MenuItem
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Des
1670 \end_layout
1671
1672 \end_inset
1673
1674 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1675 \begin_inset Flex MenuItem
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 pdf
1680 \end_layout
1681
1682 \end_inset
1683
1684
1685 \begin_inset Flex MenuItem
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 png
1690 \end_layout
1691
1692 \end_inset
1693
1694
1695 \begin_inset Flex MenuItem
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 jpg
1700 \end_layout
1701
1702 \end_inset
1703
1704 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1705 \begin_inset Flex MenuItem
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 pdf
1710 \end_layout
1711
1712 \end_inset
1713
1714 に変換され、そうでない場合には
1715 \begin_inset Flex MenuItem
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 png
1720 \end_layout
1721
1722 \end_inset
1723
1724 に変換されます。
1725 \end_layout
1726
1727 \begin_layout Section
1728 複写子
1729 \end_layout
1730
1731 \begin_layout Standard
1732 形式の変換はすべて、\SpecialChar LyX
1733 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1734 \begin_inset Foot
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1739 あります。
1740 \end_layout
1741
1742 \end_inset
1743
1744 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1745 \end_layout
1746
1747 \begin_layout Standard
1748 複写子の定義においては、以下の8つの変数を用いることができます。
1749 \end_layout
1750
1751 \begin_layout Labeling
1752 \labelwidthstring 00.00.0000
1753 \begin_inset Flex Code
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 $$s
1758 \end_layout
1759
1760 \end_inset
1761
1762  \SpecialChar LyX
1763 のシステムディレクトリ(例:
1764 \begin_inset Flex MenuItem
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 /usr/share/lyx
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \end_layout
1775
1776 \begin_layout Labeling
1777 \labelwidthstring 00.00.0000
1778 \begin_inset Flex Code
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 $$i
1783 \end_layout
1784
1785 \end_inset
1786
1787  入力ファイル
1788 \end_layout
1789
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 $$o
1797 \end_layout
1798
1799 \end_inset
1800
1801  出力ファイル
1802 \end_layout
1803
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Flex Code
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 $$b
1811 \end_layout
1812
1813 \end_inset
1814
1815  \SpecialChar LyX
1816 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1817 \end_layout
1818
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 $$p
1826 \end_layout
1827
1828 \end_inset
1829
1830  \SpecialChar LyX
1831 一時ディレクトリのフルパス名
1832 \end_layout
1833
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 $$r
1841 \end_layout
1842
1843 \end_inset
1844
1845  処理されている元の\SpecialChar LyX
1846 ファイルのフルパス名
1847 \end_layout
1848
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 $$f
1856 \end_layout
1857
1858 \end_inset
1859
1860  \SpecialChar LyX
1861 ファイルのファイル名(ディレクトリパスなし)
1862 \end_layout
1863
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 $$l
1871 \end_layout
1872
1873 \end_inset
1874
1875  「\SpecialChar LaTeX
1876 名」
1877 \end_layout
1878
1879 \begin_layout Standard
1880 最後の変数は、\SpecialChar LaTeX
1881
1882 \series bold
1883
1884 \backslash
1885 include
1886 \series default
1887 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1888 \end_layout
1889
1890 \begin_layout Standard
1891 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 /home/you/pdf/
1897 \end_layout
1898
1899 \end_inset
1900
1901 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1902 \end_layout
1903
1904 \begin_layout Standard
1905 \begin_inset listings
1906 inline false
1907 status open
1908
1909 \begin_layout Plain Layout
1910
1911 #!/bin/bash
1912 \end_layout
1913
1914 \begin_layout Plain Layout
1915
1916 FROMFILE=$1
1917 \end_layout
1918
1919 \begin_layout Plain Layout
1920
1921 TOFILE=`basename $2`
1922 \end_layout
1923
1924 \begin_layout Plain Layout
1925
1926 DescriptionE /home/you/pdf/$TOFILE
1927 \end_layout
1928
1929 \end_inset
1930
1931 これを、例えば
1932 \begin_inset Flex Code
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 /home/you/.lyx/scripts/pdfcopier.sh
1937 \end_layout
1938
1939 \end_inset
1940
1941 のような、自身のローカル\SpecialChar LyX
1942 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1943 \begin_inset Flex MenuItem
1944 status collapsed
1945
1946 \begin_layout Plain Layout
1947 ツール\SpecialChar menuseparator
1948 設定
1949 \end_layout
1950
1951 \end_inset
1952
1953 ダイアログの
1954 \begin_inset Flex MenuItem
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 ファイル処理\SpecialChar menuseparator
1959 ファイル形式
1960 \end_layout
1961
1962 \end_inset
1963
1964 の中で、
1965 \begin_inset Flex MenuItem
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 PDF(pdflatex)
1970 \end_layout
1971
1972 \end_inset
1973
1974 形式—あるいは他のPDF形式のうちどれか—を選択し、
1975 \begin_inset Flex MenuItem
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 複写子
1980 \end_layout
1981
1982 \end_inset
1983
1984 フィールドに
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdfcopier.sh $$i $$o
1990 \end_layout
1991
1992 \end_inset
1993
1994 と入力します。
1995 \end_layout
1996
1997 \begin_layout Standard
1998 複写子は、\SpecialChar LyX
1999 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
2000 は自動的に
2001 \begin_inset Flex MenuItem
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 HTML
2006 \end_layout
2007
2008 \end_inset
2009
2010 形式と
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 HTML
2016 \begin_inset space ~
2017 \end_inset
2018
2019 (MS Word)
2020 \end_layout
2021
2022 \end_inset
2023
2024 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2025 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2026 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2027 \begin_inset Foot
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2032 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2033 \begin_inset Flex MenuItem
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 L
2038 \begin_inset ERT
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042
2043 {}
2044 \end_layout
2045
2046 \end_inset
2047
2048 yXconv
2049 \end_layout
2050
2051 \end_inset
2052
2053 」となっているので、
2054 \begin_inset Flex MenuItem
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 /path/to/filename.lyx
2059 \end_layout
2060
2061 \end_inset
2062
2063 から生成されたHTMLファイルは、
2064 \begin_inset Flex MenuItem
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 /path/to/filename.html.L
2069 \begin_inset ERT
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073
2074 {}
2075 \end_layout
2076
2077 \end_inset
2078
2079 yXconv
2080 \end_layout
2081
2082 \end_inset
2083
2084 となります。.
2085  
2086 \end_layout
2087
2088 \end_inset
2089
2090
2091 \end_layout
2092
2093 \begin_layout Section
2094 変換子
2095 \begin_inset CommandInset label
2096 LatexCommand label
2097 name "sec:変換子"
2098
2099 \end_inset
2100
2101
2102 \end_layout
2103
2104 \begin_layout Standard
2105 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 ツール\SpecialChar menuseparator
2111 設定\SpecialChar menuseparator
2112 ファイル処理\SpecialChar menuseparator
2113 変換子
2114 \end_layout
2115
2116 \end_inset
2117
2118 ダイアログで行います。
2119 \end_layout
2120
2121 \begin_layout Standard
2122 新規に変換子を定義するには、ドロップダウンリストから
2123 \begin_inset Flex MenuItem
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 変換元の形式
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Flex MenuItem
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137 変換先の形式
2138 \end_layout
2139
2140 \end_inset
2141
2142 を選択し、変換に必要なコマンドを入力してから
2143 \begin_inset Flex MenuItem
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 追加
2148 \end_layout
2149
2150 \end_inset
2151
2152 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2153 \end_layout
2154
2155 \begin_layout Labeling
2156 \labelwidthstring 00.00.0000
2157 \begin_inset Flex Code
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 $$s
2162 \end_layout
2163
2164 \end_inset
2165
2166  \SpecialChar LyX
2167 システムディレクトリ
2168 \end_layout
2169
2170 \begin_layout Labeling
2171 \labelwidthstring 00.00.0000
2172 \begin_inset Flex Code
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 $$i
2177 \end_layout
2178
2179 \end_inset
2180
2181  入力ファイル
2182 \end_layout
2183
2184 \begin_layout Labeling
2185 \labelwidthstring 00.00.0000
2186 \begin_inset Flex Code
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 $$o
2191 \end_layout
2192
2193 \end_inset
2194
2195  出力ファイル
2196 \end_layout
2197
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 $$b
2205 \end_layout
2206
2207 \end_inset
2208
2209  入力ファイルのベースファイル名(拡張子をとった部分)
2210 \end_layout
2211
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2215 status collapsed
2216
2217 \begin_layout Plain Layout
2218 $$p
2219 \end_layout
2220
2221 \end_inset
2222
2223  入力ファイルのパス
2224 \end_layout
2225
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 $$r
2233 \end_layout
2234
2235 \end_inset
2236
2237  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2238 \end_layout
2239
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 $$e
2247 \end_layout
2248
2249 \end_inset
2250
2251  文書エンコーディングのiconv名
2252 \end_layout
2253
2254 \begin_layout Standard
2255 \begin_inset Flex MenuItem
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 追加フラグ
2260 \end_layout
2261
2262 \end_inset
2263
2264 フィールドには、以下のフラグをコンマで区切って入力することができます。
2265 \end_layout
2266
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 latex
2274 \end_layout
2275
2276 \end_inset
2277
2278  この変換子が\SpecialChar LaTeX
2279 の一種を実行することを示します。これによって、\SpecialChar LyX
2280 の\SpecialChar LaTeX
2281 エラーログに記録を残せるようになります。
2282 \end_layout
2283
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290 needaux
2291 \end_layout
2292
2293 \end_inset
2294
2295  変換に\SpecialChar LaTeX
2296
2297 \begin_inset Flex MenuItem
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 .aux
2302 \end_layout
2303
2304 \end_inset
2305
2306 ファイルが必要であることを示します。
2307 \end_layout
2308
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 nice
2316 \end_layout
2317
2318 \end_inset
2319
2320  バックエンドからの
2321 \begin_inset Quotes erd
2322 \end_inset
2323
2324 nice
2325 \begin_inset Quotes erd
2326 \end_inset
2327
2328 なファイル、つまり\SpecialChar LyX
2329 が書き出す\SpecialChar LaTeX
2330 ファイルのように、
2331 \begin_inset Flex Code
2332 status open
2333
2334 \begin_layout Plain Layout
2335 input@path
2336 \end_layout
2337
2338 \end_inset
2339
2340 のない\SpecialChar LaTeX
2341 ファイルを必要とします。
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 xml
2351 \end_layout
2352
2353 \end_inset
2354
2355  出力がXMLであることを示します。
2356 \end_layout
2357
2358 \begin_layout Standard
2359 以下の3つのフラグは 
2360 \begin_inset Flex MenuItem
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 key
2365 \begin_inset space ~
2366 \end_inset
2367
2368 =
2369 \begin_inset space ~
2370 \end_inset
2371
2372 value
2373 \end_layout
2374
2375 \end_inset
2376
2377 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2378 \end_layout
2379
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 parselog
2387 \end_layout
2388
2389 \end_inset
2390
2391  これを指定すると、変換子の標準エラーが
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 infile.out
2397 \end_layout
2398
2399 \end_inset
2400
2401 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2402 \begin_inset Flex Code
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406 script < infile.out > infile.log
2407 \end_layout
2408
2409 \end_inset
2410
2411 の形で実行されるようになります。引数には
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 $$s
2417 \end_layout
2418
2419 \end_inset
2420
2421 を指定することができます。
2422 \end_layout
2423
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Flex Code
2427 status collapsed
2428
2429 \begin_layout Plain Layout
2430 resultdir
2431 \end_layout
2432
2433 \end_inset
2434
2435  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2436 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2437 ピーします。引数には、
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442 $$b
2443 \end_layout
2444
2445 \end_inset
2446
2447 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2448 \begin_inset Newline newline
2449 \end_inset
2450
2451 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2452 \end_layout
2453
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2456 \begin_inset Flex Code
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 resultfile
2461 \end_layout
2462
2463 \end_inset
2464
2465  これは出力ファイル名を指定するもので、
2466 \begin_inset Flex Code
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 $$b
2471 \end_layout
2472
2473 \end_inset
2474
2475 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2476 \end_layout
2477
2478 \begin_layout Standard
2479 最後の3つは、\SpecialChar LyX
2480 とともに導入される変換子には、現在いずれも使用されておりません。
2481 \end_layout
2482
2483 \begin_layout Standard
2484 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2485 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2486 はPostScrip
2487 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2488 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2489 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2490 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2491 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2492 設定は、\SpecialChar LaTeX
2493 からPDFへ変換するのに、以下の3つの方法を
2494 用意しています。
2495 \end_layout
2496
2497 \begin_layout Enumerate
2498 直接
2499 \begin_inset Flex MenuItem
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 pdflatex
2504 \end_layout
2505
2506 \end_inset
2507
2508 を使用するもの
2509 \end_layout
2510
2511 \begin_layout Enumerate
2512 (DVIと)PostScriptを経由して
2513 \begin_inset Flex MenuItem
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 ps2pdf
2518 \end_layout
2519
2520 \end_inset
2521
2522 を使用するもの
2523 \end_layout
2524
2525 \begin_layout Enumerate
2526 DVI経由で
2527 \begin_inset Flex MenuItem
2528 status collapsed
2529
2530 \begin_layout Plain Layout
2531 dvipdfm
2532 \end_layout
2533
2534 \end_inset
2535
2536 を使用するもの
2537 \end_layout
2538
2539 \begin_layout Enumerate
2540 直接
2541 \begin_inset Flex MenuItem
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 Xe\SpecialChar TeX
2546
2547 \end_layout
2548
2549 \end_inset
2550
2551 を使用するもの
2552 \end_layout
2553
2554 \begin_layout Enumerate
2555 直接
2556 \begin_inset Flex MenuItem
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 Lua\SpecialChar TeX
2561
2562 \end_layout
2563
2564 \end_inset
2565
2566 を使用するもの
2567 \end_layout
2568
2569 \begin_layout Standard
2570 このように代替連鎖を定義するには、第
2571 \begin_inset CommandInset ref
2572 LatexCommand ref
2573 reference "sec:ファイル形式"
2574
2575 \end_inset
2576
2577 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2578 \begin_inset Flex MenuItem
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582 pdf
2583 \end_layout
2584
2585 \end_inset
2586
2587 (
2588 \begin_inset Flex MenuItem
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 ps2pdf
2593 \end_layout
2594
2595 \end_inset
2596
2597 用)・
2598 \begin_inset Flex MenuItem
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 pdf2
2603 \end_layout
2604
2605 \end_inset
2606
2607 (
2608 \begin_inset Flex MenuItem
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 pdflatex
2613 \end_layout
2614
2615 \end_inset
2616
2617 用)・
2618 \begin_inset Flex MenuItem
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 pdf3
2623 \end_layout
2624
2625 \end_inset
2626
2627 (
2628 \begin_inset Flex MenuItem
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 dvipdfm
2633 \end_layout
2634
2635 \end_inset
2636
2637 用)・
2638 \begin_inset Flex MenuItem
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642 pdf4
2643 \end_layout
2644
2645 \end_inset
2646
2647 (
2648 \begin_inset Flex MenuItem
2649 status collapsed
2650
2651 \begin_layout Plain Layout
2652 Xe\SpecialChar TeX
2653
2654 \end_layout
2655
2656 \end_inset
2657
2658 用)・
2659 \begin_inset Flex MenuItem
2660 status collapsed
2661
2662 \begin_layout Plain Layout
2663 pdf5
2664 \end_layout
2665
2666 \end_inset
2667
2668 (
2669 \begin_inset Flex MenuItem
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 Lua\SpecialChar TeX
2674
2675 \end_layout
2676
2677 \end_inset
2678
2679 用\SpecialChar softhyphen
2680 ) と命名された形式が定義されていて、すべて共通の拡張子
2681 \begin_inset Flex MenuItem
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 .pdf
2686 \end_layout
2687
2688 \end_inset
2689
2690 を持ち、上記で言及した各変換方法に対応しています。
2691 \end_layout
2692
2693 \begin_layout Chapter
2694 \SpecialChar LyX
2695 の各国語対応
2696 \begin_inset CommandInset label
2697 LatexCommand label
2698 name "cha:LyXの各国語対応"
2699
2700 \end_inset
2701
2702
2703 \end_layout
2704
2705 \begin_layout Standard
2706 \SpecialChar LyX
2707 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2708 は30言語の翻訳を提供しています。選択した言語は、使用する
2709 \emph on
2710 ロケール
2711 \emph default
2712 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 locale(5)
2718 \end_layout
2719
2720 \end_inset
2721
2722 から見ると良いかもしれません)。
2723 \end_layout
2724
2725 \begin_layout Standard
2726 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2727 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2728 \begin_inset Flex Ruby
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 捷径
2733 \begin_inset Argument post:1
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 ショートカット
2738 \end_layout
2739
2740 \end_inset
2741
2742
2743 \end_layout
2744
2745 \end_inset
2746
2747 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2748 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2749 \begin_inset Foot
2750 status collapsed
2751
2752 \begin_layout Plain Layout
2753 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2754 コミュニティに報いるたいへん素晴らしい方法です!
2755 \end_layout
2756
2757 \end_inset
2758
2759 —は、\SpecialChar LyX
2760 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2761 \end_layout
2762
2763 \begin_layout Section
2764 \SpecialChar LyX
2765 を翻訳する
2766 \end_layout
2767
2768 \begin_layout Subsection
2769 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2770 \begin_inset Argument 1
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 GUI(テキストメッセージ)を翻訳する
2775 \end_layout
2776
2777 \end_inset
2778
2779
2780 \end_layout
2781
2782 \begin_layout Standard
2783 \SpecialChar LyX
2784 は、操作画面の国際化対応にGNU 
2785 \begin_inset Flex Code
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 gettext
2790 \end_layout
2791
2792 \end_inset
2793
2794 ライブラリを使用します。\SpecialChar LyX
2795 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2796 \begin_inset Flex Code
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800 po
2801 \end_layout
2802
2803 \end_inset
2804
2805 ファイルが必要です。このファイルが利用可能であれば、そこから
2806 \begin_inset Flex Code
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 mo
2811 \end_layout
2812
2813 \end_inset
2814
2815 ファイルを生成して、この
2816 \begin_inset Flex Code
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 mo
2821 \end_layout
2822
2823 \end_inset
2824
2825 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2826 \begin_inset Flex Code
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 gettext
2831 \end_layout
2832
2833 \end_inset
2834
2835 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2836 コミュニティの他の人々と分かち
2837 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2838 開発者メーリングリストにメールを送ってください。
2839 \end_layout
2840
2841 \begin_layout Standard
2842 要約すれば、以下のように行います(xxは言語コードを表します)。
2843 \end_layout
2844
2845 \begin_layout Itemize
2846 \SpecialChar LyX
2847 ソースコードをチェックアウトしてください(
2848 \begin_inset CommandInset href
2849 LatexCommand href
2850 name "ウェブ上の情報"
2851 target "http://www.lyx.org/HowToUseGIT"
2852
2853 \end_inset
2854
2855 参照)。
2856 \end_layout
2857
2858 \begin_layout Itemize
2859 \begin_inset Flex Code
2860 status collapsed
2861
2862 \begin_layout Plain Layout
2863 lyx.pot
2864 \end_layout
2865
2866 \end_inset
2867
2868 ファイルを
2869 \begin_inset Flex Code
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 **.po
2874 \end_layout
2875
2876 \end_inset
2877
2878 ファイルのあるフォルダにコピーして、
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 xx.po
2884 \end_layout
2885
2886 \end_inset
2887
2888 に名前を付け替えてください(
2889 \begin_inset Flex Code
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893 lyx.pot
2894 \end_layout
2895
2896 \end_inset
2897
2898 がどこにもない場合には、コンソールからそのディレクトリで
2899 \begin_inset Flex Code
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 make lyx.pot
2904 \end_layout
2905
2906 \end_inset
2907
2908 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2909 \end_layout
2910
2911 \begin_layout Itemize
2912 \begin_inset Flex Code
2913 status collapsed
2914
2915 \begin_layout Plain Layout
2916 xx.po
2917 \end_layout
2918
2919 \end_inset
2920
2921 を編集します。
2922 \begin_inset Foot
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2927 \family typewriter
2928 Poedit
2929 \family default
2930 (全プラットフォーム用)や
2931 \family typewriter
2932 KBabel
2933 \family default
2934 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2935 \family typewriter
2936 Emacs
2937 \family default
2938 にも
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 ファイルを編集するための「モード」があります、第
2949 \begin_inset Flex URL
2950 status open
2951
2952 \begin_layout Plain Layout
2953
2954 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2955 \backslash
2956 #PO-Mode
2957 \end_layout
2958
2959 \end_inset
2960
2961
2962 \end_layout
2963
2964 \end_inset
2965
2966 メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
2967 \begin_inset Flex Ruby
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 捷径
2972 \begin_inset Argument post:1
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 ショートカット
2977 \end_layout
2978
2979 \end_inset
2980
2981
2982 \end_layout
2983
2984 \end_inset
2985
2986 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 po
2992 \end_layout
2993
2994 \end_inset
2995
2996 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2997 \end_layout
2998
2999 \begin_layout Standard
3000 もし、あなたがこれを自身のためだけに行っているのであれば、
3001 \end_layout
3002
3003 \begin_layout Itemize
3004 \begin_inset Flex Code
3005 status collapsed
3006
3007 \begin_layout Plain Layout
3008 xx.mo
3009 \end_layout
3010
3011 \end_inset
3012
3013 を生成してください。これは
3014 \begin_inset Flex Code
3015 status collapsed
3016
3017 \begin_layout Plain Layout
3018 msgfmt -o xx.mo < xx.po
3019 \end_layout
3020
3021 \end_inset
3022
3023 でできます。
3024 \end_layout
3025
3026 \begin_layout Itemize
3027 この
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 mo
3033 \end_layout
3034
3035 \end_inset
3036
3037 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 lyx.mo
3043 \end_layout
3044
3045 \end_inset
3046
3047 という名称にしてください(例:
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3053 \end_layout
3054
3055 \end_inset
3056
3057 )。
3058 \end_layout
3059
3060 \begin_layout Standard
3061 しかしながら前述のように、この新しい
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 po
3067 \end_layout
3068
3069 \end_inset
3070
3071 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3072 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3073 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3074 グリストに電子メールを送ってください。
3075 \end_layout
3076
3077 \begin_layout Subsubsection
3078 多義訳語メッセージ
3079 \end_layout
3080
3081 \begin_layout Standard
3082 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3083 \begin_inset Flex Code
3084 status collapsed
3085
3086 \begin_layout Plain Layout
3087 To
3088 \end_layout
3089
3090 \end_inset
3091
3092 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 gettext
3098 \end_layout
3099
3100 \end_inset
3101
3102 は、このような多義訳語を
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 To
3108 \end_layout
3109
3110 \end_inset
3111
3112 の代わりに、
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 To[[as in 'From format x to format y']]
3118 \end_layout
3119
3120 \end_inset
3121
3122
3123 \begin_inset Flex Code
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 To[[as in 'From page x to page y']]
3128 \end_layout
3129
3130 \end_inset
3131
3132 としなくてはなりません。これによって、これら2つの
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 To
3138 \end_layout
3139
3140 \end_inset
3141
3142 は、
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3153 \end_layout
3154
3155 \begin_layout Standard
3156 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3157 の翻訳機構
3158 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3159 \end_layout
3160
3161 \begin_layout Subsection
3162 説明書を翻訳する
3163 \end_layout
3164
3165 \begin_layout Standard
3166
3167 \begin_inset Flex MenuItem
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 Help
3172 \end_layout
3173
3174 \end_inset
3175
3176 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3177 \begin_inset Foot
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3182 \end_layout
3183
3184 \end_inset
3185
3186 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3187 はこれを自動的に使用します。\SpecialChar LyX
3188 は、翻訳版を
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3194 \end_layout
3195
3196 \end_inset
3197
3198
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 xx
3204 \end_layout
3205
3206 \end_inset
3207
3208 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 DocName
3214 \end_layout
3215
3216 \end_inset
3217
3218 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3219 うべきです。
3220 \end_layout
3221
3222 \begin_layout Itemize
3223 説明書翻訳ウェブページ
3224 \begin_inset CommandInset href
3225 LatexCommand href
3226 name "http://www.lyx.org/Translation"
3227 target "http://www.lyx.org/Translation"
3228
3229 \end_inset
3230
3231 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3232 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3233 \end_layout
3234
3235 \begin_layout Standard
3236 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3237 \end_layout
3238
3239 \begin_layout Itemize
3240 文書化チームに所属してください!そのための情報が
3241 \begin_inset Flex Code
3242 status collapsed
3243
3244 \begin_layout Plain Layout
3245 Intro.lyx
3246 \end_layout
3247
3248 \end_inset
3249
3250
3251 \begin_inset Flex MenuItem
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 ヘルプ\SpecialChar menuseparator
3256 はじめの一歩
3257 \end_layout
3258
3259 \end_inset
3260
3261 )にあります。また、この
3262 \begin_inset Flex Code
3263 status collapsed
3264
3265 \begin_layout Plain Layout
3266 Intro.lyx
3267 \end_layout
3268
3269 \end_inset
3270
3271 が最初に訳すべき文書です。
3272 \end_layout
3273
3274 \begin_layout Itemize
3275 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3276 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3277 \emph on
3278 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3279 \emph default
3280
3281 \end_layout
3282
3283 \begin_layout Itemize
3284 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 UserDir/doc/xx/
3290 \end_layout
3291
3292 \end_inset
3293
3294 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3295 \begin_inset Newline newline
3296 \end_inset
3297
3298
3299 \lang english
3300
3301 \begin_inset Note Greyedout
3302 status open
3303
3304 \begin_layout Plain Layout
3305
3306 \series bold
3307 \lang english
3308 Note:
3309 \series default
3310  For a complex document with external material (images, etc.), if you make
3311  a copy e.
3312 \begin_inset space \thinspace{}
3313 \end_inset
3314
3315 g.
3316 \begin_inset space \space{}
3317 \end_inset
3318
3319 in a temp dir, beware that the links to external material may be broken
3320  when the document is moved to a different place.
3321  The best way is to retrieve the \SpecialChar LyX
3322  tree from git (see 
3323 \begin_inset Flex URL
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327
3328 http://www.lyx.org/HowToUseGIT
3329 \end_layout
3330
3331 \end_inset
3332
3333 ) and to edit the doc file in place.
3334 \end_layout
3335
3336 \end_inset
3337
3338
3339 \end_layout
3340
3341 \begin_layout Itemize
3342 (\SpecialChar LyX
3343 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3344 \begin_inset CommandInset href
3345 LatexCommand href
3346 name "http://www.lyx.org/trac/timeline"
3347 target "http://www.lyx.org/trac/timeline"
3348
3349 \end_inset
3350
3351 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3352 \end_layout
3353
3354 \begin_layout Standard
3355 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3356 \end_layout
3357
3358 \begin_layout Standard
3359 \begin_inset Branch OutDated
3360 status collapsed
3361
3362 \begin_layout Section
3363 International Keyboard Support
3364 \end_layout
3365
3366 \begin_layout Standard
3367
3368 \emph on
3369 [Editor's Note: The following section is by
3370 \emph default
3371  
3372 \shape smallcaps
3373 \emph on
3374 Ivan Schreter
3375 \shape default
3376 .
3377  It needs to be fixed to conform to the new Documentation Style sheet and
3378  to make use of the new v1.0 features.
3379  The whole thing also needs to be merged with the section following it.-jw
3380  It may also be badly out of date.-rh (2008)]
3381 \end_layout
3382
3383 \begin_layout Subsection
3384 Defining Own Keymaps: Keymap File Format
3385 \end_layout
3386
3387 \begin_layout Standard
3388 Let's look at a keyboard definition file a little closer.
3389  It is a plain text file defining
3390 \end_layout
3391
3392 \begin_layout Itemize
3393 key-to-key or key-to-string translations
3394 \end_layout
3395
3396 \begin_layout Itemize
3397 dead keys
3398 \end_layout
3399
3400 \begin_layout Itemize
3401 dead keys exceptions
3402 \end_layout
3403
3404 \begin_layout Standard
3405 To define key-to-key or key-to-string translation, use this command:
3406 \end_layout
3407
3408 \begin_layout Quotation
3409 \begin_inset Flex Code
3410 status collapsed
3411
3412 \begin_layout Plain Layout
3413
3414 \backslash
3415 kmap
3416 \end_layout
3417
3418 \end_inset
3419
3420  
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 key
3426 \end_layout
3427
3428 \end_inset
3429
3430  outstring 
3431 \end_layout
3432
3433 \begin_layout Standard
3434 where 
3435 \begin_inset Flex Code
3436 status collapsed
3437
3438 \begin_layout Plain Layout
3439 key
3440 \end_layout
3441
3442 \end_inset
3443
3444  is the key to be translated and 
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449 outstring
3450 \end_layout
3451
3452 \end_inset
3453
3454  is the string to be inserted into the document.
3455  To define dead keys, use:
3456 \end_layout
3457
3458 \begin_layout Quotation
3459 \begin_inset Flex Code
3460 status collapsed
3461
3462 \begin_layout Plain Layout
3463
3464 \backslash
3465 kmod
3466 \end_layout
3467
3468 \end_inset
3469
3470  
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 key
3476 \end_layout
3477
3478 \end_inset
3479
3480  deadkey
3481 \end_layout
3482
3483 \begin_layout Standard
3484 where 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 key
3490 \end_layout
3491
3492 \end_inset
3493
3494  is a keyboard key and 
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499 deadkey
3500 \end_layout
3501
3502 \end_inset
3503
3504  is dead key name.
3505  The following dead keys are supported (shortcut name is in parentheses):
3506 \end_layout
3507
3508 \begin_layout Quotation
3509
3510 \emph on
3511 Name
3512 \begin_inset space \hfill{}
3513 \end_inset
3514
3515 Example
3516 \end_layout
3517
3518 \begin_layout Quotation
3519 acute (acu)
3520 \begin_inset space \hfill{}
3521 \end_inset
3522
3523
3524 \lang english
3525 áéíóú
3526 \end_layout
3527
3528 \begin_layout Quotation
3529 grave (gra)
3530 \begin_inset space \hfill{}
3531 \end_inset
3532
3533
3534 \lang english
3535 àèìòù
3536 \end_layout
3537
3538 \begin_layout Quotation
3539 macron (mac)
3540 \begin_inset space \hfill{}
3541 \end_inset
3542
3543
3544 \lang english
3545  ō
3546 \end_layout
3547
3548 \begin_layout Quotation
3549 tilde (til)
3550 \begin_inset space \hfill{}
3551 \end_inset
3552
3553
3554 \lang english
3555 ñÑ
3556 \end_layout
3557
3558 \begin_layout Quotation
3559 underbar (underb)
3560 \begin_inset space \hfill{}
3561 \end_inset
3562
3563
3564 \begin_inset ERT
3565 status open
3566
3567 \begin_layout Plain Layout
3568
3569
3570 \backslash
3571 b o
3572 \end_layout
3573
3574 \end_inset
3575
3576
3577 \end_layout
3578
3579 \begin_layout Quotation
3580 cedilla (ced)
3581 \begin_inset space \hfill{}
3582 \end_inset
3583
3584
3585 \lang english
3586 çÇ
3587 \end_layout
3588
3589 \begin_layout Quotation
3590 underdot (underd)
3591 \begin_inset space \hfill{}
3592 \end_inset
3593
3594
3595 \begin_inset ERT
3596 status open
3597
3598 \begin_layout Plain Layout
3599
3600
3601 \backslash
3602 d o
3603 \end_layout
3604
3605 \end_inset
3606
3607
3608 \end_layout
3609
3610 \begin_layout Quotation
3611 circumflex (circu)
3612 \begin_inset space \hfill{}
3613 \end_inset
3614
3615
3616 \lang english
3617 âêîôû
3618 \end_layout
3619
3620 \begin_layout Quotation
3621 circle (circl)
3622 \begin_inset space \hfill{}
3623 \end_inset
3624
3625
3626 \lang english
3627 ÅůŮ
3628 \end_layout
3629
3630 \begin_layout Quotation
3631 tie (tie)
3632 \begin_inset space \hfill{}
3633 \end_inset
3634
3635
3636 \begin_inset ERT
3637 status open
3638
3639 \begin_layout Plain Layout
3640
3641
3642 \backslash
3643 t o
3644 \end_layout
3645
3646 \end_inset
3647
3648
3649 \end_layout
3650
3651 \begin_layout Quotation
3652 breve (bre)
3653 \begin_inset space \hfill{}
3654 \end_inset
3655
3656
3657 \lang english
3658 ă
3659 \lang japanese
3660
3661 \begin_inset ERT
3662 status open
3663
3664 \begin_layout Plain Layout
3665
3666
3667 \backslash
3668 u o
3669 \end_layout
3670
3671 \end_inset
3672
3673
3674 \end_layout
3675
3676 \begin_layout Quotation
3677 caron (car)
3678 \begin_inset space \hfill{}
3679 \end_inset
3680
3681
3682 \lang english
3683 čšž
3684 \end_layout
3685
3686 \begin_layout Quotation
3687 hungarian umlaut (hug)
3688 \begin_inset space \hfill{}
3689 \end_inset
3690
3691
3692 \lang english
3693 őű
3694 \end_layout
3695
3696 \begin_layout Quotation
3697 umlaut (uml)
3698 \begin_inset space \hfill{}
3699 \end_inset
3700
3701
3702 \lang english
3703 äöü
3704 \end_layout
3705
3706 \begin_layout Quotation
3707 dot (dot)
3708 \begin_inset space \hfill{}
3709 \end_inset
3710
3711
3712 \lang english
3713 ż
3714 \lang japanese
3715
3716 \begin_inset ERT
3717 status open
3718
3719 \begin_layout Plain Layout
3720
3721
3722 \backslash
3723 .s
3724 \end_layout
3725
3726 \end_inset
3727
3728
3729 \end_layout
3730
3731 \begin_layout Standard
3732 Since in many international keyboards there are exceptions to what some
3733  dead keys should do, you can define them using
3734 \end_layout
3735
3736 \begin_layout Quotation
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741
3742 \backslash
3743 kxmod
3744 \end_layout
3745
3746 \end_inset
3747
3748  deadkey key outstring
3749 \end_layout
3750
3751 \begin_layout Standard
3752 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3753 , so you put in
3754 \end_layout
3755
3756 \begin_layout Quotation
3757 \begin_inset Flex Code
3758 status collapsed
3759
3760 \begin_layout Plain Layout
3761
3762 \backslash
3763 kxmod
3764 \end_layout
3765
3766 \end_inset
3767
3768  caron o "
3769 \backslash
3770 ^o"
3771 \end_layout
3772
3773 \begin_layout Standard
3774 to make it work correctly.
3775  Also, you have to define as exceptions dead keys over i and j, to remove
3776  the dot from them before inserting an accent mark.
3777  I will change this when the time comes, but so far I haven't had time.
3778 \end_layout
3779
3780 \begin_layout Standard
3781 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3782  double backslash.
3783  Also, quotes and 
3784 \begin_inset Flex Code
3785 status collapsed
3786
3787 \begin_layout Plain Layout
3788 #
3789 \end_layout
3790
3791 \end_inset
3792
3793  have different meaning.
3794  
3795 \begin_inset Flex Code
3796 status collapsed
3797
3798 \begin_layout Plain Layout
3799 #
3800 \end_layout
3801
3802 \end_inset
3803
3804  marks comments, quotes start and end \SpecialChar LaTeX
3805 -style commands.
3806  To enter quote, you'll need to use 
3807 \begin_inset Flex Code
3808 status collapsed
3809
3810 \begin_layout Plain Layout
3811
3812 \backslash
3813 "
3814 \end_layout
3815
3816 \end_inset
3817
3818 , to enter 
3819 \begin_inset Flex Code
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 #
3824 \end_layout
3825
3826 \end_inset
3827
3828 , use 
3829 \begin_inset Flex Code
3830 status collapsed
3831
3832 \begin_layout Plain Layout
3833
3834 \backslash
3835 #
3836 \end_layout
3837
3838 \end_inset
3839
3840 .
3841 \end_layout
3842
3843 \begin_layout Standard
3844 If you make a keyboard description file that works for your language, please
3845  mail it to me, so I can include it in the next keymap distribution.
3846 \end_layout
3847
3848 \begin_layout Standard
3849 More keywords will be supported in keymap configuration file in future,
3850  like
3851 \end_layout
3852
3853 \begin_layout Itemize
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858
3859 \backslash
3860 kinclude filename
3861 \end_layout
3862
3863 \end_inset
3864
3865
3866 \emph on
3867
3868 \begin_inset space \hfill{}
3869 \end_inset
3870
3871
3872 \begin_inset Flex Code
3873 status collapsed
3874
3875 \begin_layout Plain Layout
3876 include
3877 \end_layout
3878
3879 \end_inset
3880
3881  another file
3882 \end_layout
3883
3884 \begin_layout Itemize
3885 \begin_inset Flex Code
3886 status collapsed
3887
3888 \begin_layout Plain Layout
3889
3890 \backslash
3891 kprog program
3892 \end_layout
3893
3894 \end_inset
3895
3896
3897 \emph on
3898
3899 \begin_inset space \hfill{}
3900 \end_inset
3901
3902
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 define
3908 \end_layout
3909
3910 \end_inset
3911
3912  an external keymap translation program 
3913 \end_layout
3914
3915 \begin_layout Standard
3916 Also, it should look into 
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 lyxrc
3922 \end_layout
3923
3924 \end_inset
3925
3926  file for defaults, too (for example, a 
3927 \begin_inset Flex Code
3928 status collapsed
3929
3930 \begin_layout Plain Layout
3931
3932 \backslash
3933 kinclude
3934 \end_layout
3935
3936 \end_inset
3937
3938  option to include default keyboard).
3939 \end_layout
3940
3941 \end_inset
3942
3943
3944 \end_layout
3945
3946 \begin_layout Section
3947 国際キー配列
3948 \begin_inset CommandInset label
3949 LatexCommand label
3950 name "sec:国際キー配列"
3951
3952 \end_inset
3953
3954
3955 \end_layout
3956
3957 \begin_layout Standard
3958 \begin_inset Note Note
3959 status open
3960
3961 \begin_layout Plain Layout
3962 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3963 \end_layout
3964
3965 \begin_layout Plain Layout
3966 (RH)
3967 \end_layout
3968
3969 \end_inset
3970
3971
3972 \end_layout
3973
3974 \begin_layout Standard
3975 以下の2節では、
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 .kmap
3981 \end_layout
3982
3983 \end_inset
3984
3985 および
3986 \begin_inset Flex Code
3987 status collapsed
3988
3989 \begin_layout Plain Layout
3990 .cdef
3991 \end_layout
3992
3993 \end_inset
3994
3995 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3996 \end_layout
3997
3998 \begin_layout Subsection
3999 .kmapファイル
4000 \end_layout
4001
4002 \begin_layout Standard
4003 \begin_inset Flex Code
4004 status collapsed
4005
4006 \begin_layout Plain Layout
4007 .kmap
4008 \end_layout
4009
4010 \end_inset
4011
4012 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
4013 \begin_inset Flex Code
4014 status collapsed
4015
4016 \begin_layout Plain Layout
4017 .kmap
4018 \end_layout
4019
4020 \end_inset
4021
4022 ファイルは、以下の各項で説明するように、
4023 \begin_inset Flex Code
4024 status collapsed
4025
4026 \begin_layout Plain Layout
4027 kmap
4028 \end_layout
4029
4030 \end_inset
4031
4032
4033 \begin_inset Flex Code
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037 kmod
4038 \end_layout
4039
4040 \end_inset
4041
4042
4043 \begin_inset Flex Code
4044 status collapsed
4045
4046 \begin_layout Plain Layout
4047 ksmod
4048 \end_layout
4049
4050 \end_inset
4051
4052
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 kcomb
4058 \end_layout
4059
4060 \end_inset
4061
4062 のキーワードを定義します。
4063 \end_layout
4064
4065 \begin_layout Labeling
4066 \labelwidthstring 00.00.0000
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 kmap
4072 \end_layout
4073
4074 \end_inset
4075
4076  文字を文字列に割り当てる
4077 \end_layout
4078
4079 \begin_layout LyX-Code
4080
4081 \backslash
4082 kmap 
4083 \family roman
4084 \emph on
4085 文字
4086 \family default
4087 \emph default
4088  
4089 \family roman
4090 \emph on
4091 文字列
4092 \end_layout
4093
4094 \begin_layout Standard
4095 これは、
4096 \emph on
4097 文字
4098 \emph default
4099
4100 \emph on
4101 文字列
4102 \emph default
4103 に割り当てます。
4104 \emph on
4105 文字列
4106 \emph default
4107 中では、二重引用符(")とバックスラッシュ(
4108 \backslash
4109 )は、前にバックスラッシュ(
4110 \backslash
4111 )を付けてエスケープしなくてはならないことに注意してください。
4112 \end_layout
4113
4114 \begin_layout Standard
4115 \begin_inset Flex MenuItem
4116 status collapsed
4117
4118 \begin_layout Plain Layout
4119 &
4120 \end_layout
4121
4122 \end_inset
4123
4124 を打鍵すると
4125 \begin_inset Flex MenuItem
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129 /
4130 \end_layout
4131
4132 \end_inset
4133
4134 記号が出力される
4135 \begin_inset Flex MenuItem
4136 status collapsed
4137
4138 \begin_layout Plain Layout
4139 kmap
4140 \end_layout
4141
4142 \end_inset
4143
4144 ステートメントを、一例としてあげると、
4145 \end_layout
4146
4147 \begin_layout LyX-Code
4148
4149 \backslash
4150 kmap & /
4151 \end_layout
4152
4153 \begin_layout Standard
4154 のようになります。
4155 \end_layout
4156
4157 \begin_layout Labeling
4158 \labelwidthstring 00.00.0000
4159 \begin_inset Flex Code
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163 kmod
4164 \end_layout
4165
4166 \end_inset
4167
4168  アクセント文字を指定する
4169 \end_layout
4170
4171 \begin_layout LyX-Code
4172
4173 \backslash
4174 kmod 
4175 \family roman
4176 \emph on
4177 文字 アクセント 許可文字
4178 \end_layout
4179
4180 \begin_layout Standard
4181 これは
4182 \emph on
4183 文字
4184 \emph default
4185
4186 \emph on
4187 許可文字
4188 \emph default
4189 のアクセントとするものです。これはデッドキー
4190 \begin_inset Foot
4191 status collapsed
4192
4193 \begin_layout Plain Layout
4194
4195 \emph on
4196 デッドキー
4197 \emph default
4198 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4199 \emph on
4200 ä
4201 \emph default
4202 のようなウムラウトのついた文字は、このようにして出すことができます。
4203 \end_layout
4204
4205 \end_inset
4206
4207 機構です。
4208 \end_layout
4209
4210 \begin_layout Standard
4211
4212 \emph on
4213 文字
4214 \emph default
4215 を打鍵してから
4216 \emph on
4217 許可文字
4218 \emph default
4219 にないキーを打鍵すると、
4220 \emph on
4221 文字
4222 \emph default
4223 の後に許可文字ではないその文字が出力として表示されます。
4224 \begin_inset Flex MenuItem
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228 Backspace
4229 \end_layout
4230
4231 \end_inset
4232
4233 はデッドキーを取り消しますので、
4234 \emph on
4235 文字
4236 \emph default
4237
4238 \begin_inset Flex MenuItem
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242 Backspace
4243 \end_layout
4244
4245 \end_inset
4246
4247 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4248 \end_layout
4249
4250 \begin_layout Standard
4251 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4252 \end_layout
4253
4254 \begin_layout LyX-Code
4255
4256 \backslash
4257 kmod ' acute aeiouAEIOU
4258 \end_layout
4259
4260 \begin_layout Labeling
4261 \labelwidthstring 00.00.0000
4262 \begin_inset Flex Code
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 ksmod
4267 \end_layout
4268
4269 \end_inset
4270
4271  アクセント文字に例外を指定する
4272 \end_layout
4273
4274 \begin_layout LyX-Code
4275
4276 \backslash
4277 kxmod  
4278 \family roman
4279 \emph on
4280 アクセント 文字 結果
4281 \end_layout
4282
4283 \begin_layout Standard
4284 これは
4285 \emph on
4286 文字
4287 \emph default
4288 上の
4289 \emph on
4290 アクセント
4291 \emph default
4292 について例外を指定するものです。ここで
4293 \emph on
4294 アクセント
4295 \emph default
4296 には、前出の
4297 \begin_inset Flex Code
4298 status collapsed
4299
4300 \begin_layout Plain Layout
4301
4302 \backslash
4303 kmod
4304 \end_layout
4305
4306 \end_inset
4307
4308 宣言で打鍵キーを既に割り当てられてなくてはならず、
4309 \emph on
4310 文字
4311 \emph default
4312
4313 \emph on
4314 アクセント
4315 \emph default
4316
4317 \emph on
4318 許可文字
4319 \emph default
4320 の集合に属していてはなりません。こうして
4321 \emph on
4322 アクセント
4323 \emph default
4324
4325 \emph on
4326 文字
4327 \emph default
4328 の順に入力すると、
4329 \emph on
4330 結果
4331 \emph default
4332 が出力されるようになります。
4333 \begin_inset Flex Code
4334 status collapsed
4335
4336 \begin_layout Plain Layout
4337 .kmap
4338 \end_layout
4339
4340 \end_inset
4341
4342 ファイルにこの宣言がない場合には、
4343 \emph on
4344 アクセント
4345 \emph default
4346
4347 \emph on
4348 文字
4349 \emph default
4350 と入力すると、
4351 \emph on
4352 アクセントキー
4353 \emph default
4354
4355 \emph on
4356 文字
4357 \emph default
4358
4359 \emph on
4360 アクセントキー
4361 \emph default
4362
4363 \begin_inset Flex Code
4364 status collapsed
4365
4366 \begin_layout Plain Layout
4367
4368 \backslash
4369 kmod
4370 \end_layout
4371
4372 \end_inset
4373
4374 宣言の最初の変数)と出力されます。
4375 \end_layout
4376
4377 \begin_layout Standard
4378 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4379 \end_layout
4380
4381 \begin_layout LyX-Code
4382
4383 \backslash
4384 kxmod acute i "
4385 \backslash
4386
4387 \backslash
4388 '{
4389 \backslash
4390
4391 \backslash
4392 i}"
4393 \end_layout
4394
4395 \begin_layout Labeling
4396 \labelwidthstring 00.00.0000
4397 \begin_inset Flex Code
4398 status collapsed
4399
4400 \begin_layout Plain Layout
4401 kcomb
4402 \end_layout
4403
4404 \end_inset
4405
4406  2つのアクセント文字を結合する
4407 \end_layout
4408
4409 \begin_layout LyX-Code
4410
4411 \backslash
4412 kcomb 
4413 \family roman
4414 \emph on
4415 アクセント1 アクセント2 許可文字
4416 \end_layout
4417
4418 \begin_layout Standard
4419 これはなかなか難解になってきます。これは
4420 \emph on
4421 アクセント1
4422 \emph default
4423
4424 \emph on
4425 アクセント2
4426 \emph default
4427 を(この順番で)結びつけて、
4428 \emph on
4429 許可文字
4430 \emph default
4431 に効果を及ぼすようにします。
4432 \emph on
4433 アクセント1
4434 \emph default
4435
4436 \emph on
4437 アクセント2
4438 \emph default
4439 の打鍵キーは、ファイル内のこのコマンド
4440 \emph on
4441 よりも前に
4442 \emph default
4443
4444 \begin_inset Flex Code
4445 status collapsed
4446
4447 \begin_layout Plain Layout
4448
4449 \backslash
4450 kmod
4451 \end_layout
4452
4453 \end_inset
4454
4455 コマンドで設定されていなくてはなりません。
4456 \end_layout
4457
4458 \begin_layout Standard
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 greek.kmap
4464 \end_layout
4465
4466 \end_inset
4467
4468 ファイル上にある例をとってみましょう。
4469 \end_layout
4470
4471 \begin_layout LyX-Code
4472
4473 \backslash
4474 kmod ; acute aeioyvhAEIOYVH 
4475 \backslash
4476 kmod : umlaut iyIY 
4477 \backslash
4478 kcomb acute umlaut iyIY
4479 \end_layout
4480
4481 \begin_layout Standard
4482 これは
4483 \begin_inset Flex MenuItem
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487 ;:i
4488 \end_layout
4489
4490 \end_inset
4491
4492 を押すと
4493 \begin_inset Flex Code
4494 status collapsed
4495
4496 \begin_layout Plain Layout
4497
4498 \backslash
4499 '{
4500 \backslash
4501 "{i}}
4502 \end_layout
4503
4504 \end_inset
4505
4506 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4507 \begin_inset Flex MenuItem
4508 status collapsed
4509
4510 \begin_layout Plain Layout
4511 ;: Backspace i
4512 \end_layout
4513
4514 \end_inset
4515
4516 と押した場合には、
4517 \begin_inset Flex Code
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521
4522 \backslash
4523 '{i}
4524 \end_layout
4525
4526 \end_inset
4527
4528 となります。
4529 \end_layout
4530
4531 \begin_layout Subsection
4532 .cdefファイル
4533 \end_layout
4534
4535 \begin_layout Standard
4536 \begin_inset Flex Code
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 .kmap
4541 \end_layout
4542
4543 \end_inset
4544
4545 による割り当てが行われた後、
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 .cdef
4551 \end_layout
4552
4553 \end_inset
4554
4555 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4556 頒布版には、現在のところ、少なくとも
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561 iso8859-1.cdef
4562 \end_layout
4563
4564 \end_inset
4565
4566 ファイルと
4567 \begin_inset Flex Code
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 iso8859-2.cdef
4572 \end_layout
4573
4574 \end_inset
4575
4576 ファイルが含まれています。
4577 \end_layout
4578
4579 \begin_layout Standard
4580 一般的に
4581 \begin_inset Flex Code
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585 .cdef
4586 \end_layout
4587
4588 \end_inset
4589
4590 ファイルは、
4591 \end_layout
4592
4593 \begin_layout LyX-Code
4594
4595 \family roman
4596 \emph on
4597 セット中の文字番号
4598 \family default
4599 \emph default
4600  
4601 \family roman
4602 \emph on
4603  文字列
4604 \end_layout
4605
4606 \begin_layout Standard
4607 という形の宣言の羅列です。たとえば、
4608 \begin_inset Flex MenuItem
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612
4613 \backslash
4614 '{e}
4615 \end_layout
4616
4617 \end_inset
4618
4619 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4620 \end_layout
4621
4622 \begin_layout LyX-Code
4623 233 "
4624 \backslash
4625
4626 \backslash
4627 '{e}"
4628 \end_layout
4629
4630 \begin_layout Standard
4631 ここで、
4632 \emph on
4633 文字列
4634 \emph default
4635 中の
4636 \begin_inset Flex Code
4637 status collapsed
4638
4639 \begin_layout Plain Layout
4640
4641 \backslash
4642
4643 \end_layout
4644
4645 \end_inset
4646
4647
4648 \begin_inset Flex Code
4649 status collapsed
4650
4651 \begin_layout Plain Layout
4652 "
4653 \end_layout
4654
4655 \end_inset
4656
4657 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4658 \begin_inset Flex Code
4659 status collapsed
4660
4661 \begin_layout Plain Layout
4662 iso-8859-7.cdef
4663 \end_layout
4664
4665 \end_inset
4666
4667 ファイルには、
4668 \end_layout
4669
4670 \begin_layout LyX-Code
4671 192 "
4672 \backslash
4673
4674 \backslash
4675 '{
4676 \backslash
4677
4678 \backslash
4679
4680 \backslash
4681 "{i}}"
4682 \begin_inset Newline newline
4683 \end_inset
4684
4685 192 "
4686 \backslash
4687
4688 \backslash
4689
4690 \backslash
4691 "{
4692 \backslash
4693
4694 \backslash
4695 '{i}}"
4696 \end_layout
4697
4698 \begin_layout Standard
4699 という例があります。\SpecialChar LyX
4700 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4701 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4702 \end_layout
4703
4704 \begin_layout Subsection
4705 デッドキー
4706 \end_layout
4707
4708 \begin_layout Standard
4709 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4710 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4711 \end_layout
4712
4713 \begin_layout Standard
4714 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4715 \begin_inset Flex Code
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719 lyxrc
4720 \end_layout
4721
4722 \end_inset
4723
4724 ファイル中で、
4725 \begin_inset Flex MenuItem
4726 status collapsed
4727
4728 \begin_layout Plain Layout
4729 ^
4730 \end_layout
4731
4732 \end_inset
4733
4734 キー(すなわち
4735 \begin_inset Flex MenuItem
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739 Shift-6
4740 \end_layout
4741
4742 \end_inset
4743
4744 キー)を、\SpecialChar LyX
4745 コマンドの
4746 \begin_inset Flex Code
4747 status collapsed
4748
4749 \begin_layout Plain Layout
4750 accent-circumflex
4751 \end_layout
4752
4753 \end_inset
4754
4755 に結びつけることができます。すると
4756 \begin_inset Flex MenuItem
4757 status collapsed
4758
4759 \begin_layout Plain Layout
4760 ^
4761 \end_layout
4762
4763 \end_inset
4764
4765 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4766 \begin_inset Flex MenuItem
4767 status collapsed
4768
4769 \begin_layout Plain Layout
4770 ^e
4771 \end_layout
4772
4773 \end_inset
4774
4775 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4776 \begin_inset Flex MenuItem
4777 status collapsed
4778
4779 \begin_layout Plain Layout
4780 ^t
4781 \end_layout
4782
4783 \end_inset
4784
4785 」と打鍵したならば、「
4786 \begin_inset Flex MenuItem
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 t
4791 \end_layout
4792
4793 \end_inset
4794
4795 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4796 はビープを鳴らして文句を付けます。デッドキーの後に
4797 \begin_inset Flex MenuItem
4798 status collapsed
4799
4800 \begin_layout Plain Layout
4801 スペース
4802 \end_layout
4803
4804 \end_inset
4805
4806 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4807 あります。たとえば、
4808 \begin_inset Flex MenuItem
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812 ,キー
4813 \end_layout
4814
4815 \end_inset
4816
4817 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4818 \end_layout
4819
4820 \begin_layout Standard
4821 デッドキーを割り当てるのによく用いられる方法は、
4822 \begin_inset Flex MenuItem
4823 status collapsed
4824
4825 \begin_layout Plain Layout
4826 Meta-
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \begin_inset Flex MenuItem
4833 status collapsed
4834
4835 \begin_layout Plain Layout
4836 Ctrl-
4837 \end_layout
4838
4839 \end_inset
4840
4841
4842 \begin_inset Flex MenuItem
4843 status collapsed
4844
4845 \begin_layout Plain Layout
4846 Shift-
4847 \end_layout
4848
4849 \end_inset
4850
4851 キーを、「
4852 \begin_inset Flex MenuItem
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856 ~
4857 \end_layout
4858
4859 \end_inset
4860
4861 」・「
4862 \begin_inset Flex MenuItem
4863 status collapsed
4864
4865 \begin_layout Plain Layout
4866 ,
4867 \end_layout
4868
4869 \end_inset
4870
4871 」・「
4872 \begin_inset Flex MenuItem
4873 status collapsed
4874
4875 \begin_layout Plain Layout
4876 ^
4877 \end_layout
4878
4879 \end_inset
4880
4881 」のようなアクセントと一緒に用いる方法です。また、
4882 \begin_inset Flex Code
4883 status collapsed
4884
4885 \begin_layout Plain Layout
4886 xmodmap
4887 \end_layout
4888
4889 \end_inset
4890
4891
4892 \begin_inset Flex Code
4893 status collapsed
4894
4895 \begin_layout Plain Layout
4896 xkeycaps
4897 \end_layout
4898
4899 \end_inset
4900
4901 を使って、特別な
4902 \begin_inset Flex Code
4903 status collapsed
4904
4905 \begin_layout Plain Layout
4906 Mode_Switch
4907 \end_layout
4908
4909 \end_inset
4910
4911 キーを設定する方法もあります。
4912 \begin_inset Flex Code
4913 status collapsed
4914
4915 \begin_layout Plain Layout
4916 Mode_Switch
4917 \end_layout
4918
4919 \end_inset
4920
4921 キーは、ちょうど
4922 \begin_inset Flex MenuItem
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926 Shift
4927 \end_layout
4928
4929 \end_inset
4930
4931 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 usldead_cedilla
4937 \end_layout
4938
4939 \end_inset
4940
4941 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
4942 コマンドに割り当てることもできます
4943 \begin_inset Foot
4944 status collapsed
4945
4946 \begin_layout Plain Layout
4947
4948 \noun on
4949 John Weiss
4950 \noun default
4951 からの註:これはまさに私が、自分の
4952 \begin_inset Flex Code
4953 status collapsed
4954
4955 \begin_layout Plain Layout
4956 ~/.lyx/lyxrc
4957 \end_layout
4958
4959 \end_inset
4960
4961
4962 \begin_inset Flex Code
4963 status collapsed
4964
4965 \begin_layout Plain Layout
4966 ~/.xmodmap
4967 \end_layout
4968
4969 \end_inset
4970
4971 で行っていることです。私は、
4972 \begin_inset Flex MenuItem
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 Scroll
4977 \begin_inset space ~
4978 \end_inset
4979
4980 Lock
4981 \end_layout
4982
4983 \end_inset
4984
4985 キーを
4986 \begin_inset Flex Code
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 Mode_Shift
4991 \end_layout
4992
4993 \end_inset
4994
4995 に仕立てて、多数の
4996 \begin_inset Flex Code
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 usldead_*
5001 \end_layout
5002
5003 \end_inset
5004
5005 シンボリックキーを
5006 \begin_inset Flex MenuItem
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 Scroll
5011 \begin_inset space ~
5012 \end_inset
5013
5014 Lock-^
5015 \end_layout
5016
5017 \end_inset
5018
5019
5020 \begin_inset Flex MenuItem
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024 Scroll
5025 \begin_inset space ~
5026 \end_inset
5027
5028 Lock-~
5029 \end_layout
5030
5031 \end_inset
5032
5033 などに割り当てています。私はこの方法でアクセント文字を入力しています。
5034 \end_layout
5035
5036 \end_inset
5037
5038 。この
5039 \begin_inset Flex Code
5040 status collapsed
5041
5042 \begin_layout Plain Layout
5043 Mode_Switch
5044 \end_layout
5045
5046 \end_inset
5047
5048 キーには、
5049 \begin_inset Flex MenuItem
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053 Ctrl-
5054 \end_layout
5055
5056 \end_inset
5057
5058 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5059 コマンドについては、
5060 \emph on
5061 \SpecialChar LyX
5062 関数説明書
5063 \emph default
5064
5065 \begin_inset Flex Code
5066 status collapsed
5067
5068 \begin_layout Plain Layout
5069 LFUN_ACCENT_*
5070 \end_layout
5071
5072 \end_inset
5073
5074 の項をご覧ください。ここには完備した一覧があります。
5075 \end_layout
5076
5077 \begin_layout Subsection
5078 自分の言語設定を保存する
5079 \end_layout
5080
5081 \begin_layout Standard
5082 \begin_inset Flex MenuItem
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086 ツール\SpecialChar menuseparator
5087 設定
5088 \end_layout
5089
5090 \end_inset
5091
5092 ダイアログを使えば、\SpecialChar LyX
5093 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5094 \end_layout
5095
5096 \begin_layout Chapter
5097 文書クラス・レイアウト・ひな型の新規導入
5098 \begin_inset CommandInset label
5099 LatexCommand label
5100 name "cha:新規文書を導入"
5101
5102 \end_inset
5103
5104
5105 \begin_inset Argument 1
5106 status collapsed
5107
5108 \begin_layout Plain Layout
5109 文書クラスを新規に導入する
5110 \end_layout
5111
5112 \end_inset
5113
5114
5115 \end_layout
5116
5117 \begin_layout Standard
5118 この章では、新しく\SpecialChar LyX
5119 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5120 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5121 します。
5122 \end_layout
5123
5124 \begin_layout Standard
5125 まず、\SpecialChar LyX
5126 と\SpecialChar LaTeX
5127 の間の関係をどのように考えるべきか、若干の註釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5128 は、La\SpecialChar TeX
5129 について何も知らないと
5130 云うことです。実際のところ、\SpecialChar LyX
5131 の観点からは、\SpecialChar LaTeX
5132 は、\SpecialChar LyX
5133 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5134 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5135 は、とくに重要な形式ですが、\SpecialChar LyX
5136 がLa\SpecialChar TeX
5137 について持っている情報のほとんどは、実はプログラム本体には含まれて
5138 いないのです
5139 \begin_inset Foot
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143 過度に複雑なため、\SpecialChar LyX
5144 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5145 \end_layout
5146
5147 \end_inset
5148
5149 。このような情報は、
5150 \begin_inset Flex Code
5151 status collapsed
5152
5153 \begin_layout Plain Layout
5154 article.cls
5155 \end_layout
5156
5157 \end_inset
5158
5159 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5160 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5161 が知っていることは、レイア
5162 ウトファイルの中にあります。
5163 \end_layout
5164
5165 \begin_layout Standard
5166 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5167 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5168 構成体・DocBook構成体・XHTML構成体との
5169 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5170
5171 \begin_inset Flex Code
5172 status collapsed
5173
5174 \begin_layout Plain Layout
5175 article.cls
5176 \end_layout
5177
5178 \end_inset
5179
5180 について知っていることのほとんど総ては、
5181 \begin_inset Flex Code
5182 status collapsed
5183
5184 \begin_layout Plain Layout
5185 article.layout
5186 \end_layout
5187
5188 \end_inset
5189
5190 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5191 としては、
5192 \begin_inset Flex Code
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196 article.layout
5197 \end_layout
5198
5199 \end_inset
5200
5201
5202 \begin_inset Flex Code
5203 status collapsed
5204
5205 \begin_layout Plain Layout
5206 book.layout
5207 \end_layout
5208
5209 \end_inset
5210
5211 や、文書クラス用の他のレイアウトファイルに取り込まれている
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216 stdsections.inc
5217 \end_layout
5218
5219 \end_inset
5220
5221 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226 stdsections.inc
5227 \end_layout
5228
5229 \end_inset
5230
5231 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5232 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5233 に知らせるものです。基本的に
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 article.layout
5239 \end_layout
5240
5241 \end_inset
5242
5243 ファイルは、これらの
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248 std*.inc
5249 \end_layout
5250
5251 \end_inset
5252
5253 ファイルを取り込んでいるだけのものです。
5254 \end_layout
5255
5256 \begin_layout Standard
5257 しかしながら、\SpecialChar LyX
5258 –\SpecialChar LaTeX
5259 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5260 構成体自身が画面上にどのように表
5261 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5262 ます。ある段落様式を\SpecialChar LaTeX
5263 に翻訳する仕方を\SpecialChar LyX
5264 に指示することは、その表示の仕方を\SpecialChar LyX
5265 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5266 に指示することは、その段落様
5267 式をどのように\SpecialChar LaTeX
5268 に翻訳するかを\SpecialChar LyX
5269 に指示するものではありません(ましてや\SpecialChar LaTeX
5270 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5271 構成体を定義する際には、(
5272 i)
5273 \begin_inset space ~
5274 \end_inset
5275
5276 \SpecialChar LaTeX
5277 にどのように翻訳するかを\SpecialChar LyX
5278 に指示する、(ii)
5279 \begin_inset space ~
5280 \end_inset
5281
5282 それをどのように表示するかを\SpecialChar LyX
5283 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5284 \end_layout
5285
5286 \begin_layout Standard
5287 もちろん、\SpecialChar LyX
5288 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5289 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5290 力するにあたって、当該段落を\SpecialChar LyX
5291 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5292 が内部的に行うことと、外部的に行う物事の間の区
5293 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5294 \begin_inset CommandInset ref
5295 LatexCommand ref
5296 reference "sec:XHTML出力のタグ"
5297
5298 \end_inset
5299
5300 節をご覧ください。
5301 \end_layout
5302
5303 \begin_layout Section
5304 新しい\SpecialChar LaTeX
5305 ファイルの導入
5306 \end_layout
5307
5308 \begin_layout Standard
5309 頒布版によっては、\SpecialChar LyX
5310 で使いたい\SpecialChar LaTeX
5311 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5312 パッケージである、Foil\SpecialChar TeX
5313 がないかもしれません。\SpecialChar TeX
5314 Live(2008年以降)やMiK\SpecialChar TeX
5315 のような最近の\SpecialChar LaTeX
5316 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5317 ースが用意されています。たとえば、MiK\SpecialChar TeX
5318 では、付属の「Package
5319 \begin_inset space ~
5320 \end_inset
5321
5322 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5323 ださい。
5324 \end_layout
5325
5326 \begin_layout Standard
5327 お使いの\SpecialChar LaTeX
5328 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5329 してください。
5330 \end_layout
5331
5332 \begin_layout Enumerate
5333 \begin_inset CommandInset href
5334 LatexCommand href
5335 name "CTAN"
5336 target "http://www.ctan.org/"
5337
5338 \end_inset
5339
5340 などから欲しいパッケージを入手してください。
5341 \end_layout
5342
5343 \begin_layout Enumerate
5344 パッケージに「
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349 .ins
5350 \end_layout
5351
5352 \end_inset
5353
5354 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5355 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5356 \begin_inset Flex Code
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360 latex foiltex.ins
5361 \end_layout
5362
5363 \end_inset
5364
5365 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5366 パッケージは圧縮されていないので、このステップは飛ばすこ
5367 とができます。
5368 \end_layout
5369
5370 \begin_layout Enumerate
5371 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5372 \begin_inset Separator parbreak
5373 \end_inset
5374
5375
5376 \end_layout
5377
5378 \begin_deeper
5379 \begin_layout Enumerate
5380 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5381 ツリーに導入し、そうでなければ「ユー
5382 ザー」\SpecialChar TeX
5383 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5384 \begin_inset Flex Code
5385 status collapsed
5386
5387 \begin_layout Plain Layout
5388 texmf.cnf
5389 \end_layout
5390
5391 \end_inset
5392
5393 ファイルを参照してください
5394 \begin_inset Foot
5395 status collapsed
5396
5397 \begin_layout Plain Layout
5398 このファイルは、通常
5399 \family sans
5400 $TEXMF/web2c
5401 \family default
5402 ディレクトリにありますが、コマンド
5403 \begin_inset Flex Code
5404 status collapsed
5405
5406 \begin_layout Plain Layout
5407 kpsewhich texmf.cnf
5408 \end_layout
5409
5410 \end_inset
5411
5412 を実行してその場所を見つけることもできます。
5413 \end_layout
5414
5415 \end_inset
5416
5417 。「ローカル」\SpecialChar TeX
5418 ツリーの場所は、
5419 \begin_inset Flex Code
5420 status collapsed
5421
5422 \begin_layout Plain Layout
5423 TEXMFLOCAL
5424 \end_layout
5425
5426 \end_inset
5427
5428 変数で定義されており、通常は
5429 \begin_inset Flex Code
5430 status collapsed
5431
5432 \begin_layout Plain Layout
5433 /usr/local/share/texmf/
5434 \end_layout
5435
5436 \end_inset
5437
5438
5439 \begin_inset Flex Code
5440 status collapsed
5441
5442 \begin_layout Plain Layout
5443 /usr/local/texlive/XXXX
5444 \end_layout
5445
5446 \end_inset
5447
5448  (XXXXは導入されている\SpecialChar TeX
5449 Live頒布版の年次)のような場所になっています。「ユーザー」\SpecialChar TeX
5450 ツリーの場所は、
5451 \begin_inset Flex Code
5452 status collapsed
5453
5454 \begin_layout Plain Layout
5455 TEXMFHOME
5456 \end_layout
5457
5458 \end_inset
5459
5460 で定義されており、通常は
5461 \begin_inset Flex Code
5462 status collapsed
5463
5464 \begin_layout Plain Layout
5465 $HOME/texmf/
5466 \end_layout
5467
5468 \end_inset
5469
5470
5471 \begin_inset Flex Code
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475 $HOME/.texliveXXXX
5476 \end_layout
5477
5478 \end_inset
5479
5480 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5481 、「ユーザー」ツリーにはこのような制限はありません。
5482 \begin_inset Newline newline
5483 \end_inset
5484
5485 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5486 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5487 \end_layout
5488
5489 \begin_layout Enumerate
5490 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5491 の導入されているフォルダのサブフォルダ
5492 \begin_inset Flex Code
5493 status collapsed
5494
5495 \begin_layout Plain Layout
5496 ~
5497 \backslash
5498 tex
5499 \backslash
5500 latex
5501 \end_layout
5502
5503 \end_inset
5504
5505 に移動します(MiK\SpecialChar TeX
5506 の既定値では、これは
5507 \begin_inset Flex Code
5508 status collapsed
5509
5510 \begin_layout Plain Layout
5511 ~:Programs
5512 \backslash
5513 MiKTeX
5514 \backslash
5515 tex
5516 \backslash
5517 latex
5518 \end_layout
5519
5520 \end_inset
5521
5522 です)
5523 \begin_inset Foot
5524 status open
5525
5526 \begin_layout Plain Layout
5527 これは、英語版でのみ正しいパスになっています。独語版では
5528 \begin_inset Flex Code
5529 status collapsed
5530
5531 \begin_layout Plain Layout
5532 ~:Programme
5533 \backslash
5534 MiKTeX
5535 \backslash
5536 tex
5537 \backslash
5538 latex
5539 \end_layout
5540
5541 \end_inset
5542
5543 となり、他の言語でも同様です。
5544 \end_layout
5545
5546 \end_inset
5547
5548 。ここに新規フォルダ
5549 \begin_inset Flex Code
5550 status collapsed
5551
5552 \begin_layout Plain Layout
5553 foiltex
5554 \end_layout
5555
5556 \end_inset
5557
5558 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5559 フォルダで同じ
5560 ことを行います。たとえばMiK\SpecialChar TeX
5561
5562 \begin_inset space ~
5563 \end_inset
5564
5565 2.8では、これはWinXP上では
5566 \begin_inset Newline newline
5567 \end_inset
5568
5569
5570 \begin_inset Flex Code
5571 status collapsed
5572
5573 \begin_layout Plain Layout
5574 ~:
5575 \backslash
5576 Documents and Settings
5577 \backslash
5578 <ユーザー名>
5579 \backslash
5580 Application Data
5581 \backslash
5582
5583 \end_layout
5584
5585 \end_inset
5586
5587
5588 \begin_inset Newline newline
5589 \end_inset
5590
5591
5592 \begin_inset Phantom HPhantom
5593 status open
5594
5595 \begin_layout Plain Layout
5596
5597 \family typewriter
5598 ~:
5599 \backslash
5600
5601 \end_layout
5602
5603 \end_inset
5604
5605
5606 \begin_inset Flex Code
5607 status collapsed
5608
5609 \begin_layout Plain Layout
5610 MiKTeX
5611 \backslash
5612 2.8
5613 \backslash
5614 tex
5615 \backslash
5616 latex
5617 \end_layout
5618
5619 \end_inset
5620
5621
5622 \begin_inset Newline newline
5623 \end_inset
5624
5625 フォルダ、WinVista上では
5626 \begin_inset Newline newline
5627 \end_inset
5628
5629
5630 \begin_inset Flex Code
5631 status collapsed
5632
5633 \begin_layout Plain Layout
5634 ~:
5635 \backslash
5636 Users
5637 \backslash
5638 <ユーザー名>
5639 \backslash
5640 AppData
5641 \backslash
5642 Roaming
5643 \backslash
5644 2.8
5645 \backslash
5646 MiKTeX
5647 \backslash
5648 tex
5649 \backslash
5650 latex
5651 \end_layout
5652
5653 \end_inset
5654
5655
5656 \begin_inset Newline newline
5657 \end_inset
5658
5659 フォルダになります。
5660 \end_layout
5661
5662 \end_deeper
5663 \begin_layout Enumerate
5664 ここまで来れば、あとは\SpecialChar LaTeX
5665 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5666 頒布版に依存します。
5667 \begin_inset Separator parbreak
5668 \end_inset
5669
5670
5671 \end_layout
5672
5673 \begin_deeper
5674 \begin_layout Enumerate
5675 \SpecialChar TeX
5676 Liveの場合には、コンソールから
5677 \begin_inset Flex Code
5678 status collapsed
5679
5680 \begin_layout Plain Layout
5681 texhash
5682 \end_layout
5683
5684 \end_inset
5685
5686 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5687 \end_layout
5688
5689 \begin_layout Enumerate
5690 MiK\SpecialChar TeX
5691 では、パッケージを全ユーザー用に導入した場合には、「Settings
5692 \begin_inset space ~
5693 \end_inset
5694
5695 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5696
5697 \end_layout
5698
5699 \end_deeper
5700 \begin_layout Enumerate
5701 最後に、\SpecialChar LyX
5702 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5703 からツール\SpecialChar menuseparator
5704 環境構成メニューを実行して、\SpecialChar LyX
5705 を再起動します。
5706 \end_layout
5707
5708 \begin_layout Standard
5709 これでパッケージが導入されました。この例では、文書クラス
5710 \begin_inset Flex Code
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714 Slides
5715 \begin_inset space ~
5716 \end_inset
5717
5718 (FoilTeX)
5719 \end_layout
5720
5721 \end_inset
5722
5723
5724 \begin_inset Flex MenuItem
5725 status collapsed
5726
5727 \begin_layout Plain Layout
5728 文書\SpecialChar menuseparator
5729 設定\SpecialChar menuseparator
5730 文書クラス
5731 \end_layout
5732
5733 \end_inset
5734
5735 で利用可能になっているはずです。
5736 \end_layout
5737
5738 \begin_layout Standard
5739 \begin_inset Flex MenuItem
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 文書\SpecialChar menuseparator
5744 設定\SpecialChar menuseparator
5745 文書クラス
5746 \end_layout
5747
5748 \end_inset
5749
5750 メニューに列挙されてもいない\SpecialChar LaTeX
5751 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5752 \end_layout
5753
5754 \begin_layout Section
5755 レイアウトファイルの型
5756 \end_layout
5757
5758 \begin_layout Standard
5759 この節は、レイアウト情報を含む各種\SpecialChar LyX
5760 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5761 がそれらをどのように
5762 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5763 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5764 \end_layout
5765
5766 \begin_layout Standard
5767 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5768 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5769 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5770 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5771 を出していますので、気軽に質問を投げかけてみてください。
5772 \end_layout
5773
5774 \begin_layout Standard
5775 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5776 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5777 文書クラス用の\SpecialChar LyX
5778 レイアウトを作ったり、
5779 他の人々にも有用なモジュールをお書きになった場合には、
5780 \begin_inset CommandInset href
5781 LatexCommand href
5782 name "LyX Wikiのレイアウトに関する節"
5783 target "http://wiki.lyx.org/Layouts/Layouts"
5784
5785 \end_inset
5786
5787 か、\SpecialChar LyX
5788 開発者メーリングリストに投稿して、\SpecialChar LyX
5789 頒布版に同梱することができるようにしてください
5790 \begin_inset Foot
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794 \SpecialChar LyX
5795 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5796 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5797 \end_layout
5798
5799 \end_inset
5800
5801
5802 \end_layout
5803
5804 \begin_layout Subsection
5805 レイアウトモジュール
5806 \begin_inset CommandInset label
5807 LatexCommand label
5808 name "subsec:レイアウトモジュール"
5809
5810 \end_inset
5811
5812
5813 \end_layout
5814
5815 \begin_layout Standard
5816 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5817 、それは
5818 \begin_inset Flex Code
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 .layout
5823 \end_layout
5824
5825 \end_inset
5826
5827 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5828 に提供するものを指します。しかしながら、\SpecialChar LyX
5829  1.6以降、レイアウト情報は、拡張子が
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 .module
5835 \end_layout
5836
5837 \end_inset
5838
5839 のレイアウト
5840 \emph on
5841 モジュール
5842 \emph default
5843 にも含めることができます。レイアウトが\SpecialChar LaTeX
5844 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5845 パッケージに対応するものであり、
5846 \begin_inset Flex Code
5847 status collapsed
5848
5849 \begin_layout Plain Layout
5850 endnotes
5851 \end_layout
5852
5853 \end_inset
5854
5855 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5856 イアウトで使用できるという意味において、一面、
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 stdsections.inc
5862 \end_layout
5863
5864 \end_inset
5865
5866 等のインクルードファイル
5867 \begin_inset Foot
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 これらは任意の拡張子をつけることができますが、慣習的に
5872 \begin_inset Flex Code
5873 status collapsed
5874
5875 \begin_layout Plain Layout
5876 .inc
5877 \end_layout
5878
5879 \end_inset
5880
5881 拡張子が用いられます。
5882 \end_layout
5883
5884 \end_inset
5885
5886 のようなものです。相異なる点といえば、
5887 \begin_inset Flex Code
5888 status collapsed
5889
5890 \begin_layout Plain Layout
5891 article.cls
5892 \end_layout
5893
5894 \end_inset
5895
5896 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5897 \begin_inset Flex MenuItem
5898 status collapsed
5899
5900 \begin_layout Plain Layout
5901 文書\SpecialChar menuseparator
5902 設定
5903 \end_layout
5904
5905 \end_inset
5906
5907 ダイアログで選択するだけですみます。
5908 \end_layout
5909
5910 \begin_layout Standard
5911 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
5912 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
5913 \end_layout
5914
5915 \begin_layout Standard
5916 新しいモジュールを作成し、それを
5917 \begin_inset Flex Code
5918 status collapsed
5919
5920 \begin_layout Plain Layout
5921 layout/
5922 \end_layout
5923
5924 \end_inset
5925
5926 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
5927 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
5928 \begin_inset Flex MenuItem
5929 status collapsed
5930
5931 \begin_layout Plain Layout
5932 文書\SpecialChar menuseparator
5933 設定
5934 \end_layout
5935
5936 \end_inset
5937
5938 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5939 \emph on
5940 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5941 \emph default
5942 。もっと言えば、
5943 \emph on
5944 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5945 \emph default
5946 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
5947 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
5948 とがあるからです。
5949 \end_layout
5950
5951 \begin_layout Subsubsection
5952 ローカルレイアウト
5953 \end_layout
5954
5955 \begin_layout Standard
5956 \SpecialChar LyX
5957 に於けるモジュールは、\SpecialChar LaTeX
5958 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
5959 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
5960 \end_layout
5961
5962 \begin_layout Standard
5963 これは、
5964 \family sans
5965 文書\SpecialChar menuseparator
5966 設定\SpecialChar menuseparator
5967 ローカルのレイアウト
5968 \family default
5969 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
5970 は、その文書専属のモジュールだと考えることができます。したがって、
5971 \begin_inset Flex Code
5972 status collapsed
5973
5974 \begin_layout Plain Layout
5975 Format
5976 \end_layout
5977
5978 \end_inset
5979
5980 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5981  2.1では、最新書式は48です)。また、
5982 ローカルレイアウトは、\SpecialChar LyX
5983  1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
5984  1.5またはそれ以前の版に(ローカルレイアウト
5985 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5986 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
5987  1.6で使用できるレイアウト要素のみを使用してください。
5988 \end_layout
5989
5990 \begin_layout Standard
5991 \begin_inset Flex Code
5992 status collapsed
5993
5994 \begin_layout Plain Layout
5995 ローカルのレイアウト
5996 \end_layout
5997
5998 \end_inset
5999
6000 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
6001 ているかどうかが検証されます。すると、\SpecialChar LyX
6002 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
6003 をターミナル(
6004 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
6005 \end_layout
6006
6007 \begin_layout Standard
6008 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
6009 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
6010 \end_layout
6011
6012 \begin_layout Subsection
6013 \begin_inset Flex MenuItem
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 .sty
6018 \end_layout
6019
6020 \end_inset
6021
6022 ファイル用のレイアウト
6023 \end_layout
6024
6025 \begin_layout Standard
6026 新しく\SpecialChar LaTeX
6027 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
6028 クラス(
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 .cls
6034 \end_layout
6035
6036 \end_inset
6037
6038 )ファイルが絡む場合と、スタイル(
6039 \begin_inset Flex Code
6040 status collapsed
6041
6042 \begin_layout Plain Layout
6043 .sty
6044 \end_layout
6045
6046 \end_inset
6047
6048 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
6049 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
6050 が当てはまります。
6051 \end_layout
6052
6053 \begin_layout Standard
6054 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
6055 \begin_inset Flex MenuItem
6056 status collapsed
6057
6058 \begin_layout Plain Layout
6059 myclass.sty
6060 \end_layout
6061
6062 \end_inset
6063
6064 という名称で、標準的なクラスである
6065 \begin_inset Flex MenuItem
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 report.cls
6070 \end_layout
6071
6072 \end_inset
6073
6074 と共に用いられるものと仮定しましょう。
6075 \end_layout
6076
6077 \begin_layout Standard
6078 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6079 \begin_inset Foot
6080 status collapsed
6081
6082 \begin_layout Plain Layout
6083 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6084 では、起動時に
6085 \begin_inset Flex MenuItem
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 -userdir
6090 \end_layout
6091
6092 \end_inset
6093
6094 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6095 \end_layout
6096
6097 \end_inset
6098
6099
6100 \end_layout
6101
6102 \begin_layout LyX-Code
6103 cp report.layout ~/.lyx/layouts/myclass.layout
6104 \end_layout
6105
6106 \begin_layout Standard
6107 それから、
6108 \begin_inset Flex Code
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 myclass.layout
6113 \end_layout
6114
6115 \end_inset
6116
6117 を編集して、
6118 \end_layout
6119
6120 \begin_layout LyX-Code
6121
6122 \backslash
6123 DeclareLaTeXClass{report}
6124 \end_layout
6125
6126 \begin_layout Standard
6127 という行を
6128 \end_layout
6129
6130 \begin_layout LyX-Code
6131
6132 \backslash
6133 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6134 \end_layout
6135
6136 \begin_layout Standard
6137 のように変更してください。それから、ファイル冒頭辺りに
6138 \end_layout
6139
6140 \begin_layout LyX-Code
6141 Preamble 
6142 \begin_inset Newline newline
6143 \end_inset
6144
6145     
6146 \backslash
6147 usepackage{myclass}
6148 \begin_inset Newline newline
6149 \end_inset
6150
6151 EndPreamble
6152 \end_layout
6153
6154 \begin_layout Standard
6155 と書き加えてください。
6156 \end_layout
6157
6158 \begin_layout Standard
6159 \SpecialChar LyX
6160 を起動して
6161 \begin_inset Flex MenuItem
6162 status collapsed
6163
6164 \begin_layout Plain Layout
6165 ツール\SpecialChar menuseparator
6166 環境構成
6167 \end_layout
6168
6169 \end_inset
6170
6171 を選択してください。それから\SpecialChar LyX
6172 を再起動し、新規文書を作成してみてください。すると、
6173 \begin_inset Flex MenuItem
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 文書\SpecialChar menuseparator
6178 設定
6179 \end_layout
6180
6181 \end_inset
6182
6183 ダイアログの文書クラスオプションに「
6184 \begin_inset Flex MenuItem
6185 status collapsed
6186
6187 \begin_layout Plain Layout
6188 report (myclass)
6189 \end_layout
6190
6191 \end_inset
6192
6193 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6194 \begin_inset Flex Code
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 report
6199 \end_layout
6200
6201 \end_inset
6202
6203 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 stdsections.inc
6209 \end_layout
6210
6211 \end_inset
6212
6213 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6214 \begin_inset Flex Code
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 stdsections.inc
6219 \end_layout
6220
6221 \end_inset
6222
6223 も取り込む
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 Input stdclass.inc
6229 \end_layout
6230
6231 \end_inset
6232
6233 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6234 \end_layout
6235
6236 \begin_layout LyX-Code
6237 Style Chapter
6238 \end_layout
6239
6240 \begin_layout LyX-Code
6241     Font
6242 \end_layout
6243
6244 \begin_layout LyX-Code
6245         Family Sans
6246 \end_layout
6247
6248 \begin_layout LyX-Code
6249     EndFont
6250 \end_layout
6251
6252 \begin_layout LyX-Code
6253 End
6254 \end_layout
6255
6256 \begin_layout Standard
6257 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6258 \end_layout
6259
6260 \begin_layout Standard
6261 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6262 いては、第
6263 \begin_inset CommandInset ref
6264 LatexCommand ref
6265 reference "sec:テキストクラス"
6266
6267 \end_inset
6268
6269 節の情報を参照してください。
6270 \end_layout
6271
6272 \begin_layout Standard
6273 もし
6274 \begin_inset Flex Code
6275 status collapsed
6276
6277 \begin_layout Plain Layout
6278 myclass.sty
6279 \end_layout
6280
6281 \end_inset
6282
6283 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6284 う。最も簡単なモジュールの例としては、以下のようなものになります。
6285 \end_layout
6286
6287 \begin_layout LyX-Code
6288 #
6289 \backslash
6290 DeclareLyXModule{My Package}
6291 \end_layout
6292
6293 \begin_layout LyX-Code
6294 #DescriptionBegin
6295 \end_layout
6296
6297 \begin_layout LyX-Code
6298 #Support for mypkg.sty.
6299 \end_layout
6300
6301 \begin_layout LyX-Code
6302 #DescriptionEnd
6303 \begin_inset Newline newline
6304 \end_inset
6305
6306
6307 \end_layout
6308
6309 \begin_layout LyX-Code
6310 Format 35
6311 \begin_inset Newline newline
6312 \end_inset
6313
6314
6315 \end_layout
6316
6317 \begin_layout LyX-Code
6318 Preamble
6319 \begin_inset Newline newline
6320 \end_inset
6321
6322     
6323 \backslash
6324 usepackage{mypkg}
6325 \begin_inset Newline newline
6326 \end_inset
6327
6328 EndPreamble
6329 \end_layout
6330
6331 \begin_layout Standard
6332 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6333 \begin_inset CommandInset ref
6334 LatexCommand ref
6335 reference "sec:テキストクラス"
6336
6337 \end_inset
6338
6339 節を参照してください。
6340 \end_layout
6341
6342 \begin_layout Subsection
6343 \begin_inset Flex MenuItem
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347 .cls
6348 \end_layout
6349
6350 \end_inset
6351
6352 ファイル用のレイアウト
6353 \end_layout
6354
6355 \begin_layout Standard
6356 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6357 \begin_inset Flex MenuItem
6358 status collapsed
6359
6360 \begin_layout Plain Layout
6361 book.cls
6362 \end_layout
6363
6364 \end_inset
6365
6366 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6367 \end_layout
6368
6369 \begin_layout LyX-Code
6370
6371 \backslash
6372 LoadClass{book}
6373 \end_layout
6374
6375 \begin_layout Standard
6376 という行がないかどうか探してください。もしこれがあれば、
6377 \begin_inset Flex Code
6378 status collapsed
6379
6380 \begin_layout Plain Layout
6381 Declare\SpecialChar LaTeX
6382 Class
6383 \end_layout
6384
6385 \end_inset
6386
6387 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 thesis
6393 \end_layout
6394
6395 \end_inset
6396
6397 であり、
6398 \begin_inset Flex Code
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 book
6403 \end_layout
6404
6405 \end_inset
6406
6407 クラスに基づいていれば、
6408 \begin_inset Flex Code
6409 status collapsed
6410
6411 \begin_layout Plain Layout
6412 Declare\SpecialChar LaTeX
6413 Class
6414 \end_layout
6415
6416 \end_inset
6417
6418 行は以下のようにします
6419 \begin_inset Foot
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 さらに\SpecialChar LyX
6424 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6425 \begin_inset Flex Code
6426 status collapsed
6427
6428 \begin_layout Plain Layout
6429 thesis.layout
6430 \end_layout
6431
6432 \end_inset
6433
6434 という名前で保存するのが最も簡単です。 
6435 \end_layout
6436
6437 \end_inset
6438
6439
6440 \end_layout
6441
6442 \begin_layout LyX-Code
6443
6444 \backslash
6445 DeclareLaT
6446 \begin_inset ERT
6447 status collapsed
6448
6449 \begin_layout Plain Layout
6450
6451 {}
6452 \end_layout
6453
6454 \end_inset
6455
6456 eXClass[thesis,book]{thesis}
6457 \end_layout
6458
6459 \begin_layout Standard
6460 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6461 クラスを使用してい
6462 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6463 業の開始点としてください。
6464 \end_layout
6465
6466 \begin_layout Subsection
6467 ひな型を作成する
6468 \begin_inset CommandInset label
6469 LatexCommand label
6470 name "sec:ひな型を作成する"
6471
6472 \end_inset
6473
6474
6475 \end_layout
6476
6477 \begin_layout Standard
6478 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6479 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6480 添付のひな型をあれこれ見てみるのもよいでしょう。
6481 \end_layout
6482
6483 \begin_layout Standard
6484 ひな型は、通常の文書と同様、\SpecialChar LyX
6485 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6486 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6487 \begin_inset Flex Code
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491
6492 \backslash
6493 fontscheme
6494 \end_layout
6495
6496 \end_inset
6497
6498
6499 \begin_inset Flex Code
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503
6504 \backslash
6505 papersize
6506 \end_layout
6507
6508 \end_inset
6509
6510 などの対応するコマンドをひな型\SpecialChar LyX
6511 ファイルから取り除く必要があります。これは、たとえば
6512 \begin_inset Flex Code
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 vi
6517 \end_layout
6518
6519 \end_inset
6520
6521
6522 \begin_inset Flex Code
6523 status collapsed
6524
6525 \begin_layout Plain Layout
6526 notepad
6527 \end_layout
6528
6529 \end_inset
6530
6531 のような、どの軽いテキストエディタでも行うことができます。
6532 \end_layout
6533
6534 \begin_layout Standard
6535 編集したひな型を
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 UserDir/templates/
6541 \end_layout
6542
6543 \end_inset
6544
6545 に置き、グローバルなひな型ディレクトリ
6546 \begin_inset Flex Code
6547 status collapsed
6548
6549 \begin_layout Plain Layout
6550 LyXDir/templates/
6551 \end_layout
6552
6553 \end_inset
6554
6555 から使用したいものを同じ場所にコピーし、
6556 \begin_inset Flex MenuItem
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 ツール\SpecialChar menuseparator
6561 設定\SpecialChar menuseparator
6562 パス
6563 \end_layout
6564
6565 \end_inset
6566
6567 ダイアログのひな型パスを再定義してください。
6568 \end_layout
6569
6570 \begin_layout Standard
6571 ところで、特別な意味を持つひな型
6572 \begin_inset Flex Code
6573 status collapsed
6574
6575 \begin_layout Plain Layout
6576 defaults.lyx
6577 \end_layout
6578
6579 \end_inset
6580
6581 があることに注意してください。このひな型は、
6582 \begin_inset Flex MenuItem
6583 status collapsed
6584
6585 \begin_layout Plain Layout
6586 ファイル\SpecialChar menuseparator
6587 新規
6588 \end_layout
6589
6590 \end_inset
6591
6592 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6593 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6594 開き、
6595 \begin_inset Flex MenuItem
6596 status collapsed
6597
6598 \begin_layout Plain Layout
6599 文書既定値として保存
6600 \end_layout
6601
6602 \end_inset
6603
6604 ボタンを押すことです。
6605 \end_layout
6606
6607 \begin_layout Subsection
6608 旧レイアウトファイルの更新
6609 \end_layout
6610
6611 \begin_layout Standard
6612 レイアウトファイルの書式は、\SpecialChar LyX
6613 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6614 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6615 は、
6616 自動的に変換ツール
6617 \begin_inset Flex Code
6618 status collapsed
6619
6620 \begin_layout Plain Layout
6621 \SpecialChar LyX
6622 Dir/scripts/layout2layout.py
6623 \end_layout
6624
6625 \end_inset
6626
6627 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6628 がこれを毎回行な
6629 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6630 \end_layout
6631
6632 \begin_layout Enumerate
6633 ファイル
6634 \begin_inset Flex Code
6635 status collapsed
6636
6637 \begin_layout Plain Layout
6638 myclass.layout
6639 \end_layout
6640
6641 \end_inset
6642
6643
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 myclass.old
6649 \end_layout
6650
6651 \end_inset
6652
6653 に改称
6654 \end_layout
6655
6656 \begin_layout Enumerate
6657 以下のコマンドをコール
6658 \begin_inset Newline newline
6659 \end_inset
6660
6661
6662 \begin_inset Flex Code
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6667 \end_layout
6668
6669 \end_inset
6670
6671
6672 \begin_inset Newline newline
6673 \end_inset
6674
6675 ここで
6676 \begin_inset Flex Code
6677 status collapsed
6678
6679 \begin_layout Plain Layout
6680 LyXDir
6681 \end_layout
6682
6683 \end_inset
6684
6685 は\SpecialChar LyX
6686 システムディレクトリの名前です。
6687 \end_layout
6688
6689 \begin_layout Standard
6690 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6691 \end_layout
6692
6693 \begin_layout Section
6694 \begin_inset CommandInset label
6695 LatexCommand label
6696 name "sec:テキストクラス"
6697
6698 \end_inset
6699
6700 レイアウトファイルの書式
6701 \end_layout
6702
6703 \begin_layout Standard
6704 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6705 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6706 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6707 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6708 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6709 \end_layout
6710
6711 \begin_layout Standard
6712 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6713 \begin_inset Flex Code
6714 status collapsed
6715
6716 \begin_layout Plain Layout
6717 Style
6718 \end_layout
6719
6720 \end_inset
6721
6722
6723 \begin_inset Flex Code
6724 status collapsed
6725
6726 \begin_layout Plain Layout
6727 style
6728 \end_layout
6729
6730 \end_inset
6731
6732
6733 \begin_inset Flex Code
6734 status collapsed
6735
6736 \begin_layout Plain Layout
6737 StYlE
6738 \end_layout
6739
6740 \end_inset
6741
6742 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6743 \begin_inset Flex Code
6744 status collapsed
6745
6746 \begin_layout Plain Layout
6747
6748 \emph on
6749 強調
6750 \end_layout
6751
6752 \end_inset
6753
6754 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6755 \begin_inset Flex Code
6756 status collapsed
6757
6758 \begin_layout Plain Layout
6759 浮動小数点型=
6760 \emph on
6761 既定値
6762 \end_layout
6763
6764 \end_inset
6765
6766 のように表示されます。
6767 \end_layout
6768
6769 \begin_layout Subsection
6770 文書クラス宣言と分類
6771 \end_layout
6772
6773 \begin_layout Standard
6774 レイアウトファイル中の
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 #
6780 \end_layout
6781
6782 \end_inset
6783
6784 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6785 \begin_inset Flex Code
6786 status collapsed
6787
6788 \begin_layout Plain Layout
6789 *.layout
6790 \end_layout
6791
6792 \end_inset
6793
6794 ファイルは、以下のような行で始めなくてはならないのです。
6795 \end_layout
6796
6797 \begin_layout LyX-Code
6798
6799 \size small
6800 #% Do not delete the line below; configure depends on this
6801 \end_layout
6802
6803 \begin_layout LyX-Code
6804
6805 \size small
6806 #  
6807 \backslash
6808 DeclareLaTeXClass{Article (Standard Class)}
6809 \end_layout
6810
6811 \begin_layout LyX-Code
6812
6813 \size small
6814 #  
6815 \backslash
6816 DeclareCategory{Articles}
6817 \end_layout
6818
6819 \begin_layout Standard
6820 2行目と3行目は、\SpecialChar LyX
6821 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6822 スクリプト
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 chkconfig.ltx
6828 \end_layout
6829
6830 \end_inset
6831
6832 が、
6833 \begin_inset Flex Code
6834 status collapsed
6835
6836 \begin_layout Plain Layout
6837 #
6838 \end_layout
6839
6840 \end_inset
6841
6842 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6843 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
6844 行が
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 article.layout
6850 \end_layout
6851
6852 \end_inset
6853
6854 と名付けられたファイルにあると、
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 article
6860 \end_layout
6861
6862 \end_inset
6863
6864 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
6865 文書クラス
6866 \begin_inset Flex Code
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870 article.cls
6871 \end_layout
6872
6873 \end_inset
6874
6875 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
6876 \begin_inset Flex MenuItem
6877 status collapsed
6878
6879 \begin_layout Plain Layout
6880 文書\SpecialChar menuseparator
6881 設定
6882 \end_layout
6883
6884 \end_inset
6885
6886 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
6887 \begin_inset Flex MenuItem
6888 status collapsed
6889
6890 \begin_layout Plain Layout
6891 文書\SpecialChar menuseparator
6892 設定
6893 \end_layout
6894
6895 \end_inset
6896
6897 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
6898 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
6899 rized」グループに属することになります。
6900 \end_layout
6901
6902 \begin_layout Standard
6903 節見出し表示に変更を加えた、
6904 \begin_inset Flex Code
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 article.cls
6909 \end_layout
6910
6911 \end_inset
6912
6913 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6914 \begin_inset Flex Code
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 myarticle.layout
6919 \end_layout
6920
6921 \end_inset
6922
6923 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6924 \end_layout
6925
6926 \begin_layout LyX-Code
6927
6928 \size small
6929 #% Do not delete the line below; configure depends on this 
6930 \end_layout
6931
6932 \begin_layout LyX-Code
6933
6934 \size small
6935 #  
6936 \backslash
6937 DeclareLaTeXClass[article]{article (with My Own Headings)}
6938 \end_layout
6939
6940 \begin_layout LyX-Code
6941
6942 \size small
6943 #  
6944 \backslash
6945 DeclareCategory{Articles}
6946 \end_layout
6947
6948 \begin_layout Standard
6949 これは、\SpecialChar LaTeX
6950 文書クラス
6951 \begin_inset Flex Code
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955 article.cls
6956 \end_layout
6957
6958 \end_inset
6959
6960 に関連づけられ、「Article (with My Own Headings)」と表示される、
6961 \begin_inset Flex Code
6962 status collapsed
6963
6964 \begin_layout Plain Layout
6965 myarticle
6966 \end_layout
6967
6968 \end_inset
6969
6970 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6971 \end_layout
6972
6973 \begin_layout LyX-Code
6974
6975 \size small
6976 #% Do not delete the line below; configure depends on this 
6977 \end_layout
6978
6979 \begin_layout LyX-Code
6980
6981 \size small
6982 #  
6983 \backslash
6984 DeclareLaT
6985 \size default
6986
6987 \begin_inset ERT
6988 status collapsed
6989
6990 \begin_layout Plain Layout
6991
6992 {}
6993 \end_layout
6994
6995 \end_inset
6996
6997
6998 \size small
6999 eXClass[article,foo.sty]{Article (with My Own Headings)}
7000 \end_layout
7001
7002 \begin_layout LyX-Code
7003
7004 \size small
7005 #  
7006 \backslash
7007 DeclareCategory{Articles}
7008 \end_layout
7009
7010 \begin_layout Standard
7011 これは、このテキストクラスが
7012 \begin_inset Flex Code
7013 status collapsed
7014
7015 \begin_layout Plain Layout
7016 foo.sty
7017 \end_layout
7018
7019 \end_inset
7020
7021 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
7022 \end_layout
7023
7024 \begin_layout LyX-Code
7025
7026 \size small
7027 #% Do not delete the line below; configure depends on this 
7028 \end_layout
7029
7030 \begin_layout LyX-Code
7031
7032 \size small
7033
7034 \backslash
7035 DeclareDocBookClass[article]{SGML (DocBook article)}
7036 \end_layout
7037
7038 \begin_layout LyX-Code
7039
7040 \size small
7041 #  
7042 \backslash
7043 DeclareCategory{Articles}
7044 \end_layout
7045
7046 \begin_layout Standard
7047 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
7048 \end_layout
7049
7050 \begin_layout Standard
7051 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
7052 \end_layout
7053
7054 \begin_layout LyX-Code
7055
7056 \size small
7057 #  
7058 \backslash
7059 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7060 \end_layout
7061
7062 \begin_layout LyX-Code
7063
7064 \size small
7065 #  
7066 \backslash
7067 DeclareCategory{分類}
7068 \end_layout
7069
7070 \begin_layout Standard
7071 ここで「クラス」は、\SpecialChar LaTeX
7072 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
7073 は単純に、クラスファイル
7074 名がレイアウトファイル名と同じであると仮定します。
7075 \end_layout
7076
7077 \begin_layout Standard
7078 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7079 \begin_inset Flex Code
7080 status collapsed
7081
7082 \begin_layout Plain Layout
7083 LyXDir/layouts/
7084 \end_layout
7085
7086 \end_inset
7087
7088
7089 \begin_inset Flex Code
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 UserDir/layouts
7094 \end_layout
7095
7096 \end_inset
7097
7098 にコピーし、
7099 \begin_inset Flex MenuItem
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 ツール\SpecialChar menuseparator
7104 環境構成
7105 \end_layout
7106
7107 \end_inset
7108
7109 を実行し、\SpecialChar LyX
7110 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7111 \end_layout
7112
7113 \begin_layout Standard
7114 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7115 を再起動したりすることなく、その変更を確認することができます
7116 \begin_inset Foot
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 第1.6版よりも前の\SpecialChar LyX
7121 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7122 を再起動しなくてはならなかったので、
7123 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7124 \end_layout
7125
7126 \end_inset
7127
7128 。\SpecialChar LyX
7129 関数
7130 \begin_inset Flex MenuItem
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 layout-reload
7135 \end_layout
7136
7137 \end_inset
7138
7139 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7140 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7141 \end_layout
7142
7143 \begin_layout Standard
7144
7145 \emph on
7146 注意
7147 \emph default
7148
7149 \begin_inset Flex MenuItem
7150 status collapsed
7151
7152 \begin_layout Plain Layout
7153 layout-reload
7154 \end_layout
7155
7156 \end_inset
7157
7158 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7159 \emph on
7160 強く
7161 \emph default
7162 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7163 \emph on
7164 強く
7165 \emph default
7166 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7167 は現在の
7168 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7169 \begin_inset Foot
7170 status collapsed
7171
7172 \begin_layout Plain Layout
7173 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7174 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7175 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7176 ださい。
7177 \end_layout
7178
7179 \end_inset
7180
7181 。\SpecialChar LyX
7182 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7183 \begin_inset Foot
7184 status collapsed
7185
7186 \begin_layout Plain Layout
7187 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7188 \end_layout
7189
7190 \end_inset
7191
7192
7193 \end_layout
7194
7195 \begin_layout Subsection
7196 モジュール宣言
7197 \end_layout
7198
7199 \begin_layout Standard
7200 モジュールは、以下のような行で始まらなくてはなりません。
7201 \end_layout
7202
7203 \begin_layout LyX-Code
7204 #
7205 \backslash
7206 DeclareL
7207 \begin_inset ERT
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211
7212 {}
7213 \end_layout
7214
7215 \end_inset
7216
7217 yXModule[endnotes.sty]{Endnotes} 
7218 \end_layout
7219
7220 \begin_layout Standard
7221 波括弧内に入っている必須引数はモジュール名で、これは
7222 \begin_inset Flex MenuItem
7223 status collapsed
7224
7225 \begin_layout Plain Layout
7226 文書\SpecialChar menuseparator
7227 設定
7228 \end_layout
7229
7230 \end_inset
7231
7232 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7233 パッケージをすべて宣言します。また、非必須引数として、
7234 \begin_inset Flex Code
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 変換元->変換先
7239 \end_layout
7240
7241 \end_inset
7242
7243 の形を使用することができます。これは、
7244 \begin_inset Flex Code
7245 status collapsed
7246
7247 \begin_layout Plain Layout
7248 変換元
7249 \end_layout
7250
7251 \end_inset
7252
7253 形式から
7254 \begin_inset Flex Code
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258 変換先
7259 \end_layout
7260
7261 \end_inset
7262
7263 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7264 \end_layout
7265
7266 \begin_layout Standard
7267 それから、以下のようなモジュール宣言を行います
7268 \begin_inset Foot
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 モジュールを\SpecialChar LyX
7273 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7274 \end_layout
7275
7276 \end_inset
7277
7278
7279 \end_layout
7280
7281 \begin_layout LyX-Code
7282 #DescriptionBegin 
7283 \end_layout
7284
7285 \begin_layout LyX-Code
7286 #Adds an endnote command, in addition to footnotes.
7287  
7288 \end_layout
7289
7290 \begin_layout LyX-Code
7291 #You will need to add  
7292 \backslash
7293 theendnotes in TeX code where you 
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297 #want the endnotes to appear.
7298  
7299 \end_layout
7300
7301 \begin_layout LyX-Code
7302 #DescriptionEnd 
7303 \end_layout
7304
7305 \begin_layout LyX-Code
7306 #Requires: somemodule | othermodule
7307 \end_layout
7308
7309 \begin_layout LyX-Code
7310 #Excludes: badmodule
7311 \end_layout
7312
7313 \begin_layout Standard
7314 ここで説明(Description)は、
7315 \begin_inset Flex MenuItem
7316 status collapsed
7317
7318 \begin_layout Plain Layout
7319 文書\SpecialChar menuseparator
7320 設定
7321 \end_layout
7322
7323 \end_inset
7324
7325 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7326 \begin_inset Flex Code
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 Requires
7331 \end_layout
7332
7333 \end_inset
7334
7335 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7336 \begin_inset Flex Code
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 Excludes
7341 \end_layout
7342
7343 \end_inset
7344
7345 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7346 イプ記号「|」で区切らなくてはなりません。
7347 \begin_inset Flex Code
7348 status collapsed
7349
7350 \begin_layout Plain Layout
7351 Requires
7352 \end_layout
7353
7354 \end_inset
7355
7356 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 Requires
7362 \end_layout
7363
7364 \end_inset
7365
7366 に指定されたモジュールのうち、
7367 \emph on
7368 少なくとも一つ
7369 \emph default
7370 が使用されていればよいということです。同様に、
7371 \begin_inset Flex Code
7372 status collapsed
7373
7374 \begin_layout Plain Layout
7375 Excludes
7376 \end_layout
7377
7378 \end_inset
7379
7380 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7381 \begin_inset Flex Code
7382 status collapsed
7383
7384 \begin_layout Plain Layout
7385 .module
7386 \end_layout
7387
7388 \end_inset
7389
7390 拡張子を除いたファイル名で認識されることに注意してください。つまり
7391 \begin_inset Flex Code
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395 somemodule
7396 \end_layout
7397
7398 \end_inset
7399
7400 とは、実のところ
7401 \begin_inset Flex Code
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 somemodule.module
7406 \end_layout
7407
7408 \end_inset
7409
7410 のことです。
7411 \end_layout
7412
7413 \begin_layout Subsection
7414 書式番号
7415 \end_layout
7416
7417 \begin_layout Standard
7418 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7419 \end_layout
7420
7421 \begin_layout Description
7422 \begin_inset Flex Code
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 Format
7427 \end_layout
7428
7429 \end_inset
7430
7431  [
7432 \begin_inset Flex Code
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 整数型
7437 \end_layout
7438
7439 \end_inset
7440
7441 ] このレイアウトファイルの書式
7442 \end_layout
7443
7444 \begin_layout Standard
7445 このタグは\SpecialChar LyX
7446
7447 \begin_inset space ~
7448 \end_inset
7449
7450 1.4.0で導入されました。\SpecialChar LyX
7451
7452 \begin_inset space ~
7453 \end_inset
7454
7455 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7456 現行版のファイル形式は、書式59です。しかし、\SpecialChar LyX
7457 の各版は、旧版の\SpecialChar LyX
7458 で作成さ
7459 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7460 \end_layout
7461
7462 \begin_layout Subsection
7463 \begin_inset CommandInset label
7464 LatexCommand label
7465 name "subsec:汎用テキストクラスパラメータ"
7466
7467 \end_inset
7468
7469 汎用テキストクラスパラメータ
7470 \end_layout
7471
7472 \begin_layout Standard
7473 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7474 \begin_inset Flex Code
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 .layout
7479 \end_layout
7480
7481 \end_inset
7482
7483 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7484 \emph on
7485 ありません
7486 \emph default
7487 。モジュールには、すべてのレイアウトタグを使用することができます)。
7488 \end_layout
7489
7490 \begin_layout Description
7491 \begin_inset Flex Code
7492 status collapsed
7493
7494 \begin_layout Plain Layout
7495 AddToHTMLPreamble
7496 \end_layout
7497
7498 \end_inset
7499
7500  この文書クラスがXHTMLに出力されるときに、
7501 \begin_inset Flex Code
7502 status collapsed
7503
7504 \begin_layout Plain Layout
7505 <head>
7506 \end_layout
7507
7508 \end_inset
7509
7510 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7511 \begin_inset Flex Code
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 <head>
7516 \end_layout
7517
7518 \end_inset
7519
7520 に出力するものであれば、何でも使用することができます。「
7521 \begin_inset Flex Code
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 EndPreamble
7526 \end_layout
7527
7528 \end_inset
7529
7530 」で閉じる必要があります。
7531 \end_layout
7532
7533 \begin_layout Description
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 AddToPreamble
7539 \end_layout
7540
7541 \end_inset
7542
7543  文書プリアンブルに書き加えられる情報です。「
7544 \begin_inset Flex Code
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 EndPreamble
7549 \end_layout
7550
7551 \end_inset
7552
7553 」で閉じる必要があります。
7554 \end_layout
7555
7556 \begin_layout Description
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 CiteFormat
7562 \end_layout
7563
7564 \end_inset
7565
7566  書誌情報の表示に使う書式を定義します。詳細については、
7567 \begin_inset CommandInset ref
7568 LatexCommand ref
7569 reference "subsec:引用書式指定"
7570
7571 \end_inset
7572
7573 をご覧ください。「
7574 \begin_inset Flex Code
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 End
7579 \end_layout
7580
7581 \end_inset
7582
7583 」で閉じる必要があります。
7584 \end_layout
7585
7586 \begin_layout Description
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 ClassOptions
7592 \end_layout
7593
7594 \end_inset
7595
7596  文書クラスがサポートする様々な大域オプションを記します。説明は、
7597 \begin_inset CommandInset ref
7598 LatexCommand ref
7599 reference "subsec:ClassOptions"
7600
7601 \end_inset
7602
7603 を参照してください。「
7604 \begin_inset Flex Code
7605 status collapsed
7606
7607 \begin_layout Plain Layout
7608 End
7609 \end_layout
7610
7611 \end_inset
7612
7613 」で閉じる必要があります。
7614 \end_layout
7615
7616 \begin_layout Description
7617 \begin_inset Flex Code
7618 status collapsed
7619
7620 \begin_layout Plain Layout
7621 Columns
7622 \end_layout
7623
7624 \end_inset
7625
7626  [
7627 \begin_inset Flex Code
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631
7632 \emph on
7633 1
7634 \end_layout
7635
7636 \end_inset
7637
7638 ,
7639 \begin_inset space \thinspace{}
7640 \end_inset
7641
7642
7643 \begin_inset Flex Code
7644 status collapsed
7645
7646 \begin_layout Plain Layout
7647 2
7648 \end_layout
7649
7650 \end_inset
7651
7652 ] 文書クラスが既定で1段組か2段組かを指定します。
7653 \begin_inset Flex MenuItem
7654 status collapsed
7655
7656 \begin_layout Plain Layout
7657 文書\SpecialChar menuseparator
7658 設定
7659 \end_layout
7660
7661 \end_inset
7662
7663 ダイアログで変更することができます。
7664 \end_layout
7665
7666 \begin_layout Description
7667 \begin_inset Flex Code
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 Counter
7672 \end_layout
7673
7674 \end_inset
7675
7676  [
7677 \begin_inset Flex Code
7678 status collapsed
7679
7680 \begin_layout Plain Layout
7681 文字列
7682 \end_layout
7683
7684 \end_inset
7685
7686 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7687 \begin_inset Flex Code
7688 status collapsed
7689
7690 \begin_layout Plain Layout
7691 End
7692 \end_layout
7693
7694 \end_inset
7695
7696 」で閉じる必要があります。
7697 \begin_inset Newline newline
7698 \end_inset
7699
7700 カウンタについての詳細は、
7701 \begin_inset CommandInset ref
7702 LatexCommand ref
7703 reference "subsec:カウンタ"
7704
7705 \end_inset
7706
7707 を参照してください。
7708 \end_layout
7709
7710 \begin_layout Description
7711 \begin_inset Flex Code
7712 status collapsed
7713
7714 \begin_layout Plain Layout
7715 DefaultFont
7716 \end_layout
7717
7718 \end_inset
7719
7720  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7721 \begin_inset CommandInset ref
7722 LatexCommand ref
7723 reference "subsec:フォント指定"
7724
7725 \end_inset
7726
7727 を参照してください。「
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732 EndFont
7733 \end_layout
7734
7735 \end_inset
7736
7737 」で閉じる必要があります。
7738 \end_layout
7739
7740 \begin_layout Description
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 DefaultModule
7746 \end_layout
7747
7748 \end_inset
7749
7750  [
7751 \begin_inset Flex Code
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 <モジュール>
7756 \end_layout
7757
7758 \end_inset
7759
7760 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7761 \begin_inset Flex Code
7762 status collapsed
7763
7764 \begin_layout Plain Layout
7765 .module
7766 \end_layout
7767
7768 \end_inset
7769
7770 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7771 既存の文書にこの文書クラスが選択したときのみ該当します)。
7772 \end_layout
7773
7774 \begin_layout Description
7775 \begin_inset Flex Code
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779 DefaultStyle
7780 \end_layout
7781
7782 \end_inset
7783
7784  [
7785 \begin_inset Flex Code
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 <様式>
7790 \end_layout
7791
7792 \end_inset
7793
7794 ]
7795 \lang english
7796  
7797 \lang japanese
7798 これは新規段落に割り当てられる様式であり、通常は
7799 \begin_inset Flex MenuItem
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 標準
7804 \end_layout
7805
7806 \end_inset
7807
7808 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7809 \end_layout
7810
7811 \begin_layout Description
7812 \begin_inset Flex Code
7813 status collapsed
7814
7815 \begin_layout Plain Layout
7816 ExcludesModule
7817 \end_layout
7818
7819 \end_inset
7820
7821  [
7822 \begin_inset Flex Code
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 <モジュール>
7827 \end_layout
7828
7829 \end_inset
7830
7831 ] このタグは、指定されたモジュール—
7832 \begin_inset Flex Code
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836 .module
7837 \end_layout
7838
7839 \end_inset
7840
7841 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7842 に振る
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847 theorems-sec
7848 \end_layout
7849
7850 \end_inset
7851
7852 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7853 \emph on
7854 使用してはいけません
7855 \emph default
7856 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
7857 \begin_inset CommandInset ref
7858 LatexCommand ref
7859 reference "subsec:レイアウトモジュール"
7860
7861 \end_inset
7862
7863 参照)。
7864 \end_layout
7865
7866 \begin_layout Description
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 Float
7872 \end_layout
7873
7874 \end_inset
7875
7876  フロートを新規に定義します。詳細は、
7877 \begin_inset CommandInset ref
7878 LatexCommand ref
7879 reference "subsec:フロート"
7880
7881 \end_inset
7882
7883 を参照してください。「
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 End
7889 \end_layout
7890
7891 \end_inset
7892
7893 」で閉じる必要があります。
7894 \end_layout
7895
7896 \begin_layout Description
7897 \begin_inset Flex Code
7898 status collapsed
7899
7900 \begin_layout Plain Layout
7901 HTMLPreamble
7902 \end_layout
7903
7904 \end_inset
7905
7906  この文書クラスがXHTMLに出力されるときに、
7907 \begin_inset Flex Code
7908 status collapsed
7909
7910 \begin_layout Plain Layout
7911 <head>
7912 \end_layout
7913
7914 \end_inset
7915
7916 ブロックに出力される情報です。これより前に出現した
7917 \begin_inset Flex Code
7918 status collapsed
7919
7920 \begin_layout Plain Layout
7921 HTMLPreamble
7922 \end_layout
7923
7924 \end_inset
7925
7926
7927 \begin_inset Flex Code
7928 status collapsed
7929
7930 \begin_layout Plain Layout
7931 AddToHTMLPreamble
7932 \end_layout
7933
7934 \end_inset
7935
7936 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 AddToHTMLPreamble
7942 \end_layout
7943
7944 \end_inset
7945
7946 を使用してください)。これは「
7947 \begin_inset Flex Code
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951 EndPreamble
7952 \end_layout
7953
7954 \end_inset
7955
7956 」で閉じる必要があります。
7957 \end_layout
7958
7959 \begin_layout Description
7960 \begin_inset Flex Code
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 HTMLTOCSection
7965 \end_layout
7966
7967 \end_inset
7968
7969  [
7970 \begin_inset Flex Code
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 <様式>
7975 \end_layout
7976
7977 \end_inset
7978
7979 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7980 。これを指定しない場合には、\SpecialChar LyX
7981 はどのレイアウトを使用するべきか、解析しようと試みます。
7982 \end_layout
7983
7984 \begin_layout Description
7985 \begin_inset Flex Code
7986 status collapsed
7987
7988 \begin_layout Plain Layout
7989 IfCounter 
7990 \end_layout
7991
7992 \end_inset
7993
7994  [
7995 \begin_inset Flex Code
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 <カウンタ>
8000 \end_layout
8001
8002 \end_inset
8003
8004 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
8005 \begin_inset Flex Code
8006 status collapsed
8007
8008 \begin_layout Plain Layout
8009 End
8010 \end_layout
8011
8012 \end_inset
8013
8014 」で閉じる必要があります。
8015 \begin_inset Newline newline
8016 \end_inset
8017
8018 カウンタについての詳細は、
8019 \begin_inset CommandInset ref
8020 LatexCommand ref
8021 reference "subsec:カウンタ"
8022
8023 \end_inset
8024
8025 をご覧ください。
8026 \end_layout
8027
8028 \begin_layout Description
8029 \begin_inset Flex Code
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 IfStyle
8034 \end_layout
8035
8036 \end_inset
8037
8038  [
8039 \begin_inset Flex Code
8040 status collapsed
8041
8042 \begin_layout Plain Layout
8043 <様式>
8044 \end_layout
8045
8046 \end_inset
8047
8048 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 End
8054 \end_layout
8055
8056 \end_inset
8057
8058 」で閉じる必要があります。
8059 \end_layout
8060
8061 \begin_layout Description
8062 \begin_inset Flex Code
8063 status collapsed
8064
8065 \begin_layout Plain Layout
8066 Input
8067 \end_layout
8068
8069 \end_inset
8070
8071  [
8072 \begin_inset Flex Code
8073 status collapsed
8074
8075 \begin_layout Plain Layout
8076 <ファイル名>
8077 \end_layout
8078
8079 \end_inset
8080
8081 ]
8082 \lang english
8083  
8084 \lang japanese
8085 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8086 のほとんどを収録している
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091 stdclass.inc
8092 \end_layout
8093
8094 \end_inset
8095
8096 のような標準レイアウトファイルです。
8097 \end_layout
8098
8099 \begin_layout Description
8100 \begin_inset Flex Code
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 InsetLayout
8105 \end_layout
8106
8107 \end_inset
8108
8109  [
8110 \begin_inset Flex Code
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 <型>
8115 \end_layout
8116
8117 \end_inset
8118
8119 ]
8120 \lang english
8121  
8122 \lang japanese
8123 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 End
8129 \end_layout
8130
8131 \end_inset
8132
8133 」で閉じる必要があります。
8134 \begin_inset Newline newline
8135 \end_inset
8136
8137 詳しい情報は、
8138 \begin_inset CommandInset ref
8139 LatexCommand ref
8140 reference "subsec:任意設定差込枠"
8141
8142 \end_inset
8143
8144 をご覧ください。
8145 \end_layout
8146
8147 \begin_layout Description
8148 \begin_inset Flex Code
8149 status collapsed
8150
8151 \begin_layout Plain Layout
8152 LeftMargin
8153 \end_layout
8154
8155 \end_inset
8156
8157  [
8158 \begin_inset Flex Code
8159 status collapsed
8160
8161 \begin_layout Plain Layout
8162 文字列
8163 \end_layout
8164
8165 \end_inset
8166
8167 ] 画面上の左余白の幅を指示する文字列。例:「
8168 \begin_inset Flex Code
8169 status collapsed
8170
8171 \begin_layout Plain Layout
8172 MMMMM
8173 \end_layout
8174
8175 \end_inset
8176
8177 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8178 \end_layout
8179
8180 \begin_layout Description
8181 \begin_inset Flex Code
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 NoCounter
8186 \end_layout
8187
8188 \end_inset
8189
8190  [
8191 \begin_inset Flex Code
8192 status collapsed
8193
8194 \begin_layout Plain Layout
8195 <カウンタ>
8196 \end_layout
8197
8198 \end_inset
8199
8200 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8201 \end_layout
8202
8203 \begin_layout Description
8204 \begin_inset Flex Code
8205 status collapsed
8206
8207 \begin_layout Plain Layout
8208 NoFloat
8209 \end_layout
8210
8211 \end_inset
8212
8213  [
8214 \begin_inset Flex Code
8215 status collapsed
8216
8217 \begin_layout Plain Layout
8218 <フロート>
8219 \end_layout
8220
8221 \end_inset
8222
8223 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8224 \end_layout
8225
8226 \begin_layout Description
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 NoStyle
8232 \end_layout
8233
8234 \end_inset
8235
8236  [
8237 \begin_inset Flex Code
8238 status collapsed
8239
8240 \begin_layout Plain Layout
8241 <様式>
8242 \end_layout
8243
8244 \end_inset
8245
8246 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8247 \end_layout
8248
8249 \begin_layout Description
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 OutputFormat
8255 \end_layout
8256
8257 \end_inset
8258
8259  [
8260 \begin_inset Flex Code
8261 status collapsed
8262
8263 \begin_layout Plain Layout
8264 <形式>
8265 \end_layout
8266
8267 \end_inset
8268
8269 ] このクラスによって生成されるファイル形式を示す文字列(
8270 \family sans
8271 設定
8272 \family default
8273 ダイアログで定義される形のもの)。おもに、
8274 \begin_inset Flex Code
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278 OutputType
8279 \end_layout
8280
8281 \end_inset
8282
8283
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 literate
8289 \end_layout
8290
8291 \end_inset
8292
8293 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8294 \begin_inset Flex Code
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 OutputType
8299 \end_layout
8300
8301 \end_inset
8302
8303 パラメーターに遭遇したときには、この文字列は、「
8304 \begin_inset Flex Code
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308 docbook
8309 \end_layout
8310
8311 \end_inset
8312
8313 」・「
8314 \begin_inset Flex Code
8315 status collapsed
8316
8317 \begin_layout Plain Layout
8318 lat
8319 \emph on
8320 ex
8321 \end_layout
8322
8323 \end_inset
8324
8325 」のいずれかにリセットされます。
8326 \end_layout
8327
8328 \begin_layout Description
8329 \begin_inset Flex Code
8330 status collapsed
8331
8332 \begin_layout Plain Layout
8333 OutputType
8334 \end_layout
8335
8336 \end_inset
8337
8338  [
8339 \begin_inset Flex Code
8340 status collapsed
8341
8342 \begin_layout Plain Layout
8343
8344 \emph on
8345 lat
8346 \emph default
8347 ex
8348 \end_layout
8349
8350 \end_inset
8351
8352
8353 \begin_inset Flex Code
8354 status collapsed
8355
8356 \begin_layout Plain Layout
8357 docbook
8358 \end_layout
8359
8360 \end_inset
8361
8362
8363 \begin_inset Flex Code
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 literate
8368 \end_layout
8369
8370 \end_inset
8371
8372 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8373 \end_layout
8374
8375 \begin_layout Description
8376 \begin_inset Flex Code
8377 status collapsed
8378
8379 \begin_layout Plain Layout
8380 PackageOptions
8381 \end_layout
8382
8383 \end_inset
8384
8385  [
8386 \begin_inset Flex Code
8387 status collapsed
8388
8389 \begin_layout Plain Layout
8390 文字列
8391 \end_layout
8392
8393 \end_inset
8394
8395  
8396 \begin_inset Flex Code
8397 status collapsed
8398
8399 \begin_layout Plain Layout
8400 文字列
8401 \end_layout
8402
8403 \end_inset
8404
8405 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8406 \begin_inset Flex Code
8407 status collapsed
8408
8409 \begin_layout Plain Layout
8410 PackageOptions natbib square
8411 \end_layout
8412
8413 \end_inset
8414
8415 」とすると、
8416 \begin_inset Flex Code
8417 status collapsed
8418
8419 \begin_layout Plain Layout
8420 natbib
8421 \end_layout
8422
8423 \end_inset
8424
8425
8426 \begin_inset Flex Code
8427 status collapsed
8428
8429 \begin_layout Plain Layout
8430 square
8431 \end_layout
8432
8433 \end_inset
8434
8435 オプションとともに読み込みます(\SpecialChar TeX
8436 perts向けに述べると、これは、
8437 \begin_inset Flex Code
8438 status collapsed
8439
8440 \begin_layout Plain Layout
8441 natbib
8442 \end_layout
8443
8444 \end_inset
8445
8446 を読み込む前に、\SpecialChar LyX
8447
8448 \begin_inset Flex Code
8449 status collapsed
8450
8451 \begin_layout Plain Layout
8452
8453 \backslash
8454 PassOptionsToPackage{natbib}{square}
8455 \end_layout
8456
8457 \end_inset
8458
8459 を出力させます)。
8460 \end_layout
8461
8462 \begin_layout Description
8463 \begin_inset Flex Code
8464 status collapsed
8465
8466 \begin_layout Plain Layout
8467 PageStyle
8468 \end_layout
8469
8470 \end_inset
8471
8472  [
8473 \emph on
8474
8475 \begin_inset Flex Code
8476 status collapsed
8477
8478 \begin_layout Plain Layout
8479 plain
8480 \end_layout
8481
8482 \end_inset
8483
8484
8485 \emph default
8486
8487 \begin_inset Flex Code
8488 status collapsed
8489
8490 \begin_layout Plain Layout
8491 empty
8492 \end_layout
8493
8494 \end_inset
8495
8496
8497 \begin_inset Flex Code
8498 status collapsed
8499
8500 \begin_layout Plain Layout
8501 headings
8502 \end_layout
8503
8504 \end_inset
8505
8506 ] 既定ページ様式。
8507 \begin_inset Flex MenuItem
8508 status collapsed
8509
8510 \begin_layout Plain Layout
8511 文書\SpecialChar menuseparator
8512 設定
8513 \end_layout
8514
8515 \end_inset
8516
8517 ダイアログで変更することができます。
8518 \end_layout
8519
8520 \begin_layout Description
8521 \begin_inset Flex Code
8522 status collapsed
8523
8524 \begin_layout Plain Layout
8525 Preamble
8526 \end_layout
8527
8528 \end_inset
8529
8530  \SpecialChar LaTeX
8531 文書のプリアンブルを設定します。前に行った
8532 \begin_inset Flex Code
8533 status collapsed
8534
8535 \begin_layout Plain Layout
8536 Preamble
8537 \end_layout
8538
8539 \end_inset
8540
8541 宣言や
8542 \begin_inset Flex Code
8543 status collapsed
8544
8545 \begin_layout Plain Layout
8546 AddToPreamble
8547 \end_layout
8548
8549 \end_inset
8550
8551 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8552 \begin_inset Flex Code
8553 status collapsed
8554
8555 \begin_layout Plain Layout
8556 AddToPreamble
8557 \end_layout
8558
8559 \end_inset
8560
8561 を使用してください。)「
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 EndPreamble
8567 \end_layout
8568
8569 \end_inset
8570
8571 」で閉じる必要があります。
8572 \end_layout
8573
8574 \begin_layout Description
8575 \begin_inset Flex Code
8576 status collapsed
8577
8578 \begin_layout Plain Layout
8579 Provides
8580 \end_layout
8581
8582 \end_inset
8583
8584  [
8585 \begin_inset Flex Code
8586 status collapsed
8587
8588 \begin_layout Plain Layout
8589 文字列
8590 \end_layout
8591
8592 \end_inset
8593
8594 ] [
8595 \begin_inset Flex Code
8596 status collapsed
8597
8598 \begin_layout Plain Layout
8599
8600 \emph on
8601 0
8602 \end_layout
8603
8604 \end_inset
8605
8606
8607 \begin_inset Flex Code
8608 status collapsed
8609
8610 \begin_layout Plain Layout
8611 1
8612 \end_layout
8613
8614 \end_inset
8615
8616 ] このクラスが
8617 \begin_inset Flex Code
8618 status collapsed
8619
8620 \begin_layout Plain Layout
8621 文字列
8622 \end_layout
8623
8624 \end_inset
8625
8626 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8627 \begin_inset Flex Code
8628 status collapsed
8629
8630 \begin_layout Plain Layout
8631 amsmath
8632 \end_layout
8633
8634 \end_inset
8635
8636
8637 \begin_inset Flex Code
8638 status collapsed
8639
8640 \begin_layout Plain Layout
8641 makeidx
8642 \end_layout
8643
8644 \end_inset
8645
8646 ・\SpecialChar ldots
8647 )やマクロ名(
8648 \begin_inset Flex Code
8649 status collapsed
8650
8651 \begin_layout Plain Layout
8652 url
8653 \end_layout
8654
8655 \end_inset
8656
8657
8658 \begin_inset Flex Code
8659 status collapsed
8660
8661 \begin_layout Plain Layout
8662 boldsymbol
8663 \end_layout
8664
8665 \end_inset
8666
8667 ・\SpecialChar ldots
8668 )です。機能一覧については、
8669 \begin_inset CommandInset ref
8670 LatexCommand ref
8671 reference "chap:関数一覧"
8672
8673 \end_inset
8674
8675 を参照。
8676 \end_layout
8677
8678 \begin_layout Description
8679 \begin_inset Flex Code
8680 status collapsed
8681
8682 \begin_layout Plain Layout
8683 ProvidesModule
8684 \end_layout
8685
8686 \end_inset
8687
8688  [
8689 \begin_inset Flex Code
8690 status collapsed
8691
8692 \begin_layout Plain Layout
8693 文字列
8694 \end_layout
8695
8696 \end_inset
8697
8698 ] このレイアウトが
8699 \begin_inset Flex Code
8700 status collapsed
8701
8702 \begin_layout Plain Layout
8703 文字列
8704 \end_layout
8705
8706 \end_inset
8707
8708 で表されているモジュールの機能を提供することを示し、
8709 \begin_inset Flex Code
8710 status collapsed
8711
8712 \begin_layout Plain Layout
8713 .module
8714 \end_layout
8715
8716 \end_inset
8717
8718 拡張子を除いたファイル名で指定します。
8719 \begin_inset Flex Code
8720 status collapsed
8721
8722 \begin_layout Plain Layout
8723 DefaultModule
8724 \end_layout
8725
8726 \end_inset
8727
8728 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8729 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8730 \end_layout
8731
8732 \begin_layout Description
8733 \begin_inset Flex Code
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 Requires
8738 \end_layout
8739
8740 \end_inset
8741
8742  [
8743 \begin_inset Flex Code
8744 status collapsed
8745
8746 \begin_layout Plain Layout
8747 文字列
8748 \end_layout
8749
8750 \end_inset
8751
8752 ] このクラスが
8753 \begin_inset Flex Code
8754 status collapsed
8755
8756 \begin_layout Plain Layout
8757 文字列
8758 \end_layout
8759
8760 \end_inset
8761
8762 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8763 さい(機能一覧については
8764 \begin_inset CommandInset ref
8765 LatexCommand ref
8766 reference "chap:関数一覧"
8767
8768 \end_inset
8769
8770 を参照)。特定のオプションをとるパッケージを要求する場合、
8771 \begin_inset Flex Code
8772 status collapsed
8773
8774 \begin_layout Plain Layout
8775 PackageOptions
8776 \end_layout
8777
8778 \end_inset
8779
8780 を追加して使うことができます。
8781 \end_layout
8782
8783 \begin_layout Description
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 RightMargin
8789 \end_layout
8790
8791 \end_inset
8792
8793  [
8794 \begin_inset Flex Code
8795 status collapsed
8796
8797 \begin_layout Plain Layout
8798 文字列
8799 \end_layout
8800
8801 \end_inset
8802
8803 ] 画面上の右余白の幅を指示する文字列。例:「
8804 \begin_inset Flex Code
8805 status collapsed
8806
8807 \begin_layout Plain Layout
8808 MMMMM
8809 \end_layout
8810
8811 \end_inset
8812
8813 」。
8814 \end_layout
8815
8816 \begin_layout Description
8817 \begin_inset Flex Code
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 SecNumDepth
8822 \end_layout
8823
8824 \end_inset
8825
8826  [
8827 \begin_inset Flex Code
8828 status collapsed
8829
8830 \begin_layout Plain Layout
8831 int=3
8832 \end_layout
8833
8834 \end_inset
8835
8836 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
8837 における
8838 \begin_inset Flex Code
8839 status collapsed
8840
8841 \begin_layout Plain Layout
8842 secnumdepth
8843 \end_layout
8844
8845 \end_inset
8846
8847 カウンタに対応します。
8848 \end_layout
8849
8850 \begin_layout Description
8851 \begin_inset Flex Code
8852 status collapsed
8853
8854 \begin_layout Plain Layout
8855 Sides
8856 \end_layout
8857
8858 \end_inset
8859
8860  [
8861 \emph on
8862
8863 \begin_inset Flex Code
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867 1
8868 \end_layout
8869
8870 \end_inset
8871
8872
8873 \emph default
8874 ,
8875 \begin_inset space \thinspace{}
8876 \end_inset
8877
8878
8879 \begin_inset Flex Code
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 2
8884 \end_layout
8885
8886 \end_inset
8887
8888 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8889 \begin_inset Flex MenuItem
8890 status collapsed
8891
8892 \begin_layout Plain Layout
8893 文書\SpecialChar menuseparator
8894 設定
8895 \end_layout
8896
8897 \end_inset
8898
8899 ダイアログで変更することができます。
8900 \end_layout
8901
8902 \begin_layout Description
8903 \begin_inset Flex Code
8904 status collapsed
8905
8906 \begin_layout Plain Layout
8907 Style
8908 \end_layout
8909
8910 \end_inset
8911
8912  [
8913 \begin_inset Flex Code
8914 status collapsed
8915
8916 \begin_layout Plain Layout
8917 <名称>
8918 \end_layout
8919
8920 \end_inset
8921
8922 ]
8923 \lang english
8924  
8925 \lang japanese
8926 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8927 \begin_inset Flex Code
8928 status collapsed
8929
8930 \begin_layout Plain Layout
8931 End
8932 \end_layout
8933
8934 \end_inset
8935
8936 」で閉じる必要があります。
8937 \begin_inset Newline newline
8938 \end_inset
8939
8940 段落様式に関する詳細は、
8941 \begin_inset CommandInset ref
8942 LatexCommand ref
8943 reference "subsec:段落様式-XHTML"
8944
8945 \end_inset
8946
8947 をご覧ください。
8948 \end_layout
8949
8950 \begin_layout Description
8951 \begin_inset Flex Code
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 TitleLatexName
8956 \end_layout
8957
8958 \end_inset
8959
8960  [
8961 \begin_inset Flex Code
8962 status collapsed
8963
8964 \begin_layout Plain Layout
8965 文字列="maketitle"
8966 \end_layout
8967
8968 \end_inset
8969
8970
8971 \begin_inset Flex Code
8972 status collapsed
8973
8974 \begin_layout Plain Layout
8975 TitleLatexType
8976 \end_layout
8977
8978 \end_inset
8979
8980 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8981  
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 TitleLatexType
8987 \end_layout
8988
8989 \end_inset
8990
8991 .
8992 \end_layout
8993
8994 \begin_layout Description
8995 \begin_inset Flex Code
8996 status collapsed
8997
8998 \begin_layout Plain Layout
8999 TitleLatexType
9000 \end_layout
9001
9002 \end_inset
9003
9004  [
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009
9010 \emph on
9011 CommandAfter
9012 \end_layout
9013
9014 \end_inset
9015
9016
9017 \begin_inset Flex Code
9018 status collapsed
9019
9020 \begin_layout Plain Layout
9021 Environment
9022 \end_layout
9023
9024 \end_inset
9025
9026 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9027 \begin_inset Flex Code
9028 status collapsed
9029
9030 \begin_layout Plain Layout
9031 CommandAfter
9032 \end_layout
9033
9034 \end_inset
9035
9036 は、「
9037 \begin_inset Flex Code
9038 status collapsed
9039
9040 \begin_layout Plain Layout
9041 InTitle
9042 \begin_inset space ~
9043 \end_inset
9044
9045 1
9046 \end_layout
9047
9048 \end_inset
9049
9050 」が指定されている最後のレイアウトの後に、
9051 \begin_inset Flex Code
9052 status collapsed
9053
9054 \begin_layout Plain Layout
9055 TitleLatexName
9056 \end_layout
9057
9058 \end_inset
9059
9060 で指定したマクロ名を挿入することを意味します。
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 Environment
9066 \end_layout
9067
9068 \end_inset
9069
9070 は、「
9071 \begin_inset Flex Code
9072 status collapsed
9073
9074 \begin_layout Plain Layout
9075 InTitle
9076 \begin_inset space ~
9077 \end_inset
9078
9079 1
9080 \end_layout
9081
9082 \end_inset
9083
9084 」を持つ段落群を
9085 \begin_inset Flex Code
9086 status collapsed
9087
9088 \begin_layout Plain Layout
9089 TitleLatexName
9090 \end_layout
9091
9092 \end_inset
9093
9094 で指定した環境でくるむ場合に対応します。
9095 \end_layout
9096
9097 \begin_layout Description
9098 \begin_inset Flex Code
9099 status collapsed
9100
9101 \begin_layout Plain Layout
9102 TocDepth
9103 \end_layout
9104
9105 \end_inset
9106
9107  [
9108 \begin_inset Flex Code
9109 status collapsed
9110
9111 \begin_layout Plain Layout
9112 int=3
9113 \end_layout
9114
9115 \end_inset
9116
9117 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9118
9119 \begin_inset Flex Code
9120 status collapsed
9121
9122 \begin_layout Plain Layout
9123 tocdepth
9124 \end_layout
9125
9126 \end_inset
9127
9128 カウンタに対応します。
9129 \end_layout
9130
9131 \begin_layout Subsection
9132 \begin_inset Flex Code
9133 status collapsed
9134
9135 \begin_layout Plain Layout
9136 ClassOptions
9137 \end_layout
9138
9139 \end_inset
9140
9141
9142 \begin_inset CommandInset label
9143 LatexCommand label
9144 name "subsec:ClassOptions"
9145
9146 \end_inset
9147
9148
9149 \end_layout
9150
9151 \begin_layout Standard
9152 \begin_inset Flex Code
9153 status collapsed
9154
9155 \begin_layout Plain Layout
9156 ClassOptions
9157 \end_layout
9158
9159 \end_inset
9160
9161 部は、以下の項目を取り得ます。
9162 \end_layout
9163
9164 \begin_layout Description
9165 \begin_inset Flex Code
9166 status collapsed
9167
9168 \begin_layout Plain Layout
9169 FontSize
9170 \end_layout
9171
9172 \end_inset
9173
9174  [
9175 \begin_inset Flex Code
9176 status collapsed
9177
9178 \begin_layout Plain Layout
9179 文字列="10|11|12"
9180 \end_layout
9181
9182 \end_inset
9183
9184 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9185 \begin_inset Flex Code
9186 status collapsed
9187
9188 \begin_layout Plain Layout
9189 |
9190 \end_layout
9191
9192 \end_inset
9193
9194 」で区切ります。
9195 \end_layout
9196
9197 \begin_layout Description
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 Header
9203 \end_layout
9204
9205 \end_inset
9206
9207  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9208 \begin_inset Quotes eld
9209 \end_inset
9210
9211 -//OASIS//DTD DocBook V4.2//EN
9212 \begin_inset Quotes erd
9213 \end_inset
9214
9215
9216 \end_layout
9217
9218 \begin_layout Description
9219 \begin_inset Flex Code
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 PageStyle
9224 \end_layout
9225
9226 \end_inset
9227
9228  [
9229 \begin_inset Flex Code
9230 status collapsed
9231
9232 \begin_layout Plain Layout
9233 文字列="empty|plain|headings|fancy"
9234 \end_layout
9235
9236 \end_inset
9237
9238 ] 使用できるページ様式の一覧です。「
9239 \begin_inset Flex Code
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 |
9244 \end_layout
9245
9246 \end_inset
9247
9248 」で区切ります。
9249 \end_layout
9250
9251 \begin_layout Description
9252 \begin_inset Flex Code
9253 status collapsed
9254
9255 \begin_layout Plain Layout
9256 Other
9257 \end_layout
9258
9259 \end_inset
9260
9261  [
9262 \begin_inset Flex Code
9263 status collapsed
9264
9265 \begin_layout Plain Layout
9266 文字列=""
9267 \end_layout
9268
9269 \end_inset
9270
9271
9272 \begin_inset Flex Code
9273 status collapsed
9274
9275 \begin_layout Plain Layout
9276
9277 \backslash
9278 documentclass
9279 \end_layout
9280
9281 \end_inset
9282
9283 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9284 \end_layout
9285
9286 \begin_layout Standard
9287 \begin_inset Flex Code
9288 status collapsed
9289
9290 \begin_layout Plain Layout
9291 ClassOptions
9292 \end_layout
9293
9294 \end_inset
9295
9296 部は「
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301 End
9302 \end_layout
9303
9304 \end_inset
9305
9306 」で閉じる必要があります。
9307 \end_layout
9308
9309 \begin_layout Subsection
9310 段落様式
9311 \begin_inset CommandInset label
9312 LatexCommand label
9313 name "subsec:段落様式"
9314
9315 \end_inset
9316
9317
9318 \end_layout
9319
9320 \begin_layout Standard
9321 段落様式の記述は、以下のようになります
9322 \begin_inset Foot
9323 status collapsed
9324
9325 \begin_layout Plain Layout
9326 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9327 \end_layout
9328
9329 \end_inset
9330
9331
9332 \end_layout
9333
9334 \begin_layout LyX-Code
9335 Style 
9336 \family roman
9337 \emph on
9338 名称
9339 \end_layout
9340
9341 \begin_layout LyX-Code
9342  ...
9343 \end_layout
9344
9345 \begin_layout LyX-Code
9346 End
9347 \end_layout
9348
9349 \begin_layout Standard
9350 ここでは、以下のコマンドを使用することができます。
9351 \end_layout
9352
9353 \begin_layout Description
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 Align
9359 \end_layout
9360
9361 \end_inset
9362
9363  [
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368
9369 \emph on
9370 block
9371 \emph default
9372 , left, right, center
9373 \end_layout
9374
9375 \end_inset
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 AlignPossible
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 \emph on
9397 block
9398 \emph default
9399 , left, right, center
9400 \end_layout
9401
9402 \end_inset
9403
9404 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9405 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9406 はできません)。
9407 \end_layout
9408
9409 \begin_layout Description
9410 \begin_inset Flex Code
9411 status collapsed
9412
9413 \begin_layout Plain Layout
9414 Argument
9415 \end_layout
9416
9417 \end_inset
9418
9419  [
9420 \begin_inset Flex Code
9421 status collapsed
9422
9423 \begin_layout Plain Layout
9424 整数
9425 \end_layout
9426
9427 \end_inset
9428
9429 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9430 でのみ意味を持ちます。コマンドまたは環
9431 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9432 \begin_inset Flex Code
9433 status collapsed
9434
9435 \begin_layout Plain Layout
9436 EndArgument
9437 \end_layout
9438
9439 \end_inset
9440
9441 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9442 \begin_inset Separator parbreak
9443 \end_inset
9444
9445
9446 \end_layout
9447
9448 \begin_deeper
9449 \begin_layout Quote
9450
9451 \family typewriter
9452 Argument 1
9453 \end_layout
9454
9455 \begin_layout Quote
9456
9457 \family typewriter
9458 ...
9459 \end_layout
9460
9461 \begin_layout Quote
9462
9463 \family typewriter
9464 EndArgument
9465 \end_layout
9466
9467 \begin_layout Quote
9468
9469 \family typewriter
9470 Argument 2
9471 \end_layout
9472
9473 \begin_layout Quote
9474
9475 \family typewriter
9476 ...
9477 \end_layout
9478
9479 \begin_layout Quote
9480
9481 \family typewriter
9482 EndArgument
9483 \end_layout
9484
9485 \begin_layout Standard
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 Argument
9491 \end_layout
9492
9493 \end_inset
9494
9495 定義内部では、以下の指定をすることができます。
9496 \end_layout
9497
9498 \begin_layout Itemize
9499 \begin_inset Flex Code
9500 status collapsed
9501
9502 \begin_layout Plain Layout
9503 LabelString
9504 \end_layout
9505
9506 \end_inset
9507
9508  
9509 \begin_inset Flex Code
9510 status collapsed
9511
9512 \begin_layout Plain Layout
9513 [文字列]
9514 \end_layout
9515
9516 \end_inset
9517
9518  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 MenuString
9524 \end_layout
9525
9526 \end_inset
9527
9528 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9529 \begin_inset space \space{}
9530 \end_inset
9531
9532
9533 \begin_inset Quotes eld
9534 \end_inset
9535
9536
9537 \begin_inset Flex Code
9538 status collapsed
9539
9540 \begin_layout Plain Layout
9541 Short Title|S
9542 \end_layout
9543
9544 \end_inset
9545
9546
9547 \begin_inset Quotes erd
9548 \end_inset
9549
9550 )。
9551 \end_layout
9552
9553 \begin_layout Itemize
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558 MenuString
9559 \end_layout
9560
9561 \end_inset
9562
9563  
9564 \begin_inset Flex Code
9565 status collapsed
9566
9567 \begin_layout Plain Layout
9568 [文字列]
9569 \end_layout
9570
9571 \end_inset
9572
9573  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9574 \begin_inset space \space{}
9575 \end_inset
9576
9577
9578 \begin_inset Quotes eld
9579 \end_inset
9580
9581
9582 \begin_inset Flex Code
9583 status collapsed
9584
9585 \begin_layout Plain Layout
9586 Short Title|S
9587 \end_layout
9588
9589 \end_inset
9590
9591
9592 \begin_inset Quotes erd
9593 \end_inset
9594
9595 )。この指定は必須ではありません。指定しない場合には、代わりに
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 LabelString
9601 \end_layout
9602
9603 \end_inset
9604
9605 がメニューに用いられます。
9606 \end_layout
9607
9608 \begin_layout Itemize
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 Tooltip
9614 \end_layout
9615
9616 \end_inset
9617
9618  
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 [文字列]
9624 \end_layout
9625
9626 \end_inset
9627
9628  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9629 \end_layout
9630
9631 \begin_layout Itemize
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 Mandatory
9637 \end_layout
9638
9639 \end_inset
9640
9641  [
9642 \begin_inset Flex Code
9643 status collapsed
9644
9645 \begin_layout Plain Layout
9646
9647 \emph on
9648 0
9649 \end_layout
9650
9651 \end_inset
9652
9653 ,
9654 \begin_inset space \thinspace{}
9655 \end_inset
9656
9657
9658 \begin_inset Flex Code
9659 status collapsed
9660
9661 \begin_layout Plain Layout
9662 1
9663 \end_layout
9664
9665 \end_inset
9666
9667 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9668 。既定では、必須引数は
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 {...}
9674 \end_layout
9675
9676 \end_inset
9677
9678 で区切られ、非必須引数は
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 [...]
9684 \end_layout
9685
9686 \end_inset
9687
9688 で区切られます。
9689 \end_layout
9690
9691 \begin_layout Itemize
9692 \begin_inset Flex Code
9693 status collapsed
9694
9695 \begin_layout Plain Layout
9696 Requires
9697 \end_layout
9698
9699 \end_inset
9700
9701  
9702 \begin_inset Flex Code
9703 status collapsed
9704
9705 \begin_layout Plain Layout
9706 [整数=0]
9707 \end_layout
9708
9709 \end_inset
9710
9711  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9712 コマンドでは、
9713 \begin_inset Flex Code
9714 status collapsed
9715
9716 \begin_layout Plain Layout
9717
9718 \backslash
9719 command[][引数]{文字列}
9720 \end_layout
9721
9722 \end_inset
9723
9724 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9725 \begin_inset Flex Code
9726 status collapsed
9727
9728 \begin_layout Plain Layout
9729 Argument 2
9730 \end_layout
9731
9732 \end_inset
9733
9734 中に
9735 \begin_inset Flex Code
9736 status collapsed
9737
9738 \begin_layout Plain Layout
9739 Requires 1
9740 \end_layout
9741
9742 \end_inset
9743
9744 ステートメントを置くことで実現できます。
9745 \end_layout
9746
9747 \begin_layout Itemize
9748 \begin_inset Flex Code
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752 LeftDelim
9753 \end_layout
9754
9755 \end_inset
9756
9757  
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 [文字列]
9763 \end_layout
9764
9765 \end_inset
9766
9767  (
9768 \begin_inset Flex Code
9769 status collapsed
9770
9771 \begin_layout Plain Layout
9772 {
9773 \end_layout
9774
9775 \end_inset
9776
9777
9778 \begin_inset Flex Code
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 [
9783 \end_layout
9784
9785 \end_inset
9786
9787 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 <br/>
9793 \end_layout
9794
9795 \end_inset
9796
9797 で指示できます。
9798 \end_layout
9799
9800 \begin_layout Itemize
9801 \begin_inset Flex Code
9802 status collapsed
9803
9804 \begin_layout Plain Layout
9805 RightDelim
9806 \end_layout
9807
9808 \end_inset
9809
9810  
9811 \begin_inset Flex Code
9812 status collapsed
9813
9814 \begin_layout Plain Layout
9815 [文字列]
9816 \end_layout
9817
9818 \end_inset
9819
9820  (
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 }
9826 \end_layout
9827
9828 \end_inset
9829
9830
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 ]
9836 \end_layout
9837
9838 \end_inset
9839
9840 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 <br/>
9846 \end_layout
9847
9848 \end_inset
9849
9850 で指示できます。
9851 \end_layout
9852
9853 \begin_layout Itemize
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 DefaultArg
9859 \end_layout
9860
9861 \end_inset
9862
9863  
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 [文字列]
9869 \end_layout
9870
9871 \end_inset
9872
9873  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9874 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
9875 \end_layout
9876
9877 \begin_layout Itemize
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 PresetArg
9883 \end_layout
9884
9885 \end_inset
9886
9887  
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 [文字列]
9893 \end_layout
9894
9895 \end_inset
9896
9897  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
9898 \end_layout
9899
9900 \begin_layout Itemize
9901 \begin_inset Flex Code
9902 status collapsed
9903
9904 \begin_layout Plain Layout
9905 Font
9906 \end_layout
9907
9908 \end_inset
9909
9910  引数の内容に用いられるフォント。
9911 \begin_inset CommandInset ref
9912 LatexCommand ref
9913 reference "subsec:フォント指定"
9914
9915 \end_inset
9916
9917 参照。
9918 \end_layout
9919
9920 \begin_layout Itemize
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 LabelFont
9926 \end_layout
9927
9928 \end_inset
9929
9930  ラベルに用いられるフォント。
9931 \begin_inset CommandInset ref
9932 LatexCommand ref
9933 reference "subsec:フォント指定"
9934
9935 \end_inset
9936
9937 参照。
9938 \end_layout
9939
9940 \begin_layout Itemize
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945 Decoration
9946 \end_layout
9947
9948 \end_inset
9949
9950  [
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955
9956 \emph on
9957 Classic
9958 \emph default
9959 , Minimalistic, Conglomerate
9960 \end_layout
9961
9962 \end_inset
9963
9964 ] 差込枠の枠とボタンに用いられる装飾様式。
9965 \end_layout
9966
9967 \begin_layout Itemize
9968 \begin_inset Flex Code
9969 status collapsed
9970
9971 \begin_layout Plain Layout
9972 AutoInsert
9973 \end_layout
9974
9975 \end_inset
9976
9977  
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 [整数=0]
9983 \end_layout
9984
9985 \end_inset
9986
9987  これが
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992 1
9993 \end_layout
9994
9995 \end_inset
9996
9997 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
9998 \end_layout
9999
10000 \begin_layout Itemize
10001 \begin_inset Flex Code
10002 status collapsed
10003
10004 \begin_layout Plain Layout
10005 InsertCotext
10006 \end_layout
10007
10008 \end_inset
10009
10010  
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 [整数=0]
10016 \end_layout
10017
10018 \end_inset
10019
10020  これが
10021 \begin_inset Flex Code
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025 1
10026 \end_layout
10027
10028 \end_inset
10029
10030 に設定されると、この引数は、副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます。
10031 \end_layout
10032
10033 \begin_layout Itemize
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 PassThruChars
10039 \end_layout
10040
10041 \end_inset
10042
10043  [
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 文字列
10049 \end_layout
10050
10051 \end_inset
10052
10053 ]
10054 \family typewriter
10055  
10056 \family default
10057 \SpecialChar LaTeX
10058 が要求する特別な翻訳は抜きにして、生の形で出力されるべき各文字を定義します。PassThruとは違って、引数用に、これは明示的に定義されなくてはなりません。つま
10059 り、引数は、親差込枠や親レイアウトからPassThruCharsを継承しません。
10060 \end_layout
10061
10062 \begin_layout Standard
10063 既定では、
10064 \begin_inset Flex Code
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068 LatexType
10069 \end_layout
10070
10071 \end_inset
10072
10073
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 Command
10079 \end_layout
10080
10081 \end_inset
10082
10083 のとき、各レイアウトで\SpecialChar LyX
10084 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 post:
10090 \end_layout
10091
10092 \end_inset
10093
10094 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099 post:1
10100 \end_layout
10101
10102 \end_inset
10103
10104 となります。後置引数は、
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 Command
10110 \end_layout
10111
10112 \end_inset
10113
10114 以外の
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 LatexType
10120 \end_layout
10121
10122 \end_inset
10123
10124 では無視されます。
10125 \end_layout
10126
10127 \begin_layout Standard
10128 (
10129 \begin_inset Flex Code
10130 status collapsed
10131
10132 \begin_layout Plain Layout
10133
10134 \backslash
10135 item[foo]
10136 \end_layout
10137
10138 \end_inset
10139
10140 のような)箇条書き
10141 \begin_inset Flex Code
10142 status collapsed
10143
10144 \begin_layout Plain Layout
10145
10146 \backslash
10147 item
10148 \end_layout
10149
10150 \end_inset
10151
10152 の引数は、前置句
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 item:
10158 \end_layout
10159
10160 \end_inset
10161
10162 の後に番号を付けます(例:
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 Argument item:1
10168 \end_layout
10169
10170 \end_inset
10171
10172 )。
10173 \end_layout
10174
10175 \end_deeper
10176 \begin_layout Description
10177 \begin_inset Flex Code
10178 status collapsed
10179
10180 \begin_layout Plain Layout
10181 BabelPreamble
10182 \end_layout
10183
10184 \end_inset
10185
10186  これは、前に現れたこの様式の
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 BabelPreamble
10192 \end_layout
10193
10194 \end_inset
10195
10196 宣言をすべて、完全に上書きしますので注意してください。「
10197 \begin_inset Flex Code
10198 status collapsed
10199
10200 \begin_layout Plain Layout
10201 EndBabelPreamble
10202 \end_layout
10203
10204 \end_inset
10205
10206 」で閉じる必要があります。これの利用法についての詳細は、第
10207 \begin_inset CommandInset ref
10208 LatexCommand ref
10209 reference "subsec:段落様式の国際化"
10210
10211 \end_inset
10212
10213 節をご覧ください。
10214 \end_layout
10215
10216 \begin_layout Description
10217 \begin_inset Flex Code
10218 status collapsed
10219
10220 \begin_layout Plain Layout
10221 BottomSep
10222 \end_layout
10223
10224 \end_inset
10225
10226  [
10227 \begin_inset Flex Code
10228 status collapsed
10229
10230 \begin_layout Plain Layout
10231 浮動小数点型=0
10232 \end_layout
10233
10234 \end_inset
10235
10236 ]
10237 \begin_inset Foot
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 ここで「浮動小数点型」とは1.5のような実数を指します。
10242 \end_layout
10243
10244 \end_inset
10245
10246  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10247 す。
10248 \end_layout
10249
10250 \begin_layout Description
10251 \begin_inset Flex Code
10252 status collapsed
10253
10254 \begin_layout Plain Layout
10255 Category
10256 \end_layout
10257
10258 \end_inset
10259
10260  [
10261 \begin_inset Flex Code
10262 status collapsed
10263
10264 \begin_layout Plain Layout
10265 文字列
10266 \end_layout
10267
10268 \end_inset
10269
10270 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10271 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10272 \end_layout
10273
10274 \begin_layout Description
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 CommandDepth
10280 \end_layout
10281
10282 \end_inset
10283
10284  XMLコマンドの深度。XML型の書式でのみ使用されます。
10285 \end_layout
10286
10287 \begin_layout Description
10288 \begin_inset Flex Code
10289 status collapsed
10290
10291 \begin_layout Plain Layout
10292 CopyStyle
10293 \end_layout
10294
10295 \end_inset
10296
10297  [
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 文字列
10303 \end_layout
10304
10305 \end_inset
10306
10307 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10308 \end_layout
10309
10310 \begin_layout Description
10311 \begin_inset Flex Code
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315 DependsOn
10316 \end_layout
10317
10318 \end_inset
10319
10320  [
10321 \begin_inset Flex Code
10322 status collapsed
10323
10324 \begin_layout Plain Layout
10325 <名称>
10326 \end_layout
10327
10328 \end_inset
10329
10330 ]
10331 \lang english
10332  
10333 \lang japanese
10334 この
10335 \emph on
10336 前に
10337 \emph default
10338 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10339 \begin_inset Foot
10340 status collapsed
10341
10342 \begin_layout Plain Layout
10343 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10344 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10345 あります。
10346 \end_layout
10347
10348 \end_inset
10349
10350
10351 \end_layout
10352
10353 \begin_layout Description
10354 \begin_inset Flex Code
10355 status collapsed
10356
10357 \begin_layout Plain Layout
10358 EndLabeltype
10359 \end_layout
10360
10361 \end_inset
10362
10363  [
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368
10369 \emph on
10370 No_Label
10371 \emph default
10372 , Box, Filled_Box, Static
10373 \end_layout
10374
10375 \end_inset
10376
10377 ] 段落の最後(あるいは
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 LatexType
10383 \end_layout
10384
10385 \end_inset
10386
10387 が、
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392 Environment
10393 \end_layout
10394
10395 \end_inset
10396
10397
10398 \begin_inset Flex Code
10399 status collapsed
10400
10401 \begin_layout Plain Layout
10402 Item_Environment
10403 \end_layout
10404
10405 \end_inset
10406
10407
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 List_Environment
10413 \end_layout
10414
10415 \end_inset
10416
10417 のいずれかの場合は、段落群の最後)に置くラベル。
10418 \begin_inset Flex Code
10419 status collapsed
10420
10421 \begin_layout Plain Layout
10422 No_Label
10423 \end_layout
10424
10425 \end_inset
10426
10427 の場合は「何もない」ことを指し、
10428 \begin_inset Flex Code
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432 Box
10433 \end_layout
10434
10435 \end_inset
10436
10437 (あるいは
10438 \begin_inset Flex Code
10439 status collapsed
10440
10441 \begin_layout Plain Layout
10442 Filled_Box
10443 \end_layout
10444
10445 \end_inset
10446
10447 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 Static
10453 \end_layout
10454
10455 \end_inset
10456
10457 は明示したテキスト文字列を指します。
10458 \end_layout
10459
10460 \begin_layout Description
10461 \begin_inset Flex Code
10462 status collapsed
10463
10464 \begin_layout Plain Layout
10465 EndLabelString
10466 \end_layout
10467
10468 \end_inset
10469
10470  [
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475 文字列=""
10476 \end_layout
10477
10478 \end_inset
10479
10480
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 Static
10486 \end_layout
10487
10488 \end_inset
10489
10490
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 EndLabelType
10496 \end_layout
10497
10498 \end_inset
10499
10500 のラベルで用いる文字列。
10501 \end_layout
10502
10503 \begin_layout Description
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 Font
10509 \end_layout
10510
10511 \end_inset
10512
10513  本文テキストとラベルの
10514 \emph on
10515 両方で
10516 \emph default
10517 用いられるフォント。第
10518 \begin_inset CommandInset ref
10519 LatexCommand ref
10520 reference "subsec:フォント指定"
10521
10522 \end_inset
10523
10524 節を参照。このフォントを定義すると、自動的に
10525 \begin_inset Flex Code
10526 status collapsed
10527
10528 \begin_layout Plain Layout
10529 LabelFont
10530 \end_layout
10531
10532 \end_inset
10533
10534 も同じ値で定義されることに注意してください。したがって、
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 LabelFont
10540 \end_layout
10541
10542 \end_inset
10543
10544 も同時に定義したい場合には、これを先に定義してください。
10545 \end_layout
10546
10547 \begin_layout Description
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552 ForceLocal
10553 \end_layout
10554
10555 \end_inset
10556
10557  [
10558 \begin_inset Flex Code
10559 status collapsed
10560
10561 \begin_layout Plain Layout
10562 int=0
10563 \end_layout
10564
10565 \end_inset
10566
10567 ] 新しい様式を\SpecialChar LyX
10568 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10569  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10570 できます。様式の
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 ForceLocal
10576 \end_layout
10577
10578 \end_inset
10579
10580 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10581 版の\SpecialChar LyX
10582 もこの様式を取り扱えるようになります。
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 ForceLocal
10588 \end_layout
10589
10590 \end_inset
10591
10592 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10593 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10594 \end_layout
10595
10596 \begin_layout Description
10597 \begin_inset Flex Code
10598 status collapsed
10599
10600 \begin_layout Plain Layout
10601 FreeSpacing
10602 \end_layout
10603
10604 \end_inset
10605
10606  [
10607 \emph on
10608
10609 \begin_inset Flex Code
10610 status collapsed
10611
10612 \begin_layout Plain Layout
10613 0
10614 \end_layout
10615
10616 \end_inset
10617
10618
10619 \emph default
10620 ,
10621 \begin_inset space \thinspace{}
10622 \end_inset
10623
10624
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629 1
10630 \end_layout
10631
10632 \end_inset
10633
10634 ] \SpecialChar LyX
10635 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10636 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10637 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10638 \begin_inset Flex Code
10639 status collapsed
10640
10641 \begin_layout Plain Layout
10642 FreeSpacing
10643 \end_layout
10644
10645 \end_inset
10646
10647 を有効にすることが認められています。\SpecialChar LyX
10648 は、\SpecialChar LaTeX
10649 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10650 \end_layout
10651
10652 \begin_layout Description
10653 \begin_inset Flex Code
10654 status collapsed
10655
10656 \begin_layout Plain Layout
10657 HTML*
10658 \end_layout
10659
10660 \end_inset
10661
10662  これらのタグは、XHTML出力で使用されます。第
10663 \begin_inset CommandInset ref
10664 LatexCommand ref
10665 reference "subsec:段落様式-XHTML"
10666
10667 \end_inset
10668
10669 節をご覧ください。
10670 \end_layout
10671
10672 \begin_layout Description
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 InnerTag
10678 \end_layout
10679
10680 \end_inset
10681
10682  [[FIXME]] (XML型書式でのみ使用されます。)
10683 \end_layout
10684
10685 \begin_layout Description
10686 \begin_inset Flex Code
10687 status collapsed
10688
10689 \begin_layout Plain Layout
10690 InPreamble
10691 \end_layout
10692
10693 \end_inset
10694
10695  [
10696 \emph on
10697
10698 \begin_inset Flex Code
10699 status collapsed
10700
10701 \begin_layout Plain Layout
10702 0
10703 \end_layout
10704
10705 \end_inset
10706
10707
10708 \emph default
10709 ,
10710 \begin_inset space \thinspace{}
10711 \end_inset
10712
10713
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 1
10719 \end_layout
10720
10721 \end_inset
10722
10723
10724 \begin_inset Flex Code
10725 status collapsed
10726
10727 \begin_layout Plain Layout
10728 1
10729 \end_layout
10730
10731 \end_inset
10732
10733 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10734 です。これは、
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 LatexType
10740 \end_layout
10741
10742 \end_inset
10743
10744
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 Command
10750 \end_layout
10751
10752 \end_inset
10753
10754 または
10755 \begin_inset Flex Code
10756 status collapsed
10757
10758 \begin_layout Plain Layout
10759 Paragraph
10760 \end_layout
10761
10762 \end_inset
10763
10764 の様式に対してのみ動作します。
10765 \end_layout
10766
10767 \begin_layout Description
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 InTitle
10773 \end_layout
10774
10775 \end_inset
10776
10777  [
10778 \emph on
10779
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 0
10785 \end_layout
10786
10787 \end_inset
10788
10789
10790 \emph default
10791 ,
10792 \begin_inset space \thinspace{}
10793 \end_inset
10794
10795
10796 \begin_inset Flex Code
10797 status collapsed
10798
10799 \begin_layout Plain Layout
10800 1
10801 \end_layout
10802
10803 \end_inset
10804
10805
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 1
10811 \end_layout
10812
10813 \end_inset
10814
10815 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
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 TitleLatexName
10831 \end_layout
10832
10833 \end_inset
10834
10835 も参照)。
10836 \end_layout
10837
10838 \begin_layout Description
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 ItemCommand
10844 \end_layout
10845
10846 \end_inset
10847
10848  [
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 文字列="item"
10854 \end_layout
10855
10856 \end_inset
10857
10858 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10859 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
10860 出力中では
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865
10866 \backslash
10867 item
10868 \end_layout
10869
10870 \end_inset
10871
10872 となります)。
10873 \end_layout
10874
10875 \begin_layout Description
10876 \begin_inset Flex Code
10877 status collapsed
10878
10879 \begin_layout Plain Layout
10880 ItemSep
10881 \end_layout
10882
10883 \end_inset
10884
10885  [
10886 \begin_inset Flex Code
10887 status collapsed
10888
10889 \begin_layout Plain Layout
10890 浮動小数点型=0
10891 \end_layout
10892
10893 \end_inset
10894
10895 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
10896 \begin_inset Flex Code
10897 status collapsed
10898
10899 \begin_layout Plain Layout
10900 ParSep
10901 \end_layout
10902
10903 \end_inset
10904
10905 だけ分離されます。しかし、その環境の項目全体は、さらにこの
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 ItemSep
10911 \end_layout
10912
10913 \end_inset
10914
10915 分だけ離されます。これは
10916 \emph on
10917 乗数
10918 \emph default
10919 であることに注意してください。
10920 \end_layout
10921
10922 \begin_layout Description
10923 \begin_inset Flex Code
10924 status collapsed
10925
10926 \begin_layout Plain Layout
10927 ItemTag
10928 \end_layout
10929
10930 \end_inset
10931
10932  [[FIXME]] (XML型書式でのみ使用されます。)
10933 \end_layout
10934
10935 \begin_layout Description
10936 \begin_inset Flex Code
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 KeepEmpty
10941 \end_layout
10942
10943 \end_inset
10944
10945  [
10946 \emph on
10947
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 0
10953 \end_layout
10954
10955 \end_inset
10956
10957
10958 \emph default
10959 ,
10960 \begin_inset space \thinspace{}
10961 \end_inset
10962
10963
10964 \begin_inset Flex Code
10965 status collapsed
10966
10967 \begin_layout Plain Layout
10968 1
10969 \end_layout
10970
10971 \end_inset
10972
10973 ] 段落を空のままにすると、\SpecialChar LaTeX
10974 出力が空になってしまうので、通常、\SpecialChar LyX
10975 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
10976 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
10977 まないある種の改行として使用することもあります。
10978 \end_layout
10979
10980 \begin_layout Description
10981 \begin_inset Flex Code
10982 status collapsed
10983
10984 \begin_layout Plain Layout
10985 LabelBottomsep
10986 \end_layout
10987
10988 \end_inset
10989
10990  [
10991 \begin_inset Flex Code
10992 status collapsed
10993
10994 \begin_layout Plain Layout
10995 浮動小数点型=0
10996 \end_layout
10997
10998 \end_inset
10999
11000 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11001 \begin_inset Flex Code
11002 status collapsed
11003
11004 \begin_layout Plain Layout
11005 Top_Environment
11006 \end_layout
11007
11008 \end_inset
11009
11010 および
11011 \begin_inset Newline linebreak
11012 \end_inset
11013
11014
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 Centered_Top_Environment
11020 \end_layout
11021
11022 \end_inset
11023
11024 )。
11025 \end_layout
11026
11027 \begin_layout Description
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 LabelCounter
11033 \end_layout
11034
11035 \end_inset
11036
11037  [
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 文字列=""
11043 \end_layout
11044
11045 \end_inset
11046
11047 ] 自動連番に使われるカウンタ名(詳しくは第
11048 \begin_inset CommandInset ref
11049 LatexCommand ref
11050 reference "subsec:カウンタ"
11051
11052 \end_inset
11053
11054 節参照)。カウンタがラベル中に表示されるようにするためには、
11055 \begin_inset Flex Code
11056 status collapsed
11057
11058 \begin_layout Plain Layout
11059 LabelString
11060 \end_layout
11061
11062 \end_inset
11063
11064 中で参照する必要があります。これは、少なくとも
11065 \begin_inset Flex Code
11066 status collapsed
11067
11068 \begin_layout Plain Layout
11069 Static
11070 \end_layout
11071
11072 \end_inset
11073
11074
11075 \begin_inset Flex Code
11076 status collapsed
11077
11078 \begin_layout Plain Layout
11079 Above
11080 \end_layout
11081
11082 \end_inset
11083
11084
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089 Centered
11090 \end_layout
11091
11092 \end_inset
11093
11094 の各
11095 \begin_inset Flex Code
11096 status collapsed
11097
11098 \begin_layout Plain Layout
11099 LabelType
11100 \end_layout
11101
11102 \end_inset
11103
11104 で動作します。
11105 \begin_inset Newline newline
11106 \end_inset
11107
11108 また、
11109 \begin_inset Flex Code
11110 status collapsed
11111
11112 \begin_layout Plain Layout
11113 LabelType
11114 \end_layout
11115
11116 \end_inset
11117
11118
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 Enumerate
11124 \end_layout
11125
11126 \end_inset
11127
11128 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133 LabelCounter myenum
11134 \end_layout
11135
11136 \end_inset
11137
11138 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11139 におけるのと同様、実際に使われるカウンタは、
11140 \begin_inset Flex Code
11141 status collapsed
11142
11143 \begin_layout Plain Layout
11144 myenumi
11145 \end_layout
11146
11147 \end_inset
11148
11149
11150 \begin_inset Flex Code
11151 status collapsed
11152
11153 \begin_layout Plain Layout
11154 myenumii
11155 \end_layout
11156
11157 \end_inset
11158
11159
11160 \begin_inset Flex Code
11161 status collapsed
11162
11163 \begin_layout Plain Layout
11164 myenumii
11165 \end_layout
11166
11167 \end_inset
11168
11169
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 myenumiv
11175 \end_layout
11176
11177 \end_inset
11178
11179 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11180 \begin_inset Newline newline
11181 \end_inset
11182
11183 カウンタの詳細については、
11184 \begin_inset CommandInset ref
11185 LatexCommand ref
11186 reference "subsec:カウンタ"
11187
11188 \end_inset
11189
11190 をご覧ください。
11191 \end_layout
11192
11193 \begin_layout Description
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198 LabelFont
11199 \end_layout
11200
11201 \end_inset
11202
11203  ラベルに使用されるフォント。
11204 \begin_inset CommandInset ref
11205 LatexCommand ref
11206 reference "subsec:フォント指定"
11207
11208 \end_inset
11209
11210 を参照。
11211 \end_layout
11212
11213 \begin_layout Description
11214 \begin_inset Flex Code
11215 status collapsed
11216
11217 \begin_layout Plain Layout
11218 LabelIndent
11219 \end_layout
11220
11221 \end_inset
11222
11223  [
11224 \begin_inset Flex Code
11225 status collapsed
11226
11227 \begin_layout Plain Layout
11228 文字列=""
11229 \end_layout
11230
11231 \end_inset
11232
11233 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11234 \end_layout
11235
11236 \begin_layout Description
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241 LabelSep
11242 \end_layout
11243
11244 \end_inset
11245
11246  [
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 文字列=""
11252 \end_layout
11253
11254 \end_inset
11255
11256 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11257 \end_layout
11258
11259 \begin_layout Description
11260 \begin_inset Flex Code
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264 LabelString
11265 \end_layout
11266
11267 \end_inset
11268
11269  [
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274 文字列=""
11275 \end_layout
11276
11277 \end_inset
11278
11279
11280 \begin_inset Flex Code
11281 status collapsed
11282
11283 \begin_layout Plain Layout
11284 Static
11285 \end_layout
11286
11287 \end_inset
11288
11289 ラベル型でラベルに使用する文字列。
11290 \begin_inset Flex Code
11291 status collapsed
11292
11293 \begin_layout Plain Layout
11294 LabelCounter
11295 \end_layout
11296
11297 \end_inset
11298
11299 を設定している場合、
11300 \begin_inset CommandInset ref
11301 LatexCommand ref
11302 reference "subsec:カウンタ"
11303
11304 \end_inset
11305
11306 に述べられている特別な整形コマンドを含めることができます。
11307 \end_layout
11308
11309 \begin_layout Description
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314 LabelStringAppendix
11315 \end_layout
11316
11317 \end_inset
11318
11319  [
11320 \begin_inset Flex Code
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 文字列=""
11325 \end_layout
11326
11327 \end_inset
11328
11329 ] これは付録の中で
11330 \begin_inset Flex Code
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334 LabelString
11335 \end_layout
11336
11337 \end_inset
11338
11339 の代わりに用いられます。各
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 LabelString
11345 \end_layout
11346
11347 \end_inset
11348
11349 ステートメントは、
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 LabelStringAppendix
11355 \end_layout
11356
11357 \end_inset
11358
11359 をもリセットすることに注意してください。
11360 \end_layout
11361
11362 \begin_layout Description
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 LabelTag
11368 \end_layout
11369
11370 \end_inset
11371
11372  [FIXME] (XML型書式でのみ使用されます。)
11373 \end_layout
11374
11375 \begin_layout Description
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 LabelType
11381 \end_layout
11382
11383 \end_inset
11384
11385  [
11386 \begin_inset Flex Code
11387 status collapsed
11388
11389 \begin_layout Plain Layout
11390
11391 \emph on
11392 No_Label
11393 \emph default
11394 , Manual, Static, Above,
11395 \begin_inset Newline newline
11396 \end_inset
11397
11398 Centered, Sensitive, Enumerate,
11399 \begin_inset Newline newline
11400 \end_inset
11401
11402 Itemize, Bibliography
11403 \end_layout
11404
11405 \end_inset
11406
11407 ]
11408 \begin_inset Separator parbreak
11409 \end_inset
11410
11411
11412 \end_layout
11413
11414 \begin_deeper
11415 \begin_layout Description
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 Manual
11421 \end_layout
11422
11423 \end_inset
11424
11425  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11426 \end_layout
11427
11428 \begin_layout Description
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 Static
11434 \end_layout
11435
11436 \end_inset
11437
11438  は、ラベルが
11439 \begin_inset Flex Code
11440 status collapsed
11441
11442 \begin_layout Plain Layout
11443 LabelString
11444 \end_layout
11445
11446 \end_inset
11447
11448 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11449 \begin_inset Flex Code
11450 status collapsed
11451
11452 \begin_layout Plain Layout
11453 LatexType
11454 \end_layout
11455
11456 \end_inset
11457
11458
11459 \begin_inset Flex Code
11460 status collapsed
11461
11462 \begin_layout Plain Layout
11463 Environment
11464 \end_layout
11465
11466 \end_inset
11467
11468 のときは、連続する同じ
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 Style
11474 \end_layout
11475
11476 \end_inset
11477
11478 の段落中、最初の段落にのみ表示されます。
11479 \end_layout
11480
11481 \begin_layout Description
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 Above
11487 \end_layout
11488
11489 \end_inset
11490
11491 および
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 Centered
11497 \end_layout
11498
11499 \end_inset
11500
11501  は、
11502 \begin_inset Flex Code
11503 status collapsed
11504
11505 \begin_layout Plain Layout
11506 Static
11507 \end_layout
11508
11509 \end_inset
11510
11511 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11512 \end_layout
11513
11514 \begin_layout Description
11515 \begin_inset Flex Code
11516 status collapsed
11517
11518 \begin_layout Plain Layout
11519 Sensitive
11520 \end_layout
11521
11522 \end_inset
11523
11524  はキャプションラベルの「図」や「表」の特別な場合です。
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 Sensitive
11530 \end_layout
11531
11532 \end_inset
11533
11534 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11535 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11536 \begin_inset Flex Code
11537 status collapsed
11538
11539 \begin_layout Plain Layout
11540 LabelString
11541 \end_layout
11542
11543 \end_inset
11544
11545 は「意味を成しません!」と表示されます。
11546 \end_layout
11547
11548 \begin_layout Description
11549 \begin_inset Flex Code
11550 status collapsed
11551
11552 \begin_layout Plain Layout
11553 Enumerate
11554 \end_layout
11555
11556 \end_inset
11557
11558  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11559 す。
11560 \end_layout
11561
11562 \begin_layout Description
11563 \begin_inset Flex Code
11564 status collapsed
11565
11566 \begin_layout Plain Layout
11567 Itemize
11568 \end_layout
11569
11570 \end_inset
11571
11572  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11573 \end_layout
11574
11575 \begin_layout Description
11576 \begin_inset Flex Code
11577 status collapsed
11578
11579 \begin_layout Plain Layout
11580 Bibliography
11581 \end_layout
11582
11583 \end_inset
11584
11585  は、
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590 LatexType BibEnvironment
11591 \end_layout
11592
11593 \end_inset
11594
11595 とともにのみ使用されます。
11596 \end_layout
11597
11598 \end_deeper
11599 \begin_layout Description
11600 \begin_inset Flex Code
11601 status collapsed
11602
11603 \begin_layout Plain Layout
11604 LangPreamble
11605 \end_layout
11606
11607 \end_inset
11608
11609  これは、この様式で既に出現した
11610 \begin_inset Flex Code
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 LangPreamble
11615 \end_layout
11616
11617 \end_inset
11618
11619 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11620 \begin_inset CommandInset ref
11621 LatexCommand ref
11622 reference "subsec:段落様式の国際化"
11623
11624 \end_inset
11625
11626 をご覧ください。
11627 \end_layout
11628
11629 \begin_layout Description
11630 \begin_inset Flex Code
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634 LatexName
11635 \end_layout
11636
11637 \end_inset
11638
11639  [
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644 <名称>
11645 \end_layout
11646
11647 \end_inset
11648
11649 ] 対応する\SpecialChar LaTeX
11650 の名称です。環境名かコマンド名を指します。
11651 \end_layout
11652
11653 \begin_layout Description
11654 \begin_inset Flex Code
11655 status collapsed
11656
11657 \begin_layout Plain Layout
11658 LatexParam
11659 \end_layout
11660
11661 \end_inset
11662
11663  [
11664 \begin_inset Flex Code
11665 status collapsed
11666
11667 \begin_layout Plain Layout
11668 <パラメータ>
11669 \end_layout
11670
11671 \end_inset
11672
11673 ] 対応する
11674 \begin_inset Flex Code
11675 status collapsed
11676
11677 \begin_layout Plain Layout
11678 LatexName
11679 \end_layout
11680
11681 \end_inset
11682
11683 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11684 内部から変更することはできません(変更可能なパラメータには
11685 \begin_inset Flex Code
11686 status collapsed
11687
11688 \begin_layout Plain Layout
11689 Argument
11690 \end_layout
11691
11692 \end_inset
11693
11694 を使用してください)。これは、全ての\SpecialChar LaTeX
11695  
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 Argument
11701 \end_layout
11702
11703 \end_inset
11704
11705 の後にそのままの形で出力されます。
11706 \end_layout
11707
11708 \begin_layout Description
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 LatexType
11714 \end_layout
11715
11716 \end_inset
11717
11718  [
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723
11724 \emph on
11725 Paragraph
11726 \emph default
11727 , Command, Environment, Item_Environment,
11728 \begin_inset Newline newline
11729 \end_inset
11730
11731 List_Environment, Bib_Environment
11732 \end_layout
11733
11734 \end_inset
11735
11736 ] レイアウトがどのように\SpecialChar LaTeX
11737 に変換されるべきかを示します
11738 \begin_inset Foot
11739 status collapsed
11740
11741 \begin_layout Plain Layout
11742 これらのルールはSGMLクラスにも適用されるので、
11743 \begin_inset Flex Code
11744 status collapsed
11745
11746 \begin_layout Plain Layout
11747 LatexType
11748 \end_layout
11749
11750 \end_inset
11751
11752 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757 db_*.inc
11758 \end_layout
11759
11760 \end_inset
11761
11762 )を見てください。
11763 \end_layout
11764
11765 \end_inset
11766
11767
11768 \begin_inset Separator parbreak
11769 \end_inset
11770
11771
11772 \end_layout
11773
11774 \begin_deeper
11775 \begin_layout Description
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780 Paragraph
11781 \end_layout
11782
11783 \end_inset
11784
11785  は、何も特別なことは意味しません。
11786 \end_layout
11787
11788 \begin_layout Description
11789 \begin_inset Flex Code
11790 status collapsed
11791
11792 \begin_layout Plain Layout
11793 Command
11794 \end_layout
11795
11796 \end_inset
11797
11798  は、
11799 \begin_inset Flex Code
11800 status collapsed
11801
11802 \begin_layout Plain Layout
11803
11804 \backslash
11805
11806 \emph on
11807 LatexName
11808 \emph default
11809 {\SpecialChar ldots
11810 }
11811 \end_layout
11812
11813 \end_inset
11814
11815 を意味します。
11816 \end_layout
11817
11818 \begin_layout Description
11819 \begin_inset Flex Code
11820 status collapsed
11821
11822 \begin_layout Plain Layout
11823 Environment
11824 \end_layout
11825
11826 \end_inset
11827
11828  は、
11829 \begin_inset Flex Code
11830 status collapsed
11831
11832 \begin_layout Plain Layout
11833
11834 \backslash
11835 begin{
11836 \emph on
11837 LatexName
11838 \emph default
11839 }\SpecialChar ldots
11840
11841 \backslash
11842 end{
11843 \emph on
11844 LatexName
11845 \emph default
11846 }
11847 \end_layout
11848
11849 \end_inset
11850
11851 を意味します。
11852 \end_layout
11853
11854 \begin_layout Description
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 Item_Environment
11860 \end_layout
11861
11862 \end_inset
11863
11864  は
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 Environment
11870 \end_layout
11871
11872 \end_inset
11873
11874 と同じですが、
11875 \begin_inset Flex Code
11876 status collapsed
11877
11878 \begin_layout Plain Layout
11879
11880 \backslash
11881 item
11882 \end_layout
11883
11884 \end_inset
11885
11886 がこの環境のすべての段落に付けられるところだけが異なっています。
11887 \end_layout
11888
11889 \begin_layout Description
11890 \begin_inset Flex Code
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 List_Environment
11895 \end_layout
11896
11897 \end_inset
11898
11899  は
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 Item_Environment
11905 \end_layout
11906
11907 \end_inset
11908
11909 と同じですが、
11910 \begin_inset Flex Code
11911 status collapsed
11912
11913 \begin_layout Plain Layout
11914 LabelWidthString
11915 \end_layout
11916
11917 \end_inset
11918
11919 が環境の引数として渡されるところだけが異なっています。
11920 \begin_inset Flex Code
11921 status collapsed
11922
11923 \begin_layout Plain Layout
11924 LabelWidthString
11925 \end_layout
11926
11927 \end_inset
11928
11929 は、
11930 \begin_inset Flex MenuItem
11931 status collapsed
11932
11933 \begin_layout Plain Layout
11934 編集\SpecialChar menuseparator
11935 段落設定
11936 \end_layout
11937
11938 \end_inset
11939
11940 ダイアログで定義することができます。
11941 \end_layout
11942
11943 \begin_layout Description
11944 \begin_inset Flex Code
11945 status collapsed
11946
11947 \begin_layout Plain Layout
11948 Bib_Environment
11949 \end_layout
11950
11951 \end_inset
11952
11953  は
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 Environment
11959 \end_layout
11960
11961 \end_inset
11962
11963 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
11964 \begin_inset Newline newline
11965 \end_inset
11966
11967
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972
11973 \backslash
11974 begin{thebibliography}{99}
11975 \end_layout
11976
11977 \end_inset
11978
11979
11980 \begin_inset Newline newline
11981 \end_inset
11982
11983 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
11984 \end_layout
11985
11986 \begin_layout Standard
11987 上記最後のいくつかをまとめると、\SpecialChar LaTeX
11988 出力は、\SpecialChar LaTeX
11989 型に依存して
11990 \end_layout
11991
11992 \begin_layout LyX-Code
11993
11994 \backslash
11995 LatexName[LatexParam]{\SpecialChar ldots
11996 }
11997 \end_layout
11998
11999 \begin_layout Standard
12000 のようになるか、
12001 \end_layout
12002
12003 \begin_layout LyX-Code
12004
12005 \backslash
12006 begin{LatexName}[LatexParam] \SpecialChar ldots
12007  
12008 \backslash
12009 end{LatexName}.
12010 \end_layout
12011
12012 \begin_layout Standard
12013 となります。
12014 \end_layout
12015
12016 \end_deeper
12017 \begin_layout Description
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022 LeftDelim
12023 \end_layout
12024
12025 \end_inset
12026
12027  [
12028 \begin_inset Flex Code
12029 status collapsed
12030
12031 \begin_layout Plain Layout
12032 文字列
12033 \end_layout
12034
12035 \end_inset
12036
12037 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042 <br/>
12043 \end_layout
12044
12045 \end_inset
12046
12047 で指示できます。
12048 \end_layout
12049
12050 \begin_layout Description
12051 \begin_inset Flex Code
12052 status collapsed
12053
12054 \begin_layout Plain Layout
12055 LeftMargin
12056 \end_layout
12057
12058 \end_inset
12059
12060  [
12061 \begin_inset Flex Code
12062 status collapsed
12063
12064 \begin_layout Plain Layout
12065 文字列=""
12066 \end_layout
12067
12068 \end_inset
12069
12070 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12071 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12072 \end_inset
12073
12074 をかけて加えられます。このパラメータは、
12075 \begin_inset Flex Code
12076 status collapsed
12077
12078 \begin_layout Plain Layout
12079 Margin
12080 \end_layout
12081
12082 \end_inset
12083
12084
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 Manual
12090 \end_layout
12091
12092 \end_inset
12093
12094 あるいは
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 Dynamic
12100 \end_layout
12101
12102 \end_inset
12103
12104 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12105 \begin_inset Newline newline
12106 \end_inset
12107
12108 たとえば「
12109 \begin_inset Flex Code
12110 status collapsed
12111
12112 \begin_layout Plain Layout
12113 MM
12114 \end_layout
12115
12116 \end_inset
12117
12118 」と指定すると、段落を通常フォントの「
12119 \begin_inset Flex Code
12120 status collapsed
12121
12122 \begin_layout Plain Layout
12123 MM
12124 \end_layout
12125
12126 \end_inset
12127
12128 」の幅だけ行頭下げを行います。文字列の前に「
12129 \begin_inset Flex Code
12130 status collapsed
12131
12132 \begin_layout Plain Layout
12133 -
12134 \end_layout
12135
12136 \end_inset
12137
12138 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12139 \end_layout
12140
12141 \begin_layout Description
12142 \begin_inset Flex Code
12143 status collapsed
12144
12145 \begin_layout Plain Layout
12146 Margin
12147 \end_layout
12148
12149 \end_inset
12150
12151  [
12152 \begin_inset Flex Code
12153 status collapsed
12154
12155 \begin_layout Plain Layout
12156
12157 \emph on
12158 Static
12159 \emph default
12160 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12161 \end_layout
12162
12163 \end_inset
12164
12165
12166 \begin_inset Newline newline
12167 \end_inset
12168
12169 このレイアウトの左余白の種類です。
12170 \begin_inset Separator parbreak
12171 \end_inset
12172
12173
12174 \end_layout
12175
12176 \begin_deeper
12177 \begin_layout Description
12178 \begin_inset Flex Code
12179 status collapsed
12180
12181 \begin_layout Plain Layout
12182 Static
12183 \end_layout
12184
12185 \end_inset
12186
12187  は固定余白を示します。
12188 \end_layout
12189
12190 \begin_layout Description
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 Manual
12196 \end_layout
12197
12198 \end_inset
12199
12200  は、左余白が
12201 \begin_inset Flex MenuItem
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 編集\SpecialChar menuseparator
12206 段落設定
12207 \end_layout
12208
12209 \end_inset
12210
12211 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12212 \end_layout
12213
12214 \begin_layout Description
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 Dynamic
12220 \end_layout
12221
12222 \end_inset
12223
12224  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12225  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12226 \end_layout
12227
12228 \begin_layout Description
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 First_Dynamic
12234 \end_layout
12235
12236 \end_inset
12237
12238  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12239 \end_layout
12240
12241 \begin_layout Description
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 Right_Address_Box
12247 \end_layout
12248
12249 \end_inset
12250
12251  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12252 \end_layout
12253
12254 \end_deeper
12255 \begin_layout Description
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260 NeedProtect
12261 \end_layout
12262
12263 \end_inset
12264
12265  [
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270
12271 \emph on
12272 0
12273 \end_layout
12274
12275 \end_inset
12276
12277 ,
12278 \begin_inset space \thinspace{}
12279 \end_inset
12280
12281
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286 1
12287 \end_layout
12288
12289 \end_inset
12290
12291 ] このレイアウト中の脆弱なコマンドが
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296
12297 \backslash
12298 protect
12299 \end_layout
12300
12301 \end_inset
12302
12303 されるべきか否か(註:これはこのコマンド自体が
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308
12309 \backslash
12310 protect
12311 \end_layout
12312
12313 \end_inset
12314
12315 されるべきかでは
12316 \emph on
12317 ありません
12318 \emph default
12319 )。
12320 \end_layout
12321
12322 \begin_layout Description
12323 \begin_inset Flex Code
12324 status collapsed
12325
12326 \begin_layout Plain Layout
12327 Newline
12328 \end_layout
12329
12330 \end_inset
12331
12332  [
12333 \begin_inset Flex Code
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 0
12338 \end_layout
12339
12340 \end_inset
12341
12342 ,
12343 \begin_inset space \thinspace{}
12344 \end_inset
12345
12346
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351
12352 \emph on
12353 1
12354 \end_layout
12355
12356 \end_inset
12357
12358 ] 新規行を\SpecialChar LaTeX
12359 の新規行(
12360 \begin_inset Flex Code
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364
12365 \backslash
12366
12367 \backslash
12368
12369 \end_layout
12370
12371 \end_inset
12372
12373 )に変換するか否か。\SpecialChar LyX
12374 中で\SpecialChar LaTeX
12375 編集をやりやすくするために、変換は無効にすることができます。
12376 \end_layout
12377
12378 \begin_layout Description
12379 \begin_inset Flex Code
12380 status collapsed
12381
12382 \begin_layout Plain Layout
12383 NextNoIndent
12384 \end_layout
12385
12386 \end_inset
12387
12388  [
12389 \begin_inset Flex Code
12390 status collapsed
12391
12392 \begin_layout Plain Layout
12393
12394 \emph on
12395 0
12396 \end_layout
12397
12398 \end_inset
12399
12400 ,
12401 \begin_inset space \thinspace{}
12402 \end_inset
12403
12404
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409 1
12410 \end_layout
12411
12412 \end_inset
12413
12414 ] 真に設定すると、
12415 \begin_inset Flex Code
12416 status collapsed
12417
12418 \begin_layout Plain Layout
12419 DefaultStyle
12420 \end_layout
12421
12422 \end_inset
12423
12424  (通常
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 Standard
12430 \end_layout
12431
12432 \end_inset
12433
12434 )段落が行頭下げになっている場合でも、この型の段落に続くそれらの段落は、字下げされません(逆に言えば,既定でない段落には影響を与えません)。
12435 \end_layout
12436
12437 \begin_layout Description
12438 \begin_inset Flex Code
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 ObsoletedBy
12443 \end_layout
12444
12445 \end_inset
12446
12447  [
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 <名称>
12453 \end_layout
12454
12455 \end_inset
12456
12457 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12458 \end_layout
12459
12460 \begin_layout Description
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 ParagraphGroup
12466 \end_layout
12467
12468 \end_inset
12469
12470  [
12471 \begin_inset Flex Code
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 0
12476 \end_layout
12477
12478 \end_inset
12479
12480 ,
12481 \begin_inset space \thinspace{}
12482 \end_inset
12483
12484
12485 \begin_inset Flex Code
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489 1
12490 \end_layout
12491
12492 \end_inset
12493
12494 ] 同じ型の段落が引き続く場合、同じ段落として取り扱うか否かを決定します。これは、そのような連続グループに対して、
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 GuiLabel
12500 \end_layout
12501
12502 \end_inset
12503
12504 が一度だけ出力される効果があります。既定では、
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 LaTeXType
12510 \end_layout
12511
12512 \end_inset
12513
12514
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 Environment
12520 \end_layout
12521
12522 \end_inset
12523
12524 および
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 Bib_Environment
12530 \end_layout
12531
12532 \end_inset
12533
12534  については有効であり、他の型すべてについて無効になっています。
12535 \end_layout
12536
12537 \begin_layout Description
12538 \begin_inset Flex Code
12539 status collapsed
12540
12541 \begin_layout Plain Layout
12542 ParbreakIsNewline
12543 \end_layout
12544
12545 \end_inset
12546
12547  [
12548 \begin_inset Flex Code
12549 status collapsed
12550
12551 \begin_layout Plain Layout
12552
12553 \emph on
12554 0
12555 \end_layout
12556
12557 \end_inset
12558
12559 ,
12560 \begin_inset space \thinspace{}
12561 \end_inset
12562
12563
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 1
12569 \end_layout
12570
12571 \end_inset
12572
12573 ] \SpecialChar LaTeX
12574 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 PassThru 1
12580 \end_layout
12581
12582 \end_inset
12583
12584 と併用すれば、(\SpecialChar TeX
12585 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12586 \end_layout
12587
12588 \begin_layout Description
12589 \begin_inset Flex Code
12590 status collapsed
12591
12592 \begin_layout Plain Layout
12593 ParIndent
12594 \end_layout
12595
12596 \end_inset
12597
12598  [
12599 \begin_inset Flex Code
12600 status collapsed
12601
12602 \begin_layout Plain Layout
12603 文字列=""
12604 \end_layout
12605
12606 \end_inset
12607
12608 ] 段落の最初の行の行頭下げ。レイアウトによっては
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 Parindent
12614 \end_layout
12615
12616 \end_inset
12617
12618 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 NextNoIndent
12624 \end_layout
12625
12626 \end_inset
12627
12628 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12629 \begin_inset Flex Code
12630 status collapsed
12631
12632 \begin_layout Plain Layout
12633 Parindent
12634 \end_layout
12635
12636 \end_inset
12637
12638 ではなく、この環境の
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643 Parindent
12644 \end_layout
12645
12646 \end_inset
12647
12648 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12649 \end_layout
12650
12651 \begin_layout Description
12652 \begin_inset Flex Code
12653 status collapsed
12654
12655 \begin_layout Plain Layout
12656 ParSep
12657 \end_layout
12658
12659 \end_inset
12660
12661  [
12662 \begin_inset Flex Code
12663 status collapsed
12664
12665 \begin_layout Plain Layout
12666 浮動小数点型=0
12667 \end_layout
12668
12669 \end_inset
12670
12671 ] このレイアウトの2段落間の垂直余白。
12672 \end_layout
12673
12674 \begin_layout Description
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 Parskip
12680 \end_layout
12681
12682 \end_inset
12683
12684  [
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 浮動小数点型=0
12690 \end_layout
12691
12692 \end_inset
12693
12694 ] \SpecialChar LyX
12695 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12696 択した際には、\SpecialChar LaTeX
12697 型「段落」レイアウトの
12698 \begin_inset Flex Code
12699 status collapsed
12700
12701 \begin_layout Plain Layout
12702 ParIndent
12703 \end_layout
12704
12705 \end_inset
12706
12707 は無視され、すべての段落はこの
12708 \begin_inset Flex Code
12709 status collapsed
12710
12711 \begin_layout Plain Layout
12712 Parskip
12713 \end_layout
12714
12715 \end_inset
12716
12717 引数分だけ引き離されます。垂直余白は、
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722 DefaultHeight
12723 \end_layout
12724
12725 \end_inset
12726
12727 を標準フォントでの1行の高さとすると、
12728 \begin_inset Flex Code
12729 status collapsed
12730
12731 \begin_layout Plain Layout
12732 Parskipの値
12733 \end_layout
12734
12735 \end_inset
12736
12737
12738 \begin_inset Formula $\times$
12739 \end_inset
12740
12741
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746 DefaultHeight
12747 \end_layout
12748
12749 \end_inset
12750
12751 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
12752 \end_layout
12753
12754 \begin_layout Description
12755 \begin_inset Flex Code
12756 status collapsed
12757
12758 \begin_layout Plain Layout
12759 PassThru
12760 \end_layout
12761
12762 \end_inset
12763
12764  [
12765 \emph on
12766
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771 0
12772 \end_layout
12773
12774 \end_inset
12775
12776
12777 \emph default
12778 ,
12779 \begin_inset space \thinspace{}
12780 \end_inset
12781
12782
12783 \begin_inset Flex Code
12784 status collapsed
12785
12786 \begin_layout Plain Layout
12787 1
12788 \end_layout
12789
12790 \end_inset
12791
12792 ] この段落の内容が、\SpecialChar LaTeX
12793 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
12794 \end_layout
12795
12796 \begin_layout Description
12797 \begin_inset Flex Code
12798 status collapsed
12799
12800 \begin_layout Plain Layout
12801 PassThruChars
12802 \end_layout
12803
12804 \end_inset
12805
12806  [
12807 \begin_inset Flex Code
12808 status collapsed
12809
12810 \begin_layout Plain Layout
12811 文字列
12812 \end_layout
12813
12814 \end_inset
12815
12816 ]
12817 \family typewriter
12818  
12819 \family default
12820 \SpecialChar LaTeX
12821 が要請する特別な翻訳なしで。生の形で出力されるべき、それぞれの文字を定義します。
12822 \end_layout
12823
12824 \begin_layout Description
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 Preamble
12830 \end_layout
12831
12832 \end_inset
12833
12834  この様式が使用されたときに、\SpecialChar LaTeX
12835 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840 EndPreamble
12841 \end_layout
12842
12843 \end_inset
12844
12845 」で閉じる必要があります。
12846 \end_layout
12847
12848 \begin_layout Description
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 RefPrefix
12854 \end_layout
12855
12856 \end_inset
12857
12858  [
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 文字列
12864 \end_layout
12865
12866 \end_inset
12867
12868 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
12869 \end_layout
12870
12871 \begin_layout Description
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 Requires
12877 \end_layout
12878
12879 \end_inset
12880
12881  [
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 文字列
12887 \end_layout
12888
12889 \end_inset
12890
12891 ] この様式が機能
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 文字列
12897 \end_layout
12898
12899 \end_inset
12900
12901 を必要とするかどうか(機能詳細については、第
12902 \begin_inset CommandInset ref
12903 LatexCommand ref
12904 reference "chap:関数一覧"
12905
12906 \end_inset
12907
12908 節参照)。特定のオプションをとるパッケージを要求する場合、
12909 \begin_inset Flex Code
12910 status collapsed
12911
12912 \begin_layout Plain Layout
12913 PackageOptions
12914 \end_layout
12915
12916 \end_inset
12917
12918 を汎用テキストクラスパラメータとして追加して使うことができます(
12919 \begin_inset CommandInset ref
12920 LatexCommand ref
12921 reference "subsec:汎用テキストクラスパラメータ"
12922
12923 \end_inset
12924
12925 を参照)。
12926 \end_layout
12927
12928 \begin_layout Description
12929 \begin_inset Flex Code
12930 status collapsed
12931
12932 \begin_layout Plain Layout
12933 ResetArgs
12934 \end_layout
12935
12936 \end_inset
12937
12938  [
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943
12944 \emph on
12945 0
12946 \end_layout
12947
12948 \end_inset
12949
12950 ,
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 1
12956 \end_layout
12957
12958 \end_inset
12959
12960 ] (
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 Argument
12966 \end_layout
12967
12968 \end_inset
12969
12970 タグで定義された)この様式の\SpecialChar LaTeX
12971 引数をリセットします。これは、様式を
12972 \begin_inset Flex Code
12973 status collapsed
12974
12975 \begin_layout Plain Layout
12976 CopyStyle
12977 \end_layout
12978
12979 \end_inset
12980
12981 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
12982 \end_layout
12983
12984 \begin_layout Description
12985 \begin_inset Flex Code
12986 status collapsed
12987
12988 \begin_layout Plain Layout
12989 RightDelim
12990 \end_layout
12991
12992 \end_inset
12993
12994  [
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999 文字列
13000 \end_layout
13001
13002 \end_inset
13003
13004 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 <br/>
13010 \end_layout
13011
13012 \end_inset
13013
13014 で指示できます。
13015 \end_layout
13016
13017 \begin_layout Description
13018 \begin_inset Flex Code
13019 status collapsed
13020
13021 \begin_layout Plain Layout
13022 RightMargin
13023 \end_layout
13024
13025 \end_inset
13026
13027  [
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 文字列=""
13033 \end_layout
13034
13035 \end_inset
13036
13037
13038 \begin_inset Flex Code
13039 status collapsed
13040
13041 \begin_layout Plain Layout
13042 LeftMargin
13043 \end_layout
13044
13045 \end_inset
13046
13047 に同様。
13048 \end_layout
13049
13050 \begin_layout Description
13051 \begin_inset Flex Code
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055 Spacing
13056 \end_layout
13057
13058 \end_inset
13059
13060  [
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065
13066 \emph on
13067 single
13068 \end_layout
13069
13070 \end_inset
13071
13072
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 onehalf
13078 \end_layout
13079
13080 \end_inset
13081
13082
13083 \begin_inset Flex Code
13084 status collapsed
13085
13086 \begin_layout Plain Layout
13087 double
13088 \end_layout
13089
13090 \end_inset
13091
13092
13093 \begin_inset Flex Code
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 other
13098 \begin_inset space ~
13099 \end_inset
13100
13101 <
13102 \emph on
13103
13104 \emph default
13105 >
13106 \end_layout
13107
13108 \end_inset
13109
13110 ]
13111 \lang english
13112  
13113 \lang japanese
13114 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13115 \begin_inset Flex Code
13116 status collapsed
13117
13118 \begin_layout Plain Layout
13119 single
13120 \end_layout
13121
13122 \end_inset
13123
13124
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 onehalf
13130 \end_layout
13131
13132 \end_inset
13133
13134
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 double
13140 \end_layout
13141
13142 \end_inset
13143
13144 は、それぞれ乗数1・1.25・1.667に対応します。引数
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149 other
13150 \end_layout
13151
13152 \end_inset
13153
13154 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13155 \begin_inset Flex Code
13156 status collapsed
13157
13158 \begin_layout Plain Layout
13159 Spacing
13160 \end_layout
13161
13162 \end_inset
13163
13164 は、\SpecialChar LaTeX
13165 パッケージ
13166 \begin_inset Flex Code
13167 status collapsed
13168
13169 \begin_layout Plain Layout
13170 setspace
13171 \end_layout
13172
13173 \end_inset
13174
13175 パッケージを使用した、限定的な\SpecialChar LaTeX
13176 コードを生成することを意味することにご注意ください。
13177 \end_layout
13178
13179 \begin_layout Description
13180 \begin_inset Flex Code
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184 Spellcheck
13185 \end_layout
13186
13187 \end_inset
13188
13189  [
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 0
13195 \end_layout
13196
13197 \end_inset
13198
13199 ,
13200 \begin_inset space \thinspace{}
13201 \end_inset
13202
13203
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 1
13209 \end_layout
13210
13211 \end_inset
13212
13213 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13214 \end_layout
13215
13216 \begin_layout Description
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 TextFont
13222 \end_layout
13223
13224 \end_inset
13225
13226  本文に使うフォント。
13227 \begin_inset CommandInset ref
13228 LatexCommand ref
13229 reference "subsec:フォント指定"
13230
13231 \end_inset
13232
13233 参照。
13234 \end_layout
13235
13236 \begin_layout Description
13237 \begin_inset Flex Code
13238 status collapsed
13239
13240 \begin_layout Plain Layout
13241 TocLevel
13242 \end_layout
13243
13244 \end_inset
13245
13246  [
13247 \begin_inset Flex Code
13248 status collapsed
13249
13250 \begin_layout Plain Layout
13251 整数型=3
13252 \end_layout
13253
13254 \end_inset
13255
13256 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13257 \end_layout
13258
13259 \begin_layout Description
13260 \begin_inset Flex Code
13261 status collapsed
13262
13263 \begin_layout Plain Layout
13264 ToggleIndent
13265 \end_layout
13266
13267 \end_inset
13268
13269  [
13270 \emph on
13271
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 default
13277 \end_layout
13278
13279 \end_inset
13280
13281
13282 \emph default
13283
13284 \begin_inset Flex Code
13285 status collapsed
13286
13287 \begin_layout Plain Layout
13288 always
13289 \end_layout
13290
13291 \end_inset
13292
13293
13294 \begin_inset Flex Code
13295 status collapsed
13296
13297 \begin_layout Plain Layout
13298 never
13299 \end_layout
13300
13301 \end_inset
13302
13303 ] このタグは、この段落の1行目の行頭下げが、段落設定ダイアログで切り替えられるかどうかを決めます。
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 default
13309 \end_layout
13310
13311 \end_inset
13312
13313 が指定されると、文書設定が「行頭下げ」段落様式を使用しているときに、行頭下げを変更することができます。
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 always
13319 \end_layout
13320
13321 \end_inset
13322
13323 は、文書設定にかかわらず変更することができ、
13324 \begin_inset Flex Code
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 never
13329 \end_layout
13330
13331 \end_inset
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 TopSep
13342 \end_layout
13343
13344 \end_inset
13345
13346  [
13347 \begin_inset Flex Code
13348 status collapsed
13349
13350 \begin_layout Plain Layout
13351 浮動小数点型=0
13352 \end_layout
13353
13354 \end_inset
13355
13356 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13357 の最大値がとられます。
13358 \end_layout
13359
13360 \begin_layout Subsection
13361 段落様式の国際化
13362 \begin_inset CommandInset label
13363 LatexCommand label
13364 name "subsec:段落様式の国際化"
13365
13366 \end_inset
13367
13368
13369 \end_layout
13370
13371 \begin_layout Standard
13372 \SpecialChar LyX
13373 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13374 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13375 \lang french
13376 Théorème
13377 \lang japanese
13378  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13379 \end_layout
13380
13381 \begin_layout Standard
13382 もし
13383 \begin_inset Flex MenuItem
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 Style
13388 \end_layout
13389
13390 \end_inset
13391
13392 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13393 \begin_inset Flex MenuItem
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 LangPreamble
13398 \end_layout
13399
13400 \end_inset
13401
13402
13403 \begin_inset Flex MenuItem
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 BabelPreamble
13408 \end_layout
13409
13410 \end_inset
13411
13412 を使用することができます。以下の抜粋(
13413 \begin_inset Flex MenuItem
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 theorems-ams.inc
13418 \end_layout
13419
13420 \end_inset
13421
13422 より)は、これがどう動作するかを示すものです。
13423 \end_layout
13424
13425 \begin_layout LyX-Code
13426 Preamble
13427 \begin_inset Separator parbreak
13428 \end_inset
13429
13430
13431 \end_layout
13432
13433 \begin_deeper
13434 \begin_layout LyX-Code
13435   
13436 \backslash
13437 theoremstyle{remark}
13438 \end_layout
13439
13440 \begin_layout LyX-Code
13441   
13442 \backslash
13443 newtheorem{claim}[thm]{
13444 \backslash
13445 protect
13446 \backslash
13447 claimname}
13448 \end_layout
13449
13450 \begin_layout LyX-Code
13451 EndPreamble
13452 \end_layout
13453
13454 \begin_layout LyX-Code
13455 LangPreamble
13456 \end_layout
13457
13458 \begin_layout LyX-Code
13459   
13460 \backslash
13461 providecommand{
13462 \backslash
13463 claimname}{_(Claim)}
13464 \end_layout
13465
13466 \begin_layout LyX-Code
13467 EndLangPreamble
13468 \end_layout
13469
13470 \begin_layout LyX-Code
13471 BabelPreamble
13472 \end_layout
13473
13474 \begin_layout LyX-Code
13475     
13476 \backslash
13477 addto
13478 \backslash
13479 captions$$lang{
13480 \backslash
13481 renewcommand{
13482 \backslash
13483 claimname}{_(Claim)}}
13484 \end_layout
13485
13486 \begin_layout LyX-Code
13487 EndBabelPreamble
13488 \end_layout
13489
13490 \end_deeper
13491 \begin_layout Standard
13492 原則として、
13493 \begin_inset Flex MenuItem
13494 status collapsed
13495
13496 \begin_layout Plain Layout
13497 LangPreamble
13498 \end_layout
13499
13500 \end_inset
13501
13502
13503 \begin_inset Flex MenuItem
13504 status collapsed
13505
13506 \begin_layout Plain Layout
13507 BabelPreamble
13508 \end_layout
13509
13510 \end_inset
13511
13512 タグ内には、有効な\SpecialChar LaTeX
13513 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13514 は、\SpecialChar LaTeX
13515 コマンド
13516 \begin_inset Flex Code
13517 status collapsed
13518
13519 \begin_layout Plain Layout
13520
13521 \backslash
13522 claimname
13523 \end_layout
13524
13525 \end_inset
13526
13527 とその
13528 \begin_inset Flex Code
13529 status collapsed
13530
13531 \begin_layout Plain Layout
13532
13533 \backslash
13534 newtheorem
13535 \end_layout
13536
13537 \end_inset
13538
13539 中での用い方です。
13540 \end_layout
13541
13542 \begin_layout Standard
13543 \begin_inset Flex Code
13544 status collapsed
13545
13546 \begin_layout Plain Layout
13547 LangPreamble
13548 \end_layout
13549
13550 \end_inset
13551
13552 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13553 \begin_inset Flex Code
13554 status collapsed
13555
13556 \begin_layout Plain Layout
13557 Preamble
13558 \end_layout
13559
13560 \end_inset
13561
13562 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13563 \begin_inset Flex Code
13564 status collapsed
13565
13566 \begin_layout Plain Layout
13567 _()
13568 \end_layout
13569
13570 \end_inset
13571
13572 が使用されていることです。これは、\SpecialChar LyX
13573 が\SpecialChar LaTeX
13574 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13575 \end_layout
13576
13577 \begin_layout Standard
13578 \begin_inset Flex Code
13579 status collapsed
13580
13581 \begin_layout Plain Layout
13582 BabelPreamble
13583 \end_layout
13584
13585 \end_inset
13586
13587 タグは、複数言語文書をサポートし、
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 babel
13593 \end_layout
13594
13595 \end_inset
13596
13597 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13598 の場合には、
13599 \begin_inset Flex Code
13600 status collapsed
13601
13602 \begin_layout Plain Layout
13603 _()
13604 \end_layout
13605
13606 \end_inset
13607
13608 の引数は、その当該言語への翻訳で置き換えられ、
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613 $$lang
13614 \end_layout
13615
13616 \end_inset
13617
13618 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13619 \end_layout
13620
13621 \begin_layout Standard
13622 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13623 \end_layout
13624
13625 \begin_layout LyX-Code
13626
13627 \backslash
13628 addto
13629 \backslash
13630 captionsfrench{
13631 \backslash
13632 renewcommand{
13633 \backslash
13634 claimname}{Affirmation}}
13635 \begin_inset Newline newline
13636 \end_inset
13637
13638
13639 \backslash
13640 addto
13641 \backslash
13642 captionsngerman{
13643 \backslash
13644 renewcommand{
13645 \backslash
13646 claimname}{Behauptung}}
13647 \begin_inset Newline newline
13648 \end_inset
13649
13650
13651 \backslash
13652 providecommand{
13653 \backslash
13654 claimname}{Behauptung}
13655 \end_layout
13656
13657 \begin_layout Standard
13658 それから、\SpecialChar LaTeX
13659
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 babel
13665 \end_layout
13666
13667 \end_inset
13668
13669 は協力して、出力に正しい文字列を生成します。
13670 \end_layout
13671
13672 \begin_layout Standard
13673 ここで注意しておくべき一つの重要な点は、翻訳は、
13674 \begin_inset Flex Code
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 layouttranslations
13679 \end_layout
13680
13681 \end_inset
13682
13683 ファイルを通じて、\SpecialChar LyX
13684 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 layouttranslations
13690 \end_layout
13691
13692 \end_inset
13693
13694 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13695 の国際化ルーチンでは取り扱われないので、
13696 \begin_inset Flex MenuItem
13697 status collapsed
13698
13699 \begin_layout Plain Layout
13700 LangPreamble
13701 \end_layout
13702
13703 \end_inset
13704
13705
13706 \begin_inset Flex MenuItem
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 BabelPreamble
13711 \end_layout
13712
13713 \end_inset
13714
13715 は、事実上、\SpecialChar LyX
13716 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
13717 に同梱させようとい
13718 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
13719 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
13720 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
13721 \end_layout
13722
13723 \begin_layout Subsection
13724 フロート
13725 \begin_inset CommandInset label
13726 LatexCommand label
13727 name "subsec:フロート"
13728
13729 \end_inset
13730
13731
13732 \end_layout
13733
13734 \begin_layout Standard
13735 \SpecialChar LyX
13736 第1.3.0版以来、テキストクラス自体の中でフロート(
13737 \begin_inset Flex MenuItem
13738 status collapsed
13739
13740 \begin_layout Plain Layout
13741 figure
13742 \end_layout
13743
13744 \end_inset
13745
13746
13747 \begin_inset Flex MenuItem
13748 status collapsed
13749
13750 \begin_layout Plain Layout
13751 table
13752 \end_layout
13753
13754 \end_inset
13755
13756 ・\SpecialChar ldots
13757 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
13758 \begin_inset Flex Code
13759 status collapsed
13760
13761 \begin_layout Plain Layout
13762 stdfloats.inc
13763 \end_layout
13764
13765 \end_inset
13766
13767 ファイルに含まれているので、作業中のレイアウトファイルに
13768 \end_layout
13769
13770 \begin_layout LyX-Code
13771 Input stdfloats.inc
13772 \end_layout
13773
13774 \begin_layout Standard
13775 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
13776 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
13777 ましょう。
13778 \end_layout
13779
13780 \begin_layout Description
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 AllowedPlacement
13786 \end_layout
13787
13788 \end_inset
13789
13790  [
13791 \begin_inset Flex Code
13792 status collapsed
13793
13794 \begin_layout Plain Layout
13795 文字列
13796 \end_layout
13797
13798 \end_inset
13799
13800 =!htbpH] このフロート型に許可された配置用の選択肢。値は、配置文字からなる文字列です。使用できる文字には、
13801 \emph on
13802 h
13803 \emph default
13804  (
13805 \begin_inset Quotes eld
13806 \end_inset
13807
13808 here if possible:可能ならば現在位置に
13809 \begin_inset Quotes erd
13810 \end_inset
13811
13812 ), 
13813 \emph on
13814 t
13815 \emph default
13816  (
13817 \begin_inset Quotes eld
13818 \end_inset
13819
13820 top of page:ページ上部
13821 \begin_inset Quotes erd
13822 \end_inset
13823
13824 )・
13825 \emph on
13826 b
13827 \emph default
13828  (
13829 \begin_inset Quotes eld
13830 \end_inset
13831
13832 bottom of page:ページ下部
13833 \begin_inset Quotes erd
13834 \end_inset
13835
13836 )・
13837 \emph on
13838 p
13839 \emph default
13840  (
13841 \begin_inset Quotes eld
13842 \end_inset
13843
13844 page of floats:フロートを独立したページに
13845 \begin_inset Quotes erd
13846 \end_inset
13847
13848 )・
13849 \emph on
13850 H
13851 \emph default
13852  (
13853 \begin_inset Quotes eld
13854 \end_inset
13855
13856 here definitely:何としても現在位置に置く
13857 \begin_inset Quotes erd
13858 \end_inset
13859
13860 )・
13861 \emph on
13862 !
13863 \emph default
13864  (
13865 \begin_inset Quotes eld
13866 \end_inset
13867
13868 ignore LaTeX rules:LaTeXの規則を無視する
13869 \begin_inset Quotes erd
13870 \end_inset
13871
13872 )があります。文字列中の文字の順序は関係ありません。配置の選択肢を与えない場合には、文字列として
13873 \emph on
13874 none
13875 \emph default
13876 を与えてください。
13877 \end_layout
13878
13879 \begin_layout Description
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884 AllowsSideways
13885 \end_layout
13886
13887 \end_inset
13888
13889  [
13890 \begin_inset Flex Code
13891 status collapsed
13892
13893 \begin_layout Plain Layout
13894 0
13895 \end_layout
13896
13897 \end_inset
13898
13899 ,
13900 \begin_inset space \thinspace{}
13901 \end_inset
13902
13903
13904 \emph on
13905
13906 \begin_inset Flex Code
13907 status collapsed
13908
13909 \begin_layout Plain Layout
13910 1
13911 \end_layout
13912
13913 \end_inset
13914
13915
13916 \emph default
13917 ] フロートを、\SpecialChar LaTeX
13918 パッケージの
13919 \family typewriter
13920 rotfloat
13921 \family default
13922  (横向きフロート)を使って回転させることを許可するか否かを指定。フロートにこの機能をサポートさせないときには、
13923 \begin_inset Flex Code
13924 status collapsed
13925
13926 \begin_layout Plain Layout
13927 0
13928 \end_layout
13929
13930 \end_inset
13931
13932 を指定してください。
13933 \end_layout
13934
13935 \begin_layout Description
13936 \begin_inset Flex Code
13937 status collapsed
13938
13939 \begin_layout Plain Layout
13940 AllowsWide
13941 \end_layout
13942
13943 \end_inset
13944
13945  [
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950 0
13951 \end_layout
13952
13953 \end_inset
13954
13955 ,
13956 \begin_inset space \thinspace{}
13957 \end_inset
13958
13959
13960 \emph on
13961
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 1
13967 \end_layout
13968
13969 \end_inset
13970
13971
13972 \emph default
13973 ] このフロートに、二段組段落において段落をまたぐ、星付き版があるか否かを定義。フロートにこの機能をサポートさせないときには、
13974 \begin_inset Flex Code
13975 status collapsed
13976
13977 \begin_layout Plain Layout
13978 0
13979 \end_layout
13980
13981 \end_inset
13982
13983 を指定してください。
13984 \end_layout
13985
13986 \begin_layout Description
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 Extension
13992 \end_layout
13993
13994 \end_inset
13995
13996  [
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001 文字列
14002 \end_layout
14003
14004 \end_inset
14005
14006 =
14007 \begin_inset Quotes erd
14008 \end_inset
14009
14010
14011 \begin_inset Quotes erd
14012 \end_inset
14013
14014 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14015 がキャプションを書き込むファイルです。
14016 \end_layout
14017
14018 \begin_layout Description
14019 \begin_inset Flex Code
14020 status collapsed
14021
14022 \begin_layout Plain Layout
14023 GuiName
14024 \end_layout
14025
14026 \end_inset
14027
14028  [
14029 \begin_inset Flex Code
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 文字列
14034 \end_layout
14035
14036 \end_inset
14037
14038 =
14039 \begin_inset Quotes erd
14040 \end_inset
14041
14042
14043 \begin_inset Quotes erd
14044 \end_inset
14045
14046 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14047 \end_layout
14048
14049 \begin_layout Description
14050 \begin_inset Flex Code
14051 status collapsed
14052
14053 \begin_layout Plain Layout
14054 HTML*
14055 \end_layout
14056
14057 \end_inset
14058
14059  これらは、XHTML出力で使用されます。
14060 \begin_inset CommandInset ref
14061 LatexCommand ref
14062 reference "sec:XHTML出力のタグ"
14063
14064 \end_inset
14065
14066 をご覧ください。
14067 \end_layout
14068
14069 \begin_layout Description
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 IsPredefined
14075 \end_layout
14076
14077 \end_inset
14078
14079  [
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084
14085 \emph on
14086 0
14087 \end_layout
14088
14089 \end_inset
14090
14091 ,
14092 \begin_inset space \thinspace{}
14093 \end_inset
14094
14095
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 1
14101 \end_layout
14102
14103 \end_inset
14104
14105 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14106 パッケージ
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 float
14112 \end_layout
14113
14114 \end_inset
14115
14116 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 0
14122 \end_layout
14123
14124 \end_inset
14125
14126 で、この場合
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131 float
14132 \end_layout
14133
14134 \end_inset
14135
14136 を使用します。\SpecialChar LaTeX
14137 ドキュメントクラス中に既に定義されているときには、
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 0
14143 \end_layout
14144
14145 \end_inset
14146
14147 に設定しなくてはなりません。
14148 \end_layout
14149
14150 \begin_layout Description
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 ListCommand
14156 \end_layout
14157
14158 \end_inset
14159
14160  [
14161 \begin_inset Flex Code
14162 status collapsed
14163
14164 \begin_layout Plain Layout
14165 文字列
14166 \end_layout
14167
14168 \end_inset
14169
14170 =
14171 \begin_inset Quotes erd
14172 \end_inset
14173
14174
14175 \begin_inset Quotes erd
14176 \end_inset
14177
14178 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14179 \backslash
14180 」は書きません。
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 NeedsFloatPkg
14186 \end_layout
14187
14188 \end_inset
14189
14190 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14191 \emph on
14192 必ず
14193 \emph default
14194 指定しなくてはなりません。
14195 \begin_inset Flex Code
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199 NeedsFloatPkg
14200 \end_layout
14201
14202 \end_inset
14203
14204 が真の時は、標準的な方法が存在するので、これは無視されます。
14205 \end_layout
14206
14207 \begin_layout Description
14208 \begin_inset Flex Code
14209 status collapsed
14210
14211 \begin_layout Plain Layout
14212 ListName
14213 \end_layout
14214
14215 \end_inset
14216
14217  [
14218 \begin_inset Flex Code
14219 status collapsed
14220
14221 \begin_layout Plain Layout
14222 文字列
14223 \end_layout
14224
14225 \end_inset
14226
14227 =
14228 \begin_inset Quotes erd
14229 \end_inset
14230
14231
14232 \begin_inset Quotes erd
14233 \end_inset
14234
14235 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14236 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14237 に渡さ
14238 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14239 \end_layout
14240
14241 \begin_layout Description
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 NumberWithin
14247 \end_layout
14248
14249 \end_inset
14250
14251  [
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 文字列
14257 \end_layout
14258
14259 \end_inset
14260
14261 =
14262 \begin_inset Quotes erd
14263 \end_inset
14264
14265
14266 \begin_inset Quotes erd
14267 \end_inset
14268
14269 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 NumberWithin
14275 \end_layout
14276
14277 \end_inset
14278
14279 が「
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 chapter
14285 \end_layout
14286
14287 \end_inset
14288
14289 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14290 \end_layout
14291
14292 \begin_layout Description
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 Placement
14298 \end_layout
14299
14300 \end_inset
14301
14302  [
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 文字列
14308 \end_layout
14309
14310 \end_inset
14311
14312 =
14313 \begin_inset Quotes erd
14314 \end_inset
14315
14316
14317 \begin_inset Quotes erd
14318 \end_inset
14319
14320 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14321 表記に従い、
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326 t
14327 \end_layout
14328
14329 \end_inset
14330
14331 ならば上部(top)、
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 b
14337 \end_layout
14338
14339 \end_inset
14340
14341 ならば下部(bottom)、
14342 \begin_inset Flex Code
14343 status collapsed
14344
14345 \begin_layout Plain Layout
14346 p
14347 \end_layout
14348
14349 \end_inset
14350
14351 ならばページ(page)、
14352 \begin_inset Flex Code
14353 status collapsed
14354
14355 \begin_layout Plain Layout
14356 h
14357 \end_layout
14358
14359 \end_inset
14360
14361 ならばここ(here)を表します
14362 \begin_inset Foot
14363 status collapsed
14364
14365 \begin_layout Plain Layout
14366 \SpecialChar LaTeX
14367 同様、文字列中でのこれらの文字の順序は関係ありません。
14368 \end_layout
14369
14370 \end_inset
14371
14372 。これらの他に新しい型
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377 H
14378 \end_layout
14379
14380 \end_inset
14381
14382 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 H
14388 \end_layout
14389
14390 \end_inset
14391
14392 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14393 に「
14394 \begin_inset Flex Code
14395 status collapsed
14396
14397 \begin_layout Plain Layout
14398 tbp
14399 \end_layout
14400
14401 \end_inset
14402
14403 」を指定してください。
14404 \end_layout
14405
14406 \begin_layout Description
14407 \begin_inset Flex Code
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411 RefPrefix
14412 \end_layout
14413
14414 \end_inset
14415
14416  [
14417 \begin_inset Flex Code
14418 status collapsed
14419
14420 \begin_layout Plain Layout
14421 文字列
14422 \end_layout
14423
14424 \end_inset
14425
14426 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14427 \begin_inset Flex Code
14428 status collapsed
14429
14430 \begin_layout Plain Layout
14431 RefPrefix
14432 \end_layout
14433
14434 \end_inset
14435
14436 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14437 \end_layout
14438
14439 \begin_layout Description
14440 \begin_inset Flex Code
14441 status collapsed
14442
14443 \begin_layout Plain Layout
14444 Style
14445 \end_layout
14446
14447 \end_inset
14448
14449  [
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454 文字列
14455 \end_layout
14456
14457 \end_inset
14458
14459 =
14460 \begin_inset Quotes erd
14461 \end_inset
14462
14463
14464 \begin_inset Quotes erd
14465 \end_inset
14466
14467
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472
14473 \backslash
14474 newfloat
14475 \end_layout
14476
14477 \end_inset
14478
14479 を使用してフロートを定義する際に使用される様式。
14480 \end_layout
14481
14482 \begin_layout Description
14483 \begin_inset Flex Code
14484 status collapsed
14485
14486 \begin_layout Plain Layout
14487 Type
14488 \end_layout
14489
14490 \end_inset
14491
14492  [
14493 \begin_inset Flex Code
14494 status collapsed
14495
14496 \begin_layout Plain Layout
14497 文字列
14498 \end_layout
14499
14500 \end_inset
14501
14502 =
14503 \begin_inset Quotes erd
14504 \end_inset
14505
14506
14507 \begin_inset Quotes erd
14508 \end_inset
14509
14510 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14511 \begin_inset Flex Code
14512 status collapsed
14513
14514 \begin_layout Plain Layout
14515
14516 \backslash
14517 newfloat
14518 \end_layout
14519
14520 \end_inset
14521
14522 の後で、
14523 \begin_inset Flex Code
14524 status collapsed
14525
14526 \begin_layout Plain Layout
14527
14528 \backslash
14529 begin{program}
14530 \end_layout
14531
14532 \end_inset
14533
14534
14535 \begin_inset Flex Code
14536 status collapsed
14537
14538 \begin_layout Plain Layout
14539
14540 \backslash
14541 end{algorithm*}
14542 \end_layout
14543
14544 \end_inset
14545
14546 といったコマンドが利用できます。
14547 \end_layout
14548
14549 \begin_layout Description
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 UsesFloatPkg
14555 \end_layout
14556
14557 \end_inset
14558
14559  [
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 0
14565 \end_layout
14566
14567 \end_inset
14568
14569 ,
14570 \begin_inset space \thinspace{}
14571 \end_inset
14572
14573
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578
14579 \emph on
14580 1
14581 \end_layout
14582
14583 \end_inset
14584
14585 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14586 パッケージ
14587 \begin_inset Flex Code
14588 status collapsed
14589
14590 \begin_layout Plain Layout
14591 float
14592 \end_layout
14593
14594 \end_inset
14595
14596 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14597 自身がオン・ザ・フライで定義しているのかを示します。
14598 \end_layout
14599
14600 \begin_layout Standard
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605
14606 \emph on
14607 type
14608 \end_layout
14609
14610 \end_inset
14611
14612 型のフロートを定義すると、自動的に
14613 \emph on
14614 対応する
14615 \emph default
14616
14617 \begin_inset Flex Code
14618 status collapsed
14619
14620 \begin_layout Plain Layout
14621
14622 \emph on
14623 type
14624 \end_layout
14625
14626 \end_inset
14627
14628 名カウンタが定義されます。
14629 \end_layout
14630
14631 \begin_layout Subsection
14632 自由差込枠と差込枠レイアウト
14633 \begin_inset CommandInset label
14634 LatexCommand label
14635 name "subsec:任意設定差込枠"
14636
14637 \end_inset
14638
14639
14640 \end_layout
14641
14642 \begin_layout Standard
14643 自由差込枠には次の3種類があります。
14644 \end_layout
14645
14646 \begin_layout Itemize
14647 文字様式(
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 CharStyle
14653 \end_layout
14654
14655 \end_inset
14656
14657 )。これは、
14658 \begin_inset Flex Code
14659 status collapsed
14660
14661 \begin_layout Plain Layout
14662
14663 \backslash
14664 noun
14665 \end_layout
14666
14667 \end_inset
14668
14669
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674
14675 \backslash
14676 code
14677 \end_layout
14678
14679 \end_inset
14680
14681 などの\SpecialChar LaTeX
14682 コマンドに対応した意味論的マークアップを定義するものです。
14683 \end_layout
14684
14685 \begin_layout Itemize
14686 ユーザ設定(
14687 \begin_inset Flex Code
14688 status collapsed
14689
14690 \begin_layout Plain Layout
14691 Custom
14692 \end_layout
14693
14694 \end_inset
14695
14696 )。これは、\SpecialChar TeX
14697 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 endnote
14703 \end_layout
14704
14705 \end_inset
14706
14707 モジュール中で定義されています。
14708 \end_layout
14709
14710 \begin_layout Itemize
14711 XML要素(
14712 \begin_inset Flex Code
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716 Element
14717 \end_layout
14718
14719 \end_inset
14720
14721 )。DocBookクラスで使用するものです。
14722 \end_layout
14723
14724 \begin_layout Standard
14725 自由差込枠は、以下で説明する
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 InsetLayout
14731 \end_layout
14732
14733 \end_inset
14734
14735 タグを使用して定義されます。
14736 \end_layout
14737
14738 \begin_layout Standard
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 InsetLayout
14744 \end_layout
14745
14746 \end_inset
14747
14748 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 InsetLayout
14754 \end_layout
14755
14756 \end_inset
14757
14758 は自由差込枠を定義することの他に、脚註・傍註・註釈差込枠・\SpecialChar TeX
14759 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14760 ー定義するのに使用されます。
14761 \end_layout
14762
14763 \begin_layout Standard
14764 \begin_inset Flex Code
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768 InsetLayout
14769 \end_layout
14770
14771 \end_inset
14772
14773 定義は以下の形の行では始まらなくてはなりません。
14774 \end_layout
14775
14776 \begin_layout LyX-Code
14777 InsetLayout <型>
14778 \end_layout
14779
14780 \begin_layout Standard
14781 ここで
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 <型>
14787 \end_layout
14788
14789 \end_inset
14790
14791 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
14792 \end_layout
14793
14794 \begin_layout Enumerate
14795 既存の差込枠のレイアウトを変更する場合。この場合、
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 <型>
14801 \end_layout
14802
14803 \end_inset
14804
14805 は以下のいずれかになります:
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810 Algorithm
14811 \end_layout
14812
14813 \end_inset
14814
14815
14816 \begin_inset Flex Code
14817 status collapsed
14818
14819 \begin_layout Plain Layout
14820 Branch
14821 \end_layout
14822
14823 \end_inset
14824
14825
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 Box
14831 \end_layout
14832
14833 \end_inset
14834
14835
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Box:shaded
14841 \end_layout
14842
14843 \end_inset
14844
14845
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 Caption:Standard
14851 \end_layout
14852
14853 \end_inset
14854
14855
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 ERT
14861 \end_layout
14862
14863 \end_inset
14864
14865
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 Figure
14871 \end_layout
14872
14873 \end_inset
14874
14875
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 Foot
14881 \end_layout
14882
14883 \end_inset
14884
14885
14886 \begin_inset Flex Code
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890 Index
14891 \end_layout
14892
14893 \end_inset
14894
14895
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 Info
14901 \end_layout
14902
14903 \end_inset
14904
14905
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 Info:menu
14911 \end_layout
14912
14913 \end_inset
14914
14915
14916 \begin_inset Flex Code
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920 Info:shortcut
14921 \end_layout
14922
14923 \end_inset
14924
14925
14926 \begin_inset Flex Code
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930 Info:shortcuts
14931 \end_layout
14932
14933 \end_inset
14934
14935
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 Listings
14941 \end_layout
14942
14943 \end_inset
14944
14945
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 Marginal
14951 \end_layout
14952
14953 \end_inset
14954
14955
14956 \begin_inset Flex Code
14957 status collapsed
14958
14959 \begin_layout Plain Layout
14960 Note:Comment
14961 \end_layout
14962
14963 \end_inset
14964
14965
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 Note:Note
14971 \end_layout
14972
14973 \end_inset
14974
14975
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 Note:GreyedOut
14981 \end_layout
14982
14983 \end_inset
14984
14985
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 Table
14991 \end_layout
14992
14993 \end_inset
14994
14995
14996 \begin_inset Flex Code
14997 status collapsed
14998
14999 \begin_layout Plain Layout
15000 URL
15001 \end_layout
15002
15003 \end_inset
15004
15005
15006 \end_layout
15007
15008 \begin_layout Enumerate
15009 自由差込枠のレイアウトを定義する場合。この場合、
15010 \begin_inset Flex Code
15011 status collapsed
15012
15013 \begin_layout Plain Layout
15014 <型>
15015 \end_layout
15016
15017 \end_inset
15018
15019
15020 \begin_inset Flex Code
15021 status collapsed
15022
15023 \begin_layout Plain Layout
15024 Flex:<名称>
15025 \end_layout
15026
15027 \end_inset
15028
15029 の形でなくてはなりません。ここで、
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 名称
15035 \end_layout
15036
15037 \end_inset
15038
15039 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15040 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 LyXType
15046 \end_layout
15047
15048 \end_inset
15049
15050 項目が含まれていなくてはならないことに注意してください。
15051 \end_layout
15052
15053 \begin_layout Enumerate
15054 ユーザー定義派生枝を定義する場合。この場合、
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 <型>
15060 \end_layout
15061
15062 \end_inset
15063
15064 は「
15065 \begin_inset Flex Code
15066 status collapsed
15067
15068 \begin_layout Plain Layout
15069 Branch:<名称>
15070 \end_layout
15071
15072 \end_inset
15073
15074 」の形でなくてはなりません。ここで、
15075 \begin_inset Flex Code
15076 status collapsed
15077
15078 \begin_layout Plain Layout
15079 名称
15080 \end_layout
15081
15082 \end_inset
15083
15084 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15085 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15086 がくるむことができるようにすることです。
15087 \end_layout
15088
15089 \begin_layout Enumerate
15090 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 <型>
15096 \end_layout
15097
15098 \end_inset
15099
15100 は「
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 Caption:<名称>
15106 \end_layout
15107
15108 \end_inset
15109
15110 」の形でなくてはなりません。ここで、
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 名称
15116 \end_layout
15117
15118 \end_inset
15119
15120 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15121 \begin_inset Flex Code
15122 status collapsed
15123
15124 \begin_layout Plain Layout
15125 Caption:Standard
15126 \end_layout
15127
15128 \end_inset
15129
15130 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 Caption:Above
15136 \end_layout
15137
15138 \end_inset
15139
15140
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 Caption:Below
15146 \end_layout
15147
15148 \end_inset
15149
15150 )、
15151 \family sans
15152 多言語キャプション
15153 \family default
15154 モジュール(
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 Caption:Bicaption
15160 \end_layout
15161
15162 \end_inset
15163
15164 )をご覧ください。
15165 \end_layout
15166
15167 \begin_layout Standard
15168 \begin_inset Flex Code
15169 status collapsed
15170
15171 \begin_layout Plain Layout
15172 InsetLayout
15173 \end_layout
15174
15175 \end_inset
15176
15177 定義には以下の項目を入れることができます。
15178 \end_layout
15179
15180 \begin_layout Description
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 Argument
15186 \end_layout
15187
15188 \end_inset
15189
15190  [
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 整数
15196 \end_layout
15197
15198 \end_inset
15199
15200 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 EndArgument
15206 \end_layout
15207
15208 \end_inset
15209
15210 で閉じなくてはなりません。詳細は
15211 \begin_inset CommandInset ref
15212 LatexCommand ref
15213 reference "subsec:段落様式"
15214
15215 \end_inset
15216
15217 参照。
15218 \end_layout
15219
15220 \begin_layout Description
15221 \begin_inset Flex Code
15222 status collapsed
15223
15224 \begin_layout Plain Layout
15225 BabelPreamble
15226 \end_layout
15227
15228 \end_inset
15229
15230  言語コマンドを変更するプリアンブル。
15231 \begin_inset CommandInset ref
15232 LatexCommand ref
15233 reference "subsec:段落様式の国際化"
15234
15235 \end_inset
15236
15237 参照。
15238 \end_layout
15239
15240 \begin_layout Description
15241 \begin_inset Flex Code
15242 status collapsed
15243
15244 \begin_layout Plain Layout
15245 BgColor
15246 \end_layout
15247
15248 \end_inset
15249
15250  [
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 <名称>
15256 \end_layout
15257
15258 \end_inset
15259
15260 ] 差込枠の背景色。使用できる色名一覧は
15261 \begin_inset CommandInset ref
15262 LatexCommand ref
15263 reference "chap:色名"
15264
15265 \end_inset
15266
15267 参照。
15268 \end_layout
15269
15270 \begin_layout Description
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 ContentAsLabel
15276 \end_layout
15277
15278 \end_inset
15279
15280  [
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285
15286 \emph on
15287 0
15288 \end_layout
15289
15290 \end_inset
15291
15292 ,
15293 \begin_inset space \thinspace{}
15294 \end_inset
15295
15296
15297 \begin_inset Flex Code
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301 1
15302 \end_layout
15303
15304 \end_inset
15305
15306 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15307 \end_layout
15308
15309 \begin_layout Description
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 CopyStyle
15315 \end_layout
15316
15317 \end_inset
15318
15319  [<型>] 段落様式と同様です。
15320 \begin_inset CommandInset ref
15321 LatexCommand ref
15322 reference "subsec:段落様式"
15323
15324 \end_inset
15325
15326 参照のこと。完全な型を指定する必要があることに注意してください。例:
15327 \begin_inset Flex Code
15328 status collapsed
15329
15330 \begin_layout Plain Layout
15331 CopyStyle Flex:<名称>
15332 \end_layout
15333
15334 \end_inset
15335
15336
15337 \end_layout
15338
15339 \begin_layout Description
15340 \begin_inset Flex Code
15341 status collapsed
15342
15343 \begin_layout Plain Layout
15344 CustomPars
15345 \end_layout
15346
15347 \end_inset
15348
15349  [
15350 \begin_inset Flex Code
15351 status collapsed
15352
15353 \begin_layout Plain Layout
15354
15355 \emph on
15356 0
15357 \end_layout
15358
15359 \end_inset
15360
15361 ,
15362 \begin_inset space \thinspace{}
15363 \end_inset
15364
15365
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 1
15371 \end_layout
15372
15373 \end_inset
15374
15375 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15376 \end_layout
15377
15378 \begin_layout Description
15379 \begin_inset Flex Code
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 Decoration
15384 \end_layout
15385
15386 \end_inset
15387
15388  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15389 \begin_inset Flex Code
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 Classic
15394 \end_layout
15395
15396 \end_inset
15397
15398
15399 \begin_inset Flex Code
15400 status collapsed
15401
15402 \begin_layout Plain Layout
15403 Minimalistic
15404 \end_layout
15405
15406 \end_inset
15407
15408
15409 \begin_inset Flex Code
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413 Conglomerate
15414 \end_layout
15415
15416 \end_inset
15417
15418 のいずれかを指定することができます。脚註は通常
15419 \begin_inset Flex Code
15420 status collapsed
15421
15422 \begin_layout Plain Layout
15423 Classic
15424 \end_layout
15425
15426 \end_inset
15427
15428 を使用し、\SpecialChar TeX
15429 コード差込枠は通常
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 Minimalistic
15435 \end_layout
15436
15437 \end_inset
15438
15439 、文字様式は
15440 \begin_inset Flex Code
15441 status collapsed
15442
15443 \begin_layout Plain Layout
15444 Conglomerate
15445 \end_layout
15446
15447 \end_inset
15448
15449 を使用します。
15450 \end_layout
15451
15452 \begin_layout Description
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 Display
15458 \end_layout
15459
15460 \end_inset
15461
15462  [
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467 0
15468 \end_layout
15469
15470 \end_inset
15471
15472 ,
15473 \begin_inset space \thinspace{}
15474 \end_inset
15475
15476
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481
15482 \emph on
15483 1
15484 \end_layout
15485
15486 \end_inset
15487
15488
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 LatexType
15494 \end_layout
15495
15496 \end_inset
15497
15498
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503 Environment
15504 \end_layout
15505
15506 \end_inset
15507
15508 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15509 環境は、
15510 \begin_inset Flex Code
15511 status collapsed
15512
15513 \begin_layout Plain Layout
15514
15515 \backslash
15516 begin{LatexName}
15517 \end_layout
15518
15519 \end_inset
15520
15521 タグと
15522 \begin_inset Flex Code
15523 status collapsed
15524
15525 \begin_layout Plain Layout
15526
15527 \backslash
15528 end{LatexName}
15529 \end_layout
15530
15531 \end_inset
15532
15533 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15534 \end_layout
15535
15536 \begin_layout Description
15537 \begin_inset Flex Code
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 End
15542 \end_layout
15543
15544 \end_inset
15545
15546  
15547 \begin_inset Flex Code
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 InsetLayout
15552 \end_layout
15553
15554 \end_inset
15555
15556 宣言を閉じるのに必要です。
15557 \end_layout
15558
15559 \begin_layout Description
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 Font
15565 \end_layout
15566
15567 \end_inset
15568
15569  本文本体とラベル
15570 \emph on
15571 両方に
15572 \emph default
15573 使用されるフォントです。
15574 \begin_inset CommandInset ref
15575 LatexCommand ref
15576 reference "subsec:フォント指定"
15577
15578 \end_inset
15579
15580 を参照。このフォントを定義すると自動的に
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 LabelFont
15586 \end_layout
15587
15588 \end_inset
15589
15590 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15591 \begin_inset Flex Code
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595 LabelFont
15596 \end_layout
15597
15598 \end_inset
15599
15600 を定義しなくてはならないことに注意してください。
15601 \end_layout
15602
15603 \begin_layout Description
15604 \begin_inset Flex Code
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608 FixedWidthPreambleEncoding
15609 \end_layout
15610
15611 \end_inset
15612
15613  [
15614 \begin_inset Flex Code
15615 status collapsed
15616
15617 \begin_layout Plain Layout
15618
15619 \emph on
15620 0
15621 \end_layout
15622
15623 \end_inset
15624
15625 ,
15626 \begin_inset space \thinspace{}
15627 \end_inset
15628
15629
15630 \begin_inset Flex Code
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 1
15635 \end_layout
15636
15637 \end_inset
15638
15639 ] このレイアウトによって生成される
15640 \begin_inset Flex Code
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644 BabelPreamble
15645 \end_layout
15646
15647 \end_inset
15648
15649 および
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 LangPreamble
15655 \end_layout
15656
15657 \end_inset
15658
15659 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か。これは、
15660 \family typewriter
15661 listings
15662 \family default
15663 のように、
15664 \family sans
15665 utf8
15666 \family default
15667 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15668 パッケージのために必要です。この設定は、Xe\SpecialChar TeX
15669 やLua\SpecialChar TeX
15670 のようなUnicodeを完全に解する\SpecialChar LaTeX
15671 バックエンドを使用してい
15672 る場合には、無視されます。
15673 \end_layout
15674
15675 \begin_layout Description
15676 \begin_inset Flex Code
15677 status collapsed
15678
15679 \begin_layout Plain Layout
15680 ForceLocalFontSwitch
15681 \end_layout
15682
15683 \end_inset
15684
15685  [
15686 \begin_inset Flex Code
15687 status collapsed
15688
15689 \begin_layout Plain Layout
15690
15691 \emph on
15692 0
15693 \end_layout
15694
15695 \end_inset
15696
15697 ,
15698 \begin_inset space \thinspace{}
15699 \end_inset
15700
15701
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706 1
15707 \end_layout
15708
15709 \end_inset
15710
15711 ] babel使用時に、常にローカルフォント切替(
15712 \begin_inset Flex Code
15713 status collapsed
15714
15715 \begin_layout Plain Layout
15716
15717 \backslash
15718 foreignlanguage
15719 \end_layout
15720
15721 \end_inset
15722
15723 )を使い、グローバル切替(
15724 \begin_inset Flex Code
15725 status collapsed
15726
15727 \begin_layout Plain Layout
15728
15729 \backslash
15730 selectlanguage
15731 \end_layout
15732
15733 \end_inset
15734
15735 など)は使わない。
15736 \end_layout
15737
15738 \begin_layout Description
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 ForceLTR
15744 \end_layout
15745
15746 \end_inset
15747
15748  [
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753
15754 \emph on
15755 0
15756 \end_layout
15757
15758 \end_inset
15759
15760 ,
15761 \begin_inset space \thinspace{}
15762 \end_inset
15763
15764
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 1
15770 \end_layout
15771
15772 \end_inset
15773
15774 ] たとえば\SpecialChar TeX
15775 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
15776 \end_layout
15777
15778 \begin_layout Description
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 ForceOwnlines
15784 \end_layout
15785
15786 \end_inset
15787
15788  [
15789 \begin_inset Flex Code
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793
15794 \emph on
15795 0
15796 \end_layout
15797
15798 \end_inset
15799
15800 ,
15801 \begin_inset space \thinspace{}
15802 \end_inset
15803
15804
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 1
15810 \end_layout
15811
15812 \end_inset
15813
15814 ] \SpecialChar LaTeX
15815 出力において、この差込枠が開始する前と終了する後に、改行を強制します。これは、解析上の目的のために、差込枠が単独行に出力されるように保証します。
15816 \end_layout
15817
15818 \begin_layout Description
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823 ForcePlain
15824 \end_layout
15825
15826 \end_inset
15827
15828  [
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833
15834 \emph on
15835 0
15836 \end_layout
15837
15838 \end_inset
15839
15840 ,
15841 \begin_inset space \thinspace{}
15842 \end_inset
15843
15844
15845 \begin_inset Flex Code
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849 1
15850 \end_layout
15851
15852 \end_inset
15853
15854 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
15855 \end_layout
15856
15857 \begin_layout Description
15858 \begin_inset Flex Code
15859 status collapsed
15860
15861 \begin_layout Plain Layout
15862 FreeSpacing
15863 \end_layout
15864
15865 \end_inset
15866
15867  [
15868 \emph on
15869
15870 \begin_inset Flex Code
15871 status collapsed
15872
15873 \begin_layout Plain Layout
15874 0
15875 \end_layout
15876
15877 \end_inset
15878
15879
15880 \emph default
15881 ,
15882 \begin_inset space \thinspace{}
15883 \end_inset
15884
15885
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 1
15891 \end_layout
15892
15893 \end_inset
15894
15895 ] 段落様式と同様。
15896 \begin_inset CommandInset ref
15897 LatexCommand ref
15898 reference "subsec:段落様式"
15899
15900 \end_inset
15901
15902 参照。
15903 \end_layout
15904
15905 \begin_layout Description
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 HTML*
15911 \end_layout
15912
15913 \end_inset
15914
15915  これらは、XHTML出力で使用されます。
15916 \begin_inset CommandInset ref
15917 LatexCommand ref
15918 reference "sec:XHTML出力のタグ"
15919
15920 \end_inset
15921
15922 をご覧ください。
15923 \end_layout
15924
15925 \begin_layout Description
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 InToc
15931 \end_layout
15932
15933 \end_inset
15934
15935  [
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940
15941 \emph on
15942 0
15943 \end_layout
15944
15945 \end_inset
15946
15947 ,
15948 \begin_inset space \thinspace{}
15949 \end_inset
15950
15951
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 1
15957 \end_layout
15958
15959 \end_inset
15960
15961 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚註の内容が、文書構造の目次に表示されることは望まないでしょ
15962 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
15963 \end_layout
15964
15965 \begin_layout Description
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 KeepEmpty
15971 \end_layout
15972
15973 \end_inset
15974
15975  [
15976 \emph on
15977
15978 \begin_inset Flex Code
15979 status collapsed
15980
15981 \begin_layout Plain Layout
15982 0
15983 \end_layout
15984
15985 \end_inset
15986
15987
15988 \emph default
15989 ,
15990 \begin_inset space \thinspace{}
15991 \end_inset
15992
15993
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 1
15999 \end_layout
16000
16001 \end_inset
16002
16003 ] 段落様式と同様。
16004 \begin_inset CommandInset ref
16005 LatexCommand ref
16006 reference "subsec:段落様式"
16007
16008 \end_inset
16009
16010 参照。
16011 \end_layout
16012
16013 \begin_layout Description
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 LabelFont
16019 \end_layout
16020
16021 \end_inset
16022
16023  ラベルに使用されるフォント。第
16024 \begin_inset CommandInset ref
16025 LatexCommand ref
16026 reference "subsec:フォント指定"
16027
16028 \end_inset
16029
16030 節を参照。非効率を回避するため、この定義は
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 Font
16036 \end_layout
16037
16038 \end_inset
16039
16040 の前には決して現れてはなりません。
16041 \end_layout
16042
16043 \begin_layout Description
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048 LabelString
16049 \end_layout
16050
16051 \end_inset
16052
16053  [
16054 \begin_inset Flex Code
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058 文字列
16059 \end_layout
16060
16061 \end_inset
16062
16063 =
16064 \begin_inset Quotes erd
16065 \end_inset
16066
16067
16068 \begin_inset Quotes erd
16069 \end_inset
16070
16071 ]
16072 \lang english
16073  
16074 \lang japanese
16075 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16076 コードや派生枝)、ラベルが動的に変更されます。
16077 \end_layout
16078
16079 \begin_layout Description
16080 \begin_inset Flex Code
16081 status collapsed
16082
16083 \begin_layout Plain Layout
16084 LangPreamble
16085 \end_layout
16086
16087 \end_inset
16088
16089  言語依存のプリアンブル。
16090 \begin_inset CommandInset ref
16091 LatexCommand ref
16092 reference "subsec:段落様式の国際化"
16093
16094 \end_inset
16095
16096 参照。
16097 \end_layout
16098
16099 \begin_layout Description
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 LatexName
16105 \end_layout
16106
16107 \end_inset
16108
16109  [
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 <名称>
16115 \end_layout
16116
16117 \end_inset
16118
16119 ] 対応する\SpecialChar LaTeX
16120 関連物の名称。環境名ないしはコマンド名。
16121 \end_layout
16122
16123 \begin_layout Description
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 LatexParam
16129 \end_layout
16130
16131 \end_inset
16132
16133  [
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138 <パラメータ>
16139 \end_layout
16140
16141 \end_inset
16142
16143 ]
16144 \lang english
16145  
16146 \lang japanese
16147 対応する
16148 \begin_inset Flex Code
16149 status collapsed
16150
16151 \begin_layout Plain Layout
16152 LatexName
16153 \end_layout
16154
16155 \end_inset
16156
16157 関連物の非必須パラメータ。
16158 \begin_inset Flex Code
16159 status collapsed
16160
16161 \begin_layout Plain Layout
16162 []
16163 \end_layout
16164
16165 \end_inset
16166
16167 のような括弧対を含む。このパラメータは\SpecialChar LyX
16168 内部から変更することはできません(変更可能なパラメータには
16169 \begin_inset Flex Code
16170 status collapsed
16171
16172 \begin_layout Plain Layout
16173 Argument
16174 \end_layout
16175
16176 \end_inset
16177
16178 を使用してください)。これは、全ての\SpecialChar LaTeX
16179  
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 Argument
16185 \end_layout
16186
16187 \end_inset
16188
16189 の後にそのままの形で出力されます。
16190 \end_layout
16191
16192 \begin_layout Description
16193 \begin_inset Flex Code
16194 status collapsed
16195
16196 \begin_layout Plain Layout
16197 LatexType
16198 \end_layout
16199
16200 \end_inset
16201
16202  [
16203 \begin_inset Flex Code
16204 status collapsed
16205
16206 \begin_layout Plain Layout
16207 Command, Environment, None
16208 \end_layout
16209
16210 \end_inset
16211
16212 ] 様式がどのように\SpecialChar LaTeX
16213 に変換されるべきかを示します
16214 \begin_inset Foot
16215 status collapsed
16216
16217 \begin_layout Plain Layout
16218 これらのルールはSGMLクラスにも適用されるので、
16219 \begin_inset Flex Code
16220 status collapsed
16221
16222 \begin_layout Plain Layout
16223 LatexType
16224 \end_layout
16225
16226 \end_inset
16227
16228 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16229 \end_layout
16230
16231 \end_inset
16232
16233
16234 \begin_inset Separator parbreak
16235 \end_inset
16236
16237
16238 \end_layout
16239
16240 \begin_deeper
16241 \begin_layout Description
16242 \begin_inset Flex Code
16243 status collapsed
16244
16245 \begin_layout Plain Layout
16246 None
16247 \end_layout
16248
16249 \end_inset
16250
16251  は、何も特別なことは意味しません
16252 \end_layout
16253
16254 \begin_layout Description
16255 \begin_inset Flex Code
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 Command
16260 \end_layout
16261
16262 \end_inset
16263
16264  は、
16265 \begin_inset Flex Code
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269
16270 \backslash
16271
16272 \emph on
16273 LatexName
16274 \emph default
16275 {\SpecialChar ldots
16276 }
16277 \end_layout
16278
16279 \end_inset
16280
16281 を意味します
16282 \end_layout
16283
16284 \begin_layout Description
16285 \begin_inset Flex Code
16286 status collapsed
16287
16288 \begin_layout Plain Layout
16289 Environment
16290 \end_layout
16291
16292 \end_inset
16293
16294  は、
16295 \begin_inset Flex Code
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299
16300 \backslash
16301 begin{
16302 \emph on
16303 LatexName
16304 \emph default
16305 }\SpecialChar ldots
16306
16307 \backslash
16308 end{
16309 \emph on
16310 LatexName
16311 \emph default
16312 }
16313 \end_layout
16314
16315 \end_inset
16316
16317 を意味します
16318 \end_layout
16319
16320 \begin_layout Standard
16321 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16322 出力は、\SpecialChar LaTeX
16323 型に依存して
16324 \end_layout
16325
16326 \begin_layout LyX-Code
16327
16328 \backslash
16329 LatexName[LatexParam]{\SpecialChar ldots
16330 }
16331 \end_layout
16332
16333 \begin_layout Standard
16334 のようになるか、
16335 \end_layout
16336
16337 \begin_layout LyX-Code
16338
16339 \backslash
16340 begin{LatexName}[LatexParam] \SpecialChar ldots
16341  
16342 \backslash
16343 end{LatexName}.
16344 \end_layout
16345
16346 \begin_layout Standard
16347 となります。
16348 \end_layout
16349
16350 \end_deeper
16351 \begin_layout Description
16352 \begin_inset Flex Code
16353 status collapsed
16354
16355 \begin_layout Plain Layout
16356 LeftDelim
16357 \end_layout
16358
16359 \end_inset
16360
16361  [
16362 \begin_inset Flex Code
16363 status collapsed
16364
16365 \begin_layout Plain Layout
16366 文字列
16367 \end_layout
16368
16369 \end_inset
16370
16371 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16372 \begin_inset Flex Code
16373 status collapsed
16374
16375 \begin_layout Plain Layout
16376 <br/>
16377 \end_layout
16378
16379 \end_inset
16380
16381 で指示できます。
16382 \end_layout
16383
16384 \begin_layout Description
16385 \begin_inset Flex Code
16386 status collapsed
16387
16388 \begin_layout Plain Layout
16389 LyxType
16390 \end_layout
16391
16392 \end_inset
16393
16394  
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399 charstyle
16400 \end_layout
16401
16402 \end_inset
16403
16404
16405 \begin_inset Flex Code
16406 status collapsed
16407
16408 \begin_layout Plain Layout
16409 custom
16410 \end_layout
16411
16412 \end_inset
16413
16414
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419 element
16420 \end_layout
16421
16422 \end_inset
16423
16424
16425 \begin_inset Flex Code
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429 end
16430 \end_layout
16431
16432 \end_inset
16433
16434 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16435 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 LyXType
16441 \end_layout
16442
16443 \end_inset
16444
16445
16446 \begin_inset Flex Code
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 charstyle
16451 \end_layout
16452
16453 \end_inset
16454
16455 に設定すると、
16456 \begin_inset Flex Code
16457 status collapsed
16458
16459 \begin_layout Plain Layout
16460 MultiPar
16461 \end_layout
16462
16463 \end_inset
16464
16465 が偽に設定されます。文字様式差込枠で
16466 \begin_inset Flex Code
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470 MultiPar
16471 \end_layout
16472
16473 \end_inset
16474
16475 を真にしたい時には、
16476 \begin_inset Flex Code
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480 LyXType
16481 \end_layout
16482
16483 \end_inset
16484
16485 を設定した
16486 \emph on
16487 後に
16488 \emph default
16489 設定すれば、真に設定することができます。
16490 \end_layout
16491
16492 \begin_layout Description
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 MultiPar
16498 \end_layout
16499
16500 \end_inset
16501
16502  [
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507
16508 \emph on
16509 0
16510 \end_layout
16511
16512 \end_inset
16513
16514 ,
16515 \begin_inset space \thinspace{}
16516 \end_inset
16517
16518
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 1
16524 \end_layout
16525
16526 \end_inset
16527
16528 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 CustomPars
16534 \end_layout
16535
16536 \end_inset
16537
16538 を同じ値に設定し、
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543 ForcePlain
16544 \end_layout
16545
16546 \end_inset
16547
16548 を逆の値に設定します。これらは、
16549 \begin_inset Flex Code
16550 status collapsed
16551
16552 \begin_layout Plain Layout
16553 MultiPar
16554 \end_layout
16555
16556 \end_inset
16557
16558
16559 \emph on
16560 後に
16561 \emph default
16562 指定されれば、他の値に指定し直すことができます。既定値は真です。
16563 \end_layout
16564
16565 \begin_layout Description
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 NeedProtect
16571 \end_layout
16572
16573 \end_inset
16574
16575  [
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580
16581 \emph on
16582 0
16583 \end_layout
16584
16585 \end_inset
16586
16587 ,
16588 \begin_inset space \thinspace{}
16589 \end_inset
16590
16591
16592 \begin_inset Flex Code
16593 status collapsed
16594
16595 \begin_layout Plain Layout
16596 1
16597 \end_layout
16598
16599 \end_inset
16600
16601 ] 本レイアウト中で脆弱なコマンドを
16602 \begin_inset Flex Code
16603 status collapsed
16604
16605 \begin_layout Plain Layout
16606
16607 \backslash
16608 protect
16609 \end_layout
16610
16611 \end_inset
16612
16613 するか否か(註:当該コマンド自身をprotectするかどうかでは
16614 \emph on
16615 ありません
16616 \emph default
16617 )。既定値は偽です。
16618 \end_layout
16619
16620 \begin_layout Description
16621 \begin_inset Flex Code
16622 status collapsed
16623
16624 \begin_layout Plain Layout
16625 NoInsetLayout
16626 \end_layout
16627
16628 \end_inset
16629
16630  [
16631 \begin_inset Flex Code
16632 status collapsed
16633
16634 \begin_layout Plain Layout
16635 <レイアウト>
16636 \end_layout
16637
16638 \end_inset
16639
16640 ] 既存の
16641 \begin_inset Flex Code
16642 status collapsed
16643
16644 \begin_layout Plain Layout
16645 InsetLayout
16646 \end_layout
16647
16648 \end_inset
16649
16650 を削除します。
16651 \end_layout
16652
16653 \begin_layout Description
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 ObsoletedBy
16659 \end_layout
16660
16661 \end_inset
16662
16663  [
16664 \begin_inset Flex Code
16665 status collapsed
16666
16667 \begin_layout Plain Layout
16668 <レイアウト>
16669 \end_layout
16670
16671 \end_inset
16672
16673 ] この古い
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 InsetLayout
16679 \end_layout
16680
16681 \end_inset
16682
16683 を引き継いだ
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 InsetLayout
16689 \end_layout
16690
16691 \end_inset
16692
16693 の名称。これは、
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 InsetLayout
16699 \end_layout
16700
16701 \end_inset
16702
16703 の改名を、後方互換性を維持しながら行うために用いられます。
16704 \end_layout
16705
16706 \begin_layout Description
16707 \begin_inset Flex Code
16708 status collapsed
16709
16710 \begin_layout Plain Layout
16711 ParbreakIsNewline
16712 \end_layout
16713
16714 \end_inset
16715
16716  [
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721
16722 \emph on
16723 0
16724 \end_layout
16725
16726 \end_inset
16727
16728 ,
16729 \begin_inset space \thinspace{}
16730 \end_inset
16731
16732
16733 \begin_inset Flex Code
16734 status collapsed
16735
16736 \begin_layout Plain Layout
16737 1
16738 \end_layout
16739
16740 \end_inset
16741
16742 ] 段落様式と同様。
16743 \begin_inset CommandInset ref
16744 LatexCommand ref
16745 reference "subsec:段落様式"
16746
16747 \end_inset
16748
16749 参照。
16750 \end_layout
16751
16752 \begin_layout Description
16753 \begin_inset Flex Code
16754 status collapsed
16755
16756 \begin_layout Plain Layout
16757 PassThru
16758 \end_layout
16759
16760 \end_inset
16761
16762  [
16763 \emph on
16764
16765 \begin_inset Flex Code
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769 0
16770 \end_layout
16771
16772 \end_inset
16773
16774
16775 \emph default
16776 ,
16777 \begin_inset space \thinspace{}
16778 \end_inset
16779
16780
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785 1
16786 \end_layout
16787
16788 \end_inset
16789
16790 ] 段落様式と同様。
16791 \begin_inset CommandInset ref
16792 LatexCommand ref
16793 reference "subsec:段落様式"
16794
16795 \end_inset
16796
16797 参照。
16798 \end_layout
16799
16800 \begin_layout Description
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 Preamble
16806 \end_layout
16807
16808 \end_inset
16809
16810  段落様式と同様。
16811 \begin_inset CommandInset ref
16812 LatexCommand ref
16813 reference "subsec:段落様式"
16814
16815 \end_inset
16816
16817 参照。
16818 \end_layout
16819
16820 \begin_layout Description
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 RefPrefix
16826 \end_layout
16827
16828 \end_inset
16829
16830  [
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 文字列
16836 \end_layout
16837
16838 \end_inset
16839
16840 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
16841 \end_layout
16842
16843 \begin_layout Description
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 Requires
16849 \end_layout
16850
16851 \end_inset
16852
16853  [
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 文字列
16859 \end_layout
16860
16861 \end_inset
16862
16863 ] 段落様式と同様。
16864 \begin_inset CommandInset ref
16865 LatexCommand ref
16866 reference "subsec:段落様式"
16867
16868 \end_inset
16869
16870 参照。
16871 \end_layout
16872
16873 \begin_layout Description
16874 \begin_inset Flex Code
16875 status collapsed
16876
16877 \begin_layout Plain Layout
16878 ResetArgs
16879 \end_layout
16880
16881 \end_inset
16882
16883  [
16884 \begin_inset Flex Code
16885 status collapsed
16886
16887 \begin_layout Plain Layout
16888
16889 \emph on
16890 0
16891 \end_layout
16892
16893 \end_inset
16894
16895 ,
16896 \begin_inset space \thinspace{}
16897 \end_inset
16898
16899
16900 \begin_inset Flex Code
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904 1
16905 \end_layout
16906
16907 \end_inset
16908
16909 ] (
16910 \begin_inset Flex Code
16911 status collapsed
16912
16913 \begin_layout Plain Layout
16914 Argument
16915 \end_layout
16916
16917 \end_inset
16918
16919 タグで定義された)この様式の\SpecialChar LaTeX
16920 引数をリセットします。これは、様式を
16921 \begin_inset Flex Code
16922 status collapsed
16923
16924 \begin_layout Plain Layout
16925 CopyStyle
16926 \end_layout
16927
16928 \end_inset
16929
16930 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
16931 \end_layout
16932
16933 \begin_layout Description
16934 \begin_inset Flex Code
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938 ResetsFont
16939 \end_layout
16940
16941 \end_inset
16942
16943  [
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 0
16949 \end_layout
16950
16951 \end_inset
16952
16953 ,
16954 \begin_inset space \thinspace{}
16955 \end_inset
16956
16957
16958 \begin_inset Flex Code
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962
16963 \emph on
16964 1
16965 \end_layout
16966
16967 \end_inset
16968
16969 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
16970 \begin_inset Note Note
16971 status open
16972
16973 \begin_layout Plain Layout
16974 This is outdated: The default changed from 1 to 0
16975 \end_layout
16976
16977 \end_inset
16978
16979
16980 \end_layout
16981
16982 \begin_layout Description
16983 \begin_inset Flex Code
16984 status collapsed
16985
16986 \begin_layout Plain Layout
16987 RightDelim
16988 \end_layout
16989
16990 \end_inset
16991
16992  [
16993 \begin_inset Flex Code
16994 status collapsed
16995
16996 \begin_layout Plain Layout
16997 文字列
16998 \end_layout
16999
17000 \end_inset
17001
17002 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17003 \begin_inset Flex Code
17004 status collapsed
17005
17006 \begin_layout Plain Layout
17007 <br/>
17008 \end_layout
17009
17010 \end_inset
17011
17012 で指示できます。
17013 \end_layout
17014
17015 \begin_layout Description
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020 Spellcheck
17021 \end_layout
17022
17023 \end_inset
17024
17025  [
17026 \begin_inset Flex Code
17027 status collapsed
17028
17029 \begin_layout Plain Layout
17030 0
17031 \end_layout
17032
17033 \end_inset
17034
17035 ,
17036 \begin_inset space \thinspace{}
17037 \end_inset
17038
17039
17040 \begin_inset Flex Code
17041 status collapsed
17042
17043 \begin_layout Plain Layout
17044
17045 \emph on
17046 1
17047 \end_layout
17048
17049 \end_inset
17050
17051 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17052 \end_layout
17053
17054 \begin_layout Subsection
17055 カウンタ
17056 \begin_inset CommandInset label
17057 LatexCommand label
17058 name "subsec:カウンタ"
17059
17060 \end_inset
17061
17062
17063 \end_layout
17064
17065 \begin_layout Standard
17066 テキストクラスには、カウンタ(
17067 \begin_inset Flex MenuItem
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071 chapter
17072 \end_layout
17073
17074 \end_inset
17075
17076
17077 \begin_inset Flex MenuItem
17078 status collapsed
17079
17080 \begin_layout Plain Layout
17081 figure
17082 \end_layout
17083
17084 \end_inset
17085
17086 ・\SpecialChar ldots
17087 )を定義することが必要です。標準的なカウンタは
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092 stdcounters.inc
17093 \end_layout
17094
17095 \end_inset
17096
17097 ファイルに含まれているので、作業中のレイアウトファイルに
17098 \end_layout
17099
17100 \begin_layout LyX-Code
17101 Input stdcounters.inc
17102 \end_layout
17103
17104 \begin_layout Standard
17105 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17106 \end_layout
17107
17108 \begin_layout LyX-Code
17109 Counter カウンタ名
17110 \end_layout
17111
17112 \begin_layout Standard
17113 で始まらなくてはなりません。ここで「
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 カウンタ名
17119 \end_layout
17120
17121 \end_inset
17122
17123 」は、実際のカウンタ名で置き換えます。また、宣言は「
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128 End
17129 \end_layout
17130
17131 \end_inset
17132
17133 」で終わらなくてはなりません。
17134 \end_layout
17135
17136 \begin_layout Standard
17137 以下のパラメータを使用することができます。
17138 \end_layout
17139
17140 \begin_layout Description
17141 \begin_inset Flex Code
17142 status collapsed
17143
17144 \begin_layout Plain Layout
17145 InitialValue
17146 \end_layout
17147
17148 \end_inset
17149
17150  [
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 整数=1
17156 \end_layout
17157
17158 \end_inset
17159
17160 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17161 \end_layout
17162
17163 \begin_layout Description
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 LabelString [文字列=""]
17169 \end_layout
17170
17171 \end_inset
17172
17173  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17174 \begin_inset Flex Code
17175 status collapsed
17176
17177 \begin_layout Plain Layout
17178 LabelStringAppendix
17179 \end_layout
17180
17181 \end_inset
17182
17183 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17184 \begin_inset Separator parbreak
17185 \end_inset
17186
17187
17188 \end_layout
17189
17190 \begin_deeper
17191 \begin_layout Itemize
17192 \begin_inset Flex Code
17193 status collapsed
17194
17195 \begin_layout Plain Layout
17196
17197 \backslash
17198 thecounter
17199 \end_layout
17200
17201 \end_inset
17202
17203 は、カウンタ
17204 \begin_inset Flex Code
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208 counter
17209 \end_layout
17210
17211 \end_inset
17212
17213
17214 \begin_inset Flex Code
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218 LabelString
17219 \end_layout
17220
17221 \end_inset
17222
17223 (または
17224 \begin_inset Newline linebreak
17225 \end_inset
17226
17227
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 LabelStringAppendix
17233 \end_layout
17234
17235 \end_inset
17236
17237 )を展開したもので置き換えられます。 
17238 \end_layout
17239
17240 \begin_layout Itemize
17241 カウンタ値は、\SpecialChar LaTeX
17242 型マクロ
17243 \begin_inset Flex Code
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247
17248 \backslash
17249
17250 \emph on
17251 numbertype
17252 \emph default
17253 {
17254 \emph on
17255 カウンタ
17256 \emph default
17257 }
17258 \end_layout
17259
17260 \end_inset
17261
17262 を用いて表現することができます。ここで
17263 \begin_inset Flex Code
17264 status collapsed
17265
17266 \begin_layout Plain Layout
17267
17268 \emph on
17269 numbertype
17270 \end_layout
17271
17272 \end_inset
17273
17274 は以下のいずれかです。
17275 \begin_inset Flex Code
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279 arabic
17280 \end_layout
17281
17282 \end_inset
17283
17284 :1, 2, 3,\SpecialChar ldots
17285
17286 \begin_inset Flex Code
17287 status collapsed
17288
17289 \begin_layout Plain Layout
17290 alph
17291 \end_layout
17292
17293 \end_inset
17294
17295 :a, b, c, \SpecialChar ldots
17296 (小文字);
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 Alph
17302 \end_layout
17303
17304 \end_inset
17305
17306 :A, B, C, \SpecialChar ldots
17307 (大文字);
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 roman
17313 \end_layout
17314
17315 \end_inset
17316
17317 :i, ii, iii, \SpecialChar ldots
17318 (小文字ローマ数字);
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 Roman
17324 \end_layout
17325
17326 \end_inset
17327
17328 :I, II, III\SpecialChar ldots
17329 (大文字ローマ数字)。
17330 \end_layout
17331
17332 \end_deeper
17333 \begin_layout Standard
17334 \begin_inset Flex Code
17335 status collapsed
17336
17337 \begin_layout Plain Layout
17338 LabelString
17339 \end_layout
17340
17341 \end_inset
17342
17343 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 master
17349 \end_layout
17350
17351 \end_inset
17352
17353
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358 Within
17359 \end_layout
17360
17361 \end_inset
17362
17363 で定義)があるときには、文字列
17364 \begin_inset Newline linebreak
17365 \end_inset
17366
17367
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372
17373 \backslash
17374 themaster.
17375 \backslash
17376 arabic{カウンタ}
17377 \end_layout
17378
17379 \end_inset
17380
17381 が使用されます。それ以外の場合は、
17382 \begin_inset Flex Code
17383 status collapsed
17384
17385 \begin_layout Plain Layout
17386
17387 \backslash
17388 arabic{カウンタ}
17389 \end_layout
17390
17391 \end_inset
17392
17393 が使用されます。
17394 \end_layout
17395
17396 \begin_layout Description
17397 \begin_inset Flex Code
17398 status collapsed
17399
17400 \begin_layout Plain Layout
17401 LabelStringAppendix
17402 \end_layout
17403
17404 \end_inset
17405
17406  [
17407 \begin_inset Flex Code
17408 status collapsed
17409
17410 \begin_layout Plain Layout
17411 文字列
17412 \end_layout
17413
17414 \end_inset
17415
17416 =""] 
17417 \begin_inset Flex Code
17418 status collapsed
17419
17420 \begin_layout Plain Layout
17421 LabelString
17422 \end_layout
17423
17424 \end_inset
17425
17426 と同様ですが、付録で使用するためのものです。
17427 \end_layout
17428
17429 \begin_layout Description
17430 \begin_inset Flex Code
17431 status collapsed
17432
17433 \begin_layout Plain Layout
17434 PrettyFormat
17435 \end_layout
17436
17437 \end_inset
17438
17439  [
17440 \begin_inset Flex Code
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 文字列
17445 \end_layout
17446
17447 \end_inset
17448
17449 =
17450 \begin_inset Quotes erd
17451 \end_inset
17452
17453
17454 \begin_inset Quotes erd
17455 \end_inset
17456
17457 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17458 \begin_inset space ~
17459 \end_inset
17460
17461 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17462 す。
17463 \end_layout
17464
17465 \begin_layout Description
17466 \begin_inset Flex Code
17467 status collapsed
17468
17469 \begin_layout Plain Layout
17470 Within
17471 \end_layout
17472
17473 \end_inset
17474
17475  [
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 文字列
17481 \end_layout
17482
17483 \end_inset
17484
17485 =
17486 \begin_inset Quotes erd
17487 \end_inset
17488
17489
17490 \begin_inset Quotes erd
17491 \end_inset
17492
17493 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17494 \begin_inset Flex Code
17495 status collapsed
17496
17497 \begin_layout Plain Layout
17498 subsection
17499 \end_layout
17500
17501 \end_inset
17502
17503
17504 \begin_inset Flex Code
17505 status collapsed
17506
17507 \begin_layout Plain Layout
17508 section
17509 \end_layout
17510
17511 \end_inset
17512
17513 毎に番号がリセットされます。
17514 \end_layout
17515
17516 \begin_layout Subsection
17517 フォント指定
17518 \begin_inset CommandInset label
17519 LatexCommand label
17520 name "subsec:フォント指定"
17521
17522 \end_inset
17523
17524
17525 \end_layout
17526
17527 \begin_layout Standard
17528 フォント指定は、以下のような形を取ります。
17529 \end_layout
17530
17531 \begin_layout LyX-Code
17532 Font 
17533 \family roman
17534 \emph on
17535 または
17536 \family default
17537 \emph default
17538  LabelFont 
17539 \family roman
17540 \emph on
17541 または
17542 \family default
17543 \emph default
17544  DefaultFont
17545 \end_layout
17546
17547 \begin_layout LyX-Code
17548  ...
17549 \end_layout
17550
17551 \begin_layout LyX-Code
17552 EndFont
17553 \end_layout
17554
17555 \begin_layout Standard
17556 以下のコマンドを使用することができます。
17557 \end_layout
17558
17559 \begin_layout Description
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 Color
17565 \end_layout
17566
17567 \end_inset
17568
17569  [
17570 \begin_inset Flex Code
17571 status collapsed
17572
17573 \begin_layout Plain Layout
17574
17575 \emph on
17576 none
17577 \end_layout
17578
17579 \end_inset
17580
17581
17582 \begin_inset Flex Code
17583 status collapsed
17584
17585 \begin_layout Plain Layout
17586 black
17587 \end_layout
17588
17589 \end_inset
17590
17591
17592 \begin_inset Flex Code
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 white
17597 \end_layout
17598
17599 \end_inset
17600
17601
17602 \begin_inset Flex Code
17603 status collapsed
17604
17605 \begin_layout Plain Layout
17606 red
17607 \end_layout
17608
17609 \end_inset
17610
17611
17612 \begin_inset Flex Code
17613 status collapsed
17614
17615 \begin_layout Plain Layout
17616 green
17617 \end_layout
17618
17619 \end_inset
17620
17621
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626 blue
17627 \end_layout
17628
17629 \end_inset
17630
17631
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 cyan
17637 \end_layout
17638
17639 \end_inset
17640
17641
17642 \begin_inset Flex Code
17643 status collapsed
17644
17645 \begin_layout Plain Layout
17646 magenta
17647 \end_layout
17648
17649 \end_inset
17650
17651
17652 \begin_inset Flex Code
17653 status collapsed
17654
17655 \begin_layout Plain Layout
17656 yellow
17657 \end_layout
17658
17659 \end_inset
17660
17661
17662 \begin_inset Flex Code
17663 status collapsed
17664
17665 \begin_layout Plain Layout
17666 brown
17667 \end_layout
17668
17669 \end_inset
17670
17671
17672 \begin_inset Flex Code
17673 status collapsed
17674
17675 \begin_layout Plain Layout
17676 darkgray
17677 \end_layout
17678
17679 \end_inset
17680
17681
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 gray
17687 \end_layout
17688
17689 \end_inset
17690
17691
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 lightgray
17697 \end_layout
17698
17699 \end_inset
17700
17701
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 lime
17707 \end_layout
17708
17709 \end_inset
17710
17711
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 orange
17717 \end_layout
17718
17719 \end_inset
17720
17721
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726 olive
17727 \end_layout
17728
17729 \end_inset
17730
17731
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 pink
17737 \end_layout
17738
17739 \end_inset
17740
17741
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 purple
17747 \end_layout
17748
17749 \end_inset
17750
17751
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 teal
17757 \end_layout
17758
17759 \end_inset
17760
17761
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766 violet
17767 \end_layout
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 Family
17780 \end_layout
17781
17782 \end_inset
17783
17784  [
17785 \emph on
17786
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 Roman
17792 \end_layout
17793
17794 \end_inset
17795
17796
17797 \emph default
17798
17799 \begin_inset Flex Code
17800 status collapsed
17801
17802 \begin_layout Plain Layout
17803 Sans
17804 \end_layout
17805
17806 \end_inset
17807
17808
17809 \begin_inset Flex Code
17810 status collapsed
17811
17812 \begin_layout Plain Layout
17813 Typewriter
17814 \end_layout
17815
17816 \end_inset
17817
17818
17819 \end_layout
17820
17821 \begin_layout Description
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 Misc
17827 \end_layout
17828
17829 \end_inset
17830
17831  [
17832 \begin_inset Flex Code
17833 status collapsed
17834
17835 \begin_layout Plain Layout
17836 文字列
17837 \end_layout
17838
17839 \end_inset
17840
17841 ] 有効な引数は、
17842 \begin_inset Flex Code
17843 status collapsed
17844
17845 \begin_layout Plain Layout
17846 emph
17847 \end_layout
17848
17849 \end_inset
17850
17851
17852 \begin_inset Flex Code
17853 status collapsed
17854
17855 \begin_layout Plain Layout
17856 noun
17857 \end_layout
17858
17859 \end_inset
17860
17861
17862 \begin_inset Flex Code
17863 status collapsed
17864
17865 \begin_layout Plain Layout
17866 strikeout
17867 \end_layout
17868
17869 \end_inset
17870
17871
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 underbar
17877 \end_layout
17878
17879 \end_inset
17880
17881
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 uuline
17887 \end_layout
17888
17889 \end_inset
17890
17891
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 uwave
17897 \end_layout
17898
17899 \end_inset
17900
17901
17902 \begin_inset Flex Code
17903 status collapsed
17904
17905 \begin_layout Plain Layout
17906 no_emph
17907 \end_layout
17908
17909 \end_inset
17910
17911
17912 \begin_inset Flex Code
17913 status collapsed
17914
17915 \begin_layout Plain Layout
17916 no_noun
17917 \end_layout
17918
17919 \end_inset
17920
17921
17922 \begin_inset Flex Code
17923 status collapsed
17924
17925 \begin_layout Plain Layout
17926 no_strikeout
17927 \end_layout
17928
17929 \end_inset
17930
17931
17932 \begin_inset Flex Code
17933 status collapsed
17934
17935 \begin_layout Plain Layout
17936 no_bar
17937 \end_layout
17938
17939 \end_inset
17940
17941
17942 \begin_inset Flex Code
17943 status collapsed
17944
17945 \begin_layout Plain Layout
17946 no_uuline
17947 \end_layout
17948
17949 \end_inset
17950
17951
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 no_uwave
17957 \end_layout
17958
17959 \end_inset
17960
17961 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
17962 \begin_inset Newline newline
17963 \end_inset
17964
17965 たとえば、
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 emph
17971 \end_layout
17972
17973 \end_inset
17974
17975 は強調を有効にし、
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 no_emph
17981 \end_layout
17982
17983 \end_inset
17984
17985 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
17986
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 no_emph
17992 \end_layout
17993
17994 \end_inset
17995
17996 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
17997 \end_layout
17998
17999 \begin_layout Description
18000 \begin_inset Flex Code
18001 status collapsed
18002
18003 \begin_layout Plain Layout
18004 Series
18005 \end_layout
18006
18007 \end_inset
18008
18009  [
18010 \emph on
18011
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 Medium
18017 \end_layout
18018
18019 \end_inset
18020
18021
18022 \emph default
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 Bold
18029 \end_layout
18030
18031 \end_inset
18032
18033
18034 \end_layout
18035
18036 \begin_layout Description
18037 \begin_inset Flex Code
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 Shape
18042 \end_layout
18043
18044 \end_inset
18045
18046  [
18047 \emph on
18048
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 Up
18054 \end_layout
18055
18056 \end_inset
18057
18058
18059 \emph default
18060
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 Italic
18066 \end_layout
18067
18068 \end_inset
18069
18070
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075 SmallCaps
18076 \end_layout
18077
18078 \end_inset
18079
18080
18081 \begin_inset Flex Code
18082 status collapsed
18083
18084 \begin_layout Plain Layout
18085 Slanted
18086 \end_layout
18087
18088 \end_inset
18089
18090
18091 \end_layout
18092
18093 \begin_layout Description
18094 \begin_inset Flex Code
18095 status collapsed
18096
18097 \begin_layout Plain Layout
18098 Size
18099 \end_layout
18100
18101 \end_inset
18102
18103  [
18104 \begin_inset Flex Code
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108 tiny
18109 \end_layout
18110
18111 \end_inset
18112
18113
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 small
18119 \end_layout
18120
18121 \end_inset
18122
18123
18124 \begin_inset Flex Code
18125 status collapsed
18126
18127 \begin_layout Plain Layout
18128
18129 \emph on
18130 normal
18131 \end_layout
18132
18133 \end_inset
18134
18135
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 large
18141 \end_layout
18142
18143 \end_inset
18144
18145
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 larger
18151 \end_layout
18152
18153 \end_inset
18154
18155
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 largest
18161 \end_layout
18162
18163 \end_inset
18164
18165
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 huge
18171 \end_layout
18172
18173 \end_inset
18174
18175
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 giant
18181 \end_layout
18182
18183 \end_inset
18184
18185 ]
18186 \end_layout
18187
18188 \begin_layout Subsection
18189 \begin_inset CommandInset label
18190 LatexCommand label
18191 name "subsec:引用書式指定"
18192
18193 \end_inset
18194
18195 引用書式指定
18196 \end_layout
18197
18198 \begin_layout Standard
18199 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18200 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205 CiteFormat
18206 \end_layout
18207
18208 \end_inset
18209
18210 ブロックが使用されています。このブロックは、以下のような形をしています。
18211 \end_layout
18212
18213 \begin_layout LyX-Code
18214 CiteFormat
18215 \end_layout
18216
18217 \begin_layout LyX-Code
18218  article ...
18219 \end_layout
18220
18221 \begin_layout LyX-Code
18222  book ...
18223 \end_layout
18224
18225 \begin_layout LyX-Code
18226 End
18227 \end_layout
18228
18229 \begin_layout Standard
18230 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18231 ファイル中に存在し
18232 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18233 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18234 は、いくつかの書式を
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 stdciteformats.inc
18240 \end_layout
18241
18242 \end_inset
18243
18244 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18245 文書クラスにインクルードされています。
18246 \end_layout
18247
18248 \begin_layout Standard
18249 この定義は、Bib\SpecialChar TeX
18250 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18251 \begin_inset Flex Code
18252 status collapsed
18253
18254 \begin_layout Plain Layout
18255 %author%
18256 \end_layout
18257
18258 \end_inset
18259
18260 のように
18261 \begin_inset Flex Code
18262 status collapsed
18263
18264 \begin_layout Plain Layout
18265 %
18266 \end_layout
18267
18268 \end_inset
18269
18270 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18271 \end_layout
18272
18273 \begin_layout LyX-Code
18274 misc %author%, 
18275 \begin_inset Quotes eld
18276 \end_inset
18277
18278 %title%
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282
18283 \end_layout
18284
18285 \begin_layout Standard
18286 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18287 \end_layout
18288
18289 \begin_layout Standard
18290 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 {%volume%[[vol.
18296 \begin_inset space ~
18297 \end_inset
18298
18299 %volume%]]}
18300 \end_layout
18301
18302 \end_inset
18303
18304 のように、条件付きの構成を使用することができます。これは、
18305 \begin_inset Flex Code
18306 status collapsed
18307
18308 \begin_layout Plain Layout
18309 volume
18310 \end_layout
18311
18312 \end_inset
18313
18314 が存在するならば,「vol.
18315 \begin_inset space ~
18316 \end_inset
18317
18318 」とvolumeキーを出力するという意味です。また、
18319 \begin_inset Newline newline
18320 \end_inset
18321
18322
18323 \begin_inset Flex Code
18324 status collapsed
18325
18326 \begin_layout Plain Layout
18327 {%author%[[%author%]][[%editor%, ed.]]}
18328 \end_layout
18329
18330 \end_inset
18331
18332
18333 \begin_inset Newline newline
18334 \end_inset
18335
18336 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 author
18342 \end_layout
18343
18344 \end_inset
18345
18346 キーが存在するならば出力され、そうでなければeditorキーと「,
18347 \begin_inset space ~
18348 \end_inset
18349
18350 ed.」が出力されます。ここでもキーは、
18351 \begin_inset Flex Code
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355 %
18356 \end_layout
18357
18358 \end_inset
18359
18360 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 [[
18366 \end_layout
18367
18368 \end_inset
18369
18370 」と「
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 ]]
18376 \end_layout
18377
18378 \end_inset
18379
18380 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18381 \end_layout
18382
18383 \begin_layout Standard
18384 もう一つ、定義中で使用することのできる文法として、
18385 \begin_inset Flex Code
18386 status collapsed
18387
18388 \begin_layout Plain Layout
18389 {!<i>!}
18390 \end_layout
18391
18392 \end_inset
18393
18394 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18395 グを出力させたくはありませんから、HTMLタグは「
18396 \begin_inset Flex Code
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400 {!
18401 \end_layout
18402
18403 \end_inset
18404
18405 」と「
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 !}
18411 \end_layout
18412
18413 \end_inset
18414
18415 」でくるんでやらなくてはならないのです。
18416 \end_layout
18417
18418 \begin_layout Standard
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 CiteFormat
18424 \end_layout
18425
18426 \end_inset
18427
18428 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18429 \end_layout
18430
18431 \begin_layout LyX-Code
18432 !quotetitle 
18433 \begin_inset Quotes eld
18434 \end_inset
18435
18436 %title%
18437 \begin_inset Quotes erd
18438 \end_inset
18439
18440
18441 \end_layout
18442
18443 \begin_layout Standard
18444 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18445 \begin_inset Flex Code
18446 status collapsed
18447
18448 \begin_layout Plain Layout
18449 %!quotetitle%
18450 \end_layout
18451
18452 \end_inset
18453
18454 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18455 は、
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 %!quotetitle%
18461 \end_layout
18462
18463 \end_inset
18464
18465 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18466 \end_layout
18467
18468 \begin_layout LyX-Code
18469 !funfun %funfun%
18470 \end_layout
18471
18472 \begin_layout Standard
18473 のようなことはしないでください。\SpecialChar LyX
18474 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18475 \end_layout
18476
18477 \begin_layout Standard
18478 特殊な定義の二つめは、
18479 \end_layout
18480
18481 \begin_layout LyX-Code
18482 _pptext pp.
18483 \end_layout
18484
18485 \begin_layout Standard
18486 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491 %_pptext%
18492 \end_layout
18493
18494 \end_inset
18495
18496 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18497 \begin_inset Flex Code
18498 status collapsed
18499
18500 \begin_layout Plain Layout
18501 stdciteformats.inc
18502 \end_layout
18503
18504 \end_inset
18505
18506 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18507 \end_layout
18508
18509 \begin_layout Standard
18510 以下は、これらの機能を全て使った例です。
18511 \begin_inset VSpace defskip
18512 \end_inset
18513
18514
18515 \end_layout
18516
18517 \begin_layout Standard
18518 \noindent
18519
18520 \family typewriter
18521 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18522 \end_layout
18523
18524 \begin_layout Standard
18525 \begin_inset VSpace defskip
18526 \end_inset
18527
18528 これは、
18529 \begin_inset Flex Code
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533 author
18534 \end_layout
18535
18536 \end_inset
18537
18538 キーが定義されているならば、著者とコンマを出力し、
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 author
18544 \end_layout
18545
18546 \end_inset
18547
18548 キーが定義されておらず、
18549 \begin_inset Flex Code
18550 status collapsed
18551
18552 \begin_layout Plain Layout
18553 editor
18554 \end_layout
18555
18556 \end_inset
18557
18558 キーが定義されているならば、編集者名の後に
18559 \begin_inset Flex Code
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563 _edtext
18564 \end_layout
18565
18566 \end_inset
18567
18568 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18569 \begin_inset Flex Code
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573 stdciteformats.inc
18574 \end_layout
18575
18576 \end_inset
18577
18578 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18579 \end_layout
18580
18581 \begin_layout Section
18582 \begin_inset CommandInset label
18583 LatexCommand label
18584 name "sec:XHTML出力のタグ"
18585
18586 \end_inset
18587
18588 XHTML出力のタグ
18589 \end_layout
18590
18591 \begin_layout Standard
18592 \SpecialChar LaTeX
18593 やDocBookと同様、\SpecialChar LyX
18594 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18595 は適切な既定値を提供し、前述したように、他のレイアウト
18596 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18597 は、章様式の
18598 \begin_inset Flex Code
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602 Font
18603 \end_layout
18604
18605 \end_inset
18606
18607 宣言で提供されている情報を利用しようと試みます。
18608 \end_layout
18609
18610 \begin_layout Standard
18611 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18612 、これが必要になる場合もあるので、\SpecialChar LyX
18613 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18614 \end_layout
18615
18616 \begin_layout Standard
18617 様式宣言や差込枠宣言の外で使用することができるタグに、
18618 \begin_inset Flex Code
18619 status collapsed
18620
18621 \begin_layout Plain Layout
18622 HTMLPreamble
18623 \end_layout
18624
18625 \end_inset
18626
18627
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 AddToHTMLPreamble
18633 \end_layout
18634
18635 \end_inset
18636
18637 の2つがあることに注意してください。これらの詳細については、
18638 \begin_inset CommandInset ref
18639 LatexCommand ref
18640 reference "subsec:汎用テキストクラスパラメータ"
18641
18642 \end_inset
18643
18644 をご覧ください。
18645 \end_layout
18646
18647 \begin_layout Subsection
18648 \begin_inset CommandInset label
18649 LatexCommand label
18650 name "subsec:段落様式-XHTML"
18651
18652 \end_inset
18653
18654 段落様式
18655 \end_layout
18656
18657 \begin_layout Standard
18658 \SpecialChar LyX
18659 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 \SpecialChar LaTeX
18665 Type
18666 \end_layout
18667
18668 \end_inset
18669
18670 タグの内容によって決定されます。
18671 \end_layout
18672
18673 \begin_layout Standard
18674 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18675 \end_layout
18676
18677 \begin_layout LyX-Code
18678 <tag attr=
18679 \begin_inset Quotes erd
18680 \end_inset
18681
18682 value
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686 >
18687 \end_layout
18688
18689 \begin_layout LyX-Code
18690 <labeltag attr=
18691 \begin_inset Quotes erd
18692 \end_inset
18693
18694 value
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698 >ラベル</labeltag>
18699 \end_layout
18700
18701 \begin_layout LyX-Code
18702 段落の内容
18703 \end_layout
18704
18705 \begin_layout LyX-Code
18706 </tag>
18707 \end_layout
18708
18709 \begin_layout Standard
18710 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18711 \end_layout
18712
18713 \begin_layout Standard
18714 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18715 \end_layout
18716
18717 \begin_layout LyX-Code
18718 <tag attr=
18719 \begin_inset Quotes erd
18720 \end_inset
18721
18722 value
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726 >
18727 \end_layout
18728
18729 \begin_layout LyX-Code
18730 <itemtag attr=
18731 \begin_inset Quotes erd
18732 \end_inset
18733
18734 value
18735 \begin_inset Quotes erd
18736 \end_inset
18737
18738 ><labeltag attr=
18739 \begin_inset Quotes erd
18740 \end_inset
18741
18742 value
18743 \begin_inset Quotes erd
18744 \end_inset
18745
18746 >環境ラベル</labeltag>最初の段落。
18747 \end_layout
18748
18749 \begin_layout LyX-Code
18750 </itemtag>
18751 \end_layout
18752
18753 \begin_layout LyX-Code
18754 <itemtag>二つめの段落。</itemtag>
18755 \end_layout
18756
18757 \begin_layout LyX-Code
18758 </tag>
18759 \end_layout
18760
18761 \begin_layout Standard
18762 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18763 \end_layout
18764
18765 \begin_layout Standard
18766 リストに関しては、次のような形になります。
18767 \end_layout
18768
18769 \begin_layout LyX-Code
18770 <tag attr=
18771 \begin_inset Quotes erd
18772 \end_inset
18773
18774 value
18775 \begin_inset Quotes erd
18776 \end_inset
18777
18778 >
18779 \end_layout
18780
18781 \begin_layout LyX-Code
18782 <itemtag attr=
18783 \begin_inset Quotes erd
18784 \end_inset
18785
18786 value
18787 \begin_inset Quotes erd
18788 \end_inset
18789
18790 ><labeltag attr=
18791 \begin_inset Quotes erd
18792 \end_inset
18793
18794 value
18795 \begin_inset Quotes erd
18796 \end_inset
18797
18798 >リストのラベル</labeltag>最初の項目。</itemtag>
18799 \end_layout
18800
18801 \begin_layout LyX-Code
18802 <itemtag attr=
18803 \begin_inset Quotes erd
18804 \end_inset
18805
18806 value
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810 ><labeltag attr=
18811 \begin_inset Quotes erd
18812 \end_inset
18813
18814 value
18815 \begin_inset Quotes erd
18816 \end_inset
18817
18818 >リストのラベル</labeltag>二つめの項目。</itemtag>
18819 \end_layout
18820
18821 \begin_layout LyX-Code
18822 </tag>
18823 \end_layout
18824
18825 \begin_layout LyX-Code
18826
18827 \end_layout
18828
18829 \begin_layout LyX-Code
18830 <tag attr=
18831 \begin_inset Quotes erd
18832 \end_inset
18833
18834 value
18835 \begin_inset Quotes erd
18836 \end_inset
18837
18838 >
18839 \end_layout
18840
18841 \begin_layout LyX-Code
18842 <labeltag attr=
18843 \begin_inset Quotes erd
18844 \end_inset
18845
18846 value
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850 >リストのラベル</labeltag><itemtag attr=
18851 \begin_inset Quotes erd
18852 \end_inset
18853
18854 value
18855 \begin_inset Quotes erd
18856 \end_inset
18857
18858 >最初の項目。</itemtag>
18859 \end_layout
18860
18861 \begin_layout LyX-Code
18862 <labeltag attr=
18863 \begin_inset Quotes erd
18864 \end_inset
18865
18866 value
18867 \begin_inset Quotes erd
18868 \end_inset
18869
18870 >リストのラベル</labeltag><itemtag attr=
18871 \begin_inset Quotes erd
18872 \end_inset
18873
18874 value
18875 \begin_inset Quotes erd
18876 \end_inset
18877
18878 >二つめの項目</itemtag>
18879 \end_layout
18880
18881 \begin_layout LyX-Code
18882 </tag>
18883 \end_layout
18884
18885 \begin_layout Standard
18886 ここで
18887 \begin_inset Flex Code
18888 status collapsed
18889
18890 \begin_layout Plain Layout
18891 labeltag
18892 \end_layout
18893
18894 \end_inset
18895
18896
18897 \begin_inset Flex Code
18898 status collapsed
18899
18900 \begin_layout Plain Layout
18901 itemtag
18902 \end_layout
18903
18904 \end_inset
18905
18906 の順序が違っていることに注意してください。どちらの順序になるかは、
18907 \begin_inset Flex Code
18908 status collapsed
18909
18910 \begin_layout Plain Layout
18911 HTMLLabelFirst
18912 \end_layout
18913
18914 \end_inset
18915
18916 の設定に依存します。もし
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 HTMLLabelFirst
18922 \end_layout
18923
18924 \end_inset
18925
18926 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
18927 \end_layout
18928
18929 \begin_layout Standard
18930 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
18931 は適切な既定値を生成
18932 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
18933 でここにあるものと考えてください。
18934 \end_layout
18935
18936 \begin_layout Description
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941 HTMLAttr
18942 \end_layout
18943
18944 \end_inset
18945
18946  [
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 文字列
18952 \end_layout
18953
18954 \end_inset
18955
18956 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
18957 \begin_inset Flex Code
18958 status collapsed
18959
18960 \begin_layout Plain Layout
18961 class=`mydiv'
18962 \end_layout
18963
18964 \end_inset
18965
18966 」のようなものです。既定においては、\SpecialChar LyX
18967 は「
18968 \begin_inset Flex Code
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972 class=`レイアウト名'
18973 \end_layout
18974
18975 \end_inset
18976
18977 」と出力します。ここで
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 レイアウト名
18983 \end_layout
18984
18985 \end_inset
18986
18987 は、レイアウトの\SpecialChar LyX
18988 名であり、chapterのように小文字で記述します。
18989 \end_layout
18990
18991 \begin_layout Description
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 HTMLForceCSS
18997 \end_layout
18998
18999 \end_inset
19000
19001  [
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006
19007 \emph on
19008 0
19009 \emph default
19010 ,1
19011 \end_layout
19012
19013 \end_inset
19014
19015 ] 
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 HTMLStyle
19021 \end_layout
19022
19023 \end_inset
19024
19025 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19026 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 1
19032 \end_layout
19033
19034 \end_inset
19035
19036 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 0
19042 \end_layout
19043
19044 \end_inset
19045
19046 です。
19047 \end_layout
19048
19049 \begin_layout Description
19050 \begin_inset Flex Code
19051 status collapsed
19052
19053 \begin_layout Plain Layout
19054 HTMLItem
19055 \end_layout
19056
19057 \end_inset
19058
19059  [
19060 \begin_inset Flex Code
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 文字列
19065 \end_layout
19066
19067 \end_inset
19068
19069 ] 環境の段落に使用されるタグ。上記各例の
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 itemtag
19075 \end_layout
19076
19077 \end_inset
19078
19079 を置き換えます。既定値は
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 div
19085 \end_layout
19086
19087 \end_inset
19088
19089 です。
19090 \end_layout
19091
19092 \begin_layout Description
19093 \begin_inset Flex Code
19094 status collapsed
19095
19096 \begin_layout Plain Layout
19097 HTMLItemAttr
19098 \end_layout
19099
19100 \end_inset
19101
19102  [
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 文字列
19108 \end_layout
19109
19110 \end_inset
19111
19112 ] itemタグの属性。既定値は
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 class=`レイアウト名_item'
19118 \end_layout
19119
19120 \end_inset
19121
19122 です。ここには、様式情報は含まれては
19123 \emph on
19124 なりません
19125 \emph default
19126 。その目的のためには、
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 HTMLStyle
19132 \end_layout
19133
19134 \end_inset
19135
19136 を使用してください。
19137 \end_layout
19138
19139 \begin_layout Description
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 HTMLLabel
19145 \end_layout
19146
19147 \end_inset
19148
19149  [
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 文字列
19155 \end_layout
19156
19157 \end_inset
19158
19159 ] 段落と項目ラベルに使用されるタグ。上記各例の
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 labeltag
19165 \end_layout
19166
19167 \end_inset
19168
19169 を置き換えます。
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 LabelType
19175 \end_layout
19176
19177 \end_inset
19178
19179
19180 \begin_inset Flex Code
19181 status collapsed
19182
19183 \begin_layout Plain Layout
19184 Top_Environment
19185 \end_layout
19186
19187 \end_inset
19188
19189
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 Centered_Top_Environment
19195 \end_layout
19196
19197 \end_inset
19198
19199 の時は、既定値は
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 div
19205 \end_layout
19206
19207 \end_inset
19208
19209 ですが、それ以外の時の既定値は
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 span
19215 \end_layout
19216
19217 \end_inset
19218
19219 です。
19220 \end_layout
19221
19222 \begin_layout Description
19223 \begin_inset Flex Code
19224 status collapsed
19225
19226 \begin_layout Plain Layout
19227 HTMLLabelAttr
19228 \end_layout
19229
19230 \end_inset
19231
19232  [
19233 \begin_inset Flex Code
19234 status collapsed
19235
19236 \begin_layout Plain Layout
19237 文字列
19238 \end_layout
19239
19240 \end_inset
19241
19242 ] labelタグの属性。既定値は
19243 \begin_inset Flex Code
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247 class=`レイアウト名_label'
19248 \end_layout
19249
19250 \end_inset
19251
19252 です。ここには、様式情報は含まれては
19253 \emph on
19254 なりません
19255 \emph default
19256 。その目的のためには、
19257 \begin_inset Flex Code
19258 status collapsed
19259
19260 \begin_layout Plain Layout
19261 HTMLStyle
19262 \end_layout
19263
19264 \end_inset
19265
19266 を使用してください。
19267 \end_layout
19268
19269 \begin_layout Description
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 HTMLLabelFirst
19275 \end_layout
19276
19277 \end_inset
19278
19279  [
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284
19285 \emph on
19286 0
19287 \emph default
19288 ,1
19289 \end_layout
19290
19291 \end_inset
19292
19293 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19294 tion環境の中で、
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 `<dt>\SpecialChar ldots
19300 </dt><dd>\SpecialChar ldots
19301 </dd>
19302 \end_layout
19303
19304 \end_inset
19305
19306 という形を得るために使用されます。既定値は
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 0
19312 \end_layout
19313
19314 \end_inset
19315
19316 で、labelタグはitemタグの中に出力されます。
19317 \end_layout
19318
19319 \begin_layout Description
19320 \begin_inset Flex Code
19321 status collapsed
19322
19323 \begin_layout Plain Layout
19324 HTMLPreamble
19325 \end_layout
19326
19327 \end_inset
19328
19329  この様式が使用されたときに、
19330 \begin_inset Flex Code
19331 status collapsed
19332
19333 \begin_layout Plain Layout
19334 <head>
19335 \end_layout
19336
19337 \end_inset
19338
19339 セクションに出力される情報。これは、たとえば、
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 onclick
19345 \end_layout
19346
19347 \end_inset
19348
19349 ハンドラを定義するために
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 <script>
19355 \end_layout
19356
19357 \end_inset
19358
19359 ブロックをインクルードするのに使用することができます。
19360 \end_layout
19361
19362 \begin_layout Description
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 HTMLStyle
19368 \end_layout
19369
19370 \end_inset
19371
19372   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 <style>
19378 \end_layout
19379
19380 \end_inset
19381
19382 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 EndHTMLStyle
19388 \end_layout
19389
19390 \end_inset
19391
19392 で閉じなくてはなりません。
19393 \end_layout
19394
19395 \begin_layout Description
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 HTMLTag
19401 \end_layout
19402
19403 \end_inset
19404
19405  [
19406 \begin_inset Flex Code
19407 status collapsed
19408
19409 \begin_layout Plain Layout
19410 文字列
19411 \end_layout
19412
19413 \end_inset
19414
19415 ] 主幹ラベルに使用されるタグ。上記各例の
19416 \begin_inset Flex Code
19417 status collapsed
19418
19419 \begin_layout Plain Layout
19420 tag
19421 \end_layout
19422
19423 \end_inset
19424
19425 を置き換えます。既定値は
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 div
19431 \end_layout
19432
19433 \end_inset
19434
19435 です。
19436 \end_layout
19437
19438 \begin_layout Description
19439 \begin_inset Flex Code
19440 status collapsed
19441
19442 \begin_layout Plain Layout
19443 HTMLTitle
19444 \end_layout
19445
19446 \end_inset
19447
19448  [
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453
19454 \emph on
19455 0
19456 \emph default
19457 ,1
19458 \end_layout
19459
19460 \end_inset
19461
19462 ] この様式が、XHTMLファイルの
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 <title>
19468 \end_layout
19469
19470 \end_inset
19471
19472 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 stdtitle.inc
19478 \end_layout
19479
19480 \end_inset
19481
19482 ファイルでは、
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 title
19488 \end_layout
19489
19490 \end_inset
19491
19492 環境のこの項目を真に設定しています。
19493 \end_layout
19494
19495 \begin_layout Subsection
19496 差込枠レイアウトXHTML
19497 \end_layout
19498
19499 \begin_layout Standard
19500 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19501 \begin_inset Foot
19502 status collapsed
19503
19504 \begin_layout Plain Layout
19505 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19506 ん。
19507 \end_layout
19508
19509 \end_inset
19510
19511 。ここでも、\SpecialChar LyX
19512 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19513 \end_layout
19514
19515 \begin_layout Standard
19516 \SpecialChar LyX
19517 が差込枠用に出力するXHTMLは、以下の形を取ります。
19518 \end_layout
19519
19520 \begin_layout LyX-Code
19521 <tag attr=
19522 \begin_inset Quotes erd
19523 \end_inset
19524
19525 value
19526 \begin_inset Quotes erd
19527 \end_inset
19528
19529 >
19530 \end_layout
19531
19532 \begin_layout LyX-Code
19533 <labeltag>ラベル</labeltag>
19534 \end_layout
19535
19536 \begin_layout LyX-Code
19537 <innertag attr=
19538 \begin_inset Quotes erd
19539 \end_inset
19540
19541 value
19542 \begin_inset Quotes erd
19543 \end_inset
19544
19545 >差込枠の内容。</innertag>
19546 \end_layout
19547
19548 \begin_layout LyX-Code
19549 </tag>
19550 \end_layout
19551
19552 \begin_layout Standard
19553 差込枠が多段落を許可している—つまり
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 MultiPar
19559 \end_layout
19560
19561 \end_inset
19562
19563 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19564 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 span
19570 \end_layout
19571
19572 \end_inset
19573
19574 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19575 す。
19576 \end_layout
19577
19578 \begin_layout Description
19579 \begin_inset Flex Code
19580 status collapsed
19581
19582 \begin_layout Plain Layout
19583 HTMLAttr
19584 \end_layout
19585
19586 \end_inset
19587
19588  [
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 文字列
19594 \end_layout
19595
19596 \end_inset
19597
19598 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19599 \begin_inset Flex Code
19600 status collapsed
19601
19602 \begin_layout Plain Layout
19603 class=`myinset' onclick=`\SpecialChar ldots
19604 '
19605 \end_layout
19606
19607 \end_inset
19608
19609 」のようなものです。既定においては、\SpecialChar LyX
19610 は「
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 class=`差込枠名'
19616 \end_layout
19617
19618 \end_inset
19619
19620 」と出力します。ここで
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625 差込枠名
19626 \end_layout
19627
19628 \end_inset
19629
19630 は、差込枠の\SpecialChar LyX
19631 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19632 \end_layout
19633
19634 \begin_layout Description
19635 \begin_inset Flex Code
19636 status collapsed
19637
19638 \begin_layout Plain Layout
19639 HTMLForceCSS
19640 \end_layout
19641
19642 \end_inset
19643
19644  [
19645 \begin_inset Flex Code
19646 status collapsed
19647
19648 \begin_layout Plain Layout
19649
19650 \emph on
19651 0
19652 \emph default
19653 ,1
19654 \end_layout
19655
19656 \end_inset
19657
19658 ] 
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 HTMLStyle
19664 \end_layout
19665
19666 \end_inset
19667
19668 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19669 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 1
19675 \end_layout
19676
19677 \end_inset
19678
19679 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19680 \begin_inset Flex Code
19681 status collapsed
19682
19683 \begin_layout Plain Layout
19684 0
19685 \end_layout
19686
19687 \end_inset
19688
19689 です。
19690 \end_layout
19691
19692 \begin_layout Description
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 HTMLInnerAttr
19698 \end_layout
19699
19700 \end_inset
19701
19702  [
19703 \begin_inset Flex Code
19704 status collapsed
19705
19706 \begin_layout Plain Layout
19707 文字列
19708 \end_layout
19709
19710 \end_inset
19711
19712 ] innerタグの属性。既定値は
19713 \begin_inset Flex Code
19714 status collapsed
19715
19716 \begin_layout Plain Layout
19717 class=`差込枠名_inner'
19718 \end_layout
19719
19720 \end_inset
19721
19722 です。
19723 \end_layout
19724
19725 \begin_layout Description
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 HTMLInnerTag
19731 \end_layout
19732
19733 \end_inset
19734
19735  [
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740 文字列
19741 \end_layout
19742
19743 \end_inset
19744
19745 ] innerタグです。上記各例の
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 innertag
19751 \end_layout
19752
19753 \end_inset
19754
19755 を置き換えます。既定値はなしです。
19756 \end_layout
19757
19758 \begin_layout Description
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 HTMLIsBlock
19764 \end_layout
19765
19766 \end_inset
19767
19768  [
19769 \begin_inset Flex Code
19770 status collapsed
19771
19772 \begin_layout Plain Layout
19773 0,
19774 \emph on
19775 1
19776 \end_layout
19777
19778 \end_inset
19779
19780 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19781 \end_layout
19782
19783 \begin_layout Description
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 HTMLLabel
19789 \end_layout
19790
19791 \end_inset
19792
19793  [
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 文字列
19799 \end_layout
19800
19801 \end_inset
19802
19803 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚註用には
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808
19809 \backslash
19810 arabic{footnote}
19811 \end_layout
19812
19813 \end_inset
19814
19815 など。これは非必須であり、既定値はありません。
19816 \end_layout
19817
19818 \begin_layout Description
19819 \begin_inset Flex Code
19820 status collapsed
19821
19822 \begin_layout Plain Layout
19823 HTMLPreamble
19824 \end_layout
19825
19826 \end_inset
19827
19828  この様式が使用されたときに、
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833 <head>
19834 \end_layout
19835
19836 \end_inset
19837
19838 セクションに出力される情報。これは、たとえば、
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843 onclick
19844 \end_layout
19845
19846 \end_inset
19847
19848 ハンドラを定義するために
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 <script>
19854 \end_layout
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 HTMLStyle
19867 \end_layout
19868
19869 \end_inset
19870
19871   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19872 \begin_inset Flex Code
19873 status collapsed
19874
19875 \begin_layout Plain Layout
19876 <style>
19877 \end_layout
19878
19879 \end_inset
19880
19881 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19882 \end_layout
19883
19884 \begin_layout Description
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889 HTMLTag
19890 \end_layout
19891
19892 \end_inset
19893
19894  [
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 文字列
19900 \end_layout
19901
19902 \end_inset
19903
19904 ] 主幹ラベルに使用されるタグ。上記各例の
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 tag
19910 \end_layout
19911
19912 \end_inset
19913
19914 を置き換えます。既定値は
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 MultiPar
19920 \end_layout
19921
19922 \end_inset
19923
19924 の設定に依存し、
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 MultiPar
19930 \end_layout
19931
19932 \end_inset
19933
19934 が真ならば
19935 \begin_inset Flex Code
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939 div
19940 \end_layout
19941
19942 \end_inset
19943
19944 、偽ならば
19945 \begin_inset Flex Code
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 span
19950 \end_layout
19951
19952 \end_inset
19953
19954 です。
19955 \end_layout
19956
19957 \begin_layout Subsection
19958 フロートXHTML
19959 \end_layout
19960
19961 \begin_layout Standard
19962 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
19963 \end_layout
19964
19965 \begin_layout LyX-Code
19966 <tag attr=
19967 \begin_inset Quotes erd
19968 \end_inset
19969
19970 value
19971 \begin_inset Quotes erd
19972 \end_inset
19973
19974 >
19975 \end_layout
19976
19977 \begin_layout LyX-Code
19978 フロートの内容。
19979 \end_layout
19980
19981 \begin_layout LyX-Code
19982 </tag>
19983 \end_layout
19984
19985 \begin_layout Standard
19986 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
19987 きます。
19988 \end_layout
19989
19990 \begin_layout Description
19991 \begin_inset Flex Code
19992 status collapsed
19993
19994 \begin_layout Plain Layout
19995 HTMLAttr
19996 \end_layout
19997
19998 \end_inset
19999
20000  [
20001 \begin_inset Flex Code
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 文字列
20006 \end_layout
20007
20008 \end_inset
20009
20010 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
20011 \begin_inset Flex Code
20012 status collapsed
20013
20014 \begin_layout Plain Layout
20015 class=`myfloat' onclick=`\SpecialChar ldots
20016 '
20017 \end_layout
20018
20019 \end_inset
20020
20021 」のようなものです。既定においては、\SpecialChar LyX
20022 は「
20023 \begin_inset Flex Code
20024 status collapsed
20025
20026 \begin_layout Plain Layout
20027 class=`float フロート-フロート型'
20028 \end_layout
20029
20030 \end_inset
20031
20032 」と出力します。ここで
20033 \begin_inset Flex Code
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 フロート型
20038 \end_layout
20039
20040 \end_inset
20041
20042 は、フロート宣言で定義された(
20043 \begin_inset CommandInset ref
20044 LatexCommand ref
20045 reference "subsec:フロート"
20046
20047 \end_inset
20048
20049 参照)、この型のフロートの\SpecialChar LyX
20050 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
20051 \end_layout
20052
20053 \begin_layout Description
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 HTMLStyle
20059 \end_layout
20060
20061 \end_inset
20062
20063   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20064 \begin_inset Flex Code
20065 status collapsed
20066
20067 \begin_layout Plain Layout
20068 <style>
20069 \end_layout
20070
20071 \end_inset
20072
20073 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20074 \end_layout
20075
20076 \begin_layout Description
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 HTMLTag
20082 \end_layout
20083
20084 \end_inset
20085
20086  [
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 文字列
20092 \end_layout
20093
20094 \end_inset
20095
20096 ] このフロートに使用されるタグ。上記各例の
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 tag
20102 \end_layout
20103
20104 \end_inset
20105
20106 を置き換えます。既定値は
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 div
20112 \end_layout
20113
20114 \end_inset
20115
20116 であり、ほとんどの場合変更する必要はありません。
20117 \end_layout
20118
20119 \begin_layout Subsection
20120 書誌情報の整形
20121 \end_layout
20122
20123 \begin_layout Standard
20124 書誌情報は、
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 CiteFormat
20130 \end_layout
20131
20132 \end_inset
20133
20134 ブロックを使用して整形することができます。詳細については、
20135 \begin_inset CommandInset ref
20136 LatexCommand ref
20137 reference "subsec:引用書式指定"
20138
20139 \end_inset
20140
20141 を参照してください。
20142 \end_layout
20143
20144 \begin_layout Subsection
20145 \SpecialChar LyX
20146 が生成したCSS
20147 \end_layout
20148
20149 \begin_layout Standard
20150 \SpecialChar LyX
20151 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20152
20153 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20154 \end_layout
20155
20156 \begin_layout Standard
20157 \SpecialChar LyX
20158 は、現在のところ、
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 Font
20164 \end_layout
20165
20166 \end_inset
20167
20168 宣言で指定されている
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 Family
20174 \end_layout
20175
20176 \end_inset
20177
20178
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 Series
20184 \end_layout
20185
20186 \end_inset
20187
20188
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193 Shape
20194 \end_layout
20195
20196 \end_inset
20197
20198
20199 \begin_inset Flex Code
20200 status collapsed
20201
20202 \begin_layout Plain Layout
20203 Size
20204 \end_layout
20205
20206 \end_inset
20207
20208 を利用して、フォント情報についてのみCSSを自動生成します(
20209 \begin_inset CommandInset ref
20210 LatexCommand ref
20211 reference "subsec:フォント指定"
20212
20213 \end_inset
20214
20215 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20216 \begin_inset Flex Code
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 Family Sans
20221 \end_layout
20222
20223 \end_inset
20224
20225 」は「
20226 \begin_inset Flex Code
20227 status collapsed
20228
20229 \begin_layout Plain Layout
20230 font-family: sans-serif
20231 \end_layout
20232
20233 \end_inset
20234
20235 」になります。\SpecialChar LyX
20236 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20237 \begin_inset Flex URL
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241
20242 src/FontInfo.cpp
20243 \end_layout
20244
20245 \end_inset
20246
20247
20248 \begin_inset Flex Code
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252 getSizeCSS()
20253 \end_layout
20254
20255 \end_inset
20256
20257 関数をご覧ください。
20258 \end_layout
20259
20260 \begin_layout Chapter
20261 外部素材を取り込む
20262 \begin_inset CommandInset label
20263 LatexCommand label
20264 name "chap:外部素材を取り込む"
20265
20266 \end_inset
20267
20268
20269 \end_layout
20270
20271 \begin_layout Standard
20272 \begin_inset Box Shadowbox
20273 position "t"
20274 hor_pos "c"
20275 has_inner_box 1
20276 inner_pos "t"
20277 use_parbox 0
20278 use_makebox 0
20279 width "100col%"
20280 special "none"
20281 height "1in"
20282 height_special "totalheight"
20283 thickness "0.4pt"
20284 separation "3pt"
20285 shadowsize "4pt"
20286 framecolor "black"
20287 backgroundcolor "none"
20288 status open
20289
20290 \begin_layout Plain Layout
20291 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20292 \end_layout
20293
20294 \end_inset
20295
20296
20297 \end_layout
20298
20299 \begin_layout Standard
20300 \SpecialChar LyX
20301 外部のソースから素材を使用する方法は、取扱説明書『
20302 \emph on
20303 埋込オブジェクト篇
20304 \emph default
20305 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20306 \end_layout
20307
20308 \begin_layout Section
20309 どのように機能するのか
20310 \end_layout
20311
20312 \begin_layout Standard
20313 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20314 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20315 は、Xfigの図や、様々
20316 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20317 \begin_inset Flex MenuItem
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 挿入\SpecialChar menuseparator
20322 ファイル\SpecialChar menuseparator
20323 外部素材
20324 \end_layout
20325
20326 \end_inset
20327
20328 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20329 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20330 の後の版に取り込むことができるようにしてくださることを希望します。
20331 \end_layout
20332
20333 \begin_layout Standard
20334 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20335 いることです。たとえば、
20336 \begin_inset Flex Code
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340 Xfig
20341 \end_layout
20342
20343 \end_inset
20344
20345 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20346 \begin_inset Flex Code
20347 status collapsed
20348
20349 \begin_layout Plain Layout
20350 .fig
20351 \end_layout
20352
20353 \end_inset
20354
20355 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 fig
20361 \end_layout
20362
20363 \end_inset
20364
20365 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20366 ファイルにそのままインクルードできるように、
20367 \begin_inset Flex Code
20368 status collapsed
20369
20370 \begin_layout Plain Layout
20371 transfig
20372 \end_layout
20373
20374 \end_inset
20375
20376 を呼び出してPostScriptファイルを生成します。この場合には、
20377 \begin_inset Flex Code
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 .fig
20382 \end_layout
20383
20384 \end_inset
20385
20386 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20387 \end_layout
20388
20389 \begin_layout Standard
20390 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20391 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20392 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20393 の外部素材マネジメントは
20394 、\SpecialChar LyX
20395 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20396 \end_layout
20397
20398 \begin_layout Standard
20399 \SpecialChar LyX
20400 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20401 の場合には、\SpecialChar LyX
20402 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20403 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20404 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20405 できるようになるのです。
20406 \end_layout
20407
20408 \begin_layout Section
20409 外用ひな型設定ファイル
20410 \end_layout
20411
20412 \begin_layout Standard
20413 \SpecialChar LyX
20414 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20415 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20416 \begin_inset CommandInset ref
20417 LatexCommand ref
20418 reference "sec:セキュリティに関する論点"
20419
20420 \end_inset
20421
20422 のセキュリティに関する議論を読んでおいてください。
20423 \end_layout
20424
20425 \begin_layout Standard
20426 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20427 \end_layout
20428
20429 \begin_layout Standard
20430 外用ひな型は、
20431 \begin_inset Flex Code
20432 status collapsed
20433
20434 \begin_layout Plain Layout
20435 LyXDir/lib/external_templates
20436 \end_layout
20437
20438 \end_inset
20439
20440 ファイルで定義されています。自分用の版を
20441 \begin_inset Flex Code
20442 status collapsed
20443
20444 \begin_layout Plain Layout
20445 UserDir/external_templates
20446 \end_layout
20447
20448 \end_inset
20449
20450 に置くこともできます。
20451 \end_layout
20452
20453 \begin_layout Standard
20454 典型的なひな型は以下のようになります。
20455 \end_layout
20456
20457 \begin_layout LyX-Code
20458 Template XFig
20459 \end_layout
20460
20461 \begin_layout LyX-Code
20462 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20463 \end_layout
20464
20465 \begin_layout LyX-Code
20466 HelpText
20467 \end_layout
20468
20469 \begin_layout LyX-Code
20470 An XFig figure.
20471 \end_layout
20472
20473 \begin_layout LyX-Code
20474 HelpTextEnd
20475 \end_layout
20476
20477 \begin_layout LyX-Code
20478 InputFormat fig
20479 \end_layout
20480
20481 \begin_layout LyX-Code
20482 FileFilter "*.fig"
20483 \end_layout
20484
20485 \begin_layout LyX-Code
20486 AutomaticProduction true
20487 \end_layout
20488
20489 \begin_layout LyX-Code
20490 Transform Rotate
20491 \end_layout
20492
20493 \begin_layout LyX-Code
20494 Transform Resize
20495 \end_layout
20496
20497 \begin_layout LyX-Code
20498 Format LaTeX
20499 \end_layout
20500
20501 \begin_layout LyX-Code
20502 TransformCommand Rotate RotationLatexCommand
20503 \end_layout
20504
20505 \begin_layout LyX-Code
20506 TransformCommand Resize ResizeLatexCommand
20507 \end_layout
20508
20509 \begin_layout LyX-Code
20510 Product "$$RotateFront$$ResizeFront
20511 \end_layout
20512
20513 \begin_layout LyX-Code
20514          
20515 \backslash
20516
20517 \backslash
20518 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20519 \end_layout
20520
20521 \begin_layout LyX-Code
20522          $$ResizeBack$$RotateBack"
20523 \end_layout
20524
20525 \begin_layout LyX-Code
20526 UpdateFormat pstex
20527 \end_layout
20528
20529 \begin_layout LyX-Code
20530 UpdateResult "$$AbsPath$$Basename.pstex_t"
20531 \end_layout
20532
20533 \begin_layout LyX-Code
20534 Requirement "graphicx"
20535 \end_layout
20536
20537 \begin_layout LyX-Code
20538 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20539 \end_layout
20540
20541 \begin_layout LyX-Code
20542 ReferencedFile latex "$$AbsPath$$Basename.eps"
20543 \end_layout
20544
20545 \begin_layout LyX-Code
20546 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20547 \end_layout
20548
20549 \begin_layout LyX-Code
20550 FormatEnd
20551 \end_layout
20552
20553 \begin_layout LyX-Code
20554 Format PDFLaTeX
20555 \end_layout
20556
20557 \begin_layout LyX-Code
20558 TransformCommand Rotate RotationLatexCommand
20559 \end_layout
20560
20561 \begin_layout LyX-Code
20562 TransformCommand Resize ResizeLatexCommand
20563 \end_layout
20564
20565 \begin_layout LyX-Code
20566 Product "$$RotateFront$$ResizeFront
20567 \end_layout
20568
20569 \begin_layout LyX-Code
20570          
20571 \backslash
20572
20573 \backslash
20574 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20575 \end_layout
20576
20577 \begin_layout LyX-Code
20578          $$ResizeBack$$RotateBack"
20579 \end_layout
20580
20581 \begin_layout LyX-Code
20582 UpdateFormat pdftex
20583 \end_layout
20584
20585 \begin_layout LyX-Code
20586 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20587 \end_layout
20588
20589 \begin_layout LyX-Code
20590 Requirement "graphicx"
20591 \end_layout
20592
20593 \begin_layout LyX-Code
20594 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20595 \end_layout
20596
20597 \begin_layout LyX-Code
20598 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20599 \end_layout
20600
20601 \begin_layout LyX-Code
20602 FormatEnd
20603 \end_layout
20604
20605 \begin_layout LyX-Code
20606 Format Ascii
20607 \end_layout
20608
20609 \begin_layout LyX-Code
20610 Product "$$Contents(
20611 \backslash
20612 "$$AbsPath$$Basename.asc
20613 \backslash
20614 ")"
20615 \end_layout
20616
20617 \begin_layout LyX-Code
20618 UpdateFormat asciixfig
20619 \end_layout
20620
20621 \begin_layout LyX-Code
20622 UpdateResult "$$AbsPath$$Basename.asc"
20623 \end_layout
20624
20625 \begin_layout LyX-Code
20626 FormatEnd
20627 \end_layout
20628
20629 \begin_layout LyX-Code
20630 Format DocBook
20631 \end_layout
20632
20633 \begin_layout LyX-Code
20634 Product "<graphic fileref=
20635 \backslash
20636 "$$AbsOrRelPathMaster$$Basename.eps
20637 \backslash
20638 ">
20639 \end_layout
20640
20641 \begin_layout LyX-Code
20642          </graphic>"
20643 \end_layout
20644
20645 \begin_layout LyX-Code
20646 UpdateFormat eps
20647 \end_layout
20648
20649 \begin_layout LyX-Code
20650 UpdateResult "$$AbsPath$$Basename.eps"
20651 \end_layout
20652
20653 \begin_layout LyX-Code
20654 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20655 \end_layout
20656
20657 \begin_layout LyX-Code
20658 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20659 \end_layout
20660
20661 \begin_layout LyX-Code
20662 FormatEnd
20663 \end_layout
20664
20665 \begin_layout LyX-Code
20666 Product "[XFig: $$FName]"
20667 \end_layout
20668
20669 \begin_layout LyX-Code
20670 FormatEnd
20671 \end_layout
20672
20673 \begin_layout LyX-Code
20674 TemplateEnd
20675 \end_layout
20676
20677 \begin_layout Standard
20678 ご覧の通り、ひな型は
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 Template
20684 \end_layout
20685
20686 \end_inset
20687
20688  \SpecialChar ldots
20689  
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 TemplateEnd
20695 \end_layout
20696
20697 \end_inset
20698
20699 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 Format
20705 \end_layout
20706
20707 \end_inset
20708
20709  \SpecialChar ldots
20710  
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 FormatEnd
20716 \end_layout
20717
20718 \end_inset
20719
20720 部があります。
20721 \end_layout
20722
20723 \begin_layout Subsection
20724 ひな型のヘッダ
20725 \end_layout
20726
20727 \begin_layout Description
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732 AutomaticProduction
20733 \begin_inset space ~
20734 \end_inset
20735
20736 true|false
20737 \end_layout
20738
20739 \end_inset
20740
20741  このひな型で扱うファイルを\SpecialChar LyX
20742 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20743 \end_layout
20744
20745 \begin_layout Description
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 FileFilter
20751 \begin_inset space ~
20752 \end_inset
20753
20754 <パターン>
20755 \end_layout
20756
20757 \end_inset
20758
20759  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 .obj
20765 \end_layout
20766
20767 \end_inset
20768
20769
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 .tgo
20775 \end_layout
20776
20777 \end_inset
20778
20779 があります)、「
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 *.{obj,tgo}
20785 \end_layout
20786
20787 \end_inset
20788
20789 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
20790 \end_layout
20791
20792 \begin_layout Description
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 GuiName
20798 \begin_inset space ~
20799 \end_inset
20800
20801 <GUI名>
20802 \end_layout
20803
20804 \end_inset
20805
20806  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
20807 \end_layout
20808
20809 \begin_layout Description
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 HelpText
20815 \begin_inset space ~
20816 \end_inset
20817
20818 <文章>
20819 \begin_inset space ~
20820 \end_inset
20821
20822 HelpTextEnd
20823 \end_layout
20824
20825 \end_inset
20826
20827  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
20828 ず現れなくてはなりません。
20829 \end_layout
20830
20831 \begin_layout Description
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 InputFormat
20837 \begin_inset space ~
20838 \end_inset
20839
20840 <書式>
20841 \end_layout
20842
20843 \end_inset
20844
20845  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
20846 が知っている書式名でなくてはなりません(
20847 \begin_inset CommandInset ref
20848 LatexCommand ref
20849 reference "sec:ファイル形式"
20850
20851 \end_inset
20852
20853 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
20854 \begin_inset Flex Code
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 *
20859 \end_layout
20860
20861 \end_inset
20862
20863 」を使用してください。この場合、\SpecialChar LyX
20864 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
20865 \end_layout
20866
20867 \begin_layout Description
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 Template
20873 \begin_inset space ~
20874 \end_inset
20875
20876 <ID>
20877 \end_layout
20878
20879 \end_inset
20880
20881  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
20882 \end_layout
20883
20884 \begin_layout Description
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 Transform
20890 \begin_inset space ~
20891 \end_inset
20892
20893 Rotate|Resize|Clip|Extra
20894 \end_layout
20895
20896 \end_inset
20897
20898  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
20899 ログ中の対応するタブを使用可能にします。
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 Transform
20905 \end_layout
20906
20907 \end_inset
20908
20909 コマンド一つずつに応じて、
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 Format
20915 \end_layout
20916
20917 \end_inset
20918
20919 部に、対応する
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 TransformCommand
20925 \end_layout
20926
20927 \end_inset
20928
20929 コマンドか
20930 \begin_inset Flex Code
20931 status collapsed
20932
20933 \begin_layout Plain Layout
20934 TransformOption
20935 \end_layout
20936
20937 \end_inset
20938
20939 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
20940 \end_layout
20941
20942 \begin_layout Subsection
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 Format
20948 \end_layout
20949
20950 \end_inset
20951
20952
20953 \end_layout
20954
20955 \begin_layout Description
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 Format
20961 \begin_inset space ~
20962 \end_inset
20963
20964 LaTeX|PDFLaTeX|PlainText|DocBook
20965 \end_layout
20966
20967 \end_inset
20968
20969  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
20970 \begin_inset Flex Code
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 Format
20975 \end_layout
20976
20977 \end_inset
20978
20979 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
20980 ようになります。
20981 \end_layout
20982
20983 \begin_layout Description
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 Option
20989 \begin_inset space ~
20990 \end_inset
20991
20992 <名称>
20993 \begin_inset space ~
20994 \end_inset
20995
20996 <値>
20997 \end_layout
20998
20999 \end_inset
21000
21001  このコマンドは、
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 Product
21007 \end_layout
21008
21009 \end_inset
21010
21011 での代入に使うマクロ
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 $$<名称>
21017 \end_layout
21018
21019 \end_inset
21020
21021 を新たに定義します。
21022 \begin_inset Flex Code
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 <値>
21027 \end_layout
21028
21029 \end_inset
21030
21031 自体にも代入マクロを使うことができます。
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036 Product
21037 \end_layout
21038
21039 \end_inset
21040
21041
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 <値>
21047 \end_layout
21048
21049 \end_inset
21050
21051 を直接使用するよりも優れた点は、
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 $$<名称>
21057 \end_layout
21058
21059 \end_inset
21060
21061 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
21062 \end_layout
21063
21064 \begin_layout Description
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 Product
21070 \begin_inset space ~
21071 \end_inset
21072
21073 <文>
21074 \end_layout
21075
21076 \end_inset
21077
21078  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
21079
21080 \end_layout
21081
21082 \begin_layout Description
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 Preamble
21088 \begin_inset space ~
21089 \end_inset
21090
21091 <名称>
21092 \end_layout
21093
21094 \end_inset
21095
21096  このコマンドは、\SpecialChar LaTeX
21097 プリアンブルに入れるプリアンブル片を指定します。これは
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 PreambleDef
21103 \end_layout
21104
21105 \end_inset
21106
21107  \SpecialChar ldots
21108  
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 PreambleDefEnd
21114 \end_layout
21115
21116 \end_inset
21117
21118 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21119 \end_layout
21120
21121 \begin_layout Description
21122 \begin_inset Flex Code
21123 status collapsed
21124
21125 \begin_layout Plain Layout
21126 ReferencedFile
21127 \begin_inset space ~
21128 \end_inset
21129
21130 <書式>
21131 \begin_inset space ~
21132 \end_inset
21133
21134 <ファイル名>
21135 \end_layout
21136
21137 \end_inset
21138
21139  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21140 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21141 \end_layout
21142
21143 \begin_layout Description
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 Requirement
21149 \begin_inset space ~
21150 \end_inset
21151
21152 <package>
21153 \end_layout
21154
21155 \end_inset
21156
21157  必要とされる\SpecialChar LaTeX
21158 パッケージ名。パッケージは、\SpecialChar LaTeX
21159 プリアンブル中で
21160 \begin_inset Flex Code
21161 status collapsed
21162
21163 \begin_layout Plain Layout
21164
21165 \backslash
21166 usepackage{}
21167 \end_layout
21168
21169 \end_inset
21170
21171 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21172 \end_layout
21173
21174 \begin_layout Description
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 TransformCommand
21180 \begin_inset space ~
21181 \end_inset
21182
21183 Rotate
21184 \begin_inset space ~
21185 \end_inset
21186
21187 RotationLatexCommand
21188 \end_layout
21189
21190 \end_inset
21191
21192  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21193 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21194 \end_layout
21195
21196 \begin_layout Description
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 TransformCommand
21202 \begin_inset space ~
21203 \end_inset
21204
21205 Resize
21206 \begin_inset space ~
21207 \end_inset
21208
21209 ResizeLatexCommand
21210 \end_layout
21211
21212 \end_inset
21213
21214  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21215 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21216 \end_layout
21217
21218 \begin_layout Description
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 TransformOption
21224 \begin_inset space ~
21225 \end_inset
21226
21227 Rotate
21228 \begin_inset space ~
21229 \end_inset
21230
21231 RotationLatexOption
21232 \end_layout
21233
21234 \end_inset
21235
21236  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21237 \end_layout
21238
21239 \begin_layout Description
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 TransformOption
21245 \begin_inset space ~
21246 \end_inset
21247
21248 Resize
21249 \begin_inset space ~
21250 \end_inset
21251
21252 ResizeLatexOption
21253 \end_layout
21254
21255 \end_inset
21256
21257  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21258 \end_layout
21259
21260 \begin_layout Description
21261 \begin_inset Flex Code
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 TransformOption
21266 \begin_inset space ~
21267 \end_inset
21268
21269 Clip
21270 \begin_inset space ~
21271 \end_inset
21272
21273 ClipLatexOption
21274 \end_layout
21275
21276 \end_inset
21277
21278  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21279 \end_layout
21280
21281 \begin_layout Description
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 TransformOption
21287 \begin_inset space ~
21288 \end_inset
21289
21290 Extra
21291 \begin_inset space ~
21292 \end_inset
21293
21294 ExtraLatexOption
21295 \end_layout
21296
21297 \end_inset
21298
21299  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21300 \end_layout
21301
21302 \begin_layout Description
21303 \begin_inset Flex Code
21304 status collapsed
21305
21306 \begin_layout Plain Layout
21307 UpdateFormat
21308 \begin_inset space ~
21309 \end_inset
21310
21311 <書式>
21312 \end_layout
21313
21314 \end_inset
21315
21316  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21317 が知っている書式名でなくてはなりません(
21318 \begin_inset Flex MenuItem
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322 ツール\SpecialChar menuseparator
21323 設定\SpecialChar menuseparator
21324 ファイル処理\SpecialChar menuseparator
21325 ファイル書式
21326 \end_layout
21327
21328 \end_inset
21329
21330 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 pdf6
21336 \end_layout
21337
21338 \end_inset
21339
21340 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21341 \end_layout
21342
21343 \begin_layout Description
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348 UpdateResult
21349 \begin_inset space ~
21350 \end_inset
21351
21352 <ファイル名>
21353 \end_layout
21354
21355 \end_inset
21356
21357  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21358 \end_layout
21359
21360 \begin_layout Subsection
21361 プリアンブルの定義
21362 \end_layout
21363
21364 \begin_layout Standard
21365 外用ひな型設定ファイルには、
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 PreambleDef
21371 \end_layout
21372
21373 \end_inset
21374
21375  \SpecialChar ldots
21376  
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 PreambleDefEnd
21382 \end_layout
21383
21384 \end_inset
21385
21386 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 Format
21392 \end_layout
21393
21394 \end_inset
21395
21396 部で使用することができます。
21397 \end_layout
21398
21399 \begin_layout Section
21400 代入機構
21401 \end_layout
21402
21403 \begin_layout Standard
21404 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21405 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21406 \end_layout
21407
21408 \begin_layout Standard
21409 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21410 \end_layout
21411
21412 \begin_layout Standard
21413 使用できるマクロは以下の通りです。
21414 \end_layout
21415
21416 \begin_layout Description
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 $$AbsOrRelPathMaster
21422 \end_layout
21423
21424 \end_inset
21425
21426  \SpecialChar LyX
21427 親文書への絶対ファイルパスないしは相対ファイルパス
21428 \end_layout
21429
21430 \begin_layout Description
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 $$AbsOrRelPathParent
21436 \end_layout
21437
21438 \end_inset
21439
21440  \SpecialChar LyX
21441 文書への絶対ファイルパスないしは相対ファイルパス
21442 \end_layout
21443
21444 \begin_layout Description
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 $$AbsPath
21450 \end_layout
21451
21452 \end_inset
21453
21454  絶対ファイルパス
21455 \end_layout
21456
21457 \begin_layout Description
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 $$Basename
21463 \end_layout
21464
21465 \end_inset
21466
21467  パスおよび拡張子を除いたファイル名
21468 \end_layout
21469
21470 \begin_layout Description
21471 \begin_inset Flex Code
21472 status collapsed
21473
21474 \begin_layout Plain Layout
21475 $$Contents(
21476 \begin_inset Quotes eld
21477 \end_inset
21478
21479 filename.ext
21480 \begin_inset Quotes erd
21481 \end_inset
21482
21483 )
21484 \end_layout
21485
21486 \end_inset
21487
21488  このマクロは、
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 filename.ext
21494 \end_layout
21495
21496 \end_inset
21497
21498 と云う名のファイルの中身を展開します。
21499 \end_layout
21500
21501 \begin_layout Description
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 $$Extension
21507 \end_layout
21508
21509 \end_inset
21510
21511  ファイル拡張子(点を含む)
21512 \end_layout
21513
21514 \begin_layout Description
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 $$pngOrjpg
21520 \end_layout
21521
21522 \end_inset
21523
21524  これは、ファイルがJPEG形式の場合は、文字列「jpg」となり、それ以外では文字列「png」となります。これは、PNG形式とJPEG形式の両方をサポートする出
21525 力形式に対して、不必要な変換を行うことを避けるのに役立ちます。事前設定されているラスター画像ひな形は、pdf\SpecialChar TeX
21526 出力形式に対してこのマクロを使用します。
21527 \end_layout
21528
21529 \begin_layout Description
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 $$FName
21535 \end_layout
21536
21537 \end_inset
21538
21539  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21540 文書への絶対パスでも良いですし、相対パスでも構いません。
21541 \end_layout
21542
21543 \begin_layout Description
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 $$FPath
21549 \end_layout
21550
21551 \end_inset
21552
21553  
21554 \begin_inset Flex Code
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 $$FName
21559 \end_layout
21560
21561 \end_inset
21562
21563 のパス部分(\SpecialChar LyX
21564 文書への絶対パス名か相対パス名)
21565 \end_layout
21566
21567 \begin_layout Description
21568 \begin_inset Flex Code
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 $$RelPathMaster
21573 \end_layout
21574
21575 \end_inset
21576
21577  \SpecialChar LyX
21578 親文書への相対ファイルパス
21579 \end_layout
21580
21581 \begin_layout Description
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586 $$RelPathParent
21587 \end_layout
21588
21589 \end_inset
21590
21591  \SpecialChar LyX
21592 文書への相対ファイルパス
21593 \end_layout
21594
21595 \begin_layout Description
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 $$Sysdir
21601 \end_layout
21602
21603 \end_inset
21604
21605  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21606 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21607 \end_layout
21608
21609 \begin_layout Description
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 $$Tempname
21615 \end_layout
21616
21617 \end_inset
21618
21619  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21620 \end_layout
21621
21622 \begin_layout Standard
21623 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21624 \begin_inset Flex Code
21625 status collapsed
21626
21627 \begin_layout Plain Layout
21628 $$AbsPath$$Basename$$Extension
21629 \end_layout
21630
21631 \end_inset
21632
21633 のようにして作ることができます。
21634 \end_layout
21635
21636 \begin_layout Standard
21637 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642 Transform
21643 \end_layout
21644
21645 \end_inset
21646
21647 コマンドと
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 TransformCommand
21653 \end_layout
21654
21655 \end_inset
21656
21657 コマンドが有効にされている場合、
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662 Product
21663 \end_layout
21664
21665 \end_inset
21666
21667 コマンドは、これらに加えて以下の代入もサポートします。
21668 \end_layout
21669
21670 \begin_layout Description
21671 \begin_inset Flex Code
21672 status collapsed
21673
21674 \begin_layout Plain Layout
21675 $$ResizeFront
21676 \end_layout
21677
21678 \end_inset
21679
21680  伸縮コマンドの前置部。
21681 \end_layout
21682
21683 \begin_layout Description
21684 \begin_inset Flex Code
21685 status collapsed
21686
21687 \begin_layout Plain Layout
21688 $$ResizeBack
21689 \end_layout
21690
21691 \end_inset
21692
21693  伸縮コマンドの後置部。
21694 \end_layout
21695
21696 \begin_layout Description
21697 \begin_inset Flex Code
21698 status collapsed
21699
21700 \begin_layout Plain Layout
21701 $$RotateFront
21702 \end_layout
21703
21704 \end_inset
21705
21706  回転コマンドの前置部。
21707 \end_layout
21708
21709 \begin_layout Description
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 $$RotateBack
21715 \end_layout
21716
21717 \end_inset
21718
21719  回転コマンドの後置部。
21720 \end_layout
21721
21722 \begin_layout Standard
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727 Option
21728 \end_layout
21729
21730 \end_inset
21731
21732 コマンドの値に入れる文字列では、
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 Transform
21738 \end_layout
21739
21740 \end_inset
21741
21742 コマンドと
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 TransformOption
21748 \end_layout
21749
21750 \end_inset
21751
21752 コマンドが有効にされていれば、以下の代入もサポートされます。
21753 \end_layout
21754
21755 \begin_layout Description
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 $$Clip
21761 \end_layout
21762
21763 \end_inset
21764
21765  切り抜きオプション。
21766 \end_layout
21767
21768 \begin_layout Description
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 $$Extra
21774 \end_layout
21775
21776 \end_inset
21777
21778  追加オプション。
21779 \end_layout
21780
21781 \begin_layout Description
21782 \begin_inset Flex Code
21783 status collapsed
21784
21785 \begin_layout Plain Layout
21786 $$Resize
21787 \end_layout
21788
21789 \end_inset
21790
21791  伸縮オプション。
21792 \end_layout
21793
21794 \begin_layout Description
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799 $$Rotate
21800 \end_layout
21801
21802 \end_inset
21803
21804  回転オプション。
21805 \end_layout
21806
21807 \begin_layout Standard
21808 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
21809 \end_layout
21810
21811 \begin_layout Enumerate
21812 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
21813 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
21814 \end_layout
21815
21816 \begin_layout Enumerate
21817 \SpecialChar LaTeX
21818 は、相対ファイル名に関して、\SpecialChar LyX
21819 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
21820 にとって相対ファイル名とは、常にこのファイル名が書か
21821 れている文書に対して相対的なものになります。\SpecialChar LaTeX
21822 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
21823 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
21824 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
21825 を選びさえすれば、これは\SpecialChar LyX
21826 が自動的に行ってくれます。
21827 \end_layout
21828
21829 \begin_layout Standard
21830 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
21831 \end_layout
21832
21833 \begin_layout Itemize
21834 絶対パスが必要とされるときには
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 $$AbsPath
21840 \end_layout
21841
21842 \end_inset
21843
21844 を使う。
21845 \end_layout
21846
21847 \begin_layout Itemize
21848 代入された文字列が、\SpecialChar LaTeX
21849 インプットの一種である場合には、
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 $$AbsOrRelPathMaster
21855 \end_layout
21856
21857 \end_inset
21858
21859 を使う。
21860 \end_layout
21861
21862 \begin_layout Itemize
21863 それ以外ならば、ユーザの選択を尊重するために
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 $$AbsOrRelPathParent
21869 \end_layout
21870
21871 \end_inset
21872
21873 を使う。
21874 \end_layout
21875
21876 \begin_layout Standard
21877 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21883 \end_layout
21884
21885 \end_inset
21886
21887 というコマンドがあります。この場合、
21888 \begin_inset Flex Code
21889 status collapsed
21890
21891 \begin_layout Plain Layout
21892 .pstex_t
21893 \end_layout
21894
21895 \end_inset
21896
21897 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
21898 \end_layout
21899
21900 \begin_layout Section
21901 セキュリティに関する論点
21902 \begin_inset CommandInset label
21903 LatexCommand label
21904 name "sec:セキュリティに関する論点"
21905
21906 \end_inset
21907
21908
21909 \end_layout
21910
21911 \begin_layout Standard
21912 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
21913 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
21914 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
21915 \end_layout
21916
21917 \begin_layout Standard
21918 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
21919 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
21920 せん。これは、外部プログラムが
21921 \begin_inset Flex Code
21922 status collapsed
21923
21924 \begin_layout Plain Layout
21925 system
21926 \end_layout
21927
21928 \end_inset
21929
21930 システムコールではなく、
21931 \begin_inset Flex Code
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 execvp
21936 \end_layout
21937
21938 \end_inset
21939
21940 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
21941 \end_layout
21942
21943 \begin_layout Standard
21944 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
21945 できません。これは、\SpecialChar LyX
21946 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
21947 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
21948 \end_layout
21949
21950 \begin_layout Standard
21951 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
21952 うになるため、一般的には、統御下に置いた状態で
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 execvp
21958 \end_layout
21959
21960 \end_inset
21961
21962 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
21963 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
21964 \emph on
21965 間違いなく
21966 \emph default
21967 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
21968 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
21969 には、安全でないひな型は決して入っていません
21970
21971 \end_layout
21972
21973 \begin_layout Standard
21974 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
21975 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
21976 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
21977 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
21978 使用する前に、行うようにしてください。
21979 \end_layout
21980
21981 \begin_layout Chapter
21982 \start_of_appendix
21983 サポートされているレイアウト用\SpecialChar LyX
21984 関数一覧
21985 \begin_inset CommandInset label
21986 LatexCommand label
21987 name "chap:関数一覧"
21988
21989 \end_inset
21990
21991
21992 \end_layout
21993
21994 \begin_layout Standard
21995 \align center
21996 \begin_inset Tabular
21997 <lyxtabular version="3" rows="11" columns="8">
21998 <features tabularvalignment="middle">
21999 <column alignment="left" valignment="top">
22000 <column alignment="left" valignment="top">
22001 <column alignment="left" valignment="top">
22002 <column alignment="left" valignment="top">
22003 <column alignment="left" valignment="top">
22004 <column alignment="left" valignment="top">
22005 <column alignment="left" valignment="top">
22006 <column alignment="left" valignment="top">
22007 <row>
22008 <cell alignment="left" valignment="top" usebox="none">
22009 \begin_inset Text
22010
22011 \begin_layout Plain Layout
22012 accents
22013 \end_layout
22014
22015 \end_inset
22016 </cell>
22017 <cell alignment="left" valignment="top" usebox="none">
22018 \begin_inset Text
22019
22020 \begin_layout Plain Layout
22021 booktabs
22022 \end_layout
22023
22024 \end_inset
22025 </cell>
22026 <cell alignment="left" valignment="top" usebox="none">
22027 \begin_inset Text
22028
22029 \begin_layout Plain Layout
22030 feyn
22031 \end_layout
22032
22033 \end_inset
22034 </cell>
22035 <cell alignment="left" valignment="top" usebox="none">
22036 \begin_inset Text
22037
22038 \begin_layout Plain Layout
22039 listings
22040 \end_layout
22041
22042 \end_inset
22043 </cell>
22044 <cell alignment="center" valignment="top" usebox="none">
22045 \begin_inset Text
22046
22047 \begin_layout Plain Layout
22048 natbib
22049 \end_layout
22050
22051 \end_inset
22052 </cell>
22053 <cell alignment="center" valignment="top" usebox="none">
22054 \begin_inset Text
22055
22056 \begin_layout Plain Layout
22057 rotfloat
22058 \end_layout
22059
22060 \end_inset
22061 </cell>
22062 <cell alignment="center" valignment="top" usebox="none">
22063 \begin_inset Text
22064
22065 \begin_layout Plain Layout
22066 tfrupee
22067 \end_layout
22068
22069 \end_inset
22070 </cell>
22071 <cell alignment="center" valignment="top" usebox="none">
22072 \begin_inset Text
22073
22074 \begin_layout Plain Layout
22075 wasysym
22076 \end_layout
22077
22078 \end_inset
22079 </cell>
22080 </row>
22081 <row>
22082 <cell alignment="left" valignment="top" usebox="none">
22083 \begin_inset Text
22084
22085 \begin_layout Plain Layout
22086 amsbsy
22087 \end_layout
22088
22089 \end_inset
22090 </cell>
22091 <cell alignment="left" valignment="top" usebox="none">
22092 \begin_inset Text
22093
22094 \begin_layout Plain Layout
22095 calc
22096 \end_layout
22097
22098 \end_inset
22099 </cell>
22100 <cell alignment="left" valignment="top" usebox="none">
22101 \begin_inset Text
22102
22103 \begin_layout Plain Layout
22104 fixltx2e
22105 \end_layout
22106
22107 \end_inset
22108 </cell>
22109 <cell alignment="left" valignment="top" usebox="none">
22110 \begin_inset Text
22111
22112 \begin_layout Plain Layout
22113 longtable
22114 \end_layout
22115
22116 \end_inset
22117 </cell>
22118 <cell alignment="center" valignment="top" usebox="none">
22119 \begin_inset Text
22120
22121 \begin_layout Plain Layout
22122 nomencl
22123 \end_layout
22124
22125 \end_inset
22126 </cell>
22127 <cell alignment="center" valignment="top" usebox="none">
22128 \begin_inset Text
22129
22130 \begin_layout Plain Layout
22131 rsphrase
22132 \end_layout
22133
22134 \end_inset
22135 </cell>
22136 <cell alignment="center" valignment="top" usebox="none">
22137 \begin_inset Text
22138
22139 \begin_layout Plain Layout
22140 tipa
22141 \end_layout
22142
22143 \end_inset
22144 </cell>
22145 <cell alignment="center" valignment="top" usebox="none">
22146 \begin_inset Text
22147
22148 \begin_layout Plain Layout
22149 wrapfig
22150 \end_layout
22151
22152 \end_inset
22153 </cell>
22154 </row>
22155 <row>
22156 <cell alignment="left" valignment="top" usebox="none">
22157 \begin_inset Text
22158
22159 \begin_layout Plain Layout
22160 amscd
22161 \end_layout
22162
22163 \end_inset
22164 </cell>
22165 <cell alignment="left" valignment="top" usebox="none">
22166 \begin_inset Text
22167
22168 \begin_layout Plain Layout
22169 CJK
22170 \end_layout
22171
22172 \end_inset
22173 </cell>
22174 <cell alignment="left" valignment="top" usebox="none">
22175 \begin_inset Text
22176
22177 \begin_layout Plain Layout
22178 float
22179 \end_layout
22180
22181 \end_inset
22182 </cell>
22183 <cell alignment="left" valignment="top" usebox="none">
22184 \begin_inset Text
22185
22186 \begin_layout Plain Layout
22187 lyxskak
22188 \end_layout
22189
22190 \end_inset
22191 </cell>
22192 <cell alignment="center" valignment="top" usebox="none">
22193 \begin_inset Text
22194
22195 \begin_layout Plain Layout
22196 pdfcolmk
22197 \end_layout
22198
22199 \end_inset
22200 </cell>
22201 <cell alignment="center" valignment="top" usebox="none">
22202 \begin_inset Text
22203
22204 \begin_layout Plain Layout
22205 setspace
22206 \end_layout
22207
22208 \end_inset
22209 </cell>
22210 <cell alignment="center" valignment="top" usebox="none">
22211 \begin_inset Text
22212
22213 \begin_layout Plain Layout
22214 tipx
22215 \end_layout
22216
22217 \end_inset
22218 </cell>
22219 <cell alignment="center" valignment="top" usebox="none">
22220 \begin_inset Text
22221
22222 \begin_layout Plain Layout
22223 xargs
22224 \end_layout
22225
22226 \end_inset
22227 </cell>
22228 </row>
22229 <row>
22230 <cell alignment="left" valignment="top" usebox="none">
22231 \begin_inset Text
22232
22233 \begin_layout Plain Layout
22234 amsmath
22235 \end_layout
22236
22237 \end_inset
22238 </cell>
22239 <cell alignment="left" valignment="top" usebox="none">
22240 \begin_inset Text
22241
22242 \begin_layout Plain Layout
22243 color
22244 \end_layout
22245
22246 \end_inset
22247 </cell>
22248 <cell alignment="left" valignment="top" usebox="none">
22249 \begin_inset Text
22250
22251 \begin_layout Plain Layout
22252 framed
22253 \end_layout
22254
22255 \end_inset
22256 </cell>
22257 <cell alignment="left" valignment="top" usebox="none">
22258 \begin_inset Text
22259
22260 \begin_layout Plain Layout
22261 makeidx
22262 \end_layout
22263
22264 \end_inset
22265 </cell>
22266 <cell alignment="center" valignment="top" usebox="none">
22267 \begin_inset Text
22268
22269 \begin_layout Plain Layout
22270 pdfpages
22271 \end_layout
22272
22273 \end_inset
22274 </cell>
22275 <cell alignment="center" valignment="top" usebox="none">
22276 \begin_inset Text
22277
22278 \begin_layout Plain Layout
22279 shapepar
22280 \end_layout
22281
22282 \end_inset
22283 </cell>
22284 <cell alignment="center" valignment="top" usebox="none">
22285 \begin_inset Text
22286
22287 \begin_layout Plain Layout
22288 tone
22289 \end_layout
22290
22291 \end_inset
22292 </cell>
22293 <cell alignment="center" valignment="top" usebox="none">
22294 \begin_inset Text
22295
22296 \begin_layout Plain Layout
22297 xcolor
22298 \end_layout
22299
22300 \end_inset
22301 </cell>
22302 </row>
22303 <row>
22304 <cell alignment="left" valignment="top" usebox="none">
22305 \begin_inset Text
22306
22307 \begin_layout Plain Layout
22308 amssymb
22309 \end_layout
22310
22311 \end_inset
22312 </cell>
22313 <cell alignment="left" valignment="top" usebox="none">
22314 \begin_inset Text
22315
22316 \begin_layout Plain Layout
22317 covington
22318 \end_layout
22319
22320 \end_inset
22321 </cell>
22322 <cell alignment="left" valignment="top" usebox="none">
22323 \begin_inset Text
22324
22325 \begin_layout Plain Layout
22326 graphicx
22327 \end_layout
22328
22329 \end_inset
22330 </cell>
22331 <cell alignment="left" valignment="top" usebox="none">
22332 \begin_inset Text
22333
22334 \begin_layout Plain Layout
22335 marvosym
22336 \end_layout
22337
22338 \end_inset
22339 </cell>
22340 <cell alignment="center" valignment="top" usebox="none">
22341 \begin_inset Text
22342
22343 \begin_layout Plain Layout
22344 pifont
22345 \end_layout
22346
22347 \end_inset
22348 </cell>
22349 <cell alignment="center" valignment="top" usebox="none">
22350 \begin_inset Text
22351
22352 \begin_layout Plain Layout
22353 slashed
22354 \end_layout
22355
22356 \end_inset
22357 </cell>
22358 <cell alignment="center" valignment="top" usebox="none">
22359 \begin_inset Text
22360
22361 \begin_layout Plain Layout
22362 txfonts
22363 \end_layout
22364
22365 \end_inset
22366 </cell>
22367 <cell alignment="center" valignment="top" usebox="none">
22368 \begin_inset Text
22369
22370 \begin_layout Plain Layout
22371 xy
22372 \end_layout
22373
22374 \end_inset
22375 </cell>
22376 </row>
22377 <row>
22378 <cell alignment="left" valignment="top" usebox="none">
22379 \begin_inset Text
22380
22381 \begin_layout Plain Layout
22382 amstext
22383 \end_layout
22384
22385 \end_inset
22386 </cell>
22387 <cell alignment="left" valignment="top" usebox="none">
22388 \begin_inset Text
22389
22390 \begin_layout Plain Layout
22391 csquotes
22392 \end_layout
22393
22394 \end_inset
22395 </cell>
22396 <cell alignment="left" valignment="top" usebox="none">
22397 \begin_inset Text
22398
22399 \begin_layout Plain Layout
22400 hhline
22401 \end_layout
22402
22403 \end_inset
22404 </cell>
22405 <cell alignment="left" valignment="top" usebox="none">
22406 \begin_inset Text
22407
22408 \begin_layout Plain Layout
22409 mathdesign
22410 \end_layout
22411
22412 \end_inset
22413 </cell>
22414 <cell alignment="center" valignment="top" usebox="none">
22415 \begin_inset Text
22416
22417 \begin_layout Plain Layout
22418 pmboxdraw
22419 \end_layout
22420
22421 \end_inset
22422 </cell>
22423 <cell alignment="center" valignment="top" usebox="none">
22424 \begin_inset Text
22425
22426 \begin_layout Plain Layout
22427 soul
22428 \end_layout
22429
22430 \end_inset
22431 </cell>
22432 <cell alignment="center" valignment="top" usebox="none">
22433 \begin_inset Text
22434
22435 \begin_layout Plain Layout
22436 ulem
22437 \end_layout
22438
22439 \end_inset
22440 </cell>
22441 <cell alignment="center" valignment="top" usebox="none">
22442 \begin_inset Text
22443
22444 \begin_layout Plain Layout
22445 yhmath
22446 \end_layout
22447
22448 \end_inset
22449 </cell>
22450 </row>
22451 <row>
22452 <cell alignment="left" valignment="top" usebox="none">
22453 \begin_inset Text
22454
22455 \begin_layout Plain Layout
22456 amsthm
22457 \end_layout
22458
22459 \end_inset
22460 </cell>
22461 <cell alignment="left" valignment="top" usebox="none">
22462 \begin_inset Text
22463
22464 \begin_layout Plain Layout
22465 dvipost
22466 \end_layout
22467
22468 \end_inset
22469 </cell>
22470 <cell alignment="left" valignment="top" usebox="none">
22471 \begin_inset Text
22472
22473 \begin_layout Plain Layout
22474 hyperref
22475 \end_layout
22476
22477 \end_inset
22478 </cell>
22479 <cell alignment="left" valignment="top" usebox="none">
22480 \begin_inset Text
22481
22482 \begin_layout Plain Layout
22483 mathdots
22484 \end_layout
22485
22486 \end_inset
22487 </cell>
22488 <cell alignment="center" valignment="top" usebox="none">
22489 \begin_inset Text
22490
22491 \begin_layout Plain Layout
22492 polyglossia
22493 \end_layout
22494
22495 \end_inset
22496 </cell>
22497 <cell alignment="center" valignment="top" usebox="none">
22498 \begin_inset Text
22499
22500 \begin_layout Plain Layout
22501 splitidx
22502 \end_layout
22503
22504 \end_inset
22505 </cell>
22506 <cell alignment="center" valignment="top" usebox="none">
22507 \begin_inset Text
22508
22509 \begin_layout Plain Layout
22510 undertilde
22511 \end_layout
22512
22513 \end_inset
22514 </cell>
22515 <cell alignment="center" valignment="top" usebox="none">
22516 \begin_inset Text
22517
22518 \begin_layout Plain Layout
22519
22520 \end_layout
22521
22522 \end_inset
22523 </cell>
22524 </row>
22525 <row>
22526 <cell alignment="left" valignment="top" usebox="none">
22527 \begin_inset Text
22528
22529 \begin_layout Plain Layout
22530 array
22531 \end_layout
22532
22533 \end_inset
22534 </cell>
22535 <cell alignment="left" valignment="top" usebox="none">
22536 \begin_inset Text
22537
22538 \begin_layout Plain Layout
22539 endnotes
22540 \end_layout
22541
22542 \end_inset
22543 </cell>
22544 <cell alignment="left" valignment="top" usebox="none">
22545 \begin_inset Text
22546
22547 \begin_layout Plain Layout
22548 ifsym
22549 \end_layout
22550
22551 \end_inset
22552 </cell>
22553 <cell alignment="left" valignment="top" usebox="none">
22554 \begin_inset Text
22555
22556 \begin_layout Plain Layout
22557 mathrsfs
22558 \end_layout
22559
22560 \end_inset
22561 </cell>
22562 <cell alignment="center" valignment="top" usebox="none">
22563 \begin_inset Text
22564
22565 \begin_layout Plain Layout
22566 prettyref
22567 \end_layout
22568
22569 \end_inset
22570 </cell>
22571 <cell alignment="center" valignment="top" usebox="none">
22572 \begin_inset Text
22573
22574 \begin_layout Plain Layout
22575 subfig
22576 \end_layout
22577
22578 \end_inset
22579 </cell>
22580 <cell alignment="center" valignment="top" usebox="none">
22581 \begin_inset Text
22582
22583 \begin_layout Plain Layout
22584 units
22585 \end_layout
22586
22587 \end_inset
22588 </cell>
22589 <cell alignment="center" valignment="top" usebox="none">
22590 \begin_inset Text
22591
22592 \begin_layout Plain Layout
22593
22594 \end_layout
22595
22596 \end_inset
22597 </cell>
22598 </row>
22599 <row>
22600 <cell alignment="left" valignment="top" usebox="none">
22601 \begin_inset Text
22602
22603 \begin_layout Plain Layout
22604 ascii
22605 \end_layout
22606
22607 \end_inset
22608 </cell>
22609 <cell alignment="left" valignment="top" usebox="none">
22610 \begin_inset Text
22611
22612 \begin_layout Plain Layout
22613 enumitem
22614 \end_layout
22615
22616 \end_inset
22617 </cell>
22618 <cell alignment="left" valignment="top" usebox="none">
22619 \begin_inset Text
22620
22621 \begin_layout Plain Layout
22622 ifthen
22623 \end_layout
22624
22625 \end_inset
22626 </cell>
22627 <cell alignment="left" valignment="top" usebox="none">
22628 \begin_inset Text
22629
22630 \begin_layout Plain Layout
22631 mhchem
22632 \end_layout
22633
22634 \end_inset
22635 </cell>
22636 <cell alignment="center" valignment="top" usebox="none">
22637 \begin_inset Text
22638
22639 \begin_layout Plain Layout
22640 pxfonts
22641 \end_layout
22642
22643 \end_inset
22644 </cell>
22645 <cell alignment="center" valignment="top" usebox="none">
22646 \begin_inset Text
22647
22648 \begin_layout Plain Layout
22649 subscript
22650 \end_layout
22651
22652 \end_inset
22653 </cell>
22654 <cell alignment="center" valignment="top" usebox="none">
22655 \begin_inset Text
22656
22657 \begin_layout Plain Layout
22658 url
22659 \end_layout
22660
22661 \end_inset
22662 </cell>
22663 <cell alignment="center" valignment="top" usebox="none">
22664 \begin_inset Text
22665
22666 \begin_layout Plain Layout
22667
22668 \end_layout
22669
22670 \end_inset
22671 </cell>
22672 </row>
22673 <row>
22674 <cell alignment="left" valignment="top" usebox="none">
22675 \begin_inset Text
22676
22677 \begin_layout Plain Layout
22678 bbding
22679 \end_layout
22680
22681 \end_inset
22682 </cell>
22683 <cell alignment="left" valignment="top" usebox="none">
22684 \begin_inset Text
22685
22686 \begin_layout Plain Layout
22687 esint
22688 \end_layout
22689
22690 \end_inset
22691 </cell>
22692 <cell alignment="left" valignment="top" usebox="none">
22693 \begin_inset Text
22694
22695 \begin_layout Plain Layout
22696 jurabib
22697 \end_layout
22698
22699 \end_inset
22700 </cell>
22701 <cell alignment="left" valignment="top" usebox="none">
22702 \begin_inset Text
22703
22704 \begin_layout Plain Layout
22705 multicol
22706 \end_layout
22707
22708 \end_inset
22709 </cell>
22710 <cell alignment="center" valignment="top" usebox="none">
22711 \begin_inset Text
22712
22713 \begin_layout Plain Layout
22714 refstyle
22715 \end_layout
22716
22717 \end_inset
22718 </cell>
22719 <cell alignment="center" valignment="top" usebox="none">
22720 \begin_inset Text
22721
22722 \begin_layout Plain Layout
22723 textcomp
22724 \end_layout
22725
22726 \end_inset
22727 </cell>
22728 <cell alignment="center" valignment="top" usebox="none">
22729 \begin_inset Text
22730
22731 \begin_layout Plain Layout
22732 varioref
22733 \end_layout
22734
22735 \end_inset
22736 </cell>
22737 <cell alignment="center" valignment="top" usebox="none">
22738 \begin_inset Text
22739
22740 \begin_layout Plain Layout
22741
22742 \end_layout
22743
22744 \end_inset
22745 </cell>
22746 </row>
22747 <row>
22748 <cell alignment="center" valignment="top" usebox="none">
22749 \begin_inset Text
22750
22751 \begin_layout Plain Layout
22752 bm
22753 \end_layout
22754
22755 \end_inset
22756 </cell>
22757 <cell alignment="center" valignment="top" usebox="none">
22758 \begin_inset Text
22759
22760 \begin_layout Plain Layout
22761 fancybox
22762 \end_layout
22763
22764 \end_inset
22765 </cell>
22766 <cell alignment="center" valignment="top" usebox="none">
22767 \begin_inset Text
22768
22769 \begin_layout Plain Layout
22770 latexsym
22771 \end_layout
22772
22773 \end_inset
22774 </cell>
22775 <cell alignment="center" valignment="top" usebox="none">
22776 \begin_inset Text
22777
22778 \begin_layout Plain Layout
22779 multirow
22780 \end_layout
22781
22782 \end_inset
22783 </cell>
22784 <cell alignment="center" valignment="top" usebox="none">
22785 \begin_inset Text
22786
22787 \begin_layout Plain Layout
22788 rotating
22789 \end_layout
22790
22791 \end_inset
22792 </cell>
22793 <cell alignment="center" valignment="top" usebox="none">
22794 \begin_inset Text
22795
22796 \begin_layout Plain Layout
22797 textgreek
22798 \end_layout
22799
22800 \end_inset
22801 </cell>
22802 <cell alignment="center" valignment="top" usebox="none">
22803 \begin_inset Text
22804
22805 \begin_layout Plain Layout
22806 verbatim
22807 \end_layout
22808
22809 \end_inset
22810 </cell>
22811 <cell alignment="center" valignment="top" usebox="none">
22812 \begin_inset Text
22813
22814 \begin_layout Plain Layout
22815
22816 \end_layout
22817
22818 \end_inset
22819 </cell>
22820 </row>
22821 </lyxtabular>
22822
22823 \end_inset
22824
22825
22826 \end_layout
22827
22828 \begin_layout Chapter
22829 レイアウトで使用できる色名
22830 \begin_inset CommandInset label
22831 LatexCommand label
22832 name "chap:色名"
22833
22834 \end_inset
22835
22836
22837 \end_layout
22838
22839 \begin_layout Standard
22840 ここに列挙されている色は標準色であり、\SpecialChar LyX
22841 設定で調整できるものです。
22842 \end_layout
22843
22844 \begin_layout Description
22845 none
22846 \series medium
22847  
22848 \series default
22849 特定の色ではありません – 透明か既定色です
22850 \end_layout
22851
22852 \begin_layout Description
22853 black
22854 \end_layout
22855
22856 \begin_layout Description
22857 white
22858 \end_layout
22859
22860 \begin_layout Description
22861 red
22862 \end_layout
22863
22864 \begin_layout Description
22865 green
22866 \end_layout
22867
22868 \begin_layout Description
22869 blue
22870 \end_layout
22871
22872 \begin_layout Description
22873 cyan
22874 \end_layout
22875
22876 \begin_layout Description
22877 magenta
22878 \end_layout
22879
22880 \begin_layout Description
22881 yellow
22882 \end_layout
22883
22884 \begin_layout Description
22885 added_space 空白マーカ色
22886 \end_layout
22887
22888 \begin_layout Description
22889 addedtext 追加された文章色
22890 \end_layout
22891
22892 \begin_layout Description
22893 appendix 付録マーカ色
22894 \end_layout
22895
22896 \begin_layout Description
22897 background 背景色
22898 \end_layout
22899
22900 \begin_layout Description
22901 bottomarea 下部領域色
22902 \end_layout
22903
22904 \begin_layout Description
22905 branchlabel 派生枝ラベル色
22906 \end_layout
22907
22908 \begin_layout Description
22909 buttonbg ボタンの背景色
22910 \end_layout
22911
22912 \begin_layout Description
22913 buttonhoverbg フォーカスを得ているボタンの背景色
22914 \end_layout
22915
22916 \begin_layout Description
22917 buttonframe 差込枠の縁色
22918 \end_layout
22919
22920 \begin_layout Description
22921 changebar 変更バー色
22922 \end_layout
22923
22924 \begin_layout Description
22925 changedtextauthor1 変更された文章:第1著者の色
22926 \end_layout
22927
22928 \begin_layout Description
22929 changedtextauthor2 変更された文章:第2著者の色
22930 \end_layout
22931
22932 \begin_layout Description
22933 changedtextauthor3 変更された文章:第3著者の色
22934 \end_layout
22935
22936 \begin_layout Description
22937 changedtextauthor4 変更された文章:第4著者の色
22938 \end_layout
22939
22940 \begin_layout Description
22941 changedtextauthor5 変更された文章:第5著者の色
22942 \end_layout
22943
22944 \begin_layout Description
22945 collapsable_inset_frame 畳み込み可能枠の縁色
22946 \end_layout
22947
22948 \begin_layout Description
22949 collapsable_inset_text 畳み込み可能枠の文字色
22950 \end_layout
22951
22952 \begin_layout Description
22953 command コマンド差込枠の文字色
22954 \end_layout
22955
22956 \begin_layout Description
22957 commandbg コマンド差込枠の背景色
22958 \end_layout
22959
22960 \begin_layout Description
22961 commandframe コマンド差込枠の縁色
22962 \end_layout
22963
22964 \begin_layout Description
22965 comment コメント色
22966 \end_layout
22967
22968 \begin_layout Description
22969 commentbg コメントの背景色
22970 \end_layout
22971
22972 \begin_layout Description
22973 cursor カーソル色
22974 \end_layout
22975
22976 \begin_layout Description
22977 deletedtext 削除された文章の色
22978 \end_layout
22979
22980 \begin_layout Description
22981 deletedtextmodifier 削除された文章の修飾子の色
22982 \end_layout
22983
22984 \begin_layout Description
22985 depthbar 余白部の階層表示線の色
22986 \end_layout
22987
22988 \begin_layout Description
22989 eolmarker 行末標色
22990 \end_layout
22991
22992 \begin_layout Description
22993 error \SpecialChar LaTeX
22994 エラーボックス色
22995 \end_layout
22996
22997 \begin_layout Description
22998 footlabel 脚註ラベル色
22999 \end_layout
23000
23001 \begin_layout Description
23002 graphicsbg 画像差込枠の背景色
23003 \end_layout
23004
23005 \begin_layout Description
23006 greyedout 淡色表示差込枠のラベル色
23007 \end_layout
23008
23009 \begin_layout Description
23010 greyedoutbg 淡色表示差込枠の背景色
23011 \end_layout
23012
23013 \begin_layout Description
23014 greyedouttext 淡色表示差込枠の文字色
23015 \end_layout
23016
23017 \begin_layout Description
23018 indexlabel 索引差込枠のラベル色
23019 \end_layout
23020
23021 \begin_layout Description
23022 ignore この色を無視します
23023 \end_layout
23024
23025 \begin_layout Description
23026 inherit この色を継承します
23027 \end_layout
23028
23029 \begin_layout Description
23030 inlinecompletion 行内補完色
23031 \end_layout
23032
23033 \begin_layout Description
23034 insetbg 差込枠標の背景色
23035 \end_layout
23036
23037 \begin_layout Description
23038 insetframe 差込枠標の縁色
23039 \end_layout
23040
23041 \begin_layout Description
23042 language 外国語の単語を標識するための色
23043 \end_layout
23044
23045 \begin_layout Description
23046 latex \SpecialChar LaTeX
23047 モードの文字色
23048 \end_layout
23049
23050 \begin_layout Description
23051 listingsbg プログラムリスト差込枠の背景色
23052 \end_layout
23053
23054 \begin_layout Description
23055 marginlabel 傍註のラベル色
23056 \end_layout
23057
23058 \begin_layout Description
23059 math 数式差込枠の文字色
23060 \end_layout
23061
23062 \begin_layout Description
23063 mathbg 数式差込枠の背景色
23064 \end_layout
23065
23066 \begin_layout Description
23067 mathcorners フォーカスを得ていない数式差込枠の縁色
23068 \end_layout
23069
23070 \begin_layout Description
23071 mathframe フォーカスを得ている数式差込枠の縁色
23072 \end_layout
23073
23074 \begin_layout Description
23075 mathline 数式行色
23076 \end_layout
23077
23078 \begin_layout Description
23079 mathmacrobg 数式マクロ差込枠の背景色
23080 \end_layout
23081
23082 \begin_layout Description
23083 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23084 \end_layout
23085
23086 \begin_layout Description
23087 mathmacroframe 数式マクロ差込枠の縁色
23088 \end_layout
23089
23090 \begin_layout Description
23091 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23092 \end_layout
23093
23094 \begin_layout Description
23095 mathmacrolabel 数式マクロ差込枠のラベル色
23096 \end_layout
23097
23098 \begin_layout Description
23099 mathmacronewarg 数式マクロ新パラメーターのひな型色
23100 \end_layout
23101
23102 \begin_layout Description
23103 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23104 \end_layout
23105
23106 \begin_layout Description
23107 newpage 新規頁色
23108 \end_layout
23109
23110 \begin_layout Description
23111 nonunique_inlinecompletion 行内補完の一意でない部分の色
23112 \end_layout
23113
23114 \begin_layout Description
23115 notebg 註釈の背景色
23116 \end_layout
23117
23118 \begin_layout Description
23119 notelabel 註釈のラベル色
23120 \end_layout
23121
23122 \begin_layout Description
23123 pagebreak 改頁/改行色
23124 \end_layout
23125
23126 \begin_layout Description
23127 paragraphmarker 段落末を標識するための段落標の色
23128 \end_layout
23129
23130 \begin_layout Description
23131 phantomtext 埋め草差込枠の文字色
23132 \end_layout
23133
23134 \begin_layout Description
23135 preview プレビューに用いられる色
23136 \end_layout
23137
23138 \begin_layout Description
23139 previewframe プレビュー縁色
23140 \end_layout
23141
23142 \begin_layout Description
23143 regexpframe 正規表現枠の色
23144 \end_layout
23145
23146 \begin_layout Description
23147 selection 文章選択部の背景色
23148 \end_layout
23149
23150 \begin_layout Description
23151 selectiontext 文章選択部の前景色
23152 \end_layout
23153
23154 \begin_layout Description
23155 shadedbg 影付きボックスの背景色
23156 \end_layout
23157
23158 \begin_layout Description
23159 special 特殊文字の色
23160 \end_layout
23161
23162 \begin_layout Description
23163 tabularline 罫線色
23164 \end_layout
23165
23166 \begin_layout Description
23167 tabularonoffline 罫線色
23168 \end_layout
23169
23170 \begin_layout Description
23171 urllabel URL差込枠のラベル色
23172 \end_layout
23173
23174 \begin_layout Description
23175 urltext URL差込枠の文字色
23176 \end_layout
23177
23178 \end_body
23179 \end_document