]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
Math.lyx: correct wrong info about \mathindent
[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 LaTeXの設定
438 \end_layout
439
440 \end_inset
441
442 で見ることができます.
443 \end_layout
444
445 \begin_layout Labeling
446 \labelwidthstring 00.00.0000
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 textclass.lst
452 \end_layout
453
454 \end_inset
455
456  ユーザの
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 Plain L
462 \end_layout
463
464 \end_inset
465
466 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
467 文書クラスおよびその説明の一覧です.
468 \end_layout
469
470 \begin_layout Labeling
471 \labelwidthstring 00.00.0000
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 lyxmodules.lst
477 \end_layout
478
479 \end_inset
480
481  ユーザの
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 layout/
487 \end_layout
488
489 \end_inset
490
491 ディレクトリで検出されたレイアウトモジュールの一覧です.
492 \end_layout
493
494 \begin_layout Labeling
495 \labelwidthstring 00.00.0000
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 *files.lst
501 \end_layout
502
503 \end_inset
504
505  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
506 関連ファイルの一覧です.
507 \end_layout
508
509 \begin_layout Labeling
510 \labelwidthstring 00.00.0000
511 \begin_inset Flex Code
512 status collapsed
513
514 \begin_layout Plain Layout
515 doc/LaTeXConfig.lyx
516 \end_layout
517
518 \end_inset
519
520  このファイルは,自動設定中に
521 \begin_inset Flex Code
522 status collapsed
523
524 \begin_layout Plain Layout
525 LaTeXConfig.lyx.in
526 \end_layout
527
528 \end_inset
529
530 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
531 の設定に関する情報が納められています.
532 \end_layout
533
534 \begin_layout Subsection
535 ディレクトリ
536 \end_layout
537
538 \begin_layout Standard
539 以下の各ディレクトリは,
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 LyXDir
545 \end_layout
546
547 \end_inset
548
549
550 \begin_inset Flex Code
551 status collapsed
552
553 \begin_layout Plain Layout
554 UserDir
555 \end_layout
556
557 \end_inset
558
559 に重複して存在します.特定のファイルが両方の場所にある場合には,
560 \begin_inset Flex Code
561 status collapsed
562
563 \begin_layout Plain Layout
564 UserDir
565 \end_layout
566
567 \end_inset
568
569 の方にあるものが使用されます.
570 \end_layout
571
572 \begin_layout Labeling
573 \labelwidthstring 00.00.0000
574 \begin_inset Flex Code
575 status collapsed
576
577 \begin_layout Plain Layout
578 bind/
579 \end_layout
580
581 \end_inset
582
583  このディレクトリには,\SpecialChar LyX
584 で使用されるキー割当を定義している,拡張子が
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 .bind
590 \end_layout
591
592 \end_inset
593
594 のファイルが置かれています.
595 \begin_inset Flex Code
596 status collapsed
597
598 \begin_layout Plain Layout
599 $LANG_xxx.bind
600 \end_layout
601
602 \end_inset
603
604 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
605 \end_layout
606
607 \begin_layout Labeling
608 \labelwidthstring 00.00.0000
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613 clipart/
614 \end_layout
615
616 \end_inset
617
618  このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
619 \end_layout
620
621 \begin_layout Labeling
622 \labelwidthstring 00.00.0000
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 doc/
628 \end_layout
629
630 \end_inset
631
632  このディレクトリには,\SpecialChar LyX
633 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638 LaTeXConfig.lyx
639 \end_layout
640
641 \end_inset
642
643 ファイルは特に注目に値します.各国語版のヘルプ文書は,
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 doc/xx
649 \end_layout
650
651 \end_inset
652
653 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
654 \begin_inset CommandInset ref
655 LatexCommand ref
656 reference "cha:LyXの各国語対応"
657
658 \end_inset
659
660 をご覧ください.
661 \end_layout
662
663 \begin_layout Labeling
664 \labelwidthstring 00.00.0000
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 examples/
670 \end_layout
671
672 \end_inset
673
674  このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
675 \begin_inset Flex MenuItem
676 status collapsed
677
678 \begin_layout Plain Layout
679 用例
680 \end_layout
681
682 \end_inset
683
684 ボタンを押すと,このディレクトリが表示されます.
685 \end_layout
686
687 \begin_layout Labeling
688 \labelwidthstring 00.00.0000
689 \begin_inset Flex Code
690 status collapsed
691
692 \begin_layout Plain Layout
693 images/
694 \end_layout
695
696 \end_inset
697
698  このディレクトリには,
699 \begin_inset Flex MenuItem
700 status collapsed
701
702 \begin_layout Plain Layout
703 文書
704 \end_layout
705
706 \end_inset
707
708 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
709 を起動したときに現れるバナーも納められています.
710 \end_layout
711
712 \begin_layout Labeling
713 \labelwidthstring 00.00.0000
714 \begin_inset Flex Code
715 status collapsed
716
717 \begin_layout Plain Layout
718 kbd/
719 \end_layout
720
721 \end_inset
722
723  このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
724 \begin_inset CommandInset ref
725 LatexCommand ref
726 reference "sec:国際キー配列"
727
728 \end_inset
729
730 をご覧ください.
731 \end_layout
732
733 \begin_layout Labeling
734 \labelwidthstring 00.00.0000
735 \begin_inset Flex Code
736 status collapsed
737
738 \begin_layout Plain Layout
739 layouts/
740 \end_layout
741
742 \end_inset
743
744  このディレクトリには,
745 \begin_inset CommandInset ref
746 LatexCommand ref
747 reference "cha:新規文書を導入"
748
749 \end_inset
750
751 に述べられているテキストクラスおよびモジュールのファイルが納められています.
752 \end_layout
753
754 \begin_layout Labeling
755 \labelwidthstring 00.00.0000
756 \begin_inset Flex Code
757 status collapsed
758
759 \begin_layout Plain Layout
760 lyx2lyx
761 \end_layout
762
763 \end_inset
764
765  このディレクトリには,\SpecialChar LyX
766 の各バージョン間の変換に使用される
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 lyx2lyx
772 \end_layout
773
774 \end_inset
775
776  Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
777 \end_layout
778
779 \begin_layout Labeling
780 \labelwidthstring 00.00.0000
781 \begin_inset Flex Code
782 status collapsed
783
784 \begin_layout Plain Layout
785 scripts/
786 \end_layout
787
788 \end_inset
789
790  このディレクトリには,
791 \begin_inset Flex MenuItem
792 status collapsed
793
794 \begin_layout Plain Layout
795 外用ひな型
796 \end_layout
797
798 \end_inset
799
800 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
801 自身が使用するスクリプトもいくつか収められています.
802 \end_layout
803
804 \begin_layout Labeling
805 \labelwidthstring 00.00.0000
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810 templates/
811 \end_layout
812
813 \end_inset
814
815  このディレクトリには,
816 \begin_inset CommandInset ref
817 LatexCommand ref
818 reference "sec:ひな型を作成する"
819
820 \end_inset
821
822 で述べられている標準の\SpecialChar LyX
823 ひな型ファイルが納められています.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 ui/
833 \end_layout
834
835 \end_inset
836
837  このディレクトリには,\SpecialChar LyX
838 の操作画面を定義する拡張子
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 .ui
844 \end_layout
845
846 \end_inset
847
848 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
849 \end_layout
850
851 \begin_layout Subsection
852 変更を加えない方がよいファイル
853 \end_layout
854
855 \begin_layout Standard
856 これらのファイルは\SpecialChar LyX
857 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
858 \end_layout
859
860 \begin_layout Labeling
861 \labelwidthstring 00.00.0000
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 CREDITS
867 \end_layout
868
869 \end_inset
870
871  このファイルは,\SpecialChar LyX
872 開発陣の名簿です.この内容は,メニュー項目
873 \begin_inset Flex MenuItem
874 status collapsed
875
876 \begin_layout Plain Layout
877 ヘルプ\SpecialChar menuseparator
878 LyXについて
879 \end_layout
880
881 \end_inset
882
883 で表示されます.
884 \end_layout
885
886 \begin_layout Labeling
887 \labelwidthstring 00.00.0000
888 \begin_inset Flex Code
889 status collapsed
890
891 \begin_layout Plain Layout
892 chkconfig.ltx
893 \end_layout
894
895 \end_inset
896
897  これは,自動設定プロセスによって使用される\SpecialChar LaTeX
898 スクリプトです.直接実行しないでください.
899 \end_layout
900
901 \begin_layout Labeling
902 \labelwidthstring 00.00.0000
903 \begin_inset Flex Code
904 status collapsed
905
906 \begin_layout Plain Layout
907 configure.py
908 \end_layout
909
910 \end_inset
911
912  これは,\SpecialChar LyX
913 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
914 \end_layout
915
916 \begin_layout Subsection
917 ひとこと必要なファイル群
918 \end_layout
919
920 \begin_layout Labeling
921 \labelwidthstring 00.00.0000
922 \begin_inset Flex Code
923 status collapsed
924
925 \begin_layout Plain Layout
926 encodings
927 \end_layout
928
929 \end_inset
930
931  このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
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 external_templates
941 \end_layout
942
943 \end_inset
944
945  このファイルには,新しく導入された
946 \begin_inset Flex MenuItem
947 status collapsed
948
949 \begin_layout Plain Layout
950 外用ひな型
951 \end_layout
952
953 \end_inset
954
955 機能で使用できるひな型が載っています.
956 \begin_inset CommandInset ref
957 LatexCommand ref
958 reference "chap:外部素材を取り込む"
959
960 \end_inset
961
962 を参照のこと.
963 \end_layout
964
965 \begin_layout Labeling
966 \labelwidthstring 00.00.0000
967 \begin_inset Flex Code
968 status collapsed
969
970 \begin_layout Plain Layout
971 languages
972 \end_layout
973
974 \end_inset
975
976  このファイルには,現在\SpecialChar LyX
977 がサポートしている言語の全一覧が載っています.
978 \end_layout
979
980 \begin_layout Labeling
981 \labelwidthstring 00.00.0000
982 \begin_inset Flex Code
983 status collapsed
984
985 \begin_layout Plain Layout
986 latexfonts
987 \end_layout
988
989 \end_inset
990
991  サポートされているフォントに関する情報が掲載されています.
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 layouttranslations
1001 \end_layout
1002
1003 \end_inset
1004
1005  このファイルは,国際化された段落様式の翻訳が収録されています(
1006 \begin_inset CommandInset ref
1007 LatexCommand ref
1008 reference "subsec:段落様式の国際化"
1009
1010 \end_inset
1011
1012 参照).
1013 \end_layout
1014
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 unicodesymbols
1022 \end_layout
1023
1024 \end_inset
1025
1026  このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1027 が\SpecialChar LaTeX
1028 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1029 \end_layout
1030
1031 \begin_layout Section
1032 ユーザのローカル設定ディレクトリ
1033 \end_layout
1034
1035 \begin_layout Standard
1036 \SpecialChar LyX
1037 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1038 の設定を変更したいと思うかもしれません.
1039 \begin_inset Flex Code
1040 status collapsed
1041
1042 \begin_layout Plain Layout
1043 UserDir
1044 \end_layout
1045
1046 \end_inset
1047
1048 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1049 \begin_inset Flex MenuItem
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 ヘルプ\SpecialChar menuseparator
1054 LyXについて
1055 \end_layout
1056
1057 \end_inset
1058
1059 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1060 \begin_inset Flex Code
1061 status collapsed
1062
1063 \begin_layout Plain Layout
1064 LyXDir
1065 \end_layout
1066
1067 \end_inset
1068
1069 のミラーとして使用されており,これは
1070 \begin_inset Flex Code
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074 UserDir
1075 \end_layout
1076
1077 \end_inset
1078
1079 内のすべてのファイルが,
1080 \begin_inset Flex Code
1081 status collapsed
1082
1083 \begin_layout Plain Layout
1084 LyXDir
1085 \end_layout
1086
1087 \end_inset
1088
1089 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1090 \end_layout
1091
1092 \begin_layout Standard
1093 わかりやすくするために,いくつか例を挙げましょう.
1094 \end_layout
1095
1096 \begin_layout Itemize
1097 \begin_inset Flex MenuItem
1098 status collapsed
1099
1100 \begin_layout Plain Layout
1101 ツール\SpecialChar menuseparator
1102 設定
1103 \end_layout
1104
1105 \end_inset
1106
1107 ダイアログで設定されるユーザ設定は,
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 UserDir
1113 \end_layout
1114
1115 \end_inset
1116
1117 中の
1118 \begin_inset Flex Code
1119 status collapsed
1120
1121 \begin_layout Plain Layout
1122 preferences
1123 \end_layout
1124
1125 \end_inset
1126
1127 ファイルに保存されます.
1128 \end_layout
1129
1130 \begin_layout Itemize
1131 \begin_inset Flex MenuItem
1132 status collapsed
1133
1134 \begin_layout Plain Layout
1135 ツール\SpecialChar menuseparator
1136 環境構成
1137 \end_layout
1138
1139 \end_inset
1140
1141 を使用して環境構成を行うと,\SpecialChar LyX
1142
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 configure.py
1148 \end_layout
1149
1150 \end_inset
1151
1152 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 UserDir/layouts
1158 \end_layout
1159
1160 \end_inset
1161
1162 にご自身で追加したテキストファイルは,
1163 \begin_inset Flex MenuItem
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 文書\SpecialChar menuseparator
1168 設定
1169 \end_layout
1170
1171 \end_inset
1172
1173 ダイアログのクラス一覧に表示されるようになることを意味します.
1174 \end_layout
1175
1176 \begin_layout Itemize
1177 たとえば,\SpecialChar LyX
1178 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1179 れらのファイルを
1180 \begin_inset Flex Code
1181 status collapsed
1182
1183 \begin_layout Plain Layout
1184 UserDir/doc/
1185 \end_layout
1186
1187 \end_inset
1188
1189 ディレクトリにコピーすれば,
1190 \begin_inset Flex MenuItem
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 ヘルプ
1195 \end_layout
1196
1197 \end_inset
1198
1199 メニュー項目はこれらを開くようになります!
1200 \end_layout
1201
1202 \begin_layout Section
1203 \SpecialChar LyX
1204 を複数の設定を使って実行するには
1205 \end_layout
1206
1207 \begin_layout Standard
1208 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1209 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1210 どのディレクトリを使用するか指定するのです.
1211 \end_layout
1212
1213 \begin_layout Standard
1214 \SpecialChar LyX
1215 をコマンドラインスイッチ
1216 \begin_inset Flex Code
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 -userdir
1221 \end_layout
1222
1223 \end_inset
1224
1225 P
1226 \emph on
1227 <ディレクトリ名>
1228 \emph default
1229 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1230
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 -userdir
1236 \end_layout
1237
1238 \end_inset
1239
1240 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1241 は,初めて\SpecialChar LyX
1242 を実行したときに既定ディレクトリを訊い
1243 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1244 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1245 \begin_inset Flex Code
1246 status collapsed
1247
1248 \begin_layout Plain Layout
1249 LYX_USERDIR_20x
1250 \end_layout
1251
1252 \end_inset
1253
1254 を特定の値に設定しても,全く同じ効果があります.
1255 \end_layout
1256
1257 \begin_layout Standard
1258 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1259 \begin_inset Flex Code
1260 status collapsed
1261
1262 \begin_layout Plain Layout
1263 NewUserDir/layouts
1264 \end_layout
1265
1266 \end_inset
1267
1268 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1269 クを使用してください.\SpecialChar LyX
1270 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1271 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 doc/
1277 \end_layout
1278
1279 \end_inset
1280
1281 サブディレクトリには,設定スクリプト(
1282 \begin_inset Flex MenuItem
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 ツール\SpecialChar menuseparator
1287 環境構成
1288 \end_layout
1289
1290 \end_inset
1291
1292 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1293 \end_layout
1294
1295 \begin_layout Chapter
1296 設定ダイアログ
1297 \end_layout
1298
1299 \begin_layout Standard
1300 設定ダイアログのオプションのすべては,
1301 \emph on
1302 ユーザーの手引き
1303 \emph default
1304 の付録
1305 \emph on
1306 設定ダイアログ
1307 \emph default
1308 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1309 \end_layout
1310
1311 \begin_layout Section
1312 ファイル形式
1313 \begin_inset CommandInset label
1314 LatexCommand label
1315 name "sec:ファイル形式"
1316
1317 \end_inset
1318
1319
1320 \end_layout
1321
1322 \begin_layout Standard
1323 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1324 \begin_inset Flex MenuItem
1325 status collapsed
1326
1327 \begin_layout Plain Layout
1328 ツール\SpecialChar menuseparator
1329 設定
1330 \end_layout
1331
1332 \end_inset
1333
1334 ダイアログを開いてください.
1335 \begin_inset Flex MenuItem
1336 status collapsed
1337
1338 \begin_layout Plain Layout
1339 ファイル処理\SpecialChar menuseparator
1340 ファイル形式
1341 \end_layout
1342
1343 \end_inset
1344
1345 の中で
1346 \begin_inset Flex MenuItem
1347 status collapsed
1348
1349 \begin_layout Plain Layout
1350 新規\SpecialChar ldots
1351
1352 \end_layout
1353
1354 \end_inset
1355
1356 ボタンを押して,登録する新しい形式を定義してください.
1357 \begin_inset Flex MenuItem
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 形式
1362 \end_layout
1363
1364 \end_inset
1365
1366 フィールドは,GUI中で形式を認識するために用いられる名称です.
1367 \begin_inset Flex MenuItem
1368 status collapsed
1369
1370 \begin_layout Plain Layout
1371 短縮名
1372 \end_layout
1373
1374 \end_inset
1375
1376 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1377 \begin_inset Flex MenuItem
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381 捷径
1382 \end_layout
1383
1384 \end_inset
1385
1386 フィールドは,メニュー中で
1387 \begin_inset Flex Ruby
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391 捷径
1392 \begin_inset Argument post:1
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 ショートカット
1397 \end_layout
1398
1399 \end_inset
1400
1401
1402 \end_layout
1403
1404 \end_inset
1405
1406 を提供するのに使用されます(たとえば,
1407 \begin_inset Flex MenuItem
1408 status collapsed
1409
1410 \begin_layout Plain Layout
1411 Ctrl+D
1412 \end_layout
1413
1414 \end_inset
1415
1416 を押すと
1417 \begin_inset Flex MenuItem
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421 表示\SpecialChar menuseparator
1422 DVI
1423 \end_layout
1424
1425 \end_inset
1426
1427 となります).
1428 \end_layout
1429
1430 \begin_layout Standard
1431 形式には,
1432 \begin_inset Flex MenuItem
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 閲覧プログラム
1437 \end_layout
1438
1439 \end_inset
1440
1441
1442 \begin_inset Flex MenuItem
1443 status collapsed
1444
1445 \begin_layout Plain Layout
1446 編集プログラム
1447 \end_layout
1448
1449 \end_inset
1450
1451 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1452 \begin_inset Flex MenuItem
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456 Ghostview
1457 \end_layout
1458
1459 \end_inset
1460
1461 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1462 いることができます.この閲覧プログラムは,\SpecialChar LyX
1463 中で画像を閲覧したり
1464 \begin_inset Flex MenuItem
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468 表示
1469 \end_layout
1470
1471 \end_inset
1472
1473 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1474 \begin_inset Flex MenuItem
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 外部で編集
1479 \end_layout
1480
1481 \end_inset
1482
1483 を選択したときに起動します.
1484 \end_layout
1485
1486 \begin_layout Standard
1487 ファイル形式の
1488 \begin_inset Flex MenuItem
1489 status collapsed
1490
1491 \begin_layout Plain Layout
1492 MIME
1493 \end_layout
1494
1495 \end_inset
1496
1497 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1498 ます.重要なファイル形式のうちには,
1499 \begin_inset CommandInset href
1500 LatexCommand href
1501 name "IANA"
1502 target "http://www.iana.org/assignments/media-types/"
1503
1504 \end_inset
1505
1506 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1507 は,
1508 \begin_inset CommandInset href
1509 LatexCommand href
1510 name "freedesktop.org"
1511 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1512
1513 \end_inset
1514
1515 で指定されているMIME型拡張表を使用しています.
1516 \end_layout
1517
1518 \begin_layout Standard
1519 \begin_inset Flex MenuItem
1520 status collapsed
1521
1522 \begin_layout Plain Layout
1523 文書形式
1524 \end_layout
1525
1526 \end_inset
1527
1528 オプションは,\SpecialChar LyX
1529 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1530 \begin_inset CommandInset ref
1531 LatexCommand ref
1532 reference "sec:変換子"
1533
1534 \end_inset
1535
1536 節を参照),この形式が
1537 \begin_inset Flex MenuItem
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 ファイル\SpecialChar menuseparator
1542 書き出し
1543 \end_layout
1544
1545 \end_inset
1546
1547
1548 \begin_inset Flex MenuItem
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552 表示
1553 \end_layout
1554
1555 \end_inset
1556
1557 footlabel Label color for footnotす.
1558 \begin_inset Flex Code
1559 status collapsed
1560
1561 \begin_layout Plain Layout
1562 png
1563 \end_layout
1564
1565 \end_inset
1566
1567 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1568 \begin_inset Flex Code
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 pdf
1573 \end_layout
1574
1575 \end_inset
1576
1577 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1578 \end_layout
1579
1580 \begin_layout Standard
1581 \begin_inset Flex MenuItem
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 ベクター画像形式
1586 \end_layout
1587
1588 \end_inset
1589
1590 オプションは,\SpecialChar LyX
1591 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1592 \begin_inset Flex MenuItem
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 pdflatex
1597 \end_layout
1598
1599 \end_inset
1600
1601 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1602 \begin_inset Flex MenuItem
1603 status collapsed
1604
1605 \begin_layout Plain Layout
1606 pdflatex
1607 \end_layout
1608
1609 \end_inset
1610
1611 は,
1612 \begin_inset Flex MenuItem
1613 status collapsed
1614
1615 \begin_layout Plain Layout
1616 pdf
1617 \end_layout
1618
1619 \end_inset
1620
1621
1622 \begin_inset Flex MenuItem
1623 status collapsed
1624
1625 \begin_layout Plain Layout
1626 png
1627 \end_layout
1628
1629 \end_inset
1630
1631
1632 \begin_inset Flex MenuItem
1633 status collapsed
1634
1635 \begin_layout Plain Layout
1636 Des
1637 \end_layout
1638
1639 \end_inset
1640
1641 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1642 \begin_inset Flex MenuItem
1643 status collapsed
1644
1645 \begin_layout Plain Layout
1646 pdf
1647 \end_layout
1648
1649 \end_inset
1650
1651
1652 \begin_inset Flex MenuItem
1653 status collapsed
1654
1655 \begin_layout Plain Layout
1656 png
1657 \end_layout
1658
1659 \end_inset
1660
1661
1662 \begin_inset Flex MenuItem
1663 status collapsed
1664
1665 \begin_layout Plain Layout
1666 jpg
1667 \end_layout
1668
1669 \end_inset
1670
1671 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1672 \begin_inset Flex MenuItem
1673 status collapsed
1674
1675 \begin_layout Plain Layout
1676 pdf
1677 \end_layout
1678
1679 \end_inset
1680
1681 に変換され,そうでない場合には
1682 \begin_inset Flex MenuItem
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 png
1687 \end_layout
1688
1689 \end_inset
1690
1691 に変換されます.
1692 \end_layout
1693
1694 \begin_layout Section
1695 複写子
1696 \end_layout
1697
1698 \begin_layout Standard
1699 形式の変換はすべて,\SpecialChar LyX
1700 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1701 \begin_inset Foot
1702 status collapsed
1703
1704 \begin_layout Plain Layout
1705 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1706 あります.
1707 \end_layout
1708
1709 \end_inset
1710
1711 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1712 \end_layout
1713
1714 \begin_layout Standard
1715 複写子の定義においては,以下の8つの変数を用いることができます.
1716 \end_layout
1717
1718 \begin_layout Labeling
1719 \labelwidthstring 00.00.0000
1720 \begin_inset Flex Code
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 $$s
1725 \end_layout
1726
1727 \end_inset
1728
1729  \SpecialChar LyX
1730 のシステムディレクトリ(例:
1731 \begin_inset Flex MenuItem
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 /usr/share/lyx
1736 \end_layout
1737
1738 \end_inset
1739
1740
1741 \end_layout
1742
1743 \begin_layout Labeling
1744 \labelwidthstring 00.00.0000
1745 \begin_inset Flex Code
1746 status collapsed
1747
1748 \begin_layout Plain Layout
1749 $$i
1750 \end_layout
1751
1752 \end_inset
1753
1754  入力ファイル
1755 \end_layout
1756
1757 \begin_layout Labeling
1758 \labelwidthstring 00.00.0000
1759 \begin_inset Flex Code
1760 status collapsed
1761
1762 \begin_layout Plain Layout
1763 $$o
1764 \end_layout
1765
1766 \end_inset
1767
1768  出力ファイル
1769 \end_layout
1770
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1773 \begin_inset Flex Code
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 $$b
1778 \end_layout
1779
1780 \end_inset
1781
1782  \SpecialChar LyX
1783 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1784 \end_layout
1785
1786 \begin_layout Labeling
1787 \labelwidthstring 00.00.0000
1788 \begin_inset Flex Code
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 $$p
1793 \end_layout
1794
1795 \end_inset
1796
1797  \SpecialChar LyX
1798 一時ディレクトリのフルパス名
1799 \end_layout
1800
1801 \begin_layout Labeling
1802 \labelwidthstring 00.00.0000
1803 \begin_inset Flex Code
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 $$r
1808 \end_layout
1809
1810 \end_inset
1811
1812  処理されている元の\SpecialChar LyX
1813 ファイルのフルパス名
1814 \end_layout
1815
1816 \begin_layout Labeling
1817 \labelwidthstring 00.00.0000
1818 \begin_inset Flex Code
1819 status collapsed
1820
1821 \begin_layout Plain Layout
1822 $$f
1823 \end_layout
1824
1825 \end_inset
1826
1827  \SpecialChar LyX
1828 ファイルのファイル名(ディレクトリパスなし)
1829 \end_layout
1830
1831 \begin_layout Labeling
1832 \labelwidthstring 00.00.0000
1833 \begin_inset Flex Code
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 $$l
1838 \end_layout
1839
1840 \end_inset
1841
1842  「\SpecialChar LaTeX
1843 名」
1844 \end_layout
1845
1846 \begin_layout Standard
1847 最後の変数は,\SpecialChar LaTeX
1848
1849 \series bold
1850
1851 \backslash
1852 include
1853 \series default
1854 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1855 \end_layout
1856
1857 \begin_layout Standard
1858 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1859 \begin_inset Flex Code
1860 status collapsed
1861
1862 \begin_layout Plain Layout
1863 /home/you/pdf/
1864 \end_layout
1865
1866 \end_inset
1867
1868 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1869 \end_layout
1870
1871 \begin_layout Standard
1872 \begin_inset listings
1873 inline false
1874 status open
1875
1876 \begin_layout Plain Layout
1877
1878 #!/bin/bash
1879 \end_layout
1880
1881 \begin_layout Plain Layout
1882
1883 FROMFILE=$1
1884 \end_layout
1885
1886 \begin_layout Plain Layout
1887
1888 TOFILE=`basename $2`
1889 \end_layout
1890
1891 \begin_layout Plain Layout
1892
1893 DescriptionE /home/you/pdf/$TOFILE
1894 \end_layout
1895
1896 \end_inset
1897
1898 これを,例えば
1899 \begin_inset Flex Code
1900 status collapsed
1901
1902 \begin_layout Plain Layout
1903 /home/you/.lyx/scripts/pdfcopier.sh
1904 \end_layout
1905
1906 \end_inset
1907
1908 のような,自身のローカル\SpecialChar LyX
1909 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1910 \begin_inset Flex MenuItem
1911 status collapsed
1912
1913 \begin_layout Plain Layout
1914 ツール\SpecialChar menuseparator
1915 設定
1916 \end_layout
1917
1918 \end_inset
1919
1920 ダイアログの
1921 \begin_inset Flex MenuItem
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 ファイル処理\SpecialChar menuseparator
1926 ファイル形式
1927 \end_layout
1928
1929 \end_inset
1930
1931 の中で,
1932 \begin_inset Flex MenuItem
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 PDF(pdflatex)
1937 \end_layout
1938
1939 \end_inset
1940
1941 形式—あるいは他のPDF形式のうちどれか—を選択し,
1942 \begin_inset Flex MenuItem
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 複写子
1947 \end_layout
1948
1949 \end_inset
1950
1951 フィールドに
1952 \begin_inset Flex Code
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 pdfcopier.sh $$i $$o
1957 \end_layout
1958
1959 \end_inset
1960
1961 と入力します.
1962 \end_layout
1963
1964 \begin_layout Standard
1965 複写子は,\SpecialChar LyX
1966 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
1967 は自動的に
1968 \begin_inset Flex MenuItem
1969 status collapsed
1970
1971 \begin_layout Plain Layout
1972 HTML
1973 \end_layout
1974
1975 \end_inset
1976
1977 形式と
1978 \begin_inset Flex MenuItem
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982 HTML
1983 \begin_inset space ~
1984 \end_inset
1985
1986 (MS Word)
1987 \end_layout
1988
1989 \end_inset
1990
1991 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1992 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
1993 ファイルのあるディレクトリのサブディレクトリに書き込まれます.
1994 \begin_inset Foot
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
1999 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2000 \begin_inset Flex MenuItem
2001 status collapsed
2002
2003 \begin_layout Plain Layout
2004 LyXconv
2005 \end_layout
2006
2007 \end_inset
2008
2009 」となっているので,
2010 \begin_inset Flex MenuItem
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014 /path/to/filename.lyx
2015 \end_layout
2016
2017 \end_inset
2018
2019 から生成されたHTMLファイルは,
2020 \begin_inset Flex MenuItem
2021 status collapsed
2022
2023 \begin_layout Plain Layout
2024 /path/to/filename.html.LyXconv
2025 \end_layout
2026
2027 \end_inset
2028
2029 となります..
2030  
2031 \end_layout
2032
2033 \end_inset
2034
2035
2036 \end_layout
2037
2038 \begin_layout Section
2039 変換子
2040 \begin_inset CommandInset label
2041 LatexCommand label
2042 name "sec:変換子"
2043
2044 \end_inset
2045
2046
2047 \end_layout
2048
2049 \begin_layout Standard
2050 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2051 \begin_inset Flex MenuItem
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055 ツール\SpecialChar menuseparator
2056 設定\SpecialChar menuseparator
2057 ファイル処理\SpecialChar menuseparator
2058 変換子
2059 \end_layout
2060
2061 \end_inset
2062
2063 ダイアログで行います.
2064 \end_layout
2065
2066 \begin_layout Standard
2067 新規に変換子を定義するには,ドロップダウンリストから
2068 \begin_inset Flex MenuItem
2069 status collapsed
2070
2071 \begin_layout Plain Layout
2072 変換元の形式
2073 \end_layout
2074
2075 \end_inset
2076
2077
2078 \begin_inset Flex MenuItem
2079 status collapsed
2080
2081 \begin_layout Plain Layout
2082 変換先の形式
2083 \end_layout
2084
2085 \end_inset
2086
2087 を選択し,変換に必要なコマンドを入力してから
2088 \begin_inset Flex MenuItem
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 追加
2093 \end_layout
2094
2095 \end_inset
2096
2097 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2098 \end_layout
2099
2100 \begin_layout Labeling
2101 \labelwidthstring 00.00.0000
2102 \begin_inset Flex Code
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 $$s
2107 \end_layout
2108
2109 \end_inset
2110
2111  \SpecialChar LyX
2112 システムディレクトリ
2113 \end_layout
2114
2115 \begin_layout Labeling
2116 \labelwidthstring 00.00.0000
2117 \begin_inset Flex Code
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121 $$i
2122 \end_layout
2123
2124 \end_inset
2125
2126  入力ファイル
2127 \end_layout
2128
2129 \begin_layout Labeling
2130 \labelwidthstring 00.00.0000
2131 \begin_inset Flex Code
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135 $$o
2136 \end_layout
2137
2138 \end_inset
2139
2140  出力ファイル
2141 \end_layout
2142
2143 \begin_layout Labeling
2144 \labelwidthstring 00.00.0000
2145 \begin_inset Flex Code
2146 status collapsed
2147
2148 \begin_layout Plain Layout
2149 $$b
2150 \end_layout
2151
2152 \end_inset
2153
2154  入力ファイルのベースファイル名(拡張子をとった部分)
2155 \end_layout
2156
2157 \begin_layout Labeling
2158 \labelwidthstring 00.00.0000
2159 \begin_inset Flex Code
2160 status collapsed
2161
2162 \begin_layout Plain Layout
2163 $$p
2164 \end_layout
2165
2166 \end_inset
2167
2168  入力ファイルのパス
2169 \end_layout
2170
2171 \begin_layout Labeling
2172 \labelwidthstring 00.00.0000
2173 \begin_inset Flex Code
2174 status collapsed
2175
2176 \begin_layout Plain Layout
2177 $$r
2178 \end_layout
2179
2180 \end_inset
2181
2182  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2183 \end_layout
2184
2185 \begin_layout Labeling
2186 \labelwidthstring 00.00.0000
2187 \begin_inset Flex Code
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191 $$e
2192 \end_layout
2193
2194 \end_inset
2195
2196  文書エンコーディングのiconv名
2197 \end_layout
2198
2199 \begin_layout Standard
2200 \begin_inset Flex MenuItem
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 追加フラグ
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 latex
2219 \end_layout
2220
2221 \end_inset
2222
2223  この変換子が\SpecialChar LaTeX
2224 の一種を実行することを示します.これによって,\SpecialChar LyX
2225 の\SpecialChar LaTeX
2226 エラーログに記録を残せるようになります.
2227 \end_layout
2228
2229 \begin_layout Labeling
2230 \labelwidthstring 00.00.0000
2231 \begin_inset Flex Code
2232 status collapsed
2233
2234 \begin_layout Plain Layout
2235 needaux
2236 \end_layout
2237
2238 \end_inset
2239
2240  変換に\SpecialChar LaTeX
2241
2242 \begin_inset Flex MenuItem
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 .aux
2247 \end_layout
2248
2249 \end_inset
2250
2251 ファイルが必要であることを示します.
2252 \end_layout
2253
2254 \begin_layout Labeling
2255 \labelwidthstring 00.00.0000
2256 \begin_inset Flex Code
2257 status collapsed
2258
2259 \begin_layout Plain Layout
2260 nice
2261 \end_layout
2262
2263 \end_inset
2264
2265  バックエンドからの
2266 \begin_inset Quotes erd
2267 \end_inset
2268
2269 nice
2270 \begin_inset Quotes erd
2271 \end_inset
2272
2273 なファイル,つまり\SpecialChar LyX
2274 が書き出す\SpecialChar LaTeX
2275 ファイルのように,
2276 \begin_inset Flex Code
2277 status open
2278
2279 \begin_layout Plain Layout
2280 input@path
2281 \end_layout
2282
2283 \end_inset
2284
2285 のない\SpecialChar LaTeX
2286 ファイルを必要とします.
2287 \end_layout
2288
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Flex Code
2292 status collapsed
2293
2294 \begin_layout Plain Layout
2295 xml
2296 \end_layout
2297
2298 \end_inset
2299
2300  出力がXMLであることを示します.
2301 \end_layout
2302
2303 \begin_layout Standard
2304 以下の3つのフラグは 
2305 \begin_inset Flex MenuItem
2306 status collapsed
2307
2308 \begin_layout Plain Layout
2309 key
2310 \begin_inset space ~
2311 \end_inset
2312
2313 =
2314 \begin_inset space ~
2315 \end_inset
2316
2317 value
2318 \end_layout
2319
2320 \end_inset
2321
2322 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2323 \end_layout
2324
2325 \begin_layout Labeling
2326 \labelwidthstring 00.00.0000
2327 \begin_inset Flex Code
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331 parselog
2332 \end_layout
2333
2334 \end_inset
2335
2336  これを指定すると,変換子の標準エラーが
2337 \begin_inset Flex Code
2338 status collapsed
2339
2340 \begin_layout Plain Layout
2341 infile.out
2342 \end_layout
2343
2344 \end_inset
2345
2346 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2347 \begin_inset Flex Code
2348 status collapsed
2349
2350 \begin_layout Plain Layout
2351 script < infile.out > infile.log
2352 \end_layout
2353
2354 \end_inset
2355
2356 の形で実行されるようになります.引数には
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 $$s
2362 \end_layout
2363
2364 \end_inset
2365
2366 を指定することができます.
2367 \end_layout
2368
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Flex Code
2372 status collapsed
2373
2374 \begin_layout Plain Layout
2375 resultdir
2376 \end_layout
2377
2378 \end_inset
2379
2380  これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2381 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2382 ピーします.引数には,
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 $$b
2388 \end_layout
2389
2390 \end_inset
2391
2392 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2393 \begin_inset Newline newline
2394 \end_inset
2395
2396 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2397 \end_layout
2398
2399 \begin_layout Labeling
2400 \labelwidthstring 00.00.0000
2401 \begin_inset Flex Code
2402 status collapsed
2403
2404 \begin_layout Plain Layout
2405 resultfile
2406 \end_layout
2407
2408 \end_inset
2409
2410  これは出力ファイル名を指定するもので,
2411 \begin_inset Flex Code
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 $$b
2416 \end_layout
2417
2418 \end_inset
2419
2420 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2421 \end_layout
2422
2423 \begin_layout Standard
2424 最後の3つは,\SpecialChar LyX
2425 とともに導入される変換子には,現在いずれも使用されておりません.
2426 \end_layout
2427
2428 \begin_layout Standard
2429 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2430 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2431 はPostScrip
2432 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2433 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2434 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2435 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2436 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2437 設定は,\SpecialChar LaTeX
2438 からPDFへ変換するのに,以下の3つの方法を
2439 用意しています.
2440 \end_layout
2441
2442 \begin_layout Enumerate
2443 直接
2444 \begin_inset Flex MenuItem
2445 status collapsed
2446
2447 \begin_layout Plain Layout
2448 pdflatex
2449 \end_layout
2450
2451 \end_inset
2452
2453 を使用するもの
2454 \end_layout
2455
2456 \begin_layout Enumerate
2457 (DVIと)PostScriptを経由して
2458 \begin_inset Flex MenuItem
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 ps2pdf
2463 \end_layout
2464
2465 \end_inset
2466
2467 を使用するもの
2468 \end_layout
2469
2470 \begin_layout Enumerate
2471 DVI経由で
2472 \begin_inset Flex MenuItem
2473 status collapsed
2474
2475 \begin_layout Plain Layout
2476 dvipdfm
2477 \end_layout
2478
2479 \end_inset
2480
2481 を使用するもの
2482 \end_layout
2483
2484 \begin_layout Enumerate
2485 直接
2486 \begin_inset Flex MenuItem
2487 status collapsed
2488
2489 \begin_layout Plain Layout
2490 Xe\SpecialChar TeX
2491
2492 \end_layout
2493
2494 \end_inset
2495
2496 を使用するもの
2497 \end_layout
2498
2499 \begin_layout Enumerate
2500 直接
2501 \begin_inset Flex MenuItem
2502 status collapsed
2503
2504 \begin_layout Plain Layout
2505 Lua\SpecialChar TeX
2506
2507 \end_layout
2508
2509 \end_inset
2510
2511 を使用するもの
2512 \end_layout
2513
2514 \begin_layout Standard
2515 このように代替連鎖を定義するには,第
2516 \begin_inset CommandInset ref
2517 LatexCommand ref
2518 reference "sec:ファイル形式"
2519
2520 \end_inset
2521
2522 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2523 \begin_inset Flex MenuItem
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527 pdf
2528 \end_layout
2529
2530 \end_inset
2531
2532 (
2533 \begin_inset Flex MenuItem
2534 status collapsed
2535
2536 \begin_layout Plain Layout
2537 ps2pdf
2538 \end_layout
2539
2540 \end_inset
2541
2542 用)・
2543 \begin_inset Flex MenuItem
2544 status collapsed
2545
2546 \begin_layout Plain Layout
2547 pdf2
2548 \end_layout
2549
2550 \end_inset
2551
2552 (
2553 \begin_inset Flex MenuItem
2554 status collapsed
2555
2556 \begin_layout Plain Layout
2557 pdflatex
2558 \end_layout
2559
2560 \end_inset
2561
2562 用)・
2563 \begin_inset Flex MenuItem
2564 status collapsed
2565
2566 \begin_layout Plain Layout
2567 pdf3
2568 \end_layout
2569
2570 \end_inset
2571
2572 (
2573 \begin_inset Flex MenuItem
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 dvipdfm
2578 \end_layout
2579
2580 \end_inset
2581
2582 用)・
2583 \begin_inset Flex MenuItem
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 pdf4
2588 \end_layout
2589
2590 \end_inset
2591
2592 (
2593 \begin_inset Flex MenuItem
2594 status collapsed
2595
2596 \begin_layout Plain Layout
2597 Xe\SpecialChar TeX
2598
2599 \end_layout
2600
2601 \end_inset
2602
2603 用)・
2604 \begin_inset Flex MenuItem
2605 status collapsed
2606
2607 \begin_layout Plain Layout
2608 pdf5
2609 \end_layout
2610
2611 \end_inset
2612
2613 (
2614 \begin_inset Flex MenuItem
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618 Lua\SpecialChar TeX
2619
2620 \end_layout
2621
2622 \end_inset
2623
2624 用\SpecialChar softhyphen
2625 ) と命名された形式が定義されていて,すべて共通の拡張子
2626 \begin_inset Flex MenuItem
2627 status collapsed
2628
2629 \begin_layout Plain Layout
2630 .pdf
2631 \end_layout
2632
2633 \end_inset
2634
2635 を持ち,上記で言及した各変換方法に対応しています.
2636 \end_layout
2637
2638 \begin_layout Chapter
2639 \SpecialChar LyX
2640 の各国語対応
2641 \begin_inset CommandInset label
2642 LatexCommand label
2643 name "cha:LyXの各国語対応"
2644
2645 \end_inset
2646
2647
2648 \end_layout
2649
2650 \begin_layout Standard
2651 \SpecialChar LyX
2652 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2653 は30言語の翻訳を提供しています.選択した言語は,使用する
2654 \emph on
2655 ロケール
2656 \emph default
2657 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2658 \begin_inset Flex Code
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 locale(5)
2663 \end_layout
2664
2665 \end_inset
2666
2667 から見ると良いかもしれません).
2668 \end_layout
2669
2670 \begin_layout Standard
2671 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2672 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2673 \begin_inset Flex Ruby
2674 status collapsed
2675
2676 \begin_layout Plain Layout
2677 捷径
2678 \begin_inset Argument post:1
2679 status collapsed
2680
2681 \begin_layout Plain Layout
2682 ショートカット
2683 \end_layout
2684
2685 \end_inset
2686
2687
2688 \end_layout
2689
2690 \end_inset
2691
2692 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2693 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2694 \begin_inset Foot
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2699 コミュニティに報いるたいへん素晴らしい方法です!
2700 \end_layout
2701
2702 \end_inset
2703
2704 —は,\SpecialChar LyX
2705 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2706 \end_layout
2707
2708 \begin_layout Section
2709 \SpecialChar LyX
2710 を翻訳する
2711 \end_layout
2712
2713 \begin_layout Subsection
2714 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2715 \begin_inset Argument 1
2716 status collapsed
2717
2718 \begin_layout Plain Layout
2719 GUI(テキストメッセージ)を翻訳する
2720 \end_layout
2721
2722 \end_inset
2723
2724
2725 \end_layout
2726
2727 \begin_layout Standard
2728 \SpecialChar LyX
2729 は,操作画面の国際化対応にGNU 
2730 \begin_inset Flex Code
2731 status collapsed
2732
2733 \begin_layout Plain Layout
2734 gettext
2735 \end_layout
2736
2737 \end_inset
2738
2739 ライブラリを使用します.\SpecialChar LyX
2740 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2741 \begin_inset Flex Code
2742 status collapsed
2743
2744 \begin_layout Plain Layout
2745 po
2746 \end_layout
2747
2748 \end_inset
2749
2750 ファイルが必要です.このファイルが利用可能であれば,そこから
2751 \begin_inset Flex Code
2752 status collapsed
2753
2754 \begin_layout Plain Layout
2755 mo
2756 \end_layout
2757
2758 \end_inset
2759
2760 ファイルを生成して,この
2761 \begin_inset Flex Code
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 mo
2766 \end_layout
2767
2768 \end_inset
2769
2770 ファイルをインストールしなくてはなりません.この全過程は,GNU 
2771 \begin_inset Flex Code
2772 status collapsed
2773
2774 \begin_layout Plain Layout
2775 gettext
2776 \end_layout
2777
2778 \end_inset
2779
2780 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2781 コミュニティの他の人々と分かち
2782 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2783 開発者メーリングリストにメールを送ってください.
2784 \end_layout
2785
2786 \begin_layout Standard
2787 要約すれば,以下のように行います(xxは言語コードを表します).
2788 \end_layout
2789
2790 \begin_layout Itemize
2791 \SpecialChar LyX
2792 ソースコードをチェックアウトしてください(
2793 \begin_inset CommandInset href
2794 LatexCommand href
2795 name "ウェブ上の情報"
2796 target "http://www.lyx.org/HowToUseGIT"
2797
2798 \end_inset
2799
2800 参照).
2801 \end_layout
2802
2803 \begin_layout Itemize
2804 \begin_inset Flex Code
2805 status collapsed
2806
2807 \begin_layout Plain Layout
2808 lyx.pot
2809 \end_layout
2810
2811 \end_inset
2812
2813 ファイルを
2814 \begin_inset Flex Code
2815 status collapsed
2816
2817 \begin_layout Plain Layout
2818 **.po
2819 \end_layout
2820
2821 \end_inset
2822
2823 ファイルのあるフォルダにコピーして,
2824 \begin_inset Flex Code
2825 status collapsed
2826
2827 \begin_layout Plain Layout
2828 xx.po
2829 \end_layout
2830
2831 \end_inset
2832
2833 に名前を付け替えてください(
2834 \begin_inset Flex Code
2835 status collapsed
2836
2837 \begin_layout Plain Layout
2838 lyx.pot
2839 \end_layout
2840
2841 \end_inset
2842
2843 がどこにもない場合には,コンソールからそのディレクトリで
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 make lyx.pot
2849 \end_layout
2850
2851 \end_inset
2852
2853 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2854 \end_layout
2855
2856 \begin_layout Itemize
2857 \begin_inset Flex Code
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861 xx.po
2862 \end_layout
2863
2864 \end_inset
2865
2866 を編集します.
2867 \begin_inset Foot
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2872 \family typewriter
2873 Poedit
2874 \family default
2875 (全プラットフォーム用)や
2876 \family typewriter
2877 KBabel
2878 \family default
2879 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2880 \family typewriter
2881 Emacs
2882 \family default
2883 にも
2884 \begin_inset Flex Code
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888 po
2889 \end_layout
2890
2891 \end_inset
2892
2893 ファイルを編集するための「モード」があります,第
2894 \begin_inset Flex URL
2895 status open
2896
2897 \begin_layout Plain Layout
2898
2899 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2900 \backslash
2901 #PO-Mode
2902 \end_layout
2903
2904 \end_inset
2905
2906
2907 \end_layout
2908
2909 \end_inset
2910
2911 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2912 \begin_inset Flex Ruby
2913 status collapsed
2914
2915 \begin_layout Plain Layout
2916 捷径
2917 \begin_inset Argument post:1
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 ショートカット
2922 \end_layout
2923
2924 \end_inset
2925
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2932 \begin_inset Flex Code
2933 status collapsed
2934
2935 \begin_layout Plain Layout
2936 po
2937 \end_layout
2938
2939 \end_inset
2940
2941 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2942 \end_layout
2943
2944 \begin_layout Standard
2945 もし,あなたがこれを自身のためだけに行っているのであれば,
2946 \end_layout
2947
2948 \begin_layout Itemize
2949 \begin_inset Flex Code
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953 xx.mo
2954 \end_layout
2955
2956 \end_inset
2957
2958 を生成してください.これは
2959 \begin_inset Flex Code
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 msgfmt -o xx.mo < xx.po
2964 \end_layout
2965
2966 \end_inset
2967
2968 でできます.
2969 \end_layout
2970
2971 \begin_layout Itemize
2972 この
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 mo
2978 \end_layout
2979
2980 \end_inset
2981
2982 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
2983 \begin_inset Flex Code
2984 status collapsed
2985
2986 \begin_layout Plain Layout
2987 lyx.mo
2988 \end_layout
2989
2990 \end_inset
2991
2992 という名称にしてください(例:
2993 \begin_inset Flex Code
2994 status collapsed
2995
2996 \begin_layout Plain Layout
2997 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
2998 \end_layout
2999
3000 \end_inset
3001
3002 ).
3003 \end_layout
3004
3005 \begin_layout Standard
3006 しかしながら前述のように,この新しい
3007 \begin_inset Flex Code
3008 status collapsed
3009
3010 \begin_layout Plain Layout
3011 po
3012 \end_layout
3013
3014 \end_inset
3015
3016 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3017 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3018 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3019 グリストに電子メールを送ってください.
3020 \end_layout
3021
3022 \begin_layout Subsubsection
3023 多義訳語メッセージ
3024 \end_layout
3025
3026 \begin_layout Standard
3027 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 To
3033 \end_layout
3034
3035 \end_inset
3036
3037 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU 
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 gettext
3043 \end_layout
3044
3045 \end_inset
3046
3047 は,このような多義訳語を
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 To
3053 \end_layout
3054
3055 \end_inset
3056
3057 の代わりに,
3058 \begin_inset Flex Code
3059 status collapsed
3060
3061 \begin_layout Plain Layout
3062 To[[as in 'From format x to format y']]
3063 \end_layout
3064
3065 \end_inset
3066
3067
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 To[[as in 'From page x to page y']]
3073 \end_layout
3074
3075 \end_inset
3076
3077 としなくてはなりません.これによって,これら2つの
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 To
3083 \end_layout
3084
3085 \end_inset
3086
3087 は,
3088 \begin_inset Flex Code
3089 status collapsed
3090
3091 \begin_layout Plain Layout
3092 gettext
3093 \end_layout
3094
3095 \end_inset
3096
3097 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3098 \end_layout
3099
3100 \begin_layout Standard
3101 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3102 の翻訳機構
3103 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3104 \end_layout
3105
3106 \begin_layout Subsection
3107 説明書を翻訳する
3108 \end_layout
3109
3110 \begin_layout Standard
3111
3112 \begin_inset Flex MenuItem
3113 status collapsed
3114
3115 \begin_layout Plain Layout
3116 Help
3117 \end_layout
3118
3119 \end_inset
3120
3121 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3122 \begin_inset Foot
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3127 \end_layout
3128
3129 \end_inset
3130
3131 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3132 はこれを自動的に使用します.\SpecialChar LyX
3133 は,翻訳版を
3134 \begin_inset Flex Code
3135 status collapsed
3136
3137 \begin_layout Plain Layout
3138 LyXDir/doc/xx/DocName.lyx
3139 \end_layout
3140
3141 \end_inset
3142
3143
3144 \begin_inset Flex Code
3145 status collapsed
3146
3147 \begin_layout Plain Layout
3148 xx
3149 \end_layout
3150
3151 \end_inset
3152
3153 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3154 \begin_inset Flex Code
3155 status collapsed
3156
3157 \begin_layout Plain Layout
3158 DocName
3159 \end_layout
3160
3161 \end_inset
3162
3163 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3164 うべきです.
3165 \end_layout
3166
3167 \begin_layout Itemize
3168 説明書翻訳ウェブページ
3169 \begin_inset CommandInset href
3170 LatexCommand href
3171 name "http://www.lyx.org/Translation"
3172 target "http://www.lyx.org/Translation"
3173
3174 \end_inset
3175
3176 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3177 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3178 \end_layout
3179
3180 \begin_layout Standard
3181 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3182 \end_layout
3183
3184 \begin_layout Itemize
3185 文書化チームに所属してください!そのための情報が
3186 \begin_inset Flex Code
3187 status collapsed
3188
3189 \begin_layout Plain Layout
3190 Intro.lyx
3191 \end_layout
3192
3193 \end_inset
3194
3195
3196 \begin_inset Flex MenuItem
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200 ヘルプ\SpecialChar menuseparator
3201 はじめの一歩
3202 \end_layout
3203
3204 \end_inset
3205
3206 )にあります.また,この
3207 \begin_inset Flex Code
3208 status collapsed
3209
3210 \begin_layout Plain Layout
3211 Intro.lyx
3212 \end_layout
3213
3214 \end_inset
3215
3216 が最初に訳すべき文書です.
3217 \end_layout
3218
3219 \begin_layout Itemize
3220 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3221 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3222 \emph on
3223 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3224 \emph default
3225
3226 \end_layout
3227
3228 \begin_layout Itemize
3229 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3230 \begin_inset Flex Code
3231 status collapsed
3232
3233 \begin_layout Plain Layout
3234 UserDir/doc/xx/
3235 \end_layout
3236
3237 \end_inset
3238
3239 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3240 \begin_inset Newline newline
3241 \end_inset
3242
3243
3244 \begin_inset Note Greyedout
3245 status open
3246
3247 \begin_layout Plain Layout
3248
3249 \series bold
3250 【註】
3251 \series default
3252 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3253 ことに注意してください.最も良い方法は,LyXツリーをgit (
3254 \begin_inset Flex URL
3255 status collapsed
3256
3257 \begin_layout Plain Layout
3258
3259 http://www.lyx.org/HowToUseGIT
3260 \end_layout
3261
3262 \end_inset
3263
3264 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3265 \end_layout
3266
3267 \end_inset
3268
3269
3270 \end_layout
3271
3272 \begin_layout Itemize
3273 (\SpecialChar LyX
3274 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3275 \begin_inset CommandInset href
3276 LatexCommand href
3277 name "http://www.lyx.org/trac/timeline"
3278 target "http://www.lyx.org/trac/timeline"
3279
3280 \end_inset
3281
3282 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3283 \end_layout
3284
3285 \begin_layout Standard
3286 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3287 \end_layout
3288
3289 \begin_layout Standard
3290 \begin_inset Branch OutDated
3291 status collapsed
3292
3293 \begin_layout Section
3294 International Keyboard Support
3295 \end_layout
3296
3297 \begin_layout Standard
3298
3299 \emph on
3300 [Editor's Note: The following section is by
3301 \emph default
3302  
3303 \shape smallcaps
3304 \emph on
3305 Ivan Schreter
3306 \shape default
3307 .
3308  It needs to be fixed to conform to the new Documentation Style sheet and
3309  to make use of the new v1.0 features.
3310  The whole thing also needs to be merged with the section following it.-jw
3311  It may also be badly out of date.-rh (2008)]
3312 \end_layout
3313
3314 \begin_layout Subsection
3315 Defining Own Keymaps: Keymap File Format
3316 \end_layout
3317
3318 \begin_layout Standard
3319 Let's look at a keyboard definition file a little closer.
3320  It is a plain text file defining
3321 \end_layout
3322
3323 \begin_layout Itemize
3324 key-to-key or key-to-string translations
3325 \end_layout
3326
3327 \begin_layout Itemize
3328 dead keys
3329 \end_layout
3330
3331 \begin_layout Itemize
3332 dead keys exceptions
3333 \end_layout
3334
3335 \begin_layout Standard
3336 To define key-to-key or key-to-string translation, use this command:
3337 \end_layout
3338
3339 \begin_layout Quotation
3340 \begin_inset Flex Code
3341 status collapsed
3342
3343 \begin_layout Plain Layout
3344
3345 \backslash
3346 kmap
3347 \end_layout
3348
3349 \end_inset
3350
3351  
3352 \begin_inset Flex Code
3353 status collapsed
3354
3355 \begin_layout Plain Layout
3356 key
3357 \end_layout
3358
3359 \end_inset
3360
3361  outstring 
3362 \end_layout
3363
3364 \begin_layout Standard
3365 where 
3366 \begin_inset Flex Code
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 key
3371 \end_layout
3372
3373 \end_inset
3374
3375  is the key to be translated and 
3376 \begin_inset Flex Code
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 outstring
3381 \end_layout
3382
3383 \end_inset
3384
3385  is the string to be inserted into the document.
3386  To define dead keys, use:
3387 \end_layout
3388
3389 \begin_layout Quotation
3390 \begin_inset Flex Code
3391 status collapsed
3392
3393 \begin_layout Plain Layout
3394
3395 \backslash
3396 kmod
3397 \end_layout
3398
3399 \end_inset
3400
3401  
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 key
3407 \end_layout
3408
3409 \end_inset
3410
3411  deadkey
3412 \end_layout
3413
3414 \begin_layout Standard
3415 where 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 key
3421 \end_layout
3422
3423 \end_inset
3424
3425  is a keyboard key and 
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430 deadkey
3431 \end_layout
3432
3433 \end_inset
3434
3435  is dead key name.
3436  The following dead keys are supported (shortcut name is in parentheses):
3437 \end_layout
3438
3439 \begin_layout Quotation
3440
3441 \emph on
3442 Name
3443 \begin_inset space \hfill{}
3444 \end_inset
3445
3446 Example
3447 \end_layout
3448
3449 \begin_layout Quotation
3450 acute (acu)
3451 \begin_inset space \hfill{}
3452 \end_inset
3453
3454
3455 \lang english
3456 áéíóú
3457 \end_layout
3458
3459 \begin_layout Quotation
3460 grave (gra)
3461 \begin_inset space \hfill{}
3462 \end_inset
3463
3464
3465 \lang english
3466 àèìòù
3467 \end_layout
3468
3469 \begin_layout Quotation
3470 macron (mac)
3471 \begin_inset space \hfill{}
3472 \end_inset
3473
3474
3475 \lang english
3476  ō
3477 \end_layout
3478
3479 \begin_layout Quotation
3480 tilde (til)
3481 \begin_inset space \hfill{}
3482 \end_inset
3483
3484
3485 \lang english
3486 ñÑ
3487 \end_layout
3488
3489 \begin_layout Quotation
3490 underbar (underb)
3491 \begin_inset space \hfill{}
3492 \end_inset
3493
3494
3495 \begin_inset ERT
3496 status open
3497
3498 \begin_layout Plain Layout
3499
3500
3501 \backslash
3502 b o
3503 \end_layout
3504
3505 \end_inset
3506
3507
3508 \end_layout
3509
3510 \begin_layout Quotation
3511 cedilla (ced)
3512 \begin_inset space \hfill{}
3513 \end_inset
3514
3515
3516 \lang english
3517 çÇ
3518 \end_layout
3519
3520 \begin_layout Quotation
3521 underdot (underd)
3522 \begin_inset space \hfill{}
3523 \end_inset
3524
3525
3526 \begin_inset ERT
3527 status open
3528
3529 \begin_layout Plain Layout
3530
3531
3532 \backslash
3533 d o
3534 \end_layout
3535
3536 \end_inset
3537
3538
3539 \end_layout
3540
3541 \begin_layout Quotation
3542 circumflex (circu)
3543 \begin_inset space \hfill{}
3544 \end_inset
3545
3546
3547 \lang english
3548 âêîôû
3549 \end_layout
3550
3551 \begin_layout Quotation
3552 circle (circl)
3553 \begin_inset space \hfill{}
3554 \end_inset
3555
3556
3557 \lang english
3558 ÅůŮ
3559 \end_layout
3560
3561 \begin_layout Quotation
3562 tie (tie)
3563 \begin_inset space \hfill{}
3564 \end_inset
3565
3566
3567 \begin_inset ERT
3568 status open
3569
3570 \begin_layout Plain Layout
3571
3572
3573 \backslash
3574 t o
3575 \end_layout
3576
3577 \end_inset
3578
3579
3580 \end_layout
3581
3582 \begin_layout Quotation
3583 breve (bre)
3584 \begin_inset space \hfill{}
3585 \end_inset
3586
3587
3588 \lang english
3589 ă
3590 \lang japanese
3591
3592 \begin_inset ERT
3593 status open
3594
3595 \begin_layout Plain Layout
3596
3597
3598 \backslash
3599 u o
3600 \end_layout
3601
3602 \end_inset
3603
3604
3605 \end_layout
3606
3607 \begin_layout Quotation
3608 caron (car)
3609 \begin_inset space \hfill{}
3610 \end_inset
3611
3612
3613 \lang english
3614 čšž
3615 \end_layout
3616
3617 \begin_layout Quotation
3618 hungarian umlaut (hug)
3619 \begin_inset space \hfill{}
3620 \end_inset
3621
3622
3623 \lang english
3624 őű
3625 \end_layout
3626
3627 \begin_layout Quotation
3628 umlaut (uml)
3629 \begin_inset space \hfill{}
3630 \end_inset
3631
3632
3633 \lang english
3634 äöü
3635 \end_layout
3636
3637 \begin_layout Quotation
3638 dot (dot)
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 .s
3655 \end_layout
3656
3657 \end_inset
3658
3659
3660 \end_layout
3661
3662 \begin_layout Standard
3663 Since in many international keyboards there are exceptions to what some
3664  dead keys should do, you can define them using
3665 \end_layout
3666
3667 \begin_layout Quotation
3668 \begin_inset Flex Code
3669 status collapsed
3670
3671 \begin_layout Plain Layout
3672
3673 \backslash
3674 kxmod
3675 \end_layout
3676
3677 \end_inset
3678
3679  deadkey key outstring
3680 \end_layout
3681
3682 \begin_layout Standard
3683 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3684 , so you put in
3685 \end_layout
3686
3687 \begin_layout Quotation
3688 \begin_inset Flex Code
3689 status collapsed
3690
3691 \begin_layout Plain Layout
3692
3693 \backslash
3694 kxmod
3695 \end_layout
3696
3697 \end_inset
3698
3699  caron o "
3700 \backslash
3701 ^o"
3702 \end_layout
3703
3704 \begin_layout Standard
3705 to make it work correctly.
3706  Also, you have to define as exceptions dead keys over i and j, to remove
3707  the dot from them before inserting an accent mark.
3708  I will change this when the time comes, but so far I haven't had time.
3709 \end_layout
3710
3711 \begin_layout Standard
3712 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3713  double backslash.
3714  Also, quotes and 
3715 \begin_inset Flex Code
3716 status collapsed
3717
3718 \begin_layout Plain Layout
3719 #
3720 \end_layout
3721
3722 \end_inset
3723
3724  have different meaning.
3725  
3726 \begin_inset Flex Code
3727 status collapsed
3728
3729 \begin_layout Plain Layout
3730 #
3731 \end_layout
3732
3733 \end_inset
3734
3735  marks comments, quotes start and end \SpecialChar LaTeX
3736 -style commands.
3737  To enter quote, you'll need to use 
3738 \begin_inset Flex Code
3739 status collapsed
3740
3741 \begin_layout Plain Layout
3742
3743 \backslash
3744 "
3745 \end_layout
3746
3747 \end_inset
3748
3749 , to enter 
3750 \begin_inset Flex Code
3751 status collapsed
3752
3753 \begin_layout Plain Layout
3754 #
3755 \end_layout
3756
3757 \end_inset
3758
3759 , use 
3760 \begin_inset Flex Code
3761 status collapsed
3762
3763 \begin_layout Plain Layout
3764
3765 \backslash
3766 #
3767 \end_layout
3768
3769 \end_inset
3770
3771 .
3772 \end_layout
3773
3774 \begin_layout Standard
3775 If you make a keyboard description file that works for your language, please
3776  mail it to me, so I can include it in the next keymap distribution.
3777 \end_layout
3778
3779 \begin_layout Standard
3780 More keywords will be supported in keymap configuration file in future,
3781  like
3782 \end_layout
3783
3784 \begin_layout Itemize
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789
3790 \backslash
3791 kinclude filename
3792 \end_layout
3793
3794 \end_inset
3795
3796
3797 \emph on
3798
3799 \begin_inset space \hfill{}
3800 \end_inset
3801
3802
3803 \begin_inset Flex Code
3804 status collapsed
3805
3806 \begin_layout Plain Layout
3807 include
3808 \end_layout
3809
3810 \end_inset
3811
3812  another file
3813 \end_layout
3814
3815 \begin_layout Itemize
3816 \begin_inset Flex Code
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820
3821 \backslash
3822 kprog program
3823 \end_layout
3824
3825 \end_inset
3826
3827
3828 \emph on
3829
3830 \begin_inset space \hfill{}
3831 \end_inset
3832
3833
3834 \begin_inset Flex Code
3835 status collapsed
3836
3837 \begin_layout Plain Layout
3838 define
3839 \end_layout
3840
3841 \end_inset
3842
3843  an external keymap translation program 
3844 \end_layout
3845
3846 \begin_layout Standard
3847 Also, it should look into 
3848 \begin_inset Flex Code
3849 status collapsed
3850
3851 \begin_layout Plain Layout
3852 lyxrc
3853 \end_layout
3854
3855 \end_inset
3856
3857  file for defaults, too (for example, a 
3858 \begin_inset Flex Code
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862
3863 \backslash
3864 kinclude
3865 \end_layout
3866
3867 \end_inset
3868
3869  option to include default keyboard).
3870 \end_layout
3871
3872 \end_inset
3873
3874
3875 \end_layout
3876
3877 \begin_layout Section
3878 国際キー配列
3879 \begin_inset CommandInset label
3880 LatexCommand label
3881 name "sec:国際キー配列"
3882
3883 \end_inset
3884
3885
3886 \end_layout
3887
3888 \begin_layout Standard
3889 \begin_inset Note Note
3890 status open
3891
3892 \begin_layout Plain Layout
3893 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3894 \end_layout
3895
3896 \begin_layout Plain Layout
3897 (RH)
3898 \end_layout
3899
3900 \end_inset
3901
3902
3903 \end_layout
3904
3905 \begin_layout Standard
3906 以下の2節では,
3907 \begin_inset Flex Code
3908 status collapsed
3909
3910 \begin_layout Plain Layout
3911 .kmap
3912 \end_layout
3913
3914 \end_inset
3915
3916 および
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 .cdef
3922 \end_layout
3923
3924 \end_inset
3925
3926 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3927 \end_layout
3928
3929 \begin_layout Subsection
3930 .kmapファイル
3931 \end_layout
3932
3933 \begin_layout Standard
3934 \begin_inset Flex Code
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938 .kmap
3939 \end_layout
3940
3941 \end_inset
3942
3943 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3944 \begin_inset Flex Code
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948 .kmap
3949 \end_layout
3950
3951 \end_inset
3952
3953 ファイルは,以下の各項で説明するように,
3954 \begin_inset Flex Code
3955 status collapsed
3956
3957 \begin_layout Plain Layout
3958 kmap
3959 \end_layout
3960
3961 \end_inset
3962
3963
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 kmod
3969 \end_layout
3970
3971 \end_inset
3972
3973
3974 \begin_inset Flex Code
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978 ksmod
3979 \end_layout
3980
3981 \end_inset
3982
3983
3984 \begin_inset Flex Code
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988 kcomb
3989 \end_layout
3990
3991 \end_inset
3992
3993 のキーワードを定義します.
3994 \end_layout
3995
3996 \begin_layout Labeling
3997 \labelwidthstring 00.00.0000
3998 \begin_inset Flex Code
3999 status collapsed
4000
4001 \begin_layout Plain Layout
4002 kmap
4003 \end_layout
4004
4005 \end_inset
4006
4007  文字を文字列に割り当てる
4008 \end_layout
4009
4010 \begin_layout LyX-Code
4011
4012 \backslash
4013 kmap 
4014 \family roman
4015 \emph on
4016 文字
4017 \family default
4018 \emph default
4019  
4020 \family roman
4021 \emph on
4022 文字列
4023 \end_layout
4024
4025 \begin_layout Standard
4026 これは,
4027 \emph on
4028 文字
4029 \emph default
4030
4031 \emph on
4032 文字列
4033 \emph default
4034 に割り当てます.
4035 \emph on
4036 文字列
4037 \emph default
4038 中では,二重引用符(")とバックスラッシュ(
4039 \backslash
4040 )は,前にバックスラッシュ(
4041 \backslash
4042 )を付けてエスケープしなくてはならないことに注意してください.
4043 \end_layout
4044
4045 \begin_layout Standard
4046 \begin_inset Flex MenuItem
4047 status collapsed
4048
4049 \begin_layout Plain Layout
4050 &
4051 \end_layout
4052
4053 \end_inset
4054
4055 を打鍵すると
4056 \begin_inset Flex MenuItem
4057 status collapsed
4058
4059 \begin_layout Plain Layout
4060 /
4061 \end_layout
4062
4063 \end_inset
4064
4065 記号が出力される
4066 \begin_inset Flex MenuItem
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070 kmap
4071 \end_layout
4072
4073 \end_inset
4074
4075 ステートメントを,一例としてあげると,
4076 \end_layout
4077
4078 \begin_layout LyX-Code
4079
4080 \backslash
4081 kmap & /
4082 \end_layout
4083
4084 \begin_layout Standard
4085 のようになります.
4086 \end_layout
4087
4088 \begin_layout Labeling
4089 \labelwidthstring 00.00.0000
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094 kmod
4095 \end_layout
4096
4097 \end_inset
4098
4099  アクセント文字を指定する
4100 \end_layout
4101
4102 \begin_layout LyX-Code
4103
4104 \backslash
4105 kmod 
4106 \family roman
4107 \emph on
4108 文字 アクセント 許可文字
4109 \end_layout
4110
4111 \begin_layout Standard
4112 これは
4113 \emph on
4114 文字
4115 \emph default
4116
4117 \emph on
4118 許可文字
4119 \emph default
4120 のアクセントとするものです.これはデッドキー
4121 \begin_inset Foot
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125
4126 \emph on
4127 デッドキー
4128 \emph default
4129 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4130 \emph on
4131 ä
4132 \emph default
4133 のようなウムラウトのついた文字は,このようにして出すことができます.
4134 \end_layout
4135
4136 \end_inset
4137
4138 機構です.
4139 \end_layout
4140
4141 \begin_layout Standard
4142
4143 \emph on
4144 文字
4145 \emph default
4146 を打鍵してから
4147 \emph on
4148 許可文字
4149 \emph default
4150 にないキーを打鍵すると,
4151 \emph on
4152 文字
4153 \emph default
4154 の後に許可文字ではないその文字が出力として表示されます.
4155 \begin_inset Flex MenuItem
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159 Backspace
4160 \end_layout
4161
4162 \end_inset
4163
4164 はデッドキーを取り消しますので,
4165 \emph on
4166 文字
4167 \emph default
4168
4169 \begin_inset Flex MenuItem
4170 status collapsed
4171
4172 \begin_layout Plain Layout
4173 Backspace
4174 \end_layout
4175
4176 \end_inset
4177
4178 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4179 \end_layout
4180
4181 \begin_layout Standard
4182 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4183 \end_layout
4184
4185 \begin_layout LyX-Code
4186
4187 \backslash
4188 kmod ' acute aeiouAEIOU
4189 \end_layout
4190
4191 \begin_layout Labeling
4192 \labelwidthstring 00.00.0000
4193 \begin_inset Flex Code
4194 status collapsed
4195
4196 \begin_layout Plain Layout
4197 ksmod
4198 \end_layout
4199
4200 \end_inset
4201
4202  アクセント文字に例外を指定する
4203 \end_layout
4204
4205 \begin_layout LyX-Code
4206
4207 \backslash
4208 kxmod  
4209 \family roman
4210 \emph on
4211 アクセント 文字 結果
4212 \end_layout
4213
4214 \begin_layout Standard
4215 これは
4216 \emph on
4217 文字
4218 \emph default
4219 上の
4220 \emph on
4221 アクセント
4222 \emph default
4223 について例外を指定するものです.ここで
4224 \emph on
4225 アクセント
4226 \emph default
4227 には,前出の
4228 \begin_inset Flex Code
4229 status collapsed
4230
4231 \begin_layout Plain Layout
4232
4233 \backslash
4234 kmod
4235 \end_layout
4236
4237 \end_inset
4238
4239 宣言で打鍵キーを既に割り当てられてなくてはならず,
4240 \emph on
4241 文字
4242 \emph default
4243
4244 \emph on
4245 アクセント
4246 \emph default
4247
4248 \emph on
4249 許可文字
4250 \emph default
4251 の集合に属していてはなりません.こうして
4252 \emph on
4253 アクセント
4254 \emph default
4255
4256 \emph on
4257 文字
4258 \emph default
4259 の順に入力すると,
4260 \emph on
4261 結果
4262 \emph default
4263 が出力されるようになります.
4264 \begin_inset Flex Code
4265 status collapsed
4266
4267 \begin_layout Plain Layout
4268 .kmap
4269 \end_layout
4270
4271 \end_inset
4272
4273 ファイルにこの宣言がない場合には,
4274 \emph on
4275 アクセント
4276 \emph default
4277
4278 \emph on
4279 文字
4280 \emph default
4281 と入力すると,
4282 \emph on
4283 アクセントキー
4284 \emph default
4285
4286 \emph on
4287 文字
4288 \emph default
4289
4290 \emph on
4291 アクセントキー
4292 \emph default
4293
4294 \begin_inset Flex Code
4295 status collapsed
4296
4297 \begin_layout Plain Layout
4298
4299 \backslash
4300 kmod
4301 \end_layout
4302
4303 \end_inset
4304
4305 宣言の最初の変数)と出力されます.
4306 \end_layout
4307
4308 \begin_layout Standard
4309 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4310 \end_layout
4311
4312 \begin_layout LyX-Code
4313
4314 \backslash
4315 kxmod acute i "
4316 \backslash
4317
4318 \backslash
4319 '{
4320 \backslash
4321
4322 \backslash
4323 i}"
4324 \end_layout
4325
4326 \begin_layout Labeling
4327 \labelwidthstring 00.00.0000
4328 \begin_inset Flex Code
4329 status collapsed
4330
4331 \begin_layout Plain Layout
4332 kcomb
4333 \end_layout
4334
4335 \end_inset
4336
4337  2つのアクセント文字を結合する
4338 \end_layout
4339
4340 \begin_layout LyX-Code
4341
4342 \backslash
4343 kcomb 
4344 \family roman
4345 \emph on
4346 アクセント1 アクセント2 許可文字
4347 \end_layout
4348
4349 \begin_layout Standard
4350 これはなかなか難解になってきます.これは
4351 \emph on
4352 アクセント1
4353 \emph default
4354
4355 \emph on
4356 アクセント2
4357 \emph default
4358 を(この順番で)結びつけて,
4359 \emph on
4360 許可文字
4361 \emph default
4362 に効果を及ぼすようにします.
4363 \emph on
4364 アクセント1
4365 \emph default
4366
4367 \emph on
4368 アクセント2
4369 \emph default
4370 の打鍵キーは,ファイル内のこのコマンド
4371 \emph on
4372 よりも前に
4373 \emph default
4374
4375 \begin_inset Flex Code
4376 status collapsed
4377
4378 \begin_layout Plain Layout
4379
4380 \backslash
4381 kmod
4382 \end_layout
4383
4384 \end_inset
4385
4386 コマンドで設定されていなくてはなりません.
4387 \end_layout
4388
4389 \begin_layout Standard
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394 greek.kmap
4395 \end_layout
4396
4397 \end_inset
4398
4399 ファイル上にある例をとってみましょう.
4400 \end_layout
4401
4402 \begin_layout LyX-Code
4403
4404 \backslash
4405 kmod ; acute aeioyvhAEIOYVH 
4406 \backslash
4407 kmod : umlaut iyIY 
4408 \backslash
4409 kcomb acute umlaut iyIY
4410 \end_layout
4411
4412 \begin_layout Standard
4413 これは
4414 \begin_inset Flex MenuItem
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 ;:i
4419 \end_layout
4420
4421 \end_inset
4422
4423 を押すと
4424 \begin_inset Flex Code
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428
4429 \backslash
4430 '{
4431 \backslash
4432 "{i}}
4433 \end_layout
4434
4435 \end_inset
4436
4437 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4438 \begin_inset Flex MenuItem
4439 status collapsed
4440
4441 \begin_layout Plain Layout
4442 ;: Backspace i
4443 \end_layout
4444
4445 \end_inset
4446
4447 と押した場合には,
4448 \begin_inset Flex Code
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452
4453 \backslash
4454 '{i}
4455 \end_layout
4456
4457 \end_inset
4458
4459 となります.
4460 \end_layout
4461
4462 \begin_layout Subsection
4463 .cdefファイル
4464 \end_layout
4465
4466 \begin_layout Standard
4467 \begin_inset Flex Code
4468 status collapsed
4469
4470 \begin_layout Plain Layout
4471 .kmap
4472 \end_layout
4473
4474 \end_inset
4475
4476 による割り当てが行われた後,
4477 \begin_inset Flex Code
4478 status collapsed
4479
4480 \begin_layout Plain Layout
4481 .cdef
4482 \end_layout
4483
4484 \end_inset
4485
4486 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4487 頒布版には,現在のところ,少なくとも
4488 \begin_inset Flex Code
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492 iso8859-1.cdef
4493 \end_layout
4494
4495 \end_inset
4496
4497 ファイルと
4498 \begin_inset Flex Code
4499 status collapsed
4500
4501 \begin_layout Plain Layout
4502 iso8859-2.cdef
4503 \end_layout
4504
4505 \end_inset
4506
4507 ファイルが含まれています.
4508 \end_layout
4509
4510 \begin_layout Standard
4511 一般的に
4512 \begin_inset Flex Code
4513 status collapsed
4514
4515 \begin_layout Plain Layout
4516 .cdef
4517 \end_layout
4518
4519 \end_inset
4520
4521 ファイルは,
4522 \end_layout
4523
4524 \begin_layout LyX-Code
4525
4526 \family roman
4527 \emph on
4528 セット中の文字番号
4529 \family default
4530 \emph default
4531  
4532 \family roman
4533 \emph on
4534  文字列
4535 \end_layout
4536
4537 \begin_layout Standard
4538 という形の宣言の羅列です.たとえば,
4539 \begin_inset Flex MenuItem
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 \backslash
4545 '{e}
4546 \end_layout
4547
4548 \end_inset
4549
4550 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4551 \end_layout
4552
4553 \begin_layout LyX-Code
4554 233 "
4555 \backslash
4556
4557 \backslash
4558 '{e}"
4559 \end_layout
4560
4561 \begin_layout Standard
4562 ここで,
4563 \emph on
4564 文字列
4565 \emph default
4566 中の
4567 \begin_inset Flex Code
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571
4572 \backslash
4573
4574 \end_layout
4575
4576 \end_inset
4577
4578
4579 \begin_inset Flex Code
4580 status collapsed
4581
4582 \begin_layout Plain Layout
4583 "
4584 \end_layout
4585
4586 \end_inset
4587
4588 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593 iso-8859-7.cdef
4594 \end_layout
4595
4596 \end_inset
4597
4598 ファイルには,
4599 \end_layout
4600
4601 \begin_layout LyX-Code
4602 192 "
4603 \backslash
4604
4605 \backslash
4606 '{
4607 \backslash
4608
4609 \backslash
4610
4611 \backslash
4612 "{i}}"
4613 \begin_inset Newline newline
4614 \end_inset
4615
4616 192 "
4617 \backslash
4618
4619 \backslash
4620
4621 \backslash
4622 "{
4623 \backslash
4624
4625 \backslash
4626 '{i}}"
4627 \end_layout
4628
4629 \begin_layout Standard
4630 という例があります.\SpecialChar LyX
4631 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4632 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4633 \end_layout
4634
4635 \begin_layout Subsection
4636 デッドキー
4637 \end_layout
4638
4639 \begin_layout Standard
4640 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4641 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4642 \end_layout
4643
4644 \begin_layout Standard
4645 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4646 \begin_inset Flex Code
4647 status collapsed
4648
4649 \begin_layout Plain Layout
4650 lyxrc
4651 \end_layout
4652
4653 \end_inset
4654
4655 ファイル中で,
4656 \begin_inset Flex MenuItem
4657 status collapsed
4658
4659 \begin_layout Plain Layout
4660 ^
4661 \end_layout
4662
4663 \end_inset
4664
4665 キー(すなわち
4666 \begin_inset Flex MenuItem
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670 Shift-6
4671 \end_layout
4672
4673 \end_inset
4674
4675 キー)を,\SpecialChar LyX
4676 コマンドの
4677 \begin_inset Flex Code
4678 status collapsed
4679
4680 \begin_layout Plain Layout
4681 accent-circumflex
4682 \end_layout
4683
4684 \end_inset
4685
4686 に結びつけることができます.すると
4687 \begin_inset Flex MenuItem
4688 status collapsed
4689
4690 \begin_layout Plain Layout
4691 ^
4692 \end_layout
4693
4694 \end_inset
4695
4696 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4697 \begin_inset Flex MenuItem
4698 status collapsed
4699
4700 \begin_layout Plain Layout
4701 ^e
4702 \end_layout
4703
4704 \end_inset
4705
4706 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4707 \begin_inset Flex MenuItem
4708 status collapsed
4709
4710 \begin_layout Plain Layout
4711 ^t
4712 \end_layout
4713
4714 \end_inset
4715
4716 」と打鍵したならば,「
4717 \begin_inset Flex MenuItem
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721 t
4722 \end_layout
4723
4724 \end_inset
4725
4726 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4727 はビープを鳴らして文句を付けます.デッドキーの後に
4728 \begin_inset Flex MenuItem
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 スペース
4733 \end_layout
4734
4735 \end_inset
4736
4737 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4738 あります.たとえば,
4739 \begin_inset Flex MenuItem
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743 ,キー
4744 \end_layout
4745
4746 \end_inset
4747
4748 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4749 \end_layout
4750
4751 \begin_layout Standard
4752 デッドキーを割り当てるのによく用いられる方法は,
4753 \begin_inset Flex MenuItem
4754 status collapsed
4755
4756 \begin_layout Plain Layout
4757 Meta-
4758 \end_layout
4759
4760 \end_inset
4761
4762
4763 \begin_inset Flex MenuItem
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767 Ctrl-
4768 \end_layout
4769
4770 \end_inset
4771
4772
4773 \begin_inset Flex MenuItem
4774 status collapsed
4775
4776 \begin_layout Plain Layout
4777 Shift-
4778 \end_layout
4779
4780 \end_inset
4781
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 \begin_inset Flex MenuItem
4794 status collapsed
4795
4796 \begin_layout Plain Layout
4797 ,
4798 \end_layout
4799
4800 \end_inset
4801
4802 」・「
4803 \begin_inset Flex MenuItem
4804 status collapsed
4805
4806 \begin_layout Plain Layout
4807 ^
4808 \end_layout
4809
4810 \end_inset
4811
4812 」のようなアクセントと一緒に用いる方法です.また,
4813 \begin_inset Flex Code
4814 status collapsed
4815
4816 \begin_layout Plain Layout
4817 xmodmap
4818 \end_layout
4819
4820 \end_inset
4821
4822
4823 \begin_inset Flex Code
4824 status collapsed
4825
4826 \begin_layout Plain Layout
4827 xkeycaps
4828 \end_layout
4829
4830 \end_inset
4831
4832 を使って,特別な
4833 \begin_inset Flex Code
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837 Mode_Switch
4838 \end_layout
4839
4840 \end_inset
4841
4842 キーを設定する方法もあります.
4843 \begin_inset Flex Code
4844 status collapsed
4845
4846 \begin_layout Plain Layout
4847 Mode_Switch
4848 \end_layout
4849
4850 \end_inset
4851
4852 キーは,ちょうど
4853 \begin_inset Flex MenuItem
4854 status collapsed
4855
4856 \begin_layout Plain Layout
4857 Shift
4858 \end_layout
4859
4860 \end_inset
4861
4862 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4863 \begin_inset Flex Code
4864 status collapsed
4865
4866 \begin_layout Plain Layout
4867 usldead_cedilla
4868 \end_layout
4869
4870 \end_inset
4871
4872 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4873 コマンドに割り当てることもできます
4874 \begin_inset Foot
4875 status collapsed
4876
4877 \begin_layout Plain Layout
4878
4879 \noun on
4880 John Weiss
4881 \noun default
4882 からの註:これはまさに私が,自分の
4883 \begin_inset Flex Code
4884 status collapsed
4885
4886 \begin_layout Plain Layout
4887 ~/.lyx/lyxrc
4888 \end_layout
4889
4890 \end_inset
4891
4892
4893 \begin_inset Flex Code
4894 status collapsed
4895
4896 \begin_layout Plain Layout
4897 ~/.xmodmap
4898 \end_layout
4899
4900 \end_inset
4901
4902 で行っていることです.私は,
4903 \begin_inset Flex MenuItem
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907 Scroll
4908 \begin_inset space ~
4909 \end_inset
4910
4911 Lock
4912 \end_layout
4913
4914 \end_inset
4915
4916 キーを
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921 Mode_Shift
4922 \end_layout
4923
4924 \end_inset
4925
4926 に仕立てて,多数の
4927 \begin_inset Flex Code
4928 status collapsed
4929
4930 \begin_layout Plain Layout
4931 usldead_*
4932 \end_layout
4933
4934 \end_inset
4935
4936 シンボリックキーを
4937 \begin_inset Flex MenuItem
4938 status collapsed
4939
4940 \begin_layout Plain Layout
4941 Scroll
4942 \begin_inset space ~
4943 \end_inset
4944
4945 Lock-^
4946 \end_layout
4947
4948 \end_inset
4949
4950
4951 \begin_inset Flex MenuItem
4952 status collapsed
4953
4954 \begin_layout Plain Layout
4955 Scroll
4956 \begin_inset space ~
4957 \end_inset
4958
4959 Lock-~
4960 \end_layout
4961
4962 \end_inset
4963
4964 などに割り当てています.私はこの方法でアクセント文字を入力しています.
4965 \end_layout
4966
4967 \end_inset
4968
4969 .この
4970 \begin_inset Flex Code
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974 Mode_Switch
4975 \end_layout
4976
4977 \end_inset
4978
4979 キーには,
4980 \begin_inset Flex MenuItem
4981 status collapsed
4982
4983 \begin_layout Plain Layout
4984 Ctrl-
4985 \end_layout
4986
4987 \end_inset
4988
4989 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
4990 コマンドについては,
4991 \emph on
4992 \SpecialChar LyX
4993 関数説明書
4994 \emph default
4995
4996 \begin_inset Flex Code
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 LFUN_ACCENT_*
5001 \end_layout
5002
5003 \end_inset
5004
5005 の項をご覧ください.ここには完備した一覧があります.
5006 \end_layout
5007
5008 \begin_layout Subsection
5009 自分の言語設定を保存する
5010 \end_layout
5011
5012 \begin_layout Standard
5013 \begin_inset Flex MenuItem
5014 status collapsed
5015
5016 \begin_layout Plain Layout
5017 ツール\SpecialChar menuseparator
5018 設定
5019 \end_layout
5020
5021 \end_inset
5022
5023 ダイアログを使えば,\SpecialChar LyX
5024 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5025 \end_layout
5026
5027 \begin_layout Chapter
5028 文書クラス・レイアウト・ひな型の新規導入
5029 \begin_inset CommandInset label
5030 LatexCommand label
5031 name "cha:新規文書を導入"
5032
5033 \end_inset
5034
5035
5036 \begin_inset Argument 1
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040 文書クラスを新規に導入する
5041 \end_layout
5042
5043 \end_inset
5044
5045
5046 \end_layout
5047
5048 \begin_layout Standard
5049 この章では,新しく\SpecialChar LyX
5050 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5051 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5052 します.
5053 \end_layout
5054
5055 \begin_layout Standard
5056 まず,\SpecialChar LyX
5057 と\SpecialChar LaTeX
5058 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5059 は,La\SpecialChar TeX
5060 について何も知らないと
5061 云うことです.実際のところ,\SpecialChar LyX
5062 の観点からは,\SpecialChar LaTeX
5063 は,\SpecialChar LyX
5064 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5065 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5066 は,とくに重要な形式ですが,\SpecialChar LyX
5067 がLa\SpecialChar TeX
5068 について持っている情報のほとんどは,実はプログラム本体には含まれて
5069 いないのです
5070 \begin_inset Foot
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074 過度に複雑なため,\SpecialChar LyX
5075 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5076 \end_layout
5077
5078 \end_inset
5079
5080 .このような情報は,
5081 \begin_inset Flex Code
5082 status collapsed
5083
5084 \begin_layout Plain Layout
5085 article.cls
5086 \end_layout
5087
5088 \end_inset
5089
5090 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5091 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5092 が知っていることは,レイア
5093 ウトファイルの中にあります.
5094 \end_layout
5095
5096 \begin_layout Standard
5097 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5098 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5099 構成体・DocBook構成体・XHTML構成体との
5100 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5101
5102 \begin_inset Flex Code
5103 status collapsed
5104
5105 \begin_layout Plain Layout
5106 article.cls
5107 \end_layout
5108
5109 \end_inset
5110
5111 について知っていることのほとんど総ては,
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 article.layout
5117 \end_layout
5118
5119 \end_inset
5120
5121 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5122 としては,
5123 \begin_inset Flex Code
5124 status collapsed
5125
5126 \begin_layout Plain Layout
5127 article.layout
5128 \end_layout
5129
5130 \end_inset
5131
5132
5133 \begin_inset Flex Code
5134 status collapsed
5135
5136 \begin_layout Plain Layout
5137 book.layout
5138 \end_layout
5139
5140 \end_inset
5141
5142 や,文書クラス用の他のレイアウトファイルに取り込まれている
5143 \begin_inset Flex Code
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147 stdsections.inc
5148 \end_layout
5149
5150 \end_inset
5151
5152 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5153 \begin_inset Flex Code
5154 status collapsed
5155
5156 \begin_layout Plain Layout
5157 stdsections.inc
5158 \end_layout
5159
5160 \end_inset
5161
5162 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5163 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5164 に知らせるものです.基本的に
5165 \begin_inset Flex Code
5166 status collapsed
5167
5168 \begin_layout Plain Layout
5169 article.layout
5170 \end_layout
5171
5172 \end_inset
5173
5174 ファイルは,これらの
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179 std*.inc
5180 \end_layout
5181
5182 \end_inset
5183
5184 ファイルを取り込んでいるだけのものです.
5185 \end_layout
5186
5187 \begin_layout Standard
5188 しかしながら,\SpecialChar LyX
5189 –\SpecialChar LaTeX
5190 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5191 構成体自身が画面上にどのように表
5192 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5193 ます.ある段落様式を\SpecialChar LaTeX
5194 に翻訳する仕方を\SpecialChar LyX
5195 に指示することは,その表示の仕方を\SpecialChar LyX
5196 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5197 に指示することは,その段落様
5198 式をどのように\SpecialChar LaTeX
5199 に翻訳するかを\SpecialChar LyX
5200 に指示するものではありません(ましてや\SpecialChar LaTeX
5201 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5202 構成体を定義する際には,(
5203 i)
5204 \begin_inset space ~
5205 \end_inset
5206
5207 \SpecialChar LaTeX
5208 にどのように翻訳するかを\SpecialChar LyX
5209 に指示する,(ii)
5210 \begin_inset space ~
5211 \end_inset
5212
5213 それをどのように表示するかを\SpecialChar LyX
5214 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5215 \end_layout
5216
5217 \begin_layout Standard
5218 もちろん,\SpecialChar LyX
5219 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5220 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5221 力するにあたって,当該段落を\SpecialChar LyX
5222 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5223 が内部的に行うことと,外部的に行う物事の間の区
5224 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5225 \begin_inset CommandInset ref
5226 LatexCommand ref
5227 reference "sec:XHTML出力のタグ"
5228
5229 \end_inset
5230
5231 節をご覧ください.
5232 \end_layout
5233
5234 \begin_layout Section
5235 新しい\SpecialChar LaTeX
5236 ファイルの導入
5237 \end_layout
5238
5239 \begin_layout Standard
5240 頒布版によっては,\SpecialChar LyX
5241 で使いたい\SpecialChar LaTeX
5242 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5243 パッケージである,Foil\SpecialChar TeX
5244 がないかもしれません.\SpecialChar TeX
5245 Live(2008年以降)やMiK\SpecialChar TeX
5246 のような最近の\SpecialChar LaTeX
5247 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5248 ースが用意されています.たとえば,MiK\SpecialChar TeX
5249 では,付属の「Package
5250 \begin_inset space ~
5251 \end_inset
5252
5253 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5254 ださい.
5255 \end_layout
5256
5257 \begin_layout Standard
5258 お使いの\SpecialChar LaTeX
5259 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5260 してください.
5261 \end_layout
5262
5263 \begin_layout Enumerate
5264 \begin_inset CommandInset href
5265 LatexCommand href
5266 name "CTAN"
5267 target "http://www.ctan.org/"
5268
5269 \end_inset
5270
5271 などから欲しいパッケージを入手してください.
5272 \end_layout
5273
5274 \begin_layout Enumerate
5275 パッケージに「
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280 .ins
5281 \end_layout
5282
5283 \end_inset
5284
5285 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5286 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 latex foiltex.ins
5292 \end_layout
5293
5294 \end_inset
5295
5296 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5297 パッケージは圧縮されていないので,このステップは飛ばすこ
5298 とができます.
5299 \end_layout
5300
5301 \begin_layout Enumerate
5302 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5303 \end_layout
5304
5305 \begin_deeper
5306 \begin_layout Enumerate
5307 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5308 ツリーに導入し,そうでなければ「ユー
5309 ザー」\SpecialChar TeX
5310 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5311 \begin_inset Flex Code
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315 texmf.cnf
5316 \end_layout
5317
5318 \end_inset
5319
5320 ファイルを参照してください
5321 \begin_inset Foot
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325 このファイルは,通常
5326 \family sans
5327 $TEXMF/web2c
5328 \family default
5329 ディレクトリにありますが,コマンド
5330 \begin_inset Flex Code
5331 status collapsed
5332
5333 \begin_layout Plain Layout
5334 kpsewhich texmf.cnf
5335 \end_layout
5336
5337 \end_inset
5338
5339 を実行してその場所を見つけることもできます.
5340 \end_layout
5341
5342 \end_inset
5343
5344 .「ローカル」\SpecialChar TeX
5345 ツリーの場所は,
5346 \begin_inset Flex Code
5347 status collapsed
5348
5349 \begin_layout Plain Layout
5350 TEXMFLOCAL
5351 \end_layout
5352
5353 \end_inset
5354
5355 変数で定義されており,通常は
5356 \begin_inset Flex Code
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360 /usr/local/share/texmf/
5361 \end_layout
5362
5363 \end_inset
5364
5365
5366 \begin_inset Flex Code
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370 /usr/local/texlive/XXXX
5371 \end_layout
5372
5373 \end_inset
5374
5375  (XXXXは導入されている\SpecialChar TeX
5376 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5377 ツリーの場所は,
5378 \begin_inset Flex Code
5379 status collapsed
5380
5381 \begin_layout Plain Layout
5382 TEXMFHOME
5383 \end_layout
5384
5385 \end_inset
5386
5387 で定義されており,通常は
5388 \begin_inset Flex Code
5389 status collapsed
5390
5391 \begin_layout Plain Layout
5392 $HOME/texmf/
5393 \end_layout
5394
5395 \end_inset
5396
5397
5398 \begin_inset Flex Code
5399 status collapsed
5400
5401 \begin_layout Plain Layout
5402 $HOME/.texliveXXXX
5403 \end_layout
5404
5405 \end_inset
5406
5407 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5408 ,「ユーザー」ツリーにはこのような制限はありません.
5409 \begin_inset Newline newline
5410 \end_inset
5411
5412 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5413 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5414 \end_layout
5415
5416 \begin_layout Enumerate
5417 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5418 の導入されているフォルダのサブフォルダ
5419 \begin_inset Flex Code
5420 status collapsed
5421
5422 \begin_layout Plain Layout
5423 ~
5424 \backslash
5425 tex
5426 \backslash
5427 latex
5428 \end_layout
5429
5430 \end_inset
5431
5432 に移動します(MiK\SpecialChar TeX
5433 の既定値では,これは
5434 \begin_inset Flex Code
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438 ~:Programs
5439 \backslash
5440 MiKTeX
5441 \backslash
5442 tex
5443 \backslash
5444 latex
5445 \end_layout
5446
5447 \end_inset
5448
5449 です)
5450 \begin_inset Foot
5451 status open
5452
5453 \begin_layout Plain Layout
5454 これは,英語版でのみ正しいパスになっています.独語版では
5455 \begin_inset Flex Code
5456 status collapsed
5457
5458 \begin_layout Plain Layout
5459 ~:Programme
5460 \backslash
5461 MiKTeX
5462 \backslash
5463 tex
5464 \backslash
5465 latex
5466 \end_layout
5467
5468 \end_inset
5469
5470 となり,他の言語でも同様です.
5471 \end_layout
5472
5473 \end_inset
5474
5475 .ここに新規フォルダ
5476 \begin_inset Flex Code
5477 status collapsed
5478
5479 \begin_layout Plain Layout
5480 foiltex
5481 \end_layout
5482
5483 \end_inset
5484
5485 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5486 フォルダで同じ
5487 ことを行います.たとえばMiK\SpecialChar TeX
5488
5489 \begin_inset space ~
5490 \end_inset
5491
5492 2.8では,これはWinXP上では
5493 \begin_inset Newline newline
5494 \end_inset
5495
5496
5497 \begin_inset Flex Code
5498 status collapsed
5499
5500 \begin_layout Plain Layout
5501 ~:
5502 \backslash
5503 Documents and Settings
5504 \backslash
5505 <ユーザー名>
5506 \backslash
5507 Application Data
5508 \backslash
5509
5510 \end_layout
5511
5512 \end_inset
5513
5514
5515 \begin_inset Newline newline
5516 \end_inset
5517
5518
5519 \begin_inset Phantom HPhantom
5520 status open
5521
5522 \begin_layout Plain Layout
5523
5524 \family typewriter
5525 ~:
5526 \backslash
5527
5528 \end_layout
5529
5530 \end_inset
5531
5532
5533 \begin_inset Flex Code
5534 status collapsed
5535
5536 \begin_layout Plain Layout
5537 MiKTeX
5538 \backslash
5539 2.8
5540 \backslash
5541 tex
5542 \backslash
5543 latex
5544 \end_layout
5545
5546 \end_inset
5547
5548
5549 \begin_inset Newline newline
5550 \end_inset
5551
5552 フォルダ,WinVista上では
5553 \begin_inset Newline newline
5554 \end_inset
5555
5556
5557 \begin_inset Flex Code
5558 status collapsed
5559
5560 \begin_layout Plain Layout
5561 ~:
5562 \backslash
5563 Users
5564 \backslash
5565 <ユーザー名>
5566 \backslash
5567 AppData
5568 \backslash
5569 Roaming
5570 \backslash
5571 2.8
5572 \backslash
5573 MiKTeX
5574 \backslash
5575 tex
5576 \backslash
5577 latex
5578 \end_layout
5579
5580 \end_inset
5581
5582
5583 \begin_inset Newline newline
5584 \end_inset
5585
5586 フォルダになります.
5587 \end_layout
5588
5589 \end_deeper
5590 \begin_layout Enumerate
5591 ここまで来れば,あとは\SpecialChar LaTeX
5592 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5593 頒布版に依存します.
5594 \end_layout
5595
5596 \begin_deeper
5597 \begin_layout Enumerate
5598 \SpecialChar TeX
5599 Liveの場合には,コンソールから
5600 \begin_inset Flex Code
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604 texhash
5605 \end_layout
5606
5607 \end_inset
5608
5609 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5610 \end_layout
5611
5612 \begin_layout Enumerate
5613 MiK\SpecialChar TeX
5614 では,パッケージを全ユーザー用に導入した場合には,「Settings
5615 \begin_inset space ~
5616 \end_inset
5617
5618 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5619
5620 \end_layout
5621
5622 \end_deeper
5623 \begin_layout Enumerate
5624 最後に,\SpecialChar LyX
5625 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5626 からツール\SpecialChar menuseparator
5627 環境構成メニューを実行して,\SpecialChar LyX
5628 を再起動します.
5629 \end_layout
5630
5631 \begin_layout Standard
5632 これでパッケージが導入されました.この例では,文書クラス
5633 \begin_inset Flex Code
5634 status collapsed
5635
5636 \begin_layout Plain Layout
5637 Slides
5638 \begin_inset space ~
5639 \end_inset
5640
5641 (FoilTeX)
5642 \end_layout
5643
5644 \end_inset
5645
5646
5647 \begin_inset Flex MenuItem
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651 文書\SpecialChar menuseparator
5652 設定\SpecialChar menuseparator
5653 文書クラス
5654 \end_layout
5655
5656 \end_inset
5657
5658 で利用可能になっているはずです.
5659 \end_layout
5660
5661 \begin_layout Standard
5662 \begin_inset Flex MenuItem
5663 status collapsed
5664
5665 \begin_layout Plain Layout
5666 文書\SpecialChar menuseparator
5667 設定\SpecialChar menuseparator
5668 文書クラス
5669 \end_layout
5670
5671 \end_inset
5672
5673 メニューに列挙されてもいない\SpecialChar LaTeX
5674 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5675 \end_layout
5676
5677 \begin_layout Section
5678 レイアウトファイルの型
5679 \end_layout
5680
5681 \begin_layout Standard
5682 この節は,レイアウト情報を含む各種\SpecialChar LyX
5683 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5684 がそれらをどのように
5685 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5686 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5687 \end_layout
5688
5689 \begin_layout Standard
5690 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5691 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5692 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5693 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5694 を出していますので,気軽に質問を投げかけてみてください.
5695 \end_layout
5696
5697 \begin_layout Standard
5698 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5699 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5700 文書クラス用の\SpecialChar LyX
5701 レイアウトを作ったり,
5702 他の人々にも有用なモジュールをお書きになった場合には,
5703 \begin_inset CommandInset href
5704 LatexCommand href
5705 name "LyX Wikiのレイアウトに関する節"
5706 target "http://wiki.lyx.org/Layouts/Layouts"
5707
5708 \end_inset
5709
5710 か,\SpecialChar LyX
5711 開発者メーリングリストに投稿して,\SpecialChar LyX
5712 頒布版に同梱することができるようにしてください
5713 \begin_inset Foot
5714 status collapsed
5715
5716 \begin_layout Plain Layout
5717 \SpecialChar LyX
5718 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5719 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5720 \end_layout
5721
5722 \end_inset
5723
5724
5725 \end_layout
5726
5727 \begin_layout Subsection
5728 レイアウトモジュール
5729 \begin_inset CommandInset label
5730 LatexCommand label
5731 name "subsec:レイアウトモジュール"
5732
5733 \end_inset
5734
5735
5736 \end_layout
5737
5738 \begin_layout Standard
5739 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5740 ,それは
5741 \begin_inset Flex Code
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 .layout
5746 \end_layout
5747
5748 \end_inset
5749
5750 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5751 に提供するものを指します.しかしながら,\SpecialChar LyX
5752  1.6以降,レイアウト情報は,拡張子が
5753 \begin_inset Flex Code
5754 status collapsed
5755
5756 \begin_layout Plain Layout
5757 .module
5758 \end_layout
5759
5760 \end_inset
5761
5762 のレイアウト
5763 \emph on
5764 モジュール
5765 \emph default
5766 にも含めることができます.レイアウトが\SpecialChar LaTeX
5767 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5768 パッケージに対応するものであり,
5769 \begin_inset Flex Code
5770 status collapsed
5771
5772 \begin_layout Plain Layout
5773 endnotes
5774 \end_layout
5775
5776 \end_inset
5777
5778 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5779 イアウトで使用できるという意味において,一面,
5780 \begin_inset Flex Code
5781 status collapsed
5782
5783 \begin_layout Plain Layout
5784 stdsections.inc
5785 \end_layout
5786
5787 \end_inset
5788
5789 等のインクルードファイル
5790 \begin_inset Foot
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794 これらは任意の拡張子をつけることができますが,慣習的に
5795 \begin_inset Flex Code
5796 status collapsed
5797
5798 \begin_layout Plain Layout
5799 .inc
5800 \end_layout
5801
5802 \end_inset
5803
5804 拡張子が用いられます.
5805 \end_layout
5806
5807 \end_inset
5808
5809 のようなものです.相異なる点といえば,
5810 \begin_inset Flex Code
5811 status collapsed
5812
5813 \begin_layout Plain Layout
5814 article.cls
5815 \end_layout
5816
5817 \end_inset
5818
5819 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5820 \begin_inset Flex MenuItem
5821 status collapsed
5822
5823 \begin_layout Plain Layout
5824 文書\SpecialChar menuseparator
5825 設定
5826 \end_layout
5827
5828 \end_inset
5829
5830 ダイアログで選択するだけですみます.
5831 \end_layout
5832
5833 \begin_layout Standard
5834 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5835 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5836 \end_layout
5837
5838 \begin_layout Standard
5839 新しいモジュールを作成し,それを
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 layout/
5845 \end_layout
5846
5847 \end_inset
5848
5849 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5850 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5851 \begin_inset Flex MenuItem
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 文書\SpecialChar menuseparator
5856 設定
5857 \end_layout
5858
5859 \end_inset
5860
5861 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5862 \emph on
5863 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5864 \emph default
5865 .もっと言えば,
5866 \emph on
5867 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5868 \emph default
5869 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5870 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5871 とがあるからです.
5872 \end_layout
5873
5874 \begin_layout Subsubsection
5875 ローカルレイアウト
5876 \end_layout
5877
5878 \begin_layout Standard
5879 \SpecialChar LyX
5880 に於けるモジュールは,\SpecialChar LaTeX
5881 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5882 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5883 \end_layout
5884
5885 \begin_layout Standard
5886 これは,
5887 \family sans
5888 文書\SpecialChar menuseparator
5889 設定\SpecialChar menuseparator
5890 ローカルのレイアウト
5891 \family default
5892 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5893 は,その文書専属のモジュールだと考えることができます.したがって,
5894 \begin_inset Flex Code
5895 status collapsed
5896
5897 \begin_layout Plain Layout
5898 Format
5899 \end_layout
5900
5901 \end_inset
5902
5903 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5904  2.2では,最新書式は60です)
5905 \end_layout
5906
5907 \begin_layout Standard
5908 \begin_inset Flex Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 ローカルのレイアウト
5913 \end_layout
5914
5915 \end_inset
5916
5917 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5918 ているかどうかが検証されます.すると,\SpecialChar LyX
5919 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5920 をターミナル(
5921 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5922 \end_layout
5923
5924 \begin_layout Standard
5925 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5926 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5927 \end_layout
5928
5929 \begin_layout Subsection
5930 \begin_inset Flex MenuItem
5931 status collapsed
5932
5933 \begin_layout Plain Layout
5934 .sty
5935 \end_layout
5936
5937 \end_inset
5938
5939 ファイル用のレイアウト
5940 \end_layout
5941
5942 \begin_layout Standard
5943 新しく\SpecialChar LaTeX
5944 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
5945 クラス(
5946 \begin_inset Flex Code
5947 status collapsed
5948
5949 \begin_layout Plain Layout
5950 .cls
5951 \end_layout
5952
5953 \end_inset
5954
5955 )ファイルが絡む場合と,スタイル(
5956 \begin_inset Flex Code
5957 status collapsed
5958
5959 \begin_layout Plain Layout
5960 .sty
5961 \end_layout
5962
5963 \end_inset
5964
5965 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
5966 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
5967 が当てはまります.
5968 \end_layout
5969
5970 \begin_layout Standard
5971 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
5972 \begin_inset Flex MenuItem
5973 status collapsed
5974
5975 \begin_layout Plain Layout
5976 myclass.sty
5977 \end_layout
5978
5979 \end_inset
5980
5981 という名称で,標準的なクラスである
5982 \begin_inset Flex MenuItem
5983 status collapsed
5984
5985 \begin_layout Plain Layout
5986 report.cls
5987 \end_layout
5988
5989 \end_inset
5990
5991 と共に用いられるものと仮定しましょう.
5992 \end_layout
5993
5994 \begin_layout Standard
5995 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
5996 \begin_inset Foot
5997 status collapsed
5998
5999 \begin_layout Plain Layout
6000 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6001 では,起動時に
6002 \begin_inset Flex MenuItem
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 -userdir
6007 \end_layout
6008
6009 \end_inset
6010
6011 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6012 \end_layout
6013
6014 \end_inset
6015
6016
6017 \end_layout
6018
6019 \begin_layout LyX-Code
6020 cp report.layout ~/.lyx/layouts/myclass.layout
6021 \end_layout
6022
6023 \begin_layout Standard
6024 それから,
6025 \begin_inset Flex Code
6026 status collapsed
6027
6028 \begin_layout Plain Layout
6029 myclass.layout
6030 \end_layout
6031
6032 \end_inset
6033
6034 を編集して,
6035 \end_layout
6036
6037 \begin_layout LyX-Code
6038
6039 \backslash
6040 DeclareLaTeXClass{report}
6041 \end_layout
6042
6043 \begin_layout Standard
6044 という行を
6045 \end_layout
6046
6047 \begin_layout LyX-Code
6048
6049 \backslash
6050 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6051 \end_layout
6052
6053 \begin_layout Standard
6054 のように変更してください.それから,ファイル冒頭辺りに
6055 \end_layout
6056
6057 \begin_layout LyX-Code
6058 Preamble 
6059 \begin_inset Newline newline
6060 \end_inset
6061
6062     
6063 \backslash
6064 usepackage{myclass}
6065 \begin_inset Newline newline
6066 \end_inset
6067
6068 EndPreamble
6069 \end_layout
6070
6071 \begin_layout Standard
6072 と書き加えてください.
6073 \end_layout
6074
6075 \begin_layout Standard
6076 \SpecialChar LyX
6077 を起動して
6078 \begin_inset Flex MenuItem
6079 status collapsed
6080
6081 \begin_layout Plain Layout
6082 ツール\SpecialChar menuseparator
6083 環境構成
6084 \end_layout
6085
6086 \end_inset
6087
6088 を選択してください.それから\SpecialChar LyX
6089 を再起動し,新規文書を作成してみてください.すると,
6090 \begin_inset Flex MenuItem
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 文書\SpecialChar menuseparator
6095 設定
6096 \end_layout
6097
6098 \end_inset
6099
6100 ダイアログの文書クラスオプションに「
6101 \begin_inset Flex MenuItem
6102 status collapsed
6103
6104 \begin_layout Plain Layout
6105 report (myclass)
6106 \end_layout
6107
6108 \end_inset
6109
6110 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6111 \begin_inset Flex Code
6112 status collapsed
6113
6114 \begin_layout Plain Layout
6115 report
6116 \end_layout
6117
6118 \end_inset
6119
6120 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6121 \begin_inset Flex Code
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125 stdsections.inc
6126 \end_layout
6127
6128 \end_inset
6129
6130 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 stdsections.inc
6136 \end_layout
6137
6138 \end_inset
6139
6140 も取り込む
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 Input stdclass.inc
6146 \end_layout
6147
6148 \end_inset
6149
6150 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6151 \end_layout
6152
6153 \begin_layout LyX-Code
6154 Style Chapter
6155 \end_layout
6156
6157 \begin_layout LyX-Code
6158     Font
6159 \end_layout
6160
6161 \begin_layout LyX-Code
6162         Family Sans
6163 \end_layout
6164
6165 \begin_layout LyX-Code
6166     EndFont
6167 \end_layout
6168
6169 \begin_layout LyX-Code
6170 End
6171 \end_layout
6172
6173 \begin_layout Standard
6174 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6175 \end_layout
6176
6177 \begin_layout Standard
6178 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6179 いては,第
6180 \begin_inset CommandInset ref
6181 LatexCommand ref
6182 reference "sec:テキストクラス"
6183
6184 \end_inset
6185
6186 節の情報を参照してください.
6187 \end_layout
6188
6189 \begin_layout Standard
6190 もし
6191 \begin_inset Flex Code
6192 status collapsed
6193
6194 \begin_layout Plain Layout
6195 myclass.sty
6196 \end_layout
6197
6198 \end_inset
6199
6200 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6201 う.最も簡単なモジュールの例としては,以下のようなものになります.
6202 \end_layout
6203
6204 \begin_layout LyX-Code
6205 #
6206 \backslash
6207 DeclareLyXModule{My Package}
6208 \end_layout
6209
6210 \begin_layout LyX-Code
6211 #DescriptionBegin
6212 \end_layout
6213
6214 \begin_layout LyX-Code
6215 #Support for mypkg.sty.
6216 \end_layout
6217
6218 \begin_layout LyX-Code
6219 #DescriptionEnd
6220 \begin_inset Newline newline
6221 \end_inset
6222
6223
6224 \end_layout
6225
6226 \begin_layout LyX-Code
6227 Format 60
6228 \begin_inset Newline newline
6229 \end_inset
6230
6231
6232 \end_layout
6233
6234 \begin_layout LyX-Code
6235 Preamble
6236 \begin_inset Newline newline
6237 \end_inset
6238
6239     
6240 \backslash
6241 usepackage{mypkg}
6242 \begin_inset Newline newline
6243 \end_inset
6244
6245 EndPreamble
6246 \end_layout
6247
6248 \begin_layout Standard
6249 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6250 \begin_inset CommandInset ref
6251 LatexCommand ref
6252 reference "sec:テキストクラス"
6253
6254 \end_inset
6255
6256 節を参照してください.
6257 \end_layout
6258
6259 \begin_layout Subsection
6260 \begin_inset Flex MenuItem
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 .cls
6265 \end_layout
6266
6267 \end_inset
6268
6269 ファイル用のレイアウト
6270 \end_layout
6271
6272 \begin_layout Standard
6273 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6274 \begin_inset Flex MenuItem
6275 status collapsed
6276
6277 \begin_layout Plain Layout
6278 book.cls
6279 \end_layout
6280
6281 \end_inset
6282
6283 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6284 \end_layout
6285
6286 \begin_layout LyX-Code
6287
6288 \backslash
6289 LoadClass{book}
6290 \end_layout
6291
6292 \begin_layout Standard
6293 という行がないかどうか探してください.もしこれがあれば,
6294 \begin_inset Flex Code
6295 status collapsed
6296
6297 \begin_layout Plain Layout
6298 Declare\SpecialChar LaTeX
6299 Class
6300 \end_layout
6301
6302 \end_inset
6303
6304 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6305 \begin_inset Flex Code
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 thesis
6310 \end_layout
6311
6312 \end_inset
6313
6314 であり,
6315 \begin_inset Flex Code
6316 status collapsed
6317
6318 \begin_layout Plain Layout
6319 book
6320 \end_layout
6321
6322 \end_inset
6323
6324 クラスに基づいていれば,
6325 \begin_inset Flex Code
6326 status collapsed
6327
6328 \begin_layout Plain Layout
6329 Declare\SpecialChar LaTeX
6330 Class
6331 \end_layout
6332
6333 \end_inset
6334
6335 行は以下のようにします
6336 \begin_inset Foot
6337 status collapsed
6338
6339 \begin_layout Plain Layout
6340 さらに\SpecialChar LyX
6341 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346 thesis.layout
6347 \end_layout
6348
6349 \end_inset
6350
6351 という名前で保存するのが最も簡単です. 
6352 \end_layout
6353
6354 \end_inset
6355
6356
6357 \end_layout
6358
6359 \begin_layout LyX-Code
6360
6361 \backslash
6362 DeclareLaTeXClass[thesis,book]{thesis}
6363 \end_layout
6364
6365 \begin_layout Standard
6366 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6367 クラスを使用してい
6368 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6369 業の開始点としてください.
6370 \end_layout
6371
6372 \begin_layout Subsection
6373 ひな型を作成する
6374 \begin_inset CommandInset label
6375 LatexCommand label
6376 name "sec:ひな型を作成する"
6377
6378 \end_inset
6379
6380
6381 \end_layout
6382
6383 \begin_layout Standard
6384 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6385 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6386 添付のひな型をあれこれ見てみるのもよいでしょう.
6387 \end_layout
6388
6389 \begin_layout Standard
6390 ひな型は,通常の文書と同様,\SpecialChar LyX
6391 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6392 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6393 \begin_inset Flex Code
6394 status collapsed
6395
6396 \begin_layout Plain Layout
6397
6398 \backslash
6399 fontscheme
6400 \end_layout
6401
6402 \end_inset
6403
6404
6405 \begin_inset Flex Code
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409
6410 \backslash
6411 papersize
6412 \end_layout
6413
6414 \end_inset
6415
6416 などの対応するコマンドをひな型\SpecialChar LyX
6417 ファイルから取り除く必要があります.これは,たとえば
6418 \begin_inset Flex Code
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422 vi
6423 \end_layout
6424
6425 \end_inset
6426
6427
6428 \begin_inset Flex Code
6429 status collapsed
6430
6431 \begin_layout Plain Layout
6432 notepad
6433 \end_layout
6434
6435 \end_inset
6436
6437 のような,どの軽いテキストエディタでも行うことができます.
6438 \end_layout
6439
6440 \begin_layout Standard
6441 編集したひな型を
6442 \begin_inset Flex Code
6443 status collapsed
6444
6445 \begin_layout Plain Layout
6446 UserDir/templates/
6447 \end_layout
6448
6449 \end_inset
6450
6451 に置き,グローバルなひな型ディレクトリ
6452 \begin_inset Flex Code
6453 status collapsed
6454
6455 \begin_layout Plain Layout
6456 LyXDir/templates/
6457 \end_layout
6458
6459 \end_inset
6460
6461 から使用したいものを同じ場所にコピーし,
6462 \begin_inset Flex MenuItem
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 ツール\SpecialChar menuseparator
6467 設定\SpecialChar menuseparator
6468 パス
6469 \end_layout
6470
6471 \end_inset
6472
6473 ダイアログのひな型パスを再定義してください.
6474 \end_layout
6475
6476 \begin_layout Standard
6477 ところで,特別な意味を持つひな型
6478 \begin_inset Flex Code
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482 defaults.lyx
6483 \end_layout
6484
6485 \end_inset
6486
6487 があることに注意してください.このひな型は,
6488 \begin_inset Flex MenuItem
6489 status collapsed
6490
6491 \begin_layout Plain Layout
6492 ファイル\SpecialChar menuseparator
6493 新規
6494 \end_layout
6495
6496 \end_inset
6497
6498 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6499 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6500 開き,
6501 \begin_inset Flex MenuItem
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505 文書既定値として保存
6506 \end_layout
6507
6508 \end_inset
6509
6510 ボタンを押すことです.
6511 \end_layout
6512
6513 \begin_layout Subsection
6514 旧レイアウトファイルの更新
6515 \end_layout
6516
6517 \begin_layout Standard
6518 レイアウトファイルの書式は,\SpecialChar LyX
6519 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6520 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6521 は,
6522 自動的に変換ツール
6523 \begin_inset Flex Code
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 \SpecialChar LyX
6528 Dir/scripts/layout2layout.py
6529 \end_layout
6530
6531 \end_inset
6532
6533 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6534 がこれを毎回行な
6535 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6536 \end_layout
6537
6538 \begin_layout Enumerate
6539 ファイル
6540 \begin_inset Flex Code
6541 status collapsed
6542
6543 \begin_layout Plain Layout
6544 myclass.layout
6545 \end_layout
6546
6547 \end_inset
6548
6549
6550 \begin_inset Flex Code
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 myclass.old
6555 \end_layout
6556
6557 \end_inset
6558
6559 に改称
6560 \end_layout
6561
6562 \begin_layout Enumerate
6563 以下のコマンドをコール
6564 \begin_inset Newline newline
6565 \end_inset
6566
6567
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6573 \end_layout
6574
6575 \end_inset
6576
6577
6578 \begin_inset Newline newline
6579 \end_inset
6580
6581 ここで
6582 \begin_inset Flex Code
6583 status collapsed
6584
6585 \begin_layout Plain Layout
6586 LyXDir
6587 \end_layout
6588
6589 \end_inset
6590
6591 は\SpecialChar LyX
6592 システムディレクトリの名前です.
6593 \end_layout
6594
6595 \begin_layout Standard
6596 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6597 \end_layout
6598
6599 \begin_layout Section
6600 \begin_inset CommandInset label
6601 LatexCommand label
6602 name "sec:テキストクラス"
6603
6604 \end_inset
6605
6606 レイアウトファイルの書式
6607 \end_layout
6608
6609 \begin_layout Standard
6610 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6611 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6612 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6613 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6614 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6615 \end_layout
6616
6617 \begin_layout Standard
6618 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6619 \begin_inset Flex Code
6620 status collapsed
6621
6622 \begin_layout Plain Layout
6623 Style
6624 \end_layout
6625
6626 \end_inset
6627
6628
6629 \begin_inset Flex Code
6630 status collapsed
6631
6632 \begin_layout Plain Layout
6633 style
6634 \end_layout
6635
6636 \end_inset
6637
6638
6639 \begin_inset Flex Code
6640 status collapsed
6641
6642 \begin_layout Plain Layout
6643 StYlE
6644 \end_layout
6645
6646 \end_inset
6647
6648 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6649 \begin_inset Flex Code
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653
6654 \emph on
6655 強調
6656 \end_layout
6657
6658 \end_inset
6659
6660 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6661 \begin_inset Flex Code
6662 status collapsed
6663
6664 \begin_layout Plain Layout
6665 浮動小数点型=
6666 \emph on
6667 既定値
6668 \end_layout
6669
6670 \end_inset
6671
6672 のように表示されます.
6673 \end_layout
6674
6675 \begin_layout Subsection
6676 文書クラス宣言と分類
6677 \end_layout
6678
6679 \begin_layout Standard
6680 レイアウトファイル中の
6681 \begin_inset Flex Code
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 #
6686 \end_layout
6687
6688 \end_inset
6689
6690 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6691 \begin_inset Flex Code
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 *.layout
6696 \end_layout
6697
6698 \end_inset
6699
6700 ファイルは,以下のような行で始めなくてはならないのです.
6701 \end_layout
6702
6703 \begin_layout LyX-Code
6704
6705 \size small
6706 #% Do not delete the line below; configure depends on this
6707 \end_layout
6708
6709 \begin_layout LyX-Code
6710
6711 \size small
6712 #  
6713 \backslash
6714 DeclareLaTeXClass{Article (Standard Class)}
6715 \end_layout
6716
6717 \begin_layout LyX-Code
6718
6719 \size small
6720 #  
6721 \backslash
6722 DeclareCategory{Articles}
6723 \end_layout
6724
6725 \begin_layout Standard
6726 2行目と3行目は,\SpecialChar LyX
6727 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6728 スクリプト
6729 \begin_inset Flex Code
6730 status collapsed
6731
6732 \begin_layout Plain Layout
6733 chkconfig.ltx
6734 \end_layout
6735
6736 \end_inset
6737
6738 が,
6739 \begin_inset Flex Code
6740 status collapsed
6741
6742 \begin_layout Plain Layout
6743 #
6744 \end_layout
6745
6746 \end_inset
6747
6748 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6749 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6750 行が
6751 \begin_inset Flex Code
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755 article.layout
6756 \end_layout
6757
6758 \end_inset
6759
6760 と名付けられたファイルにあると,
6761 \begin_inset Flex Code
6762 status collapsed
6763
6764 \begin_layout Plain Layout
6765 article
6766 \end_layout
6767
6768 \end_inset
6769
6770 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6771 文書クラス
6772 \begin_inset Flex Code
6773 status collapsed
6774
6775 \begin_layout Plain Layout
6776 article.cls
6777 \end_layout
6778
6779 \end_inset
6780
6781 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6782 \begin_inset Flex MenuItem
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786 文書\SpecialChar menuseparator
6787 設定
6788 \end_layout
6789
6790 \end_inset
6791
6792 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6793 \begin_inset Flex MenuItem
6794 status collapsed
6795
6796 \begin_layout Plain Layout
6797 文書\SpecialChar menuseparator
6798 設定
6799 \end_layout
6800
6801 \end_inset
6802
6803 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6804 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6805 rized」グループに属することになります.
6806 \end_layout
6807
6808 \begin_layout Standard
6809 節見出し表示に変更を加えた,
6810 \begin_inset Flex Code
6811 status collapsed
6812
6813 \begin_layout Plain Layout
6814 article.cls
6815 \end_layout
6816
6817 \end_inset
6818
6819 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6820 \begin_inset Flex Code
6821 status collapsed
6822
6823 \begin_layout Plain Layout
6824 myarticle.layout
6825 \end_layout
6826
6827 \end_inset
6828
6829 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6830 \end_layout
6831
6832 \begin_layout LyX-Code
6833
6834 \size small
6835 #% Do not delete the line below; configure depends on this 
6836 \end_layout
6837
6838 \begin_layout LyX-Code
6839
6840 \size small
6841 #  
6842 \backslash
6843 DeclareLaTeXClass[article]{article (with My Own Headings)}
6844 \end_layout
6845
6846 \begin_layout LyX-Code
6847
6848 \size small
6849 #  
6850 \backslash
6851 DeclareCategory{Articles}
6852 \end_layout
6853
6854 \begin_layout Standard
6855 これは,\SpecialChar LaTeX
6856 文書クラス
6857 \begin_inset Flex Code
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 article.cls
6862 \end_layout
6863
6864 \end_inset
6865
6866 に関連づけられ,「Article (with My Own Headings)」と表示される,
6867 \begin_inset Flex Code
6868 status collapsed
6869
6870 \begin_layout Plain Layout
6871 myarticle
6872 \end_layout
6873
6874 \end_inset
6875
6876 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6877 \end_layout
6878
6879 \begin_layout LyX-Code
6880
6881 \size small
6882 #% Do not delete the line below; configure depends on this 
6883 \end_layout
6884
6885 \begin_layout LyX-Code
6886
6887 \size small
6888 #  
6889 \backslash
6890 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
6891 \end_layout
6892
6893 \begin_layout LyX-Code
6894
6895 \size small
6896 #  
6897 \backslash
6898 DeclareCategory{Articles}
6899 \end_layout
6900
6901 \begin_layout Standard
6902 これは,このテキストクラスが
6903 \begin_inset Flex Code
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 foo.sty
6908 \end_layout
6909
6910 \end_inset
6911
6912 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
6913 \end_layout
6914
6915 \begin_layout LyX-Code
6916
6917 \size small
6918 #% Do not delete the line below; configure depends on this 
6919 \end_layout
6920
6921 \begin_layout LyX-Code
6922
6923 \size small
6924
6925 \backslash
6926 DeclareDocBookClass[article]{SGML (DocBook article)}
6927 \end_layout
6928
6929 \begin_layout LyX-Code
6930
6931 \size small
6932 #  
6933 \backslash
6934 DeclareCategory{Articles}
6935 \end_layout
6936
6937 \begin_layout Standard
6938 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
6939 \end_layout
6940
6941 \begin_layout Standard
6942 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
6943 \end_layout
6944
6945 \begin_layout LyX-Code
6946
6947 \size small
6948 #  
6949 \backslash
6950 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6951 \end_layout
6952
6953 \begin_layout LyX-Code
6954
6955 \size small
6956 #  
6957 \backslash
6958 DeclareCategory{分類}
6959 \end_layout
6960
6961 \begin_layout Standard
6962 ここで「クラス」は,\SpecialChar LaTeX
6963 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
6964 は単純に,クラスファイル
6965 名がレイアウトファイル名と同じであると仮定します.
6966 \end_layout
6967
6968 \begin_layout Standard
6969 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
6970 \begin_inset Flex Code
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 LyXDir/layouts/
6975 \end_layout
6976
6977 \end_inset
6978
6979
6980 \begin_inset Flex Code
6981 status collapsed
6982
6983 \begin_layout Plain Layout
6984 UserDir/layouts
6985 \end_layout
6986
6987 \end_inset
6988
6989 にコピーし,
6990 \begin_inset Flex MenuItem
6991 status collapsed
6992
6993 \begin_layout Plain Layout
6994 ツール\SpecialChar menuseparator
6995 環境構成
6996 \end_layout
6997
6998 \end_inset
6999
7000 を実行し,\SpecialChar LyX
7001 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7002 \end_layout
7003
7004 \begin_layout Standard
7005 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7006 を再起動したりすることなく,その変更を確認することができます
7007 \begin_inset Foot
7008 status collapsed
7009
7010 \begin_layout Plain Layout
7011 第1.6版よりも前の\SpecialChar LyX
7012 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7013 を再起動しなくてはならなかったので,
7014 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7015 \end_layout
7016
7017 \end_inset
7018
7019 .\SpecialChar LyX
7020 関数
7021 \begin_inset Flex MenuItem
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 layout-reload
7026 \end_layout
7027
7028 \end_inset
7029
7030 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7031 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7032 \end_layout
7033
7034 \begin_layout Standard
7035
7036 \emph on
7037 注意
7038 \emph default
7039
7040 \begin_inset Flex MenuItem
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 layout-reload
7045 \end_layout
7046
7047 \end_inset
7048
7049 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7050 \emph on
7051 強く
7052 \emph default
7053 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7054 \emph on
7055 強く
7056 \emph default
7057 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7058 は現在の
7059 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7060 \begin_inset Foot
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7065 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7066 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7067 ださい.
7068 \end_layout
7069
7070 \end_inset
7071
7072 .\SpecialChar LyX
7073 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7074 \begin_inset Foot
7075 status collapsed
7076
7077 \begin_layout Plain Layout
7078 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7079 \end_layout
7080
7081 \end_inset
7082
7083
7084 \end_layout
7085
7086 \begin_layout Subsection
7087 モジュール宣言
7088 \end_layout
7089
7090 \begin_layout Standard
7091 モジュールは,以下のような行で始まらなくてはなりません.
7092 \end_layout
7093
7094 \begin_layout LyX-Code
7095 #
7096 \backslash
7097 DeclareLyXModule[endnotes.sty]{Endnotes} 
7098 \end_layout
7099
7100 \begin_layout Standard
7101 波括弧内に入っている必須引数はモジュール名で,これは
7102 \begin_inset Flex MenuItem
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 文書\SpecialChar menuseparator
7107 設定
7108 \end_layout
7109
7110 \end_inset
7111
7112 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7113 パッケージをすべて宣言します.また,非必須引数として,
7114 \begin_inset Flex Code
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118 変換元->変換先
7119 \end_layout
7120
7121 \end_inset
7122
7123 の形を使用することができます.これは,
7124 \begin_inset Flex Code
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 変換元
7129 \end_layout
7130
7131 \end_inset
7132
7133 形式から
7134 \begin_inset Flex Code
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 変換先
7139 \end_layout
7140
7141 \end_inset
7142
7143 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7144 \end_layout
7145
7146 \begin_layout Standard
7147 それから,以下のようなモジュール宣言を行います
7148 \begin_inset Foot
7149 status collapsed
7150
7151 \begin_layout Plain Layout
7152 モジュールを\SpecialChar LyX
7153 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7154 \end_layout
7155
7156 \end_inset
7157
7158
7159 \end_layout
7160
7161 \begin_layout LyX-Code
7162 #DescriptionBegin 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166 #Adds an endnote command, in addition to footnotes.
7167  
7168 \end_layout
7169
7170 \begin_layout LyX-Code
7171 #You will need to add  
7172 \backslash
7173 theendnotes in TeX code where you 
7174 \end_layout
7175
7176 \begin_layout LyX-Code
7177 #want the endnotes to appear.
7178  
7179 \end_layout
7180
7181 \begin_layout LyX-Code
7182 #DescriptionEnd 
7183 \end_layout
7184
7185 \begin_layout LyX-Code
7186 #Requires: somemodule | othermodule
7187 \end_layout
7188
7189 \begin_layout LyX-Code
7190 #Excludes: badmodule
7191 \end_layout
7192
7193 \begin_layout Standard
7194 ここで説明(Description)は,
7195 \begin_inset Flex MenuItem
7196 status collapsed
7197
7198 \begin_layout Plain Layout
7199 文書\SpecialChar menuseparator
7200 設定
7201 \end_layout
7202
7203 \end_inset
7204
7205 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7206 \begin_inset Flex Code
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 Requires
7211 \end_layout
7212
7213 \end_inset
7214
7215 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7216 \begin_inset Flex Code
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 Excludes
7221 \end_layout
7222
7223 \end_inset
7224
7225 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7226 イプ記号「|」で区切らなくてはなりません.
7227 \begin_inset Flex Code
7228 status collapsed
7229
7230 \begin_layout Plain Layout
7231 Requires
7232 \end_layout
7233
7234 \end_inset
7235
7236 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7237 \begin_inset Flex Code
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 Requires
7242 \end_layout
7243
7244 \end_inset
7245
7246 に指定されたモジュールのうち,
7247 \emph on
7248 少なくとも一つ
7249 \emph default
7250 が使用されていればよいということです.同様に,
7251 \begin_inset Flex Code
7252 status collapsed
7253
7254 \begin_layout Plain Layout
7255 Excludes
7256 \end_layout
7257
7258 \end_inset
7259
7260 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7261 \begin_inset Flex Code
7262 status collapsed
7263
7264 \begin_layout Plain Layout
7265 .module
7266 \end_layout
7267
7268 \end_inset
7269
7270 拡張子を除いたファイル名で認識されることに注意してください.つまり
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 somemodule
7276 \end_layout
7277
7278 \end_inset
7279
7280 とは,実のところ
7281 \begin_inset Flex Code
7282 status collapsed
7283
7284 \begin_layout Plain Layout
7285 somemodule.module
7286 \end_layout
7287
7288 \end_inset
7289
7290 のことです.
7291 \end_layout
7292
7293 \begin_layout Subsection
7294 書式番号
7295 \end_layout
7296
7297 \begin_layout Standard
7298 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7299 \end_layout
7300
7301 \begin_layout Description
7302 \begin_inset Flex Code
7303 status collapsed
7304
7305 \begin_layout Plain Layout
7306 Format
7307 \end_layout
7308
7309 \end_inset
7310
7311  [
7312 \begin_inset Flex Code
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 整数型
7317 \end_layout
7318
7319 \end_inset
7320
7321 ] このレイアウトファイルの書式
7322 \end_layout
7323
7324 \begin_layout Standard
7325 このタグは\SpecialChar LyX
7326
7327 \begin_inset space ~
7328 \end_inset
7329
7330 1.4.0で導入されました.\SpecialChar LyX
7331
7332 \begin_inset space ~
7333 \end_inset
7334
7335 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7336 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7337 の各版は,旧版の\SpecialChar LyX
7338 で作成さ
7339 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7340 \end_layout
7341
7342 \begin_layout Subsection
7343 \begin_inset CommandInset label
7344 LatexCommand label
7345 name "subsec:汎用テキストクラスパラメータ"
7346
7347 \end_inset
7348
7349 汎用テキストクラスパラメータ
7350 \end_layout
7351
7352 \begin_layout Standard
7353 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 .layout
7359 \end_layout
7360
7361 \end_inset
7362
7363 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7364 \emph on
7365 ありません
7366 \emph default
7367 .モジュールには,すべてのレイアウトタグを使用することができます).
7368 \end_layout
7369
7370 \begin_layout Description
7371 \begin_inset Flex Code
7372 status collapsed
7373
7374 \begin_layout Plain Layout
7375 AddToHTMLPreamble
7376 \end_layout
7377
7378 \end_inset
7379
7380  この文書クラスがXHTMLに出力されるときに,
7381 \begin_inset Flex Code
7382 status collapsed
7383
7384 \begin_layout Plain Layout
7385 <head>
7386 \end_layout
7387
7388 \end_inset
7389
7390 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7391 \begin_inset Flex Code
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395 <head>
7396 \end_layout
7397
7398 \end_inset
7399
7400 に出力するものであれば,何でも使用することができます.「
7401 \begin_inset Flex Code
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 EndPreamble
7406 \end_layout
7407
7408 \end_inset
7409
7410 」で閉じる必要があります.
7411 \end_layout
7412
7413 \begin_layout Description
7414 \begin_inset Flex Code
7415 status collapsed
7416
7417 \begin_layout Plain Layout
7418 AddToPreamble
7419 \end_layout
7420
7421 \end_inset
7422
7423  文書プリアンブルに書き加えられる情報です.「
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428 EndPreamble
7429 \end_layout
7430
7431 \end_inset
7432
7433 」で閉じる必要があります.
7434 \end_layout
7435
7436 \begin_layout Description
7437 \begin_inset Flex Code
7438 status collapsed
7439
7440 \begin_layout Plain Layout
7441 CiteFormat
7442 \end_layout
7443
7444 \end_inset
7445
7446  書誌情報の表示に使う書式を定義します.詳細については,
7447 \begin_inset CommandInset ref
7448 LatexCommand ref
7449 reference "subsec:引用書式指定"
7450
7451 \end_inset
7452
7453 をご覧ください.「
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 End
7459 \end_layout
7460
7461 \end_inset
7462
7463 」で閉じる必要があります.
7464 \end_layout
7465
7466 \begin_layout Description
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 ClassOptions
7472 \end_layout
7473
7474 \end_inset
7475
7476  文書クラスがサポートする様々な大域オプションを記します.説明は,
7477 \begin_inset CommandInset ref
7478 LatexCommand ref
7479 reference "subsec:ClassOptions"
7480
7481 \end_inset
7482
7483 を参照してください.「
7484 \begin_inset Flex Code
7485 status collapsed
7486
7487 \begin_layout Plain Layout
7488 End
7489 \end_layout
7490
7491 \end_inset
7492
7493 」で閉じる必要があります.
7494 \end_layout
7495
7496 \begin_layout Description
7497 \begin_inset Flex Code
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 Columns
7502 \end_layout
7503
7504 \end_inset
7505
7506  [
7507 \begin_inset Flex Code
7508 status collapsed
7509
7510 \begin_layout Plain Layout
7511
7512 \emph on
7513 1
7514 \end_layout
7515
7516 \end_inset
7517
7518 ,
7519 \begin_inset space \thinspace{}
7520 \end_inset
7521
7522
7523 \begin_inset Flex Code
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 2
7528 \end_layout
7529
7530 \end_inset
7531
7532 ] 文書クラスが既定で1段組か2段組かを指定します.
7533 \begin_inset Flex MenuItem
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 文書\SpecialChar menuseparator
7538 設定
7539 \end_layout
7540
7541 \end_inset
7542
7543 ダイアログで変更することができます.
7544 \end_layout
7545
7546 \begin_layout Description
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551 Counter
7552 \end_layout
7553
7554 \end_inset
7555
7556  [
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 文字列
7562 \end_layout
7563
7564 \end_inset
7565
7566 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 End
7572 \end_layout
7573
7574 \end_inset
7575
7576 」で閉じる必要があります.
7577 \begin_inset Newline newline
7578 \end_inset
7579
7580 カウンタについての詳細は,
7581 \begin_inset CommandInset ref
7582 LatexCommand ref
7583 reference "subsec:カウンタ"
7584
7585 \end_inset
7586
7587 を参照してください.
7588 \end_layout
7589
7590 \begin_layout Description
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595 DefaultFont
7596 \end_layout
7597
7598 \end_inset
7599
7600  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7601 \begin_inset CommandInset ref
7602 LatexCommand ref
7603 reference "subsec:フォント指定"
7604
7605 \end_inset
7606
7607 を参照してください.「
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 EndFont
7613 \end_layout
7614
7615 \end_inset
7616
7617 」で閉じる必要があります.
7618 \end_layout
7619
7620 \begin_layout Description
7621 \begin_inset Flex Code
7622 status collapsed
7623
7624 \begin_layout Plain Layout
7625 DefaultModule
7626 \end_layout
7627
7628 \end_inset
7629
7630  [
7631 \begin_inset Flex Code
7632 status collapsed
7633
7634 \begin_layout Plain Layout
7635 <モジュール>
7636 \end_layout
7637
7638 \end_inset
7639
7640 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7641 \begin_inset Flex Code
7642 status collapsed
7643
7644 \begin_layout Plain Layout
7645 .module
7646 \end_layout
7647
7648 \end_inset
7649
7650 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7651 既存の文書にこの文書クラスが選択したときのみ該当します).
7652 \end_layout
7653
7654 \begin_layout Description
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 DefaultStyle
7660 \end_layout
7661
7662 \end_inset
7663
7664  [
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 <様式>
7670 \end_layout
7671
7672 \end_inset
7673
7674 ]
7675 \lang english
7676  
7677 \lang japanese
7678 これは新規段落に割り当てられる様式であり,通常は
7679 \begin_inset Flex MenuItem
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 標準
7684 \end_layout
7685
7686 \end_inset
7687
7688 です.もしこれを指定しなければ,最初に定義される様式がこれに割り当てられるようにはなっていますが,このディレクティブを使用することが推奨されます.
7689 \end_layout
7690
7691 \begin_layout Description
7692 \begin_inset Flex Code
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 ExcludesModule
7697 \end_layout
7698
7699 \end_inset
7700
7701  [
7702 \begin_inset Flex Code
7703 status collapsed
7704
7705 \begin_layout Plain Layout
7706 <モジュール>
7707 \end_layout
7708
7709 \end_inset
7710
7711 ] このタグは,指定されたモジュール—
7712 \begin_inset Flex Code
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716 .module
7717 \end_layout
7718
7719 \end_inset
7720
7721 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7722 に振る
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 theorems-sec
7728 \end_layout
7729
7730 \end_inset
7731
7732 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7733 \emph on
7734 使用してはいけません
7735 \emph default
7736 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7737 \begin_inset CommandInset ref
7738 LatexCommand ref
7739 reference "subsec:レイアウトモジュール"
7740
7741 \end_inset
7742
7743 参照).
7744 \end_layout
7745
7746 \begin_layout Description
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751 Float
7752 \end_layout
7753
7754 \end_inset
7755
7756  フロートを新規に定義します.詳細は,
7757 \begin_inset CommandInset ref
7758 LatexCommand ref
7759 reference "subsec:フロート"
7760
7761 \end_inset
7762
7763 を参照してください.「
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 End
7769 \end_layout
7770
7771 \end_inset
7772
7773 」で閉じる必要があります.
7774 \end_layout
7775
7776 \begin_layout Description
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 HTMLPreamble
7782 \end_layout
7783
7784 \end_inset
7785
7786  この文書クラスがXHTMLに出力されるときに,
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 <head>
7792 \end_layout
7793
7794 \end_inset
7795
7796 ブロックに出力される情報です.これより前に出現した
7797 \begin_inset Flex Code
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801 HTMLPreamble
7802 \end_layout
7803
7804 \end_inset
7805
7806
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811 AddToHTMLPreamble
7812 \end_layout
7813
7814 \end_inset
7815
7816 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7817 \begin_inset Flex Code
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821 AddToHTMLPreamble
7822 \end_layout
7823
7824 \end_inset
7825
7826 を使用してください).これは「
7827 \begin_inset Flex Code
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 EndPreamble
7832 \end_layout
7833
7834 \end_inset
7835
7836 」で閉じる必要があります.
7837 \end_layout
7838
7839 \begin_layout Description
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 HTMLTOCSection
7845 \end_layout
7846
7847 \end_inset
7848
7849  [
7850 \begin_inset Flex Code
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 <様式>
7855 \end_layout
7856
7857 \end_inset
7858
7859 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7860 .これを指定しない場合には,\SpecialChar LyX
7861 はどのレイアウトを使用するべきか,解析しようと試みます.
7862 \end_layout
7863
7864 \begin_layout Description
7865 \begin_inset Flex Code
7866 status collapsed
7867
7868 \begin_layout Plain Layout
7869 IfCounter 
7870 \end_layout
7871
7872 \end_inset
7873
7874  [
7875 \begin_inset Flex Code
7876 status collapsed
7877
7878 \begin_layout Plain Layout
7879 <カウンタ>
7880 \end_layout
7881
7882 \end_inset
7883
7884 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7885 \begin_inset Flex Code
7886 status collapsed
7887
7888 \begin_layout Plain Layout
7889 End
7890 \end_layout
7891
7892 \end_inset
7893
7894 」で閉じる必要があります.
7895 \begin_inset Newline newline
7896 \end_inset
7897
7898 カウンタについての詳細は,
7899 \begin_inset CommandInset ref
7900 LatexCommand ref
7901 reference "subsec:カウンタ"
7902
7903 \end_inset
7904
7905 をご覧ください.
7906 \end_layout
7907
7908 \begin_layout Description
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 IfStyle
7914 \end_layout
7915
7916 \end_inset
7917
7918  [
7919 \begin_inset Flex Code
7920 status collapsed
7921
7922 \begin_layout Plain Layout
7923 <様式>
7924 \end_layout
7925
7926 \end_inset
7927
7928 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
7929 \begin_inset Flex Code
7930 status collapsed
7931
7932 \begin_layout Plain Layout
7933 End
7934 \end_layout
7935
7936 \end_inset
7937
7938 」で閉じる必要があります.
7939 \end_layout
7940
7941 \begin_layout Description
7942 \begin_inset Flex Code
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 Input
7947 \end_layout
7948
7949 \end_inset
7950
7951  [
7952 \begin_inset Flex Code
7953 status collapsed
7954
7955 \begin_layout Plain Layout
7956 <ファイル名>
7957 \end_layout
7958
7959 \end_inset
7960
7961 ]
7962 \lang english
7963  
7964 \lang japanese
7965 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
7966 のほとんどを収録している
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 stdclass.inc
7972 \end_layout
7973
7974 \end_inset
7975
7976 のような標準レイアウトファイルです.
7977 \end_layout
7978
7979 \begin_layout Description
7980 \begin_inset Flex Code
7981 status collapsed
7982
7983 \begin_layout Plain Layout
7984 InsetLayout
7985 \end_layout
7986
7987 \end_inset
7988
7989  [
7990 \begin_inset Flex Code
7991 status collapsed
7992
7993 \begin_layout Plain Layout
7994 <型>
7995 \end_layout
7996
7997 \end_inset
7998
7999 ]
8000 \lang english
8001  
8002 \lang japanese
8003 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8004 \begin_inset Flex Code
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 End
8009 \end_layout
8010
8011 \end_inset
8012
8013 」で閉じる必要があります.
8014 \begin_inset Newline newline
8015 \end_inset
8016
8017 詳しい情報は,
8018 \begin_inset CommandInset ref
8019 LatexCommand ref
8020 reference "subsec:任意設定差込枠"
8021
8022 \end_inset
8023
8024 をご覧ください.
8025 \end_layout
8026
8027 \begin_layout Description
8028 \begin_inset Flex Code
8029 status collapsed
8030
8031 \begin_layout Plain Layout
8032 LeftMargin
8033 \end_layout
8034
8035 \end_inset
8036
8037  [
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 文字列
8043 \end_layout
8044
8045 \end_inset
8046
8047 ] 画面上の左余白の幅を指示する文字列.例:「
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 MMMMM
8053 \end_layout
8054
8055 \end_inset
8056
8057 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8058 \end_layout
8059
8060 \begin_layout Description
8061 \begin_inset Flex Code
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 NoCounter
8066 \end_layout
8067
8068 \end_inset
8069
8070  [
8071 \begin_inset Flex Code
8072 status collapsed
8073
8074 \begin_layout Plain Layout
8075 <カウンタ>
8076 \end_layout
8077
8078 \end_inset
8079
8080 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8081 \end_layout
8082
8083 \begin_layout Description
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 NoFloat
8089 \end_layout
8090
8091 \end_inset
8092
8093  [
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 <フロート>
8099 \end_layout
8100
8101 \end_inset
8102
8103 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8104 \end_layout
8105
8106 \begin_layout Description
8107 \begin_inset Flex Code
8108 status collapsed
8109
8110 \begin_layout Plain Layout
8111 NoStyle
8112 \end_layout
8113
8114 \end_inset
8115
8116  [
8117 \begin_inset Flex Code
8118 status collapsed
8119
8120 \begin_layout Plain Layout
8121 <様式>
8122 \end_layout
8123
8124 \end_inset
8125
8126 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8127 \end_layout
8128
8129 \begin_layout Description
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 OutputFormat
8135 \end_layout
8136
8137 \end_inset
8138
8139  [
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 <形式>
8145 \end_layout
8146
8147 \end_inset
8148
8149 ] このクラスによって生成されるファイル形式を示す文字列(
8150 \family sans
8151 設定
8152 \family default
8153 ダイアログで定義される形のもの).おもに,
8154 \begin_inset Flex Code
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 OutputType
8159 \end_layout
8160
8161 \end_inset
8162
8163
8164 \begin_inset Flex Code
8165 status collapsed
8166
8167 \begin_layout Plain Layout
8168 literate
8169 \end_layout
8170
8171 \end_inset
8172
8173 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8174 \begin_inset Flex Code
8175 status collapsed
8176
8177 \begin_layout Plain Layout
8178 OutputType
8179 \end_layout
8180
8181 \end_inset
8182
8183 パラメーターに遭遇したときには,この文字列は,「
8184 \begin_inset Flex Code
8185 status collapsed
8186
8187 \begin_layout Plain Layout
8188 docbook
8189 \end_layout
8190
8191 \end_inset
8192
8193 」・「
8194 \begin_inset Flex Code
8195 status collapsed
8196
8197 \begin_layout Plain Layout
8198 lat
8199 \emph on
8200 ex
8201 \end_layout
8202
8203 \end_inset
8204
8205 」のいずれかにリセットされます.
8206 \end_layout
8207
8208 \begin_layout Description
8209 \begin_inset Flex Code
8210 status collapsed
8211
8212 \begin_layout Plain Layout
8213 OutputType
8214 \end_layout
8215
8216 \end_inset
8217
8218  [
8219 \begin_inset Flex Code
8220 status collapsed
8221
8222 \begin_layout Plain Layout
8223
8224 \emph on
8225 lat
8226 \emph default
8227 ex
8228 \end_layout
8229
8230 \end_inset
8231
8232
8233 \begin_inset Flex Code
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 docbook
8238 \end_layout
8239
8240 \end_inset
8241
8242
8243 \begin_inset Flex Code
8244 status collapsed
8245
8246 \begin_layout Plain Layout
8247 literate
8248 \end_layout
8249
8250 \end_inset
8251
8252 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8253 \end_layout
8254
8255 \begin_layout Description
8256 \begin_inset Flex Code
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260 PackageOptions
8261 \end_layout
8262
8263 \end_inset
8264
8265  [
8266 \begin_inset Flex Code
8267 status collapsed
8268
8269 \begin_layout Plain Layout
8270 文字列
8271 \end_layout
8272
8273 \end_inset
8274
8275  
8276 \begin_inset Flex Code
8277 status collapsed
8278
8279 \begin_layout Plain Layout
8280 文字列
8281 \end_layout
8282
8283 \end_inset
8284
8285 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8286 \begin_inset Flex Code
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290 PackageOptions natbib square
8291 \end_layout
8292
8293 \end_inset
8294
8295 」とすると,
8296 \begin_inset Flex Code
8297 status collapsed
8298
8299 \begin_layout Plain Layout
8300 natbib
8301 \end_layout
8302
8303 \end_inset
8304
8305
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 square
8311 \end_layout
8312
8313 \end_inset
8314
8315 オプションとともに読み込みます(\SpecialChar TeX
8316 perts向けに述べると,これは,
8317 \begin_inset Flex Code
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 natbib
8322 \end_layout
8323
8324 \end_inset
8325
8326 を読み込む前に,\SpecialChar LyX
8327
8328 \begin_inset Flex Code
8329 status collapsed
8330
8331 \begin_layout Plain Layout
8332
8333 \backslash
8334 PassOptionsToPackage{natbib}{square}
8335 \end_layout
8336
8337 \end_inset
8338
8339 を出力させます).
8340 \end_layout
8341
8342 \begin_layout Description
8343 \begin_inset Flex Code
8344 status collapsed
8345
8346 \begin_layout Plain Layout
8347 PageStyle
8348 \end_layout
8349
8350 \end_inset
8351
8352  [
8353 \emph on
8354
8355 \begin_inset Flex Code
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 plain
8360 \end_layout
8361
8362 \end_inset
8363
8364
8365 \emph default
8366
8367 \begin_inset Flex Code
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 empty
8372 \end_layout
8373
8374 \end_inset
8375
8376
8377 \begin_inset Flex Code
8378 status collapsed
8379
8380 \begin_layout Plain Layout
8381 headings
8382 \end_layout
8383
8384 \end_inset
8385
8386 ] 既定ページ様式.
8387 \begin_inset Flex MenuItem
8388 status collapsed
8389
8390 \begin_layout Plain Layout
8391 文書\SpecialChar menuseparator
8392 設定
8393 \end_layout
8394
8395 \end_inset
8396
8397 ダイアログで変更することができます.
8398 \end_layout
8399
8400 \begin_layout Description
8401 \begin_inset Flex Code
8402 status collapsed
8403
8404 \begin_layout Plain Layout
8405 Preamble
8406 \end_layout
8407
8408 \end_inset
8409
8410  \SpecialChar LaTeX
8411 文書のプリアンブルを設定します.前に行った
8412 \begin_inset Flex Code
8413 status collapsed
8414
8415 \begin_layout Plain Layout
8416 Preamble
8417 \end_layout
8418
8419 \end_inset
8420
8421 宣言や
8422 \begin_inset Flex Code
8423 status collapsed
8424
8425 \begin_layout Plain Layout
8426 AddToPreamble
8427 \end_layout
8428
8429 \end_inset
8430
8431 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8432 \begin_inset Flex Code
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 AddToPreamble
8437 \end_layout
8438
8439 \end_inset
8440
8441 を使用してください.)「
8442 \begin_inset Flex Code
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 EndPreamble
8447 \end_layout
8448
8449 \end_inset
8450
8451 」で閉じる必要があります.
8452 \end_layout
8453
8454 \begin_layout Description
8455 \begin_inset Flex Code
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459 Provides
8460 \end_layout
8461
8462 \end_inset
8463
8464  [
8465 \begin_inset Flex Code
8466 status collapsed
8467
8468 \begin_layout Plain Layout
8469 文字列
8470 \end_layout
8471
8472 \end_inset
8473
8474 ] [
8475 \begin_inset Flex Code
8476 status collapsed
8477
8478 \begin_layout Plain Layout
8479
8480 \emph on
8481 0
8482 \end_layout
8483
8484 \end_inset
8485
8486
8487 \begin_inset Flex Code
8488 status collapsed
8489
8490 \begin_layout Plain Layout
8491 1
8492 \end_layout
8493
8494 \end_inset
8495
8496 ] このクラスが
8497 \begin_inset Flex Code
8498 status collapsed
8499
8500 \begin_layout Plain Layout
8501 文字列
8502 \end_layout
8503
8504 \end_inset
8505
8506 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8507 \begin_inset Flex Code
8508 status collapsed
8509
8510 \begin_layout Plain Layout
8511 amsmath
8512 \end_layout
8513
8514 \end_inset
8515
8516
8517 \begin_inset Flex Code
8518 status collapsed
8519
8520 \begin_layout Plain Layout
8521 makeidx
8522 \end_layout
8523
8524 \end_inset
8525
8526 ・\SpecialChar ldots
8527 )やマクロ名(
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 url
8533 \end_layout
8534
8535 \end_inset
8536
8537
8538 \begin_inset Flex Code
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 boldsymbol
8543 \end_layout
8544
8545 \end_inset
8546
8547 ・\SpecialChar ldots
8548 )です.機能一覧については,
8549 \begin_inset CommandInset ref
8550 LatexCommand ref
8551 reference "chap:関数一覧"
8552
8553 \end_inset
8554
8555 を参照.
8556 \end_layout
8557
8558 \begin_layout Description
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 ProvidesModule
8564 \end_layout
8565
8566 \end_inset
8567
8568  [
8569 \begin_inset Flex Code
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 文字列
8574 \end_layout
8575
8576 \end_inset
8577
8578 ] このレイアウトが
8579 \begin_inset Flex Code
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 文字列
8584 \end_layout
8585
8586 \end_inset
8587
8588 で表されているモジュールの機能を提供することを示し,
8589 \begin_inset Flex Code
8590 status collapsed
8591
8592 \begin_layout Plain Layout
8593 .module
8594 \end_layout
8595
8596 \end_inset
8597
8598 拡張子を除いたファイル名で指定します.
8599 \begin_inset Flex Code
8600 status collapsed
8601
8602 \begin_layout Plain Layout
8603 DefaultModule
8604 \end_layout
8605
8606 \end_inset
8607
8608 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8609 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8610 \end_layout
8611
8612 \begin_layout Description
8613 \begin_inset Flex Code
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 Requires
8618 \end_layout
8619
8620 \end_inset
8621
8622  [
8623 \begin_inset Flex Code
8624 status collapsed
8625
8626 \begin_layout Plain Layout
8627 文字列
8628 \end_layout
8629
8630 \end_inset
8631
8632 ] このクラスが
8633 \begin_inset Flex Code
8634 status collapsed
8635
8636 \begin_layout Plain Layout
8637 文字列
8638 \end_layout
8639
8640 \end_inset
8641
8642 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8643 さい(機能一覧については
8644 \begin_inset CommandInset ref
8645 LatexCommand ref
8646 reference "chap:関数一覧"
8647
8648 \end_inset
8649
8650 を参照).特定のオプションをとるパッケージを要求する場合,
8651 \begin_inset Flex Code
8652 status collapsed
8653
8654 \begin_layout Plain Layout
8655 PackageOptions
8656 \end_layout
8657
8658 \end_inset
8659
8660 を追加して使うことができます.
8661 \end_layout
8662
8663 \begin_layout Description
8664 \begin_inset Flex Code
8665 status collapsed
8666
8667 \begin_layout Plain Layout
8668 RightMargin
8669 \end_layout
8670
8671 \end_inset
8672
8673  [
8674 \begin_inset Flex Code
8675 status collapsed
8676
8677 \begin_layout Plain Layout
8678 文字列
8679 \end_layout
8680
8681 \end_inset
8682
8683 ] 画面上の右余白の幅を指示する文字列.例:「
8684 \begin_inset Flex Code
8685 status collapsed
8686
8687 \begin_layout Plain Layout
8688 MMMMM
8689 \end_layout
8690
8691 \end_inset
8692
8693 」.
8694 \end_layout
8695
8696 \begin_layout Description
8697 \begin_inset Flex Code
8698 status collapsed
8699
8700 \begin_layout Plain Layout
8701 SecNumDepth
8702 \end_layout
8703
8704 \end_inset
8705
8706  [
8707 \begin_inset Flex Code
8708 status collapsed
8709
8710 \begin_layout Plain Layout
8711 int=3
8712 \end_layout
8713
8714 \end_inset
8715
8716 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8717 における
8718 \begin_inset Flex Code
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 secnumdepth
8723 \end_layout
8724
8725 \end_inset
8726
8727 カウンタに対応します.
8728 \end_layout
8729
8730 \begin_layout Description
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 Sides
8736 \end_layout
8737
8738 \end_inset
8739
8740  [
8741 \emph on
8742
8743 \begin_inset Flex Code
8744 status collapsed
8745
8746 \begin_layout Plain Layout
8747 1
8748 \end_layout
8749
8750 \end_inset
8751
8752
8753 \emph default
8754 ,
8755 \begin_inset space \thinspace{}
8756 \end_inset
8757
8758
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 2
8764 \end_layout
8765
8766 \end_inset
8767
8768 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8769 \begin_inset Flex MenuItem
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 文書\SpecialChar menuseparator
8774 設定
8775 \end_layout
8776
8777 \end_inset
8778
8779 ダイアログで変更することができます.
8780 \end_layout
8781
8782 \begin_layout Description
8783 \begin_inset Flex Code
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787 Style
8788 \end_layout
8789
8790 \end_inset
8791
8792  [
8793 \begin_inset Flex Code
8794 status collapsed
8795
8796 \begin_layout Plain Layout
8797 <名称>
8798 \end_layout
8799
8800 \end_inset
8801
8802 ]
8803 \lang english
8804  
8805 \lang japanese
8806 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8807 \begin_inset Flex Code
8808 status collapsed
8809
8810 \begin_layout Plain Layout
8811 End
8812 \end_layout
8813
8814 \end_inset
8815
8816 」で閉じる必要があります.
8817 \begin_inset Newline newline
8818 \end_inset
8819
8820 段落様式に関する詳細は,
8821 \begin_inset CommandInset ref
8822 LatexCommand ref
8823 reference "subsec:段落様式-XHTML"
8824
8825 \end_inset
8826
8827 をご覧ください.
8828 \end_layout
8829
8830 \begin_layout Description
8831 \begin_inset Flex Code
8832 status collapsed
8833
8834 \begin_layout Plain Layout
8835 TitleLatexName
8836 \end_layout
8837
8838 \end_inset
8839
8840  [
8841 \begin_inset Flex Code
8842 status collapsed
8843
8844 \begin_layout Plain Layout
8845 文字列="maketitle"
8846 \end_layout
8847
8848 \end_inset
8849
8850
8851 \begin_inset Flex Code
8852 status collapsed
8853
8854 \begin_layout Plain Layout
8855 TitleLatexType
8856 \end_layout
8857
8858 \end_inset
8859
8860 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8861  
8862 \begin_inset Flex Code
8863 status collapsed
8864
8865 \begin_layout Plain Layout
8866 TitleLatexType
8867 \end_layout
8868
8869 \end_inset
8870
8871 .
8872 \end_layout
8873
8874 \begin_layout Description
8875 \begin_inset Flex Code
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 TitleLatexType
8880 \end_layout
8881
8882 \end_inset
8883
8884  [
8885 \begin_inset Flex Code
8886 status collapsed
8887
8888 \begin_layout Plain Layout
8889
8890 \emph on
8891 CommandAfter
8892 \end_layout
8893
8894 \end_inset
8895
8896
8897 \begin_inset Flex Code
8898 status collapsed
8899
8900 \begin_layout Plain Layout
8901 Environment
8902 \end_layout
8903
8904 \end_inset
8905
8906 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
8907 \begin_inset Flex Code
8908 status collapsed
8909
8910 \begin_layout Plain Layout
8911 CommandAfter
8912 \end_layout
8913
8914 \end_inset
8915
8916 は,「
8917 \begin_inset Flex Code
8918 status collapsed
8919
8920 \begin_layout Plain Layout
8921 InTitle
8922 \begin_inset space ~
8923 \end_inset
8924
8925 1
8926 \end_layout
8927
8928 \end_inset
8929
8930 」が指定されている最後のレイアウトの後に,
8931 \begin_inset Flex Code
8932 status collapsed
8933
8934 \begin_layout Plain Layout
8935 TitleLatexName
8936 \end_layout
8937
8938 \end_inset
8939
8940 で指定したマクロ名を挿入することを意味します.
8941 \begin_inset Flex Code
8942 status collapsed
8943
8944 \begin_layout Plain Layout
8945 Environment
8946 \end_layout
8947
8948 \end_inset
8949
8950 は,「
8951 \begin_inset Flex Code
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 InTitle
8956 \begin_inset space ~
8957 \end_inset
8958
8959 1
8960 \end_layout
8961
8962 \end_inset
8963
8964 」を持つ段落群を
8965 \begin_inset Flex Code
8966 status collapsed
8967
8968 \begin_layout Plain Layout
8969 TitleLatexName
8970 \end_layout
8971
8972 \end_inset
8973
8974 で指定した環境でくるむ場合に対応します.
8975 \end_layout
8976
8977 \begin_layout Description
8978 \begin_inset Flex Code
8979 status collapsed
8980
8981 \begin_layout Plain Layout
8982 TocDepth
8983 \end_layout
8984
8985 \end_inset
8986
8987  [
8988 \begin_inset Flex Code
8989 status collapsed
8990
8991 \begin_layout Plain Layout
8992 int=3
8993 \end_layout
8994
8995 \end_inset
8996
8997 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
8998
8999 \begin_inset Flex Code
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003 tocdepth
9004 \end_layout
9005
9006 \end_inset
9007
9008 カウンタに対応します.
9009 \end_layout
9010
9011 \begin_layout Subsection
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016 ClassOptions
9017 \end_layout
9018
9019 \end_inset
9020
9021
9022 \begin_inset CommandInset label
9023 LatexCommand label
9024 name "subsec:ClassOptions"
9025
9026 \end_inset
9027
9028
9029 \end_layout
9030
9031 \begin_layout Standard
9032 \begin_inset Flex Code
9033 status collapsed
9034
9035 \begin_layout Plain Layout
9036 ClassOptions
9037 \end_layout
9038
9039 \end_inset
9040
9041 部は,以下の項目を取り得ます.
9042 \end_layout
9043
9044 \begin_layout Description
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 FontSize
9050 \end_layout
9051
9052 \end_inset
9053
9054  [
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 文字列="10|11|12"
9060 \end_layout
9061
9062 \end_inset
9063
9064 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 |
9070 \end_layout
9071
9072 \end_inset
9073
9074 」で区切ります.
9075 \end_layout
9076
9077 \begin_layout Description
9078 \begin_inset Flex Code
9079 status collapsed
9080
9081 \begin_layout Plain Layout
9082 Header
9083 \end_layout
9084
9085 \end_inset
9086
9087  XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC 
9088 \begin_inset Quotes eld
9089 \end_inset
9090
9091 -//OASIS//DTD DocBook V4.2//EN
9092 \begin_inset Quotes erd
9093 \end_inset
9094
9095
9096 \end_layout
9097
9098 \begin_layout Description
9099 \begin_inset Flex Code
9100 status collapsed
9101
9102 \begin_layout Plain Layout
9103 PageStyle
9104 \end_layout
9105
9106 \end_inset
9107
9108  [
9109 \begin_inset Flex Code
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 文字列="empty|plain|headings|fancy"
9114 \end_layout
9115
9116 \end_inset
9117
9118 ] 使用できるページ様式の一覧です.「
9119 \begin_inset Flex Code
9120 status collapsed
9121
9122 \begin_layout Plain Layout
9123 |
9124 \end_layout
9125
9126 \end_inset
9127
9128 」で区切ります.
9129 \end_layout
9130
9131 \begin_layout Description
9132 \begin_inset Flex Code
9133 status collapsed
9134
9135 \begin_layout Plain Layout
9136 Other
9137 \end_layout
9138
9139 \end_inset
9140
9141  [
9142 \begin_inset Flex Code
9143 status collapsed
9144
9145 \begin_layout Plain Layout
9146 文字列=""
9147 \end_layout
9148
9149 \end_inset
9150
9151
9152 \begin_inset Flex Code
9153 status collapsed
9154
9155 \begin_layout Plain Layout
9156
9157 \backslash
9158 documentclass
9159 \end_layout
9160
9161 \end_inset
9162
9163 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9164 \end_layout
9165
9166 \begin_layout Standard
9167 \begin_inset Flex Code
9168 status collapsed
9169
9170 \begin_layout Plain Layout
9171 ClassOptions
9172 \end_layout
9173
9174 \end_inset
9175
9176 部は「
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 End
9182 \end_layout
9183
9184 \end_inset
9185
9186 」で閉じる必要があります.
9187 \end_layout
9188
9189 \begin_layout Subsection
9190 段落様式
9191 \begin_inset CommandInset label
9192 LatexCommand label
9193 name "subsec:段落様式"
9194
9195 \end_inset
9196
9197
9198 \end_layout
9199
9200 \begin_layout Standard
9201 段落様式の記述は,以下のようになります
9202 \begin_inset Foot
9203 status collapsed
9204
9205 \begin_layout Plain Layout
9206 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9207 \end_layout
9208
9209 \end_inset
9210
9211
9212 \end_layout
9213
9214 \begin_layout LyX-Code
9215 Style 
9216 \family roman
9217 \emph on
9218 名称
9219 \end_layout
9220
9221 \begin_layout LyX-Code
9222  ...
9223 \end_layout
9224
9225 \begin_layout LyX-Code
9226 End
9227 \end_layout
9228
9229 \begin_layout Standard
9230 ここでは,以下のコマンドを使用することができます.
9231 \end_layout
9232
9233 \begin_layout Description
9234 \begin_inset Flex Code
9235 status collapsed
9236
9237 \begin_layout Plain Layout
9238 Align
9239 \end_layout
9240
9241 \end_inset
9242
9243  [
9244 \begin_inset Flex Code
9245 status collapsed
9246
9247 \begin_layout Plain Layout
9248
9249 \emph on
9250 block
9251 \emph default
9252 , left, right, center
9253 \end_layout
9254
9255 \end_inset
9256
9257 ] 段落の揃え.
9258 \end_layout
9259
9260 \begin_layout Description
9261 \begin_inset Flex Code
9262 status collapsed
9263
9264 \begin_layout Plain Layout
9265 AlignPossible
9266 \end_layout
9267
9268 \end_inset
9269
9270  [
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275
9276 \emph on
9277 block
9278 \emph default
9279 , left, right, center
9280 \end_layout
9281
9282 \end_inset
9283
9284 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9285 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9286 はできません).
9287 \end_layout
9288
9289 \begin_layout Description
9290 \begin_inset Flex Code
9291 status collapsed
9292
9293 \begin_layout Plain Layout
9294 Argument
9295 \end_layout
9296
9297 \end_inset
9298
9299  [
9300 \begin_inset Flex Code
9301 status collapsed
9302
9303 \begin_layout Plain Layout
9304 整数
9305 \end_layout
9306
9307 \end_inset
9308
9309 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9310 でのみ意味を持ちます.コマンドまたは環
9311 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9312 \begin_inset Flex Code
9313 status collapsed
9314
9315 \begin_layout Plain Layout
9316 EndArgument
9317 \end_layout
9318
9319 \end_inset
9320
9321 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9322 \end_layout
9323
9324 \begin_deeper
9325 \begin_layout Quote
9326
9327 \family typewriter
9328 Argument 1
9329 \end_layout
9330
9331 \begin_layout Quote
9332
9333 \family typewriter
9334 ...
9335 \end_layout
9336
9337 \begin_layout Quote
9338
9339 \family typewriter
9340 EndArgument
9341 \end_layout
9342
9343 \begin_layout Quote
9344
9345 \family typewriter
9346 Argument 2
9347 \end_layout
9348
9349 \begin_layout Quote
9350
9351 \family typewriter
9352 ...
9353 \end_layout
9354
9355 \begin_layout Quote
9356
9357 \family typewriter
9358 EndArgument
9359 \end_layout
9360
9361 \begin_layout Standard
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 Argument
9367 \end_layout
9368
9369 \end_inset
9370
9371 定義内部では,以下の指定をすることができます.
9372 \end_layout
9373
9374 \begin_layout Itemize
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 LabelString
9380 \end_layout
9381
9382 \end_inset
9383
9384  
9385 \begin_inset Flex Code
9386 status collapsed
9387
9388 \begin_layout Plain Layout
9389 [文字列]
9390 \end_layout
9391
9392 \end_inset
9393
9394  この引数を挿入するメニューと引数差込枠ボタンに表示される文字列です(別に
9395 \begin_inset Flex Code
9396 status collapsed
9397
9398 \begin_layout Plain Layout
9399 MenuString
9400 \end_layout
9401
9402 \end_inset
9403
9404 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9405 \begin_inset space \space{}
9406 \end_inset
9407
9408
9409 \begin_inset Quotes eld
9410 \end_inset
9411
9412
9413 \begin_inset Flex Code
9414 status collapsed
9415
9416 \begin_layout Plain Layout
9417 Short Title|S
9418 \end_layout
9419
9420 \end_inset
9421
9422
9423 \begin_inset Quotes erd
9424 \end_inset
9425
9426 ).
9427 \end_layout
9428
9429 \begin_layout Itemize
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 MenuString
9435 \end_layout
9436
9437 \end_inset
9438
9439  
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 [文字列]
9445 \end_layout
9446
9447 \end_inset
9448
9449  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9450 \begin_inset space \space{}
9451 \end_inset
9452
9453
9454 \begin_inset Quotes eld
9455 \end_inset
9456
9457
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 Short Title|S
9463 \end_layout
9464
9465 \end_inset
9466
9467
9468 \begin_inset Quotes erd
9469 \end_inset
9470
9471 ).この指定は必須ではありません.指定しない場合には,代わりに
9472 \begin_inset Flex Code
9473 status collapsed
9474
9475 \begin_layout Plain Layout
9476 LabelString
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 Tooltip
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 \end_layout
9506
9507 \begin_layout Itemize
9508 \begin_inset Flex Code
9509 status collapsed
9510
9511 \begin_layout Plain Layout
9512 Mandatory
9513 \end_layout
9514
9515 \end_inset
9516
9517  [
9518 \begin_inset Flex Code
9519 status collapsed
9520
9521 \begin_layout Plain Layout
9522
9523 \emph on
9524 0
9525 \end_layout
9526
9527 \end_inset
9528
9529 ,
9530 \begin_inset space \thinspace{}
9531 \end_inset
9532
9533
9534 \begin_inset Flex Code
9535 status collapsed
9536
9537 \begin_layout Plain Layout
9538 1
9539 \end_layout
9540
9541 \end_inset
9542
9543 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9544 .既定では,必須引数は
9545 \begin_inset Flex Code
9546 status collapsed
9547
9548 \begin_layout Plain Layout
9549 {...}
9550 \end_layout
9551
9552 \end_inset
9553
9554 で区切られ,非必須引数は
9555 \begin_inset Flex Code
9556 status collapsed
9557
9558 \begin_layout Plain Layout
9559 [...]
9560 \end_layout
9561
9562 \end_inset
9563
9564 で区切られます.
9565 \end_layout
9566
9567 \begin_layout Itemize
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 Requires
9573 \end_layout
9574
9575 \end_inset
9576
9577  
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 [整数=0]
9583 \end_layout
9584
9585 \end_inset
9586
9587  この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9588 コマンドでは,
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593
9594 \backslash
9595 command[][引数]{文字列}
9596 \end_layout
9597
9598 \end_inset
9599
9600 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9601 \begin_inset Flex Code
9602 status collapsed
9603
9604 \begin_layout Plain Layout
9605 Argument 2
9606 \end_layout
9607
9608 \end_inset
9609
9610 中に
9611 \begin_inset Flex Code
9612 status collapsed
9613
9614 \begin_layout Plain Layout
9615 Requires 1
9616 \end_layout
9617
9618 \end_inset
9619
9620 ステートメントを置くことで実現できます.
9621 \end_layout
9622
9623 \begin_layout Itemize
9624 \begin_inset Flex Code
9625 status collapsed
9626
9627 \begin_layout Plain Layout
9628 LeftDelim
9629 \end_layout
9630
9631 \end_inset
9632
9633  
9634 \begin_inset Flex Code
9635 status collapsed
9636
9637 \begin_layout Plain Layout
9638 [文字列]
9639 \end_layout
9640
9641 \end_inset
9642
9643  (
9644 \begin_inset Flex Code
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648 {
9649 \end_layout
9650
9651 \end_inset
9652
9653
9654 \begin_inset Flex Code
9655 status collapsed
9656
9657 \begin_layout Plain Layout
9658 [
9659 \end_layout
9660
9661 \end_inset
9662
9663 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9664 \begin_inset Flex Code
9665 status collapsed
9666
9667 \begin_layout Plain Layout
9668 <br/>
9669 \end_layout
9670
9671 \end_inset
9672
9673 で指示できます.
9674 \end_layout
9675
9676 \begin_layout Itemize
9677 \begin_inset Flex Code
9678 status collapsed
9679
9680 \begin_layout Plain Layout
9681 RightDelim
9682 \end_layout
9683
9684 \end_inset
9685
9686  
9687 \begin_inset Flex Code
9688 status collapsed
9689
9690 \begin_layout Plain Layout
9691 [文字列]
9692 \end_layout
9693
9694 \end_inset
9695
9696  (
9697 \begin_inset Flex Code
9698 status collapsed
9699
9700 \begin_layout Plain Layout
9701 }
9702 \end_layout
9703
9704 \end_inset
9705
9706
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 ]
9712 \end_layout
9713
9714 \end_inset
9715
9716 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 <br/>
9722 \end_layout
9723
9724 \end_inset
9725
9726 で指示できます.
9727 \end_layout
9728
9729 \begin_layout Itemize
9730 \begin_inset Flex Code
9731 status collapsed
9732
9733 \begin_layout Plain Layout
9734 DefaultArg
9735 \end_layout
9736
9737 \end_inset
9738
9739  
9740 \begin_inset Flex Code
9741 status collapsed
9742
9743 \begin_layout Plain Layout
9744 [文字列]
9745 \end_layout
9746
9747 \end_inset
9748
9749  ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9750 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9751 \end_layout
9752
9753 \begin_layout Itemize
9754 \begin_inset Flex Code
9755 status collapsed
9756
9757 \begin_layout Plain Layout
9758 PresetArg
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 \end_layout
9775
9776 \begin_layout Itemize
9777 \begin_inset Flex Code
9778 status collapsed
9779
9780 \begin_layout Plain Layout
9781 Font
9782 \end_layout
9783
9784 \end_inset
9785
9786  引数の内容に用いられるフォント.
9787 \begin_inset CommandInset ref
9788 LatexCommand ref
9789 reference "subsec:フォント指定"
9790
9791 \end_inset
9792
9793 参照.
9794 \end_layout
9795
9796 \begin_layout Itemize
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 LabelFont
9802 \end_layout
9803
9804 \end_inset
9805
9806  ラベルに用いられるフォント.
9807 \begin_inset CommandInset ref
9808 LatexCommand ref
9809 reference "subsec:フォント指定"
9810
9811 \end_inset
9812
9813 参照.
9814 \end_layout
9815
9816 \begin_layout Itemize
9817 \begin_inset Flex Code
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 Decoration
9822 \end_layout
9823
9824 \end_inset
9825
9826  [
9827 \begin_inset Flex Code
9828 status collapsed
9829
9830 \begin_layout Plain Layout
9831
9832 \emph on
9833 Classic
9834 \emph default
9835 , Minimalistic, Conglomerate
9836 \end_layout
9837
9838 \end_inset
9839
9840 ] 差込枠の枠とボタンに用いられる装飾様式.
9841 \end_layout
9842
9843 \begin_layout Itemize
9844 \begin_inset Flex Code
9845 status collapsed
9846
9847 \begin_layout Plain Layout
9848 AutoInsert
9849 \end_layout
9850
9851 \end_inset
9852
9853  
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 [整数=0]
9859 \end_layout
9860
9861 \end_inset
9862
9863  これが
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 1
9869 \end_layout
9870
9871 \end_inset
9872
9873 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9874 \end_layout
9875
9876 \begin_layout Itemize
9877 \begin_inset Flex Code
9878 status collapsed
9879
9880 \begin_layout Plain Layout
9881 InsertCotext
9882 \end_layout
9883
9884 \end_inset
9885
9886  
9887 \begin_inset Flex Code
9888 status collapsed
9889
9890 \begin_layout Plain Layout
9891 [整数=0]
9892 \end_layout
9893
9894 \end_inset
9895
9896  これが
9897 \begin_inset Flex Code
9898 status collapsed
9899
9900 \begin_layout Plain Layout
9901 1
9902 \end_layout
9903
9904 \end_inset
9905
9906 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
9907 \end_layout
9908
9909 \begin_layout Itemize
9910 \begin_inset Flex Code
9911 status collapsed
9912
9913 \begin_layout Plain Layout
9914 PassThruChars
9915 \end_layout
9916
9917 \end_inset
9918
9919  [
9920 \begin_inset Flex Code
9921 status collapsed
9922
9923 \begin_layout Plain Layout
9924 文字列
9925 \end_layout
9926
9927 \end_inset
9928
9929 ]
9930 \family typewriter
9931  
9932 \family default
9933 \SpecialChar LaTeX
9934 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
9935 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
9936 \end_layout
9937
9938 \begin_layout Standard
9939 既定では,
9940 \begin_inset Flex Code
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944 LatexType
9945 \end_layout
9946
9947 \end_inset
9948
9949
9950 \begin_inset Flex Code
9951 status collapsed
9952
9953 \begin_layout Plain Layout
9954 Command
9955 \end_layout
9956
9957 \end_inset
9958
9959 のとき,各レイアウトで\SpecialChar LyX
9960 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
9961 \begin_inset Flex Code
9962 status collapsed
9963
9964 \begin_layout Plain Layout
9965 post:
9966 \end_layout
9967
9968 \end_inset
9969
9970 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
9971 \begin_inset Flex Code
9972 status collapsed
9973
9974 \begin_layout Plain Layout
9975 post:1
9976 \end_layout
9977
9978 \end_inset
9979
9980 となります.後置引数は,
9981 \begin_inset Flex Code
9982 status collapsed
9983
9984 \begin_layout Plain Layout
9985 Command
9986 \end_layout
9987
9988 \end_inset
9989
9990 以外の
9991 \begin_inset Flex Code
9992 status collapsed
9993
9994 \begin_layout Plain Layout
9995 LatexType
9996 \end_layout
9997
9998 \end_inset
9999
10000 では無視されます.
10001 \end_layout
10002
10003 \begin_layout Standard
10004 (
10005 \begin_inset Flex Code
10006 status collapsed
10007
10008 \begin_layout Plain Layout
10009
10010 \backslash
10011 item[foo]
10012 \end_layout
10013
10014 \end_inset
10015
10016 のような)箇条書き
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021
10022 \backslash
10023 item
10024 \end_layout
10025
10026 \end_inset
10027
10028 の引数は,前置句
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 item:
10034 \end_layout
10035
10036 \end_inset
10037
10038 の後に番号を付けます(例:
10039 \begin_inset Flex Code
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 Argument item:1
10044 \end_layout
10045
10046 \end_inset
10047
10048 ).
10049 \end_layout
10050
10051 \end_deeper
10052 \begin_layout Description
10053 \begin_inset Flex Code
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 BabelPreamble
10058 \end_layout
10059
10060 \end_inset
10061
10062  これは,前に現れたこの様式の
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 BabelPreamble
10068 \end_layout
10069
10070 \end_inset
10071
10072 宣言をすべて,完全に上書きしますので注意してください.「
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 EndBabelPreamble
10078 \end_layout
10079
10080 \end_inset
10081
10082 」で閉じる必要があります.これの利用法についての詳細は,第
10083 \begin_inset CommandInset ref
10084 LatexCommand ref
10085 reference "subsec:段落様式の国際化"
10086
10087 \end_inset
10088
10089 節をご覧ください.
10090 \end_layout
10091
10092 \begin_layout Description
10093 \begin_inset Flex Code
10094 status collapsed
10095
10096 \begin_layout Plain Layout
10097 BottomSep
10098 \end_layout
10099
10100 \end_inset
10101
10102  [
10103 \begin_inset Flex Code
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 浮動小数点型=0
10108 \end_layout
10109
10110 \end_inset
10111
10112 ]
10113 \begin_inset Foot
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 ここで「浮動小数点型」とは1.5のような実数を指します.
10118 \end_layout
10119
10120 \end_inset
10121
10122  このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10123 す.
10124 \end_layout
10125
10126 \begin_layout Description
10127 \begin_inset Flex Code
10128 status collapsed
10129
10130 \begin_layout Plain Layout
10131 Category
10132 \end_layout
10133
10134 \end_inset
10135
10136  [
10137 \begin_inset Flex Code
10138 status collapsed
10139
10140 \begin_layout Plain Layout
10141 文字列
10142 \end_layout
10143
10144 \end_inset
10145
10146 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10147 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10148 \end_layout
10149
10150 \begin_layout Description
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 CommandDepth
10156 \end_layout
10157
10158 \end_inset
10159
10160  XMLコマンドの深度.XML型の書式でのみ使用されます.
10161 \end_layout
10162
10163 \begin_layout Description
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 CopyStyle
10169 \end_layout
10170
10171 \end_inset
10172
10173  [
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 文字列
10179 \end_layout
10180
10181 \end_inset
10182
10183 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10184 \end_layout
10185
10186 \begin_layout Description
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 DependsOn
10192 \end_layout
10193
10194 \end_inset
10195
10196  [
10197 \begin_inset Flex Code
10198 status collapsed
10199
10200 \begin_layout Plain Layout
10201 <名称>
10202 \end_layout
10203
10204 \end_inset
10205
10206 ]
10207 \lang english
10208  
10209 \lang japanese
10210 この
10211 \emph on
10212 前に
10213 \emph default
10214 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10215 \begin_inset Foot
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10220 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10221 あります.
10222 \end_layout
10223
10224 \end_inset
10225
10226
10227 \end_layout
10228
10229 \begin_layout Description
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 EndLabeltype
10235 \end_layout
10236
10237 \end_inset
10238
10239  [
10240 \begin_inset Flex Code
10241 status collapsed
10242
10243 \begin_layout Plain Layout
10244
10245 \emph on
10246 No_Label
10247 \emph default
10248 , Box, Filled_Box, Static
10249 \end_layout
10250
10251 \end_inset
10252
10253 ] 段落の最後(あるいは
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 LatexType
10259 \end_layout
10260
10261 \end_inset
10262
10263 が,
10264 \begin_inset Flex Code
10265 status collapsed
10266
10267 \begin_layout Plain Layout
10268 Environment
10269 \end_layout
10270
10271 \end_inset
10272
10273
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 Item_Environment
10279 \end_layout
10280
10281 \end_inset
10282
10283
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 List_Environment
10289 \end_layout
10290
10291 \end_inset
10292
10293 のいずれかの場合は,段落群の最後)に置くラベル.
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 No_Label
10299 \end_layout
10300
10301 \end_inset
10302
10303 の場合は「何もない」ことを指し,
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 Box
10309 \end_layout
10310
10311 \end_inset
10312
10313 (あるいは
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 Filled_Box
10319 \end_layout
10320
10321 \end_inset
10322
10323 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10324 \begin_inset Flex Code
10325 status collapsed
10326
10327 \begin_layout Plain Layout
10328 Static
10329 \end_layout
10330
10331 \end_inset
10332
10333 は明示したテキスト文字列を指します.
10334 \end_layout
10335
10336 \begin_layout Description
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 EndLabelString
10342 \end_layout
10343
10344 \end_inset
10345
10346  [
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 文字列=""
10352 \end_layout
10353
10354 \end_inset
10355
10356
10357 \begin_inset Flex Code
10358 status collapsed
10359
10360 \begin_layout Plain Layout
10361 Static
10362 \end_layout
10363
10364 \end_inset
10365
10366
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 EndLabelType
10372 \end_layout
10373
10374 \end_inset
10375
10376 のラベルで用いる文字列.
10377 \end_layout
10378
10379 \begin_layout Description
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384 Font
10385 \end_layout
10386
10387 \end_inset
10388
10389  本文テキストとラベルの
10390 \emph on
10391 両方で
10392 \emph default
10393 用いられるフォント.第
10394 \begin_inset CommandInset ref
10395 LatexCommand ref
10396 reference "subsec:フォント指定"
10397
10398 \end_inset
10399
10400 節を参照.このフォントを定義すると,自動的に
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 LabelFont
10406 \end_layout
10407
10408 \end_inset
10409
10410 も同じ値で定義されることに注意してください.したがって,
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 LabelFont
10416 \end_layout
10417
10418 \end_inset
10419
10420 も同時に定義したい場合には,これを先に定義してください.
10421 \end_layout
10422
10423 \begin_layout Description
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 ForceLocal
10429 \end_layout
10430
10431 \end_inset
10432
10433  [
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 int=0
10439 \end_layout
10440
10441 \end_inset
10442
10443 ] 新しい様式を\SpecialChar LyX
10444 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10445  2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10446 できます.様式の
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 ForceLocal
10452 \end_layout
10453
10454 \end_inset
10455
10456 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10457 版の\SpecialChar LyX
10458 もこの様式を取り扱えるようになります.
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 ForceLocal
10464 \end_layout
10465
10466 \end_inset
10467
10468 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10469 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10470 \end_layout
10471
10472 \begin_layout Description
10473 \begin_inset Flex Code
10474 status collapsed
10475
10476 \begin_layout Plain Layout
10477 FreeSpacing
10478 \end_layout
10479
10480 \end_inset
10481
10482  [
10483 \emph on
10484
10485 \begin_inset Flex Code
10486 status collapsed
10487
10488 \begin_layout Plain Layout
10489 0
10490 \end_layout
10491
10492 \end_inset
10493
10494
10495 \emph default
10496 ,
10497 \begin_inset space \thinspace{}
10498 \end_inset
10499
10500
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 1
10506 \end_layout
10507
10508 \end_inset
10509
10510 ] \SpecialChar LyX
10511 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10512 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10513 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 FreeSpacing
10519 \end_layout
10520
10521 \end_inset
10522
10523 を有効にすることが認められています.\SpecialChar LyX
10524 は,\SpecialChar LaTeX
10525 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10526 \end_layout
10527
10528 \begin_layout Description
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 HTML*
10534 \end_layout
10535
10536 \end_inset
10537
10538  これらのタグは,XHTML出力で使用されます.第
10539 \begin_inset CommandInset ref
10540 LatexCommand ref
10541 reference "subsec:段落様式-XHTML"
10542
10543 \end_inset
10544
10545 節をご覧ください.
10546 \end_layout
10547
10548 \begin_layout Description
10549 \begin_inset Flex Code
10550 status collapsed
10551
10552 \begin_layout Plain Layout
10553 InnerTag
10554 \end_layout
10555
10556 \end_inset
10557
10558  [[FIXME]] (XML型書式でのみ使用されます.)
10559 \end_layout
10560
10561 \begin_layout Description
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 InPreamble
10567 \end_layout
10568
10569 \end_inset
10570
10571  [
10572 \emph on
10573
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 0
10579 \end_layout
10580
10581 \end_inset
10582
10583
10584 \emph default
10585 ,
10586 \begin_inset space \thinspace{}
10587 \end_inset
10588
10589
10590 \begin_inset Flex Code
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 1
10595 \end_layout
10596
10597 \end_inset
10598
10599
10600 \begin_inset Flex Code
10601 status collapsed
10602
10603 \begin_layout Plain Layout
10604 1
10605 \end_layout
10606
10607 \end_inset
10608
10609 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10610 です.これは,
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 LatexType
10616 \end_layout
10617
10618 \end_inset
10619
10620
10621 \begin_inset Flex Code
10622 status collapsed
10623
10624 \begin_layout Plain Layout
10625 Command
10626 \end_layout
10627
10628 \end_inset
10629
10630 または
10631 \begin_inset Flex Code
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 Paragraph
10636 \end_layout
10637
10638 \end_inset
10639
10640 の様式に対してのみ動作します.
10641 \end_layout
10642
10643 \begin_layout Description
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 InTitle
10649 \end_layout
10650
10651 \end_inset
10652
10653  [
10654 \emph on
10655
10656 \begin_inset Flex Code
10657 status collapsed
10658
10659 \begin_layout Plain Layout
10660 0
10661 \end_layout
10662
10663 \end_inset
10664
10665
10666 \emph default
10667 ,
10668 \begin_inset space \thinspace{}
10669 \end_inset
10670
10671
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 1
10677 \end_layout
10678
10679 \end_inset
10680
10681
10682 \begin_inset Flex Code
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 1
10687 \end_layout
10688
10689 \end_inset
10690
10691 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 TitleLatexType
10697 \end_layout
10698
10699 \end_inset
10700
10701
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 TitleLatexName
10707 \end_layout
10708
10709 \end_inset
10710
10711 も参照).
10712 \end_layout
10713
10714 \begin_layout Description
10715 \begin_inset Flex Code
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 ItemCommand
10720 \end_layout
10721
10722 \end_inset
10723
10724  [
10725 \begin_inset Flex Code
10726 status collapsed
10727
10728 \begin_layout Plain Layout
10729 文字列="item"
10730 \end_layout
10731
10732 \end_inset
10733
10734 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10735 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10736 出力中では
10737 \begin_inset Flex Code
10738 status collapsed
10739
10740 \begin_layout Plain Layout
10741
10742 \backslash
10743 item
10744 \end_layout
10745
10746 \end_inset
10747
10748 となります).
10749 \end_layout
10750
10751 \begin_layout Description
10752 \begin_inset Flex Code
10753 status collapsed
10754
10755 \begin_layout Plain Layout
10756 ItemSep
10757 \end_layout
10758
10759 \end_inset
10760
10761  [
10762 \begin_inset Flex Code
10763 status collapsed
10764
10765 \begin_layout Plain Layout
10766 浮動小数点型=0
10767 \end_layout
10768
10769 \end_inset
10770
10771 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776 ParSep
10777 \end_layout
10778
10779 \end_inset
10780
10781 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 ItemSep
10787 \end_layout
10788
10789 \end_inset
10790
10791 分だけ離されます.これは
10792 \emph on
10793 乗数
10794 \emph default
10795 であることに注意してください.
10796 \end_layout
10797
10798 \begin_layout Description
10799 \begin_inset Flex Code
10800 status collapsed
10801
10802 \begin_layout Plain Layout
10803 ItemTag
10804 \end_layout
10805
10806 \end_inset
10807
10808  [[FIXME]] (XML型書式でのみ使用されます.)
10809 \end_layout
10810
10811 \begin_layout Description
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 KeepEmpty
10817 \end_layout
10818
10819 \end_inset
10820
10821  [
10822 \emph on
10823
10824 \begin_inset Flex Code
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 0
10829 \end_layout
10830
10831 \end_inset
10832
10833
10834 \emph default
10835 ,
10836 \begin_inset space \thinspace{}
10837 \end_inset
10838
10839
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 1
10845 \end_layout
10846
10847 \end_inset
10848
10849 ] 段落を空のままにすると,\SpecialChar LaTeX
10850 出力が空になってしまうので,通常,\SpecialChar LyX
10851 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10852 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10853 まないある種の改行として使用することもあります.
10854 \end_layout
10855
10856 \begin_layout Description
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 LabelBottomsep
10862 \end_layout
10863
10864 \end_inset
10865
10866  [
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 浮動小数点型=0
10872 \end_layout
10873
10874 \end_inset
10875
10876 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10877 \begin_inset Flex Code
10878 status collapsed
10879
10880 \begin_layout Plain Layout
10881 Top_Environment
10882 \end_layout
10883
10884 \end_inset
10885
10886 および
10887 \begin_inset Newline linebreak
10888 \end_inset
10889
10890
10891 \begin_inset Flex Code
10892 status collapsed
10893
10894 \begin_layout Plain Layout
10895 Centered_Top_Environment
10896 \end_layout
10897
10898 \end_inset
10899
10900 ).
10901 \end_layout
10902
10903 \begin_layout Description
10904 \begin_inset Flex Code
10905 status collapsed
10906
10907 \begin_layout Plain Layout
10908 LabelCounter
10909 \end_layout
10910
10911 \end_inset
10912
10913  [
10914 \begin_inset Flex Code
10915 status collapsed
10916
10917 \begin_layout Plain Layout
10918 文字列=""
10919 \end_layout
10920
10921 \end_inset
10922
10923 ] 自動連番に使われるカウンタ名(詳しくは第
10924 \begin_inset CommandInset ref
10925 LatexCommand ref
10926 reference "subsec:カウンタ"
10927
10928 \end_inset
10929
10930 節参照).カウンタがラベル中に表示されるようにするためには,
10931 \begin_inset Flex Code
10932 status collapsed
10933
10934 \begin_layout Plain Layout
10935 LabelString
10936 \end_layout
10937
10938 \end_inset
10939
10940 中で参照する必要があります.これは,少なくとも
10941 \begin_inset Flex Code
10942 status collapsed
10943
10944 \begin_layout Plain Layout
10945 Static
10946 \end_layout
10947
10948 \end_inset
10949
10950
10951 \begin_inset Flex Code
10952 status collapsed
10953
10954 \begin_layout Plain Layout
10955 Above
10956 \end_layout
10957
10958 \end_inset
10959
10960
10961 \begin_inset Flex Code
10962 status collapsed
10963
10964 \begin_layout Plain Layout
10965 Centered
10966 \end_layout
10967
10968 \end_inset
10969
10970 の各
10971 \begin_inset Flex Code
10972 status collapsed
10973
10974 \begin_layout Plain Layout
10975 LabelType
10976 \end_layout
10977
10978 \end_inset
10979
10980 で動作します.
10981 \begin_inset Newline newline
10982 \end_inset
10983
10984 また,
10985 \begin_inset Flex Code
10986 status collapsed
10987
10988 \begin_layout Plain Layout
10989 LabelType
10990 \end_layout
10991
10992 \end_inset
10993
10994
10995 \begin_inset Flex Code
10996 status collapsed
10997
10998 \begin_layout Plain Layout
10999 Enumerate
11000 \end_layout
11001
11002 \end_inset
11003
11004 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 LabelCounter myenum
11010 \end_layout
11011
11012 \end_inset
11013
11014 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11015 におけるのと同様,実際に使われるカウンタは,
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 myenumi
11021 \end_layout
11022
11023 \end_inset
11024
11025
11026 \begin_inset Flex Code
11027 status collapsed
11028
11029 \begin_layout Plain Layout
11030 myenumii
11031 \end_layout
11032
11033 \end_inset
11034
11035
11036 \begin_inset Flex Code
11037 status collapsed
11038
11039 \begin_layout Plain Layout
11040 myenumii
11041 \end_layout
11042
11043 \end_inset
11044
11045
11046 \begin_inset Flex Code
11047 status collapsed
11048
11049 \begin_layout Plain Layout
11050 myenumiv
11051 \end_layout
11052
11053 \end_inset
11054
11055 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11056 \begin_inset Newline newline
11057 \end_inset
11058
11059 カウンタの詳細については,
11060 \begin_inset CommandInset ref
11061 LatexCommand ref
11062 reference "subsec:カウンタ"
11063
11064 \end_inset
11065
11066 をご覧ください.
11067 \end_layout
11068
11069 \begin_layout Description
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 LabelFont
11075 \end_layout
11076
11077 \end_inset
11078
11079  ラベルに使用されるフォント.
11080 \begin_inset CommandInset ref
11081 LatexCommand ref
11082 reference "subsec:フォント指定"
11083
11084 \end_inset
11085
11086 を参照.
11087 \end_layout
11088
11089 \begin_layout Description
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 LabelIndent
11095 \end_layout
11096
11097 \end_inset
11098
11099  [
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 文字列=""
11105 \end_layout
11106
11107 \end_inset
11108
11109 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11110 \end_layout
11111
11112 \begin_layout Description
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 LabelSep
11118 \end_layout
11119
11120 \end_inset
11121
11122  [
11123 \begin_inset Flex Code
11124 status collapsed
11125
11126 \begin_layout Plain Layout
11127 文字列=""
11128 \end_layout
11129
11130 \end_inset
11131
11132 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11133 \end_layout
11134
11135 \begin_layout Description
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140 LabelString
11141 \end_layout
11142
11143 \end_inset
11144
11145  [
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 文字列=""
11151 \end_layout
11152
11153 \end_inset
11154
11155
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 Static
11161 \end_layout
11162
11163 \end_inset
11164
11165 ラベル型でラベルに使用する文字列.
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 LabelCounter
11171 \end_layout
11172
11173 \end_inset
11174
11175 を設定している場合,
11176 \begin_inset CommandInset ref
11177 LatexCommand ref
11178 reference "subsec:カウンタ"
11179
11180 \end_inset
11181
11182 に述べられている特別な整形コマンドを含めることができます.
11183 \end_layout
11184
11185 \begin_layout Description
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 LabelStringAppendix
11191 \end_layout
11192
11193 \end_inset
11194
11195  [
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200 文字列=""
11201 \end_layout
11202
11203 \end_inset
11204
11205 ] これは付録の中で
11206 \begin_inset Flex Code
11207 status collapsed
11208
11209 \begin_layout Plain Layout
11210 LabelString
11211 \end_layout
11212
11213 \end_inset
11214
11215 の代わりに用いられます.各
11216 \begin_inset Flex Code
11217 status collapsed
11218
11219 \begin_layout Plain Layout
11220 LabelString
11221 \end_layout
11222
11223 \end_inset
11224
11225 ステートメントは,
11226 \begin_inset Flex Code
11227 status collapsed
11228
11229 \begin_layout Plain Layout
11230 LabelStringAppendix
11231 \end_layout
11232
11233 \end_inset
11234
11235 をもリセットすることに注意してください.
11236 \end_layout
11237
11238 \begin_layout Description
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 LabelTag
11244 \end_layout
11245
11246 \end_inset
11247
11248  [FIXME] (XML型書式でのみ使用されます.)
11249 \end_layout
11250
11251 \begin_layout Description
11252 \begin_inset Flex Code
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256 LabelType
11257 \end_layout
11258
11259 \end_inset
11260
11261  [
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266
11267 \emph on
11268 No_Label
11269 \emph default
11270 , Manual, Static, Above,
11271 \begin_inset Newline newline
11272 \end_inset
11273
11274 Centered, Sensitive, Enumerate,
11275 \begin_inset Newline newline
11276 \end_inset
11277
11278 Itemize, Bibliography
11279 \end_layout
11280
11281 \end_inset
11282
11283 ]
11284 \end_layout
11285
11286 \begin_deeper
11287 \begin_layout Description
11288 \begin_inset Flex Code
11289 status collapsed
11290
11291 \begin_layout Plain Layout
11292 Manual
11293 \end_layout
11294
11295 \end_inset
11296
11297  は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11298 \end_layout
11299
11300 \begin_layout Description
11301 \begin_inset Flex Code
11302 status collapsed
11303
11304 \begin_layout Plain Layout
11305 Static
11306 \end_layout
11307
11308 \end_inset
11309
11310  は,ラベルが
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315 LabelString
11316 \end_layout
11317
11318 \end_inset
11319
11320 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11321 \begin_inset Flex Code
11322 status collapsed
11323
11324 \begin_layout Plain Layout
11325 LatexType
11326 \end_layout
11327
11328 \end_inset
11329
11330
11331 \begin_inset Flex Code
11332 status collapsed
11333
11334 \begin_layout Plain Layout
11335 Environment
11336 \end_layout
11337
11338 \end_inset
11339
11340 のときは,連続する同じ
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 Style
11346 \end_layout
11347
11348 \end_inset
11349
11350 の段落中,最初の段落にのみ表示されます.
11351 \end_layout
11352
11353 \begin_layout Description
11354 \begin_inset Flex Code
11355 status collapsed
11356
11357 \begin_layout Plain Layout
11358 Above
11359 \end_layout
11360
11361 \end_inset
11362
11363 および
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 Centered
11369 \end_layout
11370
11371 \end_inset
11372
11373  は,
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 Static
11379 \end_layout
11380
11381 \end_inset
11382
11383 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11384 \end_layout
11385
11386 \begin_layout Description
11387 \begin_inset Flex Code
11388 status collapsed
11389
11390 \begin_layout Plain Layout
11391 Sensitive
11392 \end_layout
11393
11394 \end_inset
11395
11396  はキャプションラベルの「図」や「表」の特別な場合です.
11397 \begin_inset Flex Code
11398 status collapsed
11399
11400 \begin_layout Plain Layout
11401 Sensitive
11402 \end_layout
11403
11404 \end_inset
11405
11406 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11407 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11408 \begin_inset Flex Code
11409 status collapsed
11410
11411 \begin_layout Plain Layout
11412 LabelString
11413 \end_layout
11414
11415 \end_inset
11416
11417 は「意味を成しません!」と表示されます.
11418 \end_layout
11419
11420 \begin_layout Description
11421 \begin_inset Flex Code
11422 status collapsed
11423
11424 \begin_layout Plain Layout
11425 Enumerate
11426 \end_layout
11427
11428 \end_inset
11429
11430  は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11431 す.
11432 \end_layout
11433
11434 \begin_layout Description
11435 \begin_inset Flex Code
11436 status collapsed
11437
11438 \begin_layout Plain Layout
11439 Itemize
11440 \end_layout
11441
11442 \end_inset
11443
11444  は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11445 \end_layout
11446
11447 \begin_layout Description
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 Bibliography
11453 \end_layout
11454
11455 \end_inset
11456
11457  は,
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 LatexType BibEnvironment
11463 \end_layout
11464
11465 \end_inset
11466
11467 とともにのみ使用されます.
11468 \end_layout
11469
11470 \end_deeper
11471 \begin_layout Description
11472 \begin_inset Flex Code
11473 status collapsed
11474
11475 \begin_layout Plain Layout
11476 LangPreamble
11477 \end_layout
11478
11479 \end_inset
11480
11481  これは,この様式で既に出現した
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 LangPreamble
11487 \end_layout
11488
11489 \end_inset
11490
11491 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11492 \begin_inset CommandInset ref
11493 LatexCommand ref
11494 reference "subsec:段落様式の国際化"
11495
11496 \end_inset
11497
11498 をご覧ください.
11499 \end_layout
11500
11501 \begin_layout Description
11502 \begin_inset Flex Code
11503 status collapsed
11504
11505 \begin_layout Plain Layout
11506 LatexName
11507 \end_layout
11508
11509 \end_inset
11510
11511  [
11512 \begin_inset Flex Code
11513 status collapsed
11514
11515 \begin_layout Plain Layout
11516 <名称>
11517 \end_layout
11518
11519 \end_inset
11520
11521 ] 対応する\SpecialChar LaTeX
11522 の名称です.環境名かコマンド名を指します.
11523 \end_layout
11524
11525 \begin_layout Description
11526 \begin_inset Flex Code
11527 status collapsed
11528
11529 \begin_layout Plain Layout
11530 LatexParam
11531 \end_layout
11532
11533 \end_inset
11534
11535  [
11536 \begin_inset Flex Code
11537 status collapsed
11538
11539 \begin_layout Plain Layout
11540 <パラメータ>
11541 \end_layout
11542
11543 \end_inset
11544
11545 ] 対応する
11546 \begin_inset Flex Code
11547 status collapsed
11548
11549 \begin_layout Plain Layout
11550 LatexName
11551 \end_layout
11552
11553 \end_inset
11554
11555 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11556 内部から変更することはできません(変更可能なパラメータには
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561 Argument
11562 \end_layout
11563
11564 \end_inset
11565
11566 を使用してください).これは,全ての\SpecialChar LaTeX
11567  
11568 \begin_inset Flex Code
11569 status collapsed
11570
11571 \begin_layout Plain Layout
11572 Argument
11573 \end_layout
11574
11575 \end_inset
11576
11577 の後にそのままの形で出力されます.
11578 \end_layout
11579
11580 \begin_layout Description
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 LatexType
11586 \end_layout
11587
11588 \end_inset
11589
11590  [
11591 \begin_inset Flex Code
11592 status collapsed
11593
11594 \begin_layout Plain Layout
11595
11596 \emph on
11597 Paragraph
11598 \emph default
11599 , Command, Environment, Item_Environment,
11600 \begin_inset Newline newline
11601 \end_inset
11602
11603 List_Environment, Bib_Environment
11604 \end_layout
11605
11606 \end_inset
11607
11608 ] レイアウトがどのように\SpecialChar LaTeX
11609 に変換されるべきかを示します
11610 \begin_inset Foot
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 これらのルールはSGMLクラスにも適用されるので,
11615 \begin_inset Flex Code
11616 status collapsed
11617
11618 \begin_layout Plain Layout
11619 LatexType
11620 \end_layout
11621
11622 \end_inset
11623
11624 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 db_*.inc
11630 \end_layout
11631
11632 \end_inset
11633
11634 )を見てください.
11635 \end_layout
11636
11637 \end_inset
11638
11639
11640 \end_layout
11641
11642 \begin_deeper
11643 \begin_layout Description
11644 \begin_inset Flex Code
11645 status collapsed
11646
11647 \begin_layout Plain Layout
11648 Paragraph
11649 \end_layout
11650
11651 \end_inset
11652
11653  は,何も特別なことは意味しません.
11654 \end_layout
11655
11656 \begin_layout Description
11657 \begin_inset Flex Code
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661 Command
11662 \end_layout
11663
11664 \end_inset
11665
11666  は,
11667 \begin_inset Flex Code
11668 status collapsed
11669
11670 \begin_layout Plain Layout
11671
11672 \backslash
11673
11674 \emph on
11675 LatexName
11676 \emph default
11677 {\SpecialChar ldots
11678 }
11679 \end_layout
11680
11681 \end_inset
11682
11683 を意味します.
11684 \end_layout
11685
11686 \begin_layout Description
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 Environment
11692 \end_layout
11693
11694 \end_inset
11695
11696  は,
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701
11702 \backslash
11703 begin{
11704 \emph on
11705 LatexName
11706 \emph default
11707 }\SpecialChar ldots
11708
11709 \backslash
11710 end{
11711 \emph on
11712 LatexName
11713 \emph default
11714 }
11715 \end_layout
11716
11717 \end_inset
11718
11719 を意味します.
11720 \end_layout
11721
11722 \begin_layout Description
11723 \begin_inset Flex Code
11724 status collapsed
11725
11726 \begin_layout Plain Layout
11727 Item_Environment
11728 \end_layout
11729
11730 \end_inset
11731
11732  は
11733 \begin_inset Flex Code
11734 status collapsed
11735
11736 \begin_layout Plain Layout
11737 Environment
11738 \end_layout
11739
11740 \end_inset
11741
11742 と同じですが,
11743 \begin_inset Flex Code
11744 status collapsed
11745
11746 \begin_layout Plain Layout
11747
11748 \backslash
11749 item
11750 \end_layout
11751
11752 \end_inset
11753
11754 がこの環境のすべての段落に付けられるところだけが異なっています.
11755 \end_layout
11756
11757 \begin_layout Description
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 List_Environment
11763 \end_layout
11764
11765 \end_inset
11766
11767  は
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 Item_Environment
11773 \end_layout
11774
11775 \end_inset
11776
11777 と同じですが,
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782 LabelWidthString
11783 \end_layout
11784
11785 \end_inset
11786
11787 が環境の引数として渡されるところだけが異なっています.
11788 \begin_inset Flex Code
11789 status collapsed
11790
11791 \begin_layout Plain Layout
11792 LabelWidthString
11793 \end_layout
11794
11795 \end_inset
11796
11797 は,
11798 \begin_inset Flex MenuItem
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 編集\SpecialChar menuseparator
11803 段落設定
11804 \end_layout
11805
11806 \end_inset
11807
11808 ダイアログで定義することができます.
11809 \end_layout
11810
11811 \begin_layout Description
11812 \begin_inset Flex Code
11813 status collapsed
11814
11815 \begin_layout Plain Layout
11816 Bib_Environment
11817 \end_layout
11818
11819 \end_inset
11820
11821  は
11822 \begin_inset Flex Code
11823 status collapsed
11824
11825 \begin_layout Plain Layout
11826 Environment
11827 \end_layout
11828
11829 \end_inset
11830
11831 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11832 \begin_inset Newline newline
11833 \end_inset
11834
11835
11836 \begin_inset Flex Code
11837 status collapsed
11838
11839 \begin_layout Plain Layout
11840
11841 \backslash
11842 begin{thebibliography}{99}
11843 \end_layout
11844
11845 \end_inset
11846
11847
11848 \begin_inset Newline newline
11849 \end_inset
11850
11851 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11852 \end_layout
11853
11854 \begin_layout Standard
11855 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11856 出力は,\SpecialChar LaTeX
11857 型に依存して
11858 \end_layout
11859
11860 \begin_layout LyX-Code
11861
11862 \backslash
11863 LatexName[LatexParam]{\SpecialChar ldots
11864 }
11865 \end_layout
11866
11867 \begin_layout Standard
11868 のようになるか,
11869 \end_layout
11870
11871 \begin_layout LyX-Code
11872
11873 \backslash
11874 begin{LatexName}[LatexParam] \SpecialChar ldots
11875  
11876 \backslash
11877 end{LatexName}.
11878 \end_layout
11879
11880 \begin_layout Standard
11881 となります.
11882 \end_layout
11883
11884 \end_deeper
11885 \begin_layout Description
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890 LeftDelim
11891 \end_layout
11892
11893 \end_inset
11894
11895  [
11896 \begin_inset Flex Code
11897 status collapsed
11898
11899 \begin_layout Plain Layout
11900 文字列
11901 \end_layout
11902
11903 \end_inset
11904
11905 ] 様式の内容の最初に置かれる文字列.出力中の改行は
11906 \begin_inset Flex Code
11907 status collapsed
11908
11909 \begin_layout Plain Layout
11910 <br/>
11911 \end_layout
11912
11913 \end_inset
11914
11915 で指示できます.
11916 \end_layout
11917
11918 \begin_layout Description
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 LeftMargin
11924 \end_layout
11925
11926 \end_inset
11927
11928  [
11929 \begin_inset Flex Code
11930 status collapsed
11931
11932 \begin_layout Plain Layout
11933 文字列=""
11934 \end_layout
11935
11936 \end_inset
11937
11938 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
11939 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11940 \end_inset
11941
11942 をかけて加えられます.このパラメータは,
11943 \begin_inset Flex Code
11944 status collapsed
11945
11946 \begin_layout Plain Layout
11947 Margin
11948 \end_layout
11949
11950 \end_inset
11951
11952
11953 \begin_inset Flex Code
11954 status collapsed
11955
11956 \begin_layout Plain Layout
11957 Manual
11958 \end_layout
11959
11960 \end_inset
11961
11962 あるいは
11963 \begin_inset Flex Code
11964 status collapsed
11965
11966 \begin_layout Plain Layout
11967 Dynamic
11968 \end_layout
11969
11970 \end_inset
11971
11972 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
11973 \begin_inset Newline newline
11974 \end_inset
11975
11976 たとえば「
11977 \begin_inset Flex Code
11978 status collapsed
11979
11980 \begin_layout Plain Layout
11981 MM
11982 \end_layout
11983
11984 \end_inset
11985
11986 」と指定すると,段落を通常フォントの「
11987 \begin_inset Flex Code
11988 status collapsed
11989
11990 \begin_layout Plain Layout
11991 MM
11992 \end_layout
11993
11994 \end_inset
11995
11996 」の幅だけ行頭下げを行います.文字列の前に「
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 -
12002 \end_layout
12003
12004 \end_inset
12005
12006 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12007 \end_layout
12008
12009 \begin_layout Description
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014 Margin
12015 \end_layout
12016
12017 \end_inset
12018
12019  [
12020 \begin_inset Flex Code
12021 status collapsed
12022
12023 \begin_layout Plain Layout
12024
12025 \emph on
12026 Static
12027 \emph default
12028 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12029 \end_layout
12030
12031 \end_inset
12032
12033
12034 \begin_inset Newline newline
12035 \end_inset
12036
12037 このレイアウトの左余白の種類です.
12038 \end_layout
12039
12040 \begin_deeper
12041 \begin_layout Description
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 Static
12047 \end_layout
12048
12049 \end_inset
12050
12051  は固定余白を示します.
12052 \end_layout
12053
12054 \begin_layout Description
12055 \begin_inset Flex Code
12056 status collapsed
12057
12058 \begin_layout Plain Layout
12059 Manual
12060 \end_layout
12061
12062 \end_inset
12063
12064  は,左余白が
12065 \begin_inset Flex MenuItem
12066 status collapsed
12067
12068 \begin_layout Plain Layout
12069 編集\SpecialChar menuseparator
12070 段落設定
12071 \end_layout
12072
12073 \end_inset
12074
12075 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12076 \end_layout
12077
12078 \begin_layout Description
12079 \begin_inset Flex Code
12080 status collapsed
12081
12082 \begin_layout Plain Layout
12083 Dynamic
12084 \end_layout
12085
12086 \end_inset
12087
12088  は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12089  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12090 \end_layout
12091
12092 \begin_layout Description
12093 \begin_inset Flex Code
12094 status collapsed
12095
12096 \begin_layout Plain Layout
12097 First_Dynamic
12098 \end_layout
12099
12100 \end_inset
12101
12102  は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12103 \end_layout
12104
12105 \begin_layout Description
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110 Right_Address_Box
12111 \end_layout
12112
12113 \end_inset
12114
12115  は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12116 \end_layout
12117
12118 \end_deeper
12119 \begin_layout Description
12120 \begin_inset Flex Code
12121 status collapsed
12122
12123 \begin_layout Plain Layout
12124 NeedProtect
12125 \end_layout
12126
12127 \end_inset
12128
12129  [
12130 \begin_inset Flex Code
12131 status collapsed
12132
12133 \begin_layout Plain Layout
12134
12135 \emph on
12136 0
12137 \end_layout
12138
12139 \end_inset
12140
12141 ,
12142 \begin_inset space \thinspace{}
12143 \end_inset
12144
12145
12146 \begin_inset Flex Code
12147 status collapsed
12148
12149 \begin_layout Plain Layout
12150 1
12151 \end_layout
12152
12153 \end_inset
12154
12155 ] このレイアウト中の脆弱なコマンドが
12156 \begin_inset Flex Code
12157 status collapsed
12158
12159 \begin_layout Plain Layout
12160
12161 \backslash
12162 protect
12163 \end_layout
12164
12165 \end_inset
12166
12167 されるべきか否か(註:これはこのコマンド自体が
12168 \begin_inset Flex Code
12169 status collapsed
12170
12171 \begin_layout Plain Layout
12172
12173 \backslash
12174 protect
12175 \end_layout
12176
12177 \end_inset
12178
12179 されるべきかでは
12180 \emph on
12181 ありません
12182 \emph default
12183 ).
12184 \end_layout
12185
12186 \begin_layout Description
12187 \begin_inset Flex Code
12188 status collapsed
12189
12190 \begin_layout Plain Layout
12191 Newline
12192 \end_layout
12193
12194 \end_inset
12195
12196  [
12197 \begin_inset Flex Code
12198 status collapsed
12199
12200 \begin_layout Plain Layout
12201 0
12202 \end_layout
12203
12204 \end_inset
12205
12206 ,
12207 \begin_inset space \thinspace{}
12208 \end_inset
12209
12210
12211 \begin_inset Flex Code
12212 status collapsed
12213
12214 \begin_layout Plain Layout
12215
12216 \emph on
12217 1
12218 \end_layout
12219
12220 \end_inset
12221
12222 ] 新規行を\SpecialChar LaTeX
12223 の新規行(
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228
12229 \backslash
12230
12231 \backslash
12232
12233 \end_layout
12234
12235 \end_inset
12236
12237 )に変換するか否か.\SpecialChar LyX
12238 中で\SpecialChar LaTeX
12239 編集をやりやすくするために,変換は無効にすることができます.
12240 \end_layout
12241
12242 \begin_layout Description
12243 \begin_inset Flex Code
12244 status collapsed
12245
12246 \begin_layout Plain Layout
12247 NextNoIndent
12248 \end_layout
12249
12250 \end_inset
12251
12252  [
12253 \begin_inset Flex Code
12254 status collapsed
12255
12256 \begin_layout Plain Layout
12257
12258 \emph on
12259 0
12260 \end_layout
12261
12262 \end_inset
12263
12264 ,
12265 \begin_inset space \thinspace{}
12266 \end_inset
12267
12268
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 1
12274 \end_layout
12275
12276 \end_inset
12277
12278 ] 真に設定すると,
12279 \begin_inset Flex Code
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283 DefaultStyle
12284 \end_layout
12285
12286 \end_inset
12287
12288  (通常
12289 \begin_inset Flex Code
12290 status collapsed
12291
12292 \begin_layout Plain Layout
12293 Standard
12294 \end_layout
12295
12296 \end_inset
12297
12298 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12299 \end_layout
12300
12301 \begin_layout Description
12302 \begin_inset Flex Code
12303 status collapsed
12304
12305 \begin_layout Plain Layout
12306 ObsoletedBy
12307 \end_layout
12308
12309 \end_inset
12310
12311  [
12312 \begin_inset Flex Code
12313 status collapsed
12314
12315 \begin_layout Plain Layout
12316 <名称>
12317 \end_layout
12318
12319 \end_inset
12320
12321 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12322 \end_layout
12323
12324 \begin_layout Description
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 ParagraphGroup
12330 \end_layout
12331
12332 \end_inset
12333
12334  [
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 0
12340 \end_layout
12341
12342 \end_inset
12343
12344 ,
12345 \begin_inset space \thinspace{}
12346 \end_inset
12347
12348
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353 1
12354 \end_layout
12355
12356 \end_inset
12357
12358 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 GuiLabel
12364 \end_layout
12365
12366 \end_inset
12367
12368 が一度だけ出力される効果があります.既定では,
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373 LaTeXType
12374 \end_layout
12375
12376 \end_inset
12377
12378
12379 \begin_inset Flex Code
12380 status collapsed
12381
12382 \begin_layout Plain Layout
12383 Environment
12384 \end_layout
12385
12386 \end_inset
12387
12388 および
12389 \begin_inset Flex Code
12390 status collapsed
12391
12392 \begin_layout Plain Layout
12393 Bib_Environment
12394 \end_layout
12395
12396 \end_inset
12397
12398  については有効であり,他の型すべてについて無効になっています.
12399 \end_layout
12400
12401 \begin_layout Description
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 ParbreakIsNewline
12407 \end_layout
12408
12409 \end_inset
12410
12411  [
12412 \begin_inset Flex Code
12413 status collapsed
12414
12415 \begin_layout Plain Layout
12416
12417 \emph on
12418 0
12419 \end_layout
12420
12421 \end_inset
12422
12423 ,
12424 \begin_inset space \thinspace{}
12425 \end_inset
12426
12427
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 1
12433 \end_layout
12434
12435 \end_inset
12436
12437 ] \SpecialChar LaTeX
12438 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12439 \begin_inset Flex Code
12440 status collapsed
12441
12442 \begin_layout Plain Layout
12443 PassThru 1
12444 \end_layout
12445
12446 \end_inset
12447
12448 と併用すれば,(\SpecialChar TeX
12449 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12450 \end_layout
12451
12452 \begin_layout Description
12453 \begin_inset Flex Code
12454 status collapsed
12455
12456 \begin_layout Plain Layout
12457 ParIndent
12458 \end_layout
12459
12460 \end_inset
12461
12462  [
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 文字列=""
12468 \end_layout
12469
12470 \end_inset
12471
12472 ] 段落の最初の行の行頭下げ.レイアウトによっては
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 Parindent
12478 \end_layout
12479
12480 \end_inset
12481
12482 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12483 \begin_inset Flex Code
12484 status collapsed
12485
12486 \begin_layout Plain Layout
12487 NextNoIndent
12488 \end_layout
12489
12490 \end_inset
12491
12492 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12493 \begin_inset Flex Code
12494 status collapsed
12495
12496 \begin_layout Plain Layout
12497 Parindent
12498 \end_layout
12499
12500 \end_inset
12501
12502 ではなく,この環境の
12503 \begin_inset Flex Code
12504 status collapsed
12505
12506 \begin_layout Plain Layout
12507 Parindent
12508 \end_layout
12509
12510 \end_inset
12511
12512 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12513 \end_layout
12514
12515 \begin_layout Description
12516 \begin_inset Flex Code
12517 status collapsed
12518
12519 \begin_layout Plain Layout
12520 ParSep
12521 \end_layout
12522
12523 \end_inset
12524
12525  [
12526 \begin_inset Flex Code
12527 status collapsed
12528
12529 \begin_layout Plain Layout
12530 浮動小数点型=0
12531 \end_layout
12532
12533 \end_inset
12534
12535 ] このレイアウトの2段落間の垂直余白.
12536 \end_layout
12537
12538 \begin_layout Description
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 Parskip
12544 \end_layout
12545
12546 \end_inset
12547
12548  [
12549 \begin_inset Flex Code
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553 浮動小数点型=0
12554 \end_layout
12555
12556 \end_inset
12557
12558 ] \SpecialChar LyX
12559 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12560 択した際には,\SpecialChar LaTeX
12561 型「段落」レイアウトの
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 ParIndent
12567 \end_layout
12568
12569 \end_inset
12570
12571 は無視され,すべての段落はこの
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 Parskip
12577 \end_layout
12578
12579 \end_inset
12580
12581 引数分だけ引き離されます.垂直余白は,
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 DefaultHeight
12587 \end_layout
12588
12589 \end_inset
12590
12591 を標準フォントでの1行の高さとすると,
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 Parskipの値
12597 \end_layout
12598
12599 \end_inset
12600
12601
12602 \begin_inset Formula $\times$
12603 \end_inset
12604
12605
12606 \begin_inset Flex Code
12607 status collapsed
12608
12609 \begin_layout Plain Layout
12610 DefaultHeight
12611 \end_layout
12612
12613 \end_inset
12614
12615 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12616 \end_layout
12617
12618 \begin_layout Description
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 PassThru
12624 \end_layout
12625
12626 \end_inset
12627
12628  [
12629 \emph on
12630
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635 0
12636 \end_layout
12637
12638 \end_inset
12639
12640
12641 \emph default
12642 ,
12643 \begin_inset space \thinspace{}
12644 \end_inset
12645
12646
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 1
12652 \end_layout
12653
12654 \end_inset
12655
12656 ] この段落の内容が,\SpecialChar LaTeX
12657 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12658 \end_layout
12659
12660 \begin_layout Description
12661 \begin_inset Flex Code
12662 status collapsed
12663
12664 \begin_layout Plain Layout
12665 PassThruChars
12666 \end_layout
12667
12668 \end_inset
12669
12670  [
12671 \begin_inset Flex Code
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 文字列
12676 \end_layout
12677
12678 \end_inset
12679
12680 ]
12681 \family typewriter
12682  
12683 \family default
12684 \SpecialChar LaTeX
12685 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12686 \end_layout
12687
12688 \begin_layout Description
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 Preamble
12694 \end_layout
12695
12696 \end_inset
12697
12698  この様式が使用されたときに,\SpecialChar LaTeX
12699 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704 EndPreamble
12705 \end_layout
12706
12707 \end_inset
12708
12709 」で閉じる必要があります.
12710 \end_layout
12711
12712 \begin_layout Description
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 RefPrefix
12718 \end_layout
12719
12720 \end_inset
12721
12722  [
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 文字列
12728 \end_layout
12729
12730 \end_inset
12731
12732 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12733 \end_layout
12734
12735 \begin_layout Description
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740 Requires
12741 \end_layout
12742
12743 \end_inset
12744
12745  [
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750 文字列
12751 \end_layout
12752
12753 \end_inset
12754
12755 ] この様式が機能
12756 \begin_inset Flex Code
12757 status collapsed
12758
12759 \begin_layout Plain Layout
12760 文字列
12761 \end_layout
12762
12763 \end_inset
12764
12765 を必要とするかどうか(機能詳細については,第
12766 \begin_inset CommandInset ref
12767 LatexCommand ref
12768 reference "chap:関数一覧"
12769
12770 \end_inset
12771
12772 節参照).特定のオプションをとるパッケージを要求する場合,
12773 \begin_inset Flex Code
12774 status collapsed
12775
12776 \begin_layout Plain Layout
12777 PackageOptions
12778 \end_layout
12779
12780 \end_inset
12781
12782 を汎用テキストクラスパラメータとして追加して使うことができます(
12783 \begin_inset CommandInset ref
12784 LatexCommand ref
12785 reference "subsec:汎用テキストクラスパラメータ"
12786
12787 \end_inset
12788
12789 を参照).
12790 \end_layout
12791
12792 \begin_layout Description
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797 ResetArgs
12798 \end_layout
12799
12800 \end_inset
12801
12802  [
12803 \begin_inset Flex Code
12804 status collapsed
12805
12806 \begin_layout Plain Layout
12807
12808 \emph on
12809 0
12810 \end_layout
12811
12812 \end_inset
12813
12814 ,
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819 1
12820 \end_layout
12821
12822 \end_inset
12823
12824 ] (
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 Argument
12830 \end_layout
12831
12832 \end_inset
12833
12834 タグで定義された)この様式の\SpecialChar LaTeX
12835 引数をリセットします.これは,様式を
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840 CopyStyle
12841 \end_layout
12842
12843 \end_inset
12844
12845 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12846 \end_layout
12847
12848 \begin_layout Description
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 RightDelim
12854 \end_layout
12855
12856 \end_inset
12857
12858  [
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 文字列
12864 \end_layout
12865
12866 \end_inset
12867
12868 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873 <br/>
12874 \end_layout
12875
12876 \end_inset
12877
12878 で指示できます.
12879 \end_layout
12880
12881 \begin_layout Description
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 RightMargin
12887 \end_layout
12888
12889 \end_inset
12890
12891  [
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 文字列=""
12897 \end_layout
12898
12899 \end_inset
12900
12901
12902 \begin_inset Flex Code
12903 status collapsed
12904
12905 \begin_layout Plain Layout
12906 LeftMargin
12907 \end_layout
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 Spacing
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 single
12932 \end_layout
12933
12934 \end_inset
12935
12936
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 onehalf
12942 \end_layout
12943
12944 \end_inset
12945
12946
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951 double
12952 \end_layout
12953
12954 \end_inset
12955
12956
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961 other
12962 \begin_inset space ~
12963 \end_inset
12964
12965 <
12966 \emph on
12967
12968 \emph default
12969 >
12970 \end_layout
12971
12972 \end_inset
12973
12974 ]
12975 \lang english
12976  
12977 \lang japanese
12978 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 single
12984 \end_layout
12985
12986 \end_inset
12987
12988
12989 \begin_inset Flex Code
12990 status collapsed
12991
12992 \begin_layout Plain Layout
12993 onehalf
12994 \end_layout
12995
12996 \end_inset
12997
12998
12999 \begin_inset Flex Code
13000 status collapsed
13001
13002 \begin_layout Plain Layout
13003 double
13004 \end_layout
13005
13006 \end_inset
13007
13008 は,それぞれ乗数1・1.25・1.667に対応します.引数
13009 \begin_inset Flex Code
13010 status collapsed
13011
13012 \begin_layout Plain Layout
13013 other
13014 \end_layout
13015
13016 \end_inset
13017
13018 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023 Spacing
13024 \end_layout
13025
13026 \end_inset
13027
13028 は,\SpecialChar LaTeX
13029 パッケージ
13030 \begin_inset Flex Code
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 setspace
13035 \end_layout
13036
13037 \end_inset
13038
13039 パッケージを使用した,限定的な\SpecialChar LaTeX
13040 コードを生成することを意味することにご注意ください.
13041 \end_layout
13042
13043 \begin_layout Description
13044 \begin_inset Flex Code
13045 status collapsed
13046
13047 \begin_layout Plain Layout
13048 Spellcheck
13049 \end_layout
13050
13051 \end_inset
13052
13053  [
13054 \begin_inset Flex Code
13055 status collapsed
13056
13057 \begin_layout Plain Layout
13058 0
13059 \end_layout
13060
13061 \end_inset
13062
13063 ,
13064 \begin_inset space \thinspace{}
13065 \end_inset
13066
13067
13068 \begin_inset Flex Code
13069 status collapsed
13070
13071 \begin_layout Plain Layout
13072 1
13073 \end_layout
13074
13075 \end_inset
13076
13077 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13078 \end_layout
13079
13080 \begin_layout Description
13081 \begin_inset Flex Code
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 TextFont
13086 \end_layout
13087
13088 \end_inset
13089
13090  本文に使うフォント.
13091 \begin_inset CommandInset ref
13092 LatexCommand ref
13093 reference "subsec:フォント指定"
13094
13095 \end_inset
13096
13097 参照.
13098 \end_layout
13099
13100 \begin_layout Description
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 TocLevel
13106 \end_layout
13107
13108 \end_inset
13109
13110  [
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 整数型=3
13116 \end_layout
13117
13118 \end_inset
13119
13120 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13121 \end_layout
13122
13123 \begin_layout Description
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 ToggleIndent
13129 \end_layout
13130
13131 \end_inset
13132
13133  [
13134 \emph on
13135
13136 \begin_inset Flex Code
13137 status collapsed
13138
13139 \begin_layout Plain Layout
13140 default
13141 \end_layout
13142
13143 \end_inset
13144
13145
13146 \emph default
13147
13148 \begin_inset Flex Code
13149 status collapsed
13150
13151 \begin_layout Plain Layout
13152 always
13153 \end_layout
13154
13155 \end_inset
13156
13157
13158 \begin_inset Flex Code
13159 status collapsed
13160
13161 \begin_layout Plain Layout
13162 never
13163 \end_layout
13164
13165 \end_inset
13166
13167 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 default
13173 \end_layout
13174
13175 \end_inset
13176
13177 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182 always
13183 \end_layout
13184
13185 \end_inset
13186
13187 は,文書設定にかかわらず変更することができ,
13188 \begin_inset Flex Code
13189 status collapsed
13190
13191 \begin_layout Plain Layout
13192 never
13193 \end_layout
13194
13195 \end_inset
13196
13197 は,どのような場合でも変更することができません.
13198 \end_layout
13199
13200 \begin_layout Description
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205 TopSep
13206 \end_layout
13207
13208 \end_inset
13209
13210  [
13211 \begin_inset Flex Code
13212 status collapsed
13213
13214 \begin_layout Plain Layout
13215 浮動小数点型=0
13216 \end_layout
13217
13218 \end_inset
13219
13220 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13221 の最大値がとられます.
13222 \end_layout
13223
13224 \begin_layout Subsection
13225 段落様式の国際化
13226 \begin_inset CommandInset label
13227 LatexCommand label
13228 name "subsec:段落様式の国際化"
13229
13230 \end_inset
13231
13232
13233 \end_layout
13234
13235 \begin_layout Standard
13236 \SpecialChar LyX
13237 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13238 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13239 \lang french
13240 Théorème
13241 \lang japanese
13242  1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13243 \end_layout
13244
13245 \begin_layout Standard
13246 もし
13247 \begin_inset Flex MenuItem
13248 status collapsed
13249
13250 \begin_layout Plain Layout
13251 Style
13252 \end_layout
13253
13254 \end_inset
13255
13256 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13257 \begin_inset Flex MenuItem
13258 status collapsed
13259
13260 \begin_layout Plain Layout
13261 LangPreamble
13262 \end_layout
13263
13264 \end_inset
13265
13266
13267 \begin_inset Flex MenuItem
13268 status collapsed
13269
13270 \begin_layout Plain Layout
13271 BabelPreamble
13272 \end_layout
13273
13274 \end_inset
13275
13276 を使用することができます.以下の抜粋(
13277 \begin_inset Flex MenuItem
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281 theorems-ams.inc
13282 \end_layout
13283
13284 \end_inset
13285
13286 より)は,これがどう動作するかを示すものです.
13287 \end_layout
13288
13289 \begin_layout LyX-Code
13290 Preamble
13291 \end_layout
13292
13293 \begin_deeper
13294 \begin_layout LyX-Code
13295   
13296 \backslash
13297 theoremstyle{remark}
13298 \end_layout
13299
13300 \begin_layout LyX-Code
13301   
13302 \backslash
13303 newtheorem{claim}[thm]{
13304 \backslash
13305 protect
13306 \backslash
13307 claimname}
13308 \end_layout
13309
13310 \begin_layout LyX-Code
13311 EndPreamble
13312 \end_layout
13313
13314 \begin_layout LyX-Code
13315 LangPreamble
13316 \end_layout
13317
13318 \begin_layout LyX-Code
13319   
13320 \backslash
13321 providecommand{
13322 \backslash
13323 claimname}{_(Claim)}
13324 \end_layout
13325
13326 \begin_layout LyX-Code
13327 EndLangPreamble
13328 \end_layout
13329
13330 \begin_layout LyX-Code
13331 BabelPreamble
13332 \end_layout
13333
13334 \begin_layout LyX-Code
13335     
13336 \backslash
13337 addto
13338 \backslash
13339 captions$$lang{
13340 \backslash
13341 renewcommand{
13342 \backslash
13343 claimname}{_(Claim)}}
13344 \end_layout
13345
13346 \begin_layout LyX-Code
13347 EndBabelPreamble
13348 \end_layout
13349
13350 \end_deeper
13351 \begin_layout Standard
13352 原則として,
13353 \begin_inset Flex MenuItem
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 LangPreamble
13358 \end_layout
13359
13360 \end_inset
13361
13362
13363 \begin_inset Flex MenuItem
13364 status collapsed
13365
13366 \begin_layout Plain Layout
13367 BabelPreamble
13368 \end_layout
13369
13370 \end_inset
13371
13372 タグ内には,有効な\SpecialChar LaTeX
13373 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13374 は,\SpecialChar LaTeX
13375 コマンド
13376 \begin_inset Flex Code
13377 status collapsed
13378
13379 \begin_layout Plain Layout
13380
13381 \backslash
13382 claimname
13383 \end_layout
13384
13385 \end_inset
13386
13387 とその
13388 \begin_inset Flex Code
13389 status collapsed
13390
13391 \begin_layout Plain Layout
13392
13393 \backslash
13394 newtheorem
13395 \end_layout
13396
13397 \end_inset
13398
13399 中での用い方です.
13400 \end_layout
13401
13402 \begin_layout Standard
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 LangPreamble
13408 \end_layout
13409
13410 \end_inset
13411
13412 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 Preamble
13418 \end_layout
13419
13420 \end_inset
13421
13422 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13423 \begin_inset Flex Code
13424 status collapsed
13425
13426 \begin_layout Plain Layout
13427 _()
13428 \end_layout
13429
13430 \end_inset
13431
13432 が使用されていることです.これは,\SpecialChar LyX
13433 が\SpecialChar LaTeX
13434 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13435 \end_layout
13436
13437 \begin_layout Standard
13438 \begin_inset Flex Code
13439 status collapsed
13440
13441 \begin_layout Plain Layout
13442 BabelPreamble
13443 \end_layout
13444
13445 \end_inset
13446
13447 タグは,複数言語文書をサポートし,
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452 babel
13453 \end_layout
13454
13455 \end_inset
13456
13457 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13458 の場合には,
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463 _()
13464 \end_layout
13465
13466 \end_inset
13467
13468 の引数は,その当該言語への翻訳で置き換えられ,
13469 \begin_inset Flex Code
13470 status collapsed
13471
13472 \begin_layout Plain Layout
13473 $$lang
13474 \end_layout
13475
13476 \end_inset
13477
13478 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13479 \end_layout
13480
13481 \begin_layout Standard
13482 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13483 \end_layout
13484
13485 \begin_layout LyX-Code
13486
13487 \backslash
13488 addto
13489 \backslash
13490 captionsfrench{
13491 \backslash
13492 renewcommand{
13493 \backslash
13494 claimname}{Affirmation}}
13495 \begin_inset Newline newline
13496 \end_inset
13497
13498
13499 \backslash
13500 addto
13501 \backslash
13502 captionsngerman{
13503 \backslash
13504 renewcommand{
13505 \backslash
13506 claimname}{Behauptung}}
13507 \begin_inset Newline newline
13508 \end_inset
13509
13510
13511 \backslash
13512 providecommand{
13513 \backslash
13514 claimname}{Behauptung}
13515 \end_layout
13516
13517 \begin_layout Standard
13518 それから,\SpecialChar LaTeX
13519
13520 \begin_inset Flex Code
13521 status collapsed
13522
13523 \begin_layout Plain Layout
13524 babel
13525 \end_layout
13526
13527 \end_inset
13528
13529 は協力して,出力に正しい文字列を生成します.
13530 \end_layout
13531
13532 \begin_layout Standard
13533 ここで注意しておくべき一つの重要な点は,翻訳は,
13534 \begin_inset Flex Code
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 layouttranslations
13539 \end_layout
13540
13541 \end_inset
13542
13543 ファイルを通じて,\SpecialChar LyX
13544 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13545 \begin_inset Flex Code
13546 status collapsed
13547
13548 \begin_layout Plain Layout
13549 layouttranslations
13550 \end_layout
13551
13552 \end_inset
13553
13554 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13555 の国際化ルーチンでは取り扱われないので,
13556 \begin_inset Flex MenuItem
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 LangPreamble
13561 \end_layout
13562
13563 \end_inset
13564
13565
13566 \begin_inset Flex MenuItem
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 BabelPreamble
13571 \end_layout
13572
13573 \end_inset
13574
13575 は,事実上,\SpecialChar LyX
13576 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13577 に同梱させようとい
13578 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13579 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13580 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13581 \end_layout
13582
13583 \begin_layout Subsection
13584 フロート
13585 \begin_inset CommandInset label
13586 LatexCommand label
13587 name "subsec:フロート"
13588
13589 \end_inset
13590
13591
13592 \end_layout
13593
13594 \begin_layout Standard
13595 \SpecialChar LyX
13596 第1.3.0版以来,テキストクラス自体の中でフロート(
13597 \begin_inset Flex MenuItem
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601 figure
13602 \end_layout
13603
13604 \end_inset
13605
13606
13607 \begin_inset Flex MenuItem
13608 status collapsed
13609
13610 \begin_layout Plain Layout
13611 table
13612 \end_layout
13613
13614 \end_inset
13615
13616 ・\SpecialChar ldots
13617 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13618 \begin_inset Flex Code
13619 status collapsed
13620
13621 \begin_layout Plain Layout
13622 stdfloats.inc
13623 \end_layout
13624
13625 \end_inset
13626
13627 ファイルに含まれているので,作業中のレイアウトファイルに
13628 \end_layout
13629
13630 \begin_layout LyX-Code
13631 Input stdfloats.inc
13632 \end_layout
13633
13634 \begin_layout Standard
13635 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13636 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13637 ましょう.
13638 \end_layout
13639
13640 \begin_layout Description
13641 \begin_inset Flex Code
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 AllowedPlacement
13646 \end_layout
13647
13648 \end_inset
13649
13650  [
13651 \begin_inset Flex Code
13652 status collapsed
13653
13654 \begin_layout Plain Layout
13655 文字列
13656 \end_layout
13657
13658 \end_inset
13659
13660 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13661 \emph on
13662 h
13663 \emph default
13664  (
13665 \begin_inset Quotes eld
13666 \end_inset
13667
13668 here if possible:可能ならば現在位置に
13669 \begin_inset Quotes erd
13670 \end_inset
13671
13672 ), 
13673 \emph on
13674 t
13675 \emph default
13676  (
13677 \begin_inset Quotes eld
13678 \end_inset
13679
13680 top of page:ページ上部
13681 \begin_inset Quotes erd
13682 \end_inset
13683
13684 )・
13685 \emph on
13686 b
13687 \emph default
13688  (
13689 \begin_inset Quotes eld
13690 \end_inset
13691
13692 bottom of page:ページ下部
13693 \begin_inset Quotes erd
13694 \end_inset
13695
13696 )・
13697 \emph on
13698 p
13699 \emph default
13700  (
13701 \begin_inset Quotes eld
13702 \end_inset
13703
13704 page of floats:フロートを独立したページに
13705 \begin_inset Quotes erd
13706 \end_inset
13707
13708 )・
13709 \emph on
13710 H
13711 \emph default
13712  (
13713 \begin_inset Quotes eld
13714 \end_inset
13715
13716 here definitely:何としても現在位置に置く
13717 \begin_inset Quotes erd
13718 \end_inset
13719
13720 )・
13721 \emph on
13722 !
13723 \emph default
13724  (
13725 \begin_inset Quotes eld
13726 \end_inset
13727
13728 ignore LaTeX rules:LaTeXの規則を無視する
13729 \begin_inset Quotes erd
13730 \end_inset
13731
13732 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13733 \emph on
13734 none
13735 \emph default
13736 を与えてください.
13737 \end_layout
13738
13739 \begin_layout Description
13740 \begin_inset Flex Code
13741 status collapsed
13742
13743 \begin_layout Plain Layout
13744 AllowsSideways
13745 \end_layout
13746
13747 \end_inset
13748
13749  [
13750 \begin_inset Flex Code
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754 0
13755 \end_layout
13756
13757 \end_inset
13758
13759 ,
13760 \begin_inset space \thinspace{}
13761 \end_inset
13762
13763
13764 \emph on
13765
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 1
13771 \end_layout
13772
13773 \end_inset
13774
13775
13776 \emph default
13777 ] フロートを,\SpecialChar LaTeX
13778 パッケージの
13779 \family typewriter
13780 rotfloat
13781 \family default
13782  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13783 \begin_inset Flex Code
13784 status collapsed
13785
13786 \begin_layout Plain Layout
13787 0
13788 \end_layout
13789
13790 \end_inset
13791
13792 を指定してください.
13793 \end_layout
13794
13795 \begin_layout Description
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 AllowsWide
13801 \end_layout
13802
13803 \end_inset
13804
13805  [
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 0
13811 \end_layout
13812
13813 \end_inset
13814
13815 ,
13816 \begin_inset space \thinspace{}
13817 \end_inset
13818
13819
13820 \emph on
13821
13822 \begin_inset Flex Code
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826 1
13827 \end_layout
13828
13829 \end_inset
13830
13831
13832 \emph default
13833 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13834 \begin_inset Flex Code
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838 0
13839 \end_layout
13840
13841 \end_inset
13842
13843 を指定してください.
13844 \end_layout
13845
13846 \begin_layout Description
13847 \begin_inset Flex Code
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851 Extension
13852 \end_layout
13853
13854 \end_inset
13855
13856  [
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 文字列
13862 \end_layout
13863
13864 \end_inset
13865
13866 =
13867 \begin_inset Quotes erd
13868 \end_inset
13869
13870
13871 \begin_inset Quotes erd
13872 \end_inset
13873
13874 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
13875 がキャプションを書き込むファイルです.
13876 \end_layout
13877
13878 \begin_layout Description
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 GuiName
13884 \end_layout
13885
13886 \end_inset
13887
13888  [
13889 \begin_inset Flex Code
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 文字列
13894 \end_layout
13895
13896 \end_inset
13897
13898 =
13899 \begin_inset Quotes erd
13900 \end_inset
13901
13902
13903 \begin_inset Quotes erd
13904 \end_inset
13905
13906 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
13907 \end_layout
13908
13909 \begin_layout Description
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914 HTML*
13915 \end_layout
13916
13917 \end_inset
13918
13919  これらは,XHTML出力で使用されます.
13920 \begin_inset CommandInset ref
13921 LatexCommand ref
13922 reference "sec:XHTML出力のタグ"
13923
13924 \end_inset
13925
13926 をご覧ください.
13927 \end_layout
13928
13929 \begin_layout Description
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 IsPredefined
13935 \end_layout
13936
13937 \end_inset
13938
13939  [
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944
13945 \emph on
13946 0
13947 \end_layout
13948
13949 \end_inset
13950
13951 ,
13952 \begin_inset space \thinspace{}
13953 \end_inset
13954
13955
13956 \begin_inset Flex Code
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960 1
13961 \end_layout
13962
13963 \end_inset
13964
13965 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
13966 パッケージ
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 float
13972 \end_layout
13973
13974 \end_inset
13975
13976 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
13977 \begin_inset Flex Code
13978 status collapsed
13979
13980 \begin_layout Plain Layout
13981 0
13982 \end_layout
13983
13984 \end_inset
13985
13986 で,この場合
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 float
13992 \end_layout
13993
13994 \end_inset
13995
13996 を使用します.\SpecialChar LaTeX
13997 ドキュメントクラス中に既に定義されているときには,
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 0
14003 \end_layout
14004
14005 \end_inset
14006
14007 に設定しなくてはなりません.
14008 \end_layout
14009
14010 \begin_layout Description
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 ListCommand
14016 \end_layout
14017
14018 \end_inset
14019
14020  [
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 文字列
14026 \end_layout
14027
14028 \end_inset
14029
14030 =
14031 \begin_inset Quotes erd
14032 \end_inset
14033
14034
14035 \begin_inset Quotes erd
14036 \end_inset
14037
14038 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14039 \backslash
14040 」は書きません.
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 NeedsFloatPkg
14046 \end_layout
14047
14048 \end_inset
14049
14050 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14051 \emph on
14052 必ず
14053 \emph default
14054 指定しなくてはなりません.
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 NeedsFloatPkg
14060 \end_layout
14061
14062 \end_inset
14063
14064 が真の時は,標準的な方法が存在するので,これは無視されます.
14065 \end_layout
14066
14067 \begin_layout Description
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 ListName
14073 \end_layout
14074
14075 \end_inset
14076
14077  [
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082 文字列
14083 \end_layout
14084
14085 \end_inset
14086
14087 =
14088 \begin_inset Quotes erd
14089 \end_inset
14090
14091
14092 \begin_inset Quotes erd
14093 \end_inset
14094
14095 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14096 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14097 に渡さ
14098 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14099 \end_layout
14100
14101 \begin_layout Description
14102 \begin_inset Flex Code
14103 status collapsed
14104
14105 \begin_layout Plain Layout
14106 NumberWithin
14107 \end_layout
14108
14109 \end_inset
14110
14111  [
14112 \begin_inset Flex Code
14113 status collapsed
14114
14115 \begin_layout Plain Layout
14116 文字列
14117 \end_layout
14118
14119 \end_inset
14120
14121 =
14122 \begin_inset Quotes erd
14123 \end_inset
14124
14125
14126 \begin_inset Quotes erd
14127 \end_inset
14128
14129 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14130 \begin_inset Flex Code
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 NumberWithin
14135 \end_layout
14136
14137 \end_inset
14138
14139 が「
14140 \begin_inset Flex Code
14141 status collapsed
14142
14143 \begin_layout Plain Layout
14144 chapter
14145 \end_layout
14146
14147 \end_inset
14148
14149 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14150 \end_layout
14151
14152 \begin_layout Description
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 Placement
14158 \end_layout
14159
14160 \end_inset
14161
14162  [
14163 \begin_inset Flex Code
14164 status collapsed
14165
14166 \begin_layout Plain Layout
14167 文字列
14168 \end_layout
14169
14170 \end_inset
14171
14172 =
14173 \begin_inset Quotes erd
14174 \end_inset
14175
14176
14177 \begin_inset Quotes erd
14178 \end_inset
14179
14180 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14181 表記に従い,
14182 \begin_inset Flex Code
14183 status collapsed
14184
14185 \begin_layout Plain Layout
14186 t
14187 \end_layout
14188
14189 \end_inset
14190
14191 ならば上部(top),
14192 \begin_inset Flex Code
14193 status collapsed
14194
14195 \begin_layout Plain Layout
14196 b
14197 \end_layout
14198
14199 \end_inset
14200
14201 ならば下部(bottom),
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 p
14207 \end_layout
14208
14209 \end_inset
14210
14211 ならばページ(page),
14212 \begin_inset Flex Code
14213 status collapsed
14214
14215 \begin_layout Plain Layout
14216 h
14217 \end_layout
14218
14219 \end_inset
14220
14221 ならばここ(here)を表します
14222 \begin_inset Foot
14223 status collapsed
14224
14225 \begin_layout Plain Layout
14226 \SpecialChar LaTeX
14227 同様,文字列中でのこれらの文字の順序は関係ありません.
14228 \end_layout
14229
14230 \end_inset
14231
14232 .これらの他に新しい型
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237 H
14238 \end_layout
14239
14240 \end_inset
14241
14242 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14243 \begin_inset Flex Code
14244 status collapsed
14245
14246 \begin_layout Plain Layout
14247 H
14248 \end_layout
14249
14250 \end_inset
14251
14252 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14253 に「
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 tbp
14259 \end_layout
14260
14261 \end_inset
14262
14263 」を指定してください.
14264 \end_layout
14265
14266 \begin_layout Description
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 RefPrefix
14272 \end_layout
14273
14274 \end_inset
14275
14276  [
14277 \begin_inset Flex Code
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281 文字列
14282 \end_layout
14283
14284 \end_inset
14285
14286 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 RefPrefix
14292 \end_layout
14293
14294 \end_inset
14295
14296 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14297 \end_layout
14298
14299 \begin_layout Description
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 Style
14305 \end_layout
14306
14307 \end_inset
14308
14309  [
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 文字列
14315 \end_layout
14316
14317 \end_inset
14318
14319 =
14320 \begin_inset Quotes erd
14321 \end_inset
14322
14323
14324 \begin_inset Quotes erd
14325 \end_inset
14326
14327
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332
14333 \backslash
14334 newfloat
14335 \end_layout
14336
14337 \end_inset
14338
14339 を使用してフロートを定義する際に使用される様式.
14340 \end_layout
14341
14342 \begin_layout Description
14343 \begin_inset Flex Code
14344 status collapsed
14345
14346 \begin_layout Plain Layout
14347 Type
14348 \end_layout
14349
14350 \end_inset
14351
14352  [
14353 \begin_inset Flex Code
14354 status collapsed
14355
14356 \begin_layout Plain Layout
14357 文字列
14358 \end_layout
14359
14360 \end_inset
14361
14362 =
14363 \begin_inset Quotes erd
14364 \end_inset
14365
14366
14367 \begin_inset Quotes erd
14368 \end_inset
14369
14370 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375
14376 \backslash
14377 newfloat
14378 \end_layout
14379
14380 \end_inset
14381
14382 の後で,
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387
14388 \backslash
14389 begin{program}
14390 \end_layout
14391
14392 \end_inset
14393
14394
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399
14400 \backslash
14401 end{algorithm*}
14402 \end_layout
14403
14404 \end_inset
14405
14406 といったコマンドが利用できます.
14407 \end_layout
14408
14409 \begin_layout Description
14410 \begin_inset Flex Code
14411 status collapsed
14412
14413 \begin_layout Plain Layout
14414 UsesFloatPkg
14415 \end_layout
14416
14417 \end_inset
14418
14419  [
14420 \begin_inset Flex Code
14421 status collapsed
14422
14423 \begin_layout Plain Layout
14424 0
14425 \end_layout
14426
14427 \end_inset
14428
14429 ,
14430 \begin_inset space \thinspace{}
14431 \end_inset
14432
14433
14434 \begin_inset Flex Code
14435 status collapsed
14436
14437 \begin_layout Plain Layout
14438
14439 \emph on
14440 1
14441 \end_layout
14442
14443 \end_inset
14444
14445 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14446 パッケージ
14447 \begin_inset Flex Code
14448 status collapsed
14449
14450 \begin_layout Plain Layout
14451 float
14452 \end_layout
14453
14454 \end_inset
14455
14456 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14457 自身がオン・ザ・フライで定義しているのかを示します.
14458 \end_layout
14459
14460 \begin_layout Standard
14461 \begin_inset Flex Code
14462 status collapsed
14463
14464 \begin_layout Plain Layout
14465
14466 \emph on
14467 type
14468 \end_layout
14469
14470 \end_inset
14471
14472 型のフロートを定義すると,自動的に
14473 \emph on
14474 対応する
14475 \emph default
14476
14477 \begin_inset Flex Code
14478 status collapsed
14479
14480 \begin_layout Plain Layout
14481
14482 \emph on
14483 type
14484 \end_layout
14485
14486 \end_inset
14487
14488 名カウンタが定義されます.
14489 \end_layout
14490
14491 \begin_layout Subsection
14492 自由差込枠と差込枠レイアウト
14493 \begin_inset CommandInset label
14494 LatexCommand label
14495 name "subsec:任意設定差込枠"
14496
14497 \end_inset
14498
14499
14500 \end_layout
14501
14502 \begin_layout Standard
14503 自由差込枠には次の3種類があります.
14504 \end_layout
14505
14506 \begin_layout Itemize
14507 文字様式(
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512 CharStyle
14513 \end_layout
14514
14515 \end_inset
14516
14517 ).これは,
14518 \begin_inset Flex Code
14519 status collapsed
14520
14521 \begin_layout Plain Layout
14522
14523 \backslash
14524 noun
14525 \end_layout
14526
14527 \end_inset
14528
14529
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534
14535 \backslash
14536 code
14537 \end_layout
14538
14539 \end_inset
14540
14541 などの\SpecialChar LaTeX
14542 コマンドに対応した意味論的マークアップを定義するものです.
14543 \end_layout
14544
14545 \begin_layout Itemize
14546 ユーザ設定(
14547 \begin_inset Flex Code
14548 status collapsed
14549
14550 \begin_layout Plain Layout
14551 Custom
14552 \end_layout
14553
14554 \end_inset
14555
14556 ).これは,\SpecialChar TeX
14557 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14558 \begin_inset Flex Code
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562 endnote
14563 \end_layout
14564
14565 \end_inset
14566
14567 モジュール中で定義されています.
14568 \end_layout
14569
14570 \begin_layout Itemize
14571 XML要素(
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576 Element
14577 \end_layout
14578
14579 \end_inset
14580
14581 ).DocBookクラスで使用するものです.
14582 \end_layout
14583
14584 \begin_layout Standard
14585 自由差込枠は,以下で説明する
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 InsetLayout
14591 \end_layout
14592
14593 \end_inset
14594
14595 タグを使用して定義されます.
14596 \end_layout
14597
14598 \begin_layout Standard
14599 \begin_inset Flex Code
14600 status collapsed
14601
14602 \begin_layout Plain Layout
14603 InsetLayout
14604 \end_layout
14605
14606 \end_inset
14607
14608 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14609 \begin_inset Flex Code
14610 status collapsed
14611
14612 \begin_layout Plain Layout
14613 InsetLayout
14614 \end_layout
14615
14616 \end_inset
14617
14618 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14619 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14620 ー定義するのに使用されます.
14621 \end_layout
14622
14623 \begin_layout Standard
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 InsetLayout
14629 \end_layout
14630
14631 \end_inset
14632
14633 定義は以下の形の行では始まらなくてはなりません.
14634 \end_layout
14635
14636 \begin_layout LyX-Code
14637 InsetLayout <型>
14638 \end_layout
14639
14640 \begin_layout Standard
14641 ここで
14642 \begin_inset Flex Code
14643 status collapsed
14644
14645 \begin_layout Plain Layout
14646 <型>
14647 \end_layout
14648
14649 \end_inset
14650
14651 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14652 \end_layout
14653
14654 \begin_layout Enumerate
14655 既存の差込枠のレイアウトを変更する場合.この場合,
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 <型>
14661 \end_layout
14662
14663 \end_inset
14664
14665 は以下のいずれかになります:
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670 Algorithm
14671 \end_layout
14672
14673 \end_inset
14674
14675
14676 \begin_inset Flex Code
14677 status collapsed
14678
14679 \begin_layout Plain Layout
14680 Branch
14681 \end_layout
14682
14683 \end_inset
14684
14685
14686 \begin_inset Flex Code
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690 Box
14691 \end_layout
14692
14693 \end_inset
14694
14695
14696 \begin_inset Flex Code
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700 Box:shaded
14701 \end_layout
14702
14703 \end_inset
14704
14705
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 Caption:Standard
14711 \end_layout
14712
14713 \end_inset
14714
14715
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 ERT
14721 \end_layout
14722
14723 \end_inset
14724
14725
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 Figure
14731 \end_layout
14732
14733 \end_inset
14734
14735
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740 Foot
14741 \end_layout
14742
14743 \end_inset
14744
14745
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 Index
14751 \end_layout
14752
14753 \end_inset
14754
14755
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Info
14761 \end_layout
14762
14763 \end_inset
14764
14765
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 Info:menu
14771 \end_layout
14772
14773 \end_inset
14774
14775
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 Info:shortcut
14781 \end_layout
14782
14783 \end_inset
14784
14785
14786 \begin_inset Flex Code
14787 status collapsed
14788
14789 \begin_layout Plain Layout
14790 Info:shortcuts
14791 \end_layout
14792
14793 \end_inset
14794
14795
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 Listings
14801 \end_layout
14802
14803 \end_inset
14804
14805
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810 Marginal
14811 \end_layout
14812
14813 \end_inset
14814
14815
14816 \begin_inset Flex Code
14817 status collapsed
14818
14819 \begin_layout Plain Layout
14820 Note:Comment
14821 \end_layout
14822
14823 \end_inset
14824
14825
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 Note:Note
14831 \end_layout
14832
14833 \end_inset
14834
14835
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Note:GreyedOut
14841 \end_layout
14842
14843 \end_inset
14844
14845
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 Table
14851 \end_layout
14852
14853 \end_inset
14854
14855
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 URL
14861 \end_layout
14862
14863 \end_inset
14864
14865
14866 \end_layout
14867
14868 \begin_layout Enumerate
14869 自由差込枠のレイアウトを定義する場合.この場合,
14870 \begin_inset Flex Code
14871 status collapsed
14872
14873 \begin_layout Plain Layout
14874 <型>
14875 \end_layout
14876
14877 \end_inset
14878
14879
14880 \begin_inset Flex Code
14881 status collapsed
14882
14883 \begin_layout Plain Layout
14884 Flex:<名称>
14885 \end_layout
14886
14887 \end_inset
14888
14889 の形でなくてはなりません.ここで,
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 名称
14895 \end_layout
14896
14897 \end_inset
14898
14899 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
14900 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905 LyXType
14906 \end_layout
14907
14908 \end_inset
14909
14910 項目が含まれていなくてはならないことに注意してください.
14911 \end_layout
14912
14913 \begin_layout Enumerate
14914 ユーザー定義派生枝を定義する場合.この場合,
14915 \begin_inset Flex Code
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 <型>
14920 \end_layout
14921
14922 \end_inset
14923
14924 は「
14925 \begin_inset Flex Code
14926 status collapsed
14927
14928 \begin_layout Plain Layout
14929 Branch:<名称>
14930 \end_layout
14931
14932 \end_inset
14933
14934 」の形でなくてはなりません.ここで,
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 名称
14940 \end_layout
14941
14942 \end_inset
14943
14944 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
14945 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
14946 がくるむことができるようにすることです.
14947 \end_layout
14948
14949 \begin_layout Enumerate
14950 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
14951 \begin_inset Flex Code
14952 status collapsed
14953
14954 \begin_layout Plain Layout
14955 <型>
14956 \end_layout
14957
14958 \end_inset
14959
14960 は「
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 Caption:<名称>
14966 \end_layout
14967
14968 \end_inset
14969
14970 」の形でなくてはなりません.ここで,
14971 \begin_inset Flex Code
14972 status collapsed
14973
14974 \begin_layout Plain Layout
14975 名称
14976 \end_layout
14977
14978 \end_inset
14979
14980 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
14981 \begin_inset Flex Code
14982 status collapsed
14983
14984 \begin_layout Plain Layout
14985 Caption:Standard
14986 \end_layout
14987
14988 \end_inset
14989
14990 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 Caption:Above
14996 \end_layout
14997
14998 \end_inset
14999
15000
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 Caption:Below
15006 \end_layout
15007
15008 \end_inset
15009
15010 ),
15011 \family sans
15012 多言語キャプション
15013 \family default
15014 モジュール(
15015 \begin_inset Flex Code
15016 status collapsed
15017
15018 \begin_layout Plain Layout
15019 Caption:Bicaption
15020 \end_layout
15021
15022 \end_inset
15023
15024 )をご覧ください.
15025 \end_layout
15026
15027 \begin_layout Standard
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 InsetLayout
15033 \end_layout
15034
15035 \end_inset
15036
15037 定義には以下の項目を入れることができます.
15038 \end_layout
15039
15040 \begin_layout Description
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 Argument
15046 \end_layout
15047
15048 \end_inset
15049
15050  [
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 整数
15056 \end_layout
15057
15058 \end_inset
15059
15060 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 EndArgument
15066 \end_layout
15067
15068 \end_inset
15069
15070 で閉じなくてはなりません.詳細は
15071 \begin_inset CommandInset ref
15072 LatexCommand ref
15073 reference "subsec:段落様式"
15074
15075 \end_inset
15076
15077 参照.
15078 \end_layout
15079
15080 \begin_layout Description
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 BabelPreamble
15086 \end_layout
15087
15088 \end_inset
15089
15090  言語コマンドを変更するプリアンブル.
15091 \begin_inset CommandInset ref
15092 LatexCommand ref
15093 reference "subsec:段落様式の国際化"
15094
15095 \end_inset
15096
15097 参照.
15098 \end_layout
15099
15100 \begin_layout Description
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 BgColor
15106 \end_layout
15107
15108 \end_inset
15109
15110  [
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 <名称>
15116 \end_layout
15117
15118 \end_inset
15119
15120 ] 差込枠の背景色.使用できる色名一覧は
15121 \begin_inset CommandInset ref
15122 LatexCommand ref
15123 reference "chap:色名"
15124
15125 \end_inset
15126
15127 参照.
15128 \end_layout
15129
15130 \begin_layout Description
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 ContentAsLabel
15136 \end_layout
15137
15138 \end_inset
15139
15140  [
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145
15146 \emph on
15147 0
15148 \end_layout
15149
15150 \end_inset
15151
15152 ,
15153 \begin_inset space \thinspace{}
15154 \end_inset
15155
15156
15157 \begin_inset Flex Code
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 1
15162 \end_layout
15163
15164 \end_inset
15165
15166 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15167 \end_layout
15168
15169 \begin_layout Description
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 CopyStyle
15175 \end_layout
15176
15177 \end_inset
15178
15179  [<型>] 段落様式と同様です.
15180 \begin_inset CommandInset ref
15181 LatexCommand ref
15182 reference "subsec:段落様式"
15183
15184 \end_inset
15185
15186 参照のこと.完全な型を指定する必要があることに注意してください.例:
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 CopyStyle Flex:<名称>
15192 \end_layout
15193
15194 \end_inset
15195
15196
15197 \end_layout
15198
15199 \begin_layout Description
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 CustomPars
15205 \end_layout
15206
15207 \end_inset
15208
15209  [
15210 \begin_inset Flex Code
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214
15215 \emph on
15216 0
15217 \end_layout
15218
15219 \end_inset
15220
15221 ,
15222 \begin_inset space \thinspace{}
15223 \end_inset
15224
15225
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230 1
15231 \end_layout
15232
15233 \end_inset
15234
15235 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15236 \end_layout
15237
15238 \begin_layout Description
15239 \begin_inset Flex Code
15240 status collapsed
15241
15242 \begin_layout Plain Layout
15243 Decoration
15244 \end_layout
15245
15246 \end_inset
15247
15248  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15249 \begin_inset Flex Code
15250 status collapsed
15251
15252 \begin_layout Plain Layout
15253 Classic
15254 \end_layout
15255
15256 \end_inset
15257
15258
15259 \begin_inset Flex Code
15260 status collapsed
15261
15262 \begin_layout Plain Layout
15263 Minimalistic
15264 \end_layout
15265
15266 \end_inset
15267
15268
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 Conglomerate
15274 \end_layout
15275
15276 \end_inset
15277
15278 のいずれかを指定することができます.脚註は通常
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 Classic
15284 \end_layout
15285
15286 \end_inset
15287
15288 を使用し,\SpecialChar TeX
15289 コード差込枠は通常
15290 \begin_inset Flex Code
15291 status collapsed
15292
15293 \begin_layout Plain Layout
15294 Minimalistic
15295 \end_layout
15296
15297 \end_inset
15298
15299 ,文字様式は
15300 \begin_inset Flex Code
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304 Conglomerate
15305 \end_layout
15306
15307 \end_inset
15308
15309 を使用します.
15310 \end_layout
15311
15312 \begin_layout Description
15313 \begin_inset Flex Code
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 Display
15318 \end_layout
15319
15320 \end_inset
15321
15322  [
15323 \begin_inset Flex Code
15324 status collapsed
15325
15326 \begin_layout Plain Layout
15327 0
15328 \end_layout
15329
15330 \end_inset
15331
15332 ,
15333 \begin_inset space \thinspace{}
15334 \end_inset
15335
15336
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341
15342 \emph on
15343 1
15344 \end_layout
15345
15346 \end_inset
15347
15348
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 LatexType
15354 \end_layout
15355
15356 \end_inset
15357
15358
15359 \begin_inset Flex Code
15360 status collapsed
15361
15362 \begin_layout Plain Layout
15363 Environment
15364 \end_layout
15365
15366 \end_inset
15367
15368 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15369 環境は,
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374
15375 \backslash
15376 begin{LatexName}
15377 \end_layout
15378
15379 \end_inset
15380
15381 タグと
15382 \begin_inset Flex Code
15383 status collapsed
15384
15385 \begin_layout Plain Layout
15386
15387 \backslash
15388 end{LatexName}
15389 \end_layout
15390
15391 \end_inset
15392
15393 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15394 \end_layout
15395
15396 \begin_layout Description
15397 \begin_inset Flex Code
15398 status collapsed
15399
15400 \begin_layout Plain Layout
15401 End
15402 \end_layout
15403
15404 \end_inset
15405
15406  
15407 \begin_inset Flex Code
15408 status collapsed
15409
15410 \begin_layout Plain Layout
15411 InsetLayout
15412 \end_layout
15413
15414 \end_inset
15415
15416 宣言を閉じるのに必要です.
15417 \end_layout
15418
15419 \begin_layout Description
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424 Font
15425 \end_layout
15426
15427 \end_inset
15428
15429  本文本体とラベル
15430 \emph on
15431 両方に
15432 \emph default
15433 使用されるフォントです.
15434 \begin_inset CommandInset ref
15435 LatexCommand ref
15436 reference "subsec:フォント指定"
15437
15438 \end_inset
15439
15440 を参照.このフォントを定義すると自動的に
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 LabelFont
15446 \end_layout
15447
15448 \end_inset
15449
15450 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 LabelFont
15456 \end_layout
15457
15458 \end_inset
15459
15460 を定義しなくてはならないことに注意してください.
15461 \end_layout
15462
15463 \begin_layout Description
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 FixedWidthPreambleEncoding
15469 \end_layout
15470
15471 \end_inset
15472
15473  [
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478
15479 \emph on
15480 0
15481 \end_layout
15482
15483 \end_inset
15484
15485 ,
15486 \begin_inset space \thinspace{}
15487 \end_inset
15488
15489
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 1
15495 \end_layout
15496
15497 \end_inset
15498
15499 ] このレイアウトによって生成される
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504 BabelPreamble
15505 \end_layout
15506
15507 \end_inset
15508
15509 および
15510 \begin_inset Flex Code
15511 status collapsed
15512
15513 \begin_layout Plain Layout
15514 LangPreamble
15515 \end_layout
15516
15517 \end_inset
15518
15519 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15520 \family typewriter
15521 listings
15522 \family default
15523 のように,
15524 \family sans
15525 utf8
15526 \family default
15527 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15528 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15529 やLua\SpecialChar TeX
15530 のようなUnicodeを完全に解する\SpecialChar LaTeX
15531 バックエンドを使用してい
15532 る場合には,無視されます.
15533 \end_layout
15534
15535 \begin_layout Description
15536 \begin_inset Flex Code
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540 ForceLocalFontSwitch
15541 \end_layout
15542
15543 \end_inset
15544
15545  [
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550
15551 \emph on
15552 0
15553 \end_layout
15554
15555 \end_inset
15556
15557 ,
15558 \begin_inset space \thinspace{}
15559 \end_inset
15560
15561
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 1
15567 \end_layout
15568
15569 \end_inset
15570
15571 ] babel使用時に,常にローカルフォント切替(
15572 \begin_inset Flex Code
15573 status collapsed
15574
15575 \begin_layout Plain Layout
15576
15577 \backslash
15578 foreignlanguage
15579 \end_layout
15580
15581 \end_inset
15582
15583 )を使い,グローバル切替(
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588
15589 \backslash
15590 selectlanguage
15591 \end_layout
15592
15593 \end_inset
15594
15595 など)は使わない.
15596 \end_layout
15597
15598 \begin_layout Description
15599 \begin_inset Flex Code
15600 status collapsed
15601
15602 \begin_layout Plain Layout
15603 ForceLTR
15604 \end_layout
15605
15606 \end_inset
15607
15608  [
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613
15614 \emph on
15615 0
15616 \end_layout
15617
15618 \end_inset
15619
15620 ,
15621 \begin_inset space \thinspace{}
15622 \end_inset
15623
15624
15625 \begin_inset Flex Code
15626 status collapsed
15627
15628 \begin_layout Plain Layout
15629 1
15630 \end_layout
15631
15632 \end_inset
15633
15634 ] たとえば\SpecialChar TeX
15635 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15636 \end_layout
15637
15638 \begin_layout Description
15639 \begin_inset Flex Code
15640 status collapsed
15641
15642 \begin_layout Plain Layout
15643 ForceOwnlines
15644 \end_layout
15645
15646 \end_inset
15647
15648  [
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653
15654 \emph on
15655 0
15656 \end_layout
15657
15658 \end_inset
15659
15660 ,
15661 \begin_inset space \thinspace{}
15662 \end_inset
15663
15664
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 1
15670 \end_layout
15671
15672 \end_inset
15673
15674 ] \SpecialChar LaTeX
15675 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15676 \end_layout
15677
15678 \begin_layout Description
15679 \begin_inset Flex Code
15680 status collapsed
15681
15682 \begin_layout Plain Layout
15683 ForcePlain
15684 \end_layout
15685
15686 \end_inset
15687
15688  [
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693
15694 \emph on
15695 0
15696 \end_layout
15697
15698 \end_inset
15699
15700 ,
15701 \begin_inset space \thinspace{}
15702 \end_inset
15703
15704
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 1
15710 \end_layout
15711
15712 \end_inset
15713
15714 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15715 \end_layout
15716
15717 \begin_layout Description
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 FreeSpacing
15723 \end_layout
15724
15725 \end_inset
15726
15727  [
15728 \emph on
15729
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 0
15735 \end_layout
15736
15737 \end_inset
15738
15739
15740 \emph default
15741 ,
15742 \begin_inset space \thinspace{}
15743 \end_inset
15744
15745
15746 \begin_inset Flex Code
15747 status collapsed
15748
15749 \begin_layout Plain Layout
15750 1
15751 \end_layout
15752
15753 \end_inset
15754
15755 ] 段落様式と同様.
15756 \begin_inset CommandInset ref
15757 LatexCommand ref
15758 reference "subsec:段落様式"
15759
15760 \end_inset
15761
15762 参照.
15763 \end_layout
15764
15765 \begin_layout Description
15766 \begin_inset Flex Code
15767 status collapsed
15768
15769 \begin_layout Plain Layout
15770 HTML*
15771 \end_layout
15772
15773 \end_inset
15774
15775  これらは,XHTML出力で使用されます.
15776 \begin_inset CommandInset ref
15777 LatexCommand ref
15778 reference "sec:XHTML出力のタグ"
15779
15780 \end_inset
15781
15782 をご覧ください.
15783 \end_layout
15784
15785 \begin_layout Description
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 InToc
15791 \end_layout
15792
15793 \end_inset
15794
15795  [
15796 \begin_inset Flex Code
15797 status collapsed
15798
15799 \begin_layout Plain Layout
15800
15801 \emph on
15802 0
15803 \end_layout
15804
15805 \end_inset
15806
15807 ,
15808 \begin_inset space \thinspace{}
15809 \end_inset
15810
15811
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 1
15817 \end_layout
15818
15819 \end_inset
15820
15821 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15822 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15823 \end_layout
15824
15825 \begin_layout Description
15826 \begin_inset Flex Code
15827 status collapsed
15828
15829 \begin_layout Plain Layout
15830 KeepEmpty
15831 \end_layout
15832
15833 \end_inset
15834
15835  [
15836 \emph on
15837
15838 \begin_inset Flex Code
15839 status collapsed
15840
15841 \begin_layout Plain Layout
15842 0
15843 \end_layout
15844
15845 \end_inset
15846
15847
15848 \emph default
15849 ,
15850 \begin_inset space \thinspace{}
15851 \end_inset
15852
15853
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 1
15859 \end_layout
15860
15861 \end_inset
15862
15863 ] 段落様式と同様.
15864 \begin_inset CommandInset ref
15865 LatexCommand ref
15866 reference "subsec:段落様式"
15867
15868 \end_inset
15869
15870 参照.
15871 \end_layout
15872
15873 \begin_layout Description
15874 \begin_inset Flex Code
15875 status collapsed
15876
15877 \begin_layout Plain Layout
15878 LabelFont
15879 \end_layout
15880
15881 \end_inset
15882
15883  ラベルに使用されるフォント.第
15884 \begin_inset CommandInset ref
15885 LatexCommand ref
15886 reference "subsec:フォント指定"
15887
15888 \end_inset
15889
15890 節を参照.非効率を回避するため,この定義は
15891 \begin_inset Flex Code
15892 status collapsed
15893
15894 \begin_layout Plain Layout
15895 Font
15896 \end_layout
15897
15898 \end_inset
15899
15900 の前には決して現れてはなりません.
15901 \end_layout
15902
15903 \begin_layout Description
15904 \begin_inset Flex Code
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908 LabelString
15909 \end_layout
15910
15911 \end_inset
15912
15913  [
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918 文字列
15919 \end_layout
15920
15921 \end_inset
15922
15923 =
15924 \begin_inset Quotes erd
15925 \end_inset
15926
15927
15928 \begin_inset Quotes erd
15929 \end_inset
15930
15931 ]
15932 \lang english
15933  
15934 \lang japanese
15935 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
15936 コードや派生枝),ラベルが動的に変更されます.
15937 \end_layout
15938
15939 \begin_layout Description
15940 \begin_inset Flex Code
15941 status collapsed
15942
15943 \begin_layout Plain Layout
15944 LangPreamble
15945 \end_layout
15946
15947 \end_inset
15948
15949  言語依存のプリアンブル.
15950 \begin_inset CommandInset ref
15951 LatexCommand ref
15952 reference "subsec:段落様式の国際化"
15953
15954 \end_inset
15955
15956 参照.
15957 \end_layout
15958
15959 \begin_layout Description
15960 \begin_inset Flex Code
15961 status collapsed
15962
15963 \begin_layout Plain Layout
15964 LatexName
15965 \end_layout
15966
15967 \end_inset
15968
15969  [
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 <名称>
15975 \end_layout
15976
15977 \end_inset
15978
15979 ] 対応する\SpecialChar LaTeX
15980 関連物の名称.環境名ないしはコマンド名.
15981 \end_layout
15982
15983 \begin_layout Description
15984 \begin_inset Flex Code
15985 status collapsed
15986
15987 \begin_layout Plain Layout
15988 LatexParam
15989 \end_layout
15990
15991 \end_inset
15992
15993  [
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 <パラメータ>
15999 \end_layout
16000
16001 \end_inset
16002
16003 ]
16004 \lang english
16005  
16006 \lang japanese
16007 対応する
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 LatexName
16013 \end_layout
16014
16015 \end_inset
16016
16017 関連物の非必須パラメータ.
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 []
16023 \end_layout
16024
16025 \end_inset
16026
16027 のような括弧対を含む.このパラメータは\SpecialChar LyX
16028 内部から変更することはできません(変更可能なパラメータには
16029 \begin_inset Flex Code
16030 status collapsed
16031
16032 \begin_layout Plain Layout
16033 Argument
16034 \end_layout
16035
16036 \end_inset
16037
16038 を使用してください).これは,全ての\SpecialChar LaTeX
16039  
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 Argument
16045 \end_layout
16046
16047 \end_inset
16048
16049 の後にそのままの形で出力されます.
16050 \end_layout
16051
16052 \begin_layout Description
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 LatexType
16058 \end_layout
16059
16060 \end_inset
16061
16062  [
16063 \begin_inset Flex Code
16064 status collapsed
16065
16066 \begin_layout Plain Layout
16067 Command, Environment, None
16068 \end_layout
16069
16070 \end_inset
16071
16072 ] 様式がどのように\SpecialChar LaTeX
16073 に変換されるべきかを示します
16074 \begin_inset Foot
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078 これらのルールはSGMLクラスにも適用されるので,
16079 \begin_inset Flex Code
16080 status collapsed
16081
16082 \begin_layout Plain Layout
16083 LatexType
16084 \end_layout
16085
16086 \end_inset
16087
16088 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16089 \end_layout
16090
16091 \end_inset
16092
16093
16094 \end_layout
16095
16096 \begin_deeper
16097 \begin_layout Description
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 None
16103 \end_layout
16104
16105 \end_inset
16106
16107  は,何も特別なことは意味しません
16108 \end_layout
16109
16110 \begin_layout Description
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 Command
16116 \end_layout
16117
16118 \end_inset
16119
16120  は,
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125
16126 \backslash
16127
16128 \emph on
16129 LatexName
16130 \emph default
16131 {\SpecialChar ldots
16132 }
16133 \end_layout
16134
16135 \end_inset
16136
16137 を意味します
16138 \end_layout
16139
16140 \begin_layout Description
16141 \begin_inset Flex Code
16142 status collapsed
16143
16144 \begin_layout Plain Layout
16145 Environment
16146 \end_layout
16147
16148 \end_inset
16149
16150  は,
16151 \begin_inset Flex Code
16152 status collapsed
16153
16154 \begin_layout Plain Layout
16155
16156 \backslash
16157 begin{
16158 \emph on
16159 LatexName
16160 \emph default
16161 }\SpecialChar ldots
16162
16163 \backslash
16164 end{
16165 \emph on
16166 LatexName
16167 \emph default
16168 }
16169 \end_layout
16170
16171 \end_inset
16172
16173 を意味します
16174 \end_layout
16175
16176 \begin_layout Standard
16177 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16178 出力は,\SpecialChar LaTeX
16179 型に依存して
16180 \end_layout
16181
16182 \begin_layout LyX-Code
16183
16184 \backslash
16185 LatexName[LatexParam]{\SpecialChar ldots
16186 }
16187 \end_layout
16188
16189 \begin_layout Standard
16190 のようになるか,
16191 \end_layout
16192
16193 \begin_layout LyX-Code
16194
16195 \backslash
16196 begin{LatexName}[LatexParam] \SpecialChar ldots
16197  
16198 \backslash
16199 end{LatexName}.
16200 \end_layout
16201
16202 \begin_layout Standard
16203 となります.
16204 \end_layout
16205
16206 \end_deeper
16207 \begin_layout Description
16208 \begin_inset Flex Code
16209 status collapsed
16210
16211 \begin_layout Plain Layout
16212 LeftDelim
16213 \end_layout
16214
16215 \end_inset
16216
16217  [
16218 \begin_inset Flex Code
16219 status collapsed
16220
16221 \begin_layout Plain Layout
16222 文字列
16223 \end_layout
16224
16225 \end_inset
16226
16227 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16228 \begin_inset Flex Code
16229 status collapsed
16230
16231 \begin_layout Plain Layout
16232 <br/>
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 LyxType
16246 \end_layout
16247
16248 \end_inset
16249
16250  
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255 charstyle
16256 \end_layout
16257
16258 \end_inset
16259
16260
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 custom
16266 \end_layout
16267
16268 \end_inset
16269
16270
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 element
16276 \end_layout
16277
16278 \end_inset
16279
16280
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 end
16286 \end_layout
16287
16288 \end_inset
16289
16290 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16291 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 LyxType
16297 \end_layout
16298
16299 \end_inset
16300
16301
16302 \begin_inset Flex Code
16303 status collapsed
16304
16305 \begin_layout Plain Layout
16306 charstyle
16307 \end_layout
16308
16309 \end_inset
16310
16311 に設定すると,
16312 \begin_inset Flex Code
16313 status collapsed
16314
16315 \begin_layout Plain Layout
16316 MultiPar
16317 \end_layout
16318
16319 \end_inset
16320
16321 が偽に設定されます
16322 \lang english
16323  and 
16324 \lang japanese
16325
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 ForcePlain
16331 \end_layout
16332
16333 \end_inset
16334
16335
16336 \lang english
16337  to true
16338 \lang japanese
16339 .文字様式差込枠で
16340 \begin_inset Flex Code
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 MultiPar
16345 \end_layout
16346
16347 \end_inset
16348
16349 を真にしたい時には
16350 \lang english
16351 , or 
16352 \lang japanese
16353
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358 ForcePlain
16359 \end_layout
16360
16361 \end_inset
16362
16363
16364 \lang english
16365  to false
16366 \lang japanese
16367
16368 \begin_inset Flex Code
16369 status collapsed
16370
16371 \begin_layout Plain Layout
16372 LyxType
16373 \end_layout
16374
16375 \end_inset
16376
16377 を設定した
16378 \emph on
16379 後に
16380 \emph default
16381 設定すれば,真に設定することができます.
16382 \end_layout
16383
16384 \begin_layout Description
16385 \begin_inset Flex Code
16386 status collapsed
16387
16388 \begin_layout Plain Layout
16389 MultiPar
16390 \end_layout
16391
16392 \end_inset
16393
16394  [
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399
16400 \emph on
16401 0
16402 \end_layout
16403
16404 \end_inset
16405
16406 ,
16407 \begin_inset space \thinspace{}
16408 \end_inset
16409
16410
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 1
16416 \end_layout
16417
16418 \end_inset
16419
16420 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 CustomPars
16426 \end_layout
16427
16428 \end_inset
16429
16430 を同じ値に設定し,
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435 ForcePlain
16436 \end_layout
16437
16438 \end_inset
16439
16440 を逆の値に設定します.これらは,
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445 MultiPar
16446 \end_layout
16447
16448 \end_inset
16449
16450
16451 \emph on
16452 後に
16453 \emph default
16454 指定されれば,他の値に指定し直すことができます.既定値は真です.
16455 \end_layout
16456
16457 \begin_layout Description
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462 NeedProtect
16463 \end_layout
16464
16465 \end_inset
16466
16467  [
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472
16473 \emph on
16474 0
16475 \end_layout
16476
16477 \end_inset
16478
16479 ,
16480 \begin_inset space \thinspace{}
16481 \end_inset
16482
16483
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488 1
16489 \end_layout
16490
16491 \end_inset
16492
16493 ] 本レイアウト中で脆弱なコマンドを
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498
16499 \backslash
16500 protect
16501 \end_layout
16502
16503 \end_inset
16504
16505 するか否か(註:当該コマンド自身をprotectするかどうかでは
16506 \emph on
16507 ありません
16508 \emph default
16509 ).既定値は偽です.
16510 \end_layout
16511
16512 \begin_layout Description
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 NoInsetLayout
16518 \end_layout
16519
16520 \end_inset
16521
16522  [
16523 \begin_inset Flex Code
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527 <レイアウト>
16528 \end_layout
16529
16530 \end_inset
16531
16532 ] 既存の
16533 \begin_inset Flex Code
16534 status collapsed
16535
16536 \begin_layout Plain Layout
16537 InsetLayout
16538 \end_layout
16539
16540 \end_inset
16541
16542 を削除します.
16543 \end_layout
16544
16545 \begin_layout Description
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550 ObsoletedBy
16551 \end_layout
16552
16553 \end_inset
16554
16555  [
16556 \begin_inset Flex Code
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560 <レイアウト>
16561 \end_layout
16562
16563 \end_inset
16564
16565 ] この古い
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 InsetLayout
16571 \end_layout
16572
16573 \end_inset
16574
16575 を引き継いだ
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580 InsetLayout
16581 \end_layout
16582
16583 \end_inset
16584
16585 の名称.これは,
16586 \begin_inset Flex Code
16587 status collapsed
16588
16589 \begin_layout Plain Layout
16590 InsetLayout
16591 \end_layout
16592
16593 \end_inset
16594
16595 の改名を,後方互換性を維持しながら行うために用いられます.
16596 \end_layout
16597
16598 \begin_layout Description
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603 ParbreakIsNewline
16604 \end_layout
16605
16606 \end_inset
16607
16608  [
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613
16614 \emph on
16615 0
16616 \end_layout
16617
16618 \end_inset
16619
16620 ,
16621 \begin_inset space \thinspace{}
16622 \end_inset
16623
16624
16625 \begin_inset Flex Code
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629 1
16630 \end_layout
16631
16632 \end_inset
16633
16634 ] 段落様式と同様.
16635 \begin_inset CommandInset ref
16636 LatexCommand ref
16637 reference "subsec:段落様式"
16638
16639 \end_inset
16640
16641 参照.
16642 \end_layout
16643
16644 \begin_layout Description
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649 PassThru
16650 \end_layout
16651
16652 \end_inset
16653
16654  [
16655 \emph on
16656
16657 \begin_inset Flex Code
16658 status collapsed
16659
16660 \begin_layout Plain Layout
16661 0
16662 \end_layout
16663
16664 \end_inset
16665
16666
16667 \emph default
16668 ,
16669 \begin_inset space \thinspace{}
16670 \end_inset
16671
16672
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 1
16678 \end_layout
16679
16680 \end_inset
16681
16682 ] 段落様式と同様.
16683 \begin_inset CommandInset ref
16684 LatexCommand ref
16685 reference "subsec:段落様式"
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 Preamble
16698 \end_layout
16699
16700 \end_inset
16701
16702  段落様式と同様.
16703 \begin_inset CommandInset ref
16704 LatexCommand ref
16705 reference "subsec:段落様式"
16706
16707 \end_inset
16708
16709 参照.
16710 \end_layout
16711
16712 \begin_layout Description
16713 \begin_inset Flex Code
16714 status collapsed
16715
16716 \begin_layout Plain Layout
16717 RefPrefix
16718 \end_layout
16719
16720 \end_inset
16721
16722  [
16723 \begin_inset Flex Code
16724 status collapsed
16725
16726 \begin_layout Plain Layout
16727 文字列
16728 \end_layout
16729
16730 \end_inset
16731
16732 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16733 \end_layout
16734
16735 \begin_layout Description
16736 \begin_inset Flex Code
16737 status collapsed
16738
16739 \begin_layout Plain Layout
16740 Requires
16741 \end_layout
16742
16743 \end_inset
16744
16745  [
16746 \begin_inset Flex Code
16747 status collapsed
16748
16749 \begin_layout Plain Layout
16750 文字列
16751 \end_layout
16752
16753 \end_inset
16754
16755 ] 段落様式と同様.
16756 \begin_inset CommandInset ref
16757 LatexCommand ref
16758 reference "subsec:段落様式"
16759
16760 \end_inset
16761
16762 参照.
16763 \end_layout
16764
16765 \begin_layout Description
16766 \begin_inset Flex Code
16767 status collapsed
16768
16769 \begin_layout Plain Layout
16770 ResetArgs
16771 \end_layout
16772
16773 \end_inset
16774
16775  [
16776 \begin_inset Flex Code
16777 status collapsed
16778
16779 \begin_layout Plain Layout
16780
16781 \emph on
16782 0
16783 \end_layout
16784
16785 \end_inset
16786
16787 ,
16788 \begin_inset space \thinspace{}
16789 \end_inset
16790
16791
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 1
16797 \end_layout
16798
16799 \end_inset
16800
16801 ] (
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 Argument
16807 \end_layout
16808
16809 \end_inset
16810
16811 タグで定義された)この様式の\SpecialChar LaTeX
16812 引数をリセットします.これは,様式を
16813 \begin_inset Flex Code
16814 status collapsed
16815
16816 \begin_layout Plain Layout
16817 CopyStyle
16818 \end_layout
16819
16820 \end_inset
16821
16822 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16823 \end_layout
16824
16825 \begin_layout Description
16826 \begin_inset Flex Code
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 ResetsFont
16831 \end_layout
16832
16833 \end_inset
16834
16835  [
16836 \begin_inset Flex Code
16837 status collapsed
16838
16839 \begin_layout Plain Layout
16840 0
16841 \end_layout
16842
16843 \end_inset
16844
16845 ,
16846 \begin_inset space \thinspace{}
16847 \end_inset
16848
16849
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854
16855 \emph on
16856 1
16857 \end_layout
16858
16859 \end_inset
16860
16861 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16862 \begin_inset Note Note
16863 status open
16864
16865 \begin_layout Plain Layout
16866 This is outdated: The default changed from 1 to 0
16867 \end_layout
16868
16869 \end_inset
16870
16871
16872 \end_layout
16873
16874 \begin_layout Description
16875 \begin_inset Flex Code
16876 status collapsed
16877
16878 \begin_layout Plain Layout
16879 RightDelim
16880 \end_layout
16881
16882 \end_inset
16883
16884  [
16885 \begin_inset Flex Code
16886 status collapsed
16887
16888 \begin_layout Plain Layout
16889 文字列
16890 \end_layout
16891
16892 \end_inset
16893
16894 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 <br/>
16900 \end_layout
16901
16902 \end_inset
16903
16904 で指示できます.
16905 \end_layout
16906
16907 \begin_layout Description
16908 \begin_inset Flex Code
16909 status collapsed
16910
16911 \begin_layout Plain Layout
16912 Spellcheck
16913 \end_layout
16914
16915 \end_inset
16916
16917  [
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922 0
16923 \end_layout
16924
16925 \end_inset
16926
16927 ,
16928 \begin_inset space \thinspace{}
16929 \end_inset
16930
16931
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936
16937 \emph on
16938 1
16939 \end_layout
16940
16941 \end_inset
16942
16943 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
16944 \end_layout
16945
16946 \begin_layout Subsection
16947 カウンタ
16948 \begin_inset CommandInset label
16949 LatexCommand label
16950 name "subsec:カウンタ"
16951
16952 \end_inset
16953
16954
16955 \end_layout
16956
16957 \begin_layout Standard
16958 テキストクラスには,カウンタ(
16959 \begin_inset Flex MenuItem
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 chapter
16964 \end_layout
16965
16966 \end_inset
16967
16968
16969 \begin_inset Flex MenuItem
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973 figure
16974 \end_layout
16975
16976 \end_inset
16977
16978 ・\SpecialChar ldots
16979 )を定義することが必要です.標準的なカウンタは
16980 \begin_inset Flex Code
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 stdcounters.inc
16985 \end_layout
16986
16987 \end_inset
16988
16989 ファイルに含まれているので,作業中のレイアウトファイルに
16990 \end_layout
16991
16992 \begin_layout LyX-Code
16993 Input stdcounters.inc
16994 \end_layout
16995
16996 \begin_layout Standard
16997 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
16998 \end_layout
16999
17000 \begin_layout LyX-Code
17001 Counter カウンタ名
17002 \end_layout
17003
17004 \begin_layout Standard
17005 で始まらなくてはなりません.ここで「
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010 カウンタ名
17011 \end_layout
17012
17013 \end_inset
17014
17015 」は,実際のカウンタ名で置き換えます.また,宣言は「
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020 End
17021 \end_layout
17022
17023 \end_inset
17024
17025 」で終わらなくてはなりません.
17026 \end_layout
17027
17028 \begin_layout Standard
17029 以下のパラメータを使用することができます.
17030 \end_layout
17031
17032 \begin_layout Description
17033 \begin_inset Flex Code
17034 status collapsed
17035
17036 \begin_layout Plain Layout
17037 InitialValue
17038 \end_layout
17039
17040 \end_inset
17041
17042  [
17043 \begin_inset Flex Code
17044 status collapsed
17045
17046 \begin_layout Plain Layout
17047 整数=1
17048 \end_layout
17049
17050 \end_inset
17051
17052 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17053 \end_layout
17054
17055 \begin_layout Description
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 LabelString [文字列=""]
17061 \end_layout
17062
17063 \end_inset
17064
17065  定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17066 \begin_inset Flex Code
17067 status collapsed
17068
17069 \begin_layout Plain Layout
17070 LabelStringAppendix
17071 \end_layout
17072
17073 \end_inset
17074
17075 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17076 \end_layout
17077
17078 \begin_deeper
17079 \begin_layout Itemize
17080 \begin_inset Flex Code
17081 status collapsed
17082
17083 \begin_layout Plain Layout
17084
17085 \backslash
17086 thecounter
17087 \end_layout
17088
17089 \end_inset
17090
17091 は,カウンタ
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096 counter
17097 \end_layout
17098
17099 \end_inset
17100
17101
17102 \begin_inset Flex Code
17103 status collapsed
17104
17105 \begin_layout Plain Layout
17106 LabelString
17107 \end_layout
17108
17109 \end_inset
17110
17111 (または
17112 \begin_inset Newline linebreak
17113 \end_inset
17114
17115
17116 \begin_inset Flex Code
17117 status collapsed
17118
17119 \begin_layout Plain Layout
17120 LabelStringAppendix
17121 \end_layout
17122
17123 \end_inset
17124
17125 )を展開したもので置き換えられます. 
17126 \end_layout
17127
17128 \begin_layout Itemize
17129 カウンタ値は,\SpecialChar LaTeX
17130 型マクロ
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135
17136 \backslash
17137
17138 \emph on
17139 numbertype
17140 \emph default
17141 {
17142 \emph on
17143 カウンタ
17144 \emph default
17145 }
17146 \end_layout
17147
17148 \end_inset
17149
17150 を用いて表現することができます.ここで
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155
17156 \emph on
17157 numbertype
17158 \end_layout
17159
17160 \end_inset
17161
17162 は以下のいずれかです.
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167 arabic
17168 \end_layout
17169
17170 \end_inset
17171
17172 :1, 2, 3,\SpecialChar ldots
17173
17174 \begin_inset Flex Code
17175 status collapsed
17176
17177 \begin_layout Plain Layout
17178 alph
17179 \end_layout
17180
17181 \end_inset
17182
17183 :a, b, c, \SpecialChar ldots
17184 (小文字);
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 Alph
17190 \end_layout
17191
17192 \end_inset
17193
17194 :A, B, C, \SpecialChar ldots
17195 (大文字);
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 roman
17201 \end_layout
17202
17203 \end_inset
17204
17205 :i, ii, iii, \SpecialChar ldots
17206 (小文字ローマ数字);
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 Roman
17212 \end_layout
17213
17214 \end_inset
17215
17216 :I, II, III\SpecialChar ldots
17217 (大文字ローマ数字).
17218 \end_layout
17219
17220 \end_deeper
17221 \begin_layout Standard
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226 LabelString
17227 \end_layout
17228
17229 \end_inset
17230
17231 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17232 \begin_inset Flex Code
17233 status collapsed
17234
17235 \begin_layout Plain Layout
17236 master
17237 \end_layout
17238
17239 \end_inset
17240
17241
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246 Within
17247 \end_layout
17248
17249 \end_inset
17250
17251 で定義)があるときには,文字列
17252 \begin_inset Newline linebreak
17253 \end_inset
17254
17255
17256 \begin_inset Flex Code
17257 status collapsed
17258
17259 \begin_layout Plain Layout
17260
17261 \backslash
17262 themaster.
17263 \backslash
17264 arabic{カウンタ}
17265 \end_layout
17266
17267 \end_inset
17268
17269 が使用されます.それ以外の場合は,
17270 \begin_inset Flex Code
17271 status collapsed
17272
17273 \begin_layout Plain Layout
17274
17275 \backslash
17276 arabic{カウンタ}
17277 \end_layout
17278
17279 \end_inset
17280
17281 が使用されます.
17282 \end_layout
17283
17284 \begin_layout Description
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 LabelStringAppendix
17290 \end_layout
17291
17292 \end_inset
17293
17294  [
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 文字列
17300 \end_layout
17301
17302 \end_inset
17303
17304 =""] 
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 LabelString
17310 \end_layout
17311
17312 \end_inset
17313
17314 と同様ですが,付録で使用するためのものです.
17315 \end_layout
17316
17317 \begin_layout Description
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 PrettyFormat
17323 \end_layout
17324
17325 \end_inset
17326
17327  [
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332 文字列
17333 \end_layout
17334
17335 \end_inset
17336
17337 =
17338 \begin_inset Quotes erd
17339 \end_inset
17340
17341
17342 \begin_inset Quotes erd
17343 \end_inset
17344
17345 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17346 \begin_inset space ~
17347 \end_inset
17348
17349 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17350 す.
17351 \end_layout
17352
17353 \begin_layout Description
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358 Within
17359 \end_layout
17360
17361 \end_inset
17362
17363  [
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368 文字列
17369 \end_layout
17370
17371 \end_inset
17372
17373 =
17374 \begin_inset Quotes erd
17375 \end_inset
17376
17377
17378 \begin_inset Quotes erd
17379 \end_inset
17380
17381 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17382 \begin_inset Flex Code
17383 status collapsed
17384
17385 \begin_layout Plain Layout
17386 subsection
17387 \end_layout
17388
17389 \end_inset
17390
17391
17392 \begin_inset Flex Code
17393 status collapsed
17394
17395 \begin_layout Plain Layout
17396 section
17397 \end_layout
17398
17399 \end_inset
17400
17401 毎に番号がリセットされます.
17402 \end_layout
17403
17404 \begin_layout Subsection
17405 フォント指定
17406 \begin_inset CommandInset label
17407 LatexCommand label
17408 name "subsec:フォント指定"
17409
17410 \end_inset
17411
17412
17413 \end_layout
17414
17415 \begin_layout Standard
17416 フォント指定は,以下のような形を取ります.
17417 \end_layout
17418
17419 \begin_layout LyX-Code
17420 Font 
17421 \family roman
17422 \emph on
17423 または
17424 \family default
17425 \emph default
17426  LabelFont 
17427 \family roman
17428 \emph on
17429 または
17430 \family default
17431 \emph default
17432  DefaultFont
17433 \end_layout
17434
17435 \begin_layout LyX-Code
17436  ...
17437 \end_layout
17438
17439 \begin_layout LyX-Code
17440 EndFont
17441 \end_layout
17442
17443 \begin_layout Standard
17444 以下のコマンドを使用することができます.
17445 \end_layout
17446
17447 \begin_layout Description
17448 \begin_inset Flex Code
17449 status collapsed
17450
17451 \begin_layout Plain Layout
17452 Color
17453 \end_layout
17454
17455 \end_inset
17456
17457  [
17458 \begin_inset Flex Code
17459 status collapsed
17460
17461 \begin_layout Plain Layout
17462
17463 \emph on
17464 none
17465 \end_layout
17466
17467 \end_inset
17468
17469
17470 \begin_inset Flex Code
17471 status collapsed
17472
17473 \begin_layout Plain Layout
17474 black
17475 \end_layout
17476
17477 \end_inset
17478
17479
17480 \begin_inset Flex Code
17481 status collapsed
17482
17483 \begin_layout Plain Layout
17484 white
17485 \end_layout
17486
17487 \end_inset
17488
17489
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494 red
17495 \end_layout
17496
17497 \end_inset
17498
17499
17500 \begin_inset Flex Code
17501 status collapsed
17502
17503 \begin_layout Plain Layout
17504 green
17505 \end_layout
17506
17507 \end_inset
17508
17509
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 blue
17515 \end_layout
17516
17517 \end_inset
17518
17519
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524 cyan
17525 \end_layout
17526
17527 \end_inset
17528
17529
17530 \begin_inset Flex Code
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534 magenta
17535 \end_layout
17536
17537 \end_inset
17538
17539
17540 \begin_inset Flex Code
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 yellow
17545 \end_layout
17546
17547 \end_inset
17548
17549
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 brown
17555 \end_layout
17556
17557 \end_inset
17558
17559
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 darkgray
17565 \end_layout
17566
17567 \end_inset
17568
17569
17570 \begin_inset Flex Code
17571 status collapsed
17572
17573 \begin_layout Plain Layout
17574 gray
17575 \end_layout
17576
17577 \end_inset
17578
17579
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 lightgray
17585 \end_layout
17586
17587 \end_inset
17588
17589
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 lime
17595 \end_layout
17596
17597 \end_inset
17598
17599
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 orange
17605 \end_layout
17606
17607 \end_inset
17608
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 olive
17615 \end_layout
17616
17617 \end_inset
17618
17619
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 pink
17625 \end_layout
17626
17627 \end_inset
17628
17629
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 purple
17635 \end_layout
17636
17637 \end_inset
17638
17639
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 teal
17645 \end_layout
17646
17647 \end_inset
17648
17649
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 violet
17655 \end_layout
17656
17657 \end_inset
17658
17659 ]
17660 \end_layout
17661
17662 \begin_layout Description
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 Family
17668 \end_layout
17669
17670 \end_inset
17671
17672  [
17673 \emph on
17674
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 Roman
17680 \end_layout
17681
17682 \end_inset
17683
17684
17685 \emph default
17686
17687 \begin_inset Flex Code
17688 status collapsed
17689
17690 \begin_layout Plain Layout
17691 Sans
17692 \end_layout
17693
17694 \end_inset
17695
17696
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701 Typewriter
17702 \end_layout
17703
17704 \end_inset
17705
17706
17707 \end_layout
17708
17709 \begin_layout Description
17710 \begin_inset Flex Code
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 Misc
17715 \end_layout
17716
17717 \end_inset
17718
17719  [
17720 \begin_inset Flex Code
17721 status collapsed
17722
17723 \begin_layout Plain Layout
17724 文字列
17725 \end_layout
17726
17727 \end_inset
17728
17729 ] 有効な引数は,
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734 emph
17735 \end_layout
17736
17737 \end_inset
17738
17739
17740 \begin_inset Flex Code
17741 status collapsed
17742
17743 \begin_layout Plain Layout
17744 noun
17745 \end_layout
17746
17747 \end_inset
17748
17749
17750 \begin_inset Flex Code
17751 status collapsed
17752
17753 \begin_layout Plain Layout
17754 strikeout
17755 \end_layout
17756
17757 \end_inset
17758
17759
17760 \begin_inset Flex Code
17761 status collapsed
17762
17763 \begin_layout Plain Layout
17764 underbar
17765 \end_layout
17766
17767 \end_inset
17768
17769
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 uuline
17775 \end_layout
17776
17777 \end_inset
17778
17779
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 uwave
17785 \end_layout
17786
17787 \end_inset
17788
17789
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 no_emph
17795 \end_layout
17796
17797 \end_inset
17798
17799
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 no_noun
17805 \end_layout
17806
17807 \end_inset
17808
17809
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 no_strikeout
17815 \end_layout
17816
17817 \end_inset
17818
17819
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824 no_bar
17825 \end_layout
17826
17827 \end_inset
17828
17829
17830 \begin_inset Flex Code
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 no_uuline
17835 \end_layout
17836
17837 \end_inset
17838
17839
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 no_uwave
17845 \end_layout
17846
17847 \end_inset
17848
17849 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17850 \begin_inset Newline newline
17851 \end_inset
17852
17853 たとえば,
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 emph
17859 \end_layout
17860
17861 \end_inset
17862
17863 は強調を有効にし,
17864 \begin_inset Flex Code
17865 status collapsed
17866
17867 \begin_layout Plain Layout
17868 no_emph
17869 \end_layout
17870
17871 \end_inset
17872
17873 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17874
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 no_emph
17880 \end_layout
17881
17882 \end_inset
17883
17884 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17885 \end_layout
17886
17887 \begin_layout Description
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 Series
17893 \end_layout
17894
17895 \end_inset
17896
17897  [
17898 \emph on
17899
17900 \begin_inset Flex Code
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904 Medium
17905 \end_layout
17906
17907 \end_inset
17908
17909
17910 \emph default
17911
17912 \begin_inset Flex Code
17913 status collapsed
17914
17915 \begin_layout Plain Layout
17916 Bold
17917 \end_layout
17918
17919 \end_inset
17920
17921
17922 \end_layout
17923
17924 \begin_layout Description
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 Shape
17930 \end_layout
17931
17932 \end_inset
17933
17934  [
17935 \emph on
17936
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 Up
17942 \end_layout
17943
17944 \end_inset
17945
17946
17947 \emph default
17948
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953 Italic
17954 \end_layout
17955
17956 \end_inset
17957
17958
17959 \begin_inset Flex Code
17960 status collapsed
17961
17962 \begin_layout Plain Layout
17963 SmallCaps
17964 \end_layout
17965
17966 \end_inset
17967
17968
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 Slanted
17974 \end_layout
17975
17976 \end_inset
17977
17978
17979 \end_layout
17980
17981 \begin_layout Description
17982 \begin_inset Flex Code
17983 status collapsed
17984
17985 \begin_layout Plain Layout
17986 Size
17987 \end_layout
17988
17989 \end_inset
17990
17991  [
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 tiny
17997 \end_layout
17998
17999 \end_inset
18000
18001
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 small
18007 \end_layout
18008
18009 \end_inset
18010
18011
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016
18017 \emph on
18018 normal
18019 \end_layout
18020
18021 \end_inset
18022
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 large
18029 \end_layout
18030
18031 \end_inset
18032
18033
18034 \begin_inset Flex Code
18035 status collapsed
18036
18037 \begin_layout Plain Layout
18038 larger
18039 \end_layout
18040
18041 \end_inset
18042
18043
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048 largest
18049 \end_layout
18050
18051 \end_inset
18052
18053
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 huge
18059 \end_layout
18060
18061 \end_inset
18062
18063
18064 \begin_inset Flex Code
18065 status collapsed
18066
18067 \begin_layout Plain Layout
18068 giant
18069 \end_layout
18070
18071 \end_inset
18072
18073 ]
18074 \end_layout
18075
18076 \begin_layout Subsection
18077 \begin_inset CommandInset label
18078 LatexCommand label
18079 name "subsec:引用書式指定"
18080
18081 \end_inset
18082
18083 引用書式指定
18084 \end_layout
18085
18086 \begin_layout Standard
18087 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18088 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18089 \begin_inset Flex Code
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 CiteFormat
18094 \end_layout
18095
18096 \end_inset
18097
18098 ブロックが使用されています.このブロックは,以下のような形をしています.
18099 \end_layout
18100
18101 \begin_layout LyX-Code
18102 CiteFormat
18103 \end_layout
18104
18105 \begin_layout LyX-Code
18106  article ...
18107 \end_layout
18108
18109 \begin_layout LyX-Code
18110  book ...
18111 \end_layout
18112
18113 \begin_layout LyX-Code
18114 End
18115 \end_layout
18116
18117 \begin_layout Standard
18118 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18119 ファイル中に存在し
18120 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18121 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18122 は,いくつかの書式を
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 stdciteformats.inc
18128 \end_layout
18129
18130 \end_inset
18131
18132 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18133 文書クラスにインクルードされています.
18134 \end_layout
18135
18136 \begin_layout Standard
18137 この定義は,Bib\SpecialChar TeX
18138 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 %author%
18144 \end_layout
18145
18146 \end_inset
18147
18148 のように
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 %
18154 \end_layout
18155
18156 \end_inset
18157
18158 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18159 \end_layout
18160
18161 \begin_layout LyX-Code
18162 misc %author%, 
18163 \begin_inset Quotes eld
18164 \end_inset
18165
18166 %title%
18167 \begin_inset Quotes erd
18168 \end_inset
18169
18170
18171 \end_layout
18172
18173 \begin_layout Standard
18174 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18175 \end_layout
18176
18177 \begin_layout Standard
18178 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18179 \begin_inset Flex Code
18180 status collapsed
18181
18182 \begin_layout Plain Layout
18183 {%volume%[[vol.
18184 \begin_inset space ~
18185 \end_inset
18186
18187 %volume%]]}
18188 \end_layout
18189
18190 \end_inset
18191
18192 のように,条件付きの構成を使用することができます.これは,
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 volume
18198 \end_layout
18199
18200 \end_inset
18201
18202 が存在するならば,「vol.
18203 \begin_inset space ~
18204 \end_inset
18205
18206 」とvolumeキーを出力するという意味です.また,
18207 \begin_inset Newline newline
18208 \end_inset
18209
18210
18211 \begin_inset Flex Code
18212 status collapsed
18213
18214 \begin_layout Plain Layout
18215 {%author%[[%author%]][[%editor%, ed.]]}
18216 \end_layout
18217
18218 \end_inset
18219
18220
18221 \begin_inset Newline newline
18222 \end_inset
18223
18224 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18225 \begin_inset Flex Code
18226 status collapsed
18227
18228 \begin_layout Plain Layout
18229 author
18230 \end_layout
18231
18232 \end_inset
18233
18234 キーが存在するならば出力され,そうでなければeditorキーと「,
18235 \begin_inset space ~
18236 \end_inset
18237
18238 ed.」が出力されます.ここでもキーは,
18239 \begin_inset Flex Code
18240 status collapsed
18241
18242 \begin_layout Plain Layout
18243 %
18244 \end_layout
18245
18246 \end_inset
18247
18248 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 [[
18254 \end_layout
18255
18256 \end_inset
18257
18258 」と「
18259 \begin_inset Flex Code
18260 status collapsed
18261
18262 \begin_layout Plain Layout
18263 ]]
18264 \end_layout
18265
18266 \end_inset
18267
18268 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18269 \end_layout
18270
18271 \begin_layout Standard
18272 もう一つ,定義中で使用することのできる文法として,
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 {!<i>!}
18278 \end_layout
18279
18280 \end_inset
18281
18282 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18283 グを出力させたくはありませんから,HTMLタグは「
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 {!
18289 \end_layout
18290
18291 \end_inset
18292
18293 」と「
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 !}
18299 \end_layout
18300
18301 \end_inset
18302
18303 」でくるんでやらなくてはならないのです.
18304 \end_layout
18305
18306 \begin_layout Standard
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 CiteFormat
18312 \end_layout
18313
18314 \end_inset
18315
18316 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18317 \end_layout
18318
18319 \begin_layout LyX-Code
18320 !quotetitle 
18321 \begin_inset Quotes eld
18322 \end_inset
18323
18324 %title%
18325 \begin_inset Quotes erd
18326 \end_inset
18327
18328
18329 \end_layout
18330
18331 \begin_layout Standard
18332 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18333 \begin_inset Flex Code
18334 status collapsed
18335
18336 \begin_layout Plain Layout
18337 %!quotetitle%
18338 \end_layout
18339
18340 \end_inset
18341
18342 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18343 は,
18344 \begin_inset Flex Code
18345 status collapsed
18346
18347 \begin_layout Plain Layout
18348 %!quotetitle%
18349 \end_layout
18350
18351 \end_inset
18352
18353 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18354 \end_layout
18355
18356 \begin_layout LyX-Code
18357 !funfun %funfun%
18358 \end_layout
18359
18360 \begin_layout Standard
18361 のようなことはしないでください.\SpecialChar LyX
18362 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18363 \end_layout
18364
18365 \begin_layout Standard
18366 特殊な定義の二つめは,
18367 \end_layout
18368
18369 \begin_layout LyX-Code
18370 _pptext pp.
18371 \end_layout
18372
18373 \begin_layout Standard
18374 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18375 \begin_inset Flex Code
18376 status collapsed
18377
18378 \begin_layout Plain Layout
18379 %_pptext%
18380 \end_layout
18381
18382 \end_inset
18383
18384 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18385 \begin_inset Flex Code
18386 status collapsed
18387
18388 \begin_layout Plain Layout
18389 stdciteformats.inc
18390 \end_layout
18391
18392 \end_inset
18393
18394 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18395 \end_layout
18396
18397 \begin_layout Standard
18398 以下は,これらの機能を全て使った例です.
18399 \begin_inset VSpace defskip
18400 \end_inset
18401
18402
18403 \end_layout
18404
18405 \begin_layout Standard
18406 \noindent
18407
18408 \family typewriter
18409 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18410 \end_layout
18411
18412 \begin_layout Standard
18413 \begin_inset VSpace defskip
18414 \end_inset
18415
18416 これは,
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 author
18422 \end_layout
18423
18424 \end_inset
18425
18426 キーが定義されているならば,著者とコンマを出力し,
18427 \begin_inset Flex Code
18428 status collapsed
18429
18430 \begin_layout Plain Layout
18431 author
18432 \end_layout
18433
18434 \end_inset
18435
18436 キーが定義されておらず,
18437 \begin_inset Flex Code
18438 status collapsed
18439
18440 \begin_layout Plain Layout
18441 editor
18442 \end_layout
18443
18444 \end_inset
18445
18446 キーが定義されているならば,編集者名の後に
18447 \begin_inset Flex Code
18448 status collapsed
18449
18450 \begin_layout Plain Layout
18451 _edtext
18452 \end_layout
18453
18454 \end_inset
18455
18456 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18457 \begin_inset Flex Code
18458 status collapsed
18459
18460 \begin_layout Plain Layout
18461 stdciteformats.inc
18462 \end_layout
18463
18464 \end_inset
18465
18466 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18467 \end_layout
18468
18469 \begin_layout Section
18470 \begin_inset CommandInset label
18471 LatexCommand label
18472 name "sec:XHTML出力のタグ"
18473
18474 \end_inset
18475
18476 XHTML出力のタグ
18477 \end_layout
18478
18479 \begin_layout Standard
18480 \SpecialChar LaTeX
18481 やDocBookと同様,\SpecialChar LyX
18482 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18483 は適切な既定値を提供し,前述したように,他のレイアウト
18484 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18485 は,章様式の
18486 \begin_inset Flex Code
18487 status collapsed
18488
18489 \begin_layout Plain Layout
18490 Font
18491 \end_layout
18492
18493 \end_inset
18494
18495 宣言で提供されている情報を利用しようと試みます.
18496 \end_layout
18497
18498 \begin_layout Standard
18499 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18500 ,これが必要になる場合もあるので,\SpecialChar LyX
18501 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18502 \end_layout
18503
18504 \begin_layout Standard
18505 様式宣言や差込枠宣言の外で使用することができるタグに,
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 HTMLPreamble
18511 \end_layout
18512
18513 \end_inset
18514
18515
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 AddToHTMLPreamble
18521 \end_layout
18522
18523 \end_inset
18524
18525 の2つがあることに注意してください.これらの詳細については,
18526 \begin_inset CommandInset ref
18527 LatexCommand ref
18528 reference "subsec:汎用テキストクラスパラメータ"
18529
18530 \end_inset
18531
18532 をご覧ください.
18533 \end_layout
18534
18535 \begin_layout Subsection
18536 \begin_inset CommandInset label
18537 LatexCommand label
18538 name "subsec:段落様式-XHTML"
18539
18540 \end_inset
18541
18542 段落様式
18543 \end_layout
18544
18545 \begin_layout Standard
18546 \SpecialChar LyX
18547 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 \SpecialChar LaTeX
18553 Type
18554 \end_layout
18555
18556 \end_inset
18557
18558 タグの内容によって決定されます.
18559 \end_layout
18560
18561 \begin_layout Standard
18562 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18563 \end_layout
18564
18565 \begin_layout LyX-Code
18566 <tag attr=
18567 \begin_inset Quotes erd
18568 \end_inset
18569
18570 value
18571 \begin_inset Quotes erd
18572 \end_inset
18573
18574 >
18575 \end_layout
18576
18577 \begin_layout LyX-Code
18578 <labeltag attr=
18579 \begin_inset Quotes erd
18580 \end_inset
18581
18582 value
18583 \begin_inset Quotes erd
18584 \end_inset
18585
18586 >ラベル</labeltag>
18587 \end_layout
18588
18589 \begin_layout LyX-Code
18590 段落の内容
18591 \end_layout
18592
18593 \begin_layout LyX-Code
18594 </tag>
18595 \end_layout
18596
18597 \begin_layout Standard
18598 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18599 \end_layout
18600
18601 \begin_layout Standard
18602 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18603 \end_layout
18604
18605 \begin_layout LyX-Code
18606 <tag attr=
18607 \begin_inset Quotes erd
18608 \end_inset
18609
18610 value
18611 \begin_inset Quotes erd
18612 \end_inset
18613
18614 >
18615 \end_layout
18616
18617 \begin_layout LyX-Code
18618 <itemtag attr=
18619 \begin_inset Quotes erd
18620 \end_inset
18621
18622 value
18623 \begin_inset Quotes erd
18624 \end_inset
18625
18626 ><labeltag attr=
18627 \begin_inset Quotes erd
18628 \end_inset
18629
18630 value
18631 \begin_inset Quotes erd
18632 \end_inset
18633
18634 >環境ラベル</labeltag>最初の段落.
18635 \end_layout
18636
18637 \begin_layout LyX-Code
18638 </itemtag>
18639 \end_layout
18640
18641 \begin_layout LyX-Code
18642 <itemtag>二つめの段落.</itemtag>
18643 \end_layout
18644
18645 \begin_layout LyX-Code
18646 </tag>
18647 \end_layout
18648
18649 \begin_layout Standard
18650 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18651 \end_layout
18652
18653 \begin_layout Standard
18654 リストに関しては,次のような形になります.
18655 \end_layout
18656
18657 \begin_layout LyX-Code
18658 <tag attr=
18659 \begin_inset Quotes erd
18660 \end_inset
18661
18662 value
18663 \begin_inset Quotes erd
18664 \end_inset
18665
18666 >
18667 \end_layout
18668
18669 \begin_layout LyX-Code
18670 <itemtag attr=
18671 \begin_inset Quotes erd
18672 \end_inset
18673
18674 value
18675 \begin_inset Quotes erd
18676 \end_inset
18677
18678 ><labeltag attr=
18679 \begin_inset Quotes erd
18680 \end_inset
18681
18682 value
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686 >リストのラベル</labeltag>最初の項目.</itemtag>
18687 \end_layout
18688
18689 \begin_layout LyX-Code
18690 <itemtag attr=
18691 \begin_inset Quotes erd
18692 \end_inset
18693
18694 value
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698 ><labeltag attr=
18699 \begin_inset Quotes erd
18700 \end_inset
18701
18702 value
18703 \begin_inset Quotes erd
18704 \end_inset
18705
18706 >リストのラベル</labeltag>二つめの項目.</itemtag>
18707 \end_layout
18708
18709 \begin_layout LyX-Code
18710 </tag>
18711 \end_layout
18712
18713 \begin_layout LyX-Code
18714
18715 \end_layout
18716
18717 \begin_layout LyX-Code
18718 <tag attr=
18719 \begin_inset Quotes erd
18720 \end_inset
18721
18722 value
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726 >
18727 \end_layout
18728
18729 \begin_layout LyX-Code
18730 <labeltag attr=
18731 \begin_inset Quotes erd
18732 \end_inset
18733
18734 value
18735 \begin_inset Quotes erd
18736 \end_inset
18737
18738 >リストのラベル</labeltag><itemtag attr=
18739 \begin_inset Quotes erd
18740 \end_inset
18741
18742 value
18743 \begin_inset Quotes erd
18744 \end_inset
18745
18746 >最初の項目.</itemtag>
18747 \end_layout
18748
18749 \begin_layout LyX-Code
18750 <labeltag attr=
18751 \begin_inset Quotes erd
18752 \end_inset
18753
18754 value
18755 \begin_inset Quotes erd
18756 \end_inset
18757
18758 >リストのラベル</labeltag><itemtag attr=
18759 \begin_inset Quotes erd
18760 \end_inset
18761
18762 value
18763 \begin_inset Quotes erd
18764 \end_inset
18765
18766 >二つめの項目</itemtag>
18767 \end_layout
18768
18769 \begin_layout LyX-Code
18770 </tag>
18771 \end_layout
18772
18773 \begin_layout Standard
18774 ここで
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 labeltag
18780 \end_layout
18781
18782 \end_inset
18783
18784
18785 \begin_inset Flex Code
18786 status collapsed
18787
18788 \begin_layout Plain Layout
18789 itemtag
18790 \end_layout
18791
18792 \end_inset
18793
18794 の順序が違っていることに注意してください.どちらの順序になるかは,
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 HTMLLabelFirst
18800 \end_layout
18801
18802 \end_inset
18803
18804 の設定に依存します.もし
18805 \begin_inset Flex Code
18806 status collapsed
18807
18808 \begin_layout Plain Layout
18809 HTMLLabelFirst
18810 \end_layout
18811
18812 \end_inset
18813
18814 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18815 \end_layout
18816
18817 \begin_layout Standard
18818 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18819 は適切な既定値を生成
18820 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18821 でここにあるものと考えてください.
18822 \end_layout
18823
18824 \begin_layout Description
18825 \begin_inset Flex Code
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829 HTMLAttr
18830 \end_layout
18831
18832 \end_inset
18833
18834  [
18835 \begin_inset Flex Code
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 文字列
18840 \end_layout
18841
18842 \end_inset
18843
18844 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18845 \begin_inset Flex Code
18846 status collapsed
18847
18848 \begin_layout Plain Layout
18849 class=`mydiv'
18850 \end_layout
18851
18852 \end_inset
18853
18854 」のようなものです.既定においては,\SpecialChar LyX
18855 は「
18856 \begin_inset Flex Code
18857 status collapsed
18858
18859 \begin_layout Plain Layout
18860 class=`レイアウト名'
18861 \end_layout
18862
18863 \end_inset
18864
18865 」と出力します.ここで
18866 \begin_inset Flex Code
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 レイアウト名
18871 \end_layout
18872
18873 \end_inset
18874
18875 は,レイアウトの\SpecialChar LyX
18876 名であり,chapterのように小文字で記述します.
18877 \end_layout
18878
18879 \begin_layout Description
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 HTMLForceCSS
18885 \end_layout
18886
18887 \end_inset
18888
18889  [
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894
18895 \emph on
18896 0
18897 \emph default
18898 ,1
18899 \end_layout
18900
18901 \end_inset
18902
18903 ] 
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 HTMLStyle
18909 \end_layout
18910
18911 \end_inset
18912
18913 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
18914 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
18915 \begin_inset Flex Code
18916 status collapsed
18917
18918 \begin_layout Plain Layout
18919 1
18920 \end_layout
18921
18922 \end_inset
18923
18924 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
18925 \begin_inset Flex Code
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929 0
18930 \end_layout
18931
18932 \end_inset
18933
18934 です.
18935 \end_layout
18936
18937 \begin_layout Description
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 HTMLItem
18943 \end_layout
18944
18945 \end_inset
18946
18947  [
18948 \begin_inset Flex Code
18949 status collapsed
18950
18951 \begin_layout Plain Layout
18952 文字列
18953 \end_layout
18954
18955 \end_inset
18956
18957 ] 環境の段落に使用されるタグ.上記各例の
18958 \begin_inset Flex Code
18959 status collapsed
18960
18961 \begin_layout Plain Layout
18962 itemtag
18963 \end_layout
18964
18965 \end_inset
18966
18967 を置き換えます.既定値は
18968 \begin_inset Flex Code
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972 div
18973 \end_layout
18974
18975 \end_inset
18976
18977 です.
18978 \end_layout
18979
18980 \begin_layout Description
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 HTMLItemAttr
18986 \end_layout
18987
18988 \end_inset
18989
18990  [
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 文字列
18996 \end_layout
18997
18998 \end_inset
18999
19000 ] itemタグの属性.既定値は
19001 \begin_inset Flex Code
19002 status collapsed
19003
19004 \begin_layout Plain Layout
19005 class=`レイアウト名_item'
19006 \end_layout
19007
19008 \end_inset
19009
19010 です.ここには,様式情報は含まれては
19011 \emph on
19012 なりません
19013 \emph default
19014 .その目的のためには,
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 HTMLStyle
19020 \end_layout
19021
19022 \end_inset
19023
19024 を使用してください.
19025 \end_layout
19026
19027 \begin_layout Description
19028 \begin_inset Flex Code
19029 status collapsed
19030
19031 \begin_layout Plain Layout
19032 HTMLLabel
19033 \end_layout
19034
19035 \end_inset
19036
19037  [
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 文字列
19043 \end_layout
19044
19045 \end_inset
19046
19047 ] 段落と項目ラベルに使用されるタグ.上記各例の
19048 \begin_inset Flex Code
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 labeltag
19053 \end_layout
19054
19055 \end_inset
19056
19057 を置き換えます.
19058 \begin_inset Flex Code
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 LabelType
19063 \end_layout
19064
19065 \end_inset
19066
19067
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 Top_Environment
19073 \end_layout
19074
19075 \end_inset
19076
19077
19078 \begin_inset Flex Code
19079 status collapsed
19080
19081 \begin_layout Plain Layout
19082 Centered_Top_Environment
19083 \end_layout
19084
19085 \end_inset
19086
19087 の時は,既定値は
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 div
19093 \end_layout
19094
19095 \end_inset
19096
19097 ですが,それ以外の時の既定値は
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102 span
19103 \end_layout
19104
19105 \end_inset
19106
19107 です.
19108 \end_layout
19109
19110 \begin_layout Description
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 HTMLLabelAttr
19116 \end_layout
19117
19118 \end_inset
19119
19120  [
19121 \begin_inset Flex Code
19122 status collapsed
19123
19124 \begin_layout Plain Layout
19125 文字列
19126 \end_layout
19127
19128 \end_inset
19129
19130 ] labelタグの属性.既定値は
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 class=`レイアウト名_label'
19136 \end_layout
19137
19138 \end_inset
19139
19140 です.ここには,様式情報は含まれては
19141 \emph on
19142 なりません
19143 \emph default
19144 .その目的のためには,
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 HTMLStyle
19150 \end_layout
19151
19152 \end_inset
19153
19154 を使用してください.
19155 \end_layout
19156
19157 \begin_layout Description
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 HTMLLabelFirst
19163 \end_layout
19164
19165 \end_inset
19166
19167  [
19168 \begin_inset Flex Code
19169 status collapsed
19170
19171 \begin_layout Plain Layout
19172
19173 \emph on
19174 0
19175 \emph default
19176 ,1
19177 \end_layout
19178
19179 \end_inset
19180
19181 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19182 tion環境の中で,
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 `<dt>\SpecialChar ldots
19188 </dt><dd>\SpecialChar ldots
19189 </dd>
19190 \end_layout
19191
19192 \end_inset
19193
19194 という形を得るために使用されます.既定値は
19195 \begin_inset Flex Code
19196 status collapsed
19197
19198 \begin_layout Plain Layout
19199 0
19200 \end_layout
19201
19202 \end_inset
19203
19204 で,labelタグはitemタグの中に出力されます.
19205 \end_layout
19206
19207 \begin_layout Description
19208 \begin_inset Flex Code
19209 status collapsed
19210
19211 \begin_layout Plain Layout
19212 HTMLPreamble
19213 \end_layout
19214
19215 \end_inset
19216
19217  この様式が使用されたときに,
19218 \begin_inset Flex Code
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 <head>
19223 \end_layout
19224
19225 \end_inset
19226
19227 セクションに出力される情報.これは,たとえば,
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 onclick
19233 \end_layout
19234
19235 \end_inset
19236
19237 ハンドラを定義するために
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 <script>
19243 \end_layout
19244
19245 \end_inset
19246
19247 ブロックをインクルードするのに使用することができます.
19248 \end_layout
19249
19250 \begin_layout Description
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 HTMLStyle
19256 \end_layout
19257
19258 \end_inset
19259
19260   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19261 \begin_inset Flex Code
19262 status collapsed
19263
19264 \begin_layout Plain Layout
19265 <style>
19266 \end_layout
19267
19268 \end_inset
19269
19270 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19271 \begin_inset Flex Code
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275 EndHTMLStyle
19276 \end_layout
19277
19278 \end_inset
19279
19280 で閉じなくてはなりません.
19281 \end_layout
19282
19283 \begin_layout Description
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 HTMLTag
19289 \end_layout
19290
19291 \end_inset
19292
19293  [
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 文字列
19299 \end_layout
19300
19301 \end_inset
19302
19303 ] 主幹ラベルに使用されるタグ.上記各例の
19304 \begin_inset Flex Code
19305 status collapsed
19306
19307 \begin_layout Plain Layout
19308 tag
19309 \end_layout
19310
19311 \end_inset
19312
19313 を置き換えます.既定値は
19314 \begin_inset Flex Code
19315 status collapsed
19316
19317 \begin_layout Plain Layout
19318 div
19319 \end_layout
19320
19321 \end_inset
19322
19323 です.
19324 \end_layout
19325
19326 \begin_layout Description
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 HTMLTitle
19332 \end_layout
19333
19334 \end_inset
19335
19336  [
19337 \begin_inset Flex Code
19338 status collapsed
19339
19340 \begin_layout Plain Layout
19341
19342 \emph on
19343 0
19344 \emph default
19345 ,1
19346 \end_layout
19347
19348 \end_inset
19349
19350 ] この様式が,XHTMLファイルの
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 <title>
19356 \end_layout
19357
19358 \end_inset
19359
19360 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19361 \begin_inset Flex Code
19362 status collapsed
19363
19364 \begin_layout Plain Layout
19365 stdtitle.inc
19366 \end_layout
19367
19368 \end_inset
19369
19370 ファイルでは,
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 title
19376 \end_layout
19377
19378 \end_inset
19379
19380 環境のこの項目を真に設定しています.
19381 \end_layout
19382
19383 \begin_layout Subsection
19384 差込枠レイアウトXHTML
19385 \end_layout
19386
19387 \begin_layout Standard
19388 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19389 \begin_inset Foot
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19394 ん.
19395 \end_layout
19396
19397 \end_inset
19398
19399 .ここでも,\SpecialChar LyX
19400 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19401 \end_layout
19402
19403 \begin_layout Standard
19404 \SpecialChar LyX
19405 が差込枠用に出力するXHTMLは,以下の形を取ります.
19406 \end_layout
19407
19408 \begin_layout LyX-Code
19409 <tag attr=
19410 \begin_inset Quotes erd
19411 \end_inset
19412
19413 value
19414 \begin_inset Quotes erd
19415 \end_inset
19416
19417 >
19418 \end_layout
19419
19420 \begin_layout LyX-Code
19421 <labeltag>ラベル</labeltag>
19422 \end_layout
19423
19424 \begin_layout LyX-Code
19425 <innertag attr=
19426 \begin_inset Quotes erd
19427 \end_inset
19428
19429 value
19430 \begin_inset Quotes erd
19431 \end_inset
19432
19433 >差込枠の内容.</innertag>
19434 \end_layout
19435
19436 \begin_layout LyX-Code
19437 </tag>
19438 \end_layout
19439
19440 \begin_layout Standard
19441 差込枠が多段落を許可している—つまり
19442 \begin_inset Flex Code
19443 status collapsed
19444
19445 \begin_layout Plain Layout
19446 MultiPar
19447 \end_layout
19448
19449 \end_inset
19450
19451 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19452 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 span
19458 \end_layout
19459
19460 \end_inset
19461
19462 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19463 す.
19464 \end_layout
19465
19466 \begin_layout Description
19467 \begin_inset Flex Code
19468 status collapsed
19469
19470 \begin_layout Plain Layout
19471 HTMLAttr
19472 \end_layout
19473
19474 \end_inset
19475
19476  [
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481 文字列
19482 \end_layout
19483
19484 \end_inset
19485
19486 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491 class=`myinset' onclick=`\SpecialChar ldots
19492 '
19493 \end_layout
19494
19495 \end_inset
19496
19497 」のようなものです.既定においては,\SpecialChar LyX
19498 は「
19499 \begin_inset Flex Code
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 class=`差込枠名'
19504 \end_layout
19505
19506 \end_inset
19507
19508 」と出力します.ここで
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 差込枠名
19514 \end_layout
19515
19516 \end_inset
19517
19518 は,差込枠の\SpecialChar LyX
19519 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19520 \end_layout
19521
19522 \begin_layout Description
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 HTMLForceCSS
19528 \end_layout
19529
19530 \end_inset
19531
19532  [
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537
19538 \emph on
19539 0
19540 \emph default
19541 ,1
19542 \end_layout
19543
19544 \end_inset
19545
19546 ] 
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 HTMLStyle
19552 \end_layout
19553
19554 \end_inset
19555
19556 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19557 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 1
19563 \end_layout
19564
19565 \end_inset
19566
19567 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 0
19573 \end_layout
19574
19575 \end_inset
19576
19577 です.
19578 \end_layout
19579
19580 \begin_layout Description
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 HTMLInnerAttr
19586 \end_layout
19587
19588 \end_inset
19589
19590  [
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595 文字列
19596 \end_layout
19597
19598 \end_inset
19599
19600 ] innerタグの属性.既定値は
19601 \begin_inset Flex Code
19602 status collapsed
19603
19604 \begin_layout Plain Layout
19605 class=`差込枠名_inner'
19606 \end_layout
19607
19608 \end_inset
19609
19610 です.
19611 \end_layout
19612
19613 \begin_layout Description
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 HTMLInnerTag
19619 \end_layout
19620
19621 \end_inset
19622
19623  [
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 文字列
19629 \end_layout
19630
19631 \end_inset
19632
19633 ] innerタグです.上記各例の
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 innertag
19639 \end_layout
19640
19641 \end_inset
19642
19643 を置き換えます.既定値はなしです.
19644 \end_layout
19645
19646 \begin_layout Description
19647 \begin_inset Flex Code
19648 status collapsed
19649
19650 \begin_layout Plain Layout
19651 HTMLIsBlock
19652 \end_layout
19653
19654 \end_inset
19655
19656  [
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 0,
19662 \emph on
19663 1
19664 \end_layout
19665
19666 \end_inset
19667
19668 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19669 \end_layout
19670
19671 \begin_layout Description
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 HTMLLabel
19677 \end_layout
19678
19679 \end_inset
19680
19681  [
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 文字列
19687 \end_layout
19688
19689 \end_inset
19690
19691 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696
19697 \backslash
19698 arabic{footnote}
19699 \end_layout
19700
19701 \end_inset
19702
19703 など.これは非必須であり,既定値はありません.
19704 \end_layout
19705
19706 \begin_layout Description
19707 \begin_inset Flex Code
19708 status collapsed
19709
19710 \begin_layout Plain Layout
19711 HTMLPreamble
19712 \end_layout
19713
19714 \end_inset
19715
19716  この様式が使用されたときに,
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721 <head>
19722 \end_layout
19723
19724 \end_inset
19725
19726 セクションに出力される情報.これは,たとえば,
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 onclick
19732 \end_layout
19733
19734 \end_inset
19735
19736 ハンドラを定義するために
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 <script>
19742 \end_layout
19743
19744 \end_inset
19745
19746 ブロックをインクルードするのに使用することができます.
19747 \end_layout
19748
19749 \begin_layout Description
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754 HTMLStyle
19755 \end_layout
19756
19757 \end_inset
19758
19759   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19760 \begin_inset Flex Code
19761 status collapsed
19762
19763 \begin_layout Plain Layout
19764 <style>
19765 \end_layout
19766
19767 \end_inset
19768
19769 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19770 \end_layout
19771
19772 \begin_layout Description
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 HTMLTag
19778 \end_layout
19779
19780 \end_inset
19781
19782  [
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 文字列
19788 \end_layout
19789
19790 \end_inset
19791
19792 ] 主幹ラベルに使用されるタグ.上記各例の
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 tag
19798 \end_layout
19799
19800 \end_inset
19801
19802 を置き換えます.既定値は
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 MultiPar
19808 \end_layout
19809
19810 \end_inset
19811
19812 の設定に依存し,
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 MultiPar
19818 \end_layout
19819
19820 \end_inset
19821
19822 が真ならば
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 div
19828 \end_layout
19829
19830 \end_inset
19831
19832 ,偽ならば
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 span
19838 \end_layout
19839
19840 \end_inset
19841
19842 です.
19843 \end_layout
19844
19845 \begin_layout Subsection
19846 フロートXHTML
19847 \end_layout
19848
19849 \begin_layout Standard
19850 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19851 \end_layout
19852
19853 \begin_layout LyX-Code
19854 <tag attr=
19855 \begin_inset Quotes erd
19856 \end_inset
19857
19858 value
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862 >
19863 \end_layout
19864
19865 \begin_layout LyX-Code
19866 フロートの内容.
19867 \end_layout
19868
19869 \begin_layout LyX-Code
19870 </tag>
19871 \end_layout
19872
19873 \begin_layout Standard
19874 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19875 きます.
19876 \end_layout
19877
19878 \begin_layout Description
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 HTMLAttr
19884 \end_layout
19885
19886 \end_inset
19887
19888  [
19889 \begin_inset Flex Code
19890 status collapsed
19891
19892 \begin_layout Plain Layout
19893 文字列
19894 \end_layout
19895
19896 \end_inset
19897
19898 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 class=`myfloat' onclick=`\SpecialChar ldots
19904 '
19905 \end_layout
19906
19907 \end_inset
19908
19909 」のようなものです.既定においては,\SpecialChar LyX
19910 は「
19911 \begin_inset Flex Code
19912 status collapsed
19913
19914 \begin_layout Plain Layout
19915 class=`float フロート-フロート型'
19916 \end_layout
19917
19918 \end_inset
19919
19920 」と出力します.ここで
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 フロート型
19926 \end_layout
19927
19928 \end_inset
19929
19930 は,フロート宣言で定義された(
19931 \begin_inset CommandInset ref
19932 LatexCommand ref
19933 reference "subsec:フロート"
19934
19935 \end_inset
19936
19937 参照),この型のフロートの\SpecialChar LyX
19938 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
19939 \end_layout
19940
19941 \begin_layout Description
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 HTMLStyle
19947 \end_layout
19948
19949 \end_inset
19950
19951   このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19952 \begin_inset Flex Code
19953 status collapsed
19954
19955 \begin_layout Plain Layout
19956 <style>
19957 \end_layout
19958
19959 \end_inset
19960
19961 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19962 \end_layout
19963
19964 \begin_layout Description
19965 \begin_inset Flex Code
19966 status collapsed
19967
19968 \begin_layout Plain Layout
19969 HTMLTag
19970 \end_layout
19971
19972 \end_inset
19973
19974  [
19975 \begin_inset Flex Code
19976 status collapsed
19977
19978 \begin_layout Plain Layout
19979 文字列
19980 \end_layout
19981
19982 \end_inset
19983
19984 ] このフロートに使用されるタグ.上記各例の
19985 \begin_inset Flex Code
19986 status collapsed
19987
19988 \begin_layout Plain Layout
19989 tag
19990 \end_layout
19991
19992 \end_inset
19993
19994 を置き換えます.既定値は
19995 \begin_inset Flex Code
19996 status collapsed
19997
19998 \begin_layout Plain Layout
19999 div
20000 \end_layout
20001
20002 \end_inset
20003
20004 であり,ほとんどの場合変更する必要はありません.
20005 \end_layout
20006
20007 \begin_layout Subsection
20008 書誌情報の整形
20009 \end_layout
20010
20011 \begin_layout Standard
20012 書誌情報は,
20013 \begin_inset Flex Code
20014 status collapsed
20015
20016 \begin_layout Plain Layout
20017 CiteFormat
20018 \end_layout
20019
20020 \end_inset
20021
20022 ブロックを使用して整形することができます.詳細については,
20023 \begin_inset CommandInset ref
20024 LatexCommand ref
20025 reference "subsec:引用書式指定"
20026
20027 \end_inset
20028
20029 を参照してください.
20030 \end_layout
20031
20032 \begin_layout Subsection
20033 \SpecialChar LyX
20034 が生成したCSS
20035 \end_layout
20036
20037 \begin_layout Standard
20038 \SpecialChar LyX
20039 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20040
20041 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20042 \end_layout
20043
20044 \begin_layout Standard
20045 \SpecialChar LyX
20046 は,現在のところ,
20047 \begin_inset Flex Code
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051 Font
20052 \end_layout
20053
20054 \end_inset
20055
20056 宣言で指定されている
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 Family
20062 \end_layout
20063
20064 \end_inset
20065
20066
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 Series
20072 \end_layout
20073
20074 \end_inset
20075
20076
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 Shape
20082 \end_layout
20083
20084 \end_inset
20085
20086
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 Size
20092 \end_layout
20093
20094 \end_inset
20095
20096 を利用して,フォント情報についてのみCSSを自動生成します(
20097 \begin_inset CommandInset ref
20098 LatexCommand ref
20099 reference "subsec:フォント指定"
20100
20101 \end_inset
20102
20103 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20104 \begin_inset Flex Code
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108 Family Sans
20109 \end_layout
20110
20111 \end_inset
20112
20113 」は「
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118 font-family: sans-serif
20119 \end_layout
20120
20121 \end_inset
20122
20123 」になります.\SpecialChar LyX
20124 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20125 \begin_inset Flex URL
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129
20130 src/FontInfo.cpp
20131 \end_layout
20132
20133 \end_inset
20134
20135
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 getSizeCSS()
20141 \end_layout
20142
20143 \end_inset
20144
20145 関数をご覧ください.
20146 \end_layout
20147
20148 \begin_layout Chapter
20149 外部素材を取り込む
20150 \begin_inset CommandInset label
20151 LatexCommand label
20152 name "chap:外部素材を取り込む"
20153
20154 \end_inset
20155
20156
20157 \end_layout
20158
20159 \begin_layout Standard
20160 \begin_inset Box Shadowbox
20161 position "t"
20162 hor_pos "c"
20163 has_inner_box 1
20164 inner_pos "t"
20165 use_parbox 0
20166 use_makebox 0
20167 width "100col%"
20168 special "none"
20169 height "1in"
20170 height_special "totalheight"
20171 thickness "0.4pt"
20172 separation "3pt"
20173 shadowsize "4pt"
20174 framecolor "black"
20175 backgroundcolor "none"
20176 status open
20177
20178 \begin_layout Plain Layout
20179 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20180 \end_layout
20181
20182 \end_inset
20183
20184
20185 \end_layout
20186
20187 \begin_layout Standard
20188 \SpecialChar LyX
20189 外部のソースから素材を使用する方法は,取扱説明書『
20190 \emph on
20191 埋込オブジェクト篇
20192 \emph default
20193 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20194 \end_layout
20195
20196 \begin_layout Section
20197 どのように機能するのか
20198 \end_layout
20199
20200 \begin_layout Standard
20201 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20202 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20203 は,Xfigの図や,様々
20204 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20205 \begin_inset Flex MenuItem
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 挿入\SpecialChar menuseparator
20210 ファイル\SpecialChar menuseparator
20211 外部素材
20212 \end_layout
20213
20214 \end_inset
20215
20216 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20217 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20218 の後の版に取り込むことができるようにしてくださることを希望します.
20219 \end_layout
20220
20221 \begin_layout Standard
20222 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20223 いることです.たとえば,
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 Xfig
20229 \end_layout
20230
20231 \end_inset
20232
20233 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 .fig
20239 \end_layout
20240
20241 \end_inset
20242
20243 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20244 \begin_inset Flex Code
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248 fig
20249 \end_layout
20250
20251 \end_inset
20252
20253 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20254 ファイルにそのままインクルードできるように,
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 transfig
20260 \end_layout
20261
20262 \end_inset
20263
20264 を呼び出してPostScriptファイルを生成します.この場合には,
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 .fig
20270 \end_layout
20271
20272 \end_inset
20273
20274 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20275 \end_layout
20276
20277 \begin_layout Standard
20278 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20279 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20280 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20281 の外部素材マネジメントは
20282 ,\SpecialChar LyX
20283 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20284 \end_layout
20285
20286 \begin_layout Standard
20287 \SpecialChar LyX
20288 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20289 の場合には,\SpecialChar LyX
20290 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20291 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20292 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20293 できるようになるのです.
20294 \end_layout
20295
20296 \begin_layout Section
20297 外用ひな型設定ファイル
20298 \end_layout
20299
20300 \begin_layout Standard
20301 \SpecialChar LyX
20302 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20303 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20304 \begin_inset CommandInset ref
20305 LatexCommand ref
20306 reference "sec:セキュリティに関する論点"
20307
20308 \end_inset
20309
20310 のセキュリティに関する議論を読んでおいてください.
20311 \end_layout
20312
20313 \begin_layout Standard
20314 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20315 \end_layout
20316
20317 \begin_layout Standard
20318 外用ひな型は,
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323 LyXDir/lib/external_templates
20324 \end_layout
20325
20326 \end_inset
20327
20328 ファイルで定義されています.自分用の版を
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 UserDir/external_templates
20334 \end_layout
20335
20336 \end_inset
20337
20338 に置くこともできます.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 典型的なひな型は以下のようになります.
20343 \end_layout
20344
20345 \begin_layout LyX-Code
20346 Template XFig
20347 \end_layout
20348
20349 \begin_layout LyX-Code
20350 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20351 \end_layout
20352
20353 \begin_layout LyX-Code
20354 HelpText
20355 \end_layout
20356
20357 \begin_layout LyX-Code
20358 An XFig figure.
20359 \end_layout
20360
20361 \begin_layout LyX-Code
20362 HelpTextEnd
20363 \end_layout
20364
20365 \begin_layout LyX-Code
20366 InputFormat fig
20367 \end_layout
20368
20369 \begin_layout LyX-Code
20370 FileFilter "*.fig"
20371 \end_layout
20372
20373 \begin_layout LyX-Code
20374 AutomaticProduction true
20375 \end_layout
20376
20377 \begin_layout LyX-Code
20378 Transform Rotate
20379 \end_layout
20380
20381 \begin_layout LyX-Code
20382 Transform Resize
20383 \end_layout
20384
20385 \begin_layout LyX-Code
20386 Format LaTeX
20387 \end_layout
20388
20389 \begin_layout LyX-Code
20390 TransformCommand Rotate RotationLatexCommand
20391 \end_layout
20392
20393 \begin_layout LyX-Code
20394 TransformCommand Resize ResizeLatexCommand
20395 \end_layout
20396
20397 \begin_layout LyX-Code
20398 Product "$$RotateFront$$ResizeFront
20399 \end_layout
20400
20401 \begin_layout LyX-Code
20402          
20403 \backslash
20404
20405 \backslash
20406 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20407 \end_layout
20408
20409 \begin_layout LyX-Code
20410          $$ResizeBack$$RotateBack"
20411 \end_layout
20412
20413 \begin_layout LyX-Code
20414 UpdateFormat pstex
20415 \end_layout
20416
20417 \begin_layout LyX-Code
20418 UpdateResult "$$AbsPath$$Basename.pstex_t"
20419 \end_layout
20420
20421 \begin_layout LyX-Code
20422 Requirement "graphicx"
20423 \end_layout
20424
20425 \begin_layout LyX-Code
20426 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20427 \end_layout
20428
20429 \begin_layout LyX-Code
20430 ReferencedFile latex "$$AbsPath$$Basename.eps"
20431 \end_layout
20432
20433 \begin_layout LyX-Code
20434 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20435 \end_layout
20436
20437 \begin_layout LyX-Code
20438 FormatEnd
20439 \end_layout
20440
20441 \begin_layout LyX-Code
20442 Format PDFLaTeX
20443 \end_layout
20444
20445 \begin_layout LyX-Code
20446 TransformCommand Rotate RotationLatexCommand
20447 \end_layout
20448
20449 \begin_layout LyX-Code
20450 TransformCommand Resize ResizeLatexCommand
20451 \end_layout
20452
20453 \begin_layout LyX-Code
20454 Product "$$RotateFront$$ResizeFront
20455 \end_layout
20456
20457 \begin_layout LyX-Code
20458          
20459 \backslash
20460
20461 \backslash
20462 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20463 \end_layout
20464
20465 \begin_layout LyX-Code
20466          $$ResizeBack$$RotateBack"
20467 \end_layout
20468
20469 \begin_layout LyX-Code
20470 UpdateFormat pdftex
20471 \end_layout
20472
20473 \begin_layout LyX-Code
20474 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20475 \end_layout
20476
20477 \begin_layout LyX-Code
20478 Requirement "graphicx"
20479 \end_layout
20480
20481 \begin_layout LyX-Code
20482 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20483 \end_layout
20484
20485 \begin_layout LyX-Code
20486 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20487 \end_layout
20488
20489 \begin_layout LyX-Code
20490 FormatEnd
20491 \end_layout
20492
20493 \begin_layout LyX-Code
20494 Format Ascii
20495 \end_layout
20496
20497 \begin_layout LyX-Code
20498 Product "$$Contents(
20499 \backslash
20500 "$$AbsPath$$Basename.asc
20501 \backslash
20502 ")"
20503 \end_layout
20504
20505 \begin_layout LyX-Code
20506 UpdateFormat asciixfig
20507 \end_layout
20508
20509 \begin_layout LyX-Code
20510 UpdateResult "$$AbsPath$$Basename.asc"
20511 \end_layout
20512
20513 \begin_layout LyX-Code
20514 FormatEnd
20515 \end_layout
20516
20517 \begin_layout LyX-Code
20518 Format DocBook
20519 \end_layout
20520
20521 \begin_layout LyX-Code
20522 Product "<graphic fileref=
20523 \backslash
20524 "$$AbsOrRelPathMaster$$Basename.eps
20525 \backslash
20526 ">
20527 \end_layout
20528
20529 \begin_layout LyX-Code
20530          </graphic>"
20531 \end_layout
20532
20533 \begin_layout LyX-Code
20534 UpdateFormat eps
20535 \end_layout
20536
20537 \begin_layout LyX-Code
20538 UpdateResult "$$AbsPath$$Basename.eps"
20539 \end_layout
20540
20541 \begin_layout LyX-Code
20542 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20543 \end_layout
20544
20545 \begin_layout LyX-Code
20546 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20547 \end_layout
20548
20549 \begin_layout LyX-Code
20550 FormatEnd
20551 \end_layout
20552
20553 \begin_layout LyX-Code
20554 Product "[XFig: $$FName]"
20555 \end_layout
20556
20557 \begin_layout LyX-Code
20558 FormatEnd
20559 \end_layout
20560
20561 \begin_layout LyX-Code
20562 TemplateEnd
20563 \end_layout
20564
20565 \begin_layout Standard
20566 ご覧の通り,ひな型は
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571 Template
20572 \end_layout
20573
20574 \end_inset
20575
20576  \SpecialChar ldots
20577  
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 TemplateEnd
20583 \end_layout
20584
20585 \end_inset
20586
20587 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592 Format
20593 \end_layout
20594
20595 \end_inset
20596
20597  \SpecialChar ldots
20598  
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 FormatEnd
20604 \end_layout
20605
20606 \end_inset
20607
20608 部があります.
20609 \end_layout
20610
20611 \begin_layout Subsection
20612 ひな型のヘッダ
20613 \end_layout
20614
20615 \begin_layout Description
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620 AutomaticProduction
20621 \begin_inset space ~
20622 \end_inset
20623
20624 true|false
20625 \end_layout
20626
20627 \end_inset
20628
20629  このひな型で扱うファイルを\SpecialChar LyX
20630 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20631 \end_layout
20632
20633 \begin_layout Description
20634 \begin_inset Flex Code
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 FileFilter
20639 \begin_inset space ~
20640 \end_inset
20641
20642 <パターン>
20643 \end_layout
20644
20645 \end_inset
20646
20647  望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 .obj
20653 \end_layout
20654
20655 \end_inset
20656
20657
20658 \begin_inset Flex Code
20659 status collapsed
20660
20661 \begin_layout Plain Layout
20662 .tgo
20663 \end_layout
20664
20665 \end_inset
20666
20667 があります),「
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672 *.{obj,tgo}
20673 \end_layout
20674
20675 \end_inset
20676
20677 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20678 \end_layout
20679
20680 \begin_layout Description
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 GuiName
20686 \begin_inset space ~
20687 \end_inset
20688
20689 <GUI名>
20690 \end_layout
20691
20692 \end_inset
20693
20694  この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20695 \end_layout
20696
20697 \begin_layout Description
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 HelpText
20703 \begin_inset space ~
20704 \end_inset
20705
20706 <文章>
20707 \begin_inset space ~
20708 \end_inset
20709
20710 HelpTextEnd
20711 \end_layout
20712
20713 \end_inset
20714
20715  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20716 ず現れなくてはなりません.
20717 \end_layout
20718
20719 \begin_layout Description
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 InputFormat
20725 \begin_inset space ~
20726 \end_inset
20727
20728 <書式>
20729 \end_layout
20730
20731 \end_inset
20732
20733  オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20734 が知っている書式名でなくてはなりません(
20735 \begin_inset CommandInset ref
20736 LatexCommand ref
20737 reference "sec:ファイル形式"
20738
20739 \end_inset
20740
20741 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20742 \begin_inset Flex Code
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746 *
20747 \end_layout
20748
20749 \end_inset
20750
20751 」を使用してください.この場合,\SpecialChar LyX
20752 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20753 \end_layout
20754
20755 \begin_layout Description
20756 \begin_inset Flex Code
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 Template
20761 \begin_inset space ~
20762 \end_inset
20763
20764 <ID>
20765 \end_layout
20766
20767 \end_inset
20768
20769  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20770 \end_layout
20771
20772 \begin_layout Description
20773 \begin_inset Flex Code
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777 Transform
20778 \begin_inset space ~
20779 \end_inset
20780
20781 Rotate|Resize|Clip|Extra
20782 \end_layout
20783
20784 \end_inset
20785
20786  このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20787 ログ中の対応するタブを使用可能にします.
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 Transform
20793 \end_layout
20794
20795 \end_inset
20796
20797 コマンド一つずつに応じて,
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802 Format
20803 \end_layout
20804
20805 \end_inset
20806
20807 部に,対応する
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 TransformCommand
20813 \end_layout
20814
20815 \end_inset
20816
20817 コマンドか
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 TransformOption
20823 \end_layout
20824
20825 \end_inset
20826
20827 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20828 \end_layout
20829
20830 \begin_layout Subsection
20831 \begin_inset Flex Code
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835 Format
20836 \end_layout
20837
20838 \end_inset
20839
20840
20841 \end_layout
20842
20843 \begin_layout Description
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 Format
20849 \begin_inset space ~
20850 \end_inset
20851
20852 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
20853 \end_layout
20854
20855 \end_inset
20856
20857  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 Format
20863 \end_layout
20864
20865 \end_inset
20866
20867 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20868 ようになります.
20869 \end_layout
20870
20871 \begin_layout Description
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 Option
20877 \begin_inset space ~
20878 \end_inset
20879
20880 <名称>
20881 \begin_inset space ~
20882 \end_inset
20883
20884 <値>
20885 \end_layout
20886
20887 \end_inset
20888
20889  このコマンドは,
20890 \begin_inset Flex Code
20891 status collapsed
20892
20893 \begin_layout Plain Layout
20894 Product
20895 \end_layout
20896
20897 \end_inset
20898
20899 での代入に使うマクロ
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 $$<名称>
20905 \end_layout
20906
20907 \end_inset
20908
20909 を新たに定義します.
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 <値>
20915 \end_layout
20916
20917 \end_inset
20918
20919 自体にも代入マクロを使うことができます.
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 Product
20925 \end_layout
20926
20927 \end_inset
20928
20929
20930 \begin_inset Flex Code
20931 status collapsed
20932
20933 \begin_layout Plain Layout
20934 <値>
20935 \end_layout
20936
20937 \end_inset
20938
20939 を直接使用するよりも優れた点は,
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 $$<名称>
20945 \end_layout
20946
20947 \end_inset
20948
20949 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
20950 \end_layout
20951
20952 \begin_layout Description
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 Product
20958 \begin_inset space ~
20959 \end_inset
20960
20961 <文>
20962 \end_layout
20963
20964 \end_inset
20965
20966  書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
20967
20968 \end_layout
20969
20970 \begin_layout Description
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 Preamble
20976 \begin_inset space ~
20977 \end_inset
20978
20979 <名称>
20980 \end_layout
20981
20982 \end_inset
20983
20984  このコマンドは,\SpecialChar LaTeX
20985 プリアンブルに入れるプリアンブル片を指定します.これは
20986 \begin_inset Flex Code
20987 status collapsed
20988
20989 \begin_layout Plain Layout
20990 PreambleDef
20991 \end_layout
20992
20993 \end_inset
20994
20995  \SpecialChar ldots
20996  
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 PreambleDefEnd
21002 \end_layout
21003
21004 \end_inset
21005
21006 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21007 \end_layout
21008
21009 \begin_layout Description
21010 \begin_inset Flex Code
21011 status collapsed
21012
21013 \begin_layout Plain Layout
21014 ReferencedFile
21015 \begin_inset space ~
21016 \end_inset
21017
21018 <書式>
21019 \begin_inset space ~
21020 \end_inset
21021
21022 <ファイル名>
21023 \end_layout
21024
21025 \end_inset
21026
21027  このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21028 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21029 \end_layout
21030
21031 \begin_layout Description
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036 Requirement
21037 \begin_inset space ~
21038 \end_inset
21039
21040 <package>
21041 \end_layout
21042
21043 \end_inset
21044
21045  必要とされる\SpecialChar LaTeX
21046 パッケージ名.パッケージは,\SpecialChar LaTeX
21047 プリアンブル中で
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052
21053 \backslash
21054 usepackage{}
21055 \end_layout
21056
21057 \end_inset
21058
21059 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21060 \end_layout
21061
21062 \begin_layout Description
21063 \begin_inset Flex Code
21064 status collapsed
21065
21066 \begin_layout Plain Layout
21067 TransformCommand
21068 \begin_inset space ~
21069 \end_inset
21070
21071 Rotate
21072 \begin_inset space ~
21073 \end_inset
21074
21075 RotationLatexCommand
21076 \end_layout
21077
21078 \end_inset
21079
21080  このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21081 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21082 \end_layout
21083
21084 \begin_layout Description
21085 \begin_inset Flex Code
21086 status collapsed
21087
21088 \begin_layout Plain Layout
21089 TransformCommand
21090 \begin_inset space ~
21091 \end_inset
21092
21093 Resize
21094 \begin_inset space ~
21095 \end_inset
21096
21097 ResizeLatexCommand
21098 \end_layout
21099
21100 \end_inset
21101
21102  このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21103 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21104 \end_layout
21105
21106 \begin_layout Description
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111 TransformOption
21112 \begin_inset space ~
21113 \end_inset
21114
21115 Rotate
21116 \begin_inset space ~
21117 \end_inset
21118
21119 RotationLatexOption
21120 \end_layout
21121
21122 \end_inset
21123
21124  このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21125 \end_layout
21126
21127 \begin_layout Description
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 TransformOption
21133 \begin_inset space ~
21134 \end_inset
21135
21136 Resize
21137 \begin_inset space ~
21138 \end_inset
21139
21140 ResizeLatexOption
21141 \end_layout
21142
21143 \end_inset
21144
21145  このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21146 \end_layout
21147
21148 \begin_layout Description
21149 \begin_inset Flex Code
21150 status collapsed
21151
21152 \begin_layout Plain Layout
21153 TransformOption
21154 \begin_inset space ~
21155 \end_inset
21156
21157 Clip
21158 \begin_inset space ~
21159 \end_inset
21160
21161 ClipLatexOption
21162 \end_layout
21163
21164 \end_inset
21165
21166  このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21167 \end_layout
21168
21169 \begin_layout Description
21170 \begin_inset Flex Code
21171 status collapsed
21172
21173 \begin_layout Plain Layout
21174 TransformOption
21175 \begin_inset space ~
21176 \end_inset
21177
21178 Extra
21179 \begin_inset space ~
21180 \end_inset
21181
21182 ExtraLatexOption
21183 \end_layout
21184
21185 \end_inset
21186
21187  このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21188 \end_layout
21189
21190 \begin_layout Description
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 UpdateFormat
21196 \begin_inset space ~
21197 \end_inset
21198
21199 <書式>
21200 \end_layout
21201
21202 \end_inset
21203
21204  変換されたファイルのファイル形式.これは,\SpecialChar LyX
21205 が知っている書式名でなくてはなりません(
21206 \begin_inset Flex MenuItem
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 ツール\SpecialChar menuseparator
21211 設定\SpecialChar menuseparator
21212 ファイル処理\SpecialChar menuseparator
21213 ファイル書式
21214 \end_layout
21215
21216 \end_inset
21217
21218 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 pdf6
21224 \end_layout
21225
21226 \end_inset
21227
21228 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21229 \end_layout
21230
21231 \begin_layout Description
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 UpdateResult
21237 \begin_inset space ~
21238 \end_inset
21239
21240 <ファイル名>
21241 \end_layout
21242
21243 \end_inset
21244
21245  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21246 \end_layout
21247
21248 \begin_layout Subsection
21249 プリアンブルの定義
21250 \end_layout
21251
21252 \begin_layout Standard
21253 外用ひな型設定ファイルには,
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 PreambleDef
21259 \end_layout
21260
21261 \end_inset
21262
21263  \SpecialChar ldots
21264  
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 PreambleDefEnd
21270 \end_layout
21271
21272 \end_inset
21273
21274 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279 Format
21280 \end_layout
21281
21282 \end_inset
21283
21284 部で使用することができます.
21285 \end_layout
21286
21287 \begin_layout Section
21288 代入機構
21289 \end_layout
21290
21291 \begin_layout Standard
21292 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21293 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21294 \end_layout
21295
21296 \begin_layout Standard
21297 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21298 \end_layout
21299
21300 \begin_layout Standard
21301 使用できるマクロは以下の通りです.
21302 \end_layout
21303
21304 \begin_layout Description
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 $$AbsOrRelPathMaster
21310 \end_layout
21311
21312 \end_inset
21313
21314  \SpecialChar LyX
21315 親文書への絶対ファイルパスないしは相対ファイルパス
21316 \end_layout
21317
21318 \begin_layout Description
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 $$AbsOrRelPathParent
21324 \end_layout
21325
21326 \end_inset
21327
21328  \SpecialChar LyX
21329 文書への絶対ファイルパスないしは相対ファイルパス
21330 \end_layout
21331
21332 \begin_layout Description
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 $$AbsPath
21338 \end_layout
21339
21340 \end_inset
21341
21342  絶対ファイルパス
21343 \end_layout
21344
21345 \begin_layout Description
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 $$Basename
21351 \end_layout
21352
21353 \end_inset
21354
21355  パスおよび拡張子を除いたファイル名
21356 \end_layout
21357
21358 \begin_layout Description
21359 \begin_inset Flex Code
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 $$Contents(
21364 \begin_inset Quotes eld
21365 \end_inset
21366
21367 filename.ext
21368 \begin_inset Quotes erd
21369 \end_inset
21370
21371 )
21372 \end_layout
21373
21374 \end_inset
21375
21376  このマクロは,
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 filename.ext
21382 \end_layout
21383
21384 \end_inset
21385
21386 と云う名のファイルの中身を展開します.
21387 \end_layout
21388
21389 \begin_layout Description
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 $$Extension
21395 \end_layout
21396
21397 \end_inset
21398
21399  ファイル拡張子(点を含む)
21400 \end_layout
21401
21402 \begin_layout Description
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 $$pngOrjpg
21408 \end_layout
21409
21410 \end_inset
21411
21412  これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21413 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21414 出力形式に対してこのマクロを使用します.
21415 \end_layout
21416
21417 \begin_layout Description
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 $$FName
21423 \end_layout
21424
21425 \end_inset
21426
21427  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21428 文書への絶対パスでも良いですし,相対パスでも構いません.
21429 \end_layout
21430
21431 \begin_layout Description
21432 \begin_inset Flex Code
21433 status collapsed
21434
21435 \begin_layout Plain Layout
21436 $$FPath
21437 \end_layout
21438
21439 \end_inset
21440
21441  
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 $$FName
21447 \end_layout
21448
21449 \end_inset
21450
21451 のパス部分(\SpecialChar LyX
21452 文書への絶対パス名か相対パス名)
21453 \end_layout
21454
21455 \begin_layout Description
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 $$RelPathMaster
21461 \end_layout
21462
21463 \end_inset
21464
21465  \SpecialChar LyX
21466 親文書への相対ファイルパス
21467 \end_layout
21468
21469 \begin_layout Description
21470 \begin_inset Flex Code
21471 status collapsed
21472
21473 \begin_layout Plain Layout
21474 $$RelPathParent
21475 \end_layout
21476
21477 \end_inset
21478
21479  \SpecialChar LyX
21480 文書への相対ファイルパス
21481 \end_layout
21482
21483 \begin_layout Description
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 $$Sysdir
21489 \end_layout
21490
21491 \end_inset
21492
21493  このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21494 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21495 \end_layout
21496
21497 \begin_layout Description
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 $$Tempname
21503 \end_layout
21504
21505 \end_inset
21506
21507  元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21508 \end_layout
21509
21510 \begin_layout Standard
21511 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を 
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 $$AbsPath$$Basename$$Extension
21517 \end_layout
21518
21519 \end_inset
21520
21521 のようにして作ることができます.
21522 \end_layout
21523
21524 \begin_layout Standard
21525 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 Transform
21531 \end_layout
21532
21533 \end_inset
21534
21535 コマンドと
21536 \begin_inset Flex Code
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540 TransformCommand
21541 \end_layout
21542
21543 \end_inset
21544
21545 コマンドが有効にされている場合,
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550 Product
21551 \end_layout
21552
21553 \end_inset
21554
21555 コマンドは,これらに加えて以下の代入もサポートします.
21556 \end_layout
21557
21558 \begin_layout Description
21559 \begin_inset Flex Code
21560 status collapsed
21561
21562 \begin_layout Plain Layout
21563 $$ResizeFront
21564 \end_layout
21565
21566 \end_inset
21567
21568  伸縮コマンドの前置部.
21569 \end_layout
21570
21571 \begin_layout Description
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576 $$ResizeBack
21577 \end_layout
21578
21579 \end_inset
21580
21581  伸縮コマンドの後置部.
21582 \end_layout
21583
21584 \begin_layout Description
21585 \begin_inset Flex Code
21586 status collapsed
21587
21588 \begin_layout Plain Layout
21589 $$RotateFront
21590 \end_layout
21591
21592 \end_inset
21593
21594  回転コマンドの前置部.
21595 \end_layout
21596
21597 \begin_layout Description
21598 \begin_inset Flex Code
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 $$RotateBack
21603 \end_layout
21604
21605 \end_inset
21606
21607  回転コマンドの後置部.
21608 \end_layout
21609
21610 \begin_layout Standard
21611 \begin_inset Flex Code
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615 Option
21616 \end_layout
21617
21618 \end_inset
21619
21620 コマンドの値に入れる文字列では,
21621 \begin_inset Flex Code
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625 Transform
21626 \end_layout
21627
21628 \end_inset
21629
21630 コマンドと
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 TransformOption
21636 \end_layout
21637
21638 \end_inset
21639
21640 コマンドが有効にされていれば,以下の代入もサポートされます.
21641 \end_layout
21642
21643 \begin_layout Description
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 $$Clip
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 $$Extra
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 $$Resize
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 $$Rotate
21688 \end_layout
21689
21690 \end_inset
21691
21692  回転オプション.
21693 \end_layout
21694
21695 \begin_layout Standard
21696 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21697 \end_layout
21698
21699 \begin_layout Enumerate
21700 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21701 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21702 \end_layout
21703
21704 \begin_layout Enumerate
21705 \SpecialChar LaTeX
21706 は,相対ファイル名に関して,\SpecialChar LyX
21707 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21708 にとって相対ファイル名とは,常にこのファイル名が書か
21709 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21710 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21711 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21712 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21713 を選びさえすれば,これは\SpecialChar LyX
21714 が自動的に行ってくれます.
21715 \end_layout
21716
21717 \begin_layout Standard
21718 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21719 \end_layout
21720
21721 \begin_layout Itemize
21722 絶対パスが必要とされるときには
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727 $$AbsPath
21728 \end_layout
21729
21730 \end_inset
21731
21732 を使う.
21733 \end_layout
21734
21735 \begin_layout Itemize
21736 代入された文字列が,\SpecialChar LaTeX
21737 インプットの一種である場合には,
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 $$AbsOrRelPathMaster
21743 \end_layout
21744
21745 \end_inset
21746
21747 を使う.
21748 \end_layout
21749
21750 \begin_layout Itemize
21751 それ以外ならば,ユーザの選択を尊重するために
21752 \begin_inset Flex Code
21753 status collapsed
21754
21755 \begin_layout Plain Layout
21756 $$AbsOrRelPathParent
21757 \end_layout
21758
21759 \end_inset
21760
21761 を使う.
21762 \end_layout
21763
21764 \begin_layout Standard
21765 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21766 \begin_inset Flex Code
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21771 \end_layout
21772
21773 \end_inset
21774
21775 というコマンドがあります.この場合,
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 .pstex_t
21781 \end_layout
21782
21783 \end_inset
21784
21785 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21786 \end_layout
21787
21788 \begin_layout Section
21789 セキュリティに関する論点
21790 \begin_inset CommandInset label
21791 LatexCommand label
21792 name "sec:セキュリティに関する論点"
21793
21794 \end_inset
21795
21796
21797 \end_layout
21798
21799 \begin_layout Standard
21800 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21801 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21802 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21803 \end_layout
21804
21805 \begin_layout Standard
21806 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21807 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21808 せん.これは,外部プログラムが
21809 \begin_inset Flex Code
21810 status collapsed
21811
21812 \begin_layout Plain Layout
21813 system
21814 \end_layout
21815
21816 \end_inset
21817
21818 システムコールではなく,
21819 \begin_inset Flex Code
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 execvp
21824 \end_layout
21825
21826 \end_inset
21827
21828 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21829 \end_layout
21830
21831 \begin_layout Standard
21832 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21833 できません.これは,\SpecialChar LyX
21834 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21835 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21836 \end_layout
21837
21838 \begin_layout Standard
21839 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21840 うになるため,一般的には,統御下に置いた状態で
21841 \begin_inset Flex Code
21842 status collapsed
21843
21844 \begin_layout Plain Layout
21845 execvp
21846 \end_layout
21847
21848 \end_inset
21849
21850 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21851 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21852 \emph on
21853 間違いなく
21854 \emph default
21855 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21856 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21857 には,安全でないひな型は決して入っていません
21858
21859 \end_layout
21860
21861 \begin_layout Standard
21862 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21863 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21864 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21865 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21866 使用する前に,行うようにしてください.
21867 \end_layout
21868
21869 \begin_layout Chapter
21870 \start_of_appendix
21871 サポートされているレイアウト用\SpecialChar LyX
21872 関数一覧
21873 \begin_inset CommandInset label
21874 LatexCommand label
21875 name "chap:関数一覧"
21876
21877 \end_inset
21878
21879
21880 \end_layout
21881
21882 \begin_layout Standard
21883 \align center
21884 \begin_inset Tabular
21885 <lyxtabular version="3" rows="11" columns="8">
21886 <features tabularvalignment="middle">
21887 <column alignment="left" valignment="top">
21888 <column alignment="left" valignment="top">
21889 <column alignment="left" valignment="top">
21890 <column alignment="left" valignment="top">
21891 <column alignment="left" valignment="top">
21892 <column alignment="left" valignment="top">
21893 <column alignment="left" valignment="top">
21894 <column alignment="left" valignment="top">
21895 <row>
21896 <cell alignment="left" valignment="top" usebox="none">
21897 \begin_inset Text
21898
21899 \begin_layout Plain Layout
21900 accents
21901 \end_layout
21902
21903 \end_inset
21904 </cell>
21905 <cell alignment="left" valignment="top" usebox="none">
21906 \begin_inset Text
21907
21908 \begin_layout Plain Layout
21909 booktabs
21910 \end_layout
21911
21912 \end_inset
21913 </cell>
21914 <cell alignment="left" valignment="top" usebox="none">
21915 \begin_inset Text
21916
21917 \begin_layout Plain Layout
21918 feyn
21919 \end_layout
21920
21921 \end_inset
21922 </cell>
21923 <cell alignment="left" valignment="top" usebox="none">
21924 \begin_inset Text
21925
21926 \begin_layout Plain Layout
21927 listings
21928 \end_layout
21929
21930 \end_inset
21931 </cell>
21932 <cell alignment="center" valignment="top" usebox="none">
21933 \begin_inset Text
21934
21935 \begin_layout Plain Layout
21936 natbib
21937 \end_layout
21938
21939 \end_inset
21940 </cell>
21941 <cell alignment="center" valignment="top" usebox="none">
21942 \begin_inset Text
21943
21944 \begin_layout Plain Layout
21945 rotfloat
21946 \end_layout
21947
21948 \end_inset
21949 </cell>
21950 <cell alignment="center" valignment="top" usebox="none">
21951 \begin_inset Text
21952
21953 \begin_layout Plain Layout
21954 tfrupee
21955 \end_layout
21956
21957 \end_inset
21958 </cell>
21959 <cell alignment="center" valignment="top" usebox="none">
21960 \begin_inset Text
21961
21962 \begin_layout Plain Layout
21963 wasysym
21964 \end_layout
21965
21966 \end_inset
21967 </cell>
21968 </row>
21969 <row>
21970 <cell alignment="left" valignment="top" usebox="none">
21971 \begin_inset Text
21972
21973 \begin_layout Plain Layout
21974 amsbsy
21975 \end_layout
21976
21977 \end_inset
21978 </cell>
21979 <cell alignment="left" valignment="top" usebox="none">
21980 \begin_inset Text
21981
21982 \begin_layout Plain Layout
21983 calc
21984 \end_layout
21985
21986 \end_inset
21987 </cell>
21988 <cell alignment="left" valignment="top" usebox="none">
21989 \begin_inset Text
21990
21991 \begin_layout Plain Layout
21992 fixltx2e
21993 \end_layout
21994
21995 \end_inset
21996 </cell>
21997 <cell alignment="left" valignment="top" usebox="none">
21998 \begin_inset Text
21999
22000 \begin_layout Plain Layout
22001 longtable
22002 \end_layout
22003
22004 \end_inset
22005 </cell>
22006 <cell alignment="center" valignment="top" usebox="none">
22007 \begin_inset Text
22008
22009 \begin_layout Plain Layout
22010 nomencl
22011 \end_layout
22012
22013 \end_inset
22014 </cell>
22015 <cell alignment="center" valignment="top" usebox="none">
22016 \begin_inset Text
22017
22018 \begin_layout Plain Layout
22019 rsphrase
22020 \end_layout
22021
22022 \end_inset
22023 </cell>
22024 <cell alignment="center" valignment="top" usebox="none">
22025 \begin_inset Text
22026
22027 \begin_layout Plain Layout
22028 tipa
22029 \end_layout
22030
22031 \end_inset
22032 </cell>
22033 <cell alignment="center" valignment="top" usebox="none">
22034 \begin_inset Text
22035
22036 \begin_layout Plain Layout
22037 wrapfig
22038 \end_layout
22039
22040 \end_inset
22041 </cell>
22042 </row>
22043 <row>
22044 <cell alignment="left" valignment="top" usebox="none">
22045 \begin_inset Text
22046
22047 \begin_layout Plain Layout
22048 amscd
22049 \end_layout
22050
22051 \end_inset
22052 </cell>
22053 <cell alignment="left" valignment="top" usebox="none">
22054 \begin_inset Text
22055
22056 \begin_layout Plain Layout
22057 CJK
22058 \end_layout
22059
22060 \end_inset
22061 </cell>
22062 <cell alignment="left" valignment="top" usebox="none">
22063 \begin_inset Text
22064
22065 \begin_layout Plain Layout
22066 float
22067 \end_layout
22068
22069 \end_inset
22070 </cell>
22071 <cell alignment="left" valignment="top" usebox="none">
22072 \begin_inset Text
22073
22074 \begin_layout Plain Layout
22075 lyxskak
22076 \end_layout
22077
22078 \end_inset
22079 </cell>
22080 <cell alignment="center" valignment="top" usebox="none">
22081 \begin_inset Text
22082
22083 \begin_layout Plain Layout
22084 pdfcolmk
22085 \end_layout
22086
22087 \end_inset
22088 </cell>
22089 <cell alignment="center" valignment="top" usebox="none">
22090 \begin_inset Text
22091
22092 \begin_layout Plain Layout
22093 setspace
22094 \end_layout
22095
22096 \end_inset
22097 </cell>
22098 <cell alignment="center" valignment="top" usebox="none">
22099 \begin_inset Text
22100
22101 \begin_layout Plain Layout
22102 tipx
22103 \end_layout
22104
22105 \end_inset
22106 </cell>
22107 <cell alignment="center" valignment="top" usebox="none">
22108 \begin_inset Text
22109
22110 \begin_layout Plain Layout
22111 xargs
22112 \end_layout
22113
22114 \end_inset
22115 </cell>
22116 </row>
22117 <row>
22118 <cell alignment="left" valignment="top" usebox="none">
22119 \begin_inset Text
22120
22121 \begin_layout Plain Layout
22122 amsmath
22123 \end_layout
22124
22125 \end_inset
22126 </cell>
22127 <cell alignment="left" valignment="top" usebox="none">
22128 \begin_inset Text
22129
22130 \begin_layout Plain Layout
22131 color
22132 \end_layout
22133
22134 \end_inset
22135 </cell>
22136 <cell alignment="left" valignment="top" usebox="none">
22137 \begin_inset Text
22138
22139 \begin_layout Plain Layout
22140 framed
22141 \end_layout
22142
22143 \end_inset
22144 </cell>
22145 <cell alignment="left" valignment="top" usebox="none">
22146 \begin_inset Text
22147
22148 \begin_layout Plain Layout
22149 makeidx
22150 \end_layout
22151
22152 \end_inset
22153 </cell>
22154 <cell alignment="center" valignment="top" usebox="none">
22155 \begin_inset Text
22156
22157 \begin_layout Plain Layout
22158 pdfpages
22159 \end_layout
22160
22161 \end_inset
22162 </cell>
22163 <cell alignment="center" valignment="top" usebox="none">
22164 \begin_inset Text
22165
22166 \begin_layout Plain Layout
22167 shapepar
22168 \end_layout
22169
22170 \end_inset
22171 </cell>
22172 <cell alignment="center" valignment="top" usebox="none">
22173 \begin_inset Text
22174
22175 \begin_layout Plain Layout
22176 tone
22177 \end_layout
22178
22179 \end_inset
22180 </cell>
22181 <cell alignment="center" valignment="top" usebox="none">
22182 \begin_inset Text
22183
22184 \begin_layout Plain Layout
22185 xcolor
22186 \end_layout
22187
22188 \end_inset
22189 </cell>
22190 </row>
22191 <row>
22192 <cell alignment="left" valignment="top" usebox="none">
22193 \begin_inset Text
22194
22195 \begin_layout Plain Layout
22196 amssymb
22197 \end_layout
22198
22199 \end_inset
22200 </cell>
22201 <cell alignment="left" valignment="top" usebox="none">
22202 \begin_inset Text
22203
22204 \begin_layout Plain Layout
22205 covington
22206 \end_layout
22207
22208 \end_inset
22209 </cell>
22210 <cell alignment="left" valignment="top" usebox="none">
22211 \begin_inset Text
22212
22213 \begin_layout Plain Layout
22214 graphicx
22215 \end_layout
22216
22217 \end_inset
22218 </cell>
22219 <cell alignment="left" valignment="top" usebox="none">
22220 \begin_inset Text
22221
22222 \begin_layout Plain Layout
22223 marvosym
22224 \end_layout
22225
22226 \end_inset
22227 </cell>
22228 <cell alignment="center" valignment="top" usebox="none">
22229 \begin_inset Text
22230
22231 \begin_layout Plain Layout
22232 pifont
22233 \end_layout
22234
22235 \end_inset
22236 </cell>
22237 <cell alignment="center" valignment="top" usebox="none">
22238 \begin_inset Text
22239
22240 \begin_layout Plain Layout
22241 slashed
22242 \end_layout
22243
22244 \end_inset
22245 </cell>
22246 <cell alignment="center" valignment="top" usebox="none">
22247 \begin_inset Text
22248
22249 \begin_layout Plain Layout
22250 txfonts
22251 \end_layout
22252
22253 \end_inset
22254 </cell>
22255 <cell alignment="center" valignment="top" usebox="none">
22256 \begin_inset Text
22257
22258 \begin_layout Plain Layout
22259 xy
22260 \end_layout
22261
22262 \end_inset
22263 </cell>
22264 </row>
22265 <row>
22266 <cell alignment="left" valignment="top" usebox="none">
22267 \begin_inset Text
22268
22269 \begin_layout Plain Layout
22270 amstext
22271 \end_layout
22272
22273 \end_inset
22274 </cell>
22275 <cell alignment="left" valignment="top" usebox="none">
22276 \begin_inset Text
22277
22278 \begin_layout Plain Layout
22279 csquotes
22280 \end_layout
22281
22282 \end_inset
22283 </cell>
22284 <cell alignment="left" valignment="top" usebox="none">
22285 \begin_inset Text
22286
22287 \begin_layout Plain Layout
22288 hhline
22289 \end_layout
22290
22291 \end_inset
22292 </cell>
22293 <cell alignment="left" valignment="top" usebox="none">
22294 \begin_inset Text
22295
22296 \begin_layout Plain Layout
22297 mathdesign
22298 \end_layout
22299
22300 \end_inset
22301 </cell>
22302 <cell alignment="center" valignment="top" usebox="none">
22303 \begin_inset Text
22304
22305 \begin_layout Plain Layout
22306 pmboxdraw
22307 \end_layout
22308
22309 \end_inset
22310 </cell>
22311 <cell alignment="center" valignment="top" usebox="none">
22312 \begin_inset Text
22313
22314 \begin_layout Plain Layout
22315 soul
22316 \end_layout
22317
22318 \end_inset
22319 </cell>
22320 <cell alignment="center" valignment="top" usebox="none">
22321 \begin_inset Text
22322
22323 \begin_layout Plain Layout
22324 ulem
22325 \end_layout
22326
22327 \end_inset
22328 </cell>
22329 <cell alignment="center" valignment="top" usebox="none">
22330 \begin_inset Text
22331
22332 \begin_layout Plain Layout
22333 yhmath
22334 \end_layout
22335
22336 \end_inset
22337 </cell>
22338 </row>
22339 <row>
22340 <cell alignment="left" valignment="top" usebox="none">
22341 \begin_inset Text
22342
22343 \begin_layout Plain Layout
22344 amsthm
22345 \end_layout
22346
22347 \end_inset
22348 </cell>
22349 <cell alignment="left" valignment="top" usebox="none">
22350 \begin_inset Text
22351
22352 \begin_layout Plain Layout
22353 dvipost
22354 \end_layout
22355
22356 \end_inset
22357 </cell>
22358 <cell alignment="left" valignment="top" usebox="none">
22359 \begin_inset Text
22360
22361 \begin_layout Plain Layout
22362 hyperref
22363 \end_layout
22364
22365 \end_inset
22366 </cell>
22367 <cell alignment="left" valignment="top" usebox="none">
22368 \begin_inset Text
22369
22370 \begin_layout Plain Layout
22371 mathdots
22372 \end_layout
22373
22374 \end_inset
22375 </cell>
22376 <cell alignment="center" valignment="top" usebox="none">
22377 \begin_inset Text
22378
22379 \begin_layout Plain Layout
22380 polyglossia
22381 \end_layout
22382
22383 \end_inset
22384 </cell>
22385 <cell alignment="center" valignment="top" usebox="none">
22386 \begin_inset Text
22387
22388 \begin_layout Plain Layout
22389 splitidx
22390 \end_layout
22391
22392 \end_inset
22393 </cell>
22394 <cell alignment="center" valignment="top" usebox="none">
22395 \begin_inset Text
22396
22397 \begin_layout Plain Layout
22398 undertilde
22399 \end_layout
22400
22401 \end_inset
22402 </cell>
22403 <cell alignment="center" valignment="top" usebox="none">
22404 \begin_inset Text
22405
22406 \begin_layout Plain Layout
22407
22408 \end_layout
22409
22410 \end_inset
22411 </cell>
22412 </row>
22413 <row>
22414 <cell alignment="left" valignment="top" usebox="none">
22415 \begin_inset Text
22416
22417 \begin_layout Plain Layout
22418 array
22419 \end_layout
22420
22421 \end_inset
22422 </cell>
22423 <cell alignment="left" valignment="top" usebox="none">
22424 \begin_inset Text
22425
22426 \begin_layout Plain Layout
22427 endnotes
22428 \end_layout
22429
22430 \end_inset
22431 </cell>
22432 <cell alignment="left" valignment="top" usebox="none">
22433 \begin_inset Text
22434
22435 \begin_layout Plain Layout
22436 ifsym
22437 \end_layout
22438
22439 \end_inset
22440 </cell>
22441 <cell alignment="left" valignment="top" usebox="none">
22442 \begin_inset Text
22443
22444 \begin_layout Plain Layout
22445 mathrsfs
22446 \end_layout
22447
22448 \end_inset
22449 </cell>
22450 <cell alignment="center" valignment="top" usebox="none">
22451 \begin_inset Text
22452
22453 \begin_layout Plain Layout
22454 prettyref
22455 \end_layout
22456
22457 \end_inset
22458 </cell>
22459 <cell alignment="center" valignment="top" usebox="none">
22460 \begin_inset Text
22461
22462 \begin_layout Plain Layout
22463 subfig
22464 \end_layout
22465
22466 \end_inset
22467 </cell>
22468 <cell alignment="center" valignment="top" usebox="none">
22469 \begin_inset Text
22470
22471 \begin_layout Plain Layout
22472 units
22473 \end_layout
22474
22475 \end_inset
22476 </cell>
22477 <cell alignment="center" valignment="top" usebox="none">
22478 \begin_inset Text
22479
22480 \begin_layout Plain Layout
22481
22482 \end_layout
22483
22484 \end_inset
22485 </cell>
22486 </row>
22487 <row>
22488 <cell alignment="left" valignment="top" usebox="none">
22489 \begin_inset Text
22490
22491 \begin_layout Plain Layout
22492 ascii
22493 \end_layout
22494
22495 \end_inset
22496 </cell>
22497 <cell alignment="left" valignment="top" usebox="none">
22498 \begin_inset Text
22499
22500 \begin_layout Plain Layout
22501 enumitem
22502 \end_layout
22503
22504 \end_inset
22505 </cell>
22506 <cell alignment="left" valignment="top" usebox="none">
22507 \begin_inset Text
22508
22509 \begin_layout Plain Layout
22510 ifthen
22511 \end_layout
22512
22513 \end_inset
22514 </cell>
22515 <cell alignment="left" valignment="top" usebox="none">
22516 \begin_inset Text
22517
22518 \begin_layout Plain Layout
22519 mhchem
22520 \end_layout
22521
22522 \end_inset
22523 </cell>
22524 <cell alignment="center" valignment="top" usebox="none">
22525 \begin_inset Text
22526
22527 \begin_layout Plain Layout
22528 pxfonts
22529 \end_layout
22530
22531 \end_inset
22532 </cell>
22533 <cell alignment="center" valignment="top" usebox="none">
22534 \begin_inset Text
22535
22536 \begin_layout Plain Layout
22537 subscript
22538 \end_layout
22539
22540 \end_inset
22541 </cell>
22542 <cell alignment="center" valignment="top" usebox="none">
22543 \begin_inset Text
22544
22545 \begin_layout Plain Layout
22546 url
22547 \end_layout
22548
22549 \end_inset
22550 </cell>
22551 <cell alignment="center" valignment="top" usebox="none">
22552 \begin_inset Text
22553
22554 \begin_layout Plain Layout
22555
22556 \end_layout
22557
22558 \end_inset
22559 </cell>
22560 </row>
22561 <row>
22562 <cell alignment="left" valignment="top" usebox="none">
22563 \begin_inset Text
22564
22565 \begin_layout Plain Layout
22566 bbding
22567 \end_layout
22568
22569 \end_inset
22570 </cell>
22571 <cell alignment="left" valignment="top" usebox="none">
22572 \begin_inset Text
22573
22574 \begin_layout Plain Layout
22575 esint
22576 \end_layout
22577
22578 \end_inset
22579 </cell>
22580 <cell alignment="left" valignment="top" usebox="none">
22581 \begin_inset Text
22582
22583 \begin_layout Plain Layout
22584 jurabib
22585 \end_layout
22586
22587 \end_inset
22588 </cell>
22589 <cell alignment="left" valignment="top" usebox="none">
22590 \begin_inset Text
22591
22592 \begin_layout Plain Layout
22593 multicol
22594 \end_layout
22595
22596 \end_inset
22597 </cell>
22598 <cell alignment="center" valignment="top" usebox="none">
22599 \begin_inset Text
22600
22601 \begin_layout Plain Layout
22602 refstyle
22603 \end_layout
22604
22605 \end_inset
22606 </cell>
22607 <cell alignment="center" valignment="top" usebox="none">
22608 \begin_inset Text
22609
22610 \begin_layout Plain Layout
22611 textcomp
22612 \end_layout
22613
22614 \end_inset
22615 </cell>
22616 <cell alignment="center" valignment="top" usebox="none">
22617 \begin_inset Text
22618
22619 \begin_layout Plain Layout
22620 varioref
22621 \end_layout
22622
22623 \end_inset
22624 </cell>
22625 <cell alignment="center" valignment="top" usebox="none">
22626 \begin_inset Text
22627
22628 \begin_layout Plain Layout
22629
22630 \end_layout
22631
22632 \end_inset
22633 </cell>
22634 </row>
22635 <row>
22636 <cell alignment="center" valignment="top" usebox="none">
22637 \begin_inset Text
22638
22639 \begin_layout Plain Layout
22640 bm
22641 \end_layout
22642
22643 \end_inset
22644 </cell>
22645 <cell alignment="center" valignment="top" usebox="none">
22646 \begin_inset Text
22647
22648 \begin_layout Plain Layout
22649 fancybox
22650 \end_layout
22651
22652 \end_inset
22653 </cell>
22654 <cell alignment="center" valignment="top" usebox="none">
22655 \begin_inset Text
22656
22657 \begin_layout Plain Layout
22658 latexsym
22659 \end_layout
22660
22661 \end_inset
22662 </cell>
22663 <cell alignment="center" valignment="top" usebox="none">
22664 \begin_inset Text
22665
22666 \begin_layout Plain Layout
22667 multirow
22668 \end_layout
22669
22670 \end_inset
22671 </cell>
22672 <cell alignment="center" valignment="top" usebox="none">
22673 \begin_inset Text
22674
22675 \begin_layout Plain Layout
22676 rotating
22677 \end_layout
22678
22679 \end_inset
22680 </cell>
22681 <cell alignment="center" valignment="top" usebox="none">
22682 \begin_inset Text
22683
22684 \begin_layout Plain Layout
22685 textgreek
22686 \end_layout
22687
22688 \end_inset
22689 </cell>
22690 <cell alignment="center" valignment="top" usebox="none">
22691 \begin_inset Text
22692
22693 \begin_layout Plain Layout
22694 verbatim
22695 \end_layout
22696
22697 \end_inset
22698 </cell>
22699 <cell alignment="center" valignment="top" usebox="none">
22700 \begin_inset Text
22701
22702 \begin_layout Plain Layout
22703
22704 \end_layout
22705
22706 \end_inset
22707 </cell>
22708 </row>
22709 </lyxtabular>
22710
22711 \end_inset
22712
22713
22714 \end_layout
22715
22716 \begin_layout Chapter
22717 レイアウトで使用できる色名
22718 \begin_inset CommandInset label
22719 LatexCommand label
22720 name "chap:色名"
22721
22722 \end_inset
22723
22724
22725 \end_layout
22726
22727 \begin_layout Standard
22728 ここに列挙されている色は標準色であり,\SpecialChar LyX
22729 設定で調整できるものです.
22730 \end_layout
22731
22732 \begin_layout Description
22733 none
22734 \series medium
22735  
22736 \series default
22737 特定の色ではありません – 透明か既定色です
22738 \end_layout
22739
22740 \begin_layout Description
22741 black
22742 \end_layout
22743
22744 \begin_layout Description
22745 white
22746 \end_layout
22747
22748 \begin_layout Description
22749 red
22750 \end_layout
22751
22752 \begin_layout Description
22753 green
22754 \end_layout
22755
22756 \begin_layout Description
22757 blue
22758 \end_layout
22759
22760 \begin_layout Description
22761 cyan
22762 \end_layout
22763
22764 \begin_layout Description
22765 magenta
22766 \end_layout
22767
22768 \begin_layout Description
22769 yellow
22770 \end_layout
22771
22772 \begin_layout Description
22773 added_space 空白マーカ色
22774 \end_layout
22775
22776 \begin_layout Description
22777 addedtext 追加された文章色
22778 \end_layout
22779
22780 \begin_layout Description
22781 appendix 付録マーカ色
22782 \end_layout
22783
22784 \begin_layout Description
22785 background 背景色
22786 \end_layout
22787
22788 \begin_layout Description
22789 bottomarea 下部領域色
22790 \end_layout
22791
22792 \begin_layout Description
22793 branchlabel 派生枝ラベル色
22794 \end_layout
22795
22796 \begin_layout Description
22797 buttonbg ボタンの背景色
22798 \end_layout
22799
22800 \begin_layout Description
22801 buttonhoverbg フォーカスを得ているボタンの背景色
22802 \end_layout
22803
22804 \begin_layout Description
22805 buttonframe 差込枠の縁色
22806 \end_layout
22807
22808 \begin_layout Description
22809 changebar 変更バー色
22810 \end_layout
22811
22812 \begin_layout Description
22813 changedtextauthor1 変更された文章:第1著者の色
22814 \end_layout
22815
22816 \begin_layout Description
22817 changedtextauthor2 変更された文章:第2著者の色
22818 \end_layout
22819
22820 \begin_layout Description
22821 changedtextauthor3 変更された文章:第3著者の色
22822 \end_layout
22823
22824 \begin_layout Description
22825 changedtextauthor4 変更された文章:第4著者の色
22826 \end_layout
22827
22828 \begin_layout Description
22829 changedtextauthor5 変更された文章:第5著者の色
22830 \end_layout
22831
22832 \begin_layout Description
22833 collapsable_inset_frame 畳み込み可能枠の縁色
22834 \end_layout
22835
22836 \begin_layout Description
22837 collapsable_inset_text 畳み込み可能枠の文字色
22838 \end_layout
22839
22840 \begin_layout Description
22841 command コマンド差込枠の文字色
22842 \end_layout
22843
22844 \begin_layout Description
22845 commandbg コマンド差込枠の背景色
22846 \end_layout
22847
22848 \begin_layout Description
22849 commandframe コマンド差込枠の縁色
22850 \end_layout
22851
22852 \begin_layout Description
22853 comment コメント色
22854 \end_layout
22855
22856 \begin_layout Description
22857 commentbg コメントの背景色
22858 \end_layout
22859
22860 \begin_layout Description
22861 cursor カーソル色
22862 \end_layout
22863
22864 \begin_layout Description
22865 deletedtext 削除された文章の色
22866 \end_layout
22867
22868 \begin_layout Description
22869 deletedtextmodifier 削除された文章の修飾子の色
22870 \end_layout
22871
22872 \begin_layout Description
22873 depthbar 余白部の階層表示線の色
22874 \end_layout
22875
22876 \begin_layout Description
22877 eolmarker 行末標色
22878 \end_layout
22879
22880 \begin_layout Description
22881 error \SpecialChar LaTeX
22882 エラーボックス色
22883 \end_layout
22884
22885 \begin_layout Description
22886 footlabel 脚註ラベル色
22887 \end_layout
22888
22889 \begin_layout Description
22890 graphicsbg 画像差込枠の背景色
22891 \end_layout
22892
22893 \begin_layout Description
22894 greyedout 淡色表示差込枠のラベル色
22895 \end_layout
22896
22897 \begin_layout Description
22898 greyedoutbg 淡色表示差込枠の背景色
22899 \end_layout
22900
22901 \begin_layout Description
22902 greyedouttext 淡色表示差込枠の文字色
22903 \end_layout
22904
22905 \begin_layout Description
22906 indexlabel 索引差込枠のラベル色
22907 \end_layout
22908
22909 \begin_layout Description
22910 ignore この色を無視します
22911 \end_layout
22912
22913 \begin_layout Description
22914 inherit この色を継承します
22915 \end_layout
22916
22917 \begin_layout Description
22918 inlinecompletion 行内補完色
22919 \end_layout
22920
22921 \begin_layout Description
22922 insetbg 差込枠標の背景色
22923 \end_layout
22924
22925 \begin_layout Description
22926 insetframe 差込枠標の縁色
22927 \end_layout
22928
22929 \begin_layout Description
22930 language 外国語の単語を標識するための色
22931 \end_layout
22932
22933 \begin_layout Description
22934 latex \SpecialChar LaTeX
22935 モードの文字色
22936 \end_layout
22937
22938 \begin_layout Description
22939 listingsbg プログラムリスト差込枠の背景色
22940 \end_layout
22941
22942 \begin_layout Description
22943 marginlabel 傍註のラベル色
22944 \end_layout
22945
22946 \begin_layout Description
22947 math 数式差込枠の文字色
22948 \end_layout
22949
22950 \begin_layout Description
22951 mathbg 数式差込枠の背景色
22952 \end_layout
22953
22954 \begin_layout Description
22955 mathcorners フォーカスを得ていない数式差込枠の縁色
22956 \end_layout
22957
22958 \begin_layout Description
22959 mathframe フォーカスを得ている数式差込枠の縁色
22960 \end_layout
22961
22962 \begin_layout Description
22963 mathline 数式行色
22964 \end_layout
22965
22966 \begin_layout Description
22967 mathmacrobg 数式マクロ差込枠の背景色
22968 \end_layout
22969
22970 \begin_layout Description
22971 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
22972 \end_layout
22973
22974 \begin_layout Description
22975 mathmacroframe 数式マクロ差込枠の縁色
22976 \end_layout
22977
22978 \begin_layout Description
22979 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
22980 \end_layout
22981
22982 \begin_layout Description
22983 mathmacrolabel 数式マクロ差込枠のラベル色
22984 \end_layout
22985
22986 \begin_layout Description
22987 mathmacronewarg 数式マクロ新パラメーターのひな型色
22988 \end_layout
22989
22990 \begin_layout Description
22991 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
22992 \end_layout
22993
22994 \begin_layout Description
22995 newpage 新規頁色
22996 \end_layout
22997
22998 \begin_layout Description
22999 nonunique_inlinecompletion 行内補完の一意でない部分の色
23000 \end_layout
23001
23002 \begin_layout Description
23003 notebg 註釈の背景色
23004 \end_layout
23005
23006 \begin_layout Description
23007 notelabel 註釈のラベル色
23008 \end_layout
23009
23010 \begin_layout Description
23011 pagebreak 改頁/改行色
23012 \end_layout
23013
23014 \begin_layout Description
23015 paragraphmarker 段落末を標識するための段落標の色
23016 \end_layout
23017
23018 \begin_layout Description
23019 phantomtext 埋め草差込枠の文字色
23020 \end_layout
23021
23022 \begin_layout Description
23023 preview プレビューに用いられる色
23024 \end_layout
23025
23026 \begin_layout Description
23027 previewframe プレビュー縁色
23028 \end_layout
23029
23030 \begin_layout Description
23031 regexpframe 正規表現枠の色
23032 \end_layout
23033
23034 \begin_layout Description
23035 selection 文章選択部の背景色
23036 \end_layout
23037
23038 \begin_layout Description
23039 selectiontext 文章選択部の前景色
23040 \end_layout
23041
23042 \begin_layout Description
23043 shadedbg 影付きボックスの背景色
23044 \end_layout
23045
23046 \begin_layout Description
23047 special 特殊文字の色
23048 \end_layout
23049
23050 \begin_layout Description
23051 tabularline 罫線色
23052 \end_layout
23053
23054 \begin_layout Description
23055 tabularonoffline 罫線色
23056 \end_layout
23057
23058 \begin_layout Description
23059 urllabel URL差込枠のラベル色
23060 \end_layout
23061
23062 \begin_layout Description
23063 urltext URL差込枠の文字色
23064 \end_layout
23065
23066 \end_body
23067 \end_document