]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
Customization.lyx: change fonts as discussed
[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 % the pages of the TOC is numbered roman
18 % and a pdf-bookmark for the TOC is added
19 \let\myTOC\tableofcontents
20 \renewcommand\tableofcontents{%
21   \frontmatter
22   \pdfbookmark[1]{\contentsname}{}
23   \myTOC
24   \mainmatter }
25
26 % Added only for Japanese translation
27 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
28 \usepackage[T1]{fontenc}
29 \end_preamble
30 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
31 \use_default_options false
32 \begin_modules
33 logicalmkup
34 \end_modules
35 \maintain_unincluded_children false
36 \begin_local_layout
37 Format 57
38 InsetLayout Flex:MenuItem
39 LyxType               charstyle
40 LabelString           menu
41 LatexType             command
42 LatexName             menuitem
43 Font
44 Family              Sans
45 EndFont
46 Preamble
47 \newcommand*{\menuitem}[1]{{\sffamily #1}}
48 EndPreamble
49 ResetsFont true
50 End
51 # In case we need to do with sans...
52 #InsetLayout CharStyle:Code
53 #Font
54 #Family              Sans
55 #EndFont
56 #Preamble
57 #\renewcommand{\code}[1]{{\sffamily #1}}
58 #EndPreamble
59 #End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 ResetsFont true
85 End
86 \end_local_layout
87 \language japanese
88 \language_package default
89 \inputencoding auto
90 \fontencoding global
91 \font_roman "default" "default"
92 \font_sans "default" "default"
93 \font_typewriter "default" "default"
94 \font_math "auto" "auto"
95 \font_default_family default
96 \use_non_tex_fonts false
97 \font_sc false
98 \font_osf false
99 \font_sf_scale 100 100
100 \font_tt_scale 100 100
101 \graphics default
102 \default_output_format default
103 \output_sync 0
104 \bibtex_command default
105 \index_command default
106 \paperfontsize 12
107 \spacing single
108 \use_hyperref true
109 \pdf_title "LyX Configuration Manual"
110 \pdf_author "LyX Team"
111 \pdf_subject "LyX-Documentation Customization"
112 \pdf_keywords "LyX, documentation, customization"
113 \pdf_bookmarks false
114 \pdf_bookmarksnumbered true
115 \pdf_bookmarksopen true
116 \pdf_bookmarksopenlevel 1
117 \pdf_breaklinks false
118 \pdf_pdfborder false
119 \pdf_colorlinks true
120 \pdf_backref false
121 \pdf_pdfusetitle false
122 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
123 \papersize default
124 \use_geometry false
125 \use_package amsmath 0
126 \use_package amssymb 0
127 \use_package cancel 0
128 \use_package esint 0
129 \use_package mathdots 0
130 \use_package mathtools 0
131 \use_package mhchem 0
132 \use_package stackrel 0
133 \use_package stmaryrd 0
134 \use_package undertilde 0
135 \cite_engine basic
136 \cite_engine_type default
137 \biblio_style plain
138 \use_bibtopic false
139 \use_indices false
140 \paperorientation portrait
141 \suppress_date false
142 \justification false
143 \use_refstyle 0
144 \branch OutDated
145 \selected 0
146 \filename_suffix 0
147 \color #f5fae7
148 \end_branch
149 \index 索引
150 \shortcut idx
151 \color #008000
152 \end_index
153 \secnumdepth 3
154 \tocdepth 3
155 \paragraph_separation indent
156 \paragraph_indentation default
157 \quotes_language english
158 \papercolumns 1
159 \papersides 2
160 \paperpagestyle headings
161 \tracking_changes false
162 \output_changes false
163 \html_math_output 0
164 \html_css_as_file 0
165 \html_be_strict true
166 \end_header
167
168 \begin_body
169
170 \begin_layout Title
171 \SpecialChar LyX
172 の高度設定
173 \begin_inset Newline newline
174 \end_inset
175
176 熟練ユーザのための各機能
177 \end_layout
178
179 \begin_layout Author
180 \SpecialChar LyX
181 開発チーム
182 \begin_inset Foot
183 status collapsed
184
185 \begin_layout Plain Layout
186 \noindent
187 もしコメントや誤りの修正をお持ちでしたら、\SpecialChar LyX
188 文書化メーリングリスト
189 \begin_inset CommandInset href
190 LatexCommand href
191 target "lyx-docs@lists.lyx.org"
192 type "mailto:"
193
194 \end_inset
195
196 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
197 ast.net>をccにして送ってください。
198 \end_layout
199
200 \end_inset
201
202
203 \begin_inset Newline newline
204 \end_inset
205
206
207 \begin_inset Newline newline
208 \end_inset
209
210 第2.2.x版 
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
216
217 \end_inset
218
219
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 本文書を修正する際には、変更追跡機能を使用してください。これによって、
225 \end_layout
226
227 \begin_layout Plain Layout
228 \SpecialChar LyX
229 翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
230 \end_layout
231
232 \end_inset
233
234
235 \end_layout
236
237 \begin_layout Chapter
238 はじめに
239 \end_layout
240
241 \begin_layout Standard
242 この取扱説明書は、\SpecialChar LyX
243 に備わっている高度設定機能を取り扱います。ここでは、
244 \begin_inset Flex Ruby
245 status collapsed
246
247 \begin_layout Plain Layout
248 捷径
249 \begin_inset Argument post:1
250 status collapsed
251
252 \begin_layout Plain Layout
253 ショートカット
254 \end_layout
255
256 \end_inset
257
258
259 \end_layout
260
261 \end_inset
262
263 や画面プレビューオプション、プリンタオプション、\SpecialChar LyX
264 サーバ経由での\SpecialChar LyX
265 へのコマンド送信、国際化、新しい\SpecialChar LaTeX
266 クラスや\SpecialChar LyX
267 レイアウトの導入などの題材について論じます。おそらくは変更
268 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高
269 度設定については説明を行い、わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです。
270 \end_layout
271
272 \begin_layout Standard
273 \begin_inset Branch OutDated
274 status collapsed
275
276 \begin_layout Standard
277 Information from previous versions of this document that now seems to be
278  outdated is contained in the OutDated branch of this document.
279  By default, this information will not appear in the \SpecialChar LaTeX
280  output.
281 \end_layout
282
283 \end_inset
284
285
286 \end_layout
287
288 \begin_layout Chapter
289 \SpecialChar LyX
290 設定ファイル
291 \end_layout
292
293 \begin_layout Standard
294 本章の目的は、\SpecialChar LyX
295 設定ファイル群を理解するための一助となることです。本章を読み進める前に、
296 \begin_inset Flex MenuItem
297 status collapsed
298
299 \begin_layout Plain Layout
300 ヘルプ\SpecialChar menuseparator
301 L
302 \begin_inset ERT
303 status collapsed
304
305 \begin_layout Plain Layout
306
307 {}
308 \end_layout
309
310 \end_inset
311
312 yXについて
313 \end_layout
314
315 \end_inset
316
317 を使って、\SpecialChar LyX
318 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、\SpecialChar LyX
319 がシステム全体の設定ファイルを置いておくところです。一
320 方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
321 \begin_inset Flex Code
322 status collapsed
323
324 \begin_layout Plain Layout
325 L
326 \begin_inset ERT
327 status collapsed
328
329 \begin_layout Plain Layout
330
331 {}
332 \end_layout
333
334 \end_inset
335
336 yXDir
337 \end_layout
338
339 \end_inset
340
341 と呼び、後者を
342 \begin_inset Flex MenuItem
343 status collapsed
344
345 \begin_layout Plain Layout
346 UserDir
347 \end_layout
348
349 \end_inset
350
351 と呼ぶことにします。
352 \end_layout
353
354 \begin_layout Section
355 \begin_inset Flex Code
356 status collapsed
357
358 \begin_layout Plain Layout
359 L
360 \begin_inset ERT
361 status collapsed
362
363 \begin_layout Plain Layout
364
365 {}
366 \end_layout
367
368 \end_inset
369
370 yXDir
371 \end_layout
372
373 \end_inset
374
375 にはなにがあるの?
376 \end_layout
377
378 \begin_layout Standard
379 \begin_inset Flex Code
380 status collapsed
381
382 \begin_layout Plain Layout
383 L
384 \begin_inset ERT
385 status collapsed
386
387 \begin_layout Plain Layout
388
389 {}
390 \end_layout
391
392 \end_inset
393
394 yXDir
395 \end_layout
396
397 \end_inset
398
399 とそのサブディレクトリには、多くのファイルがあり、\SpecialChar LyX
400 の挙動を高度設定するのに使用されます。これらのファイルの多くは、\SpecialChar LyX
401 内の
402 \begin_inset Flex MenuItem
403 status collapsed
404
405 \begin_layout Plain Layout
406 ツール\SpecialChar menuseparator
407 設定
408 \end_layout
409
410 \end_inset
411
412 ダイアログから変更することができます。\SpecialChar LyX
413 中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、LyXの他
414 の多くの内部動作は、
415 \begin_inset Flex Code
416 status collapsed
417
418 \begin_layout Plain Layout
419 L
420 \begin_inset ERT
421 status collapsed
422
423 \begin_layout Plain Layout
424
425 {}
426 \end_layout
427
428 \end_inset
429
430 yXDir
431 \end_layout
432
433 \end_inset
434
435 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
436 \end_layout
437
438 \begin_layout Subsection
439 自動的に生成されるファイル
440 \end_layout
441
442 \begin_layout Standard
443 \begin_inset Flex MenuItem
444 status collapsed
445
446 \begin_layout Plain Layout
447 UserDir
448 \end_layout
449
450 \end_inset
451
452 にある各ファイルは、\SpecialChar LyX
453 が自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされてしま
454 うので、一般的には修正しないことが望まれます。
455 \end_layout
456
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 lyxrc.defaults
464 \end_layout
465
466 \end_inset
467
468  このファイルには、様々な既定コマンドが置かれています。
469 \end_layout
470
471 \begin_layout Labeling
472 \labelwidthstring 00.00.0000
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 packages.lst
478 \end_layout
479
480 \end_inset
481
482  このファイルには、\SpecialChar LyX
483 が認識したパッケージの一覧が収められています。現在のところ、これは\SpecialChar LyX
484 プログラム自体には使用されていませんが、抽出された情報その他は、
485 \begin_inset Flex MenuItem
486 status collapsed
487
488 \begin_layout Plain Layout
489 ヘルプ\SpecialChar menuseparator
490 LaT
491 \begin_inset ERT
492 status collapsed
493
494 \begin_layout Plain Layout
495
496 {}
497 \end_layout
498
499 \end_inset
500
501 eXの設定
502 \end_layout
503
504 \end_inset
505
506 で見ることができます。
507 \end_layout
508
509 \begin_layout Labeling
510 \labelwidthstring 00.00.0000
511 \begin_inset Flex Code
512 status collapsed
513
514 \begin_layout Plain Layout
515 textclass.lst
516 \end_layout
517
518 \end_inset
519
520  ユーザの
521 \begin_inset Flex Code
522 status collapsed
523
524 \begin_layout Plain Layout
525 Plain L
526 \end_layout
527
528 \end_inset
529
530 ディレクトリで検出されたテキストクラスと、関連した\SpecialChar LaTeX
531 文書クラスおよびその説明の一覧です。
532 \end_layout
533
534 \begin_layout Labeling
535 \labelwidthstring 00.00.0000
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 lyxmodules.lst
541 \end_layout
542
543 \end_inset
544
545  ユーザの
546 \begin_inset Flex Code
547 status collapsed
548
549 \begin_layout Plain Layout
550 layout/
551 \end_layout
552
553 \end_inset
554
555 ディレクトリで検出されたレイアウトモジュールの一覧です。
556 \end_layout
557
558 \begin_layout Labeling
559 \labelwidthstring 00.00.0000
560 \begin_inset Flex Code
561 status collapsed
562
563 \begin_layout Plain Layout
564 *files.lst
565 \end_layout
566
567 \end_inset
568
569  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
570 関連ファイルの一覧です。
571 \end_layout
572
573 \begin_layout Labeling
574 \labelwidthstring 00.00.0000
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 doc/LaT
580 \begin_inset ERT
581 status collapsed
582
583 \begin_layout Plain Layout
584
585 {}
586 \end_layout
587
588 \end_inset
589
590 eXConfig.lyx
591 \end_layout
592
593 \end_inset
594
595  このファイルは、自動設定中に
596 \begin_inset Flex Code
597 status collapsed
598
599 \begin_layout Plain Layout
600 LaT
601 \begin_inset ERT
602 status collapsed
603
604 \begin_layout Plain Layout
605
606 {}
607 \end_layout
608
609 \end_inset
610
611 eXConfig.lyx.in
612 \end_layout
613
614 \end_inset
615
616 から自動的に生成されます。ご使用中の\SpecialChar LaTeX
617 の設定に関する情報が納められています。
618 \end_layout
619
620 \begin_layout Subsection
621 ディレクトリ
622 \end_layout
623
624 \begin_layout Standard
625 以下の各ディレクトリは、
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 L
631 \begin_inset ERT
632 status collapsed
633
634 \begin_layout Plain Layout
635
636 {}
637 \end_layout
638
639 \end_inset
640
641 yXDir
642 \end_layout
643
644 \end_inset
645
646
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651 UserDir
652 \end_layout
653
654 \end_inset
655
656 に重複して存在します。特定のファイルが両方の場所にある場合には、
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 UserDir
662 \end_layout
663
664 \end_inset
665
666 の方にあるものが使用されます。
667 \end_layout
668
669 \begin_layout Labeling
670 \labelwidthstring 00.00.0000
671 \begin_inset Flex Code
672 status collapsed
673
674 \begin_layout Plain Layout
675 bind/
676 \end_layout
677
678 \end_inset
679
680  このディレクトリには、\SpecialChar LyX
681 で使用されるキー割当を定義している、拡張子が
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 .bind
687 \end_layout
688
689 \end_inset
690
691 のファイルが置かれています。
692 \begin_inset Flex Code
693 status collapsed
694
695 \begin_layout Plain Layout
696 $LANG_xxx.bind
697 \end_layout
698
699 \end_inset
700
701 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
702 \end_layout
703
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
707 status collapsed
708
709 \begin_layout Plain Layout
710 clipart/
711 \end_layout
712
713 \end_inset
714
715  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
716 \end_layout
717
718 \begin_layout Labeling
719 \labelwidthstring 00.00.0000
720 \begin_inset Flex Code
721 status collapsed
722
723 \begin_layout Plain Layout
724 doc/
725 \end_layout
726
727 \end_inset
728
729  このディレクトリには、\SpecialChar LyX
730 の取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 LaT
736 \begin_inset ERT
737 status collapsed
738
739 \begin_layout Plain Layout
740
741 {}
742 \end_layout
743
744 \end_inset
745
746 eXConfig.lyx
747 \end_layout
748
749 \end_inset
750
751 ファイルは特に注目に値します。各国語版のヘルプ文書は、
752 \begin_inset Flex Code
753 status collapsed
754
755 \begin_layout Plain Layout
756 doc/xx
757 \end_layout
758
759 \end_inset
760
761 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、
762 \begin_inset CommandInset ref
763 LatexCommand ref
764 reference "cha:LyXの各国語対応"
765
766 \end_inset
767
768 をご覧ください。
769 \end_layout
770
771 \begin_layout Labeling
772 \labelwidthstring 00.00.0000
773 \begin_inset Flex Code
774 status collapsed
775
776 \begin_layout Plain Layout
777 examples/
778 \end_layout
779
780 \end_inset
781
782  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
783 \begin_inset Flex MenuItem
784 status collapsed
785
786 \begin_layout Plain Layout
787 用例
788 \end_layout
789
790 \end_inset
791
792 ボタンを押すと、このディレクトリが表示されます。
793 \end_layout
794
795 \begin_layout Labeling
796 \labelwidthstring 00.00.0000
797 \begin_inset Flex Code
798 status collapsed
799
800 \begin_layout Plain Layout
801 images/
802 \end_layout
803
804 \end_inset
805
806  このディレクトリには、
807 \begin_inset Flex MenuItem
808 status collapsed
809
810 \begin_layout Plain Layout
811 文書
812 \end_layout
813
814 \end_inset
815
816 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、\SpecialChar LyX
817 を起動したときに現れるバナーも納められています。
818 \end_layout
819
820 \begin_layout Labeling
821 \labelwidthstring 00.00.0000
822 \begin_inset Flex Code
823 status collapsed
824
825 \begin_layout Plain Layout
826 kbd/
827 \end_layout
828
829 \end_inset
830
831  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、
832 \begin_inset CommandInset ref
833 LatexCommand ref
834 reference "sec:国際キー配列"
835
836 \end_inset
837
838 をご覧ください。
839 \end_layout
840
841 \begin_layout Labeling
842 \labelwidthstring 00.00.0000
843 \begin_inset Flex Code
844 status collapsed
845
846 \begin_layout Plain Layout
847 layouts/
848 \end_layout
849
850 \end_inset
851
852  このディレクトリには、
853 \begin_inset CommandInset ref
854 LatexCommand ref
855 reference "cha:新規文書を導入"
856
857 \end_inset
858
859 に述べられているテキストクラスおよびモジュールのファイルが納められています。
860 \end_layout
861
862 \begin_layout Labeling
863 \labelwidthstring 00.00.0000
864 \begin_inset Flex Code
865 status collapsed
866
867 \begin_layout Plain Layout
868 lyx2lyx
869 \end_layout
870
871 \end_inset
872
873  このディレクトリには、\SpecialChar LyX
874 の各バージョン間の変換に使用される
875 \begin_inset Flex Code
876 status collapsed
877
878 \begin_layout Plain Layout
879 lyx2lyx
880 \end_layout
881
882 \end_inset
883
884  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
885 \end_layout
886
887 \begin_layout Labeling
888 \labelwidthstring 00.00.0000
889 \begin_inset Flex Code
890 status collapsed
891
892 \begin_layout Plain Layout
893 scripts/
894 \end_layout
895
896 \end_inset
897
898  このディレクトリには、
899 \begin_inset Flex MenuItem
900 status collapsed
901
902 \begin_layout Plain Layout
903 外用ひな型
904 \end_layout
905
906 \end_inset
907
908 機能の有用性を示すためのファイルがいくつか納められています。\SpecialChar LyX
909 自身が使用するスクリプトもいくつか収められています。
910 \end_layout
911
912 \begin_layout Labeling
913 \labelwidthstring 00.00.0000
914 \begin_inset Flex Code
915 status collapsed
916
917 \begin_layout Plain Layout
918 templates/
919 \end_layout
920
921 \end_inset
922
923  このディレクトリには、
924 \begin_inset CommandInset ref
925 LatexCommand ref
926 reference "sec:ひな型を作成する"
927
928 \end_inset
929
930 で述べられている標準の\SpecialChar LyX
931 ひな型ファイルが納められています。
932 \end_layout
933
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 ui/
941 \end_layout
942
943 \end_inset
944
945  このディレクトリには、\SpecialChar LyX
946 の操作画面を定義する拡張子
947 \begin_inset Flex Code
948 status collapsed
949
950 \begin_layout Plain Layout
951 .ui
952 \end_layout
953
954 \end_inset
955
956 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
957 \end_layout
958
959 \begin_layout Subsection
960 変更を加えない方がよいファイル
961 \end_layout
962
963 \begin_layout Standard
964 これらのファイルは\SpecialChar LyX
965 が内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
966 \end_layout
967
968 \begin_layout Labeling
969 \labelwidthstring 00.00.0000
970 \begin_inset Flex Code
971 status collapsed
972
973 \begin_layout Plain Layout
974 CREDITS
975 \end_layout
976
977 \end_inset
978
979  このファイルは、\SpecialChar LyX
980 開発陣の名簿です。この内容は、メニュー項目
981 \begin_inset Flex MenuItem
982 status collapsed
983
984 \begin_layout Plain Layout
985 ヘルプ\SpecialChar menuseparator
986 L
987 \begin_inset ERT
988 status collapsed
989
990 \begin_layout Plain Layout
991
992 {}
993 \end_layout
994
995 \end_inset
996
997 yXについて
998 \end_layout
999
1000 \end_inset
1001
1002 で表示されます。
1003 \end_layout
1004
1005 \begin_layout Labeling
1006 \labelwidthstring 00.00.0000
1007 \begin_inset Flex Code
1008 status collapsed
1009
1010 \begin_layout Plain Layout
1011 chkconfig.ltx
1012 \end_layout
1013
1014 \end_inset
1015
1016  これは、自動設定プロセスによって使用される\SpecialChar LaTeX
1017 スクリプトです。直接実行しないでください。
1018 \end_layout
1019
1020 \begin_layout Labeling
1021 \labelwidthstring 00.00.0000
1022 \begin_inset Flex Code
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026 configure.py
1027 \end_layout
1028
1029 \end_inset
1030
1031  これは、\SpecialChar LyX
1032 の環境構成によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
1033 \end_layout
1034
1035 \begin_layout Subsection
1036 ひとこと必要なファイル群
1037 \end_layout
1038
1039 \begin_layout Labeling
1040 \labelwidthstring 00.00.0000
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 encodings
1046 \end_layout
1047
1048 \end_inset
1049
1050  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
1051 \end_layout
1052
1053 \begin_layout Labeling
1054 \labelwidthstring 00.00.0000
1055 \begin_inset Flex Code
1056 status collapsed
1057
1058 \begin_layout Plain Layout
1059 external_templates
1060 \end_layout
1061
1062 \end_inset
1063
1064  このファイルには、新しく導入された
1065 \begin_inset Flex MenuItem
1066 status collapsed
1067
1068 \begin_layout Plain Layout
1069 外用ひな型
1070 \end_layout
1071
1072 \end_inset
1073
1074 機能で使用できるひな型が載っています。
1075 \begin_inset CommandInset ref
1076 LatexCommand ref
1077 reference "chap:外部素材を取り込む"
1078
1079 \end_inset
1080
1081 を参照のこと。
1082 \end_layout
1083
1084 \begin_layout Labeling
1085 \labelwidthstring 00.00.0000
1086 \begin_inset Flex Code
1087 status collapsed
1088
1089 \begin_layout Plain Layout
1090 languages
1091 \end_layout
1092
1093 \end_inset
1094
1095  このファイルには、現在\SpecialChar LyX
1096 がサポートしている言語の全一覧が載っています。
1097 \end_layout
1098
1099 \begin_layout Labeling
1100 \labelwidthstring 00.00.0000
1101 \begin_inset Flex Code
1102 status collapsed
1103
1104 \begin_layout Plain Layout
1105 latexfonts
1106 \end_layout
1107
1108 \end_inset
1109
1110  サポートされているフォントに関する情報が掲載されています。
1111 \end_layout
1112
1113 \begin_layout Labeling
1114 \labelwidthstring 00.00.0000
1115 \begin_inset Flex Code
1116 status collapsed
1117
1118 \begin_layout Plain Layout
1119 layouttranslations
1120 \end_layout
1121
1122 \end_inset
1123
1124  このファイルは、国際化された段落様式の翻訳が収録されています(
1125 \begin_inset CommandInset ref
1126 LatexCommand ref
1127 reference "subsec:段落様式の国際化"
1128
1129 \end_inset
1130
1131 参照)。
1132 \end_layout
1133
1134 \begin_layout Labeling
1135 \labelwidthstring 00.00.0000
1136 \begin_inset Flex Code
1137 status collapsed
1138
1139 \begin_layout Plain Layout
1140 unicodesymbols
1141 \end_layout
1142
1143 \end_inset
1144
1145  このファイルは、unicodeエンコーディングされたグリフに関する情報と、\SpecialChar LyX
1146 が\SpecialChar LaTeX
1147 を介してそれらをどのようにサポートしているかについての情報を含んでいます。
1148 \end_layout
1149
1150 \begin_layout Section
1151 ユーザのローカル設定ディレクトリ
1152 \end_layout
1153
1154 \begin_layout Standard
1155 \SpecialChar LyX
1156 を非特権ユーザとして利用している場合でも、自分自身で使うために、\SpecialChar LyX
1157 の設定を変更したいと思うかもしれません。
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 UserDir
1163 \end_layout
1164
1165 \end_inset
1166
1167 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1168 \begin_inset Flex MenuItem
1169 status collapsed
1170
1171 \begin_layout Plain Layout
1172 ヘルプ\SpecialChar menuseparator
1173 L
1174 \begin_inset ERT
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178
1179 {}
1180 \end_layout
1181
1182 \end_inset
1183
1184
1185 \begin_inset ERT
1186 status collapsed
1187
1188 \begin_layout Plain Layout
1189
1190 {}
1191 \end_layout
1192
1193 \end_inset
1194
1195 yXについて
1196 \end_layout
1197
1198 \end_inset
1199
1200 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205 L
1206 \begin_inset ERT
1207 status collapsed
1208
1209 \begin_layout Plain Layout
1210
1211 {}
1212 \end_layout
1213
1214 \end_inset
1215
1216 yXDir
1217 \end_layout
1218
1219 \end_inset
1220
1221 のミラーとして使用されており、これは
1222 \begin_inset Flex Code
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 UserDir
1227 \end_layout
1228
1229 \end_inset
1230
1231 内のすべてのファイルが、
1232 \begin_inset Flex Code
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 L
1237 \begin_inset ERT
1238 status collapsed
1239
1240 \begin_layout Plain Layout
1241
1242 {}
1243 \end_layout
1244
1245 \end_inset
1246
1247 yXDir
1248 \end_layout
1249
1250 \end_inset
1251
1252 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1253 \end_layout
1254
1255 \begin_layout Standard
1256 わかりやすくするために、いくつか例を挙げましょう。
1257 \end_layout
1258
1259 \begin_layout Itemize
1260 \begin_inset Flex MenuItem
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 ツール\SpecialChar menuseparator
1265 設定
1266 \end_layout
1267
1268 \end_inset
1269
1270 ダイアログで設定されるユーザ設定は、
1271 \begin_inset Flex Code
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 UserDir
1276 \end_layout
1277
1278 \end_inset
1279
1280 中の
1281 \begin_inset Flex Code
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 preferences
1286 \end_layout
1287
1288 \end_inset
1289
1290 ファイルに保存されます。
1291 \end_layout
1292
1293 \begin_layout Itemize
1294 \begin_inset Flex MenuItem
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 ツール\SpecialChar menuseparator
1299 環境構成
1300 \end_layout
1301
1302 \end_inset
1303
1304 を使用して環境構成を行うと、\SpecialChar LyX
1305
1306 \begin_inset Flex Code
1307 status collapsed
1308
1309 \begin_layout Plain Layout
1310 configure.py
1311 \end_layout
1312
1313 \end_inset
1314
1315 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320 UserDir/layouts
1321 \end_layout
1322
1323 \end_inset
1324
1325 にご自身で追加したテキストファイルは、
1326 \begin_inset Flex MenuItem
1327 status collapsed
1328
1329 \begin_layout Plain Layout
1330 文書\SpecialChar menuseparator
1331 設定
1332 \end_layout
1333
1334 \end_inset
1335
1336 ダイアログのクラス一覧に表示されるようになることを意味します。
1337 \end_layout
1338
1339 \begin_layout Itemize
1340 たとえば、\SpecialChar LyX
1341 のFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとしても、そ
1342 れらのファイルを
1343 \begin_inset Flex Code
1344 status collapsed
1345
1346 \begin_layout Plain Layout
1347 UserDir/doc/
1348 \end_layout
1349
1350 \end_inset
1351
1352 ディレクトリにコピーすれば、
1353 \begin_inset Flex MenuItem
1354 status collapsed
1355
1356 \begin_layout Plain Layout
1357 ヘルプ
1358 \end_layout
1359
1360 \end_inset
1361
1362 メニュー項目はこれらを開くようになります!
1363 \end_layout
1364
1365 \begin_layout Section
1366 \SpecialChar LyX
1367 を複数の設定を使って実行するには
1368 \end_layout
1369
1370 \begin_layout Standard
1371 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1372 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1373 どのディレクトリを使用するか指定するのです。
1374 \end_layout
1375
1376 \begin_layout Standard
1377 \SpecialChar LyX
1378 をコマンドラインスイッチ
1379 \begin_inset Flex Code
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 -userdir
1384 \end_layout
1385
1386 \end_inset
1387
1388 P
1389 \emph on
1390 <ディレクトリ名>
1391 \emph default
1392 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(\SpecialChar LyX
1393
1394 \begin_inset Flex Code
1395 status collapsed
1396
1397 \begin_layout Plain Layout
1398 -userdir
1399 \end_layout
1400
1401 \end_inset
1402
1403 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、\SpecialChar LyX
1404 は、初めて\SpecialChar LyX
1405 を実行したときに既定ディレクトリを訊い
1406 てくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプションを修正す
1407 ることができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1408 \begin_inset Flex Code
1409 status collapsed
1410
1411 \begin_layout Plain Layout
1412 LYX_USERDIR_20x
1413 \end_layout
1414
1415 \end_inset
1416
1417 を特定の値に設定しても、全く同じ効果があります。
1418 \end_layout
1419
1420 \begin_layout Standard
1421 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1422 \begin_inset Flex Code
1423 status collapsed
1424
1425 \begin_layout Plain Layout
1426 NewUserDir/layouts
1427 \end_layout
1428
1429 \end_inset
1430
1431 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1432 クを使用してください。\SpecialChar LyX
1433 が新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにするには、
1434 空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1435 \begin_inset Flex Code
1436 status collapsed
1437
1438 \begin_layout Plain Layout
1439 doc/
1440 \end_layout
1441
1442 \end_inset
1443
1444 サブディレクトリには、設定スクリプト(
1445 \begin_inset Flex MenuItem
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 ツール\SpecialChar menuseparator
1450 環境構成
1451 \end_layout
1452
1453 \end_inset
1454
1455 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1456 \end_layout
1457
1458 \begin_layout Chapter
1459 設定ダイアログ
1460 \end_layout
1461
1462 \begin_layout Standard
1463 設定ダイアログのオプションのすべては、
1464 \emph on
1465 ユーザーの手引き
1466 \emph default
1467 の付録
1468 \emph on
1469 設定ダイアログ
1470 \emph default
1471 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1472 \end_layout
1473
1474 \begin_layout Section
1475 ファイル形式
1476 \begin_inset CommandInset label
1477 LatexCommand label
1478 name "sec:ファイル形式"
1479
1480 \end_inset
1481
1482
1483 \end_layout
1484
1485 \begin_layout Standard
1486 ファイル形式が定義されていない場合、はじめの一歩は、使いたいと思うファイル形式を定義することです。それには、
1487 \begin_inset Flex MenuItem
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 ツール\SpecialChar menuseparator
1492 設定
1493 \end_layout
1494
1495 \end_inset
1496
1497 ダイアログを開いてください。
1498 \begin_inset Flex MenuItem
1499 status collapsed
1500
1501 \begin_layout Plain Layout
1502 ファイル処理\SpecialChar menuseparator
1503 ファイル形式
1504 \end_layout
1505
1506 \end_inset
1507
1508 の中で
1509 \begin_inset Flex MenuItem
1510 status collapsed
1511
1512 \begin_layout Plain Layout
1513 新規\SpecialChar ldots
1514
1515 \end_layout
1516
1517 \end_inset
1518
1519 ボタンを押して、登録する新しい形式を定義してください。
1520 \begin_inset Flex MenuItem
1521 status collapsed
1522
1523 \begin_layout Plain Layout
1524 形式
1525 \end_layout
1526
1527 \end_inset
1528
1529 フィールドは、GUI中で形式を認識するために用いられる名称です。
1530 \begin_inset Flex MenuItem
1531 status collapsed
1532
1533 \begin_layout Plain Layout
1534 短縮名
1535 \end_layout
1536
1537 \end_inset
1538
1539 は、形式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1540 \begin_inset Flex MenuItem
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 捷径
1545 \end_layout
1546
1547 \end_inset
1548
1549 フィールドは、メニュー中で
1550 \begin_inset Flex Ruby
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 捷径
1555 \begin_inset Argument post:1
1556 status collapsed
1557
1558 \begin_layout Plain Layout
1559 ショートカット
1560 \end_layout
1561
1562 \end_inset
1563
1564
1565 \end_layout
1566
1567 \end_inset
1568
1569 を提供するのに使用されます(たとえば、
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 Ctrl+D
1575 \end_layout
1576
1577 \end_inset
1578
1579 を押すと
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 表示\SpecialChar menuseparator
1585 DVI
1586 \end_layout
1587
1588 \end_inset
1589
1590 となります)。
1591 \end_layout
1592
1593 \begin_layout Standard
1594 形式には、
1595 \begin_inset Flex MenuItem
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599 閲覧プログラム
1600 \end_layout
1601
1602 \end_inset
1603
1604
1605 \begin_inset Flex MenuItem
1606 status collapsed
1607
1608 \begin_layout Plain Layout
1609 編集プログラム
1610 \end_layout
1611
1612 \end_inset
1613
1614 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1615 \begin_inset Flex MenuItem
1616 status collapsed
1617
1618 \begin_layout Plain Layout
1619 Ghostview
1620 \end_layout
1621
1622 \end_inset
1623
1624 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1625 いることができます。この閲覧プログラムは、\SpecialChar LyX
1626 中で画像を閲覧したり
1627 \begin_inset Flex MenuItem
1628 status collapsed
1629
1630 \begin_layout Plain Layout
1631 表示
1632 \end_layout
1633
1634 \end_inset
1635
1636 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1637 \begin_inset Flex MenuItem
1638 status collapsed
1639
1640 \begin_layout Plain Layout
1641 外部で編集
1642 \end_layout
1643
1644 \end_inset
1645
1646 を選択したときに起動します。
1647 \end_layout
1648
1649 \begin_layout Standard
1650 ファイル形式の
1651 \begin_inset Flex MenuItem
1652 status collapsed
1653
1654 \begin_layout Plain Layout
1655 MIME
1656 \end_layout
1657
1658 \end_inset
1659
1660 型は必須ではありませんが、指定するときには、すべての形式の中で一意的なものでなくてはなりません。これは、この形式のファイルをファイル内容から検出するのに用いられ
1661 ます。重要なファイル形式のうちには、
1662 \begin_inset CommandInset href
1663 LatexCommand href
1664 name "IANA"
1665 target "http://www.iana.org/assignments/media-types/"
1666
1667 \end_inset
1668
1669 に公式に登録されたMIME型がないものがあります。そこで、\SpecialChar LyX
1670 は、
1671 \begin_inset CommandInset href
1672 LatexCommand href
1673 name "freedesktop.org"
1674 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1675
1676 \end_inset
1677
1678 で指定されているMIME型拡張表を使用しています。
1679 \end_layout
1680
1681 \begin_layout Standard
1682 \begin_inset Flex MenuItem
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 文書形式
1687 \end_layout
1688
1689 \end_inset
1690
1691 オプションは、\SpecialChar LyX
1692 に、この形式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1693 \begin_inset CommandInset ref
1694 LatexCommand ref
1695 reference "sec:変換子"
1696
1697 \end_inset
1698
1699 節を参照)、この形式が
1700 \begin_inset Flex MenuItem
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 ファイル\SpecialChar menuseparator
1705 書き出し
1706 \end_layout
1707
1708 \end_inset
1709
1710
1711 \begin_inset Flex MenuItem
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 表示
1716 \end_layout
1717
1718 \end_inset
1719
1720 footlabel Label color for footnotす。
1721 \begin_inset Flex Code
1722 status collapsed
1723
1724 \begin_layout Plain Layout
1725 png
1726 \end_layout
1727
1728 \end_inset
1729
1730 のような純粋な画像形式は、このオプションを有効にしてはいけません。
1731 \begin_inset Flex Code
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 pdf
1736 \end_layout
1737
1738 \end_inset
1739
1740 のようにベクター画像であると同時に文書でもあるような形式は、これを有効にします。
1741 \end_layout
1742
1743 \begin_layout Standard
1744 \begin_inset Flex MenuItem
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 ベクター画像形式
1749 \end_layout
1750
1751 \end_inset
1752
1753 オプションは、\SpecialChar LyX
1754 にこの形式がベクター画像を含みうることを教示するものです。この情報は、
1755 \begin_inset Flex MenuItem
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 pdflatex
1760 \end_layout
1761
1762 \end_inset
1763
1764 を書き出す際に、内包されている画像をどの形式に変換するかを決定するのに使用されます。
1765 \begin_inset Flex MenuItem
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 pdflatex
1770 \end_layout
1771
1772 \end_inset
1773
1774 は、
1775 \begin_inset Flex MenuItem
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 pdf
1780 \end_layout
1781
1782 \end_inset
1783
1784
1785 \begin_inset Flex MenuItem
1786 status collapsed
1787
1788 \begin_layout Plain Layout
1789 png
1790 \end_layout
1791
1792 \end_inset
1793
1794
1795 \begin_inset Flex MenuItem
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 Des
1800 \end_layout
1801
1802 \end_inset
1803
1804 以外の画像形式を取り扱うことができないので、内包されている画像は、これらの形式に変換される必要があるかもしれない為です。内包されている画像が既に
1805 \begin_inset Flex MenuItem
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 pdf
1810 \end_layout
1811
1812 \end_inset
1813
1814
1815 \begin_inset Flex MenuItem
1816 status collapsed
1817
1818 \begin_layout Plain Layout
1819 png
1820 \end_layout
1821
1822 \end_inset
1823
1824
1825 \begin_inset Flex MenuItem
1826 status collapsed
1827
1828 \begin_layout Plain Layout
1829 jpg
1830 \end_layout
1831
1832 \end_inset
1833
1834 のいずれかになっていない場合には、ベクター画像形式オプションが有効になっている場合には
1835 \begin_inset Flex MenuItem
1836 status collapsed
1837
1838 \begin_layout Plain Layout
1839 pdf
1840 \end_layout
1841
1842 \end_inset
1843
1844 に変換され、そうでない場合には
1845 \begin_inset Flex MenuItem
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 png
1850 \end_layout
1851
1852 \end_inset
1853
1854 に変換されます。
1855 \end_layout
1856
1857 \begin_layout Section
1858 複写子
1859 \end_layout
1860
1861 \begin_layout Standard
1862 形式の変換はすべて、\SpecialChar LyX
1863 の一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがあります
1864 \begin_inset Foot
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1869 あります。
1870 \end_layout
1871
1872 \end_inset
1873
1874 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1875 \end_layout
1876
1877 \begin_layout Standard
1878 複写子の定義においては、以下の4つの変数を用いることができます。
1879 \end_layout
1880
1881 \begin_layout Labeling
1882 \labelwidthstring 00.00.0000
1883 \begin_inset Flex Code
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 $$s
1888 \end_layout
1889
1890 \end_inset
1891
1892  \SpecialChar LyX
1893 のシステムディレクトリ(例:
1894 \begin_inset Flex MenuItem
1895 status collapsed
1896
1897 \begin_layout Plain Layout
1898 /usr/share/lyx
1899 \end_layout
1900
1901 \end_inset
1902
1903
1904 \end_layout
1905
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908 \begin_inset Flex Code
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 $$i
1913 \end_layout
1914
1915 \end_inset
1916
1917  入力ファイル
1918 \end_layout
1919
1920 \begin_layout Labeling
1921 \labelwidthstring 00.00.0000
1922 \begin_inset Flex Code
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926 $$o
1927 \end_layout
1928
1929 \end_inset
1930
1931  出力ファイル
1932 \end_layout
1933
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 $$b
1941 \end_layout
1942
1943 \end_inset
1944
1945  \SpecialChar LyX
1946 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$p
1956 \end_layout
1957
1958 \end_inset
1959
1960  \SpecialChar LyX
1961 一時ディレクトリのフルパス名
1962 \end_layout
1963
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 $$r
1971 \end_layout
1972
1973 \end_inset
1974
1975  処理されている元の\SpecialChar LyX
1976 ファイルのフルパス名
1977 \end_layout
1978
1979 \begin_layout Labeling
1980 \labelwidthstring 00.00.0000
1981 \begin_inset Flex Code
1982 status collapsed
1983
1984 \begin_layout Plain Layout
1985 $$f
1986 \end_layout
1987
1988 \end_inset
1989
1990  \SpecialChar LyX
1991 ファイルのファイル名(ディレクトリパスなし)
1992 \end_layout
1993
1994 \begin_layout Labeling
1995 \labelwidthstring 00.00.0000
1996 \begin_inset Flex Code
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 $$l
2001 \end_layout
2002
2003 \end_inset
2004
2005  「\SpecialChar LaTeX
2006 名」
2007 \end_layout
2008
2009 \begin_layout Standard
2010 最後の変数は、\SpecialChar LaTeX
2011
2012 \series bold
2013
2014 \backslash
2015 include
2016 \series default
2017 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
2018 \end_layout
2019
2020 \begin_layout Standard
2021 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
2022 \begin_inset Flex Code
2023 status collapsed
2024
2025 \begin_layout Plain Layout
2026 /home/you/pdf/
2027 \end_layout
2028
2029 \end_inset
2030
2031 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
2032 \end_layout
2033
2034 \begin_layout Standard
2035 \begin_inset listings
2036 inline false
2037 status open
2038
2039 \begin_layout Plain Layout
2040
2041 #!/bin/bash
2042 \end_layout
2043
2044 \begin_layout Plain Layout
2045
2046 FROMFILE=$1
2047 \end_layout
2048
2049 \begin_layout Plain Layout
2050
2051 TOFILE=`basename $2`
2052 \end_layout
2053
2054 \begin_layout Plain Layout
2055
2056 DescriptionE /home/you/pdf/$TOFILE
2057 \end_layout
2058
2059 \end_inset
2060
2061 これを、例えば
2062 \begin_inset Flex Code
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 /home/you/.lyx/scripts/pdfcopier.sh
2067 \end_layout
2068
2069 \end_inset
2070
2071 のような、自身のローカル\SpecialChar LyX
2072 ディレクトリに保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
2073 \begin_inset Flex MenuItem
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 ツール\SpecialChar menuseparator
2078 設定
2079 \end_layout
2080
2081 \end_inset
2082
2083 ダイアログの
2084 \begin_inset Flex MenuItem
2085 status collapsed
2086
2087 \begin_layout Plain Layout
2088 ファイル処理\SpecialChar menuseparator
2089 ファイル形式
2090 \end_layout
2091
2092 \end_inset
2093
2094 の中で、
2095 \begin_inset Flex MenuItem
2096 status collapsed
2097
2098 \begin_layout Plain Layout
2099 PDF(pdflatex)
2100 \end_layout
2101
2102 \end_inset
2103
2104 形式—あるいは他のPDF形式のうちどれか—を選択し、
2105 \begin_inset Flex MenuItem
2106 status collapsed
2107
2108 \begin_layout Plain Layout
2109 複写子
2110 \end_layout
2111
2112 \end_inset
2113
2114 フィールドに
2115 \begin_inset Flex Code
2116 status collapsed
2117
2118 \begin_layout Plain Layout
2119 pdfcopier.sh $$i $$o
2120 \end_layout
2121
2122 \end_inset
2123
2124 と入力します。
2125 \end_layout
2126
2127 \begin_layout Standard
2128 複写子は、\SpecialChar LyX
2129 自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、\SpecialChar LyX
2130 は自動的に
2131 \begin_inset Flex MenuItem
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135 HTML
2136 \end_layout
2137
2138 \end_inset
2139
2140 形式と
2141 \begin_inset Flex MenuItem
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 HTML
2146 \begin_inset space ~
2147 \end_inset
2148
2149 (MS Word)
2150 \end_layout
2151
2152 \end_inset
2153
2154 形式の複写子を導入します。これらの形式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2155 るように手配します。これらのファイルはすべて、元の\SpecialChar LyX
2156 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2157 \begin_inset Foot
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
2162 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
2163 \begin_inset Flex MenuItem
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167 L
2168 \begin_inset ERT
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172
2173 {}
2174 \end_layout
2175
2176 \end_inset
2177
2178 yXconv
2179 \end_layout
2180
2181 \end_inset
2182
2183 」となっているので、
2184 \begin_inset Flex MenuItem
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188 /path/to/filename.lyx
2189 \end_layout
2190
2191 \end_inset
2192
2193 から生成されたHTMLファイルは、
2194 \begin_inset Flex MenuItem
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 /path/to/filename.html.L
2199 \begin_inset ERT
2200 status collapsed
2201
2202 \begin_layout Plain Layout
2203
2204 {}
2205 \end_layout
2206
2207 \end_inset
2208
2209 yXconv
2210 \end_layout
2211
2212 \end_inset
2213
2214 となります。.
2215  
2216 \end_layout
2217
2218 \end_inset
2219
2220
2221 \end_layout
2222
2223 \begin_layout Section
2224 変換子
2225 \begin_inset CommandInset label
2226 LatexCommand label
2227 name "sec:変換子"
2228
2229 \end_inset
2230
2231
2232 \end_layout
2233
2234 \begin_layout Standard
2235 各形式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
2236 \begin_inset Flex MenuItem
2237 status collapsed
2238
2239 \begin_layout Plain Layout
2240 ツール\SpecialChar menuseparator
2241 設定\SpecialChar menuseparator
2242 ファイル処理\SpecialChar menuseparator
2243 変換子
2244 \end_layout
2245
2246 \end_inset
2247
2248 ダイアログで行います。
2249 \end_layout
2250
2251 \begin_layout Standard
2252 新規に変換子を定義するには、ドロップダウンリストから
2253 \begin_inset Flex MenuItem
2254 status collapsed
2255
2256 \begin_layout Plain Layout
2257 変換元の形式
2258 \end_layout
2259
2260 \end_inset
2261
2262
2263 \begin_inset Flex MenuItem
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 変換先の形式
2268 \end_layout
2269
2270 \end_inset
2271
2272 を選択し、変換に必要なコマンドを入力してから
2273 \begin_inset Flex MenuItem
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277 追加
2278 \end_layout
2279
2280 \end_inset
2281
2282 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2283 \end_layout
2284
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Flex Code
2288 status collapsed
2289
2290 \begin_layout Plain Layout
2291 $$s
2292 \end_layout
2293
2294 \end_inset
2295
2296  \SpecialChar LyX
2297 システムディレクトリ
2298 \end_layout
2299
2300 \begin_layout Labeling
2301 \labelwidthstring 00.00.0000
2302 \begin_inset Flex Code
2303 status collapsed
2304
2305 \begin_layout Plain Layout
2306 $$i
2307 \end_layout
2308
2309 \end_inset
2310
2311  入力ファイル
2312 \end_layout
2313
2314 \begin_layout Labeling
2315 \labelwidthstring 00.00.0000
2316 \begin_inset Flex Code
2317 status collapsed
2318
2319 \begin_layout Plain Layout
2320 $$o
2321 \end_layout
2322
2323 \end_inset
2324
2325  出力ファイル
2326 \end_layout
2327
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 $$b
2335 \end_layout
2336
2337 \end_inset
2338
2339  入力ファイルのベースファイル名(拡張子をとった部分)
2340 \end_layout
2341
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Flex Code
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 $$p
2349 \end_layout
2350
2351 \end_inset
2352
2353  入力ファイルのパス
2354 \end_layout
2355
2356 \begin_layout Labeling
2357 \labelwidthstring 00.00.0000
2358 \begin_inset Flex Code
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362 $$r
2363 \end_layout
2364
2365 \end_inset
2366
2367  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2368 \end_layout
2369
2370 \begin_layout Labeling
2371 \labelwidthstring 00.00.0000
2372 \begin_inset Flex Code
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376 $$e
2377 \end_layout
2378
2379 \end_inset
2380
2381  文書エンコーディングのiconv名
2382 \end_layout
2383
2384 \begin_layout Standard
2385 \begin_inset Flex MenuItem
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389 追加フラグ
2390 \end_layout
2391
2392 \end_inset
2393
2394 フィールドには、以下のフラグをコンマで区切って入力することができます。
2395 \end_layout
2396
2397 \begin_layout Labeling
2398 \labelwidthstring 00.00.0000
2399 \begin_inset Flex Code
2400 status collapsed
2401
2402 \begin_layout Plain Layout
2403 latex
2404 \end_layout
2405
2406 \end_inset
2407
2408  この変換子が\SpecialChar LaTeX
2409 の一種を実行することを示します。これによって、\SpecialChar LyX
2410 の\SpecialChar LaTeX
2411 エラーログに記録を残せるようになります。
2412 \end_layout
2413
2414 \begin_layout Labeling
2415 \labelwidthstring 00.00.0000
2416 \begin_inset Flex Code
2417 status collapsed
2418
2419 \begin_layout Plain Layout
2420 needaux
2421 \end_layout
2422
2423 \end_inset
2424
2425  変換に\SpecialChar LaTeX
2426
2427 \begin_inset Flex MenuItem
2428 status collapsed
2429
2430 \begin_layout Plain Layout
2431 .aux
2432 \end_layout
2433
2434 \end_inset
2435
2436 ファイルが必要であることを示します。
2437 \end_layout
2438
2439 \begin_layout Labeling
2440 \labelwidthstring 00.00.0000
2441 \begin_inset Flex Code
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 nice
2446 \end_layout
2447
2448 \end_inset
2449
2450  バックエンドからの
2451 \begin_inset Quotes erd
2452 \end_inset
2453
2454 nice
2455 \begin_inset Quotes erd
2456 \end_inset
2457
2458 なファイル、つまり\SpecialChar LyX
2459 が書き出す\SpecialChar LaTeX
2460 ファイルのように、
2461 \begin_inset Flex Code
2462 status open
2463
2464 \begin_layout Plain Layout
2465 input@path
2466 \end_layout
2467
2468 \end_inset
2469
2470 のない\SpecialChar LaTeX
2471 ファイルを必要とします。
2472 \end_layout
2473
2474 \begin_layout Labeling
2475 \labelwidthstring 00.00.0000
2476 \begin_inset Flex Code
2477 status collapsed
2478
2479 \begin_layout Plain Layout
2480 xml
2481 \end_layout
2482
2483 \end_inset
2484
2485  出力がXMLであることを示します。
2486 \end_layout
2487
2488 \begin_layout Standard
2489 以下の3つのフラグは 
2490 \begin_inset Flex MenuItem
2491 status collapsed
2492
2493 \begin_layout Plain Layout
2494 key
2495 \begin_inset space ~
2496 \end_inset
2497
2498 =
2499 \begin_inset space ~
2500 \end_inset
2501
2502 value
2503 \end_layout
2504
2505 \end_inset
2506
2507 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2508 \end_layout
2509
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2512 \begin_inset Flex Code
2513 status collapsed
2514
2515 \begin_layout Plain Layout
2516 parselog
2517 \end_layout
2518
2519 \end_inset
2520
2521  これを指定すると、変換子の標準エラーが
2522 \begin_inset Flex Code
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 infile.out
2527 \end_layout
2528
2529 \end_inset
2530
2531 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2532 \begin_inset Flex Code
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 script < infile.out > infile.log
2537 \end_layout
2538
2539 \end_inset
2540
2541 の形で実行されるようになります。引数には
2542 \begin_inset Flex Code
2543 status collapsed
2544
2545 \begin_layout Plain Layout
2546 $$s
2547 \end_layout
2548
2549 \end_inset
2550
2551 を指定することができます。
2552 \end_layout
2553
2554 \begin_layout Labeling
2555 \labelwidthstring 00.00.0000
2556 \begin_inset Flex Code
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 resultdir
2561 \end_layout
2562
2563 \end_inset
2564
2565  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。\SpecialChar LyX
2566 はこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛先にコ
2567 ピーします。引数には、
2568 \begin_inset Flex Code
2569 status collapsed
2570
2571 \begin_layout Plain Layout
2572 $$b
2573 \end_layout
2574
2575 \end_inset
2576
2577 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2578 \begin_inset Newline newline
2579 \end_inset
2580
2581 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2582 \end_layout
2583
2584 \begin_layout Labeling
2585 \labelwidthstring 00.00.0000
2586 \begin_inset Flex Code
2587 status collapsed
2588
2589 \begin_layout Plain Layout
2590 resultfile
2591 \end_layout
2592
2593 \end_inset
2594
2595  これは出力ファイル名を指定するもので、
2596 \begin_inset Flex Code
2597 status collapsed
2598
2599 \begin_layout Plain Layout
2600 $$b
2601 \end_layout
2602
2603 \end_inset
2604
2605 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2606 \end_layout
2607
2608 \begin_layout Standard
2609 最後の3つは、\SpecialChar LyX
2610 とともに導入される変換子には、現在いずれも使用されておりません。
2611 \end_layout
2612
2613 \begin_layout Standard
2614 変換しようとするすべての形式のあいだに変換子を定義する必要はありません。たとえば、「\SpecialChar LyX
2615 からPostScript」変換子が定義されていないのに、\SpecialChar LyX
2616 はPostScrip
2617 tを書き出していることに気づかれることでしょう。これは、まず\SpecialChar LaTeX
2618 ファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTeXからDVI」変換子を
2619 使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。\SpecialChar LyX
2620 はこのような変換子の「連鎖」を自動的に見つけ、つねに最
2621 も短い連鎖を選択します。しかしながら、なお形式間に複数の変換方法を定義することも可能です。たとえば、標準的な\SpecialChar LyX
2622 設定は、\SpecialChar LaTeX
2623 からPDFへ変換するのに、以下の3つの方法を
2624 用意しています。
2625 \end_layout
2626
2627 \begin_layout Enumerate
2628 直接
2629 \begin_inset Flex MenuItem
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 pdflatex
2634 \end_layout
2635
2636 \end_inset
2637
2638 を使用するもの
2639 \end_layout
2640
2641 \begin_layout Enumerate
2642 (DVIと)PostScriptを経由して
2643 \begin_inset Flex MenuItem
2644 status collapsed
2645
2646 \begin_layout Plain Layout
2647 ps2pdf
2648 \end_layout
2649
2650 \end_inset
2651
2652 を使用するもの
2653 \end_layout
2654
2655 \begin_layout Enumerate
2656 DVI経由で
2657 \begin_inset Flex MenuItem
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 dvipdfm
2662 \end_layout
2663
2664 \end_inset
2665
2666 を使用するもの
2667 \end_layout
2668
2669 \begin_layout Enumerate
2670 直接
2671 \begin_inset Flex MenuItem
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 Xe\SpecialChar TeX
2676
2677 \end_layout
2678
2679 \end_inset
2680
2681 を使用するもの
2682 \end_layout
2683
2684 \begin_layout Enumerate
2685 直接
2686 \begin_inset Flex MenuItem
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 Lua\SpecialChar TeX
2691
2692 \end_layout
2693
2694 \end_inset
2695
2696 を使用するもの
2697 \end_layout
2698
2699 \begin_layout Standard
2700 このように代替連鎖を定義するには、第
2701 \begin_inset CommandInset ref
2702 LatexCommand ref
2703 reference "sec:ファイル形式"
2704
2705 \end_inset
2706
2707 節に述べられているように、ターゲットとなる「ファイル形式」を複数定義しなくてはなりません。たとえば、標準設定では、
2708 \begin_inset Flex MenuItem
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712 pdf
2713 \end_layout
2714
2715 \end_inset
2716
2717 (
2718 \begin_inset Flex MenuItem
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 ps2pdf
2723 \end_layout
2724
2725 \end_inset
2726
2727 用)・
2728 \begin_inset Flex MenuItem
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 pdf2
2733 \end_layout
2734
2735 \end_inset
2736
2737 (
2738 \begin_inset Flex MenuItem
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 pdflatex
2743 \end_layout
2744
2745 \end_inset
2746
2747 用)・
2748 \begin_inset Flex MenuItem
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 pdf3
2753 \end_layout
2754
2755 \end_inset
2756
2757 (
2758 \begin_inset Flex MenuItem
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 dvipdfm
2763 \end_layout
2764
2765 \end_inset
2766
2767 用)・
2768 \begin_inset Flex MenuItem
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 pdf4
2773 \end_layout
2774
2775 \end_inset
2776
2777 (
2778 \begin_inset Flex MenuItem
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782 Xe\SpecialChar TeX
2783
2784 \end_layout
2785
2786 \end_inset
2787
2788 用)・
2789 \begin_inset Flex MenuItem
2790 status collapsed
2791
2792 \begin_layout Plain Layout
2793 pdf5
2794 \end_layout
2795
2796 \end_inset
2797
2798 (
2799 \begin_inset Flex MenuItem
2800 status collapsed
2801
2802 \begin_layout Plain Layout
2803 Lua\SpecialChar TeX
2804
2805 \end_layout
2806
2807 \end_inset
2808
2809 用\SpecialChar softhyphen
2810 ) と命名された形式が定義されていて、すべて共通の拡張子
2811 \begin_inset Flex MenuItem
2812 status collapsed
2813
2814 \begin_layout Plain Layout
2815 .pdf
2816 \end_layout
2817
2818 \end_inset
2819
2820 を持ち、上記で言及した各変換方法に対応しています。
2821 \end_layout
2822
2823 \begin_layout Chapter
2824 \SpecialChar LyX
2825 の各国語対応
2826 \begin_inset CommandInset label
2827 LatexCommand label
2828 name "cha:LyXの各国語対応"
2829
2830 \end_inset
2831
2832
2833 \end_layout
2834
2835 \begin_layout Standard
2836 \SpecialChar LyX
2837 は、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、\SpecialChar LyX
2838 は30言語の翻訳を提供しています。選択した言語は、使用する
2839 \emph on
2840 ロケール
2841 \emph default
2842 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2843 \begin_inset Flex Code
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847 locale(5)
2848 \end_layout
2849
2850 \end_inset
2851
2852 から見ると良いかもしれません)。
2853 \end_layout
2854
2855 \begin_layout Standard
2856 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2857 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての
2858 \begin_inset Flex Ruby
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862 捷径
2863 \begin_inset Argument post:1
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 ショートカット
2868 \end_layout
2869
2870 \end_inset
2871
2872
2873 \end_layout
2874
2875 \end_inset
2876
2877 が定義されていないことに気づかれるでしょう。捷径のために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ捷径を定義していないこともあるでしょう。も
2878 ちろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2879 \begin_inset Foot
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、\SpecialChar LyX
2884 コミュニティに報いるたいへん素晴らしい方法です!
2885 \end_layout
2886
2887 \end_inset
2888
2889 —は、\SpecialChar LyX
2890 の将来のバージョンでこれらの欠点を修正しようとするでしょう。
2891 \end_layout
2892
2893 \begin_layout Section
2894 \SpecialChar LyX
2895 を翻訳する
2896 \end_layout
2897
2898 \begin_layout Subsection
2899 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2900 \begin_inset Argument 1
2901 status collapsed
2902
2903 \begin_layout Plain Layout
2904 GUI(テキストメッセージ)を翻訳する
2905 \end_layout
2906
2907 \end_inset
2908
2909
2910 \end_layout
2911
2912 \begin_layout Standard
2913 \SpecialChar LyX
2914 は、操作画面の国際化対応にGNU 
2915 \begin_inset Flex Code
2916 status collapsed
2917
2918 \begin_layout Plain Layout
2919 gettext
2920 \end_layout
2921
2922 \end_inset
2923
2924 ライブラリを使用します。\SpecialChar LyX
2925 のすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2926 \begin_inset Flex Code
2927 status collapsed
2928
2929 \begin_layout Plain Layout
2930 po
2931 \end_layout
2932
2933 \end_inset
2934
2935 ファイルが必要です。このファイルが利用可能であれば、そこから
2936 \begin_inset Flex Code
2937 status collapsed
2938
2939 \begin_layout Plain Layout
2940 mo
2941 \end_layout
2942
2943 \end_inset
2944
2945 ファイルを生成して、この
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 mo
2951 \end_layout
2952
2953 \end_inset
2954
2955 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 gettext
2961 \end_layout
2962
2963 \end_inset
2964
2965 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果を\SpecialChar LyX
2966 コミュニティの他の人々と分かち
2967 合いませんか。どのように段取りを進めればよいか、詳しくは\SpecialChar LyX
2968 開発者メーリングリストにメールを送ってください。
2969 \end_layout
2970
2971 \begin_layout Standard
2972 要約すれば、以下のように行います(xxは言語コードを表します)。
2973 \end_layout
2974
2975 \begin_layout Itemize
2976 \SpecialChar LyX
2977 ソースコードをチェックアウトしてください(
2978 \begin_inset CommandInset href
2979 LatexCommand href
2980 name "ウェブ上の情報"
2981 target "http://www.lyx.org/devel/cvs.php"
2982
2983 \end_inset
2984
2985 参照)。
2986 \end_layout
2987
2988 \begin_layout Itemize
2989 \begin_inset Flex Code
2990 status collapsed
2991
2992 \begin_layout Plain Layout
2993 lyx.pot
2994 \end_layout
2995
2996 \end_inset
2997
2998 ファイルを
2999 \begin_inset Flex Code
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 **.po
3004 \end_layout
3005
3006 \end_inset
3007
3008 ファイルのあるフォルダにコピーして、
3009 \begin_inset Flex Code
3010 status collapsed
3011
3012 \begin_layout Plain Layout
3013 xx.po
3014 \end_layout
3015
3016 \end_inset
3017
3018 に名前を付け替えてください(
3019 \begin_inset Flex Code
3020 status collapsed
3021
3022 \begin_layout Plain Layout
3023 lyx.pot
3024 \end_layout
3025
3026 \end_inset
3027
3028 がどこにもない場合には、コンソールからそのディレクトリで
3029 \begin_inset Flex Code
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 make lyx.pot
3034 \end_layout
3035
3036 \end_inset
3037
3038 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
3039 \end_layout
3040
3041 \begin_layout Itemize
3042 \begin_inset Flex Code
3043 status collapsed
3044
3045 \begin_layout Plain Layout
3046 xx.po
3047 \end_layout
3048
3049 \end_inset
3050
3051 を編集します
3052 \begin_inset Foot
3053 status collapsed
3054
3055 \begin_layout Plain Layout
3056 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
3057 \family typewriter
3058 Poedit
3059 \family default
3060 (全プラットフォーム用)や
3061 \family typewriter
3062 KBabel
3063 \family default
3064 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
3065 \family typewriter
3066 Emacs
3067 \family default
3068 にも
3069 \begin_inset Flex Code
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 po
3074 \end_layout
3075
3076 \end_inset
3077
3078 ファイルを編集するための「モード」があります。
3079 \end_layout
3080
3081 \end_inset
3082
3083 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない
3084 \begin_inset Flex Ruby
3085 status collapsed
3086
3087 \begin_layout Plain Layout
3088 捷径
3089 \begin_inset Argument post:1
3090 status collapsed
3091
3092 \begin_layout Plain Layout
3093 ショートカット
3094 \end_layout
3095
3096 \end_inset
3097
3098
3099 \end_layout
3100
3101 \end_inset
3102
3103 がある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレーズに対応して翻訳しなくてはなりません。さらに、新しい
3104 \begin_inset Flex Code
3105 status collapsed
3106
3107 \begin_layout Plain Layout
3108 po
3109 \end_layout
3110
3111 \end_inset
3112
3113 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
3114 \end_layout
3115
3116 \begin_layout Standard
3117 もし、あなたがこれを自身のためだけに行っているのであれば、
3118 \end_layout
3119
3120 \begin_layout Itemize
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 xx.mo
3126 \end_layout
3127
3128 \end_inset
3129
3130 を生成してください。これは
3131 \begin_inset Flex Code
3132 status collapsed
3133
3134 \begin_layout Plain Layout
3135 msgfmt -o xx.mo < xx.po
3136 \end_layout
3137
3138 \end_inset
3139
3140 でできます。
3141 \end_layout
3142
3143 \begin_layout Itemize
3144 この
3145 \begin_inset Flex Code
3146 status collapsed
3147
3148 \begin_layout Plain Layout
3149 mo
3150 \end_layout
3151
3152 \end_inset
3153
3154 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
3155 \begin_inset Flex Code
3156 status collapsed
3157
3158 \begin_layout Plain Layout
3159 lyx.mo
3160 \end_layout
3161
3162 \end_inset
3163
3164 という名称にしてください(例:
3165 \begin_inset Flex Code
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3170 \end_layout
3171
3172 \end_inset
3173
3174 )。
3175 \end_layout
3176
3177 \begin_layout Standard
3178 しかしながら前述のように、この新しい
3179 \begin_inset Flex Code
3180 status collapsed
3181
3182 \begin_layout Plain Layout
3183 po
3184 \end_layout
3185
3186 \end_inset
3187
3188 ファイルを他の人たちが使用できるよう、\SpecialChar LyX
3189 頒布版に追加できることが最善です。これを追加するには、\SpecialChar LyX
3190 に変更を加える必要がありますので、もしその気があれば、開発者メーリン
3191 グリストに電子メールを送ってください。
3192 \end_layout
3193
3194 \begin_layout Subsubsection
3195 多義訳語メッセージ
3196 \end_layout
3197
3198 \begin_layout Standard
3199 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
3200 \begin_inset Flex Code
3201 status collapsed
3202
3203 \begin_layout Plain Layout
3204 To
3205 \end_layout
3206
3207 \end_inset
3208
3209 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
3210 \begin_inset Flex Code
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 gettext
3215 \end_layout
3216
3217 \end_inset
3218
3219 は、このような多義訳語を
3220 \begin_inset Flex Code
3221 status collapsed
3222
3223 \begin_layout Plain Layout
3224 To
3225 \end_layout
3226
3227 \end_inset
3228
3229 の代わりに、
3230 \begin_inset Flex Code
3231 status collapsed
3232
3233 \begin_layout Plain Layout
3234 To[[as in 'From format x to format y']]
3235 \end_layout
3236
3237 \end_inset
3238
3239
3240 \begin_inset Flex Code
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 To[[as in 'From page x to page y']]
3245 \end_layout
3246
3247 \end_inset
3248
3249 としなくてはなりません。これによって、これら2つの
3250 \begin_inset Flex Code
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 To
3255 \end_layout
3256
3257 \end_inset
3258
3259 は、
3260 \begin_inset Flex Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 gettext
3265 \end_layout
3266
3267 \end_inset
3268
3269 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
3270 \end_layout
3271
3272 \begin_layout Standard
3273 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。\SpecialChar LyX
3274 の翻訳機構
3275 では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
3276 \end_layout
3277
3278 \begin_layout Subsection
3279 説明書を翻訳する
3280 \end_layout
3281
3282 \begin_layout Standard
3283
3284 \begin_inset Flex MenuItem
3285 status collapsed
3286
3287 \begin_layout Plain Layout
3288 Help
3289 \end_layout
3290
3291 \end_inset
3292
3293 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
3294 \begin_inset Foot
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
3299 \end_layout
3300
3301 \end_inset
3302
3303 、ロケールがその言語に設定されている場合、\SpecialChar LyX
3304 はこれを自動的に使用します。\SpecialChar LyX
3305 は、翻訳版を
3306 \begin_inset Flex Code
3307 status collapsed
3308
3309 \begin_layout Plain Layout
3310 L
3311 \begin_inset ERT
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315
3316 {}
3317 \end_layout
3318
3319 \end_inset
3320
3321 yXDir/doc/xx/DocName.lyx
3322 \end_layout
3323
3324 \end_inset
3325
3326
3327 \begin_inset Flex Code
3328 status collapsed
3329
3330 \begin_layout Plain Layout
3331 xx
3332 \end_layout
3333
3334 \end_inset
3335
3336 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
3337 \begin_inset Flex Code
3338 status collapsed
3339
3340 \begin_layout Plain Layout
3341 DocName
3342 \end_layout
3343
3344 \end_inset
3345
3346 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
3347 うべきです。
3348 \end_layout
3349
3350 \begin_layout Itemize
3351 説明書翻訳ウェブページ
3352 \begin_inset CommandInset href
3353 LatexCommand href
3354 name "http://www.lyx.org/Translation"
3355 target "http://www.lyx.org/Translation"
3356
3357 \end_inset
3358
3359 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
3360 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
3361 \end_layout
3362
3363 \begin_layout Standard
3364 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
3365 \end_layout
3366
3367 \begin_layout Itemize
3368 文書化チームに所属してください!そのための情報が
3369 \begin_inset Flex Code
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373 Intro.lyx
3374 \end_layout
3375
3376 \end_inset
3377
3378
3379 \begin_inset Flex MenuItem
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 ヘルプ\SpecialChar menuseparator
3384 はじめの一歩
3385 \end_layout
3386
3387 \end_inset
3388
3389 )にあります。また、この
3390 \begin_inset Flex Code
3391 status collapsed
3392
3393 \begin_layout Plain Layout
3394 Intro.lyx
3395 \end_layout
3396
3397 \end_inset
3398
3399 が最初に訳すべき文書です。
3400 \end_layout
3401
3402 \begin_layout Itemize
3403 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
3404 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
3405 \emph on
3406 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3407 \emph default
3408
3409 \end_layout
3410
3411 \begin_layout Itemize
3412 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417 UserDir/doc/xx/
3418 \end_layout
3419
3420 \end_inset
3421
3422 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
3423 \end_layout
3424
3425 \begin_layout Itemize
3426 (\SpecialChar LyX
3427 チームが維持している)原典の説明書は、時折更新されます。変更点については、
3428 \begin_inset CommandInset href
3429 LatexCommand href
3430 name "http://www.lyx.org/trac/timeline"
3431 target "http://www.lyx.org/trac/timeline"
3432
3433 \end_inset
3434
3435 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
3436 \end_layout
3437
3438 \begin_layout Standard
3439 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
3440 \end_layout
3441
3442 \begin_layout Standard
3443 \begin_inset Branch OutDated
3444 status collapsed
3445
3446 \begin_layout Section
3447 International Keyboard Support
3448 \end_layout
3449
3450 \begin_layout Standard
3451
3452 \emph on
3453 [Editor's Note: The following section is by
3454 \emph default
3455  
3456 \shape smallcaps
3457 \emph on
3458 Ivan Schreter
3459 \shape default
3460 .
3461  It needs to be fixed to conform to the new Documentation Style sheet and
3462  to make use of the new v1.0 features.
3463  The whole thing also needs to be merged with the section following it.-jw
3464  It may also be badly out of date.-rh (2008)]
3465 \end_layout
3466
3467 \begin_layout Subsection
3468 Defining Own Keymaps: Keymap File Format
3469 \end_layout
3470
3471 \begin_layout Standard
3472 Let's look at a keyboard definition file a little closer.
3473  It is a plain text file defining
3474 \end_layout
3475
3476 \begin_layout Itemize
3477 key-to-key or key-to-string translations
3478 \end_layout
3479
3480 \begin_layout Itemize
3481 dead keys
3482 \end_layout
3483
3484 \begin_layout Itemize
3485 dead keys exceptions
3486 \end_layout
3487
3488 \begin_layout Standard
3489 To define key-to-key or key-to-string translation, use this command:
3490 \end_layout
3491
3492 \begin_layout Quotation
3493 \begin_inset Flex Code
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497
3498 \backslash
3499 kmap
3500 \end_layout
3501
3502 \end_inset
3503
3504  
3505 \begin_inset Flex Code
3506 status collapsed
3507
3508 \begin_layout Plain Layout
3509 key
3510 \end_layout
3511
3512 \end_inset
3513
3514  outstring 
3515 \end_layout
3516
3517 \begin_layout Standard
3518 where 
3519 \begin_inset Flex Code
3520 status collapsed
3521
3522 \begin_layout Plain Layout
3523 key
3524 \end_layout
3525
3526 \end_inset
3527
3528  is the key to be translated and 
3529 \begin_inset Flex Code
3530 status collapsed
3531
3532 \begin_layout Plain Layout
3533 outstring
3534 \end_layout
3535
3536 \end_inset
3537
3538  is the string to be inserted into the document.
3539  To define dead keys, use:
3540 \end_layout
3541
3542 \begin_layout Quotation
3543 \begin_inset Flex Code
3544 status collapsed
3545
3546 \begin_layout Plain Layout
3547
3548 \backslash
3549 kmod
3550 \end_layout
3551
3552 \end_inset
3553
3554  
3555 \begin_inset Flex Code
3556 status collapsed
3557
3558 \begin_layout Plain Layout
3559 key
3560 \end_layout
3561
3562 \end_inset
3563
3564  deadkey
3565 \end_layout
3566
3567 \begin_layout Standard
3568 where 
3569 \begin_inset Flex Code
3570 status collapsed
3571
3572 \begin_layout Plain Layout
3573 key
3574 \end_layout
3575
3576 \end_inset
3577
3578  is a keyboard key and 
3579 \begin_inset Flex Code
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 deadkey
3584 \end_layout
3585
3586 \end_inset
3587
3588  is dead key name.
3589  The following dead keys are supported (shortcut name is in parentheses):
3590 \end_layout
3591
3592 \begin_layout Quotation
3593
3594 \emph on
3595 Name
3596 \begin_inset space \hfill{}
3597 \end_inset
3598
3599 Example
3600 \end_layout
3601
3602 \begin_layout Quotation
3603 acute (acu)
3604 \begin_inset space \hfill{}
3605 \end_inset
3606
3607
3608 \lang english
3609 áéíóú
3610 \end_layout
3611
3612 \begin_layout Quotation
3613 grave (gra)
3614 \begin_inset space \hfill{}
3615 \end_inset
3616
3617
3618 \lang english
3619 àèìòù
3620 \end_layout
3621
3622 \begin_layout Quotation
3623 macron (mac)
3624 \begin_inset space \hfill{}
3625 \end_inset
3626
3627
3628 \lang english
3629  ō
3630 \end_layout
3631
3632 \begin_layout Quotation
3633 tilde (til)
3634 \begin_inset space \hfill{}
3635 \end_inset
3636
3637
3638 \lang english
3639 ñÑ
3640 \end_layout
3641
3642 \begin_layout Quotation
3643 underbar (underb)
3644 \begin_inset space \hfill{}
3645 \end_inset
3646
3647
3648 \begin_inset ERT
3649 status open
3650
3651 \begin_layout Plain Layout
3652
3653
3654 \backslash
3655 b o
3656 \end_layout
3657
3658 \end_inset
3659
3660
3661 \end_layout
3662
3663 \begin_layout Quotation
3664 cedilla (ced)
3665 \begin_inset space \hfill{}
3666 \end_inset
3667
3668
3669 \lang english
3670 çÇ
3671 \end_layout
3672
3673 \begin_layout Quotation
3674 underdot (underd)
3675 \begin_inset space \hfill{}
3676 \end_inset
3677
3678
3679 \begin_inset ERT
3680 status open
3681
3682 \begin_layout Plain Layout
3683
3684
3685 \backslash
3686 d o
3687 \end_layout
3688
3689 \end_inset
3690
3691
3692 \end_layout
3693
3694 \begin_layout Quotation
3695 circumflex (circu)
3696 \begin_inset space \hfill{}
3697 \end_inset
3698
3699
3700 \lang english
3701 âêîôû
3702 \end_layout
3703
3704 \begin_layout Quotation
3705 circle (circl)
3706 \begin_inset space \hfill{}
3707 \end_inset
3708
3709
3710 \lang english
3711 ÅůŮ
3712 \end_layout
3713
3714 \begin_layout Quotation
3715 tie (tie)
3716 \begin_inset space \hfill{}
3717 \end_inset
3718
3719
3720 \begin_inset ERT
3721 status open
3722
3723 \begin_layout Plain Layout
3724
3725
3726 \backslash
3727 t o
3728 \end_layout
3729
3730 \end_inset
3731
3732
3733 \end_layout
3734
3735 \begin_layout Quotation
3736 breve (bre)
3737 \begin_inset space \hfill{}
3738 \end_inset
3739
3740
3741 \lang english
3742 ă
3743 \lang japanese
3744
3745 \begin_inset ERT
3746 status open
3747
3748 \begin_layout Plain Layout
3749
3750
3751 \backslash
3752 u o
3753 \end_layout
3754
3755 \end_inset
3756
3757
3758 \end_layout
3759
3760 \begin_layout Quotation
3761 caron (car)
3762 \begin_inset space \hfill{}
3763 \end_inset
3764
3765
3766 \lang english
3767 čšž
3768 \end_layout
3769
3770 \begin_layout Quotation
3771 hungarian umlaut (hug)
3772 \begin_inset space \hfill{}
3773 \end_inset
3774
3775
3776 \lang english
3777 őű
3778 \end_layout
3779
3780 \begin_layout Quotation
3781 umlaut (uml)
3782 \begin_inset space \hfill{}
3783 \end_inset
3784
3785
3786 \lang english
3787 äöü
3788 \end_layout
3789
3790 \begin_layout Quotation
3791 dot (dot)
3792 \begin_inset space \hfill{}
3793 \end_inset
3794
3795
3796 \lang english
3797 ż
3798 \lang japanese
3799
3800 \begin_inset ERT
3801 status open
3802
3803 \begin_layout Plain Layout
3804
3805
3806 \backslash
3807 .s
3808 \end_layout
3809
3810 \end_inset
3811
3812
3813 \end_layout
3814
3815 \begin_layout Standard
3816 Since in many international keyboards there are exceptions to what some
3817  dead keys should do, you can define them using
3818 \end_layout
3819
3820 \begin_layout Quotation
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825
3826 \backslash
3827 kxmod
3828 \end_layout
3829
3830 \end_inset
3831
3832  deadkey key outstring
3833 \end_layout
3834
3835 \begin_layout Standard
3836 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3837 , so you put in
3838 \end_layout
3839
3840 \begin_layout Quotation
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845
3846 \backslash
3847 kxmod
3848 \end_layout
3849
3850 \end_inset
3851
3852  caron o "
3853 \backslash
3854 ^o"
3855 \end_layout
3856
3857 \begin_layout Standard
3858 to make it work correctly.
3859  Also, you have to define as exceptions dead keys over i and j, to remove
3860  the dot from them before inserting an accent mark.
3861  I will change this when the time comes, but so far I haven't had time.
3862 \end_layout
3863
3864 \begin_layout Standard
3865 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3866  double backslash.
3867  Also, quotes and 
3868 \begin_inset Flex Code
3869 status collapsed
3870
3871 \begin_layout Plain Layout
3872 #
3873 \end_layout
3874
3875 \end_inset
3876
3877  have different meaning.
3878  
3879 \begin_inset Flex Code
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 #
3884 \end_layout
3885
3886 \end_inset
3887
3888  marks comments, quotes start and end \SpecialChar LaTeX
3889 -style commands.
3890  To enter quote, you'll need to use 
3891 \begin_inset Flex Code
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895
3896 \backslash
3897 "
3898 \end_layout
3899
3900 \end_inset
3901
3902 , to enter 
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 #
3908 \end_layout
3909
3910 \end_inset
3911
3912 , use 
3913 \begin_inset Flex Code
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917
3918 \backslash
3919 #
3920 \end_layout
3921
3922 \end_inset
3923
3924 .
3925 \end_layout
3926
3927 \begin_layout Standard
3928 If you make a keyboard description file that works for your language, please
3929  mail it to me, so I can include it in the next keymap distribution.
3930 \end_layout
3931
3932 \begin_layout Standard
3933 More keywords will be supported in keymap configuration file in future,
3934  like
3935 \end_layout
3936
3937 \begin_layout Itemize
3938 \begin_inset Flex Code
3939 status collapsed
3940
3941 \begin_layout Plain Layout
3942
3943 \backslash
3944 kinclude filename
3945 \end_layout
3946
3947 \end_inset
3948
3949
3950 \emph on
3951
3952 \begin_inset space \hfill{}
3953 \end_inset
3954
3955
3956 \begin_inset Flex Code
3957 status collapsed
3958
3959 \begin_layout Plain Layout
3960 include
3961 \end_layout
3962
3963 \end_inset
3964
3965  another file
3966 \end_layout
3967
3968 \begin_layout Itemize
3969 \begin_inset Flex Code
3970 status collapsed
3971
3972 \begin_layout Plain Layout
3973
3974 \backslash
3975 kprog program
3976 \end_layout
3977
3978 \end_inset
3979
3980
3981 \emph on
3982
3983 \begin_inset space \hfill{}
3984 \end_inset
3985
3986
3987 \begin_inset Flex Code
3988 status collapsed
3989
3990 \begin_layout Plain Layout
3991 define
3992 \end_layout
3993
3994 \end_inset
3995
3996  an external keymap translation program 
3997 \end_layout
3998
3999 \begin_layout Standard
4000 Also, it should look into 
4001 \begin_inset Flex Code
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005 lyxrc
4006 \end_layout
4007
4008 \end_inset
4009
4010  file for defaults, too (for example, a 
4011 \begin_inset Flex Code
4012 status collapsed
4013
4014 \begin_layout Plain Layout
4015
4016 \backslash
4017 kinclude
4018 \end_layout
4019
4020 \end_inset
4021
4022  option to include default keyboard).
4023 \end_layout
4024
4025 \end_inset
4026
4027
4028 \end_layout
4029
4030 \begin_layout Section
4031 国際キー配列
4032 \begin_inset CommandInset label
4033 LatexCommand label
4034 name "sec:国際キー配列"
4035
4036 \end_inset
4037
4038
4039 \end_layout
4040
4041 \begin_layout Standard
4042 \begin_inset Note Note
4043 status open
4044
4045 \begin_layout Plain Layout
4046 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
4047 \end_layout
4048
4049 \begin_layout Plain Layout
4050 (RH)
4051 \end_layout
4052
4053 \end_inset
4054
4055
4056 \end_layout
4057
4058 \begin_layout Standard
4059 以下の2節では、
4060 \begin_inset Flex Code
4061 status collapsed
4062
4063 \begin_layout Plain Layout
4064 .kmap
4065 \end_layout
4066
4067 \end_inset
4068
4069 および
4070 \begin_inset Flex Code
4071 status collapsed
4072
4073 \begin_layout Plain Layout
4074 .cdef
4075 \end_layout
4076
4077 \end_inset
4078
4079 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
4080 \end_layout
4081
4082 \begin_layout Subsection
4083 .kmapファイル
4084 \end_layout
4085
4086 \begin_layout Standard
4087 \begin_inset Flex Code
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091 .kmap
4092 \end_layout
4093
4094 \end_inset
4095
4096 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
4097 \begin_inset Flex Code
4098 status collapsed
4099
4100 \begin_layout Plain Layout
4101 .kmap
4102 \end_layout
4103
4104 \end_inset
4105
4106 ファイルは、以下の各項で説明するように、
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111 kmap
4112 \end_layout
4113
4114 \end_inset
4115
4116
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121 kmod
4122 \end_layout
4123
4124 \end_inset
4125
4126
4127 \begin_inset Flex Code
4128 status collapsed
4129
4130 \begin_layout Plain Layout
4131 ksmod
4132 \end_layout
4133
4134 \end_inset
4135
4136
4137 \begin_inset Flex Code
4138 status collapsed
4139
4140 \begin_layout Plain Layout
4141 kcomb
4142 \end_layout
4143
4144 \end_inset
4145
4146 のキーワードを定義します。
4147 \end_layout
4148
4149 \begin_layout Labeling
4150 \labelwidthstring 00.00.0000
4151 \begin_inset Flex Code
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155 kmap
4156 \end_layout
4157
4158 \end_inset
4159
4160  文字を文字列に割り当てる
4161 \end_layout
4162
4163 \begin_layout LyX-Code
4164
4165 \backslash
4166 kmap 
4167 \family roman
4168 \emph on
4169 文字
4170 \family default
4171 \emph default
4172  
4173 \family roman
4174 \emph on
4175 文字列
4176 \end_layout
4177
4178 \begin_layout Standard
4179 これは、
4180 \emph on
4181 文字
4182 \emph default
4183
4184 \emph on
4185 文字列
4186 \emph default
4187 に割り当てます。
4188 \emph on
4189 文字列
4190 \emph default
4191 中では、二重引用符(")とバックスラッシュ(
4192 \backslash
4193 )は、前にバックスラッシュ(
4194 \backslash
4195 )を付けてエスケープしなくてはならないことに注意してください。
4196 \end_layout
4197
4198 \begin_layout Standard
4199 \begin_inset Flex MenuItem
4200 status collapsed
4201
4202 \begin_layout Plain Layout
4203 &
4204 \end_layout
4205
4206 \end_inset
4207
4208 を打鍵すると
4209 \begin_inset Flex MenuItem
4210 status collapsed
4211
4212 \begin_layout Plain Layout
4213 /
4214 \end_layout
4215
4216 \end_inset
4217
4218 記号が出力される
4219 \begin_inset Flex MenuItem
4220 status collapsed
4221
4222 \begin_layout Plain Layout
4223 kmap
4224 \end_layout
4225
4226 \end_inset
4227
4228 ステートメントを、一例としてあげると、
4229 \end_layout
4230
4231 \begin_layout LyX-Code
4232
4233 \backslash
4234 kmap & /
4235 \end_layout
4236
4237 \begin_layout Standard
4238 のようになります。
4239 \end_layout
4240
4241 \begin_layout Labeling
4242 \labelwidthstring 00.00.0000
4243 \begin_inset Flex Code
4244 status collapsed
4245
4246 \begin_layout Plain Layout
4247 kmod
4248 \end_layout
4249
4250 \end_inset
4251
4252  アクセント文字を指定する
4253 \end_layout
4254
4255 \begin_layout LyX-Code
4256
4257 \backslash
4258 kmod 
4259 \family roman
4260 \emph on
4261 文字 アクセント 許可文字
4262 \end_layout
4263
4264 \begin_layout Standard
4265 これは
4266 \emph on
4267 文字
4268 \emph default
4269
4270 \emph on
4271 許可文字
4272 \emph default
4273 のアクセントとするものです。これはデッドキー
4274 \begin_inset Foot
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278
4279 \emph on
4280 デッドキー
4281 \emph default
4282 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
4283 \emph on
4284 ä
4285 \emph default
4286 のようなウムラウトのついた文字は、このようにして出すことができます。
4287 \end_layout
4288
4289 \end_inset
4290
4291 機構です。
4292 \end_layout
4293
4294 \begin_layout Standard
4295
4296 \emph on
4297 文字
4298 \emph default
4299 を打鍵してから
4300 \emph on
4301 許可文字
4302 \emph default
4303 にないキーを打鍵すると、
4304 \emph on
4305 文字
4306 \emph default
4307 の後に許可文字ではないその文字が出力として表示されます。
4308 \begin_inset Flex MenuItem
4309 status collapsed
4310
4311 \begin_layout Plain Layout
4312 Backspace
4313 \end_layout
4314
4315 \end_inset
4316
4317 はデッドキーを取り消しますので、
4318 \emph on
4319 文字
4320 \emph default
4321
4322 \begin_inset Flex MenuItem
4323 status collapsed
4324
4325 \begin_layout Plain Layout
4326 Backspace
4327 \end_layout
4328
4329 \end_inset
4330
4331 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
4332 \end_layout
4333
4334 \begin_layout Standard
4335 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
4336 \end_layout
4337
4338 \begin_layout LyX-Code
4339
4340 \backslash
4341 kmod ' acute aeiouAEIOU
4342 \end_layout
4343
4344 \begin_layout Labeling
4345 \labelwidthstring 00.00.0000
4346 \begin_inset Flex Code
4347 status collapsed
4348
4349 \begin_layout Plain Layout
4350 ksmod
4351 \end_layout
4352
4353 \end_inset
4354
4355  アクセント文字に例外を指定する
4356 \end_layout
4357
4358 \begin_layout LyX-Code
4359
4360 \backslash
4361 kxmod  
4362 \family roman
4363 \emph on
4364 アクセント 文字 結果
4365 \end_layout
4366
4367 \begin_layout Standard
4368 これは
4369 \emph on
4370 文字
4371 \emph default
4372 上の
4373 \emph on
4374 アクセント
4375 \emph default
4376 について例外を指定するものです。ここで
4377 \emph on
4378 アクセント
4379 \emph default
4380 には、前出の
4381 \begin_inset Flex Code
4382 status collapsed
4383
4384 \begin_layout Plain Layout
4385
4386 \backslash
4387 kmod
4388 \end_layout
4389
4390 \end_inset
4391
4392 宣言で打鍵キーを既に割り当てられてなくてはならず、
4393 \emph on
4394 文字
4395 \emph default
4396
4397 \emph on
4398 アクセント
4399 \emph default
4400
4401 \emph on
4402 許可文字
4403 \emph default
4404 の集合に属していてはなりません。こうして
4405 \emph on
4406 アクセント
4407 \emph default
4408
4409 \emph on
4410 文字
4411 \emph default
4412 の順に入力すると、
4413 \emph on
4414 結果
4415 \emph default
4416 が出力されるようになります。
4417 \begin_inset Flex Code
4418 status collapsed
4419
4420 \begin_layout Plain Layout
4421 .kmap
4422 \end_layout
4423
4424 \end_inset
4425
4426 ファイルにこの宣言がない場合には、
4427 \emph on
4428 アクセント
4429 \emph default
4430
4431 \emph on
4432 文字
4433 \emph default
4434 と入力すると、
4435 \emph on
4436 アクセントキー
4437 \emph default
4438
4439 \emph on
4440 文字
4441 \emph default
4442
4443 \emph on
4444 アクセントキー
4445 \emph default
4446
4447 \begin_inset Flex Code
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451
4452 \backslash
4453 kmod
4454 \end_layout
4455
4456 \end_inset
4457
4458 宣言の最初の変数)と出力されます。
4459 \end_layout
4460
4461 \begin_layout Standard
4462 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
4463 \end_layout
4464
4465 \begin_layout LyX-Code
4466
4467 \backslash
4468 kxmod acute i "
4469 \backslash
4470
4471 \backslash
4472 '{
4473 \backslash
4474
4475 \backslash
4476 i}"
4477 \end_layout
4478
4479 \begin_layout Labeling
4480 \labelwidthstring 00.00.0000
4481 \begin_inset Flex Code
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 kcomb
4486 \end_layout
4487
4488 \end_inset
4489
4490  2つのアクセント文字を結合する
4491 \end_layout
4492
4493 \begin_layout LyX-Code
4494
4495 \backslash
4496 kcomb 
4497 \family roman
4498 \emph on
4499 アクセント1 アクセント2 許可文字
4500 \end_layout
4501
4502 \begin_layout Standard
4503 これはなかなか難解になってきます。これは
4504 \emph on
4505 アクセント1
4506 \emph default
4507
4508 \emph on
4509 アクセント2
4510 \emph default
4511 を(この順番で)結びつけて、
4512 \emph on
4513 許可文字
4514 \emph default
4515 に効果を及ぼすようにします。
4516 \emph on
4517 アクセント1
4518 \emph default
4519
4520 \emph on
4521 アクセント2
4522 \emph default
4523 の打鍵キーは、ファイル内のこのコマンド
4524 \emph on
4525 よりも前に
4526 \emph default
4527
4528 \begin_inset Flex Code
4529 status collapsed
4530
4531 \begin_layout Plain Layout
4532
4533 \backslash
4534 kmod
4535 \end_layout
4536
4537 \end_inset
4538
4539 コマンドで設定されていなくてはなりません。
4540 \end_layout
4541
4542 \begin_layout Standard
4543 \begin_inset Flex Code
4544 status collapsed
4545
4546 \begin_layout Plain Layout
4547 greek.kmap
4548 \end_layout
4549
4550 \end_inset
4551
4552 ファイル上にある例をとってみましょう。
4553 \end_layout
4554
4555 \begin_layout LyX-Code
4556
4557 \backslash
4558 kmod ; acute aeioyvhAEIOYVH 
4559 \backslash
4560 kmod : umlaut iyIY 
4561 \backslash
4562 kcomb acute umlaut iyIY
4563 \end_layout
4564
4565 \begin_layout Standard
4566 これは
4567 \begin_inset Flex MenuItem
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 ;:i
4572 \end_layout
4573
4574 \end_inset
4575
4576 を押すと
4577 \begin_inset Flex Code
4578 status collapsed
4579
4580 \begin_layout Plain Layout
4581
4582 \backslash
4583 '{
4584 \backslash
4585 "{i}}
4586 \end_layout
4587
4588 \end_inset
4589
4590 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4591 \begin_inset Flex MenuItem
4592 status collapsed
4593
4594 \begin_layout Plain Layout
4595 ;: Backspace i
4596 \end_layout
4597
4598 \end_inset
4599
4600 と押した場合には、
4601 \begin_inset Flex Code
4602 status collapsed
4603
4604 \begin_layout Plain Layout
4605
4606 \backslash
4607 '{i}
4608 \end_layout
4609
4610 \end_inset
4611
4612 となります。
4613 \end_layout
4614
4615 \begin_layout Subsection
4616 .cdefファイル
4617 \end_layout
4618
4619 \begin_layout Standard
4620 \begin_inset Flex Code
4621 status collapsed
4622
4623 \begin_layout Plain Layout
4624 .kmap
4625 \end_layout
4626
4627 \end_inset
4628
4629 による割り当てが行われた後、
4630 \begin_inset Flex Code
4631 status collapsed
4632
4633 \begin_layout Plain Layout
4634 .cdef
4635 \end_layout
4636
4637 \end_inset
4638
4639 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。\SpecialChar LyX
4640 頒布版には、現在のところ、少なくとも
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 iso8859-1.cdef
4646 \end_layout
4647
4648 \end_inset
4649
4650 ファイルと
4651 \begin_inset Flex Code
4652 status collapsed
4653
4654 \begin_layout Plain Layout
4655 iso8859-2.cdef
4656 \end_layout
4657
4658 \end_inset
4659
4660 ファイルが含まれています。
4661 \end_layout
4662
4663 \begin_layout Standard
4664 一般的に
4665 \begin_inset Flex Code
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669 .cdef
4670 \end_layout
4671
4672 \end_inset
4673
4674 ファイルは、
4675 \end_layout
4676
4677 \begin_layout LyX-Code
4678
4679 \family roman
4680 \emph on
4681 セット中の文字番号
4682 \family default
4683 \emph default
4684  
4685 \family roman
4686 \emph on
4687  文字列
4688 \end_layout
4689
4690 \begin_layout Standard
4691 という形の宣言の羅列です。たとえば、
4692 \begin_inset Flex MenuItem
4693 status collapsed
4694
4695 \begin_layout Plain Layout
4696
4697 \backslash
4698 '{e}
4699 \end_layout
4700
4701 \end_inset
4702
4703 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4704 \end_layout
4705
4706 \begin_layout LyX-Code
4707 233 "
4708 \backslash
4709
4710 \backslash
4711 '{e}"
4712 \end_layout
4713
4714 \begin_layout Standard
4715 ここで、
4716 \emph on
4717 文字列
4718 \emph default
4719 中の
4720 \begin_inset Flex Code
4721 status collapsed
4722
4723 \begin_layout Plain Layout
4724
4725 \backslash
4726
4727 \end_layout
4728
4729 \end_inset
4730
4731
4732 \begin_inset Flex Code
4733 status collapsed
4734
4735 \begin_layout Plain Layout
4736 "
4737 \end_layout
4738
4739 \end_inset
4740
4741 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4742 \begin_inset Flex Code
4743 status collapsed
4744
4745 \begin_layout Plain Layout
4746 iso-8859-7.cdef
4747 \end_layout
4748
4749 \end_inset
4750
4751 ファイルには、
4752 \end_layout
4753
4754 \begin_layout LyX-Code
4755 192 "
4756 \backslash
4757
4758 \backslash
4759 '{
4760 \backslash
4761
4762 \backslash
4763
4764 \backslash
4765 "{i}}"
4766 \begin_inset Newline newline
4767 \end_inset
4768
4769 192 "
4770 \backslash
4771
4772 \backslash
4773
4774 \backslash
4775 "{
4776 \backslash
4777
4778 \backslash
4779 '{i}}"
4780 \end_layout
4781
4782 \begin_layout Standard
4783 という例があります。\SpecialChar LyX
4784 は、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈ができない
4785 かどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4786 \end_layout
4787
4788 \begin_layout Subsection
4789 デッドキー
4790 \end_layout
4791
4792 \begin_layout Standard
4793 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4794 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4795 \end_layout
4796
4797 \begin_layout Standard
4798 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4799 \begin_inset Flex Code
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803 lyxrc
4804 \end_layout
4805
4806 \end_inset
4807
4808 ファイル中で、
4809 \begin_inset Flex MenuItem
4810 status collapsed
4811
4812 \begin_layout Plain Layout
4813 ^
4814 \end_layout
4815
4816 \end_inset
4817
4818 キー(すなわち
4819 \begin_inset Flex MenuItem
4820 status collapsed
4821
4822 \begin_layout Plain Layout
4823 Shift-6
4824 \end_layout
4825
4826 \end_inset
4827
4828 キー)を、\SpecialChar LyX
4829 コマンドの
4830 \begin_inset Flex Code
4831 status collapsed
4832
4833 \begin_layout Plain Layout
4834 accent-circumflex
4835 \end_layout
4836
4837 \end_inset
4838
4839 に結びつけることができます。すると
4840 \begin_inset Flex MenuItem
4841 status collapsed
4842
4843 \begin_layout Plain Layout
4844 ^
4845 \end_layout
4846
4847 \end_inset
4848
4849 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4850 \begin_inset Flex MenuItem
4851 status collapsed
4852
4853 \begin_layout Plain Layout
4854 ^e
4855 \end_layout
4856
4857 \end_inset
4858
4859 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4860 \begin_inset Flex MenuItem
4861 status collapsed
4862
4863 \begin_layout Plain Layout
4864 ^t
4865 \end_layout
4866
4867 \end_inset
4868
4869 」と打鍵したならば、「
4870 \begin_inset Flex MenuItem
4871 status collapsed
4872
4873 \begin_layout Plain Layout
4874 t
4875 \end_layout
4876
4877 \end_inset
4878
4879 」は曲折アクセントをとることは決してないために、\SpecialChar LyX
4880 はビープを鳴らして文句を付けます。デッドキーの後に
4881 \begin_inset Flex MenuItem
4882 status collapsed
4883
4884 \begin_layout Plain Layout
4885 スペース
4886 \end_layout
4887
4888 \end_inset
4889
4890 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4891 あります。たとえば、
4892 \begin_inset Flex MenuItem
4893 status collapsed
4894
4895 \begin_layout Plain Layout
4896 ,キー
4897 \end_layout
4898
4899 \end_inset
4900
4901 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4902 \end_layout
4903
4904 \begin_layout Standard
4905 デッドキーを割り当てるのによく用いられる方法は、
4906 \begin_inset Flex MenuItem
4907 status collapsed
4908
4909 \begin_layout Plain Layout
4910 Meta-
4911 \end_layout
4912
4913 \end_inset
4914
4915
4916 \begin_inset Flex MenuItem
4917 status collapsed
4918
4919 \begin_layout Plain Layout
4920 Ctrl-
4921 \end_layout
4922
4923 \end_inset
4924
4925
4926 \begin_inset Flex MenuItem
4927 status collapsed
4928
4929 \begin_layout Plain Layout
4930 Shift-
4931 \end_layout
4932
4933 \end_inset
4934
4935 キーを、「
4936 \begin_inset Flex MenuItem
4937 status collapsed
4938
4939 \begin_layout Plain Layout
4940 ~
4941 \end_layout
4942
4943 \end_inset
4944
4945 」・「
4946 \begin_inset Flex MenuItem
4947 status collapsed
4948
4949 \begin_layout Plain Layout
4950 ,
4951 \end_layout
4952
4953 \end_inset
4954
4955 」・「
4956 \begin_inset Flex MenuItem
4957 status collapsed
4958
4959 \begin_layout Plain Layout
4960 ^
4961 \end_layout
4962
4963 \end_inset
4964
4965 」のようなアクセントと一緒に用いる方法です。また、
4966 \begin_inset Flex Code
4967 status collapsed
4968
4969 \begin_layout Plain Layout
4970 xmodmap
4971 \end_layout
4972
4973 \end_inset
4974
4975
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980 xkeycaps
4981 \end_layout
4982
4983 \end_inset
4984
4985 を使って、特別な
4986 \begin_inset Flex Code
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 Mode_Switch
4991 \end_layout
4992
4993 \end_inset
4994
4995 キーを設定する方法もあります。
4996 \begin_inset Flex Code
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 Mode_Switch
5001 \end_layout
5002
5003 \end_inset
5004
5005 キーは、ちょうど
5006 \begin_inset Flex MenuItem
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 Shift
5011 \end_layout
5012
5013 \end_inset
5014
5015 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
5016 \begin_inset Flex Code
5017 status collapsed
5018
5019 \begin_layout Plain Layout
5020 usldead_cedilla
5021 \end_layout
5022
5023 \end_inset
5024
5025 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応する\SpecialChar LyX
5026 コマンドに割り当てることもできます
5027 \begin_inset Foot
5028 status collapsed
5029
5030 \begin_layout Plain Layout
5031
5032 \noun on
5033 John Weiss
5034 \noun default
5035 からの註:これはまさに私が、自分の
5036 \begin_inset Flex Code
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040 ~/.lyx/lyxrc
5041 \end_layout
5042
5043 \end_inset
5044
5045
5046 \begin_inset Flex Code
5047 status collapsed
5048
5049 \begin_layout Plain Layout
5050 ~/.xmodmap
5051 \end_layout
5052
5053 \end_inset
5054
5055 で行っていることです。私は、
5056 \begin_inset Flex MenuItem
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060 Scroll
5061 \begin_inset space ~
5062 \end_inset
5063
5064 Lock
5065 \end_layout
5066
5067 \end_inset
5068
5069 キーを
5070 \begin_inset Flex Code
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074 Mode_Shift
5075 \end_layout
5076
5077 \end_inset
5078
5079 に仕立てて、多数の
5080 \begin_inset Flex Code
5081 status collapsed
5082
5083 \begin_layout Plain Layout
5084 usldead_*
5085 \end_layout
5086
5087 \end_inset
5088
5089 シンボリックキーを
5090 \begin_inset Flex MenuItem
5091 status collapsed
5092
5093 \begin_layout Plain Layout
5094 Scroll
5095 \begin_inset space ~
5096 \end_inset
5097
5098 Lock-^
5099 \end_layout
5100
5101 \end_inset
5102
5103
5104 \begin_inset Flex MenuItem
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108 Scroll
5109 \begin_inset space ~
5110 \end_inset
5111
5112 Lock-~
5113 \end_layout
5114
5115 \end_inset
5116
5117 などに割り当てています。私はこの方法でアクセント文字を入力しています。
5118 \end_layout
5119
5120 \end_inset
5121
5122 。この
5123 \begin_inset Flex Code
5124 status collapsed
5125
5126 \begin_layout Plain Layout
5127 Mode_Switch
5128 \end_layout
5129
5130 \end_inset
5131
5132 キーには、
5133 \begin_inset Flex MenuItem
5134 status collapsed
5135
5136 \begin_layout Plain Layout
5137 Ctrl-
5138 \end_layout
5139
5140 \end_inset
5141
5142 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出す\SpecialChar LyX
5143 コマンドについては、
5144 \emph on
5145 \SpecialChar LyX
5146 関数説明書
5147 \emph default
5148
5149 \begin_inset Flex Code
5150 status collapsed
5151
5152 \begin_layout Plain Layout
5153 LFUN_ACCENT_*
5154 \end_layout
5155
5156 \end_inset
5157
5158 の項をご覧ください。ここには完備した一覧があります。
5159 \end_layout
5160
5161 \begin_layout Subsection
5162 自分の言語設定を保存する
5163 \end_layout
5164
5165 \begin_layout Standard
5166 \begin_inset Flex MenuItem
5167 status collapsed
5168
5169 \begin_layout Plain Layout
5170 ツール\SpecialChar menuseparator
5171 設定
5172 \end_layout
5173
5174 \end_inset
5175
5176 ダイアログを使えば、\SpecialChar LyX
5177 を起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
5178 \end_layout
5179
5180 \begin_layout Chapter
5181 文書クラス・レイアウト・ひな型の新規導入
5182 \begin_inset CommandInset label
5183 LatexCommand label
5184 name "cha:新規文書を導入"
5185
5186 \end_inset
5187
5188
5189 \begin_inset Argument 1
5190 status collapsed
5191
5192 \begin_layout Plain Layout
5193 文書クラスを新規に導入する
5194 \end_layout
5195
5196 \end_inset
5197
5198
5199 \end_layout
5200
5201 \begin_layout Standard
5202 この章では、新しく\SpecialChar LyX
5203 のレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規に\SpecialChar LaTeX
5204 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5205 します。
5206 \end_layout
5207
5208 \begin_layout Standard
5209 まず、\SpecialChar LyX
5210 と\SpecialChar LaTeX
5211 の間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、\SpecialChar LyX
5212 は、La\SpecialChar TeX
5213 について何も知らないと
5214 云うことです。実際のところ、\SpecialChar LyX
5215 の観点からは、\SpecialChar LaTeX
5216 は、\SpecialChar LyX
5217 が出力を生成することができる、複数の「バックエンド形式」のうちの一つに過ぎないということです。同種のバックエンド形
5218 式には、DocBook・平文・XHTMLがあります。もちろん\SpecialChar LaTeX
5219 は、とくに重要な形式ですが、\SpecialChar LyX
5220 がLa\SpecialChar TeX
5221 について持っている情報のほとんどは、実はプログラム本体には含まれて
5222 いないのです
5223 \begin_inset Foot
5224 status collapsed
5225
5226 \begin_layout Plain Layout
5227 過度に複雑なため、\SpecialChar LyX
5228 に「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
5229 \end_layout
5230
5231 \end_inset
5232
5233 。このような情報は、
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 article.cls
5239 \end_layout
5240
5241 \end_inset
5242
5243 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、\SpecialChar LyX
5244 は、DocBookやXHTMLについてもほとんど知りません。\SpecialChar LyX
5245 が知っていることは、レイア
5246 ウトファイルの中にあります。
5247 \end_layout
5248
5249 \begin_layout Standard
5250 文書クラス用のレイアウトファイルは、\SpecialChar LyX
5251 構成体—対応する様式や何らかの差込枠などを有する段落群—と、それに対応する\SpecialChar LaTeX
5252 構成体・DocBook構成体・XHTML構成体との
5253 間の翻訳指南書のようなものです。たとえば、\SpecialChar LyX
5254
5255 \begin_inset Flex Code
5256 status collapsed
5257
5258 \begin_layout Plain Layout
5259 article.cls
5260 \end_layout
5261
5262 \end_inset
5263
5264 について知っていることのほとんど総ては、
5265 \begin_inset Flex Code
5266 status collapsed
5267
5268 \begin_layout Plain Layout
5269 article.layout
5270 \end_layout
5271
5272 \end_inset
5273
5274 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
5275 としては、
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280 article.layout
5281 \end_layout
5282
5283 \end_inset
5284
5285
5286 \begin_inset Flex Code
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290 book.layout
5291 \end_layout
5292
5293 \end_inset
5294
5295 や、文書クラス用の他のレイアウトファイルに取り込まれている
5296 \begin_inset Flex Code
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300 stdsections.inc
5301 \end_layout
5302
5303 \end_inset
5304
5305 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
5306 \begin_inset Flex Code
5307 status collapsed
5308
5309 \begin_layout Plain Layout
5310 stdsections.inc
5311 \end_layout
5312
5313 \end_inset
5314
5315 は、節様式や小節様式などとしてマークされている段落を、対応する\SpecialChar LaTeX
5316 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5317 に知らせるものです。基本的に
5318 \begin_inset Flex Code
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322 article.layout
5323 \end_layout
5324
5325 \end_inset
5326
5327 ファイルは、これらの
5328 \begin_inset Flex Code
5329 status collapsed
5330
5331 \begin_layout Plain Layout
5332 std*.inc
5333 \end_layout
5334
5335 \end_inset
5336
5337 ファイルを取り込んでいるだけのものです。
5338 \end_layout
5339
5340 \begin_layout Standard
5341 しかしながら、\SpecialChar LyX
5342 –\SpecialChar LaTeX
5343 間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、\SpecialChar LyX
5344 構成体自身が画面上にどのように表
5345 示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば混乱を引き起こす元となり
5346 ます。ある段落様式を\SpecialChar LaTeX
5347 に翻訳する仕方を\SpecialChar LyX
5348 に指示することは、その表示の仕方を\SpecialChar LyX
5349 に指示するものではありません。逆に、ある段落様式の表示の仕方を\SpecialChar LyX
5350 に指示することは、その段落様
5351 式をどのように\SpecialChar LaTeX
5352 に翻訳するかを\SpecialChar LyX
5353 に指示するものではありません(ましてや\SpecialChar LaTeX
5354 に表示の仕方を指示するものではありません)。つまり、一般的に、新しい\SpecialChar LyX
5355 構成体を定義する際には、(
5356 i)
5357 \begin_inset space ~
5358 \end_inset
5359
5360 \SpecialChar LaTeX
5361 にどのように翻訳するかを\SpecialChar LyX
5362 に指示する、(ii)
5363 \begin_inset space ~
5364 \end_inset
5365
5366 それをどのように表示するかを\SpecialChar LyX
5367 に指示する、という、二つのかなり異なることを行わなくてはならないのです。
5368 \end_layout
5369
5370 \begin_layout Standard
5371 もちろん、\SpecialChar LyX
5372 の他のバックエンド形式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、\SpecialChar LyX
5373 が、ブラウザ中での段落の表示方法を(CSSの形で)出
5374 力するにあたって、当該段落を\SpecialChar LyX
5375 が画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、\SpecialChar LyX
5376 が内部的に行うことと、外部的に行う物事の間の区
5377 別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
5378 \begin_inset CommandInset ref
5379 LatexCommand ref
5380 reference "sec:XHTML出力のタグ"
5381
5382 \end_inset
5383
5384 節をご覧ください。
5385 \end_layout
5386
5387 \begin_layout Section
5388 新しい\SpecialChar LaTeX
5389 ファイルの導入
5390 \end_layout
5391
5392 \begin_layout Standard
5393 頒布版によっては、\SpecialChar LyX
5394 で使いたい\SpecialChar LaTeX
5395 パッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライドを準備するための
5396 パッケージである、Foil\SpecialChar TeX
5397 がないかもしれません。\SpecialChar TeX
5398 Live(2008年以降)やMiK\SpecialChar TeX
5399 のような最近の\SpecialChar LaTeX
5400 頒布版には、これらのパッケージを導入するためのユーザーインタフェ
5401 ースが用意されています。たとえば、MiK\SpecialChar TeX
5402 では、付属の「Package
5403 \begin_inset space ~
5404 \end_inset
5405
5406 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
5407 ださい。
5408 \end_layout
5409
5410 \begin_layout Standard
5411 お使いの\SpecialChar LaTeX
5412 頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って手動で導入
5413 してください。
5414 \end_layout
5415
5416 \begin_layout Enumerate
5417 \begin_inset CommandInset href
5418 LatexCommand href
5419 name "CTAN"
5420 target "http://www.ctan.org/"
5421
5422 \end_inset
5423
5424 などから欲しいパッケージを入手してください。
5425 \end_layout
5426
5427 \begin_layout Enumerate
5428 パッケージに「
5429 \begin_inset Flex Code
5430 status collapsed
5431
5432 \begin_layout Plain Layout
5433 .ins
5434 \end_layout
5435
5436 \end_inset
5437
5438 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5439 がその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
5440 \begin_inset Flex Code
5441 status collapsed
5442
5443 \begin_layout Plain Layout
5444 latex foiltex.ins
5445 \end_layout
5446
5447 \end_inset
5448
5449 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていの\SpecialChar LaTeX
5450 パッケージは圧縮されていないので、このステップは飛ばすこ
5451 とができます。
5452 \end_layout
5453
5454 \begin_layout Enumerate
5455 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
5456 \begin_inset Separator parbreak
5457 \end_inset
5458
5459
5460 \end_layout
5461
5462 \begin_deeper
5463 \begin_layout Enumerate
5464 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」\SpecialChar TeX
5465 ツリーに導入し、そうでなければ「ユー
5466 ザー」\SpecialChar TeX
5467 ツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472 texmf.cnf
5473 \end_layout
5474
5475 \end_inset
5476
5477 ファイルを参照してください
5478 \begin_inset Foot
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 このファイルは、通常
5483 \family sans
5484 $TEXMF/web2c
5485 \family default
5486 ディレクトリにありますが、コマンド
5487 \begin_inset Flex Code
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 kpsewhich texmf.cnf
5492 \end_layout
5493
5494 \end_inset
5495
5496 を実行してその場所を見つけることもできます。
5497 \end_layout
5498
5499 \end_inset
5500
5501 。「ローカル」\SpecialChar TeX
5502 ツリーの場所は、
5503 \begin_inset Flex Code
5504 status collapsed
5505
5506 \begin_layout Plain Layout
5507 TEXMFLOCAL
5508 \end_layout
5509
5510 \end_inset
5511
5512 変数で定義されており、通常は
5513 \begin_inset Flex Code
5514 status collapsed
5515
5516 \begin_layout Plain Layout
5517 /usr/local/share/texmf/
5518 \end_layout
5519
5520 \end_inset
5521
5522 のような場所になっています。「ユーザー」\SpecialChar TeX
5523 ツリーの場所は、
5524 \begin_inset Flex Code
5525 status collapsed
5526
5527 \begin_layout Plain Layout
5528 TEXMFHOME
5529 \end_layout
5530
5531 \end_inset
5532
5533 で定義されており、通常は
5534 \begin_inset Flex Code
5535 status collapsed
5536
5537 \begin_layout Plain Layout
5538 $HOME/texmf/
5539 \end_layout
5540
5541 \end_inset
5542
5543 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5544 、「ユーザー」ツリーにはこのような制限はありません。
5545 \begin_inset Newline newline
5546 \end_inset
5547
5548 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5549 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5550 \end_layout
5551
5552 \begin_layout Enumerate
5553 Windowで、システム上の全ユーザーに新パッケージを利用可能にしたい場合には、\SpecialChar LaTeX
5554 の導入されているフォルダのサブフォルダ
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 ~
5560 \backslash
5561 tex
5562 \backslash
5563 latex
5564 \end_layout
5565
5566 \end_inset
5567
5568 に移動します(MiK\SpecialChar TeX
5569 の既定値では、これは
5570 \begin_inset Flex Code
5571 status collapsed
5572
5573 \begin_layout Plain Layout
5574 ~:Programs
5575 \backslash
5576 MiKT
5577 \begin_inset ERT
5578 status collapsed
5579
5580 \begin_layout Plain Layout
5581
5582 {}
5583 \end_layout
5584
5585 \end_inset
5586
5587 eX
5588 \backslash
5589 tex
5590 \backslash
5591 latex
5592 \end_layout
5593
5594 \end_inset
5595
5596 です)
5597 \begin_inset Foot
5598 status open
5599
5600 \begin_layout Plain Layout
5601 これは、英語版でのみ正しいパスになっています。独語版では
5602 \begin_inset Flex Code
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 ~:Programme
5607 \backslash
5608 MiK\SpecialChar TeX
5609
5610 \backslash
5611 tex
5612 \backslash
5613 latex
5614 \end_layout
5615
5616 \end_inset
5617
5618 となり、他の言語でも同様です。
5619 \end_layout
5620
5621 \end_inset
5622
5623 。ここに新規フォルダ
5624 \begin_inset Flex Code
5625 status collapsed
5626
5627 \begin_layout Plain Layout
5628 foiltex
5629 \end_layout
5630
5631 \end_inset
5632
5633 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカル\SpecialChar LaTeX
5634 フォルダで同じ
5635 ことを行います。たとえばMiK\SpecialChar TeX
5636
5637 \begin_inset space ~
5638 \end_inset
5639
5640 2.8では、これはWinXP上では
5641 \begin_inset Newline newline
5642 \end_inset
5643
5644
5645 \begin_inset Flex Code
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649 ~:
5650 \backslash
5651 Documents and Settings
5652 \backslash
5653 <ユーザー名>
5654 \backslash
5655 Application Data
5656 \backslash
5657
5658 \end_layout
5659
5660 \end_inset
5661
5662
5663 \begin_inset Newline newline
5664 \end_inset
5665
5666
5667 \begin_inset Phantom HPhantom
5668 status open
5669
5670 \begin_layout Plain Layout
5671
5672 \family typewriter
5673 ~:
5674 \backslash
5675
5676 \end_layout
5677
5678 \end_inset
5679
5680
5681 \begin_inset Flex Code
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685 MiKT
5686 \begin_inset ERT
5687 status collapsed
5688
5689 \begin_layout Plain Layout
5690
5691 {}
5692 \end_layout
5693
5694 \end_inset
5695
5696 eX
5697 \backslash
5698 2.8
5699 \backslash
5700 tex
5701 \backslash
5702 latex
5703 \end_layout
5704
5705 \end_inset
5706
5707
5708 \begin_inset Newline newline
5709 \end_inset
5710
5711 フォルダ、WinVista上では
5712 \begin_inset Newline newline
5713 \end_inset
5714
5715
5716 \begin_inset Flex Code
5717 status collapsed
5718
5719 \begin_layout Plain Layout
5720 ~:
5721 \backslash
5722 Users
5723 \backslash
5724 <ユーザー名>
5725 \backslash
5726 AppData
5727 \backslash
5728 Roaming
5729 \backslash
5730 2.8
5731 \backslash
5732 MiKT
5733 \begin_inset ERT
5734 status collapsed
5735
5736 \begin_layout Plain Layout
5737
5738 {}
5739 \end_layout
5740
5741 \end_inset
5742
5743 eX
5744 \backslash
5745 tex
5746 \backslash
5747 latex
5748 \end_layout
5749
5750 \end_inset
5751
5752
5753 \begin_inset Newline newline
5754 \end_inset
5755
5756 フォルダになります。
5757 \end_layout
5758
5759 \end_deeper
5760 \begin_layout Enumerate
5761 ここまで来れば、あとは\SpecialChar LaTeX
5762 に新しいファイルがあることを告げるだけです。これは使用している\SpecialChar LaTeX
5763 頒布版に依存します。
5764 \begin_inset Separator parbreak
5765 \end_inset
5766
5767
5768 \end_layout
5769
5770 \begin_deeper
5771 \begin_layout Enumerate
5772 \SpecialChar TeX
5773 Liveの場合には、コンソールから
5774 \begin_inset Flex Code
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778 texhash
5779 \end_layout
5780
5781 \end_inset
5782
5783 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5784 \end_layout
5785
5786 \begin_layout Enumerate
5787 MiK\SpecialChar TeX
5788 では、パッケージを全ユーザー用に導入した場合には、「Settings
5789 \begin_inset space ~
5790 \end_inset
5791
5792 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5793
5794 \end_layout
5795
5796 \end_deeper
5797 \begin_layout Enumerate
5798 最後に、\SpecialChar LyX
5799 に新しいパッケージがあることを告げなくてはなりません。そこで、\SpecialChar LyX
5800 からツール\SpecialChar menuseparator
5801 環境構成メニューを実行して、\SpecialChar LyX
5802 を再起動します。
5803 \end_layout
5804
5805 \begin_layout Standard
5806 これでパッケージが導入されました。この例では、文書クラス
5807 \begin_inset Flex Code
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 Slides
5812 \begin_inset space ~
5813 \end_inset
5814
5815 (FoilTe
5816 \begin_inset ERT
5817 status collapsed
5818
5819 \begin_layout Plain Layout
5820
5821 {}
5822 \end_layout
5823
5824 \end_inset
5825
5826 X)
5827 \end_layout
5828
5829 \end_inset
5830
5831
5832 \begin_inset Flex MenuItem
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836 文書\SpecialChar menuseparator
5837 設定\SpecialChar menuseparator
5838 文書クラス
5839 \end_layout
5840
5841 \end_inset
5842
5843 で利用可能になっているはずです。
5844 \end_layout
5845
5846 \begin_layout Standard
5847 \begin_inset Flex MenuItem
5848 status collapsed
5849
5850 \begin_layout Plain Layout
5851 文書\SpecialChar menuseparator
5852 設定\SpecialChar menuseparator
5853 文書クラス
5854 \end_layout
5855
5856 \end_inset
5857
5858 メニューに列挙されてもいない\SpecialChar LaTeX
5859 文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5860 \end_layout
5861
5862 \begin_layout Section
5863 レイアウトファイルの型
5864 \end_layout
5865
5866 \begin_layout Standard
5867 この節は、レイアウト情報を含む各種\SpecialChar LyX
5868 ファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、\SpecialChar LyX
5869 がそれらをどのように
5870 表示すべきなのか、また、それらをどのように\SpecialChar LaTeX
5871 やDocBook、XHTMLその他の出力形式に翻訳すればよいのかが記されています。
5872 \end_layout
5873
5874 \begin_layout Standard
5875 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、\SpecialChar LaTeX
5876 クラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会いうるケース
5877 や問題をすべてカバーすることはとても望めません。\SpecialChar LyX
5878 ユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊かな人々がよく顔
5879 を出していますので、気軽に質問を投げかけてみてください。
5880 \end_layout
5881
5882 \begin_layout Standard
5883 新しいレイアウトを準備するに当たっては、\SpecialChar LyX
5884 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できる\SpecialChar LaTeX
5885 文書クラス用の\SpecialChar LyX
5886 レイアウトを作ったり、
5887 他の人々にも有用なモジュールをお書きになった場合には、
5888 \begin_inset CommandInset href
5889 LatexCommand href
5890 name "LyX Wikiのレイアウトに関する節"
5891 target "http://wiki.lyx.org/Layouts/Layouts"
5892
5893 \end_inset
5894
5895 か、\SpecialChar LyX
5896 開発者メーリングリストに投稿して、\SpecialChar LyX
5897 頒布版に同梱することができるようにしてください
5898 \begin_inset Foot
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 \SpecialChar LyX
5903 はGeneral Public Licenseの下でライセンスされていますので、\SpecialChar LyX
5904 に寄贈されたものは総て同じライセンス下に置かれることに注意してください。
5905 \end_layout
5906
5907 \end_inset
5908
5909
5910 \end_layout
5911
5912 \begin_layout Subsection
5913 レイアウトモジュール
5914 \begin_inset CommandInset label
5915 LatexCommand label
5916 name "subsec:レイアウトモジュール"
5917
5918 \end_inset
5919
5920
5921 \end_layout
5922
5923 \begin_layout Standard
5924 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5925 、それは
5926 \begin_inset Flex Code
5927 status collapsed
5928
5929 \begin_layout Plain Layout
5930 .layout
5931 \end_layout
5932
5933 \end_inset
5934
5935 拡張子を持ち、文書クラスに関する情報を\SpecialChar LyX
5936 に提供するものを指します。しかしながら、\SpecialChar LyX
5937  1.6以降、レイアウト情報は、拡張子が
5938 \begin_inset Flex Code
5939 status collapsed
5940
5941 \begin_layout Plain Layout
5942 .module
5943 \end_layout
5944
5945 \end_inset
5946
5947 のレイアウト
5948 \emph on
5949 モジュール
5950 \emph default
5951 にも含めることができます。レイアウトが\SpecialChar LaTeX
5952 クラスに対応しているように、モジュールは\SpecialChar LaTeX
5953 パッケージに対応するものであり、
5954 \begin_inset Flex Code
5955 status collapsed
5956
5957 \begin_layout Plain Layout
5958 endnotes
5959 \end_layout
5960
5961 \end_inset
5962
5963 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5964 イアウトで使用できるという意味において、一面、
5965 \begin_inset Flex Code
5966 status collapsed
5967
5968 \begin_layout Plain Layout
5969 stdsections.inc
5970 \end_layout
5971
5972 \end_inset
5973
5974 等のインクルードファイル
5975 \begin_inset Foot
5976 status collapsed
5977
5978 \begin_layout Plain Layout
5979 これらは任意の拡張子をつけることができますが、慣習的に
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 .inc
5985 \end_layout
5986
5987 \end_inset
5988
5989 拡張子が用いられます。
5990 \end_layout
5991
5992 \end_inset
5993
5994 のようなものです。相異なる点といえば、
5995 \begin_inset Flex Code
5996 status collapsed
5997
5998 \begin_layout Plain Layout
5999 article.cls
6000 \end_layout
6001
6002 \end_inset
6003
6004 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
6005 \begin_inset Flex MenuItem
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 文書\SpecialChar menuseparator
6010 設定
6011 \end_layout
6012
6013 \end_inset
6014
6015 ダイアログで選択するだけですみます。
6016 \end_layout
6017
6018 \begin_layout Standard
6019 モジュール作成は、新しく段落様式を一つ加えたり、自由差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理的に
6020 は、レイアウトファイルに入れることのできるものはすべて入れることができます。
6021 \end_layout
6022
6023 \begin_layout Standard
6024 新しいモジュールを作成し、それを
6025 \begin_inset Flex Code
6026 status collapsed
6027
6028 \begin_layout Plain Layout
6029 layout/
6030 \end_layout
6031
6032 \end_inset
6033
6034 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、\SpecialChar LyX
6035 の環境構成を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合には、
6036 \begin_inset Flex MenuItem
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040 文書\SpecialChar menuseparator
6041 設定
6042 \end_layout
6043
6044 \end_inset
6045
6046 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
6047 \emph on
6048 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
6049 \emph default
6050 。もっと言えば、
6051 \emph on
6052 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
6053 \emph default
6054 。もちろん開発陣は、そのような場合でも\SpecialChar LyX
6055 が安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こされるこ
6056 とがあるからです。
6057 \end_layout
6058
6059 \begin_layout Subsubsection
6060 ローカルレイアウト
6061 \end_layout
6062
6063 \begin_layout Standard
6064 \SpecialChar LyX
6065 に於けるモジュールは、\SpecialChar LaTeX
6066 に於けるパッケージに当たります。しかしながら、特定の差込枠や文字様式を、ひとつの文書のためだけに作りたいこともあるでしょうから、そのような
6067 場合に、他の文書でも利用できるようなモジュールをわざわざ書くことには、あまり意味がありません。このような場合に必要となるのが、「ローカルレイアウト」なのです。
6068 \end_layout
6069
6070 \begin_layout Standard
6071 これは、
6072 \family sans
6073 文書\SpecialChar menuseparator
6074 設定\SpecialChar menuseparator
6075 ローカルのレイアウト
6076 \family default
6077 にあります。そこにある大きなテキストボックスは、本来ならレイアウトファイルやモジュールに入力すべきものを、入力するためのものです。特定の文書のローカルレイアウト
6078 は、その文書専属のモジュールだと考えることができます。したがって、
6079 \begin_inset Flex Code
6080 status collapsed
6081
6082 \begin_layout Plain Layout
6083 Format
6084 \end_layout
6085
6086 \end_inset
6087
6088 タグは挿入しなくてはなりません。どの書式を使用しても構いませんが、通常は、執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
6089  2.1では、最新書式は48です)。また、
6090 ローカルレイアウトは、\SpecialChar LyX
6091  1.6より前の版ではサポートされていないことを認識しておく必要があります。したがって、文書を\SpecialChar LyX
6092  1.5またはそれ以前の版に(ローカルレイアウト
6093 情報を失うことなく)書き出せることを望むならば、使用するべきではありません。第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
6094 出せることを望むならば、書式11を用いて、さらに\SpecialChar LyX
6095  1.6で使用できるレイアウト要素のみを使用してください。
6096 \end_layout
6097
6098 \begin_layout Standard
6099 \begin_inset Flex Code
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 ローカルのレイアウト
6104 \end_layout
6105
6106 \end_inset
6107
6108 面に何かを入力すると、下部にある「検証」ボタンが有効になります。このボタンを押すと、ユーザーの入力したものが、指定された書式に沿って、有効なレイアウト情報になっ
6109 ているかどうかが検証されます。すると、\SpecialChar LyX
6110 がその結果を返しますが、残念ながら、エラーがあった場合にそれが何のエラーであるかは返しません。しかしながら、\SpecialChar LyX
6111 をターミナル(
6112 擬似端末)から起動した場合には、そのエラーがターミナルに返されます。ローカルレイアウトは、正しい書式で入力されないうちは、保存することができません。
6113 \end_layout
6114
6115 \begin_layout Standard
6116 ここで、前節と同じ警告があります。ローカルレイアウトは、作業中の文書上で、特に保存していない文書上ではいじらないでください。それに注意すれば、テスト用文書上でロ
6117 ーカルレイアウトを用いるのは、レイアウトのアイディアを試すのに便利ですし、モジュール開発の第一歩としても便利です。
6118 \end_layout
6119
6120 \begin_layout Subsection
6121 \begin_inset Flex MenuItem
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125 .sty
6126 \end_layout
6127
6128 \end_inset
6129
6130 ファイル用のレイアウト
6131 \end_layout
6132
6133 \begin_layout Standard
6134 新しく\SpecialChar LaTeX
6135 文書クラスをサポートしようとするとき、\SpecialChar LaTeX2e
6136 クラス(
6137 \begin_inset Flex Code
6138 status collapsed
6139
6140 \begin_layout Plain Layout
6141 .cls
6142 \end_layout
6143
6144 \end_inset
6145
6146 )ファイルが絡む場合と、スタイル(
6147 \begin_inset Flex Code
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151 .sty
6152 \end_layout
6153
6154 \end_inset
6155
6156 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
6157 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
6158 が当てはまります。
6159 \end_layout
6160
6161 \begin_layout Standard
6162 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
6163 \begin_inset Flex MenuItem
6164 status collapsed
6165
6166 \begin_layout Plain Layout
6167 myclass.sty
6168 \end_layout
6169
6170 \end_inset
6171
6172 という名称で、標準的なクラスである
6173 \begin_inset Flex MenuItem
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 report.cls
6178 \end_layout
6179
6180 \end_inset
6181
6182 と共に用いられるものと仮定しましょう。
6183 \end_layout
6184
6185 \begin_layout Standard
6186 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
6187 \begin_inset Foot
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。\SpecialChar LyX
6192 では、起動時に
6193 \begin_inset Flex MenuItem
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 -userdir
6198 \end_layout
6199
6200 \end_inset
6201
6202 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
6203 \end_layout
6204
6205 \end_inset
6206
6207
6208 \end_layout
6209
6210 \begin_layout LyX-Code
6211 cp report.layout ~/.lyx/layouts/myclass.layout
6212 \end_layout
6213
6214 \begin_layout Standard
6215 それから、
6216 \begin_inset Flex Code
6217 status collapsed
6218
6219 \begin_layout Plain Layout
6220 myclass.layout
6221 \end_layout
6222
6223 \end_inset
6224
6225 を編集して、
6226 \end_layout
6227
6228 \begin_layout LyX-Code
6229
6230 \backslash
6231 DeclareLaT
6232 \begin_inset ERT
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236
6237 {}
6238 \end_layout
6239
6240 \end_inset
6241
6242 eXClass{report}
6243 \end_layout
6244
6245 \begin_layout Standard
6246 という行を
6247 \end_layout
6248
6249 \begin_layout LyX-Code
6250
6251 \backslash
6252 DeclareLaT
6253 \bar under
6254 \lang english
6255
6256 \begin_inset ERT
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260
6261 {}
6262 \end_layout
6263
6264 \end_inset
6265
6266
6267 \bar default
6268 \lang japanese
6269 eXClass[report, myclass.sty]{report (myclass)}
6270 \end_layout
6271
6272 \begin_layout Standard
6273 のように変更してください。それから、ファイル冒頭辺りに
6274 \end_layout
6275
6276 \begin_layout LyX-Code
6277 Preamble 
6278 \begin_inset Newline newline
6279 \end_inset
6280
6281     
6282 \backslash
6283 usepackage{myclass}
6284 \begin_inset Newline newline
6285 \end_inset
6286
6287 EndPreamble
6288 \end_layout
6289
6290 \begin_layout Standard
6291 と書き加えてください。
6292 \end_layout
6293
6294 \begin_layout Standard
6295 \SpecialChar LyX
6296 を起動して
6297 \begin_inset Flex MenuItem
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 ツール\SpecialChar menuseparator
6302 環境構成
6303 \end_layout
6304
6305 \end_inset
6306
6307 を選択してください。それから\SpecialChar LyX
6308 を再起動し、新規文書を作成してみてください。すると、
6309 \begin_inset Flex MenuItem
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 文書\SpecialChar menuseparator
6314 設定
6315 \end_layout
6316
6317 \end_inset
6318
6319 ダイアログの文書クラスオプションに「
6320 \begin_inset Flex MenuItem
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 report (myclass)
6325 \end_layout
6326
6327 \end_inset
6328
6329 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
6330 \begin_inset Flex Code
6331 status collapsed
6332
6333 \begin_layout Plain Layout
6334 report
6335 \end_layout
6336
6337 \end_inset
6338
6339 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344 stdsections.inc
6345 \end_layout
6346
6347 \end_inset
6348
6349 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
6350 \begin_inset Flex Code
6351 status collapsed
6352
6353 \begin_layout Plain Layout
6354 stdsections.inc
6355 \end_layout
6356
6357 \end_inset
6358
6359 も取り込む
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 Input stdclass.inc
6365 \end_layout
6366
6367 \end_inset
6368
6369 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
6370 \end_layout
6371
6372 \begin_layout LyX-Code
6373 Style Chapter
6374 \end_layout
6375
6376 \begin_layout LyX-Code
6377     Font
6378 \end_layout
6379
6380 \begin_layout LyX-Code
6381         Family Sans
6382 \end_layout
6383
6384 \begin_layout LyX-Code
6385     EndFont
6386 \end_layout
6387
6388 \begin_layout LyX-Code
6389 End
6390 \end_layout
6391
6392 \begin_layout Standard
6393 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
6394 \end_layout
6395
6396 \begin_layout Standard
6397 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
6398 いては、第
6399 \begin_inset CommandInset ref
6400 LatexCommand ref
6401 reference "sec:テキストクラス"
6402
6403 \end_inset
6404
6405 節の情報を参照してください。
6406 \end_layout
6407
6408 \begin_layout Standard
6409 もし
6410 \begin_inset Flex Code
6411 status collapsed
6412
6413 \begin_layout Plain Layout
6414 myclass.sty
6415 \end_layout
6416
6417 \end_inset
6418
6419 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6420 う。最も簡単なモジュールの例としては、以下のようなものになります。
6421 \end_layout
6422
6423 \begin_layout LyX-Code
6424 #
6425 \backslash
6426 Declare\SpecialChar LyX
6427 Module{My Package}
6428 \end_layout
6429
6430 \begin_layout LyX-Code
6431 #DescriptionBegin
6432 \end_layout
6433
6434 \begin_layout LyX-Code
6435 #Support for mypkg.sty.
6436 \end_layout
6437
6438 \begin_layout LyX-Code
6439 #DescriptionEnd
6440 \begin_inset Newline newline
6441 \end_inset
6442
6443
6444 \end_layout
6445
6446 \begin_layout LyX-Code
6447 Format 35
6448 \begin_inset Newline newline
6449 \end_inset
6450
6451
6452 \end_layout
6453
6454 \begin_layout LyX-Code
6455 Preamble
6456 \begin_inset Newline newline
6457 \end_inset
6458
6459     
6460 \backslash
6461 usepackage{mypkg}
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465 EndPreamble
6466 \end_layout
6467
6468 \begin_layout Standard
6469 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
6470 \begin_inset CommandInset ref
6471 LatexCommand ref
6472 reference "sec:テキストクラス"
6473
6474 \end_inset
6475
6476 節を参照してください。
6477 \end_layout
6478
6479 \begin_layout Subsection
6480 \begin_inset Flex MenuItem
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 .cls
6485 \end_layout
6486
6487 \end_inset
6488
6489 ファイル用のレイアウト
6490 \end_layout
6491
6492 \begin_layout Standard
6493 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
6494 \begin_inset Flex MenuItem
6495 status collapsed
6496
6497 \begin_layout Plain Layout
6498 book.cls
6499 \end_layout
6500
6501 \end_inset
6502
6503 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
6504 \end_layout
6505
6506 \begin_layout LyX-Code
6507
6508 \backslash
6509 LoadClass{book}
6510 \end_layout
6511
6512 \begin_layout Standard
6513 という行がないかどうか探してください。もしこれがあれば、
6514 \begin_inset Flex Code
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 Declare\SpecialChar LaTeX
6519 Class
6520 \end_layout
6521
6522 \end_inset
6523
6524 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 thesis
6530 \end_layout
6531
6532 \end_inset
6533
6534 であり、
6535 \begin_inset Flex Code
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539 book
6540 \end_layout
6541
6542 \end_inset
6543
6544 クラスに基づいていれば、
6545 \begin_inset Flex Code
6546 status collapsed
6547
6548 \begin_layout Plain Layout
6549 Declare\SpecialChar LaTeX
6550 Class
6551 \end_layout
6552
6553 \end_inset
6554
6555 行は以下のようにします
6556 \begin_inset Foot
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 さらに\SpecialChar LyX
6561 は、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
6562 \begin_inset Flex Code
6563 status collapsed
6564
6565 \begin_layout Plain Layout
6566 thesis.layout
6567 \end_layout
6568
6569 \end_inset
6570
6571 という名前で保存するのが最も簡単です。 
6572 \end_layout
6573
6574 \end_inset
6575
6576
6577 \end_layout
6578
6579 \begin_layout LyX-Code
6580
6581 \backslash
6582 DeclareLaT
6583 \begin_inset ERT
6584 status collapsed
6585
6586 \begin_layout Plain Layout
6587
6588 {}
6589 \end_layout
6590
6591 \end_inset
6592
6593 eXClass[thesis,book]{thesis}
6594 \end_layout
6595
6596 \begin_layout Standard
6597 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似した\SpecialChar LaTeX
6598 クラスを使用してい
6599 る既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のファイルを作
6600 業の開始点としてください。
6601 \end_layout
6602
6603 \begin_layout Subsection
6604 ひな型を作成する
6605 \begin_inset CommandInset label
6606 LatexCommand label
6607 name "sec:ひな型を作成する"
6608
6609 \end_inset
6610
6611
6612 \end_layout
6613
6614 \begin_layout Standard
6615 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
6616 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、\SpecialChar LyX
6617 添付のひな型をあれこれ見てみるのもよいでしょう。
6618 \end_layout
6619
6620 \begin_layout Standard
6621 ひな型は、通常の文書と同様、\SpecialChar LyX
6622 を使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている点です
6623 。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628
6629 \backslash
6630 fontscheme
6631 \end_layout
6632
6633 \end_inset
6634
6635
6636 \begin_inset Flex Code
6637 status collapsed
6638
6639 \begin_layout Plain Layout
6640
6641 \backslash
6642 papersize
6643 \end_layout
6644
6645 \end_inset
6646
6647 などの対応するコマンドをひな型\SpecialChar LyX
6648 ファイルから取り除く必要があります。これは、たとえば
6649 \begin_inset Flex Code
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 vi
6654 \end_layout
6655
6656 \end_inset
6657
6658
6659 \begin_inset Flex Code
6660 status collapsed
6661
6662 \begin_layout Plain Layout
6663 notepad
6664 \end_layout
6665
6666 \end_inset
6667
6668 のような、どの軽いテキストエディタでも行うことができます。
6669 \end_layout
6670
6671 \begin_layout Standard
6672 編集したひな型を
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 UserDir/templates/
6678 \end_layout
6679
6680 \end_inset
6681
6682 に置き、グローバルなひな型ディレクトリ
6683 \begin_inset Flex Code
6684 status collapsed
6685
6686 \begin_layout Plain Layout
6687 \SpecialChar LyX
6688 Dir/templates/
6689 \end_layout
6690
6691 \end_inset
6692
6693 から使用したいものを同じ場所にコピーし、
6694 \begin_inset Flex MenuItem
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 ツール\SpecialChar menuseparator
6699 設定\SpecialChar menuseparator
6700 パス
6701 \end_layout
6702
6703 \end_inset
6704
6705 ダイアログのひな型パスを再定義してください。
6706 \end_layout
6707
6708 \begin_layout Standard
6709 ところで、特別な意味を持つひな型
6710 \begin_inset Flex Code
6711 status collapsed
6712
6713 \begin_layout Plain Layout
6714 defaults.lyx
6715 \end_layout
6716
6717 \end_inset
6718
6719 があることに注意してください。このひな型は、
6720 \begin_inset Flex MenuItem
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 ファイル\SpecialChar menuseparator
6725 新規
6726 \end_layout
6727
6728 \end_inset
6729
6730 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型を\SpecialChar LyX
6731 内部から作成するのにしなくてはならないことは、対応する設定を持つ文書を
6732 開き、
6733 \begin_inset Flex MenuItem
6734 status collapsed
6735
6736 \begin_layout Plain Layout
6737 文書既定値として保存
6738 \end_layout
6739
6740 \end_inset
6741
6742 ボタンを押すことです。
6743 \end_layout
6744
6745 \begin_layout Subsection
6746 旧レイアウトファイルの更新
6747 \end_layout
6748
6749 \begin_layout Standard
6750 レイアウトファイルの書式は、\SpecialChar LyX
6751 のリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。\SpecialChar LyX
6752 が古い書式のレイアウトファイルを読み込むと、\SpecialChar LyX
6753 は、
6754 自動的に変換ツール
6755 \begin_inset Flex Code
6756 status collapsed
6757
6758 \begin_layout Plain Layout
6759 \SpecialChar LyX
6760 Dir/scripts/layout2layout.py
6761 \end_layout
6762
6763 \end_inset
6764
6765 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、\SpecialChar LyX
6766 がこれを毎回行な
6767 わくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6768 \end_layout
6769
6770 \begin_layout Enumerate
6771 ファイル
6772 \begin_inset Flex Code
6773 status collapsed
6774
6775 \begin_layout Plain Layout
6776 myclass.layout
6777 \end_layout
6778
6779 \end_inset
6780
6781
6782 \begin_inset Flex Code
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786 myclass.old
6787 \end_layout
6788
6789 \end_inset
6790
6791 に改称
6792 \end_layout
6793
6794 \begin_layout Enumerate
6795 以下のコマンドをコール
6796 \begin_inset Newline newline
6797 \end_inset
6798
6799
6800 \begin_inset Flex Code
6801 status collapsed
6802
6803 \begin_layout Plain Layout
6804 python \SpecialChar LyX
6805 Dir/scripts/layout2layout.py myclass.old myclass.layout
6806 \end_layout
6807
6808 \end_inset
6809
6810
6811 \begin_inset Newline newline
6812 \end_inset
6813
6814 ここで
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 \SpecialChar LyX
6820 Dir
6821 \end_layout
6822
6823 \end_inset
6824
6825 は\SpecialChar LyX
6826 システムディレクトリの名前です。
6827 \end_layout
6828
6829 \begin_layout Standard
6830 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6831 \end_layout
6832
6833 \begin_layout Section
6834 \begin_inset CommandInset label
6835 LatexCommand label
6836 name "sec:テキストクラス"
6837
6838 \end_inset
6839
6840 レイアウトファイルの書式
6841 \end_layout
6842
6843 \begin_layout Standard
6844 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6845 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6846 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6847 て、もう一杯大人向け飲料をどうぞ。適量ね。\SpecialChar LyX
6848 の既存のレイアウトを例や参考に使ったり、既存のレイアウトを自身の目的に合わせて修正したりすると、作業が容易になります。
6849 \end_layout
6850
6851 \begin_layout Standard
6852 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6853 \begin_inset Flex Code
6854 status collapsed
6855
6856 \begin_layout Plain Layout
6857 Style
6858 \end_layout
6859
6860 \end_inset
6861
6862
6863 \begin_inset Flex Code
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 style
6868 \end_layout
6869
6870 \end_inset
6871
6872
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 StYlE
6878 \end_layout
6879
6880 \end_inset
6881
6882 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887
6888 \emph on
6889 強調
6890 \end_layout
6891
6892 \end_inset
6893
6894 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6895 \begin_inset Flex Code
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 浮動小数点型=
6900 \emph on
6901 既定値
6902 \end_layout
6903
6904 \end_inset
6905
6906 のように表示されます。
6907 \end_layout
6908
6909 \begin_layout Subsection
6910 文書クラス宣言と分類
6911 \end_layout
6912
6913 \begin_layout Standard
6914 レイアウトファイル中の
6915 \begin_inset Flex Code
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919 #
6920 \end_layout
6921
6922 \end_inset
6923
6924 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6925 \begin_inset Flex Code
6926 status collapsed
6927
6928 \begin_layout Plain Layout
6929 *.layout
6930 \end_layout
6931
6932 \end_inset
6933
6934 ファイルは、以下のような行で始めなくてはならないのです。
6935 \end_layout
6936
6937 \begin_layout LyX-Code
6938
6939 \size small
6940 #% Do not delete the line below; configure depends on this
6941 \end_layout
6942
6943 \begin_layout LyX-Code
6944
6945 \size small
6946 #  
6947 \backslash
6948 DeclareLaT
6949 \size default
6950
6951 \begin_inset ERT
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955
6956 {}
6957 \end_layout
6958
6959 \end_inset
6960
6961
6962 \size small
6963 eXClass{Article (Standard Class)}
6964 \end_layout
6965
6966 \begin_layout LyX-Code
6967
6968 \size small
6969 #  
6970 \backslash
6971 DeclareCategory{Articles}
6972 \end_layout
6973
6974 \begin_layout Standard
6975 2行目と3行目は、\SpecialChar LyX
6976 が環境構成を行う際に用いられます。このレイアウトファイルは、\SpecialChar LaTeX
6977 スクリプト
6978 \begin_inset Flex Code
6979 status collapsed
6980
6981 \begin_layout Plain Layout
6982 chkconfig.ltx
6983 \end_layout
6984
6985 \end_inset
6986
6987 が、
6988 \begin_inset Flex Code
6989 status collapsed
6990
6991 \begin_layout Plain Layout
6992 #
6993 \end_layout
6994
6995 \end_inset
6996
6997 を無視する特別なモードで読み込みます。1行目は単なる\SpecialChar LaTeX
6998 コメントですが、2行目にはテキストクラスの宣言が、3行目にはクラスの分類(非必須)が書かれています。これらの
6999 行が
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 article.layout
7005 \end_layout
7006
7007 \end_inset
7008
7009 と名付けられたファイルにあると、
7010 \begin_inset Flex Code
7011 status collapsed
7012
7013 \begin_layout Plain Layout
7014 article
7015 \end_layout
7016
7017 \end_inset
7018
7019 (レイアウトファイル名)という名称のテキストクラスを定義し、\SpecialChar LaTeX
7020 文書クラス
7021 \begin_inset Flex Code
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 article.cls
7026 \end_layout
7027
7028 \end_inset
7029
7030 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「Article (Standard Class)」という文字列は、
7031 \begin_inset Flex MenuItem
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 文書\SpecialChar menuseparator
7036 設定
7037 \end_layout
7038
7039 \end_inset
7040
7041 ダイアログのテキストクラスの説明に使用されます。分類(例中の「Articles」)は、
7042 \begin_inset Flex MenuItem
7043 status open
7044
7045 \begin_layout Plain Layout
7046 文書\SpecialChar menuseparator
7047 設定
7048 \end_layout
7049
7050 \end_inset
7051
7052 ダイアログで使用され、文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し、典型的なものには、「Articles」「Books」「Repor
7053 ts」「Letters」「Presentations」「Curricula Vitae」等があります)。分類を宣言しない場合には、このクラスは「Uncatego
7054 rized」グループに属することになります。
7055 \end_layout
7056
7057 \begin_layout Standard
7058 節見出し表示に変更を加えた、
7059 \begin_inset Flex Code
7060 status collapsed
7061
7062 \begin_layout Plain Layout
7063 article.cls
7064 \end_layout
7065
7066 \end_inset
7067
7068 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
7069 \begin_inset Flex Code
7070 status collapsed
7071
7072 \begin_layout Plain Layout
7073 myarticle.layout
7074 \end_layout
7075
7076 \end_inset
7077
7078 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
7079 \end_layout
7080
7081 \begin_layout LyX-Code
7082
7083 \size small
7084 #% Do not delete the line below; configure depends on this 
7085 \end_layout
7086
7087 \begin_layout LyX-Code
7088
7089 \size small
7090 #  
7091 \backslash
7092 DeclareLaT
7093 \size default
7094
7095 \begin_inset ERT
7096 status collapsed
7097
7098 \begin_layout Plain Layout
7099
7100 {}
7101 \end_layout
7102
7103 \end_inset
7104
7105
7106 \size small
7107 eXClass[article]{article (with My Own Headings)}
7108 \end_layout
7109
7110 \begin_layout LyX-Code
7111
7112 \size small
7113 #  
7114 \backslash
7115 DeclareCategory{Articles}
7116 \end_layout
7117
7118 \begin_layout Standard
7119 これは、\SpecialChar LaTeX
7120 文書クラス
7121 \begin_inset Flex Code
7122 status collapsed
7123
7124 \begin_layout Plain Layout
7125 article.cls
7126 \end_layout
7127
7128 \end_inset
7129
7130 に関連づけられ、「Article (with My Own Headings)」と表示される、
7131 \begin_inset Flex Code
7132 status collapsed
7133
7134 \begin_layout Plain Layout
7135 myarticle
7136 \end_layout
7137
7138 \end_inset
7139
7140 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
7141 \end_layout
7142
7143 \begin_layout LyX-Code
7144
7145 \size small
7146 #% Do not delete the line below; configure depends on this 
7147 \end_layout
7148
7149 \begin_layout LyX-Code
7150
7151 \size small
7152 #  
7153 \backslash
7154 DeclareLaT
7155 \size default
7156
7157 \begin_inset ERT
7158 status collapsed
7159
7160 \begin_layout Plain Layout
7161
7162 {}
7163 \end_layout
7164
7165 \end_inset
7166
7167
7168 \size small
7169 eXClass[article,foo.sty]{Article (with My Own Headings)}
7170 \end_layout
7171
7172 \begin_layout LyX-Code
7173
7174 \size small
7175 #  
7176 \backslash
7177 DeclareCategory{Articles}
7178 \end_layout
7179
7180 \begin_layout Standard
7181 これは、このテキストクラスが
7182 \begin_inset Flex Code
7183 status collapsed
7184
7185 \begin_layout Plain Layout
7186 foo.sty
7187 \end_layout
7188
7189 \end_inset
7190
7191 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
7192 \end_layout
7193
7194 \begin_layout LyX-Code
7195
7196 \size small
7197 #% Do not delete the line below; configure depends on this 
7198 \end_layout
7199
7200 \begin_layout LyX-Code
7201
7202 \size small
7203
7204 \backslash
7205 DeclareDocBookClass[article]{SGML (DocBook article)}
7206 \end_layout
7207
7208 \begin_layout LyX-Code
7209
7210 \size small
7211 #  
7212 \backslash
7213 DeclareCategory{Articles}
7214 \end_layout
7215
7216 \begin_layout Standard
7217 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
7218 \end_layout
7219
7220 \begin_layout Standard
7221 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
7222 \end_layout
7223
7224 \begin_layout LyX-Code
7225
7226 \size small
7227 #  
7228 \backslash
7229 DeclareLaT
7230 \size default
7231
7232 \begin_inset ERT
7233 status collapsed
7234
7235 \begin_layout Plain Layout
7236
7237 {}
7238 \end_layout
7239
7240 \end_inset
7241
7242
7243 \size small
7244 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7245 \end_layout
7246
7247 \begin_layout LyX-Code
7248
7249 \size small
7250 #  
7251 \backslash
7252 DeclareCategory{分類}
7253 \end_layout
7254
7255 \begin_layout Standard
7256 ここで「クラス」は、\SpecialChar LaTeX
7257 クラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、\SpecialChar LyX
7258 は単純に、クラスファイル
7259 名がレイアウトファイル名と同じであると仮定します。
7260 \end_layout
7261
7262 \begin_layout Standard
7263 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
7264 \begin_inset Flex Code
7265 status collapsed
7266
7267 \begin_layout Plain Layout
7268 L
7269 \begin_inset ERT
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273
7274 {}
7275 \end_layout
7276
7277 \end_inset
7278
7279 yXDir/layouts/
7280 \end_layout
7281
7282 \end_inset
7283
7284
7285 \begin_inset Flex Code
7286 status collapsed
7287
7288 \begin_layout Plain Layout
7289 UserDir/layouts
7290 \end_layout
7291
7292 \end_inset
7293
7294 にコピーし、
7295 \begin_inset Flex MenuItem
7296 status collapsed
7297
7298 \begin_layout Plain Layout
7299 ツール\SpecialChar menuseparator
7300 環境構成
7301 \end_layout
7302
7303 \end_inset
7304
7305 を実行し、\SpecialChar LyX
7306 を終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
7307 \end_layout
7308
7309 \begin_layout Standard
7310 レイアウトファイルが導入されたならば、これを編集して、環境構成したり\SpecialChar LyX
7311 を再起動したりすることなく、その変更を確認することができます
7312 \begin_inset Foot
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 第1.6版よりも前の\SpecialChar LyX
7317 では、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度に\SpecialChar LyX
7318 を再起動しなくてはならなかったので、
7319 レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
7320 \end_layout
7321
7322 \end_inset
7323
7324 。\SpecialChar LyX
7325 関数
7326 \begin_inset Flex MenuItem
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 layout-reload
7331 \end_layout
7332
7333 \end_inset
7334
7335 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7336 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
7337 \end_layout
7338
7339 \begin_layout Standard
7340
7341 \emph on
7342 注意
7343 \emph default
7344
7345 \begin_inset Flex MenuItem
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 layout-reload
7350 \end_layout
7351
7352 \end_inset
7353
7354 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
7355 \emph on
7356 強く
7357 \emph default
7358 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
7359 \emph on
7360 強く
7361 \emph default
7362 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、\SpecialChar LyX
7363 は現在の
7364 レイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
7365 \begin_inset Foot
7366 status collapsed
7367
7368 \begin_layout Plain Layout
7369 非常に悪質な文法エラーの場合には、\SpecialChar LyX
7370 が終了してしまうことさえあります。これは、ある種のエラーでは、\SpecialChar LyX
7371 がレイアウト情報を全く読めなくなる可能性があるからです。ご注意く
7372 ださい。
7373 \end_layout
7374
7375 \end_inset
7376
7377 。\SpecialChar LyX
7378 開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
7379 \begin_inset Foot
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
7384 \end_layout
7385
7386 \end_inset
7387
7388
7389 \end_layout
7390
7391 \begin_layout Subsection
7392 モジュール宣言
7393 \end_layout
7394
7395 \begin_layout Standard
7396 モジュールは、以下のような行で始まらなくてはなりません。
7397 \end_layout
7398
7399 \begin_layout LyX-Code
7400 #
7401 \backslash
7402 DeclareL
7403 \begin_inset ERT
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407
7408 {}
7409 \end_layout
7410
7411 \end_inset
7412
7413 yXModule[endnotes.sty]{Endnotes} 
7414 \end_layout
7415
7416 \begin_layout Standard
7417 波括弧内に入っている必須引数はモジュール名で、これは
7418 \begin_inset Flex MenuItem
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 文書\SpecialChar menuseparator
7423 設定
7424 \end_layout
7425
7426 \end_inset
7427
7428 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存する\SpecialChar LaTeX
7429 パッケージをすべて宣言します。また、非必須引数として、
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 変換元->変換先
7435 \end_layout
7436
7437 \end_inset
7438
7439 の形を使用することができます。これは、
7440 \begin_inset Flex Code
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 変換元
7445 \end_layout
7446
7447 \end_inset
7448
7449 形式から
7450 \begin_inset Flex Code
7451 status collapsed
7452
7453 \begin_layout Plain Layout
7454 変換先
7455 \end_layout
7456
7457 \end_inset
7458
7459 形式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
7460 \end_layout
7461
7462 \begin_layout Standard
7463 それから、以下のようなモジュール宣言を行います
7464 \begin_inset Foot
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 モジュールを\SpecialChar LyX
7469 に公開する場合には英語が望ましいです。この説明は翻訳メッセージ一覧に現れるようになるので、次回のインタフェースの更新時に翻訳されることになります。
7470 \end_layout
7471
7472 \end_inset
7473
7474
7475 \end_layout
7476
7477 \begin_layout LyX-Code
7478 #DescriptionBegin 
7479 \end_layout
7480
7481 \begin_layout LyX-Code
7482 #Adds an endnote command, in addition to footnotes.
7483  
7484 \end_layout
7485
7486 \begin_layout LyX-Code
7487 #You will need to add  
7488 \backslash
7489 theendnotes in T
7490 \begin_inset ERT
7491 status collapsed
7492
7493 \begin_layout Plain Layout
7494
7495 {}
7496 \end_layout
7497
7498 \end_inset
7499
7500 eX code where you 
7501 \end_layout
7502
7503 \begin_layout LyX-Code
7504 #want the endnotes to appear.
7505  
7506 \end_layout
7507
7508 \begin_layout LyX-Code
7509 #DescriptionEnd 
7510 \end_layout
7511
7512 \begin_layout LyX-Code
7513 #Requires: somemodule | othermodule
7514 \end_layout
7515
7516 \begin_layout LyX-Code
7517 #Excludes: badmodule
7518 \end_layout
7519
7520 \begin_layout Standard
7521 ここで説明(Description)は、
7522 \begin_inset Flex MenuItem
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 文書\SpecialChar menuseparator
7527 設定
7528 \end_layout
7529
7530 \end_inset
7531
7532 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
7533 \begin_inset Flex Code
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 Requires
7538 \end_layout
7539
7540 \end_inset
7541
7542 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
7543 \begin_inset Flex Code
7544 status collapsed
7545
7546 \begin_layout Plain Layout
7547 Excludes
7548 \end_layout
7549
7550 \end_inset
7551
7552 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
7553 イプ記号「|」で区切らなくてはなりません。
7554 \begin_inset Flex Code
7555 status collapsed
7556
7557 \begin_layout Plain Layout
7558 Requires
7559 \end_layout
7560
7561 \end_inset
7562
7563 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 Requires
7569 \end_layout
7570
7571 \end_inset
7572
7573 に指定されたモジュールのうち、
7574 \emph on
7575 少なくとも一つ
7576 \emph default
7577 が使用されていればよいということです。同様に、
7578 \begin_inset Flex Code
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582 Excludes
7583 \end_layout
7584
7585 \end_inset
7586
7587 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 .module
7593 \end_layout
7594
7595 \end_inset
7596
7597 拡張子を除いたファイル名で認識されることに注意してください。つまり
7598 \begin_inset Flex Code
7599 status collapsed
7600
7601 \begin_layout Plain Layout
7602 somemodule
7603 \end_layout
7604
7605 \end_inset
7606
7607 とは、実のところ
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 somemodule.module
7613 \end_layout
7614
7615 \end_inset
7616
7617 のことです。
7618 \end_layout
7619
7620 \begin_layout Subsection
7621 書式番号
7622 \end_layout
7623
7624 \begin_layout Standard
7625 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル形式番号が記されていなくてはなりません。
7626 \end_layout
7627
7628 \begin_layout Description
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 Format
7634 \end_layout
7635
7636 \end_inset
7637
7638  [
7639 \begin_inset Flex Code
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 整数型
7644 \end_layout
7645
7646 \end_inset
7647
7648 ] このレイアウトファイルの書式
7649 \end_layout
7650
7651 \begin_layout Standard
7652 このタグは\SpecialChar LyX
7653
7654 \begin_inset space ~
7655 \end_inset
7656
7657 1.4.0で導入されました。\SpecialChar LyX
7658
7659 \begin_inset space ~
7660 \end_inset
7661
7662 1.3.x以前のレイアウトファイルには、明示されたファイル形式がないため、書式1と解されます。\SpecialChar LyX
7663 現行版のファイル形式は、書式35です。しかし、\SpecialChar LyX
7664 の各版は、旧版の\SpecialChar LyX
7665 で作成さ
7666 れたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしながら、以前の書式に変換する方法はありません。
7667 \end_layout
7668
7669 \begin_layout Subsection
7670 \begin_inset CommandInset label
7671 LatexCommand label
7672 name "subsec:汎用テキストクラスパラメータ"
7673
7674 \end_inset
7675
7676 汎用テキストクラスパラメータ
7677 \end_layout
7678
7679 \begin_layout Standard
7680 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
7681 \begin_inset Flex Code
7682 status collapsed
7683
7684 \begin_layout Plain Layout
7685 .layout
7686 \end_layout
7687
7688 \end_inset
7689
7690 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
7691 \emph on
7692 ありません
7693 \emph default
7694 。モジュールには、すべてのレイアウトタグを使用することができます)。
7695 \end_layout
7696
7697 \begin_layout Description
7698 \begin_inset Flex Code
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 AddToHTMLPreamble
7703 \end_layout
7704
7705 \end_inset
7706
7707  この文書クラスがXHTMLに出力されるときに、
7708 \begin_inset Flex Code
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 <head>
7713 \end_layout
7714
7715 \end_inset
7716
7717 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
7718 \begin_inset Flex Code
7719 status collapsed
7720
7721 \begin_layout Plain Layout
7722 <head>
7723 \end_layout
7724
7725 \end_inset
7726
7727 に出力するものであれば、何でも使用することができます。「
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732 EndPreamble
7733 \end_layout
7734
7735 \end_inset
7736
7737 」で閉じる必要があります。
7738 \end_layout
7739
7740 \begin_layout Description
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 AddToPreamble
7746 \end_layout
7747
7748 \end_inset
7749
7750  文書プリアンブルに書き加えられる情報です。「
7751 \begin_inset Flex Code
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 EndPreamble
7756 \end_layout
7757
7758 \end_inset
7759
7760 」で閉じる必要があります。
7761 \end_layout
7762
7763 \begin_layout Description
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 CiteFormat
7769 \end_layout
7770
7771 \end_inset
7772
7773  書誌情報の表示に使う書式を定義します。詳細については、
7774 \begin_inset CommandInset ref
7775 LatexCommand ref
7776 reference "subsec:引用書式指定"
7777
7778 \end_inset
7779
7780 をご覧ください。「
7781 \begin_inset Flex Code
7782 status collapsed
7783
7784 \begin_layout Plain Layout
7785 End
7786 \end_layout
7787
7788 \end_inset
7789
7790 」で閉じる必要があります。
7791 \end_layout
7792
7793 \begin_layout Description
7794 \begin_inset Flex Code
7795 status collapsed
7796
7797 \begin_layout Plain Layout
7798 ClassOptions
7799 \end_layout
7800
7801 \end_inset
7802
7803  文書クラスがサポートする様々な大域オプションを記します。説明は、
7804 \begin_inset CommandInset ref
7805 LatexCommand ref
7806 reference "subsec:ClassOptions"
7807
7808 \end_inset
7809
7810 を参照してください。「
7811 \begin_inset Flex Code
7812 status collapsed
7813
7814 \begin_layout Plain Layout
7815 End
7816 \end_layout
7817
7818 \end_inset
7819
7820 」で閉じる必要があります。
7821 \end_layout
7822
7823 \begin_layout Description
7824 \begin_inset Flex Code
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 Columns
7829 \end_layout
7830
7831 \end_inset
7832
7833  [
7834 \begin_inset Flex Code
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838
7839 \emph on
7840 1
7841 \end_layout
7842
7843 \end_inset
7844
7845 ,
7846 \begin_inset space \thinspace{}
7847 \end_inset
7848
7849
7850 \begin_inset Flex Code
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 2
7855 \end_layout
7856
7857 \end_inset
7858
7859 ] 文書クラスが既定で1段組か2段組かを指定します。
7860 \begin_inset Flex MenuItem
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 文書\SpecialChar menuseparator
7865 設定
7866 \end_layout
7867
7868 \end_inset
7869
7870 ダイアログで変更することができます。
7871 \end_layout
7872
7873 \begin_layout Description
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 Counter
7879 \end_layout
7880
7881 \end_inset
7882
7883  [
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 文字列
7889 \end_layout
7890
7891 \end_inset
7892
7893 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7894 \begin_inset Flex Code
7895 status collapsed
7896
7897 \begin_layout Plain Layout
7898 End
7899 \end_layout
7900
7901 \end_inset
7902
7903 」で閉じる必要があります。
7904 \begin_inset Newline newline
7905 \end_inset
7906
7907 カウンタについての詳細は、
7908 \begin_inset CommandInset ref
7909 LatexCommand ref
7910 reference "subsec:カウンタ"
7911
7912 \end_inset
7913
7914 を参照してください。
7915 \end_layout
7916
7917 \begin_layout Description
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 DefaultFont
7923 \end_layout
7924
7925 \end_inset
7926
7927  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、
7928 \begin_inset CommandInset ref
7929 LatexCommand ref
7930 reference "subsec:フォント指定"
7931
7932 \end_inset
7933
7934 を参照してください。「
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 EndFont
7940 \end_layout
7941
7942 \end_inset
7943
7944 」で閉じる必要があります。
7945 \end_layout
7946
7947 \begin_layout Description
7948 \begin_inset Flex Code
7949 status collapsed
7950
7951 \begin_layout Plain Layout
7952 DefaultModule
7953 \end_layout
7954
7955 \end_inset
7956
7957  [
7958 \begin_inset Flex Code
7959 status collapsed
7960
7961 \begin_layout Plain Layout
7962 <モジュール>
7963 \end_layout
7964
7965 \end_inset
7966
7967 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7968 \begin_inset Flex Code
7969 status collapsed
7970
7971 \begin_layout Plain Layout
7972 .module
7973 \end_layout
7974
7975 \end_inset
7976
7977 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7978 既存の文書にこの文書クラスが選択したときのみ該当します)。
7979 \end_layout
7980
7981 \begin_layout Description
7982 \begin_inset Flex Code
7983 status collapsed
7984
7985 \begin_layout Plain Layout
7986 DefaultStyle
7987 \end_layout
7988
7989 \end_inset
7990
7991  [
7992 \begin_inset Flex Code
7993 status collapsed
7994
7995 \begin_layout Plain Layout
7996 <様式>
7997 \end_layout
7998
7999 \end_inset
8000
8001 ]
8002 \lang english
8003  
8004 \lang japanese
8005 これは新規段落に割り当てられる様式であり、通常は
8006 \begin_inset Flex MenuItem
8007 status collapsed
8008
8009 \begin_layout Plain Layout
8010 標準
8011 \end_layout
8012
8013 \end_inset
8014
8015 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
8016 \end_layout
8017
8018 \begin_layout Description
8019 \begin_inset Flex Code
8020 status collapsed
8021
8022 \begin_layout Plain Layout
8023 ExcludesModule
8024 \end_layout
8025
8026 \end_inset
8027
8028  [
8029 \begin_inset Flex Code
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 <モジュール>
8034 \end_layout
8035
8036 \end_inset
8037
8038 ] このタグは、指定されたモジュール—
8039 \begin_inset Flex Code
8040 status collapsed
8041
8042 \begin_layout Plain Layout
8043 .module
8044 \end_layout
8045
8046 \end_inset
8047
8048 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
8049 に振る
8050 \begin_inset Flex Code
8051 status collapsed
8052
8053 \begin_layout Plain Layout
8054 theorems-sec
8055 \end_layout
8056
8057 \end_inset
8058
8059 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
8060 \emph on
8061 使用してはいけません
8062 \emph default
8063 。モジュールは、他のモジュールを排除する独自の枠組みがあります(
8064 \begin_inset CommandInset ref
8065 LatexCommand ref
8066 reference "subsec:レイアウトモジュール"
8067
8068 \end_inset
8069
8070 参照)。
8071 \end_layout
8072
8073 \begin_layout Description
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 Float
8079 \end_layout
8080
8081 \end_inset
8082
8083  フロートを新規に定義します。詳細は、
8084 \begin_inset CommandInset ref
8085 LatexCommand ref
8086 reference "subsec:フロート"
8087
8088 \end_inset
8089
8090 を参照してください。「
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 End
8096 \end_layout
8097
8098 \end_inset
8099
8100 」で閉じる必要があります。
8101 \end_layout
8102
8103 \begin_layout Description
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 HTMLPreamble
8109 \end_layout
8110
8111 \end_inset
8112
8113  この文書クラスがXHTMLに出力されるときに、
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 <head>
8119 \end_layout
8120
8121 \end_inset
8122
8123 ブロックに出力される情報です。これより前に出現した
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 HTMLPreamble
8129 \end_layout
8130
8131 \end_inset
8132
8133
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 AddToHTMLPreamble
8139 \end_layout
8140
8141 \end_inset
8142
8143 宣言は、すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には、
8144 \begin_inset Flex Code
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 AddToHTMLPreamble
8149 \end_layout
8150
8151 \end_inset
8152
8153 を使用してください)。これは「
8154 \begin_inset Flex Code
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 EndPreamble
8159 \end_layout
8160
8161 \end_inset
8162
8163 」で閉じる必要があります。
8164 \end_layout
8165
8166 \begin_layout Description
8167 \begin_inset Flex Code
8168 status collapsed
8169
8170 \begin_layout Plain Layout
8171 HTMLTOCSection
8172 \end_layout
8173
8174 \end_inset
8175
8176  [
8177 \begin_inset Flex Code
8178 status collapsed
8179
8180 \begin_layout Plain Layout
8181 <様式>
8182 \end_layout
8183
8184 \end_inset
8185
8186 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
8187 。これを指定しない場合には、\SpecialChar LyX
8188 はどのレイアウトを使用するべきか、解析しようと試みます。
8189 \end_layout
8190
8191 \begin_layout Description
8192 \begin_inset Flex Code
8193 status collapsed
8194
8195 \begin_layout Plain Layout
8196 IfCounter 
8197 \end_layout
8198
8199 \end_inset
8200
8201  [
8202 \begin_inset Flex Code
8203 status collapsed
8204
8205 \begin_layout Plain Layout
8206 <カウンタ>
8207 \end_layout
8208
8209 \end_inset
8210
8211 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
8212 \begin_inset Flex Code
8213 status collapsed
8214
8215 \begin_layout Plain Layout
8216 End
8217 \end_layout
8218
8219 \end_inset
8220
8221 」で閉じる必要があります。
8222 \begin_inset Newline newline
8223 \end_inset
8224
8225 カウンタについての詳細は、
8226 \begin_inset CommandInset ref
8227 LatexCommand ref
8228 reference "subsec:カウンタ"
8229
8230 \end_inset
8231
8232 をご覧ください。
8233 \end_layout
8234
8235 \begin_layout Description
8236 \begin_inset Flex Code
8237 status collapsed
8238
8239 \begin_layout Plain Layout
8240 IfStyle
8241 \end_layout
8242
8243 \end_inset
8244
8245  [
8246 \begin_inset Flex Code
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 <様式>
8251 \end_layout
8252
8253 \end_inset
8254
8255 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
8256 \begin_inset Flex Code
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260 End
8261 \end_layout
8262
8263 \end_inset
8264
8265 」で閉じる必要があります。
8266 \end_layout
8267
8268 \begin_layout Description
8269 \begin_inset Flex Code
8270 status collapsed
8271
8272 \begin_layout Plain Layout
8273 Input
8274 \end_layout
8275
8276 \end_inset
8277
8278  [
8279 \begin_inset Flex Code
8280 status collapsed
8281
8282 \begin_layout Plain Layout
8283 <ファイル名>
8284 \end_layout
8285
8286 \end_inset
8287
8288 ]
8289 \lang english
8290  
8291 \lang japanese
8292 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8293 のほとんどを収録している
8294 \begin_inset Flex Code
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 stdclass.inc
8299 \end_layout
8300
8301 \end_inset
8302
8303 のような標準レイアウトファイルです。
8304 \end_layout
8305
8306 \begin_layout Description
8307 \begin_inset Flex Code
8308 status collapsed
8309
8310 \begin_layout Plain Layout
8311 InsetLayout
8312 \end_layout
8313
8314 \end_inset
8315
8316  [
8317 \begin_inset Flex Code
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 <型>
8322 \end_layout
8323
8324 \end_inset
8325
8326 ]
8327 \lang english
8328  
8329 \lang japanese
8330 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8331 \begin_inset Flex Code
8332 status collapsed
8333
8334 \begin_layout Plain Layout
8335 End
8336 \end_layout
8337
8338 \end_inset
8339
8340 」で閉じる必要があります。
8341 \begin_inset Newline newline
8342 \end_inset
8343
8344 詳しい情報は、
8345 \begin_inset CommandInset ref
8346 LatexCommand ref
8347 reference "subsec:任意設定差込枠"
8348
8349 \end_inset
8350
8351 をご覧ください。
8352 \end_layout
8353
8354 \begin_layout Description
8355 \begin_inset Flex Code
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 LeftMargin
8360 \end_layout
8361
8362 \end_inset
8363
8364  [
8365 \begin_inset Flex Code
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 文字列
8370 \end_layout
8371
8372 \end_inset
8373
8374 ] 画面上の左余白の幅を指示する文字列。例:「
8375 \begin_inset Flex Code
8376 status collapsed
8377
8378 \begin_layout Plain Layout
8379 MMMMM
8380 \end_layout
8381
8382 \end_inset
8383
8384 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8385 \end_layout
8386
8387 \begin_layout Description
8388 \begin_inset Flex Code
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 NoCounter
8393 \end_layout
8394
8395 \end_inset
8396
8397  [
8398 \begin_inset Flex Code
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402 <カウンタ>
8403 \end_layout
8404
8405 \end_inset
8406
8407 ] このコマンドは、既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します。
8408 \end_layout
8409
8410 \begin_layout Description
8411 \begin_inset Flex Code
8412 status collapsed
8413
8414 \begin_layout Plain Layout
8415 NoFloat
8416 \end_layout
8417
8418 \end_inset
8419
8420  [
8421 \begin_inset Flex Code
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 <フロート>
8426 \end_layout
8427
8428 \end_inset
8429
8430 ] このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
8431 \end_layout
8432
8433 \begin_layout Description
8434 \begin_inset Flex Code
8435 status collapsed
8436
8437 \begin_layout Plain Layout
8438 NoStyle
8439 \end_layout
8440
8441 \end_inset
8442
8443  [
8444 \begin_inset Flex Code
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448 <様式>
8449 \end_layout
8450
8451 \end_inset
8452
8453 ] このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
8454 \end_layout
8455
8456 \begin_layout Description
8457 \begin_inset Flex Code
8458 status collapsed
8459
8460 \begin_layout Plain Layout
8461 OutputFormat
8462 \end_layout
8463
8464 \end_inset
8465
8466  [
8467 \begin_inset Flex Code
8468 status collapsed
8469
8470 \begin_layout Plain Layout
8471 <形式>
8472 \end_layout
8473
8474 \end_inset
8475
8476 ] このクラスによって生成されるファイル形式を示す文字列(
8477 \family sans
8478 設定
8479 \family default
8480 ダイアログで定義される形のもの)。おもに、
8481 \begin_inset Flex Code
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 OutputType
8486 \end_layout
8487
8488 \end_inset
8489
8490
8491 \begin_inset Flex Code
8492 status collapsed
8493
8494 \begin_layout Plain Layout
8495 literate
8496 \end_layout
8497
8498 \end_inset
8499
8500 になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
8501 \begin_inset Flex Code
8502 status collapsed
8503
8504 \begin_layout Plain Layout
8505 OutputType
8506 \end_layout
8507
8508 \end_inset
8509
8510 パラメーターに遭遇したときには、この文字列は、「
8511 \begin_inset Flex Code
8512 status collapsed
8513
8514 \begin_layout Plain Layout
8515 docbook
8516 \end_layout
8517
8518 \end_inset
8519
8520 」・「
8521 \begin_inset Flex Code
8522 status collapsed
8523
8524 \begin_layout Plain Layout
8525 lat
8526 \emph on
8527 ex
8528 \end_layout
8529
8530 \end_inset
8531
8532 」のいずれかにリセットされます。
8533 \end_layout
8534
8535 \begin_layout Description
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 OutputType
8541 \end_layout
8542
8543 \end_inset
8544
8545  [
8546 \begin_inset Flex Code
8547 status collapsed
8548
8549 \begin_layout Plain Layout
8550
8551 \emph on
8552 lat
8553 \emph default
8554 ex
8555 \end_layout
8556
8557 \end_inset
8558
8559
8560 \begin_inset Flex Code
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 docbook
8565 \end_layout
8566
8567 \end_inset
8568
8569
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 literate
8575 \end_layout
8576
8577 \end_inset
8578
8579 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
8580 \end_layout
8581
8582 \begin_layout Description
8583 \begin_inset Flex Code
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 PackageOptions
8588 \end_layout
8589
8590 \end_inset
8591
8592  [
8593 \begin_inset Flex Code
8594 status collapsed
8595
8596 \begin_layout Plain Layout
8597 文字列
8598 \end_layout
8599
8600 \end_inset
8601
8602  
8603 \begin_inset Flex Code
8604 status collapsed
8605
8606 \begin_layout Plain Layout
8607 文字列
8608 \end_layout
8609
8610 \end_inset
8611
8612 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します。例えば、「
8613 \begin_inset Flex Code
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 PackageOptions natbib square
8618 \end_layout
8619
8620 \end_inset
8621
8622 」とすると、
8623 \begin_inset Flex Code
8624 status collapsed
8625
8626 \begin_layout Plain Layout
8627 natbib
8628 \end_layout
8629
8630 \end_inset
8631
8632
8633 \begin_inset Flex Code
8634 status collapsed
8635
8636 \begin_layout Plain Layout
8637 square
8638 \end_layout
8639
8640 \end_inset
8641
8642 オプションとともに読み込みます(\SpecialChar TeX
8643 perts向けに述べると、これは、
8644 \begin_inset Flex Code
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 natbib
8649 \end_layout
8650
8651 \end_inset
8652
8653 を読み込む前に、\SpecialChar LyX
8654
8655 \begin_inset Flex Code
8656 status collapsed
8657
8658 \begin_layout Plain Layout
8659
8660 \backslash
8661 PassOptionsToPackage{natbib}{square}
8662 \end_layout
8663
8664 \end_inset
8665
8666 を出力させます)。
8667 \end_layout
8668
8669 \begin_layout Description
8670 \begin_inset Flex Code
8671 status collapsed
8672
8673 \begin_layout Plain Layout
8674 PageStyle
8675 \end_layout
8676
8677 \end_inset
8678
8679  [
8680 \emph on
8681
8682 \begin_inset Flex Code
8683 status collapsed
8684
8685 \begin_layout Plain Layout
8686 plain
8687 \end_layout
8688
8689 \end_inset
8690
8691
8692 \emph default
8693
8694 \begin_inset Flex Code
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698 empty
8699 \end_layout
8700
8701 \end_inset
8702
8703
8704 \begin_inset Flex Code
8705 status collapsed
8706
8707 \begin_layout Plain Layout
8708 headings
8709 \end_layout
8710
8711 \end_inset
8712
8713 ] 既定ページ様式。
8714 \begin_inset Flex MenuItem
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 文書\SpecialChar menuseparator
8719 設定
8720 \end_layout
8721
8722 \end_inset
8723
8724 ダイアログで変更することができます。
8725 \end_layout
8726
8727 \begin_layout Description
8728 \begin_inset Flex Code
8729 status collapsed
8730
8731 \begin_layout Plain Layout
8732 Preamble
8733 \end_layout
8734
8735 \end_inset
8736
8737  \SpecialChar LaTeX
8738 文書のプリアンブルを設定します。前に行った
8739 \begin_inset Flex Code
8740 status collapsed
8741
8742 \begin_layout Plain Layout
8743 Preamble
8744 \end_layout
8745
8746 \end_inset
8747
8748 宣言や
8749 \begin_inset Flex Code
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 AddToPreamble
8754 \end_layout
8755
8756 \end_inset
8757
8758 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 AddToPreamble
8764 \end_layout
8765
8766 \end_inset
8767
8768 を使用してください。)「
8769 \begin_inset Flex Code
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 EndPreamble
8774 \end_layout
8775
8776 \end_inset
8777
8778 」で閉じる必要があります。
8779 \end_layout
8780
8781 \begin_layout Description
8782 \begin_inset Flex Code
8783 status collapsed
8784
8785 \begin_layout Plain Layout
8786 Provides
8787 \end_layout
8788
8789 \end_inset
8790
8791  [
8792 \begin_inset Flex Code
8793 status collapsed
8794
8795 \begin_layout Plain Layout
8796 文字列
8797 \end_layout
8798
8799 \end_inset
8800
8801 ] [
8802 \begin_inset Flex Code
8803 status collapsed
8804
8805 \begin_layout Plain Layout
8806
8807 \emph on
8808 0
8809 \end_layout
8810
8811 \end_inset
8812
8813
8814 \begin_inset Flex Code
8815 status collapsed
8816
8817 \begin_layout Plain Layout
8818 1
8819 \end_layout
8820
8821 \end_inset
8822
8823 ] このクラスが
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 文字列
8829 \end_layout
8830
8831 \end_inset
8832
8833 で示される機能を既に提供しているかどうかを示します。機能は、一般的にパッケージ名(
8834 \begin_inset Flex Code
8835 status collapsed
8836
8837 \begin_layout Plain Layout
8838 amsmath
8839 \end_layout
8840
8841 \end_inset
8842
8843
8844 \begin_inset Flex Code
8845 status collapsed
8846
8847 \begin_layout Plain Layout
8848 makeidx
8849 \end_layout
8850
8851 \end_inset
8852
8853 ・\SpecialChar ldots
8854 )やマクロ名(
8855 \begin_inset Flex Code
8856 status collapsed
8857
8858 \begin_layout Plain Layout
8859 url
8860 \end_layout
8861
8862 \end_inset
8863
8864
8865 \begin_inset Flex Code
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 boldsymbol
8870 \end_layout
8871
8872 \end_inset
8873
8874 ・\SpecialChar ldots
8875 )です。機能一覧については、
8876 \begin_inset CommandInset ref
8877 LatexCommand ref
8878 reference "chap:関数一覧"
8879
8880 \end_inset
8881
8882 を参照。
8883 \end_layout
8884
8885 \begin_layout Description
8886 \begin_inset Flex Code
8887 status collapsed
8888
8889 \begin_layout Plain Layout
8890 ProvidesModule
8891 \end_layout
8892
8893 \end_inset
8894
8895  [
8896 \begin_inset Flex Code
8897 status collapsed
8898
8899 \begin_layout Plain Layout
8900 文字列
8901 \end_layout
8902
8903 \end_inset
8904
8905 ] このレイアウトが
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 文字列
8911 \end_layout
8912
8913 \end_inset
8914
8915 で表されているモジュールの機能を提供することを示し、
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 .module
8921 \end_layout
8922
8923 \end_inset
8924
8925 拡張子を除いたファイル名で指定します。
8926 \begin_inset Flex Code
8927 status collapsed
8928
8929 \begin_layout Plain Layout
8930 DefaultModule
8931 \end_layout
8932
8933 \end_inset
8934
8935 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8936 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
8937 \end_layout
8938
8939 \begin_layout Description
8940 \begin_inset Flex Code
8941 status collapsed
8942
8943 \begin_layout Plain Layout
8944 Requires
8945 \end_layout
8946
8947 \end_inset
8948
8949  [
8950 \begin_inset Flex Code
8951 status collapsed
8952
8953 \begin_layout Plain Layout
8954 文字列
8955 \end_layout
8956
8957 \end_inset
8958
8959 ] このクラスが
8960 \begin_inset Flex Code
8961 status collapsed
8962
8963 \begin_layout Plain Layout
8964 文字列
8965 \end_layout
8966
8967 \end_inset
8968
8969 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
8970 さい(機能一覧については
8971 \begin_inset CommandInset ref
8972 LatexCommand ref
8973 reference "chap:関数一覧"
8974
8975 \end_inset
8976
8977 を参照)。
8978 \lang english
8979 If you require a package with specific options, you can additionally use
8980  
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985
8986 \lang english
8987 PackageOptions
8988 \end_layout
8989
8990 \end_inset
8991
8992 .
8993 \end_layout
8994
8995 \begin_layout Description
8996 \begin_inset Flex Code
8997 status collapsed
8998
8999 \begin_layout Plain Layout
9000 RightMargin
9001 \end_layout
9002
9003 \end_inset
9004
9005  [
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010 文字列
9011 \end_layout
9012
9013 \end_inset
9014
9015 ] 画面上の右余白の幅を指示する文字列。例:「
9016 \begin_inset Flex Code
9017 status collapsed
9018
9019 \begin_layout Plain Layout
9020 MMMMM
9021 \end_layout
9022
9023 \end_inset
9024
9025 」。
9026 \end_layout
9027
9028 \begin_layout Description
9029 \begin_inset Flex Code
9030 status collapsed
9031
9032 \begin_layout Plain Layout
9033 SecNumDepth
9034 \end_layout
9035
9036 \end_inset
9037
9038  [
9039 \begin_inset Flex Code
9040 status collapsed
9041
9042 \begin_layout Plain Layout
9043 int=3
9044 \end_layout
9045
9046 \end_inset
9047
9048 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
9049 における
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 secnumdepth
9055 \end_layout
9056
9057 \end_inset
9058
9059 カウンタに対応します。
9060 \end_layout
9061
9062 \begin_layout Description
9063 \begin_inset Flex Code
9064 status collapsed
9065
9066 \begin_layout Plain Layout
9067 Sides
9068 \end_layout
9069
9070 \end_inset
9071
9072  [
9073 \emph on
9074
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 1
9080 \end_layout
9081
9082 \end_inset
9083
9084
9085 \emph default
9086 ,
9087 \begin_inset space \thinspace{}
9088 \end_inset
9089
9090
9091 \begin_inset Flex Code
9092 status collapsed
9093
9094 \begin_layout Plain Layout
9095 2
9096 \end_layout
9097
9098 \end_inset
9099
9100 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
9101 \begin_inset Flex MenuItem
9102 status collapsed
9103
9104 \begin_layout Plain Layout
9105 文書\SpecialChar menuseparator
9106 設定
9107 \end_layout
9108
9109 \end_inset
9110
9111 ダイアログで変更することができます。
9112 \end_layout
9113
9114 \begin_layout Description
9115 \begin_inset Flex Code
9116 status collapsed
9117
9118 \begin_layout Plain Layout
9119 Style
9120 \end_layout
9121
9122 \end_inset
9123
9124  [
9125 \begin_inset Flex Code
9126 status collapsed
9127
9128 \begin_layout Plain Layout
9129 <名称>
9130 \end_layout
9131
9132 \end_inset
9133
9134 ]
9135 \lang english
9136  
9137 \lang japanese
9138 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 End
9144 \end_layout
9145
9146 \end_inset
9147
9148 」で閉じる必要があります。
9149 \begin_inset Newline newline
9150 \end_inset
9151
9152 段落様式に関する詳細は、
9153 \begin_inset CommandInset ref
9154 LatexCommand ref
9155 reference "subsec:段落様式-XHTML"
9156
9157 \end_inset
9158
9159 をご覧ください。
9160 \end_layout
9161
9162 \begin_layout Description
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167 TitleLatexName
9168 \end_layout
9169
9170 \end_inset
9171
9172  [
9173 \begin_inset Flex Code
9174 status collapsed
9175
9176 \begin_layout Plain Layout
9177 文字列="maketitle"
9178 \end_layout
9179
9180 \end_inset
9181
9182
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 TitleLatexType
9188 \end_layout
9189
9190 \end_inset
9191
9192 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
9193  
9194 \begin_inset Flex Code
9195 status collapsed
9196
9197 \begin_layout Plain Layout
9198 TitleLatexType
9199 \end_layout
9200
9201 \end_inset
9202
9203 .
9204 \end_layout
9205
9206 \begin_layout Description
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211 TitleLatexType
9212 \end_layout
9213
9214 \end_inset
9215
9216  [
9217 \begin_inset Flex Code
9218 status collapsed
9219
9220 \begin_layout Plain Layout
9221
9222 \emph on
9223 CommandAfter
9224 \end_layout
9225
9226 \end_inset
9227
9228
9229 \begin_inset Flex Code
9230 status collapsed
9231
9232 \begin_layout Plain Layout
9233 Environment
9234 \end_layout
9235
9236 \end_inset
9237
9238 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9239 \begin_inset Flex Code
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 CommandAfter
9244 \end_layout
9245
9246 \end_inset
9247
9248 は、「
9249 \begin_inset Flex Code
9250 status collapsed
9251
9252 \begin_layout Plain Layout
9253 InTitle
9254 \begin_inset space ~
9255 \end_inset
9256
9257 1
9258 \end_layout
9259
9260 \end_inset
9261
9262 」が指定されている最後のレイアウトの後に、
9263 \begin_inset Flex Code
9264 status collapsed
9265
9266 \begin_layout Plain Layout
9267 TitleLatexName
9268 \end_layout
9269
9270 \end_inset
9271
9272 で指定したマクロ名を挿入することを意味します。
9273 \begin_inset Flex Code
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277 Environment
9278 \end_layout
9279
9280 \end_inset
9281
9282 は、「
9283 \begin_inset Flex Code
9284 status collapsed
9285
9286 \begin_layout Plain Layout
9287 InTitle
9288 \begin_inset space ~
9289 \end_inset
9290
9291 1
9292 \end_layout
9293
9294 \end_inset
9295
9296 」を持つ段落群を
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301 TitleLatexName
9302 \end_layout
9303
9304 \end_inset
9305
9306 で指定した環境でくるむ場合に対応します。
9307 \end_layout
9308
9309 \begin_layout Description
9310 \begin_inset Flex Code
9311 status collapsed
9312
9313 \begin_layout Plain Layout
9314 TocDepth
9315 \end_layout
9316
9317 \end_inset
9318
9319  [
9320 \begin_inset Flex Code
9321 status collapsed
9322
9323 \begin_layout Plain Layout
9324 int=3
9325 \end_layout
9326
9327 \end_inset
9328
9329 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9330
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 tocdepth
9336 \end_layout
9337
9338 \end_inset
9339
9340 カウンタに対応します。
9341 \end_layout
9342
9343 \begin_layout Subsection
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348 ClassOptions
9349 \end_layout
9350
9351 \end_inset
9352
9353
9354 \begin_inset CommandInset label
9355 LatexCommand label
9356 name "subsec:ClassOptions"
9357
9358 \end_inset
9359
9360
9361 \end_layout
9362
9363 \begin_layout Standard
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 ClassOptions
9369 \end_layout
9370
9371 \end_inset
9372
9373 部は、以下の項目を取り得ます。
9374 \end_layout
9375
9376 \begin_layout Description
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 FontSize
9382 \end_layout
9383
9384 \end_inset
9385
9386  [
9387 \begin_inset Flex Code
9388 status collapsed
9389
9390 \begin_layout Plain Layout
9391 文字列="10|11|12"
9392 \end_layout
9393
9394 \end_inset
9395
9396 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 |
9402 \end_layout
9403
9404 \end_inset
9405
9406 」で区切ります。
9407 \end_layout
9408
9409 \begin_layout Description
9410 \begin_inset Flex Code
9411 status collapsed
9412
9413 \begin_layout Plain Layout
9414 Header
9415 \end_layout
9416
9417 \end_inset
9418
9419  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9420 \begin_inset Quotes eld
9421 \end_inset
9422
9423 -//OASIS//DTD DocBook V4.2//EN
9424 \begin_inset Quotes erd
9425 \end_inset
9426
9427
9428 \end_layout
9429
9430 \begin_layout Description
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435 PageStyle
9436 \end_layout
9437
9438 \end_inset
9439
9440  [
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 文字列="empty|plain|headings|fancy"
9446 \end_layout
9447
9448 \end_inset
9449
9450 ] 使用できるページ様式の一覧です。「
9451 \begin_inset Flex Code
9452 status collapsed
9453
9454 \begin_layout Plain Layout
9455 |
9456 \end_layout
9457
9458 \end_inset
9459
9460 」で区切ります。
9461 \end_layout
9462
9463 \begin_layout Description
9464 \begin_inset Flex Code
9465 status collapsed
9466
9467 \begin_layout Plain Layout
9468 Other
9469 \end_layout
9470
9471 \end_inset
9472
9473  [
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478 文字列=""
9479 \end_layout
9480
9481 \end_inset
9482
9483
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488
9489 \backslash
9490 documentclass
9491 \end_layout
9492
9493 \end_inset
9494
9495 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9496 \end_layout
9497
9498 \begin_layout Standard
9499 \begin_inset Flex Code
9500 status collapsed
9501
9502 \begin_layout Plain Layout
9503 ClassOptions
9504 \end_layout
9505
9506 \end_inset
9507
9508 部は「
9509 \begin_inset Flex Code
9510 status collapsed
9511
9512 \begin_layout Plain Layout
9513 End
9514 \end_layout
9515
9516 \end_inset
9517
9518 」で閉じる必要があります。
9519 \end_layout
9520
9521 \begin_layout Subsection
9522 段落様式
9523 \begin_inset CommandInset label
9524 LatexCommand label
9525 name "subsec:段落様式"
9526
9527 \end_inset
9528
9529
9530 \end_layout
9531
9532 \begin_layout Standard
9533 段落様式の記述は、以下のようになります
9534 \begin_inset Foot
9535 status collapsed
9536
9537 \begin_layout Plain Layout
9538 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9539 \end_layout
9540
9541 \end_inset
9542
9543
9544 \end_layout
9545
9546 \begin_layout LyX-Code
9547 Style 
9548 \family roman
9549 \emph on
9550 名称
9551 \end_layout
9552
9553 \begin_layout LyX-Code
9554  ...
9555 \end_layout
9556
9557 \begin_layout LyX-Code
9558 End
9559 \end_layout
9560
9561 \begin_layout Standard
9562 ここでは、以下のコマンドを使用することができます。
9563 \end_layout
9564
9565 \begin_layout Description
9566 \begin_inset Flex Code
9567 status collapsed
9568
9569 \begin_layout Plain Layout
9570 Align
9571 \end_layout
9572
9573 \end_inset
9574
9575  [
9576 \begin_inset Flex Code
9577 status collapsed
9578
9579 \begin_layout Plain Layout
9580
9581 \emph on
9582 block
9583 \emph default
9584 , left, right, center
9585 \end_layout
9586
9587 \end_inset
9588
9589 ] 段落の揃え。
9590 \end_layout
9591
9592 \begin_layout Description
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 AlignPossible
9598 \end_layout
9599
9600 \end_inset
9601
9602  [
9603 \begin_inset Flex Code
9604 status collapsed
9605
9606 \begin_layout Plain Layout
9607
9608 \emph on
9609 block
9610 \emph default
9611 , left, right, center
9612 \end_layout
9613
9614 \end_inset
9615
9616 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9617 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9618 はできません)。
9619 \end_layout
9620
9621 \begin_layout Description
9622 \begin_inset Flex Code
9623 status collapsed
9624
9625 \begin_layout Plain Layout
9626 Argument
9627 \end_layout
9628
9629 \end_inset
9630
9631  [
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 整数
9637 \end_layout
9638
9639 \end_inset
9640
9641 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9642 でのみ意味を持ちます。コマンドまたは環
9643 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9644 \begin_inset Flex Code
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648 EndArgument
9649 \end_layout
9650
9651 \end_inset
9652
9653 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9654 \begin_inset Separator parbreak
9655 \end_inset
9656
9657
9658 \end_layout
9659
9660 \begin_deeper
9661 \begin_layout Quote
9662
9663 \family typewriter
9664 Argument 1
9665 \end_layout
9666
9667 \begin_layout Quote
9668
9669 \family typewriter
9670 ...
9671 \end_layout
9672
9673 \begin_layout Quote
9674
9675 \family typewriter
9676 EndArgument
9677 \end_layout
9678
9679 \begin_layout Quote
9680
9681 \family typewriter
9682 Argument 2
9683 \end_layout
9684
9685 \begin_layout Quote
9686
9687 \family typewriter
9688 ...
9689 \end_layout
9690
9691 \begin_layout Quote
9692
9693 \family typewriter
9694 EndArgument
9695 \end_layout
9696
9697 \begin_layout Standard
9698 \begin_inset Flex Code
9699 status collapsed
9700
9701 \begin_layout Plain Layout
9702 Argument
9703 \end_layout
9704
9705 \end_inset
9706
9707 定義内部では、以下の指定をすることができます。
9708 \end_layout
9709
9710 \begin_layout Itemize
9711 \begin_inset Flex Code
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 LabelString
9716 \end_layout
9717
9718 \end_inset
9719
9720  
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 [文字列]
9726 \end_layout
9727
9728 \end_inset
9729
9730  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9731 \begin_inset Flex Code
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735 MenuString
9736 \end_layout
9737
9738 \end_inset
9739
9740 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9741 \begin_inset space \space{}
9742 \end_inset
9743
9744
9745 \begin_inset Quotes eld
9746 \end_inset
9747
9748
9749 \begin_inset Flex Code
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753 Short Title|S
9754 \end_layout
9755
9756 \end_inset
9757
9758
9759 \begin_inset Quotes erd
9760 \end_inset
9761
9762 )。
9763 \end_layout
9764
9765 \begin_layout Itemize
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 MenuString
9771 \end_layout
9772
9773 \end_inset
9774
9775  
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 [文字列]
9781 \end_layout
9782
9783 \end_inset
9784
9785  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9786 \begin_inset space \space{}
9787 \end_inset
9788
9789
9790 \begin_inset Quotes eld
9791 \end_inset
9792
9793
9794 \begin_inset Flex Code
9795 status collapsed
9796
9797 \begin_layout Plain Layout
9798 Short Title|S
9799 \end_layout
9800
9801 \end_inset
9802
9803
9804 \begin_inset Quotes erd
9805 \end_inset
9806
9807 )。この指定は必須ではありません。指定しない場合には、代わりに
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 LabelString
9813 \end_layout
9814
9815 \end_inset
9816
9817 がメニューに用いられます。
9818 \end_layout
9819
9820 \begin_layout Itemize
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 Tooltip
9826 \end_layout
9827
9828 \end_inset
9829
9830  
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 [文字列]
9836 \end_layout
9837
9838 \end_inset
9839
9840  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9841 \end_layout
9842
9843 \begin_layout Itemize
9844 \begin_inset Flex Code
9845 status collapsed
9846
9847 \begin_layout Plain Layout
9848 Mandatory
9849 \end_layout
9850
9851 \end_inset
9852
9853  [
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858
9859 \emph on
9860 0
9861 \end_layout
9862
9863 \end_inset
9864
9865 ,
9866 \begin_inset space \thinspace{}
9867 \end_inset
9868
9869
9870 \begin_inset Flex Code
9871 status collapsed
9872
9873 \begin_layout Plain Layout
9874 1
9875 \end_layout
9876
9877 \end_inset
9878
9879 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9880 。既定では、必須引数は
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 {...}
9886 \end_layout
9887
9888 \end_inset
9889
9890 で区切られ、非必須引数は
9891 \begin_inset Flex Code
9892 status collapsed
9893
9894 \begin_layout Plain Layout
9895 [...]
9896 \end_layout
9897
9898 \end_inset
9899
9900 で区切られます。
9901 \end_layout
9902
9903 \begin_layout Itemize
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 Requires
9909 \end_layout
9910
9911 \end_inset
9912
9913  
9914 \begin_inset Flex Code
9915 status collapsed
9916
9917 \begin_layout Plain Layout
9918 [整数=0]
9919 \end_layout
9920
9921 \end_inset
9922
9923  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9924 コマンドでは、
9925 \begin_inset Flex Code
9926 status collapsed
9927
9928 \begin_layout Plain Layout
9929
9930 \backslash
9931 command[][引数]{文字列}
9932 \end_layout
9933
9934 \end_inset
9935
9936 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9937 \begin_inset Flex Code
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941 Argument 2
9942 \end_layout
9943
9944 \end_inset
9945
9946 中に
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951 Requires 1
9952 \end_layout
9953
9954 \end_inset
9955
9956 ステートメントを置くことで実現できます。
9957 \end_layout
9958
9959 \begin_layout Itemize
9960 \begin_inset Flex Code
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964 LeftDelim
9965 \end_layout
9966
9967 \end_inset
9968
9969  
9970 \begin_inset Flex Code
9971 status collapsed
9972
9973 \begin_layout Plain Layout
9974 [文字列]
9975 \end_layout
9976
9977 \end_inset
9978
9979  (
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984 {
9985 \end_layout
9986
9987 \end_inset
9988
9989
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 [
9995 \end_layout
9996
9997 \end_inset
9998
9999 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
10000 \begin_inset Flex Code
10001 status collapsed
10002
10003 \begin_layout Plain Layout
10004 <br/>
10005 \end_layout
10006
10007 \end_inset
10008
10009 で指示できます。
10010 \end_layout
10011
10012 \begin_layout Itemize
10013 \begin_inset Flex Code
10014 status collapsed
10015
10016 \begin_layout Plain Layout
10017 RightDelim
10018 \end_layout
10019
10020 \end_inset
10021
10022  
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 [文字列]
10028 \end_layout
10029
10030 \end_inset
10031
10032  (
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 }
10038 \end_layout
10039
10040 \end_inset
10041
10042
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 ]
10048 \end_layout
10049
10050 \end_inset
10051
10052 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
10053 \begin_inset Flex Code
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 <br/>
10058 \end_layout
10059
10060 \end_inset
10061
10062 で指示できます。
10063 \end_layout
10064
10065 \begin_layout Itemize
10066 \begin_inset Flex Code
10067 status collapsed
10068
10069 \begin_layout Plain Layout
10070 DefaultArg
10071 \end_layout
10072
10073 \end_inset
10074
10075  
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 [文字列]
10081 \end_layout
10082
10083 \end_inset
10084
10085  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10086 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
10087 \end_layout
10088
10089 \begin_layout Itemize
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 PresetArg
10095 \end_layout
10096
10097 \end_inset
10098
10099  
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 [文字列]
10105 \end_layout
10106
10107 \end_inset
10108
10109  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
10110 \end_layout
10111
10112 \begin_layout Itemize
10113 \begin_inset Flex Code
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 Font
10118 \end_layout
10119
10120 \end_inset
10121
10122  引数の内容に用いられるフォント。
10123 \begin_inset CommandInset ref
10124 LatexCommand ref
10125 reference "subsec:フォント指定"
10126
10127 \end_inset
10128
10129 参照。
10130 \end_layout
10131
10132 \begin_layout Itemize
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 LabelFont
10138 \end_layout
10139
10140 \end_inset
10141
10142  ラベルに用いられるフォント。
10143 \begin_inset CommandInset ref
10144 LatexCommand ref
10145 reference "subsec:フォント指定"
10146
10147 \end_inset
10148
10149 参照。
10150 \end_layout
10151
10152 \begin_layout Itemize
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 Decoration
10158 \end_layout
10159
10160 \end_inset
10161
10162  [
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167
10168 \emph on
10169 Classic
10170 \emph default
10171 , Minimalistic, Conglomerate
10172 \end_layout
10173
10174 \end_inset
10175
10176 ] 差込枠の枠とボタンに用いられる装飾様式。
10177 \end_layout
10178
10179 \begin_layout Itemize
10180 \begin_inset Flex Code
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 AutoInsert
10185 \end_layout
10186
10187 \end_inset
10188
10189  
10190 \begin_inset Flex Code
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 [整数=0]
10195 \end_layout
10196
10197 \end_inset
10198
10199  これが
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 1
10205 \end_layout
10206
10207 \end_inset
10208
10209 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
10210 \end_layout
10211
10212 \begin_layout Itemize
10213
10214 \lang english
10215 \begin_inset Flex Code
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219
10220 \lang english
10221 InsertCotext
10222 \end_layout
10223
10224 \end_inset
10225
10226  
10227 \begin_inset Flex Code
10228 status collapsed
10229
10230 \begin_layout Plain Layout
10231
10232 \lang english
10233 [int=0]
10234 \end_layout
10235
10236 \end_inset
10237
10238  If this is set to 
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243
10244 \lang english
10245 1
10246 \end_layout
10247
10248 \end_inset
10249
10250 , this argument will be inserted with a copy of the co-text (either selected
10251  text or the whole paragraph) as content.
10252 \end_layout
10253
10254 \begin_layout Itemize
10255
10256 \lang english
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261
10262 \lang english
10263 PassThruChars
10264 \end_layout
10265
10266 \end_inset
10267
10268  [
10269 \begin_inset Flex Code
10270 status collapsed
10271
10272 \begin_layout Plain Layout
10273
10274 \lang english
10275 string of characters
10276 \end_layout
10277
10278 \end_inset
10279
10280 ]
10281 \family typewriter
10282  
10283 \family default
10284 Defines individual characters that should be output in raw form, meaning
10285  without special translations that \SpecialChar LaTeX
10286  would require.
10287  Note that, contrary to PassThru, this needs to be explicitly defined for
10288  arguments.
10289  That is, arguments do not inherit PassThruChars from their parent inset
10290  or layout.
10291 \end_layout
10292
10293 \begin_layout Standard
10294 既定では、
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299 LatexType
10300 \end_layout
10301
10302 \end_inset
10303
10304
10305 \begin_inset Flex Code
10306 status collapsed
10307
10308 \begin_layout Plain Layout
10309 Command
10310 \end_layout
10311
10312 \end_inset
10313
10314 のとき、各レイアウトで\SpecialChar LyX
10315 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10316 \begin_inset Flex Code
10317 status collapsed
10318
10319 \begin_layout Plain Layout
10320 post:
10321 \end_layout
10322
10323 \end_inset
10324
10325 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10326 \begin_inset Flex Code
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 post:1
10331 \end_layout
10332
10333 \end_inset
10334
10335 となります。後置引数は、
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 Command
10341 \end_layout
10342
10343 \end_inset
10344
10345 以外の
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 LatexType
10351 \end_layout
10352
10353 \end_inset
10354
10355 では無視されます。
10356 \end_layout
10357
10358 \begin_layout Standard
10359 (
10360 \begin_inset Flex Code
10361 status collapsed
10362
10363 \begin_layout Plain Layout
10364
10365 \backslash
10366 item[foo]
10367 \end_layout
10368
10369 \end_inset
10370
10371 のような)箇条書き
10372 \begin_inset Flex Code
10373 status collapsed
10374
10375 \begin_layout Plain Layout
10376
10377 \backslash
10378 item
10379 \end_layout
10380
10381 \end_inset
10382
10383 の引数は、前置句
10384 \begin_inset Flex Code
10385 status collapsed
10386
10387 \begin_layout Plain Layout
10388 item:
10389 \end_layout
10390
10391 \end_inset
10392
10393 の後に番号を付けます(例:
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 Argument item:1
10399 \end_layout
10400
10401 \end_inset
10402
10403 )。
10404 \end_layout
10405
10406 \end_deeper
10407 \begin_layout Description
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 BabelPreamble
10413 \end_layout
10414
10415 \end_inset
10416
10417  これは、前に現れたこの様式の
10418 \begin_inset Flex Code
10419 status collapsed
10420
10421 \begin_layout Plain Layout
10422 BabelPreamble
10423 \end_layout
10424
10425 \end_inset
10426
10427 宣言をすべて、完全に上書きしますので注意してください。「
10428 \begin_inset Flex Code
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432 EndBabelPreamble
10433 \end_layout
10434
10435 \end_inset
10436
10437 」で閉じる必要があります。これの利用法についての詳細は、第
10438 \begin_inset CommandInset ref
10439 LatexCommand ref
10440 reference "subsec:段落様式の国際化"
10441
10442 \end_inset
10443
10444 節をご覧ください。
10445 \end_layout
10446
10447 \begin_layout Description
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 BottomSep
10453 \end_layout
10454
10455 \end_inset
10456
10457  [
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 浮動小数点型=0
10463 \end_layout
10464
10465 \end_inset
10466
10467 ]
10468 \begin_inset Foot
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 ここで「浮動小数点型」とは1.5のような実数を指します。
10473 \end_layout
10474
10475 \end_inset
10476
10477  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10478 す。
10479 \end_layout
10480
10481 \begin_layout Description
10482 \begin_inset Flex Code
10483 status collapsed
10484
10485 \begin_layout Plain Layout
10486 Category
10487 \end_layout
10488
10489 \end_inset
10490
10491  [
10492 \begin_inset Flex Code
10493 status collapsed
10494
10495 \begin_layout Plain Layout
10496 文字列
10497 \end_layout
10498
10499 \end_inset
10500
10501 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10502 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10503 \end_layout
10504
10505 \begin_layout Description
10506 \begin_inset Flex Code
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 CommandDepth
10511 \end_layout
10512
10513 \end_inset
10514
10515  XMLコマンドの深度。XML型の書式でのみ使用されます。
10516 \end_layout
10517
10518 \begin_layout Description
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523 CopyStyle
10524 \end_layout
10525
10526 \end_inset
10527
10528  [
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 文字列
10534 \end_layout
10535
10536 \end_inset
10537
10538 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10539 \end_layout
10540
10541 \begin_layout Description
10542 \begin_inset Flex Code
10543 status collapsed
10544
10545 \begin_layout Plain Layout
10546 DependsOn
10547 \end_layout
10548
10549 \end_inset
10550
10551  [
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 <名称>
10557 \end_layout
10558
10559 \end_inset
10560
10561 ]
10562 \lang english
10563  
10564 \lang japanese
10565 この
10566 \emph on
10567 前に
10568 \emph default
10569 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10570 \begin_inset Foot
10571 status collapsed
10572
10573 \begin_layout Plain Layout
10574 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10575 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10576 あります。
10577 \end_layout
10578
10579 \end_inset
10580
10581
10582 \end_layout
10583
10584 \begin_layout Description
10585 \begin_inset Flex Code
10586 status collapsed
10587
10588 \begin_layout Plain Layout
10589 EndLabeltype
10590 \end_layout
10591
10592 \end_inset
10593
10594  [
10595 \begin_inset Flex Code
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599
10600 \emph on
10601 No_Label
10602 \emph default
10603 , Box, Filled_Box, Static
10604 \end_layout
10605
10606 \end_inset
10607
10608 ] 段落の最後(あるいは
10609 \begin_inset Flex Code
10610 status collapsed
10611
10612 \begin_layout Plain Layout
10613 LatexType
10614 \end_layout
10615
10616 \end_inset
10617
10618 が、
10619 \begin_inset Flex Code
10620 status collapsed
10621
10622 \begin_layout Plain Layout
10623 Environment
10624 \end_layout
10625
10626 \end_inset
10627
10628
10629 \begin_inset Flex Code
10630 status collapsed
10631
10632 \begin_layout Plain Layout
10633 Item_Environment
10634 \end_layout
10635
10636 \end_inset
10637
10638
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 List_Environment
10644 \end_layout
10645
10646 \end_inset
10647
10648 のいずれかの場合は、段落群の最後)に置くラベル。
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 No_Label
10654 \end_layout
10655
10656 \end_inset
10657
10658 の場合は「何もない」ことを指し、
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 Box
10664 \end_layout
10665
10666 \end_inset
10667
10668 (あるいは
10669 \begin_inset Flex Code
10670 status collapsed
10671
10672 \begin_layout Plain Layout
10673 Filled_Box
10674 \end_layout
10675
10676 \end_inset
10677
10678 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10679 \begin_inset Flex Code
10680 status collapsed
10681
10682 \begin_layout Plain Layout
10683 Static
10684 \end_layout
10685
10686 \end_inset
10687
10688 は明示したテキスト文字列を指します。
10689 \end_layout
10690
10691 \begin_layout Description
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 EndLabelString
10697 \end_layout
10698
10699 \end_inset
10700
10701  [
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 文字列=""
10707 \end_layout
10708
10709 \end_inset
10710
10711
10712 \begin_inset Flex Code
10713 status collapsed
10714
10715 \begin_layout Plain Layout
10716 Static
10717 \end_layout
10718
10719 \end_inset
10720
10721
10722 \begin_inset Flex Code
10723 status collapsed
10724
10725 \begin_layout Plain Layout
10726 EndLabelType
10727 \end_layout
10728
10729 \end_inset
10730
10731 のラベルで用いる文字列。
10732 \end_layout
10733
10734 \begin_layout Description
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 Font
10740 \end_layout
10741
10742 \end_inset
10743
10744  本文テキストとラベルの
10745 \emph on
10746 両方で
10747 \emph default
10748 用いられるフォント。第
10749 \begin_inset CommandInset ref
10750 LatexCommand ref
10751 reference "subsec:フォント指定"
10752
10753 \end_inset
10754
10755 節を参照。このフォントを定義すると、自動的に
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 LabelFont
10761 \end_layout
10762
10763 \end_inset
10764
10765 も同じ値で定義されることに注意してください。したがって、
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 LabelFont
10771 \end_layout
10772
10773 \end_inset
10774
10775 も同時に定義したい場合には、これを先に定義してください。
10776 \end_layout
10777
10778 \begin_layout Description
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 ForceLocal
10784 \end_layout
10785
10786 \end_inset
10787
10788  [
10789 \begin_inset Flex Code
10790 status collapsed
10791
10792 \begin_layout Plain Layout
10793 int=0
10794 \end_layout
10795
10796 \end_inset
10797
10798 ] 新しい様式を\SpecialChar LyX
10799 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10800  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10801 できます。様式の
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806 ForceLocal
10807 \end_layout
10808
10809 \end_inset
10810
10811 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10812 版の\SpecialChar LyX
10813 もこの様式を取り扱えるようになります。
10814 \begin_inset Flex Code
10815 status collapsed
10816
10817 \begin_layout Plain Layout
10818 ForceLocal
10819 \end_layout
10820
10821 \end_inset
10822
10823 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10824 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10825 \end_layout
10826
10827 \begin_layout Description
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 FreeSpacing
10833 \end_layout
10834
10835 \end_inset
10836
10837  [
10838 \emph on
10839
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 0
10845 \end_layout
10846
10847 \end_inset
10848
10849
10850 \emph default
10851 ,
10852 \begin_inset space \thinspace{}
10853 \end_inset
10854
10855
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 1
10861 \end_layout
10862
10863 \end_inset
10864
10865 ] \SpecialChar LyX
10866 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10867 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10868 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 FreeSpacing
10874 \end_layout
10875
10876 \end_inset
10877
10878 を有効にすることが認められています。\SpecialChar LyX
10879 は、\SpecialChar LaTeX
10880 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10881 \end_layout
10882
10883 \begin_layout Description
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888 HTML*
10889 \end_layout
10890
10891 \end_inset
10892
10893  これらのタグは、XHTML出力で使用されます。第
10894 \begin_inset CommandInset ref
10895 LatexCommand ref
10896 reference "subsec:段落様式-XHTML"
10897
10898 \end_inset
10899
10900 節をご覧ください。
10901 \end_layout
10902
10903 \begin_layout Description
10904 \begin_inset Flex Code
10905 status collapsed
10906
10907 \begin_layout Plain Layout
10908 InnerTag
10909 \end_layout
10910
10911 \end_inset
10912
10913  [[FIXME]] (XML型書式でのみ使用されます。)
10914 \end_layout
10915
10916 \begin_layout Description
10917 \begin_inset Flex Code
10918 status collapsed
10919
10920 \begin_layout Plain Layout
10921 InPreamble
10922 \end_layout
10923
10924 \end_inset
10925
10926  [
10927 \emph on
10928
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 0
10934 \end_layout
10935
10936 \end_inset
10937
10938
10939 \emph default
10940 ,
10941 \begin_inset space \thinspace{}
10942 \end_inset
10943
10944
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 1
10950 \end_layout
10951
10952 \end_inset
10953
10954
10955 \begin_inset Flex Code
10956 status collapsed
10957
10958 \begin_layout Plain Layout
10959 1
10960 \end_layout
10961
10962 \end_inset
10963
10964 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10965 です。これは、
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 LatexType
10971 \end_layout
10972
10973 \end_inset
10974
10975
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 Command
10981 \end_layout
10982
10983 \end_inset
10984
10985 または
10986 \begin_inset Flex Code
10987 status collapsed
10988
10989 \begin_layout Plain Layout
10990 Paragraph
10991 \end_layout
10992
10993 \end_inset
10994
10995 の様式に対してのみ動作します。
10996 \end_layout
10997
10998 \begin_layout Description
10999 \begin_inset Flex Code
11000 status collapsed
11001
11002 \begin_layout Plain Layout
11003 InTitle
11004 \end_layout
11005
11006 \end_inset
11007
11008  [
11009 \emph on
11010
11011 \begin_inset Flex Code
11012 status collapsed
11013
11014 \begin_layout Plain Layout
11015 0
11016 \end_layout
11017
11018 \end_inset
11019
11020
11021 \emph default
11022 ,
11023 \begin_inset space \thinspace{}
11024 \end_inset
11025
11026
11027 \begin_inset Flex Code
11028 status collapsed
11029
11030 \begin_layout Plain Layout
11031 1
11032 \end_layout
11033
11034 \end_inset
11035
11036
11037 \begin_inset Flex Code
11038 status collapsed
11039
11040 \begin_layout Plain Layout
11041 1
11042 \end_layout
11043
11044 \end_inset
11045
11046 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 TitleLatexType
11052 \end_layout
11053
11054 \end_inset
11055
11056
11057 \begin_inset Flex Code
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 TitleLatexName
11062 \end_layout
11063
11064 \end_inset
11065
11066 も参照)。
11067 \end_layout
11068
11069 \begin_layout Description
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 ItemCommand
11075 \end_layout
11076
11077 \end_inset
11078
11079  [
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 文字列="item"
11085 \end_layout
11086
11087 \end_inset
11088
11089 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11090 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
11091 出力中では
11092 \begin_inset Flex Code
11093 status collapsed
11094
11095 \begin_layout Plain Layout
11096
11097 \backslash
11098 item
11099 \end_layout
11100
11101 \end_inset
11102
11103 となります)。
11104 \end_layout
11105
11106 \begin_layout Description
11107 \begin_inset Flex Code
11108 status collapsed
11109
11110 \begin_layout Plain Layout
11111 ItemSep
11112 \end_layout
11113
11114 \end_inset
11115
11116  [
11117 \begin_inset Flex Code
11118 status collapsed
11119
11120 \begin_layout Plain Layout
11121 浮動小数点型=0
11122 \end_layout
11123
11124 \end_inset
11125
11126 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
11127 \begin_inset Flex Code
11128 status collapsed
11129
11130 \begin_layout Plain Layout
11131 ParSep
11132 \end_layout
11133
11134 \end_inset
11135
11136 だけ分離されます。しかし、その環境の項目全体は、さらにこの
11137 \begin_inset Flex Code
11138 status collapsed
11139
11140 \begin_layout Plain Layout
11141 ItemSep
11142 \end_layout
11143
11144 \end_inset
11145
11146 分だけ離されます。これは
11147 \emph on
11148 乗数
11149 \emph default
11150 であることに注意してください。
11151 \end_layout
11152
11153 \begin_layout Description
11154 \begin_inset Flex Code
11155 status collapsed
11156
11157 \begin_layout Plain Layout
11158 ItemTag
11159 \end_layout
11160
11161 \end_inset
11162
11163  [[FIXME]] (XML型書式でのみ使用されます。)
11164 \end_layout
11165
11166 \begin_layout Description
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 KeepEmpty
11172 \end_layout
11173
11174 \end_inset
11175
11176  [
11177 \emph on
11178
11179 \begin_inset Flex Code
11180 status collapsed
11181
11182 \begin_layout Plain Layout
11183 0
11184 \end_layout
11185
11186 \end_inset
11187
11188
11189 \emph default
11190 ,
11191 \begin_inset space \thinspace{}
11192 \end_inset
11193
11194
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 1
11200 \end_layout
11201
11202 \end_inset
11203
11204 ] 段落を空のままにすると、\SpecialChar LaTeX
11205 出力が空になってしまうので、通常、\SpecialChar LyX
11206 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
11207 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
11208 まないある種の改行として使用することもあります。
11209 \end_layout
11210
11211 \begin_layout Description
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 LabelBottomsep
11217 \end_layout
11218
11219 \end_inset
11220
11221  [
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 浮動小数点型=0
11227 \end_layout
11228
11229 \end_inset
11230
11231 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11232 \begin_inset Flex Code
11233 status collapsed
11234
11235 \begin_layout Plain Layout
11236 Top_Environment
11237 \end_layout
11238
11239 \end_inset
11240
11241 および
11242 \begin_inset Newline linebreak
11243 \end_inset
11244
11245
11246 \begin_inset Flex Code
11247 status collapsed
11248
11249 \begin_layout Plain Layout
11250 Centered_Top_Environment
11251 \end_layout
11252
11253 \end_inset
11254
11255 )。
11256 \end_layout
11257
11258 \begin_layout Description
11259 \begin_inset Flex Code
11260 status collapsed
11261
11262 \begin_layout Plain Layout
11263 LabelCounter
11264 \end_layout
11265
11266 \end_inset
11267
11268  [
11269 \begin_inset Flex Code
11270 status collapsed
11271
11272 \begin_layout Plain Layout
11273 文字列=""
11274 \end_layout
11275
11276 \end_inset
11277
11278 ] 自動連番に使われるカウンタ名(詳しくは第
11279 \begin_inset CommandInset ref
11280 LatexCommand ref
11281 reference "subsec:カウンタ"
11282
11283 \end_inset
11284
11285 節参照)。カウンタがラベル中に表示されるようにするためには、
11286 \begin_inset Flex Code
11287 status collapsed
11288
11289 \begin_layout Plain Layout
11290 LabelString
11291 \end_layout
11292
11293 \end_inset
11294
11295 中で参照する必要があります。これは、少なくとも
11296 \begin_inset Flex Code
11297 status collapsed
11298
11299 \begin_layout Plain Layout
11300 Static
11301 \end_layout
11302
11303 \end_inset
11304
11305
11306 \begin_inset Flex Code
11307 status collapsed
11308
11309 \begin_layout Plain Layout
11310 Above
11311 \end_layout
11312
11313 \end_inset
11314
11315
11316 \begin_inset Flex Code
11317 status collapsed
11318
11319 \begin_layout Plain Layout
11320 Centered
11321 \end_layout
11322
11323 \end_inset
11324
11325 の各
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 LabelType
11331 \end_layout
11332
11333 \end_inset
11334
11335 で動作します。
11336 \begin_inset Newline newline
11337 \end_inset
11338
11339 また、
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 LabelType
11345 \end_layout
11346
11347 \end_inset
11348
11349
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 Enumerate
11355 \end_layout
11356
11357 \end_inset
11358
11359 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11360 \begin_inset Flex Code
11361 status collapsed
11362
11363 \begin_layout Plain Layout
11364 LabelCounter myenum
11365 \end_layout
11366
11367 \end_inset
11368
11369 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11370 におけるのと同様、実際に使われるカウンタは、
11371 \begin_inset Flex Code
11372 status collapsed
11373
11374 \begin_layout Plain Layout
11375 myenumi
11376 \end_layout
11377
11378 \end_inset
11379
11380
11381 \begin_inset Flex Code
11382 status collapsed
11383
11384 \begin_layout Plain Layout
11385 myenumii
11386 \end_layout
11387
11388 \end_inset
11389
11390
11391 \begin_inset Flex Code
11392 status collapsed
11393
11394 \begin_layout Plain Layout
11395 myenumii
11396 \end_layout
11397
11398 \end_inset
11399
11400
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405 myenumiv
11406 \end_layout
11407
11408 \end_inset
11409
11410 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11411 \begin_inset Newline newline
11412 \end_inset
11413
11414 カウンタの詳細については、
11415 \begin_inset CommandInset ref
11416 LatexCommand ref
11417 reference "subsec:カウンタ"
11418
11419 \end_inset
11420
11421 をご覧ください。
11422 \end_layout
11423
11424 \begin_layout Description
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429 LabelFont
11430 \end_layout
11431
11432 \end_inset
11433
11434  ラベルに使用されるフォント。
11435 \begin_inset CommandInset ref
11436 LatexCommand ref
11437 reference "subsec:フォント指定"
11438
11439 \end_inset
11440
11441 を参照。
11442 \end_layout
11443
11444 \begin_layout Description
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449 LabelIndent
11450 \end_layout
11451
11452 \end_inset
11453
11454  [
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 文字列=""
11460 \end_layout
11461
11462 \end_inset
11463
11464 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11465 \end_layout
11466
11467 \begin_layout Description
11468 \begin_inset Flex Code
11469 status collapsed
11470
11471 \begin_layout Plain Layout
11472 LabelSep
11473 \end_layout
11474
11475 \end_inset
11476
11477  [
11478 \begin_inset Flex Code
11479 status collapsed
11480
11481 \begin_layout Plain Layout
11482 文字列=""
11483 \end_layout
11484
11485 \end_inset
11486
11487 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11488 \end_layout
11489
11490 \begin_layout Description
11491 \begin_inset Flex Code
11492 status collapsed
11493
11494 \begin_layout Plain Layout
11495 LabelString
11496 \end_layout
11497
11498 \end_inset
11499
11500  [
11501 \begin_inset Flex Code
11502 status collapsed
11503
11504 \begin_layout Plain Layout
11505 文字列=""
11506 \end_layout
11507
11508 \end_inset
11509
11510
11511 \begin_inset Flex Code
11512 status collapsed
11513
11514 \begin_layout Plain Layout
11515 Static
11516 \end_layout
11517
11518 \end_inset
11519
11520 ラベル型でラベルに使用する文字列。
11521 \begin_inset Flex Code
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 LabelCounter
11526 \end_layout
11527
11528 \end_inset
11529
11530 を設定している場合、
11531 \begin_inset CommandInset ref
11532 LatexCommand ref
11533 reference "subsec:カウンタ"
11534
11535 \end_inset
11536
11537 に述べられている特別な整形コマンドを含めることができます。
11538 \end_layout
11539
11540 \begin_layout Description
11541 \begin_inset Flex Code
11542 status collapsed
11543
11544 \begin_layout Plain Layout
11545 LabelStringAppendix
11546 \end_layout
11547
11548 \end_inset
11549
11550  [
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 文字列=""
11556 \end_layout
11557
11558 \end_inset
11559
11560 ] これは付録の中で
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565 LabelString
11566 \end_layout
11567
11568 \end_inset
11569
11570 の代わりに用いられます。各
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575 LabelString
11576 \end_layout
11577
11578 \end_inset
11579
11580 ステートメントは、
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 LabelStringAppendix
11586 \end_layout
11587
11588 \end_inset
11589
11590 をもリセットすることに注意してください。
11591 \end_layout
11592
11593 \begin_layout Description
11594 \begin_inset Flex Code
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598 LabelTag
11599 \end_layout
11600
11601 \end_inset
11602
11603  [FIXME] (XML型書式でのみ使用されます。)
11604 \end_layout
11605
11606 \begin_layout Description
11607 \begin_inset Flex Code
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 LabelType
11612 \end_layout
11613
11614 \end_inset
11615
11616  [
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621
11622 \emph on
11623 No_Label
11624 \emph default
11625 , Manual, Static, Above,
11626 \begin_inset Newline newline
11627 \end_inset
11628
11629 Centered, Sensitive, Enumerate,
11630 \begin_inset Newline newline
11631 \end_inset
11632
11633 Itemize, Bibliography
11634 \end_layout
11635
11636 \end_inset
11637
11638 ]
11639 \begin_inset Separator parbreak
11640 \end_inset
11641
11642
11643 \end_layout
11644
11645 \begin_deeper
11646 \begin_layout Description
11647 \begin_inset Flex Code
11648 status collapsed
11649
11650 \begin_layout Plain Layout
11651 Manual
11652 \end_layout
11653
11654 \end_inset
11655
11656  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11657 \end_layout
11658
11659 \begin_layout Description
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 Static
11665 \end_layout
11666
11667 \end_inset
11668
11669  は、ラベルが
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 LabelString
11675 \end_layout
11676
11677 \end_inset
11678
11679 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684 LatexType
11685 \end_layout
11686
11687 \end_inset
11688
11689
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 Environment
11695 \end_layout
11696
11697 \end_inset
11698
11699 のときは、連続する同じ
11700 \begin_inset Flex Code
11701 status collapsed
11702
11703 \begin_layout Plain Layout
11704 Style
11705 \end_layout
11706
11707 \end_inset
11708
11709 の段落中、最初の段落にのみ表示されます。
11710 \end_layout
11711
11712 \begin_layout Description
11713 \begin_inset Flex Code
11714 status collapsed
11715
11716 \begin_layout Plain Layout
11717 Above
11718 \end_layout
11719
11720 \end_inset
11721
11722 および
11723 \begin_inset Flex Code
11724 status collapsed
11725
11726 \begin_layout Plain Layout
11727 Centered
11728 \end_layout
11729
11730 \end_inset
11731
11732  は、
11733 \begin_inset Flex Code
11734 status collapsed
11735
11736 \begin_layout Plain Layout
11737 Static
11738 \end_layout
11739
11740 \end_inset
11741
11742 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11743 \end_layout
11744
11745 \begin_layout Description
11746 \begin_inset Flex Code
11747 status collapsed
11748
11749 \begin_layout Plain Layout
11750 Sensitive
11751 \end_layout
11752
11753 \end_inset
11754
11755  はキャプションラベルの「図」や「表」の特別な場合です。
11756 \begin_inset Flex Code
11757 status collapsed
11758
11759 \begin_layout Plain Layout
11760 Sensitive
11761 \end_layout
11762
11763 \end_inset
11764
11765 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11766 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11767 \begin_inset Flex Code
11768 status collapsed
11769
11770 \begin_layout Plain Layout
11771 LabelString
11772 \end_layout
11773
11774 \end_inset
11775
11776 は「意味を成しません!」と表示されます。
11777 \end_layout
11778
11779 \begin_layout Description
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 Enumerate
11785 \end_layout
11786
11787 \end_inset
11788
11789  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11790 す。
11791 \end_layout
11792
11793 \begin_layout Description
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 Itemize
11799 \end_layout
11800
11801 \end_inset
11802
11803  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11804 \end_layout
11805
11806 \begin_layout Description
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 Bibliography
11812 \end_layout
11813
11814 \end_inset
11815
11816  は、
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821 LatexType BibEnvironment
11822 \end_layout
11823
11824 \end_inset
11825
11826 とともにのみ使用されます。
11827 \end_layout
11828
11829 \end_deeper
11830 \begin_layout Description
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835 LangPreamble
11836 \end_layout
11837
11838 \end_inset
11839
11840  これは、この様式で既に出現した
11841 \begin_inset Flex Code
11842 status collapsed
11843
11844 \begin_layout Plain Layout
11845 LangPreamble
11846 \end_layout
11847
11848 \end_inset
11849
11850 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11851 \begin_inset CommandInset ref
11852 LatexCommand ref
11853 reference "subsec:段落様式の国際化"
11854
11855 \end_inset
11856
11857 をご覧ください。
11858 \end_layout
11859
11860 \begin_layout Description
11861 \begin_inset Flex Code
11862 status collapsed
11863
11864 \begin_layout Plain Layout
11865 LatexName
11866 \end_layout
11867
11868 \end_inset
11869
11870  [
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 <名称>
11876 \end_layout
11877
11878 \end_inset
11879
11880 ] 対応する\SpecialChar LaTeX
11881 の名称です。環境名かコマンド名を指します。
11882 \end_layout
11883
11884 \begin_layout Description
11885 \begin_inset Flex Code
11886 status collapsed
11887
11888 \begin_layout Plain Layout
11889 LatexParam
11890 \end_layout
11891
11892 \end_inset
11893
11894  [
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899 <パラメータ>
11900 \end_layout
11901
11902 \end_inset
11903
11904 ] 対応する
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 LatexName
11910 \end_layout
11911
11912 \end_inset
11913
11914 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11915 内部から変更することはできません(変更可能なパラメータには
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 Argument
11921 \end_layout
11922
11923 \end_inset
11924
11925 を使用してください)。これは、全ての\SpecialChar LaTeX
11926  
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931 Argument
11932 \end_layout
11933
11934 \end_inset
11935
11936 の後にそのままの形で出力されます。
11937 \end_layout
11938
11939 \begin_layout Description
11940 \begin_inset Flex Code
11941 status collapsed
11942
11943 \begin_layout Plain Layout
11944 LatexType
11945 \end_layout
11946
11947 \end_inset
11948
11949  [
11950 \begin_inset Flex Code
11951 status collapsed
11952
11953 \begin_layout Plain Layout
11954
11955 \emph on
11956 Paragraph
11957 \emph default
11958 , Command, Environment, Item_Environment,
11959 \begin_inset Newline newline
11960 \end_inset
11961
11962 List_Environment, Bib_Environment
11963 \end_layout
11964
11965 \end_inset
11966
11967 ] レイアウトがどのように\SpecialChar LaTeX
11968 に変換されるべきかを示します
11969 \begin_inset Foot
11970 status collapsed
11971
11972 \begin_layout Plain Layout
11973 これらのルールはSGMLクラスにも適用されるので、
11974 \begin_inset Flex Code
11975 status collapsed
11976
11977 \begin_layout Plain Layout
11978 LatexType
11979 \end_layout
11980
11981 \end_inset
11982
11983 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988 db_*.inc
11989 \end_layout
11990
11991 \end_inset
11992
11993 )を見てください。
11994 \end_layout
11995
11996 \end_inset
11997
11998
11999 \begin_inset Separator parbreak
12000 \end_inset
12001
12002
12003 \end_layout
12004
12005 \begin_deeper
12006 \begin_layout Description
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011 Paragraph
12012 \end_layout
12013
12014 \end_inset
12015
12016  は、何も特別なことは意味しません。
12017 \end_layout
12018
12019 \begin_layout Description
12020 \begin_inset Flex Code
12021 status collapsed
12022
12023 \begin_layout Plain Layout
12024 Command
12025 \end_layout
12026
12027 \end_inset
12028
12029  は、
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034
12035 \backslash
12036
12037 \emph on
12038 LatexName
12039 \emph default
12040 {\SpecialChar ldots
12041 }
12042 \end_layout
12043
12044 \end_inset
12045
12046 を意味します。
12047 \end_layout
12048
12049 \begin_layout Description
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054 Environment
12055 \end_layout
12056
12057 \end_inset
12058
12059  は、
12060 \begin_inset Flex Code
12061 status collapsed
12062
12063 \begin_layout Plain Layout
12064
12065 \backslash
12066 begin{
12067 \emph on
12068 LatexName
12069 \emph default
12070 }\SpecialChar ldots
12071
12072 \backslash
12073 end{
12074 \emph on
12075 LatexName
12076 \emph default
12077 }
12078 \end_layout
12079
12080 \end_inset
12081
12082 を意味します。
12083 \end_layout
12084
12085 \begin_layout Description
12086 \begin_inset Flex Code
12087 status collapsed
12088
12089 \begin_layout Plain Layout
12090 Item_Environment
12091 \end_layout
12092
12093 \end_inset
12094
12095  は
12096 \begin_inset Flex Code
12097 status collapsed
12098
12099 \begin_layout Plain Layout
12100 Environment
12101 \end_layout
12102
12103 \end_inset
12104
12105 と同じですが、
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110
12111 \backslash
12112 item
12113 \end_layout
12114
12115 \end_inset
12116
12117 がこの環境のすべての段落に付けられるところだけが異なっています。
12118 \end_layout
12119
12120 \begin_layout Description
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 List_Environment
12126 \end_layout
12127
12128 \end_inset
12129
12130  は
12131 \begin_inset Flex Code
12132 status collapsed
12133
12134 \begin_layout Plain Layout
12135 Item_Environment
12136 \end_layout
12137
12138 \end_inset
12139
12140 と同じですが、
12141 \begin_inset Flex Code
12142 status collapsed
12143
12144 \begin_layout Plain Layout
12145 LabelWidthString
12146 \end_layout
12147
12148 \end_inset
12149
12150 が環境の引数として渡されるところだけが異なっています。
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 LabelWidthString
12156 \end_layout
12157
12158 \end_inset
12159
12160 は、
12161 \begin_inset Flex MenuItem
12162 status collapsed
12163
12164 \begin_layout Plain Layout
12165 編集\SpecialChar menuseparator
12166 段落設定
12167 \end_layout
12168
12169 \end_inset
12170
12171 ダイアログで定義することができます。
12172 \end_layout
12173
12174 \begin_layout Description
12175 \begin_inset Flex Code
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179 Bib_Environment
12180 \end_layout
12181
12182 \end_inset
12183
12184  は
12185 \begin_inset Flex Code
12186 status collapsed
12187
12188 \begin_layout Plain Layout
12189 Environment
12190 \end_layout
12191
12192 \end_inset
12193
12194 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
12195 \begin_inset Newline newline
12196 \end_inset
12197
12198
12199 \begin_inset Flex Code
12200 status collapsed
12201
12202 \begin_layout Plain Layout
12203
12204 \backslash
12205 begin{thebibliography}{99}
12206 \end_layout
12207
12208 \end_inset
12209
12210
12211 \begin_inset Newline newline
12212 \end_inset
12213
12214 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
12215 \end_layout
12216
12217 \begin_layout Standard
12218 上記最後のいくつかをまとめると、\SpecialChar LaTeX
12219 出力は、\SpecialChar LaTeX
12220 型に依存して
12221 \end_layout
12222
12223 \begin_layout LyX-Code
12224
12225 \backslash
12226 LatexName[LatexParam]{\SpecialChar ldots
12227 }
12228 \end_layout
12229
12230 \begin_layout Standard
12231 のようになるか、
12232 \end_layout
12233
12234 \begin_layout LyX-Code
12235
12236 \backslash
12237 begin{LatexName}[LatexParam] \SpecialChar ldots
12238  
12239 \backslash
12240 end{LatexName}.
12241 \end_layout
12242
12243 \begin_layout Standard
12244 となります。
12245 \end_layout
12246
12247 \end_deeper
12248 \begin_layout Description
12249 \begin_inset Flex Code
12250 status collapsed
12251
12252 \begin_layout Plain Layout
12253 LeftDelim
12254 \end_layout
12255
12256 \end_inset
12257
12258  [
12259 \begin_inset Flex Code
12260 status collapsed
12261
12262 \begin_layout Plain Layout
12263 文字列
12264 \end_layout
12265
12266 \end_inset
12267
12268 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 <br/>
12274 \end_layout
12275
12276 \end_inset
12277
12278 で指示できます。
12279 \end_layout
12280
12281 \begin_layout Description
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286 LeftMargin
12287 \end_layout
12288
12289 \end_inset
12290
12291  [
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296 文字列=""
12297 \end_layout
12298
12299 \end_inset
12300
12301 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12302 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12303 \end_inset
12304
12305 をかけて加えられます。このパラメータは、
12306 \begin_inset Flex Code
12307 status collapsed
12308
12309 \begin_layout Plain Layout
12310 Margin
12311 \end_layout
12312
12313 \end_inset
12314
12315
12316 \begin_inset Flex Code
12317 status collapsed
12318
12319 \begin_layout Plain Layout
12320 Manual
12321 \end_layout
12322
12323 \end_inset
12324
12325 あるいは
12326 \begin_inset Flex Code
12327 status collapsed
12328
12329 \begin_layout Plain Layout
12330 Dynamic
12331 \end_layout
12332
12333 \end_inset
12334
12335 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12336 \begin_inset Newline newline
12337 \end_inset
12338
12339 たとえば「
12340 \begin_inset Flex Code
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 MM
12345 \end_layout
12346
12347 \end_inset
12348
12349 」と指定すると、段落を通常フォントの「
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 MM
12355 \end_layout
12356
12357 \end_inset
12358
12359 」の幅だけ行頭下げを行います。文字列の前に「
12360 \begin_inset Flex Code
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364 -
12365 \end_layout
12366
12367 \end_inset
12368
12369 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12370 \end_layout
12371
12372 \begin_layout Description
12373 \begin_inset Flex Code
12374 status collapsed
12375
12376 \begin_layout Plain Layout
12377 Margin
12378 \end_layout
12379
12380 \end_inset
12381
12382  [
12383 \begin_inset Flex Code
12384 status collapsed
12385
12386 \begin_layout Plain Layout
12387
12388 \emph on
12389 Static
12390 \emph default
12391 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12392 \end_layout
12393
12394 \end_inset
12395
12396
12397 \begin_inset Newline newline
12398 \end_inset
12399
12400 このレイアウトの左余白の種類です。
12401 \begin_inset Separator parbreak
12402 \end_inset
12403
12404
12405 \end_layout
12406
12407 \begin_deeper
12408 \begin_layout Description
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 Static
12414 \end_layout
12415
12416 \end_inset
12417
12418  は固定余白を示します。
12419 \end_layout
12420
12421 \begin_layout Description
12422 \begin_inset Flex Code
12423 status collapsed
12424
12425 \begin_layout Plain Layout
12426 Manual
12427 \end_layout
12428
12429 \end_inset
12430
12431  は、左余白が
12432 \begin_inset Flex MenuItem
12433 status collapsed
12434
12435 \begin_layout Plain Layout
12436 編集\SpecialChar menuseparator
12437 段落設定
12438 \end_layout
12439
12440 \end_inset
12441
12442 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12443 \end_layout
12444
12445 \begin_layout Description
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 Dynamic
12451 \end_layout
12452
12453 \end_inset
12454
12455  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12456  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12457 \end_layout
12458
12459 \begin_layout Description
12460 \begin_inset Flex Code
12461 status collapsed
12462
12463 \begin_layout Plain Layout
12464 First_Dynamic
12465 \end_layout
12466
12467 \end_inset
12468
12469  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12470 \end_layout
12471
12472 \begin_layout Description
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 Right_Address_Box
12478 \end_layout
12479
12480 \end_inset
12481
12482  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12483 \end_layout
12484
12485 \end_deeper
12486 \begin_layout Description
12487 \begin_inset Flex Code
12488 status collapsed
12489
12490 \begin_layout Plain Layout
12491 NeedProtect
12492 \end_layout
12493
12494 \end_inset
12495
12496  [
12497 \begin_inset Flex Code
12498 status collapsed
12499
12500 \begin_layout Plain Layout
12501
12502 \emph on
12503 0
12504 \end_layout
12505
12506 \end_inset
12507
12508 ,
12509 \begin_inset space \thinspace{}
12510 \end_inset
12511
12512
12513 \begin_inset Flex Code
12514 status collapsed
12515
12516 \begin_layout Plain Layout
12517 1
12518 \end_layout
12519
12520 \end_inset
12521
12522 ] このレイアウト中の脆弱なコマンドが
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527
12528 \backslash
12529 protect
12530 \end_layout
12531
12532 \end_inset
12533
12534 されるべきか否か(註:これはこのコマンド自体が
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539
12540 \backslash
12541 protect
12542 \end_layout
12543
12544 \end_inset
12545
12546 されるべきかでは
12547 \emph on
12548 ありません
12549 \emph default
12550 )。
12551 \end_layout
12552
12553 \begin_layout Description
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 Newline
12559 \end_layout
12560
12561 \end_inset
12562
12563  [
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 0
12569 \end_layout
12570
12571 \end_inset
12572
12573 ,
12574 \begin_inset space \thinspace{}
12575 \end_inset
12576
12577
12578 \begin_inset Flex Code
12579 status collapsed
12580
12581 \begin_layout Plain Layout
12582
12583 \emph on
12584 1
12585 \end_layout
12586
12587 \end_inset
12588
12589 ] 新規行を\SpecialChar LaTeX
12590 の新規行(
12591 \begin_inset Flex Code
12592 status collapsed
12593
12594 \begin_layout Plain Layout
12595
12596 \backslash
12597
12598 \backslash
12599
12600 \end_layout
12601
12602 \end_inset
12603
12604 )に変換するか否か。\SpecialChar LyX
12605 中で\SpecialChar LaTeX
12606 編集をやりやすくするために、変換は無効にすることができます。
12607 \end_layout
12608
12609 \begin_layout Description
12610 \begin_inset Flex Code
12611 status collapsed
12612
12613 \begin_layout Plain Layout
12614 NextNoIndent
12615 \end_layout
12616
12617 \end_inset
12618
12619  [
12620 \begin_inset Flex Code
12621 status collapsed
12622
12623 \begin_layout Plain Layout
12624
12625 \emph on
12626 0
12627 \end_layout
12628
12629 \end_inset
12630
12631 ,
12632 \begin_inset space \thinspace{}
12633 \end_inset
12634
12635
12636 \begin_inset Flex Code
12637 status collapsed
12638
12639 \begin_layout Plain Layout
12640 1
12641 \end_layout
12642
12643 \end_inset
12644
12645 ] 次の段落に最初の行の行頭下げを許すか否か。
12646 \begin_inset Flex Code
12647 status collapsed
12648
12649 \begin_layout Plain Layout
12650 1
12651 \end_layout
12652
12653 \end_inset
12654
12655 は許可しないことを意味し、
12656 \begin_inset Flex Code
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660 0
12661 \end_layout
12662
12663 \end_inset
12664
12665 は望むならば行頭下げできることを意味します。
12666 \end_layout
12667
12668 \begin_layout Description
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 ObsoletedBy
12674 \end_layout
12675
12676 \end_inset
12677
12678  [
12679 \begin_inset Flex Code
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683 <名称>
12684 \end_layout
12685
12686 \end_inset
12687
12688 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12689 \end_layout
12690
12691 \begin_layout Description
12692 \begin_inset Flex Code
12693 status collapsed
12694
12695 \begin_layout Plain Layout
12696 ParagraphGroup
12697 \end_layout
12698
12699 \end_inset
12700
12701  [
12702 \begin_inset Flex Code
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706 0
12707 \end_layout
12708
12709 \end_inset
12710
12711 ,
12712 \begin_inset space \thinspace{}
12713 \end_inset
12714
12715
12716 \begin_inset Flex Code
12717 status collapsed
12718
12719 \begin_layout Plain Layout
12720 1
12721 \end_layout
12722
12723 \end_inset
12724
12725
12726 \lang english
12727 Determines whether consecutive pragraphs of the same type are treated as
12728  belonging together.
12729  This has the effect that the 
12730 \begin_inset Flex Code
12731 status collapsed
12732
12733 \begin_layout Plain Layout
12734
12735 \lang english
12736 GuiLabel
12737 \end_layout
12738
12739 \end_inset
12740
12741  is only printed once before such a group.
12742  By default, this is true for 
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747
12748 \lang english
12749 LaTeXType
12750 \end_layout
12751
12752 \end_inset
12753
12754  
12755 \begin_inset Flex Code
12756 status collapsed
12757
12758 \begin_layout Plain Layout
12759
12760 \lang english
12761 Environment
12762 \end_layout
12763
12764 \end_inset
12765
12766  and 
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771
12772 \lang english
12773 Bib_Environment
12774 \end_layout
12775
12776 \end_inset
12777
12778  and false for all other types.
12779 \end_layout
12780
12781 \begin_layout Description
12782 \begin_inset Flex Code
12783 status collapsed
12784
12785 \begin_layout Plain Layout
12786 ParbreakIsNewline
12787 \end_layout
12788
12789 \end_inset
12790
12791  [
12792 \begin_inset Flex Code
12793 status collapsed
12794
12795 \begin_layout Plain Layout
12796
12797 \emph on
12798 0
12799 \end_layout
12800
12801 \end_inset
12802
12803 ,
12804 \begin_inset space \thinspace{}
12805 \end_inset
12806
12807
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812 1
12813 \end_layout
12814
12815 \end_inset
12816
12817 ] \SpecialChar LaTeX
12818 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823 PassThru 1
12824 \end_layout
12825
12826 \end_inset
12827
12828 と併用すれば、(\SpecialChar TeX
12829 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12830 \end_layout
12831
12832 \begin_layout Description
12833 \begin_inset Flex Code
12834 status collapsed
12835
12836 \begin_layout Plain Layout
12837 ParIndent
12838 \end_layout
12839
12840 \end_inset
12841
12842  [
12843 \begin_inset Flex Code
12844 status collapsed
12845
12846 \begin_layout Plain Layout
12847 文字列=""
12848 \end_layout
12849
12850 \end_inset
12851
12852 ] 段落の最初の行の行頭下げ。レイアウトによっては
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 Parindent
12858 \end_layout
12859
12860 \end_inset
12861
12862 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867 NextNoIndent
12868 \end_layout
12869
12870 \end_inset
12871
12872 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12873 \begin_inset Flex Code
12874 status collapsed
12875
12876 \begin_layout Plain Layout
12877 Parindent
12878 \end_layout
12879
12880 \end_inset
12881
12882 ではなく、この環境の
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 Parindent
12888 \end_layout
12889
12890 \end_inset
12891
12892 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12893 \end_layout
12894
12895 \begin_layout Description
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 ParSep
12901 \end_layout
12902
12903 \end_inset
12904
12905  [
12906 \begin_inset Flex Code
12907 status collapsed
12908
12909 \begin_layout Plain Layout
12910 浮動小数点型=0
12911 \end_layout
12912
12913 \end_inset
12914
12915 ] このレイアウトの2段落間の垂直余白。
12916 \end_layout
12917
12918 \begin_layout Description
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923 Parskip
12924 \end_layout
12925
12926 \end_inset
12927
12928  [
12929 \begin_inset Flex Code
12930 status collapsed
12931
12932 \begin_layout Plain Layout
12933 浮動小数点型=0
12934 \end_layout
12935
12936 \end_inset
12937
12938 ] \SpecialChar LyX
12939 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12940 択した際には、\SpecialChar LaTeX
12941 型「段落」レイアウトの
12942 \begin_inset Flex Code
12943 status collapsed
12944
12945 \begin_layout Plain Layout
12946 ParIndent
12947 \end_layout
12948
12949 \end_inset
12950
12951 は無視され、すべての段落はこの
12952 \begin_inset Flex Code
12953 status collapsed
12954
12955 \begin_layout Plain Layout
12956 Parskip
12957 \end_layout
12958
12959 \end_inset
12960
12961 引数分だけ引き離されます。垂直余白は、
12962 \begin_inset Flex Code
12963 status collapsed
12964
12965 \begin_layout Plain Layout
12966 DefaultHeight
12967 \end_layout
12968
12969 \end_inset
12970
12971 を標準フォントでの1行の高さとすると、
12972 \begin_inset Flex Code
12973 status collapsed
12974
12975 \begin_layout Plain Layout
12976 Parskipの値
12977 \end_layout
12978
12979 \end_inset
12980
12981
12982 \begin_inset Formula $\times$
12983 \end_inset
12984
12985
12986 \begin_inset Flex Code
12987 status collapsed
12988
12989 \begin_layout Plain Layout
12990 DefaultHeight
12991 \end_layout
12992
12993 \end_inset
12994
12995 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
12996 \end_layout
12997
12998 \begin_layout Description
12999 \begin_inset Flex Code
13000 status collapsed
13001
13002 \begin_layout Plain Layout
13003 PassThru
13004 \end_layout
13005
13006 \end_inset
13007
13008  [
13009 \emph on
13010
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 0
13016 \end_layout
13017
13018 \end_inset
13019
13020
13021 \emph default
13022 ,
13023 \begin_inset space \thinspace{}
13024 \end_inset
13025
13026
13027 \begin_inset Flex Code
13028 status collapsed
13029
13030 \begin_layout Plain Layout
13031 1
13032 \end_layout
13033
13034 \end_inset
13035
13036 ] この段落の内容が、\SpecialChar LaTeX
13037 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
13038 \end_layout
13039
13040 \begin_layout Description
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045 PassThruChars
13046 \end_layout
13047
13048 \end_inset
13049
13050  [
13051 \begin_inset Flex Code
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055 文字列
13056 \end_layout
13057
13058 \end_inset
13059
13060 ]
13061 \family typewriter
13062  
13063 \family default
13064 \lang english
13065 Defines individual characters that should be output in raw form, meaning
13066  without special translations that \SpecialChar LaTeX
13067  would require.
13068 \end_layout
13069
13070 \begin_layout Description
13071 \begin_inset Flex Code
13072 status collapsed
13073
13074 \begin_layout Plain Layout
13075 Preamble
13076 \end_layout
13077
13078 \end_inset
13079
13080  この様式が使用されたときに、\SpecialChar LaTeX
13081 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
13082 \begin_inset Flex Code
13083 status collapsed
13084
13085 \begin_layout Plain Layout
13086 EndPreamble
13087 \end_layout
13088
13089 \end_inset
13090
13091 」で閉じる必要があります。
13092 \end_layout
13093
13094 \begin_layout Description
13095 \begin_inset Flex Code
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 RefPrefix
13100 \end_layout
13101
13102 \end_inset
13103
13104  [
13105 \begin_inset Flex Code
13106 status collapsed
13107
13108 \begin_layout Plain Layout
13109 文字列
13110 \end_layout
13111
13112 \end_inset
13113
13114 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
13115 \end_layout
13116
13117 \begin_layout Description
13118 \begin_inset Flex Code
13119 status collapsed
13120
13121 \begin_layout Plain Layout
13122 Requires
13123 \end_layout
13124
13125 \end_inset
13126
13127  [
13128 \begin_inset Flex Code
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132 文字列
13133 \end_layout
13134
13135 \end_inset
13136
13137 ] この様式が機能
13138 \begin_inset Flex Code
13139 status collapsed
13140
13141 \begin_layout Plain Layout
13142 文字列
13143 \end_layout
13144
13145 \end_inset
13146
13147 を必要とするかどうか
13148 \lang english
13149 (see 
13150 \lang japanese
13151
13152 \begin_inset CommandInset ref
13153 LatexCommand ref
13154 reference "chap:関数一覧"
13155
13156 \end_inset
13157
13158
13159 \lang english
13160  for the list of features).
13161  If you require a package with specific options, you can additionally use
13162  
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167
13168 \lang english
13169 PackageOptions
13170 \end_layout
13171
13172 \end_inset
13173
13174  as a general text class parameter (see 
13175 \lang japanese
13176
13177 \begin_inset CommandInset ref
13178 LatexCommand ref
13179 reference "subsec:汎用テキストクラスパラメータ"
13180
13181 \end_inset
13182
13183 )。
13184 \end_layout
13185
13186 \begin_layout Description
13187 \begin_inset Flex Code
13188 status collapsed
13189
13190 \begin_layout Plain Layout
13191 ResetArgs
13192 \end_layout
13193
13194 \end_inset
13195
13196  [
13197 \begin_inset Flex Code
13198 status collapsed
13199
13200 \begin_layout Plain Layout
13201
13202 \emph on
13203 0
13204 \end_layout
13205
13206 \end_inset
13207
13208 ,
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 1
13214 \end_layout
13215
13216 \end_inset
13217
13218 ] (
13219 \begin_inset Flex Code
13220 status collapsed
13221
13222 \begin_layout Plain Layout
13223 Argument
13224 \end_layout
13225
13226 \end_inset
13227
13228 タグで定義された)この様式の\SpecialChar LaTeX
13229 引数をリセットします。これは、様式を
13230 \begin_inset Flex Code
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 CopyStyle
13235 \end_layout
13236
13237 \end_inset
13238
13239 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
13240 \end_layout
13241
13242 \begin_layout Description
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 RightDelim
13248 \end_layout
13249
13250 \end_inset
13251
13252  [
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 文字列
13258 \end_layout
13259
13260 \end_inset
13261
13262 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 <br/>
13268 \end_layout
13269
13270 \end_inset
13271
13272 で指示できます。
13273 \end_layout
13274
13275 \begin_layout Description
13276 \begin_inset Flex Code
13277 status collapsed
13278
13279 \begin_layout Plain Layout
13280 RightMargin
13281 \end_layout
13282
13283 \end_inset
13284
13285  [
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 文字列=""
13291 \end_layout
13292
13293 \end_inset
13294
13295
13296 \begin_inset Flex Code
13297 status collapsed
13298
13299 \begin_layout Plain Layout
13300 LeftMargin
13301 \end_layout
13302
13303 \end_inset
13304
13305 に同様。
13306 \end_layout
13307
13308 \begin_layout Description
13309 \begin_inset Flex Code
13310 status collapsed
13311
13312 \begin_layout Plain Layout
13313 Spacing
13314 \end_layout
13315
13316 \end_inset
13317
13318  [
13319 \begin_inset Flex Code
13320 status collapsed
13321
13322 \begin_layout Plain Layout
13323
13324 \emph on
13325 single
13326 \end_layout
13327
13328 \end_inset
13329
13330
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 onehalf
13336 \end_layout
13337
13338 \end_inset
13339
13340
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 double
13346 \end_layout
13347
13348 \end_inset
13349
13350
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 other
13356 \begin_inset space ~
13357 \end_inset
13358
13359 <
13360 \emph on
13361
13362 \emph default
13363 >
13364 \end_layout
13365
13366 \end_inset
13367
13368 ]
13369 \lang english
13370  
13371 \lang japanese
13372 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13373 \begin_inset Flex Code
13374 status collapsed
13375
13376 \begin_layout Plain Layout
13377 single
13378 \end_layout
13379
13380 \end_inset
13381
13382
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 onehalf
13388 \end_layout
13389
13390 \end_inset
13391
13392
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 double
13398 \end_layout
13399
13400 \end_inset
13401
13402 は、それぞれ乗数1・1.25・1.667に対応します。引数
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 other
13408 \end_layout
13409
13410 \end_inset
13411
13412 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 Spacing
13418 \end_layout
13419
13420 \end_inset
13421
13422 は、\SpecialChar LaTeX
13423 パッケージ
13424 \begin_inset Flex Code
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 setspace
13429 \end_layout
13430
13431 \end_inset
13432
13433 パッケージを使用した、限定的な\SpecialChar LaTeX
13434 コードを生成することを意味することにご注意ください。
13435 \end_layout
13436
13437 \begin_layout Description
13438 \begin_inset Flex Code
13439 status collapsed
13440
13441 \begin_layout Plain Layout
13442 Spellcheck
13443 \end_layout
13444
13445 \end_inset
13446
13447  [
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452 0
13453 \end_layout
13454
13455 \end_inset
13456
13457 ,
13458 \begin_inset space \thinspace{}
13459 \end_inset
13460
13461
13462 \begin_inset Flex Code
13463 status collapsed
13464
13465 \begin_layout Plain Layout
13466 1
13467 \end_layout
13468
13469 \end_inset
13470
13471 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13472 \end_layout
13473
13474 \begin_layout Description
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479 TextFont
13480 \end_layout
13481
13482 \end_inset
13483
13484  本文に使うフォント。
13485 \begin_inset CommandInset ref
13486 LatexCommand ref
13487 reference "subsec:フォント指定"
13488
13489 \end_inset
13490
13491 参照。
13492 \end_layout
13493
13494 \begin_layout Description
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 TocLevel
13500 \end_layout
13501
13502 \end_inset
13503
13504  [
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 整数型=3
13510 \end_layout
13511
13512 \end_inset
13513
13514 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13515 \end_layout
13516
13517 \begin_layout Description
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522 ToggleIndent
13523 \end_layout
13524
13525 \end_inset
13526
13527  [
13528 \emph on
13529
13530 \begin_inset Flex Code
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534 default
13535 \end_layout
13536
13537 \end_inset
13538
13539
13540 \emph default
13541
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546 always
13547 \end_layout
13548
13549 \end_inset
13550
13551
13552 \begin_inset Flex Code
13553 status collapsed
13554
13555 \begin_layout Plain Layout
13556 never
13557 \end_layout
13558
13559 \end_inset
13560
13561
13562 \lang english
13563 This tag determines whether the first line indentation of this paragraph
13564  can be toggled via the Paragraph settings dialog.
13565  If 
13566 \emph on
13567
13568 \begin_inset Flex Code
13569 status collapsed
13570
13571 \begin_layout Plain Layout
13572
13573 \emph off
13574 \lang english
13575 default
13576 \end_layout
13577
13578 \end_inset
13579
13580
13581 \emph default
13582  is set, indentation can be toggled if the document settings use 
13583 \begin_inset Quotes eld
13584 \end_inset
13585
13586 indent
13587 \begin_inset Quotes erd
13588 \end_inset
13589
13590  paragraph style, with 
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595
13596 \lang english
13597 always
13598 \end_layout
13599
13600 \end_inset
13601
13602 , indentation can always be toggled, notwithstanding the document settings,
13603  with 
13604 \begin_inset Flex Code
13605 status collapsed
13606
13607 \begin_layout Plain Layout
13608
13609 \lang english
13610 never
13611 \end_layout
13612
13613 \end_inset
13614
13615 , indentation can never be toggled.
13616 \end_layout
13617
13618 \begin_layout Description
13619 \begin_inset Flex Code
13620 status collapsed
13621
13622 \begin_layout Plain Layout
13623 TopSep
13624 \end_layout
13625
13626 \end_inset
13627
13628  [
13629 \begin_inset Flex Code
13630 status collapsed
13631
13632 \begin_layout Plain Layout
13633 浮動小数点型=0
13634 \end_layout
13635
13636 \end_inset
13637
13638 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13639 の最大値がとられます。
13640 \end_layout
13641
13642 \begin_layout Subsection
13643 段落様式の国際化
13644 \begin_inset CommandInset label
13645 LatexCommand label
13646 name "subsec:段落様式の国際化"
13647
13648 \end_inset
13649
13650
13651 \end_layout
13652
13653 \begin_layout Standard
13654 \SpecialChar LyX
13655 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13656 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13657 \lang french
13658 Théorème
13659 \lang japanese
13660  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13661 \end_layout
13662
13663 \begin_layout Standard
13664 もし
13665 \begin_inset Flex MenuItem
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 Style
13670 \end_layout
13671
13672 \end_inset
13673
13674 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13675 \begin_inset Flex MenuItem
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679 LangPreamble
13680 \end_layout
13681
13682 \end_inset
13683
13684
13685 \begin_inset Flex MenuItem
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 BabelPreamble
13690 \end_layout
13691
13692 \end_inset
13693
13694 を使用することができます。以下の抜粋(
13695 \begin_inset Flex MenuItem
13696 status collapsed
13697
13698 \begin_layout Plain Layout
13699 theorems-ams.inc
13700 \end_layout
13701
13702 \end_inset
13703
13704 より)は、これがどう動作するかを示すものです。
13705 \end_layout
13706
13707 \begin_layout LyX-Code
13708 Preamble
13709 \begin_inset Separator parbreak
13710 \end_inset
13711
13712
13713 \end_layout
13714
13715 \begin_deeper
13716 \begin_layout LyX-Code
13717   
13718 \backslash
13719 theoremstyle{remark}
13720 \end_layout
13721
13722 \begin_layout LyX-Code
13723   
13724 \backslash
13725 newtheorem{claim}[thm]{
13726 \backslash
13727 protect
13728 \backslash
13729 claimname}
13730 \end_layout
13731
13732 \begin_layout LyX-Code
13733 EndPreamble
13734 \end_layout
13735
13736 \begin_layout LyX-Code
13737 LangPreamble
13738 \end_layout
13739
13740 \begin_layout LyX-Code
13741   
13742 \backslash
13743 providecommand{
13744 \backslash
13745 claimname}{_(Claim)}
13746 \end_layout
13747
13748 \begin_layout LyX-Code
13749 EndLangPreamble
13750 \end_layout
13751
13752 \begin_layout LyX-Code
13753 BabelPreamble
13754 \end_layout
13755
13756 \begin_layout LyX-Code
13757     
13758 \backslash
13759 addto
13760 \backslash
13761 captions$$lang{
13762 \backslash
13763 renewcommand{
13764 \backslash
13765 claimname}{_(Claim)}}
13766 \end_layout
13767
13768 \begin_layout LyX-Code
13769 EndBabelPreamble
13770 \end_layout
13771
13772 \end_deeper
13773 \begin_layout Standard
13774 原則として、
13775 \begin_inset Flex MenuItem
13776 status collapsed
13777
13778 \begin_layout Plain Layout
13779 LangPreamble
13780 \end_layout
13781
13782 \end_inset
13783
13784
13785 \begin_inset Flex MenuItem
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 BabelPreamble
13790 \end_layout
13791
13792 \end_inset
13793
13794 タグ内には、有効な\SpecialChar LaTeX
13795 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13796 は、\SpecialChar LaTeX
13797 コマンド
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802
13803 \backslash
13804 claimname
13805 \end_layout
13806
13807 \end_inset
13808
13809 とその
13810 \begin_inset Flex Code
13811 status collapsed
13812
13813 \begin_layout Plain Layout
13814
13815 \backslash
13816 newtheorem
13817 \end_layout
13818
13819 \end_inset
13820
13821 中での用い方です。
13822 \end_layout
13823
13824 \begin_layout Standard
13825 \begin_inset Flex Code
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 LangPreamble
13830 \end_layout
13831
13832 \end_inset
13833
13834 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 Preamble
13840 \end_layout
13841
13842 \end_inset
13843
13844 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 _()
13850 \end_layout
13851
13852 \end_inset
13853
13854 が使用されていることです。これは、\SpecialChar LyX
13855 が\SpecialChar LaTeX
13856 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13857 \end_layout
13858
13859 \begin_layout Standard
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 BabelPreamble
13865 \end_layout
13866
13867 \end_inset
13868
13869 タグは、複数言語文書をサポートし、
13870 \begin_inset Flex Code
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874 babel
13875 \end_layout
13876
13877 \end_inset
13878
13879 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13880 の場合には、
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885 _()
13886 \end_layout
13887
13888 \end_inset
13889
13890 の引数は、その当該言語への翻訳で置き換えられ、
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 $$lang
13896 \end_layout
13897
13898 \end_inset
13899
13900 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13901 \end_layout
13902
13903 \begin_layout Standard
13904 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13905 \end_layout
13906
13907 \begin_layout LyX-Code
13908
13909 \backslash
13910 addto
13911 \backslash
13912 captionsfrench{
13913 \backslash
13914 renewcommand{
13915 \backslash
13916 claimname}{Affirmation}}
13917 \begin_inset Newline newline
13918 \end_inset
13919
13920
13921 \backslash
13922 addto
13923 \backslash
13924 captionsngerman{
13925 \backslash
13926 renewcommand{
13927 \backslash
13928 claimname}{Behauptung}}
13929 \begin_inset Newline newline
13930 \end_inset
13931
13932
13933 \backslash
13934 providecommand{
13935 \backslash
13936 claimname}{Behauptung}
13937 \end_layout
13938
13939 \begin_layout Standard
13940 それから、\SpecialChar LaTeX
13941
13942 \begin_inset Flex Code
13943 status collapsed
13944
13945 \begin_layout Plain Layout
13946 babel
13947 \end_layout
13948
13949 \end_inset
13950
13951 は協力して、出力に正しい文字列を生成します。
13952 \end_layout
13953
13954 \begin_layout Standard
13955 ここで注意しておくべき一つの重要な点は、翻訳は、
13956 \begin_inset Flex Code
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960 layouttranslations
13961 \end_layout
13962
13963 \end_inset
13964
13965 ファイルを通じて、\SpecialChar LyX
13966 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 layouttranslations
13972 \end_layout
13973
13974 \end_inset
13975
13976 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
13977 の国際化ルーチンでは取り扱われないので、
13978 \begin_inset Flex MenuItem
13979 status collapsed
13980
13981 \begin_layout Plain Layout
13982 LangPreamble
13983 \end_layout
13984
13985 \end_inset
13986
13987
13988 \begin_inset Flex MenuItem
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992 BabelPreamble
13993 \end_layout
13994
13995 \end_inset
13996
13997 は、事実上、\SpecialChar LyX
13998 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
13999 に同梱させようとい
14000 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
14001 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
14002 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
14003 \end_layout
14004
14005 \begin_layout Subsection
14006 フロート
14007 \begin_inset CommandInset label
14008 LatexCommand label
14009 name "subsec:フロート"
14010
14011 \end_inset
14012
14013
14014 \end_layout
14015
14016 \begin_layout Standard
14017 \SpecialChar LyX
14018 第1.3.0版以来、テキストクラス自体の中でフロート(
14019 \begin_inset Flex MenuItem
14020 status collapsed
14021
14022 \begin_layout Plain Layout
14023 figure
14024 \end_layout
14025
14026 \end_inset
14027
14028
14029 \begin_inset Flex MenuItem
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 table
14034 \end_layout
14035
14036 \end_inset
14037
14038 ・\SpecialChar ldots
14039 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 stdfloats.inc
14045 \end_layout
14046
14047 \end_inset
14048
14049 ファイルに含まれているので、作業中のレイアウトファイルに
14050 \end_layout
14051
14052 \begin_layout LyX-Code
14053 Input stdfloats.inc
14054 \end_layout
14055
14056 \begin_layout Standard
14057 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
14058 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
14059 ましょう。
14060 \end_layout
14061
14062 \begin_layout Description
14063 \begin_inset Flex Code
14064 status collapsed
14065
14066 \begin_layout Plain Layout
14067 AllowedPlacement
14068 \end_layout
14069
14070 \end_inset
14071
14072  [
14073 \begin_inset Flex Code
14074 status collapsed
14075
14076 \begin_layout Plain Layout
14077 文字列
14078 \end_layout
14079
14080 \end_inset
14081
14082 =!htbpH] 
14083 \lang english
14084 Allowed placement options for this float type.
14085  The value is a string of placement characters.
14086  Possible characters include: 
14087 \emph on
14088 h
14089 \emph default
14090  (
14091 \begin_inset Quotes eld
14092 \end_inset
14093
14094 here if possible
14095 \begin_inset Quotes erd
14096 \end_inset
14097
14098 ), 
14099 \emph on
14100 t
14101 \emph default
14102  (
14103 \begin_inset Quotes eld
14104 \end_inset
14105
14106 top of page
14107 \begin_inset Quotes erd
14108 \end_inset
14109
14110 ), 
14111 \emph on
14112 b
14113 \emph default
14114  (
14115 \begin_inset Quotes eld
14116 \end_inset
14117
14118 bottom of page
14119 \begin_inset Quotes erd
14120 \end_inset
14121
14122 ), 
14123 \emph on
14124 p
14125 \emph default
14126  (
14127 \begin_inset Quotes eld
14128 \end_inset
14129
14130 page of floats
14131 \begin_inset Quotes erd
14132 \end_inset
14133
14134 ), 
14135 \emph on
14136 H
14137 \emph default
14138  (
14139 \begin_inset Quotes eld
14140 \end_inset
14141
14142 here definitely
14143 \begin_inset Quotes erd
14144 \end_inset
14145
14146 ) and 
14147 \emph on
14148 !
14149 \emph default
14150  (
14151 \begin_inset Quotes eld
14152 \end_inset
14153
14154 ignore LaTeX rules
14155 \begin_inset Quotes erd
14156 \end_inset
14157
14158 ).
14159  The order of the characters in the string does not matter.
14160  If no placement options are allowed, use the string 
14161 \emph on
14162 none
14163 \emph default
14164 .
14165 \end_layout
14166
14167 \begin_layout Description
14168 \begin_inset Flex Code
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172 AllowsSideways
14173 \end_layout
14174
14175 \end_inset
14176
14177  [
14178 \begin_inset Flex Code
14179 status collapsed
14180
14181 \begin_layout Plain Layout
14182 0
14183 \end_layout
14184
14185 \end_inset
14186
14187 ,
14188 \begin_inset space \thinspace{}
14189 \end_inset
14190
14191
14192 \emph on
14193
14194 \begin_inset Flex Code
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198 1
14199 \end_layout
14200
14201 \end_inset
14202
14203
14204 \emph default
14205
14206 \lang english
14207 Defines whether the float allows to be rotated via the \SpecialChar LaTeX
14208 -package 
14209 \family typewriter
14210 rotfloat
14211 \family default
14212  (sidewaysfloat).
14213  Set to 
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218
14219 \lang english
14220 0
14221 \end_layout
14222
14223 \end_inset
14224
14225  if the float does not support this feature.
14226 \end_layout
14227
14228 \begin_layout Description
14229 \begin_inset Flex Code
14230 status collapsed
14231
14232 \begin_layout Plain Layout
14233 AllowsWide
14234 \end_layout
14235
14236 \end_inset
14237
14238  [
14239 \begin_inset Flex Code
14240 status collapsed
14241
14242 \begin_layout Plain Layout
14243 0
14244 \end_layout
14245
14246 \end_inset
14247
14248 ,
14249 \begin_inset space \thinspace{}
14250 \end_inset
14251
14252
14253 \emph on
14254
14255 \begin_inset Flex Code
14256 status collapsed
14257
14258 \begin_layout Plain Layout
14259 1
14260 \end_layout
14261
14262 \end_inset
14263
14264
14265 \emph default
14266
14267 \lang english
14268 Defines whether the float has a starred variant that spans columns in a
14269  two column paragraph.
14270  Set to 
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275
14276 \lang english
14277 0
14278 \end_layout
14279
14280 \end_inset
14281
14282  if the float does not support this feature.
14283 \end_layout
14284
14285 \begin_layout Description
14286 \begin_inset Flex Code
14287 status collapsed
14288
14289 \begin_layout Plain Layout
14290 Extension
14291 \end_layout
14292
14293 \end_inset
14294
14295  [
14296 \begin_inset Flex Code
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300 文字列
14301 \end_layout
14302
14303 \end_inset
14304
14305 =
14306 \begin_inset Quotes erd
14307 \end_inset
14308
14309
14310 \begin_inset Quotes erd
14311 \end_inset
14312
14313 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14314 がキャプションを書き込むファイルです。
14315 \end_layout
14316
14317 \begin_layout Description
14318 \begin_inset Flex Code
14319 status collapsed
14320
14321 \begin_layout Plain Layout
14322 GuiName
14323 \end_layout
14324
14325 \end_inset
14326
14327  [
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 文字列
14333 \end_layout
14334
14335 \end_inset
14336
14337 =
14338 \begin_inset Quotes erd
14339 \end_inset
14340
14341
14342 \begin_inset Quotes erd
14343 \end_inset
14344
14345 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14346 \end_layout
14347
14348 \begin_layout Description
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 HTML*
14354 \end_layout
14355
14356 \end_inset
14357
14358  これらは、XHTML出力で使用されます。
14359 \begin_inset CommandInset ref
14360 LatexCommand ref
14361 reference "sec:XHTML出力のタグ"
14362
14363 \end_inset
14364
14365 をご覧ください。
14366 \end_layout
14367
14368 \begin_layout Description
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 IsPredefined
14374 \end_layout
14375
14376 \end_inset
14377
14378  [
14379 \begin_inset Flex Code
14380 status collapsed
14381
14382 \begin_layout Plain Layout
14383
14384 \emph on
14385 0
14386 \end_layout
14387
14388 \end_inset
14389
14390 ,
14391 \begin_inset space \thinspace{}
14392 \end_inset
14393
14394
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399 1
14400 \end_layout
14401
14402 \end_inset
14403
14404 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14405 パッケージ
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 float
14411 \end_layout
14412
14413 \end_inset
14414
14415 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14416 \begin_inset Flex Code
14417 status collapsed
14418
14419 \begin_layout Plain Layout
14420 0
14421 \end_layout
14422
14423 \end_inset
14424
14425 で、この場合
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430 float
14431 \end_layout
14432
14433 \end_inset
14434
14435 を使用します。\SpecialChar LaTeX
14436 ドキュメントクラス中に既に定義されているときには、
14437 \begin_inset Flex Code
14438 status collapsed
14439
14440 \begin_layout Plain Layout
14441 0
14442 \end_layout
14443
14444 \end_inset
14445
14446 に設定しなくてはなりません。
14447 \end_layout
14448
14449 \begin_layout Description
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454 ListCommand
14455 \end_layout
14456
14457 \end_inset
14458
14459  [
14460 \begin_inset Flex Code
14461 status collapsed
14462
14463 \begin_layout Plain Layout
14464 文字列
14465 \end_layout
14466
14467 \end_inset
14468
14469 =
14470 \begin_inset Quotes erd
14471 \end_inset
14472
14473
14474 \begin_inset Quotes erd
14475 \end_inset
14476
14477 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14478 \backslash
14479 」は書きません。
14480 \begin_inset Flex Code
14481 status collapsed
14482
14483 \begin_layout Plain Layout
14484 NeedsFloatPkg
14485 \end_layout
14486
14487 \end_inset
14488
14489 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14490 \emph on
14491 必ず
14492 \emph default
14493 指定しなくてはなりません。
14494 \begin_inset Flex Code
14495 status collapsed
14496
14497 \begin_layout Plain Layout
14498 NeedsFloatPkg
14499 \end_layout
14500
14501 \end_inset
14502
14503 が真の時は、標準的な方法が存在するので、これは無視されます。
14504 \end_layout
14505
14506 \begin_layout Description
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511 ListName
14512 \end_layout
14513
14514 \end_inset
14515
14516  [
14517 \begin_inset Flex Code
14518 status collapsed
14519
14520 \begin_layout Plain Layout
14521 文字列
14522 \end_layout
14523
14524 \end_inset
14525
14526 =
14527 \begin_inset Quotes erd
14528 \end_inset
14529
14530
14531 \begin_inset Quotes erd
14532 \end_inset
14533
14534 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14535 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14536 に渡さ
14537 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14538 \end_layout
14539
14540 \begin_layout Description
14541 \begin_inset Flex Code
14542 status collapsed
14543
14544 \begin_layout Plain Layout
14545 NumberWithin
14546 \end_layout
14547
14548 \end_inset
14549
14550  [
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 文字列
14556 \end_layout
14557
14558 \end_inset
14559
14560 =
14561 \begin_inset Quotes erd
14562 \end_inset
14563
14564
14565 \begin_inset Quotes erd
14566 \end_inset
14567
14568 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 NumberWithin
14574 \end_layout
14575
14576 \end_inset
14577
14578 が「
14579 \begin_inset Flex Code
14580 status collapsed
14581
14582 \begin_layout Plain Layout
14583 chapter
14584 \end_layout
14585
14586 \end_inset
14587
14588 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14589 \end_layout
14590
14591 \begin_layout Description
14592 \begin_inset Flex Code
14593 status collapsed
14594
14595 \begin_layout Plain Layout
14596 Placement
14597 \end_layout
14598
14599 \end_inset
14600
14601  [
14602 \begin_inset Flex Code
14603 status collapsed
14604
14605 \begin_layout Plain Layout
14606 文字列
14607 \end_layout
14608
14609 \end_inset
14610
14611 =
14612 \begin_inset Quotes erd
14613 \end_inset
14614
14615
14616 \begin_inset Quotes erd
14617 \end_inset
14618
14619 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14620 表記に従い、
14621 \begin_inset Flex Code
14622 status collapsed
14623
14624 \begin_layout Plain Layout
14625 t
14626 \end_layout
14627
14628 \end_inset
14629
14630 ならば上部(top)、
14631 \begin_inset Flex Code
14632 status collapsed
14633
14634 \begin_layout Plain Layout
14635 b
14636 \end_layout
14637
14638 \end_inset
14639
14640 ならば下部(bottom)、
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 p
14646 \end_layout
14647
14648 \end_inset
14649
14650 ならばページ(page)、
14651 \begin_inset Flex Code
14652 status collapsed
14653
14654 \begin_layout Plain Layout
14655 h
14656 \end_layout
14657
14658 \end_inset
14659
14660 ならばここ(here)を表します
14661 \begin_inset Foot
14662 status collapsed
14663
14664 \begin_layout Plain Layout
14665 \SpecialChar LaTeX
14666 同様、文字列中でのこれらの文字の順序は関係ありません。
14667 \end_layout
14668
14669 \end_inset
14670
14671 。これらの他に新しい型
14672 \begin_inset Flex Code
14673 status collapsed
14674
14675 \begin_layout Plain Layout
14676 H
14677 \end_layout
14678
14679 \end_inset
14680
14681 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 H
14687 \end_layout
14688
14689 \end_inset
14690
14691 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14692 に「
14693 \begin_inset Flex Code
14694 status collapsed
14695
14696 \begin_layout Plain Layout
14697 tbp
14698 \end_layout
14699
14700 \end_inset
14701
14702 」を指定してください。
14703 \end_layout
14704
14705 \begin_layout Description
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 RefPrefix
14711 \end_layout
14712
14713 \end_inset
14714
14715  [
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 文字列
14721 \end_layout
14722
14723 \end_inset
14724
14725 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 RefPrefix
14731 \end_layout
14732
14733 \end_inset
14734
14735 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14736 \end_layout
14737
14738 \begin_layout Description
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 Style
14744 \end_layout
14745
14746 \end_inset
14747
14748  [
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 文字列
14754 \end_layout
14755
14756 \end_inset
14757
14758 =
14759 \begin_inset Quotes erd
14760 \end_inset
14761
14762
14763 \begin_inset Quotes erd
14764 \end_inset
14765
14766
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771
14772 \backslash
14773 newfloat
14774 \end_layout
14775
14776 \end_inset
14777
14778 を使用してフロートを定義する際に使用される様式。
14779 \end_layout
14780
14781 \begin_layout Description
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 Type
14787 \end_layout
14788
14789 \end_inset
14790
14791  [
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 文字列
14797 \end_layout
14798
14799 \end_inset
14800
14801 =
14802 \begin_inset Quotes erd
14803 \end_inset
14804
14805
14806 \begin_inset Quotes erd
14807 \end_inset
14808
14809 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14810 \begin_inset Flex Code
14811 status collapsed
14812
14813 \begin_layout Plain Layout
14814
14815 \backslash
14816 newfloat
14817 \end_layout
14818
14819 \end_inset
14820
14821 の後で、
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826
14827 \backslash
14828 begin{program}
14829 \end_layout
14830
14831 \end_inset
14832
14833
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838
14839 \backslash
14840 end{algorithm*}
14841 \end_layout
14842
14843 \end_inset
14844
14845 といったコマンドが利用できます。
14846 \end_layout
14847
14848 \begin_layout Description
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 UsesFloatPkg
14854 \end_layout
14855
14856 \end_inset
14857
14858  [
14859 \begin_inset Flex Code
14860 status collapsed
14861
14862 \begin_layout Plain Layout
14863 0
14864 \end_layout
14865
14866 \end_inset
14867
14868 ,
14869 \begin_inset space \thinspace{}
14870 \end_inset
14871
14872
14873 \begin_inset Flex Code
14874 status collapsed
14875
14876 \begin_layout Plain Layout
14877
14878 \emph on
14879 1
14880 \end_layout
14881
14882 \end_inset
14883
14884 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14885 パッケージ
14886 \begin_inset Flex Code
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890 float
14891 \end_layout
14892
14893 \end_inset
14894
14895 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14896 自身がオン・ザ・フライで定義しているのかを示します。
14897 \end_layout
14898
14899 \begin_layout Standard
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904
14905 \emph on
14906 type
14907 \end_layout
14908
14909 \end_inset
14910
14911 型のフロートを定義すると、自動的に
14912 \emph on
14913 対応する
14914 \emph default
14915
14916 \begin_inset Flex Code
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920
14921 \emph on
14922 type
14923 \end_layout
14924
14925 \end_inset
14926
14927 名カウンタが定義されます。
14928 \end_layout
14929
14930 \begin_layout Subsection
14931 自由差込枠と差込枠レイアウト
14932 \begin_inset CommandInset label
14933 LatexCommand label
14934 name "subsec:任意設定差込枠"
14935
14936 \end_inset
14937
14938
14939 \end_layout
14940
14941 \begin_layout Standard
14942 自由差込枠には次の3種類があります。
14943 \end_layout
14944
14945 \begin_layout Itemize
14946 文字様式(
14947 \begin_inset Flex Code
14948 status collapsed
14949
14950 \begin_layout Plain Layout
14951 CharStyle
14952 \end_layout
14953
14954 \end_inset
14955
14956 )。これは、
14957 \begin_inset Flex Code
14958 status collapsed
14959
14960 \begin_layout Plain Layout
14961
14962 \backslash
14963 noun
14964 \end_layout
14965
14966 \end_inset
14967
14968
14969 \begin_inset Flex Code
14970 status collapsed
14971
14972 \begin_layout Plain Layout
14973
14974 \backslash
14975 code
14976 \end_layout
14977
14978 \end_inset
14979
14980 などの\SpecialChar LaTeX
14981 コマンドに対応した意味論的マークアップを定義するものです。
14982 \end_layout
14983
14984 \begin_layout Itemize
14985 ユーザ設定(
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 Custom
14991 \end_layout
14992
14993 \end_inset
14994
14995 )。これは、\SpecialChar TeX
14996 コードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
14997 \begin_inset Flex Code
14998 status collapsed
14999
15000 \begin_layout Plain Layout
15001 endnote
15002 \end_layout
15003
15004 \end_inset
15005
15006 モジュール中で定義されています。
15007 \end_layout
15008
15009 \begin_layout Itemize
15010 XML要素(
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 Element
15016 \end_layout
15017
15018 \end_inset
15019
15020 )。DocBookクラスで使用するものです。
15021 \end_layout
15022
15023 \begin_layout Standard
15024 自由差込枠は、以下で説明する
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 InsetLayout
15030 \end_layout
15031
15032 \end_inset
15033
15034 タグを使用して定義されます。
15035 \end_layout
15036
15037 \begin_layout Standard
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 InsetLayout
15043 \end_layout
15044
15045 \end_inset
15046
15047 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
15048 \begin_inset Flex Code
15049 status collapsed
15050
15051 \begin_layout Plain Layout
15052 InsetLayout
15053 \end_layout
15054
15055 \end_inset
15056
15057 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・\SpecialChar TeX
15058 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15059 ー定義するのに使用されます。
15060 \end_layout
15061
15062 \begin_layout Standard
15063 \begin_inset Flex Code
15064 status collapsed
15065
15066 \begin_layout Plain Layout
15067 InsetLayout
15068 \end_layout
15069
15070 \end_inset
15071
15072 定義は以下の形の行では始まらなくてはなりません。
15073 \end_layout
15074
15075 \begin_layout LyX-Code
15076 InsetLayout <型>
15077 \end_layout
15078
15079 \begin_layout Standard
15080 ここで
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 <型>
15086 \end_layout
15087
15088 \end_inset
15089
15090 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
15091 \end_layout
15092
15093 \begin_layout Enumerate
15094 既存の差込枠のレイアウトを変更する場合。この場合、
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 <型>
15100 \end_layout
15101
15102 \end_inset
15103
15104 は以下のいずれかになります:
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 Algorithm
15110 \end_layout
15111
15112 \end_inset
15113
15114
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 Branch
15120 \end_layout
15121
15122 \end_inset
15123
15124
15125 \begin_inset Flex Code
15126 status collapsed
15127
15128 \begin_layout Plain Layout
15129 Box
15130 \end_layout
15131
15132 \end_inset
15133
15134
15135 \begin_inset Flex Code
15136 status collapsed
15137
15138 \begin_layout Plain Layout
15139 Box:shaded
15140 \end_layout
15141
15142 \end_inset
15143
15144
15145 \begin_inset Flex Code
15146 status collapsed
15147
15148 \begin_layout Plain Layout
15149 Caption:Standard
15150 \end_layout
15151
15152 \end_inset
15153
15154
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 ERT
15160 \end_layout
15161
15162 \end_inset
15163
15164
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 Figure
15170 \end_layout
15171
15172 \end_inset
15173
15174
15175 \begin_inset Flex Code
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179 Foot
15180 \end_layout
15181
15182 \end_inset
15183
15184
15185 \begin_inset Flex Code
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 Index
15190 \end_layout
15191
15192 \end_inset
15193
15194
15195 \begin_inset Flex Code
15196 status collapsed
15197
15198 \begin_layout Plain Layout
15199 Info
15200 \end_layout
15201
15202 \end_inset
15203
15204
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 Info:menu
15210 \end_layout
15211
15212 \end_inset
15213
15214
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219 Info:shortcut
15220 \end_layout
15221
15222 \end_inset
15223
15224
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 Info:shortcuts
15230 \end_layout
15231
15232 \end_inset
15233
15234
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239 Listings
15240 \end_layout
15241
15242 \end_inset
15243
15244
15245 \begin_inset Flex Code
15246 status collapsed
15247
15248 \begin_layout Plain Layout
15249 Marginal
15250 \end_layout
15251
15252 \end_inset
15253
15254
15255 \begin_inset Flex Code
15256 status collapsed
15257
15258 \begin_layout Plain Layout
15259 Note:Comment
15260 \end_layout
15261
15262 \end_inset
15263
15264
15265 \begin_inset Flex Code
15266 status collapsed
15267
15268 \begin_layout Plain Layout
15269 Note:Note
15270 \end_layout
15271
15272 \end_inset
15273
15274
15275 \begin_inset Flex Code
15276 status collapsed
15277
15278 \begin_layout Plain Layout
15279 Note:GreyedOut
15280 \end_layout
15281
15282 \end_inset
15283
15284
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 Table
15290 \end_layout
15291
15292 \end_inset
15293
15294
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 URL
15300 \end_layout
15301
15302 \end_inset
15303
15304
15305 \end_layout
15306
15307 \begin_layout Enumerate
15308 自由差込枠のレイアウトを定義する場合。この場合、
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 <型>
15314 \end_layout
15315
15316 \end_inset
15317
15318
15319 \begin_inset Flex Code
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323 Flex:<名称>
15324 \end_layout
15325
15326 \end_inset
15327
15328 の形でなくてはなりません。ここで、
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 名称
15334 \end_layout
15335
15336 \end_inset
15337
15338 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15339 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15340 \begin_inset Flex Code
15341 status collapsed
15342
15343 \begin_layout Plain Layout
15344 \SpecialChar LyX
15345 Type
15346 \end_layout
15347
15348 \end_inset
15349
15350 項目が含まれていなくてはならないことに注意してください。
15351 \end_layout
15352
15353 \begin_layout Enumerate
15354 ユーザー定義派生枝を定義する場合。この場合、
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 <型>
15360 \end_layout
15361
15362 \end_inset
15363
15364 は「
15365 \begin_inset Flex Code
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 Branch:<名称>
15370 \end_layout
15371
15372 \end_inset
15373
15374 」の形でなくてはなりません。ここで、
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 名称
15380 \end_layout
15381
15382 \end_inset
15383
15384 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15385 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15386 がくるむことができるようにすることです。
15387 \end_layout
15388
15389 \begin_layout Enumerate
15390 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395 <型>
15396 \end_layout
15397
15398 \end_inset
15399
15400 は「
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 Caption:<名称>
15406 \end_layout
15407
15408 \end_inset
15409
15410 」の形でなくてはなりません。ここで、
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 名称
15416 \end_layout
15417
15418 \end_inset
15419
15420 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 Caption:Standard
15426 \end_layout
15427
15428 \end_inset
15429
15430 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15431 \begin_inset Flex Code
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435 Caption:Above
15436 \end_layout
15437
15438 \end_inset
15439
15440
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 Caption:Below
15446 \end_layout
15447
15448 \end_inset
15449
15450 )、
15451 \family sans
15452 多言語キャプション
15453 \family default
15454 モジュール(
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 Caption:Bicaption
15460 \end_layout
15461
15462 \end_inset
15463
15464 )をご覧ください。
15465 \end_layout
15466
15467 \begin_layout Standard
15468 \begin_inset Flex Code
15469 status collapsed
15470
15471 \begin_layout Plain Layout
15472 InsetLayout
15473 \end_layout
15474
15475 \end_inset
15476
15477 定義には以下の項目を入れることができます。
15478 \end_layout
15479
15480 \begin_layout Description
15481 \begin_inset Flex Code
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485 Argument
15486 \end_layout
15487
15488 \end_inset
15489
15490  [
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495 整数
15496 \end_layout
15497
15498 \end_inset
15499
15500 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 EndArgument
15506 \end_layout
15507
15508 \end_inset
15509
15510 で閉じなくてはなりません。詳細は
15511 \begin_inset CommandInset ref
15512 LatexCommand ref
15513 reference "subsec:段落様式"
15514
15515 \end_inset
15516
15517 参照。
15518 \end_layout
15519
15520 \begin_layout Description
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525 BabelPreamble
15526 \end_layout
15527
15528 \end_inset
15529
15530  言語コマンドを変更するプリアンブル。
15531 \begin_inset CommandInset ref
15532 LatexCommand ref
15533 reference "subsec:段落様式の国際化"
15534
15535 \end_inset
15536
15537 参照。
15538 \end_layout
15539
15540 \begin_layout Description
15541 \begin_inset Flex Code
15542 status collapsed
15543
15544 \begin_layout Plain Layout
15545 BgColor
15546 \end_layout
15547
15548 \end_inset
15549
15550  [
15551 \begin_inset Flex Code
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 <名称>
15556 \end_layout
15557
15558 \end_inset
15559
15560 ] 差込枠の背景色。使用できる色名一覧は
15561 \begin_inset CommandInset ref
15562 LatexCommand ref
15563 reference "chap:色名"
15564
15565 \end_inset
15566
15567 参照。
15568 \end_layout
15569
15570 \begin_layout Description
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 ContentAsLabel
15576 \end_layout
15577
15578 \end_inset
15579
15580  [
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585
15586 \emph on
15587 0
15588 \end_layout
15589
15590 \end_inset
15591
15592 ,
15593 \begin_inset space \thinspace{}
15594 \end_inset
15595
15596
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 1
15602 \end_layout
15603
15604 \end_inset
15605
15606 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15607 \end_layout
15608
15609 \begin_layout Description
15610 \begin_inset Flex Code
15611 status collapsed
15612
15613 \begin_layout Plain Layout
15614 CopyStyle
15615 \end_layout
15616
15617 \end_inset
15618
15619  [<型>] 段落様式と同様です。
15620 \begin_inset CommandInset ref
15621 LatexCommand ref
15622 reference "subsec:段落様式"
15623
15624 \end_inset
15625
15626 参照のこと。完全な型を指定する必要があることに注意してください。例:
15627 \begin_inset Flex Code
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631 CopyStyle Flex:<名称>
15632 \end_layout
15633
15634 \end_inset
15635
15636
15637 \end_layout
15638
15639 \begin_layout Description
15640 \begin_inset Flex Code
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644 CustomPars
15645 \end_layout
15646
15647 \end_inset
15648
15649  [
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654
15655 \emph on
15656 0
15657 \end_layout
15658
15659 \end_inset
15660
15661 ,
15662 \begin_inset space \thinspace{}
15663 \end_inset
15664
15665
15666 \begin_inset Flex Code
15667 status collapsed
15668
15669 \begin_layout Plain Layout
15670 1
15671 \end_layout
15672
15673 \end_inset
15674
15675 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15676 \end_layout
15677
15678 \begin_layout Description
15679 \begin_inset Flex Code
15680 status collapsed
15681
15682 \begin_layout Plain Layout
15683 Decoration
15684 \end_layout
15685
15686 \end_inset
15687
15688  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 Classic
15694 \end_layout
15695
15696 \end_inset
15697
15698
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703 Minimalistic
15704 \end_layout
15705
15706 \end_inset
15707
15708
15709 \begin_inset Flex Code
15710 status collapsed
15711
15712 \begin_layout Plain Layout
15713 Conglomerate
15714 \end_layout
15715
15716 \end_inset
15717
15718 のいずれかを指定することができます。脚注は通常
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 Classic
15724 \end_layout
15725
15726 \end_inset
15727
15728 を使用し、\SpecialChar TeX
15729 コード差込枠は通常
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 Minimalistic
15735 \end_layout
15736
15737 \end_inset
15738
15739 、文字様式は
15740 \begin_inset Flex Code
15741 status collapsed
15742
15743 \begin_layout Plain Layout
15744 Conglomerate
15745 \end_layout
15746
15747 \end_inset
15748
15749 を使用します。
15750 \end_layout
15751
15752 \begin_layout Description
15753 \begin_inset Flex Code
15754 status collapsed
15755
15756 \begin_layout Plain Layout
15757 Display
15758 \end_layout
15759
15760 \end_inset
15761
15762  [
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767 0
15768 \end_layout
15769
15770 \end_inset
15771
15772 ,
15773 \begin_inset space \thinspace{}
15774 \end_inset
15775
15776
15777 \begin_inset Flex Code
15778 status collapsed
15779
15780 \begin_layout Plain Layout
15781
15782 \emph on
15783 1
15784 \end_layout
15785
15786 \end_inset
15787
15788
15789 \begin_inset Flex Code
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793 LatexType
15794 \end_layout
15795
15796 \end_inset
15797
15798
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 Environment
15804 \end_layout
15805
15806 \end_inset
15807
15808 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15809 環境は、
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814
15815 \backslash
15816 begin{LatexName}
15817 \end_layout
15818
15819 \end_inset
15820
15821 タグと
15822 \begin_inset Flex Code
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826
15827 \backslash
15828 end{LatexName}
15829 \end_layout
15830
15831 \end_inset
15832
15833 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15834 \end_layout
15835
15836 \begin_layout Description
15837 \begin_inset Flex Code
15838 status collapsed
15839
15840 \begin_layout Plain Layout
15841 End
15842 \end_layout
15843
15844 \end_inset
15845
15846  
15847 \begin_inset Flex Code
15848 status collapsed
15849
15850 \begin_layout Plain Layout
15851 InsetLayout
15852 \end_layout
15853
15854 \end_inset
15855
15856 宣言を閉じるのに必要です。
15857 \end_layout
15858
15859 \begin_layout Description
15860 \begin_inset Flex Code
15861 status collapsed
15862
15863 \begin_layout Plain Layout
15864 Font
15865 \end_layout
15866
15867 \end_inset
15868
15869  本文本体とラベル
15870 \emph on
15871 両方に
15872 \emph default
15873 使用されるフォントです。
15874 \begin_inset CommandInset ref
15875 LatexCommand ref
15876 reference "subsec:フォント指定"
15877
15878 \end_inset
15879
15880 を参照。このフォントを定義すると自動的に
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 LabelFont
15886 \end_layout
15887
15888 \end_inset
15889
15890 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15891 \begin_inset Flex Code
15892 status collapsed
15893
15894 \begin_layout Plain Layout
15895 LabelFont
15896 \end_layout
15897
15898 \end_inset
15899
15900 を定義しなくてはならないことに注意してください。
15901 \end_layout
15902
15903 \begin_layout Description
15904 \begin_inset Flex Code
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908 FixedWidthPreambleEncoding
15909 \end_layout
15910
15911 \end_inset
15912
15913  [
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918
15919 \emph on
15920 0
15921 \end_layout
15922
15923 \end_inset
15924
15925 ,
15926 \begin_inset space \thinspace{}
15927 \end_inset
15928
15929
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 1
15935 \end_layout
15936
15937 \end_inset
15938
15939
15940 \lang english
15941 Force a fixed width encoding for the translated contents of 
15942 \begin_inset Flex Code
15943 status collapsed
15944
15945 \begin_layout Plain Layout
15946
15947 \lang english
15948 BabelPreamble
15949 \end_layout
15950
15951 \end_inset
15952
15953  and 
15954 \begin_inset Flex Code
15955 status collapsed
15956
15957 \begin_layout Plain Layout
15958
15959 \lang english
15960 LangPreamble
15961 \end_layout
15962
15963 \end_inset
15964
15965  code generated by this layout.
15966  This is needed for special \SpecialChar LaTeX
15967 -packages like 
15968 \family typewriter
15969 listings
15970 \family default
15971  that do not work with variable width encodings such as 
15972 \family sans
15973 utf8
15974 \family default
15975 .
15976  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
15977  backends such as 
15978 \lang ngerman
15979 Xe\SpecialChar TeX
15980  or Lua\SpecialChar TeX
15981
15982 \lang english
15983  are used.
15984 \end_layout
15985
15986 \begin_layout Description
15987 \begin_inset Flex Code
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991 ForceLocalFontSwitch
15992 \end_layout
15993
15994 \end_inset
15995
15996  [
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001
16002 \emph on
16003 0
16004 \end_layout
16005
16006 \end_inset
16007
16008 ,
16009 \begin_inset space \thinspace{}
16010 \end_inset
16011
16012
16013 \begin_inset Flex Code
16014 status collapsed
16015
16016 \begin_layout Plain Layout
16017 1
16018 \end_layout
16019
16020 \end_inset
16021
16022 ] babel使用時に、常にローカルフォント切替(
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027
16028 \backslash
16029 foreignlanguage
16030 \end_layout
16031
16032 \end_inset
16033
16034 )を使い、グローバル切替(
16035 \begin_inset Flex Code
16036 status collapsed
16037
16038 \begin_layout Plain Layout
16039
16040 \backslash
16041 selectlanguage
16042 \end_layout
16043
16044 \end_inset
16045
16046 など)は使わない。
16047 \end_layout
16048
16049 \begin_layout Description
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 ForceLTR
16055 \end_layout
16056
16057 \end_inset
16058
16059  [
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064
16065 \emph on
16066 0
16067 \end_layout
16068
16069 \end_inset
16070
16071 ,
16072 \begin_inset space \thinspace{}
16073 \end_inset
16074
16075
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 1
16081 \end_layout
16082
16083 \end_inset
16084
16085 ] たとえば\SpecialChar TeX
16086 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
16087 \end_layout
16088
16089 \begin_layout Description
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094 ForceOwnlines
16095 \end_layout
16096
16097 \end_inset
16098
16099  [
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104
16105 \emph on
16106 0
16107 \end_layout
16108
16109 \end_inset
16110
16111 ,
16112 \begin_inset space \thinspace{}
16113 \end_inset
16114
16115
16116 \begin_inset Flex Code
16117 status collapsed
16118
16119 \begin_layout Plain Layout
16120 1
16121 \end_layout
16122
16123 \end_inset
16124
16125
16126 \lang english
16127 Force a a line break in the \SpecialChar LaTeX
16128  output before the inset starts and after the
16129  inset ends.
16130  This assures the inset itself is output on its own lines, for parsing purposes.
16131 \end_layout
16132
16133 \begin_layout Description
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138 ForcePlain
16139 \end_layout
16140
16141 \end_inset
16142
16143  [
16144 \begin_inset Flex Code
16145 status collapsed
16146
16147 \begin_layout Plain Layout
16148
16149 \emph on
16150 0
16151 \end_layout
16152
16153 \end_inset
16154
16155 ,
16156 \begin_inset space \thinspace{}
16157 \end_inset
16158
16159
16160 \begin_inset Flex Code
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 1
16165 \end_layout
16166
16167 \end_inset
16168
16169 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
16170 \end_layout
16171
16172 \begin_layout Description
16173 \begin_inset Flex Code
16174 status collapsed
16175
16176 \begin_layout Plain Layout
16177 FreeSpacing
16178 \end_layout
16179
16180 \end_inset
16181
16182  [
16183 \emph on
16184
16185 \begin_inset Flex Code
16186 status collapsed
16187
16188 \begin_layout Plain Layout
16189 0
16190 \end_layout
16191
16192 \end_inset
16193
16194
16195 \emph default
16196 ,
16197 \begin_inset space \thinspace{}
16198 \end_inset
16199
16200
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 1
16206 \end_layout
16207
16208 \end_inset
16209
16210 ] 段落様式と同様。
16211 \begin_inset CommandInset ref
16212 LatexCommand ref
16213 reference "subsec:段落様式"
16214
16215 \end_inset
16216
16217 参照。
16218 \end_layout
16219
16220 \begin_layout Description
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 HTML*
16226 \end_layout
16227
16228 \end_inset
16229
16230  これらは、XHTML出力で使用されます。
16231 \begin_inset CommandInset ref
16232 LatexCommand ref
16233 reference "sec:XHTML出力のタグ"
16234
16235 \end_inset
16236
16237 をご覧ください。
16238 \end_layout
16239
16240 \begin_layout Description
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 InToc
16246 \end_layout
16247
16248 \end_inset
16249
16250  [
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255
16256 \emph on
16257 0
16258 \end_layout
16259
16260 \end_inset
16261
16262 ,
16263 \begin_inset space \thinspace{}
16264 \end_inset
16265
16266
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 1
16272 \end_layout
16273
16274 \end_inset
16275
16276 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
16277 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
16278 \end_layout
16279
16280 \begin_layout Description
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 KeepEmpty
16286 \end_layout
16287
16288 \end_inset
16289
16290  [
16291 \emph on
16292
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 0
16298 \end_layout
16299
16300 \end_inset
16301
16302
16303 \emph default
16304 ,
16305 \begin_inset space \thinspace{}
16306 \end_inset
16307
16308
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313 1
16314 \end_layout
16315
16316 \end_inset
16317
16318 ] 段落様式と同様。
16319 \begin_inset CommandInset ref
16320 LatexCommand ref
16321 reference "subsec:段落様式"
16322
16323 \end_inset
16324
16325 参照。
16326 \end_layout
16327
16328 \begin_layout Description
16329 \begin_inset Flex Code
16330 status collapsed
16331
16332 \begin_layout Plain Layout
16333 LabelFont
16334 \end_layout
16335
16336 \end_inset
16337
16338  ラベルに使用されるフォント。第
16339 \begin_inset CommandInset ref
16340 LatexCommand ref
16341 reference "subsec:フォント指定"
16342
16343 \end_inset
16344
16345 節を参照。非効率を回避するため、この定義は
16346 \begin_inset Flex Code
16347 status collapsed
16348
16349 \begin_layout Plain Layout
16350 Font
16351 \end_layout
16352
16353 \end_inset
16354
16355 の前には決して現れてはなりません。
16356 \end_layout
16357
16358 \begin_layout Description
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 LabelString
16364 \end_layout
16365
16366 \end_inset
16367
16368  [
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 文字列
16374 \end_layout
16375
16376 \end_inset
16377
16378 =
16379 \begin_inset Quotes erd
16380 \end_inset
16381
16382
16383 \begin_inset Quotes erd
16384 \end_inset
16385
16386 ]
16387 \lang english
16388  
16389 \lang japanese
16390 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16391 コードや派生枝)、ラベルが動的に変更されます。
16392 \end_layout
16393
16394 \begin_layout Description
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399 LangPreamble
16400 \end_layout
16401
16402 \end_inset
16403
16404  言語依存のプリアンブル。
16405 \begin_inset CommandInset ref
16406 LatexCommand ref
16407 reference "subsec:段落様式の国際化"
16408
16409 \end_inset
16410
16411 参照。
16412 \end_layout
16413
16414 \begin_layout Description
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419 LatexName
16420 \end_layout
16421
16422 \end_inset
16423
16424  [
16425 \begin_inset Flex Code
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429 <名称>
16430 \end_layout
16431
16432 \end_inset
16433
16434 ] 対応する\SpecialChar LaTeX
16435 関連物の名称。環境名ないしはコマンド名。
16436 \end_layout
16437
16438 \begin_layout Description
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443 LatexParam
16444 \end_layout
16445
16446 \end_inset
16447
16448  [
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 <パラメータ>
16454 \end_layout
16455
16456 \end_inset
16457
16458 ]
16459 \lang english
16460  
16461 \lang japanese
16462 対応する
16463 \begin_inset Flex Code
16464 status collapsed
16465
16466 \begin_layout Plain Layout
16467 LatexName
16468 \end_layout
16469
16470 \end_inset
16471
16472 関連物の非必須パラメータ。
16473 \begin_inset Flex Code
16474 status collapsed
16475
16476 \begin_layout Plain Layout
16477 []
16478 \end_layout
16479
16480 \end_inset
16481
16482 のような括弧対を含む。このパラメータは\SpecialChar LyX
16483 内部から変更することはできません(変更可能なパラメータには
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488 Argument
16489 \end_layout
16490
16491 \end_inset
16492
16493 を使用してください)。これは、全ての\SpecialChar LaTeX
16494  
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499 Argument
16500 \end_layout
16501
16502 \end_inset
16503
16504 の後にそのままの形で出力されます。
16505 \end_layout
16506
16507 \begin_layout Description
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 LatexType
16513 \end_layout
16514
16515 \end_inset
16516
16517  [
16518 \begin_inset Flex Code
16519 status collapsed
16520
16521 \begin_layout Plain Layout
16522 Command, Environment, None
16523 \end_layout
16524
16525 \end_inset
16526
16527 ] 様式がどのように\SpecialChar LaTeX
16528 に変換されるべきかを示します
16529 \begin_inset Foot
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 これらのルールはSGMLクラスにも適用されるので、
16534 \begin_inset Flex Code
16535 status collapsed
16536
16537 \begin_layout Plain Layout
16538 LatexType
16539 \end_layout
16540
16541 \end_inset
16542
16543 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16544 \end_layout
16545
16546 \end_inset
16547
16548
16549 \begin_inset Separator parbreak
16550 \end_inset
16551
16552
16553 \end_layout
16554
16555 \begin_deeper
16556 \begin_layout Description
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561 None
16562 \end_layout
16563
16564 \end_inset
16565
16566  は、何も特別なことは意味しません
16567 \end_layout
16568
16569 \begin_layout Description
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574 Command
16575 \end_layout
16576
16577 \end_inset
16578
16579  は、
16580 \begin_inset Flex Code
16581 status collapsed
16582
16583 \begin_layout Plain Layout
16584
16585 \backslash
16586
16587 \emph on
16588 LatexName
16589 \emph default
16590 {\SpecialChar ldots
16591 }
16592 \end_layout
16593
16594 \end_inset
16595
16596 を意味します
16597 \end_layout
16598
16599 \begin_layout Description
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 Environment
16605 \end_layout
16606
16607 \end_inset
16608
16609  は、
16610 \begin_inset Flex Code
16611 status collapsed
16612
16613 \begin_layout Plain Layout
16614
16615 \backslash
16616 begin{
16617 \emph on
16618 LatexName
16619 \emph default
16620 }\SpecialChar ldots
16621
16622 \backslash
16623 end{
16624 \emph on
16625 LatexName
16626 \emph default
16627 }
16628 \end_layout
16629
16630 \end_inset
16631
16632 を意味します
16633 \end_layout
16634
16635 \begin_layout Standard
16636 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16637 出力は、\SpecialChar LaTeX
16638 型に依存して
16639 \end_layout
16640
16641 \begin_layout LyX-Code
16642
16643 \backslash
16644 LatexName[LatexParam]{\SpecialChar ldots
16645 }
16646 \end_layout
16647
16648 \begin_layout Standard
16649 のようになるか、
16650 \end_layout
16651
16652 \begin_layout LyX-Code
16653
16654 \backslash
16655 begin{LatexName}[LatexParam] \SpecialChar ldots
16656  
16657 \backslash
16658 end{LatexName}.
16659 \end_layout
16660
16661 \begin_layout Standard
16662 となります。
16663 \end_layout
16664
16665 \end_deeper
16666 \begin_layout Description
16667 \begin_inset Flex Code
16668 status collapsed
16669
16670 \begin_layout Plain Layout
16671 LeftDelim
16672 \end_layout
16673
16674 \end_inset
16675
16676  [
16677 \begin_inset Flex Code
16678 status collapsed
16679
16680 \begin_layout Plain Layout
16681 文字列
16682 \end_layout
16683
16684 \end_inset
16685
16686 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16687 \begin_inset Flex Code
16688 status collapsed
16689
16690 \begin_layout Plain Layout
16691 <br/>
16692 \end_layout
16693
16694 \end_inset
16695
16696 で指示できます。
16697 \end_layout
16698
16699 \begin_layout Description
16700 \begin_inset Flex Code
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 LyxType
16705 \end_layout
16706
16707 \end_inset
16708
16709  
16710 \begin_inset Flex Code
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714 charstyle
16715 \end_layout
16716
16717 \end_inset
16718
16719
16720 \begin_inset Flex Code
16721 status collapsed
16722
16723 \begin_layout Plain Layout
16724 custom
16725 \end_layout
16726
16727 \end_inset
16728
16729
16730 \begin_inset Flex Code
16731 status collapsed
16732
16733 \begin_layout Plain Layout
16734 element
16735 \end_layout
16736
16737 \end_inset
16738
16739
16740 \begin_inset Flex Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 end
16745 \end_layout
16746
16747 \end_inset
16748
16749 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16750 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 LyxType
16756 \end_layout
16757
16758 \end_inset
16759
16760
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765 charstyle
16766 \end_layout
16767
16768 \end_inset
16769
16770 に設定すると、
16771 \begin_inset Flex Code
16772 status collapsed
16773
16774 \begin_layout Plain Layout
16775 MultiPar
16776 \end_layout
16777
16778 \end_inset
16779
16780 が偽に設定されます。文字様式差込枠で
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785 MultiPar
16786 \end_layout
16787
16788 \end_inset
16789
16790 を真にしたい時には、
16791 \begin_inset Flex Code
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795 LyxType
16796 \end_layout
16797
16798 \end_inset
16799
16800 を設定した
16801 \emph on
16802 後に
16803 \emph default
16804 設定すれば、真に設定することができます。
16805 \end_layout
16806
16807 \begin_layout Description
16808 \begin_inset Flex Code
16809 status collapsed
16810
16811 \begin_layout Plain Layout
16812 MultiPar
16813 \end_layout
16814
16815 \end_inset
16816
16817  [
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822
16823 \emph on
16824 0
16825 \end_layout
16826
16827 \end_inset
16828
16829 ,
16830 \begin_inset space \thinspace{}
16831 \end_inset
16832
16833
16834 \begin_inset Flex Code
16835 status collapsed
16836
16837 \begin_layout Plain Layout
16838 1
16839 \end_layout
16840
16841 \end_inset
16842
16843 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 CustomPars
16849 \end_layout
16850
16851 \end_inset
16852
16853 を同じ値に設定し、
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 ForcePlain
16859 \end_layout
16860
16861 \end_inset
16862
16863 を逆の値に設定します。これらは、
16864 \begin_inset Flex Code
16865 status collapsed
16866
16867 \begin_layout Plain Layout
16868 MultiPar
16869 \end_layout
16870
16871 \end_inset
16872
16873
16874 \emph on
16875 後に
16876 \emph default
16877 指定されれば、他の値に指定し直すことができます。既定値は真です。
16878 \end_layout
16879
16880 \begin_layout Description
16881 \begin_inset Flex Code
16882 status collapsed
16883
16884 \begin_layout Plain Layout
16885 NeedProtect
16886 \end_layout
16887
16888 \end_inset
16889
16890  [
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895
16896 \emph on
16897 0
16898 \end_layout
16899
16900 \end_inset
16901
16902 ,
16903 \begin_inset space \thinspace{}
16904 \end_inset
16905
16906
16907 \begin_inset Flex Code
16908 status collapsed
16909
16910 \begin_layout Plain Layout
16911 1
16912 \end_layout
16913
16914 \end_inset
16915
16916 ] 本レイアウト中で脆弱なコマンドを
16917 \begin_inset Flex Code
16918 status collapsed
16919
16920 \begin_layout Plain Layout
16921
16922 \backslash
16923 protect
16924 \end_layout
16925
16926 \end_inset
16927
16928 するか否か(註:当該コマンド自身をprotectするかどうかでは
16929 \emph on
16930 ありません
16931 \emph default
16932 )。既定値は偽です。
16933 \end_layout
16934
16935 \begin_layout Description
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 NoInsetLayout
16941 \end_layout
16942
16943 \end_inset
16944
16945  [
16946 \begin_inset Flex Code
16947 status collapsed
16948
16949 \begin_layout Plain Layout
16950 <レイアウト>
16951 \end_layout
16952
16953 \end_inset
16954
16955 ] 既存の
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960 InsetLayout
16961 \end_layout
16962
16963 \end_inset
16964
16965 を削除します。
16966 \end_layout
16967
16968 \begin_layout Description
16969 \begin_inset Flex Code
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973 ObsoletedBy
16974 \end_layout
16975
16976 \end_inset
16977
16978  [
16979 \begin_inset Flex Code
16980 status collapsed
16981
16982 \begin_layout Plain Layout
16983 <レイアウト>
16984 \end_layout
16985
16986 \end_inset
16987
16988
16989 \lang english
16990 Name of an 
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995
16996 \lang english
16997 InsetLayout
16998 \end_layout
16999
17000 \end_inset
17001
17002  that has replaced this 
17003 \begin_inset Flex Code
17004 status collapsed
17005
17006 \begin_layout Plain Layout
17007
17008 \lang english
17009 InsetLayout
17010 \end_layout
17011
17012 \end_inset
17013
17014 .
17015  This is used to rename an 
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020
17021 \lang english
17022 InsetLayout
17023 \end_layout
17024
17025 \end_inset
17026
17027 , while keeping backward compatibility.
17028 \end_layout
17029
17030 \begin_layout Description
17031 \begin_inset Flex Code
17032 status collapsed
17033
17034 \begin_layout Plain Layout
17035 ParbreakIsNewline
17036 \end_layout
17037
17038 \end_inset
17039
17040  [
17041 \begin_inset Flex Code
17042 status collapsed
17043
17044 \begin_layout Plain Layout
17045
17046 \emph on
17047 0
17048 \end_layout
17049
17050 \end_inset
17051
17052 ,
17053 \begin_inset space \thinspace{}
17054 \end_inset
17055
17056
17057 \begin_inset Flex Code
17058 status collapsed
17059
17060 \begin_layout Plain Layout
17061 1
17062 \end_layout
17063
17064 \end_inset
17065
17066 ] 段落様式と同様。
17067 \begin_inset CommandInset ref
17068 LatexCommand ref
17069 reference "subsec:段落様式"
17070
17071 \end_inset
17072
17073 参照。
17074 \end_layout
17075
17076 \begin_layout Description
17077 \begin_inset Flex Code
17078 status collapsed
17079
17080 \begin_layout Plain Layout
17081 PassThru
17082 \end_layout
17083
17084 \end_inset
17085
17086  [
17087 \emph on
17088
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 0
17094 \end_layout
17095
17096 \end_inset
17097
17098
17099 \emph default
17100 ,
17101 \begin_inset space \thinspace{}
17102 \end_inset
17103
17104
17105 \begin_inset Flex Code
17106 status collapsed
17107
17108 \begin_layout Plain Layout
17109 1
17110 \end_layout
17111
17112 \end_inset
17113
17114 ] 段落様式と同様。
17115 \begin_inset CommandInset ref
17116 LatexCommand ref
17117 reference "subsec:段落様式"
17118
17119 \end_inset
17120
17121 参照。
17122 \end_layout
17123
17124 \begin_layout Description
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129 Preamble
17130 \end_layout
17131
17132 \end_inset
17133
17134  段落様式と同様。
17135 \begin_inset CommandInset ref
17136 LatexCommand ref
17137 reference "subsec:段落様式"
17138
17139 \end_inset
17140
17141 参照。
17142 \end_layout
17143
17144 \begin_layout Description
17145 \begin_inset Flex Code
17146 status collapsed
17147
17148 \begin_layout Plain Layout
17149 RefPrefix
17150 \end_layout
17151
17152 \end_inset
17153
17154  [
17155 \begin_inset Flex Code
17156 status collapsed
17157
17158 \begin_layout Plain Layout
17159 文字列
17160 \end_layout
17161
17162 \end_inset
17163
17164 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
17165 \end_layout
17166
17167 \begin_layout Description
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 Requires
17173 \end_layout
17174
17175 \end_inset
17176
17177  [
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182 文字列
17183 \end_layout
17184
17185 \end_inset
17186
17187 ] 段落様式と同様。
17188 \begin_inset CommandInset ref
17189 LatexCommand ref
17190 reference "subsec:段落様式"
17191
17192 \end_inset
17193
17194 参照。
17195 \end_layout
17196
17197 \begin_layout Description
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202 ResetArgs
17203 \end_layout
17204
17205 \end_inset
17206
17207  [
17208 \begin_inset Flex Code
17209 status collapsed
17210
17211 \begin_layout Plain Layout
17212
17213 \emph on
17214 0
17215 \end_layout
17216
17217 \end_inset
17218
17219 ,
17220 \begin_inset space \thinspace{}
17221 \end_inset
17222
17223
17224 \begin_inset Flex Code
17225 status collapsed
17226
17227 \begin_layout Plain Layout
17228 1
17229 \end_layout
17230
17231 \end_inset
17232
17233 ] (
17234 \begin_inset Flex Code
17235 status collapsed
17236
17237 \begin_layout Plain Layout
17238 Argument
17239 \end_layout
17240
17241 \end_inset
17242
17243 タグで定義された)この様式の\SpecialChar LaTeX
17244 引数をリセットします。これは、様式を
17245 \begin_inset Flex Code
17246 status collapsed
17247
17248 \begin_layout Plain Layout
17249 CopyStyle
17250 \end_layout
17251
17252 \end_inset
17253
17254 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
17255 \end_layout
17256
17257 \begin_layout Description
17258 \begin_inset Flex Code
17259 status collapsed
17260
17261 \begin_layout Plain Layout
17262 ResetsFont
17263 \end_layout
17264
17265 \end_inset
17266
17267  [
17268 \begin_inset Flex Code
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272 0
17273 \end_layout
17274
17275 \end_inset
17276
17277 ,
17278 \begin_inset space \thinspace{}
17279 \end_inset
17280
17281
17282 \begin_inset Flex Code
17283 status collapsed
17284
17285 \begin_layout Plain Layout
17286
17287 \emph on
17288 1
17289 \end_layout
17290
17291 \end_inset
17292
17293 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
17294 \begin_inset Note Note
17295 status open
17296
17297 \begin_layout Plain Layout
17298 This is outdated: The default changed from 1 to 0
17299 \end_layout
17300
17301 \end_inset
17302
17303
17304 \end_layout
17305
17306 \begin_layout Description
17307 \begin_inset Flex Code
17308 status collapsed
17309
17310 \begin_layout Plain Layout
17311 RightDelim
17312 \end_layout
17313
17314 \end_inset
17315
17316  [
17317 \begin_inset Flex Code
17318 status collapsed
17319
17320 \begin_layout Plain Layout
17321 文字列
17322 \end_layout
17323
17324 \end_inset
17325
17326 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17327 \begin_inset Flex Code
17328 status collapsed
17329
17330 \begin_layout Plain Layout
17331 <br/>
17332 \end_layout
17333
17334 \end_inset
17335
17336 で指示できます。
17337 \end_layout
17338
17339 \begin_layout Description
17340 \begin_inset Flex Code
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344 Spellcheck
17345 \end_layout
17346
17347 \end_inset
17348
17349  [
17350 \begin_inset Flex Code
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354 0
17355 \end_layout
17356
17357 \end_inset
17358
17359 ,
17360 \begin_inset space \thinspace{}
17361 \end_inset
17362
17363
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368
17369 \emph on
17370 1
17371 \end_layout
17372
17373 \end_inset
17374
17375 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17376 \end_layout
17377
17378 \begin_layout Subsection
17379 カウンタ
17380 \begin_inset CommandInset label
17381 LatexCommand label
17382 name "subsec:カウンタ"
17383
17384 \end_inset
17385
17386
17387 \end_layout
17388
17389 \begin_layout Standard
17390 テキストクラスには、カウンタ(
17391 \begin_inset Flex MenuItem
17392 status collapsed
17393
17394 \begin_layout Plain Layout
17395 chapter
17396 \end_layout
17397
17398 \end_inset
17399
17400
17401 \begin_inset Flex MenuItem
17402 status collapsed
17403
17404 \begin_layout Plain Layout
17405 figure
17406 \end_layout
17407
17408 \end_inset
17409
17410 ・\SpecialChar ldots
17411 )を定義することが必要です。標準的なカウンタは
17412 \begin_inset Flex Code
17413 status collapsed
17414
17415 \begin_layout Plain Layout
17416 stdcounters.inc
17417 \end_layout
17418
17419 \end_inset
17420
17421 ファイルに含まれているので、作業中のレイアウトファイルに
17422 \end_layout
17423
17424 \begin_layout LyX-Code
17425 Input stdcounters.inc
17426 \end_layout
17427
17428 \begin_layout Standard
17429 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17430 \end_layout
17431
17432 \begin_layout LyX-Code
17433 Counter カウンタ名
17434 \end_layout
17435
17436 \begin_layout Standard
17437 で始まらなくてはなりません。ここで「
17438 \begin_inset Flex Code
17439 status collapsed
17440
17441 \begin_layout Plain Layout
17442 カウンタ名
17443 \end_layout
17444
17445 \end_inset
17446
17447 」は、実際のカウンタ名で置き換えます。また、宣言は「
17448 \begin_inset Flex Code
17449 status collapsed
17450
17451 \begin_layout Plain Layout
17452 End
17453 \end_layout
17454
17455 \end_inset
17456
17457 」で終わらなくてはなりません。
17458 \end_layout
17459
17460 \begin_layout Standard
17461 以下のパラメータを使用することができます。
17462 \end_layout
17463
17464 \begin_layout Description
17465 \begin_inset Flex Code
17466 status collapsed
17467
17468 \begin_layout Plain Layout
17469 InitialValue
17470 \end_layout
17471
17472 \end_inset
17473
17474  [
17475 \begin_inset Flex Code
17476 status collapsed
17477
17478 \begin_layout Plain Layout
17479 整数=1
17480 \end_layout
17481
17482 \end_inset
17483
17484 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17485 \end_layout
17486
17487 \begin_layout Description
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492 LabelString [文字列=""]
17493 \end_layout
17494
17495 \end_inset
17496
17497  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17498 \begin_inset Flex Code
17499 status collapsed
17500
17501 \begin_layout Plain Layout
17502 LabelStringAppendix
17503 \end_layout
17504
17505 \end_inset
17506
17507 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17508 \begin_inset Separator parbreak
17509 \end_inset
17510
17511
17512 \end_layout
17513
17514 \begin_deeper
17515 \begin_layout Itemize
17516 \begin_inset Flex Code
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520
17521 \backslash
17522 thecounter
17523 \end_layout
17524
17525 \end_inset
17526
17527 は、カウンタ
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532 counter
17533 \end_layout
17534
17535 \end_inset
17536
17537
17538 \begin_inset Flex Code
17539 status collapsed
17540
17541 \begin_layout Plain Layout
17542 LabelString
17543 \end_layout
17544
17545 \end_inset
17546
17547 (または
17548 \begin_inset Newline linebreak
17549 \end_inset
17550
17551
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 LabelStringAppendix
17557 \end_layout
17558
17559 \end_inset
17560
17561 )を展開したもので置き換えられます。 
17562 \end_layout
17563
17564 \begin_layout Itemize
17565 カウンタ値は、\SpecialChar LaTeX
17566 型マクロ
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571
17572 \backslash
17573
17574 \emph on
17575 numbertype
17576 \emph default
17577 {
17578 \emph on
17579 カウンタ
17580 \emph default
17581 }
17582 \end_layout
17583
17584 \end_inset
17585
17586 を用いて表現することができます。ここで
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591
17592 \emph on
17593 numbertype
17594 \end_layout
17595
17596 \end_inset
17597
17598 は以下のいずれかです。
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 arabic
17604 \end_layout
17605
17606 \end_inset
17607
17608 :1, 2, 3,\SpecialChar ldots
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 alph
17615 \end_layout
17616
17617 \end_inset
17618
17619 :a, b, c, \SpecialChar ldots
17620 (小文字);
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 Alph
17626 \end_layout
17627
17628 \end_inset
17629
17630 :A, B, C, \SpecialChar ldots
17631 (大文字);
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 roman
17637 \end_layout
17638
17639 \end_inset
17640
17641 :i, ii, iii, \SpecialChar ldots
17642 (小文字ローマ数字);
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647 Roman
17648 \end_layout
17649
17650 \end_inset
17651
17652 :I, II, III\SpecialChar ldots
17653 (大文字ローマ数字)。
17654 \end_layout
17655
17656 \end_deeper
17657 \begin_layout Standard
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 LabelString
17663 \end_layout
17664
17665 \end_inset
17666
17667 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 master
17673 \end_layout
17674
17675 \end_inset
17676
17677
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 Within
17683 \end_layout
17684
17685 \end_inset
17686
17687 で定義)があるときには、文字列
17688 \begin_inset Newline linebreak
17689 \end_inset
17690
17691
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696
17697 \backslash
17698 themaster.
17699 \backslash
17700 arabic{カウンタ}
17701 \end_layout
17702
17703 \end_inset
17704
17705 が使用されます。それ以外の場合は、
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710
17711 \backslash
17712 arabic{カウンタ}
17713 \end_layout
17714
17715 \end_inset
17716
17717 が使用されます。
17718 \end_layout
17719
17720 \begin_layout Description
17721 \begin_inset Flex Code
17722 status collapsed
17723
17724 \begin_layout Plain Layout
17725 LabelStringAppendix
17726 \end_layout
17727
17728 \end_inset
17729
17730  [
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 文字列
17736 \end_layout
17737
17738 \end_inset
17739
17740 =""] 
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 LabelString
17746 \end_layout
17747
17748 \end_inset
17749
17750 と同様ですが、付録で使用するためのものです。
17751 \end_layout
17752
17753 \begin_layout Description
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 PrettyFormat
17759 \end_layout
17760
17761 \end_inset
17762
17763  [
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768 文字列
17769 \end_layout
17770
17771 \end_inset
17772
17773 =
17774 \begin_inset Quotes erd
17775 \end_inset
17776
17777
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17782 \begin_inset space ~
17783 \end_inset
17784
17785 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17786 す。
17787 \end_layout
17788
17789 \begin_layout Description
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 Within
17795 \end_layout
17796
17797 \end_inset
17798
17799  [
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 文字列
17805 \end_layout
17806
17807 \end_inset
17808
17809 =
17810 \begin_inset Quotes erd
17811 \end_inset
17812
17813
17814 \begin_inset Quotes erd
17815 \end_inset
17816
17817 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17818 \begin_inset Flex Code
17819 status collapsed
17820
17821 \begin_layout Plain Layout
17822 subsection
17823 \end_layout
17824
17825 \end_inset
17826
17827
17828 \begin_inset Flex Code
17829 status collapsed
17830
17831 \begin_layout Plain Layout
17832 section
17833 \end_layout
17834
17835 \end_inset
17836
17837 毎に番号がリセットされます。
17838 \end_layout
17839
17840 \begin_layout Subsection
17841 フォント指定
17842 \begin_inset CommandInset label
17843 LatexCommand label
17844 name "subsec:フォント指定"
17845
17846 \end_inset
17847
17848
17849 \end_layout
17850
17851 \begin_layout Standard
17852 フォント指定は、以下のような形を取ります。
17853 \end_layout
17854
17855 \begin_layout LyX-Code
17856 Font 
17857 \family roman
17858 \emph on
17859 または
17860 \family default
17861 \emph default
17862  LabelFont 
17863 \family roman
17864 \emph on
17865 または
17866 \family default
17867 \emph default
17868  DefaultFont
17869 \end_layout
17870
17871 \begin_layout LyX-Code
17872  ...
17873 \end_layout
17874
17875 \begin_layout LyX-Code
17876 EndFont
17877 \end_layout
17878
17879 \begin_layout Standard
17880 以下のコマンドを使用することができます。
17881 \end_layout
17882
17883 \begin_layout Description
17884 \begin_inset Flex Code
17885 status collapsed
17886
17887 \begin_layout Plain Layout
17888 Color
17889 \end_layout
17890
17891 \end_inset
17892
17893  [
17894 \begin_inset Flex Code
17895 status collapsed
17896
17897 \begin_layout Plain Layout
17898
17899 \emph on
17900 none
17901 \end_layout
17902
17903 \end_inset
17904
17905
17906 \begin_inset Flex Code
17907 status collapsed
17908
17909 \begin_layout Plain Layout
17910 black
17911 \end_layout
17912
17913 \end_inset
17914
17915
17916 \begin_inset Flex Code
17917 status collapsed
17918
17919 \begin_layout Plain Layout
17920 white
17921 \end_layout
17922
17923 \end_inset
17924
17925
17926 \begin_inset Flex Code
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 red
17931 \end_layout
17932
17933 \end_inset
17934
17935
17936 \begin_inset Flex Code
17937 status collapsed
17938
17939 \begin_layout Plain Layout
17940 green
17941 \end_layout
17942
17943 \end_inset
17944
17945
17946 \begin_inset Flex Code
17947 status collapsed
17948
17949 \begin_layout Plain Layout
17950 blue
17951 \end_layout
17952
17953 \end_inset
17954
17955
17956 \begin_inset Flex Code
17957 status collapsed
17958
17959 \begin_layout Plain Layout
17960 cyan
17961 \end_layout
17962
17963 \end_inset
17964
17965
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 magenta
17971 \end_layout
17972
17973 \end_inset
17974
17975
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 yellow
17981 \end_layout
17982
17983 \end_inset
17984
17985 ]
17986 \end_layout
17987
17988 \begin_layout Description
17989 \begin_inset Flex Code
17990 status collapsed
17991
17992 \begin_layout Plain Layout
17993 Family
17994 \end_layout
17995
17996 \end_inset
17997
17998  [
17999 \emph on
18000
18001 \begin_inset Flex Code
18002 status collapsed
18003
18004 \begin_layout Plain Layout
18005 Roman
18006 \end_layout
18007
18008 \end_inset
18009
18010
18011 \emph default
18012
18013 \begin_inset Flex Code
18014 status collapsed
18015
18016 \begin_layout Plain Layout
18017 Sans
18018 \end_layout
18019
18020 \end_inset
18021
18022
18023 \begin_inset Flex Code
18024 status collapsed
18025
18026 \begin_layout Plain Layout
18027 Typewriter
18028 \end_layout
18029
18030 \end_inset
18031
18032
18033 \end_layout
18034
18035 \begin_layout Description
18036 \begin_inset Flex Code
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040 Misc
18041 \end_layout
18042
18043 \end_inset
18044
18045  [
18046 \begin_inset Flex Code
18047 status collapsed
18048
18049 \begin_layout Plain Layout
18050 文字列
18051 \end_layout
18052
18053 \end_inset
18054
18055 ] 有効な引数は、
18056 \begin_inset Flex Code
18057 status collapsed
18058
18059 \begin_layout Plain Layout
18060 emph
18061 \end_layout
18062
18063 \end_inset
18064
18065
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070 noun
18071 \end_layout
18072
18073 \end_inset
18074
18075
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 strikeout
18081 \end_layout
18082
18083 \end_inset
18084
18085
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 underbar
18091 \end_layout
18092
18093 \end_inset
18094
18095
18096 \begin_inset Flex Code
18097 status collapsed
18098
18099 \begin_layout Plain Layout
18100 uuline
18101 \end_layout
18102
18103 \end_inset
18104
18105
18106 \begin_inset Flex Code
18107 status collapsed
18108
18109 \begin_layout Plain Layout
18110 uwave
18111 \end_layout
18112
18113 \end_inset
18114
18115
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120 no_emph
18121 \end_layout
18122
18123 \end_inset
18124
18125
18126 \begin_inset Flex Code
18127 status collapsed
18128
18129 \begin_layout Plain Layout
18130 no_noun
18131 \end_layout
18132
18133 \end_inset
18134
18135
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 no_strikeout
18141 \end_layout
18142
18143 \end_inset
18144
18145
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 no_bar
18151 \end_layout
18152
18153 \end_inset
18154
18155
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 no_uuline
18161 \end_layout
18162
18163 \end_inset
18164
18165
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 no_uwave
18171 \end_layout
18172
18173 \end_inset
18174
18175 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
18176 \begin_inset Newline newline
18177 \end_inset
18178
18179 たとえば、
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184 emph
18185 \end_layout
18186
18187 \end_inset
18188
18189 は強調を有効にし、
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 no_emph
18195 \end_layout
18196
18197 \end_inset
18198
18199 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
18200
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205 no_emph
18206 \end_layout
18207
18208 \end_inset
18209
18210 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
18211 \end_layout
18212
18213 \begin_layout Description
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 Series
18219 \end_layout
18220
18221 \end_inset
18222
18223  [
18224 \emph on
18225
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 Medium
18231 \end_layout
18232
18233 \end_inset
18234
18235
18236 \emph default
18237
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 Bold
18243 \end_layout
18244
18245 \end_inset
18246
18247
18248 \end_layout
18249
18250 \begin_layout Description
18251 \begin_inset Flex Code
18252 status collapsed
18253
18254 \begin_layout Plain Layout
18255 Shape
18256 \end_layout
18257
18258 \end_inset
18259
18260  [
18261 \emph on
18262
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 Up
18268 \end_layout
18269
18270 \end_inset
18271
18272
18273 \emph default
18274
18275 \begin_inset Flex Code
18276 status collapsed
18277
18278 \begin_layout Plain Layout
18279 Italic
18280 \end_layout
18281
18282 \end_inset
18283
18284
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 SmallCaps
18290 \end_layout
18291
18292 \end_inset
18293
18294
18295 \begin_inset Flex Code
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299 Slanted
18300 \end_layout
18301
18302 \end_inset
18303
18304
18305 \end_layout
18306
18307 \begin_layout Description
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 Size
18313 \end_layout
18314
18315 \end_inset
18316
18317  [
18318 \begin_inset Flex Code
18319 status collapsed
18320
18321 \begin_layout Plain Layout
18322 tiny
18323 \end_layout
18324
18325 \end_inset
18326
18327
18328 \begin_inset Flex Code
18329 status collapsed
18330
18331 \begin_layout Plain Layout
18332 small
18333 \end_layout
18334
18335 \end_inset
18336
18337
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342
18343 \emph on
18344 normal
18345 \end_layout
18346
18347 \end_inset
18348
18349
18350 \begin_inset Flex Code
18351 status collapsed
18352
18353 \begin_layout Plain Layout
18354 large
18355 \end_layout
18356
18357 \end_inset
18358
18359
18360 \begin_inset Flex Code
18361 status collapsed
18362
18363 \begin_layout Plain Layout
18364 larger
18365 \end_layout
18366
18367 \end_inset
18368
18369
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 largest
18375 \end_layout
18376
18377 \end_inset
18378
18379
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 huge
18385 \end_layout
18386
18387 \end_inset
18388
18389
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394 giant
18395 \end_layout
18396
18397 \end_inset
18398
18399 ]
18400 \end_layout
18401
18402 \begin_layout Subsection
18403 \begin_inset CommandInset label
18404 LatexCommand label
18405 name "subsec:引用書式指定"
18406
18407 \end_inset
18408
18409 引用書式指定
18410 \end_layout
18411
18412 \begin_layout Standard
18413 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18414 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18415 \begin_inset Flex Code
18416 status collapsed
18417
18418 \begin_layout Plain Layout
18419 CiteFormat
18420 \end_layout
18421
18422 \end_inset
18423
18424 ブロックが使用されています。このブロックは、以下のような形をしています。
18425 \end_layout
18426
18427 \begin_layout LyX-Code
18428 CiteFormat
18429 \end_layout
18430
18431 \begin_layout LyX-Code
18432  article ...
18433 \end_layout
18434
18435 \begin_layout LyX-Code
18436  book ...
18437 \end_layout
18438
18439 \begin_layout LyX-Code
18440 End
18441 \end_layout
18442
18443 \begin_layout Standard
18444 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18445 ファイル中に存在し
18446 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18447 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18448 は、いくつかの書式を
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 stdciteformats.inc
18454 \end_layout
18455
18456 \end_inset
18457
18458 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18459 文書クラスにインクルードされています。
18460 \end_layout
18461
18462 \begin_layout Standard
18463 この定義は、Bib\SpecialChar TeX
18464 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18465 \begin_inset Flex Code
18466 status collapsed
18467
18468 \begin_layout Plain Layout
18469 %author%
18470 \end_layout
18471
18472 \end_inset
18473
18474 のように
18475 \begin_inset Flex Code
18476 status collapsed
18477
18478 \begin_layout Plain Layout
18479 %
18480 \end_layout
18481
18482 \end_inset
18483
18484 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18485 \end_layout
18486
18487 \begin_layout LyX-Code
18488 misc %author%, 
18489 \begin_inset Quotes eld
18490 \end_inset
18491
18492 %title%
18493 \begin_inset Quotes erd
18494 \end_inset
18495
18496
18497 \end_layout
18498
18499 \begin_layout Standard
18500 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18501 \end_layout
18502
18503 \begin_layout Standard
18504 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509 {%volume%[[vol.
18510 \begin_inset space ~
18511 \end_inset
18512
18513 %volume%]]}
18514 \end_layout
18515
18516 \end_inset
18517
18518 のように、条件付きの構成を使用することができます。これは、
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 volume
18524 \end_layout
18525
18526 \end_inset
18527
18528 が存在するならば,「vol.
18529 \begin_inset space ~
18530 \end_inset
18531
18532 」とvolumeキーを出力するという意味です。また、
18533 \begin_inset Newline newline
18534 \end_inset
18535
18536
18537 \begin_inset Flex Code
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541 {%author%[[%author%]][[%editor%, ed.]]}
18542 \end_layout
18543
18544 \end_inset
18545
18546
18547 \begin_inset Newline newline
18548 \end_inset
18549
18550 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18551 \begin_inset Flex Code
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555 author
18556 \end_layout
18557
18558 \end_inset
18559
18560 キーが存在するならば出力され、そうでなければeditorキーと「,
18561 \begin_inset space ~
18562 \end_inset
18563
18564 ed.」が出力されます。ここでもキーは、
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 %
18570 \end_layout
18571
18572 \end_inset
18573
18574 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18575 \begin_inset Flex Code
18576 status collapsed
18577
18578 \begin_layout Plain Layout
18579 [[
18580 \end_layout
18581
18582 \end_inset
18583
18584 」と「
18585 \begin_inset Flex Code
18586 status collapsed
18587
18588 \begin_layout Plain Layout
18589 ]]
18590 \end_layout
18591
18592 \end_inset
18593
18594 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18595 \end_layout
18596
18597 \begin_layout Standard
18598 もう一つ、定義中で使用することのできる文法として、
18599 \begin_inset Flex Code
18600 status collapsed
18601
18602 \begin_layout Plain Layout
18603 {!<i>!}
18604 \end_layout
18605
18606 \end_inset
18607
18608 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18609 グを出力させたくはありませんから、HTMLタグは「
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614 {!
18615 \end_layout
18616
18617 \end_inset
18618
18619 」と「
18620 \begin_inset Flex Code
18621 status collapsed
18622
18623 \begin_layout Plain Layout
18624 !}
18625 \end_layout
18626
18627 \end_inset
18628
18629 」でくるんでやらなくてはならないのです。
18630 \end_layout
18631
18632 \begin_layout Standard
18633 \begin_inset Flex Code
18634 status collapsed
18635
18636 \begin_layout Plain Layout
18637 CiteFormat
18638 \end_layout
18639
18640 \end_inset
18641
18642 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18643 \end_layout
18644
18645 \begin_layout LyX-Code
18646 !quotetitle 
18647 \begin_inset Quotes eld
18648 \end_inset
18649
18650 %title%
18651 \begin_inset Quotes erd
18652 \end_inset
18653
18654
18655 \end_layout
18656
18657 \begin_layout Standard
18658 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18659 \begin_inset Flex Code
18660 status collapsed
18661
18662 \begin_layout Plain Layout
18663 %!quotetitle%
18664 \end_layout
18665
18666 \end_inset
18667
18668 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18669 は、
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674 %!quotetitle%
18675 \end_layout
18676
18677 \end_inset
18678
18679 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18680 \end_layout
18681
18682 \begin_layout LyX-Code
18683 !funfun %funfun%
18684 \end_layout
18685
18686 \begin_layout Standard
18687 のようなことはしないでください。\SpecialChar LyX
18688 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18689 \end_layout
18690
18691 \begin_layout Standard
18692 特殊な定義の二つめは、
18693 \end_layout
18694
18695 \begin_layout LyX-Code
18696 _pptext pp.
18697 \end_layout
18698
18699 \begin_layout Standard
18700 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18701 \begin_inset Flex Code
18702 status collapsed
18703
18704 \begin_layout Plain Layout
18705 %_pptext%
18706 \end_layout
18707
18708 \end_inset
18709
18710 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18711 \begin_inset Flex Code
18712 status collapsed
18713
18714 \begin_layout Plain Layout
18715 stdciteformats.inc
18716 \end_layout
18717
18718 \end_inset
18719
18720 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18721 \end_layout
18722
18723 \begin_layout Standard
18724 以下は、これらの機能を全て使った例です。
18725 \begin_inset VSpace defskip
18726 \end_inset
18727
18728
18729 \end_layout
18730
18731 \begin_layout Standard
18732 \noindent
18733
18734 \family typewriter
18735 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18736 \end_layout
18737
18738 \begin_layout Standard
18739 \begin_inset VSpace defskip
18740 \end_inset
18741
18742 これは、
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 author
18748 \end_layout
18749
18750 \end_inset
18751
18752 キーが定義されているならば、著者とコンマを出力し、
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 author
18758 \end_layout
18759
18760 \end_inset
18761
18762 キーが定義されておらず、
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 editor
18768 \end_layout
18769
18770 \end_inset
18771
18772 キーが定義されているならば、編集者名の後に
18773 \begin_inset Flex Code
18774 status collapsed
18775
18776 \begin_layout Plain Layout
18777 _edtext
18778 \end_layout
18779
18780 \end_inset
18781
18782 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787 stdciteformats.inc
18788 \end_layout
18789
18790 \end_inset
18791
18792 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18793 \end_layout
18794
18795 \begin_layout Section
18796 \begin_inset CommandInset label
18797 LatexCommand label
18798 name "sec:XHTML出力のタグ"
18799
18800 \end_inset
18801
18802 XHTML出力のタグ
18803 \end_layout
18804
18805 \begin_layout Standard
18806 \SpecialChar LaTeX
18807 やDocBookと同様、\SpecialChar LyX
18808 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18809 は適切な既定値を提供し、前述したように、他のレイアウト
18810 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18811 は、章様式の
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 Font
18817 \end_layout
18818
18819 \end_inset
18820
18821 宣言で提供されている情報を利用しようと試みます。
18822 \end_layout
18823
18824 \begin_layout Standard
18825 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18826 、これが必要になる場合もあるので、\SpecialChar LyX
18827 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18828 \end_layout
18829
18830 \begin_layout Standard
18831 様式宣言や差込枠宣言の外で使用することができるタグに、
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 HTMLPreamble
18837 \end_layout
18838
18839 \end_inset
18840
18841
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 AddToHTMLPreamble
18847 \end_layout
18848
18849 \end_inset
18850
18851 の2つがあることに注意してください。これらの詳細については、
18852 \begin_inset CommandInset ref
18853 LatexCommand ref
18854 reference "subsec:汎用テキストクラスパラメータ"
18855
18856 \end_inset
18857
18858 をご覧ください。
18859 \end_layout
18860
18861 \begin_layout Subsection
18862 \begin_inset CommandInset label
18863 LatexCommand label
18864 name "subsec:段落様式-XHTML"
18865
18866 \end_inset
18867
18868 段落様式
18869 \end_layout
18870
18871 \begin_layout Standard
18872 \SpecialChar LyX
18873 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 \SpecialChar LaTeX
18879 Type
18880 \end_layout
18881
18882 \end_inset
18883
18884 タグの内容によって決定されます。
18885 \end_layout
18886
18887 \begin_layout Standard
18888 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18889 \end_layout
18890
18891 \begin_layout LyX-Code
18892 <tag attr=
18893 \begin_inset Quotes erd
18894 \end_inset
18895
18896 value
18897 \begin_inset Quotes erd
18898 \end_inset
18899
18900 >
18901 \end_layout
18902
18903 \begin_layout LyX-Code
18904 <labeltag attr=
18905 \begin_inset Quotes erd
18906 \end_inset
18907
18908 value
18909 \begin_inset Quotes erd
18910 \end_inset
18911
18912 >ラベル</labeltag>
18913 \end_layout
18914
18915 \begin_layout LyX-Code
18916 段落の内容
18917 \end_layout
18918
18919 \begin_layout LyX-Code
18920 </tag>
18921 \end_layout
18922
18923 \begin_layout Standard
18924 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18925 \end_layout
18926
18927 \begin_layout Standard
18928 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18929 \end_layout
18930
18931 \begin_layout LyX-Code
18932 <tag attr=
18933 \begin_inset Quotes erd
18934 \end_inset
18935
18936 value
18937 \begin_inset Quotes erd
18938 \end_inset
18939
18940 >
18941 \end_layout
18942
18943 \begin_layout LyX-Code
18944 <itemtag attr=
18945 \begin_inset Quotes erd
18946 \end_inset
18947
18948 value
18949 \begin_inset Quotes erd
18950 \end_inset
18951
18952 ><labeltag attr=
18953 \begin_inset Quotes erd
18954 \end_inset
18955
18956 value
18957 \begin_inset Quotes erd
18958 \end_inset
18959
18960 >環境ラベル</labeltag>最初の段落。
18961 \end_layout
18962
18963 \begin_layout LyX-Code
18964 </itemtag>
18965 \end_layout
18966
18967 \begin_layout LyX-Code
18968 <itemtag>二つめの段落。</itemtag>
18969 \end_layout
18970
18971 \begin_layout LyX-Code
18972 </tag>
18973 \end_layout
18974
18975 \begin_layout Standard
18976 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
18977 \end_layout
18978
18979 \begin_layout Standard
18980 リストに関しては、次のような形になります。
18981 \end_layout
18982
18983 \begin_layout LyX-Code
18984 <tag attr=
18985 \begin_inset Quotes erd
18986 \end_inset
18987
18988 value
18989 \begin_inset Quotes erd
18990 \end_inset
18991
18992 >
18993 \end_layout
18994
18995 \begin_layout LyX-Code
18996 <itemtag attr=
18997 \begin_inset Quotes erd
18998 \end_inset
18999
19000 value
19001 \begin_inset Quotes erd
19002 \end_inset
19003
19004 ><labeltag attr=
19005 \begin_inset Quotes erd
19006 \end_inset
19007
19008 value
19009 \begin_inset Quotes erd
19010 \end_inset
19011
19012 >リストのラベル</labeltag>最初の項目。</itemtag>
19013 \end_layout
19014
19015 \begin_layout LyX-Code
19016 <itemtag attr=
19017 \begin_inset Quotes erd
19018 \end_inset
19019
19020 value
19021 \begin_inset Quotes erd
19022 \end_inset
19023
19024 ><labeltag attr=
19025 \begin_inset Quotes erd
19026 \end_inset
19027
19028 value
19029 \begin_inset Quotes erd
19030 \end_inset
19031
19032 >リストのラベル</labeltag>二つめの項目。</itemtag>
19033 \end_layout
19034
19035 \begin_layout LyX-Code
19036 </tag>
19037 \end_layout
19038
19039 \begin_layout LyX-Code
19040
19041 \end_layout
19042
19043 \begin_layout LyX-Code
19044 <tag attr=
19045 \begin_inset Quotes erd
19046 \end_inset
19047
19048 value
19049 \begin_inset Quotes erd
19050 \end_inset
19051
19052 >
19053 \end_layout
19054
19055 \begin_layout LyX-Code
19056 <labeltag attr=
19057 \begin_inset Quotes erd
19058 \end_inset
19059
19060 value
19061 \begin_inset Quotes erd
19062 \end_inset
19063
19064 >リストのラベル</labeltag><itemtag attr=
19065 \begin_inset Quotes erd
19066 \end_inset
19067
19068 value
19069 \begin_inset Quotes erd
19070 \end_inset
19071
19072 >最初の項目。</itemtag>
19073 \end_layout
19074
19075 \begin_layout LyX-Code
19076 <labeltag attr=
19077 \begin_inset Quotes erd
19078 \end_inset
19079
19080 value
19081 \begin_inset Quotes erd
19082 \end_inset
19083
19084 >リストのラベル</labeltag><itemtag attr=
19085 \begin_inset Quotes erd
19086 \end_inset
19087
19088 value
19089 \begin_inset Quotes erd
19090 \end_inset
19091
19092 >二つめの項目</itemtag>
19093 \end_layout
19094
19095 \begin_layout LyX-Code
19096 </tag>
19097 \end_layout
19098
19099 \begin_layout Standard
19100 ここで
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 labeltag
19106 \end_layout
19107
19108 \end_inset
19109
19110
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 itemtag
19116 \end_layout
19117
19118 \end_inset
19119
19120 の順序が違っていることに注意してください。どちらの順序になるかは、
19121 \begin_inset Flex Code
19122 status collapsed
19123
19124 \begin_layout Plain Layout
19125 HTMLLabelFirst
19126 \end_layout
19127
19128 \end_inset
19129
19130 の設定に依存します。もし
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 HTMLLabelFirst
19136 \end_layout
19137
19138 \end_inset
19139
19140 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
19141 \end_layout
19142
19143 \begin_layout Standard
19144 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
19145 は適切な既定値を生成
19146 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
19147 でここにあるものと考えてください。
19148 \end_layout
19149
19150 \begin_layout Description
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 HTMLAttr
19156 \end_layout
19157
19158 \end_inset
19159
19160  [
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 文字列
19166 \end_layout
19167
19168 \end_inset
19169
19170 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19171 \begin_inset Flex Code
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 class=`mydiv'
19176 \end_layout
19177
19178 \end_inset
19179
19180 」のようなものです。既定においては、\SpecialChar LyX
19181 は「
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 class=`レイアウト名'
19187 \end_layout
19188
19189 \end_inset
19190
19191 」と出力します。ここで
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 レイアウト名
19197 \end_layout
19198
19199 \end_inset
19200
19201 は、レイアウトの\SpecialChar LyX
19202 名であり、chapterのように小文字で記述します。
19203 \end_layout
19204
19205 \begin_layout Description
19206 \begin_inset Flex Code
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210 HTMLForceCSS
19211 \end_layout
19212
19213 \end_inset
19214
19215  [
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220
19221 \emph on
19222 0
19223 \emph default
19224 ,1
19225 \end_layout
19226
19227 \end_inset
19228
19229 ] 
19230 \begin_inset Flex Code
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 HTMLStyle
19235 \end_layout
19236
19237 \end_inset
19238
19239 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19240 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 1
19246 \end_layout
19247
19248 \end_inset
19249
19250 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 0
19256 \end_layout
19257
19258 \end_inset
19259
19260 です。
19261 \end_layout
19262
19263 \begin_layout Description
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 HTMLItem
19269 \end_layout
19270
19271 \end_inset
19272
19273  [
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 文字列
19279 \end_layout
19280
19281 \end_inset
19282
19283 ] 環境の段落に使用されるタグ。上記各例の
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 itemtag
19289 \end_layout
19290
19291 \end_inset
19292
19293 を置き換えます。既定値は
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 div
19299 \end_layout
19300
19301 \end_inset
19302
19303 です。
19304 \end_layout
19305
19306 \begin_layout Description
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 HTMLItemAttr
19312 \end_layout
19313
19314 \end_inset
19315
19316  [
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 文字列
19322 \end_layout
19323
19324 \end_inset
19325
19326 ] itemタグの属性。既定値は
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 class=`レイアウト名_item'
19332 \end_layout
19333
19334 \end_inset
19335
19336 です。ここには、様式情報は含まれては
19337 \emph on
19338 なりません
19339 \emph default
19340 。その目的のためには、
19341 \begin_inset Flex Code
19342 status collapsed
19343
19344 \begin_layout Plain Layout
19345 HTMLStyle
19346 \end_layout
19347
19348 \end_inset
19349
19350 を使用してください。
19351 \end_layout
19352
19353 \begin_layout Description
19354 \begin_inset Flex Code
19355 status collapsed
19356
19357 \begin_layout Plain Layout
19358 HTMLLabel
19359 \end_layout
19360
19361 \end_inset
19362
19363  [
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368 文字列
19369 \end_layout
19370
19371 \end_inset
19372
19373 ] 段落と項目ラベルに使用されるタグ。上記各例の
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 labeltag
19379 \end_layout
19380
19381 \end_inset
19382
19383 を置き換えます。
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 LabelType
19389 \end_layout
19390
19391 \end_inset
19392
19393
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 Top_Environment
19399 \end_layout
19400
19401 \end_inset
19402
19403
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 Centered_Top_Environment
19409 \end_layout
19410
19411 \end_inset
19412
19413 の時は、既定値は
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 div
19419 \end_layout
19420
19421 \end_inset
19422
19423 ですが、それ以外の時の既定値は
19424 \begin_inset Flex Code
19425 status collapsed
19426
19427 \begin_layout Plain Layout
19428 span
19429 \end_layout
19430
19431 \end_inset
19432
19433 です。
19434 \end_layout
19435
19436 \begin_layout Description
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 HTMLLabelAttr
19442 \end_layout
19443
19444 \end_inset
19445
19446  [
19447 \begin_inset Flex Code
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 文字列
19452 \end_layout
19453
19454 \end_inset
19455
19456 ] labelタグの属性。既定値は
19457 \begin_inset Flex Code
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461 class=`レイアウト名_label'
19462 \end_layout
19463
19464 \end_inset
19465
19466 です。ここには、様式情報は含まれては
19467 \emph on
19468 なりません
19469 \emph default
19470 。その目的のためには、
19471 \begin_inset Flex Code
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475 HTMLStyle
19476 \end_layout
19477
19478 \end_inset
19479
19480 を使用してください。
19481 \end_layout
19482
19483 \begin_layout Description
19484 \begin_inset Flex Code
19485 status collapsed
19486
19487 \begin_layout Plain Layout
19488 HTMLLabelFirst
19489 \end_layout
19490
19491 \end_inset
19492
19493  [
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498
19499 \emph on
19500 0
19501 \emph default
19502 ,1
19503 \end_layout
19504
19505 \end_inset
19506
19507 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19508 tion環境の中で、
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 `<dt>\SpecialChar ldots
19514 </dt><dd>\SpecialChar ldots
19515 </dd>
19516 \end_layout
19517
19518 \end_inset
19519
19520 という形を得るために使用されます。既定値は
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 0
19526 \end_layout
19527
19528 \end_inset
19529
19530 で、labelタグはitemタグの中に出力されます。
19531 \end_layout
19532
19533 \begin_layout Description
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538 HTMLPreamble
19539 \end_layout
19540
19541 \end_inset
19542
19543  この様式が使用されたときに、
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 <head>
19549 \end_layout
19550
19551 \end_inset
19552
19553 セクションに出力される情報。これは、たとえば、
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 onclick
19559 \end_layout
19560
19561 \end_inset
19562
19563 ハンドラを定義するために
19564 \begin_inset Flex Code
19565 status collapsed
19566
19567 \begin_layout Plain Layout
19568 <script>
19569 \end_layout
19570
19571 \end_inset
19572
19573 ブロックをインクルードするのに使用することができます。
19574 \end_layout
19575
19576 \begin_layout Description
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 HTMLStyle
19582 \end_layout
19583
19584 \end_inset
19585
19586   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19587 \begin_inset Flex Code
19588 status collapsed
19589
19590 \begin_layout Plain Layout
19591 <style>
19592 \end_layout
19593
19594 \end_inset
19595
19596 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19597 \begin_inset Flex Code
19598 status collapsed
19599
19600 \begin_layout Plain Layout
19601 EndHTMLStyle
19602 \end_layout
19603
19604 \end_inset
19605
19606 で閉じなくてはなりません。
19607 \end_layout
19608
19609 \begin_layout Description
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 HTMLTag
19615 \end_layout
19616
19617 \end_inset
19618
19619  [
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624 文字列
19625 \end_layout
19626
19627 \end_inset
19628
19629 ] 主幹ラベルに使用されるタグ。上記各例の
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 tag
19635 \end_layout
19636
19637 \end_inset
19638
19639 を置き換えます。既定値は
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 div
19645 \end_layout
19646
19647 \end_inset
19648
19649 です。
19650 \end_layout
19651
19652 \begin_layout Description
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657 HTMLTitle
19658 \end_layout
19659
19660 \end_inset
19661
19662  [
19663 \begin_inset Flex Code
19664 status collapsed
19665
19666 \begin_layout Plain Layout
19667
19668 \emph on
19669 0
19670 \emph default
19671 ,1
19672 \end_layout
19673
19674 \end_inset
19675
19676 ] この様式が、XHTMLファイルの
19677 \begin_inset Flex Code
19678 status collapsed
19679
19680 \begin_layout Plain Layout
19681 <title>
19682 \end_layout
19683
19684 \end_inset
19685
19686 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19687 \begin_inset Flex Code
19688 status collapsed
19689
19690 \begin_layout Plain Layout
19691 stdtitle.inc
19692 \end_layout
19693
19694 \end_inset
19695
19696 ファイルでは、
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701 title
19702 \end_layout
19703
19704 \end_inset
19705
19706 環境のこの項目を真に設定しています。
19707 \end_layout
19708
19709 \begin_layout Subsection
19710 差込枠レイアウトXHTML
19711 \end_layout
19712
19713 \begin_layout Standard
19714 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19715 \begin_inset Foot
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19720 ん。
19721 \end_layout
19722
19723 \end_inset
19724
19725 。ここでも、\SpecialChar LyX
19726 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19727 \end_layout
19728
19729 \begin_layout Standard
19730 \SpecialChar LyX
19731 が差込枠用に出力するXHTMLは、以下の形を取ります。
19732 \end_layout
19733
19734 \begin_layout LyX-Code
19735 <tag attr=
19736 \begin_inset Quotes erd
19737 \end_inset
19738
19739 value
19740 \begin_inset Quotes erd
19741 \end_inset
19742
19743 >
19744 \end_layout
19745
19746 \begin_layout LyX-Code
19747 <labeltag>ラベル</labeltag>
19748 \end_layout
19749
19750 \begin_layout LyX-Code
19751 <innertag attr=
19752 \begin_inset Quotes erd
19753 \end_inset
19754
19755 value
19756 \begin_inset Quotes erd
19757 \end_inset
19758
19759 >差込枠の内容。</innertag>
19760 \end_layout
19761
19762 \begin_layout LyX-Code
19763 </tag>
19764 \end_layout
19765
19766 \begin_layout Standard
19767 差込枠が多段落を許可している—つまり
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 MultiPar
19773 \end_layout
19774
19775 \end_inset
19776
19777 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19778 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19779 \begin_inset Flex Code
19780 status collapsed
19781
19782 \begin_layout Plain Layout
19783 span
19784 \end_layout
19785
19786 \end_inset
19787
19788 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19789 す。
19790 \end_layout
19791
19792 \begin_layout Description
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 HTMLAttr
19798 \end_layout
19799
19800 \end_inset
19801
19802  [
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 文字列
19808 \end_layout
19809
19810 \end_inset
19811
19812 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 class=`myinset' onclick=`\SpecialChar ldots
19818 '
19819 \end_layout
19820
19821 \end_inset
19822
19823 」のようなものです。既定においては、\SpecialChar LyX
19824 は「
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 class=`差込枠名'
19830 \end_layout
19831
19832 \end_inset
19833
19834 」と出力します。ここで
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839 差込枠名
19840 \end_layout
19841
19842 \end_inset
19843
19844 は、差込枠の\SpecialChar LyX
19845 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19846 \end_layout
19847
19848 \begin_layout Description
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 HTMLForceCSS
19854 \end_layout
19855
19856 \end_inset
19857
19858  [
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863
19864 \emph on
19865 0
19866 \emph default
19867 ,1
19868 \end_layout
19869
19870 \end_inset
19871
19872 ] 
19873 \begin_inset Flex Code
19874 status collapsed
19875
19876 \begin_layout Plain Layout
19877 HTMLStyle
19878 \end_layout
19879
19880 \end_inset
19881
19882 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19883 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19884 \begin_inset Flex Code
19885 status collapsed
19886
19887 \begin_layout Plain Layout
19888 1
19889 \end_layout
19890
19891 \end_inset
19892
19893 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19894 \begin_inset Flex Code
19895 status collapsed
19896
19897 \begin_layout Plain Layout
19898 0
19899 \end_layout
19900
19901 \end_inset
19902
19903 です。
19904 \end_layout
19905
19906 \begin_layout Description
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 HTMLInnerAttr
19912 \end_layout
19913
19914 \end_inset
19915
19916  [
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 文字列
19922 \end_layout
19923
19924 \end_inset
19925
19926 ] innerタグの属性。既定値は
19927 \begin_inset Flex Code
19928 status collapsed
19929
19930 \begin_layout Plain Layout
19931 class=`差込枠名_inner'
19932 \end_layout
19933
19934 \end_inset
19935
19936 です。
19937 \end_layout
19938
19939 \begin_layout Description
19940 \begin_inset Flex Code
19941 status collapsed
19942
19943 \begin_layout Plain Layout
19944 HTMLInnerTag
19945 \end_layout
19946
19947 \end_inset
19948
19949  [
19950 \begin_inset Flex Code
19951 status collapsed
19952
19953 \begin_layout Plain Layout
19954 文字列
19955 \end_layout
19956
19957 \end_inset
19958
19959 ] innerタグです。上記各例の
19960 \begin_inset Flex Code
19961 status collapsed
19962
19963 \begin_layout Plain Layout
19964 innertag
19965 \end_layout
19966
19967 \end_inset
19968
19969 を置き換えます。既定値はなしです。
19970 \end_layout
19971
19972 \begin_layout Description
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 HTMLIsBlock
19978 \end_layout
19979
19980 \end_inset
19981
19982  [
19983 \begin_inset Flex Code
19984 status collapsed
19985
19986 \begin_layout Plain Layout
19987 0,
19988 \emph on
19989 1
19990 \end_layout
19991
19992 \end_inset
19993
19994 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
19995 \end_layout
19996
19997 \begin_layout Description
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 HTMLLabel
20003 \end_layout
20004
20005 \end_inset
20006
20007  [
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 文字列
20013 \end_layout
20014
20015 \end_inset
20016
20017 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
20018 \begin_inset Flex Code
20019 status collapsed
20020
20021 \begin_layout Plain Layout
20022
20023 \backslash
20024 arabic{footnote}
20025 \end_layout
20026
20027 \end_inset
20028
20029 など。これは非必須であり、既定値はありません。
20030 \end_layout
20031
20032 \begin_layout Description
20033 \begin_inset Flex Code
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 HTMLPreamble
20038 \end_layout
20039
20040 \end_inset
20041
20042  この様式が使用されたときに、
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 <head>
20048 \end_layout
20049
20050 \end_inset
20051
20052 セクションに出力される情報。これは、たとえば、
20053 \begin_inset Flex Code
20054 status collapsed
20055
20056 \begin_layout Plain Layout
20057 onclick
20058 \end_layout
20059
20060 \end_inset
20061
20062 ハンドラを定義するために
20063 \begin_inset Flex Code
20064 status collapsed
20065
20066 \begin_layout Plain Layout
20067 <script>
20068 \end_layout
20069
20070 \end_inset
20071
20072 ブロックをインクルードするのに使用することができます。
20073 \end_layout
20074
20075 \begin_layout Description
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 HTMLStyle
20081 \end_layout
20082
20083 \end_inset
20084
20085   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 <style>
20091 \end_layout
20092
20093 \end_inset
20094
20095 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20096 \end_layout
20097
20098 \begin_layout Description
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 HTMLTag
20104 \end_layout
20105
20106 \end_inset
20107
20108  [
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 文字列
20114 \end_layout
20115
20116 \end_inset
20117
20118 ] 主幹ラベルに使用されるタグ。上記各例の
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 tag
20124 \end_layout
20125
20126 \end_inset
20127
20128 を置き換えます。既定値は
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 MultiPar
20134 \end_layout
20135
20136 \end_inset
20137
20138 の設定に依存し、
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 MultiPar
20144 \end_layout
20145
20146 \end_inset
20147
20148 が真ならば
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 div
20154 \end_layout
20155
20156 \end_inset
20157
20158 、偽ならば
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 span
20164 \end_layout
20165
20166 \end_inset
20167
20168 です。
20169 \end_layout
20170
20171 \begin_layout Subsection
20172 フロートXHTML
20173 \end_layout
20174
20175 \begin_layout Standard
20176 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
20177 \end_layout
20178
20179 \begin_layout LyX-Code
20180 <tag attr=
20181 \begin_inset Quotes erd
20182 \end_inset
20183
20184 value
20185 \begin_inset Quotes erd
20186 \end_inset
20187
20188 >
20189 \end_layout
20190
20191 \begin_layout LyX-Code
20192 フロートの内容。
20193 \end_layout
20194
20195 \begin_layout LyX-Code
20196 </tag>
20197 \end_layout
20198
20199 \begin_layout Standard
20200 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
20201 きます。
20202 \end_layout
20203
20204 \begin_layout Description
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 HTMLAttr
20210 \end_layout
20211
20212 \end_inset
20213
20214  [
20215 \begin_inset Flex Code
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 文字列
20220 \end_layout
20221
20222 \end_inset
20223
20224 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
20225 \begin_inset Flex Code
20226 status collapsed
20227
20228 \begin_layout Plain Layout
20229 class=`myfloat' onclick=`\SpecialChar ldots
20230 '
20231 \end_layout
20232
20233 \end_inset
20234
20235 」のようなものです。既定においては、\SpecialChar LyX
20236 は「
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 class=`float フロート-フロート型'
20242 \end_layout
20243
20244 \end_inset
20245
20246 」と出力します。ここで
20247 \begin_inset Flex Code
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251 フロート型
20252 \end_layout
20253
20254 \end_inset
20255
20256 は、フロート宣言で定義された(
20257 \begin_inset CommandInset ref
20258 LatexCommand ref
20259 reference "subsec:フロート"
20260
20261 \end_inset
20262
20263 参照)、この型のフロートの\SpecialChar LyX
20264 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
20265 \end_layout
20266
20267 \begin_layout Description
20268 \begin_inset Flex Code
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 HTMLStyle
20273 \end_layout
20274
20275 \end_inset
20276
20277   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 <style>
20283 \end_layout
20284
20285 \end_inset
20286
20287 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20288 \end_layout
20289
20290 \begin_layout Description
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 HTMLTag
20296 \end_layout
20297
20298 \end_inset
20299
20300  [
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305 文字列
20306 \end_layout
20307
20308 \end_inset
20309
20310 ] このフロートに使用されるタグ。上記各例の
20311 \begin_inset Flex Code
20312 status collapsed
20313
20314 \begin_layout Plain Layout
20315 tag
20316 \end_layout
20317
20318 \end_inset
20319
20320 を置き換えます。既定値は
20321 \begin_inset Flex Code
20322 status collapsed
20323
20324 \begin_layout Plain Layout
20325 div
20326 \end_layout
20327
20328 \end_inset
20329
20330 であり、ほとんどの場合変更する必要はありません。
20331 \end_layout
20332
20333 \begin_layout Subsection
20334 書誌情報の整形
20335 \end_layout
20336
20337 \begin_layout Standard
20338 書誌情報は、
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343 CiteFormat
20344 \end_layout
20345
20346 \end_inset
20347
20348 ブロックを使用して整形することができます。詳細については、
20349 \begin_inset CommandInset ref
20350 LatexCommand ref
20351 reference "subsec:引用書式指定"
20352
20353 \end_inset
20354
20355 を参照してください。
20356 \end_layout
20357
20358 \begin_layout Subsection
20359 \SpecialChar LyX
20360 が生成したCSS
20361 \end_layout
20362
20363 \begin_layout Standard
20364 \SpecialChar LyX
20365 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20366
20367 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20368 \end_layout
20369
20370 \begin_layout Standard
20371 \SpecialChar LyX
20372 は、現在のところ、
20373 \begin_inset Flex Code
20374 status collapsed
20375
20376 \begin_layout Plain Layout
20377 Font
20378 \end_layout
20379
20380 \end_inset
20381
20382 宣言で指定されている
20383 \begin_inset Flex Code
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 Family
20388 \end_layout
20389
20390 \end_inset
20391
20392
20393 \begin_inset Flex Code
20394 status collapsed
20395
20396 \begin_layout Plain Layout
20397 Series
20398 \end_layout
20399
20400 \end_inset
20401
20402
20403 \begin_inset Flex Code
20404 status collapsed
20405
20406 \begin_layout Plain Layout
20407 Shape
20408 \end_layout
20409
20410 \end_inset
20411
20412
20413 \begin_inset Flex Code
20414 status collapsed
20415
20416 \begin_layout Plain Layout
20417 Size
20418 \end_layout
20419
20420 \end_inset
20421
20422 を利用して、フォント情報についてのみCSSを自動生成します(
20423 \begin_inset CommandInset ref
20424 LatexCommand ref
20425 reference "subsec:フォント指定"
20426
20427 \end_inset
20428
20429 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434 Family Sans
20435 \end_layout
20436
20437 \end_inset
20438
20439 」は「
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 font-family: sans-serif
20445 \end_layout
20446
20447 \end_inset
20448
20449 」になります。\SpecialChar LyX
20450 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20451 \begin_inset Flex URL
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455
20456 src/FontInfo.cpp
20457 \end_layout
20458
20459 \end_inset
20460
20461
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 getSizeCSS()
20467 \end_layout
20468
20469 \end_inset
20470
20471 関数をご覧ください。
20472 \end_layout
20473
20474 \begin_layout Chapter
20475 外部素材を取り込む
20476 \begin_inset CommandInset label
20477 LatexCommand label
20478 name "chap:外部素材を取り込む"
20479
20480 \end_inset
20481
20482
20483 \end_layout
20484
20485 \begin_layout Standard
20486 \begin_inset Box Shadowbox
20487 position "t"
20488 hor_pos "c"
20489 has_inner_box 1
20490 inner_pos "t"
20491 use_parbox 0
20492 use_makebox 0
20493 width "100col%"
20494 special "none"
20495 height "1in"
20496 height_special "totalheight"
20497 thickness "0.4pt"
20498 separation "3pt"
20499 shadowsize "4pt"
20500 framecolor "black"
20501 backgroundcolor "none"
20502 status open
20503
20504 \begin_layout Plain Layout
20505 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20506 \end_layout
20507
20508 \end_inset
20509
20510
20511 \end_layout
20512
20513 \begin_layout Standard
20514 \SpecialChar LyX
20515 外部のソースから素材を使用する方法は、取扱説明書『
20516 \emph on
20517 埋込オブジェクト篇
20518 \emph default
20519 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20520 \end_layout
20521
20522 \begin_layout Section
20523 どのように機能するのか
20524 \end_layout
20525
20526 \begin_layout Standard
20527 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20528 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20529 は、Xfigの図や、様々
20530 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20531 \begin_inset Flex MenuItem
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 挿入\SpecialChar menuseparator
20536 ファイル\SpecialChar menuseparator
20537 外部素材
20538 \end_layout
20539
20540 \end_inset
20541
20542 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20543 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20544 の後の版に取り込むことができるようにしてくださることを希望します。
20545 \end_layout
20546
20547 \begin_layout Standard
20548 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20549 いることです。たとえば、
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 Xfig
20555 \end_layout
20556
20557 \end_inset
20558
20559 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20560 \begin_inset Flex Code
20561 status collapsed
20562
20563 \begin_layout Plain Layout
20564 .fig
20565 \end_layout
20566
20567 \end_inset
20568
20569 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 fig
20575 \end_layout
20576
20577 \end_inset
20578
20579 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20580 ファイルにそのままインクルードできるように、
20581 \begin_inset Flex Code
20582 status collapsed
20583
20584 \begin_layout Plain Layout
20585 transfig
20586 \end_layout
20587
20588 \end_inset
20589
20590 を呼び出してPostScriptファイルを生成します。この場合には、
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 .fig
20596 \end_layout
20597
20598 \end_inset
20599
20600 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20601 \end_layout
20602
20603 \begin_layout Standard
20604 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20605 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20606 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20607 の外部素材マネジメントは
20608 、\SpecialChar LyX
20609 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20610 \end_layout
20611
20612 \begin_layout Standard
20613 \SpecialChar LyX
20614 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20615 の場合には、\SpecialChar LyX
20616 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20617 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20618 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20619 できるようになるのです。
20620 \end_layout
20621
20622 \begin_layout Section
20623 外用ひな型設定ファイル
20624 \end_layout
20625
20626 \begin_layout Standard
20627 \SpecialChar LyX
20628 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20629 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20630 \begin_inset CommandInset ref
20631 LatexCommand ref
20632 reference "sec:セキュリティに関する論点"
20633
20634 \end_inset
20635
20636 のセキュリティに関する議論を読んでおいてください。
20637 \end_layout
20638
20639 \begin_layout Standard
20640 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20641 \end_layout
20642
20643 \begin_layout Standard
20644 外用ひな型は、
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 \SpecialChar LyX
20650 Dir/lib/external_templates
20651 \end_layout
20652
20653 \end_inset
20654
20655 ファイルで定義されています。自分用の版を
20656 \begin_inset Flex Code
20657 status collapsed
20658
20659 \begin_layout Plain Layout
20660 UserDir/external_templates
20661 \end_layout
20662
20663 \end_inset
20664
20665 に置くこともできます。
20666 \end_layout
20667
20668 \begin_layout Standard
20669 典型的なひな型は以下のようになります。
20670 \end_layout
20671
20672 \begin_layout LyX-Code
20673 Template XFig
20674 \end_layout
20675
20676 \begin_layout LyX-Code
20677 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20678 \end_layout
20679
20680 \begin_layout LyX-Code
20681 HelpText
20682 \end_layout
20683
20684 \begin_layout LyX-Code
20685 An XFig figure.
20686 \end_layout
20687
20688 \begin_layout LyX-Code
20689 HelpTextEnd
20690 \end_layout
20691
20692 \begin_layout LyX-Code
20693 InputFormat fig
20694 \end_layout
20695
20696 \begin_layout LyX-Code
20697 FileFilter "*.fig"
20698 \end_layout
20699
20700 \begin_layout LyX-Code
20701 AutomaticProduction true
20702 \end_layout
20703
20704 \begin_layout LyX-Code
20705 Transform Rotate
20706 \end_layout
20707
20708 \begin_layout LyX-Code
20709 Transform Resize
20710 \end_layout
20711
20712 \begin_layout LyX-Code
20713 Format LaT
20714 \begin_inset ERT
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718
20719 {}
20720 \end_layout
20721
20722 \end_inset
20723
20724 eX
20725 \end_layout
20726
20727 \begin_layout LyX-Code
20728 TransformCommand Rotate RotationLatexCommand
20729 \end_layout
20730
20731 \begin_layout LyX-Code
20732 TransformCommand Resize ResizeLatexCommand
20733 \end_layout
20734
20735 \begin_layout LyX-Code
20736 Product "$$RotateFront$$ResizeFront
20737 \end_layout
20738
20739 \begin_layout LyX-Code
20740          
20741 \backslash
20742
20743 \backslash
20744 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20745 \end_layout
20746
20747 \begin_layout LyX-Code
20748          $$ResizeBack$$RotateBack"
20749 \end_layout
20750
20751 \begin_layout LyX-Code
20752 UpdateFormat pstex
20753 \end_layout
20754
20755 \begin_layout LyX-Code
20756 UpdateResult "$$AbsPath$$Basename.pstex_t"
20757 \end_layout
20758
20759 \begin_layout LyX-Code
20760 Requirement "graphicx"
20761 \end_layout
20762
20763 \begin_layout LyX-Code
20764 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20765 \end_layout
20766
20767 \begin_layout LyX-Code
20768 ReferencedFile latex "$$AbsPath$$Basename.eps"
20769 \end_layout
20770
20771 \begin_layout LyX-Code
20772 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20773 \end_layout
20774
20775 \begin_layout LyX-Code
20776 FormatEnd
20777 \end_layout
20778
20779 \begin_layout LyX-Code
20780 Format PDFLaT
20781 \begin_inset ERT
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785
20786 {}
20787 \end_layout
20788
20789 \end_inset
20790
20791 eX
20792 \end_layout
20793
20794 \begin_layout LyX-Code
20795 TransformCommand Rotate RotationLatexCommand
20796 \end_layout
20797
20798 \begin_layout LyX-Code
20799 TransformCommand Resize ResizeLatexCommand
20800 \end_layout
20801
20802 \begin_layout LyX-Code
20803 Product "$$RotateFront$$ResizeFront
20804 \end_layout
20805
20806 \begin_layout LyX-Code
20807          
20808 \backslash
20809
20810 \backslash
20811 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20812 \end_layout
20813
20814 \begin_layout LyX-Code
20815          $$ResizeBack$$RotateBack"
20816 \end_layout
20817
20818 \begin_layout LyX-Code
20819 UpdateFormat pdftex
20820 \end_layout
20821
20822 \begin_layout LyX-Code
20823 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20824 \end_layout
20825
20826 \begin_layout LyX-Code
20827 Requirement "graphicx"
20828 \end_layout
20829
20830 \begin_layout LyX-Code
20831 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20832 \end_layout
20833
20834 \begin_layout LyX-Code
20835 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20836 \end_layout
20837
20838 \begin_layout LyX-Code
20839 FormatEnd
20840 \end_layout
20841
20842 \begin_layout LyX-Code
20843 Format Ascii
20844 \end_layout
20845
20846 \begin_layout LyX-Code
20847 Product "$$Contents(
20848 \backslash
20849 "$$AbsPath$$Basename.asc
20850 \backslash
20851 ")"
20852 \end_layout
20853
20854 \begin_layout LyX-Code
20855 UpdateFormat asciixfig
20856 \end_layout
20857
20858 \begin_layout LyX-Code
20859 UpdateResult "$$AbsPath$$Basename.asc"
20860 \end_layout
20861
20862 \begin_layout LyX-Code
20863 FormatEnd
20864 \end_layout
20865
20866 \begin_layout LyX-Code
20867 Format DocBook
20868 \end_layout
20869
20870 \begin_layout LyX-Code
20871 Product "<graphic fileref=
20872 \backslash
20873 "$$AbsOrRelPathMaster$$Basename.eps
20874 \backslash
20875 ">
20876 \end_layout
20877
20878 \begin_layout LyX-Code
20879          </graphic>"
20880 \end_layout
20881
20882 \begin_layout LyX-Code
20883 UpdateFormat eps
20884 \end_layout
20885
20886 \begin_layout LyX-Code
20887 UpdateResult "$$AbsPath$$Basename.eps"
20888 \end_layout
20889
20890 \begin_layout LyX-Code
20891 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20892 \end_layout
20893
20894 \begin_layout LyX-Code
20895 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20896 \end_layout
20897
20898 \begin_layout LyX-Code
20899 FormatEnd
20900 \end_layout
20901
20902 \begin_layout LyX-Code
20903 Product "[XFig: $$FName]"
20904 \end_layout
20905
20906 \begin_layout LyX-Code
20907 FormatEnd
20908 \end_layout
20909
20910 \begin_layout LyX-Code
20911 TemplateEnd
20912 \end_layout
20913
20914 \begin_layout Standard
20915 ご覧の通り、ひな型は
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 Template
20921 \end_layout
20922
20923 \end_inset
20924
20925  \SpecialChar ldots
20926  
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 TemplateEnd
20932 \end_layout
20933
20934 \end_inset
20935
20936 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 Format
20942 \end_layout
20943
20944 \end_inset
20945
20946  \SpecialChar ldots
20947  
20948 \begin_inset Flex Code
20949 status collapsed
20950
20951 \begin_layout Plain Layout
20952 FormatEnd
20953 \end_layout
20954
20955 \end_inset
20956
20957 部があります。
20958 \end_layout
20959
20960 \begin_layout Subsection
20961 ひな型のヘッダ
20962 \end_layout
20963
20964 \begin_layout Description
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 AutomaticProduction
20970 \begin_inset space ~
20971 \end_inset
20972
20973 true|false
20974 \end_layout
20975
20976 \end_inset
20977
20978  このひな型で扱うファイルを\SpecialChar LyX
20979 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
20980 \end_layout
20981
20982 \begin_layout Description
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 FileFilter
20988 \begin_inset space ~
20989 \end_inset
20990
20991 <パターン>
20992 \end_layout
20993
20994 \end_inset
20995
20996  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 .obj
21002 \end_layout
21003
21004 \end_inset
21005
21006
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 .tgo
21012 \end_layout
21013
21014 \end_inset
21015
21016 があります)、「
21017 \begin_inset Flex Code
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 *.{obj,tgo}
21022 \end_layout
21023
21024 \end_inset
21025
21026 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
21027 \end_layout
21028
21029 \begin_layout Description
21030 \begin_inset Flex Code
21031 status collapsed
21032
21033 \begin_layout Plain Layout
21034 GuiName
21035 \begin_inset space ~
21036 \end_inset
21037
21038 <GUI名>
21039 \end_layout
21040
21041 \end_inset
21042
21043  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
21044 \end_layout
21045
21046 \begin_layout Description
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 HelpText
21052 \begin_inset space ~
21053 \end_inset
21054
21055 <文章>
21056 \begin_inset space ~
21057 \end_inset
21058
21059 HelpTextEnd
21060 \end_layout
21061
21062 \end_inset
21063
21064  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
21065 ず現れなくてはなりません。
21066 \end_layout
21067
21068 \begin_layout Description
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 InputFormat
21074 \begin_inset space ~
21075 \end_inset
21076
21077 <書式>
21078 \end_layout
21079
21080 \end_inset
21081
21082  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
21083 が知っている書式名でなくてはなりません(
21084 \begin_inset CommandInset ref
21085 LatexCommand ref
21086 reference "sec:ファイル形式"
21087
21088 \end_inset
21089
21090 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 *
21096 \end_layout
21097
21098 \end_inset
21099
21100 」を使用してください。この場合、\SpecialChar LyX
21101 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
21102 \end_layout
21103
21104 \begin_layout Description
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 Template
21110 \begin_inset space ~
21111 \end_inset
21112
21113 <ID>
21114 \end_layout
21115
21116 \end_inset
21117
21118  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
21119 \end_layout
21120
21121 \begin_layout Description
21122 \begin_inset Flex Code
21123 status collapsed
21124
21125 \begin_layout Plain Layout
21126 Transform
21127 \begin_inset space ~
21128 \end_inset
21129
21130 Rotate|Resize|Clip|Extra
21131 \end_layout
21132
21133 \end_inset
21134
21135  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
21136 ログ中の対応するタブを使用可能にします。
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 Transform
21142 \end_layout
21143
21144 \end_inset
21145
21146 コマンド一つずつに応じて、
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 Format
21152 \end_layout
21153
21154 \end_inset
21155
21156 部に、対応する
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 TransformCommand
21162 \end_layout
21163
21164 \end_inset
21165
21166 コマンドか
21167 \begin_inset Flex Code
21168 status collapsed
21169
21170 \begin_layout Plain Layout
21171 TransformOption
21172 \end_layout
21173
21174 \end_inset
21175
21176 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
21177 \end_layout
21178
21179 \begin_layout Subsection
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 Format
21185 \end_layout
21186
21187 \end_inset
21188
21189
21190 \end_layout
21191
21192 \begin_layout Description
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 Format
21198 \begin_inset space ~
21199 \end_inset
21200
21201 LaT
21202 \begin_inset ERT
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206
21207 {}
21208 \end_layout
21209
21210 \end_inset
21211
21212 eX|PDFLaT
21213 \begin_inset ERT
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217
21218 {}
21219 \end_layout
21220
21221 \end_inset
21222
21223 eX|PlainText|DocBook
21224 \end_layout
21225
21226 \end_inset
21227
21228  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 Format
21234 \end_layout
21235
21236 \end_inset
21237
21238 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
21239 ようになります。
21240 \end_layout
21241
21242 \begin_layout Description
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247 Option
21248 \begin_inset space ~
21249 \end_inset
21250
21251 <名称>
21252 \begin_inset space ~
21253 \end_inset
21254
21255 <値>
21256 \end_layout
21257
21258 \end_inset
21259
21260  このコマンドは、
21261 \begin_inset Flex Code
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 Product
21266 \end_layout
21267
21268 \end_inset
21269
21270 での代入に使うマクロ
21271 \begin_inset Flex Code
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 $$<名称>
21276 \end_layout
21277
21278 \end_inset
21279
21280 を新たに定義します。
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 <値>
21286 \end_layout
21287
21288 \end_inset
21289
21290 自体にも代入マクロを使うことができます。
21291 \begin_inset Flex Code
21292 status collapsed
21293
21294 \begin_layout Plain Layout
21295 Product
21296 \end_layout
21297
21298 \end_inset
21299
21300
21301 \begin_inset Flex Code
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305 <値>
21306 \end_layout
21307
21308 \end_inset
21309
21310 を直接使用するよりも優れた点は、
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 $$<名称>
21316 \end_layout
21317
21318 \end_inset
21319
21320 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
21321 \end_layout
21322
21323 \begin_layout Description
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 Product
21329 \begin_inset space ~
21330 \end_inset
21331
21332 <文>
21333 \end_layout
21334
21335 \end_inset
21336
21337  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
21338
21339 \end_layout
21340
21341 \begin_layout Description
21342 \begin_inset Flex Code
21343 status collapsed
21344
21345 \begin_layout Plain Layout
21346 Preamble
21347 \begin_inset space ~
21348 \end_inset
21349
21350 <名称>
21351 \end_layout
21352
21353 \end_inset
21354
21355  このコマンドは、\SpecialChar LaTeX
21356 プリアンブルに入れるプリアンブル片を指定します。これは
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 PreambleDef
21362 \end_layout
21363
21364 \end_inset
21365
21366  \SpecialChar ldots
21367  
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 PreambleDefEnd
21373 \end_layout
21374
21375 \end_inset
21376
21377 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21378 \end_layout
21379
21380 \begin_layout Description
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 ReferencedFile
21386 \begin_inset space ~
21387 \end_inset
21388
21389 <書式>
21390 \begin_inset space ~
21391 \end_inset
21392
21393 <ファイル名>
21394 \end_layout
21395
21396 \end_inset
21397
21398  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21399 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21400 \end_layout
21401
21402 \begin_layout Description
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 Requirement
21408 \begin_inset space ~
21409 \end_inset
21410
21411 <package>
21412 \end_layout
21413
21414 \end_inset
21415
21416  必要とされる\SpecialChar LaTeX
21417 パッケージ名。パッケージは、\SpecialChar LaTeX
21418 プリアンブル中で
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423
21424 \backslash
21425 usepackage{}
21426 \end_layout
21427
21428 \end_inset
21429
21430 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21431 \end_layout
21432
21433 \begin_layout Description
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438 TransformCommand
21439 \begin_inset space ~
21440 \end_inset
21441
21442 Rotate
21443 \begin_inset space ~
21444 \end_inset
21445
21446 RotationLatexCommand
21447 \end_layout
21448
21449 \end_inset
21450
21451  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21452 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21453 \end_layout
21454
21455 \begin_layout Description
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 TransformCommand
21461 \begin_inset space ~
21462 \end_inset
21463
21464 Resize
21465 \begin_inset space ~
21466 \end_inset
21467
21468 ResizeLatexCommand
21469 \end_layout
21470
21471 \end_inset
21472
21473  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21474 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21475 \end_layout
21476
21477 \begin_layout Description
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482 TransformOption
21483 \begin_inset space ~
21484 \end_inset
21485
21486 Rotate
21487 \begin_inset space ~
21488 \end_inset
21489
21490 RotationLatexOption
21491 \end_layout
21492
21493 \end_inset
21494
21495  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21496 \end_layout
21497
21498 \begin_layout Description
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 TransformOption
21504 \begin_inset space ~
21505 \end_inset
21506
21507 Resize
21508 \begin_inset space ~
21509 \end_inset
21510
21511 ResizeLatexOption
21512 \end_layout
21513
21514 \end_inset
21515
21516  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21517 \end_layout
21518
21519 \begin_layout Description
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 TransformOption
21525 \begin_inset space ~
21526 \end_inset
21527
21528 Clip
21529 \begin_inset space ~
21530 \end_inset
21531
21532 ClipLatexOption
21533 \end_layout
21534
21535 \end_inset
21536
21537  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21538 \end_layout
21539
21540 \begin_layout Description
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 TransformOption
21546 \begin_inset space ~
21547 \end_inset
21548
21549 Extra
21550 \begin_inset space ~
21551 \end_inset
21552
21553 ExtraLatexOption
21554 \end_layout
21555
21556 \end_inset
21557
21558  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21559 \end_layout
21560
21561 \begin_layout Description
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566 UpdateFormat
21567 \begin_inset space ~
21568 \end_inset
21569
21570 <書式>
21571 \end_layout
21572
21573 \end_inset
21574
21575  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21576 が知っている書式名でなくてはなりません(
21577 \begin_inset Flex MenuItem
21578 status collapsed
21579
21580 \begin_layout Plain Layout
21581 ツール\SpecialChar menuseparator
21582 設定\SpecialChar menuseparator
21583 ファイル処理\SpecialChar menuseparator
21584 ファイル書式
21585 \end_layout
21586
21587 \end_inset
21588
21589 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 pdf6
21595 \end_layout
21596
21597 \end_inset
21598
21599 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21600 \end_layout
21601
21602 \begin_layout Description
21603 \begin_inset Flex Code
21604 status collapsed
21605
21606 \begin_layout Plain Layout
21607 UpdateResult
21608 \begin_inset space ~
21609 \end_inset
21610
21611 <ファイル名>
21612 \end_layout
21613
21614 \end_inset
21615
21616  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21617 \end_layout
21618
21619 \begin_layout Subsection
21620 プリアンブルの定義
21621 \end_layout
21622
21623 \begin_layout Standard
21624 外用ひな型設定ファイルには、
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 PreambleDef
21630 \end_layout
21631
21632 \end_inset
21633
21634  \SpecialChar ldots
21635  
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 PreambleDefEnd
21641 \end_layout
21642
21643 \end_inset
21644
21645 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21646 \begin_inset Flex Code
21647 status collapsed
21648
21649 \begin_layout Plain Layout
21650 Format
21651 \end_layout
21652
21653 \end_inset
21654
21655 部で使用することができます。
21656 \end_layout
21657
21658 \begin_layout Section
21659 代入機構
21660 \end_layout
21661
21662 \begin_layout Standard
21663 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21664 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21665 \end_layout
21666
21667 \begin_layout Standard
21668 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21669 \end_layout
21670
21671 \begin_layout Standard
21672 使用できるマクロは以下の通りです。
21673 \end_layout
21674
21675 \begin_layout Description
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 $$AbsOrRelPathMaster
21681 \end_layout
21682
21683 \end_inset
21684
21685  \SpecialChar LyX
21686 親文書への絶対ファイルパスないしは相対ファイルパス
21687 \end_layout
21688
21689 \begin_layout Description
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 $$AbsOrRelPathParent
21695 \end_layout
21696
21697 \end_inset
21698
21699  \SpecialChar LyX
21700 文書への絶対ファイルパスないしは相対ファイルパス
21701 \end_layout
21702
21703 \begin_layout Description
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 $$AbsPath
21709 \end_layout
21710
21711 \end_inset
21712
21713  絶対ファイルパス
21714 \end_layout
21715
21716 \begin_layout Description
21717 \begin_inset Flex Code
21718 status collapsed
21719
21720 \begin_layout Plain Layout
21721 $$Basename
21722 \end_layout
21723
21724 \end_inset
21725
21726  パスおよび拡張子を除いたファイル名
21727 \end_layout
21728
21729 \begin_layout Description
21730 \begin_inset Flex Code
21731 status collapsed
21732
21733 \begin_layout Plain Layout
21734 $$Contents(
21735 \begin_inset Quotes eld
21736 \end_inset
21737
21738 filename.ext
21739 \begin_inset Quotes erd
21740 \end_inset
21741
21742 )
21743 \end_layout
21744
21745 \end_inset
21746
21747  このマクロは、
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752 filename.ext
21753 \end_layout
21754
21755 \end_inset
21756
21757 と云う名のファイルの中身を展開します。
21758 \end_layout
21759
21760 \begin_layout Description
21761 \begin_inset Flex Code
21762 status collapsed
21763
21764 \begin_layout Plain Layout
21765 $$Extension
21766 \end_layout
21767
21768 \end_inset
21769
21770  ファイル拡張子(点を含む)
21771 \end_layout
21772
21773 \begin_layout Description
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 $$pngOrjpg
21779 \end_layout
21780
21781 \end_inset
21782
21783  
21784 \lang english
21785 This will be the string 
21786 \begin_inset Quotes eld
21787 \end_inset
21788
21789 jpg
21790 \begin_inset Quotes erd
21791 \end_inset
21792
21793  if the file is in JPEG format, otherwise it will be the string 
21794 \begin_inset Quotes eld
21795 \end_inset
21796
21797 png
21798 \begin_inset Quotes erd
21799 \end_inset
21800
21801 .
21802  This is useful to avoid uneeded conversions for output formats that support
21803  both PNG and JPEG fomats.
21804  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
21805  output
21806  format.
21807 \end_layout
21808
21809 \begin_layout Description
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814 $$FName
21815 \end_layout
21816
21817 \end_inset
21818
21819  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21820 文書への絶対パスでも良いですし、相対パスでも構いません。
21821 \end_layout
21822
21823 \begin_layout Description
21824 \begin_inset Flex Code
21825 status collapsed
21826
21827 \begin_layout Plain Layout
21828 $$FPath
21829 \end_layout
21830
21831 \end_inset
21832
21833  
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 $$FName
21839 \end_layout
21840
21841 \end_inset
21842
21843 のパス部分(\SpecialChar LyX
21844 文書への絶対パス名か相対パス名)
21845 \end_layout
21846
21847 \begin_layout Description
21848 \begin_inset Flex Code
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852 $$RelPathMaster
21853 \end_layout
21854
21855 \end_inset
21856
21857  \SpecialChar LyX
21858 親文書への相対ファイルパス
21859 \end_layout
21860
21861 \begin_layout Description
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866 $$RelPathParent
21867 \end_layout
21868
21869 \end_inset
21870
21871  \SpecialChar LyX
21872 文書への相対ファイルパス
21873 \end_layout
21874
21875 \begin_layout Description
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880 $$Sysdir
21881 \end_layout
21882
21883 \end_inset
21884
21885  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21886 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21887 \end_layout
21888
21889 \begin_layout Description
21890 \begin_inset Flex Code
21891 status collapsed
21892
21893 \begin_layout Plain Layout
21894 $$Tempname
21895 \end_layout
21896
21897 \end_inset
21898
21899  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21900 \end_layout
21901
21902 \begin_layout Standard
21903 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 $$AbsPath$$Basename$$Extension
21909 \end_layout
21910
21911 \end_inset
21912
21913 のようにして作ることができます。
21914 \end_layout
21915
21916 \begin_layout Standard
21917 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21918 \begin_inset Flex Code
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922 Transform
21923 \end_layout
21924
21925 \end_inset
21926
21927 コマンドと
21928 \begin_inset Flex Code
21929 status collapsed
21930
21931 \begin_layout Plain Layout
21932 TransformCommand
21933 \end_layout
21934
21935 \end_inset
21936
21937 コマンドが有効にされている場合、
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942 Product
21943 \end_layout
21944
21945 \end_inset
21946
21947 コマンドは、これらに加えて以下の代入もサポートします。
21948 \end_layout
21949
21950 \begin_layout Description
21951 \begin_inset Flex Code
21952 status collapsed
21953
21954 \begin_layout Plain Layout
21955 $$ResizeFront
21956 \end_layout
21957
21958 \end_inset
21959
21960  伸縮コマンドの前置部。
21961 \end_layout
21962
21963 \begin_layout Description
21964 \begin_inset Flex Code
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968 $$ResizeBack
21969 \end_layout
21970
21971 \end_inset
21972
21973  伸縮コマンドの後置部。
21974 \end_layout
21975
21976 \begin_layout Description
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 $$RotateFront
21982 \end_layout
21983
21984 \end_inset
21985
21986  回転コマンドの前置部。
21987 \end_layout
21988
21989 \begin_layout Description
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 $$RotateBack
21995 \end_layout
21996
21997 \end_inset
21998
21999  回転コマンドの後置部。
22000 \end_layout
22001
22002 \begin_layout Standard
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 Option
22008 \end_layout
22009
22010 \end_inset
22011
22012 コマンドの値に入れる文字列では、
22013 \begin_inset Flex Code
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017 Transform
22018 \end_layout
22019
22020 \end_inset
22021
22022 コマンドと
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027 TransformOption
22028 \end_layout
22029
22030 \end_inset
22031
22032 コマンドが有効にされていれば、以下の代入もサポートされます。
22033 \end_layout
22034
22035 \begin_layout Description
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 $$Clip
22041 \end_layout
22042
22043 \end_inset
22044
22045  切り抜きオプション。
22046 \end_layout
22047
22048 \begin_layout Description
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 $$Extra
22054 \end_layout
22055
22056 \end_inset
22057
22058  追加オプション。
22059 \end_layout
22060
22061 \begin_layout Description
22062 \begin_inset Flex Code
22063 status collapsed
22064
22065 \begin_layout Plain Layout
22066 $$Resize
22067 \end_layout
22068
22069 \end_inset
22070
22071  伸縮オプション。
22072 \end_layout
22073
22074 \begin_layout Description
22075 \begin_inset Flex Code
22076 status collapsed
22077
22078 \begin_layout Plain Layout
22079 $$Rotate
22080 \end_layout
22081
22082 \end_inset
22083
22084  回転オプション。
22085 \end_layout
22086
22087 \begin_layout Standard
22088 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
22089 \end_layout
22090
22091 \begin_layout Enumerate
22092 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
22093 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
22094 \end_layout
22095
22096 \begin_layout Enumerate
22097 \SpecialChar LaTeX
22098 は、相対ファイル名に関して、\SpecialChar LyX
22099 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
22100 にとって相対ファイル名とは、常にこのファイル名が書か
22101 れている文書に対して相対的なものになります。\SpecialChar LaTeX
22102 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
22103 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
22104 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
22105 を選びさえすれば、これは\SpecialChar LyX
22106 が自動的に行ってくれます。
22107 \end_layout
22108
22109 \begin_layout Standard
22110 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
22111 \end_layout
22112
22113 \begin_layout Itemize
22114 絶対パスが必要とされるときには
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119 $$AbsPath
22120 \end_layout
22121
22122 \end_inset
22123
22124 を使う。
22125 \end_layout
22126
22127 \begin_layout Itemize
22128 代入された文字列が、\SpecialChar LaTeX
22129 インプットの一種である場合には、
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 $$AbsOrRelPathMaster
22135 \end_layout
22136
22137 \end_inset
22138
22139 を使う。
22140 \end_layout
22141
22142 \begin_layout Itemize
22143 それ以外ならば、ユーザの選択を尊重するために
22144 \begin_inset Flex Code
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 $$AbsOrRelPathParent
22149 \end_layout
22150
22151 \end_inset
22152
22153 を使う。
22154 \end_layout
22155
22156 \begin_layout Standard
22157 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
22158 \begin_inset Flex Code
22159 status collapsed
22160
22161 \begin_layout Plain Layout
22162 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22163 \end_layout
22164
22165 \end_inset
22166
22167 というコマンドがあります。この場合、
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 .pstex_t
22173 \end_layout
22174
22175 \end_inset
22176
22177 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
22178 \end_layout
22179
22180 \begin_layout Section
22181 セキュリティに関する論点
22182 \begin_inset CommandInset label
22183 LatexCommand label
22184 name "sec:セキュリティに関する論点"
22185
22186 \end_inset
22187
22188
22189 \end_layout
22190
22191 \begin_layout Standard
22192 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
22193 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
22194 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
22195 \end_layout
22196
22197 \begin_layout Standard
22198 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
22199 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
22200 せん。これは、外部プログラムが
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 system
22206 \end_layout
22207
22208 \end_inset
22209
22210 システムコールではなく、
22211 \begin_inset Flex Code
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215 execvp
22216 \end_layout
22217
22218 \end_inset
22219
22220 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
22221 \end_layout
22222
22223 \begin_layout Standard
22224 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
22225 できません。これは、\SpecialChar LyX
22226 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
22227 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
22228 \end_layout
22229
22230 \begin_layout Standard
22231 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
22232 うになるため、一般的には、統御下に置いた状態で
22233 \begin_inset Flex Code
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237 execvp
22238 \end_layout
22239
22240 \end_inset
22241
22242 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
22243 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
22244 \emph on
22245 間違いなく
22246 \emph default
22247 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
22248 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
22249 には、安全でないひな型は決して入っていません
22250
22251 \end_layout
22252
22253 \begin_layout Standard
22254 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
22255 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
22256 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
22257 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
22258 使用する前に、行うようにしてください。
22259 \end_layout
22260
22261 \begin_layout Chapter
22262 \start_of_appendix
22263 サポートされているレイアウト用\SpecialChar LyX
22264 関数一覧
22265 \begin_inset CommandInset label
22266 LatexCommand label
22267 name "chap:関数一覧"
22268
22269 \end_inset
22270
22271
22272 \end_layout
22273
22274 \begin_layout Standard
22275 \align center
22276 \begin_inset Tabular
22277 <lyxtabular version="3" rows="11" columns="8">
22278 <features tabularvalignment="middle">
22279 <column alignment="left" valignment="top">
22280 <column alignment="left" valignment="top">
22281 <column alignment="left" valignment="top">
22282 <column alignment="left" valignment="top">
22283 <column alignment="left" valignment="top">
22284 <column alignment="left" valignment="top">
22285 <column alignment="left" valignment="top">
22286 <column alignment="left" valignment="top">
22287 <row>
22288 <cell alignment="left" valignment="top" usebox="none">
22289 \begin_inset Text
22290
22291 \begin_layout Plain Layout
22292 accents
22293 \end_layout
22294
22295 \end_inset
22296 </cell>
22297 <cell alignment="left" valignment="top" usebox="none">
22298 \begin_inset Text
22299
22300 \begin_layout Plain Layout
22301 booktabs
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 feyn
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 listings
22320 \end_layout
22321
22322 \end_inset
22323 </cell>
22324 <cell alignment="center" valignment="top" usebox="none">
22325 \begin_inset Text
22326
22327 \begin_layout Plain Layout
22328 natbib
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 rotfloat
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 tfrupee
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 wasysym
22356 \end_layout
22357
22358 \end_inset
22359 </cell>
22360 </row>
22361 <row>
22362 <cell alignment="left" valignment="top" usebox="none">
22363 \begin_inset Text
22364
22365 \begin_layout Plain Layout
22366 amsbsy
22367 \end_layout
22368
22369 \end_inset
22370 </cell>
22371 <cell alignment="left" valignment="top" usebox="none">
22372 \begin_inset Text
22373
22374 \begin_layout Plain Layout
22375 calc
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 fixltx2e
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 longtable
22394 \end_layout
22395
22396 \end_inset
22397 </cell>
22398 <cell alignment="center" valignment="top" usebox="none">
22399 \begin_inset Text
22400
22401 \begin_layout Plain Layout
22402 nomencl
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 rsphrase
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 tipa
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 wrapfig
22430 \end_layout
22431
22432 \end_inset
22433 </cell>
22434 </row>
22435 <row>
22436 <cell alignment="left" valignment="top" usebox="none">
22437 \begin_inset Text
22438
22439 \begin_layout Plain Layout
22440 amscd
22441 \end_layout
22442
22443 \end_inset
22444 </cell>
22445 <cell alignment="left" valignment="top" usebox="none">
22446 \begin_inset Text
22447
22448 \begin_layout Plain Layout
22449 CJK
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 float
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 lyxskak
22468 \end_layout
22469
22470 \end_inset
22471 </cell>
22472 <cell alignment="center" valignment="top" usebox="none">
22473 \begin_inset Text
22474
22475 \begin_layout Plain Layout
22476 pdfcolmk
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 setspace
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 tipx
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 xargs
22504 \end_layout
22505
22506 \end_inset
22507 </cell>
22508 </row>
22509 <row>
22510 <cell alignment="left" valignment="top" usebox="none">
22511 \begin_inset Text
22512
22513 \begin_layout Plain Layout
22514 amsmath
22515 \end_layout
22516
22517 \end_inset
22518 </cell>
22519 <cell alignment="left" valignment="top" usebox="none">
22520 \begin_inset Text
22521
22522 \begin_layout Plain Layout
22523 color
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 framed
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 makeidx
22542 \end_layout
22543
22544 \end_inset
22545 </cell>
22546 <cell alignment="center" valignment="top" usebox="none">
22547 \begin_inset Text
22548
22549 \begin_layout Plain Layout
22550 pdfpages
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 shapepar
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 tone
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 xcolor
22578 \end_layout
22579
22580 \end_inset
22581 </cell>
22582 </row>
22583 <row>
22584 <cell alignment="left" valignment="top" usebox="none">
22585 \begin_inset Text
22586
22587 \begin_layout Plain Layout
22588 amssymb
22589 \end_layout
22590
22591 \end_inset
22592 </cell>
22593 <cell alignment="left" valignment="top" usebox="none">
22594 \begin_inset Text
22595
22596 \begin_layout Plain Layout
22597 covington
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 graphicx
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 marvosym
22616 \end_layout
22617
22618 \end_inset
22619 </cell>
22620 <cell alignment="center" valignment="top" usebox="none">
22621 \begin_inset Text
22622
22623 \begin_layout Plain Layout
22624 pifont
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 slashed
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 txfonts
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 xy
22652 \end_layout
22653
22654 \end_inset
22655 </cell>
22656 </row>
22657 <row>
22658 <cell alignment="left" valignment="top" usebox="none">
22659 \begin_inset Text
22660
22661 \begin_layout Plain Layout
22662 amstext
22663 \end_layout
22664
22665 \end_inset
22666 </cell>
22667 <cell alignment="left" valignment="top" usebox="none">
22668 \begin_inset Text
22669
22670 \begin_layout Plain Layout
22671 csquotes
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 hhline
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 mathdesign
22690 \end_layout
22691
22692 \end_inset
22693 </cell>
22694 <cell alignment="center" valignment="top" usebox="none">
22695 \begin_inset Text
22696
22697 \begin_layout Plain Layout
22698 pmboxdraw
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 soul
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 ulem
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 yhmath
22726 \end_layout
22727
22728 \end_inset
22729 </cell>
22730 </row>
22731 <row>
22732 <cell alignment="left" valignment="top" usebox="none">
22733 \begin_inset Text
22734
22735 \begin_layout Plain Layout
22736 amsthm
22737 \end_layout
22738
22739 \end_inset
22740 </cell>
22741 <cell alignment="left" valignment="top" usebox="none">
22742 \begin_inset Text
22743
22744 \begin_layout Plain Layout
22745 dvipost
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 hyperref
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 mathdots
22764 \end_layout
22765
22766 \end_inset
22767 </cell>
22768 <cell alignment="center" valignment="top" usebox="none">
22769 \begin_inset Text
22770
22771 \begin_layout Plain Layout
22772 polyglossia
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 splitidx
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 undertilde
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
22800 \end_layout
22801
22802 \end_inset
22803 </cell>
22804 </row>
22805 <row>
22806 <cell alignment="left" valignment="top" usebox="none">
22807 \begin_inset Text
22808
22809 \begin_layout Plain Layout
22810 array
22811 \end_layout
22812
22813 \end_inset
22814 </cell>
22815 <cell alignment="left" valignment="top" usebox="none">
22816 \begin_inset Text
22817
22818 \begin_layout Plain Layout
22819 endnotes
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 ifsym
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 mathrsfs
22838 \end_layout
22839
22840 \end_inset
22841 </cell>
22842 <cell alignment="center" valignment="top" usebox="none">
22843 \begin_inset Text
22844
22845 \begin_layout Plain Layout
22846 prettyref
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 subfig
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 units
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
22874 \end_layout
22875
22876 \end_inset
22877 </cell>
22878 </row>
22879 <row>
22880 <cell alignment="left" valignment="top" usebox="none">
22881 \begin_inset Text
22882
22883 \begin_layout Plain Layout
22884 ascii
22885 \end_layout
22886
22887 \end_inset
22888 </cell>
22889 <cell alignment="left" valignment="top" usebox="none">
22890 \begin_inset Text
22891
22892 \begin_layout Plain Layout
22893 enumitem
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 ifthen
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 mhchem
22912 \end_layout
22913
22914 \end_inset
22915 </cell>
22916 <cell alignment="center" valignment="top" usebox="none">
22917 \begin_inset Text
22918
22919 \begin_layout Plain Layout
22920 pxfonts
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 subscript
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 url
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
22948 \end_layout
22949
22950 \end_inset
22951 </cell>
22952 </row>
22953 <row>
22954 <cell alignment="left" valignment="top" usebox="none">
22955 \begin_inset Text
22956
22957 \begin_layout Plain Layout
22958 bbding
22959 \end_layout
22960
22961 \end_inset
22962 </cell>
22963 <cell alignment="left" valignment="top" usebox="none">
22964 \begin_inset Text
22965
22966 \begin_layout Plain Layout
22967 esint
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 jurabib
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 multicol
22986 \end_layout
22987
22988 \end_inset
22989 </cell>
22990 <cell alignment="center" valignment="top" usebox="none">
22991 \begin_inset Text
22992
22993 \begin_layout Plain Layout
22994 refstyle
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 textcomp
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 varioref
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
23022 \end_layout
23023
23024 \end_inset
23025 </cell>
23026 </row>
23027 <row>
23028 <cell alignment="center" valignment="top" usebox="none">
23029 \begin_inset Text
23030
23031 \begin_layout Plain Layout
23032 bm
23033 \end_layout
23034
23035 \end_inset
23036 </cell>
23037 <cell alignment="center" valignment="top" usebox="none">
23038 \begin_inset Text
23039
23040 \begin_layout Plain Layout
23041 fancybox
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 latexsym
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 multirow
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 rotating
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 textgreek
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 verbatim
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
23096 \end_layout
23097
23098 \end_inset
23099 </cell>
23100 </row>
23101 </lyxtabular>
23102
23103 \end_inset
23104
23105
23106 \end_layout
23107
23108 \begin_layout Chapter
23109 レイアウトで使用できる色名
23110 \begin_inset CommandInset label
23111 LatexCommand label
23112 name "chap:色名"
23113
23114 \end_inset
23115
23116
23117 \end_layout
23118
23119 \begin_layout Standard
23120 ここに列挙されている色は標準色であり、\SpecialChar LyX
23121 設定で調整できるものです。
23122 \end_layout
23123
23124 \begin_layout Description
23125 none
23126 \series medium
23127  
23128 \series default
23129 特定の色ではありません – 透明か既定色です
23130 \end_layout
23131
23132 \begin_layout Description
23133 black
23134 \end_layout
23135
23136 \begin_layout Description
23137 white
23138 \end_layout
23139
23140 \begin_layout Description
23141 red
23142 \end_layout
23143
23144 \begin_layout Description
23145 green
23146 \end_layout
23147
23148 \begin_layout Description
23149 blue
23150 \end_layout
23151
23152 \begin_layout Description
23153 cyan
23154 \end_layout
23155
23156 \begin_layout Description
23157 magenta
23158 \end_layout
23159
23160 \begin_layout Description
23161 yellow
23162 \end_layout
23163
23164 \begin_layout Description
23165 added_space 空白マーカ色
23166 \end_layout
23167
23168 \begin_layout Description
23169 addedtext 追加された文章色
23170 \end_layout
23171
23172 \begin_layout Description
23173 appendix 付録マーカ色
23174 \end_layout
23175
23176 \begin_layout Description
23177 background 背景色
23178 \end_layout
23179
23180 \begin_layout Description
23181 bottomarea 下部領域色
23182 \end_layout
23183
23184 \begin_layout Description
23185 branchlabel 派生枝ラベル色
23186 \end_layout
23187
23188 \begin_layout Description
23189 buttonbg ボタンの背景色
23190 \end_layout
23191
23192 \begin_layout Description
23193 buttonhoverbg フォーカスを得ているボタンの背景色
23194 \end_layout
23195
23196 \begin_layout Description
23197 buttonframe 差込枠の縁色
23198 \end_layout
23199
23200 \begin_layout Description
23201 changebar 変更バー色
23202 \end_layout
23203
23204 \begin_layout Description
23205 changedtextauthor1 変更された文章:第1著者の色
23206 \end_layout
23207
23208 \begin_layout Description
23209 changedtextauthor2 変更された文章:第2著者の色
23210 \end_layout
23211
23212 \begin_layout Description
23213 changedtextauthor3 変更された文章:第3著者の色
23214 \end_layout
23215
23216 \begin_layout Description
23217 changedtextauthor4 変更された文章:第4著者の色
23218 \end_layout
23219
23220 \begin_layout Description
23221 changedtextauthor5 変更された文章:第5著者の色
23222 \end_layout
23223
23224 \begin_layout Description
23225 collapsable_inset_frame 畳み込み可能枠の縁色
23226 \end_layout
23227
23228 \begin_layout Description
23229 collapsable_inset_text 畳み込み可能枠の文字色
23230 \end_layout
23231
23232 \begin_layout Description
23233 command コマンド差込枠の文字色
23234 \end_layout
23235
23236 \begin_layout Description
23237 commandbg コマンド差込枠の背景色
23238 \end_layout
23239
23240 \begin_layout Description
23241 commandframe コマンド差込枠の縁色
23242 \end_layout
23243
23244 \begin_layout Description
23245 comment コメント色
23246 \end_layout
23247
23248 \begin_layout Description
23249 commentbg コメントの背景色
23250 \end_layout
23251
23252 \begin_layout Description
23253 cursor カーソル色
23254 \end_layout
23255
23256 \begin_layout Description
23257 deletedtext 削除された文章の色
23258 \end_layout
23259
23260 \begin_layout Description
23261 deletedtextmodifier 削除された文章の修飾子の色
23262 \end_layout
23263
23264 \begin_layout Description
23265 depthbar 余白部の階層表示線の色
23266 \end_layout
23267
23268 \begin_layout Description
23269 eolmarker 行末標色
23270 \end_layout
23271
23272 \begin_layout Description
23273 error \SpecialChar LaTeX
23274 エラーボックス色
23275 \end_layout
23276
23277 \begin_layout Description
23278 footlabel 脚注ラベル色
23279 \end_layout
23280
23281 \begin_layout Description
23282 graphicsbg 画像差込枠の背景色
23283 \end_layout
23284
23285 \begin_layout Description
23286 greyedout 淡色表示差込枠のラベル色
23287 \end_layout
23288
23289 \begin_layout Description
23290 greyedoutbg 淡色表示差込枠の背景色
23291 \end_layout
23292
23293 \begin_layout Description
23294 greyedouttext 淡色表示差込枠の文字色
23295 \end_layout
23296
23297 \begin_layout Description
23298 indexlabel 索引差込枠のラベル色
23299 \end_layout
23300
23301 \begin_layout Description
23302 ignore この色を無視します
23303 \end_layout
23304
23305 \begin_layout Description
23306 inherit この色を継承します
23307 \end_layout
23308
23309 \begin_layout Description
23310 inlinecompletion 行内補完色
23311 \end_layout
23312
23313 \begin_layout Description
23314 insetbg 差込枠標の背景色
23315 \end_layout
23316
23317 \begin_layout Description
23318 insetframe 差込枠標の縁色
23319 \end_layout
23320
23321 \begin_layout Description
23322 language 外国語の単語を標識するための色
23323 \end_layout
23324
23325 \begin_layout Description
23326 latex \SpecialChar LaTeX
23327 モードの文字色
23328 \end_layout
23329
23330 \begin_layout Description
23331 listingsbg プログラムリスト差込枠の背景色
23332 \end_layout
23333
23334 \begin_layout Description
23335 marginlabel 傍注のラベル色
23336 \end_layout
23337
23338 \begin_layout Description
23339 math 数式差込枠の文字色
23340 \end_layout
23341
23342 \begin_layout Description
23343 mathbg 数式差込枠の背景色
23344 \end_layout
23345
23346 \begin_layout Description
23347 mathcorners フォーカスを得ていない数式差込枠の縁色
23348 \end_layout
23349
23350 \begin_layout Description
23351 mathframe フォーカスを得ている数式差込枠の縁色
23352 \end_layout
23353
23354 \begin_layout Description
23355 mathline 数式行色
23356 \end_layout
23357
23358 \begin_layout Description
23359 mathmacrobg 数式マクロ差込枠の背景色
23360 \end_layout
23361
23362 \begin_layout Description
23363 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23364 \end_layout
23365
23366 \begin_layout Description
23367 mathmacroframe 数式マクロ差込枠の縁色
23368 \end_layout
23369
23370 \begin_layout Description
23371 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23372 \end_layout
23373
23374 \begin_layout Description
23375 mathmacrolabel 数式マクロ差込枠のラベル色
23376 \end_layout
23377
23378 \begin_layout Description
23379 mathmacronewarg 数式マクロ新パラメーターのひな型色
23380 \end_layout
23381
23382 \begin_layout Description
23383 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23384 \end_layout
23385
23386 \begin_layout Description
23387 newpage 新規頁色
23388 \end_layout
23389
23390 \begin_layout Description
23391 nonunique_inlinecompletion 行内補完の一意でない部分の色
23392 \end_layout
23393
23394 \begin_layout Description
23395 notebg 注釈の背景色
23396 \end_layout
23397
23398 \begin_layout Description
23399 notelabel 注釈のラベル色
23400 \end_layout
23401
23402 \begin_layout Description
23403 pagebreak 改頁/改行色
23404 \end_layout
23405
23406 \begin_layout Description
23407 paragraphmarker 段落末を標識するための段落標の色
23408 \end_layout
23409
23410 \begin_layout Description
23411 phantomtext 埋め草差込枠の文字色
23412 \end_layout
23413
23414 \begin_layout Description
23415 preview プレビューに用いられる色
23416 \end_layout
23417
23418 \begin_layout Description
23419 previewframe プレビュー縁色
23420 \end_layout
23421
23422 \begin_layout Description
23423 regexpframe 正規表現枠の色
23424 \end_layout
23425
23426 \begin_layout Description
23427 selection 文章選択部の背景色
23428 \end_layout
23429
23430 \begin_layout Description
23431 selectiontext 文章選択部の前景色
23432 \end_layout
23433
23434 \begin_layout Description
23435 shadedbg 影付きボックスの背景色
23436 \end_layout
23437
23438 \begin_layout Description
23439 special 特殊文字の色
23440 \end_layout
23441
23442 \begin_layout Description
23443 tabularline 罫線色
23444 \end_layout
23445
23446 \begin_layout Description
23447 tabularonoffline 罫線色
23448 \end_layout
23449
23450 \begin_layout Description
23451 urllabel URL差込枠のラベル色
23452 \end_layout
23453
23454 \begin_layout Description
23455 urltext URL差込枠の文字色
23456 \end_layout
23457
23458 \end_body
23459 \end_document