]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Customization.lyx: accept all remaining 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 AllowedPlacement
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 =!htbpH] 
14092 \lang english
14093 Allowed placement options for this float type.
14094  The value is a string of placement characters.
14095  Possible characters include: 
14096 \emph on
14097 h
14098 \emph default
14099  (
14100 \begin_inset Quotes eld
14101 \end_inset
14102
14103 here if possible
14104 \begin_inset Quotes erd
14105 \end_inset
14106
14107 ), 
14108 \emph on
14109 t
14110 \emph default
14111  (
14112 \begin_inset Quotes eld
14113 \end_inset
14114
14115 top of page
14116 \begin_inset Quotes erd
14117 \end_inset
14118
14119 ), 
14120 \emph on
14121 b
14122 \emph default
14123  (
14124 \begin_inset Quotes eld
14125 \end_inset
14126
14127 bottom of page
14128 \begin_inset Quotes erd
14129 \end_inset
14130
14131 ), 
14132 \emph on
14133 p
14134 \emph default
14135  (
14136 \begin_inset Quotes eld
14137 \end_inset
14138
14139 page of floats
14140 \begin_inset Quotes erd
14141 \end_inset
14142
14143 ), 
14144 \emph on
14145 H
14146 \emph default
14147  (
14148 \begin_inset Quotes eld
14149 \end_inset
14150
14151 here definitely
14152 \begin_inset Quotes erd
14153 \end_inset
14154
14155 ) and 
14156 \emph on
14157 !
14158 \emph default
14159  (
14160 \begin_inset Quotes eld
14161 \end_inset
14162
14163 ignore LaTeX rules
14164 \begin_inset Quotes erd
14165 \end_inset
14166
14167 ).
14168  The order of the characters in the string does not matter.
14169  If no placement options are allowed, use the string 
14170 \emph on
14171 none
14172 \emph default
14173 .
14174 \end_layout
14175
14176 \begin_layout Description
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 AllowsSideways
14182 \end_layout
14183
14184 \end_inset
14185
14186  [
14187 \begin_inset Flex Code
14188 status collapsed
14189
14190 \begin_layout Plain Layout
14191 0
14192 \end_layout
14193
14194 \end_inset
14195
14196 ,
14197 \begin_inset space \thinspace{}
14198 \end_inset
14199
14200
14201 \emph on
14202
14203 \begin_inset Flex Code
14204 status collapsed
14205
14206 \begin_layout Plain Layout
14207 1
14208 \end_layout
14209
14210 \end_inset
14211
14212
14213 \emph default
14214
14215 \lang english
14216 Defines whether the float allows to be rotated via the \SpecialChar LaTeX
14217 -package 
14218 \family typewriter
14219 rotfloat
14220 \family default
14221  (sidewaysfloat).
14222  Set to 
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227
14228 \lang english
14229 0
14230 \end_layout
14231
14232 \end_inset
14233
14234  if the float does not support this feature.
14235 \end_layout
14236
14237 \begin_layout Description
14238 \begin_inset Flex Code
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 AllowsWide
14243 \end_layout
14244
14245 \end_inset
14246
14247  [
14248 \begin_inset Flex Code
14249 status collapsed
14250
14251 \begin_layout Plain Layout
14252 0
14253 \end_layout
14254
14255 \end_inset
14256
14257 ,
14258 \begin_inset space \thinspace{}
14259 \end_inset
14260
14261
14262 \emph on
14263
14264 \begin_inset Flex Code
14265 status collapsed
14266
14267 \begin_layout Plain Layout
14268 1
14269 \end_layout
14270
14271 \end_inset
14272
14273
14274 \emph default
14275
14276 \lang english
14277 Defines whether the float has a starred variant that spans columns in a
14278  two column paragraph.
14279  Set to 
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284
14285 \lang english
14286 0
14287 \end_layout
14288
14289 \end_inset
14290
14291  if the float does not support this feature.
14292 \end_layout
14293
14294 \begin_layout Description
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 Extension
14300 \end_layout
14301
14302 \end_inset
14303
14304  [
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 文字列
14310 \end_layout
14311
14312 \end_inset
14313
14314 =
14315 \begin_inset Quotes erd
14316 \end_inset
14317
14318
14319 \begin_inset Quotes erd
14320 \end_inset
14321
14322 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14323 がキャプションを書き込むファイルです。
14324 \end_layout
14325
14326 \begin_layout Description
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 GuiName
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 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14355 \end_layout
14356
14357 \begin_layout Description
14358 \begin_inset Flex Code
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362 HTML*
14363 \end_layout
14364
14365 \end_inset
14366
14367  これらは、XHTML出力で使用されます。
14368 \begin_inset CommandInset ref
14369 LatexCommand ref
14370 reference "sec:XHTML出力のタグ"
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 IsPredefined
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 \emph on
14394 0
14395 \end_layout
14396
14397 \end_inset
14398
14399 ,
14400 \begin_inset space \thinspace{}
14401 \end_inset
14402
14403
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 1
14409 \end_layout
14410
14411 \end_inset
14412
14413 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14414 パッケージ
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 float
14420 \end_layout
14421
14422 \end_inset
14423
14424 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429 0
14430 \end_layout
14431
14432 \end_inset
14433
14434 で、この場合
14435 \begin_inset Flex Code
14436 status collapsed
14437
14438 \begin_layout Plain Layout
14439 float
14440 \end_layout
14441
14442 \end_inset
14443
14444 を使用します。\SpecialChar LaTeX
14445 ドキュメントクラス中に既に定義されているときには、
14446 \begin_inset Flex Code
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450 0
14451 \end_layout
14452
14453 \end_inset
14454
14455 に設定しなくてはなりません。
14456 \end_layout
14457
14458 \begin_layout Description
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 ListCommand
14464 \end_layout
14465
14466 \end_inset
14467
14468  [
14469 \begin_inset Flex Code
14470 status collapsed
14471
14472 \begin_layout Plain Layout
14473 文字列
14474 \end_layout
14475
14476 \end_inset
14477
14478 =
14479 \begin_inset Quotes erd
14480 \end_inset
14481
14482
14483 \begin_inset Quotes erd
14484 \end_inset
14485
14486 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14487 \backslash
14488 」は書きません。
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493 NeedsFloatPkg
14494 \end_layout
14495
14496 \end_inset
14497
14498 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14499 \emph on
14500 必ず
14501 \emph default
14502 指定しなくてはなりません。
14503 \begin_inset Flex Code
14504 status collapsed
14505
14506 \begin_layout Plain Layout
14507 NeedsFloatPkg
14508 \end_layout
14509
14510 \end_inset
14511
14512 が真の時は、標準的な方法が存在するので、これは無視されます。
14513 \end_layout
14514
14515 \begin_layout Description
14516 \begin_inset Flex Code
14517 status collapsed
14518
14519 \begin_layout Plain Layout
14520 ListName
14521 \end_layout
14522
14523 \end_inset
14524
14525  [
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 文字列
14531 \end_layout
14532
14533 \end_inset
14534
14535 =
14536 \begin_inset Quotes erd
14537 \end_inset
14538
14539
14540 \begin_inset Quotes erd
14541 \end_inset
14542
14543 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14544 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14545 に渡さ
14546 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14547 \end_layout
14548
14549 \begin_layout Description
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 NumberWithin
14555 \end_layout
14556
14557 \end_inset
14558
14559  [
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 文字列
14565 \end_layout
14566
14567 \end_inset
14568
14569 =
14570 \begin_inset Quotes erd
14571 \end_inset
14572
14573
14574 \begin_inset Quotes erd
14575 \end_inset
14576
14577 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 NumberWithin
14583 \end_layout
14584
14585 \end_inset
14586
14587 が「
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 chapter
14593 \end_layout
14594
14595 \end_inset
14596
14597 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14598 \end_layout
14599
14600 \begin_layout Description
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605 Placement
14606 \end_layout
14607
14608 \end_inset
14609
14610  [
14611 \begin_inset Flex Code
14612 status collapsed
14613
14614 \begin_layout Plain Layout
14615 文字列
14616 \end_layout
14617
14618 \end_inset
14619
14620 =
14621 \begin_inset Quotes erd
14622 \end_inset
14623
14624
14625 \begin_inset Quotes erd
14626 \end_inset
14627
14628 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14629 表記に従い、
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 t
14635 \end_layout
14636
14637 \end_inset
14638
14639 ならば上部(top)、
14640 \begin_inset Flex Code
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644 b
14645 \end_layout
14646
14647 \end_inset
14648
14649 ならば下部(bottom)、
14650 \begin_inset Flex Code
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 p
14655 \end_layout
14656
14657 \end_inset
14658
14659 ならばページ(page)、
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 h
14665 \end_layout
14666
14667 \end_inset
14668
14669 ならばここ(here)を表します
14670 \begin_inset Foot
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 \SpecialChar LaTeX
14675 同様、文字列中でのこれらの文字の順序は関係ありません。
14676 \end_layout
14677
14678 \end_inset
14679
14680 。これらの他に新しい型
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 H
14686 \end_layout
14687
14688 \end_inset
14689
14690 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14691 \begin_inset Flex Code
14692 status collapsed
14693
14694 \begin_layout Plain Layout
14695 H
14696 \end_layout
14697
14698 \end_inset
14699
14700 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14701 に「
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706 tbp
14707 \end_layout
14708
14709 \end_inset
14710
14711 」を指定してください。
14712 \end_layout
14713
14714 \begin_layout Description
14715 \begin_inset Flex Code
14716 status collapsed
14717
14718 \begin_layout Plain Layout
14719 RefPrefix
14720 \end_layout
14721
14722 \end_inset
14723
14724  [
14725 \begin_inset Flex Code
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729 文字列
14730 \end_layout
14731
14732 \end_inset
14733
14734 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 RefPrefix
14740 \end_layout
14741
14742 \end_inset
14743
14744 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14745 \end_layout
14746
14747 \begin_layout Description
14748 \begin_inset Flex Code
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752 Style
14753 \end_layout
14754
14755 \end_inset
14756
14757  [
14758 \begin_inset Flex Code
14759 status collapsed
14760
14761 \begin_layout Plain Layout
14762 文字列
14763 \end_layout
14764
14765 \end_inset
14766
14767 =
14768 \begin_inset Quotes erd
14769 \end_inset
14770
14771
14772 \begin_inset Quotes erd
14773 \end_inset
14774
14775
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780
14781 \backslash
14782 newfloat
14783 \end_layout
14784
14785 \end_inset
14786
14787 を使用してフロートを定義する際に使用される様式。
14788 \end_layout
14789
14790 \begin_layout Description
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 Type
14796 \end_layout
14797
14798 \end_inset
14799
14800  [
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 文字列
14806 \end_layout
14807
14808 \end_inset
14809
14810 =
14811 \begin_inset Quotes erd
14812 \end_inset
14813
14814
14815 \begin_inset Quotes erd
14816 \end_inset
14817
14818 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823
14824 \backslash
14825 newfloat
14826 \end_layout
14827
14828 \end_inset
14829
14830 の後で、
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835
14836 \backslash
14837 begin{program}
14838 \end_layout
14839
14840 \end_inset
14841
14842
14843 \begin_inset Flex Code
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847
14848 \backslash
14849 end{algorithm*}
14850 \end_layout
14851
14852 \end_inset
14853
14854 といったコマンドが利用できます。
14855 \end_layout
14856
14857 \begin_layout Description
14858 \begin_inset Flex Code
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862 UsesFloatPkg
14863 \end_layout
14864
14865 \end_inset
14866
14867  [
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 0
14873 \end_layout
14874
14875 \end_inset
14876
14877 ,
14878 \begin_inset space \thinspace{}
14879 \end_inset
14880
14881
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886
14887 \emph on
14888 1
14889 \end_layout
14890
14891 \end_inset
14892
14893 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14894 パッケージ
14895 \begin_inset Flex Code
14896 status collapsed
14897
14898 \begin_layout Plain Layout
14899 float
14900 \end_layout
14901
14902 \end_inset
14903
14904 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14905 自身がオン・ザ・フライで定義しているのかを示します。
14906 \end_layout
14907
14908 \begin_layout Standard
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913
14914 \emph on
14915 type
14916 \end_layout
14917
14918 \end_inset
14919
14920 型のフロートを定義すると、自動的に
14921 \emph on
14922 対応する
14923 \emph default
14924
14925 \begin_inset Flex Code
14926 status collapsed
14927
14928 \begin_layout Plain Layout
14929
14930 \emph on
14931 type
14932 \end_layout
14933
14934 \end_inset
14935
14936 名カウンタが定義されます。
14937 \end_layout
14938
14939 \begin_layout Subsection
14940 自由差込枠と差込枠レイアウト
14941 \begin_inset CommandInset label
14942 LatexCommand label
14943 name "subsec:任意設定差込枠"
14944
14945 \end_inset
14946
14947
14948 \end_layout
14949
14950 \begin_layout Standard
14951 自由差込枠には次の3種類があります。
14952 \end_layout
14953
14954 \begin_layout Itemize
14955 文字様式(
14956 \begin_inset Flex Code
14957 status collapsed
14958
14959 \begin_layout Plain Layout
14960 CharStyle
14961 \end_layout
14962
14963 \end_inset
14964
14965 )。これは、
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970
14971 \backslash
14972 noun
14973 \end_layout
14974
14975 \end_inset
14976
14977
14978 \begin_inset Flex Code
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982
14983 \backslash
14984 code
14985 \end_layout
14986
14987 \end_inset
14988
14989 などの\SpecialChar LaTeX
14990 コマンドに対応した意味論的マークアップを定義するものです。
14991 \end_layout
14992
14993 \begin_layout Itemize
14994 ユーザ設定(
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 Custom
15000 \end_layout
15001
15002 \end_inset
15003
15004 )。これは、\SpecialChar TeX
15005 コードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 endnote
15011 \end_layout
15012
15013 \end_inset
15014
15015 モジュール中で定義されています。
15016 \end_layout
15017
15018 \begin_layout Itemize
15019 XML要素(
15020 \begin_inset Flex Code
15021 status collapsed
15022
15023 \begin_layout Plain Layout
15024 Element
15025 \end_layout
15026
15027 \end_inset
15028
15029 )。DocBookクラスで使用するものです。
15030 \end_layout
15031
15032 \begin_layout Standard
15033 自由差込枠は、以下で説明する
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 InsetLayout
15039 \end_layout
15040
15041 \end_inset
15042
15043 タグを使用して定義されます。
15044 \end_layout
15045
15046 \begin_layout Standard
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 InsetLayout
15052 \end_layout
15053
15054 \end_inset
15055
15056 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 InsetLayout
15062 \end_layout
15063
15064 \end_inset
15065
15066 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・\SpecialChar TeX
15067 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15068 ー定義するのに使用されます。
15069 \end_layout
15070
15071 \begin_layout Standard
15072 \begin_inset Flex Code
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 InsetLayout
15077 \end_layout
15078
15079 \end_inset
15080
15081 定義は以下の形の行では始まらなくてはなりません。
15082 \end_layout
15083
15084 \begin_layout LyX-Code
15085 InsetLayout <型>
15086 \end_layout
15087
15088 \begin_layout Standard
15089 ここで
15090 \begin_inset Flex Code
15091 status collapsed
15092
15093 \begin_layout Plain Layout
15094 <型>
15095 \end_layout
15096
15097 \end_inset
15098
15099 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
15100 \end_layout
15101
15102 \begin_layout Enumerate
15103 既存の差込枠のレイアウトを変更する場合。この場合、
15104 \begin_inset Flex Code
15105 status collapsed
15106
15107 \begin_layout Plain Layout
15108 <型>
15109 \end_layout
15110
15111 \end_inset
15112
15113 は以下のいずれかになります:
15114 \begin_inset Flex Code
15115 status collapsed
15116
15117 \begin_layout Plain Layout
15118 Algorithm
15119 \end_layout
15120
15121 \end_inset
15122
15123
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128 Branch
15129 \end_layout
15130
15131 \end_inset
15132
15133
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138 Box
15139 \end_layout
15140
15141 \end_inset
15142
15143
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 Box:shaded
15149 \end_layout
15150
15151 \end_inset
15152
15153
15154 \begin_inset Flex Code
15155 status collapsed
15156
15157 \begin_layout Plain Layout
15158 Caption:Standard
15159 \end_layout
15160
15161 \end_inset
15162
15163
15164 \begin_inset Flex Code
15165 status collapsed
15166
15167 \begin_layout Plain Layout
15168 ERT
15169 \end_layout
15170
15171 \end_inset
15172
15173
15174 \begin_inset Flex Code
15175 status collapsed
15176
15177 \begin_layout Plain Layout
15178 Figure
15179 \end_layout
15180
15181 \end_inset
15182
15183
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 Foot
15189 \end_layout
15190
15191 \end_inset
15192
15193
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 Index
15199 \end_layout
15200
15201 \end_inset
15202
15203
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208 Info
15209 \end_layout
15210
15211 \end_inset
15212
15213
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 Info:menu
15219 \end_layout
15220
15221 \end_inset
15222
15223
15224 \begin_inset Flex Code
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228 Info:shortcut
15229 \end_layout
15230
15231 \end_inset
15232
15233
15234 \begin_inset Flex Code
15235 status collapsed
15236
15237 \begin_layout Plain Layout
15238 Info:shortcuts
15239 \end_layout
15240
15241 \end_inset
15242
15243
15244 \begin_inset Flex Code
15245 status collapsed
15246
15247 \begin_layout Plain Layout
15248 Listings
15249 \end_layout
15250
15251 \end_inset
15252
15253
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 Marginal
15259 \end_layout
15260
15261 \end_inset
15262
15263
15264 \begin_inset Flex Code
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268 Note:Comment
15269 \end_layout
15270
15271 \end_inset
15272
15273
15274 \begin_inset Flex Code
15275 status collapsed
15276
15277 \begin_layout Plain Layout
15278 Note:Note
15279 \end_layout
15280
15281 \end_inset
15282
15283
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 Note:GreyedOut
15289 \end_layout
15290
15291 \end_inset
15292
15293
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 Table
15299 \end_layout
15300
15301 \end_inset
15302
15303
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 URL
15309 \end_layout
15310
15311 \end_inset
15312
15313
15314 \end_layout
15315
15316 \begin_layout Enumerate
15317 自由差込枠のレイアウトを定義する場合。この場合、
15318 \begin_inset Flex Code
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 <型>
15323 \end_layout
15324
15325 \end_inset
15326
15327
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 Flex:<名称>
15333 \end_layout
15334
15335 \end_inset
15336
15337 の形でなくてはなりません。ここで、
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 名称
15343 \end_layout
15344
15345 \end_inset
15346
15347 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15348 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 \SpecialChar LyX
15354 Type
15355 \end_layout
15356
15357 \end_inset
15358
15359 項目が含まれていなくてはならないことに注意してください。
15360 \end_layout
15361
15362 \begin_layout Enumerate
15363 ユーザー定義派生枝を定義する場合。この場合、
15364 \begin_inset Flex Code
15365 status collapsed
15366
15367 \begin_layout Plain Layout
15368 <型>
15369 \end_layout
15370
15371 \end_inset
15372
15373 は「
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 Branch:<名称>
15379 \end_layout
15380
15381 \end_inset
15382
15383 」の形でなくてはなりません。ここで、
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388 名称
15389 \end_layout
15390
15391 \end_inset
15392
15393 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15394 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15395 がくるむことができるようにすることです。
15396 \end_layout
15397
15398 \begin_layout Enumerate
15399 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 <型>
15405 \end_layout
15406
15407 \end_inset
15408
15409 は「
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 Caption:<名称>
15415 \end_layout
15416
15417 \end_inset
15418
15419 」の形でなくてはなりません。ここで、
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424 名称
15425 \end_layout
15426
15427 \end_inset
15428
15429 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 Caption:Standard
15435 \end_layout
15436
15437 \end_inset
15438
15439 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15440 \begin_inset Flex Code
15441 status collapsed
15442
15443 \begin_layout Plain Layout
15444 Caption:Above
15445 \end_layout
15446
15447 \end_inset
15448
15449
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 Caption:Below
15455 \end_layout
15456
15457 \end_inset
15458
15459 )、
15460 \family sans
15461 多言語キャプション
15462 \family default
15463 モジュール(
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 Caption:Bicaption
15469 \end_layout
15470
15471 \end_inset
15472
15473 )をご覧ください。
15474 \end_layout
15475
15476 \begin_layout Standard
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 InsetLayout
15482 \end_layout
15483
15484 \end_inset
15485
15486 定義には以下の項目を入れることができます。
15487 \end_layout
15488
15489 \begin_layout Description
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 Argument
15495 \end_layout
15496
15497 \end_inset
15498
15499  [
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504 整数
15505 \end_layout
15506
15507 \end_inset
15508
15509 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15510 \begin_inset Flex Code
15511 status collapsed
15512
15513 \begin_layout Plain Layout
15514 EndArgument
15515 \end_layout
15516
15517 \end_inset
15518
15519 で閉じなくてはなりません。詳細は
15520 \begin_inset CommandInset ref
15521 LatexCommand ref
15522 reference "subsec:段落様式"
15523
15524 \end_inset
15525
15526 参照。
15527 \end_layout
15528
15529 \begin_layout Description
15530 \begin_inset Flex Code
15531 status collapsed
15532
15533 \begin_layout Plain Layout
15534 BabelPreamble
15535 \end_layout
15536
15537 \end_inset
15538
15539  言語コマンドを変更するプリアンブル。
15540 \begin_inset CommandInset ref
15541 LatexCommand ref
15542 reference "subsec:段落様式の国際化"
15543
15544 \end_inset
15545
15546 参照。
15547 \end_layout
15548
15549 \begin_layout Description
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 BgColor
15555 \end_layout
15556
15557 \end_inset
15558
15559  [
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 <名称>
15565 \end_layout
15566
15567 \end_inset
15568
15569 ] 差込枠の背景色。使用できる色名一覧は
15570 \begin_inset CommandInset ref
15571 LatexCommand ref
15572 reference "chap:色名"
15573
15574 \end_inset
15575
15576 参照。
15577 \end_layout
15578
15579 \begin_layout Description
15580 \begin_inset Flex Code
15581 status collapsed
15582
15583 \begin_layout Plain Layout
15584 ContentAsLabel
15585 \end_layout
15586
15587 \end_inset
15588
15589  [
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594
15595 \emph on
15596 0
15597 \end_layout
15598
15599 \end_inset
15600
15601 ,
15602 \begin_inset space \thinspace{}
15603 \end_inset
15604
15605
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610 1
15611 \end_layout
15612
15613 \end_inset
15614
15615 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15616 \end_layout
15617
15618 \begin_layout Description
15619 \begin_inset Flex Code
15620 status collapsed
15621
15622 \begin_layout Plain Layout
15623 CopyStyle
15624 \end_layout
15625
15626 \end_inset
15627
15628  [<型>] 段落様式と同様です。
15629 \begin_inset CommandInset ref
15630 LatexCommand ref
15631 reference "subsec:段落様式"
15632
15633 \end_inset
15634
15635 参照のこと。完全な型を指定する必要があることに注意してください。例:
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 CopyStyle Flex:<名称>
15641 \end_layout
15642
15643 \end_inset
15644
15645
15646 \end_layout
15647
15648 \begin_layout Description
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653 CustomPars
15654 \end_layout
15655
15656 \end_inset
15657
15658  [
15659 \begin_inset Flex Code
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663
15664 \emph on
15665 0
15666 \end_layout
15667
15668 \end_inset
15669
15670 ,
15671 \begin_inset space \thinspace{}
15672 \end_inset
15673
15674
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 1
15680 \end_layout
15681
15682 \end_inset
15683
15684 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15685 \end_layout
15686
15687 \begin_layout Description
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692 Decoration
15693 \end_layout
15694
15695 \end_inset
15696
15697  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 Classic
15703 \end_layout
15704
15705 \end_inset
15706
15707
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 Minimalistic
15713 \end_layout
15714
15715 \end_inset
15716
15717
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 Conglomerate
15723 \end_layout
15724
15725 \end_inset
15726
15727 のいずれかを指定することができます。脚注は通常
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 Classic
15733 \end_layout
15734
15735 \end_inset
15736
15737 を使用し、\SpecialChar TeX
15738 コード差込枠は通常
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 Minimalistic
15744 \end_layout
15745
15746 \end_inset
15747
15748 、文字様式は
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 Conglomerate
15754 \end_layout
15755
15756 \end_inset
15757
15758 を使用します。
15759 \end_layout
15760
15761 \begin_layout Description
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766 Display
15767 \end_layout
15768
15769 \end_inset
15770
15771  [
15772 \begin_inset Flex Code
15773 status collapsed
15774
15775 \begin_layout Plain Layout
15776 0
15777 \end_layout
15778
15779 \end_inset
15780
15781 ,
15782 \begin_inset space \thinspace{}
15783 \end_inset
15784
15785
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790
15791 \emph on
15792 1
15793 \end_layout
15794
15795 \end_inset
15796
15797
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802 LatexType
15803 \end_layout
15804
15805 \end_inset
15806
15807
15808 \begin_inset Flex Code
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812 Environment
15813 \end_layout
15814
15815 \end_inset
15816
15817 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15818 環境は、
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823
15824 \backslash
15825 begin{LatexName}
15826 \end_layout
15827
15828 \end_inset
15829
15830 タグと
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835
15836 \backslash
15837 end{LatexName}
15838 \end_layout
15839
15840 \end_inset
15841
15842 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15843 \end_layout
15844
15845 \begin_layout Description
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 End
15851 \end_layout
15852
15853 \end_inset
15854
15855  
15856 \begin_inset Flex Code
15857 status collapsed
15858
15859 \begin_layout Plain Layout
15860 InsetLayout
15861 \end_layout
15862
15863 \end_inset
15864
15865 宣言を閉じるのに必要です。
15866 \end_layout
15867
15868 \begin_layout Description
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 Font
15874 \end_layout
15875
15876 \end_inset
15877
15878  本文本体とラベル
15879 \emph on
15880 両方に
15881 \emph default
15882 使用されるフォントです。
15883 \begin_inset CommandInset ref
15884 LatexCommand ref
15885 reference "subsec:フォント指定"
15886
15887 \end_inset
15888
15889 を参照。このフォントを定義すると自動的に
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 LabelFont
15895 \end_layout
15896
15897 \end_inset
15898
15899 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 LabelFont
15905 \end_layout
15906
15907 \end_inset
15908
15909 を定義しなくてはならないことに注意してください。
15910 \end_layout
15911
15912 \begin_layout Description
15913 \begin_inset Flex Code
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917 FixedWidthPreambleEncoding
15918 \end_layout
15919
15920 \end_inset
15921
15922  [
15923 \begin_inset Flex Code
15924 status collapsed
15925
15926 \begin_layout Plain Layout
15927
15928 \emph on
15929 0
15930 \end_layout
15931
15932 \end_inset
15933
15934 ,
15935 \begin_inset space \thinspace{}
15936 \end_inset
15937
15938
15939 \begin_inset Flex Code
15940 status collapsed
15941
15942 \begin_layout Plain Layout
15943 1
15944 \end_layout
15945
15946 \end_inset
15947
15948
15949 \lang english
15950 Force a fixed width encoding for the translated contents of 
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955
15956 \lang english
15957 BabelPreamble
15958 \end_layout
15959
15960 \end_inset
15961
15962  and 
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967
15968 \lang english
15969 LangPreamble
15970 \end_layout
15971
15972 \end_inset
15973
15974  code generated by this layout.
15975  This is needed for special \SpecialChar LaTeX
15976 -packages like 
15977 \family typewriter
15978 listings
15979 \family default
15980  that do not work with variable width encodings such as 
15981 \family sans
15982 utf8
15983 \family default
15984 .
15985  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
15986  backends such as 
15987 \lang ngerman
15988 Xe\SpecialChar TeX
15989  or Lua\SpecialChar TeX
15990
15991 \lang english
15992  are used.
15993 \end_layout
15994
15995 \begin_layout Description
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 ForceLocalFontSwitch
16001 \end_layout
16002
16003 \end_inset
16004
16005  [
16006 \begin_inset Flex Code
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010
16011 \emph on
16012 0
16013 \end_layout
16014
16015 \end_inset
16016
16017 ,
16018 \begin_inset space \thinspace{}
16019 \end_inset
16020
16021
16022 \begin_inset Flex Code
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026 1
16027 \end_layout
16028
16029 \end_inset
16030
16031 ] babel使用時に、常にローカルフォント切替(
16032 \begin_inset Flex Code
16033 status collapsed
16034
16035 \begin_layout Plain Layout
16036
16037 \backslash
16038 foreignlanguage
16039 \end_layout
16040
16041 \end_inset
16042
16043 )を使い、グローバル切替(
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048
16049 \backslash
16050 selectlanguage
16051 \end_layout
16052
16053 \end_inset
16054
16055 など)は使わない。
16056 \end_layout
16057
16058 \begin_layout Description
16059 \begin_inset Flex Code
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063 ForceLTR
16064 \end_layout
16065
16066 \end_inset
16067
16068  [
16069 \begin_inset Flex Code
16070 status collapsed
16071
16072 \begin_layout Plain Layout
16073
16074 \emph on
16075 0
16076 \end_layout
16077
16078 \end_inset
16079
16080 ,
16081 \begin_inset space \thinspace{}
16082 \end_inset
16083
16084
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 1
16090 \end_layout
16091
16092 \end_inset
16093
16094 ] たとえば\SpecialChar TeX
16095 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
16096 \end_layout
16097
16098 \begin_layout Description
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 ForceOwnlines
16104 \end_layout
16105
16106 \end_inset
16107
16108  [
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113
16114 \emph on
16115 0
16116 \end_layout
16117
16118 \end_inset
16119
16120 ,
16121 \begin_inset space \thinspace{}
16122 \end_inset
16123
16124
16125 \begin_inset Flex Code
16126 status collapsed
16127
16128 \begin_layout Plain Layout
16129 1
16130 \end_layout
16131
16132 \end_inset
16133
16134
16135 \lang english
16136 Force a a line break in the \SpecialChar LaTeX
16137  output before the inset starts and after the
16138  inset ends.
16139  This assures the inset itself is output on its own lines, for parsing purposes.
16140 \end_layout
16141
16142 \begin_layout Description
16143 \begin_inset Flex Code
16144 status collapsed
16145
16146 \begin_layout Plain Layout
16147 ForcePlain
16148 \end_layout
16149
16150 \end_inset
16151
16152  [
16153 \begin_inset Flex Code
16154 status collapsed
16155
16156 \begin_layout Plain Layout
16157
16158 \emph on
16159 0
16160 \end_layout
16161
16162 \end_inset
16163
16164 ,
16165 \begin_inset space \thinspace{}
16166 \end_inset
16167
16168
16169 \begin_inset Flex Code
16170 status collapsed
16171
16172 \begin_layout Plain Layout
16173 1
16174 \end_layout
16175
16176 \end_inset
16177
16178 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
16179 \end_layout
16180
16181 \begin_layout Description
16182 \begin_inset Flex Code
16183 status collapsed
16184
16185 \begin_layout Plain Layout
16186 FreeSpacing
16187 \end_layout
16188
16189 \end_inset
16190
16191  [
16192 \emph on
16193
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 0
16199 \end_layout
16200
16201 \end_inset
16202
16203
16204 \emph default
16205 ,
16206 \begin_inset space \thinspace{}
16207 \end_inset
16208
16209
16210 \begin_inset Flex Code
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 1
16215 \end_layout
16216
16217 \end_inset
16218
16219 ] 段落様式と同様。
16220 \begin_inset CommandInset ref
16221 LatexCommand ref
16222 reference "subsec:段落様式"
16223
16224 \end_inset
16225
16226 参照。
16227 \end_layout
16228
16229 \begin_layout Description
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 HTML*
16235 \end_layout
16236
16237 \end_inset
16238
16239  これらは、XHTML出力で使用されます。
16240 \begin_inset CommandInset ref
16241 LatexCommand ref
16242 reference "sec:XHTML出力のタグ"
16243
16244 \end_inset
16245
16246 をご覧ください。
16247 \end_layout
16248
16249 \begin_layout Description
16250 \begin_inset Flex Code
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 InToc
16255 \end_layout
16256
16257 \end_inset
16258
16259  [
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264
16265 \emph on
16266 0
16267 \end_layout
16268
16269 \end_inset
16270
16271 ,
16272 \begin_inset space \thinspace{}
16273 \end_inset
16274
16275
16276 \begin_inset Flex Code
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280 1
16281 \end_layout
16282
16283 \end_inset
16284
16285 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
16286 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
16287 \end_layout
16288
16289 \begin_layout Description
16290 \begin_inset Flex Code
16291 status collapsed
16292
16293 \begin_layout Plain Layout
16294 KeepEmpty
16295 \end_layout
16296
16297 \end_inset
16298
16299  [
16300 \emph on
16301
16302 \begin_inset Flex Code
16303 status collapsed
16304
16305 \begin_layout Plain Layout
16306 0
16307 \end_layout
16308
16309 \end_inset
16310
16311
16312 \emph default
16313 ,
16314 \begin_inset space \thinspace{}
16315 \end_inset
16316
16317
16318 \begin_inset Flex Code
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322 1
16323 \end_layout
16324
16325 \end_inset
16326
16327 ] 段落様式と同様。
16328 \begin_inset CommandInset ref
16329 LatexCommand ref
16330 reference "subsec:段落様式"
16331
16332 \end_inset
16333
16334 参照。
16335 \end_layout
16336
16337 \begin_layout Description
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 LabelFont
16343 \end_layout
16344
16345 \end_inset
16346
16347  ラベルに使用されるフォント。第
16348 \begin_inset CommandInset ref
16349 LatexCommand ref
16350 reference "subsec:フォント指定"
16351
16352 \end_inset
16353
16354 節を参照。非効率を回避するため、この定義は
16355 \begin_inset Flex Code
16356 status collapsed
16357
16358 \begin_layout Plain Layout
16359 Font
16360 \end_layout
16361
16362 \end_inset
16363
16364 の前には決して現れてはなりません。
16365 \end_layout
16366
16367 \begin_layout Description
16368 \begin_inset Flex Code
16369 status collapsed
16370
16371 \begin_layout Plain Layout
16372 LabelString
16373 \end_layout
16374
16375 \end_inset
16376
16377  [
16378 \begin_inset Flex Code
16379 status collapsed
16380
16381 \begin_layout Plain Layout
16382 文字列
16383 \end_layout
16384
16385 \end_inset
16386
16387 =
16388 \begin_inset Quotes erd
16389 \end_inset
16390
16391
16392 \begin_inset Quotes erd
16393 \end_inset
16394
16395 ]
16396 \lang english
16397  
16398 \lang japanese
16399 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16400 コードや派生枝)、ラベルが動的に変更されます。
16401 \end_layout
16402
16403 \begin_layout Description
16404 \begin_inset Flex Code
16405 status collapsed
16406
16407 \begin_layout Plain Layout
16408 LangPreamble
16409 \end_layout
16410
16411 \end_inset
16412
16413  言語依存のプリアンブル。
16414 \begin_inset CommandInset ref
16415 LatexCommand ref
16416 reference "subsec:段落様式の国際化"
16417
16418 \end_inset
16419
16420 参照。
16421 \end_layout
16422
16423 \begin_layout Description
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 LatexName
16429 \end_layout
16430
16431 \end_inset
16432
16433  [
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438 <名称>
16439 \end_layout
16440
16441 \end_inset
16442
16443 ] 対応する\SpecialChar LaTeX
16444 関連物の名称。環境名ないしはコマンド名。
16445 \end_layout
16446
16447 \begin_layout Description
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 LatexParam
16453 \end_layout
16454
16455 \end_inset
16456
16457  [
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462 <パラメータ>
16463 \end_layout
16464
16465 \end_inset
16466
16467 ]
16468 \lang english
16469  
16470 \lang japanese
16471 対応する
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476 LatexName
16477 \end_layout
16478
16479 \end_inset
16480
16481 関連物の非必須パラメータ。
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486 []
16487 \end_layout
16488
16489 \end_inset
16490
16491 のような括弧対を含む。このパラメータは\SpecialChar LyX
16492 内部から変更することはできません(変更可能なパラメータには
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 Argument
16498 \end_layout
16499
16500 \end_inset
16501
16502 を使用してください)。これは、全ての\SpecialChar LaTeX
16503  
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 Argument
16509 \end_layout
16510
16511 \end_inset
16512
16513 の後にそのままの形で出力されます。
16514 \end_layout
16515
16516 \begin_layout Description
16517 \begin_inset Flex Code
16518 status collapsed
16519
16520 \begin_layout Plain Layout
16521 LatexType
16522 \end_layout
16523
16524 \end_inset
16525
16526  [
16527 \begin_inset Flex Code
16528 status collapsed
16529
16530 \begin_layout Plain Layout
16531 Command, Environment, None
16532 \end_layout
16533
16534 \end_inset
16535
16536 ] 様式がどのように\SpecialChar LaTeX
16537 に変換されるべきかを示します
16538 \begin_inset Foot
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542 これらのルールはSGMLクラスにも適用されるので、
16543 \begin_inset Flex Code
16544 status collapsed
16545
16546 \begin_layout Plain Layout
16547 LatexType
16548 \end_layout
16549
16550 \end_inset
16551
16552 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16553 \end_layout
16554
16555 \end_inset
16556
16557
16558 \begin_inset Separator parbreak
16559 \end_inset
16560
16561
16562 \end_layout
16563
16564 \begin_deeper
16565 \begin_layout Description
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 None
16571 \end_layout
16572
16573 \end_inset
16574
16575  は、何も特別なことは意味しません
16576 \end_layout
16577
16578 \begin_layout Description
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 Command
16584 \end_layout
16585
16586 \end_inset
16587
16588  は、
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593
16594 \backslash
16595
16596 \emph on
16597 LatexName
16598 \emph default
16599 {\SpecialChar ldots
16600 }
16601 \end_layout
16602
16603 \end_inset
16604
16605 を意味します
16606 \end_layout
16607
16608 \begin_layout Description
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 Environment
16614 \end_layout
16615
16616 \end_inset
16617
16618  は、
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623
16624 \backslash
16625 begin{
16626 \emph on
16627 LatexName
16628 \emph default
16629 }\SpecialChar ldots
16630
16631 \backslash
16632 end{
16633 \emph on
16634 LatexName
16635 \emph default
16636 }
16637 \end_layout
16638
16639 \end_inset
16640
16641 を意味します
16642 \end_layout
16643
16644 \begin_layout Standard
16645 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16646 出力は、\SpecialChar LaTeX
16647 型に依存して
16648 \end_layout
16649
16650 \begin_layout LyX-Code
16651
16652 \backslash
16653 LatexName[LatexParam]{\SpecialChar ldots
16654 }
16655 \end_layout
16656
16657 \begin_layout Standard
16658 のようになるか、
16659 \end_layout
16660
16661 \begin_layout LyX-Code
16662
16663 \backslash
16664 begin{LatexName}[LatexParam] \SpecialChar ldots
16665  
16666 \backslash
16667 end{LatexName}.
16668 \end_layout
16669
16670 \begin_layout Standard
16671 となります。
16672 \end_layout
16673
16674 \end_deeper
16675 \begin_layout Description
16676 \begin_inset Flex Code
16677 status collapsed
16678
16679 \begin_layout Plain Layout
16680 LeftDelim
16681 \end_layout
16682
16683 \end_inset
16684
16685  [
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 文字列
16691 \end_layout
16692
16693 \end_inset
16694
16695 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 <br/>
16701 \end_layout
16702
16703 \end_inset
16704
16705 で指示できます。
16706 \end_layout
16707
16708 \begin_layout Description
16709 \begin_inset Flex Code
16710 status collapsed
16711
16712 \begin_layout Plain Layout
16713 LyxType
16714 \end_layout
16715
16716 \end_inset
16717
16718  
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723 charstyle
16724 \end_layout
16725
16726 \end_inset
16727
16728
16729 \begin_inset Flex Code
16730 status collapsed
16731
16732 \begin_layout Plain Layout
16733 custom
16734 \end_layout
16735
16736 \end_inset
16737
16738
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 element
16744 \end_layout
16745
16746 \end_inset
16747
16748
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 end
16754 \end_layout
16755
16756 \end_inset
16757
16758 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16759 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764 LyxType
16765 \end_layout
16766
16767 \end_inset
16768
16769
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774 charstyle
16775 \end_layout
16776
16777 \end_inset
16778
16779 に設定すると、
16780 \begin_inset Flex Code
16781 status collapsed
16782
16783 \begin_layout Plain Layout
16784 MultiPar
16785 \end_layout
16786
16787 \end_inset
16788
16789 が偽に設定されます。文字様式差込枠で
16790 \begin_inset Flex Code
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 MultiPar
16795 \end_layout
16796
16797 \end_inset
16798
16799 を真にしたい時には、
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 LyxType
16805 \end_layout
16806
16807 \end_inset
16808
16809 を設定した
16810 \emph on
16811 後に
16812 \emph default
16813 設定すれば、真に設定することができます。
16814 \end_layout
16815
16816 \begin_layout Description
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 MultiPar
16822 \end_layout
16823
16824 \end_inset
16825
16826  [
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831
16832 \emph on
16833 0
16834 \end_layout
16835
16836 \end_inset
16837
16838 ,
16839 \begin_inset space \thinspace{}
16840 \end_inset
16841
16842
16843 \begin_inset Flex Code
16844 status collapsed
16845
16846 \begin_layout Plain Layout
16847 1
16848 \end_layout
16849
16850 \end_inset
16851
16852 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 CustomPars
16858 \end_layout
16859
16860 \end_inset
16861
16862 を同じ値に設定し、
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 ForcePlain
16868 \end_layout
16869
16870 \end_inset
16871
16872 を逆の値に設定します。これらは、
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 MultiPar
16878 \end_layout
16879
16880 \end_inset
16881
16882
16883 \emph on
16884 後に
16885 \emph default
16886 指定されれば、他の値に指定し直すことができます。既定値は真です。
16887 \end_layout
16888
16889 \begin_layout Description
16890 \begin_inset Flex Code
16891 status collapsed
16892
16893 \begin_layout Plain Layout
16894 NeedProtect
16895 \end_layout
16896
16897 \end_inset
16898
16899  [
16900 \begin_inset Flex Code
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904
16905 \emph on
16906 0
16907 \end_layout
16908
16909 \end_inset
16910
16911 ,
16912 \begin_inset space \thinspace{}
16913 \end_inset
16914
16915
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 1
16921 \end_layout
16922
16923 \end_inset
16924
16925 ] 本レイアウト中で脆弱なコマンドを
16926 \begin_inset Flex Code
16927 status collapsed
16928
16929 \begin_layout Plain Layout
16930
16931 \backslash
16932 protect
16933 \end_layout
16934
16935 \end_inset
16936
16937 するか否か(註:当該コマンド自身をprotectするかどうかでは
16938 \emph on
16939 ありません
16940 \emph default
16941 )。既定値は偽です。
16942 \end_layout
16943
16944 \begin_layout Description
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 NoInsetLayout
16950 \end_layout
16951
16952 \end_inset
16953
16954  [
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 <レイアウト>
16960 \end_layout
16961
16962 \end_inset
16963
16964 ] 既存の
16965 \begin_inset Flex Code
16966 status collapsed
16967
16968 \begin_layout Plain Layout
16969 InsetLayout
16970 \end_layout
16971
16972 \end_inset
16973
16974 を削除します。
16975 \end_layout
16976
16977 \begin_layout Description
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982 ObsoletedBy
16983 \end_layout
16984
16985 \end_inset
16986
16987  [
16988 \begin_inset Flex Code
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 <レイアウト>
16993 \end_layout
16994
16995 \end_inset
16996
16997
16998 \lang english
16999 Name of an 
17000 \begin_inset Flex Code
17001 status collapsed
17002
17003 \begin_layout Plain Layout
17004
17005 \lang english
17006 InsetLayout
17007 \end_layout
17008
17009 \end_inset
17010
17011  that has replaced this 
17012 \begin_inset Flex Code
17013 status collapsed
17014
17015 \begin_layout Plain Layout
17016
17017 \lang english
17018 InsetLayout
17019 \end_layout
17020
17021 \end_inset
17022
17023 .
17024  This is used to rename an 
17025 \begin_inset Flex Code
17026 status collapsed
17027
17028 \begin_layout Plain Layout
17029
17030 \lang english
17031 InsetLayout
17032 \end_layout
17033
17034 \end_inset
17035
17036 , while keeping backward compatibility.
17037 \end_layout
17038
17039 \begin_layout Description
17040 \begin_inset Flex Code
17041 status collapsed
17042
17043 \begin_layout Plain Layout
17044 ParbreakIsNewline
17045 \end_layout
17046
17047 \end_inset
17048
17049  [
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054
17055 \emph on
17056 0
17057 \end_layout
17058
17059 \end_inset
17060
17061 ,
17062 \begin_inset space \thinspace{}
17063 \end_inset
17064
17065
17066 \begin_inset Flex Code
17067 status collapsed
17068
17069 \begin_layout Plain Layout
17070 1
17071 \end_layout
17072
17073 \end_inset
17074
17075 ] 段落様式と同様。
17076 \begin_inset CommandInset ref
17077 LatexCommand ref
17078 reference "subsec:段落様式"
17079
17080 \end_inset
17081
17082 参照。
17083 \end_layout
17084
17085 \begin_layout Description
17086 \begin_inset Flex Code
17087 status collapsed
17088
17089 \begin_layout Plain Layout
17090 PassThru
17091 \end_layout
17092
17093 \end_inset
17094
17095  [
17096 \emph on
17097
17098 \begin_inset Flex Code
17099 status collapsed
17100
17101 \begin_layout Plain Layout
17102 0
17103 \end_layout
17104
17105 \end_inset
17106
17107
17108 \emph default
17109 ,
17110 \begin_inset space \thinspace{}
17111 \end_inset
17112
17113
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 1
17119 \end_layout
17120
17121 \end_inset
17122
17123 ] 段落様式と同様。
17124 \begin_inset CommandInset ref
17125 LatexCommand ref
17126 reference "subsec:段落様式"
17127
17128 \end_inset
17129
17130 参照。
17131 \end_layout
17132
17133 \begin_layout Description
17134 \begin_inset Flex Code
17135 status collapsed
17136
17137 \begin_layout Plain Layout
17138 Preamble
17139 \end_layout
17140
17141 \end_inset
17142
17143  段落様式と同様。
17144 \begin_inset CommandInset ref
17145 LatexCommand ref
17146 reference "subsec:段落様式"
17147
17148 \end_inset
17149
17150 参照。
17151 \end_layout
17152
17153 \begin_layout Description
17154 \begin_inset Flex Code
17155 status collapsed
17156
17157 \begin_layout Plain Layout
17158 RefPrefix
17159 \end_layout
17160
17161 \end_inset
17162
17163  [
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 文字列
17169 \end_layout
17170
17171 \end_inset
17172
17173 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
17174 \end_layout
17175
17176 \begin_layout Description
17177 \begin_inset Flex Code
17178 status collapsed
17179
17180 \begin_layout Plain Layout
17181 Requires
17182 \end_layout
17183
17184 \end_inset
17185
17186  [
17187 \begin_inset Flex Code
17188 status collapsed
17189
17190 \begin_layout Plain Layout
17191 文字列
17192 \end_layout
17193
17194 \end_inset
17195
17196 ] 段落様式と同様。
17197 \begin_inset CommandInset ref
17198 LatexCommand ref
17199 reference "subsec:段落様式"
17200
17201 \end_inset
17202
17203 参照。
17204 \end_layout
17205
17206 \begin_layout Description
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 ResetArgs
17212 \end_layout
17213
17214 \end_inset
17215
17216  [
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221
17222 \emph on
17223 0
17224 \end_layout
17225
17226 \end_inset
17227
17228 ,
17229 \begin_inset space \thinspace{}
17230 \end_inset
17231
17232
17233 \begin_inset Flex Code
17234 status collapsed
17235
17236 \begin_layout Plain Layout
17237 1
17238 \end_layout
17239
17240 \end_inset
17241
17242 ] (
17243 \begin_inset Flex Code
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247 Argument
17248 \end_layout
17249
17250 \end_inset
17251
17252 タグで定義された)この様式の\SpecialChar LaTeX
17253 引数をリセットします。これは、様式を
17254 \begin_inset Flex Code
17255 status collapsed
17256
17257 \begin_layout Plain Layout
17258 CopyStyle
17259 \end_layout
17260
17261 \end_inset
17262
17263 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
17264 \end_layout
17265
17266 \begin_layout Description
17267 \begin_inset Flex Code
17268 status collapsed
17269
17270 \begin_layout Plain Layout
17271 ResetsFont
17272 \end_layout
17273
17274 \end_inset
17275
17276  [
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 0
17282 \end_layout
17283
17284 \end_inset
17285
17286 ,
17287 \begin_inset space \thinspace{}
17288 \end_inset
17289
17290
17291 \begin_inset Flex Code
17292 status collapsed
17293
17294 \begin_layout Plain Layout
17295
17296 \emph on
17297 1
17298 \end_layout
17299
17300 \end_inset
17301
17302 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
17303 \begin_inset Note Note
17304 status open
17305
17306 \begin_layout Plain Layout
17307 This is outdated: The default changed from 1 to 0
17308 \end_layout
17309
17310 \end_inset
17311
17312
17313 \end_layout
17314
17315 \begin_layout Description
17316 \begin_inset Flex Code
17317 status collapsed
17318
17319 \begin_layout Plain Layout
17320 RightDelim
17321 \end_layout
17322
17323 \end_inset
17324
17325  [
17326 \begin_inset Flex Code
17327 status collapsed
17328
17329 \begin_layout Plain Layout
17330 文字列
17331 \end_layout
17332
17333 \end_inset
17334
17335 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17336 \begin_inset Flex Code
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340 <br/>
17341 \end_layout
17342
17343 \end_inset
17344
17345 で指示できます。
17346 \end_layout
17347
17348 \begin_layout Description
17349 \begin_inset Flex Code
17350 status collapsed
17351
17352 \begin_layout Plain Layout
17353 Spellcheck
17354 \end_layout
17355
17356 \end_inset
17357
17358  [
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 0
17364 \end_layout
17365
17366 \end_inset
17367
17368 ,
17369 \begin_inset space \thinspace{}
17370 \end_inset
17371
17372
17373 \begin_inset Flex Code
17374 status collapsed
17375
17376 \begin_layout Plain Layout
17377
17378 \emph on
17379 1
17380 \end_layout
17381
17382 \end_inset
17383
17384 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17385 \end_layout
17386
17387 \begin_layout Subsection
17388 カウンタ
17389 \begin_inset CommandInset label
17390 LatexCommand label
17391 name "subsec:カウンタ"
17392
17393 \end_inset
17394
17395
17396 \end_layout
17397
17398 \begin_layout Standard
17399 テキストクラスには、カウンタ(
17400 \begin_inset Flex MenuItem
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 chapter
17405 \end_layout
17406
17407 \end_inset
17408
17409
17410 \begin_inset Flex MenuItem
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 figure
17415 \end_layout
17416
17417 \end_inset
17418
17419 ・\SpecialChar ldots
17420 )を定義することが必要です。標準的なカウンタは
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 stdcounters.inc
17426 \end_layout
17427
17428 \end_inset
17429
17430 ファイルに含まれているので、作業中のレイアウトファイルに
17431 \end_layout
17432
17433 \begin_layout LyX-Code
17434 Input stdcounters.inc
17435 \end_layout
17436
17437 \begin_layout Standard
17438 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17439 \end_layout
17440
17441 \begin_layout LyX-Code
17442 Counter カウンタ名
17443 \end_layout
17444
17445 \begin_layout Standard
17446 で始まらなくてはなりません。ここで「
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 カウンタ名
17452 \end_layout
17453
17454 \end_inset
17455
17456 」は、実際のカウンタ名で置き換えます。また、宣言は「
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461 End
17462 \end_layout
17463
17464 \end_inset
17465
17466 」で終わらなくてはなりません。
17467 \end_layout
17468
17469 \begin_layout Standard
17470 以下のパラメータを使用することができます。
17471 \end_layout
17472
17473 \begin_layout Description
17474 \begin_inset Flex Code
17475 status collapsed
17476
17477 \begin_layout Plain Layout
17478 InitialValue
17479 \end_layout
17480
17481 \end_inset
17482
17483  [
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488 整数=1
17489 \end_layout
17490
17491 \end_inset
17492
17493 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17494 \end_layout
17495
17496 \begin_layout Description
17497 \begin_inset Flex Code
17498 status collapsed
17499
17500 \begin_layout Plain Layout
17501 LabelString [文字列=""]
17502 \end_layout
17503
17504 \end_inset
17505
17506  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17507 \begin_inset Flex Code
17508 status collapsed
17509
17510 \begin_layout Plain Layout
17511 LabelStringAppendix
17512 \end_layout
17513
17514 \end_inset
17515
17516 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17517 \begin_inset Separator parbreak
17518 \end_inset
17519
17520
17521 \end_layout
17522
17523 \begin_deeper
17524 \begin_layout Itemize
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529
17530 \backslash
17531 thecounter
17532 \end_layout
17533
17534 \end_inset
17535
17536 は、カウンタ
17537 \begin_inset Flex Code
17538 status collapsed
17539
17540 \begin_layout Plain Layout
17541 counter
17542 \end_layout
17543
17544 \end_inset
17545
17546
17547 \begin_inset Flex Code
17548 status collapsed
17549
17550 \begin_layout Plain Layout
17551 LabelString
17552 \end_layout
17553
17554 \end_inset
17555
17556 (または
17557 \begin_inset Newline linebreak
17558 \end_inset
17559
17560
17561 \begin_inset Flex Code
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 LabelStringAppendix
17566 \end_layout
17567
17568 \end_inset
17569
17570 )を展開したもので置き換えられます。 
17571 \end_layout
17572
17573 \begin_layout Itemize
17574 カウンタ値は、\SpecialChar LaTeX
17575 型マクロ
17576 \begin_inset Flex Code
17577 status collapsed
17578
17579 \begin_layout Plain Layout
17580
17581 \backslash
17582
17583 \emph on
17584 numbertype
17585 \emph default
17586 {
17587 \emph on
17588 カウンタ
17589 \emph default
17590 }
17591 \end_layout
17592
17593 \end_inset
17594
17595 を用いて表現することができます。ここで
17596 \begin_inset Flex Code
17597 status collapsed
17598
17599 \begin_layout Plain Layout
17600
17601 \emph on
17602 numbertype
17603 \end_layout
17604
17605 \end_inset
17606
17607 は以下のいずれかです。
17608 \begin_inset Flex Code
17609 status collapsed
17610
17611 \begin_layout Plain Layout
17612 arabic
17613 \end_layout
17614
17615 \end_inset
17616
17617 :1, 2, 3,\SpecialChar ldots
17618
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 alph
17624 \end_layout
17625
17626 \end_inset
17627
17628 :a, b, c, \SpecialChar ldots
17629 (小文字);
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 Alph
17635 \end_layout
17636
17637 \end_inset
17638
17639 :A, B, C, \SpecialChar ldots
17640 (大文字);
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 roman
17646 \end_layout
17647
17648 \end_inset
17649
17650 :i, ii, iii, \SpecialChar ldots
17651 (小文字ローマ数字);
17652 \begin_inset Flex Code
17653 status collapsed
17654
17655 \begin_layout Plain Layout
17656 Roman
17657 \end_layout
17658
17659 \end_inset
17660
17661 :I, II, III\SpecialChar ldots
17662 (大文字ローマ数字)。
17663 \end_layout
17664
17665 \end_deeper
17666 \begin_layout Standard
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671 LabelString
17672 \end_layout
17673
17674 \end_inset
17675
17676 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17677 \begin_inset Flex Code
17678 status collapsed
17679
17680 \begin_layout Plain Layout
17681 master
17682 \end_layout
17683
17684 \end_inset
17685
17686
17687 \begin_inset Flex Code
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 Within
17692 \end_layout
17693
17694 \end_inset
17695
17696 で定義)があるときには、文字列
17697 \begin_inset Newline linebreak
17698 \end_inset
17699
17700
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705
17706 \backslash
17707 themaster.
17708 \backslash
17709 arabic{カウンタ}
17710 \end_layout
17711
17712 \end_inset
17713
17714 が使用されます。それ以外の場合は、
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719
17720 \backslash
17721 arabic{カウンタ}
17722 \end_layout
17723
17724 \end_inset
17725
17726 が使用されます。
17727 \end_layout
17728
17729 \begin_layout Description
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734 LabelStringAppendix
17735 \end_layout
17736
17737 \end_inset
17738
17739  [
17740 \begin_inset Flex Code
17741 status collapsed
17742
17743 \begin_layout Plain Layout
17744 文字列
17745 \end_layout
17746
17747 \end_inset
17748
17749 =""] 
17750 \begin_inset Flex Code
17751 status collapsed
17752
17753 \begin_layout Plain Layout
17754 LabelString
17755 \end_layout
17756
17757 \end_inset
17758
17759 と同様ですが、付録で使用するためのものです。
17760 \end_layout
17761
17762 \begin_layout Description
17763 \begin_inset Flex Code
17764 status collapsed
17765
17766 \begin_layout Plain Layout
17767 PrettyFormat
17768 \end_layout
17769
17770 \end_inset
17771
17772  [
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 文字列
17778 \end_layout
17779
17780 \end_inset
17781
17782 =
17783 \begin_inset Quotes erd
17784 \end_inset
17785
17786
17787 \begin_inset Quotes erd
17788 \end_inset
17789
17790 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17791 \begin_inset space ~
17792 \end_inset
17793
17794 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17795 す。
17796 \end_layout
17797
17798 \begin_layout Description
17799 \begin_inset Flex Code
17800 status collapsed
17801
17802 \begin_layout Plain Layout
17803 Within
17804 \end_layout
17805
17806 \end_inset
17807
17808  [
17809 \begin_inset Flex Code
17810 status collapsed
17811
17812 \begin_layout Plain Layout
17813 文字列
17814 \end_layout
17815
17816 \end_inset
17817
17818 =
17819 \begin_inset Quotes erd
17820 \end_inset
17821
17822
17823 \begin_inset Quotes erd
17824 \end_inset
17825
17826 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17827 \begin_inset Flex Code
17828 status collapsed
17829
17830 \begin_layout Plain Layout
17831 subsection
17832 \end_layout
17833
17834 \end_inset
17835
17836
17837 \begin_inset Flex Code
17838 status collapsed
17839
17840 \begin_layout Plain Layout
17841 section
17842 \end_layout
17843
17844 \end_inset
17845
17846 毎に番号がリセットされます。
17847 \end_layout
17848
17849 \begin_layout Subsection
17850 フォント指定
17851 \begin_inset CommandInset label
17852 LatexCommand label
17853 name "subsec:フォント指定"
17854
17855 \end_inset
17856
17857
17858 \end_layout
17859
17860 \begin_layout Standard
17861 フォント指定は、以下のような形を取ります。
17862 \end_layout
17863
17864 \begin_layout LyX-Code
17865 Font 
17866 \family roman
17867 \emph on
17868 または
17869 \family default
17870 \emph default
17871  LabelFont 
17872 \family roman
17873 \emph on
17874 または
17875 \family default
17876 \emph default
17877  DefaultFont
17878 \end_layout
17879
17880 \begin_layout LyX-Code
17881  ...
17882 \end_layout
17883
17884 \begin_layout LyX-Code
17885 EndFont
17886 \end_layout
17887
17888 \begin_layout Standard
17889 以下のコマンドを使用することができます。
17890 \end_layout
17891
17892 \begin_layout Description
17893 \begin_inset Flex Code
17894 status collapsed
17895
17896 \begin_layout Plain Layout
17897 Color
17898 \end_layout
17899
17900 \end_inset
17901
17902  [
17903 \begin_inset Flex Code
17904 status collapsed
17905
17906 \begin_layout Plain Layout
17907
17908 \emph on
17909 none
17910 \end_layout
17911
17912 \end_inset
17913
17914
17915 \begin_inset Flex Code
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 black
17920 \end_layout
17921
17922 \end_inset
17923
17924
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 white
17930 \end_layout
17931
17932 \end_inset
17933
17934
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939 red
17940 \end_layout
17941
17942 \end_inset
17943
17944
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 green
17950 \end_layout
17951
17952 \end_inset
17953
17954
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 blue
17960 \end_layout
17961
17962 \end_inset
17963
17964
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 cyan
17970 \end_layout
17971
17972 \end_inset
17973
17974
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 magenta
17980 \end_layout
17981
17982 \end_inset
17983
17984
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 yellow
17990 \end_layout
17991
17992 \end_inset
17993
17994 ]
17995 \end_layout
17996
17997 \begin_layout Description
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 Family
18003 \end_layout
18004
18005 \end_inset
18006
18007  [
18008 \emph on
18009
18010 \begin_inset Flex Code
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014 Roman
18015 \end_layout
18016
18017 \end_inset
18018
18019
18020 \emph default
18021
18022 \begin_inset Flex Code
18023 status collapsed
18024
18025 \begin_layout Plain Layout
18026 Sans
18027 \end_layout
18028
18029 \end_inset
18030
18031
18032 \begin_inset Flex Code
18033 status collapsed
18034
18035 \begin_layout Plain Layout
18036 Typewriter
18037 \end_layout
18038
18039 \end_inset
18040
18041
18042 \end_layout
18043
18044 \begin_layout Description
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 Misc
18050 \end_layout
18051
18052 \end_inset
18053
18054  [
18055 \begin_inset Flex Code
18056 status collapsed
18057
18058 \begin_layout Plain Layout
18059 文字列
18060 \end_layout
18061
18062 \end_inset
18063
18064 ] 有効な引数は、
18065 \begin_inset Flex Code
18066 status collapsed
18067
18068 \begin_layout Plain Layout
18069 emph
18070 \end_layout
18071
18072 \end_inset
18073
18074
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 noun
18080 \end_layout
18081
18082 \end_inset
18083
18084
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 strikeout
18090 \end_layout
18091
18092 \end_inset
18093
18094
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099 underbar
18100 \end_layout
18101
18102 \end_inset
18103
18104
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 uuline
18110 \end_layout
18111
18112 \end_inset
18113
18114
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 uwave
18120 \end_layout
18121
18122 \end_inset
18123
18124
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129 no_emph
18130 \end_layout
18131
18132 \end_inset
18133
18134
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 no_noun
18140 \end_layout
18141
18142 \end_inset
18143
18144
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 no_strikeout
18150 \end_layout
18151
18152 \end_inset
18153
18154
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 no_bar
18160 \end_layout
18161
18162 \end_inset
18163
18164
18165 \begin_inset Flex Code
18166 status collapsed
18167
18168 \begin_layout Plain Layout
18169 no_uuline
18170 \end_layout
18171
18172 \end_inset
18173
18174
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 no_uwave
18180 \end_layout
18181
18182 \end_inset
18183
18184 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
18185 \begin_inset Newline newline
18186 \end_inset
18187
18188 たとえば、
18189 \begin_inset Flex Code
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 emph
18194 \end_layout
18195
18196 \end_inset
18197
18198 は強調を有効にし、
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203 no_emph
18204 \end_layout
18205
18206 \end_inset
18207
18208 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
18209
18210 \begin_inset Flex Code
18211 status collapsed
18212
18213 \begin_layout Plain Layout
18214 no_emph
18215 \end_layout
18216
18217 \end_inset
18218
18219 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
18220 \end_layout
18221
18222 \begin_layout Description
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Series
18228 \end_layout
18229
18230 \end_inset
18231
18232  [
18233 \emph on
18234
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 Medium
18240 \end_layout
18241
18242 \end_inset
18243
18244
18245 \emph default
18246
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 Bold
18252 \end_layout
18253
18254 \end_inset
18255
18256
18257 \end_layout
18258
18259 \begin_layout Description
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264 Shape
18265 \end_layout
18266
18267 \end_inset
18268
18269  [
18270 \emph on
18271
18272 \begin_inset Flex Code
18273 status collapsed
18274
18275 \begin_layout Plain Layout
18276 Up
18277 \end_layout
18278
18279 \end_inset
18280
18281
18282 \emph default
18283
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 Italic
18289 \end_layout
18290
18291 \end_inset
18292
18293
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 SmallCaps
18299 \end_layout
18300
18301 \end_inset
18302
18303
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 Slanted
18309 \end_layout
18310
18311 \end_inset
18312
18313
18314 \end_layout
18315
18316 \begin_layout Description
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 Size
18322 \end_layout
18323
18324 \end_inset
18325
18326  [
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331 tiny
18332 \end_layout
18333
18334 \end_inset
18335
18336
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 small
18342 \end_layout
18343
18344 \end_inset
18345
18346
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351
18352 \emph on
18353 normal
18354 \end_layout
18355
18356 \end_inset
18357
18358
18359 \begin_inset Flex Code
18360 status collapsed
18361
18362 \begin_layout Plain Layout
18363 large
18364 \end_layout
18365
18366 \end_inset
18367
18368
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 larger
18374 \end_layout
18375
18376 \end_inset
18377
18378
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 largest
18384 \end_layout
18385
18386 \end_inset
18387
18388
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 huge
18394 \end_layout
18395
18396 \end_inset
18397
18398
18399 \begin_inset Flex Code
18400 status collapsed
18401
18402 \begin_layout Plain Layout
18403 giant
18404 \end_layout
18405
18406 \end_inset
18407
18408 ]
18409 \end_layout
18410
18411 \begin_layout Subsection
18412 \begin_inset CommandInset label
18413 LatexCommand label
18414 name "subsec:引用書式指定"
18415
18416 \end_inset
18417
18418 引用書式指定
18419 \end_layout
18420
18421 \begin_layout Standard
18422 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18423 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 CiteFormat
18429 \end_layout
18430
18431 \end_inset
18432
18433 ブロックが使用されています。このブロックは、以下のような形をしています。
18434 \end_layout
18435
18436 \begin_layout LyX-Code
18437 CiteFormat
18438 \end_layout
18439
18440 \begin_layout LyX-Code
18441  article ...
18442 \end_layout
18443
18444 \begin_layout LyX-Code
18445  book ...
18446 \end_layout
18447
18448 \begin_layout LyX-Code
18449 End
18450 \end_layout
18451
18452 \begin_layout Standard
18453 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18454 ファイル中に存在し
18455 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18456 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18457 は、いくつかの書式を
18458 \begin_inset Flex Code
18459 status collapsed
18460
18461 \begin_layout Plain Layout
18462 stdciteformats.inc
18463 \end_layout
18464
18465 \end_inset
18466
18467 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18468 文書クラスにインクルードされています。
18469 \end_layout
18470
18471 \begin_layout Standard
18472 この定義は、Bib\SpecialChar TeX
18473 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18474 \begin_inset Flex Code
18475 status collapsed
18476
18477 \begin_layout Plain Layout
18478 %author%
18479 \end_layout
18480
18481 \end_inset
18482
18483 のように
18484 \begin_inset Flex Code
18485 status collapsed
18486
18487 \begin_layout Plain Layout
18488 %
18489 \end_layout
18490
18491 \end_inset
18492
18493 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18494 \end_layout
18495
18496 \begin_layout LyX-Code
18497 misc %author%, 
18498 \begin_inset Quotes eld
18499 \end_inset
18500
18501 %title%
18502 \begin_inset Quotes erd
18503 \end_inset
18504
18505
18506 \end_layout
18507
18508 \begin_layout Standard
18509 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18510 \end_layout
18511
18512 \begin_layout Standard
18513 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18514 \begin_inset Flex Code
18515 status collapsed
18516
18517 \begin_layout Plain Layout
18518 {%volume%[[vol.
18519 \begin_inset space ~
18520 \end_inset
18521
18522 %volume%]]}
18523 \end_layout
18524
18525 \end_inset
18526
18527 のように、条件付きの構成を使用することができます。これは、
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 volume
18533 \end_layout
18534
18535 \end_inset
18536
18537 が存在するならば,「vol.
18538 \begin_inset space ~
18539 \end_inset
18540
18541 」とvolumeキーを出力するという意味です。また、
18542 \begin_inset Newline newline
18543 \end_inset
18544
18545
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 {%author%[[%author%]][[%editor%, ed.]]}
18551 \end_layout
18552
18553 \end_inset
18554
18555
18556 \begin_inset Newline newline
18557 \end_inset
18558
18559 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564 author
18565 \end_layout
18566
18567 \end_inset
18568
18569 キーが存在するならば出力され、そうでなければeditorキーと「,
18570 \begin_inset space ~
18571 \end_inset
18572
18573 ed.」が出力されます。ここでもキーは、
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 %
18579 \end_layout
18580
18581 \end_inset
18582
18583 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18584 \begin_inset Flex Code
18585 status collapsed
18586
18587 \begin_layout Plain Layout
18588 [[
18589 \end_layout
18590
18591 \end_inset
18592
18593 」と「
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 ]]
18599 \end_layout
18600
18601 \end_inset
18602
18603 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18604 \end_layout
18605
18606 \begin_layout Standard
18607 もう一つ、定義中で使用することのできる文法として、
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612 {!<i>!}
18613 \end_layout
18614
18615 \end_inset
18616
18617 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18618 グを出力させたくはありませんから、HTMLタグは「
18619 \begin_inset Flex Code
18620 status collapsed
18621
18622 \begin_layout Plain Layout
18623 {!
18624 \end_layout
18625
18626 \end_inset
18627
18628 」と「
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 !}
18634 \end_layout
18635
18636 \end_inset
18637
18638 」でくるんでやらなくてはならないのです。
18639 \end_layout
18640
18641 \begin_layout Standard
18642 \begin_inset Flex Code
18643 status collapsed
18644
18645 \begin_layout Plain Layout
18646 CiteFormat
18647 \end_layout
18648
18649 \end_inset
18650
18651 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18652 \end_layout
18653
18654 \begin_layout LyX-Code
18655 !quotetitle 
18656 \begin_inset Quotes eld
18657 \end_inset
18658
18659 %title%
18660 \begin_inset Quotes erd
18661 \end_inset
18662
18663
18664 \end_layout
18665
18666 \begin_layout Standard
18667 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18668 \begin_inset Flex Code
18669 status collapsed
18670
18671 \begin_layout Plain Layout
18672 %!quotetitle%
18673 \end_layout
18674
18675 \end_inset
18676
18677 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18678 は、
18679 \begin_inset Flex Code
18680 status collapsed
18681
18682 \begin_layout Plain Layout
18683 %!quotetitle%
18684 \end_layout
18685
18686 \end_inset
18687
18688 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18689 \end_layout
18690
18691 \begin_layout LyX-Code
18692 !funfun %funfun%
18693 \end_layout
18694
18695 \begin_layout Standard
18696 のようなことはしないでください。\SpecialChar LyX
18697 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18698 \end_layout
18699
18700 \begin_layout Standard
18701 特殊な定義の二つめは、
18702 \end_layout
18703
18704 \begin_layout LyX-Code
18705 _pptext pp.
18706 \end_layout
18707
18708 \begin_layout Standard
18709 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18710 \begin_inset Flex Code
18711 status collapsed
18712
18713 \begin_layout Plain Layout
18714 %_pptext%
18715 \end_layout
18716
18717 \end_inset
18718
18719 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18720 \begin_inset Flex Code
18721 status collapsed
18722
18723 \begin_layout Plain Layout
18724 stdciteformats.inc
18725 \end_layout
18726
18727 \end_inset
18728
18729 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18730 \end_layout
18731
18732 \begin_layout Standard
18733 以下は、これらの機能を全て使った例です。
18734 \begin_inset VSpace defskip
18735 \end_inset
18736
18737
18738 \end_layout
18739
18740 \begin_layout Standard
18741 \noindent
18742
18743 \family typewriter
18744 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18745 \end_layout
18746
18747 \begin_layout Standard
18748 \begin_inset VSpace defskip
18749 \end_inset
18750
18751 これは、
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 author
18757 \end_layout
18758
18759 \end_inset
18760
18761 キーが定義されているならば、著者とコンマを出力し、
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 author
18767 \end_layout
18768
18769 \end_inset
18770
18771 キーが定義されておらず、
18772 \begin_inset Flex Code
18773 status collapsed
18774
18775 \begin_layout Plain Layout
18776 editor
18777 \end_layout
18778
18779 \end_inset
18780
18781 キーが定義されているならば、編集者名の後に
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 _edtext
18787 \end_layout
18788
18789 \end_inset
18790
18791 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18792 \begin_inset Flex Code
18793 status collapsed
18794
18795 \begin_layout Plain Layout
18796 stdciteformats.inc
18797 \end_layout
18798
18799 \end_inset
18800
18801 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18802 \end_layout
18803
18804 \begin_layout Section
18805 \begin_inset CommandInset label
18806 LatexCommand label
18807 name "sec:XHTML出力のタグ"
18808
18809 \end_inset
18810
18811 XHTML出力のタグ
18812 \end_layout
18813
18814 \begin_layout Standard
18815 \SpecialChar LaTeX
18816 やDocBookと同様、\SpecialChar LyX
18817 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18818 は適切な既定値を提供し、前述したように、他のレイアウト
18819 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18820 は、章様式の
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 Font
18826 \end_layout
18827
18828 \end_inset
18829
18830 宣言で提供されている情報を利用しようと試みます。
18831 \end_layout
18832
18833 \begin_layout Standard
18834 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18835 、これが必要になる場合もあるので、\SpecialChar LyX
18836 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18837 \end_layout
18838
18839 \begin_layout Standard
18840 様式宣言や差込枠宣言の外で使用することができるタグに、
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 HTMLPreamble
18846 \end_layout
18847
18848 \end_inset
18849
18850
18851 \begin_inset Flex Code
18852 status collapsed
18853
18854 \begin_layout Plain Layout
18855 AddToHTMLPreamble
18856 \end_layout
18857
18858 \end_inset
18859
18860 の2つがあることに注意してください。これらの詳細については、
18861 \begin_inset CommandInset ref
18862 LatexCommand ref
18863 reference "subsec:汎用テキストクラスパラメータ"
18864
18865 \end_inset
18866
18867 をご覧ください。
18868 \end_layout
18869
18870 \begin_layout Subsection
18871 \begin_inset CommandInset label
18872 LatexCommand label
18873 name "subsec:段落様式-XHTML"
18874
18875 \end_inset
18876
18877 段落様式
18878 \end_layout
18879
18880 \begin_layout Standard
18881 \SpecialChar LyX
18882 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 \SpecialChar LaTeX
18888 Type
18889 \end_layout
18890
18891 \end_inset
18892
18893 タグの内容によって決定されます。
18894 \end_layout
18895
18896 \begin_layout Standard
18897 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18898 \end_layout
18899
18900 \begin_layout LyX-Code
18901 <tag attr=
18902 \begin_inset Quotes erd
18903 \end_inset
18904
18905 value
18906 \begin_inset Quotes erd
18907 \end_inset
18908
18909 >
18910 \end_layout
18911
18912 \begin_layout LyX-Code
18913 <labeltag attr=
18914 \begin_inset Quotes erd
18915 \end_inset
18916
18917 value
18918 \begin_inset Quotes erd
18919 \end_inset
18920
18921 >ラベル</labeltag>
18922 \end_layout
18923
18924 \begin_layout LyX-Code
18925 段落の内容
18926 \end_layout
18927
18928 \begin_layout LyX-Code
18929 </tag>
18930 \end_layout
18931
18932 \begin_layout Standard
18933 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18934 \end_layout
18935
18936 \begin_layout Standard
18937 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18938 \end_layout
18939
18940 \begin_layout LyX-Code
18941 <tag attr=
18942 \begin_inset Quotes erd
18943 \end_inset
18944
18945 value
18946 \begin_inset Quotes erd
18947 \end_inset
18948
18949 >
18950 \end_layout
18951
18952 \begin_layout LyX-Code
18953 <itemtag attr=
18954 \begin_inset Quotes erd
18955 \end_inset
18956
18957 value
18958 \begin_inset Quotes erd
18959 \end_inset
18960
18961 ><labeltag attr=
18962 \begin_inset Quotes erd
18963 \end_inset
18964
18965 value
18966 \begin_inset Quotes erd
18967 \end_inset
18968
18969 >環境ラベル</labeltag>最初の段落。
18970 \end_layout
18971
18972 \begin_layout LyX-Code
18973 </itemtag>
18974 \end_layout
18975
18976 \begin_layout LyX-Code
18977 <itemtag>二つめの段落。</itemtag>
18978 \end_layout
18979
18980 \begin_layout LyX-Code
18981 </tag>
18982 \end_layout
18983
18984 \begin_layout Standard
18985 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18986 \end_layout
18987
18988 \begin_layout Standard
18989 リストに関しては、次のような形になります。
18990 \end_layout
18991
18992 \begin_layout LyX-Code
18993 <tag attr=
18994 \begin_inset Quotes erd
18995 \end_inset
18996
18997 value
18998 \begin_inset Quotes erd
18999 \end_inset
19000
19001 >
19002 \end_layout
19003
19004 \begin_layout LyX-Code
19005 <itemtag attr=
19006 \begin_inset Quotes erd
19007 \end_inset
19008
19009 value
19010 \begin_inset Quotes erd
19011 \end_inset
19012
19013 ><labeltag attr=
19014 \begin_inset Quotes erd
19015 \end_inset
19016
19017 value
19018 \begin_inset Quotes erd
19019 \end_inset
19020
19021 >リストのラベル</labeltag>最初の項目。</itemtag>
19022 \end_layout
19023
19024 \begin_layout LyX-Code
19025 <itemtag attr=
19026 \begin_inset Quotes erd
19027 \end_inset
19028
19029 value
19030 \begin_inset Quotes erd
19031 \end_inset
19032
19033 ><labeltag attr=
19034 \begin_inset Quotes erd
19035 \end_inset
19036
19037 value
19038 \begin_inset Quotes erd
19039 \end_inset
19040
19041 >リストのラベル</labeltag>二つめの項目。</itemtag>
19042 \end_layout
19043
19044 \begin_layout LyX-Code
19045 </tag>
19046 \end_layout
19047
19048 \begin_layout LyX-Code
19049
19050 \end_layout
19051
19052 \begin_layout LyX-Code
19053 <tag attr=
19054 \begin_inset Quotes erd
19055 \end_inset
19056
19057 value
19058 \begin_inset Quotes erd
19059 \end_inset
19060
19061 >
19062 \end_layout
19063
19064 \begin_layout LyX-Code
19065 <labeltag attr=
19066 \begin_inset Quotes erd
19067 \end_inset
19068
19069 value
19070 \begin_inset Quotes erd
19071 \end_inset
19072
19073 >リストのラベル</labeltag><itemtag attr=
19074 \begin_inset Quotes erd
19075 \end_inset
19076
19077 value
19078 \begin_inset Quotes erd
19079 \end_inset
19080
19081 >最初の項目。</itemtag>
19082 \end_layout
19083
19084 \begin_layout LyX-Code
19085 <labeltag attr=
19086 \begin_inset Quotes erd
19087 \end_inset
19088
19089 value
19090 \begin_inset Quotes erd
19091 \end_inset
19092
19093 >リストのラベル</labeltag><itemtag attr=
19094 \begin_inset Quotes erd
19095 \end_inset
19096
19097 value
19098 \begin_inset Quotes erd
19099 \end_inset
19100
19101 >二つめの項目</itemtag>
19102 \end_layout
19103
19104 \begin_layout LyX-Code
19105 </tag>
19106 \end_layout
19107
19108 \begin_layout Standard
19109 ここで
19110 \begin_inset Flex Code
19111 status collapsed
19112
19113 \begin_layout Plain Layout
19114 labeltag
19115 \end_layout
19116
19117 \end_inset
19118
19119
19120 \begin_inset Flex Code
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 itemtag
19125 \end_layout
19126
19127 \end_inset
19128
19129 の順序が違っていることに注意してください。どちらの順序になるかは、
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 HTMLLabelFirst
19135 \end_layout
19136
19137 \end_inset
19138
19139 の設定に依存します。もし
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 HTMLLabelFirst
19145 \end_layout
19146
19147 \end_inset
19148
19149 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
19150 \end_layout
19151
19152 \begin_layout Standard
19153 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
19154 は適切な既定値を生成
19155 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
19156 でここにあるものと考えてください。
19157 \end_layout
19158
19159 \begin_layout Description
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 HTMLAttr
19165 \end_layout
19166
19167 \end_inset
19168
19169  [
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 文字列
19175 \end_layout
19176
19177 \end_inset
19178
19179 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19180 \begin_inset Flex Code
19181 status collapsed
19182
19183 \begin_layout Plain Layout
19184 class=`mydiv'
19185 \end_layout
19186
19187 \end_inset
19188
19189 」のようなものです。既定においては、\SpecialChar LyX
19190 は「
19191 \begin_inset Flex Code
19192 status collapsed
19193
19194 \begin_layout Plain Layout
19195 class=`レイアウト名'
19196 \end_layout
19197
19198 \end_inset
19199
19200 」と出力します。ここで
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 レイアウト名
19206 \end_layout
19207
19208 \end_inset
19209
19210 は、レイアウトの\SpecialChar LyX
19211 名であり、chapterのように小文字で記述します。
19212 \end_layout
19213
19214 \begin_layout Description
19215 \begin_inset Flex Code
19216 status collapsed
19217
19218 \begin_layout Plain Layout
19219 HTMLForceCSS
19220 \end_layout
19221
19222 \end_inset
19223
19224  [
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229
19230 \emph on
19231 0
19232 \emph default
19233 ,1
19234 \end_layout
19235
19236 \end_inset
19237
19238 ] 
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 HTMLStyle
19244 \end_layout
19245
19246 \end_inset
19247
19248 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19249 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 1
19255 \end_layout
19256
19257 \end_inset
19258
19259 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 0
19265 \end_layout
19266
19267 \end_inset
19268
19269 です。
19270 \end_layout
19271
19272 \begin_layout Description
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 HTMLItem
19278 \end_layout
19279
19280 \end_inset
19281
19282  [
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 文字列
19288 \end_layout
19289
19290 \end_inset
19291
19292 ] 環境の段落に使用されるタグ。上記各例の
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 itemtag
19298 \end_layout
19299
19300 \end_inset
19301
19302 を置き換えます。既定値は
19303 \begin_inset Flex Code
19304 status collapsed
19305
19306 \begin_layout Plain Layout
19307 div
19308 \end_layout
19309
19310 \end_inset
19311
19312 です。
19313 \end_layout
19314
19315 \begin_layout Description
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 HTMLItemAttr
19321 \end_layout
19322
19323 \end_inset
19324
19325  [
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 文字列
19331 \end_layout
19332
19333 \end_inset
19334
19335 ] itemタグの属性。既定値は
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 class=`レイアウト名_item'
19341 \end_layout
19342
19343 \end_inset
19344
19345 です。ここには、様式情報は含まれては
19346 \emph on
19347 なりません
19348 \emph default
19349 。その目的のためには、
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 HTMLStyle
19355 \end_layout
19356
19357 \end_inset
19358
19359 を使用してください。
19360 \end_layout
19361
19362 \begin_layout Description
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 HTMLLabel
19368 \end_layout
19369
19370 \end_inset
19371
19372  [
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 文字列
19378 \end_layout
19379
19380 \end_inset
19381
19382 ] 段落と項目ラベルに使用されるタグ。上記各例の
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 labeltag
19388 \end_layout
19389
19390 \end_inset
19391
19392 を置き換えます。
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 LabelType
19398 \end_layout
19399
19400 \end_inset
19401
19402
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 Top_Environment
19408 \end_layout
19409
19410 \end_inset
19411
19412
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 Centered_Top_Environment
19418 \end_layout
19419
19420 \end_inset
19421
19422 の時は、既定値は
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 div
19428 \end_layout
19429
19430 \end_inset
19431
19432 ですが、それ以外の時の既定値は
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 span
19438 \end_layout
19439
19440 \end_inset
19441
19442 です。
19443 \end_layout
19444
19445 \begin_layout Description
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450 HTMLLabelAttr
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 \end_layout
19462
19463 \end_inset
19464
19465 ] labelタグの属性。既定値は
19466 \begin_inset Flex Code
19467 status collapsed
19468
19469 \begin_layout Plain Layout
19470 class=`レイアウト名_label'
19471 \end_layout
19472
19473 \end_inset
19474
19475 です。ここには、様式情報は含まれては
19476 \emph on
19477 なりません
19478 \emph default
19479 。その目的のためには、
19480 \begin_inset Flex Code
19481 status collapsed
19482
19483 \begin_layout Plain Layout
19484 HTMLStyle
19485 \end_layout
19486
19487 \end_inset
19488
19489 を使用してください。
19490 \end_layout
19491
19492 \begin_layout Description
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 HTMLLabelFirst
19498 \end_layout
19499
19500 \end_inset
19501
19502  [
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507
19508 \emph on
19509 0
19510 \emph default
19511 ,1
19512 \end_layout
19513
19514 \end_inset
19515
19516 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19517 tion環境の中で、
19518 \begin_inset Flex Code
19519 status collapsed
19520
19521 \begin_layout Plain Layout
19522 `<dt>\SpecialChar ldots
19523 </dt><dd>\SpecialChar ldots
19524 </dd>
19525 \end_layout
19526
19527 \end_inset
19528
19529 という形を得るために使用されます。既定値は
19530 \begin_inset Flex Code
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534 0
19535 \end_layout
19536
19537 \end_inset
19538
19539 で、labelタグはitemタグの中に出力されます。
19540 \end_layout
19541
19542 \begin_layout Description
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 HTMLPreamble
19548 \end_layout
19549
19550 \end_inset
19551
19552  この様式が使用されたときに、
19553 \begin_inset Flex Code
19554 status collapsed
19555
19556 \begin_layout Plain Layout
19557 <head>
19558 \end_layout
19559
19560 \end_inset
19561
19562 セクションに出力される情報。これは、たとえば、
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 onclick
19568 \end_layout
19569
19570 \end_inset
19571
19572 ハンドラを定義するために
19573 \begin_inset Flex Code
19574 status collapsed
19575
19576 \begin_layout Plain Layout
19577 <script>
19578 \end_layout
19579
19580 \end_inset
19581
19582 ブロックをインクルードするのに使用することができます。
19583 \end_layout
19584
19585 \begin_layout Description
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 HTMLStyle
19591 \end_layout
19592
19593 \end_inset
19594
19595   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 <style>
19601 \end_layout
19602
19603 \end_inset
19604
19605 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 EndHTMLStyle
19611 \end_layout
19612
19613 \end_inset
19614
19615 で閉じなくてはなりません。
19616 \end_layout
19617
19618 \begin_layout Description
19619 \begin_inset Flex Code
19620 status collapsed
19621
19622 \begin_layout Plain Layout
19623 HTMLTag
19624 \end_layout
19625
19626 \end_inset
19627
19628  [
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 文字列
19634 \end_layout
19635
19636 \end_inset
19637
19638 ] 主幹ラベルに使用されるタグ。上記各例の
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 tag
19644 \end_layout
19645
19646 \end_inset
19647
19648 を置き換えます。既定値は
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 div
19654 \end_layout
19655
19656 \end_inset
19657
19658 です。
19659 \end_layout
19660
19661 \begin_layout Description
19662 \begin_inset Flex Code
19663 status collapsed
19664
19665 \begin_layout Plain Layout
19666 HTMLTitle
19667 \end_layout
19668
19669 \end_inset
19670
19671  [
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676
19677 \emph on
19678 0
19679 \emph default
19680 ,1
19681 \end_layout
19682
19683 \end_inset
19684
19685 ] この様式が、XHTMLファイルの
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 <title>
19691 \end_layout
19692
19693 \end_inset
19694
19695 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700 stdtitle.inc
19701 \end_layout
19702
19703 \end_inset
19704
19705 ファイルでは、
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 title
19711 \end_layout
19712
19713 \end_inset
19714
19715 環境のこの項目を真に設定しています。
19716 \end_layout
19717
19718 \begin_layout Subsection
19719 差込枠レイアウトXHTML
19720 \end_layout
19721
19722 \begin_layout Standard
19723 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19724 \begin_inset Foot
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19729 ん。
19730 \end_layout
19731
19732 \end_inset
19733
19734 。ここでも、\SpecialChar LyX
19735 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19736 \end_layout
19737
19738 \begin_layout Standard
19739 \SpecialChar LyX
19740 が差込枠用に出力するXHTMLは、以下の形を取ります。
19741 \end_layout
19742
19743 \begin_layout LyX-Code
19744 <tag attr=
19745 \begin_inset Quotes erd
19746 \end_inset
19747
19748 value
19749 \begin_inset Quotes erd
19750 \end_inset
19751
19752 >
19753 \end_layout
19754
19755 \begin_layout LyX-Code
19756 <labeltag>ラベル</labeltag>
19757 \end_layout
19758
19759 \begin_layout LyX-Code
19760 <innertag attr=
19761 \begin_inset Quotes erd
19762 \end_inset
19763
19764 value
19765 \begin_inset Quotes erd
19766 \end_inset
19767
19768 >差込枠の内容。</innertag>
19769 \end_layout
19770
19771 \begin_layout LyX-Code
19772 </tag>
19773 \end_layout
19774
19775 \begin_layout Standard
19776 差込枠が多段落を許可している—つまり
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 MultiPar
19782 \end_layout
19783
19784 \end_inset
19785
19786 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19787 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 span
19793 \end_layout
19794
19795 \end_inset
19796
19797 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
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=`myinset' 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=`差込枠名'
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 は、差込枠の\SpecialChar LyX
19854 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19855 \end_layout
19856
19857 \begin_layout Description
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 HTMLForceCSS
19863 \end_layout
19864
19865 \end_inset
19866
19867  [
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872
19873 \emph on
19874 0
19875 \emph default
19876 ,1
19877 \end_layout
19878
19879 \end_inset
19880
19881 ] 
19882 \begin_inset Flex Code
19883 status collapsed
19884
19885 \begin_layout Plain Layout
19886 HTMLStyle
19887 \end_layout
19888
19889 \end_inset
19890
19891 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19892 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897 1
19898 \end_layout
19899
19900 \end_inset
19901
19902 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19903 \begin_inset Flex Code
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907 0
19908 \end_layout
19909
19910 \end_inset
19911
19912 です。
19913 \end_layout
19914
19915 \begin_layout Description
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920 HTMLInnerAttr
19921 \end_layout
19922
19923 \end_inset
19924
19925  [
19926 \begin_inset Flex Code
19927 status collapsed
19928
19929 \begin_layout Plain Layout
19930 文字列
19931 \end_layout
19932
19933 \end_inset
19934
19935 ] innerタグの属性。既定値は
19936 \begin_inset Flex Code
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940 class=`差込枠名_inner'
19941 \end_layout
19942
19943 \end_inset
19944
19945 です。
19946 \end_layout
19947
19948 \begin_layout Description
19949 \begin_inset Flex Code
19950 status collapsed
19951
19952 \begin_layout Plain Layout
19953 HTMLInnerTag
19954 \end_layout
19955
19956 \end_inset
19957
19958  [
19959 \begin_inset Flex Code
19960 status collapsed
19961
19962 \begin_layout Plain Layout
19963 文字列
19964 \end_layout
19965
19966 \end_inset
19967
19968 ] innerタグです。上記各例の
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 innertag
19974 \end_layout
19975
19976 \end_inset
19977
19978 を置き換えます。既定値はなしです。
19979 \end_layout
19980
19981 \begin_layout Description
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 HTMLIsBlock
19987 \end_layout
19988
19989 \end_inset
19990
19991  [
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 0,
19997 \emph on
19998 1
19999 \end_layout
20000
20001 \end_inset
20002
20003 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
20004 \end_layout
20005
20006 \begin_layout Description
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 HTMLLabel
20012 \end_layout
20013
20014 \end_inset
20015
20016  [
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 文字列
20022 \end_layout
20023
20024 \end_inset
20025
20026 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031
20032 \backslash
20033 arabic{footnote}
20034 \end_layout
20035
20036 \end_inset
20037
20038 など。これは非必須であり、既定値はありません。
20039 \end_layout
20040
20041 \begin_layout Description
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046 HTMLPreamble
20047 \end_layout
20048
20049 \end_inset
20050
20051  この様式が使用されたときに、
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 <head>
20057 \end_layout
20058
20059 \end_inset
20060
20061 セクションに出力される情報。これは、たとえば、
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 onclick
20067 \end_layout
20068
20069 \end_inset
20070
20071 ハンドラを定義するために
20072 \begin_inset Flex Code
20073 status collapsed
20074
20075 \begin_layout Plain Layout
20076 <script>
20077 \end_layout
20078
20079 \end_inset
20080
20081 ブロックをインクルードするのに使用することができます。
20082 \end_layout
20083
20084 \begin_layout Description
20085 \begin_inset Flex Code
20086 status collapsed
20087
20088 \begin_layout Plain Layout
20089 HTMLStyle
20090 \end_layout
20091
20092 \end_inset
20093
20094   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099 <style>
20100 \end_layout
20101
20102 \end_inset
20103
20104 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20105 \end_layout
20106
20107 \begin_layout Description
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 HTMLTag
20113 \end_layout
20114
20115 \end_inset
20116
20117  [
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 文字列
20123 \end_layout
20124
20125 \end_inset
20126
20127 ] 主幹ラベルに使用されるタグ。上記各例の
20128 \begin_inset Flex Code
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132 tag
20133 \end_layout
20134
20135 \end_inset
20136
20137 を置き換えます。既定値は
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142 MultiPar
20143 \end_layout
20144
20145 \end_inset
20146
20147 の設定に依存し、
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152 MultiPar
20153 \end_layout
20154
20155 \end_inset
20156
20157 が真ならば
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 div
20163 \end_layout
20164
20165 \end_inset
20166
20167 、偽ならば
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 span
20173 \end_layout
20174
20175 \end_inset
20176
20177 です。
20178 \end_layout
20179
20180 \begin_layout Subsection
20181 フロートXHTML
20182 \end_layout
20183
20184 \begin_layout Standard
20185 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
20186 \end_layout
20187
20188 \begin_layout LyX-Code
20189 <tag attr=
20190 \begin_inset Quotes erd
20191 \end_inset
20192
20193 value
20194 \begin_inset Quotes erd
20195 \end_inset
20196
20197 >
20198 \end_layout
20199
20200 \begin_layout LyX-Code
20201 フロートの内容。
20202 \end_layout
20203
20204 \begin_layout LyX-Code
20205 </tag>
20206 \end_layout
20207
20208 \begin_layout Standard
20209 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
20210 きます。
20211 \end_layout
20212
20213 \begin_layout Description
20214 \begin_inset Flex Code
20215 status collapsed
20216
20217 \begin_layout Plain Layout
20218 HTMLAttr
20219 \end_layout
20220
20221 \end_inset
20222
20223  [
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 文字列
20229 \end_layout
20230
20231 \end_inset
20232
20233 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 class=`myfloat' onclick=`\SpecialChar ldots
20239 '
20240 \end_layout
20241
20242 \end_inset
20243
20244 」のようなものです。既定においては、\SpecialChar LyX
20245 は「
20246 \begin_inset Flex Code
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250 class=`float フロート-フロート型'
20251 \end_layout
20252
20253 \end_inset
20254
20255 」と出力します。ここで
20256 \begin_inset Flex Code
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 フロート型
20261 \end_layout
20262
20263 \end_inset
20264
20265 は、フロート宣言で定義された(
20266 \begin_inset CommandInset ref
20267 LatexCommand ref
20268 reference "subsec:フロート"
20269
20270 \end_inset
20271
20272 参照)、この型のフロートの\SpecialChar LyX
20273 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
20274 \end_layout
20275
20276 \begin_layout Description
20277 \begin_inset Flex Code
20278 status collapsed
20279
20280 \begin_layout Plain Layout
20281 HTMLStyle
20282 \end_layout
20283
20284 \end_inset
20285
20286   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20287 \begin_inset Flex Code
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291 <style>
20292 \end_layout
20293
20294 \end_inset
20295
20296 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20297 \end_layout
20298
20299 \begin_layout Description
20300 \begin_inset Flex Code
20301 status collapsed
20302
20303 \begin_layout Plain Layout
20304 HTMLTag
20305 \end_layout
20306
20307 \end_inset
20308
20309  [
20310 \begin_inset Flex Code
20311 status collapsed
20312
20313 \begin_layout Plain Layout
20314 文字列
20315 \end_layout
20316
20317 \end_inset
20318
20319 ] このフロートに使用されるタグ。上記各例の
20320 \begin_inset Flex Code
20321 status collapsed
20322
20323 \begin_layout Plain Layout
20324 tag
20325 \end_layout
20326
20327 \end_inset
20328
20329 を置き換えます。既定値は
20330 \begin_inset Flex Code
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334 div
20335 \end_layout
20336
20337 \end_inset
20338
20339 であり、ほとんどの場合変更する必要はありません。
20340 \end_layout
20341
20342 \begin_layout Subsection
20343 書誌情報の整形
20344 \end_layout
20345
20346 \begin_layout Standard
20347 書誌情報は、
20348 \begin_inset Flex Code
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 CiteFormat
20353 \end_layout
20354
20355 \end_inset
20356
20357 ブロックを使用して整形することができます。詳細については、
20358 \begin_inset CommandInset ref
20359 LatexCommand ref
20360 reference "subsec:引用書式指定"
20361
20362 \end_inset
20363
20364 を参照してください。
20365 \end_layout
20366
20367 \begin_layout Subsection
20368 \SpecialChar LyX
20369 が生成したCSS
20370 \end_layout
20371
20372 \begin_layout Standard
20373 \SpecialChar LyX
20374 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20375
20376 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20377 \end_layout
20378
20379 \begin_layout Standard
20380 \SpecialChar LyX
20381 は、現在のところ、
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 Font
20387 \end_layout
20388
20389 \end_inset
20390
20391 宣言で指定されている
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 Family
20397 \end_layout
20398
20399 \end_inset
20400
20401
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 Series
20407 \end_layout
20408
20409 \end_inset
20410
20411
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 Shape
20417 \end_layout
20418
20419 \end_inset
20420
20421
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 Size
20427 \end_layout
20428
20429 \end_inset
20430
20431 を利用して、フォント情報についてのみCSSを自動生成します(
20432 \begin_inset CommandInset ref
20433 LatexCommand ref
20434 reference "subsec:フォント指定"
20435
20436 \end_inset
20437
20438 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20439 \begin_inset Flex Code
20440 status collapsed
20441
20442 \begin_layout Plain Layout
20443 Family Sans
20444 \end_layout
20445
20446 \end_inset
20447
20448 」は「
20449 \begin_inset Flex Code
20450 status collapsed
20451
20452 \begin_layout Plain Layout
20453 font-family: sans-serif
20454 \end_layout
20455
20456 \end_inset
20457
20458 」になります。\SpecialChar LyX
20459 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20460 \begin_inset Flex URL
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464
20465 src/FontInfo.cpp
20466 \end_layout
20467
20468 \end_inset
20469
20470
20471 \begin_inset Flex Code
20472 status collapsed
20473
20474 \begin_layout Plain Layout
20475 getSizeCSS()
20476 \end_layout
20477
20478 \end_inset
20479
20480 関数をご覧ください。
20481 \end_layout
20482
20483 \begin_layout Chapter
20484 外部素材を取り込む
20485 \begin_inset CommandInset label
20486 LatexCommand label
20487 name "chap:外部素材を取り込む"
20488
20489 \end_inset
20490
20491
20492 \end_layout
20493
20494 \begin_layout Standard
20495 \begin_inset Box Shadowbox
20496 position "t"
20497 hor_pos "c"
20498 has_inner_box 1
20499 inner_pos "t"
20500 use_parbox 0
20501 use_makebox 0
20502 width "100col%"
20503 special "none"
20504 height "1in"
20505 height_special "totalheight"
20506 thickness "0.4pt"
20507 separation "3pt"
20508 shadowsize "4pt"
20509 framecolor "black"
20510 backgroundcolor "none"
20511 status open
20512
20513 \begin_layout Plain Layout
20514 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20515 \end_layout
20516
20517 \end_inset
20518
20519
20520 \end_layout
20521
20522 \begin_layout Standard
20523 \SpecialChar LyX
20524 外部のソースから素材を使用する方法は、取扱説明書『
20525 \emph on
20526 埋込オブジェクト篇
20527 \emph default
20528 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20529 \end_layout
20530
20531 \begin_layout Section
20532 どのように機能するのか
20533 \end_layout
20534
20535 \begin_layout Standard
20536 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20537 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20538 は、Xfigの図や、様々
20539 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20540 \begin_inset Flex MenuItem
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 挿入\SpecialChar menuseparator
20545 ファイル\SpecialChar menuseparator
20546 外部素材
20547 \end_layout
20548
20549 \end_inset
20550
20551 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20552 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20553 の後の版に取り込むことができるようにしてくださることを希望します。
20554 \end_layout
20555
20556 \begin_layout Standard
20557 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20558 いることです。たとえば、
20559 \begin_inset Flex Code
20560 status collapsed
20561
20562 \begin_layout Plain Layout
20563 Xfig
20564 \end_layout
20565
20566 \end_inset
20567
20568 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 .fig
20574 \end_layout
20575
20576 \end_inset
20577
20578 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 fig
20584 \end_layout
20585
20586 \end_inset
20587
20588 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20589 ファイルにそのままインクルードできるように、
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 transfig
20595 \end_layout
20596
20597 \end_inset
20598
20599 を呼び出してPostScriptファイルを生成します。この場合には、
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 .fig
20605 \end_layout
20606
20607 \end_inset
20608
20609 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20610 \end_layout
20611
20612 \begin_layout Standard
20613 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20614 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20615 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20616 の外部素材マネジメントは
20617 、\SpecialChar LyX
20618 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20619 \end_layout
20620
20621 \begin_layout Standard
20622 \SpecialChar LyX
20623 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20624 の場合には、\SpecialChar LyX
20625 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20626 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20627 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20628 できるようになるのです。
20629 \end_layout
20630
20631 \begin_layout Section
20632 外用ひな型設定ファイル
20633 \end_layout
20634
20635 \begin_layout Standard
20636 \SpecialChar LyX
20637 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20638 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20639 \begin_inset CommandInset ref
20640 LatexCommand ref
20641 reference "sec:セキュリティに関する論点"
20642
20643 \end_inset
20644
20645 のセキュリティに関する議論を読んでおいてください。
20646 \end_layout
20647
20648 \begin_layout Standard
20649 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20650 \end_layout
20651
20652 \begin_layout Standard
20653 外用ひな型は、
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 \SpecialChar LyX
20659 Dir/lib/external_templates
20660 \end_layout
20661
20662 \end_inset
20663
20664 ファイルで定義されています。自分用の版を
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 UserDir/external_templates
20670 \end_layout
20671
20672 \end_inset
20673
20674 に置くこともできます。
20675 \end_layout
20676
20677 \begin_layout Standard
20678 典型的なひな型は以下のようになります。
20679 \end_layout
20680
20681 \begin_layout LyX-Code
20682 Template XFig
20683 \end_layout
20684
20685 \begin_layout LyX-Code
20686 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20687 \end_layout
20688
20689 \begin_layout LyX-Code
20690 HelpText
20691 \end_layout
20692
20693 \begin_layout LyX-Code
20694 An XFig figure.
20695 \end_layout
20696
20697 \begin_layout LyX-Code
20698 HelpTextEnd
20699 \end_layout
20700
20701 \begin_layout LyX-Code
20702 InputFormat fig
20703 \end_layout
20704
20705 \begin_layout LyX-Code
20706 FileFilter "*.fig"
20707 \end_layout
20708
20709 \begin_layout LyX-Code
20710 AutomaticProduction true
20711 \end_layout
20712
20713 \begin_layout LyX-Code
20714 Transform Rotate
20715 \end_layout
20716
20717 \begin_layout LyX-Code
20718 Transform Resize
20719 \end_layout
20720
20721 \begin_layout LyX-Code
20722 Format LaT
20723 \begin_inset ERT
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727
20728 {}
20729 \end_layout
20730
20731 \end_inset
20732
20733 eX
20734 \end_layout
20735
20736 \begin_layout LyX-Code
20737 TransformCommand Rotate RotationLatexCommand
20738 \end_layout
20739
20740 \begin_layout LyX-Code
20741 TransformCommand Resize ResizeLatexCommand
20742 \end_layout
20743
20744 \begin_layout LyX-Code
20745 Product "$$RotateFront$$ResizeFront
20746 \end_layout
20747
20748 \begin_layout LyX-Code
20749          
20750 \backslash
20751
20752 \backslash
20753 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20754 \end_layout
20755
20756 \begin_layout LyX-Code
20757          $$ResizeBack$$RotateBack"
20758 \end_layout
20759
20760 \begin_layout LyX-Code
20761 UpdateFormat pstex
20762 \end_layout
20763
20764 \begin_layout LyX-Code
20765 UpdateResult "$$AbsPath$$Basename.pstex_t"
20766 \end_layout
20767
20768 \begin_layout LyX-Code
20769 Requirement "graphicx"
20770 \end_layout
20771
20772 \begin_layout LyX-Code
20773 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20774 \end_layout
20775
20776 \begin_layout LyX-Code
20777 ReferencedFile latex "$$AbsPath$$Basename.eps"
20778 \end_layout
20779
20780 \begin_layout LyX-Code
20781 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20782 \end_layout
20783
20784 \begin_layout LyX-Code
20785 FormatEnd
20786 \end_layout
20787
20788 \begin_layout LyX-Code
20789 Format PDFLaT
20790 \begin_inset ERT
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794
20795 {}
20796 \end_layout
20797
20798 \end_inset
20799
20800 eX
20801 \end_layout
20802
20803 \begin_layout LyX-Code
20804 TransformCommand Rotate RotationLatexCommand
20805 \end_layout
20806
20807 \begin_layout LyX-Code
20808 TransformCommand Resize ResizeLatexCommand
20809 \end_layout
20810
20811 \begin_layout LyX-Code
20812 Product "$$RotateFront$$ResizeFront
20813 \end_layout
20814
20815 \begin_layout LyX-Code
20816          
20817 \backslash
20818
20819 \backslash
20820 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20821 \end_layout
20822
20823 \begin_layout LyX-Code
20824          $$ResizeBack$$RotateBack"
20825 \end_layout
20826
20827 \begin_layout LyX-Code
20828 UpdateFormat pdftex
20829 \end_layout
20830
20831 \begin_layout LyX-Code
20832 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20833 \end_layout
20834
20835 \begin_layout LyX-Code
20836 Requirement "graphicx"
20837 \end_layout
20838
20839 \begin_layout LyX-Code
20840 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20841 \end_layout
20842
20843 \begin_layout LyX-Code
20844 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20845 \end_layout
20846
20847 \begin_layout LyX-Code
20848 FormatEnd
20849 \end_layout
20850
20851 \begin_layout LyX-Code
20852 Format Ascii
20853 \end_layout
20854
20855 \begin_layout LyX-Code
20856 Product "$$Contents(
20857 \backslash
20858 "$$AbsPath$$Basename.asc
20859 \backslash
20860 ")"
20861 \end_layout
20862
20863 \begin_layout LyX-Code
20864 UpdateFormat asciixfig
20865 \end_layout
20866
20867 \begin_layout LyX-Code
20868 UpdateResult "$$AbsPath$$Basename.asc"
20869 \end_layout
20870
20871 \begin_layout LyX-Code
20872 FormatEnd
20873 \end_layout
20874
20875 \begin_layout LyX-Code
20876 Format DocBook
20877 \end_layout
20878
20879 \begin_layout LyX-Code
20880 Product "<graphic fileref=
20881 \backslash
20882 "$$AbsOrRelPathMaster$$Basename.eps
20883 \backslash
20884 ">
20885 \end_layout
20886
20887 \begin_layout LyX-Code
20888          </graphic>"
20889 \end_layout
20890
20891 \begin_layout LyX-Code
20892 UpdateFormat eps
20893 \end_layout
20894
20895 \begin_layout LyX-Code
20896 UpdateResult "$$AbsPath$$Basename.eps"
20897 \end_layout
20898
20899 \begin_layout LyX-Code
20900 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20901 \end_layout
20902
20903 \begin_layout LyX-Code
20904 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20905 \end_layout
20906
20907 \begin_layout LyX-Code
20908 FormatEnd
20909 \end_layout
20910
20911 \begin_layout LyX-Code
20912 Product "[XFig: $$FName]"
20913 \end_layout
20914
20915 \begin_layout LyX-Code
20916 FormatEnd
20917 \end_layout
20918
20919 \begin_layout LyX-Code
20920 TemplateEnd
20921 \end_layout
20922
20923 \begin_layout Standard
20924 ご覧の通り、ひな型は
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 Template
20930 \end_layout
20931
20932 \end_inset
20933
20934  \SpecialChar ldots
20935  
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 TemplateEnd
20941 \end_layout
20942
20943 \end_inset
20944
20945 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 Format
20951 \end_layout
20952
20953 \end_inset
20954
20955  \SpecialChar ldots
20956  
20957 \begin_inset Flex Code
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961 FormatEnd
20962 \end_layout
20963
20964 \end_inset
20965
20966 部があります。
20967 \end_layout
20968
20969 \begin_layout Subsection
20970 ひな型のヘッダ
20971 \end_layout
20972
20973 \begin_layout Description
20974 \begin_inset Flex Code
20975 status collapsed
20976
20977 \begin_layout Plain Layout
20978 AutomaticProduction
20979 \begin_inset space ~
20980 \end_inset
20981
20982 true|false
20983 \end_layout
20984
20985 \end_inset
20986
20987  このひな型で扱うファイルを\SpecialChar LyX
20988 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20989 \end_layout
20990
20991 \begin_layout Description
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 FileFilter
20997 \begin_inset space ~
20998 \end_inset
20999
21000 <パターン>
21001 \end_layout
21002
21003 \end_inset
21004
21005  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010 .obj
21011 \end_layout
21012
21013 \end_inset
21014
21015
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020 .tgo
21021 \end_layout
21022
21023 \end_inset
21024
21025 があります)、「
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 *.{obj,tgo}
21031 \end_layout
21032
21033 \end_inset
21034
21035 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
21036 \end_layout
21037
21038 \begin_layout Description
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043 GuiName
21044 \begin_inset space ~
21045 \end_inset
21046
21047 <GUI名>
21048 \end_layout
21049
21050 \end_inset
21051
21052  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
21053 \end_layout
21054
21055 \begin_layout Description
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 HelpText
21061 \begin_inset space ~
21062 \end_inset
21063
21064 <文章>
21065 \begin_inset space ~
21066 \end_inset
21067
21068 HelpTextEnd
21069 \end_layout
21070
21071 \end_inset
21072
21073  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
21074 ず現れなくてはなりません。
21075 \end_layout
21076
21077 \begin_layout Description
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 InputFormat
21083 \begin_inset space ~
21084 \end_inset
21085
21086 <書式>
21087 \end_layout
21088
21089 \end_inset
21090
21091  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
21092 が知っている書式名でなくてはなりません(
21093 \begin_inset CommandInset ref
21094 LatexCommand ref
21095 reference "sec:ファイル形式"
21096
21097 \end_inset
21098
21099 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
21100 \begin_inset Flex Code
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104 *
21105 \end_layout
21106
21107 \end_inset
21108
21109 」を使用してください。この場合、\SpecialChar LyX
21110 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
21111 \end_layout
21112
21113 \begin_layout Description
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 Template
21119 \begin_inset space ~
21120 \end_inset
21121
21122 <ID>
21123 \end_layout
21124
21125 \end_inset
21126
21127  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
21128 \end_layout
21129
21130 \begin_layout Description
21131 \begin_inset Flex Code
21132 status collapsed
21133
21134 \begin_layout Plain Layout
21135 Transform
21136 \begin_inset space ~
21137 \end_inset
21138
21139 Rotate|Resize|Clip|Extra
21140 \end_layout
21141
21142 \end_inset
21143
21144  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
21145 ログ中の対応するタブを使用可能にします。
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 Transform
21151 \end_layout
21152
21153 \end_inset
21154
21155 コマンド一つずつに応じて、
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 Format
21161 \end_layout
21162
21163 \end_inset
21164
21165 部に、対応する
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 TransformCommand
21171 \end_layout
21172
21173 \end_inset
21174
21175 コマンドか
21176 \begin_inset Flex Code
21177 status collapsed
21178
21179 \begin_layout Plain Layout
21180 TransformOption
21181 \end_layout
21182
21183 \end_inset
21184
21185 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
21186 \end_layout
21187
21188 \begin_layout Subsection
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 Format
21194 \end_layout
21195
21196 \end_inset
21197
21198
21199 \end_layout
21200
21201 \begin_layout Description
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 Format
21207 \begin_inset space ~
21208 \end_inset
21209
21210 LaT
21211 \begin_inset ERT
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215
21216 {}
21217 \end_layout
21218
21219 \end_inset
21220
21221 eX|PDFLaT
21222 \begin_inset ERT
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226
21227 {}
21228 \end_layout
21229
21230 \end_inset
21231
21232 eX|PlainText|DocBook
21233 \end_layout
21234
21235 \end_inset
21236
21237  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 Format
21243 \end_layout
21244
21245 \end_inset
21246
21247 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
21248 ようになります。
21249 \end_layout
21250
21251 \begin_layout Description
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 Option
21257 \begin_inset space ~
21258 \end_inset
21259
21260 <名称>
21261 \begin_inset space ~
21262 \end_inset
21263
21264 <値>
21265 \end_layout
21266
21267 \end_inset
21268
21269  このコマンドは、
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274 Product
21275 \end_layout
21276
21277 \end_inset
21278
21279 での代入に使うマクロ
21280 \begin_inset Flex Code
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284 $$<名称>
21285 \end_layout
21286
21287 \end_inset
21288
21289 を新たに定義します。
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 <値>
21295 \end_layout
21296
21297 \end_inset
21298
21299 自体にも代入マクロを使うことができます。
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 Product
21305 \end_layout
21306
21307 \end_inset
21308
21309
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 <値>
21315 \end_layout
21316
21317 \end_inset
21318
21319 を直接使用するよりも優れた点は、
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 $$<名称>
21325 \end_layout
21326
21327 \end_inset
21328
21329 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
21330 \end_layout
21331
21332 \begin_layout Description
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 Product
21338 \begin_inset space ~
21339 \end_inset
21340
21341 <文>
21342 \end_layout
21343
21344 \end_inset
21345
21346  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
21347
21348 \end_layout
21349
21350 \begin_layout Description
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355 Preamble
21356 \begin_inset space ~
21357 \end_inset
21358
21359 <名称>
21360 \end_layout
21361
21362 \end_inset
21363
21364  このコマンドは、\SpecialChar LaTeX
21365 プリアンブルに入れるプリアンブル片を指定します。これは
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 PreambleDef
21371 \end_layout
21372
21373 \end_inset
21374
21375  \SpecialChar ldots
21376  
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 PreambleDefEnd
21382 \end_layout
21383
21384 \end_inset
21385
21386 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21387 \end_layout
21388
21389 \begin_layout Description
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 ReferencedFile
21395 \begin_inset space ~
21396 \end_inset
21397
21398 <書式>
21399 \begin_inset space ~
21400 \end_inset
21401
21402 <ファイル名>
21403 \end_layout
21404
21405 \end_inset
21406
21407  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21408 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21409 \end_layout
21410
21411 \begin_layout Description
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 Requirement
21417 \begin_inset space ~
21418 \end_inset
21419
21420 <package>
21421 \end_layout
21422
21423 \end_inset
21424
21425  必要とされる\SpecialChar LaTeX
21426 パッケージ名。パッケージは、\SpecialChar LaTeX
21427 プリアンブル中で
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432
21433 \backslash
21434 usepackage{}
21435 \end_layout
21436
21437 \end_inset
21438
21439 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21440 \end_layout
21441
21442 \begin_layout Description
21443 \begin_inset Flex Code
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 TransformCommand
21448 \begin_inset space ~
21449 \end_inset
21450
21451 Rotate
21452 \begin_inset space ~
21453 \end_inset
21454
21455 RotationLatexCommand
21456 \end_layout
21457
21458 \end_inset
21459
21460  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21461 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21462 \end_layout
21463
21464 \begin_layout Description
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 TransformCommand
21470 \begin_inset space ~
21471 \end_inset
21472
21473 Resize
21474 \begin_inset space ~
21475 \end_inset
21476
21477 ResizeLatexCommand
21478 \end_layout
21479
21480 \end_inset
21481
21482  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21483 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21484 \end_layout
21485
21486 \begin_layout Description
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 TransformOption
21492 \begin_inset space ~
21493 \end_inset
21494
21495 Rotate
21496 \begin_inset space ~
21497 \end_inset
21498
21499 RotationLatexOption
21500 \end_layout
21501
21502 \end_inset
21503
21504  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21505 \end_layout
21506
21507 \begin_layout Description
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 TransformOption
21513 \begin_inset space ~
21514 \end_inset
21515
21516 Resize
21517 \begin_inset space ~
21518 \end_inset
21519
21520 ResizeLatexOption
21521 \end_layout
21522
21523 \end_inset
21524
21525  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21526 \end_layout
21527
21528 \begin_layout Description
21529 \begin_inset Flex Code
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533 TransformOption
21534 \begin_inset space ~
21535 \end_inset
21536
21537 Clip
21538 \begin_inset space ~
21539 \end_inset
21540
21541 ClipLatexOption
21542 \end_layout
21543
21544 \end_inset
21545
21546  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21547 \end_layout
21548
21549 \begin_layout Description
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 TransformOption
21555 \begin_inset space ~
21556 \end_inset
21557
21558 Extra
21559 \begin_inset space ~
21560 \end_inset
21561
21562 ExtraLatexOption
21563 \end_layout
21564
21565 \end_inset
21566
21567  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21568 \end_layout
21569
21570 \begin_layout Description
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575 UpdateFormat
21576 \begin_inset space ~
21577 \end_inset
21578
21579 <書式>
21580 \end_layout
21581
21582 \end_inset
21583
21584  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21585 が知っている書式名でなくてはなりません(
21586 \begin_inset Flex MenuItem
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 ツール\SpecialChar menuseparator
21591 設定\SpecialChar menuseparator
21592 ファイル処理\SpecialChar menuseparator
21593 ファイル書式
21594 \end_layout
21595
21596 \end_inset
21597
21598 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21599 \begin_inset Flex Code
21600 status collapsed
21601
21602 \begin_layout Plain Layout
21603 pdf6
21604 \end_layout
21605
21606 \end_inset
21607
21608 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21609 \end_layout
21610
21611 \begin_layout Description
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 UpdateResult
21617 \begin_inset space ~
21618 \end_inset
21619
21620 <ファイル名>
21621 \end_layout
21622
21623 \end_inset
21624
21625  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21626 \end_layout
21627
21628 \begin_layout Subsection
21629 プリアンブルの定義
21630 \end_layout
21631
21632 \begin_layout Standard
21633 外用ひな型設定ファイルには、
21634 \begin_inset Flex Code
21635 status collapsed
21636
21637 \begin_layout Plain Layout
21638 PreambleDef
21639 \end_layout
21640
21641 \end_inset
21642
21643  \SpecialChar ldots
21644  
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 PreambleDefEnd
21650 \end_layout
21651
21652 \end_inset
21653
21654 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 Format
21660 \end_layout
21661
21662 \end_inset
21663
21664 部で使用することができます。
21665 \end_layout
21666
21667 \begin_layout Section
21668 代入機構
21669 \end_layout
21670
21671 \begin_layout Standard
21672 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21673 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21674 \end_layout
21675
21676 \begin_layout Standard
21677 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21678 \end_layout
21679
21680 \begin_layout Standard
21681 使用できるマクロは以下の通りです。
21682 \end_layout
21683
21684 \begin_layout Description
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 $$AbsOrRelPathMaster
21690 \end_layout
21691
21692 \end_inset
21693
21694  \SpecialChar LyX
21695 親文書への絶対ファイルパスないしは相対ファイルパス
21696 \end_layout
21697
21698 \begin_layout Description
21699 \begin_inset Flex Code
21700 status collapsed
21701
21702 \begin_layout Plain Layout
21703 $$AbsOrRelPathParent
21704 \end_layout
21705
21706 \end_inset
21707
21708  \SpecialChar LyX
21709 文書への絶対ファイルパスないしは相対ファイルパス
21710 \end_layout
21711
21712 \begin_layout Description
21713 \begin_inset Flex Code
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 $$AbsPath
21718 \end_layout
21719
21720 \end_inset
21721
21722  絶対ファイルパス
21723 \end_layout
21724
21725 \begin_layout Description
21726 \begin_inset Flex Code
21727 status collapsed
21728
21729 \begin_layout Plain Layout
21730 $$Basename
21731 \end_layout
21732
21733 \end_inset
21734
21735  パスおよび拡張子を除いたファイル名
21736 \end_layout
21737
21738 \begin_layout Description
21739 \begin_inset Flex Code
21740 status collapsed
21741
21742 \begin_layout Plain Layout
21743 $$Contents(
21744 \begin_inset Quotes eld
21745 \end_inset
21746
21747 filename.ext
21748 \begin_inset Quotes erd
21749 \end_inset
21750
21751 )
21752 \end_layout
21753
21754 \end_inset
21755
21756  このマクロは、
21757 \begin_inset Flex Code
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761 filename.ext
21762 \end_layout
21763
21764 \end_inset
21765
21766 と云う名のファイルの中身を展開します。
21767 \end_layout
21768
21769 \begin_layout Description
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 $$Extension
21775 \end_layout
21776
21777 \end_inset
21778
21779  ファイル拡張子(点を含む)
21780 \end_layout
21781
21782 \begin_layout Description
21783 \begin_inset Flex Code
21784 status collapsed
21785
21786 \begin_layout Plain Layout
21787 $$pngOrjpg
21788 \end_layout
21789
21790 \end_inset
21791
21792  
21793 \lang english
21794 This will be the string 
21795 \begin_inset Quotes eld
21796 \end_inset
21797
21798 jpg
21799 \begin_inset Quotes erd
21800 \end_inset
21801
21802  if the file is in JPEG format, otherwise it will be the string 
21803 \begin_inset Quotes eld
21804 \end_inset
21805
21806 png
21807 \begin_inset Quotes erd
21808 \end_inset
21809
21810 .
21811  This is useful to avoid uneeded conversions for output formats that support
21812  both PNG and JPEG fomats.
21813  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
21814  output
21815  format.
21816 \end_layout
21817
21818 \begin_layout Description
21819 \begin_inset Flex Code
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 $$FName
21824 \end_layout
21825
21826 \end_inset
21827
21828  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21829 文書への絶対パスでも良いですし、相対パスでも構いません。
21830 \end_layout
21831
21832 \begin_layout Description
21833 \begin_inset Flex Code
21834 status collapsed
21835
21836 \begin_layout Plain Layout
21837 $$FPath
21838 \end_layout
21839
21840 \end_inset
21841
21842  
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 $$FName
21848 \end_layout
21849
21850 \end_inset
21851
21852 のパス部分(\SpecialChar LyX
21853 文書への絶対パス名か相対パス名)
21854 \end_layout
21855
21856 \begin_layout Description
21857 \begin_inset Flex Code
21858 status collapsed
21859
21860 \begin_layout Plain Layout
21861 $$RelPathMaster
21862 \end_layout
21863
21864 \end_inset
21865
21866  \SpecialChar LyX
21867 親文書への相対ファイルパス
21868 \end_layout
21869
21870 \begin_layout Description
21871 \begin_inset Flex Code
21872 status collapsed
21873
21874 \begin_layout Plain Layout
21875 $$RelPathParent
21876 \end_layout
21877
21878 \end_inset
21879
21880  \SpecialChar LyX
21881 文書への相対ファイルパス
21882 \end_layout
21883
21884 \begin_layout Description
21885 \begin_inset Flex Code
21886 status collapsed
21887
21888 \begin_layout Plain Layout
21889 $$Sysdir
21890 \end_layout
21891
21892 \end_inset
21893
21894  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21895 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21896 \end_layout
21897
21898 \begin_layout Description
21899 \begin_inset Flex Code
21900 status collapsed
21901
21902 \begin_layout Plain Layout
21903 $$Tempname
21904 \end_layout
21905
21906 \end_inset
21907
21908  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21909 \end_layout
21910
21911 \begin_layout Standard
21912 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 $$AbsPath$$Basename$$Extension
21918 \end_layout
21919
21920 \end_inset
21921
21922 のようにして作ることができます。
21923 \end_layout
21924
21925 \begin_layout Standard
21926 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21927 \begin_inset Flex Code
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 Transform
21932 \end_layout
21933
21934 \end_inset
21935
21936 コマンドと
21937 \begin_inset Flex Code
21938 status collapsed
21939
21940 \begin_layout Plain Layout
21941 TransformCommand
21942 \end_layout
21943
21944 \end_inset
21945
21946 コマンドが有効にされている場合、
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 Product
21952 \end_layout
21953
21954 \end_inset
21955
21956 コマンドは、これらに加えて以下の代入もサポートします。
21957 \end_layout
21958
21959 \begin_layout Description
21960 \begin_inset Flex Code
21961 status collapsed
21962
21963 \begin_layout Plain Layout
21964 $$ResizeFront
21965 \end_layout
21966
21967 \end_inset
21968
21969  伸縮コマンドの前置部。
21970 \end_layout
21971
21972 \begin_layout Description
21973 \begin_inset Flex Code
21974 status collapsed
21975
21976 \begin_layout Plain Layout
21977 $$ResizeBack
21978 \end_layout
21979
21980 \end_inset
21981
21982  伸縮コマンドの後置部。
21983 \end_layout
21984
21985 \begin_layout Description
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 $$RotateFront
21991 \end_layout
21992
21993 \end_inset
21994
21995  回転コマンドの前置部。
21996 \end_layout
21997
21998 \begin_layout Description
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003 $$RotateBack
22004 \end_layout
22005
22006 \end_inset
22007
22008  回転コマンドの後置部。
22009 \end_layout
22010
22011 \begin_layout Standard
22012 \begin_inset Flex Code
22013 status collapsed
22014
22015 \begin_layout Plain Layout
22016 Option
22017 \end_layout
22018
22019 \end_inset
22020
22021 コマンドの値に入れる文字列では、
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 Transform
22027 \end_layout
22028
22029 \end_inset
22030
22031 コマンドと
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 TransformOption
22037 \end_layout
22038
22039 \end_inset
22040
22041 コマンドが有効にされていれば、以下の代入もサポートされます。
22042 \end_layout
22043
22044 \begin_layout Description
22045 \begin_inset Flex Code
22046 status collapsed
22047
22048 \begin_layout Plain Layout
22049 $$Clip
22050 \end_layout
22051
22052 \end_inset
22053
22054  切り抜きオプション。
22055 \end_layout
22056
22057 \begin_layout Description
22058 \begin_inset Flex Code
22059 status collapsed
22060
22061 \begin_layout Plain Layout
22062 $$Extra
22063 \end_layout
22064
22065 \end_inset
22066
22067  追加オプション。
22068 \end_layout
22069
22070 \begin_layout Description
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 $$Resize
22076 \end_layout
22077
22078 \end_inset
22079
22080  伸縮オプション。
22081 \end_layout
22082
22083 \begin_layout Description
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088 $$Rotate
22089 \end_layout
22090
22091 \end_inset
22092
22093  回転オプション。
22094 \end_layout
22095
22096 \begin_layout Standard
22097 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
22098 \end_layout
22099
22100 \begin_layout Enumerate
22101 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
22102 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
22103 \end_layout
22104
22105 \begin_layout Enumerate
22106 \SpecialChar LaTeX
22107 は、相対ファイル名に関して、\SpecialChar LyX
22108 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
22109 にとって相対ファイル名とは、常にこのファイル名が書か
22110 れている文書に対して相対的なものになります。\SpecialChar LaTeX
22111 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
22112 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
22113 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
22114 を選びさえすれば、これは\SpecialChar LyX
22115 が自動的に行ってくれます。
22116 \end_layout
22117
22118 \begin_layout Standard
22119 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
22120 \end_layout
22121
22122 \begin_layout Itemize
22123 絶対パスが必要とされるときには
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128 $$AbsPath
22129 \end_layout
22130
22131 \end_inset
22132
22133 を使う。
22134 \end_layout
22135
22136 \begin_layout Itemize
22137 代入された文字列が、\SpecialChar LaTeX
22138 インプットの一種である場合には、
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 $$AbsOrRelPathMaster
22144 \end_layout
22145
22146 \end_inset
22147
22148 を使う。
22149 \end_layout
22150
22151 \begin_layout Itemize
22152 それ以外ならば、ユーザの選択を尊重するために
22153 \begin_inset Flex Code
22154 status collapsed
22155
22156 \begin_layout Plain Layout
22157 $$AbsOrRelPathParent
22158 \end_layout
22159
22160 \end_inset
22161
22162 を使う。
22163 \end_layout
22164
22165 \begin_layout Standard
22166 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
22167 \begin_inset Flex Code
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22172 \end_layout
22173
22174 \end_inset
22175
22176 というコマンドがあります。この場合、
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 .pstex_t
22182 \end_layout
22183
22184 \end_inset
22185
22186 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
22187 \end_layout
22188
22189 \begin_layout Section
22190 セキュリティに関する論点
22191 \begin_inset CommandInset label
22192 LatexCommand label
22193 name "sec:セキュリティに関する論点"
22194
22195 \end_inset
22196
22197
22198 \end_layout
22199
22200 \begin_layout Standard
22201 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
22202 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
22203 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
22204 \end_layout
22205
22206 \begin_layout Standard
22207 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
22208 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
22209 せん。これは、外部プログラムが
22210 \begin_inset Flex Code
22211 status collapsed
22212
22213 \begin_layout Plain Layout
22214 system
22215 \end_layout
22216
22217 \end_inset
22218
22219 システムコールではなく、
22220 \begin_inset Flex Code
22221 status collapsed
22222
22223 \begin_layout Plain Layout
22224 execvp
22225 \end_layout
22226
22227 \end_inset
22228
22229 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
22230 \end_layout
22231
22232 \begin_layout Standard
22233 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
22234 できません。これは、\SpecialChar LyX
22235 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
22236 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
22237 \end_layout
22238
22239 \begin_layout Standard
22240 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
22241 うになるため、一般的には、統御下に置いた状態で
22242 \begin_inset Flex Code
22243 status collapsed
22244
22245 \begin_layout Plain Layout
22246 execvp
22247 \end_layout
22248
22249 \end_inset
22250
22251 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
22252 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
22253 \emph on
22254 間違いなく
22255 \emph default
22256 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
22257 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
22258 には、安全でないひな型は決して入っていません
22259
22260 \end_layout
22261
22262 \begin_layout Standard
22263 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
22264 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
22265 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
22266 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
22267 使用する前に、行うようにしてください。
22268 \end_layout
22269
22270 \begin_layout Chapter
22271 \start_of_appendix
22272 サポートされているレイアウト用\SpecialChar LyX
22273 関数一覧
22274 \begin_inset CommandInset label
22275 LatexCommand label
22276 name "chap:関数一覧"
22277
22278 \end_inset
22279
22280
22281 \end_layout
22282
22283 \begin_layout Standard
22284 \align center
22285 \begin_inset Tabular
22286 <lyxtabular version="3" rows="11" columns="8">
22287 <features tabularvalignment="middle">
22288 <column alignment="left" valignment="top">
22289 <column alignment="left" valignment="top">
22290 <column alignment="left" valignment="top">
22291 <column alignment="left" valignment="top">
22292 <column alignment="left" valignment="top">
22293 <column alignment="left" valignment="top">
22294 <column alignment="left" valignment="top">
22295 <column alignment="left" valignment="top">
22296 <row>
22297 <cell alignment="left" valignment="top" usebox="none">
22298 \begin_inset Text
22299
22300 \begin_layout Plain Layout
22301 accents
22302 \end_layout
22303
22304 \end_inset
22305 </cell>
22306 <cell alignment="left" valignment="top" usebox="none">
22307 \begin_inset Text
22308
22309 \begin_layout Plain Layout
22310 booktabs
22311 \end_layout
22312
22313 \end_inset
22314 </cell>
22315 <cell alignment="left" valignment="top" usebox="none">
22316 \begin_inset Text
22317
22318 \begin_layout Plain Layout
22319 feyn
22320 \end_layout
22321
22322 \end_inset
22323 </cell>
22324 <cell alignment="left" valignment="top" usebox="none">
22325 \begin_inset Text
22326
22327 \begin_layout Plain Layout
22328 listings
22329 \end_layout
22330
22331 \end_inset
22332 </cell>
22333 <cell alignment="center" valignment="top" usebox="none">
22334 \begin_inset Text
22335
22336 \begin_layout Plain Layout
22337 natbib
22338 \end_layout
22339
22340 \end_inset
22341 </cell>
22342 <cell alignment="center" valignment="top" usebox="none">
22343 \begin_inset Text
22344
22345 \begin_layout Plain Layout
22346 rotfloat
22347 \end_layout
22348
22349 \end_inset
22350 </cell>
22351 <cell alignment="center" valignment="top" usebox="none">
22352 \begin_inset Text
22353
22354 \begin_layout Plain Layout
22355 tfrupee
22356 \end_layout
22357
22358 \end_inset
22359 </cell>
22360 <cell alignment="center" valignment="top" usebox="none">
22361 \begin_inset Text
22362
22363 \begin_layout Plain Layout
22364 wasysym
22365 \end_layout
22366
22367 \end_inset
22368 </cell>
22369 </row>
22370 <row>
22371 <cell alignment="left" valignment="top" usebox="none">
22372 \begin_inset Text
22373
22374 \begin_layout Plain Layout
22375 amsbsy
22376 \end_layout
22377
22378 \end_inset
22379 </cell>
22380 <cell alignment="left" valignment="top" usebox="none">
22381 \begin_inset Text
22382
22383 \begin_layout Plain Layout
22384 calc
22385 \end_layout
22386
22387 \end_inset
22388 </cell>
22389 <cell alignment="left" valignment="top" usebox="none">
22390 \begin_inset Text
22391
22392 \begin_layout Plain Layout
22393 fixltx2e
22394 \end_layout
22395
22396 \end_inset
22397 </cell>
22398 <cell alignment="left" valignment="top" usebox="none">
22399 \begin_inset Text
22400
22401 \begin_layout Plain Layout
22402 longtable
22403 \end_layout
22404
22405 \end_inset
22406 </cell>
22407 <cell alignment="center" valignment="top" usebox="none">
22408 \begin_inset Text
22409
22410 \begin_layout Plain Layout
22411 nomencl
22412 \end_layout
22413
22414 \end_inset
22415 </cell>
22416 <cell alignment="center" valignment="top" usebox="none">
22417 \begin_inset Text
22418
22419 \begin_layout Plain Layout
22420 rsphrase
22421 \end_layout
22422
22423 \end_inset
22424 </cell>
22425 <cell alignment="center" valignment="top" usebox="none">
22426 \begin_inset Text
22427
22428 \begin_layout Plain Layout
22429 tipa
22430 \end_layout
22431
22432 \end_inset
22433 </cell>
22434 <cell alignment="center" valignment="top" usebox="none">
22435 \begin_inset Text
22436
22437 \begin_layout Plain Layout
22438 wrapfig
22439 \end_layout
22440
22441 \end_inset
22442 </cell>
22443 </row>
22444 <row>
22445 <cell alignment="left" valignment="top" usebox="none">
22446 \begin_inset Text
22447
22448 \begin_layout Plain Layout
22449 amscd
22450 \end_layout
22451
22452 \end_inset
22453 </cell>
22454 <cell alignment="left" valignment="top" usebox="none">
22455 \begin_inset Text
22456
22457 \begin_layout Plain Layout
22458 CJK
22459 \end_layout
22460
22461 \end_inset
22462 </cell>
22463 <cell alignment="left" valignment="top" usebox="none">
22464 \begin_inset Text
22465
22466 \begin_layout Plain Layout
22467 float
22468 \end_layout
22469
22470 \end_inset
22471 </cell>
22472 <cell alignment="left" valignment="top" usebox="none">
22473 \begin_inset Text
22474
22475 \begin_layout Plain Layout
22476 lyxskak
22477 \end_layout
22478
22479 \end_inset
22480 </cell>
22481 <cell alignment="center" valignment="top" usebox="none">
22482 \begin_inset Text
22483
22484 \begin_layout Plain Layout
22485 pdfcolmk
22486 \end_layout
22487
22488 \end_inset
22489 </cell>
22490 <cell alignment="center" valignment="top" usebox="none">
22491 \begin_inset Text
22492
22493 \begin_layout Plain Layout
22494 setspace
22495 \end_layout
22496
22497 \end_inset
22498 </cell>
22499 <cell alignment="center" valignment="top" usebox="none">
22500 \begin_inset Text
22501
22502 \begin_layout Plain Layout
22503 tipx
22504 \end_layout
22505
22506 \end_inset
22507 </cell>
22508 <cell alignment="center" valignment="top" usebox="none">
22509 \begin_inset Text
22510
22511 \begin_layout Plain Layout
22512 xargs
22513 \end_layout
22514
22515 \end_inset
22516 </cell>
22517 </row>
22518 <row>
22519 <cell alignment="left" valignment="top" usebox="none">
22520 \begin_inset Text
22521
22522 \begin_layout Plain Layout
22523 amsmath
22524 \end_layout
22525
22526 \end_inset
22527 </cell>
22528 <cell alignment="left" valignment="top" usebox="none">
22529 \begin_inset Text
22530
22531 \begin_layout Plain Layout
22532 color
22533 \end_layout
22534
22535 \end_inset
22536 </cell>
22537 <cell alignment="left" valignment="top" usebox="none">
22538 \begin_inset Text
22539
22540 \begin_layout Plain Layout
22541 framed
22542 \end_layout
22543
22544 \end_inset
22545 </cell>
22546 <cell alignment="left" valignment="top" usebox="none">
22547 \begin_inset Text
22548
22549 \begin_layout Plain Layout
22550 makeidx
22551 \end_layout
22552
22553 \end_inset
22554 </cell>
22555 <cell alignment="center" valignment="top" usebox="none">
22556 \begin_inset Text
22557
22558 \begin_layout Plain Layout
22559 pdfpages
22560 \end_layout
22561
22562 \end_inset
22563 </cell>
22564 <cell alignment="center" valignment="top" usebox="none">
22565 \begin_inset Text
22566
22567 \begin_layout Plain Layout
22568 shapepar
22569 \end_layout
22570
22571 \end_inset
22572 </cell>
22573 <cell alignment="center" valignment="top" usebox="none">
22574 \begin_inset Text
22575
22576 \begin_layout Plain Layout
22577 tone
22578 \end_layout
22579
22580 \end_inset
22581 </cell>
22582 <cell alignment="center" valignment="top" usebox="none">
22583 \begin_inset Text
22584
22585 \begin_layout Plain Layout
22586 xcolor
22587 \end_layout
22588
22589 \end_inset
22590 </cell>
22591 </row>
22592 <row>
22593 <cell alignment="left" valignment="top" usebox="none">
22594 \begin_inset Text
22595
22596 \begin_layout Plain Layout
22597 amssymb
22598 \end_layout
22599
22600 \end_inset
22601 </cell>
22602 <cell alignment="left" valignment="top" usebox="none">
22603 \begin_inset Text
22604
22605 \begin_layout Plain Layout
22606 covington
22607 \end_layout
22608
22609 \end_inset
22610 </cell>
22611 <cell alignment="left" valignment="top" usebox="none">
22612 \begin_inset Text
22613
22614 \begin_layout Plain Layout
22615 graphicx
22616 \end_layout
22617
22618 \end_inset
22619 </cell>
22620 <cell alignment="left" valignment="top" usebox="none">
22621 \begin_inset Text
22622
22623 \begin_layout Plain Layout
22624 marvosym
22625 \end_layout
22626
22627 \end_inset
22628 </cell>
22629 <cell alignment="center" valignment="top" usebox="none">
22630 \begin_inset Text
22631
22632 \begin_layout Plain Layout
22633 pifont
22634 \end_layout
22635
22636 \end_inset
22637 </cell>
22638 <cell alignment="center" valignment="top" usebox="none">
22639 \begin_inset Text
22640
22641 \begin_layout Plain Layout
22642 slashed
22643 \end_layout
22644
22645 \end_inset
22646 </cell>
22647 <cell alignment="center" valignment="top" usebox="none">
22648 \begin_inset Text
22649
22650 \begin_layout Plain Layout
22651 txfonts
22652 \end_layout
22653
22654 \end_inset
22655 </cell>
22656 <cell alignment="center" valignment="top" usebox="none">
22657 \begin_inset Text
22658
22659 \begin_layout Plain Layout
22660 xy
22661 \end_layout
22662
22663 \end_inset
22664 </cell>
22665 </row>
22666 <row>
22667 <cell alignment="left" valignment="top" usebox="none">
22668 \begin_inset Text
22669
22670 \begin_layout Plain Layout
22671 amstext
22672 \end_layout
22673
22674 \end_inset
22675 </cell>
22676 <cell alignment="left" valignment="top" usebox="none">
22677 \begin_inset Text
22678
22679 \begin_layout Plain Layout
22680 csquotes
22681 \end_layout
22682
22683 \end_inset
22684 </cell>
22685 <cell alignment="left" valignment="top" usebox="none">
22686 \begin_inset Text
22687
22688 \begin_layout Plain Layout
22689 hhline
22690 \end_layout
22691
22692 \end_inset
22693 </cell>
22694 <cell alignment="left" valignment="top" usebox="none">
22695 \begin_inset Text
22696
22697 \begin_layout Plain Layout
22698 mathdesign
22699 \end_layout
22700
22701 \end_inset
22702 </cell>
22703 <cell alignment="center" valignment="top" usebox="none">
22704 \begin_inset Text
22705
22706 \begin_layout Plain Layout
22707 pmboxdraw
22708 \end_layout
22709
22710 \end_inset
22711 </cell>
22712 <cell alignment="center" valignment="top" usebox="none">
22713 \begin_inset Text
22714
22715 \begin_layout Plain Layout
22716 soul
22717 \end_layout
22718
22719 \end_inset
22720 </cell>
22721 <cell alignment="center" valignment="top" usebox="none">
22722 \begin_inset Text
22723
22724 \begin_layout Plain Layout
22725 ulem
22726 \end_layout
22727
22728 \end_inset
22729 </cell>
22730 <cell alignment="center" valignment="top" usebox="none">
22731 \begin_inset Text
22732
22733 \begin_layout Plain Layout
22734 yhmath
22735 \end_layout
22736
22737 \end_inset
22738 </cell>
22739 </row>
22740 <row>
22741 <cell alignment="left" valignment="top" usebox="none">
22742 \begin_inset Text
22743
22744 \begin_layout Plain Layout
22745 amsthm
22746 \end_layout
22747
22748 \end_inset
22749 </cell>
22750 <cell alignment="left" valignment="top" usebox="none">
22751 \begin_inset Text
22752
22753 \begin_layout Plain Layout
22754 dvipost
22755 \end_layout
22756
22757 \end_inset
22758 </cell>
22759 <cell alignment="left" valignment="top" usebox="none">
22760 \begin_inset Text
22761
22762 \begin_layout Plain Layout
22763 hyperref
22764 \end_layout
22765
22766 \end_inset
22767 </cell>
22768 <cell alignment="left" valignment="top" usebox="none">
22769 \begin_inset Text
22770
22771 \begin_layout Plain Layout
22772 mathdots
22773 \end_layout
22774
22775 \end_inset
22776 </cell>
22777 <cell alignment="center" valignment="top" usebox="none">
22778 \begin_inset Text
22779
22780 \begin_layout Plain Layout
22781 polyglossia
22782 \end_layout
22783
22784 \end_inset
22785 </cell>
22786 <cell alignment="center" valignment="top" usebox="none">
22787 \begin_inset Text
22788
22789 \begin_layout Plain Layout
22790 splitidx
22791 \end_layout
22792
22793 \end_inset
22794 </cell>
22795 <cell alignment="center" valignment="top" usebox="none">
22796 \begin_inset Text
22797
22798 \begin_layout Plain Layout
22799 undertilde
22800 \end_layout
22801
22802 \end_inset
22803 </cell>
22804 <cell alignment="center" valignment="top" usebox="none">
22805 \begin_inset Text
22806
22807 \begin_layout Plain Layout
22808
22809 \end_layout
22810
22811 \end_inset
22812 </cell>
22813 </row>
22814 <row>
22815 <cell alignment="left" valignment="top" usebox="none">
22816 \begin_inset Text
22817
22818 \begin_layout Plain Layout
22819 array
22820 \end_layout
22821
22822 \end_inset
22823 </cell>
22824 <cell alignment="left" valignment="top" usebox="none">
22825 \begin_inset Text
22826
22827 \begin_layout Plain Layout
22828 endnotes
22829 \end_layout
22830
22831 \end_inset
22832 </cell>
22833 <cell alignment="left" valignment="top" usebox="none">
22834 \begin_inset Text
22835
22836 \begin_layout Plain Layout
22837 ifsym
22838 \end_layout
22839
22840 \end_inset
22841 </cell>
22842 <cell alignment="left" valignment="top" usebox="none">
22843 \begin_inset Text
22844
22845 \begin_layout Plain Layout
22846 mathrsfs
22847 \end_layout
22848
22849 \end_inset
22850 </cell>
22851 <cell alignment="center" valignment="top" usebox="none">
22852 \begin_inset Text
22853
22854 \begin_layout Plain Layout
22855 prettyref
22856 \end_layout
22857
22858 \end_inset
22859 </cell>
22860 <cell alignment="center" valignment="top" usebox="none">
22861 \begin_inset Text
22862
22863 \begin_layout Plain Layout
22864 subfig
22865 \end_layout
22866
22867 \end_inset
22868 </cell>
22869 <cell alignment="center" valignment="top" usebox="none">
22870 \begin_inset Text
22871
22872 \begin_layout Plain Layout
22873 units
22874 \end_layout
22875
22876 \end_inset
22877 </cell>
22878 <cell alignment="center" valignment="top" usebox="none">
22879 \begin_inset Text
22880
22881 \begin_layout Plain Layout
22882
22883 \end_layout
22884
22885 \end_inset
22886 </cell>
22887 </row>
22888 <row>
22889 <cell alignment="left" valignment="top" usebox="none">
22890 \begin_inset Text
22891
22892 \begin_layout Plain Layout
22893 ascii
22894 \end_layout
22895
22896 \end_inset
22897 </cell>
22898 <cell alignment="left" valignment="top" usebox="none">
22899 \begin_inset Text
22900
22901 \begin_layout Plain Layout
22902 enumitem
22903 \end_layout
22904
22905 \end_inset
22906 </cell>
22907 <cell alignment="left" valignment="top" usebox="none">
22908 \begin_inset Text
22909
22910 \begin_layout Plain Layout
22911 ifthen
22912 \end_layout
22913
22914 \end_inset
22915 </cell>
22916 <cell alignment="left" valignment="top" usebox="none">
22917 \begin_inset Text
22918
22919 \begin_layout Plain Layout
22920 mhchem
22921 \end_layout
22922
22923 \end_inset
22924 </cell>
22925 <cell alignment="center" valignment="top" usebox="none">
22926 \begin_inset Text
22927
22928 \begin_layout Plain Layout
22929 pxfonts
22930 \end_layout
22931
22932 \end_inset
22933 </cell>
22934 <cell alignment="center" valignment="top" usebox="none">
22935 \begin_inset Text
22936
22937 \begin_layout Plain Layout
22938 subscript
22939 \end_layout
22940
22941 \end_inset
22942 </cell>
22943 <cell alignment="center" valignment="top" usebox="none">
22944 \begin_inset Text
22945
22946 \begin_layout Plain Layout
22947 url
22948 \end_layout
22949
22950 \end_inset
22951 </cell>
22952 <cell alignment="center" valignment="top" usebox="none">
22953 \begin_inset Text
22954
22955 \begin_layout Plain Layout
22956
22957 \end_layout
22958
22959 \end_inset
22960 </cell>
22961 </row>
22962 <row>
22963 <cell alignment="left" valignment="top" usebox="none">
22964 \begin_inset Text
22965
22966 \begin_layout Plain Layout
22967 bbding
22968 \end_layout
22969
22970 \end_inset
22971 </cell>
22972 <cell alignment="left" valignment="top" usebox="none">
22973 \begin_inset Text
22974
22975 \begin_layout Plain Layout
22976 esint
22977 \end_layout
22978
22979 \end_inset
22980 </cell>
22981 <cell alignment="left" valignment="top" usebox="none">
22982 \begin_inset Text
22983
22984 \begin_layout Plain Layout
22985 jurabib
22986 \end_layout
22987
22988 \end_inset
22989 </cell>
22990 <cell alignment="left" valignment="top" usebox="none">
22991 \begin_inset Text
22992
22993 \begin_layout Plain Layout
22994 multicol
22995 \end_layout
22996
22997 \end_inset
22998 </cell>
22999 <cell alignment="center" valignment="top" usebox="none">
23000 \begin_inset Text
23001
23002 \begin_layout Plain Layout
23003 refstyle
23004 \end_layout
23005
23006 \end_inset
23007 </cell>
23008 <cell alignment="center" valignment="top" usebox="none">
23009 \begin_inset Text
23010
23011 \begin_layout Plain Layout
23012 textcomp
23013 \end_layout
23014
23015 \end_inset
23016 </cell>
23017 <cell alignment="center" valignment="top" usebox="none">
23018 \begin_inset Text
23019
23020 \begin_layout Plain Layout
23021 varioref
23022 \end_layout
23023
23024 \end_inset
23025 </cell>
23026 <cell alignment="center" valignment="top" usebox="none">
23027 \begin_inset Text
23028
23029 \begin_layout Plain Layout
23030
23031 \end_layout
23032
23033 \end_inset
23034 </cell>
23035 </row>
23036 <row>
23037 <cell alignment="center" valignment="top" usebox="none">
23038 \begin_inset Text
23039
23040 \begin_layout Plain Layout
23041 bm
23042 \end_layout
23043
23044 \end_inset
23045 </cell>
23046 <cell alignment="center" valignment="top" usebox="none">
23047 \begin_inset Text
23048
23049 \begin_layout Plain Layout
23050 fancybox
23051 \end_layout
23052
23053 \end_inset
23054 </cell>
23055 <cell alignment="center" valignment="top" usebox="none">
23056 \begin_inset Text
23057
23058 \begin_layout Plain Layout
23059 latexsym
23060 \end_layout
23061
23062 \end_inset
23063 </cell>
23064 <cell alignment="center" valignment="top" usebox="none">
23065 \begin_inset Text
23066
23067 \begin_layout Plain Layout
23068 multirow
23069 \end_layout
23070
23071 \end_inset
23072 </cell>
23073 <cell alignment="center" valignment="top" usebox="none">
23074 \begin_inset Text
23075
23076 \begin_layout Plain Layout
23077 rotating
23078 \end_layout
23079
23080 \end_inset
23081 </cell>
23082 <cell alignment="center" valignment="top" usebox="none">
23083 \begin_inset Text
23084
23085 \begin_layout Plain Layout
23086 textgreek
23087 \end_layout
23088
23089 \end_inset
23090 </cell>
23091 <cell alignment="center" valignment="top" usebox="none">
23092 \begin_inset Text
23093
23094 \begin_layout Plain Layout
23095 verbatim
23096 \end_layout
23097
23098 \end_inset
23099 </cell>
23100 <cell alignment="center" valignment="top" usebox="none">
23101 \begin_inset Text
23102
23103 \begin_layout Plain Layout
23104
23105 \end_layout
23106
23107 \end_inset
23108 </cell>
23109 </row>
23110 </lyxtabular>
23111
23112 \end_inset
23113
23114
23115 \end_layout
23116
23117 \begin_layout Chapter
23118 レイアウトで使用できる色名
23119 \begin_inset CommandInset label
23120 LatexCommand label
23121 name "chap:色名"
23122
23123 \end_inset
23124
23125
23126 \end_layout
23127
23128 \begin_layout Standard
23129 ここに列挙されている色は標準色であり、\SpecialChar LyX
23130 設定で調整できるものです。
23131 \end_layout
23132
23133 \begin_layout Description
23134 none
23135 \series medium
23136  
23137 \series default
23138 特定の色ではありません – 透明か既定色です
23139 \end_layout
23140
23141 \begin_layout Description
23142 black
23143 \end_layout
23144
23145 \begin_layout Description
23146 white
23147 \end_layout
23148
23149 \begin_layout Description
23150 red
23151 \end_layout
23152
23153 \begin_layout Description
23154 green
23155 \end_layout
23156
23157 \begin_layout Description
23158 blue
23159 \end_layout
23160
23161 \begin_layout Description
23162 cyan
23163 \end_layout
23164
23165 \begin_layout Description
23166 magenta
23167 \end_layout
23168
23169 \begin_layout Description
23170 yellow
23171 \end_layout
23172
23173 \begin_layout Description
23174 added_space 空白マーカ色
23175 \end_layout
23176
23177 \begin_layout Description
23178 addedtext 追加された文章色
23179 \end_layout
23180
23181 \begin_layout Description
23182 appendix 付録マーカ色
23183 \end_layout
23184
23185 \begin_layout Description
23186 background 背景色
23187 \end_layout
23188
23189 \begin_layout Description
23190 bottomarea 下部領域色
23191 \end_layout
23192
23193 \begin_layout Description
23194 branchlabel 派生枝ラベル色
23195 \end_layout
23196
23197 \begin_layout Description
23198 buttonbg ボタンの背景色
23199 \end_layout
23200
23201 \begin_layout Description
23202 buttonhoverbg フォーカスを得ているボタンの背景色
23203 \end_layout
23204
23205 \begin_layout Description
23206 buttonframe 差込枠の縁色
23207 \end_layout
23208
23209 \begin_layout Description
23210 changebar 変更バー色
23211 \end_layout
23212
23213 \begin_layout Description
23214 changedtextauthor1 変更された文章:第1著者の色
23215 \end_layout
23216
23217 \begin_layout Description
23218 changedtextauthor2 変更された文章:第2著者の色
23219 \end_layout
23220
23221 \begin_layout Description
23222 changedtextauthor3 変更された文章:第3著者の色
23223 \end_layout
23224
23225 \begin_layout Description
23226 changedtextauthor4 変更された文章:第4著者の色
23227 \end_layout
23228
23229 \begin_layout Description
23230 changedtextauthor5 変更された文章:第5著者の色
23231 \end_layout
23232
23233 \begin_layout Description
23234 collapsable_inset_frame 畳み込み可能枠の縁色
23235 \end_layout
23236
23237 \begin_layout Description
23238 collapsable_inset_text 畳み込み可能枠の文字色
23239 \end_layout
23240
23241 \begin_layout Description
23242 command コマンド差込枠の文字色
23243 \end_layout
23244
23245 \begin_layout Description
23246 commandbg コマンド差込枠の背景色
23247 \end_layout
23248
23249 \begin_layout Description
23250 commandframe コマンド差込枠の縁色
23251 \end_layout
23252
23253 \begin_layout Description
23254 comment コメント色
23255 \end_layout
23256
23257 \begin_layout Description
23258 commentbg コメントの背景色
23259 \end_layout
23260
23261 \begin_layout Description
23262 cursor カーソル色
23263 \end_layout
23264
23265 \begin_layout Description
23266 deletedtext 削除された文章の色
23267 \end_layout
23268
23269 \begin_layout Description
23270 deletedtextmodifier 削除された文章の修飾子の色
23271 \end_layout
23272
23273 \begin_layout Description
23274 depthbar 余白部の階層表示線の色
23275 \end_layout
23276
23277 \begin_layout Description
23278 eolmarker 行末標色
23279 \end_layout
23280
23281 \begin_layout Description
23282 error \SpecialChar LaTeX
23283 エラーボックス色
23284 \end_layout
23285
23286 \begin_layout Description
23287 footlabel 脚注ラベル色
23288 \end_layout
23289
23290 \begin_layout Description
23291 graphicsbg 画像差込枠の背景色
23292 \end_layout
23293
23294 \begin_layout Description
23295 greyedout 淡色表示差込枠のラベル色
23296 \end_layout
23297
23298 \begin_layout Description
23299 greyedoutbg 淡色表示差込枠の背景色
23300 \end_layout
23301
23302 \begin_layout Description
23303 greyedouttext 淡色表示差込枠の文字色
23304 \end_layout
23305
23306 \begin_layout Description
23307 indexlabel 索引差込枠のラベル色
23308 \end_layout
23309
23310 \begin_layout Description
23311 ignore この色を無視します
23312 \end_layout
23313
23314 \begin_layout Description
23315 inherit この色を継承します
23316 \end_layout
23317
23318 \begin_layout Description
23319 inlinecompletion 行内補完色
23320 \end_layout
23321
23322 \begin_layout Description
23323 insetbg 差込枠標の背景色
23324 \end_layout
23325
23326 \begin_layout Description
23327 insetframe 差込枠標の縁色
23328 \end_layout
23329
23330 \begin_layout Description
23331 language 外国語の単語を標識するための色
23332 \end_layout
23333
23334 \begin_layout Description
23335 latex \SpecialChar LaTeX
23336 モードの文字色
23337 \end_layout
23338
23339 \begin_layout Description
23340 listingsbg プログラムリスト差込枠の背景色
23341 \end_layout
23342
23343 \begin_layout Description
23344 marginlabel 傍注のラベル色
23345 \end_layout
23346
23347 \begin_layout Description
23348 math 数式差込枠の文字色
23349 \end_layout
23350
23351 \begin_layout Description
23352 mathbg 数式差込枠の背景色
23353 \end_layout
23354
23355 \begin_layout Description
23356 mathcorners フォーカスを得ていない数式差込枠の縁色
23357 \end_layout
23358
23359 \begin_layout Description
23360 mathframe フォーカスを得ている数式差込枠の縁色
23361 \end_layout
23362
23363 \begin_layout Description
23364 mathline 数式行色
23365 \end_layout
23366
23367 \begin_layout Description
23368 mathmacrobg 数式マクロ差込枠の背景色
23369 \end_layout
23370
23371 \begin_layout Description
23372 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23373 \end_layout
23374
23375 \begin_layout Description
23376 mathmacroframe 数式マクロ差込枠の縁色
23377 \end_layout
23378
23379 \begin_layout Description
23380 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23381 \end_layout
23382
23383 \begin_layout Description
23384 mathmacrolabel 数式マクロ差込枠のラベル色
23385 \end_layout
23386
23387 \begin_layout Description
23388 mathmacronewarg 数式マクロ新パラメーターのひな型色
23389 \end_layout
23390
23391 \begin_layout Description
23392 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23393 \end_layout
23394
23395 \begin_layout Description
23396 newpage 新規頁色
23397 \end_layout
23398
23399 \begin_layout Description
23400 nonunique_inlinecompletion 行内補完の一意でない部分の色
23401 \end_layout
23402
23403 \begin_layout Description
23404 notebg 注釈の背景色
23405 \end_layout
23406
23407 \begin_layout Description
23408 notelabel 注釈のラベル色
23409 \end_layout
23410
23411 \begin_layout Description
23412 pagebreak 改頁/改行色
23413 \end_layout
23414
23415 \begin_layout Description
23416 paragraphmarker 段落末を標識するための段落標の色
23417 \end_layout
23418
23419 \begin_layout Description
23420 phantomtext 埋め草差込枠の文字色
23421 \end_layout
23422
23423 \begin_layout Description
23424 preview プレビューに用いられる色
23425 \end_layout
23426
23427 \begin_layout Description
23428 previewframe プレビュー縁色
23429 \end_layout
23430
23431 \begin_layout Description
23432 regexpframe 正規表現枠の色
23433 \end_layout
23434
23435 \begin_layout Description
23436 selection 文章選択部の背景色
23437 \end_layout
23438
23439 \begin_layout Description
23440 selectiontext 文章選択部の前景色
23441 \end_layout
23442
23443 \begin_layout Description
23444 shadedbg 影付きボックスの背景色
23445 \end_layout
23446
23447 \begin_layout Description
23448 special 特殊文字の色
23449 \end_layout
23450
23451 \begin_layout Description
23452 tabularline 罫線色
23453 \end_layout
23454
23455 \begin_layout Description
23456 tabularonoffline 罫線色
23457 \end_layout
23458
23459 \begin_layout Description
23460 urllabel URL差込枠のラベル色
23461 \end_layout
23462
23463 \begin_layout Description
23464 urltext URL差込枠の文字色
23465 \end_layout
23466
23467 \end_body
23468 \end_document