]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Customization: accept and merge some changes
[features.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \usepackage{ifpdf} % part of the hyperref bundle
18 \ifpdf % if pdflatex is used
19
20  % set fonts for nicer pdf view
21  \IfFileExists{lmodern.sty}
22   {\usepackage{lmodern}}{}
23
24 \fi % end if pdflatex is used
25
26 % the pages of the TOC is numbered roman
27 % and a pdf-bookmark for the TOC is added
28 \let\myTOC\tableofcontents
29 \renewcommand\tableofcontents{%
30   \frontmatter
31   \pdfbookmark[1]{\contentsname}{}
32   \myTOC
33   \mainmatter }
34
35 % Added only for Japanese translation
36 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
37 \usepackage[T1]{fontenc}
38 \end_preamble
39 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \begin_local_layout
46 Format 57
47 InsetLayout Flex:MenuItem
48 LyxType               charstyle
49 LabelString           menu
50 LatexType             command
51 LatexName             menuitem
52 Font
53 Family              Sans
54 EndFont
55 Preamble
56 \newcommand*{\menuitem}[1]{{\sffamily #1}}
57 EndPreamble
58 ResetsFont true
59 End
60 # In case we need to do with sans...
61 #InsetLayout CharStyle:Code
62 #Font
63 #Family              Sans
64 #EndFont
65 #Preamble
66 #\renewcommand{\code}[1]{{\sffamily #1}}
67 #EndPreamble
68 #End
69 InsetLayout             Flex:Ruby
70 LyxType         charstyle
71 LatexType               command
72 LatexName               ruby
73 BgColor         none
74 LabelString             "ルビ"
75 Decoration              Conglomerate
76 Argument post:1
77 LabelString     "ルビ文"
78 MenuString      "ルビ文(S)|S"
79 Decoration      Conglomerate
80 Font
81 Size            tiny
82 EndFont
83 LabelFont
84 Size            tiny
85 EndFont
86 Mandatory       1
87 EndArgument
88 Preamble
89 \IfFileExists{okumacro.sty}
90 {\usepackage{okumacro}}
91 {\newcommand{\ruby}[2]{#2}}
92 EndPreamble
93 ResetsFont true
94 End
95 \end_local_layout
96 \language japanese
97 \language_package default
98 \inputencoding auto
99 \fontencoding global
100 \font_roman "default" "default"
101 \font_sans "default" "default"
102 \font_typewriter "default" "default"
103 \font_math "auto" "auto"
104 \font_default_family default
105 \use_non_tex_fonts false
106 \font_sc false
107 \font_osf false
108 \font_sf_scale 100 100
109 \font_tt_scale 100 100
110 \graphics default
111 \default_output_format default
112 \output_sync 0
113 \bibtex_command default
114 \index_command default
115 \paperfontsize 12
116 \spacing single
117 \use_hyperref true
118 \pdf_title "LyX Configuration Manual"
119 \pdf_author "LyX Team"
120 \pdf_subject "LyX-Documentation Customization"
121 \pdf_keywords "LyX, documentation, customization"
122 \pdf_bookmarks false
123 \pdf_bookmarksnumbered true
124 \pdf_bookmarksopen true
125 \pdf_bookmarksopenlevel 1
126 \pdf_breaklinks false
127 \pdf_pdfborder false
128 \pdf_colorlinks true
129 \pdf_backref false
130 \pdf_pdfusetitle false
131 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
132 \papersize default
133 \use_geometry false
134 \use_package amsmath 0
135 \use_package amssymb 0
136 \use_package cancel 0
137 \use_package esint 0
138 \use_package mathdots 0
139 \use_package mathtools 0
140 \use_package mhchem 0
141 \use_package stackrel 0
142 \use_package stmaryrd 0
143 \use_package undertilde 0
144 \cite_engine basic
145 \cite_engine_type default
146 \biblio_style plain
147 \use_bibtopic false
148 \use_indices false
149 \paperorientation portrait
150 \suppress_date false
151 \justification false
152 \use_refstyle 0
153 \branch OutDated
154 \selected 0
155 \filename_suffix 0
156 \color #f5fae7
157 \end_branch
158 \index 索引
159 \shortcut idx
160 \color #008000
161 \end_index
162 \secnumdepth 3
163 \tocdepth 3
164 \paragraph_separation indent
165 \paragraph_indentation default
166 \quotes_language english
167 \papercolumns 1
168 \papersides 2
169 \paperpagestyle headings
170 \tracking_changes false
171 \output_changes false
172 \html_math_output 0
173 \html_css_as_file 0
174 \html_be_strict true
175 \end_header
176
177 \begin_body
178
179 \begin_layout Title
180 \SpecialChar LyX
181 の高度設定
182 \begin_inset Newline newline
183 \end_inset
184
185 熟練ユーザのための各機能
186 \end_layout
187
188 \begin_layout Author
189 \SpecialChar LyX
190 開発チーム
191 \begin_inset Foot
192 status collapsed
193
194 \begin_layout Plain Layout
195 \noindent
196 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
197 文書化メーリングリスト
198 \begin_inset CommandInset href
199 LatexCommand href
200 target "lyx-docs@lists.lyx.org"
201 type "mailto:"
202
203 \end_inset
204
205 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
206 ast.net>をccにして送ってください。
207 \end_layout
208
209 \end_inset
210
211
212 \begin_inset Newline newline
213 \end_inset
214
215
216 \begin_inset Newline newline
217 \end_inset
218
219 第2.1.x版 
220 \end_layout
221
222 \begin_layout Standard
223 \begin_inset CommandInset toc
224 LatexCommand tableofcontents
225
226 \end_inset
227
228
229 \begin_inset Note Note
230 status open
231
232 \begin_layout Plain Layout
233 本文書を修正する際には、変更追跡機能を使用してください。これによって、
234 \end_layout
235
236 \begin_layout Plain Layout
237 \SpecialChar LyX
238 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
239 \end_layout
240
241 \end_inset
242
243
244 \end_layout
245
246 \begin_layout Chapter
247 はじめに
248 \end_layout
249
250 \begin_layout Standard
251 この取扱説明書は、\SpecialChar LyX
252 に備わっている高度設定機能を取り扱います。ここでは、
253 \begin_inset Flex Ruby
254 status collapsed
255
256 \begin_layout Plain Layout
257 捷径
258 \begin_inset Argument post:1
259 status collapsed
260
261 \begin_layout Plain Layout
262 ショートカット
263 \end_layout
264
265 \end_inset
266
267
268 \end_layout
269
270 \end_inset
271
272 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
273 サーバ経由での\SpecialChar LyX
274 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
275 クラスや\SpecialChar LyX
276 レイアウトの導入などの題材について論じます。おそらくは変更
277 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
278 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
279 \end_layout
280
281 \begin_layout Standard
282 \begin_inset Branch OutDated
283 status collapsed
284
285 \begin_layout Standard
286 Information from previous versions of this document that now seems to be
287  outdated is contained in the OutDated branch of this document.
288  By default, this information will not appear in the \SpecialChar LaTeX
289  output.
290 \end_layout
291
292 \end_inset
293
294
295 \end_layout
296
297 \begin_layout Chapter
298 \SpecialChar LyX
299 設定ファイル
300 \end_layout
301
302 \begin_layout Standard
303 本章の目的は、\SpecialChar LyX
304 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
305 \begin_inset Flex MenuItem
306 status collapsed
307
308 \begin_layout Plain Layout
309 ヘルプ\SpecialChar menuseparator
310 L
311 \begin_inset ERT
312 status collapsed
313
314 \begin_layout Plain Layout
315
316 {}
317 \end_layout
318
319 \end_inset
320
321 yXについて
322 \end_layout
323
324 \end_inset
325
326 を使って、\SpecialChar LyX
327 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
328 がシステム全体の設定ファイルを置いておくところです。一
329 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
330 \begin_inset Flex Code
331 status collapsed
332
333 \begin_layout Plain Layout
334 L
335 \begin_inset ERT
336 status collapsed
337
338 \begin_layout Plain Layout
339
340 {}
341 \end_layout
342
343 \end_inset
344
345 yXDir
346 \end_layout
347
348 \end_inset
349
350 と呼び、後者を
351 \begin_inset Flex MenuItem
352 status collapsed
353
354 \begin_layout Plain Layout
355 UserDir
356 \end_layout
357
358 \end_inset
359
360 と呼ぶことにします。
361 \end_layout
362
363 \begin_layout Section
364 \begin_inset Flex Code
365 status collapsed
366
367 \begin_layout Plain Layout
368 L
369 \begin_inset ERT
370 status collapsed
371
372 \begin_layout Plain Layout
373
374 {}
375 \end_layout
376
377 \end_inset
378
379 yXDir
380 \end_layout
381
382 \end_inset
383
384 にはなにがあるの?
385 \end_layout
386
387 \begin_layout Standard
388 \begin_inset Flex Code
389 status collapsed
390
391 \begin_layout Plain Layout
392 L
393 \begin_inset ERT
394 status collapsed
395
396 \begin_layout Plain Layout
397
398 {}
399 \end_layout
400
401 \end_inset
402
403 yXDir
404 \end_layout
405
406 \end_inset
407
408 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
409 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
410 内の
411 \begin_inset Flex MenuItem
412 status collapsed
413
414 \begin_layout Plain Layout
415 ツール\SpecialChar menuseparator
416 設定
417 \end_layout
418
419 \end_inset
420
421 ダイアログから変更することができます。\SpecialChar LyX
422 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
423 の多くの内部動作は、
424 \begin_inset Flex Code
425 status collapsed
426
427 \begin_layout Plain Layout
428 L
429 \begin_inset ERT
430 status collapsed
431
432 \begin_layout Plain Layout
433
434 {}
435 \end_layout
436
437 \end_inset
438
439 yXDir
440 \end_layout
441
442 \end_inset
443
444 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
445 \end_layout
446
447 \begin_layout Subsection
448 自動的に生成されるファイル
449 \end_layout
450
451 \begin_layout Standard
452 \begin_inset Flex MenuItem
453 status collapsed
454
455 \begin_layout Plain Layout
456 UserDir
457 \end_layout
458
459 \end_inset
460
461 にある各ファイルは、\SpecialChar LyX
462 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
463 うので、一般的には修正しないことが望まれます。
464 \end_layout
465
466 \begin_layout Labeling
467 \labelwidthstring 00.00.0000
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 lyxrc.defaults
473 \end_layout
474
475 \end_inset
476
477  このファイルには、様々な既定コマンドが置かれています。
478 \end_layout
479
480 \begin_layout Labeling
481 \labelwidthstring 00.00.0000
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 packages.lst
487 \end_layout
488
489 \end_inset
490
491  このファイルには、\SpecialChar LyX
492 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
493 プログラム自体には使用されていませんが、抽出された情報その他は、
494 \begin_inset Flex MenuItem
495 status collapsed
496
497 \begin_layout Plain Layout
498 ヘルプ\SpecialChar menuseparator
499 LaT
500 \begin_inset ERT
501 status collapsed
502
503 \begin_layout Plain Layout
504
505 {}
506 \end_layout
507
508 \end_inset
509
510 eXの設定
511 \end_layout
512
513 \end_inset
514
515 で見ることができます。
516 \end_layout
517
518 \begin_layout Labeling
519 \labelwidthstring 00.00.0000
520 \begin_inset Flex Code
521 status collapsed
522
523 \begin_layout Plain Layout
524 textclass.lst
525 \end_layout
526
527 \end_inset
528
529  ユーザの
530 \begin_inset Flex Code
531 status collapsed
532
533 \begin_layout Plain Layout
534 Plain L
535 \end_layout
536
537 \end_inset
538
539 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
540 文書クラスおよびその説明の一覧です。
541 \end_layout
542
543 \begin_layout Labeling
544 \labelwidthstring 00.00.0000
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 lyxmodules.lst
550 \end_layout
551
552 \end_inset
553
554  ユーザの
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 layout/
560 \end_layout
561
562 \end_inset
563
564 ディレクトリで検出されたレイアウトモジュールの一覧です。
565 \end_layout
566
567 \begin_layout Labeling
568 \labelwidthstring 00.00.0000
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 *files.lst
574 \end_layout
575
576 \end_inset
577
578  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
579 関連ファイルの一覧です。
580 \end_layout
581
582 \begin_layout Labeling
583 \labelwidthstring 00.00.0000
584 \begin_inset Flex Code
585 status collapsed
586
587 \begin_layout Plain Layout
588 doc/LaT
589 \begin_inset ERT
590 status collapsed
591
592 \begin_layout Plain Layout
593
594 {}
595 \end_layout
596
597 \end_inset
598
599 eXConfig.lyx
600 \end_layout
601
602 \end_inset
603
604  このファイルは、自動設定中に
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 LaT
610 \begin_inset ERT
611 status collapsed
612
613 \begin_layout Plain Layout
614
615 {}
616 \end_layout
617
618 \end_inset
619
620 eXConfig.lyx.in
621 \end_layout
622
623 \end_inset
624
625 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
626 の設定に関する情報が納められています。
627 \end_layout
628
629 \begin_layout Subsection
630 ディレクトリ
631 \end_layout
632
633 \begin_layout Standard
634 以下の各ディレクトリは、
635 \begin_inset Flex Code
636 status collapsed
637
638 \begin_layout Plain Layout
639 L
640 \begin_inset ERT
641 status collapsed
642
643 \begin_layout Plain Layout
644
645 {}
646 \end_layout
647
648 \end_inset
649
650 yXDir
651 \end_layout
652
653 \end_inset
654
655
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 UserDir
661 \end_layout
662
663 \end_inset
664
665 に重複して存在します。特定のファイルが両方の場所にある場合には、
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 UserDir
671 \end_layout
672
673 \end_inset
674
675 の方にあるものが使用されます。
676 \end_layout
677
678 \begin_layout Labeling
679 \labelwidthstring 00.00.0000
680 \begin_inset Flex Code
681 status collapsed
682
683 \begin_layout Plain Layout
684 bind/
685 \end_layout
686
687 \end_inset
688
689  このディレクトリには、\SpecialChar LyX
690 で使用されるキー割当を定義している、拡張子が
691 \begin_inset Flex Code
692 status collapsed
693
694 \begin_layout Plain Layout
695 .bind
696 \end_layout
697
698 \end_inset
699
700 のファイルが置かれています。
701 \begin_inset Flex Code
702 status collapsed
703
704 \begin_layout Plain Layout
705 $LANG_xxx.bind
706 \end_layout
707
708 \end_inset
709
710 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
711 \end_layout
712
713 \begin_layout Labeling
714 \labelwidthstring 00.00.0000
715 \begin_inset Flex Code
716 status collapsed
717
718 \begin_layout Plain Layout
719 clipart/
720 \end_layout
721
722 \end_inset
723
724  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
725 \end_layout
726
727 \begin_layout Labeling
728 \labelwidthstring 00.00.0000
729 \begin_inset Flex Code
730 status collapsed
731
732 \begin_layout Plain Layout
733 doc/
734 \end_layout
735
736 \end_inset
737
738  このディレクトリには、\SpecialChar LyX
739 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
740 \begin_inset Flex Code
741 status collapsed
742
743 \begin_layout Plain Layout
744 LaT
745 \begin_inset ERT
746 status collapsed
747
748 \begin_layout Plain Layout
749
750 {}
751 \end_layout
752
753 \end_inset
754
755 eXConfig.lyx
756 \end_layout
757
758 \end_inset
759
760 ファイルは特に注目に値します。各国語版のヘルプ文書は、
761 \begin_inset Flex Code
762 status collapsed
763
764 \begin_layout Plain Layout
765 doc/xx
766 \end_layout
767
768 \end_inset
769
770 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
771 \begin_inset CommandInset ref
772 LatexCommand ref
773 reference "cha:LyXの各国語対応"
774
775 \end_inset
776
777 をご覧ください。
778 \end_layout
779
780 \begin_layout Labeling
781 \labelwidthstring 00.00.0000
782 \begin_inset Flex Code
783 status collapsed
784
785 \begin_layout Plain Layout
786 examples/
787 \end_layout
788
789 \end_inset
790
791  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
792 \begin_inset Flex MenuItem
793 status collapsed
794
795 \begin_layout Plain Layout
796 用例
797 \end_layout
798
799 \end_inset
800
801 ボタンを押すと、このディレクトリが表示されます。
802 \end_layout
803
804 \begin_layout Labeling
805 \labelwidthstring 00.00.0000
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810 images/
811 \end_layout
812
813 \end_inset
814
815  このディレクトリには、
816 \begin_inset Flex MenuItem
817 status collapsed
818
819 \begin_layout Plain Layout
820 文書
821 \end_layout
822
823 \end_inset
824
825 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
826 を起動したときに現れるバナーも納められています。
827 \end_layout
828
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835 kbd/
836 \end_layout
837
838 \end_inset
839
840  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
841 \begin_inset CommandInset ref
842 LatexCommand ref
843 reference "sec:国際キー配列"
844
845 \end_inset
846
847 をご覧ください。
848 \end_layout
849
850 \begin_layout Labeling
851 \labelwidthstring 00.00.0000
852 \begin_inset Flex Code
853 status collapsed
854
855 \begin_layout Plain Layout
856 layouts/
857 \end_layout
858
859 \end_inset
860
861  このディレクトリには、
862 \begin_inset CommandInset ref
863 LatexCommand ref
864 reference "cha:新規文書を導入"
865
866 \end_inset
867
868 に述べられているテキストクラスおよびモジュールのファイルが納められています。
869 \end_layout
870
871 \begin_layout Labeling
872 \labelwidthstring 00.00.0000
873 \begin_inset Flex Code
874 status collapsed
875
876 \begin_layout Plain Layout
877 lyx2lyx
878 \end_layout
879
880 \end_inset
881
882  このディレクトリには、\SpecialChar LyX
883 の各バージョン間の変換に使用される
884 \begin_inset Flex Code
885 status collapsed
886
887 \begin_layout Plain Layout
888 lyx2lyx
889 \end_layout
890
891 \end_inset
892
893  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
894 \end_layout
895
896 \begin_layout Labeling
897 \labelwidthstring 00.00.0000
898 \begin_inset Flex Code
899 status collapsed
900
901 \begin_layout Plain Layout
902 scripts/
903 \end_layout
904
905 \end_inset
906
907  このディレクトリには、
908 \begin_inset Flex MenuItem
909 status collapsed
910
911 \begin_layout Plain Layout
912 外用ひな型
913 \end_layout
914
915 \end_inset
916
917 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
918 自身が使用するスクリプトもいくつか収められています。
919 \end_layout
920
921 \begin_layout Labeling
922 \labelwidthstring 00.00.0000
923 \begin_inset Flex Code
924 status collapsed
925
926 \begin_layout Plain Layout
927 templates/
928 \end_layout
929
930 \end_inset
931
932  このディレクトリには、
933 \begin_inset CommandInset ref
934 LatexCommand ref
935 reference "sec:ひな型を作成する"
936
937 \end_inset
938
939 で述べられている標準の\SpecialChar LyX
940 ひな型ファイルが納められています。
941 \end_layout
942
943 \begin_layout Labeling
944 \labelwidthstring 00.00.0000
945 \begin_inset Flex Code
946 status collapsed
947
948 \begin_layout Plain Layout
949 ui/
950 \end_layout
951
952 \end_inset
953
954  このディレクトリには、\SpecialChar LyX
955 の操作画面を定義する拡張子
956 \begin_inset Flex Code
957 status collapsed
958
959 \begin_layout Plain Layout
960 .ui
961 \end_layout
962
963 \end_inset
964
965 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
966 \end_layout
967
968 \begin_layout Subsection
969 変更を加えない方がよいファイル
970 \end_layout
971
972 \begin_layout Standard
973 これらのファイルは\SpecialChar LyX
974 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
975 \end_layout
976
977 \begin_layout Labeling
978 \labelwidthstring 00.00.0000
979 \begin_inset Flex Code
980 status collapsed
981
982 \begin_layout Plain Layout
983 CREDITS
984 \end_layout
985
986 \end_inset
987
988  このファイルは、\SpecialChar LyX
989 開発陣の名簿です。この内容は、メニュー項目
990 \begin_inset Flex MenuItem
991 status collapsed
992
993 \begin_layout Plain Layout
994 ヘルプ\SpecialChar menuseparator
995 L
996 \begin_inset ERT
997 status collapsed
998
999 \begin_layout Plain Layout
1000
1001 {}
1002 \end_layout
1003
1004 \end_inset
1005
1006 yXについて
1007 \end_layout
1008
1009 \end_inset
1010
1011 で表示されます。
1012 \end_layout
1013
1014 \begin_layout Labeling
1015 \labelwidthstring 00.00.0000
1016 \begin_inset Flex Code
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 chkconfig.ltx
1021 \end_layout
1022
1023 \end_inset
1024
1025  これは、自動設定プロセスによって使用される\SpecialChar LaTeX
1026 スクリプトです。直接実行しないでください。
1027 \end_layout
1028
1029 \begin_layout Labeling
1030 \labelwidthstring 00.00.0000
1031 \begin_inset Flex Code
1032 status collapsed
1033
1034 \begin_layout Plain Layout
1035 configure.py
1036 \end_layout
1037
1038 \end_inset
1039
1040  これは、\SpecialChar LyX
1041 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
1042 \end_layout
1043
1044 \begin_layout Subsection
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 encodings
1055 \end_layout
1056
1057 \end_inset
1058
1059  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
1060 \end_layout
1061
1062 \begin_layout Labeling
1063 \labelwidthstring 00.00.0000
1064 \begin_inset Flex Code
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068 external_templates
1069 \end_layout
1070
1071 \end_inset
1072
1073  このファイルには、新しく導入された
1074 \begin_inset Flex MenuItem
1075 status collapsed
1076
1077 \begin_layout Plain Layout
1078 外用ひな型
1079 \end_layout
1080
1081 \end_inset
1082
1083 機能で使用できるひな型が載っています。
1084 \begin_inset CommandInset ref
1085 LatexCommand ref
1086 reference "chap:外部素材を取り込む"
1087
1088 \end_inset
1089
1090 を参照のこと。
1091 \end_layout
1092
1093 \begin_layout Labeling
1094 \labelwidthstring 00.00.0000
1095 \begin_inset Flex Code
1096 status collapsed
1097
1098 \begin_layout Plain Layout
1099 languages
1100 \end_layout
1101
1102 \end_inset
1103
1104  このファイルには、現在\SpecialChar LyX
1105 がサポートしている言語の全一覧が載っています。
1106 \end_layout
1107
1108 \begin_layout Labeling
1109 \labelwidthstring 00.00.0000
1110 \begin_inset Flex Code
1111 status collapsed
1112
1113 \begin_layout Plain Layout
1114 latexfonts
1115 \end_layout
1116
1117 \end_inset
1118
1119  サポートされているフォントに関する情報が掲載されています。
1120 \end_layout
1121
1122 \begin_layout Labeling
1123 \labelwidthstring 00.00.0000
1124 \begin_inset Flex Code
1125 status collapsed
1126
1127 \begin_layout Plain Layout
1128 layouttranslations
1129 \end_layout
1130
1131 \end_inset
1132
1133  このファイルは、国際化された段落様式の翻訳が収録されています(
1134 \begin_inset CommandInset ref
1135 LatexCommand ref
1136 reference "subsec:段落様式の国際化"
1137
1138 \end_inset
1139
1140 参照)。
1141 \end_layout
1142
1143 \begin_layout Labeling
1144 \labelwidthstring 00.00.0000
1145 \begin_inset Flex Code
1146 status collapsed
1147
1148 \begin_layout Plain Layout
1149 unicodesymbols
1150 \end_layout
1151
1152 \end_inset
1153
1154  このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1155 が\SpecialChar LaTeX
1156 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1157 \end_layout
1158
1159 \begin_layout Section
1160 ユーザのローカル設定ディレクトリ
1161 \end_layout
1162
1163 \begin_layout Standard
1164 \SpecialChar LyX
1165 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1166 の設定を変更したいと思うかもしれません。
1167 \begin_inset Flex Code
1168 status collapsed
1169
1170 \begin_layout Plain Layout
1171 UserDir
1172 \end_layout
1173
1174 \end_inset
1175
1176 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1177 \begin_inset Flex MenuItem
1178 status collapsed
1179
1180 \begin_layout Plain Layout
1181 ヘルプ\SpecialChar menuseparator
1182 L
1183 \begin_inset ERT
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187
1188 {}
1189 \end_layout
1190
1191 \end_inset
1192
1193
1194 \begin_inset ERT
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198
1199 {}
1200 \end_layout
1201
1202 \end_inset
1203
1204 yXについて
1205 \end_layout
1206
1207 \end_inset
1208
1209 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214 L
1215 \begin_inset ERT
1216 status collapsed
1217
1218 \begin_layout Plain Layout
1219
1220 {}
1221 \end_layout
1222
1223 \end_inset
1224
1225 yXDir
1226 \end_layout
1227
1228 \end_inset
1229
1230 のミラーとして使用されており、これは
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 UserDir
1236 \end_layout
1237
1238 \end_inset
1239
1240 内のすべてのファイルが、
1241 \begin_inset Flex Code
1242 status collapsed
1243
1244 \begin_layout Plain Layout
1245 L
1246 \begin_inset ERT
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250
1251 {}
1252 \end_layout
1253
1254 \end_inset
1255
1256 yXDir
1257 \end_layout
1258
1259 \end_inset
1260
1261 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1262 \end_layout
1263
1264 \begin_layout Standard
1265 わかりやすくするために、いくつか例を挙げましょう。
1266 \end_layout
1267
1268 \begin_layout Itemize
1269 \begin_inset Flex MenuItem
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 ツール\SpecialChar menuseparator
1274 設定
1275 \end_layout
1276
1277 \end_inset
1278
1279 ダイアログで設定されるユーザ設定は、
1280 \begin_inset Flex Code
1281 status collapsed
1282
1283 \begin_layout Plain Layout
1284 UserDir
1285 \end_layout
1286
1287 \end_inset
1288
1289 中の
1290 \begin_inset Flex Code
1291 status collapsed
1292
1293 \begin_layout Plain Layout
1294 preferences
1295 \end_layout
1296
1297 \end_inset
1298
1299 ファイルに保存されます。
1300 \end_layout
1301
1302 \begin_layout Itemize
1303 \begin_inset Flex MenuItem
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307 ツール\SpecialChar menuseparator
1308 環境構成
1309 \end_layout
1310
1311 \end_inset
1312
1313 を使用して環境構成を行うと、\SpecialChar LyX
1314
1315 \begin_inset Flex Code
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 configure.py
1320 \end_layout
1321
1322 \end_inset
1323
1324 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1325 \begin_inset Flex Code
1326 status collapsed
1327
1328 \begin_layout Plain Layout
1329 UserDir/layouts
1330 \end_layout
1331
1332 \end_inset
1333
1334 にご自身で追加したテキストファイルは、
1335 \begin_inset Flex MenuItem
1336 status collapsed
1337
1338 \begin_layout Plain Layout
1339 文書\SpecialChar menuseparator
1340 設定
1341 \end_layout
1342
1343 \end_inset
1344
1345 ダイアログのクラス一覧に表示されるようになることを意味します。
1346 \end_layout
1347
1348 \begin_layout Itemize
1349 たとえば、\SpecialChar LyX
1350 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1351 れらのファイルを
1352 \begin_inset Flex Code
1353 status collapsed
1354
1355 \begin_layout Plain Layout
1356 UserDir/doc/
1357 \end_layout
1358
1359 \end_inset
1360
1361 ディレクトリにコピーすれば、
1362 \begin_inset Flex MenuItem
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366 ヘルプ
1367 \end_layout
1368
1369 \end_inset
1370
1371 メニュー項目はこれらを開くようになります!
1372 \end_layout
1373
1374 \begin_layout Section
1375 \SpecialChar LyX
1376 を複数の設定を使って実行するには
1377 \end_layout
1378
1379 \begin_layout Standard
1380 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1381 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1382 どのディレクトリを使用するか指定するのです。
1383 \end_layout
1384
1385 \begin_layout Standard
1386 \SpecialChar LyX
1387 をコマンドラインスイッチ
1388 \begin_inset Flex Code
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 -userdir
1393 \end_layout
1394
1395 \end_inset
1396
1397 P
1398 \emph on
1399 <ディレクトリ名>
1400 \emph default
1401 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1402
1403 \begin_inset Flex Code
1404 status collapsed
1405
1406 \begin_layout Plain Layout
1407 -userdir
1408 \end_layout
1409
1410 \end_inset
1411
1412 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1413 は、初めて\SpecialChar LyX
1414 を実行したときに既定ディレクトリを訊い
1415 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1416 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1417 \begin_inset Flex Code
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421 LYX_USERDIR_20x
1422 \end_layout
1423
1424 \end_inset
1425
1426 を特定の値に設定しても、全く同じ効果があります。
1427 \end_layout
1428
1429 \begin_layout Standard
1430 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1431 \begin_inset Flex Code
1432 status collapsed
1433
1434 \begin_layout Plain Layout
1435 NewUserDir/layouts
1436 \end_layout
1437
1438 \end_inset
1439
1440 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1441 クを使用してください。\SpecialChar LyX
1442 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1443 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1444 \begin_inset Flex Code
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 doc/
1449 \end_layout
1450
1451 \end_inset
1452
1453 サブディレクトリには、設定スクリプト(
1454 \begin_inset Flex MenuItem
1455 status collapsed
1456
1457 \begin_layout Plain Layout
1458 ツール\SpecialChar menuseparator
1459 環境構成
1460 \end_layout
1461
1462 \end_inset
1463
1464 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1465 \end_layout
1466
1467 \begin_layout Chapter
1468 設定ダイアログ
1469 \end_layout
1470
1471 \begin_layout Standard
1472 設定ダイアログのオプションのすべては、
1473 \emph on
1474 ユーザーの手引き
1475 \emph default
1476 の付録
1477 \emph on
1478 設定ダイアログ
1479 \emph default
1480 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1481 \end_layout
1482
1483 \begin_layout Section
1484 ファイル形式
1485 \begin_inset CommandInset label
1486 LatexCommand label
1487 name "sec:ファイル形式"
1488
1489 \end_inset
1490
1491
1492 \end_layout
1493
1494 \begin_layout Standard
1495 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1496 \begin_inset Flex MenuItem
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 ツール\SpecialChar menuseparator
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 ファイル処理\SpecialChar menuseparator
1512 ファイル形式
1513 \end_layout
1514
1515 \end_inset
1516
1517 の中で
1518 \begin_inset Flex MenuItem
1519 status collapsed
1520
1521 \begin_layout Plain Layout
1522 新規\SpecialChar ldots
1523
1524 \end_layout
1525
1526 \end_inset
1527
1528 ボタンを押して、登録する新しい形式を定義してください。
1529 \begin_inset Flex MenuItem
1530 status collapsed
1531
1532 \begin_layout Plain Layout
1533 形式
1534 \end_layout
1535
1536 \end_inset
1537
1538 フィールドは、GUI中で形式を認識するために用いられる名称です。
1539 \begin_inset Flex MenuItem
1540 status collapsed
1541
1542 \begin_layout Plain Layout
1543 短縮名
1544 \end_layout
1545
1546 \end_inset
1547
1548 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1549 \begin_inset Flex MenuItem
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 捷径
1554 \end_layout
1555
1556 \end_inset
1557
1558 フィールドは、メニュー中で
1559 \begin_inset Flex Ruby
1560 status collapsed
1561
1562 \begin_layout Plain Layout
1563 捷径
1564 \begin_inset Argument post:1
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568 ショートカット
1569 \end_layout
1570
1571 \end_inset
1572
1573
1574 \end_layout
1575
1576 \end_inset
1577
1578 を提供するのに使用されます(たとえば、
1579 \begin_inset Flex MenuItem
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 Ctrl+D
1584 \end_layout
1585
1586 \end_inset
1587
1588 を押すと
1589 \begin_inset Flex MenuItem
1590 status collapsed
1591
1592 \begin_layout Plain Layout
1593 表示\SpecialChar menuseparator
1594 DVI
1595 \end_layout
1596
1597 \end_inset
1598
1599 となります)。
1600 \end_layout
1601
1602 \begin_layout Standard
1603 形式には、
1604 \begin_inset Flex MenuItem
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608 閲覧プログラム
1609 \end_layout
1610
1611 \end_inset
1612
1613
1614 \begin_inset Flex MenuItem
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618 編集プログラム
1619 \end_layout
1620
1621 \end_inset
1622
1623 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1624 \begin_inset Flex MenuItem
1625 status collapsed
1626
1627 \begin_layout Plain Layout
1628 Ghostview
1629 \end_layout
1630
1631 \end_inset
1632
1633 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1634 いることができます。この閲覧プログラムは、\SpecialChar LyX
1635 中で画像を閲覧したり
1636 \begin_inset Flex MenuItem
1637 status collapsed
1638
1639 \begin_layout Plain Layout
1640 表示
1641 \end_layout
1642
1643 \end_inset
1644
1645 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1646 \begin_inset Flex MenuItem
1647 status collapsed
1648
1649 \begin_layout Plain Layout
1650 外部で編集
1651 \end_layout
1652
1653 \end_inset
1654
1655 を選択したときに起動します。
1656 \end_layout
1657
1658 \begin_layout Standard
1659 ファイル形式の
1660 \begin_inset Flex MenuItem
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 MIME
1665 \end_layout
1666
1667 \end_inset
1668
1669 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1670 ます。重要なファイル形式のうちには、
1671 \begin_inset CommandInset href
1672 LatexCommand href
1673 name "IANA"
1674 target "http://www.iana.org/assignments/media-types/"
1675
1676 \end_inset
1677
1678 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1679 は、
1680 \begin_inset CommandInset href
1681 LatexCommand href
1682 name "freedesktop.org"
1683 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1684
1685 \end_inset
1686
1687 で指定されているMIME型拡張表を使用しています。
1688 \end_layout
1689
1690 \begin_layout Standard
1691 \begin_inset Flex MenuItem
1692 status collapsed
1693
1694 \begin_layout Plain Layout
1695 文書形式
1696 \end_layout
1697
1698 \end_inset
1699
1700 オプションは、\SpecialChar LyX
1701 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1702 \begin_inset CommandInset ref
1703 LatexCommand ref
1704 reference "sec:変換子"
1705
1706 \end_inset
1707
1708 節を参照)、この形式が
1709 \begin_inset Flex MenuItem
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 ファイル\SpecialChar menuseparator
1714 書き出し
1715 \end_layout
1716
1717 \end_inset
1718
1719
1720 \begin_inset Flex MenuItem
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 表示
1725 \end_layout
1726
1727 \end_inset
1728
1729 footlabel Label color for footnotす。
1730 \begin_inset Flex Code
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 png
1735 \end_layout
1736
1737 \end_inset
1738
1739 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1740 \begin_inset Flex Code
1741 status collapsed
1742
1743 \begin_layout Plain Layout
1744 pdf
1745 \end_layout
1746
1747 \end_inset
1748
1749 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1750 \end_layout
1751
1752 \begin_layout Standard
1753 \begin_inset Flex MenuItem
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 ベクター画像形式
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 pdflatex
1769 \end_layout
1770
1771 \end_inset
1772
1773 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1774 \begin_inset Flex MenuItem
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 pdflatex
1779 \end_layout
1780
1781 \end_inset
1782
1783 は、
1784 \begin_inset Flex MenuItem
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 pdf
1789 \end_layout
1790
1791 \end_inset
1792
1793
1794 \begin_inset Flex MenuItem
1795 status collapsed
1796
1797 \begin_layout Plain Layout
1798 png
1799 \end_layout
1800
1801 \end_inset
1802
1803
1804 \begin_inset Flex MenuItem
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 Des
1809 \end_layout
1810
1811 \end_inset
1812
1813 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1814 \begin_inset Flex MenuItem
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 pdf
1819 \end_layout
1820
1821 \end_inset
1822
1823
1824 \begin_inset Flex MenuItem
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 png
1829 \end_layout
1830
1831 \end_inset
1832
1833
1834 \begin_inset Flex MenuItem
1835 status collapsed
1836
1837 \begin_layout Plain Layout
1838 jpg
1839 \end_layout
1840
1841 \end_inset
1842
1843 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1844 \begin_inset Flex MenuItem
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 pdf
1849 \end_layout
1850
1851 \end_inset
1852
1853 に変換され、そうでない場合には
1854 \begin_inset Flex MenuItem
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 png
1859 \end_layout
1860
1861 \end_inset
1862
1863 に変換されます。
1864 \end_layout
1865
1866 \begin_layout Section
1867 複写子
1868 \end_layout
1869
1870 \begin_layout Standard
1871 形式の変換はすべて、\SpecialChar LyX
1872 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1873 \begin_inset Foot
1874 status collapsed
1875
1876 \begin_layout Plain Layout
1877 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1878 あります。
1879 \end_layout
1880
1881 \end_inset
1882
1883 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1884 \end_layout
1885
1886 \begin_layout Standard
1887 複写子の定義においては、以下の4つの変数を用いることができます。
1888 \end_layout
1889
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 $$s
1897 \end_layout
1898
1899 \end_inset
1900
1901  \SpecialChar LyX
1902 のシステムディレクトリ(例:
1903 \begin_inset Flex MenuItem
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907 /usr/share/lyx
1908 \end_layout
1909
1910 \end_inset
1911
1912
1913 \end_layout
1914
1915 \begin_layout Labeling
1916 \labelwidthstring 00.00.0000
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 $$i
1922 \end_layout
1923
1924 \end_inset
1925
1926  入力ファイル
1927 \end_layout
1928
1929 \begin_layout Labeling
1930 \labelwidthstring 00.00.0000
1931 \begin_inset Flex Code
1932 status collapsed
1933
1934 \begin_layout Plain Layout
1935 $$o
1936 \end_layout
1937
1938 \end_inset
1939
1940  出力ファイル
1941 \end_layout
1942
1943 \begin_layout Labeling
1944 \labelwidthstring 00.00.0000
1945 \begin_inset Flex Code
1946 status collapsed
1947
1948 \begin_layout Plain Layout
1949 $$b
1950 \end_layout
1951
1952 \end_inset
1953
1954  \SpecialChar LyX
1955 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1956 \end_layout
1957
1958 \begin_layout Labeling
1959 \labelwidthstring 00.00.0000
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 $$p
1965 \end_layout
1966
1967 \end_inset
1968
1969  \SpecialChar LyX
1970 一時ディレクトリのフルパス名
1971 \end_layout
1972
1973 \begin_layout Labeling
1974 \labelwidthstring 00.00.0000
1975 \begin_inset Flex Code
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 $$r
1980 \end_layout
1981
1982 \end_inset
1983
1984  処理されている元の\SpecialChar LyX
1985 ファイルのフルパス名
1986 \end_layout
1987
1988 \begin_layout Labeling
1989 \labelwidthstring 00.00.0000
1990 \begin_inset Flex Code
1991 status collapsed
1992
1993 \begin_layout Plain Layout
1994 $$f
1995 \end_layout
1996
1997 \end_inset
1998
1999  \SpecialChar LyX
2000 ファイルのファイル名(ディレクトリパスなし)
2001 \end_layout
2002
2003 \begin_layout Labeling
2004 \labelwidthstring 00.00.0000
2005 \begin_inset Flex Code
2006 status collapsed
2007
2008 \begin_layout Plain Layout
2009 $$l
2010 \end_layout
2011
2012 \end_inset
2013
2014  「\SpecialChar LaTeX
2015 名」
2016 \end_layout
2017
2018 \begin_layout Standard
2019 最後の変数は、\SpecialChar LaTeX
2020
2021 \series bold
2022
2023 \backslash
2024 include
2025 \series default
2026 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
2027 \end_layout
2028
2029 \begin_layout Standard
2030 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
2031 \begin_inset Flex Code
2032 status collapsed
2033
2034 \begin_layout Plain Layout
2035 /home/you/pdf/
2036 \end_layout
2037
2038 \end_inset
2039
2040 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
2041 \end_layout
2042
2043 \begin_layout Standard
2044 \begin_inset listings
2045 inline false
2046 status open
2047
2048 \begin_layout Plain Layout
2049
2050 #!/bin/bash
2051 \end_layout
2052
2053 \begin_layout Plain Layout
2054
2055 FROMFILE=$1
2056 \end_layout
2057
2058 \begin_layout Plain Layout
2059
2060 TOFILE=`basename $2`
2061 \end_layout
2062
2063 \begin_layout Plain Layout
2064
2065 DescriptionE /home/you/pdf/$TOFILE
2066 \end_layout
2067
2068 \end_inset
2069
2070 これを、例えば
2071 \begin_inset Flex Code
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 /home/you/.lyx/scripts/pdfcopier.sh
2076 \end_layout
2077
2078 \end_inset
2079
2080 のような、自身のローカル\SpecialChar LyX
2081 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
2082 \begin_inset Flex MenuItem
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086 ツール\SpecialChar menuseparator
2087 設定
2088 \end_layout
2089
2090 \end_inset
2091
2092 ダイアログの
2093 \begin_inset Flex MenuItem
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097 ファイル処理\SpecialChar menuseparator
2098 ファイル形式
2099 \end_layout
2100
2101 \end_inset
2102
2103 の中で、
2104 \begin_inset Flex MenuItem
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 PDF(pdflatex)
2109 \end_layout
2110
2111 \end_inset
2112
2113 形式—あるいは他のPDF形式のうちどれか—を選択し、
2114 \begin_inset Flex MenuItem
2115 status collapsed
2116
2117 \begin_layout Plain Layout
2118 複写子
2119 \end_layout
2120
2121 \end_inset
2122
2123 フィールドに
2124 \begin_inset Flex Code
2125 status collapsed
2126
2127 \begin_layout Plain Layout
2128 pdfcopier.sh $$i $$o
2129 \end_layout
2130
2131 \end_inset
2132
2133 と入力します。
2134 \end_layout
2135
2136 \begin_layout Standard
2137 複写子は、\SpecialChar LyX
2138 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
2139 は自動的に
2140 \begin_inset Flex MenuItem
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144 HTML
2145 \end_layout
2146
2147 \end_inset
2148
2149 形式と
2150 \begin_inset Flex MenuItem
2151 status collapsed
2152
2153 \begin_layout Plain Layout
2154 HTML
2155 \begin_inset space ~
2156 \end_inset
2157
2158 (MS Word)
2159 \end_layout
2160
2161 \end_inset
2162
2163 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2164 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2165 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2166 \begin_inset Foot
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2171 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2172 \begin_inset Flex MenuItem
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 L
2177 \begin_inset ERT
2178 status collapsed
2179
2180 \begin_layout Plain Layout
2181
2182 {}
2183 \end_layout
2184
2185 \end_inset
2186
2187 yXconv
2188 \end_layout
2189
2190 \end_inset
2191
2192 」となっているので、
2193 \begin_inset Flex MenuItem
2194 status collapsed
2195
2196 \begin_layout Plain Layout
2197 /path/to/filename.lyx
2198 \end_layout
2199
2200 \end_inset
2201
2202 から生成されたHTMLファイルは、
2203 \begin_inset Flex MenuItem
2204 status collapsed
2205
2206 \begin_layout Plain Layout
2207 /path/to/filename.html.L
2208 \begin_inset ERT
2209 status collapsed
2210
2211 \begin_layout Plain Layout
2212
2213 {}
2214 \end_layout
2215
2216 \end_inset
2217
2218 yXconv
2219 \end_layout
2220
2221 \end_inset
2222
2223 となります。.
2224  
2225 \end_layout
2226
2227 \end_inset
2228
2229
2230 \end_layout
2231
2232 \begin_layout Section
2233 変換子
2234 \begin_inset CommandInset label
2235 LatexCommand label
2236 name "sec:変換子"
2237
2238 \end_inset
2239
2240
2241 \end_layout
2242
2243 \begin_layout Standard
2244 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2245 \begin_inset Flex MenuItem
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249 ツール\SpecialChar menuseparator
2250 設定\SpecialChar menuseparator
2251 ファイル処理\SpecialChar menuseparator
2252 変換子
2253 \end_layout
2254
2255 \end_inset
2256
2257 ダイアログで行います。
2258 \end_layout
2259
2260 \begin_layout Standard
2261 新規に変換子を定義するには、ドロップダウンリストから
2262 \begin_inset Flex MenuItem
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 変換元の形式
2267 \end_layout
2268
2269 \end_inset
2270
2271
2272 \begin_inset Flex MenuItem
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 変換先の形式
2277 \end_layout
2278
2279 \end_inset
2280
2281 を選択し、変換に必要なコマンドを入力してから
2282 \begin_inset Flex MenuItem
2283 status collapsed
2284
2285 \begin_layout Plain Layout
2286 追加
2287 \end_layout
2288
2289 \end_inset
2290
2291 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2292 \end_layout
2293
2294 \begin_layout Labeling
2295 \labelwidthstring 00.00.0000
2296 \begin_inset Flex Code
2297 status collapsed
2298
2299 \begin_layout Plain Layout
2300 $$s
2301 \end_layout
2302
2303 \end_inset
2304
2305  \SpecialChar LyX
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 $$i
2316 \end_layout
2317
2318 \end_inset
2319
2320  入力ファイル
2321 \end_layout
2322
2323 \begin_layout Labeling
2324 \labelwidthstring 00.00.0000
2325 \begin_inset Flex Code
2326 status collapsed
2327
2328 \begin_layout Plain Layout
2329 $$o
2330 \end_layout
2331
2332 \end_inset
2333
2334  出力ファイル
2335 \end_layout
2336
2337 \begin_layout Labeling
2338 \labelwidthstring 00.00.0000
2339 \begin_inset Flex Code
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 $$b
2344 \end_layout
2345
2346 \end_inset
2347
2348  入力ファイルのベースファイル名(拡張子をとった部分)
2349 \end_layout
2350
2351 \begin_layout Labeling
2352 \labelwidthstring 00.00.0000
2353 \begin_inset Flex Code
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 $$p
2358 \end_layout
2359
2360 \end_inset
2361
2362  入力ファイルのパス
2363 \end_layout
2364
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Flex Code
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 $$r
2372 \end_layout
2373
2374 \end_inset
2375
2376  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2377 \end_layout
2378
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Flex Code
2382 status collapsed
2383
2384 \begin_layout Plain Layout
2385 $$e
2386 \end_layout
2387
2388 \end_inset
2389
2390  文書エンコーディングのiconv名
2391 \end_layout
2392
2393 \begin_layout Standard
2394 \begin_inset Flex MenuItem
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 追加フラグ
2399 \end_layout
2400
2401 \end_inset
2402
2403 フィールドには、以下のフラグをコンマで区切って入力することができます。
2404 \end_layout
2405
2406 \begin_layout Labeling
2407 \labelwidthstring 00.00.0000
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 latex
2413 \end_layout
2414
2415 \end_inset
2416
2417  この変換子が\SpecialChar LaTeX
2418 の一種を実行することを示します。これによって、\SpecialChar LyX
2419 の\SpecialChar LaTeX
2420 エラーログに記録を残せるようになります。
2421 \end_layout
2422
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 needaux
2430 \end_layout
2431
2432 \end_inset
2433
2434  変換に\SpecialChar LaTeX
2435
2436 \begin_inset Flex MenuItem
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 .aux
2441 \end_layout
2442
2443 \end_inset
2444
2445 ファイルが必要であることを示します。
2446 \end_layout
2447
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 nice
2455 \end_layout
2456
2457 \end_inset
2458
2459  バックエンドからの
2460 \begin_inset Quotes erd
2461 \end_inset
2462
2463 nice
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467 なファイル、つまり\SpecialChar LyX
2468 が書き出す\SpecialChar LaTeX
2469 ファイルのように、
2470 \begin_inset Flex Code
2471 status open
2472
2473 \begin_layout Plain Layout
2474 input@path
2475 \end_layout
2476
2477 \end_inset
2478
2479 のない\SpecialChar LaTeX
2480 ファイルを必要とします。
2481 \end_layout
2482
2483 \begin_layout Labeling
2484 \labelwidthstring 00.00.0000
2485 \begin_inset Flex Code
2486 status collapsed
2487
2488 \begin_layout Plain Layout
2489 xml
2490 \end_layout
2491
2492 \end_inset
2493
2494  出力がXMLであることを示します。
2495 \end_layout
2496
2497 \begin_layout Standard
2498 以下の3つのフラグは 
2499 \begin_inset Flex MenuItem
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 key
2504 \begin_inset space ~
2505 \end_inset
2506
2507 =
2508 \begin_inset space ~
2509 \end_inset
2510
2511 value
2512 \end_layout
2513
2514 \end_inset
2515
2516 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2517 \end_layout
2518
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521 \begin_inset Flex Code
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 parselog
2526 \end_layout
2527
2528 \end_inset
2529
2530  これを指定すると、変換子の標準エラーが
2531 \begin_inset Flex Code
2532 status collapsed
2533
2534 \begin_layout Plain Layout
2535 infile.out
2536 \end_layout
2537
2538 \end_inset
2539
2540 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 script < infile.out > infile.log
2546 \end_layout
2547
2548 \end_inset
2549
2550 の形で実行されるようになります。引数には
2551 \begin_inset Flex Code
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 $$s
2556 \end_layout
2557
2558 \end_inset
2559
2560 を指定することができます。
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 resultdir
2570 \end_layout
2571
2572 \end_inset
2573
2574  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2575 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2576 ピーします。引数には、
2577 \begin_inset Flex Code
2578 status collapsed
2579
2580 \begin_layout Plain Layout
2581 $$b
2582 \end_layout
2583
2584 \end_inset
2585
2586 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2587 \begin_inset Newline newline
2588 \end_inset
2589
2590 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2591 \end_layout
2592
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2595 \begin_inset Flex Code
2596 status collapsed
2597
2598 \begin_layout Plain Layout
2599 resultfile
2600 \end_layout
2601
2602 \end_inset
2603
2604  これは出力ファイル名を指定するもので、
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 $$b
2610 \end_layout
2611
2612 \end_inset
2613
2614 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2615 \end_layout
2616
2617 \begin_layout Standard
2618 最後の3つは、\SpecialChar LyX
2619 とともに導入される変換子には、現在いずれも使用されておりません。
2620 \end_layout
2621
2622 \begin_layout Standard
2623 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2624 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2625 はPostScrip
2626 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2627 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2628 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2629 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2630 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2631 設定は、\SpecialChar LaTeX
2632 からPDFへ変換するのに、以下の3つの方法を
2633 用意しています。
2634 \end_layout
2635
2636 \begin_layout Enumerate
2637 直接
2638 \begin_inset Flex MenuItem
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642 pdflatex
2643 \end_layout
2644
2645 \end_inset
2646
2647 を使用するもの
2648 \end_layout
2649
2650 \begin_layout Enumerate
2651 (DVIと)PostScriptを経由して
2652 \begin_inset Flex MenuItem
2653 status collapsed
2654
2655 \begin_layout Plain Layout
2656 ps2pdf
2657 \end_layout
2658
2659 \end_inset
2660
2661 を使用するもの
2662 \end_layout
2663
2664 \begin_layout Enumerate
2665 DVI経由で
2666 \begin_inset Flex MenuItem
2667 status collapsed
2668
2669 \begin_layout Plain Layout
2670 dvipdfm
2671 \end_layout
2672
2673 \end_inset
2674
2675 を使用するもの
2676 \end_layout
2677
2678 \begin_layout Enumerate
2679 直接
2680 \begin_inset Flex MenuItem
2681 status collapsed
2682
2683 \begin_layout Plain Layout
2684 Xe\SpecialChar TeX
2685
2686 \end_layout
2687
2688 \end_inset
2689
2690 を使用するもの
2691 \end_layout
2692
2693 \begin_layout Enumerate
2694 直接
2695 \begin_inset Flex MenuItem
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 Lua\SpecialChar TeX
2700
2701 \end_layout
2702
2703 \end_inset
2704
2705 を使用するもの
2706 \end_layout
2707
2708 \begin_layout Standard
2709 このように代替連鎖を定義するには、第
2710 \begin_inset CommandInset ref
2711 LatexCommand ref
2712 reference "sec:ファイル形式"
2713
2714 \end_inset
2715
2716 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2717 \begin_inset Flex MenuItem
2718 status collapsed
2719
2720 \begin_layout Plain Layout
2721 pdf
2722 \end_layout
2723
2724 \end_inset
2725
2726 (
2727 \begin_inset Flex MenuItem
2728 status collapsed
2729
2730 \begin_layout Plain Layout
2731 ps2pdf
2732 \end_layout
2733
2734 \end_inset
2735
2736 用)・
2737 \begin_inset Flex MenuItem
2738 status collapsed
2739
2740 \begin_layout Plain Layout
2741 pdf2
2742 \end_layout
2743
2744 \end_inset
2745
2746 (
2747 \begin_inset Flex MenuItem
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 pdflatex
2752 \end_layout
2753
2754 \end_inset
2755
2756 用)・
2757 \begin_inset Flex MenuItem
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 pdf3
2762 \end_layout
2763
2764 \end_inset
2765
2766 (
2767 \begin_inset Flex MenuItem
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 dvipdfm
2772 \end_layout
2773
2774 \end_inset
2775
2776 用)・
2777 \begin_inset Flex MenuItem
2778 status collapsed
2779
2780 \begin_layout Plain Layout
2781 pdf4
2782 \end_layout
2783
2784 \end_inset
2785
2786 (
2787 \begin_inset Flex MenuItem
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 Xe\SpecialChar TeX
2792
2793 \end_layout
2794
2795 \end_inset
2796
2797 用)・
2798 \begin_inset Flex MenuItem
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 pdf5
2803 \end_layout
2804
2805 \end_inset
2806
2807 (
2808 \begin_inset Flex MenuItem
2809 status collapsed
2810
2811 \begin_layout Plain Layout
2812 Lua\SpecialChar TeX
2813
2814 \end_layout
2815
2816 \end_inset
2817
2818 用\SpecialChar softhyphen
2819 ) と命名された形式が定義されていて、すべて共通の拡張子
2820 \begin_inset Flex MenuItem
2821 status collapsed
2822
2823 \begin_layout Plain Layout
2824 .pdf
2825 \end_layout
2826
2827 \end_inset
2828
2829 を持ち、上記で言及した各変換方法に対応しています。
2830 \end_layout
2831
2832 \begin_layout Chapter
2833 \SpecialChar LyX
2834 の各国語対応
2835 \begin_inset CommandInset label
2836 LatexCommand label
2837 name "cha:LyXの各国語対応"
2838
2839 \end_inset
2840
2841
2842 \end_layout
2843
2844 \begin_layout Standard
2845 \SpecialChar LyX
2846 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2847 は30言語の翻訳を提供しています。選択した言語は、使用する
2848 \emph on
2849 ロケール
2850 \emph default
2851 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2852 \begin_inset Flex Code
2853 status collapsed
2854
2855 \begin_layout Plain Layout
2856 locale(5)
2857 \end_layout
2858
2859 \end_inset
2860
2861 から見ると良いかもしれません)。
2862 \end_layout
2863
2864 \begin_layout Standard
2865 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2866 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2867 \begin_inset Flex Ruby
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 捷径
2872 \begin_inset Argument post:1
2873 status collapsed
2874
2875 \begin_layout Plain Layout
2876 ショートカット
2877 \end_layout
2878
2879 \end_inset
2880
2881
2882 \end_layout
2883
2884 \end_inset
2885
2886 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2887 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2888 \begin_inset Foot
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2893 コミュニティに報いるたいへん素晴らしい方法です!
2894 \end_layout
2895
2896 \end_inset
2897
2898 —は、\SpecialChar LyX
2899 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2900 \end_layout
2901
2902 \begin_layout Section
2903 \SpecialChar LyX
2904 を翻訳する
2905 \end_layout
2906
2907 \begin_layout Subsection
2908 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2909 \begin_inset Argument 1
2910 status collapsed
2911
2912 \begin_layout Plain Layout
2913 GUI(テキストメッセージ)を翻訳する
2914 \end_layout
2915
2916 \end_inset
2917
2918
2919 \end_layout
2920
2921 \begin_layout Standard
2922 \SpecialChar LyX
2923 は、操作画面の国際化対応にGNU 
2924 \begin_inset Flex Code
2925 status collapsed
2926
2927 \begin_layout Plain Layout
2928 gettext
2929 \end_layout
2930
2931 \end_inset
2932
2933 ライブラリを使用します。\SpecialChar LyX
2934 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2935 \begin_inset Flex Code
2936 status collapsed
2937
2938 \begin_layout Plain Layout
2939 po
2940 \end_layout
2941
2942 \end_inset
2943
2944 ファイルが必要です。このファイルが利用可能であれば、そこから
2945 \begin_inset Flex Code
2946 status collapsed
2947
2948 \begin_layout Plain Layout
2949 mo
2950 \end_layout
2951
2952 \end_inset
2953
2954 ファイルを生成して、この
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959 mo
2960 \end_layout
2961
2962 \end_inset
2963
2964 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2965 \begin_inset Flex Code
2966 status collapsed
2967
2968 \begin_layout Plain Layout
2969 gettext
2970 \end_layout
2971
2972 \end_inset
2973
2974 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2975 コミュニティの他の人々と分かち
2976 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2977 開発者メーリングリストにメールを送ってください。
2978 \end_layout
2979
2980 \begin_layout Standard
2981 要約すれば、以下のように行います(xxは言語コードを表します)。
2982 \end_layout
2983
2984 \begin_layout Itemize
2985 \SpecialChar LyX
2986 ソースコードをチェックアウトしてください(
2987 \begin_inset CommandInset href
2988 LatexCommand href
2989 name "ウェブ上の情報"
2990 target "http://www.lyx.org/devel/cvs.php"
2991
2992 \end_inset
2993
2994 参照)。
2995 \end_layout
2996
2997 \begin_layout Itemize
2998 \begin_inset Flex Code
2999 status collapsed
3000
3001 \begin_layout Plain Layout
3002 lyx.pot
3003 \end_layout
3004
3005 \end_inset
3006
3007 ファイルを
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 **.po
3013 \end_layout
3014
3015 \end_inset
3016
3017 ファイルのあるフォルダにコピーして、
3018 \begin_inset Flex Code
3019 status collapsed
3020
3021 \begin_layout Plain Layout
3022 xx.po
3023 \end_layout
3024
3025 \end_inset
3026
3027 に名前を付け替えてください(
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 lyx.pot
3033 \end_layout
3034
3035 \end_inset
3036
3037 がどこにもない場合には、コンソールからそのディレクトリで
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 make lyx.pot
3043 \end_layout
3044
3045 \end_inset
3046
3047 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
3048 \end_layout
3049
3050 \begin_layout Itemize
3051 \begin_inset Flex Code
3052 status collapsed
3053
3054 \begin_layout Plain Layout
3055 xx.po
3056 \end_layout
3057
3058 \end_inset
3059
3060 を編集します
3061 \begin_inset Foot
3062 status collapsed
3063
3064 \begin_layout Plain Layout
3065 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
3066 \family typewriter
3067 Poedit
3068 \family default
3069 (全プラットフォーム用)や
3070 \family typewriter
3071 KBabel
3072 \family default
3073 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
3074 \family typewriter
3075 Emacs
3076 \family default
3077 にも
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 po
3083 \end_layout
3084
3085 \end_inset
3086
3087 ファイルを編集するための「モード」があります。
3088 \end_layout
3089
3090 \end_inset
3091
3092 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
3093 \begin_inset Flex Ruby
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 捷径
3098 \begin_inset Argument post:1
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 ショートカット
3103 \end_layout
3104
3105 \end_inset
3106
3107
3108 \end_layout
3109
3110 \end_inset
3111
3112 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 po
3118 \end_layout
3119
3120 \end_inset
3121
3122 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
3123 \end_layout
3124
3125 \begin_layout Standard
3126 もし、あなたがこれを自身のためだけに行っているのであれば、
3127 \end_layout
3128
3129 \begin_layout Itemize
3130 \begin_inset Flex Code
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 xx.mo
3135 \end_layout
3136
3137 \end_inset
3138
3139 を生成してください。これは
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 msgfmt -o xx.mo < xx.po
3145 \end_layout
3146
3147 \end_inset
3148
3149 でできます。
3150 \end_layout
3151
3152 \begin_layout Itemize
3153 この
3154 \begin_inset Flex Code
3155 status collapsed
3156
3157 \begin_layout Plain Layout
3158 mo
3159 \end_layout
3160
3161 \end_inset
3162
3163 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3164 \begin_inset Flex Code
3165 status collapsed
3166
3167 \begin_layout Plain Layout
3168 lyx.mo
3169 \end_layout
3170
3171 \end_inset
3172
3173 という名称にしてください(例:
3174 \begin_inset Flex Code
3175 status collapsed
3176
3177 \begin_layout Plain Layout
3178 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3179 \end_layout
3180
3181 \end_inset
3182
3183 )。
3184 \end_layout
3185
3186 \begin_layout Standard
3187 しかしながら前述のように、この新しい
3188 \begin_inset Flex Code
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192 po
3193 \end_layout
3194
3195 \end_inset
3196
3197 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3198 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3199 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3200 グリストに電子メールを送ってください。
3201 \end_layout
3202
3203 \begin_layout Subsubsection
3204 多義訳語メッセージ
3205 \end_layout
3206
3207 \begin_layout Standard
3208 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 To
3214 \end_layout
3215
3216 \end_inset
3217
3218 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
3219 \begin_inset Flex Code
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 gettext
3224 \end_layout
3225
3226 \end_inset
3227
3228 は、このような多義訳語を
3229 \begin_inset Flex Code
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 To
3234 \end_layout
3235
3236 \end_inset
3237
3238 の代わりに、
3239 \begin_inset Flex Code
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 To[[as in 'From format x to format y']]
3244 \end_layout
3245
3246 \end_inset
3247
3248
3249 \begin_inset Flex Code
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 To[[as in 'From page x to page y']]
3254 \end_layout
3255
3256 \end_inset
3257
3258 としなくてはなりません。これによって、これら2つの
3259 \begin_inset Flex Code
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 To
3264 \end_layout
3265
3266 \end_inset
3267
3268 は、
3269 \begin_inset Flex Code
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 gettext
3274 \end_layout
3275
3276 \end_inset
3277
3278 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3279 \end_layout
3280
3281 \begin_layout Standard
3282 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3283 の翻訳機構
3284 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3285 \end_layout
3286
3287 \begin_layout Subsection
3288 説明書を翻訳する
3289 \end_layout
3290
3291 \begin_layout Standard
3292
3293 \begin_inset Flex MenuItem
3294 status collapsed
3295
3296 \begin_layout Plain Layout
3297 Help
3298 \end_layout
3299
3300 \end_inset
3301
3302 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3303 \begin_inset Foot
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3308 \end_layout
3309
3310 \end_inset
3311
3312 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3313 はこれを自動的に使用します。\SpecialChar LyX
3314 は、翻訳版を
3315 \begin_inset Flex Code
3316 status collapsed
3317
3318 \begin_layout Plain Layout
3319 L
3320 \begin_inset ERT
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324
3325 {}
3326 \end_layout
3327
3328 \end_inset
3329
3330 yXDir/doc/xx/DocName.lyx
3331 \end_layout
3332
3333 \end_inset
3334
3335
3336 \begin_inset Flex Code
3337 status collapsed
3338
3339 \begin_layout Plain Layout
3340 xx
3341 \end_layout
3342
3343 \end_inset
3344
3345 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350 DocName
3351 \end_layout
3352
3353 \end_inset
3354
3355 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3356 うべきです。
3357 \end_layout
3358
3359 \begin_layout Itemize
3360 説明書翻訳ウェブページ
3361 \begin_inset CommandInset href
3362 LatexCommand href
3363 name "http://www.lyx.org/Translation"
3364 target "http://www.lyx.org/Translation"
3365
3366 \end_inset
3367
3368 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3369 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3370 \end_layout
3371
3372 \begin_layout Standard
3373 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3374 \end_layout
3375
3376 \begin_layout Itemize
3377 文書化チームに所属してください!そのための情報が
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 Intro.lyx
3383 \end_layout
3384
3385 \end_inset
3386
3387
3388 \begin_inset Flex MenuItem
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 ヘルプ\SpecialChar menuseparator
3393 はじめの一歩
3394 \end_layout
3395
3396 \end_inset
3397
3398 )にあります。また、この
3399 \begin_inset Flex Code
3400 status collapsed
3401
3402 \begin_layout Plain Layout
3403 Intro.lyx
3404 \end_layout
3405
3406 \end_inset
3407
3408 が最初に訳すべき文書です。
3409 \end_layout
3410
3411 \begin_layout Itemize
3412 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3413 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3414 \emph on
3415 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3416 \emph default
3417
3418 \end_layout
3419
3420 \begin_layout Itemize
3421 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 UserDir/doc/xx/
3427 \end_layout
3428
3429 \end_inset
3430
3431 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3432 \end_layout
3433
3434 \begin_layout Itemize
3435 (\SpecialChar LyX
3436 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3437 \begin_inset CommandInset href
3438 LatexCommand href
3439 name "http://www.lyx.org/trac/timeline"
3440 target "http://www.lyx.org/trac/timeline"
3441
3442 \end_inset
3443
3444 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3445 \end_layout
3446
3447 \begin_layout Standard
3448 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3449 \end_layout
3450
3451 \begin_layout Standard
3452 \begin_inset Branch OutDated
3453 status collapsed
3454
3455 \begin_layout Section
3456 International Keyboard Support
3457 \end_layout
3458
3459 \begin_layout Standard
3460
3461 \emph on
3462 [Editor's Note: The following section is by
3463 \emph default
3464  
3465 \shape smallcaps
3466 \emph on
3467 Ivan Schreter
3468 \shape default
3469 .
3470  It needs to be fixed to conform to the new Documentation Style sheet and
3471  to make use of the new v1.0 features.
3472  The whole thing also needs to be merged with the section following it.-jw
3473  It may also be badly out of date.-rh (2008)]
3474 \end_layout
3475
3476 \begin_layout Subsection
3477 Defining Own Keymaps: Keymap File Format
3478 \end_layout
3479
3480 \begin_layout Standard
3481 Let's look at a keyboard definition file a little closer.
3482  It is a plain text file defining
3483 \end_layout
3484
3485 \begin_layout Itemize
3486 key-to-key or key-to-string translations
3487 \end_layout
3488
3489 \begin_layout Itemize
3490 dead keys
3491 \end_layout
3492
3493 \begin_layout Itemize
3494 dead keys exceptions
3495 \end_layout
3496
3497 \begin_layout Standard
3498 To define key-to-key or key-to-string translation, use this command:
3499 \end_layout
3500
3501 \begin_layout Quotation
3502 \begin_inset Flex Code
3503 status collapsed
3504
3505 \begin_layout Plain Layout
3506
3507 \backslash
3508 kmap
3509 \end_layout
3510
3511 \end_inset
3512
3513  
3514 \begin_inset Flex Code
3515 status collapsed
3516
3517 \begin_layout Plain Layout
3518 key
3519 \end_layout
3520
3521 \end_inset
3522
3523  outstring 
3524 \end_layout
3525
3526 \begin_layout Standard
3527 where 
3528 \begin_inset Flex Code
3529 status collapsed
3530
3531 \begin_layout Plain Layout
3532 key
3533 \end_layout
3534
3535 \end_inset
3536
3537  is the key to be translated and 
3538 \begin_inset Flex Code
3539 status collapsed
3540
3541 \begin_layout Plain Layout
3542 outstring
3543 \end_layout
3544
3545 \end_inset
3546
3547  is the string to be inserted into the document.
3548  To define dead keys, use:
3549 \end_layout
3550
3551 \begin_layout Quotation
3552 \begin_inset Flex Code
3553 status collapsed
3554
3555 \begin_layout Plain Layout
3556
3557 \backslash
3558 kmod
3559 \end_layout
3560
3561 \end_inset
3562
3563  
3564 \begin_inset Flex Code
3565 status collapsed
3566
3567 \begin_layout Plain Layout
3568 key
3569 \end_layout
3570
3571 \end_inset
3572
3573  deadkey
3574 \end_layout
3575
3576 \begin_layout Standard
3577 where 
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582 key
3583 \end_layout
3584
3585 \end_inset
3586
3587  is a keyboard key and 
3588 \begin_inset Flex Code
3589 status collapsed
3590
3591 \begin_layout Plain Layout
3592 deadkey
3593 \end_layout
3594
3595 \end_inset
3596
3597  is dead key name.
3598  The following dead keys are supported (shortcut name is in parentheses):
3599 \end_layout
3600
3601 \begin_layout Quotation
3602
3603 \emph on
3604 Name
3605 \begin_inset space \hfill{}
3606 \end_inset
3607
3608 Example
3609 \end_layout
3610
3611 \begin_layout Quotation
3612 acute (acu)
3613 \begin_inset space \hfill{}
3614 \end_inset
3615
3616
3617 \lang english
3618 áéíóú
3619 \end_layout
3620
3621 \begin_layout Quotation
3622 grave (gra)
3623 \begin_inset space \hfill{}
3624 \end_inset
3625
3626
3627 \lang english
3628 àèìòù
3629 \end_layout
3630
3631 \begin_layout Quotation
3632 macron (mac)
3633 \begin_inset space \hfill{}
3634 \end_inset
3635
3636
3637 \lang english
3638  ō
3639 \end_layout
3640
3641 \begin_layout Quotation
3642 tilde (til)
3643 \begin_inset space \hfill{}
3644 \end_inset
3645
3646
3647 \lang english
3648 ñÑ
3649 \end_layout
3650
3651 \begin_layout Quotation
3652 underbar (underb)
3653 \begin_inset space \hfill{}
3654 \end_inset
3655
3656
3657 \begin_inset ERT
3658 status open
3659
3660 \begin_layout Plain Layout
3661
3662
3663 \backslash
3664 b o
3665 \end_layout
3666
3667 \end_inset
3668
3669
3670 \end_layout
3671
3672 \begin_layout Quotation
3673 cedilla (ced)
3674 \begin_inset space \hfill{}
3675 \end_inset
3676
3677
3678 \lang english
3679 çÇ
3680 \end_layout
3681
3682 \begin_layout Quotation
3683 underdot (underd)
3684 \begin_inset space \hfill{}
3685 \end_inset
3686
3687
3688 \begin_inset ERT
3689 status open
3690
3691 \begin_layout Plain Layout
3692
3693
3694 \backslash
3695 d o
3696 \end_layout
3697
3698 \end_inset
3699
3700
3701 \end_layout
3702
3703 \begin_layout Quotation
3704 circumflex (circu)
3705 \begin_inset space \hfill{}
3706 \end_inset
3707
3708
3709 \lang english
3710 âêîôû
3711 \end_layout
3712
3713 \begin_layout Quotation
3714 circle (circl)
3715 \begin_inset space \hfill{}
3716 \end_inset
3717
3718
3719 \lang english
3720 ÅůŮ
3721 \end_layout
3722
3723 \begin_layout Quotation
3724 tie (tie)
3725 \begin_inset space \hfill{}
3726 \end_inset
3727
3728
3729 \begin_inset ERT
3730 status open
3731
3732 \begin_layout Plain Layout
3733
3734
3735 \backslash
3736 t o
3737 \end_layout
3738
3739 \end_inset
3740
3741
3742 \end_layout
3743
3744 \begin_layout Quotation
3745 breve (bre)
3746 \begin_inset space \hfill{}
3747 \end_inset
3748
3749
3750 \lang english
3751 ă
3752 \lang japanese
3753
3754 \begin_inset ERT
3755 status open
3756
3757 \begin_layout Plain Layout
3758
3759
3760 \backslash
3761 u o
3762 \end_layout
3763
3764 \end_inset
3765
3766
3767 \end_layout
3768
3769 \begin_layout Quotation
3770 caron (car)
3771 \begin_inset space \hfill{}
3772 \end_inset
3773
3774
3775 \lang english
3776 čšž
3777 \end_layout
3778
3779 \begin_layout Quotation
3780 hungarian umlaut (hug)
3781 \begin_inset space \hfill{}
3782 \end_inset
3783
3784
3785 \lang english
3786 őű
3787 \end_layout
3788
3789 \begin_layout Quotation
3790 umlaut (uml)
3791 \begin_inset space \hfill{}
3792 \end_inset
3793
3794
3795 \lang english
3796 äöü
3797 \end_layout
3798
3799 \begin_layout Quotation
3800 dot (dot)
3801 \begin_inset space \hfill{}
3802 \end_inset
3803
3804
3805 \lang english
3806 ż
3807 \lang japanese
3808
3809 \begin_inset ERT
3810 status open
3811
3812 \begin_layout Plain Layout
3813
3814
3815 \backslash
3816 .s
3817 \end_layout
3818
3819 \end_inset
3820
3821
3822 \end_layout
3823
3824 \begin_layout Standard
3825 Since in many international keyboards there are exceptions to what some
3826  dead keys should do, you can define them using
3827 \end_layout
3828
3829 \begin_layout Quotation
3830 \begin_inset Flex Code
3831 status collapsed
3832
3833 \begin_layout Plain Layout
3834
3835 \backslash
3836 kxmod
3837 \end_layout
3838
3839 \end_inset
3840
3841  deadkey key outstring
3842 \end_layout
3843
3844 \begin_layout Standard
3845 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3846 , so you put in
3847 \end_layout
3848
3849 \begin_layout Quotation
3850 \begin_inset Flex Code
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854
3855 \backslash
3856 kxmod
3857 \end_layout
3858
3859 \end_inset
3860
3861  caron o "
3862 \backslash
3863 ^o"
3864 \end_layout
3865
3866 \begin_layout Standard
3867 to make it work correctly.
3868  Also, you have to define as exceptions dead keys over i and j, to remove
3869  the dot from them before inserting an accent mark.
3870  I will change this when the time comes, but so far I haven't had time.
3871 \end_layout
3872
3873 \begin_layout Standard
3874 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3875  double backslash.
3876  Also, quotes and 
3877 \begin_inset Flex Code
3878 status collapsed
3879
3880 \begin_layout Plain Layout
3881 #
3882 \end_layout
3883
3884 \end_inset
3885
3886  have different meaning.
3887  
3888 \begin_inset Flex Code
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 #
3893 \end_layout
3894
3895 \end_inset
3896
3897  marks comments, quotes start and end \SpecialChar LaTeX
3898 -style commands.
3899  To enter quote, you'll need to use 
3900 \begin_inset Flex Code
3901 status collapsed
3902
3903 \begin_layout Plain Layout
3904
3905 \backslash
3906 "
3907 \end_layout
3908
3909 \end_inset
3910
3911 , to enter 
3912 \begin_inset Flex Code
3913 status collapsed
3914
3915 \begin_layout Plain Layout
3916 #
3917 \end_layout
3918
3919 \end_inset
3920
3921 , use 
3922 \begin_inset Flex Code
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926
3927 \backslash
3928 #
3929 \end_layout
3930
3931 \end_inset
3932
3933 .
3934 \end_layout
3935
3936 \begin_layout Standard
3937 If you make a keyboard description file that works for your language, please
3938  mail it to me, so I can include it in the next keymap distribution.
3939 \end_layout
3940
3941 \begin_layout Standard
3942 More keywords will be supported in keymap configuration file in future,
3943  like
3944 \end_layout
3945
3946 \begin_layout Itemize
3947 \begin_inset Flex Code
3948 status collapsed
3949
3950 \begin_layout Plain Layout
3951
3952 \backslash
3953 kinclude filename
3954 \end_layout
3955
3956 \end_inset
3957
3958
3959 \emph on
3960
3961 \begin_inset space \hfill{}
3962 \end_inset
3963
3964
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 include
3970 \end_layout
3971
3972 \end_inset
3973
3974  another file
3975 \end_layout
3976
3977 \begin_layout Itemize
3978 \begin_inset Flex Code
3979 status collapsed
3980
3981 \begin_layout Plain Layout
3982
3983 \backslash
3984 kprog program
3985 \end_layout
3986
3987 \end_inset
3988
3989
3990 \emph on
3991
3992 \begin_inset space \hfill{}
3993 \end_inset
3994
3995
3996 \begin_inset Flex Code
3997 status collapsed
3998
3999 \begin_layout Plain Layout
4000 define
4001 \end_layout
4002
4003 \end_inset
4004
4005  an external keymap translation program 
4006 \end_layout
4007
4008 \begin_layout Standard
4009 Also, it should look into 
4010 \begin_inset Flex Code
4011 status collapsed
4012
4013 \begin_layout Plain Layout
4014 lyxrc
4015 \end_layout
4016
4017 \end_inset
4018
4019  file for defaults, too (for example, a 
4020 \begin_inset Flex Code
4021 status collapsed
4022
4023 \begin_layout Plain Layout
4024
4025 \backslash
4026 kinclude
4027 \end_layout
4028
4029 \end_inset
4030
4031  option to include default keyboard).
4032 \end_layout
4033
4034 \end_inset
4035
4036
4037 \end_layout
4038
4039 \begin_layout Section
4040 国際キー配列
4041 \begin_inset CommandInset label
4042 LatexCommand label
4043 name "sec:国際キー配列"
4044
4045 \end_inset
4046
4047
4048 \end_layout
4049
4050 \begin_layout Standard
4051 \begin_inset Note Note
4052 status open
4053
4054 \begin_layout Plain Layout
4055 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
4056 \end_layout
4057
4058 \begin_layout Plain Layout
4059 (RH)
4060 \end_layout
4061
4062 \end_inset
4063
4064
4065 \end_layout
4066
4067 \begin_layout Standard
4068 以下の2節では、
4069 \begin_inset Flex Code
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073 .kmap
4074 \end_layout
4075
4076 \end_inset
4077
4078 および
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 .cdef
4084 \end_layout
4085
4086 \end_inset
4087
4088 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
4089 \end_layout
4090
4091 \begin_layout Subsection
4092 .kmapファイル
4093 \end_layout
4094
4095 \begin_layout Standard
4096 \begin_inset Flex Code
4097 status collapsed
4098
4099 \begin_layout Plain Layout
4100 .kmap
4101 \end_layout
4102
4103 \end_inset
4104
4105 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110 .kmap
4111 \end_layout
4112
4113 \end_inset
4114
4115 ファイルは、以下の各項で説明するように、
4116 \begin_inset Flex Code
4117 status collapsed
4118
4119 \begin_layout Plain Layout
4120 kmap
4121 \end_layout
4122
4123 \end_inset
4124
4125
4126 \begin_inset Flex Code
4127 status collapsed
4128
4129 \begin_layout Plain Layout
4130 kmod
4131 \end_layout
4132
4133 \end_inset
4134
4135
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140 ksmod
4141 \end_layout
4142
4143 \end_inset
4144
4145
4146 \begin_inset Flex Code
4147 status collapsed
4148
4149 \begin_layout Plain Layout
4150 kcomb
4151 \end_layout
4152
4153 \end_inset
4154
4155 のキーワードを定義します。
4156 \end_layout
4157
4158 \begin_layout Labeling
4159 \labelwidthstring 00.00.0000
4160 \begin_inset Flex Code
4161 status collapsed
4162
4163 \begin_layout Plain Layout
4164 kmap
4165 \end_layout
4166
4167 \end_inset
4168
4169  文字を文字列に割り当てる
4170 \end_layout
4171
4172 \begin_layout LyX-Code
4173
4174 \backslash
4175 kmap 
4176 \family roman
4177 \emph on
4178 文字
4179 \family default
4180 \emph default
4181  
4182 \family roman
4183 \emph on
4184 文字列
4185 \end_layout
4186
4187 \begin_layout Standard
4188 これは、
4189 \emph on
4190 文字
4191 \emph default
4192
4193 \emph on
4194 文字列
4195 \emph default
4196 に割り当てます。
4197 \emph on
4198 文字列
4199 \emph default
4200 中では、二重引用符(")とバックスラッシュ(
4201 \backslash
4202 )は、前にバックスラッシュ(
4203 \backslash
4204 )を付けてエスケープしなくてはならないことに注意してください。
4205 \end_layout
4206
4207 \begin_layout Standard
4208 \begin_inset Flex MenuItem
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212 &
4213 \end_layout
4214
4215 \end_inset
4216
4217 を打鍵すると
4218 \begin_inset Flex MenuItem
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222 /
4223 \end_layout
4224
4225 \end_inset
4226
4227 記号が出力される
4228 \begin_inset Flex MenuItem
4229 status collapsed
4230
4231 \begin_layout Plain Layout
4232 kmap
4233 \end_layout
4234
4235 \end_inset
4236
4237 ステートメントを、一例としてあげると、
4238 \end_layout
4239
4240 \begin_layout LyX-Code
4241
4242 \backslash
4243 kmap & /
4244 \end_layout
4245
4246 \begin_layout Standard
4247 のようになります。
4248 \end_layout
4249
4250 \begin_layout Labeling
4251 \labelwidthstring 00.00.0000
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 kmod
4257 \end_layout
4258
4259 \end_inset
4260
4261  アクセント文字を指定する
4262 \end_layout
4263
4264 \begin_layout LyX-Code
4265
4266 \backslash
4267 kmod 
4268 \family roman
4269 \emph on
4270 文字 アクセント 許可文字
4271 \end_layout
4272
4273 \begin_layout Standard
4274 これは
4275 \emph on
4276 文字
4277 \emph default
4278
4279 \emph on
4280 許可文字
4281 \emph default
4282 のアクセントとするものです。これはデッドキー
4283 \begin_inset Foot
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287
4288 \emph on
4289 デッドキー
4290 \emph default
4291 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4292 \emph on
4293 ä
4294 \emph default
4295 のようなウムラウトのついた文字は、このようにして出すことができます。
4296 \end_layout
4297
4298 \end_inset
4299
4300 機構です。
4301 \end_layout
4302
4303 \begin_layout Standard
4304
4305 \emph on
4306 文字
4307 \emph default
4308 を打鍵してから
4309 \emph on
4310 許可文字
4311 \emph default
4312 にないキーを打鍵すると、
4313 \emph on
4314 文字
4315 \emph default
4316 の後に許可文字ではないその文字が出力として表示されます。
4317 \begin_inset Flex MenuItem
4318 status collapsed
4319
4320 \begin_layout Plain Layout
4321 Backspace
4322 \end_layout
4323
4324 \end_inset
4325
4326 はデッドキーを取り消しますので、
4327 \emph on
4328 文字
4329 \emph default
4330
4331 \begin_inset Flex MenuItem
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 Backspace
4336 \end_layout
4337
4338 \end_inset
4339
4340 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4341 \end_layout
4342
4343 \begin_layout Standard
4344 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4345 \end_layout
4346
4347 \begin_layout LyX-Code
4348
4349 \backslash
4350 kmod ' acute aeiouAEIOU
4351 \end_layout
4352
4353 \begin_layout Labeling
4354 \labelwidthstring 00.00.0000
4355 \begin_inset Flex Code
4356 status collapsed
4357
4358 \begin_layout Plain Layout
4359 ksmod
4360 \end_layout
4361
4362 \end_inset
4363
4364  アクセント文字に例外を指定する
4365 \end_layout
4366
4367 \begin_layout LyX-Code
4368
4369 \backslash
4370 kxmod  
4371 \family roman
4372 \emph on
4373 アクセント 文字 結果
4374 \end_layout
4375
4376 \begin_layout Standard
4377 これは
4378 \emph on
4379 文字
4380 \emph default
4381 上の
4382 \emph on
4383 アクセント
4384 \emph default
4385 について例外を指定するものです。ここで
4386 \emph on
4387 アクセント
4388 \emph default
4389 には、前出の
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394
4395 \backslash
4396 kmod
4397 \end_layout
4398
4399 \end_inset
4400
4401 宣言で打鍵キーを既に割り当てられてなくてはならず、
4402 \emph on
4403 文字
4404 \emph default
4405
4406 \emph on
4407 アクセント
4408 \emph default
4409
4410 \emph on
4411 許可文字
4412 \emph default
4413 の集合に属していてはなりません。こうして
4414 \emph on
4415 アクセント
4416 \emph default
4417
4418 \emph on
4419 文字
4420 \emph default
4421 の順に入力すると、
4422 \emph on
4423 結果
4424 \emph default
4425 が出力されるようになります。
4426 \begin_inset Flex Code
4427 status collapsed
4428
4429 \begin_layout Plain Layout
4430 .kmap
4431 \end_layout
4432
4433 \end_inset
4434
4435 ファイルにこの宣言がない場合には、
4436 \emph on
4437 アクセント
4438 \emph default
4439
4440 \emph on
4441 文字
4442 \emph default
4443 と入力すると、
4444 \emph on
4445 アクセントキー
4446 \emph default
4447
4448 \emph on
4449 文字
4450 \emph default
4451
4452 \emph on
4453 アクセントキー
4454 \emph default
4455
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460
4461 \backslash
4462 kmod
4463 \end_layout
4464
4465 \end_inset
4466
4467 宣言の最初の変数)と出力されます。
4468 \end_layout
4469
4470 \begin_layout Standard
4471 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4472 \end_layout
4473
4474 \begin_layout LyX-Code
4475
4476 \backslash
4477 kxmod acute i "
4478 \backslash
4479
4480 \backslash
4481 '{
4482 \backslash
4483
4484 \backslash
4485 i}"
4486 \end_layout
4487
4488 \begin_layout Labeling
4489 \labelwidthstring 00.00.0000
4490 \begin_inset Flex Code
4491 status collapsed
4492
4493 \begin_layout Plain Layout
4494 kcomb
4495 \end_layout
4496
4497 \end_inset
4498
4499  2つのアクセント文字を結合する
4500 \end_layout
4501
4502 \begin_layout LyX-Code
4503
4504 \backslash
4505 kcomb 
4506 \family roman
4507 \emph on
4508 アクセント1 アクセント2 許可文字
4509 \end_layout
4510
4511 \begin_layout Standard
4512 これはなかなか難解になってきます。これは
4513 \emph on
4514 アクセント1
4515 \emph default
4516
4517 \emph on
4518 アクセント2
4519 \emph default
4520 を(この順番で)結びつけて、
4521 \emph on
4522 許可文字
4523 \emph default
4524 に効果を及ぼすようにします。
4525 \emph on
4526 アクセント1
4527 \emph default
4528
4529 \emph on
4530 アクセント2
4531 \emph default
4532 の打鍵キーは、ファイル内のこのコマンド
4533 \emph on
4534 よりも前に
4535 \emph default
4536
4537 \begin_inset Flex Code
4538 status collapsed
4539
4540 \begin_layout Plain Layout
4541
4542 \backslash
4543 kmod
4544 \end_layout
4545
4546 \end_inset
4547
4548 コマンドで設定されていなくてはなりません。
4549 \end_layout
4550
4551 \begin_layout Standard
4552 \begin_inset Flex Code
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556 greek.kmap
4557 \end_layout
4558
4559 \end_inset
4560
4561 ファイル上にある例をとってみましょう。
4562 \end_layout
4563
4564 \begin_layout LyX-Code
4565
4566 \backslash
4567 kmod ; acute aeioyvhAEIOYVH 
4568 \backslash
4569 kmod : umlaut iyIY 
4570 \backslash
4571 kcomb acute umlaut iyIY
4572 \end_layout
4573
4574 \begin_layout Standard
4575 これは
4576 \begin_inset Flex MenuItem
4577 status collapsed
4578
4579 \begin_layout Plain Layout
4580 ;:i
4581 \end_layout
4582
4583 \end_inset
4584
4585 を押すと
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \backslash
4592 '{
4593 \backslash
4594 "{i}}
4595 \end_layout
4596
4597 \end_inset
4598
4599 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4600 \begin_inset Flex MenuItem
4601 status collapsed
4602
4603 \begin_layout Plain Layout
4604 ;: Backspace i
4605 \end_layout
4606
4607 \end_inset
4608
4609 と押した場合には、
4610 \begin_inset Flex Code
4611 status collapsed
4612
4613 \begin_layout Plain Layout
4614
4615 \backslash
4616 '{i}
4617 \end_layout
4618
4619 \end_inset
4620
4621 となります。
4622 \end_layout
4623
4624 \begin_layout Subsection
4625 .cdefファイル
4626 \end_layout
4627
4628 \begin_layout Standard
4629 \begin_inset Flex Code
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633 .kmap
4634 \end_layout
4635
4636 \end_inset
4637
4638 による割り当てが行われた後、
4639 \begin_inset Flex Code
4640 status collapsed
4641
4642 \begin_layout Plain Layout
4643 .cdef
4644 \end_layout
4645
4646 \end_inset
4647
4648 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4649 頒布版には、現在のところ、少なくとも
4650 \begin_inset Flex Code
4651 status collapsed
4652
4653 \begin_layout Plain Layout
4654 iso8859-1.cdef
4655 \end_layout
4656
4657 \end_inset
4658
4659 ファイルと
4660 \begin_inset Flex Code
4661 status collapsed
4662
4663 \begin_layout Plain Layout
4664 iso8859-2.cdef
4665 \end_layout
4666
4667 \end_inset
4668
4669 ファイルが含まれています。
4670 \end_layout
4671
4672 \begin_layout Standard
4673 一般的に
4674 \begin_inset Flex Code
4675 status collapsed
4676
4677 \begin_layout Plain Layout
4678 .cdef
4679 \end_layout
4680
4681 \end_inset
4682
4683 ファイルは、
4684 \end_layout
4685
4686 \begin_layout LyX-Code
4687
4688 \family roman
4689 \emph on
4690 セット中の文字番号
4691 \family default
4692 \emph default
4693  
4694 \family roman
4695 \emph on
4696  文字列
4697 \end_layout
4698
4699 \begin_layout Standard
4700 という形の宣言の羅列です。たとえば、
4701 \begin_inset Flex MenuItem
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \backslash
4707 '{e}
4708 \end_layout
4709
4710 \end_inset
4711
4712 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4713 \end_layout
4714
4715 \begin_layout LyX-Code
4716 233 "
4717 \backslash
4718
4719 \backslash
4720 '{e}"
4721 \end_layout
4722
4723 \begin_layout Standard
4724 ここで、
4725 \emph on
4726 文字列
4727 \emph default
4728 中の
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733
4734 \backslash
4735
4736 \end_layout
4737
4738 \end_inset
4739
4740
4741 \begin_inset Flex Code
4742 status collapsed
4743
4744 \begin_layout Plain Layout
4745 "
4746 \end_layout
4747
4748 \end_inset
4749
4750 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4751 \begin_inset Flex Code
4752 status collapsed
4753
4754 \begin_layout Plain Layout
4755 iso-8859-7.cdef
4756 \end_layout
4757
4758 \end_inset
4759
4760 ファイルには、
4761 \end_layout
4762
4763 \begin_layout LyX-Code
4764 192 "
4765 \backslash
4766
4767 \backslash
4768 '{
4769 \backslash
4770
4771 \backslash
4772
4773 \backslash
4774 "{i}}"
4775 \begin_inset Newline newline
4776 \end_inset
4777
4778 192 "
4779 \backslash
4780
4781 \backslash
4782
4783 \backslash
4784 "{
4785 \backslash
4786
4787 \backslash
4788 '{i}}"
4789 \end_layout
4790
4791 \begin_layout Standard
4792 という例があります。\SpecialChar LyX
4793 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4794 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4795 \end_layout
4796
4797 \begin_layout Subsection
4798 デッドキー
4799 \end_layout
4800
4801 \begin_layout Standard
4802 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4803 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4804 \end_layout
4805
4806 \begin_layout Standard
4807 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4808 \begin_inset Flex Code
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812 lyxrc
4813 \end_layout
4814
4815 \end_inset
4816
4817 ファイル中で、
4818 \begin_inset Flex MenuItem
4819 status collapsed
4820
4821 \begin_layout Plain Layout
4822 ^
4823 \end_layout
4824
4825 \end_inset
4826
4827 キー(すなわち
4828 \begin_inset Flex MenuItem
4829 status collapsed
4830
4831 \begin_layout Plain Layout
4832 Shift-6
4833 \end_layout
4834
4835 \end_inset
4836
4837 キー)を、\SpecialChar LyX
4838 コマンドの
4839 \begin_inset Flex Code
4840 status collapsed
4841
4842 \begin_layout Plain Layout
4843 accent-circumflex
4844 \end_layout
4845
4846 \end_inset
4847
4848 に結びつけることができます。すると
4849 \begin_inset Flex MenuItem
4850 status collapsed
4851
4852 \begin_layout Plain Layout
4853 ^
4854 \end_layout
4855
4856 \end_inset
4857
4858 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4859 \begin_inset Flex MenuItem
4860 status collapsed
4861
4862 \begin_layout Plain Layout
4863 ^e
4864 \end_layout
4865
4866 \end_inset
4867
4868 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4869 \begin_inset Flex MenuItem
4870 status collapsed
4871
4872 \begin_layout Plain Layout
4873 ^t
4874 \end_layout
4875
4876 \end_inset
4877
4878 」と打鍵したならば、「
4879 \begin_inset Flex MenuItem
4880 status collapsed
4881
4882 \begin_layout Plain Layout
4883 t
4884 \end_layout
4885
4886 \end_inset
4887
4888 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4889 はビープを鳴らして文句を付けます。デッドキーの後に
4890 \begin_inset Flex MenuItem
4891 status collapsed
4892
4893 \begin_layout Plain Layout
4894 スペース
4895 \end_layout
4896
4897 \end_inset
4898
4899 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4900 あります。たとえば、
4901 \begin_inset Flex MenuItem
4902 status collapsed
4903
4904 \begin_layout Plain Layout
4905 ,キー
4906 \end_layout
4907
4908 \end_inset
4909
4910 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4911 \end_layout
4912
4913 \begin_layout Standard
4914 デッドキーを割り当てるのによく用いられる方法は、
4915 \begin_inset Flex MenuItem
4916 status collapsed
4917
4918 \begin_layout Plain Layout
4919 Meta-
4920 \end_layout
4921
4922 \end_inset
4923
4924
4925 \begin_inset Flex MenuItem
4926 status collapsed
4927
4928 \begin_layout Plain Layout
4929 Ctrl-
4930 \end_layout
4931
4932 \end_inset
4933
4934
4935 \begin_inset Flex MenuItem
4936 status collapsed
4937
4938 \begin_layout Plain Layout
4939 Shift-
4940 \end_layout
4941
4942 \end_inset
4943
4944 キーを、「
4945 \begin_inset Flex MenuItem
4946 status collapsed
4947
4948 \begin_layout Plain Layout
4949 ~
4950 \end_layout
4951
4952 \end_inset
4953
4954 」・「
4955 \begin_inset Flex MenuItem
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959 ,
4960 \end_layout
4961
4962 \end_inset
4963
4964 」・「
4965 \begin_inset Flex MenuItem
4966 status collapsed
4967
4968 \begin_layout Plain Layout
4969 ^
4970 \end_layout
4971
4972 \end_inset
4973
4974 」のようなアクセントと一緒に用いる方法です。また、
4975 \begin_inset Flex Code
4976 status collapsed
4977
4978 \begin_layout Plain Layout
4979 xmodmap
4980 \end_layout
4981
4982 \end_inset
4983
4984
4985 \begin_inset Flex Code
4986 status collapsed
4987
4988 \begin_layout Plain Layout
4989 xkeycaps
4990 \end_layout
4991
4992 \end_inset
4993
4994 を使って、特別な
4995 \begin_inset Flex Code
4996 status collapsed
4997
4998 \begin_layout Plain Layout
4999 Mode_Switch
5000 \end_layout
5001
5002 \end_inset
5003
5004 キーを設定する方法もあります。
5005 \begin_inset Flex Code
5006 status collapsed
5007
5008 \begin_layout Plain Layout
5009 Mode_Switch
5010 \end_layout
5011
5012 \end_inset
5013
5014 キーは、ちょうど
5015 \begin_inset Flex MenuItem
5016 status collapsed
5017
5018 \begin_layout Plain Layout
5019 Shift
5020 \end_layout
5021
5022 \end_inset
5023
5024 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
5025 \begin_inset Flex Code
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029 usldead_cedilla
5030 \end_layout
5031
5032 \end_inset
5033
5034 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
5035 コマンドに割り当てることもできます
5036 \begin_inset Foot
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040
5041 \noun on
5042 John Weiss
5043 \noun default
5044 からの註:これはまさに私が、自分の
5045 \begin_inset Flex Code
5046 status collapsed
5047
5048 \begin_layout Plain Layout
5049 ~/.lyx/lyxrc
5050 \end_layout
5051
5052 \end_inset
5053
5054
5055 \begin_inset Flex Code
5056 status collapsed
5057
5058 \begin_layout Plain Layout
5059 ~/.xmodmap
5060 \end_layout
5061
5062 \end_inset
5063
5064 で行っていることです。私は、
5065 \begin_inset Flex MenuItem
5066 status collapsed
5067
5068 \begin_layout Plain Layout
5069 Scroll
5070 \begin_inset space ~
5071 \end_inset
5072
5073 Lock
5074 \end_layout
5075
5076 \end_inset
5077
5078 キーを
5079 \begin_inset Flex Code
5080 status collapsed
5081
5082 \begin_layout Plain Layout
5083 Mode_Shift
5084 \end_layout
5085
5086 \end_inset
5087
5088 に仕立てて、多数の
5089 \begin_inset Flex Code
5090 status collapsed
5091
5092 \begin_layout Plain Layout
5093 usldead_*
5094 \end_layout
5095
5096 \end_inset
5097
5098 シンボリックキーを
5099 \begin_inset Flex MenuItem
5100 status collapsed
5101
5102 \begin_layout Plain Layout
5103 Scroll
5104 \begin_inset space ~
5105 \end_inset
5106
5107 Lock-^
5108 \end_layout
5109
5110 \end_inset
5111
5112
5113 \begin_inset Flex MenuItem
5114 status collapsed
5115
5116 \begin_layout Plain Layout
5117 Scroll
5118 \begin_inset space ~
5119 \end_inset
5120
5121 Lock-~
5122 \end_layout
5123
5124 \end_inset
5125
5126 などに割り当てています。私はこの方法でアクセント文字を入力しています。
5127 \end_layout
5128
5129 \end_inset
5130
5131 。この
5132 \begin_inset Flex Code
5133 status collapsed
5134
5135 \begin_layout Plain Layout
5136 Mode_Switch
5137 \end_layout
5138
5139 \end_inset
5140
5141 キーには、
5142 \begin_inset Flex MenuItem
5143 status collapsed
5144
5145 \begin_layout Plain Layout
5146 Ctrl-
5147 \end_layout
5148
5149 \end_inset
5150
5151 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5152 コマンドについては、
5153 \emph on
5154 \SpecialChar LyX
5155 関数説明書
5156 \emph default
5157
5158 \begin_inset Flex Code
5159 status collapsed
5160
5161 \begin_layout Plain Layout
5162 LFUN_ACCENT_*
5163 \end_layout
5164
5165 \end_inset
5166
5167 の項をご覧ください。ここには完備した一覧があります。
5168 \end_layout
5169
5170 \begin_layout Subsection
5171 自分の言語設定を保存する
5172 \end_layout
5173
5174 \begin_layout Standard
5175 \begin_inset Flex MenuItem
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179 ツール\SpecialChar menuseparator
5180 設定
5181 \end_layout
5182
5183 \end_inset
5184
5185 ダイアログを使えば、\SpecialChar LyX
5186 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5187 \end_layout
5188
5189 \begin_layout Chapter
5190 文書クラス・レイアウト・ひな型の新規導入
5191 \begin_inset CommandInset label
5192 LatexCommand label
5193 name "cha:新規文書を導入"
5194
5195 \end_inset
5196
5197
5198 \begin_inset Argument 1
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 文書クラスを新規に導入する
5203 \end_layout
5204
5205 \end_inset
5206
5207
5208 \end_layout
5209
5210 \begin_layout Standard
5211 この章では、新しく\SpecialChar LyX
5212 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5213 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5214 します。
5215 \end_layout
5216
5217 \begin_layout Standard
5218 まず、\SpecialChar LyX
5219 と\SpecialChar LaTeX
5220 の間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5221 は、La\SpecialChar TeX
5222 について何も知らないと
5223 云うことです。実際のところ、\SpecialChar LyX
5224 の観点からは、\SpecialChar LaTeX
5225 は、\SpecialChar LyX
5226 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5227 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5228 は、とくに重要な形式ですが、\SpecialChar LyX
5229 がLa\SpecialChar TeX
5230 について持っている情報のほとんどは、実はプログラム本体には含まれて
5231 いないのです
5232 \begin_inset Foot
5233 status collapsed
5234
5235 \begin_layout Plain Layout
5236 過度に複雑なため、\SpecialChar LyX
5237 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5238 \end_layout
5239
5240 \end_inset
5241
5242 。このような情報は、
5243 \begin_inset Flex Code
5244 status collapsed
5245
5246 \begin_layout Plain Layout
5247 article.cls
5248 \end_layout
5249
5250 \end_inset
5251
5252 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5253 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5254 が知っていることは、レイア
5255 ウトファイルの中にあります。
5256 \end_layout
5257
5258 \begin_layout Standard
5259 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5260 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5261 構成体・DocBook構成体・XHTML構成体との
5262 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5263
5264 \begin_inset Flex Code
5265 status collapsed
5266
5267 \begin_layout Plain Layout
5268 article.cls
5269 \end_layout
5270
5271 \end_inset
5272
5273 について知っていることのほとんど総ては、
5274 \begin_inset Flex Code
5275 status collapsed
5276
5277 \begin_layout Plain Layout
5278 article.layout
5279 \end_layout
5280
5281 \end_inset
5282
5283 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5284 としては、
5285 \begin_inset Flex Code
5286 status collapsed
5287
5288 \begin_layout Plain Layout
5289 article.layout
5290 \end_layout
5291
5292 \end_inset
5293
5294
5295 \begin_inset Flex Code
5296 status collapsed
5297
5298 \begin_layout Plain Layout
5299 book.layout
5300 \end_layout
5301
5302 \end_inset
5303
5304 や、文書クラス用の他のレイアウトファイルに取り込まれている
5305 \begin_inset Flex Code
5306 status collapsed
5307
5308 \begin_layout Plain Layout
5309 stdsections.inc
5310 \end_layout
5311
5312 \end_inset
5313
5314 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5315 \begin_inset Flex Code
5316 status collapsed
5317
5318 \begin_layout Plain Layout
5319 stdsections.inc
5320 \end_layout
5321
5322 \end_inset
5323
5324 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5325 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5326 に知らせるものです。基本的に
5327 \begin_inset Flex Code
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331 article.layout
5332 \end_layout
5333
5334 \end_inset
5335
5336 ファイルは、これらの
5337 \begin_inset Flex Code
5338 status collapsed
5339
5340 \begin_layout Plain Layout
5341 std*.inc
5342 \end_layout
5343
5344 \end_inset
5345
5346 ファイルを取り込んでいるだけのものです。
5347 \end_layout
5348
5349 \begin_layout Standard
5350 しかしながら、\SpecialChar LyX
5351 –\SpecialChar LaTeX
5352 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5353 構成体自身が画面上にどのように表
5354 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5355 ます。ある段落様式を\SpecialChar LaTeX
5356 に翻訳する仕方を\SpecialChar LyX
5357 に指示することは、その表示の仕方を\SpecialChar LyX
5358 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5359 に指示することは、その段落様
5360 式をどのように\SpecialChar LaTeX
5361 に翻訳するかを\SpecialChar LyX
5362 に指示するものではありません(ましてや\SpecialChar LaTeX
5363 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5364 構成体を定義する際には、(
5365 i)
5366 \begin_inset space ~
5367 \end_inset
5368
5369 \SpecialChar LaTeX
5370 にどのように翻訳するかを\SpecialChar LyX
5371 に指示する、(ii)
5372 \begin_inset space ~
5373 \end_inset
5374
5375 それをどのように表示するかを\SpecialChar LyX
5376 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5377 \end_layout
5378
5379 \begin_layout Standard
5380 もちろん、\SpecialChar LyX
5381 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5382 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5383 力するにあたって、当該段落を\SpecialChar LyX
5384 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5385 が内部的に行うことと、外部的に行う物事の間の区
5386 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5387 \begin_inset CommandInset ref
5388 LatexCommand ref
5389 reference "sec:XHTML出力のタグ"
5390
5391 \end_inset
5392
5393 節をご覧ください。
5394 \end_layout
5395
5396 \begin_layout Section
5397 新しい\SpecialChar LaTeX
5398 ファイルの導入
5399 \end_layout
5400
5401 \begin_layout Standard
5402 頒布版によっては、\SpecialChar LyX
5403 で使いたい\SpecialChar LaTeX
5404 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5405 パッケージである、Foil\SpecialChar TeX
5406 がないかもしれません。\SpecialChar TeX
5407 Live(2008年以降)やMiK\SpecialChar TeX
5408 のような最近の\SpecialChar LaTeX
5409 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5410 ースが用意されています。たとえば、MiK\SpecialChar TeX
5411 では、付属の「Package
5412 \begin_inset space ~
5413 \end_inset
5414
5415 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5416 ださい。
5417 \end_layout
5418
5419 \begin_layout Standard
5420 お使いの\SpecialChar LaTeX
5421 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5422 してください。
5423 \end_layout
5424
5425 \begin_layout Enumerate
5426 \begin_inset CommandInset href
5427 LatexCommand href
5428 name "CTAN"
5429 target "http://www.ctan.org/"
5430
5431 \end_inset
5432
5433 などから欲しいパッケージを入手してください。
5434 \end_layout
5435
5436 \begin_layout Enumerate
5437 パッケージに「
5438 \begin_inset Flex Code
5439 status collapsed
5440
5441 \begin_layout Plain Layout
5442 .ins
5443 \end_layout
5444
5445 \end_inset
5446
5447 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5448 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5449 \begin_inset Flex Code
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 latex foiltex.ins
5454 \end_layout
5455
5456 \end_inset
5457
5458 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5459 パッケージは圧縮されていないので、このステップは飛ばすこ
5460 とができます。
5461 \end_layout
5462
5463 \begin_layout Enumerate
5464 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5465 \begin_inset Separator parbreak
5466 \end_inset
5467
5468
5469 \end_layout
5470
5471 \begin_deeper
5472 \begin_layout Enumerate
5473 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5474 ツリーに導入し、そうでなければ「ユー
5475 ザー」\SpecialChar TeX
5476 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5477 \begin_inset Flex Code
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 texmf.cnf
5482 \end_layout
5483
5484 \end_inset
5485
5486 ファイルを参照してください
5487 \begin_inset Foot
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 このファイルは、通常
5492 \family sans
5493 $TEXMF/web2c
5494 \family default
5495 ディレクトリにありますが、コマンド
5496 \begin_inset Flex Code
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500 kpsewhich texmf.cnf
5501 \end_layout
5502
5503 \end_inset
5504
5505 を実行してその場所を見つけることもできます。
5506 \end_layout
5507
5508 \end_inset
5509
5510 。「ローカル」\SpecialChar TeX
5511 ツリーの場所は、
5512 \begin_inset Flex Code
5513 status collapsed
5514
5515 \begin_layout Plain Layout
5516 TEXMFLOCAL
5517 \end_layout
5518
5519 \end_inset
5520
5521 変数で定義されており、通常は
5522 \begin_inset Flex Code
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 /usr/local/share/texmf/
5527 \end_layout
5528
5529 \end_inset
5530
5531 のような場所になっています。「ユーザー」\SpecialChar TeX
5532 ツリーの場所は、
5533 \begin_inset Flex Code
5534 status collapsed
5535
5536 \begin_layout Plain Layout
5537 TEXMFHOME
5538 \end_layout
5539
5540 \end_inset
5541
5542 で定義されており、通常は
5543 \begin_inset Flex Code
5544 status collapsed
5545
5546 \begin_layout Plain Layout
5547 $HOME/texmf/
5548 \end_layout
5549
5550 \end_inset
5551
5552 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5553 、「ユーザー」ツリーにはこのような制限はありません。
5554 \begin_inset Newline newline
5555 \end_inset
5556
5557 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5558 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5559 \end_layout
5560
5561 \begin_layout Enumerate
5562 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5563 の導入されているフォルダのサブフォルダ
5564 \begin_inset Flex Code
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 ~
5569 \backslash
5570 tex
5571 \backslash
5572 latex
5573 \end_layout
5574
5575 \end_inset
5576
5577 に移動します(MiK\SpecialChar TeX
5578 の既定値では、これは
5579 \begin_inset Flex Code
5580 status collapsed
5581
5582 \begin_layout Plain Layout
5583 ~:Programs
5584 \backslash
5585 MiKT
5586 \begin_inset ERT
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590
5591 {}
5592 \end_layout
5593
5594 \end_inset
5595
5596 eX
5597 \backslash
5598 tex
5599 \backslash
5600 latex
5601 \end_layout
5602
5603 \end_inset
5604
5605 です)
5606 \begin_inset Foot
5607 status open
5608
5609 \begin_layout Plain Layout
5610 これは、英語版でのみ正しいパスになっています。独語版では
5611 \begin_inset Flex Code
5612 status collapsed
5613
5614 \begin_layout Plain Layout
5615 ~:Programme
5616 \backslash
5617 MiK\SpecialChar TeX
5618
5619 \backslash
5620 tex
5621 \backslash
5622 latex
5623 \end_layout
5624
5625 \end_inset
5626
5627 となり、他の言語でも同様です。
5628 \end_layout
5629
5630 \end_inset
5631
5632 。ここに新規フォルダ
5633 \begin_inset Flex Code
5634 status collapsed
5635
5636 \begin_layout Plain Layout
5637 foiltex
5638 \end_layout
5639
5640 \end_inset
5641
5642 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5643 フォルダで同じ
5644 ことを行います。たとえばMiK\SpecialChar TeX
5645
5646 \begin_inset space ~
5647 \end_inset
5648
5649 2.8では、これはWinXP上では
5650 \begin_inset Newline newline
5651 \end_inset
5652
5653
5654 \begin_inset Flex Code
5655 status collapsed
5656
5657 \begin_layout Plain Layout
5658 ~:
5659 \backslash
5660 Documents and Settings
5661 \backslash
5662 <ユーザー名>
5663 \backslash
5664 Application Data
5665 \backslash
5666
5667 \end_layout
5668
5669 \end_inset
5670
5671
5672 \begin_inset Newline newline
5673 \end_inset
5674
5675
5676 \begin_inset Phantom HPhantom
5677 status open
5678
5679 \begin_layout Plain Layout
5680
5681 \family typewriter
5682 ~:
5683 \backslash
5684
5685 \end_layout
5686
5687 \end_inset
5688
5689
5690 \begin_inset Flex Code
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694 MiKT
5695 \begin_inset ERT
5696 status collapsed
5697
5698 \begin_layout Plain Layout
5699
5700 {}
5701 \end_layout
5702
5703 \end_inset
5704
5705 eX
5706 \backslash
5707 2.8
5708 \backslash
5709 tex
5710 \backslash
5711 latex
5712 \end_layout
5713
5714 \end_inset
5715
5716
5717 \begin_inset Newline newline
5718 \end_inset
5719
5720 フォルダ、WinVista上では
5721 \begin_inset Newline newline
5722 \end_inset
5723
5724
5725 \begin_inset Flex Code
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729 ~:
5730 \backslash
5731 Users
5732 \backslash
5733 <ユーザー名>
5734 \backslash
5735 AppData
5736 \backslash
5737 Roaming
5738 \backslash
5739 2.8
5740 \backslash
5741 MiKT
5742 \begin_inset ERT
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746
5747 {}
5748 \end_layout
5749
5750 \end_inset
5751
5752 eX
5753 \backslash
5754 tex
5755 \backslash
5756 latex
5757 \end_layout
5758
5759 \end_inset
5760
5761
5762 \begin_inset Newline newline
5763 \end_inset
5764
5765 フォルダになります。
5766 \end_layout
5767
5768 \end_deeper
5769 \begin_layout Enumerate
5770 ここまで来れば、あとは\SpecialChar LaTeX
5771 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5772 頒布版に依存します。
5773 \begin_inset Separator parbreak
5774 \end_inset
5775
5776
5777 \end_layout
5778
5779 \begin_deeper
5780 \begin_layout Enumerate
5781 \SpecialChar TeX
5782 Liveの場合には、コンソールから
5783 \begin_inset Flex Code
5784 status collapsed
5785
5786 \begin_layout Plain Layout
5787 texhash
5788 \end_layout
5789
5790 \end_inset
5791
5792 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5793 \end_layout
5794
5795 \begin_layout Enumerate
5796 MiK\SpecialChar TeX
5797 では、パッケージを全ユーザー用に導入した場合には、「Settings
5798 \begin_inset space ~
5799 \end_inset
5800
5801 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5802
5803 \end_layout
5804
5805 \end_deeper
5806 \begin_layout Enumerate
5807 最後に、\SpecialChar LyX
5808 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5809 からツール\SpecialChar menuseparator
5810 環境構成メニューを実行して、\SpecialChar LyX
5811 を再起動します。
5812 \end_layout
5813
5814 \begin_layout Standard
5815 これでパッケージが導入されました。この例では、文書クラス
5816 \begin_inset Flex Code
5817 status collapsed
5818
5819 \begin_layout Plain Layout
5820 Slides
5821 \begin_inset space ~
5822 \end_inset
5823
5824 (FoilTe
5825 \begin_inset ERT
5826 status collapsed
5827
5828 \begin_layout Plain Layout
5829
5830 {}
5831 \end_layout
5832
5833 \end_inset
5834
5835 X)
5836 \end_layout
5837
5838 \end_inset
5839
5840
5841 \begin_inset Flex MenuItem
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 文書\SpecialChar menuseparator
5846 設定\SpecialChar menuseparator
5847 文書クラス
5848 \end_layout
5849
5850 \end_inset
5851
5852 で利用可能になっているはずです。
5853 \end_layout
5854
5855 \begin_layout Standard
5856 \begin_inset Flex MenuItem
5857 status collapsed
5858
5859 \begin_layout Plain Layout
5860 文書\SpecialChar menuseparator
5861 設定\SpecialChar menuseparator
5862 文書クラス
5863 \end_layout
5864
5865 \end_inset
5866
5867 メニューに列挙されてもいない\SpecialChar LaTeX
5868 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5869 \end_layout
5870
5871 \begin_layout Section
5872 レイアウトファイルの型
5873 \end_layout
5874
5875 \begin_layout Standard
5876 この節は、レイアウト情報を含む各種\SpecialChar LyX
5877 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5878 がそれらをどのように
5879 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5880 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5881 \end_layout
5882
5883 \begin_layout Standard
5884 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5885 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5886 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5887 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5888 を出していますので、気軽に質問を投げかけてみてください。
5889 \end_layout
5890
5891 \begin_layout Standard
5892 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5893 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5894 文書クラス用の\SpecialChar LyX
5895 レイアウトを作ったり、
5896 他の人々にも有用なモジュールをお書きになった場合には、
5897 \begin_inset CommandInset href
5898 LatexCommand href
5899 name "LyX Wikiのレイアウトに関する節"
5900 target "http://wiki.lyx.org/Layouts/Layouts"
5901
5902 \end_inset
5903
5904 か、\SpecialChar LyX
5905 開発者メーリングリストに投稿して、\SpecialChar LyX
5906 頒布版に同梱することができるようにしてください
5907 \begin_inset Foot
5908 status collapsed
5909
5910 \begin_layout Plain Layout
5911 \SpecialChar LyX
5912 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5913 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5914 \end_layout
5915
5916 \end_inset
5917
5918
5919 \end_layout
5920
5921 \begin_layout Subsection
5922 レイアウトモジュール
5923 \begin_inset CommandInset label
5924 LatexCommand label
5925 name "subsec:レイアウトモジュール"
5926
5927 \end_inset
5928
5929
5930 \end_layout
5931
5932 \begin_layout Standard
5933 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5934 、それは
5935 \begin_inset Flex Code
5936 status collapsed
5937
5938 \begin_layout Plain Layout
5939 .layout
5940 \end_layout
5941
5942 \end_inset
5943
5944 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5945 に提供するものを指します。しかしながら、\SpecialChar LyX
5946  1.6以降、レイアウト情報は、拡張子が
5947 \begin_inset Flex Code
5948 status collapsed
5949
5950 \begin_layout Plain Layout
5951 .module
5952 \end_layout
5953
5954 \end_inset
5955
5956 のレイアウト
5957 \emph on
5958 モジュール
5959 \emph default
5960 にも含めることができます。レイアウトが\SpecialChar LaTeX
5961 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5962 パッケージに対応するものであり、
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 endnotes
5968 \end_layout
5969
5970 \end_inset
5971
5972 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5973 イアウトで使用できるという意味において、一面、
5974 \begin_inset Flex Code
5975 status collapsed
5976
5977 \begin_layout Plain Layout
5978 stdsections.inc
5979 \end_layout
5980
5981 \end_inset
5982
5983 等のインクルードファイル
5984 \begin_inset Foot
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988 これらは任意の拡張子をつけることができますが、慣習的に
5989 \begin_inset Flex Code
5990 status collapsed
5991
5992 \begin_layout Plain Layout
5993 .inc
5994 \end_layout
5995
5996 \end_inset
5997
5998 拡張子が用いられます。
5999 \end_layout
6000
6001 \end_inset
6002
6003 のようなものです。相異なる点といえば、
6004 \begin_inset Flex Code
6005 status collapsed
6006
6007 \begin_layout Plain Layout
6008 article.cls
6009 \end_layout
6010
6011 \end_inset
6012
6013 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
6014 \begin_inset Flex MenuItem
6015 status collapsed
6016
6017 \begin_layout Plain Layout
6018 文書\SpecialChar menuseparator
6019 設定
6020 \end_layout
6021
6022 \end_inset
6023
6024 ダイアログで選択するだけですみます。
6025 \end_layout
6026
6027 \begin_layout Standard
6028 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
6029 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
6030 \end_layout
6031
6032 \begin_layout Standard
6033 新しいモジュールを作成し、それを
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038 layout/
6039 \end_layout
6040
6041 \end_inset
6042
6043 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
6044 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
6045 \begin_inset Flex MenuItem
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 文書\SpecialChar menuseparator
6050 設定
6051 \end_layout
6052
6053 \end_inset
6054
6055 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
6056 \emph on
6057 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
6058 \emph default
6059 。もっと言えば、
6060 \emph on
6061 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
6062 \emph default
6063 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
6064 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
6065 とがあるからです。
6066 \end_layout
6067
6068 \begin_layout Subsubsection
6069 ローカルレイアウト
6070 \end_layout
6071
6072 \begin_layout Standard
6073 \SpecialChar LyX
6074 に於けるモジュールは、\SpecialChar LaTeX
6075 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
6076 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
6077 \end_layout
6078
6079 \begin_layout Standard
6080 これは、
6081 \family sans
6082 文書\SpecialChar menuseparator
6083 設定\SpecialChar menuseparator
6084 ローカルのレイアウト
6085 \family default
6086 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
6087 は、その文書専属のモジュールだと考えることができます。したがって、
6088 \begin_inset Flex Code
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092 Format
6093 \end_layout
6094
6095 \end_inset
6096
6097 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
6098  2.1では、最新書式は48です)。また、
6099 ローカルレイアウトは、\SpecialChar LyX
6100  1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
6101  1.5またはそれ以前の版に(ローカルレイアウト
6102 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
6103 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
6104  1.6で使用できるレイアウト要素のみを使用してください。
6105 \end_layout
6106
6107 \begin_layout Standard
6108 \begin_inset Flex Code
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 ローカルのレイアウト
6113 \end_layout
6114
6115 \end_inset
6116
6117 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
6118 ているかどうかが検証されます。すると、\SpecialChar LyX
6119 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
6120 をターミナル(
6121 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
6122 \end_layout
6123
6124 \begin_layout Standard
6125 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
6126 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
6127 \end_layout
6128
6129 \begin_layout Subsection
6130 \begin_inset Flex MenuItem
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 .sty
6135 \end_layout
6136
6137 \end_inset
6138
6139 ファイル用のレイアウト
6140 \end_layout
6141
6142 \begin_layout Standard
6143 新しく\SpecialChar LaTeX
6144 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
6145 クラス(
6146 \begin_inset Flex Code
6147 status collapsed
6148
6149 \begin_layout Plain Layout
6150 .cls
6151 \end_layout
6152
6153 \end_inset
6154
6155 )ファイルが絡む場合と、スタイル(
6156 \begin_inset Flex Code
6157 status collapsed
6158
6159 \begin_layout Plain Layout
6160 .sty
6161 \end_layout
6162
6163 \end_inset
6164
6165 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
6166 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
6167 が当てはまります。
6168 \end_layout
6169
6170 \begin_layout Standard
6171 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
6172 \begin_inset Flex MenuItem
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 myclass.sty
6177 \end_layout
6178
6179 \end_inset
6180
6181 という名称で、標準的なクラスである
6182 \begin_inset Flex MenuItem
6183 status collapsed
6184
6185 \begin_layout Plain Layout
6186 report.cls
6187 \end_layout
6188
6189 \end_inset
6190
6191 と共に用いられるものと仮定しましょう。
6192 \end_layout
6193
6194 \begin_layout Standard
6195 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6196 \begin_inset Foot
6197 status collapsed
6198
6199 \begin_layout Plain Layout
6200 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6201 では、起動時に
6202 \begin_inset Flex MenuItem
6203 status collapsed
6204
6205 \begin_layout Plain Layout
6206 -userdir
6207 \end_layout
6208
6209 \end_inset
6210
6211 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6212 \end_layout
6213
6214 \end_inset
6215
6216
6217 \end_layout
6218
6219 \begin_layout LyX-Code
6220 cp report.layout ~/.lyx/layouts/myclass.layout
6221 \end_layout
6222
6223 \begin_layout Standard
6224 それから、
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 myclass.layout
6230 \end_layout
6231
6232 \end_inset
6233
6234 を編集して、
6235 \end_layout
6236
6237 \begin_layout LyX-Code
6238
6239 \backslash
6240 DeclareLaT
6241 \begin_inset ERT
6242 status collapsed
6243
6244 \begin_layout Plain Layout
6245
6246 {}
6247 \end_layout
6248
6249 \end_inset
6250
6251 eXClass{report}
6252 \end_layout
6253
6254 \begin_layout Standard
6255 という行を
6256 \end_layout
6257
6258 \begin_layout LyX-Code
6259
6260 \backslash
6261 DeclareLaT
6262 \bar under
6263 \lang english
6264
6265 \begin_inset ERT
6266 status collapsed
6267
6268 \begin_layout Plain Layout
6269
6270 {}
6271 \end_layout
6272
6273 \end_inset
6274
6275
6276 \bar default
6277 \lang japanese
6278 eXClass[report, myclass.sty]{report (myclass)}
6279 \end_layout
6280
6281 \begin_layout Standard
6282 のように変更してください。それから、ファイル冒頭辺りに
6283 \end_layout
6284
6285 \begin_layout LyX-Code
6286 Preamble 
6287 \begin_inset Newline newline
6288 \end_inset
6289
6290     
6291 \backslash
6292 usepackage{myclass}
6293 \begin_inset Newline newline
6294 \end_inset
6295
6296 EndPreamble
6297 \end_layout
6298
6299 \begin_layout Standard
6300 と書き加えてください。
6301 \end_layout
6302
6303 \begin_layout Standard
6304 \SpecialChar LyX
6305 を起動して
6306 \begin_inset Flex MenuItem
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 ツール\SpecialChar menuseparator
6311 環境構成
6312 \end_layout
6313
6314 \end_inset
6315
6316 を選択してください。それから\SpecialChar LyX
6317 を再起動し、新規文書を作成してみてください。すると、
6318 \begin_inset Flex MenuItem
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 文書\SpecialChar menuseparator
6323 設定
6324 \end_layout
6325
6326 \end_inset
6327
6328 ダイアログの文書クラスオプションに「
6329 \begin_inset Flex MenuItem
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 report (myclass)
6334 \end_layout
6335
6336 \end_inset
6337
6338 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 report
6344 \end_layout
6345
6346 \end_inset
6347
6348 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6349 \begin_inset Flex Code
6350 status collapsed
6351
6352 \begin_layout Plain Layout
6353 stdsections.inc
6354 \end_layout
6355
6356 \end_inset
6357
6358 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6359 \begin_inset Flex Code
6360 status collapsed
6361
6362 \begin_layout Plain Layout
6363 stdsections.inc
6364 \end_layout
6365
6366 \end_inset
6367
6368 も取り込む
6369 \begin_inset Flex Code
6370 status collapsed
6371
6372 \begin_layout Plain Layout
6373 Input stdclass.inc
6374 \end_layout
6375
6376 \end_inset
6377
6378 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6379 \end_layout
6380
6381 \begin_layout LyX-Code
6382 Style Chapter
6383 \end_layout
6384
6385 \begin_layout LyX-Code
6386     Font
6387 \end_layout
6388
6389 \begin_layout LyX-Code
6390         Family Sans
6391 \end_layout
6392
6393 \begin_layout LyX-Code
6394     EndFont
6395 \end_layout
6396
6397 \begin_layout LyX-Code
6398 End
6399 \end_layout
6400
6401 \begin_layout Standard
6402 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6403 \end_layout
6404
6405 \begin_layout Standard
6406 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6407 いては、第
6408 \begin_inset CommandInset ref
6409 LatexCommand ref
6410 reference "sec:テキストクラス"
6411
6412 \end_inset
6413
6414 節の情報を参照してください。
6415 \end_layout
6416
6417 \begin_layout Standard
6418 もし
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 myclass.sty
6424 \end_layout
6425
6426 \end_inset
6427
6428 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6429 う。最も簡単なモジュールの例としては、以下のようなものになります。
6430 \end_layout
6431
6432 \begin_layout LyX-Code
6433 #
6434 \backslash
6435 Declare\SpecialChar LyX
6436 Module{My Package}
6437 \end_layout
6438
6439 \begin_layout LyX-Code
6440 #DescriptionBegin
6441 \end_layout
6442
6443 \begin_layout LyX-Code
6444 #Support for mypkg.sty.
6445 \end_layout
6446
6447 \begin_layout LyX-Code
6448 #DescriptionEnd
6449 \begin_inset Newline newline
6450 \end_inset
6451
6452
6453 \end_layout
6454
6455 \begin_layout LyX-Code
6456 Format 35
6457 \begin_inset Newline newline
6458 \end_inset
6459
6460
6461 \end_layout
6462
6463 \begin_layout LyX-Code
6464 Preamble
6465 \begin_inset Newline newline
6466 \end_inset
6467
6468     
6469 \backslash
6470 usepackage{mypkg}
6471 \begin_inset Newline newline
6472 \end_inset
6473
6474 EndPreamble
6475 \end_layout
6476
6477 \begin_layout Standard
6478 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6479 \begin_inset CommandInset ref
6480 LatexCommand ref
6481 reference "sec:テキストクラス"
6482
6483 \end_inset
6484
6485 節を参照してください。
6486 \end_layout
6487
6488 \begin_layout Subsection
6489 \begin_inset Flex MenuItem
6490 status collapsed
6491
6492 \begin_layout Plain Layout
6493 .cls
6494 \end_layout
6495
6496 \end_inset
6497
6498 ファイル用のレイアウト
6499 \end_layout
6500
6501 \begin_layout Standard
6502 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6503 \begin_inset Flex MenuItem
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507 book.cls
6508 \end_layout
6509
6510 \end_inset
6511
6512 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6513 \end_layout
6514
6515 \begin_layout LyX-Code
6516
6517 \backslash
6518 LoadClass{book}
6519 \end_layout
6520
6521 \begin_layout Standard
6522 という行がないかどうか探してください。もしこれがあれば、
6523 \begin_inset Flex Code
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 Declare\SpecialChar LaTeX
6528 Class
6529 \end_layout
6530
6531 \end_inset
6532
6533 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6534 \begin_inset Flex Code
6535 status collapsed
6536
6537 \begin_layout Plain Layout
6538 thesis
6539 \end_layout
6540
6541 \end_inset
6542
6543 であり、
6544 \begin_inset Flex Code
6545 status collapsed
6546
6547 \begin_layout Plain Layout
6548 book
6549 \end_layout
6550
6551 \end_inset
6552
6553 クラスに基づいていれば、
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 Declare\SpecialChar LaTeX
6559 Class
6560 \end_layout
6561
6562 \end_inset
6563
6564 行は以下のようにします
6565 \begin_inset Foot
6566 status collapsed
6567
6568 \begin_layout Plain Layout
6569 さらに\SpecialChar LyX
6570 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 thesis.layout
6576 \end_layout
6577
6578 \end_inset
6579
6580 という名前で保存するのが最も簡単です。 
6581 \end_layout
6582
6583 \end_inset
6584
6585
6586 \end_layout
6587
6588 \begin_layout LyX-Code
6589
6590 \backslash
6591 DeclareLaT
6592 \begin_inset ERT
6593 status collapsed
6594
6595 \begin_layout Plain Layout
6596
6597 {}
6598 \end_layout
6599
6600 \end_inset
6601
6602 eXClass[thesis,book]{thesis}
6603 \end_layout
6604
6605 \begin_layout Standard
6606 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6607 クラスを使用してい
6608 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6609 業の開始点としてください。
6610 \end_layout
6611
6612 \begin_layout Subsection
6613 ひな型を作成する
6614 \begin_inset CommandInset label
6615 LatexCommand label
6616 name "sec:ひな型を作成する"
6617
6618 \end_inset
6619
6620
6621 \end_layout
6622
6623 \begin_layout Standard
6624 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6625 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6626 添付のひな型をあれこれ見てみるのもよいでしょう。
6627 \end_layout
6628
6629 \begin_layout Standard
6630 ひな型は、通常の文書と同様、\SpecialChar LyX
6631 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6632 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6633 \begin_inset Flex Code
6634 status collapsed
6635
6636 \begin_layout Plain Layout
6637
6638 \backslash
6639 fontscheme
6640 \end_layout
6641
6642 \end_inset
6643
6644
6645 \begin_inset Flex Code
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649
6650 \backslash
6651 papersize
6652 \end_layout
6653
6654 \end_inset
6655
6656 などの対応するコマンドをひな型\SpecialChar LyX
6657 ファイルから取り除く必要があります。これは、たとえば
6658 \begin_inset Flex Code
6659 status collapsed
6660
6661 \begin_layout Plain Layout
6662 vi
6663 \end_layout
6664
6665 \end_inset
6666
6667
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 notepad
6673 \end_layout
6674
6675 \end_inset
6676
6677 のような、どの軽いテキストエディタでも行うことができます。
6678 \end_layout
6679
6680 \begin_layout Standard
6681 編集したひな型を
6682 \begin_inset Flex Code
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 UserDir/templates/
6687 \end_layout
6688
6689 \end_inset
6690
6691 に置き、グローバルなひな型ディレクトリ
6692 \begin_inset Flex Code
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 \SpecialChar LyX
6697 Dir/templates/
6698 \end_layout
6699
6700 \end_inset
6701
6702 から使用したいものを同じ場所にコピーし、
6703 \begin_inset Flex MenuItem
6704 status collapsed
6705
6706 \begin_layout Plain Layout
6707 ツール\SpecialChar menuseparator
6708 設定\SpecialChar menuseparator
6709 パス
6710 \end_layout
6711
6712 \end_inset
6713
6714 ダイアログのひな型パスを再定義してください。
6715 \end_layout
6716
6717 \begin_layout Standard
6718 ところで、特別な意味を持つひな型
6719 \begin_inset Flex Code
6720 status collapsed
6721
6722 \begin_layout Plain Layout
6723 defaults.lyx
6724 \end_layout
6725
6726 \end_inset
6727
6728 があることに注意してください。このひな型は、
6729 \begin_inset Flex MenuItem
6730 status collapsed
6731
6732 \begin_layout Plain Layout
6733 ファイル\SpecialChar menuseparator
6734 新規
6735 \end_layout
6736
6737 \end_inset
6738
6739 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6740 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6741 開き、
6742 \begin_inset Flex MenuItem
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 文書既定値として保存
6747 \end_layout
6748
6749 \end_inset
6750
6751 ボタンを押すことです。
6752 \end_layout
6753
6754 \begin_layout Subsection
6755 旧レイアウトファイルの更新
6756 \end_layout
6757
6758 \begin_layout Standard
6759 レイアウトファイルの書式は、\SpecialChar LyX
6760 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6761 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6762 は、
6763 自動的に変換ツール
6764 \begin_inset Flex Code
6765 status collapsed
6766
6767 \begin_layout Plain Layout
6768 \SpecialChar LyX
6769 Dir/scripts/layout2layout.py
6770 \end_layout
6771
6772 \end_inset
6773
6774 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6775 がこれを毎回行な
6776 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6777 \end_layout
6778
6779 \begin_layout Enumerate
6780 ファイル
6781 \begin_inset Flex Code
6782 status collapsed
6783
6784 \begin_layout Plain Layout
6785 myclass.layout
6786 \end_layout
6787
6788 \end_inset
6789
6790
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 myclass.old
6796 \end_layout
6797
6798 \end_inset
6799
6800 に改称
6801 \end_layout
6802
6803 \begin_layout Enumerate
6804 以下のコマンドをコール
6805 \begin_inset Newline newline
6806 \end_inset
6807
6808
6809 \begin_inset Flex Code
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 python \SpecialChar LyX
6814 Dir/scripts/layout2layout.py myclass.old myclass.layout
6815 \end_layout
6816
6817 \end_inset
6818
6819
6820 \begin_inset Newline newline
6821 \end_inset
6822
6823 ここで
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 \SpecialChar LyX
6829 Dir
6830 \end_layout
6831
6832 \end_inset
6833
6834 は\SpecialChar LyX
6835 システムディレクトリの名前です。
6836 \end_layout
6837
6838 \begin_layout Standard
6839 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6840 \end_layout
6841
6842 \begin_layout Section
6843 \begin_inset CommandInset label
6844 LatexCommand label
6845 name "sec:テキストクラス"
6846
6847 \end_inset
6848
6849 レイアウトファイルの書式
6850 \end_layout
6851
6852 \begin_layout Standard
6853 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6854 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6855 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6856 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6857 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6858 \end_layout
6859
6860 \begin_layout Standard
6861 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6862 \begin_inset Flex Code
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 Style
6867 \end_layout
6868
6869 \end_inset
6870
6871
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 style
6877 \end_layout
6878
6879 \end_inset
6880
6881
6882 \begin_inset Flex Code
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 StYlE
6887 \end_layout
6888
6889 \end_inset
6890
6891 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6892 \begin_inset Flex Code
6893 status collapsed
6894
6895 \begin_layout Plain Layout
6896
6897 \emph on
6898 強調
6899 \end_layout
6900
6901 \end_inset
6902
6903 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6904 \begin_inset Flex Code
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 浮動小数点型=
6909 \emph on
6910 既定値
6911 \end_layout
6912
6913 \end_inset
6914
6915 のように表示されます。
6916 \end_layout
6917
6918 \begin_layout Subsection
6919 文書クラス宣言と分類
6920 \end_layout
6921
6922 \begin_layout Standard
6923 レイアウトファイル中の
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928 #
6929 \end_layout
6930
6931 \end_inset
6932
6933 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6934 \begin_inset Flex Code
6935 status collapsed
6936
6937 \begin_layout Plain Layout
6938 *.layout
6939 \end_layout
6940
6941 \end_inset
6942
6943 ファイルは、以下のような行で始めなくてはならないのです。
6944 \end_layout
6945
6946 \begin_layout LyX-Code
6947
6948 \size small
6949 #% Do not delete the line below; configure depends on this
6950 \end_layout
6951
6952 \begin_layout LyX-Code
6953
6954 \size small
6955 #  
6956 \backslash
6957 DeclareLaT
6958 \size default
6959
6960 \begin_inset ERT
6961 status collapsed
6962
6963 \begin_layout Plain Layout
6964
6965 {}
6966 \end_layout
6967
6968 \end_inset
6969
6970
6971 \size small
6972 eXClass{Article (Standard Class)}
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \size small
6978 #  
6979 \backslash
6980 DeclareCategory{Articles}
6981 \end_layout
6982
6983 \begin_layout Standard
6984 2行目と3行目は、\SpecialChar LyX
6985 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6986 スクリプト
6987 \begin_inset Flex Code
6988 status collapsed
6989
6990 \begin_layout Plain Layout
6991 chkconfig.ltx
6992 \end_layout
6993
6994 \end_inset
6995
6996 が、
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 #
7002 \end_layout
7003
7004 \end_inset
7005
7006 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
7007 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
7008 行が
7009 \begin_inset Flex Code
7010 status collapsed
7011
7012 \begin_layout Plain Layout
7013 article.layout
7014 \end_layout
7015
7016 \end_inset
7017
7018 と名付けられたファイルにあると、
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 article
7024 \end_layout
7025
7026 \end_inset
7027
7028 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
7029 文書クラス
7030 \begin_inset Flex Code
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 article.cls
7035 \end_layout
7036
7037 \end_inset
7038
7039 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
7040 \begin_inset Flex MenuItem
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 文書\SpecialChar menuseparator
7045 設定
7046 \end_layout
7047
7048 \end_inset
7049
7050 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
7051 \begin_inset Flex MenuItem
7052 status open
7053
7054 \begin_layout Plain Layout
7055 文書\SpecialChar menuseparator
7056 設定
7057 \end_layout
7058
7059 \end_inset
7060
7061 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
7062 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
7063 rized」グループに属することになります。
7064 \end_layout
7065
7066 \begin_layout Standard
7067 節見出し表示に変更を加えた、
7068 \begin_inset Flex Code
7069 status collapsed
7070
7071 \begin_layout Plain Layout
7072 article.cls
7073 \end_layout
7074
7075 \end_inset
7076
7077 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
7078 \begin_inset Flex Code
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 myarticle.layout
7083 \end_layout
7084
7085 \end_inset
7086
7087 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
7088 \end_layout
7089
7090 \begin_layout LyX-Code
7091
7092 \size small
7093 #% Do not delete the line below; configure depends on this 
7094 \end_layout
7095
7096 \begin_layout LyX-Code
7097
7098 \size small
7099 #  
7100 \backslash
7101 DeclareLaT
7102 \size default
7103
7104 \begin_inset ERT
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108
7109 {}
7110 \end_layout
7111
7112 \end_inset
7113
7114
7115 \size small
7116 eXClass[article]{article (with My Own Headings)}
7117 \end_layout
7118
7119 \begin_layout LyX-Code
7120
7121 \size small
7122 #  
7123 \backslash
7124 DeclareCategory{Articles}
7125 \end_layout
7126
7127 \begin_layout Standard
7128 これは、\SpecialChar LaTeX
7129 文書クラス
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 article.cls
7135 \end_layout
7136
7137 \end_inset
7138
7139 に関連づけられ、「Article (with My Own Headings)」と表示される、
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 myarticle
7145 \end_layout
7146
7147 \end_inset
7148
7149 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
7150 \end_layout
7151
7152 \begin_layout LyX-Code
7153
7154 \size small
7155 #% Do not delete the line below; configure depends on this 
7156 \end_layout
7157
7158 \begin_layout LyX-Code
7159
7160 \size small
7161 #  
7162 \backslash
7163 DeclareLaT
7164 \size default
7165
7166 \begin_inset ERT
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170
7171 {}
7172 \end_layout
7173
7174 \end_inset
7175
7176
7177 \size small
7178 eXClass[article,foo.sty]{Article (with My Own Headings)}
7179 \end_layout
7180
7181 \begin_layout LyX-Code
7182
7183 \size small
7184 #  
7185 \backslash
7186 DeclareCategory{Articles}
7187 \end_layout
7188
7189 \begin_layout Standard
7190 これは、このテキストクラスが
7191 \begin_inset Flex Code
7192 status collapsed
7193
7194 \begin_layout Plain Layout
7195 foo.sty
7196 \end_layout
7197
7198 \end_inset
7199
7200 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
7201 \end_layout
7202
7203 \begin_layout LyX-Code
7204
7205 \size small
7206 #% Do not delete the line below; configure depends on this 
7207 \end_layout
7208
7209 \begin_layout LyX-Code
7210
7211 \size small
7212
7213 \backslash
7214 DeclareDocBookClass[article]{SGML (DocBook article)}
7215 \end_layout
7216
7217 \begin_layout LyX-Code
7218
7219 \size small
7220 #  
7221 \backslash
7222 DeclareCategory{Articles}
7223 \end_layout
7224
7225 \begin_layout Standard
7226 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
7227 \end_layout
7228
7229 \begin_layout Standard
7230 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
7231 \end_layout
7232
7233 \begin_layout LyX-Code
7234
7235 \size small
7236 #  
7237 \backslash
7238 DeclareLaT
7239 \size default
7240
7241 \begin_inset ERT
7242 status collapsed
7243
7244 \begin_layout Plain Layout
7245
7246 {}
7247 \end_layout
7248
7249 \end_inset
7250
7251
7252 \size small
7253 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7254 \end_layout
7255
7256 \begin_layout LyX-Code
7257
7258 \size small
7259 #  
7260 \backslash
7261 DeclareCategory{分類}
7262 \end_layout
7263
7264 \begin_layout Standard
7265 ここで「クラス」は、\SpecialChar LaTeX
7266 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
7267 は単純に、クラスファイル
7268 名がレイアウトファイル名と同じであると仮定します。
7269 \end_layout
7270
7271 \begin_layout Standard
7272 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7273 \begin_inset Flex Code
7274 status collapsed
7275
7276 \begin_layout Plain Layout
7277 L
7278 \begin_inset ERT
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282
7283 {}
7284 \end_layout
7285
7286 \end_inset
7287
7288 yXDir/layouts/
7289 \end_layout
7290
7291 \end_inset
7292
7293
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 UserDir/layouts
7299 \end_layout
7300
7301 \end_inset
7302
7303 にコピーし、
7304 \begin_inset Flex MenuItem
7305 status collapsed
7306
7307 \begin_layout Plain Layout
7308 ツール\SpecialChar menuseparator
7309 環境構成
7310 \end_layout
7311
7312 \end_inset
7313
7314 を実行し、\SpecialChar LyX
7315 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7316 \end_layout
7317
7318 \begin_layout Standard
7319 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7320 を再起動したりすることなく、その変更を確認することができます
7321 \begin_inset Foot
7322 status collapsed
7323
7324 \begin_layout Plain Layout
7325 第1.6版よりも前の\SpecialChar LyX
7326 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7327 を再起動しなくてはならなかったので、
7328 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7329 \end_layout
7330
7331 \end_inset
7332
7333 。\SpecialChar LyX
7334 関数
7335 \begin_inset Flex MenuItem
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 layout-reload
7340 \end_layout
7341
7342 \end_inset
7343
7344 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7345 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7346 \end_layout
7347
7348 \begin_layout Standard
7349
7350 \emph on
7351 注意
7352 \emph default
7353
7354 \begin_inset Flex MenuItem
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 layout-reload
7359 \end_layout
7360
7361 \end_inset
7362
7363 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7364 \emph on
7365 強く
7366 \emph default
7367 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7368 \emph on
7369 強く
7370 \emph default
7371 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7372 は現在の
7373 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7374 \begin_inset Foot
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7379 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7380 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7381 ださい。
7382 \end_layout
7383
7384 \end_inset
7385
7386 。\SpecialChar LyX
7387 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7388 \begin_inset Foot
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7393 \end_layout
7394
7395 \end_inset
7396
7397
7398 \end_layout
7399
7400 \begin_layout Subsection
7401 モジュール宣言
7402 \end_layout
7403
7404 \begin_layout Standard
7405 モジュールは、以下のような行で始まらなくてはなりません。
7406 \end_layout
7407
7408 \begin_layout LyX-Code
7409 #
7410 \backslash
7411 DeclareL
7412 \begin_inset ERT
7413 status collapsed
7414
7415 \begin_layout Plain Layout
7416
7417 {}
7418 \end_layout
7419
7420 \end_inset
7421
7422 yXModule[endnotes.sty]{Endnotes} 
7423 \end_layout
7424
7425 \begin_layout Standard
7426 波括弧内に入っている必須引数はモジュール名で、これは
7427 \begin_inset Flex MenuItem
7428 status collapsed
7429
7430 \begin_layout Plain Layout
7431 文書\SpecialChar menuseparator
7432 設定
7433 \end_layout
7434
7435 \end_inset
7436
7437 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7438 パッケージをすべて宣言します。また、非必須引数として、
7439 \begin_inset Flex Code
7440 status collapsed
7441
7442 \begin_layout Plain Layout
7443 変換元->変換先
7444 \end_layout
7445
7446 \end_inset
7447
7448 の形を使用することができます。これは、
7449 \begin_inset Flex Code
7450 status collapsed
7451
7452 \begin_layout Plain Layout
7453 変換元
7454 \end_layout
7455
7456 \end_inset
7457
7458 形式から
7459 \begin_inset Flex Code
7460 status collapsed
7461
7462 \begin_layout Plain Layout
7463 変換先
7464 \end_layout
7465
7466 \end_inset
7467
7468 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7469 \end_layout
7470
7471 \begin_layout Standard
7472 それから、以下のようなモジュール宣言を行います
7473 \begin_inset Foot
7474 status collapsed
7475
7476 \begin_layout Plain Layout
7477 モジュールを\SpecialChar LyX
7478 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7479 \end_layout
7480
7481 \end_inset
7482
7483
7484 \end_layout
7485
7486 \begin_layout LyX-Code
7487 #DescriptionBegin 
7488 \end_layout
7489
7490 \begin_layout LyX-Code
7491 #Adds an endnote command, in addition to footnotes.
7492  
7493 \end_layout
7494
7495 \begin_layout LyX-Code
7496 #You will need to add  
7497 \backslash
7498 theendnotes in T
7499 \begin_inset ERT
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503
7504 {}
7505 \end_layout
7506
7507 \end_inset
7508
7509 eX code where you 
7510 \end_layout
7511
7512 \begin_layout LyX-Code
7513 #want the endnotes to appear.
7514  
7515 \end_layout
7516
7517 \begin_layout LyX-Code
7518 #DescriptionEnd 
7519 \end_layout
7520
7521 \begin_layout LyX-Code
7522 #Requires: somemodule | othermodule
7523 \end_layout
7524
7525 \begin_layout LyX-Code
7526 #Excludes: badmodule
7527 \end_layout
7528
7529 \begin_layout Standard
7530 ここで説明(Description)は、
7531 \begin_inset Flex MenuItem
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 文書\SpecialChar menuseparator
7536 設定
7537 \end_layout
7538
7539 \end_inset
7540
7541 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 Requires
7547 \end_layout
7548
7549 \end_inset
7550
7551 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 Excludes
7557 \end_layout
7558
7559 \end_inset
7560
7561 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7562 イプ記号「|」で区切らなくてはなりません。
7563 \begin_inset Flex Code
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 Requires
7568 \end_layout
7569
7570 \end_inset
7571
7572 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 Requires
7578 \end_layout
7579
7580 \end_inset
7581
7582 に指定されたモジュールのうち、
7583 \emph on
7584 少なくとも一つ
7585 \emph default
7586 が使用されていればよいということです。同様に、
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 Excludes
7592 \end_layout
7593
7594 \end_inset
7595
7596 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7597 \begin_inset Flex Code
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 .module
7602 \end_layout
7603
7604 \end_inset
7605
7606 拡張子を除いたファイル名で認識されることに注意してください。つまり
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 somemodule
7612 \end_layout
7613
7614 \end_inset
7615
7616 とは、実のところ
7617 \begin_inset Flex Code
7618 status collapsed
7619
7620 \begin_layout Plain Layout
7621 somemodule.module
7622 \end_layout
7623
7624 \end_inset
7625
7626 のことです。
7627 \end_layout
7628
7629 \begin_layout Subsection
7630 書式番号
7631 \end_layout
7632
7633 \begin_layout Standard
7634 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7635 \end_layout
7636
7637 \begin_layout Description
7638 \begin_inset Flex Code
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 Format
7643 \end_layout
7644
7645 \end_inset
7646
7647  [
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 整数型
7653 \end_layout
7654
7655 \end_inset
7656
7657 ] このレイアウトファイルの書式
7658 \end_layout
7659
7660 \begin_layout Standard
7661 このタグは\SpecialChar LyX
7662
7663 \begin_inset space ~
7664 \end_inset
7665
7666 1.4.0で導入されました。\SpecialChar LyX
7667
7668 \begin_inset space ~
7669 \end_inset
7670
7671 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7672 現行版のファイル形式は、書式35です。しかし、\SpecialChar LyX
7673 の各版は、旧版の\SpecialChar LyX
7674 で作成さ
7675 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7676 \end_layout
7677
7678 \begin_layout Subsection
7679 \begin_inset CommandInset label
7680 LatexCommand label
7681 name "subsec:汎用テキストクラスパラメータ"
7682
7683 \end_inset
7684
7685 汎用テキストクラスパラメータ
7686 \end_layout
7687
7688 \begin_layout Standard
7689 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7690 \begin_inset Flex Code
7691 status collapsed
7692
7693 \begin_layout Plain Layout
7694 .layout
7695 \end_layout
7696
7697 \end_inset
7698
7699 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7700 \emph on
7701 ありません
7702 \emph default
7703 。モジュールには、すべてのレイアウトタグを使用することができます)。
7704 \end_layout
7705
7706 \begin_layout Description
7707 \begin_inset Flex Code
7708 status collapsed
7709
7710 \begin_layout Plain Layout
7711 AddToHTMLPreamble
7712 \end_layout
7713
7714 \end_inset
7715
7716  この文書クラスがXHTMLに出力されるときに、
7717 \begin_inset Flex Code
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 <head>
7722 \end_layout
7723
7724 \end_inset
7725
7726 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 <head>
7732 \end_layout
7733
7734 \end_inset
7735
7736 に出力するものであれば、何でも使用することができます。「
7737 \begin_inset Flex Code
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 EndPreamble
7742 \end_layout
7743
7744 \end_inset
7745
7746 」で閉じる必要があります。
7747 \end_layout
7748
7749 \begin_layout Description
7750 \begin_inset Flex Code
7751 status collapsed
7752
7753 \begin_layout Plain Layout
7754 AddToPreamble
7755 \end_layout
7756
7757 \end_inset
7758
7759  文書プリアンブルに書き加えられる情報です。「
7760 \begin_inset Flex Code
7761 status collapsed
7762
7763 \begin_layout Plain Layout
7764 EndPreamble
7765 \end_layout
7766
7767 \end_inset
7768
7769 」で閉じる必要があります。
7770 \end_layout
7771
7772 \begin_layout Description
7773 \begin_inset Flex Code
7774 status collapsed
7775
7776 \begin_layout Plain Layout
7777 CiteFormat
7778 \end_layout
7779
7780 \end_inset
7781
7782  書誌情報の表示に使う書式を定義します。詳細については、
7783 \begin_inset CommandInset ref
7784 LatexCommand ref
7785 reference "subsec:引用書式指定"
7786
7787 \end_inset
7788
7789 をご覧ください。「
7790 \begin_inset Flex Code
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794 End
7795 \end_layout
7796
7797 \end_inset
7798
7799 」で閉じる必要があります。
7800 \end_layout
7801
7802 \begin_layout Description
7803 \begin_inset Flex Code
7804 status collapsed
7805
7806 \begin_layout Plain Layout
7807 ClassOptions
7808 \end_layout
7809
7810 \end_inset
7811
7812  文書クラスがサポートする様々な大域オプションを記します。説明は、
7813 \begin_inset CommandInset ref
7814 LatexCommand ref
7815 reference "subsec:ClassOptions"
7816
7817 \end_inset
7818
7819 を参照してください。「
7820 \begin_inset Flex Code
7821 status collapsed
7822
7823 \begin_layout Plain Layout
7824 End
7825 \end_layout
7826
7827 \end_inset
7828
7829 」で閉じる必要があります。
7830 \end_layout
7831
7832 \begin_layout Description
7833 \begin_inset Flex Code
7834 status collapsed
7835
7836 \begin_layout Plain Layout
7837 Columns
7838 \end_layout
7839
7840 \end_inset
7841
7842  [
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847
7848 \emph on
7849 1
7850 \end_layout
7851
7852 \end_inset
7853
7854 ,
7855 \begin_inset space \thinspace{}
7856 \end_inset
7857
7858
7859 \begin_inset Flex Code
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 2
7864 \end_layout
7865
7866 \end_inset
7867
7868 ] 文書クラスが既定で1段組か2段組かを指定します。
7869 \begin_inset Flex MenuItem
7870 status collapsed
7871
7872 \begin_layout Plain Layout
7873 文書\SpecialChar menuseparator
7874 設定
7875 \end_layout
7876
7877 \end_inset
7878
7879 ダイアログで変更することができます。
7880 \end_layout
7881
7882 \begin_layout Description
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 Counter
7888 \end_layout
7889
7890 \end_inset
7891
7892  [
7893 \begin_inset Flex Code
7894 status collapsed
7895
7896 \begin_layout Plain Layout
7897 文字列
7898 \end_layout
7899
7900 \end_inset
7901
7902 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 End
7908 \end_layout
7909
7910 \end_inset
7911
7912 」で閉じる必要があります。
7913 \begin_inset Newline newline
7914 \end_inset
7915
7916 カウンタについての詳細は、
7917 \begin_inset CommandInset ref
7918 LatexCommand ref
7919 reference "subsec:カウンタ"
7920
7921 \end_inset
7922
7923 を参照してください。
7924 \end_layout
7925
7926 \begin_layout Description
7927 \begin_inset Flex Code
7928 status collapsed
7929
7930 \begin_layout Plain Layout
7931 DefaultFont
7932 \end_layout
7933
7934 \end_inset
7935
7936  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7937 \begin_inset CommandInset ref
7938 LatexCommand ref
7939 reference "subsec:フォント指定"
7940
7941 \end_inset
7942
7943 を参照してください。「
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 EndFont
7949 \end_layout
7950
7951 \end_inset
7952
7953 」で閉じる必要があります。
7954 \end_layout
7955
7956 \begin_layout Description
7957 \begin_inset Flex Code
7958 status collapsed
7959
7960 \begin_layout Plain Layout
7961 DefaultModule
7962 \end_layout
7963
7964 \end_inset
7965
7966  [
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 <モジュール>
7972 \end_layout
7973
7974 \end_inset
7975
7976 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 .module
7982 \end_layout
7983
7984 \end_inset
7985
7986 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7987 既存の文書にこの文書クラスが選択したときのみ該当します)。
7988 \end_layout
7989
7990 \begin_layout Description
7991 \begin_inset Flex Code
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 DefaultStyle
7996 \end_layout
7997
7998 \end_inset
7999
8000  [
8001 \begin_inset Flex Code
8002 status collapsed
8003
8004 \begin_layout Plain Layout
8005 <様式>
8006 \end_layout
8007
8008 \end_inset
8009
8010 ]
8011 \lang english
8012  
8013 \lang japanese
8014 これは新規段落に割り当てられる様式であり、通常は
8015 \begin_inset Flex MenuItem
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 標準
8020 \end_layout
8021
8022 \end_inset
8023
8024 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
8025 \end_layout
8026
8027 \begin_layout Description
8028 \begin_inset Flex Code
8029 status collapsed
8030
8031 \begin_layout Plain Layout
8032 ExcludesModule
8033 \end_layout
8034
8035 \end_inset
8036
8037  [
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 <モジュール>
8043 \end_layout
8044
8045 \end_inset
8046
8047 ] このタグは、指定されたモジュール—
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 .module
8053 \end_layout
8054
8055 \end_inset
8056
8057 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
8058 に振る
8059 \begin_inset Flex Code
8060 status collapsed
8061
8062 \begin_layout Plain Layout
8063 theorems-sec
8064 \end_layout
8065
8066 \end_inset
8067
8068 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
8069 \emph on
8070 使用してはいけません
8071 \emph default
8072 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
8073 \begin_inset CommandInset ref
8074 LatexCommand ref
8075 reference "subsec:レイアウトモジュール"
8076
8077 \end_inset
8078
8079 参照)。
8080 \end_layout
8081
8082 \begin_layout Description
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087 Float
8088 \end_layout
8089
8090 \end_inset
8091
8092  フロートを新規に定義します。詳細は、
8093 \begin_inset CommandInset ref
8094 LatexCommand ref
8095 reference "subsec:フロート"
8096
8097 \end_inset
8098
8099 を参照してください。「
8100 \begin_inset Flex Code
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 End
8105 \end_layout
8106
8107 \end_inset
8108
8109 」で閉じる必要があります。
8110 \end_layout
8111
8112 \begin_layout Description
8113 \begin_inset Flex Code
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 HTMLPreamble
8118 \end_layout
8119
8120 \end_inset
8121
8122  この文書クラスがXHTMLに出力されるときに、
8123 \begin_inset Flex Code
8124 status collapsed
8125
8126 \begin_layout Plain Layout
8127 <head>
8128 \end_layout
8129
8130 \end_inset
8131
8132 ブロックに出力される情報です。これより前に出現した
8133 \begin_inset Flex Code
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 HTMLPreamble
8138 \end_layout
8139
8140 \end_inset
8141
8142
8143 \begin_inset Flex Code
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 AddToHTMLPreamble
8148 \end_layout
8149
8150 \end_inset
8151
8152 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 AddToHTMLPreamble
8158 \end_layout
8159
8160 \end_inset
8161
8162 を使用してください)。これは「
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 EndPreamble
8168 \end_layout
8169
8170 \end_inset
8171
8172 」で閉じる必要があります。
8173 \end_layout
8174
8175 \begin_layout Description
8176 \begin_inset Flex Code
8177 status collapsed
8178
8179 \begin_layout Plain Layout
8180 HTMLTOCSection
8181 \end_layout
8182
8183 \end_inset
8184
8185  [
8186 \begin_inset Flex Code
8187 status collapsed
8188
8189 \begin_layout Plain Layout
8190 <様式>
8191 \end_layout
8192
8193 \end_inset
8194
8195 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
8196 。これを指定しない場合には、\SpecialChar LyX
8197 はどのレイアウトを使用するべきか、解析しようと試みます。
8198 \end_layout
8199
8200 \begin_layout Description
8201 \begin_inset Flex Code
8202 status collapsed
8203
8204 \begin_layout Plain Layout
8205 IfCounter 
8206 \end_layout
8207
8208 \end_inset
8209
8210  [
8211 \begin_inset Flex Code
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 <カウンタ>
8216 \end_layout
8217
8218 \end_inset
8219
8220 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
8221 \begin_inset Flex Code
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225 End
8226 \end_layout
8227
8228 \end_inset
8229
8230 」で閉じる必要があります。
8231 \begin_inset Newline newline
8232 \end_inset
8233
8234 カウンタについての詳細は、
8235 \begin_inset CommandInset ref
8236 LatexCommand ref
8237 reference "subsec:カウンタ"
8238
8239 \end_inset
8240
8241 をご覧ください。
8242 \end_layout
8243
8244 \begin_layout Description
8245 \begin_inset Flex Code
8246 status collapsed
8247
8248 \begin_layout Plain Layout
8249 IfStyle
8250 \end_layout
8251
8252 \end_inset
8253
8254  [
8255 \begin_inset Flex Code
8256 status collapsed
8257
8258 \begin_layout Plain Layout
8259 <様式>
8260 \end_layout
8261
8262 \end_inset
8263
8264 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
8265 \begin_inset Flex Code
8266 status collapsed
8267
8268 \begin_layout Plain Layout
8269 End
8270 \end_layout
8271
8272 \end_inset
8273
8274 」で閉じる必要があります。
8275 \end_layout
8276
8277 \begin_layout Description
8278 \begin_inset Flex Code
8279 status collapsed
8280
8281 \begin_layout Plain Layout
8282 Input
8283 \end_layout
8284
8285 \end_inset
8286
8287  [
8288 \begin_inset Flex Code
8289 status collapsed
8290
8291 \begin_layout Plain Layout
8292 <ファイル名>
8293 \end_layout
8294
8295 \end_inset
8296
8297 ]
8298 \lang english
8299  
8300 \lang japanese
8301 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8302 のほとんどを収録している
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 stdclass.inc
8308 \end_layout
8309
8310 \end_inset
8311
8312 のような標準レイアウトファイルです。
8313 \end_layout
8314
8315 \begin_layout Description
8316 \begin_inset Flex Code
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 InsetLayout
8321 \end_layout
8322
8323 \end_inset
8324
8325  [
8326 \begin_inset Flex Code
8327 status collapsed
8328
8329 \begin_layout Plain Layout
8330 <型>
8331 \end_layout
8332
8333 \end_inset
8334
8335 ]
8336 \lang english
8337  
8338 \lang japanese
8339 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8340 \begin_inset Flex Code
8341 status collapsed
8342
8343 \begin_layout Plain Layout
8344 End
8345 \end_layout
8346
8347 \end_inset
8348
8349 」で閉じる必要があります。
8350 \begin_inset Newline newline
8351 \end_inset
8352
8353 詳しい情報は、
8354 \begin_inset CommandInset ref
8355 LatexCommand ref
8356 reference "subsec:任意設定差込枠"
8357
8358 \end_inset
8359
8360 をご覧ください。
8361 \end_layout
8362
8363 \begin_layout Description
8364 \begin_inset Flex Code
8365 status collapsed
8366
8367 \begin_layout Plain Layout
8368 LeftMargin
8369 \end_layout
8370
8371 \end_inset
8372
8373  [
8374 \begin_inset Flex Code
8375 status collapsed
8376
8377 \begin_layout Plain Layout
8378 文字列
8379 \end_layout
8380
8381 \end_inset
8382
8383 ] 画面上の左余白の幅を指示する文字列。例:「
8384 \begin_inset Flex Code
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 MMMMM
8389 \end_layout
8390
8391 \end_inset
8392
8393 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8394 \end_layout
8395
8396 \begin_layout Description
8397 \begin_inset Flex Code
8398 status collapsed
8399
8400 \begin_layout Plain Layout
8401 NoCounter
8402 \end_layout
8403
8404 \end_inset
8405
8406  [
8407 \begin_inset Flex Code
8408 status collapsed
8409
8410 \begin_layout Plain Layout
8411 <カウンタ>
8412 \end_layout
8413
8414 \end_inset
8415
8416 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8417 \end_layout
8418
8419 \begin_layout Description
8420 \begin_inset Flex Code
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 NoFloat
8425 \end_layout
8426
8427 \end_inset
8428
8429  [
8430 \begin_inset Flex Code
8431 status collapsed
8432
8433 \begin_layout Plain Layout
8434 <フロート>
8435 \end_layout
8436
8437 \end_inset
8438
8439 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8440 \end_layout
8441
8442 \begin_layout Description
8443 \begin_inset Flex Code
8444 status collapsed
8445
8446 \begin_layout Plain Layout
8447 NoStyle
8448 \end_layout
8449
8450 \end_inset
8451
8452  [
8453 \begin_inset Flex Code
8454 status collapsed
8455
8456 \begin_layout Plain Layout
8457 <様式>
8458 \end_layout
8459
8460 \end_inset
8461
8462 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8463 \end_layout
8464
8465 \begin_layout Description
8466 \begin_inset Flex Code
8467 status collapsed
8468
8469 \begin_layout Plain Layout
8470 OutputFormat
8471 \end_layout
8472
8473 \end_inset
8474
8475  [
8476 \begin_inset Flex Code
8477 status collapsed
8478
8479 \begin_layout Plain Layout
8480 <形式>
8481 \end_layout
8482
8483 \end_inset
8484
8485 ] このクラスによって生成されるファイル形式を示す文字列(
8486 \family sans
8487 設定
8488 \family default
8489 ダイアログで定義される形のもの)。おもに、
8490 \begin_inset Flex Code
8491 status collapsed
8492
8493 \begin_layout Plain Layout
8494 OutputType
8495 \end_layout
8496
8497 \end_inset
8498
8499
8500 \begin_inset Flex Code
8501 status collapsed
8502
8503 \begin_layout Plain Layout
8504 literate
8505 \end_layout
8506
8507 \end_inset
8508
8509 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8510 \begin_inset Flex Code
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 OutputType
8515 \end_layout
8516
8517 \end_inset
8518
8519 パラメーターに遭遇したときには、この文字列は、「
8520 \begin_inset Flex Code
8521 status collapsed
8522
8523 \begin_layout Plain Layout
8524 docbook
8525 \end_layout
8526
8527 \end_inset
8528
8529 」・「
8530 \begin_inset Flex Code
8531 status collapsed
8532
8533 \begin_layout Plain Layout
8534 lat
8535 \emph on
8536 ex
8537 \end_layout
8538
8539 \end_inset
8540
8541 」のいずれかにリセットされます。
8542 \end_layout
8543
8544 \begin_layout Description
8545 \begin_inset Flex Code
8546 status collapsed
8547
8548 \begin_layout Plain Layout
8549 OutputType
8550 \end_layout
8551
8552 \end_inset
8553
8554  [
8555 \begin_inset Flex Code
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559
8560 \emph on
8561 lat
8562 \emph default
8563 ex
8564 \end_layout
8565
8566 \end_inset
8567
8568
8569 \begin_inset Flex Code
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 docbook
8574 \end_layout
8575
8576 \end_inset
8577
8578
8579 \begin_inset Flex Code
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 literate
8584 \end_layout
8585
8586 \end_inset
8587
8588 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8589 \end_layout
8590
8591 \begin_layout Description
8592 \begin_inset Flex Code
8593 status collapsed
8594
8595 \begin_layout Plain Layout
8596 PackageOptions
8597 \end_layout
8598
8599 \end_inset
8600
8601  [
8602 \begin_inset Flex Code
8603 status collapsed
8604
8605 \begin_layout Plain Layout
8606 文字列
8607 \end_layout
8608
8609 \end_inset
8610
8611  
8612 \begin_inset Flex Code
8613 status collapsed
8614
8615 \begin_layout Plain Layout
8616 文字列
8617 \end_layout
8618
8619 \end_inset
8620
8621 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8622 \begin_inset Flex Code
8623 status collapsed
8624
8625 \begin_layout Plain Layout
8626 PackageOptions natbib square
8627 \end_layout
8628
8629 \end_inset
8630
8631 」とすると、
8632 \begin_inset Flex Code
8633 status collapsed
8634
8635 \begin_layout Plain Layout
8636 natbib
8637 \end_layout
8638
8639 \end_inset
8640
8641
8642 \begin_inset Flex Code
8643 status collapsed
8644
8645 \begin_layout Plain Layout
8646 square
8647 \end_layout
8648
8649 \end_inset
8650
8651 オプションとともに読み込みます(\SpecialChar TeX
8652 perts向けに述べると、これは、
8653 \begin_inset Flex Code
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 natbib
8658 \end_layout
8659
8660 \end_inset
8661
8662 を読み込む前に、\SpecialChar LyX
8663
8664 \begin_inset Flex Code
8665 status collapsed
8666
8667 \begin_layout Plain Layout
8668
8669 \backslash
8670 PassOptionsToPackage{natbib}{square}
8671 \end_layout
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 PageStyle
8684 \end_layout
8685
8686 \end_inset
8687
8688  [
8689 \emph on
8690
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 plain
8696 \end_layout
8697
8698 \end_inset
8699
8700
8701 \emph default
8702
8703 \begin_inset Flex Code
8704 status collapsed
8705
8706 \begin_layout Plain Layout
8707 empty
8708 \end_layout
8709
8710 \end_inset
8711
8712
8713 \begin_inset Flex Code
8714 status collapsed
8715
8716 \begin_layout Plain Layout
8717 headings
8718 \end_layout
8719
8720 \end_inset
8721
8722 ] 既定ページ様式。
8723 \begin_inset Flex MenuItem
8724 status collapsed
8725
8726 \begin_layout Plain Layout
8727 文書\SpecialChar menuseparator
8728 設定
8729 \end_layout
8730
8731 \end_inset
8732
8733 ダイアログで変更することができます。
8734 \end_layout
8735
8736 \begin_layout Description
8737 \begin_inset Flex Code
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 Preamble
8742 \end_layout
8743
8744 \end_inset
8745
8746  \SpecialChar LaTeX
8747 文書のプリアンブルを設定します。前に行った
8748 \begin_inset Flex Code
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 Preamble
8753 \end_layout
8754
8755 \end_inset
8756
8757 宣言や
8758 \begin_inset Flex Code
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 AddToPreamble
8763 \end_layout
8764
8765 \end_inset
8766
8767 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8768 \begin_inset Flex Code
8769 status collapsed
8770
8771 \begin_layout Plain Layout
8772 AddToPreamble
8773 \end_layout
8774
8775 \end_inset
8776
8777 を使用してください。)「
8778 \begin_inset Flex Code
8779 status collapsed
8780
8781 \begin_layout Plain Layout
8782 EndPreamble
8783 \end_layout
8784
8785 \end_inset
8786
8787 」で閉じる必要があります。
8788 \end_layout
8789
8790 \begin_layout Description
8791 \begin_inset Flex Code
8792 status collapsed
8793
8794 \begin_layout Plain Layout
8795 Provides
8796 \end_layout
8797
8798 \end_inset
8799
8800  [
8801 \begin_inset Flex Code
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 文字列
8806 \end_layout
8807
8808 \end_inset
8809
8810 ] [
8811 \begin_inset Flex Code
8812 status collapsed
8813
8814 \begin_layout Plain Layout
8815
8816 \emph on
8817 0
8818 \end_layout
8819
8820 \end_inset
8821
8822
8823 \begin_inset Flex Code
8824 status collapsed
8825
8826 \begin_layout Plain Layout
8827 1
8828 \end_layout
8829
8830 \end_inset
8831
8832 ] このクラスが
8833 \begin_inset Flex Code
8834 status collapsed
8835
8836 \begin_layout Plain Layout
8837 文字列
8838 \end_layout
8839
8840 \end_inset
8841
8842 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8843 \begin_inset Flex Code
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847 amsmath
8848 \end_layout
8849
8850 \end_inset
8851
8852
8853 \begin_inset Flex Code
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857 makeidx
8858 \end_layout
8859
8860 \end_inset
8861
8862 ・\SpecialChar ldots
8863 )やマクロ名(
8864 \begin_inset Flex Code
8865 status collapsed
8866
8867 \begin_layout Plain Layout
8868 url
8869 \end_layout
8870
8871 \end_inset
8872
8873
8874 \begin_inset Flex Code
8875 status collapsed
8876
8877 \begin_layout Plain Layout
8878 boldsymbol
8879 \end_layout
8880
8881 \end_inset
8882
8883 ・\SpecialChar ldots
8884 )です。機能一覧については、
8885 \begin_inset CommandInset ref
8886 LatexCommand ref
8887 reference "chap:関数一覧"
8888
8889 \end_inset
8890
8891 を参照。
8892 \end_layout
8893
8894 \begin_layout Description
8895 \begin_inset Flex Code
8896 status collapsed
8897
8898 \begin_layout Plain Layout
8899 ProvidesModule
8900 \end_layout
8901
8902 \end_inset
8903
8904  [
8905 \begin_inset Flex Code
8906 status collapsed
8907
8908 \begin_layout Plain Layout
8909 文字列
8910 \end_layout
8911
8912 \end_inset
8913
8914 ] このレイアウトが
8915 \begin_inset Flex Code
8916 status collapsed
8917
8918 \begin_layout Plain Layout
8919 文字列
8920 \end_layout
8921
8922 \end_inset
8923
8924 で表されているモジュールの機能を提供することを示し、
8925 \begin_inset Flex Code
8926 status collapsed
8927
8928 \begin_layout Plain Layout
8929 .module
8930 \end_layout
8931
8932 \end_inset
8933
8934 拡張子を除いたファイル名で指定します。
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939 DefaultModule
8940 \end_layout
8941
8942 \end_inset
8943
8944 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8945 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8946 \end_layout
8947
8948 \begin_layout Description
8949 \begin_inset Flex Code
8950 status collapsed
8951
8952 \begin_layout Plain Layout
8953 Requires
8954 \end_layout
8955
8956 \end_inset
8957
8958  [
8959 \begin_inset Flex Code
8960 status collapsed
8961
8962 \begin_layout Plain Layout
8963 文字列
8964 \end_layout
8965
8966 \end_inset
8967
8968 ] このクラスが
8969 \begin_inset Flex Code
8970 status collapsed
8971
8972 \begin_layout Plain Layout
8973 文字列
8974 \end_layout
8975
8976 \end_inset
8977
8978 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8979 さい(機能一覧については
8980 \begin_inset CommandInset ref
8981 LatexCommand ref
8982 reference "chap:関数一覧"
8983
8984 \end_inset
8985
8986 を参照)。
8987 \lang english
8988 If you require a package with specific options, you can additionally use
8989  
8990 \begin_inset Flex Code
8991 status collapsed
8992
8993 \begin_layout Plain Layout
8994
8995 \lang english
8996 PackageOptions
8997 \end_layout
8998
8999 \end_inset
9000
9001 .
9002 \end_layout
9003
9004 \begin_layout Description
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009 RightMargin
9010 \end_layout
9011
9012 \end_inset
9013
9014  [
9015 \begin_inset Flex Code
9016 status collapsed
9017
9018 \begin_layout Plain Layout
9019 文字列
9020 \end_layout
9021
9022 \end_inset
9023
9024 ] 画面上の右余白の幅を指示する文字列。例:「
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 MMMMM
9030 \end_layout
9031
9032 \end_inset
9033
9034 」。
9035 \end_layout
9036
9037 \begin_layout Description
9038 \begin_inset Flex Code
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042 SecNumDepth
9043 \end_layout
9044
9045 \end_inset
9046
9047  [
9048 \begin_inset Flex Code
9049 status collapsed
9050
9051 \begin_layout Plain Layout
9052 int=3
9053 \end_layout
9054
9055 \end_inset
9056
9057 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
9058 における
9059 \begin_inset Flex Code
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 secnumdepth
9064 \end_layout
9065
9066 \end_inset
9067
9068 カウンタに対応します。
9069 \end_layout
9070
9071 \begin_layout Description
9072 \begin_inset Flex Code
9073 status collapsed
9074
9075 \begin_layout Plain Layout
9076 Sides
9077 \end_layout
9078
9079 \end_inset
9080
9081  [
9082 \emph on
9083
9084 \begin_inset Flex Code
9085 status collapsed
9086
9087 \begin_layout Plain Layout
9088 1
9089 \end_layout
9090
9091 \end_inset
9092
9093
9094 \emph default
9095 ,
9096 \begin_inset space \thinspace{}
9097 \end_inset
9098
9099
9100 \begin_inset Flex Code
9101 status collapsed
9102
9103 \begin_layout Plain Layout
9104 2
9105 \end_layout
9106
9107 \end_inset
9108
9109 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
9110 \begin_inset Flex MenuItem
9111 status collapsed
9112
9113 \begin_layout Plain Layout
9114 文書\SpecialChar menuseparator
9115 設定
9116 \end_layout
9117
9118 \end_inset
9119
9120 ダイアログで変更することができます。
9121 \end_layout
9122
9123 \begin_layout Description
9124 \begin_inset Flex Code
9125 status collapsed
9126
9127 \begin_layout Plain Layout
9128 Style
9129 \end_layout
9130
9131 \end_inset
9132
9133  [
9134 \begin_inset Flex Code
9135 status collapsed
9136
9137 \begin_layout Plain Layout
9138 <名称>
9139 \end_layout
9140
9141 \end_inset
9142
9143 ]
9144 \lang english
9145  
9146 \lang japanese
9147 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
9148 \begin_inset Flex Code
9149 status collapsed
9150
9151 \begin_layout Plain Layout
9152 End
9153 \end_layout
9154
9155 \end_inset
9156
9157 」で閉じる必要があります。
9158 \begin_inset Newline newline
9159 \end_inset
9160
9161 段落様式に関する詳細は、
9162 \begin_inset CommandInset ref
9163 LatexCommand ref
9164 reference "subsec:段落様式-XHTML"
9165
9166 \end_inset
9167
9168 をご覧ください。
9169 \end_layout
9170
9171 \begin_layout Description
9172 \begin_inset Flex Code
9173 status collapsed
9174
9175 \begin_layout Plain Layout
9176 TitleLatexName
9177 \end_layout
9178
9179 \end_inset
9180
9181  [
9182 \begin_inset Flex Code
9183 status collapsed
9184
9185 \begin_layout Plain Layout
9186 文字列="maketitle"
9187 \end_layout
9188
9189 \end_inset
9190
9191
9192 \begin_inset Flex Code
9193 status collapsed
9194
9195 \begin_layout Plain Layout
9196 TitleLatexType
9197 \end_layout
9198
9199 \end_inset
9200
9201 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
9202  
9203 \begin_inset Flex Code
9204 status collapsed
9205
9206 \begin_layout Plain Layout
9207 TitleLatexType
9208 \end_layout
9209
9210 \end_inset
9211
9212 .
9213 \end_layout
9214
9215 \begin_layout Description
9216 \begin_inset Flex Code
9217 status collapsed
9218
9219 \begin_layout Plain Layout
9220 TitleLatexType
9221 \end_layout
9222
9223 \end_inset
9224
9225  [
9226 \begin_inset Flex Code
9227 status collapsed
9228
9229 \begin_layout Plain Layout
9230
9231 \emph on
9232 CommandAfter
9233 \end_layout
9234
9235 \end_inset
9236
9237
9238 \begin_inset Flex Code
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 Environment
9243 \end_layout
9244
9245 \end_inset
9246
9247 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 CommandAfter
9253 \end_layout
9254
9255 \end_inset
9256
9257 は、「
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 InTitle
9263 \begin_inset space ~
9264 \end_inset
9265
9266 1
9267 \end_layout
9268
9269 \end_inset
9270
9271 」が指定されている最後のレイアウトの後に、
9272 \begin_inset Flex Code
9273 status collapsed
9274
9275 \begin_layout Plain Layout
9276 TitleLatexName
9277 \end_layout
9278
9279 \end_inset
9280
9281 で指定したマクロ名を挿入することを意味します。
9282 \begin_inset Flex Code
9283 status collapsed
9284
9285 \begin_layout Plain Layout
9286 Environment
9287 \end_layout
9288
9289 \end_inset
9290
9291 は、「
9292 \begin_inset Flex Code
9293 status collapsed
9294
9295 \begin_layout Plain Layout
9296 InTitle
9297 \begin_inset space ~
9298 \end_inset
9299
9300 1
9301 \end_layout
9302
9303 \end_inset
9304
9305 」を持つ段落群を
9306 \begin_inset Flex Code
9307 status collapsed
9308
9309 \begin_layout Plain Layout
9310 TitleLatexName
9311 \end_layout
9312
9313 \end_inset
9314
9315 で指定した環境でくるむ場合に対応します。
9316 \end_layout
9317
9318 \begin_layout Description
9319 \begin_inset Flex Code
9320 status collapsed
9321
9322 \begin_layout Plain Layout
9323 TocDepth
9324 \end_layout
9325
9326 \end_inset
9327
9328  [
9329 \begin_inset Flex Code
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333 int=3
9334 \end_layout
9335
9336 \end_inset
9337
9338 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9339
9340 \begin_inset Flex Code
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344 tocdepth
9345 \end_layout
9346
9347 \end_inset
9348
9349 カウンタに対応します。
9350 \end_layout
9351
9352 \begin_layout Subsection
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 ClassOptions
9358 \end_layout
9359
9360 \end_inset
9361
9362
9363 \begin_inset CommandInset label
9364 LatexCommand label
9365 name "subsec:ClassOptions"
9366
9367 \end_inset
9368
9369
9370 \end_layout
9371
9372 \begin_layout Standard
9373 \begin_inset Flex Code
9374 status collapsed
9375
9376 \begin_layout Plain Layout
9377 ClassOptions
9378 \end_layout
9379
9380 \end_inset
9381
9382 部は、以下の項目を取り得ます。
9383 \end_layout
9384
9385 \begin_layout Description
9386 \begin_inset Flex Code
9387 status collapsed
9388
9389 \begin_layout Plain Layout
9390 FontSize
9391 \end_layout
9392
9393 \end_inset
9394
9395  [
9396 \begin_inset Flex Code
9397 status collapsed
9398
9399 \begin_layout Plain Layout
9400 文字列="10|11|12"
9401 \end_layout
9402
9403 \end_inset
9404
9405 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9406 \begin_inset Flex Code
9407 status collapsed
9408
9409 \begin_layout Plain Layout
9410 |
9411 \end_layout
9412
9413 \end_inset
9414
9415 」で区切ります。
9416 \end_layout
9417
9418 \begin_layout Description
9419 \begin_inset Flex Code
9420 status collapsed
9421
9422 \begin_layout Plain Layout
9423 Header
9424 \end_layout
9425
9426 \end_inset
9427
9428  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9429 \begin_inset Quotes eld
9430 \end_inset
9431
9432 -//OASIS//DTD DocBook V4.2//EN
9433 \begin_inset Quotes erd
9434 \end_inset
9435
9436
9437 \end_layout
9438
9439 \begin_layout Description
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 PageStyle
9445 \end_layout
9446
9447 \end_inset
9448
9449  [
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 文字列="empty|plain|headings|fancy"
9455 \end_layout
9456
9457 \end_inset
9458
9459 ] 使用できるページ様式の一覧です。「
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 |
9465 \end_layout
9466
9467 \end_inset
9468
9469 」で区切ります。
9470 \end_layout
9471
9472 \begin_layout Description
9473 \begin_inset Flex Code
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477 Other
9478 \end_layout
9479
9480 \end_inset
9481
9482  [
9483 \begin_inset Flex Code
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 文字列=""
9488 \end_layout
9489
9490 \end_inset
9491
9492
9493 \begin_inset Flex Code
9494 status collapsed
9495
9496 \begin_layout Plain Layout
9497
9498 \backslash
9499 documentclass
9500 \end_layout
9501
9502 \end_inset
9503
9504 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9505 \end_layout
9506
9507 \begin_layout Standard
9508 \begin_inset Flex Code
9509 status collapsed
9510
9511 \begin_layout Plain Layout
9512 ClassOptions
9513 \end_layout
9514
9515 \end_inset
9516
9517 部は「
9518 \begin_inset Flex Code
9519 status collapsed
9520
9521 \begin_layout Plain Layout
9522 End
9523 \end_layout
9524
9525 \end_inset
9526
9527 」で閉じる必要があります。
9528 \end_layout
9529
9530 \begin_layout Subsection
9531 段落様式
9532 \begin_inset CommandInset label
9533 LatexCommand label
9534 name "subsec:段落様式"
9535
9536 \end_inset
9537
9538
9539 \end_layout
9540
9541 \begin_layout Standard
9542 段落様式の記述は、以下のようになります
9543 \begin_inset Foot
9544 status collapsed
9545
9546 \begin_layout Plain Layout
9547 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9548 \end_layout
9549
9550 \end_inset
9551
9552
9553 \end_layout
9554
9555 \begin_layout LyX-Code
9556 Style 
9557 \family roman
9558 \emph on
9559 名称
9560 \end_layout
9561
9562 \begin_layout LyX-Code
9563  ...
9564 \end_layout
9565
9566 \begin_layout LyX-Code
9567 End
9568 \end_layout
9569
9570 \begin_layout Standard
9571 ここでは、以下のコマンドを使用することができます。
9572 \end_layout
9573
9574 \begin_layout Description
9575 \begin_inset Flex Code
9576 status collapsed
9577
9578 \begin_layout Plain Layout
9579 Align
9580 \end_layout
9581
9582 \end_inset
9583
9584  [
9585 \begin_inset Flex Code
9586 status collapsed
9587
9588 \begin_layout Plain Layout
9589
9590 \emph on
9591 block
9592 \emph default
9593 , left, right, center
9594 \end_layout
9595
9596 \end_inset
9597
9598 ] 段落の揃え。
9599 \end_layout
9600
9601 \begin_layout Description
9602 \begin_inset Flex Code
9603 status collapsed
9604
9605 \begin_layout Plain Layout
9606 AlignPossible
9607 \end_layout
9608
9609 \end_inset
9610
9611  [
9612 \begin_inset Flex Code
9613 status collapsed
9614
9615 \begin_layout Plain Layout
9616
9617 \emph on
9618 block
9619 \emph default
9620 , left, right, center
9621 \end_layout
9622
9623 \end_inset
9624
9625 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9626 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9627 はできません)。
9628 \end_layout
9629
9630 \begin_layout Description
9631 \begin_inset Flex Code
9632 status collapsed
9633
9634 \begin_layout Plain Layout
9635 Argument
9636 \end_layout
9637
9638 \end_inset
9639
9640  [
9641 \begin_inset Flex Code
9642 status collapsed
9643
9644 \begin_layout Plain Layout
9645 整数
9646 \end_layout
9647
9648 \end_inset
9649
9650 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9651 でのみ意味を持ちます。コマンドまたは環
9652 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9653 \begin_inset Flex Code
9654 status collapsed
9655
9656 \begin_layout Plain Layout
9657 EndArgument
9658 \end_layout
9659
9660 \end_inset
9661
9662 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9663 \begin_inset Separator parbreak
9664 \end_inset
9665
9666
9667 \end_layout
9668
9669 \begin_deeper
9670 \begin_layout Quote
9671
9672 \family typewriter
9673 Argument 1
9674 \end_layout
9675
9676 \begin_layout Quote
9677
9678 \family typewriter
9679 ...
9680 \end_layout
9681
9682 \begin_layout Quote
9683
9684 \family typewriter
9685 EndArgument
9686 \end_layout
9687
9688 \begin_layout Quote
9689
9690 \family typewriter
9691 Argument 2
9692 \end_layout
9693
9694 \begin_layout Quote
9695
9696 \family typewriter
9697 ...
9698 \end_layout
9699
9700 \begin_layout Quote
9701
9702 \family typewriter
9703 EndArgument
9704 \end_layout
9705
9706 \begin_layout Standard
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 Argument
9712 \end_layout
9713
9714 \end_inset
9715
9716 定義内部では、以下の指定をすることができます。
9717 \end_layout
9718
9719 \begin_layout Itemize
9720 \begin_inset Flex Code
9721 status collapsed
9722
9723 \begin_layout Plain Layout
9724 LabelString
9725 \end_layout
9726
9727 \end_inset
9728
9729  
9730 \begin_inset Flex Code
9731 status collapsed
9732
9733 \begin_layout Plain Layout
9734 [文字列]
9735 \end_layout
9736
9737 \end_inset
9738
9739  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9740 \begin_inset Flex Code
9741 status collapsed
9742
9743 \begin_layout Plain Layout
9744 MenuString
9745 \end_layout
9746
9747 \end_inset
9748
9749 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9750 \begin_inset space \space{}
9751 \end_inset
9752
9753
9754 \begin_inset Quotes eld
9755 \end_inset
9756
9757
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 Short Title|S
9763 \end_layout
9764
9765 \end_inset
9766
9767
9768 \begin_inset Quotes erd
9769 \end_inset
9770
9771 )。
9772 \end_layout
9773
9774 \begin_layout Itemize
9775 \begin_inset Flex Code
9776 status collapsed
9777
9778 \begin_layout Plain Layout
9779 MenuString
9780 \end_layout
9781
9782 \end_inset
9783
9784  
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 [文字列]
9790 \end_layout
9791
9792 \end_inset
9793
9794  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9795 \begin_inset space \space{}
9796 \end_inset
9797
9798
9799 \begin_inset Quotes eld
9800 \end_inset
9801
9802
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 Short Title|S
9808 \end_layout
9809
9810 \end_inset
9811
9812
9813 \begin_inset Quotes erd
9814 \end_inset
9815
9816 )。この指定は必須ではありません。指定しない場合には、代わりに
9817 \begin_inset Flex Code
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 LabelString
9822 \end_layout
9823
9824 \end_inset
9825
9826 がメニューに用いられます。
9827 \end_layout
9828
9829 \begin_layout Itemize
9830 \begin_inset Flex Code
9831 status collapsed
9832
9833 \begin_layout Plain Layout
9834 Tooltip
9835 \end_layout
9836
9837 \end_inset
9838
9839  
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844 [文字列]
9845 \end_layout
9846
9847 \end_inset
9848
9849  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9850 \end_layout
9851
9852 \begin_layout Itemize
9853 \begin_inset Flex Code
9854 status collapsed
9855
9856 \begin_layout Plain Layout
9857 Mandatory
9858 \end_layout
9859
9860 \end_inset
9861
9862  [
9863 \begin_inset Flex Code
9864 status collapsed
9865
9866 \begin_layout Plain Layout
9867
9868 \emph on
9869 0
9870 \end_layout
9871
9872 \end_inset
9873
9874 ,
9875 \begin_inset space \thinspace{}
9876 \end_inset
9877
9878
9879 \begin_inset Flex Code
9880 status collapsed
9881
9882 \begin_layout Plain Layout
9883 1
9884 \end_layout
9885
9886 \end_inset
9887
9888 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9889 。既定では、必須引数は
9890 \begin_inset Flex Code
9891 status collapsed
9892
9893 \begin_layout Plain Layout
9894 {...}
9895 \end_layout
9896
9897 \end_inset
9898
9899 で区切られ、非必須引数は
9900 \begin_inset Flex Code
9901 status collapsed
9902
9903 \begin_layout Plain Layout
9904 [...]
9905 \end_layout
9906
9907 \end_inset
9908
9909 で区切られます。
9910 \end_layout
9911
9912 \begin_layout Itemize
9913 \begin_inset Flex Code
9914 status collapsed
9915
9916 \begin_layout Plain Layout
9917 Requires
9918 \end_layout
9919
9920 \end_inset
9921
9922  
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 [整数=0]
9928 \end_layout
9929
9930 \end_inset
9931
9932  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9933 コマンドでは、
9934 \begin_inset Flex Code
9935 status collapsed
9936
9937 \begin_layout Plain Layout
9938
9939 \backslash
9940 command[][引数]{文字列}
9941 \end_layout
9942
9943 \end_inset
9944
9945 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9946 \begin_inset Flex Code
9947 status collapsed
9948
9949 \begin_layout Plain Layout
9950 Argument 2
9951 \end_layout
9952
9953 \end_inset
9954
9955 中に
9956 \begin_inset Flex Code
9957 status collapsed
9958
9959 \begin_layout Plain Layout
9960 Requires 1
9961 \end_layout
9962
9963 \end_inset
9964
9965 ステートメントを置くことで実現できます。
9966 \end_layout
9967
9968 \begin_layout Itemize
9969 \begin_inset Flex Code
9970 status collapsed
9971
9972 \begin_layout Plain Layout
9973 LeftDelim
9974 \end_layout
9975
9976 \end_inset
9977
9978  
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 [文字列]
9984 \end_layout
9985
9986 \end_inset
9987
9988  (
9989 \begin_inset Flex Code
9990 status collapsed
9991
9992 \begin_layout Plain Layout
9993 {
9994 \end_layout
9995
9996 \end_inset
9997
9998
9999 \begin_inset Flex Code
10000 status collapsed
10001
10002 \begin_layout Plain Layout
10003 [
10004 \end_layout
10005
10006 \end_inset
10007
10008 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013 <br/>
10014 \end_layout
10015
10016 \end_inset
10017
10018 で指示できます。
10019 \end_layout
10020
10021 \begin_layout Itemize
10022 \begin_inset Flex Code
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026 RightDelim
10027 \end_layout
10028
10029 \end_inset
10030
10031  
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 [文字列]
10037 \end_layout
10038
10039 \end_inset
10040
10041  (
10042 \begin_inset Flex Code
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 }
10047 \end_layout
10048
10049 \end_inset
10050
10051
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 ]
10057 \end_layout
10058
10059 \end_inset
10060
10061 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 <br/>
10067 \end_layout
10068
10069 \end_inset
10070
10071 で指示できます。
10072 \end_layout
10073
10074 \begin_layout Itemize
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 DefaultArg
10080 \end_layout
10081
10082 \end_inset
10083
10084  
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 [文字列]
10090 \end_layout
10091
10092 \end_inset
10093
10094  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10095 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
10096 \end_layout
10097
10098 \begin_layout Itemize
10099 \begin_inset Flex Code
10100 status collapsed
10101
10102 \begin_layout Plain Layout
10103 PresetArg
10104 \end_layout
10105
10106 \end_inset
10107
10108  
10109 \begin_inset Flex Code
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113 [文字列]
10114 \end_layout
10115
10116 \end_inset
10117
10118  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
10119 \end_layout
10120
10121 \begin_layout Itemize
10122 \begin_inset Flex Code
10123 status collapsed
10124
10125 \begin_layout Plain Layout
10126 Font
10127 \end_layout
10128
10129 \end_inset
10130
10131  引数の内容に用いられるフォント。
10132 \begin_inset CommandInset ref
10133 LatexCommand ref
10134 reference "subsec:フォント指定"
10135
10136 \end_inset
10137
10138 参照。
10139 \end_layout
10140
10141 \begin_layout Itemize
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 LabelFont
10147 \end_layout
10148
10149 \end_inset
10150
10151  ラベルに用いられるフォント。
10152 \begin_inset CommandInset ref
10153 LatexCommand ref
10154 reference "subsec:フォント指定"
10155
10156 \end_inset
10157
10158 参照。
10159 \end_layout
10160
10161 \begin_layout Itemize
10162 \begin_inset Flex Code
10163 status collapsed
10164
10165 \begin_layout Plain Layout
10166 Decoration
10167 \end_layout
10168
10169 \end_inset
10170
10171  [
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176
10177 \emph on
10178 Classic
10179 \emph default
10180 , Minimalistic, Conglomerate
10181 \end_layout
10182
10183 \end_inset
10184
10185 ] 差込枠の枠とボタンに用いられる装飾様式。
10186 \end_layout
10187
10188 \begin_layout Itemize
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 AutoInsert
10194 \end_layout
10195
10196 \end_inset
10197
10198  
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 [整数=0]
10204 \end_layout
10205
10206 \end_inset
10207
10208  これが
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 1
10214 \end_layout
10215
10216 \end_inset
10217
10218 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
10219 \end_layout
10220
10221 \begin_layout Itemize
10222
10223 \lang english
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228
10229 \lang english
10230 InsertCotext
10231 \end_layout
10232
10233 \end_inset
10234
10235  
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240
10241 \lang english
10242 [int=0]
10243 \end_layout
10244
10245 \end_inset
10246
10247  If this is set to 
10248 \begin_inset Flex Code
10249 status collapsed
10250
10251 \begin_layout Plain Layout
10252
10253 \lang english
10254 1
10255 \end_layout
10256
10257 \end_inset
10258
10259 , this argument will be inserted with a copy of the co-text (either selected
10260  text or the whole paragraph) as content.
10261 \end_layout
10262
10263 \begin_layout Itemize
10264
10265 \lang english
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270
10271 \lang english
10272 PassThruChars
10273 \end_layout
10274
10275 \end_inset
10276
10277  [
10278 \begin_inset Flex Code
10279 status collapsed
10280
10281 \begin_layout Plain Layout
10282
10283 \lang english
10284 string of characters
10285 \end_layout
10286
10287 \end_inset
10288
10289 ]
10290 \family typewriter
10291  
10292 \family default
10293 Defines individual characters that should be output in raw form, meaning
10294  without special translations that \SpecialChar LaTeX
10295  would require.
10296  Note that, contrary to PassThru, this needs to be explicitly defined for
10297  arguments.
10298  That is, arguments do not inherit PassThruChars from their parent inset
10299  or layout.
10300 \end_layout
10301
10302 \begin_layout Standard
10303 既定では、
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 LatexType
10309 \end_layout
10310
10311 \end_inset
10312
10313
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 Command
10319 \end_layout
10320
10321 \end_inset
10322
10323 のとき、各レイアウトで\SpecialChar LyX
10324 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10325 \begin_inset Flex Code
10326 status collapsed
10327
10328 \begin_layout Plain Layout
10329 post:
10330 \end_layout
10331
10332 \end_inset
10333
10334 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 post:1
10340 \end_layout
10341
10342 \end_inset
10343
10344 となります。後置引数は、
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 Command
10350 \end_layout
10351
10352 \end_inset
10353
10354 以外の
10355 \begin_inset Flex Code
10356 status collapsed
10357
10358 \begin_layout Plain Layout
10359 LatexType
10360 \end_layout
10361
10362 \end_inset
10363
10364 では無視されます。
10365 \end_layout
10366
10367 \begin_layout Standard
10368 (
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373
10374 \backslash
10375 item[foo]
10376 \end_layout
10377
10378 \end_inset
10379
10380 のような)箇条書き
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385
10386 \backslash
10387 item
10388 \end_layout
10389
10390 \end_inset
10391
10392 の引数は、前置句
10393 \begin_inset Flex Code
10394 status collapsed
10395
10396 \begin_layout Plain Layout
10397 item:
10398 \end_layout
10399
10400 \end_inset
10401
10402 の後に番号を付けます(例:
10403 \begin_inset Flex Code
10404 status collapsed
10405
10406 \begin_layout Plain Layout
10407 Argument item:1
10408 \end_layout
10409
10410 \end_inset
10411
10412 )。
10413 \end_layout
10414
10415 \end_deeper
10416 \begin_layout Description
10417 \begin_inset Flex Code
10418 status collapsed
10419
10420 \begin_layout Plain Layout
10421 BabelPreamble
10422 \end_layout
10423
10424 \end_inset
10425
10426  これは、前に現れたこの様式の
10427 \begin_inset Flex Code
10428 status collapsed
10429
10430 \begin_layout Plain Layout
10431 BabelPreamble
10432 \end_layout
10433
10434 \end_inset
10435
10436 宣言をすべて、完全に上書きしますので注意してください。「
10437 \begin_inset Flex Code
10438 status collapsed
10439
10440 \begin_layout Plain Layout
10441 EndBabelPreamble
10442 \end_layout
10443
10444 \end_inset
10445
10446 」で閉じる必要があります。これの利用法についての詳細は、第
10447 \begin_inset CommandInset ref
10448 LatexCommand ref
10449 reference "subsec:段落様式の国際化"
10450
10451 \end_inset
10452
10453 節をご覧ください。
10454 \end_layout
10455
10456 \begin_layout Description
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 BottomSep
10462 \end_layout
10463
10464 \end_inset
10465
10466  [
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 浮動小数点型=0
10472 \end_layout
10473
10474 \end_inset
10475
10476 ]
10477 \begin_inset Foot
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481 ここで「浮動小数点型」とは1.5のような実数を指します。
10482 \end_layout
10483
10484 \end_inset
10485
10486  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10487 す。
10488 \end_layout
10489
10490 \begin_layout Description
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 Category
10496 \end_layout
10497
10498 \end_inset
10499
10500  [
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 文字列
10506 \end_layout
10507
10508 \end_inset
10509
10510 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10511 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10512 \end_layout
10513
10514 \begin_layout Description
10515 \begin_inset Flex Code
10516 status collapsed
10517
10518 \begin_layout Plain Layout
10519 CommandDepth
10520 \end_layout
10521
10522 \end_inset
10523
10524  XMLコマンドの深度。XML型の書式でのみ使用されます。
10525 \end_layout
10526
10527 \begin_layout Description
10528 \begin_inset Flex Code
10529 status collapsed
10530
10531 \begin_layout Plain Layout
10532 CopyStyle
10533 \end_layout
10534
10535 \end_inset
10536
10537  [
10538 \begin_inset Flex Code
10539 status collapsed
10540
10541 \begin_layout Plain Layout
10542 文字列
10543 \end_layout
10544
10545 \end_inset
10546
10547 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10548 \end_layout
10549
10550 \begin_layout Description
10551 \begin_inset Flex Code
10552 status collapsed
10553
10554 \begin_layout Plain Layout
10555 DependsOn
10556 \end_layout
10557
10558 \end_inset
10559
10560  [
10561 \begin_inset Flex Code
10562 status collapsed
10563
10564 \begin_layout Plain Layout
10565 <名称>
10566 \end_layout
10567
10568 \end_inset
10569
10570 ]
10571 \lang english
10572  
10573 \lang japanese
10574 この
10575 \emph on
10576 前に
10577 \emph default
10578 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10579 \begin_inset Foot
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10584 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10585 あります。
10586 \end_layout
10587
10588 \end_inset
10589
10590
10591 \end_layout
10592
10593 \begin_layout Description
10594 \begin_inset Flex Code
10595 status collapsed
10596
10597 \begin_layout Plain Layout
10598 EndLabeltype
10599 \end_layout
10600
10601 \end_inset
10602
10603  [
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608
10609 \emph on
10610 No_Label
10611 \emph default
10612 , Box, Filled_Box, Static
10613 \end_layout
10614
10615 \end_inset
10616
10617 ] 段落の最後(あるいは
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 LatexType
10623 \end_layout
10624
10625 \end_inset
10626
10627 が、
10628 \begin_inset Flex Code
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 Environment
10633 \end_layout
10634
10635 \end_inset
10636
10637
10638 \begin_inset Flex Code
10639 status collapsed
10640
10641 \begin_layout Plain Layout
10642 Item_Environment
10643 \end_layout
10644
10645 \end_inset
10646
10647
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 List_Environment
10653 \end_layout
10654
10655 \end_inset
10656
10657 のいずれかの場合は、段落群の最後)に置くラベル。
10658 \begin_inset Flex Code
10659 status collapsed
10660
10661 \begin_layout Plain Layout
10662 No_Label
10663 \end_layout
10664
10665 \end_inset
10666
10667 の場合は「何もない」ことを指し、
10668 \begin_inset Flex Code
10669 status collapsed
10670
10671 \begin_layout Plain Layout
10672 Box
10673 \end_layout
10674
10675 \end_inset
10676
10677 (あるいは
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 Filled_Box
10683 \end_layout
10684
10685 \end_inset
10686
10687 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 Static
10693 \end_layout
10694
10695 \end_inset
10696
10697 は明示したテキスト文字列を指します。
10698 \end_layout
10699
10700 \begin_layout Description
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 EndLabelString
10706 \end_layout
10707
10708 \end_inset
10709
10710  [
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 文字列=""
10716 \end_layout
10717
10718 \end_inset
10719
10720
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725 Static
10726 \end_layout
10727
10728 \end_inset
10729
10730
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 EndLabelType
10736 \end_layout
10737
10738 \end_inset
10739
10740 のラベルで用いる文字列。
10741 \end_layout
10742
10743 \begin_layout Description
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 Font
10749 \end_layout
10750
10751 \end_inset
10752
10753  本文テキストとラベルの
10754 \emph on
10755 両方で
10756 \emph default
10757 用いられるフォント。第
10758 \begin_inset CommandInset ref
10759 LatexCommand ref
10760 reference "subsec:フォント指定"
10761
10762 \end_inset
10763
10764 節を参照。このフォントを定義すると、自動的に
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 LabelFont
10770 \end_layout
10771
10772 \end_inset
10773
10774 も同じ値で定義されることに注意してください。したがって、
10775 \begin_inset Flex Code
10776 status collapsed
10777
10778 \begin_layout Plain Layout
10779 LabelFont
10780 \end_layout
10781
10782 \end_inset
10783
10784 も同時に定義したい場合には、これを先に定義してください。
10785 \end_layout
10786
10787 \begin_layout Description
10788 \begin_inset Flex Code
10789 status collapsed
10790
10791 \begin_layout Plain Layout
10792 ForceLocal
10793 \end_layout
10794
10795 \end_inset
10796
10797  [
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802 int=0
10803 \end_layout
10804
10805 \end_inset
10806
10807 ] 新しい様式を\SpecialChar LyX
10808 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10809  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10810 できます。様式の
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815 ForceLocal
10816 \end_layout
10817
10818 \end_inset
10819
10820 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10821 版の\SpecialChar LyX
10822 もこの様式を取り扱えるようになります。
10823 \begin_inset Flex Code
10824 status collapsed
10825
10826 \begin_layout Plain Layout
10827 ForceLocal
10828 \end_layout
10829
10830 \end_inset
10831
10832 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10833 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10834 \end_layout
10835
10836 \begin_layout Description
10837 \begin_inset Flex Code
10838 status collapsed
10839
10840 \begin_layout Plain Layout
10841 FreeSpacing
10842 \end_layout
10843
10844 \end_inset
10845
10846  [
10847 \emph on
10848
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 0
10854 \end_layout
10855
10856 \end_inset
10857
10858
10859 \emph default
10860 ,
10861 \begin_inset space \thinspace{}
10862 \end_inset
10863
10864
10865 \begin_inset Flex Code
10866 status collapsed
10867
10868 \begin_layout Plain Layout
10869 1
10870 \end_layout
10871
10872 \end_inset
10873
10874 ] \SpecialChar LyX
10875 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10876 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10877 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10878 \begin_inset Flex Code
10879 status collapsed
10880
10881 \begin_layout Plain Layout
10882 FreeSpacing
10883 \end_layout
10884
10885 \end_inset
10886
10887 を有効にすることが認められています。\SpecialChar LyX
10888 は、\SpecialChar LaTeX
10889 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10890 \end_layout
10891
10892 \begin_layout Description
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 HTML*
10898 \end_layout
10899
10900 \end_inset
10901
10902  これらのタグは、XHTML出力で使用されます。第
10903 \begin_inset CommandInset ref
10904 LatexCommand ref
10905 reference "subsec:段落様式-XHTML"
10906
10907 \end_inset
10908
10909 節をご覧ください。
10910 \end_layout
10911
10912 \begin_layout Description
10913 \begin_inset Flex Code
10914 status collapsed
10915
10916 \begin_layout Plain Layout
10917 InnerTag
10918 \end_layout
10919
10920 \end_inset
10921
10922  [[FIXME]] (XML型書式でのみ使用されます。)
10923 \end_layout
10924
10925 \begin_layout Description
10926 \begin_inset Flex Code
10927 status collapsed
10928
10929 \begin_layout Plain Layout
10930 InPreamble
10931 \end_layout
10932
10933 \end_inset
10934
10935  [
10936 \emph on
10937
10938 \begin_inset Flex Code
10939 status collapsed
10940
10941 \begin_layout Plain Layout
10942 0
10943 \end_layout
10944
10945 \end_inset
10946
10947
10948 \emph default
10949 ,
10950 \begin_inset space \thinspace{}
10951 \end_inset
10952
10953
10954 \begin_inset Flex Code
10955 status collapsed
10956
10957 \begin_layout Plain Layout
10958 1
10959 \end_layout
10960
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 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10974 です。これは、
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 LatexType
10980 \end_layout
10981
10982 \end_inset
10983
10984
10985 \begin_inset Flex Code
10986 status collapsed
10987
10988 \begin_layout Plain Layout
10989 Command
10990 \end_layout
10991
10992 \end_inset
10993
10994 または
10995 \begin_inset Flex Code
10996 status collapsed
10997
10998 \begin_layout Plain Layout
10999 Paragraph
11000 \end_layout
11001
11002 \end_inset
11003
11004 の様式に対してのみ動作します。
11005 \end_layout
11006
11007 \begin_layout Description
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 InTitle
11013 \end_layout
11014
11015 \end_inset
11016
11017  [
11018 \emph on
11019
11020 \begin_inset Flex Code
11021 status collapsed
11022
11023 \begin_layout Plain Layout
11024 0
11025 \end_layout
11026
11027 \end_inset
11028
11029
11030 \emph default
11031 ,
11032 \begin_inset space \thinspace{}
11033 \end_inset
11034
11035
11036 \begin_inset Flex Code
11037 status collapsed
11038
11039 \begin_layout Plain Layout
11040 1
11041 \end_layout
11042
11043 \end_inset
11044
11045
11046 \begin_inset Flex Code
11047 status collapsed
11048
11049 \begin_layout Plain Layout
11050 1
11051 \end_layout
11052
11053 \end_inset
11054
11055 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060 TitleLatexType
11061 \end_layout
11062
11063 \end_inset
11064
11065
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 TitleLatexName
11071 \end_layout
11072
11073 \end_inset
11074
11075 も参照)。
11076 \end_layout
11077
11078 \begin_layout Description
11079 \begin_inset Flex Code
11080 status collapsed
11081
11082 \begin_layout Plain Layout
11083 ItemCommand
11084 \end_layout
11085
11086 \end_inset
11087
11088  [
11089 \begin_inset Flex Code
11090 status collapsed
11091
11092 \begin_layout Plain Layout
11093 文字列="item"
11094 \end_layout
11095
11096 \end_inset
11097
11098 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11099 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
11100 出力中では
11101 \begin_inset Flex Code
11102 status collapsed
11103
11104 \begin_layout Plain Layout
11105
11106 \backslash
11107 item
11108 \end_layout
11109
11110 \end_inset
11111
11112 となります)。
11113 \end_layout
11114
11115 \begin_layout Description
11116 \begin_inset Flex Code
11117 status collapsed
11118
11119 \begin_layout Plain Layout
11120 ItemSep
11121 \end_layout
11122
11123 \end_inset
11124
11125  [
11126 \begin_inset Flex Code
11127 status collapsed
11128
11129 \begin_layout Plain Layout
11130 浮動小数点型=0
11131 \end_layout
11132
11133 \end_inset
11134
11135 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140 ParSep
11141 \end_layout
11142
11143 \end_inset
11144
11145 だけ分離されます。しかし、その環境の項目全体は、さらにこの
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 ItemSep
11151 \end_layout
11152
11153 \end_inset
11154
11155 分だけ離されます。これは
11156 \emph on
11157 乗数
11158 \emph default
11159 であることに注意してください。
11160 \end_layout
11161
11162 \begin_layout Description
11163 \begin_inset Flex Code
11164 status collapsed
11165
11166 \begin_layout Plain Layout
11167 ItemTag
11168 \end_layout
11169
11170 \end_inset
11171
11172  [[FIXME]] (XML型書式でのみ使用されます。)
11173 \end_layout
11174
11175 \begin_layout Description
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 KeepEmpty
11181 \end_layout
11182
11183 \end_inset
11184
11185  [
11186 \emph on
11187
11188 \begin_inset Flex Code
11189 status collapsed
11190
11191 \begin_layout Plain Layout
11192 0
11193 \end_layout
11194
11195 \end_inset
11196
11197
11198 \emph default
11199 ,
11200 \begin_inset space \thinspace{}
11201 \end_inset
11202
11203
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208 1
11209 \end_layout
11210
11211 \end_inset
11212
11213 ] 段落を空のままにすると、\SpecialChar LaTeX
11214 出力が空になってしまうので、通常、\SpecialChar LyX
11215 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
11216 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
11217 まないある種の改行として使用することもあります。
11218 \end_layout
11219
11220 \begin_layout Description
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225 LabelBottomsep
11226 \end_layout
11227
11228 \end_inset
11229
11230  [
11231 \begin_inset Flex Code
11232 status collapsed
11233
11234 \begin_layout Plain Layout
11235 浮動小数点型=0
11236 \end_layout
11237
11238 \end_inset
11239
11240 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11241 \begin_inset Flex Code
11242 status collapsed
11243
11244 \begin_layout Plain Layout
11245 Top_Environment
11246 \end_layout
11247
11248 \end_inset
11249
11250 および
11251 \begin_inset Newline linebreak
11252 \end_inset
11253
11254
11255 \begin_inset Flex Code
11256 status collapsed
11257
11258 \begin_layout Plain Layout
11259 Centered_Top_Environment
11260 \end_layout
11261
11262 \end_inset
11263
11264 )。
11265 \end_layout
11266
11267 \begin_layout Description
11268 \begin_inset Flex Code
11269 status collapsed
11270
11271 \begin_layout Plain Layout
11272 LabelCounter
11273 \end_layout
11274
11275 \end_inset
11276
11277  [
11278 \begin_inset Flex Code
11279 status collapsed
11280
11281 \begin_layout Plain Layout
11282 文字列=""
11283 \end_layout
11284
11285 \end_inset
11286
11287 ] 自動連番に使われるカウンタ名(詳しくは第
11288 \begin_inset CommandInset ref
11289 LatexCommand ref
11290 reference "subsec:カウンタ"
11291
11292 \end_inset
11293
11294 節参照)。カウンタがラベル中に表示されるようにするためには、
11295 \begin_inset Flex Code
11296 status collapsed
11297
11298 \begin_layout Plain Layout
11299 LabelString
11300 \end_layout
11301
11302 \end_inset
11303
11304 中で参照する必要があります。これは、少なくとも
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309 Static
11310 \end_layout
11311
11312 \end_inset
11313
11314
11315 \begin_inset Flex Code
11316 status collapsed
11317
11318 \begin_layout Plain Layout
11319 Above
11320 \end_layout
11321
11322 \end_inset
11323
11324
11325 \begin_inset Flex Code
11326 status collapsed
11327
11328 \begin_layout Plain Layout
11329 Centered
11330 \end_layout
11331
11332 \end_inset
11333
11334 の各
11335 \begin_inset Flex Code
11336 status collapsed
11337
11338 \begin_layout Plain Layout
11339 LabelType
11340 \end_layout
11341
11342 \end_inset
11343
11344 で動作します。
11345 \begin_inset Newline newline
11346 \end_inset
11347
11348 また、
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353 LabelType
11354 \end_layout
11355
11356 \end_inset
11357
11358
11359 \begin_inset Flex Code
11360 status collapsed
11361
11362 \begin_layout Plain Layout
11363 Enumerate
11364 \end_layout
11365
11366 \end_inset
11367
11368 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11369 \begin_inset Flex Code
11370 status collapsed
11371
11372 \begin_layout Plain Layout
11373 LabelCounter myenum
11374 \end_layout
11375
11376 \end_inset
11377
11378 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11379 におけるのと同様、実際に使われるカウンタは、
11380 \begin_inset Flex Code
11381 status collapsed
11382
11383 \begin_layout Plain Layout
11384 myenumi
11385 \end_layout
11386
11387 \end_inset
11388
11389
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 myenumii
11395 \end_layout
11396
11397 \end_inset
11398
11399
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 myenumii
11405 \end_layout
11406
11407 \end_inset
11408
11409
11410 \begin_inset Flex Code
11411 status collapsed
11412
11413 \begin_layout Plain Layout
11414 myenumiv
11415 \end_layout
11416
11417 \end_inset
11418
11419 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11420 \begin_inset Newline newline
11421 \end_inset
11422
11423 カウンタの詳細については、
11424 \begin_inset CommandInset ref
11425 LatexCommand ref
11426 reference "subsec:カウンタ"
11427
11428 \end_inset
11429
11430 をご覧ください。
11431 \end_layout
11432
11433 \begin_layout Description
11434 \begin_inset Flex Code
11435 status collapsed
11436
11437 \begin_layout Plain Layout
11438 LabelFont
11439 \end_layout
11440
11441 \end_inset
11442
11443  ラベルに使用されるフォント。
11444 \begin_inset CommandInset ref
11445 LatexCommand ref
11446 reference "subsec:フォント指定"
11447
11448 \end_inset
11449
11450 を参照。
11451 \end_layout
11452
11453 \begin_layout Description
11454 \begin_inset Flex Code
11455 status collapsed
11456
11457 \begin_layout Plain Layout
11458 LabelIndent
11459 \end_layout
11460
11461 \end_inset
11462
11463  [
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468 文字列=""
11469 \end_layout
11470
11471 \end_inset
11472
11473 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11474 \end_layout
11475
11476 \begin_layout Description
11477 \begin_inset Flex Code
11478 status collapsed
11479
11480 \begin_layout Plain Layout
11481 LabelSep
11482 \end_layout
11483
11484 \end_inset
11485
11486  [
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491 文字列=""
11492 \end_layout
11493
11494 \end_inset
11495
11496 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11497 \end_layout
11498
11499 \begin_layout Description
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 LabelString
11505 \end_layout
11506
11507 \end_inset
11508
11509  [
11510 \begin_inset Flex Code
11511 status collapsed
11512
11513 \begin_layout Plain Layout
11514 文字列=""
11515 \end_layout
11516
11517 \end_inset
11518
11519
11520 \begin_inset Flex Code
11521 status collapsed
11522
11523 \begin_layout Plain Layout
11524 Static
11525 \end_layout
11526
11527 \end_inset
11528
11529 ラベル型でラベルに使用する文字列。
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534 LabelCounter
11535 \end_layout
11536
11537 \end_inset
11538
11539 を設定している場合、
11540 \begin_inset CommandInset ref
11541 LatexCommand ref
11542 reference "subsec:カウンタ"
11543
11544 \end_inset
11545
11546 に述べられている特別な整形コマンドを含めることができます。
11547 \end_layout
11548
11549 \begin_layout Description
11550 \begin_inset Flex Code
11551 status collapsed
11552
11553 \begin_layout Plain Layout
11554 LabelStringAppendix
11555 \end_layout
11556
11557 \end_inset
11558
11559  [
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 文字列=""
11565 \end_layout
11566
11567 \end_inset
11568
11569 ] これは付録の中で
11570 \begin_inset Flex Code
11571 status collapsed
11572
11573 \begin_layout Plain Layout
11574 LabelString
11575 \end_layout
11576
11577 \end_inset
11578
11579 の代わりに用いられます。各
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 LabelString
11585 \end_layout
11586
11587 \end_inset
11588
11589 ステートメントは、
11590 \begin_inset Flex Code
11591 status collapsed
11592
11593 \begin_layout Plain Layout
11594 LabelStringAppendix
11595 \end_layout
11596
11597 \end_inset
11598
11599 をもリセットすることに注意してください。
11600 \end_layout
11601
11602 \begin_layout Description
11603 \begin_inset Flex Code
11604 status collapsed
11605
11606 \begin_layout Plain Layout
11607 LabelTag
11608 \end_layout
11609
11610 \end_inset
11611
11612  [FIXME] (XML型書式でのみ使用されます。)
11613 \end_layout
11614
11615 \begin_layout Description
11616 \begin_inset Flex Code
11617 status collapsed
11618
11619 \begin_layout Plain Layout
11620 LabelType
11621 \end_layout
11622
11623 \end_inset
11624
11625  [
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630
11631 \emph on
11632 No_Label
11633 \emph default
11634 , Manual, Static, Above,
11635 \begin_inset Newline newline
11636 \end_inset
11637
11638 Centered, Sensitive, Enumerate,
11639 \begin_inset Newline newline
11640 \end_inset
11641
11642 Itemize, Bibliography
11643 \end_layout
11644
11645 \end_inset
11646
11647 ]
11648 \begin_inset Separator parbreak
11649 \end_inset
11650
11651
11652 \end_layout
11653
11654 \begin_deeper
11655 \begin_layout Description
11656 \begin_inset Flex Code
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660 Manual
11661 \end_layout
11662
11663 \end_inset
11664
11665  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11666 \end_layout
11667
11668 \begin_layout Description
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673 Static
11674 \end_layout
11675
11676 \end_inset
11677
11678  は、ラベルが
11679 \begin_inset Flex Code
11680 status collapsed
11681
11682 \begin_layout Plain Layout
11683 LabelString
11684 \end_layout
11685
11686 \end_inset
11687
11688 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11689 \begin_inset Flex Code
11690 status collapsed
11691
11692 \begin_layout Plain Layout
11693 LatexType
11694 \end_layout
11695
11696 \end_inset
11697
11698
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 Environment
11704 \end_layout
11705
11706 \end_inset
11707
11708 のときは、連続する同じ
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 Style
11714 \end_layout
11715
11716 \end_inset
11717
11718 の段落中、最初の段落にのみ表示されます。
11719 \end_layout
11720
11721 \begin_layout Description
11722 \begin_inset Flex Code
11723 status collapsed
11724
11725 \begin_layout Plain Layout
11726 Above
11727 \end_layout
11728
11729 \end_inset
11730
11731 および
11732 \begin_inset Flex Code
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 Centered
11737 \end_layout
11738
11739 \end_inset
11740
11741  は、
11742 \begin_inset Flex Code
11743 status collapsed
11744
11745 \begin_layout Plain Layout
11746 Static
11747 \end_layout
11748
11749 \end_inset
11750
11751 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11752 \end_layout
11753
11754 \begin_layout Description
11755 \begin_inset Flex Code
11756 status collapsed
11757
11758 \begin_layout Plain Layout
11759 Sensitive
11760 \end_layout
11761
11762 \end_inset
11763
11764  はキャプションラベルの「図」や「表」の特別な場合です。
11765 \begin_inset Flex Code
11766 status collapsed
11767
11768 \begin_layout Plain Layout
11769 Sensitive
11770 \end_layout
11771
11772 \end_inset
11773
11774 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11775 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780 LabelString
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 Enumerate
11794 \end_layout
11795
11796 \end_inset
11797
11798  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11799 す。
11800 \end_layout
11801
11802 \begin_layout Description
11803 \begin_inset Flex Code
11804 status collapsed
11805
11806 \begin_layout Plain Layout
11807 Itemize
11808 \end_layout
11809
11810 \end_inset
11811
11812  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11813 \end_layout
11814
11815 \begin_layout Description
11816 \begin_inset Flex Code
11817 status collapsed
11818
11819 \begin_layout Plain Layout
11820 Bibliography
11821 \end_layout
11822
11823 \end_inset
11824
11825  は、
11826 \begin_inset Flex Code
11827 status collapsed
11828
11829 \begin_layout Plain Layout
11830 LatexType BibEnvironment
11831 \end_layout
11832
11833 \end_inset
11834
11835 とともにのみ使用されます。
11836 \end_layout
11837
11838 \end_deeper
11839 \begin_layout Description
11840 \begin_inset Flex Code
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 LangPreamble
11845 \end_layout
11846
11847 \end_inset
11848
11849  これは、この様式で既に出現した
11850 \begin_inset Flex Code
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 LangPreamble
11855 \end_layout
11856
11857 \end_inset
11858
11859 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11860 \begin_inset CommandInset ref
11861 LatexCommand ref
11862 reference "subsec:段落様式の国際化"
11863
11864 \end_inset
11865
11866 をご覧ください。
11867 \end_layout
11868
11869 \begin_layout Description
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 LatexName
11875 \end_layout
11876
11877 \end_inset
11878
11879  [
11880 \begin_inset Flex Code
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884 <名称>
11885 \end_layout
11886
11887 \end_inset
11888
11889 ] 対応する\SpecialChar LaTeX
11890 の名称です。環境名かコマンド名を指します。
11891 \end_layout
11892
11893 \begin_layout Description
11894 \begin_inset Flex Code
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898 LatexParam
11899 \end_layout
11900
11901 \end_inset
11902
11903  [
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 <パラメータ>
11909 \end_layout
11910
11911 \end_inset
11912
11913 ] 対応する
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 LatexName
11919 \end_layout
11920
11921 \end_inset
11922
11923 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11924 内部から変更することはできません(変更可能なパラメータには
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 Argument
11930 \end_layout
11931
11932 \end_inset
11933
11934 を使用してください)。これは、全ての\SpecialChar LaTeX
11935  
11936 \begin_inset Flex Code
11937 status collapsed
11938
11939 \begin_layout Plain Layout
11940 Argument
11941 \end_layout
11942
11943 \end_inset
11944
11945 の後にそのままの形で出力されます。
11946 \end_layout
11947
11948 \begin_layout Description
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953 LatexType
11954 \end_layout
11955
11956 \end_inset
11957
11958  [
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963
11964 \emph on
11965 Paragraph
11966 \emph default
11967 , Command, Environment, Item_Environment,
11968 \begin_inset Newline newline
11969 \end_inset
11970
11971 List_Environment, Bib_Environment
11972 \end_layout
11973
11974 \end_inset
11975
11976 ] レイアウトがどのように\SpecialChar LaTeX
11977 に変換されるべきかを示します
11978 \begin_inset Foot
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 これらのルールはSGMLクラスにも適用されるので、
11983 \begin_inset Flex Code
11984 status collapsed
11985
11986 \begin_layout Plain Layout
11987 LatexType
11988 \end_layout
11989
11990 \end_inset
11991
11992 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 db_*.inc
11998 \end_layout
11999
12000 \end_inset
12001
12002 )を見てください。
12003 \end_layout
12004
12005 \end_inset
12006
12007
12008 \begin_inset Separator parbreak
12009 \end_inset
12010
12011
12012 \end_layout
12013
12014 \begin_deeper
12015 \begin_layout Description
12016 \begin_inset Flex Code
12017 status collapsed
12018
12019 \begin_layout Plain Layout
12020 Paragraph
12021 \end_layout
12022
12023 \end_inset
12024
12025  は、何も特別なことは意味しません。
12026 \end_layout
12027
12028 \begin_layout Description
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033 Command
12034 \end_layout
12035
12036 \end_inset
12037
12038  は、
12039 \begin_inset Flex Code
12040 status collapsed
12041
12042 \begin_layout Plain Layout
12043
12044 \backslash
12045
12046 \emph on
12047 LatexName
12048 \emph default
12049 {\SpecialChar ldots
12050 }
12051 \end_layout
12052
12053 \end_inset
12054
12055 を意味します。
12056 \end_layout
12057
12058 \begin_layout Description
12059 \begin_inset Flex Code
12060 status collapsed
12061
12062 \begin_layout Plain Layout
12063 Environment
12064 \end_layout
12065
12066 \end_inset
12067
12068  は、
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073
12074 \backslash
12075 begin{
12076 \emph on
12077 LatexName
12078 \emph default
12079 }\SpecialChar ldots
12080
12081 \backslash
12082 end{
12083 \emph on
12084 LatexName
12085 \emph default
12086 }
12087 \end_layout
12088
12089 \end_inset
12090
12091 を意味します。
12092 \end_layout
12093
12094 \begin_layout Description
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 Item_Environment
12100 \end_layout
12101
12102 \end_inset
12103
12104  は
12105 \begin_inset Flex Code
12106 status collapsed
12107
12108 \begin_layout Plain Layout
12109 Environment
12110 \end_layout
12111
12112 \end_inset
12113
12114 と同じですが、
12115 \begin_inset Flex Code
12116 status collapsed
12117
12118 \begin_layout Plain Layout
12119
12120 \backslash
12121 item
12122 \end_layout
12123
12124 \end_inset
12125
12126 がこの環境のすべての段落に付けられるところだけが異なっています。
12127 \end_layout
12128
12129 \begin_layout Description
12130 \begin_inset Flex Code
12131 status collapsed
12132
12133 \begin_layout Plain Layout
12134 List_Environment
12135 \end_layout
12136
12137 \end_inset
12138
12139  は
12140 \begin_inset Flex Code
12141 status collapsed
12142
12143 \begin_layout Plain Layout
12144 Item_Environment
12145 \end_layout
12146
12147 \end_inset
12148
12149 と同じですが、
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 LabelWidthString
12155 \end_layout
12156
12157 \end_inset
12158
12159 が環境の引数として渡されるところだけが異なっています。
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 LabelWidthString
12165 \end_layout
12166
12167 \end_inset
12168
12169 は、
12170 \begin_inset Flex MenuItem
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 編集\SpecialChar menuseparator
12175 段落設定
12176 \end_layout
12177
12178 \end_inset
12179
12180 ダイアログで定義することができます。
12181 \end_layout
12182
12183 \begin_layout Description
12184 \begin_inset Flex Code
12185 status collapsed
12186
12187 \begin_layout Plain Layout
12188 Bib_Environment
12189 \end_layout
12190
12191 \end_inset
12192
12193  は
12194 \begin_inset Flex Code
12195 status collapsed
12196
12197 \begin_layout Plain Layout
12198 Environment
12199 \end_layout
12200
12201 \end_inset
12202
12203 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
12204 \begin_inset Newline newline
12205 \end_inset
12206
12207
12208 \begin_inset Flex Code
12209 status collapsed
12210
12211 \begin_layout Plain Layout
12212
12213 \backslash
12214 begin{thebibliography}{99}
12215 \end_layout
12216
12217 \end_inset
12218
12219
12220 \begin_inset Newline newline
12221 \end_inset
12222
12223 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
12224 \end_layout
12225
12226 \begin_layout Standard
12227 上記最後のいくつかをまとめると、\SpecialChar LaTeX
12228 出力は、\SpecialChar LaTeX
12229 型に依存して
12230 \end_layout
12231
12232 \begin_layout LyX-Code
12233
12234 \backslash
12235 LatexName[LatexParam]{\SpecialChar ldots
12236 }
12237 \end_layout
12238
12239 \begin_layout Standard
12240 のようになるか、
12241 \end_layout
12242
12243 \begin_layout LyX-Code
12244
12245 \backslash
12246 begin{LatexName}[LatexParam] \SpecialChar ldots
12247  
12248 \backslash
12249 end{LatexName}.
12250 \end_layout
12251
12252 \begin_layout Standard
12253 となります。
12254 \end_layout
12255
12256 \end_deeper
12257 \begin_layout Description
12258 \begin_inset Flex Code
12259 status collapsed
12260
12261 \begin_layout Plain Layout
12262 LeftDelim
12263 \end_layout
12264
12265 \end_inset
12266
12267  [
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272 文字列
12273 \end_layout
12274
12275 \end_inset
12276
12277 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282 <br/>
12283 \end_layout
12284
12285 \end_inset
12286
12287 で指示できます。
12288 \end_layout
12289
12290 \begin_layout Description
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 LeftMargin
12296 \end_layout
12297
12298 \end_inset
12299
12300  [
12301 \begin_inset Flex Code
12302 status collapsed
12303
12304 \begin_layout Plain Layout
12305 文字列=""
12306 \end_layout
12307
12308 \end_inset
12309
12310 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12311 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12312 \end_inset
12313
12314 をかけて加えられます。このパラメータは、
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 Margin
12320 \end_layout
12321
12322 \end_inset
12323
12324
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 Manual
12330 \end_layout
12331
12332 \end_inset
12333
12334 あるいは
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 Dynamic
12340 \end_layout
12341
12342 \end_inset
12343
12344 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12345 \begin_inset Newline newline
12346 \end_inset
12347
12348 たとえば「
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353 MM
12354 \end_layout
12355
12356 \end_inset
12357
12358 」と指定すると、段落を通常フォントの「
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 MM
12364 \end_layout
12365
12366 \end_inset
12367
12368 」の幅だけ行頭下げを行います。文字列の前に「
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373 -
12374 \end_layout
12375
12376 \end_inset
12377
12378 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12379 \end_layout
12380
12381 \begin_layout Description
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 Margin
12387 \end_layout
12388
12389 \end_inset
12390
12391  [
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396
12397 \emph on
12398 Static
12399 \emph default
12400 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12401 \end_layout
12402
12403 \end_inset
12404
12405
12406 \begin_inset Newline newline
12407 \end_inset
12408
12409 このレイアウトの左余白の種類です。
12410 \begin_inset Separator parbreak
12411 \end_inset
12412
12413
12414 \end_layout
12415
12416 \begin_deeper
12417 \begin_layout Description
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 Static
12423 \end_layout
12424
12425 \end_inset
12426
12427  は固定余白を示します。
12428 \end_layout
12429
12430 \begin_layout Description
12431 \begin_inset Flex Code
12432 status collapsed
12433
12434 \begin_layout Plain Layout
12435 Manual
12436 \end_layout
12437
12438 \end_inset
12439
12440  は、左余白が
12441 \begin_inset Flex MenuItem
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 編集\SpecialChar menuseparator
12446 段落設定
12447 \end_layout
12448
12449 \end_inset
12450
12451 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12452 \end_layout
12453
12454 \begin_layout Description
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459 Dynamic
12460 \end_layout
12461
12462 \end_inset
12463
12464  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12465  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12466 \end_layout
12467
12468 \begin_layout Description
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473 First_Dynamic
12474 \end_layout
12475
12476 \end_inset
12477
12478  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12479 \end_layout
12480
12481 \begin_layout Description
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 Right_Address_Box
12487 \end_layout
12488
12489 \end_inset
12490
12491  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12492 \end_layout
12493
12494 \end_deeper
12495 \begin_layout Description
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 NeedProtect
12501 \end_layout
12502
12503 \end_inset
12504
12505  [
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510
12511 \emph on
12512 0
12513 \end_layout
12514
12515 \end_inset
12516
12517 ,
12518 \begin_inset space \thinspace{}
12519 \end_inset
12520
12521
12522 \begin_inset Flex Code
12523 status collapsed
12524
12525 \begin_layout Plain Layout
12526 1
12527 \end_layout
12528
12529 \end_inset
12530
12531 ] このレイアウト中の脆弱なコマンドが
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536
12537 \backslash
12538 protect
12539 \end_layout
12540
12541 \end_inset
12542
12543 されるべきか否か(註:これはこのコマンド自体が
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548
12549 \backslash
12550 protect
12551 \end_layout
12552
12553 \end_inset
12554
12555 されるべきかでは
12556 \emph on
12557 ありません
12558 \emph default
12559 )。
12560 \end_layout
12561
12562 \begin_layout Description
12563 \begin_inset Flex Code
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 Newline
12568 \end_layout
12569
12570 \end_inset
12571
12572  [
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 0
12578 \end_layout
12579
12580 \end_inset
12581
12582 ,
12583 \begin_inset space \thinspace{}
12584 \end_inset
12585
12586
12587 \begin_inset Flex Code
12588 status collapsed
12589
12590 \begin_layout Plain Layout
12591
12592 \emph on
12593 1
12594 \end_layout
12595
12596 \end_inset
12597
12598 ] 新規行を\SpecialChar LaTeX
12599 の新規行(
12600 \begin_inset Flex Code
12601 status collapsed
12602
12603 \begin_layout Plain Layout
12604
12605 \backslash
12606
12607 \backslash
12608
12609 \end_layout
12610
12611 \end_inset
12612
12613 )に変換するか否か。\SpecialChar LyX
12614 中で\SpecialChar LaTeX
12615 編集をやりやすくするために、変換は無効にすることができます。
12616 \end_layout
12617
12618 \begin_layout Description
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
12634 \emph on
12635 0
12636 \end_layout
12637
12638 \end_inset
12639
12640 ,
12641 \begin_inset space \thinspace{}
12642 \end_inset
12643
12644
12645 \begin_inset Flex Code
12646 status collapsed
12647
12648 \begin_layout Plain Layout
12649 1
12650 \end_layout
12651
12652 \end_inset
12653
12654 ] 次の段落に最初の行の行頭下げを許すか否か。
12655 \begin_inset Flex Code
12656 status collapsed
12657
12658 \begin_layout Plain Layout
12659 1
12660 \end_layout
12661
12662 \end_inset
12663
12664 は許可しないことを意味し、
12665 \begin_inset Flex Code
12666 status collapsed
12667
12668 \begin_layout Plain Layout
12669 0
12670 \end_layout
12671
12672 \end_inset
12673
12674 は望むならば行頭下げできることを意味します。
12675 \end_layout
12676
12677 \begin_layout Description
12678 \begin_inset Flex Code
12679 status collapsed
12680
12681 \begin_layout Plain Layout
12682 ObsoletedBy
12683 \end_layout
12684
12685 \end_inset
12686
12687  [
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692 <名称>
12693 \end_layout
12694
12695 \end_inset
12696
12697 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12698 \end_layout
12699
12700 \begin_layout Description
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 ParagraphGroup
12706 \end_layout
12707
12708 \end_inset
12709
12710  [
12711 \begin_inset Flex Code
12712 status collapsed
12713
12714 \begin_layout Plain Layout
12715 0
12716 \end_layout
12717
12718 \end_inset
12719
12720 ,
12721 \begin_inset space \thinspace{}
12722 \end_inset
12723
12724
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 1
12730 \end_layout
12731
12732 \end_inset
12733
12734
12735 \lang english
12736 Determines whether consecutive pragraphs of the same type are treated as
12737  belonging together.
12738  This has the effect that the 
12739 \begin_inset Flex Code
12740 status collapsed
12741
12742 \begin_layout Plain Layout
12743
12744 \lang english
12745 GuiLabel
12746 \end_layout
12747
12748 \end_inset
12749
12750  is only printed once before such a group.
12751  By default, this is true for 
12752 \begin_inset Flex Code
12753 status collapsed
12754
12755 \begin_layout Plain Layout
12756
12757 \lang english
12758 LaTeXType
12759 \end_layout
12760
12761 \end_inset
12762
12763  
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768
12769 \lang english
12770 Environment
12771 \end_layout
12772
12773 \end_inset
12774
12775  and 
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780
12781 \lang english
12782 Bib_Environment
12783 \end_layout
12784
12785 \end_inset
12786
12787  and false for all other types.
12788 \end_layout
12789
12790 \begin_layout Description
12791 \begin_inset Flex Code
12792 status collapsed
12793
12794 \begin_layout Plain Layout
12795 ParbreakIsNewline
12796 \end_layout
12797
12798 \end_inset
12799
12800  [
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805
12806 \emph on
12807 0
12808 \end_layout
12809
12810 \end_inset
12811
12812 ,
12813 \begin_inset space \thinspace{}
12814 \end_inset
12815
12816
12817 \begin_inset Flex Code
12818 status collapsed
12819
12820 \begin_layout Plain Layout
12821 1
12822 \end_layout
12823
12824 \end_inset
12825
12826 ] \SpecialChar LaTeX
12827 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 PassThru 1
12833 \end_layout
12834
12835 \end_inset
12836
12837 と併用すれば、(\SpecialChar TeX
12838 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12839 \end_layout
12840
12841 \begin_layout Description
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 ParIndent
12847 \end_layout
12848
12849 \end_inset
12850
12851  [
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 文字列=""
12857 \end_layout
12858
12859 \end_inset
12860
12861 ] 段落の最初の行の行頭下げ。レイアウトによっては
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 Parindent
12867 \end_layout
12868
12869 \end_inset
12870
12871 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 NextNoIndent
12877 \end_layout
12878
12879 \end_inset
12880
12881 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 Parindent
12887 \end_layout
12888
12889 \end_inset
12890
12891 ではなく、この環境の
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 Parindent
12897 \end_layout
12898
12899 \end_inset
12900
12901 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12902 \end_layout
12903
12904 \begin_layout Description
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909 ParSep
12910 \end_layout
12911
12912 \end_inset
12913
12914  [
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 浮動小数点型=0
12920 \end_layout
12921
12922 \end_inset
12923
12924 ] このレイアウトの2段落間の垂直余白。
12925 \end_layout
12926
12927 \begin_layout Description
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 Parskip
12933 \end_layout
12934
12935 \end_inset
12936
12937  [
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942 浮動小数点型=0
12943 \end_layout
12944
12945 \end_inset
12946
12947 ] \SpecialChar LyX
12948 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12949 択した際には、\SpecialChar LaTeX
12950 型「段落」レイアウトの
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 ParIndent
12956 \end_layout
12957
12958 \end_inset
12959
12960 は無視され、すべての段落はこの
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 Parskip
12966 \end_layout
12967
12968 \end_inset
12969
12970 引数分だけ引き離されます。垂直余白は、
12971 \begin_inset Flex Code
12972 status collapsed
12973
12974 \begin_layout Plain Layout
12975 DefaultHeight
12976 \end_layout
12977
12978 \end_inset
12979
12980 を標準フォントでの1行の高さとすると、
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 Parskipの値
12986 \end_layout
12987
12988 \end_inset
12989
12990
12991 \begin_inset Formula $\times$
12992 \end_inset
12993
12994
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999 DefaultHeight
13000 \end_layout
13001
13002 \end_inset
13003
13004 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
13005 \end_layout
13006
13007 \begin_layout Description
13008 \begin_inset Flex Code
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 PassThru
13013 \end_layout
13014
13015 \end_inset
13016
13017  [
13018 \emph on
13019
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 0
13025 \end_layout
13026
13027 \end_inset
13028
13029
13030 \emph default
13031 ,
13032 \begin_inset space \thinspace{}
13033 \end_inset
13034
13035
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 1
13041 \end_layout
13042
13043 \end_inset
13044
13045 ] この段落の内容が、\SpecialChar LaTeX
13046 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
13047 \end_layout
13048
13049 \begin_layout Description
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 PassThruChars
13055 \end_layout
13056
13057 \end_inset
13058
13059  [
13060 \begin_inset Flex Code
13061 status collapsed
13062
13063 \begin_layout Plain Layout
13064 文字列
13065 \end_layout
13066
13067 \end_inset
13068
13069 ]
13070 \family typewriter
13071  
13072 \family default
13073 \lang english
13074 Defines individual characters that should be output in raw form, meaning
13075  without special translations that \SpecialChar LaTeX
13076  would require.
13077 \end_layout
13078
13079 \begin_layout Description
13080 \begin_inset Flex Code
13081 status collapsed
13082
13083 \begin_layout Plain Layout
13084 Preamble
13085 \end_layout
13086
13087 \end_inset
13088
13089  この様式が使用されたときに、\SpecialChar LaTeX
13090 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 EndPreamble
13096 \end_layout
13097
13098 \end_inset
13099
13100 」で閉じる必要があります。
13101 \end_layout
13102
13103 \begin_layout Description
13104 \begin_inset Flex Code
13105 status collapsed
13106
13107 \begin_layout Plain Layout
13108 RefPrefix
13109 \end_layout
13110
13111 \end_inset
13112
13113  [
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118 文字列
13119 \end_layout
13120
13121 \end_inset
13122
13123 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
13124 \end_layout
13125
13126 \begin_layout Description
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 Requires
13132 \end_layout
13133
13134 \end_inset
13135
13136  [
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 文字列
13142 \end_layout
13143
13144 \end_inset
13145
13146 ] この様式が機能
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151 文字列
13152 \end_layout
13153
13154 \end_inset
13155
13156 を必要とするかどうか
13157 \lang english
13158 (see 
13159 \lang japanese
13160
13161 \begin_inset CommandInset ref
13162 LatexCommand ref
13163 reference "chap:関数一覧"
13164
13165 \end_inset
13166
13167
13168 \lang english
13169  for the list of features).
13170  If you require a package with specific options, you can additionally use
13171  
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176
13177 \lang english
13178 PackageOptions
13179 \end_layout
13180
13181 \end_inset
13182
13183  as a general text class parameter (see 
13184 \lang japanese
13185
13186 \begin_inset CommandInset ref
13187 LatexCommand ref
13188 reference "subsec:汎用テキストクラスパラメータ"
13189
13190 \end_inset
13191
13192 )。
13193 \end_layout
13194
13195 \begin_layout Description
13196 \begin_inset Flex Code
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200 ResetArgs
13201 \end_layout
13202
13203 \end_inset
13204
13205  [
13206 \begin_inset Flex Code
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210
13211 \emph on
13212 0
13213 \end_layout
13214
13215 \end_inset
13216
13217 ,
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 1
13223 \end_layout
13224
13225 \end_inset
13226
13227 ] (
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 Argument
13233 \end_layout
13234
13235 \end_inset
13236
13237 タグで定義された)この様式の\SpecialChar LaTeX
13238 引数をリセットします。これは、様式を
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243 CopyStyle
13244 \end_layout
13245
13246 \end_inset
13247
13248 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
13249 \end_layout
13250
13251 \begin_layout Description
13252 \begin_inset Flex Code
13253 status collapsed
13254
13255 \begin_layout Plain Layout
13256 RightDelim
13257 \end_layout
13258
13259 \end_inset
13260
13261  [
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 文字列
13267 \end_layout
13268
13269 \end_inset
13270
13271 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 <br/>
13277 \end_layout
13278
13279 \end_inset
13280
13281 で指示できます。
13282 \end_layout
13283
13284 \begin_layout Description
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289 RightMargin
13290 \end_layout
13291
13292 \end_inset
13293
13294  [
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299 文字列=""
13300 \end_layout
13301
13302 \end_inset
13303
13304
13305 \begin_inset Flex Code
13306 status collapsed
13307
13308 \begin_layout Plain Layout
13309 LeftMargin
13310 \end_layout
13311
13312 \end_inset
13313
13314 に同様。
13315 \end_layout
13316
13317 \begin_layout Description
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 Spacing
13323 \end_layout
13324
13325 \end_inset
13326
13327  [
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332
13333 \emph on
13334 single
13335 \end_layout
13336
13337 \end_inset
13338
13339
13340 \begin_inset Flex Code
13341 status collapsed
13342
13343 \begin_layout Plain Layout
13344 onehalf
13345 \end_layout
13346
13347 \end_inset
13348
13349
13350 \begin_inset Flex Code
13351 status collapsed
13352
13353 \begin_layout Plain Layout
13354 double
13355 \end_layout
13356
13357 \end_inset
13358
13359
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364 other
13365 \begin_inset space ~
13366 \end_inset
13367
13368 <
13369 \emph on
13370
13371 \emph default
13372 >
13373 \end_layout
13374
13375 \end_inset
13376
13377 ]
13378 \lang english
13379  
13380 \lang japanese
13381 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 single
13387 \end_layout
13388
13389 \end_inset
13390
13391
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 onehalf
13397 \end_layout
13398
13399 \end_inset
13400
13401
13402 \begin_inset Flex Code
13403 status collapsed
13404
13405 \begin_layout Plain Layout
13406 double
13407 \end_layout
13408
13409 \end_inset
13410
13411 は、それぞれ乗数1・1.25・1.667に対応します。引数
13412 \begin_inset Flex Code
13413 status collapsed
13414
13415 \begin_layout Plain Layout
13416 other
13417 \end_layout
13418
13419 \end_inset
13420
13421 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13422 \begin_inset Flex Code
13423 status collapsed
13424
13425 \begin_layout Plain Layout
13426 Spacing
13427 \end_layout
13428
13429 \end_inset
13430
13431 は、\SpecialChar LaTeX
13432 パッケージ
13433 \begin_inset Flex Code
13434 status collapsed
13435
13436 \begin_layout Plain Layout
13437 setspace
13438 \end_layout
13439
13440 \end_inset
13441
13442 パッケージを使用した、限定的な\SpecialChar LaTeX
13443 コードを生成することを意味することにご注意ください。
13444 \end_layout
13445
13446 \begin_layout Description
13447 \begin_inset Flex Code
13448 status collapsed
13449
13450 \begin_layout Plain Layout
13451 Spellcheck
13452 \end_layout
13453
13454 \end_inset
13455
13456  [
13457 \begin_inset Flex Code
13458 status collapsed
13459
13460 \begin_layout Plain Layout
13461 0
13462 \end_layout
13463
13464 \end_inset
13465
13466 ,
13467 \begin_inset space \thinspace{}
13468 \end_inset
13469
13470
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 1
13476 \end_layout
13477
13478 \end_inset
13479
13480 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13481 \end_layout
13482
13483 \begin_layout Description
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 TextFont
13489 \end_layout
13490
13491 \end_inset
13492
13493  本文に使うフォント。
13494 \begin_inset CommandInset ref
13495 LatexCommand ref
13496 reference "subsec:フォント指定"
13497
13498 \end_inset
13499
13500 参照。
13501 \end_layout
13502
13503 \begin_layout Description
13504 \begin_inset Flex Code
13505 status collapsed
13506
13507 \begin_layout Plain Layout
13508 TocLevel
13509 \end_layout
13510
13511 \end_inset
13512
13513  [
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 整数型=3
13519 \end_layout
13520
13521 \end_inset
13522
13523 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13524 \end_layout
13525
13526 \begin_layout Description
13527 \begin_inset Flex Code
13528 status collapsed
13529
13530 \begin_layout Plain Layout
13531 ToggleIndent
13532 \end_layout
13533
13534 \end_inset
13535
13536  [
13537 \emph on
13538
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 default
13544 \end_layout
13545
13546 \end_inset
13547
13548
13549 \emph default
13550
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555 always
13556 \end_layout
13557
13558 \end_inset
13559
13560
13561 \begin_inset Flex Code
13562 status collapsed
13563
13564 \begin_layout Plain Layout
13565 never
13566 \end_layout
13567
13568 \end_inset
13569
13570
13571 \lang english
13572 This tag determines whether the first line indentation of this paragraph
13573  can be toggled via the Paragraph settings dialog.
13574  If 
13575 \emph on
13576
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581
13582 \emph off
13583 \lang english
13584 default
13585 \end_layout
13586
13587 \end_inset
13588
13589
13590 \emph default
13591  is set, indentation can be toggled if the document settings use 
13592 \begin_inset Quotes eld
13593 \end_inset
13594
13595 indent
13596 \begin_inset Quotes erd
13597 \end_inset
13598
13599  paragraph style, with 
13600 \begin_inset Flex Code
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604
13605 \lang english
13606 always
13607 \end_layout
13608
13609 \end_inset
13610
13611 , indentation can always be toggled, notwithstanding the document settings,
13612  with 
13613 \begin_inset Flex Code
13614 status collapsed
13615
13616 \begin_layout Plain Layout
13617
13618 \lang english
13619 never
13620 \end_layout
13621
13622 \end_inset
13623
13624 , indentation can never be toggled.
13625 \end_layout
13626
13627 \begin_layout Description
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632 TopSep
13633 \end_layout
13634
13635 \end_inset
13636
13637  [
13638 \begin_inset Flex Code
13639 status collapsed
13640
13641 \begin_layout Plain Layout
13642 浮動小数点型=0
13643 \end_layout
13644
13645 \end_inset
13646
13647 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13648 の最大値がとられます。
13649 \end_layout
13650
13651 \begin_layout Subsection
13652 段落様式の国際化
13653 \begin_inset CommandInset label
13654 LatexCommand label
13655 name "subsec:段落様式の国際化"
13656
13657 \end_inset
13658
13659
13660 \end_layout
13661
13662 \begin_layout Standard
13663 \SpecialChar LyX
13664 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13665 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13666 \lang french
13667 Théorème
13668 \lang japanese
13669  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13670 \end_layout
13671
13672 \begin_layout Standard
13673 もし
13674 \begin_inset Flex MenuItem
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 Style
13679 \end_layout
13680
13681 \end_inset
13682
13683 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13684 \begin_inset Flex MenuItem
13685 status collapsed
13686
13687 \begin_layout Plain Layout
13688 LangPreamble
13689 \end_layout
13690
13691 \end_inset
13692
13693
13694 \begin_inset Flex MenuItem
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698 BabelPreamble
13699 \end_layout
13700
13701 \end_inset
13702
13703 を使用することができます。以下の抜粋(
13704 \begin_inset Flex MenuItem
13705 status collapsed
13706
13707 \begin_layout Plain Layout
13708 theorems-ams.inc
13709 \end_layout
13710
13711 \end_inset
13712
13713 より)は、これがどう動作するかを示すものです。
13714 \end_layout
13715
13716 \begin_layout LyX-Code
13717 Preamble
13718 \begin_inset Separator parbreak
13719 \end_inset
13720
13721
13722 \end_layout
13723
13724 \begin_deeper
13725 \begin_layout LyX-Code
13726   
13727 \backslash
13728 theoremstyle{remark}
13729 \end_layout
13730
13731 \begin_layout LyX-Code
13732   
13733 \backslash
13734 newtheorem{claim}[thm]{
13735 \backslash
13736 protect
13737 \backslash
13738 claimname}
13739 \end_layout
13740
13741 \begin_layout LyX-Code
13742 EndPreamble
13743 \end_layout
13744
13745 \begin_layout LyX-Code
13746 LangPreamble
13747 \end_layout
13748
13749 \begin_layout LyX-Code
13750   
13751 \backslash
13752 providecommand{
13753 \backslash
13754 claimname}{_(Claim)}
13755 \end_layout
13756
13757 \begin_layout LyX-Code
13758 EndLangPreamble
13759 \end_layout
13760
13761 \begin_layout LyX-Code
13762 BabelPreamble
13763 \end_layout
13764
13765 \begin_layout LyX-Code
13766     
13767 \backslash
13768 addto
13769 \backslash
13770 captions$$lang{
13771 \backslash
13772 renewcommand{
13773 \backslash
13774 claimname}{_(Claim)}}
13775 \end_layout
13776
13777 \begin_layout LyX-Code
13778 EndBabelPreamble
13779 \end_layout
13780
13781 \end_deeper
13782 \begin_layout Standard
13783 原則として、
13784 \begin_inset Flex MenuItem
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 LangPreamble
13789 \end_layout
13790
13791 \end_inset
13792
13793
13794 \begin_inset Flex MenuItem
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 BabelPreamble
13799 \end_layout
13800
13801 \end_inset
13802
13803 タグ内には、有効な\SpecialChar LaTeX
13804 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13805 は、\SpecialChar LaTeX
13806 コマンド
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811
13812 \backslash
13813 claimname
13814 \end_layout
13815
13816 \end_inset
13817
13818 とその
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823
13824 \backslash
13825 newtheorem
13826 \end_layout
13827
13828 \end_inset
13829
13830 中での用い方です。
13831 \end_layout
13832
13833 \begin_layout Standard
13834 \begin_inset Flex Code
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838 LangPreamble
13839 \end_layout
13840
13841 \end_inset
13842
13843 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848 Preamble
13849 \end_layout
13850
13851 \end_inset
13852
13853 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13854 \begin_inset Flex Code
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858 _()
13859 \end_layout
13860
13861 \end_inset
13862
13863 が使用されていることです。これは、\SpecialChar LyX
13864 が\SpecialChar LaTeX
13865 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13866 \end_layout
13867
13868 \begin_layout Standard
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 BabelPreamble
13874 \end_layout
13875
13876 \end_inset
13877
13878 タグは、複数言語文書をサポートし、
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 babel
13884 \end_layout
13885
13886 \end_inset
13887
13888 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13889 の場合には、
13890 \begin_inset Flex Code
13891 status collapsed
13892
13893 \begin_layout Plain Layout
13894 _()
13895 \end_layout
13896
13897 \end_inset
13898
13899 の引数は、その当該言語への翻訳で置き換えられ、
13900 \begin_inset Flex Code
13901 status collapsed
13902
13903 \begin_layout Plain Layout
13904 $$lang
13905 \end_layout
13906
13907 \end_inset
13908
13909 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13910 \end_layout
13911
13912 \begin_layout Standard
13913 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13914 \end_layout
13915
13916 \begin_layout LyX-Code
13917
13918 \backslash
13919 addto
13920 \backslash
13921 captionsfrench{
13922 \backslash
13923 renewcommand{
13924 \backslash
13925 claimname}{Affirmation}}
13926 \begin_inset Newline newline
13927 \end_inset
13928
13929
13930 \backslash
13931 addto
13932 \backslash
13933 captionsngerman{
13934 \backslash
13935 renewcommand{
13936 \backslash
13937 claimname}{Behauptung}}
13938 \begin_inset Newline newline
13939 \end_inset
13940
13941
13942 \backslash
13943 providecommand{
13944 \backslash
13945 claimname}{Behauptung}
13946 \end_layout
13947
13948 \begin_layout Standard
13949 それから、\SpecialChar LaTeX
13950
13951 \begin_inset Flex Code
13952 status collapsed
13953
13954 \begin_layout Plain Layout
13955 babel
13956 \end_layout
13957
13958 \end_inset
13959
13960 は協力して、出力に正しい文字列を生成します。
13961 \end_layout
13962
13963 \begin_layout Standard
13964 ここで注意しておくべき一つの重要な点は、翻訳は、
13965 \begin_inset Flex Code
13966 status collapsed
13967
13968 \begin_layout Plain Layout
13969 layouttranslations
13970 \end_layout
13971
13972 \end_inset
13973
13974 ファイルを通じて、\SpecialChar LyX
13975 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13976 \begin_inset Flex Code
13977 status collapsed
13978
13979 \begin_layout Plain Layout
13980 layouttranslations
13981 \end_layout
13982
13983 \end_inset
13984
13985 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13986 の国際化ルーチンでは取り扱われないので、
13987 \begin_inset Flex MenuItem
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 LangPreamble
13992 \end_layout
13993
13994 \end_inset
13995
13996
13997 \begin_inset Flex MenuItem
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001 BabelPreamble
14002 \end_layout
14003
14004 \end_inset
14005
14006 は、事実上、\SpecialChar LyX
14007 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
14008 に同梱させようとい
14009 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
14010 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
14011 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
14012 \end_layout
14013
14014 \begin_layout Subsection
14015 フロート
14016 \begin_inset CommandInset label
14017 LatexCommand label
14018 name "subsec:フロート"
14019
14020 \end_inset
14021
14022
14023 \end_layout
14024
14025 \begin_layout Standard
14026 \SpecialChar LyX
14027 第1.3.0版以来、テキストクラス自体の中でフロート(
14028 \begin_inset Flex MenuItem
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 figure
14033 \end_layout
14034
14035 \end_inset
14036
14037
14038 \begin_inset Flex MenuItem
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 table
14043 \end_layout
14044
14045 \end_inset
14046
14047 ・\SpecialChar ldots
14048 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 stdfloats.inc
14054 \end_layout
14055
14056 \end_inset
14057
14058 ファイルに含まれているので、作業中のレイアウトファイルに
14059 \end_layout
14060
14061 \begin_layout LyX-Code
14062 Input stdfloats.inc
14063 \end_layout
14064
14065 \begin_layout Standard
14066 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
14067 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
14068 ましょう。
14069 \end_layout
14070
14071 \begin_layout Description
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076 Extension
14077 \end_layout
14078
14079 \end_inset
14080
14081  [
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 文字列
14087 \end_layout
14088
14089 \end_inset
14090
14091 =
14092 \begin_inset Quotes erd
14093 \end_inset
14094
14095
14096 \begin_inset Quotes erd
14097 \end_inset
14098
14099 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14100 がキャプションを書き込むファイルです。
14101 \end_layout
14102
14103 \begin_layout Description
14104 \begin_inset Flex Code
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 GuiName
14109 \end_layout
14110
14111 \end_inset
14112
14113  [
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118 文字列
14119 \end_layout
14120
14121 \end_inset
14122
14123 =
14124 \begin_inset Quotes erd
14125 \end_inset
14126
14127
14128 \begin_inset Quotes erd
14129 \end_inset
14130
14131 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14132 \end_layout
14133
14134 \begin_layout Description
14135 \begin_inset Flex Code
14136 status collapsed
14137
14138 \begin_layout Plain Layout
14139 HTML*
14140 \end_layout
14141
14142 \end_inset
14143
14144  これらは、XHTML出力で使用されます。
14145 \begin_inset CommandInset ref
14146 LatexCommand ref
14147 reference "sec:XHTML出力のタグ"
14148
14149 \end_inset
14150
14151 をご覧ください。
14152 \end_layout
14153
14154 \begin_layout Description
14155 \begin_inset Flex Code
14156 status collapsed
14157
14158 \begin_layout Plain Layout
14159 IsPredefined
14160 \end_layout
14161
14162 \end_inset
14163
14164  [
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169
14170 \emph on
14171 0
14172 \end_layout
14173
14174 \end_inset
14175
14176 ,
14177 \begin_inset space \thinspace{}
14178 \end_inset
14179
14180
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 1
14186 \end_layout
14187
14188 \end_inset
14189
14190 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14191 パッケージ
14192 \begin_inset Flex Code
14193 status collapsed
14194
14195 \begin_layout Plain Layout
14196 float
14197 \end_layout
14198
14199 \end_inset
14200
14201 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 0
14207 \end_layout
14208
14209 \end_inset
14210
14211 で、この場合
14212 \begin_inset Flex Code
14213 status collapsed
14214
14215 \begin_layout Plain Layout
14216 float
14217 \end_layout
14218
14219 \end_inset
14220
14221 を使用します。\SpecialChar LaTeX
14222 ドキュメントクラス中に既に定義されているときには、
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 0
14228 \end_layout
14229
14230 \end_inset
14231
14232 に設定しなくてはなりません。
14233 \end_layout
14234
14235 \begin_layout Description
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 ListCommand
14241 \end_layout
14242
14243 \end_inset
14244
14245  [
14246 \begin_inset Flex Code
14247 status collapsed
14248
14249 \begin_layout Plain Layout
14250 文字列
14251 \end_layout
14252
14253 \end_inset
14254
14255 =
14256 \begin_inset Quotes erd
14257 \end_inset
14258
14259
14260 \begin_inset Quotes erd
14261 \end_inset
14262
14263 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14264 \backslash
14265 」は書きません。
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270 NeedsFloatPkg
14271 \end_layout
14272
14273 \end_inset
14274
14275 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14276 \emph on
14277 必ず
14278 \emph default
14279 指定しなくてはなりません。
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 NeedsFloatPkg
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 ListName
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 LyX
14321 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14322 に渡さ
14323 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14324 \end_layout
14325
14326 \begin_layout Description
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 NumberWithin
14332 \end_layout
14333
14334 \end_inset
14335
14336  [
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 文字列
14342 \end_layout
14343
14344 \end_inset
14345
14346 =
14347 \begin_inset Quotes erd
14348 \end_inset
14349
14350
14351 \begin_inset Quotes erd
14352 \end_inset
14353
14354 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14355 \begin_inset Flex Code
14356 status collapsed
14357
14358 \begin_layout Plain Layout
14359 NumberWithin
14360 \end_layout
14361
14362 \end_inset
14363
14364 が「
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369 chapter
14370 \end_layout
14371
14372 \end_inset
14373
14374 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14375 \end_layout
14376
14377 \begin_layout Description
14378 \begin_inset Flex Code
14379 status collapsed
14380
14381 \begin_layout Plain Layout
14382 Placement
14383 \end_layout
14384
14385 \end_inset
14386
14387  [
14388 \begin_inset Flex Code
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392 文字列
14393 \end_layout
14394
14395 \end_inset
14396
14397 =
14398 \begin_inset Quotes erd
14399 \end_inset
14400
14401
14402 \begin_inset Quotes erd
14403 \end_inset
14404
14405 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14406 表記に従い、
14407 \begin_inset Flex Code
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411 t
14412 \end_layout
14413
14414 \end_inset
14415
14416 ならば上部(top)、
14417 \begin_inset Flex Code
14418 status collapsed
14419
14420 \begin_layout Plain Layout
14421 b
14422 \end_layout
14423
14424 \end_inset
14425
14426 ならば下部(bottom)、
14427 \begin_inset Flex Code
14428 status collapsed
14429
14430 \begin_layout Plain Layout
14431 p
14432 \end_layout
14433
14434 \end_inset
14435
14436 ならばページ(page)、
14437 \begin_inset Flex Code
14438 status collapsed
14439
14440 \begin_layout Plain Layout
14441 h
14442 \end_layout
14443
14444 \end_inset
14445
14446 ならばここ(here)を表します
14447 \begin_inset Foot
14448 status collapsed
14449
14450 \begin_layout Plain Layout
14451 \SpecialChar LaTeX
14452 同様、文字列中でのこれらの文字の順序は関係ありません。
14453 \end_layout
14454
14455 \end_inset
14456
14457 。これらの他に新しい型
14458 \begin_inset Flex Code
14459 status collapsed
14460
14461 \begin_layout Plain Layout
14462 H
14463 \end_layout
14464
14465 \end_inset
14466
14467 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 H
14473 \end_layout
14474
14475 \end_inset
14476
14477 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14478 に「
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 tbp
14484 \end_layout
14485
14486 \end_inset
14487
14488 」を指定してください。
14489 \end_layout
14490
14491 \begin_layout Description
14492 \begin_inset Flex Code
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496 RefPrefix
14497 \end_layout
14498
14499 \end_inset
14500
14501  [
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506 文字列
14507 \end_layout
14508
14509 \end_inset
14510
14511 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14512 \begin_inset Flex Code
14513 status collapsed
14514
14515 \begin_layout Plain Layout
14516 RefPrefix
14517 \end_layout
14518
14519 \end_inset
14520
14521 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14522 \end_layout
14523
14524 \begin_layout Description
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 Style
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 \end_layout
14541
14542 \end_inset
14543
14544 =
14545 \begin_inset Quotes erd
14546 \end_inset
14547
14548
14549 \begin_inset Quotes erd
14550 \end_inset
14551
14552
14553 \begin_inset Flex Code
14554 status collapsed
14555
14556 \begin_layout Plain Layout
14557
14558 \backslash
14559 newfloat
14560 \end_layout
14561
14562 \end_inset
14563
14564 を使用してフロートを定義する際に使用される様式。
14565 \end_layout
14566
14567 \begin_layout Description
14568 \begin_inset Flex Code
14569 status collapsed
14570
14571 \begin_layout Plain Layout
14572 Type
14573 \end_layout
14574
14575 \end_inset
14576
14577  [
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 文字列
14583 \end_layout
14584
14585 \end_inset
14586
14587 =
14588 \begin_inset Quotes erd
14589 \end_inset
14590
14591
14592 \begin_inset Quotes erd
14593 \end_inset
14594
14595 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600
14601 \backslash
14602 newfloat
14603 \end_layout
14604
14605 \end_inset
14606
14607 の後で、
14608 \begin_inset Flex Code
14609 status collapsed
14610
14611 \begin_layout Plain Layout
14612
14613 \backslash
14614 begin{program}
14615 \end_layout
14616
14617 \end_inset
14618
14619
14620 \begin_inset Flex Code
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624
14625 \backslash
14626 end{algorithm*}
14627 \end_layout
14628
14629 \end_inset
14630
14631 といったコマンドが利用できます。
14632 \end_layout
14633
14634 \begin_layout Description
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 UsesFloatPkg
14640 \end_layout
14641
14642 \end_inset
14643
14644  [
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649 0
14650 \end_layout
14651
14652 \end_inset
14653
14654 ,
14655 \begin_inset space \thinspace{}
14656 \end_inset
14657
14658
14659 \begin_inset Flex Code
14660 status collapsed
14661
14662 \begin_layout Plain Layout
14663
14664 \emph on
14665 1
14666 \end_layout
14667
14668 \end_inset
14669
14670 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14671 パッケージ
14672 \begin_inset Flex Code
14673 status collapsed
14674
14675 \begin_layout Plain Layout
14676 float
14677 \end_layout
14678
14679 \end_inset
14680
14681 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14682 自身がオン・ザ・フライで定義しているのかを示します。
14683 \end_layout
14684
14685 \begin_layout Standard
14686 \begin_inset Flex Code
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690
14691 \emph on
14692 type
14693 \end_layout
14694
14695 \end_inset
14696
14697 型のフロートを定義すると、自動的に
14698 \emph on
14699 対応する
14700 \emph default
14701
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706
14707 \emph on
14708 type
14709 \end_layout
14710
14711 \end_inset
14712
14713 名カウンタが定義されます。
14714 \end_layout
14715
14716 \begin_layout Subsection
14717 自由差込枠と差込枠レイアウト
14718 \begin_inset CommandInset label
14719 LatexCommand label
14720 name "subsec:任意設定差込枠"
14721
14722 \end_inset
14723
14724
14725 \end_layout
14726
14727 \begin_layout Standard
14728 自由差込枠には次の3種類があります。
14729 \end_layout
14730
14731 \begin_layout Itemize
14732 文字様式(
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 CharStyle
14738 \end_layout
14739
14740 \end_inset
14741
14742 )。これは、
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747
14748 \backslash
14749 noun
14750 \end_layout
14751
14752 \end_inset
14753
14754
14755 \begin_inset Flex Code
14756 status collapsed
14757
14758 \begin_layout Plain Layout
14759
14760 \backslash
14761 code
14762 \end_layout
14763
14764 \end_inset
14765
14766 などの\SpecialChar LaTeX
14767 コマンドに対応した意味論的マークアップを定義するものです。
14768 \end_layout
14769
14770 \begin_layout Itemize
14771 ユーザ設定(
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 Custom
14777 \end_layout
14778
14779 \end_inset
14780
14781 )。これは、\SpecialChar TeX
14782 コードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14783 \begin_inset Flex Code
14784 status collapsed
14785
14786 \begin_layout Plain Layout
14787 endnote
14788 \end_layout
14789
14790 \end_inset
14791
14792 モジュール中で定義されています。
14793 \end_layout
14794
14795 \begin_layout Itemize
14796 XML要素(
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 Element
14802 \end_layout
14803
14804 \end_inset
14805
14806 )。DocBookクラスで使用するものです。
14807 \end_layout
14808
14809 \begin_layout Standard
14810 自由差込枠は、以下で説明する
14811 \begin_inset Flex Code
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815 InsetLayout
14816 \end_layout
14817
14818 \end_inset
14819
14820 タグを使用して定義されます。
14821 \end_layout
14822
14823 \begin_layout Standard
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 InsetLayout
14829 \end_layout
14830
14831 \end_inset
14832
14833 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838 InsetLayout
14839 \end_layout
14840
14841 \end_inset
14842
14843 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・\SpecialChar TeX
14844 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14845 ー定義するのに使用されます。
14846 \end_layout
14847
14848 \begin_layout Standard
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 InsetLayout
14854 \end_layout
14855
14856 \end_inset
14857
14858 定義は以下の形の行では始まらなくてはなりません。
14859 \end_layout
14860
14861 \begin_layout LyX-Code
14862 InsetLayout <型>
14863 \end_layout
14864
14865 \begin_layout Standard
14866 ここで
14867 \begin_inset Flex Code
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871 <型>
14872 \end_layout
14873
14874 \end_inset
14875
14876 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
14877 \end_layout
14878
14879 \begin_layout Enumerate
14880 既存の差込枠のレイアウトを変更する場合。この場合、
14881 \begin_inset Flex Code
14882 status collapsed
14883
14884 \begin_layout Plain Layout
14885 <型>
14886 \end_layout
14887
14888 \end_inset
14889
14890 は以下のいずれかになります:
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 Algorithm
14896 \end_layout
14897
14898 \end_inset
14899
14900
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905 Branch
14906 \end_layout
14907
14908 \end_inset
14909
14910
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 Box
14916 \end_layout
14917
14918 \end_inset
14919
14920
14921 \begin_inset Flex Code
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 Box:shaded
14926 \end_layout
14927
14928 \end_inset
14929
14930
14931 \begin_inset Flex Code
14932 status collapsed
14933
14934 \begin_layout Plain Layout
14935 Caption:Standard
14936 \end_layout
14937
14938 \end_inset
14939
14940
14941 \begin_inset Flex Code
14942 status collapsed
14943
14944 \begin_layout Plain Layout
14945 ERT
14946 \end_layout
14947
14948 \end_inset
14949
14950
14951 \begin_inset Flex Code
14952 status collapsed
14953
14954 \begin_layout Plain Layout
14955 Figure
14956 \end_layout
14957
14958 \end_inset
14959
14960
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 Foot
14966 \end_layout
14967
14968 \end_inset
14969
14970
14971 \begin_inset Flex Code
14972 status collapsed
14973
14974 \begin_layout Plain Layout
14975 Index
14976 \end_layout
14977
14978 \end_inset
14979
14980
14981 \begin_inset Flex Code
14982 status collapsed
14983
14984 \begin_layout Plain Layout
14985 Info
14986 \end_layout
14987
14988 \end_inset
14989
14990
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 Info:menu
14996 \end_layout
14997
14998 \end_inset
14999
15000
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 Info:shortcut
15006 \end_layout
15007
15008 \end_inset
15009
15010
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 Info:shortcuts
15016 \end_layout
15017
15018 \end_inset
15019
15020
15021 \begin_inset Flex Code
15022 status collapsed
15023
15024 \begin_layout Plain Layout
15025 Listings
15026 \end_layout
15027
15028 \end_inset
15029
15030
15031 \begin_inset Flex Code
15032 status collapsed
15033
15034 \begin_layout Plain Layout
15035 Marginal
15036 \end_layout
15037
15038 \end_inset
15039
15040
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 Note:Comment
15046 \end_layout
15047
15048 \end_inset
15049
15050
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 Note:Note
15056 \end_layout
15057
15058 \end_inset
15059
15060
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 Note:GreyedOut
15066 \end_layout
15067
15068 \end_inset
15069
15070
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 Table
15076 \end_layout
15077
15078 \end_inset
15079
15080
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 URL
15086 \end_layout
15087
15088 \end_inset
15089
15090
15091 \end_layout
15092
15093 \begin_layout Enumerate
15094 自由差込枠のレイアウトを定義する場合。この場合、
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 <型>
15100 \end_layout
15101
15102 \end_inset
15103
15104
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 Flex:<名称>
15110 \end_layout
15111
15112 \end_inset
15113
15114 の形でなくてはなりません。ここで、
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 名称
15120 \end_layout
15121
15122 \end_inset
15123
15124 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15125 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 \SpecialChar LyX
15131 Type
15132 \end_layout
15133
15134 \end_inset
15135
15136 項目が含まれていなくてはならないことに注意してください。
15137 \end_layout
15138
15139 \begin_layout Enumerate
15140 ユーザー定義派生枝を定義する場合。この場合、
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 <型>
15146 \end_layout
15147
15148 \end_inset
15149
15150 は「
15151 \begin_inset Flex Code
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155 Branch:<名称>
15156 \end_layout
15157
15158 \end_inset
15159
15160 」の形でなくてはなりません。ここで、
15161 \begin_inset Flex Code
15162 status collapsed
15163
15164 \begin_layout Plain Layout
15165 名称
15166 \end_layout
15167
15168 \end_inset
15169
15170 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15171 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15172 がくるむことができるようにすることです。
15173 \end_layout
15174
15175 \begin_layout Enumerate
15176 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 <型>
15182 \end_layout
15183
15184 \end_inset
15185
15186 は「
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 Caption:<名称>
15192 \end_layout
15193
15194 \end_inset
15195
15196 」の形でなくてはなりません。ここで、
15197 \begin_inset Flex Code
15198 status collapsed
15199
15200 \begin_layout Plain Layout
15201 名称
15202 \end_layout
15203
15204 \end_inset
15205
15206 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15207 \begin_inset Flex Code
15208 status collapsed
15209
15210 \begin_layout Plain Layout
15211 Caption:Standard
15212 \end_layout
15213
15214 \end_inset
15215
15216 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 Caption:Above
15222 \end_layout
15223
15224 \end_inset
15225
15226
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 Caption:Below
15232 \end_layout
15233
15234 \end_inset
15235
15236 )、
15237 \family sans
15238 多言語キャプション
15239 \family default
15240 モジュール(
15241 \begin_inset Flex Code
15242 status collapsed
15243
15244 \begin_layout Plain Layout
15245 Caption:Bicaption
15246 \end_layout
15247
15248 \end_inset
15249
15250 )をご覧ください。
15251 \end_layout
15252
15253 \begin_layout Standard
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 InsetLayout
15259 \end_layout
15260
15261 \end_inset
15262
15263 定義には以下の項目を入れることができます。
15264 \end_layout
15265
15266 \begin_layout Description
15267 \begin_inset Flex Code
15268 status collapsed
15269
15270 \begin_layout Plain Layout
15271 Argument
15272 \end_layout
15273
15274 \end_inset
15275
15276  [
15277 \begin_inset Flex Code
15278 status collapsed
15279
15280 \begin_layout Plain Layout
15281 整数
15282 \end_layout
15283
15284 \end_inset
15285
15286 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 EndArgument
15292 \end_layout
15293
15294 \end_inset
15295
15296 で閉じなくてはなりません。詳細は
15297 \begin_inset CommandInset ref
15298 LatexCommand ref
15299 reference "subsec:段落様式"
15300
15301 \end_inset
15302
15303 参照。
15304 \end_layout
15305
15306 \begin_layout Description
15307 \begin_inset Flex Code
15308 status collapsed
15309
15310 \begin_layout Plain Layout
15311 BabelPreamble
15312 \end_layout
15313
15314 \end_inset
15315
15316  言語コマンドを変更するプリアンブル。
15317 \begin_inset CommandInset ref
15318 LatexCommand ref
15319 reference "subsec:段落様式の国際化"
15320
15321 \end_inset
15322
15323 参照。
15324 \end_layout
15325
15326 \begin_layout Description
15327 \begin_inset Flex Code
15328 status collapsed
15329
15330 \begin_layout Plain Layout
15331 BgColor
15332 \end_layout
15333
15334 \end_inset
15335
15336  [
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 <名称>
15342 \end_layout
15343
15344 \end_inset
15345
15346 ] 差込枠の背景色。使用できる色名一覧は
15347 \begin_inset CommandInset ref
15348 LatexCommand ref
15349 reference "chap:色名"
15350
15351 \end_inset
15352
15353 参照。
15354 \end_layout
15355
15356 \begin_layout Description
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361 ContentAsLabel
15362 \end_layout
15363
15364 \end_inset
15365
15366  [
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371
15372 \emph on
15373 0
15374 \end_layout
15375
15376 \end_inset
15377
15378 ,
15379 \begin_inset space \thinspace{}
15380 \end_inset
15381
15382
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 1
15388 \end_layout
15389
15390 \end_inset
15391
15392 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15393 \end_layout
15394
15395 \begin_layout Description
15396 \begin_inset Flex Code
15397 status collapsed
15398
15399 \begin_layout Plain Layout
15400 CopyStyle
15401 \end_layout
15402
15403 \end_inset
15404
15405  [<型>] 段落様式と同様です。
15406 \begin_inset CommandInset ref
15407 LatexCommand ref
15408 reference "subsec:段落様式"
15409
15410 \end_inset
15411
15412 参照のこと。完全な型を指定する必要があることに注意してください。例:
15413 \begin_inset Flex Code
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 CopyStyle Flex:<名称>
15418 \end_layout
15419
15420 \end_inset
15421
15422
15423 \end_layout
15424
15425 \begin_layout Description
15426 \begin_inset Flex Code
15427 status collapsed
15428
15429 \begin_layout Plain Layout
15430 CustomPars
15431 \end_layout
15432
15433 \end_inset
15434
15435  [
15436 \begin_inset Flex Code
15437 status collapsed
15438
15439 \begin_layout Plain Layout
15440
15441 \emph on
15442 0
15443 \end_layout
15444
15445 \end_inset
15446
15447 ,
15448 \begin_inset space \thinspace{}
15449 \end_inset
15450
15451
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 1
15457 \end_layout
15458
15459 \end_inset
15460
15461 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15462 \end_layout
15463
15464 \begin_layout Description
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 Decoration
15470 \end_layout
15471
15472 \end_inset
15473
15474  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 Classic
15480 \end_layout
15481
15482 \end_inset
15483
15484
15485 \begin_inset Flex Code
15486 status collapsed
15487
15488 \begin_layout Plain Layout
15489 Minimalistic
15490 \end_layout
15491
15492 \end_inset
15493
15494
15495 \begin_inset Flex Code
15496 status collapsed
15497
15498 \begin_layout Plain Layout
15499 Conglomerate
15500 \end_layout
15501
15502 \end_inset
15503
15504 のいずれかを指定することができます。脚注は通常
15505 \begin_inset Flex Code
15506 status collapsed
15507
15508 \begin_layout Plain Layout
15509 Classic
15510 \end_layout
15511
15512 \end_inset
15513
15514 を使用し、\SpecialChar TeX
15515 コード差込枠は通常
15516 \begin_inset Flex Code
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 Minimalistic
15521 \end_layout
15522
15523 \end_inset
15524
15525 、文字様式は
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 Conglomerate
15531 \end_layout
15532
15533 \end_inset
15534
15535 を使用します。
15536 \end_layout
15537
15538 \begin_layout Description
15539 \begin_inset Flex Code
15540 status collapsed
15541
15542 \begin_layout Plain Layout
15543 Display
15544 \end_layout
15545
15546 \end_inset
15547
15548  [
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 0
15554 \end_layout
15555
15556 \end_inset
15557
15558 ,
15559 \begin_inset space \thinspace{}
15560 \end_inset
15561
15562
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567
15568 \emph on
15569 1
15570 \end_layout
15571
15572 \end_inset
15573
15574
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 LatexType
15580 \end_layout
15581
15582 \end_inset
15583
15584
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589 Environment
15590 \end_layout
15591
15592 \end_inset
15593
15594 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15595 環境は、
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600
15601 \backslash
15602 begin{LatexName}
15603 \end_layout
15604
15605 \end_inset
15606
15607 タグと
15608 \begin_inset Flex Code
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612
15613 \backslash
15614 end{LatexName}
15615 \end_layout
15616
15617 \end_inset
15618
15619 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15620 \end_layout
15621
15622 \begin_layout Description
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 End
15628 \end_layout
15629
15630 \end_inset
15631
15632  
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637 InsetLayout
15638 \end_layout
15639
15640 \end_inset
15641
15642 宣言を閉じるのに必要です。
15643 \end_layout
15644
15645 \begin_layout Description
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 Font
15651 \end_layout
15652
15653 \end_inset
15654
15655  本文本体とラベル
15656 \emph on
15657 両方に
15658 \emph default
15659 使用されるフォントです。
15660 \begin_inset CommandInset ref
15661 LatexCommand ref
15662 reference "subsec:フォント指定"
15663
15664 \end_inset
15665
15666 を参照。このフォントを定義すると自動的に
15667 \begin_inset Flex Code
15668 status collapsed
15669
15670 \begin_layout Plain Layout
15671 LabelFont
15672 \end_layout
15673
15674 \end_inset
15675
15676 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15677 \begin_inset Flex Code
15678 status collapsed
15679
15680 \begin_layout Plain Layout
15681 LabelFont
15682 \end_layout
15683
15684 \end_inset
15685
15686 を定義しなくてはならないことに注意してください。
15687 \end_layout
15688
15689 \begin_layout Description
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 ForceLocalFontSwitch
15695 \end_layout
15696
15697 \end_inset
15698
15699  [
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704
15705 \emph on
15706 0
15707 \end_layout
15708
15709 \end_inset
15710
15711 ,
15712 \begin_inset space \thinspace{}
15713 \end_inset
15714
15715
15716 \begin_inset Flex Code
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720 1
15721 \end_layout
15722
15723 \end_inset
15724
15725 ] babel使用時に、常にローカルフォント切替(
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730
15731 \backslash
15732 foreignlanguage
15733 \end_layout
15734
15735 \end_inset
15736
15737 )を使い、グローバル切替(
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742
15743 \backslash
15744 selectlanguage
15745 \end_layout
15746
15747 \end_inset
15748
15749 など)は使わない。
15750 \end_layout
15751
15752 \begin_layout Description
15753 \begin_inset Flex Code
15754 status collapsed
15755
15756 \begin_layout Plain Layout
15757 ForceLTR
15758 \end_layout
15759
15760 \end_inset
15761
15762  [
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767
15768 \emph on
15769 0
15770 \end_layout
15771
15772 \end_inset
15773
15774 ,
15775 \begin_inset space \thinspace{}
15776 \end_inset
15777
15778
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 1
15784 \end_layout
15785
15786 \end_inset
15787
15788 ] たとえば\SpecialChar TeX
15789 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
15790 \end_layout
15791
15792 \begin_layout Description
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 ForcePlain
15798 \end_layout
15799
15800 \end_inset
15801
15802  [
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807
15808 \emph on
15809 0
15810 \end_layout
15811
15812 \end_inset
15813
15814 ,
15815 \begin_inset space \thinspace{}
15816 \end_inset
15817
15818
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823 1
15824 \end_layout
15825
15826 \end_inset
15827
15828 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
15829 \end_layout
15830
15831 \begin_layout Description
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 FreeSpacing
15837 \end_layout
15838
15839 \end_inset
15840
15841  [
15842 \emph on
15843
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 0
15849 \end_layout
15850
15851 \end_inset
15852
15853
15854 \emph default
15855 ,
15856 \begin_inset space \thinspace{}
15857 \end_inset
15858
15859
15860 \begin_inset Flex Code
15861 status collapsed
15862
15863 \begin_layout Plain Layout
15864 1
15865 \end_layout
15866
15867 \end_inset
15868
15869 ] 段落様式と同様。
15870 \begin_inset CommandInset ref
15871 LatexCommand ref
15872 reference "subsec:段落様式"
15873
15874 \end_inset
15875
15876 参照。
15877 \end_layout
15878
15879 \begin_layout Description
15880 \begin_inset Flex Code
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884 HTML*
15885 \end_layout
15886
15887 \end_inset
15888
15889  これらは、XHTML出力で使用されます。
15890 \begin_inset CommandInset ref
15891 LatexCommand ref
15892 reference "sec:XHTML出力のタグ"
15893
15894 \end_inset
15895
15896 をご覧ください。
15897 \end_layout
15898
15899 \begin_layout Description
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 InToc
15905 \end_layout
15906
15907 \end_inset
15908
15909  [
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914
15915 \emph on
15916 0
15917 \end_layout
15918
15919 \end_inset
15920
15921 ,
15922 \begin_inset space \thinspace{}
15923 \end_inset
15924
15925
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 1
15931 \end_layout
15932
15933 \end_inset
15934
15935 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
15936 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
15937 \end_layout
15938
15939 \begin_layout Description
15940 \begin_inset Flex Code
15941 status collapsed
15942
15943 \begin_layout Plain Layout
15944 KeepEmpty
15945 \end_layout
15946
15947 \end_inset
15948
15949  [
15950 \emph on
15951
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 0
15957 \end_layout
15958
15959 \end_inset
15960
15961
15962 \emph default
15963 ,
15964 \begin_inset space \thinspace{}
15965 \end_inset
15966
15967
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972 1
15973 \end_layout
15974
15975 \end_inset
15976
15977 ] 段落様式と同様。
15978 \begin_inset CommandInset ref
15979 LatexCommand ref
15980 reference "subsec:段落様式"
15981
15982 \end_inset
15983
15984 参照。
15985 \end_layout
15986
15987 \begin_layout Description
15988 \begin_inset Flex Code
15989 status collapsed
15990
15991 \begin_layout Plain Layout
15992 LabelFont
15993 \end_layout
15994
15995 \end_inset
15996
15997  ラベルに使用されるフォント。第
15998 \begin_inset CommandInset ref
15999 LatexCommand ref
16000 reference "subsec:フォント指定"
16001
16002 \end_inset
16003
16004 節を参照。非効率を回避するため、この定義は
16005 \begin_inset Flex Code
16006 status collapsed
16007
16008 \begin_layout Plain Layout
16009 Font
16010 \end_layout
16011
16012 \end_inset
16013
16014 の前には決して現れてはなりません。
16015 \end_layout
16016
16017 \begin_layout Description
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 LabelString
16023 \end_layout
16024
16025 \end_inset
16026
16027  [
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 文字列
16033 \end_layout
16034
16035 \end_inset
16036
16037 =
16038 \begin_inset Quotes erd
16039 \end_inset
16040
16041
16042 \begin_inset Quotes erd
16043 \end_inset
16044
16045 ]
16046 \lang english
16047  
16048 \lang japanese
16049 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16050 コードや派生枝)、ラベルが動的に変更されます。
16051 \end_layout
16052
16053 \begin_layout Description
16054 \begin_inset Flex Code
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058 LangPreamble
16059 \end_layout
16060
16061 \end_inset
16062
16063  言語依存のプリアンブル。
16064 \begin_inset CommandInset ref
16065 LatexCommand ref
16066 reference "subsec:段落様式の国際化"
16067
16068 \end_inset
16069
16070 参照。
16071 \end_layout
16072
16073 \begin_layout Description
16074 \begin_inset Flex Code
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078 LatexName
16079 \end_layout
16080
16081 \end_inset
16082
16083  [
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 <名称>
16089 \end_layout
16090
16091 \end_inset
16092
16093 ] 対応する\SpecialChar LaTeX
16094 関連物の名称。環境名ないしはコマンド名。
16095 \end_layout
16096
16097 \begin_layout Description
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 LatexParam
16103 \end_layout
16104
16105 \end_inset
16106
16107  [
16108 \begin_inset Flex Code
16109 status collapsed
16110
16111 \begin_layout Plain Layout
16112 <パラメータ>
16113 \end_layout
16114
16115 \end_inset
16116
16117 ]
16118 \lang english
16119  
16120 \lang japanese
16121 対応する
16122 \begin_inset Flex Code
16123 status collapsed
16124
16125 \begin_layout Plain Layout
16126 LatexName
16127 \end_layout
16128
16129 \end_inset
16130
16131 関連物の非必須パラメータ。
16132 \begin_inset Flex Code
16133 status collapsed
16134
16135 \begin_layout Plain Layout
16136 []
16137 \end_layout
16138
16139 \end_inset
16140
16141 のような括弧対を含む。このパラメータは\SpecialChar LyX
16142 内部から変更することはできません(変更可能なパラメータには
16143 \begin_inset Flex Code
16144 status collapsed
16145
16146 \begin_layout Plain Layout
16147 Argument
16148 \end_layout
16149
16150 \end_inset
16151
16152 を使用してください)。これは、全ての\SpecialChar LaTeX
16153  
16154 \begin_inset Flex Code
16155 status collapsed
16156
16157 \begin_layout Plain Layout
16158 Argument
16159 \end_layout
16160
16161 \end_inset
16162
16163 の後にそのままの形で出力されます。
16164 \end_layout
16165
16166 \begin_layout Description
16167 \begin_inset Flex Code
16168 status collapsed
16169
16170 \begin_layout Plain Layout
16171 LatexType
16172 \end_layout
16173
16174 \end_inset
16175
16176  [
16177 \begin_inset Flex Code
16178 status collapsed
16179
16180 \begin_layout Plain Layout
16181 Command, Environment, None
16182 \end_layout
16183
16184 \end_inset
16185
16186 ] 様式がどのように\SpecialChar LaTeX
16187 に変換されるべきかを示します
16188 \begin_inset Foot
16189 status collapsed
16190
16191 \begin_layout Plain Layout
16192 これらのルールはSGMLクラスにも適用されるので、
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 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16203 \end_layout
16204
16205 \end_inset
16206
16207
16208 \begin_inset Separator parbreak
16209 \end_inset
16210
16211
16212 \end_layout
16213
16214 \begin_deeper
16215 \begin_layout Description
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 None
16221 \end_layout
16222
16223 \end_inset
16224
16225  は、何も特別なことは意味しません
16226 \end_layout
16227
16228 \begin_layout Description
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 Command
16234 \end_layout
16235
16236 \end_inset
16237
16238  は、
16239 \begin_inset Flex Code
16240 status collapsed
16241
16242 \begin_layout Plain Layout
16243
16244 \backslash
16245
16246 \emph on
16247 LatexName
16248 \emph default
16249 {\SpecialChar ldots
16250 }
16251 \end_layout
16252
16253 \end_inset
16254
16255 を意味します
16256 \end_layout
16257
16258 \begin_layout Description
16259 \begin_inset Flex Code
16260 status collapsed
16261
16262 \begin_layout Plain Layout
16263 Environment
16264 \end_layout
16265
16266 \end_inset
16267
16268  は、
16269 \begin_inset Flex Code
16270 status collapsed
16271
16272 \begin_layout Plain Layout
16273
16274 \backslash
16275 begin{
16276 \emph on
16277 LatexName
16278 \emph default
16279 }\SpecialChar ldots
16280
16281 \backslash
16282 end{
16283 \emph on
16284 LatexName
16285 \emph default
16286 }
16287 \end_layout
16288
16289 \end_inset
16290
16291 を意味します
16292 \end_layout
16293
16294 \begin_layout Standard
16295 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16296 出力は、\SpecialChar LaTeX
16297 型に依存して
16298 \end_layout
16299
16300 \begin_layout LyX-Code
16301
16302 \backslash
16303 LatexName[LatexParam]{\SpecialChar ldots
16304 }
16305 \end_layout
16306
16307 \begin_layout Standard
16308 のようになるか、
16309 \end_layout
16310
16311 \begin_layout LyX-Code
16312
16313 \backslash
16314 begin{LatexName}[LatexParam] \SpecialChar ldots
16315  
16316 \backslash
16317 end{LatexName}.
16318 \end_layout
16319
16320 \begin_layout Standard
16321 となります。
16322 \end_layout
16323
16324 \end_deeper
16325 \begin_layout Description
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 LeftDelim
16331 \end_layout
16332
16333 \end_inset
16334
16335  [
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 文字列
16341 \end_layout
16342
16343 \end_inset
16344
16345 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16346 \begin_inset Flex Code
16347 status collapsed
16348
16349 \begin_layout Plain Layout
16350 <br/>
16351 \end_layout
16352
16353 \end_inset
16354
16355 で指示できます。
16356 \end_layout
16357
16358 \begin_layout Description
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 LyxType
16364 \end_layout
16365
16366 \end_inset
16367
16368  
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 charstyle
16374 \end_layout
16375
16376 \end_inset
16377
16378
16379 \begin_inset Flex Code
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383 custom
16384 \end_layout
16385
16386 \end_inset
16387
16388
16389 \begin_inset Flex Code
16390 status collapsed
16391
16392 \begin_layout Plain Layout
16393 element
16394 \end_layout
16395
16396 \end_inset
16397
16398
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 end
16404 \end_layout
16405
16406 \end_inset
16407
16408 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16409 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16410 \begin_inset Flex Code
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414 LyxType
16415 \end_layout
16416
16417 \end_inset
16418
16419
16420 \begin_inset Flex Code
16421 status collapsed
16422
16423 \begin_layout Plain Layout
16424 charstyle
16425 \end_layout
16426
16427 \end_inset
16428
16429 に設定すると、
16430 \begin_inset Flex Code
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 MultiPar
16435 \end_layout
16436
16437 \end_inset
16438
16439 が偽に設定されます。文字様式差込枠で
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444 MultiPar
16445 \end_layout
16446
16447 \end_inset
16448
16449 を真にしたい時には、
16450 \begin_inset Flex Code
16451 status collapsed
16452
16453 \begin_layout Plain Layout
16454 LyxType
16455 \end_layout
16456
16457 \end_inset
16458
16459 を設定した
16460 \emph on
16461 後に
16462 \emph default
16463 設定すれば、真に設定することができます。
16464 \end_layout
16465
16466 \begin_layout Description
16467 \begin_inset Flex Code
16468 status collapsed
16469
16470 \begin_layout Plain Layout
16471 MultiPar
16472 \end_layout
16473
16474 \end_inset
16475
16476  [
16477 \begin_inset Flex Code
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481
16482 \emph on
16483 0
16484 \end_layout
16485
16486 \end_inset
16487
16488 ,
16489 \begin_inset space \thinspace{}
16490 \end_inset
16491
16492
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 1
16498 \end_layout
16499
16500 \end_inset
16501
16502 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507 CustomPars
16508 \end_layout
16509
16510 \end_inset
16511
16512 を同じ値に設定し、
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 ForcePlain
16518 \end_layout
16519
16520 \end_inset
16521
16522 を逆の値に設定します。これらは、
16523 \begin_inset Flex Code
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527 MultiPar
16528 \end_layout
16529
16530 \end_inset
16531
16532
16533 \emph on
16534 後に
16535 \emph default
16536 指定されれば、他の値に指定し直すことができます。既定値は真です。
16537 \end_layout
16538
16539 \begin_layout Description
16540 \begin_inset Flex Code
16541 status collapsed
16542
16543 \begin_layout Plain Layout
16544 NeedProtect
16545 \end_layout
16546
16547 \end_inset
16548
16549  [
16550 \begin_inset Flex Code
16551 status collapsed
16552
16553 \begin_layout Plain Layout
16554
16555 \emph on
16556 0
16557 \end_layout
16558
16559 \end_inset
16560
16561 ,
16562 \begin_inset space \thinspace{}
16563 \end_inset
16564
16565
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 1
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 \backslash
16582 protect
16583 \end_layout
16584
16585 \end_inset
16586
16587 するか否か(註:当該コマンド自身をprotectするかどうかでは
16588 \emph on
16589 ありません
16590 \emph default
16591 )。既定値は偽です。
16592 \end_layout
16593
16594 \begin_layout Description
16595 \begin_inset Flex Code
16596 status collapsed
16597
16598 \begin_layout Plain Layout
16599 NoInsetLayout
16600 \end_layout
16601
16602 \end_inset
16603
16604  [
16605 \begin_inset Flex Code
16606 status collapsed
16607
16608 \begin_layout Plain Layout
16609 <レイアウト>
16610 \end_layout
16611
16612 \end_inset
16613
16614 ] 既存の
16615 \begin_inset Flex Code
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 InsetLayout
16620 \end_layout
16621
16622 \end_inset
16623
16624 を削除します。
16625 \end_layout
16626
16627 \begin_layout Description
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 ParbreakIsNewline
16633 \end_layout
16634
16635 \end_inset
16636
16637  [
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642
16643 \emph on
16644 0
16645 \end_layout
16646
16647 \end_inset
16648
16649 ,
16650 \begin_inset space \thinspace{}
16651 \end_inset
16652
16653
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 1
16659 \end_layout
16660
16661 \end_inset
16662
16663 ] 段落様式と同様。
16664 \begin_inset CommandInset ref
16665 LatexCommand ref
16666 reference "subsec:段落様式"
16667
16668 \end_inset
16669
16670 参照。
16671 \end_layout
16672
16673 \begin_layout Description
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 PassThru
16679 \end_layout
16680
16681 \end_inset
16682
16683  [
16684 \emph on
16685
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 0
16691 \end_layout
16692
16693 \end_inset
16694
16695
16696 \emph default
16697 ,
16698 \begin_inset space \thinspace{}
16699 \end_inset
16700
16701
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 1
16707 \end_layout
16708
16709 \end_inset
16710
16711 ] 段落様式と同様。
16712 \begin_inset CommandInset ref
16713 LatexCommand ref
16714 reference "subsec:段落様式"
16715
16716 \end_inset
16717
16718 参照。
16719 \end_layout
16720
16721 \begin_layout Description
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 Preamble
16727 \end_layout
16728
16729 \end_inset
16730
16731  段落様式と同様。
16732 \begin_inset CommandInset ref
16733 LatexCommand ref
16734 reference "subsec:段落様式"
16735
16736 \end_inset
16737
16738 参照。
16739 \end_layout
16740
16741 \begin_layout Description
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 RefPrefix
16747 \end_layout
16748
16749 \end_inset
16750
16751  [
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 文字列
16757 \end_layout
16758
16759 \end_inset
16760
16761 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
16762 \end_layout
16763
16764 \begin_layout Description
16765 \begin_inset Flex Code
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769 Requires
16770 \end_layout
16771
16772 \end_inset
16773
16774  [
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779 文字列
16780 \end_layout
16781
16782 \end_inset
16783
16784 ] 段落様式と同様。
16785 \begin_inset CommandInset ref
16786 LatexCommand ref
16787 reference "subsec:段落様式"
16788
16789 \end_inset
16790
16791 参照。
16792 \end_layout
16793
16794 \begin_layout Description
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 ResetArgs
16800 \end_layout
16801
16802 \end_inset
16803
16804  [
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809
16810 \emph on
16811 0
16812 \end_layout
16813
16814 \end_inset
16815
16816 ,
16817 \begin_inset space \thinspace{}
16818 \end_inset
16819
16820
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 1
16826 \end_layout
16827
16828 \end_inset
16829
16830 ] (
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 Argument
16836 \end_layout
16837
16838 \end_inset
16839
16840 タグで定義された)この様式の\SpecialChar LaTeX
16841 引数をリセットします。これは、様式を
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 CopyStyle
16847 \end_layout
16848
16849 \end_inset
16850
16851 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
16852 \end_layout
16853
16854 \begin_layout Description
16855 \begin_inset Flex Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 ResetsFont
16860 \end_layout
16861
16862 \end_inset
16863
16864  [
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869 0
16870 \end_layout
16871
16872 \end_inset
16873
16874 ,
16875 \begin_inset space \thinspace{}
16876 \end_inset
16877
16878
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883
16884 \emph on
16885 1
16886 \end_layout
16887
16888 \end_inset
16889
16890 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
16891 \begin_inset Note Note
16892 status open
16893
16894 \begin_layout Plain Layout
16895 This is outdated: The default changed from 1 to 0
16896 \end_layout
16897
16898 \end_inset
16899
16900
16901 \end_layout
16902
16903 \begin_layout Description
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 RightDelim
16909 \end_layout
16910
16911 \end_inset
16912
16913  [
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 文字列
16919 \end_layout
16920
16921 \end_inset
16922
16923 ] 様式の内容の最後に置かれる文字列。出力中の改行は
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 <br/>
16929 \end_layout
16930
16931 \end_inset
16932
16933 で指示できます。
16934 \end_layout
16935
16936 \begin_layout Description
16937 \begin_inset Flex Code
16938 status collapsed
16939
16940 \begin_layout Plain Layout
16941 Spellcheck
16942 \end_layout
16943
16944 \end_inset
16945
16946  [
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 0
16952 \end_layout
16953
16954 \end_inset
16955
16956 ,
16957 \begin_inset space \thinspace{}
16958 \end_inset
16959
16960
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965
16966 \emph on
16967 1
16968 \end_layout
16969
16970 \end_inset
16971
16972 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
16973 \end_layout
16974
16975 \begin_layout Subsection
16976 カウンタ
16977 \begin_inset CommandInset label
16978 LatexCommand label
16979 name "subsec:カウンタ"
16980
16981 \end_inset
16982
16983
16984 \end_layout
16985
16986 \begin_layout Standard
16987 テキストクラスには、カウンタ(
16988 \begin_inset Flex MenuItem
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 chapter
16993 \end_layout
16994
16995 \end_inset
16996
16997
16998 \begin_inset Flex MenuItem
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 figure
17003 \end_layout
17004
17005 \end_inset
17006
17007 ・\SpecialChar ldots
17008 )を定義することが必要です。標準的なカウンタは
17009 \begin_inset Flex Code
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 stdcounters.inc
17014 \end_layout
17015
17016 \end_inset
17017
17018 ファイルに含まれているので、作業中のレイアウトファイルに
17019 \end_layout
17020
17021 \begin_layout LyX-Code
17022 Input stdcounters.inc
17023 \end_layout
17024
17025 \begin_layout Standard
17026 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17027 \end_layout
17028
17029 \begin_layout LyX-Code
17030 Counter カウンタ名
17031 \end_layout
17032
17033 \begin_layout Standard
17034 で始まらなくてはなりません。ここで「
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 カウンタ名
17040 \end_layout
17041
17042 \end_inset
17043
17044 」は、実際のカウンタ名で置き換えます。また、宣言は「
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 End
17050 \end_layout
17051
17052 \end_inset
17053
17054 」で終わらなくてはなりません。
17055 \end_layout
17056
17057 \begin_layout Standard
17058 以下のパラメータを使用することができます。
17059 \end_layout
17060
17061 \begin_layout Description
17062 \begin_inset Flex Code
17063 status collapsed
17064
17065 \begin_layout Plain Layout
17066 InitialValue
17067 \end_layout
17068
17069 \end_inset
17070
17071  [
17072 \begin_inset Flex Code
17073 status collapsed
17074
17075 \begin_layout Plain Layout
17076 整数=1
17077 \end_layout
17078
17079 \end_inset
17080
17081 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17082 \end_layout
17083
17084 \begin_layout Description
17085 \begin_inset Flex Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089 LabelString [文字列=""]
17090 \end_layout
17091
17092 \end_inset
17093
17094  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17095 \begin_inset Flex Code
17096 status collapsed
17097
17098 \begin_layout Plain Layout
17099 LabelStringAppendix
17100 \end_layout
17101
17102 \end_inset
17103
17104 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17105 \begin_inset Separator parbreak
17106 \end_inset
17107
17108
17109 \end_layout
17110
17111 \begin_deeper
17112 \begin_layout Itemize
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117
17118 \backslash
17119 thecounter
17120 \end_layout
17121
17122 \end_inset
17123
17124 は、カウンタ
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129 counter
17130 \end_layout
17131
17132 \end_inset
17133
17134
17135 \begin_inset Flex Code
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139 LabelString
17140 \end_layout
17141
17142 \end_inset
17143
17144 (または
17145 \begin_inset Newline linebreak
17146 \end_inset
17147
17148
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 LabelStringAppendix
17154 \end_layout
17155
17156 \end_inset
17157
17158 )を展開したもので置き換えられます。 
17159 \end_layout
17160
17161 \begin_layout Itemize
17162 カウンタ値は、\SpecialChar LaTeX
17163 型マクロ
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168
17169 \backslash
17170
17171 \emph on
17172 numbertype
17173 \emph default
17174 {
17175 \emph on
17176 カウンタ
17177 \emph default
17178 }
17179 \end_layout
17180
17181 \end_inset
17182
17183 を用いて表現することができます。ここで
17184 \begin_inset Flex Code
17185 status collapsed
17186
17187 \begin_layout Plain Layout
17188
17189 \emph on
17190 numbertype
17191 \end_layout
17192
17193 \end_inset
17194
17195 は以下のいずれかです。
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 arabic
17201 \end_layout
17202
17203 \end_inset
17204
17205 :1, 2, 3,\SpecialChar ldots
17206
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 alph
17212 \end_layout
17213
17214 \end_inset
17215
17216 :a, b, c, \SpecialChar ldots
17217 (小文字);
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 Alph
17223 \end_layout
17224
17225 \end_inset
17226
17227 :A, B, C, \SpecialChar ldots
17228 (大文字);
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 roman
17234 \end_layout
17235
17236 \end_inset
17237
17238 :i, ii, iii, \SpecialChar ldots
17239 (小文字ローマ数字);
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 Roman
17245 \end_layout
17246
17247 \end_inset
17248
17249 :I, II, III\SpecialChar ldots
17250 (大文字ローマ数字)。
17251 \end_layout
17252
17253 \end_deeper
17254 \begin_layout Standard
17255 \begin_inset Flex Code
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259 LabelString
17260 \end_layout
17261
17262 \end_inset
17263
17264 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 master
17270 \end_layout
17271
17272 \end_inset
17273
17274
17275 \begin_inset Flex Code
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279 Within
17280 \end_layout
17281
17282 \end_inset
17283
17284 で定義)があるときには、文字列
17285 \begin_inset Newline linebreak
17286 \end_inset
17287
17288
17289 \begin_inset Flex Code
17290 status collapsed
17291
17292 \begin_layout Plain Layout
17293
17294 \backslash
17295 themaster.
17296 \backslash
17297 arabic{カウンタ}
17298 \end_layout
17299
17300 \end_inset
17301
17302 が使用されます。それ以外の場合は、
17303 \begin_inset Flex Code
17304 status collapsed
17305
17306 \begin_layout Plain Layout
17307
17308 \backslash
17309 arabic{カウンタ}
17310 \end_layout
17311
17312 \end_inset
17313
17314 が使用されます。
17315 \end_layout
17316
17317 \begin_layout Description
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 LabelStringAppendix
17323 \end_layout
17324
17325 \end_inset
17326
17327  [
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332 文字列
17333 \end_layout
17334
17335 \end_inset
17336
17337 =""] 
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 LabelString
17343 \end_layout
17344
17345 \end_inset
17346
17347 と同様ですが、付録で使用するためのものです。
17348 \end_layout
17349
17350 \begin_layout Description
17351 \begin_inset Flex Code
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355 PrettyFormat
17356 \end_layout
17357
17358 \end_inset
17359
17360  [
17361 \begin_inset Flex Code
17362 status collapsed
17363
17364 \begin_layout Plain Layout
17365 文字列
17366 \end_layout
17367
17368 \end_inset
17369
17370 =
17371 \begin_inset Quotes erd
17372 \end_inset
17373
17374
17375 \begin_inset Quotes erd
17376 \end_inset
17377
17378 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17379 \begin_inset space ~
17380 \end_inset
17381
17382 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17383 す。
17384 \end_layout
17385
17386 \begin_layout Description
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391 Within
17392 \end_layout
17393
17394 \end_inset
17395
17396  [
17397 \begin_inset Flex Code
17398 status collapsed
17399
17400 \begin_layout Plain Layout
17401 文字列
17402 \end_layout
17403
17404 \end_inset
17405
17406 =
17407 \begin_inset Quotes erd
17408 \end_inset
17409
17410
17411 \begin_inset Quotes erd
17412 \end_inset
17413
17414 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419 subsection
17420 \end_layout
17421
17422 \end_inset
17423
17424
17425 \begin_inset Flex Code
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429 section
17430 \end_layout
17431
17432 \end_inset
17433
17434 毎に番号がリセットされます。
17435 \end_layout
17436
17437 \begin_layout Subsection
17438 フォント指定
17439 \begin_inset CommandInset label
17440 LatexCommand label
17441 name "subsec:フォント指定"
17442
17443 \end_inset
17444
17445
17446 \end_layout
17447
17448 \begin_layout Standard
17449 フォント指定は、以下のような形を取ります。
17450 \end_layout
17451
17452 \begin_layout LyX-Code
17453 Font 
17454 \family roman
17455 \emph on
17456 または
17457 \family default
17458 \emph default
17459  LabelFont 
17460 \family roman
17461 \emph on
17462 または
17463 \family default
17464 \emph default
17465  DefaultFont
17466 \end_layout
17467
17468 \begin_layout LyX-Code
17469  ...
17470 \end_layout
17471
17472 \begin_layout LyX-Code
17473 EndFont
17474 \end_layout
17475
17476 \begin_layout Standard
17477 以下のコマンドを使用することができます。
17478 \end_layout
17479
17480 \begin_layout Description
17481 \begin_inset Flex Code
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485 Color
17486 \end_layout
17487
17488 \end_inset
17489
17490  [
17491 \begin_inset Flex Code
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \emph on
17497 none
17498 \end_layout
17499
17500 \end_inset
17501
17502
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 black
17508 \end_layout
17509
17510 \end_inset
17511
17512
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 white
17518 \end_layout
17519
17520 \end_inset
17521
17522
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 red
17528 \end_layout
17529
17530 \end_inset
17531
17532
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 green
17538 \end_layout
17539
17540 \end_inset
17541
17542
17543 \begin_inset Flex Code
17544 status collapsed
17545
17546 \begin_layout Plain Layout
17547 blue
17548 \end_layout
17549
17550 \end_inset
17551
17552
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 cyan
17558 \end_layout
17559
17560 \end_inset
17561
17562
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 magenta
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 yellow
17578 \end_layout
17579
17580 \end_inset
17581
17582 ]
17583 \end_layout
17584
17585 \begin_layout Description
17586 \begin_inset Flex Code
17587 status collapsed
17588
17589 \begin_layout Plain Layout
17590 Family
17591 \end_layout
17592
17593 \end_inset
17594
17595  [
17596 \emph on
17597
17598 \begin_inset Flex Code
17599 status collapsed
17600
17601 \begin_layout Plain Layout
17602 Roman
17603 \end_layout
17604
17605 \end_inset
17606
17607
17608 \emph default
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 Sans
17615 \end_layout
17616
17617 \end_inset
17618
17619
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 Typewriter
17625 \end_layout
17626
17627 \end_inset
17628
17629
17630 \end_layout
17631
17632 \begin_layout Description
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637 Misc
17638 \end_layout
17639
17640 \end_inset
17641
17642  [
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647 文字列
17648 \end_layout
17649
17650 \end_inset
17651
17652 ] 有効な引数は、
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 emph
17658 \end_layout
17659
17660 \end_inset
17661
17662
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 noun
17668 \end_layout
17669
17670 \end_inset
17671
17672
17673 \begin_inset Flex Code
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677 strikeout
17678 \end_layout
17679
17680 \end_inset
17681
17682
17683 \begin_inset Flex Code
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687 underbar
17688 \end_layout
17689
17690 \end_inset
17691
17692
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 uuline
17698 \end_layout
17699
17700 \end_inset
17701
17702
17703 \begin_inset Flex Code
17704 status collapsed
17705
17706 \begin_layout Plain Layout
17707 uwave
17708 \end_layout
17709
17710 \end_inset
17711
17712
17713 \begin_inset Flex Code
17714 status collapsed
17715
17716 \begin_layout Plain Layout
17717 no_emph
17718 \end_layout
17719
17720 \end_inset
17721
17722
17723 \begin_inset Flex Code
17724 status collapsed
17725
17726 \begin_layout Plain Layout
17727 no_noun
17728 \end_layout
17729
17730 \end_inset
17731
17732
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 no_strikeout
17738 \end_layout
17739
17740 \end_inset
17741
17742
17743 \begin_inset Flex Code
17744 status collapsed
17745
17746 \begin_layout Plain Layout
17747 no_bar
17748 \end_layout
17749
17750 \end_inset
17751
17752
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 no_uuline
17758 \end_layout
17759
17760 \end_inset
17761
17762
17763 \begin_inset Flex Code
17764 status collapsed
17765
17766 \begin_layout Plain Layout
17767 no_uwave
17768 \end_layout
17769
17770 \end_inset
17771
17772 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
17773 \begin_inset Newline newline
17774 \end_inset
17775
17776 たとえば、
17777 \begin_inset Flex Code
17778 status collapsed
17779
17780 \begin_layout Plain Layout
17781 emph
17782 \end_layout
17783
17784 \end_inset
17785
17786 は強調を有効にし、
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 no_emph
17792 \end_layout
17793
17794 \end_inset
17795
17796 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
17797
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 no_emph
17803 \end_layout
17804
17805 \end_inset
17806
17807 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
17808 \end_layout
17809
17810 \begin_layout Description
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 Series
17816 \end_layout
17817
17818 \end_inset
17819
17820  [
17821 \emph on
17822
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 Medium
17828 \end_layout
17829
17830 \end_inset
17831
17832
17833 \emph default
17834
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 Bold
17840 \end_layout
17841
17842 \end_inset
17843
17844
17845 \end_layout
17846
17847 \begin_layout Description
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852 Shape
17853 \end_layout
17854
17855 \end_inset
17856
17857  [
17858 \emph on
17859
17860 \begin_inset Flex Code
17861 status collapsed
17862
17863 \begin_layout Plain Layout
17864 Up
17865 \end_layout
17866
17867 \end_inset
17868
17869
17870 \emph default
17871
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 Italic
17877 \end_layout
17878
17879 \end_inset
17880
17881
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 SmallCaps
17887 \end_layout
17888
17889 \end_inset
17890
17891
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 Slanted
17897 \end_layout
17898
17899 \end_inset
17900
17901
17902 \end_layout
17903
17904 \begin_layout Description
17905 \begin_inset Flex Code
17906 status collapsed
17907
17908 \begin_layout Plain Layout
17909 Size
17910 \end_layout
17911
17912 \end_inset
17913
17914  [
17915 \begin_inset Flex Code
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 tiny
17920 \end_layout
17921
17922 \end_inset
17923
17924
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 small
17930 \end_layout
17931
17932 \end_inset
17933
17934
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939
17940 \emph on
17941 normal
17942 \end_layout
17943
17944 \end_inset
17945
17946
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 large
17952 \end_layout
17953
17954 \end_inset
17955
17956
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 larger
17962 \end_layout
17963
17964 \end_inset
17965
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 largest
17972 \end_layout
17973
17974 \end_inset
17975
17976
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 huge
17982 \end_layout
17983
17984 \end_inset
17985
17986
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 giant
17992 \end_layout
17993
17994 \end_inset
17995
17996 ]
17997 \end_layout
17998
17999 \begin_layout Subsection
18000 \begin_inset CommandInset label
18001 LatexCommand label
18002 name "subsec:引用書式指定"
18003
18004 \end_inset
18005
18006 引用書式指定
18007 \end_layout
18008
18009 \begin_layout Standard
18010 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18011 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 CiteFormat
18017 \end_layout
18018
18019 \end_inset
18020
18021 ブロックが使用されています。このブロックは、以下のような形をしています。
18022 \end_layout
18023
18024 \begin_layout LyX-Code
18025 CiteFormat
18026 \end_layout
18027
18028 \begin_layout LyX-Code
18029  article ...
18030 \end_layout
18031
18032 \begin_layout LyX-Code
18033  book ...
18034 \end_layout
18035
18036 \begin_layout LyX-Code
18037 End
18038 \end_layout
18039
18040 \begin_layout Standard
18041 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18042 ファイル中に存在し
18043 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18044 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18045 は、いくつかの書式を
18046 \begin_inset Flex Code
18047 status collapsed
18048
18049 \begin_layout Plain Layout
18050 stdciteformats.inc
18051 \end_layout
18052
18053 \end_inset
18054
18055 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18056 文書クラスにインクルードされています。
18057 \end_layout
18058
18059 \begin_layout Standard
18060 この定義は、Bib\SpecialChar TeX
18061 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 %author%
18067 \end_layout
18068
18069 \end_inset
18070
18071 のように
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 %
18077 \end_layout
18078
18079 \end_inset
18080
18081 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18082 \end_layout
18083
18084 \begin_layout LyX-Code
18085 misc %author%, 
18086 \begin_inset Quotes eld
18087 \end_inset
18088
18089 %title%
18090 \begin_inset Quotes erd
18091 \end_inset
18092
18093
18094 \end_layout
18095
18096 \begin_layout Standard
18097 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18098 \end_layout
18099
18100 \begin_layout Standard
18101 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 {%volume%[[vol.
18107 \begin_inset space ~
18108 \end_inset
18109
18110 %volume%]]}
18111 \end_layout
18112
18113 \end_inset
18114
18115 のように、条件付きの構成を使用することができます。これは、
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120 volume
18121 \end_layout
18122
18123 \end_inset
18124
18125 が存在するならば,「vol.
18126 \begin_inset space ~
18127 \end_inset
18128
18129 」とvolumeキーを出力するという意味です。また、
18130 \begin_inset Newline newline
18131 \end_inset
18132
18133
18134 \begin_inset Flex Code
18135 status collapsed
18136
18137 \begin_layout Plain Layout
18138 {%author%[[%author%]][[%editor%, ed.]]}
18139 \end_layout
18140
18141 \end_inset
18142
18143
18144 \begin_inset Newline newline
18145 \end_inset
18146
18147 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 author
18153 \end_layout
18154
18155 \end_inset
18156
18157 キーが存在するならば出力され、そうでなければeditorキーと「,
18158 \begin_inset space ~
18159 \end_inset
18160
18161 ed.」が出力されます。ここでもキーは、
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 %
18167 \end_layout
18168
18169 \end_inset
18170
18171 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18172 \begin_inset Flex Code
18173 status collapsed
18174
18175 \begin_layout Plain Layout
18176 [[
18177 \end_layout
18178
18179 \end_inset
18180
18181 」と「
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 ]]
18187 \end_layout
18188
18189 \end_inset
18190
18191 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18192 \end_layout
18193
18194 \begin_layout Standard
18195 もう一つ、定義中で使用することのできる文法として、
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 {!<i>!}
18201 \end_layout
18202
18203 \end_inset
18204
18205 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18206 グを出力させたくはありませんから、HTMLタグは「
18207 \begin_inset Flex Code
18208 status collapsed
18209
18210 \begin_layout Plain Layout
18211 {!
18212 \end_layout
18213
18214 \end_inset
18215
18216 」と「
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 !}
18222 \end_layout
18223
18224 \end_inset
18225
18226 」でくるんでやらなくてはならないのです。
18227 \end_layout
18228
18229 \begin_layout Standard
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234 CiteFormat
18235 \end_layout
18236
18237 \end_inset
18238
18239 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18240 \end_layout
18241
18242 \begin_layout LyX-Code
18243 !quotetitle 
18244 \begin_inset Quotes eld
18245 \end_inset
18246
18247 %title%
18248 \begin_inset Quotes erd
18249 \end_inset
18250
18251
18252 \end_layout
18253
18254 \begin_layout Standard
18255 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 %!quotetitle%
18261 \end_layout
18262
18263 \end_inset
18264
18265 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18266 は、
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 %!quotetitle%
18272 \end_layout
18273
18274 \end_inset
18275
18276 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18277 \end_layout
18278
18279 \begin_layout LyX-Code
18280 !funfun %funfun%
18281 \end_layout
18282
18283 \begin_layout Standard
18284 のようなことはしないでください。\SpecialChar LyX
18285 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18286 \end_layout
18287
18288 \begin_layout Standard
18289 特殊な定義の二つめは、
18290 \end_layout
18291
18292 \begin_layout LyX-Code
18293 _pptext pp.
18294 \end_layout
18295
18296 \begin_layout Standard
18297 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 %_pptext%
18303 \end_layout
18304
18305 \end_inset
18306
18307 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 stdciteformats.inc
18313 \end_layout
18314
18315 \end_inset
18316
18317 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18318 \end_layout
18319
18320 \begin_layout Standard
18321 以下は、これらの機能を全て使った例です。
18322 \begin_inset VSpace defskip
18323 \end_inset
18324
18325
18326 \end_layout
18327
18328 \begin_layout Standard
18329 \noindent
18330
18331 \family typewriter
18332 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18333 \end_layout
18334
18335 \begin_layout Standard
18336 \begin_inset VSpace defskip
18337 \end_inset
18338
18339 これは、
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 author
18345 \end_layout
18346
18347 \end_inset
18348
18349 キーが定義されているならば、著者とコンマを出力し、
18350 \begin_inset Flex Code
18351 status collapsed
18352
18353 \begin_layout Plain Layout
18354 author
18355 \end_layout
18356
18357 \end_inset
18358
18359 キーが定義されておらず、
18360 \begin_inset Flex Code
18361 status collapsed
18362
18363 \begin_layout Plain Layout
18364 editor
18365 \end_layout
18366
18367 \end_inset
18368
18369 キーが定義されているならば、編集者名の後に
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 _edtext
18375 \end_layout
18376
18377 \end_inset
18378
18379 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 stdciteformats.inc
18385 \end_layout
18386
18387 \end_inset
18388
18389 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18390 \end_layout
18391
18392 \begin_layout Section
18393 \begin_inset CommandInset label
18394 LatexCommand label
18395 name "sec:XHTML出力のタグ"
18396
18397 \end_inset
18398
18399 XHTML出力のタグ
18400 \end_layout
18401
18402 \begin_layout Standard
18403 \SpecialChar LaTeX
18404 やDocBookと同様、\SpecialChar LyX
18405 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18406 は適切な既定値を提供し、前述したように、他のレイアウト
18407 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18408 は、章様式の
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 Font
18414 \end_layout
18415
18416 \end_inset
18417
18418 宣言で提供されている情報を利用しようと試みます。
18419 \end_layout
18420
18421 \begin_layout Standard
18422 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18423 、これが必要になる場合もあるので、\SpecialChar LyX
18424 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18425 \end_layout
18426
18427 \begin_layout Standard
18428 様式宣言や差込枠宣言の外で使用することができるタグに、
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 HTMLPreamble
18434 \end_layout
18435
18436 \end_inset
18437
18438
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 AddToHTMLPreamble
18444 \end_layout
18445
18446 \end_inset
18447
18448 の2つがあることに注意してください。これらの詳細については、
18449 \begin_inset CommandInset ref
18450 LatexCommand ref
18451 reference "subsec:汎用テキストクラスパラメータ"
18452
18453 \end_inset
18454
18455 をご覧ください。
18456 \end_layout
18457
18458 \begin_layout Subsection
18459 \begin_inset CommandInset label
18460 LatexCommand label
18461 name "subsec:段落様式-XHTML"
18462
18463 \end_inset
18464
18465 段落様式
18466 \end_layout
18467
18468 \begin_layout Standard
18469 \SpecialChar LyX
18470 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18471 \begin_inset Flex Code
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475 \SpecialChar LaTeX
18476 Type
18477 \end_layout
18478
18479 \end_inset
18480
18481 タグの内容によって決定されます。
18482 \end_layout
18483
18484 \begin_layout Standard
18485 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18486 \end_layout
18487
18488 \begin_layout LyX-Code
18489 <tag attr=
18490 \begin_inset Quotes erd
18491 \end_inset
18492
18493 value
18494 \begin_inset Quotes erd
18495 \end_inset
18496
18497 >
18498 \end_layout
18499
18500 \begin_layout LyX-Code
18501 <labeltag attr=
18502 \begin_inset Quotes erd
18503 \end_inset
18504
18505 value
18506 \begin_inset Quotes erd
18507 \end_inset
18508
18509 >ラベル</labeltag>
18510 \end_layout
18511
18512 \begin_layout LyX-Code
18513 段落の内容
18514 \end_layout
18515
18516 \begin_layout LyX-Code
18517 </tag>
18518 \end_layout
18519
18520 \begin_layout Standard
18521 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18522 \end_layout
18523
18524 \begin_layout Standard
18525 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18526 \end_layout
18527
18528 \begin_layout LyX-Code
18529 <tag attr=
18530 \begin_inset Quotes erd
18531 \end_inset
18532
18533 value
18534 \begin_inset Quotes erd
18535 \end_inset
18536
18537 >
18538 \end_layout
18539
18540 \begin_layout LyX-Code
18541 <itemtag attr=
18542 \begin_inset Quotes erd
18543 \end_inset
18544
18545 value
18546 \begin_inset Quotes erd
18547 \end_inset
18548
18549 ><labeltag attr=
18550 \begin_inset Quotes erd
18551 \end_inset
18552
18553 value
18554 \begin_inset Quotes erd
18555 \end_inset
18556
18557 >環境ラベル</labeltag>最初の段落。
18558 \end_layout
18559
18560 \begin_layout LyX-Code
18561 </itemtag>
18562 \end_layout
18563
18564 \begin_layout LyX-Code
18565 <itemtag>二つめの段落。</itemtag>
18566 \end_layout
18567
18568 \begin_layout LyX-Code
18569 </tag>
18570 \end_layout
18571
18572 \begin_layout Standard
18573 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18574 \end_layout
18575
18576 \begin_layout Standard
18577 リストに関しては、次のような形になります。
18578 \end_layout
18579
18580 \begin_layout LyX-Code
18581 <tag attr=
18582 \begin_inset Quotes erd
18583 \end_inset
18584
18585 value
18586 \begin_inset Quotes erd
18587 \end_inset
18588
18589 >
18590 \end_layout
18591
18592 \begin_layout LyX-Code
18593 <itemtag attr=
18594 \begin_inset Quotes erd
18595 \end_inset
18596
18597 value
18598 \begin_inset Quotes erd
18599 \end_inset
18600
18601 ><labeltag attr=
18602 \begin_inset Quotes erd
18603 \end_inset
18604
18605 value
18606 \begin_inset Quotes erd
18607 \end_inset
18608
18609 >リストのラベル</labeltag>最初の項目。</itemtag>
18610 \end_layout
18611
18612 \begin_layout LyX-Code
18613 <itemtag attr=
18614 \begin_inset Quotes erd
18615 \end_inset
18616
18617 value
18618 \begin_inset Quotes erd
18619 \end_inset
18620
18621 ><labeltag attr=
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625 value
18626 \begin_inset Quotes erd
18627 \end_inset
18628
18629 >リストのラベル</labeltag>二つめの項目。</itemtag>
18630 \end_layout
18631
18632 \begin_layout LyX-Code
18633 </tag>
18634 \end_layout
18635
18636 \begin_layout LyX-Code
18637
18638 \end_layout
18639
18640 \begin_layout LyX-Code
18641 <tag attr=
18642 \begin_inset Quotes erd
18643 \end_inset
18644
18645 value
18646 \begin_inset Quotes erd
18647 \end_inset
18648
18649 >
18650 \end_layout
18651
18652 \begin_layout LyX-Code
18653 <labeltag attr=
18654 \begin_inset Quotes erd
18655 \end_inset
18656
18657 value
18658 \begin_inset Quotes erd
18659 \end_inset
18660
18661 >リストのラベル</labeltag><itemtag attr=
18662 \begin_inset Quotes erd
18663 \end_inset
18664
18665 value
18666 \begin_inset Quotes erd
18667 \end_inset
18668
18669 >最初の項目。</itemtag>
18670 \end_layout
18671
18672 \begin_layout LyX-Code
18673 <labeltag attr=
18674 \begin_inset Quotes erd
18675 \end_inset
18676
18677 value
18678 \begin_inset Quotes erd
18679 \end_inset
18680
18681 >リストのラベル</labeltag><itemtag attr=
18682 \begin_inset Quotes erd
18683 \end_inset
18684
18685 value
18686 \begin_inset Quotes erd
18687 \end_inset
18688
18689 >二つめの項目</itemtag>
18690 \end_layout
18691
18692 \begin_layout LyX-Code
18693 </tag>
18694 \end_layout
18695
18696 \begin_layout Standard
18697 ここで
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 labeltag
18703 \end_layout
18704
18705 \end_inset
18706
18707
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 itemtag
18713 \end_layout
18714
18715 \end_inset
18716
18717 の順序が違っていることに注意してください。どちらの順序になるかは、
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 HTMLLabelFirst
18723 \end_layout
18724
18725 \end_inset
18726
18727 の設定に依存します。もし
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 HTMLLabelFirst
18733 \end_layout
18734
18735 \end_inset
18736
18737 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
18738 \end_layout
18739
18740 \begin_layout Standard
18741 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
18742 は適切な既定値を生成
18743 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
18744 でここにあるものと考えてください。
18745 \end_layout
18746
18747 \begin_layout Description
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 HTMLAttr
18753 \end_layout
18754
18755 \end_inset
18756
18757  [
18758 \begin_inset Flex Code
18759 status collapsed
18760
18761 \begin_layout Plain Layout
18762 文字列
18763 \end_layout
18764
18765 \end_inset
18766
18767 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 class=`mydiv'
18773 \end_layout
18774
18775 \end_inset
18776
18777 」のようなものです。既定においては、\SpecialChar LyX
18778 は「
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783 class=`レイアウト名'
18784 \end_layout
18785
18786 \end_inset
18787
18788 」と出力します。ここで
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793 レイアウト名
18794 \end_layout
18795
18796 \end_inset
18797
18798 は、レイアウトの\SpecialChar LyX
18799 名であり、chapterのように小文字で記述します。
18800 \end_layout
18801
18802 \begin_layout Description
18803 \begin_inset Flex Code
18804 status collapsed
18805
18806 \begin_layout Plain Layout
18807 HTMLForceCSS
18808 \end_layout
18809
18810 \end_inset
18811
18812  [
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817
18818 \emph on
18819 0
18820 \emph default
18821 ,1
18822 \end_layout
18823
18824 \end_inset
18825
18826 ] 
18827 \begin_inset Flex Code
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 HTMLStyle
18832 \end_layout
18833
18834 \end_inset
18835
18836 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
18837 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 1
18843 \end_layout
18844
18845 \end_inset
18846
18847 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
18848 \begin_inset Flex Code
18849 status collapsed
18850
18851 \begin_layout Plain Layout
18852 0
18853 \end_layout
18854
18855 \end_inset
18856
18857 です。
18858 \end_layout
18859
18860 \begin_layout Description
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 HTMLItem
18866 \end_layout
18867
18868 \end_inset
18869
18870  [
18871 \begin_inset Flex Code
18872 status collapsed
18873
18874 \begin_layout Plain Layout
18875 文字列
18876 \end_layout
18877
18878 \end_inset
18879
18880 ] 環境の段落に使用されるタグ。上記各例の
18881 \begin_inset Flex Code
18882 status collapsed
18883
18884 \begin_layout Plain Layout
18885 itemtag
18886 \end_layout
18887
18888 \end_inset
18889
18890 を置き換えます。既定値は
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 div
18896 \end_layout
18897
18898 \end_inset
18899
18900 です。
18901 \end_layout
18902
18903 \begin_layout Description
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 HTMLItemAttr
18909 \end_layout
18910
18911 \end_inset
18912
18913  [
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 文字列
18919 \end_layout
18920
18921 \end_inset
18922
18923 ] itemタグの属性。既定値は
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 class=`レイアウト名_item'
18929 \end_layout
18930
18931 \end_inset
18932
18933 です。ここには、様式情報は含まれては
18934 \emph on
18935 なりません
18936 \emph default
18937 。その目的のためには、
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 HTMLStyle
18943 \end_layout
18944
18945 \end_inset
18946
18947 を使用してください。
18948 \end_layout
18949
18950 \begin_layout Description
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 HTMLLabel
18956 \end_layout
18957
18958 \end_inset
18959
18960  [
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 文字列
18966 \end_layout
18967
18968 \end_inset
18969
18970 ] 段落と項目ラベルに使用されるタグ。上記各例の
18971 \begin_inset Flex Code
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 labeltag
18976 \end_layout
18977
18978 \end_inset
18979
18980 を置き換えます。
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 LabelType
18986 \end_layout
18987
18988 \end_inset
18989
18990
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 Top_Environment
18996 \end_layout
18997
18998 \end_inset
18999
19000
19001 \begin_inset Flex Code
19002 status collapsed
19003
19004 \begin_layout Plain Layout
19005 Centered_Top_Environment
19006 \end_layout
19007
19008 \end_inset
19009
19010 の時は、既定値は
19011 \begin_inset Flex Code
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 div
19016 \end_layout
19017
19018 \end_inset
19019
19020 ですが、それ以外の時の既定値は
19021 \begin_inset Flex Code
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025 span
19026 \end_layout
19027
19028 \end_inset
19029
19030 です。
19031 \end_layout
19032
19033 \begin_layout Description
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 HTMLLabelAttr
19039 \end_layout
19040
19041 \end_inset
19042
19043  [
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 文字列
19049 \end_layout
19050
19051 \end_inset
19052
19053 ] labelタグの属性。既定値は
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 class=`レイアウト名_label'
19059 \end_layout
19060
19061 \end_inset
19062
19063 です。ここには、様式情報は含まれては
19064 \emph on
19065 なりません
19066 \emph default
19067 。その目的のためには、
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 HTMLStyle
19073 \end_layout
19074
19075 \end_inset
19076
19077 を使用してください。
19078 \end_layout
19079
19080 \begin_layout Description
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 HTMLLabelFirst
19086 \end_layout
19087
19088 \end_inset
19089
19090  [
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095
19096 \emph on
19097 0
19098 \emph default
19099 ,1
19100 \end_layout
19101
19102 \end_inset
19103
19104 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19105 tion環境の中で、
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 `<dt>\SpecialChar ldots
19111 </dt><dd>\SpecialChar ldots
19112 </dd>
19113 \end_layout
19114
19115 \end_inset
19116
19117 という形を得るために使用されます。既定値は
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 0
19123 \end_layout
19124
19125 \end_inset
19126
19127 で、labelタグはitemタグの中に出力されます。
19128 \end_layout
19129
19130 \begin_layout Description
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 HTMLPreamble
19136 \end_layout
19137
19138 \end_inset
19139
19140  この様式が使用されたときに、
19141 \begin_inset Flex Code
19142 status collapsed
19143
19144 \begin_layout Plain Layout
19145 <head>
19146 \end_layout
19147
19148 \end_inset
19149
19150 セクションに出力される情報。これは、たとえば、
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 onclick
19156 \end_layout
19157
19158 \end_inset
19159
19160 ハンドラを定義するために
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 <script>
19166 \end_layout
19167
19168 \end_inset
19169
19170 ブロックをインクルードするのに使用することができます。
19171 \end_layout
19172
19173 \begin_layout Description
19174 \begin_inset Flex Code
19175 status collapsed
19176
19177 \begin_layout Plain Layout
19178 HTMLStyle
19179 \end_layout
19180
19181 \end_inset
19182
19183   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 <style>
19189 \end_layout
19190
19191 \end_inset
19192
19193 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 EndHTMLStyle
19199 \end_layout
19200
19201 \end_inset
19202
19203 で閉じなくてはなりません。
19204 \end_layout
19205
19206 \begin_layout Description
19207 \begin_inset Flex Code
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 HTMLTag
19212 \end_layout
19213
19214 \end_inset
19215
19216  [
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 文字列
19222 \end_layout
19223
19224 \end_inset
19225
19226 ] 主幹ラベルに使用されるタグ。上記各例の
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 tag
19232 \end_layout
19233
19234 \end_inset
19235
19236 を置き換えます。既定値は
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 div
19242 \end_layout
19243
19244 \end_inset
19245
19246 です。
19247 \end_layout
19248
19249 \begin_layout Description
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 HTMLTitle
19255 \end_layout
19256
19257 \end_inset
19258
19259  [
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264
19265 \emph on
19266 0
19267 \emph default
19268 ,1
19269 \end_layout
19270
19271 \end_inset
19272
19273 ] この様式が、XHTMLファイルの
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 <title>
19279 \end_layout
19280
19281 \end_inset
19282
19283 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 stdtitle.inc
19289 \end_layout
19290
19291 \end_inset
19292
19293 ファイルでは、
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 title
19299 \end_layout
19300
19301 \end_inset
19302
19303 環境のこの項目を真に設定しています。
19304 \end_layout
19305
19306 \begin_layout Subsection
19307 差込枠レイアウトXHTML
19308 \end_layout
19309
19310 \begin_layout Standard
19311 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19312 \begin_inset Foot
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19317 ん。
19318 \end_layout
19319
19320 \end_inset
19321
19322 。ここでも、\SpecialChar LyX
19323 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19324 \end_layout
19325
19326 \begin_layout Standard
19327 \SpecialChar LyX
19328 が差込枠用に出力するXHTMLは、以下の形を取ります。
19329 \end_layout
19330
19331 \begin_layout LyX-Code
19332 <tag attr=
19333 \begin_inset Quotes erd
19334 \end_inset
19335
19336 value
19337 \begin_inset Quotes erd
19338 \end_inset
19339
19340 >
19341 \end_layout
19342
19343 \begin_layout LyX-Code
19344 <labeltag>ラベル</labeltag>
19345 \end_layout
19346
19347 \begin_layout LyX-Code
19348 <innertag attr=
19349 \begin_inset Quotes erd
19350 \end_inset
19351
19352 value
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356 >差込枠の内容。</innertag>
19357 \end_layout
19358
19359 \begin_layout LyX-Code
19360 </tag>
19361 \end_layout
19362
19363 \begin_layout Standard
19364 差込枠が多段落を許可している—つまり
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 MultiPar
19370 \end_layout
19371
19372 \end_inset
19373
19374 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19375 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 span
19381 \end_layout
19382
19383 \end_inset
19384
19385 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19386 す。
19387 \end_layout
19388
19389 \begin_layout Description
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394 HTMLAttr
19395 \end_layout
19396
19397 \end_inset
19398
19399  [
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 文字列
19405 \end_layout
19406
19407 \end_inset
19408
19409 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 class=`myinset' onclick=`\SpecialChar ldots
19415 '
19416 \end_layout
19417
19418 \end_inset
19419
19420 」のようなものです。既定においては、\SpecialChar LyX
19421 は「
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 class=`差込枠名'
19427 \end_layout
19428
19429 \end_inset
19430
19431 」と出力します。ここで
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 差込枠名
19437 \end_layout
19438
19439 \end_inset
19440
19441 は、差込枠の\SpecialChar LyX
19442 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19443 \end_layout
19444
19445 \begin_layout Description
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450 HTMLForceCSS
19451 \end_layout
19452
19453 \end_inset
19454
19455  [
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460
19461 \emph on
19462 0
19463 \emph default
19464 ,1
19465 \end_layout
19466
19467 \end_inset
19468
19469 ] 
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 HTMLStyle
19475 \end_layout
19476
19477 \end_inset
19478
19479 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19480 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19481 \begin_inset Flex Code
19482 status collapsed
19483
19484 \begin_layout Plain Layout
19485 1
19486 \end_layout
19487
19488 \end_inset
19489
19490 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495 0
19496 \end_layout
19497
19498 \end_inset
19499
19500 です。
19501 \end_layout
19502
19503 \begin_layout Description
19504 \begin_inset Flex Code
19505 status collapsed
19506
19507 \begin_layout Plain Layout
19508 HTMLInnerAttr
19509 \end_layout
19510
19511 \end_inset
19512
19513  [
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 文字列
19519 \end_layout
19520
19521 \end_inset
19522
19523 ] innerタグの属性。既定値は
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 class=`差込枠名_inner'
19529 \end_layout
19530
19531 \end_inset
19532
19533 です。
19534 \end_layout
19535
19536 \begin_layout Description
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 HTMLInnerTag
19542 \end_layout
19543
19544 \end_inset
19545
19546  [
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 文字列
19552 \end_layout
19553
19554 \end_inset
19555
19556 ] innerタグです。上記各例の
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 innertag
19562 \end_layout
19563
19564 \end_inset
19565
19566 を置き換えます。既定値はなしです。
19567 \end_layout
19568
19569 \begin_layout Description
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574 HTMLIsBlock
19575 \end_layout
19576
19577 \end_inset
19578
19579  [
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 0,
19585 \emph on
19586 1
19587 \end_layout
19588
19589 \end_inset
19590
19591 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19592 \end_layout
19593
19594 \begin_layout Description
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 HTMLLabel
19600 \end_layout
19601
19602 \end_inset
19603
19604  [
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 文字列
19610 \end_layout
19611
19612 \end_inset
19613
19614 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
19615 \begin_inset Flex Code
19616 status collapsed
19617
19618 \begin_layout Plain Layout
19619
19620 \backslash
19621 arabic{footnote}
19622 \end_layout
19623
19624 \end_inset
19625
19626 など。これは非必須であり、既定値はありません。
19627 \end_layout
19628
19629 \begin_layout Description
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 HTMLPreamble
19635 \end_layout
19636
19637 \end_inset
19638
19639  この様式が使用されたときに、
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 <head>
19645 \end_layout
19646
19647 \end_inset
19648
19649 セクションに出力される情報。これは、たとえば、
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 onclick
19655 \end_layout
19656
19657 \end_inset
19658
19659 ハンドラを定義するために
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 <script>
19665 \end_layout
19666
19667 \end_inset
19668
19669 ブロックをインクルードするのに使用することができます。
19670 \end_layout
19671
19672 \begin_layout Description
19673 \begin_inset Flex Code
19674 status collapsed
19675
19676 \begin_layout Plain Layout
19677 HTMLStyle
19678 \end_layout
19679
19680 \end_inset
19681
19682   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 <style>
19688 \end_layout
19689
19690 \end_inset
19691
19692 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19693 \end_layout
19694
19695 \begin_layout Description
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700 HTMLTag
19701 \end_layout
19702
19703 \end_inset
19704
19705  [
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 文字列
19711 \end_layout
19712
19713 \end_inset
19714
19715 ] 主幹ラベルに使用されるタグ。上記各例の
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720 tag
19721 \end_layout
19722
19723 \end_inset
19724
19725 を置き換えます。既定値は
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 MultiPar
19731 \end_layout
19732
19733 \end_inset
19734
19735 の設定に依存し、
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740 MultiPar
19741 \end_layout
19742
19743 \end_inset
19744
19745 が真ならば
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 div
19751 \end_layout
19752
19753 \end_inset
19754
19755 、偽ならば
19756 \begin_inset Flex Code
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760 span
19761 \end_layout
19762
19763 \end_inset
19764
19765 です。
19766 \end_layout
19767
19768 \begin_layout Subsection
19769 フロートXHTML
19770 \end_layout
19771
19772 \begin_layout Standard
19773 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
19774 \end_layout
19775
19776 \begin_layout LyX-Code
19777 <tag attr=
19778 \begin_inset Quotes erd
19779 \end_inset
19780
19781 value
19782 \begin_inset Quotes erd
19783 \end_inset
19784
19785 >
19786 \end_layout
19787
19788 \begin_layout LyX-Code
19789 フロートの内容。
19790 \end_layout
19791
19792 \begin_layout LyX-Code
19793 </tag>
19794 \end_layout
19795
19796 \begin_layout Standard
19797 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
19798 きます。
19799 \end_layout
19800
19801 \begin_layout Description
19802 \begin_inset Flex Code
19803 status collapsed
19804
19805 \begin_layout Plain Layout
19806 HTMLAttr
19807 \end_layout
19808
19809 \end_inset
19810
19811  [
19812 \begin_inset Flex Code
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 文字列
19817 \end_layout
19818
19819 \end_inset
19820
19821 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19822 \begin_inset Flex Code
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826 class=`myfloat' onclick=`\SpecialChar ldots
19827 '
19828 \end_layout
19829
19830 \end_inset
19831
19832 」のようなものです。既定においては、\SpecialChar LyX
19833 は「
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 class=`float フロート-フロート型'
19839 \end_layout
19840
19841 \end_inset
19842
19843 」と出力します。ここで
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 フロート型
19849 \end_layout
19850
19851 \end_inset
19852
19853 は、フロート宣言で定義された(
19854 \begin_inset CommandInset ref
19855 LatexCommand ref
19856 reference "subsec:フロート"
19857
19858 \end_inset
19859
19860 参照)、この型のフロートの\SpecialChar LyX
19861 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
19862 \end_layout
19863
19864 \begin_layout Description
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 HTMLStyle
19870 \end_layout
19871
19872 \end_inset
19873
19874   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 <style>
19880 \end_layout
19881
19882 \end_inset
19883
19884 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19885 \end_layout
19886
19887 \begin_layout Description
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 HTMLTag
19893 \end_layout
19894
19895 \end_inset
19896
19897  [
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 文字列
19903 \end_layout
19904
19905 \end_inset
19906
19907 ] このフロートに使用されるタグ。上記各例の
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 tag
19913 \end_layout
19914
19915 \end_inset
19916
19917 を置き換えます。既定値は
19918 \begin_inset Flex Code
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 div
19923 \end_layout
19924
19925 \end_inset
19926
19927 であり、ほとんどの場合変更する必要はありません。
19928 \end_layout
19929
19930 \begin_layout Subsection
19931 書誌情報の整形
19932 \end_layout
19933
19934 \begin_layout Standard
19935 書誌情報は、
19936 \begin_inset Flex Code
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940 CiteFormat
19941 \end_layout
19942
19943 \end_inset
19944
19945 ブロックを使用して整形することができます。詳細については、
19946 \begin_inset CommandInset ref
19947 LatexCommand ref
19948 reference "subsec:引用書式指定"
19949
19950 \end_inset
19951
19952 を参照してください。
19953 \end_layout
19954
19955 \begin_layout Subsection
19956 \SpecialChar LyX
19957 が生成したCSS
19958 \end_layout
19959
19960 \begin_layout Standard
19961 \SpecialChar LyX
19962 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
19963
19964 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
19965 \end_layout
19966
19967 \begin_layout Standard
19968 \SpecialChar LyX
19969 は、現在のところ、
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 Font
19975 \end_layout
19976
19977 \end_inset
19978
19979 宣言で指定されている
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 Family
19985 \end_layout
19986
19987 \end_inset
19988
19989
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 Series
19995 \end_layout
19996
19997 \end_inset
19998
19999
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 Shape
20005 \end_layout
20006
20007 \end_inset
20008
20009
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 Size
20015 \end_layout
20016
20017 \end_inset
20018
20019 を利用して、フォント情報についてのみCSSを自動生成します(
20020 \begin_inset CommandInset ref
20021 LatexCommand ref
20022 reference "subsec:フォント指定"
20023
20024 \end_inset
20025
20026 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 Family Sans
20032 \end_layout
20033
20034 \end_inset
20035
20036 」は「
20037 \begin_inset Flex Code
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 font-family: sans-serif
20042 \end_layout
20043
20044 \end_inset
20045
20046 」になります。\SpecialChar LyX
20047 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20048 \begin_inset Flex URL
20049 status collapsed
20050
20051 \begin_layout Plain Layout
20052
20053 src/FontInfo.cpp
20054 \end_layout
20055
20056 \end_inset
20057
20058
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 getSizeCSS()
20064 \end_layout
20065
20066 \end_inset
20067
20068 関数をご覧ください。
20069 \end_layout
20070
20071 \begin_layout Chapter
20072 外部素材を取り込む
20073 \begin_inset CommandInset label
20074 LatexCommand label
20075 name "chap:外部素材を取り込む"
20076
20077 \end_inset
20078
20079
20080 \end_layout
20081
20082 \begin_layout Standard
20083 \begin_inset Box Shadowbox
20084 position "t"
20085 hor_pos "c"
20086 has_inner_box 1
20087 inner_pos "t"
20088 use_parbox 0
20089 use_makebox 0
20090 width "100col%"
20091 special "none"
20092 height "1in"
20093 height_special "totalheight"
20094 thickness "0.4pt"
20095 separation "3pt"
20096 shadowsize "4pt"
20097 framecolor "black"
20098 backgroundcolor "none"
20099 status open
20100
20101 \begin_layout Plain Layout
20102 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20103 \end_layout
20104
20105 \end_inset
20106
20107
20108 \end_layout
20109
20110 \begin_layout Standard
20111 \SpecialChar LyX
20112 外部のソースから素材を使用する方法は、取扱説明書『
20113 \emph on
20114 埋込オブジェクト篇
20115 \emph default
20116 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20117 \end_layout
20118
20119 \begin_layout Section
20120 どのように機能するのか
20121 \end_layout
20122
20123 \begin_layout Standard
20124 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20125 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20126 は、Xfigの図や、様々
20127 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20128 \begin_inset Flex MenuItem
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132 挿入\SpecialChar menuseparator
20133 ファイル\SpecialChar menuseparator
20134 外部素材
20135 \end_layout
20136
20137 \end_inset
20138
20139 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20140 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20141 の後の版に取り込むことができるようにしてくださることを希望します。
20142 \end_layout
20143
20144 \begin_layout Standard
20145 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20146 いることです。たとえば、
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 Xfig
20152 \end_layout
20153
20154 \end_inset
20155
20156 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 .fig
20162 \end_layout
20163
20164 \end_inset
20165
20166 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 fig
20172 \end_layout
20173
20174 \end_inset
20175
20176 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20177 ファイルにそのままインクルードできるように、
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 transfig
20183 \end_layout
20184
20185 \end_inset
20186
20187 を呼び出してPostScriptファイルを生成します。この場合には、
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 .fig
20193 \end_layout
20194
20195 \end_inset
20196
20197 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20198 \end_layout
20199
20200 \begin_layout Standard
20201 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20202 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20203 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20204 の外部素材マネジメントは
20205 、\SpecialChar LyX
20206 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20207 \end_layout
20208
20209 \begin_layout Standard
20210 \SpecialChar LyX
20211 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20212 の場合には、\SpecialChar LyX
20213 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20214 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20215 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20216 できるようになるのです。
20217 \end_layout
20218
20219 \begin_layout Section
20220 外用ひな型設定ファイル
20221 \end_layout
20222
20223 \begin_layout Standard
20224 \SpecialChar LyX
20225 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20226 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20227 \begin_inset CommandInset ref
20228 LatexCommand ref
20229 reference "sec:セキュリティに関する論点"
20230
20231 \end_inset
20232
20233 のセキュリティに関する議論を読んでおいてください。
20234 \end_layout
20235
20236 \begin_layout Standard
20237 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20238 \end_layout
20239
20240 \begin_layout Standard
20241 外用ひな型は、
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 \SpecialChar LyX
20247 Dir/lib/external_templates
20248 \end_layout
20249
20250 \end_inset
20251
20252 ファイルで定義されています。自分用の版を
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 UserDir/external_templates
20258 \end_layout
20259
20260 \end_inset
20261
20262 に置くこともできます。
20263 \end_layout
20264
20265 \begin_layout Standard
20266 典型的なひな型は以下のようになります。
20267 \end_layout
20268
20269 \begin_layout LyX-Code
20270 Template XFig
20271 \end_layout
20272
20273 \begin_layout LyX-Code
20274 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20275 \end_layout
20276
20277 \begin_layout LyX-Code
20278 HelpText
20279 \end_layout
20280
20281 \begin_layout LyX-Code
20282 An XFig figure.
20283 \end_layout
20284
20285 \begin_layout LyX-Code
20286 HelpTextEnd
20287 \end_layout
20288
20289 \begin_layout LyX-Code
20290 InputFormat fig
20291 \end_layout
20292
20293 \begin_layout LyX-Code
20294 FileFilter "*.fig"
20295 \end_layout
20296
20297 \begin_layout LyX-Code
20298 AutomaticProduction true
20299 \end_layout
20300
20301 \begin_layout LyX-Code
20302 Transform Rotate
20303 \end_layout
20304
20305 \begin_layout LyX-Code
20306 Transform Resize
20307 \end_layout
20308
20309 \begin_layout LyX-Code
20310 Format LaT
20311 \begin_inset ERT
20312 status collapsed
20313
20314 \begin_layout Plain Layout
20315
20316 {}
20317 \end_layout
20318
20319 \end_inset
20320
20321 eX
20322 \end_layout
20323
20324 \begin_layout LyX-Code
20325 TransformCommand Rotate RotationLatexCommand
20326 \end_layout
20327
20328 \begin_layout LyX-Code
20329 TransformCommand Resize ResizeLatexCommand
20330 \end_layout
20331
20332 \begin_layout LyX-Code
20333 Product "$$RotateFront$$ResizeFront
20334 \end_layout
20335
20336 \begin_layout LyX-Code
20337          
20338 \backslash
20339
20340 \backslash
20341 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20342 \end_layout
20343
20344 \begin_layout LyX-Code
20345          $$ResizeBack$$RotateBack"
20346 \end_layout
20347
20348 \begin_layout LyX-Code
20349 UpdateFormat pstex
20350 \end_layout
20351
20352 \begin_layout LyX-Code
20353 UpdateResult "$$AbsPath$$Basename.pstex_t"
20354 \end_layout
20355
20356 \begin_layout LyX-Code
20357 Requirement "graphicx"
20358 \end_layout
20359
20360 \begin_layout LyX-Code
20361 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20362 \end_layout
20363
20364 \begin_layout LyX-Code
20365 ReferencedFile latex "$$AbsPath$$Basename.eps"
20366 \end_layout
20367
20368 \begin_layout LyX-Code
20369 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20370 \end_layout
20371
20372 \begin_layout LyX-Code
20373 FormatEnd
20374 \end_layout
20375
20376 \begin_layout LyX-Code
20377 Format PDFLaT
20378 \begin_inset ERT
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382
20383 {}
20384 \end_layout
20385
20386 \end_inset
20387
20388 eX
20389 \end_layout
20390
20391 \begin_layout LyX-Code
20392 TransformCommand Rotate RotationLatexCommand
20393 \end_layout
20394
20395 \begin_layout LyX-Code
20396 TransformCommand Resize ResizeLatexCommand
20397 \end_layout
20398
20399 \begin_layout LyX-Code
20400 Product "$$RotateFront$$ResizeFront
20401 \end_layout
20402
20403 \begin_layout LyX-Code
20404          
20405 \backslash
20406
20407 \backslash
20408 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20409 \end_layout
20410
20411 \begin_layout LyX-Code
20412          $$ResizeBack$$RotateBack"
20413 \end_layout
20414
20415 \begin_layout LyX-Code
20416 UpdateFormat pdftex
20417 \end_layout
20418
20419 \begin_layout LyX-Code
20420 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20421 \end_layout
20422
20423 \begin_layout LyX-Code
20424 Requirement "graphicx"
20425 \end_layout
20426
20427 \begin_layout LyX-Code
20428 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20429 \end_layout
20430
20431 \begin_layout LyX-Code
20432 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20433 \end_layout
20434
20435 \begin_layout LyX-Code
20436 FormatEnd
20437 \end_layout
20438
20439 \begin_layout LyX-Code
20440 Format Ascii
20441 \end_layout
20442
20443 \begin_layout LyX-Code
20444 Product "$$Contents(
20445 \backslash
20446 "$$AbsPath$$Basename.asc
20447 \backslash
20448 ")"
20449 \end_layout
20450
20451 \begin_layout LyX-Code
20452 UpdateFormat asciixfig
20453 \end_layout
20454
20455 \begin_layout LyX-Code
20456 UpdateResult "$$AbsPath$$Basename.asc"
20457 \end_layout
20458
20459 \begin_layout LyX-Code
20460 FormatEnd
20461 \end_layout
20462
20463 \begin_layout LyX-Code
20464 Format DocBook
20465 \end_layout
20466
20467 \begin_layout LyX-Code
20468 Product "<graphic fileref=
20469 \backslash
20470 "$$AbsOrRelPathMaster$$Basename.eps
20471 \backslash
20472 ">
20473 \end_layout
20474
20475 \begin_layout LyX-Code
20476          </graphic>"
20477 \end_layout
20478
20479 \begin_layout LyX-Code
20480 UpdateFormat eps
20481 \end_layout
20482
20483 \begin_layout LyX-Code
20484 UpdateResult "$$AbsPath$$Basename.eps"
20485 \end_layout
20486
20487 \begin_layout LyX-Code
20488 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20489 \end_layout
20490
20491 \begin_layout LyX-Code
20492 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20493 \end_layout
20494
20495 \begin_layout LyX-Code
20496 FormatEnd
20497 \end_layout
20498
20499 \begin_layout LyX-Code
20500 Product "[XFig: $$FName]"
20501 \end_layout
20502
20503 \begin_layout LyX-Code
20504 FormatEnd
20505 \end_layout
20506
20507 \begin_layout LyX-Code
20508 TemplateEnd
20509 \end_layout
20510
20511 \begin_layout Standard
20512 ご覧の通り、ひな型は
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 Template
20518 \end_layout
20519
20520 \end_inset
20521
20522  \SpecialChar ldots
20523  
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 TemplateEnd
20529 \end_layout
20530
20531 \end_inset
20532
20533 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 Format
20539 \end_layout
20540
20541 \end_inset
20542
20543  \SpecialChar ldots
20544  
20545 \begin_inset Flex Code
20546 status collapsed
20547
20548 \begin_layout Plain Layout
20549 FormatEnd
20550 \end_layout
20551
20552 \end_inset
20553
20554 部があります。
20555 \end_layout
20556
20557 \begin_layout Subsection
20558 ひな型のヘッダ
20559 \end_layout
20560
20561 \begin_layout Description
20562 \begin_inset Flex Code
20563 status collapsed
20564
20565 \begin_layout Plain Layout
20566 AutomaticProduction
20567 \begin_inset space ~
20568 \end_inset
20569
20570 true|false
20571 \end_layout
20572
20573 \end_inset
20574
20575  このひな型で扱うファイルを\SpecialChar LyX
20576 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20577 \end_layout
20578
20579 \begin_layout Description
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 FileFilter
20585 \begin_inset space ~
20586 \end_inset
20587
20588 <パターン>
20589 \end_layout
20590
20591 \end_inset
20592
20593  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 .obj
20599 \end_layout
20600
20601 \end_inset
20602
20603
20604 \begin_inset Flex Code
20605 status collapsed
20606
20607 \begin_layout Plain Layout
20608 .tgo
20609 \end_layout
20610
20611 \end_inset
20612
20613 があります)、「
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 *.{obj,tgo}
20619 \end_layout
20620
20621 \end_inset
20622
20623 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
20624 \end_layout
20625
20626 \begin_layout Description
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 GuiName
20632 \begin_inset space ~
20633 \end_inset
20634
20635 <GUI名>
20636 \end_layout
20637
20638 \end_inset
20639
20640  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
20641 \end_layout
20642
20643 \begin_layout Description
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 HelpText
20649 \begin_inset space ~
20650 \end_inset
20651
20652 <文章>
20653 \begin_inset space ~
20654 \end_inset
20655
20656 HelpTextEnd
20657 \end_layout
20658
20659 \end_inset
20660
20661  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
20662 ず現れなくてはなりません。
20663 \end_layout
20664
20665 \begin_layout Description
20666 \begin_inset Flex Code
20667 status collapsed
20668
20669 \begin_layout Plain Layout
20670 InputFormat
20671 \begin_inset space ~
20672 \end_inset
20673
20674 <書式>
20675 \end_layout
20676
20677 \end_inset
20678
20679  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
20680 が知っている書式名でなくてはなりません(
20681 \begin_inset CommandInset ref
20682 LatexCommand ref
20683 reference "sec:ファイル形式"
20684
20685 \end_inset
20686
20687 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 *
20693 \end_layout
20694
20695 \end_inset
20696
20697 」を使用してください。この場合、\SpecialChar LyX
20698 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
20699 \end_layout
20700
20701 \begin_layout Description
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706 Template
20707 \begin_inset space ~
20708 \end_inset
20709
20710 <ID>
20711 \end_layout
20712
20713 \end_inset
20714
20715  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
20716 \end_layout
20717
20718 \begin_layout Description
20719 \begin_inset Flex Code
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723 Transform
20724 \begin_inset space ~
20725 \end_inset
20726
20727 Rotate|Resize|Clip|Extra
20728 \end_layout
20729
20730 \end_inset
20731
20732  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
20733 ログ中の対応するタブを使用可能にします。
20734 \begin_inset Flex Code
20735 status collapsed
20736
20737 \begin_layout Plain Layout
20738 Transform
20739 \end_layout
20740
20741 \end_inset
20742
20743 コマンド一つずつに応じて、
20744 \begin_inset Flex Code
20745 status collapsed
20746
20747 \begin_layout Plain Layout
20748 Format
20749 \end_layout
20750
20751 \end_inset
20752
20753 部に、対応する
20754 \begin_inset Flex Code
20755 status collapsed
20756
20757 \begin_layout Plain Layout
20758 TransformCommand
20759 \end_layout
20760
20761 \end_inset
20762
20763 コマンドか
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768 TransformOption
20769 \end_layout
20770
20771 \end_inset
20772
20773 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
20774 \end_layout
20775
20776 \begin_layout Subsection
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 Format
20782 \end_layout
20783
20784 \end_inset
20785
20786
20787 \end_layout
20788
20789 \begin_layout Description
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 Format
20795 \begin_inset space ~
20796 \end_inset
20797
20798 LaT
20799 \begin_inset ERT
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803
20804 {}
20805 \end_layout
20806
20807 \end_inset
20808
20809 eX|PDFLaT
20810 \begin_inset ERT
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814
20815 {}
20816 \end_layout
20817
20818 \end_inset
20819
20820 eX|PlainText|DocBook
20821 \end_layout
20822
20823 \end_inset
20824
20825  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
20826 \begin_inset Flex Code
20827 status collapsed
20828
20829 \begin_layout Plain Layout
20830 Format
20831 \end_layout
20832
20833 \end_inset
20834
20835 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
20836 ようになります。
20837 \end_layout
20838
20839 \begin_layout Description
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 Option
20845 \begin_inset space ~
20846 \end_inset
20847
20848 <名称>
20849 \begin_inset space ~
20850 \end_inset
20851
20852 <値>
20853 \end_layout
20854
20855 \end_inset
20856
20857  このコマンドは、
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 Product
20863 \end_layout
20864
20865 \end_inset
20866
20867 での代入に使うマクロ
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 $$<名称>
20873 \end_layout
20874
20875 \end_inset
20876
20877 を新たに定義します。
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 <値>
20883 \end_layout
20884
20885 \end_inset
20886
20887 自体にも代入マクロを使うことができます。
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 Product
20893 \end_layout
20894
20895 \end_inset
20896
20897
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 <値>
20903 \end_layout
20904
20905 \end_inset
20906
20907 を直接使用するよりも優れた点は、
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 $$<名称>
20913 \end_layout
20914
20915 \end_inset
20916
20917 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
20918 \end_layout
20919
20920 \begin_layout Description
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 Product
20926 \begin_inset space ~
20927 \end_inset
20928
20929 <文>
20930 \end_layout
20931
20932 \end_inset
20933
20934  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
20935
20936 \end_layout
20937
20938 \begin_layout Description
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 Preamble
20944 \begin_inset space ~
20945 \end_inset
20946
20947 <名称>
20948 \end_layout
20949
20950 \end_inset
20951
20952  このコマンドは、\SpecialChar LaTeX
20953 プリアンブルに入れるプリアンブル片を指定します。これは
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 PreambleDef
20959 \end_layout
20960
20961 \end_inset
20962
20963  \SpecialChar ldots
20964  
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 PreambleDefEnd
20970 \end_layout
20971
20972 \end_inset
20973
20974 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
20975 \end_layout
20976
20977 \begin_layout Description
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 ReferencedFile
20983 \begin_inset space ~
20984 \end_inset
20985
20986 <書式>
20987 \begin_inset space ~
20988 \end_inset
20989
20990 <ファイル名>
20991 \end_layout
20992
20993 \end_inset
20994
20995  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
20996 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
20997 \end_layout
20998
20999 \begin_layout Description
21000 \begin_inset Flex Code
21001 status collapsed
21002
21003 \begin_layout Plain Layout
21004 Requirement
21005 \begin_inset space ~
21006 \end_inset
21007
21008 <package>
21009 \end_layout
21010
21011 \end_inset
21012
21013  必要とされる\SpecialChar LaTeX
21014 パッケージ名。パッケージは、\SpecialChar LaTeX
21015 プリアンブル中で
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020
21021 \backslash
21022 usepackage{}
21023 \end_layout
21024
21025 \end_inset
21026
21027 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21028 \end_layout
21029
21030 \begin_layout Description
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035 TransformCommand
21036 \begin_inset space ~
21037 \end_inset
21038
21039 Rotate
21040 \begin_inset space ~
21041 \end_inset
21042
21043 RotationLatexCommand
21044 \end_layout
21045
21046 \end_inset
21047
21048  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21049 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21050 \end_layout
21051
21052 \begin_layout Description
21053 \begin_inset Flex Code
21054 status collapsed
21055
21056 \begin_layout Plain Layout
21057 TransformCommand
21058 \begin_inset space ~
21059 \end_inset
21060
21061 Resize
21062 \begin_inset space ~
21063 \end_inset
21064
21065 ResizeLatexCommand
21066 \end_layout
21067
21068 \end_inset
21069
21070  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21071 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21072 \end_layout
21073
21074 \begin_layout Description
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 TransformOption
21080 \begin_inset space ~
21081 \end_inset
21082
21083 Rotate
21084 \begin_inset space ~
21085 \end_inset
21086
21087 RotationLatexOption
21088 \end_layout
21089
21090 \end_inset
21091
21092  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21093 \end_layout
21094
21095 \begin_layout Description
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100 TransformOption
21101 \begin_inset space ~
21102 \end_inset
21103
21104 Resize
21105 \begin_inset space ~
21106 \end_inset
21107
21108 ResizeLatexOption
21109 \end_layout
21110
21111 \end_inset
21112
21113  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21114 \end_layout
21115
21116 \begin_layout Description
21117 \begin_inset Flex Code
21118 status collapsed
21119
21120 \begin_layout Plain Layout
21121 TransformOption
21122 \begin_inset space ~
21123 \end_inset
21124
21125 Clip
21126 \begin_inset space ~
21127 \end_inset
21128
21129 ClipLatexOption
21130 \end_layout
21131
21132 \end_inset
21133
21134  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21135 \end_layout
21136
21137 \begin_layout Description
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 TransformOption
21143 \begin_inset space ~
21144 \end_inset
21145
21146 Extra
21147 \begin_inset space ~
21148 \end_inset
21149
21150 ExtraLatexOption
21151 \end_layout
21152
21153 \end_inset
21154
21155  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21156 \end_layout
21157
21158 \begin_layout Description
21159 \begin_inset Flex Code
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 UpdateFormat
21164 \begin_inset space ~
21165 \end_inset
21166
21167 <書式>
21168 \end_layout
21169
21170 \end_inset
21171
21172  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21173 が知っている書式名でなくてはなりません(
21174 \begin_inset Flex MenuItem
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 ツール\SpecialChar menuseparator
21179 設定\SpecialChar menuseparator
21180 ファイル処理\SpecialChar menuseparator
21181 ファイル書式
21182 \end_layout
21183
21184 \end_inset
21185
21186 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 pdf6
21192 \end_layout
21193
21194 \end_inset
21195
21196 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21197 \end_layout
21198
21199 \begin_layout Description
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204 UpdateResult
21205 \begin_inset space ~
21206 \end_inset
21207
21208 <ファイル名>
21209 \end_layout
21210
21211 \end_inset
21212
21213  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21214 \end_layout
21215
21216 \begin_layout Subsection
21217 プリアンブルの定義
21218 \end_layout
21219
21220 \begin_layout Standard
21221 外用ひな型設定ファイルには、
21222 \begin_inset Flex Code
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226 PreambleDef
21227 \end_layout
21228
21229 \end_inset
21230
21231  \SpecialChar ldots
21232  
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 PreambleDefEnd
21238 \end_layout
21239
21240 \end_inset
21241
21242 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247 Format
21248 \end_layout
21249
21250 \end_inset
21251
21252 部で使用することができます。
21253 \end_layout
21254
21255 \begin_layout Section
21256 代入機構
21257 \end_layout
21258
21259 \begin_layout Standard
21260 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21261 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21262 \end_layout
21263
21264 \begin_layout Standard
21265 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21266 \end_layout
21267
21268 \begin_layout Standard
21269 使用できるマクロは以下の通りです。
21270 \end_layout
21271
21272 \begin_layout Description
21273 \begin_inset Flex Code
21274 status collapsed
21275
21276 \begin_layout Plain Layout
21277 $$AbsOrRelPathMaster
21278 \end_layout
21279
21280 \end_inset
21281
21282  \SpecialChar LyX
21283 親文書への絶対ファイルパスないしは相対ファイルパス
21284 \end_layout
21285
21286 \begin_layout Description
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 $$AbsOrRelPathParent
21292 \end_layout
21293
21294 \end_inset
21295
21296  \SpecialChar LyX
21297 文書への絶対ファイルパスないしは相対ファイルパス
21298 \end_layout
21299
21300 \begin_layout Description
21301 \begin_inset Flex Code
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305 $$AbsPath
21306 \end_layout
21307
21308 \end_inset
21309
21310  絶対ファイルパス
21311 \end_layout
21312
21313 \begin_layout Description
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 $$Basename
21319 \end_layout
21320
21321 \end_inset
21322
21323  パスおよび拡張子を除いたファイル名
21324 \end_layout
21325
21326 \begin_layout Description
21327 \begin_inset Flex Code
21328 status collapsed
21329
21330 \begin_layout Plain Layout
21331 $$Contents(
21332 \begin_inset Quotes eld
21333 \end_inset
21334
21335 filename.ext
21336 \begin_inset Quotes erd
21337 \end_inset
21338
21339 )
21340 \end_layout
21341
21342 \end_inset
21343
21344  このマクロは、
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 filename.ext
21350 \end_layout
21351
21352 \end_inset
21353
21354 と云う名のファイルの中身を展開します。
21355 \end_layout
21356
21357 \begin_layout Description
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362 $$Extension
21363 \end_layout
21364
21365 \end_inset
21366
21367  ファイル拡張子(点を含む)
21368 \end_layout
21369
21370 \begin_layout Description
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 $$FName
21376 \end_layout
21377
21378 \end_inset
21379
21380  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21381 文書への絶対パスでも良いですし、相対パスでも構いません。
21382 \end_layout
21383
21384 \begin_layout Description
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 $$FPath
21390 \end_layout
21391
21392 \end_inset
21393
21394  
21395 \begin_inset Flex Code
21396 status collapsed
21397
21398 \begin_layout Plain Layout
21399 $$FName
21400 \end_layout
21401
21402 \end_inset
21403
21404 のパス部分(\SpecialChar LyX
21405 文書への絶対パス名か相対パス名)
21406 \end_layout
21407
21408 \begin_layout Description
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413 $$RelPathMaster
21414 \end_layout
21415
21416 \end_inset
21417
21418  \SpecialChar LyX
21419 親文書への相対ファイルパス
21420 \end_layout
21421
21422 \begin_layout Description
21423 \begin_inset Flex Code
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427 $$RelPathParent
21428 \end_layout
21429
21430 \end_inset
21431
21432  \SpecialChar LyX
21433 文書への相対ファイルパス
21434 \end_layout
21435
21436 \begin_layout Description
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 $$Sysdir
21442 \end_layout
21443
21444 \end_inset
21445
21446  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21447 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21448 \end_layout
21449
21450 \begin_layout Description
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 $$Tempname
21456 \end_layout
21457
21458 \end_inset
21459
21460  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21461 \end_layout
21462
21463 \begin_layout Standard
21464 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 $$AbsPath$$Basename$$Extension
21470 \end_layout
21471
21472 \end_inset
21473
21474 のようにして作ることができます。
21475 \end_layout
21476
21477 \begin_layout Standard
21478 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483 Transform
21484 \end_layout
21485
21486 \end_inset
21487
21488 コマンドと
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 TransformCommand
21494 \end_layout
21495
21496 \end_inset
21497
21498 コマンドが有効にされている場合、
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 Product
21504 \end_layout
21505
21506 \end_inset
21507
21508 コマンドは、これらに加えて以下の代入もサポートします。
21509 \end_layout
21510
21511 \begin_layout Description
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 $$ResizeFront
21517 \end_layout
21518
21519 \end_inset
21520
21521  伸縮コマンドの前置部。
21522 \end_layout
21523
21524 \begin_layout Description
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 $$ResizeBack
21530 \end_layout
21531
21532 \end_inset
21533
21534  伸縮コマンドの後置部。
21535 \end_layout
21536
21537 \begin_layout Description
21538 \begin_inset Flex Code
21539 status collapsed
21540
21541 \begin_layout Plain Layout
21542 $$RotateFront
21543 \end_layout
21544
21545 \end_inset
21546
21547  回転コマンドの前置部。
21548 \end_layout
21549
21550 \begin_layout Description
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 $$RotateBack
21556 \end_layout
21557
21558 \end_inset
21559
21560  回転コマンドの後置部。
21561 \end_layout
21562
21563 \begin_layout Standard
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 Option
21569 \end_layout
21570
21571 \end_inset
21572
21573 コマンドの値に入れる文字列では、
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 Transform
21579 \end_layout
21580
21581 \end_inset
21582
21583 コマンドと
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588 TransformOption
21589 \end_layout
21590
21591 \end_inset
21592
21593 コマンドが有効にされていれば、以下の代入もサポートされます。
21594 \end_layout
21595
21596 \begin_layout Description
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601 $$Clip
21602 \end_layout
21603
21604 \end_inset
21605
21606  切り抜きオプション。
21607 \end_layout
21608
21609 \begin_layout Description
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 $$Extra
21615 \end_layout
21616
21617 \end_inset
21618
21619  追加オプション。
21620 \end_layout
21621
21622 \begin_layout Description
21623 \begin_inset Flex Code
21624 status collapsed
21625
21626 \begin_layout Plain Layout
21627 $$Resize
21628 \end_layout
21629
21630 \end_inset
21631
21632  伸縮オプション。
21633 \end_layout
21634
21635 \begin_layout Description
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 $$Rotate
21641 \end_layout
21642
21643 \end_inset
21644
21645  回転オプション。
21646 \end_layout
21647
21648 \begin_layout Standard
21649 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
21650 \end_layout
21651
21652 \begin_layout Enumerate
21653 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
21654 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
21655 \end_layout
21656
21657 \begin_layout Enumerate
21658 \SpecialChar LaTeX
21659 は、相対ファイル名に関して、\SpecialChar LyX
21660 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
21661 にとって相対ファイル名とは、常にこのファイル名が書か
21662 れている文書に対して相対的なものになります。\SpecialChar LaTeX
21663 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
21664 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
21665 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
21666 を選びさえすれば、これは\SpecialChar LyX
21667 が自動的に行ってくれます。
21668 \end_layout
21669
21670 \begin_layout Standard
21671 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
21672 \end_layout
21673
21674 \begin_layout Itemize
21675 絶対パスが必要とされるときには
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 $$AbsPath
21681 \end_layout
21682
21683 \end_inset
21684
21685 を使う。
21686 \end_layout
21687
21688 \begin_layout Itemize
21689 代入された文字列が、\SpecialChar LaTeX
21690 インプットの一種である場合には、
21691 \begin_inset Flex Code
21692 status collapsed
21693
21694 \begin_layout Plain Layout
21695 $$AbsOrRelPathMaster
21696 \end_layout
21697
21698 \end_inset
21699
21700 を使う。
21701 \end_layout
21702
21703 \begin_layout Itemize
21704 それ以外ならば、ユーザの選択を尊重するために
21705 \begin_inset Flex Code
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709 $$AbsOrRelPathParent
21710 \end_layout
21711
21712 \end_inset
21713
21714 を使う。
21715 \end_layout
21716
21717 \begin_layout Standard
21718 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21724 \end_layout
21725
21726 \end_inset
21727
21728 というコマンドがあります。この場合、
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 .pstex_t
21734 \end_layout
21735
21736 \end_inset
21737
21738 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
21739 \end_layout
21740
21741 \begin_layout Section
21742 セキュリティに関する論点
21743 \begin_inset CommandInset label
21744 LatexCommand label
21745 name "sec:セキュリティに関する論点"
21746
21747 \end_inset
21748
21749
21750 \end_layout
21751
21752 \begin_layout Standard
21753 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
21754 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
21755 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
21756 \end_layout
21757
21758 \begin_layout Standard
21759 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
21760 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
21761 せん。これは、外部プログラムが
21762 \begin_inset Flex Code
21763 status collapsed
21764
21765 \begin_layout Plain Layout
21766 system
21767 \end_layout
21768
21769 \end_inset
21770
21771 システムコールではなく、
21772 \begin_inset Flex Code
21773 status collapsed
21774
21775 \begin_layout Plain Layout
21776 execvp
21777 \end_layout
21778
21779 \end_inset
21780
21781 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
21782 \end_layout
21783
21784 \begin_layout Standard
21785 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
21786 できません。これは、\SpecialChar LyX
21787 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
21788 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
21789 \end_layout
21790
21791 \begin_layout Standard
21792 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
21793 うになるため、一般的には、統御下に置いた状態で
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 execvp
21799 \end_layout
21800
21801 \end_inset
21802
21803 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
21804 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
21805 \emph on
21806 間違いなく
21807 \emph default
21808 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
21809 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
21810 には、安全でないひな型は決して入っていません
21811
21812 \end_layout
21813
21814 \begin_layout Standard
21815 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
21816 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
21817 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
21818 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
21819 使用する前に、行うようにしてください。
21820 \end_layout
21821
21822 \begin_layout Chapter
21823 \start_of_appendix
21824 サポートされているレイアウト用\SpecialChar LyX
21825 関数一覧
21826 \begin_inset CommandInset label
21827 LatexCommand label
21828 name "chap:関数一覧"
21829
21830 \end_inset
21831
21832
21833 \end_layout
21834
21835 \begin_layout Standard
21836 \align center
21837 \begin_inset Tabular
21838 <lyxtabular version="3" rows="11" columns="8">
21839 <features tabularvalignment="middle">
21840 <column alignment="left" valignment="top">
21841 <column alignment="left" valignment="top">
21842 <column alignment="left" valignment="top">
21843 <column alignment="left" valignment="top">
21844 <column alignment="left" valignment="top">
21845 <column alignment="left" valignment="top">
21846 <column alignment="left" valignment="top">
21847 <column alignment="left" valignment="top">
21848 <row>
21849 <cell alignment="left" valignment="top" usebox="none">
21850 \begin_inset Text
21851
21852 \begin_layout Plain Layout
21853 accents
21854 \end_layout
21855
21856 \end_inset
21857 </cell>
21858 <cell alignment="left" valignment="top" usebox="none">
21859 \begin_inset Text
21860
21861 \begin_layout Plain Layout
21862 booktabs
21863 \end_layout
21864
21865 \end_inset
21866 </cell>
21867 <cell alignment="left" valignment="top" usebox="none">
21868 \begin_inset Text
21869
21870 \begin_layout Plain Layout
21871 feyn
21872 \end_layout
21873
21874 \end_inset
21875 </cell>
21876 <cell alignment="left" valignment="top" usebox="none">
21877 \begin_inset Text
21878
21879 \begin_layout Plain Layout
21880 listings
21881 \end_layout
21882
21883 \end_inset
21884 </cell>
21885 <cell alignment="center" valignment="top" usebox="none">
21886 \begin_inset Text
21887
21888 \begin_layout Plain Layout
21889 natbib
21890 \end_layout
21891
21892 \end_inset
21893 </cell>
21894 <cell alignment="center" valignment="top" usebox="none">
21895 \begin_inset Text
21896
21897 \begin_layout Plain Layout
21898 rotfloat
21899 \end_layout
21900
21901 \end_inset
21902 </cell>
21903 <cell alignment="center" valignment="top" usebox="none">
21904 \begin_inset Text
21905
21906 \begin_layout Plain Layout
21907 tfrupee
21908 \end_layout
21909
21910 \end_inset
21911 </cell>
21912 <cell alignment="center" valignment="top" usebox="none">
21913 \begin_inset Text
21914
21915 \begin_layout Plain Layout
21916 wasysym
21917 \end_layout
21918
21919 \end_inset
21920 </cell>
21921 </row>
21922 <row>
21923 <cell alignment="left" valignment="top" usebox="none">
21924 \begin_inset Text
21925
21926 \begin_layout Plain Layout
21927 amsbsy
21928 \end_layout
21929
21930 \end_inset
21931 </cell>
21932 <cell alignment="left" valignment="top" usebox="none">
21933 \begin_inset Text
21934
21935 \begin_layout Plain Layout
21936 calc
21937 \end_layout
21938
21939 \end_inset
21940 </cell>
21941 <cell alignment="left" valignment="top" usebox="none">
21942 \begin_inset Text
21943
21944 \begin_layout Plain Layout
21945 fixltx2e
21946 \end_layout
21947
21948 \end_inset
21949 </cell>
21950 <cell alignment="left" valignment="top" usebox="none">
21951 \begin_inset Text
21952
21953 \begin_layout Plain Layout
21954 longtable
21955 \end_layout
21956
21957 \end_inset
21958 </cell>
21959 <cell alignment="center" valignment="top" usebox="none">
21960 \begin_inset Text
21961
21962 \begin_layout Plain Layout
21963 nomencl
21964 \end_layout
21965
21966 \end_inset
21967 </cell>
21968 <cell alignment="center" valignment="top" usebox="none">
21969 \begin_inset Text
21970
21971 \begin_layout Plain Layout
21972 rsphrase
21973 \end_layout
21974
21975 \end_inset
21976 </cell>
21977 <cell alignment="center" valignment="top" usebox="none">
21978 \begin_inset Text
21979
21980 \begin_layout Plain Layout
21981 tipa
21982 \end_layout
21983
21984 \end_inset
21985 </cell>
21986 <cell alignment="center" valignment="top" usebox="none">
21987 \begin_inset Text
21988
21989 \begin_layout Plain Layout
21990 wrapfig
21991 \end_layout
21992
21993 \end_inset
21994 </cell>
21995 </row>
21996 <row>
21997 <cell alignment="left" valignment="top" usebox="none">
21998 \begin_inset Text
21999
22000 \begin_layout Plain Layout
22001 amscd
22002 \end_layout
22003
22004 \end_inset
22005 </cell>
22006 <cell alignment="left" valignment="top" usebox="none">
22007 \begin_inset Text
22008
22009 \begin_layout Plain Layout
22010 CJK
22011 \end_layout
22012
22013 \end_inset
22014 </cell>
22015 <cell alignment="left" valignment="top" usebox="none">
22016 \begin_inset Text
22017
22018 \begin_layout Plain Layout
22019 float
22020 \end_layout
22021
22022 \end_inset
22023 </cell>
22024 <cell alignment="left" valignment="top" usebox="none">
22025 \begin_inset Text
22026
22027 \begin_layout Plain Layout
22028 lyxskak
22029 \end_layout
22030
22031 \end_inset
22032 </cell>
22033 <cell alignment="center" valignment="top" usebox="none">
22034 \begin_inset Text
22035
22036 \begin_layout Plain Layout
22037 pdfcolmk
22038 \end_layout
22039
22040 \end_inset
22041 </cell>
22042 <cell alignment="center" valignment="top" usebox="none">
22043 \begin_inset Text
22044
22045 \begin_layout Plain Layout
22046 setspace
22047 \end_layout
22048
22049 \end_inset
22050 </cell>
22051 <cell alignment="center" valignment="top" usebox="none">
22052 \begin_inset Text
22053
22054 \begin_layout Plain Layout
22055 tipx
22056 \end_layout
22057
22058 \end_inset
22059 </cell>
22060 <cell alignment="center" valignment="top" usebox="none">
22061 \begin_inset Text
22062
22063 \begin_layout Plain Layout
22064 xargs
22065 \end_layout
22066
22067 \end_inset
22068 </cell>
22069 </row>
22070 <row>
22071 <cell alignment="left" valignment="top" usebox="none">
22072 \begin_inset Text
22073
22074 \begin_layout Plain Layout
22075 amsmath
22076 \end_layout
22077
22078 \end_inset
22079 </cell>
22080 <cell alignment="left" valignment="top" usebox="none">
22081 \begin_inset Text
22082
22083 \begin_layout Plain Layout
22084 color
22085 \end_layout
22086
22087 \end_inset
22088 </cell>
22089 <cell alignment="left" valignment="top" usebox="none">
22090 \begin_inset Text
22091
22092 \begin_layout Plain Layout
22093 framed
22094 \end_layout
22095
22096 \end_inset
22097 </cell>
22098 <cell alignment="left" valignment="top" usebox="none">
22099 \begin_inset Text
22100
22101 \begin_layout Plain Layout
22102 makeidx
22103 \end_layout
22104
22105 \end_inset
22106 </cell>
22107 <cell alignment="center" valignment="top" usebox="none">
22108 \begin_inset Text
22109
22110 \begin_layout Plain Layout
22111 pdfpages
22112 \end_layout
22113
22114 \end_inset
22115 </cell>
22116 <cell alignment="center" valignment="top" usebox="none">
22117 \begin_inset Text
22118
22119 \begin_layout Plain Layout
22120 shapepar
22121 \end_layout
22122
22123 \end_inset
22124 </cell>
22125 <cell alignment="center" valignment="top" usebox="none">
22126 \begin_inset Text
22127
22128 \begin_layout Plain Layout
22129 tone
22130 \end_layout
22131
22132 \end_inset
22133 </cell>
22134 <cell alignment="center" valignment="top" usebox="none">
22135 \begin_inset Text
22136
22137 \begin_layout Plain Layout
22138 xcolor
22139 \end_layout
22140
22141 \end_inset
22142 </cell>
22143 </row>
22144 <row>
22145 <cell alignment="left" valignment="top" usebox="none">
22146 \begin_inset Text
22147
22148 \begin_layout Plain Layout
22149 amssymb
22150 \end_layout
22151
22152 \end_inset
22153 </cell>
22154 <cell alignment="left" valignment="top" usebox="none">
22155 \begin_inset Text
22156
22157 \begin_layout Plain Layout
22158 covington
22159 \end_layout
22160
22161 \end_inset
22162 </cell>
22163 <cell alignment="left" valignment="top" usebox="none">
22164 \begin_inset Text
22165
22166 \begin_layout Plain Layout
22167 graphicx
22168 \end_layout
22169
22170 \end_inset
22171 </cell>
22172 <cell alignment="left" valignment="top" usebox="none">
22173 \begin_inset Text
22174
22175 \begin_layout Plain Layout
22176 marvosym
22177 \end_layout
22178
22179 \end_inset
22180 </cell>
22181 <cell alignment="center" valignment="top" usebox="none">
22182 \begin_inset Text
22183
22184 \begin_layout Plain Layout
22185 pifont
22186 \end_layout
22187
22188 \end_inset
22189 </cell>
22190 <cell alignment="center" valignment="top" usebox="none">
22191 \begin_inset Text
22192
22193 \begin_layout Plain Layout
22194 slashed
22195 \end_layout
22196
22197 \end_inset
22198 </cell>
22199 <cell alignment="center" valignment="top" usebox="none">
22200 \begin_inset Text
22201
22202 \begin_layout Plain Layout
22203 txfonts
22204 \end_layout
22205
22206 \end_inset
22207 </cell>
22208 <cell alignment="center" valignment="top" usebox="none">
22209 \begin_inset Text
22210
22211 \begin_layout Plain Layout
22212 xy
22213 \end_layout
22214
22215 \end_inset
22216 </cell>
22217 </row>
22218 <row>
22219 <cell alignment="left" valignment="top" usebox="none">
22220 \begin_inset Text
22221
22222 \begin_layout Plain Layout
22223 amstext
22224 \end_layout
22225
22226 \end_inset
22227 </cell>
22228 <cell alignment="left" valignment="top" usebox="none">
22229 \begin_inset Text
22230
22231 \begin_layout Plain Layout
22232 csquotes
22233 \end_layout
22234
22235 \end_inset
22236 </cell>
22237 <cell alignment="left" valignment="top" usebox="none">
22238 \begin_inset Text
22239
22240 \begin_layout Plain Layout
22241 hhline
22242 \end_layout
22243
22244 \end_inset
22245 </cell>
22246 <cell alignment="left" valignment="top" usebox="none">
22247 \begin_inset Text
22248
22249 \begin_layout Plain Layout
22250 mathdesign
22251 \end_layout
22252
22253 \end_inset
22254 </cell>
22255 <cell alignment="center" valignment="top" usebox="none">
22256 \begin_inset Text
22257
22258 \begin_layout Plain Layout
22259 pmboxdraw
22260 \end_layout
22261
22262 \end_inset
22263 </cell>
22264 <cell alignment="center" valignment="top" usebox="none">
22265 \begin_inset Text
22266
22267 \begin_layout Plain Layout
22268 soul
22269 \end_layout
22270
22271 \end_inset
22272 </cell>
22273 <cell alignment="center" valignment="top" usebox="none">
22274 \begin_inset Text
22275
22276 \begin_layout Plain Layout
22277 ulem
22278 \end_layout
22279
22280 \end_inset
22281 </cell>
22282 <cell alignment="center" valignment="top" usebox="none">
22283 \begin_inset Text
22284
22285 \begin_layout Plain Layout
22286 yhmath
22287 \end_layout
22288
22289 \end_inset
22290 </cell>
22291 </row>
22292 <row>
22293 <cell alignment="left" valignment="top" usebox="none">
22294 \begin_inset Text
22295
22296 \begin_layout Plain Layout
22297 amsthm
22298 \end_layout
22299
22300 \end_inset
22301 </cell>
22302 <cell alignment="left" valignment="top" usebox="none">
22303 \begin_inset Text
22304
22305 \begin_layout Plain Layout
22306 dvipost
22307 \end_layout
22308
22309 \end_inset
22310 </cell>
22311 <cell alignment="left" valignment="top" usebox="none">
22312 \begin_inset Text
22313
22314 \begin_layout Plain Layout
22315 hyperref
22316 \end_layout
22317
22318 \end_inset
22319 </cell>
22320 <cell alignment="left" valignment="top" usebox="none">
22321 \begin_inset Text
22322
22323 \begin_layout Plain Layout
22324 mathdots
22325 \end_layout
22326
22327 \end_inset
22328 </cell>
22329 <cell alignment="center" valignment="top" usebox="none">
22330 \begin_inset Text
22331
22332 \begin_layout Plain Layout
22333 polyglossia
22334 \end_layout
22335
22336 \end_inset
22337 </cell>
22338 <cell alignment="center" valignment="top" usebox="none">
22339 \begin_inset Text
22340
22341 \begin_layout Plain Layout
22342 splitidx
22343 \end_layout
22344
22345 \end_inset
22346 </cell>
22347 <cell alignment="center" valignment="top" usebox="none">
22348 \begin_inset Text
22349
22350 \begin_layout Plain Layout
22351 undertilde
22352 \end_layout
22353
22354 \end_inset
22355 </cell>
22356 <cell alignment="center" valignment="top" usebox="none">
22357 \begin_inset Text
22358
22359 \begin_layout Plain Layout
22360
22361 \end_layout
22362
22363 \end_inset
22364 </cell>
22365 </row>
22366 <row>
22367 <cell alignment="left" valignment="top" usebox="none">
22368 \begin_inset Text
22369
22370 \begin_layout Plain Layout
22371 array
22372 \end_layout
22373
22374 \end_inset
22375 </cell>
22376 <cell alignment="left" valignment="top" usebox="none">
22377 \begin_inset Text
22378
22379 \begin_layout Plain Layout
22380 endnotes
22381 \end_layout
22382
22383 \end_inset
22384 </cell>
22385 <cell alignment="left" valignment="top" usebox="none">
22386 \begin_inset Text
22387
22388 \begin_layout Plain Layout
22389 ifsym
22390 \end_layout
22391
22392 \end_inset
22393 </cell>
22394 <cell alignment="left" valignment="top" usebox="none">
22395 \begin_inset Text
22396
22397 \begin_layout Plain Layout
22398 mathrsfs
22399 \end_layout
22400
22401 \end_inset
22402 </cell>
22403 <cell alignment="center" valignment="top" usebox="none">
22404 \begin_inset Text
22405
22406 \begin_layout Plain Layout
22407 prettyref
22408 \end_layout
22409
22410 \end_inset
22411 </cell>
22412 <cell alignment="center" valignment="top" usebox="none">
22413 \begin_inset Text
22414
22415 \begin_layout Plain Layout
22416 subfig
22417 \end_layout
22418
22419 \end_inset
22420 </cell>
22421 <cell alignment="center" valignment="top" usebox="none">
22422 \begin_inset Text
22423
22424 \begin_layout Plain Layout
22425 units
22426 \end_layout
22427
22428 \end_inset
22429 </cell>
22430 <cell alignment="center" valignment="top" usebox="none">
22431 \begin_inset Text
22432
22433 \begin_layout Plain Layout
22434
22435 \end_layout
22436
22437 \end_inset
22438 </cell>
22439 </row>
22440 <row>
22441 <cell alignment="left" valignment="top" usebox="none">
22442 \begin_inset Text
22443
22444 \begin_layout Plain Layout
22445 ascii
22446 \end_layout
22447
22448 \end_inset
22449 </cell>
22450 <cell alignment="left" valignment="top" usebox="none">
22451 \begin_inset Text
22452
22453 \begin_layout Plain Layout
22454 enumitem
22455 \end_layout
22456
22457 \end_inset
22458 </cell>
22459 <cell alignment="left" valignment="top" usebox="none">
22460 \begin_inset Text
22461
22462 \begin_layout Plain Layout
22463 ifthen
22464 \end_layout
22465
22466 \end_inset
22467 </cell>
22468 <cell alignment="left" valignment="top" usebox="none">
22469 \begin_inset Text
22470
22471 \begin_layout Plain Layout
22472 mhchem
22473 \end_layout
22474
22475 \end_inset
22476 </cell>
22477 <cell alignment="center" valignment="top" usebox="none">
22478 \begin_inset Text
22479
22480 \begin_layout Plain Layout
22481 pxfonts
22482 \end_layout
22483
22484 \end_inset
22485 </cell>
22486 <cell alignment="center" valignment="top" usebox="none">
22487 \begin_inset Text
22488
22489 \begin_layout Plain Layout
22490 subscript
22491 \end_layout
22492
22493 \end_inset
22494 </cell>
22495 <cell alignment="center" valignment="top" usebox="none">
22496 \begin_inset Text
22497
22498 \begin_layout Plain Layout
22499 url
22500 \end_layout
22501
22502 \end_inset
22503 </cell>
22504 <cell alignment="center" valignment="top" usebox="none">
22505 \begin_inset Text
22506
22507 \begin_layout Plain Layout
22508
22509 \end_layout
22510
22511 \end_inset
22512 </cell>
22513 </row>
22514 <row>
22515 <cell alignment="left" valignment="top" usebox="none">
22516 \begin_inset Text
22517
22518 \begin_layout Plain Layout
22519 bbding
22520 \end_layout
22521
22522 \end_inset
22523 </cell>
22524 <cell alignment="left" valignment="top" usebox="none">
22525 \begin_inset Text
22526
22527 \begin_layout Plain Layout
22528 esint
22529 \end_layout
22530
22531 \end_inset
22532 </cell>
22533 <cell alignment="left" valignment="top" usebox="none">
22534 \begin_inset Text
22535
22536 \begin_layout Plain Layout
22537 jurabib
22538 \end_layout
22539
22540 \end_inset
22541 </cell>
22542 <cell alignment="left" valignment="top" usebox="none">
22543 \begin_inset Text
22544
22545 \begin_layout Plain Layout
22546 multicol
22547 \end_layout
22548
22549 \end_inset
22550 </cell>
22551 <cell alignment="center" valignment="top" usebox="none">
22552 \begin_inset Text
22553
22554 \begin_layout Plain Layout
22555 refstyle
22556 \end_layout
22557
22558 \end_inset
22559 </cell>
22560 <cell alignment="center" valignment="top" usebox="none">
22561 \begin_inset Text
22562
22563 \begin_layout Plain Layout
22564 textcomp
22565 \end_layout
22566
22567 \end_inset
22568 </cell>
22569 <cell alignment="center" valignment="top" usebox="none">
22570 \begin_inset Text
22571
22572 \begin_layout Plain Layout
22573 varioref
22574 \end_layout
22575
22576 \end_inset
22577 </cell>
22578 <cell alignment="center" valignment="top" usebox="none">
22579 \begin_inset Text
22580
22581 \begin_layout Plain Layout
22582
22583 \end_layout
22584
22585 \end_inset
22586 </cell>
22587 </row>
22588 <row>
22589 <cell alignment="center" valignment="top" usebox="none">
22590 \begin_inset Text
22591
22592 \begin_layout Plain Layout
22593 bm
22594 \end_layout
22595
22596 \end_inset
22597 </cell>
22598 <cell alignment="center" valignment="top" usebox="none">
22599 \begin_inset Text
22600
22601 \begin_layout Plain Layout
22602 fancybox
22603 \end_layout
22604
22605 \end_inset
22606 </cell>
22607 <cell alignment="center" valignment="top" usebox="none">
22608 \begin_inset Text
22609
22610 \begin_layout Plain Layout
22611 latexsym
22612 \end_layout
22613
22614 \end_inset
22615 </cell>
22616 <cell alignment="center" valignment="top" usebox="none">
22617 \begin_inset Text
22618
22619 \begin_layout Plain Layout
22620 multirow
22621 \end_layout
22622
22623 \end_inset
22624 </cell>
22625 <cell alignment="center" valignment="top" usebox="none">
22626 \begin_inset Text
22627
22628 \begin_layout Plain Layout
22629 rotating
22630 \end_layout
22631
22632 \end_inset
22633 </cell>
22634 <cell alignment="center" valignment="top" usebox="none">
22635 \begin_inset Text
22636
22637 \begin_layout Plain Layout
22638 textgreek
22639 \end_layout
22640
22641 \end_inset
22642 </cell>
22643 <cell alignment="center" valignment="top" usebox="none">
22644 \begin_inset Text
22645
22646 \begin_layout Plain Layout
22647 verbatim
22648 \end_layout
22649
22650 \end_inset
22651 </cell>
22652 <cell alignment="center" valignment="top" usebox="none">
22653 \begin_inset Text
22654
22655 \begin_layout Plain Layout
22656
22657 \end_layout
22658
22659 \end_inset
22660 </cell>
22661 </row>
22662 </lyxtabular>
22663
22664 \end_inset
22665
22666
22667 \end_layout
22668
22669 \begin_layout Chapter
22670 レイアウトで使用できる色名
22671 \begin_inset CommandInset label
22672 LatexCommand label
22673 name "chap:色名"
22674
22675 \end_inset
22676
22677
22678 \end_layout
22679
22680 \begin_layout Standard
22681 ここに列挙されている色は標準色であり、\SpecialChar LyX
22682 設定で調整できるものです。
22683 \end_layout
22684
22685 \begin_layout Description
22686 none
22687 \series medium
22688  
22689 \series default
22690 特定の色ではありません – 透明か既定色です
22691 \end_layout
22692
22693 \begin_layout Description
22694 black
22695 \end_layout
22696
22697 \begin_layout Description
22698 white
22699 \end_layout
22700
22701 \begin_layout Description
22702 red
22703 \end_layout
22704
22705 \begin_layout Description
22706 green
22707 \end_layout
22708
22709 \begin_layout Description
22710 blue
22711 \end_layout
22712
22713 \begin_layout Description
22714 cyan
22715 \end_layout
22716
22717 \begin_layout Description
22718 magenta
22719 \end_layout
22720
22721 \begin_layout Description
22722 yellow
22723 \end_layout
22724
22725 \begin_layout Description
22726 added_space 空白マーカ色
22727 \end_layout
22728
22729 \begin_layout Description
22730 addedtext 追加された文章色
22731 \end_layout
22732
22733 \begin_layout Description
22734 appendix 付録マーカ色
22735 \end_layout
22736
22737 \begin_layout Description
22738 background 背景色
22739 \end_layout
22740
22741 \begin_layout Description
22742 bottomarea 下部領域色
22743 \end_layout
22744
22745 \begin_layout Description
22746 branchlabel 派生枝ラベル色
22747 \end_layout
22748
22749 \begin_layout Description
22750 buttonbg ボタンの背景色
22751 \end_layout
22752
22753 \begin_layout Description
22754 buttonhoverbg フォーカスを得ているボタンの背景色
22755 \end_layout
22756
22757 \begin_layout Description
22758 buttonframe 差込枠の縁色
22759 \end_layout
22760
22761 \begin_layout Description
22762 changebar 変更バー色
22763 \end_layout
22764
22765 \begin_layout Description
22766 changedtextauthor1 変更された文章:第1著者の色
22767 \end_layout
22768
22769 \begin_layout Description
22770 changedtextauthor2 変更された文章:第2著者の色
22771 \end_layout
22772
22773 \begin_layout Description
22774 changedtextauthor3 変更された文章:第3著者の色
22775 \end_layout
22776
22777 \begin_layout Description
22778 changedtextauthor4 変更された文章:第4著者の色
22779 \end_layout
22780
22781 \begin_layout Description
22782 changedtextauthor5 変更された文章:第5著者の色
22783 \end_layout
22784
22785 \begin_layout Description
22786 collapsable_inset_frame 畳み込み可能枠の縁色
22787 \end_layout
22788
22789 \begin_layout Description
22790 collapsable_inset_text 畳み込み可能枠の文字色
22791 \end_layout
22792
22793 \begin_layout Description
22794 command コマンド差込枠の文字色
22795 \end_layout
22796
22797 \begin_layout Description
22798 commandbg コマンド差込枠の背景色
22799 \end_layout
22800
22801 \begin_layout Description
22802 commandframe コマンド差込枠の縁色
22803 \end_layout
22804
22805 \begin_layout Description
22806 comment コメント色
22807 \end_layout
22808
22809 \begin_layout Description
22810 commentbg コメントの背景色
22811 \end_layout
22812
22813 \begin_layout Description
22814 cursor カーソル色
22815 \end_layout
22816
22817 \begin_layout Description
22818 deletedtext 削除された文章の色
22819 \end_layout
22820
22821 \begin_layout Description
22822 deletedtextmodifier 削除された文章の修飾子の色
22823 \end_layout
22824
22825 \begin_layout Description
22826 depthbar 余白部の階層表示線の色
22827 \end_layout
22828
22829 \begin_layout Description
22830 eolmarker 行末標色
22831 \end_layout
22832
22833 \begin_layout Description
22834 error \SpecialChar LaTeX
22835 エラーボックス色
22836 \end_layout
22837
22838 \begin_layout Description
22839 footlabel 脚注ラベル色
22840 \end_layout
22841
22842 \begin_layout Description
22843 graphicsbg 画像差込枠の背景色
22844 \end_layout
22845
22846 \begin_layout Description
22847 greyedout 淡色表示差込枠のラベル色
22848 \end_layout
22849
22850 \begin_layout Description
22851 greyedoutbg 淡色表示差込枠の背景色
22852 \end_layout
22853
22854 \begin_layout Description
22855 greyedouttext 淡色表示差込枠の文字色
22856 \end_layout
22857
22858 \begin_layout Description
22859 indexlabel 索引差込枠のラベル色
22860 \end_layout
22861
22862 \begin_layout Description
22863 ignore この色を無視します
22864 \end_layout
22865
22866 \begin_layout Description
22867 inherit この色を継承します
22868 \end_layout
22869
22870 \begin_layout Description
22871 inlinecompletion 行内補完色
22872 \end_layout
22873
22874 \begin_layout Description
22875 insetbg 差込枠標の背景色
22876 \end_layout
22877
22878 \begin_layout Description
22879 insetframe 差込枠標の縁色
22880 \end_layout
22881
22882 \begin_layout Description
22883 language 外国語の単語を標識するための色
22884 \end_layout
22885
22886 \begin_layout Description
22887 latex \SpecialChar LaTeX
22888 モードの文字色
22889 \end_layout
22890
22891 \begin_layout Description
22892 listingsbg プログラムリスト差込枠の背景色
22893 \end_layout
22894
22895 \begin_layout Description
22896 marginlabel 傍注のラベル色
22897 \end_layout
22898
22899 \begin_layout Description
22900 math 数式差込枠の文字色
22901 \end_layout
22902
22903 \begin_layout Description
22904 mathbg 数式差込枠の背景色
22905 \end_layout
22906
22907 \begin_layout Description
22908 mathcorners フォーカスを得ていない数式差込枠の縁色
22909 \end_layout
22910
22911 \begin_layout Description
22912 mathframe フォーカスを得ている数式差込枠の縁色
22913 \end_layout
22914
22915 \begin_layout Description
22916 mathline 数式行色
22917 \end_layout
22918
22919 \begin_layout Description
22920 mathmacrobg 数式マクロ差込枠の背景色
22921 \end_layout
22922
22923 \begin_layout Description
22924 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22925 \end_layout
22926
22927 \begin_layout Description
22928 mathmacroframe 数式マクロ差込枠の縁色
22929 \end_layout
22930
22931 \begin_layout Description
22932 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22933 \end_layout
22934
22935 \begin_layout Description
22936 mathmacrolabel 数式マクロ差込枠のラベル色
22937 \end_layout
22938
22939 \begin_layout Description
22940 mathmacronewarg 数式マクロ新パラメーターのひな型色
22941 \end_layout
22942
22943 \begin_layout Description
22944 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22945 \end_layout
22946
22947 \begin_layout Description
22948 newpage 新規頁色
22949 \end_layout
22950
22951 \begin_layout Description
22952 nonunique_inlinecompletion 行内補完の一意でない部分の色
22953 \end_layout
22954
22955 \begin_layout Description
22956 notebg 注釈の背景色
22957 \end_layout
22958
22959 \begin_layout Description
22960 notelabel 注釈のラベル色
22961 \end_layout
22962
22963 \begin_layout Description
22964 pagebreak 改頁/改行色
22965 \end_layout
22966
22967 \begin_layout Description
22968 paragraphmarker 段落末を標識するための段落標の色
22969 \end_layout
22970
22971 \begin_layout Description
22972 phantomtext 埋め草差込枠の文字色
22973 \end_layout
22974
22975 \begin_layout Description
22976 preview プレビューに用いられる色
22977 \end_layout
22978
22979 \begin_layout Description
22980 previewframe プレビュー縁色
22981 \end_layout
22982
22983 \begin_layout Description
22984 regexpframe 正規表現枠の色
22985 \end_layout
22986
22987 \begin_layout Description
22988 selection 文章選択部の背景色
22989 \end_layout
22990
22991 \begin_layout Description
22992 selectiontext 文章選択部の前景色
22993 \end_layout
22994
22995 \begin_layout Description
22996 shadedbg 影付きボックスの背景色
22997 \end_layout
22998
22999 \begin_layout Description
23000 special 特殊文字の色
23001 \end_layout
23002
23003 \begin_layout Description
23004 tabularline 罫線色
23005 \end_layout
23006
23007 \begin_layout Description
23008 tabularonoffline 罫線色
23009 \end_layout
23010
23011 \begin_layout Description
23012 urllabel URL差込枠のラベル色
23013 \end_layout
23014
23015 \begin_layout Description
23016 urltext URL差込枠の文字色
23017 \end_layout
23018
23019 \end_body
23020 \end_document