]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
doc files: port recent changes
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
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 fleqn,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 \graphics default
103 \default_output_format pdf3
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification false
144 \use_refstyle 0
145 \notefontcolor #0000ff
146 \branch OutDated
147 \selected 0
148 \filename_suffix 0
149 \color #f5fae7
150 \end_branch
151 \index 索引
152 \shortcut idx
153 \color #008000
154 \end_index
155 \secnumdepth 3
156 \tocdepth 3
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \end_header
169
170 \begin_body
171
172 \begin_layout Title
173 \SpecialChar LyX
174 の高度設定
175 \begin_inset Newline newline
176 \end_inset
177
178 熟練ユーザのための各機能
179 \end_layout
180
181 \begin_layout Author
182 \SpecialChar LyX
183 開発チーム
184 \begin_inset Foot
185 status collapsed
186
187 \begin_layout Plain Layout
188 \noindent
189 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
190 文書化メーリングリスト
191 \begin_inset CommandInset href
192 LatexCommand href
193 target "lyx-docs@lists.lyx.org"
194 type "mailto:"
195
196 \end_inset
197
198 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください.
200 \end_layout
201
202 \end_inset
203
204
205 \begin_inset Newline newline
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212 第2.2.x版 
213 \end_layout
214
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
218
219 \end_inset
220
221
222 \begin_inset Note Note
223 status open
224
225 \begin_layout Plain Layout
226 本文書を修正する際には,変更追跡機能を使用してください.これによって,
227 \end_layout
228
229 \begin_layout Plain Layout
230 \SpecialChar LyX
231 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
232 \end_layout
233
234 \end_inset
235
236
237 \end_layout
238
239 \begin_layout Chapter
240 はじめに
241 \end_layout
242
243 \begin_layout Standard
244 この取扱説明書は,\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います.ここでは,
246 \begin_inset Flex Ruby
247 status collapsed
248
249 \begin_layout Plain Layout
250 捷径
251 \begin_inset Argument post:1
252 status collapsed
253
254 \begin_layout Plain Layout
255 ショートカット
256 \end_layout
257
258 \end_inset
259
260
261 \end_layout
262
263 \end_inset
264
265 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
268 クラスや\SpecialChar LyX
269 レイアウトの導入などの題材について論じます.おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
271 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
272 \end_layout
273
274 \begin_layout Standard
275 \begin_inset Branch OutDated
276 status collapsed
277
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280  outdated is contained in the OutDated branch of this document.
281  By default, this information will not appear in the \SpecialChar LaTeX
282  output.
283 \end_layout
284
285 \end_inset
286
287
288 \end_layout
289
290 \begin_layout Chapter
291 \SpecialChar LyX
292 設定ファイル
293 \end_layout
294
295 \begin_layout Standard
296 本章の目的は,\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
298 \begin_inset Flex MenuItem
299 status collapsed
300
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
303 LyXについて
304 \end_layout
305
306 \end_inset
307
308 を使って,\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです.一
311 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
312 \begin_inset Flex Code
313 status collapsed
314
315 \begin_layout Plain Layout
316 LyXDir
317 \end_layout
318
319 \end_inset
320
321 と呼び,後者を
322 \begin_inset Flex MenuItem
323 status collapsed
324
325 \begin_layout Plain Layout
326 UserDir
327 \end_layout
328
329 \end_inset
330
331 と呼ぶことにします.
332 \end_layout
333
334 \begin_layout Section
335 \begin_inset Flex Code
336 status collapsed
337
338 \begin_layout Plain Layout
339 LyXDir
340 \end_layout
341
342 \end_inset
343
344 にはなにがあるの?
345 \end_layout
346
347 \begin_layout Standard
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 LyXDir
353 \end_layout
354
355 \end_inset
356
357 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
358 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
359 内の
360 \begin_inset Flex MenuItem
361 status collapsed
362
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
365 設定
366 \end_layout
367
368 \end_inset
369
370 ダイアログから変更することができます.\SpecialChar LyX
371 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
372 の多くの内部動作は,
373 \begin_inset Flex Code
374 status collapsed
375
376 \begin_layout Plain Layout
377 LyXDir
378 \end_layout
379
380 \end_inset
381
382 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
383 \end_layout
384
385 \begin_layout Subsection
386 自動的に生成されるファイル
387 \end_layout
388
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
391 status collapsed
392
393 \begin_layout Plain Layout
394 UserDir
395 \end_layout
396
397 \end_inset
398
399 にある各ファイルは,\SpecialChar LyX
400 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
401 うので,一般的には修正しないことが望まれます.
402 \end_layout
403
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
407 status collapsed
408
409 \begin_layout Plain Layout
410 lyxrc.defaults
411 \end_layout
412
413 \end_inset
414
415  このファイルには,様々な既定コマンドが置かれています.
416 \end_layout
417
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
421 status collapsed
422
423 \begin_layout Plain Layout
424 packages.lst
425 \end_layout
426
427 \end_inset
428
429  このファイルには,\SpecialChar LyX
430 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
431 プログラム自体には使用されていませんが,抽出された情報その他は,
432 \begin_inset Flex MenuItem
433 status collapsed
434
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
437 LaT
438 \begin_inset ERT
439 status collapsed
440
441 \begin_layout Plain Layout
442
443 {}
444 \end_layout
445
446 \end_inset
447
448 eXの設定
449 \end_layout
450
451 \end_inset
452
453 で見ることができます.
454 \end_layout
455
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 textclass.lst
463 \end_layout
464
465 \end_inset
466
467  ユーザの
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 Plain L
473 \end_layout
474
475 \end_inset
476
477 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
478 文書クラスおよびその説明の一覧です.
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 lyxmodules.lst
488 \end_layout
489
490 \end_inset
491
492  ユーザの
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 layout/
498 \end_layout
499
500 \end_inset
501
502 ディレクトリで検出されたレイアウトモジュールの一覧です.
503 \end_layout
504
505 \begin_layout Labeling
506 \labelwidthstring 00.00.0000
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 *files.lst
512 \end_layout
513
514 \end_inset
515
516  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
517 関連ファイルの一覧です.
518 \end_layout
519
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 doc/LaT
527 \begin_inset ERT
528 status collapsed
529
530 \begin_layout Plain Layout
531
532 {}
533 \end_layout
534
535 \end_inset
536
537 eXConfig.lyx
538 \end_layout
539
540 \end_inset
541
542  このファイルは,自動設定中に
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 LaT
548 \begin_inset ERT
549 status collapsed
550
551 \begin_layout Plain Layout
552
553 {}
554 \end_layout
555
556 \end_inset
557
558 eXConfig.lyx.in
559 \end_layout
560
561 \end_inset
562
563 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
564 の設定に関する情報が納められています.
565 \end_layout
566
567 \begin_layout Subsection
568 ディレクトリ
569 \end_layout
570
571 \begin_layout Standard
572 以下の各ディレクトリは,
573 \begin_inset Flex Code
574 status collapsed
575
576 \begin_layout Plain Layout
577 LyXDir
578 \end_layout
579
580 \end_inset
581
582
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 UserDir
588 \end_layout
589
590 \end_inset
591
592 に重複して存在します.特定のファイルが両方の場所にある場合には,
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 UserDir
598 \end_layout
599
600 \end_inset
601
602 の方にあるものが使用されます.
603 \end_layout
604
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 bind/
612 \end_layout
613
614 \end_inset
615
616  このディレクトリには,\SpecialChar LyX
617 で使用されるキー割当を定義している,拡張子が
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 .bind
623 \end_layout
624
625 \end_inset
626
627 のファイルが置かれています.
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 $LANG_xxx.bind
633 \end_layout
634
635 \end_inset
636
637 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
638 \end_layout
639
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 clipart/
647 \end_layout
648
649 \end_inset
650
651  このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
652 \end_layout
653
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 doc/
661 \end_layout
662
663 \end_inset
664
665  このディレクトリには,\SpecialChar LyX
666 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 LaTeXConfig.lyx
672 \end_layout
673
674 \end_inset
675
676 ファイルは特に注目に値します.各国語版のヘルプ文書は,
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 doc/xx
682 \end_layout
683
684 \end_inset
685
686 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
687 \begin_inset CommandInset ref
688 LatexCommand ref
689 reference "cha:LyXの各国語対応"
690
691 \end_inset
692
693 をご覧ください.
694 \end_layout
695
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 examples/
703 \end_layout
704
705 \end_inset
706
707  このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
708 \begin_inset Flex MenuItem
709 status collapsed
710
711 \begin_layout Plain Layout
712 用例
713 \end_layout
714
715 \end_inset
716
717 ボタンを押すと,このディレクトリが表示されます.
718 \end_layout
719
720 \begin_layout Labeling
721 \labelwidthstring 00.00.0000
722 \begin_inset Flex Code
723 status collapsed
724
725 \begin_layout Plain Layout
726 images/
727 \end_layout
728
729 \end_inset
730
731  このディレクトリには,
732 \begin_inset Flex MenuItem
733 status collapsed
734
735 \begin_layout Plain Layout
736 文書
737 \end_layout
738
739 \end_inset
740
741 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
742 を起動したときに現れるバナーも納められています.
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 をご覧ください.
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには,
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 に述べられているテキストクラスおよびモジュールのファイルが納められています.
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには,\SpecialChar LyX
799 の各バージョン間の変換に使用される
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 lyx2lyx
805 \end_layout
806
807 \end_inset
808
809  Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
810 \end_layout
811
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 scripts/
819 \end_layout
820
821 \end_inset
822
823  このディレクトリには,
824 \begin_inset Flex MenuItem
825 status collapsed
826
827 \begin_layout Plain Layout
828 外用ひな型
829 \end_layout
830
831 \end_inset
832
833 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
834 自身が使用するスクリプトもいくつか収められています.
835 \end_layout
836
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 templates/
844 \end_layout
845
846 \end_inset
847
848  このディレクトリには,
849 \begin_inset CommandInset ref
850 LatexCommand ref
851 reference "sec:ひな型を作成する"
852
853 \end_inset
854
855 で述べられている標準の\SpecialChar LyX
856 ひな型ファイルが納められています.
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 ui/
866 \end_layout
867
868 \end_inset
869
870  このディレクトリには,\SpecialChar LyX
871 の操作画面を定義する拡張子
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 .ui
877 \end_layout
878
879 \end_inset
880
881 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
882 \end_layout
883
884 \begin_layout Subsection
885 変更を加えない方がよいファイル
886 \end_layout
887
888 \begin_layout Standard
889 これらのファイルは\SpecialChar LyX
890 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
891 \end_layout
892
893 \begin_layout Labeling
894 \labelwidthstring 00.00.0000
895 \begin_inset Flex Code
896 status collapsed
897
898 \begin_layout Plain Layout
899 CREDITS
900 \end_layout
901
902 \end_inset
903
904  このファイルは,\SpecialChar LyX
905 開発陣の名簿です.この内容は,メニュー項目
906 \begin_inset Flex MenuItem
907 status collapsed
908
909 \begin_layout Plain Layout
910 ヘルプ\SpecialChar menuseparator
911 LyXについて
912 \end_layout
913
914 \end_inset
915
916 で表示されます.
917 \end_layout
918
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 chkconfig.ltx
926 \end_layout
927
928 \end_inset
929
930  これは,自動設定プロセスによって使用される\SpecialChar LaTeX
931 スクリプトです.直接実行しないでください.
932 \end_layout
933
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 configure.py
941 \end_layout
942
943 \end_inset
944
945  これは,\SpecialChar LyX
946 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
947 \end_layout
948
949 \begin_layout Subsection
950 ひとこと必要なファイル群
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 encodings
960 \end_layout
961
962 \end_inset
963
964  このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
965 \end_layout
966
967 \begin_layout Labeling
968 \labelwidthstring 00.00.0000
969 \begin_inset Flex Code
970 status collapsed
971
972 \begin_layout Plain Layout
973 external_templates
974 \end_layout
975
976 \end_inset
977
978  このファイルには,新しく導入された
979 \begin_inset Flex MenuItem
980 status collapsed
981
982 \begin_layout Plain Layout
983 外用ひな型
984 \end_layout
985
986 \end_inset
987
988 機能で使用できるひな型が載っています.
989 \begin_inset CommandInset ref
990 LatexCommand ref
991 reference "chap:外部素材を取り込む"
992
993 \end_inset
994
995 を参照のこと.
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 languages
1005 \end_layout
1006
1007 \end_inset
1008
1009  このファイルには,現在\SpecialChar LyX
1010 がサポートしている言語の全一覧が載っています.
1011 \end_layout
1012
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 latexfonts
1020 \end_layout
1021
1022 \end_inset
1023
1024  サポートされているフォントに関する情報が掲載されています.
1025 \end_layout
1026
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 layouttranslations
1034 \end_layout
1035
1036 \end_inset
1037
1038  このファイルは,国際化された段落様式の翻訳が収録されています(
1039 \begin_inset CommandInset ref
1040 LatexCommand ref
1041 reference "subsec:段落様式の国際化"
1042
1043 \end_inset
1044
1045 参照).
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 unicodesymbols
1055 \end_layout
1056
1057 \end_inset
1058
1059  このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1060 が\SpecialChar LaTeX
1061 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1062 \end_layout
1063
1064 \begin_layout Section
1065 ユーザのローカル設定ディレクトリ
1066 \end_layout
1067
1068 \begin_layout Standard
1069 \SpecialChar LyX
1070 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1071 の設定を変更したいと思うかもしれません.
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 UserDir
1077 \end_layout
1078
1079 \end_inset
1080
1081 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1082 \begin_inset Flex MenuItem
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086 ヘルプ\SpecialChar menuseparator
1087 LyXについて
1088 \end_layout
1089
1090 \end_inset
1091
1092 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1093 \begin_inset Flex Code
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 LyXDir
1098 \end_layout
1099
1100 \end_inset
1101
1102 のミラーとして使用されており,これは
1103 \begin_inset Flex Code
1104 status collapsed
1105
1106 \begin_layout Plain Layout
1107 UserDir
1108 \end_layout
1109
1110 \end_inset
1111
1112 内のすべてのファイルが,
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 LyXDir
1118 \end_layout
1119
1120 \end_inset
1121
1122 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1123 \end_layout
1124
1125 \begin_layout Standard
1126 わかりやすくするために,いくつか例を挙げましょう.
1127 \end_layout
1128
1129 \begin_layout Itemize
1130 \begin_inset Flex MenuItem
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 ツール\SpecialChar menuseparator
1135 設定
1136 \end_layout
1137
1138 \end_inset
1139
1140 ダイアログで設定されるユーザ設定は,
1141 \begin_inset Flex Code
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145 UserDir
1146 \end_layout
1147
1148 \end_inset
1149
1150 中の
1151 \begin_inset Flex Code
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 preferences
1156 \end_layout
1157
1158 \end_inset
1159
1160 ファイルに保存されます.
1161 \end_layout
1162
1163 \begin_layout Itemize
1164 \begin_inset Flex MenuItem
1165 status collapsed
1166
1167 \begin_layout Plain Layout
1168 ツール\SpecialChar menuseparator
1169 環境構成
1170 \end_layout
1171
1172 \end_inset
1173
1174 を使用して環境構成を行うと,\SpecialChar LyX
1175
1176 \begin_inset Flex Code
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 configure.py
1181 \end_layout
1182
1183 \end_inset
1184
1185 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1186 \begin_inset Flex Code
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 UserDir/layouts
1191 \end_layout
1192
1193 \end_inset
1194
1195 にご自身で追加したテキストファイルは,
1196 \begin_inset Flex MenuItem
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 文書\SpecialChar menuseparator
1201 設定
1202 \end_layout
1203
1204 \end_inset
1205
1206 ダイアログのクラス一覧に表示されるようになることを意味します.
1207 \end_layout
1208
1209 \begin_layout Itemize
1210 たとえば,\SpecialChar LyX
1211 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1212 れらのファイルを
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 UserDir/doc/
1218 \end_layout
1219
1220 \end_inset
1221
1222 ディレクトリにコピーすれば,
1223 \begin_inset Flex MenuItem
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 ヘルプ
1228 \end_layout
1229
1230 \end_inset
1231
1232 メニュー項目はこれらを開くようになります!
1233 \end_layout
1234
1235 \begin_layout Section
1236 \SpecialChar LyX
1237 を複数の設定を使って実行するには
1238 \end_layout
1239
1240 \begin_layout Standard
1241 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1242 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1243 どのディレクトリを使用するか指定するのです.
1244 \end_layout
1245
1246 \begin_layout Standard
1247 \SpecialChar LyX
1248 をコマンドラインスイッチ
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 -userdir
1254 \end_layout
1255
1256 \end_inset
1257
1258 P
1259 \emph on
1260 <ディレクトリ名>
1261 \emph default
1262 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1263
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 -userdir
1269 \end_layout
1270
1271 \end_inset
1272
1273 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1274 は,初めて\SpecialChar LyX
1275 を実行したときに既定ディレクトリを訊い
1276 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1277 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 LYX_USERDIR_20x
1283 \end_layout
1284
1285 \end_inset
1286
1287 を特定の値に設定しても,全く同じ効果があります.
1288 \end_layout
1289
1290 \begin_layout Standard
1291 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 NewUserDir/layouts
1297 \end_layout
1298
1299 \end_inset
1300
1301 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1302 クを使用してください.\SpecialChar LyX
1303 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1304 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1305 \begin_inset Flex Code
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309 doc/
1310 \end_layout
1311
1312 \end_inset
1313
1314 サブディレクトリには,設定スクリプト(
1315 \begin_inset Flex MenuItem
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 ツール\SpecialChar menuseparator
1320 環境構成
1321 \end_layout
1322
1323 \end_inset
1324
1325 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1326 \end_layout
1327
1328 \begin_layout Chapter
1329 設定ダイアログ
1330 \end_layout
1331
1332 \begin_layout Standard
1333 設定ダイアログのオプションのすべては,
1334 \emph on
1335 ユーザーの手引き
1336 \emph default
1337 の付録
1338 \emph on
1339 設定ダイアログ
1340 \emph default
1341 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1342 \end_layout
1343
1344 \begin_layout Section
1345 ファイル形式
1346 \begin_inset CommandInset label
1347 LatexCommand label
1348 name "sec:ファイル形式"
1349
1350 \end_inset
1351
1352
1353 \end_layout
1354
1355 \begin_layout Standard
1356 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1357 \begin_inset Flex MenuItem
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 ツール\SpecialChar menuseparator
1362 設定
1363 \end_layout
1364
1365 \end_inset
1366
1367 ダイアログを開いてください.
1368 \begin_inset Flex MenuItem
1369 status collapsed
1370
1371 \begin_layout Plain Layout
1372 ファイル処理\SpecialChar menuseparator
1373 ファイル形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 の中で
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 新規\SpecialChar ldots
1384
1385 \end_layout
1386
1387 \end_inset
1388
1389 ボタンを押して,登録する新しい形式を定義してください.
1390 \begin_inset Flex MenuItem
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 形式
1395 \end_layout
1396
1397 \end_inset
1398
1399 フィールドは,GUI中で形式を認識するために用いられる名称です.
1400 \begin_inset Flex MenuItem
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404 短縮名
1405 \end_layout
1406
1407 \end_inset
1408
1409 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1410 \begin_inset Flex MenuItem
1411 status collapsed
1412
1413 \begin_layout Plain Layout
1414 捷径
1415 \end_layout
1416
1417 \end_inset
1418
1419 フィールドは,メニュー中で
1420 \begin_inset Flex Ruby
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424 捷径
1425 \begin_inset Argument post:1
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 ショートカット
1430 \end_layout
1431
1432 \end_inset
1433
1434
1435 \end_layout
1436
1437 \end_inset
1438
1439 を提供するのに使用されます(たとえば,
1440 \begin_inset Flex MenuItem
1441 status collapsed
1442
1443 \begin_layout Plain Layout
1444 Ctrl+D
1445 \end_layout
1446
1447 \end_inset
1448
1449 を押すと
1450 \begin_inset Flex MenuItem
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 表示\SpecialChar menuseparator
1455 DVI
1456 \end_layout
1457
1458 \end_inset
1459
1460 となります).
1461 \end_layout
1462
1463 \begin_layout Standard
1464 形式には,
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 閲覧プログラム
1470 \end_layout
1471
1472 \end_inset
1473
1474
1475 \begin_inset Flex MenuItem
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 編集プログラム
1480 \end_layout
1481
1482 \end_inset
1483
1484 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1485 \begin_inset Flex MenuItem
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 Ghostview
1490 \end_layout
1491
1492 \end_inset
1493
1494 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1495 いることができます.この閲覧プログラムは,\SpecialChar LyX
1496 中で画像を閲覧したり
1497 \begin_inset Flex MenuItem
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 表示
1502 \end_layout
1503
1504 \end_inset
1505
1506 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1507 \begin_inset Flex MenuItem
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 外部で編集
1512 \end_layout
1513
1514 \end_inset
1515
1516 を選択したときに起動します.
1517 \end_layout
1518
1519 \begin_layout Standard
1520 ファイル形式の
1521 \begin_inset Flex MenuItem
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 MIME
1526 \end_layout
1527
1528 \end_inset
1529
1530 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1531 ます.重要なファイル形式のうちには,
1532 \begin_inset CommandInset href
1533 LatexCommand href
1534 name "IANA"
1535 target "http://www.iana.org/assignments/media-types/"
1536
1537 \end_inset
1538
1539 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1540 は,
1541 \begin_inset CommandInset href
1542 LatexCommand href
1543 name "freedesktop.org"
1544 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1545
1546 \end_inset
1547
1548 で指定されているMIME型拡張表を使用しています.
1549 \end_layout
1550
1551 \begin_layout Standard
1552 \begin_inset Flex MenuItem
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 文書形式
1557 \end_layout
1558
1559 \end_inset
1560
1561 オプションは,\SpecialChar LyX
1562 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1563 \begin_inset CommandInset ref
1564 LatexCommand ref
1565 reference "sec:変換子"
1566
1567 \end_inset
1568
1569 節を参照),この形式が
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ファイル\SpecialChar menuseparator
1575 書き出し
1576 \end_layout
1577
1578 \end_inset
1579
1580
1581 \begin_inset Flex MenuItem
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 表示
1586 \end_layout
1587
1588 \end_inset
1589
1590 footlabel Label color for footnotす.
1591 \begin_inset Flex Code
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 png
1596 \end_layout
1597
1598 \end_inset
1599
1600 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1601 \begin_inset Flex Code
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 pdf
1606 \end_layout
1607
1608 \end_inset
1609
1610 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1611 \end_layout
1612
1613 \begin_layout Standard
1614 \begin_inset Flex MenuItem
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618 ベクター画像形式
1619 \end_layout
1620
1621 \end_inset
1622
1623 オプションは,\SpecialChar LyX
1624 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1625 \begin_inset Flex MenuItem
1626 status collapsed
1627
1628 \begin_layout Plain Layout
1629 pdflatex
1630 \end_layout
1631
1632 \end_inset
1633
1634 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1635 \begin_inset Flex MenuItem
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 pdflatex
1640 \end_layout
1641
1642 \end_inset
1643
1644 は,
1645 \begin_inset Flex MenuItem
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 pdf
1650 \end_layout
1651
1652 \end_inset
1653
1654
1655 \begin_inset Flex MenuItem
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 png
1660 \end_layout
1661
1662 \end_inset
1663
1664
1665 \begin_inset Flex MenuItem
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Des
1670 \end_layout
1671
1672 \end_inset
1673
1674 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1675 \begin_inset Flex MenuItem
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 pdf
1680 \end_layout
1681
1682 \end_inset
1683
1684
1685 \begin_inset Flex MenuItem
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 png
1690 \end_layout
1691
1692 \end_inset
1693
1694
1695 \begin_inset Flex MenuItem
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 jpg
1700 \end_layout
1701
1702 \end_inset
1703
1704 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1705 \begin_inset Flex MenuItem
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 pdf
1710 \end_layout
1711
1712 \end_inset
1713
1714 に変換され,そうでない場合には
1715 \begin_inset Flex MenuItem
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 png
1720 \end_layout
1721
1722 \end_inset
1723
1724 に変換されます.
1725 \end_layout
1726
1727 \begin_layout Section
1728 複写子
1729 \end_layout
1730
1731 \begin_layout Standard
1732 形式の変換はすべて,\SpecialChar LyX
1733 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1734 \begin_inset Foot
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1739 あります.
1740 \end_layout
1741
1742 \end_inset
1743
1744 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1745 \end_layout
1746
1747 \begin_layout Standard
1748 複写子の定義においては,以下の8つの変数を用いることができます.
1749 \end_layout
1750
1751 \begin_layout Labeling
1752 \labelwidthstring 00.00.0000
1753 \begin_inset Flex Code
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 $$s
1758 \end_layout
1759
1760 \end_inset
1761
1762  \SpecialChar LyX
1763 のシステムディレクトリ(例:
1764 \begin_inset Flex MenuItem
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 /usr/share/lyx
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \end_layout
1775
1776 \begin_layout Labeling
1777 \labelwidthstring 00.00.0000
1778 \begin_inset Flex Code
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 $$i
1783 \end_layout
1784
1785 \end_inset
1786
1787  入力ファイル
1788 \end_layout
1789
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 $$o
1797 \end_layout
1798
1799 \end_inset
1800
1801  出力ファイル
1802 \end_layout
1803
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Flex Code
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 $$b
1811 \end_layout
1812
1813 \end_inset
1814
1815  \SpecialChar LyX
1816 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1817 \end_layout
1818
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 $$p
1826 \end_layout
1827
1828 \end_inset
1829
1830  \SpecialChar LyX
1831 一時ディレクトリのフルパス名
1832 \end_layout
1833
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 $$r
1841 \end_layout
1842
1843 \end_inset
1844
1845  処理されている元の\SpecialChar LyX
1846 ファイルのフルパス名
1847 \end_layout
1848
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 $$f
1856 \end_layout
1857
1858 \end_inset
1859
1860  \SpecialChar LyX
1861 ファイルのファイル名(ディレクトリパスなし)
1862 \end_layout
1863
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 $$l
1871 \end_layout
1872
1873 \end_inset
1874
1875  「\SpecialChar LaTeX
1876 名」
1877 \end_layout
1878
1879 \begin_layout Standard
1880 最後の変数は,\SpecialChar LaTeX
1881
1882 \series bold
1883
1884 \backslash
1885 include
1886 \series default
1887 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1888 \end_layout
1889
1890 \begin_layout Standard
1891 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 /home/you/pdf/
1897 \end_layout
1898
1899 \end_inset
1900
1901 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1902 \end_layout
1903
1904 \begin_layout Standard
1905 \begin_inset listings
1906 inline false
1907 status open
1908
1909 \begin_layout Plain Layout
1910
1911 #!/bin/bash
1912 \end_layout
1913
1914 \begin_layout Plain Layout
1915
1916 FROMFILE=$1
1917 \end_layout
1918
1919 \begin_layout Plain Layout
1920
1921 TOFILE=`basename $2`
1922 \end_layout
1923
1924 \begin_layout Plain Layout
1925
1926 DescriptionE /home/you/pdf/$TOFILE
1927 \end_layout
1928
1929 \end_inset
1930
1931 これを,例えば
1932 \begin_inset Flex Code
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 /home/you/.lyx/scripts/pdfcopier.sh
1937 \end_layout
1938
1939 \end_inset
1940
1941 のような,自身のローカル\SpecialChar LyX
1942 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1943 \begin_inset Flex MenuItem
1944 status collapsed
1945
1946 \begin_layout Plain Layout
1947 ツール\SpecialChar menuseparator
1948 設定
1949 \end_layout
1950
1951 \end_inset
1952
1953 ダイアログの
1954 \begin_inset Flex MenuItem
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 ファイル処理\SpecialChar menuseparator
1959 ファイル形式
1960 \end_layout
1961
1962 \end_inset
1963
1964 の中で,
1965 \begin_inset Flex MenuItem
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 PDF(pdflatex)
1970 \end_layout
1971
1972 \end_inset
1973
1974 形式—あるいは他のPDF形式のうちどれか—を選択し,
1975 \begin_inset Flex MenuItem
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 複写子
1980 \end_layout
1981
1982 \end_inset
1983
1984 フィールドに
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdfcopier.sh $$i $$o
1990 \end_layout
1991
1992 \end_inset
1993
1994 と入力します.
1995 \end_layout
1996
1997 \begin_layout Standard
1998 複写子は,\SpecialChar LyX
1999 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
2000 は自動的に
2001 \begin_inset Flex MenuItem
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 HTML
2006 \end_layout
2007
2008 \end_inset
2009
2010 形式と
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 HTML
2016 \begin_inset space ~
2017 \end_inset
2018
2019 (MS Word)
2020 \end_layout
2021
2022 \end_inset
2023
2024 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2025 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2026 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2027 \begin_inset Foot
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2032 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2033 \begin_inset Flex MenuItem
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 L
2038 \begin_inset ERT
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042
2043 {}
2044 \end_layout
2045
2046 \end_inset
2047
2048 yXconv
2049 \end_layout
2050
2051 \end_inset
2052
2053 」となっているので,
2054 \begin_inset Flex MenuItem
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 /path/to/filename.lyx
2059 \end_layout
2060
2061 \end_inset
2062
2063 から生成されたHTMLファイルは,
2064 \begin_inset Flex MenuItem
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 /path/to/filename.html.L
2069 \begin_inset ERT
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073
2074 {}
2075 \end_layout
2076
2077 \end_inset
2078
2079 yXconv
2080 \end_layout
2081
2082 \end_inset
2083
2084 となります..
2085  
2086 \end_layout
2087
2088 \end_inset
2089
2090
2091 \end_layout
2092
2093 \begin_layout Section
2094 変換子
2095 \begin_inset CommandInset label
2096 LatexCommand label
2097 name "sec:変換子"
2098
2099 \end_inset
2100
2101
2102 \end_layout
2103
2104 \begin_layout Standard
2105 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 ツール\SpecialChar menuseparator
2111 設定\SpecialChar menuseparator
2112 ファイル処理\SpecialChar menuseparator
2113 変換子
2114 \end_layout
2115
2116 \end_inset
2117
2118 ダイアログで行います.
2119 \end_layout
2120
2121 \begin_layout Standard
2122 新規に変換子を定義するには,ドロップダウンリストから
2123 \begin_inset Flex MenuItem
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 変換元の形式
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Flex MenuItem
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137 変換先の形式
2138 \end_layout
2139
2140 \end_inset
2141
2142 を選択し,変換に必要なコマンドを入力してから
2143 \begin_inset Flex MenuItem
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 追加
2148 \end_layout
2149
2150 \end_inset
2151
2152 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2153 \end_layout
2154
2155 \begin_layout Labeling
2156 \labelwidthstring 00.00.0000
2157 \begin_inset Flex Code
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 $$s
2162 \end_layout
2163
2164 \end_inset
2165
2166  \SpecialChar LyX
2167 システムディレクトリ
2168 \end_layout
2169
2170 \begin_layout Labeling
2171 \labelwidthstring 00.00.0000
2172 \begin_inset Flex Code
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 $$i
2177 \end_layout
2178
2179 \end_inset
2180
2181  入力ファイル
2182 \end_layout
2183
2184 \begin_layout Labeling
2185 \labelwidthstring 00.00.0000
2186 \begin_inset Flex Code
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 $$o
2191 \end_layout
2192
2193 \end_inset
2194
2195  出力ファイル
2196 \end_layout
2197
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 $$b
2205 \end_layout
2206
2207 \end_inset
2208
2209  入力ファイルのベースファイル名(拡張子をとった部分)
2210 \end_layout
2211
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2215 status collapsed
2216
2217 \begin_layout Plain Layout
2218 $$p
2219 \end_layout
2220
2221 \end_inset
2222
2223  入力ファイルのパス
2224 \end_layout
2225
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 $$r
2233 \end_layout
2234
2235 \end_inset
2236
2237  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2238 \end_layout
2239
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 $$e
2247 \end_layout
2248
2249 \end_inset
2250
2251  文書エンコーディングのiconv名
2252 \end_layout
2253
2254 \begin_layout Standard
2255 \begin_inset Flex MenuItem
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 追加フラグ
2260 \end_layout
2261
2262 \end_inset
2263
2264 フィールドには,以下のフラグをコンマで区切って入力することができます.
2265 \end_layout
2266
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 latex
2274 \end_layout
2275
2276 \end_inset
2277
2278  この変換子が\SpecialChar LaTeX
2279 の一種を実行することを示します.これによって,\SpecialChar LyX
2280 の\SpecialChar LaTeX
2281 エラーログに記録を残せるようになります.
2282 \end_layout
2283
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290 needaux
2291 \end_layout
2292
2293 \end_inset
2294
2295  変換に\SpecialChar LaTeX
2296
2297 \begin_inset Flex MenuItem
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 .aux
2302 \end_layout
2303
2304 \end_inset
2305
2306 ファイルが必要であることを示します.
2307 \end_layout
2308
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 nice
2316 \end_layout
2317
2318 \end_inset
2319
2320  バックエンドからの
2321 \begin_inset Quotes erd
2322 \end_inset
2323
2324 nice
2325 \begin_inset Quotes erd
2326 \end_inset
2327
2328 なファイル,つまり\SpecialChar LyX
2329 が書き出す\SpecialChar LaTeX
2330 ファイルのように,
2331 \begin_inset Flex Code
2332 status open
2333
2334 \begin_layout Plain Layout
2335 input@path
2336 \end_layout
2337
2338 \end_inset
2339
2340 のない\SpecialChar LaTeX
2341 ファイルを必要とします.
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 xml
2351 \end_layout
2352
2353 \end_inset
2354
2355  出力がXMLであることを示します.
2356 \end_layout
2357
2358 \begin_layout Standard
2359 以下の3つのフラグは 
2360 \begin_inset Flex MenuItem
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 key
2365 \begin_inset space ~
2366 \end_inset
2367
2368 =
2369 \begin_inset space ~
2370 \end_inset
2371
2372 value
2373 \end_layout
2374
2375 \end_inset
2376
2377 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2378 \end_layout
2379
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 parselog
2387 \end_layout
2388
2389 \end_inset
2390
2391  これを指定すると,変換子の標準エラーが
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 infile.out
2397 \end_layout
2398
2399 \end_inset
2400
2401 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2402 \begin_inset Flex Code
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406 script < infile.out > infile.log
2407 \end_layout
2408
2409 \end_inset
2410
2411 の形で実行されるようになります.引数には
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 $$s
2417 \end_layout
2418
2419 \end_inset
2420
2421 を指定することができます.
2422 \end_layout
2423
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Flex Code
2427 status collapsed
2428
2429 \begin_layout Plain Layout
2430 resultdir
2431 \end_layout
2432
2433 \end_inset
2434
2435  これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2436 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2437 ピーします.引数には,
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442 $$b
2443 \end_layout
2444
2445 \end_inset
2446
2447 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2448 \begin_inset Newline newline
2449 \end_inset
2450
2451 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2452 \end_layout
2453
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2456 \begin_inset Flex Code
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 resultfile
2461 \end_layout
2462
2463 \end_inset
2464
2465  これは出力ファイル名を指定するもので,
2466 \begin_inset Flex Code
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 $$b
2471 \end_layout
2472
2473 \end_inset
2474
2475 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2476 \end_layout
2477
2478 \begin_layout Standard
2479 最後の3つは,\SpecialChar LyX
2480 とともに導入される変換子には,現在いずれも使用されておりません.
2481 \end_layout
2482
2483 \begin_layout Standard
2484 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2485 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2486 はPostScrip
2487 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2488 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2489 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2490 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2491 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2492 設定は,\SpecialChar LaTeX
2493 からPDFへ変換するのに,以下の3つの方法を
2494 用意しています.
2495 \end_layout
2496
2497 \begin_layout Enumerate
2498 直接
2499 \begin_inset Flex MenuItem
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 pdflatex
2504 \end_layout
2505
2506 \end_inset
2507
2508 を使用するもの
2509 \end_layout
2510
2511 \begin_layout Enumerate
2512 (DVIと)PostScriptを経由して
2513 \begin_inset Flex MenuItem
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 ps2pdf
2518 \end_layout
2519
2520 \end_inset
2521
2522 を使用するもの
2523 \end_layout
2524
2525 \begin_layout Enumerate
2526 DVI経由で
2527 \begin_inset Flex MenuItem
2528 status collapsed
2529
2530 \begin_layout Plain Layout
2531 dvipdfm
2532 \end_layout
2533
2534 \end_inset
2535
2536 を使用するもの
2537 \end_layout
2538
2539 \begin_layout Enumerate
2540 直接
2541 \begin_inset Flex MenuItem
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 Xe\SpecialChar TeX
2546
2547 \end_layout
2548
2549 \end_inset
2550
2551 を使用するもの
2552 \end_layout
2553
2554 \begin_layout Enumerate
2555 直接
2556 \begin_inset Flex MenuItem
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 Lua\SpecialChar TeX
2561
2562 \end_layout
2563
2564 \end_inset
2565
2566 を使用するもの
2567 \end_layout
2568
2569 \begin_layout Standard
2570 このように代替連鎖を定義するには,第
2571 \begin_inset CommandInset ref
2572 LatexCommand ref
2573 reference "sec:ファイル形式"
2574
2575 \end_inset
2576
2577 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2578 \begin_inset Flex MenuItem
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582 pdf
2583 \end_layout
2584
2585 \end_inset
2586
2587 (
2588 \begin_inset Flex MenuItem
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 ps2pdf
2593 \end_layout
2594
2595 \end_inset
2596
2597 用)・
2598 \begin_inset Flex MenuItem
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 pdf2
2603 \end_layout
2604
2605 \end_inset
2606
2607 (
2608 \begin_inset Flex MenuItem
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 pdflatex
2613 \end_layout
2614
2615 \end_inset
2616
2617 用)・
2618 \begin_inset Flex MenuItem
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 pdf3
2623 \end_layout
2624
2625 \end_inset
2626
2627 (
2628 \begin_inset Flex MenuItem
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 dvipdfm
2633 \end_layout
2634
2635 \end_inset
2636
2637 用)・
2638 \begin_inset Flex MenuItem
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642 pdf4
2643 \end_layout
2644
2645 \end_inset
2646
2647 (
2648 \begin_inset Flex MenuItem
2649 status collapsed
2650
2651 \begin_layout Plain Layout
2652 Xe\SpecialChar TeX
2653
2654 \end_layout
2655
2656 \end_inset
2657
2658 用)・
2659 \begin_inset Flex MenuItem
2660 status collapsed
2661
2662 \begin_layout Plain Layout
2663 pdf5
2664 \end_layout
2665
2666 \end_inset
2667
2668 (
2669 \begin_inset Flex MenuItem
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 Lua\SpecialChar TeX
2674
2675 \end_layout
2676
2677 \end_inset
2678
2679 用\SpecialChar softhyphen
2680 ) と命名された形式が定義されていて,すべて共通の拡張子
2681 \begin_inset Flex MenuItem
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 .pdf
2686 \end_layout
2687
2688 \end_inset
2689
2690 を持ち,上記で言及した各変換方法に対応しています.
2691 \end_layout
2692
2693 \begin_layout Chapter
2694 \SpecialChar LyX
2695 の各国語対応
2696 \begin_inset CommandInset label
2697 LatexCommand label
2698 name "cha:LyXの各国語対応"
2699
2700 \end_inset
2701
2702
2703 \end_layout
2704
2705 \begin_layout Standard
2706 \SpecialChar LyX
2707 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2708 は30言語の翻訳を提供しています.選択した言語は,使用する
2709 \emph on
2710 ロケール
2711 \emph default
2712 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 locale(5)
2718 \end_layout
2719
2720 \end_inset
2721
2722 から見ると良いかもしれません).
2723 \end_layout
2724
2725 \begin_layout Standard
2726 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2727 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2728 \begin_inset Flex Ruby
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 捷径
2733 \begin_inset Argument post:1
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 ショートカット
2738 \end_layout
2739
2740 \end_inset
2741
2742
2743 \end_layout
2744
2745 \end_inset
2746
2747 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2748 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2749 \begin_inset Foot
2750 status collapsed
2751
2752 \begin_layout Plain Layout
2753 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2754 コミュニティに報いるたいへん素晴らしい方法です!
2755 \end_layout
2756
2757 \end_inset
2758
2759 —は,\SpecialChar LyX
2760 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2761 \end_layout
2762
2763 \begin_layout Section
2764 \SpecialChar LyX
2765 を翻訳する
2766 \end_layout
2767
2768 \begin_layout Subsection
2769 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2770 \begin_inset Argument 1
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 GUI(テキストメッセージ)を翻訳する
2775 \end_layout
2776
2777 \end_inset
2778
2779
2780 \end_layout
2781
2782 \begin_layout Standard
2783 \SpecialChar LyX
2784 は,操作画面の国際化対応にGNU 
2785 \begin_inset Flex Code
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 gettext
2790 \end_layout
2791
2792 \end_inset
2793
2794 ライブラリを使用します.\SpecialChar LyX
2795 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2796 \begin_inset Flex Code
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800 po
2801 \end_layout
2802
2803 \end_inset
2804
2805 ファイルが必要です.このファイルが利用可能であれば,そこから
2806 \begin_inset Flex Code
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 mo
2811 \end_layout
2812
2813 \end_inset
2814
2815 ファイルを生成して,この
2816 \begin_inset Flex Code
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 mo
2821 \end_layout
2822
2823 \end_inset
2824
2825 ファイルをインストールしなくてはなりません.この全過程は,GNU 
2826 \begin_inset Flex Code
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 gettext
2831 \end_layout
2832
2833 \end_inset
2834
2835 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2836 コミュニティの他の人々と分かち
2837 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2838 開発者メーリングリストにメールを送ってください.
2839 \end_layout
2840
2841 \begin_layout Standard
2842 要約すれば,以下のように行います(xxは言語コードを表します).
2843 \end_layout
2844
2845 \begin_layout Itemize
2846 \SpecialChar LyX
2847 ソースコードをチェックアウトしてください(
2848 \begin_inset CommandInset href
2849 LatexCommand href
2850 name "ウェブ上の情報"
2851 target "http://www.lyx.org/HowToUseGIT"
2852
2853 \end_inset
2854
2855 参照).
2856 \end_layout
2857
2858 \begin_layout Itemize
2859 \begin_inset Flex Code
2860 status collapsed
2861
2862 \begin_layout Plain Layout
2863 lyx.pot
2864 \end_layout
2865
2866 \end_inset
2867
2868 ファイルを
2869 \begin_inset Flex Code
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 **.po
2874 \end_layout
2875
2876 \end_inset
2877
2878 ファイルのあるフォルダにコピーして,
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 xx.po
2884 \end_layout
2885
2886 \end_inset
2887
2888 に名前を付け替えてください(
2889 \begin_inset Flex Code
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893 lyx.pot
2894 \end_layout
2895
2896 \end_inset
2897
2898 がどこにもない場合には,コンソールからそのディレクトリで
2899 \begin_inset Flex Code
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 make lyx.pot
2904 \end_layout
2905
2906 \end_inset
2907
2908 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2909 \end_layout
2910
2911 \begin_layout Itemize
2912 \begin_inset Flex Code
2913 status collapsed
2914
2915 \begin_layout Plain Layout
2916 xx.po
2917 \end_layout
2918
2919 \end_inset
2920
2921 を編集します.
2922 \begin_inset Foot
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2927 \family typewriter
2928 Poedit
2929 \family default
2930 (全プラットフォーム用)や
2931 \family typewriter
2932 KBabel
2933 \family default
2934 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2935 \family typewriter
2936 Emacs
2937 \family default
2938 にも
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 ファイルを編集するための「モード」があります,第
2949 \begin_inset Flex URL
2950 status open
2951
2952 \begin_layout Plain Layout
2953
2954 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2955 \backslash
2956 #PO-Mode
2957 \end_layout
2958
2959 \end_inset
2960
2961
2962 \end_layout
2963
2964 \end_inset
2965
2966 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2967 \begin_inset Flex Ruby
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 捷径
2972 \begin_inset Argument post:1
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 ショートカット
2977 \end_layout
2978
2979 \end_inset
2980
2981
2982 \end_layout
2983
2984 \end_inset
2985
2986 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 po
2992 \end_layout
2993
2994 \end_inset
2995
2996 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2997 \end_layout
2998
2999 \begin_layout Standard
3000 もし,あなたがこれを自身のためだけに行っているのであれば,
3001 \end_layout
3002
3003 \begin_layout Itemize
3004 \begin_inset Flex Code
3005 status collapsed
3006
3007 \begin_layout Plain Layout
3008 xx.mo
3009 \end_layout
3010
3011 \end_inset
3012
3013 を生成してください.これは
3014 \begin_inset Flex Code
3015 status collapsed
3016
3017 \begin_layout Plain Layout
3018 msgfmt -o xx.mo < xx.po
3019 \end_layout
3020
3021 \end_inset
3022
3023 でできます.
3024 \end_layout
3025
3026 \begin_layout Itemize
3027 この
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 mo
3033 \end_layout
3034
3035 \end_inset
3036
3037 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 lyx.mo
3043 \end_layout
3044
3045 \end_inset
3046
3047 という名称にしてください(例:
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3053 \end_layout
3054
3055 \end_inset
3056
3057 ).
3058 \end_layout
3059
3060 \begin_layout Standard
3061 しかしながら前述のように,この新しい
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 po
3067 \end_layout
3068
3069 \end_inset
3070
3071 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3072 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3073 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3074 グリストに電子メールを送ってください.
3075 \end_layout
3076
3077 \begin_layout Subsubsection
3078 多義訳語メッセージ
3079 \end_layout
3080
3081 \begin_layout Standard
3082 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3083 \begin_inset Flex Code
3084 status collapsed
3085
3086 \begin_layout Plain Layout
3087 To
3088 \end_layout
3089
3090 \end_inset
3091
3092 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU 
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 gettext
3098 \end_layout
3099
3100 \end_inset
3101
3102 は,このような多義訳語を
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 To
3108 \end_layout
3109
3110 \end_inset
3111
3112 の代わりに,
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 To[[as in 'From format x to format y']]
3118 \end_layout
3119
3120 \end_inset
3121
3122
3123 \begin_inset Flex Code
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 To[[as in 'From page x to page y']]
3128 \end_layout
3129
3130 \end_inset
3131
3132 としなくてはなりません.これによって,これら2つの
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 To
3138 \end_layout
3139
3140 \end_inset
3141
3142 は,
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3153 \end_layout
3154
3155 \begin_layout Standard
3156 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3157 の翻訳機構
3158 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3159 \end_layout
3160
3161 \begin_layout Subsection
3162 説明書を翻訳する
3163 \end_layout
3164
3165 \begin_layout Standard
3166
3167 \begin_inset Flex MenuItem
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 Help
3172 \end_layout
3173
3174 \end_inset
3175
3176 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3177 \begin_inset Foot
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3182 \end_layout
3183
3184 \end_inset
3185
3186 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3187 はこれを自動的に使用します.\SpecialChar LyX
3188 は,翻訳版を
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3194 \end_layout
3195
3196 \end_inset
3197
3198
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 xx
3204 \end_layout
3205
3206 \end_inset
3207
3208 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 DocName
3214 \end_layout
3215
3216 \end_inset
3217
3218 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3219 うべきです.
3220 \end_layout
3221
3222 \begin_layout Itemize
3223 説明書翻訳ウェブページ
3224 \begin_inset CommandInset href
3225 LatexCommand href
3226 name "http://www.lyx.org/Translation"
3227 target "http://www.lyx.org/Translation"
3228
3229 \end_inset
3230
3231 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3232 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3233 \end_layout
3234
3235 \begin_layout Standard
3236 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3237 \end_layout
3238
3239 \begin_layout Itemize
3240 文書化チームに所属してください!そのための情報が
3241 \begin_inset Flex Code
3242 status collapsed
3243
3244 \begin_layout Plain Layout
3245 Intro.lyx
3246 \end_layout
3247
3248 \end_inset
3249
3250
3251 \begin_inset Flex MenuItem
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 ヘルプ\SpecialChar menuseparator
3256 はじめの一歩
3257 \end_layout
3258
3259 \end_inset
3260
3261 )にあります.また,この
3262 \begin_inset Flex Code
3263 status collapsed
3264
3265 \begin_layout Plain Layout
3266 Intro.lyx
3267 \end_layout
3268
3269 \end_inset
3270
3271 が最初に訳すべき文書です.
3272 \end_layout
3273
3274 \begin_layout Itemize
3275 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3276 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3277 \emph on
3278 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3279 \emph default
3280
3281 \end_layout
3282
3283 \begin_layout Itemize
3284 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 UserDir/doc/xx/
3290 \end_layout
3291
3292 \end_inset
3293
3294 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3295 \begin_inset Newline newline
3296 \end_inset
3297
3298
3299 \begin_inset Note Greyedout
3300 status open
3301
3302 \begin_layout Plain Layout
3303
3304 \series bold
3305 【註】
3306 \series default
3307 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3308 ことに注意してください.最も良い方法は,LyXツリーをgit (
3309 \begin_inset Flex URL
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313
3314 http://www.lyx.org/HowToUseGIT
3315 \end_layout
3316
3317 \end_inset
3318
3319 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3320 \end_layout
3321
3322 \end_inset
3323
3324
3325 \end_layout
3326
3327 \begin_layout Itemize
3328 (\SpecialChar LyX
3329 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3330 \begin_inset CommandInset href
3331 LatexCommand href
3332 name "http://www.lyx.org/trac/timeline"
3333 target "http://www.lyx.org/trac/timeline"
3334
3335 \end_inset
3336
3337 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3338 \end_layout
3339
3340 \begin_layout Standard
3341 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3342 \end_layout
3343
3344 \begin_layout Standard
3345 \begin_inset Branch OutDated
3346 status collapsed
3347
3348 \begin_layout Section
3349 International Keyboard Support
3350 \end_layout
3351
3352 \begin_layout Standard
3353
3354 \emph on
3355 [Editor's Note: The following section is by
3356 \emph default
3357  
3358 \shape smallcaps
3359 \emph on
3360 Ivan Schreter
3361 \shape default
3362 .
3363  It needs to be fixed to conform to the new Documentation Style sheet and
3364  to make use of the new v1.0 features.
3365  The whole thing also needs to be merged with the section following it.-jw
3366  It may also be badly out of date.-rh (2008)]
3367 \end_layout
3368
3369 \begin_layout Subsection
3370 Defining Own Keymaps: Keymap File Format
3371 \end_layout
3372
3373 \begin_layout Standard
3374 Let's look at a keyboard definition file a little closer.
3375  It is a plain text file defining
3376 \end_layout
3377
3378 \begin_layout Itemize
3379 key-to-key or key-to-string translations
3380 \end_layout
3381
3382 \begin_layout Itemize
3383 dead keys
3384 \end_layout
3385
3386 \begin_layout Itemize
3387 dead keys exceptions
3388 \end_layout
3389
3390 \begin_layout Standard
3391 To define key-to-key or key-to-string translation, use this command:
3392 \end_layout
3393
3394 \begin_layout Quotation
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399
3400 \backslash
3401 kmap
3402 \end_layout
3403
3404 \end_inset
3405
3406  
3407 \begin_inset Flex Code
3408 status collapsed
3409
3410 \begin_layout Plain Layout
3411 key
3412 \end_layout
3413
3414 \end_inset
3415
3416  outstring 
3417 \end_layout
3418
3419 \begin_layout Standard
3420 where 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 key
3426 \end_layout
3427
3428 \end_inset
3429
3430  is the key to be translated and 
3431 \begin_inset Flex Code
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435 outstring
3436 \end_layout
3437
3438 \end_inset
3439
3440  is the string to be inserted into the document.
3441  To define dead keys, use:
3442 \end_layout
3443
3444 \begin_layout Quotation
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449
3450 \backslash
3451 kmod
3452 \end_layout
3453
3454 \end_inset
3455
3456  
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 key
3462 \end_layout
3463
3464 \end_inset
3465
3466  deadkey
3467 \end_layout
3468
3469 \begin_layout Standard
3470 where 
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 key
3476 \end_layout
3477
3478 \end_inset
3479
3480  is a keyboard key and 
3481 \begin_inset Flex Code
3482 status collapsed
3483
3484 \begin_layout Plain Layout
3485 deadkey
3486 \end_layout
3487
3488 \end_inset
3489
3490  is dead key name.
3491  The following dead keys are supported (shortcut name is in parentheses):
3492 \end_layout
3493
3494 \begin_layout Quotation
3495
3496 \emph on
3497 Name
3498 \begin_inset space \hfill{}
3499 \end_inset
3500
3501 Example
3502 \end_layout
3503
3504 \begin_layout Quotation
3505 acute (acu)
3506 \begin_inset space \hfill{}
3507 \end_inset
3508
3509
3510 \lang english
3511 áéíóú
3512 \end_layout
3513
3514 \begin_layout Quotation
3515 grave (gra)
3516 \begin_inset space \hfill{}
3517 \end_inset
3518
3519
3520 \lang english
3521 àèìòù
3522 \end_layout
3523
3524 \begin_layout Quotation
3525 macron (mac)
3526 \begin_inset space \hfill{}
3527 \end_inset
3528
3529
3530 \lang english
3531  ō
3532 \end_layout
3533
3534 \begin_layout Quotation
3535 tilde (til)
3536 \begin_inset space \hfill{}
3537 \end_inset
3538
3539
3540 \lang english
3541 ñÑ
3542 \end_layout
3543
3544 \begin_layout Quotation
3545 underbar (underb)
3546 \begin_inset space \hfill{}
3547 \end_inset
3548
3549
3550 \begin_inset ERT
3551 status open
3552
3553 \begin_layout Plain Layout
3554
3555
3556 \backslash
3557 b o
3558 \end_layout
3559
3560 \end_inset
3561
3562
3563 \end_layout
3564
3565 \begin_layout Quotation
3566 cedilla (ced)
3567 \begin_inset space \hfill{}
3568 \end_inset
3569
3570
3571 \lang english
3572 çÇ
3573 \end_layout
3574
3575 \begin_layout Quotation
3576 underdot (underd)
3577 \begin_inset space \hfill{}
3578 \end_inset
3579
3580
3581 \begin_inset ERT
3582 status open
3583
3584 \begin_layout Plain Layout
3585
3586
3587 \backslash
3588 d o
3589 \end_layout
3590
3591 \end_inset
3592
3593
3594 \end_layout
3595
3596 \begin_layout Quotation
3597 circumflex (circu)
3598 \begin_inset space \hfill{}
3599 \end_inset
3600
3601
3602 \lang english
3603 âêîôû
3604 \end_layout
3605
3606 \begin_layout Quotation
3607 circle (circl)
3608 \begin_inset space \hfill{}
3609 \end_inset
3610
3611
3612 \lang english
3613 ÅůŮ
3614 \end_layout
3615
3616 \begin_layout Quotation
3617 tie (tie)
3618 \begin_inset space \hfill{}
3619 \end_inset
3620
3621
3622 \begin_inset ERT
3623 status open
3624
3625 \begin_layout Plain Layout
3626
3627
3628 \backslash
3629 t o
3630 \end_layout
3631
3632 \end_inset
3633
3634
3635 \end_layout
3636
3637 \begin_layout Quotation
3638 breve (bre)
3639 \begin_inset space \hfill{}
3640 \end_inset
3641
3642
3643 \lang english
3644 ă
3645 \lang japanese
3646
3647 \begin_inset ERT
3648 status open
3649
3650 \begin_layout Plain Layout
3651
3652
3653 \backslash
3654 u o
3655 \end_layout
3656
3657 \end_inset
3658
3659
3660 \end_layout
3661
3662 \begin_layout Quotation
3663 caron (car)
3664 \begin_inset space \hfill{}
3665 \end_inset
3666
3667
3668 \lang english
3669 čšž
3670 \end_layout
3671
3672 \begin_layout Quotation
3673 hungarian umlaut (hug)
3674 \begin_inset space \hfill{}
3675 \end_inset
3676
3677
3678 \lang english
3679 őű
3680 \end_layout
3681
3682 \begin_layout Quotation
3683 umlaut (uml)
3684 \begin_inset space \hfill{}
3685 \end_inset
3686
3687
3688 \lang english
3689 äöü
3690 \end_layout
3691
3692 \begin_layout Quotation
3693 dot (dot)
3694 \begin_inset space \hfill{}
3695 \end_inset
3696
3697
3698 \lang english
3699 ż
3700 \lang japanese
3701
3702 \begin_inset ERT
3703 status open
3704
3705 \begin_layout Plain Layout
3706
3707
3708 \backslash
3709 .s
3710 \end_layout
3711
3712 \end_inset
3713
3714
3715 \end_layout
3716
3717 \begin_layout Standard
3718 Since in many international keyboards there are exceptions to what some
3719  dead keys should do, you can define them using
3720 \end_layout
3721
3722 \begin_layout Quotation
3723 \begin_inset Flex Code
3724 status collapsed
3725
3726 \begin_layout Plain Layout
3727
3728 \backslash
3729 kxmod
3730 \end_layout
3731
3732 \end_inset
3733
3734  deadkey key outstring
3735 \end_layout
3736
3737 \begin_layout Standard
3738 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3739 , so you put in
3740 \end_layout
3741
3742 \begin_layout Quotation
3743 \begin_inset Flex Code
3744 status collapsed
3745
3746 \begin_layout Plain Layout
3747
3748 \backslash
3749 kxmod
3750 \end_layout
3751
3752 \end_inset
3753
3754  caron o "
3755 \backslash
3756 ^o"
3757 \end_layout
3758
3759 \begin_layout Standard
3760 to make it work correctly.
3761  Also, you have to define as exceptions dead keys over i and j, to remove
3762  the dot from them before inserting an accent mark.
3763  I will change this when the time comes, but so far I haven't had time.
3764 \end_layout
3765
3766 \begin_layout Standard
3767 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3768  double backslash.
3769  Also, quotes and 
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774 #
3775 \end_layout
3776
3777 \end_inset
3778
3779  have different meaning.
3780  
3781 \begin_inset Flex Code
3782 status collapsed
3783
3784 \begin_layout Plain Layout
3785 #
3786 \end_layout
3787
3788 \end_inset
3789
3790  marks comments, quotes start and end \SpecialChar LaTeX
3791 -style commands.
3792  To enter quote, you'll need to use 
3793 \begin_inset Flex Code
3794 status collapsed
3795
3796 \begin_layout Plain Layout
3797
3798 \backslash
3799 "
3800 \end_layout
3801
3802 \end_inset
3803
3804 , to enter 
3805 \begin_inset Flex Code
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809 #
3810 \end_layout
3811
3812 \end_inset
3813
3814 , use 
3815 \begin_inset Flex Code
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819
3820 \backslash
3821 #
3822 \end_layout
3823
3824 \end_inset
3825
3826 .
3827 \end_layout
3828
3829 \begin_layout Standard
3830 If you make a keyboard description file that works for your language, please
3831  mail it to me, so I can include it in the next keymap distribution.
3832 \end_layout
3833
3834 \begin_layout Standard
3835 More keywords will be supported in keymap configuration file in future,
3836  like
3837 \end_layout
3838
3839 \begin_layout Itemize
3840 \begin_inset Flex Code
3841 status collapsed
3842
3843 \begin_layout Plain Layout
3844
3845 \backslash
3846 kinclude filename
3847 \end_layout
3848
3849 \end_inset
3850
3851
3852 \emph on
3853
3854 \begin_inset space \hfill{}
3855 \end_inset
3856
3857
3858 \begin_inset Flex Code
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 include
3863 \end_layout
3864
3865 \end_inset
3866
3867  another file
3868 \end_layout
3869
3870 \begin_layout Itemize
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875
3876 \backslash
3877 kprog program
3878 \end_layout
3879
3880 \end_inset
3881
3882
3883 \emph on
3884
3885 \begin_inset space \hfill{}
3886 \end_inset
3887
3888
3889 \begin_inset Flex Code
3890 status collapsed
3891
3892 \begin_layout Plain Layout
3893 define
3894 \end_layout
3895
3896 \end_inset
3897
3898  an external keymap translation program 
3899 \end_layout
3900
3901 \begin_layout Standard
3902 Also, it should look into 
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 lyxrc
3908 \end_layout
3909
3910 \end_inset
3911
3912  file for defaults, too (for example, a 
3913 \begin_inset Flex Code
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917
3918 \backslash
3919 kinclude
3920 \end_layout
3921
3922 \end_inset
3923
3924  option to include default keyboard).
3925 \end_layout
3926
3927 \end_inset
3928
3929
3930 \end_layout
3931
3932 \begin_layout Section
3933 国際キー配列
3934 \begin_inset CommandInset label
3935 LatexCommand label
3936 name "sec:国際キー配列"
3937
3938 \end_inset
3939
3940
3941 \end_layout
3942
3943 \begin_layout Standard
3944 \begin_inset Note Note
3945 status open
3946
3947 \begin_layout Plain Layout
3948 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3949 \end_layout
3950
3951 \begin_layout Plain Layout
3952 (RH)
3953 \end_layout
3954
3955 \end_inset
3956
3957
3958 \end_layout
3959
3960 \begin_layout Standard
3961 以下の2節では,
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 .kmap
3967 \end_layout
3968
3969 \end_inset
3970
3971 および
3972 \begin_inset Flex Code
3973 status collapsed
3974
3975 \begin_layout Plain Layout
3976 .cdef
3977 \end_layout
3978
3979 \end_inset
3980
3981 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3982 \end_layout
3983
3984 \begin_layout Subsection
3985 .kmapファイル
3986 \end_layout
3987
3988 \begin_layout Standard
3989 \begin_inset Flex Code
3990 status collapsed
3991
3992 \begin_layout Plain Layout
3993 .kmap
3994 \end_layout
3995
3996 \end_inset
3997
3998 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 .kmap
4004 \end_layout
4005
4006 \end_inset
4007
4008 ファイルは,以下の各項で説明するように,
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 \begin_inset Flex Code
4020 status collapsed
4021
4022 \begin_layout Plain Layout
4023 kmod
4024 \end_layout
4025
4026 \end_inset
4027
4028
4029 \begin_inset Flex Code
4030 status collapsed
4031
4032 \begin_layout Plain Layout
4033 ksmod
4034 \end_layout
4035
4036 \end_inset
4037
4038
4039 \begin_inset Flex Code
4040 status collapsed
4041
4042 \begin_layout Plain Layout
4043 kcomb
4044 \end_layout
4045
4046 \end_inset
4047
4048 のキーワードを定義します.
4049 \end_layout
4050
4051 \begin_layout Labeling
4052 \labelwidthstring 00.00.0000
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 kmap
4058 \end_layout
4059
4060 \end_inset
4061
4062  文字を文字列に割り当てる
4063 \end_layout
4064
4065 \begin_layout LyX-Code
4066
4067 \backslash
4068 kmap 
4069 \family roman
4070 \emph on
4071 文字
4072 \family default
4073 \emph default
4074  
4075 \family roman
4076 \emph on
4077 文字列
4078 \end_layout
4079
4080 \begin_layout Standard
4081 これは,
4082 \emph on
4083 文字
4084 \emph default
4085
4086 \emph on
4087 文字列
4088 \emph default
4089 に割り当てます.
4090 \emph on
4091 文字列
4092 \emph default
4093 中では,二重引用符(")とバックスラッシュ(
4094 \backslash
4095 )は,前にバックスラッシュ(
4096 \backslash
4097 )を付けてエスケープしなくてはならないことに注意してください.
4098 \end_layout
4099
4100 \begin_layout Standard
4101 \begin_inset Flex MenuItem
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 &
4106 \end_layout
4107
4108 \end_inset
4109
4110 を打鍵すると
4111 \begin_inset Flex MenuItem
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115 /
4116 \end_layout
4117
4118 \end_inset
4119
4120 記号が出力される
4121 \begin_inset Flex MenuItem
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125 kmap
4126 \end_layout
4127
4128 \end_inset
4129
4130 ステートメントを,一例としてあげると,
4131 \end_layout
4132
4133 \begin_layout LyX-Code
4134
4135 \backslash
4136 kmap & /
4137 \end_layout
4138
4139 \begin_layout Standard
4140 のようになります.
4141 \end_layout
4142
4143 \begin_layout Labeling
4144 \labelwidthstring 00.00.0000
4145 \begin_inset Flex Code
4146 status collapsed
4147
4148 \begin_layout Plain Layout
4149 kmod
4150 \end_layout
4151
4152 \end_inset
4153
4154  アクセント文字を指定する
4155 \end_layout
4156
4157 \begin_layout LyX-Code
4158
4159 \backslash
4160 kmod 
4161 \family roman
4162 \emph on
4163 文字 アクセント 許可文字
4164 \end_layout
4165
4166 \begin_layout Standard
4167 これは
4168 \emph on
4169 文字
4170 \emph default
4171
4172 \emph on
4173 許可文字
4174 \emph default
4175 のアクセントとするものです.これはデッドキー
4176 \begin_inset Foot
4177 status collapsed
4178
4179 \begin_layout Plain Layout
4180
4181 \emph on
4182 デッドキー
4183 \emph default
4184 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4185 \emph on
4186 ä
4187 \emph default
4188 のようなウムラウトのついた文字は,このようにして出すことができます.
4189 \end_layout
4190
4191 \end_inset
4192
4193 機構です.
4194 \end_layout
4195
4196 \begin_layout Standard
4197
4198 \emph on
4199 文字
4200 \emph default
4201 を打鍵してから
4202 \emph on
4203 許可文字
4204 \emph default
4205 にないキーを打鍵すると,
4206 \emph on
4207 文字
4208 \emph default
4209 の後に許可文字ではないその文字が出力として表示されます.
4210 \begin_inset Flex MenuItem
4211 status collapsed
4212
4213 \begin_layout Plain Layout
4214 Backspace
4215 \end_layout
4216
4217 \end_inset
4218
4219 はデッドキーを取り消しますので,
4220 \emph on
4221 文字
4222 \emph default
4223
4224 \begin_inset Flex MenuItem
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228 Backspace
4229 \end_layout
4230
4231 \end_inset
4232
4233 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4234 \end_layout
4235
4236 \begin_layout Standard
4237 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4238 \end_layout
4239
4240 \begin_layout LyX-Code
4241
4242 \backslash
4243 kmod ' acute aeiouAEIOU
4244 \end_layout
4245
4246 \begin_layout Labeling
4247 \labelwidthstring 00.00.0000
4248 \begin_inset Flex Code
4249 status collapsed
4250
4251 \begin_layout Plain Layout
4252 ksmod
4253 \end_layout
4254
4255 \end_inset
4256
4257  アクセント文字に例外を指定する
4258 \end_layout
4259
4260 \begin_layout LyX-Code
4261
4262 \backslash
4263 kxmod  
4264 \family roman
4265 \emph on
4266 アクセント 文字 結果
4267 \end_layout
4268
4269 \begin_layout Standard
4270 これは
4271 \emph on
4272 文字
4273 \emph default
4274 上の
4275 \emph on
4276 アクセント
4277 \emph default
4278 について例外を指定するものです.ここで
4279 \emph on
4280 アクセント
4281 \emph default
4282 には,前出の
4283 \begin_inset Flex Code
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287
4288 \backslash
4289 kmod
4290 \end_layout
4291
4292 \end_inset
4293
4294 宣言で打鍵キーを既に割り当てられてなくてはならず,
4295 \emph on
4296 文字
4297 \emph default
4298
4299 \emph on
4300 アクセント
4301 \emph default
4302
4303 \emph on
4304 許可文字
4305 \emph default
4306 の集合に属していてはなりません.こうして
4307 \emph on
4308 アクセント
4309 \emph default
4310
4311 \emph on
4312 文字
4313 \emph default
4314 の順に入力すると,
4315 \emph on
4316 結果
4317 \emph default
4318 が出力されるようになります.
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323 .kmap
4324 \end_layout
4325
4326 \end_inset
4327
4328 ファイルにこの宣言がない場合には,
4329 \emph on
4330 アクセント
4331 \emph default
4332
4333 \emph on
4334 文字
4335 \emph default
4336 と入力すると,
4337 \emph on
4338 アクセントキー
4339 \emph default
4340
4341 \emph on
4342 文字
4343 \emph default
4344
4345 \emph on
4346 アクセントキー
4347 \emph default
4348
4349 \begin_inset Flex Code
4350 status collapsed
4351
4352 \begin_layout Plain Layout
4353
4354 \backslash
4355 kmod
4356 \end_layout
4357
4358 \end_inset
4359
4360 宣言の最初の変数)と出力されます.
4361 \end_layout
4362
4363 \begin_layout Standard
4364 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4365 \end_layout
4366
4367 \begin_layout LyX-Code
4368
4369 \backslash
4370 kxmod acute i "
4371 \backslash
4372
4373 \backslash
4374 '{
4375 \backslash
4376
4377 \backslash
4378 i}"
4379 \end_layout
4380
4381 \begin_layout Labeling
4382 \labelwidthstring 00.00.0000
4383 \begin_inset Flex Code
4384 status collapsed
4385
4386 \begin_layout Plain Layout
4387 kcomb
4388 \end_layout
4389
4390 \end_inset
4391
4392  2つのアクセント文字を結合する
4393 \end_layout
4394
4395 \begin_layout LyX-Code
4396
4397 \backslash
4398 kcomb 
4399 \family roman
4400 \emph on
4401 アクセント1 アクセント2 許可文字
4402 \end_layout
4403
4404 \begin_layout Standard
4405 これはなかなか難解になってきます.これは
4406 \emph on
4407 アクセント1
4408 \emph default
4409
4410 \emph on
4411 アクセント2
4412 \emph default
4413 を(この順番で)結びつけて,
4414 \emph on
4415 許可文字
4416 \emph default
4417 に効果を及ぼすようにします.
4418 \emph on
4419 アクセント1
4420 \emph default
4421
4422 \emph on
4423 アクセント2
4424 \emph default
4425 の打鍵キーは,ファイル内のこのコマンド
4426 \emph on
4427 よりも前に
4428 \emph default
4429
4430 \begin_inset Flex Code
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434
4435 \backslash
4436 kmod
4437 \end_layout
4438
4439 \end_inset
4440
4441 コマンドで設定されていなくてはなりません.
4442 \end_layout
4443
4444 \begin_layout Standard
4445 \begin_inset Flex Code
4446 status collapsed
4447
4448 \begin_layout Plain Layout
4449 greek.kmap
4450 \end_layout
4451
4452 \end_inset
4453
4454 ファイル上にある例をとってみましょう.
4455 \end_layout
4456
4457 \begin_layout LyX-Code
4458
4459 \backslash
4460 kmod ; acute aeioyvhAEIOYVH 
4461 \backslash
4462 kmod : umlaut iyIY 
4463 \backslash
4464 kcomb acute umlaut iyIY
4465 \end_layout
4466
4467 \begin_layout Standard
4468 これは
4469 \begin_inset Flex MenuItem
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 ;:i
4474 \end_layout
4475
4476 \end_inset
4477
4478 を押すと
4479 \begin_inset Flex Code
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483
4484 \backslash
4485 '{
4486 \backslash
4487 "{i}}
4488 \end_layout
4489
4490 \end_inset
4491
4492 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4493 \begin_inset Flex MenuItem
4494 status collapsed
4495
4496 \begin_layout Plain Layout
4497 ;: Backspace i
4498 \end_layout
4499
4500 \end_inset
4501
4502 と押した場合には,
4503 \begin_inset Flex Code
4504 status collapsed
4505
4506 \begin_layout Plain Layout
4507
4508 \backslash
4509 '{i}
4510 \end_layout
4511
4512 \end_inset
4513
4514 となります.
4515 \end_layout
4516
4517 \begin_layout Subsection
4518 .cdefファイル
4519 \end_layout
4520
4521 \begin_layout Standard
4522 \begin_inset Flex Code
4523 status collapsed
4524
4525 \begin_layout Plain Layout
4526 .kmap
4527 \end_layout
4528
4529 \end_inset
4530
4531 による割り当てが行われた後,
4532 \begin_inset Flex Code
4533 status collapsed
4534
4535 \begin_layout Plain Layout
4536 .cdef
4537 \end_layout
4538
4539 \end_inset
4540
4541 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4542 頒布版には,現在のところ,少なくとも
4543 \begin_inset Flex Code
4544 status collapsed
4545
4546 \begin_layout Plain Layout
4547 iso8859-1.cdef
4548 \end_layout
4549
4550 \end_inset
4551
4552 ファイルと
4553 \begin_inset Flex Code
4554 status collapsed
4555
4556 \begin_layout Plain Layout
4557 iso8859-2.cdef
4558 \end_layout
4559
4560 \end_inset
4561
4562 ファイルが含まれています.
4563 \end_layout
4564
4565 \begin_layout Standard
4566 一般的に
4567 \begin_inset Flex Code
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 .cdef
4572 \end_layout
4573
4574 \end_inset
4575
4576 ファイルは,
4577 \end_layout
4578
4579 \begin_layout LyX-Code
4580
4581 \family roman
4582 \emph on
4583 セット中の文字番号
4584 \family default
4585 \emph default
4586  
4587 \family roman
4588 \emph on
4589  文字列
4590 \end_layout
4591
4592 \begin_layout Standard
4593 という形の宣言の羅列です.たとえば,
4594 \begin_inset Flex MenuItem
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598
4599 \backslash
4600 '{e}
4601 \end_layout
4602
4603 \end_inset
4604
4605 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4606 \end_layout
4607
4608 \begin_layout LyX-Code
4609 233 "
4610 \backslash
4611
4612 \backslash
4613 '{e}"
4614 \end_layout
4615
4616 \begin_layout Standard
4617 ここで,
4618 \emph on
4619 文字列
4620 \emph default
4621 中の
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626
4627 \backslash
4628
4629 \end_layout
4630
4631 \end_inset
4632
4633
4634 \begin_inset Flex Code
4635 status collapsed
4636
4637 \begin_layout Plain Layout
4638 "
4639 \end_layout
4640
4641 \end_inset
4642
4643 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4644 \begin_inset Flex Code
4645 status collapsed
4646
4647 \begin_layout Plain Layout
4648 iso-8859-7.cdef
4649 \end_layout
4650
4651 \end_inset
4652
4653 ファイルには,
4654 \end_layout
4655
4656 \begin_layout LyX-Code
4657 192 "
4658 \backslash
4659
4660 \backslash
4661 '{
4662 \backslash
4663
4664 \backslash
4665
4666 \backslash
4667 "{i}}"
4668 \begin_inset Newline newline
4669 \end_inset
4670
4671 192 "
4672 \backslash
4673
4674 \backslash
4675
4676 \backslash
4677 "{
4678 \backslash
4679
4680 \backslash
4681 '{i}}"
4682 \end_layout
4683
4684 \begin_layout Standard
4685 という例があります.\SpecialChar LyX
4686 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4687 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4688 \end_layout
4689
4690 \begin_layout Subsection
4691 デッドキー
4692 \end_layout
4693
4694 \begin_layout Standard
4695 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4696 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4697 \end_layout
4698
4699 \begin_layout Standard
4700 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705 lyxrc
4706 \end_layout
4707
4708 \end_inset
4709
4710 ファイル中で,
4711 \begin_inset Flex MenuItem
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715 ^
4716 \end_layout
4717
4718 \end_inset
4719
4720 キー(すなわち
4721 \begin_inset Flex MenuItem
4722 status collapsed
4723
4724 \begin_layout Plain Layout
4725 Shift-6
4726 \end_layout
4727
4728 \end_inset
4729
4730 キー)を,\SpecialChar LyX
4731 コマンドの
4732 \begin_inset Flex Code
4733 status collapsed
4734
4735 \begin_layout Plain Layout
4736 accent-circumflex
4737 \end_layout
4738
4739 \end_inset
4740
4741 に結びつけることができます.すると
4742 \begin_inset Flex MenuItem
4743 status collapsed
4744
4745 \begin_layout Plain Layout
4746 ^
4747 \end_layout
4748
4749 \end_inset
4750
4751 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4752 \begin_inset Flex MenuItem
4753 status collapsed
4754
4755 \begin_layout Plain Layout
4756 ^e
4757 \end_layout
4758
4759 \end_inset
4760
4761 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4762 \begin_inset Flex MenuItem
4763 status collapsed
4764
4765 \begin_layout Plain Layout
4766 ^t
4767 \end_layout
4768
4769 \end_inset
4770
4771 」と打鍵したならば,「
4772 \begin_inset Flex MenuItem
4773 status collapsed
4774
4775 \begin_layout Plain Layout
4776 t
4777 \end_layout
4778
4779 \end_inset
4780
4781 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4782 はビープを鳴らして文句を付けます.デッドキーの後に
4783 \begin_inset Flex MenuItem
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 スペース
4788 \end_layout
4789
4790 \end_inset
4791
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 \end_layout
4805
4806 \begin_layout Standard
4807 デッドキーを割り当てるのによく用いられる方法は,
4808 \begin_inset Flex MenuItem
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812 Meta-
4813 \end_layout
4814
4815 \end_inset
4816
4817
4818 \begin_inset Flex MenuItem
4819 status collapsed
4820
4821 \begin_layout Plain Layout
4822 Ctrl-
4823 \end_layout
4824
4825 \end_inset
4826
4827
4828 \begin_inset Flex MenuItem
4829 status collapsed
4830
4831 \begin_layout Plain Layout
4832 Shift-
4833 \end_layout
4834
4835 \end_inset
4836
4837 キーを,「
4838 \begin_inset Flex MenuItem
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 ~
4843 \end_layout
4844
4845 \end_inset
4846
4847 」・「
4848 \begin_inset Flex MenuItem
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852 ,
4853 \end_layout
4854
4855 \end_inset
4856
4857 」・「
4858 \begin_inset Flex MenuItem
4859 status collapsed
4860
4861 \begin_layout Plain Layout
4862 ^
4863 \end_layout
4864
4865 \end_inset
4866
4867 」のようなアクセントと一緒に用いる方法です.また,
4868 \begin_inset Flex Code
4869 status collapsed
4870
4871 \begin_layout Plain Layout
4872 xmodmap
4873 \end_layout
4874
4875 \end_inset
4876
4877
4878 \begin_inset Flex Code
4879 status collapsed
4880
4881 \begin_layout Plain Layout
4882 xkeycaps
4883 \end_layout
4884
4885 \end_inset
4886
4887 を使って,特別な
4888 \begin_inset Flex Code
4889 status collapsed
4890
4891 \begin_layout Plain Layout
4892 Mode_Switch
4893 \end_layout
4894
4895 \end_inset
4896
4897 キーを設定する方法もあります.
4898 \begin_inset Flex Code
4899 status collapsed
4900
4901 \begin_layout Plain Layout
4902 Mode_Switch
4903 \end_layout
4904
4905 \end_inset
4906
4907 キーは,ちょうど
4908 \begin_inset Flex MenuItem
4909 status collapsed
4910
4911 \begin_layout Plain Layout
4912 Shift
4913 \end_layout
4914
4915 \end_inset
4916
4917 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4918 \begin_inset Flex Code
4919 status collapsed
4920
4921 \begin_layout Plain Layout
4922 usldead_cedilla
4923 \end_layout
4924
4925 \end_inset
4926
4927 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4928 コマンドに割り当てることもできます
4929 \begin_inset Foot
4930 status collapsed
4931
4932 \begin_layout Plain Layout
4933
4934 \noun on
4935 John Weiss
4936 \noun default
4937 からの註:これはまさに私が,自分の
4938 \begin_inset Flex Code
4939 status collapsed
4940
4941 \begin_layout Plain Layout
4942 ~/.lyx/lyxrc
4943 \end_layout
4944
4945 \end_inset
4946
4947
4948 \begin_inset Flex Code
4949 status collapsed
4950
4951 \begin_layout Plain Layout
4952 ~/.xmodmap
4953 \end_layout
4954
4955 \end_inset
4956
4957 で行っていることです.私は,
4958 \begin_inset Flex MenuItem
4959 status collapsed
4960
4961 \begin_layout Plain Layout
4962 Scroll
4963 \begin_inset space ~
4964 \end_inset
4965
4966 Lock
4967 \end_layout
4968
4969 \end_inset
4970
4971 キーを
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 Mode_Shift
4977 \end_layout
4978
4979 \end_inset
4980
4981 に仕立てて,多数の
4982 \begin_inset Flex Code
4983 status collapsed
4984
4985 \begin_layout Plain Layout
4986 usldead_*
4987 \end_layout
4988
4989 \end_inset
4990
4991 シンボリックキーを
4992 \begin_inset Flex MenuItem
4993 status collapsed
4994
4995 \begin_layout Plain Layout
4996 Scroll
4997 \begin_inset space ~
4998 \end_inset
4999
5000 Lock-^
5001 \end_layout
5002
5003 \end_inset
5004
5005
5006 \begin_inset Flex MenuItem
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 Scroll
5011 \begin_inset space ~
5012 \end_inset
5013
5014 Lock-~
5015 \end_layout
5016
5017 \end_inset
5018
5019 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5020 \end_layout
5021
5022 \end_inset
5023
5024 .この
5025 \begin_inset Flex Code
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029 Mode_Switch
5030 \end_layout
5031
5032 \end_inset
5033
5034 キーには,
5035 \begin_inset Flex MenuItem
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039 Ctrl-
5040 \end_layout
5041
5042 \end_inset
5043
5044 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5045 コマンドについては,
5046 \emph on
5047 \SpecialChar LyX
5048 関数説明書
5049 \emph default
5050
5051 \begin_inset Flex Code
5052 status collapsed
5053
5054 \begin_layout Plain Layout
5055 LFUN_ACCENT_*
5056 \end_layout
5057
5058 \end_inset
5059
5060 の項をご覧ください.ここには完備した一覧があります.
5061 \end_layout
5062
5063 \begin_layout Subsection
5064 自分の言語設定を保存する
5065 \end_layout
5066
5067 \begin_layout Standard
5068 \begin_inset Flex MenuItem
5069 status collapsed
5070
5071 \begin_layout Plain Layout
5072 ツール\SpecialChar menuseparator
5073 設定
5074 \end_layout
5075
5076 \end_inset
5077
5078 ダイアログを使えば,\SpecialChar LyX
5079 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5080 \end_layout
5081
5082 \begin_layout Chapter
5083 文書クラス・レイアウト・ひな型の新規導入
5084 \begin_inset CommandInset label
5085 LatexCommand label
5086 name "cha:新規文書を導入"
5087
5088 \end_inset
5089
5090
5091 \begin_inset Argument 1
5092 status collapsed
5093
5094 \begin_layout Plain Layout
5095 文書クラスを新規に導入する
5096 \end_layout
5097
5098 \end_inset
5099
5100
5101 \end_layout
5102
5103 \begin_layout Standard
5104 この章では,新しく\SpecialChar LyX
5105 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5106 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5107 します.
5108 \end_layout
5109
5110 \begin_layout Standard
5111 まず,\SpecialChar LyX
5112 と\SpecialChar LaTeX
5113 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5114 は,La\SpecialChar TeX
5115 について何も知らないと
5116 云うことです.実際のところ,\SpecialChar LyX
5117 の観点からは,\SpecialChar LaTeX
5118 は,\SpecialChar LyX
5119 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5120 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5121 は,とくに重要な形式ですが,\SpecialChar LyX
5122 がLa\SpecialChar TeX
5123 について持っている情報のほとんどは,実はプログラム本体には含まれて
5124 いないのです
5125 \begin_inset Foot
5126 status collapsed
5127
5128 \begin_layout Plain Layout
5129 過度に複雑なため,\SpecialChar LyX
5130 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5131 \end_layout
5132
5133 \end_inset
5134
5135 .このような情報は,
5136 \begin_inset Flex Code
5137 status collapsed
5138
5139 \begin_layout Plain Layout
5140 article.cls
5141 \end_layout
5142
5143 \end_inset
5144
5145 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5146 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5147 が知っていることは,レイア
5148 ウトファイルの中にあります.
5149 \end_layout
5150
5151 \begin_layout Standard
5152 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5153 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5154 構成体・DocBook構成体・XHTML構成体との
5155 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5156
5157 \begin_inset Flex Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161 article.cls
5162 \end_layout
5163
5164 \end_inset
5165
5166 について知っていることのほとんど総ては,
5167 \begin_inset Flex Code
5168 status collapsed
5169
5170 \begin_layout Plain Layout
5171 article.layout
5172 \end_layout
5173
5174 \end_inset
5175
5176 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5177 としては,
5178 \begin_inset Flex Code
5179 status collapsed
5180
5181 \begin_layout Plain Layout
5182 article.layout
5183 \end_layout
5184
5185 \end_inset
5186
5187
5188 \begin_inset Flex Code
5189 status collapsed
5190
5191 \begin_layout Plain Layout
5192 book.layout
5193 \end_layout
5194
5195 \end_inset
5196
5197 や,文書クラス用の他のレイアウトファイルに取り込まれている
5198 \begin_inset Flex Code
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 stdsections.inc
5203 \end_layout
5204
5205 \end_inset
5206
5207 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5208 \begin_inset Flex Code
5209 status collapsed
5210
5211 \begin_layout Plain Layout
5212 stdsections.inc
5213 \end_layout
5214
5215 \end_inset
5216
5217 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5218 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5219 に知らせるものです.基本的に
5220 \begin_inset Flex Code
5221 status collapsed
5222
5223 \begin_layout Plain Layout
5224 article.layout
5225 \end_layout
5226
5227 \end_inset
5228
5229 ファイルは,これらの
5230 \begin_inset Flex Code
5231 status collapsed
5232
5233 \begin_layout Plain Layout
5234 std*.inc
5235 \end_layout
5236
5237 \end_inset
5238
5239 ファイルを取り込んでいるだけのものです.
5240 \end_layout
5241
5242 \begin_layout Standard
5243 しかしながら,\SpecialChar LyX
5244 –\SpecialChar LaTeX
5245 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5246 構成体自身が画面上にどのように表
5247 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5248 ます.ある段落様式を\SpecialChar LaTeX
5249 に翻訳する仕方を\SpecialChar LyX
5250 に指示することは,その表示の仕方を\SpecialChar LyX
5251 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5252 に指示することは,その段落様
5253 式をどのように\SpecialChar LaTeX
5254 に翻訳するかを\SpecialChar LyX
5255 に指示するものではありません(ましてや\SpecialChar LaTeX
5256 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5257 構成体を定義する際には,(
5258 i)
5259 \begin_inset space ~
5260 \end_inset
5261
5262 \SpecialChar LaTeX
5263 にどのように翻訳するかを\SpecialChar LyX
5264 に指示する,(ii)
5265 \begin_inset space ~
5266 \end_inset
5267
5268 それをどのように表示するかを\SpecialChar LyX
5269 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5270 \end_layout
5271
5272 \begin_layout Standard
5273 もちろん,\SpecialChar LyX
5274 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5275 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5276 力するにあたって,当該段落を\SpecialChar LyX
5277 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5278 が内部的に行うことと,外部的に行う物事の間の区
5279 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5280 \begin_inset CommandInset ref
5281 LatexCommand ref
5282 reference "sec:XHTML出力のタグ"
5283
5284 \end_inset
5285
5286 節をご覧ください.
5287 \end_layout
5288
5289 \begin_layout Section
5290 新しい\SpecialChar LaTeX
5291 ファイルの導入
5292 \end_layout
5293
5294 \begin_layout Standard
5295 頒布版によっては,\SpecialChar LyX
5296 で使いたい\SpecialChar LaTeX
5297 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5298 パッケージである,Foil\SpecialChar TeX
5299 がないかもしれません.\SpecialChar TeX
5300 Live(2008年以降)やMiK\SpecialChar TeX
5301 のような最近の\SpecialChar LaTeX
5302 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5303 ースが用意されています.たとえば,MiK\SpecialChar TeX
5304 では,付属の「Package
5305 \begin_inset space ~
5306 \end_inset
5307
5308 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5309 ださい.
5310 \end_layout
5311
5312 \begin_layout Standard
5313 お使いの\SpecialChar LaTeX
5314 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5315 してください.
5316 \end_layout
5317
5318 \begin_layout Enumerate
5319 \begin_inset CommandInset href
5320 LatexCommand href
5321 name "CTAN"
5322 target "http://www.ctan.org/"
5323
5324 \end_inset
5325
5326 などから欲しいパッケージを入手してください.
5327 \end_layout
5328
5329 \begin_layout Enumerate
5330 パッケージに「
5331 \begin_inset Flex Code
5332 status collapsed
5333
5334 \begin_layout Plain Layout
5335 .ins
5336 \end_layout
5337
5338 \end_inset
5339
5340 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5341 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5342 \begin_inset Flex Code
5343 status collapsed
5344
5345 \begin_layout Plain Layout
5346 latex foiltex.ins
5347 \end_layout
5348
5349 \end_inset
5350
5351 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5352 パッケージは圧縮されていないので,このステップは飛ばすこ
5353 とができます.
5354 \end_layout
5355
5356 \begin_layout Enumerate
5357 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5358 \begin_inset Separator latexpar
5359 \end_inset
5360
5361
5362 \end_layout
5363
5364 \begin_deeper
5365 \begin_layout Enumerate
5366 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5367 ツリーに導入し,そうでなければ「ユー
5368 ザー」\SpecialChar TeX
5369 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5370 \begin_inset Flex Code
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374 texmf.cnf
5375 \end_layout
5376
5377 \end_inset
5378
5379 ファイルを参照してください
5380 \begin_inset Foot
5381 status collapsed
5382
5383 \begin_layout Plain Layout
5384 このファイルは,通常
5385 \family sans
5386 $TEXMF/web2c
5387 \family default
5388 ディレクトリにありますが,コマンド
5389 \begin_inset Flex Code
5390 status collapsed
5391
5392 \begin_layout Plain Layout
5393 kpsewhich texmf.cnf
5394 \end_layout
5395
5396 \end_inset
5397
5398 を実行してその場所を見つけることもできます.
5399 \end_layout
5400
5401 \end_inset
5402
5403 .「ローカル」\SpecialChar TeX
5404 ツリーの場所は,
5405 \begin_inset Flex Code
5406 status collapsed
5407
5408 \begin_layout Plain Layout
5409 TEXMFLOCAL
5410 \end_layout
5411
5412 \end_inset
5413
5414 変数で定義されており,通常は
5415 \begin_inset Flex Code
5416 status collapsed
5417
5418 \begin_layout Plain Layout
5419 /usr/local/share/texmf/
5420 \end_layout
5421
5422 \end_inset
5423
5424
5425 \begin_inset Flex Code
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429 /usr/local/texlive/XXXX
5430 \end_layout
5431
5432 \end_inset
5433
5434  (XXXXは導入されている\SpecialChar TeX
5435 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5436 ツリーの場所は,
5437 \begin_inset Flex Code
5438 status collapsed
5439
5440 \begin_layout Plain Layout
5441 TEXMFHOME
5442 \end_layout
5443
5444 \end_inset
5445
5446 で定義されており,通常は
5447 \begin_inset Flex Code
5448 status collapsed
5449
5450 \begin_layout Plain Layout
5451 $HOME/texmf/
5452 \end_layout
5453
5454 \end_inset
5455
5456
5457 \begin_inset Flex Code
5458 status collapsed
5459
5460 \begin_layout Plain Layout
5461 $HOME/.texliveXXXX
5462 \end_layout
5463
5464 \end_inset
5465
5466 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5467 ,「ユーザー」ツリーにはこのような制限はありません.
5468 \begin_inset Newline newline
5469 \end_inset
5470
5471 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5472 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5473 \end_layout
5474
5475 \begin_layout Enumerate
5476 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5477 の導入されているフォルダのサブフォルダ
5478 \begin_inset Flex Code
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 ~
5483 \backslash
5484 tex
5485 \backslash
5486 latex
5487 \end_layout
5488
5489 \end_inset
5490
5491 に移動します(MiK\SpecialChar TeX
5492 の既定値では,これは
5493 \begin_inset Flex Code
5494 status collapsed
5495
5496 \begin_layout Plain Layout
5497 ~:Programs
5498 \backslash
5499 MiKTeX
5500 \backslash
5501 tex
5502 \backslash
5503 latex
5504 \end_layout
5505
5506 \end_inset
5507
5508 です)
5509 \begin_inset Foot
5510 status open
5511
5512 \begin_layout Plain Layout
5513 これは,英語版でのみ正しいパスになっています.独語版では
5514 \begin_inset Flex Code
5515 status collapsed
5516
5517 \begin_layout Plain Layout
5518 ~:Programme
5519 \backslash
5520 MiKTeX
5521 \backslash
5522 tex
5523 \backslash
5524 latex
5525 \end_layout
5526
5527 \end_inset
5528
5529 となり,他の言語でも同様です.
5530 \end_layout
5531
5532 \end_inset
5533
5534 .ここに新規フォルダ
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539 foiltex
5540 \end_layout
5541
5542 \end_inset
5543
5544 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5545 フォルダで同じ
5546 ことを行います.たとえばMiK\SpecialChar TeX
5547
5548 \begin_inset space ~
5549 \end_inset
5550
5551 2.8では,これはWinXP上では
5552 \begin_inset Newline newline
5553 \end_inset
5554
5555
5556 \begin_inset Flex Code
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 ~:
5561 \backslash
5562 Documents and Settings
5563 \backslash
5564 <ユーザー名>
5565 \backslash
5566 Application Data
5567 \backslash
5568
5569 \end_layout
5570
5571 \end_inset
5572
5573
5574 \begin_inset Newline newline
5575 \end_inset
5576
5577
5578 \begin_inset Phantom HPhantom
5579 status open
5580
5581 \begin_layout Plain Layout
5582
5583 \family typewriter
5584 ~:
5585 \backslash
5586
5587 \end_layout
5588
5589 \end_inset
5590
5591
5592 \begin_inset Flex Code
5593 status collapsed
5594
5595 \begin_layout Plain Layout
5596 MiKTeX
5597 \backslash
5598 2.8
5599 \backslash
5600 tex
5601 \backslash
5602 latex
5603 \end_layout
5604
5605 \end_inset
5606
5607
5608 \begin_inset Newline newline
5609 \end_inset
5610
5611 フォルダ,WinVista上では
5612 \begin_inset Newline newline
5613 \end_inset
5614
5615
5616 \begin_inset Flex Code
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 ~:
5621 \backslash
5622 Users
5623 \backslash
5624 <ユーザー名>
5625 \backslash
5626 AppData
5627 \backslash
5628 Roaming
5629 \backslash
5630 2.8
5631 \backslash
5632 MiKTeX
5633 \backslash
5634 tex
5635 \backslash
5636 latex
5637 \end_layout
5638
5639 \end_inset
5640
5641
5642 \begin_inset Newline newline
5643 \end_inset
5644
5645 フォルダになります.
5646 \end_layout
5647
5648 \end_deeper
5649 \begin_layout Enumerate
5650 ここまで来れば,あとは\SpecialChar LaTeX
5651 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5652 頒布版に依存します.
5653 \begin_inset Separator latexpar
5654 \end_inset
5655
5656
5657 \end_layout
5658
5659 \begin_deeper
5660 \begin_layout Enumerate
5661 \SpecialChar TeX
5662 Liveの場合には,コンソールから
5663 \begin_inset Flex Code
5664 status collapsed
5665
5666 \begin_layout Plain Layout
5667 texhash
5668 \end_layout
5669
5670 \end_inset
5671
5672 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5673 \end_layout
5674
5675 \begin_layout Enumerate
5676 MiK\SpecialChar TeX
5677 では,パッケージを全ユーザー用に導入した場合には,「Settings
5678 \begin_inset space ~
5679 \end_inset
5680
5681 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5682
5683 \end_layout
5684
5685 \end_deeper
5686 \begin_layout Enumerate
5687 最後に,\SpecialChar LyX
5688 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5689 からツール\SpecialChar menuseparator
5690 環境構成メニューを実行して,\SpecialChar LyX
5691 を再起動します.
5692 \end_layout
5693
5694 \begin_layout Standard
5695 これでパッケージが導入されました.この例では,文書クラス
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700 Slides
5701 \begin_inset space ~
5702 \end_inset
5703
5704 (FoilTeX)
5705 \end_layout
5706
5707 \end_inset
5708
5709
5710 \begin_inset Flex MenuItem
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714 文書\SpecialChar menuseparator
5715 設定\SpecialChar menuseparator
5716 文書クラス
5717 \end_layout
5718
5719 \end_inset
5720
5721 で利用可能になっているはずです.
5722 \end_layout
5723
5724 \begin_layout Standard
5725 \begin_inset Flex MenuItem
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729 文書\SpecialChar menuseparator
5730 設定\SpecialChar menuseparator
5731 文書クラス
5732 \end_layout
5733
5734 \end_inset
5735
5736 メニューに列挙されてもいない\SpecialChar LaTeX
5737 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5738 \end_layout
5739
5740 \begin_layout Section
5741 レイアウトファイルの型
5742 \end_layout
5743
5744 \begin_layout Standard
5745 この節は,レイアウト情報を含む各種\SpecialChar LyX
5746 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5747 がそれらをどのように
5748 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5749 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5750 \end_layout
5751
5752 \begin_layout Standard
5753 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5754 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5755 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5756 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5757 を出していますので,気軽に質問を投げかけてみてください.
5758 \end_layout
5759
5760 \begin_layout Standard
5761 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5762 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5763 文書クラス用の\SpecialChar LyX
5764 レイアウトを作ったり,
5765 他の人々にも有用なモジュールをお書きになった場合には,
5766 \begin_inset CommandInset href
5767 LatexCommand href
5768 name "LyX Wikiのレイアウトに関する節"
5769 target "http://wiki.lyx.org/Layouts/Layouts"
5770
5771 \end_inset
5772
5773 か,\SpecialChar LyX
5774 開発者メーリングリストに投稿して,\SpecialChar LyX
5775 頒布版に同梱することができるようにしてください
5776 \begin_inset Foot
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 \SpecialChar LyX
5781 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5782 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5783 \end_layout
5784
5785 \end_inset
5786
5787
5788 \end_layout
5789
5790 \begin_layout Subsection
5791 レイアウトモジュール
5792 \begin_inset CommandInset label
5793 LatexCommand label
5794 name "subsec:レイアウトモジュール"
5795
5796 \end_inset
5797
5798
5799 \end_layout
5800
5801 \begin_layout Standard
5802 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5803 ,それは
5804 \begin_inset Flex Code
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808 .layout
5809 \end_layout
5810
5811 \end_inset
5812
5813 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5814 に提供するものを指します.しかしながら,\SpecialChar LyX
5815  1.6以降,レイアウト情報は,拡張子が
5816 \begin_inset Flex Code
5817 status collapsed
5818
5819 \begin_layout Plain Layout
5820 .module
5821 \end_layout
5822
5823 \end_inset
5824
5825 のレイアウト
5826 \emph on
5827 モジュール
5828 \emph default
5829 にも含めることができます.レイアウトが\SpecialChar LaTeX
5830 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5831 パッケージに対応するものであり,
5832 \begin_inset Flex Code
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836 endnotes
5837 \end_layout
5838
5839 \end_inset
5840
5841 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5842 イアウトで使用できるという意味において,一面,
5843 \begin_inset Flex Code
5844 status collapsed
5845
5846 \begin_layout Plain Layout
5847 stdsections.inc
5848 \end_layout
5849
5850 \end_inset
5851
5852 等のインクルードファイル
5853 \begin_inset Foot
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 これらは任意の拡張子をつけることができますが,慣習的に
5858 \begin_inset Flex Code
5859 status collapsed
5860
5861 \begin_layout Plain Layout
5862 .inc
5863 \end_layout
5864
5865 \end_inset
5866
5867 拡張子が用いられます.
5868 \end_layout
5869
5870 \end_inset
5871
5872 のようなものです.相異なる点といえば,
5873 \begin_inset Flex Code
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877 article.cls
5878 \end_layout
5879
5880 \end_inset
5881
5882 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5883 \begin_inset Flex MenuItem
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 文書\SpecialChar menuseparator
5888 設定
5889 \end_layout
5890
5891 \end_inset
5892
5893 ダイアログで選択するだけですみます.
5894 \end_layout
5895
5896 \begin_layout Standard
5897 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5898 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5899 \end_layout
5900
5901 \begin_layout Standard
5902 新しいモジュールを作成し,それを
5903 \begin_inset Flex Code
5904 status collapsed
5905
5906 \begin_layout Plain Layout
5907 layout/
5908 \end_layout
5909
5910 \end_inset
5911
5912 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5913 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5914 \begin_inset Flex MenuItem
5915 status collapsed
5916
5917 \begin_layout Plain Layout
5918 文書\SpecialChar menuseparator
5919 設定
5920 \end_layout
5921
5922 \end_inset
5923
5924 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5925 \emph on
5926 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5927 \emph default
5928 .もっと言えば,
5929 \emph on
5930 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5931 \emph default
5932 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5933 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5934 とがあるからです.
5935 \end_layout
5936
5937 \begin_layout Subsubsection
5938 ローカルレイアウト
5939 \end_layout
5940
5941 \begin_layout Standard
5942 \SpecialChar LyX
5943 に於けるモジュールは,\SpecialChar LaTeX
5944 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5945 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5946 \end_layout
5947
5948 \begin_layout Standard
5949 これは,
5950 \family sans
5951 文書\SpecialChar menuseparator
5952 設定\SpecialChar menuseparator
5953 ローカルのレイアウト
5954 \family default
5955 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5956 は,その文書専属のモジュールだと考えることができます.したがって,
5957 \begin_inset Flex Code
5958 status collapsed
5959
5960 \begin_layout Plain Layout
5961 Format
5962 \end_layout
5963
5964 \end_inset
5965
5966 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5967  2.2では,最新書式は60です)
5968 \end_layout
5969
5970 \begin_layout Standard
5971 \begin_inset Flex Code
5972 status collapsed
5973
5974 \begin_layout Plain Layout
5975 ローカルのレイアウト
5976 \end_layout
5977
5978 \end_inset
5979
5980 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5981 ているかどうかが検証されます.すると,\SpecialChar LyX
5982 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5983 をターミナル(
5984 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5985 \end_layout
5986
5987 \begin_layout Standard
5988 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5989 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5990 \end_layout
5991
5992 \begin_layout Subsection
5993 \begin_inset Flex MenuItem
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 .sty
5998 \end_layout
5999
6000 \end_inset
6001
6002 ファイル用のレイアウト
6003 \end_layout
6004
6005 \begin_layout Standard
6006 新しく\SpecialChar LaTeX
6007 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
6008 クラス(
6009 \begin_inset Flex Code
6010 status collapsed
6011
6012 \begin_layout Plain Layout
6013 .cls
6014 \end_layout
6015
6016 \end_inset
6017
6018 )ファイルが絡む場合と,スタイル(
6019 \begin_inset Flex Code
6020 status collapsed
6021
6022 \begin_layout Plain Layout
6023 .sty
6024 \end_layout
6025
6026 \end_inset
6027
6028 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6029 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6030 が当てはまります.
6031 \end_layout
6032
6033 \begin_layout Standard
6034 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6035 \begin_inset Flex MenuItem
6036 status collapsed
6037
6038 \begin_layout Plain Layout
6039 myclass.sty
6040 \end_layout
6041
6042 \end_inset
6043
6044 という名称で,標準的なクラスである
6045 \begin_inset Flex MenuItem
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 report.cls
6050 \end_layout
6051
6052 \end_inset
6053
6054 と共に用いられるものと仮定しましょう.
6055 \end_layout
6056
6057 \begin_layout Standard
6058 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6059 \begin_inset Foot
6060 status collapsed
6061
6062 \begin_layout Plain Layout
6063 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6064 では,起動時に
6065 \begin_inset Flex MenuItem
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 -userdir
6070 \end_layout
6071
6072 \end_inset
6073
6074 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6075 \end_layout
6076
6077 \end_inset
6078
6079
6080 \end_layout
6081
6082 \begin_layout LyX-Code
6083 cp report.layout ~/.lyx/layouts/myclass.layout
6084 \end_layout
6085
6086 \begin_layout Standard
6087 それから,
6088 \begin_inset Flex Code
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092 myclass.layout
6093 \end_layout
6094
6095 \end_inset
6096
6097 を編集して,
6098 \end_layout
6099
6100 \begin_layout LyX-Code
6101
6102 \backslash
6103 DeclareLaTeXClass{report}
6104 \end_layout
6105
6106 \begin_layout Standard
6107 という行を
6108 \end_layout
6109
6110 \begin_layout LyX-Code
6111
6112 \backslash
6113 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6114 \end_layout
6115
6116 \begin_layout Standard
6117 のように変更してください.それから,ファイル冒頭辺りに
6118 \end_layout
6119
6120 \begin_layout LyX-Code
6121 Preamble 
6122 \begin_inset Newline newline
6123 \end_inset
6124
6125     
6126 \backslash
6127 usepackage{myclass}
6128 \begin_inset Newline newline
6129 \end_inset
6130
6131 EndPreamble
6132 \end_layout
6133
6134 \begin_layout Standard
6135 と書き加えてください.
6136 \end_layout
6137
6138 \begin_layout Standard
6139 \SpecialChar LyX
6140 を起動して
6141 \begin_inset Flex MenuItem
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 ツール\SpecialChar menuseparator
6146 環境構成
6147 \end_layout
6148
6149 \end_inset
6150
6151 を選択してください.それから\SpecialChar LyX
6152 を再起動し,新規文書を作成してみてください.すると,
6153 \begin_inset Flex MenuItem
6154 status collapsed
6155
6156 \begin_layout Plain Layout
6157 文書\SpecialChar menuseparator
6158 設定
6159 \end_layout
6160
6161 \end_inset
6162
6163 ダイアログの文書クラスオプションに「
6164 \begin_inset Flex MenuItem
6165 status collapsed
6166
6167 \begin_layout Plain Layout
6168 report (myclass)
6169 \end_layout
6170
6171 \end_inset
6172
6173 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6174 \begin_inset Flex Code
6175 status collapsed
6176
6177 \begin_layout Plain Layout
6178 report
6179 \end_layout
6180
6181 \end_inset
6182
6183 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6184 \begin_inset Flex Code
6185 status collapsed
6186
6187 \begin_layout Plain Layout
6188 stdsections.inc
6189 \end_layout
6190
6191 \end_inset
6192
6193 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6194 \begin_inset Flex Code
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 stdsections.inc
6199 \end_layout
6200
6201 \end_inset
6202
6203 も取り込む
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 Input stdclass.inc
6209 \end_layout
6210
6211 \end_inset
6212
6213 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6214 \end_layout
6215
6216 \begin_layout LyX-Code
6217 Style Chapter
6218 \end_layout
6219
6220 \begin_layout LyX-Code
6221     Font
6222 \end_layout
6223
6224 \begin_layout LyX-Code
6225         Family Sans
6226 \end_layout
6227
6228 \begin_layout LyX-Code
6229     EndFont
6230 \end_layout
6231
6232 \begin_layout LyX-Code
6233 End
6234 \end_layout
6235
6236 \begin_layout Standard
6237 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6238 \end_layout
6239
6240 \begin_layout Standard
6241 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6242 いては,第
6243 \begin_inset CommandInset ref
6244 LatexCommand ref
6245 reference "sec:テキストクラス"
6246
6247 \end_inset
6248
6249 節の情報を参照してください.
6250 \end_layout
6251
6252 \begin_layout Standard
6253 もし
6254 \begin_inset Flex Code
6255 status collapsed
6256
6257 \begin_layout Plain Layout
6258 myclass.sty
6259 \end_layout
6260
6261 \end_inset
6262
6263 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6264 う.最も簡単なモジュールの例としては,以下のようなものになります.
6265 \end_layout
6266
6267 \begin_layout LyX-Code
6268 #
6269 \backslash
6270 DeclareLyXModule{My Package}
6271 \end_layout
6272
6273 \begin_layout LyX-Code
6274 #DescriptionBegin
6275 \end_layout
6276
6277 \begin_layout LyX-Code
6278 #Support for mypkg.sty.
6279 \end_layout
6280
6281 \begin_layout LyX-Code
6282 #DescriptionEnd
6283 \begin_inset Newline newline
6284 \end_inset
6285
6286
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290 Format 60
6291 \begin_inset Newline newline
6292 \end_inset
6293
6294
6295 \end_layout
6296
6297 \begin_layout LyX-Code
6298 Preamble
6299 \begin_inset Newline newline
6300 \end_inset
6301
6302     
6303 \backslash
6304 usepackage{mypkg}
6305 \begin_inset Newline newline
6306 \end_inset
6307
6308 EndPreamble
6309 \end_layout
6310
6311 \begin_layout Standard
6312 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6313 \begin_inset CommandInset ref
6314 LatexCommand ref
6315 reference "sec:テキストクラス"
6316
6317 \end_inset
6318
6319 節を参照してください.
6320 \end_layout
6321
6322 \begin_layout Subsection
6323 \begin_inset Flex MenuItem
6324 status collapsed
6325
6326 \begin_layout Plain Layout
6327 .cls
6328 \end_layout
6329
6330 \end_inset
6331
6332 ファイル用のレイアウト
6333 \end_layout
6334
6335 \begin_layout Standard
6336 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6337 \begin_inset Flex MenuItem
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 book.cls
6342 \end_layout
6343
6344 \end_inset
6345
6346 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6347 \end_layout
6348
6349 \begin_layout LyX-Code
6350
6351 \backslash
6352 LoadClass{book}
6353 \end_layout
6354
6355 \begin_layout Standard
6356 という行がないかどうか探してください.もしこれがあれば,
6357 \begin_inset Flex Code
6358 status collapsed
6359
6360 \begin_layout Plain Layout
6361 Declare\SpecialChar LaTeX
6362 Class
6363 \end_layout
6364
6365 \end_inset
6366
6367 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6368 \begin_inset Flex Code
6369 status collapsed
6370
6371 \begin_layout Plain Layout
6372 thesis
6373 \end_layout
6374
6375 \end_inset
6376
6377 であり,
6378 \begin_inset Flex Code
6379 status collapsed
6380
6381 \begin_layout Plain Layout
6382 book
6383 \end_layout
6384
6385 \end_inset
6386
6387 クラスに基づいていれば,
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 Declare\SpecialChar LaTeX
6393 Class
6394 \end_layout
6395
6396 \end_inset
6397
6398 行は以下のようにします
6399 \begin_inset Foot
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 さらに\SpecialChar LyX
6404 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6405 \begin_inset Flex Code
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 thesis.layout
6410 \end_layout
6411
6412 \end_inset
6413
6414 という名前で保存するのが最も簡単です. 
6415 \end_layout
6416
6417 \end_inset
6418
6419
6420 \end_layout
6421
6422 \begin_layout LyX-Code
6423
6424 \backslash
6425 DeclareLaTeXClass[thesis,book]{thesis}
6426 \end_layout
6427
6428 \begin_layout Standard
6429 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6430 クラスを使用してい
6431 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6432 業の開始点としてください.
6433 \end_layout
6434
6435 \begin_layout Subsection
6436 ひな型を作成する
6437 \begin_inset CommandInset label
6438 LatexCommand label
6439 name "sec:ひな型を作成する"
6440
6441 \end_inset
6442
6443
6444 \end_layout
6445
6446 \begin_layout Standard
6447 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6448 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6449 添付のひな型をあれこれ見てみるのもよいでしょう.
6450 \end_layout
6451
6452 \begin_layout Standard
6453 ひな型は,通常の文書と同様,\SpecialChar LyX
6454 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6455 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6456 \begin_inset Flex Code
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460
6461 \backslash
6462 fontscheme
6463 \end_layout
6464
6465 \end_inset
6466
6467
6468 \begin_inset Flex Code
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472
6473 \backslash
6474 papersize
6475 \end_layout
6476
6477 \end_inset
6478
6479 などの対応するコマンドをひな型\SpecialChar LyX
6480 ファイルから取り除く必要があります.これは,たとえば
6481 \begin_inset Flex Code
6482 status collapsed
6483
6484 \begin_layout Plain Layout
6485 vi
6486 \end_layout
6487
6488 \end_inset
6489
6490
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 notepad
6496 \end_layout
6497
6498 \end_inset
6499
6500 のような,どの軽いテキストエディタでも行うことができます.
6501 \end_layout
6502
6503 \begin_layout Standard
6504 編集したひな型を
6505 \begin_inset Flex Code
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 UserDir/templates/
6510 \end_layout
6511
6512 \end_inset
6513
6514 に置き,グローバルなひな型ディレクトリ
6515 \begin_inset Flex Code
6516 status collapsed
6517
6518 \begin_layout Plain Layout
6519 LyXDir/templates/
6520 \end_layout
6521
6522 \end_inset
6523
6524 から使用したいものを同じ場所にコピーし,
6525 \begin_inset Flex MenuItem
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 ツール\SpecialChar menuseparator
6530 設定\SpecialChar menuseparator
6531 パス
6532 \end_layout
6533
6534 \end_inset
6535
6536 ダイアログのひな型パスを再定義してください.
6537 \end_layout
6538
6539 \begin_layout Standard
6540 ところで,特別な意味を持つひな型
6541 \begin_inset Flex Code
6542 status collapsed
6543
6544 \begin_layout Plain Layout
6545 defaults.lyx
6546 \end_layout
6547
6548 \end_inset
6549
6550 があることに注意してください.このひな型は,
6551 \begin_inset Flex MenuItem
6552 status collapsed
6553
6554 \begin_layout Plain Layout
6555 ファイル\SpecialChar menuseparator
6556 新規
6557 \end_layout
6558
6559 \end_inset
6560
6561 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6562 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6563 開き,
6564 \begin_inset Flex MenuItem
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 文書既定値として保存
6569 \end_layout
6570
6571 \end_inset
6572
6573 ボタンを押すことです.
6574 \end_layout
6575
6576 \begin_layout Subsection
6577 旧レイアウトファイルの更新
6578 \end_layout
6579
6580 \begin_layout Standard
6581 レイアウトファイルの書式は,\SpecialChar LyX
6582 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6583 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6584 は,
6585 自動的に変換ツール
6586 \begin_inset Flex Code
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590 \SpecialChar LyX
6591 Dir/scripts/layout2layout.py
6592 \end_layout
6593
6594 \end_inset
6595
6596 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6597 がこれを毎回行な
6598 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6599 \end_layout
6600
6601 \begin_layout Enumerate
6602 ファイル
6603 \begin_inset Flex Code
6604 status collapsed
6605
6606 \begin_layout Plain Layout
6607 myclass.layout
6608 \end_layout
6609
6610 \end_inset
6611
6612
6613 \begin_inset Flex Code
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 myclass.old
6618 \end_layout
6619
6620 \end_inset
6621
6622 に改称
6623 \end_layout
6624
6625 \begin_layout Enumerate
6626 以下のコマンドをコール
6627 \begin_inset Newline newline
6628 \end_inset
6629
6630
6631 \begin_inset Flex Code
6632 status collapsed
6633
6634 \begin_layout Plain Layout
6635 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6636 \end_layout
6637
6638 \end_inset
6639
6640
6641 \begin_inset Newline newline
6642 \end_inset
6643
6644 ここで
6645 \begin_inset Flex Code
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649 LyXDir
6650 \end_layout
6651
6652 \end_inset
6653
6654 は\SpecialChar LyX
6655 システムディレクトリの名前です.
6656 \end_layout
6657
6658 \begin_layout Standard
6659 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6660 \end_layout
6661
6662 \begin_layout Section
6663 \begin_inset CommandInset label
6664 LatexCommand label
6665 name "sec:テキストクラス"
6666
6667 \end_inset
6668
6669 レイアウトファイルの書式
6670 \end_layout
6671
6672 \begin_layout Standard
6673 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6674 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6675 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6676 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6677 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6678 \end_layout
6679
6680 \begin_layout Standard
6681 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6682 \begin_inset Flex Code
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 Style
6687 \end_layout
6688
6689 \end_inset
6690
6691
6692 \begin_inset Flex Code
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 style
6697 \end_layout
6698
6699 \end_inset
6700
6701
6702 \begin_inset Flex Code
6703 status collapsed
6704
6705 \begin_layout Plain Layout
6706 StYlE
6707 \end_layout
6708
6709 \end_inset
6710
6711 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6712 \begin_inset Flex Code
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716
6717 \emph on
6718 強調
6719 \end_layout
6720
6721 \end_inset
6722
6723 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6724 \begin_inset Flex Code
6725 status collapsed
6726
6727 \begin_layout Plain Layout
6728 浮動小数点型=
6729 \emph on
6730 既定値
6731 \end_layout
6732
6733 \end_inset
6734
6735 のように表示されます.
6736 \end_layout
6737
6738 \begin_layout Subsection
6739 文書クラス宣言と分類
6740 \end_layout
6741
6742 \begin_layout Standard
6743 レイアウトファイル中の
6744 \begin_inset Flex Code
6745 status collapsed
6746
6747 \begin_layout Plain Layout
6748 #
6749 \end_layout
6750
6751 \end_inset
6752
6753 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6754 \begin_inset Flex Code
6755 status collapsed
6756
6757 \begin_layout Plain Layout
6758 *.layout
6759 \end_layout
6760
6761 \end_inset
6762
6763 ファイルは,以下のような行で始めなくてはならないのです.
6764 \end_layout
6765
6766 \begin_layout LyX-Code
6767
6768 \size small
6769 #% Do not delete the line below; configure depends on this
6770 \end_layout
6771
6772 \begin_layout LyX-Code
6773
6774 \size small
6775 #  
6776 \backslash
6777 DeclareLaTeXClass{Article (Standard Class)}
6778 \end_layout
6779
6780 \begin_layout LyX-Code
6781
6782 \size small
6783 #  
6784 \backslash
6785 DeclareCategory{Articles}
6786 \end_layout
6787
6788 \begin_layout Standard
6789 2行目と3行目は,\SpecialChar LyX
6790 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6791 スクリプト
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 chkconfig.ltx
6797 \end_layout
6798
6799 \end_inset
6800
6801 が,
6802 \begin_inset Flex Code
6803 status collapsed
6804
6805 \begin_layout Plain Layout
6806 #
6807 \end_layout
6808
6809 \end_inset
6810
6811 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6812 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6813 行が
6814 \begin_inset Flex Code
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 article.layout
6819 \end_layout
6820
6821 \end_inset
6822
6823 と名付けられたファイルにあると,
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 article
6829 \end_layout
6830
6831 \end_inset
6832
6833 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6834 文書クラス
6835 \begin_inset Flex Code
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 article.cls
6840 \end_layout
6841
6842 \end_inset
6843
6844 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6845 \begin_inset Flex MenuItem
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 文書\SpecialChar menuseparator
6850 設定
6851 \end_layout
6852
6853 \end_inset
6854
6855 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6856 \begin_inset Flex MenuItem
6857 status collapsed
6858
6859 \begin_layout Plain Layout
6860 文書\SpecialChar menuseparator
6861 設定
6862 \end_layout
6863
6864 \end_inset
6865
6866 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6867 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6868 rized」グループに属することになります.
6869 \end_layout
6870
6871 \begin_layout Standard
6872 節見出し表示に変更を加えた,
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 article.cls
6878 \end_layout
6879
6880 \end_inset
6881
6882 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 myarticle.layout
6888 \end_layout
6889
6890 \end_inset
6891
6892 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6893 \end_layout
6894
6895 \begin_layout LyX-Code
6896
6897 \size small
6898 #% Do not delete the line below; configure depends on this 
6899 \end_layout
6900
6901 \begin_layout LyX-Code
6902
6903 \size small
6904 #  
6905 \backslash
6906 DeclareLaTeXClass[article]{article (with My Own Headings)}
6907 \end_layout
6908
6909 \begin_layout LyX-Code
6910
6911 \size small
6912 #  
6913 \backslash
6914 DeclareCategory{Articles}
6915 \end_layout
6916
6917 \begin_layout Standard
6918 これは,\SpecialChar LaTeX
6919 文書クラス
6920 \begin_inset Flex Code
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924 article.cls
6925 \end_layout
6926
6927 \end_inset
6928
6929 に関連づけられ,「Article (with My Own Headings)」と表示される,
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 myarticle
6935 \end_layout
6936
6937 \end_inset
6938
6939 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6940 \end_layout
6941
6942 \begin_layout LyX-Code
6943
6944 \size small
6945 #% Do not delete the line below; configure depends on this 
6946 \end_layout
6947
6948 \begin_layout LyX-Code
6949
6950 \size small
6951 #  
6952 \backslash
6953 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
6954 \end_layout
6955
6956 \begin_layout LyX-Code
6957
6958 \size small
6959 #  
6960 \backslash
6961 DeclareCategory{Articles}
6962 \end_layout
6963
6964 \begin_layout Standard
6965 これは,このテキストクラスが
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 foo.sty
6971 \end_layout
6972
6973 \end_inset
6974
6975 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
6976 \end_layout
6977
6978 \begin_layout LyX-Code
6979
6980 \size small
6981 #% Do not delete the line below; configure depends on this 
6982 \end_layout
6983
6984 \begin_layout LyX-Code
6985
6986 \size small
6987
6988 \backslash
6989 DeclareDocBookClass[article]{SGML (DocBook article)}
6990 \end_layout
6991
6992 \begin_layout LyX-Code
6993
6994 \size small
6995 #  
6996 \backslash
6997 DeclareCategory{Articles}
6998 \end_layout
6999
7000 \begin_layout Standard
7001 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7002 \end_layout
7003
7004 \begin_layout Standard
7005 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7006 \end_layout
7007
7008 \begin_layout LyX-Code
7009
7010 \size small
7011 #  
7012 \backslash
7013 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7014 \end_layout
7015
7016 \begin_layout LyX-Code
7017
7018 \size small
7019 #  
7020 \backslash
7021 DeclareCategory{分類}
7022 \end_layout
7023
7024 \begin_layout Standard
7025 ここで「クラス」は,\SpecialChar LaTeX
7026 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7027 は単純に,クラスファイル
7028 名がレイアウトファイル名と同じであると仮定します.
7029 \end_layout
7030
7031 \begin_layout Standard
7032 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7033 \begin_inset Flex Code
7034 status collapsed
7035
7036 \begin_layout Plain Layout
7037 LyXDir/layouts/
7038 \end_layout
7039
7040 \end_inset
7041
7042
7043 \begin_inset Flex Code
7044 status collapsed
7045
7046 \begin_layout Plain Layout
7047 UserDir/layouts
7048 \end_layout
7049
7050 \end_inset
7051
7052 にコピーし,
7053 \begin_inset Flex MenuItem
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 ツール\SpecialChar menuseparator
7058 環境構成
7059 \end_layout
7060
7061 \end_inset
7062
7063 を実行し,\SpecialChar LyX
7064 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7065 \end_layout
7066
7067 \begin_layout Standard
7068 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7069 を再起動したりすることなく,その変更を確認することができます
7070 \begin_inset Foot
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 第1.6版よりも前の\SpecialChar LyX
7075 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7076 を再起動しなくてはならなかったので,
7077 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7078 \end_layout
7079
7080 \end_inset
7081
7082 .\SpecialChar LyX
7083 関数
7084 \begin_inset Flex MenuItem
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 layout-reload
7089 \end_layout
7090
7091 \end_inset
7092
7093 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7094 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7095 \end_layout
7096
7097 \begin_layout Standard
7098
7099 \emph on
7100 注意
7101 \emph default
7102
7103 \begin_inset Flex MenuItem
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 layout-reload
7108 \end_layout
7109
7110 \end_inset
7111
7112 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7113 \emph on
7114 強く
7115 \emph default
7116 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7117 \emph on
7118 強く
7119 \emph default
7120 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7121 は現在の
7122 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7123 \begin_inset Foot
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7128 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7129 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7130 ださい.
7131 \end_layout
7132
7133 \end_inset
7134
7135 .\SpecialChar LyX
7136 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7137 \begin_inset Foot
7138 status collapsed
7139
7140 \begin_layout Plain Layout
7141 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7142 \end_layout
7143
7144 \end_inset
7145
7146
7147 \end_layout
7148
7149 \begin_layout Subsection
7150 モジュール宣言
7151 \end_layout
7152
7153 \begin_layout Standard
7154 モジュールは,以下のような行で始まらなくてはなりません.
7155 \end_layout
7156
7157 \begin_layout LyX-Code
7158 #
7159 \backslash
7160 DeclareLyXModule[endnotes.sty]{Endnotes} 
7161 \end_layout
7162
7163 \begin_layout Standard
7164 波括弧内に入っている必須引数はモジュール名で,これは
7165 \begin_inset Flex MenuItem
7166 status collapsed
7167
7168 \begin_layout Plain Layout
7169 文書\SpecialChar menuseparator
7170 設定
7171 \end_layout
7172
7173 \end_inset
7174
7175 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7176 パッケージをすべて宣言します.また,非必須引数として,
7177 \begin_inset Flex Code
7178 status collapsed
7179
7180 \begin_layout Plain Layout
7181 変換元->変換先
7182 \end_layout
7183
7184 \end_inset
7185
7186 の形を使用することができます.これは,
7187 \begin_inset Flex Code
7188 status collapsed
7189
7190 \begin_layout Plain Layout
7191 変換元
7192 \end_layout
7193
7194 \end_inset
7195
7196 形式から
7197 \begin_inset Flex Code
7198 status collapsed
7199
7200 \begin_layout Plain Layout
7201 変換先
7202 \end_layout
7203
7204 \end_inset
7205
7206 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7207 \end_layout
7208
7209 \begin_layout Standard
7210 それから,以下のようなモジュール宣言を行います
7211 \begin_inset Foot
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 モジュールを\SpecialChar LyX
7216 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7217 \end_layout
7218
7219 \end_inset
7220
7221
7222 \end_layout
7223
7224 \begin_layout LyX-Code
7225 #DescriptionBegin 
7226 \end_layout
7227
7228 \begin_layout LyX-Code
7229 #Adds an endnote command, in addition to footnotes.
7230  
7231 \end_layout
7232
7233 \begin_layout LyX-Code
7234 #You will need to add  
7235 \backslash
7236 theendnotes in TeX code where you 
7237 \end_layout
7238
7239 \begin_layout LyX-Code
7240 #want the endnotes to appear.
7241  
7242 \end_layout
7243
7244 \begin_layout LyX-Code
7245 #DescriptionEnd 
7246 \end_layout
7247
7248 \begin_layout LyX-Code
7249 #Requires: somemodule | othermodule
7250 \end_layout
7251
7252 \begin_layout LyX-Code
7253 #Excludes: badmodule
7254 \end_layout
7255
7256 \begin_layout Standard
7257 ここで説明(Description)は,
7258 \begin_inset Flex MenuItem
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 文書\SpecialChar menuseparator
7263 設定
7264 \end_layout
7265
7266 \end_inset
7267
7268 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 Requires
7274 \end_layout
7275
7276 \end_inset
7277
7278 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 Excludes
7284 \end_layout
7285
7286 \end_inset
7287
7288 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7289 イプ記号「|」で区切らなくてはなりません.
7290 \begin_inset Flex Code
7291 status collapsed
7292
7293 \begin_layout Plain Layout
7294 Requires
7295 \end_layout
7296
7297 \end_inset
7298
7299 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7300 \begin_inset Flex Code
7301 status collapsed
7302
7303 \begin_layout Plain Layout
7304 Requires
7305 \end_layout
7306
7307 \end_inset
7308
7309 に指定されたモジュールのうち,
7310 \emph on
7311 少なくとも一つ
7312 \emph default
7313 が使用されていればよいということです.同様に,
7314 \begin_inset Flex Code
7315 status collapsed
7316
7317 \begin_layout Plain Layout
7318 Excludes
7319 \end_layout
7320
7321 \end_inset
7322
7323 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7324 \begin_inset Flex Code
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 .module
7329 \end_layout
7330
7331 \end_inset
7332
7333 拡張子を除いたファイル名で認識されることに注意してください.つまり
7334 \begin_inset Flex Code
7335 status collapsed
7336
7337 \begin_layout Plain Layout
7338 somemodule
7339 \end_layout
7340
7341 \end_inset
7342
7343 とは,実のところ
7344 \begin_inset Flex Code
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348 somemodule.module
7349 \end_layout
7350
7351 \end_inset
7352
7353 のことです.
7354 \end_layout
7355
7356 \begin_layout Subsection
7357 書式番号
7358 \end_layout
7359
7360 \begin_layout Standard
7361 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7362 \end_layout
7363
7364 \begin_layout Description
7365 \begin_inset Flex Code
7366 status collapsed
7367
7368 \begin_layout Plain Layout
7369 Format
7370 \end_layout
7371
7372 \end_inset
7373
7374  [
7375 \begin_inset Flex Code
7376 status collapsed
7377
7378 \begin_layout Plain Layout
7379 整数型
7380 \end_layout
7381
7382 \end_inset
7383
7384 ] このレイアウトファイルの書式
7385 \end_layout
7386
7387 \begin_layout Standard
7388 このタグは\SpecialChar LyX
7389
7390 \begin_inset space ~
7391 \end_inset
7392
7393 1.4.0で導入されました.\SpecialChar LyX
7394
7395 \begin_inset space ~
7396 \end_inset
7397
7398 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7399 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7400 の各版は,旧版の\SpecialChar LyX
7401 で作成さ
7402 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7403 \end_layout
7404
7405 \begin_layout Subsection
7406 \begin_inset CommandInset label
7407 LatexCommand label
7408 name "subsec:汎用テキストクラスパラメータ"
7409
7410 \end_inset
7411
7412 汎用テキストクラスパラメータ
7413 \end_layout
7414
7415 \begin_layout Standard
7416 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7417 \begin_inset Flex Code
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 .layout
7422 \end_layout
7423
7424 \end_inset
7425
7426 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7427 \emph on
7428 ありません
7429 \emph default
7430 .モジュールには,すべてのレイアウトタグを使用することができます).
7431 \end_layout
7432
7433 \begin_layout Description
7434 \begin_inset Flex Code
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438 AddToHTMLPreamble
7439 \end_layout
7440
7441 \end_inset
7442
7443  この文書クラスがXHTMLに出力されるときに,
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 <head>
7449 \end_layout
7450
7451 \end_inset
7452
7453 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 <head>
7459 \end_layout
7460
7461 \end_inset
7462
7463 に出力するものであれば,何でも使用することができます.「
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 EndPreamble
7469 \end_layout
7470
7471 \end_inset
7472
7473 」で閉じる必要があります.
7474 \end_layout
7475
7476 \begin_layout Description
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 AddToPreamble
7482 \end_layout
7483
7484 \end_inset
7485
7486  文書プリアンブルに書き加えられる情報です.「
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 EndPreamble
7492 \end_layout
7493
7494 \end_inset
7495
7496 」で閉じる必要があります.
7497 \end_layout
7498
7499 \begin_layout Description
7500 \begin_inset Flex Code
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504 CiteFormat
7505 \end_layout
7506
7507 \end_inset
7508
7509  書誌情報の表示に使う書式を定義します.詳細については,
7510 \begin_inset CommandInset ref
7511 LatexCommand ref
7512 reference "subsec:引用書式指定"
7513
7514 \end_inset
7515
7516 をご覧ください.「
7517 \begin_inset Flex Code
7518 status collapsed
7519
7520 \begin_layout Plain Layout
7521 End
7522 \end_layout
7523
7524 \end_inset
7525
7526 」で閉じる必要があります.
7527 \end_layout
7528
7529 \begin_layout Description
7530 \begin_inset Flex Code
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 ClassOptions
7535 \end_layout
7536
7537 \end_inset
7538
7539  文書クラスがサポートする様々な大域オプションを記します.説明は,
7540 \begin_inset CommandInset ref
7541 LatexCommand ref
7542 reference "subsec:ClassOptions"
7543
7544 \end_inset
7545
7546 を参照してください.「
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551 End
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 Columns
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 \emph on
7576 1
7577 \end_layout
7578
7579 \end_inset
7580
7581 ,
7582 \begin_inset space \thinspace{}
7583 \end_inset
7584
7585
7586 \begin_inset Flex Code
7587 status collapsed
7588
7589 \begin_layout Plain Layout
7590 2
7591 \end_layout
7592
7593 \end_inset
7594
7595 ] 文書クラスが既定で1段組か2段組かを指定します.
7596 \begin_inset Flex MenuItem
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 文書\SpecialChar menuseparator
7601 設定
7602 \end_layout
7603
7604 \end_inset
7605
7606 ダイアログで変更することができます.
7607 \end_layout
7608
7609 \begin_layout Description
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 Counter
7615 \end_layout
7616
7617 \end_inset
7618
7619  [
7620 \begin_inset Flex Code
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 文字列
7625 \end_layout
7626
7627 \end_inset
7628
7629 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7630 \begin_inset Flex Code
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 End
7635 \end_layout
7636
7637 \end_inset
7638
7639 」で閉じる必要があります.
7640 \begin_inset Newline newline
7641 \end_inset
7642
7643 カウンタについての詳細は,
7644 \begin_inset CommandInset ref
7645 LatexCommand ref
7646 reference "subsec:カウンタ"
7647
7648 \end_inset
7649
7650 を参照してください.
7651 \end_layout
7652
7653 \begin_layout Description
7654 \begin_inset Flex Code
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 DefaultFont
7659 \end_layout
7660
7661 \end_inset
7662
7663  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7664 \begin_inset CommandInset ref
7665 LatexCommand ref
7666 reference "subsec:フォント指定"
7667
7668 \end_inset
7669
7670 を参照してください.「
7671 \begin_inset Flex Code
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 EndFont
7676 \end_layout
7677
7678 \end_inset
7679
7680 」で閉じる必要があります.
7681 \end_layout
7682
7683 \begin_layout Description
7684 \begin_inset Flex Code
7685 status collapsed
7686
7687 \begin_layout Plain Layout
7688 DefaultModule
7689 \end_layout
7690
7691 \end_inset
7692
7693  [
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 <モジュール>
7699 \end_layout
7700
7701 \end_inset
7702
7703 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7704 \begin_inset Flex Code
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708 .module
7709 \end_layout
7710
7711 \end_inset
7712
7713 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7714 既存の文書にこの文書クラスが選択したときのみ該当します).
7715 \end_layout
7716
7717 \begin_layout Description
7718 \begin_inset Flex Code
7719 status collapsed
7720
7721 \begin_layout Plain Layout
7722 DefaultStyle
7723 \end_layout
7724
7725 \end_inset
7726
7727  [
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732 <様式>
7733 \end_layout
7734
7735 \end_inset
7736
7737 ]
7738 \lang english
7739  
7740 \lang japanese
7741 これは新規段落に割り当てられる様式であり,通常は
7742 \begin_inset Flex MenuItem
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 標準
7747 \end_layout
7748
7749 \end_inset
7750
7751 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7752 \end_layout
7753
7754 \begin_layout Description
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 ExcludesModule
7760 \end_layout
7761
7762 \end_inset
7763
7764  [
7765 \begin_inset Flex Code
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 <モジュール>
7770 \end_layout
7771
7772 \end_inset
7773
7774 ] このタグは,指定されたモジュール—
7775 \begin_inset Flex Code
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779 .module
7780 \end_layout
7781
7782 \end_inset
7783
7784 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7785 に振る
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 theorems-sec
7791 \end_layout
7792
7793 \end_inset
7794
7795 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7796 \emph on
7797 使用してはいけません
7798 \emph default
7799 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7800 \begin_inset CommandInset ref
7801 LatexCommand ref
7802 reference "subsec:レイアウトモジュール"
7803
7804 \end_inset
7805
7806 参照).
7807 \end_layout
7808
7809 \begin_layout Description
7810 \begin_inset Flex Code
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814 Float
7815 \end_layout
7816
7817 \end_inset
7818
7819  フロートを新規に定義します.詳細は,
7820 \begin_inset CommandInset ref
7821 LatexCommand ref
7822 reference "subsec:フロート"
7823
7824 \end_inset
7825
7826 を参照してください.「
7827 \begin_inset Flex Code
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 End
7832 \end_layout
7833
7834 \end_inset
7835
7836 」で閉じる必要があります.
7837 \end_layout
7838
7839 \begin_layout Description
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 HTMLPreamble
7845 \end_layout
7846
7847 \end_inset
7848
7849  この文書クラスがXHTMLに出力されるときに,
7850 \begin_inset Flex Code
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 <head>
7855 \end_layout
7856
7857 \end_inset
7858
7859 ブロックに出力される情報です.これより前に出現した
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 HTMLPreamble
7865 \end_layout
7866
7867 \end_inset
7868
7869
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 AddToHTMLPreamble
7875 \end_layout
7876
7877 \end_inset
7878
7879 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 AddToHTMLPreamble
7885 \end_layout
7886
7887 \end_inset
7888
7889 を使用してください).これは「
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 EndPreamble
7895 \end_layout
7896
7897 \end_inset
7898
7899 」で閉じる必要があります.
7900 \end_layout
7901
7902 \begin_layout Description
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 HTMLTOCSection
7908 \end_layout
7909
7910 \end_inset
7911
7912  [
7913 \begin_inset Flex Code
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 <様式>
7918 \end_layout
7919
7920 \end_inset
7921
7922 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7923 .これを指定しない場合には,\SpecialChar LyX
7924 はどのレイアウトを使用するべきか,解析しようと試みます.
7925 \end_layout
7926
7927 \begin_layout Description
7928 \begin_inset Flex Code
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932 IfCounter 
7933 \end_layout
7934
7935 \end_inset
7936
7937  [
7938 \begin_inset Flex Code
7939 status collapsed
7940
7941 \begin_layout Plain Layout
7942 <カウンタ>
7943 \end_layout
7944
7945 \end_inset
7946
7947 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7948 \begin_inset Flex Code
7949 status collapsed
7950
7951 \begin_layout Plain Layout
7952 End
7953 \end_layout
7954
7955 \end_inset
7956
7957 」で閉じる必要があります.
7958 \begin_inset Newline newline
7959 \end_inset
7960
7961 カウンタについての詳細は,
7962 \begin_inset CommandInset ref
7963 LatexCommand ref
7964 reference "subsec:カウンタ"
7965
7966 \end_inset
7967
7968 をご覧ください.
7969 \end_layout
7970
7971 \begin_layout Description
7972 \begin_inset Flex Code
7973 status collapsed
7974
7975 \begin_layout Plain Layout
7976 IfStyle
7977 \end_layout
7978
7979 \end_inset
7980
7981  [
7982 \begin_inset Flex Code
7983 status collapsed
7984
7985 \begin_layout Plain Layout
7986 <様式>
7987 \end_layout
7988
7989 \end_inset
7990
7991 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
7992 \begin_inset Flex Code
7993 status collapsed
7994
7995 \begin_layout Plain Layout
7996 End
7997 \end_layout
7998
7999 \end_inset
8000
8001 」で閉じる必要があります.
8002 \end_layout
8003
8004 \begin_layout Description
8005 \begin_inset Flex Code
8006 status collapsed
8007
8008 \begin_layout Plain Layout
8009 Input
8010 \end_layout
8011
8012 \end_inset
8013
8014  [
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 <ファイル名>
8020 \end_layout
8021
8022 \end_inset
8023
8024 ]
8025 \lang english
8026  
8027 \lang japanese
8028 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8029 のほとんどを収録している
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 stdclass.inc
8035 \end_layout
8036
8037 \end_inset
8038
8039 のような標準レイアウトファイルです.
8040 \end_layout
8041
8042 \begin_layout Description
8043 \begin_inset Flex Code
8044 status collapsed
8045
8046 \begin_layout Plain Layout
8047 InsetLayout
8048 \end_layout
8049
8050 \end_inset
8051
8052  [
8053 \begin_inset Flex Code
8054 status collapsed
8055
8056 \begin_layout Plain Layout
8057 <型>
8058 \end_layout
8059
8060 \end_inset
8061
8062 ]
8063 \lang english
8064  
8065 \lang japanese
8066 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 End
8072 \end_layout
8073
8074 \end_inset
8075
8076 」で閉じる必要があります.
8077 \begin_inset Newline newline
8078 \end_inset
8079
8080 詳しい情報は,
8081 \begin_inset CommandInset ref
8082 LatexCommand ref
8083 reference "subsec:任意設定差込枠"
8084
8085 \end_inset
8086
8087 をご覧ください.
8088 \end_layout
8089
8090 \begin_layout Description
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 LeftMargin
8096 \end_layout
8097
8098 \end_inset
8099
8100  [
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 文字列
8106 \end_layout
8107
8108 \end_inset
8109
8110 ] 画面上の左余白の幅を指示する文字列.例:「
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 MMMMM
8116 \end_layout
8117
8118 \end_inset
8119
8120 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8121 \end_layout
8122
8123 \begin_layout Description
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 NoCounter
8129 \end_layout
8130
8131 \end_inset
8132
8133  [
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 <カウンタ>
8139 \end_layout
8140
8141 \end_inset
8142
8143 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8144 \end_layout
8145
8146 \begin_layout Description
8147 \begin_inset Flex Code
8148 status collapsed
8149
8150 \begin_layout Plain Layout
8151 NoFloat
8152 \end_layout
8153
8154 \end_inset
8155
8156  [
8157 \begin_inset Flex Code
8158 status collapsed
8159
8160 \begin_layout Plain Layout
8161 <フロート>
8162 \end_layout
8163
8164 \end_inset
8165
8166 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8167 \end_layout
8168
8169 \begin_layout Description
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 NoStyle
8175 \end_layout
8176
8177 \end_inset
8178
8179  [
8180 \begin_inset Flex Code
8181 status collapsed
8182
8183 \begin_layout Plain Layout
8184 <様式>
8185 \end_layout
8186
8187 \end_inset
8188
8189 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8190 \end_layout
8191
8192 \begin_layout Description
8193 \begin_inset Flex Code
8194 status collapsed
8195
8196 \begin_layout Plain Layout
8197 OutputFormat
8198 \end_layout
8199
8200 \end_inset
8201
8202  [
8203 \begin_inset Flex Code
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207 <形式>
8208 \end_layout
8209
8210 \end_inset
8211
8212 ] このクラスによって生成されるファイル形式を示す文字列(
8213 \family sans
8214 設定
8215 \family default
8216 ダイアログで定義される形のもの).おもに,
8217 \begin_inset Flex Code
8218 status collapsed
8219
8220 \begin_layout Plain Layout
8221 OutputType
8222 \end_layout
8223
8224 \end_inset
8225
8226
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 literate
8232 \end_layout
8233
8234 \end_inset
8235
8236 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8237 \begin_inset Flex Code
8238 status collapsed
8239
8240 \begin_layout Plain Layout
8241 OutputType
8242 \end_layout
8243
8244 \end_inset
8245
8246 パラメーターに遭遇したときには,この文字列は,「
8247 \begin_inset Flex Code
8248 status collapsed
8249
8250 \begin_layout Plain Layout
8251 docbook
8252 \end_layout
8253
8254 \end_inset
8255
8256 」・「
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 lat
8262 \emph on
8263 ex
8264 \end_layout
8265
8266 \end_inset
8267
8268 」のいずれかにリセットされます.
8269 \end_layout
8270
8271 \begin_layout Description
8272 \begin_inset Flex Code
8273 status collapsed
8274
8275 \begin_layout Plain Layout
8276 OutputType
8277 \end_layout
8278
8279 \end_inset
8280
8281  [
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286
8287 \emph on
8288 lat
8289 \emph default
8290 ex
8291 \end_layout
8292
8293 \end_inset
8294
8295
8296 \begin_inset Flex Code
8297 status collapsed
8298
8299 \begin_layout Plain Layout
8300 docbook
8301 \end_layout
8302
8303 \end_inset
8304
8305
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 literate
8311 \end_layout
8312
8313 \end_inset
8314
8315 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8316 \end_layout
8317
8318 \begin_layout Description
8319 \begin_inset Flex Code
8320 status collapsed
8321
8322 \begin_layout Plain Layout
8323 PackageOptions
8324 \end_layout
8325
8326 \end_inset
8327
8328  [
8329 \begin_inset Flex Code
8330 status collapsed
8331
8332 \begin_layout Plain Layout
8333 文字列
8334 \end_layout
8335
8336 \end_inset
8337
8338  
8339 \begin_inset Flex Code
8340 status collapsed
8341
8342 \begin_layout Plain Layout
8343 文字列
8344 \end_layout
8345
8346 \end_inset
8347
8348 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 PackageOptions natbib square
8354 \end_layout
8355
8356 \end_inset
8357
8358 」とすると,
8359 \begin_inset Flex Code
8360 status collapsed
8361
8362 \begin_layout Plain Layout
8363 natbib
8364 \end_layout
8365
8366 \end_inset
8367
8368
8369 \begin_inset Flex Code
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373 square
8374 \end_layout
8375
8376 \end_inset
8377
8378 オプションとともに読み込みます(\SpecialChar TeX
8379 perts向けに述べると,これは,
8380 \begin_inset Flex Code
8381 status collapsed
8382
8383 \begin_layout Plain Layout
8384 natbib
8385 \end_layout
8386
8387 \end_inset
8388
8389 を読み込む前に,\SpecialChar LyX
8390
8391 \begin_inset Flex Code
8392 status collapsed
8393
8394 \begin_layout Plain Layout
8395
8396 \backslash
8397 PassOptionsToPackage{natbib}{square}
8398 \end_layout
8399
8400 \end_inset
8401
8402 を出力させます).
8403 \end_layout
8404
8405 \begin_layout Description
8406 \begin_inset Flex Code
8407 status collapsed
8408
8409 \begin_layout Plain Layout
8410 PageStyle
8411 \end_layout
8412
8413 \end_inset
8414
8415  [
8416 \emph on
8417
8418 \begin_inset Flex Code
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 plain
8423 \end_layout
8424
8425 \end_inset
8426
8427
8428 \emph default
8429
8430 \begin_inset Flex Code
8431 status collapsed
8432
8433 \begin_layout Plain Layout
8434 empty
8435 \end_layout
8436
8437 \end_inset
8438
8439
8440 \begin_inset Flex Code
8441 status collapsed
8442
8443 \begin_layout Plain Layout
8444 headings
8445 \end_layout
8446
8447 \end_inset
8448
8449 ] 既定ページ様式.
8450 \begin_inset Flex MenuItem
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454 文書\SpecialChar menuseparator
8455 設定
8456 \end_layout
8457
8458 \end_inset
8459
8460 ダイアログで変更することができます.
8461 \end_layout
8462
8463 \begin_layout Description
8464 \begin_inset Flex Code
8465 status collapsed
8466
8467 \begin_layout Plain Layout
8468 Preamble
8469 \end_layout
8470
8471 \end_inset
8472
8473  \SpecialChar LaTeX
8474 文書のプリアンブルを設定します.前に行った
8475 \begin_inset Flex Code
8476 status collapsed
8477
8478 \begin_layout Plain Layout
8479 Preamble
8480 \end_layout
8481
8482 \end_inset
8483
8484 宣言や
8485 \begin_inset Flex Code
8486 status collapsed
8487
8488 \begin_layout Plain Layout
8489 AddToPreamble
8490 \end_layout
8491
8492 \end_inset
8493
8494 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8495 \begin_inset Flex Code
8496 status collapsed
8497
8498 \begin_layout Plain Layout
8499 AddToPreamble
8500 \end_layout
8501
8502 \end_inset
8503
8504 を使用してください.)「
8505 \begin_inset Flex Code
8506 status collapsed
8507
8508 \begin_layout Plain Layout
8509 EndPreamble
8510 \end_layout
8511
8512 \end_inset
8513
8514 」で閉じる必要があります.
8515 \end_layout
8516
8517 \begin_layout Description
8518 \begin_inset Flex Code
8519 status collapsed
8520
8521 \begin_layout Plain Layout
8522 Provides
8523 \end_layout
8524
8525 \end_inset
8526
8527  [
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 文字列
8533 \end_layout
8534
8535 \end_inset
8536
8537 ] [
8538 \begin_inset Flex Code
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542
8543 \emph on
8544 0
8545 \end_layout
8546
8547 \end_inset
8548
8549
8550 \begin_inset Flex Code
8551 status collapsed
8552
8553 \begin_layout Plain Layout
8554 1
8555 \end_layout
8556
8557 \end_inset
8558
8559 ] このクラスが
8560 \begin_inset Flex Code
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 文字列
8565 \end_layout
8566
8567 \end_inset
8568
8569 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 amsmath
8575 \end_layout
8576
8577 \end_inset
8578
8579
8580 \begin_inset Flex Code
8581 status collapsed
8582
8583 \begin_layout Plain Layout
8584 makeidx
8585 \end_layout
8586
8587 \end_inset
8588
8589 ・\SpecialChar ldots
8590 )やマクロ名(
8591 \begin_inset Flex Code
8592 status collapsed
8593
8594 \begin_layout Plain Layout
8595 url
8596 \end_layout
8597
8598 \end_inset
8599
8600
8601 \begin_inset Flex Code
8602 status collapsed
8603
8604 \begin_layout Plain Layout
8605 boldsymbol
8606 \end_layout
8607
8608 \end_inset
8609
8610 ・\SpecialChar ldots
8611 )です.機能一覧については,
8612 \begin_inset CommandInset ref
8613 LatexCommand ref
8614 reference "chap:関数一覧"
8615
8616 \end_inset
8617
8618 を参照.
8619 \end_layout
8620
8621 \begin_layout Description
8622 \begin_inset Flex Code
8623 status collapsed
8624
8625 \begin_layout Plain Layout
8626 ProvidesModule
8627 \end_layout
8628
8629 \end_inset
8630
8631  [
8632 \begin_inset Flex Code
8633 status collapsed
8634
8635 \begin_layout Plain Layout
8636 文字列
8637 \end_layout
8638
8639 \end_inset
8640
8641 ] このレイアウトが
8642 \begin_inset Flex Code
8643 status collapsed
8644
8645 \begin_layout Plain Layout
8646 文字列
8647 \end_layout
8648
8649 \end_inset
8650
8651 で表されているモジュールの機能を提供することを示し,
8652 \begin_inset Flex Code
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 .module
8657 \end_layout
8658
8659 \end_inset
8660
8661 拡張子を除いたファイル名で指定します.
8662 \begin_inset Flex Code
8663 status collapsed
8664
8665 \begin_layout Plain Layout
8666 DefaultModule
8667 \end_layout
8668
8669 \end_inset
8670
8671 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8672 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8673 \end_layout
8674
8675 \begin_layout Description
8676 \begin_inset Flex Code
8677 status collapsed
8678
8679 \begin_layout Plain Layout
8680 Requires
8681 \end_layout
8682
8683 \end_inset
8684
8685  [
8686 \begin_inset Flex Code
8687 status collapsed
8688
8689 \begin_layout Plain Layout
8690 文字列
8691 \end_layout
8692
8693 \end_inset
8694
8695 ] このクラスが
8696 \begin_inset Flex Code
8697 status collapsed
8698
8699 \begin_layout Plain Layout
8700 文字列
8701 \end_layout
8702
8703 \end_inset
8704
8705 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8706 さい(機能一覧については
8707 \begin_inset CommandInset ref
8708 LatexCommand ref
8709 reference "chap:関数一覧"
8710
8711 \end_inset
8712
8713 を参照).特定のオプションをとるパッケージを要求する場合,
8714 \begin_inset Flex Code
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 PackageOptions
8719 \end_layout
8720
8721 \end_inset
8722
8723 を追加して使うことができます.
8724 \end_layout
8725
8726 \begin_layout Description
8727 \begin_inset Flex Code
8728 status collapsed
8729
8730 \begin_layout Plain Layout
8731 RightMargin
8732 \end_layout
8733
8734 \end_inset
8735
8736  [
8737 \begin_inset Flex Code
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 文字列
8742 \end_layout
8743
8744 \end_inset
8745
8746 ] 画面上の右余白の幅を指示する文字列.例:「
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 MMMMM
8752 \end_layout
8753
8754 \end_inset
8755
8756 」.
8757 \end_layout
8758
8759 \begin_layout Description
8760 \begin_inset Flex Code
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764 SecNumDepth
8765 \end_layout
8766
8767 \end_inset
8768
8769  [
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 int=3
8775 \end_layout
8776
8777 \end_inset
8778
8779 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8780 における
8781 \begin_inset Flex Code
8782 status collapsed
8783
8784 \begin_layout Plain Layout
8785 secnumdepth
8786 \end_layout
8787
8788 \end_inset
8789
8790 カウンタに対応します.
8791 \end_layout
8792
8793 \begin_layout Description
8794 \begin_inset Flex Code
8795 status collapsed
8796
8797 \begin_layout Plain Layout
8798 Sides
8799 \end_layout
8800
8801 \end_inset
8802
8803  [
8804 \emph on
8805
8806 \begin_inset Flex Code
8807 status collapsed
8808
8809 \begin_layout Plain Layout
8810 1
8811 \end_layout
8812
8813 \end_inset
8814
8815
8816 \emph default
8817 ,
8818 \begin_inset space \thinspace{}
8819 \end_inset
8820
8821
8822 \begin_inset Flex Code
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826 2
8827 \end_layout
8828
8829 \end_inset
8830
8831 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8832 \begin_inset Flex MenuItem
8833 status collapsed
8834
8835 \begin_layout Plain Layout
8836 文書\SpecialChar menuseparator
8837 設定
8838 \end_layout
8839
8840 \end_inset
8841
8842 ダイアログで変更することができます.
8843 \end_layout
8844
8845 \begin_layout Description
8846 \begin_inset Flex Code
8847 status collapsed
8848
8849 \begin_layout Plain Layout
8850 Style
8851 \end_layout
8852
8853 \end_inset
8854
8855  [
8856 \begin_inset Flex Code
8857 status collapsed
8858
8859 \begin_layout Plain Layout
8860 <名称>
8861 \end_layout
8862
8863 \end_inset
8864
8865 ]
8866 \lang english
8867  
8868 \lang japanese
8869 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8870 \begin_inset Flex Code
8871 status collapsed
8872
8873 \begin_layout Plain Layout
8874 End
8875 \end_layout
8876
8877 \end_inset
8878
8879 」で閉じる必要があります.
8880 \begin_inset Newline newline
8881 \end_inset
8882
8883 段落様式に関する詳細は,
8884 \begin_inset CommandInset ref
8885 LatexCommand ref
8886 reference "subsec:段落様式-XHTML"
8887
8888 \end_inset
8889
8890 をご覧ください.
8891 \end_layout
8892
8893 \begin_layout Description
8894 \begin_inset Flex Code
8895 status collapsed
8896
8897 \begin_layout Plain Layout
8898 TitleLatexName
8899 \end_layout
8900
8901 \end_inset
8902
8903  [
8904 \begin_inset Flex Code
8905 status collapsed
8906
8907 \begin_layout Plain Layout
8908 文字列="maketitle"
8909 \end_layout
8910
8911 \end_inset
8912
8913
8914 \begin_inset Flex Code
8915 status collapsed
8916
8917 \begin_layout Plain Layout
8918 TitleLatexType
8919 \end_layout
8920
8921 \end_inset
8922
8923 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8924  
8925 \begin_inset Flex Code
8926 status collapsed
8927
8928 \begin_layout Plain Layout
8929 TitleLatexType
8930 \end_layout
8931
8932 \end_inset
8933
8934 .
8935 \end_layout
8936
8937 \begin_layout Description
8938 \begin_inset Flex Code
8939 status collapsed
8940
8941 \begin_layout Plain Layout
8942 TitleLatexType
8943 \end_layout
8944
8945 \end_inset
8946
8947  [
8948 \begin_inset Flex Code
8949 status collapsed
8950
8951 \begin_layout Plain Layout
8952
8953 \emph on
8954 CommandAfter
8955 \end_layout
8956
8957 \end_inset
8958
8959
8960 \begin_inset Flex Code
8961 status collapsed
8962
8963 \begin_layout Plain Layout
8964 Environment
8965 \end_layout
8966
8967 \end_inset
8968
8969 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
8970 \begin_inset Flex Code
8971 status collapsed
8972
8973 \begin_layout Plain Layout
8974 CommandAfter
8975 \end_layout
8976
8977 \end_inset
8978
8979 は,「
8980 \begin_inset Flex Code
8981 status collapsed
8982
8983 \begin_layout Plain Layout
8984 InTitle
8985 \begin_inset space ~
8986 \end_inset
8987
8988 1
8989 \end_layout
8990
8991 \end_inset
8992
8993 」が指定されている最後のレイアウトの後に,
8994 \begin_inset Flex Code
8995 status collapsed
8996
8997 \begin_layout Plain Layout
8998 TitleLatexName
8999 \end_layout
9000
9001 \end_inset
9002
9003 で指定したマクロ名を挿入することを意味します.
9004 \begin_inset Flex Code
9005 status collapsed
9006
9007 \begin_layout Plain Layout
9008 Environment
9009 \end_layout
9010
9011 \end_inset
9012
9013 は,「
9014 \begin_inset Flex Code
9015 status collapsed
9016
9017 \begin_layout Plain Layout
9018 InTitle
9019 \begin_inset space ~
9020 \end_inset
9021
9022 1
9023 \end_layout
9024
9025 \end_inset
9026
9027 」を持つ段落群を
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 TitleLatexName
9033 \end_layout
9034
9035 \end_inset
9036
9037 で指定した環境でくるむ場合に対応します.
9038 \end_layout
9039
9040 \begin_layout Description
9041 \begin_inset Flex Code
9042 status collapsed
9043
9044 \begin_layout Plain Layout
9045 TocDepth
9046 \end_layout
9047
9048 \end_inset
9049
9050  [
9051 \begin_inset Flex Code
9052 status collapsed
9053
9054 \begin_layout Plain Layout
9055 int=3
9056 \end_layout
9057
9058 \end_inset
9059
9060 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9061
9062 \begin_inset Flex Code
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 tocdepth
9067 \end_layout
9068
9069 \end_inset
9070
9071 カウンタに対応します.
9072 \end_layout
9073
9074 \begin_layout Subsection
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 ClassOptions
9080 \end_layout
9081
9082 \end_inset
9083
9084
9085 \begin_inset CommandInset label
9086 LatexCommand label
9087 name "subsec:ClassOptions"
9088
9089 \end_inset
9090
9091
9092 \end_layout
9093
9094 \begin_layout Standard
9095 \begin_inset Flex Code
9096 status collapsed
9097
9098 \begin_layout Plain Layout
9099 ClassOptions
9100 \end_layout
9101
9102 \end_inset
9103
9104 部は,以下の項目を取り得ます.
9105 \end_layout
9106
9107 \begin_layout Description
9108 \begin_inset Flex Code
9109 status collapsed
9110
9111 \begin_layout Plain Layout
9112 FontSize
9113 \end_layout
9114
9115 \end_inset
9116
9117  [
9118 \begin_inset Flex Code
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122 文字列="10|11|12"
9123 \end_layout
9124
9125 \end_inset
9126
9127 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9128 \begin_inset Flex Code
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 |
9133 \end_layout
9134
9135 \end_inset
9136
9137 」で区切ります.
9138 \end_layout
9139
9140 \begin_layout Description
9141 \begin_inset Flex Code
9142 status collapsed
9143
9144 \begin_layout Plain Layout
9145 Header
9146 \end_layout
9147
9148 \end_inset
9149
9150  XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC 
9151 \begin_inset Quotes eld
9152 \end_inset
9153
9154 -//OASIS//DTD DocBook V4.2//EN
9155 \begin_inset Quotes erd
9156 \end_inset
9157
9158
9159 \end_layout
9160
9161 \begin_layout Description
9162 \begin_inset Flex Code
9163 status collapsed
9164
9165 \begin_layout Plain Layout
9166 PageStyle
9167 \end_layout
9168
9169 \end_inset
9170
9171  [
9172 \begin_inset Flex Code
9173 status collapsed
9174
9175 \begin_layout Plain Layout
9176 文字列="empty|plain|headings|fancy"
9177 \end_layout
9178
9179 \end_inset
9180
9181 ] 使用できるページ様式の一覧です.「
9182 \begin_inset Flex Code
9183 status collapsed
9184
9185 \begin_layout Plain Layout
9186 |
9187 \end_layout
9188
9189 \end_inset
9190
9191 」で区切ります.
9192 \end_layout
9193
9194 \begin_layout Description
9195 \begin_inset Flex Code
9196 status collapsed
9197
9198 \begin_layout Plain Layout
9199 Other
9200 \end_layout
9201
9202 \end_inset
9203
9204  [
9205 \begin_inset Flex Code
9206 status collapsed
9207
9208 \begin_layout Plain Layout
9209 文字列=""
9210 \end_layout
9211
9212 \end_inset
9213
9214
9215 \begin_inset Flex Code
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219
9220 \backslash
9221 documentclass
9222 \end_layout
9223
9224 \end_inset
9225
9226 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9227 \end_layout
9228
9229 \begin_layout Standard
9230 \begin_inset Flex Code
9231 status collapsed
9232
9233 \begin_layout Plain Layout
9234 ClassOptions
9235 \end_layout
9236
9237 \end_inset
9238
9239 部は「
9240 \begin_inset Flex Code
9241 status collapsed
9242
9243 \begin_layout Plain Layout
9244 End
9245 \end_layout
9246
9247 \end_inset
9248
9249 」で閉じる必要があります.
9250 \end_layout
9251
9252 \begin_layout Subsection
9253 段落様式
9254 \begin_inset CommandInset label
9255 LatexCommand label
9256 name "subsec:段落様式"
9257
9258 \end_inset
9259
9260
9261 \end_layout
9262
9263 \begin_layout Standard
9264 段落様式の記述は,以下のようになります
9265 \begin_inset Foot
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9270 \end_layout
9271
9272 \end_inset
9273
9274
9275 \end_layout
9276
9277 \begin_layout LyX-Code
9278 Style 
9279 \family roman
9280 \emph on
9281 名称
9282 \end_layout
9283
9284 \begin_layout LyX-Code
9285  ...
9286 \end_layout
9287
9288 \begin_layout LyX-Code
9289 End
9290 \end_layout
9291
9292 \begin_layout Standard
9293 ここでは,以下のコマンドを使用することができます.
9294 \end_layout
9295
9296 \begin_layout Description
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301 Align
9302 \end_layout
9303
9304 \end_inset
9305
9306  [
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311
9312 \emph on
9313 block
9314 \emph default
9315 , left, right, center
9316 \end_layout
9317
9318 \end_inset
9319
9320 ] 段落の揃え.
9321 \end_layout
9322
9323 \begin_layout Description
9324 \begin_inset Flex Code
9325 status collapsed
9326
9327 \begin_layout Plain Layout
9328 AlignPossible
9329 \end_layout
9330
9331 \end_inset
9332
9333  [
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338
9339 \emph on
9340 block
9341 \emph default
9342 , left, right, center
9343 \end_layout
9344
9345 \end_inset
9346
9347 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9348 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9349 はできません).
9350 \end_layout
9351
9352 \begin_layout Description
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 Argument
9358 \end_layout
9359
9360 \end_inset
9361
9362  [
9363 \begin_inset Flex Code
9364 status collapsed
9365
9366 \begin_layout Plain Layout
9367 整数
9368 \end_layout
9369
9370 \end_inset
9371
9372 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9373 でのみ意味を持ちます.コマンドまたは環
9374 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 EndArgument
9380 \end_layout
9381
9382 \end_inset
9383
9384 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9385 \begin_inset Separator latexpar
9386 \end_inset
9387
9388
9389 \end_layout
9390
9391 \begin_deeper
9392 \begin_layout Quote
9393
9394 \family typewriter
9395 Argument 1
9396 \end_layout
9397
9398 \begin_layout Quote
9399
9400 \family typewriter
9401 ...
9402 \end_layout
9403
9404 \begin_layout Quote
9405
9406 \family typewriter
9407 EndArgument
9408 \end_layout
9409
9410 \begin_layout Quote
9411
9412 \family typewriter
9413 Argument 2
9414 \end_layout
9415
9416 \begin_layout Quote
9417
9418 \family typewriter
9419 ...
9420 \end_layout
9421
9422 \begin_layout Quote
9423
9424 \family typewriter
9425 EndArgument
9426 \end_layout
9427
9428 \begin_layout Standard
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433 Argument
9434 \end_layout
9435
9436 \end_inset
9437
9438 定義内部では,以下の指定をすることができます.
9439 \end_layout
9440
9441 \begin_layout Itemize
9442 \begin_inset Flex Code
9443 status collapsed
9444
9445 \begin_layout Plain Layout
9446 LabelString
9447 \end_layout
9448
9449 \end_inset
9450
9451  
9452 \begin_inset Flex Code
9453 status collapsed
9454
9455 \begin_layout Plain Layout
9456 [文字列]
9457 \end_layout
9458
9459 \end_inset
9460
9461  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9462 \begin_inset Flex Code
9463 status collapsed
9464
9465 \begin_layout Plain Layout
9466 MenuString
9467 \end_layout
9468
9469 \end_inset
9470
9471 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9472 \begin_inset space \space{}
9473 \end_inset
9474
9475
9476 \begin_inset Quotes eld
9477 \end_inset
9478
9479
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484 Short Title|S
9485 \end_layout
9486
9487 \end_inset
9488
9489
9490 \begin_inset Quotes erd
9491 \end_inset
9492
9493 ).
9494 \end_layout
9495
9496 \begin_layout Itemize
9497 \begin_inset Flex Code
9498 status collapsed
9499
9500 \begin_layout Plain Layout
9501 MenuString
9502 \end_layout
9503
9504 \end_inset
9505
9506  
9507 \begin_inset Flex Code
9508 status collapsed
9509
9510 \begin_layout Plain Layout
9511 [文字列]
9512 \end_layout
9513
9514 \end_inset
9515
9516  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9517 \begin_inset space \space{}
9518 \end_inset
9519
9520
9521 \begin_inset Quotes eld
9522 \end_inset
9523
9524
9525 \begin_inset Flex Code
9526 status collapsed
9527
9528 \begin_layout Plain Layout
9529 Short Title|S
9530 \end_layout
9531
9532 \end_inset
9533
9534
9535 \begin_inset Quotes erd
9536 \end_inset
9537
9538 ).この指定は必須ではありません.指定しない場合には,代わりに
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 LabelString
9544 \end_layout
9545
9546 \end_inset
9547
9548 がメニューに用いられます.
9549 \end_layout
9550
9551 \begin_layout Itemize
9552 \begin_inset Flex Code
9553 status collapsed
9554
9555 \begin_layout Plain Layout
9556 Tooltip
9557 \end_layout
9558
9559 \end_inset
9560
9561  
9562 \begin_inset Flex Code
9563 status collapsed
9564
9565 \begin_layout Plain Layout
9566 [文字列]
9567 \end_layout
9568
9569 \end_inset
9570
9571  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9572 \end_layout
9573
9574 \begin_layout Itemize
9575 \begin_inset Flex Code
9576 status collapsed
9577
9578 \begin_layout Plain Layout
9579 Mandatory
9580 \end_layout
9581
9582 \end_inset
9583
9584  [
9585 \begin_inset Flex Code
9586 status collapsed
9587
9588 \begin_layout Plain Layout
9589
9590 \emph on
9591 0
9592 \end_layout
9593
9594 \end_inset
9595
9596 ,
9597 \begin_inset space \thinspace{}
9598 \end_inset
9599
9600
9601 \begin_inset Flex Code
9602 status collapsed
9603
9604 \begin_layout Plain Layout
9605 1
9606 \end_layout
9607
9608 \end_inset
9609
9610 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9611 .既定では,必須引数は
9612 \begin_inset Flex Code
9613 status collapsed
9614
9615 \begin_layout Plain Layout
9616 {...}
9617 \end_layout
9618
9619 \end_inset
9620
9621 で区切られ,非必須引数は
9622 \begin_inset Flex Code
9623 status collapsed
9624
9625 \begin_layout Plain Layout
9626 [...]
9627 \end_layout
9628
9629 \end_inset
9630
9631 で区切られます.
9632 \end_layout
9633
9634 \begin_layout Itemize
9635 \begin_inset Flex Code
9636 status collapsed
9637
9638 \begin_layout Plain Layout
9639 Requires
9640 \end_layout
9641
9642 \end_inset
9643
9644  
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 [整数=0]
9650 \end_layout
9651
9652 \end_inset
9653
9654  この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9655 コマンドでは,
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660
9661 \backslash
9662 command[][引数]{文字列}
9663 \end_layout
9664
9665 \end_inset
9666
9667 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9668 \begin_inset Flex Code
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672 Argument 2
9673 \end_layout
9674
9675 \end_inset
9676
9677 中に
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 Requires 1
9683 \end_layout
9684
9685 \end_inset
9686
9687 ステートメントを置くことで実現できます.
9688 \end_layout
9689
9690 \begin_layout Itemize
9691 \begin_inset Flex Code
9692 status collapsed
9693
9694 \begin_layout Plain Layout
9695 LeftDelim
9696 \end_layout
9697
9698 \end_inset
9699
9700  
9701 \begin_inset Flex Code
9702 status collapsed
9703
9704 \begin_layout Plain Layout
9705 [文字列]
9706 \end_layout
9707
9708 \end_inset
9709
9710  (
9711 \begin_inset Flex Code
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 {
9716 \end_layout
9717
9718 \end_inset
9719
9720
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 [
9726 \end_layout
9727
9728 \end_inset
9729
9730 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9731 \begin_inset Flex Code
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735 <br/>
9736 \end_layout
9737
9738 \end_inset
9739
9740 で指示できます.
9741 \end_layout
9742
9743 \begin_layout Itemize
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 RightDelim
9749 \end_layout
9750
9751 \end_inset
9752
9753  
9754 \begin_inset Flex Code
9755 status collapsed
9756
9757 \begin_layout Plain Layout
9758 [文字列]
9759 \end_layout
9760
9761 \end_inset
9762
9763  (
9764 \begin_inset Flex Code
9765 status collapsed
9766
9767 \begin_layout Plain Layout
9768 }
9769 \end_layout
9770
9771 \end_inset
9772
9773
9774 \begin_inset Flex Code
9775 status collapsed
9776
9777 \begin_layout Plain Layout
9778 ]
9779 \end_layout
9780
9781 \end_inset
9782
9783 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 <br/>
9789 \end_layout
9790
9791 \end_inset
9792
9793 で指示できます.
9794 \end_layout
9795
9796 \begin_layout Itemize
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 DefaultArg
9802 \end_layout
9803
9804 \end_inset
9805
9806  
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 [文字列]
9812 \end_layout
9813
9814 \end_inset
9815
9816  ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9817 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9818 \end_layout
9819
9820 \begin_layout Itemize
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 PresetArg
9826 \end_layout
9827
9828 \end_inset
9829
9830  
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 [文字列]
9836 \end_layout
9837
9838 \end_inset
9839
9840  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9841 \end_layout
9842
9843 \begin_layout Itemize
9844 \begin_inset Flex Code
9845 status collapsed
9846
9847 \begin_layout Plain Layout
9848 Font
9849 \end_layout
9850
9851 \end_inset
9852
9853  引数の内容に用いられるフォント.
9854 \begin_inset CommandInset ref
9855 LatexCommand ref
9856 reference "subsec:フォント指定"
9857
9858 \end_inset
9859
9860 参照.
9861 \end_layout
9862
9863 \begin_layout Itemize
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 LabelFont
9869 \end_layout
9870
9871 \end_inset
9872
9873  ラベルに用いられるフォント.
9874 \begin_inset CommandInset ref
9875 LatexCommand ref
9876 reference "subsec:フォント指定"
9877
9878 \end_inset
9879
9880 参照.
9881 \end_layout
9882
9883 \begin_layout Itemize
9884 \begin_inset Flex Code
9885 status collapsed
9886
9887 \begin_layout Plain Layout
9888 Decoration
9889 \end_layout
9890
9891 \end_inset
9892
9893  [
9894 \begin_inset Flex Code
9895 status collapsed
9896
9897 \begin_layout Plain Layout
9898
9899 \emph on
9900 Classic
9901 \emph default
9902 , Minimalistic, Conglomerate
9903 \end_layout
9904
9905 \end_inset
9906
9907 ] 差込枠の枠とボタンに用いられる装飾様式.
9908 \end_layout
9909
9910 \begin_layout Itemize
9911 \begin_inset Flex Code
9912 status collapsed
9913
9914 \begin_layout Plain Layout
9915 AutoInsert
9916 \end_layout
9917
9918 \end_inset
9919
9920  
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 [整数=0]
9926 \end_layout
9927
9928 \end_inset
9929
9930  これが
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 1
9936 \end_layout
9937
9938 \end_inset
9939
9940 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9941 \end_layout
9942
9943 \begin_layout Itemize
9944 \begin_inset Flex Code
9945 status collapsed
9946
9947 \begin_layout Plain Layout
9948 InsertCotext
9949 \end_layout
9950
9951 \end_inset
9952
9953  
9954 \begin_inset Flex Code
9955 status collapsed
9956
9957 \begin_layout Plain Layout
9958 [整数=0]
9959 \end_layout
9960
9961 \end_inset
9962
9963  これが
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968 1
9969 \end_layout
9970
9971 \end_inset
9972
9973 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
9974 \end_layout
9975
9976 \begin_layout Itemize
9977 \begin_inset Flex Code
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 PassThruChars
9982 \end_layout
9983
9984 \end_inset
9985
9986  [
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991 文字列
9992 \end_layout
9993
9994 \end_inset
9995
9996 ]
9997 \family typewriter
9998  
9999 \family default
10000 \SpecialChar LaTeX
10001 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10002 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10003 \end_layout
10004
10005 \begin_layout Standard
10006 既定では,
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 LatexType
10012 \end_layout
10013
10014 \end_inset
10015
10016
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021 Command
10022 \end_layout
10023
10024 \end_inset
10025
10026 のとき,各レイアウトで\SpecialChar LyX
10027 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 post:
10033 \end_layout
10034
10035 \end_inset
10036
10037 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042 post:1
10043 \end_layout
10044
10045 \end_inset
10046
10047 となります.後置引数は,
10048 \begin_inset Flex Code
10049 status collapsed
10050
10051 \begin_layout Plain Layout
10052 Command
10053 \end_layout
10054
10055 \end_inset
10056
10057 以外の
10058 \begin_inset Flex Code
10059 status collapsed
10060
10061 \begin_layout Plain Layout
10062 LatexType
10063 \end_layout
10064
10065 \end_inset
10066
10067 では無視されます.
10068 \end_layout
10069
10070 \begin_layout Standard
10071 (
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076
10077 \backslash
10078 item[foo]
10079 \end_layout
10080
10081 \end_inset
10082
10083 のような)箇条書き
10084 \begin_inset Flex Code
10085 status collapsed
10086
10087 \begin_layout Plain Layout
10088
10089 \backslash
10090 item
10091 \end_layout
10092
10093 \end_inset
10094
10095 の引数は,前置句
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 item:
10101 \end_layout
10102
10103 \end_inset
10104
10105 の後に番号を付けます(例:
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 Argument item:1
10111 \end_layout
10112
10113 \end_inset
10114
10115 ).
10116 \end_layout
10117
10118 \end_deeper
10119 \begin_layout Description
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 BabelPreamble
10125 \end_layout
10126
10127 \end_inset
10128
10129  これは,前に現れたこの様式の
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 BabelPreamble
10135 \end_layout
10136
10137 \end_inset
10138
10139 宣言をすべて,完全に上書きしますので注意してください.「
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 EndBabelPreamble
10145 \end_layout
10146
10147 \end_inset
10148
10149 」で閉じる必要があります.これの利用法についての詳細は,第
10150 \begin_inset CommandInset ref
10151 LatexCommand ref
10152 reference "subsec:段落様式の国際化"
10153
10154 \end_inset
10155
10156 節をご覧ください.
10157 \end_layout
10158
10159 \begin_layout Description
10160 \begin_inset Flex Code
10161 status collapsed
10162
10163 \begin_layout Plain Layout
10164 BottomSep
10165 \end_layout
10166
10167 \end_inset
10168
10169  [
10170 \begin_inset Flex Code
10171 status collapsed
10172
10173 \begin_layout Plain Layout
10174 浮動小数点型=0
10175 \end_layout
10176
10177 \end_inset
10178
10179 ]
10180 \begin_inset Foot
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 ここで「浮動小数点型」とは1.5のような実数を指します.
10185 \end_layout
10186
10187 \end_inset
10188
10189  このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10190 す.
10191 \end_layout
10192
10193 \begin_layout Description
10194 \begin_inset Flex Code
10195 status collapsed
10196
10197 \begin_layout Plain Layout
10198 Category
10199 \end_layout
10200
10201 \end_inset
10202
10203  [
10204 \begin_inset Flex Code
10205 status collapsed
10206
10207 \begin_layout Plain Layout
10208 文字列
10209 \end_layout
10210
10211 \end_inset
10212
10213 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10214 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10215 \end_layout
10216
10217 \begin_layout Description
10218 \begin_inset Flex Code
10219 status collapsed
10220
10221 \begin_layout Plain Layout
10222 CommandDepth
10223 \end_layout
10224
10225 \end_inset
10226
10227  XMLコマンドの深度.XML型の書式でのみ使用されます.
10228 \end_layout
10229
10230 \begin_layout Description
10231 \begin_inset Flex Code
10232 status collapsed
10233
10234 \begin_layout Plain Layout
10235 CopyStyle
10236 \end_layout
10237
10238 \end_inset
10239
10240  [
10241 \begin_inset Flex Code
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245 文字列
10246 \end_layout
10247
10248 \end_inset
10249
10250 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10251 \end_layout
10252
10253 \begin_layout Description
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 DependsOn
10259 \end_layout
10260
10261 \end_inset
10262
10263  [
10264 \begin_inset Flex Code
10265 status collapsed
10266
10267 \begin_layout Plain Layout
10268 <名称>
10269 \end_layout
10270
10271 \end_inset
10272
10273 ]
10274 \lang english
10275  
10276 \lang japanese
10277 この
10278 \emph on
10279 前に
10280 \emph default
10281 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10282 \begin_inset Foot
10283 status collapsed
10284
10285 \begin_layout Plain Layout
10286 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10287 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10288 あります.
10289 \end_layout
10290
10291 \end_inset
10292
10293
10294 \end_layout
10295
10296 \begin_layout Description
10297 \begin_inset Flex Code
10298 status collapsed
10299
10300 \begin_layout Plain Layout
10301 EndLabeltype
10302 \end_layout
10303
10304 \end_inset
10305
10306  [
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311
10312 \emph on
10313 No_Label
10314 \emph default
10315 , Box, Filled_Box, Static
10316 \end_layout
10317
10318 \end_inset
10319
10320 ] 段落の最後(あるいは
10321 \begin_inset Flex Code
10322 status collapsed
10323
10324 \begin_layout Plain Layout
10325 LatexType
10326 \end_layout
10327
10328 \end_inset
10329
10330 が,
10331 \begin_inset Flex Code
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335 Environment
10336 \end_layout
10337
10338 \end_inset
10339
10340
10341 \begin_inset Flex Code
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 Item_Environment
10346 \end_layout
10347
10348 \end_inset
10349
10350
10351 \begin_inset Flex Code
10352 status collapsed
10353
10354 \begin_layout Plain Layout
10355 List_Environment
10356 \end_layout
10357
10358 \end_inset
10359
10360 のいずれかの場合は,段落群の最後)に置くラベル.
10361 \begin_inset Flex Code
10362 status collapsed
10363
10364 \begin_layout Plain Layout
10365 No_Label
10366 \end_layout
10367
10368 \end_inset
10369
10370 の場合は「何もない」ことを指し,
10371 \begin_inset Flex Code
10372 status collapsed
10373
10374 \begin_layout Plain Layout
10375 Box
10376 \end_layout
10377
10378 \end_inset
10379
10380 (あるいは
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 Filled_Box
10386 \end_layout
10387
10388 \end_inset
10389
10390 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10391 \begin_inset Flex Code
10392 status collapsed
10393
10394 \begin_layout Plain Layout
10395 Static
10396 \end_layout
10397
10398 \end_inset
10399
10400 は明示したテキスト文字列を指します.
10401 \end_layout
10402
10403 \begin_layout Description
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 EndLabelString
10409 \end_layout
10410
10411 \end_inset
10412
10413  [
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 文字列=""
10419 \end_layout
10420
10421 \end_inset
10422
10423
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 Static
10429 \end_layout
10430
10431 \end_inset
10432
10433
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 EndLabelType
10439 \end_layout
10440
10441 \end_inset
10442
10443 のラベルで用いる文字列.
10444 \end_layout
10445
10446 \begin_layout Description
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 Font
10452 \end_layout
10453
10454 \end_inset
10455
10456  本文テキストとラベルの
10457 \emph on
10458 両方で
10459 \emph default
10460 用いられるフォント.第
10461 \begin_inset CommandInset ref
10462 LatexCommand ref
10463 reference "subsec:フォント指定"
10464
10465 \end_inset
10466
10467 節を参照.このフォントを定義すると,自動的に
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 LabelFont
10473 \end_layout
10474
10475 \end_inset
10476
10477 も同じ値で定義されることに注意してください.したがって,
10478 \begin_inset Flex Code
10479 status collapsed
10480
10481 \begin_layout Plain Layout
10482 LabelFont
10483 \end_layout
10484
10485 \end_inset
10486
10487 も同時に定義したい場合には,これを先に定義してください.
10488 \end_layout
10489
10490 \begin_layout Description
10491 \begin_inset Flex Code
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495 ForceLocal
10496 \end_layout
10497
10498 \end_inset
10499
10500  [
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 int=0
10506 \end_layout
10507
10508 \end_inset
10509
10510 ] 新しい様式を\SpecialChar LyX
10511 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10512  2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10513 できます.様式の
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 ForceLocal
10519 \end_layout
10520
10521 \end_inset
10522
10523 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10524 版の\SpecialChar LyX
10525 もこの様式を取り扱えるようになります.
10526 \begin_inset Flex Code
10527 status collapsed
10528
10529 \begin_layout Plain Layout
10530 ForceLocal
10531 \end_layout
10532
10533 \end_inset
10534
10535 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10536 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10537 \end_layout
10538
10539 \begin_layout Description
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544 FreeSpacing
10545 \end_layout
10546
10547 \end_inset
10548
10549  [
10550 \emph on
10551
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 0
10557 \end_layout
10558
10559 \end_inset
10560
10561
10562 \emph default
10563 ,
10564 \begin_inset space \thinspace{}
10565 \end_inset
10566
10567
10568 \begin_inset Flex Code
10569 status collapsed
10570
10571 \begin_layout Plain Layout
10572 1
10573 \end_layout
10574
10575 \end_inset
10576
10577 ] \SpecialChar LyX
10578 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10579 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10580 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 FreeSpacing
10586 \end_layout
10587
10588 \end_inset
10589
10590 を有効にすることが認められています.\SpecialChar LyX
10591 は,\SpecialChar LaTeX
10592 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10593 \end_layout
10594
10595 \begin_layout Description
10596 \begin_inset Flex Code
10597 status collapsed
10598
10599 \begin_layout Plain Layout
10600 HTML*
10601 \end_layout
10602
10603 \end_inset
10604
10605  これらのタグは,XHTML出力で使用されます.第
10606 \begin_inset CommandInset ref
10607 LatexCommand ref
10608 reference "subsec:段落様式-XHTML"
10609
10610 \end_inset
10611
10612 節をご覧ください.
10613 \end_layout
10614
10615 \begin_layout Description
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 InnerTag
10621 \end_layout
10622
10623 \end_inset
10624
10625  [[FIXME]] (XML型書式でのみ使用されます.)
10626 \end_layout
10627
10628 \begin_layout Description
10629 \begin_inset Flex Code
10630 status collapsed
10631
10632 \begin_layout Plain Layout
10633 InPreamble
10634 \end_layout
10635
10636 \end_inset
10637
10638  [
10639 \emph on
10640
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 0
10646 \end_layout
10647
10648 \end_inset
10649
10650
10651 \emph default
10652 ,
10653 \begin_inset space \thinspace{}
10654 \end_inset
10655
10656
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 1
10662 \end_layout
10663
10664 \end_inset
10665
10666
10667 \begin_inset Flex Code
10668 status collapsed
10669
10670 \begin_layout Plain Layout
10671 1
10672 \end_layout
10673
10674 \end_inset
10675
10676 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10677 です.これは,
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 LatexType
10683 \end_layout
10684
10685 \end_inset
10686
10687
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 Command
10693 \end_layout
10694
10695 \end_inset
10696
10697 または
10698 \begin_inset Flex Code
10699 status collapsed
10700
10701 \begin_layout Plain Layout
10702 Paragraph
10703 \end_layout
10704
10705 \end_inset
10706
10707 の様式に対してのみ動作します.
10708 \end_layout
10709
10710 \begin_layout Description
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 InTitle
10716 \end_layout
10717
10718 \end_inset
10719
10720  [
10721 \emph on
10722
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727 0
10728 \end_layout
10729
10730 \end_inset
10731
10732
10733 \emph default
10734 ,
10735 \begin_inset space \thinspace{}
10736 \end_inset
10737
10738
10739 \begin_inset Flex Code
10740 status collapsed
10741
10742 \begin_layout Plain Layout
10743 1
10744 \end_layout
10745
10746 \end_inset
10747
10748
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753 1
10754 \end_layout
10755
10756 \end_inset
10757
10758 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10759 \begin_inset Flex Code
10760 status collapsed
10761
10762 \begin_layout Plain Layout
10763 TitleLatexType
10764 \end_layout
10765
10766 \end_inset
10767
10768
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 TitleLatexName
10774 \end_layout
10775
10776 \end_inset
10777
10778 も参照).
10779 \end_layout
10780
10781 \begin_layout Description
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 ItemCommand
10787 \end_layout
10788
10789 \end_inset
10790
10791  [
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 文字列="item"
10797 \end_layout
10798
10799 \end_inset
10800
10801 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10802 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10803 出力中では
10804 \begin_inset Flex Code
10805 status collapsed
10806
10807 \begin_layout Plain Layout
10808
10809 \backslash
10810 item
10811 \end_layout
10812
10813 \end_inset
10814
10815 となります).
10816 \end_layout
10817
10818 \begin_layout Description
10819 \begin_inset Flex Code
10820 status collapsed
10821
10822 \begin_layout Plain Layout
10823 ItemSep
10824 \end_layout
10825
10826 \end_inset
10827
10828  [
10829 \begin_inset Flex Code
10830 status collapsed
10831
10832 \begin_layout Plain Layout
10833 浮動小数点型=0
10834 \end_layout
10835
10836 \end_inset
10837
10838 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 ParSep
10844 \end_layout
10845
10846 \end_inset
10847
10848 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 ItemSep
10854 \end_layout
10855
10856 \end_inset
10857
10858 分だけ離されます.これは
10859 \emph on
10860 乗数
10861 \emph default
10862 であることに注意してください.
10863 \end_layout
10864
10865 \begin_layout Description
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870 ItemTag
10871 \end_layout
10872
10873 \end_inset
10874
10875  [[FIXME]] (XML型書式でのみ使用されます.)
10876 \end_layout
10877
10878 \begin_layout Description
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 KeepEmpty
10884 \end_layout
10885
10886 \end_inset
10887
10888  [
10889 \emph on
10890
10891 \begin_inset Flex Code
10892 status collapsed
10893
10894 \begin_layout Plain Layout
10895 0
10896 \end_layout
10897
10898 \end_inset
10899
10900
10901 \emph default
10902 ,
10903 \begin_inset space \thinspace{}
10904 \end_inset
10905
10906
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 1
10912 \end_layout
10913
10914 \end_inset
10915
10916 ] 段落を空のままにすると,\SpecialChar LaTeX
10917 出力が空になってしまうので,通常,\SpecialChar LyX
10918 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10919 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10920 まないある種の改行として使用することもあります.
10921 \end_layout
10922
10923 \begin_layout Description
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 LabelBottomsep
10929 \end_layout
10930
10931 \end_inset
10932
10933  [
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 浮動小数点型=0
10939 \end_layout
10940
10941 \end_inset
10942
10943 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10944 \begin_inset Flex Code
10945 status collapsed
10946
10947 \begin_layout Plain Layout
10948 Top_Environment
10949 \end_layout
10950
10951 \end_inset
10952
10953 および
10954 \begin_inset Newline linebreak
10955 \end_inset
10956
10957
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962 Centered_Top_Environment
10963 \end_layout
10964
10965 \end_inset
10966
10967 ).
10968 \end_layout
10969
10970 \begin_layout Description
10971 \begin_inset Flex Code
10972 status collapsed
10973
10974 \begin_layout Plain Layout
10975 LabelCounter
10976 \end_layout
10977
10978 \end_inset
10979
10980  [
10981 \begin_inset Flex Code
10982 status collapsed
10983
10984 \begin_layout Plain Layout
10985 文字列=""
10986 \end_layout
10987
10988 \end_inset
10989
10990 ] 自動連番に使われるカウンタ名(詳しくは第
10991 \begin_inset CommandInset ref
10992 LatexCommand ref
10993 reference "subsec:カウンタ"
10994
10995 \end_inset
10996
10997 節参照).カウンタがラベル中に表示されるようにするためには,
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002 LabelString
11003 \end_layout
11004
11005 \end_inset
11006
11007 中で参照する必要があります.これは,少なくとも
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 Static
11013 \end_layout
11014
11015 \end_inset
11016
11017
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 Above
11023 \end_layout
11024
11025 \end_inset
11026
11027
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 Centered
11033 \end_layout
11034
11035 \end_inset
11036
11037 の各
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 LabelType
11043 \end_layout
11044
11045 \end_inset
11046
11047 で動作します.
11048 \begin_inset Newline newline
11049 \end_inset
11050
11051 また,
11052 \begin_inset Flex Code
11053 status collapsed
11054
11055 \begin_layout Plain Layout
11056 LabelType
11057 \end_layout
11058
11059 \end_inset
11060
11061
11062 \begin_inset Flex Code
11063 status collapsed
11064
11065 \begin_layout Plain Layout
11066 Enumerate
11067 \end_layout
11068
11069 \end_inset
11070
11071 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11072 \begin_inset Flex Code
11073 status collapsed
11074
11075 \begin_layout Plain Layout
11076 LabelCounter myenum
11077 \end_layout
11078
11079 \end_inset
11080
11081 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11082 におけるのと同様,実際に使われるカウンタは,
11083 \begin_inset Flex Code
11084 status collapsed
11085
11086 \begin_layout Plain Layout
11087 myenumi
11088 \end_layout
11089
11090 \end_inset
11091
11092
11093 \begin_inset Flex Code
11094 status collapsed
11095
11096 \begin_layout Plain Layout
11097 myenumii
11098 \end_layout
11099
11100 \end_inset
11101
11102
11103 \begin_inset Flex Code
11104 status collapsed
11105
11106 \begin_layout Plain Layout
11107 myenumii
11108 \end_layout
11109
11110 \end_inset
11111
11112
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 myenumiv
11118 \end_layout
11119
11120 \end_inset
11121
11122 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11123 \begin_inset Newline newline
11124 \end_inset
11125
11126 カウンタの詳細については,
11127 \begin_inset CommandInset ref
11128 LatexCommand ref
11129 reference "subsec:カウンタ"
11130
11131 \end_inset
11132
11133 をご覧ください.
11134 \end_layout
11135
11136 \begin_layout Description
11137 \begin_inset Flex Code
11138 status collapsed
11139
11140 \begin_layout Plain Layout
11141 LabelFont
11142 \end_layout
11143
11144 \end_inset
11145
11146  ラベルに使用されるフォント.
11147 \begin_inset CommandInset ref
11148 LatexCommand ref
11149 reference "subsec:フォント指定"
11150
11151 \end_inset
11152
11153 を参照.
11154 \end_layout
11155
11156 \begin_layout Description
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 LabelIndent
11162 \end_layout
11163
11164 \end_inset
11165
11166  [
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 文字列=""
11172 \end_layout
11173
11174 \end_inset
11175
11176 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11177 \end_layout
11178
11179 \begin_layout Description
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 LabelSep
11185 \end_layout
11186
11187 \end_inset
11188
11189  [
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194 文字列=""
11195 \end_layout
11196
11197 \end_inset
11198
11199 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11200 \end_layout
11201
11202 \begin_layout Description
11203 \begin_inset Flex Code
11204 status collapsed
11205
11206 \begin_layout Plain Layout
11207 LabelString
11208 \end_layout
11209
11210 \end_inset
11211
11212  [
11213 \begin_inset Flex Code
11214 status collapsed
11215
11216 \begin_layout Plain Layout
11217 文字列=""
11218 \end_layout
11219
11220 \end_inset
11221
11222
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 Static
11228 \end_layout
11229
11230 \end_inset
11231
11232 ラベル型でラベルに使用する文字列.
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 LabelCounter
11238 \end_layout
11239
11240 \end_inset
11241
11242 を設定している場合,
11243 \begin_inset CommandInset ref
11244 LatexCommand ref
11245 reference "subsec:カウンタ"
11246
11247 \end_inset
11248
11249 に述べられている特別な整形コマンドを含めることができます.
11250 \end_layout
11251
11252 \begin_layout Description
11253 \begin_inset Flex Code
11254 status collapsed
11255
11256 \begin_layout Plain Layout
11257 LabelStringAppendix
11258 \end_layout
11259
11260 \end_inset
11261
11262  [
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 文字列=""
11268 \end_layout
11269
11270 \end_inset
11271
11272 ] これは付録の中で
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 LabelString
11278 \end_layout
11279
11280 \end_inset
11281
11282 の代わりに用いられます.各
11283 \begin_inset Flex Code
11284 status collapsed
11285
11286 \begin_layout Plain Layout
11287 LabelString
11288 \end_layout
11289
11290 \end_inset
11291
11292 ステートメントは,
11293 \begin_inset Flex Code
11294 status collapsed
11295
11296 \begin_layout Plain Layout
11297 LabelStringAppendix
11298 \end_layout
11299
11300 \end_inset
11301
11302 をもリセットすることに注意してください.
11303 \end_layout
11304
11305 \begin_layout Description
11306 \begin_inset Flex Code
11307 status collapsed
11308
11309 \begin_layout Plain Layout
11310 LabelTag
11311 \end_layout
11312
11313 \end_inset
11314
11315  [FIXME] (XML型書式でのみ使用されます.)
11316 \end_layout
11317
11318 \begin_layout Description
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 LabelType
11324 \end_layout
11325
11326 \end_inset
11327
11328  [
11329 \begin_inset Flex Code
11330 status collapsed
11331
11332 \begin_layout Plain Layout
11333
11334 \emph on
11335 No_Label
11336 \emph default
11337 , Manual, Static, Above,
11338 \begin_inset Newline newline
11339 \end_inset
11340
11341 Centered, Sensitive, Enumerate,
11342 \begin_inset Newline newline
11343 \end_inset
11344
11345 Itemize, Bibliography
11346 \end_layout
11347
11348 \end_inset
11349
11350 ]
11351 \begin_inset Separator latexpar
11352 \end_inset
11353
11354
11355 \end_layout
11356
11357 \begin_deeper
11358 \begin_layout Description
11359 \begin_inset Flex Code
11360 status collapsed
11361
11362 \begin_layout Plain Layout
11363 Manual
11364 \end_layout
11365
11366 \end_inset
11367
11368  は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11369 \end_layout
11370
11371 \begin_layout Description
11372 \begin_inset Flex Code
11373 status collapsed
11374
11375 \begin_layout Plain Layout
11376 Static
11377 \end_layout
11378
11379 \end_inset
11380
11381  は,ラベルが
11382 \begin_inset Flex Code
11383 status collapsed
11384
11385 \begin_layout Plain Layout
11386 LabelString
11387 \end_layout
11388
11389 \end_inset
11390
11391 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11392 \begin_inset Flex Code
11393 status collapsed
11394
11395 \begin_layout Plain Layout
11396 LatexType
11397 \end_layout
11398
11399 \end_inset
11400
11401
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 Environment
11407 \end_layout
11408
11409 \end_inset
11410
11411 のときは,連続する同じ
11412 \begin_inset Flex Code
11413 status collapsed
11414
11415 \begin_layout Plain Layout
11416 Style
11417 \end_layout
11418
11419 \end_inset
11420
11421 の段落中,最初の段落にのみ表示されます.
11422 \end_layout
11423
11424 \begin_layout Description
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429 Above
11430 \end_layout
11431
11432 \end_inset
11433
11434 および
11435 \begin_inset Flex Code
11436 status collapsed
11437
11438 \begin_layout Plain Layout
11439 Centered
11440 \end_layout
11441
11442 \end_inset
11443
11444  は,
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449 Static
11450 \end_layout
11451
11452 \end_inset
11453
11454 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11455 \end_layout
11456
11457 \begin_layout Description
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 Sensitive
11463 \end_layout
11464
11465 \end_inset
11466
11467  はキャプションラベルの「図」や「表」の特別な場合です.
11468 \begin_inset Flex Code
11469 status collapsed
11470
11471 \begin_layout Plain Layout
11472 Sensitive
11473 \end_layout
11474
11475 \end_inset
11476
11477 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11478 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11479 \begin_inset Flex Code
11480 status collapsed
11481
11482 \begin_layout Plain Layout
11483 LabelString
11484 \end_layout
11485
11486 \end_inset
11487
11488 は「意味を成しません!」と表示されます.
11489 \end_layout
11490
11491 \begin_layout Description
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 Enumerate
11497 \end_layout
11498
11499 \end_inset
11500
11501  は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11502 す.
11503 \end_layout
11504
11505 \begin_layout Description
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510 Itemize
11511 \end_layout
11512
11513 \end_inset
11514
11515  は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11516 \end_layout
11517
11518 \begin_layout Description
11519 \begin_inset Flex Code
11520 status collapsed
11521
11522 \begin_layout Plain Layout
11523 Bibliography
11524 \end_layout
11525
11526 \end_inset
11527
11528  は,
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 LatexType BibEnvironment
11534 \end_layout
11535
11536 \end_inset
11537
11538 とともにのみ使用されます.
11539 \end_layout
11540
11541 \end_deeper
11542 \begin_layout Description
11543 \begin_inset Flex Code
11544 status collapsed
11545
11546 \begin_layout Plain Layout
11547 LangPreamble
11548 \end_layout
11549
11550 \end_inset
11551
11552  これは,この様式で既に出現した
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 LangPreamble
11558 \end_layout
11559
11560 \end_inset
11561
11562 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11563 \begin_inset CommandInset ref
11564 LatexCommand ref
11565 reference "subsec:段落様式の国際化"
11566
11567 \end_inset
11568
11569 をご覧ください.
11570 \end_layout
11571
11572 \begin_layout Description
11573 \begin_inset Flex Code
11574 status collapsed
11575
11576 \begin_layout Plain Layout
11577 LatexName
11578 \end_layout
11579
11580 \end_inset
11581
11582  [
11583 \begin_inset Flex Code
11584 status collapsed
11585
11586 \begin_layout Plain Layout
11587 <名称>
11588 \end_layout
11589
11590 \end_inset
11591
11592 ] 対応する\SpecialChar LaTeX
11593 の名称です.環境名かコマンド名を指します.
11594 \end_layout
11595
11596 \begin_layout Description
11597 \begin_inset Flex Code
11598 status collapsed
11599
11600 \begin_layout Plain Layout
11601 LatexParam
11602 \end_layout
11603
11604 \end_inset
11605
11606  [
11607 \begin_inset Flex Code
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 <パラメータ>
11612 \end_layout
11613
11614 \end_inset
11615
11616 ] 対応する
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 LatexName
11622 \end_layout
11623
11624 \end_inset
11625
11626 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11627 内部から変更することはできません(変更可能なパラメータには
11628 \begin_inset Flex Code
11629 status collapsed
11630
11631 \begin_layout Plain Layout
11632 Argument
11633 \end_layout
11634
11635 \end_inset
11636
11637 を使用してください).これは,全ての\SpecialChar LaTeX
11638  
11639 \begin_inset Flex Code
11640 status collapsed
11641
11642 \begin_layout Plain Layout
11643 Argument
11644 \end_layout
11645
11646 \end_inset
11647
11648 の後にそのままの形で出力されます.
11649 \end_layout
11650
11651 \begin_layout Description
11652 \begin_inset Flex Code
11653 status collapsed
11654
11655 \begin_layout Plain Layout
11656 LatexType
11657 \end_layout
11658
11659 \end_inset
11660
11661  [
11662 \begin_inset Flex Code
11663 status collapsed
11664
11665 \begin_layout Plain Layout
11666
11667 \emph on
11668 Paragraph
11669 \emph default
11670 , Command, Environment, Item_Environment,
11671 \begin_inset Newline newline
11672 \end_inset
11673
11674 List_Environment, Bib_Environment
11675 \end_layout
11676
11677 \end_inset
11678
11679 ] レイアウトがどのように\SpecialChar LaTeX
11680 に変換されるべきかを示します
11681 \begin_inset Foot
11682 status collapsed
11683
11684 \begin_layout Plain Layout
11685 これらのルールはSGMLクラスにも適用されるので,
11686 \begin_inset Flex Code
11687 status collapsed
11688
11689 \begin_layout Plain Layout
11690 LatexType
11691 \end_layout
11692
11693 \end_inset
11694
11695 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 db_*.inc
11701 \end_layout
11702
11703 \end_inset
11704
11705 )を見てください.
11706 \end_layout
11707
11708 \end_inset
11709
11710
11711 \begin_inset Separator latexpar
11712 \end_inset
11713
11714
11715 \end_layout
11716
11717 \begin_deeper
11718 \begin_layout Description
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723 Paragraph
11724 \end_layout
11725
11726 \end_inset
11727
11728  は,何も特別なことは意味しません.
11729 \end_layout
11730
11731 \begin_layout Description
11732 \begin_inset Flex Code
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 Command
11737 \end_layout
11738
11739 \end_inset
11740
11741  は,
11742 \begin_inset Flex Code
11743 status collapsed
11744
11745 \begin_layout Plain Layout
11746
11747 \backslash
11748
11749 \emph on
11750 LatexName
11751 \emph default
11752 {\SpecialChar ldots
11753 }
11754 \end_layout
11755
11756 \end_inset
11757
11758 を意味します.
11759 \end_layout
11760
11761 \begin_layout Description
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 Environment
11767 \end_layout
11768
11769 \end_inset
11770
11771  は,
11772 \begin_inset Flex Code
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776
11777 \backslash
11778 begin{
11779 \emph on
11780 LatexName
11781 \emph default
11782 }\SpecialChar ldots
11783
11784 \backslash
11785 end{
11786 \emph on
11787 LatexName
11788 \emph default
11789 }
11790 \end_layout
11791
11792 \end_inset
11793
11794 を意味します.
11795 \end_layout
11796
11797 \begin_layout Description
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 Item_Environment
11803 \end_layout
11804
11805 \end_inset
11806
11807  は
11808 \begin_inset Flex Code
11809 status collapsed
11810
11811 \begin_layout Plain Layout
11812 Environment
11813 \end_layout
11814
11815 \end_inset
11816
11817 と同じですが,
11818 \begin_inset Flex Code
11819 status collapsed
11820
11821 \begin_layout Plain Layout
11822
11823 \backslash
11824 item
11825 \end_layout
11826
11827 \end_inset
11828
11829 がこの環境のすべての段落に付けられるところだけが異なっています.
11830 \end_layout
11831
11832 \begin_layout Description
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837 List_Environment
11838 \end_layout
11839
11840 \end_inset
11841
11842  は
11843 \begin_inset Flex Code
11844 status collapsed
11845
11846 \begin_layout Plain Layout
11847 Item_Environment
11848 \end_layout
11849
11850 \end_inset
11851
11852 と同じですが,
11853 \begin_inset Flex Code
11854 status collapsed
11855
11856 \begin_layout Plain Layout
11857 LabelWidthString
11858 \end_layout
11859
11860 \end_inset
11861
11862 が環境の引数として渡されるところだけが異なっています.
11863 \begin_inset Flex Code
11864 status collapsed
11865
11866 \begin_layout Plain Layout
11867 LabelWidthString
11868 \end_layout
11869
11870 \end_inset
11871
11872 は,
11873 \begin_inset Flex MenuItem
11874 status collapsed
11875
11876 \begin_layout Plain Layout
11877 編集\SpecialChar menuseparator
11878 段落設定
11879 \end_layout
11880
11881 \end_inset
11882
11883 ダイアログで定義することができます.
11884 \end_layout
11885
11886 \begin_layout Description
11887 \begin_inset Flex Code
11888 status collapsed
11889
11890 \begin_layout Plain Layout
11891 Bib_Environment
11892 \end_layout
11893
11894 \end_inset
11895
11896  は
11897 \begin_inset Flex Code
11898 status collapsed
11899
11900 \begin_layout Plain Layout
11901 Environment
11902 \end_layout
11903
11904 \end_inset
11905
11906 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11907 \begin_inset Newline newline
11908 \end_inset
11909
11910
11911 \begin_inset Flex Code
11912 status collapsed
11913
11914 \begin_layout Plain Layout
11915
11916 \backslash
11917 begin{thebibliography}{99}
11918 \end_layout
11919
11920 \end_inset
11921
11922
11923 \begin_inset Newline newline
11924 \end_inset
11925
11926 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11927 \end_layout
11928
11929 \begin_layout Standard
11930 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11931 出力は,\SpecialChar LaTeX
11932 型に依存して
11933 \end_layout
11934
11935 \begin_layout LyX-Code
11936
11937 \backslash
11938 LatexName[LatexParam]{\SpecialChar ldots
11939 }
11940 \end_layout
11941
11942 \begin_layout Standard
11943 のようになるか,
11944 \end_layout
11945
11946 \begin_layout LyX-Code
11947
11948 \backslash
11949 begin{LatexName}[LatexParam] \SpecialChar ldots
11950  
11951 \backslash
11952 end{LatexName}.
11953 \end_layout
11954
11955 \begin_layout Standard
11956 となります.
11957 \end_layout
11958
11959 \end_deeper
11960 \begin_layout Description
11961 \begin_inset Flex Code
11962 status collapsed
11963
11964 \begin_layout Plain Layout
11965 LeftDelim
11966 \end_layout
11967
11968 \end_inset
11969
11970  [
11971 \begin_inset Flex Code
11972 status collapsed
11973
11974 \begin_layout Plain Layout
11975 文字列
11976 \end_layout
11977
11978 \end_inset
11979
11980 ] 様式の内容の最初に置かれる文字列.出力中の改行は
11981 \begin_inset Flex Code
11982 status collapsed
11983
11984 \begin_layout Plain Layout
11985 <br/>
11986 \end_layout
11987
11988 \end_inset
11989
11990 で指示できます.
11991 \end_layout
11992
11993 \begin_layout Description
11994 \begin_inset Flex Code
11995 status collapsed
11996
11997 \begin_layout Plain Layout
11998 LeftMargin
11999 \end_layout
12000
12001 \end_inset
12002
12003  [
12004 \begin_inset Flex Code
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 文字列=""
12009 \end_layout
12010
12011 \end_inset
12012
12013 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12014 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12015 \end_inset
12016
12017 をかけて加えられます.このパラメータは,
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022 Margin
12023 \end_layout
12024
12025 \end_inset
12026
12027
12028 \begin_inset Flex Code
12029 status collapsed
12030
12031 \begin_layout Plain Layout
12032 Manual
12033 \end_layout
12034
12035 \end_inset
12036
12037 あるいは
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042 Dynamic
12043 \end_layout
12044
12045 \end_inset
12046
12047 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12048 \begin_inset Newline newline
12049 \end_inset
12050
12051 たとえば「
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 MM
12057 \end_layout
12058
12059 \end_inset
12060
12061 」と指定すると,段落を通常フォントの「
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 MM
12067 \end_layout
12068
12069 \end_inset
12070
12071 」の幅だけ行頭下げを行います.文字列の前に「
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076 -
12077 \end_layout
12078
12079 \end_inset
12080
12081 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12082 \end_layout
12083
12084 \begin_layout Description
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 Margin
12090 \end_layout
12091
12092 \end_inset
12093
12094  [
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099
12100 \emph on
12101 Static
12102 \emph default
12103 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12104 \end_layout
12105
12106 \end_inset
12107
12108
12109 \begin_inset Newline newline
12110 \end_inset
12111
12112 このレイアウトの左余白の種類です.
12113 \begin_inset Separator latexpar
12114 \end_inset
12115
12116
12117 \end_layout
12118
12119 \begin_deeper
12120 \begin_layout Description
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 Static
12126 \end_layout
12127
12128 \end_inset
12129
12130  は固定余白を示します.
12131 \end_layout
12132
12133 \begin_layout Description
12134 \begin_inset Flex Code
12135 status collapsed
12136
12137 \begin_layout Plain Layout
12138 Manual
12139 \end_layout
12140
12141 \end_inset
12142
12143  は,左余白が
12144 \begin_inset Flex MenuItem
12145 status collapsed
12146
12147 \begin_layout Plain Layout
12148 編集\SpecialChar menuseparator
12149 段落設定
12150 \end_layout
12151
12152 \end_inset
12153
12154 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12155 \end_layout
12156
12157 \begin_layout Description
12158 \begin_inset Flex Code
12159 status collapsed
12160
12161 \begin_layout Plain Layout
12162 Dynamic
12163 \end_layout
12164
12165 \end_inset
12166
12167  は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12168  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12169 \end_layout
12170
12171 \begin_layout Description
12172 \begin_inset Flex Code
12173 status collapsed
12174
12175 \begin_layout Plain Layout
12176 First_Dynamic
12177 \end_layout
12178
12179 \end_inset
12180
12181  は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12182 \end_layout
12183
12184 \begin_layout Description
12185 \begin_inset Flex Code
12186 status collapsed
12187
12188 \begin_layout Plain Layout
12189 Right_Address_Box
12190 \end_layout
12191
12192 \end_inset
12193
12194  は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12195 \end_layout
12196
12197 \end_deeper
12198 \begin_layout Description
12199 \begin_inset Flex Code
12200 status collapsed
12201
12202 \begin_layout Plain Layout
12203 NeedProtect
12204 \end_layout
12205
12206 \end_inset
12207
12208  [
12209 \begin_inset Flex Code
12210 status collapsed
12211
12212 \begin_layout Plain Layout
12213
12214 \emph on
12215 0
12216 \end_layout
12217
12218 \end_inset
12219
12220 ,
12221 \begin_inset space \thinspace{}
12222 \end_inset
12223
12224
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 1
12230 \end_layout
12231
12232 \end_inset
12233
12234 ] このレイアウト中の脆弱なコマンドが
12235 \begin_inset Flex Code
12236 status collapsed
12237
12238 \begin_layout Plain Layout
12239
12240 \backslash
12241 protect
12242 \end_layout
12243
12244 \end_inset
12245
12246 されるべきか否か(註:これはこのコマンド自体が
12247 \begin_inset Flex Code
12248 status collapsed
12249
12250 \begin_layout Plain Layout
12251
12252 \backslash
12253 protect
12254 \end_layout
12255
12256 \end_inset
12257
12258 されるべきかでは
12259 \emph on
12260 ありません
12261 \emph default
12262 ).
12263 \end_layout
12264
12265 \begin_layout Description
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270 Newline
12271 \end_layout
12272
12273 \end_inset
12274
12275  [
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280 0
12281 \end_layout
12282
12283 \end_inset
12284
12285 ,
12286 \begin_inset space \thinspace{}
12287 \end_inset
12288
12289
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294
12295 \emph on
12296 1
12297 \end_layout
12298
12299 \end_inset
12300
12301 ] 新規行を\SpecialChar LaTeX
12302 の新規行(
12303 \begin_inset Flex Code
12304 status collapsed
12305
12306 \begin_layout Plain Layout
12307
12308 \backslash
12309
12310 \backslash
12311
12312 \end_layout
12313
12314 \end_inset
12315
12316 )に変換するか否か.\SpecialChar LyX
12317 中で\SpecialChar LaTeX
12318 編集をやりやすくするために,変換は無効にすることができます.
12319 \end_layout
12320
12321 \begin_layout Description
12322 \begin_inset Flex Code
12323 status collapsed
12324
12325 \begin_layout Plain Layout
12326 NextNoIndent
12327 \end_layout
12328
12329 \end_inset
12330
12331  [
12332 \begin_inset Flex Code
12333 status collapsed
12334
12335 \begin_layout Plain Layout
12336
12337 \emph on
12338 0
12339 \end_layout
12340
12341 \end_inset
12342
12343 ,
12344 \begin_inset space \thinspace{}
12345 \end_inset
12346
12347
12348 \begin_inset Flex Code
12349 status collapsed
12350
12351 \begin_layout Plain Layout
12352 1
12353 \end_layout
12354
12355 \end_inset
12356
12357 ] 真に設定すると,
12358 \begin_inset Flex Code
12359 status collapsed
12360
12361 \begin_layout Plain Layout
12362 DefaultStyle
12363 \end_layout
12364
12365 \end_inset
12366
12367  (通常
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 Standard
12373 \end_layout
12374
12375 \end_inset
12376
12377 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12378 \end_layout
12379
12380 \begin_layout Description
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 ObsoletedBy
12386 \end_layout
12387
12388 \end_inset
12389
12390  [
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 <名称>
12396 \end_layout
12397
12398 \end_inset
12399
12400 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12401 \end_layout
12402
12403 \begin_layout Description
12404 \begin_inset Flex Code
12405 status collapsed
12406
12407 \begin_layout Plain Layout
12408 ParagraphGroup
12409 \end_layout
12410
12411 \end_inset
12412
12413  [
12414 \begin_inset Flex Code
12415 status collapsed
12416
12417 \begin_layout Plain Layout
12418 0
12419 \end_layout
12420
12421 \end_inset
12422
12423 ,
12424 \begin_inset space \thinspace{}
12425 \end_inset
12426
12427
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 1
12433 \end_layout
12434
12435 \end_inset
12436
12437 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12438 \begin_inset Flex Code
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 GuiLabel
12443 \end_layout
12444
12445 \end_inset
12446
12447 が一度だけ出力される効果があります.既定では,
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 LaTeXType
12453 \end_layout
12454
12455 \end_inset
12456
12457
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 Environment
12463 \end_layout
12464
12465 \end_inset
12466
12467 および
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 Bib_Environment
12473 \end_layout
12474
12475 \end_inset
12476
12477  については有効であり,他の型すべてについて無効になっています.
12478 \end_layout
12479
12480 \begin_layout Description
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 ParbreakIsNewline
12486 \end_layout
12487
12488 \end_inset
12489
12490  [
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495
12496 \emph on
12497 0
12498 \end_layout
12499
12500 \end_inset
12501
12502 ,
12503 \begin_inset space \thinspace{}
12504 \end_inset
12505
12506
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 1
12512 \end_layout
12513
12514 \end_inset
12515
12516 ] \SpecialChar LaTeX
12517 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 PassThru 1
12523 \end_layout
12524
12525 \end_inset
12526
12527 と併用すれば,(\SpecialChar TeX
12528 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12529 \end_layout
12530
12531 \begin_layout Description
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536 ParIndent
12537 \end_layout
12538
12539 \end_inset
12540
12541  [
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546 文字列=""
12547 \end_layout
12548
12549 \end_inset
12550
12551 ] 段落の最初の行の行頭下げ.レイアウトによっては
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 Parindent
12557 \end_layout
12558
12559 \end_inset
12560
12561 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 NextNoIndent
12567 \end_layout
12568
12569 \end_inset
12570
12571 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 Parindent
12577 \end_layout
12578
12579 \end_inset
12580
12581 ではなく,この環境の
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 Parindent
12587 \end_layout
12588
12589 \end_inset
12590
12591 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12592 \end_layout
12593
12594 \begin_layout Description
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 ParSep
12600 \end_layout
12601
12602 \end_inset
12603
12604  [
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 浮動小数点型=0
12610 \end_layout
12611
12612 \end_inset
12613
12614 ] このレイアウトの2段落間の垂直余白.
12615 \end_layout
12616
12617 \begin_layout Description
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 Parskip
12623 \end_layout
12624
12625 \end_inset
12626
12627  [
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 浮動小数点型=0
12633 \end_layout
12634
12635 \end_inset
12636
12637 ] \SpecialChar LyX
12638 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12639 択した際には,\SpecialChar LaTeX
12640 型「段落」レイアウトの
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 ParIndent
12646 \end_layout
12647
12648 \end_inset
12649
12650 は無視され,すべての段落はこの
12651 \begin_inset Flex Code
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655 Parskip
12656 \end_layout
12657
12658 \end_inset
12659
12660 引数分だけ引き離されます.垂直余白は,
12661 \begin_inset Flex Code
12662 status collapsed
12663
12664 \begin_layout Plain Layout
12665 DefaultHeight
12666 \end_layout
12667
12668 \end_inset
12669
12670 を標準フォントでの1行の高さとすると,
12671 \begin_inset Flex Code
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 Parskipの値
12676 \end_layout
12677
12678 \end_inset
12679
12680
12681 \begin_inset Formula $\times$
12682 \end_inset
12683
12684
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 DefaultHeight
12690 \end_layout
12691
12692 \end_inset
12693
12694 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12695 \end_layout
12696
12697 \begin_layout Description
12698 \begin_inset Flex Code
12699 status collapsed
12700
12701 \begin_layout Plain Layout
12702 PassThru
12703 \end_layout
12704
12705 \end_inset
12706
12707  [
12708 \emph on
12709
12710 \begin_inset Flex Code
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 0
12715 \end_layout
12716
12717 \end_inset
12718
12719
12720 \emph default
12721 ,
12722 \begin_inset space \thinspace{}
12723 \end_inset
12724
12725
12726 \begin_inset Flex Code
12727 status collapsed
12728
12729 \begin_layout Plain Layout
12730 1
12731 \end_layout
12732
12733 \end_inset
12734
12735 ] この段落の内容が,\SpecialChar LaTeX
12736 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12737 \end_layout
12738
12739 \begin_layout Description
12740 \begin_inset Flex Code
12741 status collapsed
12742
12743 \begin_layout Plain Layout
12744 PassThruChars
12745 \end_layout
12746
12747 \end_inset
12748
12749  [
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 文字列
12755 \end_layout
12756
12757 \end_inset
12758
12759 ]
12760 \family typewriter
12761  
12762 \family default
12763 \SpecialChar LaTeX
12764 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12765 \end_layout
12766
12767 \begin_layout Description
12768 \begin_inset Flex Code
12769 status collapsed
12770
12771 \begin_layout Plain Layout
12772 Preamble
12773 \end_layout
12774
12775 \end_inset
12776
12777  この様式が使用されたときに,\SpecialChar LaTeX
12778 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12779 \begin_inset Flex Code
12780 status collapsed
12781
12782 \begin_layout Plain Layout
12783 EndPreamble
12784 \end_layout
12785
12786 \end_inset
12787
12788 」で閉じる必要があります.
12789 \end_layout
12790
12791 \begin_layout Description
12792 \begin_inset Flex Code
12793 status collapsed
12794
12795 \begin_layout Plain Layout
12796 RefPrefix
12797 \end_layout
12798
12799 \end_inset
12800
12801  [
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806 文字列
12807 \end_layout
12808
12809 \end_inset
12810
12811 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12812 \end_layout
12813
12814 \begin_layout Description
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819 Requires
12820 \end_layout
12821
12822 \end_inset
12823
12824  [
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 文字列
12830 \end_layout
12831
12832 \end_inset
12833
12834 ] この様式が機能
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839 文字列
12840 \end_layout
12841
12842 \end_inset
12843
12844 を必要とするかどうか(機能詳細については,第
12845 \begin_inset CommandInset ref
12846 LatexCommand ref
12847 reference "chap:関数一覧"
12848
12849 \end_inset
12850
12851 節参照).特定のオプションをとるパッケージを要求する場合,
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 PackageOptions
12857 \end_layout
12858
12859 \end_inset
12860
12861 を汎用テキストクラスパラメータとして追加して使うことができます(
12862 \begin_inset CommandInset ref
12863 LatexCommand ref
12864 reference "subsec:汎用テキストクラスパラメータ"
12865
12866 \end_inset
12867
12868 を参照).
12869 \end_layout
12870
12871 \begin_layout Description
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 ResetArgs
12877 \end_layout
12878
12879 \end_inset
12880
12881  [
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886
12887 \emph on
12888 0
12889 \end_layout
12890
12891 \end_inset
12892
12893 ,
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 1
12899 \end_layout
12900
12901 \end_inset
12902
12903 ] (
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 Argument
12909 \end_layout
12910
12911 \end_inset
12912
12913 タグで定義された)この様式の\SpecialChar LaTeX
12914 引数をリセットします.これは,様式を
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 CopyStyle
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 RightDelim
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 \end_layout
12944
12945 \end_inset
12946
12947 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12948 \begin_inset Flex Code
12949 status collapsed
12950
12951 \begin_layout Plain Layout
12952 <br/>
12953 \end_layout
12954
12955 \end_inset
12956
12957 で指示できます.
12958 \end_layout
12959
12960 \begin_layout Description
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 RightMargin
12966 \end_layout
12967
12968 \end_inset
12969
12970  [
12971 \begin_inset Flex Code
12972 status collapsed
12973
12974 \begin_layout Plain Layout
12975 文字列=""
12976 \end_layout
12977
12978 \end_inset
12979
12980
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 LeftMargin
12986 \end_layout
12987
12988 \end_inset
12989
12990 に同様.
12991 \end_layout
12992
12993 \begin_layout Description
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 Spacing
12999 \end_layout
13000
13001 \end_inset
13002
13003  [
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008
13009 \emph on
13010 single
13011 \end_layout
13012
13013 \end_inset
13014
13015
13016 \begin_inset Flex Code
13017 status collapsed
13018
13019 \begin_layout Plain Layout
13020 onehalf
13021 \end_layout
13022
13023 \end_inset
13024
13025
13026 \begin_inset Flex Code
13027 status collapsed
13028
13029 \begin_layout Plain Layout
13030 double
13031 \end_layout
13032
13033 \end_inset
13034
13035
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 other
13041 \begin_inset space ~
13042 \end_inset
13043
13044 <
13045 \emph on
13046
13047 \emph default
13048 >
13049 \end_layout
13050
13051 \end_inset
13052
13053 ]
13054 \lang english
13055  
13056 \lang japanese
13057 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062 single
13063 \end_layout
13064
13065 \end_inset
13066
13067
13068 \begin_inset Flex Code
13069 status collapsed
13070
13071 \begin_layout Plain Layout
13072 onehalf
13073 \end_layout
13074
13075 \end_inset
13076
13077
13078 \begin_inset Flex Code
13079 status collapsed
13080
13081 \begin_layout Plain Layout
13082 double
13083 \end_layout
13084
13085 \end_inset
13086
13087 は,それぞれ乗数1・1.25・1.667に対応します.引数
13088 \begin_inset Flex Code
13089 status collapsed
13090
13091 \begin_layout Plain Layout
13092 other
13093 \end_layout
13094
13095 \end_inset
13096
13097 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13098 \begin_inset Flex Code
13099 status collapsed
13100
13101 \begin_layout Plain Layout
13102 Spacing
13103 \end_layout
13104
13105 \end_inset
13106
13107 は,\SpecialChar LaTeX
13108 パッケージ
13109 \begin_inset Flex Code
13110 status collapsed
13111
13112 \begin_layout Plain Layout
13113 setspace
13114 \end_layout
13115
13116 \end_inset
13117
13118 パッケージを使用した,限定的な\SpecialChar LaTeX
13119 コードを生成することを意味することにご注意ください.
13120 \end_layout
13121
13122 \begin_layout Description
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 Spellcheck
13128 \end_layout
13129
13130 \end_inset
13131
13132  [
13133 \begin_inset Flex Code
13134 status collapsed
13135
13136 \begin_layout Plain Layout
13137 0
13138 \end_layout
13139
13140 \end_inset
13141
13142 ,
13143 \begin_inset space \thinspace{}
13144 \end_inset
13145
13146
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151 1
13152 \end_layout
13153
13154 \end_inset
13155
13156 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13157 \end_layout
13158
13159 \begin_layout Description
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164 TextFont
13165 \end_layout
13166
13167 \end_inset
13168
13169  本文に使うフォント.
13170 \begin_inset CommandInset ref
13171 LatexCommand ref
13172 reference "subsec:フォント指定"
13173
13174 \end_inset
13175
13176 参照.
13177 \end_layout
13178
13179 \begin_layout Description
13180 \begin_inset Flex Code
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184 TocLevel
13185 \end_layout
13186
13187 \end_inset
13188
13189  [
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 整数型=3
13195 \end_layout
13196
13197 \end_inset
13198
13199 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13200 \end_layout
13201
13202 \begin_layout Description
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 ToggleIndent
13208 \end_layout
13209
13210 \end_inset
13211
13212  [
13213 \emph on
13214
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 default
13220 \end_layout
13221
13222 \end_inset
13223
13224
13225 \emph default
13226
13227 \begin_inset Flex Code
13228 status collapsed
13229
13230 \begin_layout Plain Layout
13231 always
13232 \end_layout
13233
13234 \end_inset
13235
13236
13237 \begin_inset Flex Code
13238 status collapsed
13239
13240 \begin_layout Plain Layout
13241 never
13242 \end_layout
13243
13244 \end_inset
13245
13246 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13247 \begin_inset Flex Code
13248 status collapsed
13249
13250 \begin_layout Plain Layout
13251 default
13252 \end_layout
13253
13254 \end_inset
13255
13256 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13257 \begin_inset Flex Code
13258 status collapsed
13259
13260 \begin_layout Plain Layout
13261 always
13262 \end_layout
13263
13264 \end_inset
13265
13266 は,文書設定にかかわらず変更することができ,
13267 \begin_inset Flex Code
13268 status collapsed
13269
13270 \begin_layout Plain Layout
13271 never
13272 \end_layout
13273
13274 \end_inset
13275
13276 は,どのような場合でも変更することができません.
13277 \end_layout
13278
13279 \begin_layout Description
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 TopSep
13285 \end_layout
13286
13287 \end_inset
13288
13289  [
13290 \begin_inset Flex Code
13291 status collapsed
13292
13293 \begin_layout Plain Layout
13294 浮動小数点型=0
13295 \end_layout
13296
13297 \end_inset
13298
13299 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13300 の最大値がとられます.
13301 \end_layout
13302
13303 \begin_layout Subsection
13304 段落様式の国際化
13305 \begin_inset CommandInset label
13306 LatexCommand label
13307 name "subsec:段落様式の国際化"
13308
13309 \end_inset
13310
13311
13312 \end_layout
13313
13314 \begin_layout Standard
13315 \SpecialChar LyX
13316 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13317 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13318 \lang french
13319 Théorème
13320 \lang japanese
13321  1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13322 \end_layout
13323
13324 \begin_layout Standard
13325 もし
13326 \begin_inset Flex MenuItem
13327 status collapsed
13328
13329 \begin_layout Plain Layout
13330 Style
13331 \end_layout
13332
13333 \end_inset
13334
13335 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13336 \begin_inset Flex MenuItem
13337 status collapsed
13338
13339 \begin_layout Plain Layout
13340 LangPreamble
13341 \end_layout
13342
13343 \end_inset
13344
13345
13346 \begin_inset Flex MenuItem
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 BabelPreamble
13351 \end_layout
13352
13353 \end_inset
13354
13355 を使用することができます.以下の抜粋(
13356 \begin_inset Flex MenuItem
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360 theorems-ams.inc
13361 \end_layout
13362
13363 \end_inset
13364
13365 より)は,これがどう動作するかを示すものです.
13366 \end_layout
13367
13368 \begin_layout LyX-Code
13369 Preamble
13370 \begin_inset Separator latexpar
13371 \end_inset
13372
13373
13374 \end_layout
13375
13376 \begin_deeper
13377 \begin_layout LyX-Code
13378   
13379 \backslash
13380 theoremstyle{remark}
13381 \end_layout
13382
13383 \begin_layout LyX-Code
13384   
13385 \backslash
13386 newtheorem{claim}[thm]{
13387 \backslash
13388 protect
13389 \backslash
13390 claimname}
13391 \end_layout
13392
13393 \begin_layout LyX-Code
13394 EndPreamble
13395 \end_layout
13396
13397 \begin_layout LyX-Code
13398 LangPreamble
13399 \end_layout
13400
13401 \begin_layout LyX-Code
13402   
13403 \backslash
13404 providecommand{
13405 \backslash
13406 claimname}{_(Claim)}
13407 \end_layout
13408
13409 \begin_layout LyX-Code
13410 EndLangPreamble
13411 \end_layout
13412
13413 \begin_layout LyX-Code
13414 BabelPreamble
13415 \end_layout
13416
13417 \begin_layout LyX-Code
13418     
13419 \backslash
13420 addto
13421 \backslash
13422 captions$$lang{
13423 \backslash
13424 renewcommand{
13425 \backslash
13426 claimname}{_(Claim)}}
13427 \end_layout
13428
13429 \begin_layout LyX-Code
13430 EndBabelPreamble
13431 \end_layout
13432
13433 \end_deeper
13434 \begin_layout Standard
13435 原則として,
13436 \begin_inset Flex MenuItem
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440 LangPreamble
13441 \end_layout
13442
13443 \end_inset
13444
13445
13446 \begin_inset Flex MenuItem
13447 status collapsed
13448
13449 \begin_layout Plain Layout
13450 BabelPreamble
13451 \end_layout
13452
13453 \end_inset
13454
13455 タグ内には,有効な\SpecialChar LaTeX
13456 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13457 は,\SpecialChar LaTeX
13458 コマンド
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463
13464 \backslash
13465 claimname
13466 \end_layout
13467
13468 \end_inset
13469
13470 とその
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475
13476 \backslash
13477 newtheorem
13478 \end_layout
13479
13480 \end_inset
13481
13482 中での用い方です.
13483 \end_layout
13484
13485 \begin_layout Standard
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 LangPreamble
13491 \end_layout
13492
13493 \end_inset
13494
13495 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 Preamble
13501 \end_layout
13502
13503 \end_inset
13504
13505 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 _()
13511 \end_layout
13512
13513 \end_inset
13514
13515 が使用されていることです.これは,\SpecialChar LyX
13516 が\SpecialChar LaTeX
13517 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13518 \end_layout
13519
13520 \begin_layout Standard
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 BabelPreamble
13526 \end_layout
13527
13528 \end_inset
13529
13530 タグは,複数言語文書をサポートし,
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 babel
13536 \end_layout
13537
13538 \end_inset
13539
13540 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13541 の場合には,
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546 _()
13547 \end_layout
13548
13549 \end_inset
13550
13551 の引数は,その当該言語への翻訳で置き換えられ,
13552 \begin_inset Flex Code
13553 status collapsed
13554
13555 \begin_layout Plain Layout
13556 $$lang
13557 \end_layout
13558
13559 \end_inset
13560
13561 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13562 \end_layout
13563
13564 \begin_layout Standard
13565 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13566 \end_layout
13567
13568 \begin_layout LyX-Code
13569
13570 \backslash
13571 addto
13572 \backslash
13573 captionsfrench{
13574 \backslash
13575 renewcommand{
13576 \backslash
13577 claimname}{Affirmation}}
13578 \begin_inset Newline newline
13579 \end_inset
13580
13581
13582 \backslash
13583 addto
13584 \backslash
13585 captionsngerman{
13586 \backslash
13587 renewcommand{
13588 \backslash
13589 claimname}{Behauptung}}
13590 \begin_inset Newline newline
13591 \end_inset
13592
13593
13594 \backslash
13595 providecommand{
13596 \backslash
13597 claimname}{Behauptung}
13598 \end_layout
13599
13600 \begin_layout Standard
13601 それから,\SpecialChar LaTeX
13602
13603 \begin_inset Flex Code
13604 status collapsed
13605
13606 \begin_layout Plain Layout
13607 babel
13608 \end_layout
13609
13610 \end_inset
13611
13612 は協力して,出力に正しい文字列を生成します.
13613 \end_layout
13614
13615 \begin_layout Standard
13616 ここで注意しておくべき一つの重要な点は,翻訳は,
13617 \begin_inset Flex Code
13618 status collapsed
13619
13620 \begin_layout Plain Layout
13621 layouttranslations
13622 \end_layout
13623
13624 \end_inset
13625
13626 ファイルを通じて,\SpecialChar LyX
13627 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632 layouttranslations
13633 \end_layout
13634
13635 \end_inset
13636
13637 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13638 の国際化ルーチンでは取り扱われないので,
13639 \begin_inset Flex MenuItem
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643 LangPreamble
13644 \end_layout
13645
13646 \end_inset
13647
13648
13649 \begin_inset Flex MenuItem
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 BabelPreamble
13654 \end_layout
13655
13656 \end_inset
13657
13658 は,事実上,\SpecialChar LyX
13659 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13660 に同梱させようとい
13661 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13662 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13663 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13664 \end_layout
13665
13666 \begin_layout Subsection
13667 フロート
13668 \begin_inset CommandInset label
13669 LatexCommand label
13670 name "subsec:フロート"
13671
13672 \end_inset
13673
13674
13675 \end_layout
13676
13677 \begin_layout Standard
13678 \SpecialChar LyX
13679 第1.3.0版以来,テキストクラス自体の中でフロート(
13680 \begin_inset Flex MenuItem
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684 figure
13685 \end_layout
13686
13687 \end_inset
13688
13689
13690 \begin_inset Flex MenuItem
13691 status collapsed
13692
13693 \begin_layout Plain Layout
13694 table
13695 \end_layout
13696
13697 \end_inset
13698
13699 ・\SpecialChar ldots
13700 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 stdfloats.inc
13706 \end_layout
13707
13708 \end_inset
13709
13710 ファイルに含まれているので,作業中のレイアウトファイルに
13711 \end_layout
13712
13713 \begin_layout LyX-Code
13714 Input stdfloats.inc
13715 \end_layout
13716
13717 \begin_layout Standard
13718 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13719 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13720 ましょう.
13721 \end_layout
13722
13723 \begin_layout Description
13724 \begin_inset Flex Code
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 AllowedPlacement
13729 \end_layout
13730
13731 \end_inset
13732
13733  [
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 文字列
13739 \end_layout
13740
13741 \end_inset
13742
13743 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13744 \emph on
13745 h
13746 \emph default
13747  (
13748 \begin_inset Quotes eld
13749 \end_inset
13750
13751 here if possible:可能ならば現在位置に
13752 \begin_inset Quotes erd
13753 \end_inset
13754
13755 ), 
13756 \emph on
13757 t
13758 \emph default
13759  (
13760 \begin_inset Quotes eld
13761 \end_inset
13762
13763 top of page:ページ上部
13764 \begin_inset Quotes erd
13765 \end_inset
13766
13767 )・
13768 \emph on
13769 b
13770 \emph default
13771  (
13772 \begin_inset Quotes eld
13773 \end_inset
13774
13775 bottom of page:ページ下部
13776 \begin_inset Quotes erd
13777 \end_inset
13778
13779 )・
13780 \emph on
13781 p
13782 \emph default
13783  (
13784 \begin_inset Quotes eld
13785 \end_inset
13786
13787 page of floats:フロートを独立したページに
13788 \begin_inset Quotes erd
13789 \end_inset
13790
13791 )・
13792 \emph on
13793 H
13794 \emph default
13795  (
13796 \begin_inset Quotes eld
13797 \end_inset
13798
13799 here definitely:何としても現在位置に置く
13800 \begin_inset Quotes erd
13801 \end_inset
13802
13803 )・
13804 \emph on
13805 !
13806 \emph default
13807  (
13808 \begin_inset Quotes eld
13809 \end_inset
13810
13811 ignore LaTeX rules:LaTeXの規則を無視する
13812 \begin_inset Quotes erd
13813 \end_inset
13814
13815 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13816 \emph on
13817 none
13818 \emph default
13819 を与えてください.
13820 \end_layout
13821
13822 \begin_layout Description
13823 \begin_inset Flex Code
13824 status collapsed
13825
13826 \begin_layout Plain Layout
13827 AllowsSideways
13828 \end_layout
13829
13830 \end_inset
13831
13832  [
13833 \begin_inset Flex Code
13834 status collapsed
13835
13836 \begin_layout Plain Layout
13837 0
13838 \end_layout
13839
13840 \end_inset
13841
13842 ,
13843 \begin_inset space \thinspace{}
13844 \end_inset
13845
13846
13847 \emph on
13848
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853 1
13854 \end_layout
13855
13856 \end_inset
13857
13858
13859 \emph default
13860 ] フロートを,\SpecialChar LaTeX
13861 パッケージの
13862 \family typewriter
13863 rotfloat
13864 \family default
13865  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13866 \begin_inset Flex Code
13867 status collapsed
13868
13869 \begin_layout Plain Layout
13870 0
13871 \end_layout
13872
13873 \end_inset
13874
13875 を指定してください.
13876 \end_layout
13877
13878 \begin_layout Description
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 AllowsWide
13884 \end_layout
13885
13886 \end_inset
13887
13888  [
13889 \begin_inset Flex Code
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 0
13894 \end_layout
13895
13896 \end_inset
13897
13898 ,
13899 \begin_inset space \thinspace{}
13900 \end_inset
13901
13902
13903 \emph on
13904
13905 \begin_inset Flex Code
13906 status collapsed
13907
13908 \begin_layout Plain Layout
13909 1
13910 \end_layout
13911
13912 \end_inset
13913
13914
13915 \emph default
13916 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 0
13922 \end_layout
13923
13924 \end_inset
13925
13926 を指定してください.
13927 \end_layout
13928
13929 \begin_layout Description
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 Extension
13935 \end_layout
13936
13937 \end_inset
13938
13939  [
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 文字列
13945 \end_layout
13946
13947 \end_inset
13948
13949 =
13950 \begin_inset Quotes erd
13951 \end_inset
13952
13953
13954 \begin_inset Quotes erd
13955 \end_inset
13956
13957 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
13958 がキャプションを書き込むファイルです.
13959 \end_layout
13960
13961 \begin_layout Description
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 GuiName
13967 \end_layout
13968
13969 \end_inset
13970
13971  [
13972 \begin_inset Flex Code
13973 status collapsed
13974
13975 \begin_layout Plain Layout
13976 文字列
13977 \end_layout
13978
13979 \end_inset
13980
13981 =
13982 \begin_inset Quotes erd
13983 \end_inset
13984
13985
13986 \begin_inset Quotes erd
13987 \end_inset
13988
13989 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
13990 \end_layout
13991
13992 \begin_layout Description
13993 \begin_inset Flex Code
13994 status collapsed
13995
13996 \begin_layout Plain Layout
13997 HTML*
13998 \end_layout
13999
14000 \end_inset
14001
14002  これらは,XHTML出力で使用されます.
14003 \begin_inset CommandInset ref
14004 LatexCommand ref
14005 reference "sec:XHTML出力のタグ"
14006
14007 \end_inset
14008
14009 をご覧ください.
14010 \end_layout
14011
14012 \begin_layout Description
14013 \begin_inset Flex Code
14014 status collapsed
14015
14016 \begin_layout Plain Layout
14017 IsPredefined
14018 \end_layout
14019
14020 \end_inset
14021
14022  [
14023 \begin_inset Flex Code
14024 status collapsed
14025
14026 \begin_layout Plain Layout
14027
14028 \emph on
14029 0
14030 \end_layout
14031
14032 \end_inset
14033
14034 ,
14035 \begin_inset space \thinspace{}
14036 \end_inset
14037
14038
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 1
14044 \end_layout
14045
14046 \end_inset
14047
14048 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14049 パッケージ
14050 \begin_inset Flex Code
14051 status collapsed
14052
14053 \begin_layout Plain Layout
14054 float
14055 \end_layout
14056
14057 \end_inset
14058
14059 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064 0
14065 \end_layout
14066
14067 \end_inset
14068
14069 で,この場合
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 float
14075 \end_layout
14076
14077 \end_inset
14078
14079 を使用します.\SpecialChar LaTeX
14080 ドキュメントクラス中に既に定義されているときには,
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 0
14086 \end_layout
14087
14088 \end_inset
14089
14090 に設定しなくてはなりません.
14091 \end_layout
14092
14093 \begin_layout Description
14094 \begin_inset Flex Code
14095 status collapsed
14096
14097 \begin_layout Plain Layout
14098 ListCommand
14099 \end_layout
14100
14101 \end_inset
14102
14103  [
14104 \begin_inset Flex Code
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 文字列
14109 \end_layout
14110
14111 \end_inset
14112
14113 =
14114 \begin_inset Quotes erd
14115 \end_inset
14116
14117
14118 \begin_inset Quotes erd
14119 \end_inset
14120
14121 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14122 \backslash
14123 」は書きません.
14124 \begin_inset Flex Code
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 NeedsFloatPkg
14129 \end_layout
14130
14131 \end_inset
14132
14133 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14134 \emph on
14135 必ず
14136 \emph default
14137 指定しなくてはなりません.
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 NeedsFloatPkg
14143 \end_layout
14144
14145 \end_inset
14146
14147 が真の時は,標準的な方法が存在するので,これは無視されます.
14148 \end_layout
14149
14150 \begin_layout Description
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 ListName
14156 \end_layout
14157
14158 \end_inset
14159
14160  [
14161 \begin_inset Flex Code
14162 status collapsed
14163
14164 \begin_layout Plain Layout
14165 文字列
14166 \end_layout
14167
14168 \end_inset
14169
14170 =
14171 \begin_inset Quotes erd
14172 \end_inset
14173
14174
14175 \begin_inset Quotes erd
14176 \end_inset
14177
14178 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14179 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14180 に渡さ
14181 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14182 \end_layout
14183
14184 \begin_layout Description
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 NumberWithin
14190 \end_layout
14191
14192 \end_inset
14193
14194  [
14195 \begin_inset Flex Code
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199 文字列
14200 \end_layout
14201
14202 \end_inset
14203
14204 =
14205 \begin_inset Quotes erd
14206 \end_inset
14207
14208
14209 \begin_inset Quotes erd
14210 \end_inset
14211
14212 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 NumberWithin
14218 \end_layout
14219
14220 \end_inset
14221
14222 が「
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 chapter
14228 \end_layout
14229
14230 \end_inset
14231
14232 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14233 \end_layout
14234
14235 \begin_layout Description
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 Placement
14241 \end_layout
14242
14243 \end_inset
14244
14245  [
14246 \begin_inset Flex Code
14247 status collapsed
14248
14249 \begin_layout Plain Layout
14250 文字列
14251 \end_layout
14252
14253 \end_inset
14254
14255 =
14256 \begin_inset Quotes erd
14257 \end_inset
14258
14259
14260 \begin_inset Quotes erd
14261 \end_inset
14262
14263 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14264 表記に従い,
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 t
14270 \end_layout
14271
14272 \end_inset
14273
14274 ならば上部(top),
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 b
14280 \end_layout
14281
14282 \end_inset
14283
14284 ならば下部(bottom),
14285 \begin_inset Flex Code
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 p
14290 \end_layout
14291
14292 \end_inset
14293
14294 ならばページ(page),
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 h
14300 \end_layout
14301
14302 \end_inset
14303
14304 ならばここ(here)を表します
14305 \begin_inset Foot
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 \SpecialChar LaTeX
14310 同様,文字列中でのこれらの文字の順序は関係ありません.
14311 \end_layout
14312
14313 \end_inset
14314
14315 .これらの他に新しい型
14316 \begin_inset Flex Code
14317 status collapsed
14318
14319 \begin_layout Plain Layout
14320 H
14321 \end_layout
14322
14323 \end_inset
14324
14325 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14326 \begin_inset Flex Code
14327 status collapsed
14328
14329 \begin_layout Plain Layout
14330 H
14331 \end_layout
14332
14333 \end_inset
14334
14335 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14336 に「
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 tbp
14342 \end_layout
14343
14344 \end_inset
14345
14346 」を指定してください.
14347 \end_layout
14348
14349 \begin_layout Description
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 RefPrefix
14355 \end_layout
14356
14357 \end_inset
14358
14359  [
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 文字列
14365 \end_layout
14366
14367 \end_inset
14368
14369 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 RefPrefix
14375 \end_layout
14376
14377 \end_inset
14378
14379 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14380 \end_layout
14381
14382 \begin_layout Description
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 Style
14388 \end_layout
14389
14390 \end_inset
14391
14392  [
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 文字列
14398 \end_layout
14399
14400 \end_inset
14401
14402 =
14403 \begin_inset Quotes erd
14404 \end_inset
14405
14406
14407 \begin_inset Quotes erd
14408 \end_inset
14409
14410
14411 \begin_inset Flex Code
14412 status collapsed
14413
14414 \begin_layout Plain Layout
14415
14416 \backslash
14417 newfloat
14418 \end_layout
14419
14420 \end_inset
14421
14422 を使用してフロートを定義する際に使用される様式.
14423 \end_layout
14424
14425 \begin_layout Description
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430 Type
14431 \end_layout
14432
14433 \end_inset
14434
14435  [
14436 \begin_inset Flex Code
14437 status collapsed
14438
14439 \begin_layout Plain Layout
14440 文字列
14441 \end_layout
14442
14443 \end_inset
14444
14445 =
14446 \begin_inset Quotes erd
14447 \end_inset
14448
14449
14450 \begin_inset Quotes erd
14451 \end_inset
14452
14453 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458
14459 \backslash
14460 newfloat
14461 \end_layout
14462
14463 \end_inset
14464
14465 の後で,
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470
14471 \backslash
14472 begin{program}
14473 \end_layout
14474
14475 \end_inset
14476
14477
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482
14483 \backslash
14484 end{algorithm*}
14485 \end_layout
14486
14487 \end_inset
14488
14489 といったコマンドが利用できます.
14490 \end_layout
14491
14492 \begin_layout Description
14493 \begin_inset Flex Code
14494 status collapsed
14495
14496 \begin_layout Plain Layout
14497 UsesFloatPkg
14498 \end_layout
14499
14500 \end_inset
14501
14502  [
14503 \begin_inset Flex Code
14504 status collapsed
14505
14506 \begin_layout Plain Layout
14507 0
14508 \end_layout
14509
14510 \end_inset
14511
14512 ,
14513 \begin_inset space \thinspace{}
14514 \end_inset
14515
14516
14517 \begin_inset Flex Code
14518 status collapsed
14519
14520 \begin_layout Plain Layout
14521
14522 \emph on
14523 1
14524 \end_layout
14525
14526 \end_inset
14527
14528 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14529 パッケージ
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 float
14535 \end_layout
14536
14537 \end_inset
14538
14539 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14540 自身がオン・ザ・フライで定義しているのかを示します.
14541 \end_layout
14542
14543 \begin_layout Standard
14544 \begin_inset Flex Code
14545 status collapsed
14546
14547 \begin_layout Plain Layout
14548
14549 \emph on
14550 type
14551 \end_layout
14552
14553 \end_inset
14554
14555 型のフロートを定義すると,自動的に
14556 \emph on
14557 対応する
14558 \emph default
14559
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564
14565 \emph on
14566 type
14567 \end_layout
14568
14569 \end_inset
14570
14571 名カウンタが定義されます.
14572 \end_layout
14573
14574 \begin_layout Subsection
14575 自由差込枠と差込枠レイアウト
14576 \begin_inset CommandInset label
14577 LatexCommand label
14578 name "subsec:任意設定差込枠"
14579
14580 \end_inset
14581
14582
14583 \end_layout
14584
14585 \begin_layout Standard
14586 自由差込枠には次の3種類があります.
14587 \end_layout
14588
14589 \begin_layout Itemize
14590 文字様式(
14591 \begin_inset Flex Code
14592 status collapsed
14593
14594 \begin_layout Plain Layout
14595 CharStyle
14596 \end_layout
14597
14598 \end_inset
14599
14600 ).これは,
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605
14606 \backslash
14607 noun
14608 \end_layout
14609
14610 \end_inset
14611
14612
14613 \begin_inset Flex Code
14614 status collapsed
14615
14616 \begin_layout Plain Layout
14617
14618 \backslash
14619 code
14620 \end_layout
14621
14622 \end_inset
14623
14624 などの\SpecialChar LaTeX
14625 コマンドに対応した意味論的マークアップを定義するものです.
14626 \end_layout
14627
14628 \begin_layout Itemize
14629 ユーザ設定(
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 Custom
14635 \end_layout
14636
14637 \end_inset
14638
14639 ).これは,\SpecialChar TeX
14640 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 endnote
14646 \end_layout
14647
14648 \end_inset
14649
14650 モジュール中で定義されています.
14651 \end_layout
14652
14653 \begin_layout Itemize
14654 XML要素(
14655 \begin_inset Flex Code
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 Element
14660 \end_layout
14661
14662 \end_inset
14663
14664 ).DocBookクラスで使用するものです.
14665 \end_layout
14666
14667 \begin_layout Standard
14668 自由差込枠は,以下で説明する
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 InsetLayout
14674 \end_layout
14675
14676 \end_inset
14677
14678 タグを使用して定義されます.
14679 \end_layout
14680
14681 \begin_layout Standard
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 InsetLayout
14687 \end_layout
14688
14689 \end_inset
14690
14691 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 InsetLayout
14697 \end_layout
14698
14699 \end_inset
14700
14701 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14702 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14703 ー定義するのに使用されます.
14704 \end_layout
14705
14706 \begin_layout Standard
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711 InsetLayout
14712 \end_layout
14713
14714 \end_inset
14715
14716 定義は以下の形の行では始まらなくてはなりません.
14717 \end_layout
14718
14719 \begin_layout LyX-Code
14720 InsetLayout <型>
14721 \end_layout
14722
14723 \begin_layout Standard
14724 ここで
14725 \begin_inset Flex Code
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729 <型>
14730 \end_layout
14731
14732 \end_inset
14733
14734 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14735 \end_layout
14736
14737 \begin_layout Enumerate
14738 既存の差込枠のレイアウトを変更する場合.この場合,
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 <型>
14744 \end_layout
14745
14746 \end_inset
14747
14748 は以下のいずれかになります:
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 Algorithm
14754 \end_layout
14755
14756 \end_inset
14757
14758
14759 \begin_inset Flex Code
14760 status collapsed
14761
14762 \begin_layout Plain Layout
14763 Branch
14764 \end_layout
14765
14766 \end_inset
14767
14768
14769 \begin_inset Flex Code
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773 Box
14774 \end_layout
14775
14776 \end_inset
14777
14778
14779 \begin_inset Flex Code
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783 Box:shaded
14784 \end_layout
14785
14786 \end_inset
14787
14788
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 Caption:Standard
14794 \end_layout
14795
14796 \end_inset
14797
14798
14799 \begin_inset Flex Code
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803 ERT
14804 \end_layout
14805
14806 \end_inset
14807
14808
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 Figure
14814 \end_layout
14815
14816 \end_inset
14817
14818
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 Foot
14824 \end_layout
14825
14826 \end_inset
14827
14828
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 Index
14834 \end_layout
14835
14836 \end_inset
14837
14838
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 Info
14844 \end_layout
14845
14846 \end_inset
14847
14848
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 Info:menu
14854 \end_layout
14855
14856 \end_inset
14857
14858
14859 \begin_inset Flex Code
14860 status collapsed
14861
14862 \begin_layout Plain Layout
14863 Info:shortcut
14864 \end_layout
14865
14866 \end_inset
14867
14868
14869 \begin_inset Flex Code
14870 status collapsed
14871
14872 \begin_layout Plain Layout
14873 Info:shortcuts
14874 \end_layout
14875
14876 \end_inset
14877
14878
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 Listings
14884 \end_layout
14885
14886 \end_inset
14887
14888
14889 \begin_inset Flex Code
14890 status collapsed
14891
14892 \begin_layout Plain Layout
14893 Marginal
14894 \end_layout
14895
14896 \end_inset
14897
14898
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903 Note:Comment
14904 \end_layout
14905
14906 \end_inset
14907
14908
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 Note:Note
14914 \end_layout
14915
14916 \end_inset
14917
14918
14919 \begin_inset Flex Code
14920 status collapsed
14921
14922 \begin_layout Plain Layout
14923 Note:GreyedOut
14924 \end_layout
14925
14926 \end_inset
14927
14928
14929 \begin_inset Flex Code
14930 status collapsed
14931
14932 \begin_layout Plain Layout
14933 Table
14934 \end_layout
14935
14936 \end_inset
14937
14938
14939 \begin_inset Flex Code
14940 status collapsed
14941
14942 \begin_layout Plain Layout
14943 URL
14944 \end_layout
14945
14946 \end_inset
14947
14948
14949 \end_layout
14950
14951 \begin_layout Enumerate
14952 自由差込枠のレイアウトを定義する場合.この場合,
14953 \begin_inset Flex Code
14954 status collapsed
14955
14956 \begin_layout Plain Layout
14957 <型>
14958 \end_layout
14959
14960 \end_inset
14961
14962
14963 \begin_inset Flex Code
14964 status collapsed
14965
14966 \begin_layout Plain Layout
14967 Flex:<名称>
14968 \end_layout
14969
14970 \end_inset
14971
14972 の形でなくてはなりません.ここで,
14973 \begin_inset Flex Code
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 名称
14978 \end_layout
14979
14980 \end_inset
14981
14982 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
14983 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988 LyXType
14989 \end_layout
14990
14991 \end_inset
14992
14993 項目が含まれていなくてはならないことに注意してください.
14994 \end_layout
14995
14996 \begin_layout Enumerate
14997 ユーザー定義派生枝を定義する場合.この場合,
14998 \begin_inset Flex Code
14999 status collapsed
15000
15001 \begin_layout Plain Layout
15002 <型>
15003 \end_layout
15004
15005 \end_inset
15006
15007 は「
15008 \begin_inset Flex Code
15009 status collapsed
15010
15011 \begin_layout Plain Layout
15012 Branch:<名称>
15013 \end_layout
15014
15015 \end_inset
15016
15017 」の形でなくてはなりません.ここで,
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 名称
15023 \end_layout
15024
15025 \end_inset
15026
15027 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15028 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15029 がくるむことができるようにすることです.
15030 \end_layout
15031
15032 \begin_layout Enumerate
15033 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 <型>
15039 \end_layout
15040
15041 \end_inset
15042
15043 は「
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 Caption:<名称>
15049 \end_layout
15050
15051 \end_inset
15052
15053 」の形でなくてはなりません.ここで,
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 名称
15059 \end_layout
15060
15061 \end_inset
15062
15063 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15064 \begin_inset Flex Code
15065 status collapsed
15066
15067 \begin_layout Plain Layout
15068 Caption:Standard
15069 \end_layout
15070
15071 \end_inset
15072
15073 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15074 \begin_inset Flex Code
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078 Caption:Above
15079 \end_layout
15080
15081 \end_inset
15082
15083
15084 \begin_inset Flex Code
15085 status collapsed
15086
15087 \begin_layout Plain Layout
15088 Caption:Below
15089 \end_layout
15090
15091 \end_inset
15092
15093 ),
15094 \family sans
15095 多言語キャプション
15096 \family default
15097 モジュール(
15098 \begin_inset Flex Code
15099 status collapsed
15100
15101 \begin_layout Plain Layout
15102 Caption:Bicaption
15103 \end_layout
15104
15105 \end_inset
15106
15107 )をご覧ください.
15108 \end_layout
15109
15110 \begin_layout Standard
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 InsetLayout
15116 \end_layout
15117
15118 \end_inset
15119
15120 定義には以下の項目を入れることができます.
15121 \end_layout
15122
15123 \begin_layout Description
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128 Argument
15129 \end_layout
15130
15131 \end_inset
15132
15133  [
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138 整数
15139 \end_layout
15140
15141 \end_inset
15142
15143 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 EndArgument
15149 \end_layout
15150
15151 \end_inset
15152
15153 で閉じなくてはなりません.詳細は
15154 \begin_inset CommandInset ref
15155 LatexCommand ref
15156 reference "subsec:段落様式"
15157
15158 \end_inset
15159
15160 参照.
15161 \end_layout
15162
15163 \begin_layout Description
15164 \begin_inset Flex Code
15165 status collapsed
15166
15167 \begin_layout Plain Layout
15168 BabelPreamble
15169 \end_layout
15170
15171 \end_inset
15172
15173  言語コマンドを変更するプリアンブル.
15174 \begin_inset CommandInset ref
15175 LatexCommand ref
15176 reference "subsec:段落様式の国際化"
15177
15178 \end_inset
15179
15180 参照.
15181 \end_layout
15182
15183 \begin_layout Description
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 BgColor
15189 \end_layout
15190
15191 \end_inset
15192
15193  [
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 <名称>
15199 \end_layout
15200
15201 \end_inset
15202
15203 ] 差込枠の背景色.使用できる色名一覧は
15204 \begin_inset CommandInset ref
15205 LatexCommand ref
15206 reference "chap:色名"
15207
15208 \end_inset
15209
15210 参照.
15211 \end_layout
15212
15213 \begin_layout Description
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 ContentAsLabel
15219 \end_layout
15220
15221 \end_inset
15222
15223  [
15224 \begin_inset Flex Code
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228
15229 \emph on
15230 0
15231 \end_layout
15232
15233 \end_inset
15234
15235 ,
15236 \begin_inset space \thinspace{}
15237 \end_inset
15238
15239
15240 \begin_inset Flex Code
15241 status collapsed
15242
15243 \begin_layout Plain Layout
15244 1
15245 \end_layout
15246
15247 \end_inset
15248
15249 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15250 \end_layout
15251
15252 \begin_layout Description
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 CopyStyle
15258 \end_layout
15259
15260 \end_inset
15261
15262  [<型>] 段落様式と同様です.
15263 \begin_inset CommandInset ref
15264 LatexCommand ref
15265 reference "subsec:段落様式"
15266
15267 \end_inset
15268
15269 参照のこと.完全な型を指定する必要があることに注意してください.例:
15270 \begin_inset Flex Code
15271 status collapsed
15272
15273 \begin_layout Plain Layout
15274 CopyStyle Flex:<名称>
15275 \end_layout
15276
15277 \end_inset
15278
15279
15280 \end_layout
15281
15282 \begin_layout Description
15283 \begin_inset Flex Code
15284 status collapsed
15285
15286 \begin_layout Plain Layout
15287 CustomPars
15288 \end_layout
15289
15290 \end_inset
15291
15292  [
15293 \begin_inset Flex Code
15294 status collapsed
15295
15296 \begin_layout Plain Layout
15297
15298 \emph on
15299 0
15300 \end_layout
15301
15302 \end_inset
15303
15304 ,
15305 \begin_inset space \thinspace{}
15306 \end_inset
15307
15308
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 1
15314 \end_layout
15315
15316 \end_inset
15317
15318 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15319 \end_layout
15320
15321 \begin_layout Description
15322 \begin_inset Flex Code
15323 status collapsed
15324
15325 \begin_layout Plain Layout
15326 Decoration
15327 \end_layout
15328
15329 \end_inset
15330
15331  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15332 \begin_inset Flex Code
15333 status collapsed
15334
15335 \begin_layout Plain Layout
15336 Classic
15337 \end_layout
15338
15339 \end_inset
15340
15341
15342 \begin_inset Flex Code
15343 status collapsed
15344
15345 \begin_layout Plain Layout
15346 Minimalistic
15347 \end_layout
15348
15349 \end_inset
15350
15351
15352 \begin_inset Flex Code
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356 Conglomerate
15357 \end_layout
15358
15359 \end_inset
15360
15361 のいずれかを指定することができます.脚註は通常
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 Classic
15367 \end_layout
15368
15369 \end_inset
15370
15371 を使用し,\SpecialChar TeX
15372 コード差込枠は通常
15373 \begin_inset Flex Code
15374 status collapsed
15375
15376 \begin_layout Plain Layout
15377 Minimalistic
15378 \end_layout
15379
15380 \end_inset
15381
15382 ,文字様式は
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 Conglomerate
15388 \end_layout
15389
15390 \end_inset
15391
15392 を使用します.
15393 \end_layout
15394
15395 \begin_layout Description
15396 \begin_inset Flex Code
15397 status collapsed
15398
15399 \begin_layout Plain Layout
15400 Display
15401 \end_layout
15402
15403 \end_inset
15404
15405  [
15406 \begin_inset Flex Code
15407 status collapsed
15408
15409 \begin_layout Plain Layout
15410 0
15411 \end_layout
15412
15413 \end_inset
15414
15415 ,
15416 \begin_inset space \thinspace{}
15417 \end_inset
15418
15419
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424
15425 \emph on
15426 1
15427 \end_layout
15428
15429 \end_inset
15430
15431
15432 \begin_inset Flex Code
15433 status collapsed
15434
15435 \begin_layout Plain Layout
15436 LatexType
15437 \end_layout
15438
15439 \end_inset
15440
15441
15442 \begin_inset Flex Code
15443 status collapsed
15444
15445 \begin_layout Plain Layout
15446 Environment
15447 \end_layout
15448
15449 \end_inset
15450
15451 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15452 環境は,
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457
15458 \backslash
15459 begin{LatexName}
15460 \end_layout
15461
15462 \end_inset
15463
15464 タグと
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469
15470 \backslash
15471 end{LatexName}
15472 \end_layout
15473
15474 \end_inset
15475
15476 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15477 \end_layout
15478
15479 \begin_layout Description
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 End
15485 \end_layout
15486
15487 \end_inset
15488
15489  
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 InsetLayout
15495 \end_layout
15496
15497 \end_inset
15498
15499 宣言を閉じるのに必要です.
15500 \end_layout
15501
15502 \begin_layout Description
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 Font
15508 \end_layout
15509
15510 \end_inset
15511
15512  本文本体とラベル
15513 \emph on
15514 両方に
15515 \emph default
15516 使用されるフォントです.
15517 \begin_inset CommandInset ref
15518 LatexCommand ref
15519 reference "subsec:フォント指定"
15520
15521 \end_inset
15522
15523 を参照.このフォントを定義すると自動的に
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 LabelFont
15529 \end_layout
15530
15531 \end_inset
15532
15533 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 LabelFont
15539 \end_layout
15540
15541 \end_inset
15542
15543 を定義しなくてはならないことに注意してください.
15544 \end_layout
15545
15546 \begin_layout Description
15547 \begin_inset Flex Code
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 FixedWidthPreambleEncoding
15552 \end_layout
15553
15554 \end_inset
15555
15556  [
15557 \begin_inset Flex Code
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561
15562 \emph on
15563 0
15564 \end_layout
15565
15566 \end_inset
15567
15568 ,
15569 \begin_inset space \thinspace{}
15570 \end_inset
15571
15572
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 1
15578 \end_layout
15579
15580 \end_inset
15581
15582 ] このレイアウトによって生成される
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587 BabelPreamble
15588 \end_layout
15589
15590 \end_inset
15591
15592 および
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597 LangPreamble
15598 \end_layout
15599
15600 \end_inset
15601
15602 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15603 \family typewriter
15604 listings
15605 \family default
15606 のように,
15607 \family sans
15608 utf8
15609 \family default
15610 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15611 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15612 やLua\SpecialChar TeX
15613 のようなUnicodeを完全に解する\SpecialChar LaTeX
15614 バックエンドを使用してい
15615 る場合には,無視されます.
15616 \end_layout
15617
15618 \begin_layout Description
15619 \begin_inset Flex Code
15620 status collapsed
15621
15622 \begin_layout Plain Layout
15623 ForceLocalFontSwitch
15624 \end_layout
15625
15626 \end_inset
15627
15628  [
15629 \begin_inset Flex Code
15630 status collapsed
15631
15632 \begin_layout Plain Layout
15633
15634 \emph on
15635 0
15636 \end_layout
15637
15638 \end_inset
15639
15640 ,
15641 \begin_inset space \thinspace{}
15642 \end_inset
15643
15644
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 1
15650 \end_layout
15651
15652 \end_inset
15653
15654 ] babel使用時に,常にローカルフォント切替(
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659
15660 \backslash
15661 foreignlanguage
15662 \end_layout
15663
15664 \end_inset
15665
15666 )を使い,グローバル切替(
15667 \begin_inset Flex Code
15668 status collapsed
15669
15670 \begin_layout Plain Layout
15671
15672 \backslash
15673 selectlanguage
15674 \end_layout
15675
15676 \end_inset
15677
15678 など)は使わない.
15679 \end_layout
15680
15681 \begin_layout Description
15682 \begin_inset Flex Code
15683 status collapsed
15684
15685 \begin_layout Plain Layout
15686 ForceLTR
15687 \end_layout
15688
15689 \end_inset
15690
15691  [
15692 \begin_inset Flex Code
15693 status collapsed
15694
15695 \begin_layout Plain Layout
15696
15697 \emph on
15698 0
15699 \end_layout
15700
15701 \end_inset
15702
15703 ,
15704 \begin_inset space \thinspace{}
15705 \end_inset
15706
15707
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 1
15713 \end_layout
15714
15715 \end_inset
15716
15717 ] たとえば\SpecialChar TeX
15718 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15719 \end_layout
15720
15721 \begin_layout Description
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 ForceOwnlines
15727 \end_layout
15728
15729 \end_inset
15730
15731  [
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736
15737 \emph on
15738 0
15739 \end_layout
15740
15741 \end_inset
15742
15743 ,
15744 \begin_inset space \thinspace{}
15745 \end_inset
15746
15747
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 1
15753 \end_layout
15754
15755 \end_inset
15756
15757 ] \SpecialChar LaTeX
15758 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15759 \end_layout
15760
15761 \begin_layout Description
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766 ForcePlain
15767 \end_layout
15768
15769 \end_inset
15770
15771  [
15772 \begin_inset Flex Code
15773 status collapsed
15774
15775 \begin_layout Plain Layout
15776
15777 \emph on
15778 0
15779 \end_layout
15780
15781 \end_inset
15782
15783 ,
15784 \begin_inset space \thinspace{}
15785 \end_inset
15786
15787
15788 \begin_inset Flex Code
15789 status collapsed
15790
15791 \begin_layout Plain Layout
15792 1
15793 \end_layout
15794
15795 \end_inset
15796
15797 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15798 \end_layout
15799
15800 \begin_layout Description
15801 \begin_inset Flex Code
15802 status collapsed
15803
15804 \begin_layout Plain Layout
15805 FreeSpacing
15806 \end_layout
15807
15808 \end_inset
15809
15810  [
15811 \emph on
15812
15813 \begin_inset Flex Code
15814 status collapsed
15815
15816 \begin_layout Plain Layout
15817 0
15818 \end_layout
15819
15820 \end_inset
15821
15822
15823 \emph default
15824 ,
15825 \begin_inset space \thinspace{}
15826 \end_inset
15827
15828
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 1
15834 \end_layout
15835
15836 \end_inset
15837
15838 ] 段落様式と同様.
15839 \begin_inset CommandInset ref
15840 LatexCommand ref
15841 reference "subsec:段落様式"
15842
15843 \end_inset
15844
15845 参照.
15846 \end_layout
15847
15848 \begin_layout Description
15849 \begin_inset Flex Code
15850 status collapsed
15851
15852 \begin_layout Plain Layout
15853 HTML*
15854 \end_layout
15855
15856 \end_inset
15857
15858  これらは,XHTML出力で使用されます.
15859 \begin_inset CommandInset ref
15860 LatexCommand ref
15861 reference "sec:XHTML出力のタグ"
15862
15863 \end_inset
15864
15865 をご覧ください.
15866 \end_layout
15867
15868 \begin_layout Description
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 InToc
15874 \end_layout
15875
15876 \end_inset
15877
15878  [
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883
15884 \emph on
15885 0
15886 \end_layout
15887
15888 \end_inset
15889
15890 ,
15891 \begin_inset space \thinspace{}
15892 \end_inset
15893
15894
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899 1
15900 \end_layout
15901
15902 \end_inset
15903
15904 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15905 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15906 \end_layout
15907
15908 \begin_layout Description
15909 \begin_inset Flex Code
15910 status collapsed
15911
15912 \begin_layout Plain Layout
15913 KeepEmpty
15914 \end_layout
15915
15916 \end_inset
15917
15918  [
15919 \emph on
15920
15921 \begin_inset Flex Code
15922 status collapsed
15923
15924 \begin_layout Plain Layout
15925 0
15926 \end_layout
15927
15928 \end_inset
15929
15930
15931 \emph default
15932 ,
15933 \begin_inset space \thinspace{}
15934 \end_inset
15935
15936
15937 \begin_inset Flex Code
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941 1
15942 \end_layout
15943
15944 \end_inset
15945
15946 ] 段落様式と同様.
15947 \begin_inset CommandInset ref
15948 LatexCommand ref
15949 reference "subsec:段落様式"
15950
15951 \end_inset
15952
15953 参照.
15954 \end_layout
15955
15956 \begin_layout Description
15957 \begin_inset Flex Code
15958 status collapsed
15959
15960 \begin_layout Plain Layout
15961 LabelFont
15962 \end_layout
15963
15964 \end_inset
15965
15966  ラベルに使用されるフォント.第
15967 \begin_inset CommandInset ref
15968 LatexCommand ref
15969 reference "subsec:フォント指定"
15970
15971 \end_inset
15972
15973 節を参照.非効率を回避するため,この定義は
15974 \begin_inset Flex Code
15975 status collapsed
15976
15977 \begin_layout Plain Layout
15978 Font
15979 \end_layout
15980
15981 \end_inset
15982
15983 の前には決して現れてはなりません.
15984 \end_layout
15985
15986 \begin_layout Description
15987 \begin_inset Flex Code
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991 LabelString
15992 \end_layout
15993
15994 \end_inset
15995
15996  [
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 文字列
16002 \end_layout
16003
16004 \end_inset
16005
16006 =
16007 \begin_inset Quotes erd
16008 \end_inset
16009
16010
16011 \begin_inset Quotes erd
16012 \end_inset
16013
16014 ]
16015 \lang english
16016  
16017 \lang japanese
16018 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16019 コードや派生枝),ラベルが動的に変更されます.
16020 \end_layout
16021
16022 \begin_layout Description
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 LangPreamble
16028 \end_layout
16029
16030 \end_inset
16031
16032  言語依存のプリアンブル.
16033 \begin_inset CommandInset ref
16034 LatexCommand ref
16035 reference "subsec:段落様式の国際化"
16036
16037 \end_inset
16038
16039 参照.
16040 \end_layout
16041
16042 \begin_layout Description
16043 \begin_inset Flex Code
16044 status collapsed
16045
16046 \begin_layout Plain Layout
16047 LatexName
16048 \end_layout
16049
16050 \end_inset
16051
16052  [
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 <名称>
16058 \end_layout
16059
16060 \end_inset
16061
16062 ] 対応する\SpecialChar LaTeX
16063 関連物の名称.環境名ないしはコマンド名.
16064 \end_layout
16065
16066 \begin_layout Description
16067 \begin_inset Flex Code
16068 status collapsed
16069
16070 \begin_layout Plain Layout
16071 LatexParam
16072 \end_layout
16073
16074 \end_inset
16075
16076  [
16077 \begin_inset Flex Code
16078 status collapsed
16079
16080 \begin_layout Plain Layout
16081 <パラメータ>
16082 \end_layout
16083
16084 \end_inset
16085
16086 ]
16087 \lang english
16088  
16089 \lang japanese
16090 対応する
16091 \begin_inset Flex Code
16092 status collapsed
16093
16094 \begin_layout Plain Layout
16095 LatexName
16096 \end_layout
16097
16098 \end_inset
16099
16100 関連物の非必須パラメータ.
16101 \begin_inset Flex Code
16102 status collapsed
16103
16104 \begin_layout Plain Layout
16105 []
16106 \end_layout
16107
16108 \end_inset
16109
16110 のような括弧対を含む.このパラメータは\SpecialChar LyX
16111 内部から変更することはできません(変更可能なパラメータには
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 Argument
16117 \end_layout
16118
16119 \end_inset
16120
16121 を使用してください).これは,全ての\SpecialChar LaTeX
16122  
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 Argument
16128 \end_layout
16129
16130 \end_inset
16131
16132 の後にそのままの形で出力されます.
16133 \end_layout
16134
16135 \begin_layout Description
16136 \begin_inset Flex Code
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 LatexType
16141 \end_layout
16142
16143 \end_inset
16144
16145  [
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 Command, Environment, None
16151 \end_layout
16152
16153 \end_inset
16154
16155 ] 様式がどのように\SpecialChar LaTeX
16156 に変換されるべきかを示します
16157 \begin_inset Foot
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 これらのルールはSGMLクラスにも適用されるので,
16162 \begin_inset Flex Code
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166 LatexType
16167 \end_layout
16168
16169 \end_inset
16170
16171 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16172 \end_layout
16173
16174 \end_inset
16175
16176
16177 \begin_inset Separator latexpar
16178 \end_inset
16179
16180
16181 \end_layout
16182
16183 \begin_deeper
16184 \begin_layout Description
16185 \begin_inset Flex Code
16186 status collapsed
16187
16188 \begin_layout Plain Layout
16189 None
16190 \end_layout
16191
16192 \end_inset
16193
16194  は,何も特別なことは意味しません
16195 \end_layout
16196
16197 \begin_layout Description
16198 \begin_inset Flex Code
16199 status collapsed
16200
16201 \begin_layout Plain Layout
16202 Command
16203 \end_layout
16204
16205 \end_inset
16206
16207  は,
16208 \begin_inset Flex Code
16209 status collapsed
16210
16211 \begin_layout Plain Layout
16212
16213 \backslash
16214
16215 \emph on
16216 LatexName
16217 \emph default
16218 {\SpecialChar ldots
16219 }
16220 \end_layout
16221
16222 \end_inset
16223
16224 を意味します
16225 \end_layout
16226
16227 \begin_layout Description
16228 \begin_inset Flex Code
16229 status collapsed
16230
16231 \begin_layout Plain Layout
16232 Environment
16233 \end_layout
16234
16235 \end_inset
16236
16237  は,
16238 \begin_inset Flex Code
16239 status collapsed
16240
16241 \begin_layout Plain Layout
16242
16243 \backslash
16244 begin{
16245 \emph on
16246 LatexName
16247 \emph default
16248 }\SpecialChar ldots
16249
16250 \backslash
16251 end{
16252 \emph on
16253 LatexName
16254 \emph default
16255 }
16256 \end_layout
16257
16258 \end_inset
16259
16260 を意味します
16261 \end_layout
16262
16263 \begin_layout Standard
16264 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16265 出力は,\SpecialChar LaTeX
16266 型に依存して
16267 \end_layout
16268
16269 \begin_layout LyX-Code
16270
16271 \backslash
16272 LatexName[LatexParam]{\SpecialChar ldots
16273 }
16274 \end_layout
16275
16276 \begin_layout Standard
16277 のようになるか,
16278 \end_layout
16279
16280 \begin_layout LyX-Code
16281
16282 \backslash
16283 begin{LatexName}[LatexParam] \SpecialChar ldots
16284  
16285 \backslash
16286 end{LatexName}.
16287 \end_layout
16288
16289 \begin_layout Standard
16290 となります.
16291 \end_layout
16292
16293 \end_deeper
16294 \begin_layout Description
16295 \begin_inset Flex Code
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299 LeftDelim
16300 \end_layout
16301
16302 \end_inset
16303
16304  [
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309 文字列
16310 \end_layout
16311
16312 \end_inset
16313
16314 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 <br/>
16320 \end_layout
16321
16322 \end_inset
16323
16324 で指示できます.
16325 \end_layout
16326
16327 \begin_layout Description
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 LyxType
16333 \end_layout
16334
16335 \end_inset
16336
16337  
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 charstyle
16343 \end_layout
16344
16345 \end_inset
16346
16347
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 custom
16353 \end_layout
16354
16355 \end_inset
16356
16357
16358 \begin_inset Flex Code
16359 status collapsed
16360
16361 \begin_layout Plain Layout
16362 element
16363 \end_layout
16364
16365 \end_inset
16366
16367
16368 \begin_inset Flex Code
16369 status collapsed
16370
16371 \begin_layout Plain Layout
16372 end
16373 \end_layout
16374
16375 \end_inset
16376
16377 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16378 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16379 \begin_inset Flex Code
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383 LyxType
16384 \end_layout
16385
16386 \end_inset
16387
16388
16389 \begin_inset Flex Code
16390 status collapsed
16391
16392 \begin_layout Plain Layout
16393 charstyle
16394 \end_layout
16395
16396 \end_inset
16397
16398 に設定すると,
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 MultiPar
16404 \end_layout
16405
16406 \end_inset
16407
16408 が偽に設定されます
16409 \lang english
16410  and 
16411 \lang japanese
16412
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417 ForcePlain
16418 \end_layout
16419
16420 \end_inset
16421
16422
16423 \lang english
16424  to true
16425 \lang japanese
16426 .文字様式差込枠で
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 MultiPar
16432 \end_layout
16433
16434 \end_inset
16435
16436 を真にしたい時には
16437 \lang english
16438 , or 
16439 \lang japanese
16440
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445 ForcePlain
16446 \end_layout
16447
16448 \end_inset
16449
16450
16451 \lang english
16452  to false
16453 \lang japanese
16454
16455 \begin_inset Flex Code
16456 status collapsed
16457
16458 \begin_layout Plain Layout
16459 LyxType
16460 \end_layout
16461
16462 \end_inset
16463
16464 を設定した
16465 \emph on
16466 後に
16467 \emph default
16468 設定すれば,真に設定することができます.
16469 \end_layout
16470
16471 \begin_layout Description
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476 MultiPar
16477 \end_layout
16478
16479 \end_inset
16480
16481  [
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486
16487 \emph on
16488 0
16489 \end_layout
16490
16491 \end_inset
16492
16493 ,
16494 \begin_inset space \thinspace{}
16495 \end_inset
16496
16497
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502 1
16503 \end_layout
16504
16505 \end_inset
16506
16507 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 CustomPars
16513 \end_layout
16514
16515 \end_inset
16516
16517 を同じ値に設定し,
16518 \begin_inset Flex Code
16519 status collapsed
16520
16521 \begin_layout Plain Layout
16522 ForcePlain
16523 \end_layout
16524
16525 \end_inset
16526
16527 を逆の値に設定します.これらは,
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 MultiPar
16533 \end_layout
16534
16535 \end_inset
16536
16537
16538 \emph on
16539 後に
16540 \emph default
16541 指定されれば,他の値に指定し直すことができます.既定値は真です.
16542 \end_layout
16543
16544 \begin_layout Description
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 NeedProtect
16550 \end_layout
16551
16552 \end_inset
16553
16554  [
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559
16560 \emph on
16561 0
16562 \end_layout
16563
16564 \end_inset
16565
16566 ,
16567 \begin_inset space \thinspace{}
16568 \end_inset
16569
16570
16571 \begin_inset Flex Code
16572 status collapsed
16573
16574 \begin_layout Plain Layout
16575 1
16576 \end_layout
16577
16578 \end_inset
16579
16580 ] 本レイアウト中で脆弱なコマンドを
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585
16586 \backslash
16587 protect
16588 \end_layout
16589
16590 \end_inset
16591
16592 するか否か(註:当該コマンド自身をprotectするかどうかでは
16593 \emph on
16594 ありません
16595 \emph default
16596 ).既定値は偽です.
16597 \end_layout
16598
16599 \begin_layout Description
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 NoInsetLayout
16605 \end_layout
16606
16607 \end_inset
16608
16609  [
16610 \begin_inset Flex Code
16611 status collapsed
16612
16613 \begin_layout Plain Layout
16614 <レイアウト>
16615 \end_layout
16616
16617 \end_inset
16618
16619 ] 既存の
16620 \begin_inset Flex Code
16621 status collapsed
16622
16623 \begin_layout Plain Layout
16624 InsetLayout
16625 \end_layout
16626
16627 \end_inset
16628
16629 を削除します.
16630 \end_layout
16631
16632 \begin_layout Description
16633 \begin_inset Flex Code
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 ObsoletedBy
16638 \end_layout
16639
16640 \end_inset
16641
16642  [
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 <レイアウト>
16648 \end_layout
16649
16650 \end_inset
16651
16652 ] この古い
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 InsetLayout
16658 \end_layout
16659
16660 \end_inset
16661
16662 を引き継いだ
16663 \begin_inset Flex Code
16664 status collapsed
16665
16666 \begin_layout Plain Layout
16667 InsetLayout
16668 \end_layout
16669
16670 \end_inset
16671
16672 の名称.これは,
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 InsetLayout
16678 \end_layout
16679
16680 \end_inset
16681
16682 の改名を,後方互換性を維持しながら行うために用いられます.
16683 \end_layout
16684
16685 \begin_layout Description
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 ParbreakIsNewline
16691 \end_layout
16692
16693 \end_inset
16694
16695  [
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700
16701 \emph on
16702 0
16703 \end_layout
16704
16705 \end_inset
16706
16707 ,
16708 \begin_inset space \thinspace{}
16709 \end_inset
16710
16711
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716 1
16717 \end_layout
16718
16719 \end_inset
16720
16721 ] 段落様式と同様.
16722 \begin_inset CommandInset ref
16723 LatexCommand ref
16724 reference "subsec:段落様式"
16725
16726 \end_inset
16727
16728 参照.
16729 \end_layout
16730
16731 \begin_layout Description
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 PassThru
16737 \end_layout
16738
16739 \end_inset
16740
16741  [
16742 \emph on
16743
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748 0
16749 \end_layout
16750
16751 \end_inset
16752
16753
16754 \emph default
16755 ,
16756 \begin_inset space \thinspace{}
16757 \end_inset
16758
16759
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764 1
16765 \end_layout
16766
16767 \end_inset
16768
16769 ] 段落様式と同様.
16770 \begin_inset CommandInset ref
16771 LatexCommand ref
16772 reference "subsec:段落様式"
16773
16774 \end_inset
16775
16776 参照.
16777 \end_layout
16778
16779 \begin_layout Description
16780 \begin_inset Flex Code
16781 status collapsed
16782
16783 \begin_layout Plain Layout
16784 Preamble
16785 \end_layout
16786
16787 \end_inset
16788
16789  段落様式と同様.
16790 \begin_inset CommandInset ref
16791 LatexCommand ref
16792 reference "subsec:段落様式"
16793
16794 \end_inset
16795
16796 参照.
16797 \end_layout
16798
16799 \begin_layout Description
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 RefPrefix
16805 \end_layout
16806
16807 \end_inset
16808
16809  [
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814 文字列
16815 \end_layout
16816
16817 \end_inset
16818
16819 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16820 \end_layout
16821
16822 \begin_layout Description
16823 \begin_inset Flex Code
16824 status collapsed
16825
16826 \begin_layout Plain Layout
16827 Requires
16828 \end_layout
16829
16830 \end_inset
16831
16832  [
16833 \begin_inset Flex Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 文字列
16838 \end_layout
16839
16840 \end_inset
16841
16842 ] 段落様式と同様.
16843 \begin_inset CommandInset ref
16844 LatexCommand ref
16845 reference "subsec:段落様式"
16846
16847 \end_inset
16848
16849 参照.
16850 \end_layout
16851
16852 \begin_layout Description
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 ResetArgs
16858 \end_layout
16859
16860 \end_inset
16861
16862  [
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867
16868 \emph on
16869 0
16870 \end_layout
16871
16872 \end_inset
16873
16874 ,
16875 \begin_inset space \thinspace{}
16876 \end_inset
16877
16878
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 1
16884 \end_layout
16885
16886 \end_inset
16887
16888 ] (
16889 \begin_inset Flex Code
16890 status collapsed
16891
16892 \begin_layout Plain Layout
16893 Argument
16894 \end_layout
16895
16896 \end_inset
16897
16898 タグで定義された)この様式の\SpecialChar LaTeX
16899 引数をリセットします.これは,様式を
16900 \begin_inset Flex Code
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904 CopyStyle
16905 \end_layout
16906
16907 \end_inset
16908
16909 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16910 \end_layout
16911
16912 \begin_layout Description
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 ResetsFont
16918 \end_layout
16919
16920 \end_inset
16921
16922  [
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 0
16928 \end_layout
16929
16930 \end_inset
16931
16932 ,
16933 \begin_inset space \thinspace{}
16934 \end_inset
16935
16936
16937 \begin_inset Flex Code
16938 status collapsed
16939
16940 \begin_layout Plain Layout
16941
16942 \emph on
16943 1
16944 \end_layout
16945
16946 \end_inset
16947
16948 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16949 \begin_inset Note Note
16950 status open
16951
16952 \begin_layout Plain Layout
16953 This is outdated: The default changed from 1 to 0
16954 \end_layout
16955
16956 \end_inset
16957
16958
16959 \end_layout
16960
16961 \begin_layout Description
16962 \begin_inset Flex Code
16963 status collapsed
16964
16965 \begin_layout Plain Layout
16966 RightDelim
16967 \end_layout
16968
16969 \end_inset
16970
16971  [
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 文字列
16977 \end_layout
16978
16979 \end_inset
16980
16981 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16982 \begin_inset Flex Code
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 <br/>
16987 \end_layout
16988
16989 \end_inset
16990
16991 で指示できます.
16992 \end_layout
16993
16994 \begin_layout Description
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 Spellcheck
17000 \end_layout
17001
17002 \end_inset
17003
17004  [
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 0
17010 \end_layout
17011
17012 \end_inset
17013
17014 ,
17015 \begin_inset space \thinspace{}
17016 \end_inset
17017
17018
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023
17024 \emph on
17025 1
17026 \end_layout
17027
17028 \end_inset
17029
17030 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17031 \end_layout
17032
17033 \begin_layout Subsection
17034 カウンタ
17035 \begin_inset CommandInset label
17036 LatexCommand label
17037 name "subsec:カウンタ"
17038
17039 \end_inset
17040
17041
17042 \end_layout
17043
17044 \begin_layout Standard
17045 テキストクラスには,カウンタ(
17046 \begin_inset Flex MenuItem
17047 status collapsed
17048
17049 \begin_layout Plain Layout
17050 chapter
17051 \end_layout
17052
17053 \end_inset
17054
17055
17056 \begin_inset Flex MenuItem
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 figure
17061 \end_layout
17062
17063 \end_inset
17064
17065 ・\SpecialChar ldots
17066 )を定義することが必要です.標準的なカウンタは
17067 \begin_inset Flex Code
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071 stdcounters.inc
17072 \end_layout
17073
17074 \end_inset
17075
17076 ファイルに含まれているので,作業中のレイアウトファイルに
17077 \end_layout
17078
17079 \begin_layout LyX-Code
17080 Input stdcounters.inc
17081 \end_layout
17082
17083 \begin_layout Standard
17084 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17085 \end_layout
17086
17087 \begin_layout LyX-Code
17088 Counter カウンタ名
17089 \end_layout
17090
17091 \begin_layout Standard
17092 で始まらなくてはなりません.ここで「
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 カウンタ名
17098 \end_layout
17099
17100 \end_inset
17101
17102 」は,実際のカウンタ名で置き換えます.また,宣言は「
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 End
17108 \end_layout
17109
17110 \end_inset
17111
17112 」で終わらなくてはなりません.
17113 \end_layout
17114
17115 \begin_layout Standard
17116 以下のパラメータを使用することができます.
17117 \end_layout
17118
17119 \begin_layout Description
17120 \begin_inset Flex Code
17121 status collapsed
17122
17123 \begin_layout Plain Layout
17124 InitialValue
17125 \end_layout
17126
17127 \end_inset
17128
17129  [
17130 \begin_inset Flex Code
17131 status collapsed
17132
17133 \begin_layout Plain Layout
17134 整数=1
17135 \end_layout
17136
17137 \end_inset
17138
17139 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17140 \end_layout
17141
17142 \begin_layout Description
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147 LabelString [文字列=""]
17148 \end_layout
17149
17150 \end_inset
17151
17152  定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17153 \begin_inset Flex Code
17154 status collapsed
17155
17156 \begin_layout Plain Layout
17157 LabelStringAppendix
17158 \end_layout
17159
17160 \end_inset
17161
17162 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17163 \begin_inset Separator latexpar
17164 \end_inset
17165
17166
17167 \end_layout
17168
17169 \begin_deeper
17170 \begin_layout Itemize
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175
17176 \backslash
17177 thecounter
17178 \end_layout
17179
17180 \end_inset
17181
17182 は,カウンタ
17183 \begin_inset Flex Code
17184 status collapsed
17185
17186 \begin_layout Plain Layout
17187 counter
17188 \end_layout
17189
17190 \end_inset
17191
17192
17193 \begin_inset Flex Code
17194 status collapsed
17195
17196 \begin_layout Plain Layout
17197 LabelString
17198 \end_layout
17199
17200 \end_inset
17201
17202 (または
17203 \begin_inset Newline linebreak
17204 \end_inset
17205
17206
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 LabelStringAppendix
17212 \end_layout
17213
17214 \end_inset
17215
17216 )を展開したもので置き換えられます. 
17217 \end_layout
17218
17219 \begin_layout Itemize
17220 カウンタ値は,\SpecialChar LaTeX
17221 型マクロ
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226
17227 \backslash
17228
17229 \emph on
17230 numbertype
17231 \emph default
17232 {
17233 \emph on
17234 カウンタ
17235 \emph default
17236 }
17237 \end_layout
17238
17239 \end_inset
17240
17241 を用いて表現することができます.ここで
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246
17247 \emph on
17248 numbertype
17249 \end_layout
17250
17251 \end_inset
17252
17253 は以下のいずれかです.
17254 \begin_inset Flex Code
17255 status collapsed
17256
17257 \begin_layout Plain Layout
17258 arabic
17259 \end_layout
17260
17261 \end_inset
17262
17263 :1, 2, 3,\SpecialChar ldots
17264
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 alph
17270 \end_layout
17271
17272 \end_inset
17273
17274 :a, b, c, \SpecialChar ldots
17275 (小文字);
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280 Alph
17281 \end_layout
17282
17283 \end_inset
17284
17285 :A, B, C, \SpecialChar ldots
17286 (大文字);
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 roman
17292 \end_layout
17293
17294 \end_inset
17295
17296 :i, ii, iii, \SpecialChar ldots
17297 (小文字ローマ数字);
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302 Roman
17303 \end_layout
17304
17305 \end_inset
17306
17307 :I, II, III\SpecialChar ldots
17308 (大文字ローマ数字).
17309 \end_layout
17310
17311 \end_deeper
17312 \begin_layout Standard
17313 \begin_inset Flex Code
17314 status collapsed
17315
17316 \begin_layout Plain Layout
17317 LabelString
17318 \end_layout
17319
17320 \end_inset
17321
17322 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17323 \begin_inset Flex Code
17324 status collapsed
17325
17326 \begin_layout Plain Layout
17327 master
17328 \end_layout
17329
17330 \end_inset
17331
17332
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 Within
17338 \end_layout
17339
17340 \end_inset
17341
17342 で定義)があるときには,文字列
17343 \begin_inset Newline linebreak
17344 \end_inset
17345
17346
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351
17352 \backslash
17353 themaster.
17354 \backslash
17355 arabic{カウンタ}
17356 \end_layout
17357
17358 \end_inset
17359
17360 が使用されます.それ以外の場合は,
17361 \begin_inset Flex Code
17362 status collapsed
17363
17364 \begin_layout Plain Layout
17365
17366 \backslash
17367 arabic{カウンタ}
17368 \end_layout
17369
17370 \end_inset
17371
17372 が使用されます.
17373 \end_layout
17374
17375 \begin_layout Description
17376 \begin_inset Flex Code
17377 status collapsed
17378
17379 \begin_layout Plain Layout
17380 LabelStringAppendix
17381 \end_layout
17382
17383 \end_inset
17384
17385  [
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390 文字列
17391 \end_layout
17392
17393 \end_inset
17394
17395 =""] 
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400 LabelString
17401 \end_layout
17402
17403 \end_inset
17404
17405 と同様ですが,付録で使用するためのものです.
17406 \end_layout
17407
17408 \begin_layout Description
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 PrettyFormat
17414 \end_layout
17415
17416 \end_inset
17417
17418  [
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 文字列
17424 \end_layout
17425
17426 \end_inset
17427
17428 =
17429 \begin_inset Quotes erd
17430 \end_inset
17431
17432
17433 \begin_inset Quotes erd
17434 \end_inset
17435
17436 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17437 \begin_inset space ~
17438 \end_inset
17439
17440 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17441 す.
17442 \end_layout
17443
17444 \begin_layout Description
17445 \begin_inset Flex Code
17446 status collapsed
17447
17448 \begin_layout Plain Layout
17449 Within
17450 \end_layout
17451
17452 \end_inset
17453
17454  [
17455 \begin_inset Flex Code
17456 status collapsed
17457
17458 \begin_layout Plain Layout
17459 文字列
17460 \end_layout
17461
17462 \end_inset
17463
17464 =
17465 \begin_inset Quotes erd
17466 \end_inset
17467
17468
17469 \begin_inset Quotes erd
17470 \end_inset
17471
17472 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 subsection
17478 \end_layout
17479
17480 \end_inset
17481
17482
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487 section
17488 \end_layout
17489
17490 \end_inset
17491
17492 毎に番号がリセットされます.
17493 \end_layout
17494
17495 \begin_layout Subsection
17496 フォント指定
17497 \begin_inset CommandInset label
17498 LatexCommand label
17499 name "subsec:フォント指定"
17500
17501 \end_inset
17502
17503
17504 \end_layout
17505
17506 \begin_layout Standard
17507 フォント指定は,以下のような形を取ります.
17508 \end_layout
17509
17510 \begin_layout LyX-Code
17511 Font 
17512 \family roman
17513 \emph on
17514 または
17515 \family default
17516 \emph default
17517  LabelFont 
17518 \family roman
17519 \emph on
17520 または
17521 \family default
17522 \emph default
17523  DefaultFont
17524 \end_layout
17525
17526 \begin_layout LyX-Code
17527  ...
17528 \end_layout
17529
17530 \begin_layout LyX-Code
17531 EndFont
17532 \end_layout
17533
17534 \begin_layout Standard
17535 以下のコマンドを使用することができます.
17536 \end_layout
17537
17538 \begin_layout Description
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 Color
17544 \end_layout
17545
17546 \end_inset
17547
17548  [
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553
17554 \emph on
17555 none
17556 \end_layout
17557
17558 \end_inset
17559
17560
17561 \begin_inset Flex Code
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 black
17566 \end_layout
17567
17568 \end_inset
17569
17570
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 white
17576 \end_layout
17577
17578 \end_inset
17579
17580
17581 \begin_inset Flex Code
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 red
17586 \end_layout
17587
17588 \end_inset
17589
17590
17591 \begin_inset Flex Code
17592 status collapsed
17593
17594 \begin_layout Plain Layout
17595 green
17596 \end_layout
17597
17598 \end_inset
17599
17600
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 blue
17606 \end_layout
17607
17608 \end_inset
17609
17610
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 cyan
17616 \end_layout
17617
17618 \end_inset
17619
17620
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 magenta
17626 \end_layout
17627
17628 \end_inset
17629
17630
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 yellow
17636 \end_layout
17637
17638 \end_inset
17639
17640
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 brown
17646 \end_layout
17647
17648 \end_inset
17649
17650
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655 darkgray
17656 \end_layout
17657
17658 \end_inset
17659
17660
17661 \begin_inset Flex Code
17662 status collapsed
17663
17664 \begin_layout Plain Layout
17665 gray
17666 \end_layout
17667
17668 \end_inset
17669
17670
17671 \begin_inset Flex Code
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 lightgray
17676 \end_layout
17677
17678 \end_inset
17679
17680
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 lime
17686 \end_layout
17687
17688 \end_inset
17689
17690
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 orange
17696 \end_layout
17697
17698 \end_inset
17699
17700
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705 olive
17706 \end_layout
17707
17708 \end_inset
17709
17710
17711 \begin_inset Flex Code
17712 status collapsed
17713
17714 \begin_layout Plain Layout
17715 pink
17716 \end_layout
17717
17718 \end_inset
17719
17720
17721 \begin_inset Flex Code
17722 status collapsed
17723
17724 \begin_layout Plain Layout
17725 purple
17726 \end_layout
17727
17728 \end_inset
17729
17730
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 teal
17736 \end_layout
17737
17738 \end_inset
17739
17740
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 violet
17746 \end_layout
17747
17748 \end_inset
17749
17750 ]
17751 \end_layout
17752
17753 \begin_layout Description
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 Family
17759 \end_layout
17760
17761 \end_inset
17762
17763  [
17764 \emph on
17765
17766 \begin_inset Flex Code
17767 status collapsed
17768
17769 \begin_layout Plain Layout
17770 Roman
17771 \end_layout
17772
17773 \end_inset
17774
17775
17776 \emph default
17777
17778 \begin_inset Flex Code
17779 status collapsed
17780
17781 \begin_layout Plain Layout
17782 Sans
17783 \end_layout
17784
17785 \end_inset
17786
17787
17788 \begin_inset Flex Code
17789 status collapsed
17790
17791 \begin_layout Plain Layout
17792 Typewriter
17793 \end_layout
17794
17795 \end_inset
17796
17797
17798 \end_layout
17799
17800 \begin_layout Description
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 Misc
17806 \end_layout
17807
17808 \end_inset
17809
17810  [
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 文字列
17816 \end_layout
17817
17818 \end_inset
17819
17820 ] 有効な引数は,
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 emph
17826 \end_layout
17827
17828 \end_inset
17829
17830
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 noun
17836 \end_layout
17837
17838 \end_inset
17839
17840
17841 \begin_inset Flex Code
17842 status collapsed
17843
17844 \begin_layout Plain Layout
17845 strikeout
17846 \end_layout
17847
17848 \end_inset
17849
17850
17851 \begin_inset Flex Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855 underbar
17856 \end_layout
17857
17858 \end_inset
17859
17860
17861 \begin_inset Flex Code
17862 status collapsed
17863
17864 \begin_layout Plain Layout
17865 uuline
17866 \end_layout
17867
17868 \end_inset
17869
17870
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875 uwave
17876 \end_layout
17877
17878 \end_inset
17879
17880
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 no_emph
17886 \end_layout
17887
17888 \end_inset
17889
17890
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 no_noun
17896 \end_layout
17897
17898 \end_inset
17899
17900
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 no_strikeout
17906 \end_layout
17907
17908 \end_inset
17909
17910
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 no_bar
17916 \end_layout
17917
17918 \end_inset
17919
17920
17921 \begin_inset Flex Code
17922 status collapsed
17923
17924 \begin_layout Plain Layout
17925 no_uuline
17926 \end_layout
17927
17928 \end_inset
17929
17930
17931 \begin_inset Flex Code
17932 status collapsed
17933
17934 \begin_layout Plain Layout
17935 no_uwave
17936 \end_layout
17937
17938 \end_inset
17939
17940 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17941 \begin_inset Newline newline
17942 \end_inset
17943
17944 たとえば,
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 emph
17950 \end_layout
17951
17952 \end_inset
17953
17954 は強調を有効にし,
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 no_emph
17960 \end_layout
17961
17962 \end_inset
17963
17964 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17965
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 no_emph
17971 \end_layout
17972
17973 \end_inset
17974
17975 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17976 \end_layout
17977
17978 \begin_layout Description
17979 \begin_inset Flex Code
17980 status collapsed
17981
17982 \begin_layout Plain Layout
17983 Series
17984 \end_layout
17985
17986 \end_inset
17987
17988  [
17989 \emph on
17990
17991 \begin_inset Flex Code
17992 status collapsed
17993
17994 \begin_layout Plain Layout
17995 Medium
17996 \end_layout
17997
17998 \end_inset
17999
18000
18001 \emph default
18002
18003 \begin_inset Flex Code
18004 status collapsed
18005
18006 \begin_layout Plain Layout
18007 Bold
18008 \end_layout
18009
18010 \end_inset
18011
18012
18013 \end_layout
18014
18015 \begin_layout Description
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020 Shape
18021 \end_layout
18022
18023 \end_inset
18024
18025  [
18026 \emph on
18027
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 Up
18033 \end_layout
18034
18035 \end_inset
18036
18037
18038 \emph default
18039
18040 \begin_inset Flex Code
18041 status collapsed
18042
18043 \begin_layout Plain Layout
18044 Italic
18045 \end_layout
18046
18047 \end_inset
18048
18049
18050 \begin_inset Flex Code
18051 status collapsed
18052
18053 \begin_layout Plain Layout
18054 SmallCaps
18055 \end_layout
18056
18057 \end_inset
18058
18059
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 Slanted
18065 \end_layout
18066
18067 \end_inset
18068
18069
18070 \end_layout
18071
18072 \begin_layout Description
18073 \begin_inset Flex Code
18074 status collapsed
18075
18076 \begin_layout Plain Layout
18077 Size
18078 \end_layout
18079
18080 \end_inset
18081
18082  [
18083 \begin_inset Flex Code
18084 status collapsed
18085
18086 \begin_layout Plain Layout
18087 tiny
18088 \end_layout
18089
18090 \end_inset
18091
18092
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 small
18098 \end_layout
18099
18100 \end_inset
18101
18102
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107
18108 \emph on
18109 normal
18110 \end_layout
18111
18112 \end_inset
18113
18114
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 large
18120 \end_layout
18121
18122 \end_inset
18123
18124
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129 larger
18130 \end_layout
18131
18132 \end_inset
18133
18134
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 largest
18140 \end_layout
18141
18142 \end_inset
18143
18144
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 huge
18150 \end_layout
18151
18152 \end_inset
18153
18154
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 giant
18160 \end_layout
18161
18162 \end_inset
18163
18164 ]
18165 \end_layout
18166
18167 \begin_layout Subsection
18168 \begin_inset CommandInset label
18169 LatexCommand label
18170 name "subsec:引用書式指定"
18171
18172 \end_inset
18173
18174 引用書式指定
18175 \end_layout
18176
18177 \begin_layout Standard
18178 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18179 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184 CiteFormat
18185 \end_layout
18186
18187 \end_inset
18188
18189 ブロックが使用されています.このブロックは,以下のような形をしています.
18190 \end_layout
18191
18192 \begin_layout LyX-Code
18193 CiteFormat
18194 \end_layout
18195
18196 \begin_layout LyX-Code
18197  article ...
18198 \end_layout
18199
18200 \begin_layout LyX-Code
18201  book ...
18202 \end_layout
18203
18204 \begin_layout LyX-Code
18205 End
18206 \end_layout
18207
18208 \begin_layout Standard
18209 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18210 ファイル中に存在し
18211 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18212 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18213 は,いくつかの書式を
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 stdciteformats.inc
18219 \end_layout
18220
18221 \end_inset
18222
18223 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18224 文書クラスにインクルードされています.
18225 \end_layout
18226
18227 \begin_layout Standard
18228 この定義は,Bib\SpecialChar TeX
18229 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234 %author%
18235 \end_layout
18236
18237 \end_inset
18238
18239 のように
18240 \begin_inset Flex Code
18241 status collapsed
18242
18243 \begin_layout Plain Layout
18244 %
18245 \end_layout
18246
18247 \end_inset
18248
18249 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18250 \end_layout
18251
18252 \begin_layout LyX-Code
18253 misc %author%, 
18254 \begin_inset Quotes eld
18255 \end_inset
18256
18257 %title%
18258 \begin_inset Quotes erd
18259 \end_inset
18260
18261
18262 \end_layout
18263
18264 \begin_layout Standard
18265 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18266 \end_layout
18267
18268 \begin_layout Standard
18269 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18270 \begin_inset Flex Code
18271 status collapsed
18272
18273 \begin_layout Plain Layout
18274 {%volume%[[vol.
18275 \begin_inset space ~
18276 \end_inset
18277
18278 %volume%]]}
18279 \end_layout
18280
18281 \end_inset
18282
18283 のように,条件付きの構成を使用することができます.これは,
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 volume
18289 \end_layout
18290
18291 \end_inset
18292
18293 が存在するならば,「vol.
18294 \begin_inset space ~
18295 \end_inset
18296
18297 」とvolumeキーを出力するという意味です.また,
18298 \begin_inset Newline newline
18299 \end_inset
18300
18301
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 {%author%[[%author%]][[%editor%, ed.]]}
18307 \end_layout
18308
18309 \end_inset
18310
18311
18312 \begin_inset Newline newline
18313 \end_inset
18314
18315 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18316 \begin_inset Flex Code
18317 status collapsed
18318
18319 \begin_layout Plain Layout
18320 author
18321 \end_layout
18322
18323 \end_inset
18324
18325 キーが存在するならば出力され,そうでなければeditorキーと「,
18326 \begin_inset space ~
18327 \end_inset
18328
18329 ed.」が出力されます.ここでもキーは,
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 %
18335 \end_layout
18336
18337 \end_inset
18338
18339 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 [[
18345 \end_layout
18346
18347 \end_inset
18348
18349 」と「
18350 \begin_inset Flex Code
18351 status collapsed
18352
18353 \begin_layout Plain Layout
18354 ]]
18355 \end_layout
18356
18357 \end_inset
18358
18359 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18360 \end_layout
18361
18362 \begin_layout Standard
18363 もう一つ,定義中で使用することのできる文法として,
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368 {!<i>!}
18369 \end_layout
18370
18371 \end_inset
18372
18373 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18374 グを出力させたくはありませんから,HTMLタグは「
18375 \begin_inset Flex Code
18376 status collapsed
18377
18378 \begin_layout Plain Layout
18379 {!
18380 \end_layout
18381
18382 \end_inset
18383
18384 」と「
18385 \begin_inset Flex Code
18386 status collapsed
18387
18388 \begin_layout Plain Layout
18389 !}
18390 \end_layout
18391
18392 \end_inset
18393
18394 」でくるんでやらなくてはならないのです.
18395 \end_layout
18396
18397 \begin_layout Standard
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 CiteFormat
18403 \end_layout
18404
18405 \end_inset
18406
18407 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18408 \end_layout
18409
18410 \begin_layout LyX-Code
18411 !quotetitle 
18412 \begin_inset Quotes eld
18413 \end_inset
18414
18415 %title%
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419
18420 \end_layout
18421
18422 \begin_layout Standard
18423 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 %!quotetitle%
18429 \end_layout
18430
18431 \end_inset
18432
18433 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18434 は,
18435 \begin_inset Flex Code
18436 status collapsed
18437
18438 \begin_layout Plain Layout
18439 %!quotetitle%
18440 \end_layout
18441
18442 \end_inset
18443
18444 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18445 \end_layout
18446
18447 \begin_layout LyX-Code
18448 !funfun %funfun%
18449 \end_layout
18450
18451 \begin_layout Standard
18452 のようなことはしないでください.\SpecialChar LyX
18453 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18454 \end_layout
18455
18456 \begin_layout Standard
18457 特殊な定義の二つめは,
18458 \end_layout
18459
18460 \begin_layout LyX-Code
18461 _pptext pp.
18462 \end_layout
18463
18464 \begin_layout Standard
18465 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 %_pptext%
18471 \end_layout
18472
18473 \end_inset
18474
18475 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480 stdciteformats.inc
18481 \end_layout
18482
18483 \end_inset
18484
18485 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18486 \end_layout
18487
18488 \begin_layout Standard
18489 以下は,これらの機能を全て使った例です.
18490 \begin_inset VSpace defskip
18491 \end_inset
18492
18493
18494 \end_layout
18495
18496 \begin_layout Standard
18497 \noindent
18498
18499 \family typewriter
18500 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18501 \end_layout
18502
18503 \begin_layout Standard
18504 \begin_inset VSpace defskip
18505 \end_inset
18506
18507 これは,
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 author
18513 \end_layout
18514
18515 \end_inset
18516
18517 キーが定義されているならば,著者とコンマを出力し,
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 author
18523 \end_layout
18524
18525 \end_inset
18526
18527 キーが定義されておらず,
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 editor
18533 \end_layout
18534
18535 \end_inset
18536
18537 キーが定義されているならば,編集者名の後に
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542 _edtext
18543 \end_layout
18544
18545 \end_inset
18546
18547 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 stdciteformats.inc
18553 \end_layout
18554
18555 \end_inset
18556
18557 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18558 \end_layout
18559
18560 \begin_layout Section
18561 \begin_inset CommandInset label
18562 LatexCommand label
18563 name "sec:XHTML出力のタグ"
18564
18565 \end_inset
18566
18567 XHTML出力のタグ
18568 \end_layout
18569
18570 \begin_layout Standard
18571 \SpecialChar LaTeX
18572 やDocBookと同様,\SpecialChar LyX
18573 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18574 は適切な既定値を提供し,前述したように,他のレイアウト
18575 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18576 は,章様式の
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 Font
18582 \end_layout
18583
18584 \end_inset
18585
18586 宣言で提供されている情報を利用しようと試みます.
18587 \end_layout
18588
18589 \begin_layout Standard
18590 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18591 ,これが必要になる場合もあるので,\SpecialChar LyX
18592 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18593 \end_layout
18594
18595 \begin_layout Standard
18596 様式宣言や差込枠宣言の外で使用することができるタグに,
18597 \begin_inset Flex Code
18598 status collapsed
18599
18600 \begin_layout Plain Layout
18601 HTMLPreamble
18602 \end_layout
18603
18604 \end_inset
18605
18606
18607 \begin_inset Flex Code
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 AddToHTMLPreamble
18612 \end_layout
18613
18614 \end_inset
18615
18616 の2つがあることに注意してください.これらの詳細については,
18617 \begin_inset CommandInset ref
18618 LatexCommand ref
18619 reference "subsec:汎用テキストクラスパラメータ"
18620
18621 \end_inset
18622
18623 をご覧ください.
18624 \end_layout
18625
18626 \begin_layout Subsection
18627 \begin_inset CommandInset label
18628 LatexCommand label
18629 name "subsec:段落様式-XHTML"
18630
18631 \end_inset
18632
18633 段落様式
18634 \end_layout
18635
18636 \begin_layout Standard
18637 \SpecialChar LyX
18638 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 \SpecialChar LaTeX
18644 Type
18645 \end_layout
18646
18647 \end_inset
18648
18649 タグの内容によって決定されます.
18650 \end_layout
18651
18652 \begin_layout Standard
18653 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18654 \end_layout
18655
18656 \begin_layout LyX-Code
18657 <tag attr=
18658 \begin_inset Quotes erd
18659 \end_inset
18660
18661 value
18662 \begin_inset Quotes erd
18663 \end_inset
18664
18665 >
18666 \end_layout
18667
18668 \begin_layout LyX-Code
18669 <labeltag attr=
18670 \begin_inset Quotes erd
18671 \end_inset
18672
18673 value
18674 \begin_inset Quotes erd
18675 \end_inset
18676
18677 >ラベル</labeltag>
18678 \end_layout
18679
18680 \begin_layout LyX-Code
18681 段落の内容
18682 \end_layout
18683
18684 \begin_layout LyX-Code
18685 </tag>
18686 \end_layout
18687
18688 \begin_layout Standard
18689 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18690 \end_layout
18691
18692 \begin_layout Standard
18693 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18694 \end_layout
18695
18696 \begin_layout LyX-Code
18697 <tag attr=
18698 \begin_inset Quotes erd
18699 \end_inset
18700
18701 value
18702 \begin_inset Quotes erd
18703 \end_inset
18704
18705 >
18706 \end_layout
18707
18708 \begin_layout LyX-Code
18709 <itemtag attr=
18710 \begin_inset Quotes erd
18711 \end_inset
18712
18713 value
18714 \begin_inset Quotes erd
18715 \end_inset
18716
18717 ><labeltag attr=
18718 \begin_inset Quotes erd
18719 \end_inset
18720
18721 value
18722 \begin_inset Quotes erd
18723 \end_inset
18724
18725 >環境ラベル</labeltag>最初の段落.
18726 \end_layout
18727
18728 \begin_layout LyX-Code
18729 </itemtag>
18730 \end_layout
18731
18732 \begin_layout LyX-Code
18733 <itemtag>二つめの段落.</itemtag>
18734 \end_layout
18735
18736 \begin_layout LyX-Code
18737 </tag>
18738 \end_layout
18739
18740 \begin_layout Standard
18741 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18742 \end_layout
18743
18744 \begin_layout Standard
18745 リストに関しては,次のような形になります.
18746 \end_layout
18747
18748 \begin_layout LyX-Code
18749 <tag attr=
18750 \begin_inset Quotes erd
18751 \end_inset
18752
18753 value
18754 \begin_inset Quotes erd
18755 \end_inset
18756
18757 >
18758 \end_layout
18759
18760 \begin_layout LyX-Code
18761 <itemtag attr=
18762 \begin_inset Quotes erd
18763 \end_inset
18764
18765 value
18766 \begin_inset Quotes erd
18767 \end_inset
18768
18769 ><labeltag attr=
18770 \begin_inset Quotes erd
18771 \end_inset
18772
18773 value
18774 \begin_inset Quotes erd
18775 \end_inset
18776
18777 >リストのラベル</labeltag>最初の項目.</itemtag>
18778 \end_layout
18779
18780 \begin_layout LyX-Code
18781 <itemtag attr=
18782 \begin_inset Quotes erd
18783 \end_inset
18784
18785 value
18786 \begin_inset Quotes erd
18787 \end_inset
18788
18789 ><labeltag attr=
18790 \begin_inset Quotes erd
18791 \end_inset
18792
18793 value
18794 \begin_inset Quotes erd
18795 \end_inset
18796
18797 >リストのラベル</labeltag>二つめの項目.</itemtag>
18798 \end_layout
18799
18800 \begin_layout LyX-Code
18801 </tag>
18802 \end_layout
18803
18804 \begin_layout LyX-Code
18805
18806 \end_layout
18807
18808 \begin_layout LyX-Code
18809 <tag attr=
18810 \begin_inset Quotes erd
18811 \end_inset
18812
18813 value
18814 \begin_inset Quotes erd
18815 \end_inset
18816
18817 >
18818 \end_layout
18819
18820 \begin_layout LyX-Code
18821 <labeltag attr=
18822 \begin_inset Quotes erd
18823 \end_inset
18824
18825 value
18826 \begin_inset Quotes erd
18827 \end_inset
18828
18829 >リストのラベル</labeltag><itemtag attr=
18830 \begin_inset Quotes erd
18831 \end_inset
18832
18833 value
18834 \begin_inset Quotes erd
18835 \end_inset
18836
18837 >最初の項目.</itemtag>
18838 \end_layout
18839
18840 \begin_layout LyX-Code
18841 <labeltag attr=
18842 \begin_inset Quotes erd
18843 \end_inset
18844
18845 value
18846 \begin_inset Quotes erd
18847 \end_inset
18848
18849 >リストのラベル</labeltag><itemtag attr=
18850 \begin_inset Quotes erd
18851 \end_inset
18852
18853 value
18854 \begin_inset Quotes erd
18855 \end_inset
18856
18857 >二つめの項目</itemtag>
18858 \end_layout
18859
18860 \begin_layout LyX-Code
18861 </tag>
18862 \end_layout
18863
18864 \begin_layout Standard
18865 ここで
18866 \begin_inset Flex Code
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 labeltag
18871 \end_layout
18872
18873 \end_inset
18874
18875
18876 \begin_inset Flex Code
18877 status collapsed
18878
18879 \begin_layout Plain Layout
18880 itemtag
18881 \end_layout
18882
18883 \end_inset
18884
18885 の順序が違っていることに注意してください.どちらの順序になるかは,
18886 \begin_inset Flex Code
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890 HTMLLabelFirst
18891 \end_layout
18892
18893 \end_inset
18894
18895 の設定に依存します.もし
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 HTMLLabelFirst
18901 \end_layout
18902
18903 \end_inset
18904
18905 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18906 \end_layout
18907
18908 \begin_layout Standard
18909 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18910 は適切な既定値を生成
18911 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18912 でここにあるものと考えてください.
18913 \end_layout
18914
18915 \begin_layout Description
18916 \begin_inset Flex Code
18917 status collapsed
18918
18919 \begin_layout Plain Layout
18920 HTMLAttr
18921 \end_layout
18922
18923 \end_inset
18924
18925  [
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 文字列
18931 \end_layout
18932
18933 \end_inset
18934
18935 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 class=`mydiv'
18941 \end_layout
18942
18943 \end_inset
18944
18945 」のようなものです.既定においては,\SpecialChar LyX
18946 は「
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 class=`レイアウト名'
18952 \end_layout
18953
18954 \end_inset
18955
18956 」と出力します.ここで
18957 \begin_inset Flex Code
18958 status collapsed
18959
18960 \begin_layout Plain Layout
18961 レイアウト名
18962 \end_layout
18963
18964 \end_inset
18965
18966 は,レイアウトの\SpecialChar LyX
18967 名であり,chapterのように小文字で記述します.
18968 \end_layout
18969
18970 \begin_layout Description
18971 \begin_inset Flex Code
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 HTMLForceCSS
18976 \end_layout
18977
18978 \end_inset
18979
18980  [
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985
18986 \emph on
18987 0
18988 \emph default
18989 ,1
18990 \end_layout
18991
18992 \end_inset
18993
18994 ] 
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 HTMLStyle
19000 \end_layout
19001
19002 \end_inset
19003
19004 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19005 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010 1
19011 \end_layout
19012
19013 \end_inset
19014
19015 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 0
19021 \end_layout
19022
19023 \end_inset
19024
19025 です.
19026 \end_layout
19027
19028 \begin_layout Description
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 HTMLItem
19034 \end_layout
19035
19036 \end_inset
19037
19038  [
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 文字列
19044 \end_layout
19045
19046 \end_inset
19047
19048 ] 環境の段落に使用されるタグ.上記各例の
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 itemtag
19054 \end_layout
19055
19056 \end_inset
19057
19058 を置き換えます.既定値は
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 div
19064 \end_layout
19065
19066 \end_inset
19067
19068 です.
19069 \end_layout
19070
19071 \begin_layout Description
19072 \begin_inset Flex Code
19073 status collapsed
19074
19075 \begin_layout Plain Layout
19076 HTMLItemAttr
19077 \end_layout
19078
19079 \end_inset
19080
19081  [
19082 \begin_inset Flex Code
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 文字列
19087 \end_layout
19088
19089 \end_inset
19090
19091 ] itemタグの属性.既定値は
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 class=`レイアウト名_item'
19097 \end_layout
19098
19099 \end_inset
19100
19101 です.ここには,様式情報は含まれては
19102 \emph on
19103 なりません
19104 \emph default
19105 .その目的のためには,
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 HTMLStyle
19111 \end_layout
19112
19113 \end_inset
19114
19115 を使用してください.
19116 \end_layout
19117
19118 \begin_layout Description
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 HTMLLabel
19124 \end_layout
19125
19126 \end_inset
19127
19128  [
19129 \begin_inset Flex Code
19130 status collapsed
19131
19132 \begin_layout Plain Layout
19133 文字列
19134 \end_layout
19135
19136 \end_inset
19137
19138 ] 段落と項目ラベルに使用されるタグ.上記各例の
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 labeltag
19144 \end_layout
19145
19146 \end_inset
19147
19148 を置き換えます.
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 LabelType
19154 \end_layout
19155
19156 \end_inset
19157
19158
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 Top_Environment
19164 \end_layout
19165
19166 \end_inset
19167
19168
19169 \begin_inset Flex Code
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173 Centered_Top_Environment
19174 \end_layout
19175
19176 \end_inset
19177
19178 の時は,既定値は
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183 div
19184 \end_layout
19185
19186 \end_inset
19187
19188 ですが,それ以外の時の既定値は
19189 \begin_inset Flex Code
19190 status collapsed
19191
19192 \begin_layout Plain Layout
19193 span
19194 \end_layout
19195
19196 \end_inset
19197
19198 です.
19199 \end_layout
19200
19201 \begin_layout Description
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 HTMLLabelAttr
19207 \end_layout
19208
19209 \end_inset
19210
19211  [
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216 文字列
19217 \end_layout
19218
19219 \end_inset
19220
19221 ] labelタグの属性.既定値は
19222 \begin_inset Flex Code
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226 class=`レイアウト名_label'
19227 \end_layout
19228
19229 \end_inset
19230
19231 です.ここには,様式情報は含まれては
19232 \emph on
19233 なりません
19234 \emph default
19235 .その目的のためには,
19236 \begin_inset Flex Code
19237 status collapsed
19238
19239 \begin_layout Plain Layout
19240 HTMLStyle
19241 \end_layout
19242
19243 \end_inset
19244
19245 を使用してください.
19246 \end_layout
19247
19248 \begin_layout Description
19249 \begin_inset Flex Code
19250 status collapsed
19251
19252 \begin_layout Plain Layout
19253 HTMLLabelFirst
19254 \end_layout
19255
19256 \end_inset
19257
19258  [
19259 \begin_inset Flex Code
19260 status collapsed
19261
19262 \begin_layout Plain Layout
19263
19264 \emph on
19265 0
19266 \emph default
19267 ,1
19268 \end_layout
19269
19270 \end_inset
19271
19272 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19273 tion環境の中で,
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 `<dt>\SpecialChar ldots
19279 </dt><dd>\SpecialChar ldots
19280 </dd>
19281 \end_layout
19282
19283 \end_inset
19284
19285 という形を得るために使用されます.既定値は
19286 \begin_inset Flex Code
19287 status collapsed
19288
19289 \begin_layout Plain Layout
19290 0
19291 \end_layout
19292
19293 \end_inset
19294
19295 で,labelタグはitemタグの中に出力されます.
19296 \end_layout
19297
19298 \begin_layout Description
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303 HTMLPreamble
19304 \end_layout
19305
19306 \end_inset
19307
19308  この様式が使用されたときに,
19309 \begin_inset Flex Code
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313 <head>
19314 \end_layout
19315
19316 \end_inset
19317
19318 セクションに出力される情報.これは,たとえば,
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 onclick
19324 \end_layout
19325
19326 \end_inset
19327
19328 ハンドラを定義するために
19329 \begin_inset Flex Code
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333 <script>
19334 \end_layout
19335
19336 \end_inset
19337
19338 ブロックをインクルードするのに使用することができます.
19339 \end_layout
19340
19341 \begin_layout Description
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346 HTMLStyle
19347 \end_layout
19348
19349 \end_inset
19350
19351   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19352 \begin_inset Flex Code
19353 status collapsed
19354
19355 \begin_layout Plain Layout
19356 <style>
19357 \end_layout
19358
19359 \end_inset
19360
19361 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 EndHTMLStyle
19367 \end_layout
19368
19369 \end_inset
19370
19371 で閉じなくてはなりません.
19372 \end_layout
19373
19374 \begin_layout Description
19375 \begin_inset Flex Code
19376 status collapsed
19377
19378 \begin_layout Plain Layout
19379 HTMLTag
19380 \end_layout
19381
19382 \end_inset
19383
19384  [
19385 \begin_inset Flex Code
19386 status collapsed
19387
19388 \begin_layout Plain Layout
19389 文字列
19390 \end_layout
19391
19392 \end_inset
19393
19394 ] 主幹ラベルに使用されるタグ.上記各例の
19395 \begin_inset Flex Code
19396 status collapsed
19397
19398 \begin_layout Plain Layout
19399 tag
19400 \end_layout
19401
19402 \end_inset
19403
19404 を置き換えます.既定値は
19405 \begin_inset Flex Code
19406 status collapsed
19407
19408 \begin_layout Plain Layout
19409 div
19410 \end_layout
19411
19412 \end_inset
19413
19414 です.
19415 \end_layout
19416
19417 \begin_layout Description
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 HTMLTitle
19423 \end_layout
19424
19425 \end_inset
19426
19427  [
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432
19433 \emph on
19434 0
19435 \emph default
19436 ,1
19437 \end_layout
19438
19439 \end_inset
19440
19441 ] この様式が,XHTMLファイルの
19442 \begin_inset Flex Code
19443 status collapsed
19444
19445 \begin_layout Plain Layout
19446 <title>
19447 \end_layout
19448
19449 \end_inset
19450
19451 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 stdtitle.inc
19457 \end_layout
19458
19459 \end_inset
19460
19461 ファイルでは,
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 title
19467 \end_layout
19468
19469 \end_inset
19470
19471 環境のこの項目を真に設定しています.
19472 \end_layout
19473
19474 \begin_layout Subsection
19475 差込枠レイアウトXHTML
19476 \end_layout
19477
19478 \begin_layout Standard
19479 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19480 \begin_inset Foot
19481 status collapsed
19482
19483 \begin_layout Plain Layout
19484 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19485 ん.
19486 \end_layout
19487
19488 \end_inset
19489
19490 .ここでも,\SpecialChar LyX
19491 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19492 \end_layout
19493
19494 \begin_layout Standard
19495 \SpecialChar LyX
19496 が差込枠用に出力するXHTMLは,以下の形を取ります.
19497 \end_layout
19498
19499 \begin_layout LyX-Code
19500 <tag attr=
19501 \begin_inset Quotes erd
19502 \end_inset
19503
19504 value
19505 \begin_inset Quotes erd
19506 \end_inset
19507
19508 >
19509 \end_layout
19510
19511 \begin_layout LyX-Code
19512 <labeltag>ラベル</labeltag>
19513 \end_layout
19514
19515 \begin_layout LyX-Code
19516 <innertag attr=
19517 \begin_inset Quotes erd
19518 \end_inset
19519
19520 value
19521 \begin_inset Quotes erd
19522 \end_inset
19523
19524 >差込枠の内容.</innertag>
19525 \end_layout
19526
19527 \begin_layout LyX-Code
19528 </tag>
19529 \end_layout
19530
19531 \begin_layout Standard
19532 差込枠が多段落を許可している—つまり
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 MultiPar
19538 \end_layout
19539
19540 \end_inset
19541
19542 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19543 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 span
19549 \end_layout
19550
19551 \end_inset
19552
19553 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19554 す.
19555 \end_layout
19556
19557 \begin_layout Description
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 HTMLAttr
19563 \end_layout
19564
19565 \end_inset
19566
19567  [
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 文字列
19573 \end_layout
19574
19575 \end_inset
19576
19577 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 class=`myinset' onclick=`\SpecialChar ldots
19583 '
19584 \end_layout
19585
19586 \end_inset
19587
19588 」のようなものです.既定においては,\SpecialChar LyX
19589 は「
19590 \begin_inset Flex Code
19591 status collapsed
19592
19593 \begin_layout Plain Layout
19594 class=`差込枠名'
19595 \end_layout
19596
19597 \end_inset
19598
19599 」と出力します.ここで
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 差込枠名
19605 \end_layout
19606
19607 \end_inset
19608
19609 は,差込枠の\SpecialChar LyX
19610 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19611 \end_layout
19612
19613 \begin_layout Description
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 HTMLForceCSS
19619 \end_layout
19620
19621 \end_inset
19622
19623  [
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628
19629 \emph on
19630 0
19631 \emph default
19632 ,1
19633 \end_layout
19634
19635 \end_inset
19636
19637 ] 
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 HTMLStyle
19643 \end_layout
19644
19645 \end_inset
19646
19647 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19648 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 1
19654 \end_layout
19655
19656 \end_inset
19657
19658 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 0
19664 \end_layout
19665
19666 \end_inset
19667
19668 です.
19669 \end_layout
19670
19671 \begin_layout Description
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 HTMLInnerAttr
19677 \end_layout
19678
19679 \end_inset
19680
19681  [
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 文字列
19687 \end_layout
19688
19689 \end_inset
19690
19691 ] innerタグの属性.既定値は
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 class=`差込枠名_inner'
19697 \end_layout
19698
19699 \end_inset
19700
19701 です.
19702 \end_layout
19703
19704 \begin_layout Description
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 HTMLInnerTag
19710 \end_layout
19711
19712 \end_inset
19713
19714  [
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 文字列
19720 \end_layout
19721
19722 \end_inset
19723
19724 ] innerタグです.上記各例の
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 innertag
19730 \end_layout
19731
19732 \end_inset
19733
19734 を置き換えます.既定値はなしです.
19735 \end_layout
19736
19737 \begin_layout Description
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 HTMLIsBlock
19743 \end_layout
19744
19745 \end_inset
19746
19747  [
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 0,
19753 \emph on
19754 1
19755 \end_layout
19756
19757 \end_inset
19758
19759 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19760 \end_layout
19761
19762 \begin_layout Description
19763 \begin_inset Flex Code
19764 status collapsed
19765
19766 \begin_layout Plain Layout
19767 HTMLLabel
19768 \end_layout
19769
19770 \end_inset
19771
19772  [
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 文字列
19778 \end_layout
19779
19780 \end_inset
19781
19782 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787
19788 \backslash
19789 arabic{footnote}
19790 \end_layout
19791
19792 \end_inset
19793
19794 など.これは非必須であり,既定値はありません.
19795 \end_layout
19796
19797 \begin_layout Description
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 HTMLPreamble
19803 \end_layout
19804
19805 \end_inset
19806
19807  この様式が使用されたときに,
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 <head>
19813 \end_layout
19814
19815 \end_inset
19816
19817 セクションに出力される情報.これは,たとえば,
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 onclick
19823 \end_layout
19824
19825 \end_inset
19826
19827 ハンドラを定義するために
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 <script>
19833 \end_layout
19834
19835 \end_inset
19836
19837 ブロックをインクルードするのに使用することができます.
19838 \end_layout
19839
19840 \begin_layout Description
19841 \begin_inset Flex Code
19842 status collapsed
19843
19844 \begin_layout Plain Layout
19845 HTMLStyle
19846 \end_layout
19847
19848 \end_inset
19849
19850   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19851 \begin_inset Flex Code
19852 status collapsed
19853
19854 \begin_layout Plain Layout
19855 <style>
19856 \end_layout
19857
19858 \end_inset
19859
19860 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19861 \end_layout
19862
19863 \begin_layout Description
19864 \begin_inset Flex Code
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 HTMLTag
19869 \end_layout
19870
19871 \end_inset
19872
19873  [
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 文字列
19879 \end_layout
19880
19881 \end_inset
19882
19883 ] 主幹ラベルに使用されるタグ.上記各例の
19884 \begin_inset Flex Code
19885 status collapsed
19886
19887 \begin_layout Plain Layout
19888 tag
19889 \end_layout
19890
19891 \end_inset
19892
19893 を置き換えます.既定値は
19894 \begin_inset Flex Code
19895 status collapsed
19896
19897 \begin_layout Plain Layout
19898 MultiPar
19899 \end_layout
19900
19901 \end_inset
19902
19903 の設定に依存し,
19904 \begin_inset Flex Code
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908 MultiPar
19909 \end_layout
19910
19911 \end_inset
19912
19913 が真ならば
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 div
19919 \end_layout
19920
19921 \end_inset
19922
19923 ,偽ならば
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 span
19929 \end_layout
19930
19931 \end_inset
19932
19933 です.
19934 \end_layout
19935
19936 \begin_layout Subsection
19937 フロートXHTML
19938 \end_layout
19939
19940 \begin_layout Standard
19941 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19942 \end_layout
19943
19944 \begin_layout LyX-Code
19945 <tag attr=
19946 \begin_inset Quotes erd
19947 \end_inset
19948
19949 value
19950 \begin_inset Quotes erd
19951 \end_inset
19952
19953 >
19954 \end_layout
19955
19956 \begin_layout LyX-Code
19957 フロートの内容.
19958 \end_layout
19959
19960 \begin_layout LyX-Code
19961 </tag>
19962 \end_layout
19963
19964 \begin_layout Standard
19965 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19966 きます.
19967 \end_layout
19968
19969 \begin_layout Description
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 HTMLAttr
19975 \end_layout
19976
19977 \end_inset
19978
19979  [
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 文字列
19985 \end_layout
19986
19987 \end_inset
19988
19989 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 class=`myfloat' onclick=`\SpecialChar ldots
19995 '
19996 \end_layout
19997
19998 \end_inset
19999
20000 」のようなものです.既定においては,\SpecialChar LyX
20001 は「
20002 \begin_inset Flex Code
20003 status collapsed
20004
20005 \begin_layout Plain Layout
20006 class=`float フロート-フロート型'
20007 \end_layout
20008
20009 \end_inset
20010
20011 」と出力します.ここで
20012 \begin_inset Flex Code
20013 status collapsed
20014
20015 \begin_layout Plain Layout
20016 フロート型
20017 \end_layout
20018
20019 \end_inset
20020
20021 は,フロート宣言で定義された(
20022 \begin_inset CommandInset ref
20023 LatexCommand ref
20024 reference "subsec:フロート"
20025
20026 \end_inset
20027
20028 参照),この型のフロートの\SpecialChar LyX
20029 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
20030 \end_layout
20031
20032 \begin_layout Description
20033 \begin_inset Flex Code
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 HTMLStyle
20038 \end_layout
20039
20040 \end_inset
20041
20042   このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 <style>
20048 \end_layout
20049
20050 \end_inset
20051
20052 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
20053 \end_layout
20054
20055 \begin_layout Description
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 HTMLTag
20061 \end_layout
20062
20063 \end_inset
20064
20065  [
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 文字列
20071 \end_layout
20072
20073 \end_inset
20074
20075 ] このフロートに使用されるタグ.上記各例の
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 tag
20081 \end_layout
20082
20083 \end_inset
20084
20085 を置き換えます.既定値は
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 div
20091 \end_layout
20092
20093 \end_inset
20094
20095 であり,ほとんどの場合変更する必要はありません.
20096 \end_layout
20097
20098 \begin_layout Subsection
20099 書誌情報の整形
20100 \end_layout
20101
20102 \begin_layout Standard
20103 書誌情報は,
20104 \begin_inset Flex Code
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108 CiteFormat
20109 \end_layout
20110
20111 \end_inset
20112
20113 ブロックを使用して整形することができます.詳細については,
20114 \begin_inset CommandInset ref
20115 LatexCommand ref
20116 reference "subsec:引用書式指定"
20117
20118 \end_inset
20119
20120 を参照してください.
20121 \end_layout
20122
20123 \begin_layout Subsection
20124 \SpecialChar LyX
20125 が生成したCSS
20126 \end_layout
20127
20128 \begin_layout Standard
20129 \SpecialChar LyX
20130 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20131
20132 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20133 \end_layout
20134
20135 \begin_layout Standard
20136 \SpecialChar LyX
20137 は,現在のところ,
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142 Font
20143 \end_layout
20144
20145 \end_inset
20146
20147 宣言で指定されている
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152 Family
20153 \end_layout
20154
20155 \end_inset
20156
20157
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 Series
20163 \end_layout
20164
20165 \end_inset
20166
20167
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 Shape
20173 \end_layout
20174
20175 \end_inset
20176
20177
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 Size
20183 \end_layout
20184
20185 \end_inset
20186
20187 を利用して,フォント情報についてのみCSSを自動生成します(
20188 \begin_inset CommandInset ref
20189 LatexCommand ref
20190 reference "subsec:フォント指定"
20191
20192 \end_inset
20193
20194 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 Family Sans
20200 \end_layout
20201
20202 \end_inset
20203
20204 」は「
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 font-family: sans-serif
20210 \end_layout
20211
20212 \end_inset
20213
20214 」になります.\SpecialChar LyX
20215 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20216 \begin_inset Flex URL
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220
20221 src/FontInfo.cpp
20222 \end_layout
20223
20224 \end_inset
20225
20226
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 getSizeCSS()
20232 \end_layout
20233
20234 \end_inset
20235
20236 関数をご覧ください.
20237 \end_layout
20238
20239 \begin_layout Chapter
20240 外部素材を取り込む
20241 \begin_inset CommandInset label
20242 LatexCommand label
20243 name "chap:外部素材を取り込む"
20244
20245 \end_inset
20246
20247
20248 \end_layout
20249
20250 \begin_layout Standard
20251 \begin_inset Box Shadowbox
20252 position "t"
20253 hor_pos "c"
20254 has_inner_box 1
20255 inner_pos "t"
20256 use_parbox 0
20257 use_makebox 0
20258 width "100col%"
20259 special "none"
20260 height "1in"
20261 height_special "totalheight"
20262 thickness "0.4pt"
20263 separation "3pt"
20264 shadowsize "4pt"
20265 framecolor "black"
20266 backgroundcolor "none"
20267 status open
20268
20269 \begin_layout Plain Layout
20270 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20271 \end_layout
20272
20273 \end_inset
20274
20275
20276 \end_layout
20277
20278 \begin_layout Standard
20279 \SpecialChar LyX
20280 外部のソースから素材を使用する方法は,取扱説明書『
20281 \emph on
20282 埋込オブジェクト篇
20283 \emph default
20284 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20285 \end_layout
20286
20287 \begin_layout Section
20288 どのように機能するのか
20289 \end_layout
20290
20291 \begin_layout Standard
20292 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20293 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20294 は,Xfigの図や,様々
20295 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20296 \begin_inset Flex MenuItem
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 挿入\SpecialChar menuseparator
20301 ファイル\SpecialChar menuseparator
20302 外部素材
20303 \end_layout
20304
20305 \end_inset
20306
20307 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20308 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20309 の後の版に取り込むことができるようにしてくださることを希望します.
20310 \end_layout
20311
20312 \begin_layout Standard
20313 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20314 いることです.たとえば,
20315 \begin_inset Flex Code
20316 status collapsed
20317
20318 \begin_layout Plain Layout
20319 Xfig
20320 \end_layout
20321
20322 \end_inset
20323
20324 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 .fig
20330 \end_layout
20331
20332 \end_inset
20333
20334 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20335 \begin_inset Flex Code
20336 status collapsed
20337
20338 \begin_layout Plain Layout
20339 fig
20340 \end_layout
20341
20342 \end_inset
20343
20344 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20345 ファイルにそのままインクルードできるように,
20346 \begin_inset Flex Code
20347 status collapsed
20348
20349 \begin_layout Plain Layout
20350 transfig
20351 \end_layout
20352
20353 \end_inset
20354
20355 を呼び出してPostScriptファイルを生成します.この場合には,
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 .fig
20361 \end_layout
20362
20363 \end_inset
20364
20365 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20366 \end_layout
20367
20368 \begin_layout Standard
20369 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20370 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20371 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20372 の外部素材マネジメントは
20373 ,\SpecialChar LyX
20374 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20375 \end_layout
20376
20377 \begin_layout Standard
20378 \SpecialChar LyX
20379 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20380 の場合には,\SpecialChar LyX
20381 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20382 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20383 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20384 できるようになるのです.
20385 \end_layout
20386
20387 \begin_layout Section
20388 外用ひな型設定ファイル
20389 \end_layout
20390
20391 \begin_layout Standard
20392 \SpecialChar LyX
20393 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20394 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20395 \begin_inset CommandInset ref
20396 LatexCommand ref
20397 reference "sec:セキュリティに関する論点"
20398
20399 \end_inset
20400
20401 のセキュリティに関する議論を読んでおいてください.
20402 \end_layout
20403
20404 \begin_layout Standard
20405 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20406 \end_layout
20407
20408 \begin_layout Standard
20409 外用ひな型は,
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414 LyXDir/lib/external_templates
20415 \end_layout
20416
20417 \end_inset
20418
20419 ファイルで定義されています.自分用の版を
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424 UserDir/external_templates
20425 \end_layout
20426
20427 \end_inset
20428
20429 に置くこともできます.
20430 \end_layout
20431
20432 \begin_layout Standard
20433 典型的なひな型は以下のようになります.
20434 \end_layout
20435
20436 \begin_layout LyX-Code
20437 Template XFig
20438 \end_layout
20439
20440 \begin_layout LyX-Code
20441 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20442 \end_layout
20443
20444 \begin_layout LyX-Code
20445 HelpText
20446 \end_layout
20447
20448 \begin_layout LyX-Code
20449 An XFig figure.
20450 \end_layout
20451
20452 \begin_layout LyX-Code
20453 HelpTextEnd
20454 \end_layout
20455
20456 \begin_layout LyX-Code
20457 InputFormat fig
20458 \end_layout
20459
20460 \begin_layout LyX-Code
20461 FileFilter "*.fig"
20462 \end_layout
20463
20464 \begin_layout LyX-Code
20465 AutomaticProduction true
20466 \end_layout
20467
20468 \begin_layout LyX-Code
20469 Transform Rotate
20470 \end_layout
20471
20472 \begin_layout LyX-Code
20473 Transform Resize
20474 \end_layout
20475
20476 \begin_layout LyX-Code
20477 Format LaTeX
20478 \end_layout
20479
20480 \begin_layout LyX-Code
20481 TransformCommand Rotate RotationLatexCommand
20482 \end_layout
20483
20484 \begin_layout LyX-Code
20485 TransformCommand Resize ResizeLatexCommand
20486 \end_layout
20487
20488 \begin_layout LyX-Code
20489 Product "$$RotateFront$$ResizeFront
20490 \end_layout
20491
20492 \begin_layout LyX-Code
20493          
20494 \backslash
20495
20496 \backslash
20497 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20498 \end_layout
20499
20500 \begin_layout LyX-Code
20501          $$ResizeBack$$RotateBack"
20502 \end_layout
20503
20504 \begin_layout LyX-Code
20505 UpdateFormat pstex
20506 \end_layout
20507
20508 \begin_layout LyX-Code
20509 UpdateResult "$$AbsPath$$Basename.pstex_t"
20510 \end_layout
20511
20512 \begin_layout LyX-Code
20513 Requirement "graphicx"
20514 \end_layout
20515
20516 \begin_layout LyX-Code
20517 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20518 \end_layout
20519
20520 \begin_layout LyX-Code
20521 ReferencedFile latex "$$AbsPath$$Basename.eps"
20522 \end_layout
20523
20524 \begin_layout LyX-Code
20525 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20526 \end_layout
20527
20528 \begin_layout LyX-Code
20529 FormatEnd
20530 \end_layout
20531
20532 \begin_layout LyX-Code
20533 Format PDFLaTeX
20534 \end_layout
20535
20536 \begin_layout LyX-Code
20537 TransformCommand Rotate RotationLatexCommand
20538 \end_layout
20539
20540 \begin_layout LyX-Code
20541 TransformCommand Resize ResizeLatexCommand
20542 \end_layout
20543
20544 \begin_layout LyX-Code
20545 Product "$$RotateFront$$ResizeFront
20546 \end_layout
20547
20548 \begin_layout LyX-Code
20549          
20550 \backslash
20551
20552 \backslash
20553 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20554 \end_layout
20555
20556 \begin_layout LyX-Code
20557          $$ResizeBack$$RotateBack"
20558 \end_layout
20559
20560 \begin_layout LyX-Code
20561 UpdateFormat pdftex
20562 \end_layout
20563
20564 \begin_layout LyX-Code
20565 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20566 \end_layout
20567
20568 \begin_layout LyX-Code
20569 Requirement "graphicx"
20570 \end_layout
20571
20572 \begin_layout LyX-Code
20573 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20574 \end_layout
20575
20576 \begin_layout LyX-Code
20577 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20578 \end_layout
20579
20580 \begin_layout LyX-Code
20581 FormatEnd
20582 \end_layout
20583
20584 \begin_layout LyX-Code
20585 Format Ascii
20586 \end_layout
20587
20588 \begin_layout LyX-Code
20589 Product "[XFig: $$FName]"
20590 \end_layout
20591
20592 \begin_layout LyX-Code
20593 FormatEnd
20594 \end_layout
20595
20596 \begin_layout LyX-Code
20597 Format DocBook
20598 \end_layout
20599
20600 \begin_layout LyX-Code
20601 Product "<graphic fileref=
20602 \backslash
20603 "$$AbsOrRelPathMaster$$Basename.eps
20604 \backslash
20605 ">
20606 \end_layout
20607
20608 \begin_layout LyX-Code
20609          </graphic>"
20610 \end_layout
20611
20612 \begin_layout LyX-Code
20613 UpdateFormat eps
20614 \end_layout
20615
20616 \begin_layout LyX-Code
20617 UpdateResult "$$AbsPath$$Basename.eps"
20618 \end_layout
20619
20620 \begin_layout LyX-Code
20621 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20622 \end_layout
20623
20624 \begin_layout LyX-Code
20625 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20626 \end_layout
20627
20628 \begin_layout LyX-Code
20629 FormatEnd
20630 \end_layout
20631
20632 \begin_layout LyX-Code
20633 TemplateEnd
20634 \end_layout
20635
20636 \begin_layout Standard
20637 ご覧の通り,ひな型は
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 Template
20643 \end_layout
20644
20645 \end_inset
20646
20647  \SpecialChar ldots
20648  
20649 \begin_inset Flex Code
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 TemplateEnd
20654 \end_layout
20655
20656 \end_inset
20657
20658 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20659 \begin_inset Flex Code
20660 status collapsed
20661
20662 \begin_layout Plain Layout
20663 Format
20664 \end_layout
20665
20666 \end_inset
20667
20668  \SpecialChar ldots
20669  
20670 \begin_inset Flex Code
20671 status collapsed
20672
20673 \begin_layout Plain Layout
20674 FormatEnd
20675 \end_layout
20676
20677 \end_inset
20678
20679 部があります.
20680 \end_layout
20681
20682 \begin_layout Subsection
20683 ひな型のヘッダ
20684 \end_layout
20685
20686 \begin_layout Description
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 AutomaticProduction
20692 \begin_inset space ~
20693 \end_inset
20694
20695 true|false
20696 \end_layout
20697
20698 \end_inset
20699
20700  このひな型で扱うファイルを\SpecialChar LyX
20701 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20702 \end_layout
20703
20704 \begin_layout Description
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 FileFilter
20710 \begin_inset space ~
20711 \end_inset
20712
20713 <パターン>
20714 \end_layout
20715
20716 \end_inset
20717
20718  望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20719 \begin_inset Flex Code
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723 .obj
20724 \end_layout
20725
20726 \end_inset
20727
20728
20729 \begin_inset Flex Code
20730 status collapsed
20731
20732 \begin_layout Plain Layout
20733 .tgo
20734 \end_layout
20735
20736 \end_inset
20737
20738 があります),「
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 *.{obj,tgo}
20744 \end_layout
20745
20746 \end_inset
20747
20748 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20749 \end_layout
20750
20751 \begin_layout Description
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 GuiName
20757 \begin_inset space ~
20758 \end_inset
20759
20760 <GUI名>
20761 \end_layout
20762
20763 \end_inset
20764
20765  この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20766 \end_layout
20767
20768 \begin_layout Description
20769 \begin_inset Flex Code
20770 status collapsed
20771
20772 \begin_layout Plain Layout
20773 HelpText
20774 \begin_inset space ~
20775 \end_inset
20776
20777 <文章>
20778 \begin_inset space ~
20779 \end_inset
20780
20781 HelpTextEnd
20782 \end_layout
20783
20784 \end_inset
20785
20786  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20787 ず現れなくてはなりません.
20788 \end_layout
20789
20790 \begin_layout Description
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 InputFormat
20796 \begin_inset space ~
20797 \end_inset
20798
20799 <書式>
20800 \end_layout
20801
20802 \end_inset
20803
20804  オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20805 が知っている書式名でなくてはなりません(
20806 \begin_inset CommandInset ref
20807 LatexCommand ref
20808 reference "sec:ファイル形式"
20809
20810 \end_inset
20811
20812 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 *
20818 \end_layout
20819
20820 \end_inset
20821
20822 」を使用してください.この場合,\SpecialChar LyX
20823 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20824 \end_layout
20825
20826 \begin_layout Description
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 Template
20832 \begin_inset space ~
20833 \end_inset
20834
20835 <ID>
20836 \end_layout
20837
20838 \end_inset
20839
20840  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20841 \end_layout
20842
20843 \begin_layout Description
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 Transform
20849 \begin_inset space ~
20850 \end_inset
20851
20852 Rotate|Resize|Clip|Extra
20853 \end_layout
20854
20855 \end_inset
20856
20857  このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20858 ログ中の対応するタブを使用可能にします.
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 Transform
20864 \end_layout
20865
20866 \end_inset
20867
20868 コマンド一つずつに応じて,
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 Format
20874 \end_layout
20875
20876 \end_inset
20877
20878 部に,対応する
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 TransformCommand
20884 \end_layout
20885
20886 \end_inset
20887
20888 コマンドか
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 TransformOption
20894 \end_layout
20895
20896 \end_inset
20897
20898 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20899 \end_layout
20900
20901 \begin_layout Subsection
20902 \begin_inset Flex Code
20903 status collapsed
20904
20905 \begin_layout Plain Layout
20906 Format
20907 \end_layout
20908
20909 \end_inset
20910
20911
20912 \end_layout
20913
20914 \begin_layout Description
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 Format
20920 \begin_inset space ~
20921 \end_inset
20922
20923 LaTeX|PDFLaTeX|PlainText|DocBook
20924 \end_layout
20925
20926 \end_inset
20927
20928  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 Format
20934 \end_layout
20935
20936 \end_inset
20937
20938 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20939 ようになります.
20940 \end_layout
20941
20942 \begin_layout Description
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 Option
20948 \begin_inset space ~
20949 \end_inset
20950
20951 <名称>
20952 \begin_inset space ~
20953 \end_inset
20954
20955 <値>
20956 \end_layout
20957
20958 \end_inset
20959
20960  このコマンドは,
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 Product
20966 \end_layout
20967
20968 \end_inset
20969
20970 での代入に使うマクロ
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 $$<名称>
20976 \end_layout
20977
20978 \end_inset
20979
20980 を新たに定義します.
20981 \begin_inset Flex Code
20982 status collapsed
20983
20984 \begin_layout Plain Layout
20985 <値>
20986 \end_layout
20987
20988 \end_inset
20989
20990 自体にも代入マクロを使うことができます.
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 Product
20996 \end_layout
20997
20998 \end_inset
20999
21000
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 <値>
21006 \end_layout
21007
21008 \end_inset
21009
21010 を直接使用するよりも優れた点は,
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 $$<名称>
21016 \end_layout
21017
21018 \end_inset
21019
21020 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
21021 \end_layout
21022
21023 \begin_layout Description
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 Product
21029 \begin_inset space ~
21030 \end_inset
21031
21032 <文>
21033 \end_layout
21034
21035 \end_inset
21036
21037  書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
21038
21039 \end_layout
21040
21041 \begin_layout Description
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 Preamble
21047 \begin_inset space ~
21048 \end_inset
21049
21050 <名称>
21051 \end_layout
21052
21053 \end_inset
21054
21055  このコマンドは,\SpecialChar LaTeX
21056 プリアンブルに入れるプリアンブル片を指定します.これは
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 PreambleDef
21062 \end_layout
21063
21064 \end_inset
21065
21066  \SpecialChar ldots
21067  
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 PreambleDefEnd
21073 \end_layout
21074
21075 \end_inset
21076
21077 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21078 \end_layout
21079
21080 \begin_layout Description
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 ReferencedFile
21086 \begin_inset space ~
21087 \end_inset
21088
21089 <書式>
21090 \begin_inset space ~
21091 \end_inset
21092
21093 <ファイル名>
21094 \end_layout
21095
21096 \end_inset
21097
21098  このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21099 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21100 \end_layout
21101
21102 \begin_layout Description
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 Requirement
21108 \begin_inset space ~
21109 \end_inset
21110
21111 <package>
21112 \end_layout
21113
21114 \end_inset
21115
21116  必要とされる\SpecialChar LaTeX
21117 パッケージ名.パッケージは,\SpecialChar LaTeX
21118 プリアンブル中で
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123
21124 \backslash
21125 usepackage{}
21126 \end_layout
21127
21128 \end_inset
21129
21130 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21131 \end_layout
21132
21133 \begin_layout Description
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 TransformCommand
21139 \begin_inset space ~
21140 \end_inset
21141
21142 Rotate
21143 \begin_inset space ~
21144 \end_inset
21145
21146 RotationLatexCommand
21147 \end_layout
21148
21149 \end_inset
21150
21151  このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21152 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21153 \end_layout
21154
21155 \begin_layout Description
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 TransformCommand
21161 \begin_inset space ~
21162 \end_inset
21163
21164 Resize
21165 \begin_inset space ~
21166 \end_inset
21167
21168 ResizeLatexCommand
21169 \end_layout
21170
21171 \end_inset
21172
21173  このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21174 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21175 \end_layout
21176
21177 \begin_layout Description
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 TransformOption
21183 \begin_inset space ~
21184 \end_inset
21185
21186 Rotate
21187 \begin_inset space ~
21188 \end_inset
21189
21190 RotationLatexOption
21191 \end_layout
21192
21193 \end_inset
21194
21195  このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21196 \end_layout
21197
21198 \begin_layout Description
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 TransformOption
21204 \begin_inset space ~
21205 \end_inset
21206
21207 Resize
21208 \begin_inset space ~
21209 \end_inset
21210
21211 ResizeLatexOption
21212 \end_layout
21213
21214 \end_inset
21215
21216  このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21217 \end_layout
21218
21219 \begin_layout Description
21220 \begin_inset Flex Code
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224 TransformOption
21225 \begin_inset space ~
21226 \end_inset
21227
21228 Clip
21229 \begin_inset space ~
21230 \end_inset
21231
21232 ClipLatexOption
21233 \end_layout
21234
21235 \end_inset
21236
21237  このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21238 \end_layout
21239
21240 \begin_layout Description
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 TransformOption
21246 \begin_inset space ~
21247 \end_inset
21248
21249 Extra
21250 \begin_inset space ~
21251 \end_inset
21252
21253 ExtraLatexOption
21254 \end_layout
21255
21256 \end_inset
21257
21258  このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21259 \end_layout
21260
21261 \begin_layout Description
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266 UpdateFormat
21267 \begin_inset space ~
21268 \end_inset
21269
21270 <書式>
21271 \end_layout
21272
21273 \end_inset
21274
21275  変換されたファイルのファイル形式.これは,\SpecialChar LyX
21276 が知っている書式名でなくてはなりません(
21277 \begin_inset Flex MenuItem
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281 ツール\SpecialChar menuseparator
21282 設定\SpecialChar menuseparator
21283 ファイル処理\SpecialChar menuseparator
21284 ファイル書式
21285 \end_layout
21286
21287 \end_inset
21288
21289 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 pdf6
21295 \end_layout
21296
21297 \end_inset
21298
21299 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21300 \end_layout
21301
21302 \begin_layout Description
21303 \begin_inset Flex Code
21304 status collapsed
21305
21306 \begin_layout Plain Layout
21307 UpdateResult
21308 \begin_inset space ~
21309 \end_inset
21310
21311 <ファイル名>
21312 \end_layout
21313
21314 \end_inset
21315
21316  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21317 \end_layout
21318
21319 \begin_layout Subsection
21320 プリアンブルの定義
21321 \end_layout
21322
21323 \begin_layout Standard
21324 外用ひな型設定ファイルには,
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329 PreambleDef
21330 \end_layout
21331
21332 \end_inset
21333
21334  \SpecialChar ldots
21335  
21336 \begin_inset Flex Code
21337 status collapsed
21338
21339 \begin_layout Plain Layout
21340 PreambleDefEnd
21341 \end_layout
21342
21343 \end_inset
21344
21345 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 Format
21351 \end_layout
21352
21353 \end_inset
21354
21355 部で使用することができます.
21356 \end_layout
21357
21358 \begin_layout Section
21359 代入機構
21360 \end_layout
21361
21362 \begin_layout Standard
21363 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21364 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21365 \end_layout
21366
21367 \begin_layout Standard
21368 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21369 \end_layout
21370
21371 \begin_layout Standard
21372 使用できるマクロは以下の通りです.
21373 \end_layout
21374
21375 \begin_layout Description
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 $$AbsOrRelPathMaster
21381 \end_layout
21382
21383 \end_inset
21384
21385  \SpecialChar LyX
21386 親文書への絶対ファイルパスないしは相対ファイルパス
21387 \end_layout
21388
21389 \begin_layout Description
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 $$AbsOrRelPathParent
21395 \end_layout
21396
21397 \end_inset
21398
21399  \SpecialChar LyX
21400 文書への絶対ファイルパスないしは相対ファイルパス
21401 \end_layout
21402
21403 \begin_layout Description
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 $$AbsPath
21409 \end_layout
21410
21411 \end_inset
21412
21413  絶対ファイルパス
21414 \end_layout
21415
21416 \begin_layout Description
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 $$Basename
21422 \end_layout
21423
21424 \end_inset
21425
21426  パスおよび拡張子を除いたファイル名
21427 \end_layout
21428
21429 \begin_layout Description
21430 \begin_inset Flex Code
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 $$Contents(
21435 \begin_inset Quotes eld
21436 \end_inset
21437
21438 filename.ext
21439 \begin_inset Quotes erd
21440 \end_inset
21441
21442 )
21443 \end_layout
21444
21445 \end_inset
21446
21447  このマクロは,
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 filename.ext
21453 \end_layout
21454
21455 \end_inset
21456
21457 と云う名のファイルの中身を展開します.
21458 \end_layout
21459
21460 \begin_layout Description
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 $$Extension
21466 \end_layout
21467
21468 \end_inset
21469
21470  ファイル拡張子(点を含む)
21471 \end_layout
21472
21473 \begin_layout Description
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 $$pngOrjpg
21479 \end_layout
21480
21481 \end_inset
21482
21483  これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21484 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21485 出力形式に対してこのマクロを使用します.
21486 \end_layout
21487
21488 \begin_layout Description
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 $$FName
21494 \end_layout
21495
21496 \end_inset
21497
21498  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21499 文書への絶対パスでも良いですし,相対パスでも構いません.
21500 \end_layout
21501
21502 \begin_layout Description
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507 $$FPath
21508 \end_layout
21509
21510 \end_inset
21511
21512  
21513 \begin_inset Flex Code
21514 status collapsed
21515
21516 \begin_layout Plain Layout
21517 $$FName
21518 \end_layout
21519
21520 \end_inset
21521
21522 のパス部分(\SpecialChar LyX
21523 文書への絶対パス名か相対パス名)
21524 \end_layout
21525
21526 \begin_layout Description
21527 \begin_inset Flex Code
21528 status collapsed
21529
21530 \begin_layout Plain Layout
21531 $$RelPathMaster
21532 \end_layout
21533
21534 \end_inset
21535
21536  \SpecialChar LyX
21537 親文書への相対ファイルパス
21538 \end_layout
21539
21540 \begin_layout Description
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 $$RelPathParent
21546 \end_layout
21547
21548 \end_inset
21549
21550  \SpecialChar LyX
21551 文書への相対ファイルパス
21552 \end_layout
21553
21554 \begin_layout Description
21555 \begin_inset Flex Code
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 $$Sysdir
21560 \end_layout
21561
21562 \end_inset
21563
21564  このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21565 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21566 \end_layout
21567
21568 \begin_layout Description
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 $$Tempname
21574 \end_layout
21575
21576 \end_inset
21577
21578  元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21579 \end_layout
21580
21581 \begin_layout Standard
21582 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を 
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587 $$AbsPath$$Basename$$Extension
21588 \end_layout
21589
21590 \end_inset
21591
21592 のようにして作ることができます.
21593 \end_layout
21594
21595 \begin_layout Standard
21596 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601 Transform
21602 \end_layout
21603
21604 \end_inset
21605
21606 コマンドと
21607 \begin_inset Flex Code
21608 status collapsed
21609
21610 \begin_layout Plain Layout
21611 TransformCommand
21612 \end_layout
21613
21614 \end_inset
21615
21616 コマンドが有効にされている場合,
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 Product
21622 \end_layout
21623
21624 \end_inset
21625
21626 コマンドは,これらに加えて以下の代入もサポートします.
21627 \end_layout
21628
21629 \begin_layout Description
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 $$ResizeFront
21635 \end_layout
21636
21637 \end_inset
21638
21639  伸縮コマンドの前置部.
21640 \end_layout
21641
21642 \begin_layout Description
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 $$ResizeBack
21648 \end_layout
21649
21650 \end_inset
21651
21652  伸縮コマンドの後置部.
21653 \end_layout
21654
21655 \begin_layout Description
21656 \begin_inset Flex Code
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 $$RotateFront
21661 \end_layout
21662
21663 \end_inset
21664
21665  回転コマンドの前置部.
21666 \end_layout
21667
21668 \begin_layout Description
21669 \begin_inset Flex Code
21670 status collapsed
21671
21672 \begin_layout Plain Layout
21673 $$RotateBack
21674 \end_layout
21675
21676 \end_inset
21677
21678  回転コマンドの後置部.
21679 \end_layout
21680
21681 \begin_layout Standard
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 Option
21687 \end_layout
21688
21689 \end_inset
21690
21691 コマンドの値に入れる文字列では,
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696 Transform
21697 \end_layout
21698
21699 \end_inset
21700
21701 コマンドと
21702 \begin_inset Flex Code
21703 status collapsed
21704
21705 \begin_layout Plain Layout
21706 TransformOption
21707 \end_layout
21708
21709 \end_inset
21710
21711 コマンドが有効にされていれば,以下の代入もサポートされます.
21712 \end_layout
21713
21714 \begin_layout Description
21715 \begin_inset Flex Code
21716 status collapsed
21717
21718 \begin_layout Plain Layout
21719 $$Clip
21720 \end_layout
21721
21722 \end_inset
21723
21724  切り抜きオプション.
21725 \end_layout
21726
21727 \begin_layout Description
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732 $$Extra
21733 \end_layout
21734
21735 \end_inset
21736
21737  追加オプション.
21738 \end_layout
21739
21740 \begin_layout Description
21741 \begin_inset Flex Code
21742 status collapsed
21743
21744 \begin_layout Plain Layout
21745 $$Resize
21746 \end_layout
21747
21748 \end_inset
21749
21750  伸縮オプション.
21751 \end_layout
21752
21753 \begin_layout Description
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 $$Rotate
21759 \end_layout
21760
21761 \end_inset
21762
21763  回転オプション.
21764 \end_layout
21765
21766 \begin_layout Standard
21767 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21768 \end_layout
21769
21770 \begin_layout Enumerate
21771 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21772 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21773 \end_layout
21774
21775 \begin_layout Enumerate
21776 \SpecialChar LaTeX
21777 は,相対ファイル名に関して,\SpecialChar LyX
21778 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21779 にとって相対ファイル名とは,常にこのファイル名が書か
21780 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21781 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21782 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21783 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21784 を選びさえすれば,これは\SpecialChar LyX
21785 が自動的に行ってくれます.
21786 \end_layout
21787
21788 \begin_layout Standard
21789 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21790 \end_layout
21791
21792 \begin_layout Itemize
21793 絶対パスが必要とされるときには
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 $$AbsPath
21799 \end_layout
21800
21801 \end_inset
21802
21803 を使う.
21804 \end_layout
21805
21806 \begin_layout Itemize
21807 代入された文字列が,\SpecialChar LaTeX
21808 インプットの一種である場合には,
21809 \begin_inset Flex Code
21810 status collapsed
21811
21812 \begin_layout Plain Layout
21813 $$AbsOrRelPathMaster
21814 \end_layout
21815
21816 \end_inset
21817
21818 を使う.
21819 \end_layout
21820
21821 \begin_layout Itemize
21822 それ以外ならば,ユーザの選択を尊重するために
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 $$AbsOrRelPathParent
21828 \end_layout
21829
21830 \end_inset
21831
21832 を使う.
21833 \end_layout
21834
21835 \begin_layout Standard
21836 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21837 \begin_inset Flex Code
21838 status collapsed
21839
21840 \begin_layout Plain Layout
21841 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21842 \end_layout
21843
21844 \end_inset
21845
21846 というコマンドがあります.この場合,
21847 \begin_inset Flex Code
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851 .pstex_t
21852 \end_layout
21853
21854 \end_inset
21855
21856 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21857 \end_layout
21858
21859 \begin_layout Section
21860 セキュリティに関する論点
21861 \begin_inset CommandInset label
21862 LatexCommand label
21863 name "sec:セキュリティに関する論点"
21864
21865 \end_inset
21866
21867
21868 \end_layout
21869
21870 \begin_layout Standard
21871 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21872 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21873 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21874 \end_layout
21875
21876 \begin_layout Standard
21877 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21878 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21879 せん.これは,外部プログラムが
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884 system
21885 \end_layout
21886
21887 \end_inset
21888
21889 システムコールではなく,
21890 \begin_inset Flex Code
21891 status collapsed
21892
21893 \begin_layout Plain Layout
21894 execvp
21895 \end_layout
21896
21897 \end_inset
21898
21899 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21900 \end_layout
21901
21902 \begin_layout Standard
21903 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21904 できません.これは,\SpecialChar LyX
21905 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21906 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21907 \end_layout
21908
21909 \begin_layout Standard
21910 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21911 うになるため,一般的には,統御下に置いた状態で
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 execvp
21917 \end_layout
21918
21919 \end_inset
21920
21921 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21922 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21923 \emph on
21924 間違いなく
21925 \emph default
21926 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21927 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21928 には,安全でないひな型は決して入っていません
21929
21930 \end_layout
21931
21932 \begin_layout Standard
21933 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21934 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21935 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21936 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21937 使用する前に,行うようにしてください.
21938 \end_layout
21939
21940 \begin_layout Chapter
21941 \start_of_appendix
21942 サポートされているレイアウト用\SpecialChar LyX
21943 関数一覧
21944 \begin_inset CommandInset label
21945 LatexCommand label
21946 name "chap:関数一覧"
21947
21948 \end_inset
21949
21950
21951 \end_layout
21952
21953 \begin_layout Standard
21954 \align center
21955 \begin_inset Tabular
21956 <lyxtabular version="3" rows="11" columns="8">
21957 <features tabularvalignment="middle">
21958 <column alignment="left" valignment="top">
21959 <column alignment="left" valignment="top">
21960 <column alignment="left" valignment="top">
21961 <column alignment="left" valignment="top">
21962 <column alignment="left" valignment="top">
21963 <column alignment="left" valignment="top">
21964 <column alignment="left" valignment="top">
21965 <column alignment="left" valignment="top">
21966 <row>
21967 <cell alignment="left" valignment="top" usebox="none">
21968 \begin_inset Text
21969
21970 \begin_layout Plain Layout
21971 accents
21972 \end_layout
21973
21974 \end_inset
21975 </cell>
21976 <cell alignment="left" valignment="top" usebox="none">
21977 \begin_inset Text
21978
21979 \begin_layout Plain Layout
21980 booktabs
21981 \end_layout
21982
21983 \end_inset
21984 </cell>
21985 <cell alignment="left" valignment="top" usebox="none">
21986 \begin_inset Text
21987
21988 \begin_layout Plain Layout
21989 feyn
21990 \end_layout
21991
21992 \end_inset
21993 </cell>
21994 <cell alignment="left" valignment="top" usebox="none">
21995 \begin_inset Text
21996
21997 \begin_layout Plain Layout
21998 listings
21999 \end_layout
22000
22001 \end_inset
22002 </cell>
22003 <cell alignment="center" valignment="top" usebox="none">
22004 \begin_inset Text
22005
22006 \begin_layout Plain Layout
22007 natbib
22008 \end_layout
22009
22010 \end_inset
22011 </cell>
22012 <cell alignment="center" valignment="top" usebox="none">
22013 \begin_inset Text
22014
22015 \begin_layout Plain Layout
22016 rotfloat
22017 \end_layout
22018
22019 \end_inset
22020 </cell>
22021 <cell alignment="center" valignment="top" usebox="none">
22022 \begin_inset Text
22023
22024 \begin_layout Plain Layout
22025 tfrupee
22026 \end_layout
22027
22028 \end_inset
22029 </cell>
22030 <cell alignment="center" valignment="top" usebox="none">
22031 \begin_inset Text
22032
22033 \begin_layout Plain Layout
22034 wasysym
22035 \end_layout
22036
22037 \end_inset
22038 </cell>
22039 </row>
22040 <row>
22041 <cell alignment="left" valignment="top" usebox="none">
22042 \begin_inset Text
22043
22044 \begin_layout Plain Layout
22045 amsbsy
22046 \end_layout
22047
22048 \end_inset
22049 </cell>
22050 <cell alignment="left" valignment="top" usebox="none">
22051 \begin_inset Text
22052
22053 \begin_layout Plain Layout
22054 calc
22055 \end_layout
22056
22057 \end_inset
22058 </cell>
22059 <cell alignment="left" valignment="top" usebox="none">
22060 \begin_inset Text
22061
22062 \begin_layout Plain Layout
22063 fixltx2e
22064 \end_layout
22065
22066 \end_inset
22067 </cell>
22068 <cell alignment="left" valignment="top" usebox="none">
22069 \begin_inset Text
22070
22071 \begin_layout Plain Layout
22072 longtable
22073 \end_layout
22074
22075 \end_inset
22076 </cell>
22077 <cell alignment="center" valignment="top" usebox="none">
22078 \begin_inset Text
22079
22080 \begin_layout Plain Layout
22081 nomencl
22082 \end_layout
22083
22084 \end_inset
22085 </cell>
22086 <cell alignment="center" valignment="top" usebox="none">
22087 \begin_inset Text
22088
22089 \begin_layout Plain Layout
22090 rsphrase
22091 \end_layout
22092
22093 \end_inset
22094 </cell>
22095 <cell alignment="center" valignment="top" usebox="none">
22096 \begin_inset Text
22097
22098 \begin_layout Plain Layout
22099 tipa
22100 \end_layout
22101
22102 \end_inset
22103 </cell>
22104 <cell alignment="center" valignment="top" usebox="none">
22105 \begin_inset Text
22106
22107 \begin_layout Plain Layout
22108 wrapfig
22109 \end_layout
22110
22111 \end_inset
22112 </cell>
22113 </row>
22114 <row>
22115 <cell alignment="left" valignment="top" usebox="none">
22116 \begin_inset Text
22117
22118 \begin_layout Plain Layout
22119 amscd
22120 \end_layout
22121
22122 \end_inset
22123 </cell>
22124 <cell alignment="left" valignment="top" usebox="none">
22125 \begin_inset Text
22126
22127 \begin_layout Plain Layout
22128 CJK
22129 \end_layout
22130
22131 \end_inset
22132 </cell>
22133 <cell alignment="left" valignment="top" usebox="none">
22134 \begin_inset Text
22135
22136 \begin_layout Plain Layout
22137 float
22138 \end_layout
22139
22140 \end_inset
22141 </cell>
22142 <cell alignment="left" valignment="top" usebox="none">
22143 \begin_inset Text
22144
22145 \begin_layout Plain Layout
22146 lyxskak
22147 \end_layout
22148
22149 \end_inset
22150 </cell>
22151 <cell alignment="center" valignment="top" usebox="none">
22152 \begin_inset Text
22153
22154 \begin_layout Plain Layout
22155 pdfcolmk
22156 \end_layout
22157
22158 \end_inset
22159 </cell>
22160 <cell alignment="center" valignment="top" usebox="none">
22161 \begin_inset Text
22162
22163 \begin_layout Plain Layout
22164 setspace
22165 \end_layout
22166
22167 \end_inset
22168 </cell>
22169 <cell alignment="center" valignment="top" usebox="none">
22170 \begin_inset Text
22171
22172 \begin_layout Plain Layout
22173 tipx
22174 \end_layout
22175
22176 \end_inset
22177 </cell>
22178 <cell alignment="center" valignment="top" usebox="none">
22179 \begin_inset Text
22180
22181 \begin_layout Plain Layout
22182 xargs
22183 \end_layout
22184
22185 \end_inset
22186 </cell>
22187 </row>
22188 <row>
22189 <cell alignment="left" valignment="top" usebox="none">
22190 \begin_inset Text
22191
22192 \begin_layout Plain Layout
22193 amsmath
22194 \end_layout
22195
22196 \end_inset
22197 </cell>
22198 <cell alignment="left" valignment="top" usebox="none">
22199 \begin_inset Text
22200
22201 \begin_layout Plain Layout
22202 color
22203 \end_layout
22204
22205 \end_inset
22206 </cell>
22207 <cell alignment="left" valignment="top" usebox="none">
22208 \begin_inset Text
22209
22210 \begin_layout Plain Layout
22211 framed
22212 \end_layout
22213
22214 \end_inset
22215 </cell>
22216 <cell alignment="left" valignment="top" usebox="none">
22217 \begin_inset Text
22218
22219 \begin_layout Plain Layout
22220 makeidx
22221 \end_layout
22222
22223 \end_inset
22224 </cell>
22225 <cell alignment="center" valignment="top" usebox="none">
22226 \begin_inset Text
22227
22228 \begin_layout Plain Layout
22229 pdfpages
22230 \end_layout
22231
22232 \end_inset
22233 </cell>
22234 <cell alignment="center" valignment="top" usebox="none">
22235 \begin_inset Text
22236
22237 \begin_layout Plain Layout
22238 shapepar
22239 \end_layout
22240
22241 \end_inset
22242 </cell>
22243 <cell alignment="center" valignment="top" usebox="none">
22244 \begin_inset Text
22245
22246 \begin_layout Plain Layout
22247 tone
22248 \end_layout
22249
22250 \end_inset
22251 </cell>
22252 <cell alignment="center" valignment="top" usebox="none">
22253 \begin_inset Text
22254
22255 \begin_layout Plain Layout
22256 xcolor
22257 \end_layout
22258
22259 \end_inset
22260 </cell>
22261 </row>
22262 <row>
22263 <cell alignment="left" valignment="top" usebox="none">
22264 \begin_inset Text
22265
22266 \begin_layout Plain Layout
22267 amssymb
22268 \end_layout
22269
22270 \end_inset
22271 </cell>
22272 <cell alignment="left" valignment="top" usebox="none">
22273 \begin_inset Text
22274
22275 \begin_layout Plain Layout
22276 covington
22277 \end_layout
22278
22279 \end_inset
22280 </cell>
22281 <cell alignment="left" valignment="top" usebox="none">
22282 \begin_inset Text
22283
22284 \begin_layout Plain Layout
22285 graphicx
22286 \end_layout
22287
22288 \end_inset
22289 </cell>
22290 <cell alignment="left" valignment="top" usebox="none">
22291 \begin_inset Text
22292
22293 \begin_layout Plain Layout
22294 marvosym
22295 \end_layout
22296
22297 \end_inset
22298 </cell>
22299 <cell alignment="center" valignment="top" usebox="none">
22300 \begin_inset Text
22301
22302 \begin_layout Plain Layout
22303 pifont
22304 \end_layout
22305
22306 \end_inset
22307 </cell>
22308 <cell alignment="center" valignment="top" usebox="none">
22309 \begin_inset Text
22310
22311 \begin_layout Plain Layout
22312 slashed
22313 \end_layout
22314
22315 \end_inset
22316 </cell>
22317 <cell alignment="center" valignment="top" usebox="none">
22318 \begin_inset Text
22319
22320 \begin_layout Plain Layout
22321 txfonts
22322 \end_layout
22323
22324 \end_inset
22325 </cell>
22326 <cell alignment="center" valignment="top" usebox="none">
22327 \begin_inset Text
22328
22329 \begin_layout Plain Layout
22330 xy
22331 \end_layout
22332
22333 \end_inset
22334 </cell>
22335 </row>
22336 <row>
22337 <cell alignment="left" valignment="top" usebox="none">
22338 \begin_inset Text
22339
22340 \begin_layout Plain Layout
22341 amstext
22342 \end_layout
22343
22344 \end_inset
22345 </cell>
22346 <cell alignment="left" valignment="top" usebox="none">
22347 \begin_inset Text
22348
22349 \begin_layout Plain Layout
22350 csquotes
22351 \end_layout
22352
22353 \end_inset
22354 </cell>
22355 <cell alignment="left" valignment="top" usebox="none">
22356 \begin_inset Text
22357
22358 \begin_layout Plain Layout
22359 hhline
22360 \end_layout
22361
22362 \end_inset
22363 </cell>
22364 <cell alignment="left" valignment="top" usebox="none">
22365 \begin_inset Text
22366
22367 \begin_layout Plain Layout
22368 mathdesign
22369 \end_layout
22370
22371 \end_inset
22372 </cell>
22373 <cell alignment="center" valignment="top" usebox="none">
22374 \begin_inset Text
22375
22376 \begin_layout Plain Layout
22377 pmboxdraw
22378 \end_layout
22379
22380 \end_inset
22381 </cell>
22382 <cell alignment="center" valignment="top" usebox="none">
22383 \begin_inset Text
22384
22385 \begin_layout Plain Layout
22386 soul
22387 \end_layout
22388
22389 \end_inset
22390 </cell>
22391 <cell alignment="center" valignment="top" usebox="none">
22392 \begin_inset Text
22393
22394 \begin_layout Plain Layout
22395 ulem
22396 \end_layout
22397
22398 \end_inset
22399 </cell>
22400 <cell alignment="center" valignment="top" usebox="none">
22401 \begin_inset Text
22402
22403 \begin_layout Plain Layout
22404 yhmath
22405 \end_layout
22406
22407 \end_inset
22408 </cell>
22409 </row>
22410 <row>
22411 <cell alignment="left" valignment="top" usebox="none">
22412 \begin_inset Text
22413
22414 \begin_layout Plain Layout
22415 amsthm
22416 \end_layout
22417
22418 \end_inset
22419 </cell>
22420 <cell alignment="left" valignment="top" usebox="none">
22421 \begin_inset Text
22422
22423 \begin_layout Plain Layout
22424 dvipost
22425 \end_layout
22426
22427 \end_inset
22428 </cell>
22429 <cell alignment="left" valignment="top" usebox="none">
22430 \begin_inset Text
22431
22432 \begin_layout Plain Layout
22433 hyperref
22434 \end_layout
22435
22436 \end_inset
22437 </cell>
22438 <cell alignment="left" valignment="top" usebox="none">
22439 \begin_inset Text
22440
22441 \begin_layout Plain Layout
22442 mathdots
22443 \end_layout
22444
22445 \end_inset
22446 </cell>
22447 <cell alignment="center" valignment="top" usebox="none">
22448 \begin_inset Text
22449
22450 \begin_layout Plain Layout
22451 polyglossia
22452 \end_layout
22453
22454 \end_inset
22455 </cell>
22456 <cell alignment="center" valignment="top" usebox="none">
22457 \begin_inset Text
22458
22459 \begin_layout Plain Layout
22460 splitidx
22461 \end_layout
22462
22463 \end_inset
22464 </cell>
22465 <cell alignment="center" valignment="top" usebox="none">
22466 \begin_inset Text
22467
22468 \begin_layout Plain Layout
22469 undertilde
22470 \end_layout
22471
22472 \end_inset
22473 </cell>
22474 <cell alignment="center" valignment="top" usebox="none">
22475 \begin_inset Text
22476
22477 \begin_layout Plain Layout
22478
22479 \end_layout
22480
22481 \end_inset
22482 </cell>
22483 </row>
22484 <row>
22485 <cell alignment="left" valignment="top" usebox="none">
22486 \begin_inset Text
22487
22488 \begin_layout Plain Layout
22489 array
22490 \end_layout
22491
22492 \end_inset
22493 </cell>
22494 <cell alignment="left" valignment="top" usebox="none">
22495 \begin_inset Text
22496
22497 \begin_layout Plain Layout
22498 endnotes
22499 \end_layout
22500
22501 \end_inset
22502 </cell>
22503 <cell alignment="left" valignment="top" usebox="none">
22504 \begin_inset Text
22505
22506 \begin_layout Plain Layout
22507 ifsym
22508 \end_layout
22509
22510 \end_inset
22511 </cell>
22512 <cell alignment="left" valignment="top" usebox="none">
22513 \begin_inset Text
22514
22515 \begin_layout Plain Layout
22516 mathrsfs
22517 \end_layout
22518
22519 \end_inset
22520 </cell>
22521 <cell alignment="center" valignment="top" usebox="none">
22522 \begin_inset Text
22523
22524 \begin_layout Plain Layout
22525 prettyref
22526 \end_layout
22527
22528 \end_inset
22529 </cell>
22530 <cell alignment="center" valignment="top" usebox="none">
22531 \begin_inset Text
22532
22533 \begin_layout Plain Layout
22534 subfig
22535 \end_layout
22536
22537 \end_inset
22538 </cell>
22539 <cell alignment="center" valignment="top" usebox="none">
22540 \begin_inset Text
22541
22542 \begin_layout Plain Layout
22543 units
22544 \end_layout
22545
22546 \end_inset
22547 </cell>
22548 <cell alignment="center" valignment="top" usebox="none">
22549 \begin_inset Text
22550
22551 \begin_layout Plain Layout
22552
22553 \end_layout
22554
22555 \end_inset
22556 </cell>
22557 </row>
22558 <row>
22559 <cell alignment="left" valignment="top" usebox="none">
22560 \begin_inset Text
22561
22562 \begin_layout Plain Layout
22563 ascii
22564 \end_layout
22565
22566 \end_inset
22567 </cell>
22568 <cell alignment="left" valignment="top" usebox="none">
22569 \begin_inset Text
22570
22571 \begin_layout Plain Layout
22572 enumitem
22573 \end_layout
22574
22575 \end_inset
22576 </cell>
22577 <cell alignment="left" valignment="top" usebox="none">
22578 \begin_inset Text
22579
22580 \begin_layout Plain Layout
22581 ifthen
22582 \end_layout
22583
22584 \end_inset
22585 </cell>
22586 <cell alignment="left" valignment="top" usebox="none">
22587 \begin_inset Text
22588
22589 \begin_layout Plain Layout
22590 mhchem
22591 \end_layout
22592
22593 \end_inset
22594 </cell>
22595 <cell alignment="center" valignment="top" usebox="none">
22596 \begin_inset Text
22597
22598 \begin_layout Plain Layout
22599 pxfonts
22600 \end_layout
22601
22602 \end_inset
22603 </cell>
22604 <cell alignment="center" valignment="top" usebox="none">
22605 \begin_inset Text
22606
22607 \begin_layout Plain Layout
22608 subscript
22609 \end_layout
22610
22611 \end_inset
22612 </cell>
22613 <cell alignment="center" valignment="top" usebox="none">
22614 \begin_inset Text
22615
22616 \begin_layout Plain Layout
22617 url
22618 \end_layout
22619
22620 \end_inset
22621 </cell>
22622 <cell alignment="center" valignment="top" usebox="none">
22623 \begin_inset Text
22624
22625 \begin_layout Plain Layout
22626
22627 \end_layout
22628
22629 \end_inset
22630 </cell>
22631 </row>
22632 <row>
22633 <cell alignment="left" valignment="top" usebox="none">
22634 \begin_inset Text
22635
22636 \begin_layout Plain Layout
22637 bbding
22638 \end_layout
22639
22640 \end_inset
22641 </cell>
22642 <cell alignment="left" valignment="top" usebox="none">
22643 \begin_inset Text
22644
22645 \begin_layout Plain Layout
22646 esint
22647 \end_layout
22648
22649 \end_inset
22650 </cell>
22651 <cell alignment="left" valignment="top" usebox="none">
22652 \begin_inset Text
22653
22654 \begin_layout Plain Layout
22655 jurabib
22656 \end_layout
22657
22658 \end_inset
22659 </cell>
22660 <cell alignment="left" valignment="top" usebox="none">
22661 \begin_inset Text
22662
22663 \begin_layout Plain Layout
22664 multicol
22665 \end_layout
22666
22667 \end_inset
22668 </cell>
22669 <cell alignment="center" valignment="top" usebox="none">
22670 \begin_inset Text
22671
22672 \begin_layout Plain Layout
22673 refstyle
22674 \end_layout
22675
22676 \end_inset
22677 </cell>
22678 <cell alignment="center" valignment="top" usebox="none">
22679 \begin_inset Text
22680
22681 \begin_layout Plain Layout
22682 textcomp
22683 \end_layout
22684
22685 \end_inset
22686 </cell>
22687 <cell alignment="center" valignment="top" usebox="none">
22688 \begin_inset Text
22689
22690 \begin_layout Plain Layout
22691 varioref
22692 \end_layout
22693
22694 \end_inset
22695 </cell>
22696 <cell alignment="center" valignment="top" usebox="none">
22697 \begin_inset Text
22698
22699 \begin_layout Plain Layout
22700
22701 \end_layout
22702
22703 \end_inset
22704 </cell>
22705 </row>
22706 <row>
22707 <cell alignment="center" valignment="top" usebox="none">
22708 \begin_inset Text
22709
22710 \begin_layout Plain Layout
22711 bm
22712 \end_layout
22713
22714 \end_inset
22715 </cell>
22716 <cell alignment="center" valignment="top" usebox="none">
22717 \begin_inset Text
22718
22719 \begin_layout Plain Layout
22720 fancybox
22721 \end_layout
22722
22723 \end_inset
22724 </cell>
22725 <cell alignment="center" valignment="top" usebox="none">
22726 \begin_inset Text
22727
22728 \begin_layout Plain Layout
22729 latexsym
22730 \end_layout
22731
22732 \end_inset
22733 </cell>
22734 <cell alignment="center" valignment="top" usebox="none">
22735 \begin_inset Text
22736
22737 \begin_layout Plain Layout
22738 multirow
22739 \end_layout
22740
22741 \end_inset
22742 </cell>
22743 <cell alignment="center" valignment="top" usebox="none">
22744 \begin_inset Text
22745
22746 \begin_layout Plain Layout
22747 rotating
22748 \end_layout
22749
22750 \end_inset
22751 </cell>
22752 <cell alignment="center" valignment="top" usebox="none">
22753 \begin_inset Text
22754
22755 \begin_layout Plain Layout
22756 textgreek
22757 \end_layout
22758
22759 \end_inset
22760 </cell>
22761 <cell alignment="center" valignment="top" usebox="none">
22762 \begin_inset Text
22763
22764 \begin_layout Plain Layout
22765 verbatim
22766 \end_layout
22767
22768 \end_inset
22769 </cell>
22770 <cell alignment="center" valignment="top" usebox="none">
22771 \begin_inset Text
22772
22773 \begin_layout Plain Layout
22774
22775 \end_layout
22776
22777 \end_inset
22778 </cell>
22779 </row>
22780 </lyxtabular>
22781
22782 \end_inset
22783
22784
22785 \end_layout
22786
22787 \begin_layout Chapter
22788 レイアウトで使用できる色名
22789 \begin_inset CommandInset label
22790 LatexCommand label
22791 name "chap:色名"
22792
22793 \end_inset
22794
22795
22796 \end_layout
22797
22798 \begin_layout Standard
22799 ここに列挙されている色は標準色であり,\SpecialChar LyX
22800 設定で調整できるものです.
22801 \end_layout
22802
22803 \begin_layout Description
22804 none
22805 \series medium
22806  
22807 \series default
22808 特定の色ではありません – 透明か既定色です
22809 \end_layout
22810
22811 \begin_layout Description
22812 black
22813 \end_layout
22814
22815 \begin_layout Description
22816 white
22817 \end_layout
22818
22819 \begin_layout Description
22820 red
22821 \end_layout
22822
22823 \begin_layout Description
22824 green
22825 \end_layout
22826
22827 \begin_layout Description
22828 blue
22829 \end_layout
22830
22831 \begin_layout Description
22832 cyan
22833 \end_layout
22834
22835 \begin_layout Description
22836 magenta
22837 \end_layout
22838
22839 \begin_layout Description
22840 yellow
22841 \end_layout
22842
22843 \begin_layout Description
22844 added_space 空白マーカ色
22845 \end_layout
22846
22847 \begin_layout Description
22848 addedtext 追加された文章色
22849 \end_layout
22850
22851 \begin_layout Description
22852 appendix 付録マーカ色
22853 \end_layout
22854
22855 \begin_layout Description
22856 background 背景色
22857 \end_layout
22858
22859 \begin_layout Description
22860 bottomarea 下部領域色
22861 \end_layout
22862
22863 \begin_layout Description
22864 branchlabel 派生枝ラベル色
22865 \end_layout
22866
22867 \begin_layout Description
22868 buttonbg ボタンの背景色
22869 \end_layout
22870
22871 \begin_layout Description
22872 buttonhoverbg フォーカスを得ているボタンの背景色
22873 \end_layout
22874
22875 \begin_layout Description
22876 buttonframe 差込枠の縁色
22877 \end_layout
22878
22879 \begin_layout Description
22880 changebar 変更バー色
22881 \end_layout
22882
22883 \begin_layout Description
22884 changedtextauthor1 変更された文章:第1著者の色
22885 \end_layout
22886
22887 \begin_layout Description
22888 changedtextauthor2 変更された文章:第2著者の色
22889 \end_layout
22890
22891 \begin_layout Description
22892 changedtextauthor3 変更された文章:第3著者の色
22893 \end_layout
22894
22895 \begin_layout Description
22896 changedtextauthor4 変更された文章:第4著者の色
22897 \end_layout
22898
22899 \begin_layout Description
22900 changedtextauthor5 変更された文章:第5著者の色
22901 \end_layout
22902
22903 \begin_layout Description
22904 collapsable_inset_frame 畳み込み可能枠の縁色
22905 \end_layout
22906
22907 \begin_layout Description
22908 collapsable_inset_text 畳み込み可能枠の文字色
22909 \end_layout
22910
22911 \begin_layout Description
22912 command コマンド差込枠の文字色
22913 \end_layout
22914
22915 \begin_layout Description
22916 commandbg コマンド差込枠の背景色
22917 \end_layout
22918
22919 \begin_layout Description
22920 commandframe コマンド差込枠の縁色
22921 \end_layout
22922
22923 \begin_layout Description
22924 comment コメント色
22925 \end_layout
22926
22927 \begin_layout Description
22928 commentbg コメントの背景色
22929 \end_layout
22930
22931 \begin_layout Description
22932 cursor カーソル色
22933 \end_layout
22934
22935 \begin_layout Description
22936 deletedtext 削除された文章の色
22937 \end_layout
22938
22939 \begin_layout Description
22940 deletedtextmodifier 削除された文章の修飾子の色
22941 \end_layout
22942
22943 \begin_layout Description
22944 depthbar 余白部の階層表示線の色
22945 \end_layout
22946
22947 \begin_layout Description
22948 eolmarker 行末標色
22949 \end_layout
22950
22951 \begin_layout Description
22952 error \SpecialChar LaTeX
22953 エラーボックス色
22954 \end_layout
22955
22956 \begin_layout Description
22957 footlabel 脚註ラベル色
22958 \end_layout
22959
22960 \begin_layout Description
22961 graphicsbg 画像差込枠の背景色
22962 \end_layout
22963
22964 \begin_layout Description
22965 greyedout 淡色表示差込枠のラベル色
22966 \end_layout
22967
22968 \begin_layout Description
22969 greyedoutbg 淡色表示差込枠の背景色
22970 \end_layout
22971
22972 \begin_layout Description
22973 greyedouttext 淡色表示差込枠の文字色
22974 \end_layout
22975
22976 \begin_layout Description
22977 indexlabel 索引差込枠のラベル色
22978 \end_layout
22979
22980 \begin_layout Description
22981 ignore この色を無視します
22982 \end_layout
22983
22984 \begin_layout Description
22985 inherit この色を継承します
22986 \end_layout
22987
22988 \begin_layout Description
22989 inlinecompletion 行内補完色
22990 \end_layout
22991
22992 \begin_layout Description
22993 insetbg 差込枠標の背景色
22994 \end_layout
22995
22996 \begin_layout Description
22997 insetframe 差込枠標の縁色
22998 \end_layout
22999
23000 \begin_layout Description
23001 language 外国語の単語を標識するための色
23002 \end_layout
23003
23004 \begin_layout Description
23005 latex \SpecialChar LaTeX
23006 モードの文字色
23007 \end_layout
23008
23009 \begin_layout Description
23010 listingsbg プログラムリスト差込枠の背景色
23011 \end_layout
23012
23013 \begin_layout Description
23014 marginlabel 傍註のラベル色
23015 \end_layout
23016
23017 \begin_layout Description
23018 math 数式差込枠の文字色
23019 \end_layout
23020
23021 \begin_layout Description
23022 mathbg 数式差込枠の背景色
23023 \end_layout
23024
23025 \begin_layout Description
23026 mathcorners フォーカスを得ていない数式差込枠の縁色
23027 \end_layout
23028
23029 \begin_layout Description
23030 mathframe フォーカスを得ている数式差込枠の縁色
23031 \end_layout
23032
23033 \begin_layout Description
23034 mathline 数式行色
23035 \end_layout
23036
23037 \begin_layout Description
23038 mathmacrobg 数式マクロ差込枠の背景色
23039 \end_layout
23040
23041 \begin_layout Description
23042 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23043 \end_layout
23044
23045 \begin_layout Description
23046 mathmacroframe 数式マクロ差込枠の縁色
23047 \end_layout
23048
23049 \begin_layout Description
23050 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23051 \end_layout
23052
23053 \begin_layout Description
23054 mathmacrolabel 数式マクロ差込枠のラベル色
23055 \end_layout
23056
23057 \begin_layout Description
23058 mathmacronewarg 数式マクロ新パラメーターのひな型色
23059 \end_layout
23060
23061 \begin_layout Description
23062 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23063 \end_layout
23064
23065 \begin_layout Description
23066 newpage 新規頁色
23067 \end_layout
23068
23069 \begin_layout Description
23070 nonunique_inlinecompletion 行内補完の一意でない部分の色
23071 \end_layout
23072
23073 \begin_layout Description
23074 notebg 註釈の背景色
23075 \end_layout
23076
23077 \begin_layout Description
23078 notelabel 註釈のラベル色
23079 \end_layout
23080
23081 \begin_layout Description
23082 pagebreak 改頁/改行色
23083 \end_layout
23084
23085 \begin_layout Description
23086 paragraphmarker 段落末を標識するための段落標の色
23087 \end_layout
23088
23089 \begin_layout Description
23090 phantomtext 埋め草差込枠の文字色
23091 \end_layout
23092
23093 \begin_layout Description
23094 preview プレビューに用いられる色
23095 \end_layout
23096
23097 \begin_layout Description
23098 previewframe プレビュー縁色
23099 \end_layout
23100
23101 \begin_layout Description
23102 regexpframe 正規表現枠の色
23103 \end_layout
23104
23105 \begin_layout Description
23106 selection 文章選択部の背景色
23107 \end_layout
23108
23109 \begin_layout Description
23110 selectiontext 文章選択部の前景色
23111 \end_layout
23112
23113 \begin_layout Description
23114 shadedbg 影付きボックスの背景色
23115 \end_layout
23116
23117 \begin_layout Description
23118 special 特殊文字の色
23119 \end_layout
23120
23121 \begin_layout Description
23122 tabularline 罫線色
23123 \end_layout
23124
23125 \begin_layout Description
23126 tabularonoffline 罫線色
23127 \end_layout
23128
23129 \begin_layout Description
23130 urllabel URL差込枠のラベル色
23131 \end_layout
23132
23133 \begin_layout Description
23134 urltext URL差込枠の文字色
23135 \end_layout
23136
23137 \end_body
23138 \end_document