]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
Japanese doc files: big translation update fro 2.2.0 from Koji
[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.1では,最新書式は48です).また,
5968 ローカルレイアウトは,\SpecialChar LyX
5969  1.6より前の版ではサポートされていないことを認識しておく必要があります.したがって,文書を\SpecialChar LyX
5970  1.5またはそれ以前の版に(ローカルレイアウト
5971 情報を失うことなく)書き出せることを望むならば,使用するべきではありません.第1.6版へ—第1.6版はUIはありませんがローカルレイアウトをサポートしています—書き
5972 出せることを望むならば,書式11を用いて,さらに\SpecialChar LyX
5973  1.6で使用できるレイアウト要素のみを使用してください.
5974 \end_layout
5975
5976 \begin_layout Standard
5977 \begin_inset Flex Code
5978 status collapsed
5979
5980 \begin_layout Plain Layout
5981 ローカルのレイアウト
5982 \end_layout
5983
5984 \end_inset
5985
5986 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5987 ているかどうかが検証されます.すると,\SpecialChar LyX
5988 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5989 をターミナル(
5990 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5991 \end_layout
5992
5993 \begin_layout Standard
5994 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5995 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5996 \end_layout
5997
5998 \begin_layout Subsection
5999 \begin_inset Flex MenuItem
6000 status collapsed
6001
6002 \begin_layout Plain Layout
6003 .sty
6004 \end_layout
6005
6006 \end_inset
6007
6008 ファイル用のレイアウト
6009 \end_layout
6010
6011 \begin_layout Standard
6012 新しく\SpecialChar LaTeX
6013 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
6014 クラス(
6015 \begin_inset Flex Code
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 .cls
6020 \end_layout
6021
6022 \end_inset
6023
6024 )ファイルが絡む場合と,スタイル(
6025 \begin_inset Flex Code
6026 status collapsed
6027
6028 \begin_layout Plain Layout
6029 .sty
6030 \end_layout
6031
6032 \end_inset
6033
6034 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6035 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6036 が当てはまります.
6037 \end_layout
6038
6039 \begin_layout Standard
6040 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6041 \begin_inset Flex MenuItem
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 myclass.sty
6046 \end_layout
6047
6048 \end_inset
6049
6050 という名称で,標準的なクラスである
6051 \begin_inset Flex MenuItem
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 report.cls
6056 \end_layout
6057
6058 \end_inset
6059
6060 と共に用いられるものと仮定しましょう.
6061 \end_layout
6062
6063 \begin_layout Standard
6064 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6065 \begin_inset Foot
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6070 では,起動時に
6071 \begin_inset Flex MenuItem
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 -userdir
6076 \end_layout
6077
6078 \end_inset
6079
6080 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6081 \end_layout
6082
6083 \end_inset
6084
6085
6086 \end_layout
6087
6088 \begin_layout LyX-Code
6089 cp report.layout ~/.lyx/layouts/myclass.layout
6090 \end_layout
6091
6092 \begin_layout Standard
6093 それから,
6094 \begin_inset Flex Code
6095 status collapsed
6096
6097 \begin_layout Plain Layout
6098 myclass.layout
6099 \end_layout
6100
6101 \end_inset
6102
6103 を編集して,
6104 \end_layout
6105
6106 \begin_layout LyX-Code
6107
6108 \backslash
6109 DeclareLaTeXClass{report}
6110 \end_layout
6111
6112 \begin_layout Standard
6113 という行を
6114 \end_layout
6115
6116 \begin_layout LyX-Code
6117
6118 \backslash
6119 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6120 \end_layout
6121
6122 \begin_layout Standard
6123 のように変更してください.それから,ファイル冒頭辺りに
6124 \end_layout
6125
6126 \begin_layout LyX-Code
6127 Preamble 
6128 \begin_inset Newline newline
6129 \end_inset
6130
6131     
6132 \backslash
6133 usepackage{myclass}
6134 \begin_inset Newline newline
6135 \end_inset
6136
6137 EndPreamble
6138 \end_layout
6139
6140 \begin_layout Standard
6141 と書き加えてください.
6142 \end_layout
6143
6144 \begin_layout Standard
6145 \SpecialChar LyX
6146 を起動して
6147 \begin_inset Flex MenuItem
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151 ツール\SpecialChar menuseparator
6152 環境構成
6153 \end_layout
6154
6155 \end_inset
6156
6157 を選択してください.それから\SpecialChar LyX
6158 を再起動し,新規文書を作成してみてください.すると,
6159 \begin_inset Flex MenuItem
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 文書\SpecialChar menuseparator
6164 設定
6165 \end_layout
6166
6167 \end_inset
6168
6169 ダイアログの文書クラスオプションに「
6170 \begin_inset Flex MenuItem
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 report (myclass)
6175 \end_layout
6176
6177 \end_inset
6178
6179 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 report
6185 \end_layout
6186
6187 \end_inset
6188
6189 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 stdsections.inc
6195 \end_layout
6196
6197 \end_inset
6198
6199 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 stdsections.inc
6205 \end_layout
6206
6207 \end_inset
6208
6209 も取り込む
6210 \begin_inset Flex Code
6211 status collapsed
6212
6213 \begin_layout Plain Layout
6214 Input stdclass.inc
6215 \end_layout
6216
6217 \end_inset
6218
6219 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6220 \end_layout
6221
6222 \begin_layout LyX-Code
6223 Style Chapter
6224 \end_layout
6225
6226 \begin_layout LyX-Code
6227     Font
6228 \end_layout
6229
6230 \begin_layout LyX-Code
6231         Family Sans
6232 \end_layout
6233
6234 \begin_layout LyX-Code
6235     EndFont
6236 \end_layout
6237
6238 \begin_layout LyX-Code
6239 End
6240 \end_layout
6241
6242 \begin_layout Standard
6243 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6244 \end_layout
6245
6246 \begin_layout Standard
6247 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6248 いては,第
6249 \begin_inset CommandInset ref
6250 LatexCommand ref
6251 reference "sec:テキストクラス"
6252
6253 \end_inset
6254
6255 節の情報を参照してください.
6256 \end_layout
6257
6258 \begin_layout Standard
6259 もし
6260 \begin_inset Flex Code
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 myclass.sty
6265 \end_layout
6266
6267 \end_inset
6268
6269 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6270 う.最も簡単なモジュールの例としては,以下のようなものになります.
6271 \end_layout
6272
6273 \begin_layout LyX-Code
6274 #
6275 \backslash
6276 DeclareLyXModule{My Package}
6277 \end_layout
6278
6279 \begin_layout LyX-Code
6280 #DescriptionBegin
6281 \end_layout
6282
6283 \begin_layout LyX-Code
6284 #Support for mypkg.sty.
6285 \end_layout
6286
6287 \begin_layout LyX-Code
6288 #DescriptionEnd
6289 \begin_inset Newline newline
6290 \end_inset
6291
6292
6293 \end_layout
6294
6295 \begin_layout LyX-Code
6296 Format 35
6297 \begin_inset Newline newline
6298 \end_inset
6299
6300
6301 \end_layout
6302
6303 \begin_layout LyX-Code
6304 Preamble
6305 \begin_inset Newline newline
6306 \end_inset
6307
6308     
6309 \backslash
6310 usepackage{mypkg}
6311 \begin_inset Newline newline
6312 \end_inset
6313
6314 EndPreamble
6315 \end_layout
6316
6317 \begin_layout Standard
6318 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6319 \begin_inset CommandInset ref
6320 LatexCommand ref
6321 reference "sec:テキストクラス"
6322
6323 \end_inset
6324
6325 節を参照してください.
6326 \end_layout
6327
6328 \begin_layout Subsection
6329 \begin_inset Flex MenuItem
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 .cls
6334 \end_layout
6335
6336 \end_inset
6337
6338 ファイル用のレイアウト
6339 \end_layout
6340
6341 \begin_layout Standard
6342 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6343 \begin_inset Flex MenuItem
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347 book.cls
6348 \end_layout
6349
6350 \end_inset
6351
6352 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6353 \end_layout
6354
6355 \begin_layout LyX-Code
6356
6357 \backslash
6358 LoadClass{book}
6359 \end_layout
6360
6361 \begin_layout Standard
6362 という行がないかどうか探してください.もしこれがあれば,
6363 \begin_inset Flex Code
6364 status collapsed
6365
6366 \begin_layout Plain Layout
6367 Declare\SpecialChar LaTeX
6368 Class
6369 \end_layout
6370
6371 \end_inset
6372
6373 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6374 \begin_inset Flex Code
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 thesis
6379 \end_layout
6380
6381 \end_inset
6382
6383 であり,
6384 \begin_inset Flex Code
6385 status collapsed
6386
6387 \begin_layout Plain Layout
6388 book
6389 \end_layout
6390
6391 \end_inset
6392
6393 クラスに基づいていれば,
6394 \begin_inset Flex Code
6395 status collapsed
6396
6397 \begin_layout Plain Layout
6398 Declare\SpecialChar LaTeX
6399 Class
6400 \end_layout
6401
6402 \end_inset
6403
6404 行は以下のようにします
6405 \begin_inset Foot
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 さらに\SpecialChar LyX
6410 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 thesis.layout
6416 \end_layout
6417
6418 \end_inset
6419
6420 という名前で保存するのが最も簡単です. 
6421 \end_layout
6422
6423 \end_inset
6424
6425
6426 \end_layout
6427
6428 \begin_layout LyX-Code
6429
6430 \backslash
6431 DeclareLaT
6432 \begin_inset ERT
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436
6437 {}
6438 \end_layout
6439
6440 \end_inset
6441
6442 eXClass[thesis,book]{thesis}
6443 \end_layout
6444
6445 \begin_layout Standard
6446 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6447 クラスを使用してい
6448 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6449 業の開始点としてください.
6450 \end_layout
6451
6452 \begin_layout Subsection
6453 ひな型を作成する
6454 \begin_inset CommandInset label
6455 LatexCommand label
6456 name "sec:ひな型を作成する"
6457
6458 \end_inset
6459
6460
6461 \end_layout
6462
6463 \begin_layout Standard
6464 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6465 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6466 添付のひな型をあれこれ見てみるのもよいでしょう.
6467 \end_layout
6468
6469 \begin_layout Standard
6470 ひな型は,通常の文書と同様,\SpecialChar LyX
6471 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6472 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6473 \begin_inset Flex Code
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477
6478 \backslash
6479 fontscheme
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \begin_inset Flex Code
6486 status collapsed
6487
6488 \begin_layout Plain Layout
6489
6490 \backslash
6491 papersize
6492 \end_layout
6493
6494 \end_inset
6495
6496 などの対応するコマンドをひな型\SpecialChar LyX
6497 ファイルから取り除く必要があります.これは,たとえば
6498 \begin_inset Flex Code
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 vi
6503 \end_layout
6504
6505 \end_inset
6506
6507
6508 \begin_inset Flex Code
6509 status collapsed
6510
6511 \begin_layout Plain Layout
6512 notepad
6513 \end_layout
6514
6515 \end_inset
6516
6517 のような,どの軽いテキストエディタでも行うことができます.
6518 \end_layout
6519
6520 \begin_layout Standard
6521 編集したひな型を
6522 \begin_inset Flex Code
6523 status collapsed
6524
6525 \begin_layout Plain Layout
6526 UserDir/templates/
6527 \end_layout
6528
6529 \end_inset
6530
6531 に置き,グローバルなひな型ディレクトリ
6532 \begin_inset Flex Code
6533 status collapsed
6534
6535 \begin_layout Plain Layout
6536 LyXDir/templates/
6537 \end_layout
6538
6539 \end_inset
6540
6541 から使用したいものを同じ場所にコピーし,
6542 \begin_inset Flex MenuItem
6543 status collapsed
6544
6545 \begin_layout Plain Layout
6546 ツール\SpecialChar menuseparator
6547 設定\SpecialChar menuseparator
6548 パス
6549 \end_layout
6550
6551 \end_inset
6552
6553 ダイアログのひな型パスを再定義してください.
6554 \end_layout
6555
6556 \begin_layout Standard
6557 ところで,特別な意味を持つひな型
6558 \begin_inset Flex Code
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 defaults.lyx
6563 \end_layout
6564
6565 \end_inset
6566
6567 があることに注意してください.このひな型は,
6568 \begin_inset Flex MenuItem
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 ファイル\SpecialChar menuseparator
6573 新規
6574 \end_layout
6575
6576 \end_inset
6577
6578 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6579 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6580 開き,
6581 \begin_inset Flex MenuItem
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585 文書既定値として保存
6586 \end_layout
6587
6588 \end_inset
6589
6590 ボタンを押すことです.
6591 \end_layout
6592
6593 \begin_layout Subsection
6594 旧レイアウトファイルの更新
6595 \end_layout
6596
6597 \begin_layout Standard
6598 レイアウトファイルの書式は,\SpecialChar LyX
6599 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6600 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6601 は,
6602 自動的に変換ツール
6603 \begin_inset Flex Code
6604 status collapsed
6605
6606 \begin_layout Plain Layout
6607 \SpecialChar LyX
6608 Dir/scripts/layout2layout.py
6609 \end_layout
6610
6611 \end_inset
6612
6613 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6614 がこれを毎回行な
6615 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6616 \end_layout
6617
6618 \begin_layout Enumerate
6619 ファイル
6620 \begin_inset Flex Code
6621 status collapsed
6622
6623 \begin_layout Plain Layout
6624 myclass.layout
6625 \end_layout
6626
6627 \end_inset
6628
6629
6630 \begin_inset Flex Code
6631 status collapsed
6632
6633 \begin_layout Plain Layout
6634 myclass.old
6635 \end_layout
6636
6637 \end_inset
6638
6639 に改称
6640 \end_layout
6641
6642 \begin_layout Enumerate
6643 以下のコマンドをコール
6644 \begin_inset Newline newline
6645 \end_inset
6646
6647
6648 \begin_inset Flex Code
6649 status collapsed
6650
6651 \begin_layout Plain Layout
6652 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6653 \end_layout
6654
6655 \end_inset
6656
6657
6658 \begin_inset Newline newline
6659 \end_inset
6660
6661 ここで
6662 \begin_inset Flex Code
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666 LyXDir
6667 \end_layout
6668
6669 \end_inset
6670
6671 は\SpecialChar LyX
6672 システムディレクトリの名前です.
6673 \end_layout
6674
6675 \begin_layout Standard
6676 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6677 \end_layout
6678
6679 \begin_layout Section
6680 \begin_inset CommandInset label
6681 LatexCommand label
6682 name "sec:テキストクラス"
6683
6684 \end_inset
6685
6686 レイアウトファイルの書式
6687 \end_layout
6688
6689 \begin_layout Standard
6690 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6691 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6692 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6693 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6694 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6695 \end_layout
6696
6697 \begin_layout Standard
6698 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6699 \begin_inset Flex Code
6700 status collapsed
6701
6702 \begin_layout Plain Layout
6703 Style
6704 \end_layout
6705
6706 \end_inset
6707
6708
6709 \begin_inset Flex Code
6710 status collapsed
6711
6712 \begin_layout Plain Layout
6713 style
6714 \end_layout
6715
6716 \end_inset
6717
6718
6719 \begin_inset Flex Code
6720 status collapsed
6721
6722 \begin_layout Plain Layout
6723 StYlE
6724 \end_layout
6725
6726 \end_inset
6727
6728 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6729 \begin_inset Flex Code
6730 status collapsed
6731
6732 \begin_layout Plain Layout
6733
6734 \emph on
6735 強調
6736 \end_layout
6737
6738 \end_inset
6739
6740 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6741 \begin_inset Flex Code
6742 status collapsed
6743
6744 \begin_layout Plain Layout
6745 浮動小数点型=
6746 \emph on
6747 既定値
6748 \end_layout
6749
6750 \end_inset
6751
6752 のように表示されます.
6753 \end_layout
6754
6755 \begin_layout Subsection
6756 文書クラス宣言と分類
6757 \end_layout
6758
6759 \begin_layout Standard
6760 レイアウトファイル中の
6761 \begin_inset Flex Code
6762 status collapsed
6763
6764 \begin_layout Plain Layout
6765 #
6766 \end_layout
6767
6768 \end_inset
6769
6770 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6771 \begin_inset Flex Code
6772 status collapsed
6773
6774 \begin_layout Plain Layout
6775 *.layout
6776 \end_layout
6777
6778 \end_inset
6779
6780 ファイルは,以下のような行で始めなくてはならないのです.
6781 \end_layout
6782
6783 \begin_layout LyX-Code
6784
6785 \size small
6786 #% Do not delete the line below; configure depends on this
6787 \end_layout
6788
6789 \begin_layout LyX-Code
6790
6791 \size small
6792 #  
6793 \backslash
6794 DeclareLaTeXClass{Article (Standard Class)}
6795 \end_layout
6796
6797 \begin_layout LyX-Code
6798
6799 \size small
6800 #  
6801 \backslash
6802 DeclareCategory{Articles}
6803 \end_layout
6804
6805 \begin_layout Standard
6806 2行目と3行目は,\SpecialChar LyX
6807 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6808 スクリプト
6809 \begin_inset Flex Code
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 chkconfig.ltx
6814 \end_layout
6815
6816 \end_inset
6817
6818 が,
6819 \begin_inset Flex Code
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 #
6824 \end_layout
6825
6826 \end_inset
6827
6828 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6829 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6830 行が
6831 \begin_inset Flex Code
6832 status collapsed
6833
6834 \begin_layout Plain Layout
6835 article.layout
6836 \end_layout
6837
6838 \end_inset
6839
6840 と名付けられたファイルにあると,
6841 \begin_inset Flex Code
6842 status collapsed
6843
6844 \begin_layout Plain Layout
6845 article
6846 \end_layout
6847
6848 \end_inset
6849
6850 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6851 文書クラス
6852 \begin_inset Flex Code
6853 status collapsed
6854
6855 \begin_layout Plain Layout
6856 article.cls
6857 \end_layout
6858
6859 \end_inset
6860
6861 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6862 \begin_inset Flex MenuItem
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 文書\SpecialChar menuseparator
6867 設定
6868 \end_layout
6869
6870 \end_inset
6871
6872 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6873 \begin_inset Flex MenuItem
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 文書\SpecialChar menuseparator
6878 設定
6879 \end_layout
6880
6881 \end_inset
6882
6883 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6884 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6885 rized」グループに属することになります.
6886 \end_layout
6887
6888 \begin_layout Standard
6889 節見出し表示に変更を加えた,
6890 \begin_inset Flex Code
6891 status collapsed
6892
6893 \begin_layout Plain Layout
6894 article.cls
6895 \end_layout
6896
6897 \end_inset
6898
6899 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6900 \begin_inset Flex Code
6901 status collapsed
6902
6903 \begin_layout Plain Layout
6904 myarticle.layout
6905 \end_layout
6906
6907 \end_inset
6908
6909 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6910 \end_layout
6911
6912 \begin_layout LyX-Code
6913
6914 \size small
6915 #% Do not delete the line below; configure depends on this 
6916 \end_layout
6917
6918 \begin_layout LyX-Code
6919
6920 \size small
6921 #  
6922 \backslash
6923 DeclareLaTeXClass[article]{article (with My Own Headings)}
6924 \end_layout
6925
6926 \begin_layout LyX-Code
6927
6928 \size small
6929 #  
6930 \backslash
6931 DeclareCategory{Articles}
6932 \end_layout
6933
6934 \begin_layout Standard
6935 これは,\SpecialChar LaTeX
6936 文書クラス
6937 \begin_inset Flex Code
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 article.cls
6942 \end_layout
6943
6944 \end_inset
6945
6946 に関連づけられ,「Article (with My Own Headings)」と表示される,
6947 \begin_inset Flex Code
6948 status collapsed
6949
6950 \begin_layout Plain Layout
6951 myarticle
6952 \end_layout
6953
6954 \end_inset
6955
6956 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6957 \end_layout
6958
6959 \begin_layout LyX-Code
6960
6961 \size small
6962 #% Do not delete the line below; configure depends on this 
6963 \end_layout
6964
6965 \begin_layout LyX-Code
6966
6967 \size small
6968 #  
6969 \backslash
6970 DeclareLaT
6971 \size default
6972
6973 \begin_inset ERT
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977
6978 {}
6979 \end_layout
6980
6981 \end_inset
6982
6983
6984 \size small
6985 eXClass[article,foo.sty]{Article (with My Own Headings)}
6986 \end_layout
6987
6988 \begin_layout LyX-Code
6989
6990 \size small
6991 #  
6992 \backslash
6993 DeclareCategory{Articles}
6994 \end_layout
6995
6996 \begin_layout Standard
6997 これは,このテキストクラスが
6998 \begin_inset Flex Code
6999 status collapsed
7000
7001 \begin_layout Plain Layout
7002 foo.sty
7003 \end_layout
7004
7005 \end_inset
7006
7007 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
7008 \end_layout
7009
7010 \begin_layout LyX-Code
7011
7012 \size small
7013 #% Do not delete the line below; configure depends on this 
7014 \end_layout
7015
7016 \begin_layout LyX-Code
7017
7018 \size small
7019
7020 \backslash
7021 DeclareDocBookClass[article]{SGML (DocBook article)}
7022 \end_layout
7023
7024 \begin_layout LyX-Code
7025
7026 \size small
7027 #  
7028 \backslash
7029 DeclareCategory{Articles}
7030 \end_layout
7031
7032 \begin_layout Standard
7033 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
7034 \end_layout
7035
7036 \begin_layout Standard
7037 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
7038 \end_layout
7039
7040 \begin_layout LyX-Code
7041
7042 \size small
7043 #  
7044 \backslash
7045 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7046 \end_layout
7047
7048 \begin_layout LyX-Code
7049
7050 \size small
7051 #  
7052 \backslash
7053 DeclareCategory{分類}
7054 \end_layout
7055
7056 \begin_layout Standard
7057 ここで「クラス」は,\SpecialChar LaTeX
7058 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7059 は単純に,クラスファイル
7060 名がレイアウトファイル名と同じであると仮定します.
7061 \end_layout
7062
7063 \begin_layout Standard
7064 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 LyXDir/layouts/
7070 \end_layout
7071
7072 \end_inset
7073
7074
7075 \begin_inset Flex Code
7076 status collapsed
7077
7078 \begin_layout Plain Layout
7079 UserDir/layouts
7080 \end_layout
7081
7082 \end_inset
7083
7084 にコピーし,
7085 \begin_inset Flex MenuItem
7086 status collapsed
7087
7088 \begin_layout Plain Layout
7089 ツール\SpecialChar menuseparator
7090 環境構成
7091 \end_layout
7092
7093 \end_inset
7094
7095 を実行し,\SpecialChar LyX
7096 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7097 \end_layout
7098
7099 \begin_layout Standard
7100 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7101 を再起動したりすることなく,その変更を確認することができます
7102 \begin_inset Foot
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 第1.6版よりも前の\SpecialChar LyX
7107 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7108 を再起動しなくてはならなかったので,
7109 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7110 \end_layout
7111
7112 \end_inset
7113
7114 .\SpecialChar LyX
7115 関数
7116 \begin_inset Flex MenuItem
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 layout-reload
7121 \end_layout
7122
7123 \end_inset
7124
7125 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7126 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7127 \end_layout
7128
7129 \begin_layout Standard
7130
7131 \emph on
7132 注意
7133 \emph default
7134
7135 \begin_inset Flex MenuItem
7136 status collapsed
7137
7138 \begin_layout Plain Layout
7139 layout-reload
7140 \end_layout
7141
7142 \end_inset
7143
7144 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7145 \emph on
7146 強く
7147 \emph default
7148 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7149 \emph on
7150 強く
7151 \emph default
7152 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7153 は現在の
7154 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7155 \begin_inset Foot
7156 status collapsed
7157
7158 \begin_layout Plain Layout
7159 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7160 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7161 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7162 ださい.
7163 \end_layout
7164
7165 \end_inset
7166
7167 .\SpecialChar LyX
7168 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7169 \begin_inset Foot
7170 status collapsed
7171
7172 \begin_layout Plain Layout
7173 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7174 \end_layout
7175
7176 \end_inset
7177
7178
7179 \end_layout
7180
7181 \begin_layout Subsection
7182 モジュール宣言
7183 \end_layout
7184
7185 \begin_layout Standard
7186 モジュールは,以下のような行で始まらなくてはなりません.
7187 \end_layout
7188
7189 \begin_layout LyX-Code
7190 #
7191 \backslash
7192 DeclareL
7193 \begin_inset ERT
7194 status collapsed
7195
7196 \begin_layout Plain Layout
7197
7198 {}
7199 \end_layout
7200
7201 \end_inset
7202
7203 yXModule[endnotes.sty]{Endnotes} 
7204 \end_layout
7205
7206 \begin_layout Standard
7207 波括弧内に入っている必須引数はモジュール名で,これは
7208 \begin_inset Flex MenuItem
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212 文書\SpecialChar menuseparator
7213 設定
7214 \end_layout
7215
7216 \end_inset
7217
7218 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7219 パッケージをすべて宣言します.また,非必須引数として,
7220 \begin_inset Flex Code
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 変換元->変換先
7225 \end_layout
7226
7227 \end_inset
7228
7229 の形を使用することができます.これは,
7230 \begin_inset Flex Code
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234 変換元
7235 \end_layout
7236
7237 \end_inset
7238
7239 形式から
7240 \begin_inset Flex Code
7241 status collapsed
7242
7243 \begin_layout Plain Layout
7244 変換先
7245 \end_layout
7246
7247 \end_inset
7248
7249 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7250 \end_layout
7251
7252 \begin_layout Standard
7253 それから,以下のようなモジュール宣言を行います
7254 \begin_inset Foot
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258 モジュールを\SpecialChar LyX
7259 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7260 \end_layout
7261
7262 \end_inset
7263
7264
7265 \end_layout
7266
7267 \begin_layout LyX-Code
7268 #DescriptionBegin 
7269 \end_layout
7270
7271 \begin_layout LyX-Code
7272 #Adds an endnote command, in addition to footnotes.
7273  
7274 \end_layout
7275
7276 \begin_layout LyX-Code
7277 #You will need to add  
7278 \backslash
7279 theendnotes in TeX code where you 
7280 \end_layout
7281
7282 \begin_layout LyX-Code
7283 #want the endnotes to appear.
7284  
7285 \end_layout
7286
7287 \begin_layout LyX-Code
7288 #DescriptionEnd 
7289 \end_layout
7290
7291 \begin_layout LyX-Code
7292 #Requires: somemodule | othermodule
7293 \end_layout
7294
7295 \begin_layout LyX-Code
7296 #Excludes: badmodule
7297 \end_layout
7298
7299 \begin_layout Standard
7300 ここで説明(Description)は,
7301 \begin_inset Flex MenuItem
7302 status collapsed
7303
7304 \begin_layout Plain Layout
7305 文書\SpecialChar menuseparator
7306 設定
7307 \end_layout
7308
7309 \end_inset
7310
7311 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7312 \begin_inset Flex Code
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 Requires
7317 \end_layout
7318
7319 \end_inset
7320
7321 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7322 \begin_inset Flex Code
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 Excludes
7327 \end_layout
7328
7329 \end_inset
7330
7331 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7332 イプ記号「|」で区切らなくてはなりません.
7333 \begin_inset Flex Code
7334 status collapsed
7335
7336 \begin_layout Plain Layout
7337 Requires
7338 \end_layout
7339
7340 \end_inset
7341
7342 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7343 \begin_inset Flex Code
7344 status collapsed
7345
7346 \begin_layout Plain Layout
7347 Requires
7348 \end_layout
7349
7350 \end_inset
7351
7352 に指定されたモジュールのうち,
7353 \emph on
7354 少なくとも一つ
7355 \emph default
7356 が使用されていればよいということです.同様に,
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 Excludes
7362 \end_layout
7363
7364 \end_inset
7365
7366 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7367 \begin_inset Flex Code
7368 status collapsed
7369
7370 \begin_layout Plain Layout
7371 .module
7372 \end_layout
7373
7374 \end_inset
7375
7376 拡張子を除いたファイル名で認識されることに注意してください.つまり
7377 \begin_inset Flex Code
7378 status collapsed
7379
7380 \begin_layout Plain Layout
7381 somemodule
7382 \end_layout
7383
7384 \end_inset
7385
7386 とは,実のところ
7387 \begin_inset Flex Code
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 somemodule.module
7392 \end_layout
7393
7394 \end_inset
7395
7396 のことです.
7397 \end_layout
7398
7399 \begin_layout Subsection
7400 書式番号
7401 \end_layout
7402
7403 \begin_layout Standard
7404 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7405 \end_layout
7406
7407 \begin_layout Description
7408 \begin_inset Flex Code
7409 status collapsed
7410
7411 \begin_layout Plain Layout
7412 Format
7413 \end_layout
7414
7415 \end_inset
7416
7417  [
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 整数型
7423 \end_layout
7424
7425 \end_inset
7426
7427 ] このレイアウトファイルの書式
7428 \end_layout
7429
7430 \begin_layout Standard
7431 このタグは\SpecialChar LyX
7432
7433 \begin_inset space ~
7434 \end_inset
7435
7436 1.4.0で導入されました.\SpecialChar LyX
7437
7438 \begin_inset space ~
7439 \end_inset
7440
7441 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7442 現行版のファイル形式は,書式59です.しかし,\SpecialChar LyX
7443 の各版は,旧版の\SpecialChar LyX
7444 で作成さ
7445 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7446 \end_layout
7447
7448 \begin_layout Subsection
7449 \begin_inset CommandInset label
7450 LatexCommand label
7451 name "subsec:汎用テキストクラスパラメータ"
7452
7453 \end_inset
7454
7455 汎用テキストクラスパラメータ
7456 \end_layout
7457
7458 \begin_layout Standard
7459 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7460 \begin_inset Flex Code
7461 status collapsed
7462
7463 \begin_layout Plain Layout
7464 .layout
7465 \end_layout
7466
7467 \end_inset
7468
7469 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7470 \emph on
7471 ありません
7472 \emph default
7473 .モジュールには,すべてのレイアウトタグを使用することができます).
7474 \end_layout
7475
7476 \begin_layout Description
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 AddToHTMLPreamble
7482 \end_layout
7483
7484 \end_inset
7485
7486  この文書クラスがXHTMLに出力されるときに,
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 <head>
7492 \end_layout
7493
7494 \end_inset
7495
7496 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7497 \begin_inset Flex Code
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 <head>
7502 \end_layout
7503
7504 \end_inset
7505
7506 に出力するものであれば,何でも使用することができます.「
7507 \begin_inset Flex Code
7508 status collapsed
7509
7510 \begin_layout Plain Layout
7511 EndPreamble
7512 \end_layout
7513
7514 \end_inset
7515
7516 」で閉じる必要があります.
7517 \end_layout
7518
7519 \begin_layout Description
7520 \begin_inset Flex Code
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 AddToPreamble
7525 \end_layout
7526
7527 \end_inset
7528
7529  文書プリアンブルに書き加えられる情報です.「
7530 \begin_inset Flex Code
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 EndPreamble
7535 \end_layout
7536
7537 \end_inset
7538
7539 」で閉じる必要があります.
7540 \end_layout
7541
7542 \begin_layout Description
7543 \begin_inset Flex Code
7544 status collapsed
7545
7546 \begin_layout Plain Layout
7547 CiteFormat
7548 \end_layout
7549
7550 \end_inset
7551
7552  書誌情報の表示に使う書式を定義します.詳細については,
7553 \begin_inset CommandInset ref
7554 LatexCommand ref
7555 reference "subsec:引用書式指定"
7556
7557 \end_inset
7558
7559 をご覧ください.「
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 End
7565 \end_layout
7566
7567 \end_inset
7568
7569 」で閉じる必要があります.
7570 \end_layout
7571
7572 \begin_layout Description
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 ClassOptions
7578 \end_layout
7579
7580 \end_inset
7581
7582  文書クラスがサポートする様々な大域オプションを記します.説明は,
7583 \begin_inset CommandInset ref
7584 LatexCommand ref
7585 reference "subsec:ClassOptions"
7586
7587 \end_inset
7588
7589 を参照してください.「
7590 \begin_inset Flex Code
7591 status collapsed
7592
7593 \begin_layout Plain Layout
7594 End
7595 \end_layout
7596
7597 \end_inset
7598
7599 」で閉じる必要があります.
7600 \end_layout
7601
7602 \begin_layout Description
7603 \begin_inset Flex Code
7604 status collapsed
7605
7606 \begin_layout Plain Layout
7607 Columns
7608 \end_layout
7609
7610 \end_inset
7611
7612  [
7613 \begin_inset Flex Code
7614 status collapsed
7615
7616 \begin_layout Plain Layout
7617
7618 \emph on
7619 1
7620 \end_layout
7621
7622 \end_inset
7623
7624 ,
7625 \begin_inset space \thinspace{}
7626 \end_inset
7627
7628
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 2
7634 \end_layout
7635
7636 \end_inset
7637
7638 ] 文書クラスが既定で1段組か2段組かを指定します.
7639 \begin_inset Flex MenuItem
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 文書\SpecialChar menuseparator
7644 設定
7645 \end_layout
7646
7647 \end_inset
7648
7649 ダイアログで変更することができます.
7650 \end_layout
7651
7652 \begin_layout Description
7653 \begin_inset Flex Code
7654 status collapsed
7655
7656 \begin_layout Plain Layout
7657 Counter
7658 \end_layout
7659
7660 \end_inset
7661
7662  [
7663 \begin_inset Flex Code
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 文字列
7668 \end_layout
7669
7670 \end_inset
7671
7672 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7673 \begin_inset Flex Code
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 End
7678 \end_layout
7679
7680 \end_inset
7681
7682 」で閉じる必要があります.
7683 \begin_inset Newline newline
7684 \end_inset
7685
7686 カウンタについての詳細は,
7687 \begin_inset CommandInset ref
7688 LatexCommand ref
7689 reference "subsec:カウンタ"
7690
7691 \end_inset
7692
7693 を参照してください.
7694 \end_layout
7695
7696 \begin_layout Description
7697 \begin_inset Flex Code
7698 status collapsed
7699
7700 \begin_layout Plain Layout
7701 DefaultFont
7702 \end_layout
7703
7704 \end_inset
7705
7706  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7707 \begin_inset CommandInset ref
7708 LatexCommand ref
7709 reference "subsec:フォント指定"
7710
7711 \end_inset
7712
7713 を参照してください.「
7714 \begin_inset Flex Code
7715 status collapsed
7716
7717 \begin_layout Plain Layout
7718 EndFont
7719 \end_layout
7720
7721 \end_inset
7722
7723 」で閉じる必要があります.
7724 \end_layout
7725
7726 \begin_layout Description
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 DefaultModule
7732 \end_layout
7733
7734 \end_inset
7735
7736  [
7737 \begin_inset Flex Code
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 <モジュール>
7742 \end_layout
7743
7744 \end_inset
7745
7746 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751 .module
7752 \end_layout
7753
7754 \end_inset
7755
7756 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7757 既存の文書にこの文書クラスが選択したときのみ該当します).
7758 \end_layout
7759
7760 \begin_layout Description
7761 \begin_inset Flex Code
7762 status collapsed
7763
7764 \begin_layout Plain Layout
7765 DefaultStyle
7766 \end_layout
7767
7768 \end_inset
7769
7770  [
7771 \begin_inset Flex Code
7772 status collapsed
7773
7774 \begin_layout Plain Layout
7775 <様式>
7776 \end_layout
7777
7778 \end_inset
7779
7780 ]
7781 \lang english
7782  
7783 \lang japanese
7784 これは新規段落に割り当てられる様式であり,通常は
7785 \begin_inset Flex MenuItem
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 標準
7790 \end_layout
7791
7792 \end_inset
7793
7794 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7795 \end_layout
7796
7797 \begin_layout Description
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 ExcludesModule
7803 \end_layout
7804
7805 \end_inset
7806
7807  [
7808 \begin_inset Flex Code
7809 status collapsed
7810
7811 \begin_layout Plain Layout
7812 <モジュール>
7813 \end_layout
7814
7815 \end_inset
7816
7817 ] このタグは,指定されたモジュール—
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 .module
7823 \end_layout
7824
7825 \end_inset
7826
7827 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7828 に振る
7829 \begin_inset Flex Code
7830 status collapsed
7831
7832 \begin_layout Plain Layout
7833 theorems-sec
7834 \end_layout
7835
7836 \end_inset
7837
7838 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7839 \emph on
7840 使用してはいけません
7841 \emph default
7842 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7843 \begin_inset CommandInset ref
7844 LatexCommand ref
7845 reference "subsec:レイアウトモジュール"
7846
7847 \end_inset
7848
7849 参照).
7850 \end_layout
7851
7852 \begin_layout Description
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 Float
7858 \end_layout
7859
7860 \end_inset
7861
7862  フロートを新規に定義します.詳細は,
7863 \begin_inset CommandInset ref
7864 LatexCommand ref
7865 reference "subsec:フロート"
7866
7867 \end_inset
7868
7869 を参照してください.「
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 End
7875 \end_layout
7876
7877 \end_inset
7878
7879 」で閉じる必要があります.
7880 \end_layout
7881
7882 \begin_layout Description
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 HTMLPreamble
7888 \end_layout
7889
7890 \end_inset
7891
7892  この文書クラスがXHTMLに出力されるときに,
7893 \begin_inset Flex Code
7894 status collapsed
7895
7896 \begin_layout Plain Layout
7897 <head>
7898 \end_layout
7899
7900 \end_inset
7901
7902 ブロックに出力される情報です.これより前に出現した
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 HTMLPreamble
7908 \end_layout
7909
7910 \end_inset
7911
7912
7913 \begin_inset Flex Code
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 AddToHTMLPreamble
7918 \end_layout
7919
7920 \end_inset
7921
7922 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7923 \begin_inset Flex Code
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 AddToHTMLPreamble
7928 \end_layout
7929
7930 \end_inset
7931
7932 を使用してください).これは「
7933 \begin_inset Flex Code
7934 status collapsed
7935
7936 \begin_layout Plain Layout
7937 EndPreamble
7938 \end_layout
7939
7940 \end_inset
7941
7942 」で閉じる必要があります.
7943 \end_layout
7944
7945 \begin_layout Description
7946 \begin_inset Flex Code
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 HTMLTOCSection
7951 \end_layout
7952
7953 \end_inset
7954
7955  [
7956 \begin_inset Flex Code
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 <様式>
7961 \end_layout
7962
7963 \end_inset
7964
7965 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7966 .これを指定しない場合には,\SpecialChar LyX
7967 はどのレイアウトを使用するべきか,解析しようと試みます.
7968 \end_layout
7969
7970 \begin_layout Description
7971 \begin_inset Flex Code
7972 status collapsed
7973
7974 \begin_layout Plain Layout
7975 IfCounter 
7976 \end_layout
7977
7978 \end_inset
7979
7980  [
7981 \begin_inset Flex Code
7982 status collapsed
7983
7984 \begin_layout Plain Layout
7985 <カウンタ>
7986 \end_layout
7987
7988 \end_inset
7989
7990 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7991 \begin_inset Flex Code
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 End
7996 \end_layout
7997
7998 \end_inset
7999
8000 」で閉じる必要があります.
8001 \begin_inset Newline newline
8002 \end_inset
8003
8004 カウンタについての詳細は,
8005 \begin_inset CommandInset ref
8006 LatexCommand ref
8007 reference "subsec:カウンタ"
8008
8009 \end_inset
8010
8011 をご覧ください.
8012 \end_layout
8013
8014 \begin_layout Description
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 IfStyle
8020 \end_layout
8021
8022 \end_inset
8023
8024  [
8025 \begin_inset Flex Code
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029 <様式>
8030 \end_layout
8031
8032 \end_inset
8033
8034 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
8035 \begin_inset Flex Code
8036 status collapsed
8037
8038 \begin_layout Plain Layout
8039 End
8040 \end_layout
8041
8042 \end_inset
8043
8044 」で閉じる必要があります.
8045 \end_layout
8046
8047 \begin_layout Description
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 Input
8053 \end_layout
8054
8055 \end_inset
8056
8057  [
8058 \begin_inset Flex Code
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062 <ファイル名>
8063 \end_layout
8064
8065 \end_inset
8066
8067 ]
8068 \lang english
8069  
8070 \lang japanese
8071 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8072 のほとんどを収録している
8073 \begin_inset Flex Code
8074 status collapsed
8075
8076 \begin_layout Plain Layout
8077 stdclass.inc
8078 \end_layout
8079
8080 \end_inset
8081
8082 のような標準レイアウトファイルです.
8083 \end_layout
8084
8085 \begin_layout Description
8086 \begin_inset Flex Code
8087 status collapsed
8088
8089 \begin_layout Plain Layout
8090 InsetLayout
8091 \end_layout
8092
8093 \end_inset
8094
8095  [
8096 \begin_inset Flex Code
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 <型>
8101 \end_layout
8102
8103 \end_inset
8104
8105 ]
8106 \lang english
8107  
8108 \lang japanese
8109 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8110 \begin_inset Flex Code
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 End
8115 \end_layout
8116
8117 \end_inset
8118
8119 」で閉じる必要があります.
8120 \begin_inset Newline newline
8121 \end_inset
8122
8123 詳しい情報は,
8124 \begin_inset CommandInset ref
8125 LatexCommand ref
8126 reference "subsec:任意設定差込枠"
8127
8128 \end_inset
8129
8130 をご覧ください.
8131 \end_layout
8132
8133 \begin_layout Description
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 LeftMargin
8139 \end_layout
8140
8141 \end_inset
8142
8143  [
8144 \begin_inset Flex Code
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 文字列
8149 \end_layout
8150
8151 \end_inset
8152
8153 ] 画面上の左余白の幅を指示する文字列.例:「
8154 \begin_inset Flex Code
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 MMMMM
8159 \end_layout
8160
8161 \end_inset
8162
8163 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8164 \end_layout
8165
8166 \begin_layout Description
8167 \begin_inset Flex Code
8168 status collapsed
8169
8170 \begin_layout Plain Layout
8171 NoCounter
8172 \end_layout
8173
8174 \end_inset
8175
8176  [
8177 \begin_inset Flex Code
8178 status collapsed
8179
8180 \begin_layout Plain Layout
8181 <カウンタ>
8182 \end_layout
8183
8184 \end_inset
8185
8186 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8187 \end_layout
8188
8189 \begin_layout Description
8190 \begin_inset Flex Code
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194 NoFloat
8195 \end_layout
8196
8197 \end_inset
8198
8199  [
8200 \begin_inset Flex Code
8201 status collapsed
8202
8203 \begin_layout Plain Layout
8204 <フロート>
8205 \end_layout
8206
8207 \end_inset
8208
8209 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8210 \end_layout
8211
8212 \begin_layout Description
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 NoStyle
8218 \end_layout
8219
8220 \end_inset
8221
8222  [
8223 \begin_inset Flex Code
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 <様式>
8228 \end_layout
8229
8230 \end_inset
8231
8232 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8233 \end_layout
8234
8235 \begin_layout Description
8236 \begin_inset Flex Code
8237 status collapsed
8238
8239 \begin_layout Plain Layout
8240 OutputFormat
8241 \end_layout
8242
8243 \end_inset
8244
8245  [
8246 \begin_inset Flex Code
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 <形式>
8251 \end_layout
8252
8253 \end_inset
8254
8255 ] このクラスによって生成されるファイル形式を示す文字列(
8256 \family sans
8257 設定
8258 \family default
8259 ダイアログで定義される形のもの).おもに,
8260 \begin_inset Flex Code
8261 status collapsed
8262
8263 \begin_layout Plain Layout
8264 OutputType
8265 \end_layout
8266
8267 \end_inset
8268
8269
8270 \begin_inset Flex Code
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 literate
8275 \end_layout
8276
8277 \end_inset
8278
8279 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8280 \begin_inset Flex Code
8281 status collapsed
8282
8283 \begin_layout Plain Layout
8284 OutputType
8285 \end_layout
8286
8287 \end_inset
8288
8289 パラメーターに遭遇したときには,この文字列は,「
8290 \begin_inset Flex Code
8291 status collapsed
8292
8293 \begin_layout Plain Layout
8294 docbook
8295 \end_layout
8296
8297 \end_inset
8298
8299 」・「
8300 \begin_inset Flex Code
8301 status collapsed
8302
8303 \begin_layout Plain Layout
8304 lat
8305 \emph on
8306 ex
8307 \end_layout
8308
8309 \end_inset
8310
8311 」のいずれかにリセットされます.
8312 \end_layout
8313
8314 \begin_layout Description
8315 \begin_inset Flex Code
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 OutputType
8320 \end_layout
8321
8322 \end_inset
8323
8324  [
8325 \begin_inset Flex Code
8326 status collapsed
8327
8328 \begin_layout Plain Layout
8329
8330 \emph on
8331 lat
8332 \emph default
8333 ex
8334 \end_layout
8335
8336 \end_inset
8337
8338
8339 \begin_inset Flex Code
8340 status collapsed
8341
8342 \begin_layout Plain Layout
8343 docbook
8344 \end_layout
8345
8346 \end_inset
8347
8348
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 literate
8354 \end_layout
8355
8356 \end_inset
8357
8358 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8359 \end_layout
8360
8361 \begin_layout Description
8362 \begin_inset Flex Code
8363 status collapsed
8364
8365 \begin_layout Plain Layout
8366 PackageOptions
8367 \end_layout
8368
8369 \end_inset
8370
8371  [
8372 \begin_inset Flex Code
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376 文字列
8377 \end_layout
8378
8379 \end_inset
8380
8381  
8382 \begin_inset Flex Code
8383 status collapsed
8384
8385 \begin_layout Plain Layout
8386 文字列
8387 \end_layout
8388
8389 \end_inset
8390
8391 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8392 \begin_inset Flex Code
8393 status collapsed
8394
8395 \begin_layout Plain Layout
8396 PackageOptions natbib square
8397 \end_layout
8398
8399 \end_inset
8400
8401 」とすると,
8402 \begin_inset Flex Code
8403 status collapsed
8404
8405 \begin_layout Plain Layout
8406 natbib
8407 \end_layout
8408
8409 \end_inset
8410
8411
8412 \begin_inset Flex Code
8413 status collapsed
8414
8415 \begin_layout Plain Layout
8416 square
8417 \end_layout
8418
8419 \end_inset
8420
8421 オプションとともに読み込みます(\SpecialChar TeX
8422 perts向けに述べると,これは,
8423 \begin_inset Flex Code
8424 status collapsed
8425
8426 \begin_layout Plain Layout
8427 natbib
8428 \end_layout
8429
8430 \end_inset
8431
8432 を読み込む前に,\SpecialChar LyX
8433
8434 \begin_inset Flex Code
8435 status collapsed
8436
8437 \begin_layout Plain Layout
8438
8439 \backslash
8440 PassOptionsToPackage{natbib}{square}
8441 \end_layout
8442
8443 \end_inset
8444
8445 を出力させます).
8446 \end_layout
8447
8448 \begin_layout Description
8449 \begin_inset Flex Code
8450 status collapsed
8451
8452 \begin_layout Plain Layout
8453 PageStyle
8454 \end_layout
8455
8456 \end_inset
8457
8458  [
8459 \emph on
8460
8461 \begin_inset Flex Code
8462 status collapsed
8463
8464 \begin_layout Plain Layout
8465 plain
8466 \end_layout
8467
8468 \end_inset
8469
8470
8471 \emph default
8472
8473 \begin_inset Flex Code
8474 status collapsed
8475
8476 \begin_layout Plain Layout
8477 empty
8478 \end_layout
8479
8480 \end_inset
8481
8482
8483 \begin_inset Flex Code
8484 status collapsed
8485
8486 \begin_layout Plain Layout
8487 headings
8488 \end_layout
8489
8490 \end_inset
8491
8492 ] 既定ページ様式.
8493 \begin_inset Flex MenuItem
8494 status collapsed
8495
8496 \begin_layout Plain Layout
8497 文書\SpecialChar menuseparator
8498 設定
8499 \end_layout
8500
8501 \end_inset
8502
8503 ダイアログで変更することができます.
8504 \end_layout
8505
8506 \begin_layout Description
8507 \begin_inset Flex Code
8508 status collapsed
8509
8510 \begin_layout Plain Layout
8511 Preamble
8512 \end_layout
8513
8514 \end_inset
8515
8516  \SpecialChar LaTeX
8517 文書のプリアンブルを設定します.前に行った
8518 \begin_inset Flex Code
8519 status collapsed
8520
8521 \begin_layout Plain Layout
8522 Preamble
8523 \end_layout
8524
8525 \end_inset
8526
8527 宣言や
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 AddToPreamble
8533 \end_layout
8534
8535 \end_inset
8536
8537 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8538 \begin_inset Flex Code
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 AddToPreamble
8543 \end_layout
8544
8545 \end_inset
8546
8547 を使用してください.)「
8548 \begin_inset Flex Code
8549 status collapsed
8550
8551 \begin_layout Plain Layout
8552 EndPreamble
8553 \end_layout
8554
8555 \end_inset
8556
8557 」で閉じる必要があります.
8558 \end_layout
8559
8560 \begin_layout Description
8561 \begin_inset Flex Code
8562 status collapsed
8563
8564 \begin_layout Plain Layout
8565 Provides
8566 \end_layout
8567
8568 \end_inset
8569
8570  [
8571 \begin_inset Flex Code
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 文字列
8576 \end_layout
8577
8578 \end_inset
8579
8580 ] [
8581 \begin_inset Flex Code
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585
8586 \emph on
8587 0
8588 \end_layout
8589
8590 \end_inset
8591
8592
8593 \begin_inset Flex Code
8594 status collapsed
8595
8596 \begin_layout Plain Layout
8597 1
8598 \end_layout
8599
8600 \end_inset
8601
8602 ] このクラスが
8603 \begin_inset Flex Code
8604 status collapsed
8605
8606 \begin_layout Plain Layout
8607 文字列
8608 \end_layout
8609
8610 \end_inset
8611
8612 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8613 \begin_inset Flex Code
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 amsmath
8618 \end_layout
8619
8620 \end_inset
8621
8622
8623 \begin_inset Flex Code
8624 status collapsed
8625
8626 \begin_layout Plain Layout
8627 makeidx
8628 \end_layout
8629
8630 \end_inset
8631
8632 ・\SpecialChar ldots
8633 )やマクロ名(
8634 \begin_inset Flex Code
8635 status collapsed
8636
8637 \begin_layout Plain Layout
8638 url
8639 \end_layout
8640
8641 \end_inset
8642
8643
8644 \begin_inset Flex Code
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 boldsymbol
8649 \end_layout
8650
8651 \end_inset
8652
8653 ・\SpecialChar ldots
8654 )です.機能一覧については,
8655 \begin_inset CommandInset ref
8656 LatexCommand ref
8657 reference "chap:関数一覧"
8658
8659 \end_inset
8660
8661 を参照.
8662 \end_layout
8663
8664 \begin_layout Description
8665 \begin_inset Flex Code
8666 status collapsed
8667
8668 \begin_layout Plain Layout
8669 ProvidesModule
8670 \end_layout
8671
8672 \end_inset
8673
8674  [
8675 \begin_inset Flex Code
8676 status collapsed
8677
8678 \begin_layout Plain Layout
8679 文字列
8680 \end_layout
8681
8682 \end_inset
8683
8684 ] このレイアウトが
8685 \begin_inset Flex Code
8686 status collapsed
8687
8688 \begin_layout Plain Layout
8689 文字列
8690 \end_layout
8691
8692 \end_inset
8693
8694 で表されているモジュールの機能を提供することを示し,
8695 \begin_inset Flex Code
8696 status collapsed
8697
8698 \begin_layout Plain Layout
8699 .module
8700 \end_layout
8701
8702 \end_inset
8703
8704 拡張子を除いたファイル名で指定します.
8705 \begin_inset Flex Code
8706 status collapsed
8707
8708 \begin_layout Plain Layout
8709 DefaultModule
8710 \end_layout
8711
8712 \end_inset
8713
8714 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8715 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8716 \end_layout
8717
8718 \begin_layout Description
8719 \begin_inset Flex Code
8720 status collapsed
8721
8722 \begin_layout Plain Layout
8723 Requires
8724 \end_layout
8725
8726 \end_inset
8727
8728  [
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733 文字列
8734 \end_layout
8735
8736 \end_inset
8737
8738 ] このクラスが
8739 \begin_inset Flex Code
8740 status collapsed
8741
8742 \begin_layout Plain Layout
8743 文字列
8744 \end_layout
8745
8746 \end_inset
8747
8748 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8749 さい(機能一覧については
8750 \begin_inset CommandInset ref
8751 LatexCommand ref
8752 reference "chap:関数一覧"
8753
8754 \end_inset
8755
8756 を参照).特定のオプションをとるパッケージを要求する場合,
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 PackageOptions
8762 \end_layout
8763
8764 \end_inset
8765
8766 を追加して使うことができます.
8767 \end_layout
8768
8769 \begin_layout Description
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 RightMargin
8775 \end_layout
8776
8777 \end_inset
8778
8779  [
8780 \begin_inset Flex Code
8781 status collapsed
8782
8783 \begin_layout Plain Layout
8784 文字列
8785 \end_layout
8786
8787 \end_inset
8788
8789 ] 画面上の右余白の幅を指示する文字列.例:「
8790 \begin_inset Flex Code
8791 status collapsed
8792
8793 \begin_layout Plain Layout
8794 MMMMM
8795 \end_layout
8796
8797 \end_inset
8798
8799 」.
8800 \end_layout
8801
8802 \begin_layout Description
8803 \begin_inset Flex Code
8804 status collapsed
8805
8806 \begin_layout Plain Layout
8807 SecNumDepth
8808 \end_layout
8809
8810 \end_inset
8811
8812  [
8813 \begin_inset Flex Code
8814 status collapsed
8815
8816 \begin_layout Plain Layout
8817 int=3
8818 \end_layout
8819
8820 \end_inset
8821
8822 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8823 における
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 secnumdepth
8829 \end_layout
8830
8831 \end_inset
8832
8833 カウンタに対応します.
8834 \end_layout
8835
8836 \begin_layout Description
8837 \begin_inset Flex Code
8838 status collapsed
8839
8840 \begin_layout Plain Layout
8841 Sides
8842 \end_layout
8843
8844 \end_inset
8845
8846  [
8847 \emph on
8848
8849 \begin_inset Flex Code
8850 status collapsed
8851
8852 \begin_layout Plain Layout
8853 1
8854 \end_layout
8855
8856 \end_inset
8857
8858
8859 \emph default
8860 ,
8861 \begin_inset space \thinspace{}
8862 \end_inset
8863
8864
8865 \begin_inset Flex Code
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 2
8870 \end_layout
8871
8872 \end_inset
8873
8874 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8875 \begin_inset Flex MenuItem
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 文書\SpecialChar menuseparator
8880 設定
8881 \end_layout
8882
8883 \end_inset
8884
8885 ダイアログで変更することができます.
8886 \end_layout
8887
8888 \begin_layout Description
8889 \begin_inset Flex Code
8890 status collapsed
8891
8892 \begin_layout Plain Layout
8893 Style
8894 \end_layout
8895
8896 \end_inset
8897
8898  [
8899 \begin_inset Flex Code
8900 status collapsed
8901
8902 \begin_layout Plain Layout
8903 <名称>
8904 \end_layout
8905
8906 \end_inset
8907
8908 ]
8909 \lang english
8910  
8911 \lang japanese
8912 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8913 \begin_inset Flex Code
8914 status collapsed
8915
8916 \begin_layout Plain Layout
8917 End
8918 \end_layout
8919
8920 \end_inset
8921
8922 」で閉じる必要があります.
8923 \begin_inset Newline newline
8924 \end_inset
8925
8926 段落様式に関する詳細は,
8927 \begin_inset CommandInset ref
8928 LatexCommand ref
8929 reference "subsec:段落様式-XHTML"
8930
8931 \end_inset
8932
8933 をご覧ください.
8934 \end_layout
8935
8936 \begin_layout Description
8937 \begin_inset Flex Code
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 TitleLatexName
8942 \end_layout
8943
8944 \end_inset
8945
8946  [
8947 \begin_inset Flex Code
8948 status collapsed
8949
8950 \begin_layout Plain Layout
8951 文字列="maketitle"
8952 \end_layout
8953
8954 \end_inset
8955
8956
8957 \begin_inset Flex Code
8958 status collapsed
8959
8960 \begin_layout Plain Layout
8961 TitleLatexType
8962 \end_layout
8963
8964 \end_inset
8965
8966 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8967  
8968 \begin_inset Flex Code
8969 status collapsed
8970
8971 \begin_layout Plain Layout
8972 TitleLatexType
8973 \end_layout
8974
8975 \end_inset
8976
8977 .
8978 \end_layout
8979
8980 \begin_layout Description
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985 TitleLatexType
8986 \end_layout
8987
8988 \end_inset
8989
8990  [
8991 \begin_inset Flex Code
8992 status collapsed
8993
8994 \begin_layout Plain Layout
8995
8996 \emph on
8997 CommandAfter
8998 \end_layout
8999
9000 \end_inset
9001
9002
9003 \begin_inset Flex Code
9004 status collapsed
9005
9006 \begin_layout Plain Layout
9007 Environment
9008 \end_layout
9009
9010 \end_inset
9011
9012 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
9013 \begin_inset Flex Code
9014 status collapsed
9015
9016 \begin_layout Plain Layout
9017 CommandAfter
9018 \end_layout
9019
9020 \end_inset
9021
9022 は,「
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027 InTitle
9028 \begin_inset space ~
9029 \end_inset
9030
9031 1
9032 \end_layout
9033
9034 \end_inset
9035
9036 」が指定されている最後のレイアウトの後に,
9037 \begin_inset Flex Code
9038 status collapsed
9039
9040 \begin_layout Plain Layout
9041 TitleLatexName
9042 \end_layout
9043
9044 \end_inset
9045
9046 で指定したマクロ名を挿入することを意味します.
9047 \begin_inset Flex Code
9048 status collapsed
9049
9050 \begin_layout Plain Layout
9051 Environment
9052 \end_layout
9053
9054 \end_inset
9055
9056 は,「
9057 \begin_inset Flex Code
9058 status collapsed
9059
9060 \begin_layout Plain Layout
9061 InTitle
9062 \begin_inset space ~
9063 \end_inset
9064
9065 1
9066 \end_layout
9067
9068 \end_inset
9069
9070 」を持つ段落群を
9071 \begin_inset Flex Code
9072 status collapsed
9073
9074 \begin_layout Plain Layout
9075 TitleLatexName
9076 \end_layout
9077
9078 \end_inset
9079
9080 で指定した環境でくるむ場合に対応します.
9081 \end_layout
9082
9083 \begin_layout Description
9084 \begin_inset Flex Code
9085 status collapsed
9086
9087 \begin_layout Plain Layout
9088 TocDepth
9089 \end_layout
9090
9091 \end_inset
9092
9093  [
9094 \begin_inset Flex Code
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 int=3
9099 \end_layout
9100
9101 \end_inset
9102
9103 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9104
9105 \begin_inset Flex Code
9106 status collapsed
9107
9108 \begin_layout Plain Layout
9109 tocdepth
9110 \end_layout
9111
9112 \end_inset
9113
9114 カウンタに対応します.
9115 \end_layout
9116
9117 \begin_layout Subsection
9118 \begin_inset Flex Code
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122 ClassOptions
9123 \end_layout
9124
9125 \end_inset
9126
9127
9128 \begin_inset CommandInset label
9129 LatexCommand label
9130 name "subsec:ClassOptions"
9131
9132 \end_inset
9133
9134
9135 \end_layout
9136
9137 \begin_layout Standard
9138 \begin_inset Flex Code
9139 status collapsed
9140
9141 \begin_layout Plain Layout
9142 ClassOptions
9143 \end_layout
9144
9145 \end_inset
9146
9147 部は,以下の項目を取り得ます.
9148 \end_layout
9149
9150 \begin_layout Description
9151 \begin_inset Flex Code
9152 status collapsed
9153
9154 \begin_layout Plain Layout
9155 FontSize
9156 \end_layout
9157
9158 \end_inset
9159
9160  [
9161 \begin_inset Flex Code
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165 文字列="10|11|12"
9166 \end_layout
9167
9168 \end_inset
9169
9170 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9171 \begin_inset Flex Code
9172 status collapsed
9173
9174 \begin_layout Plain Layout
9175 |
9176 \end_layout
9177
9178 \end_inset
9179
9180 」で区切ります.
9181 \end_layout
9182
9183 \begin_layout Description
9184 \begin_inset Flex Code
9185 status collapsed
9186
9187 \begin_layout Plain Layout
9188 Header
9189 \end_layout
9190
9191 \end_inset
9192
9193  XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC 
9194 \begin_inset Quotes eld
9195 \end_inset
9196
9197 -//OASIS//DTD DocBook V4.2//EN
9198 \begin_inset Quotes erd
9199 \end_inset
9200
9201
9202 \end_layout
9203
9204 \begin_layout Description
9205 \begin_inset Flex Code
9206 status collapsed
9207
9208 \begin_layout Plain Layout
9209 PageStyle
9210 \end_layout
9211
9212 \end_inset
9213
9214  [
9215 \begin_inset Flex Code
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219 文字列="empty|plain|headings|fancy"
9220 \end_layout
9221
9222 \end_inset
9223
9224 ] 使用できるページ様式の一覧です.「
9225 \begin_inset Flex Code
9226 status collapsed
9227
9228 \begin_layout Plain Layout
9229 |
9230 \end_layout
9231
9232 \end_inset
9233
9234 」で区切ります.
9235 \end_layout
9236
9237 \begin_layout Description
9238 \begin_inset Flex Code
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 Other
9243 \end_layout
9244
9245 \end_inset
9246
9247  [
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 文字列=""
9253 \end_layout
9254
9255 \end_inset
9256
9257
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262
9263 \backslash
9264 documentclass
9265 \end_layout
9266
9267 \end_inset
9268
9269 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9270 \end_layout
9271
9272 \begin_layout Standard
9273 \begin_inset Flex Code
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277 ClassOptions
9278 \end_layout
9279
9280 \end_inset
9281
9282 部は「
9283 \begin_inset Flex Code
9284 status collapsed
9285
9286 \begin_layout Plain Layout
9287 End
9288 \end_layout
9289
9290 \end_inset
9291
9292 」で閉じる必要があります.
9293 \end_layout
9294
9295 \begin_layout Subsection
9296 段落様式
9297 \begin_inset CommandInset label
9298 LatexCommand label
9299 name "subsec:段落様式"
9300
9301 \end_inset
9302
9303
9304 \end_layout
9305
9306 \begin_layout Standard
9307 段落様式の記述は,以下のようになります
9308 \begin_inset Foot
9309 status collapsed
9310
9311 \begin_layout Plain Layout
9312 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9313 \end_layout
9314
9315 \end_inset
9316
9317
9318 \end_layout
9319
9320 \begin_layout LyX-Code
9321 Style 
9322 \family roman
9323 \emph on
9324 名称
9325 \end_layout
9326
9327 \begin_layout LyX-Code
9328  ...
9329 \end_layout
9330
9331 \begin_layout LyX-Code
9332 End
9333 \end_layout
9334
9335 \begin_layout Standard
9336 ここでは,以下のコマンドを使用することができます.
9337 \end_layout
9338
9339 \begin_layout Description
9340 \begin_inset Flex Code
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344 Align
9345 \end_layout
9346
9347 \end_inset
9348
9349  [
9350 \begin_inset Flex Code
9351 status collapsed
9352
9353 \begin_layout Plain Layout
9354
9355 \emph on
9356 block
9357 \emph default
9358 , left, right, center
9359 \end_layout
9360
9361 \end_inset
9362
9363 ] 段落の揃え.
9364 \end_layout
9365
9366 \begin_layout Description
9367 \begin_inset Flex Code
9368 status collapsed
9369
9370 \begin_layout Plain Layout
9371 AlignPossible
9372 \end_layout
9373
9374 \end_inset
9375
9376  [
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381
9382 \emph on
9383 block
9384 \emph default
9385 , left, right, center
9386 \end_layout
9387
9388 \end_inset
9389
9390 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9391 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9392 はできません).
9393 \end_layout
9394
9395 \begin_layout Description
9396 \begin_inset Flex Code
9397 status collapsed
9398
9399 \begin_layout Plain Layout
9400 Argument
9401 \end_layout
9402
9403 \end_inset
9404
9405  [
9406 \begin_inset Flex Code
9407 status collapsed
9408
9409 \begin_layout Plain Layout
9410 整数
9411 \end_layout
9412
9413 \end_inset
9414
9415 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9416 でのみ意味を持ちます.コマンドまたは環
9417 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 EndArgument
9423 \end_layout
9424
9425 \end_inset
9426
9427 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9428 \begin_inset Separator latexpar
9429 \end_inset
9430
9431
9432 \end_layout
9433
9434 \begin_deeper
9435 \begin_layout Quote
9436
9437 \family typewriter
9438 Argument 1
9439 \end_layout
9440
9441 \begin_layout Quote
9442
9443 \family typewriter
9444 ...
9445 \end_layout
9446
9447 \begin_layout Quote
9448
9449 \family typewriter
9450 EndArgument
9451 \end_layout
9452
9453 \begin_layout Quote
9454
9455 \family typewriter
9456 Argument 2
9457 \end_layout
9458
9459 \begin_layout Quote
9460
9461 \family typewriter
9462 ...
9463 \end_layout
9464
9465 \begin_layout Quote
9466
9467 \family typewriter
9468 EndArgument
9469 \end_layout
9470
9471 \begin_layout Standard
9472 \begin_inset Flex Code
9473 status collapsed
9474
9475 \begin_layout Plain Layout
9476 Argument
9477 \end_layout
9478
9479 \end_inset
9480
9481 定義内部では,以下の指定をすることができます.
9482 \end_layout
9483
9484 \begin_layout Itemize
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 LabelString
9490 \end_layout
9491
9492 \end_inset
9493
9494  
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 [文字列]
9500 \end_layout
9501
9502 \end_inset
9503
9504  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 MenuString
9510 \end_layout
9511
9512 \end_inset
9513
9514 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9515 \begin_inset space \space{}
9516 \end_inset
9517
9518
9519 \begin_inset Quotes eld
9520 \end_inset
9521
9522
9523 \begin_inset Flex Code
9524 status collapsed
9525
9526 \begin_layout Plain Layout
9527 Short Title|S
9528 \end_layout
9529
9530 \end_inset
9531
9532
9533 \begin_inset Quotes erd
9534 \end_inset
9535
9536 ).
9537 \end_layout
9538
9539 \begin_layout Itemize
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 MenuString
9545 \end_layout
9546
9547 \end_inset
9548
9549  
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554 [文字列]
9555 \end_layout
9556
9557 \end_inset
9558
9559  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9560 \begin_inset space \space{}
9561 \end_inset
9562
9563
9564 \begin_inset Quotes eld
9565 \end_inset
9566
9567
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 Short Title|S
9573 \end_layout
9574
9575 \end_inset
9576
9577
9578 \begin_inset Quotes erd
9579 \end_inset
9580
9581 ).この指定は必須ではありません.指定しない場合には,代わりに
9582 \begin_inset Flex Code
9583 status collapsed
9584
9585 \begin_layout Plain Layout
9586 LabelString
9587 \end_layout
9588
9589 \end_inset
9590
9591 がメニューに用いられます.
9592 \end_layout
9593
9594 \begin_layout Itemize
9595 \begin_inset Flex Code
9596 status collapsed
9597
9598 \begin_layout Plain Layout
9599 Tooltip
9600 \end_layout
9601
9602 \end_inset
9603
9604  
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 [文字列]
9610 \end_layout
9611
9612 \end_inset
9613
9614  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9615 \end_layout
9616
9617 \begin_layout Itemize
9618 \begin_inset Flex Code
9619 status collapsed
9620
9621 \begin_layout Plain Layout
9622 Mandatory
9623 \end_layout
9624
9625 \end_inset
9626
9627  [
9628 \begin_inset Flex Code
9629 status collapsed
9630
9631 \begin_layout Plain Layout
9632
9633 \emph on
9634 0
9635 \end_layout
9636
9637 \end_inset
9638
9639 ,
9640 \begin_inset space \thinspace{}
9641 \end_inset
9642
9643
9644 \begin_inset Flex Code
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648 1
9649 \end_layout
9650
9651 \end_inset
9652
9653 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9654 .既定では,必須引数は
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 {...}
9660 \end_layout
9661
9662 \end_inset
9663
9664 で区切られ,非必須引数は
9665 \begin_inset Flex Code
9666 status collapsed
9667
9668 \begin_layout Plain Layout
9669 [...]
9670 \end_layout
9671
9672 \end_inset
9673
9674 で区切られます.
9675 \end_layout
9676
9677 \begin_layout Itemize
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 Requires
9683 \end_layout
9684
9685 \end_inset
9686
9687  
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 [整数=0]
9693 \end_layout
9694
9695 \end_inset
9696
9697  この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9698 コマンドでは,
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703
9704 \backslash
9705 command[][引数]{文字列}
9706 \end_layout
9707
9708 \end_inset
9709
9710 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9711 \begin_inset Flex Code
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 Argument 2
9716 \end_layout
9717
9718 \end_inset
9719
9720 中に
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 Requires 1
9726 \end_layout
9727
9728 \end_inset
9729
9730 ステートメントを置くことで実現できます.
9731 \end_layout
9732
9733 \begin_layout Itemize
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 LeftDelim
9739 \end_layout
9740
9741 \end_inset
9742
9743  
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 [文字列]
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 <br/>
9779 \end_layout
9780
9781 \end_inset
9782
9783 で指示できます.
9784 \end_layout
9785
9786 \begin_layout Itemize
9787 \begin_inset Flex Code
9788 status collapsed
9789
9790 \begin_layout Plain Layout
9791 RightDelim
9792 \end_layout
9793
9794 \end_inset
9795
9796  
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 [文字列]
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
9817 \begin_inset Flex Code
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 ]
9822 \end_layout
9823
9824 \end_inset
9825
9826 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9827 \begin_inset Flex Code
9828 status collapsed
9829
9830 \begin_layout Plain Layout
9831 <br/>
9832 \end_layout
9833
9834 \end_inset
9835
9836 で指示できます.
9837 \end_layout
9838
9839 \begin_layout Itemize
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844 DefaultArg
9845 \end_layout
9846
9847 \end_inset
9848
9849  
9850 \begin_inset Flex Code
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854 [文字列]
9855 \end_layout
9856
9857 \end_inset
9858
9859  ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9860 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9861 \end_layout
9862
9863 \begin_layout Itemize
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 PresetArg
9869 \end_layout
9870
9871 \end_inset
9872
9873  
9874 \begin_inset Flex Code
9875 status collapsed
9876
9877 \begin_layout Plain Layout
9878 [文字列]
9879 \end_layout
9880
9881 \end_inset
9882
9883  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9884 \end_layout
9885
9886 \begin_layout Itemize
9887 \begin_inset Flex Code
9888 status collapsed
9889
9890 \begin_layout Plain Layout
9891 Font
9892 \end_layout
9893
9894 \end_inset
9895
9896  引数の内容に用いられるフォント.
9897 \begin_inset CommandInset ref
9898 LatexCommand ref
9899 reference "subsec:フォント指定"
9900
9901 \end_inset
9902
9903 参照.
9904 \end_layout
9905
9906 \begin_layout Itemize
9907 \begin_inset Flex Code
9908 status collapsed
9909
9910 \begin_layout Plain Layout
9911 LabelFont
9912 \end_layout
9913
9914 \end_inset
9915
9916  ラベルに用いられるフォント.
9917 \begin_inset CommandInset ref
9918 LatexCommand ref
9919 reference "subsec:フォント指定"
9920
9921 \end_inset
9922
9923 参照.
9924 \end_layout
9925
9926 \begin_layout Itemize
9927 \begin_inset Flex Code
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 Decoration
9932 \end_layout
9933
9934 \end_inset
9935
9936  [
9937 \begin_inset Flex Code
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941
9942 \emph on
9943 Classic
9944 \emph default
9945 , Minimalistic, Conglomerate
9946 \end_layout
9947
9948 \end_inset
9949
9950 ] 差込枠の枠とボタンに用いられる装飾様式.
9951 \end_layout
9952
9953 \begin_layout Itemize
9954 \begin_inset Flex Code
9955 status collapsed
9956
9957 \begin_layout Plain Layout
9958 AutoInsert
9959 \end_layout
9960
9961 \end_inset
9962
9963  
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968 [整数=0]
9969 \end_layout
9970
9971 \end_inset
9972
9973  これが
9974 \begin_inset Flex Code
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978 1
9979 \end_layout
9980
9981 \end_inset
9982
9983 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9984 \end_layout
9985
9986 \begin_layout Itemize
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991 InsertCotext
9992 \end_layout
9993
9994 \end_inset
9995
9996  
9997 \begin_inset Flex Code
9998 status collapsed
9999
10000 \begin_layout Plain Layout
10001 [整数=0]
10002 \end_layout
10003
10004 \end_inset
10005
10006  これが
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 1
10012 \end_layout
10013
10014 \end_inset
10015
10016 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
10017 \end_layout
10018
10019 \begin_layout Itemize
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024 PassThruChars
10025 \end_layout
10026
10027 \end_inset
10028
10029  [
10030 \begin_inset Flex Code
10031 status collapsed
10032
10033 \begin_layout Plain Layout
10034 文字列
10035 \end_layout
10036
10037 \end_inset
10038
10039 ]
10040 \family typewriter
10041  
10042 \family default
10043 \SpecialChar LaTeX
10044 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
10045 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
10046 \end_layout
10047
10048 \begin_layout Standard
10049 既定では,
10050 \begin_inset Flex Code
10051 status collapsed
10052
10053 \begin_layout Plain Layout
10054 LatexType
10055 \end_layout
10056
10057 \end_inset
10058
10059
10060 \begin_inset Flex Code
10061 status collapsed
10062
10063 \begin_layout Plain Layout
10064 Command
10065 \end_layout
10066
10067 \end_inset
10068
10069 のとき,各レイアウトで\SpecialChar LyX
10070 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10071 \begin_inset Flex Code
10072 status collapsed
10073
10074 \begin_layout Plain Layout
10075 post:
10076 \end_layout
10077
10078 \end_inset
10079
10080 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10081 \begin_inset Flex Code
10082 status collapsed
10083
10084 \begin_layout Plain Layout
10085 post:1
10086 \end_layout
10087
10088 \end_inset
10089
10090 となります.後置引数は,
10091 \begin_inset Flex Code
10092 status collapsed
10093
10094 \begin_layout Plain Layout
10095 Command
10096 \end_layout
10097
10098 \end_inset
10099
10100 以外の
10101 \begin_inset Flex Code
10102 status collapsed
10103
10104 \begin_layout Plain Layout
10105 LatexType
10106 \end_layout
10107
10108 \end_inset
10109
10110 では無視されます.
10111 \end_layout
10112
10113 \begin_layout Standard
10114 (
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119
10120 \backslash
10121 item[foo]
10122 \end_layout
10123
10124 \end_inset
10125
10126 のような)箇条書き
10127 \begin_inset Flex Code
10128 status collapsed
10129
10130 \begin_layout Plain Layout
10131
10132 \backslash
10133 item
10134 \end_layout
10135
10136 \end_inset
10137
10138 の引数は,前置句
10139 \begin_inset Flex Code
10140 status collapsed
10141
10142 \begin_layout Plain Layout
10143 item:
10144 \end_layout
10145
10146 \end_inset
10147
10148 の後に番号を付けます(例:
10149 \begin_inset Flex Code
10150 status collapsed
10151
10152 \begin_layout Plain Layout
10153 Argument item:1
10154 \end_layout
10155
10156 \end_inset
10157
10158 ).
10159 \end_layout
10160
10161 \end_deeper
10162 \begin_layout Description
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 BabelPreamble
10168 \end_layout
10169
10170 \end_inset
10171
10172  これは,前に現れたこの様式の
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 BabelPreamble
10178 \end_layout
10179
10180 \end_inset
10181
10182 宣言をすべて,完全に上書きしますので注意してください.「
10183 \begin_inset Flex Code
10184 status collapsed
10185
10186 \begin_layout Plain Layout
10187 EndBabelPreamble
10188 \end_layout
10189
10190 \end_inset
10191
10192 」で閉じる必要があります.これの利用法についての詳細は,第
10193 \begin_inset CommandInset ref
10194 LatexCommand ref
10195 reference "subsec:段落様式の国際化"
10196
10197 \end_inset
10198
10199 節をご覧ください.
10200 \end_layout
10201
10202 \begin_layout Description
10203 \begin_inset Flex Code
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207 BottomSep
10208 \end_layout
10209
10210 \end_inset
10211
10212  [
10213 \begin_inset Flex Code
10214 status collapsed
10215
10216 \begin_layout Plain Layout
10217 浮動小数点型=0
10218 \end_layout
10219
10220 \end_inset
10221
10222 ]
10223 \begin_inset Foot
10224 status collapsed
10225
10226 \begin_layout Plain Layout
10227 ここで「浮動小数点型」とは1.5のような実数を指します.
10228 \end_layout
10229
10230 \end_inset
10231
10232  このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10233 す.
10234 \end_layout
10235
10236 \begin_layout Description
10237 \begin_inset Flex Code
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 Category
10242 \end_layout
10243
10244 \end_inset
10245
10246  [
10247 \begin_inset Flex Code
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 文字列
10252 \end_layout
10253
10254 \end_inset
10255
10256 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10257 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10258 \end_layout
10259
10260 \begin_layout Description
10261 \begin_inset Flex Code
10262 status collapsed
10263
10264 \begin_layout Plain Layout
10265 CommandDepth
10266 \end_layout
10267
10268 \end_inset
10269
10270  XMLコマンドの深度.XML型の書式でのみ使用されます.
10271 \end_layout
10272
10273 \begin_layout Description
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 CopyStyle
10279 \end_layout
10280
10281 \end_inset
10282
10283  [
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
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 DependsOn
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 \end_layout
10313
10314 \end_inset
10315
10316 ]
10317 \lang english
10318  
10319 \lang japanese
10320 この
10321 \emph on
10322 前に
10323 \emph default
10324 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10325 \begin_inset Foot
10326 status collapsed
10327
10328 \begin_layout Plain Layout
10329 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10330 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10331 あります.
10332 \end_layout
10333
10334 \end_inset
10335
10336
10337 \end_layout
10338
10339 \begin_layout Description
10340 \begin_inset Flex Code
10341 status collapsed
10342
10343 \begin_layout Plain Layout
10344 EndLabeltype
10345 \end_layout
10346
10347 \end_inset
10348
10349  [
10350 \begin_inset Flex Code
10351 status collapsed
10352
10353 \begin_layout Plain Layout
10354
10355 \emph on
10356 No_Label
10357 \emph default
10358 , Box, Filled_Box, Static
10359 \end_layout
10360
10361 \end_inset
10362
10363 ] 段落の最後(あるいは
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 LatexType
10369 \end_layout
10370
10371 \end_inset
10372
10373 が,
10374 \begin_inset Flex Code
10375 status collapsed
10376
10377 \begin_layout Plain Layout
10378 Environment
10379 \end_layout
10380
10381 \end_inset
10382
10383
10384 \begin_inset Flex Code
10385 status collapsed
10386
10387 \begin_layout Plain Layout
10388 Item_Environment
10389 \end_layout
10390
10391 \end_inset
10392
10393
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 List_Environment
10399 \end_layout
10400
10401 \end_inset
10402
10403 のいずれかの場合は,段落群の最後)に置くラベル.
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 No_Label
10409 \end_layout
10410
10411 \end_inset
10412
10413 の場合は「何もない」ことを指し,
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 Box
10419 \end_layout
10420
10421 \end_inset
10422
10423 (あるいは
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 Filled_Box
10429 \end_layout
10430
10431 \end_inset
10432
10433 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 Static
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 EndLabelString
10452 \end_layout
10453
10454 \end_inset
10455
10456  [
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 文字列=""
10462 \end_layout
10463
10464 \end_inset
10465
10466
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 Static
10472 \end_layout
10473
10474 \end_inset
10475
10476
10477 \begin_inset Flex Code
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481 EndLabelType
10482 \end_layout
10483
10484 \end_inset
10485
10486 のラベルで用いる文字列.
10487 \end_layout
10488
10489 \begin_layout Description
10490 \begin_inset Flex Code
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 Font
10495 \end_layout
10496
10497 \end_inset
10498
10499  本文テキストとラベルの
10500 \emph on
10501 両方で
10502 \emph default
10503 用いられるフォント.第
10504 \begin_inset CommandInset ref
10505 LatexCommand ref
10506 reference "subsec:フォント指定"
10507
10508 \end_inset
10509
10510 節を参照.このフォントを定義すると,自動的に
10511 \begin_inset Flex Code
10512 status collapsed
10513
10514 \begin_layout Plain Layout
10515 LabelFont
10516 \end_layout
10517
10518 \end_inset
10519
10520 も同じ値で定義されることに注意してください.したがって,
10521 \begin_inset Flex Code
10522 status collapsed
10523
10524 \begin_layout Plain Layout
10525 LabelFont
10526 \end_layout
10527
10528 \end_inset
10529
10530 も同時に定義したい場合には,これを先に定義してください.
10531 \end_layout
10532
10533 \begin_layout Description
10534 \begin_inset Flex Code
10535 status collapsed
10536
10537 \begin_layout Plain Layout
10538 ForceLocal
10539 \end_layout
10540
10541 \end_inset
10542
10543  [
10544 \begin_inset Flex Code
10545 status collapsed
10546
10547 \begin_layout Plain Layout
10548 int=0
10549 \end_layout
10550
10551 \end_inset
10552
10553 ] 新しい様式を\SpecialChar LyX
10554 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10555  2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10556 できます.様式の
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561 ForceLocal
10562 \end_layout
10563
10564 \end_inset
10565
10566 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10567 版の\SpecialChar LyX
10568 もこの様式を取り扱えるようになります.
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 ForceLocal
10574 \end_layout
10575
10576 \end_inset
10577
10578 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10579 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10580 \end_layout
10581
10582 \begin_layout Description
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 FreeSpacing
10588 \end_layout
10589
10590 \end_inset
10591
10592  [
10593 \emph on
10594
10595 \begin_inset Flex Code
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 0
10600 \end_layout
10601
10602 \end_inset
10603
10604
10605 \emph default
10606 ,
10607 \begin_inset space \thinspace{}
10608 \end_inset
10609
10610
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 1
10616 \end_layout
10617
10618 \end_inset
10619
10620 ] \SpecialChar LyX
10621 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10622 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10623 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10624 \begin_inset Flex Code
10625 status collapsed
10626
10627 \begin_layout Plain Layout
10628 FreeSpacing
10629 \end_layout
10630
10631 \end_inset
10632
10633 を有効にすることが認められています.\SpecialChar LyX
10634 は,\SpecialChar LaTeX
10635 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10636 \end_layout
10637
10638 \begin_layout Description
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 HTML*
10644 \end_layout
10645
10646 \end_inset
10647
10648  これらのタグは,XHTML出力で使用されます.第
10649 \begin_inset CommandInset ref
10650 LatexCommand ref
10651 reference "subsec:段落様式-XHTML"
10652
10653 \end_inset
10654
10655 節をご覧ください.
10656 \end_layout
10657
10658 \begin_layout Description
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 InnerTag
10664 \end_layout
10665
10666 \end_inset
10667
10668  [[FIXME]] (XML型書式でのみ使用されます.)
10669 \end_layout
10670
10671 \begin_layout Description
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 InPreamble
10677 \end_layout
10678
10679 \end_inset
10680
10681  [
10682 \emph on
10683
10684 \begin_inset Flex Code
10685 status collapsed
10686
10687 \begin_layout Plain Layout
10688 0
10689 \end_layout
10690
10691 \end_inset
10692
10693
10694 \emph default
10695 ,
10696 \begin_inset space \thinspace{}
10697 \end_inset
10698
10699
10700 \begin_inset Flex Code
10701 status collapsed
10702
10703 \begin_layout Plain Layout
10704 1
10705 \end_layout
10706
10707 \end_inset
10708
10709
10710 \begin_inset Flex Code
10711 status collapsed
10712
10713 \begin_layout Plain Layout
10714 1
10715 \end_layout
10716
10717 \end_inset
10718
10719 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10720 です.これは,
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725 LatexType
10726 \end_layout
10727
10728 \end_inset
10729
10730
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 Command
10736 \end_layout
10737
10738 \end_inset
10739
10740 または
10741 \begin_inset Flex Code
10742 status collapsed
10743
10744 \begin_layout Plain Layout
10745 Paragraph
10746 \end_layout
10747
10748 \end_inset
10749
10750 の様式に対してのみ動作します.
10751 \end_layout
10752
10753 \begin_layout Description
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 InTitle
10759 \end_layout
10760
10761 \end_inset
10762
10763  [
10764 \emph on
10765
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 0
10771 \end_layout
10772
10773 \end_inset
10774
10775
10776 \emph default
10777 ,
10778 \begin_inset space \thinspace{}
10779 \end_inset
10780
10781
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 1
10787 \end_layout
10788
10789 \end_inset
10790
10791
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 1
10797 \end_layout
10798
10799 \end_inset
10800
10801 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806 TitleLatexType
10807 \end_layout
10808
10809 \end_inset
10810
10811
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 TitleLatexName
10817 \end_layout
10818
10819 \end_inset
10820
10821 も参照).
10822 \end_layout
10823
10824 \begin_layout Description
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 ItemCommand
10830 \end_layout
10831
10832 \end_inset
10833
10834  [
10835 \begin_inset Flex Code
10836 status collapsed
10837
10838 \begin_layout Plain Layout
10839 文字列="item"
10840 \end_layout
10841
10842 \end_inset
10843
10844 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10845 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10846 出力中では
10847 \begin_inset Flex Code
10848 status collapsed
10849
10850 \begin_layout Plain Layout
10851
10852 \backslash
10853 item
10854 \end_layout
10855
10856 \end_inset
10857
10858 となります).
10859 \end_layout
10860
10861 \begin_layout Description
10862 \begin_inset Flex Code
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866 ItemSep
10867 \end_layout
10868
10869 \end_inset
10870
10871  [
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 浮動小数点型=0
10877 \end_layout
10878
10879 \end_inset
10880
10881 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10882 \begin_inset Flex Code
10883 status collapsed
10884
10885 \begin_layout Plain Layout
10886 ParSep
10887 \end_layout
10888
10889 \end_inset
10890
10891 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10892 \begin_inset Flex Code
10893 status collapsed
10894
10895 \begin_layout Plain Layout
10896 ItemSep
10897 \end_layout
10898
10899 \end_inset
10900
10901 分だけ離されます.これは
10902 \emph on
10903 乗数
10904 \emph default
10905 であることに注意してください.
10906 \end_layout
10907
10908 \begin_layout Description
10909 \begin_inset Flex Code
10910 status collapsed
10911
10912 \begin_layout Plain Layout
10913 ItemTag
10914 \end_layout
10915
10916 \end_inset
10917
10918  [[FIXME]] (XML型書式でのみ使用されます.)
10919 \end_layout
10920
10921 \begin_layout Description
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 KeepEmpty
10927 \end_layout
10928
10929 \end_inset
10930
10931  [
10932 \emph on
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 \emph default
10945 ,
10946 \begin_inset space \thinspace{}
10947 \end_inset
10948
10949
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 1
10955 \end_layout
10956
10957 \end_inset
10958
10959 ] 段落を空のままにすると,\SpecialChar LaTeX
10960 出力が空になってしまうので,通常,\SpecialChar LyX
10961 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10962 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10963 まないある種の改行として使用することもあります.
10964 \end_layout
10965
10966 \begin_layout Description
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 LabelBottomsep
10972 \end_layout
10973
10974 \end_inset
10975
10976  [
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 浮動小数点型=0
10982 \end_layout
10983
10984 \end_inset
10985
10986 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10987 \begin_inset Flex Code
10988 status collapsed
10989
10990 \begin_layout Plain Layout
10991 Top_Environment
10992 \end_layout
10993
10994 \end_inset
10995
10996 および
10997 \begin_inset Newline linebreak
10998 \end_inset
10999
11000
11001 \begin_inset Flex Code
11002 status collapsed
11003
11004 \begin_layout Plain Layout
11005 Centered_Top_Environment
11006 \end_layout
11007
11008 \end_inset
11009
11010 ).
11011 \end_layout
11012
11013 \begin_layout Description
11014 \begin_inset Flex Code
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018 LabelCounter
11019 \end_layout
11020
11021 \end_inset
11022
11023  [
11024 \begin_inset Flex Code
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 文字列=""
11029 \end_layout
11030
11031 \end_inset
11032
11033 ] 自動連番に使われるカウンタ名(詳しくは第
11034 \begin_inset CommandInset ref
11035 LatexCommand ref
11036 reference "subsec:カウンタ"
11037
11038 \end_inset
11039
11040 節参照).カウンタがラベル中に表示されるようにするためには,
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 LabelString
11046 \end_layout
11047
11048 \end_inset
11049
11050 中で参照する必要があります.これは,少なくとも
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055 Static
11056 \end_layout
11057
11058 \end_inset
11059
11060
11061 \begin_inset Flex Code
11062 status collapsed
11063
11064 \begin_layout Plain Layout
11065 Above
11066 \end_layout
11067
11068 \end_inset
11069
11070
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 Centered
11076 \end_layout
11077
11078 \end_inset
11079
11080 の各
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 LabelType
11086 \end_layout
11087
11088 \end_inset
11089
11090 で動作します.
11091 \begin_inset Newline newline
11092 \end_inset
11093
11094 また,
11095 \begin_inset Flex Code
11096 status collapsed
11097
11098 \begin_layout Plain Layout
11099 LabelType
11100 \end_layout
11101
11102 \end_inset
11103
11104
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 Enumerate
11110 \end_layout
11111
11112 \end_inset
11113
11114 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 LabelCounter myenum
11120 \end_layout
11121
11122 \end_inset
11123
11124 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11125 におけるのと同様,実際に使われるカウンタは,
11126 \begin_inset Flex Code
11127 status collapsed
11128
11129 \begin_layout Plain Layout
11130 myenumi
11131 \end_layout
11132
11133 \end_inset
11134
11135
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140 myenumii
11141 \end_layout
11142
11143 \end_inset
11144
11145
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 myenumii
11151 \end_layout
11152
11153 \end_inset
11154
11155
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 myenumiv
11161 \end_layout
11162
11163 \end_inset
11164
11165 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11166 \begin_inset Newline newline
11167 \end_inset
11168
11169 カウンタの詳細については,
11170 \begin_inset CommandInset ref
11171 LatexCommand ref
11172 reference "subsec:カウンタ"
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 LabelFont
11185 \end_layout
11186
11187 \end_inset
11188
11189  ラベルに使用されるフォント.
11190 \begin_inset CommandInset ref
11191 LatexCommand ref
11192 reference "subsec:フォント指定"
11193
11194 \end_inset
11195
11196 を参照.
11197 \end_layout
11198
11199 \begin_layout Description
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 LabelIndent
11205 \end_layout
11206
11207 \end_inset
11208
11209  [
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214 文字列=""
11215 \end_layout
11216
11217 \end_inset
11218
11219 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11220 \end_layout
11221
11222 \begin_layout Description
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 LabelSep
11228 \end_layout
11229
11230 \end_inset
11231
11232  [
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 文字列=""
11238 \end_layout
11239
11240 \end_inset
11241
11242 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11243 \end_layout
11244
11245 \begin_layout Description
11246 \begin_inset Flex Code
11247 status collapsed
11248
11249 \begin_layout Plain Layout
11250 LabelString
11251 \end_layout
11252
11253 \end_inset
11254
11255  [
11256 \begin_inset Flex Code
11257 status collapsed
11258
11259 \begin_layout Plain Layout
11260 文字列=""
11261 \end_layout
11262
11263 \end_inset
11264
11265
11266 \begin_inset Flex Code
11267 status collapsed
11268
11269 \begin_layout Plain Layout
11270 Static
11271 \end_layout
11272
11273 \end_inset
11274
11275 ラベル型でラベルに使用する文字列.
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 LabelCounter
11281 \end_layout
11282
11283 \end_inset
11284
11285 を設定している場合,
11286 \begin_inset CommandInset ref
11287 LatexCommand ref
11288 reference "subsec:カウンタ"
11289
11290 \end_inset
11291
11292 に述べられている特別な整形コマンドを含めることができます.
11293 \end_layout
11294
11295 \begin_layout Description
11296 \begin_inset Flex Code
11297 status collapsed
11298
11299 \begin_layout Plain Layout
11300 LabelStringAppendix
11301 \end_layout
11302
11303 \end_inset
11304
11305  [
11306 \begin_inset Flex Code
11307 status collapsed
11308
11309 \begin_layout Plain Layout
11310 文字列=""
11311 \end_layout
11312
11313 \end_inset
11314
11315 ] これは付録の中で
11316 \begin_inset Flex Code
11317 status collapsed
11318
11319 \begin_layout Plain Layout
11320 LabelString
11321 \end_layout
11322
11323 \end_inset
11324
11325 の代わりに用いられます.各
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 LabelString
11331 \end_layout
11332
11333 \end_inset
11334
11335 ステートメントは,
11336 \begin_inset Flex Code
11337 status collapsed
11338
11339 \begin_layout Plain Layout
11340 LabelStringAppendix
11341 \end_layout
11342
11343 \end_inset
11344
11345 をもリセットすることに注意してください.
11346 \end_layout
11347
11348 \begin_layout Description
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353 LabelTag
11354 \end_layout
11355
11356 \end_inset
11357
11358  [FIXME] (XML型書式でのみ使用されます.)
11359 \end_layout
11360
11361 \begin_layout Description
11362 \begin_inset Flex Code
11363 status collapsed
11364
11365 \begin_layout Plain Layout
11366 LabelType
11367 \end_layout
11368
11369 \end_inset
11370
11371  [
11372 \begin_inset Flex Code
11373 status collapsed
11374
11375 \begin_layout Plain Layout
11376
11377 \emph on
11378 No_Label
11379 \emph default
11380 , Manual, Static, Above,
11381 \begin_inset Newline newline
11382 \end_inset
11383
11384 Centered, Sensitive, Enumerate,
11385 \begin_inset Newline newline
11386 \end_inset
11387
11388 Itemize, Bibliography
11389 \end_layout
11390
11391 \end_inset
11392
11393 ]
11394 \begin_inset Separator latexpar
11395 \end_inset
11396
11397
11398 \end_layout
11399
11400 \begin_deeper
11401 \begin_layout Description
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 Manual
11407 \end_layout
11408
11409 \end_inset
11410
11411  は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11412 \end_layout
11413
11414 \begin_layout Description
11415 \begin_inset Flex Code
11416 status collapsed
11417
11418 \begin_layout Plain Layout
11419 Static
11420 \end_layout
11421
11422 \end_inset
11423
11424  は,ラベルが
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429 LabelString
11430 \end_layout
11431
11432 \end_inset
11433
11434 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11435 \begin_inset Flex Code
11436 status collapsed
11437
11438 \begin_layout Plain Layout
11439 LatexType
11440 \end_layout
11441
11442 \end_inset
11443
11444
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449 Environment
11450 \end_layout
11451
11452 \end_inset
11453
11454 のときは,連続する同じ
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 Style
11460 \end_layout
11461
11462 \end_inset
11463
11464 の段落中,最初の段落にのみ表示されます.
11465 \end_layout
11466
11467 \begin_layout Description
11468 \begin_inset Flex Code
11469 status collapsed
11470
11471 \begin_layout Plain Layout
11472 Above
11473 \end_layout
11474
11475 \end_inset
11476
11477 および
11478 \begin_inset Flex Code
11479 status collapsed
11480
11481 \begin_layout Plain Layout
11482 Centered
11483 \end_layout
11484
11485 \end_inset
11486
11487  は,
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 Static
11493 \end_layout
11494
11495 \end_inset
11496
11497 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11498 \end_layout
11499
11500 \begin_layout Description
11501 \begin_inset Flex Code
11502 status collapsed
11503
11504 \begin_layout Plain Layout
11505 Sensitive
11506 \end_layout
11507
11508 \end_inset
11509
11510  はキャプションラベルの「図」や「表」の特別な場合です.
11511 \begin_inset Flex Code
11512 status collapsed
11513
11514 \begin_layout Plain Layout
11515 Sensitive
11516 \end_layout
11517
11518 \end_inset
11519
11520 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11521 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 LabelString
11527 \end_layout
11528
11529 \end_inset
11530
11531 は「意味を成しません!」と表示されます.
11532 \end_layout
11533
11534 \begin_layout Description
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 Enumerate
11540 \end_layout
11541
11542 \end_inset
11543
11544  は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11545 す.
11546 \end_layout
11547
11548 \begin_layout Description
11549 \begin_inset Flex Code
11550 status collapsed
11551
11552 \begin_layout Plain Layout
11553 Itemize
11554 \end_layout
11555
11556 \end_inset
11557
11558  は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11559 \end_layout
11560
11561 \begin_layout Description
11562 \begin_inset Flex Code
11563 status collapsed
11564
11565 \begin_layout Plain Layout
11566 Bibliography
11567 \end_layout
11568
11569 \end_inset
11570
11571  は,
11572 \begin_inset Flex Code
11573 status collapsed
11574
11575 \begin_layout Plain Layout
11576 LatexType BibEnvironment
11577 \end_layout
11578
11579 \end_inset
11580
11581 とともにのみ使用されます.
11582 \end_layout
11583
11584 \end_deeper
11585 \begin_layout Description
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590 LangPreamble
11591 \end_layout
11592
11593 \end_inset
11594
11595  これは,この様式で既に出現した
11596 \begin_inset Flex Code
11597 status collapsed
11598
11599 \begin_layout Plain Layout
11600 LangPreamble
11601 \end_layout
11602
11603 \end_inset
11604
11605 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11606 \begin_inset CommandInset ref
11607 LatexCommand ref
11608 reference "subsec:段落様式の国際化"
11609
11610 \end_inset
11611
11612 をご覧ください.
11613 \end_layout
11614
11615 \begin_layout Description
11616 \begin_inset Flex Code
11617 status collapsed
11618
11619 \begin_layout Plain Layout
11620 LatexName
11621 \end_layout
11622
11623 \end_inset
11624
11625  [
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 <名称>
11631 \end_layout
11632
11633 \end_inset
11634
11635 ] 対応する\SpecialChar LaTeX
11636 の名称です.環境名かコマンド名を指します.
11637 \end_layout
11638
11639 \begin_layout Description
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644 LatexParam
11645 \end_layout
11646
11647 \end_inset
11648
11649  [
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654 <パラメータ>
11655 \end_layout
11656
11657 \end_inset
11658
11659 ] 対応する
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 LatexName
11665 \end_layout
11666
11667 \end_inset
11668
11669 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11670 内部から変更することはできません(変更可能なパラメータには
11671 \begin_inset Flex Code
11672 status collapsed
11673
11674 \begin_layout Plain Layout
11675 Argument
11676 \end_layout
11677
11678 \end_inset
11679
11680 を使用してください).これは,全ての\SpecialChar LaTeX
11681  
11682 \begin_inset Flex Code
11683 status collapsed
11684
11685 \begin_layout Plain Layout
11686 Argument
11687 \end_layout
11688
11689 \end_inset
11690
11691 の後にそのままの形で出力されます.
11692 \end_layout
11693
11694 \begin_layout Description
11695 \begin_inset Flex Code
11696 status collapsed
11697
11698 \begin_layout Plain Layout
11699 LatexType
11700 \end_layout
11701
11702 \end_inset
11703
11704  [
11705 \begin_inset Flex Code
11706 status collapsed
11707
11708 \begin_layout Plain Layout
11709
11710 \emph on
11711 Paragraph
11712 \emph default
11713 , Command, Environment, Item_Environment,
11714 \begin_inset Newline newline
11715 \end_inset
11716
11717 List_Environment, Bib_Environment
11718 \end_layout
11719
11720 \end_inset
11721
11722 ] レイアウトがどのように\SpecialChar LaTeX
11723 に変換されるべきかを示します
11724 \begin_inset Foot
11725 status collapsed
11726
11727 \begin_layout Plain Layout
11728 これらのルールはSGMLクラスにも適用されるので,
11729 \begin_inset Flex Code
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 LatexType
11734 \end_layout
11735
11736 \end_inset
11737
11738 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743 db_*.inc
11744 \end_layout
11745
11746 \end_inset
11747
11748 )を見てください.
11749 \end_layout
11750
11751 \end_inset
11752
11753
11754 \begin_inset Separator latexpar
11755 \end_inset
11756
11757
11758 \end_layout
11759
11760 \begin_deeper
11761 \begin_layout Description
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 Paragraph
11767 \end_layout
11768
11769 \end_inset
11770
11771  は,何も特別なことは意味しません.
11772 \end_layout
11773
11774 \begin_layout Description
11775 \begin_inset Flex Code
11776 status collapsed
11777
11778 \begin_layout Plain Layout
11779 Command
11780 \end_layout
11781
11782 \end_inset
11783
11784  は,
11785 \begin_inset Flex Code
11786 status collapsed
11787
11788 \begin_layout Plain Layout
11789
11790 \backslash
11791
11792 \emph on
11793 LatexName
11794 \emph default
11795 {\SpecialChar ldots
11796 }
11797 \end_layout
11798
11799 \end_inset
11800
11801 を意味します.
11802 \end_layout
11803
11804 \begin_layout Description
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 Environment
11810 \end_layout
11811
11812 \end_inset
11813
11814  は,
11815 \begin_inset Flex Code
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819
11820 \backslash
11821 begin{
11822 \emph on
11823 LatexName
11824 \emph default
11825 }\SpecialChar ldots
11826
11827 \backslash
11828 end{
11829 \emph on
11830 LatexName
11831 \emph default
11832 }
11833 \end_layout
11834
11835 \end_inset
11836
11837 を意味します.
11838 \end_layout
11839
11840 \begin_layout Description
11841 \begin_inset Flex Code
11842 status collapsed
11843
11844 \begin_layout Plain Layout
11845 Item_Environment
11846 \end_layout
11847
11848 \end_inset
11849
11850  は
11851 \begin_inset Flex Code
11852 status collapsed
11853
11854 \begin_layout Plain Layout
11855 Environment
11856 \end_layout
11857
11858 \end_inset
11859
11860 と同じですが,
11861 \begin_inset Flex Code
11862 status collapsed
11863
11864 \begin_layout Plain Layout
11865
11866 \backslash
11867 item
11868 \end_layout
11869
11870 \end_inset
11871
11872 がこの環境のすべての段落に付けられるところだけが異なっています.
11873 \end_layout
11874
11875 \begin_layout Description
11876 \begin_inset Flex Code
11877 status collapsed
11878
11879 \begin_layout Plain Layout
11880 List_Environment
11881 \end_layout
11882
11883 \end_inset
11884
11885  は
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890 Item_Environment
11891 \end_layout
11892
11893 \end_inset
11894
11895 と同じですが,
11896 \begin_inset Flex Code
11897 status collapsed
11898
11899 \begin_layout Plain Layout
11900 LabelWidthString
11901 \end_layout
11902
11903 \end_inset
11904
11905 が環境の引数として渡されるところだけが異なっています.
11906 \begin_inset Flex Code
11907 status collapsed
11908
11909 \begin_layout Plain Layout
11910 LabelWidthString
11911 \end_layout
11912
11913 \end_inset
11914
11915 は,
11916 \begin_inset Flex MenuItem
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 編集\SpecialChar menuseparator
11921 段落設定
11922 \end_layout
11923
11924 \end_inset
11925
11926 ダイアログで定義することができます.
11927 \end_layout
11928
11929 \begin_layout Description
11930 \begin_inset Flex Code
11931 status collapsed
11932
11933 \begin_layout Plain Layout
11934 Bib_Environment
11935 \end_layout
11936
11937 \end_inset
11938
11939  は
11940 \begin_inset Flex Code
11941 status collapsed
11942
11943 \begin_layout Plain Layout
11944 Environment
11945 \end_layout
11946
11947 \end_inset
11948
11949 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11950 \begin_inset Newline newline
11951 \end_inset
11952
11953
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958
11959 \backslash
11960 begin{thebibliography}{99}
11961 \end_layout
11962
11963 \end_inset
11964
11965
11966 \begin_inset Newline newline
11967 \end_inset
11968
11969 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11970 \end_layout
11971
11972 \begin_layout Standard
11973 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11974 出力は,\SpecialChar LaTeX
11975 型に依存して
11976 \end_layout
11977
11978 \begin_layout LyX-Code
11979
11980 \backslash
11981 LatexName[LatexParam]{\SpecialChar ldots
11982 }
11983 \end_layout
11984
11985 \begin_layout Standard
11986 のようになるか,
11987 \end_layout
11988
11989 \begin_layout LyX-Code
11990
11991 \backslash
11992 begin{LatexName}[LatexParam] \SpecialChar ldots
11993  
11994 \backslash
11995 end{LatexName}.
11996 \end_layout
11997
11998 \begin_layout Standard
11999 となります.
12000 \end_layout
12001
12002 \end_deeper
12003 \begin_layout Description
12004 \begin_inset Flex Code
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 LeftDelim
12009 \end_layout
12010
12011 \end_inset
12012
12013  [
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 文字列
12019 \end_layout
12020
12021 \end_inset
12022
12023 ] 様式の内容の最初に置かれる文字列.出力中の改行は
12024 \begin_inset Flex Code
12025 status collapsed
12026
12027 \begin_layout Plain Layout
12028 <br/>
12029 \end_layout
12030
12031 \end_inset
12032
12033 で指示できます.
12034 \end_layout
12035
12036 \begin_layout Description
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041 LeftMargin
12042 \end_layout
12043
12044 \end_inset
12045
12046  [
12047 \begin_inset Flex Code
12048 status collapsed
12049
12050 \begin_layout Plain Layout
12051 文字列=""
12052 \end_layout
12053
12054 \end_inset
12055
12056 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
12057 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
12058 \end_inset
12059
12060 をかけて加えられます.このパラメータは,
12061 \begin_inset Flex Code
12062 status collapsed
12063
12064 \begin_layout Plain Layout
12065 Margin
12066 \end_layout
12067
12068 \end_inset
12069
12070
12071 \begin_inset Flex Code
12072 status collapsed
12073
12074 \begin_layout Plain Layout
12075 Manual
12076 \end_layout
12077
12078 \end_inset
12079
12080 あるいは
12081 \begin_inset Flex Code
12082 status collapsed
12083
12084 \begin_layout Plain Layout
12085 Dynamic
12086 \end_layout
12087
12088 \end_inset
12089
12090 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12091 \begin_inset Newline newline
12092 \end_inset
12093
12094 たとえば「
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 MM
12100 \end_layout
12101
12102 \end_inset
12103
12104 」と指定すると,段落を通常フォントの「
12105 \begin_inset Flex Code
12106 status collapsed
12107
12108 \begin_layout Plain Layout
12109 MM
12110 \end_layout
12111
12112 \end_inset
12113
12114 」の幅だけ行頭下げを行います.文字列の前に「
12115 \begin_inset Flex Code
12116 status collapsed
12117
12118 \begin_layout Plain Layout
12119 -
12120 \end_layout
12121
12122 \end_inset
12123
12124 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12125 \end_layout
12126
12127 \begin_layout Description
12128 \begin_inset Flex Code
12129 status collapsed
12130
12131 \begin_layout Plain Layout
12132 Margin
12133 \end_layout
12134
12135 \end_inset
12136
12137  [
12138 \begin_inset Flex Code
12139 status collapsed
12140
12141 \begin_layout Plain Layout
12142
12143 \emph on
12144 Static
12145 \emph default
12146 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12147 \end_layout
12148
12149 \end_inset
12150
12151
12152 \begin_inset Newline newline
12153 \end_inset
12154
12155 このレイアウトの左余白の種類です.
12156 \begin_inset Separator latexpar
12157 \end_inset
12158
12159
12160 \end_layout
12161
12162 \begin_deeper
12163 \begin_layout Description
12164 \begin_inset Flex Code
12165 status collapsed
12166
12167 \begin_layout Plain Layout
12168 Static
12169 \end_layout
12170
12171 \end_inset
12172
12173  は固定余白を示します.
12174 \end_layout
12175
12176 \begin_layout Description
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181 Manual
12182 \end_layout
12183
12184 \end_inset
12185
12186  は,左余白が
12187 \begin_inset Flex MenuItem
12188 status collapsed
12189
12190 \begin_layout Plain Layout
12191 編集\SpecialChar menuseparator
12192 段落設定
12193 \end_layout
12194
12195 \end_inset
12196
12197 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12198 \end_layout
12199
12200 \begin_layout Description
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 Dynamic
12206 \end_layout
12207
12208 \end_inset
12209
12210  は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12211  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12212 \end_layout
12213
12214 \begin_layout Description
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 First_Dynamic
12220 \end_layout
12221
12222 \end_inset
12223
12224  は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12225 \end_layout
12226
12227 \begin_layout Description
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 Right_Address_Box
12233 \end_layout
12234
12235 \end_inset
12236
12237  は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12238 \end_layout
12239
12240 \end_deeper
12241 \begin_layout Description
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 NeedProtect
12247 \end_layout
12248
12249 \end_inset
12250
12251  [
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256
12257 \emph on
12258 0
12259 \end_layout
12260
12261 \end_inset
12262
12263 ,
12264 \begin_inset space \thinspace{}
12265 \end_inset
12266
12267
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272 1
12273 \end_layout
12274
12275 \end_inset
12276
12277 ] このレイアウト中の脆弱なコマンドが
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282
12283 \backslash
12284 protect
12285 \end_layout
12286
12287 \end_inset
12288
12289 されるべきか否か(註:これはこのコマンド自体が
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294
12295 \backslash
12296 protect
12297 \end_layout
12298
12299 \end_inset
12300
12301 されるべきかでは
12302 \emph on
12303 ありません
12304 \emph default
12305 ).
12306 \end_layout
12307
12308 \begin_layout Description
12309 \begin_inset Flex Code
12310 status collapsed
12311
12312 \begin_layout Plain Layout
12313 Newline
12314 \end_layout
12315
12316 \end_inset
12317
12318  [
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 0
12324 \end_layout
12325
12326 \end_inset
12327
12328 ,
12329 \begin_inset space \thinspace{}
12330 \end_inset
12331
12332
12333 \begin_inset Flex Code
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337
12338 \emph on
12339 1
12340 \end_layout
12341
12342 \end_inset
12343
12344 ] 新規行を\SpecialChar LaTeX
12345 の新規行(
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350
12351 \backslash
12352
12353 \backslash
12354
12355 \end_layout
12356
12357 \end_inset
12358
12359 )に変換するか否か.\SpecialChar LyX
12360 中で\SpecialChar LaTeX
12361 編集をやりやすくするために,変換は無効にすることができます.
12362 \end_layout
12363
12364 \begin_layout Description
12365 \begin_inset Flex Code
12366 status collapsed
12367
12368 \begin_layout Plain Layout
12369 NextNoIndent
12370 \end_layout
12371
12372 \end_inset
12373
12374  [
12375 \begin_inset Flex Code
12376 status collapsed
12377
12378 \begin_layout Plain Layout
12379
12380 \emph on
12381 0
12382 \end_layout
12383
12384 \end_inset
12385
12386 ,
12387 \begin_inset space \thinspace{}
12388 \end_inset
12389
12390
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 1
12396 \end_layout
12397
12398 \end_inset
12399
12400 ] 真に設定すると,
12401 \begin_inset Flex Code
12402 status collapsed
12403
12404 \begin_layout Plain Layout
12405 DefaultStyle
12406 \end_layout
12407
12408 \end_inset
12409
12410  (通常
12411 \begin_inset Flex Code
12412 status collapsed
12413
12414 \begin_layout Plain Layout
12415 Standard
12416 \end_layout
12417
12418 \end_inset
12419
12420 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12421 \end_layout
12422
12423 \begin_layout Description
12424 \begin_inset Flex Code
12425 status collapsed
12426
12427 \begin_layout Plain Layout
12428 ObsoletedBy
12429 \end_layout
12430
12431 \end_inset
12432
12433  [
12434 \begin_inset Flex Code
12435 status collapsed
12436
12437 \begin_layout Plain Layout
12438 <名称>
12439 \end_layout
12440
12441 \end_inset
12442
12443 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12444 \end_layout
12445
12446 \begin_layout Description
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 ParagraphGroup
12452 \end_layout
12453
12454 \end_inset
12455
12456  [
12457 \begin_inset Flex Code
12458 status collapsed
12459
12460 \begin_layout Plain Layout
12461 0
12462 \end_layout
12463
12464 \end_inset
12465
12466 ,
12467 \begin_inset space \thinspace{}
12468 \end_inset
12469
12470
12471 \begin_inset Flex Code
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 1
12476 \end_layout
12477
12478 \end_inset
12479
12480 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 GuiLabel
12486 \end_layout
12487
12488 \end_inset
12489
12490 が一度だけ出力される効果があります.既定では,
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495 LaTeXType
12496 \end_layout
12497
12498 \end_inset
12499
12500
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 Environment
12506 \end_layout
12507
12508 \end_inset
12509
12510 および
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 Bib_Environment
12516 \end_layout
12517
12518 \end_inset
12519
12520  については有効であり,他の型すべてについて無効になっています.
12521 \end_layout
12522
12523 \begin_layout Description
12524 \begin_inset Flex Code
12525 status collapsed
12526
12527 \begin_layout Plain Layout
12528 ParbreakIsNewline
12529 \end_layout
12530
12531 \end_inset
12532
12533  [
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538
12539 \emph on
12540 0
12541 \end_layout
12542
12543 \end_inset
12544
12545 ,
12546 \begin_inset space \thinspace{}
12547 \end_inset
12548
12549
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 1
12555 \end_layout
12556
12557 \end_inset
12558
12559 ] \SpecialChar LaTeX
12560 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 PassThru 1
12566 \end_layout
12567
12568 \end_inset
12569
12570 と併用すれば,(\SpecialChar TeX
12571 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12572 \end_layout
12573
12574 \begin_layout Description
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 ParIndent
12580 \end_layout
12581
12582 \end_inset
12583
12584  [
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 文字列=""
12590 \end_layout
12591
12592 \end_inset
12593
12594 ] 段落の最初の行の行頭下げ.レイアウトによっては
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 Parindent
12600 \end_layout
12601
12602 \end_inset
12603
12604 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 NextNoIndent
12610 \end_layout
12611
12612 \end_inset
12613
12614 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12615 \begin_inset Flex Code
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 Parindent
12620 \end_layout
12621
12622 \end_inset
12623
12624 ではなく,この環境の
12625 \begin_inset Flex Code
12626 status collapsed
12627
12628 \begin_layout Plain Layout
12629 Parindent
12630 \end_layout
12631
12632 \end_inset
12633
12634 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12635 \end_layout
12636
12637 \begin_layout Description
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 ParSep
12643 \end_layout
12644
12645 \end_inset
12646
12647  [
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 浮動小数点型=0
12653 \end_layout
12654
12655 \end_inset
12656
12657 ] このレイアウトの2段落間の垂直余白.
12658 \end_layout
12659
12660 \begin_layout Description
12661 \begin_inset Flex Code
12662 status collapsed
12663
12664 \begin_layout Plain Layout
12665 Parskip
12666 \end_layout
12667
12668 \end_inset
12669
12670  [
12671 \begin_inset Flex Code
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 浮動小数点型=0
12676 \end_layout
12677
12678 \end_inset
12679
12680 ] \SpecialChar LyX
12681 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12682 択した際には,\SpecialChar LaTeX
12683 型「段落」レイアウトの
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688 ParIndent
12689 \end_layout
12690
12691 \end_inset
12692
12693 は無視され,すべての段落はこの
12694 \begin_inset Flex Code
12695 status collapsed
12696
12697 \begin_layout Plain Layout
12698 Parskip
12699 \end_layout
12700
12701 \end_inset
12702
12703 引数分だけ引き離されます.垂直余白は,
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 DefaultHeight
12709 \end_layout
12710
12711 \end_inset
12712
12713 を標準フォントでの1行の高さとすると,
12714 \begin_inset Flex Code
12715 status collapsed
12716
12717 \begin_layout Plain Layout
12718 Parskipの値
12719 \end_layout
12720
12721 \end_inset
12722
12723
12724 \begin_inset Formula $\times$
12725 \end_inset
12726
12727
12728 \begin_inset Flex Code
12729 status collapsed
12730
12731 \begin_layout Plain Layout
12732 DefaultHeight
12733 \end_layout
12734
12735 \end_inset
12736
12737 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12738 \end_layout
12739
12740 \begin_layout Description
12741 \begin_inset Flex Code
12742 status collapsed
12743
12744 \begin_layout Plain Layout
12745 PassThru
12746 \end_layout
12747
12748 \end_inset
12749
12750  [
12751 \emph on
12752
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757 0
12758 \end_layout
12759
12760 \end_inset
12761
12762
12763 \emph default
12764 ,
12765 \begin_inset space \thinspace{}
12766 \end_inset
12767
12768
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 1
12774 \end_layout
12775
12776 \end_inset
12777
12778 ] この段落の内容が,\SpecialChar LaTeX
12779 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12780 \end_layout
12781
12782 \begin_layout Description
12783 \begin_inset Flex Code
12784 status collapsed
12785
12786 \begin_layout Plain Layout
12787 PassThruChars
12788 \end_layout
12789
12790 \end_inset
12791
12792  [
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797 文字列
12798 \end_layout
12799
12800 \end_inset
12801
12802 ]
12803 \family typewriter
12804  
12805 \family default
12806 \SpecialChar LaTeX
12807 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12808 \end_layout
12809
12810 \begin_layout Description
12811 \begin_inset Flex Code
12812 status collapsed
12813
12814 \begin_layout Plain Layout
12815 Preamble
12816 \end_layout
12817
12818 \end_inset
12819
12820  この様式が使用されたときに,\SpecialChar LaTeX
12821 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12822 \begin_inset Flex Code
12823 status collapsed
12824
12825 \begin_layout Plain Layout
12826 EndPreamble
12827 \end_layout
12828
12829 \end_inset
12830
12831 」で閉じる必要があります.
12832 \end_layout
12833
12834 \begin_layout Description
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839 RefPrefix
12840 \end_layout
12841
12842 \end_inset
12843
12844  [
12845 \begin_inset Flex Code
12846 status collapsed
12847
12848 \begin_layout Plain Layout
12849 文字列
12850 \end_layout
12851
12852 \end_inset
12853
12854 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12855 \end_layout
12856
12857 \begin_layout Description
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862 Requires
12863 \end_layout
12864
12865 \end_inset
12866
12867  [
12868 \begin_inset Flex Code
12869 status collapsed
12870
12871 \begin_layout Plain Layout
12872 文字列
12873 \end_layout
12874
12875 \end_inset
12876
12877 ] この様式が機能
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882 文字列
12883 \end_layout
12884
12885 \end_inset
12886
12887 を必要とするかどうか(機能詳細については,第
12888 \begin_inset CommandInset ref
12889 LatexCommand ref
12890 reference "chap:関数一覧"
12891
12892 \end_inset
12893
12894 節参照).特定のオプションをとるパッケージを要求する場合,
12895 \begin_inset Flex Code
12896 status collapsed
12897
12898 \begin_layout Plain Layout
12899 PackageOptions
12900 \end_layout
12901
12902 \end_inset
12903
12904 を汎用テキストクラスパラメータとして追加して使うことができます(
12905 \begin_inset CommandInset ref
12906 LatexCommand ref
12907 reference "subsec:汎用テキストクラスパラメータ"
12908
12909 \end_inset
12910
12911 を参照).
12912 \end_layout
12913
12914 \begin_layout Description
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 ResetArgs
12920 \end_layout
12921
12922 \end_inset
12923
12924  [
12925 \begin_inset Flex Code
12926 status collapsed
12927
12928 \begin_layout Plain Layout
12929
12930 \emph on
12931 0
12932 \end_layout
12933
12934 \end_inset
12935
12936 ,
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 1
12942 \end_layout
12943
12944 \end_inset
12945
12946 ] (
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951 Argument
12952 \end_layout
12953
12954 \end_inset
12955
12956 タグで定義された)この様式の\SpecialChar LaTeX
12957 引数をリセットします.これは,様式を
12958 \begin_inset Flex Code
12959 status collapsed
12960
12961 \begin_layout Plain Layout
12962 CopyStyle
12963 \end_layout
12964
12965 \end_inset
12966
12967 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12968 \end_layout
12969
12970 \begin_layout Description
12971 \begin_inset Flex Code
12972 status collapsed
12973
12974 \begin_layout Plain Layout
12975 RightDelim
12976 \end_layout
12977
12978 \end_inset
12979
12980  [
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 文字列
12986 \end_layout
12987
12988 \end_inset
12989
12990 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 <br/>
12996 \end_layout
12997
12998 \end_inset
12999
13000 で指示できます.
13001 \end_layout
13002
13003 \begin_layout Description
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 RightMargin
13009 \end_layout
13010
13011 \end_inset
13012
13013  [
13014 \begin_inset Flex Code
13015 status collapsed
13016
13017 \begin_layout Plain Layout
13018 文字列=""
13019 \end_layout
13020
13021 \end_inset
13022
13023
13024 \begin_inset Flex Code
13025 status collapsed
13026
13027 \begin_layout Plain Layout
13028 LeftMargin
13029 \end_layout
13030
13031 \end_inset
13032
13033 に同様.
13034 \end_layout
13035
13036 \begin_layout Description
13037 \begin_inset Flex Code
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041 Spacing
13042 \end_layout
13043
13044 \end_inset
13045
13046  [
13047 \begin_inset Flex Code
13048 status collapsed
13049
13050 \begin_layout Plain Layout
13051
13052 \emph on
13053 single
13054 \end_layout
13055
13056 \end_inset
13057
13058
13059 \begin_inset Flex Code
13060 status collapsed
13061
13062 \begin_layout Plain Layout
13063 onehalf
13064 \end_layout
13065
13066 \end_inset
13067
13068
13069 \begin_inset Flex Code
13070 status collapsed
13071
13072 \begin_layout Plain Layout
13073 double
13074 \end_layout
13075
13076 \end_inset
13077
13078
13079 \begin_inset Flex Code
13080 status collapsed
13081
13082 \begin_layout Plain Layout
13083 other
13084 \begin_inset space ~
13085 \end_inset
13086
13087 <
13088 \emph on
13089
13090 \emph default
13091 >
13092 \end_layout
13093
13094 \end_inset
13095
13096 ]
13097 \lang english
13098  
13099 \lang japanese
13100 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 single
13106 \end_layout
13107
13108 \end_inset
13109
13110
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 onehalf
13116 \end_layout
13117
13118 \end_inset
13119
13120
13121 \begin_inset Flex Code
13122 status collapsed
13123
13124 \begin_layout Plain Layout
13125 double
13126 \end_layout
13127
13128 \end_inset
13129
13130 は,それぞれ乗数1・1.25・1.667に対応します.引数
13131 \begin_inset Flex Code
13132 status collapsed
13133
13134 \begin_layout Plain Layout
13135 other
13136 \end_layout
13137
13138 \end_inset
13139
13140 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 Spacing
13146 \end_layout
13147
13148 \end_inset
13149
13150 は,\SpecialChar LaTeX
13151 パッケージ
13152 \begin_inset Flex Code
13153 status collapsed
13154
13155 \begin_layout Plain Layout
13156 setspace
13157 \end_layout
13158
13159 \end_inset
13160
13161 パッケージを使用した,限定的な\SpecialChar LaTeX
13162 コードを生成することを意味することにご注意ください.
13163 \end_layout
13164
13165 \begin_layout Description
13166 \begin_inset Flex Code
13167 status collapsed
13168
13169 \begin_layout Plain Layout
13170 Spellcheck
13171 \end_layout
13172
13173 \end_inset
13174
13175  [
13176 \begin_inset Flex Code
13177 status collapsed
13178
13179 \begin_layout Plain Layout
13180 0
13181 \end_layout
13182
13183 \end_inset
13184
13185 ,
13186 \begin_inset space \thinspace{}
13187 \end_inset
13188
13189
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 1
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 TextFont
13208 \end_layout
13209
13210 \end_inset
13211
13212  本文に使うフォント.
13213 \begin_inset CommandInset ref
13214 LatexCommand ref
13215 reference "subsec:フォント指定"
13216
13217 \end_inset
13218
13219 参照.
13220 \end_layout
13221
13222 \begin_layout Description
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 TocLevel
13228 \end_layout
13229
13230 \end_inset
13231
13232  [
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 整数型=3
13238 \end_layout
13239
13240 \end_inset
13241
13242 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13243 \end_layout
13244
13245 \begin_layout Description
13246 \begin_inset Flex Code
13247 status collapsed
13248
13249 \begin_layout Plain Layout
13250 ToggleIndent
13251 \end_layout
13252
13253 \end_inset
13254
13255  [
13256 \emph on
13257
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262 default
13263 \end_layout
13264
13265 \end_inset
13266
13267
13268 \emph default
13269
13270 \begin_inset Flex Code
13271 status collapsed
13272
13273 \begin_layout Plain Layout
13274 always
13275 \end_layout
13276
13277 \end_inset
13278
13279
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 never
13285 \end_layout
13286
13287 \end_inset
13288
13289 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13290 \begin_inset Flex Code
13291 status collapsed
13292
13293 \begin_layout Plain Layout
13294 default
13295 \end_layout
13296
13297 \end_inset
13298
13299 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13300 \begin_inset Flex Code
13301 status collapsed
13302
13303 \begin_layout Plain Layout
13304 always
13305 \end_layout
13306
13307 \end_inset
13308
13309 は,文書設定にかかわらず変更することができ,
13310 \begin_inset Flex Code
13311 status collapsed
13312
13313 \begin_layout Plain Layout
13314 never
13315 \end_layout
13316
13317 \end_inset
13318
13319 は,どのような場合でも変更することができません.
13320 \end_layout
13321
13322 \begin_layout Description
13323 \begin_inset Flex Code
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327 TopSep
13328 \end_layout
13329
13330 \end_inset
13331
13332  [
13333 \begin_inset Flex Code
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337 浮動小数点型=0
13338 \end_layout
13339
13340 \end_inset
13341
13342 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13343 の最大値がとられます.
13344 \end_layout
13345
13346 \begin_layout Subsection
13347 段落様式の国際化
13348 \begin_inset CommandInset label
13349 LatexCommand label
13350 name "subsec:段落様式の国際化"
13351
13352 \end_inset
13353
13354
13355 \end_layout
13356
13357 \begin_layout Standard
13358 \SpecialChar LyX
13359 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13360 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13361 \lang french
13362 Théorème
13363 \lang japanese
13364  1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13365 \end_layout
13366
13367 \begin_layout Standard
13368 もし
13369 \begin_inset Flex MenuItem
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 Style
13374 \end_layout
13375
13376 \end_inset
13377
13378 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13379 \begin_inset Flex MenuItem
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 LangPreamble
13384 \end_layout
13385
13386 \end_inset
13387
13388
13389 \begin_inset Flex MenuItem
13390 status collapsed
13391
13392 \begin_layout Plain Layout
13393 BabelPreamble
13394 \end_layout
13395
13396 \end_inset
13397
13398 を使用することができます.以下の抜粋(
13399 \begin_inset Flex MenuItem
13400 status collapsed
13401
13402 \begin_layout Plain Layout
13403 theorems-ams.inc
13404 \end_layout
13405
13406 \end_inset
13407
13408 より)は,これがどう動作するかを示すものです.
13409 \end_layout
13410
13411 \begin_layout LyX-Code
13412 Preamble
13413 \begin_inset Separator latexpar
13414 \end_inset
13415
13416
13417 \end_layout
13418
13419 \begin_deeper
13420 \begin_layout LyX-Code
13421   
13422 \backslash
13423 theoremstyle{remark}
13424 \end_layout
13425
13426 \begin_layout LyX-Code
13427   
13428 \backslash
13429 newtheorem{claim}[thm]{
13430 \backslash
13431 protect
13432 \backslash
13433 claimname}
13434 \end_layout
13435
13436 \begin_layout LyX-Code
13437 EndPreamble
13438 \end_layout
13439
13440 \begin_layout LyX-Code
13441 LangPreamble
13442 \end_layout
13443
13444 \begin_layout LyX-Code
13445   
13446 \backslash
13447 providecommand{
13448 \backslash
13449 claimname}{_(Claim)}
13450 \end_layout
13451
13452 \begin_layout LyX-Code
13453 EndLangPreamble
13454 \end_layout
13455
13456 \begin_layout LyX-Code
13457 BabelPreamble
13458 \end_layout
13459
13460 \begin_layout LyX-Code
13461     
13462 \backslash
13463 addto
13464 \backslash
13465 captions$$lang{
13466 \backslash
13467 renewcommand{
13468 \backslash
13469 claimname}{_(Claim)}}
13470 \end_layout
13471
13472 \begin_layout LyX-Code
13473 EndBabelPreamble
13474 \end_layout
13475
13476 \end_deeper
13477 \begin_layout Standard
13478 原則として,
13479 \begin_inset Flex MenuItem
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483 LangPreamble
13484 \end_layout
13485
13486 \end_inset
13487
13488
13489 \begin_inset Flex MenuItem
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 BabelPreamble
13494 \end_layout
13495
13496 \end_inset
13497
13498 タグ内には,有効な\SpecialChar LaTeX
13499 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13500 は,\SpecialChar LaTeX
13501 コマンド
13502 \begin_inset Flex Code
13503 status collapsed
13504
13505 \begin_layout Plain Layout
13506
13507 \backslash
13508 claimname
13509 \end_layout
13510
13511 \end_inset
13512
13513 とその
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518
13519 \backslash
13520 newtheorem
13521 \end_layout
13522
13523 \end_inset
13524
13525 中での用い方です.
13526 \end_layout
13527
13528 \begin_layout Standard
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 LangPreamble
13534 \end_layout
13535
13536 \end_inset
13537
13538 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 Preamble
13544 \end_layout
13545
13546 \end_inset
13547
13548 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13549 \begin_inset Flex Code
13550 status collapsed
13551
13552 \begin_layout Plain Layout
13553 _()
13554 \end_layout
13555
13556 \end_inset
13557
13558 が使用されていることです.これは,\SpecialChar LyX
13559 が\SpecialChar LaTeX
13560 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13561 \end_layout
13562
13563 \begin_layout Standard
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 BabelPreamble
13569 \end_layout
13570
13571 \end_inset
13572
13573 タグは,複数言語文書をサポートし,
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 babel
13579 \end_layout
13580
13581 \end_inset
13582
13583 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13584 の場合には,
13585 \begin_inset Flex Code
13586 status collapsed
13587
13588 \begin_layout Plain Layout
13589 _()
13590 \end_layout
13591
13592 \end_inset
13593
13594 の引数は,その当該言語への翻訳で置き換えられ,
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599 $$lang
13600 \end_layout
13601
13602 \end_inset
13603
13604 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13605 \end_layout
13606
13607 \begin_layout Standard
13608 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13609 \end_layout
13610
13611 \begin_layout LyX-Code
13612
13613 \backslash
13614 addto
13615 \backslash
13616 captionsfrench{
13617 \backslash
13618 renewcommand{
13619 \backslash
13620 claimname}{Affirmation}}
13621 \begin_inset Newline newline
13622 \end_inset
13623
13624
13625 \backslash
13626 addto
13627 \backslash
13628 captionsngerman{
13629 \backslash
13630 renewcommand{
13631 \backslash
13632 claimname}{Behauptung}}
13633 \begin_inset Newline newline
13634 \end_inset
13635
13636
13637 \backslash
13638 providecommand{
13639 \backslash
13640 claimname}{Behauptung}
13641 \end_layout
13642
13643 \begin_layout Standard
13644 それから,\SpecialChar LaTeX
13645
13646 \begin_inset Flex Code
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650 babel
13651 \end_layout
13652
13653 \end_inset
13654
13655 は協力して,出力に正しい文字列を生成します.
13656 \end_layout
13657
13658 \begin_layout Standard
13659 ここで注意しておくべき一つの重要な点は,翻訳は,
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 layouttranslations
13665 \end_layout
13666
13667 \end_inset
13668
13669 ファイルを通じて,\SpecialChar LyX
13670 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13671 \begin_inset Flex Code
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675 layouttranslations
13676 \end_layout
13677
13678 \end_inset
13679
13680 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13681 の国際化ルーチンでは取り扱われないので,
13682 \begin_inset Flex MenuItem
13683 status collapsed
13684
13685 \begin_layout Plain Layout
13686 LangPreamble
13687 \end_layout
13688
13689 \end_inset
13690
13691
13692 \begin_inset Flex MenuItem
13693 status collapsed
13694
13695 \begin_layout Plain Layout
13696 BabelPreamble
13697 \end_layout
13698
13699 \end_inset
13700
13701 は,事実上,\SpecialChar LyX
13702 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13703 に同梱させようとい
13704 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13705 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13706 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13707 \end_layout
13708
13709 \begin_layout Subsection
13710 フロート
13711 \begin_inset CommandInset label
13712 LatexCommand label
13713 name "subsec:フロート"
13714
13715 \end_inset
13716
13717
13718 \end_layout
13719
13720 \begin_layout Standard
13721 \SpecialChar LyX
13722 第1.3.0版以来,テキストクラス自体の中でフロート(
13723 \begin_inset Flex MenuItem
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 figure
13728 \end_layout
13729
13730 \end_inset
13731
13732
13733 \begin_inset Flex MenuItem
13734 status collapsed
13735
13736 \begin_layout Plain Layout
13737 table
13738 \end_layout
13739
13740 \end_inset
13741
13742 ・\SpecialChar ldots
13743 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 stdfloats.inc
13749 \end_layout
13750
13751 \end_inset
13752
13753 ファイルに含まれているので,作業中のレイアウトファイルに
13754 \end_layout
13755
13756 \begin_layout LyX-Code
13757 Input stdfloats.inc
13758 \end_layout
13759
13760 \begin_layout Standard
13761 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13762 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13763 ましょう.
13764 \end_layout
13765
13766 \begin_layout Description
13767 \begin_inset Flex Code
13768 status collapsed
13769
13770 \begin_layout Plain Layout
13771 AllowedPlacement
13772 \end_layout
13773
13774 \end_inset
13775
13776  [
13777 \begin_inset Flex Code
13778 status collapsed
13779
13780 \begin_layout Plain Layout
13781 文字列
13782 \end_layout
13783
13784 \end_inset
13785
13786 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13787 \emph on
13788 h
13789 \emph default
13790  (
13791 \begin_inset Quotes eld
13792 \end_inset
13793
13794 here if possible:可能ならば現在位置に
13795 \begin_inset Quotes erd
13796 \end_inset
13797
13798 ), 
13799 \emph on
13800 t
13801 \emph default
13802  (
13803 \begin_inset Quotes eld
13804 \end_inset
13805
13806 top of page:ページ上部
13807 \begin_inset Quotes erd
13808 \end_inset
13809
13810 )・
13811 \emph on
13812 b
13813 \emph default
13814  (
13815 \begin_inset Quotes eld
13816 \end_inset
13817
13818 bottom of page:ページ下部
13819 \begin_inset Quotes erd
13820 \end_inset
13821
13822 )・
13823 \emph on
13824 p
13825 \emph default
13826  (
13827 \begin_inset Quotes eld
13828 \end_inset
13829
13830 page of floats:フロートを独立したページに
13831 \begin_inset Quotes erd
13832 \end_inset
13833
13834 )・
13835 \emph on
13836 H
13837 \emph default
13838  (
13839 \begin_inset Quotes eld
13840 \end_inset
13841
13842 here definitely:何としても現在位置に置く
13843 \begin_inset Quotes erd
13844 \end_inset
13845
13846 )・
13847 \emph on
13848 !
13849 \emph default
13850  (
13851 \begin_inset Quotes eld
13852 \end_inset
13853
13854 ignore LaTeX rules:LaTeXの規則を無視する
13855 \begin_inset Quotes erd
13856 \end_inset
13857
13858 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13859 \emph on
13860 none
13861 \emph default
13862 を与えてください.
13863 \end_layout
13864
13865 \begin_layout Description
13866 \begin_inset Flex Code
13867 status collapsed
13868
13869 \begin_layout Plain Layout
13870 AllowsSideways
13871 \end_layout
13872
13873 \end_inset
13874
13875  [
13876 \begin_inset Flex Code
13877 status collapsed
13878
13879 \begin_layout Plain Layout
13880 0
13881 \end_layout
13882
13883 \end_inset
13884
13885 ,
13886 \begin_inset space \thinspace{}
13887 \end_inset
13888
13889
13890 \emph on
13891
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 1
13897 \end_layout
13898
13899 \end_inset
13900
13901
13902 \emph default
13903 ] フロートを,\SpecialChar LaTeX
13904 パッケージの
13905 \family typewriter
13906 rotfloat
13907 \family default
13908  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13909 \begin_inset Flex Code
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 0
13914 \end_layout
13915
13916 \end_inset
13917
13918 を指定してください.
13919 \end_layout
13920
13921 \begin_layout Description
13922 \begin_inset Flex Code
13923 status collapsed
13924
13925 \begin_layout Plain Layout
13926 AllowsWide
13927 \end_layout
13928
13929 \end_inset
13930
13931  [
13932 \begin_inset Flex Code
13933 status collapsed
13934
13935 \begin_layout Plain Layout
13936 0
13937 \end_layout
13938
13939 \end_inset
13940
13941 ,
13942 \begin_inset space \thinspace{}
13943 \end_inset
13944
13945
13946 \emph on
13947
13948 \begin_inset Flex Code
13949 status collapsed
13950
13951 \begin_layout Plain Layout
13952 1
13953 \end_layout
13954
13955 \end_inset
13956
13957
13958 \emph default
13959 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13960 \begin_inset Flex Code
13961 status collapsed
13962
13963 \begin_layout Plain Layout
13964 0
13965 \end_layout
13966
13967 \end_inset
13968
13969 を指定してください.
13970 \end_layout
13971
13972 \begin_layout Description
13973 \begin_inset Flex Code
13974 status collapsed
13975
13976 \begin_layout Plain Layout
13977 Extension
13978 \end_layout
13979
13980 \end_inset
13981
13982  [
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 文字列
13988 \end_layout
13989
13990 \end_inset
13991
13992 =
13993 \begin_inset Quotes erd
13994 \end_inset
13995
13996
13997 \begin_inset Quotes erd
13998 \end_inset
13999
14000 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
14001 がキャプションを書き込むファイルです.
14002 \end_layout
14003
14004 \begin_layout Description
14005 \begin_inset Flex Code
14006 status collapsed
14007
14008 \begin_layout Plain Layout
14009 GuiName
14010 \end_layout
14011
14012 \end_inset
14013
14014  [
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019 文字列
14020 \end_layout
14021
14022 \end_inset
14023
14024 =
14025 \begin_inset Quotes erd
14026 \end_inset
14027
14028
14029 \begin_inset Quotes erd
14030 \end_inset
14031
14032 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
14033 \end_layout
14034
14035 \begin_layout Description
14036 \begin_inset Flex Code
14037 status collapsed
14038
14039 \begin_layout Plain Layout
14040 HTML*
14041 \end_layout
14042
14043 \end_inset
14044
14045  これらは,XHTML出力で使用されます.
14046 \begin_inset CommandInset ref
14047 LatexCommand ref
14048 reference "sec:XHTML出力のタグ"
14049
14050 \end_inset
14051
14052 をご覧ください.
14053 \end_layout
14054
14055 \begin_layout Description
14056 \begin_inset Flex Code
14057 status collapsed
14058
14059 \begin_layout Plain Layout
14060 IsPredefined
14061 \end_layout
14062
14063 \end_inset
14064
14065  [
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070
14071 \emph on
14072 0
14073 \end_layout
14074
14075 \end_inset
14076
14077 ,
14078 \begin_inset space \thinspace{}
14079 \end_inset
14080
14081
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 1
14087 \end_layout
14088
14089 \end_inset
14090
14091 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14092 パッケージ
14093 \begin_inset Flex Code
14094 status collapsed
14095
14096 \begin_layout Plain Layout
14097 float
14098 \end_layout
14099
14100 \end_inset
14101
14102 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14103 \begin_inset Flex Code
14104 status collapsed
14105
14106 \begin_layout Plain Layout
14107 0
14108 \end_layout
14109
14110 \end_inset
14111
14112 で,この場合
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 float
14118 \end_layout
14119
14120 \end_inset
14121
14122 を使用します.\SpecialChar LaTeX
14123 ドキュメントクラス中に既に定義されているときには,
14124 \begin_inset Flex Code
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 0
14129 \end_layout
14130
14131 \end_inset
14132
14133 に設定しなくてはなりません.
14134 \end_layout
14135
14136 \begin_layout Description
14137 \begin_inset Flex Code
14138 status collapsed
14139
14140 \begin_layout Plain Layout
14141 ListCommand
14142 \end_layout
14143
14144 \end_inset
14145
14146  [
14147 \begin_inset Flex Code
14148 status collapsed
14149
14150 \begin_layout Plain Layout
14151 文字列
14152 \end_layout
14153
14154 \end_inset
14155
14156 =
14157 \begin_inset Quotes erd
14158 \end_inset
14159
14160
14161 \begin_inset Quotes erd
14162 \end_inset
14163
14164 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14165 \backslash
14166 」は書きません.
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 NeedsFloatPkg
14172 \end_layout
14173
14174 \end_inset
14175
14176 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14177 \emph on
14178 必ず
14179 \emph default
14180 指定しなくてはなりません.
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 NeedsFloatPkg
14186 \end_layout
14187
14188 \end_inset
14189
14190 が真の時は,標準的な方法が存在するので,これは無視されます.
14191 \end_layout
14192
14193 \begin_layout Description
14194 \begin_inset Flex Code
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198 ListName
14199 \end_layout
14200
14201 \end_inset
14202
14203  [
14204 \begin_inset Flex Code
14205 status collapsed
14206
14207 \begin_layout Plain Layout
14208 文字列
14209 \end_layout
14210
14211 \end_inset
14212
14213 =
14214 \begin_inset Quotes erd
14215 \end_inset
14216
14217
14218 \begin_inset Quotes erd
14219 \end_inset
14220
14221 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14222 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14223 に渡さ
14224 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14225 \end_layout
14226
14227 \begin_layout Description
14228 \begin_inset Flex Code
14229 status collapsed
14230
14231 \begin_layout Plain Layout
14232 NumberWithin
14233 \end_layout
14234
14235 \end_inset
14236
14237  [
14238 \begin_inset Flex Code
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 文字列
14243 \end_layout
14244
14245 \end_inset
14246
14247 =
14248 \begin_inset Quotes erd
14249 \end_inset
14250
14251
14252 \begin_inset Quotes erd
14253 \end_inset
14254
14255 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260 NumberWithin
14261 \end_layout
14262
14263 \end_inset
14264
14265 が「
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270 chapter
14271 \end_layout
14272
14273 \end_inset
14274
14275 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14276 \end_layout
14277
14278 \begin_layout Description
14279 \begin_inset Flex Code
14280 status collapsed
14281
14282 \begin_layout Plain Layout
14283 Placement
14284 \end_layout
14285
14286 \end_inset
14287
14288  [
14289 \begin_inset Flex Code
14290 status collapsed
14291
14292 \begin_layout Plain Layout
14293 文字列
14294 \end_layout
14295
14296 \end_inset
14297
14298 =
14299 \begin_inset Quotes erd
14300 \end_inset
14301
14302
14303 \begin_inset Quotes erd
14304 \end_inset
14305
14306 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14307 表記に従い,
14308 \begin_inset Flex Code
14309 status collapsed
14310
14311 \begin_layout Plain Layout
14312 t
14313 \end_layout
14314
14315 \end_inset
14316
14317 ならば上部(top),
14318 \begin_inset Flex Code
14319 status collapsed
14320
14321 \begin_layout Plain Layout
14322 b
14323 \end_layout
14324
14325 \end_inset
14326
14327 ならば下部(bottom),
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 p
14333 \end_layout
14334
14335 \end_inset
14336
14337 ならばページ(page),
14338 \begin_inset Flex Code
14339 status collapsed
14340
14341 \begin_layout Plain Layout
14342 h
14343 \end_layout
14344
14345 \end_inset
14346
14347 ならばここ(here)を表します
14348 \begin_inset Foot
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352 \SpecialChar LaTeX
14353 同様,文字列中でのこれらの文字の順序は関係ありません.
14354 \end_layout
14355
14356 \end_inset
14357
14358 .これらの他に新しい型
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 H
14364 \end_layout
14365
14366 \end_inset
14367
14368 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 H
14374 \end_layout
14375
14376 \end_inset
14377
14378 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14379 に「
14380 \begin_inset Flex Code
14381 status collapsed
14382
14383 \begin_layout Plain Layout
14384 tbp
14385 \end_layout
14386
14387 \end_inset
14388
14389 」を指定してください.
14390 \end_layout
14391
14392 \begin_layout Description
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 RefPrefix
14398 \end_layout
14399
14400 \end_inset
14401
14402  [
14403 \begin_inset Flex Code
14404 status collapsed
14405
14406 \begin_layout Plain Layout
14407 文字列
14408 \end_layout
14409
14410 \end_inset
14411
14412 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14413 \begin_inset Flex Code
14414 status collapsed
14415
14416 \begin_layout Plain Layout
14417 RefPrefix
14418 \end_layout
14419
14420 \end_inset
14421
14422 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14423 \end_layout
14424
14425 \begin_layout Description
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430 Style
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 \end_layout
14467
14468 \begin_layout Description
14469 \begin_inset Flex Code
14470 status collapsed
14471
14472 \begin_layout Plain Layout
14473 Type
14474 \end_layout
14475
14476 \end_inset
14477
14478  [
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 文字列
14484 \end_layout
14485
14486 \end_inset
14487
14488 =
14489 \begin_inset Quotes erd
14490 \end_inset
14491
14492
14493 \begin_inset Quotes erd
14494 \end_inset
14495
14496 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501
14502 \backslash
14503 newfloat
14504 \end_layout
14505
14506 \end_inset
14507
14508 の後で,
14509 \begin_inset Flex Code
14510 status collapsed
14511
14512 \begin_layout Plain Layout
14513
14514 \backslash
14515 begin{program}
14516 \end_layout
14517
14518 \end_inset
14519
14520
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525
14526 \backslash
14527 end{algorithm*}
14528 \end_layout
14529
14530 \end_inset
14531
14532 といったコマンドが利用できます.
14533 \end_layout
14534
14535 \begin_layout Description
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 UsesFloatPkg
14541 \end_layout
14542
14543 \end_inset
14544
14545  [
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 0
14551 \end_layout
14552
14553 \end_inset
14554
14555 ,
14556 \begin_inset space \thinspace{}
14557 \end_inset
14558
14559
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564
14565 \emph on
14566 1
14567 \end_layout
14568
14569 \end_inset
14570
14571 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14572 パッケージ
14573 \begin_inset Flex Code
14574 status collapsed
14575
14576 \begin_layout Plain Layout
14577 float
14578 \end_layout
14579
14580 \end_inset
14581
14582 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14583 自身がオン・ザ・フライで定義しているのかを示します.
14584 \end_layout
14585
14586 \begin_layout Standard
14587 \begin_inset Flex Code
14588 status collapsed
14589
14590 \begin_layout Plain Layout
14591
14592 \emph on
14593 type
14594 \end_layout
14595
14596 \end_inset
14597
14598 型のフロートを定義すると,自動的に
14599 \emph on
14600 対応する
14601 \emph default
14602
14603 \begin_inset Flex Code
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607
14608 \emph on
14609 type
14610 \end_layout
14611
14612 \end_inset
14613
14614 名カウンタが定義されます.
14615 \end_layout
14616
14617 \begin_layout Subsection
14618 自由差込枠と差込枠レイアウト
14619 \begin_inset CommandInset label
14620 LatexCommand label
14621 name "subsec:任意設定差込枠"
14622
14623 \end_inset
14624
14625
14626 \end_layout
14627
14628 \begin_layout Standard
14629 自由差込枠には次の3種類があります.
14630 \end_layout
14631
14632 \begin_layout Itemize
14633 文字様式(
14634 \begin_inset Flex Code
14635 status collapsed
14636
14637 \begin_layout Plain Layout
14638 CharStyle
14639 \end_layout
14640
14641 \end_inset
14642
14643 ).これは,
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648
14649 \backslash
14650 noun
14651 \end_layout
14652
14653 \end_inset
14654
14655
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660
14661 \backslash
14662 code
14663 \end_layout
14664
14665 \end_inset
14666
14667 などの\SpecialChar LaTeX
14668 コマンドに対応した意味論的マークアップを定義するものです.
14669 \end_layout
14670
14671 \begin_layout Itemize
14672 ユーザ設定(
14673 \begin_inset Flex Code
14674 status collapsed
14675
14676 \begin_layout Plain Layout
14677 Custom
14678 \end_layout
14679
14680 \end_inset
14681
14682 ).これは,\SpecialChar TeX
14683 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 endnote
14689 \end_layout
14690
14691 \end_inset
14692
14693 モジュール中で定義されています.
14694 \end_layout
14695
14696 \begin_layout Itemize
14697 XML要素(
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 Element
14703 \end_layout
14704
14705 \end_inset
14706
14707 ).DocBookクラスで使用するものです.
14708 \end_layout
14709
14710 \begin_layout Standard
14711 自由差込枠は,以下で説明する
14712 \begin_inset Flex Code
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716 InsetLayout
14717 \end_layout
14718
14719 \end_inset
14720
14721 タグを使用して定義されます.
14722 \end_layout
14723
14724 \begin_layout Standard
14725 \begin_inset Flex Code
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729 InsetLayout
14730 \end_layout
14731
14732 \end_inset
14733
14734 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 InsetLayout
14740 \end_layout
14741
14742 \end_inset
14743
14744 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14745 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14746 ー定義するのに使用されます.
14747 \end_layout
14748
14749 \begin_layout Standard
14750 \begin_inset Flex Code
14751 status collapsed
14752
14753 \begin_layout Plain Layout
14754 InsetLayout
14755 \end_layout
14756
14757 \end_inset
14758
14759 定義は以下の形の行では始まらなくてはなりません.
14760 \end_layout
14761
14762 \begin_layout LyX-Code
14763 InsetLayout <型>
14764 \end_layout
14765
14766 \begin_layout Standard
14767 ここで
14768 \begin_inset Flex Code
14769 status collapsed
14770
14771 \begin_layout Plain Layout
14772 <型>
14773 \end_layout
14774
14775 \end_inset
14776
14777 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14778 \end_layout
14779
14780 \begin_layout Enumerate
14781 既存の差込枠のレイアウトを変更する場合.この場合,
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 <型>
14787 \end_layout
14788
14789 \end_inset
14790
14791 は以下のいずれかになります:
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 Algorithm
14797 \end_layout
14798
14799 \end_inset
14800
14801
14802 \begin_inset Flex Code
14803 status collapsed
14804
14805 \begin_layout Plain Layout
14806 Branch
14807 \end_layout
14808
14809 \end_inset
14810
14811
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 Box
14817 \end_layout
14818
14819 \end_inset
14820
14821
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 Box:shaded
14827 \end_layout
14828
14829 \end_inset
14830
14831
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 Caption:Standard
14837 \end_layout
14838
14839 \end_inset
14840
14841
14842 \begin_inset Flex Code
14843 status collapsed
14844
14845 \begin_layout Plain Layout
14846 ERT
14847 \end_layout
14848
14849 \end_inset
14850
14851
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 Figure
14857 \end_layout
14858
14859 \end_inset
14860
14861
14862 \begin_inset Flex Code
14863 status collapsed
14864
14865 \begin_layout Plain Layout
14866 Foot
14867 \end_layout
14868
14869 \end_inset
14870
14871
14872 \begin_inset Flex Code
14873 status collapsed
14874
14875 \begin_layout Plain Layout
14876 Index
14877 \end_layout
14878
14879 \end_inset
14880
14881
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886 Info
14887 \end_layout
14888
14889 \end_inset
14890
14891
14892 \begin_inset Flex Code
14893 status collapsed
14894
14895 \begin_layout Plain Layout
14896 Info:menu
14897 \end_layout
14898
14899 \end_inset
14900
14901
14902 \begin_inset Flex Code
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906 Info:shortcut
14907 \end_layout
14908
14909 \end_inset
14910
14911
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Info:shortcuts
14917 \end_layout
14918
14919 \end_inset
14920
14921
14922 \begin_inset Flex Code
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926 Listings
14927 \end_layout
14928
14929 \end_inset
14930
14931
14932 \begin_inset Flex Code
14933 status collapsed
14934
14935 \begin_layout Plain Layout
14936 Marginal
14937 \end_layout
14938
14939 \end_inset
14940
14941
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 Note:Comment
14947 \end_layout
14948
14949 \end_inset
14950
14951
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956 Note:Note
14957 \end_layout
14958
14959 \end_inset
14960
14961
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 Note:GreyedOut
14967 \end_layout
14968
14969 \end_inset
14970
14971
14972 \begin_inset Flex Code
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976 Table
14977 \end_layout
14978
14979 \end_inset
14980
14981
14982 \begin_inset Flex Code
14983 status collapsed
14984
14985 \begin_layout Plain Layout
14986 URL
14987 \end_layout
14988
14989 \end_inset
14990
14991
14992 \end_layout
14993
14994 \begin_layout Enumerate
14995 自由差込枠のレイアウトを定義する場合.この場合,
14996 \begin_inset Flex Code
14997 status collapsed
14998
14999 \begin_layout Plain Layout
15000 <型>
15001 \end_layout
15002
15003 \end_inset
15004
15005
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 Flex:<名称>
15011 \end_layout
15012
15013 \end_inset
15014
15015 の形でなくてはなりません.ここで,
15016 \begin_inset Flex Code
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020 名称
15021 \end_layout
15022
15023 \end_inset
15024
15025 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
15026 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
15027 \begin_inset Flex Code
15028 status collapsed
15029
15030 \begin_layout Plain Layout
15031 LyXType
15032 \end_layout
15033
15034 \end_inset
15035
15036 項目が含まれていなくてはならないことに注意してください.
15037 \end_layout
15038
15039 \begin_layout Enumerate
15040 ユーザー定義派生枝を定義する場合.この場合,
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 <型>
15046 \end_layout
15047
15048 \end_inset
15049
15050 は「
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 Branch:<名称>
15056 \end_layout
15057
15058 \end_inset
15059
15060 」の形でなくてはなりません.ここで,
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 名称
15066 \end_layout
15067
15068 \end_inset
15069
15070 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15071 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15072 がくるむことができるようにすることです.
15073 \end_layout
15074
15075 \begin_layout Enumerate
15076 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 <型>
15082 \end_layout
15083
15084 \end_inset
15085
15086 は「
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 Caption:<名称>
15092 \end_layout
15093
15094 \end_inset
15095
15096 」の形でなくてはなりません.ここで,
15097 \begin_inset Flex Code
15098 status collapsed
15099
15100 \begin_layout Plain Layout
15101 名称
15102 \end_layout
15103
15104 \end_inset
15105
15106 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15107 \begin_inset Flex Code
15108 status collapsed
15109
15110 \begin_layout Plain Layout
15111 Caption:Standard
15112 \end_layout
15113
15114 \end_inset
15115
15116 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15117 \begin_inset Flex Code
15118 status collapsed
15119
15120 \begin_layout Plain Layout
15121 Caption:Above
15122 \end_layout
15123
15124 \end_inset
15125
15126
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 Caption:Below
15132 \end_layout
15133
15134 \end_inset
15135
15136 ),
15137 \family sans
15138 多言語キャプション
15139 \family default
15140 モジュール(
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 Caption:Bicaption
15146 \end_layout
15147
15148 \end_inset
15149
15150 )をご覧ください.
15151 \end_layout
15152
15153 \begin_layout Standard
15154 \begin_inset Flex Code
15155 status collapsed
15156
15157 \begin_layout Plain Layout
15158 InsetLayout
15159 \end_layout
15160
15161 \end_inset
15162
15163 定義には以下の項目を入れることができます.
15164 \end_layout
15165
15166 \begin_layout Description
15167 \begin_inset Flex Code
15168 status collapsed
15169
15170 \begin_layout Plain Layout
15171 Argument
15172 \end_layout
15173
15174 \end_inset
15175
15176  [
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 整数
15182 \end_layout
15183
15184 \end_inset
15185
15186 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 EndArgument
15192 \end_layout
15193
15194 \end_inset
15195
15196 で閉じなくてはなりません.詳細は
15197 \begin_inset CommandInset ref
15198 LatexCommand ref
15199 reference "subsec:段落様式"
15200
15201 \end_inset
15202
15203 参照.
15204 \end_layout
15205
15206 \begin_layout Description
15207 \begin_inset Flex Code
15208 status collapsed
15209
15210 \begin_layout Plain Layout
15211 BabelPreamble
15212 \end_layout
15213
15214 \end_inset
15215
15216  言語コマンドを変更するプリアンブル.
15217 \begin_inset CommandInset ref
15218 LatexCommand ref
15219 reference "subsec:段落様式の国際化"
15220
15221 \end_inset
15222
15223 参照.
15224 \end_layout
15225
15226 \begin_layout Description
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 BgColor
15232 \end_layout
15233
15234 \end_inset
15235
15236  [
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 <名称>
15242 \end_layout
15243
15244 \end_inset
15245
15246 ] 差込枠の背景色.使用できる色名一覧は
15247 \begin_inset CommandInset ref
15248 LatexCommand ref
15249 reference "chap:色名"
15250
15251 \end_inset
15252
15253 参照.
15254 \end_layout
15255
15256 \begin_layout Description
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 ContentAsLabel
15262 \end_layout
15263
15264 \end_inset
15265
15266  [
15267 \begin_inset Flex Code
15268 status collapsed
15269
15270 \begin_layout Plain Layout
15271
15272 \emph on
15273 0
15274 \end_layout
15275
15276 \end_inset
15277
15278 ,
15279 \begin_inset space \thinspace{}
15280 \end_inset
15281
15282
15283 \begin_inset Flex Code
15284 status collapsed
15285
15286 \begin_layout Plain Layout
15287 1
15288 \end_layout
15289
15290 \end_inset
15291
15292 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15293 \end_layout
15294
15295 \begin_layout Description
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 CopyStyle
15301 \end_layout
15302
15303 \end_inset
15304
15305  [<型>] 段落様式と同様です.
15306 \begin_inset CommandInset ref
15307 LatexCommand ref
15308 reference "subsec:段落様式"
15309
15310 \end_inset
15311
15312 参照のこと.完全な型を指定する必要があることに注意してください.例:
15313 \begin_inset Flex Code
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 CopyStyle Flex:<名称>
15318 \end_layout
15319
15320 \end_inset
15321
15322
15323 \end_layout
15324
15325 \begin_layout Description
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 CustomPars
15331 \end_layout
15332
15333 \end_inset
15334
15335  [
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340
15341 \emph on
15342 0
15343 \end_layout
15344
15345 \end_inset
15346
15347 ,
15348 \begin_inset space \thinspace{}
15349 \end_inset
15350
15351
15352 \begin_inset Flex Code
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356 1
15357 \end_layout
15358
15359 \end_inset
15360
15361 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15362 \end_layout
15363
15364 \begin_layout Description
15365 \begin_inset Flex Code
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 Decoration
15370 \end_layout
15371
15372 \end_inset
15373
15374  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 Classic
15380 \end_layout
15381
15382 \end_inset
15383
15384
15385 \begin_inset Flex Code
15386 status collapsed
15387
15388 \begin_layout Plain Layout
15389 Minimalistic
15390 \end_layout
15391
15392 \end_inset
15393
15394
15395 \begin_inset Flex Code
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399 Conglomerate
15400 \end_layout
15401
15402 \end_inset
15403
15404 のいずれかを指定することができます.脚註は通常
15405 \begin_inset Flex Code
15406 status collapsed
15407
15408 \begin_layout Plain Layout
15409 Classic
15410 \end_layout
15411
15412 \end_inset
15413
15414 を使用し,\SpecialChar TeX
15415 コード差込枠は通常
15416 \begin_inset Flex Code
15417 status collapsed
15418
15419 \begin_layout Plain Layout
15420 Minimalistic
15421 \end_layout
15422
15423 \end_inset
15424
15425 ,文字様式は
15426 \begin_inset Flex Code
15427 status collapsed
15428
15429 \begin_layout Plain Layout
15430 Conglomerate
15431 \end_layout
15432
15433 \end_inset
15434
15435 を使用します.
15436 \end_layout
15437
15438 \begin_layout Description
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 Display
15444 \end_layout
15445
15446 \end_inset
15447
15448  [
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 0
15454 \end_layout
15455
15456 \end_inset
15457
15458 ,
15459 \begin_inset space \thinspace{}
15460 \end_inset
15461
15462
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467
15468 \emph on
15469 1
15470 \end_layout
15471
15472 \end_inset
15473
15474
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 LatexType
15480 \end_layout
15481
15482 \end_inset
15483
15484
15485 \begin_inset Flex Code
15486 status collapsed
15487
15488 \begin_layout Plain Layout
15489 Environment
15490 \end_layout
15491
15492 \end_inset
15493
15494 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15495 環境は,
15496 \begin_inset Flex Code
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500
15501 \backslash
15502 begin{LatexName}
15503 \end_layout
15504
15505 \end_inset
15506
15507 タグと
15508 \begin_inset Flex Code
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512
15513 \backslash
15514 end{LatexName}
15515 \end_layout
15516
15517 \end_inset
15518
15519 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15520 \end_layout
15521
15522 \begin_layout Description
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 End
15528 \end_layout
15529
15530 \end_inset
15531
15532  
15533 \begin_inset Flex Code
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537 InsetLayout
15538 \end_layout
15539
15540 \end_inset
15541
15542 宣言を閉じるのに必要です.
15543 \end_layout
15544
15545 \begin_layout Description
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 Font
15551 \end_layout
15552
15553 \end_inset
15554
15555  本文本体とラベル
15556 \emph on
15557 両方に
15558 \emph default
15559 使用されるフォントです.
15560 \begin_inset CommandInset ref
15561 LatexCommand ref
15562 reference "subsec:フォント指定"
15563
15564 \end_inset
15565
15566 を参照.このフォントを定義すると自動的に
15567 \begin_inset Flex Code
15568 status collapsed
15569
15570 \begin_layout Plain Layout
15571 LabelFont
15572 \end_layout
15573
15574 \end_inset
15575
15576 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15577 \begin_inset Flex Code
15578 status collapsed
15579
15580 \begin_layout Plain Layout
15581 LabelFont
15582 \end_layout
15583
15584 \end_inset
15585
15586 を定義しなくてはならないことに注意してください.
15587 \end_layout
15588
15589 \begin_layout Description
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 FixedWidthPreambleEncoding
15595 \end_layout
15596
15597 \end_inset
15598
15599  [
15600 \begin_inset Flex Code
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604
15605 \emph on
15606 0
15607 \end_layout
15608
15609 \end_inset
15610
15611 ,
15612 \begin_inset space \thinspace{}
15613 \end_inset
15614
15615
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620 1
15621 \end_layout
15622
15623 \end_inset
15624
15625 ] このレイアウトによって生成される
15626 \begin_inset Flex Code
15627 status collapsed
15628
15629 \begin_layout Plain Layout
15630 BabelPreamble
15631 \end_layout
15632
15633 \end_inset
15634
15635 および
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 LangPreamble
15641 \end_layout
15642
15643 \end_inset
15644
15645 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15646 \family typewriter
15647 listings
15648 \family default
15649 のように,
15650 \family sans
15651 utf8
15652 \family default
15653 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15654 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15655 やLua\SpecialChar TeX
15656 のようなUnicodeを完全に解する\SpecialChar LaTeX
15657 バックエンドを使用してい
15658 る場合には,無視されます.
15659 \end_layout
15660
15661 \begin_layout Description
15662 \begin_inset Flex Code
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666 ForceLocalFontSwitch
15667 \end_layout
15668
15669 \end_inset
15670
15671  [
15672 \begin_inset Flex Code
15673 status collapsed
15674
15675 \begin_layout Plain Layout
15676
15677 \emph on
15678 0
15679 \end_layout
15680
15681 \end_inset
15682
15683 ,
15684 \begin_inset space \thinspace{}
15685 \end_inset
15686
15687
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692 1
15693 \end_layout
15694
15695 \end_inset
15696
15697 ] babel使用時に,常にローカルフォント切替(
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702
15703 \backslash
15704 foreignlanguage
15705 \end_layout
15706
15707 \end_inset
15708
15709 )を使い,グローバル切替(
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714
15715 \backslash
15716 selectlanguage
15717 \end_layout
15718
15719 \end_inset
15720
15721 など)は使わない.
15722 \end_layout
15723
15724 \begin_layout Description
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 ForceLTR
15730 \end_layout
15731
15732 \end_inset
15733
15734  [
15735 \begin_inset Flex Code
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739
15740 \emph on
15741 0
15742 \end_layout
15743
15744 \end_inset
15745
15746 ,
15747 \begin_inset space \thinspace{}
15748 \end_inset
15749
15750
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755 1
15756 \end_layout
15757
15758 \end_inset
15759
15760 ] たとえば\SpecialChar TeX
15761 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15762 \end_layout
15763
15764 \begin_layout Description
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 ForceOwnlines
15770 \end_layout
15771
15772 \end_inset
15773
15774  [
15775 \begin_inset Flex Code
15776 status collapsed
15777
15778 \begin_layout Plain Layout
15779
15780 \emph on
15781 0
15782 \end_layout
15783
15784 \end_inset
15785
15786 ,
15787 \begin_inset space \thinspace{}
15788 \end_inset
15789
15790
15791 \begin_inset Flex Code
15792 status collapsed
15793
15794 \begin_layout Plain Layout
15795 1
15796 \end_layout
15797
15798 \end_inset
15799
15800 ] \SpecialChar LaTeX
15801 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15802 \end_layout
15803
15804 \begin_layout Description
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 ForcePlain
15810 \end_layout
15811
15812 \end_inset
15813
15814  [
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819
15820 \emph on
15821 0
15822 \end_layout
15823
15824 \end_inset
15825
15826 ,
15827 \begin_inset space \thinspace{}
15828 \end_inset
15829
15830
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 1
15836 \end_layout
15837
15838 \end_inset
15839
15840 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15841 \end_layout
15842
15843 \begin_layout Description
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 FreeSpacing
15849 \end_layout
15850
15851 \end_inset
15852
15853  [
15854 \emph on
15855
15856 \begin_inset Flex Code
15857 status collapsed
15858
15859 \begin_layout Plain Layout
15860 0
15861 \end_layout
15862
15863 \end_inset
15864
15865
15866 \emph default
15867 ,
15868 \begin_inset space \thinspace{}
15869 \end_inset
15870
15871
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 1
15877 \end_layout
15878
15879 \end_inset
15880
15881 ] 段落様式と同様.
15882 \begin_inset CommandInset ref
15883 LatexCommand ref
15884 reference "subsec:段落様式"
15885
15886 \end_inset
15887
15888 参照.
15889 \end_layout
15890
15891 \begin_layout Description
15892 \begin_inset Flex Code
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 HTML*
15897 \end_layout
15898
15899 \end_inset
15900
15901  これらは,XHTML出力で使用されます.
15902 \begin_inset CommandInset ref
15903 LatexCommand ref
15904 reference "sec:XHTML出力のタグ"
15905
15906 \end_inset
15907
15908 をご覧ください.
15909 \end_layout
15910
15911 \begin_layout Description
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 InToc
15917 \end_layout
15918
15919 \end_inset
15920
15921  [
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926
15927 \emph on
15928 0
15929 \end_layout
15930
15931 \end_inset
15932
15933 ,
15934 \begin_inset space \thinspace{}
15935 \end_inset
15936
15937
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942 1
15943 \end_layout
15944
15945 \end_inset
15946
15947 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15948 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15949 \end_layout
15950
15951 \begin_layout Description
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 KeepEmpty
15957 \end_layout
15958
15959 \end_inset
15960
15961  [
15962 \emph on
15963
15964 \begin_inset Flex Code
15965 status collapsed
15966
15967 \begin_layout Plain Layout
15968 0
15969 \end_layout
15970
15971 \end_inset
15972
15973
15974 \emph default
15975 ,
15976 \begin_inset space \thinspace{}
15977 \end_inset
15978
15979
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 1
15985 \end_layout
15986
15987 \end_inset
15988
15989 ] 段落様式と同様.
15990 \begin_inset CommandInset ref
15991 LatexCommand ref
15992 reference "subsec:段落様式"
15993
15994 \end_inset
15995
15996 参照.
15997 \end_layout
15998
15999 \begin_layout Description
16000 \begin_inset Flex Code
16001 status collapsed
16002
16003 \begin_layout Plain Layout
16004 LabelFont
16005 \end_layout
16006
16007 \end_inset
16008
16009  ラベルに使用されるフォント.第
16010 \begin_inset CommandInset ref
16011 LatexCommand ref
16012 reference "subsec:フォント指定"
16013
16014 \end_inset
16015
16016 節を参照.非効率を回避するため,この定義は
16017 \begin_inset Flex Code
16018 status collapsed
16019
16020 \begin_layout Plain Layout
16021 Font
16022 \end_layout
16023
16024 \end_inset
16025
16026 の前には決して現れてはなりません.
16027 \end_layout
16028
16029 \begin_layout Description
16030 \begin_inset Flex Code
16031 status collapsed
16032
16033 \begin_layout Plain Layout
16034 LabelString
16035 \end_layout
16036
16037 \end_inset
16038
16039  [
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 文字列
16045 \end_layout
16046
16047 \end_inset
16048
16049 =
16050 \begin_inset Quotes erd
16051 \end_inset
16052
16053
16054 \begin_inset Quotes erd
16055 \end_inset
16056
16057 ]
16058 \lang english
16059  
16060 \lang japanese
16061 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
16062 コードや派生枝),ラベルが動的に変更されます.
16063 \end_layout
16064
16065 \begin_layout Description
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 LangPreamble
16071 \end_layout
16072
16073 \end_inset
16074
16075  言語依存のプリアンブル.
16076 \begin_inset CommandInset ref
16077 LatexCommand ref
16078 reference "subsec:段落様式の国際化"
16079
16080 \end_inset
16081
16082 参照.
16083 \end_layout
16084
16085 \begin_layout Description
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090 LatexName
16091 \end_layout
16092
16093 \end_inset
16094
16095  [
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 <名称>
16101 \end_layout
16102
16103 \end_inset
16104
16105 ] 対応する\SpecialChar LaTeX
16106 関連物の名称.環境名ないしはコマンド名.
16107 \end_layout
16108
16109 \begin_layout Description
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 LatexParam
16115 \end_layout
16116
16117 \end_inset
16118
16119  [
16120 \begin_inset Flex Code
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 <パラメータ>
16125 \end_layout
16126
16127 \end_inset
16128
16129 ]
16130 \lang english
16131  
16132 \lang japanese
16133 対応する
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138 LatexName
16139 \end_layout
16140
16141 \end_inset
16142
16143 関連物の非必須パラメータ.
16144 \begin_inset Flex Code
16145 status collapsed
16146
16147 \begin_layout Plain Layout
16148 []
16149 \end_layout
16150
16151 \end_inset
16152
16153 のような括弧対を含む.このパラメータは\SpecialChar LyX
16154 内部から変更することはできません(変更可能なパラメータには
16155 \begin_inset Flex Code
16156 status collapsed
16157
16158 \begin_layout Plain Layout
16159 Argument
16160 \end_layout
16161
16162 \end_inset
16163
16164 を使用してください).これは,全ての\SpecialChar LaTeX
16165  
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 Argument
16171 \end_layout
16172
16173 \end_inset
16174
16175 の後にそのままの形で出力されます.
16176 \end_layout
16177
16178 \begin_layout Description
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 LatexType
16184 \end_layout
16185
16186 \end_inset
16187
16188  [
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193 Command, Environment, None
16194 \end_layout
16195
16196 \end_inset
16197
16198 ] 様式がどのように\SpecialChar LaTeX
16199 に変換されるべきかを示します
16200 \begin_inset Foot
16201 status collapsed
16202
16203 \begin_layout Plain Layout
16204 これらのルールはSGMLクラスにも適用されるので,
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 LatexType
16210 \end_layout
16211
16212 \end_inset
16213
16214 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16215 \end_layout
16216
16217 \end_inset
16218
16219
16220 \begin_inset Separator latexpar
16221 \end_inset
16222
16223
16224 \end_layout
16225
16226 \begin_deeper
16227 \begin_layout Description
16228 \begin_inset Flex Code
16229 status collapsed
16230
16231 \begin_layout Plain Layout
16232 None
16233 \end_layout
16234
16235 \end_inset
16236
16237  は,何も特別なことは意味しません
16238 \end_layout
16239
16240 \begin_layout Description
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 Command
16246 \end_layout
16247
16248 \end_inset
16249
16250  は,
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255
16256 \backslash
16257
16258 \emph on
16259 LatexName
16260 \emph default
16261 {\SpecialChar ldots
16262 }
16263 \end_layout
16264
16265 \end_inset
16266
16267 を意味します
16268 \end_layout
16269
16270 \begin_layout Description
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 Environment
16276 \end_layout
16277
16278 \end_inset
16279
16280  は,
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285
16286 \backslash
16287 begin{
16288 \emph on
16289 LatexName
16290 \emph default
16291 }\SpecialChar ldots
16292
16293 \backslash
16294 end{
16295 \emph on
16296 LatexName
16297 \emph default
16298 }
16299 \end_layout
16300
16301 \end_inset
16302
16303 を意味します
16304 \end_layout
16305
16306 \begin_layout Standard
16307 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16308 出力は,\SpecialChar LaTeX
16309 型に依存して
16310 \end_layout
16311
16312 \begin_layout LyX-Code
16313
16314 \backslash
16315 LatexName[LatexParam]{\SpecialChar ldots
16316 }
16317 \end_layout
16318
16319 \begin_layout Standard
16320 のようになるか,
16321 \end_layout
16322
16323 \begin_layout LyX-Code
16324
16325 \backslash
16326 begin{LatexName}[LatexParam] \SpecialChar ldots
16327  
16328 \backslash
16329 end{LatexName}.
16330 \end_layout
16331
16332 \begin_layout Standard
16333 となります.
16334 \end_layout
16335
16336 \end_deeper
16337 \begin_layout Description
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 LeftDelim
16343 \end_layout
16344
16345 \end_inset
16346
16347  [
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 文字列
16353 \end_layout
16354
16355 \end_inset
16356
16357 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16358 \begin_inset Flex Code
16359 status collapsed
16360
16361 \begin_layout Plain Layout
16362 <br/>
16363 \end_layout
16364
16365 \end_inset
16366
16367 で指示できます.
16368 \end_layout
16369
16370 \begin_layout Description
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 LyxType
16376 \end_layout
16377
16378 \end_inset
16379
16380  
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 charstyle
16386 \end_layout
16387
16388 \end_inset
16389
16390
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395 custom
16396 \end_layout
16397
16398 \end_inset
16399
16400
16401 \begin_inset Flex Code
16402 status collapsed
16403
16404 \begin_layout Plain Layout
16405 element
16406 \end_layout
16407
16408 \end_inset
16409
16410
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 end
16416 \end_layout
16417
16418 \end_inset
16419
16420 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16421 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426 LyXType
16427 \end_layout
16428
16429 \end_inset
16430
16431
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 charstyle
16437 \end_layout
16438
16439 \end_inset
16440
16441 に設定すると,
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446 MultiPar
16447 \end_layout
16448
16449 \end_inset
16450
16451 が偽に設定されます.文字様式差込枠で
16452 \begin_inset Flex Code
16453 status collapsed
16454
16455 \begin_layout Plain Layout
16456 MultiPar
16457 \end_layout
16458
16459 \end_inset
16460
16461 を真にしたい時には,
16462 \begin_inset Flex Code
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466 LyXType
16467 \end_layout
16468
16469 \end_inset
16470
16471 を設定した
16472 \emph on
16473 後に
16474 \emph default
16475 設定すれば,真に設定することができます.
16476 \end_layout
16477
16478 \begin_layout Description
16479 \begin_inset Flex Code
16480 status collapsed
16481
16482 \begin_layout Plain Layout
16483 MultiPar
16484 \end_layout
16485
16486 \end_inset
16487
16488  [
16489 \begin_inset Flex Code
16490 status collapsed
16491
16492 \begin_layout Plain Layout
16493
16494 \emph on
16495 0
16496 \end_layout
16497
16498 \end_inset
16499
16500 ,
16501 \begin_inset space \thinspace{}
16502 \end_inset
16503
16504
16505 \begin_inset Flex Code
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509 1
16510 \end_layout
16511
16512 \end_inset
16513
16514 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16515 \begin_inset Flex Code
16516 status collapsed
16517
16518 \begin_layout Plain Layout
16519 CustomPars
16520 \end_layout
16521
16522 \end_inset
16523
16524 を同じ値に設定し,
16525 \begin_inset Flex Code
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529 ForcePlain
16530 \end_layout
16531
16532 \end_inset
16533
16534 を逆の値に設定します.これらは,
16535 \begin_inset Flex Code
16536 status collapsed
16537
16538 \begin_layout Plain Layout
16539 MultiPar
16540 \end_layout
16541
16542 \end_inset
16543
16544
16545 \emph on
16546 後に
16547 \emph default
16548 指定されれば,他の値に指定し直すことができます.既定値は真です.
16549 \end_layout
16550
16551 \begin_layout Description
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556 NeedProtect
16557 \end_layout
16558
16559 \end_inset
16560
16561  [
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566
16567 \emph on
16568 0
16569 \end_layout
16570
16571 \end_inset
16572
16573 ,
16574 \begin_inset space \thinspace{}
16575 \end_inset
16576
16577
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 1
16583 \end_layout
16584
16585 \end_inset
16586
16587 ] 本レイアウト中で脆弱なコマンドを
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592
16593 \backslash
16594 protect
16595 \end_layout
16596
16597 \end_inset
16598
16599 するか否か(註:当該コマンド自身をprotectするかどうかでは
16600 \emph on
16601 ありません
16602 \emph default
16603 ).既定値は偽です.
16604 \end_layout
16605
16606 \begin_layout Description
16607 \begin_inset Flex Code
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611 NoInsetLayout
16612 \end_layout
16613
16614 \end_inset
16615
16616  [
16617 \begin_inset Flex Code
16618 status collapsed
16619
16620 \begin_layout Plain Layout
16621 <レイアウト>
16622 \end_layout
16623
16624 \end_inset
16625
16626 ] 既存の
16627 \begin_inset Flex Code
16628 status collapsed
16629
16630 \begin_layout Plain Layout
16631 InsetLayout
16632 \end_layout
16633
16634 \end_inset
16635
16636 を削除します.
16637 \end_layout
16638
16639 \begin_layout Description
16640 \begin_inset Flex Code
16641 status collapsed
16642
16643 \begin_layout Plain Layout
16644 ObsoletedBy
16645 \end_layout
16646
16647 \end_inset
16648
16649  [
16650 \begin_inset Flex Code
16651 status collapsed
16652
16653 \begin_layout Plain Layout
16654 <レイアウト>
16655 \end_layout
16656
16657 \end_inset
16658
16659 ] この古い
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 InsetLayout
16665 \end_layout
16666
16667 \end_inset
16668
16669 を引き継いだ
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674 InsetLayout
16675 \end_layout
16676
16677 \end_inset
16678
16679 の名称.これは,
16680 \begin_inset Flex Code
16681 status collapsed
16682
16683 \begin_layout Plain Layout
16684 InsetLayout
16685 \end_layout
16686
16687 \end_inset
16688
16689 の改名を,後方互換性を維持しながら行うために用いられます.
16690 \end_layout
16691
16692 \begin_layout Description
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 ParbreakIsNewline
16698 \end_layout
16699
16700 \end_inset
16701
16702  [
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707
16708 \emph on
16709 0
16710 \end_layout
16711
16712 \end_inset
16713
16714 ,
16715 \begin_inset space \thinspace{}
16716 \end_inset
16717
16718
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723 1
16724 \end_layout
16725
16726 \end_inset
16727
16728 ] 段落様式と同様.
16729 \begin_inset CommandInset ref
16730 LatexCommand ref
16731 reference "subsec:段落様式"
16732
16733 \end_inset
16734
16735 参照.
16736 \end_layout
16737
16738 \begin_layout Description
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 PassThru
16744 \end_layout
16745
16746 \end_inset
16747
16748  [
16749 \emph on
16750
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 0
16756 \end_layout
16757
16758 \end_inset
16759
16760
16761 \emph default
16762 ,
16763 \begin_inset space \thinspace{}
16764 \end_inset
16765
16766
16767 \begin_inset Flex Code
16768 status collapsed
16769
16770 \begin_layout Plain Layout
16771 1
16772 \end_layout
16773
16774 \end_inset
16775
16776 ] 段落様式と同様.
16777 \begin_inset CommandInset ref
16778 LatexCommand ref
16779 reference "subsec:段落様式"
16780
16781 \end_inset
16782
16783 参照.
16784 \end_layout
16785
16786 \begin_layout Description
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 Preamble
16792 \end_layout
16793
16794 \end_inset
16795
16796  段落様式と同様.
16797 \begin_inset CommandInset ref
16798 LatexCommand ref
16799 reference "subsec:段落様式"
16800
16801 \end_inset
16802
16803 参照.
16804 \end_layout
16805
16806 \begin_layout Description
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 RefPrefix
16812 \end_layout
16813
16814 \end_inset
16815
16816  [
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 文字列
16822 \end_layout
16823
16824 \end_inset
16825
16826 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16827 \end_layout
16828
16829 \begin_layout Description
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 Requires
16835 \end_layout
16836
16837 \end_inset
16838
16839  [
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 文字列
16845 \end_layout
16846
16847 \end_inset
16848
16849 ] 段落様式と同様.
16850 \begin_inset CommandInset ref
16851 LatexCommand ref
16852 reference "subsec:段落様式"
16853
16854 \end_inset
16855
16856 参照.
16857 \end_layout
16858
16859 \begin_layout Description
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 ResetArgs
16865 \end_layout
16866
16867 \end_inset
16868
16869  [
16870 \begin_inset Flex Code
16871 status collapsed
16872
16873 \begin_layout Plain Layout
16874
16875 \emph on
16876 0
16877 \end_layout
16878
16879 \end_inset
16880
16881 ,
16882 \begin_inset space \thinspace{}
16883 \end_inset
16884
16885
16886 \begin_inset Flex Code
16887 status collapsed
16888
16889 \begin_layout Plain Layout
16890 1
16891 \end_layout
16892
16893 \end_inset
16894
16895 ] (
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 Argument
16901 \end_layout
16902
16903 \end_inset
16904
16905 タグで定義された)この様式の\SpecialChar LaTeX
16906 引数をリセットします.これは,様式を
16907 \begin_inset Flex Code
16908 status collapsed
16909
16910 \begin_layout Plain Layout
16911 CopyStyle
16912 \end_layout
16913
16914 \end_inset
16915
16916 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16917 \end_layout
16918
16919 \begin_layout Description
16920 \begin_inset Flex Code
16921 status collapsed
16922
16923 \begin_layout Plain Layout
16924 ResetsFont
16925 \end_layout
16926
16927 \end_inset
16928
16929  [
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934 0
16935 \end_layout
16936
16937 \end_inset
16938
16939 ,
16940 \begin_inset space \thinspace{}
16941 \end_inset
16942
16943
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948
16949 \emph on
16950 1
16951 \end_layout
16952
16953 \end_inset
16954
16955 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16956 \begin_inset Note Note
16957 status open
16958
16959 \begin_layout Plain Layout
16960 This is outdated: The default changed from 1 to 0
16961 \end_layout
16962
16963 \end_inset
16964
16965
16966 \end_layout
16967
16968 \begin_layout Description
16969 \begin_inset Flex Code
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973 RightDelim
16974 \end_layout
16975
16976 \end_inset
16977
16978  [
16979 \begin_inset Flex Code
16980 status collapsed
16981
16982 \begin_layout Plain Layout
16983 文字列
16984 \end_layout
16985
16986 \end_inset
16987
16988 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16989 \begin_inset Flex Code
16990 status collapsed
16991
16992 \begin_layout Plain Layout
16993 <br/>
16994 \end_layout
16995
16996 \end_inset
16997
16998 で指示できます.
16999 \end_layout
17000
17001 \begin_layout Description
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 Spellcheck
17007 \end_layout
17008
17009 \end_inset
17010
17011  [
17012 \begin_inset Flex Code
17013 status collapsed
17014
17015 \begin_layout Plain Layout
17016 0
17017 \end_layout
17018
17019 \end_inset
17020
17021 ,
17022 \begin_inset space \thinspace{}
17023 \end_inset
17024
17025
17026 \begin_inset Flex Code
17027 status collapsed
17028
17029 \begin_layout Plain Layout
17030
17031 \emph on
17032 1
17033 \end_layout
17034
17035 \end_inset
17036
17037 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
17038 \end_layout
17039
17040 \begin_layout Subsection
17041 カウンタ
17042 \begin_inset CommandInset label
17043 LatexCommand label
17044 name "subsec:カウンタ"
17045
17046 \end_inset
17047
17048
17049 \end_layout
17050
17051 \begin_layout Standard
17052 テキストクラスには,カウンタ(
17053 \begin_inset Flex MenuItem
17054 status collapsed
17055
17056 \begin_layout Plain Layout
17057 chapter
17058 \end_layout
17059
17060 \end_inset
17061
17062
17063 \begin_inset Flex MenuItem
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 figure
17068 \end_layout
17069
17070 \end_inset
17071
17072 ・\SpecialChar ldots
17073 )を定義することが必要です.標準的なカウンタは
17074 \begin_inset Flex Code
17075 status collapsed
17076
17077 \begin_layout Plain Layout
17078 stdcounters.inc
17079 \end_layout
17080
17081 \end_inset
17082
17083 ファイルに含まれているので,作業中のレイアウトファイルに
17084 \end_layout
17085
17086 \begin_layout LyX-Code
17087 Input stdcounters.inc
17088 \end_layout
17089
17090 \begin_layout Standard
17091 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17092 \end_layout
17093
17094 \begin_layout LyX-Code
17095 Counter カウンタ名
17096 \end_layout
17097
17098 \begin_layout Standard
17099 で始まらなくてはなりません.ここで「
17100 \begin_inset Flex Code
17101 status collapsed
17102
17103 \begin_layout Plain Layout
17104 カウンタ名
17105 \end_layout
17106
17107 \end_inset
17108
17109 」は,実際のカウンタ名で置き換えます.また,宣言は「
17110 \begin_inset Flex Code
17111 status collapsed
17112
17113 \begin_layout Plain Layout
17114 End
17115 \end_layout
17116
17117 \end_inset
17118
17119 」で終わらなくてはなりません.
17120 \end_layout
17121
17122 \begin_layout Standard
17123 以下のパラメータを使用することができます.
17124 \end_layout
17125
17126 \begin_layout Description
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 InitialValue
17132 \end_layout
17133
17134 \end_inset
17135
17136  [
17137 \begin_inset Flex Code
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 整数=1
17142 \end_layout
17143
17144 \end_inset
17145
17146 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17147 \end_layout
17148
17149 \begin_layout Description
17150 \begin_inset Flex Code
17151 status collapsed
17152
17153 \begin_layout Plain Layout
17154 LabelString [文字列=""]
17155 \end_layout
17156
17157 \end_inset
17158
17159  定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17160 \begin_inset Flex Code
17161 status collapsed
17162
17163 \begin_layout Plain Layout
17164 LabelStringAppendix
17165 \end_layout
17166
17167 \end_inset
17168
17169 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17170 \begin_inset Separator latexpar
17171 \end_inset
17172
17173
17174 \end_layout
17175
17176 \begin_deeper
17177 \begin_layout Itemize
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182
17183 \backslash
17184 thecounter
17185 \end_layout
17186
17187 \end_inset
17188
17189 は,カウンタ
17190 \begin_inset Flex Code
17191 status collapsed
17192
17193 \begin_layout Plain Layout
17194 counter
17195 \end_layout
17196
17197 \end_inset
17198
17199
17200 \begin_inset Flex Code
17201 status collapsed
17202
17203 \begin_layout Plain Layout
17204 LabelString
17205 \end_layout
17206
17207 \end_inset
17208
17209 (または
17210 \begin_inset Newline linebreak
17211 \end_inset
17212
17213
17214 \begin_inset Flex Code
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218 LabelStringAppendix
17219 \end_layout
17220
17221 \end_inset
17222
17223 )を展開したもので置き換えられます. 
17224 \end_layout
17225
17226 \begin_layout Itemize
17227 カウンタ値は,\SpecialChar LaTeX
17228 型マクロ
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233
17234 \backslash
17235
17236 \emph on
17237 numbertype
17238 \emph default
17239 {
17240 \emph on
17241 カウンタ
17242 \emph default
17243 }
17244 \end_layout
17245
17246 \end_inset
17247
17248 を用いて表現することができます.ここで
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253
17254 \emph on
17255 numbertype
17256 \end_layout
17257
17258 \end_inset
17259
17260 は以下のいずれかです.
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265 arabic
17266 \end_layout
17267
17268 \end_inset
17269
17270 :1, 2, 3,\SpecialChar ldots
17271
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 alph
17277 \end_layout
17278
17279 \end_inset
17280
17281 :a, b, c, \SpecialChar ldots
17282 (小文字);
17283 \begin_inset Flex Code
17284 status collapsed
17285
17286 \begin_layout Plain Layout
17287 Alph
17288 \end_layout
17289
17290 \end_inset
17291
17292 :A, B, C, \SpecialChar ldots
17293 (大文字);
17294 \begin_inset Flex Code
17295 status collapsed
17296
17297 \begin_layout Plain Layout
17298 roman
17299 \end_layout
17300
17301 \end_inset
17302
17303 :i, ii, iii, \SpecialChar ldots
17304 (小文字ローマ数字);
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 Roman
17310 \end_layout
17311
17312 \end_inset
17313
17314 :I, II, III\SpecialChar ldots
17315 (大文字ローマ数字).
17316 \end_layout
17317
17318 \end_deeper
17319 \begin_layout Standard
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324 LabelString
17325 \end_layout
17326
17327 \end_inset
17328
17329 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17330 \begin_inset Flex Code
17331 status collapsed
17332
17333 \begin_layout Plain Layout
17334 master
17335 \end_layout
17336
17337 \end_inset
17338
17339
17340 \begin_inset Flex Code
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344 Within
17345 \end_layout
17346
17347 \end_inset
17348
17349 で定義)があるときには,文字列
17350 \begin_inset Newline linebreak
17351 \end_inset
17352
17353
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358
17359 \backslash
17360 themaster.
17361 \backslash
17362 arabic{カウンタ}
17363 \end_layout
17364
17365 \end_inset
17366
17367 が使用されます.それ以外の場合は,
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372
17373 \backslash
17374 arabic{カウンタ}
17375 \end_layout
17376
17377 \end_inset
17378
17379 が使用されます.
17380 \end_layout
17381
17382 \begin_layout Description
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387 LabelStringAppendix
17388 \end_layout
17389
17390 \end_inset
17391
17392  [
17393 \begin_inset Flex Code
17394 status collapsed
17395
17396 \begin_layout Plain Layout
17397 文字列
17398 \end_layout
17399
17400 \end_inset
17401
17402 =""] 
17403 \begin_inset Flex Code
17404 status collapsed
17405
17406 \begin_layout Plain Layout
17407 LabelString
17408 \end_layout
17409
17410 \end_inset
17411
17412 と同様ですが,付録で使用するためのものです.
17413 \end_layout
17414
17415 \begin_layout Description
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 PrettyFormat
17421 \end_layout
17422
17423 \end_inset
17424
17425  [
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 文字列
17431 \end_layout
17432
17433 \end_inset
17434
17435 =
17436 \begin_inset Quotes erd
17437 \end_inset
17438
17439
17440 \begin_inset Quotes erd
17441 \end_inset
17442
17443 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17444 \begin_inset space ~
17445 \end_inset
17446
17447 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17448 す.
17449 \end_layout
17450
17451 \begin_layout Description
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456 Within
17457 \end_layout
17458
17459 \end_inset
17460
17461  [
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 文字列
17467 \end_layout
17468
17469 \end_inset
17470
17471 =
17472 \begin_inset Quotes erd
17473 \end_inset
17474
17475
17476 \begin_inset Quotes erd
17477 \end_inset
17478
17479 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17480 \begin_inset Flex Code
17481 status collapsed
17482
17483 \begin_layout Plain Layout
17484 subsection
17485 \end_layout
17486
17487 \end_inset
17488
17489
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494 section
17495 \end_layout
17496
17497 \end_inset
17498
17499 毎に番号がリセットされます.
17500 \end_layout
17501
17502 \begin_layout Subsection
17503 フォント指定
17504 \begin_inset CommandInset label
17505 LatexCommand label
17506 name "subsec:フォント指定"
17507
17508 \end_inset
17509
17510
17511 \end_layout
17512
17513 \begin_layout Standard
17514 フォント指定は,以下のような形を取ります.
17515 \end_layout
17516
17517 \begin_layout LyX-Code
17518 Font 
17519 \family roman
17520 \emph on
17521 または
17522 \family default
17523 \emph default
17524  LabelFont 
17525 \family roman
17526 \emph on
17527 または
17528 \family default
17529 \emph default
17530  DefaultFont
17531 \end_layout
17532
17533 \begin_layout LyX-Code
17534  ...
17535 \end_layout
17536
17537 \begin_layout LyX-Code
17538 EndFont
17539 \end_layout
17540
17541 \begin_layout Standard
17542 以下のコマンドを使用することができます.
17543 \end_layout
17544
17545 \begin_layout Description
17546 \begin_inset Flex Code
17547 status collapsed
17548
17549 \begin_layout Plain Layout
17550 Color
17551 \end_layout
17552
17553 \end_inset
17554
17555  [
17556 \begin_inset Flex Code
17557 status collapsed
17558
17559 \begin_layout Plain Layout
17560
17561 \emph on
17562 none
17563 \end_layout
17564
17565 \end_inset
17566
17567
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 black
17573 \end_layout
17574
17575 \end_inset
17576
17577
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 white
17583 \end_layout
17584
17585 \end_inset
17586
17587
17588 \begin_inset Flex Code
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592 red
17593 \end_layout
17594
17595 \end_inset
17596
17597
17598 \begin_inset Flex Code
17599 status collapsed
17600
17601 \begin_layout Plain Layout
17602 green
17603 \end_layout
17604
17605 \end_inset
17606
17607
17608 \begin_inset Flex Code
17609 status collapsed
17610
17611 \begin_layout Plain Layout
17612 blue
17613 \end_layout
17614
17615 \end_inset
17616
17617
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 cyan
17623 \end_layout
17624
17625 \end_inset
17626
17627
17628 \begin_inset Flex Code
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632 magenta
17633 \end_layout
17634
17635 \end_inset
17636
17637
17638 \begin_inset Flex Code
17639 status collapsed
17640
17641 \begin_layout Plain Layout
17642 yellow
17643 \end_layout
17644
17645 \end_inset
17646
17647
17648 \begin_inset Flex Code
17649 status collapsed
17650
17651 \begin_layout Plain Layout
17652 brown
17653 \end_layout
17654
17655 \end_inset
17656
17657
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 darkgray
17663 \end_layout
17664
17665 \end_inset
17666
17667
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 gray
17673 \end_layout
17674
17675 \end_inset
17676
17677
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 lightgray
17683 \end_layout
17684
17685 \end_inset
17686
17687
17688 \begin_inset Flex Code
17689 status collapsed
17690
17691 \begin_layout Plain Layout
17692 lime
17693 \end_layout
17694
17695 \end_inset
17696
17697
17698 \begin_inset Flex Code
17699 status collapsed
17700
17701 \begin_layout Plain Layout
17702 orange
17703 \end_layout
17704
17705 \end_inset
17706
17707
17708 \begin_inset Flex Code
17709 status collapsed
17710
17711 \begin_layout Plain Layout
17712 olive
17713 \end_layout
17714
17715 \end_inset
17716
17717
17718 \begin_inset Flex Code
17719 status collapsed
17720
17721 \begin_layout Plain Layout
17722 pink
17723 \end_layout
17724
17725 \end_inset
17726
17727
17728 \begin_inset Flex Code
17729 status collapsed
17730
17731 \begin_layout Plain Layout
17732 purple
17733 \end_layout
17734
17735 \end_inset
17736
17737
17738 \begin_inset Flex Code
17739 status collapsed
17740
17741 \begin_layout Plain Layout
17742 teal
17743 \end_layout
17744
17745 \end_inset
17746
17747
17748 \begin_inset Flex Code
17749 status collapsed
17750
17751 \begin_layout Plain Layout
17752 violet
17753 \end_layout
17754
17755 \end_inset
17756
17757 ]
17758 \end_layout
17759
17760 \begin_layout Description
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 Family
17766 \end_layout
17767
17768 \end_inset
17769
17770  [
17771 \emph on
17772
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 Roman
17778 \end_layout
17779
17780 \end_inset
17781
17782
17783 \emph default
17784
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 Sans
17790 \end_layout
17791
17792 \end_inset
17793
17794
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 Typewriter
17800 \end_layout
17801
17802 \end_inset
17803
17804
17805 \end_layout
17806
17807 \begin_layout Description
17808 \begin_inset Flex Code
17809 status collapsed
17810
17811 \begin_layout Plain Layout
17812 Misc
17813 \end_layout
17814
17815 \end_inset
17816
17817  [
17818 \begin_inset Flex Code
17819 status collapsed
17820
17821 \begin_layout Plain Layout
17822 文字列
17823 \end_layout
17824
17825 \end_inset
17826
17827 ] 有効な引数は,
17828 \begin_inset Flex Code
17829 status collapsed
17830
17831 \begin_layout Plain Layout
17832 emph
17833 \end_layout
17834
17835 \end_inset
17836
17837
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 noun
17843 \end_layout
17844
17845 \end_inset
17846
17847
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852 strikeout
17853 \end_layout
17854
17855 \end_inset
17856
17857
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 underbar
17863 \end_layout
17864
17865 \end_inset
17866
17867
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 uuline
17873 \end_layout
17874
17875 \end_inset
17876
17877
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 uwave
17883 \end_layout
17884
17885 \end_inset
17886
17887
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 no_emph
17893 \end_layout
17894
17895 \end_inset
17896
17897
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 no_noun
17903 \end_layout
17904
17905 \end_inset
17906
17907
17908 \begin_inset Flex Code
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912 no_strikeout
17913 \end_layout
17914
17915 \end_inset
17916
17917
17918 \begin_inset Flex Code
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 no_bar
17923 \end_layout
17924
17925 \end_inset
17926
17927
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 no_uuline
17933 \end_layout
17934
17935 \end_inset
17936
17937
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 no_uwave
17943 \end_layout
17944
17945 \end_inset
17946
17947 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17948 \begin_inset Newline newline
17949 \end_inset
17950
17951 たとえば,
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 emph
17957 \end_layout
17958
17959 \end_inset
17960
17961 は強調を有効にし,
17962 \begin_inset Flex Code
17963 status collapsed
17964
17965 \begin_layout Plain Layout
17966 no_emph
17967 \end_layout
17968
17969 \end_inset
17970
17971 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17972
17973 \begin_inset Flex Code
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977 no_emph
17978 \end_layout
17979
17980 \end_inset
17981
17982 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17983 \end_layout
17984
17985 \begin_layout Description
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 Series
17991 \end_layout
17992
17993 \end_inset
17994
17995  [
17996 \emph on
17997
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 Medium
18003 \end_layout
18004
18005 \end_inset
18006
18007
18008 \emph default
18009
18010 \begin_inset Flex Code
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014 Bold
18015 \end_layout
18016
18017 \end_inset
18018
18019
18020 \end_layout
18021
18022 \begin_layout Description
18023 \begin_inset Flex Code
18024 status collapsed
18025
18026 \begin_layout Plain Layout
18027 Shape
18028 \end_layout
18029
18030 \end_inset
18031
18032  [
18033 \emph on
18034
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 Up
18040 \end_layout
18041
18042 \end_inset
18043
18044
18045 \emph default
18046
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 Italic
18052 \end_layout
18053
18054 \end_inset
18055
18056
18057 \begin_inset Flex Code
18058 status collapsed
18059
18060 \begin_layout Plain Layout
18061 SmallCaps
18062 \end_layout
18063
18064 \end_inset
18065
18066
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 Slanted
18072 \end_layout
18073
18074 \end_inset
18075
18076
18077 \end_layout
18078
18079 \begin_layout Description
18080 \begin_inset Flex Code
18081 status collapsed
18082
18083 \begin_layout Plain Layout
18084 Size
18085 \end_layout
18086
18087 \end_inset
18088
18089  [
18090 \begin_inset Flex Code
18091 status collapsed
18092
18093 \begin_layout Plain Layout
18094 tiny
18095 \end_layout
18096
18097 \end_inset
18098
18099
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104 small
18105 \end_layout
18106
18107 \end_inset
18108
18109
18110 \begin_inset Flex Code
18111 status collapsed
18112
18113 \begin_layout Plain Layout
18114
18115 \emph on
18116 normal
18117 \end_layout
18118
18119 \end_inset
18120
18121
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 large
18127 \end_layout
18128
18129 \end_inset
18130
18131
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136 larger
18137 \end_layout
18138
18139 \end_inset
18140
18141
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146 largest
18147 \end_layout
18148
18149 \end_inset
18150
18151
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 huge
18157 \end_layout
18158
18159 \end_inset
18160
18161
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 giant
18167 \end_layout
18168
18169 \end_inset
18170
18171 ]
18172 \end_layout
18173
18174 \begin_layout Subsection
18175 \begin_inset CommandInset label
18176 LatexCommand label
18177 name "subsec:引用書式指定"
18178
18179 \end_inset
18180
18181 引用書式指定
18182 \end_layout
18183
18184 \begin_layout Standard
18185 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18186 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18187 \begin_inset Flex Code
18188 status collapsed
18189
18190 \begin_layout Plain Layout
18191 CiteFormat
18192 \end_layout
18193
18194 \end_inset
18195
18196 ブロックが使用されています.このブロックは,以下のような形をしています.
18197 \end_layout
18198
18199 \begin_layout LyX-Code
18200 CiteFormat
18201 \end_layout
18202
18203 \begin_layout LyX-Code
18204  article ...
18205 \end_layout
18206
18207 \begin_layout LyX-Code
18208  book ...
18209 \end_layout
18210
18211 \begin_layout LyX-Code
18212 End
18213 \end_layout
18214
18215 \begin_layout Standard
18216 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18217 ファイル中に存在し
18218 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18219 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18220 は,いくつかの書式を
18221 \begin_inset Flex Code
18222 status collapsed
18223
18224 \begin_layout Plain Layout
18225 stdciteformats.inc
18226 \end_layout
18227
18228 \end_inset
18229
18230 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18231 文書クラスにインクルードされています.
18232 \end_layout
18233
18234 \begin_layout Standard
18235 この定義は,Bib\SpecialChar TeX
18236 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 %author%
18242 \end_layout
18243
18244 \end_inset
18245
18246 のように
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 %
18252 \end_layout
18253
18254 \end_inset
18255
18256 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18257 \end_layout
18258
18259 \begin_layout LyX-Code
18260 misc %author%, 
18261 \begin_inset Quotes eld
18262 \end_inset
18263
18264 %title%
18265 \begin_inset Quotes erd
18266 \end_inset
18267
18268
18269 \end_layout
18270
18271 \begin_layout Standard
18272 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18273 \end_layout
18274
18275 \begin_layout Standard
18276 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 {%volume%[[vol.
18282 \begin_inset space ~
18283 \end_inset
18284
18285 %volume%]]}
18286 \end_layout
18287
18288 \end_inset
18289
18290 のように,条件付きの構成を使用することができます.これは,
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 volume
18296 \end_layout
18297
18298 \end_inset
18299
18300 が存在するならば,「vol.
18301 \begin_inset space ~
18302 \end_inset
18303
18304 」とvolumeキーを出力するという意味です.また,
18305 \begin_inset Newline newline
18306 \end_inset
18307
18308
18309 \begin_inset Flex Code
18310 status collapsed
18311
18312 \begin_layout Plain Layout
18313 {%author%[[%author%]][[%editor%, ed.]]}
18314 \end_layout
18315
18316 \end_inset
18317
18318
18319 \begin_inset Newline newline
18320 \end_inset
18321
18322 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18323 \begin_inset Flex Code
18324 status collapsed
18325
18326 \begin_layout Plain Layout
18327 author
18328 \end_layout
18329
18330 \end_inset
18331
18332 キーが存在するならば出力され,そうでなければeditorキーと「,
18333 \begin_inset space ~
18334 \end_inset
18335
18336 ed.」が出力されます.ここでもキーは,
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 %
18342 \end_layout
18343
18344 \end_inset
18345
18346 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 [[
18352 \end_layout
18353
18354 \end_inset
18355
18356 」と「
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 ]]
18362 \end_layout
18363
18364 \end_inset
18365
18366 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18367 \end_layout
18368
18369 \begin_layout Standard
18370 もう一つ,定義中で使用することのできる文法として,
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 {!<i>!}
18376 \end_layout
18377
18378 \end_inset
18379
18380 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18381 グを出力させたくはありませんから,HTMLタグは「
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 {!
18387 \end_layout
18388
18389 \end_inset
18390
18391 」と「
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 !}
18397 \end_layout
18398
18399 \end_inset
18400
18401 」でくるんでやらなくてはならないのです.
18402 \end_layout
18403
18404 \begin_layout Standard
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409 CiteFormat
18410 \end_layout
18411
18412 \end_inset
18413
18414 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18415 \end_layout
18416
18417 \begin_layout LyX-Code
18418 !quotetitle 
18419 \begin_inset Quotes eld
18420 \end_inset
18421
18422 %title%
18423 \begin_inset Quotes erd
18424 \end_inset
18425
18426
18427 \end_layout
18428
18429 \begin_layout Standard
18430 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18431 \begin_inset Flex Code
18432 status collapsed
18433
18434 \begin_layout Plain Layout
18435 %!quotetitle%
18436 \end_layout
18437
18438 \end_inset
18439
18440 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18441 は,
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 %!quotetitle%
18447 \end_layout
18448
18449 \end_inset
18450
18451 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18452 \end_layout
18453
18454 \begin_layout LyX-Code
18455 !funfun %funfun%
18456 \end_layout
18457
18458 \begin_layout Standard
18459 のようなことはしないでください.\SpecialChar LyX
18460 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18461 \end_layout
18462
18463 \begin_layout Standard
18464 特殊な定義の二つめは,
18465 \end_layout
18466
18467 \begin_layout LyX-Code
18468 _pptext pp.
18469 \end_layout
18470
18471 \begin_layout Standard
18472 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477 %_pptext%
18478 \end_layout
18479
18480 \end_inset
18481
18482 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18483 \begin_inset Flex Code
18484 status collapsed
18485
18486 \begin_layout Plain Layout
18487 stdciteformats.inc
18488 \end_layout
18489
18490 \end_inset
18491
18492 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18493 \end_layout
18494
18495 \begin_layout Standard
18496 以下は,これらの機能を全て使った例です.
18497 \begin_inset VSpace defskip
18498 \end_inset
18499
18500
18501 \end_layout
18502
18503 \begin_layout Standard
18504 \noindent
18505
18506 \family typewriter
18507 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18508 \end_layout
18509
18510 \begin_layout Standard
18511 \begin_inset VSpace defskip
18512 \end_inset
18513
18514 これは,
18515 \begin_inset Flex Code
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 author
18520 \end_layout
18521
18522 \end_inset
18523
18524 キーが定義されているならば,著者とコンマを出力し,
18525 \begin_inset Flex Code
18526 status collapsed
18527
18528 \begin_layout Plain Layout
18529 author
18530 \end_layout
18531
18532 \end_inset
18533
18534 キーが定義されておらず,
18535 \begin_inset Flex Code
18536 status collapsed
18537
18538 \begin_layout Plain Layout
18539 editor
18540 \end_layout
18541
18542 \end_inset
18543
18544 キーが定義されているならば,編集者名の後に
18545 \begin_inset Flex Code
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 _edtext
18550 \end_layout
18551
18552 \end_inset
18553
18554 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 stdciteformats.inc
18560 \end_layout
18561
18562 \end_inset
18563
18564 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18565 \end_layout
18566
18567 \begin_layout Section
18568 \begin_inset CommandInset label
18569 LatexCommand label
18570 name "sec:XHTML出力のタグ"
18571
18572 \end_inset
18573
18574 XHTML出力のタグ
18575 \end_layout
18576
18577 \begin_layout Standard
18578 \SpecialChar LaTeX
18579 やDocBookと同様,\SpecialChar LyX
18580 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18581 は適切な既定値を提供し,前述したように,他のレイアウト
18582 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18583 は,章様式の
18584 \begin_inset Flex Code
18585 status collapsed
18586
18587 \begin_layout Plain Layout
18588 Font
18589 \end_layout
18590
18591 \end_inset
18592
18593 宣言で提供されている情報を利用しようと試みます.
18594 \end_layout
18595
18596 \begin_layout Standard
18597 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18598 ,これが必要になる場合もあるので,\SpecialChar LyX
18599 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18600 \end_layout
18601
18602 \begin_layout Standard
18603 様式宣言や差込枠宣言の外で使用することができるタグに,
18604 \begin_inset Flex Code
18605 status collapsed
18606
18607 \begin_layout Plain Layout
18608 HTMLPreamble
18609 \end_layout
18610
18611 \end_inset
18612
18613
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 AddToHTMLPreamble
18619 \end_layout
18620
18621 \end_inset
18622
18623 の2つがあることに注意してください.これらの詳細については,
18624 \begin_inset CommandInset ref
18625 LatexCommand ref
18626 reference "subsec:汎用テキストクラスパラメータ"
18627
18628 \end_inset
18629
18630 をご覧ください.
18631 \end_layout
18632
18633 \begin_layout Subsection
18634 \begin_inset CommandInset label
18635 LatexCommand label
18636 name "subsec:段落様式-XHTML"
18637
18638 \end_inset
18639
18640 段落様式
18641 \end_layout
18642
18643 \begin_layout Standard
18644 \SpecialChar LyX
18645 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18646 \begin_inset Flex Code
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650 \SpecialChar LaTeX
18651 Type
18652 \end_layout
18653
18654 \end_inset
18655
18656 タグの内容によって決定されます.
18657 \end_layout
18658
18659 \begin_layout Standard
18660 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18661 \end_layout
18662
18663 \begin_layout LyX-Code
18664 <tag attr=
18665 \begin_inset Quotes erd
18666 \end_inset
18667
18668 value
18669 \begin_inset Quotes erd
18670 \end_inset
18671
18672 >
18673 \end_layout
18674
18675 \begin_layout LyX-Code
18676 <labeltag attr=
18677 \begin_inset Quotes erd
18678 \end_inset
18679
18680 value
18681 \begin_inset Quotes erd
18682 \end_inset
18683
18684 >ラベル</labeltag>
18685 \end_layout
18686
18687 \begin_layout LyX-Code
18688 段落の内容
18689 \end_layout
18690
18691 \begin_layout LyX-Code
18692 </tag>
18693 \end_layout
18694
18695 \begin_layout Standard
18696 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18697 \end_layout
18698
18699 \begin_layout Standard
18700 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18701 \end_layout
18702
18703 \begin_layout LyX-Code
18704 <tag attr=
18705 \begin_inset Quotes erd
18706 \end_inset
18707
18708 value
18709 \begin_inset Quotes erd
18710 \end_inset
18711
18712 >
18713 \end_layout
18714
18715 \begin_layout LyX-Code
18716 <itemtag attr=
18717 \begin_inset Quotes erd
18718 \end_inset
18719
18720 value
18721 \begin_inset Quotes erd
18722 \end_inset
18723
18724 ><labeltag attr=
18725 \begin_inset Quotes erd
18726 \end_inset
18727
18728 value
18729 \begin_inset Quotes erd
18730 \end_inset
18731
18732 >環境ラベル</labeltag>最初の段落.
18733 \end_layout
18734
18735 \begin_layout LyX-Code
18736 </itemtag>
18737 \end_layout
18738
18739 \begin_layout LyX-Code
18740 <itemtag>二つめの段落.</itemtag>
18741 \end_layout
18742
18743 \begin_layout LyX-Code
18744 </tag>
18745 \end_layout
18746
18747 \begin_layout Standard
18748 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18749 \end_layout
18750
18751 \begin_layout Standard
18752 リストに関しては,次のような形になります.
18753 \end_layout
18754
18755 \begin_layout LyX-Code
18756 <tag attr=
18757 \begin_inset Quotes erd
18758 \end_inset
18759
18760 value
18761 \begin_inset Quotes erd
18762 \end_inset
18763
18764 >
18765 \end_layout
18766
18767 \begin_layout LyX-Code
18768 <itemtag attr=
18769 \begin_inset Quotes erd
18770 \end_inset
18771
18772 value
18773 \begin_inset Quotes erd
18774 \end_inset
18775
18776 ><labeltag attr=
18777 \begin_inset Quotes erd
18778 \end_inset
18779
18780 value
18781 \begin_inset Quotes erd
18782 \end_inset
18783
18784 >リストのラベル</labeltag>最初の項目.</itemtag>
18785 \end_layout
18786
18787 \begin_layout LyX-Code
18788 <itemtag attr=
18789 \begin_inset Quotes erd
18790 \end_inset
18791
18792 value
18793 \begin_inset Quotes erd
18794 \end_inset
18795
18796 ><labeltag attr=
18797 \begin_inset Quotes erd
18798 \end_inset
18799
18800 value
18801 \begin_inset Quotes erd
18802 \end_inset
18803
18804 >リストのラベル</labeltag>二つめの項目.</itemtag>
18805 \end_layout
18806
18807 \begin_layout LyX-Code
18808 </tag>
18809 \end_layout
18810
18811 \begin_layout LyX-Code
18812
18813 \end_layout
18814
18815 \begin_layout LyX-Code
18816 <tag attr=
18817 \begin_inset Quotes erd
18818 \end_inset
18819
18820 value
18821 \begin_inset Quotes erd
18822 \end_inset
18823
18824 >
18825 \end_layout
18826
18827 \begin_layout LyX-Code
18828 <labeltag attr=
18829 \begin_inset Quotes erd
18830 \end_inset
18831
18832 value
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836 >リストのラベル</labeltag><itemtag attr=
18837 \begin_inset Quotes erd
18838 \end_inset
18839
18840 value
18841 \begin_inset Quotes erd
18842 \end_inset
18843
18844 >最初の項目.</itemtag>
18845 \end_layout
18846
18847 \begin_layout LyX-Code
18848 <labeltag attr=
18849 \begin_inset Quotes erd
18850 \end_inset
18851
18852 value
18853 \begin_inset Quotes erd
18854 \end_inset
18855
18856 >リストのラベル</labeltag><itemtag attr=
18857 \begin_inset Quotes erd
18858 \end_inset
18859
18860 value
18861 \begin_inset Quotes erd
18862 \end_inset
18863
18864 >二つめの項目</itemtag>
18865 \end_layout
18866
18867 \begin_layout LyX-Code
18868 </tag>
18869 \end_layout
18870
18871 \begin_layout Standard
18872 ここで
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 labeltag
18878 \end_layout
18879
18880 \end_inset
18881
18882
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 itemtag
18888 \end_layout
18889
18890 \end_inset
18891
18892 の順序が違っていることに注意してください.どちらの順序になるかは,
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 HTMLLabelFirst
18898 \end_layout
18899
18900 \end_inset
18901
18902 の設定に依存します.もし
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 HTMLLabelFirst
18908 \end_layout
18909
18910 \end_inset
18911
18912 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18913 \end_layout
18914
18915 \begin_layout Standard
18916 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18917 は適切な既定値を生成
18918 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18919 でここにあるものと考えてください.
18920 \end_layout
18921
18922 \begin_layout Description
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 HTMLAttr
18928 \end_layout
18929
18930 \end_inset
18931
18932  [
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 文字列
18938 \end_layout
18939
18940 \end_inset
18941
18942 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 class=`mydiv'
18948 \end_layout
18949
18950 \end_inset
18951
18952 」のようなものです.既定においては,\SpecialChar LyX
18953 は「
18954 \begin_inset Flex Code
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958 class=`レイアウト名'
18959 \end_layout
18960
18961 \end_inset
18962
18963 」と出力します.ここで
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 レイアウト名
18969 \end_layout
18970
18971 \end_inset
18972
18973 は,レイアウトの\SpecialChar LyX
18974 名であり,chapterのように小文字で記述します.
18975 \end_layout
18976
18977 \begin_layout Description
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 HTMLForceCSS
18983 \end_layout
18984
18985 \end_inset
18986
18987  [
18988 \begin_inset Flex Code
18989 status collapsed
18990
18991 \begin_layout Plain Layout
18992
18993 \emph on
18994 0
18995 \emph default
18996 ,1
18997 \end_layout
18998
18999 \end_inset
19000
19001 ] 
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006 HTMLStyle
19007 \end_layout
19008
19009 \end_inset
19010
19011 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19012 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 1
19018 \end_layout
19019
19020 \end_inset
19021
19022 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 0
19028 \end_layout
19029
19030 \end_inset
19031
19032 です.
19033 \end_layout
19034
19035 \begin_layout Description
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 HTMLItem
19041 \end_layout
19042
19043 \end_inset
19044
19045  [
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 文字列
19051 \end_layout
19052
19053 \end_inset
19054
19055 ] 環境の段落に使用されるタグ.上記各例の
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 itemtag
19061 \end_layout
19062
19063 \end_inset
19064
19065 を置き換えます.既定値は
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 div
19071 \end_layout
19072
19073 \end_inset
19074
19075 です.
19076 \end_layout
19077
19078 \begin_layout Description
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 HTMLItemAttr
19084 \end_layout
19085
19086 \end_inset
19087
19088  [
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 文字列
19094 \end_layout
19095
19096 \end_inset
19097
19098 ] itemタグの属性.既定値は
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 class=`レイアウト名_item'
19104 \end_layout
19105
19106 \end_inset
19107
19108 です.ここには,様式情報は含まれては
19109 \emph on
19110 なりません
19111 \emph default
19112 .その目的のためには,
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 HTMLStyle
19118 \end_layout
19119
19120 \end_inset
19121
19122 を使用してください.
19123 \end_layout
19124
19125 \begin_layout Description
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 HTMLLabel
19131 \end_layout
19132
19133 \end_inset
19134
19135  [
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 文字列
19141 \end_layout
19142
19143 \end_inset
19144
19145 ] 段落と項目ラベルに使用されるタグ.上記各例の
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 labeltag
19151 \end_layout
19152
19153 \end_inset
19154
19155 を置き換えます.
19156 \begin_inset Flex Code
19157 status collapsed
19158
19159 \begin_layout Plain Layout
19160 LabelType
19161 \end_layout
19162
19163 \end_inset
19164
19165
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 Top_Environment
19171 \end_layout
19172
19173 \end_inset
19174
19175
19176 \begin_inset Flex Code
19177 status collapsed
19178
19179 \begin_layout Plain Layout
19180 Centered_Top_Environment
19181 \end_layout
19182
19183 \end_inset
19184
19185 の時は,既定値は
19186 \begin_inset Flex Code
19187 status collapsed
19188
19189 \begin_layout Plain Layout
19190 div
19191 \end_layout
19192
19193 \end_inset
19194
19195 ですが,それ以外の時の既定値は
19196 \begin_inset Flex Code
19197 status collapsed
19198
19199 \begin_layout Plain Layout
19200 span
19201 \end_layout
19202
19203 \end_inset
19204
19205 です.
19206 \end_layout
19207
19208 \begin_layout Description
19209 \begin_inset Flex Code
19210 status collapsed
19211
19212 \begin_layout Plain Layout
19213 HTMLLabelAttr
19214 \end_layout
19215
19216 \end_inset
19217
19218  [
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 文字列
19224 \end_layout
19225
19226 \end_inset
19227
19228 ] labelタグの属性.既定値は
19229 \begin_inset Flex Code
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233 class=`レイアウト名_label'
19234 \end_layout
19235
19236 \end_inset
19237
19238 です.ここには,様式情報は含まれては
19239 \emph on
19240 なりません
19241 \emph default
19242 .その目的のためには,
19243 \begin_inset Flex Code
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247 HTMLStyle
19248 \end_layout
19249
19250 \end_inset
19251
19252 を使用してください.
19253 \end_layout
19254
19255 \begin_layout Description
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 HTMLLabelFirst
19261 \end_layout
19262
19263 \end_inset
19264
19265  [
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270
19271 \emph on
19272 0
19273 \emph default
19274 ,1
19275 \end_layout
19276
19277 \end_inset
19278
19279 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19280 tion環境の中で,
19281 \begin_inset Flex Code
19282 status collapsed
19283
19284 \begin_layout Plain Layout
19285 `<dt>\SpecialChar ldots
19286 </dt><dd>\SpecialChar ldots
19287 </dd>
19288 \end_layout
19289
19290 \end_inset
19291
19292 という形を得るために使用されます.既定値は
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 0
19298 \end_layout
19299
19300 \end_inset
19301
19302 で,labelタグはitemタグの中に出力されます.
19303 \end_layout
19304
19305 \begin_layout Description
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 HTMLPreamble
19311 \end_layout
19312
19313 \end_inset
19314
19315  この様式が使用されたときに,
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 <head>
19321 \end_layout
19322
19323 \end_inset
19324
19325 セクションに出力される情報.これは,たとえば,
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 onclick
19331 \end_layout
19332
19333 \end_inset
19334
19335 ハンドラを定義するために
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 <script>
19341 \end_layout
19342
19343 \end_inset
19344
19345 ブロックをインクルードするのに使用することができます.
19346 \end_layout
19347
19348 \begin_layout Description
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353 HTMLStyle
19354 \end_layout
19355
19356 \end_inset
19357
19358   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19359 \begin_inset Flex Code
19360 status collapsed
19361
19362 \begin_layout Plain Layout
19363 <style>
19364 \end_layout
19365
19366 \end_inset
19367
19368 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373 EndHTMLStyle
19374 \end_layout
19375
19376 \end_inset
19377
19378 で閉じなくてはなりません.
19379 \end_layout
19380
19381 \begin_layout Description
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 HTMLTag
19387 \end_layout
19388
19389 \end_inset
19390
19391  [
19392 \begin_inset Flex Code
19393 status collapsed
19394
19395 \begin_layout Plain Layout
19396 文字列
19397 \end_layout
19398
19399 \end_inset
19400
19401 ] 主幹ラベルに使用されるタグ.上記各例の
19402 \begin_inset Flex Code
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 tag
19407 \end_layout
19408
19409 \end_inset
19410
19411 を置き換えます.既定値は
19412 \begin_inset Flex Code
19413 status collapsed
19414
19415 \begin_layout Plain Layout
19416 div
19417 \end_layout
19418
19419 \end_inset
19420
19421 です.
19422 \end_layout
19423
19424 \begin_layout Description
19425 \begin_inset Flex Code
19426 status collapsed
19427
19428 \begin_layout Plain Layout
19429 HTMLTitle
19430 \end_layout
19431
19432 \end_inset
19433
19434  [
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439
19440 \emph on
19441 0
19442 \emph default
19443 ,1
19444 \end_layout
19445
19446 \end_inset
19447
19448 ] この様式が,XHTMLファイルの
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453 <title>
19454 \end_layout
19455
19456 \end_inset
19457
19458 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19459 \begin_inset Flex Code
19460 status collapsed
19461
19462 \begin_layout Plain Layout
19463 stdtitle.inc
19464 \end_layout
19465
19466 \end_inset
19467
19468 ファイルでは,
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 title
19474 \end_layout
19475
19476 \end_inset
19477
19478 環境のこの項目を真に設定しています.
19479 \end_layout
19480
19481 \begin_layout Subsection
19482 差込枠レイアウトXHTML
19483 \end_layout
19484
19485 \begin_layout Standard
19486 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19487 \begin_inset Foot
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19492 ん.
19493 \end_layout
19494
19495 \end_inset
19496
19497 .ここでも,\SpecialChar LyX
19498 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19499 \end_layout
19500
19501 \begin_layout Standard
19502 \SpecialChar LyX
19503 が差込枠用に出力するXHTMLは,以下の形を取ります.
19504 \end_layout
19505
19506 \begin_layout LyX-Code
19507 <tag attr=
19508 \begin_inset Quotes erd
19509 \end_inset
19510
19511 value
19512 \begin_inset Quotes erd
19513 \end_inset
19514
19515 >
19516 \end_layout
19517
19518 \begin_layout LyX-Code
19519 <labeltag>ラベル</labeltag>
19520 \end_layout
19521
19522 \begin_layout LyX-Code
19523 <innertag attr=
19524 \begin_inset Quotes erd
19525 \end_inset
19526
19527 value
19528 \begin_inset Quotes erd
19529 \end_inset
19530
19531 >差込枠の内容.</innertag>
19532 \end_layout
19533
19534 \begin_layout LyX-Code
19535 </tag>
19536 \end_layout
19537
19538 \begin_layout Standard
19539 差込枠が多段落を許可している—つまり
19540 \begin_inset Flex Code
19541 status collapsed
19542
19543 \begin_layout Plain Layout
19544 MultiPar
19545 \end_layout
19546
19547 \end_inset
19548
19549 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19550 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19551 \begin_inset Flex Code
19552 status collapsed
19553
19554 \begin_layout Plain Layout
19555 span
19556 \end_layout
19557
19558 \end_inset
19559
19560 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19561 す.
19562 \end_layout
19563
19564 \begin_layout Description
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 HTMLAttr
19570 \end_layout
19571
19572 \end_inset
19573
19574  [
19575 \begin_inset Flex Code
19576 status collapsed
19577
19578 \begin_layout Plain Layout
19579 文字列
19580 \end_layout
19581
19582 \end_inset
19583
19584 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19585 \begin_inset Flex Code
19586 status collapsed
19587
19588 \begin_layout Plain Layout
19589 class=`myinset' onclick=`\SpecialChar ldots
19590 '
19591 \end_layout
19592
19593 \end_inset
19594
19595 」のようなものです.既定においては,\SpecialChar LyX
19596 は「
19597 \begin_inset Flex Code
19598 status collapsed
19599
19600 \begin_layout Plain Layout
19601 class=`差込枠名'
19602 \end_layout
19603
19604 \end_inset
19605
19606 」と出力します.ここで
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611 差込枠名
19612 \end_layout
19613
19614 \end_inset
19615
19616 は,差込枠の\SpecialChar LyX
19617 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19618 \end_layout
19619
19620 \begin_layout Description
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625 HTMLForceCSS
19626 \end_layout
19627
19628 \end_inset
19629
19630  [
19631 \begin_inset Flex Code
19632 status collapsed
19633
19634 \begin_layout Plain Layout
19635
19636 \emph on
19637 0
19638 \emph default
19639 ,1
19640 \end_layout
19641
19642 \end_inset
19643
19644 ] 
19645 \begin_inset Flex Code
19646 status collapsed
19647
19648 \begin_layout Plain Layout
19649 HTMLStyle
19650 \end_layout
19651
19652 \end_inset
19653
19654 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19655 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 1
19661 \end_layout
19662
19663 \end_inset
19664
19665 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 0
19671 \end_layout
19672
19673 \end_inset
19674
19675 です.
19676 \end_layout
19677
19678 \begin_layout Description
19679 \begin_inset Flex Code
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 HTMLInnerAttr
19684 \end_layout
19685
19686 \end_inset
19687
19688  [
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 文字列
19694 \end_layout
19695
19696 \end_inset
19697
19698 ] innerタグの属性.既定値は
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703 class=`差込枠名_inner'
19704 \end_layout
19705
19706 \end_inset
19707
19708 です.
19709 \end_layout
19710
19711 \begin_layout Description
19712 \begin_inset Flex Code
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 HTMLInnerTag
19717 \end_layout
19718
19719 \end_inset
19720
19721  [
19722 \begin_inset Flex Code
19723 status collapsed
19724
19725 \begin_layout Plain Layout
19726 文字列
19727 \end_layout
19728
19729 \end_inset
19730
19731 ] innerタグです.上記各例の
19732 \begin_inset Flex Code
19733 status collapsed
19734
19735 \begin_layout Plain Layout
19736 innertag
19737 \end_layout
19738
19739 \end_inset
19740
19741 を置き換えます.既定値はなしです.
19742 \end_layout
19743
19744 \begin_layout Description
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 HTMLIsBlock
19750 \end_layout
19751
19752 \end_inset
19753
19754  [
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 0,
19760 \emph on
19761 1
19762 \end_layout
19763
19764 \end_inset
19765
19766 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19767 \end_layout
19768
19769 \begin_layout Description
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774 HTMLLabel
19775 \end_layout
19776
19777 \end_inset
19778
19779  [
19780 \begin_inset Flex Code
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 文字列
19785 \end_layout
19786
19787 \end_inset
19788
19789 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19790 \begin_inset Flex Code
19791 status collapsed
19792
19793 \begin_layout Plain Layout
19794
19795 \backslash
19796 arabic{footnote}
19797 \end_layout
19798
19799 \end_inset
19800
19801 など.これは非必須であり,既定値はありません.
19802 \end_layout
19803
19804 \begin_layout Description
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 HTMLPreamble
19810 \end_layout
19811
19812 \end_inset
19813
19814  この様式が使用されたときに,
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 <head>
19820 \end_layout
19821
19822 \end_inset
19823
19824 セクションに出力される情報.これは,たとえば,
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 onclick
19830 \end_layout
19831
19832 \end_inset
19833
19834 ハンドラを定義するために
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839 <script>
19840 \end_layout
19841
19842 \end_inset
19843
19844 ブロックをインクルードするのに使用することができます.
19845 \end_layout
19846
19847 \begin_layout Description
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 HTMLStyle
19853 \end_layout
19854
19855 \end_inset
19856
19857   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 <style>
19863 \end_layout
19864
19865 \end_inset
19866
19867 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19868 \end_layout
19869
19870 \begin_layout Description
19871 \begin_inset Flex Code
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875 HTMLTag
19876 \end_layout
19877
19878 \end_inset
19879
19880  [
19881 \begin_inset Flex Code
19882 status collapsed
19883
19884 \begin_layout Plain Layout
19885 文字列
19886 \end_layout
19887
19888 \end_inset
19889
19890 ] 主幹ラベルに使用されるタグ.上記各例の
19891 \begin_inset Flex Code
19892 status collapsed
19893
19894 \begin_layout Plain Layout
19895 tag
19896 \end_layout
19897
19898 \end_inset
19899
19900 を置き換えます.既定値は
19901 \begin_inset Flex Code
19902 status collapsed
19903
19904 \begin_layout Plain Layout
19905 MultiPar
19906 \end_layout
19907
19908 \end_inset
19909
19910 の設定に依存し,
19911 \begin_inset Flex Code
19912 status collapsed
19913
19914 \begin_layout Plain Layout
19915 MultiPar
19916 \end_layout
19917
19918 \end_inset
19919
19920 が真ならば
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 div
19926 \end_layout
19927
19928 \end_inset
19929
19930 ,偽ならば
19931 \begin_inset Flex Code
19932 status collapsed
19933
19934 \begin_layout Plain Layout
19935 span
19936 \end_layout
19937
19938 \end_inset
19939
19940 です.
19941 \end_layout
19942
19943 \begin_layout Subsection
19944 フロートXHTML
19945 \end_layout
19946
19947 \begin_layout Standard
19948 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19949 \end_layout
19950
19951 \begin_layout LyX-Code
19952 <tag attr=
19953 \begin_inset Quotes erd
19954 \end_inset
19955
19956 value
19957 \begin_inset Quotes erd
19958 \end_inset
19959
19960 >
19961 \end_layout
19962
19963 \begin_layout LyX-Code
19964 フロートの内容.
19965 \end_layout
19966
19967 \begin_layout LyX-Code
19968 </tag>
19969 \end_layout
19970
19971 \begin_layout Standard
19972 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19973 きます.
19974 \end_layout
19975
19976 \begin_layout Description
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 HTMLAttr
19982 \end_layout
19983
19984 \end_inset
19985
19986  [
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 文字列
19992 \end_layout
19993
19994 \end_inset
19995
19996 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 class=`myfloat' onclick=`\SpecialChar ldots
20002 '
20003 \end_layout
20004
20005 \end_inset
20006
20007 」のようなものです.既定においては,\SpecialChar LyX
20008 は「
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 class=`float フロート-フロート型'
20014 \end_layout
20015
20016 \end_inset
20017
20018 」と出力します.ここで
20019 \begin_inset Flex Code
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023 フロート型
20024 \end_layout
20025
20026 \end_inset
20027
20028 は,フロート宣言で定義された(
20029 \begin_inset CommandInset ref
20030 LatexCommand ref
20031 reference "subsec:フロート"
20032
20033 \end_inset
20034
20035 参照),この型のフロートの\SpecialChar LyX
20036 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
20037 \end_layout
20038
20039 \begin_layout Description
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 HTMLStyle
20045 \end_layout
20046
20047 \end_inset
20048
20049   このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 <style>
20055 \end_layout
20056
20057 \end_inset
20058
20059 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
20060 \end_layout
20061
20062 \begin_layout Description
20063 \begin_inset Flex Code
20064 status collapsed
20065
20066 \begin_layout Plain Layout
20067 HTMLTag
20068 \end_layout
20069
20070 \end_inset
20071
20072  [
20073 \begin_inset Flex Code
20074 status collapsed
20075
20076 \begin_layout Plain Layout
20077 文字列
20078 \end_layout
20079
20080 \end_inset
20081
20082 ] このフロートに使用されるタグ.上記各例の
20083 \begin_inset Flex Code
20084 status collapsed
20085
20086 \begin_layout Plain Layout
20087 tag
20088 \end_layout
20089
20090 \end_inset
20091
20092 を置き換えます.既定値は
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097 div
20098 \end_layout
20099
20100 \end_inset
20101
20102 であり,ほとんどの場合変更する必要はありません.
20103 \end_layout
20104
20105 \begin_layout Subsection
20106 書誌情報の整形
20107 \end_layout
20108
20109 \begin_layout Standard
20110 書誌情報は,
20111 \begin_inset Flex Code
20112 status collapsed
20113
20114 \begin_layout Plain Layout
20115 CiteFormat
20116 \end_layout
20117
20118 \end_inset
20119
20120 ブロックを使用して整形することができます.詳細については,
20121 \begin_inset CommandInset ref
20122 LatexCommand ref
20123 reference "subsec:引用書式指定"
20124
20125 \end_inset
20126
20127 を参照してください.
20128 \end_layout
20129
20130 \begin_layout Subsection
20131 \SpecialChar LyX
20132 が生成したCSS
20133 \end_layout
20134
20135 \begin_layout Standard
20136 \SpecialChar LyX
20137 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20138
20139 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20140 \end_layout
20141
20142 \begin_layout Standard
20143 \SpecialChar LyX
20144 は,現在のところ,
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 Font
20150 \end_layout
20151
20152 \end_inset
20153
20154 宣言で指定されている
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159 Family
20160 \end_layout
20161
20162 \end_inset
20163
20164
20165 \begin_inset Flex Code
20166 status collapsed
20167
20168 \begin_layout Plain Layout
20169 Series
20170 \end_layout
20171
20172 \end_inset
20173
20174
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 Shape
20180 \end_layout
20181
20182 \end_inset
20183
20184
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 Size
20190 \end_layout
20191
20192 \end_inset
20193
20194 を利用して,フォント情報についてのみCSSを自動生成します(
20195 \begin_inset CommandInset ref
20196 LatexCommand ref
20197 reference "subsec:フォント指定"
20198
20199 \end_inset
20200
20201 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20202 \begin_inset Flex Code
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206 Family Sans
20207 \end_layout
20208
20209 \end_inset
20210
20211 」は「
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 font-family: sans-serif
20217 \end_layout
20218
20219 \end_inset
20220
20221 」になります.\SpecialChar LyX
20222 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20223 \begin_inset Flex URL
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227
20228 src/FontInfo.cpp
20229 \end_layout
20230
20231 \end_inset
20232
20233
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 getSizeCSS()
20239 \end_layout
20240
20241 \end_inset
20242
20243 関数をご覧ください.
20244 \end_layout
20245
20246 \begin_layout Chapter
20247 外部素材を取り込む
20248 \begin_inset CommandInset label
20249 LatexCommand label
20250 name "chap:外部素材を取り込む"
20251
20252 \end_inset
20253
20254
20255 \end_layout
20256
20257 \begin_layout Standard
20258 \begin_inset Box Shadowbox
20259 position "t"
20260 hor_pos "c"
20261 has_inner_box 1
20262 inner_pos "t"
20263 use_parbox 0
20264 use_makebox 0
20265 width "100col%"
20266 special "none"
20267 height "1in"
20268 height_special "totalheight"
20269 thickness "0.4pt"
20270 separation "3pt"
20271 shadowsize "4pt"
20272 framecolor "black"
20273 backgroundcolor "none"
20274 status open
20275
20276 \begin_layout Plain Layout
20277 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20278 \end_layout
20279
20280 \end_inset
20281
20282
20283 \end_layout
20284
20285 \begin_layout Standard
20286 \SpecialChar LyX
20287 外部のソースから素材を使用する方法は,取扱説明書『
20288 \emph on
20289 埋込オブジェクト篇
20290 \emph default
20291 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20292 \end_layout
20293
20294 \begin_layout Section
20295 どのように機能するのか
20296 \end_layout
20297
20298 \begin_layout Standard
20299 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20300 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20301 は,Xfigの図や,様々
20302 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20303 \begin_inset Flex MenuItem
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 挿入\SpecialChar menuseparator
20308 ファイル\SpecialChar menuseparator
20309 外部素材
20310 \end_layout
20311
20312 \end_inset
20313
20314 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20315 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20316 の後の版に取り込むことができるようにしてくださることを希望します.
20317 \end_layout
20318
20319 \begin_layout Standard
20320 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20321 いることです.たとえば,
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 Xfig
20327 \end_layout
20328
20329 \end_inset
20330
20331 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 .fig
20337 \end_layout
20338
20339 \end_inset
20340
20341 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346 fig
20347 \end_layout
20348
20349 \end_inset
20350
20351 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20352 ファイルにそのままインクルードできるように,
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357 transfig
20358 \end_layout
20359
20360 \end_inset
20361
20362 を呼び出してPostScriptファイルを生成します.この場合には,
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 .fig
20368 \end_layout
20369
20370 \end_inset
20371
20372 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20373 \end_layout
20374
20375 \begin_layout Standard
20376 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20377 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20378 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20379 の外部素材マネジメントは
20380 ,\SpecialChar LyX
20381 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20382 \end_layout
20383
20384 \begin_layout Standard
20385 \SpecialChar LyX
20386 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20387 の場合には,\SpecialChar LyX
20388 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20389 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20390 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20391 できるようになるのです.
20392 \end_layout
20393
20394 \begin_layout Section
20395 外用ひな型設定ファイル
20396 \end_layout
20397
20398 \begin_layout Standard
20399 \SpecialChar LyX
20400 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20401 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20402 \begin_inset CommandInset ref
20403 LatexCommand ref
20404 reference "sec:セキュリティに関する論点"
20405
20406 \end_inset
20407
20408 のセキュリティに関する議論を読んでおいてください.
20409 \end_layout
20410
20411 \begin_layout Standard
20412 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20413 \end_layout
20414
20415 \begin_layout Standard
20416 外用ひな型は,
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 LyXDir/lib/external_templates
20422 \end_layout
20423
20424 \end_inset
20425
20426 ファイルで定義されています.自分用の版を
20427 \begin_inset Flex Code
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431 UserDir/external_templates
20432 \end_layout
20433
20434 \end_inset
20435
20436 に置くこともできます.
20437 \end_layout
20438
20439 \begin_layout Standard
20440 典型的なひな型は以下のようになります.
20441 \end_layout
20442
20443 \begin_layout LyX-Code
20444 Template XFig
20445 \end_layout
20446
20447 \begin_layout LyX-Code
20448 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20449 \end_layout
20450
20451 \begin_layout LyX-Code
20452 HelpText
20453 \end_layout
20454
20455 \begin_layout LyX-Code
20456 An XFig figure.
20457 \end_layout
20458
20459 \begin_layout LyX-Code
20460 HelpTextEnd
20461 \end_layout
20462
20463 \begin_layout LyX-Code
20464 InputFormat fig
20465 \end_layout
20466
20467 \begin_layout LyX-Code
20468 FileFilter "*.fig"
20469 \end_layout
20470
20471 \begin_layout LyX-Code
20472 AutomaticProduction true
20473 \end_layout
20474
20475 \begin_layout LyX-Code
20476 Transform Rotate
20477 \end_layout
20478
20479 \begin_layout LyX-Code
20480 Transform Resize
20481 \end_layout
20482
20483 \begin_layout LyX-Code
20484 Format LaTeX
20485 \end_layout
20486
20487 \begin_layout LyX-Code
20488 TransformCommand Rotate RotationLatexCommand
20489 \end_layout
20490
20491 \begin_layout LyX-Code
20492 TransformCommand Resize ResizeLatexCommand
20493 \end_layout
20494
20495 \begin_layout LyX-Code
20496 Product "$$RotateFront$$ResizeFront
20497 \end_layout
20498
20499 \begin_layout LyX-Code
20500          
20501 \backslash
20502
20503 \backslash
20504 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20505 \end_layout
20506
20507 \begin_layout LyX-Code
20508          $$ResizeBack$$RotateBack"
20509 \end_layout
20510
20511 \begin_layout LyX-Code
20512 UpdateFormat pstex
20513 \end_layout
20514
20515 \begin_layout LyX-Code
20516 UpdateResult "$$AbsPath$$Basename.pstex_t"
20517 \end_layout
20518
20519 \begin_layout LyX-Code
20520 Requirement "graphicx"
20521 \end_layout
20522
20523 \begin_layout LyX-Code
20524 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20525 \end_layout
20526
20527 \begin_layout LyX-Code
20528 ReferencedFile latex "$$AbsPath$$Basename.eps"
20529 \end_layout
20530
20531 \begin_layout LyX-Code
20532 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20533 \end_layout
20534
20535 \begin_layout LyX-Code
20536 FormatEnd
20537 \end_layout
20538
20539 \begin_layout LyX-Code
20540 Format PDFLaTeX
20541 \end_layout
20542
20543 \begin_layout LyX-Code
20544 TransformCommand Rotate RotationLatexCommand
20545 \end_layout
20546
20547 \begin_layout LyX-Code
20548 TransformCommand Resize ResizeLatexCommand
20549 \end_layout
20550
20551 \begin_layout LyX-Code
20552 Product "$$RotateFront$$ResizeFront
20553 \end_layout
20554
20555 \begin_layout LyX-Code
20556          
20557 \backslash
20558
20559 \backslash
20560 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20561 \end_layout
20562
20563 \begin_layout LyX-Code
20564          $$ResizeBack$$RotateBack"
20565 \end_layout
20566
20567 \begin_layout LyX-Code
20568 UpdateFormat pdftex
20569 \end_layout
20570
20571 \begin_layout LyX-Code
20572 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20573 \end_layout
20574
20575 \begin_layout LyX-Code
20576 Requirement "graphicx"
20577 \end_layout
20578
20579 \begin_layout LyX-Code
20580 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20581 \end_layout
20582
20583 \begin_layout LyX-Code
20584 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20585 \end_layout
20586
20587 \begin_layout LyX-Code
20588 FormatEnd
20589 \end_layout
20590
20591 \begin_layout LyX-Code
20592 Format Ascii
20593 \end_layout
20594
20595 \begin_layout LyX-Code
20596 Product "$$Contents(
20597 \backslash
20598 "$$AbsPath$$Basename.asc
20599 \backslash
20600 ")"
20601 \end_layout
20602
20603 \begin_layout LyX-Code
20604 UpdateFormat asciixfig
20605 \end_layout
20606
20607 \begin_layout LyX-Code
20608 UpdateResult "$$AbsPath$$Basename.asc"
20609 \end_layout
20610
20611 \begin_layout LyX-Code
20612 FormatEnd
20613 \end_layout
20614
20615 \begin_layout LyX-Code
20616 Format DocBook
20617 \end_layout
20618
20619 \begin_layout LyX-Code
20620 Product "<graphic fileref=
20621 \backslash
20622 "$$AbsOrRelPathMaster$$Basename.eps
20623 \backslash
20624 ">
20625 \end_layout
20626
20627 \begin_layout LyX-Code
20628          </graphic>"
20629 \end_layout
20630
20631 \begin_layout LyX-Code
20632 UpdateFormat eps
20633 \end_layout
20634
20635 \begin_layout LyX-Code
20636 UpdateResult "$$AbsPath$$Basename.eps"
20637 \end_layout
20638
20639 \begin_layout LyX-Code
20640 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20641 \end_layout
20642
20643 \begin_layout LyX-Code
20644 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20645 \end_layout
20646
20647 \begin_layout LyX-Code
20648 FormatEnd
20649 \end_layout
20650
20651 \begin_layout LyX-Code
20652 Product "[XFig: $$FName]"
20653 \end_layout
20654
20655 \begin_layout LyX-Code
20656 FormatEnd
20657 \end_layout
20658
20659 \begin_layout LyX-Code
20660 TemplateEnd
20661 \end_layout
20662
20663 \begin_layout Standard
20664 ご覧の通り,ひな型は
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 Template
20670 \end_layout
20671
20672 \end_inset
20673
20674  \SpecialChar ldots
20675  
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 TemplateEnd
20681 \end_layout
20682
20683 \end_inset
20684
20685 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20686 \begin_inset Flex Code
20687 status collapsed
20688
20689 \begin_layout Plain Layout
20690 Format
20691 \end_layout
20692
20693 \end_inset
20694
20695  \SpecialChar ldots
20696  
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 FormatEnd
20702 \end_layout
20703
20704 \end_inset
20705
20706 部があります.
20707 \end_layout
20708
20709 \begin_layout Subsection
20710 ひな型のヘッダ
20711 \end_layout
20712
20713 \begin_layout Description
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 AutomaticProduction
20719 \begin_inset space ~
20720 \end_inset
20721
20722 true|false
20723 \end_layout
20724
20725 \end_inset
20726
20727  このひな型で扱うファイルを\SpecialChar LyX
20728 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20729 \end_layout
20730
20731 \begin_layout Description
20732 \begin_inset Flex Code
20733 status collapsed
20734
20735 \begin_layout Plain Layout
20736 FileFilter
20737 \begin_inset space ~
20738 \end_inset
20739
20740 <パターン>
20741 \end_layout
20742
20743 \end_inset
20744
20745  望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 .obj
20751 \end_layout
20752
20753 \end_inset
20754
20755
20756 \begin_inset Flex Code
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 .tgo
20761 \end_layout
20762
20763 \end_inset
20764
20765 があります),「
20766 \begin_inset Flex Code
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770 *.{obj,tgo}
20771 \end_layout
20772
20773 \end_inset
20774
20775 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20776 \end_layout
20777
20778 \begin_layout Description
20779 \begin_inset Flex Code
20780 status collapsed
20781
20782 \begin_layout Plain Layout
20783 GuiName
20784 \begin_inset space ~
20785 \end_inset
20786
20787 <GUI名>
20788 \end_layout
20789
20790 \end_inset
20791
20792  この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20793 \end_layout
20794
20795 \begin_layout Description
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 HelpText
20801 \begin_inset space ~
20802 \end_inset
20803
20804 <文章>
20805 \begin_inset space ~
20806 \end_inset
20807
20808 HelpTextEnd
20809 \end_layout
20810
20811 \end_inset
20812
20813  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20814 ず現れなくてはなりません.
20815 \end_layout
20816
20817 \begin_layout Description
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 InputFormat
20823 \begin_inset space ~
20824 \end_inset
20825
20826 <書式>
20827 \end_layout
20828
20829 \end_inset
20830
20831  オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20832 が知っている書式名でなくてはなりません(
20833 \begin_inset CommandInset ref
20834 LatexCommand ref
20835 reference "sec:ファイル形式"
20836
20837 \end_inset
20838
20839 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 *
20845 \end_layout
20846
20847 \end_inset
20848
20849 」を使用してください.この場合,\SpecialChar LyX
20850 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20851 \end_layout
20852
20853 \begin_layout Description
20854 \begin_inset Flex Code
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 Template
20859 \begin_inset space ~
20860 \end_inset
20861
20862 <ID>
20863 \end_layout
20864
20865 \end_inset
20866
20867  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20868 \end_layout
20869
20870 \begin_layout Description
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 Transform
20876 \begin_inset space ~
20877 \end_inset
20878
20879 Rotate|Resize|Clip|Extra
20880 \end_layout
20881
20882 \end_inset
20883
20884  このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20885 ログ中の対応するタブを使用可能にします.
20886 \begin_inset Flex Code
20887 status collapsed
20888
20889 \begin_layout Plain Layout
20890 Transform
20891 \end_layout
20892
20893 \end_inset
20894
20895 コマンド一つずつに応じて,
20896 \begin_inset Flex Code
20897 status collapsed
20898
20899 \begin_layout Plain Layout
20900 Format
20901 \end_layout
20902
20903 \end_inset
20904
20905 部に,対応する
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 TransformCommand
20911 \end_layout
20912
20913 \end_inset
20914
20915 コマンドか
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 TransformOption
20921 \end_layout
20922
20923 \end_inset
20924
20925 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20926 \end_layout
20927
20928 \begin_layout Subsection
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 \end_layout
20940
20941 \begin_layout Description
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 Format
20947 \begin_inset space ~
20948 \end_inset
20949
20950 LaTeX|PDFLaTeX|PlainText|DocBook
20951 \end_layout
20952
20953 \end_inset
20954
20955  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 Format
20961 \end_layout
20962
20963 \end_inset
20964
20965 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20966 ようになります.
20967 \end_layout
20968
20969 \begin_layout Description
20970 \begin_inset Flex Code
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 Option
20975 \begin_inset space ~
20976 \end_inset
20977
20978 <名称>
20979 \begin_inset space ~
20980 \end_inset
20981
20982 <値>
20983 \end_layout
20984
20985 \end_inset
20986
20987  このコマンドは,
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 Product
20993 \end_layout
20994
20995 \end_inset
20996
20997 での代入に使うマクロ
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 $$<名称>
21003 \end_layout
21004
21005 \end_inset
21006
21007 を新たに定義します.
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 <値>
21013 \end_layout
21014
21015 \end_inset
21016
21017 自体にも代入マクロを使うことができます.
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 Product
21023 \end_layout
21024
21025 \end_inset
21026
21027
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 <値>
21033 \end_layout
21034
21035 \end_inset
21036
21037 を直接使用するよりも優れた点は,
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 $$<名称>
21043 \end_layout
21044
21045 \end_inset
21046
21047 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
21048 \end_layout
21049
21050 \begin_layout Description
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 Product
21056 \begin_inset space ~
21057 \end_inset
21058
21059 <文>
21060 \end_layout
21061
21062 \end_inset
21063
21064  書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
21065
21066 \end_layout
21067
21068 \begin_layout Description
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 Preamble
21074 \begin_inset space ~
21075 \end_inset
21076
21077 <名称>
21078 \end_layout
21079
21080 \end_inset
21081
21082  このコマンドは,\SpecialChar LaTeX
21083 プリアンブルに入れるプリアンブル片を指定します.これは
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 PreambleDef
21089 \end_layout
21090
21091 \end_inset
21092
21093  \SpecialChar ldots
21094  
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 PreambleDefEnd
21100 \end_layout
21101
21102 \end_inset
21103
21104 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21105 \end_layout
21106
21107 \begin_layout Description
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 ReferencedFile
21113 \begin_inset space ~
21114 \end_inset
21115
21116 <書式>
21117 \begin_inset space ~
21118 \end_inset
21119
21120 <ファイル名>
21121 \end_layout
21122
21123 \end_inset
21124
21125  このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21126 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21127 \end_layout
21128
21129 \begin_layout Description
21130 \begin_inset Flex Code
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134 Requirement
21135 \begin_inset space ~
21136 \end_inset
21137
21138 <package>
21139 \end_layout
21140
21141 \end_inset
21142
21143  必要とされる\SpecialChar LaTeX
21144 パッケージ名.パッケージは,\SpecialChar LaTeX
21145 プリアンブル中で
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150
21151 \backslash
21152 usepackage{}
21153 \end_layout
21154
21155 \end_inset
21156
21157 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21158 \end_layout
21159
21160 \begin_layout Description
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 TransformCommand
21166 \begin_inset space ~
21167 \end_inset
21168
21169 Rotate
21170 \begin_inset space ~
21171 \end_inset
21172
21173 RotationLatexCommand
21174 \end_layout
21175
21176 \end_inset
21177
21178  このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21179 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21180 \end_layout
21181
21182 \begin_layout Description
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 TransformCommand
21188 \begin_inset space ~
21189 \end_inset
21190
21191 Resize
21192 \begin_inset space ~
21193 \end_inset
21194
21195 ResizeLatexCommand
21196 \end_layout
21197
21198 \end_inset
21199
21200  このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21201 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21202 \end_layout
21203
21204 \begin_layout Description
21205 \begin_inset Flex Code
21206 status collapsed
21207
21208 \begin_layout Plain Layout
21209 TransformOption
21210 \begin_inset space ~
21211 \end_inset
21212
21213 Rotate
21214 \begin_inset space ~
21215 \end_inset
21216
21217 RotationLatexOption
21218 \end_layout
21219
21220 \end_inset
21221
21222  このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21223 \end_layout
21224
21225 \begin_layout Description
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 TransformOption
21231 \begin_inset space ~
21232 \end_inset
21233
21234 Resize
21235 \begin_inset space ~
21236 \end_inset
21237
21238 ResizeLatexOption
21239 \end_layout
21240
21241 \end_inset
21242
21243  このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21244 \end_layout
21245
21246 \begin_layout Description
21247 \begin_inset Flex Code
21248 status collapsed
21249
21250 \begin_layout Plain Layout
21251 TransformOption
21252 \begin_inset space ~
21253 \end_inset
21254
21255 Clip
21256 \begin_inset space ~
21257 \end_inset
21258
21259 ClipLatexOption
21260 \end_layout
21261
21262 \end_inset
21263
21264  このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21265 \end_layout
21266
21267 \begin_layout Description
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 TransformOption
21273 \begin_inset space ~
21274 \end_inset
21275
21276 Extra
21277 \begin_inset space ~
21278 \end_inset
21279
21280 ExtraLatexOption
21281 \end_layout
21282
21283 \end_inset
21284
21285  このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21286 \end_layout
21287
21288 \begin_layout Description
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293 UpdateFormat
21294 \begin_inset space ~
21295 \end_inset
21296
21297 <書式>
21298 \end_layout
21299
21300 \end_inset
21301
21302  変換されたファイルのファイル形式.これは,\SpecialChar LyX
21303 が知っている書式名でなくてはなりません(
21304 \begin_inset Flex MenuItem
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 ツール\SpecialChar menuseparator
21309 設定\SpecialChar menuseparator
21310 ファイル処理\SpecialChar menuseparator
21311 ファイル書式
21312 \end_layout
21313
21314 \end_inset
21315
21316 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 pdf6
21322 \end_layout
21323
21324 \end_inset
21325
21326 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21327 \end_layout
21328
21329 \begin_layout Description
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 UpdateResult
21335 \begin_inset space ~
21336 \end_inset
21337
21338 <ファイル名>
21339 \end_layout
21340
21341 \end_inset
21342
21343  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21344 \end_layout
21345
21346 \begin_layout Subsection
21347 プリアンブルの定義
21348 \end_layout
21349
21350 \begin_layout Standard
21351 外用ひな型設定ファイルには,
21352 \begin_inset Flex Code
21353 status collapsed
21354
21355 \begin_layout Plain Layout
21356 PreambleDef
21357 \end_layout
21358
21359 \end_inset
21360
21361  \SpecialChar ldots
21362  
21363 \begin_inset Flex Code
21364 status collapsed
21365
21366 \begin_layout Plain Layout
21367 PreambleDefEnd
21368 \end_layout
21369
21370 \end_inset
21371
21372 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21373 \begin_inset Flex Code
21374 status collapsed
21375
21376 \begin_layout Plain Layout
21377 Format
21378 \end_layout
21379
21380 \end_inset
21381
21382 部で使用することができます.
21383 \end_layout
21384
21385 \begin_layout Section
21386 代入機構
21387 \end_layout
21388
21389 \begin_layout Standard
21390 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21391 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21392 \end_layout
21393
21394 \begin_layout Standard
21395 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21396 \end_layout
21397
21398 \begin_layout Standard
21399 使用できるマクロは以下の通りです.
21400 \end_layout
21401
21402 \begin_layout Description
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 $$AbsOrRelPathMaster
21408 \end_layout
21409
21410 \end_inset
21411
21412  \SpecialChar LyX
21413 親文書への絶対ファイルパスないしは相対ファイルパス
21414 \end_layout
21415
21416 \begin_layout Description
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 $$AbsOrRelPathParent
21422 \end_layout
21423
21424 \end_inset
21425
21426  \SpecialChar LyX
21427 文書への絶対ファイルパスないしは相対ファイルパス
21428 \end_layout
21429
21430 \begin_layout Description
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 $$AbsPath
21436 \end_layout
21437
21438 \end_inset
21439
21440  絶対ファイルパス
21441 \end_layout
21442
21443 \begin_layout Description
21444 \begin_inset Flex Code
21445 status collapsed
21446
21447 \begin_layout Plain Layout
21448 $$Basename
21449 \end_layout
21450
21451 \end_inset
21452
21453  パスおよび拡張子を除いたファイル名
21454 \end_layout
21455
21456 \begin_layout Description
21457 \begin_inset Flex Code
21458 status collapsed
21459
21460 \begin_layout Plain Layout
21461 $$Contents(
21462 \begin_inset Quotes eld
21463 \end_inset
21464
21465 filename.ext
21466 \begin_inset Quotes erd
21467 \end_inset
21468
21469 )
21470 \end_layout
21471
21472 \end_inset
21473
21474  このマクロは,
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 filename.ext
21480 \end_layout
21481
21482 \end_inset
21483
21484 と云う名のファイルの中身を展開します.
21485 \end_layout
21486
21487 \begin_layout Description
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 $$Extension
21493 \end_layout
21494
21495 \end_inset
21496
21497  ファイル拡張子(点を含む)
21498 \end_layout
21499
21500 \begin_layout Description
21501 \begin_inset Flex Code
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 $$pngOrjpg
21506 \end_layout
21507
21508 \end_inset
21509
21510  これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21511 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21512 出力形式に対してこのマクロを使用します.
21513 \end_layout
21514
21515 \begin_layout Description
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 $$FName
21521 \end_layout
21522
21523 \end_inset
21524
21525  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21526 文書への絶対パスでも良いですし,相対パスでも構いません.
21527 \end_layout
21528
21529 \begin_layout Description
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 $$FPath
21535 \end_layout
21536
21537 \end_inset
21538
21539  
21540 \begin_inset Flex Code
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 $$FName
21545 \end_layout
21546
21547 \end_inset
21548
21549 のパス部分(\SpecialChar LyX
21550 文書への絶対パス名か相対パス名)
21551 \end_layout
21552
21553 \begin_layout Description
21554 \begin_inset Flex Code
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 $$RelPathMaster
21559 \end_layout
21560
21561 \end_inset
21562
21563  \SpecialChar LyX
21564 親文書への相対ファイルパス
21565 \end_layout
21566
21567 \begin_layout Description
21568 \begin_inset Flex Code
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 $$RelPathParent
21573 \end_layout
21574
21575 \end_inset
21576
21577  \SpecialChar LyX
21578 文書への相対ファイルパス
21579 \end_layout
21580
21581 \begin_layout Description
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586 $$Sysdir
21587 \end_layout
21588
21589 \end_inset
21590
21591  このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21592 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21593 \end_layout
21594
21595 \begin_layout Description
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 $$Tempname
21601 \end_layout
21602
21603 \end_inset
21604
21605  元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21606 \end_layout
21607
21608 \begin_layout Standard
21609 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 $$AbsPath$$Basename$$Extension
21615 \end_layout
21616
21617 \end_inset
21618
21619 のようにして作ることができます.
21620 \end_layout
21621
21622 \begin_layout Standard
21623 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21624 \begin_inset Flex Code
21625 status collapsed
21626
21627 \begin_layout Plain Layout
21628 Transform
21629 \end_layout
21630
21631 \end_inset
21632
21633 コマンドと
21634 \begin_inset Flex Code
21635 status collapsed
21636
21637 \begin_layout Plain Layout
21638 TransformCommand
21639 \end_layout
21640
21641 \end_inset
21642
21643 コマンドが有効にされている場合,
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 Product
21649 \end_layout
21650
21651 \end_inset
21652
21653 コマンドは,これらに加えて以下の代入もサポートします.
21654 \end_layout
21655
21656 \begin_layout Description
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661 $$ResizeFront
21662 \end_layout
21663
21664 \end_inset
21665
21666  伸縮コマンドの前置部.
21667 \end_layout
21668
21669 \begin_layout Description
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 $$ResizeBack
21675 \end_layout
21676
21677 \end_inset
21678
21679  伸縮コマンドの後置部.
21680 \end_layout
21681
21682 \begin_layout Description
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 $$RotateFront
21688 \end_layout
21689
21690 \end_inset
21691
21692  回転コマンドの前置部.
21693 \end_layout
21694
21695 \begin_layout Description
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 $$RotateBack
21701 \end_layout
21702
21703 \end_inset
21704
21705  回転コマンドの後置部.
21706 \end_layout
21707
21708 \begin_layout Standard
21709 \begin_inset Flex Code
21710 status collapsed
21711
21712 \begin_layout Plain Layout
21713 Option
21714 \end_layout
21715
21716 \end_inset
21717
21718 コマンドの値に入れる文字列では,
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 Transform
21724 \end_layout
21725
21726 \end_inset
21727
21728 コマンドと
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 TransformOption
21734 \end_layout
21735
21736 \end_inset
21737
21738 コマンドが有効にされていれば,以下の代入もサポートされます.
21739 \end_layout
21740
21741 \begin_layout Description
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 $$Clip
21747 \end_layout
21748
21749 \end_inset
21750
21751  切り抜きオプション.
21752 \end_layout
21753
21754 \begin_layout Description
21755 \begin_inset Flex Code
21756 status collapsed
21757
21758 \begin_layout Plain Layout
21759 $$Extra
21760 \end_layout
21761
21762 \end_inset
21763
21764  追加オプション.
21765 \end_layout
21766
21767 \begin_layout Description
21768 \begin_inset Flex Code
21769 status collapsed
21770
21771 \begin_layout Plain Layout
21772 $$Resize
21773 \end_layout
21774
21775 \end_inset
21776
21777  伸縮オプション.
21778 \end_layout
21779
21780 \begin_layout Description
21781 \begin_inset Flex Code
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785 $$Rotate
21786 \end_layout
21787
21788 \end_inset
21789
21790  回転オプション.
21791 \end_layout
21792
21793 \begin_layout Standard
21794 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21795 \end_layout
21796
21797 \begin_layout Enumerate
21798 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21799 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21800 \end_layout
21801
21802 \begin_layout Enumerate
21803 \SpecialChar LaTeX
21804 は,相対ファイル名に関して,\SpecialChar LyX
21805 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21806 にとって相対ファイル名とは,常にこのファイル名が書か
21807 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21808 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21809 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21810 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21811 を選びさえすれば,これは\SpecialChar LyX
21812 が自動的に行ってくれます.
21813 \end_layout
21814
21815 \begin_layout Standard
21816 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21817 \end_layout
21818
21819 \begin_layout Itemize
21820 絶対パスが必要とされるときには
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 $$AbsPath
21826 \end_layout
21827
21828 \end_inset
21829
21830 を使う.
21831 \end_layout
21832
21833 \begin_layout Itemize
21834 代入された文字列が,\SpecialChar LaTeX
21835 インプットの一種である場合には,
21836 \begin_inset Flex Code
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 $$AbsOrRelPathMaster
21841 \end_layout
21842
21843 \end_inset
21844
21845 を使う.
21846 \end_layout
21847
21848 \begin_layout Itemize
21849 それ以外ならば,ユーザの選択を尊重するために
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 $$AbsOrRelPathParent
21855 \end_layout
21856
21857 \end_inset
21858
21859 を使う.
21860 \end_layout
21861
21862 \begin_layout Standard
21863 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21869 \end_layout
21870
21871 \end_inset
21872
21873 というコマンドがあります.この場合,
21874 \begin_inset Flex Code
21875 status collapsed
21876
21877 \begin_layout Plain Layout
21878 .pstex_t
21879 \end_layout
21880
21881 \end_inset
21882
21883 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21884 \end_layout
21885
21886 \begin_layout Section
21887 セキュリティに関する論点
21888 \begin_inset CommandInset label
21889 LatexCommand label
21890 name "sec:セキュリティに関する論点"
21891
21892 \end_inset
21893
21894
21895 \end_layout
21896
21897 \begin_layout Standard
21898 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21899 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21900 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21901 \end_layout
21902
21903 \begin_layout Standard
21904 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21905 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21906 せん.これは,外部プログラムが
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911 system
21912 \end_layout
21913
21914 \end_inset
21915
21916 システムコールではなく,
21917 \begin_inset Flex Code
21918 status collapsed
21919
21920 \begin_layout Plain Layout
21921 execvp
21922 \end_layout
21923
21924 \end_inset
21925
21926 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21927 \end_layout
21928
21929 \begin_layout Standard
21930 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21931 できません.これは,\SpecialChar LyX
21932 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21933 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21934 \end_layout
21935
21936 \begin_layout Standard
21937 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21938 うになるため,一般的には,統御下に置いた状態で
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 execvp
21944 \end_layout
21945
21946 \end_inset
21947
21948 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21949 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21950 \emph on
21951 間違いなく
21952 \emph default
21953 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21954 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21955 には,安全でないひな型は決して入っていません
21956
21957 \end_layout
21958
21959 \begin_layout Standard
21960 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21961 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21962 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21963 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21964 使用する前に,行うようにしてください.
21965 \end_layout
21966
21967 \begin_layout Chapter
21968 \start_of_appendix
21969 サポートされているレイアウト用\SpecialChar LyX
21970 関数一覧
21971 \begin_inset CommandInset label
21972 LatexCommand label
21973 name "chap:関数一覧"
21974
21975 \end_inset
21976
21977
21978 \end_layout
21979
21980 \begin_layout Standard
21981 \align center
21982 \begin_inset Tabular
21983 <lyxtabular version="3" rows="11" columns="8">
21984 <features tabularvalignment="middle">
21985 <column alignment="left" valignment="top">
21986 <column alignment="left" valignment="top">
21987 <column alignment="left" valignment="top">
21988 <column alignment="left" valignment="top">
21989 <column alignment="left" valignment="top">
21990 <column alignment="left" valignment="top">
21991 <column alignment="left" valignment="top">
21992 <column alignment="left" valignment="top">
21993 <row>
21994 <cell alignment="left" valignment="top" usebox="none">
21995 \begin_inset Text
21996
21997 \begin_layout Plain Layout
21998 accents
21999 \end_layout
22000
22001 \end_inset
22002 </cell>
22003 <cell alignment="left" valignment="top" usebox="none">
22004 \begin_inset Text
22005
22006 \begin_layout Plain Layout
22007 booktabs
22008 \end_layout
22009
22010 \end_inset
22011 </cell>
22012 <cell alignment="left" valignment="top" usebox="none">
22013 \begin_inset Text
22014
22015 \begin_layout Plain Layout
22016 feyn
22017 \end_layout
22018
22019 \end_inset
22020 </cell>
22021 <cell alignment="left" valignment="top" usebox="none">
22022 \begin_inset Text
22023
22024 \begin_layout Plain Layout
22025 listings
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 natbib
22035 \end_layout
22036
22037 \end_inset
22038 </cell>
22039 <cell alignment="center" valignment="top" usebox="none">
22040 \begin_inset Text
22041
22042 \begin_layout Plain Layout
22043 rotfloat
22044 \end_layout
22045
22046 \end_inset
22047 </cell>
22048 <cell alignment="center" valignment="top" usebox="none">
22049 \begin_inset Text
22050
22051 \begin_layout Plain Layout
22052 tfrupee
22053 \end_layout
22054
22055 \end_inset
22056 </cell>
22057 <cell alignment="center" valignment="top" usebox="none">
22058 \begin_inset Text
22059
22060 \begin_layout Plain Layout
22061 wasysym
22062 \end_layout
22063
22064 \end_inset
22065 </cell>
22066 </row>
22067 <row>
22068 <cell alignment="left" valignment="top" usebox="none">
22069 \begin_inset Text
22070
22071 \begin_layout Plain Layout
22072 amsbsy
22073 \end_layout
22074
22075 \end_inset
22076 </cell>
22077 <cell alignment="left" valignment="top" usebox="none">
22078 \begin_inset Text
22079
22080 \begin_layout Plain Layout
22081 calc
22082 \end_layout
22083
22084 \end_inset
22085 </cell>
22086 <cell alignment="left" valignment="top" usebox="none">
22087 \begin_inset Text
22088
22089 \begin_layout Plain Layout
22090 fixltx2e
22091 \end_layout
22092
22093 \end_inset
22094 </cell>
22095 <cell alignment="left" valignment="top" usebox="none">
22096 \begin_inset Text
22097
22098 \begin_layout Plain Layout
22099 longtable
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 nomencl
22109 \end_layout
22110
22111 \end_inset
22112 </cell>
22113 <cell alignment="center" valignment="top" usebox="none">
22114 \begin_inset Text
22115
22116 \begin_layout Plain Layout
22117 rsphrase
22118 \end_layout
22119
22120 \end_inset
22121 </cell>
22122 <cell alignment="center" valignment="top" usebox="none">
22123 \begin_inset Text
22124
22125 \begin_layout Plain Layout
22126 tipa
22127 \end_layout
22128
22129 \end_inset
22130 </cell>
22131 <cell alignment="center" valignment="top" usebox="none">
22132 \begin_inset Text
22133
22134 \begin_layout Plain Layout
22135 wrapfig
22136 \end_layout
22137
22138 \end_inset
22139 </cell>
22140 </row>
22141 <row>
22142 <cell alignment="left" valignment="top" usebox="none">
22143 \begin_inset Text
22144
22145 \begin_layout Plain Layout
22146 amscd
22147 \end_layout
22148
22149 \end_inset
22150 </cell>
22151 <cell alignment="left" valignment="top" usebox="none">
22152 \begin_inset Text
22153
22154 \begin_layout Plain Layout
22155 CJK
22156 \end_layout
22157
22158 \end_inset
22159 </cell>
22160 <cell alignment="left" valignment="top" usebox="none">
22161 \begin_inset Text
22162
22163 \begin_layout Plain Layout
22164 float
22165 \end_layout
22166
22167 \end_inset
22168 </cell>
22169 <cell alignment="left" valignment="top" usebox="none">
22170 \begin_inset Text
22171
22172 \begin_layout Plain Layout
22173 lyxskak
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 pdfcolmk
22183 \end_layout
22184
22185 \end_inset
22186 </cell>
22187 <cell alignment="center" valignment="top" usebox="none">
22188 \begin_inset Text
22189
22190 \begin_layout Plain Layout
22191 setspace
22192 \end_layout
22193
22194 \end_inset
22195 </cell>
22196 <cell alignment="center" valignment="top" usebox="none">
22197 \begin_inset Text
22198
22199 \begin_layout Plain Layout
22200 tipx
22201 \end_layout
22202
22203 \end_inset
22204 </cell>
22205 <cell alignment="center" valignment="top" usebox="none">
22206 \begin_inset Text
22207
22208 \begin_layout Plain Layout
22209 xargs
22210 \end_layout
22211
22212 \end_inset
22213 </cell>
22214 </row>
22215 <row>
22216 <cell alignment="left" valignment="top" usebox="none">
22217 \begin_inset Text
22218
22219 \begin_layout Plain Layout
22220 amsmath
22221 \end_layout
22222
22223 \end_inset
22224 </cell>
22225 <cell alignment="left" valignment="top" usebox="none">
22226 \begin_inset Text
22227
22228 \begin_layout Plain Layout
22229 color
22230 \end_layout
22231
22232 \end_inset
22233 </cell>
22234 <cell alignment="left" valignment="top" usebox="none">
22235 \begin_inset Text
22236
22237 \begin_layout Plain Layout
22238 framed
22239 \end_layout
22240
22241 \end_inset
22242 </cell>
22243 <cell alignment="left" valignment="top" usebox="none">
22244 \begin_inset Text
22245
22246 \begin_layout Plain Layout
22247 makeidx
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 pdfpages
22257 \end_layout
22258
22259 \end_inset
22260 </cell>
22261 <cell alignment="center" valignment="top" usebox="none">
22262 \begin_inset Text
22263
22264 \begin_layout Plain Layout
22265 shapepar
22266 \end_layout
22267
22268 \end_inset
22269 </cell>
22270 <cell alignment="center" valignment="top" usebox="none">
22271 \begin_inset Text
22272
22273 \begin_layout Plain Layout
22274 tone
22275 \end_layout
22276
22277 \end_inset
22278 </cell>
22279 <cell alignment="center" valignment="top" usebox="none">
22280 \begin_inset Text
22281
22282 \begin_layout Plain Layout
22283 xcolor
22284 \end_layout
22285
22286 \end_inset
22287 </cell>
22288 </row>
22289 <row>
22290 <cell alignment="left" valignment="top" usebox="none">
22291 \begin_inset Text
22292
22293 \begin_layout Plain Layout
22294 amssymb
22295 \end_layout
22296
22297 \end_inset
22298 </cell>
22299 <cell alignment="left" valignment="top" usebox="none">
22300 \begin_inset Text
22301
22302 \begin_layout Plain Layout
22303 covington
22304 \end_layout
22305
22306 \end_inset
22307 </cell>
22308 <cell alignment="left" valignment="top" usebox="none">
22309 \begin_inset Text
22310
22311 \begin_layout Plain Layout
22312 graphicx
22313 \end_layout
22314
22315 \end_inset
22316 </cell>
22317 <cell alignment="left" valignment="top" usebox="none">
22318 \begin_inset Text
22319
22320 \begin_layout Plain Layout
22321 marvosym
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 pifont
22331 \end_layout
22332
22333 \end_inset
22334 </cell>
22335 <cell alignment="center" valignment="top" usebox="none">
22336 \begin_inset Text
22337
22338 \begin_layout Plain Layout
22339 slashed
22340 \end_layout
22341
22342 \end_inset
22343 </cell>
22344 <cell alignment="center" valignment="top" usebox="none">
22345 \begin_inset Text
22346
22347 \begin_layout Plain Layout
22348 txfonts
22349 \end_layout
22350
22351 \end_inset
22352 </cell>
22353 <cell alignment="center" valignment="top" usebox="none">
22354 \begin_inset Text
22355
22356 \begin_layout Plain Layout
22357 xy
22358 \end_layout
22359
22360 \end_inset
22361 </cell>
22362 </row>
22363 <row>
22364 <cell alignment="left" valignment="top" usebox="none">
22365 \begin_inset Text
22366
22367 \begin_layout Plain Layout
22368 amstext
22369 \end_layout
22370
22371 \end_inset
22372 </cell>
22373 <cell alignment="left" valignment="top" usebox="none">
22374 \begin_inset Text
22375
22376 \begin_layout Plain Layout
22377 csquotes
22378 \end_layout
22379
22380 \end_inset
22381 </cell>
22382 <cell alignment="left" valignment="top" usebox="none">
22383 \begin_inset Text
22384
22385 \begin_layout Plain Layout
22386 hhline
22387 \end_layout
22388
22389 \end_inset
22390 </cell>
22391 <cell alignment="left" valignment="top" usebox="none">
22392 \begin_inset Text
22393
22394 \begin_layout Plain Layout
22395 mathdesign
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 pmboxdraw
22405 \end_layout
22406
22407 \end_inset
22408 </cell>
22409 <cell alignment="center" valignment="top" usebox="none">
22410 \begin_inset Text
22411
22412 \begin_layout Plain Layout
22413 soul
22414 \end_layout
22415
22416 \end_inset
22417 </cell>
22418 <cell alignment="center" valignment="top" usebox="none">
22419 \begin_inset Text
22420
22421 \begin_layout Plain Layout
22422 ulem
22423 \end_layout
22424
22425 \end_inset
22426 </cell>
22427 <cell alignment="center" valignment="top" usebox="none">
22428 \begin_inset Text
22429
22430 \begin_layout Plain Layout
22431 yhmath
22432 \end_layout
22433
22434 \end_inset
22435 </cell>
22436 </row>
22437 <row>
22438 <cell alignment="left" valignment="top" usebox="none">
22439 \begin_inset Text
22440
22441 \begin_layout Plain Layout
22442 amsthm
22443 \end_layout
22444
22445 \end_inset
22446 </cell>
22447 <cell alignment="left" valignment="top" usebox="none">
22448 \begin_inset Text
22449
22450 \begin_layout Plain Layout
22451 dvipost
22452 \end_layout
22453
22454 \end_inset
22455 </cell>
22456 <cell alignment="left" valignment="top" usebox="none">
22457 \begin_inset Text
22458
22459 \begin_layout Plain Layout
22460 hyperref
22461 \end_layout
22462
22463 \end_inset
22464 </cell>
22465 <cell alignment="left" valignment="top" usebox="none">
22466 \begin_inset Text
22467
22468 \begin_layout Plain Layout
22469 mathdots
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 polyglossia
22479 \end_layout
22480
22481 \end_inset
22482 </cell>
22483 <cell alignment="center" valignment="top" usebox="none">
22484 \begin_inset Text
22485
22486 \begin_layout Plain Layout
22487 splitidx
22488 \end_layout
22489
22490 \end_inset
22491 </cell>
22492 <cell alignment="center" valignment="top" usebox="none">
22493 \begin_inset Text
22494
22495 \begin_layout Plain Layout
22496 undertilde
22497 \end_layout
22498
22499 \end_inset
22500 </cell>
22501 <cell alignment="center" valignment="top" usebox="none">
22502 \begin_inset Text
22503
22504 \begin_layout Plain Layout
22505
22506 \end_layout
22507
22508 \end_inset
22509 </cell>
22510 </row>
22511 <row>
22512 <cell alignment="left" valignment="top" usebox="none">
22513 \begin_inset Text
22514
22515 \begin_layout Plain Layout
22516 array
22517 \end_layout
22518
22519 \end_inset
22520 </cell>
22521 <cell alignment="left" valignment="top" usebox="none">
22522 \begin_inset Text
22523
22524 \begin_layout Plain Layout
22525 endnotes
22526 \end_layout
22527
22528 \end_inset
22529 </cell>
22530 <cell alignment="left" valignment="top" usebox="none">
22531 \begin_inset Text
22532
22533 \begin_layout Plain Layout
22534 ifsym
22535 \end_layout
22536
22537 \end_inset
22538 </cell>
22539 <cell alignment="left" valignment="top" usebox="none">
22540 \begin_inset Text
22541
22542 \begin_layout Plain Layout
22543 mathrsfs
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 prettyref
22553 \end_layout
22554
22555 \end_inset
22556 </cell>
22557 <cell alignment="center" valignment="top" usebox="none">
22558 \begin_inset Text
22559
22560 \begin_layout Plain Layout
22561 subfig
22562 \end_layout
22563
22564 \end_inset
22565 </cell>
22566 <cell alignment="center" valignment="top" usebox="none">
22567 \begin_inset Text
22568
22569 \begin_layout Plain Layout
22570 units
22571 \end_layout
22572
22573 \end_inset
22574 </cell>
22575 <cell alignment="center" valignment="top" usebox="none">
22576 \begin_inset Text
22577
22578 \begin_layout Plain Layout
22579
22580 \end_layout
22581
22582 \end_inset
22583 </cell>
22584 </row>
22585 <row>
22586 <cell alignment="left" valignment="top" usebox="none">
22587 \begin_inset Text
22588
22589 \begin_layout Plain Layout
22590 ascii
22591 \end_layout
22592
22593 \end_inset
22594 </cell>
22595 <cell alignment="left" valignment="top" usebox="none">
22596 \begin_inset Text
22597
22598 \begin_layout Plain Layout
22599 enumitem
22600 \end_layout
22601
22602 \end_inset
22603 </cell>
22604 <cell alignment="left" valignment="top" usebox="none">
22605 \begin_inset Text
22606
22607 \begin_layout Plain Layout
22608 ifthen
22609 \end_layout
22610
22611 \end_inset
22612 </cell>
22613 <cell alignment="left" valignment="top" usebox="none">
22614 \begin_inset Text
22615
22616 \begin_layout Plain Layout
22617 mhchem
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 pxfonts
22627 \end_layout
22628
22629 \end_inset
22630 </cell>
22631 <cell alignment="center" valignment="top" usebox="none">
22632 \begin_inset Text
22633
22634 \begin_layout Plain Layout
22635 subscript
22636 \end_layout
22637
22638 \end_inset
22639 </cell>
22640 <cell alignment="center" valignment="top" usebox="none">
22641 \begin_inset Text
22642
22643 \begin_layout Plain Layout
22644 url
22645 \end_layout
22646
22647 \end_inset
22648 </cell>
22649 <cell alignment="center" valignment="top" usebox="none">
22650 \begin_inset Text
22651
22652 \begin_layout Plain Layout
22653
22654 \end_layout
22655
22656 \end_inset
22657 </cell>
22658 </row>
22659 <row>
22660 <cell alignment="left" valignment="top" usebox="none">
22661 \begin_inset Text
22662
22663 \begin_layout Plain Layout
22664 bbding
22665 \end_layout
22666
22667 \end_inset
22668 </cell>
22669 <cell alignment="left" valignment="top" usebox="none">
22670 \begin_inset Text
22671
22672 \begin_layout Plain Layout
22673 esint
22674 \end_layout
22675
22676 \end_inset
22677 </cell>
22678 <cell alignment="left" valignment="top" usebox="none">
22679 \begin_inset Text
22680
22681 \begin_layout Plain Layout
22682 jurabib
22683 \end_layout
22684
22685 \end_inset
22686 </cell>
22687 <cell alignment="left" valignment="top" usebox="none">
22688 \begin_inset Text
22689
22690 \begin_layout Plain Layout
22691 multicol
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 refstyle
22701 \end_layout
22702
22703 \end_inset
22704 </cell>
22705 <cell alignment="center" valignment="top" usebox="none">
22706 \begin_inset Text
22707
22708 \begin_layout Plain Layout
22709 textcomp
22710 \end_layout
22711
22712 \end_inset
22713 </cell>
22714 <cell alignment="center" valignment="top" usebox="none">
22715 \begin_inset Text
22716
22717 \begin_layout Plain Layout
22718 varioref
22719 \end_layout
22720
22721 \end_inset
22722 </cell>
22723 <cell alignment="center" valignment="top" usebox="none">
22724 \begin_inset Text
22725
22726 \begin_layout Plain Layout
22727
22728 \end_layout
22729
22730 \end_inset
22731 </cell>
22732 </row>
22733 <row>
22734 <cell alignment="center" valignment="top" usebox="none">
22735 \begin_inset Text
22736
22737 \begin_layout Plain Layout
22738 bm
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 fancybox
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 latexsym
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 multirow
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 rotating
22775 \end_layout
22776
22777 \end_inset
22778 </cell>
22779 <cell alignment="center" valignment="top" usebox="none">
22780 \begin_inset Text
22781
22782 \begin_layout Plain Layout
22783 textgreek
22784 \end_layout
22785
22786 \end_inset
22787 </cell>
22788 <cell alignment="center" valignment="top" usebox="none">
22789 \begin_inset Text
22790
22791 \begin_layout Plain Layout
22792 verbatim
22793 \end_layout
22794
22795 \end_inset
22796 </cell>
22797 <cell alignment="center" valignment="top" usebox="none">
22798 \begin_inset Text
22799
22800 \begin_layout Plain Layout
22801
22802 \end_layout
22803
22804 \end_inset
22805 </cell>
22806 </row>
22807 </lyxtabular>
22808
22809 \end_inset
22810
22811
22812 \end_layout
22813
22814 \begin_layout Chapter
22815 レイアウトで使用できる色名
22816 \begin_inset CommandInset label
22817 LatexCommand label
22818 name "chap:色名"
22819
22820 \end_inset
22821
22822
22823 \end_layout
22824
22825 \begin_layout Standard
22826 ここに列挙されている色は標準色であり,\SpecialChar LyX
22827 設定で調整できるものです.
22828 \end_layout
22829
22830 \begin_layout Description
22831 none
22832 \series medium
22833  
22834 \series default
22835 特定の色ではありません – 透明か既定色です
22836 \end_layout
22837
22838 \begin_layout Description
22839 black
22840 \end_layout
22841
22842 \begin_layout Description
22843 white
22844 \end_layout
22845
22846 \begin_layout Description
22847 red
22848 \end_layout
22849
22850 \begin_layout Description
22851 green
22852 \end_layout
22853
22854 \begin_layout Description
22855 blue
22856 \end_layout
22857
22858 \begin_layout Description
22859 cyan
22860 \end_layout
22861
22862 \begin_layout Description
22863 magenta
22864 \end_layout
22865
22866 \begin_layout Description
22867 yellow
22868 \end_layout
22869
22870 \begin_layout Description
22871 added_space 空白マーカ色
22872 \end_layout
22873
22874 \begin_layout Description
22875 addedtext 追加された文章色
22876 \end_layout
22877
22878 \begin_layout Description
22879 appendix 付録マーカ色
22880 \end_layout
22881
22882 \begin_layout Description
22883 background 背景色
22884 \end_layout
22885
22886 \begin_layout Description
22887 bottomarea 下部領域色
22888 \end_layout
22889
22890 \begin_layout Description
22891 branchlabel 派生枝ラベル色
22892 \end_layout
22893
22894 \begin_layout Description
22895 buttonbg ボタンの背景色
22896 \end_layout
22897
22898 \begin_layout Description
22899 buttonhoverbg フォーカスを得ているボタンの背景色
22900 \end_layout
22901
22902 \begin_layout Description
22903 buttonframe 差込枠の縁色
22904 \end_layout
22905
22906 \begin_layout Description
22907 changebar 変更バー色
22908 \end_layout
22909
22910 \begin_layout Description
22911 changedtextauthor1 変更された文章:第1著者の色
22912 \end_layout
22913
22914 \begin_layout Description
22915 changedtextauthor2 変更された文章:第2著者の色
22916 \end_layout
22917
22918 \begin_layout Description
22919 changedtextauthor3 変更された文章:第3著者の色
22920 \end_layout
22921
22922 \begin_layout Description
22923 changedtextauthor4 変更された文章:第4著者の色
22924 \end_layout
22925
22926 \begin_layout Description
22927 changedtextauthor5 変更された文章:第5著者の色
22928 \end_layout
22929
22930 \begin_layout Description
22931 collapsable_inset_frame 畳み込み可能枠の縁色
22932 \end_layout
22933
22934 \begin_layout Description
22935 collapsable_inset_text 畳み込み可能枠の文字色
22936 \end_layout
22937
22938 \begin_layout Description
22939 command コマンド差込枠の文字色
22940 \end_layout
22941
22942 \begin_layout Description
22943 commandbg コマンド差込枠の背景色
22944 \end_layout
22945
22946 \begin_layout Description
22947 commandframe コマンド差込枠の縁色
22948 \end_layout
22949
22950 \begin_layout Description
22951 comment コメント色
22952 \end_layout
22953
22954 \begin_layout Description
22955 commentbg コメントの背景色
22956 \end_layout
22957
22958 \begin_layout Description
22959 cursor カーソル色
22960 \end_layout
22961
22962 \begin_layout Description
22963 deletedtext 削除された文章の色
22964 \end_layout
22965
22966 \begin_layout Description
22967 deletedtextmodifier 削除された文章の修飾子の色
22968 \end_layout
22969
22970 \begin_layout Description
22971 depthbar 余白部の階層表示線の色
22972 \end_layout
22973
22974 \begin_layout Description
22975 eolmarker 行末標色
22976 \end_layout
22977
22978 \begin_layout Description
22979 error \SpecialChar LaTeX
22980 エラーボックス色
22981 \end_layout
22982
22983 \begin_layout Description
22984 footlabel 脚註ラベル色
22985 \end_layout
22986
22987 \begin_layout Description
22988 graphicsbg 画像差込枠の背景色
22989 \end_layout
22990
22991 \begin_layout Description
22992 greyedout 淡色表示差込枠のラベル色
22993 \end_layout
22994
22995 \begin_layout Description
22996 greyedoutbg 淡色表示差込枠の背景色
22997 \end_layout
22998
22999 \begin_layout Description
23000 greyedouttext 淡色表示差込枠の文字色
23001 \end_layout
23002
23003 \begin_layout Description
23004 indexlabel 索引差込枠のラベル色
23005 \end_layout
23006
23007 \begin_layout Description
23008 ignore この色を無視します
23009 \end_layout
23010
23011 \begin_layout Description
23012 inherit この色を継承します
23013 \end_layout
23014
23015 \begin_layout Description
23016 inlinecompletion 行内補完色
23017 \end_layout
23018
23019 \begin_layout Description
23020 insetbg 差込枠標の背景色
23021 \end_layout
23022
23023 \begin_layout Description
23024 insetframe 差込枠標の縁色
23025 \end_layout
23026
23027 \begin_layout Description
23028 language 外国語の単語を標識するための色
23029 \end_layout
23030
23031 \begin_layout Description
23032 latex \SpecialChar LaTeX
23033 モードの文字色
23034 \end_layout
23035
23036 \begin_layout Description
23037 listingsbg プログラムリスト差込枠の背景色
23038 \end_layout
23039
23040 \begin_layout Description
23041 marginlabel 傍註のラベル色
23042 \end_layout
23043
23044 \begin_layout Description
23045 math 数式差込枠の文字色
23046 \end_layout
23047
23048 \begin_layout Description
23049 mathbg 数式差込枠の背景色
23050 \end_layout
23051
23052 \begin_layout Description
23053 mathcorners フォーカスを得ていない数式差込枠の縁色
23054 \end_layout
23055
23056 \begin_layout Description
23057 mathframe フォーカスを得ている数式差込枠の縁色
23058 \end_layout
23059
23060 \begin_layout Description
23061 mathline 数式行色
23062 \end_layout
23063
23064 \begin_layout Description
23065 mathmacrobg 数式マクロ差込枠の背景色
23066 \end_layout
23067
23068 \begin_layout Description
23069 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23070 \end_layout
23071
23072 \begin_layout Description
23073 mathmacroframe 数式マクロ差込枠の縁色
23074 \end_layout
23075
23076 \begin_layout Description
23077 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23078 \end_layout
23079
23080 \begin_layout Description
23081 mathmacrolabel 数式マクロ差込枠のラベル色
23082 \end_layout
23083
23084 \begin_layout Description
23085 mathmacronewarg 数式マクロ新パラメーターのひな型色
23086 \end_layout
23087
23088 \begin_layout Description
23089 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23090 \end_layout
23091
23092 \begin_layout Description
23093 newpage 新規頁色
23094 \end_layout
23095
23096 \begin_layout Description
23097 nonunique_inlinecompletion 行内補完の一意でない部分の色
23098 \end_layout
23099
23100 \begin_layout Description
23101 notebg 註釈の背景色
23102 \end_layout
23103
23104 \begin_layout Description
23105 notelabel 註釈のラベル色
23106 \end_layout
23107
23108 \begin_layout Description
23109 pagebreak 改頁/改行色
23110 \end_layout
23111
23112 \begin_layout Description
23113 paragraphmarker 段落末を標識するための段落標の色
23114 \end_layout
23115
23116 \begin_layout Description
23117 phantomtext 埋め草差込枠の文字色
23118 \end_layout
23119
23120 \begin_layout Description
23121 preview プレビューに用いられる色
23122 \end_layout
23123
23124 \begin_layout Description
23125 previewframe プレビュー縁色
23126 \end_layout
23127
23128 \begin_layout Description
23129 regexpframe 正規表現枠の色
23130 \end_layout
23131
23132 \begin_layout Description
23133 selection 文章選択部の背景色
23134 \end_layout
23135
23136 \begin_layout Description
23137 selectiontext 文章選択部の前景色
23138 \end_layout
23139
23140 \begin_layout Description
23141 shadedbg 影付きボックスの背景色
23142 \end_layout
23143
23144 \begin_layout Description
23145 special 特殊文字の色
23146 \end_layout
23147
23148 \begin_layout Description
23149 tabularline 罫線色
23150 \end_layout
23151
23152 \begin_layout Description
23153 tabularonoffline 罫線色
23154 \end_layout
23155
23156 \begin_layout Description
23157 urllabel URL差込枠のラベル色
23158 \end_layout
23159
23160 \begin_layout Description
23161 urltext URL差込枠の文字色
23162 \end_layout
23163
23164 \end_body
23165 \end_document