]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
6691fe4a0fb814b34869a7bcfe3754a30f5c5d47
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 541
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 \end_modules
36 \maintain_unincluded_children false
37 \begin_local_layout
38 Format 57
39 InsetLayout Flex:MenuItem
40 LyxType               charstyle
41 LabelString           menu
42 LatexType             command
43 LatexName             menuitem
44 Font
45 Family              Sans
46 EndFont
47 Preamble
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
49 EndPreamble
50 ResetsFont true
51 End
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
54 #Font
55 #Family              Sans
56 #EndFont
57 #Preamble
58 #\renewcommand{\code}[1]{{\sffamily #1}}
59 #EndPreamble
60 #End
61 InsetLayout             Flex:Ruby
62 LyxType         charstyle
63 LatexType               command
64 LatexName               ruby
65 BgColor         none
66 LabelString             "ルビ"
67 Decoration              Conglomerate
68 Argument post:1
69 LabelString     "ルビ文"
70 MenuString      "ルビ文(S)|S"
71 Decoration      Conglomerate
72 Font
73 Size            tiny
74 EndFont
75 LabelFont
76 Size            tiny
77 EndFont
78 Mandatory       1
79 EndArgument
80 Preamble
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
84 EndPreamble
85 ResetsFont true
86 End
87 \end_local_layout
88 \language japanese
89 \language_package default
90 \inputencoding auto
91 \fontencoding global
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
98 \font_sc false
99 \font_osf false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
102 \use_microtype false
103 \use_dash_ligatures false
104 \graphics default
105 \default_output_format pdf3
106 \output_sync 0
107 \bibtex_command default
108 \index_command default
109 \paperfontsize 12
110 \spacing single
111 \use_hyperref true
112 \pdf_title "LyX Configuration Manual"
113 \pdf_author "LyX Team"
114 \pdf_subject "LyX-Documentation Customization"
115 \pdf_keywords "LyX, documentation, customization"
116 \pdf_bookmarks false
117 \pdf_bookmarksnumbered true
118 \pdf_bookmarksopen true
119 \pdf_bookmarksopenlevel 1
120 \pdf_breaklinks false
121 \pdf_pdfborder false
122 \pdf_colorlinks true
123 \pdf_backref false
124 \pdf_pdfusetitle false
125 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
126 \papersize default
127 \use_geometry false
128 \use_package amsmath 0
129 \use_package amssymb 0
130 \use_package cancel 0
131 \use_package esint 0
132 \use_package mathdots 0
133 \use_package mathtools 0
134 \use_package mhchem 0
135 \use_package stackrel 0
136 \use_package stmaryrd 0
137 \use_package undertilde 0
138 \cite_engine basic
139 \cite_engine_type default
140 \biblio_style plain
141 \use_bibtopic false
142 \use_indices false
143 \paperorientation portrait
144 \suppress_date false
145 \justification false
146 \use_refstyle 0
147 \notefontcolor #0000ff
148 \branch OutDated
149 \selected 0
150 \filename_suffix 0
151 \color #f5fae7
152 \end_branch
153 \index 索引
154 \shortcut idx
155 \color #008000
156 \end_index
157 \secnumdepth 3
158 \tocdepth 3
159 \paragraph_separation indent
160 \paragraph_indentation default
161 \is_math_indent 1
162 \quotes_style english
163 \papercolumns 1
164 \papersides 2
165 \paperpagestyle headings
166 \tracking_changes false
167 \output_changes false
168 \html_math_output 0
169 \html_css_as_file 0
170 \html_be_strict true
171 \end_header
172
173 \begin_body
174
175 \begin_layout Title
176 \SpecialChar LyX
177 の高度設定
178 \begin_inset Newline newline
179 \end_inset
180
181 熟練ユーザのための各機能
182 \end_layout
183
184 \begin_layout Author
185 \SpecialChar LyX
186 開発チーム
187 \begin_inset Foot
188 status collapsed
189
190 \begin_layout Plain Layout
191 \noindent
192 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
193 文書化メーリングリスト
194 \begin_inset CommandInset href
195 LatexCommand href
196 target "lyx-docs@lists.lyx.org"
197 type "mailto:"
198 literal "false"
199
200 \end_inset
201
202 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
203 ast.net>をccにして送ってください.
204 \end_layout
205
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212
213 \begin_inset Newline newline
214 \end_inset
215
216 第2.2.x版 
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
222
223 \end_inset
224
225
226 \begin_inset Note Note
227 status open
228
229 \begin_layout Plain Layout
230 本文書を修正する際には,変更追跡機能を使用してください.これによって,
231 \end_layout
232
233 \begin_layout Plain Layout
234 \SpecialChar LyX
235 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
236 \end_layout
237
238 \end_inset
239
240
241 \end_layout
242
243 \begin_layout Chapter
244 はじめに
245 \end_layout
246
247 \begin_layout Standard
248 この取扱説明書は,\SpecialChar LyX
249 に備わっている高度設定機能を取り扱います.ここでは,
250 \begin_inset Flex Ruby
251 status collapsed
252
253 \begin_layout Plain Layout
254 捷径
255 \begin_inset Argument post:1
256 status collapsed
257
258 \begin_layout Plain Layout
259 ショートカット
260 \end_layout
261
262 \end_inset
263
264
265 \end_layout
266
267 \end_inset
268
269 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
270 サーバ経由での\SpecialChar LyX
271 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
272 クラスや\SpecialChar LyX
273 レイアウトの導入などの題材について論じます.おそらくは変更
274 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
275 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
276 \end_layout
277
278 \begin_layout Standard
279 \begin_inset Branch OutDated
280 inverted 0
281 status collapsed
282
283 \begin_layout Standard
284 Information from previous versions of this document that now seems to be
285  outdated is contained in the OutDated branch of this document.
286  By default, this information will not appear in the \SpecialChar LaTeX
287  output.
288 \end_layout
289
290 \end_inset
291
292
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297 設定ファイル
298 \end_layout
299
300 \begin_layout Standard
301 本章の目的は,\SpecialChar LyX
302 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
303 \begin_inset Flex MenuItem
304 status collapsed
305
306 \begin_layout Plain Layout
307 ヘルプ\SpecialChar menuseparator
308 LyXについて
309 \end_layout
310
311 \end_inset
312
313 を使って,\SpecialChar LyX
314 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
315 がシステム全体の設定ファイルを置いておくところです.一
316 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
317 \begin_inset Flex Code
318 status collapsed
319
320 \begin_layout Plain Layout
321 LyXDir
322 \end_layout
323
324 \end_inset
325
326 と呼び,後者を
327 \begin_inset Flex MenuItem
328 status collapsed
329
330 \begin_layout Plain Layout
331 UserDir
332 \end_layout
333
334 \end_inset
335
336 と呼ぶことにします.
337 \end_layout
338
339 \begin_layout Section
340 \begin_inset Flex Code
341 status collapsed
342
343 \begin_layout Plain Layout
344 LyXDir
345 \end_layout
346
347 \end_inset
348
349 にはなにがあるの?
350 \end_layout
351
352 \begin_layout Standard
353 \begin_inset Flex Code
354 status collapsed
355
356 \begin_layout Plain Layout
357 LyXDir
358 \end_layout
359
360 \end_inset
361
362 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
363 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
364 内の
365 \begin_inset Flex MenuItem
366 status collapsed
367
368 \begin_layout Plain Layout
369 ツール\SpecialChar menuseparator
370 設定
371 \end_layout
372
373 \end_inset
374
375 ダイアログから変更することができます.\SpecialChar LyX
376 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
377 の多くの内部動作は,
378 \begin_inset Flex Code
379 status collapsed
380
381 \begin_layout Plain Layout
382 LyXDir
383 \end_layout
384
385 \end_inset
386
387 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
388 \end_layout
389
390 \begin_layout Subsection
391 自動的に生成されるファイル
392 \end_layout
393
394 \begin_layout Standard
395 \begin_inset Flex MenuItem
396 status collapsed
397
398 \begin_layout Plain Layout
399 UserDir
400 \end_layout
401
402 \end_inset
403
404 にある各ファイルは,\SpecialChar LyX
405 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
406 うので,一般的には修正しないことが望まれます.
407 \end_layout
408
409 \begin_layout Labeling
410 \labelwidthstring 00.00.0000
411 \begin_inset Flex Code
412 status collapsed
413
414 \begin_layout Plain Layout
415 lyxrc.defaults
416 \end_layout
417
418 \end_inset
419
420  このファイルには,様々な既定コマンドが置かれています.
421 \end_layout
422
423 \begin_layout Labeling
424 \labelwidthstring 00.00.0000
425 \begin_inset Flex Code
426 status collapsed
427
428 \begin_layout Plain Layout
429 packages.lst
430 \end_layout
431
432 \end_inset
433
434  このファイルには,\SpecialChar LyX
435 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
436 プログラム自体には使用されていませんが,抽出された情報その他は,
437 \begin_inset Flex MenuItem
438 status collapsed
439
440 \begin_layout Plain Layout
441 ヘルプ\SpecialChar menuseparator
442 LaTeXの設定
443 \end_layout
444
445 \end_inset
446
447 で見ることができます.
448 \end_layout
449
450 \begin_layout Labeling
451 \labelwidthstring 00.00.0000
452 \begin_inset Flex Code
453 status collapsed
454
455 \begin_layout Plain Layout
456 textclass.lst
457 \end_layout
458
459 \end_inset
460
461  ユーザの
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 Plain L
467 \end_layout
468
469 \end_inset
470
471 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
472 文書クラスおよびその説明の一覧です.
473 \end_layout
474
475 \begin_layout Labeling
476 \labelwidthstring 00.00.0000
477 \begin_inset Flex Code
478 status collapsed
479
480 \begin_layout Plain Layout
481 lyxmodules.lst
482 \end_layout
483
484 \end_inset
485
486  ユーザの
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 layout/
492 \end_layout
493
494 \end_inset
495
496 ディレクトリで検出されたレイアウトモジュールの一覧です.
497 \end_layout
498
499 \begin_layout Labeling
500 \labelwidthstring 00.00.0000
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505 *files.lst
506 \end_layout
507
508 \end_inset
509
510  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
511 関連ファイルの一覧です.
512 \end_layout
513
514 \begin_layout Labeling
515 \labelwidthstring 00.00.0000
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 doc/LaTeXConfig.lyx
521 \end_layout
522
523 \end_inset
524
525  このファイルは,自動設定中に
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 LaTeXConfig.lyx.in
531 \end_layout
532
533 \end_inset
534
535 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
536 の設定に関する情報が納められています.
537 \end_layout
538
539 \begin_layout Subsection
540 ディレクトリ
541 \end_layout
542
543 \begin_layout Standard
544 以下の各ディレクトリは,
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 LyXDir
550 \end_layout
551
552 \end_inset
553
554
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 UserDir
560 \end_layout
561
562 \end_inset
563
564 に重複して存在します.特定のファイルが両方の場所にある場合には,
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 UserDir
570 \end_layout
571
572 \end_inset
573
574 の方にあるものが使用されます.
575 \end_layout
576
577 \begin_layout Labeling
578 \labelwidthstring 00.00.0000
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 bind/
584 \end_layout
585
586 \end_inset
587
588  このディレクトリには,\SpecialChar LyX
589 で使用されるキー割当を定義している,拡張子が
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 .bind
595 \end_layout
596
597 \end_inset
598
599 のファイルが置かれています.
600 \begin_inset Flex Code
601 status collapsed
602
603 \begin_layout Plain Layout
604 $LANG_xxx.bind
605 \end_layout
606
607 \end_inset
608
609 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
610 \end_layout
611
612 \begin_layout Labeling
613 \labelwidthstring 00.00.0000
614 \begin_inset Flex Code
615 status collapsed
616
617 \begin_layout Plain Layout
618 clipart/
619 \end_layout
620
621 \end_inset
622
623  このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
624 \end_layout
625
626 \begin_layout Labeling
627 \labelwidthstring 00.00.0000
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 doc/
633 \end_layout
634
635 \end_inset
636
637  このディレクトリには,\SpecialChar LyX
638 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
639 \begin_inset Flex Code
640 status collapsed
641
642 \begin_layout Plain Layout
643 LaTeXConfig.lyx
644 \end_layout
645
646 \end_inset
647
648 ファイルは特に注目に値します.各国語版のヘルプ文書は,
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 doc/xx
654 \end_layout
655
656 \end_inset
657
658 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
659 \begin_inset CommandInset ref
660 LatexCommand ref
661 reference "cha:LyXの各国語対応"
662
663 \end_inset
664
665 をご覧ください.
666 \end_layout
667
668 \begin_layout Labeling
669 \labelwidthstring 00.00.0000
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 examples/
675 \end_layout
676
677 \end_inset
678
679  このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
680 \begin_inset Flex MenuItem
681 status collapsed
682
683 \begin_layout Plain Layout
684 用例
685 \end_layout
686
687 \end_inset
688
689 ボタンを押すと,このディレクトリが表示されます.
690 \end_layout
691
692 \begin_layout Labeling
693 \labelwidthstring 00.00.0000
694 \begin_inset Flex Code
695 status collapsed
696
697 \begin_layout Plain Layout
698 images/
699 \end_layout
700
701 \end_inset
702
703  このディレクトリには,
704 \begin_inset Flex MenuItem
705 status collapsed
706
707 \begin_layout Plain Layout
708 文書
709 \end_layout
710
711 \end_inset
712
713 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
714 を起動したときに現れるバナーも納められています.
715 \end_layout
716
717 \begin_layout Labeling
718 \labelwidthstring 00.00.0000
719 \begin_inset Flex Code
720 status collapsed
721
722 \begin_layout Plain Layout
723 kbd/
724 \end_layout
725
726 \end_inset
727
728  このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
729 \begin_inset CommandInset ref
730 LatexCommand ref
731 reference "sec:国際キー配列"
732
733 \end_inset
734
735 をご覧ください.
736 \end_layout
737
738 \begin_layout Labeling
739 \labelwidthstring 00.00.0000
740 \begin_inset Flex Code
741 status collapsed
742
743 \begin_layout Plain Layout
744 layouts/
745 \end_layout
746
747 \end_inset
748
749  このディレクトリには,
750 \begin_inset CommandInset ref
751 LatexCommand ref
752 reference "cha:新規文書を導入"
753
754 \end_inset
755
756 に述べられているテキストクラスおよびモジュールのファイルが納められています.
757 \end_layout
758
759 \begin_layout Labeling
760 \labelwidthstring 00.00.0000
761 \begin_inset Flex Code
762 status collapsed
763
764 \begin_layout Plain Layout
765 lyx2lyx
766 \end_layout
767
768 \end_inset
769
770  このディレクトリには,\SpecialChar LyX
771 の各バージョン間の変換に使用される
772 \begin_inset Flex Code
773 status collapsed
774
775 \begin_layout Plain Layout
776 lyx2lyx
777 \end_layout
778
779 \end_inset
780
781  Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
782 \end_layout
783
784 \begin_layout Labeling
785 \labelwidthstring 00.00.0000
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 scripts/
791 \end_layout
792
793 \end_inset
794
795  このディレクトリには,
796 \begin_inset Flex MenuItem
797 status collapsed
798
799 \begin_layout Plain Layout
800 外用ひな型
801 \end_layout
802
803 \end_inset
804
805 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
806 自身が使用するスクリプトもいくつか収められています.
807 \end_layout
808
809 \begin_layout Labeling
810 \labelwidthstring 00.00.0000
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 templates/
816 \end_layout
817
818 \end_inset
819
820  このディレクトリには,
821 \begin_inset CommandInset ref
822 LatexCommand ref
823 reference "sec:ひな型を作成する"
824
825 \end_inset
826
827 で述べられている標準の\SpecialChar LyX
828 ひな型ファイルが納められています.
829 \end_layout
830
831 \begin_layout Labeling
832 \labelwidthstring 00.00.0000
833 \begin_inset Flex Code
834 status collapsed
835
836 \begin_layout Plain Layout
837 ui/
838 \end_layout
839
840 \end_inset
841
842  このディレクトリには,\SpecialChar LyX
843 の操作画面を定義する拡張子
844 \begin_inset Flex Code
845 status collapsed
846
847 \begin_layout Plain Layout
848 .ui
849 \end_layout
850
851 \end_inset
852
853 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
854 \end_layout
855
856 \begin_layout Subsection
857 変更を加えない方がよいファイル
858 \end_layout
859
860 \begin_layout Standard
861 これらのファイルは\SpecialChar LyX
862 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
863 \end_layout
864
865 \begin_layout Labeling
866 \labelwidthstring 00.00.0000
867 \begin_inset Flex Code
868 status collapsed
869
870 \begin_layout Plain Layout
871 CREDITS
872 \end_layout
873
874 \end_inset
875
876  このファイルは,\SpecialChar LyX
877 開発陣の名簿です.この内容は,メニュー項目
878 \begin_inset Flex MenuItem
879 status collapsed
880
881 \begin_layout Plain Layout
882 ヘルプ\SpecialChar menuseparator
883 LyXについて
884 \end_layout
885
886 \end_inset
887
888 で表示されます.
889 \end_layout
890
891 \begin_layout Labeling
892 \labelwidthstring 00.00.0000
893 \begin_inset Flex Code
894 status collapsed
895
896 \begin_layout Plain Layout
897 chkconfig.ltx
898 \end_layout
899
900 \end_inset
901
902  これは,自動設定プロセスによって使用される\SpecialChar LaTeX
903 スクリプトです.直接実行しないでください.
904 \end_layout
905
906 \begin_layout Labeling
907 \labelwidthstring 00.00.0000
908 \begin_inset Flex Code
909 status collapsed
910
911 \begin_layout Plain Layout
912 configure.py
913 \end_layout
914
915 \end_inset
916
917  これは,\SpecialChar LyX
918 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
919 \end_layout
920
921 \begin_layout Subsection
922 ひとこと必要なファイル群
923 \end_layout
924
925 \begin_layout Labeling
926 \labelwidthstring 00.00.0000
927 \begin_inset Flex Code
928 status collapsed
929
930 \begin_layout Plain Layout
931 encodings
932 \end_layout
933
934 \end_inset
935
936  このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
937 \end_layout
938
939 \begin_layout Labeling
940 \labelwidthstring 00.00.0000
941 \begin_inset Flex Code
942 status collapsed
943
944 \begin_layout Plain Layout
945 external_templates
946 \end_layout
947
948 \end_inset
949
950  このファイルには,新しく導入された
951 \begin_inset Flex MenuItem
952 status collapsed
953
954 \begin_layout Plain Layout
955 外用ひな型
956 \end_layout
957
958 \end_inset
959
960 機能で使用できるひな型が載っています.
961 \begin_inset CommandInset ref
962 LatexCommand ref
963 reference "chap:外部素材を取り込む"
964
965 \end_inset
966
967 を参照のこと.
968 \end_layout
969
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 languages
977 \end_layout
978
979 \end_inset
980
981  このファイルには,現在\SpecialChar LyX
982 がサポートしている言語の全一覧が載っています.
983 \end_layout
984
985 \begin_layout Labeling
986 \labelwidthstring 00.00.0000
987 \begin_inset Flex Code
988 status collapsed
989
990 \begin_layout Plain Layout
991 latexfonts
992 \end_layout
993
994 \end_inset
995
996  サポートされているフォントに関する情報が掲載されています.
997 \end_layout
998
999 \begin_layout Labeling
1000 \labelwidthstring 00.00.0000
1001 \begin_inset Flex Code
1002 status collapsed
1003
1004 \begin_layout Plain Layout
1005 layouttranslations
1006 \end_layout
1007
1008 \end_inset
1009
1010  このファイルは,国際化された段落様式の翻訳が収録されています(
1011 \begin_inset CommandInset ref
1012 LatexCommand ref
1013 reference "subsec:段落様式の国際化"
1014
1015 \end_inset
1016
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 unicodesymbols
1027 \end_layout
1028
1029 \end_inset
1030
1031  このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1032 が\SpecialChar LaTeX
1033 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1034 \end_layout
1035
1036 \begin_layout Section
1037 ユーザのローカル設定ディレクトリ
1038 \end_layout
1039
1040 \begin_layout Standard
1041 \SpecialChar LyX
1042 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1043 の設定を変更したいと思うかもしれません.
1044 \begin_inset Flex Code
1045 status collapsed
1046
1047 \begin_layout Plain Layout
1048 UserDir
1049 \end_layout
1050
1051 \end_inset
1052
1053 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1054 \begin_inset Flex MenuItem
1055 status collapsed
1056
1057 \begin_layout Plain Layout
1058 ヘルプ\SpecialChar menuseparator
1059 LyXについて
1060 \end_layout
1061
1062 \end_inset
1063
1064 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1065 \begin_inset Flex Code
1066 status collapsed
1067
1068 \begin_layout Plain Layout
1069 LyXDir
1070 \end_layout
1071
1072 \end_inset
1073
1074 のミラーとして使用されており,これは
1075 \begin_inset Flex Code
1076 status collapsed
1077
1078 \begin_layout Plain Layout
1079 UserDir
1080 \end_layout
1081
1082 \end_inset
1083
1084 内のすべてのファイルが,
1085 \begin_inset Flex Code
1086 status collapsed
1087
1088 \begin_layout Plain Layout
1089 LyXDir
1090 \end_layout
1091
1092 \end_inset
1093
1094 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1095 \end_layout
1096
1097 \begin_layout Standard
1098 わかりやすくするために,いくつか例を挙げましょう.
1099 \end_layout
1100
1101 \begin_layout Itemize
1102 \begin_inset Flex MenuItem
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106 ツール\SpecialChar menuseparator
1107 設定
1108 \end_layout
1109
1110 \end_inset
1111
1112 ダイアログで設定されるユーザ設定は,
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 UserDir
1118 \end_layout
1119
1120 \end_inset
1121
1122 中の
1123 \begin_inset Flex Code
1124 status collapsed
1125
1126 \begin_layout Plain Layout
1127 preferences
1128 \end_layout
1129
1130 \end_inset
1131
1132 ファイルに保存されます.
1133 \end_layout
1134
1135 \begin_layout Itemize
1136 \begin_inset Flex MenuItem
1137 status collapsed
1138
1139 \begin_layout Plain Layout
1140 ツール\SpecialChar menuseparator
1141 環境構成
1142 \end_layout
1143
1144 \end_inset
1145
1146 を使用して環境構成を行うと,\SpecialChar LyX
1147
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152 configure.py
1153 \end_layout
1154
1155 \end_inset
1156
1157 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 UserDir/layouts
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 設定
1174 \end_layout
1175
1176 \end_inset
1177
1178 ダイアログのクラス一覧に表示されるようになることを意味します.
1179 \end_layout
1180
1181 \begin_layout Itemize
1182 たとえば,\SpecialChar LyX
1183 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1184 れらのファイルを
1185 \begin_inset Flex Code
1186 status collapsed
1187
1188 \begin_layout Plain Layout
1189 UserDir/doc/
1190 \end_layout
1191
1192 \end_inset
1193
1194 ディレクトリにコピーすれば,
1195 \begin_inset Flex MenuItem
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 ヘルプ
1200 \end_layout
1201
1202 \end_inset
1203
1204 メニュー項目はこれらを開くようになります!
1205 \end_layout
1206
1207 \begin_layout Section
1208 \SpecialChar LyX
1209 を複数の設定を使って実行するには
1210 \end_layout
1211
1212 \begin_layout Standard
1213 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1214 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1215 どのディレクトリを使用するか指定するのです.
1216 \end_layout
1217
1218 \begin_layout Standard
1219 \SpecialChar LyX
1220 をコマンドラインスイッチ
1221 \begin_inset Flex Code
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 -userdir
1226 \end_layout
1227
1228 \end_inset
1229
1230 P
1231 \emph on
1232 <ディレクトリ名>
1233 \emph default
1234 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1235
1236 \begin_inset Flex Code
1237 status collapsed
1238
1239 \begin_layout Plain Layout
1240 -userdir
1241 \end_layout
1242
1243 \end_inset
1244
1245 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1246 は,初めて\SpecialChar LyX
1247 を実行したときに既定ディレクトリを訊い
1248 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1249 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1250 \begin_inset Flex Code
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 LYX_USERDIR_20x
1255 \end_layout
1256
1257 \end_inset
1258
1259 を特定の値に設定しても,全く同じ効果があります.
1260 \end_layout
1261
1262 \begin_layout Standard
1263 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 NewUserDir/layouts
1269 \end_layout
1270
1271 \end_inset
1272
1273 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1274 クを使用してください.\SpecialChar LyX
1275 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1276 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1277 \begin_inset Flex Code
1278 status collapsed
1279
1280 \begin_layout Plain Layout
1281 doc/
1282 \end_layout
1283
1284 \end_inset
1285
1286 サブディレクトリには,設定スクリプト(
1287 \begin_inset Flex MenuItem
1288 status collapsed
1289
1290 \begin_layout Plain Layout
1291 ツール\SpecialChar menuseparator
1292 環境構成
1293 \end_layout
1294
1295 \end_inset
1296
1297 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1298 \end_layout
1299
1300 \begin_layout Chapter
1301 設定ダイアログ
1302 \end_layout
1303
1304 \begin_layout Standard
1305 設定ダイアログのオプションのすべては,
1306 \emph on
1307 ユーザーの手引き
1308 \emph default
1309 の付録
1310 \emph on
1311 設定ダイアログ
1312 \emph default
1313 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1314 \end_layout
1315
1316 \begin_layout Section
1317 ファイル形式
1318 \begin_inset CommandInset label
1319 LatexCommand label
1320 name "sec:ファイル形式"
1321
1322 \end_inset
1323
1324
1325 \end_layout
1326
1327 \begin_layout Standard
1328 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1329 \begin_inset Flex MenuItem
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333 ツール\SpecialChar menuseparator
1334 設定
1335 \end_layout
1336
1337 \end_inset
1338
1339 ダイアログを開いてください.
1340 \begin_inset Flex MenuItem
1341 status collapsed
1342
1343 \begin_layout Plain Layout
1344 ファイル処理\SpecialChar menuseparator
1345 ファイル形式
1346 \end_layout
1347
1348 \end_inset
1349
1350 の中で
1351 \begin_inset Flex MenuItem
1352 status collapsed
1353
1354 \begin_layout Plain Layout
1355 新規\SpecialChar ldots
1356
1357 \end_layout
1358
1359 \end_inset
1360
1361 ボタンを押して,登録する新しい形式を定義してください.
1362 \begin_inset Flex MenuItem
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366 形式
1367 \end_layout
1368
1369 \end_inset
1370
1371 フィールドは,GUI中で形式を認識するために用いられる名称です.
1372 \begin_inset Flex MenuItem
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376 短縮名
1377 \end_layout
1378
1379 \end_inset
1380
1381 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1382 \begin_inset Flex MenuItem
1383 status collapsed
1384
1385 \begin_layout Plain Layout
1386 捷径
1387 \end_layout
1388
1389 \end_inset
1390
1391 フィールドは,メニュー中で
1392 \begin_inset Flex Ruby
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 捷径
1397 \begin_inset Argument post:1
1398 status collapsed
1399
1400 \begin_layout Plain Layout
1401 ショートカット
1402 \end_layout
1403
1404 \end_inset
1405
1406
1407 \end_layout
1408
1409 \end_inset
1410
1411 を提供するのに使用されます(たとえば,
1412 \begin_inset Flex MenuItem
1413 status collapsed
1414
1415 \begin_layout Plain Layout
1416 Ctrl+D
1417 \end_layout
1418
1419 \end_inset
1420
1421 を押すと
1422 \begin_inset Flex MenuItem
1423 status collapsed
1424
1425 \begin_layout Plain Layout
1426 表示\SpecialChar menuseparator
1427 DVI
1428 \end_layout
1429
1430 \end_inset
1431
1432 となります).
1433 \end_layout
1434
1435 \begin_layout Standard
1436 形式には,
1437 \begin_inset Flex MenuItem
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 閲覧プログラム
1442 \end_layout
1443
1444 \end_inset
1445
1446
1447 \begin_inset Flex MenuItem
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 編集プログラム
1452 \end_layout
1453
1454 \end_inset
1455
1456 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1457 \begin_inset Flex MenuItem
1458 status collapsed
1459
1460 \begin_layout Plain Layout
1461 Ghostview
1462 \end_layout
1463
1464 \end_inset
1465
1466 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1467 いることができます.この閲覧プログラムは,\SpecialChar LyX
1468 中で画像を閲覧したり
1469 \begin_inset Flex MenuItem
1470 status collapsed
1471
1472 \begin_layout Plain Layout
1473 表示
1474 \end_layout
1475
1476 \end_inset
1477
1478 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1479 \begin_inset Flex MenuItem
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 外部で編集
1484 \end_layout
1485
1486 \end_inset
1487
1488 を選択したときに起動します.
1489 \end_layout
1490
1491 \begin_layout Standard
1492 ファイル形式の
1493 \begin_inset Flex MenuItem
1494 status collapsed
1495
1496 \begin_layout Plain Layout
1497 MIME
1498 \end_layout
1499
1500 \end_inset
1501
1502 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1503 ます.重要なファイル形式のうちには,
1504 \begin_inset CommandInset href
1505 LatexCommand href
1506 name "IANA"
1507 target "http://www.iana.org/assignments/media-types/"
1508 literal "false"
1509
1510 \end_inset
1511
1512 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1513 は,
1514 \begin_inset CommandInset href
1515 LatexCommand href
1516 name "freedesktop.org"
1517 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1518 literal "false"
1519
1520 \end_inset
1521
1522 で指定されているMIME型拡張表を使用しています.
1523 \end_layout
1524
1525 \begin_layout Standard
1526 \begin_inset Flex MenuItem
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 文書形式
1531 \end_layout
1532
1533 \end_inset
1534
1535 オプションは,\SpecialChar LyX
1536 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1537 \begin_inset CommandInset ref
1538 LatexCommand ref
1539 reference "sec:変換子"
1540
1541 \end_inset
1542
1543 節を参照),この形式が
1544 \begin_inset Flex MenuItem
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 ファイル\SpecialChar menuseparator
1549 書き出し
1550 \end_layout
1551
1552 \end_inset
1553
1554
1555 \begin_inset Flex MenuItem
1556 status collapsed
1557
1558 \begin_layout Plain Layout
1559 表示
1560 \end_layout
1561
1562 \end_inset
1563
1564 footlabel Label color for footnotす.
1565 \begin_inset Flex Code
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 png
1570 \end_layout
1571
1572 \end_inset
1573
1574 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1575 \begin_inset Flex Code
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 pdf
1580 \end_layout
1581
1582 \end_inset
1583
1584 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1585 \end_layout
1586
1587 \begin_layout Standard
1588 \begin_inset Flex MenuItem
1589 status collapsed
1590
1591 \begin_layout Plain Layout
1592 ベクター画像形式
1593 \end_layout
1594
1595 \end_inset
1596
1597 オプションは,\SpecialChar LyX
1598 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1599 \begin_inset Flex MenuItem
1600 status collapsed
1601
1602 \begin_layout Plain Layout
1603 pdflatex
1604 \end_layout
1605
1606 \end_inset
1607
1608 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1609 \begin_inset Flex MenuItem
1610 status collapsed
1611
1612 \begin_layout Plain Layout
1613 pdflatex
1614 \end_layout
1615
1616 \end_inset
1617
1618 は,
1619 \begin_inset Flex MenuItem
1620 status collapsed
1621
1622 \begin_layout Plain Layout
1623 pdf
1624 \end_layout
1625
1626 \end_inset
1627
1628
1629 \begin_inset Flex MenuItem
1630 status collapsed
1631
1632 \begin_layout Plain Layout
1633 png
1634 \end_layout
1635
1636 \end_inset
1637
1638
1639 \begin_inset Flex MenuItem
1640 status collapsed
1641
1642 \begin_layout Plain Layout
1643 Des
1644 \end_layout
1645
1646 \end_inset
1647
1648 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1649 \begin_inset Flex MenuItem
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 pdf
1654 \end_layout
1655
1656 \end_inset
1657
1658
1659 \begin_inset Flex MenuItem
1660 status collapsed
1661
1662 \begin_layout Plain Layout
1663 png
1664 \end_layout
1665
1666 \end_inset
1667
1668
1669 \begin_inset Flex MenuItem
1670 status collapsed
1671
1672 \begin_layout Plain Layout
1673 jpg
1674 \end_layout
1675
1676 \end_inset
1677
1678 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1679 \begin_inset Flex MenuItem
1680 status collapsed
1681
1682 \begin_layout Plain Layout
1683 pdf
1684 \end_layout
1685
1686 \end_inset
1687
1688 に変換され,そうでない場合には
1689 \begin_inset Flex MenuItem
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 png
1694 \end_layout
1695
1696 \end_inset
1697
1698 に変換されます.
1699 \end_layout
1700
1701 \begin_layout Section
1702 複写子
1703 \end_layout
1704
1705 \begin_layout Standard
1706 形式の変換はすべて,\SpecialChar LyX
1707 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1708 \begin_inset Foot
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1713 あります.
1714 \end_layout
1715
1716 \end_inset
1717
1718 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1719 \end_layout
1720
1721 \begin_layout Standard
1722 複写子の定義においては,以下の8つの変数を用いることができます.
1723 \end_layout
1724
1725 \begin_layout Labeling
1726 \labelwidthstring 00.00.0000
1727 \begin_inset Flex Code
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 $$s
1732 \end_layout
1733
1734 \end_inset
1735
1736  \SpecialChar LyX
1737 のシステムディレクトリ(例:
1738 \begin_inset Flex MenuItem
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 /usr/share/lyx
1743 \end_layout
1744
1745 \end_inset
1746
1747
1748 \end_layout
1749
1750 \begin_layout Labeling
1751 \labelwidthstring 00.00.0000
1752 \begin_inset Flex Code
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 $$i
1757 \end_layout
1758
1759 \end_inset
1760
1761  入力ファイル
1762 \end_layout
1763
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Flex Code
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 $$o
1771 \end_layout
1772
1773 \end_inset
1774
1775  出力ファイル
1776 \end_layout
1777
1778 \begin_layout Labeling
1779 \labelwidthstring 00.00.0000
1780 \begin_inset Flex Code
1781 status collapsed
1782
1783 \begin_layout Plain Layout
1784 $$b
1785 \end_layout
1786
1787 \end_inset
1788
1789  \SpecialChar LyX
1790 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1791 \end_layout
1792
1793 \begin_layout Labeling
1794 \labelwidthstring 00.00.0000
1795 \begin_inset Flex Code
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 $$p
1800 \end_layout
1801
1802 \end_inset
1803
1804  \SpecialChar LyX
1805 一時ディレクトリのフルパス名
1806 \end_layout
1807
1808 \begin_layout Labeling
1809 \labelwidthstring 00.00.0000
1810 \begin_inset Flex Code
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814 $$r
1815 \end_layout
1816
1817 \end_inset
1818
1819  処理されている元の\SpecialChar LyX
1820 ファイルのフルパス名
1821 \end_layout
1822
1823 \begin_layout Labeling
1824 \labelwidthstring 00.00.0000
1825 \begin_inset Flex Code
1826 status collapsed
1827
1828 \begin_layout Plain Layout
1829 $$f
1830 \end_layout
1831
1832 \end_inset
1833
1834  \SpecialChar LyX
1835 ファイルのファイル名(ディレクトリパスなし)
1836 \end_layout
1837
1838 \begin_layout Labeling
1839 \labelwidthstring 00.00.0000
1840 \begin_inset Flex Code
1841 status collapsed
1842
1843 \begin_layout Plain Layout
1844 $$l
1845 \end_layout
1846
1847 \end_inset
1848
1849  「\SpecialChar LaTeX
1850 名」
1851 \end_layout
1852
1853 \begin_layout Standard
1854 最後の変数は,\SpecialChar LaTeX
1855
1856 \series bold
1857
1858 \backslash
1859 include
1860 \series default
1861 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1862 \end_layout
1863
1864 \begin_layout Standard
1865 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 /home/you/pdf/
1871 \end_layout
1872
1873 \end_inset
1874
1875 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1876 \end_layout
1877
1878 \begin_layout Standard
1879 \begin_inset listings
1880 inline false
1881 status open
1882
1883 \begin_layout Plain Layout
1884
1885 #!/bin/bash
1886 \end_layout
1887
1888 \begin_layout Plain Layout
1889
1890 FROMFILE=$1
1891 \end_layout
1892
1893 \begin_layout Plain Layout
1894
1895 TOFILE=`basename $2`
1896 \end_layout
1897
1898 \begin_layout Plain Layout
1899
1900 DescriptionE /home/you/pdf/$TOFILE
1901 \end_layout
1902
1903 \end_inset
1904
1905 これを,例えば
1906 \begin_inset Flex Code
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 /home/you/.lyx/scripts/pdfcopier.sh
1911 \end_layout
1912
1913 \end_inset
1914
1915 のような,自身のローカル\SpecialChar LyX
1916 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1917 \begin_inset Flex MenuItem
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 ツール\SpecialChar menuseparator
1922 設定
1923 \end_layout
1924
1925 \end_inset
1926
1927 ダイアログの
1928 \begin_inset Flex MenuItem
1929 status collapsed
1930
1931 \begin_layout Plain Layout
1932 ファイル処理\SpecialChar menuseparator
1933 ファイル形式
1934 \end_layout
1935
1936 \end_inset
1937
1938 の中で,
1939 \begin_inset Flex MenuItem
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 PDF(pdflatex)
1944 \end_layout
1945
1946 \end_inset
1947
1948 形式—あるいは他のPDF形式のうちどれか—を選択し,
1949 \begin_inset Flex MenuItem
1950 status collapsed
1951
1952 \begin_layout Plain Layout
1953 複写子
1954 \end_layout
1955
1956 \end_inset
1957
1958 フィールドに
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963 pdfcopier.sh $$i $$o
1964 \end_layout
1965
1966 \end_inset
1967
1968 と入力します.
1969 \end_layout
1970
1971 \begin_layout Standard
1972 複写子は,\SpecialChar LyX
1973 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
1974 は自動的に
1975 \begin_inset Flex MenuItem
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 HTML
1980 \end_layout
1981
1982 \end_inset
1983
1984 形式と
1985 \begin_inset Flex MenuItem
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 HTML
1990 \begin_inset space ~
1991 \end_inset
1992
1993 (MS Word)
1994 \end_layout
1995
1996 \end_inset
1997
1998 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1999 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2000 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
2001 \begin_inset Foot
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2006 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2007 \begin_inset Flex MenuItem
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 LyXconv
2012 \end_layout
2013
2014 \end_inset
2015
2016 」となっているので,
2017 \begin_inset Flex MenuItem
2018 status collapsed
2019
2020 \begin_layout Plain Layout
2021 /path/to/filename.lyx
2022 \end_layout
2023
2024 \end_inset
2025
2026 から生成されたHTMLファイルは,
2027 \begin_inset Flex MenuItem
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 /path/to/filename.html.LyXconv
2032 \end_layout
2033
2034 \end_inset
2035
2036 となります..
2037  
2038 \end_layout
2039
2040 \end_inset
2041
2042
2043 \end_layout
2044
2045 \begin_layout Section
2046 変換子
2047 \begin_inset CommandInset label
2048 LatexCommand label
2049 name "sec:変換子"
2050
2051 \end_inset
2052
2053
2054 \end_layout
2055
2056 \begin_layout Standard
2057 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2058 \begin_inset Flex MenuItem
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 ツール\SpecialChar menuseparator
2063 設定\SpecialChar menuseparator
2064 ファイル処理\SpecialChar menuseparator
2065 変換子
2066 \end_layout
2067
2068 \end_inset
2069
2070 ダイアログで行います.
2071 \end_layout
2072
2073 \begin_layout Standard
2074 新規に変換子を定義するには,ドロップダウンリストから
2075 \begin_inset Flex MenuItem
2076 status collapsed
2077
2078 \begin_layout Plain Layout
2079 変換元の形式
2080 \end_layout
2081
2082 \end_inset
2083
2084
2085 \begin_inset Flex MenuItem
2086 status collapsed
2087
2088 \begin_layout Plain Layout
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 追加
2100 \end_layout
2101
2102 \end_inset
2103
2104 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2105 \end_layout
2106
2107 \begin_layout Labeling
2108 \labelwidthstring 00.00.0000
2109 \begin_inset Flex Code
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 $$s
2114 \end_layout
2115
2116 \end_inset
2117
2118  \SpecialChar LyX
2119 システムディレクトリ
2120 \end_layout
2121
2122 \begin_layout Labeling
2123 \labelwidthstring 00.00.0000
2124 \begin_inset Flex Code
2125 status collapsed
2126
2127 \begin_layout Plain Layout
2128 $$i
2129 \end_layout
2130
2131 \end_inset
2132
2133  入力ファイル
2134 \end_layout
2135
2136 \begin_layout Labeling
2137 \labelwidthstring 00.00.0000
2138 \begin_inset Flex Code
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 $$o
2143 \end_layout
2144
2145 \end_inset
2146
2147  出力ファイル
2148 \end_layout
2149
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156 $$b
2157 \end_layout
2158
2159 \end_inset
2160
2161  入力ファイルのベースファイル名(拡張子をとった部分)
2162 \end_layout
2163
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 $$p
2171 \end_layout
2172
2173 \end_inset
2174
2175  入力ファイルのパス
2176 \end_layout
2177
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 $$r
2185 \end_layout
2186
2187 \end_inset
2188
2189  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2190 \end_layout
2191
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 $$e
2199 \end_layout
2200
2201 \end_inset
2202
2203  文書エンコーディングのiconv名
2204 \end_layout
2205
2206 \begin_layout Standard
2207 \begin_inset Flex MenuItem
2208 status collapsed
2209
2210 \begin_layout Plain Layout
2211 追加フラグ
2212 \end_layout
2213
2214 \end_inset
2215
2216 フィールドには,以下のフラグをコンマで区切って入力することができます.
2217 \end_layout
2218
2219 \begin_layout Labeling
2220 \labelwidthstring 00.00.0000
2221 \begin_inset Flex Code
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 latex
2226 \end_layout
2227
2228 \end_inset
2229
2230  この変換子が\SpecialChar LaTeX
2231 の一種を実行することを示します.これによって,\SpecialChar LyX
2232 の\SpecialChar LaTeX
2233 エラーログに記録を残せるようになります.
2234 \end_layout
2235
2236 \begin_layout Labeling
2237 \labelwidthstring 00.00.0000
2238 \begin_inset Flex Code
2239 status collapsed
2240
2241 \begin_layout Plain Layout
2242 needaux
2243 \end_layout
2244
2245 \end_inset
2246
2247  変換に\SpecialChar LaTeX
2248
2249 \begin_inset Flex MenuItem
2250 status collapsed
2251
2252 \begin_layout Plain Layout
2253 .aux
2254 \end_layout
2255
2256 \end_inset
2257
2258 ファイルが必要であることを示します.
2259 \end_layout
2260
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Flex Code
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 nice
2268 \end_layout
2269
2270 \end_inset
2271
2272  バックエンドからの
2273 \begin_inset Quotes erd
2274 \end_inset
2275
2276 nice
2277 \begin_inset Quotes erd
2278 \end_inset
2279
2280 なファイル,つまり\SpecialChar LyX
2281 が書き出す\SpecialChar LaTeX
2282 ファイルのように,
2283 \begin_inset Flex Code
2284 status open
2285
2286 \begin_layout Plain Layout
2287 input@path
2288 \end_layout
2289
2290 \end_inset
2291
2292 のない\SpecialChar LaTeX
2293 ファイルを必要とします.
2294 \end_layout
2295
2296 \begin_layout Labeling
2297 \labelwidthstring 00.00.0000
2298 \begin_inset Flex Code
2299 status collapsed
2300
2301 \begin_layout Plain Layout
2302 xml
2303 \end_layout
2304
2305 \end_inset
2306
2307  出力がXMLであることを示します.
2308 \end_layout
2309
2310 \begin_layout Standard
2311 以下の3つのフラグは 
2312 \begin_inset Flex MenuItem
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316 key
2317 \begin_inset space ~
2318 \end_inset
2319
2320 =
2321 \begin_inset space ~
2322 \end_inset
2323
2324 value
2325 \end_layout
2326
2327 \end_inset
2328
2329 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2330 \end_layout
2331
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Flex Code
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 parselog
2339 \end_layout
2340
2341 \end_inset
2342
2343  これを指定すると,変換子の標準エラーが
2344 \begin_inset Flex Code
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 infile.out
2349 \end_layout
2350
2351 \end_inset
2352
2353 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 script < infile.out > infile.log
2359 \end_layout
2360
2361 \end_inset
2362
2363 の形で実行されるようになります.引数には
2364 \begin_inset Flex Code
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 $$s
2369 \end_layout
2370
2371 \end_inset
2372
2373 を指定することができます.
2374 \end_layout
2375
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Flex Code
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 resultdir
2383 \end_layout
2384
2385 \end_inset
2386
2387  これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2388 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2389 ピーします.引数には,
2390 \begin_inset Flex Code
2391 status collapsed
2392
2393 \begin_layout Plain Layout
2394 $$b
2395 \end_layout
2396
2397 \end_inset
2398
2399 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2400 \begin_inset Newline newline
2401 \end_inset
2402
2403 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2404 \end_layout
2405
2406 \begin_layout Labeling
2407 \labelwidthstring 00.00.0000
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 resultfile
2413 \end_layout
2414
2415 \end_inset
2416
2417  これは出力ファイル名を指定するもので,
2418 \begin_inset Flex Code
2419 status collapsed
2420
2421 \begin_layout Plain Layout
2422 $$b
2423 \end_layout
2424
2425 \end_inset
2426
2427 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2428 \end_layout
2429
2430 \begin_layout Standard
2431 最後の3つは,\SpecialChar LyX
2432 とともに導入される変換子には,現在いずれも使用されておりません.
2433 \end_layout
2434
2435 \begin_layout Standard
2436 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2437 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2438 はPostScrip
2439 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2440 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2441 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2442 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2443 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2444 設定は,\SpecialChar LaTeX
2445 からPDFへ変換するのに,以下の3つの方法を
2446 用意しています.
2447 \end_layout
2448
2449 \begin_layout Enumerate
2450 直接
2451 \begin_inset Flex MenuItem
2452 status collapsed
2453
2454 \begin_layout Plain Layout
2455 pdflatex
2456 \end_layout
2457
2458 \end_inset
2459
2460 を使用するもの
2461 \end_layout
2462
2463 \begin_layout Enumerate
2464 (DVIと)PostScriptを経由して
2465 \begin_inset Flex MenuItem
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 ps2pdf
2470 \end_layout
2471
2472 \end_inset
2473
2474 を使用するもの
2475 \end_layout
2476
2477 \begin_layout Enumerate
2478 DVI経由で
2479 \begin_inset Flex MenuItem
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 dvipdfm
2484 \end_layout
2485
2486 \end_inset
2487
2488 を使用するもの
2489 \end_layout
2490
2491 \begin_layout Enumerate
2492 直接
2493 \begin_inset Flex MenuItem
2494 status collapsed
2495
2496 \begin_layout Plain Layout
2497 Xe\SpecialChar TeX
2498
2499 \end_layout
2500
2501 \end_inset
2502
2503 を使用するもの
2504 \end_layout
2505
2506 \begin_layout Enumerate
2507 直接
2508 \begin_inset Flex MenuItem
2509 status collapsed
2510
2511 \begin_layout Plain Layout
2512 Lua\SpecialChar TeX
2513
2514 \end_layout
2515
2516 \end_inset
2517
2518 を使用するもの
2519 \end_layout
2520
2521 \begin_layout Standard
2522 このように代替連鎖を定義するには,第
2523 \begin_inset CommandInset ref
2524 LatexCommand ref
2525 reference "sec:ファイル形式"
2526
2527 \end_inset
2528
2529 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2530 \begin_inset Flex MenuItem
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 pdf
2535 \end_layout
2536
2537 \end_inset
2538
2539 (
2540 \begin_inset Flex MenuItem
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 ps2pdf
2545 \end_layout
2546
2547 \end_inset
2548
2549 用)・
2550 \begin_inset Flex MenuItem
2551 status collapsed
2552
2553 \begin_layout Plain Layout
2554 pdf2
2555 \end_layout
2556
2557 \end_inset
2558
2559 (
2560 \begin_inset Flex MenuItem
2561 status collapsed
2562
2563 \begin_layout Plain Layout
2564 pdflatex
2565 \end_layout
2566
2567 \end_inset
2568
2569 用)・
2570 \begin_inset Flex MenuItem
2571 status collapsed
2572
2573 \begin_layout Plain Layout
2574 pdf3
2575 \end_layout
2576
2577 \end_inset
2578
2579 (
2580 \begin_inset Flex MenuItem
2581 status collapsed
2582
2583 \begin_layout Plain Layout
2584 dvipdfm
2585 \end_layout
2586
2587 \end_inset
2588
2589 用)・
2590 \begin_inset Flex MenuItem
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594 pdf4
2595 \end_layout
2596
2597 \end_inset
2598
2599 (
2600 \begin_inset Flex MenuItem
2601 status collapsed
2602
2603 \begin_layout Plain Layout
2604 Xe\SpecialChar TeX
2605
2606 \end_layout
2607
2608 \end_inset
2609
2610 用)・
2611 \begin_inset Flex MenuItem
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 pdf5
2616 \end_layout
2617
2618 \end_inset
2619
2620 (
2621 \begin_inset Flex MenuItem
2622 status collapsed
2623
2624 \begin_layout Plain Layout
2625 Lua\SpecialChar TeX
2626
2627 \end_layout
2628
2629 \end_inset
2630
2631 用\SpecialChar softhyphen
2632 ) と命名された形式が定義されていて,すべて共通の拡張子
2633 \begin_inset Flex MenuItem
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 .pdf
2638 \end_layout
2639
2640 \end_inset
2641
2642 を持ち,上記で言及した各変換方法に対応しています.
2643 \end_layout
2644
2645 \begin_layout Chapter
2646 \SpecialChar LyX
2647 の各国語対応
2648 \begin_inset CommandInset label
2649 LatexCommand label
2650 name "cha:LyXの各国語対応"
2651
2652 \end_inset
2653
2654
2655 \end_layout
2656
2657 \begin_layout Standard
2658 \SpecialChar LyX
2659 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2660 は30言語の翻訳を提供しています.選択した言語は,使用する
2661 \emph on
2662 ロケール
2663 \emph default
2664 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 locale(5)
2670 \end_layout
2671
2672 \end_inset
2673
2674 から見ると良いかもしれません).
2675 \end_layout
2676
2677 \begin_layout Standard
2678 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2679 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2680 \begin_inset Flex Ruby
2681 status collapsed
2682
2683 \begin_layout Plain Layout
2684 捷径
2685 \begin_inset Argument post:1
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 ショートカット
2690 \end_layout
2691
2692 \end_inset
2693
2694
2695 \end_layout
2696
2697 \end_inset
2698
2699 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2700 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2701 \begin_inset Foot
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2706 コミュニティに報いるたいへん素晴らしい方法です!
2707 \end_layout
2708
2709 \end_inset
2710
2711 —は,\SpecialChar LyX
2712 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2713 \end_layout
2714
2715 \begin_layout Section
2716 \SpecialChar LyX
2717 を翻訳する
2718 \end_layout
2719
2720 \begin_layout Subsection
2721 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2722 \begin_inset Argument 1
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 GUI(テキストメッセージ)を翻訳する
2727 \end_layout
2728
2729 \end_inset
2730
2731
2732 \end_layout
2733
2734 \begin_layout Standard
2735 \SpecialChar LyX
2736 は,操作画面の国際化対応にGNU 
2737 \begin_inset Flex Code
2738 status collapsed
2739
2740 \begin_layout Plain Layout
2741 gettext
2742 \end_layout
2743
2744 \end_inset
2745
2746 ライブラリを使用します.\SpecialChar LyX
2747 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2748 \begin_inset Flex Code
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 po
2753 \end_layout
2754
2755 \end_inset
2756
2757 ファイルが必要です.このファイルが利用可能であれば,そこから
2758 \begin_inset Flex Code
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 mo
2763 \end_layout
2764
2765 \end_inset
2766
2767 ファイルを生成して,この
2768 \begin_inset Flex Code
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 mo
2773 \end_layout
2774
2775 \end_inset
2776
2777 ファイルをインストールしなくてはなりません.この全過程は,GNU 
2778 \begin_inset Flex Code
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782 gettext
2783 \end_layout
2784
2785 \end_inset
2786
2787 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2788 コミュニティの他の人々と分かち
2789 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2790 開発者メーリングリストにメールを送ってください.
2791 \end_layout
2792
2793 \begin_layout Standard
2794 要約すれば,以下のように行います(xxは言語コードを表します).
2795 \end_layout
2796
2797 \begin_layout Itemize
2798 \SpecialChar LyX
2799 ソースコードをチェックアウトしてください(
2800 \begin_inset CommandInset href
2801 LatexCommand href
2802 name "ウェブ上の情報"
2803 target "http://www.lyx.org/HowToUseGIT"
2804 literal "false"
2805
2806 \end_inset
2807
2808 参照).
2809 \end_layout
2810
2811 \begin_layout Itemize
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 lyx.pot
2817 \end_layout
2818
2819 \end_inset
2820
2821 ファイルを
2822 \begin_inset Flex Code
2823 status collapsed
2824
2825 \begin_layout Plain Layout
2826 **.po
2827 \end_layout
2828
2829 \end_inset
2830
2831 ファイルのあるフォルダにコピーして,
2832 \begin_inset Flex Code
2833 status collapsed
2834
2835 \begin_layout Plain Layout
2836 xx.po
2837 \end_layout
2838
2839 \end_inset
2840
2841 に名前を付け替えてください(
2842 \begin_inset Flex Code
2843 status collapsed
2844
2845 \begin_layout Plain Layout
2846 lyx.pot
2847 \end_layout
2848
2849 \end_inset
2850
2851 がどこにもない場合には,コンソールからそのディレクトリで
2852 \begin_inset Flex Code
2853 status collapsed
2854
2855 \begin_layout Plain Layout
2856 make lyx.pot
2857 \end_layout
2858
2859 \end_inset
2860
2861 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2862 \end_layout
2863
2864 \begin_layout Itemize
2865 \begin_inset Flex Code
2866 status collapsed
2867
2868 \begin_layout Plain Layout
2869 xx.po
2870 \end_layout
2871
2872 \end_inset
2873
2874 を編集します.
2875 \begin_inset Foot
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2880 \family typewriter
2881 Poedit
2882 \family default
2883 (全プラットフォーム用)や
2884 \family typewriter
2885 KBabel
2886 \family default
2887 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2888 \family typewriter
2889 Emacs
2890 \family default
2891 にも
2892 \begin_inset Flex Code
2893 status collapsed
2894
2895 \begin_layout Plain Layout
2896 po
2897 \end_layout
2898
2899 \end_inset
2900
2901 ファイルを編集するための「モード」があります,第
2902 \begin_inset Flex URL
2903 status open
2904
2905 \begin_layout Plain Layout
2906
2907 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2908 \backslash
2909 #PO-Mode
2910 \end_layout
2911
2912 \end_inset
2913
2914
2915 \end_layout
2916
2917 \end_inset
2918
2919 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2920 \begin_inset Flex Ruby
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 捷径
2925 \begin_inset Argument post:1
2926 status collapsed
2927
2928 \begin_layout Plain Layout
2929 ショートカット
2930 \end_layout
2931
2932 \end_inset
2933
2934
2935 \end_layout
2936
2937 \end_inset
2938
2939 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2940 \begin_inset Flex Code
2941 status collapsed
2942
2943 \begin_layout Plain Layout
2944 po
2945 \end_layout
2946
2947 \end_inset
2948
2949 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2950 \end_layout
2951
2952 \begin_layout Standard
2953 もし,あなたがこれを自身のためだけに行っているのであれば,
2954 \end_layout
2955
2956 \begin_layout Itemize
2957 \begin_inset Flex Code
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 xx.mo
2962 \end_layout
2963
2964 \end_inset
2965
2966 を生成してください.これは
2967 \begin_inset Flex Code
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 msgfmt -o xx.mo < xx.po
2972 \end_layout
2973
2974 \end_inset
2975
2976 でできます.
2977 \end_layout
2978
2979 \begin_layout Itemize
2980 この
2981 \begin_inset Flex Code
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 mo
2986 \end_layout
2987
2988 \end_inset
2989
2990 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
2991 \begin_inset Flex Code
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 lyx.mo
2996 \end_layout
2997
2998 \end_inset
2999
3000 という名称にしてください(例:
3001 \begin_inset Flex Code
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3006 \end_layout
3007
3008 \end_inset
3009
3010 ).
3011 \end_layout
3012
3013 \begin_layout Standard
3014 しかしながら前述のように,この新しい
3015 \begin_inset Flex Code
3016 status collapsed
3017
3018 \begin_layout Plain Layout
3019 po
3020 \end_layout
3021
3022 \end_inset
3023
3024 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3025 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3026 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3027 グリストに電子メールを送ってください.
3028 \end_layout
3029
3030 \begin_layout Subsubsection
3031 多義訳語メッセージ
3032 \end_layout
3033
3034 \begin_layout Standard
3035 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3036 \begin_inset Flex Code
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 To
3041 \end_layout
3042
3043 \end_inset
3044
3045 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU 
3046 \begin_inset Flex Code
3047 status collapsed
3048
3049 \begin_layout Plain Layout
3050 gettext
3051 \end_layout
3052
3053 \end_inset
3054
3055 は,このような多義訳語を
3056 \begin_inset Flex Code
3057 status collapsed
3058
3059 \begin_layout Plain Layout
3060 To
3061 \end_layout
3062
3063 \end_inset
3064
3065 の代わりに,
3066 \begin_inset Flex Code
3067 status collapsed
3068
3069 \begin_layout Plain Layout
3070 To[[as in 'From format x to format y']]
3071 \end_layout
3072
3073 \end_inset
3074
3075
3076 \begin_inset Flex Code
3077 status collapsed
3078
3079 \begin_layout Plain Layout
3080 To[[as in 'From page x to page y']]
3081 \end_layout
3082
3083 \end_inset
3084
3085 としなくてはなりません.これによって,これら2つの
3086 \begin_inset Flex Code
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 To
3091 \end_layout
3092
3093 \end_inset
3094
3095 は,
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 gettext
3101 \end_layout
3102
3103 \end_inset
3104
3105 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3106 \end_layout
3107
3108 \begin_layout Standard
3109 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3110 の翻訳機構
3111 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3112 \end_layout
3113
3114 \begin_layout Subsection
3115 説明書を翻訳する
3116 \end_layout
3117
3118 \begin_layout Standard
3119
3120 \begin_inset Flex MenuItem
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 Help
3125 \end_layout
3126
3127 \end_inset
3128
3129 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3130 \begin_inset Foot
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3135 \end_layout
3136
3137 \end_inset
3138
3139 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3140 はこれを自動的に使用します.\SpecialChar LyX
3141 は,翻訳版を
3142 \begin_inset Flex Code
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146 LyXDir/doc/xx/DocName.lyx
3147 \end_layout
3148
3149 \end_inset
3150
3151
3152 \begin_inset Flex Code
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 xx
3157 \end_layout
3158
3159 \end_inset
3160
3161 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 DocName
3167 \end_layout
3168
3169 \end_inset
3170
3171 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3172 うべきです.
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 説明書翻訳ウェブページ
3177 \begin_inset CommandInset href
3178 LatexCommand href
3179 name "http://www.lyx.org/Translation"
3180 target "http://www.lyx.org/Translation"
3181 literal "false"
3182
3183 \end_inset
3184
3185 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3186 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3187 \end_layout
3188
3189 \begin_layout Standard
3190 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3191 \end_layout
3192
3193 \begin_layout Itemize
3194 文書化チームに所属してください!そのための情報が
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199 Intro.lyx
3200 \end_layout
3201
3202 \end_inset
3203
3204
3205 \begin_inset Flex MenuItem
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209 ヘルプ\SpecialChar menuseparator
3210 はじめの一歩
3211 \end_layout
3212
3213 \end_inset
3214
3215 )にあります.また,この
3216 \begin_inset Flex Code
3217 status collapsed
3218
3219 \begin_layout Plain Layout
3220 Intro.lyx
3221 \end_layout
3222
3223 \end_inset
3224
3225 が最初に訳すべき文書です.
3226 \end_layout
3227
3228 \begin_layout Itemize
3229 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3230 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3231 \emph on
3232 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3233 \emph default
3234
3235 \end_layout
3236
3237 \begin_layout Itemize
3238 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3239 \begin_inset Flex Code
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 UserDir/doc/xx/
3244 \end_layout
3245
3246 \end_inset
3247
3248 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3249 \begin_inset Newline newline
3250 \end_inset
3251
3252
3253 \begin_inset Note Greyedout
3254 status open
3255
3256 \begin_layout Plain Layout
3257
3258 \series bold
3259 【註】
3260 \series default
3261 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3262 ことに注意してください.最も良い方法は,LyXツリーをgit (
3263 \begin_inset Flex URL
3264 status collapsed
3265
3266 \begin_layout Plain Layout
3267
3268 http://www.lyx.org/HowToUseGIT
3269 \end_layout
3270
3271 \end_inset
3272
3273 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3274 \end_layout
3275
3276 \end_inset
3277
3278
3279 \end_layout
3280
3281 \begin_layout Itemize
3282 (\SpecialChar LyX
3283 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3284 \begin_inset CommandInset href
3285 LatexCommand href
3286 name "http://www.lyx.org/trac/timeline"
3287 target "http://www.lyx.org/trac/timeline"
3288 literal "false"
3289
3290 \end_inset
3291
3292 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3293 \end_layout
3294
3295 \begin_layout Standard
3296 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3297 \end_layout
3298
3299 \begin_layout Standard
3300 \begin_inset Branch OutDated
3301 inverted 0
3302 status collapsed
3303
3304 \begin_layout Section
3305 International Keyboard Support
3306 \end_layout
3307
3308 \begin_layout Standard
3309
3310 \emph on
3311 [Editor's Note: The following section is by
3312 \emph default
3313  
3314 \shape smallcaps
3315 \emph on
3316 Ivan Schreter
3317 \shape default
3318 .
3319  It needs to be fixed to conform to the new Documentation Style sheet and
3320  to make use of the new v1.0 features.
3321  The whole thing also needs to be merged with the section following it.-jw
3322  It may also be badly out of date.-rh (2008)]
3323 \end_layout
3324
3325 \begin_layout Subsection
3326 Defining Own Keymaps: Keymap File Format
3327 \end_layout
3328
3329 \begin_layout Standard
3330 Let's look at a keyboard definition file a little closer.
3331  It is a plain text file defining
3332 \end_layout
3333
3334 \begin_layout Itemize
3335 key-to-key or key-to-string translations
3336 \end_layout
3337
3338 \begin_layout Itemize
3339 dead keys
3340 \end_layout
3341
3342 \begin_layout Itemize
3343 dead keys exceptions
3344 \end_layout
3345
3346 \begin_layout Standard
3347 To define key-to-key or key-to-string translation, use this command:
3348 \end_layout
3349
3350 \begin_layout Quotation
3351 \begin_inset Flex Code
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355
3356 \backslash
3357 kmap
3358 \end_layout
3359
3360 \end_inset
3361
3362  
3363 \begin_inset Flex Code
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367 key
3368 \end_layout
3369
3370 \end_inset
3371
3372  outstring 
3373 \end_layout
3374
3375 \begin_layout Standard
3376 where 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 key
3382 \end_layout
3383
3384 \end_inset
3385
3386  is the key to be translated and 
3387 \begin_inset Flex Code
3388 status collapsed
3389
3390 \begin_layout Plain Layout
3391 outstring
3392 \end_layout
3393
3394 \end_inset
3395
3396  is the string to be inserted into the document.
3397  To define dead keys, use:
3398 \end_layout
3399
3400 \begin_layout Quotation
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405
3406 \backslash
3407 kmod
3408 \end_layout
3409
3410 \end_inset
3411
3412  
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417 key
3418 \end_layout
3419
3420 \end_inset
3421
3422  deadkey
3423 \end_layout
3424
3425 \begin_layout Standard
3426 where 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 key
3432 \end_layout
3433
3434 \end_inset
3435
3436  is a keyboard key and 
3437 \begin_inset Flex Code
3438 status collapsed
3439
3440 \begin_layout Plain Layout
3441 deadkey
3442 \end_layout
3443
3444 \end_inset
3445
3446  is dead key name.
3447  The following dead keys are supported (shortcut name is in parentheses):
3448 \end_layout
3449
3450 \begin_layout Quotation
3451
3452 \emph on
3453 Name
3454 \begin_inset space \hfill{}
3455 \end_inset
3456
3457 Example
3458 \end_layout
3459
3460 \begin_layout Quotation
3461 acute (acu)
3462 \begin_inset space \hfill{}
3463 \end_inset
3464
3465
3466 \lang english
3467 áéíóú
3468 \end_layout
3469
3470 \begin_layout Quotation
3471 grave (gra)
3472 \begin_inset space \hfill{}
3473 \end_inset
3474
3475
3476 \lang english
3477 àèìòù
3478 \end_layout
3479
3480 \begin_layout Quotation
3481 macron (mac)
3482 \begin_inset space \hfill{}
3483 \end_inset
3484
3485
3486 \lang english
3487  ō
3488 \end_layout
3489
3490 \begin_layout Quotation
3491 tilde (til)
3492 \begin_inset space \hfill{}
3493 \end_inset
3494
3495
3496 \lang english
3497 ñÑ
3498 \end_layout
3499
3500 \begin_layout Quotation
3501 underbar (underb)
3502 \begin_inset space \hfill{}
3503 \end_inset
3504
3505
3506 \begin_inset ERT
3507 status open
3508
3509 \begin_layout Plain Layout
3510
3511
3512 \backslash
3513 b o
3514 \end_layout
3515
3516 \end_inset
3517
3518
3519 \end_layout
3520
3521 \begin_layout Quotation
3522 cedilla (ced)
3523 \begin_inset space \hfill{}
3524 \end_inset
3525
3526
3527 \lang english
3528 çÇ
3529 \end_layout
3530
3531 \begin_layout Quotation
3532 underdot (underd)
3533 \begin_inset space \hfill{}
3534 \end_inset
3535
3536
3537 \begin_inset ERT
3538 status open
3539
3540 \begin_layout Plain Layout
3541
3542
3543 \backslash
3544 d o
3545 \end_layout
3546
3547 \end_inset
3548
3549
3550 \end_layout
3551
3552 \begin_layout Quotation
3553 circumflex (circu)
3554 \begin_inset space \hfill{}
3555 \end_inset
3556
3557
3558 \lang english
3559 âêîôû
3560 \end_layout
3561
3562 \begin_layout Quotation
3563 circle (circl)
3564 \begin_inset space \hfill{}
3565 \end_inset
3566
3567
3568 \lang english
3569 ÅůŮ
3570 \end_layout
3571
3572 \begin_layout Quotation
3573 tie (tie)
3574 \begin_inset space \hfill{}
3575 \end_inset
3576
3577
3578 \begin_inset ERT
3579 status open
3580
3581 \begin_layout Plain Layout
3582
3583
3584 \backslash
3585 t o
3586 \end_layout
3587
3588 \end_inset
3589
3590
3591 \end_layout
3592
3593 \begin_layout Quotation
3594 breve (bre)
3595 \begin_inset space \hfill{}
3596 \end_inset
3597
3598
3599 \lang english
3600 ă
3601 \lang japanese
3602
3603 \begin_inset ERT
3604 status open
3605
3606 \begin_layout Plain Layout
3607
3608
3609 \backslash
3610 u o
3611 \end_layout
3612
3613 \end_inset
3614
3615
3616 \end_layout
3617
3618 \begin_layout Quotation
3619 caron (car)
3620 \begin_inset space \hfill{}
3621 \end_inset
3622
3623
3624 \lang english
3625 čšž
3626 \end_layout
3627
3628 \begin_layout Quotation
3629 hungarian umlaut (hug)
3630 \begin_inset space \hfill{}
3631 \end_inset
3632
3633
3634 \lang english
3635 őű
3636 \end_layout
3637
3638 \begin_layout Quotation
3639 umlaut (uml)
3640 \begin_inset space \hfill{}
3641 \end_inset
3642
3643
3644 \lang english
3645 äöü
3646 \end_layout
3647
3648 \begin_layout Quotation
3649 dot (dot)
3650 \begin_inset space \hfill{}
3651 \end_inset
3652
3653
3654 \lang english
3655 ż
3656 \lang japanese
3657
3658 \begin_inset ERT
3659 status open
3660
3661 \begin_layout Plain Layout
3662
3663
3664 \backslash
3665 .s
3666 \end_layout
3667
3668 \end_inset
3669
3670
3671 \end_layout
3672
3673 \begin_layout Standard
3674 Since in many international keyboards there are exceptions to what some
3675  dead keys should do, you can define them using
3676 \end_layout
3677
3678 \begin_layout Quotation
3679 \begin_inset Flex Code
3680 status collapsed
3681
3682 \begin_layout Plain Layout
3683
3684 \backslash
3685 kxmod
3686 \end_layout
3687
3688 \end_inset
3689
3690  deadkey key outstring
3691 \end_layout
3692
3693 \begin_layout Standard
3694 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3695 , so you put in
3696 \end_layout
3697
3698 \begin_layout Quotation
3699 \begin_inset Flex Code
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703
3704 \backslash
3705 kxmod
3706 \end_layout
3707
3708 \end_inset
3709
3710  caron o "
3711 \backslash
3712 ^o"
3713 \end_layout
3714
3715 \begin_layout Standard
3716 to make it work correctly.
3717  Also, you have to define as exceptions dead keys over i and j, to remove
3718  the dot from them before inserting an accent mark.
3719  I will change this when the time comes, but so far I haven't had time.
3720 \end_layout
3721
3722 \begin_layout Standard
3723 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3724  double backslash.
3725  Also, quotes and 
3726 \begin_inset Flex Code
3727 status collapsed
3728
3729 \begin_layout Plain Layout
3730 #
3731 \end_layout
3732
3733 \end_inset
3734
3735  have different meaning.
3736  
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741 #
3742 \end_layout
3743
3744 \end_inset
3745
3746  marks comments, quotes start and end \SpecialChar LaTeX
3747 -style commands.
3748  To enter quote, you'll need to use 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753
3754 \backslash
3755 "
3756 \end_layout
3757
3758 \end_inset
3759
3760 , to enter 
3761 \begin_inset Flex Code
3762 status collapsed
3763
3764 \begin_layout Plain Layout
3765 #
3766 \end_layout
3767
3768 \end_inset
3769
3770 , use 
3771 \begin_inset Flex Code
3772 status collapsed
3773
3774 \begin_layout Plain Layout
3775
3776 \backslash
3777 #
3778 \end_layout
3779
3780 \end_inset
3781
3782 .
3783 \end_layout
3784
3785 \begin_layout Standard
3786 If you make a keyboard description file that works for your language, please
3787  mail it to me, so I can include it in the next keymap distribution.
3788 \end_layout
3789
3790 \begin_layout Standard
3791 More keywords will be supported in keymap configuration file in future,
3792  like
3793 \end_layout
3794
3795 \begin_layout Itemize
3796 \begin_inset Flex Code
3797 status collapsed
3798
3799 \begin_layout Plain Layout
3800
3801 \backslash
3802 kinclude filename
3803 \end_layout
3804
3805 \end_inset
3806
3807
3808 \emph on
3809
3810 \begin_inset space \hfill{}
3811 \end_inset
3812
3813
3814 \begin_inset Flex Code
3815 status collapsed
3816
3817 \begin_layout Plain Layout
3818 include
3819 \end_layout
3820
3821 \end_inset
3822
3823  another file
3824 \end_layout
3825
3826 \begin_layout Itemize
3827 \begin_inset Flex Code
3828 status collapsed
3829
3830 \begin_layout Plain Layout
3831
3832 \backslash
3833 kprog program
3834 \end_layout
3835
3836 \end_inset
3837
3838
3839 \emph on
3840
3841 \begin_inset space \hfill{}
3842 \end_inset
3843
3844
3845 \begin_inset Flex Code
3846 status collapsed
3847
3848 \begin_layout Plain Layout
3849 define
3850 \end_layout
3851
3852 \end_inset
3853
3854  an external keymap translation program 
3855 \end_layout
3856
3857 \begin_layout Standard
3858 Also, it should look into 
3859 \begin_inset Flex Code
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863 lyxrc
3864 \end_layout
3865
3866 \end_inset
3867
3868  file for defaults, too (for example, a 
3869 \begin_inset Flex Code
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873
3874 \backslash
3875 kinclude
3876 \end_layout
3877
3878 \end_inset
3879
3880  option to include default keyboard).
3881 \end_layout
3882
3883 \end_inset
3884
3885
3886 \end_layout
3887
3888 \begin_layout Section
3889 国際キー配列
3890 \begin_inset CommandInset label
3891 LatexCommand label
3892 name "sec:国際キー配列"
3893
3894 \end_inset
3895
3896
3897 \end_layout
3898
3899 \begin_layout Standard
3900 \begin_inset Note Note
3901 status open
3902
3903 \begin_layout Plain Layout
3904 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3905 \end_layout
3906
3907 \begin_layout Plain Layout
3908 (RH)
3909 \end_layout
3910
3911 \end_inset
3912
3913
3914 \end_layout
3915
3916 \begin_layout Standard
3917 以下の2節では,
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922 .kmap
3923 \end_layout
3924
3925 \end_inset
3926
3927 および
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932 .cdef
3933 \end_layout
3934
3935 \end_inset
3936
3937 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3938 \end_layout
3939
3940 \begin_layout Subsection
3941 .kmapファイル
3942 \end_layout
3943
3944 \begin_layout Standard
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 .kmap
3950 \end_layout
3951
3952 \end_inset
3953
3954 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3955 \begin_inset Flex Code
3956 status collapsed
3957
3958 \begin_layout Plain Layout
3959 .kmap
3960 \end_layout
3961
3962 \end_inset
3963
3964 ファイルは,以下の各項で説明するように,
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 kmap
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \begin_inset Flex Code
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979 kmod
3980 \end_layout
3981
3982 \end_inset
3983
3984
3985 \begin_inset Flex Code
3986 status collapsed
3987
3988 \begin_layout Plain Layout
3989 ksmod
3990 \end_layout
3991
3992 \end_inset
3993
3994
3995 \begin_inset Flex Code
3996 status collapsed
3997
3998 \begin_layout Plain Layout
3999 kcomb
4000 \end_layout
4001
4002 \end_inset
4003
4004 のキーワードを定義します.
4005 \end_layout
4006
4007 \begin_layout Labeling
4008 \labelwidthstring 00.00.0000
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013 kmap
4014 \end_layout
4015
4016 \end_inset
4017
4018  文字を文字列に割り当てる
4019 \end_layout
4020
4021 \begin_layout LyX-Code
4022
4023 \backslash
4024 kmap 
4025 \family roman
4026 \emph on
4027 文字
4028 \family default
4029 \emph default
4030  
4031 \family roman
4032 \emph on
4033 文字列
4034 \end_layout
4035
4036 \begin_layout Standard
4037 これは,
4038 \emph on
4039 文字
4040 \emph default
4041
4042 \emph on
4043 文字列
4044 \emph default
4045 に割り当てます.
4046 \emph on
4047 文字列
4048 \emph default
4049 中では,二重引用符(")とバックスラッシュ(
4050 \backslash
4051 )は,前にバックスラッシュ(
4052 \backslash
4053 )を付けてエスケープしなくてはならないことに注意してください.
4054 \end_layout
4055
4056 \begin_layout Standard
4057 \begin_inset Flex MenuItem
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 &
4062 \end_layout
4063
4064 \end_inset
4065
4066 を打鍵すると
4067 \begin_inset Flex MenuItem
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 /
4072 \end_layout
4073
4074 \end_inset
4075
4076 記号が出力される
4077 \begin_inset Flex MenuItem
4078 status collapsed
4079
4080 \begin_layout Plain Layout
4081 kmap
4082 \end_layout
4083
4084 \end_inset
4085
4086 ステートメントを,一例としてあげると,
4087 \end_layout
4088
4089 \begin_layout LyX-Code
4090
4091 \backslash
4092 kmap & /
4093 \end_layout
4094
4095 \begin_layout Standard
4096 のようになります.
4097 \end_layout
4098
4099 \begin_layout Labeling
4100 \labelwidthstring 00.00.0000
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 kmod
4106 \end_layout
4107
4108 \end_inset
4109
4110  アクセント文字を指定する
4111 \end_layout
4112
4113 \begin_layout LyX-Code
4114
4115 \backslash
4116 kmod 
4117 \family roman
4118 \emph on
4119 文字 アクセント 許可文字
4120 \end_layout
4121
4122 \begin_layout Standard
4123 これは
4124 \emph on
4125 文字
4126 \emph default
4127
4128 \emph on
4129 許可文字
4130 \emph default
4131 のアクセントとするものです.これはデッドキー
4132 \begin_inset Foot
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136
4137 \emph on
4138 デッドキー
4139 \emph default
4140 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4141 \emph on
4142 ä
4143 \emph default
4144 のようなウムラウトのついた文字は,このようにして出すことができます.
4145 \end_layout
4146
4147 \end_inset
4148
4149 機構です.
4150 \end_layout
4151
4152 \begin_layout Standard
4153
4154 \emph on
4155 文字
4156 \emph default
4157 を打鍵してから
4158 \emph on
4159 許可文字
4160 \emph default
4161 にないキーを打鍵すると,
4162 \emph on
4163 文字
4164 \emph default
4165 の後に許可文字ではないその文字が出力として表示されます.
4166 \begin_inset Flex MenuItem
4167 status collapsed
4168
4169 \begin_layout Plain Layout
4170 Backspace
4171 \end_layout
4172
4173 \end_inset
4174
4175 はデッドキーを取り消しますので,
4176 \emph on
4177 文字
4178 \emph default
4179
4180 \begin_inset Flex MenuItem
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184 Backspace
4185 \end_layout
4186
4187 \end_inset
4188
4189 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4190 \end_layout
4191
4192 \begin_layout Standard
4193 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4194 \end_layout
4195
4196 \begin_layout LyX-Code
4197
4198 \backslash
4199 kmod ' acute aeiouAEIOU
4200 \end_layout
4201
4202 \begin_layout Labeling
4203 \labelwidthstring 00.00.0000
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208 ksmod
4209 \end_layout
4210
4211 \end_inset
4212
4213  アクセント文字に例外を指定する
4214 \end_layout
4215
4216 \begin_layout LyX-Code
4217
4218 \backslash
4219 kxmod  
4220 \family roman
4221 \emph on
4222 アクセント 文字 結果
4223 \end_layout
4224
4225 \begin_layout Standard
4226 これは
4227 \emph on
4228 文字
4229 \emph default
4230 上の
4231 \emph on
4232 アクセント
4233 \emph default
4234 について例外を指定するものです.ここで
4235 \emph on
4236 アクセント
4237 \emph default
4238 には,前出の
4239 \begin_inset Flex Code
4240 status collapsed
4241
4242 \begin_layout Plain Layout
4243
4244 \backslash
4245 kmod
4246 \end_layout
4247
4248 \end_inset
4249
4250 宣言で打鍵キーを既に割り当てられてなくてはならず,
4251 \emph on
4252 文字
4253 \emph default
4254
4255 \emph on
4256 アクセント
4257 \emph default
4258
4259 \emph on
4260 許可文字
4261 \emph default
4262 の集合に属していてはなりません.こうして
4263 \emph on
4264 アクセント
4265 \emph default
4266
4267 \emph on
4268 文字
4269 \emph default
4270 の順に入力すると,
4271 \emph on
4272 結果
4273 \emph default
4274 が出力されるようになります.
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279 .kmap
4280 \end_layout
4281
4282 \end_inset
4283
4284 ファイルにこの宣言がない場合には,
4285 \emph on
4286 アクセント
4287 \emph default
4288
4289 \emph on
4290 文字
4291 \emph default
4292 と入力すると,
4293 \emph on
4294 アクセントキー
4295 \emph default
4296
4297 \emph on
4298 文字
4299 \emph default
4300
4301 \emph on
4302 アクセントキー
4303 \emph default
4304
4305 \begin_inset Flex Code
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309
4310 \backslash
4311 kmod
4312 \end_layout
4313
4314 \end_inset
4315
4316 宣言の最初の変数)と出力されます.
4317 \end_layout
4318
4319 \begin_layout Standard
4320 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4321 \end_layout
4322
4323 \begin_layout LyX-Code
4324
4325 \backslash
4326 kxmod acute i "
4327 \backslash
4328
4329 \backslash
4330 '{
4331 \backslash
4332
4333 \backslash
4334 i}"
4335 \end_layout
4336
4337 \begin_layout Labeling
4338 \labelwidthstring 00.00.0000
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343 kcomb
4344 \end_layout
4345
4346 \end_inset
4347
4348  2つのアクセント文字を結合する
4349 \end_layout
4350
4351 \begin_layout LyX-Code
4352
4353 \backslash
4354 kcomb 
4355 \family roman
4356 \emph on
4357 アクセント1 アクセント2 許可文字
4358 \end_layout
4359
4360 \begin_layout Standard
4361 これはなかなか難解になってきます.これは
4362 \emph on
4363 アクセント1
4364 \emph default
4365
4366 \emph on
4367 アクセント2
4368 \emph default
4369 を(この順番で)結びつけて,
4370 \emph on
4371 許可文字
4372 \emph default
4373 に効果を及ぼすようにします.
4374 \emph on
4375 アクセント1
4376 \emph default
4377
4378 \emph on
4379 アクセント2
4380 \emph default
4381 の打鍵キーは,ファイル内のこのコマンド
4382 \emph on
4383 よりも前に
4384 \emph default
4385
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \backslash
4392 kmod
4393 \end_layout
4394
4395 \end_inset
4396
4397 コマンドで設定されていなくてはなりません.
4398 \end_layout
4399
4400 \begin_layout Standard
4401 \begin_inset Flex Code
4402 status collapsed
4403
4404 \begin_layout Plain Layout
4405 greek.kmap
4406 \end_layout
4407
4408 \end_inset
4409
4410 ファイル上にある例をとってみましょう.
4411 \end_layout
4412
4413 \begin_layout LyX-Code
4414
4415 \backslash
4416 kmod ; acute aeioyvhAEIOYVH 
4417 \backslash
4418 kmod : umlaut iyIY 
4419 \backslash
4420 kcomb acute umlaut iyIY
4421 \end_layout
4422
4423 \begin_layout Standard
4424 これは
4425 \begin_inset Flex MenuItem
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 ;:i
4430 \end_layout
4431
4432 \end_inset
4433
4434 を押すと
4435 \begin_inset Flex Code
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439
4440 \backslash
4441 '{
4442 \backslash
4443 "{i}}
4444 \end_layout
4445
4446 \end_inset
4447
4448 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4449 \begin_inset Flex MenuItem
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 ;: Backspace i
4454 \end_layout
4455
4456 \end_inset
4457
4458 と押した場合には,
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \backslash
4465 '{i}
4466 \end_layout
4467
4468 \end_inset
4469
4470 となります.
4471 \end_layout
4472
4473 \begin_layout Subsection
4474 .cdefファイル
4475 \end_layout
4476
4477 \begin_layout Standard
4478 \begin_inset Flex Code
4479 status collapsed
4480
4481 \begin_layout Plain Layout
4482 .kmap
4483 \end_layout
4484
4485 \end_inset
4486
4487 による割り当てが行われた後,
4488 \begin_inset Flex Code
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492 .cdef
4493 \end_layout
4494
4495 \end_inset
4496
4497 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4498 頒布版には,現在のところ,少なくとも
4499 \begin_inset Flex Code
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 iso8859-1.cdef
4504 \end_layout
4505
4506 \end_inset
4507
4508 ファイルと
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 iso8859-2.cdef
4514 \end_layout
4515
4516 \end_inset
4517
4518 ファイルが含まれています.
4519 \end_layout
4520
4521 \begin_layout Standard
4522 一般的に
4523 \begin_inset Flex Code
4524 status collapsed
4525
4526 \begin_layout Plain Layout
4527 .cdef
4528 \end_layout
4529
4530 \end_inset
4531
4532 ファイルは,
4533 \end_layout
4534
4535 \begin_layout LyX-Code
4536
4537 \family roman
4538 \emph on
4539 セット中の文字番号
4540 \family default
4541 \emph default
4542  
4543 \family roman
4544 \emph on
4545  文字列
4546 \end_layout
4547
4548 \begin_layout Standard
4549 という形の宣言の羅列です.たとえば,
4550 \begin_inset Flex MenuItem
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554
4555 \backslash
4556 '{e}
4557 \end_layout
4558
4559 \end_inset
4560
4561 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4562 \end_layout
4563
4564 \begin_layout LyX-Code
4565 233 "
4566 \backslash
4567
4568 \backslash
4569 '{e}"
4570 \end_layout
4571
4572 \begin_layout Standard
4573 ここで,
4574 \emph on
4575 文字列
4576 \emph default
4577 中の
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582
4583 \backslash
4584
4585 \end_layout
4586
4587 \end_inset
4588
4589
4590 \begin_inset Flex Code
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594 "
4595 \end_layout
4596
4597 \end_inset
4598
4599 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4600 \begin_inset Flex Code
4601 status collapsed
4602
4603 \begin_layout Plain Layout
4604 iso-8859-7.cdef
4605 \end_layout
4606
4607 \end_inset
4608
4609 ファイルには,
4610 \end_layout
4611
4612 \begin_layout LyX-Code
4613 192 "
4614 \backslash
4615
4616 \backslash
4617 '{
4618 \backslash
4619
4620 \backslash
4621
4622 \backslash
4623 "{i}}"
4624 \begin_inset Newline newline
4625 \end_inset
4626
4627 192 "
4628 \backslash
4629
4630 \backslash
4631
4632 \backslash
4633 "{
4634 \backslash
4635
4636 \backslash
4637 '{i}}"
4638 \end_layout
4639
4640 \begin_layout Standard
4641 という例があります.\SpecialChar LyX
4642 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4643 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4644 \end_layout
4645
4646 \begin_layout Subsection
4647 デッドキー
4648 \end_layout
4649
4650 \begin_layout Standard
4651 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4652 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4653 \end_layout
4654
4655 \begin_layout Standard
4656 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4657 \begin_inset Flex Code
4658 status collapsed
4659
4660 \begin_layout Plain Layout
4661 lyxrc
4662 \end_layout
4663
4664 \end_inset
4665
4666 ファイル中で,
4667 \begin_inset Flex MenuItem
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671 ^
4672 \end_layout
4673
4674 \end_inset
4675
4676 キー(すなわち
4677 \begin_inset Flex MenuItem
4678 status collapsed
4679
4680 \begin_layout Plain Layout
4681 Shift-6
4682 \end_layout
4683
4684 \end_inset
4685
4686 キー)を,\SpecialChar LyX
4687 コマンドの
4688 \begin_inset Flex Code
4689 status collapsed
4690
4691 \begin_layout Plain Layout
4692 accent-circumflex
4693 \end_layout
4694
4695 \end_inset
4696
4697 に結びつけることができます.すると
4698 \begin_inset Flex MenuItem
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702 ^
4703 \end_layout
4704
4705 \end_inset
4706
4707 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4708 \begin_inset Flex MenuItem
4709 status collapsed
4710
4711 \begin_layout Plain Layout
4712 ^e
4713 \end_layout
4714
4715 \end_inset
4716
4717 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4718 \begin_inset Flex MenuItem
4719 status collapsed
4720
4721 \begin_layout Plain Layout
4722 ^t
4723 \end_layout
4724
4725 \end_inset
4726
4727 」と打鍵したならば,「
4728 \begin_inset Flex MenuItem
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 t
4733 \end_layout
4734
4735 \end_inset
4736
4737 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4738 はビープを鳴らして文句を付けます.デッドキーの後に
4739 \begin_inset Flex MenuItem
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743 スペース
4744 \end_layout
4745
4746 \end_inset
4747
4748 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4749 あります.たとえば,
4750 \begin_inset Flex MenuItem
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 ,キー
4755 \end_layout
4756
4757 \end_inset
4758
4759 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4760 \end_layout
4761
4762 \begin_layout Standard
4763 デッドキーを割り当てるのによく用いられる方法は,
4764 \begin_inset Flex MenuItem
4765 status collapsed
4766
4767 \begin_layout Plain Layout
4768 Meta-
4769 \end_layout
4770
4771 \end_inset
4772
4773
4774 \begin_inset Flex MenuItem
4775 status collapsed
4776
4777 \begin_layout Plain Layout
4778 Ctrl-
4779 \end_layout
4780
4781 \end_inset
4782
4783
4784 \begin_inset Flex MenuItem
4785 status collapsed
4786
4787 \begin_layout Plain Layout
4788 Shift-
4789 \end_layout
4790
4791 \end_inset
4792
4793 キーを,「
4794 \begin_inset Flex MenuItem
4795 status collapsed
4796
4797 \begin_layout Plain Layout
4798 ~
4799 \end_layout
4800
4801 \end_inset
4802
4803 」・「
4804 \begin_inset Flex MenuItem
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808 ,
4809 \end_layout
4810
4811 \end_inset
4812
4813 」・「
4814 \begin_inset Flex MenuItem
4815 status collapsed
4816
4817 \begin_layout Plain Layout
4818 ^
4819 \end_layout
4820
4821 \end_inset
4822
4823 」のようなアクセントと一緒に用いる方法です.また,
4824 \begin_inset Flex Code
4825 status collapsed
4826
4827 \begin_layout Plain Layout
4828 xmodmap
4829 \end_layout
4830
4831 \end_inset
4832
4833
4834 \begin_inset Flex Code
4835 status collapsed
4836
4837 \begin_layout Plain Layout
4838 xkeycaps
4839 \end_layout
4840
4841 \end_inset
4842
4843 を使って,特別な
4844 \begin_inset Flex Code
4845 status collapsed
4846
4847 \begin_layout Plain Layout
4848 Mode_Switch
4849 \end_layout
4850
4851 \end_inset
4852
4853 キーを設定する方法もあります.
4854 \begin_inset Flex Code
4855 status collapsed
4856
4857 \begin_layout Plain Layout
4858 Mode_Switch
4859 \end_layout
4860
4861 \end_inset
4862
4863 キーは,ちょうど
4864 \begin_inset Flex MenuItem
4865 status collapsed
4866
4867 \begin_layout Plain Layout
4868 Shift
4869 \end_layout
4870
4871 \end_inset
4872
4873 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4874 \begin_inset Flex Code
4875 status collapsed
4876
4877 \begin_layout Plain Layout
4878 usldead_cedilla
4879 \end_layout
4880
4881 \end_inset
4882
4883 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4884 コマンドに割り当てることもできます
4885 \begin_inset Foot
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889
4890 \noun on
4891 John Weiss
4892 \noun default
4893 からの註:これはまさに私が,自分の
4894 \begin_inset Flex Code
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898 ~/.lyx/lyxrc
4899 \end_layout
4900
4901 \end_inset
4902
4903
4904 \begin_inset Flex Code
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908 ~/.xmodmap
4909 \end_layout
4910
4911 \end_inset
4912
4913 で行っていることです.私は,
4914 \begin_inset Flex MenuItem
4915 status collapsed
4916
4917 \begin_layout Plain Layout
4918 Scroll
4919 \begin_inset space ~
4920 \end_inset
4921
4922 Lock
4923 \end_layout
4924
4925 \end_inset
4926
4927 キーを
4928 \begin_inset Flex Code
4929 status collapsed
4930
4931 \begin_layout Plain Layout
4932 Mode_Shift
4933 \end_layout
4934
4935 \end_inset
4936
4937 に仕立てて,多数の
4938 \begin_inset Flex Code
4939 status collapsed
4940
4941 \begin_layout Plain Layout
4942 usldead_*
4943 \end_layout
4944
4945 \end_inset
4946
4947 シンボリックキーを
4948 \begin_inset Flex MenuItem
4949 status collapsed
4950
4951 \begin_layout Plain Layout
4952 Scroll
4953 \begin_inset space ~
4954 \end_inset
4955
4956 Lock-^
4957 \end_layout
4958
4959 \end_inset
4960
4961
4962 \begin_inset Flex MenuItem
4963 status collapsed
4964
4965 \begin_layout Plain Layout
4966 Scroll
4967 \begin_inset space ~
4968 \end_inset
4969
4970 Lock-~
4971 \end_layout
4972
4973 \end_inset
4974
4975 などに割り当てています.私はこの方法でアクセント文字を入力しています.
4976 \end_layout
4977
4978 \end_inset
4979
4980 .この
4981 \begin_inset Flex Code
4982 status collapsed
4983
4984 \begin_layout Plain Layout
4985 Mode_Switch
4986 \end_layout
4987
4988 \end_inset
4989
4990 キーには,
4991 \begin_inset Flex MenuItem
4992 status collapsed
4993
4994 \begin_layout Plain Layout
4995 Ctrl-
4996 \end_layout
4997
4998 \end_inset
4999
5000 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5001 コマンドについては,
5002 \emph on
5003 \SpecialChar LyX
5004 関数説明書
5005 \emph default
5006
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 LFUN_ACCENT_*
5012 \end_layout
5013
5014 \end_inset
5015
5016 の項をご覧ください.ここには完備した一覧があります.
5017 \end_layout
5018
5019 \begin_layout Subsection
5020 自分の言語設定を保存する
5021 \end_layout
5022
5023 \begin_layout Standard
5024 \begin_inset Flex MenuItem
5025 status collapsed
5026
5027 \begin_layout Plain Layout
5028 ツール\SpecialChar menuseparator
5029 設定
5030 \end_layout
5031
5032 \end_inset
5033
5034 ダイアログを使えば,\SpecialChar LyX
5035 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5036 \end_layout
5037
5038 \begin_layout Chapter
5039 文書クラス・レイアウト・ひな型の新規導入
5040 \begin_inset CommandInset label
5041 LatexCommand label
5042 name "cha:新規文書を導入"
5043
5044 \end_inset
5045
5046
5047 \begin_inset Argument 1
5048 status collapsed
5049
5050 \begin_layout Plain Layout
5051 文書クラスを新規に導入する
5052 \end_layout
5053
5054 \end_inset
5055
5056
5057 \end_layout
5058
5059 \begin_layout Standard
5060 この章では,新しく\SpecialChar LyX
5061 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5062 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5063 します.
5064 \end_layout
5065
5066 \begin_layout Standard
5067 まず,\SpecialChar LyX
5068 と\SpecialChar LaTeX
5069 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5070 は,La\SpecialChar TeX
5071 について何も知らないと
5072 云うことです.実際のところ,\SpecialChar LyX
5073 の観点からは,\SpecialChar LaTeX
5074 は,\SpecialChar LyX
5075 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5076 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5077 は,とくに重要な形式ですが,\SpecialChar LyX
5078 がLa\SpecialChar TeX
5079 について持っている情報のほとんどは,実はプログラム本体には含まれて
5080 いないのです
5081 \begin_inset Foot
5082 status collapsed
5083
5084 \begin_layout Plain Layout
5085 過度に複雑なため,\SpecialChar LyX
5086 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5087 \end_layout
5088
5089 \end_inset
5090
5091 .このような情報は,
5092 \begin_inset Flex Code
5093 status collapsed
5094
5095 \begin_layout Plain Layout
5096 article.cls
5097 \end_layout
5098
5099 \end_inset
5100
5101 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5102 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5103 が知っていることは,レイア
5104 ウトファイルの中にあります.
5105 \end_layout
5106
5107 \begin_layout Standard
5108 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5109 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5110 構成体・DocBook構成体・XHTML構成体との
5111 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5112
5113 \begin_inset Flex Code
5114 status collapsed
5115
5116 \begin_layout Plain Layout
5117 article.cls
5118 \end_layout
5119
5120 \end_inset
5121
5122 について知っていることのほとんど総ては,
5123 \begin_inset Flex Code
5124 status collapsed
5125
5126 \begin_layout Plain Layout
5127 article.layout
5128 \end_layout
5129
5130 \end_inset
5131
5132 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5133 としては,
5134 \begin_inset Flex Code
5135 status collapsed
5136
5137 \begin_layout Plain Layout
5138 article.layout
5139 \end_layout
5140
5141 \end_inset
5142
5143
5144 \begin_inset Flex Code
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148 book.layout
5149 \end_layout
5150
5151 \end_inset
5152
5153 や,文書クラス用の他のレイアウトファイルに取り込まれている
5154 \begin_inset Flex Code
5155 status collapsed
5156
5157 \begin_layout Plain Layout
5158 stdsections.inc
5159 \end_layout
5160
5161 \end_inset
5162
5163 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5164 \begin_inset Flex Code
5165 status collapsed
5166
5167 \begin_layout Plain Layout
5168 stdsections.inc
5169 \end_layout
5170
5171 \end_inset
5172
5173 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5174 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5175 に知らせるものです.基本的に
5176 \begin_inset Flex Code
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180 article.layout
5181 \end_layout
5182
5183 \end_inset
5184
5185 ファイルは,これらの
5186 \begin_inset Flex Code
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190 std*.inc
5191 \end_layout
5192
5193 \end_inset
5194
5195 ファイルを取り込んでいるだけのものです.
5196 \end_layout
5197
5198 \begin_layout Standard
5199 しかしながら,\SpecialChar LyX
5200 –\SpecialChar LaTeX
5201 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5202 構成体自身が画面上にどのように表
5203 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5204 ます.ある段落様式を\SpecialChar LaTeX
5205 に翻訳する仕方を\SpecialChar LyX
5206 に指示することは,その表示の仕方を\SpecialChar LyX
5207 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5208 に指示することは,その段落様
5209 式をどのように\SpecialChar LaTeX
5210 に翻訳するかを\SpecialChar LyX
5211 に指示するものではありません(ましてや\SpecialChar LaTeX
5212 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5213 構成体を定義する際には,(
5214 i)
5215 \begin_inset space ~
5216 \end_inset
5217
5218 \SpecialChar LaTeX
5219 にどのように翻訳するかを\SpecialChar LyX
5220 に指示する,(ii)
5221 \begin_inset space ~
5222 \end_inset
5223
5224 それをどのように表示するかを\SpecialChar LyX
5225 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5226 \end_layout
5227
5228 \begin_layout Standard
5229 もちろん,\SpecialChar LyX
5230 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5231 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5232 力するにあたって,当該段落を\SpecialChar LyX
5233 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5234 が内部的に行うことと,外部的に行う物事の間の区
5235 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5236 \begin_inset CommandInset ref
5237 LatexCommand ref
5238 reference "sec:XHTML出力のタグ"
5239
5240 \end_inset
5241
5242 節をご覧ください.
5243 \end_layout
5244
5245 \begin_layout Section
5246 新しい\SpecialChar LaTeX
5247 ファイルの導入
5248 \end_layout
5249
5250 \begin_layout Standard
5251 頒布版によっては,\SpecialChar LyX
5252 で使いたい\SpecialChar LaTeX
5253 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5254 パッケージである,Foil\SpecialChar TeX
5255 がないかもしれません.\SpecialChar TeX
5256 Live(2008年以降)やMiK\SpecialChar TeX
5257 のような最近の\SpecialChar LaTeX
5258 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5259 ースが用意されています.たとえば,MiK\SpecialChar TeX
5260 では,付属の「Package
5261 \begin_inset space ~
5262 \end_inset
5263
5264 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5265 ださい.
5266 \end_layout
5267
5268 \begin_layout Standard
5269 お使いの\SpecialChar LaTeX
5270 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5271 してください.
5272 \end_layout
5273
5274 \begin_layout Enumerate
5275 \begin_inset CommandInset href
5276 LatexCommand href
5277 name "CTAN"
5278 target "http://www.ctan.org/"
5279 literal "false"
5280
5281 \end_inset
5282
5283 などから欲しいパッケージを入手してください.
5284 \end_layout
5285
5286 \begin_layout Enumerate
5287 パッケージに「
5288 \begin_inset Flex Code
5289 status collapsed
5290
5291 \begin_layout Plain Layout
5292 .ins
5293 \end_layout
5294
5295 \end_inset
5296
5297 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5298 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5299 \begin_inset Flex Code
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303 latex foiltex.ins
5304 \end_layout
5305
5306 \end_inset
5307
5308 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5309 パッケージは圧縮されていないので,このステップは飛ばすこ
5310 とができます.
5311 \end_layout
5312
5313 \begin_layout Enumerate
5314 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5315 \end_layout
5316
5317 \begin_deeper
5318 \begin_layout Enumerate
5319 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5320 ツリーに導入し,そうでなければ「ユー
5321 ザー」\SpecialChar TeX
5322 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5323 \begin_inset Flex Code
5324 status collapsed
5325
5326 \begin_layout Plain Layout
5327 texmf.cnf
5328 \end_layout
5329
5330 \end_inset
5331
5332 ファイルを参照してください
5333 \begin_inset Foot
5334 status collapsed
5335
5336 \begin_layout Plain Layout
5337 このファイルは,通常
5338 \family sans
5339 $TEXMF/web2c
5340 \family default
5341 ディレクトリにありますが,コマンド
5342 \begin_inset Flex Code
5343 status collapsed
5344
5345 \begin_layout Plain Layout
5346 kpsewhich texmf.cnf
5347 \end_layout
5348
5349 \end_inset
5350
5351 を実行してその場所を見つけることもできます.
5352 \end_layout
5353
5354 \end_inset
5355
5356 .「ローカル」\SpecialChar TeX
5357 ツリーの場所は,
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 TEXMFLOCAL
5363 \end_layout
5364
5365 \end_inset
5366
5367 変数で定義されており,通常は
5368 \begin_inset Flex Code
5369 status collapsed
5370
5371 \begin_layout Plain Layout
5372 /usr/local/share/texmf/
5373 \end_layout
5374
5375 \end_inset
5376
5377
5378 \begin_inset Flex Code
5379 status collapsed
5380
5381 \begin_layout Plain Layout
5382 /usr/local/texlive/XXXX
5383 \end_layout
5384
5385 \end_inset
5386
5387  (XXXXは導入されている\SpecialChar TeX
5388 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5389 ツリーの場所は,
5390 \begin_inset Flex Code
5391 status collapsed
5392
5393 \begin_layout Plain Layout
5394 TEXMFHOME
5395 \end_layout
5396
5397 \end_inset
5398
5399 で定義されており,通常は
5400 \begin_inset Flex Code
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 $HOME/texmf/
5405 \end_layout
5406
5407 \end_inset
5408
5409
5410 \begin_inset Flex Code
5411 status collapsed
5412
5413 \begin_layout Plain Layout
5414 $HOME/.texliveXXXX
5415 \end_layout
5416
5417 \end_inset
5418
5419 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5420 ,「ユーザー」ツリーにはこのような制限はありません.
5421 \begin_inset Newline newline
5422 \end_inset
5423
5424 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5425 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5426 \end_layout
5427
5428 \begin_layout Enumerate
5429 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5430 の導入されているフォルダのサブフォルダ
5431 \begin_inset Flex Code
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435 ~
5436 \backslash
5437 tex
5438 \backslash
5439 latex
5440 \end_layout
5441
5442 \end_inset
5443
5444 に移動します(MiK\SpecialChar TeX
5445 の既定値では,これは
5446 \begin_inset Flex Code
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 ~:Programs
5451 \backslash
5452 MiKTeX
5453 \backslash
5454 tex
5455 \backslash
5456 latex
5457 \end_layout
5458
5459 \end_inset
5460
5461 です)
5462 \begin_inset Foot
5463 status open
5464
5465 \begin_layout Plain Layout
5466 これは,英語版でのみ正しいパスになっています.独語版では
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 ~:Programme
5472 \backslash
5473 MiKTeX
5474 \backslash
5475 tex
5476 \backslash
5477 latex
5478 \end_layout
5479
5480 \end_inset
5481
5482 となり,他の言語でも同様です.
5483 \end_layout
5484
5485 \end_inset
5486
5487 .ここに新規フォルダ
5488 \begin_inset Flex Code
5489 status collapsed
5490
5491 \begin_layout Plain Layout
5492 foiltex
5493 \end_layout
5494
5495 \end_inset
5496
5497 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5498 フォルダで同じ
5499 ことを行います.たとえばMiK\SpecialChar TeX
5500
5501 \begin_inset space ~
5502 \end_inset
5503
5504 2.8では,これはWinXP上では
5505 \begin_inset Newline newline
5506 \end_inset
5507
5508
5509 \begin_inset Flex Code
5510 status collapsed
5511
5512 \begin_layout Plain Layout
5513 ~:
5514 \backslash
5515 Documents and Settings
5516 \backslash
5517 <ユーザー名>
5518 \backslash
5519 Application Data
5520 \backslash
5521
5522 \end_layout
5523
5524 \end_inset
5525
5526
5527 \begin_inset Newline newline
5528 \end_inset
5529
5530
5531 \begin_inset Phantom HPhantom
5532 status open
5533
5534 \begin_layout Plain Layout
5535
5536 \family typewriter
5537 ~:
5538 \backslash
5539
5540 \end_layout
5541
5542 \end_inset
5543
5544
5545 \begin_inset Flex Code
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 MiKTeX
5550 \backslash
5551 2.8
5552 \backslash
5553 tex
5554 \backslash
5555 latex
5556 \end_layout
5557
5558 \end_inset
5559
5560
5561 \begin_inset Newline newline
5562 \end_inset
5563
5564 フォルダ,WinVista上では
5565 \begin_inset Newline newline
5566 \end_inset
5567
5568
5569 \begin_inset Flex Code
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 ~:
5574 \backslash
5575 Users
5576 \backslash
5577 <ユーザー名>
5578 \backslash
5579 AppData
5580 \backslash
5581 Roaming
5582 \backslash
5583 2.8
5584 \backslash
5585 MiKTeX
5586 \backslash
5587 tex
5588 \backslash
5589 latex
5590 \end_layout
5591
5592 \end_inset
5593
5594
5595 \begin_inset Newline newline
5596 \end_inset
5597
5598 フォルダになります.
5599 \end_layout
5600
5601 \end_deeper
5602 \begin_layout Enumerate
5603 ここまで来れば,あとは\SpecialChar LaTeX
5604 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5605 頒布版に依存します.
5606 \end_layout
5607
5608 \begin_deeper
5609 \begin_layout Enumerate
5610 \SpecialChar TeX
5611 Liveの場合には,コンソールから
5612 \begin_inset Flex Code
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 texhash
5617 \end_layout
5618
5619 \end_inset
5620
5621 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5622 \end_layout
5623
5624 \begin_layout Enumerate
5625 MiK\SpecialChar TeX
5626 では,パッケージを全ユーザー用に導入した場合には,「Settings
5627 \begin_inset space ~
5628 \end_inset
5629
5630 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5631
5632 \end_layout
5633
5634 \end_deeper
5635 \begin_layout Enumerate
5636 最後に,\SpecialChar LyX
5637 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5638 からツール\SpecialChar menuseparator
5639 環境構成メニューを実行して,\SpecialChar LyX
5640 を再起動します.
5641 \end_layout
5642
5643 \begin_layout Standard
5644 これでパッケージが導入されました.この例では,文書クラス
5645 \begin_inset Flex Code
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649 Slides
5650 \begin_inset space ~
5651 \end_inset
5652
5653 (FoilTeX)
5654 \end_layout
5655
5656 \end_inset
5657
5658
5659 \begin_inset Flex MenuItem
5660 status collapsed
5661
5662 \begin_layout Plain Layout
5663 文書\SpecialChar menuseparator
5664 設定\SpecialChar menuseparator
5665 文書クラス
5666 \end_layout
5667
5668 \end_inset
5669
5670 で利用可能になっているはずです.
5671 \end_layout
5672
5673 \begin_layout Standard
5674 \begin_inset Flex MenuItem
5675 status collapsed
5676
5677 \begin_layout Plain Layout
5678 文書\SpecialChar menuseparator
5679 設定\SpecialChar menuseparator
5680 文書クラス
5681 \end_layout
5682
5683 \end_inset
5684
5685 メニューに列挙されてもいない\SpecialChar LaTeX
5686 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5687 \end_layout
5688
5689 \begin_layout Section
5690 レイアウトファイルの型
5691 \end_layout
5692
5693 \begin_layout Standard
5694 この節は,レイアウト情報を含む各種\SpecialChar LyX
5695 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5696 がそれらをどのように
5697 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5698 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5699 \end_layout
5700
5701 \begin_layout Standard
5702 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5703 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5704 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5705 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5706 を出していますので,気軽に質問を投げかけてみてください.
5707 \end_layout
5708
5709 \begin_layout Standard
5710 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5711 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5712 文書クラス用の\SpecialChar LyX
5713 レイアウトを作ったり,
5714 他の人々にも有用なモジュールをお書きになった場合には,
5715 \begin_inset CommandInset href
5716 LatexCommand href
5717 name "LyX Wikiのレイアウトに関する節"
5718 target "http://wiki.lyx.org/Layouts/Layouts"
5719 literal "false"
5720
5721 \end_inset
5722
5723 か,\SpecialChar LyX
5724 開発者メーリングリストに投稿して,\SpecialChar LyX
5725 頒布版に同梱することができるようにしてください
5726 \begin_inset Foot
5727 status collapsed
5728
5729 \begin_layout Plain Layout
5730 \SpecialChar LyX
5731 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5732 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5733 \end_layout
5734
5735 \end_inset
5736
5737
5738 \end_layout
5739
5740 \begin_layout Subsection
5741 レイアウトモジュール
5742 \begin_inset CommandInset label
5743 LatexCommand label
5744 name "subsec:レイアウトモジュール"
5745
5746 \end_inset
5747
5748
5749 \end_layout
5750
5751 \begin_layout Standard
5752 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5753 ,それは
5754 \begin_inset Flex Code
5755 status collapsed
5756
5757 \begin_layout Plain Layout
5758 .layout
5759 \end_layout
5760
5761 \end_inset
5762
5763 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5764 に提供するものを指します.しかしながら,\SpecialChar LyX
5765  1.6以降,レイアウト情報は,拡張子が
5766 \begin_inset Flex Code
5767 status collapsed
5768
5769 \begin_layout Plain Layout
5770 .module
5771 \end_layout
5772
5773 \end_inset
5774
5775 のレイアウト
5776 \emph on
5777 モジュール
5778 \emph default
5779 にも含めることができます.レイアウトが\SpecialChar LaTeX
5780 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5781 パッケージに対応するものであり,
5782 \begin_inset Flex Code
5783 status collapsed
5784
5785 \begin_layout Plain Layout
5786 endnotes
5787 \end_layout
5788
5789 \end_inset
5790
5791 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5792 イアウトで使用できるという意味において,一面,
5793 \begin_inset Flex Code
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 stdsections.inc
5798 \end_layout
5799
5800 \end_inset
5801
5802 等のインクルードファイル
5803 \begin_inset Foot
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 これらは任意の拡張子をつけることができますが,慣習的に
5808 \begin_inset Flex Code
5809 status collapsed
5810
5811 \begin_layout Plain Layout
5812 .inc
5813 \end_layout
5814
5815 \end_inset
5816
5817 拡張子が用いられます.
5818 \end_layout
5819
5820 \end_inset
5821
5822 のようなものです.相異なる点といえば,
5823 \begin_inset Flex Code
5824 status collapsed
5825
5826 \begin_layout Plain Layout
5827 article.cls
5828 \end_layout
5829
5830 \end_inset
5831
5832 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5833 \begin_inset Flex MenuItem
5834 status collapsed
5835
5836 \begin_layout Plain Layout
5837 文書\SpecialChar menuseparator
5838 設定
5839 \end_layout
5840
5841 \end_inset
5842
5843 ダイアログで選択するだけですみます.
5844 \end_layout
5845
5846 \begin_layout Standard
5847 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5848 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5849 \end_layout
5850
5851 \begin_layout Standard
5852 新しいモジュールを作成し,それを
5853 \begin_inset Flex Code
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 layout/
5858 \end_layout
5859
5860 \end_inset
5861
5862 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5863 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5864 \begin_inset Flex MenuItem
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 文書\SpecialChar menuseparator
5869 設定
5870 \end_layout
5871
5872 \end_inset
5873
5874 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5875 \emph on
5876 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5877 \emph default
5878 .もっと言えば,
5879 \emph on
5880 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5881 \emph default
5882 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5883 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5884 とがあるからです.
5885 \end_layout
5886
5887 \begin_layout Subsubsection
5888 ローカルレイアウト
5889 \end_layout
5890
5891 \begin_layout Standard
5892 \SpecialChar LyX
5893 に於けるモジュールは,\SpecialChar LaTeX
5894 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5895 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5896 \end_layout
5897
5898 \begin_layout Standard
5899 これは,
5900 \family sans
5901 文書\SpecialChar menuseparator
5902 設定\SpecialChar menuseparator
5903 ローカルのレイアウト
5904 \family default
5905 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5906 は,その文書専属のモジュールだと考えることができます.したがって,
5907 \begin_inset Flex Code
5908 status collapsed
5909
5910 \begin_layout Plain Layout
5911 Format
5912 \end_layout
5913
5914 \end_inset
5915
5916 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5917  2.2では,最新書式は60です)
5918 \end_layout
5919
5920 \begin_layout Standard
5921 \begin_inset Flex Code
5922 status collapsed
5923
5924 \begin_layout Plain Layout
5925 ローカルのレイアウト
5926 \end_layout
5927
5928 \end_inset
5929
5930 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5931 ているかどうかが検証されます.すると,\SpecialChar LyX
5932 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5933 をターミナル(
5934 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5935 \end_layout
5936
5937 \begin_layout Standard
5938 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5939 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5940 \end_layout
5941
5942 \begin_layout Subsection
5943 \begin_inset Flex MenuItem
5944 status collapsed
5945
5946 \begin_layout Plain Layout
5947 .sty
5948 \end_layout
5949
5950 \end_inset
5951
5952 ファイル用のレイアウト
5953 \end_layout
5954
5955 \begin_layout Standard
5956 新しく\SpecialChar LaTeX
5957 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5958 クラス(
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 .cls
5964 \end_layout
5965
5966 \end_inset
5967
5968 )ファイルが絡む場合と,スタイル(
5969 \begin_inset Flex Code
5970 status collapsed
5971
5972 \begin_layout Plain Layout
5973 .sty
5974 \end_layout
5975
5976 \end_inset
5977
5978 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
5979 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
5980 が当てはまります.
5981 \end_layout
5982
5983 \begin_layout Standard
5984 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
5985 \begin_inset Flex MenuItem
5986 status collapsed
5987
5988 \begin_layout Plain Layout
5989 myclass.sty
5990 \end_layout
5991
5992 \end_inset
5993
5994 という名称で,標準的なクラスである
5995 \begin_inset Flex MenuItem
5996 status collapsed
5997
5998 \begin_layout Plain Layout
5999 report.cls
6000 \end_layout
6001
6002 \end_inset
6003
6004 と共に用いられるものと仮定しましょう.
6005 \end_layout
6006
6007 \begin_layout Standard
6008 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6009 \begin_inset Foot
6010 status collapsed
6011
6012 \begin_layout Plain Layout
6013 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6014 では,起動時に
6015 \begin_inset Flex MenuItem
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 -userdir
6020 \end_layout
6021
6022 \end_inset
6023
6024 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6025 \end_layout
6026
6027 \end_inset
6028
6029
6030 \end_layout
6031
6032 \begin_layout LyX-Code
6033 cp report.layout ~/.lyx/layouts/myclass.layout
6034 \end_layout
6035
6036 \begin_layout Standard
6037 それから,
6038 \begin_inset Flex Code
6039 status collapsed
6040
6041 \begin_layout Plain Layout
6042 myclass.layout
6043 \end_layout
6044
6045 \end_inset
6046
6047 を編集して,
6048 \end_layout
6049
6050 \begin_layout LyX-Code
6051
6052 \backslash
6053 DeclareLaTeXClass{report}
6054 \end_layout
6055
6056 \begin_layout Standard
6057 という行を
6058 \end_layout
6059
6060 \begin_layout LyX-Code
6061
6062 \backslash
6063 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6064 \end_layout
6065
6066 \begin_layout Standard
6067 のように変更してください.それから,ファイル冒頭辺りに
6068 \end_layout
6069
6070 \begin_layout LyX-Code
6071 Preamble 
6072 \begin_inset Newline newline
6073 \end_inset
6074
6075     
6076 \backslash
6077 usepackage{myclass}
6078 \begin_inset Newline newline
6079 \end_inset
6080
6081 EndPreamble
6082 \end_layout
6083
6084 \begin_layout Standard
6085 と書き加えてください.
6086 \end_layout
6087
6088 \begin_layout Standard
6089 \SpecialChar LyX
6090 を起動して
6091 \begin_inset Flex MenuItem
6092 status collapsed
6093
6094 \begin_layout Plain Layout
6095 ツール\SpecialChar menuseparator
6096 環境構成
6097 \end_layout
6098
6099 \end_inset
6100
6101 を選択してください.それから\SpecialChar LyX
6102 を再起動し,新規文書を作成してみてください.すると,
6103 \begin_inset Flex MenuItem
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 文書\SpecialChar menuseparator
6108 設定
6109 \end_layout
6110
6111 \end_inset
6112
6113 ダイアログの文書クラスオプションに「
6114 \begin_inset Flex MenuItem
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 report (myclass)
6119 \end_layout
6120
6121 \end_inset
6122
6123 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6124 \begin_inset Flex Code
6125 status collapsed
6126
6127 \begin_layout Plain Layout
6128 report
6129 \end_layout
6130
6131 \end_inset
6132
6133 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6134 \begin_inset Flex Code
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 stdsections.inc
6139 \end_layout
6140
6141 \end_inset
6142
6143 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6144 \begin_inset Flex Code
6145 status collapsed
6146
6147 \begin_layout Plain Layout
6148 stdsections.inc
6149 \end_layout
6150
6151 \end_inset
6152
6153 も取り込む
6154 \begin_inset Flex Code
6155 status collapsed
6156
6157 \begin_layout Plain Layout
6158 Input stdclass.inc
6159 \end_layout
6160
6161 \end_inset
6162
6163 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6164 \end_layout
6165
6166 \begin_layout LyX-Code
6167 Style Chapter
6168 \end_layout
6169
6170 \begin_layout LyX-Code
6171     Font
6172 \end_layout
6173
6174 \begin_layout LyX-Code
6175         Family Sans
6176 \end_layout
6177
6178 \begin_layout LyX-Code
6179     EndFont
6180 \end_layout
6181
6182 \begin_layout LyX-Code
6183 End
6184 \end_layout
6185
6186 \begin_layout Standard
6187 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6188 \end_layout
6189
6190 \begin_layout Standard
6191 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6192 いては,第
6193 \begin_inset CommandInset ref
6194 LatexCommand ref
6195 reference "sec:テキストクラス"
6196
6197 \end_inset
6198
6199 節の情報を参照してください.
6200 \end_layout
6201
6202 \begin_layout Standard
6203 もし
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 myclass.sty
6209 \end_layout
6210
6211 \end_inset
6212
6213 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6214 う.最も簡単なモジュールの例としては,以下のようなものになります.
6215 \end_layout
6216
6217 \begin_layout LyX-Code
6218 #
6219 \backslash
6220 DeclareLyXModule{My Package}
6221 \end_layout
6222
6223 \begin_layout LyX-Code
6224 #DescriptionBegin
6225 \end_layout
6226
6227 \begin_layout LyX-Code
6228 #Support for mypkg.sty.
6229 \end_layout
6230
6231 \begin_layout LyX-Code
6232 #DescriptionEnd
6233 \begin_inset Newline newline
6234 \end_inset
6235
6236
6237 \end_layout
6238
6239 \begin_layout LyX-Code
6240 Format 60
6241 \begin_inset Newline newline
6242 \end_inset
6243
6244
6245 \end_layout
6246
6247 \begin_layout LyX-Code
6248 Preamble
6249 \begin_inset Newline newline
6250 \end_inset
6251
6252     
6253 \backslash
6254 usepackage{mypkg}
6255 \begin_inset Newline newline
6256 \end_inset
6257
6258 EndPreamble
6259 \end_layout
6260
6261 \begin_layout Standard
6262 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6263 \begin_inset CommandInset ref
6264 LatexCommand ref
6265 reference "sec:テキストクラス"
6266
6267 \end_inset
6268
6269 節を参照してください.
6270 \end_layout
6271
6272 \begin_layout Subsection
6273 \begin_inset Flex MenuItem
6274 status collapsed
6275
6276 \begin_layout Plain Layout
6277 .cls
6278 \end_layout
6279
6280 \end_inset
6281
6282 ファイル用のレイアウト
6283 \end_layout
6284
6285 \begin_layout Standard
6286 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6287 \begin_inset Flex MenuItem
6288 status collapsed
6289
6290 \begin_layout Plain Layout
6291 book.cls
6292 \end_layout
6293
6294 \end_inset
6295
6296 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6297 \end_layout
6298
6299 \begin_layout LyX-Code
6300
6301 \backslash
6302 LoadClass{book}
6303 \end_layout
6304
6305 \begin_layout Standard
6306 という行がないかどうか探してください.もしこれがあれば,
6307 \begin_inset Flex Code
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311 Declare\SpecialChar LaTeX
6312 Class
6313 \end_layout
6314
6315 \end_inset
6316
6317 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 thesis
6323 \end_layout
6324
6325 \end_inset
6326
6327 であり,
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 book
6333 \end_layout
6334
6335 \end_inset
6336
6337 クラスに基づいていれば,
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 Declare\SpecialChar LaTeX
6343 Class
6344 \end_layout
6345
6346 \end_inset
6347
6348 行は以下のようにします
6349 \begin_inset Foot
6350 status collapsed
6351
6352 \begin_layout Plain Layout
6353 さらに\SpecialChar LyX
6354 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6355 \begin_inset Flex Code
6356 status collapsed
6357
6358 \begin_layout Plain Layout
6359 thesis.layout
6360 \end_layout
6361
6362 \end_inset
6363
6364 という名前で保存するのが最も簡単です. 
6365 \end_layout
6366
6367 \end_inset
6368
6369
6370 \end_layout
6371
6372 \begin_layout LyX-Code
6373
6374 \backslash
6375 DeclareLaTeXClass[thesis,book]{thesis}
6376 \end_layout
6377
6378 \begin_layout Standard
6379 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6380 クラスを使用してい
6381 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6382 業の開始点としてください.
6383 \end_layout
6384
6385 \begin_layout Subsection
6386 ひな型を作成する
6387 \begin_inset CommandInset label
6388 LatexCommand label
6389 name "sec:ひな型を作成する"
6390
6391 \end_inset
6392
6393
6394 \end_layout
6395
6396 \begin_layout Standard
6397 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6398 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6399 添付のひな型をあれこれ見てみるのもよいでしょう.
6400 \end_layout
6401
6402 \begin_layout Standard
6403 ひな型は,通常の文書と同様,\SpecialChar LyX
6404 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6405 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6406 \begin_inset Flex Code
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410
6411 \backslash
6412 fontscheme
6413 \end_layout
6414
6415 \end_inset
6416
6417
6418 \begin_inset Flex Code
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422
6423 \backslash
6424 papersize
6425 \end_layout
6426
6427 \end_inset
6428
6429 などの対応するコマンドをひな型\SpecialChar LyX
6430 ファイルから取り除く必要があります.これは,たとえば
6431 \begin_inset Flex Code
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 vi
6436 \end_layout
6437
6438 \end_inset
6439
6440
6441 \begin_inset Flex Code
6442 status collapsed
6443
6444 \begin_layout Plain Layout
6445 notepad
6446 \end_layout
6447
6448 \end_inset
6449
6450 のような,どの軽いテキストエディタでも行うことができます.
6451 \end_layout
6452
6453 \begin_layout Standard
6454 編集したひな型を
6455 \begin_inset Flex Code
6456 status collapsed
6457
6458 \begin_layout Plain Layout
6459 UserDir/templates/
6460 \end_layout
6461
6462 \end_inset
6463
6464 に置き,グローバルなひな型ディレクトリ
6465 \begin_inset Flex Code
6466 status collapsed
6467
6468 \begin_layout Plain Layout
6469 LyXDir/templates/
6470 \end_layout
6471
6472 \end_inset
6473
6474 から使用したいものを同じ場所にコピーし,
6475 \begin_inset Flex MenuItem
6476 status collapsed
6477
6478 \begin_layout Plain Layout
6479 ツール\SpecialChar menuseparator
6480 設定\SpecialChar menuseparator
6481 パス
6482 \end_layout
6483
6484 \end_inset
6485
6486 ダイアログのひな型パスを再定義してください.
6487 \end_layout
6488
6489 \begin_layout Standard
6490 ところで,特別な意味を持つひな型
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 defaults.lyx
6496 \end_layout
6497
6498 \end_inset
6499
6500 があることに注意してください.このひな型は,
6501 \begin_inset Flex MenuItem
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505 ファイル\SpecialChar menuseparator
6506 新規
6507 \end_layout
6508
6509 \end_inset
6510
6511 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6512 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6513 開き,
6514 \begin_inset Flex MenuItem
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 文書既定値として保存
6519 \end_layout
6520
6521 \end_inset
6522
6523 ボタンを押すことです.
6524 \end_layout
6525
6526 \begin_layout Subsection
6527 旧レイアウトファイルの更新
6528 \end_layout
6529
6530 \begin_layout Standard
6531 レイアウトファイルの書式は,\SpecialChar LyX
6532 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6533 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6534 は,
6535 自動的に変換ツール
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 \SpecialChar LyX
6541 Dir/scripts/layout2layout.py
6542 \end_layout
6543
6544 \end_inset
6545
6546 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6547 がこれを毎回行な
6548 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6549 \end_layout
6550
6551 \begin_layout Enumerate
6552 ファイル
6553 \begin_inset Flex Code
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557 myclass.layout
6558 \end_layout
6559
6560 \end_inset
6561
6562
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 myclass.old
6568 \end_layout
6569
6570 \end_inset
6571
6572 に改称
6573 \end_layout
6574
6575 \begin_layout Enumerate
6576 以下のコマンドをコール
6577 \begin_inset Newline newline
6578 \end_inset
6579
6580
6581 \begin_inset Flex Code
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6586 \end_layout
6587
6588 \end_inset
6589
6590
6591 \begin_inset Newline newline
6592 \end_inset
6593
6594 ここで
6595 \begin_inset Flex Code
6596 status collapsed
6597
6598 \begin_layout Plain Layout
6599 LyXDir
6600 \end_layout
6601
6602 \end_inset
6603
6604 は\SpecialChar LyX
6605 システムディレクトリの名前です.
6606 \end_layout
6607
6608 \begin_layout Standard
6609 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6610 \end_layout
6611
6612 \begin_layout Section
6613 \begin_inset CommandInset label
6614 LatexCommand label
6615 name "sec:テキストクラス"
6616
6617 \end_inset
6618
6619 レイアウトファイルの書式
6620 \end_layout
6621
6622 \begin_layout Standard
6623 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6624 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6625 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6626 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6627 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6628 \end_layout
6629
6630 \begin_layout Standard
6631 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6632 \begin_inset Flex Code
6633 status collapsed
6634
6635 \begin_layout Plain Layout
6636 Style
6637 \end_layout
6638
6639 \end_inset
6640
6641
6642 \begin_inset Flex Code
6643 status collapsed
6644
6645 \begin_layout Plain Layout
6646 style
6647 \end_layout
6648
6649 \end_inset
6650
6651
6652 \begin_inset Flex Code
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 StYlE
6657 \end_layout
6658
6659 \end_inset
6660
6661 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6662 \begin_inset Flex Code
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666
6667 \emph on
6668 強調
6669 \end_layout
6670
6671 \end_inset
6672
6673 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6674 \begin_inset Flex Code
6675 status collapsed
6676
6677 \begin_layout Plain Layout
6678 浮動小数点型=
6679 \emph on
6680 既定値
6681 \end_layout
6682
6683 \end_inset
6684
6685 のように表示されます.
6686 \end_layout
6687
6688 \begin_layout Subsection
6689 文書クラス宣言と分類
6690 \end_layout
6691
6692 \begin_layout Standard
6693 レイアウトファイル中の
6694 \begin_inset Flex Code
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 #
6699 \end_layout
6700
6701 \end_inset
6702
6703 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6704 \begin_inset Flex Code
6705 status collapsed
6706
6707 \begin_layout Plain Layout
6708 *.layout
6709 \end_layout
6710
6711 \end_inset
6712
6713 ファイルは,以下のような行で始めなくてはならないのです.
6714 \end_layout
6715
6716 \begin_layout LyX-Code
6717
6718 \size small
6719 #% Do not delete the line below; configure depends on this
6720 \end_layout
6721
6722 \begin_layout LyX-Code
6723
6724 \size small
6725 #  
6726 \backslash
6727 DeclareLaTeXClass{Article (Standard Class)}
6728 \end_layout
6729
6730 \begin_layout LyX-Code
6731
6732 \size small
6733 #  
6734 \backslash
6735 DeclareCategory{Articles}
6736 \end_layout
6737
6738 \begin_layout Standard
6739 2行目と3行目は,\SpecialChar LyX
6740 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6741 スクリプト
6742 \begin_inset Flex Code
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 chkconfig.ltx
6747 \end_layout
6748
6749 \end_inset
6750
6751 が,
6752 \begin_inset Flex Code
6753 status collapsed
6754
6755 \begin_layout Plain Layout
6756 #
6757 \end_layout
6758
6759 \end_inset
6760
6761 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6762 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6763 行が
6764 \begin_inset Flex Code
6765 status collapsed
6766
6767 \begin_layout Plain Layout
6768 article.layout
6769 \end_layout
6770
6771 \end_inset
6772
6773 と名付けられたファイルにあると,
6774 \begin_inset Flex Code
6775 status collapsed
6776
6777 \begin_layout Plain Layout
6778 article
6779 \end_layout
6780
6781 \end_inset
6782
6783 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6784 文書クラス
6785 \begin_inset Flex Code
6786 status collapsed
6787
6788 \begin_layout Plain Layout
6789 article.cls
6790 \end_layout
6791
6792 \end_inset
6793
6794 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6795 \begin_inset Flex MenuItem
6796 status collapsed
6797
6798 \begin_layout Plain Layout
6799 文書\SpecialChar menuseparator
6800 設定
6801 \end_layout
6802
6803 \end_inset
6804
6805 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6806 \begin_inset Flex MenuItem
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 文書\SpecialChar menuseparator
6811 設定
6812 \end_layout
6813
6814 \end_inset
6815
6816 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6817 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6818 rized」グループに属することになります.
6819 \end_layout
6820
6821 \begin_layout Standard
6822 節見出し表示に変更を加えた,
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 article.cls
6828 \end_layout
6829
6830 \end_inset
6831
6832 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6833 \begin_inset Flex Code
6834 status collapsed
6835
6836 \begin_layout Plain Layout
6837 myarticle.layout
6838 \end_layout
6839
6840 \end_inset
6841
6842 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6843 \end_layout
6844
6845 \begin_layout LyX-Code
6846
6847 \size small
6848 #% Do not delete the line below; configure depends on this 
6849 \end_layout
6850
6851 \begin_layout LyX-Code
6852
6853 \size small
6854 #  
6855 \backslash
6856 DeclareLaTeXClass[article]{article (with My Own Headings)}
6857 \end_layout
6858
6859 \begin_layout LyX-Code
6860
6861 \size small
6862 #  
6863 \backslash
6864 DeclareCategory{Articles}
6865 \end_layout
6866
6867 \begin_layout Standard
6868 これは,\SpecialChar LaTeX
6869 文書クラス
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 article.cls
6875 \end_layout
6876
6877 \end_inset
6878
6879 に関連づけられ,「Article (with My Own Headings)」と表示される,
6880 \begin_inset Flex Code
6881 status collapsed
6882
6883 \begin_layout Plain Layout
6884 myarticle
6885 \end_layout
6886
6887 \end_inset
6888
6889 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6890 \end_layout
6891
6892 \begin_layout LyX-Code
6893
6894 \size small
6895 #% Do not delete the line below; configure depends on this 
6896 \end_layout
6897
6898 \begin_layout LyX-Code
6899
6900 \size small
6901 #  
6902 \backslash
6903 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
6904 \end_layout
6905
6906 \begin_layout LyX-Code
6907
6908 \size small
6909 #  
6910 \backslash
6911 DeclareCategory{Articles}
6912 \end_layout
6913
6914 \begin_layout Standard
6915 これは,このテキストクラスが
6916 \begin_inset Flex Code
6917 status collapsed
6918
6919 \begin_layout Plain Layout
6920 foo.sty
6921 \end_layout
6922
6923 \end_inset
6924
6925 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
6926 \end_layout
6927
6928 \begin_layout LyX-Code
6929
6930 \size small
6931 #% Do not delete the line below; configure depends on this 
6932 \end_layout
6933
6934 \begin_layout LyX-Code
6935
6936 \size small
6937
6938 \backslash
6939 DeclareDocBookClass[article]{SGML (DocBook article)}
6940 \end_layout
6941
6942 \begin_layout LyX-Code
6943
6944 \size small
6945 #  
6946 \backslash
6947 DeclareCategory{Articles}
6948 \end_layout
6949
6950 \begin_layout Standard
6951 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
6952 \end_layout
6953
6954 \begin_layout Standard
6955 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
6956 \end_layout
6957
6958 \begin_layout LyX-Code
6959
6960 \size small
6961 #  
6962 \backslash
6963 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6964 \end_layout
6965
6966 \begin_layout LyX-Code
6967
6968 \size small
6969 #  
6970 \backslash
6971 DeclareCategory{分類}
6972 \end_layout
6973
6974 \begin_layout Standard
6975 ここで「クラス」は,\SpecialChar LaTeX
6976 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
6977 は単純に,クラスファイル
6978 名がレイアウトファイル名と同じであると仮定します.
6979 \end_layout
6980
6981 \begin_layout Standard
6982 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
6983 \begin_inset Flex Code
6984 status collapsed
6985
6986 \begin_layout Plain Layout
6987 LyXDir/layouts/
6988 \end_layout
6989
6990 \end_inset
6991
6992
6993 \begin_inset Flex Code
6994 status collapsed
6995
6996 \begin_layout Plain Layout
6997 UserDir/layouts
6998 \end_layout
6999
7000 \end_inset
7001
7002 にコピーし,
7003 \begin_inset Flex MenuItem
7004 status collapsed
7005
7006 \begin_layout Plain Layout
7007 ツール\SpecialChar menuseparator
7008 環境構成
7009 \end_layout
7010
7011 \end_inset
7012
7013 を実行し,\SpecialChar LyX
7014 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7015 \end_layout
7016
7017 \begin_layout Standard
7018 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7019 を再起動したりすることなく,その変更を確認することができます
7020 \begin_inset Foot
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 第1.6版よりも前の\SpecialChar LyX
7025 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7026 を再起動しなくてはならなかったので,
7027 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7028 \end_layout
7029
7030 \end_inset
7031
7032 .\SpecialChar LyX
7033 関数
7034 \begin_inset Flex MenuItem
7035 status collapsed
7036
7037 \begin_layout Plain Layout
7038 layout-reload
7039 \end_layout
7040
7041 \end_inset
7042
7043 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7044 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7045 \end_layout
7046
7047 \begin_layout Standard
7048
7049 \emph on
7050 注意
7051 \emph default
7052
7053 \begin_inset Flex MenuItem
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 layout-reload
7058 \end_layout
7059
7060 \end_inset
7061
7062 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7063 \emph on
7064 強く
7065 \emph default
7066 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7067 \emph on
7068 強く
7069 \emph default
7070 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7071 は現在の
7072 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7073 \begin_inset Foot
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7078 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7079 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7080 ださい.
7081 \end_layout
7082
7083 \end_inset
7084
7085 .\SpecialChar LyX
7086 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7087 \begin_inset Foot
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7092 \end_layout
7093
7094 \end_inset
7095
7096
7097 \end_layout
7098
7099 \begin_layout Subsection
7100 モジュール宣言
7101 \end_layout
7102
7103 \begin_layout Standard
7104 モジュールは,以下のような行で始まらなくてはなりません.
7105 \end_layout
7106
7107 \begin_layout LyX-Code
7108 #
7109 \backslash
7110 DeclareLyXModule[endnotes.sty]{Endnotes} 
7111 \end_layout
7112
7113 \begin_layout Standard
7114 波括弧内に入っている必須引数はモジュール名で,これは
7115 \begin_inset Flex MenuItem
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 文書\SpecialChar menuseparator
7120 設定
7121 \end_layout
7122
7123 \end_inset
7124
7125 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7126 パッケージをすべて宣言します.また,非必須引数として,
7127 \begin_inset Flex Code
7128 status collapsed
7129
7130 \begin_layout Plain Layout
7131 変換元->変換先
7132 \end_layout
7133
7134 \end_inset
7135
7136 の形を使用することができます.これは,
7137 \begin_inset Flex Code
7138 status collapsed
7139
7140 \begin_layout Plain Layout
7141 変換元
7142 \end_layout
7143
7144 \end_inset
7145
7146 形式から
7147 \begin_inset Flex Code
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151 変換先
7152 \end_layout
7153
7154 \end_inset
7155
7156 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7157 \end_layout
7158
7159 \begin_layout Standard
7160 それから,以下のようなモジュール宣言を行います
7161 \begin_inset Foot
7162 status collapsed
7163
7164 \begin_layout Plain Layout
7165 モジュールを\SpecialChar LyX
7166 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7167 \end_layout
7168
7169 \end_inset
7170
7171
7172 \end_layout
7173
7174 \begin_layout LyX-Code
7175 #DescriptionBegin 
7176 \end_layout
7177
7178 \begin_layout LyX-Code
7179 #Adds an endnote command, in addition to footnotes.
7180  
7181 \end_layout
7182
7183 \begin_layout LyX-Code
7184 #You will need to add  
7185 \backslash
7186 theendnotes in TeX code where you 
7187 \end_layout
7188
7189 \begin_layout LyX-Code
7190 #want the endnotes to appear.
7191  
7192 \end_layout
7193
7194 \begin_layout LyX-Code
7195 #DescriptionEnd 
7196 \end_layout
7197
7198 \begin_layout LyX-Code
7199 #Requires: somemodule | othermodule
7200 \end_layout
7201
7202 \begin_layout LyX-Code
7203 #Excludes: badmodule
7204 \end_layout
7205
7206 \begin_layout Standard
7207 ここで説明(Description)は,
7208 \begin_inset Flex MenuItem
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212 文書\SpecialChar menuseparator
7213 設定
7214 \end_layout
7215
7216 \end_inset
7217
7218 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7219 \begin_inset Flex Code
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 Requires
7224 \end_layout
7225
7226 \end_inset
7227
7228 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7229 \begin_inset Flex Code
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233 Excludes
7234 \end_layout
7235
7236 \end_inset
7237
7238 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7239 イプ記号「|」で区切らなくてはなりません.
7240 \begin_inset Flex Code
7241 status collapsed
7242
7243 \begin_layout Plain Layout
7244 Requires
7245 \end_layout
7246
7247 \end_inset
7248
7249 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7250 \begin_inset Flex Code
7251 status collapsed
7252
7253 \begin_layout Plain Layout
7254 Requires
7255 \end_layout
7256
7257 \end_inset
7258
7259 に指定されたモジュールのうち,
7260 \emph on
7261 少なくとも一つ
7262 \emph default
7263 が使用されていればよいということです.同様に,
7264 \begin_inset Flex Code
7265 status collapsed
7266
7267 \begin_layout Plain Layout
7268 Excludes
7269 \end_layout
7270
7271 \end_inset
7272
7273 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7274 \begin_inset Flex Code
7275 status collapsed
7276
7277 \begin_layout Plain Layout
7278 .module
7279 \end_layout
7280
7281 \end_inset
7282
7283 拡張子を除いたファイル名で認識されることに注意してください.つまり
7284 \begin_inset Flex Code
7285 status collapsed
7286
7287 \begin_layout Plain Layout
7288 somemodule
7289 \end_layout
7290
7291 \end_inset
7292
7293 とは,実のところ
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 somemodule.module
7299 \end_layout
7300
7301 \end_inset
7302
7303 のことです.
7304 \end_layout
7305
7306 \begin_layout Subsection
7307 書式番号
7308 \end_layout
7309
7310 \begin_layout Standard
7311 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7312 \end_layout
7313
7314 \begin_layout Description
7315 \begin_inset Flex Code
7316 status collapsed
7317
7318 \begin_layout Plain Layout
7319 Format
7320 \end_layout
7321
7322 \end_inset
7323
7324  [
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 整数型
7330 \end_layout
7331
7332 \end_inset
7333
7334 ] このレイアウトファイルの書式
7335 \end_layout
7336
7337 \begin_layout Standard
7338 このタグは\SpecialChar LyX
7339
7340 \begin_inset space ~
7341 \end_inset
7342
7343 1.4.0で導入されました.\SpecialChar LyX
7344
7345 \begin_inset space ~
7346 \end_inset
7347
7348 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7349 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7350 の各版は,旧版の\SpecialChar LyX
7351 で作成さ
7352 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7353 \end_layout
7354
7355 \begin_layout Subsection
7356 \begin_inset CommandInset label
7357 LatexCommand label
7358 name "subsec:汎用テキストクラスパラメータ"
7359
7360 \end_inset
7361
7362 汎用テキストクラスパラメータ
7363 \end_layout
7364
7365 \begin_layout Standard
7366 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7367 \begin_inset Flex Code
7368 status collapsed
7369
7370 \begin_layout Plain Layout
7371 .layout
7372 \end_layout
7373
7374 \end_inset
7375
7376 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7377 \emph on
7378 ありません
7379 \emph default
7380 .モジュールには,すべてのレイアウトタグを使用することができます).
7381 \end_layout
7382
7383 \begin_layout Description
7384 \begin_inset Flex Code
7385 status collapsed
7386
7387 \begin_layout Plain Layout
7388 AddToHTMLPreamble
7389 \end_layout
7390
7391 \end_inset
7392
7393  この文書クラスがXHTMLに出力されるときに,
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 <head>
7399 \end_layout
7400
7401 \end_inset
7402
7403 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7404 \begin_inset Flex Code
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 <head>
7409 \end_layout
7410
7411 \end_inset
7412
7413 に出力するものであれば,何でも使用することができます.「
7414 \begin_inset Flex Code
7415 status collapsed
7416
7417 \begin_layout Plain Layout
7418 EndPreamble
7419 \end_layout
7420
7421 \end_inset
7422
7423 」で閉じる必要があります.
7424 \end_layout
7425
7426 \begin_layout Description
7427 \begin_inset Flex Code
7428 status collapsed
7429
7430 \begin_layout Plain Layout
7431 AddToPreamble
7432 \end_layout
7433
7434 \end_inset
7435
7436  文書プリアンブルに書き加えられる情報です.「
7437 \begin_inset Flex Code
7438 status collapsed
7439
7440 \begin_layout Plain Layout
7441 EndPreamble
7442 \end_layout
7443
7444 \end_inset
7445
7446 」で閉じる必要があります.
7447 \end_layout
7448
7449 \begin_layout Description
7450 \begin_inset Flex Code
7451 status collapsed
7452
7453 \begin_layout Plain Layout
7454 CiteFormat
7455 \end_layout
7456
7457 \end_inset
7458
7459  書誌情報の表示に使う書式を定義します.詳細については,
7460 \begin_inset CommandInset ref
7461 LatexCommand ref
7462 reference "subsec:引用書式指定"
7463
7464 \end_inset
7465
7466 をご覧ください.「
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 End
7472 \end_layout
7473
7474 \end_inset
7475
7476 」で閉じる必要があります.
7477 \end_layout
7478
7479 \begin_layout Description
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 ClassOptions
7485 \end_layout
7486
7487 \end_inset
7488
7489  文書クラスがサポートする様々な大域オプションを記します.説明は,
7490 \begin_inset CommandInset ref
7491 LatexCommand ref
7492 reference "subsec:ClassOptions"
7493
7494 \end_inset
7495
7496 を参照してください.「
7497 \begin_inset Flex Code
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 End
7502 \end_layout
7503
7504 \end_inset
7505
7506 」で閉じる必要があります.
7507 \end_layout
7508
7509 \begin_layout Description
7510 \begin_inset Flex Code
7511 status collapsed
7512
7513 \begin_layout Plain Layout
7514 Columns
7515 \end_layout
7516
7517 \end_inset
7518
7519  [
7520 \begin_inset Flex Code
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524
7525 \emph on
7526 1
7527 \end_layout
7528
7529 \end_inset
7530
7531 ,
7532 \begin_inset space \thinspace{}
7533 \end_inset
7534
7535
7536 \begin_inset Flex Code
7537 status collapsed
7538
7539 \begin_layout Plain Layout
7540 2
7541 \end_layout
7542
7543 \end_inset
7544
7545 ] 文書クラスが既定で1段組か2段組かを指定します.
7546 \begin_inset Flex MenuItem
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550 文書\SpecialChar menuseparator
7551 設定
7552 \end_layout
7553
7554 \end_inset
7555
7556 ダイアログで変更することができます.
7557 \end_layout
7558
7559 \begin_layout Description
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 Counter
7565 \end_layout
7566
7567 \end_inset
7568
7569  [
7570 \begin_inset Flex Code
7571 status collapsed
7572
7573 \begin_layout Plain Layout
7574 文字列
7575 \end_layout
7576
7577 \end_inset
7578
7579 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7580 \begin_inset Flex Code
7581 status collapsed
7582
7583 \begin_layout Plain Layout
7584 End
7585 \end_layout
7586
7587 \end_inset
7588
7589 」で閉じる必要があります.
7590 \begin_inset Newline newline
7591 \end_inset
7592
7593 カウンタについての詳細は,
7594 \begin_inset CommandInset ref
7595 LatexCommand ref
7596 reference "subsec:カウンタ"
7597
7598 \end_inset
7599
7600 を参照してください.
7601 \end_layout
7602
7603 \begin_layout Description
7604 \begin_inset Flex Code
7605 status collapsed
7606
7607 \begin_layout Plain Layout
7608 DefaultFont
7609 \end_layout
7610
7611 \end_inset
7612
7613  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7614 \begin_inset CommandInset ref
7615 LatexCommand ref
7616 reference "subsec:フォント指定"
7617
7618 \end_inset
7619
7620 を参照してください.「
7621 \begin_inset Flex Code
7622 status collapsed
7623
7624 \begin_layout Plain Layout
7625 EndFont
7626 \end_layout
7627
7628 \end_inset
7629
7630 」で閉じる必要があります.
7631 \end_layout
7632
7633 \begin_layout Description
7634 \begin_inset Flex Code
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 DefaultModule
7639 \end_layout
7640
7641 \end_inset
7642
7643  [
7644 \begin_inset Flex Code
7645 status collapsed
7646
7647 \begin_layout Plain Layout
7648 <モジュール>
7649 \end_layout
7650
7651 \end_inset
7652
7653 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7654 \begin_inset Flex Code
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 .module
7659 \end_layout
7660
7661 \end_inset
7662
7663 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7664 既存の文書にこの文書クラスが選択したときのみ該当します).
7665 \end_layout
7666
7667 \begin_layout Description
7668 \begin_inset Flex Code
7669 status collapsed
7670
7671 \begin_layout Plain Layout
7672 DefaultStyle
7673 \end_layout
7674
7675 \end_inset
7676
7677  [
7678 \begin_inset Flex Code
7679 status collapsed
7680
7681 \begin_layout Plain Layout
7682 <様式>
7683 \end_layout
7684
7685 \end_inset
7686
7687 ]
7688 \lang english
7689  
7690 \lang japanese
7691 これは新規段落に割り当てられる様式であり,通常は
7692 \begin_inset Flex MenuItem
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 標準
7697 \end_layout
7698
7699 \end_inset
7700
7701 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7702 \end_layout
7703
7704 \begin_layout Description
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709 ExcludesModule
7710 \end_layout
7711
7712 \end_inset
7713
7714  [
7715 \begin_inset Flex Code
7716 status collapsed
7717
7718 \begin_layout Plain Layout
7719 <モジュール>
7720 \end_layout
7721
7722 \end_inset
7723
7724 ] このタグは,指定されたモジュール—
7725 \begin_inset Flex Code
7726 status collapsed
7727
7728 \begin_layout Plain Layout
7729 .module
7730 \end_layout
7731
7732 \end_inset
7733
7734 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7735 に振る
7736 \begin_inset Flex Code
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 theorems-sec
7741 \end_layout
7742
7743 \end_inset
7744
7745 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7746 \emph on
7747 使用してはいけません
7748 \emph default
7749 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7750 \begin_inset CommandInset ref
7751 LatexCommand ref
7752 reference "subsec:レイアウトモジュール"
7753
7754 \end_inset
7755
7756 参照).
7757 \end_layout
7758
7759 \begin_layout Description
7760 \begin_inset Flex Code
7761 status collapsed
7762
7763 \begin_layout Plain Layout
7764 Float
7765 \end_layout
7766
7767 \end_inset
7768
7769  フロートを新規に定義します.詳細は,
7770 \begin_inset CommandInset ref
7771 LatexCommand ref
7772 reference "subsec:フロート"
7773
7774 \end_inset
7775
7776 を参照してください.「
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 End
7782 \end_layout
7783
7784 \end_inset
7785
7786 」で閉じる必要があります.
7787 \end_layout
7788
7789 \begin_layout Description
7790 \begin_inset Flex Code
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794 HTMLPreamble
7795 \end_layout
7796
7797 \end_inset
7798
7799  この文書クラスがXHTMLに出力されるときに,
7800 \begin_inset Flex Code
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 <head>
7805 \end_layout
7806
7807 \end_inset
7808
7809 ブロックに出力される情報です.これより前に出現した
7810 \begin_inset Flex Code
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814 HTMLPreamble
7815 \end_layout
7816
7817 \end_inset
7818
7819
7820 \begin_inset Flex Code
7821 status collapsed
7822
7823 \begin_layout Plain Layout
7824 AddToHTMLPreamble
7825 \end_layout
7826
7827 \end_inset
7828
7829 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7830 \begin_inset Flex Code
7831 status collapsed
7832
7833 \begin_layout Plain Layout
7834 AddToHTMLPreamble
7835 \end_layout
7836
7837 \end_inset
7838
7839 を使用してください).これは「
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 EndPreamble
7845 \end_layout
7846
7847 \end_inset
7848
7849 」で閉じる必要があります.
7850 \end_layout
7851
7852 \begin_layout Description
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 HTMLTOCSection
7858 \end_layout
7859
7860 \end_inset
7861
7862  [
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 <様式>
7868 \end_layout
7869
7870 \end_inset
7871
7872 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7873 .これを指定しない場合には,\SpecialChar LyX
7874 はどのレイアウトを使用するべきか,解析しようと試みます.
7875 \end_layout
7876
7877 \begin_layout Description
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 IfCounter 
7883 \end_layout
7884
7885 \end_inset
7886
7887  [
7888 \begin_inset Flex Code
7889 status collapsed
7890
7891 \begin_layout Plain Layout
7892 <カウンタ>
7893 \end_layout
7894
7895 \end_inset
7896
7897 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 End
7903 \end_layout
7904
7905 \end_inset
7906
7907 」で閉じる必要があります.
7908 \begin_inset Newline newline
7909 \end_inset
7910
7911 カウンタについての詳細は,
7912 \begin_inset CommandInset ref
7913 LatexCommand ref
7914 reference "subsec:カウンタ"
7915
7916 \end_inset
7917
7918 をご覧ください.
7919 \end_layout
7920
7921 \begin_layout Description
7922 \begin_inset Flex Code
7923 status collapsed
7924
7925 \begin_layout Plain Layout
7926 IfStyle
7927 \end_layout
7928
7929 \end_inset
7930
7931  [
7932 \begin_inset Flex Code
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 <様式>
7937 \end_layout
7938
7939 \end_inset
7940
7941 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
7942 \begin_inset Flex Code
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 End
7947 \end_layout
7948
7949 \end_inset
7950
7951 」で閉じる必要があります.
7952 \end_layout
7953
7954 \begin_layout Description
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 Input
7960 \end_layout
7961
7962 \end_inset
7963
7964  [
7965 \begin_inset Flex Code
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 <ファイル名>
7970 \end_layout
7971
7972 \end_inset
7973
7974 ]
7975 \lang english
7976  
7977 \lang japanese
7978 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
7979 のほとんどを収録している
7980 \begin_inset Flex Code
7981 status collapsed
7982
7983 \begin_layout Plain Layout
7984 stdclass.inc
7985 \end_layout
7986
7987 \end_inset
7988
7989 のような標準レイアウトファイルです.
7990 \end_layout
7991
7992 \begin_layout Description
7993 \begin_inset Flex Code
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 InsetLayout
7998 \end_layout
7999
8000 \end_inset
8001
8002  [
8003 \begin_inset Flex Code
8004 status collapsed
8005
8006 \begin_layout Plain Layout
8007 <型>
8008 \end_layout
8009
8010 \end_inset
8011
8012 ]
8013 \lang english
8014  
8015 \lang japanese
8016 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 End
8022 \end_layout
8023
8024 \end_inset
8025
8026 」で閉じる必要があります.
8027 \begin_inset Newline newline
8028 \end_inset
8029
8030 詳しい情報は,
8031 \begin_inset CommandInset ref
8032 LatexCommand ref
8033 reference "subsec:任意設定差込枠"
8034
8035 \end_inset
8036
8037 をご覧ください.
8038 \end_layout
8039
8040 \begin_layout Description
8041 \begin_inset Flex Code
8042 status collapsed
8043
8044 \begin_layout Plain Layout
8045 LeftMargin
8046 \end_layout
8047
8048 \end_inset
8049
8050  [
8051 \begin_inset Flex Code
8052 status collapsed
8053
8054 \begin_layout Plain Layout
8055 文字列
8056 \end_layout
8057
8058 \end_inset
8059
8060 ] 画面上の左余白の幅を指示する文字列.例:「
8061 \begin_inset Flex Code
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 MMMMM
8066 \end_layout
8067
8068 \end_inset
8069
8070 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8071 \end_layout
8072
8073 \begin_layout Description
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 NoCounter
8079 \end_layout
8080
8081 \end_inset
8082
8083  [
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 <カウンタ>
8089 \end_layout
8090
8091 \end_inset
8092
8093 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8094 \end_layout
8095
8096 \begin_layout Description
8097 \begin_inset Flex Code
8098 status collapsed
8099
8100 \begin_layout Plain Layout
8101 NoFloat
8102 \end_layout
8103
8104 \end_inset
8105
8106  [
8107 \begin_inset Flex Code
8108 status collapsed
8109
8110 \begin_layout Plain Layout
8111 <フロート>
8112 \end_layout
8113
8114 \end_inset
8115
8116 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8117 \end_layout
8118
8119 \begin_layout Description
8120 \begin_inset Flex Code
8121 status collapsed
8122
8123 \begin_layout Plain Layout
8124 NoStyle
8125 \end_layout
8126
8127 \end_inset
8128
8129  [
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 <様式>
8135 \end_layout
8136
8137 \end_inset
8138
8139 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8140 \end_layout
8141
8142 \begin_layout Description
8143 \begin_inset Flex Code
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 OutputFormat
8148 \end_layout
8149
8150 \end_inset
8151
8152  [
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 <形式>
8158 \end_layout
8159
8160 \end_inset
8161
8162 ] このクラスによって生成されるファイル形式を示す文字列(
8163 \family sans
8164 設定
8165 \family default
8166 ダイアログで定義される形のもの).おもに,
8167 \begin_inset Flex Code
8168 status collapsed
8169
8170 \begin_layout Plain Layout
8171 OutputType
8172 \end_layout
8173
8174 \end_inset
8175
8176
8177 \begin_inset Flex Code
8178 status collapsed
8179
8180 \begin_layout Plain Layout
8181 literate
8182 \end_layout
8183
8184 \end_inset
8185
8186 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8187 \begin_inset Flex Code
8188 status collapsed
8189
8190 \begin_layout Plain Layout
8191 OutputType
8192 \end_layout
8193
8194 \end_inset
8195
8196 パラメーターに遭遇したときには,この文字列は,「
8197 \begin_inset Flex Code
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201 docbook
8202 \end_layout
8203
8204 \end_inset
8205
8206 」・「
8207 \begin_inset Flex Code
8208 status collapsed
8209
8210 \begin_layout Plain Layout
8211 lat
8212 \emph on
8213 ex
8214 \end_layout
8215
8216 \end_inset
8217
8218 」のいずれかにリセットされます.
8219 \end_layout
8220
8221 \begin_layout Description
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 OutputType
8227 \end_layout
8228
8229 \end_inset
8230
8231  [
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236
8237 \emph on
8238 lat
8239 \emph default
8240 ex
8241 \end_layout
8242
8243 \end_inset
8244
8245
8246 \begin_inset Flex Code
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 docbook
8251 \end_layout
8252
8253 \end_inset
8254
8255
8256 \begin_inset Flex Code
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260 literate
8261 \end_layout
8262
8263 \end_inset
8264
8265 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8266 \end_layout
8267
8268 \begin_layout Description
8269 \begin_inset Flex Code
8270 status collapsed
8271
8272 \begin_layout Plain Layout
8273 PackageOptions
8274 \end_layout
8275
8276 \end_inset
8277
8278  [
8279 \begin_inset Flex Code
8280 status collapsed
8281
8282 \begin_layout Plain Layout
8283 文字列
8284 \end_layout
8285
8286 \end_inset
8287
8288  
8289 \begin_inset Flex Code
8290 status collapsed
8291
8292 \begin_layout Plain Layout
8293 文字列
8294 \end_layout
8295
8296 \end_inset
8297
8298 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8299 \begin_inset Flex Code
8300 status collapsed
8301
8302 \begin_layout Plain Layout
8303 PackageOptions natbib square
8304 \end_layout
8305
8306 \end_inset
8307
8308 」とすると,
8309 \begin_inset Flex Code
8310 status collapsed
8311
8312 \begin_layout Plain Layout
8313 natbib
8314 \end_layout
8315
8316 \end_inset
8317
8318
8319 \begin_inset Flex Code
8320 status collapsed
8321
8322 \begin_layout Plain Layout
8323 square
8324 \end_layout
8325
8326 \end_inset
8327
8328 オプションとともに読み込みます(\SpecialChar TeX
8329 perts向けに述べると,これは,
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 natbib
8335 \end_layout
8336
8337 \end_inset
8338
8339 を読み込む前に,\SpecialChar LyX
8340
8341 \begin_inset Flex Code
8342 status collapsed
8343
8344 \begin_layout Plain Layout
8345
8346 \backslash
8347 PassOptionsToPackage{natbib}{square}
8348 \end_layout
8349
8350 \end_inset
8351
8352 を出力させます).
8353 \end_layout
8354
8355 \begin_layout Description
8356 \begin_inset Flex Code
8357 status collapsed
8358
8359 \begin_layout Plain Layout
8360 PageStyle
8361 \end_layout
8362
8363 \end_inset
8364
8365  [
8366 \emph on
8367
8368 \begin_inset Flex Code
8369 status collapsed
8370
8371 \begin_layout Plain Layout
8372 plain
8373 \end_layout
8374
8375 \end_inset
8376
8377
8378 \emph default
8379
8380 \begin_inset Flex Code
8381 status collapsed
8382
8383 \begin_layout Plain Layout
8384 empty
8385 \end_layout
8386
8387 \end_inset
8388
8389
8390 \begin_inset Flex Code
8391 status collapsed
8392
8393 \begin_layout Plain Layout
8394 headings
8395 \end_layout
8396
8397 \end_inset
8398
8399 ] 既定ページ様式.
8400 \begin_inset Flex MenuItem
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 文書\SpecialChar menuseparator
8405 設定
8406 \end_layout
8407
8408 \end_inset
8409
8410 ダイアログで変更することができます.
8411 \end_layout
8412
8413 \begin_layout Description
8414 \begin_inset Flex Code
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 Preamble
8419 \end_layout
8420
8421 \end_inset
8422
8423  \SpecialChar LaTeX
8424 文書のプリアンブルを設定します.前に行った
8425 \begin_inset Flex Code
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 Preamble
8430 \end_layout
8431
8432 \end_inset
8433
8434 宣言や
8435 \begin_inset Flex Code
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 AddToPreamble
8440 \end_layout
8441
8442 \end_inset
8443
8444 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8445 \begin_inset Flex Code
8446 status collapsed
8447
8448 \begin_layout Plain Layout
8449 AddToPreamble
8450 \end_layout
8451
8452 \end_inset
8453
8454 を使用してください.)「
8455 \begin_inset Flex Code
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459 EndPreamble
8460 \end_layout
8461
8462 \end_inset
8463
8464 」で閉じる必要があります.
8465 \end_layout
8466
8467 \begin_layout Description
8468 \begin_inset Flex Code
8469 status collapsed
8470
8471 \begin_layout Plain Layout
8472 Provides
8473 \end_layout
8474
8475 \end_inset
8476
8477  [
8478 \begin_inset Flex Code
8479 status collapsed
8480
8481 \begin_layout Plain Layout
8482 文字列
8483 \end_layout
8484
8485 \end_inset
8486
8487 ] [
8488 \begin_inset Flex Code
8489 status collapsed
8490
8491 \begin_layout Plain Layout
8492
8493 \emph on
8494 0
8495 \end_layout
8496
8497 \end_inset
8498
8499
8500 \begin_inset Flex Code
8501 status collapsed
8502
8503 \begin_layout Plain Layout
8504 1
8505 \end_layout
8506
8507 \end_inset
8508
8509 ] このクラスが
8510 \begin_inset Flex Code
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 文字列
8515 \end_layout
8516
8517 \end_inset
8518
8519 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8520 \begin_inset Flex Code
8521 status collapsed
8522
8523 \begin_layout Plain Layout
8524 amsmath
8525 \end_layout
8526
8527 \end_inset
8528
8529
8530 \begin_inset Flex Code
8531 status collapsed
8532
8533 \begin_layout Plain Layout
8534 makeidx
8535 \end_layout
8536
8537 \end_inset
8538
8539 ・\SpecialChar ldots
8540 )やマクロ名(
8541 \begin_inset Flex Code
8542 status collapsed
8543
8544 \begin_layout Plain Layout
8545 url
8546 \end_layout
8547
8548 \end_inset
8549
8550
8551 \begin_inset Flex Code
8552 status collapsed
8553
8554 \begin_layout Plain Layout
8555 boldsymbol
8556 \end_layout
8557
8558 \end_inset
8559
8560 ・\SpecialChar ldots
8561 )です.機能一覧については,
8562 \begin_inset CommandInset ref
8563 LatexCommand ref
8564 reference "chap:関数一覧"
8565
8566 \end_inset
8567
8568 を参照.
8569 \end_layout
8570
8571 \begin_layout Description
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 ProvidesModule
8577 \end_layout
8578
8579 \end_inset
8580
8581  [
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 文字列
8587 \end_layout
8588
8589 \end_inset
8590
8591 ] このレイアウトが
8592 \begin_inset Flex Code
8593 status collapsed
8594
8595 \begin_layout Plain Layout
8596 文字列
8597 \end_layout
8598
8599 \end_inset
8600
8601 で表されているモジュールの機能を提供することを示し,
8602 \begin_inset Flex Code
8603 status collapsed
8604
8605 \begin_layout Plain Layout
8606 .module
8607 \end_layout
8608
8609 \end_inset
8610
8611 拡張子を除いたファイル名で指定します.
8612 \begin_inset Flex Code
8613 status collapsed
8614
8615 \begin_layout Plain Layout
8616 DefaultModule
8617 \end_layout
8618
8619 \end_inset
8620
8621 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8622 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8623 \end_layout
8624
8625 \begin_layout Description
8626 \begin_inset Flex Code
8627 status collapsed
8628
8629 \begin_layout Plain Layout
8630 Requires
8631 \end_layout
8632
8633 \end_inset
8634
8635  [
8636 \begin_inset Flex Code
8637 status collapsed
8638
8639 \begin_layout Plain Layout
8640 文字列
8641 \end_layout
8642
8643 \end_inset
8644
8645 ] このクラスが
8646 \begin_inset Flex Code
8647 status collapsed
8648
8649 \begin_layout Plain Layout
8650 文字列
8651 \end_layout
8652
8653 \end_inset
8654
8655 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8656 さい(機能一覧については
8657 \begin_inset CommandInset ref
8658 LatexCommand ref
8659 reference "chap:関数一覧"
8660
8661 \end_inset
8662
8663 を参照).特定のオプションをとるパッケージを要求する場合,
8664 \begin_inset Flex Code
8665 status collapsed
8666
8667 \begin_layout Plain Layout
8668 PackageOptions
8669 \end_layout
8670
8671 \end_inset
8672
8673 を追加して使うことができます.
8674 \end_layout
8675
8676 \begin_layout Description
8677 \begin_inset Flex Code
8678 status collapsed
8679
8680 \begin_layout Plain Layout
8681 RightMargin
8682 \end_layout
8683
8684 \end_inset
8685
8686  [
8687 \begin_inset Flex Code
8688 status collapsed
8689
8690 \begin_layout Plain Layout
8691 文字列
8692 \end_layout
8693
8694 \end_inset
8695
8696 ] 画面上の右余白の幅を指示する文字列.例:「
8697 \begin_inset Flex Code
8698 status collapsed
8699
8700 \begin_layout Plain Layout
8701 MMMMM
8702 \end_layout
8703
8704 \end_inset
8705
8706 」.
8707 \end_layout
8708
8709 \begin_layout Description
8710 \begin_inset Flex Code
8711 status collapsed
8712
8713 \begin_layout Plain Layout
8714 SecNumDepth
8715 \end_layout
8716
8717 \end_inset
8718
8719  [
8720 \begin_inset Flex Code
8721 status collapsed
8722
8723 \begin_layout Plain Layout
8724 int=3
8725 \end_layout
8726
8727 \end_inset
8728
8729 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8730 における
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 secnumdepth
8736 \end_layout
8737
8738 \end_inset
8739
8740 カウンタに対応します.
8741 \end_layout
8742
8743 \begin_layout Description
8744 \begin_inset Flex Code
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 Sides
8749 \end_layout
8750
8751 \end_inset
8752
8753  [
8754 \emph on
8755
8756 \begin_inset Flex Code
8757 status collapsed
8758
8759 \begin_layout Plain Layout
8760 1
8761 \end_layout
8762
8763 \end_inset
8764
8765
8766 \emph default
8767 ,
8768 \begin_inset space \thinspace{}
8769 \end_inset
8770
8771
8772 \begin_inset Flex Code
8773 status collapsed
8774
8775 \begin_layout Plain Layout
8776 2
8777 \end_layout
8778
8779 \end_inset
8780
8781 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8782 \begin_inset Flex MenuItem
8783 status collapsed
8784
8785 \begin_layout Plain Layout
8786 文書\SpecialChar menuseparator
8787 設定
8788 \end_layout
8789
8790 \end_inset
8791
8792 ダイアログで変更することができます.
8793 \end_layout
8794
8795 \begin_layout Description
8796 \begin_inset Flex Code
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 Style
8801 \end_layout
8802
8803 \end_inset
8804
8805  [
8806 \begin_inset Flex Code
8807 status collapsed
8808
8809 \begin_layout Plain Layout
8810 <名称>
8811 \end_layout
8812
8813 \end_inset
8814
8815 ]
8816 \lang english
8817  
8818 \lang japanese
8819 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8820 \begin_inset Flex Code
8821 status collapsed
8822
8823 \begin_layout Plain Layout
8824 End
8825 \end_layout
8826
8827 \end_inset
8828
8829 」で閉じる必要があります.
8830 \begin_inset Newline newline
8831 \end_inset
8832
8833 段落様式に関する詳細は,
8834 \begin_inset CommandInset ref
8835 LatexCommand ref
8836 reference "subsec:段落様式-XHTML"
8837
8838 \end_inset
8839
8840 をご覧ください.
8841 \end_layout
8842
8843 \begin_layout Description
8844 \begin_inset Flex Code
8845 status collapsed
8846
8847 \begin_layout Plain Layout
8848 TitleLatexName
8849 \end_layout
8850
8851 \end_inset
8852
8853  [
8854 \begin_inset Flex Code
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858 文字列="maketitle"
8859 \end_layout
8860
8861 \end_inset
8862
8863
8864 \begin_inset Flex Code
8865 status collapsed
8866
8867 \begin_layout Plain Layout
8868 TitleLatexType
8869 \end_layout
8870
8871 \end_inset
8872
8873 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8874  
8875 \begin_inset Flex Code
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 TitleLatexType
8880 \end_layout
8881
8882 \end_inset
8883
8884 .
8885 \end_layout
8886
8887 \begin_layout Description
8888 \begin_inset Flex Code
8889 status collapsed
8890
8891 \begin_layout Plain Layout
8892 TitleLatexType
8893 \end_layout
8894
8895 \end_inset
8896
8897  [
8898 \begin_inset Flex Code
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902
8903 \emph on
8904 CommandAfter
8905 \end_layout
8906
8907 \end_inset
8908
8909
8910 \begin_inset Flex Code
8911 status collapsed
8912
8913 \begin_layout Plain Layout
8914 Environment
8915 \end_layout
8916
8917 \end_inset
8918
8919 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
8920 \begin_inset Flex Code
8921 status collapsed
8922
8923 \begin_layout Plain Layout
8924 CommandAfter
8925 \end_layout
8926
8927 \end_inset
8928
8929 は,「
8930 \begin_inset Flex Code
8931 status collapsed
8932
8933 \begin_layout Plain Layout
8934 InTitle
8935 \begin_inset space ~
8936 \end_inset
8937
8938 1
8939 \end_layout
8940
8941 \end_inset
8942
8943 」が指定されている最後のレイアウトの後に,
8944 \begin_inset Flex Code
8945 status collapsed
8946
8947 \begin_layout Plain Layout
8948 TitleLatexName
8949 \end_layout
8950
8951 \end_inset
8952
8953 で指定したマクロ名を挿入することを意味します.
8954 \begin_inset Flex Code
8955 status collapsed
8956
8957 \begin_layout Plain Layout
8958 Environment
8959 \end_layout
8960
8961 \end_inset
8962
8963 は,「
8964 \begin_inset Flex Code
8965 status collapsed
8966
8967 \begin_layout Plain Layout
8968 InTitle
8969 \begin_inset space ~
8970 \end_inset
8971
8972 1
8973 \end_layout
8974
8975 \end_inset
8976
8977 」を持つ段落群を
8978 \begin_inset Flex Code
8979 status collapsed
8980
8981 \begin_layout Plain Layout
8982 TitleLatexName
8983 \end_layout
8984
8985 \end_inset
8986
8987 で指定した環境でくるむ場合に対応します.
8988 \end_layout
8989
8990 \begin_layout Description
8991 \begin_inset Flex Code
8992 status collapsed
8993
8994 \begin_layout Plain Layout
8995 TocDepth
8996 \end_layout
8997
8998 \end_inset
8999
9000  [
9001 \begin_inset Flex Code
9002 status collapsed
9003
9004 \begin_layout Plain Layout
9005 int=3
9006 \end_layout
9007
9008 \end_inset
9009
9010 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9011
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016 tocdepth
9017 \end_layout
9018
9019 \end_inset
9020
9021 カウンタに対応します.
9022 \end_layout
9023
9024 \begin_layout Subsection
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 ClassOptions
9030 \end_layout
9031
9032 \end_inset
9033
9034
9035 \begin_inset CommandInset label
9036 LatexCommand label
9037 name "subsec:ClassOptions"
9038
9039 \end_inset
9040
9041
9042 \end_layout
9043
9044 \begin_layout Standard
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 ClassOptions
9050 \end_layout
9051
9052 \end_inset
9053
9054 部は,以下の項目を取り得ます.
9055 \end_layout
9056
9057 \begin_layout Description
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 FontSize
9063 \end_layout
9064
9065 \end_inset
9066
9067  [
9068 \begin_inset Flex Code
9069 status collapsed
9070
9071 \begin_layout Plain Layout
9072 文字列="10|11|12"
9073 \end_layout
9074
9075 \end_inset
9076
9077 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9078 \begin_inset Flex Code
9079 status collapsed
9080
9081 \begin_layout Plain Layout
9082 |
9083 \end_layout
9084
9085 \end_inset
9086
9087 」で区切ります.
9088 \end_layout
9089
9090 \begin_layout Description
9091 \begin_inset Flex Code
9092 status collapsed
9093
9094 \begin_layout Plain Layout
9095 Header
9096 \end_layout
9097
9098 \end_inset
9099
9100  XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC 
9101 \begin_inset Quotes eld
9102 \end_inset
9103
9104 -//OASIS//DTD DocBook V4.2//EN
9105 \begin_inset Quotes erd
9106 \end_inset
9107
9108
9109 \end_layout
9110
9111 \begin_layout Description
9112 \begin_inset Flex Code
9113 status collapsed
9114
9115 \begin_layout Plain Layout
9116 PageStyle
9117 \end_layout
9118
9119 \end_inset
9120
9121  [
9122 \begin_inset Flex Code
9123 status collapsed
9124
9125 \begin_layout Plain Layout
9126 文字列="empty|plain|headings|fancy"
9127 \end_layout
9128
9129 \end_inset
9130
9131 ] 使用できるページ様式の一覧です.「
9132 \begin_inset Flex Code
9133 status collapsed
9134
9135 \begin_layout Plain Layout
9136 |
9137 \end_layout
9138
9139 \end_inset
9140
9141 」で区切ります.
9142 \end_layout
9143
9144 \begin_layout Description
9145 \begin_inset Flex Code
9146 status collapsed
9147
9148 \begin_layout Plain Layout
9149 Other
9150 \end_layout
9151
9152 \end_inset
9153
9154  [
9155 \begin_inset Flex Code
9156 status collapsed
9157
9158 \begin_layout Plain Layout
9159 文字列=""
9160 \end_layout
9161
9162 \end_inset
9163
9164
9165 \begin_inset Flex Code
9166 status collapsed
9167
9168 \begin_layout Plain Layout
9169
9170 \backslash
9171 documentclass
9172 \end_layout
9173
9174 \end_inset
9175
9176 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9177 \end_layout
9178
9179 \begin_layout Standard
9180 \begin_inset Flex Code
9181 status collapsed
9182
9183 \begin_layout Plain Layout
9184 ClassOptions
9185 \end_layout
9186
9187 \end_inset
9188
9189 部は「
9190 \begin_inset Flex Code
9191 status collapsed
9192
9193 \begin_layout Plain Layout
9194 End
9195 \end_layout
9196
9197 \end_inset
9198
9199 」で閉じる必要があります.
9200 \end_layout
9201
9202 \begin_layout Subsection
9203 段落様式
9204 \begin_inset CommandInset label
9205 LatexCommand label
9206 name "subsec:段落様式"
9207
9208 \end_inset
9209
9210
9211 \end_layout
9212
9213 \begin_layout Standard
9214 段落様式の記述は,以下のようになります
9215 \begin_inset Foot
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9220 \end_layout
9221
9222 \end_inset
9223
9224
9225 \end_layout
9226
9227 \begin_layout LyX-Code
9228 Style 
9229 \family roman
9230 \emph on
9231 名称
9232 \end_layout
9233
9234 \begin_layout LyX-Code
9235  ...
9236 \end_layout
9237
9238 \begin_layout LyX-Code
9239 End
9240 \end_layout
9241
9242 \begin_layout Standard
9243 ここでは,以下のコマンドを使用することができます.
9244 \end_layout
9245
9246 \begin_layout Description
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 Align
9252 \end_layout
9253
9254 \end_inset
9255
9256  [
9257 \begin_inset Flex Code
9258 status collapsed
9259
9260 \begin_layout Plain Layout
9261
9262 \emph on
9263 block
9264 \emph default
9265 , left, right, center
9266 \end_layout
9267
9268 \end_inset
9269
9270 ] 段落の揃え.
9271 \end_layout
9272
9273 \begin_layout Description
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278 AlignPossible
9279 \end_layout
9280
9281 \end_inset
9282
9283  [
9284 \begin_inset Flex Code
9285 status collapsed
9286
9287 \begin_layout Plain Layout
9288
9289 \emph on
9290 block
9291 \emph default
9292 , left, right, center
9293 \end_layout
9294
9295 \end_inset
9296
9297 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9298 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9299 はできません).
9300 \end_layout
9301
9302 \begin_layout Description
9303 \begin_inset Flex Code
9304 status collapsed
9305
9306 \begin_layout Plain Layout
9307 Argument
9308 \end_layout
9309
9310 \end_inset
9311
9312  [
9313 \begin_inset Flex Code
9314 status collapsed
9315
9316 \begin_layout Plain Layout
9317 整数
9318 \end_layout
9319
9320 \end_inset
9321
9322 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9323 でのみ意味を持ちます.コマンドまたは環
9324 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9325 \begin_inset Flex Code
9326 status collapsed
9327
9328 \begin_layout Plain Layout
9329 EndArgument
9330 \end_layout
9331
9332 \end_inset
9333
9334 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9335 \end_layout
9336
9337 \begin_deeper
9338 \begin_layout Quote
9339
9340 \family typewriter
9341 Argument 1
9342 \end_layout
9343
9344 \begin_layout Quote
9345
9346 \family typewriter
9347 ...
9348 \end_layout
9349
9350 \begin_layout Quote
9351
9352 \family typewriter
9353 EndArgument
9354 \end_layout
9355
9356 \begin_layout Quote
9357
9358 \family typewriter
9359 Argument 2
9360 \end_layout
9361
9362 \begin_layout Quote
9363
9364 \family typewriter
9365 ...
9366 \end_layout
9367
9368 \begin_layout Quote
9369
9370 \family typewriter
9371 EndArgument
9372 \end_layout
9373
9374 \begin_layout Standard
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 Argument
9380 \end_layout
9381
9382 \end_inset
9383
9384 定義内部では,以下の指定をすることができます.
9385 \end_layout
9386
9387 \begin_layout Itemize
9388 \begin_inset Flex Code
9389 status collapsed
9390
9391 \begin_layout Plain Layout
9392 LabelString
9393 \end_layout
9394
9395 \end_inset
9396
9397  
9398 \begin_inset Flex Code
9399 status collapsed
9400
9401 \begin_layout Plain Layout
9402 [文字列]
9403 \end_layout
9404
9405 \end_inset
9406
9407  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9408 \begin_inset Flex Code
9409 status collapsed
9410
9411 \begin_layout Plain Layout
9412 MenuString
9413 \end_layout
9414
9415 \end_inset
9416
9417 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9418 \begin_inset space \space{}
9419 \end_inset
9420
9421
9422 \begin_inset Quotes eld
9423 \end_inset
9424
9425
9426 \begin_inset Flex Code
9427 status collapsed
9428
9429 \begin_layout Plain Layout
9430 Short Title|S
9431 \end_layout
9432
9433 \end_inset
9434
9435
9436 \begin_inset Quotes erd
9437 \end_inset
9438
9439 ).
9440 \end_layout
9441
9442 \begin_layout Itemize
9443 \begin_inset Flex Code
9444 status collapsed
9445
9446 \begin_layout Plain Layout
9447 MenuString
9448 \end_layout
9449
9450 \end_inset
9451
9452  
9453 \begin_inset Flex Code
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 [文字列]
9458 \end_layout
9459
9460 \end_inset
9461
9462  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9463 \begin_inset space \space{}
9464 \end_inset
9465
9466
9467 \begin_inset Quotes eld
9468 \end_inset
9469
9470
9471 \begin_inset Flex Code
9472 status collapsed
9473
9474 \begin_layout Plain Layout
9475 Short Title|S
9476 \end_layout
9477
9478 \end_inset
9479
9480
9481 \begin_inset Quotes erd
9482 \end_inset
9483
9484 ).この指定は必須ではありません.指定しない場合には,代わりに
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 LabelString
9490 \end_layout
9491
9492 \end_inset
9493
9494 がメニューに用いられます.
9495 \end_layout
9496
9497 \begin_layout Itemize
9498 \begin_inset Flex Code
9499 status collapsed
9500
9501 \begin_layout Plain Layout
9502 Tooltip
9503 \end_layout
9504
9505 \end_inset
9506
9507  
9508 \begin_inset Flex Code
9509 status collapsed
9510
9511 \begin_layout Plain Layout
9512 [文字列]
9513 \end_layout
9514
9515 \end_inset
9516
9517  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9518 \end_layout
9519
9520 \begin_layout Itemize
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 Mandatory
9526 \end_layout
9527
9528 \end_inset
9529
9530  [
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535
9536 \emph on
9537 0
9538 \end_layout
9539
9540 \end_inset
9541
9542 ,
9543 \begin_inset space \thinspace{}
9544 \end_inset
9545
9546
9547 \begin_inset Flex Code
9548 status collapsed
9549
9550 \begin_layout Plain Layout
9551 1
9552 \end_layout
9553
9554 \end_inset
9555
9556 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9557 .既定では,必須引数は
9558 \begin_inset Flex Code
9559 status collapsed
9560
9561 \begin_layout Plain Layout
9562 {...}
9563 \end_layout
9564
9565 \end_inset
9566
9567 で区切られ,非必須引数は
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 [...]
9573 \end_layout
9574
9575 \end_inset
9576
9577 で区切られます.
9578 \end_layout
9579
9580 \begin_layout Itemize
9581 \begin_inset Flex Code
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 Requires
9586 \end_layout
9587
9588 \end_inset
9589
9590  
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 [整数=0]
9596 \end_layout
9597
9598 \end_inset
9599
9600  この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9601 コマンドでは,
9602 \begin_inset Flex Code
9603 status collapsed
9604
9605 \begin_layout Plain Layout
9606
9607 \backslash
9608 command[][引数]{文字列}
9609 \end_layout
9610
9611 \end_inset
9612
9613 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9614 \begin_inset Flex Code
9615 status collapsed
9616
9617 \begin_layout Plain Layout
9618 Argument 2
9619 \end_layout
9620
9621 \end_inset
9622
9623 中に
9624 \begin_inset Flex Code
9625 status collapsed
9626
9627 \begin_layout Plain Layout
9628 Requires 1
9629 \end_layout
9630
9631 \end_inset
9632
9633 ステートメントを置くことで実現できます.
9634 \end_layout
9635
9636 \begin_layout Itemize
9637 \begin_inset Flex Code
9638 status collapsed
9639
9640 \begin_layout Plain Layout
9641 LeftDelim
9642 \end_layout
9643
9644 \end_inset
9645
9646  
9647 \begin_inset Flex Code
9648 status collapsed
9649
9650 \begin_layout Plain Layout
9651 [文字列]
9652 \end_layout
9653
9654 \end_inset
9655
9656  (
9657 \begin_inset Flex Code
9658 status collapsed
9659
9660 \begin_layout Plain Layout
9661 {
9662 \end_layout
9663
9664 \end_inset
9665
9666
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671 [
9672 \end_layout
9673
9674 \end_inset
9675
9676 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9677 \begin_inset Flex Code
9678 status collapsed
9679
9680 \begin_layout Plain Layout
9681 <br/>
9682 \end_layout
9683
9684 \end_inset
9685
9686 で指示できます.
9687 \end_layout
9688
9689 \begin_layout Itemize
9690 \begin_inset Flex Code
9691 status collapsed
9692
9693 \begin_layout Plain Layout
9694 RightDelim
9695 \end_layout
9696
9697 \end_inset
9698
9699  
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 [文字列]
9705 \end_layout
9706
9707 \end_inset
9708
9709  (
9710 \begin_inset Flex Code
9711 status collapsed
9712
9713 \begin_layout Plain Layout
9714 }
9715 \end_layout
9716
9717 \end_inset
9718
9719
9720 \begin_inset Flex Code
9721 status collapsed
9722
9723 \begin_layout Plain Layout
9724 ]
9725 \end_layout
9726
9727 \end_inset
9728
9729 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9730 \begin_inset Flex Code
9731 status collapsed
9732
9733 \begin_layout Plain Layout
9734 <br/>
9735 \end_layout
9736
9737 \end_inset
9738
9739 で指示できます.
9740 \end_layout
9741
9742 \begin_layout Itemize
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 DefaultArg
9748 \end_layout
9749
9750 \end_inset
9751
9752  
9753 \begin_inset Flex Code
9754 status collapsed
9755
9756 \begin_layout Plain Layout
9757 [文字列]
9758 \end_layout
9759
9760 \end_inset
9761
9762  ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9763 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9764 \end_layout
9765
9766 \begin_layout Itemize
9767 \begin_inset Flex Code
9768 status collapsed
9769
9770 \begin_layout Plain Layout
9771 PresetArg
9772 \end_layout
9773
9774 \end_inset
9775
9776  
9777 \begin_inset Flex Code
9778 status collapsed
9779
9780 \begin_layout Plain Layout
9781 [文字列]
9782 \end_layout
9783
9784 \end_inset
9785
9786  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9787 \end_layout
9788
9789 \begin_layout Itemize
9790 \begin_inset Flex Code
9791 status collapsed
9792
9793 \begin_layout Plain Layout
9794 Font
9795 \end_layout
9796
9797 \end_inset
9798
9799  引数の内容に用いられるフォント.
9800 \begin_inset CommandInset ref
9801 LatexCommand ref
9802 reference "subsec:フォント指定"
9803
9804 \end_inset
9805
9806 参照.
9807 \end_layout
9808
9809 \begin_layout Itemize
9810 \begin_inset Flex Code
9811 status collapsed
9812
9813 \begin_layout Plain Layout
9814 LabelFont
9815 \end_layout
9816
9817 \end_inset
9818
9819  ラベルに用いられるフォント.
9820 \begin_inset CommandInset ref
9821 LatexCommand ref
9822 reference "subsec:フォント指定"
9823
9824 \end_inset
9825
9826 参照.
9827 \end_layout
9828
9829 \begin_layout Itemize
9830 \begin_inset Flex Code
9831 status collapsed
9832
9833 \begin_layout Plain Layout
9834 Decoration
9835 \end_layout
9836
9837 \end_inset
9838
9839  [
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844
9845 \emph on
9846 Classic
9847 \emph default
9848 , Minimalistic, Conglomerate
9849 \end_layout
9850
9851 \end_inset
9852
9853 ] 差込枠の枠とボタンに用いられる装飾様式.
9854 \end_layout
9855
9856 \begin_layout Itemize
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 AutoInsert
9862 \end_layout
9863
9864 \end_inset
9865
9866  
9867 \begin_inset Flex Code
9868 status collapsed
9869
9870 \begin_layout Plain Layout
9871 [整数=0]
9872 \end_layout
9873
9874 \end_inset
9875
9876  これが
9877 \begin_inset Flex Code
9878 status collapsed
9879
9880 \begin_layout Plain Layout
9881 1
9882 \end_layout
9883
9884 \end_inset
9885
9886 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9887 \end_layout
9888
9889 \begin_layout Itemize
9890 \begin_inset Flex Code
9891 status collapsed
9892
9893 \begin_layout Plain Layout
9894 InsertCotext
9895 \end_layout
9896
9897 \end_inset
9898
9899  
9900 \begin_inset Flex Code
9901 status collapsed
9902
9903 \begin_layout Plain Layout
9904 [整数=0]
9905 \end_layout
9906
9907 \end_inset
9908
9909  これが
9910 \begin_inset Flex Code
9911 status collapsed
9912
9913 \begin_layout Plain Layout
9914 1
9915 \end_layout
9916
9917 \end_inset
9918
9919 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
9920 \end_layout
9921
9922 \begin_layout Itemize
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 PassThruChars
9928 \end_layout
9929
9930 \end_inset
9931
9932  [
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 文字列
9938 \end_layout
9939
9940 \end_inset
9941
9942 ]
9943 \family typewriter
9944  
9945 \family default
9946 \SpecialChar LaTeX
9947 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
9948 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
9949 \end_layout
9950
9951 \begin_layout Standard
9952 既定では,
9953 \begin_inset Flex Code
9954 status collapsed
9955
9956 \begin_layout Plain Layout
9957 LatexType
9958 \end_layout
9959
9960 \end_inset
9961
9962
9963 \begin_inset Flex Code
9964 status collapsed
9965
9966 \begin_layout Plain Layout
9967 Command
9968 \end_layout
9969
9970 \end_inset
9971
9972 のとき,各レイアウトで\SpecialChar LyX
9973 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
9974 \begin_inset Flex Code
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978 post:
9979 \end_layout
9980
9981 \end_inset
9982
9983 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
9984 \begin_inset Flex Code
9985 status collapsed
9986
9987 \begin_layout Plain Layout
9988 post:1
9989 \end_layout
9990
9991 \end_inset
9992
9993 となります.後置引数は,
9994 \begin_inset Flex Code
9995 status collapsed
9996
9997 \begin_layout Plain Layout
9998 Command
9999 \end_layout
10000
10001 \end_inset
10002
10003 以外の
10004 \begin_inset Flex Code
10005 status collapsed
10006
10007 \begin_layout Plain Layout
10008 LatexType
10009 \end_layout
10010
10011 \end_inset
10012
10013 では無視されます.
10014 \end_layout
10015
10016 \begin_layout Standard
10017 (
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022
10023 \backslash
10024 item[foo]
10025 \end_layout
10026
10027 \end_inset
10028
10029 のような)箇条書き
10030 \begin_inset Flex Code
10031 status collapsed
10032
10033 \begin_layout Plain Layout
10034
10035 \backslash
10036 item
10037 \end_layout
10038
10039 \end_inset
10040
10041 の引数は,前置句
10042 \begin_inset Flex Code
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 item:
10047 \end_layout
10048
10049 \end_inset
10050
10051 の後に番号を付けます(例:
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 Argument item:1
10057 \end_layout
10058
10059 \end_inset
10060
10061 ).
10062 \end_layout
10063
10064 \end_deeper
10065 \begin_layout Description
10066 \begin_inset Flex Code
10067 status collapsed
10068
10069 \begin_layout Plain Layout
10070 BabelPreamble
10071 \end_layout
10072
10073 \end_inset
10074
10075  これは,前に現れたこの様式の
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 BabelPreamble
10081 \end_layout
10082
10083 \end_inset
10084
10085 宣言をすべて,完全に上書きしますので注意してください.「
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 EndBabelPreamble
10091 \end_layout
10092
10093 \end_inset
10094
10095 」で閉じる必要があります.これの利用法についての詳細は,第
10096 \begin_inset CommandInset ref
10097 LatexCommand ref
10098 reference "subsec:段落様式の国際化"
10099
10100 \end_inset
10101
10102 節をご覧ください.
10103 \end_layout
10104
10105 \begin_layout Description
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 BottomSep
10111 \end_layout
10112
10113 \end_inset
10114
10115  [
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 浮動小数点型=0
10121 \end_layout
10122
10123 \end_inset
10124
10125 ]
10126 \begin_inset Foot
10127 status collapsed
10128
10129 \begin_layout Plain Layout
10130 ここで「浮動小数点型」とは1.5のような実数を指します.
10131 \end_layout
10132
10133 \end_inset
10134
10135  このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10136 す.
10137 \end_layout
10138
10139 \begin_layout Description
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 Category
10145 \end_layout
10146
10147 \end_inset
10148
10149  [
10150 \begin_inset Flex Code
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 文字列
10155 \end_layout
10156
10157 \end_inset
10158
10159 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10160 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10161 \end_layout
10162
10163 \begin_layout Description
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 CommandDepth
10169 \end_layout
10170
10171 \end_inset
10172
10173  XMLコマンドの深度.XML型の書式でのみ使用されます.
10174 \end_layout
10175
10176 \begin_layout Description
10177 \begin_inset Flex Code
10178 status collapsed
10179
10180 \begin_layout Plain Layout
10181 CopyStyle
10182 \end_layout
10183
10184 \end_inset
10185
10186  [
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 文字列
10192 \end_layout
10193
10194 \end_inset
10195
10196 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10197 \end_layout
10198
10199 \begin_layout Description
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 DependsOn
10205 \end_layout
10206
10207 \end_inset
10208
10209  [
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 <名称>
10215 \end_layout
10216
10217 \end_inset
10218
10219 ]
10220 \lang english
10221  
10222 \lang japanese
10223 この
10224 \emph on
10225 前に
10226 \emph default
10227 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10228 \begin_inset Foot
10229 status collapsed
10230
10231 \begin_layout Plain Layout
10232 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10233 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10234 あります.
10235 \end_layout
10236
10237 \end_inset
10238
10239
10240 \end_layout
10241
10242 \begin_layout Description
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247 EndLabeltype
10248 \end_layout
10249
10250 \end_inset
10251
10252  [
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257
10258 \emph on
10259 No_Label
10260 \emph default
10261 , Box, Filled_Box, Static
10262 \end_layout
10263
10264 \end_inset
10265
10266 ] 段落の最後(あるいは
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 LatexType
10272 \end_layout
10273
10274 \end_inset
10275
10276 が,
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 Environment
10282 \end_layout
10283
10284 \end_inset
10285
10286
10287 \begin_inset Flex Code
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 Item_Environment
10292 \end_layout
10293
10294 \end_inset
10295
10296
10297 \begin_inset Flex Code
10298 status collapsed
10299
10300 \begin_layout Plain Layout
10301 List_Environment
10302 \end_layout
10303
10304 \end_inset
10305
10306 のいずれかの場合は,段落群の最後)に置くラベル.
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311 No_Label
10312 \end_layout
10313
10314 \end_inset
10315
10316 の場合は「何もない」ことを指し,
10317 \begin_inset Flex Code
10318 status collapsed
10319
10320 \begin_layout Plain Layout
10321 Box
10322 \end_layout
10323
10324 \end_inset
10325
10326 (あるいは
10327 \begin_inset Flex Code
10328 status collapsed
10329
10330 \begin_layout Plain Layout
10331 Filled_Box
10332 \end_layout
10333
10334 \end_inset
10335
10336 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 Static
10342 \end_layout
10343
10344 \end_inset
10345
10346 は明示したテキスト文字列を指します.
10347 \end_layout
10348
10349 \begin_layout Description
10350 \begin_inset Flex Code
10351 status collapsed
10352
10353 \begin_layout Plain Layout
10354 EndLabelString
10355 \end_layout
10356
10357 \end_inset
10358
10359  [
10360 \begin_inset Flex Code
10361 status collapsed
10362
10363 \begin_layout Plain Layout
10364 文字列=""
10365 \end_layout
10366
10367 \end_inset
10368
10369
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374 Static
10375 \end_layout
10376
10377 \end_inset
10378
10379
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384 EndLabelType
10385 \end_layout
10386
10387 \end_inset
10388
10389 のラベルで用いる文字列.
10390 \end_layout
10391
10392 \begin_layout Description
10393 \begin_inset Flex Code
10394 status collapsed
10395
10396 \begin_layout Plain Layout
10397 Font
10398 \end_layout
10399
10400 \end_inset
10401
10402  本文テキストとラベルの
10403 \emph on
10404 両方で
10405 \emph default
10406 用いられるフォント.第
10407 \begin_inset CommandInset ref
10408 LatexCommand ref
10409 reference "subsec:フォント指定"
10410
10411 \end_inset
10412
10413 節を参照.このフォントを定義すると,自動的に
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 LabelFont
10419 \end_layout
10420
10421 \end_inset
10422
10423 も同じ値で定義されることに注意してください.したがって,
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 LabelFont
10429 \end_layout
10430
10431 \end_inset
10432
10433 も同時に定義したい場合には,これを先に定義してください.
10434 \end_layout
10435
10436 \begin_layout Description
10437 \begin_inset Flex Code
10438 status collapsed
10439
10440 \begin_layout Plain Layout
10441 ForceLocal
10442 \end_layout
10443
10444 \end_inset
10445
10446  [
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 int=0
10452 \end_layout
10453
10454 \end_inset
10455
10456 ] 新しい様式を\SpecialChar LyX
10457 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10458  2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10459 できます.様式の
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464 ForceLocal
10465 \end_layout
10466
10467 \end_inset
10468
10469 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10470 版の\SpecialChar LyX
10471 もこの様式を取り扱えるようになります.
10472 \begin_inset Flex Code
10473 status collapsed
10474
10475 \begin_layout Plain Layout
10476 ForceLocal
10477 \end_layout
10478
10479 \end_inset
10480
10481 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10482 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10483 \end_layout
10484
10485 \begin_layout Description
10486 \begin_inset Flex Code
10487 status collapsed
10488
10489 \begin_layout Plain Layout
10490 FreeSpacing
10491 \end_layout
10492
10493 \end_inset
10494
10495  [
10496 \emph on
10497
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 0
10503 \end_layout
10504
10505 \end_inset
10506
10507
10508 \emph default
10509 ,
10510 \begin_inset space \thinspace{}
10511 \end_inset
10512
10513
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 1
10519 \end_layout
10520
10521 \end_inset
10522
10523 ] \SpecialChar LyX
10524 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10525 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10526 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 FreeSpacing
10532 \end_layout
10533
10534 \end_inset
10535
10536 を有効にすることが認められています.\SpecialChar LyX
10537 は,\SpecialChar LaTeX
10538 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10539 \end_layout
10540
10541 \begin_layout Description
10542 \begin_inset Flex Code
10543 status collapsed
10544
10545 \begin_layout Plain Layout
10546 HTML*
10547 \end_layout
10548
10549 \end_inset
10550
10551  これらのタグは,XHTML出力で使用されます.第
10552 \begin_inset CommandInset ref
10553 LatexCommand ref
10554 reference "subsec:段落様式-XHTML"
10555
10556 \end_inset
10557
10558 節をご覧ください.
10559 \end_layout
10560
10561 \begin_layout Description
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 InnerTag
10567 \end_layout
10568
10569 \end_inset
10570
10571  [[FIXME]] (XML型書式でのみ使用されます.)
10572 \end_layout
10573
10574 \begin_layout Description
10575 \begin_inset Flex Code
10576 status collapsed
10577
10578 \begin_layout Plain Layout
10579 InPreamble
10580 \end_layout
10581
10582 \end_inset
10583
10584  [
10585 \emph on
10586
10587 \begin_inset Flex Code
10588 status collapsed
10589
10590 \begin_layout Plain Layout
10591 0
10592 \end_layout
10593
10594 \end_inset
10595
10596
10597 \emph default
10598 ,
10599 \begin_inset space \thinspace{}
10600 \end_inset
10601
10602
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 1
10608 \end_layout
10609
10610 \end_inset
10611
10612
10613 \begin_inset Flex Code
10614 status collapsed
10615
10616 \begin_layout Plain Layout
10617 1
10618 \end_layout
10619
10620 \end_inset
10621
10622 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10623 です.これは,
10624 \begin_inset Flex Code
10625 status collapsed
10626
10627 \begin_layout Plain Layout
10628 LatexType
10629 \end_layout
10630
10631 \end_inset
10632
10633
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638 Command
10639 \end_layout
10640
10641 \end_inset
10642
10643 または
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 Paragraph
10649 \end_layout
10650
10651 \end_inset
10652
10653 の様式に対してのみ動作します.
10654 \end_layout
10655
10656 \begin_layout Description
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 InTitle
10662 \end_layout
10663
10664 \end_inset
10665
10666  [
10667 \emph on
10668
10669 \begin_inset Flex Code
10670 status collapsed
10671
10672 \begin_layout Plain Layout
10673 0
10674 \end_layout
10675
10676 \end_inset
10677
10678
10679 \emph default
10680 ,
10681 \begin_inset space \thinspace{}
10682 \end_inset
10683
10684
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 1
10690 \end_layout
10691
10692 \end_inset
10693
10694
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 1
10700 \end_layout
10701
10702 \end_inset
10703
10704 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10705 \begin_inset Flex Code
10706 status collapsed
10707
10708 \begin_layout Plain Layout
10709 TitleLatexType
10710 \end_layout
10711
10712 \end_inset
10713
10714
10715 \begin_inset Flex Code
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 TitleLatexName
10720 \end_layout
10721
10722 \end_inset
10723
10724 も参照).
10725 \end_layout
10726
10727 \begin_layout Description
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 ItemCommand
10733 \end_layout
10734
10735 \end_inset
10736
10737  [
10738 \begin_inset Flex Code
10739 status collapsed
10740
10741 \begin_layout Plain Layout
10742 文字列="item"
10743 \end_layout
10744
10745 \end_inset
10746
10747 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10748 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10749 出力中では
10750 \begin_inset Flex Code
10751 status collapsed
10752
10753 \begin_layout Plain Layout
10754
10755 \backslash
10756 item
10757 \end_layout
10758
10759 \end_inset
10760
10761 となります).
10762 \end_layout
10763
10764 \begin_layout Description
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 ItemSep
10770 \end_layout
10771
10772 \end_inset
10773
10774  [
10775 \begin_inset Flex Code
10776 status collapsed
10777
10778 \begin_layout Plain Layout
10779 浮動小数点型=0
10780 \end_layout
10781
10782 \end_inset
10783
10784 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10785 \begin_inset Flex Code
10786 status collapsed
10787
10788 \begin_layout Plain Layout
10789 ParSep
10790 \end_layout
10791
10792 \end_inset
10793
10794 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 ItemSep
10800 \end_layout
10801
10802 \end_inset
10803
10804 分だけ離されます.これは
10805 \emph on
10806 乗数
10807 \emph default
10808 であることに注意してください.
10809 \end_layout
10810
10811 \begin_layout Description
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 ItemTag
10817 \end_layout
10818
10819 \end_inset
10820
10821  [[FIXME]] (XML型書式でのみ使用されます.)
10822 \end_layout
10823
10824 \begin_layout Description
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 KeepEmpty
10830 \end_layout
10831
10832 \end_inset
10833
10834  [
10835 \emph on
10836
10837 \begin_inset Flex Code
10838 status collapsed
10839
10840 \begin_layout Plain Layout
10841 0
10842 \end_layout
10843
10844 \end_inset
10845
10846
10847 \emph default
10848 ,
10849 \begin_inset space \thinspace{}
10850 \end_inset
10851
10852
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 1
10858 \end_layout
10859
10860 \end_inset
10861
10862 ] 段落を空のままにすると,\SpecialChar LaTeX
10863 出力が空になってしまうので,通常,\SpecialChar LyX
10864 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10865 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10866 まないある種の改行として使用することもあります.
10867 \end_layout
10868
10869 \begin_layout Description
10870 \begin_inset Flex Code
10871 status collapsed
10872
10873 \begin_layout Plain Layout
10874 LabelBottomsep
10875 \end_layout
10876
10877 \end_inset
10878
10879  [
10880 \begin_inset Flex Code
10881 status collapsed
10882
10883 \begin_layout Plain Layout
10884 浮動小数点型=0
10885 \end_layout
10886
10887 \end_inset
10888
10889 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10890 \begin_inset Flex Code
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 Top_Environment
10895 \end_layout
10896
10897 \end_inset
10898
10899 および
10900 \begin_inset Newline linebreak
10901 \end_inset
10902
10903
10904 \begin_inset Flex Code
10905 status collapsed
10906
10907 \begin_layout Plain Layout
10908 Centered_Top_Environment
10909 \end_layout
10910
10911 \end_inset
10912
10913 ).
10914 \end_layout
10915
10916 \begin_layout Description
10917 \begin_inset Flex Code
10918 status collapsed
10919
10920 \begin_layout Plain Layout
10921 LabelCounter
10922 \end_layout
10923
10924 \end_inset
10925
10926  [
10927 \begin_inset Flex Code
10928 status collapsed
10929
10930 \begin_layout Plain Layout
10931 文字列=""
10932 \end_layout
10933
10934 \end_inset
10935
10936 ] 自動連番に使われるカウンタ名(詳しくは第
10937 \begin_inset CommandInset ref
10938 LatexCommand ref
10939 reference "subsec:カウンタ"
10940
10941 \end_inset
10942
10943 節参照).カウンタがラベル中に表示されるようにするためには,
10944 \begin_inset Flex Code
10945 status collapsed
10946
10947 \begin_layout Plain Layout
10948 LabelString
10949 \end_layout
10950
10951 \end_inset
10952
10953 中で参照する必要があります.これは,少なくとも
10954 \begin_inset Flex Code
10955 status collapsed
10956
10957 \begin_layout Plain Layout
10958 Static
10959 \end_layout
10960
10961 \end_inset
10962
10963
10964 \begin_inset Flex Code
10965 status collapsed
10966
10967 \begin_layout Plain Layout
10968 Above
10969 \end_layout
10970
10971 \end_inset
10972
10973
10974 \begin_inset Flex Code
10975 status collapsed
10976
10977 \begin_layout Plain Layout
10978 Centered
10979 \end_layout
10980
10981 \end_inset
10982
10983 の各
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988 LabelType
10989 \end_layout
10990
10991 \end_inset
10992
10993 で動作します.
10994 \begin_inset Newline newline
10995 \end_inset
10996
10997 また,
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002 LabelType
11003 \end_layout
11004
11005 \end_inset
11006
11007
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 Enumerate
11013 \end_layout
11014
11015 \end_inset
11016
11017 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 LabelCounter myenum
11023 \end_layout
11024
11025 \end_inset
11026
11027 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11028 におけるのと同様,実際に使われるカウンタは,
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033 myenumi
11034 \end_layout
11035
11036 \end_inset
11037
11038
11039 \begin_inset Flex Code
11040 status collapsed
11041
11042 \begin_layout Plain Layout
11043 myenumii
11044 \end_layout
11045
11046 \end_inset
11047
11048
11049 \begin_inset Flex Code
11050 status collapsed
11051
11052 \begin_layout Plain Layout
11053 myenumii
11054 \end_layout
11055
11056 \end_inset
11057
11058
11059 \begin_inset Flex Code
11060 status collapsed
11061
11062 \begin_layout Plain Layout
11063 myenumiv
11064 \end_layout
11065
11066 \end_inset
11067
11068 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11069 \begin_inset Newline newline
11070 \end_inset
11071
11072 カウンタの詳細については,
11073 \begin_inset CommandInset ref
11074 LatexCommand ref
11075 reference "subsec:カウンタ"
11076
11077 \end_inset
11078
11079 をご覧ください.
11080 \end_layout
11081
11082 \begin_layout Description
11083 \begin_inset Flex Code
11084 status collapsed
11085
11086 \begin_layout Plain Layout
11087 LabelFont
11088 \end_layout
11089
11090 \end_inset
11091
11092  ラベルに使用されるフォント.
11093 \begin_inset CommandInset ref
11094 LatexCommand ref
11095 reference "subsec:フォント指定"
11096
11097 \end_inset
11098
11099 を参照.
11100 \end_layout
11101
11102 \begin_layout Description
11103 \begin_inset Flex Code
11104 status collapsed
11105
11106 \begin_layout Plain Layout
11107 LabelIndent
11108 \end_layout
11109
11110 \end_inset
11111
11112  [
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 文字列=""
11118 \end_layout
11119
11120 \end_inset
11121
11122 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11123 \end_layout
11124
11125 \begin_layout Description
11126 \begin_inset Flex Code
11127 status collapsed
11128
11129 \begin_layout Plain Layout
11130 LabelSep
11131 \end_layout
11132
11133 \end_inset
11134
11135  [
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140 文字列=""
11141 \end_layout
11142
11143 \end_inset
11144
11145 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11146 \end_layout
11147
11148 \begin_layout Description
11149 \begin_inset Flex Code
11150 status collapsed
11151
11152 \begin_layout Plain Layout
11153 LabelString
11154 \end_layout
11155
11156 \end_inset
11157
11158  [
11159 \begin_inset Flex Code
11160 status collapsed
11161
11162 \begin_layout Plain Layout
11163 文字列=""
11164 \end_layout
11165
11166 \end_inset
11167
11168
11169 \begin_inset Flex Code
11170 status collapsed
11171
11172 \begin_layout Plain Layout
11173 Static
11174 \end_layout
11175
11176 \end_inset
11177
11178 ラベル型でラベルに使用する文字列.
11179 \begin_inset Flex Code
11180 status collapsed
11181
11182 \begin_layout Plain Layout
11183 LabelCounter
11184 \end_layout
11185
11186 \end_inset
11187
11188 を設定している場合,
11189 \begin_inset CommandInset ref
11190 LatexCommand ref
11191 reference "subsec:カウンタ"
11192
11193 \end_inset
11194
11195 に述べられている特別な整形コマンドを含めることができます.
11196 \end_layout
11197
11198 \begin_layout Description
11199 \begin_inset Flex Code
11200 status collapsed
11201
11202 \begin_layout Plain Layout
11203 LabelStringAppendix
11204 \end_layout
11205
11206 \end_inset
11207
11208  [
11209 \begin_inset Flex Code
11210 status collapsed
11211
11212 \begin_layout Plain Layout
11213 文字列=""
11214 \end_layout
11215
11216 \end_inset
11217
11218 ] これは付録の中で
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 LabelString
11224 \end_layout
11225
11226 \end_inset
11227
11228 の代わりに用いられます.各
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 LabelString
11234 \end_layout
11235
11236 \end_inset
11237
11238 ステートメントは,
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 LabelStringAppendix
11244 \end_layout
11245
11246 \end_inset
11247
11248 をもリセットすることに注意してください.
11249 \end_layout
11250
11251 \begin_layout Description
11252 \begin_inset Flex Code
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256 LabelTag
11257 \end_layout
11258
11259 \end_inset
11260
11261  [FIXME] (XML型書式でのみ使用されます.)
11262 \end_layout
11263
11264 \begin_layout Description
11265 \begin_inset Flex Code
11266 status collapsed
11267
11268 \begin_layout Plain Layout
11269 LabelType
11270 \end_layout
11271
11272 \end_inset
11273
11274  [
11275 \begin_inset Flex Code
11276 status collapsed
11277
11278 \begin_layout Plain Layout
11279
11280 \emph on
11281 No_Label
11282 \emph default
11283 , Manual, Static, Above,
11284 \begin_inset Newline newline
11285 \end_inset
11286
11287 Centered, Sensitive, Enumerate,
11288 \begin_inset Newline newline
11289 \end_inset
11290
11291 Itemize, Bibliography
11292 \end_layout
11293
11294 \end_inset
11295
11296 ]
11297 \end_layout
11298
11299 \begin_deeper
11300 \begin_layout Description
11301 \begin_inset Flex Code
11302 status collapsed
11303
11304 \begin_layout Plain Layout
11305 Manual
11306 \end_layout
11307
11308 \end_inset
11309
11310  は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11311 \end_layout
11312
11313 \begin_layout Description
11314 \begin_inset Flex Code
11315 status collapsed
11316
11317 \begin_layout Plain Layout
11318 Static
11319 \end_layout
11320
11321 \end_inset
11322
11323  は,ラベルが
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 LabelString
11329 \end_layout
11330
11331 \end_inset
11332
11333 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11334 \begin_inset Flex Code
11335 status collapsed
11336
11337 \begin_layout Plain Layout
11338 LatexType
11339 \end_layout
11340
11341 \end_inset
11342
11343
11344 \begin_inset Flex Code
11345 status collapsed
11346
11347 \begin_layout Plain Layout
11348 Environment
11349 \end_layout
11350
11351 \end_inset
11352
11353 のときは,連続する同じ
11354 \begin_inset Flex Code
11355 status collapsed
11356
11357 \begin_layout Plain Layout
11358 Style
11359 \end_layout
11360
11361 \end_inset
11362
11363 の段落中,最初の段落にのみ表示されます.
11364 \end_layout
11365
11366 \begin_layout Description
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371 Above
11372 \end_layout
11373
11374 \end_inset
11375
11376 および
11377 \begin_inset Flex Code
11378 status collapsed
11379
11380 \begin_layout Plain Layout
11381 Centered
11382 \end_layout
11383
11384 \end_inset
11385
11386  は,
11387 \begin_inset Flex Code
11388 status collapsed
11389
11390 \begin_layout Plain Layout
11391 Static
11392 \end_layout
11393
11394 \end_inset
11395
11396 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11397 \end_layout
11398
11399 \begin_layout Description
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 Sensitive
11405 \end_layout
11406
11407 \end_inset
11408
11409  はキャプションラベルの「図」や「表」の特別な場合です.
11410 \begin_inset Flex Code
11411 status collapsed
11412
11413 \begin_layout Plain Layout
11414 Sensitive
11415 \end_layout
11416
11417 \end_inset
11418
11419 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11420 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11421 \begin_inset Flex Code
11422 status collapsed
11423
11424 \begin_layout Plain Layout
11425 LabelString
11426 \end_layout
11427
11428 \end_inset
11429
11430 は「意味を成しません!」と表示されます.
11431 \end_layout
11432
11433 \begin_layout Description
11434 \begin_inset Flex Code
11435 status collapsed
11436
11437 \begin_layout Plain Layout
11438 Enumerate
11439 \end_layout
11440
11441 \end_inset
11442
11443  は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11444 す.
11445 \end_layout
11446
11447 \begin_layout Description
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 Itemize
11453 \end_layout
11454
11455 \end_inset
11456
11457  は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11458 \end_layout
11459
11460 \begin_layout Description
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 Bibliography
11466 \end_layout
11467
11468 \end_inset
11469
11470  は,
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 LatexType BibEnvironment
11476 \end_layout
11477
11478 \end_inset
11479
11480 とともにのみ使用されます.
11481 \end_layout
11482
11483 \end_deeper
11484 \begin_layout Description
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 LangPreamble
11490 \end_layout
11491
11492 \end_inset
11493
11494  これは,この様式で既に出現した
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 LangPreamble
11500 \end_layout
11501
11502 \end_inset
11503
11504 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11505 \begin_inset CommandInset ref
11506 LatexCommand ref
11507 reference "subsec:段落様式の国際化"
11508
11509 \end_inset
11510
11511 をご覧ください.
11512 \end_layout
11513
11514 \begin_layout Description
11515 \begin_inset Flex Code
11516 status collapsed
11517
11518 \begin_layout Plain Layout
11519 LatexName
11520 \end_layout
11521
11522 \end_inset
11523
11524  [
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 <名称>
11530 \end_layout
11531
11532 \end_inset
11533
11534 ] 対応する\SpecialChar LaTeX
11535 の名称です.環境名かコマンド名を指します.
11536 \end_layout
11537
11538 \begin_layout Description
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 LatexParam
11544 \end_layout
11545
11546 \end_inset
11547
11548  [
11549 \begin_inset Flex Code
11550 status collapsed
11551
11552 \begin_layout Plain Layout
11553 <パラメータ>
11554 \end_layout
11555
11556 \end_inset
11557
11558 ] 対応する
11559 \begin_inset Flex Code
11560 status collapsed
11561
11562 \begin_layout Plain Layout
11563 LatexName
11564 \end_layout
11565
11566 \end_inset
11567
11568 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11569 内部から変更することはできません(変更可能なパラメータには
11570 \begin_inset Flex Code
11571 status collapsed
11572
11573 \begin_layout Plain Layout
11574 Argument
11575 \end_layout
11576
11577 \end_inset
11578
11579 を使用してください).これは,全ての\SpecialChar LaTeX
11580  
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 Argument
11586 \end_layout
11587
11588 \end_inset
11589
11590 の後にそのままの形で出力されます.
11591 \end_layout
11592
11593 \begin_layout Description
11594 \begin_inset Flex Code
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598 LatexType
11599 \end_layout
11600
11601 \end_inset
11602
11603  [
11604 \begin_inset Flex Code
11605 status collapsed
11606
11607 \begin_layout Plain Layout
11608
11609 \emph on
11610 Paragraph
11611 \emph default
11612 , Command, Environment, Item_Environment,
11613 \begin_inset Newline newline
11614 \end_inset
11615
11616 List_Environment, Bib_Environment
11617 \end_layout
11618
11619 \end_inset
11620
11621 ] レイアウトがどのように\SpecialChar LaTeX
11622 に変換されるべきかを示します
11623 \begin_inset Foot
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 これらのルールはSGMLクラスにも適用されるので,
11628 \begin_inset Flex Code
11629 status collapsed
11630
11631 \begin_layout Plain Layout
11632 LatexType
11633 \end_layout
11634
11635 \end_inset
11636
11637 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11638 \begin_inset Flex Code
11639 status collapsed
11640
11641 \begin_layout Plain Layout
11642 db_*.inc
11643 \end_layout
11644
11645 \end_inset
11646
11647 )を見てください.
11648 \end_layout
11649
11650 \end_inset
11651
11652
11653 \end_layout
11654
11655 \begin_deeper
11656 \begin_layout Description
11657 \begin_inset Flex Code
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661 Paragraph
11662 \end_layout
11663
11664 \end_inset
11665
11666  は,何も特別なことは意味しません.
11667 \end_layout
11668
11669 \begin_layout Description
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 Command
11675 \end_layout
11676
11677 \end_inset
11678
11679  は,
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684
11685 \backslash
11686
11687 \emph on
11688 LatexName
11689 \emph default
11690 {\SpecialChar ldots
11691 }
11692 \end_layout
11693
11694 \end_inset
11695
11696 を意味します.
11697 \end_layout
11698
11699 \begin_layout Description
11700 \begin_inset Flex Code
11701 status collapsed
11702
11703 \begin_layout Plain Layout
11704 Environment
11705 \end_layout
11706
11707 \end_inset
11708
11709  は,
11710 \begin_inset Flex Code
11711 status collapsed
11712
11713 \begin_layout Plain Layout
11714
11715 \backslash
11716 begin{
11717 \emph on
11718 LatexName
11719 \emph default
11720 }\SpecialChar ldots
11721
11722 \backslash
11723 end{
11724 \emph on
11725 LatexName
11726 \emph default
11727 }
11728 \end_layout
11729
11730 \end_inset
11731
11732 を意味します.
11733 \end_layout
11734
11735 \begin_layout Description
11736 \begin_inset Flex Code
11737 status collapsed
11738
11739 \begin_layout Plain Layout
11740 Item_Environment
11741 \end_layout
11742
11743 \end_inset
11744
11745  は
11746 \begin_inset Flex Code
11747 status collapsed
11748
11749 \begin_layout Plain Layout
11750 Environment
11751 \end_layout
11752
11753 \end_inset
11754
11755 と同じですが,
11756 \begin_inset Flex Code
11757 status collapsed
11758
11759 \begin_layout Plain Layout
11760
11761 \backslash
11762 item
11763 \end_layout
11764
11765 \end_inset
11766
11767 がこの環境のすべての段落に付けられるところだけが異なっています.
11768 \end_layout
11769
11770 \begin_layout Description
11771 \begin_inset Flex Code
11772 status collapsed
11773
11774 \begin_layout Plain Layout
11775 List_Environment
11776 \end_layout
11777
11778 \end_inset
11779
11780  は
11781 \begin_inset Flex Code
11782 status collapsed
11783
11784 \begin_layout Plain Layout
11785 Item_Environment
11786 \end_layout
11787
11788 \end_inset
11789
11790 と同じですが,
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 LabelWidthString
11796 \end_layout
11797
11798 \end_inset
11799
11800 が環境の引数として渡されるところだけが異なっています.
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805 LabelWidthString
11806 \end_layout
11807
11808 \end_inset
11809
11810 は,
11811 \begin_inset Flex MenuItem
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 編集\SpecialChar menuseparator
11816 段落設定
11817 \end_layout
11818
11819 \end_inset
11820
11821 ダイアログで定義することができます.
11822 \end_layout
11823
11824 \begin_layout Description
11825 \begin_inset Flex Code
11826 status collapsed
11827
11828 \begin_layout Plain Layout
11829 Bib_Environment
11830 \end_layout
11831
11832 \end_inset
11833
11834  は
11835 \begin_inset Flex Code
11836 status collapsed
11837
11838 \begin_layout Plain Layout
11839 Environment
11840 \end_layout
11841
11842 \end_inset
11843
11844 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11845 \begin_inset Newline newline
11846 \end_inset
11847
11848
11849 \begin_inset Flex Code
11850 status collapsed
11851
11852 \begin_layout Plain Layout
11853
11854 \backslash
11855 begin{thebibliography}{99}
11856 \end_layout
11857
11858 \end_inset
11859
11860
11861 \begin_inset Newline newline
11862 \end_inset
11863
11864 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11865 \end_layout
11866
11867 \begin_layout Standard
11868 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11869 出力は,\SpecialChar LaTeX
11870 型に依存して
11871 \end_layout
11872
11873 \begin_layout LyX-Code
11874
11875 \backslash
11876 LatexName[LatexParam]{\SpecialChar ldots
11877 }
11878 \end_layout
11879
11880 \begin_layout Standard
11881 のようになるか,
11882 \end_layout
11883
11884 \begin_layout LyX-Code
11885
11886 \backslash
11887 begin{LatexName}[LatexParam] \SpecialChar ldots
11888  
11889 \backslash
11890 end{LatexName}.
11891 \end_layout
11892
11893 \begin_layout Standard
11894 となります.
11895 \end_layout
11896
11897 \end_deeper
11898 \begin_layout Description
11899 \begin_inset Flex Code
11900 status collapsed
11901
11902 \begin_layout Plain Layout
11903 LeftDelim
11904 \end_layout
11905
11906 \end_inset
11907
11908  [
11909 \begin_inset Flex Code
11910 status collapsed
11911
11912 \begin_layout Plain Layout
11913 文字列
11914 \end_layout
11915
11916 \end_inset
11917
11918 ] 様式の内容の最初に置かれる文字列.出力中の改行は
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 <br/>
11924 \end_layout
11925
11926 \end_inset
11927
11928 で指示できます.
11929 \end_layout
11930
11931 \begin_layout Description
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 LeftMargin
11937 \end_layout
11938
11939 \end_inset
11940
11941  [
11942 \begin_inset Flex Code
11943 status collapsed
11944
11945 \begin_layout Plain Layout
11946 文字列=""
11947 \end_layout
11948
11949 \end_inset
11950
11951 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
11952 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11953 \end_inset
11954
11955 をかけて加えられます.このパラメータは,
11956 \begin_inset Flex Code
11957 status collapsed
11958
11959 \begin_layout Plain Layout
11960 Margin
11961 \end_layout
11962
11963 \end_inset
11964
11965
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 Manual
11971 \end_layout
11972
11973 \end_inset
11974
11975 あるいは
11976 \begin_inset Flex Code
11977 status collapsed
11978
11979 \begin_layout Plain Layout
11980 Dynamic
11981 \end_layout
11982
11983 \end_inset
11984
11985 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
11986 \begin_inset Newline newline
11987 \end_inset
11988
11989 たとえば「
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 MM
11995 \end_layout
11996
11997 \end_inset
11998
11999 」と指定すると,段落を通常フォントの「
12000 \begin_inset Flex Code
12001 status collapsed
12002
12003 \begin_layout Plain Layout
12004 MM
12005 \end_layout
12006
12007 \end_inset
12008
12009 」の幅だけ行頭下げを行います.文字列の前に「
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014 -
12015 \end_layout
12016
12017 \end_inset
12018
12019 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12020 \end_layout
12021
12022 \begin_layout Description
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 Margin
12028 \end_layout
12029
12030 \end_inset
12031
12032  [
12033 \begin_inset Flex Code
12034 status collapsed
12035
12036 \begin_layout Plain Layout
12037
12038 \emph on
12039 Static
12040 \emph default
12041 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12042 \end_layout
12043
12044 \end_inset
12045
12046
12047 \begin_inset Newline newline
12048 \end_inset
12049
12050 このレイアウトの左余白の種類です.
12051 \end_layout
12052
12053 \begin_deeper
12054 \begin_layout Description
12055 \begin_inset Flex Code
12056 status collapsed
12057
12058 \begin_layout Plain Layout
12059 Static
12060 \end_layout
12061
12062 \end_inset
12063
12064  は固定余白を示します.
12065 \end_layout
12066
12067 \begin_layout Description
12068 \begin_inset Flex Code
12069 status collapsed
12070
12071 \begin_layout Plain Layout
12072 Manual
12073 \end_layout
12074
12075 \end_inset
12076
12077  は,左余白が
12078 \begin_inset Flex MenuItem
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 編集\SpecialChar menuseparator
12083 段落設定
12084 \end_layout
12085
12086 \end_inset
12087
12088 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12089 \end_layout
12090
12091 \begin_layout Description
12092 \begin_inset Flex Code
12093 status collapsed
12094
12095 \begin_layout Plain Layout
12096 Dynamic
12097 \end_layout
12098
12099 \end_inset
12100
12101  は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12102  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12103 \end_layout
12104
12105 \begin_layout Description
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110 First_Dynamic
12111 \end_layout
12112
12113 \end_inset
12114
12115  は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12116 \end_layout
12117
12118 \begin_layout Description
12119 \begin_inset Flex Code
12120 status collapsed
12121
12122 \begin_layout Plain Layout
12123 Right_Address_Box
12124 \end_layout
12125
12126 \end_inset
12127
12128  は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12129 \end_layout
12130
12131 \end_deeper
12132 \begin_layout Description
12133 \begin_inset Flex Code
12134 status collapsed
12135
12136 \begin_layout Plain Layout
12137 NeedProtect
12138 \end_layout
12139
12140 \end_inset
12141
12142  [
12143 \begin_inset Flex Code
12144 status collapsed
12145
12146 \begin_layout Plain Layout
12147
12148 \emph on
12149 0
12150 \end_layout
12151
12152 \end_inset
12153
12154 ,
12155 \begin_inset space \thinspace{}
12156 \end_inset
12157
12158
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 1
12164 \end_layout
12165
12166 \end_inset
12167
12168 ] このレイアウト中の脆弱なコマンドが
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173
12174 \backslash
12175 protect
12176 \end_layout
12177
12178 \end_inset
12179
12180 されるべきか否か(註:これはこのコマンド自体が
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185
12186 \backslash
12187 protect
12188 \end_layout
12189
12190 \end_inset
12191
12192 されるべきかでは
12193 \emph on
12194 ありません
12195 \emph default
12196 ).
12197 \end_layout
12198
12199 \begin_layout Description
12200 \begin_inset Flex Code
12201 status collapsed
12202
12203 \begin_layout Plain Layout
12204 Newline
12205 \end_layout
12206
12207 \end_inset
12208
12209  [
12210 \begin_inset Flex Code
12211 status collapsed
12212
12213 \begin_layout Plain Layout
12214 0
12215 \end_layout
12216
12217 \end_inset
12218
12219 ,
12220 \begin_inset space \thinspace{}
12221 \end_inset
12222
12223
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228
12229 \emph on
12230 1
12231 \end_layout
12232
12233 \end_inset
12234
12235 ] 新規行を\SpecialChar LaTeX
12236 の新規行(
12237 \begin_inset Flex Code
12238 status collapsed
12239
12240 \begin_layout Plain Layout
12241
12242 \backslash
12243
12244 \backslash
12245
12246 \end_layout
12247
12248 \end_inset
12249
12250 )に変換するか否か.\SpecialChar LyX
12251 中で\SpecialChar LaTeX
12252 編集をやりやすくするために,変換は無効にすることができます.
12253 \end_layout
12254
12255 \begin_layout Description
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260 NextNoIndent
12261 \end_layout
12262
12263 \end_inset
12264
12265  [
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270
12271 \emph on
12272 0
12273 \end_layout
12274
12275 \end_inset
12276
12277 ,
12278 \begin_inset space \thinspace{}
12279 \end_inset
12280
12281
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286 1
12287 \end_layout
12288
12289 \end_inset
12290
12291 ] 真に設定すると,
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296 DefaultStyle
12297 \end_layout
12298
12299 \end_inset
12300
12301  (通常
12302 \begin_inset Flex Code
12303 status collapsed
12304
12305 \begin_layout Plain Layout
12306 Standard
12307 \end_layout
12308
12309 \end_inset
12310
12311 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12312 \end_layout
12313
12314 \begin_layout Description
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 ObsoletedBy
12320 \end_layout
12321
12322 \end_inset
12323
12324  [
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 <名称>
12330 \end_layout
12331
12332 \end_inset
12333
12334 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12335 \end_layout
12336
12337 \begin_layout Description
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342 ParagraphGroup
12343 \end_layout
12344
12345 \end_inset
12346
12347  [
12348 \begin_inset Flex Code
12349 status collapsed
12350
12351 \begin_layout Plain Layout
12352 0
12353 \end_layout
12354
12355 \end_inset
12356
12357 ,
12358 \begin_inset space \thinspace{}
12359 \end_inset
12360
12361
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 1
12367 \end_layout
12368
12369 \end_inset
12370
12371 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12372 \begin_inset Flex Code
12373 status collapsed
12374
12375 \begin_layout Plain Layout
12376 GuiLabel
12377 \end_layout
12378
12379 \end_inset
12380
12381 が一度だけ出力される効果があります.既定では,
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 LaTeXType
12387 \end_layout
12388
12389 \end_inset
12390
12391
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 Environment
12397 \end_layout
12398
12399 \end_inset
12400
12401 および
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 Bib_Environment
12407 \end_layout
12408
12409 \end_inset
12410
12411  については有効であり,他の型すべてについて無効になっています.
12412 \end_layout
12413
12414 \begin_layout Description
12415 \begin_inset Flex Code
12416 status collapsed
12417
12418 \begin_layout Plain Layout
12419 ParbreakIsNewline
12420 \end_layout
12421
12422 \end_inset
12423
12424  [
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429
12430 \emph on
12431 0
12432 \end_layout
12433
12434 \end_inset
12435
12436 ,
12437 \begin_inset space \thinspace{}
12438 \end_inset
12439
12440
12441 \begin_inset Flex Code
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 1
12446 \end_layout
12447
12448 \end_inset
12449
12450 ] \SpecialChar LaTeX
12451 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 PassThru 1
12457 \end_layout
12458
12459 \end_inset
12460
12461 と併用すれば,(\SpecialChar TeX
12462 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12463 \end_layout
12464
12465 \begin_layout Description
12466 \begin_inset Flex Code
12467 status collapsed
12468
12469 \begin_layout Plain Layout
12470 ParIndent
12471 \end_layout
12472
12473 \end_inset
12474
12475  [
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 文字列=""
12481 \end_layout
12482
12483 \end_inset
12484
12485 ] 段落の最初の行の行頭下げ.レイアウトによっては
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490 Parindent
12491 \end_layout
12492
12493 \end_inset
12494
12495 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 NextNoIndent
12501 \end_layout
12502
12503 \end_inset
12504
12505 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510 Parindent
12511 \end_layout
12512
12513 \end_inset
12514
12515 ではなく,この環境の
12516 \begin_inset Flex Code
12517 status collapsed
12518
12519 \begin_layout Plain Layout
12520 Parindent
12521 \end_layout
12522
12523 \end_inset
12524
12525 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12526 \end_layout
12527
12528 \begin_layout Description
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 ParSep
12534 \end_layout
12535
12536 \end_inset
12537
12538  [
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 浮動小数点型=0
12544 \end_layout
12545
12546 \end_inset
12547
12548 ] このレイアウトの2段落間の垂直余白.
12549 \end_layout
12550
12551 \begin_layout Description
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 Parskip
12557 \end_layout
12558
12559 \end_inset
12560
12561  [
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 浮動小数点型=0
12567 \end_layout
12568
12569 \end_inset
12570
12571 ] \SpecialChar LyX
12572 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12573 択した際には,\SpecialChar LaTeX
12574 型「段落」レイアウトの
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 ParIndent
12580 \end_layout
12581
12582 \end_inset
12583
12584 は無視され,すべての段落はこの
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 Parskip
12590 \end_layout
12591
12592 \end_inset
12593
12594 引数分だけ引き離されます.垂直余白は,
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 DefaultHeight
12600 \end_layout
12601
12602 \end_inset
12603
12604 を標準フォントでの1行の高さとすると,
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 Parskipの値
12610 \end_layout
12611
12612 \end_inset
12613
12614
12615 \begin_inset Formula $\times$
12616 \end_inset
12617
12618
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 DefaultHeight
12624 \end_layout
12625
12626 \end_inset
12627
12628 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12629 \end_layout
12630
12631 \begin_layout Description
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 PassThru
12637 \end_layout
12638
12639 \end_inset
12640
12641  [
12642 \emph on
12643
12644 \begin_inset Flex Code
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648 0
12649 \end_layout
12650
12651 \end_inset
12652
12653
12654 \emph default
12655 ,
12656 \begin_inset space \thinspace{}
12657 \end_inset
12658
12659
12660 \begin_inset Flex Code
12661 status collapsed
12662
12663 \begin_layout Plain Layout
12664 1
12665 \end_layout
12666
12667 \end_inset
12668
12669 ] この段落の内容が,\SpecialChar LaTeX
12670 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12671 \end_layout
12672
12673 \begin_layout Description
12674 \begin_inset Flex Code
12675 status collapsed
12676
12677 \begin_layout Plain Layout
12678 PassThruChars
12679 \end_layout
12680
12681 \end_inset
12682
12683  [
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688 文字列
12689 \end_layout
12690
12691 \end_inset
12692
12693 ]
12694 \family typewriter
12695  
12696 \family default
12697 \SpecialChar LaTeX
12698 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12699 \end_layout
12700
12701 \begin_layout Description
12702 \begin_inset Flex Code
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706 Preamble
12707 \end_layout
12708
12709 \end_inset
12710
12711  この様式が使用されたときに,\SpecialChar LaTeX
12712 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 EndPreamble
12718 \end_layout
12719
12720 \end_inset
12721
12722 」で閉じる必要があります.
12723 \end_layout
12724
12725 \begin_layout Description
12726 \begin_inset Flex Code
12727 status collapsed
12728
12729 \begin_layout Plain Layout
12730 RefPrefix
12731 \end_layout
12732
12733 \end_inset
12734
12735  [
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740 文字列
12741 \end_layout
12742
12743 \end_inset
12744
12745 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12746 \end_layout
12747
12748 \begin_layout Description
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753 Requires
12754 \end_layout
12755
12756 \end_inset
12757
12758  [
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763 文字列
12764 \end_layout
12765
12766 \end_inset
12767
12768 ] この様式が機能
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 文字列
12774 \end_layout
12775
12776 \end_inset
12777
12778 を必要とするかどうか(機能詳細については,第
12779 \begin_inset CommandInset ref
12780 LatexCommand ref
12781 reference "chap:関数一覧"
12782
12783 \end_inset
12784
12785 節参照).特定のオプションをとるパッケージを要求する場合,
12786 \begin_inset Flex Code
12787 status collapsed
12788
12789 \begin_layout Plain Layout
12790 PackageOptions
12791 \end_layout
12792
12793 \end_inset
12794
12795 を汎用テキストクラスパラメータとして追加して使うことができます(
12796 \begin_inset CommandInset ref
12797 LatexCommand ref
12798 reference "subsec:汎用テキストクラスパラメータ"
12799
12800 \end_inset
12801
12802 を参照).
12803 \end_layout
12804
12805 \begin_layout Description
12806 \begin_inset Flex Code
12807 status collapsed
12808
12809 \begin_layout Plain Layout
12810 ResetArgs
12811 \end_layout
12812
12813 \end_inset
12814
12815  [
12816 \begin_inset Flex Code
12817 status collapsed
12818
12819 \begin_layout Plain Layout
12820
12821 \emph on
12822 0
12823 \end_layout
12824
12825 \end_inset
12826
12827 ,
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 1
12833 \end_layout
12834
12835 \end_inset
12836
12837 ] (
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 Argument
12843 \end_layout
12844
12845 \end_inset
12846
12847 タグで定義された)この様式の\SpecialChar LaTeX
12848 引数をリセットします.これは,様式を
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 CopyStyle
12854 \end_layout
12855
12856 \end_inset
12857
12858 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12859 \end_layout
12860
12861 \begin_layout Description
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 RightDelim
12867 \end_layout
12868
12869 \end_inset
12870
12871  [
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 文字列
12877 \end_layout
12878
12879 \end_inset
12880
12881 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 <br/>
12887 \end_layout
12888
12889 \end_inset
12890
12891 で指示できます.
12892 \end_layout
12893
12894 \begin_layout Description
12895 \begin_inset Flex Code
12896 status collapsed
12897
12898 \begin_layout Plain Layout
12899 RightMargin
12900 \end_layout
12901
12902 \end_inset
12903
12904  [
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909 文字列=""
12910 \end_layout
12911
12912 \end_inset
12913
12914
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 LeftMargin
12920 \end_layout
12921
12922 \end_inset
12923
12924 に同様.
12925 \end_layout
12926
12927 \begin_layout Description
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 Spacing
12933 \end_layout
12934
12935 \end_inset
12936
12937  [
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942
12943 \emph on
12944 single
12945 \end_layout
12946
12947 \end_inset
12948
12949
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 onehalf
12955 \end_layout
12956
12957 \end_inset
12958
12959
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 double
12965 \end_layout
12966
12967 \end_inset
12968
12969
12970 \begin_inset Flex Code
12971 status collapsed
12972
12973 \begin_layout Plain Layout
12974 other
12975 \begin_inset space ~
12976 \end_inset
12977
12978 <
12979 \emph on
12980
12981 \emph default
12982 >
12983 \end_layout
12984
12985 \end_inset
12986
12987 ]
12988 \lang english
12989  
12990 \lang japanese
12991 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
12992 \begin_inset Flex Code
12993 status collapsed
12994
12995 \begin_layout Plain Layout
12996 single
12997 \end_layout
12998
12999 \end_inset
13000
13001
13002 \begin_inset Flex Code
13003 status collapsed
13004
13005 \begin_layout Plain Layout
13006 onehalf
13007 \end_layout
13008
13009 \end_inset
13010
13011
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 double
13017 \end_layout
13018
13019 \end_inset
13020
13021 は,それぞれ乗数1・1.25・1.667に対応します.引数
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 other
13027 \end_layout
13028
13029 \end_inset
13030
13031 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13032 \begin_inset Flex Code
13033 status collapsed
13034
13035 \begin_layout Plain Layout
13036 Spacing
13037 \end_layout
13038
13039 \end_inset
13040
13041 は,\SpecialChar LaTeX
13042 パッケージ
13043 \begin_inset Flex Code
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047 setspace
13048 \end_layout
13049
13050 \end_inset
13051
13052 パッケージを使用した,限定的な\SpecialChar LaTeX
13053 コードを生成することを意味することにご注意ください.
13054 \end_layout
13055
13056 \begin_layout Description
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 Spellcheck
13062 \end_layout
13063
13064 \end_inset
13065
13066  [
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071 0
13072 \end_layout
13073
13074 \end_inset
13075
13076 ,
13077 \begin_inset space \thinspace{}
13078 \end_inset
13079
13080
13081 \begin_inset Flex Code
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 1
13086 \end_layout
13087
13088 \end_inset
13089
13090 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13091 \end_layout
13092
13093 \begin_layout Description
13094 \begin_inset Flex Code
13095 status collapsed
13096
13097 \begin_layout Plain Layout
13098 TextFont
13099 \end_layout
13100
13101 \end_inset
13102
13103  本文に使うフォント.
13104 \begin_inset CommandInset ref
13105 LatexCommand ref
13106 reference "subsec:フォント指定"
13107
13108 \end_inset
13109
13110 参照.
13111 \end_layout
13112
13113 \begin_layout Description
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118 TocLevel
13119 \end_layout
13120
13121 \end_inset
13122
13123  [
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 整数型=3
13129 \end_layout
13130
13131 \end_inset
13132
13133 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13134 \end_layout
13135
13136 \begin_layout Description
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 ToggleIndent
13142 \end_layout
13143
13144 \end_inset
13145
13146  [
13147 \emph on
13148
13149 \begin_inset Flex Code
13150 status collapsed
13151
13152 \begin_layout Plain Layout
13153 default
13154 \end_layout
13155
13156 \end_inset
13157
13158
13159 \emph default
13160
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165 always
13166 \end_layout
13167
13168 \end_inset
13169
13170
13171 \begin_inset Flex Code
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175 never
13176 \end_layout
13177
13178 \end_inset
13179
13180 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13181 \begin_inset Flex Code
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185 default
13186 \end_layout
13187
13188 \end_inset
13189
13190 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195 always
13196 \end_layout
13197
13198 \end_inset
13199
13200 は,文書設定にかかわらず変更することができ,
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205 never
13206 \end_layout
13207
13208 \end_inset
13209
13210 は,どのような場合でも変更することができません.
13211 \end_layout
13212
13213 \begin_layout Description
13214 \begin_inset Flex Code
13215 status collapsed
13216
13217 \begin_layout Plain Layout
13218 TopSep
13219 \end_layout
13220
13221 \end_inset
13222
13223  [
13224 \begin_inset Flex Code
13225 status collapsed
13226
13227 \begin_layout Plain Layout
13228 浮動小数点型=0
13229 \end_layout
13230
13231 \end_inset
13232
13233 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13234 の最大値がとられます.
13235 \end_layout
13236
13237 \begin_layout Subsection
13238 段落様式の国際化
13239 \begin_inset CommandInset label
13240 LatexCommand label
13241 name "subsec:段落様式の国際化"
13242
13243 \end_inset
13244
13245
13246 \end_layout
13247
13248 \begin_layout Standard
13249 \SpecialChar LyX
13250 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13251 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13252 \lang french
13253 Théorème
13254 \lang japanese
13255  1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13256 \end_layout
13257
13258 \begin_layout Standard
13259 もし
13260 \begin_inset Flex MenuItem
13261 status collapsed
13262
13263 \begin_layout Plain Layout
13264 Style
13265 \end_layout
13266
13267 \end_inset
13268
13269 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13270 \begin_inset Flex MenuItem
13271 status collapsed
13272
13273 \begin_layout Plain Layout
13274 LangPreamble
13275 \end_layout
13276
13277 \end_inset
13278
13279
13280 \begin_inset Flex MenuItem
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 BabelPreamble
13285 \end_layout
13286
13287 \end_inset
13288
13289 を使用することができます.以下の抜粋(
13290 \begin_inset Flex MenuItem
13291 status collapsed
13292
13293 \begin_layout Plain Layout
13294 theorems-ams.inc
13295 \end_layout
13296
13297 \end_inset
13298
13299 より)は,これがどう動作するかを示すものです.
13300 \end_layout
13301
13302 \begin_layout LyX-Code
13303 Preamble
13304 \end_layout
13305
13306 \begin_deeper
13307 \begin_layout LyX-Code
13308   
13309 \backslash
13310 theoremstyle{remark}
13311 \end_layout
13312
13313 \begin_layout LyX-Code
13314   
13315 \backslash
13316 newtheorem{claim}[thm]{
13317 \backslash
13318 protect
13319 \backslash
13320 claimname}
13321 \end_layout
13322
13323 \begin_layout LyX-Code
13324 EndPreamble
13325 \end_layout
13326
13327 \begin_layout LyX-Code
13328 LangPreamble
13329 \end_layout
13330
13331 \begin_layout LyX-Code
13332   
13333 \backslash
13334 providecommand{
13335 \backslash
13336 claimname}{_(Claim)}
13337 \end_layout
13338
13339 \begin_layout LyX-Code
13340 EndLangPreamble
13341 \end_layout
13342
13343 \begin_layout LyX-Code
13344 BabelPreamble
13345 \end_layout
13346
13347 \begin_layout LyX-Code
13348     
13349 \backslash
13350 addto
13351 \backslash
13352 captions$$lang{
13353 \backslash
13354 renewcommand{
13355 \backslash
13356 claimname}{_(Claim)}}
13357 \end_layout
13358
13359 \begin_layout LyX-Code
13360 EndBabelPreamble
13361 \end_layout
13362
13363 \end_deeper
13364 \begin_layout Standard
13365 原則として,
13366 \begin_inset Flex MenuItem
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370 LangPreamble
13371 \end_layout
13372
13373 \end_inset
13374
13375
13376 \begin_inset Flex MenuItem
13377 status collapsed
13378
13379 \begin_layout Plain Layout
13380 BabelPreamble
13381 \end_layout
13382
13383 \end_inset
13384
13385 タグ内には,有効な\SpecialChar LaTeX
13386 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13387 は,\SpecialChar LaTeX
13388 コマンド
13389 \begin_inset Flex Code
13390 status collapsed
13391
13392 \begin_layout Plain Layout
13393
13394 \backslash
13395 claimname
13396 \end_layout
13397
13398 \end_inset
13399
13400 とその
13401 \begin_inset Flex Code
13402 status collapsed
13403
13404 \begin_layout Plain Layout
13405
13406 \backslash
13407 newtheorem
13408 \end_layout
13409
13410 \end_inset
13411
13412 中での用い方です.
13413 \end_layout
13414
13415 \begin_layout Standard
13416 \begin_inset Flex Code
13417 status collapsed
13418
13419 \begin_layout Plain Layout
13420 LangPreamble
13421 \end_layout
13422
13423 \end_inset
13424
13425 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13426 \begin_inset Flex Code
13427 status collapsed
13428
13429 \begin_layout Plain Layout
13430 Preamble
13431 \end_layout
13432
13433 \end_inset
13434
13435 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440 _()
13441 \end_layout
13442
13443 \end_inset
13444
13445 が使用されていることです.これは,\SpecialChar LyX
13446 が\SpecialChar LaTeX
13447 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13448 \end_layout
13449
13450 \begin_layout Standard
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 BabelPreamble
13456 \end_layout
13457
13458 \end_inset
13459
13460 タグは,複数言語文書をサポートし,
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 babel
13466 \end_layout
13467
13468 \end_inset
13469
13470 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13471 の場合には,
13472 \begin_inset Flex Code
13473 status collapsed
13474
13475 \begin_layout Plain Layout
13476 _()
13477 \end_layout
13478
13479 \end_inset
13480
13481 の引数は,その当該言語への翻訳で置き換えられ,
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486 $$lang
13487 \end_layout
13488
13489 \end_inset
13490
13491 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13492 \end_layout
13493
13494 \begin_layout Standard
13495 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13496 \end_layout
13497
13498 \begin_layout LyX-Code
13499
13500 \backslash
13501 addto
13502 \backslash
13503 captionsfrench{
13504 \backslash
13505 renewcommand{
13506 \backslash
13507 claimname}{Affirmation}}
13508 \begin_inset Newline newline
13509 \end_inset
13510
13511
13512 \backslash
13513 addto
13514 \backslash
13515 captionsngerman{
13516 \backslash
13517 renewcommand{
13518 \backslash
13519 claimname}{Behauptung}}
13520 \begin_inset Newline newline
13521 \end_inset
13522
13523
13524 \backslash
13525 providecommand{
13526 \backslash
13527 claimname}{Behauptung}
13528 \end_layout
13529
13530 \begin_layout Standard
13531 それから,\SpecialChar LaTeX
13532
13533 \begin_inset Flex Code
13534 status collapsed
13535
13536 \begin_layout Plain Layout
13537 babel
13538 \end_layout
13539
13540 \end_inset
13541
13542 は協力して,出力に正しい文字列を生成します.
13543 \end_layout
13544
13545 \begin_layout Standard
13546 ここで注意しておくべき一つの重要な点は,翻訳は,
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 layouttranslations
13552 \end_layout
13553
13554 \end_inset
13555
13556 ファイルを通じて,\SpecialChar LyX
13557 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13558 \begin_inset Flex Code
13559 status collapsed
13560
13561 \begin_layout Plain Layout
13562 layouttranslations
13563 \end_layout
13564
13565 \end_inset
13566
13567 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13568 の国際化ルーチンでは取り扱われないので,
13569 \begin_inset Flex MenuItem
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 LangPreamble
13574 \end_layout
13575
13576 \end_inset
13577
13578
13579 \begin_inset Flex MenuItem
13580 status collapsed
13581
13582 \begin_layout Plain Layout
13583 BabelPreamble
13584 \end_layout
13585
13586 \end_inset
13587
13588 は,事実上,\SpecialChar LyX
13589 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13590 に同梱させようとい
13591 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13592 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13593 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13594 \end_layout
13595
13596 \begin_layout Subsection
13597 フロート
13598 \begin_inset CommandInset label
13599 LatexCommand label
13600 name "subsec:フロート"
13601
13602 \end_inset
13603
13604
13605 \end_layout
13606
13607 \begin_layout Standard
13608 \SpecialChar LyX
13609 第1.3.0版以来,テキストクラス自体の中でフロート(
13610 \begin_inset Flex MenuItem
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614 figure
13615 \end_layout
13616
13617 \end_inset
13618
13619
13620 \begin_inset Flex MenuItem
13621 status collapsed
13622
13623 \begin_layout Plain Layout
13624 table
13625 \end_layout
13626
13627 \end_inset
13628
13629 ・\SpecialChar ldots
13630 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13631 \begin_inset Flex Code
13632 status collapsed
13633
13634 \begin_layout Plain Layout
13635 stdfloats.inc
13636 \end_layout
13637
13638 \end_inset
13639
13640 ファイルに含まれているので,作業中のレイアウトファイルに
13641 \end_layout
13642
13643 \begin_layout LyX-Code
13644 Input stdfloats.inc
13645 \end_layout
13646
13647 \begin_layout Standard
13648 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13649 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13650 ましょう.
13651 \end_layout
13652
13653 \begin_layout Description
13654 \begin_inset Flex Code
13655 status collapsed
13656
13657 \begin_layout Plain Layout
13658 AllowedPlacement
13659 \end_layout
13660
13661 \end_inset
13662
13663  [
13664 \begin_inset Flex Code
13665 status collapsed
13666
13667 \begin_layout Plain Layout
13668 文字列
13669 \end_layout
13670
13671 \end_inset
13672
13673 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13674 \emph on
13675 h
13676 \emph default
13677  (
13678 \begin_inset Quotes eld
13679 \end_inset
13680
13681 here if possible:可能ならば現在位置に
13682 \begin_inset Quotes erd
13683 \end_inset
13684
13685 ), 
13686 \emph on
13687 t
13688 \emph default
13689  (
13690 \begin_inset Quotes eld
13691 \end_inset
13692
13693 top of page:ページ上部
13694 \begin_inset Quotes erd
13695 \end_inset
13696
13697 )・
13698 \emph on
13699 b
13700 \emph default
13701  (
13702 \begin_inset Quotes eld
13703 \end_inset
13704
13705 bottom of page:ページ下部
13706 \begin_inset Quotes erd
13707 \end_inset
13708
13709 )・
13710 \emph on
13711 p
13712 \emph default
13713  (
13714 \begin_inset Quotes eld
13715 \end_inset
13716
13717 page of floats:フロートを独立したページに
13718 \begin_inset Quotes erd
13719 \end_inset
13720
13721 )・
13722 \emph on
13723 H
13724 \emph default
13725  (
13726 \begin_inset Quotes eld
13727 \end_inset
13728
13729 here definitely:何としても現在位置に置く
13730 \begin_inset Quotes erd
13731 \end_inset
13732
13733 )・
13734 \emph on
13735 !
13736 \emph default
13737  (
13738 \begin_inset Quotes eld
13739 \end_inset
13740
13741 ignore LaTeX rules:LaTeXの規則を無視する
13742 \begin_inset Quotes erd
13743 \end_inset
13744
13745 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13746 \emph on
13747 none
13748 \emph default
13749 を与えてください.
13750 \end_layout
13751
13752 \begin_layout Description
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757 AllowsSideways
13758 \end_layout
13759
13760 \end_inset
13761
13762  [
13763 \begin_inset Flex Code
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 0
13768 \end_layout
13769
13770 \end_inset
13771
13772 ,
13773 \begin_inset space \thinspace{}
13774 \end_inset
13775
13776
13777 \emph on
13778
13779 \begin_inset Flex Code
13780 status collapsed
13781
13782 \begin_layout Plain Layout
13783 1
13784 \end_layout
13785
13786 \end_inset
13787
13788
13789 \emph default
13790 ] フロートを,\SpecialChar LaTeX
13791 パッケージの
13792 \family typewriter
13793 rotfloat
13794 \family default
13795  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 0
13801 \end_layout
13802
13803 \end_inset
13804
13805 を指定してください.
13806 \end_layout
13807
13808 \begin_layout Description
13809 \begin_inset Flex Code
13810 status collapsed
13811
13812 \begin_layout Plain Layout
13813 AllowsWide
13814 \end_layout
13815
13816 \end_inset
13817
13818  [
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 0
13824 \end_layout
13825
13826 \end_inset
13827
13828 ,
13829 \begin_inset space \thinspace{}
13830 \end_inset
13831
13832
13833 \emph on
13834
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 1
13840 \end_layout
13841
13842 \end_inset
13843
13844
13845 \emph default
13846 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13847 \begin_inset Flex Code
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851 0
13852 \end_layout
13853
13854 \end_inset
13855
13856 を指定してください.
13857 \end_layout
13858
13859 \begin_layout Description
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 Extension
13865 \end_layout
13866
13867 \end_inset
13868
13869  [
13870 \begin_inset Flex Code
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874 文字列
13875 \end_layout
13876
13877 \end_inset
13878
13879 =
13880 \begin_inset Quotes erd
13881 \end_inset
13882
13883
13884 \begin_inset Quotes erd
13885 \end_inset
13886
13887 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
13888 がキャプションを書き込むファイルです.
13889 \end_layout
13890
13891 \begin_layout Description
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 GuiName
13897 \end_layout
13898
13899 \end_inset
13900
13901  [
13902 \begin_inset Flex Code
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 文字列
13907 \end_layout
13908
13909 \end_inset
13910
13911 =
13912 \begin_inset Quotes erd
13913 \end_inset
13914
13915
13916 \begin_inset Quotes erd
13917 \end_inset
13918
13919 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
13920 \end_layout
13921
13922 \begin_layout Description
13923 \begin_inset Flex Code
13924 status collapsed
13925
13926 \begin_layout Plain Layout
13927 HTML*
13928 \end_layout
13929
13930 \end_inset
13931
13932  これらは,XHTML出力で使用されます.
13933 \begin_inset CommandInset ref
13934 LatexCommand ref
13935 reference "sec:XHTML出力のタグ"
13936
13937 \end_inset
13938
13939 をご覧ください.
13940 \end_layout
13941
13942 \begin_layout Description
13943 \begin_inset Flex Code
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 IsPredefined
13948 \end_layout
13949
13950 \end_inset
13951
13952  [
13953 \begin_inset Flex Code
13954 status collapsed
13955
13956 \begin_layout Plain Layout
13957
13958 \emph on
13959 0
13960 \end_layout
13961
13962 \end_inset
13963
13964 ,
13965 \begin_inset space \thinspace{}
13966 \end_inset
13967
13968
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973 1
13974 \end_layout
13975
13976 \end_inset
13977
13978 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
13979 パッケージ
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 float
13985 \end_layout
13986
13987 \end_inset
13988
13989 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 0
13995 \end_layout
13996
13997 \end_inset
13998
13999 で,この場合
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 float
14005 \end_layout
14006
14007 \end_inset
14008
14009 を使用します.\SpecialChar LaTeX
14010 ドキュメントクラス中に既に定義されているときには,
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 0
14016 \end_layout
14017
14018 \end_inset
14019
14020 に設定しなくてはなりません.
14021 \end_layout
14022
14023 \begin_layout Description
14024 \begin_inset Flex Code
14025 status collapsed
14026
14027 \begin_layout Plain Layout
14028 ListCommand
14029 \end_layout
14030
14031 \end_inset
14032
14033  [
14034 \begin_inset Flex Code
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038 文字列
14039 \end_layout
14040
14041 \end_inset
14042
14043 =
14044 \begin_inset Quotes erd
14045 \end_inset
14046
14047
14048 \begin_inset Quotes erd
14049 \end_inset
14050
14051 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14052 \backslash
14053 」は書きません.
14054 \begin_inset Flex Code
14055 status collapsed
14056
14057 \begin_layout Plain Layout
14058 NeedsFloatPkg
14059 \end_layout
14060
14061 \end_inset
14062
14063 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14064 \emph on
14065 必ず
14066 \emph default
14067 指定しなくてはなりません.
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 NeedsFloatPkg
14073 \end_layout
14074
14075 \end_inset
14076
14077 が真の時は,標準的な方法が存在するので,これは無視されます.
14078 \end_layout
14079
14080 \begin_layout Description
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 ListName
14086 \end_layout
14087
14088 \end_inset
14089
14090  [
14091 \begin_inset Flex Code
14092 status collapsed
14093
14094 \begin_layout Plain Layout
14095 文字列
14096 \end_layout
14097
14098 \end_inset
14099
14100 =
14101 \begin_inset Quotes erd
14102 \end_inset
14103
14104
14105 \begin_inset Quotes erd
14106 \end_inset
14107
14108 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14109 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14110 に渡さ
14111 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14112 \end_layout
14113
14114 \begin_layout Description
14115 \begin_inset Flex Code
14116 status collapsed
14117
14118 \begin_layout Plain Layout
14119 NumberWithin
14120 \end_layout
14121
14122 \end_inset
14123
14124  [
14125 \begin_inset Flex Code
14126 status collapsed
14127
14128 \begin_layout Plain Layout
14129 文字列
14130 \end_layout
14131
14132 \end_inset
14133
14134 =
14135 \begin_inset Quotes erd
14136 \end_inset
14137
14138
14139 \begin_inset Quotes erd
14140 \end_inset
14141
14142 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 NumberWithin
14148 \end_layout
14149
14150 \end_inset
14151
14152 が「
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 chapter
14158 \end_layout
14159
14160 \end_inset
14161
14162 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14163 \end_layout
14164
14165 \begin_layout Description
14166 \begin_inset Flex Code
14167 status collapsed
14168
14169 \begin_layout Plain Layout
14170 Placement
14171 \end_layout
14172
14173 \end_inset
14174
14175  [
14176 \begin_inset Flex Code
14177 status collapsed
14178
14179 \begin_layout Plain Layout
14180 文字列
14181 \end_layout
14182
14183 \end_inset
14184
14185 =
14186 \begin_inset Quotes erd
14187 \end_inset
14188
14189
14190 \begin_inset Quotes erd
14191 \end_inset
14192
14193 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14194 表記に従い,
14195 \begin_inset Flex Code
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199 t
14200 \end_layout
14201
14202 \end_inset
14203
14204 ならば上部(top),
14205 \begin_inset Flex Code
14206 status collapsed
14207
14208 \begin_layout Plain Layout
14209 b
14210 \end_layout
14211
14212 \end_inset
14213
14214 ならば下部(bottom),
14215 \begin_inset Flex Code
14216 status collapsed
14217
14218 \begin_layout Plain Layout
14219 p
14220 \end_layout
14221
14222 \end_inset
14223
14224 ならばページ(page),
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 h
14230 \end_layout
14231
14232 \end_inset
14233
14234 ならばここ(here)を表します
14235 \begin_inset Foot
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 \SpecialChar LaTeX
14240 同様,文字列中でのこれらの文字の順序は関係ありません.
14241 \end_layout
14242
14243 \end_inset
14244
14245 .これらの他に新しい型
14246 \begin_inset Flex Code
14247 status collapsed
14248
14249 \begin_layout Plain Layout
14250 H
14251 \end_layout
14252
14253 \end_inset
14254
14255 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260 H
14261 \end_layout
14262
14263 \end_inset
14264
14265 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14266 に「
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 tbp
14272 \end_layout
14273
14274 \end_inset
14275
14276 」を指定してください.
14277 \end_layout
14278
14279 \begin_layout Description
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 RefPrefix
14285 \end_layout
14286
14287 \end_inset
14288
14289  [
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 文字列
14295 \end_layout
14296
14297 \end_inset
14298
14299 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 RefPrefix
14305 \end_layout
14306
14307 \end_inset
14308
14309 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14310 \end_layout
14311
14312 \begin_layout Description
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 Style
14318 \end_layout
14319
14320 \end_inset
14321
14322  [
14323 \begin_inset Flex Code
14324 status collapsed
14325
14326 \begin_layout Plain Layout
14327 文字列
14328 \end_layout
14329
14330 \end_inset
14331
14332 =
14333 \begin_inset Quotes erd
14334 \end_inset
14335
14336
14337 \begin_inset Quotes erd
14338 \end_inset
14339
14340
14341 \begin_inset Flex Code
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345
14346 \backslash
14347 newfloat
14348 \end_layout
14349
14350 \end_inset
14351
14352 を使用してフロートを定義する際に使用される様式.
14353 \end_layout
14354
14355 \begin_layout Description
14356 \begin_inset Flex Code
14357 status collapsed
14358
14359 \begin_layout Plain Layout
14360 Type
14361 \end_layout
14362
14363 \end_inset
14364
14365  [
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370 文字列
14371 \end_layout
14372
14373 \end_inset
14374
14375 =
14376 \begin_inset Quotes erd
14377 \end_inset
14378
14379
14380 \begin_inset Quotes erd
14381 \end_inset
14382
14383 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388
14389 \backslash
14390 newfloat
14391 \end_layout
14392
14393 \end_inset
14394
14395 の後で,
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400
14401 \backslash
14402 begin{program}
14403 \end_layout
14404
14405 \end_inset
14406
14407
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412
14413 \backslash
14414 end{algorithm*}
14415 \end_layout
14416
14417 \end_inset
14418
14419 といったコマンドが利用できます.
14420 \end_layout
14421
14422 \begin_layout Description
14423 \begin_inset Flex Code
14424 status collapsed
14425
14426 \begin_layout Plain Layout
14427 UsesFloatPkg
14428 \end_layout
14429
14430 \end_inset
14431
14432  [
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 0
14438 \end_layout
14439
14440 \end_inset
14441
14442 ,
14443 \begin_inset space \thinspace{}
14444 \end_inset
14445
14446
14447 \begin_inset Flex Code
14448 status collapsed
14449
14450 \begin_layout Plain Layout
14451
14452 \emph on
14453 1
14454 \end_layout
14455
14456 \end_inset
14457
14458 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14459 パッケージ
14460 \begin_inset Flex Code
14461 status collapsed
14462
14463 \begin_layout Plain Layout
14464 float
14465 \end_layout
14466
14467 \end_inset
14468
14469 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14470 自身がオン・ザ・フライで定義しているのかを示します.
14471 \end_layout
14472
14473 \begin_layout Standard
14474 \begin_inset Flex Code
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478
14479 \emph on
14480 type
14481 \end_layout
14482
14483 \end_inset
14484
14485 型のフロートを定義すると,自動的に
14486 \emph on
14487 対応する
14488 \emph default
14489
14490 \begin_inset Flex Code
14491 status collapsed
14492
14493 \begin_layout Plain Layout
14494
14495 \emph on
14496 type
14497 \end_layout
14498
14499 \end_inset
14500
14501 名カウンタが定義されます.
14502 \end_layout
14503
14504 \begin_layout Subsection
14505 自由差込枠と差込枠レイアウト
14506 \begin_inset CommandInset label
14507 LatexCommand label
14508 name "subsec:任意設定差込枠"
14509
14510 \end_inset
14511
14512
14513 \end_layout
14514
14515 \begin_layout Standard
14516 自由差込枠には次の3種類があります.
14517 \end_layout
14518
14519 \begin_layout Itemize
14520 文字様式(
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525 CharStyle
14526 \end_layout
14527
14528 \end_inset
14529
14530 ).これは,
14531 \begin_inset Flex Code
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535
14536 \backslash
14537 noun
14538 \end_layout
14539
14540 \end_inset
14541
14542
14543 \begin_inset Flex Code
14544 status collapsed
14545
14546 \begin_layout Plain Layout
14547
14548 \backslash
14549 code
14550 \end_layout
14551
14552 \end_inset
14553
14554 などの\SpecialChar LaTeX
14555 コマンドに対応した意味論的マークアップを定義するものです.
14556 \end_layout
14557
14558 \begin_layout Itemize
14559 ユーザ設定(
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 Custom
14565 \end_layout
14566
14567 \end_inset
14568
14569 ).これは,\SpecialChar TeX
14570 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 endnote
14576 \end_layout
14577
14578 \end_inset
14579
14580 モジュール中で定義されています.
14581 \end_layout
14582
14583 \begin_layout Itemize
14584 XML要素(
14585 \begin_inset Flex Code
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 Element
14590 \end_layout
14591
14592 \end_inset
14593
14594 ).DocBookクラスで使用するものです.
14595 \end_layout
14596
14597 \begin_layout Standard
14598 自由差込枠は,以下で説明する
14599 \begin_inset Flex Code
14600 status collapsed
14601
14602 \begin_layout Plain Layout
14603 InsetLayout
14604 \end_layout
14605
14606 \end_inset
14607
14608 タグを使用して定義されます.
14609 \end_layout
14610
14611 \begin_layout Standard
14612 \begin_inset Flex Code
14613 status collapsed
14614
14615 \begin_layout Plain Layout
14616 InsetLayout
14617 \end_layout
14618
14619 \end_inset
14620
14621 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14622 \begin_inset Flex Code
14623 status collapsed
14624
14625 \begin_layout Plain Layout
14626 InsetLayout
14627 \end_layout
14628
14629 \end_inset
14630
14631 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14632 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14633 ー定義するのに使用されます.
14634 \end_layout
14635
14636 \begin_layout Standard
14637 \begin_inset Flex Code
14638 status collapsed
14639
14640 \begin_layout Plain Layout
14641 InsetLayout
14642 \end_layout
14643
14644 \end_inset
14645
14646 定義は以下の形の行では始まらなくてはなりません.
14647 \end_layout
14648
14649 \begin_layout LyX-Code
14650 InsetLayout <型>
14651 \end_layout
14652
14653 \begin_layout Standard
14654 ここで
14655 \begin_inset Flex Code
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 <型>
14660 \end_layout
14661
14662 \end_inset
14663
14664 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14665 \end_layout
14666
14667 \begin_layout Enumerate
14668 既存の差込枠のレイアウトを変更する場合.この場合,
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 <型>
14674 \end_layout
14675
14676 \end_inset
14677
14678 は以下のいずれかになります:
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 Algorithm
14684 \end_layout
14685
14686 \end_inset
14687
14688
14689 \begin_inset Flex Code
14690 status collapsed
14691
14692 \begin_layout Plain Layout
14693 Branch
14694 \end_layout
14695
14696 \end_inset
14697
14698
14699 \begin_inset Flex Code
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703 Box
14704 \end_layout
14705
14706 \end_inset
14707
14708
14709 \begin_inset Flex Code
14710 status collapsed
14711
14712 \begin_layout Plain Layout
14713 Box:shaded
14714 \end_layout
14715
14716 \end_inset
14717
14718
14719 \begin_inset Flex Code
14720 status collapsed
14721
14722 \begin_layout Plain Layout
14723 Caption:Standard
14724 \end_layout
14725
14726 \end_inset
14727
14728
14729 \begin_inset Flex Code
14730 status collapsed
14731
14732 \begin_layout Plain Layout
14733 ERT
14734 \end_layout
14735
14736 \end_inset
14737
14738
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 Figure
14744 \end_layout
14745
14746 \end_inset
14747
14748
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 Foot
14754 \end_layout
14755
14756 \end_inset
14757
14758
14759 \begin_inset Flex Code
14760 status collapsed
14761
14762 \begin_layout Plain Layout
14763 Index
14764 \end_layout
14765
14766 \end_inset
14767
14768
14769 \begin_inset Flex Code
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773 Info
14774 \end_layout
14775
14776 \end_inset
14777
14778
14779 \begin_inset Flex Code
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783 Info:menu
14784 \end_layout
14785
14786 \end_inset
14787
14788
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 Info:shortcut
14794 \end_layout
14795
14796 \end_inset
14797
14798
14799 \begin_inset Flex Code
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803 Info:shortcuts
14804 \end_layout
14805
14806 \end_inset
14807
14808
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 Listings
14814 \end_layout
14815
14816 \end_inset
14817
14818
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 Marginal
14824 \end_layout
14825
14826 \end_inset
14827
14828
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 Note:Comment
14834 \end_layout
14835
14836 \end_inset
14837
14838
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 Note:Note
14844 \end_layout
14845
14846 \end_inset
14847
14848
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 Note:GreyedOut
14854 \end_layout
14855
14856 \end_inset
14857
14858
14859 \begin_inset Flex Code
14860 status collapsed
14861
14862 \begin_layout Plain Layout
14863 Table
14864 \end_layout
14865
14866 \end_inset
14867
14868
14869 \begin_inset Flex Code
14870 status collapsed
14871
14872 \begin_layout Plain Layout
14873 URL
14874 \end_layout
14875
14876 \end_inset
14877
14878
14879 \end_layout
14880
14881 \begin_layout Enumerate
14882 自由差込枠のレイアウトを定義する場合.この場合,
14883 \begin_inset Flex Code
14884 status collapsed
14885
14886 \begin_layout Plain Layout
14887 <型>
14888 \end_layout
14889
14890 \end_inset
14891
14892
14893 \begin_inset Flex Code
14894 status collapsed
14895
14896 \begin_layout Plain Layout
14897 Flex:<名称>
14898 \end_layout
14899
14900 \end_inset
14901
14902 の形でなくてはなりません.ここで,
14903 \begin_inset Flex Code
14904 status collapsed
14905
14906 \begin_layout Plain Layout
14907 名称
14908 \end_layout
14909
14910 \end_inset
14911
14912 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
14913 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 LyXType
14919 \end_layout
14920
14921 \end_inset
14922
14923 項目が含まれていなくてはならないことに注意してください.
14924 \end_layout
14925
14926 \begin_layout Enumerate
14927 ユーザー定義派生枝を定義する場合.この場合,
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 <型>
14933 \end_layout
14934
14935 \end_inset
14936
14937 は「
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 Branch:<名称>
14943 \end_layout
14944
14945 \end_inset
14946
14947 」の形でなくてはなりません.ここで,
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 名称
14953 \end_layout
14954
14955 \end_inset
14956
14957 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
14958 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
14959 がくるむことができるようにすることです.
14960 \end_layout
14961
14962 \begin_layout Enumerate
14963 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 <型>
14969 \end_layout
14970
14971 \end_inset
14972
14973 は「
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 Caption:<名称>
14979 \end_layout
14980
14981 \end_inset
14982
14983 」の形でなくてはなりません.ここで,
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988 名称
14989 \end_layout
14990
14991 \end_inset
14992
14993 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
14994 \begin_inset Flex Code
14995 status collapsed
14996
14997 \begin_layout Plain Layout
14998 Caption:Standard
14999 \end_layout
15000
15001 \end_inset
15002
15003 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 Caption:Above
15009 \end_layout
15010
15011 \end_inset
15012
15013
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 Caption:Below
15019 \end_layout
15020
15021 \end_inset
15022
15023 ),
15024 \family sans
15025 多言語キャプション
15026 \family default
15027 モジュール(
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 Caption:Bicaption
15033 \end_layout
15034
15035 \end_inset
15036
15037 )をご覧ください.
15038 \end_layout
15039
15040 \begin_layout Standard
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 InsetLayout
15046 \end_layout
15047
15048 \end_inset
15049
15050 定義には以下の項目を入れることができます.
15051 \end_layout
15052
15053 \begin_layout Description
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 Argument
15059 \end_layout
15060
15061 \end_inset
15062
15063  [
15064 \begin_inset Flex Code
15065 status collapsed
15066
15067 \begin_layout Plain Layout
15068 整数
15069 \end_layout
15070
15071 \end_inset
15072
15073 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15074 \begin_inset Flex Code
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078 EndArgument
15079 \end_layout
15080
15081 \end_inset
15082
15083 で閉じなくてはなりません.詳細は
15084 \begin_inset CommandInset ref
15085 LatexCommand ref
15086 reference "subsec:段落様式"
15087
15088 \end_inset
15089
15090 参照.
15091 \end_layout
15092
15093 \begin_layout Description
15094 \begin_inset Flex Code
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098 BabelPreamble
15099 \end_layout
15100
15101 \end_inset
15102
15103  言語コマンドを変更するプリアンブル.
15104 \begin_inset CommandInset ref
15105 LatexCommand ref
15106 reference "subsec:段落様式の国際化"
15107
15108 \end_inset
15109
15110 参照.
15111 \end_layout
15112
15113 \begin_layout Description
15114 \begin_inset Flex Code
15115 status collapsed
15116
15117 \begin_layout Plain Layout
15118 BgColor
15119 \end_layout
15120
15121 \end_inset
15122
15123  [
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128 <名称>
15129 \end_layout
15130
15131 \end_inset
15132
15133 ] 差込枠の背景色.使用できる色名一覧は
15134 \begin_inset CommandInset ref
15135 LatexCommand ref
15136 reference "chap:色名"
15137
15138 \end_inset
15139
15140 参照.
15141 \end_layout
15142
15143 \begin_layout Description
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 ContentAsLabel
15149 \end_layout
15150
15151 \end_inset
15152
15153  [
15154 \begin_inset Flex Code
15155 status collapsed
15156
15157 \begin_layout Plain Layout
15158
15159 \emph on
15160 0
15161 \end_layout
15162
15163 \end_inset
15164
15165 ,
15166 \begin_inset space \thinspace{}
15167 \end_inset
15168
15169
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 1
15175 \end_layout
15176
15177 \end_inset
15178
15179 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15180 \end_layout
15181
15182 \begin_layout Description
15183 \begin_inset Flex Code
15184 status collapsed
15185
15186 \begin_layout Plain Layout
15187 CopyStyle
15188 \end_layout
15189
15190 \end_inset
15191
15192  [<型>] 段落様式と同様です.
15193 \begin_inset CommandInset ref
15194 LatexCommand ref
15195 reference "subsec:段落様式"
15196
15197 \end_inset
15198
15199 参照のこと.完全な型を指定する必要があることに注意してください.例:
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 CopyStyle Flex:<名称>
15205 \end_layout
15206
15207 \end_inset
15208
15209
15210 \end_layout
15211
15212 \begin_layout Description
15213 \begin_inset Flex Code
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 CustomPars
15218 \end_layout
15219
15220 \end_inset
15221
15222  [
15223 \begin_inset Flex Code
15224 status collapsed
15225
15226 \begin_layout Plain Layout
15227
15228 \emph on
15229 0
15230 \end_layout
15231
15232 \end_inset
15233
15234 ,
15235 \begin_inset space \thinspace{}
15236 \end_inset
15237
15238
15239 \begin_inset Flex Code
15240 status collapsed
15241
15242 \begin_layout Plain Layout
15243 1
15244 \end_layout
15245
15246 \end_inset
15247
15248 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15249 \end_layout
15250
15251 \begin_layout Description
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 Decoration
15257 \end_layout
15258
15259 \end_inset
15260
15261  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15262 \begin_inset Flex Code
15263 status collapsed
15264
15265 \begin_layout Plain Layout
15266 Classic
15267 \end_layout
15268
15269 \end_inset
15270
15271
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 Minimalistic
15277 \end_layout
15278
15279 \end_inset
15280
15281
15282 \begin_inset Flex Code
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286 Conglomerate
15287 \end_layout
15288
15289 \end_inset
15290
15291 のいずれかを指定することができます.脚註は通常
15292 \begin_inset Flex Code
15293 status collapsed
15294
15295 \begin_layout Plain Layout
15296 Classic
15297 \end_layout
15298
15299 \end_inset
15300
15301 を使用し,\SpecialChar TeX
15302 コード差込枠は通常
15303 \begin_inset Flex Code
15304 status collapsed
15305
15306 \begin_layout Plain Layout
15307 Minimalistic
15308 \end_layout
15309
15310 \end_inset
15311
15312 ,文字様式は
15313 \begin_inset Flex Code
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 Conglomerate
15318 \end_layout
15319
15320 \end_inset
15321
15322 を使用します.
15323 \end_layout
15324
15325 \begin_layout Description
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 Display
15331 \end_layout
15332
15333 \end_inset
15334
15335  [
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 0
15341 \end_layout
15342
15343 \end_inset
15344
15345 ,
15346 \begin_inset space \thinspace{}
15347 \end_inset
15348
15349
15350 \begin_inset Flex Code
15351 status collapsed
15352
15353 \begin_layout Plain Layout
15354
15355 \emph on
15356 1
15357 \end_layout
15358
15359 \end_inset
15360
15361
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 LatexType
15367 \end_layout
15368
15369 \end_inset
15370
15371
15372 \begin_inset Flex Code
15373 status collapsed
15374
15375 \begin_layout Plain Layout
15376 Environment
15377 \end_layout
15378
15379 \end_inset
15380
15381 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15382 環境は,
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387
15388 \backslash
15389 begin{LatexName}
15390 \end_layout
15391
15392 \end_inset
15393
15394 タグと
15395 \begin_inset Flex Code
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399
15400 \backslash
15401 end{LatexName}
15402 \end_layout
15403
15404 \end_inset
15405
15406 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15407 \end_layout
15408
15409 \begin_layout Description
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 End
15415 \end_layout
15416
15417 \end_inset
15418
15419  
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424 InsetLayout
15425 \end_layout
15426
15427 \end_inset
15428
15429 宣言を閉じるのに必要です.
15430 \end_layout
15431
15432 \begin_layout Description
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 Font
15438 \end_layout
15439
15440 \end_inset
15441
15442  本文本体とラベル
15443 \emph on
15444 両方に
15445 \emph default
15446 使用されるフォントです.
15447 \begin_inset CommandInset ref
15448 LatexCommand ref
15449 reference "subsec:フォント指定"
15450
15451 \end_inset
15452
15453 を参照.このフォントを定義すると自動的に
15454 \begin_inset Flex Code
15455 status collapsed
15456
15457 \begin_layout Plain Layout
15458 LabelFont
15459 \end_layout
15460
15461 \end_inset
15462
15463 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 LabelFont
15469 \end_layout
15470
15471 \end_inset
15472
15473 を定義しなくてはならないことに注意してください.
15474 \end_layout
15475
15476 \begin_layout Description
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 FixedWidthPreambleEncoding
15482 \end_layout
15483
15484 \end_inset
15485
15486  [
15487 \begin_inset Flex Code
15488 status collapsed
15489
15490 \begin_layout Plain Layout
15491
15492 \emph on
15493 0
15494 \end_layout
15495
15496 \end_inset
15497
15498 ,
15499 \begin_inset space \thinspace{}
15500 \end_inset
15501
15502
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 1
15508 \end_layout
15509
15510 \end_inset
15511
15512 ] このレイアウトによって生成される
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 BabelPreamble
15518 \end_layout
15519
15520 \end_inset
15521
15522 および
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 LangPreamble
15528 \end_layout
15529
15530 \end_inset
15531
15532 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15533 \family typewriter
15534 listings
15535 \family default
15536 のように,
15537 \family sans
15538 utf8
15539 \family default
15540 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15541 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15542 やLua\SpecialChar TeX
15543 のようなUnicodeを完全に解する\SpecialChar LaTeX
15544 バックエンドを使用してい
15545 る場合には,無視されます.
15546 \end_layout
15547
15548 \begin_layout Description
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 ForceLocalFontSwitch
15554 \end_layout
15555
15556 \end_inset
15557
15558  [
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563
15564 \emph on
15565 0
15566 \end_layout
15567
15568 \end_inset
15569
15570 ,
15571 \begin_inset space \thinspace{}
15572 \end_inset
15573
15574
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 1
15580 \end_layout
15581
15582 \end_inset
15583
15584 ] babel使用時に,常にローカルフォント切替(
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589
15590 \backslash
15591 foreignlanguage
15592 \end_layout
15593
15594 \end_inset
15595
15596 )を使い,グローバル切替(
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601
15602 \backslash
15603 selectlanguage
15604 \end_layout
15605
15606 \end_inset
15607
15608 など)は使わない.
15609 \end_layout
15610
15611 \begin_layout Description
15612 \begin_inset Flex Code
15613 status collapsed
15614
15615 \begin_layout Plain Layout
15616 ForceLTR
15617 \end_layout
15618
15619 \end_inset
15620
15621  [
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626
15627 \emph on
15628 0
15629 \end_layout
15630
15631 \end_inset
15632
15633 ,
15634 \begin_inset space \thinspace{}
15635 \end_inset
15636
15637
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 1
15643 \end_layout
15644
15645 \end_inset
15646
15647 ] たとえば\SpecialChar TeX
15648 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15649 \end_layout
15650
15651 \begin_layout Description
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 ForceOwnlines
15657 \end_layout
15658
15659 \end_inset
15660
15661  [
15662 \begin_inset Flex Code
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666
15667 \emph on
15668 0
15669 \end_layout
15670
15671 \end_inset
15672
15673 ,
15674 \begin_inset space \thinspace{}
15675 \end_inset
15676
15677
15678 \begin_inset Flex Code
15679 status collapsed
15680
15681 \begin_layout Plain Layout
15682 1
15683 \end_layout
15684
15685 \end_inset
15686
15687 ] \SpecialChar LaTeX
15688 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15689 \end_layout
15690
15691 \begin_layout Description
15692 \begin_inset Flex Code
15693 status collapsed
15694
15695 \begin_layout Plain Layout
15696 ForcePlain
15697 \end_layout
15698
15699 \end_inset
15700
15701  [
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706
15707 \emph on
15708 0
15709 \end_layout
15710
15711 \end_inset
15712
15713 ,
15714 \begin_inset space \thinspace{}
15715 \end_inset
15716
15717
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 1
15723 \end_layout
15724
15725 \end_inset
15726
15727 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15728 \end_layout
15729
15730 \begin_layout Description
15731 \begin_inset Flex Code
15732 status collapsed
15733
15734 \begin_layout Plain Layout
15735 FreeSpacing
15736 \end_layout
15737
15738 \end_inset
15739
15740  [
15741 \emph on
15742
15743 \begin_inset Flex Code
15744 status collapsed
15745
15746 \begin_layout Plain Layout
15747 0
15748 \end_layout
15749
15750 \end_inset
15751
15752
15753 \emph default
15754 ,
15755 \begin_inset space \thinspace{}
15756 \end_inset
15757
15758
15759 \begin_inset Flex Code
15760 status collapsed
15761
15762 \begin_layout Plain Layout
15763 1
15764 \end_layout
15765
15766 \end_inset
15767
15768 ] 段落様式と同様.
15769 \begin_inset CommandInset ref
15770 LatexCommand ref
15771 reference "subsec:段落様式"
15772
15773 \end_inset
15774
15775 参照.
15776 \end_layout
15777
15778 \begin_layout Description
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 HTML*
15784 \end_layout
15785
15786 \end_inset
15787
15788  これらは,XHTML出力で使用されます.
15789 \begin_inset CommandInset ref
15790 LatexCommand ref
15791 reference "sec:XHTML出力のタグ"
15792
15793 \end_inset
15794
15795 をご覧ください.
15796 \end_layout
15797
15798 \begin_layout Description
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 InToc
15804 \end_layout
15805
15806 \end_inset
15807
15808  [
15809 \begin_inset Flex Code
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813
15814 \emph on
15815 0
15816 \end_layout
15817
15818 \end_inset
15819
15820 ,
15821 \begin_inset space \thinspace{}
15822 \end_inset
15823
15824
15825 \begin_inset Flex Code
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 1
15830 \end_layout
15831
15832 \end_inset
15833
15834 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15835 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15836 \end_layout
15837
15838 \begin_layout Description
15839 \begin_inset Flex Code
15840 status collapsed
15841
15842 \begin_layout Plain Layout
15843 KeepEmpty
15844 \end_layout
15845
15846 \end_inset
15847
15848  [
15849 \emph on
15850
15851 \begin_inset Flex Code
15852 status collapsed
15853
15854 \begin_layout Plain Layout
15855 0
15856 \end_layout
15857
15858 \end_inset
15859
15860
15861 \emph default
15862 ,
15863 \begin_inset space \thinspace{}
15864 \end_inset
15865
15866
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 1
15872 \end_layout
15873
15874 \end_inset
15875
15876 ] 段落様式と同様.
15877 \begin_inset CommandInset ref
15878 LatexCommand ref
15879 reference "subsec:段落様式"
15880
15881 \end_inset
15882
15883 参照.
15884 \end_layout
15885
15886 \begin_layout Description
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 LabelFont
15892 \end_layout
15893
15894 \end_inset
15895
15896  ラベルに使用されるフォント.第
15897 \begin_inset CommandInset ref
15898 LatexCommand ref
15899 reference "subsec:フォント指定"
15900
15901 \end_inset
15902
15903 節を参照.非効率を回避するため,この定義は
15904 \begin_inset Flex Code
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908 Font
15909 \end_layout
15910
15911 \end_inset
15912
15913 の前には決して現れてはなりません.
15914 \end_layout
15915
15916 \begin_layout Description
15917 \begin_inset Flex Code
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921 LabelString
15922 \end_layout
15923
15924 \end_inset
15925
15926  [
15927 \begin_inset Flex Code
15928 status collapsed
15929
15930 \begin_layout Plain Layout
15931 文字列
15932 \end_layout
15933
15934 \end_inset
15935
15936 =
15937 \begin_inset Quotes erd
15938 \end_inset
15939
15940
15941 \begin_inset Quotes erd
15942 \end_inset
15943
15944 ]
15945 \lang english
15946  
15947 \lang japanese
15948 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
15949 コードや派生枝),ラベルが動的に変更されます.
15950 \end_layout
15951
15952 \begin_layout Description
15953 \begin_inset Flex Code
15954 status collapsed
15955
15956 \begin_layout Plain Layout
15957 LangPreamble
15958 \end_layout
15959
15960 \end_inset
15961
15962  言語依存のプリアンブル.
15963 \begin_inset CommandInset ref
15964 LatexCommand ref
15965 reference "subsec:段落様式の国際化"
15966
15967 \end_inset
15968
15969 参照.
15970 \end_layout
15971
15972 \begin_layout Description
15973 \begin_inset Flex Code
15974 status collapsed
15975
15976 \begin_layout Plain Layout
15977 LatexName
15978 \end_layout
15979
15980 \end_inset
15981
15982  [
15983 \begin_inset Flex Code
15984 status collapsed
15985
15986 \begin_layout Plain Layout
15987 <名称>
15988 \end_layout
15989
15990 \end_inset
15991
15992 ] 対応する\SpecialChar LaTeX
15993 関連物の名称.環境名ないしはコマンド名.
15994 \end_layout
15995
15996 \begin_layout Description
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 LatexParam
16002 \end_layout
16003
16004 \end_inset
16005
16006  [
16007 \begin_inset Flex Code
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011 <パラメータ>
16012 \end_layout
16013
16014 \end_inset
16015
16016 ]
16017 \lang english
16018  
16019 \lang japanese
16020 対応する
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 LatexName
16026 \end_layout
16027
16028 \end_inset
16029
16030 関連物の非必須パラメータ.
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 []
16036 \end_layout
16037
16038 \end_inset
16039
16040 のような括弧対を含む.このパラメータは\SpecialChar LyX
16041 内部から変更することはできません(変更可能なパラメータには
16042 \begin_inset Flex Code
16043 status collapsed
16044
16045 \begin_layout Plain Layout
16046 Argument
16047 \end_layout
16048
16049 \end_inset
16050
16051 を使用してください).これは,全ての\SpecialChar LaTeX
16052  
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 Argument
16058 \end_layout
16059
16060 \end_inset
16061
16062 の後にそのままの形で出力されます.
16063 \end_layout
16064
16065 \begin_layout Description
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 LatexType
16071 \end_layout
16072
16073 \end_inset
16074
16075  [
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 Command, Environment, None
16081 \end_layout
16082
16083 \end_inset
16084
16085 ] 様式がどのように\SpecialChar LaTeX
16086 に変換されるべきかを示します
16087 \begin_inset Foot
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091 これらのルールはSGMLクラスにも適用されるので,
16092 \begin_inset Flex Code
16093 status collapsed
16094
16095 \begin_layout Plain Layout
16096 LatexType
16097 \end_layout
16098
16099 \end_inset
16100
16101 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16102 \end_layout
16103
16104 \end_inset
16105
16106
16107 \end_layout
16108
16109 \begin_deeper
16110 \begin_layout Description
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 None
16116 \end_layout
16117
16118 \end_inset
16119
16120  は,何も特別なことは意味しません
16121 \end_layout
16122
16123 \begin_layout Description
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 Command
16129 \end_layout
16130
16131 \end_inset
16132
16133  は,
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138
16139 \backslash
16140
16141 \emph on
16142 LatexName
16143 \emph default
16144 {\SpecialChar ldots
16145 }
16146 \end_layout
16147
16148 \end_inset
16149
16150 を意味します
16151 \end_layout
16152
16153 \begin_layout Description
16154 \begin_inset Flex Code
16155 status collapsed
16156
16157 \begin_layout Plain Layout
16158 Environment
16159 \end_layout
16160
16161 \end_inset
16162
16163  は,
16164 \begin_inset Flex Code
16165 status collapsed
16166
16167 \begin_layout Plain Layout
16168
16169 \backslash
16170 begin{
16171 \emph on
16172 LatexName
16173 \emph default
16174 }\SpecialChar ldots
16175
16176 \backslash
16177 end{
16178 \emph on
16179 LatexName
16180 \emph default
16181 }
16182 \end_layout
16183
16184 \end_inset
16185
16186 を意味します
16187 \end_layout
16188
16189 \begin_layout Standard
16190 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16191 出力は,\SpecialChar LaTeX
16192 型に依存して
16193 \end_layout
16194
16195 \begin_layout LyX-Code
16196
16197 \backslash
16198 LatexName[LatexParam]{\SpecialChar ldots
16199 }
16200 \end_layout
16201
16202 \begin_layout Standard
16203 のようになるか,
16204 \end_layout
16205
16206 \begin_layout LyX-Code
16207
16208 \backslash
16209 begin{LatexName}[LatexParam] \SpecialChar ldots
16210  
16211 \backslash
16212 end{LatexName}.
16213 \end_layout
16214
16215 \begin_layout Standard
16216 となります.
16217 \end_layout
16218
16219 \end_deeper
16220 \begin_layout Description
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 LeftDelim
16226 \end_layout
16227
16228 \end_inset
16229
16230  [
16231 \begin_inset Flex Code
16232 status collapsed
16233
16234 \begin_layout Plain Layout
16235 文字列
16236 \end_layout
16237
16238 \end_inset
16239
16240 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 <br/>
16246 \end_layout
16247
16248 \end_inset
16249
16250 で指示できます.
16251 \end_layout
16252
16253 \begin_layout Description
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 LyxType
16259 \end_layout
16260
16261 \end_inset
16262
16263  
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 charstyle
16269 \end_layout
16270
16271 \end_inset
16272
16273
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 custom
16279 \end_layout
16280
16281 \end_inset
16282
16283
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 element
16289 \end_layout
16290
16291 \end_inset
16292
16293
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 end
16299 \end_layout
16300
16301 \end_inset
16302
16303 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16304 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309 LyxType
16310 \end_layout
16311
16312 \end_inset
16313
16314
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 charstyle
16320 \end_layout
16321
16322 \end_inset
16323
16324 に設定すると,
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 MultiPar
16330 \end_layout
16331
16332 \end_inset
16333
16334 が偽に設定されます
16335 \lang english
16336  and 
16337 \lang japanese
16338
16339 \begin_inset Flex Code
16340 status collapsed
16341
16342 \begin_layout Plain Layout
16343 ForcePlain
16344 \end_layout
16345
16346 \end_inset
16347
16348
16349 \lang english
16350  to true
16351 \lang japanese
16352 .文字様式差込枠で
16353 \begin_inset Flex Code
16354 status collapsed
16355
16356 \begin_layout Plain Layout
16357 MultiPar
16358 \end_layout
16359
16360 \end_inset
16361
16362 を真にしたい時には
16363 \lang english
16364 , or 
16365 \lang japanese
16366
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 ForcePlain
16372 \end_layout
16373
16374 \end_inset
16375
16376
16377 \lang english
16378  to false
16379 \lang japanese
16380
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 LyxType
16386 \end_layout
16387
16388 \end_inset
16389
16390 を設定した
16391 \emph on
16392 後に
16393 \emph default
16394 設定すれば,真に設定することができます.
16395 \end_layout
16396
16397 \begin_layout Description
16398 \begin_inset Flex Code
16399 status collapsed
16400
16401 \begin_layout Plain Layout
16402 MultiPar
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 \emph on
16414 0
16415 \end_layout
16416
16417 \end_inset
16418
16419 ,
16420 \begin_inset space \thinspace{}
16421 \end_inset
16422
16423
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 1
16429 \end_layout
16430
16431 \end_inset
16432
16433 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438 CustomPars
16439 \end_layout
16440
16441 \end_inset
16442
16443 を同じ値に設定し,
16444 \begin_inset Flex Code
16445 status collapsed
16446
16447 \begin_layout Plain Layout
16448 ForcePlain
16449 \end_layout
16450
16451 \end_inset
16452
16453 を逆の値に設定します.これらは,
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 MultiPar
16459 \end_layout
16460
16461 \end_inset
16462
16463
16464 \emph on
16465 後に
16466 \emph default
16467 指定されれば,他の値に指定し直すことができます.既定値は真です.
16468 \end_layout
16469
16470 \begin_layout Description
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 NeedProtect
16476 \end_layout
16477
16478 \end_inset
16479
16480  [
16481 \begin_inset Flex Code
16482 status collapsed
16483
16484 \begin_layout Plain Layout
16485
16486 \emph on
16487 0
16488 \end_layout
16489
16490 \end_inset
16491
16492 ,
16493 \begin_inset space \thinspace{}
16494 \end_inset
16495
16496
16497 \begin_inset Flex Code
16498 status collapsed
16499
16500 \begin_layout Plain Layout
16501 1
16502 \end_layout
16503
16504 \end_inset
16505
16506 ] 本レイアウト中で脆弱なコマンドを
16507 \begin_inset Flex Code
16508 status collapsed
16509
16510 \begin_layout Plain Layout
16511
16512 \backslash
16513 protect
16514 \end_layout
16515
16516 \end_inset
16517
16518 するか否か(註:当該コマンド自身をprotectするかどうかでは
16519 \emph on
16520 ありません
16521 \emph default
16522 ).既定値は偽です.
16523 \end_layout
16524
16525 \begin_layout Description
16526 \begin_inset Flex Code
16527 status collapsed
16528
16529 \begin_layout Plain Layout
16530 NoInsetLayout
16531 \end_layout
16532
16533 \end_inset
16534
16535  [
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540 <レイアウト>
16541 \end_layout
16542
16543 \end_inset
16544
16545 ] 既存の
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550 InsetLayout
16551 \end_layout
16552
16553 \end_inset
16554
16555 を削除します.
16556 \end_layout
16557
16558 \begin_layout Description
16559 \begin_inset Flex Code
16560 status collapsed
16561
16562 \begin_layout Plain Layout
16563 ObsoletedBy
16564 \end_layout
16565
16566 \end_inset
16567
16568  [
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573 <レイアウト>
16574 \end_layout
16575
16576 \end_inset
16577
16578 ] この古い
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 InsetLayout
16584 \end_layout
16585
16586 \end_inset
16587
16588 を引き継いだ
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 InsetLayout
16594 \end_layout
16595
16596 \end_inset
16597
16598 の名称.これは,
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603 InsetLayout
16604 \end_layout
16605
16606 \end_inset
16607
16608 の改名を,後方互換性を維持しながら行うために用いられます.
16609 \end_layout
16610
16611 \begin_layout Description
16612 \begin_inset Flex Code
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616 ParbreakIsNewline
16617 \end_layout
16618
16619 \end_inset
16620
16621  [
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626
16627 \emph on
16628 0
16629 \end_layout
16630
16631 \end_inset
16632
16633 ,
16634 \begin_inset space \thinspace{}
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 1
16643 \end_layout
16644
16645 \end_inset
16646
16647 ] 段落様式と同様.
16648 \begin_inset CommandInset ref
16649 LatexCommand ref
16650 reference "subsec:段落様式"
16651
16652 \end_inset
16653
16654 参照.
16655 \end_layout
16656
16657 \begin_layout Description
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 PassThru
16663 \end_layout
16664
16665 \end_inset
16666
16667  [
16668 \emph on
16669
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674 0
16675 \end_layout
16676
16677 \end_inset
16678
16679
16680 \emph default
16681 ,
16682 \begin_inset space \thinspace{}
16683 \end_inset
16684
16685
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 1
16691 \end_layout
16692
16693 \end_inset
16694
16695 ] 段落様式と同様.
16696 \begin_inset CommandInset ref
16697 LatexCommand ref
16698 reference "subsec:段落様式"
16699
16700 \end_inset
16701
16702 参照.
16703 \end_layout
16704
16705 \begin_layout Description
16706 \begin_inset Flex Code
16707 status collapsed
16708
16709 \begin_layout Plain Layout
16710 Preamble
16711 \end_layout
16712
16713 \end_inset
16714
16715  段落様式と同様.
16716 \begin_inset CommandInset ref
16717 LatexCommand ref
16718 reference "subsec:段落様式"
16719
16720 \end_inset
16721
16722 参照.
16723 \end_layout
16724
16725 \begin_layout Description
16726 \begin_inset Flex Code
16727 status collapsed
16728
16729 \begin_layout Plain Layout
16730 RefPrefix
16731 \end_layout
16732
16733 \end_inset
16734
16735  [
16736 \begin_inset Flex Code
16737 status collapsed
16738
16739 \begin_layout Plain Layout
16740 文字列
16741 \end_layout
16742
16743 \end_inset
16744
16745 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16746 \end_layout
16747
16748 \begin_layout Description
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 Requires
16754 \end_layout
16755
16756 \end_inset
16757
16758  [
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 文字列
16764 \end_layout
16765
16766 \end_inset
16767
16768 ] 段落様式と同様.
16769 \begin_inset CommandInset ref
16770 LatexCommand ref
16771 reference "subsec:段落様式"
16772
16773 \end_inset
16774
16775 参照.
16776 \end_layout
16777
16778 \begin_layout Description
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783 ResetArgs
16784 \end_layout
16785
16786 \end_inset
16787
16788  [
16789 \begin_inset Flex Code
16790 status collapsed
16791
16792 \begin_layout Plain Layout
16793
16794 \emph on
16795 0
16796 \end_layout
16797
16798 \end_inset
16799
16800 ,
16801 \begin_inset space \thinspace{}
16802 \end_inset
16803
16804
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809 1
16810 \end_layout
16811
16812 \end_inset
16813
16814 ] (
16815 \begin_inset Flex Code
16816 status collapsed
16817
16818 \begin_layout Plain Layout
16819 Argument
16820 \end_layout
16821
16822 \end_inset
16823
16824 タグで定義された)この様式の\SpecialChar LaTeX
16825 引数をリセットします.これは,様式を
16826 \begin_inset Flex Code
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 CopyStyle
16831 \end_layout
16832
16833 \end_inset
16834
16835 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16836 \end_layout
16837
16838 \begin_layout Description
16839 \begin_inset Flex Code
16840 status collapsed
16841
16842 \begin_layout Plain Layout
16843 ResetsFont
16844 \end_layout
16845
16846 \end_inset
16847
16848  [
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853 0
16854 \end_layout
16855
16856 \end_inset
16857
16858 ,
16859 \begin_inset space \thinspace{}
16860 \end_inset
16861
16862
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867
16868 \emph on
16869 1
16870 \end_layout
16871
16872 \end_inset
16873
16874 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16875 \begin_inset Note Note
16876 status open
16877
16878 \begin_layout Plain Layout
16879 This is outdated: The default changed from 1 to 0
16880 \end_layout
16881
16882 \end_inset
16883
16884
16885 \end_layout
16886
16887 \begin_layout Description
16888 \begin_inset Flex Code
16889 status collapsed
16890
16891 \begin_layout Plain Layout
16892 RightDelim
16893 \end_layout
16894
16895 \end_inset
16896
16897  [
16898 \begin_inset Flex Code
16899 status collapsed
16900
16901 \begin_layout Plain Layout
16902 文字列
16903 \end_layout
16904
16905 \end_inset
16906
16907 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16908 \begin_inset Flex Code
16909 status collapsed
16910
16911 \begin_layout Plain Layout
16912 <br/>
16913 \end_layout
16914
16915 \end_inset
16916
16917 で指示できます.
16918 \end_layout
16919
16920 \begin_layout Description
16921 \begin_inset Flex Code
16922 status collapsed
16923
16924 \begin_layout Plain Layout
16925 Spellcheck
16926 \end_layout
16927
16928 \end_inset
16929
16930  [
16931 \begin_inset Flex Code
16932 status collapsed
16933
16934 \begin_layout Plain Layout
16935 0
16936 \end_layout
16937
16938 \end_inset
16939
16940 ,
16941 \begin_inset space \thinspace{}
16942 \end_inset
16943
16944
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949
16950 \emph on
16951 1
16952 \end_layout
16953
16954 \end_inset
16955
16956 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
16957 \end_layout
16958
16959 \begin_layout Subsection
16960 カウンタ
16961 \begin_inset CommandInset label
16962 LatexCommand label
16963 name "subsec:カウンタ"
16964
16965 \end_inset
16966
16967
16968 \end_layout
16969
16970 \begin_layout Standard
16971 テキストクラスには,カウンタ(
16972 \begin_inset Flex MenuItem
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 chapter
16977 \end_layout
16978
16979 \end_inset
16980
16981
16982 \begin_inset Flex MenuItem
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 figure
16987 \end_layout
16988
16989 \end_inset
16990
16991 ・\SpecialChar ldots
16992 )を定義することが必要です.標準的なカウンタは
16993 \begin_inset Flex Code
16994 status collapsed
16995
16996 \begin_layout Plain Layout
16997 stdcounters.inc
16998 \end_layout
16999
17000 \end_inset
17001
17002 ファイルに含まれているので,作業中のレイアウトファイルに
17003 \end_layout
17004
17005 \begin_layout LyX-Code
17006 Input stdcounters.inc
17007 \end_layout
17008
17009 \begin_layout Standard
17010 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17011 \end_layout
17012
17013 \begin_layout LyX-Code
17014 Counter カウンタ名
17015 \end_layout
17016
17017 \begin_layout Standard
17018 で始まらなくてはなりません.ここで「
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 カウンタ名
17024 \end_layout
17025
17026 \end_inset
17027
17028 」は,実際のカウンタ名で置き換えます.また,宣言は「
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 End
17034 \end_layout
17035
17036 \end_inset
17037
17038 」で終わらなくてはなりません.
17039 \end_layout
17040
17041 \begin_layout Standard
17042 以下のパラメータを使用することができます.
17043 \end_layout
17044
17045 \begin_layout Description
17046 \begin_inset Flex Code
17047 status collapsed
17048
17049 \begin_layout Plain Layout
17050 InitialValue
17051 \end_layout
17052
17053 \end_inset
17054
17055  [
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 整数=1
17061 \end_layout
17062
17063 \end_inset
17064
17065 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17066 \end_layout
17067
17068 \begin_layout Description
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 LabelString [文字列=""]
17074 \end_layout
17075
17076 \end_inset
17077
17078  定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 LabelStringAppendix
17084 \end_layout
17085
17086 \end_inset
17087
17088 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17089 \end_layout
17090
17091 \begin_deeper
17092 \begin_layout Itemize
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097
17098 \backslash
17099 thecounter
17100 \end_layout
17101
17102 \end_inset
17103
17104 は,カウンタ
17105 \begin_inset Flex Code
17106 status collapsed
17107
17108 \begin_layout Plain Layout
17109 counter
17110 \end_layout
17111
17112 \end_inset
17113
17114
17115 \begin_inset Flex Code
17116 status collapsed
17117
17118 \begin_layout Plain Layout
17119 LabelString
17120 \end_layout
17121
17122 \end_inset
17123
17124 (または
17125 \begin_inset Newline linebreak
17126 \end_inset
17127
17128
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 LabelStringAppendix
17134 \end_layout
17135
17136 \end_inset
17137
17138 )を展開したもので置き換えられます. 
17139 \end_layout
17140
17141 \begin_layout Itemize
17142 カウンタ値は,\SpecialChar LaTeX
17143 型マクロ
17144 \begin_inset Flex Code
17145 status collapsed
17146
17147 \begin_layout Plain Layout
17148
17149 \backslash
17150
17151 \emph on
17152 numbertype
17153 \emph default
17154 {
17155 \emph on
17156 カウンタ
17157 \emph default
17158 }
17159 \end_layout
17160
17161 \end_inset
17162
17163 を用いて表現することができます.ここで
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168
17169 \emph on
17170 numbertype
17171 \end_layout
17172
17173 \end_inset
17174
17175 は以下のいずれかです.
17176 \begin_inset Flex Code
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 arabic
17181 \end_layout
17182
17183 \end_inset
17184
17185 :1, 2, 3,\SpecialChar ldots
17186
17187 \begin_inset Flex Code
17188 status collapsed
17189
17190 \begin_layout Plain Layout
17191 alph
17192 \end_layout
17193
17194 \end_inset
17195
17196 :a, b, c, \SpecialChar ldots
17197 (小文字);
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202 Alph
17203 \end_layout
17204
17205 \end_inset
17206
17207 :A, B, C, \SpecialChar ldots
17208 (大文字);
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213 roman
17214 \end_layout
17215
17216 \end_inset
17217
17218 :i, ii, iii, \SpecialChar ldots
17219 (小文字ローマ数字);
17220 \begin_inset Flex Code
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224 Roman
17225 \end_layout
17226
17227 \end_inset
17228
17229 :I, II, III\SpecialChar ldots
17230 (大文字ローマ数字).
17231 \end_layout
17232
17233 \end_deeper
17234 \begin_layout Standard
17235 \begin_inset Flex Code
17236 status collapsed
17237
17238 \begin_layout Plain Layout
17239 LabelString
17240 \end_layout
17241
17242 \end_inset
17243
17244 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17245 \begin_inset Flex Code
17246 status collapsed
17247
17248 \begin_layout Plain Layout
17249 master
17250 \end_layout
17251
17252 \end_inset
17253
17254
17255 \begin_inset Flex Code
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259 Within
17260 \end_layout
17261
17262 \end_inset
17263
17264 で定義)があるときには,文字列
17265 \begin_inset Newline linebreak
17266 \end_inset
17267
17268
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273
17274 \backslash
17275 themaster.
17276 \backslash
17277 arabic{カウンタ}
17278 \end_layout
17279
17280 \end_inset
17281
17282 が使用されます.それ以外の場合は,
17283 \begin_inset Flex Code
17284 status collapsed
17285
17286 \begin_layout Plain Layout
17287
17288 \backslash
17289 arabic{カウンタ}
17290 \end_layout
17291
17292 \end_inset
17293
17294 が使用されます.
17295 \end_layout
17296
17297 \begin_layout Description
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302 LabelStringAppendix
17303 \end_layout
17304
17305 \end_inset
17306
17307  [
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 文字列
17313 \end_layout
17314
17315 \end_inset
17316
17317 =""] 
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 LabelString
17323 \end_layout
17324
17325 \end_inset
17326
17327 と同様ですが,付録で使用するためのものです.
17328 \end_layout
17329
17330 \begin_layout Description
17331 \begin_inset Flex Code
17332 status collapsed
17333
17334 \begin_layout Plain Layout
17335 PrettyFormat
17336 \end_layout
17337
17338 \end_inset
17339
17340  [
17341 \begin_inset Flex Code
17342 status collapsed
17343
17344 \begin_layout Plain Layout
17345 文字列
17346 \end_layout
17347
17348 \end_inset
17349
17350 =
17351 \begin_inset Quotes erd
17352 \end_inset
17353
17354
17355 \begin_inset Quotes erd
17356 \end_inset
17357
17358 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17359 \begin_inset space ~
17360 \end_inset
17361
17362 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17363 す.
17364 \end_layout
17365
17366 \begin_layout Description
17367 \begin_inset Flex Code
17368 status collapsed
17369
17370 \begin_layout Plain Layout
17371 Within
17372 \end_layout
17373
17374 \end_inset
17375
17376  [
17377 \begin_inset Flex Code
17378 status collapsed
17379
17380 \begin_layout Plain Layout
17381 文字列
17382 \end_layout
17383
17384 \end_inset
17385
17386 =
17387 \begin_inset Quotes erd
17388 \end_inset
17389
17390
17391 \begin_inset Quotes erd
17392 \end_inset
17393
17394 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399 subsection
17400 \end_layout
17401
17402 \end_inset
17403
17404
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409 section
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 \end_layout
17431
17432 \begin_layout LyX-Code
17433 Font 
17434 \family roman
17435 \emph on
17436 または
17437 \family default
17438 \emph default
17439  LabelFont 
17440 \family roman
17441 \emph on
17442 または
17443 \family default
17444 \emph default
17445  DefaultFont
17446 \end_layout
17447
17448 \begin_layout LyX-Code
17449  ...
17450 \end_layout
17451
17452 \begin_layout LyX-Code
17453 EndFont
17454 \end_layout
17455
17456 \begin_layout Standard
17457 以下のコマンドを使用することができます.
17458 \end_layout
17459
17460 \begin_layout Description
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 Color
17466 \end_layout
17467
17468 \end_inset
17469
17470  [
17471 \begin_inset Flex Code
17472 status collapsed
17473
17474 \begin_layout Plain Layout
17475
17476 \emph on
17477 none
17478 \end_layout
17479
17480 \end_inset
17481
17482
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487 black
17488 \end_layout
17489
17490 \end_inset
17491
17492
17493 \begin_inset Flex Code
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497 white
17498 \end_layout
17499
17500 \end_inset
17501
17502
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 red
17508 \end_layout
17509
17510 \end_inset
17511
17512
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 green
17518 \end_layout
17519
17520 \end_inset
17521
17522
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 blue
17528 \end_layout
17529
17530 \end_inset
17531
17532
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 cyan
17538 \end_layout
17539
17540 \end_inset
17541
17542
17543 \begin_inset Flex Code
17544 status collapsed
17545
17546 \begin_layout Plain Layout
17547 magenta
17548 \end_layout
17549
17550 \end_inset
17551
17552
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 yellow
17558 \end_layout
17559
17560 \end_inset
17561
17562
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 brown
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 darkgray
17578 \end_layout
17579
17580 \end_inset
17581
17582
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 gray
17588 \end_layout
17589
17590 \end_inset
17591
17592
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 lightgray
17598 \end_layout
17599
17600 \end_inset
17601
17602
17603 \begin_inset Flex Code
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607 lime
17608 \end_layout
17609
17610 \end_inset
17611
17612
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617 orange
17618 \end_layout
17619
17620 \end_inset
17621
17622
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 olive
17628 \end_layout
17629
17630 \end_inset
17631
17632
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637 pink
17638 \end_layout
17639
17640 \end_inset
17641
17642
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647 purple
17648 \end_layout
17649
17650 \end_inset
17651
17652
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 teal
17658 \end_layout
17659
17660 \end_inset
17661
17662
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 violet
17668 \end_layout
17669
17670 \end_inset
17671
17672 ]
17673 \end_layout
17674
17675 \begin_layout Description
17676 \begin_inset Flex Code
17677 status collapsed
17678
17679 \begin_layout Plain Layout
17680 Family
17681 \end_layout
17682
17683 \end_inset
17684
17685  [
17686 \emph on
17687
17688 \begin_inset Flex Code
17689 status collapsed
17690
17691 \begin_layout Plain Layout
17692 Roman
17693 \end_layout
17694
17695 \end_inset
17696
17697
17698 \emph default
17699
17700 \begin_inset Flex Code
17701 status collapsed
17702
17703 \begin_layout Plain Layout
17704 Sans
17705 \end_layout
17706
17707 \end_inset
17708
17709
17710 \begin_inset Flex Code
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 Typewriter
17715 \end_layout
17716
17717 \end_inset
17718
17719
17720 \end_layout
17721
17722 \begin_layout Description
17723 \begin_inset Flex Code
17724 status collapsed
17725
17726 \begin_layout Plain Layout
17727 Misc
17728 \end_layout
17729
17730 \end_inset
17731
17732  [
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 文字列
17738 \end_layout
17739
17740 \end_inset
17741
17742 ] 有効な引数は,
17743 \begin_inset Flex Code
17744 status collapsed
17745
17746 \begin_layout Plain Layout
17747 emph
17748 \end_layout
17749
17750 \end_inset
17751
17752
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 noun
17758 \end_layout
17759
17760 \end_inset
17761
17762
17763 \begin_inset Flex Code
17764 status collapsed
17765
17766 \begin_layout Plain Layout
17767 strikeout
17768 \end_layout
17769
17770 \end_inset
17771
17772
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 underbar
17778 \end_layout
17779
17780 \end_inset
17781
17782
17783 \begin_inset Flex Code
17784 status collapsed
17785
17786 \begin_layout Plain Layout
17787 uuline
17788 \end_layout
17789
17790 \end_inset
17791
17792
17793 \begin_inset Flex Code
17794 status collapsed
17795
17796 \begin_layout Plain Layout
17797 uwave
17798 \end_layout
17799
17800 \end_inset
17801
17802
17803 \begin_inset Flex Code
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 no_emph
17808 \end_layout
17809
17810 \end_inset
17811
17812
17813 \begin_inset Flex Code
17814 status collapsed
17815
17816 \begin_layout Plain Layout
17817 no_noun
17818 \end_layout
17819
17820 \end_inset
17821
17822
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 no_strikeout
17828 \end_layout
17829
17830 \end_inset
17831
17832
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 no_bar
17838 \end_layout
17839
17840 \end_inset
17841
17842
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 no_uuline
17848 \end_layout
17849
17850 \end_inset
17851
17852
17853 \begin_inset Flex Code
17854 status collapsed
17855
17856 \begin_layout Plain Layout
17857 no_uwave
17858 \end_layout
17859
17860 \end_inset
17861
17862 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17863 \begin_inset Newline newline
17864 \end_inset
17865
17866 たとえば,
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 emph
17872 \end_layout
17873
17874 \end_inset
17875
17876 は強調を有効にし,
17877 \begin_inset Flex Code
17878 status collapsed
17879
17880 \begin_layout Plain Layout
17881 no_emph
17882 \end_layout
17883
17884 \end_inset
17885
17886 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17887
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 no_emph
17893 \end_layout
17894
17895 \end_inset
17896
17897 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17898 \end_layout
17899
17900 \begin_layout Description
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 Series
17906 \end_layout
17907
17908 \end_inset
17909
17910  [
17911 \emph on
17912
17913 \begin_inset Flex Code
17914 status collapsed
17915
17916 \begin_layout Plain Layout
17917 Medium
17918 \end_layout
17919
17920 \end_inset
17921
17922
17923 \emph default
17924
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 Bold
17930 \end_layout
17931
17932 \end_inset
17933
17934
17935 \end_layout
17936
17937 \begin_layout Description
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 Shape
17943 \end_layout
17944
17945 \end_inset
17946
17947  [
17948 \emph on
17949
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 Up
17955 \end_layout
17956
17957 \end_inset
17958
17959
17960 \emph default
17961
17962 \begin_inset Flex Code
17963 status collapsed
17964
17965 \begin_layout Plain Layout
17966 Italic
17967 \end_layout
17968
17969 \end_inset
17970
17971
17972 \begin_inset Flex Code
17973 status collapsed
17974
17975 \begin_layout Plain Layout
17976 SmallCaps
17977 \end_layout
17978
17979 \end_inset
17980
17981
17982 \begin_inset Flex Code
17983 status collapsed
17984
17985 \begin_layout Plain Layout
17986 Slanted
17987 \end_layout
17988
17989 \end_inset
17990
17991
17992 \end_layout
17993
17994 \begin_layout Description
17995 \begin_inset Flex Code
17996 status collapsed
17997
17998 \begin_layout Plain Layout
17999 Size
18000 \end_layout
18001
18002 \end_inset
18003
18004  [
18005 \begin_inset Flex Code
18006 status collapsed
18007
18008 \begin_layout Plain Layout
18009 tiny
18010 \end_layout
18011
18012 \end_inset
18013
18014
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 small
18020 \end_layout
18021
18022 \end_inset
18023
18024
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029
18030 \emph on
18031 normal
18032 \end_layout
18033
18034 \end_inset
18035
18036
18037 \begin_inset Flex Code
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 large
18042 \end_layout
18043
18044 \end_inset
18045
18046
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 larger
18052 \end_layout
18053
18054 \end_inset
18055
18056
18057 \begin_inset Flex Code
18058 status collapsed
18059
18060 \begin_layout Plain Layout
18061 largest
18062 \end_layout
18063
18064 \end_inset
18065
18066
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 huge
18072 \end_layout
18073
18074 \end_inset
18075
18076
18077 \begin_inset Flex Code
18078 status collapsed
18079
18080 \begin_layout Plain Layout
18081 giant
18082 \end_layout
18083
18084 \end_inset
18085
18086 ]
18087 \end_layout
18088
18089 \begin_layout Subsection
18090 \begin_inset CommandInset label
18091 LatexCommand label
18092 name "subsec:引用書式指定"
18093
18094 \end_inset
18095
18096 引用書式指定
18097 \end_layout
18098
18099 \begin_layout Standard
18100 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18101 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 CiteFormat
18107 \end_layout
18108
18109 \end_inset
18110
18111 ブロックが使用されています.このブロックは,以下のような形をしています.
18112 \end_layout
18113
18114 \begin_layout LyX-Code
18115 CiteFormat
18116 \end_layout
18117
18118 \begin_layout LyX-Code
18119  article ...
18120 \end_layout
18121
18122 \begin_layout LyX-Code
18123  book ...
18124 \end_layout
18125
18126 \begin_layout LyX-Code
18127 End
18128 \end_layout
18129
18130 \begin_layout Standard
18131 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18132 ファイル中に存在し
18133 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18134 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18135 は,いくつかの書式を
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 stdciteformats.inc
18141 \end_layout
18142
18143 \end_inset
18144
18145 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18146 文書クラスにインクルードされています.
18147 \end_layout
18148
18149 \begin_layout Standard
18150 この定義は,Bib\SpecialChar TeX
18151 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 %author%
18157 \end_layout
18158
18159 \end_inset
18160
18161 のように
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 %
18167 \end_layout
18168
18169 \end_inset
18170
18171 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18172 \end_layout
18173
18174 \begin_layout LyX-Code
18175 misc %author%, 
18176 \begin_inset Quotes eld
18177 \end_inset
18178
18179 %title%
18180 \begin_inset Quotes erd
18181 \end_inset
18182
18183
18184 \end_layout
18185
18186 \begin_layout Standard
18187 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18188 \end_layout
18189
18190 \begin_layout Standard
18191 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196 {%volume%[[vol.
18197 \begin_inset space ~
18198 \end_inset
18199
18200 %volume%]]}
18201 \end_layout
18202
18203 \end_inset
18204
18205 のように,条件付きの構成を使用することができます.これは,
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 volume
18211 \end_layout
18212
18213 \end_inset
18214
18215 が存在するならば,「vol.
18216 \begin_inset space ~
18217 \end_inset
18218
18219 」とvolumeキーを出力するという意味です.また,
18220 \begin_inset Newline newline
18221 \end_inset
18222
18223
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 {%author%[[%author%]][[%editor%, ed.]]}
18229 \end_layout
18230
18231 \end_inset
18232
18233
18234 \begin_inset Newline newline
18235 \end_inset
18236
18237 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 author
18243 \end_layout
18244
18245 \end_inset
18246
18247 キーが存在するならば出力され,そうでなければeditorキーと「,
18248 \begin_inset space ~
18249 \end_inset
18250
18251 ed.」が出力されます.ここでもキーは,
18252 \begin_inset Flex Code
18253 status collapsed
18254
18255 \begin_layout Plain Layout
18256 %
18257 \end_layout
18258
18259 \end_inset
18260
18261 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18262 \begin_inset Flex Code
18263 status collapsed
18264
18265 \begin_layout Plain Layout
18266 [[
18267 \end_layout
18268
18269 \end_inset
18270
18271 」と「
18272 \begin_inset Flex Code
18273 status collapsed
18274
18275 \begin_layout Plain Layout
18276 ]]
18277 \end_layout
18278
18279 \end_inset
18280
18281 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18282 \end_layout
18283
18284 \begin_layout Standard
18285 もう一つ,定義中で使用することのできる文法として,
18286 \begin_inset Flex Code
18287 status collapsed
18288
18289 \begin_layout Plain Layout
18290 {!<i>!}
18291 \end_layout
18292
18293 \end_inset
18294
18295 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18296 グを出力させたくはありませんから,HTMLタグは「
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 {!
18302 \end_layout
18303
18304 \end_inset
18305
18306 」と「
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 !}
18312 \end_layout
18313
18314 \end_inset
18315
18316 」でくるんでやらなくてはならないのです.
18317 \end_layout
18318
18319 \begin_layout Standard
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324 CiteFormat
18325 \end_layout
18326
18327 \end_inset
18328
18329 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18330 \end_layout
18331
18332 \begin_layout LyX-Code
18333 !quotetitle 
18334 \begin_inset Quotes eld
18335 \end_inset
18336
18337 %title%
18338 \begin_inset Quotes erd
18339 \end_inset
18340
18341
18342 \end_layout
18343
18344 \begin_layout Standard
18345 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18346 \begin_inset Flex Code
18347 status collapsed
18348
18349 \begin_layout Plain Layout
18350 %!quotetitle%
18351 \end_layout
18352
18353 \end_inset
18354
18355 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18356 は,
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 %!quotetitle%
18362 \end_layout
18363
18364 \end_inset
18365
18366 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18367 \end_layout
18368
18369 \begin_layout LyX-Code
18370 !funfun %funfun%
18371 \end_layout
18372
18373 \begin_layout Standard
18374 のようなことはしないでください.\SpecialChar LyX
18375 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18376 \end_layout
18377
18378 \begin_layout Standard
18379 特殊な定義の二つめは,
18380 \end_layout
18381
18382 \begin_layout LyX-Code
18383 _pptext pp.
18384 \end_layout
18385
18386 \begin_layout Standard
18387 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18388 \begin_inset Flex Code
18389 status collapsed
18390
18391 \begin_layout Plain Layout
18392 %_pptext%
18393 \end_layout
18394
18395 \end_inset
18396
18397 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 stdciteformats.inc
18403 \end_layout
18404
18405 \end_inset
18406
18407 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18408 \end_layout
18409
18410 \begin_layout Standard
18411 以下は,これらの機能を全て使った例です.
18412 \begin_inset VSpace defskip
18413 \end_inset
18414
18415
18416 \end_layout
18417
18418 \begin_layout Standard
18419 \noindent
18420
18421 \family typewriter
18422 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18423 \end_layout
18424
18425 \begin_layout Standard
18426 \begin_inset VSpace defskip
18427 \end_inset
18428
18429 これは,
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434 author
18435 \end_layout
18436
18437 \end_inset
18438
18439 キーが定義されているならば,著者とコンマを出力し,
18440 \begin_inset Flex Code
18441 status collapsed
18442
18443 \begin_layout Plain Layout
18444 author
18445 \end_layout
18446
18447 \end_inset
18448
18449 キーが定義されておらず,
18450 \begin_inset Flex Code
18451 status collapsed
18452
18453 \begin_layout Plain Layout
18454 editor
18455 \end_layout
18456
18457 \end_inset
18458
18459 キーが定義されているならば,編集者名の後に
18460 \begin_inset Flex Code
18461 status collapsed
18462
18463 \begin_layout Plain Layout
18464 _edtext
18465 \end_layout
18466
18467 \end_inset
18468
18469 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 stdciteformats.inc
18475 \end_layout
18476
18477 \end_inset
18478
18479 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18480 \end_layout
18481
18482 \begin_layout Section
18483 \begin_inset CommandInset label
18484 LatexCommand label
18485 name "sec:XHTML出力のタグ"
18486
18487 \end_inset
18488
18489 XHTML出力のタグ
18490 \end_layout
18491
18492 \begin_layout Standard
18493 \SpecialChar LaTeX
18494 やDocBookと同様,\SpecialChar LyX
18495 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18496 は適切な既定値を提供し,前述したように,他のレイアウト
18497 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18498 は,章様式の
18499 \begin_inset Flex Code
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503 Font
18504 \end_layout
18505
18506 \end_inset
18507
18508 宣言で提供されている情報を利用しようと試みます.
18509 \end_layout
18510
18511 \begin_layout Standard
18512 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18513 ,これが必要になる場合もあるので,\SpecialChar LyX
18514 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18515 \end_layout
18516
18517 \begin_layout Standard
18518 様式宣言や差込枠宣言の外で使用することができるタグに,
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 HTMLPreamble
18524 \end_layout
18525
18526 \end_inset
18527
18528
18529 \begin_inset Flex Code
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533 AddToHTMLPreamble
18534 \end_layout
18535
18536 \end_inset
18537
18538 の2つがあることに注意してください.これらの詳細については,
18539 \begin_inset CommandInset ref
18540 LatexCommand ref
18541 reference "subsec:汎用テキストクラスパラメータ"
18542
18543 \end_inset
18544
18545 をご覧ください.
18546 \end_layout
18547
18548 \begin_layout Subsection
18549 \begin_inset CommandInset label
18550 LatexCommand label
18551 name "subsec:段落様式-XHTML"
18552
18553 \end_inset
18554
18555 段落様式
18556 \end_layout
18557
18558 \begin_layout Standard
18559 \SpecialChar LyX
18560 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18561 \begin_inset Flex Code
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565 \SpecialChar LaTeX
18566 Type
18567 \end_layout
18568
18569 \end_inset
18570
18571 タグの内容によって決定されます.
18572 \end_layout
18573
18574 \begin_layout Standard
18575 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18576 \end_layout
18577
18578 \begin_layout LyX-Code
18579 <tag attr=
18580 \begin_inset Quotes erd
18581 \end_inset
18582
18583 value
18584 \begin_inset Quotes erd
18585 \end_inset
18586
18587 >
18588 \end_layout
18589
18590 \begin_layout LyX-Code
18591 <labeltag attr=
18592 \begin_inset Quotes erd
18593 \end_inset
18594
18595 value
18596 \begin_inset Quotes erd
18597 \end_inset
18598
18599 >ラベル</labeltag>
18600 \end_layout
18601
18602 \begin_layout LyX-Code
18603 段落の内容
18604 \end_layout
18605
18606 \begin_layout LyX-Code
18607 </tag>
18608 \end_layout
18609
18610 \begin_layout Standard
18611 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18612 \end_layout
18613
18614 \begin_layout Standard
18615 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18616 \end_layout
18617
18618 \begin_layout LyX-Code
18619 <tag attr=
18620 \begin_inset Quotes erd
18621 \end_inset
18622
18623 value
18624 \begin_inset Quotes erd
18625 \end_inset
18626
18627 >
18628 \end_layout
18629
18630 \begin_layout LyX-Code
18631 <itemtag attr=
18632 \begin_inset Quotes erd
18633 \end_inset
18634
18635 value
18636 \begin_inset Quotes erd
18637 \end_inset
18638
18639 ><labeltag attr=
18640 \begin_inset Quotes erd
18641 \end_inset
18642
18643 value
18644 \begin_inset Quotes erd
18645 \end_inset
18646
18647 >環境ラベル</labeltag>最初の段落.
18648 \end_layout
18649
18650 \begin_layout LyX-Code
18651 </itemtag>
18652 \end_layout
18653
18654 \begin_layout LyX-Code
18655 <itemtag>二つめの段落.</itemtag>
18656 \end_layout
18657
18658 \begin_layout LyX-Code
18659 </tag>
18660 \end_layout
18661
18662 \begin_layout Standard
18663 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18664 \end_layout
18665
18666 \begin_layout Standard
18667 リストに関しては,次のような形になります.
18668 \end_layout
18669
18670 \begin_layout LyX-Code
18671 <tag attr=
18672 \begin_inset Quotes erd
18673 \end_inset
18674
18675 value
18676 \begin_inset Quotes erd
18677 \end_inset
18678
18679 >
18680 \end_layout
18681
18682 \begin_layout LyX-Code
18683 <itemtag attr=
18684 \begin_inset Quotes erd
18685 \end_inset
18686
18687 value
18688 \begin_inset Quotes erd
18689 \end_inset
18690
18691 ><labeltag attr=
18692 \begin_inset Quotes erd
18693 \end_inset
18694
18695 value
18696 \begin_inset Quotes erd
18697 \end_inset
18698
18699 >リストのラベル</labeltag>最初の項目.</itemtag>
18700 \end_layout
18701
18702 \begin_layout LyX-Code
18703 <itemtag attr=
18704 \begin_inset Quotes erd
18705 \end_inset
18706
18707 value
18708 \begin_inset Quotes erd
18709 \end_inset
18710
18711 ><labeltag attr=
18712 \begin_inset Quotes erd
18713 \end_inset
18714
18715 value
18716 \begin_inset Quotes erd
18717 \end_inset
18718
18719 >リストのラベル</labeltag>二つめの項目.</itemtag>
18720 \end_layout
18721
18722 \begin_layout LyX-Code
18723 </tag>
18724 \end_layout
18725
18726 \begin_layout LyX-Code
18727
18728 \end_layout
18729
18730 \begin_layout LyX-Code
18731 <tag attr=
18732 \begin_inset Quotes erd
18733 \end_inset
18734
18735 value
18736 \begin_inset Quotes erd
18737 \end_inset
18738
18739 >
18740 \end_layout
18741
18742 \begin_layout LyX-Code
18743 <labeltag attr=
18744 \begin_inset Quotes erd
18745 \end_inset
18746
18747 value
18748 \begin_inset Quotes erd
18749 \end_inset
18750
18751 >リストのラベル</labeltag><itemtag attr=
18752 \begin_inset Quotes erd
18753 \end_inset
18754
18755 value
18756 \begin_inset Quotes erd
18757 \end_inset
18758
18759 >最初の項目.</itemtag>
18760 \end_layout
18761
18762 \begin_layout LyX-Code
18763 <labeltag attr=
18764 \begin_inset Quotes erd
18765 \end_inset
18766
18767 value
18768 \begin_inset Quotes erd
18769 \end_inset
18770
18771 >リストのラベル</labeltag><itemtag attr=
18772 \begin_inset Quotes erd
18773 \end_inset
18774
18775 value
18776 \begin_inset Quotes erd
18777 \end_inset
18778
18779 >二つめの項目</itemtag>
18780 \end_layout
18781
18782 \begin_layout LyX-Code
18783 </tag>
18784 \end_layout
18785
18786 \begin_layout Standard
18787 ここで
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 labeltag
18793 \end_layout
18794
18795 \end_inset
18796
18797
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 itemtag
18803 \end_layout
18804
18805 \end_inset
18806
18807 の順序が違っていることに注意してください.どちらの順序になるかは,
18808 \begin_inset Flex Code
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 HTMLLabelFirst
18813 \end_layout
18814
18815 \end_inset
18816
18817 の設定に依存します.もし
18818 \begin_inset Flex Code
18819 status collapsed
18820
18821 \begin_layout Plain Layout
18822 HTMLLabelFirst
18823 \end_layout
18824
18825 \end_inset
18826
18827 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18828 \end_layout
18829
18830 \begin_layout Standard
18831 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18832 は適切な既定値を生成
18833 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18834 でここにあるものと考えてください.
18835 \end_layout
18836
18837 \begin_layout Description
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 HTMLAttr
18843 \end_layout
18844
18845 \end_inset
18846
18847  [
18848 \begin_inset Flex Code
18849 status collapsed
18850
18851 \begin_layout Plain Layout
18852 文字列
18853 \end_layout
18854
18855 \end_inset
18856
18857 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18858 \begin_inset Flex Code
18859 status collapsed
18860
18861 \begin_layout Plain Layout
18862 class=`mydiv'
18863 \end_layout
18864
18865 \end_inset
18866
18867 」のようなものです.既定においては,\SpecialChar LyX
18868 は「
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 class=`レイアウト名'
18874 \end_layout
18875
18876 \end_inset
18877
18878 」と出力します.ここで
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 レイアウト名
18884 \end_layout
18885
18886 \end_inset
18887
18888 は,レイアウトの\SpecialChar LyX
18889 名であり,chapterのように小文字で記述します.
18890 \end_layout
18891
18892 \begin_layout Description
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 HTMLForceCSS
18898 \end_layout
18899
18900 \end_inset
18901
18902  [
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907
18908 \emph on
18909 0
18910 \emph default
18911 ,1
18912 \end_layout
18913
18914 \end_inset
18915
18916 ] 
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 HTMLStyle
18922 \end_layout
18923
18924 \end_inset
18925
18926 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
18927 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
18928 \begin_inset Flex Code
18929 status collapsed
18930
18931 \begin_layout Plain Layout
18932 1
18933 \end_layout
18934
18935 \end_inset
18936
18937 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 0
18943 \end_layout
18944
18945 \end_inset
18946
18947 です.
18948 \end_layout
18949
18950 \begin_layout Description
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 HTMLItem
18956 \end_layout
18957
18958 \end_inset
18959
18960  [
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 文字列
18966 \end_layout
18967
18968 \end_inset
18969
18970 ] 環境の段落に使用されるタグ.上記各例の
18971 \begin_inset Flex Code
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 itemtag
18976 \end_layout
18977
18978 \end_inset
18979
18980 を置き換えます.既定値は
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 div
18986 \end_layout
18987
18988 \end_inset
18989
18990 です.
18991 \end_layout
18992
18993 \begin_layout Description
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 HTMLItemAttr
18999 \end_layout
19000
19001 \end_inset
19002
19003  [
19004 \begin_inset Flex Code
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008 文字列
19009 \end_layout
19010
19011 \end_inset
19012
19013 ] itemタグの属性.既定値は
19014 \begin_inset Flex Code
19015 status collapsed
19016
19017 \begin_layout Plain Layout
19018 class=`レイアウト名_item'
19019 \end_layout
19020
19021 \end_inset
19022
19023 です.ここには,様式情報は含まれては
19024 \emph on
19025 なりません
19026 \emph default
19027 .その目的のためには,
19028 \begin_inset Flex Code
19029 status collapsed
19030
19031 \begin_layout Plain Layout
19032 HTMLStyle
19033 \end_layout
19034
19035 \end_inset
19036
19037 を使用してください.
19038 \end_layout
19039
19040 \begin_layout Description
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045 HTMLLabel
19046 \end_layout
19047
19048 \end_inset
19049
19050  [
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 文字列
19056 \end_layout
19057
19058 \end_inset
19059
19060 ] 段落と項目ラベルに使用されるタグ.上記各例の
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065 labeltag
19066 \end_layout
19067
19068 \end_inset
19069
19070 を置き換えます.
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 LabelType
19076 \end_layout
19077
19078 \end_inset
19079
19080
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 Top_Environment
19086 \end_layout
19087
19088 \end_inset
19089
19090
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 Centered_Top_Environment
19096 \end_layout
19097
19098 \end_inset
19099
19100 の時は,既定値は
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 div
19106 \end_layout
19107
19108 \end_inset
19109
19110 ですが,それ以外の時の既定値は
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 span
19116 \end_layout
19117
19118 \end_inset
19119
19120 です.
19121 \end_layout
19122
19123 \begin_layout Description
19124 \begin_inset Flex Code
19125 status collapsed
19126
19127 \begin_layout Plain Layout
19128 HTMLLabelAttr
19129 \end_layout
19130
19131 \end_inset
19132
19133  [
19134 \begin_inset Flex Code
19135 status collapsed
19136
19137 \begin_layout Plain Layout
19138 文字列
19139 \end_layout
19140
19141 \end_inset
19142
19143 ] labelタグの属性.既定値は
19144 \begin_inset Flex Code
19145 status collapsed
19146
19147 \begin_layout Plain Layout
19148 class=`レイアウト名_label'
19149 \end_layout
19150
19151 \end_inset
19152
19153 です.ここには,様式情報は含まれては
19154 \emph on
19155 なりません
19156 \emph default
19157 .その目的のためには,
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 HTMLStyle
19163 \end_layout
19164
19165 \end_inset
19166
19167 を使用してください.
19168 \end_layout
19169
19170 \begin_layout Description
19171 \begin_inset Flex Code
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 HTMLLabelFirst
19176 \end_layout
19177
19178 \end_inset
19179
19180  [
19181 \begin_inset Flex Code
19182 status collapsed
19183
19184 \begin_layout Plain Layout
19185
19186 \emph on
19187 0
19188 \emph default
19189 ,1
19190 \end_layout
19191
19192 \end_inset
19193
19194 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19195 tion環境の中で,
19196 \begin_inset Flex Code
19197 status collapsed
19198
19199 \begin_layout Plain Layout
19200 `<dt>\SpecialChar ldots
19201 </dt><dd>\SpecialChar ldots
19202 </dd>
19203 \end_layout
19204
19205 \end_inset
19206
19207 という形を得るために使用されます.既定値は
19208 \begin_inset Flex Code
19209 status collapsed
19210
19211 \begin_layout Plain Layout
19212 0
19213 \end_layout
19214
19215 \end_inset
19216
19217 で,labelタグはitemタグの中に出力されます.
19218 \end_layout
19219
19220 \begin_layout Description
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 HTMLPreamble
19226 \end_layout
19227
19228 \end_inset
19229
19230  この様式が使用されたときに,
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 <head>
19236 \end_layout
19237
19238 \end_inset
19239
19240 セクションに出力される情報.これは,たとえば,
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 onclick
19246 \end_layout
19247
19248 \end_inset
19249
19250 ハンドラを定義するために
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 <script>
19256 \end_layout
19257
19258 \end_inset
19259
19260 ブロックをインクルードするのに使用することができます.
19261 \end_layout
19262
19263 \begin_layout Description
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 HTMLStyle
19269 \end_layout
19270
19271 \end_inset
19272
19273   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 <style>
19279 \end_layout
19280
19281 \end_inset
19282
19283 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 EndHTMLStyle
19289 \end_layout
19290
19291 \end_inset
19292
19293 で閉じなくてはなりません.
19294 \end_layout
19295
19296 \begin_layout Description
19297 \begin_inset Flex Code
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301 HTMLTag
19302 \end_layout
19303
19304 \end_inset
19305
19306  [
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 文字列
19312 \end_layout
19313
19314 \end_inset
19315
19316 ] 主幹ラベルに使用されるタグ.上記各例の
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 tag
19322 \end_layout
19323
19324 \end_inset
19325
19326 を置き換えます.既定値は
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 div
19332 \end_layout
19333
19334 \end_inset
19335
19336 です.
19337 \end_layout
19338
19339 \begin_layout Description
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 HTMLTitle
19345 \end_layout
19346
19347 \end_inset
19348
19349  [
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354
19355 \emph on
19356 0
19357 \emph default
19358 ,1
19359 \end_layout
19360
19361 \end_inset
19362
19363 ] この様式が,XHTMLファイルの
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368 <title>
19369 \end_layout
19370
19371 \end_inset
19372
19373 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 stdtitle.inc
19379 \end_layout
19380
19381 \end_inset
19382
19383 ファイルでは,
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 title
19389 \end_layout
19390
19391 \end_inset
19392
19393 環境のこの項目を真に設定しています.
19394 \end_layout
19395
19396 \begin_layout Subsection
19397 差込枠レイアウトXHTML
19398 \end_layout
19399
19400 \begin_layout Standard
19401 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19402 \begin_inset Foot
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19407 ん.
19408 \end_layout
19409
19410 \end_inset
19411
19412 .ここでも,\SpecialChar LyX
19413 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19414 \end_layout
19415
19416 \begin_layout Standard
19417 \SpecialChar LyX
19418 が差込枠用に出力するXHTMLは,以下の形を取ります.
19419 \end_layout
19420
19421 \begin_layout LyX-Code
19422 <tag attr=
19423 \begin_inset Quotes erd
19424 \end_inset
19425
19426 value
19427 \begin_inset Quotes erd
19428 \end_inset
19429
19430 >
19431 \end_layout
19432
19433 \begin_layout LyX-Code
19434 <labeltag>ラベル</labeltag>
19435 \end_layout
19436
19437 \begin_layout LyX-Code
19438 <innertag attr=
19439 \begin_inset Quotes erd
19440 \end_inset
19441
19442 value
19443 \begin_inset Quotes erd
19444 \end_inset
19445
19446 >差込枠の内容.</innertag>
19447 \end_layout
19448
19449 \begin_layout LyX-Code
19450 </tag>
19451 \end_layout
19452
19453 \begin_layout Standard
19454 差込枠が多段落を許可している—つまり
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459 MultiPar
19460 \end_layout
19461
19462 \end_inset
19463
19464 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19465 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19466 \begin_inset Flex Code
19467 status collapsed
19468
19469 \begin_layout Plain Layout
19470 span
19471 \end_layout
19472
19473 \end_inset
19474
19475 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19476 す.
19477 \end_layout
19478
19479 \begin_layout Description
19480 \begin_inset Flex Code
19481 status collapsed
19482
19483 \begin_layout Plain Layout
19484 HTMLAttr
19485 \end_layout
19486
19487 \end_inset
19488
19489  [
19490 \begin_inset Flex Code
19491 status collapsed
19492
19493 \begin_layout Plain Layout
19494 文字列
19495 \end_layout
19496
19497 \end_inset
19498
19499 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19500 \begin_inset Flex Code
19501 status collapsed
19502
19503 \begin_layout Plain Layout
19504 class=`myinset' onclick=`\SpecialChar ldots
19505 '
19506 \end_layout
19507
19508 \end_inset
19509
19510 」のようなものです.既定においては,\SpecialChar LyX
19511 は「
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516 class=`差込枠名'
19517 \end_layout
19518
19519 \end_inset
19520
19521 」と出力します.ここで
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526 差込枠名
19527 \end_layout
19528
19529 \end_inset
19530
19531 は,差込枠の\SpecialChar LyX
19532 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19533 \end_layout
19534
19535 \begin_layout Description
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 HTMLForceCSS
19541 \end_layout
19542
19543 \end_inset
19544
19545  [
19546 \begin_inset Flex Code
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550
19551 \emph on
19552 0
19553 \emph default
19554 ,1
19555 \end_layout
19556
19557 \end_inset
19558
19559 ] 
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564 HTMLStyle
19565 \end_layout
19566
19567 \end_inset
19568
19569 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19570 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19571 \begin_inset Flex Code
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 1
19576 \end_layout
19577
19578 \end_inset
19579
19580 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 0
19586 \end_layout
19587
19588 \end_inset
19589
19590 です.
19591 \end_layout
19592
19593 \begin_layout Description
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598 HTMLInnerAttr
19599 \end_layout
19600
19601 \end_inset
19602
19603  [
19604 \begin_inset Flex Code
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608 文字列
19609 \end_layout
19610
19611 \end_inset
19612
19613 ] innerタグの属性.既定値は
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 class=`差込枠名_inner'
19619 \end_layout
19620
19621 \end_inset
19622
19623 です.
19624 \end_layout
19625
19626 \begin_layout Description
19627 \begin_inset Flex Code
19628 status collapsed
19629
19630 \begin_layout Plain Layout
19631 HTMLInnerTag
19632 \end_layout
19633
19634 \end_inset
19635
19636  [
19637 \begin_inset Flex Code
19638 status collapsed
19639
19640 \begin_layout Plain Layout
19641 文字列
19642 \end_layout
19643
19644 \end_inset
19645
19646 ] innerタグです.上記各例の
19647 \begin_inset Flex Code
19648 status collapsed
19649
19650 \begin_layout Plain Layout
19651 innertag
19652 \end_layout
19653
19654 \end_inset
19655
19656 を置き換えます.既定値はなしです.
19657 \end_layout
19658
19659 \begin_layout Description
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 HTMLIsBlock
19665 \end_layout
19666
19667 \end_inset
19668
19669  [
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 0,
19675 \emph on
19676 1
19677 \end_layout
19678
19679 \end_inset
19680
19681 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19682 \end_layout
19683
19684 \begin_layout Description
19685 \begin_inset Flex Code
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 HTMLLabel
19690 \end_layout
19691
19692 \end_inset
19693
19694  [
19695 \begin_inset Flex Code
19696 status collapsed
19697
19698 \begin_layout Plain Layout
19699 文字列
19700 \end_layout
19701
19702 \end_inset
19703
19704 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709
19710 \backslash
19711 arabic{footnote}
19712 \end_layout
19713
19714 \end_inset
19715
19716 など.これは非必須であり,既定値はありません.
19717 \end_layout
19718
19719 \begin_layout Description
19720 \begin_inset Flex Code
19721 status collapsed
19722
19723 \begin_layout Plain Layout
19724 HTMLPreamble
19725 \end_layout
19726
19727 \end_inset
19728
19729  この様式が使用されたときに,
19730 \begin_inset Flex Code
19731 status collapsed
19732
19733 \begin_layout Plain Layout
19734 <head>
19735 \end_layout
19736
19737 \end_inset
19738
19739 セクションに出力される情報.これは,たとえば,
19740 \begin_inset Flex Code
19741 status collapsed
19742
19743 \begin_layout Plain Layout
19744 onclick
19745 \end_layout
19746
19747 \end_inset
19748
19749 ハンドラを定義するために
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754 <script>
19755 \end_layout
19756
19757 \end_inset
19758
19759 ブロックをインクルードするのに使用することができます.
19760 \end_layout
19761
19762 \begin_layout Description
19763 \begin_inset Flex Code
19764 status collapsed
19765
19766 \begin_layout Plain Layout
19767 HTMLStyle
19768 \end_layout
19769
19770 \end_inset
19771
19772   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 <style>
19778 \end_layout
19779
19780 \end_inset
19781
19782 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19783 \end_layout
19784
19785 \begin_layout Description
19786 \begin_inset Flex Code
19787 status collapsed
19788
19789 \begin_layout Plain Layout
19790 HTMLTag
19791 \end_layout
19792
19793 \end_inset
19794
19795  [
19796 \begin_inset Flex Code
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 文字列
19801 \end_layout
19802
19803 \end_inset
19804
19805 ] 主幹ラベルに使用されるタグ.上記各例の
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 tag
19811 \end_layout
19812
19813 \end_inset
19814
19815 を置き換えます.既定値は
19816 \begin_inset Flex Code
19817 status collapsed
19818
19819 \begin_layout Plain Layout
19820 MultiPar
19821 \end_layout
19822
19823 \end_inset
19824
19825 の設定に依存し,
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 MultiPar
19831 \end_layout
19832
19833 \end_inset
19834
19835 が真ならば
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840 div
19841 \end_layout
19842
19843 \end_inset
19844
19845 ,偽ならば
19846 \begin_inset Flex Code
19847 status collapsed
19848
19849 \begin_layout Plain Layout
19850 span
19851 \end_layout
19852
19853 \end_inset
19854
19855 です.
19856 \end_layout
19857
19858 \begin_layout Subsection
19859 フロートXHTML
19860 \end_layout
19861
19862 \begin_layout Standard
19863 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19864 \end_layout
19865
19866 \begin_layout LyX-Code
19867 <tag attr=
19868 \begin_inset Quotes erd
19869 \end_inset
19870
19871 value
19872 \begin_inset Quotes erd
19873 \end_inset
19874
19875 >
19876 \end_layout
19877
19878 \begin_layout LyX-Code
19879 フロートの内容.
19880 \end_layout
19881
19882 \begin_layout LyX-Code
19883 </tag>
19884 \end_layout
19885
19886 \begin_layout Standard
19887 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19888 きます.
19889 \end_layout
19890
19891 \begin_layout Description
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 HTMLAttr
19897 \end_layout
19898
19899 \end_inset
19900
19901  [
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 文字列
19907 \end_layout
19908
19909 \end_inset
19910
19911 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916 class=`myfloat' onclick=`\SpecialChar ldots
19917 '
19918 \end_layout
19919
19920 \end_inset
19921
19922 」のようなものです.既定においては,\SpecialChar LyX
19923 は「
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 class=`float フロート-フロート型'
19929 \end_layout
19930
19931 \end_inset
19932
19933 」と出力します.ここで
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 フロート型
19939 \end_layout
19940
19941 \end_inset
19942
19943 は,フロート宣言で定義された(
19944 \begin_inset CommandInset ref
19945 LatexCommand ref
19946 reference "subsec:フロート"
19947
19948 \end_inset
19949
19950 参照),この型のフロートの\SpecialChar LyX
19951 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
19952 \end_layout
19953
19954 \begin_layout Description
19955 \begin_inset Flex Code
19956 status collapsed
19957
19958 \begin_layout Plain Layout
19959 HTMLStyle
19960 \end_layout
19961
19962 \end_inset
19963
19964   このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19965 \begin_inset Flex Code
19966 status collapsed
19967
19968 \begin_layout Plain Layout
19969 <style>
19970 \end_layout
19971
19972 \end_inset
19973
19974 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19975 \end_layout
19976
19977 \begin_layout Description
19978 \begin_inset Flex Code
19979 status collapsed
19980
19981 \begin_layout Plain Layout
19982 HTMLTag
19983 \end_layout
19984
19985 \end_inset
19986
19987  [
19988 \begin_inset Flex Code
19989 status collapsed
19990
19991 \begin_layout Plain Layout
19992 文字列
19993 \end_layout
19994
19995 \end_inset
19996
19997 ] このフロートに使用されるタグ.上記各例の
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 tag
20003 \end_layout
20004
20005 \end_inset
20006
20007 を置き換えます.既定値は
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 div
20013 \end_layout
20014
20015 \end_inset
20016
20017 であり,ほとんどの場合変更する必要はありません.
20018 \end_layout
20019
20020 \begin_layout Subsection
20021 書誌情報の整形
20022 \end_layout
20023
20024 \begin_layout Standard
20025 書誌情報は,
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 CiteFormat
20031 \end_layout
20032
20033 \end_inset
20034
20035 ブロックを使用して整形することができます.詳細については,
20036 \begin_inset CommandInset ref
20037 LatexCommand ref
20038 reference "subsec:引用書式指定"
20039
20040 \end_inset
20041
20042 を参照してください.
20043 \end_layout
20044
20045 \begin_layout Subsection
20046 \SpecialChar LyX
20047 が生成したCSS
20048 \end_layout
20049
20050 \begin_layout Standard
20051 \SpecialChar LyX
20052 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20053
20054 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20055 \end_layout
20056
20057 \begin_layout Standard
20058 \SpecialChar LyX
20059 は,現在のところ,
20060 \begin_inset Flex Code
20061 status collapsed
20062
20063 \begin_layout Plain Layout
20064 Font
20065 \end_layout
20066
20067 \end_inset
20068
20069 宣言で指定されている
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 Family
20075 \end_layout
20076
20077 \end_inset
20078
20079
20080 \begin_inset Flex Code
20081 status collapsed
20082
20083 \begin_layout Plain Layout
20084 Series
20085 \end_layout
20086
20087 \end_inset
20088
20089
20090 \begin_inset Flex Code
20091 status collapsed
20092
20093 \begin_layout Plain Layout
20094 Shape
20095 \end_layout
20096
20097 \end_inset
20098
20099
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 Size
20105 \end_layout
20106
20107 \end_inset
20108
20109 を利用して,フォント情報についてのみCSSを自動生成します(
20110 \begin_inset CommandInset ref
20111 LatexCommand ref
20112 reference "subsec:フォント指定"
20113
20114 \end_inset
20115
20116 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20117 \begin_inset Flex Code
20118 status collapsed
20119
20120 \begin_layout Plain Layout
20121 Family Sans
20122 \end_layout
20123
20124 \end_inset
20125
20126 」は「
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 font-family: sans-serif
20132 \end_layout
20133
20134 \end_inset
20135
20136 」になります.\SpecialChar LyX
20137 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20138 \begin_inset Flex URL
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142
20143 src/FontInfo.cpp
20144 \end_layout
20145
20146 \end_inset
20147
20148
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 getSizeCSS()
20154 \end_layout
20155
20156 \end_inset
20157
20158 関数をご覧ください.
20159 \end_layout
20160
20161 \begin_layout Chapter
20162 外部素材を取り込む
20163 \begin_inset CommandInset label
20164 LatexCommand label
20165 name "chap:外部素材を取り込む"
20166
20167 \end_inset
20168
20169
20170 \end_layout
20171
20172 \begin_layout Standard
20173 \begin_inset Box Shadowbox
20174 position "t"
20175 hor_pos "c"
20176 has_inner_box 1
20177 inner_pos "t"
20178 use_parbox 0
20179 use_makebox 0
20180 width "100col%"
20181 special "none"
20182 height "1in"
20183 height_special "totalheight"
20184 thickness "0.4pt"
20185 separation "3pt"
20186 shadowsize "4pt"
20187 framecolor "black"
20188 backgroundcolor "none"
20189 status open
20190
20191 \begin_layout Plain Layout
20192 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20193 \end_layout
20194
20195 \end_inset
20196
20197
20198 \end_layout
20199
20200 \begin_layout Standard
20201 \SpecialChar LyX
20202 外部のソースから素材を使用する方法は,取扱説明書『
20203 \emph on
20204 埋込オブジェクト篇
20205 \emph default
20206 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20207 \end_layout
20208
20209 \begin_layout Section
20210 どのように機能するのか
20211 \end_layout
20212
20213 \begin_layout Standard
20214 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20215 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20216 は,Xfigの図や,様々
20217 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20218 \begin_inset Flex MenuItem
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 挿入\SpecialChar menuseparator
20223 ファイル\SpecialChar menuseparator
20224 外部素材
20225 \end_layout
20226
20227 \end_inset
20228
20229 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20230 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20231 の後の版に取り込むことができるようにしてくださることを希望します.
20232 \end_layout
20233
20234 \begin_layout Standard
20235 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20236 いることです.たとえば,
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 Xfig
20242 \end_layout
20243
20244 \end_inset
20245
20246 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20247 \begin_inset Flex Code
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251 .fig
20252 \end_layout
20253
20254 \end_inset
20255
20256 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20257 \begin_inset Flex Code
20258 status collapsed
20259
20260 \begin_layout Plain Layout
20261 fig
20262 \end_layout
20263
20264 \end_inset
20265
20266 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20267 ファイルにそのままインクルードできるように,
20268 \begin_inset Flex Code
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 transfig
20273 \end_layout
20274
20275 \end_inset
20276
20277 を呼び出してPostScriptファイルを生成します.この場合には,
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 .fig
20283 \end_layout
20284
20285 \end_inset
20286
20287 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20288 \end_layout
20289
20290 \begin_layout Standard
20291 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20292 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20293 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20294 の外部素材マネジメントは
20295 ,\SpecialChar LyX
20296 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20297 \end_layout
20298
20299 \begin_layout Standard
20300 \SpecialChar LyX
20301 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20302 の場合には,\SpecialChar LyX
20303 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20304 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20305 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20306 できるようになるのです.
20307 \end_layout
20308
20309 \begin_layout Section
20310 外用ひな型設定ファイル
20311 \end_layout
20312
20313 \begin_layout Standard
20314 \SpecialChar LyX
20315 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20316 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20317 \begin_inset CommandInset ref
20318 LatexCommand ref
20319 reference "sec:セキュリティに関する論点"
20320
20321 \end_inset
20322
20323 のセキュリティに関する議論を読んでおいてください.
20324 \end_layout
20325
20326 \begin_layout Standard
20327 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20328 \end_layout
20329
20330 \begin_layout Standard
20331 外用ひな型は,
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 LyXDir/lib/external_templates
20337 \end_layout
20338
20339 \end_inset
20340
20341 ファイルで定義されています.自分用の版を
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346 UserDir/external_templates
20347 \end_layout
20348
20349 \end_inset
20350
20351 に置くこともできます.
20352 \end_layout
20353
20354 \begin_layout Standard
20355 典型的なひな型は以下のようになります.
20356 \end_layout
20357
20358 \begin_layout LyX-Code
20359 Template XFig
20360 \end_layout
20361
20362 \begin_layout LyX-Code
20363 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20364 \end_layout
20365
20366 \begin_layout LyX-Code
20367 HelpText
20368 \end_layout
20369
20370 \begin_layout LyX-Code
20371 An XFig figure.
20372 \end_layout
20373
20374 \begin_layout LyX-Code
20375 HelpTextEnd
20376 \end_layout
20377
20378 \begin_layout LyX-Code
20379 InputFormat fig
20380 \end_layout
20381
20382 \begin_layout LyX-Code
20383 FileFilter "*.fig"
20384 \end_layout
20385
20386 \begin_layout LyX-Code
20387 AutomaticProduction true
20388 \end_layout
20389
20390 \begin_layout LyX-Code
20391 Transform Rotate
20392 \end_layout
20393
20394 \begin_layout LyX-Code
20395 Transform Resize
20396 \end_layout
20397
20398 \begin_layout LyX-Code
20399 Format LaTeX
20400 \end_layout
20401
20402 \begin_layout LyX-Code
20403 TransformCommand Rotate RotationLatexCommand
20404 \end_layout
20405
20406 \begin_layout LyX-Code
20407 TransformCommand Resize ResizeLatexCommand
20408 \end_layout
20409
20410 \begin_layout LyX-Code
20411 Product "$$RotateFront$$ResizeFront
20412 \end_layout
20413
20414 \begin_layout LyX-Code
20415          
20416 \backslash
20417
20418 \backslash
20419 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20420 \end_layout
20421
20422 \begin_layout LyX-Code
20423          $$ResizeBack$$RotateBack"
20424 \end_layout
20425
20426 \begin_layout LyX-Code
20427 UpdateFormat pstex
20428 \end_layout
20429
20430 \begin_layout LyX-Code
20431 UpdateResult "$$AbsPath$$Basename.pstex_t"
20432 \end_layout
20433
20434 \begin_layout LyX-Code
20435 Requirement "graphicx"
20436 \end_layout
20437
20438 \begin_layout LyX-Code
20439 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20440 \end_layout
20441
20442 \begin_layout LyX-Code
20443 ReferencedFile latex "$$AbsPath$$Basename.eps"
20444 \end_layout
20445
20446 \begin_layout LyX-Code
20447 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20448 \end_layout
20449
20450 \begin_layout LyX-Code
20451 FormatEnd
20452 \end_layout
20453
20454 \begin_layout LyX-Code
20455 Format PDFLaTeX
20456 \end_layout
20457
20458 \begin_layout LyX-Code
20459 TransformCommand Rotate RotationLatexCommand
20460 \end_layout
20461
20462 \begin_layout LyX-Code
20463 TransformCommand Resize ResizeLatexCommand
20464 \end_layout
20465
20466 \begin_layout LyX-Code
20467 Product "$$RotateFront$$ResizeFront
20468 \end_layout
20469
20470 \begin_layout LyX-Code
20471          
20472 \backslash
20473
20474 \backslash
20475 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20476 \end_layout
20477
20478 \begin_layout LyX-Code
20479          $$ResizeBack$$RotateBack"
20480 \end_layout
20481
20482 \begin_layout LyX-Code
20483 UpdateFormat pdftex
20484 \end_layout
20485
20486 \begin_layout LyX-Code
20487 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20488 \end_layout
20489
20490 \begin_layout LyX-Code
20491 Requirement "graphicx"
20492 \end_layout
20493
20494 \begin_layout LyX-Code
20495 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20496 \end_layout
20497
20498 \begin_layout LyX-Code
20499 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20500 \end_layout
20501
20502 \begin_layout LyX-Code
20503 FormatEnd
20504 \end_layout
20505
20506 \begin_layout LyX-Code
20507 Format Ascii
20508 \end_layout
20509
20510 \begin_layout LyX-Code
20511 Product "$$Contents(
20512 \backslash
20513 "$$AbsPath$$Basename.asc
20514 \backslash
20515 ")"
20516 \end_layout
20517
20518 \begin_layout LyX-Code
20519 UpdateFormat asciixfig
20520 \end_layout
20521
20522 \begin_layout LyX-Code
20523 UpdateResult "$$AbsPath$$Basename.asc"
20524 \end_layout
20525
20526 \begin_layout LyX-Code
20527 FormatEnd
20528 \end_layout
20529
20530 \begin_layout LyX-Code
20531 Format DocBook
20532 \end_layout
20533
20534 \begin_layout LyX-Code
20535 Product "<graphic fileref=
20536 \backslash
20537 "$$AbsOrRelPathMaster$$Basename.eps
20538 \backslash
20539 ">
20540 \end_layout
20541
20542 \begin_layout LyX-Code
20543          </graphic>"
20544 \end_layout
20545
20546 \begin_layout LyX-Code
20547 UpdateFormat eps
20548 \end_layout
20549
20550 \begin_layout LyX-Code
20551 UpdateResult "$$AbsPath$$Basename.eps"
20552 \end_layout
20553
20554 \begin_layout LyX-Code
20555 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20556 \end_layout
20557
20558 \begin_layout LyX-Code
20559 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20560 \end_layout
20561
20562 \begin_layout LyX-Code
20563 FormatEnd
20564 \end_layout
20565
20566 \begin_layout LyX-Code
20567 Product "[XFig: $$FName]"
20568 \end_layout
20569
20570 \begin_layout LyX-Code
20571 FormatEnd
20572 \end_layout
20573
20574 \begin_layout LyX-Code
20575 TemplateEnd
20576 \end_layout
20577
20578 \begin_layout Standard
20579 ご覧の通り,ひな型は
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 Template
20585 \end_layout
20586
20587 \end_inset
20588
20589  \SpecialChar ldots
20590  
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 TemplateEnd
20596 \end_layout
20597
20598 \end_inset
20599
20600 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20601 \begin_inset Flex Code
20602 status collapsed
20603
20604 \begin_layout Plain Layout
20605 Format
20606 \end_layout
20607
20608 \end_inset
20609
20610  \SpecialChar ldots
20611  
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 FormatEnd
20617 \end_layout
20618
20619 \end_inset
20620
20621 部があります.
20622 \end_layout
20623
20624 \begin_layout Subsection
20625 ひな型のヘッダ
20626 \end_layout
20627
20628 \begin_layout Description
20629 \begin_inset Flex Code
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 AutomaticProduction
20634 \begin_inset space ~
20635 \end_inset
20636
20637 true|false
20638 \end_layout
20639
20640 \end_inset
20641
20642  このひな型で扱うファイルを\SpecialChar LyX
20643 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20644 \end_layout
20645
20646 \begin_layout Description
20647 \begin_inset Flex Code
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651 FileFilter
20652 \begin_inset space ~
20653 \end_inset
20654
20655 <パターン>
20656 \end_layout
20657
20658 \end_inset
20659
20660  望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 .obj
20666 \end_layout
20667
20668 \end_inset
20669
20670
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 .tgo
20676 \end_layout
20677
20678 \end_inset
20679
20680 があります),「
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 *.{obj,tgo}
20686 \end_layout
20687
20688 \end_inset
20689
20690 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20691 \end_layout
20692
20693 \begin_layout Description
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 GuiName
20699 \begin_inset space ~
20700 \end_inset
20701
20702 <GUI名>
20703 \end_layout
20704
20705 \end_inset
20706
20707  この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20708 \end_layout
20709
20710 \begin_layout Description
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 HelpText
20716 \begin_inset space ~
20717 \end_inset
20718
20719 <文章>
20720 \begin_inset space ~
20721 \end_inset
20722
20723 HelpTextEnd
20724 \end_layout
20725
20726 \end_inset
20727
20728  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20729 ず現れなくてはなりません.
20730 \end_layout
20731
20732 \begin_layout Description
20733 \begin_inset Flex Code
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737 InputFormat
20738 \begin_inset space ~
20739 \end_inset
20740
20741 <書式>
20742 \end_layout
20743
20744 \end_inset
20745
20746  オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20747 が知っている書式名でなくてはなりません(
20748 \begin_inset CommandInset ref
20749 LatexCommand ref
20750 reference "sec:ファイル形式"
20751
20752 \end_inset
20753
20754 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 *
20760 \end_layout
20761
20762 \end_inset
20763
20764 」を使用してください.この場合,\SpecialChar LyX
20765 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20766 \end_layout
20767
20768 \begin_layout Description
20769 \begin_inset Flex Code
20770 status collapsed
20771
20772 \begin_layout Plain Layout
20773 Template
20774 \begin_inset space ~
20775 \end_inset
20776
20777 <ID>
20778 \end_layout
20779
20780 \end_inset
20781
20782  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20783 \end_layout
20784
20785 \begin_layout Description
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 Transform
20791 \begin_inset space ~
20792 \end_inset
20793
20794 Rotate|Resize|Clip|Extra
20795 \end_layout
20796
20797 \end_inset
20798
20799  このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20800 ログ中の対応するタブを使用可能にします.
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 Transform
20806 \end_layout
20807
20808 \end_inset
20809
20810 コマンド一つずつに応じて,
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 Format
20816 \end_layout
20817
20818 \end_inset
20819
20820 部に,対応する
20821 \begin_inset Flex Code
20822 status collapsed
20823
20824 \begin_layout Plain Layout
20825 TransformCommand
20826 \end_layout
20827
20828 \end_inset
20829
20830 コマンドか
20831 \begin_inset Flex Code
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835 TransformOption
20836 \end_layout
20837
20838 \end_inset
20839
20840 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20841 \end_layout
20842
20843 \begin_layout Subsection
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 Format
20849 \end_layout
20850
20851 \end_inset
20852
20853
20854 \end_layout
20855
20856 \begin_layout Description
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 Format
20862 \begin_inset space ~
20863 \end_inset
20864
20865 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
20866 \end_layout
20867
20868 \end_inset
20869
20870  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 Format
20876 \end_layout
20877
20878 \end_inset
20879
20880 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20881 ようになります.
20882 \end_layout
20883
20884 \begin_layout Description
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 Option
20890 \begin_inset space ~
20891 \end_inset
20892
20893 <名称>
20894 \begin_inset space ~
20895 \end_inset
20896
20897 <値>
20898 \end_layout
20899
20900 \end_inset
20901
20902  このコマンドは,
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 Product
20908 \end_layout
20909
20910 \end_inset
20911
20912 での代入に使うマクロ
20913 \begin_inset Flex Code
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917 $$<名称>
20918 \end_layout
20919
20920 \end_inset
20921
20922 を新たに定義します.
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927 <値>
20928 \end_layout
20929
20930 \end_inset
20931
20932 自体にも代入マクロを使うことができます.
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 Product
20938 \end_layout
20939
20940 \end_inset
20941
20942
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 <値>
20948 \end_layout
20949
20950 \end_inset
20951
20952 を直接使用するよりも優れた点は,
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 $$<名称>
20958 \end_layout
20959
20960 \end_inset
20961
20962 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
20963 \end_layout
20964
20965 \begin_layout Description
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 Product
20971 \begin_inset space ~
20972 \end_inset
20973
20974 <文>
20975 \end_layout
20976
20977 \end_inset
20978
20979  書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
20980
20981 \end_layout
20982
20983 \begin_layout Description
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 Preamble
20989 \begin_inset space ~
20990 \end_inset
20991
20992 <名称>
20993 \end_layout
20994
20995 \end_inset
20996
20997  このコマンドは,\SpecialChar LaTeX
20998 プリアンブルに入れるプリアンブル片を指定します.これは
20999 \begin_inset Flex Code
21000 status collapsed
21001
21002 \begin_layout Plain Layout
21003 PreambleDef
21004 \end_layout
21005
21006 \end_inset
21007
21008  \SpecialChar ldots
21009  
21010 \begin_inset Flex Code
21011 status collapsed
21012
21013 \begin_layout Plain Layout
21014 PreambleDefEnd
21015 \end_layout
21016
21017 \end_inset
21018
21019 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21020 \end_layout
21021
21022 \begin_layout Description
21023 \begin_inset Flex Code
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 ReferencedFile
21028 \begin_inset space ~
21029 \end_inset
21030
21031 <書式>
21032 \begin_inset space ~
21033 \end_inset
21034
21035 <ファイル名>
21036 \end_layout
21037
21038 \end_inset
21039
21040  このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21041 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21042 \end_layout
21043
21044 \begin_layout Description
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049 Requirement
21050 \begin_inset space ~
21051 \end_inset
21052
21053 <package>
21054 \end_layout
21055
21056 \end_inset
21057
21058  必要とされる\SpecialChar LaTeX
21059 パッケージ名.パッケージは,\SpecialChar LaTeX
21060 プリアンブル中で
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065
21066 \backslash
21067 usepackage{}
21068 \end_layout
21069
21070 \end_inset
21071
21072 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21073 \end_layout
21074
21075 \begin_layout Description
21076 \begin_inset Flex Code
21077 status collapsed
21078
21079 \begin_layout Plain Layout
21080 TransformCommand
21081 \begin_inset space ~
21082 \end_inset
21083
21084 Rotate
21085 \begin_inset space ~
21086 \end_inset
21087
21088 RotationLatexCommand
21089 \end_layout
21090
21091 \end_inset
21092
21093  このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21094 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21095 \end_layout
21096
21097 \begin_layout Description
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 TransformCommand
21103 \begin_inset space ~
21104 \end_inset
21105
21106 Resize
21107 \begin_inset space ~
21108 \end_inset
21109
21110 ResizeLatexCommand
21111 \end_layout
21112
21113 \end_inset
21114
21115  このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21116 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21117 \end_layout
21118
21119 \begin_layout Description
21120 \begin_inset Flex Code
21121 status collapsed
21122
21123 \begin_layout Plain Layout
21124 TransformOption
21125 \begin_inset space ~
21126 \end_inset
21127
21128 Rotate
21129 \begin_inset space ~
21130 \end_inset
21131
21132 RotationLatexOption
21133 \end_layout
21134
21135 \end_inset
21136
21137  このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21138 \end_layout
21139
21140 \begin_layout Description
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 TransformOption
21146 \begin_inset space ~
21147 \end_inset
21148
21149 Resize
21150 \begin_inset space ~
21151 \end_inset
21152
21153 ResizeLatexOption
21154 \end_layout
21155
21156 \end_inset
21157
21158  このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21159 \end_layout
21160
21161 \begin_layout Description
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 TransformOption
21167 \begin_inset space ~
21168 \end_inset
21169
21170 Clip
21171 \begin_inset space ~
21172 \end_inset
21173
21174 ClipLatexOption
21175 \end_layout
21176
21177 \end_inset
21178
21179  このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21180 \end_layout
21181
21182 \begin_layout Description
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 TransformOption
21188 \begin_inset space ~
21189 \end_inset
21190
21191 Extra
21192 \begin_inset space ~
21193 \end_inset
21194
21195 ExtraLatexOption
21196 \end_layout
21197
21198 \end_inset
21199
21200  このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21201 \end_layout
21202
21203 \begin_layout Description
21204 \begin_inset Flex Code
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 UpdateFormat
21209 \begin_inset space ~
21210 \end_inset
21211
21212 <書式>
21213 \end_layout
21214
21215 \end_inset
21216
21217  変換されたファイルのファイル形式.これは,\SpecialChar LyX
21218 が知っている書式名でなくてはなりません(
21219 \begin_inset Flex MenuItem
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 ツール\SpecialChar menuseparator
21224 設定\SpecialChar menuseparator
21225 ファイル処理\SpecialChar menuseparator
21226 ファイル書式
21227 \end_layout
21228
21229 \end_inset
21230
21231 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 pdf6
21237 \end_layout
21238
21239 \end_inset
21240
21241 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21242 \end_layout
21243
21244 \begin_layout Description
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 UpdateResult
21250 \begin_inset space ~
21251 \end_inset
21252
21253 <ファイル名>
21254 \end_layout
21255
21256 \end_inset
21257
21258  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21259 \end_layout
21260
21261 \begin_layout Subsection
21262 プリアンブルの定義
21263 \end_layout
21264
21265 \begin_layout Standard
21266 外用ひな型設定ファイルには,
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 PreambleDef
21272 \end_layout
21273
21274 \end_inset
21275
21276  \SpecialChar ldots
21277  
21278 \begin_inset Flex Code
21279 status collapsed
21280
21281 \begin_layout Plain Layout
21282 PreambleDefEnd
21283 \end_layout
21284
21285 \end_inset
21286
21287 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 Format
21293 \end_layout
21294
21295 \end_inset
21296
21297 部で使用することができます.
21298 \end_layout
21299
21300 \begin_layout Section
21301 代入機構
21302 \end_layout
21303
21304 \begin_layout Standard
21305 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21306 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21307 \end_layout
21308
21309 \begin_layout Standard
21310 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21311 \end_layout
21312
21313 \begin_layout Standard
21314 使用できるマクロは以下の通りです.
21315 \end_layout
21316
21317 \begin_layout Description
21318 \begin_inset Flex Code
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322 $$AbsOrRelPathMaster
21323 \end_layout
21324
21325 \end_inset
21326
21327  \SpecialChar LyX
21328 親文書への絶対ファイルパスないしは相対ファイルパス
21329 \end_layout
21330
21331 \begin_layout Description
21332 \begin_inset Flex Code
21333 status collapsed
21334
21335 \begin_layout Plain Layout
21336 $$AbsOrRelPathParent
21337 \end_layout
21338
21339 \end_inset
21340
21341  \SpecialChar LyX
21342 文書への絶対ファイルパスないしは相対ファイルパス
21343 \end_layout
21344
21345 \begin_layout Description
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 $$AbsPath
21351 \end_layout
21352
21353 \end_inset
21354
21355  絶対ファイルパス
21356 \end_layout
21357
21358 \begin_layout Description
21359 \begin_inset Flex Code
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 $$Basename
21364 \end_layout
21365
21366 \end_inset
21367
21368  パスおよび拡張子を除いたファイル名
21369 \end_layout
21370
21371 \begin_layout Description
21372 \begin_inset Flex Code
21373 status collapsed
21374
21375 \begin_layout Plain Layout
21376 $$Contents(
21377 \begin_inset Quotes eld
21378 \end_inset
21379
21380 filename.ext
21381 \begin_inset Quotes erd
21382 \end_inset
21383
21384 )
21385 \end_layout
21386
21387 \end_inset
21388
21389  このマクロは,
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 filename.ext
21395 \end_layout
21396
21397 \end_inset
21398
21399 と云う名のファイルの中身を展開します.
21400 \end_layout
21401
21402 \begin_layout Description
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 $$Extension
21408 \end_layout
21409
21410 \end_inset
21411
21412  ファイル拡張子(点を含む)
21413 \end_layout
21414
21415 \begin_layout Description
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 $$pngOrjpg
21421 \end_layout
21422
21423 \end_inset
21424
21425  これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21426 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21427 出力形式に対してこのマクロを使用します.
21428 \end_layout
21429
21430 \begin_layout Description
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 $$FName
21436 \end_layout
21437
21438 \end_inset
21439
21440  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21441 文書への絶対パスでも良いですし,相対パスでも構いません.
21442 \end_layout
21443
21444 \begin_layout Description
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 $$FPath
21450 \end_layout
21451
21452 \end_inset
21453
21454  
21455 \begin_inset Flex Code
21456 status collapsed
21457
21458 \begin_layout Plain Layout
21459 $$FName
21460 \end_layout
21461
21462 \end_inset
21463
21464 のパス部分(\SpecialChar LyX
21465 文書への絶対パス名か相対パス名)
21466 \end_layout
21467
21468 \begin_layout Description
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 $$RelPathMaster
21474 \end_layout
21475
21476 \end_inset
21477
21478  \SpecialChar LyX
21479 親文書への相対ファイルパス
21480 \end_layout
21481
21482 \begin_layout Description
21483 \begin_inset Flex Code
21484 status collapsed
21485
21486 \begin_layout Plain Layout
21487 $$RelPathParent
21488 \end_layout
21489
21490 \end_inset
21491
21492  \SpecialChar LyX
21493 文書への相対ファイルパス
21494 \end_layout
21495
21496 \begin_layout Description
21497 \begin_inset Flex Code
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 $$Sysdir
21502 \end_layout
21503
21504 \end_inset
21505
21506  このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21507 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21508 \end_layout
21509
21510 \begin_layout Description
21511 \begin_inset Flex Code
21512 status collapsed
21513
21514 \begin_layout Plain Layout
21515 $$Tempname
21516 \end_layout
21517
21518 \end_inset
21519
21520  元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21521 \end_layout
21522
21523 \begin_layout Standard
21524 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を 
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 $$AbsPath$$Basename$$Extension
21530 \end_layout
21531
21532 \end_inset
21533
21534 のようにして作ることができます.
21535 \end_layout
21536
21537 \begin_layout Standard
21538 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543 Transform
21544 \end_layout
21545
21546 \end_inset
21547
21548 コマンドと
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 TransformCommand
21554 \end_layout
21555
21556 \end_inset
21557
21558 コマンドが有効にされている場合,
21559 \begin_inset Flex Code
21560 status collapsed
21561
21562 \begin_layout Plain Layout
21563 Product
21564 \end_layout
21565
21566 \end_inset
21567
21568 コマンドは,これらに加えて以下の代入もサポートします.
21569 \end_layout
21570
21571 \begin_layout Description
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576 $$ResizeFront
21577 \end_layout
21578
21579 \end_inset
21580
21581  伸縮コマンドの前置部.
21582 \end_layout
21583
21584 \begin_layout Description
21585 \begin_inset Flex Code
21586 status collapsed
21587
21588 \begin_layout Plain Layout
21589 $$ResizeBack
21590 \end_layout
21591
21592 \end_inset
21593
21594  伸縮コマンドの後置部.
21595 \end_layout
21596
21597 \begin_layout Description
21598 \begin_inset Flex Code
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 $$RotateFront
21603 \end_layout
21604
21605 \end_inset
21606
21607  回転コマンドの前置部.
21608 \end_layout
21609
21610 \begin_layout Description
21611 \begin_inset Flex Code
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615 $$RotateBack
21616 \end_layout
21617
21618 \end_inset
21619
21620  回転コマンドの後置部.
21621 \end_layout
21622
21623 \begin_layout Standard
21624 \begin_inset Flex Code
21625 status collapsed
21626
21627 \begin_layout Plain Layout
21628 Option
21629 \end_layout
21630
21631 \end_inset
21632
21633 コマンドの値に入れる文字列では,
21634 \begin_inset Flex Code
21635 status collapsed
21636
21637 \begin_layout Plain Layout
21638 Transform
21639 \end_layout
21640
21641 \end_inset
21642
21643 コマンドと
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 TransformOption
21649 \end_layout
21650
21651 \end_inset
21652
21653 コマンドが有効にされていれば,以下の代入もサポートされます.
21654 \end_layout
21655
21656 \begin_layout Description
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661 $$Clip
21662 \end_layout
21663
21664 \end_inset
21665
21666  切り抜きオプション.
21667 \end_layout
21668
21669 \begin_layout Description
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 $$Extra
21675 \end_layout
21676
21677 \end_inset
21678
21679  追加オプション.
21680 \end_layout
21681
21682 \begin_layout Description
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 $$Resize
21688 \end_layout
21689
21690 \end_inset
21691
21692  伸縮オプション.
21693 \end_layout
21694
21695 \begin_layout Description
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 $$Rotate
21701 \end_layout
21702
21703 \end_inset
21704
21705  回転オプション.
21706 \end_layout
21707
21708 \begin_layout Standard
21709 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21710 \end_layout
21711
21712 \begin_layout Enumerate
21713 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21714 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21715 \end_layout
21716
21717 \begin_layout Enumerate
21718 \SpecialChar LaTeX
21719 は,相対ファイル名に関して,\SpecialChar LyX
21720 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21721 にとって相対ファイル名とは,常にこのファイル名が書か
21722 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21723 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21724 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21725 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21726 を選びさえすれば,これは\SpecialChar LyX
21727 が自動的に行ってくれます.
21728 \end_layout
21729
21730 \begin_layout Standard
21731 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21732 \end_layout
21733
21734 \begin_layout Itemize
21735 絶対パスが必要とされるときには
21736 \begin_inset Flex Code
21737 status collapsed
21738
21739 \begin_layout Plain Layout
21740 $$AbsPath
21741 \end_layout
21742
21743 \end_inset
21744
21745 を使う.
21746 \end_layout
21747
21748 \begin_layout Itemize
21749 代入された文字列が,\SpecialChar LaTeX
21750 インプットの一種である場合には,
21751 \begin_inset Flex Code
21752 status collapsed
21753
21754 \begin_layout Plain Layout
21755 $$AbsOrRelPathMaster
21756 \end_layout
21757
21758 \end_inset
21759
21760 を使う.
21761 \end_layout
21762
21763 \begin_layout Itemize
21764 それ以外ならば,ユーザの選択を尊重するために
21765 \begin_inset Flex Code
21766 status collapsed
21767
21768 \begin_layout Plain Layout
21769 $$AbsOrRelPathParent
21770 \end_layout
21771
21772 \end_inset
21773
21774 を使う.
21775 \end_layout
21776
21777 \begin_layout Standard
21778 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21779 \begin_inset Flex Code
21780 status collapsed
21781
21782 \begin_layout Plain Layout
21783 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21784 \end_layout
21785
21786 \end_inset
21787
21788 というコマンドがあります.この場合,
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 .pstex_t
21794 \end_layout
21795
21796 \end_inset
21797
21798 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21799 \end_layout
21800
21801 \begin_layout Section
21802 セキュリティに関する論点
21803 \begin_inset CommandInset label
21804 LatexCommand label
21805 name "sec:セキュリティに関する論点"
21806
21807 \end_inset
21808
21809
21810 \end_layout
21811
21812 \begin_layout Standard
21813 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21814 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21815 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21816 \end_layout
21817
21818 \begin_layout Standard
21819 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21820 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21821 せん.これは,外部プログラムが
21822 \begin_inset Flex Code
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 system
21827 \end_layout
21828
21829 \end_inset
21830
21831 システムコールではなく,
21832 \begin_inset Flex Code
21833 status collapsed
21834
21835 \begin_layout Plain Layout
21836 execvp
21837 \end_layout
21838
21839 \end_inset
21840
21841 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21842 \end_layout
21843
21844 \begin_layout Standard
21845 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21846 できません.これは,\SpecialChar LyX
21847 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21848 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21849 \end_layout
21850
21851 \begin_layout Standard
21852 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21853 うになるため,一般的には,統御下に置いた状態で
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 execvp
21859 \end_layout
21860
21861 \end_inset
21862
21863 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21864 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21865 \emph on
21866 間違いなく
21867 \emph default
21868 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21869 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21870 には,安全でないひな型は決して入っていません
21871
21872 \end_layout
21873
21874 \begin_layout Standard
21875 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21876 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21877 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21878 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21879 使用する前に,行うようにしてください.
21880 \end_layout
21881
21882 \begin_layout Chapter
21883 \start_of_appendix
21884 サポートされているレイアウト用\SpecialChar LyX
21885 関数一覧
21886 \begin_inset CommandInset label
21887 LatexCommand label
21888 name "chap:関数一覧"
21889
21890 \end_inset
21891
21892
21893 \end_layout
21894
21895 \begin_layout Standard
21896 \align center
21897 \begin_inset Tabular
21898 <lyxtabular version="3" rows="11" columns="8">
21899 <features tabularvalignment="middle">
21900 <column alignment="left" valignment="top">
21901 <column alignment="left" valignment="top">
21902 <column alignment="left" valignment="top">
21903 <column alignment="left" valignment="top">
21904 <column alignment="left" valignment="top">
21905 <column alignment="left" valignment="top">
21906 <column alignment="left" valignment="top">
21907 <column alignment="left" valignment="top">
21908 <row>
21909 <cell alignment="left" valignment="top" usebox="none">
21910 \begin_inset Text
21911
21912 \begin_layout Plain Layout
21913 accents
21914 \end_layout
21915
21916 \end_inset
21917 </cell>
21918 <cell alignment="left" valignment="top" usebox="none">
21919 \begin_inset Text
21920
21921 \begin_layout Plain Layout
21922 booktabs
21923 \end_layout
21924
21925 \end_inset
21926 </cell>
21927 <cell alignment="left" valignment="top" usebox="none">
21928 \begin_inset Text
21929
21930 \begin_layout Plain Layout
21931 feyn
21932 \end_layout
21933
21934 \end_inset
21935 </cell>
21936 <cell alignment="left" valignment="top" usebox="none">
21937 \begin_inset Text
21938
21939 \begin_layout Plain Layout
21940 listings
21941 \end_layout
21942
21943 \end_inset
21944 </cell>
21945 <cell alignment="center" valignment="top" usebox="none">
21946 \begin_inset Text
21947
21948 \begin_layout Plain Layout
21949 natbib
21950 \end_layout
21951
21952 \end_inset
21953 </cell>
21954 <cell alignment="center" valignment="top" usebox="none">
21955 \begin_inset Text
21956
21957 \begin_layout Plain Layout
21958 rotfloat
21959 \end_layout
21960
21961 \end_inset
21962 </cell>
21963 <cell alignment="center" valignment="top" usebox="none">
21964 \begin_inset Text
21965
21966 \begin_layout Plain Layout
21967 tfrupee
21968 \end_layout
21969
21970 \end_inset
21971 </cell>
21972 <cell alignment="center" valignment="top" usebox="none">
21973 \begin_inset Text
21974
21975 \begin_layout Plain Layout
21976 wasysym
21977 \end_layout
21978
21979 \end_inset
21980 </cell>
21981 </row>
21982 <row>
21983 <cell alignment="left" valignment="top" usebox="none">
21984 \begin_inset Text
21985
21986 \begin_layout Plain Layout
21987 amsbsy
21988 \end_layout
21989
21990 \end_inset
21991 </cell>
21992 <cell alignment="left" valignment="top" usebox="none">
21993 \begin_inset Text
21994
21995 \begin_layout Plain Layout
21996 calc
21997 \end_layout
21998
21999 \end_inset
22000 </cell>
22001 <cell alignment="left" valignment="top" usebox="none">
22002 \begin_inset Text
22003
22004 \begin_layout Plain Layout
22005 fixltx2e
22006 \end_layout
22007
22008 \end_inset
22009 </cell>
22010 <cell alignment="left" valignment="top" usebox="none">
22011 \begin_inset Text
22012
22013 \begin_layout Plain Layout
22014 longtable
22015 \end_layout
22016
22017 \end_inset
22018 </cell>
22019 <cell alignment="center" valignment="top" usebox="none">
22020 \begin_inset Text
22021
22022 \begin_layout Plain Layout
22023 nomencl
22024 \end_layout
22025
22026 \end_inset
22027 </cell>
22028 <cell alignment="center" valignment="top" usebox="none">
22029 \begin_inset Text
22030
22031 \begin_layout Plain Layout
22032 rsphrase
22033 \end_layout
22034
22035 \end_inset
22036 </cell>
22037 <cell alignment="center" valignment="top" usebox="none">
22038 \begin_inset Text
22039
22040 \begin_layout Plain Layout
22041 tipa
22042 \end_layout
22043
22044 \end_inset
22045 </cell>
22046 <cell alignment="center" valignment="top" usebox="none">
22047 \begin_inset Text
22048
22049 \begin_layout Plain Layout
22050 wrapfig
22051 \end_layout
22052
22053 \end_inset
22054 </cell>
22055 </row>
22056 <row>
22057 <cell alignment="left" valignment="top" usebox="none">
22058 \begin_inset Text
22059
22060 \begin_layout Plain Layout
22061 amscd
22062 \end_layout
22063
22064 \end_inset
22065 </cell>
22066 <cell alignment="left" valignment="top" usebox="none">
22067 \begin_inset Text
22068
22069 \begin_layout Plain Layout
22070 CJK
22071 \end_layout
22072
22073 \end_inset
22074 </cell>
22075 <cell alignment="left" valignment="top" usebox="none">
22076 \begin_inset Text
22077
22078 \begin_layout Plain Layout
22079 float
22080 \end_layout
22081
22082 \end_inset
22083 </cell>
22084 <cell alignment="left" valignment="top" usebox="none">
22085 \begin_inset Text
22086
22087 \begin_layout Plain Layout
22088 lyxskak
22089 \end_layout
22090
22091 \end_inset
22092 </cell>
22093 <cell alignment="center" valignment="top" usebox="none">
22094 \begin_inset Text
22095
22096 \begin_layout Plain Layout
22097 pdfcolmk
22098 \end_layout
22099
22100 \end_inset
22101 </cell>
22102 <cell alignment="center" valignment="top" usebox="none">
22103 \begin_inset Text
22104
22105 \begin_layout Plain Layout
22106 setspace
22107 \end_layout
22108
22109 \end_inset
22110 </cell>
22111 <cell alignment="center" valignment="top" usebox="none">
22112 \begin_inset Text
22113
22114 \begin_layout Plain Layout
22115 tipx
22116 \end_layout
22117
22118 \end_inset
22119 </cell>
22120 <cell alignment="center" valignment="top" usebox="none">
22121 \begin_inset Text
22122
22123 \begin_layout Plain Layout
22124 xargs
22125 \end_layout
22126
22127 \end_inset
22128 </cell>
22129 </row>
22130 <row>
22131 <cell alignment="left" valignment="top" usebox="none">
22132 \begin_inset Text
22133
22134 \begin_layout Plain Layout
22135 amsmath
22136 \end_layout
22137
22138 \end_inset
22139 </cell>
22140 <cell alignment="left" valignment="top" usebox="none">
22141 \begin_inset Text
22142
22143 \begin_layout Plain Layout
22144 color
22145 \end_layout
22146
22147 \end_inset
22148 </cell>
22149 <cell alignment="left" valignment="top" usebox="none">
22150 \begin_inset Text
22151
22152 \begin_layout Plain Layout
22153 framed
22154 \end_layout
22155
22156 \end_inset
22157 </cell>
22158 <cell alignment="left" valignment="top" usebox="none">
22159 \begin_inset Text
22160
22161 \begin_layout Plain Layout
22162 makeidx
22163 \end_layout
22164
22165 \end_inset
22166 </cell>
22167 <cell alignment="center" valignment="top" usebox="none">
22168 \begin_inset Text
22169
22170 \begin_layout Plain Layout
22171 pdfpages
22172 \end_layout
22173
22174 \end_inset
22175 </cell>
22176 <cell alignment="center" valignment="top" usebox="none">
22177 \begin_inset Text
22178
22179 \begin_layout Plain Layout
22180 shapepar
22181 \end_layout
22182
22183 \end_inset
22184 </cell>
22185 <cell alignment="center" valignment="top" usebox="none">
22186 \begin_inset Text
22187
22188 \begin_layout Plain Layout
22189 tone
22190 \end_layout
22191
22192 \end_inset
22193 </cell>
22194 <cell alignment="center" valignment="top" usebox="none">
22195 \begin_inset Text
22196
22197 \begin_layout Plain Layout
22198 xcolor
22199 \end_layout
22200
22201 \end_inset
22202 </cell>
22203 </row>
22204 <row>
22205 <cell alignment="left" valignment="top" usebox="none">
22206 \begin_inset Text
22207
22208 \begin_layout Plain Layout
22209 amssymb
22210 \end_layout
22211
22212 \end_inset
22213 </cell>
22214 <cell alignment="left" valignment="top" usebox="none">
22215 \begin_inset Text
22216
22217 \begin_layout Plain Layout
22218 covington
22219 \end_layout
22220
22221 \end_inset
22222 </cell>
22223 <cell alignment="left" valignment="top" usebox="none">
22224 \begin_inset Text
22225
22226 \begin_layout Plain Layout
22227 graphicx
22228 \end_layout
22229
22230 \end_inset
22231 </cell>
22232 <cell alignment="left" valignment="top" usebox="none">
22233 \begin_inset Text
22234
22235 \begin_layout Plain Layout
22236 marvosym
22237 \end_layout
22238
22239 \end_inset
22240 </cell>
22241 <cell alignment="center" valignment="top" usebox="none">
22242 \begin_inset Text
22243
22244 \begin_layout Plain Layout
22245 pifont
22246 \end_layout
22247
22248 \end_inset
22249 </cell>
22250 <cell alignment="center" valignment="top" usebox="none">
22251 \begin_inset Text
22252
22253 \begin_layout Plain Layout
22254 slashed
22255 \end_layout
22256
22257 \end_inset
22258 </cell>
22259 <cell alignment="center" valignment="top" usebox="none">
22260 \begin_inset Text
22261
22262 \begin_layout Plain Layout
22263 txfonts
22264 \end_layout
22265
22266 \end_inset
22267 </cell>
22268 <cell alignment="center" valignment="top" usebox="none">
22269 \begin_inset Text
22270
22271 \begin_layout Plain Layout
22272 xy
22273 \end_layout
22274
22275 \end_inset
22276 </cell>
22277 </row>
22278 <row>
22279 <cell alignment="left" valignment="top" usebox="none">
22280 \begin_inset Text
22281
22282 \begin_layout Plain Layout
22283 amstext
22284 \end_layout
22285
22286 \end_inset
22287 </cell>
22288 <cell alignment="left" valignment="top" usebox="none">
22289 \begin_inset Text
22290
22291 \begin_layout Plain Layout
22292 csquotes
22293 \end_layout
22294
22295 \end_inset
22296 </cell>
22297 <cell alignment="left" valignment="top" usebox="none">
22298 \begin_inset Text
22299
22300 \begin_layout Plain Layout
22301 hhline
22302 \end_layout
22303
22304 \end_inset
22305 </cell>
22306 <cell alignment="left" valignment="top" usebox="none">
22307 \begin_inset Text
22308
22309 \begin_layout Plain Layout
22310 mathdesign
22311 \end_layout
22312
22313 \end_inset
22314 </cell>
22315 <cell alignment="center" valignment="top" usebox="none">
22316 \begin_inset Text
22317
22318 \begin_layout Plain Layout
22319 pmboxdraw
22320 \end_layout
22321
22322 \end_inset
22323 </cell>
22324 <cell alignment="center" valignment="top" usebox="none">
22325 \begin_inset Text
22326
22327 \begin_layout Plain Layout
22328 soul
22329 \end_layout
22330
22331 \end_inset
22332 </cell>
22333 <cell alignment="center" valignment="top" usebox="none">
22334 \begin_inset Text
22335
22336 \begin_layout Plain Layout
22337 ulem
22338 \end_layout
22339
22340 \end_inset
22341 </cell>
22342 <cell alignment="center" valignment="top" usebox="none">
22343 \begin_inset Text
22344
22345 \begin_layout Plain Layout
22346 yhmath
22347 \end_layout
22348
22349 \end_inset
22350 </cell>
22351 </row>
22352 <row>
22353 <cell alignment="left" valignment="top" usebox="none">
22354 \begin_inset Text
22355
22356 \begin_layout Plain Layout
22357 amsthm
22358 \end_layout
22359
22360 \end_inset
22361 </cell>
22362 <cell alignment="left" valignment="top" usebox="none">
22363 \begin_inset Text
22364
22365 \begin_layout Plain Layout
22366 dvipost
22367 \end_layout
22368
22369 \end_inset
22370 </cell>
22371 <cell alignment="left" valignment="top" usebox="none">
22372 \begin_inset Text
22373
22374 \begin_layout Plain Layout
22375 hyperref
22376 \end_layout
22377
22378 \end_inset
22379 </cell>
22380 <cell alignment="left" valignment="top" usebox="none">
22381 \begin_inset Text
22382
22383 \begin_layout Plain Layout
22384 mathdots
22385 \end_layout
22386
22387 \end_inset
22388 </cell>
22389 <cell alignment="center" valignment="top" usebox="none">
22390 \begin_inset Text
22391
22392 \begin_layout Plain Layout
22393 polyglossia
22394 \end_layout
22395
22396 \end_inset
22397 </cell>
22398 <cell alignment="center" valignment="top" usebox="none">
22399 \begin_inset Text
22400
22401 \begin_layout Plain Layout
22402 splitidx
22403 \end_layout
22404
22405 \end_inset
22406 </cell>
22407 <cell alignment="center" valignment="top" usebox="none">
22408 \begin_inset Text
22409
22410 \begin_layout Plain Layout
22411 undertilde
22412 \end_layout
22413
22414 \end_inset
22415 </cell>
22416 <cell alignment="center" valignment="top" usebox="none">
22417 \begin_inset Text
22418
22419 \begin_layout Plain Layout
22420
22421 \end_layout
22422
22423 \end_inset
22424 </cell>
22425 </row>
22426 <row>
22427 <cell alignment="left" valignment="top" usebox="none">
22428 \begin_inset Text
22429
22430 \begin_layout Plain Layout
22431 array
22432 \end_layout
22433
22434 \end_inset
22435 </cell>
22436 <cell alignment="left" valignment="top" usebox="none">
22437 \begin_inset Text
22438
22439 \begin_layout Plain Layout
22440 endnotes
22441 \end_layout
22442
22443 \end_inset
22444 </cell>
22445 <cell alignment="left" valignment="top" usebox="none">
22446 \begin_inset Text
22447
22448 \begin_layout Plain Layout
22449 ifsym
22450 \end_layout
22451
22452 \end_inset
22453 </cell>
22454 <cell alignment="left" valignment="top" usebox="none">
22455 \begin_inset Text
22456
22457 \begin_layout Plain Layout
22458 mathrsfs
22459 \end_layout
22460
22461 \end_inset
22462 </cell>
22463 <cell alignment="center" valignment="top" usebox="none">
22464 \begin_inset Text
22465
22466 \begin_layout Plain Layout
22467 prettyref
22468 \end_layout
22469
22470 \end_inset
22471 </cell>
22472 <cell alignment="center" valignment="top" usebox="none">
22473 \begin_inset Text
22474
22475 \begin_layout Plain Layout
22476 subfig
22477 \end_layout
22478
22479 \end_inset
22480 </cell>
22481 <cell alignment="center" valignment="top" usebox="none">
22482 \begin_inset Text
22483
22484 \begin_layout Plain Layout
22485 units
22486 \end_layout
22487
22488 \end_inset
22489 </cell>
22490 <cell alignment="center" valignment="top" usebox="none">
22491 \begin_inset Text
22492
22493 \begin_layout Plain Layout
22494
22495 \end_layout
22496
22497 \end_inset
22498 </cell>
22499 </row>
22500 <row>
22501 <cell alignment="left" valignment="top" usebox="none">
22502 \begin_inset Text
22503
22504 \begin_layout Plain Layout
22505 ascii
22506 \end_layout
22507
22508 \end_inset
22509 </cell>
22510 <cell alignment="left" valignment="top" usebox="none">
22511 \begin_inset Text
22512
22513 \begin_layout Plain Layout
22514 enumitem
22515 \end_layout
22516
22517 \end_inset
22518 </cell>
22519 <cell alignment="left" valignment="top" usebox="none">
22520 \begin_inset Text
22521
22522 \begin_layout Plain Layout
22523 ifthen
22524 \end_layout
22525
22526 \end_inset
22527 </cell>
22528 <cell alignment="left" valignment="top" usebox="none">
22529 \begin_inset Text
22530
22531 \begin_layout Plain Layout
22532 mhchem
22533 \end_layout
22534
22535 \end_inset
22536 </cell>
22537 <cell alignment="center" valignment="top" usebox="none">
22538 \begin_inset Text
22539
22540 \begin_layout Plain Layout
22541 pxfonts
22542 \end_layout
22543
22544 \end_inset
22545 </cell>
22546 <cell alignment="center" valignment="top" usebox="none">
22547 \begin_inset Text
22548
22549 \begin_layout Plain Layout
22550 subscript
22551 \end_layout
22552
22553 \end_inset
22554 </cell>
22555 <cell alignment="center" valignment="top" usebox="none">
22556 \begin_inset Text
22557
22558 \begin_layout Plain Layout
22559 url
22560 \end_layout
22561
22562 \end_inset
22563 </cell>
22564 <cell alignment="center" valignment="top" usebox="none">
22565 \begin_inset Text
22566
22567 \begin_layout Plain Layout
22568
22569 \end_layout
22570
22571 \end_inset
22572 </cell>
22573 </row>
22574 <row>
22575 <cell alignment="left" valignment="top" usebox="none">
22576 \begin_inset Text
22577
22578 \begin_layout Plain Layout
22579 bbding
22580 \end_layout
22581
22582 \end_inset
22583 </cell>
22584 <cell alignment="left" valignment="top" usebox="none">
22585 \begin_inset Text
22586
22587 \begin_layout Plain Layout
22588 esint
22589 \end_layout
22590
22591 \end_inset
22592 </cell>
22593 <cell alignment="left" valignment="top" usebox="none">
22594 \begin_inset Text
22595
22596 \begin_layout Plain Layout
22597 jurabib
22598 \end_layout
22599
22600 \end_inset
22601 </cell>
22602 <cell alignment="left" valignment="top" usebox="none">
22603 \begin_inset Text
22604
22605 \begin_layout Plain Layout
22606 multicol
22607 \end_layout
22608
22609 \end_inset
22610 </cell>
22611 <cell alignment="center" valignment="top" usebox="none">
22612 \begin_inset Text
22613
22614 \begin_layout Plain Layout
22615 refstyle
22616 \end_layout
22617
22618 \end_inset
22619 </cell>
22620 <cell alignment="center" valignment="top" usebox="none">
22621 \begin_inset Text
22622
22623 \begin_layout Plain Layout
22624 textcomp
22625 \end_layout
22626
22627 \end_inset
22628 </cell>
22629 <cell alignment="center" valignment="top" usebox="none">
22630 \begin_inset Text
22631
22632 \begin_layout Plain Layout
22633 varioref
22634 \end_layout
22635
22636 \end_inset
22637 </cell>
22638 <cell alignment="center" valignment="top" usebox="none">
22639 \begin_inset Text
22640
22641 \begin_layout Plain Layout
22642
22643 \end_layout
22644
22645 \end_inset
22646 </cell>
22647 </row>
22648 <row>
22649 <cell alignment="center" valignment="top" usebox="none">
22650 \begin_inset Text
22651
22652 \begin_layout Plain Layout
22653 bm
22654 \end_layout
22655
22656 \end_inset
22657 </cell>
22658 <cell alignment="center" valignment="top" usebox="none">
22659 \begin_inset Text
22660
22661 \begin_layout Plain Layout
22662 fancybox
22663 \end_layout
22664
22665 \end_inset
22666 </cell>
22667 <cell alignment="center" valignment="top" usebox="none">
22668 \begin_inset Text
22669
22670 \begin_layout Plain Layout
22671 latexsym
22672 \end_layout
22673
22674 \end_inset
22675 </cell>
22676 <cell alignment="center" valignment="top" usebox="none">
22677 \begin_inset Text
22678
22679 \begin_layout Plain Layout
22680 multirow
22681 \end_layout
22682
22683 \end_inset
22684 </cell>
22685 <cell alignment="center" valignment="top" usebox="none">
22686 \begin_inset Text
22687
22688 \begin_layout Plain Layout
22689 rotating
22690 \end_layout
22691
22692 \end_inset
22693 </cell>
22694 <cell alignment="center" valignment="top" usebox="none">
22695 \begin_inset Text
22696
22697 \begin_layout Plain Layout
22698 textgreek
22699 \end_layout
22700
22701 \end_inset
22702 </cell>
22703 <cell alignment="center" valignment="top" usebox="none">
22704 \begin_inset Text
22705
22706 \begin_layout Plain Layout
22707 verbatim
22708 \end_layout
22709
22710 \end_inset
22711 </cell>
22712 <cell alignment="center" valignment="top" usebox="none">
22713 \begin_inset Text
22714
22715 \begin_layout Plain Layout
22716
22717 \end_layout
22718
22719 \end_inset
22720 </cell>
22721 </row>
22722 </lyxtabular>
22723
22724 \end_inset
22725
22726
22727 \end_layout
22728
22729 \begin_layout Chapter
22730 レイアウトで使用できる色名
22731 \begin_inset CommandInset label
22732 LatexCommand label
22733 name "chap:色名"
22734
22735 \end_inset
22736
22737
22738 \end_layout
22739
22740 \begin_layout Standard
22741 ここに列挙されている色は標準色であり,\SpecialChar LyX
22742 設定で調整できるものです.
22743 \end_layout
22744
22745 \begin_layout Description
22746 none
22747 \series medium
22748  
22749 \series default
22750 特定の色ではありません – 透明か既定色です
22751 \end_layout
22752
22753 \begin_layout Description
22754 black
22755 \end_layout
22756
22757 \begin_layout Description
22758 white
22759 \end_layout
22760
22761 \begin_layout Description
22762 red
22763 \end_layout
22764
22765 \begin_layout Description
22766 green
22767 \end_layout
22768
22769 \begin_layout Description
22770 blue
22771 \end_layout
22772
22773 \begin_layout Description
22774 cyan
22775 \end_layout
22776
22777 \begin_layout Description
22778 magenta
22779 \end_layout
22780
22781 \begin_layout Description
22782 yellow
22783 \end_layout
22784
22785 \begin_layout Description
22786 added_space 空白マーカ色
22787 \end_layout
22788
22789 \begin_layout Description
22790 addedtext 追加された文章色
22791 \end_layout
22792
22793 \begin_layout Description
22794 appendix 付録マーカ色
22795 \end_layout
22796
22797 \begin_layout Description
22798 background 背景色
22799 \end_layout
22800
22801 \begin_layout Description
22802 bottomarea 下部領域色
22803 \end_layout
22804
22805 \begin_layout Description
22806 branchlabel 派生枝ラベル色
22807 \end_layout
22808
22809 \begin_layout Description
22810 buttonbg ボタンの背景色
22811 \end_layout
22812
22813 \begin_layout Description
22814 buttonhoverbg フォーカスを得ているボタンの背景色
22815 \end_layout
22816
22817 \begin_layout Description
22818 buttonframe 差込枠の縁色
22819 \end_layout
22820
22821 \begin_layout Description
22822 changebar 変更バー色
22823 \end_layout
22824
22825 \begin_layout Description
22826 changedtextauthor1 変更された文章:第1著者の色
22827 \end_layout
22828
22829 \begin_layout Description
22830 changedtextauthor2 変更された文章:第2著者の色
22831 \end_layout
22832
22833 \begin_layout Description
22834 changedtextauthor3 変更された文章:第3著者の色
22835 \end_layout
22836
22837 \begin_layout Description
22838 changedtextauthor4 変更された文章:第4著者の色
22839 \end_layout
22840
22841 \begin_layout Description
22842 changedtextauthor5 変更された文章:第5著者の色
22843 \end_layout
22844
22845 \begin_layout Description
22846 collapsable_inset_frame 畳み込み可能枠の縁色
22847 \end_layout
22848
22849 \begin_layout Description
22850 collapsable_inset_text 畳み込み可能枠の文字色
22851 \end_layout
22852
22853 \begin_layout Description
22854 command コマンド差込枠の文字色
22855 \end_layout
22856
22857 \begin_layout Description
22858 commandbg コマンド差込枠の背景色
22859 \end_layout
22860
22861 \begin_layout Description
22862 commandframe コマンド差込枠の縁色
22863 \end_layout
22864
22865 \begin_layout Description
22866 comment コメント色
22867 \end_layout
22868
22869 \begin_layout Description
22870 commentbg コメントの背景色
22871 \end_layout
22872
22873 \begin_layout Description
22874 cursor カーソル色
22875 \end_layout
22876
22877 \begin_layout Description
22878 deletedtext 削除された文章の色
22879 \end_layout
22880
22881 \begin_layout Description
22882 deletedtextmodifier 削除された文章の修飾子の色
22883 \end_layout
22884
22885 \begin_layout Description
22886 depthbar 余白部の階層表示線の色
22887 \end_layout
22888
22889 \begin_layout Description
22890 eolmarker 行末標色
22891 \end_layout
22892
22893 \begin_layout Description
22894 error \SpecialChar LaTeX
22895 エラーボックス色
22896 \end_layout
22897
22898 \begin_layout Description
22899 footlabel 脚註ラベル色
22900 \end_layout
22901
22902 \begin_layout Description
22903 graphicsbg 画像差込枠の背景色
22904 \end_layout
22905
22906 \begin_layout Description
22907 greyedout 淡色表示差込枠のラベル色
22908 \end_layout
22909
22910 \begin_layout Description
22911 greyedoutbg 淡色表示差込枠の背景色
22912 \end_layout
22913
22914 \begin_layout Description
22915 greyedouttext 淡色表示差込枠の文字色
22916 \end_layout
22917
22918 \begin_layout Description
22919 indexlabel 索引差込枠のラベル色
22920 \end_layout
22921
22922 \begin_layout Description
22923 ignore この色を無視します
22924 \end_layout
22925
22926 \begin_layout Description
22927 inherit この色を継承します
22928 \end_layout
22929
22930 \begin_layout Description
22931 inlinecompletion 行内補完色
22932 \end_layout
22933
22934 \begin_layout Description
22935 insetbg 差込枠標の背景色
22936 \end_layout
22937
22938 \begin_layout Description
22939 insetframe 差込枠標の縁色
22940 \end_layout
22941
22942 \begin_layout Description
22943 language 外国語の単語を標識するための色
22944 \end_layout
22945
22946 \begin_layout Description
22947 latex \SpecialChar LaTeX
22948 モードの文字色
22949 \end_layout
22950
22951 \begin_layout Description
22952 listingsbg プログラムリスト差込枠の背景色
22953 \end_layout
22954
22955 \begin_layout Description
22956 marginlabel 傍註のラベル色
22957 \end_layout
22958
22959 \begin_layout Description
22960 math 数式差込枠の文字色
22961 \end_layout
22962
22963 \begin_layout Description
22964 mathbg 数式差込枠の背景色
22965 \end_layout
22966
22967 \begin_layout Description
22968 mathcorners フォーカスを得ていない数式差込枠の縁色
22969 \end_layout
22970
22971 \begin_layout Description
22972 mathframe フォーカスを得ている数式差込枠の縁色
22973 \end_layout
22974
22975 \begin_layout Description
22976 mathline 数式行色
22977 \end_layout
22978
22979 \begin_layout Description
22980 mathmacrobg 数式マクロ差込枠の背景色
22981 \end_layout
22982
22983 \begin_layout Description
22984 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22985 \end_layout
22986
22987 \begin_layout Description
22988 mathmacroframe 数式マクロ差込枠の縁色
22989 \end_layout
22990
22991 \begin_layout Description
22992 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22993 \end_layout
22994
22995 \begin_layout Description
22996 mathmacrolabel 数式マクロ差込枠のラベル色
22997 \end_layout
22998
22999 \begin_layout Description
23000 mathmacronewarg 数式マクロ新パラメーターのひな型色
23001 \end_layout
23002
23003 \begin_layout Description
23004 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23005 \end_layout
23006
23007 \begin_layout Description
23008 newpage 新規頁色
23009 \end_layout
23010
23011 \begin_layout Description
23012 nonunique_inlinecompletion 行内補完の一意でない部分の色
23013 \end_layout
23014
23015 \begin_layout Description
23016 notebg 註釈の背景色
23017 \end_layout
23018
23019 \begin_layout Description
23020 notelabel 註釈のラベル色
23021 \end_layout
23022
23023 \begin_layout Description
23024 pagebreak 改頁/改行色
23025 \end_layout
23026
23027 \begin_layout Description
23028 paragraphmarker 段落末を標識するための段落標の色
23029 \end_layout
23030
23031 \begin_layout Description
23032 phantomtext 埋め草差込枠の文字色
23033 \end_layout
23034
23035 \begin_layout Description
23036 preview プレビューに用いられる色
23037 \end_layout
23038
23039 \begin_layout Description
23040 previewframe プレビュー縁色
23041 \end_layout
23042
23043 \begin_layout Description
23044 regexpframe 正規表現枠の色
23045 \end_layout
23046
23047 \begin_layout Description
23048 selection 文章選択部の背景色
23049 \end_layout
23050
23051 \begin_layout Description
23052 selectiontext 文章選択部の前景色
23053 \end_layout
23054
23055 \begin_layout Description
23056 shadedbg 影付きボックスの背景色
23057 \end_layout
23058
23059 \begin_layout Description
23060 special 特殊文字の色
23061 \end_layout
23062
23063 \begin_layout Description
23064 tabularline 罫線色
23065 \end_layout
23066
23067 \begin_layout Description
23068 tabularonoffline 罫線色
23069 \end_layout
23070
23071 \begin_layout Description
23072 urllabel URL差込枠のラベル色
23073 \end_layout
23074
23075 \begin_layout Description
23076 urltext URL差込枠の文字色
23077 \end_layout
23078
23079 \end_body
23080 \end_document