]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
Make Math.lyx compilable again.
[lyx.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 Input
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 \lang english
8257  
8258 \lang japanese
8259 名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウト
8260 のほとんどを収録している
8261 \begin_inset Flex Code
8262 status collapsed
8263
8264 \begin_layout Plain Layout
8265 stdclass.inc
8266 \end_layout
8267
8268 \end_inset
8269
8270 のような標準レイアウトファイルです。
8271 \end_layout
8272
8273 \begin_layout Description
8274 \begin_inset Flex Code
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278 InsetLayout
8279 \end_layout
8280
8281 \end_inset
8282
8283  [
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 <型>
8289 \end_layout
8290
8291 \end_inset
8292
8293 ]
8294 \lang english
8295  
8296 \lang japanese
8297 このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。「
8298 \begin_inset Flex Code
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 End
8303 \end_layout
8304
8305 \end_inset
8306
8307 」で閉じる必要があります。
8308 \begin_inset Newline newline
8309 \end_inset
8310
8311 詳しい情報は、
8312 \begin_inset CommandInset ref
8313 LatexCommand ref
8314 reference "subsec:任意設定差込枠"
8315
8316 \end_inset
8317
8318 をご覧ください。
8319 \end_layout
8320
8321 \begin_layout Description
8322 \begin_inset Flex Code
8323 status collapsed
8324
8325 \begin_layout Plain Layout
8326 LeftMargin
8327 \end_layout
8328
8329 \end_inset
8330
8331  [
8332 \begin_inset Flex Code
8333 status collapsed
8334
8335 \begin_layout Plain Layout
8336 文字列
8337 \end_layout
8338
8339 \end_inset
8340
8341 ] 画面上の左余白の幅を指示する文字列。例:「
8342 \begin_inset Flex Code
8343 status collapsed
8344
8345 \begin_layout Plain Layout
8346 MMMMM
8347 \end_layout
8348
8349 \end_inset
8350
8351 」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
8352 \end_layout
8353
8354 \begin_layout Description
8355 \begin_inset Flex Code
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 ModifyStyle
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 End
8380 \end_layout
8381
8382 \end_inset
8383
8384 」で閉じる必要があります。
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 ProvideStyle
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 \lang english
8961 Creates a new paragraph style if it does not already exist.
8962  If the style does exist, this section is ignored.
8963  
8964 \lang japanese
8965
8966 \begin_inset Flex Code
8967 status collapsed
8968
8969 \begin_layout Plain Layout
8970 End
8971 \end_layout
8972
8973 \end_inset
8974
8975 」で閉じる必要があります。
8976 \end_layout
8977
8978 \begin_layout Description
8979 \begin_inset Flex Code
8980 status collapsed
8981
8982 \begin_layout Plain Layout
8983 Requires
8984 \end_layout
8985
8986 \end_inset
8987
8988  [
8989 \begin_inset Flex Code
8990 status collapsed
8991
8992 \begin_layout Plain Layout
8993 文字列
8994 \end_layout
8995
8996 \end_inset
8997
8998 ] このクラスが
8999 \begin_inset Flex Code
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003 文字列
9004 \end_layout
9005
9006 \end_inset
9007
9008 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
9009 さい(機能一覧については
9010 \begin_inset CommandInset ref
9011 LatexCommand ref
9012 reference "chap:関数一覧"
9013
9014 \end_inset
9015
9016 を参照)。
9017 \lang english
9018 If you require a package with specific options, you can additionally use
9019  
9020 \begin_inset Flex Code
9021 status collapsed
9022
9023 \begin_layout Plain Layout
9024
9025 \lang english
9026 PackageOptions
9027 \end_layout
9028
9029 \end_inset
9030
9031 .
9032 \end_layout
9033
9034 \begin_layout Description
9035 \begin_inset Flex Code
9036 status collapsed
9037
9038 \begin_layout Plain Layout
9039 RightMargin
9040 \end_layout
9041
9042 \end_inset
9043
9044  [
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 文字列
9050 \end_layout
9051
9052 \end_inset
9053
9054 ] 画面上の右余白の幅を指示する文字列。例:「
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 MMMMM
9060 \end_layout
9061
9062 \end_inset
9063
9064 」。
9065 \end_layout
9066
9067 \begin_layout Description
9068 \begin_inset Flex Code
9069 status collapsed
9070
9071 \begin_layout Plain Layout
9072 SecNumDepth
9073 \end_layout
9074
9075 \end_inset
9076
9077  [
9078 \begin_inset Flex Code
9079 status collapsed
9080
9081 \begin_layout Plain Layout
9082 int=3
9083 \end_layout
9084
9085 \end_inset
9086
9087 ] どの節区切りまで連番を振るかを指定します。\SpecialChar LaTeX
9088 における
9089 \begin_inset Flex Code
9090 status collapsed
9091
9092 \begin_layout Plain Layout
9093 secnumdepth
9094 \end_layout
9095
9096 \end_inset
9097
9098 カウンタに対応します。
9099 \end_layout
9100
9101 \begin_layout Description
9102 \begin_inset Flex Code
9103 status collapsed
9104
9105 \begin_layout Plain Layout
9106 Sides
9107 \end_layout
9108
9109 \end_inset
9110
9111  [
9112 \emph on
9113
9114 \begin_inset Flex Code
9115 status collapsed
9116
9117 \begin_layout Plain Layout
9118 1
9119 \end_layout
9120
9121 \end_inset
9122
9123
9124 \emph default
9125 ,
9126 \begin_inset space \thinspace{}
9127 \end_inset
9128
9129
9130 \begin_inset Flex Code
9131 status collapsed
9132
9133 \begin_layout Plain Layout
9134 2
9135 \end_layout
9136
9137 \end_inset
9138
9139 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
9140 \begin_inset Flex MenuItem
9141 status collapsed
9142
9143 \begin_layout Plain Layout
9144 文書\SpecialChar menuseparator
9145 設定
9146 \end_layout
9147
9148 \end_inset
9149
9150 ダイアログで変更することができます。
9151 \end_layout
9152
9153 \begin_layout Description
9154 \begin_inset Flex Code
9155 status collapsed
9156
9157 \begin_layout Plain Layout
9158 Style
9159 \end_layout
9160
9161 \end_inset
9162
9163  [
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 <名称>
9169 \end_layout
9170
9171 \end_inset
9172
9173 ]
9174 \lang english
9175  
9176 \lang japanese
9177 この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
9178 \begin_inset Flex Code
9179 status collapsed
9180
9181 \begin_layout Plain Layout
9182 End
9183 \end_layout
9184
9185 \end_inset
9186
9187 」で閉じる必要があります。
9188 \begin_inset Newline newline
9189 \end_inset
9190
9191 段落様式に関する詳細は、
9192 \begin_inset CommandInset ref
9193 LatexCommand ref
9194 reference "subsec:段落様式-XHTML"
9195
9196 \end_inset
9197
9198 をご覧ください。
9199 \end_layout
9200
9201 \begin_layout Description
9202 \begin_inset Flex Code
9203 status collapsed
9204
9205 \begin_layout Plain Layout
9206 TitleLatexName
9207 \end_layout
9208
9209 \end_inset
9210
9211  [
9212 \begin_inset Flex Code
9213 status collapsed
9214
9215 \begin_layout Plain Layout
9216 文字列="maketitle"
9217 \end_layout
9218
9219 \end_inset
9220
9221
9222 \begin_inset Flex Code
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 TitleLatexType
9227 \end_layout
9228
9229 \end_inset
9230
9231 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
9232  
9233 \begin_inset Flex Code
9234 status collapsed
9235
9236 \begin_layout Plain Layout
9237 TitleLatexType
9238 \end_layout
9239
9240 \end_inset
9241
9242 .
9243 \end_layout
9244
9245 \begin_layout Description
9246 \begin_inset Flex Code
9247 status collapsed
9248
9249 \begin_layout Plain Layout
9250 TitleLatexType
9251 \end_layout
9252
9253 \end_inset
9254
9255  [
9256 \begin_inset Flex Code
9257 status collapsed
9258
9259 \begin_layout Plain Layout
9260
9261 \emph on
9262 CommandAfter
9263 \end_layout
9264
9265 \end_inset
9266
9267
9268 \begin_inset Flex Code
9269 status collapsed
9270
9271 \begin_layout Plain Layout
9272 Environment
9273 \end_layout
9274
9275 \end_inset
9276
9277 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
9278 \begin_inset Flex Code
9279 status collapsed
9280
9281 \begin_layout Plain Layout
9282 CommandAfter
9283 \end_layout
9284
9285 \end_inset
9286
9287 は、「
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 InTitle
9293 \begin_inset space ~
9294 \end_inset
9295
9296 1
9297 \end_layout
9298
9299 \end_inset
9300
9301 」が指定されている最後のレイアウトの後に、
9302 \begin_inset Flex Code
9303 status collapsed
9304
9305 \begin_layout Plain Layout
9306 TitleLatexName
9307 \end_layout
9308
9309 \end_inset
9310
9311 で指定したマクロ名を挿入することを意味します。
9312 \begin_inset Flex Code
9313 status collapsed
9314
9315 \begin_layout Plain Layout
9316 Environment
9317 \end_layout
9318
9319 \end_inset
9320
9321 は、「
9322 \begin_inset Flex Code
9323 status collapsed
9324
9325 \begin_layout Plain Layout
9326 InTitle
9327 \begin_inset space ~
9328 \end_inset
9329
9330 1
9331 \end_layout
9332
9333 \end_inset
9334
9335 」を持つ段落群を
9336 \begin_inset Flex Code
9337 status collapsed
9338
9339 \begin_layout Plain Layout
9340 TitleLatexName
9341 \end_layout
9342
9343 \end_inset
9344
9345 で指定した環境でくるむ場合に対応します。
9346 \end_layout
9347
9348 \begin_layout Description
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 TocDepth
9354 \end_layout
9355
9356 \end_inset
9357
9358  [
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 int=3
9364 \end_layout
9365
9366 \end_inset
9367
9368 ] どの節区切りまで目次に取り込むかを指定します。\SpecialChar LaTeX
9369
9370 \begin_inset Flex Code
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 tocdepth
9375 \end_layout
9376
9377 \end_inset
9378
9379 カウンタに対応します。
9380 \end_layout
9381
9382 \begin_layout Subsection
9383 \begin_inset Flex Code
9384 status collapsed
9385
9386 \begin_layout Plain Layout
9387 ClassOptions
9388 \end_layout
9389
9390 \end_inset
9391
9392
9393 \begin_inset CommandInset label
9394 LatexCommand label
9395 name "subsec:ClassOptions"
9396
9397 \end_inset
9398
9399
9400 \end_layout
9401
9402 \begin_layout Standard
9403 \begin_inset Flex Code
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 ClassOptions
9408 \end_layout
9409
9410 \end_inset
9411
9412 部は、以下の項目を取り得ます。
9413 \end_layout
9414
9415 \begin_layout Description
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420 FontSize
9421 \end_layout
9422
9423 \end_inset
9424
9425  [
9426 \begin_inset Flex Code
9427 status collapsed
9428
9429 \begin_layout Plain Layout
9430 文字列="10|11|12"
9431 \end_layout
9432
9433 \end_inset
9434
9435 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
9436 \begin_inset Flex Code
9437 status collapsed
9438
9439 \begin_layout Plain Layout
9440 |
9441 \end_layout
9442
9443 \end_inset
9444
9445 」で区切ります。
9446 \end_layout
9447
9448 \begin_layout Description
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 Header
9454 \end_layout
9455
9456 \end_inset
9457
9458  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
9459 \begin_inset Quotes eld
9460 \end_inset
9461
9462 -//OASIS//DTD DocBook V4.2//EN
9463 \begin_inset Quotes erd
9464 \end_inset
9465
9466
9467 \end_layout
9468
9469 \begin_layout Description
9470 \begin_inset Flex Code
9471 status collapsed
9472
9473 \begin_layout Plain Layout
9474 PageStyle
9475 \end_layout
9476
9477 \end_inset
9478
9479  [
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484 文字列="empty|plain|headings|fancy"
9485 \end_layout
9486
9487 \end_inset
9488
9489 ] 使用できるページ様式の一覧です。「
9490 \begin_inset Flex Code
9491 status collapsed
9492
9493 \begin_layout Plain Layout
9494 |
9495 \end_layout
9496
9497 \end_inset
9498
9499 」で区切ります。
9500 \end_layout
9501
9502 \begin_layout Description
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 Other
9508 \end_layout
9509
9510 \end_inset
9511
9512  [
9513 \begin_inset Flex Code
9514 status collapsed
9515
9516 \begin_layout Plain Layout
9517 文字列=""
9518 \end_layout
9519
9520 \end_inset
9521
9522
9523 \begin_inset Flex Code
9524 status collapsed
9525
9526 \begin_layout Plain Layout
9527
9528 \backslash
9529 documentclass
9530 \end_layout
9531
9532 \end_inset
9533
9534 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
9535 \end_layout
9536
9537 \begin_layout Standard
9538 \begin_inset Flex Code
9539 status collapsed
9540
9541 \begin_layout Plain Layout
9542 ClassOptions
9543 \end_layout
9544
9545 \end_inset
9546
9547 部は「
9548 \begin_inset Flex Code
9549 status collapsed
9550
9551 \begin_layout Plain Layout
9552 End
9553 \end_layout
9554
9555 \end_inset
9556
9557 」で閉じる必要があります。
9558 \end_layout
9559
9560 \begin_layout Subsection
9561 段落様式
9562 \begin_inset CommandInset label
9563 LatexCommand label
9564 name "subsec:段落様式"
9565
9566 \end_inset
9567
9568
9569 \end_layout
9570
9571 \begin_layout Standard
9572 段落様式の記述は、以下のようになります
9573 \begin_inset Foot
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
9578 \end_layout
9579
9580 \end_inset
9581
9582
9583 \end_layout
9584
9585 \begin_layout LyX-Code
9586 Style 
9587 \family roman
9588 \emph on
9589 名称
9590 \end_layout
9591
9592 \begin_layout LyX-Code
9593  ...
9594 \end_layout
9595
9596 \begin_layout LyX-Code
9597 End
9598 \end_layout
9599
9600 \begin_layout Standard
9601 ここでは、以下のコマンドを使用することができます。
9602 \end_layout
9603
9604 \begin_layout Description
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 Align
9610 \end_layout
9611
9612 \end_inset
9613
9614  [
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619
9620 \emph on
9621 block
9622 \emph default
9623 , left, right, center
9624 \end_layout
9625
9626 \end_inset
9627
9628 ] 段落の揃え。
9629 \end_layout
9630
9631 \begin_layout Description
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 AlignPossible
9637 \end_layout
9638
9639 \end_inset
9640
9641  [
9642 \begin_inset Flex Code
9643 status collapsed
9644
9645 \begin_layout Plain Layout
9646
9647 \emph on
9648 block
9649 \emph default
9650 , left, right, center
9651 \end_layout
9652
9653 \end_inset
9654
9655 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9656 スタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃えにすること
9657 はできません)。
9658 \end_layout
9659
9660 \begin_layout Description
9661 \begin_inset Flex Code
9662 status collapsed
9663
9664 \begin_layout Plain Layout
9665 Argument
9666 \end_layout
9667
9668 \end_inset
9669
9670  [
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 整数
9676 \end_layout
9677
9678 \end_inset
9679
9680 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します。これは、節見出しのようなものに便利で、また\SpecialChar LaTeX
9681 でのみ意味を持ちます。コマンドまたは環
9682 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き、必須・非必須を問わず–、別の場所で定義され、引数番号はその順序を表します。定義は
9683 \begin_inset Flex Code
9684 status collapsed
9685
9686 \begin_layout Plain Layout
9687 EndArgument
9688 \end_layout
9689
9690 \end_inset
9691
9692 で閉じなくてはなりません。非必須引数が2つあるコマンドの場合は、以下のようになります。
9693 \begin_inset Separator parbreak
9694 \end_inset
9695
9696
9697 \end_layout
9698
9699 \begin_deeper
9700 \begin_layout Quote
9701
9702 \family typewriter
9703 Argument 1
9704 \end_layout
9705
9706 \begin_layout Quote
9707
9708 \family typewriter
9709 ...
9710 \end_layout
9711
9712 \begin_layout Quote
9713
9714 \family typewriter
9715 EndArgument
9716 \end_layout
9717
9718 \begin_layout Quote
9719
9720 \family typewriter
9721 Argument 2
9722 \end_layout
9723
9724 \begin_layout Quote
9725
9726 \family typewriter
9727 ...
9728 \end_layout
9729
9730 \begin_layout Quote
9731
9732 \family typewriter
9733 EndArgument
9734 \end_layout
9735
9736 \begin_layout Standard
9737 \begin_inset Flex Code
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741 Argument
9742 \end_layout
9743
9744 \end_inset
9745
9746 定義内部では、以下の指定をすることができます。
9747 \end_layout
9748
9749 \begin_layout Itemize
9750 \begin_inset Flex Code
9751 status collapsed
9752
9753 \begin_layout Plain Layout
9754 LabelString
9755 \end_layout
9756
9757 \end_inset
9758
9759  
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 [文字列]
9765 \end_layout
9766
9767 \end_inset
9768
9769  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 MenuString
9775 \end_layout
9776
9777 \end_inset
9778
9779 を指定した場合を除く)。メニューには、後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9780 \begin_inset space \space{}
9781 \end_inset
9782
9783
9784 \begin_inset Quotes eld
9785 \end_inset
9786
9787
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 Short Title|S
9793 \end_layout
9794
9795 \end_inset
9796
9797
9798 \begin_inset Quotes erd
9799 \end_inset
9800
9801 )。
9802 \end_layout
9803
9804 \begin_layout Itemize
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809 MenuString
9810 \end_layout
9811
9812 \end_inset
9813
9814  
9815 \begin_inset Flex Code
9816 status collapsed
9817
9818 \begin_layout Plain Layout
9819 [文字列]
9820 \end_layout
9821
9822 \end_inset
9823
9824  メニュー単独用の文字列。後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9825 \begin_inset space \space{}
9826 \end_inset
9827
9828
9829 \begin_inset Quotes eld
9830 \end_inset
9831
9832
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 Short Title|S
9838 \end_layout
9839
9840 \end_inset
9841
9842
9843 \begin_inset Quotes erd
9844 \end_inset
9845
9846 )。この指定は必須ではありません。指定しない場合には、代わりに
9847 \begin_inset Flex Code
9848 status collapsed
9849
9850 \begin_layout Plain Layout
9851 LabelString
9852 \end_layout
9853
9854 \end_inset
9855
9856 がメニューに用いられます。
9857 \end_layout
9858
9859 \begin_layout Itemize
9860 \begin_inset Flex Code
9861 status collapsed
9862
9863 \begin_layout Plain Layout
9864 Tooltip
9865 \end_layout
9866
9867 \end_inset
9868
9869  
9870 \begin_inset Flex Code
9871 status collapsed
9872
9873 \begin_layout Plain Layout
9874 [文字列]
9875 \end_layout
9876
9877 \end_inset
9878
9879  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文。
9880 \end_layout
9881
9882 \begin_layout Itemize
9883 \begin_inset Flex Code
9884 status collapsed
9885
9886 \begin_layout Plain Layout
9887 Mandatory
9888 \end_layout
9889
9890 \end_inset
9891
9892  [
9893 \begin_inset Flex Code
9894 status collapsed
9895
9896 \begin_layout Plain Layout
9897
9898 \emph on
9899 0
9900 \end_layout
9901
9902 \end_inset
9903
9904 ,
9905 \begin_inset space \thinspace{}
9906 \end_inset
9907
9908
9909 \begin_inset Flex Code
9910 status collapsed
9911
9912 \begin_layout Plain Layout
9913 1
9914 \end_layout
9915
9916 \end_inset
9917
9918 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します。必須引数は、与えられなければ空の出力を行いますが、非必須引数の場合はそもそも出力されません
9919 。既定では、必須引数は
9920 \begin_inset Flex Code
9921 status collapsed
9922
9923 \begin_layout Plain Layout
9924 {...}
9925 \end_layout
9926
9927 \end_inset
9928
9929 で区切られ、非必須引数は
9930 \begin_inset Flex Code
9931 status collapsed
9932
9933 \begin_layout Plain Layout
9934 [...]
9935 \end_layout
9936
9937 \end_inset
9938
9939 で区切られます。
9940 \end_layout
9941
9942 \begin_layout Itemize
9943 \begin_inset Flex Code
9944 status collapsed
9945
9946 \begin_layout Plain Layout
9947 Requires
9948 \end_layout
9949
9950 \end_inset
9951
9952  
9953 \begin_inset Flex Code
9954 status collapsed
9955
9956 \begin_layout Plain Layout
9957 [整数=0]
9958 \end_layout
9959
9960 \end_inset
9961
9962  この引数が出力されるとき、必要となる別の引数を(番号によって)指定します。例えば、\SpecialChar LaTeX
9963 コマンドでは、
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968
9969 \backslash
9970 command[][引数]{文字列}
9971 \end_layout
9972
9973 \end_inset
9974
9975 のように、前に(少なくとも空の)別の非必須引数を要求する非必須引数があります。これは、
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980 Argument 2
9981 \end_layout
9982
9983 \end_inset
9984
9985 中に
9986 \begin_inset Flex Code
9987 status collapsed
9988
9989 \begin_layout Plain Layout
9990 Requires 1
9991 \end_layout
9992
9993 \end_inset
9994
9995 ステートメントを置くことで実現できます。
9996 \end_layout
9997
9998 \begin_layout Itemize
9999 \begin_inset Flex Code
10000 status collapsed
10001
10002 \begin_layout Plain Layout
10003 LeftDelim
10004 \end_layout
10005
10006 \end_inset
10007
10008  
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013 [文字列]
10014 \end_layout
10015
10016 \end_inset
10017
10018  (
10019 \begin_inset Flex Code
10020 status collapsed
10021
10022 \begin_layout Plain Layout
10023 {
10024 \end_layout
10025
10026 \end_inset
10027
10028
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 [
10034 \end_layout
10035
10036 \end_inset
10037
10038 ではない)ユーザー定義の左区切りを定義します。出力中の改行は
10039 \begin_inset Flex Code
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 <br/>
10044 \end_layout
10045
10046 \end_inset
10047
10048 で指示できます。
10049 \end_layout
10050
10051 \begin_layout Itemize
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 RightDelim
10057 \end_layout
10058
10059 \end_inset
10060
10061  
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 [文字列]
10067 \end_layout
10068
10069 \end_inset
10070
10071  (
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 }
10077 \end_layout
10078
10079 \end_inset
10080
10081
10082 \begin_inset Flex Code
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086 ]
10087 \end_layout
10088
10089 \end_inset
10090
10091 ではない)ユーザー定義の右区切りを定義します。出力中の改行は
10092 \begin_inset Flex Code
10093 status collapsed
10094
10095 \begin_layout Plain Layout
10096 <br/>
10097 \end_layout
10098
10099 \end_inset
10100
10101 で指示できます。
10102 \end_layout
10103
10104 \begin_layout Itemize
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 DefaultArg
10110 \end_layout
10111
10112 \end_inset
10113
10114  
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 [文字列]
10120 \end_layout
10121
10122 \end_inset
10123
10124  ユーザー指定引数が与えられなかったとき、すなわち引数差込枠が挿入されなかったときに限り、挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
10125 Argは無効になることに注意してください)。引数が複数のときはコンマで区切る必要があります。
10126 \end_layout
10127
10128 \begin_layout Itemize
10129 \begin_inset Flex Code
10130 status collapsed
10131
10132 \begin_layout Plain Layout
10133 PresetArg
10134 \end_layout
10135
10136 \end_inset
10137
10138  
10139 \begin_inset Flex Code
10140 status collapsed
10141
10142 \begin_layout Plain Layout
10143 [文字列]
10144 \end_layout
10145
10146 \end_inset
10147
10148  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します。引数が複数のときはコンマで区切る必要があります。
10149 \end_layout
10150
10151 \begin_layout Itemize
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 Font
10157 \end_layout
10158
10159 \end_inset
10160
10161  引数の内容に用いられるフォント。
10162 \begin_inset CommandInset ref
10163 LatexCommand ref
10164 reference "subsec:フォント指定"
10165
10166 \end_inset
10167
10168 参照。
10169 \end_layout
10170
10171 \begin_layout Itemize
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 LabelFont
10177 \end_layout
10178
10179 \end_inset
10180
10181  ラベルに用いられるフォント。
10182 \begin_inset CommandInset ref
10183 LatexCommand ref
10184 reference "subsec:フォント指定"
10185
10186 \end_inset
10187
10188 参照。
10189 \end_layout
10190
10191 \begin_layout Itemize
10192 \begin_inset Flex Code
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 Decoration
10197 \end_layout
10198
10199 \end_inset
10200
10201  [
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206
10207 \emph on
10208 Classic
10209 \emph default
10210 , Minimalistic, Conglomerate
10211 \end_layout
10212
10213 \end_inset
10214
10215 ] 差込枠の枠とボタンに用いられる装飾様式。
10216 \end_layout
10217
10218 \begin_layout Itemize
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 AutoInsert
10224 \end_layout
10225
10226 \end_inset
10227
10228  
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 [整数=0]
10234 \end_layout
10235
10236 \end_inset
10237
10238  これが
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 1
10244 \end_layout
10245
10246 \end_inset
10247
10248 に設定されると、各様式が選択されたときに、この引数が自動的に挿入されます。現在のところ、様式・レイアウト毎に1変数のみ自動挿入することができます。
10249 \end_layout
10250
10251 \begin_layout Itemize
10252
10253 \lang english
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258
10259 \lang english
10260 InsertCotext
10261 \end_layout
10262
10263 \end_inset
10264
10265  
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270
10271 \lang english
10272 [int=0]
10273 \end_layout
10274
10275 \end_inset
10276
10277  If this is set to 
10278 \begin_inset Flex Code
10279 status collapsed
10280
10281 \begin_layout Plain Layout
10282
10283 \lang english
10284 1
10285 \end_layout
10286
10287 \end_inset
10288
10289 , this argument will be inserted with a copy of the co-text (either selected
10290  text or the whole paragraph) as content.
10291 \end_layout
10292
10293 \begin_layout Itemize
10294
10295 \lang english
10296 \begin_inset Flex Code
10297 status collapsed
10298
10299 \begin_layout Plain Layout
10300
10301 \lang english
10302 PassThruChars
10303 \end_layout
10304
10305 \end_inset
10306
10307  [
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312
10313 \lang english
10314 string of characters
10315 \end_layout
10316
10317 \end_inset
10318
10319 ]
10320 \family typewriter
10321  
10322 \family default
10323 Defines individual characters that should be output in raw form, meaning
10324  without special translations that \SpecialChar LaTeX
10325  would require.
10326  Note that, contrary to PassThru, this needs to be explicitly defined for
10327  arguments.
10328  That is, arguments do not inherit PassThruChars from their parent inset
10329  or layout.
10330 \end_layout
10331
10332 \begin_layout Standard
10333 既定では、
10334 \begin_inset Flex Code
10335 status collapsed
10336
10337 \begin_layout Plain Layout
10338 LatexType
10339 \end_layout
10340
10341 \end_inset
10342
10343
10344 \begin_inset Flex Code
10345 status collapsed
10346
10347 \begin_layout Plain Layout
10348 Command
10349 \end_layout
10350
10351 \end_inset
10352
10353 のとき、各レイアウトで\SpecialChar LyX
10354 作業領域に入力した文字列は、コマンドの最後の(必須)引数になります。しかしながら、前置句
10355 \begin_inset Flex Code
10356 status collapsed
10357
10358 \begin_layout Plain Layout
10359 post:
10360 \end_layout
10361
10362 \end_inset
10363
10364 を付けた文字列は、この作業領域引数の後に出力されます。後置引数の番号は1から振られ直されますので、作業領域引数の後の最初の引数は
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 post:1
10370 \end_layout
10371
10372 \end_inset
10373
10374 となります。後置引数は、
10375 \begin_inset Flex Code
10376 status collapsed
10377
10378 \begin_layout Plain Layout
10379 Command
10380 \end_layout
10381
10382 \end_inset
10383
10384 以外の
10385 \begin_inset Flex Code
10386 status collapsed
10387
10388 \begin_layout Plain Layout
10389 LatexType
10390 \end_layout
10391
10392 \end_inset
10393
10394 では無視されます。
10395 \end_layout
10396
10397 \begin_layout Standard
10398 (
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403
10404 \backslash
10405 item[foo]
10406 \end_layout
10407
10408 \end_inset
10409
10410 のような)箇条書き
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415
10416 \backslash
10417 item
10418 \end_layout
10419
10420 \end_inset
10421
10422 の引数は、前置句
10423 \begin_inset Flex Code
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427 item:
10428 \end_layout
10429
10430 \end_inset
10431
10432 の後に番号を付けます(例:
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 Argument item:1
10438 \end_layout
10439
10440 \end_inset
10441
10442 )。
10443 \end_layout
10444
10445 \end_deeper
10446 \begin_layout Description
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 BabelPreamble
10452 \end_layout
10453
10454 \end_inset
10455
10456  これは、前に現れたこの様式の
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 BabelPreamble
10462 \end_layout
10463
10464 \end_inset
10465
10466 宣言をすべて、完全に上書きしますので注意してください。「
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 EndBabelPreamble
10472 \end_layout
10473
10474 \end_inset
10475
10476 」で閉じる必要があります。これの利用法についての詳細は、第
10477 \begin_inset CommandInset ref
10478 LatexCommand ref
10479 reference "subsec:段落様式の国際化"
10480
10481 \end_inset
10482
10483 節をご覧ください。
10484 \end_layout
10485
10486 \begin_layout Description
10487 \begin_inset Flex Code
10488 status collapsed
10489
10490 \begin_layout Plain Layout
10491 BottomSep
10492 \end_layout
10493
10494 \end_inset
10495
10496  [
10497 \begin_inset Flex Code
10498 status collapsed
10499
10500 \begin_layout Plain Layout
10501 浮動小数点型=0
10502 \end_layout
10503
10504 \end_inset
10505
10506 ]
10507 \begin_inset Foot
10508 status collapsed
10509
10510 \begin_layout Plain Layout
10511 ここで「浮動小数点型」とは1.5のような実数を指します。
10512 \end_layout
10513
10514 \end_inset
10515
10516  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
10517 す。
10518 \end_layout
10519
10520 \begin_layout Description
10521 \begin_inset Flex Code
10522 status collapsed
10523
10524 \begin_layout Plain Layout
10525 Category
10526 \end_layout
10527
10528 \end_inset
10529
10530  [
10531 \begin_inset Flex Code
10532 status collapsed
10533
10534 \begin_layout Plain Layout
10535 文字列
10536 \end_layout
10537
10538 \end_inset
10539
10540 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
10541 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
10542 \end_layout
10543
10544 \begin_layout Description
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 CommandDepth
10550 \end_layout
10551
10552 \end_inset
10553
10554  XMLコマンドの深度。XML型の書式でのみ使用されます。
10555 \end_layout
10556
10557 \begin_layout Description
10558 \begin_inset Flex Code
10559 status collapsed
10560
10561 \begin_layout Plain Layout
10562 CopyStyle
10563 \end_layout
10564
10565 \end_inset
10566
10567  [
10568 \begin_inset Flex Code
10569 status collapsed
10570
10571 \begin_layout Plain Layout
10572 文字列
10573 \end_layout
10574
10575 \end_inset
10576
10577 ] 既存の様式から、すべての機能を現在の様式にコピーします。
10578 \end_layout
10579
10580 \begin_layout Description
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 DependsOn
10586 \end_layout
10587
10588 \end_inset
10589
10590  [
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 <名称>
10596 \end_layout
10597
10598 \end_inset
10599
10600 ]
10601 \lang english
10602  
10603 \lang japanese
10604 この
10605 \emph on
10606 前に
10607 \emph default
10608 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
10609 \begin_inset Foot
10610 status collapsed
10611
10612 \begin_layout Plain Layout
10613 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。\SpecialChar LyX
10614 の特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可能性が
10615 あります。
10616 \end_layout
10617
10618 \end_inset
10619
10620
10621 \end_layout
10622
10623 \begin_layout Description
10624 \begin_inset Flex Code
10625 status collapsed
10626
10627 \begin_layout Plain Layout
10628 EndLabeltype
10629 \end_layout
10630
10631 \end_inset
10632
10633  [
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638
10639 \emph on
10640 No_Label
10641 \emph default
10642 , Box, Filled_Box, Static
10643 \end_layout
10644
10645 \end_inset
10646
10647 ] 段落の最後(あるいは
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 LatexType
10653 \end_layout
10654
10655 \end_inset
10656
10657 が、
10658 \begin_inset Flex Code
10659 status collapsed
10660
10661 \begin_layout Plain Layout
10662 Environment
10663 \end_layout
10664
10665 \end_inset
10666
10667
10668 \begin_inset Flex Code
10669 status collapsed
10670
10671 \begin_layout Plain Layout
10672 Item_Environment
10673 \end_layout
10674
10675 \end_inset
10676
10677
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 List_Environment
10683 \end_layout
10684
10685 \end_inset
10686
10687 のいずれかの場合は、段落群の最後)に置くラベル。
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 No_Label
10693 \end_layout
10694
10695 \end_inset
10696
10697 の場合は「何もない」ことを指し、
10698 \begin_inset Flex Code
10699 status collapsed
10700
10701 \begin_layout Plain Layout
10702 Box
10703 \end_layout
10704
10705 \end_inset
10706
10707 (あるいは
10708 \begin_inset Flex Code
10709 status collapsed
10710
10711 \begin_layout Plain Layout
10712 Filled_Box
10713 \end_layout
10714
10715 \end_inset
10716
10717 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 Static
10723 \end_layout
10724
10725 \end_inset
10726
10727 は明示したテキスト文字列を指します。
10728 \end_layout
10729
10730 \begin_layout Description
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 EndLabelString
10736 \end_layout
10737
10738 \end_inset
10739
10740  [
10741 \begin_inset Flex Code
10742 status collapsed
10743
10744 \begin_layout Plain Layout
10745 文字列=""
10746 \end_layout
10747
10748 \end_inset
10749
10750
10751 \begin_inset Flex Code
10752 status collapsed
10753
10754 \begin_layout Plain Layout
10755 Static
10756 \end_layout
10757
10758 \end_inset
10759
10760
10761 \begin_inset Flex Code
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765 EndLabelType
10766 \end_layout
10767
10768 \end_inset
10769
10770 のラベルで用いる文字列。
10771 \end_layout
10772
10773 \begin_layout Description
10774 \begin_inset Flex Code
10775 status collapsed
10776
10777 \begin_layout Plain Layout
10778 Font
10779 \end_layout
10780
10781 \end_inset
10782
10783  本文テキストとラベルの
10784 \emph on
10785 両方で
10786 \emph default
10787 用いられるフォント。第
10788 \begin_inset CommandInset ref
10789 LatexCommand ref
10790 reference "subsec:フォント指定"
10791
10792 \end_inset
10793
10794 節を参照。このフォントを定義すると、自動的に
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 LabelFont
10800 \end_layout
10801
10802 \end_inset
10803
10804 も同じ値で定義されることに注意してください。したがって、
10805 \begin_inset Flex Code
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 LabelFont
10810 \end_layout
10811
10812 \end_inset
10813
10814 も同時に定義したい場合には、これを先に定義してください。
10815 \end_layout
10816
10817 \begin_layout Description
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 ForceLocal
10823 \end_layout
10824
10825 \end_inset
10826
10827  [
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 int=0
10833 \end_layout
10834
10835 \end_inset
10836
10837 ] 新しい様式を\SpecialChar LyX
10838 安定版にバックポートするのに用いられます。このタグを最初にサポートした安定版は\SpecialChar LyX
10839  2.1.0です。引数は数字で、0・-1・1以上の任意の数をとることが
10840 できます。様式の
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 ForceLocal
10846 \end_layout
10847
10848 \end_inset
10849
10850 フラグが1以上ならば、これは常に文書ヘッダに書き込まれます。.lyxファイルが読み込まれると、文書ヘッダからの様式定義が文書クラスに追加されます。したがって、古い
10851 版の\SpecialChar LyX
10852 もこの様式を取り扱えるようになります。
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 ForceLocal
10858 \end_layout
10859
10860 \end_inset
10861
10862 の引数は版数です。様式が読み込まれたときに、文書クラス中の既存の様式の版数よりも小さいと、新しい様式は無視されます。版数が大きいと、既存の様式に代わって新しい様
10863 式が用いられます。値-1は無限大の版数を意味し、この様式が常に用いられることになります。
10864 \end_layout
10865
10866 \begin_layout Description
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 FreeSpacing
10872 \end_layout
10873
10874 \end_inset
10875
10876  [
10877 \emph on
10878
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 0
10884 \end_layout
10885
10886 \end_inset
10887
10888
10889 \emph default
10890 ,
10891 \begin_inset space \thinspace{}
10892 \end_inset
10893
10894
10895 \begin_inset Flex Code
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899 1
10900 \end_layout
10901
10902 \end_inset
10903
10904 ] \SpecialChar LyX
10905 は、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体はとて
10906 も素晴らしいことですが、たとえばプログラムコードや生の\SpecialChar LaTeX
10907 コードを入力しようとするときなどに、煩わしくなることがあります。このことから、
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912 FreeSpacing
10913 \end_layout
10914
10915 \end_inset
10916
10917 を有効にすることが認められています。\SpecialChar LyX
10918 は、\SpecialChar LaTeX
10919 モード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
10920 \end_layout
10921
10922 \begin_layout Description
10923 \begin_inset Flex Code
10924 status collapsed
10925
10926 \begin_layout Plain Layout
10927 HTML*
10928 \end_layout
10929
10930 \end_inset
10931
10932  これらのタグは、XHTML出力で使用されます。第
10933 \begin_inset CommandInset ref
10934 LatexCommand ref
10935 reference "subsec:段落様式-XHTML"
10936
10937 \end_inset
10938
10939 節をご覧ください。
10940 \end_layout
10941
10942 \begin_layout Description
10943 \begin_inset Flex Code
10944 status collapsed
10945
10946 \begin_layout Plain Layout
10947 InnerTag
10948 \end_layout
10949
10950 \end_inset
10951
10952  [[FIXME]] (XML型書式でのみ使用されます。)
10953 \end_layout
10954
10955 \begin_layout Description
10956 \begin_inset Flex Code
10957 status collapsed
10958
10959 \begin_layout Plain Layout
10960 InPreamble
10961 \end_layout
10962
10963 \end_inset
10964
10965  [
10966 \emph on
10967
10968 \begin_inset Flex Code
10969 status collapsed
10970
10971 \begin_layout Plain Layout
10972 0
10973 \end_layout
10974
10975 \end_inset
10976
10977
10978 \emph default
10979 ,
10980 \begin_inset space \thinspace{}
10981 \end_inset
10982
10983
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988 1
10989 \end_layout
10990
10991 \end_inset
10992
10993
10994 \begin_inset Flex Code
10995 status collapsed
10996
10997 \begin_layout Plain Layout
10998 1
10999 \end_layout
11000
11001 \end_inset
11002
11003 の場合、様式が文書本体ではなく、文書プリアンブルにインクルードされるようにします。これは、タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
11004 です。これは、
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 LatexType
11010 \end_layout
11011
11012 \end_inset
11013
11014
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 Command
11020 \end_layout
11021
11022 \end_inset
11023
11024 または
11025 \begin_inset Flex Code
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 Paragraph
11030 \end_layout
11031
11032 \end_inset
11033
11034 の様式に対してのみ動作します。
11035 \end_layout
11036
11037 \begin_layout Description
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 InTitle
11043 \end_layout
11044
11045 \end_inset
11046
11047  [
11048 \emph on
11049
11050 \begin_inset Flex Code
11051 status collapsed
11052
11053 \begin_layout Plain Layout
11054 0
11055 \end_layout
11056
11057 \end_inset
11058
11059
11060 \emph default
11061 ,
11062 \begin_inset space \thinspace{}
11063 \end_inset
11064
11065
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 1
11071 \end_layout
11072
11073 \end_inset
11074
11075
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080 1
11081 \end_layout
11082
11083 \end_inset
11084
11085 の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 TitleLatexType
11091 \end_layout
11092
11093 \end_inset
11094
11095
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 TitleLatexName
11101 \end_layout
11102
11103 \end_inset
11104
11105 も参照)。
11106 \end_layout
11107
11108 \begin_layout Description
11109 \begin_inset Flex Code
11110 status collapsed
11111
11112 \begin_layout Plain Layout
11113 ItemCommand
11114 \end_layout
11115
11116 \end_inset
11117
11118  [
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 文字列="item"
11124 \end_layout
11125
11126 \end_inset
11127
11128 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
11129 コマンド。コマンドは、前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です。これは、\SpecialChar LaTeX
11130 出力中では
11131 \begin_inset Flex Code
11132 status collapsed
11133
11134 \begin_layout Plain Layout
11135
11136 \backslash
11137 item
11138 \end_layout
11139
11140 \end_inset
11141
11142 となります)。
11143 \end_layout
11144
11145 \begin_layout Description
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 ItemSep
11151 \end_layout
11152
11153 \end_inset
11154
11155  [
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 浮動小数点型=0
11161 \end_layout
11162
11163 \end_inset
11164
11165 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 ParSep
11171 \end_layout
11172
11173 \end_inset
11174
11175 だけ分離されます。しかし、その環境の項目全体は、さらにこの
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 ItemSep
11181 \end_layout
11182
11183 \end_inset
11184
11185 分だけ離されます。これは
11186 \emph on
11187 乗数
11188 \emph default
11189 であることに注意してください。
11190 \end_layout
11191
11192 \begin_layout Description
11193 \begin_inset Flex Code
11194 status collapsed
11195
11196 \begin_layout Plain Layout
11197 ItemTag
11198 \end_layout
11199
11200 \end_inset
11201
11202  [[FIXME]] (XML型書式でのみ使用されます。)
11203 \end_layout
11204
11205 \begin_layout Description
11206 \begin_inset Flex Code
11207 status collapsed
11208
11209 \begin_layout Plain Layout
11210 KeepEmpty
11211 \end_layout
11212
11213 \end_inset
11214
11215  [
11216 \emph on
11217
11218 \begin_inset Flex Code
11219 status collapsed
11220
11221 \begin_layout Plain Layout
11222 0
11223 \end_layout
11224
11225 \end_inset
11226
11227
11228 \emph default
11229 ,
11230 \begin_inset space \thinspace{}
11231 \end_inset
11232
11233
11234 \begin_inset Flex Code
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238 1
11239 \end_layout
11240
11241 \end_inset
11242
11243 ] 段落を空のままにすると、\SpecialChar LaTeX
11244 出力が空になってしまうので、通常、\SpecialChar LyX
11245 は段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場合が存在します。
11246 たとえば、書簡のひな型では、必須フィールドを人々が忘れないように、空のフィールドのまま提供する手もあります。特別なクラスにおいては、レイアウトを実際には文章を含
11247 まないある種の改行として使用することもあります。
11248 \end_layout
11249
11250 \begin_layout Description
11251 \begin_inset Flex Code
11252 status collapsed
11253
11254 \begin_layout Plain Layout
11255 LabelBottomsep
11256 \end_layout
11257
11258 \end_inset
11259
11260  [
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 浮動小数点型=0
11266 \end_layout
11267
11268 \end_inset
11269
11270 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
11271 \begin_inset Flex Code
11272 status collapsed
11273
11274 \begin_layout Plain Layout
11275 Top_Environment
11276 \end_layout
11277
11278 \end_inset
11279
11280 および
11281 \begin_inset Newline linebreak
11282 \end_inset
11283
11284
11285 \begin_inset Flex Code
11286 status collapsed
11287
11288 \begin_layout Plain Layout
11289 Centered_Top_Environment
11290 \end_layout
11291
11292 \end_inset
11293
11294 )。
11295 \end_layout
11296
11297 \begin_layout Description
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302 LabelCounter
11303 \end_layout
11304
11305 \end_inset
11306
11307  [
11308 \begin_inset Flex Code
11309 status collapsed
11310
11311 \begin_layout Plain Layout
11312 文字列=""
11313 \end_layout
11314
11315 \end_inset
11316
11317 ] 自動連番に使われるカウンタ名(詳しくは第
11318 \begin_inset CommandInset ref
11319 LatexCommand ref
11320 reference "subsec:カウンタ"
11321
11322 \end_inset
11323
11324 節参照)。カウンタがラベル中に表示されるようにするためには、
11325 \begin_inset Flex Code
11326 status collapsed
11327
11328 \begin_layout Plain Layout
11329 LabelString
11330 \end_layout
11331
11332 \end_inset
11333
11334 中で参照する必要があります。これは、少なくとも
11335 \begin_inset Flex Code
11336 status collapsed
11337
11338 \begin_layout Plain Layout
11339 Static
11340 \end_layout
11341
11342 \end_inset
11343
11344
11345 \begin_inset Flex Code
11346 status collapsed
11347
11348 \begin_layout Plain Layout
11349 Above
11350 \end_layout
11351
11352 \end_inset
11353
11354
11355 \begin_inset Flex Code
11356 status collapsed
11357
11358 \begin_layout Plain Layout
11359 Centered
11360 \end_layout
11361
11362 \end_inset
11363
11364 の各
11365 \begin_inset Flex Code
11366 status collapsed
11367
11368 \begin_layout Plain Layout
11369 LabelType
11370 \end_layout
11371
11372 \end_inset
11373
11374 で動作します。
11375 \begin_inset Newline newline
11376 \end_inset
11377
11378 また、
11379 \begin_inset Flex Code
11380 status collapsed
11381
11382 \begin_layout Plain Layout
11383 LabelType
11384 \end_layout
11385
11386 \end_inset
11387
11388
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393 Enumerate
11394 \end_layout
11395
11396 \end_inset
11397
11398 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
11399 \begin_inset Flex Code
11400 status collapsed
11401
11402 \begin_layout Plain Layout
11403 LabelCounter myenum
11404 \end_layout
11405
11406 \end_inset
11407
11408 」と宣言したものとしましょう。すると、\SpecialChar LaTeX
11409 におけるのと同様、実際に使われるカウンタは、
11410 \begin_inset Flex Code
11411 status collapsed
11412
11413 \begin_layout Plain Layout
11414 myenumi
11415 \end_layout
11416
11417 \end_inset
11418
11419
11420 \begin_inset Flex Code
11421 status collapsed
11422
11423 \begin_layout Plain Layout
11424 myenumii
11425 \end_layout
11426
11427 \end_inset
11428
11429
11430 \begin_inset Flex Code
11431 status collapsed
11432
11433 \begin_layout Plain Layout
11434 myenumii
11435 \end_layout
11436
11437 \end_inset
11438
11439
11440 \begin_inset Flex Code
11441 status collapsed
11442
11443 \begin_layout Plain Layout
11444 myenumiv
11445 \end_layout
11446
11447 \end_inset
11448
11449 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
11450 \begin_inset Newline newline
11451 \end_inset
11452
11453 カウンタの詳細については、
11454 \begin_inset CommandInset ref
11455 LatexCommand ref
11456 reference "subsec:カウンタ"
11457
11458 \end_inset
11459
11460 をご覧ください。
11461 \end_layout
11462
11463 \begin_layout Description
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468 LabelFont
11469 \end_layout
11470
11471 \end_inset
11472
11473  ラベルに使用されるフォント。
11474 \begin_inset CommandInset ref
11475 LatexCommand ref
11476 reference "subsec:フォント指定"
11477
11478 \end_inset
11479
11480 を参照。
11481 \end_layout
11482
11483 \begin_layout Description
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 LabelIndent
11489 \end_layout
11490
11491 \end_inset
11492
11493  [
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 文字列=""
11499 \end_layout
11500
11501 \end_inset
11502
11503 ] ラベルをどれくらい行頭下げすべきかを示す文字列。
11504 \end_layout
11505
11506 \begin_layout Description
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511 LabelSep
11512 \end_layout
11513
11514 \end_inset
11515
11516  [
11517 \begin_inset Flex Code
11518 status collapsed
11519
11520 \begin_layout Plain Layout
11521 文字列=""
11522 \end_layout
11523
11524 \end_inset
11525
11526 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列。本文テキストの上に来ないラベルにのみ使用されます。
11527 \end_layout
11528
11529 \begin_layout Description
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534 LabelString
11535 \end_layout
11536
11537 \end_inset
11538
11539  [
11540 \begin_inset Flex Code
11541 status collapsed
11542
11543 \begin_layout Plain Layout
11544 文字列=""
11545 \end_layout
11546
11547 \end_inset
11548
11549
11550 \begin_inset Flex Code
11551 status collapsed
11552
11553 \begin_layout Plain Layout
11554 Static
11555 \end_layout
11556
11557 \end_inset
11558
11559 ラベル型でラベルに使用する文字列。
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 LabelCounter
11565 \end_layout
11566
11567 \end_inset
11568
11569 を設定している場合、
11570 \begin_inset CommandInset ref
11571 LatexCommand ref
11572 reference "subsec:カウンタ"
11573
11574 \end_inset
11575
11576 に述べられている特別な整形コマンドを含めることができます。
11577 \end_layout
11578
11579 \begin_layout Description
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 LabelStringAppendix
11585 \end_layout
11586
11587 \end_inset
11588
11589  [
11590 \begin_inset Flex Code
11591 status collapsed
11592
11593 \begin_layout Plain Layout
11594 文字列=""
11595 \end_layout
11596
11597 \end_inset
11598
11599 ] これは付録の中で
11600 \begin_inset Flex Code
11601 status collapsed
11602
11603 \begin_layout Plain Layout
11604 LabelString
11605 \end_layout
11606
11607 \end_inset
11608
11609 の代わりに用いられます。各
11610 \begin_inset Flex Code
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 LabelString
11615 \end_layout
11616
11617 \end_inset
11618
11619 ステートメントは、
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 LabelStringAppendix
11625 \end_layout
11626
11627 \end_inset
11628
11629 をもリセットすることに注意してください。
11630 \end_layout
11631
11632 \begin_layout Description
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 LabelTag
11638 \end_layout
11639
11640 \end_inset
11641
11642  [FIXME] (XML型書式でのみ使用されます。)
11643 \end_layout
11644
11645 \begin_layout Description
11646 \begin_inset Flex Code
11647 status collapsed
11648
11649 \begin_layout Plain Layout
11650 LabelType
11651 \end_layout
11652
11653 \end_inset
11654
11655  [
11656 \begin_inset Flex Code
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660
11661 \emph on
11662 No_Label
11663 \emph default
11664 , Manual, Static, Above,
11665 \begin_inset Newline newline
11666 \end_inset
11667
11668 Centered, Sensitive, Enumerate,
11669 \begin_inset Newline newline
11670 \end_inset
11671
11672 Itemize, Bibliography
11673 \end_layout
11674
11675 \end_inset
11676
11677 ]
11678 \begin_inset Separator parbreak
11679 \end_inset
11680
11681
11682 \end_layout
11683
11684 \begin_deeper
11685 \begin_layout Description
11686 \begin_inset Flex Code
11687 status collapsed
11688
11689 \begin_layout Plain Layout
11690 Manual
11691 \end_layout
11692
11693 \end_inset
11694
11695  は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
11696 \end_layout
11697
11698 \begin_layout Description
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 Static
11704 \end_layout
11705
11706 \end_inset
11707
11708  は、ラベルが
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 LabelString
11714 \end_layout
11715
11716 \end_inset
11717
11718 で宣言したものであることを示します。これは段落冒頭の「行中」に表示されます。
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723 LatexType
11724 \end_layout
11725
11726 \end_inset
11727
11728
11729 \begin_inset Flex Code
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 Environment
11734 \end_layout
11735
11736 \end_inset
11737
11738 のときは、連続する同じ
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743 Style
11744 \end_layout
11745
11746 \end_inset
11747
11748 の段落中、最初の段落にのみ表示されます。
11749 \end_layout
11750
11751 \begin_layout Description
11752 \begin_inset Flex Code
11753 status collapsed
11754
11755 \begin_layout Plain Layout
11756 Above
11757 \end_layout
11758
11759 \end_inset
11760
11761 および
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 Centered
11767 \end_layout
11768
11769 \end_inset
11770
11771  は、
11772 \begin_inset Flex Code
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776 Static
11777 \end_layout
11778
11779 \end_inset
11780
11781 の特別な場合です。ラベルは段落の上部に行頭か中央揃えで印字されます。
11782 \end_layout
11783
11784 \begin_layout Description
11785 \begin_inset Flex Code
11786 status collapsed
11787
11788 \begin_layout Plain Layout
11789 Sensitive
11790 \end_layout
11791
11792 \end_inset
11793
11794  はキャプションラベルの「図」や「表」の特別な場合です。
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799 Sensitive
11800 \end_layout
11801
11802 \end_inset
11803
11804 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
11805 Type N」にハードコードされています。キャプションがフロートの外に挿入されると、
11806 \begin_inset Flex Code
11807 status collapsed
11808
11809 \begin_layout Plain Layout
11810 LabelString
11811 \end_layout
11812
11813 \end_inset
11814
11815 は「意味を成しません!」と表示されます。
11816 \end_layout
11817
11818 \begin_layout Description
11819 \begin_inset Flex Code
11820 status collapsed
11821
11822 \begin_layout Plain Layout
11823 Enumerate
11824 \end_layout
11825
11826 \end_inset
11827
11828  は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11829 す。
11830 \end_layout
11831
11832 \begin_layout Description
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837 Itemize
11838 \end_layout
11839
11840 \end_inset
11841
11842  は、各階層でさまざまなブリットを生成します。これもハードコードされています。
11843 \end_layout
11844
11845 \begin_layout Description
11846 \begin_inset Flex Code
11847 status collapsed
11848
11849 \begin_layout Plain Layout
11850 Bibliography
11851 \end_layout
11852
11853 \end_inset
11854
11855  は、
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 LatexType BibEnvironment
11861 \end_layout
11862
11863 \end_inset
11864
11865 とともにのみ使用されます。
11866 \end_layout
11867
11868 \end_deeper
11869 \begin_layout Description
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 LangPreamble
11875 \end_layout
11876
11877 \end_inset
11878
11879  これは、この様式で既に出現した
11880 \begin_inset Flex Code
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884 LangPreamble
11885 \end_layout
11886
11887 \end_inset
11888
11889 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、
11890 \begin_inset CommandInset ref
11891 LatexCommand ref
11892 reference "subsec:段落様式の国際化"
11893
11894 \end_inset
11895
11896 をご覧ください。
11897 \end_layout
11898
11899 \begin_layout Description
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 LatexName
11905 \end_layout
11906
11907 \end_inset
11908
11909  [
11910 \begin_inset Flex Code
11911 status collapsed
11912
11913 \begin_layout Plain Layout
11914 <名称>
11915 \end_layout
11916
11917 \end_inset
11918
11919 ] 対応する\SpecialChar LaTeX
11920 の名称です。環境名かコマンド名を指します。
11921 \end_layout
11922
11923 \begin_layout Description
11924 \begin_inset Flex Code
11925 status collapsed
11926
11927 \begin_layout Plain Layout
11928 LatexParam
11929 \end_layout
11930
11931 \end_inset
11932
11933  [
11934 \begin_inset Flex Code
11935 status collapsed
11936
11937 \begin_layout Plain Layout
11938 <パラメータ>
11939 \end_layout
11940
11941 \end_inset
11942
11943 ] 対応する
11944 \begin_inset Flex Code
11945 status collapsed
11946
11947 \begin_layout Plain Layout
11948 LatexName
11949 \end_layout
11950
11951 \end_inset
11952
11953 の非必須パラメータです。このパラメータは、\SpecialChar LyX
11954 内部から変更することはできません(変更可能なパラメータには
11955 \begin_inset Flex Code
11956 status collapsed
11957
11958 \begin_layout Plain Layout
11959 Argument
11960 \end_layout
11961
11962 \end_inset
11963
11964 を使用してください)。これは、全ての\SpecialChar LaTeX
11965  
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 Argument
11971 \end_layout
11972
11973 \end_inset
11974
11975 の後にそのままの形で出力されます。
11976 \end_layout
11977
11978 \begin_layout Description
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 LatexType
11984 \end_layout
11985
11986 \end_inset
11987
11988  [
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993
11994 \emph on
11995 Paragraph
11996 \emph default
11997 , Command, Environment, Item_Environment,
11998 \begin_inset Newline newline
11999 \end_inset
12000
12001 List_Environment, Bib_Environment
12002 \end_layout
12003
12004 \end_inset
12005
12006 ] レイアウトがどのように\SpecialChar LaTeX
12007 に変換されるべきかを示します
12008 \begin_inset Foot
12009 status collapsed
12010
12011 \begin_layout Plain Layout
12012 これらのルールはSGMLクラスにも適用されるので、
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 LatexType
12018 \end_layout
12019
12020 \end_inset
12021
12022 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイル(ファイル名
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 db_*.inc
12028 \end_layout
12029
12030 \end_inset
12031
12032 )を見てください。
12033 \end_layout
12034
12035 \end_inset
12036
12037
12038 \begin_inset Separator parbreak
12039 \end_inset
12040
12041
12042 \end_layout
12043
12044 \begin_deeper
12045 \begin_layout Description
12046 \begin_inset Flex Code
12047 status collapsed
12048
12049 \begin_layout Plain Layout
12050 Paragraph
12051 \end_layout
12052
12053 \end_inset
12054
12055  は、何も特別なことは意味しません。
12056 \end_layout
12057
12058 \begin_layout Description
12059 \begin_inset Flex Code
12060 status collapsed
12061
12062 \begin_layout Plain Layout
12063 Command
12064 \end_layout
12065
12066 \end_inset
12067
12068  は、
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073
12074 \backslash
12075
12076 \emph on
12077 LatexName
12078 \emph default
12079 {\SpecialChar ldots
12080 }
12081 \end_layout
12082
12083 \end_inset
12084
12085 を意味します。
12086 \end_layout
12087
12088 \begin_layout Description
12089 \begin_inset Flex Code
12090 status collapsed
12091
12092 \begin_layout Plain Layout
12093 Environment
12094 \end_layout
12095
12096 \end_inset
12097
12098  は、
12099 \begin_inset Flex Code
12100 status collapsed
12101
12102 \begin_layout Plain Layout
12103
12104 \backslash
12105 begin{
12106 \emph on
12107 LatexName
12108 \emph default
12109 }\SpecialChar ldots
12110
12111 \backslash
12112 end{
12113 \emph on
12114 LatexName
12115 \emph default
12116 }
12117 \end_layout
12118
12119 \end_inset
12120
12121 を意味します。
12122 \end_layout
12123
12124 \begin_layout Description
12125 \begin_inset Flex Code
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 Item_Environment
12130 \end_layout
12131
12132 \end_inset
12133
12134  は
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 Environment
12140 \end_layout
12141
12142 \end_inset
12143
12144 と同じですが、
12145 \begin_inset Flex Code
12146 status collapsed
12147
12148 \begin_layout Plain Layout
12149
12150 \backslash
12151 item
12152 \end_layout
12153
12154 \end_inset
12155
12156 がこの環境のすべての段落に付けられるところだけが異なっています。
12157 \end_layout
12158
12159 \begin_layout Description
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 List_Environment
12165 \end_layout
12166
12167 \end_inset
12168
12169  は
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 Item_Environment
12175 \end_layout
12176
12177 \end_inset
12178
12179 と同じですが、
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 LabelWidthString
12185 \end_layout
12186
12187 \end_inset
12188
12189 が環境の引数として渡されるところだけが異なっています。
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 LabelWidthString
12195 \end_layout
12196
12197 \end_inset
12198
12199 は、
12200 \begin_inset Flex MenuItem
12201 status collapsed
12202
12203 \begin_layout Plain Layout
12204 編集\SpecialChar menuseparator
12205 段落設定
12206 \end_layout
12207
12208 \end_inset
12209
12210 ダイアログで定義することができます。
12211 \end_layout
12212
12213 \begin_layout Description
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 Bib_Environment
12219 \end_layout
12220
12221 \end_inset
12222
12223  は
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 Environment
12229 \end_layout
12230
12231 \end_inset
12232
12233 に似ていますが、以下のように、書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します。
12234 \begin_inset Newline newline
12235 \end_inset
12236
12237
12238 \begin_inset Flex Code
12239 status collapsed
12240
12241 \begin_layout Plain Layout
12242
12243 \backslash
12244 begin{thebibliography}{99}
12245 \end_layout
12246
12247 \end_inset
12248
12249
12250 \begin_inset Newline newline
12251 \end_inset
12252
12253 したがって、これは書誌情報環境にのみ有用です。既定の最長ラベル「99」は、書誌情報項目の段落設定で、ユーザーが変更することができます。
12254 \end_layout
12255
12256 \begin_layout Standard
12257 上記最後のいくつかをまとめると、\SpecialChar LaTeX
12258 出力は、\SpecialChar LaTeX
12259 型に依存して
12260 \end_layout
12261
12262 \begin_layout LyX-Code
12263
12264 \backslash
12265 LatexName[LatexParam]{\SpecialChar ldots
12266 }
12267 \end_layout
12268
12269 \begin_layout Standard
12270 のようになるか、
12271 \end_layout
12272
12273 \begin_layout LyX-Code
12274
12275 \backslash
12276 begin{LatexName}[LatexParam] \SpecialChar ldots
12277  
12278 \backslash
12279 end{LatexName}.
12280 \end_layout
12281
12282 \begin_layout Standard
12283 となります。
12284 \end_layout
12285
12286 \end_deeper
12287 \begin_layout Description
12288 \begin_inset Flex Code
12289 status collapsed
12290
12291 \begin_layout Plain Layout
12292 LeftDelim
12293 \end_layout
12294
12295 \end_inset
12296
12297  [
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 文字列
12303 \end_layout
12304
12305 \end_inset
12306
12307 ] 様式の内容の最初に置かれる文字列。出力中の改行は
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312 <br/>
12313 \end_layout
12314
12315 \end_inset
12316
12317 で指示できます。
12318 \end_layout
12319
12320 \begin_layout Description
12321 \begin_inset Flex Code
12322 status collapsed
12323
12324 \begin_layout Plain Layout
12325 LeftMargin
12326 \end_layout
12327
12328 \end_inset
12329
12330  [
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335 文字列=""
12336 \end_layout
12337
12338 \end_inset
12339
12340 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
12341 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12342 \end_inset
12343
12344 をかけて加えられます。このパラメータは、
12345 \begin_inset Flex Code
12346 status collapsed
12347
12348 \begin_layout Plain Layout
12349 Margin
12350 \end_layout
12351
12352 \end_inset
12353
12354
12355 \begin_inset Flex Code
12356 status collapsed
12357
12358 \begin_layout Plain Layout
12359 Manual
12360 \end_layout
12361
12362 \end_inset
12363
12364 あるいは
12365 \begin_inset Flex Code
12366 status collapsed
12367
12368 \begin_layout Plain Layout
12369 Dynamic
12370 \end_layout
12371
12372 \end_inset
12373
12374 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
12375 \begin_inset Newline newline
12376 \end_inset
12377
12378 たとえば「
12379 \begin_inset Flex Code
12380 status collapsed
12381
12382 \begin_layout Plain Layout
12383 MM
12384 \end_layout
12385
12386 \end_inset
12387
12388 」と指定すると、段落を通常フォントの「
12389 \begin_inset Flex Code
12390 status collapsed
12391
12392 \begin_layout Plain Layout
12393 MM
12394 \end_layout
12395
12396 \end_inset
12397
12398 」の幅だけ行頭下げを行います。文字列の前に「
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403 -
12404 \end_layout
12405
12406 \end_inset
12407
12408 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
12409 \end_layout
12410
12411 \begin_layout Description
12412 \begin_inset Flex Code
12413 status collapsed
12414
12415 \begin_layout Plain Layout
12416 Margin
12417 \end_layout
12418
12419 \end_inset
12420
12421  [
12422 \begin_inset Flex Code
12423 status collapsed
12424
12425 \begin_layout Plain Layout
12426
12427 \emph on
12428 Static
12429 \emph default
12430 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12431 \end_layout
12432
12433 \end_inset
12434
12435
12436 \begin_inset Newline newline
12437 \end_inset
12438
12439 このレイアウトの左余白の種類です。
12440 \begin_inset Separator parbreak
12441 \end_inset
12442
12443
12444 \end_layout
12445
12446 \begin_deeper
12447 \begin_layout Description
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 Static
12453 \end_layout
12454
12455 \end_inset
12456
12457  は固定余白を示します。
12458 \end_layout
12459
12460 \begin_layout Description
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 Manual
12466 \end_layout
12467
12468 \end_inset
12469
12470  は、左余白が
12471 \begin_inset Flex MenuItem
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 編集\SpecialChar menuseparator
12476 段落設定
12477 \end_layout
12478
12479 \end_inset
12480
12481 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
12482 \end_layout
12483
12484 \begin_layout Description
12485 \begin_inset Flex Code
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489 Dynamic
12490 \end_layout
12491
12492 \end_inset
12493
12494  は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
12495  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
12496 \end_layout
12497
12498 \begin_layout Description
12499 \begin_inset Flex Code
12500 status collapsed
12501
12502 \begin_layout Plain Layout
12503 First_Dynamic
12504 \end_layout
12505
12506 \end_inset
12507
12508  は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
12509 \end_layout
12510
12511 \begin_layout Description
12512 \begin_inset Flex Code
12513 status collapsed
12514
12515 \begin_layout Plain Layout
12516 Right_Address_Box
12517 \end_layout
12518
12519 \end_inset
12520
12521  は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
12522 \end_layout
12523
12524 \end_deeper
12525 \begin_layout Description
12526 \begin_inset Flex Code
12527 status collapsed
12528
12529 \begin_layout Plain Layout
12530 NeedProtect
12531 \end_layout
12532
12533 \end_inset
12534
12535  [
12536 \begin_inset Flex Code
12537 status collapsed
12538
12539 \begin_layout Plain Layout
12540
12541 \emph on
12542 0
12543 \end_layout
12544
12545 \end_inset
12546
12547 ,
12548 \begin_inset space \thinspace{}
12549 \end_inset
12550
12551
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 1
12557 \end_layout
12558
12559 \end_inset
12560
12561 ] このレイアウト中の脆弱なコマンドが
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566
12567 \backslash
12568 protect
12569 \end_layout
12570
12571 \end_inset
12572
12573 されるべきか否か(註:これはこのコマンド自体が
12574 \begin_inset Flex Code
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578
12579 \backslash
12580 protect
12581 \end_layout
12582
12583 \end_inset
12584
12585 されるべきかでは
12586 \emph on
12587 ありません
12588 \emph default
12589 )。
12590 \end_layout
12591
12592 \begin_layout Description
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 Newline
12598 \end_layout
12599
12600 \end_inset
12601
12602  [
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 0
12608 \end_layout
12609
12610 \end_inset
12611
12612 ,
12613 \begin_inset space \thinspace{}
12614 \end_inset
12615
12616
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621
12622 \emph on
12623 1
12624 \end_layout
12625
12626 \end_inset
12627
12628 ] 新規行を\SpecialChar LaTeX
12629 の新規行(
12630 \begin_inset Flex Code
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634
12635 \backslash
12636
12637 \backslash
12638
12639 \end_layout
12640
12641 \end_inset
12642
12643 )に変換するか否か。\SpecialChar LyX
12644 中で\SpecialChar LaTeX
12645 編集をやりやすくするために、変換は無効にすることができます。
12646 \end_layout
12647
12648 \begin_layout Description
12649 \begin_inset Flex Code
12650 status collapsed
12651
12652 \begin_layout Plain Layout
12653 NextNoIndent
12654 \end_layout
12655
12656 \end_inset
12657
12658  [
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663
12664 \emph on
12665 0
12666 \end_layout
12667
12668 \end_inset
12669
12670 ,
12671 \begin_inset space \thinspace{}
12672 \end_inset
12673
12674
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 1
12680 \end_layout
12681
12682 \end_inset
12683
12684 ] 次の段落に最初の行の行頭下げを許すか否か。
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 1
12690 \end_layout
12691
12692 \end_inset
12693
12694 は許可しないことを意味し、
12695 \begin_inset Flex Code
12696 status collapsed
12697
12698 \begin_layout Plain Layout
12699 0
12700 \end_layout
12701
12702 \end_inset
12703
12704 は望むならば行頭下げできることを意味します。
12705 \end_layout
12706
12707 \begin_layout Description
12708 \begin_inset Flex Code
12709 status collapsed
12710
12711 \begin_layout Plain Layout
12712 ObsoletedBy
12713 \end_layout
12714
12715 \end_inset
12716
12717  [
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722 <名称>
12723 \end_layout
12724
12725 \end_inset
12726
12727 ] このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
12728 \end_layout
12729
12730 \begin_layout Description
12731 \begin_inset Flex Code
12732 status collapsed
12733
12734 \begin_layout Plain Layout
12735 ParagraphGroup
12736 \end_layout
12737
12738 \end_inset
12739
12740  [
12741 \begin_inset Flex Code
12742 status collapsed
12743
12744 \begin_layout Plain Layout
12745 0
12746 \end_layout
12747
12748 \end_inset
12749
12750 ,
12751 \begin_inset space \thinspace{}
12752 \end_inset
12753
12754
12755 \begin_inset Flex Code
12756 status collapsed
12757
12758 \begin_layout Plain Layout
12759 1
12760 \end_layout
12761
12762 \end_inset
12763
12764
12765 \lang english
12766 Determines whether consecutive pragraphs of the same type are treated as
12767  belonging together.
12768  This has the effect that the 
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773
12774 \lang english
12775 GuiLabel
12776 \end_layout
12777
12778 \end_inset
12779
12780  is only printed once before such a group.
12781  By default, this is true for 
12782 \begin_inset Flex Code
12783 status collapsed
12784
12785 \begin_layout Plain Layout
12786
12787 \lang english
12788 LaTeXType
12789 \end_layout
12790
12791 \end_inset
12792
12793  
12794 \begin_inset Flex Code
12795 status collapsed
12796
12797 \begin_layout Plain Layout
12798
12799 \lang english
12800 Environment
12801 \end_layout
12802
12803 \end_inset
12804
12805  and 
12806 \begin_inset Flex Code
12807 status collapsed
12808
12809 \begin_layout Plain Layout
12810
12811 \lang english
12812 Bib_Environment
12813 \end_layout
12814
12815 \end_inset
12816
12817  and false for all other types.
12818 \end_layout
12819
12820 \begin_layout Description
12821 \begin_inset Flex Code
12822 status collapsed
12823
12824 \begin_layout Plain Layout
12825 ParbreakIsNewline
12826 \end_layout
12827
12828 \end_inset
12829
12830  [
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835
12836 \emph on
12837 0
12838 \end_layout
12839
12840 \end_inset
12841
12842 ,
12843 \begin_inset space \thinspace{}
12844 \end_inset
12845
12846
12847 \begin_inset Flex Code
12848 status collapsed
12849
12850 \begin_layout Plain Layout
12851 1
12852 \end_layout
12853
12854 \end_inset
12855
12856 ] \SpecialChar LaTeX
12857 出力中で、段落を空行ではなく、改行で区切るよう指定します。
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862 PassThru 1
12863 \end_layout
12864
12865 \end_inset
12866
12867 と併用すれば、(\SpecialChar TeX
12868 コードを使用したときのように)テキストエディタをエミュレートすることができます。
12869 \end_layout
12870
12871 \begin_layout Description
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 ParIndent
12877 \end_layout
12878
12879 \end_inset
12880
12881  [
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 文字列=""
12887 \end_layout
12888
12889 \end_inset
12890
12891 ] 段落の最初の行の行頭下げ。レイアウトによっては
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 Parindent
12897 \end_layout
12898
12899 \end_inset
12900
12901 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
12902 \begin_inset Flex Code
12903 status collapsed
12904
12905 \begin_layout Plain Layout
12906 NextNoIndent
12907 \end_layout
12908
12909 \end_inset
12910
12911 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 Parindent
12917 \end_layout
12918
12919 \end_inset
12920
12921 ではなく、この環境の
12922 \begin_inset Flex Code
12923 status collapsed
12924
12925 \begin_layout Plain Layout
12926 Parindent
12927 \end_layout
12928
12929 \end_inset
12930
12931 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
12932 \end_layout
12933
12934 \begin_layout Description
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939 ParSep
12940 \end_layout
12941
12942 \end_inset
12943
12944  [
12945 \begin_inset Flex Code
12946 status collapsed
12947
12948 \begin_layout Plain Layout
12949 浮動小数点型=0
12950 \end_layout
12951
12952 \end_inset
12953
12954 ] このレイアウトの2段落間の垂直余白。
12955 \end_layout
12956
12957 \begin_layout Description
12958 \begin_inset Flex Code
12959 status collapsed
12960
12961 \begin_layout Plain Layout
12962 Parskip
12963 \end_layout
12964
12965 \end_inset
12966
12967  [
12968 \begin_inset Flex Code
12969 status collapsed
12970
12971 \begin_layout Plain Layout
12972 浮動小数点型=0
12973 \end_layout
12974
12975 \end_inset
12976
12977 ] \SpecialChar LyX
12978 では、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ」を選
12979 択した際には、\SpecialChar LaTeX
12980 型「段落」レイアウトの
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 ParIndent
12986 \end_layout
12987
12988 \end_inset
12989
12990 は無視され、すべての段落はこの
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 Parskip
12996 \end_layout
12997
12998 \end_inset
12999
13000 引数分だけ引き離されます。垂直余白は、
13001 \begin_inset Flex Code
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 DefaultHeight
13006 \end_layout
13007
13008 \end_inset
13009
13010 を標準フォントでの1行の高さとすると、
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 Parskipの値
13016 \end_layout
13017
13018 \end_inset
13019
13020
13021 \begin_inset Formula $\times$
13022 \end_inset
13023
13024
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 DefaultHeight
13030 \end_layout
13031
13032 \end_inset
13033
13034 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
13035 \end_layout
13036
13037 \begin_layout Description
13038 \begin_inset Flex Code
13039 status collapsed
13040
13041 \begin_layout Plain Layout
13042 PassThru
13043 \end_layout
13044
13045 \end_inset
13046
13047  [
13048 \emph on
13049
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 0
13055 \end_layout
13056
13057 \end_inset
13058
13059
13060 \emph default
13061 ,
13062 \begin_inset space \thinspace{}
13063 \end_inset
13064
13065
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 1
13071 \end_layout
13072
13073 \end_inset
13074
13075 ] この段落の内容が、\SpecialChar LaTeX
13076 が必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
13077 \end_layout
13078
13079 \begin_layout Description
13080 \begin_inset Flex Code
13081 status collapsed
13082
13083 \begin_layout Plain Layout
13084 PassThruChars
13085 \end_layout
13086
13087 \end_inset
13088
13089  [
13090 \begin_inset Flex Code
13091 status collapsed
13092
13093 \begin_layout Plain Layout
13094 文字列
13095 \end_layout
13096
13097 \end_inset
13098
13099 ]
13100 \family typewriter
13101  
13102 \family default
13103 \lang english
13104 Defines individual characters that should be output in raw form, meaning
13105  without special translations that \SpecialChar LaTeX
13106  would require.
13107 \end_layout
13108
13109 \begin_layout Description
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114 Preamble
13115 \end_layout
13116
13117 \end_inset
13118
13119  この様式が使用されたときに、\SpecialChar LaTeX
13120 プリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用します。「
13121 \begin_inset Flex Code
13122 status collapsed
13123
13124 \begin_layout Plain Layout
13125 EndPreamble
13126 \end_layout
13127
13128 \end_inset
13129
13130 」で閉じる必要があります。
13131 \end_layout
13132
13133 \begin_layout Description
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138 RefPrefix
13139 \end_layout
13140
13141 \end_inset
13142
13143  [
13144 \begin_inset Flex Code
13145 status collapsed
13146
13147 \begin_layout Plain Layout
13148 文字列
13149 \end_layout
13150
13151 \end_inset
13152
13153 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
13154 \end_layout
13155
13156 \begin_layout Description
13157 \begin_inset Flex Code
13158 status collapsed
13159
13160 \begin_layout Plain Layout
13161 Requires
13162 \end_layout
13163
13164 \end_inset
13165
13166  [
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 文字列
13172 \end_layout
13173
13174 \end_inset
13175
13176 ] この様式が機能
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 文字列
13182 \end_layout
13183
13184 \end_inset
13185
13186 を必要とするかどうか
13187 \lang english
13188 (see 
13189 \lang japanese
13190
13191 \begin_inset CommandInset ref
13192 LatexCommand ref
13193 reference "chap:関数一覧"
13194
13195 \end_inset
13196
13197
13198 \lang english
13199  for the list of features).
13200  If you require a package with specific options, you can additionally use
13201  
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206
13207 \lang english
13208 PackageOptions
13209 \end_layout
13210
13211 \end_inset
13212
13213  as a general text class parameter (see 
13214 \lang japanese
13215
13216 \begin_inset CommandInset ref
13217 LatexCommand ref
13218 reference "subsec:汎用テキストクラスパラメータ"
13219
13220 \end_inset
13221
13222 )。
13223 \end_layout
13224
13225 \begin_layout Description
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230 ResetArgs
13231 \end_layout
13232
13233 \end_inset
13234
13235  [
13236 \begin_inset Flex Code
13237 status collapsed
13238
13239 \begin_layout Plain Layout
13240
13241 \emph on
13242 0
13243 \end_layout
13244
13245 \end_inset
13246
13247 ,
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 1
13253 \end_layout
13254
13255 \end_inset
13256
13257 ] (
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262 Argument
13263 \end_layout
13264
13265 \end_inset
13266
13267 タグで定義された)この様式の\SpecialChar LaTeX
13268 引数をリセットします。これは、様式を
13269 \begin_inset Flex Code
13270 status collapsed
13271
13272 \begin_layout Plain Layout
13273 CopyStyle
13274 \end_layout
13275
13276 \end_inset
13277
13278 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
13279 \end_layout
13280
13281 \begin_layout Description
13282 \begin_inset Flex Code
13283 status collapsed
13284
13285 \begin_layout Plain Layout
13286 RightDelim
13287 \end_layout
13288
13289 \end_inset
13290
13291  [
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296 文字列
13297 \end_layout
13298
13299 \end_inset
13300
13301 ] 様式の内容の最後に置かれる文字列。出力中の改行は
13302 \begin_inset Flex Code
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 <br/>
13307 \end_layout
13308
13309 \end_inset
13310
13311 で指示できます。
13312 \end_layout
13313
13314 \begin_layout Description
13315 \begin_inset Flex Code
13316 status collapsed
13317
13318 \begin_layout Plain Layout
13319 RightMargin
13320 \end_layout
13321
13322 \end_inset
13323
13324  [
13325 \begin_inset Flex Code
13326 status collapsed
13327
13328 \begin_layout Plain Layout
13329 文字列=""
13330 \end_layout
13331
13332 \end_inset
13333
13334
13335 \begin_inset Flex Code
13336 status collapsed
13337
13338 \begin_layout Plain Layout
13339 LeftMargin
13340 \end_layout
13341
13342 \end_inset
13343
13344 に同様。
13345 \end_layout
13346
13347 \begin_layout Description
13348 \begin_inset Flex Code
13349 status collapsed
13350
13351 \begin_layout Plain Layout
13352 Spacing
13353 \end_layout
13354
13355 \end_inset
13356
13357  [
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362
13363 \emph on
13364 single
13365 \end_layout
13366
13367 \end_inset
13368
13369
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 onehalf
13375 \end_layout
13376
13377 \end_inset
13378
13379
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384 double
13385 \end_layout
13386
13387 \end_inset
13388
13389
13390 \begin_inset Flex Code
13391 status collapsed
13392
13393 \begin_layout Plain Layout
13394 other
13395 \begin_inset space ~
13396 \end_inset
13397
13398 <
13399 \emph on
13400
13401 \emph default
13402 >
13403 \end_layout
13404
13405 \end_inset
13406
13407 ]
13408 \lang english
13409  
13410 \lang japanese
13411 これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
13412 \begin_inset Flex Code
13413 status collapsed
13414
13415 \begin_layout Plain Layout
13416 single
13417 \end_layout
13418
13419 \end_inset
13420
13421
13422 \begin_inset Flex Code
13423 status collapsed
13424
13425 \begin_layout Plain Layout
13426 onehalf
13427 \end_layout
13428
13429 \end_inset
13430
13431
13432 \begin_inset Flex Code
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 double
13437 \end_layout
13438
13439 \end_inset
13440
13441 は、それぞれ乗数1・1.25・1.667に対応します。引数
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446 other
13447 \end_layout
13448
13449 \end_inset
13450
13451 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
13452 \begin_inset Flex Code
13453 status collapsed
13454
13455 \begin_layout Plain Layout
13456 Spacing
13457 \end_layout
13458
13459 \end_inset
13460
13461 は、\SpecialChar LaTeX
13462 パッケージ
13463 \begin_inset Flex Code
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467 setspace
13468 \end_layout
13469
13470 \end_inset
13471
13472 パッケージを使用した、限定的な\SpecialChar LaTeX
13473 コードを生成することを意味することにご注意ください。
13474 \end_layout
13475
13476 \begin_layout Description
13477 \begin_inset Flex Code
13478 status collapsed
13479
13480 \begin_layout Plain Layout
13481 Spellcheck
13482 \end_layout
13483
13484 \end_inset
13485
13486  [
13487 \begin_inset Flex Code
13488 status collapsed
13489
13490 \begin_layout Plain Layout
13491 0
13492 \end_layout
13493
13494 \end_inset
13495
13496 ,
13497 \begin_inset space \thinspace{}
13498 \end_inset
13499
13500
13501 \begin_inset Flex Code
13502 status collapsed
13503
13504 \begin_layout Plain Layout
13505 1
13506 \end_layout
13507
13508 \end_inset
13509
13510 ] この様式の段落をスペルチェックするか否か。既定値は真です。
13511 \end_layout
13512
13513 \begin_layout Description
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 TextFont
13519 \end_layout
13520
13521 \end_inset
13522
13523  本文に使うフォント。
13524 \begin_inset CommandInset ref
13525 LatexCommand ref
13526 reference "subsec:フォント指定"
13527
13528 \end_inset
13529
13530 参照。
13531 \end_layout
13532
13533 \begin_layout Description
13534 \begin_inset Flex Code
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 TocLevel
13539 \end_layout
13540
13541 \end_inset
13542
13543  [
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548 整数型=3
13549 \end_layout
13550
13551 \end_inset
13552
13553 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
13554 \end_layout
13555
13556 \begin_layout Description
13557 \begin_inset Flex Code
13558 status collapsed
13559
13560 \begin_layout Plain Layout
13561 ToggleIndent
13562 \end_layout
13563
13564 \end_inset
13565
13566  [
13567 \emph on
13568
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 default
13574 \end_layout
13575
13576 \end_inset
13577
13578
13579 \emph default
13580
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 always
13586 \end_layout
13587
13588 \end_inset
13589
13590
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595 never
13596 \end_layout
13597
13598 \end_inset
13599
13600
13601 \lang english
13602 This tag determines whether the first line indentation of this paragraph
13603  can be toggled via the Paragraph settings dialog.
13604  If 
13605 \emph on
13606
13607 \begin_inset Flex Code
13608 status collapsed
13609
13610 \begin_layout Plain Layout
13611
13612 \emph off
13613 \lang english
13614 default
13615 \end_layout
13616
13617 \end_inset
13618
13619
13620 \emph default
13621  is set, indentation can be toggled if the document settings use 
13622 \begin_inset Quotes eld
13623 \end_inset
13624
13625 indent
13626 \begin_inset Quotes erd
13627 \end_inset
13628
13629  paragraph style, with 
13630 \begin_inset Flex Code
13631 status collapsed
13632
13633 \begin_layout Plain Layout
13634
13635 \lang english
13636 always
13637 \end_layout
13638
13639 \end_inset
13640
13641 , indentation can always be toggled, notwithstanding the document settings,
13642  with 
13643 \begin_inset Flex Code
13644 status collapsed
13645
13646 \begin_layout Plain Layout
13647
13648 \lang english
13649 never
13650 \end_layout
13651
13652 \end_inset
13653
13654 , indentation can never be toggled.
13655 \end_layout
13656
13657 \begin_layout Description
13658 \begin_inset Flex Code
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 TopSep
13663 \end_layout
13664
13665 \end_inset
13666
13667  [
13668 \begin_inset Flex Code
13669 status collapsed
13670
13671 \begin_layout Plain Layout
13672 浮動小数点型=0
13673 \end_layout
13674
13675 \end_inset
13676
13677 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
13678 の最大値がとられます。
13679 \end_layout
13680
13681 \begin_layout Subsection
13682 段落様式の国際化
13683 \begin_inset CommandInset label
13684 LatexCommand label
13685 name "subsec:段落様式の国際化"
13686
13687 \end_inset
13688
13689
13690 \end_layout
13691
13692 \begin_layout Standard
13693 \SpecialChar LyX
13694 は、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用されませ
13695 んでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
13696 \lang french
13697 Théorème
13698 \lang japanese
13699  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
13700 \end_layout
13701
13702 \begin_layout Standard
13703 もし
13704 \begin_inset Flex MenuItem
13705 status collapsed
13706
13707 \begin_layout Plain Layout
13708 Style
13709 \end_layout
13710
13711 \end_inset
13712
13713 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
13714 \begin_inset Flex MenuItem
13715 status collapsed
13716
13717 \begin_layout Plain Layout
13718 LangPreamble
13719 \end_layout
13720
13721 \end_inset
13722
13723
13724 \begin_inset Flex MenuItem
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 BabelPreamble
13729 \end_layout
13730
13731 \end_inset
13732
13733 を使用することができます。以下の抜粋(
13734 \begin_inset Flex MenuItem
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 theorems-ams.inc
13739 \end_layout
13740
13741 \end_inset
13742
13743 より)は、これがどう動作するかを示すものです。
13744 \end_layout
13745
13746 \begin_layout LyX-Code
13747 Preamble
13748 \begin_inset Separator parbreak
13749 \end_inset
13750
13751
13752 \end_layout
13753
13754 \begin_deeper
13755 \begin_layout LyX-Code
13756   
13757 \backslash
13758 theoremstyle{remark}
13759 \end_layout
13760
13761 \begin_layout LyX-Code
13762   
13763 \backslash
13764 newtheorem{claim}[thm]{
13765 \backslash
13766 protect
13767 \backslash
13768 claimname}
13769 \end_layout
13770
13771 \begin_layout LyX-Code
13772 EndPreamble
13773 \end_layout
13774
13775 \begin_layout LyX-Code
13776 LangPreamble
13777 \end_layout
13778
13779 \begin_layout LyX-Code
13780   
13781 \backslash
13782 providecommand{
13783 \backslash
13784 claimname}{_(Claim)}
13785 \end_layout
13786
13787 \begin_layout LyX-Code
13788 EndLangPreamble
13789 \end_layout
13790
13791 \begin_layout LyX-Code
13792 BabelPreamble
13793 \end_layout
13794
13795 \begin_layout LyX-Code
13796     
13797 \backslash
13798 addto
13799 \backslash
13800 captions$$lang{
13801 \backslash
13802 renewcommand{
13803 \backslash
13804 claimname}{_(Claim)}}
13805 \end_layout
13806
13807 \begin_layout LyX-Code
13808 EndBabelPreamble
13809 \end_layout
13810
13811 \end_deeper
13812 \begin_layout Standard
13813 原則として、
13814 \begin_inset Flex MenuItem
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 LangPreamble
13819 \end_layout
13820
13821 \end_inset
13822
13823
13824 \begin_inset Flex MenuItem
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828 BabelPreamble
13829 \end_layout
13830
13831 \end_inset
13832
13833 タグ内には、有効な\SpecialChar LaTeX
13834 コードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための鍵となるの
13835 は、\SpecialChar LaTeX
13836 コマンド
13837 \begin_inset Flex Code
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841
13842 \backslash
13843 claimname
13844 \end_layout
13845
13846 \end_inset
13847
13848 とその
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853
13854 \backslash
13855 newtheorem
13856 \end_layout
13857
13858 \end_inset
13859
13860 中での用い方です。
13861 \end_layout
13862
13863 \begin_layout Standard
13864 \begin_inset Flex Code
13865 status collapsed
13866
13867 \begin_layout Plain Layout
13868 LangPreamble
13869 \end_layout
13870
13871 \end_inset
13872
13873 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
13874 \begin_inset Flex Code
13875 status collapsed
13876
13877 \begin_layout Plain Layout
13878 Preamble
13879 \end_layout
13880
13881 \end_inset
13882
13883 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 _()
13889 \end_layout
13890
13891 \end_inset
13892
13893 が使用されていることです。これは、\SpecialChar LyX
13894 が\SpecialChar LaTeX
13895 出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
13896 \end_layout
13897
13898 \begin_layout Standard
13899 \begin_inset Flex Code
13900 status collapsed
13901
13902 \begin_layout Plain Layout
13903 BabelPreamble
13904 \end_layout
13905
13906 \end_inset
13907
13908 タグは、複数言語文書をサポートし、
13909 \begin_inset Flex Code
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 babel
13914 \end_layout
13915
13916 \end_inset
13917
13918 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
13919 の場合には、
13920 \begin_inset Flex Code
13921 status collapsed
13922
13923 \begin_layout Plain Layout
13924 _()
13925 \end_layout
13926
13927 \end_inset
13928
13929 の引数は、その当該言語への翻訳で置き換えられ、
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 $$lang
13935 \end_layout
13936
13937 \end_inset
13938
13939 は言語名(babelパッケージで使用されるもの)で置き換えられます。
13940 \end_layout
13941
13942 \begin_layout Standard
13943 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
13944 \end_layout
13945
13946 \begin_layout LyX-Code
13947
13948 \backslash
13949 addto
13950 \backslash
13951 captionsfrench{
13952 \backslash
13953 renewcommand{
13954 \backslash
13955 claimname}{Affirmation}}
13956 \begin_inset Newline newline
13957 \end_inset
13958
13959
13960 \backslash
13961 addto
13962 \backslash
13963 captionsngerman{
13964 \backslash
13965 renewcommand{
13966 \backslash
13967 claimname}{Behauptung}}
13968 \begin_inset Newline newline
13969 \end_inset
13970
13971
13972 \backslash
13973 providecommand{
13974 \backslash
13975 claimname}{Behauptung}
13976 \end_layout
13977
13978 \begin_layout Standard
13979 それから、\SpecialChar LaTeX
13980
13981 \begin_inset Flex Code
13982 status collapsed
13983
13984 \begin_layout Plain Layout
13985 babel
13986 \end_layout
13987
13988 \end_inset
13989
13990 は協力して、出力に正しい文字列を生成します。
13991 \end_layout
13992
13993 \begin_layout Standard
13994 ここで注意しておくべき一つの重要な点は、翻訳は、
13995 \begin_inset Flex Code
13996 status collapsed
13997
13998 \begin_layout Plain Layout
13999 layouttranslations
14000 \end_layout
14001
14002 \end_inset
14003
14004 ファイルを通じて、\SpecialChar LyX
14005 自身によって提供されるということです。つまり、ユーザー作成のレイアウトファイルに入力された文字列は、
14006 \begin_inset Flex Code
14007 status collapsed
14008
14009 \begin_layout Plain Layout
14010 layouttranslations
14011 \end_layout
14012
14013 \end_inset
14014
14015 ファイルをそれに応じて変更しない限り、\SpecialChar LyX
14016 の国際化ルーチンでは取り扱われないので、
14017 \begin_inset Flex MenuItem
14018 status collapsed
14019
14020 \begin_layout Plain Layout
14021 LangPreamble
14022 \end_layout
14023
14024 \end_inset
14025
14026
14027 \begin_inset Flex MenuItem
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 BabelPreamble
14032 \end_layout
14033
14034 \end_inset
14035
14036 は、事実上、\SpecialChar LyX
14037 とともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的に\SpecialChar LyX
14038 に同梱させようとい
14039 う意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。\SpecialChar LyX
14040 が提供する段落様式の翻訳は、マイナー更新(例えば2.1.x版から2.1.y版
14041 )では変更されないことに注意してください。しかしながら、メジャー更新(例えば2.0.x版から2.1.y版)では、新しい翻訳や修正が導入される可能性は大いにあります。
14042 \end_layout
14043
14044 \begin_layout Subsection
14045 フロート
14046 \begin_inset CommandInset label
14047 LatexCommand label
14048 name "subsec:フロート"
14049
14050 \end_inset
14051
14052
14053 \end_layout
14054
14055 \begin_layout Standard
14056 \SpecialChar LyX
14057 第1.3.0版以来、テキストクラス自体の中でフロート(
14058 \begin_inset Flex MenuItem
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 figure
14063 \end_layout
14064
14065 \end_inset
14066
14067
14068 \begin_inset Flex MenuItem
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 table
14073 \end_layout
14074
14075 \end_inset
14076
14077 ・\SpecialChar ldots
14078 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
14079 \begin_inset Flex Code
14080 status collapsed
14081
14082 \begin_layout Plain Layout
14083 stdfloats.inc
14084 \end_layout
14085
14086 \end_inset
14087
14088 ファイルに含まれているので、作業中のレイアウトファイルに
14089 \end_layout
14090
14091 \begin_layout LyX-Code
14092 Input stdfloats.inc
14093 \end_layout
14094
14095 \begin_layout Standard
14096 と加えるだけで済むことも多いでしょう。\SpecialChar LyX
14097 に同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つであり
14098 ましょう。
14099 \end_layout
14100
14101 \begin_layout Description
14102 \begin_inset Flex Code
14103 status collapsed
14104
14105 \begin_layout Plain Layout
14106 AllowedPlacement
14107 \end_layout
14108
14109 \end_inset
14110
14111  [
14112 \begin_inset Flex Code
14113 status collapsed
14114
14115 \begin_layout Plain Layout
14116 文字列
14117 \end_layout
14118
14119 \end_inset
14120
14121 =!htbpH] 
14122 \lang english
14123 Allowed placement options for this float type.
14124  The value is a string of placement characters.
14125  Possible characters include: 
14126 \emph on
14127 h
14128 \emph default
14129  (
14130 \begin_inset Quotes eld
14131 \end_inset
14132
14133 here if possible
14134 \begin_inset Quotes erd
14135 \end_inset
14136
14137 ), 
14138 \emph on
14139 t
14140 \emph default
14141  (
14142 \begin_inset Quotes eld
14143 \end_inset
14144
14145 top of page
14146 \begin_inset Quotes erd
14147 \end_inset
14148
14149 ), 
14150 \emph on
14151 b
14152 \emph default
14153  (
14154 \begin_inset Quotes eld
14155 \end_inset
14156
14157 bottom of page
14158 \begin_inset Quotes erd
14159 \end_inset
14160
14161 ), 
14162 \emph on
14163 p
14164 \emph default
14165  (
14166 \begin_inset Quotes eld
14167 \end_inset
14168
14169 page of floats
14170 \begin_inset Quotes erd
14171 \end_inset
14172
14173 ), 
14174 \emph on
14175 H
14176 \emph default
14177  (
14178 \begin_inset Quotes eld
14179 \end_inset
14180
14181 here definitely
14182 \begin_inset Quotes erd
14183 \end_inset
14184
14185 ) and 
14186 \emph on
14187 !
14188 \emph default
14189  (
14190 \begin_inset Quotes eld
14191 \end_inset
14192
14193 ignore LaTeX rules
14194 \begin_inset Quotes erd
14195 \end_inset
14196
14197 ).
14198  The order of the characters in the string does not matter.
14199  If no placement options are allowed, use the string 
14200 \emph on
14201 none
14202 \emph default
14203 .
14204 \end_layout
14205
14206 \begin_layout Description
14207 \begin_inset Flex Code
14208 status collapsed
14209
14210 \begin_layout Plain Layout
14211 AllowsSideways
14212 \end_layout
14213
14214 \end_inset
14215
14216  [
14217 \begin_inset Flex Code
14218 status collapsed
14219
14220 \begin_layout Plain Layout
14221 0
14222 \end_layout
14223
14224 \end_inset
14225
14226 ,
14227 \begin_inset space \thinspace{}
14228 \end_inset
14229
14230
14231 \emph on
14232
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237 1
14238 \end_layout
14239
14240 \end_inset
14241
14242
14243 \emph default
14244
14245 \lang english
14246 Defines whether the float allows to be rotated via the \SpecialChar LaTeX
14247 -package 
14248 \family typewriter
14249 rotfloat
14250 \family default
14251  (sidewaysfloat).
14252  Set to 
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257
14258 \lang english
14259 0
14260 \end_layout
14261
14262 \end_inset
14263
14264  if the float does not support this feature.
14265 \end_layout
14266
14267 \begin_layout Description
14268 \begin_inset Flex Code
14269 status collapsed
14270
14271 \begin_layout Plain Layout
14272 AllowsWide
14273 \end_layout
14274
14275 \end_inset
14276
14277  [
14278 \begin_inset Flex Code
14279 status collapsed
14280
14281 \begin_layout Plain Layout
14282 0
14283 \end_layout
14284
14285 \end_inset
14286
14287 ,
14288 \begin_inset space \thinspace{}
14289 \end_inset
14290
14291
14292 \emph on
14293
14294 \begin_inset Flex Code
14295 status collapsed
14296
14297 \begin_layout Plain Layout
14298 1
14299 \end_layout
14300
14301 \end_inset
14302
14303
14304 \emph default
14305
14306 \lang english
14307 Defines whether the float has a starred variant that spans columns in a
14308  two column paragraph.
14309  Set to 
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314
14315 \lang english
14316 0
14317 \end_layout
14318
14319 \end_inset
14320
14321  if the float does not support this feature.
14322 \end_layout
14323
14324 \begin_layout Description
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 Extension
14330 \end_layout
14331
14332 \end_inset
14333
14334  [
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 文字列
14340 \end_layout
14341
14342 \end_inset
14343
14344 =
14345 \begin_inset Quotes erd
14346 \end_inset
14347
14348
14349 \begin_inset Quotes erd
14350 \end_inset
14351
14352 ] 図などのリストを含む外部ファイルのファイル拡張子名。\SpecialChar LaTeX
14353 がキャプションを書き込むファイルです。
14354 \end_layout
14355
14356 \begin_layout Description
14357 \begin_inset Flex Code
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 GuiName
14362 \end_layout
14363
14364 \end_inset
14365
14366  [
14367 \begin_inset Flex Code
14368 status collapsed
14369
14370 \begin_layout Plain Layout
14371 文字列
14372 \end_layout
14373
14374 \end_inset
14375
14376 =
14377 \begin_inset Quotes erd
14378 \end_inset
14379
14380
14381 \begin_inset Quotes erd
14382 \end_inset
14383
14384 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
14385 \end_layout
14386
14387 \begin_layout Description
14388 \begin_inset Flex Code
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392 HTML*
14393 \end_layout
14394
14395 \end_inset
14396
14397  これらは、XHTML出力で使用されます。
14398 \begin_inset CommandInset ref
14399 LatexCommand ref
14400 reference "sec:XHTML出力のタグ"
14401
14402 \end_inset
14403
14404 をご覧ください。
14405 \end_layout
14406
14407 \begin_layout Description
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412 IsPredefined
14413 \end_layout
14414
14415 \end_inset
14416
14417  [
14418 \begin_inset Flex Code
14419 status collapsed
14420
14421 \begin_layout Plain Layout
14422
14423 \emph on
14424 0
14425 \end_layout
14426
14427 \end_inset
14428
14429 ,
14430 \begin_inset space \thinspace{}
14431 \end_inset
14432
14433
14434 \begin_inset Flex Code
14435 status collapsed
14436
14437 \begin_layout Plain Layout
14438 1
14439 \end_layout
14440
14441 \end_inset
14442
14443 ] フロートがドキュメントクラス中に既に定義されているのか、あるいは\SpecialChar LaTeX
14444 パッケージ
14445 \begin_inset Flex Code
14446 status collapsed
14447
14448 \begin_layout Plain Layout
14449 float
14450 \end_layout
14451
14452 \end_inset
14453
14454 を読み込む必要があり、そのファイル内のものを使用して、オン・ザ・フライで定義するかを示します。既定は
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459 0
14460 \end_layout
14461
14462 \end_inset
14463
14464 で、この場合
14465 \begin_inset Flex Code
14466 status collapsed
14467
14468 \begin_layout Plain Layout
14469 float
14470 \end_layout
14471
14472 \end_inset
14473
14474 を使用します。\SpecialChar LaTeX
14475 ドキュメントクラス中に既に定義されているときには、
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480 0
14481 \end_layout
14482
14483 \end_inset
14484
14485 に設定しなくてはなりません。
14486 \end_layout
14487
14488 \begin_layout Description
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493 ListCommand
14494 \end_layout
14495
14496 \end_inset
14497
14498  [
14499 \begin_inset Flex Code
14500 status collapsed
14501
14502 \begin_layout Plain Layout
14503 文字列
14504 \end_layout
14505
14506 \end_inset
14507
14508 =
14509 \begin_inset Quotes erd
14510 \end_inset
14511
14512
14513 \begin_inset Quotes erd
14514 \end_inset
14515
14516 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
14517 \backslash
14518 」は書きません。
14519 \begin_inset Flex Code
14520 status collapsed
14521
14522 \begin_layout Plain Layout
14523 NeedsFloatPkg
14524 \end_layout
14525
14526 \end_inset
14527
14528 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
14529 \emph on
14530 必ず
14531 \emph default
14532 指定しなくてはなりません。
14533 \begin_inset Flex Code
14534 status collapsed
14535
14536 \begin_layout Plain Layout
14537 NeedsFloatPkg
14538 \end_layout
14539
14540 \end_inset
14541
14542 が真の時は、標準的な方法が存在するので、これは無視されます。
14543 \end_layout
14544
14545 \begin_layout Description
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 ListName
14551 \end_layout
14552
14553 \end_inset
14554
14555  [
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560 文字列
14561 \end_layout
14562
14563 \end_inset
14564
14565 =
14566 \begin_inset Quotes erd
14567 \end_inset
14568
14569
14570 \begin_inset Quotes erd
14571 \end_inset
14572
14573 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。\SpecialChar LyX
14574 中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La\SpecialChar TeX
14575 に渡さ
14576 れ、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
14577 \end_layout
14578
14579 \begin_layout Description
14580 \begin_inset Flex Code
14581 status collapsed
14582
14583 \begin_layout Plain Layout
14584 NumberWithin
14585 \end_layout
14586
14587 \end_inset
14588
14589  [
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 文字列
14595 \end_layout
14596
14597 \end_inset
14598
14599 =
14600 \begin_inset Quotes erd
14601 \end_inset
14602
14603
14604 \begin_inset Quotes erd
14605 \end_inset
14606
14607 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。例えば、
14608 \begin_inset Flex Code
14609 status collapsed
14610
14611 \begin_layout Plain Layout
14612 NumberWithin
14613 \end_layout
14614
14615 \end_inset
14616
14617 が「
14618 \begin_inset Flex Code
14619 status collapsed
14620
14621 \begin_layout Plain Layout
14622 chapter
14623 \end_layout
14624
14625 \end_inset
14626
14627 」に指定されていれば、フロートは章ごとに番号が振り直されます。
14628 \end_layout
14629
14630 \begin_layout Description
14631 \begin_inset Flex Code
14632 status collapsed
14633
14634 \begin_layout Plain Layout
14635 Placement
14636 \end_layout
14637
14638 \end_inset
14639
14640  [
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 文字列
14646 \end_layout
14647
14648 \end_inset
14649
14650 =
14651 \begin_inset Quotes erd
14652 \end_inset
14653
14654
14655 \begin_inset Quotes erd
14656 \end_inset
14657
14658 ] このクラスのフロートの既定の配置法。文字列は、標準的な\SpecialChar LaTeX
14659 表記に従い、
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 t
14665 \end_layout
14666
14667 \end_inset
14668
14669 ならば上部(top)、
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 b
14675 \end_layout
14676
14677 \end_inset
14678
14679 ならば下部(bottom)、
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 p
14685 \end_layout
14686
14687 \end_inset
14688
14689 ならばページ(page)、
14690 \begin_inset Flex Code
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694 h
14695 \end_layout
14696
14697 \end_inset
14698
14699 ならばここ(here)を表します
14700 \begin_inset Foot
14701 status collapsed
14702
14703 \begin_layout Plain Layout
14704 \SpecialChar LaTeX
14705 同様、文字列中でのこれらの文字の順序は関係ありません。
14706 \end_layout
14707
14708 \end_inset
14709
14710 。これらの他に新しい型
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 H
14716 \end_layout
14717
14718 \end_inset
14719
14720 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 H
14726 \end_layout
14727
14728 \end_inset
14729
14730 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
14731 に「
14732 \begin_inset Flex Code
14733 status collapsed
14734
14735 \begin_layout Plain Layout
14736 tbp
14737 \end_layout
14738
14739 \end_inset
14740
14741 」を指定してください。
14742 \end_layout
14743
14744 \begin_layout Description
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 RefPrefix
14750 \end_layout
14751
14752 \end_inset
14753
14754  [
14755 \begin_inset Flex Code
14756 status collapsed
14757
14758 \begin_layout Plain Layout
14759 文字列
14760 \end_layout
14761
14762 \end_inset
14763
14764 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
14765 \begin_inset Flex Code
14766 status collapsed
14767
14768 \begin_layout Plain Layout
14769 RefPrefix
14770 \end_layout
14771
14772 \end_inset
14773
14774 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
14775 \end_layout
14776
14777 \begin_layout Description
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782 Style
14783 \end_layout
14784
14785 \end_inset
14786
14787  [
14788 \begin_inset Flex Code
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 文字列
14793 \end_layout
14794
14795 \end_inset
14796
14797 =
14798 \begin_inset Quotes erd
14799 \end_inset
14800
14801
14802 \begin_inset Quotes erd
14803 \end_inset
14804
14805
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810
14811 \backslash
14812 newfloat
14813 \end_layout
14814
14815 \end_inset
14816
14817 を使用してフロートを定義する際に使用される様式。
14818 \end_layout
14819
14820 \begin_layout Description
14821 \begin_inset Flex Code
14822 status collapsed
14823
14824 \begin_layout Plain Layout
14825 Type
14826 \end_layout
14827
14828 \end_inset
14829
14830  [
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 文字列
14836 \end_layout
14837
14838 \end_inset
14839
14840 =
14841 \begin_inset Quotes erd
14842 \end_inset
14843
14844
14845 \begin_inset Quotes erd
14846 \end_inset
14847
14848 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853
14854 \backslash
14855 newfloat
14856 \end_layout
14857
14858 \end_inset
14859
14860 の後で、
14861 \begin_inset Flex Code
14862 status collapsed
14863
14864 \begin_layout Plain Layout
14865
14866 \backslash
14867 begin{program}
14868 \end_layout
14869
14870 \end_inset
14871
14872
14873 \begin_inset Flex Code
14874 status collapsed
14875
14876 \begin_layout Plain Layout
14877
14878 \backslash
14879 end{algorithm*}
14880 \end_layout
14881
14882 \end_inset
14883
14884 といったコマンドが利用できます。
14885 \end_layout
14886
14887 \begin_layout Description
14888 \begin_inset Flex Code
14889 status collapsed
14890
14891 \begin_layout Plain Layout
14892 UsesFloatPkg
14893 \end_layout
14894
14895 \end_inset
14896
14897  [
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 0
14903 \end_layout
14904
14905 \end_inset
14906
14907 ,
14908 \begin_inset space \thinspace{}
14909 \end_inset
14910
14911
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916
14917 \emph on
14918 1
14919 \end_layout
14920
14921 \end_inset
14922
14923 ] このフロートが、クラスファイルやパッケージ中で、\SpecialChar LaTeX
14924 パッケージ
14925 \begin_inset Flex Code
14926 status collapsed
14927
14928 \begin_layout Plain Layout
14929 float
14930 \end_layout
14931
14932 \end_inset
14933
14934 が提供しているものを使用して定義されているのか、\SpecialChar LyX
14935 自身がオン・ザ・フライで定義しているのかを示します。
14936 \end_layout
14937
14938 \begin_layout Standard
14939 \begin_inset Flex Code
14940 status collapsed
14941
14942 \begin_layout Plain Layout
14943
14944 \emph on
14945 type
14946 \end_layout
14947
14948 \end_inset
14949
14950 型のフロートを定義すると、自動的に
14951 \emph on
14952 対応する
14953 \emph default
14954
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959
14960 \emph on
14961 type
14962 \end_layout
14963
14964 \end_inset
14965
14966 名カウンタが定義されます。
14967 \end_layout
14968
14969 \begin_layout Subsection
14970 自由差込枠と差込枠レイアウト
14971 \begin_inset CommandInset label
14972 LatexCommand label
14973 name "subsec:任意設定差込枠"
14974
14975 \end_inset
14976
14977
14978 \end_layout
14979
14980 \begin_layout Standard
14981 自由差込枠には次の3種類があります。
14982 \end_layout
14983
14984 \begin_layout Itemize
14985 文字様式(
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 CharStyle
14991 \end_layout
14992
14993 \end_inset
14994
14995 )。これは、
14996 \begin_inset Flex Code
14997 status collapsed
14998
14999 \begin_layout Plain Layout
15000
15001 \backslash
15002 noun
15003 \end_layout
15004
15005 \end_inset
15006
15007
15008 \begin_inset Flex Code
15009 status collapsed
15010
15011 \begin_layout Plain Layout
15012
15013 \backslash
15014 code
15015 \end_layout
15016
15017 \end_inset
15018
15019 などの\SpecialChar LaTeX
15020 コマンドに対応した意味論的マークアップを定義するものです。
15021 \end_layout
15022
15023 \begin_layout Itemize
15024 ユーザ設定(
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 Custom
15030 \end_layout
15031
15032 \end_inset
15033
15034 )。これは、\SpecialChar TeX
15035 コードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
15036 \begin_inset Flex Code
15037 status collapsed
15038
15039 \begin_layout Plain Layout
15040 endnote
15041 \end_layout
15042
15043 \end_inset
15044
15045 モジュール中で定義されています。
15046 \end_layout
15047
15048 \begin_layout Itemize
15049 XML要素(
15050 \begin_inset Flex Code
15051 status collapsed
15052
15053 \begin_layout Plain Layout
15054 Element
15055 \end_layout
15056
15057 \end_inset
15058
15059 )。DocBookクラスで使用するものです。
15060 \end_layout
15061
15062 \begin_layout Standard
15063 自由差込枠は、以下で説明する
15064 \begin_inset Flex Code
15065 status collapsed
15066
15067 \begin_layout Plain Layout
15068 InsetLayout
15069 \end_layout
15070
15071 \end_inset
15072
15073 タグを使用して定義されます。
15074 \end_layout
15075
15076 \begin_layout Standard
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 InsetLayout
15082 \end_layout
15083
15084 \end_inset
15085
15086 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 InsetLayout
15092 \end_layout
15093
15094 \end_inset
15095
15096 は自由差込枠を定義することの他に、脚注・傍注・注釈差込枠・\SpecialChar TeX
15097 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
15098 ー定義するのに使用されます。
15099 \end_layout
15100
15101 \begin_layout Standard
15102 \begin_inset Flex Code
15103 status collapsed
15104
15105 \begin_layout Plain Layout
15106 InsetLayout
15107 \end_layout
15108
15109 \end_inset
15110
15111 定義は以下の形の行では始まらなくてはなりません。
15112 \end_layout
15113
15114 \begin_layout LyX-Code
15115 InsetLayout <型>
15116 \end_layout
15117
15118 \begin_layout Standard
15119 ここで
15120 \begin_inset Flex Code
15121 status collapsed
15122
15123 \begin_layout Plain Layout
15124 <型>
15125 \end_layout
15126
15127 \end_inset
15128
15129 は、レイアウトを定義しようとしている差込枠を指し、4つの場合があります。
15130 \end_layout
15131
15132 \begin_layout Enumerate
15133 既存の差込枠のレイアウトを変更する場合。この場合、
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138 <型>
15139 \end_layout
15140
15141 \end_inset
15142
15143 は以下のいずれかになります:
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 Algorithm
15149 \end_layout
15150
15151 \end_inset
15152
15153
15154 \begin_inset Flex Code
15155 status collapsed
15156
15157 \begin_layout Plain Layout
15158 Branch
15159 \end_layout
15160
15161 \end_inset
15162
15163
15164 \begin_inset Flex Code
15165 status collapsed
15166
15167 \begin_layout Plain Layout
15168 Box
15169 \end_layout
15170
15171 \end_inset
15172
15173
15174 \begin_inset Flex Code
15175 status collapsed
15176
15177 \begin_layout Plain Layout
15178 Box:shaded
15179 \end_layout
15180
15181 \end_inset
15182
15183
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 Caption:Standard
15189 \end_layout
15190
15191 \end_inset
15192
15193
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 ERT
15199 \end_layout
15200
15201 \end_inset
15202
15203
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208 Figure
15209 \end_layout
15210
15211 \end_inset
15212
15213
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 Foot
15219 \end_layout
15220
15221 \end_inset
15222
15223
15224 \begin_inset Flex Code
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228 Index
15229 \end_layout
15230
15231 \end_inset
15232
15233
15234 \begin_inset Flex Code
15235 status collapsed
15236
15237 \begin_layout Plain Layout
15238 Info
15239 \end_layout
15240
15241 \end_inset
15242
15243
15244 \begin_inset Flex Code
15245 status collapsed
15246
15247 \begin_layout Plain Layout
15248 Info:menu
15249 \end_layout
15250
15251 \end_inset
15252
15253
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 Info:shortcut
15259 \end_layout
15260
15261 \end_inset
15262
15263
15264 \begin_inset Flex Code
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268 Info:shortcuts
15269 \end_layout
15270
15271 \end_inset
15272
15273
15274 \begin_inset Flex Code
15275 status collapsed
15276
15277 \begin_layout Plain Layout
15278 Listings
15279 \end_layout
15280
15281 \end_inset
15282
15283
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 Marginal
15289 \end_layout
15290
15291 \end_inset
15292
15293
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 Note:Comment
15299 \end_layout
15300
15301 \end_inset
15302
15303
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 Note:Note
15309 \end_layout
15310
15311 \end_inset
15312
15313
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318 Note:GreyedOut
15319 \end_layout
15320
15321 \end_inset
15322
15323
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 Table
15329 \end_layout
15330
15331 \end_inset
15332
15333
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 URL
15339 \end_layout
15340
15341 \end_inset
15342
15343
15344 \end_layout
15345
15346 \begin_layout Enumerate
15347 自由差込枠のレイアウトを定義する場合。この場合、
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 <型>
15353 \end_layout
15354
15355 \end_inset
15356
15357
15358 \begin_inset Flex Code
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362 Flex:<名称>
15363 \end_layout
15364
15365 \end_inset
15366
15367 の形でなくてはなりません。ここで、
15368 \begin_inset Flex Code
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 名称
15373 \end_layout
15374
15375 \end_inset
15376
15377 は、既存の自由差込枠で使用されていない有効な識別子であれば、何でも構いません。識別子には空白を入れることもできますが、この場合には全体を引用符で囲まなくてはなり
15378 ません。自由差込枠の定義には、この定義がどの差込枠型なのか宣言するために、
15379 \begin_inset Flex Code
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 \SpecialChar LyX
15384 Type
15385 \end_layout
15386
15387 \end_inset
15388
15389 項目が含まれていなくてはならないことに注意してください。
15390 \end_layout
15391
15392 \begin_layout Enumerate
15393 ユーザー定義派生枝を定義する場合。この場合、
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 <型>
15399 \end_layout
15400
15401 \end_inset
15402
15403 は「
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 Branch:<名称>
15409 \end_layout
15410
15411 \end_inset
15412
15413 」の形でなくてはなりません。ここで、
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 名称
15419 \end_layout
15420
15421 \end_inset
15422
15423 は、ユーザーの文書で定義されている有効な派生枝名です。派生枝名には空白を入れても構いませんが、その場合は派生枝全体を引用符で囲まなくてはなりません。この機能の主
15424 な目的は、ユーザーの必要に応じて、特定の派生枝を\SpecialChar LaTeX
15425 がくるむことができるようにすることです。
15426 \end_layout
15427
15428 \begin_layout Enumerate
15429 ユーザー(またはクラス)定義のキャプションを定義する場合。この場合、
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 <型>
15435 \end_layout
15436
15437 \end_inset
15438
15439 は「
15440 \begin_inset Flex Code
15441 status collapsed
15442
15443 \begin_layout Plain Layout
15444 Caption:<名称>
15445 \end_layout
15446
15447 \end_inset
15448
15449 」の形でなくてはなりません。ここで、
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 名称
15455 \end_layout
15456
15457 \end_inset
15458
15459 は、メニューに表示されるキャプション名です。応用例については、標準キャプション(
15460 \begin_inset Flex Code
15461 status collapsed
15462
15463 \begin_layout Plain Layout
15464 Caption:Standard
15465 \end_layout
15466
15467 \end_inset
15468
15469 )、若しくはKOMA-Scriptクラスのクラス定義キャプション(
15470 \begin_inset Flex Code
15471 status collapsed
15472
15473 \begin_layout Plain Layout
15474 Caption:Above
15475 \end_layout
15476
15477 \end_inset
15478
15479
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 Caption:Below
15485 \end_layout
15486
15487 \end_inset
15488
15489 )、
15490 \family sans
15491 多言語キャプション
15492 \family default
15493 モジュール(
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 Caption:Bicaption
15499 \end_layout
15500
15501 \end_inset
15502
15503 )をご覧ください。
15504 \end_layout
15505
15506 \begin_layout Standard
15507 \begin_inset Flex Code
15508 status collapsed
15509
15510 \begin_layout Plain Layout
15511 InsetLayout
15512 \end_layout
15513
15514 \end_inset
15515
15516 定義には以下の項目を入れることができます。
15517 \end_layout
15518
15519 \begin_layout Description
15520 \begin_inset Flex Code
15521 status collapsed
15522
15523 \begin_layout Plain Layout
15524 Argument
15525 \end_layout
15526
15527 \end_inset
15528
15529  [
15530 \begin_inset Flex Code
15531 status collapsed
15532
15533 \begin_layout Plain Layout
15534 整数
15535 \end_layout
15536
15537 \end_inset
15538
15539 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します。定義は
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 EndArgument
15545 \end_layout
15546
15547 \end_inset
15548
15549 で閉じなくてはなりません。詳細は
15550 \begin_inset CommandInset ref
15551 LatexCommand ref
15552 reference "subsec:段落様式"
15553
15554 \end_inset
15555
15556 参照。
15557 \end_layout
15558
15559 \begin_layout Description
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 BabelPreamble
15565 \end_layout
15566
15567 \end_inset
15568
15569  言語コマンドを変更するプリアンブル。
15570 \begin_inset CommandInset ref
15571 LatexCommand ref
15572 reference "subsec:段落様式の国際化"
15573
15574 \end_inset
15575
15576 参照。
15577 \end_layout
15578
15579 \begin_layout Description
15580 \begin_inset Flex Code
15581 status collapsed
15582
15583 \begin_layout Plain Layout
15584 BgColor
15585 \end_layout
15586
15587 \end_inset
15588
15589  [
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 <名称>
15595 \end_layout
15596
15597 \end_inset
15598
15599 ] 差込枠の背景色。使用できる色名一覧は
15600 \begin_inset CommandInset ref
15601 LatexCommand ref
15602 reference "chap:色名"
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 ContentAsLabel
15615 \end_layout
15616
15617 \end_inset
15618
15619  [
15620 \begin_inset Flex Code
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624
15625 \emph on
15626 0
15627 \end_layout
15628
15629 \end_inset
15630
15631 ,
15632 \begin_inset space \thinspace{}
15633 \end_inset
15634
15635
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 1
15641 \end_layout
15642
15643 \end_inset
15644
15645 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
15646 \end_layout
15647
15648 \begin_layout Description
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653 CopyStyle
15654 \end_layout
15655
15656 \end_inset
15657
15658  [<型>] 段落様式と同様です。
15659 \begin_inset CommandInset ref
15660 LatexCommand ref
15661 reference "subsec:段落様式"
15662
15663 \end_inset
15664
15665 参照のこと。完全な型を指定する必要があることに注意してください。例:
15666 \begin_inset Flex Code
15667 status collapsed
15668
15669 \begin_layout Plain Layout
15670 CopyStyle Flex:<名称>
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 CustomPars
15684 \end_layout
15685
15686 \end_inset
15687
15688  [
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693
15694 \emph on
15695 0
15696 \end_layout
15697
15698 \end_inset
15699
15700 ,
15701 \begin_inset space \thinspace{}
15702 \end_inset
15703
15704
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 1
15710 \end_layout
15711
15712 \end_inset
15713
15714 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
15715 \end_layout
15716
15717 \begin_layout Description
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 Decoration
15723 \end_layout
15724
15725 \end_inset
15726
15727  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 Classic
15733 \end_layout
15734
15735 \end_inset
15736
15737
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 Minimalistic
15743 \end_layout
15744
15745 \end_inset
15746
15747
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 Conglomerate
15753 \end_layout
15754
15755 \end_inset
15756
15757 のいずれかを指定することができます。脚注は通常
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762 Classic
15763 \end_layout
15764
15765 \end_inset
15766
15767 を使用し、\SpecialChar TeX
15768 コード差込枠は通常
15769 \begin_inset Flex Code
15770 status collapsed
15771
15772 \begin_layout Plain Layout
15773 Minimalistic
15774 \end_layout
15775
15776 \end_inset
15777
15778 、文字様式は
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 Conglomerate
15784 \end_layout
15785
15786 \end_inset
15787
15788 を使用します。
15789 \end_layout
15790
15791 \begin_layout Description
15792 \begin_inset Flex Code
15793 status collapsed
15794
15795 \begin_layout Plain Layout
15796 Display
15797 \end_layout
15798
15799 \end_inset
15800
15801  [
15802 \begin_inset Flex Code
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806 0
15807 \end_layout
15808
15809 \end_inset
15810
15811 ,
15812 \begin_inset space \thinspace{}
15813 \end_inset
15814
15815
15816 \begin_inset Flex Code
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820
15821 \emph on
15822 1
15823 \end_layout
15824
15825 \end_inset
15826
15827
15828 \begin_inset Flex Code
15829 status collapsed
15830
15831 \begin_layout Plain Layout
15832 LatexType
15833 \end_layout
15834
15835 \end_inset
15836
15837
15838 \begin_inset Flex Code
15839 status collapsed
15840
15841 \begin_layout Plain Layout
15842 Environment
15843 \end_layout
15844
15845 \end_inset
15846
15847 の時のみ意味をもちます。環境を、出力中で独立して出力させるか、周囲のテキストとインラインで出力させるかを示します。偽にすると、\SpecialChar LaTeX
15848 環境は、
15849 \begin_inset Flex Code
15850 status collapsed
15851
15852 \begin_layout Plain Layout
15853
15854 \backslash
15855 begin{LatexName}
15856 \end_layout
15857
15858 \end_inset
15859
15860 タグと
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865
15866 \backslash
15867 end{LatexName}
15868 \end_layout
15869
15870 \end_inset
15871
15872 タグの後の空白(改行文字を含む)を無視するものと仮定します。
15873 \end_layout
15874
15875 \begin_layout Description
15876 \begin_inset Flex Code
15877 status collapsed
15878
15879 \begin_layout Plain Layout
15880 End
15881 \end_layout
15882
15883 \end_inset
15884
15885  
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 InsetLayout
15891 \end_layout
15892
15893 \end_inset
15894
15895 宣言を閉じるのに必要です。
15896 \end_layout
15897
15898 \begin_layout Description
15899 \begin_inset Flex Code
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903 Font
15904 \end_layout
15905
15906 \end_inset
15907
15908  本文本体とラベル
15909 \emph on
15910 両方に
15911 \emph default
15912 使用されるフォントです。
15913 \begin_inset CommandInset ref
15914 LatexCommand ref
15915 reference "subsec:フォント指定"
15916
15917 \end_inset
15918
15919 を参照。このフォントを定義すると自動的に
15920 \begin_inset Flex Code
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924 LabelFont
15925 \end_layout
15926
15927 \end_inset
15928
15929 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 LabelFont
15935 \end_layout
15936
15937 \end_inset
15938
15939 を定義しなくてはならないことに注意してください。
15940 \end_layout
15941
15942 \begin_layout Description
15943 \begin_inset Flex Code
15944 status collapsed
15945
15946 \begin_layout Plain Layout
15947 FixedWidthPreambleEncoding
15948 \end_layout
15949
15950 \end_inset
15951
15952  [
15953 \begin_inset Flex Code
15954 status collapsed
15955
15956 \begin_layout Plain Layout
15957
15958 \emph on
15959 0
15960 \end_layout
15961
15962 \end_inset
15963
15964 ,
15965 \begin_inset space \thinspace{}
15966 \end_inset
15967
15968
15969 \begin_inset Flex Code
15970 status collapsed
15971
15972 \begin_layout Plain Layout
15973 1
15974 \end_layout
15975
15976 \end_inset
15977
15978
15979 \lang english
15980 Force a fixed width encoding for the translated contents of 
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985
15986 \lang english
15987 BabelPreamble
15988 \end_layout
15989
15990 \end_inset
15991
15992  and 
15993 \begin_inset Flex Code
15994 status collapsed
15995
15996 \begin_layout Plain Layout
15997
15998 \lang english
15999 LangPreamble
16000 \end_layout
16001
16002 \end_inset
16003
16004  code generated by this layout.
16005  This is needed for special \SpecialChar LaTeX
16006 -packages like 
16007 \family typewriter
16008 listings
16009 \family default
16010  that do not work with variable width encodings such as 
16011 \family sans
16012 utf8
16013 \family default
16014 .
16015  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
16016  backends such as 
16017 \lang ngerman
16018 Xe\SpecialChar TeX
16019  or Lua\SpecialChar TeX
16020
16021 \lang english
16022  are used.
16023 \end_layout
16024
16025 \begin_layout Description
16026 \begin_inset Flex Code
16027 status collapsed
16028
16029 \begin_layout Plain Layout
16030 ForceLocalFontSwitch
16031 \end_layout
16032
16033 \end_inset
16034
16035  [
16036 \begin_inset Flex Code
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040
16041 \emph on
16042 0
16043 \end_layout
16044
16045 \end_inset
16046
16047 ,
16048 \begin_inset space \thinspace{}
16049 \end_inset
16050
16051
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 1
16057 \end_layout
16058
16059 \end_inset
16060
16061 ] babel使用時に、常にローカルフォント切替(
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066
16067 \backslash
16068 foreignlanguage
16069 \end_layout
16070
16071 \end_inset
16072
16073 )を使い、グローバル切替(
16074 \begin_inset Flex Code
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078
16079 \backslash
16080 selectlanguage
16081 \end_layout
16082
16083 \end_inset
16084
16085 など)は使わない。
16086 \end_layout
16087
16088 \begin_layout Description
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093 ForceLTR
16094 \end_layout
16095
16096 \end_inset
16097
16098  [
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103
16104 \emph on
16105 0
16106 \end_layout
16107
16108 \end_inset
16109
16110 ,
16111 \begin_inset space \thinspace{}
16112 \end_inset
16113
16114
16115 \begin_inset Flex Code
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119 1
16120 \end_layout
16121
16122 \end_inset
16123
16124 ] たとえば\SpecialChar TeX
16125 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
16126 \end_layout
16127
16128 \begin_layout Description
16129 \begin_inset Flex Code
16130 status collapsed
16131
16132 \begin_layout Plain Layout
16133 ForceOwnlines
16134 \end_layout
16135
16136 \end_inset
16137
16138  [
16139 \begin_inset Flex Code
16140 status collapsed
16141
16142 \begin_layout Plain Layout
16143
16144 \emph on
16145 0
16146 \end_layout
16147
16148 \end_inset
16149
16150 ,
16151 \begin_inset space \thinspace{}
16152 \end_inset
16153
16154
16155 \begin_inset Flex Code
16156 status collapsed
16157
16158 \begin_layout Plain Layout
16159 1
16160 \end_layout
16161
16162 \end_inset
16163
16164
16165 \lang english
16166 Force a a line break in the \SpecialChar LaTeX
16167  output before the inset starts and after the
16168  inset ends.
16169  This assures the inset itself is output on its own lines, for parsing purposes.
16170 \end_layout
16171
16172 \begin_layout Description
16173 \begin_inset Flex Code
16174 status collapsed
16175
16176 \begin_layout Plain Layout
16177 ForcePlain
16178 \end_layout
16179
16180 \end_inset
16181
16182  [
16183 \begin_inset Flex Code
16184 status collapsed
16185
16186 \begin_layout Plain Layout
16187
16188 \emph on
16189 0
16190 \end_layout
16191
16192 \end_inset
16193
16194 ,
16195 \begin_inset space \thinspace{}
16196 \end_inset
16197
16198
16199 \begin_inset Flex Code
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203 1
16204 \end_layout
16205
16206 \end_inset
16207
16208 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
16209 \end_layout
16210
16211 \begin_layout Description
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 FreeSpacing
16217 \end_layout
16218
16219 \end_inset
16220
16221  [
16222 \emph on
16223
16224 \begin_inset Flex Code
16225 status collapsed
16226
16227 \begin_layout Plain Layout
16228 0
16229 \end_layout
16230
16231 \end_inset
16232
16233
16234 \emph default
16235 ,
16236 \begin_inset space \thinspace{}
16237 \end_inset
16238
16239
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 1
16245 \end_layout
16246
16247 \end_inset
16248
16249 ] 段落様式と同様。
16250 \begin_inset CommandInset ref
16251 LatexCommand ref
16252 reference "subsec:段落様式"
16253
16254 \end_inset
16255
16256 参照。
16257 \end_layout
16258
16259 \begin_layout Description
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 HTML*
16265 \end_layout
16266
16267 \end_inset
16268
16269  これらは、XHTML出力で使用されます。
16270 \begin_inset CommandInset ref
16271 LatexCommand ref
16272 reference "sec:XHTML出力のタグ"
16273
16274 \end_inset
16275
16276 をご覧ください。
16277 \end_layout
16278
16279 \begin_layout Description
16280 \begin_inset Flex Code
16281 status collapsed
16282
16283 \begin_layout Plain Layout
16284 InToc
16285 \end_layout
16286
16287 \end_inset
16288
16289  [
16290 \begin_inset Flex Code
16291 status collapsed
16292
16293 \begin_layout Plain Layout
16294
16295 \emph on
16296 0
16297 \end_layout
16298
16299 \end_inset
16300
16301 ,
16302 \begin_inset space \thinspace{}
16303 \end_inset
16304
16305
16306 \begin_inset Flex Code
16307 status collapsed
16308
16309 \begin_layout Plain Layout
16310 1
16311 \end_layout
16312
16313 \end_inset
16314
16315 ] 「文書構造」ペイン用に出力される文字列に、この差込枠の内容を含めるかどうか。たとえば、節見出しの脚注の内容が、文書構造の目次に表示されることは望まないでしょ
16316 うが、通常、文字様式の内容は表示されることを望むでしょう。既定値は偽、すなわち含めません。
16317 \end_layout
16318
16319 \begin_layout Description
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 KeepEmpty
16325 \end_layout
16326
16327 \end_inset
16328
16329  [
16330 \emph on
16331
16332 \begin_inset Flex Code
16333 status collapsed
16334
16335 \begin_layout Plain Layout
16336 0
16337 \end_layout
16338
16339 \end_inset
16340
16341
16342 \emph default
16343 ,
16344 \begin_inset space \thinspace{}
16345 \end_inset
16346
16347
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 1
16353 \end_layout
16354
16355 \end_inset
16356
16357 ] 段落様式と同様。
16358 \begin_inset CommandInset ref
16359 LatexCommand ref
16360 reference "subsec:段落様式"
16361
16362 \end_inset
16363
16364 参照。
16365 \end_layout
16366
16367 \begin_layout Description
16368 \begin_inset Flex Code
16369 status collapsed
16370
16371 \begin_layout Plain Layout
16372 LabelFont
16373 \end_layout
16374
16375 \end_inset
16376
16377  ラベルに使用されるフォント。第
16378 \begin_inset CommandInset ref
16379 LatexCommand ref
16380 reference "subsec:フォント指定"
16381
16382 \end_inset
16383
16384 節を参照。非効率を回避するため、この定義は
16385 \begin_inset Flex Code
16386 status collapsed
16387
16388 \begin_layout Plain Layout
16389 Font
16390 \end_layout
16391
16392 \end_inset
16393
16394 の前には決して現れてはなりません。
16395 \end_layout
16396
16397 \begin_layout Description
16398 \begin_inset Flex Code
16399 status collapsed
16400
16401 \begin_layout Plain Layout
16402 LabelString
16403 \end_layout
16404
16405 \end_inset
16406
16407  [
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412 文字列
16413 \end_layout
16414
16415 \end_inset
16416
16417 =
16418 \begin_inset Quotes erd
16419 \end_inset
16420
16421
16422 \begin_inset Quotes erd
16423 \end_inset
16424
16425 ]
16426 \lang english
16427  
16428 \lang japanese
16429 ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(\SpecialChar TeX
16430 コードや派生枝)、ラベルが動的に変更されます。
16431 \end_layout
16432
16433 \begin_layout Description
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438 LangPreamble
16439 \end_layout
16440
16441 \end_inset
16442
16443  言語依存のプリアンブル。
16444 \begin_inset CommandInset ref
16445 LatexCommand ref
16446 reference "subsec:段落様式の国際化"
16447
16448 \end_inset
16449
16450 参照。
16451 \end_layout
16452
16453 \begin_layout Description
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 LatexName
16459 \end_layout
16460
16461 \end_inset
16462
16463  [
16464 \begin_inset Flex Code
16465 status collapsed
16466
16467 \begin_layout Plain Layout
16468 <名称>
16469 \end_layout
16470
16471 \end_inset
16472
16473 ] 対応する\SpecialChar LaTeX
16474 関連物の名称。環境名ないしはコマンド名。
16475 \end_layout
16476
16477 \begin_layout Description
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 LatexParam
16483 \end_layout
16484
16485 \end_inset
16486
16487  [
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 <パラメータ>
16493 \end_layout
16494
16495 \end_inset
16496
16497 ]
16498 \lang english
16499  
16500 \lang japanese
16501 対応する
16502 \begin_inset Flex Code
16503 status collapsed
16504
16505 \begin_layout Plain Layout
16506 LatexName
16507 \end_layout
16508
16509 \end_inset
16510
16511 関連物の非必須パラメータ。
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 []
16517 \end_layout
16518
16519 \end_inset
16520
16521 のような括弧対を含む。このパラメータは\SpecialChar LyX
16522 内部から変更することはできません(変更可能なパラメータには
16523 \begin_inset Flex Code
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527 Argument
16528 \end_layout
16529
16530 \end_inset
16531
16532 を使用してください)。これは、全ての\SpecialChar LaTeX
16533  
16534 \begin_inset Flex Code
16535 status collapsed
16536
16537 \begin_layout Plain Layout
16538 Argument
16539 \end_layout
16540
16541 \end_inset
16542
16543 の後にそのままの形で出力されます。
16544 \end_layout
16545
16546 \begin_layout Description
16547 \begin_inset Flex Code
16548 status collapsed
16549
16550 \begin_layout Plain Layout
16551 LatexType
16552 \end_layout
16553
16554 \end_inset
16555
16556  [
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561 Command, Environment, None
16562 \end_layout
16563
16564 \end_inset
16565
16566 ] 様式がどのように\SpecialChar LaTeX
16567 に変換されるべきかを示します
16568 \begin_inset Foot
16569 status collapsed
16570
16571 \begin_layout Plain Layout
16572 これらのルールはSGMLクラスにも適用されるので、
16573 \begin_inset Flex Code
16574 status collapsed
16575
16576 \begin_layout Plain Layout
16577 LatexType
16578 \end_layout
16579
16580 \end_inset
16581
16582 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
16583 \end_layout
16584
16585 \end_inset
16586
16587
16588 \begin_inset Separator parbreak
16589 \end_inset
16590
16591
16592 \end_layout
16593
16594 \begin_deeper
16595 \begin_layout Description
16596 \begin_inset Flex Code
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600 None
16601 \end_layout
16602
16603 \end_inset
16604
16605  は、何も特別なことは意味しません
16606 \end_layout
16607
16608 \begin_layout Description
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 Command
16614 \end_layout
16615
16616 \end_inset
16617
16618  は、
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623
16624 \backslash
16625
16626 \emph on
16627 LatexName
16628 \emph default
16629 {\SpecialChar ldots
16630 }
16631 \end_layout
16632
16633 \end_inset
16634
16635 を意味します
16636 \end_layout
16637
16638 \begin_layout Description
16639 \begin_inset Flex Code
16640 status collapsed
16641
16642 \begin_layout Plain Layout
16643 Environment
16644 \end_layout
16645
16646 \end_inset
16647
16648  は、
16649 \begin_inset Flex Code
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653
16654 \backslash
16655 begin{
16656 \emph on
16657 LatexName
16658 \emph default
16659 }\SpecialChar ldots
16660
16661 \backslash
16662 end{
16663 \emph on
16664 LatexName
16665 \emph default
16666 }
16667 \end_layout
16668
16669 \end_inset
16670
16671 を意味します
16672 \end_layout
16673
16674 \begin_layout Standard
16675 上記最後のいくつかをまとめると、\SpecialChar LaTeX
16676 出力は、\SpecialChar LaTeX
16677 型に依存して
16678 \end_layout
16679
16680 \begin_layout LyX-Code
16681
16682 \backslash
16683 LatexName[LatexParam]{\SpecialChar ldots
16684 }
16685 \end_layout
16686
16687 \begin_layout Standard
16688 のようになるか、
16689 \end_layout
16690
16691 \begin_layout LyX-Code
16692
16693 \backslash
16694 begin{LatexName}[LatexParam] \SpecialChar ldots
16695  
16696 \backslash
16697 end{LatexName}.
16698 \end_layout
16699
16700 \begin_layout Standard
16701 となります。
16702 \end_layout
16703
16704 \end_deeper
16705 \begin_layout Description
16706 \begin_inset Flex Code
16707 status collapsed
16708
16709 \begin_layout Plain Layout
16710 LeftDelim
16711 \end_layout
16712
16713 \end_inset
16714
16715  [
16716 \begin_inset Flex Code
16717 status collapsed
16718
16719 \begin_layout Plain Layout
16720 文字列
16721 \end_layout
16722
16723 \end_inset
16724
16725 ] 様式の内容の最初に置かれる文字列。出力中の改行は
16726 \begin_inset Flex Code
16727 status collapsed
16728
16729 \begin_layout Plain Layout
16730 <br/>
16731 \end_layout
16732
16733 \end_inset
16734
16735 で指示できます。
16736 \end_layout
16737
16738 \begin_layout Description
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 LyxType
16744 \end_layout
16745
16746 \end_inset
16747
16748  
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 charstyle
16754 \end_layout
16755
16756 \end_inset
16757
16758
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 custom
16764 \end_layout
16765
16766 \end_inset
16767
16768
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 element
16774 \end_layout
16775
16776 \end_inset
16777
16778
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783 end
16784 \end_layout
16785
16786 \end_inset
16787
16788 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、自由差込枠に必須であり、かつ自由差込枠でしか意味を持ちません。こ
16789 の項目は、就中、差込枠がどのメニューに表示されるかを決定します。
16790 \begin_inset Flex Code
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 LyxType
16795 \end_layout
16796
16797 \end_inset
16798
16799
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 charstyle
16805 \end_layout
16806
16807 \end_inset
16808
16809 に設定すると、
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814 MultiPar
16815 \end_layout
16816
16817 \end_inset
16818
16819 が偽に設定されます。文字様式差込枠で
16820 \begin_inset Flex Code
16821 status collapsed
16822
16823 \begin_layout Plain Layout
16824 MultiPar
16825 \end_layout
16826
16827 \end_inset
16828
16829 を真にしたい時には、
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 LyxType
16835 \end_layout
16836
16837 \end_inset
16838
16839 を設定した
16840 \emph on
16841 後に
16842 \emph default
16843 設定すれば、真に設定することができます。
16844 \end_layout
16845
16846 \begin_layout Description
16847 \begin_inset Flex Code
16848 status collapsed
16849
16850 \begin_layout Plain Layout
16851 MultiPar
16852 \end_layout
16853
16854 \end_inset
16855
16856  [
16857 \begin_inset Flex Code
16858 status collapsed
16859
16860 \begin_layout Plain Layout
16861
16862 \emph on
16863 0
16864 \end_layout
16865
16866 \end_inset
16867
16868 ,
16869 \begin_inset space \thinspace{}
16870 \end_inset
16871
16872
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 1
16878 \end_layout
16879
16880 \end_inset
16881
16882 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 CustomPars
16888 \end_layout
16889
16890 \end_inset
16891
16892 を同じ値に設定し、
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 ForcePlain
16898 \end_layout
16899
16900 \end_inset
16901
16902 を逆の値に設定します。これらは、
16903 \begin_inset Flex Code
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 MultiPar
16908 \end_layout
16909
16910 \end_inset
16911
16912
16913 \emph on
16914 後に
16915 \emph default
16916 指定されれば、他の値に指定し直すことができます。既定値は真です。
16917 \end_layout
16918
16919 \begin_layout Description
16920 \begin_inset Flex Code
16921 status collapsed
16922
16923 \begin_layout Plain Layout
16924 NeedProtect
16925 \end_layout
16926
16927 \end_inset
16928
16929  [
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934
16935 \emph on
16936 0
16937 \end_layout
16938
16939 \end_inset
16940
16941 ,
16942 \begin_inset space \thinspace{}
16943 \end_inset
16944
16945
16946 \begin_inset Flex Code
16947 status collapsed
16948
16949 \begin_layout Plain Layout
16950 1
16951 \end_layout
16952
16953 \end_inset
16954
16955 ] 本レイアウト中で脆弱なコマンドを
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960
16961 \backslash
16962 protect
16963 \end_layout
16964
16965 \end_inset
16966
16967 するか否か(註:当該コマンド自身をprotectするかどうかでは
16968 \emph on
16969 ありません
16970 \emph default
16971 )。既定値は偽です。
16972 \end_layout
16973
16974 \begin_layout Description
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979 NoInsetLayout
16980 \end_layout
16981
16982 \end_inset
16983
16984  [
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 <レイアウト>
16990 \end_layout
16991
16992 \end_inset
16993
16994 ] 既存の
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 InsetLayout
17000 \end_layout
17001
17002 \end_inset
17003
17004 を削除します。
17005 \end_layout
17006
17007 \begin_layout Description
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 ObsoletedBy
17013 \end_layout
17014
17015 \end_inset
17016
17017  [
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 <レイアウト>
17023 \end_layout
17024
17025 \end_inset
17026
17027
17028 \lang english
17029 Name of an 
17030 \begin_inset Flex Code
17031 status collapsed
17032
17033 \begin_layout Plain Layout
17034
17035 \lang english
17036 InsetLayout
17037 \end_layout
17038
17039 \end_inset
17040
17041  that has replaced this 
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046
17047 \lang english
17048 InsetLayout
17049 \end_layout
17050
17051 \end_inset
17052
17053 .
17054  This is used to rename an 
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059
17060 \lang english
17061 InsetLayout
17062 \end_layout
17063
17064 \end_inset
17065
17066 , while keeping backward compatibility.
17067 \end_layout
17068
17069 \begin_layout Description
17070 \begin_inset Flex Code
17071 status collapsed
17072
17073 \begin_layout Plain Layout
17074 ParbreakIsNewline
17075 \end_layout
17076
17077 \end_inset
17078
17079  [
17080 \begin_inset Flex Code
17081 status collapsed
17082
17083 \begin_layout Plain Layout
17084
17085 \emph on
17086 0
17087 \end_layout
17088
17089 \end_inset
17090
17091 ,
17092 \begin_inset space \thinspace{}
17093 \end_inset
17094
17095
17096 \begin_inset Flex Code
17097 status collapsed
17098
17099 \begin_layout Plain Layout
17100 1
17101 \end_layout
17102
17103 \end_inset
17104
17105 ] 段落様式と同様。
17106 \begin_inset CommandInset ref
17107 LatexCommand ref
17108 reference "subsec:段落様式"
17109
17110 \end_inset
17111
17112 参照。
17113 \end_layout
17114
17115 \begin_layout Description
17116 \begin_inset Flex Code
17117 status collapsed
17118
17119 \begin_layout Plain Layout
17120 PassThru
17121 \end_layout
17122
17123 \end_inset
17124
17125  [
17126 \emph on
17127
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 0
17133 \end_layout
17134
17135 \end_inset
17136
17137
17138 \emph default
17139 ,
17140 \begin_inset space \thinspace{}
17141 \end_inset
17142
17143
17144 \begin_inset Flex Code
17145 status collapsed
17146
17147 \begin_layout Plain Layout
17148 1
17149 \end_layout
17150
17151 \end_inset
17152
17153 ] 段落様式と同様。
17154 \begin_inset CommandInset ref
17155 LatexCommand ref
17156 reference "subsec:段落様式"
17157
17158 \end_inset
17159
17160 参照。
17161 \end_layout
17162
17163 \begin_layout Description
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 Preamble
17169 \end_layout
17170
17171 \end_inset
17172
17173  段落様式と同様。
17174 \begin_inset CommandInset ref
17175 LatexCommand ref
17176 reference "subsec:段落様式"
17177
17178 \end_inset
17179
17180 参照。
17181 \end_layout
17182
17183 \begin_layout Description
17184 \begin_inset Flex Code
17185 status collapsed
17186
17187 \begin_layout Plain Layout
17188 RefPrefix
17189 \end_layout
17190
17191 \end_inset
17192
17193  [
17194 \begin_inset Flex Code
17195 status collapsed
17196
17197 \begin_layout Plain Layout
17198 文字列
17199 \end_layout
17200
17201 \end_inset
17202
17203 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
17204 \end_layout
17205
17206 \begin_layout Description
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 Requires
17212 \end_layout
17213
17214 \end_inset
17215
17216  [
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 文字列
17222 \end_layout
17223
17224 \end_inset
17225
17226 ] 段落様式と同様。
17227 \begin_inset CommandInset ref
17228 LatexCommand ref
17229 reference "subsec:段落様式"
17230
17231 \end_inset
17232
17233 参照。
17234 \end_layout
17235
17236 \begin_layout Description
17237 \begin_inset Flex Code
17238 status collapsed
17239
17240 \begin_layout Plain Layout
17241 ResetArgs
17242 \end_layout
17243
17244 \end_inset
17245
17246  [
17247 \begin_inset Flex Code
17248 status collapsed
17249
17250 \begin_layout Plain Layout
17251
17252 \emph on
17253 0
17254 \end_layout
17255
17256 \end_inset
17257
17258 ,
17259 \begin_inset space \thinspace{}
17260 \end_inset
17261
17262
17263 \begin_inset Flex Code
17264 status collapsed
17265
17266 \begin_layout Plain Layout
17267 1
17268 \end_layout
17269
17270 \end_inset
17271
17272 ] (
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277 Argument
17278 \end_layout
17279
17280 \end_inset
17281
17282 タグで定義された)この様式の\SpecialChar LaTeX
17283 引数をリセットします。これは、様式を
17284 \begin_inset Flex Code
17285 status collapsed
17286
17287 \begin_layout Plain Layout
17288 CopyStyle
17289 \end_layout
17290
17291 \end_inset
17292
17293 でコピーし、その(必須及び非必須)引数は継承したくない場合に便利です。
17294 \end_layout
17295
17296 \begin_layout Description
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 ResetsFont
17302 \end_layout
17303
17304 \end_inset
17305
17306  [
17307 \begin_inset Flex Code
17308 status collapsed
17309
17310 \begin_layout Plain Layout
17311 0
17312 \end_layout
17313
17314 \end_inset
17315
17316 ,
17317 \begin_inset space \thinspace{}
17318 \end_inset
17319
17320
17321 \begin_inset Flex Code
17322 status collapsed
17323
17324 \begin_layout Plain Layout
17325
17326 \emph on
17327 1
17328 \end_layout
17329
17330 \end_inset
17331
17332 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
17333 \begin_inset Note Note
17334 status open
17335
17336 \begin_layout Plain Layout
17337 This is outdated: The default changed from 1 to 0
17338 \end_layout
17339
17340 \end_inset
17341
17342
17343 \end_layout
17344
17345 \begin_layout Description
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 RightDelim
17351 \end_layout
17352
17353 \end_inset
17354
17355  [
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 文字列
17361 \end_layout
17362
17363 \end_inset
17364
17365 ] 様式の内容の最後に置かれる文字列。出力中の改行は
17366 \begin_inset Flex Code
17367 status collapsed
17368
17369 \begin_layout Plain Layout
17370 <br/>
17371 \end_layout
17372
17373 \end_inset
17374
17375 で指示できます。
17376 \end_layout
17377
17378 \begin_layout Description
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383 Spellcheck
17384 \end_layout
17385
17386 \end_inset
17387
17388  [
17389 \begin_inset Flex Code
17390 status collapsed
17391
17392 \begin_layout Plain Layout
17393 0
17394 \end_layout
17395
17396 \end_inset
17397
17398 ,
17399 \begin_inset space \thinspace{}
17400 \end_inset
17401
17402
17403 \begin_inset Flex Code
17404 status collapsed
17405
17406 \begin_layout Plain Layout
17407
17408 \emph on
17409 1
17410 \end_layout
17411
17412 \end_inset
17413
17414 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
17415 \end_layout
17416
17417 \begin_layout Subsection
17418 カウンタ
17419 \begin_inset CommandInset label
17420 LatexCommand label
17421 name "subsec:カウンタ"
17422
17423 \end_inset
17424
17425
17426 \end_layout
17427
17428 \begin_layout Standard
17429 テキストクラスには、カウンタ(
17430 \begin_inset Flex MenuItem
17431 status collapsed
17432
17433 \begin_layout Plain Layout
17434 chapter
17435 \end_layout
17436
17437 \end_inset
17438
17439
17440 \begin_inset Flex MenuItem
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 figure
17445 \end_layout
17446
17447 \end_inset
17448
17449 ・\SpecialChar ldots
17450 )を定義することが必要です。標準的なカウンタは
17451 \begin_inset Flex Code
17452 status collapsed
17453
17454 \begin_layout Plain Layout
17455 stdcounters.inc
17456 \end_layout
17457
17458 \end_inset
17459
17460 ファイルに含まれているので、作業中のレイアウトファイルに
17461 \end_layout
17462
17463 \begin_layout LyX-Code
17464 Input stdcounters.inc
17465 \end_layout
17466
17467 \begin_layout Standard
17468 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
17469 \end_layout
17470
17471 \begin_layout LyX-Code
17472 Counter カウンタ名
17473 \end_layout
17474
17475 \begin_layout Standard
17476 で始まらなくてはなりません。ここで「
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 カウンタ名
17482 \end_layout
17483
17484 \end_inset
17485
17486 」は、実際のカウンタ名で置き換えます。また、宣言は「
17487 \begin_inset Flex Code
17488 status collapsed
17489
17490 \begin_layout Plain Layout
17491 End
17492 \end_layout
17493
17494 \end_inset
17495
17496 」で終わらなくてはなりません。
17497 \end_layout
17498
17499 \begin_layout Standard
17500 以下のパラメータを使用することができます。
17501 \end_layout
17502
17503 \begin_layout Description
17504 \begin_inset Flex Code
17505 status collapsed
17506
17507 \begin_layout Plain Layout
17508 InitialValue
17509 \end_layout
17510
17511 \end_inset
17512
17513  [
17514 \begin_inset Flex Code
17515 status collapsed
17516
17517 \begin_layout Plain Layout
17518 整数=1
17519 \end_layout
17520
17521 \end_inset
17522
17523 ] カウンタの初期値を設定します。リセットの度にカウンタはこの値に戻ります。通常、既定値1のままで充分でしょう。
17524 \end_layout
17525
17526 \begin_layout Description
17527 \begin_inset Flex Code
17528 status collapsed
17529
17530 \begin_layout Plain Layout
17531 LabelString [文字列=""]
17532 \end_layout
17533
17534 \end_inset
17535
17536  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
17537 \begin_inset Flex Code
17538 status collapsed
17539
17540 \begin_layout Plain Layout
17541 LabelStringAppendix
17542 \end_layout
17543
17544 \end_inset
17545
17546 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
17547 \begin_inset Separator parbreak
17548 \end_inset
17549
17550
17551 \end_layout
17552
17553 \begin_deeper
17554 \begin_layout Itemize
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559
17560 \backslash
17561 thecounter
17562 \end_layout
17563
17564 \end_inset
17565
17566 は、カウンタ
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 counter
17572 \end_layout
17573
17574 \end_inset
17575
17576
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 LabelString
17582 \end_layout
17583
17584 \end_inset
17585
17586 (または
17587 \begin_inset Newline linebreak
17588 \end_inset
17589
17590
17591 \begin_inset Flex Code
17592 status collapsed
17593
17594 \begin_layout Plain Layout
17595 LabelStringAppendix
17596 \end_layout
17597
17598 \end_inset
17599
17600 )を展開したもので置き換えられます。 
17601 \end_layout
17602
17603 \begin_layout Itemize
17604 カウンタ値は、\SpecialChar LaTeX
17605 型マクロ
17606 \begin_inset Flex Code
17607 status collapsed
17608
17609 \begin_layout Plain Layout
17610
17611 \backslash
17612
17613 \emph on
17614 numbertype
17615 \emph default
17616 {
17617 \emph on
17618 カウンタ
17619 \emph default
17620 }
17621 \end_layout
17622
17623 \end_inset
17624
17625 を用いて表現することができます。ここで
17626 \begin_inset Flex Code
17627 status collapsed
17628
17629 \begin_layout Plain Layout
17630
17631 \emph on
17632 numbertype
17633 \end_layout
17634
17635 \end_inset
17636
17637 は以下のいずれかです。
17638 \begin_inset Flex Code
17639 status collapsed
17640
17641 \begin_layout Plain Layout
17642 arabic
17643 \end_layout
17644
17645 \end_inset
17646
17647 :1, 2, 3,\SpecialChar ldots
17648
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 alph
17654 \end_layout
17655
17656 \end_inset
17657
17658 :a, b, c, \SpecialChar ldots
17659 (小文字);
17660 \begin_inset Flex Code
17661 status collapsed
17662
17663 \begin_layout Plain Layout
17664 Alph
17665 \end_layout
17666
17667 \end_inset
17668
17669 :A, B, C, \SpecialChar ldots
17670 (大文字);
17671 \begin_inset Flex Code
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 roman
17676 \end_layout
17677
17678 \end_inset
17679
17680 :i, ii, iii, \SpecialChar ldots
17681 (小文字ローマ数字);
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 Roman
17687 \end_layout
17688
17689 \end_inset
17690
17691 :I, II, III\SpecialChar ldots
17692 (大文字ローマ数字)。
17693 \end_layout
17694
17695 \end_deeper
17696 \begin_layout Standard
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701 LabelString
17702 \end_layout
17703
17704 \end_inset
17705
17706 が定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
17707 \begin_inset Flex Code
17708 status collapsed
17709
17710 \begin_layout Plain Layout
17711 master
17712 \end_layout
17713
17714 \end_inset
17715
17716
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721 Within
17722 \end_layout
17723
17724 \end_inset
17725
17726 で定義)があるときには、文字列
17727 \begin_inset Newline linebreak
17728 \end_inset
17729
17730
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735
17736 \backslash
17737 themaster.
17738 \backslash
17739 arabic{カウンタ}
17740 \end_layout
17741
17742 \end_inset
17743
17744 が使用されます。それ以外の場合は、
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749
17750 \backslash
17751 arabic{カウンタ}
17752 \end_layout
17753
17754 \end_inset
17755
17756 が使用されます。
17757 \end_layout
17758
17759 \begin_layout Description
17760 \begin_inset Flex Code
17761 status collapsed
17762
17763 \begin_layout Plain Layout
17764 LabelStringAppendix
17765 \end_layout
17766
17767 \end_inset
17768
17769  [
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 文字列
17775 \end_layout
17776
17777 \end_inset
17778
17779 =""] 
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 LabelString
17785 \end_layout
17786
17787 \end_inset
17788
17789 と同様ですが、付録で使用するためのものです。
17790 \end_layout
17791
17792 \begin_layout Description
17793 \begin_inset Flex Code
17794 status collapsed
17795
17796 \begin_layout Plain Layout
17797 PrettyFormat
17798 \end_layout
17799
17800 \end_inset
17801
17802  [
17803 \begin_inset Flex Code
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 文字列
17808 \end_layout
17809
17810 \end_inset
17811
17812 =
17813 \begin_inset Quotes erd
17814 \end_inset
17815
17816
17817 \begin_inset Quotes erd
17818 \end_inset
17819
17820 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section
17821 \begin_inset space ~
17822 \end_inset
17823
17824 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにしま
17825 す。
17826 \end_layout
17827
17828 \begin_layout Description
17829 \begin_inset Flex Code
17830 status collapsed
17831
17832 \begin_layout Plain Layout
17833 Within
17834 \end_layout
17835
17836 \end_inset
17837
17838  [
17839 \begin_inset Flex Code
17840 status collapsed
17841
17842 \begin_layout Plain Layout
17843 文字列
17844 \end_layout
17845
17846 \end_inset
17847
17848 =
17849 \begin_inset Quotes erd
17850 \end_inset
17851
17852
17853 \begin_inset Quotes erd
17854 \end_inset
17855
17856 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861 subsection
17862 \end_layout
17863
17864 \end_inset
17865
17866
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 section
17872 \end_layout
17873
17874 \end_inset
17875
17876 毎に番号がリセットされます。
17877 \end_layout
17878
17879 \begin_layout Subsection
17880 フォント指定
17881 \begin_inset CommandInset label
17882 LatexCommand label
17883 name "subsec:フォント指定"
17884
17885 \end_inset
17886
17887
17888 \end_layout
17889
17890 \begin_layout Standard
17891 フォント指定は、以下のような形を取ります。
17892 \end_layout
17893
17894 \begin_layout LyX-Code
17895 Font 
17896 \family roman
17897 \emph on
17898 または
17899 \family default
17900 \emph default
17901  LabelFont 
17902 \family roman
17903 \emph on
17904 または
17905 \family default
17906 \emph default
17907  DefaultFont
17908 \end_layout
17909
17910 \begin_layout LyX-Code
17911  ...
17912 \end_layout
17913
17914 \begin_layout LyX-Code
17915 EndFont
17916 \end_layout
17917
17918 \begin_layout Standard
17919 以下のコマンドを使用することができます。
17920 \end_layout
17921
17922 \begin_layout Description
17923 \begin_inset Flex Code
17924 status collapsed
17925
17926 \begin_layout Plain Layout
17927 Color
17928 \end_layout
17929
17930 \end_inset
17931
17932  [
17933 \begin_inset Flex Code
17934 status collapsed
17935
17936 \begin_layout Plain Layout
17937
17938 \emph on
17939 none
17940 \end_layout
17941
17942 \end_inset
17943
17944
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 black
17950 \end_layout
17951
17952 \end_inset
17953
17954
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 white
17960 \end_layout
17961
17962 \end_inset
17963
17964
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 red
17970 \end_layout
17971
17972 \end_inset
17973
17974
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 green
17980 \end_layout
17981
17982 \end_inset
17983
17984
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 blue
17990 \end_layout
17991
17992 \end_inset
17993
17994
17995 \begin_inset Flex Code
17996 status collapsed
17997
17998 \begin_layout Plain Layout
17999 cyan
18000 \end_layout
18001
18002 \end_inset
18003
18004
18005 \begin_inset Flex Code
18006 status collapsed
18007
18008 \begin_layout Plain Layout
18009 magenta
18010 \end_layout
18011
18012 \end_inset
18013
18014
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 yellow
18020 \end_layout
18021
18022 \end_inset
18023
18024 ]
18025 \end_layout
18026
18027 \begin_layout Description
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 Family
18033 \end_layout
18034
18035 \end_inset
18036
18037  [
18038 \emph on
18039
18040 \begin_inset Flex Code
18041 status collapsed
18042
18043 \begin_layout Plain Layout
18044 Roman
18045 \end_layout
18046
18047 \end_inset
18048
18049
18050 \emph default
18051
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 Sans
18057 \end_layout
18058
18059 \end_inset
18060
18061
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 Typewriter
18067 \end_layout
18068
18069 \end_inset
18070
18071
18072 \end_layout
18073
18074 \begin_layout Description
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 Misc
18080 \end_layout
18081
18082 \end_inset
18083
18084  [
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 文字列
18090 \end_layout
18091
18092 \end_inset
18093
18094 ] 有効な引数は、
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099 emph
18100 \end_layout
18101
18102 \end_inset
18103
18104
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 noun
18110 \end_layout
18111
18112 \end_inset
18113
18114
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 strikeout
18120 \end_layout
18121
18122 \end_inset
18123
18124
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129 underbar
18130 \end_layout
18131
18132 \end_inset
18133
18134
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 uuline
18140 \end_layout
18141
18142 \end_inset
18143
18144
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 uwave
18150 \end_layout
18151
18152 \end_inset
18153
18154
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 no_emph
18160 \end_layout
18161
18162 \end_inset
18163
18164
18165 \begin_inset Flex Code
18166 status collapsed
18167
18168 \begin_layout Plain Layout
18169 no_noun
18170 \end_layout
18171
18172 \end_inset
18173
18174
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 no_strikeout
18180 \end_layout
18181
18182 \end_inset
18183
18184
18185 \begin_inset Flex Code
18186 status collapsed
18187
18188 \begin_layout Plain Layout
18189 no_bar
18190 \end_layout
18191
18192 \end_inset
18193
18194
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 no_uuline
18200 \end_layout
18201
18202 \end_inset
18203
18204
18205 \begin_inset Flex Code
18206 status collapsed
18207
18208 \begin_layout Plain Layout
18209 no_uwave
18210 \end_layout
18211
18212 \end_inset
18213
18214 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
18215 \begin_inset Newline newline
18216 \end_inset
18217
18218 たとえば、
18219 \begin_inset Flex Code
18220 status collapsed
18221
18222 \begin_layout Plain Layout
18223 emph
18224 \end_layout
18225
18226 \end_inset
18227
18228 は強調を有効にし、
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 no_emph
18234 \end_layout
18235
18236 \end_inset
18237
18238 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
18239
18240 \begin_inset Flex Code
18241 status collapsed
18242
18243 \begin_layout Plain Layout
18244 no_emph
18245 \end_layout
18246
18247 \end_inset
18248
18249 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
18250 \end_layout
18251
18252 \begin_layout Description
18253 \begin_inset Flex Code
18254 status collapsed
18255
18256 \begin_layout Plain Layout
18257 Series
18258 \end_layout
18259
18260 \end_inset
18261
18262  [
18263 \emph on
18264
18265 \begin_inset Flex Code
18266 status collapsed
18267
18268 \begin_layout Plain Layout
18269 Medium
18270 \end_layout
18271
18272 \end_inset
18273
18274
18275 \emph default
18276
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 Bold
18282 \end_layout
18283
18284 \end_inset
18285
18286
18287 \end_layout
18288
18289 \begin_layout Description
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 Shape
18295 \end_layout
18296
18297 \end_inset
18298
18299  [
18300 \emph on
18301
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 Up
18307 \end_layout
18308
18309 \end_inset
18310
18311
18312 \emph default
18313
18314 \begin_inset Flex Code
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318 Italic
18319 \end_layout
18320
18321 \end_inset
18322
18323
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328 SmallCaps
18329 \end_layout
18330
18331 \end_inset
18332
18333
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 Slanted
18339 \end_layout
18340
18341 \end_inset
18342
18343
18344 \end_layout
18345
18346 \begin_layout Description
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 Size
18352 \end_layout
18353
18354 \end_inset
18355
18356  [
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 tiny
18362 \end_layout
18363
18364 \end_inset
18365
18366
18367 \begin_inset Flex Code
18368 status collapsed
18369
18370 \begin_layout Plain Layout
18371 small
18372 \end_layout
18373
18374 \end_inset
18375
18376
18377 \begin_inset Flex Code
18378 status collapsed
18379
18380 \begin_layout Plain Layout
18381
18382 \emph on
18383 normal
18384 \end_layout
18385
18386 \end_inset
18387
18388
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 large
18394 \end_layout
18395
18396 \end_inset
18397
18398
18399 \begin_inset Flex Code
18400 status collapsed
18401
18402 \begin_layout Plain Layout
18403 larger
18404 \end_layout
18405
18406 \end_inset
18407
18408
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 largest
18414 \end_layout
18415
18416 \end_inset
18417
18418
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 huge
18424 \end_layout
18425
18426 \end_inset
18427
18428
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 giant
18434 \end_layout
18435
18436 \end_inset
18437
18438 ]
18439 \end_layout
18440
18441 \begin_layout Subsection
18442 \begin_inset CommandInset label
18443 LatexCommand label
18444 name "subsec:引用書式指定"
18445
18446 \end_inset
18447
18448 引用書式指定
18449 \end_layout
18450
18451 \begin_layout Standard
18452 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18453 内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
18454 \begin_inset Flex Code
18455 status collapsed
18456
18457 \begin_layout Plain Layout
18458 CiteFormat
18459 \end_layout
18460
18461 \end_inset
18462
18463 ブロックが使用されています。このブロックは、以下のような形をしています。
18464 \end_layout
18465
18466 \begin_layout LyX-Code
18467 CiteFormat
18468 \end_layout
18469
18470 \begin_layout LyX-Code
18471  article ...
18472 \end_layout
18473
18474 \begin_layout LyX-Code
18475  book ...
18476 \end_layout
18477
18478 \begin_layout LyX-Code
18479 End
18480 \end_layout
18481
18482 \begin_layout Standard
18483 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、Bib\SpecialChar TeX
18484 ファイル中に存在し
18485 うる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、\SpecialChar LyX
18486 は、ソースコード中に定義されている既定書式を使用します。\SpecialChar LyX
18487 は、いくつかの書式を
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 stdciteformats.inc
18493 \end_layout
18494
18495 \end_inset
18496
18497 ファイルで事前定義しており、これはほとんどの\SpecialChar LyX
18498 文書クラスにインクルードされています。
18499 \end_layout
18500
18501 \begin_layout Standard
18502 この定義は、Bib\SpecialChar TeX
18503 キーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508 %author%
18509 \end_layout
18510
18511 \end_inset
18512
18513 のように
18514 \begin_inset Flex Code
18515 status collapsed
18516
18517 \begin_layout Plain Layout
18518 %
18519 \end_layout
18520
18521 \end_inset
18522
18523 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
18524 \end_layout
18525
18526 \begin_layout LyX-Code
18527 misc %author%, 
18528 \begin_inset Quotes eld
18529 \end_inset
18530
18531 %title%
18532 \begin_inset Quotes erd
18533 \end_inset
18534
18535
18536 \end_layout
18537
18538 \begin_layout Standard
18539 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
18540 \end_layout
18541
18542 \begin_layout Standard
18543 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 {%volume%[[vol.
18549 \begin_inset space ~
18550 \end_inset
18551
18552 %volume%]]}
18553 \end_layout
18554
18555 \end_inset
18556
18557 のように、条件付きの構成を使用することができます。これは、
18558 \begin_inset Flex Code
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 volume
18563 \end_layout
18564
18565 \end_inset
18566
18567 が存在するならば,「vol.
18568 \begin_inset space ~
18569 \end_inset
18570
18571 」とvolumeキーを出力するという意味です。また、
18572 \begin_inset Newline newline
18573 \end_inset
18574
18575
18576 \begin_inset Flex Code
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 {%author%[[%author%]][[%editor%, ed.]]}
18581 \end_layout
18582
18583 \end_inset
18584
18585
18586 \begin_inset Newline newline
18587 \end_inset
18588
18589 のように、条件の中にelse節を含めることも可能です。ここでは、もし
18590 \begin_inset Flex Code
18591 status collapsed
18592
18593 \begin_layout Plain Layout
18594 author
18595 \end_layout
18596
18597 \end_inset
18598
18599 キーが存在するならば出力され、そうでなければeditorキーと「,
18600 \begin_inset space ~
18601 \end_inset
18602
18603 ed.」が出力されます。ここでもキーは、
18604 \begin_inset Flex Code
18605 status collapsed
18606
18607 \begin_layout Plain Layout
18608 %
18609 \end_layout
18610
18611 \end_inset
18612
18613 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 [[
18619 \end_layout
18620
18621 \end_inset
18622
18623 」と「
18624 \begin_inset Flex Code
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628 ]]
18629 \end_layout
18630
18631 \end_inset
18632
18633 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
18634 \end_layout
18635
18636 \begin_layout Standard
18637 もう一つ、定義中で使用することのできる文法として、
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 {!<i>!}
18643 \end_layout
18644
18645 \end_inset
18646
18647 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
18648 グを出力させたくはありませんから、HTMLタグは「
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 {!
18654 \end_layout
18655
18656 \end_inset
18657
18658 」と「
18659 \begin_inset Flex Code
18660 status collapsed
18661
18662 \begin_layout Plain Layout
18663 !}
18664 \end_layout
18665
18666 \end_inset
18667
18668 」でくるんでやらなくてはならないのです。
18669 \end_layout
18670
18671 \begin_layout Standard
18672 \begin_inset Flex Code
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676 CiteFormat
18677 \end_layout
18678
18679 \end_inset
18680
18681 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
18682 \end_layout
18683
18684 \begin_layout LyX-Code
18685 !quotetitle 
18686 \begin_inset Quotes eld
18687 \end_inset
18688
18689 %title%
18690 \begin_inset Quotes erd
18691 \end_inset
18692
18693
18694 \end_layout
18695
18696 \begin_layout Standard
18697 といった例が挙げられます。これは、短縮形ないしはマクロであり、
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 %!quotetitle%
18703 \end_layout
18704
18705 \end_inset
18706
18707 のように、これがキーであるかのように扱って使用することができます。\SpecialChar LyX
18708 は、
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 %!quotetitle%
18714 \end_layout
18715
18716 \end_inset
18717
18718 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
18719 \end_layout
18720
18721 \begin_layout LyX-Code
18722 !funfun %funfun%
18723 \end_layout
18724
18725 \begin_layout Standard
18726 のようなことはしないでください。\SpecialChar LyX
18727 は、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
18728 \end_layout
18729
18730 \begin_layout Standard
18731 特殊な定義の二つめは、
18732 \end_layout
18733
18734 \begin_layout LyX-Code
18735 _pptext pp.
18736 \end_layout
18737
18738 \begin_layout Standard
18739 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744 %_pptext%
18745 \end_layout
18746
18747 \end_inset
18748
18749 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754 stdciteformats.inc
18755 \end_layout
18756
18757 \end_inset
18758
18759 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
18760 \end_layout
18761
18762 \begin_layout Standard
18763 以下は、これらの機能を全て使った例です。
18764 \begin_inset VSpace defskip
18765 \end_inset
18766
18767
18768 \end_layout
18769
18770 \begin_layout Standard
18771 \noindent
18772
18773 \family typewriter
18774 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18775 \end_layout
18776
18777 \begin_layout Standard
18778 \begin_inset VSpace defskip
18779 \end_inset
18780
18781 これは、
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 author
18787 \end_layout
18788
18789 \end_inset
18790
18791 キーが定義されているならば、著者とコンマを出力し、
18792 \begin_inset Flex Code
18793 status collapsed
18794
18795 \begin_layout Plain Layout
18796 author
18797 \end_layout
18798
18799 \end_inset
18800
18801 キーが定義されておらず、
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 editor
18807 \end_layout
18808
18809 \end_inset
18810
18811 キーが定義されているならば、編集者名の後に
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 _edtext
18817 \end_layout
18818
18819 \end_inset
18820
18821 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
18822 \begin_inset Flex Code
18823 status collapsed
18824
18825 \begin_layout Plain Layout
18826 stdciteformats.inc
18827 \end_layout
18828
18829 \end_inset
18830
18831 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
18832 \end_layout
18833
18834 \begin_layout Section
18835 \begin_inset CommandInset label
18836 LatexCommand label
18837 name "sec:XHTML出力のタグ"
18838
18839 \end_inset
18840
18841 XHTML出力のタグ
18842 \end_layout
18843
18844 \begin_layout Standard
18845 \SpecialChar LaTeX
18846 やDocBookと同様、\SpecialChar LyX
18847 のXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、\SpecialChar LyX
18848 は適切な既定値を提供し、前述したように、他のレイアウト
18849 タグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、\SpecialChar LyX
18850 は、章様式の
18851 \begin_inset Flex Code
18852 status collapsed
18853
18854 \begin_layout Plain Layout
18855 Font
18856 \end_layout
18857
18858 \end_inset
18859
18860 宣言で提供されている情報を利用しようと試みます。
18861 \end_layout
18862
18863 \begin_layout Standard
18864 したがって、多くの場合、使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら
18865 、これが必要になる場合もあるので、\SpecialChar LyX
18866 は、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
18867 \end_layout
18868
18869 \begin_layout Standard
18870 様式宣言や差込枠宣言の外で使用することができるタグに、
18871 \begin_inset Flex Code
18872 status collapsed
18873
18874 \begin_layout Plain Layout
18875 HTMLPreamble
18876 \end_layout
18877
18878 \end_inset
18879
18880
18881 \begin_inset Flex Code
18882 status collapsed
18883
18884 \begin_layout Plain Layout
18885 AddToHTMLPreamble
18886 \end_layout
18887
18888 \end_inset
18889
18890 の2つがあることに注意してください。これらの詳細については、
18891 \begin_inset CommandInset ref
18892 LatexCommand ref
18893 reference "subsec:汎用テキストクラスパラメータ"
18894
18895 \end_inset
18896
18897 をご覧ください。
18898 \end_layout
18899
18900 \begin_layout Subsection
18901 \begin_inset CommandInset label
18902 LatexCommand label
18903 name "subsec:段落様式-XHTML"
18904
18905 \end_inset
18906
18907 段落様式
18908 \end_layout
18909
18910 \begin_layout Standard
18911 \SpecialChar LyX
18912 が段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対応する
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 \SpecialChar LaTeX
18918 Type
18919 \end_layout
18920
18921 \end_inset
18922
18923 タグの内容によって決定されます。
18924 \end_layout
18925
18926 \begin_layout Standard
18927 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
18928 \end_layout
18929
18930 \begin_layout LyX-Code
18931 <tag attr=
18932 \begin_inset Quotes erd
18933 \end_inset
18934
18935 value
18936 \begin_inset Quotes erd
18937 \end_inset
18938
18939 >
18940 \end_layout
18941
18942 \begin_layout LyX-Code
18943 <labeltag attr=
18944 \begin_inset Quotes erd
18945 \end_inset
18946
18947 value
18948 \begin_inset Quotes erd
18949 \end_inset
18950
18951 >ラベル</labeltag>
18952 \end_layout
18953
18954 \begin_layout LyX-Code
18955 段落の内容
18956 \end_layout
18957
18958 \begin_layout LyX-Code
18959 </tag>
18960 \end_layout
18961
18962 \begin_layout Standard
18963 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
18964 \end_layout
18965
18966 \begin_layout Standard
18967 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
18968 \end_layout
18969
18970 \begin_layout LyX-Code
18971 <tag attr=
18972 \begin_inset Quotes erd
18973 \end_inset
18974
18975 value
18976 \begin_inset Quotes erd
18977 \end_inset
18978
18979 >
18980 \end_layout
18981
18982 \begin_layout LyX-Code
18983 <itemtag attr=
18984 \begin_inset Quotes erd
18985 \end_inset
18986
18987 value
18988 \begin_inset Quotes erd
18989 \end_inset
18990
18991 ><labeltag attr=
18992 \begin_inset Quotes erd
18993 \end_inset
18994
18995 value
18996 \begin_inset Quotes erd
18997 \end_inset
18998
18999 >環境ラベル</labeltag>最初の段落。
19000 \end_layout
19001
19002 \begin_layout LyX-Code
19003 </itemtag>
19004 \end_layout
19005
19006 \begin_layout LyX-Code
19007 <itemtag>二つめの段落。</itemtag>
19008 \end_layout
19009
19010 \begin_layout LyX-Code
19011 </tag>
19012 \end_layout
19013
19014 \begin_layout Standard
19015 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
19016 \end_layout
19017
19018 \begin_layout Standard
19019 リストに関しては、次のような形になります。
19020 \end_layout
19021
19022 \begin_layout LyX-Code
19023 <tag attr=
19024 \begin_inset Quotes erd
19025 \end_inset
19026
19027 value
19028 \begin_inset Quotes erd
19029 \end_inset
19030
19031 >
19032 \end_layout
19033
19034 \begin_layout LyX-Code
19035 <itemtag attr=
19036 \begin_inset Quotes erd
19037 \end_inset
19038
19039 value
19040 \begin_inset Quotes erd
19041 \end_inset
19042
19043 ><labeltag attr=
19044 \begin_inset Quotes erd
19045 \end_inset
19046
19047 value
19048 \begin_inset Quotes erd
19049 \end_inset
19050
19051 >リストのラベル</labeltag>最初の項目。</itemtag>
19052 \end_layout
19053
19054 \begin_layout LyX-Code
19055 <itemtag attr=
19056 \begin_inset Quotes erd
19057 \end_inset
19058
19059 value
19060 \begin_inset Quotes erd
19061 \end_inset
19062
19063 ><labeltag attr=
19064 \begin_inset Quotes erd
19065 \end_inset
19066
19067 value
19068 \begin_inset Quotes erd
19069 \end_inset
19070
19071 >リストのラベル</labeltag>二つめの項目。</itemtag>
19072 \end_layout
19073
19074 \begin_layout LyX-Code
19075 </tag>
19076 \end_layout
19077
19078 \begin_layout LyX-Code
19079
19080 \end_layout
19081
19082 \begin_layout LyX-Code
19083 <tag attr=
19084 \begin_inset Quotes erd
19085 \end_inset
19086
19087 value
19088 \begin_inset Quotes erd
19089 \end_inset
19090
19091 >
19092 \end_layout
19093
19094 \begin_layout LyX-Code
19095 <labeltag attr=
19096 \begin_inset Quotes erd
19097 \end_inset
19098
19099 value
19100 \begin_inset Quotes erd
19101 \end_inset
19102
19103 >リストのラベル</labeltag><itemtag attr=
19104 \begin_inset Quotes erd
19105 \end_inset
19106
19107 value
19108 \begin_inset Quotes erd
19109 \end_inset
19110
19111 >最初の項目。</itemtag>
19112 \end_layout
19113
19114 \begin_layout LyX-Code
19115 <labeltag attr=
19116 \begin_inset Quotes erd
19117 \end_inset
19118
19119 value
19120 \begin_inset Quotes erd
19121 \end_inset
19122
19123 >リストのラベル</labeltag><itemtag attr=
19124 \begin_inset Quotes erd
19125 \end_inset
19126
19127 value
19128 \begin_inset Quotes erd
19129 \end_inset
19130
19131 >二つめの項目</itemtag>
19132 \end_layout
19133
19134 \begin_layout LyX-Code
19135 </tag>
19136 \end_layout
19137
19138 \begin_layout Standard
19139 ここで
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 labeltag
19145 \end_layout
19146
19147 \end_inset
19148
19149
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 itemtag
19155 \end_layout
19156
19157 \end_inset
19158
19159 の順序が違っていることに注意してください。どちらの順序になるかは、
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 HTMLLabelFirst
19165 \end_layout
19166
19167 \end_inset
19168
19169 の設定に依存します。もし
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 HTMLLabelFirst
19175 \end_layout
19176
19177 \end_inset
19178
19179 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
19180 \end_layout
19181
19182 \begin_layout Standard
19183 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、\SpecialChar LyX
19184 は適切な既定値を生成
19185 するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整する目的
19186 でここにあるものと考えてください。
19187 \end_layout
19188
19189 \begin_layout Description
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 HTMLAttr
19195 \end_layout
19196
19197 \end_inset
19198
19199  [
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 文字列
19205 \end_layout
19206
19207 \end_inset
19208
19209 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 class=`mydiv'
19215 \end_layout
19216
19217 \end_inset
19218
19219 」のようなものです。既定においては、\SpecialChar LyX
19220 は「
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 class=`レイアウト名'
19226 \end_layout
19227
19228 \end_inset
19229
19230 」と出力します。ここで
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 レイアウト名
19236 \end_layout
19237
19238 \end_inset
19239
19240 は、レイアウトの\SpecialChar LyX
19241 名であり、chapterのように小文字で記述します。
19242 \end_layout
19243
19244 \begin_layout Description
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 HTMLForceCSS
19250 \end_layout
19251
19252 \end_inset
19253
19254  [
19255 \begin_inset Flex Code
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259
19260 \emph on
19261 0
19262 \emph default
19263 ,1
19264 \end_layout
19265
19266 \end_inset
19267
19268 ] 
19269 \begin_inset Flex Code
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 HTMLStyle
19274 \end_layout
19275
19276 \end_inset
19277
19278 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19279 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 1
19285 \end_layout
19286
19287 \end_inset
19288
19289 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 0
19295 \end_layout
19296
19297 \end_inset
19298
19299 です。
19300 \end_layout
19301
19302 \begin_layout Description
19303 \begin_inset Flex Code
19304 status collapsed
19305
19306 \begin_layout Plain Layout
19307 HTMLItem
19308 \end_layout
19309
19310 \end_inset
19311
19312  [
19313 \begin_inset Flex Code
19314 status collapsed
19315
19316 \begin_layout Plain Layout
19317 文字列
19318 \end_layout
19319
19320 \end_inset
19321
19322 ] 環境の段落に使用されるタグ。上記各例の
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327 itemtag
19328 \end_layout
19329
19330 \end_inset
19331
19332 を置き換えます。既定値は
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 div
19338 \end_layout
19339
19340 \end_inset
19341
19342 です。
19343 \end_layout
19344
19345 \begin_layout Description
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 HTMLItemAttr
19351 \end_layout
19352
19353 \end_inset
19354
19355  [
19356 \begin_inset Flex Code
19357 status collapsed
19358
19359 \begin_layout Plain Layout
19360 文字列
19361 \end_layout
19362
19363 \end_inset
19364
19365 ] itemタグの属性。既定値は
19366 \begin_inset Flex Code
19367 status collapsed
19368
19369 \begin_layout Plain Layout
19370 class=`レイアウト名_item'
19371 \end_layout
19372
19373 \end_inset
19374
19375 です。ここには、様式情報は含まれては
19376 \emph on
19377 なりません
19378 \emph default
19379 。その目的のためには、
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 HTMLStyle
19385 \end_layout
19386
19387 \end_inset
19388
19389 を使用してください。
19390 \end_layout
19391
19392 \begin_layout Description
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 HTMLLabel
19398 \end_layout
19399
19400 \end_inset
19401
19402  [
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 文字列
19408 \end_layout
19409
19410 \end_inset
19411
19412 ] 段落と項目ラベルに使用されるタグ。上記各例の
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 labeltag
19418 \end_layout
19419
19420 \end_inset
19421
19422 を置き換えます。
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 LabelType
19428 \end_layout
19429
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 Top_Environment
19438 \end_layout
19439
19440 \end_inset
19441
19442
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 Centered_Top_Environment
19448 \end_layout
19449
19450 \end_inset
19451
19452 の時は、既定値は
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 div
19458 \end_layout
19459
19460 \end_inset
19461
19462 ですが、それ以外の時の既定値は
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 span
19468 \end_layout
19469
19470 \end_inset
19471
19472 です。
19473 \end_layout
19474
19475 \begin_layout Description
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 HTMLLabelAttr
19481 \end_layout
19482
19483 \end_inset
19484
19485  [
19486 \begin_inset Flex Code
19487 status collapsed
19488
19489 \begin_layout Plain Layout
19490 文字列
19491 \end_layout
19492
19493 \end_inset
19494
19495 ] labelタグの属性。既定値は
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 class=`レイアウト名_label'
19501 \end_layout
19502
19503 \end_inset
19504
19505 です。ここには、様式情報は含まれては
19506 \emph on
19507 なりません
19508 \emph default
19509 。その目的のためには、
19510 \begin_inset Flex Code
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514 HTMLStyle
19515 \end_layout
19516
19517 \end_inset
19518
19519 を使用してください。
19520 \end_layout
19521
19522 \begin_layout Description
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 HTMLLabelFirst
19528 \end_layout
19529
19530 \end_inset
19531
19532  [
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537
19538 \emph on
19539 0
19540 \emph default
19541 ,1
19542 \end_layout
19543
19544 \end_inset
19545
19546 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
19547 tion環境の中で、
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 `<dt>\SpecialChar ldots
19553 </dt><dd>\SpecialChar ldots
19554 </dd>
19555 \end_layout
19556
19557 \end_inset
19558
19559 という形を得るために使用されます。既定値は
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564 0
19565 \end_layout
19566
19567 \end_inset
19568
19569 で、labelタグはitemタグの中に出力されます。
19570 \end_layout
19571
19572 \begin_layout Description
19573 \begin_inset Flex Code
19574 status collapsed
19575
19576 \begin_layout Plain Layout
19577 HTMLPreamble
19578 \end_layout
19579
19580 \end_inset
19581
19582  この様式が使用されたときに、
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 <head>
19588 \end_layout
19589
19590 \end_inset
19591
19592 セクションに出力される情報。これは、たとえば、
19593 \begin_inset Flex Code
19594 status collapsed
19595
19596 \begin_layout Plain Layout
19597 onclick
19598 \end_layout
19599
19600 \end_inset
19601
19602 ハンドラを定義するために
19603 \begin_inset Flex Code
19604 status collapsed
19605
19606 \begin_layout Plain Layout
19607 <script>
19608 \end_layout
19609
19610 \end_inset
19611
19612 ブロックをインクルードするのに使用することができます。
19613 \end_layout
19614
19615 \begin_layout Description
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620 HTMLStyle
19621 \end_layout
19622
19623 \end_inset
19624
19625   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 <style>
19631 \end_layout
19632
19633 \end_inset
19634
19635 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 EndHTMLStyle
19641 \end_layout
19642
19643 \end_inset
19644
19645 で閉じなくてはなりません。
19646 \end_layout
19647
19648 \begin_layout Description
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 HTMLTag
19654 \end_layout
19655
19656 \end_inset
19657
19658  [
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 文字列
19664 \end_layout
19665
19666 \end_inset
19667
19668 ] 主幹ラベルに使用されるタグ。上記各例の
19669 \begin_inset Flex Code
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 tag
19674 \end_layout
19675
19676 \end_inset
19677
19678 を置き換えます。既定値は
19679 \begin_inset Flex Code
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 div
19684 \end_layout
19685
19686 \end_inset
19687
19688 です。
19689 \end_layout
19690
19691 \begin_layout Description
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 HTMLTitle
19697 \end_layout
19698
19699 \end_inset
19700
19701  [
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706
19707 \emph on
19708 0
19709 \emph default
19710 ,1
19711 \end_layout
19712
19713 \end_inset
19714
19715 ] この様式が、XHTMLファイルの
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720 <title>
19721 \end_layout
19722
19723 \end_inset
19724
19725 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 stdtitle.inc
19731 \end_layout
19732
19733 \end_inset
19734
19735 ファイルでは、
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740 title
19741 \end_layout
19742
19743 \end_inset
19744
19745 環境のこの項目を真に設定しています。
19746 \end_layout
19747
19748 \begin_layout Subsection
19749 差込枠レイアウトXHTML
19750 \end_layout
19751
19752 \begin_layout Standard
19753 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
19754 \begin_inset Foot
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19759 ん。
19760 \end_layout
19761
19762 \end_inset
19763
19764 。ここでも、\SpecialChar LyX
19765 は適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
19766 \end_layout
19767
19768 \begin_layout Standard
19769 \SpecialChar LyX
19770 が差込枠用に出力するXHTMLは、以下の形を取ります。
19771 \end_layout
19772
19773 \begin_layout LyX-Code
19774 <tag attr=
19775 \begin_inset Quotes erd
19776 \end_inset
19777
19778 value
19779 \begin_inset Quotes erd
19780 \end_inset
19781
19782 >
19783 \end_layout
19784
19785 \begin_layout LyX-Code
19786 <labeltag>ラベル</labeltag>
19787 \end_layout
19788
19789 \begin_layout LyX-Code
19790 <innertag attr=
19791 \begin_inset Quotes erd
19792 \end_inset
19793
19794 value
19795 \begin_inset Quotes erd
19796 \end_inset
19797
19798 >差込枠の内容。</innertag>
19799 \end_layout
19800
19801 \begin_layout LyX-Code
19802 </tag>
19803 \end_layout
19804
19805 \begin_layout Standard
19806 差込枠が多段落を許可している—つまり
19807 \begin_inset Flex Code
19808 status collapsed
19809
19810 \begin_layout Plain Layout
19811 MultiPar
19812 \end_layout
19813
19814 \end_inset
19815
19816 が真—ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなければ、
19817 labelタグは省略され、ラベルがあれば、現在のところ、つねに
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 span
19823 \end_layout
19824
19825 \end_inset
19826
19827 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
19828 す。
19829 \end_layout
19830
19831 \begin_layout Description
19832 \begin_inset Flex Code
19833 status collapsed
19834
19835 \begin_layout Plain Layout
19836 HTMLAttr
19837 \end_layout
19838
19839 \end_inset
19840
19841  [
19842 \begin_inset Flex Code
19843 status collapsed
19844
19845 \begin_layout Plain Layout
19846 文字列
19847 \end_layout
19848
19849 \end_inset
19850
19851 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
19852 \begin_inset Flex Code
19853 status collapsed
19854
19855 \begin_layout Plain Layout
19856 class=`myinset' onclick=`\SpecialChar ldots
19857 '
19858 \end_layout
19859
19860 \end_inset
19861
19862 」のようなものです。既定においては、\SpecialChar LyX
19863 は「
19864 \begin_inset Flex Code
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 class=`差込枠名'
19869 \end_layout
19870
19871 \end_inset
19872
19873 」と出力します。ここで
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 差込枠名
19879 \end_layout
19880
19881 \end_inset
19882
19883 は、差込枠の\SpecialChar LyX
19884 名であり、小文字で記述します。アルファベットや数字以外の文字は、アンダースコアに置き換えられます。
19885 \end_layout
19886
19887 \begin_layout Description
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 HTMLForceCSS
19893 \end_layout
19894
19895 \end_inset
19896
19897  [
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902
19903 \emph on
19904 0
19905 \emph default
19906 ,1
19907 \end_layout
19908
19909 \end_inset
19910
19911 ] 
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916 HTMLStyle
19917 \end_layout
19918
19919 \end_inset
19920
19921 で追加情報が明示的に与えられているときでも、\SpecialChar LyX
19922 がこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 1
19928 \end_layout
19929
19930 \end_inset
19931
19932 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
19933 \begin_inset Flex Code
19934 status collapsed
19935
19936 \begin_layout Plain Layout
19937 0
19938 \end_layout
19939
19940 \end_inset
19941
19942 です。
19943 \end_layout
19944
19945 \begin_layout Description
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 HTMLInnerAttr
19951 \end_layout
19952
19953 \end_inset
19954
19955  [
19956 \begin_inset Flex Code
19957 status collapsed
19958
19959 \begin_layout Plain Layout
19960 文字列
19961 \end_layout
19962
19963 \end_inset
19964
19965 ] innerタグの属性。既定値は
19966 \begin_inset Flex Code
19967 status collapsed
19968
19969 \begin_layout Plain Layout
19970 class=`差込枠名_inner'
19971 \end_layout
19972
19973 \end_inset
19974
19975 です。
19976 \end_layout
19977
19978 \begin_layout Description
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 HTMLInnerTag
19984 \end_layout
19985
19986 \end_inset
19987
19988  [
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 文字列
19994 \end_layout
19995
19996 \end_inset
19997
19998 ] innerタグです。上記各例の
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 innertag
20004 \end_layout
20005
20006 \end_inset
20007
20008 を置き換えます。既定値はなしです。
20009 \end_layout
20010
20011 \begin_layout Description
20012 \begin_inset Flex Code
20013 status collapsed
20014
20015 \begin_layout Plain Layout
20016 HTMLIsBlock
20017 \end_layout
20018
20019 \end_inset
20020
20021  [
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 0,
20027 \emph on
20028 1
20029 \end_layout
20030
20031 \end_inset
20032
20033 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
20034 \end_layout
20035
20036 \begin_layout Description
20037 \begin_inset Flex Code
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 HTMLLabel
20042 \end_layout
20043
20044 \end_inset
20045
20046  [
20047 \begin_inset Flex Code
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051 文字列
20052 \end_layout
20053
20054 \end_inset
20055
20056 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061
20062 \backslash
20063 arabic{footnote}
20064 \end_layout
20065
20066 \end_inset
20067
20068 など。これは非必須であり、既定値はありません。
20069 \end_layout
20070
20071 \begin_layout Description
20072 \begin_inset Flex Code
20073 status collapsed
20074
20075 \begin_layout Plain Layout
20076 HTMLPreamble
20077 \end_layout
20078
20079 \end_inset
20080
20081  この様式が使用されたときに、
20082 \begin_inset Flex Code
20083 status collapsed
20084
20085 \begin_layout Plain Layout
20086 <head>
20087 \end_layout
20088
20089 \end_inset
20090
20091 セクションに出力される情報。これは、たとえば、
20092 \begin_inset Flex Code
20093 status collapsed
20094
20095 \begin_layout Plain Layout
20096 onclick
20097 \end_layout
20098
20099 \end_inset
20100
20101 ハンドラを定義するために
20102 \begin_inset Flex Code
20103 status collapsed
20104
20105 \begin_layout Plain Layout
20106 <script>
20107 \end_layout
20108
20109 \end_inset
20110
20111 ブロックをインクルードするのに使用することができます。
20112 \end_layout
20113
20114 \begin_layout Description
20115 \begin_inset Flex Code
20116 status collapsed
20117
20118 \begin_layout Plain Layout
20119 HTMLStyle
20120 \end_layout
20121
20122 \end_inset
20123
20124   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 <style>
20130 \end_layout
20131
20132 \end_inset
20133
20134 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20135 \end_layout
20136
20137 \begin_layout Description
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142 HTMLTag
20143 \end_layout
20144
20145 \end_inset
20146
20147  [
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152 文字列
20153 \end_layout
20154
20155 \end_inset
20156
20157 ] 主幹ラベルに使用されるタグ。上記各例の
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 tag
20163 \end_layout
20164
20165 \end_inset
20166
20167 を置き換えます。既定値は
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 MultiPar
20173 \end_layout
20174
20175 \end_inset
20176
20177 の設定に依存し、
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 MultiPar
20183 \end_layout
20184
20185 \end_inset
20186
20187 が真ならば
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 div
20193 \end_layout
20194
20195 \end_inset
20196
20197 、偽ならば
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202 span
20203 \end_layout
20204
20205 \end_inset
20206
20207 です。
20208 \end_layout
20209
20210 \begin_layout Subsection
20211 フロートXHTML
20212 \end_layout
20213
20214 \begin_layout Standard
20215 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
20216 \end_layout
20217
20218 \begin_layout LyX-Code
20219 <tag attr=
20220 \begin_inset Quotes erd
20221 \end_inset
20222
20223 value
20224 \begin_inset Quotes erd
20225 \end_inset
20226
20227 >
20228 \end_layout
20229
20230 \begin_layout LyX-Code
20231 フロートの内容。
20232 \end_layout
20233
20234 \begin_layout LyX-Code
20235 </tag>
20236 \end_layout
20237
20238 \begin_layout Standard
20239 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
20240 きます。
20241 \end_layout
20242
20243 \begin_layout Description
20244 \begin_inset Flex Code
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248 HTMLAttr
20249 \end_layout
20250
20251 \end_inset
20252
20253  [
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 文字列
20259 \end_layout
20260
20261 \end_inset
20262
20263 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268 class=`myfloat' onclick=`\SpecialChar ldots
20269 '
20270 \end_layout
20271
20272 \end_inset
20273
20274 」のようなものです。既定においては、\SpecialChar LyX
20275 は「
20276 \begin_inset Flex Code
20277 status collapsed
20278
20279 \begin_layout Plain Layout
20280 class=`float フロート-フロート型'
20281 \end_layout
20282
20283 \end_inset
20284
20285 」と出力します。ここで
20286 \begin_inset Flex Code
20287 status collapsed
20288
20289 \begin_layout Plain Layout
20290 フロート型
20291 \end_layout
20292
20293 \end_inset
20294
20295 は、フロート宣言で定義された(
20296 \begin_inset CommandInset ref
20297 LatexCommand ref
20298 reference "subsec:フロート"
20299
20300 \end_inset
20301
20302 参照)、この型のフロートの\SpecialChar LyX
20303 名です。ただし、これは小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
20304 \end_layout
20305
20306 \begin_layout Description
20307 \begin_inset Flex Code
20308 status collapsed
20309
20310 \begin_layout Plain Layout
20311 HTMLStyle
20312 \end_layout
20313
20314 \end_inset
20315
20316   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 <style>
20322 \end_layout
20323
20324 \end_inset
20325
20326 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
20327 \end_layout
20328
20329 \begin_layout Description
20330 \begin_inset Flex Code
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334 HTMLTag
20335 \end_layout
20336
20337 \end_inset
20338
20339  [
20340 \begin_inset Flex Code
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 文字列
20345 \end_layout
20346
20347 \end_inset
20348
20349 ] このフロートに使用されるタグ。上記各例の
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 tag
20355 \end_layout
20356
20357 \end_inset
20358
20359 を置き換えます。既定値は
20360 \begin_inset Flex Code
20361 status collapsed
20362
20363 \begin_layout Plain Layout
20364 div
20365 \end_layout
20366
20367 \end_inset
20368
20369 であり、ほとんどの場合変更する必要はありません。
20370 \end_layout
20371
20372 \begin_layout Subsection
20373 書誌情報の整形
20374 \end_layout
20375
20376 \begin_layout Standard
20377 書誌情報は、
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 CiteFormat
20383 \end_layout
20384
20385 \end_inset
20386
20387 ブロックを使用して整形することができます。詳細については、
20388 \begin_inset CommandInset ref
20389 LatexCommand ref
20390 reference "subsec:引用書式指定"
20391
20392 \end_inset
20393
20394 を参照してください。
20395 \end_layout
20396
20397 \begin_layout Subsection
20398 \SpecialChar LyX
20399 が生成したCSS
20400 \end_layout
20401
20402 \begin_layout Standard
20403 \SpecialChar LyX
20404 は、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節では、\SpecialChar LyX
20405
20406 がどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
20407 \end_layout
20408
20409 \begin_layout Standard
20410 \SpecialChar LyX
20411 は、現在のところ、
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 Font
20417 \end_layout
20418
20419 \end_inset
20420
20421 宣言で指定されている
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 Family
20427 \end_layout
20428
20429 \end_inset
20430
20431
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 Series
20437 \end_layout
20438
20439 \end_inset
20440
20441
20442 \begin_inset Flex Code
20443 status collapsed
20444
20445 \begin_layout Plain Layout
20446 Shape
20447 \end_layout
20448
20449 \end_inset
20450
20451
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 Size
20457 \end_layout
20458
20459 \end_inset
20460
20461 を利用して、フォント情報についてのみCSSを自動生成します(
20462 \begin_inset CommandInset ref
20463 LatexCommand ref
20464 reference "subsec:フォント指定"
20465
20466 \end_inset
20467
20468 を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 Family Sans
20474 \end_layout
20475
20476 \end_inset
20477
20478 」は「
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 font-family: sans-serif
20484 \end_layout
20485
20486 \end_inset
20487
20488 」になります。\SpecialChar LyX
20489 の寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
20490 \begin_inset Flex URL
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494
20495 src/FontInfo.cpp
20496 \end_layout
20497
20498 \end_inset
20499
20500
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 getSizeCSS()
20506 \end_layout
20507
20508 \end_inset
20509
20510 関数をご覧ください。
20511 \end_layout
20512
20513 \begin_layout Chapter
20514 外部素材を取り込む
20515 \begin_inset CommandInset label
20516 LatexCommand label
20517 name "chap:外部素材を取り込む"
20518
20519 \end_inset
20520
20521
20522 \end_layout
20523
20524 \begin_layout Standard
20525 \begin_inset Box Shadowbox
20526 position "t"
20527 hor_pos "c"
20528 has_inner_box 1
20529 inner_pos "t"
20530 use_parbox 0
20531 use_makebox 0
20532 width "100col%"
20533 special "none"
20534 height "1in"
20535 height_special "totalheight"
20536 thickness "0.4pt"
20537 separation "3pt"
20538 shadowsize "4pt"
20539 framecolor "black"
20540 backgroundcolor "none"
20541 status open
20542
20543 \begin_layout Plain Layout
20544 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
20545 \end_layout
20546
20547 \end_inset
20548
20549
20550 \end_layout
20551
20552 \begin_layout Standard
20553 \SpecialChar LyX
20554 外部のソースから素材を使用する方法は、取扱説明書『
20555 \emph on
20556 埋込オブジェクト篇
20557 \emph default
20558 』で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
20559 \end_layout
20560
20561 \begin_layout Section
20562 どのように機能するのか
20563 \end_layout
20564
20565 \begin_layout Standard
20566 外部素材の機能は、ひな型の概念に基づいています。ひな型は、\SpecialChar LyX
20567 がある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、\SpecialChar LyX
20568 は、Xfigの図や、様々
20569 なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
20570 \begin_inset Flex MenuItem
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 挿入\SpecialChar menuseparator
20575 ファイル\SpecialChar menuseparator
20576 外部素材
20577 \end_layout
20578
20579 \end_inset
20580
20581 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
20582 すが、できればあなたが作ったすべてのひな型を投稿して、我々が\SpecialChar LyX
20583 の後の版に取り込むことができるようにしてくださることを希望します。
20584 \end_layout
20585
20586 \begin_layout Standard
20587 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20588 いることです。たとえば、
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 Xfig
20594 \end_layout
20595
20596 \end_inset
20597
20598 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 .fig
20604 \end_layout
20605
20606 \end_inset
20607
20608 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 fig
20614 \end_layout
20615
20616 \end_inset
20617
20618 ファイルに保存します。この図をお使いの文書に取り込みたいときには、\SpecialChar LaTeX
20619 ファイルにそのままインクルードできるように、
20620 \begin_inset Flex Code
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 transfig
20625 \end_layout
20626
20627 \end_inset
20628
20629 を呼び出してPostScriptファイルを生成します。この場合には、
20630 \begin_inset Flex Code
20631 status collapsed
20632
20633 \begin_layout Plain Layout
20634 .fig
20635 \end_layout
20636
20637 \end_inset
20638
20639 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
20640 \end_layout
20641
20642 \begin_layout Standard
20643 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
20644 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
20645 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。\SpecialChar LyX
20646 の外部素材マネジメントは
20647 、\SpecialChar LyX
20648 がサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
20649 \end_layout
20650
20651 \begin_layout Standard
20652 \SpecialChar LyX
20653 の外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfigの図
20654 の場合には、\SpecialChar LyX
20655 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScriptファイ
20656 ルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20657 イルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を上げることが
20658 できるようになるのです。
20659 \end_layout
20660
20661 \begin_layout Section
20662 外用ひな型設定ファイル
20663 \end_layout
20664
20665 \begin_layout Standard
20666 \SpecialChar LyX
20667 に自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホールを
20668 作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、
20669 \begin_inset CommandInset ref
20670 LatexCommand ref
20671 reference "sec:セキュリティに関する論点"
20672
20673 \end_inset
20674
20675 のセキュリティに関する議論を読んでおいてください。
20676 \end_layout
20677
20678 \begin_layout Standard
20679 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
20680 \end_layout
20681
20682 \begin_layout Standard
20683 外用ひな型は、
20684 \begin_inset Flex Code
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 \SpecialChar LyX
20689 Dir/lib/external_templates
20690 \end_layout
20691
20692 \end_inset
20693
20694 ファイルで定義されています。自分用の版を
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 UserDir/external_templates
20700 \end_layout
20701
20702 \end_inset
20703
20704 に置くこともできます。
20705 \end_layout
20706
20707 \begin_layout Standard
20708 典型的なひな型は以下のようになります。
20709 \end_layout
20710
20711 \begin_layout LyX-Code
20712 Template XFig
20713 \end_layout
20714
20715 \begin_layout LyX-Code
20716 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20717 \end_layout
20718
20719 \begin_layout LyX-Code
20720 HelpText
20721 \end_layout
20722
20723 \begin_layout LyX-Code
20724 An XFig figure.
20725 \end_layout
20726
20727 \begin_layout LyX-Code
20728 HelpTextEnd
20729 \end_layout
20730
20731 \begin_layout LyX-Code
20732 InputFormat fig
20733 \end_layout
20734
20735 \begin_layout LyX-Code
20736 FileFilter "*.fig"
20737 \end_layout
20738
20739 \begin_layout LyX-Code
20740 AutomaticProduction true
20741 \end_layout
20742
20743 \begin_layout LyX-Code
20744 Transform Rotate
20745 \end_layout
20746
20747 \begin_layout LyX-Code
20748 Transform Resize
20749 \end_layout
20750
20751 \begin_layout LyX-Code
20752 Format LaT
20753 \begin_inset ERT
20754 status collapsed
20755
20756 \begin_layout Plain Layout
20757
20758 {}
20759 \end_layout
20760
20761 \end_inset
20762
20763 eX
20764 \end_layout
20765
20766 \begin_layout LyX-Code
20767 TransformCommand Rotate RotationLatexCommand
20768 \end_layout
20769
20770 \begin_layout LyX-Code
20771 TransformCommand Resize ResizeLatexCommand
20772 \end_layout
20773
20774 \begin_layout LyX-Code
20775 Product "$$RotateFront$$ResizeFront
20776 \end_layout
20777
20778 \begin_layout LyX-Code
20779          
20780 \backslash
20781
20782 \backslash
20783 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20784 \end_layout
20785
20786 \begin_layout LyX-Code
20787          $$ResizeBack$$RotateBack"
20788 \end_layout
20789
20790 \begin_layout LyX-Code
20791 UpdateFormat pstex
20792 \end_layout
20793
20794 \begin_layout LyX-Code
20795 UpdateResult "$$AbsPath$$Basename.pstex_t"
20796 \end_layout
20797
20798 \begin_layout LyX-Code
20799 Requirement "graphicx"
20800 \end_layout
20801
20802 \begin_layout LyX-Code
20803 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20804 \end_layout
20805
20806 \begin_layout LyX-Code
20807 ReferencedFile latex "$$AbsPath$$Basename.eps"
20808 \end_layout
20809
20810 \begin_layout LyX-Code
20811 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20812 \end_layout
20813
20814 \begin_layout LyX-Code
20815 FormatEnd
20816 \end_layout
20817
20818 \begin_layout LyX-Code
20819 Format PDFLaT
20820 \begin_inset ERT
20821 status collapsed
20822
20823 \begin_layout Plain Layout
20824
20825 {}
20826 \end_layout
20827
20828 \end_inset
20829
20830 eX
20831 \end_layout
20832
20833 \begin_layout LyX-Code
20834 TransformCommand Rotate RotationLatexCommand
20835 \end_layout
20836
20837 \begin_layout LyX-Code
20838 TransformCommand Resize ResizeLatexCommand
20839 \end_layout
20840
20841 \begin_layout LyX-Code
20842 Product "$$RotateFront$$ResizeFront
20843 \end_layout
20844
20845 \begin_layout LyX-Code
20846          
20847 \backslash
20848
20849 \backslash
20850 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20851 \end_layout
20852
20853 \begin_layout LyX-Code
20854          $$ResizeBack$$RotateBack"
20855 \end_layout
20856
20857 \begin_layout LyX-Code
20858 UpdateFormat pdftex
20859 \end_layout
20860
20861 \begin_layout LyX-Code
20862 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20863 \end_layout
20864
20865 \begin_layout LyX-Code
20866 Requirement "graphicx"
20867 \end_layout
20868
20869 \begin_layout LyX-Code
20870 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20871 \end_layout
20872
20873 \begin_layout LyX-Code
20874 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20875 \end_layout
20876
20877 \begin_layout LyX-Code
20878 FormatEnd
20879 \end_layout
20880
20881 \begin_layout LyX-Code
20882 Format Ascii
20883 \end_layout
20884
20885 \begin_layout LyX-Code
20886 Product "$$Contents(
20887 \backslash
20888 "$$AbsPath$$Basename.asc
20889 \backslash
20890 ")"
20891 \end_layout
20892
20893 \begin_layout LyX-Code
20894 UpdateFormat asciixfig
20895 \end_layout
20896
20897 \begin_layout LyX-Code
20898 UpdateResult "$$AbsPath$$Basename.asc"
20899 \end_layout
20900
20901 \begin_layout LyX-Code
20902 FormatEnd
20903 \end_layout
20904
20905 \begin_layout LyX-Code
20906 Format DocBook
20907 \end_layout
20908
20909 \begin_layout LyX-Code
20910 Product "<graphic fileref=
20911 \backslash
20912 "$$AbsOrRelPathMaster$$Basename.eps
20913 \backslash
20914 ">
20915 \end_layout
20916
20917 \begin_layout LyX-Code
20918          </graphic>"
20919 \end_layout
20920
20921 \begin_layout LyX-Code
20922 UpdateFormat eps
20923 \end_layout
20924
20925 \begin_layout LyX-Code
20926 UpdateResult "$$AbsPath$$Basename.eps"
20927 \end_layout
20928
20929 \begin_layout LyX-Code
20930 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20931 \end_layout
20932
20933 \begin_layout LyX-Code
20934 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20935 \end_layout
20936
20937 \begin_layout LyX-Code
20938 FormatEnd
20939 \end_layout
20940
20941 \begin_layout LyX-Code
20942 Product "[XFig: $$FName]"
20943 \end_layout
20944
20945 \begin_layout LyX-Code
20946 FormatEnd
20947 \end_layout
20948
20949 \begin_layout LyX-Code
20950 TemplateEnd
20951 \end_layout
20952
20953 \begin_layout Standard
20954 ご覧の通り、ひな型は
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 Template
20960 \end_layout
20961
20962 \end_inset
20963
20964  \SpecialChar ldots
20965  
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 TemplateEnd
20971 \end_layout
20972
20973 \end_inset
20974
20975 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル形式の設定を行う
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980 Format
20981 \end_layout
20982
20983 \end_inset
20984
20985  \SpecialChar ldots
20986  
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991 FormatEnd
20992 \end_layout
20993
20994 \end_inset
20995
20996 部があります。
20997 \end_layout
20998
20999 \begin_layout Subsection
21000 ひな型のヘッダ
21001 \end_layout
21002
21003 \begin_layout Description
21004 \begin_inset Flex Code
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 AutomaticProduction
21009 \begin_inset space ~
21010 \end_inset
21011
21012 true|false
21013 \end_layout
21014
21015 \end_inset
21016
21017  このひな型で扱うファイルを\SpecialChar LyX
21018 が生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
21019 \end_layout
21020
21021 \begin_layout Description
21022 \begin_inset Flex Code
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 FileFilter
21027 \begin_inset space ~
21028 \end_inset
21029
21030 <パターン>
21031 \end_layout
21032
21033 \end_inset
21034
21035  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 .obj
21041 \end_layout
21042
21043 \end_inset
21044
21045
21046 \begin_inset Flex Code
21047 status collapsed
21048
21049 \begin_layout Plain Layout
21050 .tgo
21051 \end_layout
21052
21053 \end_inset
21054
21055 があります)、「
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 *.{obj,tgo}
21061 \end_layout
21062
21063 \end_inset
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 GuiName
21074 \begin_inset space ~
21075 \end_inset
21076
21077 <GUI名>
21078 \end_layout
21079
21080 \end_inset
21081
21082  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
21083 \end_layout
21084
21085 \begin_layout Description
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 HelpText
21091 \begin_inset space ~
21092 \end_inset
21093
21094 <文章>
21095 \begin_inset space ~
21096 \end_inset
21097
21098 HelpTextEnd
21099 \end_layout
21100
21101 \end_inset
21102
21103  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
21104 ず現れなくてはなりません。
21105 \end_layout
21106
21107 \begin_layout Description
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 InputFormat
21113 \begin_inset space ~
21114 \end_inset
21115
21116 <書式>
21117 \end_layout
21118
21119 \end_inset
21120
21121  オリジナルファイルのファイル形式。これは、\SpecialChar LyX
21122 が知っている書式名でなくてはなりません(
21123 \begin_inset CommandInset ref
21124 LatexCommand ref
21125 reference "sec:ファイル形式"
21126
21127 \end_inset
21128
21129 参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
21130 \begin_inset Flex Code
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134 *
21135 \end_layout
21136
21137 \end_inset
21138
21139 」を使用してください。この場合、\SpecialChar LyX
21140 はファイル形式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
21141 \end_layout
21142
21143 \begin_layout Description
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 Template
21149 \begin_inset space ~
21150 \end_inset
21151
21152 <ID>
21153 \end_layout
21154
21155 \end_inset
21156
21157  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
21158 \end_layout
21159
21160 \begin_layout Description
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 Transform
21166 \begin_inset space ~
21167 \end_inset
21168
21169 Rotate|Resize|Clip|Extra
21170 \end_layout
21171
21172 \end_inset
21173
21174  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
21175 ログ中の対応するタブを使用可能にします。
21176 \begin_inset Flex Code
21177 status collapsed
21178
21179 \begin_layout Plain Layout
21180 Transform
21181 \end_layout
21182
21183 \end_inset
21184
21185 コマンド一つずつに応じて、
21186 \begin_inset Flex Code
21187 status collapsed
21188
21189 \begin_layout Plain Layout
21190 Format
21191 \end_layout
21192
21193 \end_inset
21194
21195 部に、対応する
21196 \begin_inset Flex Code
21197 status collapsed
21198
21199 \begin_layout Plain Layout
21200 TransformCommand
21201 \end_layout
21202
21203 \end_inset
21204
21205 コマンドか
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 TransformOption
21211 \end_layout
21212
21213 \end_inset
21214
21215 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
21216 \end_layout
21217
21218 \begin_layout Subsection
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 Format
21224 \end_layout
21225
21226 \end_inset
21227
21228
21229 \end_layout
21230
21231 \begin_layout Description
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 Format
21237 \begin_inset space ~
21238 \end_inset
21239
21240 LaT
21241 \begin_inset ERT
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245
21246 {}
21247 \end_layout
21248
21249 \end_inset
21250
21251 eX|PDFLaT
21252 \begin_inset ERT
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256
21257 {}
21258 \end_layout
21259
21260 \end_inset
21261
21262 eX|PlainText|DocBook
21263 \end_layout
21264
21265 \end_inset
21266
21267  この書式定義が定める主要な文書ファイル形式。すべてのひな型が、全文書ファイル形式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 Format
21273 \end_layout
21274
21275 \end_inset
21276
21277 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
21278 ようになります。
21279 \end_layout
21280
21281 \begin_layout Description
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 Option
21287 \begin_inset space ~
21288 \end_inset
21289
21290 <名称>
21291 \begin_inset space ~
21292 \end_inset
21293
21294 <値>
21295 \end_layout
21296
21297 \end_inset
21298
21299  このコマンドは、
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 Product
21305 \end_layout
21306
21307 \end_inset
21308
21309 での代入に使うマクロ
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 $$<名称>
21315 \end_layout
21316
21317 \end_inset
21318
21319 を新たに定義します。
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 <値>
21325 \end_layout
21326
21327 \end_inset
21328
21329 自体にも代入マクロを使うことができます。
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 Product
21335 \end_layout
21336
21337 \end_inset
21338
21339
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344 <値>
21345 \end_layout
21346
21347 \end_inset
21348
21349 を直接使用するよりも優れた点は、
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354 $$<名称>
21355 \end_layout
21356
21357 \end_inset
21358
21359 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
21360 \end_layout
21361
21362 \begin_layout Description
21363 \begin_inset Flex Code
21364 status collapsed
21365
21366 \begin_layout Plain Layout
21367 Product
21368 \begin_inset space ~
21369 \end_inset
21370
21371 <文>
21372 \end_layout
21373
21374 \end_inset
21375
21376  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
21377
21378 \end_layout
21379
21380 \begin_layout Description
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 Preamble
21386 \begin_inset space ~
21387 \end_inset
21388
21389 <名称>
21390 \end_layout
21391
21392 \end_inset
21393
21394  このコマンドは、\SpecialChar LaTeX
21395 プリアンブルに入れるプリアンブル片を指定します。これは
21396 \begin_inset Flex Code
21397 status collapsed
21398
21399 \begin_layout Plain Layout
21400 PreambleDef
21401 \end_layout
21402
21403 \end_inset
21404
21405  \SpecialChar ldots
21406  
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 PreambleDefEnd
21412 \end_layout
21413
21414 \end_inset
21415
21416 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
21417 \end_layout
21418
21419 \begin_layout Description
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 ReferencedFile
21425 \begin_inset space ~
21426 \end_inset
21427
21428 <書式>
21429 \begin_inset space ~
21430 \end_inset
21431
21432 <ファイル名>
21433 \end_layout
21434
21435 \end_inset
21436
21437  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
21438 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
21439 \end_layout
21440
21441 \begin_layout Description
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 Requirement
21447 \begin_inset space ~
21448 \end_inset
21449
21450 <package>
21451 \end_layout
21452
21453 \end_inset
21454
21455  必要とされる\SpecialChar LaTeX
21456 パッケージ名。パッケージは、\SpecialChar LaTeX
21457 プリアンブル中で
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462
21463 \backslash
21464 usepackage{}
21465 \end_layout
21466
21467 \end_inset
21468
21469 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
21470 \end_layout
21471
21472 \begin_layout Description
21473 \begin_inset Flex Code
21474 status collapsed
21475
21476 \begin_layout Plain Layout
21477 TransformCommand
21478 \begin_inset space ~
21479 \end_inset
21480
21481 Rotate
21482 \begin_inset space ~
21483 \end_inset
21484
21485 RotationLatexCommand
21486 \end_layout
21487
21488 \end_inset
21489
21490  このコマンドは、回転用に、組み込みの\SpecialChar LaTeX
21491 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21492 \end_layout
21493
21494 \begin_layout Description
21495 \begin_inset Flex Code
21496 status collapsed
21497
21498 \begin_layout Plain Layout
21499 TransformCommand
21500 \begin_inset space ~
21501 \end_inset
21502
21503 Resize
21504 \begin_inset space ~
21505 \end_inset
21506
21507 ResizeLatexCommand
21508 \end_layout
21509
21510 \end_inset
21511
21512  このコマンドは、伸縮用に、組み込みの\SpecialChar LaTeX
21513 コマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21514 \end_layout
21515
21516 \begin_layout Description
21517 \begin_inset Flex Code
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521 TransformOption
21522 \begin_inset space ~
21523 \end_inset
21524
21525 Rotate
21526 \begin_inset space ~
21527 \end_inset
21528
21529 RotationLatexOption
21530 \end_layout
21531
21532 \end_inset
21533
21534  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21535 \end_layout
21536
21537 \begin_layout Description
21538 \begin_inset Flex Code
21539 status collapsed
21540
21541 \begin_layout Plain Layout
21542 TransformOption
21543 \begin_inset space ~
21544 \end_inset
21545
21546 Resize
21547 \begin_inset space ~
21548 \end_inset
21549
21550 ResizeLatexOption
21551 \end_layout
21552
21553 \end_inset
21554
21555  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21556 \end_layout
21557
21558 \begin_layout Description
21559 \begin_inset Flex Code
21560 status collapsed
21561
21562 \begin_layout Plain Layout
21563 TransformOption
21564 \begin_inset space ~
21565 \end_inset
21566
21567 Clip
21568 \begin_inset space ~
21569 \end_inset
21570
21571 ClipLatexOption
21572 \end_layout
21573
21574 \end_inset
21575
21576  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
21577 \end_layout
21578
21579 \begin_layout Description
21580 \begin_inset Flex Code
21581 status collapsed
21582
21583 \begin_layout Plain Layout
21584 TransformOption
21585 \begin_inset space ~
21586 \end_inset
21587
21588 Extra
21589 \begin_inset space ~
21590 \end_inset
21591
21592 ExtraLatexOption
21593 \end_layout
21594
21595 \end_inset
21596
21597  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
21598 \end_layout
21599
21600 \begin_layout Description
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605 UpdateFormat
21606 \begin_inset space ~
21607 \end_inset
21608
21609 <書式>
21610 \end_layout
21611
21612 \end_inset
21613
21614  変換されたファイルのファイル形式。これは、\SpecialChar LyX
21615 が知っている書式名でなくてはなりません(
21616 \begin_inset Flex MenuItem
21617 status collapsed
21618
21619 \begin_layout Plain Layout
21620 ツール\SpecialChar menuseparator
21621 設定\SpecialChar menuseparator
21622 ファイル処理\SpecialChar menuseparator
21623 ファイル書式
21624 \end_layout
21625
21626 \end_inset
21627
21628 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。得られるファイル形式がPDFの場合、書式
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633 pdf6
21634 \end_layout
21635
21636 \end_inset
21637
21638 を指定する必要があります。これは画像取り込みに用いられるPDF計四機です。他の定義済みPDF形式は文書書き出し用のものです。
21639 \end_layout
21640
21641 \begin_layout Description
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646 UpdateResult
21647 \begin_inset space ~
21648 \end_inset
21649
21650 <ファイル名>
21651 \end_layout
21652
21653 \end_inset
21654
21655  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
21656 \end_layout
21657
21658 \begin_layout Subsection
21659 プリアンブルの定義
21660 \end_layout
21661
21662 \begin_layout Standard
21663 外用ひな型設定ファイルには、
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668 PreambleDef
21669 \end_layout
21670
21671 \end_inset
21672
21673  \SpecialChar ldots
21674  
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 PreambleDefEnd
21680 \end_layout
21681
21682 \end_inset
21683
21684 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 Format
21690 \end_layout
21691
21692 \end_inset
21693
21694 部で使用することができます。
21695 \end_layout
21696
21697 \begin_layout Section
21698 代入機構
21699 \end_layout
21700
21701 \begin_layout Standard
21702 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
21703 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
21704 \end_layout
21705
21706 \begin_layout Standard
21707 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
21708 \end_layout
21709
21710 \begin_layout Standard
21711 使用できるマクロは以下の通りです。
21712 \end_layout
21713
21714 \begin_layout Description
21715 \begin_inset Flex Code
21716 status collapsed
21717
21718 \begin_layout Plain Layout
21719 $$AbsOrRelPathMaster
21720 \end_layout
21721
21722 \end_inset
21723
21724  \SpecialChar LyX
21725 親文書への絶対ファイルパスないしは相対ファイルパス
21726 \end_layout
21727
21728 \begin_layout Description
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 $$AbsOrRelPathParent
21734 \end_layout
21735
21736 \end_inset
21737
21738  \SpecialChar LyX
21739 文書への絶対ファイルパスないしは相対ファイルパス
21740 \end_layout
21741
21742 \begin_layout Description
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 $$AbsPath
21748 \end_layout
21749
21750 \end_inset
21751
21752  絶対ファイルパス
21753 \end_layout
21754
21755 \begin_layout Description
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 $$Basename
21761 \end_layout
21762
21763 \end_inset
21764
21765  パスおよび拡張子を除いたファイル名
21766 \end_layout
21767
21768 \begin_layout Description
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 $$Contents(
21774 \begin_inset Quotes eld
21775 \end_inset
21776
21777 filename.ext
21778 \begin_inset Quotes erd
21779 \end_inset
21780
21781 )
21782 \end_layout
21783
21784 \end_inset
21785
21786  このマクロは、
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 filename.ext
21792 \end_layout
21793
21794 \end_inset
21795
21796 と云う名のファイルの中身を展開します。
21797 \end_layout
21798
21799 \begin_layout Description
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 $$Extension
21805 \end_layout
21806
21807 \end_inset
21808
21809  ファイル拡張子(点を含む)
21810 \end_layout
21811
21812 \begin_layout Description
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 $$pngOrjpg
21818 \end_layout
21819
21820 \end_inset
21821
21822  
21823 \lang english
21824 This will be the string 
21825 \begin_inset Quotes eld
21826 \end_inset
21827
21828 jpg
21829 \begin_inset Quotes erd
21830 \end_inset
21831
21832  if the file is in JPEG format, otherwise it will be the string 
21833 \begin_inset Quotes eld
21834 \end_inset
21835
21836 png
21837 \begin_inset Quotes erd
21838 \end_inset
21839
21840 .
21841  This is useful to avoid uneeded conversions for output formats that support
21842  both PNG and JPEG fomats.
21843  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
21844  output
21845  format.
21846 \end_layout
21847
21848 \begin_layout Description
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853 $$FName
21854 \end_layout
21855
21856 \end_inset
21857
21858  外部素材ダイアログで指定されたファイルのファイル名。これは\SpecialChar LyX
21859 文書への絶対パスでも良いですし、相対パスでも構いません。
21860 \end_layout
21861
21862 \begin_layout Description
21863 \begin_inset Flex Code
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867 $$FPath
21868 \end_layout
21869
21870 \end_inset
21871
21872  
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 $$FName
21878 \end_layout
21879
21880 \end_inset
21881
21882 のパス部分(\SpecialChar LyX
21883 文書への絶対パス名か相対パス名)
21884 \end_layout
21885
21886 \begin_layout Description
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891 $$RelPathMaster
21892 \end_layout
21893
21894 \end_inset
21895
21896  \SpecialChar LyX
21897 親文書への相対ファイルパス
21898 \end_layout
21899
21900 \begin_layout Description
21901 \begin_inset Flex Code
21902 status collapsed
21903
21904 \begin_layout Plain Layout
21905 $$RelPathParent
21906 \end_layout
21907
21908 \end_inset
21909
21910  \SpecialChar LyX
21911 文書への相対ファイルパス
21912 \end_layout
21913
21914 \begin_layout Description
21915 \begin_inset Flex Code
21916 status collapsed
21917
21918 \begin_layout Plain Layout
21919 $$Sysdir
21920 \end_layout
21921
21922 \end_inset
21923
21924  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、\SpecialChar LyX
21925 に同梱されているヘルパースクリプト群を示したりするのに使用されます。
21926 \end_layout
21927
21928 \begin_layout Description
21929 \begin_inset Flex Code
21930 status collapsed
21931
21932 \begin_layout Plain Layout
21933 $$Tempname
21934 \end_layout
21935
21936 \end_inset
21937
21938  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
21939 \end_layout
21940
21941 \begin_layout Standard
21942 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947 $$AbsPath$$Basename$$Extension
21948 \end_layout
21949
21950 \end_inset
21951
21952 のようにして作ることができます。
21953 \end_layout
21954
21955 \begin_layout Standard
21956 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961 Transform
21962 \end_layout
21963
21964 \end_inset
21965
21966 コマンドと
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971 TransformCommand
21972 \end_layout
21973
21974 \end_inset
21975
21976 コマンドが有効にされている場合、
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 Product
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 $$ResizeFront
21995 \end_layout
21996
21997 \end_inset
21998
21999  伸縮コマンドの前置部。
22000 \end_layout
22001
22002 \begin_layout Description
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 $$ResizeBack
22008 \end_layout
22009
22010 \end_inset
22011
22012  伸縮コマンドの後置部。
22013 \end_layout
22014
22015 \begin_layout Description
22016 \begin_inset Flex Code
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 $$RotateFront
22021 \end_layout
22022
22023 \end_inset
22024
22025  回転コマンドの前置部。
22026 \end_layout
22027
22028 \begin_layout Description
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033 $$RotateBack
22034 \end_layout
22035
22036 \end_inset
22037
22038  回転コマンドの後置部。
22039 \end_layout
22040
22041 \begin_layout Standard
22042 \begin_inset Flex Code
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 Option
22047 \end_layout
22048
22049 \end_inset
22050
22051 コマンドの値に入れる文字列では、
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 Transform
22057 \end_layout
22058
22059 \end_inset
22060
22061 コマンドと
22062 \begin_inset Flex Code
22063 status collapsed
22064
22065 \begin_layout Plain Layout
22066 TransformOption
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 $$Clip
22080 \end_layout
22081
22082 \end_inset
22083
22084  切り抜きオプション。
22085 \end_layout
22086
22087 \begin_layout Description
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092 $$Extra
22093 \end_layout
22094
22095 \end_inset
22096
22097  追加オプション。
22098 \end_layout
22099
22100 \begin_layout Description
22101 \begin_inset Flex Code
22102 status collapsed
22103
22104 \begin_layout Plain Layout
22105 $$Resize
22106 \end_layout
22107
22108 \end_inset
22109
22110  伸縮オプション。
22111 \end_layout
22112
22113 \begin_layout Description
22114 \begin_inset Flex Code
22115 status collapsed
22116
22117 \begin_layout Plain Layout
22118 $$Rotate
22119 \end_layout
22120
22121 \end_inset
22122
22123  回転オプション。
22124 \end_layout
22125
22126 \begin_layout Standard
22127 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
22128 \end_layout
22129
22130 \begin_layout Enumerate
22131 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
22132 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
22133 \end_layout
22134
22135 \begin_layout Enumerate
22136 \SpecialChar LaTeX
22137 は、相対ファイル名に関して、\SpecialChar LyX
22138 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。\SpecialChar LyX
22139 にとって相対ファイル名とは、常にこのファイル名が書か
22140 れている文書に対して相対的なものになります。\SpecialChar LaTeX
22141 にとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一つの文書しかないときには同じです
22142 が、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、\SpecialChar LaTeX
22143 に提示されるときに変換されなくてはならないのです。幸い、正しいマクロ
22144 を選びさえすれば、これは\SpecialChar LyX
22145 が自動的に行ってくれます。
22146 \end_layout
22147
22148 \begin_layout Standard
22149 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
22150 \end_layout
22151
22152 \begin_layout Itemize
22153 絶対パスが必要とされるときには
22154 \begin_inset Flex Code
22155 status collapsed
22156
22157 \begin_layout Plain Layout
22158 $$AbsPath
22159 \end_layout
22160
22161 \end_inset
22162
22163 を使う。
22164 \end_layout
22165
22166 \begin_layout Itemize
22167 代入された文字列が、\SpecialChar LaTeX
22168 インプットの一種である場合には、
22169 \begin_inset Flex Code
22170 status collapsed
22171
22172 \begin_layout Plain Layout
22173 $$AbsOrRelPathMaster
22174 \end_layout
22175
22176 \end_inset
22177
22178 を使う。
22179 \end_layout
22180
22181 \begin_layout Itemize
22182 それ以外ならば、ユーザの選択を尊重するために
22183 \begin_inset Flex Code
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187 $$AbsOrRelPathParent
22188 \end_layout
22189
22190 \end_inset
22191
22192 を使う。
22193 \end_layout
22194
22195 \begin_layout Standard
22196 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
22197 \begin_inset Flex Code
22198 status collapsed
22199
22200 \begin_layout Plain Layout
22201 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22202 \end_layout
22203
22204 \end_inset
22205
22206 というコマンドがあります。この場合、
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 .pstex_t
22212 \end_layout
22213
22214 \end_inset
22215
22216 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
22217 \end_layout
22218
22219 \begin_layout Section
22220 セキュリティに関する論点
22221 \begin_inset CommandInset label
22222 LatexCommand label
22223 name "sec:セキュリティに関する論点"
22224
22225 \end_inset
22226
22227
22228 \end_layout
22229
22230 \begin_layout Standard
22231 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
22232 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
22233 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
22234 \end_layout
22235
22236 \begin_layout Standard
22237 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、\SpecialChar LyX
22238 が安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発生しま
22239 せん。これは、外部プログラムが
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244 system
22245 \end_layout
22246
22247 \end_inset
22248
22249 システムコールではなく、
22250 \begin_inset Flex Code
22251 status collapsed
22252
22253 \begin_layout Plain Layout
22254 execvp
22255 \end_layout
22256
22257 \end_inset
22258
22259 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
22260 \end_layout
22261
22262 \begin_layout Standard
22263 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
22264 できません。これは、\SpecialChar LyX
22265 の安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安全なス
22266 クリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
22267 \end_layout
22268
22269 \begin_layout Standard
22270 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
22271 うになるため、一般的には、統御下に置いた状態で
22272 \begin_inset Flex Code
22273 status collapsed
22274
22275 \begin_layout Plain Layout
22276 execvp
22277 \end_layout
22278
22279 \end_inset
22280
22281 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
22282 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
22283 \emph on
22284 間違いなく
22285 \emph default
22286 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
22287 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されている\SpecialChar LyX
22288 には、安全でないひな型は決して入っていません
22289
22290 \end_layout
22291
22292 \begin_layout Standard
22293 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
22294 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
22295 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、\SpecialChar LyX
22296 開発チームに相談してみてください。そしてこの相談は、管理されていない環境下でこれを
22297 使用する前に、行うようにしてください。
22298 \end_layout
22299
22300 \begin_layout Chapter
22301 \start_of_appendix
22302 サポートされているレイアウト用\SpecialChar LyX
22303 関数一覧
22304 \begin_inset CommandInset label
22305 LatexCommand label
22306 name "chap:関数一覧"
22307
22308 \end_inset
22309
22310
22311 \end_layout
22312
22313 \begin_layout Standard
22314 \align center
22315 \begin_inset Tabular
22316 <lyxtabular version="3" rows="11" columns="8">
22317 <features tabularvalignment="middle">
22318 <column alignment="left" valignment="top">
22319 <column alignment="left" valignment="top">
22320 <column alignment="left" valignment="top">
22321 <column alignment="left" valignment="top">
22322 <column alignment="left" valignment="top">
22323 <column alignment="left" valignment="top">
22324 <column alignment="left" valignment="top">
22325 <column alignment="left" valignment="top">
22326 <row>
22327 <cell alignment="left" valignment="top" usebox="none">
22328 \begin_inset Text
22329
22330 \begin_layout Plain Layout
22331 accents
22332 \end_layout
22333
22334 \end_inset
22335 </cell>
22336 <cell alignment="left" valignment="top" usebox="none">
22337 \begin_inset Text
22338
22339 \begin_layout Plain Layout
22340 booktabs
22341 \end_layout
22342
22343 \end_inset
22344 </cell>
22345 <cell alignment="left" valignment="top" usebox="none">
22346 \begin_inset Text
22347
22348 \begin_layout Plain Layout
22349 feyn
22350 \end_layout
22351
22352 \end_inset
22353 </cell>
22354 <cell alignment="left" valignment="top" usebox="none">
22355 \begin_inset Text
22356
22357 \begin_layout Plain Layout
22358 listings
22359 \end_layout
22360
22361 \end_inset
22362 </cell>
22363 <cell alignment="center" valignment="top" usebox="none">
22364 \begin_inset Text
22365
22366 \begin_layout Plain Layout
22367 natbib
22368 \end_layout
22369
22370 \end_inset
22371 </cell>
22372 <cell alignment="center" valignment="top" usebox="none">
22373 \begin_inset Text
22374
22375 \begin_layout Plain Layout
22376 rotfloat
22377 \end_layout
22378
22379 \end_inset
22380 </cell>
22381 <cell alignment="center" valignment="top" usebox="none">
22382 \begin_inset Text
22383
22384 \begin_layout Plain Layout
22385 tfrupee
22386 \end_layout
22387
22388 \end_inset
22389 </cell>
22390 <cell alignment="center" valignment="top" usebox="none">
22391 \begin_inset Text
22392
22393 \begin_layout Plain Layout
22394 wasysym
22395 \end_layout
22396
22397 \end_inset
22398 </cell>
22399 </row>
22400 <row>
22401 <cell alignment="left" valignment="top" usebox="none">
22402 \begin_inset Text
22403
22404 \begin_layout Plain Layout
22405 amsbsy
22406 \end_layout
22407
22408 \end_inset
22409 </cell>
22410 <cell alignment="left" valignment="top" usebox="none">
22411 \begin_inset Text
22412
22413 \begin_layout Plain Layout
22414 calc
22415 \end_layout
22416
22417 \end_inset
22418 </cell>
22419 <cell alignment="left" valignment="top" usebox="none">
22420 \begin_inset Text
22421
22422 \begin_layout Plain Layout
22423 fixltx2e
22424 \end_layout
22425
22426 \end_inset
22427 </cell>
22428 <cell alignment="left" valignment="top" usebox="none">
22429 \begin_inset Text
22430
22431 \begin_layout Plain Layout
22432 longtable
22433 \end_layout
22434
22435 \end_inset
22436 </cell>
22437 <cell alignment="center" valignment="top" usebox="none">
22438 \begin_inset Text
22439
22440 \begin_layout Plain Layout
22441 nomencl
22442 \end_layout
22443
22444 \end_inset
22445 </cell>
22446 <cell alignment="center" valignment="top" usebox="none">
22447 \begin_inset Text
22448
22449 \begin_layout Plain Layout
22450 rsphrase
22451 \end_layout
22452
22453 \end_inset
22454 </cell>
22455 <cell alignment="center" valignment="top" usebox="none">
22456 \begin_inset Text
22457
22458 \begin_layout Plain Layout
22459 tipa
22460 \end_layout
22461
22462 \end_inset
22463 </cell>
22464 <cell alignment="center" valignment="top" usebox="none">
22465 \begin_inset Text
22466
22467 \begin_layout Plain Layout
22468 wrapfig
22469 \end_layout
22470
22471 \end_inset
22472 </cell>
22473 </row>
22474 <row>
22475 <cell alignment="left" valignment="top" usebox="none">
22476 \begin_inset Text
22477
22478 \begin_layout Plain Layout
22479 amscd
22480 \end_layout
22481
22482 \end_inset
22483 </cell>
22484 <cell alignment="left" valignment="top" usebox="none">
22485 \begin_inset Text
22486
22487 \begin_layout Plain Layout
22488 CJK
22489 \end_layout
22490
22491 \end_inset
22492 </cell>
22493 <cell alignment="left" valignment="top" usebox="none">
22494 \begin_inset Text
22495
22496 \begin_layout Plain Layout
22497 float
22498 \end_layout
22499
22500 \end_inset
22501 </cell>
22502 <cell alignment="left" valignment="top" usebox="none">
22503 \begin_inset Text
22504
22505 \begin_layout Plain Layout
22506 lyxskak
22507 \end_layout
22508
22509 \end_inset
22510 </cell>
22511 <cell alignment="center" valignment="top" usebox="none">
22512 \begin_inset Text
22513
22514 \begin_layout Plain Layout
22515 pdfcolmk
22516 \end_layout
22517
22518 \end_inset
22519 </cell>
22520 <cell alignment="center" valignment="top" usebox="none">
22521 \begin_inset Text
22522
22523 \begin_layout Plain Layout
22524 setspace
22525 \end_layout
22526
22527 \end_inset
22528 </cell>
22529 <cell alignment="center" valignment="top" usebox="none">
22530 \begin_inset Text
22531
22532 \begin_layout Plain Layout
22533 tipx
22534 \end_layout
22535
22536 \end_inset
22537 </cell>
22538 <cell alignment="center" valignment="top" usebox="none">
22539 \begin_inset Text
22540
22541 \begin_layout Plain Layout
22542 xargs
22543 \end_layout
22544
22545 \end_inset
22546 </cell>
22547 </row>
22548 <row>
22549 <cell alignment="left" valignment="top" usebox="none">
22550 \begin_inset Text
22551
22552 \begin_layout Plain Layout
22553 amsmath
22554 \end_layout
22555
22556 \end_inset
22557 </cell>
22558 <cell alignment="left" valignment="top" usebox="none">
22559 \begin_inset Text
22560
22561 \begin_layout Plain Layout
22562 color
22563 \end_layout
22564
22565 \end_inset
22566 </cell>
22567 <cell alignment="left" valignment="top" usebox="none">
22568 \begin_inset Text
22569
22570 \begin_layout Plain Layout
22571 framed
22572 \end_layout
22573
22574 \end_inset
22575 </cell>
22576 <cell alignment="left" valignment="top" usebox="none">
22577 \begin_inset Text
22578
22579 \begin_layout Plain Layout
22580 makeidx
22581 \end_layout
22582
22583 \end_inset
22584 </cell>
22585 <cell alignment="center" valignment="top" usebox="none">
22586 \begin_inset Text
22587
22588 \begin_layout Plain Layout
22589 pdfpages
22590 \end_layout
22591
22592 \end_inset
22593 </cell>
22594 <cell alignment="center" valignment="top" usebox="none">
22595 \begin_inset Text
22596
22597 \begin_layout Plain Layout
22598 shapepar
22599 \end_layout
22600
22601 \end_inset
22602 </cell>
22603 <cell alignment="center" valignment="top" usebox="none">
22604 \begin_inset Text
22605
22606 \begin_layout Plain Layout
22607 tone
22608 \end_layout
22609
22610 \end_inset
22611 </cell>
22612 <cell alignment="center" valignment="top" usebox="none">
22613 \begin_inset Text
22614
22615 \begin_layout Plain Layout
22616 xcolor
22617 \end_layout
22618
22619 \end_inset
22620 </cell>
22621 </row>
22622 <row>
22623 <cell alignment="left" valignment="top" usebox="none">
22624 \begin_inset Text
22625
22626 \begin_layout Plain Layout
22627 amssymb
22628 \end_layout
22629
22630 \end_inset
22631 </cell>
22632 <cell alignment="left" valignment="top" usebox="none">
22633 \begin_inset Text
22634
22635 \begin_layout Plain Layout
22636 covington
22637 \end_layout
22638
22639 \end_inset
22640 </cell>
22641 <cell alignment="left" valignment="top" usebox="none">
22642 \begin_inset Text
22643
22644 \begin_layout Plain Layout
22645 graphicx
22646 \end_layout
22647
22648 \end_inset
22649 </cell>
22650 <cell alignment="left" valignment="top" usebox="none">
22651 \begin_inset Text
22652
22653 \begin_layout Plain Layout
22654 marvosym
22655 \end_layout
22656
22657 \end_inset
22658 </cell>
22659 <cell alignment="center" valignment="top" usebox="none">
22660 \begin_inset Text
22661
22662 \begin_layout Plain Layout
22663 pifont
22664 \end_layout
22665
22666 \end_inset
22667 </cell>
22668 <cell alignment="center" valignment="top" usebox="none">
22669 \begin_inset Text
22670
22671 \begin_layout Plain Layout
22672 slashed
22673 \end_layout
22674
22675 \end_inset
22676 </cell>
22677 <cell alignment="center" valignment="top" usebox="none">
22678 \begin_inset Text
22679
22680 \begin_layout Plain Layout
22681 txfonts
22682 \end_layout
22683
22684 \end_inset
22685 </cell>
22686 <cell alignment="center" valignment="top" usebox="none">
22687 \begin_inset Text
22688
22689 \begin_layout Plain Layout
22690 xy
22691 \end_layout
22692
22693 \end_inset
22694 </cell>
22695 </row>
22696 <row>
22697 <cell alignment="left" valignment="top" usebox="none">
22698 \begin_inset Text
22699
22700 \begin_layout Plain Layout
22701 amstext
22702 \end_layout
22703
22704 \end_inset
22705 </cell>
22706 <cell alignment="left" valignment="top" usebox="none">
22707 \begin_inset Text
22708
22709 \begin_layout Plain Layout
22710 csquotes
22711 \end_layout
22712
22713 \end_inset
22714 </cell>
22715 <cell alignment="left" valignment="top" usebox="none">
22716 \begin_inset Text
22717
22718 \begin_layout Plain Layout
22719 hhline
22720 \end_layout
22721
22722 \end_inset
22723 </cell>
22724 <cell alignment="left" valignment="top" usebox="none">
22725 \begin_inset Text
22726
22727 \begin_layout Plain Layout
22728 mathdesign
22729 \end_layout
22730
22731 \end_inset
22732 </cell>
22733 <cell alignment="center" valignment="top" usebox="none">
22734 \begin_inset Text
22735
22736 \begin_layout Plain Layout
22737 pmboxdraw
22738 \end_layout
22739
22740 \end_inset
22741 </cell>
22742 <cell alignment="center" valignment="top" usebox="none">
22743 \begin_inset Text
22744
22745 \begin_layout Plain Layout
22746 soul
22747 \end_layout
22748
22749 \end_inset
22750 </cell>
22751 <cell alignment="center" valignment="top" usebox="none">
22752 \begin_inset Text
22753
22754 \begin_layout Plain Layout
22755 ulem
22756 \end_layout
22757
22758 \end_inset
22759 </cell>
22760 <cell alignment="center" valignment="top" usebox="none">
22761 \begin_inset Text
22762
22763 \begin_layout Plain Layout
22764 yhmath
22765 \end_layout
22766
22767 \end_inset
22768 </cell>
22769 </row>
22770 <row>
22771 <cell alignment="left" valignment="top" usebox="none">
22772 \begin_inset Text
22773
22774 \begin_layout Plain Layout
22775 amsthm
22776 \end_layout
22777
22778 \end_inset
22779 </cell>
22780 <cell alignment="left" valignment="top" usebox="none">
22781 \begin_inset Text
22782
22783 \begin_layout Plain Layout
22784 dvipost
22785 \end_layout
22786
22787 \end_inset
22788 </cell>
22789 <cell alignment="left" valignment="top" usebox="none">
22790 \begin_inset Text
22791
22792 \begin_layout Plain Layout
22793 hyperref
22794 \end_layout
22795
22796 \end_inset
22797 </cell>
22798 <cell alignment="left" valignment="top" usebox="none">
22799 \begin_inset Text
22800
22801 \begin_layout Plain Layout
22802 mathdots
22803 \end_layout
22804
22805 \end_inset
22806 </cell>
22807 <cell alignment="center" valignment="top" usebox="none">
22808 \begin_inset Text
22809
22810 \begin_layout Plain Layout
22811 polyglossia
22812 \end_layout
22813
22814 \end_inset
22815 </cell>
22816 <cell alignment="center" valignment="top" usebox="none">
22817 \begin_inset Text
22818
22819 \begin_layout Plain Layout
22820 splitidx
22821 \end_layout
22822
22823 \end_inset
22824 </cell>
22825 <cell alignment="center" valignment="top" usebox="none">
22826 \begin_inset Text
22827
22828 \begin_layout Plain Layout
22829 undertilde
22830 \end_layout
22831
22832 \end_inset
22833 </cell>
22834 <cell alignment="center" valignment="top" usebox="none">
22835 \begin_inset Text
22836
22837 \begin_layout Plain Layout
22838
22839 \end_layout
22840
22841 \end_inset
22842 </cell>
22843 </row>
22844 <row>
22845 <cell alignment="left" valignment="top" usebox="none">
22846 \begin_inset Text
22847
22848 \begin_layout Plain Layout
22849 array
22850 \end_layout
22851
22852 \end_inset
22853 </cell>
22854 <cell alignment="left" valignment="top" usebox="none">
22855 \begin_inset Text
22856
22857 \begin_layout Plain Layout
22858 endnotes
22859 \end_layout
22860
22861 \end_inset
22862 </cell>
22863 <cell alignment="left" valignment="top" usebox="none">
22864 \begin_inset Text
22865
22866 \begin_layout Plain Layout
22867 ifsym
22868 \end_layout
22869
22870 \end_inset
22871 </cell>
22872 <cell alignment="left" valignment="top" usebox="none">
22873 \begin_inset Text
22874
22875 \begin_layout Plain Layout
22876 mathrsfs
22877 \end_layout
22878
22879 \end_inset
22880 </cell>
22881 <cell alignment="center" valignment="top" usebox="none">
22882 \begin_inset Text
22883
22884 \begin_layout Plain Layout
22885 prettyref
22886 \end_layout
22887
22888 \end_inset
22889 </cell>
22890 <cell alignment="center" valignment="top" usebox="none">
22891 \begin_inset Text
22892
22893 \begin_layout Plain Layout
22894 subfig
22895 \end_layout
22896
22897 \end_inset
22898 </cell>
22899 <cell alignment="center" valignment="top" usebox="none">
22900 \begin_inset Text
22901
22902 \begin_layout Plain Layout
22903 units
22904 \end_layout
22905
22906 \end_inset
22907 </cell>
22908 <cell alignment="center" valignment="top" usebox="none">
22909 \begin_inset Text
22910
22911 \begin_layout Plain Layout
22912
22913 \end_layout
22914
22915 \end_inset
22916 </cell>
22917 </row>
22918 <row>
22919 <cell alignment="left" valignment="top" usebox="none">
22920 \begin_inset Text
22921
22922 \begin_layout Plain Layout
22923 ascii
22924 \end_layout
22925
22926 \end_inset
22927 </cell>
22928 <cell alignment="left" valignment="top" usebox="none">
22929 \begin_inset Text
22930
22931 \begin_layout Plain Layout
22932 enumitem
22933 \end_layout
22934
22935 \end_inset
22936 </cell>
22937 <cell alignment="left" valignment="top" usebox="none">
22938 \begin_inset Text
22939
22940 \begin_layout Plain Layout
22941 ifthen
22942 \end_layout
22943
22944 \end_inset
22945 </cell>
22946 <cell alignment="left" valignment="top" usebox="none">
22947 \begin_inset Text
22948
22949 \begin_layout Plain Layout
22950 mhchem
22951 \end_layout
22952
22953 \end_inset
22954 </cell>
22955 <cell alignment="center" valignment="top" usebox="none">
22956 \begin_inset Text
22957
22958 \begin_layout Plain Layout
22959 pxfonts
22960 \end_layout
22961
22962 \end_inset
22963 </cell>
22964 <cell alignment="center" valignment="top" usebox="none">
22965 \begin_inset Text
22966
22967 \begin_layout Plain Layout
22968 subscript
22969 \end_layout
22970
22971 \end_inset
22972 </cell>
22973 <cell alignment="center" valignment="top" usebox="none">
22974 \begin_inset Text
22975
22976 \begin_layout Plain Layout
22977 url
22978 \end_layout
22979
22980 \end_inset
22981 </cell>
22982 <cell alignment="center" valignment="top" usebox="none">
22983 \begin_inset Text
22984
22985 \begin_layout Plain Layout
22986
22987 \end_layout
22988
22989 \end_inset
22990 </cell>
22991 </row>
22992 <row>
22993 <cell alignment="left" valignment="top" usebox="none">
22994 \begin_inset Text
22995
22996 \begin_layout Plain Layout
22997 bbding
22998 \end_layout
22999
23000 \end_inset
23001 </cell>
23002 <cell alignment="left" valignment="top" usebox="none">
23003 \begin_inset Text
23004
23005 \begin_layout Plain Layout
23006 esint
23007 \end_layout
23008
23009 \end_inset
23010 </cell>
23011 <cell alignment="left" valignment="top" usebox="none">
23012 \begin_inset Text
23013
23014 \begin_layout Plain Layout
23015 jurabib
23016 \end_layout
23017
23018 \end_inset
23019 </cell>
23020 <cell alignment="left" valignment="top" usebox="none">
23021 \begin_inset Text
23022
23023 \begin_layout Plain Layout
23024 multicol
23025 \end_layout
23026
23027 \end_inset
23028 </cell>
23029 <cell alignment="center" valignment="top" usebox="none">
23030 \begin_inset Text
23031
23032 \begin_layout Plain Layout
23033 refstyle
23034 \end_layout
23035
23036 \end_inset
23037 </cell>
23038 <cell alignment="center" valignment="top" usebox="none">
23039 \begin_inset Text
23040
23041 \begin_layout Plain Layout
23042 textcomp
23043 \end_layout
23044
23045 \end_inset
23046 </cell>
23047 <cell alignment="center" valignment="top" usebox="none">
23048 \begin_inset Text
23049
23050 \begin_layout Plain Layout
23051 varioref
23052 \end_layout
23053
23054 \end_inset
23055 </cell>
23056 <cell alignment="center" valignment="top" usebox="none">
23057 \begin_inset Text
23058
23059 \begin_layout Plain Layout
23060
23061 \end_layout
23062
23063 \end_inset
23064 </cell>
23065 </row>
23066 <row>
23067 <cell alignment="center" valignment="top" usebox="none">
23068 \begin_inset Text
23069
23070 \begin_layout Plain Layout
23071 bm
23072 \end_layout
23073
23074 \end_inset
23075 </cell>
23076 <cell alignment="center" valignment="top" usebox="none">
23077 \begin_inset Text
23078
23079 \begin_layout Plain Layout
23080 fancybox
23081 \end_layout
23082
23083 \end_inset
23084 </cell>
23085 <cell alignment="center" valignment="top" usebox="none">
23086 \begin_inset Text
23087
23088 \begin_layout Plain Layout
23089 latexsym
23090 \end_layout
23091
23092 \end_inset
23093 </cell>
23094 <cell alignment="center" valignment="top" usebox="none">
23095 \begin_inset Text
23096
23097 \begin_layout Plain Layout
23098 multirow
23099 \end_layout
23100
23101 \end_inset
23102 </cell>
23103 <cell alignment="center" valignment="top" usebox="none">
23104 \begin_inset Text
23105
23106 \begin_layout Plain Layout
23107 rotating
23108 \end_layout
23109
23110 \end_inset
23111 </cell>
23112 <cell alignment="center" valignment="top" usebox="none">
23113 \begin_inset Text
23114
23115 \begin_layout Plain Layout
23116 textgreek
23117 \end_layout
23118
23119 \end_inset
23120 </cell>
23121 <cell alignment="center" valignment="top" usebox="none">
23122 \begin_inset Text
23123
23124 \begin_layout Plain Layout
23125 verbatim
23126 \end_layout
23127
23128 \end_inset
23129 </cell>
23130 <cell alignment="center" valignment="top" usebox="none">
23131 \begin_inset Text
23132
23133 \begin_layout Plain Layout
23134
23135 \end_layout
23136
23137 \end_inset
23138 </cell>
23139 </row>
23140 </lyxtabular>
23141
23142 \end_inset
23143
23144
23145 \end_layout
23146
23147 \begin_layout Chapter
23148 レイアウトで使用できる色名
23149 \begin_inset CommandInset label
23150 LatexCommand label
23151 name "chap:色名"
23152
23153 \end_inset
23154
23155
23156 \end_layout
23157
23158 \begin_layout Standard
23159 ここに列挙されている色は標準色であり、\SpecialChar LyX
23160 設定で調整できるものです。
23161 \end_layout
23162
23163 \begin_layout Description
23164 none
23165 \series medium
23166  
23167 \series default
23168 特定の色ではありません – 透明か既定色です
23169 \end_layout
23170
23171 \begin_layout Description
23172 black
23173 \end_layout
23174
23175 \begin_layout Description
23176 white
23177 \end_layout
23178
23179 \begin_layout Description
23180 red
23181 \end_layout
23182
23183 \begin_layout Description
23184 green
23185 \end_layout
23186
23187 \begin_layout Description
23188 blue
23189 \end_layout
23190
23191 \begin_layout Description
23192 cyan
23193 \end_layout
23194
23195 \begin_layout Description
23196 magenta
23197 \end_layout
23198
23199 \begin_layout Description
23200 yellow
23201 \end_layout
23202
23203 \begin_layout Description
23204 added_space 空白マーカ色
23205 \end_layout
23206
23207 \begin_layout Description
23208 addedtext 追加された文章色
23209 \end_layout
23210
23211 \begin_layout Description
23212 appendix 付録マーカ色
23213 \end_layout
23214
23215 \begin_layout Description
23216 background 背景色
23217 \end_layout
23218
23219 \begin_layout Description
23220 bottomarea 下部領域色
23221 \end_layout
23222
23223 \begin_layout Description
23224 branchlabel 派生枝ラベル色
23225 \end_layout
23226
23227 \begin_layout Description
23228 buttonbg ボタンの背景色
23229 \end_layout
23230
23231 \begin_layout Description
23232 buttonhoverbg フォーカスを得ているボタンの背景色
23233 \end_layout
23234
23235 \begin_layout Description
23236 buttonframe 差込枠の縁色
23237 \end_layout
23238
23239 \begin_layout Description
23240 changebar 変更バー色
23241 \end_layout
23242
23243 \begin_layout Description
23244 changedtextauthor1 変更された文章:第1著者の色
23245 \end_layout
23246
23247 \begin_layout Description
23248 changedtextauthor2 変更された文章:第2著者の色
23249 \end_layout
23250
23251 \begin_layout Description
23252 changedtextauthor3 変更された文章:第3著者の色
23253 \end_layout
23254
23255 \begin_layout Description
23256 changedtextauthor4 変更された文章:第4著者の色
23257 \end_layout
23258
23259 \begin_layout Description
23260 changedtextauthor5 変更された文章:第5著者の色
23261 \end_layout
23262
23263 \begin_layout Description
23264 collapsable_inset_frame 畳み込み可能枠の縁色
23265 \end_layout
23266
23267 \begin_layout Description
23268 collapsable_inset_text 畳み込み可能枠の文字色
23269 \end_layout
23270
23271 \begin_layout Description
23272 command コマンド差込枠の文字色
23273 \end_layout
23274
23275 \begin_layout Description
23276 commandbg コマンド差込枠の背景色
23277 \end_layout
23278
23279 \begin_layout Description
23280 commandframe コマンド差込枠の縁色
23281 \end_layout
23282
23283 \begin_layout Description
23284 comment コメント色
23285 \end_layout
23286
23287 \begin_layout Description
23288 commentbg コメントの背景色
23289 \end_layout
23290
23291 \begin_layout Description
23292 cursor カーソル色
23293 \end_layout
23294
23295 \begin_layout Description
23296 deletedtext 削除された文章の色
23297 \end_layout
23298
23299 \begin_layout Description
23300 deletedtextmodifier 削除された文章の修飾子の色
23301 \end_layout
23302
23303 \begin_layout Description
23304 depthbar 余白部の階層表示線の色
23305 \end_layout
23306
23307 \begin_layout Description
23308 eolmarker 行末標色
23309 \end_layout
23310
23311 \begin_layout Description
23312 error \SpecialChar LaTeX
23313 エラーボックス色
23314 \end_layout
23315
23316 \begin_layout Description
23317 footlabel 脚注ラベル色
23318 \end_layout
23319
23320 \begin_layout Description
23321 graphicsbg 画像差込枠の背景色
23322 \end_layout
23323
23324 \begin_layout Description
23325 greyedout 淡色表示差込枠のラベル色
23326 \end_layout
23327
23328 \begin_layout Description
23329 greyedoutbg 淡色表示差込枠の背景色
23330 \end_layout
23331
23332 \begin_layout Description
23333 greyedouttext 淡色表示差込枠の文字色
23334 \end_layout
23335
23336 \begin_layout Description
23337 indexlabel 索引差込枠のラベル色
23338 \end_layout
23339
23340 \begin_layout Description
23341 ignore この色を無視します
23342 \end_layout
23343
23344 \begin_layout Description
23345 inherit この色を継承します
23346 \end_layout
23347
23348 \begin_layout Description
23349 inlinecompletion 行内補完色
23350 \end_layout
23351
23352 \begin_layout Description
23353 insetbg 差込枠標の背景色
23354 \end_layout
23355
23356 \begin_layout Description
23357 insetframe 差込枠標の縁色
23358 \end_layout
23359
23360 \begin_layout Description
23361 language 外国語の単語を標識するための色
23362 \end_layout
23363
23364 \begin_layout Description
23365 latex \SpecialChar LaTeX
23366 モードの文字色
23367 \end_layout
23368
23369 \begin_layout Description
23370 listingsbg プログラムリスト差込枠の背景色
23371 \end_layout
23372
23373 \begin_layout Description
23374 marginlabel 傍注のラベル色
23375 \end_layout
23376
23377 \begin_layout Description
23378 math 数式差込枠の文字色
23379 \end_layout
23380
23381 \begin_layout Description
23382 mathbg 数式差込枠の背景色
23383 \end_layout
23384
23385 \begin_layout Description
23386 mathcorners フォーカスを得ていない数式差込枠の縁色
23387 \end_layout
23388
23389 \begin_layout Description
23390 mathframe フォーカスを得ている数式差込枠の縁色
23391 \end_layout
23392
23393 \begin_layout Description
23394 mathline 数式行色
23395 \end_layout
23396
23397 \begin_layout Description
23398 mathmacrobg 数式マクロ差込枠の背景色
23399 \end_layout
23400
23401 \begin_layout Description
23402 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23403 \end_layout
23404
23405 \begin_layout Description
23406 mathmacroframe 数式マクロ差込枠の縁色
23407 \end_layout
23408
23409 \begin_layout Description
23410 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23411 \end_layout
23412
23413 \begin_layout Description
23414 mathmacrolabel 数式マクロ差込枠のラベル色
23415 \end_layout
23416
23417 \begin_layout Description
23418 mathmacronewarg 数式マクロ新パラメーターのひな型色
23419 \end_layout
23420
23421 \begin_layout Description
23422 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23423 \end_layout
23424
23425 \begin_layout Description
23426 newpage 新規頁色
23427 \end_layout
23428
23429 \begin_layout Description
23430 nonunique_inlinecompletion 行内補完の一意でない部分の色
23431 \end_layout
23432
23433 \begin_layout Description
23434 notebg 注釈の背景色
23435 \end_layout
23436
23437 \begin_layout Description
23438 notelabel 注釈のラベル色
23439 \end_layout
23440
23441 \begin_layout Description
23442 pagebreak 改頁/改行色
23443 \end_layout
23444
23445 \begin_layout Description
23446 paragraphmarker 段落末を標識するための段落標の色
23447 \end_layout
23448
23449 \begin_layout Description
23450 phantomtext 埋め草差込枠の文字色
23451 \end_layout
23452
23453 \begin_layout Description
23454 preview プレビューに用いられる色
23455 \end_layout
23456
23457 \begin_layout Description
23458 previewframe プレビュー縁色
23459 \end_layout
23460
23461 \begin_layout Description
23462 regexpframe 正規表現枠の色
23463 \end_layout
23464
23465 \begin_layout Description
23466 selection 文章選択部の背景色
23467 \end_layout
23468
23469 \begin_layout Description
23470 selectiontext 文章選択部の前景色
23471 \end_layout
23472
23473 \begin_layout Description
23474 shadedbg 影付きボックスの背景色
23475 \end_layout
23476
23477 \begin_layout Description
23478 special 特殊文字の色
23479 \end_layout
23480
23481 \begin_layout Description
23482 tabularline 罫線色
23483 \end_layout
23484
23485 \begin_layout Description
23486 tabularonoffline 罫線色
23487 \end_layout
23488
23489 \begin_layout Description
23490 urllabel URL差込枠のラベル色
23491 \end_layout
23492
23493 \begin_layout Description
23494 urltext URL差込枠の文字色
23495 \end_layout
23496
23497 \end_body
23498 \end_document