]> git.lyx.org Git - features.git/blob - lib/doc/ja/Customization.lyx
doc/template/examples files: port recent changes
[features.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % Added only for Japanese translation
28 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
29 \usepackage[T1]{fontenc}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 \end_modules
36 \maintain_unincluded_children false
37 \begin_local_layout
38 Format 57
39 InsetLayout Flex:MenuItem
40 LyxType               charstyle
41 LabelString           menu
42 LatexType             command
43 LatexName             menuitem
44 Font
45 Family              Sans
46 EndFont
47 Preamble
48 \newcommand*{\menuitem}[1]{{\sffamily #1}}
49 EndPreamble
50 ResetsFont true
51 End
52 # In case we need to do with sans...
53 #InsetLayout CharStyle:Code
54 #Font
55 #Family              Sans
56 #EndFont
57 #Preamble
58 #\renewcommand{\code}[1]{{\sffamily #1}}
59 #EndPreamble
60 #End
61 InsetLayout             Flex:Ruby
62 LyxType         charstyle
63 LatexType               command
64 LatexName               ruby
65 BgColor         none
66 LabelString             "ルビ"
67 Decoration              Conglomerate
68 Argument post:1
69 LabelString     "ルビ文"
70 MenuString      "ルビ文(S)|S"
71 Decoration      Conglomerate
72 Font
73 Size            tiny
74 EndFont
75 LabelFont
76 Size            tiny
77 EndFont
78 Mandatory       1
79 EndArgument
80 Preamble
81 \IfFileExists{okumacro.sty}
82 {\usepackage{okumacro}}
83 {\newcommand{\ruby}[2]{#2}}
84 EndPreamble
85 ResetsFont true
86 End
87 \end_local_layout
88 \language japanese
89 \language_package default
90 \inputencoding auto
91 \fontencoding global
92 \font_roman "default" "default"
93 \font_sans "default" "default"
94 \font_typewriter "default" "default"
95 \font_math "auto" "auto"
96 \font_default_family default
97 \use_non_tex_fonts false
98 \font_sc false
99 \font_osf false
100 \font_sf_scale 100 100
101 \font_tt_scale 100 100
102 \graphics default
103 \default_output_format pdf3
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX Configuration Manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX-Documentation Customization"
113 \pdf_keywords "LyX, documentation, customization"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen true
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "driverfallback=dvipdfmx, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 0
127 \use_package amssymb 0
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 0
131 \use_package mathtools 0
132 \use_package mhchem 0
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification false
144 \use_refstyle 0
145 \notefontcolor #0000ff
146 \branch OutDated
147 \selected 0
148 \filename_suffix 0
149 \color #f5fae7
150 \end_branch
151 \index 索引
152 \shortcut idx
153 \color #008000
154 \end_index
155 \secnumdepth 3
156 \tocdepth 3
157 \paragraph_separation indent
158 \paragraph_indentation default
159 \quotes_language english
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \end_header
169
170 \begin_body
171
172 \begin_layout Title
173 \SpecialChar LyX
174 の高度設定
175 \begin_inset Newline newline
176 \end_inset
177
178 熟練ユーザのための各機能
179 \end_layout
180
181 \begin_layout Author
182 \SpecialChar LyX
183 開発チーム
184 \begin_inset Foot
185 status collapsed
186
187 \begin_layout Plain Layout
188 \noindent
189 もしコメントや誤りの修正をお持ちでしたら,\SpecialChar LyX
190 文書化メーリングリスト
191 \begin_inset CommandInset href
192 LatexCommand href
193 target "lyx-docs@lists.lyx.org"
194 type "mailto:"
195
196 \end_inset
197
198 宛お送りください.件名ヘッダに「[Customization]」という文字を入れ,このファイルの現在のメンテナRichard Heck <rgheck@comc
199 ast.net>をccにして送ってください.
200 \end_layout
201
202 \end_inset
203
204
205 \begin_inset Newline newline
206 \end_inset
207
208
209 \begin_inset Newline newline
210 \end_inset
211
212 第2.2.x版 
213 \end_layout
214
215 \begin_layout Standard
216 \begin_inset CommandInset toc
217 LatexCommand tableofcontents
218
219 \end_inset
220
221
222 \begin_inset Note Note
223 status open
224
225 \begin_layout Plain Layout
226 本文書を修正する際には,変更追跡機能を使用してください.これによって,
227 \end_layout
228
229 \begin_layout Plain Layout
230 \SpecialChar LyX
231 翻訳者陣が変更点を認識しやすくなり,メンテナが最新の状態を維持することが容易になります.
232 \end_layout
233
234 \end_inset
235
236
237 \end_layout
238
239 \begin_layout Chapter
240 はじめに
241 \end_layout
242
243 \begin_layout Standard
244 この取扱説明書は,\SpecialChar LyX
245 に備わっている高度設定機能を取り扱います.ここでは,
246 \begin_inset Flex Ruby
247 status collapsed
248
249 \begin_layout Plain Layout
250 捷径
251 \begin_inset Argument post:1
252 status collapsed
253
254 \begin_layout Plain Layout
255 ショートカット
256 \end_layout
257
258 \end_inset
259
260
261 \end_layout
262
263 \end_inset
264
265 や画面プレビューオプション,プリンタオプション,\SpecialChar LyX
266 サーバ経由での\SpecialChar LyX
267 へのコマンド送信,国際化,新しい\SpecialChar LaTeX
268 クラスや\SpecialChar LyX
269 レイアウトの導入などの題材について論じます.おそらくは変更
270 可能なことすべてについて触れることは無理でしょうが—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—,もっとも一般的な高
271 度設定については説明を行い,わかりにくいものについては正しい方向を指し示すことができるようにしていくつもりです.
272 \end_layout
273
274 \begin_layout Standard
275 \begin_inset Branch OutDated
276 status collapsed
277
278 \begin_layout Standard
279 Information from previous versions of this document that now seems to be
280  outdated is contained in the OutDated branch of this document.
281  By default, this information will not appear in the \SpecialChar LaTeX
282  output.
283 \end_layout
284
285 \end_inset
286
287
288 \end_layout
289
290 \begin_layout Chapter
291 \SpecialChar LyX
292 設定ファイル
293 \end_layout
294
295 \begin_layout Standard
296 本章の目的は,\SpecialChar LyX
297 設定ファイル群を理解するための一助となることです.本章を読み進める前に,
298 \begin_inset Flex MenuItem
299 status collapsed
300
301 \begin_layout Plain Layout
302 ヘルプ\SpecialChar menuseparator
303 LyXについて
304 \end_layout
305
306 \end_inset
307
308 を使って,\SpecialChar LyX
309 ライブラリとユーザディレクトリがどこにあるかを確認しておいてください.ライブラリディレクトリは,\SpecialChar LyX
310 がシステム全体の設定ファイルを置いておくところです.一
311 方,ユーザディレクトリは,自身がそれを修正した版を置いておくところです.私たちは,本書の以下の部分で,前者を
312 \begin_inset Flex Code
313 status collapsed
314
315 \begin_layout Plain Layout
316 LyXDir
317 \end_layout
318
319 \end_inset
320
321 と呼び,後者を
322 \begin_inset Flex MenuItem
323 status collapsed
324
325 \begin_layout Plain Layout
326 UserDir
327 \end_layout
328
329 \end_inset
330
331 と呼ぶことにします.
332 \end_layout
333
334 \begin_layout Section
335 \begin_inset Flex Code
336 status collapsed
337
338 \begin_layout Plain Layout
339 LyXDir
340 \end_layout
341
342 \end_inset
343
344 にはなにがあるの?
345 \end_layout
346
347 \begin_layout Standard
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 LyXDir
353 \end_layout
354
355 \end_inset
356
357 とそのサブディレクトリには,多くのファイルがあり,\SpecialChar LyX
358 の挙動を高度設定するのに使用されます.これらのファイルの多くは,\SpecialChar LyX
359 内の
360 \begin_inset Flex MenuItem
361 status collapsed
362
363 \begin_layout Plain Layout
364 ツール\SpecialChar menuseparator
365 設定
366 \end_layout
367
368 \end_inset
369
370 ダイアログから変更することができます.\SpecialChar LyX
371 中で行いたいと思うような高度設定は,ほとんどこのダイアログから行うことができるようになっています.しかしながら,LyXの他
372 の多くの内部動作は,
373 \begin_inset Flex Code
374 status collapsed
375
376 \begin_layout Plain Layout
377 LyXDir
378 \end_layout
379
380 \end_inset
381
382 のファイルを修正することで高度設定されます.これらのファイルは様々なカテゴリに分類しうるので,以下の各小節で説明します.
383 \end_layout
384
385 \begin_layout Subsection
386 自動的に生成されるファイル
387 \end_layout
388
389 \begin_layout Standard
390 \begin_inset Flex MenuItem
391 status collapsed
392
393 \begin_layout Plain Layout
394 UserDir
395 \end_layout
396
397 \end_inset
398
399 にある各ファイルは,\SpecialChar LyX
400 が自動設定を行ったときに生成されます.これらのファイルは,内部調査中に推測された様々な既定値が置かれています.これらは,随時上書きされてしま
401 うので,一般的には修正しないことが望まれます.
402 \end_layout
403
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
407 status collapsed
408
409 \begin_layout Plain Layout
410 lyxrc.defaults
411 \end_layout
412
413 \end_inset
414
415  このファイルには,様々な既定コマンドが置かれています.
416 \end_layout
417
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
421 status collapsed
422
423 \begin_layout Plain Layout
424 packages.lst
425 \end_layout
426
427 \end_inset
428
429  このファイルには,\SpecialChar LyX
430 が認識したパッケージの一覧が収められています.現在のところ,これは\SpecialChar LyX
431 プログラム自体には使用されていませんが,抽出された情報その他は,
432 \begin_inset Flex MenuItem
433 status collapsed
434
435 \begin_layout Plain Layout
436 ヘルプ\SpecialChar menuseparator
437 LaT
438 \begin_inset ERT
439 status collapsed
440
441 \begin_layout Plain Layout
442
443 {}
444 \end_layout
445
446 \end_inset
447
448 eXの設定
449 \end_layout
450
451 \end_inset
452
453 で見ることができます.
454 \end_layout
455
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 textclass.lst
463 \end_layout
464
465 \end_inset
466
467  ユーザの
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 Plain L
473 \end_layout
474
475 \end_inset
476
477 ディレクトリで検出されたテキストクラスと,関連した\SpecialChar LaTeX
478 文書クラスおよびその説明の一覧です.
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 lyxmodules.lst
488 \end_layout
489
490 \end_inset
491
492  ユーザの
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 layout/
498 \end_layout
499
500 \end_inset
501
502 ディレクトリで検出されたレイアウトモジュールの一覧です.
503 \end_layout
504
505 \begin_layout Labeling
506 \labelwidthstring 00.00.0000
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 *files.lst
512 \end_layout
513
514 \end_inset
515
516  ご使用のシステムで検出された様々な種類の\SpecialChar LaTeX
517 関連ファイルの一覧です.
518 \end_layout
519
520 \begin_layout Labeling
521 \labelwidthstring 00.00.0000
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 doc/LaT
527 \begin_inset ERT
528 status collapsed
529
530 \begin_layout Plain Layout
531
532 {}
533 \end_layout
534
535 \end_inset
536
537 eXConfig.lyx
538 \end_layout
539
540 \end_inset
541
542  このファイルは,自動設定中に
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 LaT
548 \begin_inset ERT
549 status collapsed
550
551 \begin_layout Plain Layout
552
553 {}
554 \end_layout
555
556 \end_inset
557
558 eXConfig.lyx.in
559 \end_layout
560
561 \end_inset
562
563 から自動的に生成されます.ご使用中の\SpecialChar LaTeX
564 の設定に関する情報が納められています.
565 \end_layout
566
567 \begin_layout Subsection
568 ディレクトリ
569 \end_layout
570
571 \begin_layout Standard
572 以下の各ディレクトリは,
573 \begin_inset Flex Code
574 status collapsed
575
576 \begin_layout Plain Layout
577 LyXDir
578 \end_layout
579
580 \end_inset
581
582
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 UserDir
588 \end_layout
589
590 \end_inset
591
592 に重複して存在します.特定のファイルが両方の場所にある場合には,
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 UserDir
598 \end_layout
599
600 \end_inset
601
602 の方にあるものが使用されます.
603 \end_layout
604
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 bind/
612 \end_layout
613
614 \end_inset
615
616  このディレクトリには,\SpecialChar LyX
617 で使用されるキー割当を定義している,拡張子が
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 .bind
623 \end_layout
624
625 \end_inset
626
627 のファイルが置かれています.
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 $LANG_xxx.bind
633 \end_layout
634
635 \end_inset
636
637 という名称の割当ファイルの各国語版がある場合には,そちらが用いられます.
638 \end_layout
639
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 clipart/
647 \end_layout
648
649 \end_inset
650
651  このディレクトリには,文書に取り込むことのできる画像ファイルが納められています.
652 \end_layout
653
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 doc/
661 \end_layout
662
663 \end_inset
664
665  このディレクトリには,\SpecialChar LyX
666 の取扱説明書ファイル(今お読みのものも含めて)が納められています.上述のように,
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 LaTeXConfig.lyx
672 \end_layout
673
674 \end_inset
675
676 ファイルは特に注目に値します.各国語版のヘルプ文書は,
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 doc/xx
682 \end_layout
683
684 \end_inset
685
686 (「xx」はISO言語コード)サブディレクトリにあります.詳しくは,
687 \begin_inset CommandInset ref
688 LatexCommand ref
689 reference "cha:LyXの各国語対応"
690
691 \end_inset
692
693 をご覧ください.
694 \end_layout
695
696 \begin_layout Labeling
697 \labelwidthstring 00.00.0000
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 examples/
703 \end_layout
704
705 \end_inset
706
707  このディレクトリには,何らかの機能の使い方を説明する例示ファイルが納められています.ファイルブラウザ中で
708 \begin_inset Flex MenuItem
709 status collapsed
710
711 \begin_layout Plain Layout
712 用例
713 \end_layout
714
715 \end_inset
716
717 ボタンを押すと,このディレクトリが表示されます.
718 \end_layout
719
720 \begin_layout Labeling
721 \labelwidthstring 00.00.0000
722 \begin_inset Flex Code
723 status collapsed
724
725 \begin_layout Plain Layout
726 images/
727 \end_layout
728
729 \end_inset
730
731  このディレクトリには,
732 \begin_inset Flex MenuItem
733 status collapsed
734
735 \begin_layout Plain Layout
736 文書
737 \end_layout
738
739 \end_inset
740
741 ダイアログで使用される画像ファイルが納められています.さらに,ツールバーの各アイコンや,\SpecialChar LyX
742 を起動したときに現れるバナーも納められています.
743 \end_layout
744
745 \begin_layout Labeling
746 \labelwidthstring 00.00.0000
747 \begin_inset Flex Code
748 status collapsed
749
750 \begin_layout Plain Layout
751 kbd/
752 \end_layout
753
754 \end_inset
755
756  このディレクトリには,キーボードのキー割当ファイルが納められています.詳細については,
757 \begin_inset CommandInset ref
758 LatexCommand ref
759 reference "sec:国際キー配列"
760
761 \end_inset
762
763 をご覧ください.
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 layouts/
773 \end_layout
774
775 \end_inset
776
777  このディレクトリには,
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "cha:新規文書を導入"
781
782 \end_inset
783
784 に述べられているテキストクラスおよびモジュールのファイルが納められています.
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 lyx2lyx
794 \end_layout
795
796 \end_inset
797
798  このディレクトリには,\SpecialChar LyX
799 の各バージョン間の変換に使用される
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 lyx2lyx
805 \end_layout
806
807 \end_inset
808
809  Pythonスクリプトが納められています.たとえば,複数のファイルの変換をバッチ処理したい場合には,これらをコマンドラインから実行することもできます.
810 \end_layout
811
812 \begin_layout Labeling
813 \labelwidthstring 00.00.0000
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 scripts/
819 \end_layout
820
821 \end_inset
822
823  このディレクトリには,
824 \begin_inset Flex MenuItem
825 status collapsed
826
827 \begin_layout Plain Layout
828 外用ひな型
829 \end_layout
830
831 \end_inset
832
833 機能の有用性を示すためのファイルがいくつか納められています.\SpecialChar LyX
834 自身が使用するスクリプトもいくつか収められています.
835 \end_layout
836
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 templates/
844 \end_layout
845
846 \end_inset
847
848  このディレクトリには,
849 \begin_inset CommandInset ref
850 LatexCommand ref
851 reference "sec:ひな型を作成する"
852
853 \end_inset
854
855 で述べられている標準の\SpecialChar LyX
856 ひな型ファイルが納められています.
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 ui/
866 \end_layout
867
868 \end_inset
869
870  このディレクトリには,\SpecialChar LyX
871 の操作画面を定義する拡張子
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 .ui
877 \end_layout
878
879 \end_inset
880
881 のファイルが納められています.つまり,これらのファイルは,どのメニュー項目がどのメニューに現れるかを定義し,どの項目がツールバーに現れるかを定義しています.
882 \end_layout
883
884 \begin_layout Subsection
885 変更を加えない方がよいファイル
886 \end_layout
887
888 \begin_layout Standard
889 これらのファイルは\SpecialChar LyX
890 が内部的に使用するもので,あなたが開発者でない限りは,凡そこれらに変更を加える必要はありません.
891 \end_layout
892
893 \begin_layout Labeling
894 \labelwidthstring 00.00.0000
895 \begin_inset Flex Code
896 status collapsed
897
898 \begin_layout Plain Layout
899 CREDITS
900 \end_layout
901
902 \end_inset
903
904  このファイルは,\SpecialChar LyX
905 開発陣の名簿です.この内容は,メニュー項目
906 \begin_inset Flex MenuItem
907 status collapsed
908
909 \begin_layout Plain Layout
910 ヘルプ\SpecialChar menuseparator
911 LyXについて
912 \end_layout
913
914 \end_inset
915
916 で表示されます.
917 \end_layout
918
919 \begin_layout Labeling
920 \labelwidthstring 00.00.0000
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 chkconfig.ltx
926 \end_layout
927
928 \end_inset
929
930  これは,自動設定プロセスによって使用される\SpecialChar LaTeX
931 スクリプトです.直接実行しないでください.
932 \end_layout
933
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 configure.py
941 \end_layout
942
943 \end_inset
944
945  これは,\SpecialChar LyX
946 の環境構成によって使用されるスクリプトです.これは,このスクリプトを実行したディレクトリに設定ファイルを生成します.
947 \end_layout
948
949 \begin_layout Subsection
950 ひとこと必要なファイル群
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 encodings
960 \end_layout
961
962 \end_inset
963
964  このファイルには,各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています.
965 \end_layout
966
967 \begin_layout Labeling
968 \labelwidthstring 00.00.0000
969 \begin_inset Flex Code
970 status collapsed
971
972 \begin_layout Plain Layout
973 external_templates
974 \end_layout
975
976 \end_inset
977
978  このファイルには,新しく導入された
979 \begin_inset Flex MenuItem
980 status collapsed
981
982 \begin_layout Plain Layout
983 外用ひな型
984 \end_layout
985
986 \end_inset
987
988 機能で使用できるひな型が載っています.
989 \begin_inset CommandInset ref
990 LatexCommand ref
991 reference "chap:外部素材を取り込む"
992
993 \end_inset
994
995 を参照のこと.
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 languages
1005 \end_layout
1006
1007 \end_inset
1008
1009  このファイルには,現在\SpecialChar LyX
1010 がサポートしている言語の全一覧が載っています.
1011 \end_layout
1012
1013 \begin_layout Labeling
1014 \labelwidthstring 00.00.0000
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 latexfonts
1020 \end_layout
1021
1022 \end_inset
1023
1024  サポートされているフォントに関する情報が掲載されています.
1025 \end_layout
1026
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 layouttranslations
1034 \end_layout
1035
1036 \end_inset
1037
1038  このファイルは,国際化された段落様式の翻訳が収録されています(
1039 \begin_inset CommandInset ref
1040 LatexCommand ref
1041 reference "subsec:段落様式の国際化"
1042
1043 \end_inset
1044
1045 参照).
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 unicodesymbols
1055 \end_layout
1056
1057 \end_inset
1058
1059  このファイルは,unicodeエンコーディングされたグリフに関する情報と,\SpecialChar LyX
1060 が\SpecialChar LaTeX
1061 を介してそれらをどのようにサポートしているかについての情報を含んでいます.
1062 \end_layout
1063
1064 \begin_layout Section
1065 ユーザのローカル設定ディレクトリ
1066 \end_layout
1067
1068 \begin_layout Standard
1069 \SpecialChar LyX
1070 を非特権ユーザとして利用している場合でも,自分自身で使うために,\SpecialChar LyX
1071 の設定を変更したいと思うかもしれません.
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 UserDir
1077 \end_layout
1078
1079 \end_inset
1080
1081 ディレクトリには,すべての個人設定ファイルが収められています.これは,
1082 \begin_inset Flex MenuItem
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086 ヘルプ\SpecialChar menuseparator
1087 LyXについて
1088 \end_layout
1089
1090 \end_inset
1091
1092 で「ユーザーディレクトリ」として言及されているディレクトリです.このディレクトリは,
1093 \begin_inset Flex Code
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 LyXDir
1098 \end_layout
1099
1100 \end_inset
1101
1102 のミラーとして使用されており,これは
1103 \begin_inset Flex Code
1104 status collapsed
1105
1106 \begin_layout Plain Layout
1107 UserDir
1108 \end_layout
1109
1110 \end_inset
1111
1112 内のすべてのファイルが,
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 LyXDir
1118 \end_layout
1119
1120 \end_inset
1121
1122 すし,自分自身で使うために個人のローカルディレクトリに置くこともできます.
1123 \end_layout
1124
1125 \begin_layout Standard
1126 わかりやすくするために,いくつか例を挙げましょう.
1127 \end_layout
1128
1129 \begin_layout Itemize
1130 \begin_inset Flex MenuItem
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 ツール\SpecialChar menuseparator
1135 設定
1136 \end_layout
1137
1138 \end_inset
1139
1140 ダイアログで設定されるユーザ設定は,
1141 \begin_inset Flex Code
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145 UserDir
1146 \end_layout
1147
1148 \end_inset
1149
1150 中の
1151 \begin_inset Flex Code
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155 preferences
1156 \end_layout
1157
1158 \end_inset
1159
1160 ファイルに保存されます.
1161 \end_layout
1162
1163 \begin_layout Itemize
1164 \begin_inset Flex MenuItem
1165 status collapsed
1166
1167 \begin_layout Plain Layout
1168 ツール\SpecialChar menuseparator
1169 環境構成
1170 \end_layout
1171
1172 \end_inset
1173
1174 を使用して環境構成を行うと,\SpecialChar LyX
1175
1176 \begin_inset Flex Code
1177 status collapsed
1178
1179 \begin_layout Plain Layout
1180 configure.py
1181 \end_layout
1182
1183 \end_inset
1184
1185 スクリプトを実行し,その結果のファイルは,ご自身のローカル設定ディレクトリに書き込まれます.これはすなわち,
1186 \begin_inset Flex Code
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 UserDir/layouts
1191 \end_layout
1192
1193 \end_inset
1194
1195 にご自身で追加したテキストファイルは,
1196 \begin_inset Flex MenuItem
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 文書\SpecialChar menuseparator
1201 設定
1202 \end_layout
1203
1204 \end_inset
1205
1206 ダイアログのクラス一覧に表示されるようになることを意味します.
1207 \end_layout
1208
1209 \begin_layout Itemize
1210 たとえば,\SpecialChar LyX
1211 のFTPサイトから最新の取扱説明書をとってきたものの,使用中のシステム上で管理者権限がないために,それをインストールすることができなかったとしても,そ
1212 れらのファイルを
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 UserDir/doc/
1218 \end_layout
1219
1220 \end_inset
1221
1222 ディレクトリにコピーすれば,
1223 \begin_inset Flex MenuItem
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 ヘルプ
1228 \end_layout
1229
1230 \end_inset
1231
1232 メニュー項目はこれらを開くようになります!
1233 \end_layout
1234
1235 \begin_layout Section
1236 \SpecialChar LyX
1237 を複数の設定を使って実行するには
1238 \end_layout
1239
1240 \begin_layout Standard
1241 ローカル設定ディレクトリにおいて設定の自由度があるだけでは,2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません.たとえば,使用する度に異なる
1242 キー割当を使用したり,異なるプリンタ設定を使用したいことがあるかもしれません.これは,複数の設定ディレクトリを作ることで実現することができます.そして,実行時に
1243 どのディレクトリを使用するか指定するのです.
1244 \end_layout
1245
1246 \begin_layout Standard
1247 \SpecialChar LyX
1248 をコマンドラインスイッチ
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 -userdir
1254 \end_layout
1255
1256 \end_inset
1257
1258 P
1259 \emph on
1260 <ディレクトリ名>
1261 \emph default
1262 と共に起動すると,設定を既定のディレクトリではなく,指定したディレクトリから読み込むように,指示することになります(\SpecialChar LyX
1263
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 -userdir
1269 \end_layout
1270
1271 \end_inset
1272
1273 スイッチなしで実行すれば,既定ディレクトリを指定することになります).指定したディレクトリが存在しない場合には,\SpecialChar LyX
1274 は,初めて\SpecialChar LyX
1275 を実行したときに既定ディレクトリを訊い
1276 てくるのと同様に,そのディレクトリを作るかどうか訊いてきます.この追加したユーザディレクトリでは,既定ディレクトリで行うのと全く同じように設定オプションを修正す
1277 ることができます.これらのディレクトリは完全に独立しています(が,読み進めてください).また,環境変数
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 LYX_USERDIR_20x
1283 \end_layout
1284
1285 \end_inset
1286
1287 を特定の値に設定しても,全く同じ効果があります.
1288 \end_layout
1289
1290 \begin_layout Standard
1291 複数の設定を持つことはまた,維持の手間も増えるということです.もし新しいレイアウトを
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 NewUserDir/layouts
1297 \end_layout
1298
1299 \end_inset
1300
1301 に加えて,これをすべての設定で利用できるようにしたいならば,これをすべての設定ディレクトリで個々に付け加えなくてはなりません.これを避けるには,次のようなトリッ
1302 クを使用してください.\SpecialChar LyX
1303 が新しい設定ディレクトリを生成すると,そのサブディレクトリ(上記参照)はほとんど空です.新しい設定が既存のものをミラーするようにするには,
1304 空のサブディレクトリを,既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください.ただし
1305 \begin_inset Flex Code
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309 doc/
1310 \end_layout
1311
1312 \end_inset
1313
1314 サブディレクトリには,設定スクリプト(
1315 \begin_inset Flex MenuItem
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 ツール\SpecialChar menuseparator
1320 環境構成
1321 \end_layout
1322
1323 \end_inset
1324
1325 で使用可能)が書き出した,設定毎に異なるファイルが含まれていますので,注意を払ってください.
1326 \end_layout
1327
1328 \begin_layout Chapter
1329 設定ダイアログ
1330 \end_layout
1331
1332 \begin_layout Standard
1333 設定ダイアログのオプションのすべては,
1334 \emph on
1335 ユーザーの手引き
1336 \emph default
1337 の付録
1338 \emph on
1339 設定ダイアログ
1340 \emph default
1341 に述べられています.オプションのうちいくつかについて,ここでさらに詳細に説明します.
1342 \end_layout
1343
1344 \begin_layout Section
1345 ファイル形式
1346 \begin_inset CommandInset label
1347 LatexCommand label
1348 name "sec:ファイル形式"
1349
1350 \end_inset
1351
1352
1353 \end_layout
1354
1355 \begin_layout Standard
1356 ファイル形式が定義されていない場合,はじめの一歩は,使いたいと思うファイル形式を定義することです.それには,
1357 \begin_inset Flex MenuItem
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 ツール\SpecialChar menuseparator
1362 設定
1363 \end_layout
1364
1365 \end_inset
1366
1367 ダイアログを開いてください.
1368 \begin_inset Flex MenuItem
1369 status collapsed
1370
1371 \begin_layout Plain Layout
1372 ファイル処理\SpecialChar menuseparator
1373 ファイル形式
1374 \end_layout
1375
1376 \end_inset
1377
1378 の中で
1379 \begin_inset Flex MenuItem
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 新規\SpecialChar ldots
1384
1385 \end_layout
1386
1387 \end_inset
1388
1389 ボタンを押して,登録する新しい形式を定義してください.
1390 \begin_inset Flex MenuItem
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 形式
1395 \end_layout
1396
1397 \end_inset
1398
1399 フィールドは,GUI中で形式を認識するために用いられる名称です.
1400 \begin_inset Flex MenuItem
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404 短縮名
1405 \end_layout
1406
1407 \end_inset
1408
1409 は,形式を内部的に識別するために用いられます.さらにファイル拡張子も入力する必要があります.これらはすべて必須事項です.オプションの
1410 \begin_inset Flex MenuItem
1411 status collapsed
1412
1413 \begin_layout Plain Layout
1414 捷径
1415 \end_layout
1416
1417 \end_inset
1418
1419 フィールドは,メニュー中で
1420 \begin_inset Flex Ruby
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424 捷径
1425 \begin_inset Argument post:1
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 ショートカット
1430 \end_layout
1431
1432 \end_inset
1433
1434
1435 \end_layout
1436
1437 \end_inset
1438
1439 を提供するのに使用されます(たとえば,
1440 \begin_inset Flex MenuItem
1441 status collapsed
1442
1443 \begin_layout Plain Layout
1444 Ctrl+D
1445 \end_layout
1446
1447 \end_inset
1448
1449 を押すと
1450 \begin_inset Flex MenuItem
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 表示\SpecialChar menuseparator
1455 DVI
1456 \end_layout
1457
1458 \end_inset
1459
1460 となります).
1461 \end_layout
1462
1463 \begin_layout Standard
1464 形式には,
1465 \begin_inset Flex MenuItem
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 閲覧プログラム
1470 \end_layout
1471
1472 \end_inset
1473
1474
1475 \begin_inset Flex MenuItem
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 編集プログラム
1480 \end_layout
1481
1482 \end_inset
1483
1484 を関連づけることができます.たとえば,PostScriptファイルを閲覧するのに
1485 \begin_inset Flex MenuItem
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 Ghostview
1490 \end_layout
1491
1492 \end_inset
1493
1494 を使用したいとしましょう.このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します.ここで,コマンドを定義するのに,次節に掲げる4つの変数を用
1495 いることができます.この閲覧プログラムは,\SpecialChar LyX
1496 中で画像を閲覧したり
1497 \begin_inset Flex MenuItem
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 表示
1502 \end_layout
1503
1504 \end_inset
1505
1506 メニューを使用したときに起動されます.一方,編集プログラムは,たとえば,画像を右クリックして現れるコンテクストメニューで
1507 \begin_inset Flex MenuItem
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 外部で編集
1512 \end_layout
1513
1514 \end_inset
1515
1516 を選択したときに起動します.
1517 \end_layout
1518
1519 \begin_layout Standard
1520 ファイル形式の
1521 \begin_inset Flex MenuItem
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 MIME
1526 \end_layout
1527
1528 \end_inset
1529
1530 型は必須ではありませんが,指定するときには,すべての形式の中で一意的なものでなくてはなりません.これは,この形式のファイルをファイル内容から検出するのに用いられ
1531 ます.重要なファイル形式のうちには,
1532 \begin_inset CommandInset href
1533 LatexCommand href
1534 name "IANA"
1535 target "http://www.iana.org/assignments/media-types/"
1536
1537 \end_inset
1538
1539 に公式に登録されたMIME型がないものがあります.そこで,\SpecialChar LyX
1540 は,
1541 \begin_inset CommandInset href
1542 LatexCommand href
1543 name "freedesktop.org"
1544 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1545
1546 \end_inset
1547
1548 で指定されているMIME型拡張表を使用しています.
1549 \end_layout
1550
1551 \begin_layout Standard
1552 \begin_inset Flex MenuItem
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 文書形式
1557 \end_layout
1558
1559 \end_inset
1560
1561 オプションは,\SpecialChar LyX
1562 に,この形式が文書として書き出すのに適していることを指示するものです.このオプションが有効となっていて,適切な変換経路が存在する場合には(第
1563 \begin_inset CommandInset ref
1564 LatexCommand ref
1565 reference "sec:変換子"
1566
1567 \end_inset
1568
1569 節を参照),この形式が
1570 \begin_inset Flex MenuItem
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 ファイル\SpecialChar menuseparator
1575 書き出し
1576 \end_layout
1577
1578 \end_inset
1579
1580
1581 \begin_inset Flex MenuItem
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 表示
1586 \end_layout
1587
1588 \end_inset
1589
1590 footlabel Label color for footnotす.
1591 \begin_inset Flex Code
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 png
1596 \end_layout
1597
1598 \end_inset
1599
1600 のような純粋な画像形式は,このオプションを有効にしてはいけません.
1601 \begin_inset Flex Code
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 pdf
1606 \end_layout
1607
1608 \end_inset
1609
1610 のようにベクター画像であると同時に文書でもあるような形式は,これを有効にします.
1611 \end_layout
1612
1613 \begin_layout Standard
1614 \begin_inset Flex MenuItem
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618 ベクター画像形式
1619 \end_layout
1620
1621 \end_inset
1622
1623 オプションは,\SpecialChar LyX
1624 にこの形式がベクター画像を含みうることを教示するものです.この情報は,
1625 \begin_inset Flex MenuItem
1626 status collapsed
1627
1628 \begin_layout Plain Layout
1629 pdflatex
1630 \end_layout
1631
1632 \end_inset
1633
1634 を書き出す際に,内包されている画像をどの形式に変換するかを決定するのに使用されます.
1635 \begin_inset Flex MenuItem
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 pdflatex
1640 \end_layout
1641
1642 \end_inset
1643
1644 は,
1645 \begin_inset Flex MenuItem
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 pdf
1650 \end_layout
1651
1652 \end_inset
1653
1654
1655 \begin_inset Flex MenuItem
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 png
1660 \end_layout
1661
1662 \end_inset
1663
1664
1665 \begin_inset Flex MenuItem
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Des
1670 \end_layout
1671
1672 \end_inset
1673
1674 以外の画像形式を取り扱うことができないので,内包されている画像は,これらの形式に変換される必要があるかもしれない為です.内包されている画像が既に
1675 \begin_inset Flex MenuItem
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 pdf
1680 \end_layout
1681
1682 \end_inset
1683
1684
1685 \begin_inset Flex MenuItem
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 png
1690 \end_layout
1691
1692 \end_inset
1693
1694
1695 \begin_inset Flex MenuItem
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 jpg
1700 \end_layout
1701
1702 \end_inset
1703
1704 のいずれかになっていない場合には,ベクター画像形式オプションが有効になっている場合には
1705 \begin_inset Flex MenuItem
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 pdf
1710 \end_layout
1711
1712 \end_inset
1713
1714 に変換され,そうでない場合には
1715 \begin_inset Flex MenuItem
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 png
1720 \end_layout
1721
1722 \end_inset
1723
1724 に変換されます.
1725 \end_layout
1726
1727 \begin_layout Section
1728 複写子
1729 \end_layout
1730
1731 \begin_layout Standard
1732 形式の変換はすべて,\SpecialChar LyX
1733 の一時ディレクトリで行われるため,変換用にファイルを一時ディレクトリにコピーする前段階で,ファイルに変更を加える必要のあることがあります
1734 \begin_inset Foot
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 たとえば,ファイルが他のファイル—たとえば画像—を,相対ファイル名を用いて参照している場合,このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1739 あります.
1740 \end_layout
1741
1742 \end_inset
1743
1744 .これは複写子によって取り扱われ,複写子は,ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に,その過程でファイルに変更を加えます.
1745 \end_layout
1746
1747 \begin_layout Standard
1748 複写子の定義においては,以下の8つの変数を用いることができます.
1749 \end_layout
1750
1751 \begin_layout Labeling
1752 \labelwidthstring 00.00.0000
1753 \begin_inset Flex Code
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 $$s
1758 \end_layout
1759
1760 \end_inset
1761
1762  \SpecialChar LyX
1763 のシステムディレクトリ(例:
1764 \begin_inset Flex MenuItem
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 /usr/share/lyx
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \end_layout
1775
1776 \begin_layout Labeling
1777 \labelwidthstring 00.00.0000
1778 \begin_inset Flex Code
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 $$i
1783 \end_layout
1784
1785 \end_inset
1786
1787  入力ファイル
1788 \end_layout
1789
1790 \begin_layout Labeling
1791 \labelwidthstring 00.00.0000
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 $$o
1797 \end_layout
1798
1799 \end_inset
1800
1801  出力ファイル
1802 \end_layout
1803
1804 \begin_layout Labeling
1805 \labelwidthstring 00.00.0000
1806 \begin_inset Flex Code
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 $$b
1811 \end_layout
1812
1813 \end_inset
1814
1815  \SpecialChar LyX
1816 一時ディレクトリ内でのベース名(ファイル拡張子なし)
1817 \end_layout
1818
1819 \begin_layout Labeling
1820 \labelwidthstring 00.00.0000
1821 \begin_inset Flex Code
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 $$p
1826 \end_layout
1827
1828 \end_inset
1829
1830  \SpecialChar LyX
1831 一時ディレクトリのフルパス名
1832 \end_layout
1833
1834 \begin_layout Labeling
1835 \labelwidthstring 00.00.0000
1836 \begin_inset Flex Code
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 $$r
1841 \end_layout
1842
1843 \end_inset
1844
1845  処理されている元の\SpecialChar LyX
1846 ファイルのフルパス名
1847 \end_layout
1848
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 $$f
1856 \end_layout
1857
1858 \end_inset
1859
1860  \SpecialChar LyX
1861 ファイルのファイル名(ディレクトリパスなし)
1862 \end_layout
1863
1864 \begin_layout Labeling
1865 \labelwidthstring 00.00.0000
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 $$l
1871 \end_layout
1872
1873 \end_inset
1874
1875  「\SpecialChar LaTeX
1876 名」
1877 \end_layout
1878
1879 \begin_layout Standard
1880 最後の変数は,\SpecialChar LaTeX
1881
1882 \series bold
1883
1884 \backslash
1885 include
1886 \series default
1887 コマンドで使用されるのと同形式のファイル名です.これは,書き出すファイルがそのようなインクルードに適している場合のみ,使用さるべきものです.
1888 \end_layout
1889
1890 \begin_layout Standard
1891 複写子は,出力ファイルに関する操作であれば,ほとんどすべてに対応することができます.たとえば,生成したPDFファイルを,
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 /home/you/pdf/
1897 \end_layout
1898
1899 \end_inset
1900
1901 という特別なディレクトリにコピーしたいものとしましょう.その場合には,以下のようなシェルスクリプトを書きます.
1902 \end_layout
1903
1904 \begin_layout Standard
1905 \begin_inset listings
1906 inline false
1907 status open
1908
1909 \begin_layout Plain Layout
1910
1911 #!/bin/bash
1912 \end_layout
1913
1914 \begin_layout Plain Layout
1915
1916 FROMFILE=$1
1917 \end_layout
1918
1919 \begin_layout Plain Layout
1920
1921 TOFILE=`basename $2`
1922 \end_layout
1923
1924 \begin_layout Plain Layout
1925
1926 DescriptionE /home/you/pdf/$TOFILE
1927 \end_layout
1928
1929 \end_inset
1930
1931 これを,例えば
1932 \begin_inset Flex Code
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 /home/you/.lyx/scripts/pdfcopier.sh
1937 \end_layout
1938
1939 \end_inset
1940
1941 のような,自身のローカル\SpecialChar LyX
1942 ディレクトリに保存し,お使いのプラットフォームが必要とするならば,実行可能属性を付与します.それから,
1943 \begin_inset Flex MenuItem
1944 status collapsed
1945
1946 \begin_layout Plain Layout
1947 ツール\SpecialChar menuseparator
1948 設定
1949 \end_layout
1950
1951 \end_inset
1952
1953 ダイアログの
1954 \begin_inset Flex MenuItem
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 ファイル処理\SpecialChar menuseparator
1959 ファイル形式
1960 \end_layout
1961
1962 \end_inset
1963
1964 の中で,
1965 \begin_inset Flex MenuItem
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 PDF(pdflatex)
1970 \end_layout
1971
1972 \end_inset
1973
1974 形式—あるいは他のPDF形式のうちどれか—を選択し,
1975 \begin_inset Flex MenuItem
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 複写子
1980 \end_layout
1981
1982 \end_inset
1983
1984 フィールドに
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdfcopier.sh $$i $$o
1990 \end_layout
1991
1992 \end_inset
1993
1994 と入力します.
1995 \end_layout
1996
1997 \begin_layout Standard
1998 複写子は,\SpecialChar LyX
1999 自身が様々な変換に使用します.たとえば,適切なプログラムが検出された場合,\SpecialChar LyX
2000 は自動的に
2001 \begin_inset Flex MenuItem
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 HTML
2006 \end_layout
2007
2008 \end_inset
2009
2010 形式と
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 HTML
2016 \begin_inset space ~
2017 \end_inset
2018
2019 (MS Word)
2020 \end_layout
2021
2022 \end_inset
2023
2024 形式の複写子を導入します.これらの形式を書き出す際,複写子は,本体のHTMLファイルだけでなく,関連した様々なファイル(スタイルファイルや画像など)もコピーされ
2025 るように手配します.これらのファイルはすべて,元の\SpecialChar LyX
2026 ファイルのあるディレクトリのサブディレクトリに書き込まれます
2027 \begin_inset Foot
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 この複写子の挙動は調整することができます.非必須の「-e」オプションは,コピーする拡張子をコンマ区切りで羅列したものを引数にとります.これを省略した場合には,す
2032 べてのファイルがコピーされます.「-t」引数は,生成したディレクトリに書き加える拡張子を指定するものです.既定値では,これは「
2033 \begin_inset Flex MenuItem
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 L
2038 \begin_inset ERT
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042
2043 {}
2044 \end_layout
2045
2046 \end_inset
2047
2048 yXconv
2049 \end_layout
2050
2051 \end_inset
2052
2053 」となっているので,
2054 \begin_inset Flex MenuItem
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 /path/to/filename.lyx
2059 \end_layout
2060
2061 \end_inset
2062
2063 から生成されたHTMLファイルは,
2064 \begin_inset Flex MenuItem
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 /path/to/filename.html.L
2069 \begin_inset ERT
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073
2074 {}
2075 \end_layout
2076
2077 \end_inset
2078
2079 yXconv
2080 \end_layout
2081
2082 \end_inset
2083
2084 となります..
2085  
2086 \end_layout
2087
2088 \end_inset
2089
2090
2091 \end_layout
2092
2093 \begin_layout Section
2094 変換子
2095 \begin_inset CommandInset label
2096 LatexCommand label
2097 name "sec:変換子"
2098
2099 \end_inset
2100
2101
2102 \end_layout
2103
2104 \begin_layout Standard
2105 各形式間でファイルを変換するために,ご自身の変換子を定義することができます.これは,
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 ツール\SpecialChar menuseparator
2111 設定\SpecialChar menuseparator
2112 ファイル処理\SpecialChar menuseparator
2113 変換子
2114 \end_layout
2115
2116 \end_inset
2117
2118 ダイアログで行います.
2119 \end_layout
2120
2121 \begin_layout Standard
2122 新規に変換子を定義するには,ドロップダウンリストから
2123 \begin_inset Flex MenuItem
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 変換元の形式
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Flex MenuItem
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137 変換先の形式
2138 \end_layout
2139
2140 \end_inset
2141
2142 を選択し,変換に必要なコマンドを入力してから
2143 \begin_inset Flex MenuItem
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 追加
2148 \end_layout
2149
2150 \end_inset
2151
2152 ボタンを押してください.変換子の定義には,以下のような変数を使用することができます.
2153 \end_layout
2154
2155 \begin_layout Labeling
2156 \labelwidthstring 00.00.0000
2157 \begin_inset Flex Code
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 $$s
2162 \end_layout
2163
2164 \end_inset
2165
2166  \SpecialChar LyX
2167 システムディレクトリ
2168 \end_layout
2169
2170 \begin_layout Labeling
2171 \labelwidthstring 00.00.0000
2172 \begin_inset Flex Code
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 $$i
2177 \end_layout
2178
2179 \end_inset
2180
2181  入力ファイル
2182 \end_layout
2183
2184 \begin_layout Labeling
2185 \labelwidthstring 00.00.0000
2186 \begin_inset Flex Code
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 $$o
2191 \end_layout
2192
2193 \end_inset
2194
2195  出力ファイル
2196 \end_layout
2197
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 $$b
2205 \end_layout
2206
2207 \end_inset
2208
2209  入力ファイルのベースファイル名(拡張子をとった部分)
2210 \end_layout
2211
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Flex Code
2215 status collapsed
2216
2217 \begin_layout Plain Layout
2218 $$p
2219 \end_layout
2220
2221 \end_inset
2222
2223  入力ファイルのパス
2224 \end_layout
2225
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Flex Code
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 $$r
2233 \end_layout
2234
2235 \end_inset
2236
2237  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2238 \end_layout
2239
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 $$e
2247 \end_layout
2248
2249 \end_inset
2250
2251  文書エンコーディングのiconv名
2252 \end_layout
2253
2254 \begin_layout Standard
2255 \begin_inset Flex MenuItem
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 追加フラグ
2260 \end_layout
2261
2262 \end_inset
2263
2264 フィールドには,以下のフラグをコンマで区切って入力することができます.
2265 \end_layout
2266
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 latex
2274 \end_layout
2275
2276 \end_inset
2277
2278  この変換子が\SpecialChar LaTeX
2279 の一種を実行することを示します.これによって,\SpecialChar LyX
2280 の\SpecialChar LaTeX
2281 エラーログに記録を残せるようになります.
2282 \end_layout
2283
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290 needaux
2291 \end_layout
2292
2293 \end_inset
2294
2295  変換に\SpecialChar LaTeX
2296
2297 \begin_inset Flex MenuItem
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 .aux
2302 \end_layout
2303
2304 \end_inset
2305
2306 ファイルが必要であることを示します.
2307 \end_layout
2308
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 nice
2316 \end_layout
2317
2318 \end_inset
2319
2320  バックエンドからの
2321 \begin_inset Quotes erd
2322 \end_inset
2323
2324 nice
2325 \begin_inset Quotes erd
2326 \end_inset
2327
2328 なファイル,つまり\SpecialChar LyX
2329 が書き出す\SpecialChar LaTeX
2330 ファイルのように,
2331 \begin_inset Flex Code
2332 status open
2333
2334 \begin_layout Plain Layout
2335 input@path
2336 \end_layout
2337
2338 \end_inset
2339
2340 のない\SpecialChar LaTeX
2341 ファイルを必要とします.
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 xml
2351 \end_layout
2352
2353 \end_inset
2354
2355  出力がXMLであることを示します.
2356 \end_layout
2357
2358 \begin_layout Standard
2359 以下の3つのフラグは 
2360 \begin_inset Flex MenuItem
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 key
2365 \begin_inset space ~
2366 \end_inset
2367
2368 =
2369 \begin_inset space ~
2370 \end_inset
2371
2372 value
2373 \end_layout
2374
2375 \end_inset
2376
2377 形式の引数をとります(したがって厳密にはフラグとは呼べません).
2378 \end_layout
2379
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 parselog
2387 \end_layout
2388
2389 \end_inset
2390
2391  これを指定すると,変換子の標準エラーが
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 infile.out
2397 \end_layout
2398
2399 \end_inset
2400
2401 ファイルにリダイレクトされ,引数に指定されたスクリプトが
2402 \begin_inset Flex Code
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406 script < infile.out > infile.log
2407 \end_layout
2408
2409 \end_inset
2410
2411 の形で実行されるようになります.引数には
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 $$s
2417 \end_layout
2418
2419 \end_inset
2420
2421 を指定することができます.
2422 \end_layout
2423
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Flex Code
2427 status collapsed
2428
2429 \begin_layout Plain Layout
2430 resultdir
2431 \end_layout
2432
2433 \end_inset
2434
2435  これには,変換子が生成したファイルをダンプするディレクトリ名を指定します.\SpecialChar LyX
2436 はこのディレクトリを作成せず,ここに何もコピーしませんが,このディレクトリを宛先にコ
2437 ピーします.引数には,
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442 $$b
2443 \end_layout
2444
2445 \end_inset
2446
2447 を使用することができ,これはディレクトリがコピーされる際に,入力ファイルおよび出力ファイルのベース名で置換されます.
2448 \begin_inset Newline newline
2449 \end_inset
2450
2451 resultdirとusetempdirは,同時に用いることはできませんのでご注意ください.前者が指定されているときには,後者は無視されます.
2452 \end_layout
2453
2454 \begin_layout Labeling
2455 \labelwidthstring 00.00.0000
2456 \begin_inset Flex Code
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 resultfile
2461 \end_layout
2462
2463 \end_inset
2464
2465  これは出力ファイル名を指定するもので,
2466 \begin_inset Flex Code
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 $$b
2471 \end_layout
2472
2473 \end_inset
2474
2475 を使用することができます.resultdirが指定されているときのみ有効で,必ず用いる必要はありません.指定されていなければ,既定値は「index」です.
2476 \end_layout
2477
2478 \begin_layout Standard
2479 最後の3つは,\SpecialChar LyX
2480 とともに導入される変換子には,現在いずれも使用されておりません.
2481 \end_layout
2482
2483 \begin_layout Standard
2484 変換しようとするすべての形式のあいだに変換子を定義する必要はありません.たとえば,「\SpecialChar LyX
2485 からPostScript」変換子が定義されていないのに,\SpecialChar LyX
2486 はPostScrip
2487 tを書き出していることに気づかれることでしょう.これは,まず\SpecialChar LaTeX
2488 ファイルを生成した後に(これには変換子を定義する必要はありません),「LaTeXからDVI」変換子を
2489 使用してDVIに変換し,最後に,得られたDVIをPostScriptに変換することによって実現しています.\SpecialChar LyX
2490 はこのような変換子の「連鎖」を自動的に見つけ,つねに最
2491 も短い連鎖を選択します.しかしながら,なお形式間に複数の変換方法を定義することも可能です.たとえば,標準的な\SpecialChar LyX
2492 設定は,\SpecialChar LaTeX
2493 からPDFへ変換するのに,以下の3つの方法を
2494 用意しています.
2495 \end_layout
2496
2497 \begin_layout Enumerate
2498 直接
2499 \begin_inset Flex MenuItem
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 pdflatex
2504 \end_layout
2505
2506 \end_inset
2507
2508 を使用するもの
2509 \end_layout
2510
2511 \begin_layout Enumerate
2512 (DVIと)PostScriptを経由して
2513 \begin_inset Flex MenuItem
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 ps2pdf
2518 \end_layout
2519
2520 \end_inset
2521
2522 を使用するもの
2523 \end_layout
2524
2525 \begin_layout Enumerate
2526 DVI経由で
2527 \begin_inset Flex MenuItem
2528 status collapsed
2529
2530 \begin_layout Plain Layout
2531 dvipdfm
2532 \end_layout
2533
2534 \end_inset
2535
2536 を使用するもの
2537 \end_layout
2538
2539 \begin_layout Enumerate
2540 直接
2541 \begin_inset Flex MenuItem
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 Xe\SpecialChar TeX
2546
2547 \end_layout
2548
2549 \end_inset
2550
2551 を使用するもの
2552 \end_layout
2553
2554 \begin_layout Enumerate
2555 直接
2556 \begin_inset Flex MenuItem
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 Lua\SpecialChar TeX
2561
2562 \end_layout
2563
2564 \end_inset
2565
2566 を使用するもの
2567 \end_layout
2568
2569 \begin_layout Standard
2570 このように代替連鎖を定義するには,第
2571 \begin_inset CommandInset ref
2572 LatexCommand ref
2573 reference "sec:ファイル形式"
2574
2575 \end_inset
2576
2577 節に述べられているように,ターゲットとなる「ファイル形式」を複数定義しなくてはなりません.たとえば,標準設定では,
2578 \begin_inset Flex MenuItem
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582 pdf
2583 \end_layout
2584
2585 \end_inset
2586
2587 (
2588 \begin_inset Flex MenuItem
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 ps2pdf
2593 \end_layout
2594
2595 \end_inset
2596
2597 用)・
2598 \begin_inset Flex MenuItem
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 pdf2
2603 \end_layout
2604
2605 \end_inset
2606
2607 (
2608 \begin_inset Flex MenuItem
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 pdflatex
2613 \end_layout
2614
2615 \end_inset
2616
2617 用)・
2618 \begin_inset Flex MenuItem
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 pdf3
2623 \end_layout
2624
2625 \end_inset
2626
2627 (
2628 \begin_inset Flex MenuItem
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 dvipdfm
2633 \end_layout
2634
2635 \end_inset
2636
2637 用)・
2638 \begin_inset Flex MenuItem
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642 pdf4
2643 \end_layout
2644
2645 \end_inset
2646
2647 (
2648 \begin_inset Flex MenuItem
2649 status collapsed
2650
2651 \begin_layout Plain Layout
2652 Xe\SpecialChar TeX
2653
2654 \end_layout
2655
2656 \end_inset
2657
2658 用)・
2659 \begin_inset Flex MenuItem
2660 status collapsed
2661
2662 \begin_layout Plain Layout
2663 pdf5
2664 \end_layout
2665
2666 \end_inset
2667
2668 (
2669 \begin_inset Flex MenuItem
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 Lua\SpecialChar TeX
2674
2675 \end_layout
2676
2677 \end_inset
2678
2679 用\SpecialChar softhyphen
2680 ) と命名された形式が定義されていて,すべて共通の拡張子
2681 \begin_inset Flex MenuItem
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 .pdf
2686 \end_layout
2687
2688 \end_inset
2689
2690 を持ち,上記で言及した各変換方法に対応しています.
2691 \end_layout
2692
2693 \begin_layout Chapter
2694 \SpecialChar LyX
2695 の各国語対応
2696 \begin_inset CommandInset label
2697 LatexCommand label
2698 name "cha:LyXの各国語対応"
2699
2700 \end_inset
2701
2702
2703 \end_layout
2704
2705 \begin_layout Standard
2706 \SpecialChar LyX
2707 は,翻訳された操作画面の利用をサポートしています.私たちが最後に確かめたところでは,\SpecialChar LyX
2708 は30言語の翻訳を提供しています.選択した言語は,使用する
2709 \emph on
2710 ロケール
2711 \emph default
2712 と呼ばれます(ロケール設定についての詳しい資料は,お使いの基本ソフトに添付のロケール関連説明書をご覧ください.Linuxの場合は,マニュアルページの
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 locale(5)
2718 \end_layout
2719
2720 \end_inset
2721
2722 から見ると良いかもしれません).
2723 \end_layout
2724
2725 \begin_layout Standard
2726 これらの翻訳は適切に機能しますが,欠点もいくつかあることに注意してください.たとえば,ダイアログはすべて英文を念頭にデザインされているため,翻訳文の一部は,割り
2727 当てられたスペースに収めるには大きすぎるかもしれません.これは表示上の問題に過ぎず,他の障害は引き起こしません.また,翻訳によっては,すべての
2728 \begin_inset Flex Ruby
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 捷径
2733 \begin_inset Argument post:1
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 ショートカット
2738 \end_layout
2739
2740 \end_inset
2741
2742
2743 \end_layout
2744
2745 \end_inset
2746
2747 が定義されていないことに気づかれるでしょう.捷径のために空いている文字が十分ないことが時々あるのです.単に翻訳者がまだ捷径を定義していないこともあるでしょう.も
2748 ちろん,私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2749 \begin_inset Foot
2750 status collapsed
2751
2752 \begin_layout Plain Layout
2753 もしあなたが英語以外の言語を流暢に操れるならば,これらのチームに参加することは,\SpecialChar LyX
2754 コミュニティに報いるたいへん素晴らしい方法です!
2755 \end_layout
2756
2757 \end_inset
2758
2759 —は,\SpecialChar LyX
2760 の将来のバージョンでこれらの欠点を修正しようとするでしょう.
2761 \end_layout
2762
2763 \begin_layout Section
2764 \SpecialChar LyX
2765 を翻訳する
2766 \end_layout
2767
2768 \begin_layout Subsection
2769 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2770 \begin_inset Argument 1
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 GUI(テキストメッセージ)を翻訳する
2775 \end_layout
2776
2777 \end_inset
2778
2779
2780 \end_layout
2781
2782 \begin_layout Standard
2783 \SpecialChar LyX
2784 は,操作画面の国際化対応にGNU 
2785 \begin_inset Flex Code
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 gettext
2790 \end_layout
2791
2792 \end_inset
2793
2794 ライブラリを使用します.\SpecialChar LyX
2795 のすべてのメニューやダイアログでお好みの言語を話させたいときには,その言語の
2796 \begin_inset Flex Code
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800 po
2801 \end_layout
2802
2803 \end_inset
2804
2805 ファイルが必要です.このファイルが利用可能であれば,そこから
2806 \begin_inset Flex Code
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 mo
2811 \end_layout
2812
2813 \end_inset
2814
2815 ファイルを生成して,この
2816 \begin_inset Flex Code
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 mo
2821 \end_layout
2822
2823 \end_inset
2824
2825 ファイルをインストールしなくてはなりません.この全過程は,GNU 
2826 \begin_inset Flex Code
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 gettext
2831 \end_layout
2832
2833 \end_inset
2834
2835 の取扱説明書に説明があります.この作業をあなたのためだけに行うこともできますが,もしせっかくするのであれば,あなたの骨折りの結果を\SpecialChar LyX
2836 コミュニティの他の人々と分かち
2837 合いませんか.どのように段取りを進めればよいか,詳しくは\SpecialChar LyX
2838 開発者メーリングリストにメールを送ってください.
2839 \end_layout
2840
2841 \begin_layout Standard
2842 要約すれば,以下のように行います(xxは言語コードを表します).
2843 \end_layout
2844
2845 \begin_layout Itemize
2846 \SpecialChar LyX
2847 ソースコードをチェックアウトしてください(
2848 \begin_inset CommandInset href
2849 LatexCommand href
2850 name "ウェブ上の情報"
2851 target "http://www.lyx.org/HowToUseGIT"
2852
2853 \end_inset
2854
2855 参照).
2856 \end_layout
2857
2858 \begin_layout Itemize
2859 \begin_inset Flex Code
2860 status collapsed
2861
2862 \begin_layout Plain Layout
2863 lyx.pot
2864 \end_layout
2865
2866 \end_inset
2867
2868 ファイルを
2869 \begin_inset Flex Code
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 **.po
2874 \end_layout
2875
2876 \end_inset
2877
2878 ファイルのあるフォルダにコピーして,
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 xx.po
2884 \end_layout
2885
2886 \end_inset
2887
2888 に名前を付け替えてください(
2889 \begin_inset Flex Code
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893 lyx.pot
2894 \end_layout
2895
2896 \end_inset
2897
2898 がどこにもない場合には,コンソールからそのディレクトリで
2899 \begin_inset Flex Code
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 make lyx.pot
2904 \end_layout
2905
2906 \end_inset
2907
2908 コマンドを実行し,作成し直すか,他言語の既存のpoファイルをひな型として使用することができます).
2909 \end_layout
2910
2911 \begin_layout Itemize
2912 \begin_inset Flex Code
2913 status collapsed
2914
2915 \begin_layout Plain Layout
2916 xx.po
2917 \end_layout
2918
2919 \end_inset
2920
2921 を編集します.
2922 \begin_inset Foot
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926 これは単なるテキストファイルなので,どのテキストエディタでも編集できます.しかし,
2927 \family typewriter
2928 Poedit
2929 \family default
2930 (全プラットフォーム用)や
2931 \family typewriter
2932 KBabel
2933 \family default
2934 (KDE用)のように,この目的の編集をサポートする特別なプログラムがあります.
2935 \family typewriter
2936 Emacs
2937 \family default
2938 にも
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 ファイルを編集するための「モード」があります,第
2949 \begin_inset Flex URL
2950 status open
2951
2952 \begin_layout Plain Layout
2953
2954 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
2955 \backslash
2956 #PO-Mode
2957 \end_layout
2958
2959 \end_inset
2960
2961
2962 \end_layout
2963
2964 \end_inset
2965
2966 メニューラベルやウィジェットラベルのうちには,翻訳しなくてはならない
2967 \begin_inset Flex Ruby
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 捷径
2972 \begin_inset Argument post:1
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 ショートカット
2977 \end_layout
2978
2979 \end_inset
2980
2981
2982 \end_layout
2983
2984 \end_inset
2985
2986 がある場合があります.これらのキーは「|」の後に記されており,当該言語の単語やフレーズに対応して翻訳しなくてはなりません.さらに,新しい
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 po
2992 \end_layout
2993
2994 \end_inset
2995
2996 ファイルの冒頭に,あなたの電子メールアドレスなどの情報も書き加えて,人々があなたに提案や,滑稽な怒りのメッセージを届けることができるようにしてください.
2997 \end_layout
2998
2999 \begin_layout Standard
3000 もし,あなたがこれを自身のためだけに行っているのであれば,
3001 \end_layout
3002
3003 \begin_layout Itemize
3004 \begin_inset Flex Code
3005 status collapsed
3006
3007 \begin_layout Plain Layout
3008 xx.mo
3009 \end_layout
3010
3011 \end_inset
3012
3013 を生成してください.これは
3014 \begin_inset Flex Code
3015 status collapsed
3016
3017 \begin_layout Plain Layout
3018 msgfmt -o xx.mo < xx.po
3019 \end_layout
3020
3021 \end_inset
3022
3023 でできます.
3024 \end_layout
3025
3026 \begin_layout Itemize
3027 この
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 mo
3033 \end_layout
3034
3035 \end_inset
3036
3037 ファイルを,お使いのロケールツリー中,言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして,
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 lyx.mo
3043 \end_layout
3044
3045 \end_inset
3046
3047 という名称にしてください(例:
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3053 \end_layout
3054
3055 \end_inset
3056
3057 ).
3058 \end_layout
3059
3060 \begin_layout Standard
3061 しかしながら前述のように,この新しい
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 po
3067 \end_layout
3068
3069 \end_inset
3070
3071 ファイルを他の人たちが使用できるよう,\SpecialChar LyX
3072 頒布版に追加できることが最善です.これを追加するには,\SpecialChar LyX
3073 に変更を加える必要がありますので,もしその気があれば,開発者メーリン
3074 グリストに電子メールを送ってください.
3075 \end_layout
3076
3077 \begin_layout Subsubsection
3078 多義訳語メッセージ
3079 \end_layout
3080
3081 \begin_layout Standard
3082 時には,一つの英語のメッセージが,翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります.一つの例は,
3083 \begin_inset Flex Code
3084 status collapsed
3085
3086 \begin_layout Plain Layout
3087 To
3088 \end_layout
3089
3090 \end_inset
3091
3092 というメッセージで,これは英語で「to」がどういう意味を持っているかによって,独語ではNachと訳されたりBisと訳されたりします.GNU 
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 gettext
3098 \end_layout
3099
3100 \end_inset
3101
3102 は,このような多義訳語を
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 To
3108 \end_layout
3109
3110 \end_inset
3111
3112 の代わりに,
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 To[[as in 'From format x to format y']]
3118 \end_layout
3119
3120 \end_inset
3121
3122
3123 \begin_inset Flex Code
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 To[[as in 'From page x to page y']]
3128 \end_layout
3129
3130 \end_inset
3131
3132 としなくてはなりません.これによって,これら2つの
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 To
3138 \end_layout
3139
3140 \end_inset
3141
3142 は,
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 には別物と解釈され,それぞれ正しくNachとBisに訳すことができるようになります.
3153 \end_layout
3154
3155 \begin_layout Standard
3156 もちろん,この文脈情報は,翻訳が存在しないときには取り去られる必要がありますので,メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照).\SpecialChar LyX
3157 の翻訳機構
3158 では,メッセージの終わりに二重大括弧で囲われているものはすべて,メッセージを表示する前に取り去るようにされています.
3159 \end_layout
3160
3161 \begin_layout Subsection
3162 説明書を翻訳する
3163 \end_layout
3164
3165 \begin_layout Standard
3166
3167 \begin_inset Flex MenuItem
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 Help
3172 \end_layout
3173
3174 \end_inset
3175
3176 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!).説明書の翻訳版が利用可能であり
3177 \begin_inset Foot
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 2008年3月現在,説明書の少なくとも一部が翻訳されている言語は14言語に上り,入門編が訳されているものはさらにいくつかあります.
3182 \end_layout
3183
3184 \end_inset
3185
3186 ,ロケールがその言語に設定されている場合,\SpecialChar LyX
3187 はこれを自動的に使用します.\SpecialChar LyX
3188 は,翻訳版を
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3194 \end_layout
3195
3196 \end_inset
3197
3198
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 xx
3204 \end_layout
3205
3206 \end_inset
3207
3208 は現在使用している言語コード)で探します.翻訳文書がない場合には,既定の英語版が表示されます.翻訳版は,原典と同じファイル名(上述の
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 DocName
3214 \end_layout
3215
3216 \end_inset
3217
3218 )を持っていなくてはならないことに注意してください.説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!),以下のような点をすぐに行
3219 うべきです.
3220 \end_layout
3221
3222 \begin_layout Itemize
3223 説明書翻訳ウェブページ
3224 \begin_inset CommandInset href
3225 LatexCommand href
3226 name "http://www.lyx.org/Translation"
3227 target "http://www.lyx.org/Translation"
3228
3229 \end_inset
3230
3231 を確認してください.ここで,どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます.また,説明書をお使いの言語に翻訳する作業の面倒を
3232 見ている人を(もしいれば)見つけることができます.この作業の面倒を見ている人がいない場合には,私たちにあなたが興味をお持ちであることを知らせてください.
3233 \end_layout
3234
3235 \begin_layout Standard
3236 いったん実際の翻訳の仕事に取りかかったならば,トラブルを回避するいくつかのヒントがあります.
3237 \end_layout
3238
3239 \begin_layout Itemize
3240 文書化チームに所属してください!そのための情報が
3241 \begin_inset Flex Code
3242 status collapsed
3243
3244 \begin_layout Plain Layout
3245 Intro.lyx
3246 \end_layout
3247
3248 \end_inset
3249
3250
3251 \begin_inset Flex MenuItem
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 ヘルプ\SpecialChar menuseparator
3256 はじめの一歩
3257 \end_layout
3258
3259 \end_inset
3260
3261 )にあります.また,この
3262 \begin_inset Flex Code
3263 status collapsed
3264
3265 \begin_layout Plain Layout
3266 Intro.lyx
3267 \end_layout
3268
3269 \end_inset
3270
3271 が最初に訳すべき文書です.
3272 \end_layout
3273
3274 \begin_layout Itemize
3275 翻訳しようとする言語での印刷慣行を学んでください.活版印刷は古来の技術であり,何世紀にもわたって世界の至る所で,様々な慣行を発達させてきました.また,あなたの国
3276 で活版工が用いる専門用語も学んでください.自分で勝手な専門用語を捻出するとユーザを混乱させるだけです.(
3277 \emph on
3278 警告!活版技術は病みつきになる可能性があるので注意してくさい!
3279 \emph default
3280
3281 \end_layout
3282
3283 \begin_layout Itemize
3284 文書のコピーをとってください.これを作業用コピーとします.これをお使いの
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 UserDir/doc/xx/
3290 \end_layout
3291
3292 \end_inset
3293
3294 ディレクトリにコピーすれば,個人用の翻訳ヘルプファイルとして使用することができます.
3295 \begin_inset Newline newline
3296 \end_inset
3297
3298
3299 \begin_inset Note Greyedout
3300 status open
3301
3302 \begin_layout Plain Layout
3303
3304 \series bold
3305 【註】
3306 \series default
3307 外部素材(画像など)のある複雑な文書の場合,例えば一時ディレクトリなどにコピーを作ると,文書を別の場所に移したとき,外部素材へのリンクは壊れてしまうかもしれない
3308 ことに注意してください.最も良い方法は,LyXツリーをgit (
3309 \begin_inset Flex URL
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313
3314 http://www.lyx.org/HowToUseGIT
3315 \end_layout
3316
3317 \end_inset
3318
3319 参照)からとってきて,そのdocファイルを直接編集するのが良いでしょう.
3320 \end_layout
3321
3322 \end_inset
3323
3324
3325 \end_layout
3326
3327 \begin_layout Itemize
3328 (\SpecialChar LyX
3329 チームが維持している)原典の説明書は,時折更新されます.変更点については,
3330 \begin_inset CommandInset href
3331 LatexCommand href
3332 name "http://www.lyx.org/trac/timeline"
3333 target "http://www.lyx.org/trac/timeline"
3334
3335 \end_inset
3336
3337 のソースビューアでご覧ください.この方法で,翻訳文書のどの部分を更新しなくてはならないか,たやすく見つけることができます.
3338 \end_layout
3339
3340 \begin_layout Standard
3341 もし原典に誤りを見つけたならば,修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね).
3342 \end_layout
3343
3344 \begin_layout Standard
3345 \begin_inset Branch OutDated
3346 status collapsed
3347
3348 \begin_layout Section
3349 International Keyboard Support
3350 \end_layout
3351
3352 \begin_layout Standard
3353
3354 \emph on
3355 [Editor's Note: The following section is by
3356 \emph default
3357  
3358 \shape smallcaps
3359 \emph on
3360 Ivan Schreter
3361 \shape default
3362 .
3363  It needs to be fixed to conform to the new Documentation Style sheet and
3364  to make use of the new v1.0 features.
3365  The whole thing also needs to be merged with the section following it.-jw
3366  It may also be badly out of date.-rh (2008)]
3367 \end_layout
3368
3369 \begin_layout Subsection
3370 Defining Own Keymaps: Keymap File Format
3371 \end_layout
3372
3373 \begin_layout Standard
3374 Let's look at a keyboard definition file a little closer.
3375  It is a plain text file defining
3376 \end_layout
3377
3378 \begin_layout Itemize
3379 key-to-key or key-to-string translations
3380 \end_layout
3381
3382 \begin_layout Itemize
3383 dead keys
3384 \end_layout
3385
3386 \begin_layout Itemize
3387 dead keys exceptions
3388 \end_layout
3389
3390 \begin_layout Standard
3391 To define key-to-key or key-to-string translation, use this command:
3392 \end_layout
3393
3394 \begin_layout Quotation
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399
3400 \backslash
3401 kmap
3402 \end_layout
3403
3404 \end_inset
3405
3406  
3407 \begin_inset Flex Code
3408 status collapsed
3409
3410 \begin_layout Plain Layout
3411 key
3412 \end_layout
3413
3414 \end_inset
3415
3416  outstring 
3417 \end_layout
3418
3419 \begin_layout Standard
3420 where 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 key
3426 \end_layout
3427
3428 \end_inset
3429
3430  is the key to be translated and 
3431 \begin_inset Flex Code
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435 outstring
3436 \end_layout
3437
3438 \end_inset
3439
3440  is the string to be inserted into the document.
3441  To define dead keys, use:
3442 \end_layout
3443
3444 \begin_layout Quotation
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449
3450 \backslash
3451 kmod
3452 \end_layout
3453
3454 \end_inset
3455
3456  
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 key
3462 \end_layout
3463
3464 \end_inset
3465
3466  deadkey
3467 \end_layout
3468
3469 \begin_layout Standard
3470 where 
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 key
3476 \end_layout
3477
3478 \end_inset
3479
3480  is a keyboard key and 
3481 \begin_inset Flex Code
3482 status collapsed
3483
3484 \begin_layout Plain Layout
3485 deadkey
3486 \end_layout
3487
3488 \end_inset
3489
3490  is dead key name.
3491  The following dead keys are supported (shortcut name is in parentheses):
3492 \end_layout
3493
3494 \begin_layout Quotation
3495
3496 \emph on
3497 Name
3498 \begin_inset space \hfill{}
3499 \end_inset
3500
3501 Example
3502 \end_layout
3503
3504 \begin_layout Quotation
3505 acute (acu)
3506 \begin_inset space \hfill{}
3507 \end_inset
3508
3509
3510 \lang english
3511 áéíóú
3512 \end_layout
3513
3514 \begin_layout Quotation
3515 grave (gra)
3516 \begin_inset space \hfill{}
3517 \end_inset
3518
3519
3520 \lang english
3521 àèìòù
3522 \end_layout
3523
3524 \begin_layout Quotation
3525 macron (mac)
3526 \begin_inset space \hfill{}
3527 \end_inset
3528
3529
3530 \lang english
3531  ō
3532 \end_layout
3533
3534 \begin_layout Quotation
3535 tilde (til)
3536 \begin_inset space \hfill{}
3537 \end_inset
3538
3539
3540 \lang english
3541 ñÑ
3542 \end_layout
3543
3544 \begin_layout Quotation
3545 underbar (underb)
3546 \begin_inset space \hfill{}
3547 \end_inset
3548
3549
3550 \begin_inset ERT
3551 status open
3552
3553 \begin_layout Plain Layout
3554
3555
3556 \backslash
3557 b o
3558 \end_layout
3559
3560 \end_inset
3561
3562
3563 \end_layout
3564
3565 \begin_layout Quotation
3566 cedilla (ced)
3567 \begin_inset space \hfill{}
3568 \end_inset
3569
3570
3571 \lang english
3572 çÇ
3573 \end_layout
3574
3575 \begin_layout Quotation
3576 underdot (underd)
3577 \begin_inset space \hfill{}
3578 \end_inset
3579
3580
3581 \begin_inset ERT
3582 status open
3583
3584 \begin_layout Plain Layout
3585
3586
3587 \backslash
3588 d o
3589 \end_layout
3590
3591 \end_inset
3592
3593
3594 \end_layout
3595
3596 \begin_layout Quotation
3597 circumflex (circu)
3598 \begin_inset space \hfill{}
3599 \end_inset
3600
3601
3602 \lang english
3603 âêîôû
3604 \end_layout
3605
3606 \begin_layout Quotation
3607 circle (circl)
3608 \begin_inset space \hfill{}
3609 \end_inset
3610
3611
3612 \lang english
3613 ÅůŮ
3614 \end_layout
3615
3616 \begin_layout Quotation
3617 tie (tie)
3618 \begin_inset space \hfill{}
3619 \end_inset
3620
3621
3622 \begin_inset ERT
3623 status open
3624
3625 \begin_layout Plain Layout
3626
3627
3628 \backslash
3629 t o
3630 \end_layout
3631
3632 \end_inset
3633
3634
3635 \end_layout
3636
3637 \begin_layout Quotation
3638 breve (bre)
3639 \begin_inset space \hfill{}
3640 \end_inset
3641
3642
3643 \lang english
3644 ă
3645 \lang japanese
3646
3647 \begin_inset ERT
3648 status open
3649
3650 \begin_layout Plain Layout
3651
3652
3653 \backslash
3654 u o
3655 \end_layout
3656
3657 \end_inset
3658
3659
3660 \end_layout
3661
3662 \begin_layout Quotation
3663 caron (car)
3664 \begin_inset space \hfill{}
3665 \end_inset
3666
3667
3668 \lang english
3669 čšž
3670 \end_layout
3671
3672 \begin_layout Quotation
3673 hungarian umlaut (hug)
3674 \begin_inset space \hfill{}
3675 \end_inset
3676
3677
3678 \lang english
3679 őű
3680 \end_layout
3681
3682 \begin_layout Quotation
3683 umlaut (uml)
3684 \begin_inset space \hfill{}
3685 \end_inset
3686
3687
3688 \lang english
3689 äöü
3690 \end_layout
3691
3692 \begin_layout Quotation
3693 dot (dot)
3694 \begin_inset space \hfill{}
3695 \end_inset
3696
3697
3698 \lang english
3699 ż
3700 \lang japanese
3701
3702 \begin_inset ERT
3703 status open
3704
3705 \begin_layout Plain Layout
3706
3707
3708 \backslash
3709 .s
3710 \end_layout
3711
3712 \end_inset
3713
3714
3715 \end_layout
3716
3717 \begin_layout Standard
3718 Since in many international keyboards there are exceptions to what some
3719  dead keys should do, you can define them using
3720 \end_layout
3721
3722 \begin_layout Quotation
3723 \begin_inset Flex Code
3724 status collapsed
3725
3726 \begin_layout Plain Layout
3727
3728 \backslash
3729 kxmod
3730 \end_layout
3731
3732 \end_inset
3733
3734  deadkey key outstring
3735 \end_layout
3736
3737 \begin_layout Standard
3738 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3739 , so you put in
3740 \end_layout
3741
3742 \begin_layout Quotation
3743 \begin_inset Flex Code
3744 status collapsed
3745
3746 \begin_layout Plain Layout
3747
3748 \backslash
3749 kxmod
3750 \end_layout
3751
3752 \end_inset
3753
3754  caron o "
3755 \backslash
3756 ^o"
3757 \end_layout
3758
3759 \begin_layout Standard
3760 to make it work correctly.
3761  Also, you have to define as exceptions dead keys over i and j, to remove
3762  the dot from them before inserting an accent mark.
3763  I will change this when the time comes, but so far I haven't had time.
3764 \end_layout
3765
3766 \begin_layout Standard
3767 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3768  double backslash.
3769  Also, quotes and 
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774 #
3775 \end_layout
3776
3777 \end_inset
3778
3779  have different meaning.
3780  
3781 \begin_inset Flex Code
3782 status collapsed
3783
3784 \begin_layout Plain Layout
3785 #
3786 \end_layout
3787
3788 \end_inset
3789
3790  marks comments, quotes start and end \SpecialChar LaTeX
3791 -style commands.
3792  To enter quote, you'll need to use 
3793 \begin_inset Flex Code
3794 status collapsed
3795
3796 \begin_layout Plain Layout
3797
3798 \backslash
3799 "
3800 \end_layout
3801
3802 \end_inset
3803
3804 , to enter 
3805 \begin_inset Flex Code
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809 #
3810 \end_layout
3811
3812 \end_inset
3813
3814 , use 
3815 \begin_inset Flex Code
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819
3820 \backslash
3821 #
3822 \end_layout
3823
3824 \end_inset
3825
3826 .
3827 \end_layout
3828
3829 \begin_layout Standard
3830 If you make a keyboard description file that works for your language, please
3831  mail it to me, so I can include it in the next keymap distribution.
3832 \end_layout
3833
3834 \begin_layout Standard
3835 More keywords will be supported in keymap configuration file in future,
3836  like
3837 \end_layout
3838
3839 \begin_layout Itemize
3840 \begin_inset Flex Code
3841 status collapsed
3842
3843 \begin_layout Plain Layout
3844
3845 \backslash
3846 kinclude filename
3847 \end_layout
3848
3849 \end_inset
3850
3851
3852 \emph on
3853
3854 \begin_inset space \hfill{}
3855 \end_inset
3856
3857
3858 \begin_inset Flex Code
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 include
3863 \end_layout
3864
3865 \end_inset
3866
3867  another file
3868 \end_layout
3869
3870 \begin_layout Itemize
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875
3876 \backslash
3877 kprog program
3878 \end_layout
3879
3880 \end_inset
3881
3882
3883 \emph on
3884
3885 \begin_inset space \hfill{}
3886 \end_inset
3887
3888
3889 \begin_inset Flex Code
3890 status collapsed
3891
3892 \begin_layout Plain Layout
3893 define
3894 \end_layout
3895
3896 \end_inset
3897
3898  an external keymap translation program 
3899 \end_layout
3900
3901 \begin_layout Standard
3902 Also, it should look into 
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 lyxrc
3908 \end_layout
3909
3910 \end_inset
3911
3912  file for defaults, too (for example, a 
3913 \begin_inset Flex Code
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917
3918 \backslash
3919 kinclude
3920 \end_layout
3921
3922 \end_inset
3923
3924  option to include default keyboard).
3925 \end_layout
3926
3927 \end_inset
3928
3929
3930 \end_layout
3931
3932 \begin_layout Section
3933 国際キー配列
3934 \begin_inset CommandInset label
3935 LatexCommand label
3936 name "sec:国際キー配列"
3937
3938 \end_inset
3939
3940
3941 \end_layout
3942
3943 \begin_layout Standard
3944 \begin_inset Note Note
3945 status open
3946
3947 \begin_layout Plain Layout
3948 2008年3月にこの文書を改訂するに当たって,改訂者が本節の内容に詳しくなかったために,本節は改訂されていません.他に改訂してくださる方がおられれば幸いです.
3949 \end_layout
3950
3951 \begin_layout Plain Layout
3952 (RH)
3953 \end_layout
3954
3955 \end_inset
3956
3957
3958 \end_layout
3959
3960 \begin_layout Standard
3961 以下の2節では,
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 .kmap
3967 \end_layout
3968
3969 \end_inset
3970
3971 および
3972 \begin_inset Flex Code
3973 status collapsed
3974
3975 \begin_layout Plain Layout
3976 .cdef
3977 \end_layout
3978
3979 \end_inset
3980
3981 ファイルの文法を詳細に解説します.これらの節は,提供されているキー配列があなたのニーズに合わない場合に,自身用のキー配列をデザインする手助けとなるでしょう.
3982 \end_layout
3983
3984 \begin_layout Subsection
3985 .kmapファイル
3986 \end_layout
3987
3988 \begin_layout Standard
3989 \begin_inset Flex Code
3990 status collapsed
3991
3992 \begin_layout Plain Layout
3993 .kmap
3994 \end_layout
3995
3996 \end_inset
3997
3998 ファイルは,打鍵したものを文字や文字列に割り当てます.名前が示唆するように,これはキーボード配列表を定義します.
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 .kmap
4004 \end_layout
4005
4006 \end_inset
4007
4008 ファイルは,以下の各項で説明するように,
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013 kmap
4014 \end_layout
4015
4016 \end_inset
4017
4018
4019 \begin_inset Flex Code
4020 status collapsed
4021
4022 \begin_layout Plain Layout
4023 kmod
4024 \end_layout
4025
4026 \end_inset
4027
4028
4029 \begin_inset Flex Code
4030 status collapsed
4031
4032 \begin_layout Plain Layout
4033 ksmod
4034 \end_layout
4035
4036 \end_inset
4037
4038
4039 \begin_inset Flex Code
4040 status collapsed
4041
4042 \begin_layout Plain Layout
4043 kcomb
4044 \end_layout
4045
4046 \end_inset
4047
4048 のキーワードを定義します.
4049 \end_layout
4050
4051 \begin_layout Labeling
4052 \labelwidthstring 00.00.0000
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 kmap
4058 \end_layout
4059
4060 \end_inset
4061
4062  文字を文字列に割り当てる
4063 \end_layout
4064
4065 \begin_layout LyX-Code
4066
4067 \backslash
4068 kmap 
4069 \family roman
4070 \emph on
4071 文字
4072 \family default
4073 \emph default
4074  
4075 \family roman
4076 \emph on
4077 文字列
4078 \end_layout
4079
4080 \begin_layout Standard
4081 これは,
4082 \emph on
4083 文字
4084 \emph default
4085
4086 \emph on
4087 文字列
4088 \emph default
4089 に割り当てます.
4090 \emph on
4091 文字列
4092 \emph default
4093 中では,二重引用符(")とバックスラッシュ(
4094 \backslash
4095 )は,前にバックスラッシュ(
4096 \backslash
4097 )を付けてエスケープしなくてはならないことに注意してください.
4098 \end_layout
4099
4100 \begin_layout Standard
4101 \begin_inset Flex MenuItem
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 &
4106 \end_layout
4107
4108 \end_inset
4109
4110 を打鍵すると
4111 \begin_inset Flex MenuItem
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115 /
4116 \end_layout
4117
4118 \end_inset
4119
4120 記号が出力される
4121 \begin_inset Flex MenuItem
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125 kmap
4126 \end_layout
4127
4128 \end_inset
4129
4130 ステートメントを,一例としてあげると,
4131 \end_layout
4132
4133 \begin_layout LyX-Code
4134
4135 \backslash
4136 kmap & /
4137 \end_layout
4138
4139 \begin_layout Standard
4140 のようになります.
4141 \end_layout
4142
4143 \begin_layout Labeling
4144 \labelwidthstring 00.00.0000
4145 \begin_inset Flex Code
4146 status collapsed
4147
4148 \begin_layout Plain Layout
4149 kmod
4150 \end_layout
4151
4152 \end_inset
4153
4154  アクセント文字を指定する
4155 \end_layout
4156
4157 \begin_layout LyX-Code
4158
4159 \backslash
4160 kmod 
4161 \family roman
4162 \emph on
4163 文字 アクセント 許可文字
4164 \end_layout
4165
4166 \begin_layout Standard
4167 これは
4168 \emph on
4169 文字
4170 \emph default
4171
4172 \emph on
4173 許可文字
4174 \emph default
4175 のアクセントとするものです.これはデッドキー
4176 \begin_inset Foot
4177 status collapsed
4178
4179 \begin_layout Plain Layout
4180
4181 \emph on
4182 デッドキー
4183 \emph default
4184 という用語は,それ自身で文字を出力しないけれども,別のキーを続けて打つと,望んだアクセント文字を出力するキーのことを指し示します.たとえば,独語で
4185 \emph on
4186 ä
4187 \emph default
4188 のようなウムラウトのついた文字は,このようにして出すことができます.
4189 \end_layout
4190
4191 \end_inset
4192
4193 機構です.
4194 \end_layout
4195
4196 \begin_layout Standard
4197
4198 \emph on
4199 文字
4200 \emph default
4201 を打鍵してから
4202 \emph on
4203 許可文字
4204 \emph default
4205 にないキーを打鍵すると,
4206 \emph on
4207 文字
4208 \emph default
4209 の後に許可文字ではないその文字が出力として表示されます.
4210 \begin_inset Flex MenuItem
4211 status collapsed
4212
4213 \begin_layout Plain Layout
4214 Backspace
4215 \end_layout
4216
4217 \end_inset
4218
4219 はデッドキーを取り消しますので,
4220 \emph on
4221 文字
4222 \emph default
4223
4224 \begin_inset Flex MenuItem
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228 Backspace
4229 \end_layout
4230
4231 \end_inset
4232
4233 と打鍵すると,カーソルは一文字戻ることなく,文字が次の打鍵したものに及ぼしたはずの効力を取り消します.
4234 \end_layout
4235
4236 \begin_layout Standard
4237 以下の例は,'文字をacuteアクセントとして,a・e・i・o・u・A・E・I・O・Uの文字に許可するものです.
4238 \end_layout
4239
4240 \begin_layout LyX-Code
4241
4242 \backslash
4243 kmod ' acute aeiouAEIOU
4244 \end_layout
4245
4246 \begin_layout Labeling
4247 \labelwidthstring 00.00.0000
4248 \begin_inset Flex Code
4249 status collapsed
4250
4251 \begin_layout Plain Layout
4252 ksmod
4253 \end_layout
4254
4255 \end_inset
4256
4257  アクセント文字に例外を指定する
4258 \end_layout
4259
4260 \begin_layout LyX-Code
4261
4262 \backslash
4263 kxmod  
4264 \family roman
4265 \emph on
4266 アクセント 文字 結果
4267 \end_layout
4268
4269 \begin_layout Standard
4270 これは
4271 \emph on
4272 文字
4273 \emph default
4274 上の
4275 \emph on
4276 アクセント
4277 \emph default
4278 について例外を指定するものです.ここで
4279 \emph on
4280 アクセント
4281 \emph default
4282 には,前出の
4283 \begin_inset Flex Code
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287
4288 \backslash
4289 kmod
4290 \end_layout
4291
4292 \end_inset
4293
4294 宣言で打鍵キーを既に割り当てられてなくてはならず,
4295 \emph on
4296 文字
4297 \emph default
4298
4299 \emph on
4300 アクセント
4301 \emph default
4302
4303 \emph on
4304 許可文字
4305 \emph default
4306 の集合に属していてはなりません.こうして
4307 \emph on
4308 アクセント
4309 \emph default
4310
4311 \emph on
4312 文字
4313 \emph default
4314 の順に入力すると,
4315 \emph on
4316 結果
4317 \emph default
4318 が出力されるようになります.
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323 .kmap
4324 \end_layout
4325
4326 \end_inset
4327
4328 ファイルにこの宣言がない場合には,
4329 \emph on
4330 アクセント
4331 \emph default
4332
4333 \emph on
4334 文字
4335 \emph default
4336 と入力すると,
4337 \emph on
4338 アクセントキー
4339 \emph default
4340
4341 \emph on
4342 文字
4343 \emph default
4344
4345 \emph on
4346 アクセントキー
4347 \emph default
4348
4349 \begin_inset Flex Code
4350 status collapsed
4351
4352 \begin_layout Plain Layout
4353
4354 \backslash
4355 kmod
4356 \end_layout
4357
4358 \end_inset
4359
4360 宣言の最初の変数)と出力されます.
4361 \end_layout
4362
4363 \begin_layout Standard
4364 以下のコマンドを用いると,acute-i('i)と入力した場合,äiと出力されるようになります.
4365 \end_layout
4366
4367 \begin_layout LyX-Code
4368
4369 \backslash
4370 kxmod acute i "
4371 \backslash
4372
4373 \backslash
4374 '{
4375 \backslash
4376
4377 \backslash
4378 i}"
4379 \end_layout
4380
4381 \begin_layout Labeling
4382 \labelwidthstring 00.00.0000
4383 \begin_inset Flex Code
4384 status collapsed
4385
4386 \begin_layout Plain Layout
4387 kcomb
4388 \end_layout
4389
4390 \end_inset
4391
4392  2つのアクセント文字を結合する
4393 \end_layout
4394
4395 \begin_layout LyX-Code
4396
4397 \backslash
4398 kcomb 
4399 \family roman
4400 \emph on
4401 アクセント1 アクセント2 許可文字
4402 \end_layout
4403
4404 \begin_layout Standard
4405 これはなかなか難解になってきます.これは
4406 \emph on
4407 アクセント1
4408 \emph default
4409
4410 \emph on
4411 アクセント2
4412 \emph default
4413 を(この順番で)結びつけて,
4414 \emph on
4415 許可文字
4416 \emph default
4417 に効果を及ぼすようにします.
4418 \emph on
4419 アクセント1
4420 \emph default
4421
4422 \emph on
4423 アクセント2
4424 \emph default
4425 の打鍵キーは,ファイル内のこのコマンド
4426 \emph on
4427 よりも前に
4428 \emph default
4429
4430 \begin_inset Flex Code
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434
4435 \backslash
4436 kmod
4437 \end_layout
4438
4439 \end_inset
4440
4441 コマンドで設定されていなくてはなりません.
4442 \end_layout
4443
4444 \begin_layout Standard
4445 \begin_inset Flex Code
4446 status collapsed
4447
4448 \begin_layout Plain Layout
4449 greek.kmap
4450 \end_layout
4451
4452 \end_inset
4453
4454 ファイル上にある例をとってみましょう.
4455 \end_layout
4456
4457 \begin_layout LyX-Code
4458
4459 \backslash
4460 kmod ; acute aeioyvhAEIOYVH 
4461 \backslash
4462 kmod : umlaut iyIY 
4463 \backslash
4464 kcomb acute umlaut iyIY
4465 \end_layout
4466
4467 \begin_layout Standard
4468 これは
4469 \begin_inset Flex MenuItem
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 ;:i
4474 \end_layout
4475
4476 \end_inset
4477
4478 を押すと
4479 \begin_inset Flex Code
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483
4484 \backslash
4485 '{
4486 \backslash
4487 "{i}}
4488 \end_layout
4489
4490 \end_inset
4491
4492 という効果を得るようにするものです.この場合のバックスペースは,最後のデッドキーを取り消すので,
4493 \begin_inset Flex MenuItem
4494 status collapsed
4495
4496 \begin_layout Plain Layout
4497 ;: Backspace i
4498 \end_layout
4499
4500 \end_inset
4501
4502 と押した場合には,
4503 \begin_inset Flex Code
4504 status collapsed
4505
4506 \begin_layout Plain Layout
4507
4508 \backslash
4509 '{i}
4510 \end_layout
4511
4512 \end_inset
4513
4514 となります.
4515 \end_layout
4516
4517 \begin_layout Subsection
4518 .cdefファイル
4519 \end_layout
4520
4521 \begin_layout Standard
4522 \begin_inset Flex Code
4523 status collapsed
4524
4525 \begin_layout Plain Layout
4526 .kmap
4527 \end_layout
4528
4529 \end_inset
4530
4531 による割り当てが行われた後,
4532 \begin_inset Flex Code
4533 status collapsed
4534
4535 \begin_layout Plain Layout
4536 .cdef
4537 \end_layout
4538
4539 \end_inset
4540
4541 ファイルは,記号の作り出す文字列を現在のフォントの文字に割り当てます.\SpecialChar LyX
4542 頒布版には,現在のところ,少なくとも
4543 \begin_inset Flex Code
4544 status collapsed
4545
4546 \begin_layout Plain Layout
4547 iso8859-1.cdef
4548 \end_layout
4549
4550 \end_inset
4551
4552 ファイルと
4553 \begin_inset Flex Code
4554 status collapsed
4555
4556 \begin_layout Plain Layout
4557 iso8859-2.cdef
4558 \end_layout
4559
4560 \end_inset
4561
4562 ファイルが含まれています.
4563 \end_layout
4564
4565 \begin_layout Standard
4566 一般的に
4567 \begin_inset Flex Code
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 .cdef
4572 \end_layout
4573
4574 \end_inset
4575
4576 ファイルは,
4577 \end_layout
4578
4579 \begin_layout LyX-Code
4580
4581 \family roman
4582 \emph on
4583 セット中の文字番号
4584 \family default
4585 \emph default
4586  
4587 \family roman
4588 \emph on
4589  文字列
4590 \end_layout
4591
4592 \begin_layout Standard
4593 という形の宣言の羅列です.たとえば,
4594 \begin_inset Flex MenuItem
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598
4599 \backslash
4600 '{e}
4601 \end_layout
4602
4603 \end_inset
4604
4605 をiso-8859-1セットの対応する文字(233)に割り当てるには,以下の宣言を用います.
4606 \end_layout
4607
4608 \begin_layout LyX-Code
4609 233 "
4610 \backslash
4611
4612 \backslash
4613 '{e}"
4614 \end_layout
4615
4616 \begin_layout Standard
4617 ここで,
4618 \emph on
4619 文字列
4620 \emph default
4621 中の
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626
4627 \backslash
4628
4629 \end_layout
4630
4631 \end_inset
4632
4633
4634 \begin_inset Flex Code
4635 status collapsed
4636
4637 \begin_layout Plain Layout
4638 "
4639 \end_layout
4640
4641 \end_inset
4642
4643 はエスケープされています.同一の文字を二つ以上の文字列に充てることができることに注意してください.
4644 \begin_inset Flex Code
4645 status collapsed
4646
4647 \begin_layout Plain Layout
4648 iso-8859-7.cdef
4649 \end_layout
4650
4651 \end_inset
4652
4653 ファイルには,
4654 \end_layout
4655
4656 \begin_layout LyX-Code
4657 192 "
4658 \backslash
4659
4660 \backslash
4661 '{
4662 \backslash
4663
4664 \backslash
4665
4666 \backslash
4667 "{i}}"
4668 \begin_inset Newline newline
4669 \end_inset
4670
4671 192 "
4672 \backslash
4673
4674 \backslash
4675
4676 \backslash
4677 "{
4678 \backslash
4679
4680 \backslash
4681 '{i}}"
4682 \end_layout
4683
4684 \begin_layout Standard
4685 という例があります.\SpecialChar LyX
4686 は,キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき,それがアクセント付き文字のように解釈ができない
4687 かどうかチェックして,画面上の文字にアクセントを引くことを試みます.
4688 \end_layout
4689
4690 \begin_layout Subsection
4691 デッドキー
4692 \end_layout
4693
4694 \begin_layout Standard
4695 国際文字のサポートを追加する第2の方法として,いわゆるデッドキーによる方法があります.デッドキーは文字と一緒に用いて,アクセント付き文字を生成します.ここではそ
4696 の機能を説明するために,きわめて単純なデッドキーの作り方を説明します.
4697 \end_layout
4698
4699 \begin_layout Standard
4700 仮に,曲折アクセント記号「 ̂」が必要になったものとしましょう.この場合,自身の
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705 lyxrc
4706 \end_layout
4707
4708 \end_inset
4709
4710 ファイル中で,
4711 \begin_inset Flex MenuItem
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715 ^
4716 \end_layout
4717
4718 \end_inset
4719
4720 キー(すなわち
4721 \begin_inset Flex MenuItem
4722 status collapsed
4723
4724 \begin_layout Plain Layout
4725 Shift-6
4726 \end_layout
4727
4728 \end_inset
4729
4730 キー)を,\SpecialChar LyX
4731 コマンドの
4732 \begin_inset Flex Code
4733 status collapsed
4734
4735 \begin_layout Plain Layout
4736 accent-circumflex
4737 \end_layout
4738
4739 \end_inset
4740
4741 に結びつけることができます.すると
4742 \begin_inset Flex MenuItem
4743 status collapsed
4744
4745 \begin_layout Plain Layout
4746 ^
4747 \end_layout
4748
4749 \end_inset
4750
4751 キーの後に文字を打ったときはいつでも,この文字上に曲折アクセントが付けられるようになります.たとえば「
4752 \begin_inset Flex MenuItem
4753 status collapsed
4754
4755 \begin_layout Plain Layout
4756 ^e
4757 \end_layout
4758
4759 \end_inset
4760
4761 」という打鍵順は「ê」という文字を生成します.しかしながら,もし「
4762 \begin_inset Flex MenuItem
4763 status collapsed
4764
4765 \begin_layout Plain Layout
4766 ^t
4767 \end_layout
4768
4769 \end_inset
4770
4771 」と打鍵したならば,「
4772 \begin_inset Flex MenuItem
4773 status collapsed
4774
4775 \begin_layout Plain Layout
4776 t
4777 \end_layout
4778
4779 \end_inset
4780
4781 」は曲折アクセントをとることは決してないために,\SpecialChar LyX
4782 はビープを鳴らして文句を付けます.デッドキーの後に
4783 \begin_inset Flex MenuItem
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 スペース
4788 \end_layout
4789
4790 \end_inset
4791
4792 を打つと,アクセントだけが生成されます.この最後の点に注意してください.あるキーをデッドキーに割り当てる場合には,このキー上の文字を別のキーに割り当て直す必要が
4793 あります.たとえば,
4794 \begin_inset Flex MenuItem
4795 status collapsed
4796
4797 \begin_layout Plain Layout
4798 ,キー
4799 \end_layout
4800
4801 \end_inset
4802
4803 をセディーユに割り当てるのはよくありません.コンマを入力しようとすると必ずセディーユが出てくるようになるためです.
4804 \end_layout
4805
4806 \begin_layout Standard
4807 デッドキーを割り当てるのによく用いられる方法は,
4808 \begin_inset Flex MenuItem
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812 Meta-
4813 \end_layout
4814
4815 \end_inset
4816
4817
4818 \begin_inset Flex MenuItem
4819 status collapsed
4820
4821 \begin_layout Plain Layout
4822 Ctrl-
4823 \end_layout
4824
4825 \end_inset
4826
4827
4828 \begin_inset Flex MenuItem
4829 status collapsed
4830
4831 \begin_layout Plain Layout
4832 Shift-
4833 \end_layout
4834
4835 \end_inset
4836
4837 キーを,「
4838 \begin_inset Flex MenuItem
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 ~
4843 \end_layout
4844
4845 \end_inset
4846
4847 」・「
4848 \begin_inset Flex MenuItem
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852 ,
4853 \end_layout
4854
4855 \end_inset
4856
4857 」・「
4858 \begin_inset Flex MenuItem
4859 status collapsed
4860
4861 \begin_layout Plain Layout
4862 ^
4863 \end_layout
4864
4865 \end_inset
4866
4867 」のようなアクセントと一緒に用いる方法です.また,
4868 \begin_inset Flex Code
4869 status collapsed
4870
4871 \begin_layout Plain Layout
4872 xmodmap
4873 \end_layout
4874
4875 \end_inset
4876
4877
4878 \begin_inset Flex Code
4879 status collapsed
4880
4881 \begin_layout Plain Layout
4882 xkeycaps
4883 \end_layout
4884
4885 \end_inset
4886
4887 を使って,特別な
4888 \begin_inset Flex Code
4889 status collapsed
4890
4891 \begin_layout Plain Layout
4892 Mode_Switch
4893 \end_layout
4894
4895 \end_inset
4896
4897 キーを設定する方法もあります.
4898 \begin_inset Flex Code
4899 status collapsed
4900
4901 \begin_layout Plain Layout
4902 Mode_Switch
4903 \end_layout
4904
4905 \end_inset
4906
4907 キーは,ちょうど
4908 \begin_inset Flex MenuItem
4909 status collapsed
4910
4911 \begin_layout Plain Layout
4912 Shift
4913 \end_layout
4914
4915 \end_inset
4916
4917 キーのように機能するので,アクセント文字を割り当てるのに使用できます.また,特定のキーを
4918 \begin_inset Flex Code
4919 status collapsed
4920
4921 \begin_layout Plain Layout
4922 usldead_cedilla
4923 \end_layout
4924
4925 \end_inset
4926
4927 などに割り当てることで,これらのキーをデッドキーに仕立て,このシンボリックキーを対応する\SpecialChar LyX
4928 コマンドに割り当てることもできます
4929 \begin_inset Foot
4930 status collapsed
4931
4932 \begin_layout Plain Layout
4933
4934 \noun on
4935 John Weiss
4936 \noun default
4937 からの註:これはまさに私が,自分の
4938 \begin_inset Flex Code
4939 status collapsed
4940
4941 \begin_layout Plain Layout
4942 ~/.lyx/lyxrc
4943 \end_layout
4944
4945 \end_inset
4946
4947
4948 \begin_inset Flex Code
4949 status collapsed
4950
4951 \begin_layout Plain Layout
4952 ~/.xmodmap
4953 \end_layout
4954
4955 \end_inset
4956
4957 で行っていることです.私は,
4958 \begin_inset Flex MenuItem
4959 status collapsed
4960
4961 \begin_layout Plain Layout
4962 Scroll
4963 \begin_inset space ~
4964 \end_inset
4965
4966 Lock
4967 \end_layout
4968
4969 \end_inset
4970
4971 キーを
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 Mode_Shift
4977 \end_layout
4978
4979 \end_inset
4980
4981 に仕立てて,多数の
4982 \begin_inset Flex Code
4983 status collapsed
4984
4985 \begin_layout Plain Layout
4986 usldead_*
4987 \end_layout
4988
4989 \end_inset
4990
4991 シンボリックキーを
4992 \begin_inset Flex MenuItem
4993 status collapsed
4994
4995 \begin_layout Plain Layout
4996 Scroll
4997 \begin_inset space ~
4998 \end_inset
4999
5000 Lock-^
5001 \end_layout
5002
5003 \end_inset
5004
5005
5006 \begin_inset Flex MenuItem
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 Scroll
5011 \begin_inset space ~
5012 \end_inset
5013
5014 Lock-~
5015 \end_layout
5016
5017 \end_inset
5018
5019 などに割り当てています.私はこの方法でアクセント文字を入力しています.
5020 \end_layout
5021
5022 \end_inset
5023
5024 .この
5025 \begin_inset Flex Code
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029 Mode_Switch
5030 \end_layout
5031
5032 \end_inset
5033
5034 キーには,
5035 \begin_inset Flex MenuItem
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039 Ctrl-
5040 \end_layout
5041
5042 \end_inset
5043
5044 キーの片方や使われていないファンクションキーなど,ほぼ何でも指定することができます.アクセントを生み出す\SpecialChar LyX
5045 コマンドについては,
5046 \emph on
5047 \SpecialChar LyX
5048 関数説明書
5049 \emph default
5050
5051 \begin_inset Flex Code
5052 status collapsed
5053
5054 \begin_layout Plain Layout
5055 LFUN_ACCENT_*
5056 \end_layout
5057
5058 \end_inset
5059
5060 の項をご覧ください.ここには完備した一覧があります.
5061 \end_layout
5062
5063 \begin_layout Subsection
5064 自分の言語設定を保存する
5065 \end_layout
5066
5067 \begin_layout Standard
5068 \begin_inset Flex MenuItem
5069 status collapsed
5070
5071 \begin_layout Plain Layout
5072 ツール\SpecialChar menuseparator
5073 設定
5074 \end_layout
5075
5076 \end_inset
5077
5078 ダイアログを使えば,\SpecialChar LyX
5079 を起動したときに,ご希望の言語環境に自動的に設定されるように,設定を編集することができます.
5080 \end_layout
5081
5082 \begin_layout Chapter
5083 文書クラス・レイアウト・ひな型の新規導入
5084 \begin_inset CommandInset label
5085 LatexCommand label
5086 name "cha:新規文書を導入"
5087
5088 \end_inset
5089
5090
5091 \begin_inset Argument 1
5092 status collapsed
5093
5094 \begin_layout Plain Layout
5095 文書クラスを新規に導入する
5096 \end_layout
5097
5098 \end_inset
5099
5100
5101 \end_layout
5102
5103 \begin_layout Standard
5104 この章では,新しく\SpecialChar LyX
5105 のレイアウトファイルやひな型ファイルを作成して,導入する手順を説明すると共に,新規に\SpecialChar LaTeX
5106 文書クラス(ドキュメントクラス)を正しく導入する方法を復習
5107 します.
5108 \end_layout
5109
5110 \begin_layout Standard
5111 まず,\SpecialChar LyX
5112 と\SpecialChar LaTeX
5113 の間の関係をどのように考えるべきか,若干の註釈を加えておくことにしましょう.理解していただきたいことは,ある意味において,\SpecialChar LyX
5114 は,La\SpecialChar TeX
5115 について何も知らないと
5116 云うことです.実際のところ,\SpecialChar LyX
5117 の観点からは,\SpecialChar LaTeX
5118 は,\SpecialChar LyX
5119 が出力を生成することができる,複数の「バックエンド形式」のうちの一つに過ぎないということです.同種のバックエンド形
5120 式には,DocBook・平文・XHTMLがあります.もちろん\SpecialChar LaTeX
5121 は,とくに重要な形式ですが,\SpecialChar LyX
5122 がLa\SpecialChar TeX
5123 について持っている情報のほとんどは,実はプログラム本体には含まれて
5124 いないのです
5125 \begin_inset Foot
5126 status collapsed
5127
5128 \begin_layout Plain Layout
5129 過度に複雑なため,\SpecialChar LyX
5130 に「ハードコード化」されているコマンドもありますが,一般的に開発者は,これを「わるいこと」とみなしています.
5131 \end_layout
5132
5133 \end_inset
5134
5135 .このような情報は,
5136 \begin_inset Flex Code
5137 status collapsed
5138
5139 \begin_layout Plain Layout
5140 article.cls
5141 \end_layout
5142
5143 \end_inset
5144
5145 のような標準クラスでも,「レイアウトファイル」に保管されています.同様に,\SpecialChar LyX
5146 は,DocBookやXHTMLについてもほとんど知りません.\SpecialChar LyX
5147 が知っていることは,レイア
5148 ウトファイルの中にあります.
5149 \end_layout
5150
5151 \begin_layout Standard
5152 文書クラス用のレイアウトファイルは,\SpecialChar LyX
5153 構成体—対応する様式や何らかの差込枠などを有する段落群—と,それに対応する\SpecialChar LaTeX
5154 構成体・DocBook構成体・XHTML構成体との
5155 間の翻訳指南書のようなものです.たとえば,\SpecialChar LyX
5156
5157 \begin_inset Flex Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161 article.cls
5162 \end_layout
5163
5164 \end_inset
5165
5166 について知っていることのほとんど総ては,
5167 \begin_inset Flex Code
5168 status collapsed
5169
5170 \begin_layout Plain Layout
5171 article.layout
5172 \end_layout
5173
5174 \end_inset
5175
5176 と,それが呼び出す他の様々なファイルに書き込まれています.このことから,レイアウトファイルを書こうとする人は,既存のファイルを研究することを勧めます.とっかかり
5177 としては,
5178 \begin_inset Flex Code
5179 status collapsed
5180
5181 \begin_layout Plain Layout
5182 article.layout
5183 \end_layout
5184
5185 \end_inset
5186
5187
5188 \begin_inset Flex Code
5189 status collapsed
5190
5191 \begin_layout Plain Layout
5192 book.layout
5193 \end_layout
5194
5195 \end_inset
5196
5197 や,文書クラス用の他のレイアウトファイルに取り込まれている
5198 \begin_inset Flex Code
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 stdsections.inc
5203 \end_layout
5204
5205 \end_inset
5206
5207 から見始めるのがよいでしょう.このファイルは,節などの定義が為されている場所です.
5208 \begin_inset Flex Code
5209 status collapsed
5210
5211 \begin_layout Plain Layout
5212 stdsections.inc
5213 \end_layout
5214
5215 \end_inset
5216
5217 は,節様式や小節様式などとしてマークされている段落を,対応する\SpecialChar LaTeX
5218 ・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかを\SpecialChar LyX
5219 に知らせるものです.基本的に
5220 \begin_inset Flex Code
5221 status collapsed
5222
5223 \begin_layout Plain Layout
5224 article.layout
5225 \end_layout
5226
5227 \end_inset
5228
5229 ファイルは,これらの
5230 \begin_inset Flex Code
5231 status collapsed
5232
5233 \begin_layout Plain Layout
5234 std*.inc
5235 \end_layout
5236
5237 \end_inset
5238
5239 ファイルを取り込んでいるだけのものです.
5240 \end_layout
5241
5242 \begin_layout Standard
5243 しかしながら,\SpecialChar LyX
5244 –\SpecialChar LaTeX
5245 間の対応を定義するだけが,レイアウトファイルが行うことではありません.レイアウトファイルが行うもう一つの仕事は,\SpecialChar LyX
5246 構成体自身が画面上にどのように表
5247 示されるべきかを定義することです.この2つの仕事は全く独立したものであるので,レイアウトファイルが2つの仕事を行うという事実は,しばしば混乱を引き起こす元となり
5248 ます.ある段落様式を\SpecialChar LaTeX
5249 に翻訳する仕方を\SpecialChar LyX
5250 に指示することは,その表示の仕方を\SpecialChar LyX
5251 に指示するものではありません.逆に,ある段落様式の表示の仕方を\SpecialChar LyX
5252 に指示することは,その段落様
5253 式をどのように\SpecialChar LaTeX
5254 に翻訳するかを\SpecialChar LyX
5255 に指示するものではありません(ましてや\SpecialChar LaTeX
5256 に表示の仕方を指示するものではありません).つまり,一般的に,新しい\SpecialChar LyX
5257 構成体を定義する際には,(
5258 i)
5259 \begin_inset space ~
5260 \end_inset
5261
5262 \SpecialChar LaTeX
5263 にどのように翻訳するかを\SpecialChar LyX
5264 に指示する,(ii)
5265 \begin_inset space ~
5266 \end_inset
5267
5268 それをどのように表示するかを\SpecialChar LyX
5269 に指示する,という,二つのかなり異なることを行わなくてはならないのです.
5270 \end_layout
5271
5272 \begin_layout Standard
5273 もちろん,\SpecialChar LyX
5274 の他のバックエンド形式に関しても,ほぼ同じことが言えますが,XHTMLの場合には若干事情が異なり,\SpecialChar LyX
5275 が,ブラウザ中での段落の表示方法を(CSSの形で)出
5276 力するにあたって,当該段落を\SpecialChar LyX
5277 が画面上に出力する仕方の情報を,ある程度利用することができます.しかし,この場合でも,\SpecialChar LyX
5278 が内部的に行うことと,外部的に行う物事の間の区
5279 別は,依然として有効であり,この2つは独立して制御することができます.詳細に関しては,第
5280 \begin_inset CommandInset ref
5281 LatexCommand ref
5282 reference "sec:XHTML出力のタグ"
5283
5284 \end_inset
5285
5286 節をご覧ください.
5287 \end_layout
5288
5289 \begin_layout Section
5290 新しい\SpecialChar LaTeX
5291 ファイルの導入
5292 \end_layout
5293
5294 \begin_layout Standard
5295 頒布版によっては,\SpecialChar LyX
5296 で使いたい\SpecialChar LaTeX
5297 パッケージやクラスファイルが含まれていないことがあるかもしれません.たとえば,オーバーヘッドプロジェクタ用のスライドを準備するための
5298 パッケージである,Foil\SpecialChar TeX
5299 がないかもしれません.\SpecialChar TeX
5300 Live(2008年以降)やMiK\SpecialChar TeX
5301 のような最近の\SpecialChar LaTeX
5302 頒布版には,これらのパッケージを導入するためのユーザーインタフェ
5303 ースが用意されています.たとえば,MiK\SpecialChar TeX
5304 では,付属の「Package
5305 \begin_inset space ~
5306 \end_inset
5307
5308 Manager」プログラムを起動すると,利用できるパッケージの一覧を得ることができます.どれかを導入するには,その上で右クリックするかツールバーボタンを押してく
5309 ださい.
5310 \end_layout
5311
5312 \begin_layout Standard
5313 お使いの\SpecialChar LaTeX
5314 頒布版がこのような「パッケージマネジャー」を提供していなかったり,使用中の頒布版にそのパッケージが入っていない場合には,以下のステップに従って手動で導入
5315 してください.
5316 \end_layout
5317
5318 \begin_layout Enumerate
5319 \begin_inset CommandInset href
5320 LatexCommand href
5321 name "CTAN"
5322 target "http://www.ctan.org/"
5323
5324 \end_inset
5325
5326 などから欲しいパッケージを入手してください.
5327 \end_layout
5328
5329 \begin_layout Enumerate
5330 パッケージに「
5331 \begin_inset Flex Code
5332 status collapsed
5333
5334 \begin_layout Plain Layout
5335 .ins
5336 \end_layout
5337
5338 \end_inset
5339
5340 」で終わるファイル名が入っている場合(Foil\SpecialChar TeX
5341 がその一例です)は,コンソールを開いて,このファイルのフォルダに移動し,コマンド
5342 \begin_inset Flex Code
5343 status collapsed
5344
5345 \begin_layout Plain Layout
5346 latex foiltex.ins
5347 \end_layout
5348
5349 \end_inset
5350
5351 を実行してください.すると,パッケージが解凍されて,導入すべきすべてのファイルが展開されます.たいていの\SpecialChar LaTeX
5352 パッケージは圧縮されていないので,このステップは飛ばすこ
5353 とができます.
5354 \end_layout
5355
5356 \begin_layout Enumerate
5357 ここで,パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります.
5358 \end_layout
5359
5360 \begin_deeper
5361 \begin_layout Enumerate
5362 (Linux・OSXなどの)*nix系システムでは,システム上の全ユーザーに新パッケージを利用可能にしたければ,「ローカル」\SpecialChar TeX
5363 ツリーに導入し,そうでなければ「ユー
5364 ザー」\SpecialChar TeX
5365 ツリーに導入してください.これらのツリーが存在しない場合にどこに作成すればよいかは,お使いのシステムに依存します.これを見いだすには,
5366 \begin_inset Flex Code
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370 texmf.cnf
5371 \end_layout
5372
5373 \end_inset
5374
5375 ファイルを参照してください
5376 \begin_inset Foot
5377 status collapsed
5378
5379 \begin_layout Plain Layout
5380 このファイルは,通常
5381 \family sans
5382 $TEXMF/web2c
5383 \family default
5384 ディレクトリにありますが,コマンド
5385 \begin_inset Flex Code
5386 status collapsed
5387
5388 \begin_layout Plain Layout
5389 kpsewhich texmf.cnf
5390 \end_layout
5391
5392 \end_inset
5393
5394 を実行してその場所を見つけることもできます.
5395 \end_layout
5396
5397 \end_inset
5398
5399 .「ローカル」\SpecialChar TeX
5400 ツリーの場所は,
5401 \begin_inset Flex Code
5402 status collapsed
5403
5404 \begin_layout Plain Layout
5405 TEXMFLOCAL
5406 \end_layout
5407
5408 \end_inset
5409
5410 変数で定義されており,通常は
5411 \begin_inset Flex Code
5412 status collapsed
5413
5414 \begin_layout Plain Layout
5415 /usr/local/share/texmf/
5416 \end_layout
5417
5418 \end_inset
5419
5420
5421 \begin_inset Flex Code
5422 status collapsed
5423
5424 \begin_layout Plain Layout
5425 /usr/local/texlive/XXXX
5426 \end_layout
5427
5428 \end_inset
5429
5430  (XXXXは導入されている\SpecialChar TeX
5431 Live頒布版の年次)のような場所になっています.「ユーザー」\SpecialChar TeX
5432 ツリーの場所は,
5433 \begin_inset Flex Code
5434 status collapsed
5435
5436 \begin_layout Plain Layout
5437 TEXMFHOME
5438 \end_layout
5439
5440 \end_inset
5441
5442 で定義されており,通常は
5443 \begin_inset Flex Code
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 $HOME/texmf/
5448 \end_layout
5449
5450 \end_inset
5451
5452
5453 \begin_inset Flex Code
5454 status collapsed
5455
5456 \begin_layout Plain Layout
5457 $HOME/.texliveXXXX
5458 \end_layout
5459
5460 \end_inset
5461
5462 です(もしこれらの変数が事前定義されていなければ,定義しなくてはなりません).「ローカル」ツリーを作成したり変更したりするには,おそらくroot権限が必要ですが
5463 ,「ユーザー」ツリーにはこのような制限はありません.
5464 \begin_inset Newline newline
5465 \end_inset
5466
5467 一般的に,システムをアップグレードした際に,ユーザーが修正されたり上書きされたりということが起こらないので,ユーザーツリーに導入することが推奨されます.こうする
5468 と,自分のホームディレクトリをバックアップする際に,パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です).
5469 \end_layout
5470
5471 \begin_layout Enumerate
5472 Windowで,システム上の全ユーザーに新パッケージを利用可能にしたい場合には,\SpecialChar LaTeX
5473 の導入されているフォルダのサブフォルダ
5474 \begin_inset Flex Code
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478 ~
5479 \backslash
5480 tex
5481 \backslash
5482 latex
5483 \end_layout
5484
5485 \end_inset
5486
5487 に移動します(MiK\SpecialChar TeX
5488 の既定値では,これは
5489 \begin_inset Flex Code
5490 status collapsed
5491
5492 \begin_layout Plain Layout
5493 ~:Programs
5494 \backslash
5495 MiKTeX
5496 \backslash
5497 tex
5498 \backslash
5499 latex
5500 \end_layout
5501
5502 \end_inset
5503
5504 です)
5505 \begin_inset Foot
5506 status open
5507
5508 \begin_layout Plain Layout
5509 これは,英語版でのみ正しいパスになっています.独語版では
5510 \begin_inset Flex Code
5511 status collapsed
5512
5513 \begin_layout Plain Layout
5514 ~:Programme
5515 \backslash
5516 MiKTeX
5517 \backslash
5518 tex
5519 \backslash
5520 latex
5521 \end_layout
5522
5523 \end_inset
5524
5525 となり,他の言語でも同様です.
5526 \end_layout
5527
5528 \end_inset
5529
5530 .ここに新規フォルダ
5531 \begin_inset Flex Code
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 foiltex
5536 \end_layout
5537
5538 \end_inset
5539
5540 を作成し,パッケージの全ファイルをそこにコピーしてください.パッケージを自分だけで使用したい場合や,admin権限を持っていない場合には,ローカル\SpecialChar LaTeX
5541 フォルダで同じ
5542 ことを行います.たとえばMiK\SpecialChar TeX
5543
5544 \begin_inset space ~
5545 \end_inset
5546
5547 2.8では,これはWinXP上では
5548 \begin_inset Newline newline
5549 \end_inset
5550
5551
5552 \begin_inset Flex Code
5553 status collapsed
5554
5555 \begin_layout Plain Layout
5556 ~:
5557 \backslash
5558 Documents and Settings
5559 \backslash
5560 <ユーザー名>
5561 \backslash
5562 Application Data
5563 \backslash
5564
5565 \end_layout
5566
5567 \end_inset
5568
5569
5570 \begin_inset Newline newline
5571 \end_inset
5572
5573
5574 \begin_inset Phantom HPhantom
5575 status open
5576
5577 \begin_layout Plain Layout
5578
5579 \family typewriter
5580 ~:
5581 \backslash
5582
5583 \end_layout
5584
5585 \end_inset
5586
5587
5588 \begin_inset Flex Code
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 MiKTeX
5593 \backslash
5594 2.8
5595 \backslash
5596 tex
5597 \backslash
5598 latex
5599 \end_layout
5600
5601 \end_inset
5602
5603
5604 \begin_inset Newline newline
5605 \end_inset
5606
5607 フォルダ,WinVista上では
5608 \begin_inset Newline newline
5609 \end_inset
5610
5611
5612 \begin_inset Flex Code
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 ~:
5617 \backslash
5618 Users
5619 \backslash
5620 <ユーザー名>
5621 \backslash
5622 AppData
5623 \backslash
5624 Roaming
5625 \backslash
5626 2.8
5627 \backslash
5628 MiKTeX
5629 \backslash
5630 tex
5631 \backslash
5632 latex
5633 \end_layout
5634
5635 \end_inset
5636
5637
5638 \begin_inset Newline newline
5639 \end_inset
5640
5641 フォルダになります.
5642 \end_layout
5643
5644 \end_deeper
5645 \begin_layout Enumerate
5646 ここまで来れば,あとは\SpecialChar LaTeX
5647 に新しいファイルがあることを告げるだけです.これは使用している\SpecialChar LaTeX
5648 頒布版に依存します.
5649 \end_layout
5650
5651 \begin_deeper
5652 \begin_layout Enumerate
5653 \SpecialChar TeX
5654 Liveの場合には,コンソールから
5655 \begin_inset Flex Code
5656 status collapsed
5657
5658 \begin_layout Plain Layout
5659 texhash
5660 \end_layout
5661
5662 \end_inset
5663
5664 コマンドを実行してください.パッケージを全ユーザー用に導入した場合には,おそらくroot権限で行う必要があります.
5665 \end_layout
5666
5667 \begin_layout Enumerate
5668 MiK\SpecialChar TeX
5669 では,パッケージを全ユーザー用に導入した場合には,「Settings
5670 \begin_inset space ~
5671 \end_inset
5672
5673 (Admin)」を起動し,「Refresh FNDB」と記してあるボタンを押してください.そうでない場合には,「Settings」を起動して同様に行ってください
5674
5675 \end_layout
5676
5677 \end_deeper
5678 \begin_layout Enumerate
5679 最後に,\SpecialChar LyX
5680 に新しいパッケージがあることを告げなくてはなりません.そこで,\SpecialChar LyX
5681 からツール\SpecialChar menuseparator
5682 環境構成メニューを実行して,\SpecialChar LyX
5683 を再起動します.
5684 \end_layout
5685
5686 \begin_layout Standard
5687 これでパッケージが導入されました.この例では,文書クラス
5688 \begin_inset Flex Code
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692 Slides
5693 \begin_inset space ~
5694 \end_inset
5695
5696 (FoilTeX)
5697 \end_layout
5698
5699 \end_inset
5700
5701
5702 \begin_inset Flex MenuItem
5703 status collapsed
5704
5705 \begin_layout Plain Layout
5706 文書\SpecialChar menuseparator
5707 設定\SpecialChar menuseparator
5708 文書クラス
5709 \end_layout
5710
5711 \end_inset
5712
5713 で利用可能になっているはずです.
5714 \end_layout
5715
5716 \begin_layout Standard
5717 \begin_inset Flex MenuItem
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 文書\SpecialChar menuseparator
5722 設定\SpecialChar menuseparator
5723 文書クラス
5724 \end_layout
5725
5726 \end_inset
5727
5728 メニューに列挙されてもいない\SpecialChar LaTeX
5729 文書クラスを使用したい場合には,その「レイアウト」ファイルを作り出さなくてはなりません.これが次節のトピックです.
5730 \end_layout
5731
5732 \begin_layout Section
5733 レイアウトファイルの型
5734 \end_layout
5735
5736 \begin_layout Standard
5737 この節は,レイアウト情報を含む各種\SpecialChar LyX
5738 ファイルについて述べます.これらのファイルは,各種段落様式や文字様式についての記述がされているものであり,\SpecialChar LyX
5739 がそれらをどのように
5740 表示すべきなのか,また,それらをどのように\SpecialChar LaTeX
5741 やDocBook,XHTMLその他の出力形式に翻訳すればよいのかが記されています.
5742 \end_layout
5743
5744 \begin_layout Standard
5745 ここでは,レイアウトファイル作成過程の包括的な解説を試みたいと思いますが,\SpecialChar LaTeX
5746 クラスだけでもサポートする文書の種類があまりにたくさんあるので,読者が出会いうるケース
5747 や問題をすべてカバーすることはとても望めません.\SpecialChar LyX
5748 ユーザーメーリングリストには,自身の経験を人々と分かち合いたいと望む,レイアウトデザインの経験豊かな人々がよく顔
5749 を出していますので,気軽に質問を投げかけてみてください.
5750 \end_layout
5751
5752 \begin_layout Standard
5753 新しいレイアウトを準備するに当たっては,\SpecialChar LyX
5754 と共に頒布されているレイアウトの例を見るのがたいへん役立ちます.他の人々も使用できる\SpecialChar LaTeX
5755 文書クラス用の\SpecialChar LyX
5756 レイアウトを作ったり,
5757 他の人々にも有用なモジュールをお書きになった場合には,
5758 \begin_inset CommandInset href
5759 LatexCommand href
5760 name "LyX Wikiのレイアウトに関する節"
5761 target "http://wiki.lyx.org/Layouts/Layouts"
5762
5763 \end_inset
5764
5765 か,\SpecialChar LyX
5766 開発者メーリングリストに投稿して,\SpecialChar LyX
5767 頒布版に同梱することができるようにしてください
5768 \begin_inset Foot
5769 status collapsed
5770
5771 \begin_layout Plain Layout
5772 \SpecialChar LyX
5773 はGeneral Public Licenseの下でライセンスされていますので,\SpecialChar LyX
5774 に寄贈されたものは総て同じライセンス下に置かれることに注意してください.
5775 \end_layout
5776
5777 \end_inset
5778
5779
5780 \end_layout
5781
5782 \begin_layout Subsection
5783 レイアウトモジュール
5784 \begin_inset CommandInset label
5785 LatexCommand label
5786 name "subsec:レイアウトモジュール"
5787
5788 \end_inset
5789
5790
5791 \end_layout
5792
5793 \begin_layout Standard
5794 ここまで,「レイアウトファイル」についてお話してきました.しかし,レイアウト情報を含むものには,他の種類のファイルもあります.厳密にレイアウトファイルと呼ぶとき
5795 ,それは
5796 \begin_inset Flex Code
5797 status collapsed
5798
5799 \begin_layout Plain Layout
5800 .layout
5801 \end_layout
5802
5803 \end_inset
5804
5805 拡張子を持ち,文書クラスに関する情報を\SpecialChar LyX
5806 に提供するものを指します.しかしながら,\SpecialChar LyX
5807  1.6以降,レイアウト情報は,拡張子が
5808 \begin_inset Flex Code
5809 status collapsed
5810
5811 \begin_layout Plain Layout
5812 .module
5813 \end_layout
5814
5815 \end_inset
5816
5817 のレイアウト
5818 \emph on
5819 モジュール
5820 \emph default
5821 にも含めることができます.レイアウトが\SpecialChar LaTeX
5822 クラスに対応しているように,モジュールは\SpecialChar LaTeX
5823 パッケージに対応するものであり,
5824 \begin_inset Flex Code
5825 status collapsed
5826
5827 \begin_layout Plain Layout
5828 endnotes
5829 \end_layout
5830
5831 \end_inset
5832
5833 モジュールのように,特定のパッケージにサポートを提供するためのモジュールもあります.レイアウトモジュールは,特定の文書レイアウトに特化したものではなく,多くのレ
5834 イアウトで使用できるという意味において,一面,
5835 \begin_inset Flex Code
5836 status collapsed
5837
5838 \begin_layout Plain Layout
5839 stdsections.inc
5840 \end_layout
5841
5842 \end_inset
5843
5844 等のインクルードファイル
5845 \begin_inset Foot
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 これらは任意の拡張子をつけることができますが,慣習的に
5850 \begin_inset Flex Code
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 .inc
5855 \end_layout
5856
5857 \end_inset
5858
5859 拡張子が用いられます.
5860 \end_layout
5861
5862 \end_inset
5863
5864 のようなものです.相異なる点といえば,
5865 \begin_inset Flex Code
5866 status collapsed
5867
5868 \begin_layout Plain Layout
5869 article.cls
5870 \end_layout
5871
5872 \end_inset
5873
5874 でインクルードファイルを使用するには,そのファイルを編集しなくてはなりませんが,モジュールの場合は,
5875 \begin_inset Flex MenuItem
5876 status collapsed
5877
5878 \begin_layout Plain Layout
5879 文書\SpecialChar menuseparator
5880 設定
5881 \end_layout
5882
5883 \end_inset
5884
5885 ダイアログで選択するだけですみます.
5886 \end_layout
5887
5888 \begin_layout Standard
5889 モジュール作成は,新しく段落様式を一つ加えたり,自由差込枠を加えたりするだけで済むことも多いので,レイアウト編集を学ぶ上でもっとも易しい方法です.しかし原理的に
5890 は,レイアウトファイルに入れることのできるものはすべて入れることができます.
5891 \end_layout
5892
5893 \begin_layout Standard
5894 新しいモジュールを作成し,それを
5895 \begin_inset Flex Code
5896 status collapsed
5897
5898 \begin_layout Plain Layout
5899 layout/
5900 \end_layout
5901
5902 \end_inset
5903
5904 フォルダにコピーした後,モジュールがメニューに現れるようにするためには,\SpecialChar LyX
5905 の環境構成を行って再起動しなくてはなりません.しかしながら,モジュールの修正の場合には,
5906 \begin_inset Flex MenuItem
5907 status collapsed
5908
5909 \begin_layout Plain Layout
5910 文書\SpecialChar menuseparator
5911 設定
5912 \end_layout
5913
5914 \end_inset
5915
5916 を開いてどれかを選択し「OK」を押せば,直ちに反映されます.
5917 \emph on
5918 これを実行する前に,作業中の文書を保存しておくことを強く勧めます
5919 \emph default
5920 .もっと言えば,
5921 \emph on
5922 実際の文書で作業しているときに,同時にモジュールの編集をしようとしないことを強く勧めます
5923 \emph default
5924 .もちろん開発陣は,そのような場合でも\SpecialChar LyX
5925 が安定性を維持するように努力していますが,あなたが作成したモジュール中の文法エラー等によって,奇妙な挙動が引き起こされるこ
5926 とがあるからです.
5927 \end_layout
5928
5929 \begin_layout Subsubsection
5930 ローカルレイアウト
5931 \end_layout
5932
5933 \begin_layout Standard
5934 \SpecialChar LyX
5935 に於けるモジュールは,\SpecialChar LaTeX
5936 に於けるパッケージに当たります.しかしながら,特定の差込枠や文字様式を,ひとつの文書のためだけに作りたいこともあるでしょうから,そのような
5937 場合に,他の文書でも利用できるようなモジュールをわざわざ書くことには,あまり意味がありません.このような場合に必要となるのが,「ローカルレイアウト」なのです.
5938 \end_layout
5939
5940 \begin_layout Standard
5941 これは,
5942 \family sans
5943 文書\SpecialChar menuseparator
5944 設定\SpecialChar menuseparator
5945 ローカルのレイアウト
5946 \family default
5947 にあります.そこにある大きなテキストボックスは,本来ならレイアウトファイルやモジュールに入力すべきものを,入力するためのものです.特定の文書のローカルレイアウト
5948 は,その文書専属のモジュールだと考えることができます.したがって,
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 Format
5954 \end_layout
5955
5956 \end_inset
5957
5958 タグは挿入しなくてはなりません.どの書式を使用しても構いませんが,通常は,執筆時点の最新書式を用いることになるでしょう(\SpecialChar LyX
5959  2.2では,最新書式は60です)
5960 \end_layout
5961
5962 \begin_layout Standard
5963 \begin_inset Flex Code
5964 status collapsed
5965
5966 \begin_layout Plain Layout
5967 ローカルのレイアウト
5968 \end_layout
5969
5970 \end_inset
5971
5972 面に何かを入力すると,下部にある「検証」ボタンが有効になります.このボタンを押すと,ユーザーの入力したものが,指定された書式に沿って,有効なレイアウト情報になっ
5973 ているかどうかが検証されます.すると,\SpecialChar LyX
5974 がその結果を返しますが,残念ながら,エラーがあった場合にそれが何のエラーであるかは返しません.しかしながら,\SpecialChar LyX
5975 をターミナル(
5976 擬似端末)から起動した場合には,そのエラーがターミナルに返されます.ローカルレイアウトは,正しい書式で入力されないうちは,保存することができません.
5977 \end_layout
5978
5979 \begin_layout Standard
5980 ここで,前節と同じ警告があります.ローカルレイアウトは,作業中の文書上で,特に保存していない文書上ではいじらないでください.それに注意すれば,テスト用文書上でロ
5981 ーカルレイアウトを用いるのは,レイアウトのアイディアを試すのに便利ですし,モジュール開発の第一歩としても便利です.
5982 \end_layout
5983
5984 \begin_layout Subsection
5985 \begin_inset Flex MenuItem
5986 status collapsed
5987
5988 \begin_layout Plain Layout
5989 .sty
5990 \end_layout
5991
5992 \end_inset
5993
5994 ファイル用のレイアウト
5995 \end_layout
5996
5997 \begin_layout Standard
5998 新しく\SpecialChar LaTeX
5999 文書クラスをサポートしようとするとき,\SpecialChar LaTeX2e
6000 クラス(
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 .cls
6006 \end_layout
6007
6008 \end_inset
6009
6010 )ファイルが絡む場合と,スタイル(
6011 \begin_inset Flex Code
6012 status collapsed
6013
6014 \begin_layout Plain Layout
6015 .sty
6016 \end_layout
6017
6018 \end_inset
6019
6020 )ファイルが絡む場合の2つの状況があり得ます.スタイルファイルのサポートは,通常は,かなり容易ですが,新しくクラスファイルをサポートすることは,もう少し難しくな
6021 ります.この節では,前者について述べることとし,後者については次節に譲ります.当然のことながら,新しくDocBook DTDをサポートしたい場合にも,同様の所見
6022 が当てはまります.
6023 \end_layout
6024
6025 \begin_layout Standard
6026 この易しい方の場合では,新しい文書クラスは,既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています.例示のために,スタイルファイルは
6027 \begin_inset Flex MenuItem
6028 status collapsed
6029
6030 \begin_layout Plain Layout
6031 myclass.sty
6032 \end_layout
6033
6034 \end_inset
6035
6036 という名称で,標準的なクラスである
6037 \begin_inset Flex MenuItem
6038 status collapsed
6039
6040 \begin_layout Plain Layout
6041 report.cls
6042 \end_layout
6043
6044 \end_inset
6045
6046 と共に用いられるものと仮定しましょう.
6047 \end_layout
6048
6049 \begin_layout Standard
6050 既存の文書クラスのレイアウトファイルを,以下のように,お使いのローカルディレクトリにコピーすることから始めてください
6051 \begin_inset Foot
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 もちろん,どのディレクトリがローカルディレクトリとなるかは,プラットフォームに依存します.\SpecialChar LyX
6056 では,起動時に
6057 \begin_inset Flex MenuItem
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 -userdir
6062 \end_layout
6063
6064 \end_inset
6065
6066 オプションを指定することによって,ローカルディレクトリを指定することも可能です.
6067 \end_layout
6068
6069 \end_inset
6070
6071
6072 \end_layout
6073
6074 \begin_layout LyX-Code
6075 cp report.layout ~/.lyx/layouts/myclass.layout
6076 \end_layout
6077
6078 \begin_layout Standard
6079 それから,
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 myclass.layout
6085 \end_layout
6086
6087 \end_inset
6088
6089 を編集して,
6090 \end_layout
6091
6092 \begin_layout LyX-Code
6093
6094 \backslash
6095 DeclareLaTeXClass{report}
6096 \end_layout
6097
6098 \begin_layout Standard
6099 という行を
6100 \end_layout
6101
6102 \begin_layout LyX-Code
6103
6104 \backslash
6105 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6106 \end_layout
6107
6108 \begin_layout Standard
6109 のように変更してください.それから,ファイル冒頭辺りに
6110 \end_layout
6111
6112 \begin_layout LyX-Code
6113 Preamble 
6114 \begin_inset Newline newline
6115 \end_inset
6116
6117     
6118 \backslash
6119 usepackage{myclass}
6120 \begin_inset Newline newline
6121 \end_inset
6122
6123 EndPreamble
6124 \end_layout
6125
6126 \begin_layout Standard
6127 と書き加えてください.
6128 \end_layout
6129
6130 \begin_layout Standard
6131 \SpecialChar LyX
6132 を起動して
6133 \begin_inset Flex MenuItem
6134 status collapsed
6135
6136 \begin_layout Plain Layout
6137 ツール\SpecialChar menuseparator
6138 環境構成
6139 \end_layout
6140
6141 \end_inset
6142
6143 を選択してください.それから\SpecialChar LyX
6144 を再起動し,新規文書を作成してみてください.すると,
6145 \begin_inset Flex MenuItem
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 文書\SpecialChar menuseparator
6150 設定
6151 \end_layout
6152
6153 \end_inset
6154
6155 ダイアログの文書クラスオプションに「
6156 \begin_inset Flex MenuItem
6157 status collapsed
6158
6159 \begin_layout Plain Layout
6160 report (myclass)
6161 \end_layout
6162
6163 \end_inset
6164
6165 」が現れるはずです.新しいクラスにおいて,節区切り用コマンドなどの一部が,基礎となったクラス—この例では
6166 \begin_inset Flex Code
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 report
6171 \end_layout
6172
6173 \end_inset
6174
6175 —とは違う挙動をすることはよくありますので,希望に応じて,各節の設定をいじると良いでしょう.各節のレイアウト情報は,
6176 \begin_inset Flex Code
6177 status collapsed
6178
6179 \begin_layout Plain Layout
6180 stdsections.inc
6181 \end_layout
6182
6183 \end_inset
6184
6185 に含まれていますが,このファイルをコピーしたり変更したりする必要はありません.代わりに,自身のレイアウトファイル中,
6186 \begin_inset Flex Code
6187 status collapsed
6188
6189 \begin_layout Plain Layout
6190 stdsections.inc
6191 \end_layout
6192
6193 \end_inset
6194
6195 も取り込む
6196 \begin_inset Flex Code
6197 status collapsed
6198
6199 \begin_layout Plain Layout
6200 Input stdclass.inc
6201 \end_layout
6202
6203 \end_inset
6204
6205 の後に変更を加えるだけです.たとえば,章見だしのフォントをサンセリフ体に変更するには,以下のような行を加えます.
6206 \end_layout
6207
6208 \begin_layout LyX-Code
6209 Style Chapter
6210 \end_layout
6211
6212 \begin_layout LyX-Code
6213     Font
6214 \end_layout
6215
6216 \begin_layout LyX-Code
6217         Family Sans
6218 \end_layout
6219
6220 \begin_layout LyX-Code
6221     EndFont
6222 \end_layout
6223
6224 \begin_layout LyX-Code
6225 End
6226 \end_layout
6227
6228 \begin_layout Standard
6229 これは,既存の章様式宣言を上書き(あるいはこの場合には追加)します.
6230 \end_layout
6231
6232 \begin_layout Standard
6233 新しいパッケージでは,基礎となったクラスには存在しないコマンドや環境を提供することもできます.この場合には,これらをレイアウトファイルに加えます.そのやり方につ
6234 いては,第
6235 \begin_inset CommandInset ref
6236 LatexCommand ref
6237 reference "sec:テキストクラス"
6238
6239 \end_inset
6240
6241 節の情報を参照してください.
6242 \end_layout
6243
6244 \begin_layout Standard
6245 もし
6246 \begin_inset Flex Code
6247 status collapsed
6248
6249 \begin_layout Plain Layout
6250 myclass.sty
6251 \end_layout
6252
6253 \end_inset
6254
6255 が他の文書クラスで使用することができたり,あるいはできない場合でも,基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
6256 う.最も簡単なモジュールの例としては,以下のようなものになります.
6257 \end_layout
6258
6259 \begin_layout LyX-Code
6260 #
6261 \backslash
6262 DeclareLyXModule{My Package}
6263 \end_layout
6264
6265 \begin_layout LyX-Code
6266 #DescriptionBegin
6267 \end_layout
6268
6269 \begin_layout LyX-Code
6270 #Support for mypkg.sty.
6271 \end_layout
6272
6273 \begin_layout LyX-Code
6274 #DescriptionEnd
6275 \begin_inset Newline newline
6276 \end_inset
6277
6278
6279 \end_layout
6280
6281 \begin_layout LyX-Code
6282 Format 60
6283 \begin_inset Newline newline
6284 \end_inset
6285
6286
6287 \end_layout
6288
6289 \begin_layout LyX-Code
6290 Preamble
6291 \begin_inset Newline newline
6292 \end_inset
6293
6294     
6295 \backslash
6296 usepackage{mypkg}
6297 \begin_inset Newline newline
6298 \end_inset
6299
6300 EndPreamble
6301 \end_layout
6302
6303 \begin_layout Standard
6304 もう少し複雑なモジュールでは,既存の構成物の挙動を修正したり,新しい構成物を定義したりすることになるでしょう.この辺りの議論については,第
6305 \begin_inset CommandInset ref
6306 LatexCommand ref
6307 reference "sec:テキストクラス"
6308
6309 \end_inset
6310
6311 節を参照してください.
6312 \end_layout
6313
6314 \begin_layout Subsection
6315 \begin_inset Flex MenuItem
6316 status collapsed
6317
6318 \begin_layout Plain Layout
6319 .cls
6320 \end_layout
6321
6322 \end_inset
6323
6324 ファイル用のレイアウト
6325 \end_layout
6326
6327 \begin_layout Standard
6328 これには2つのケースがありえます.ひとつは,クラスファイル自体が既存の文書クラスに立脚している場合です.たとえば,多くの学位論文用クラスは
6329 \begin_inset Flex MenuItem
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 book.cls
6334 \end_layout
6335
6336 \end_inset
6337
6338 に基づいています.お使いのものがどうであるかを見るには,クラスファイル中に
6339 \end_layout
6340
6341 \begin_layout LyX-Code
6342
6343 \backslash
6344 LoadClass{book}
6345 \end_layout
6346
6347 \begin_layout Standard
6348 という行がないかどうか探してください.もしこれがあれば,
6349 \begin_inset Flex Code
6350 status collapsed
6351
6352 \begin_layout Plain Layout
6353 Declare\SpecialChar LaTeX
6354 Class
6355 \end_layout
6356
6357 \end_inset
6358
6359 行は異なりますが,おおよそ前節のように進めることができます.あなたが新しく作るクラスが
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 thesis
6365 \end_layout
6366
6367 \end_inset
6368
6369 であり,
6370 \begin_inset Flex Code
6371 status collapsed
6372
6373 \begin_layout Plain Layout
6374 book
6375 \end_layout
6376
6377 \end_inset
6378
6379 クラスに基づいていれば,
6380 \begin_inset Flex Code
6381 status collapsed
6382
6383 \begin_layout Plain Layout
6384 Declare\SpecialChar LaTeX
6385 Class
6386 \end_layout
6387
6388 \end_inset
6389
6390 行は以下のようにします
6391 \begin_inset Foot
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 さらに\SpecialChar LyX
6396 は,文書クラス名がレイアウトファイル名と同じだと仮定するので,クラスファイルを
6397 \begin_inset Flex Code
6398 status collapsed
6399
6400 \begin_layout Plain Layout
6401 thesis.layout
6402 \end_layout
6403
6404 \end_inset
6405
6406 という名前で保存するのが最も簡単です. 
6407 \end_layout
6408
6409 \end_inset
6410
6411
6412 \end_layout
6413
6414 \begin_layout LyX-Code
6415
6416 \backslash
6417 DeclareLaTeXClass[thesis,book]{thesis}
6418 \end_layout
6419
6420 \begin_layout Standard
6421 他方,新しいクラスが既存のクラスに基づいていない場合には,おそらくあなた自身のレイアウトをしたためる必要があります.もし可能であれば,類似した\SpecialChar LaTeX
6422 クラスを使用してい
6423 る既存のレイアウトファイルをコピーして,それに修正を加えるようにすることを強くお勧めします.少なくとも,どの項目を考慮すべきかがわかるように,既存のファイルを作
6424 業の開始点としてください.
6425 \end_layout
6426
6427 \begin_layout Subsection
6428 ひな型を作成する
6429 \begin_inset CommandInset label
6430 LatexCommand label
6431 name "sec:ひな型を作成する"
6432
6433 \end_inset
6434
6435
6436 \end_layout
6437
6438 \begin_layout Standard
6439 新しい文書クラス用のレイアウトファイルを書いたならば,そのレイアウト用のひな型も書くことを検討されるかもしれません.ひな型は,内容はダミーですが,レイアウトの使
6440 い方を示す一種のチュートリアルとして動作します.もちろん,イメージを得るために,\SpecialChar LyX
6441 添付のひな型をあれこれ見てみるのもよいでしょう.
6442 \end_layout
6443
6444 \begin_layout Standard
6445 ひな型は,通常の文書と同様,\SpecialChar LyX
6446 を使って作成することができます.唯一違う点は,通常の文書では,フォント構成や用紙寸法を含め,すべてのあり得る設定が為されている点です
6447 .これらの場合,通常ユーザーはひな型が彼の設定値を上書きすることを望みません.この理由から,ひな型の設計者は,
6448 \begin_inset Flex Code
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452
6453 \backslash
6454 fontscheme
6455 \end_layout
6456
6457 \end_inset
6458
6459
6460 \begin_inset Flex Code
6461 status collapsed
6462
6463 \begin_layout Plain Layout
6464
6465 \backslash
6466 papersize
6467 \end_layout
6468
6469 \end_inset
6470
6471 などの対応するコマンドをひな型\SpecialChar LyX
6472 ファイルから取り除く必要があります.これは,たとえば
6473 \begin_inset Flex Code
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477 vi
6478 \end_layout
6479
6480 \end_inset
6481
6482
6483 \begin_inset Flex Code
6484 status collapsed
6485
6486 \begin_layout Plain Layout
6487 notepad
6488 \end_layout
6489
6490 \end_inset
6491
6492 のような,どの軽いテキストエディタでも行うことができます.
6493 \end_layout
6494
6495 \begin_layout Standard
6496 編集したひな型を
6497 \begin_inset Flex Code
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501 UserDir/templates/
6502 \end_layout
6503
6504 \end_inset
6505
6506 に置き,グローバルなひな型ディレクトリ
6507 \begin_inset Flex Code
6508 status collapsed
6509
6510 \begin_layout Plain Layout
6511 LyXDir/templates/
6512 \end_layout
6513
6514 \end_inset
6515
6516 から使用したいものを同じ場所にコピーし,
6517 \begin_inset Flex MenuItem
6518 status collapsed
6519
6520 \begin_layout Plain Layout
6521 ツール\SpecialChar menuseparator
6522 設定\SpecialChar menuseparator
6523 パス
6524 \end_layout
6525
6526 \end_inset
6527
6528 ダイアログのひな型パスを再定義してください.
6529 \end_layout
6530
6531 \begin_layout Standard
6532 ところで,特別な意味を持つひな型
6533 \begin_inset Flex Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537 defaults.lyx
6538 \end_layout
6539
6540 \end_inset
6541
6542 があることに注意してください.このひな型は,
6543 \begin_inset Flex MenuItem
6544 status collapsed
6545
6546 \begin_layout Plain Layout
6547 ファイル\SpecialChar menuseparator
6548 新規
6549 \end_layout
6550
6551 \end_inset
6552
6553 を使って新規文書を作成する際,便利な既定値を提供する目的で必ず読み込まれます.このひな型を\SpecialChar LyX
6554 内部から作成するのにしなくてはならないことは,対応する設定を持つ文書を
6555 開き,
6556 \begin_inset Flex MenuItem
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 文書既定値として保存
6561 \end_layout
6562
6563 \end_inset
6564
6565 ボタンを押すことです.
6566 \end_layout
6567
6568 \begin_layout Subsection
6569 旧レイアウトファイルの更新
6570 \end_layout
6571
6572 \begin_layout Standard
6573 レイアウトファイルの書式は,\SpecialChar LyX
6574 のリリース毎に変更されますので,古いレイアウトファイルは変換されなくてはなりません.\SpecialChar LyX
6575 が古い書式のレイアウトファイルを読み込むと,\SpecialChar LyX
6576 は,
6577 自動的に変換ツール
6578 \begin_inset Flex Code
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 \SpecialChar LyX
6583 Dir/scripts/layout2layout.py
6584 \end_layout
6585
6586 \end_inset
6587
6588 を呼び出し,それを現在の書式の一時ファイルに変換します.元のファイルは変更を加えられずに措かれます.もしこのレイアウトファイルをよく使うならば,\SpecialChar LyX
6589 がこれを毎回行な
6590 わくて済むように,レイアウトファイルを恒久的に変換しておきたいと思うかもしれません.これを行うには,以下のように変換子を手動で呼び出してください.
6591 \end_layout
6592
6593 \begin_layout Enumerate
6594 ファイル
6595 \begin_inset Flex Code
6596 status collapsed
6597
6598 \begin_layout Plain Layout
6599 myclass.layout
6600 \end_layout
6601
6602 \end_inset
6603
6604
6605 \begin_inset Flex Code
6606 status collapsed
6607
6608 \begin_layout Plain Layout
6609 myclass.old
6610 \end_layout
6611
6612 \end_inset
6613
6614 に改称
6615 \end_layout
6616
6617 \begin_layout Enumerate
6618 以下のコマンドをコール
6619 \begin_inset Newline newline
6620 \end_inset
6621
6622
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
6628 \end_layout
6629
6630 \end_inset
6631
6632
6633 \begin_inset Newline newline
6634 \end_inset
6635
6636 ここで
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 LyXDir
6642 \end_layout
6643
6644 \end_inset
6645
6646 は\SpecialChar LyX
6647 システムディレクトリの名前です.
6648 \end_layout
6649
6650 \begin_layout Standard
6651 手動変換は,インクルードされているファイル内部の変更までは取り扱いませんので,それらのファイルは別に変換されなくてはなりません.
6652 \end_layout
6653
6654 \begin_layout Section
6655 \begin_inset CommandInset label
6656 LatexCommand label
6657 name "sec:テキストクラス"
6658
6659 \end_inset
6660
6661 レイアウトファイルの書式
6662 \end_layout
6663
6664 \begin_layout Standard
6665 以下の各節では,いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際,直面することの説明を行います.私たちからのアドバイスとしては
6666 ,ゆっくりと進めるようにして,ちょっと進むごとに保存やテストを行い,心休まる音楽を聴き,好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう.特に行き詰ま
6667 ってしまったときにはそうです.実際にはそんなに難しいことではないのですが,特に一度に多くのことをやろうとすると,選択肢が多くありすぎて圧倒されてしまうのです.さ
6668 て,もう一杯大人向け飲料をどうぞ.適量ね.\SpecialChar LyX
6669 の既存のレイアウトを例や参考に使ったり,既存のレイアウトを自身の目的に合わせて修正したりすると,作業が容易になります.
6670 \end_layout
6671
6672 \begin_layout Standard
6673 この章で述べられているタグは,すべて大文字小文字を区別しません.つまり,
6674 \begin_inset Flex Code
6675 status collapsed
6676
6677 \begin_layout Plain Layout
6678 Style
6679 \end_layout
6680
6681 \end_inset
6682
6683
6684 \begin_inset Flex Code
6685 status collapsed
6686
6687 \begin_layout Plain Layout
6688 style
6689 \end_layout
6690
6691 \end_inset
6692
6693
6694 \begin_inset Flex Code
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 StYlE
6699 \end_layout
6700
6701 \end_inset
6702
6703 は同じコマンドとなります.機能名の後にある角括弧は,その機能が取り得る値を示します.テキストクラス設定内で機能が特定されていない場合には,既定値は
6704 \begin_inset Flex Code
6705 status collapsed
6706
6707 \begin_layout Plain Layout
6708
6709 \emph on
6710 強調
6711 \end_layout
6712
6713 \end_inset
6714
6715 で表記されます.引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には,既定値は
6716 \begin_inset Flex Code
6717 status collapsed
6718
6719 \begin_layout Plain Layout
6720 浮動小数点型=
6721 \emph on
6722 既定値
6723 \end_layout
6724
6725 \end_inset
6726
6727 のように表示されます.
6728 \end_layout
6729
6730 \begin_layout Subsection
6731 文書クラス宣言と分類
6732 \end_layout
6733
6734 \begin_layout Standard
6735 レイアウトファイル中の
6736 \begin_inset Flex Code
6737 status collapsed
6738
6739 \begin_layout Plain Layout
6740 #
6741 \end_layout
6742
6743 \end_inset
6744
6745 で始まる行はコメントです.この規則には一つだけ例外があります.すべての
6746 \begin_inset Flex Code
6747 status collapsed
6748
6749 \begin_layout Plain Layout
6750 *.layout
6751 \end_layout
6752
6753 \end_inset
6754
6755 ファイルは,以下のような行で始めなくてはならないのです.
6756 \end_layout
6757
6758 \begin_layout LyX-Code
6759
6760 \size small
6761 #% Do not delete the line below; configure depends on this
6762 \end_layout
6763
6764 \begin_layout LyX-Code
6765
6766 \size small
6767 #  
6768 \backslash
6769 DeclareLaTeXClass{Article (Standard Class)}
6770 \end_layout
6771
6772 \begin_layout LyX-Code
6773
6774 \size small
6775 #  
6776 \backslash
6777 DeclareCategory{Articles}
6778 \end_layout
6779
6780 \begin_layout Standard
6781 2行目と3行目は,\SpecialChar LyX
6782 が環境構成を行う際に用いられます.このレイアウトファイルは,\SpecialChar LaTeX
6783 スクリプト
6784 \begin_inset Flex Code
6785 status collapsed
6786
6787 \begin_layout Plain Layout
6788 chkconfig.ltx
6789 \end_layout
6790
6791 \end_inset
6792
6793 が,
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 #
6799 \end_layout
6800
6801 \end_inset
6802
6803 を無視する特別なモードで読み込みます.1行目は単なる\SpecialChar LaTeX
6804 コメントですが,2行目にはテキストクラスの宣言が,3行目にはクラスの分類(非必須)が書かれています.これらの
6805 行が
6806 \begin_inset Flex Code
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 article.layout
6811 \end_layout
6812
6813 \end_inset
6814
6815 と名付けられたファイルにあると,
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 article
6821 \end_layout
6822
6823 \end_inset
6824
6825 (レイアウトファイル名)という名称のテキストクラスを定義し,\SpecialChar LaTeX
6826 文書クラス
6827 \begin_inset Flex Code
6828 status collapsed
6829
6830 \begin_layout Plain Layout
6831 article.cls
6832 \end_layout
6833
6834 \end_inset
6835
6836 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します).上記に現れる「Article (Standard Class)」という文字列は,
6837 \begin_inset Flex MenuItem
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 文書\SpecialChar menuseparator
6842 設定
6843 \end_layout
6844
6845 \end_inset
6846
6847 ダイアログのテキストクラスの説明に使用されます.分類(例中の「Articles」)は,
6848 \begin_inset Flex MenuItem
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 文書\SpecialChar menuseparator
6853 設定
6854 \end_layout
6855
6856 \end_inset
6857
6858 ダイアログで使用され,文書クラスはこの分類によってグループ化されます(分類は通常ジャンルを表し,典型的なものには,「Articles」「Books」「Repor
6859 ts」「Letters」「Presentations」「Curricula Vitae」等があります).分類を宣言しない場合には,このクラスは「Uncatego
6860 rized」グループに属することになります.
6861 \end_layout
6862
6863 \begin_layout Standard
6864 節見出し表示に変更を加えた,
6865 \begin_inset Flex Code
6866 status collapsed
6867
6868 \begin_layout Plain Layout
6869 article.cls
6870 \end_layout
6871
6872 \end_inset
6873
6874 文書クラスを使用するテキストクラスを自分で書いたものとしましょう.これを
6875 \begin_inset Flex Code
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 myarticle.layout
6880 \end_layout
6881
6882 \end_inset
6883
6884 というファイルに置いたとすると,このファイルのヘッダは以下のようになります.
6885 \end_layout
6886
6887 \begin_layout LyX-Code
6888
6889 \size small
6890 #% Do not delete the line below; configure depends on this 
6891 \end_layout
6892
6893 \begin_layout LyX-Code
6894
6895 \size small
6896 #  
6897 \backslash
6898 DeclareLaTeXClass[article]{article (with My Own Headings)}
6899 \end_layout
6900
6901 \begin_layout LyX-Code
6902
6903 \size small
6904 #  
6905 \backslash
6906 DeclareCategory{Articles}
6907 \end_layout
6908
6909 \begin_layout Standard
6910 これは,\SpecialChar LaTeX
6911 文書クラス
6912 \begin_inset Flex Code
6913 status collapsed
6914
6915 \begin_layout Plain Layout
6916 article.cls
6917 \end_layout
6918
6919 \end_inset
6920
6921 に関連づけられ,「Article (with My Own Headings)」と表示される,
6922 \begin_inset Flex Code
6923 status collapsed
6924
6925 \begin_layout Plain Layout
6926 myarticle
6927 \end_layout
6928
6929 \end_inset
6930
6931 テキストクラスを宣言するものです.もしこのテキストクラスが複数のパッケージに依存するならば,以下のように宣言すると良いでしょう.
6932 \end_layout
6933
6934 \begin_layout LyX-Code
6935
6936 \size small
6937 #% Do not delete the line below; configure depends on this 
6938 \end_layout
6939
6940 \begin_layout LyX-Code
6941
6942 \size small
6943 #  
6944 \backslash
6945 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
6946 \end_layout
6947
6948 \begin_layout LyX-Code
6949
6950 \size small
6951 #  
6952 \backslash
6953 DeclareCategory{Articles}
6954 \end_layout
6955
6956 \begin_layout Standard
6957 これは,このテキストクラスが
6958 \begin_inset Flex Code
6959 status collapsed
6960
6961 \begin_layout Plain Layout
6962 foo.sty
6963 \end_layout
6964
6965 \end_inset
6966
6967 パッケージを使用することを示しています.最後に,DocBookコード向けのクラスを宣言することもできることを見ます.典型的な宣言は以下のようになります.
6968 \end_layout
6969
6970 \begin_layout LyX-Code
6971
6972 \size small
6973 #% Do not delete the line below; configure depends on this 
6974 \end_layout
6975
6976 \begin_layout LyX-Code
6977
6978 \size small
6979
6980 \backslash
6981 DeclareDocBookClass[article]{SGML (DocBook article)}
6982 \end_layout
6983
6984 \begin_layout LyX-Code
6985
6986 \size small
6987 #  
6988 \backslash
6989 DeclareCategory{Articles}
6990 \end_layout
6991
6992 \begin_layout Standard
6993 これらの宣言には,文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください.
6994 \end_layout
6995
6996 \begin_layout Standard
6997 できる限り明示的に要約すると,レイアウト宣言は以下の形をとります.
6998 \end_layout
6999
7000 \begin_layout LyX-Code
7001
7002 \size small
7003 #  
7004 \backslash
7005 DeclareLaTeXClass[クラス,パッケージ名.sty]{レイアウトの説明}
7006 \end_layout
7007
7008 \begin_layout LyX-Code
7009
7010 \size small
7011 #  
7012 \backslash
7013 DeclareCategory{分類}
7014 \end_layout
7015
7016 \begin_layout Standard
7017 ここで「クラス」は,\SpecialChar LaTeX
7018 クラスファイル名とレイアウトファイル名が異なるときのみ,指定する必要があります.クラスファイル名が指定されなければ,\SpecialChar LyX
7019 は単純に,クラスファイル
7020 名がレイアウトファイル名と同じであると仮定します.
7021 \end_layout
7022
7023 \begin_layout Standard
7024 テキストクラスがあなたの嗜好に合うように修正できたならば,他にしなくてはならないことは,それを
7025 \begin_inset Flex Code
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029 LyXDir/layouts/
7030 \end_layout
7031
7032 \end_inset
7033
7034
7035 \begin_inset Flex Code
7036 status collapsed
7037
7038 \begin_layout Plain Layout
7039 UserDir/layouts
7040 \end_layout
7041
7042 \end_inset
7043
7044 にコピーし,
7045 \begin_inset Flex MenuItem
7046 status collapsed
7047
7048 \begin_layout Plain Layout
7049 ツール\SpecialChar menuseparator
7050 環境構成
7051 \end_layout
7052
7053 \end_inset
7054
7055 を実行し,\SpecialChar LyX
7056 を終了して再起動するだけです.そうすれば,この新しいテキストクラスが,他のテキストクラスと同様に使用できるようになります.
7057 \end_layout
7058
7059 \begin_layout Standard
7060 レイアウトファイルが導入されたならば,これを編集して,環境構成したり\SpecialChar LyX
7061 を再起動したりすることなく,その変更を確認することができます
7062 \begin_inset Foot
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 第1.6版よりも前の\SpecialChar LyX
7067 では,これを行うことはできませんでした.その結果,レイアウトファイルに加えた変更を反映させるには,その度に\SpecialChar LyX
7068 を再起動しなくてはならなかったので,
7069 レイアウトファイルを編集する作業は,たいへん時間を浪費する作業だったのです.
7070 \end_layout
7071
7072 \end_inset
7073
7074 .\SpecialChar LyX
7075 関数
7076 \begin_inset Flex MenuItem
7077 status collapsed
7078
7079 \begin_layout Plain Layout
7080 layout-reload
7081 \end_layout
7082
7083 \end_inset
7084
7085 を使用すれば,現在使っているレイアウトの再読み込みを強制することができるのです.この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
7086 ることもできますが—.しかし,通常は,この関数を使用する場合は,これをミニバッファに入力します.
7087 \end_layout
7088
7089 \begin_layout Standard
7090
7091 \emph on
7092 注意
7093 \emph default
7094
7095 \begin_inset Flex MenuItem
7096 status collapsed
7097
7098 \begin_layout Plain Layout
7099 layout-reload
7100 \end_layout
7101
7102 \end_inset
7103
7104 はかなり「高度な機能」です.この機能を利用する前に,作業中の文書を保存しておくことを
7105 \emph on
7106 強く
7107 \emph default
7108 勧めます.もっと言えば,大事な文書の作業をしているときに,同時にレイアウト情報の編集をしようとしないことを
7109 \emph on
7110 強く
7111 \emph default
7112 勧めます.テスト用文書を使用してください.レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります.特に,そのようなエラーが起こると,\SpecialChar LyX
7113 は現在の
7114 レイアウトが無効であるものと判断して,別のレイアウトに切り替えようとする可能性があります
7115 \begin_inset Foot
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 非常に悪質な文法エラーの場合には,\SpecialChar LyX
7120 が終了してしまうことさえあります.これは,ある種のエラーでは,\SpecialChar LyX
7121 がレイアウト情報を全く読めなくなる可能性があるからです.ご注意く
7122 ださい.
7123 \end_layout
7124
7125 \end_inset
7126
7127 .\SpecialChar LyX
7128 開発陣は,このような状況下でも安定性を保つよう努力していますが,後悔よりも安心の方が良いでしょう
7129 \begin_inset Foot
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 重ねての助言ですが,つねにバックアップを取ってください.それから,お母さんのお片づけに注意.
7134 \end_layout
7135
7136 \end_inset
7137
7138
7139 \end_layout
7140
7141 \begin_layout Subsection
7142 モジュール宣言
7143 \end_layout
7144
7145 \begin_layout Standard
7146 モジュールは,以下のような行で始まらなくてはなりません.
7147 \end_layout
7148
7149 \begin_layout LyX-Code
7150 #
7151 \backslash
7152 DeclareLyXModule[endnotes.sty]{Endnotes} 
7153 \end_layout
7154
7155 \begin_layout Standard
7156 波括弧内に入っている必須引数はモジュール名で,これは
7157 \begin_inset Flex MenuItem
7158 status collapsed
7159
7160 \begin_layout Plain Layout
7161 文書\SpecialChar menuseparator
7162 設定
7163 \end_layout
7164
7165 \end_inset
7166
7167 内に表示されます.角括弧内の引数は非必須です.これは,モジュールが依存する\SpecialChar LaTeX
7168 パッケージをすべて宣言します.また,非必須引数として,
7169 \begin_inset Flex Code
7170 status collapsed
7171
7172 \begin_layout Plain Layout
7173 変換元->変換先
7174 \end_layout
7175
7176 \end_inset
7177
7178 の形を使用することができます.これは,
7179 \begin_inset Flex Code
7180 status collapsed
7181
7182 \begin_layout Plain Layout
7183 変換元
7184 \end_layout
7185
7186 \end_inset
7187
7188 形式から
7189 \begin_inset Flex Code
7190 status collapsed
7191
7192 \begin_layout Plain Layout
7193 変換先
7194 \end_layout
7195
7196 \end_inset
7197
7198 形式への変換鎖が存在するときのみ,このモジュールを使用できることを宣言するものです.
7199 \end_layout
7200
7201 \begin_layout Standard
7202 それから,以下のようなモジュール宣言を行います
7203 \begin_inset Foot
7204 status collapsed
7205
7206 \begin_layout Plain Layout
7207 モジュールを\SpecialChar LyX
7208 に公開する場合には英語が望ましいです.この説明は翻訳メッセージ一覧に現れるようになるので,次回のインタフェースの更新時に翻訳されることになります.
7209 \end_layout
7210
7211 \end_inset
7212
7213
7214 \end_layout
7215
7216 \begin_layout LyX-Code
7217 #DescriptionBegin 
7218 \end_layout
7219
7220 \begin_layout LyX-Code
7221 #Adds an endnote command, in addition to footnotes.
7222  
7223 \end_layout
7224
7225 \begin_layout LyX-Code
7226 #You will need to add  
7227 \backslash
7228 theendnotes in TeX code where you 
7229 \end_layout
7230
7231 \begin_layout LyX-Code
7232 #want the endnotes to appear.
7233  
7234 \end_layout
7235
7236 \begin_layout LyX-Code
7237 #DescriptionEnd 
7238 \end_layout
7239
7240 \begin_layout LyX-Code
7241 #Requires: somemodule | othermodule
7242 \end_layout
7243
7244 \begin_layout LyX-Code
7245 #Excludes: badmodule
7246 \end_layout
7247
7248 \begin_layout Standard
7249 ここで説明(Description)は,
7250 \begin_inset Flex MenuItem
7251 status collapsed
7252
7253 \begin_layout Plain Layout
7254 文書\SpecialChar menuseparator
7255 設定
7256 \end_layout
7257
7258 \end_inset
7259
7260 でこのモジュールが何をするものか,ユーザに情報を与えるために使用されます.
7261 \begin_inset Flex Code
7262 status collapsed
7263
7264 \begin_layout Plain Layout
7265 Requires
7266 \end_layout
7267
7268 \end_inset
7269
7270 行は,このモジュールが共に使用する必要がある,他のモジュールを特定するのに用いられます.一方,
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 Excludes
7276 \end_layout
7277
7278 \end_inset
7279
7280 行は,このモジュールが共に使用してはならない,他のモジュールを特定するのに用いられます.この2つの行は必須ではなく,上記のようにモジュールが複数ある場合には,パ
7281 イプ記号「|」で区切らなくてはなりません.
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 Requires
7287 \end_layout
7288
7289 \end_inset
7290
7291 に指定されたモジュールは,選言的に取り扱われることに注意してください.つまり,
7292 \begin_inset Flex Code
7293 status collapsed
7294
7295 \begin_layout Plain Layout
7296 Requires
7297 \end_layout
7298
7299 \end_inset
7300
7301 に指定されたモジュールのうち,
7302 \emph on
7303 少なくとも一つ
7304 \emph default
7305 が使用されていればよいということです.同様に,
7306 \begin_inset Flex Code
7307 status collapsed
7308
7309 \begin_layout Plain Layout
7310 Excludes
7311 \end_layout
7312
7313 \end_inset
7314
7315 に指定されたモジュールは,一つも使用されてはなりません.ここでモジュールは,
7316 \begin_inset Flex Code
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320 .module
7321 \end_layout
7322
7323 \end_inset
7324
7325 拡張子を除いたファイル名で認識されることに注意してください.つまり
7326 \begin_inset Flex Code
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 somemodule
7331 \end_layout
7332
7333 \end_inset
7334
7335 とは,実のところ
7336 \begin_inset Flex Code
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 somemodule.module
7341 \end_layout
7342
7343 \end_inset
7344
7345 のことです.
7346 \end_layout
7347
7348 \begin_layout Subsection
7349 書式番号
7350 \end_layout
7351
7352 \begin_layout Standard
7353 レイアウトファイルやインクルードされたファイル,またはモジュールの最初の非コメント行には,以下のように,かならずファイル形式番号が記されていなくてはなりません.
7354 \end_layout
7355
7356 \begin_layout Description
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 Format
7362 \end_layout
7363
7364 \end_inset
7365
7366  [
7367 \begin_inset Flex Code
7368 status collapsed
7369
7370 \begin_layout Plain Layout
7371 整数型
7372 \end_layout
7373
7374 \end_inset
7375
7376 ] このレイアウトファイルの書式
7377 \end_layout
7378
7379 \begin_layout Standard
7380 このタグは\SpecialChar LyX
7381
7382 \begin_inset space ~
7383 \end_inset
7384
7385 1.4.0で導入されました.\SpecialChar LyX
7386
7387 \begin_inset space ~
7388 \end_inset
7389
7390 1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
7391 現行版のファイル形式は,書式60です.しかし,\SpecialChar LyX
7392 の各版は,旧版の\SpecialChar LyX
7393 で作成さ
7394 れたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法はありません.
7395 \end_layout
7396
7397 \begin_layout Subsection
7398 \begin_inset CommandInset label
7399 LatexCommand label
7400 name "subsec:汎用テキストクラスパラメータ"
7401
7402 \end_inset
7403
7404 汎用テキストクラスパラメータ
7405 \end_layout
7406
7407 \begin_layout Standard
7408 以下は,文書クラス全体の挙動を決定する汎用パラメータです(これは,
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 .layout
7414 \end_layout
7415
7416 \end_inset
7417
7418 ファイルのみに使用されるべきで,モジュールでは使ってはならない,ということを意味するものでは
7419 \emph on
7420 ありません
7421 \emph default
7422 .モジュールには,すべてのレイアウトタグを使用することができます).
7423 \end_layout
7424
7425 \begin_layout Description
7426 \begin_inset Flex Code
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430 AddToHTMLPreamble
7431 \end_layout
7432
7433 \end_inset
7434
7435  この文書クラスがXHTMLに出力されるときに,
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 <head>
7441 \end_layout
7442
7443 \end_inset
7444
7445 ブロックに追加出力される情報です.典型的には,これはCSSスタイル情報を出力するのに用いられますが,
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 <head>
7451 \end_layout
7452
7453 \end_inset
7454
7455 に出力するものであれば,何でも使用することができます.「
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 EndPreamble
7461 \end_layout
7462
7463 \end_inset
7464
7465 」で閉じる必要があります.
7466 \end_layout
7467
7468 \begin_layout Description
7469 \begin_inset Flex Code
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 AddToPreamble
7474 \end_layout
7475
7476 \end_inset
7477
7478  文書プリアンブルに書き加えられる情報です.「
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 EndPreamble
7484 \end_layout
7485
7486 \end_inset
7487
7488 」で閉じる必要があります.
7489 \end_layout
7490
7491 \begin_layout Description
7492 \begin_inset Flex Code
7493 status collapsed
7494
7495 \begin_layout Plain Layout
7496 CiteFormat
7497 \end_layout
7498
7499 \end_inset
7500
7501  書誌情報の表示に使う書式を定義します.詳細については,
7502 \begin_inset CommandInset ref
7503 LatexCommand ref
7504 reference "subsec:引用書式指定"
7505
7506 \end_inset
7507
7508 をご覧ください.「
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 End
7514 \end_layout
7515
7516 \end_inset
7517
7518 」で閉じる必要があります.
7519 \end_layout
7520
7521 \begin_layout Description
7522 \begin_inset Flex Code
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 ClassOptions
7527 \end_layout
7528
7529 \end_inset
7530
7531  文書クラスがサポートする様々な大域オプションを記します.説明は,
7532 \begin_inset CommandInset ref
7533 LatexCommand ref
7534 reference "subsec:ClassOptions"
7535
7536 \end_inset
7537
7538 を参照してください.「
7539 \begin_inset Flex Code
7540 status collapsed
7541
7542 \begin_layout Plain Layout
7543 End
7544 \end_layout
7545
7546 \end_inset
7547
7548 」で閉じる必要があります.
7549 \end_layout
7550
7551 \begin_layout Description
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 Columns
7557 \end_layout
7558
7559 \end_inset
7560
7561  [
7562 \begin_inset Flex Code
7563 status collapsed
7564
7565 \begin_layout Plain Layout
7566
7567 \emph on
7568 1
7569 \end_layout
7570
7571 \end_inset
7572
7573 ,
7574 \begin_inset space \thinspace{}
7575 \end_inset
7576
7577
7578 \begin_inset Flex Code
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582 2
7583 \end_layout
7584
7585 \end_inset
7586
7587 ] 文書クラスが既定で1段組か2段組かを指定します.
7588 \begin_inset Flex MenuItem
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 文書\SpecialChar menuseparator
7593 設定
7594 \end_layout
7595
7596 \end_inset
7597
7598 ダイアログで変更することができます.
7599 \end_layout
7600
7601 \begin_layout Description
7602 \begin_inset Flex Code
7603 status collapsed
7604
7605 \begin_layout Plain Layout
7606 Counter
7607 \end_layout
7608
7609 \end_inset
7610
7611  [
7612 \begin_inset Flex Code
7613 status collapsed
7614
7615 \begin_layout Plain Layout
7616 文字列
7617 \end_layout
7618
7619 \end_inset
7620
7621 ] この部分はカウンタの特性を定義します.カウンタがまだ存在していなければ,生成されます.もし存在しなければ修正されます.「
7622 \begin_inset Flex Code
7623 status collapsed
7624
7625 \begin_layout Plain Layout
7626 End
7627 \end_layout
7628
7629 \end_inset
7630
7631 」で閉じる必要があります.
7632 \begin_inset Newline newline
7633 \end_inset
7634
7635 カウンタについての詳細は,
7636 \begin_inset CommandInset ref
7637 LatexCommand ref
7638 reference "subsec:カウンタ"
7639
7640 \end_inset
7641
7642 を参照してください.
7643 \end_layout
7644
7645 \begin_layout Description
7646 \begin_inset Flex Code
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 DefaultFont
7651 \end_layout
7652
7653 \end_inset
7654
7655  文書を表示するのに用いられる既定フォントを設定します.フォントの宣言の仕方については,
7656 \begin_inset CommandInset ref
7657 LatexCommand ref
7658 reference "subsec:フォント指定"
7659
7660 \end_inset
7661
7662 を参照してください.「
7663 \begin_inset Flex Code
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 EndFont
7668 \end_layout
7669
7670 \end_inset
7671
7672 」で閉じる必要があります.
7673 \end_layout
7674
7675 \begin_layout Description
7676 \begin_inset Flex Code
7677 status collapsed
7678
7679 \begin_layout Plain Layout
7680 DefaultModule
7681 \end_layout
7682
7683 \end_inset
7684
7685  [
7686 \begin_inset Flex Code
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 <モジュール>
7691 \end_layout
7692
7693 \end_inset
7694
7695 ] この文書クラスに,既定で取り込むモジュールを指定します.モジュールは,
7696 \begin_inset Flex Code
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 .module
7701 \end_layout
7702
7703 \end_inset
7704
7705 拡張子を除いたファイル名で指定します.ユーザはこのモジュールを除外することができますが,当初は有効の状態になっています(これは新しいファイルが作成されたときや,
7706 既存の文書にこの文書クラスが選択したときのみ該当します).
7707 \end_layout
7708
7709 \begin_layout Description
7710 \begin_inset Flex Code
7711 status collapsed
7712
7713 \begin_layout Plain Layout
7714 DefaultStyle
7715 \end_layout
7716
7717 \end_inset
7718
7719  [
7720 \begin_inset Flex Code
7721 status collapsed
7722
7723 \begin_layout Plain Layout
7724 <様式>
7725 \end_layout
7726
7727 \end_inset
7728
7729 ]
7730 \lang english
7731  
7732 \lang japanese
7733 これは新規段落に割り当てられる様式であり,通常は
7734 \begin_inset Flex MenuItem
7735 status collapsed
7736
7737 \begin_layout Plain Layout
7738 標準
7739 \end_layout
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 ExcludesModule
7752 \end_layout
7753
7754 \end_inset
7755
7756  [
7757 \begin_inset Flex Code
7758 status collapsed
7759
7760 \begin_layout Plain Layout
7761 <モジュール>
7762 \end_layout
7763
7764 \end_inset
7765
7766 ] このタグは,指定されたモジュール—
7767 \begin_inset Flex Code
7768 status collapsed
7769
7770 \begin_layout Plain Layout
7771 .module
7772 \end_layout
7773
7774 \end_inset
7775
7776 拡張子を除いたファイル名で指定します—が,この文書クラスでは使用できないように設定します.これはたとえば,特定の学術誌用レイアウトファイルの中で,定理番号を節毎
7777 に振る
7778 \begin_inset Flex Code
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782 theorems-sec
7783 \end_layout
7784
7785 \end_inset
7786
7787 モジュールが使用されるのを防ぐために用いたりすることができます.このタグは,モジュール内で
7788 \emph on
7789 使用してはいけません
7790 \emph default
7791 .モジュールは,他のモジュールを排除する独自の枠組みがあります(
7792 \begin_inset CommandInset ref
7793 LatexCommand ref
7794 reference "subsec:レイアウトモジュール"
7795
7796 \end_inset
7797
7798 参照).
7799 \end_layout
7800
7801 \begin_layout Description
7802 \begin_inset Flex Code
7803 status collapsed
7804
7805 \begin_layout Plain Layout
7806 Float
7807 \end_layout
7808
7809 \end_inset
7810
7811  フロートを新規に定義します.詳細は,
7812 \begin_inset CommandInset ref
7813 LatexCommand ref
7814 reference "subsec:フロート"
7815
7816 \end_inset
7817
7818 を参照してください.「
7819 \begin_inset Flex Code
7820 status collapsed
7821
7822 \begin_layout Plain Layout
7823 End
7824 \end_layout
7825
7826 \end_inset
7827
7828 」で閉じる必要があります.
7829 \end_layout
7830
7831 \begin_layout Description
7832 \begin_inset Flex Code
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836 HTMLPreamble
7837 \end_layout
7838
7839 \end_inset
7840
7841  この文書クラスがXHTMLに出力されるときに,
7842 \begin_inset Flex Code
7843 status collapsed
7844
7845 \begin_layout Plain Layout
7846 <head>
7847 \end_layout
7848
7849 \end_inset
7850
7851 ブロックに出力される情報です.これより前に出現した
7852 \begin_inset Flex Code
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856 HTMLPreamble
7857 \end_layout
7858
7859 \end_inset
7860
7861
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 AddToHTMLPreamble
7867 \end_layout
7868
7869 \end_inset
7870
7871 宣言は,すべて完全に上書きされることに注意してください(プリアンブルに何かを追加したい時には,
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 AddToHTMLPreamble
7877 \end_layout
7878
7879 \end_inset
7880
7881 を使用してください).これは「
7882 \begin_inset Flex Code
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886 EndPreamble
7887 \end_layout
7888
7889 \end_inset
7890
7891 」で閉じる必要があります.
7892 \end_layout
7893
7894 \begin_layout Description
7895 \begin_inset Flex Code
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899 HTMLTOCSection
7900 \end_layout
7901
7902 \end_inset
7903
7904  [
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 <様式>
7910 \end_layout
7911
7912 \end_inset
7913
7914 ] 文書がHTMLに出力されるときに,目次や書誌情報などに使用されるレイアウトです.articleの場合には,これは通常「節」であり,bookの場合は「章」です
7915 .これを指定しない場合には,\SpecialChar LyX
7916 はどのレイアウトを使用するべきか,解析しようと試みます.
7917 \end_layout
7918
7919 \begin_layout Description
7920 \begin_inset Flex Code
7921 status collapsed
7922
7923 \begin_layout Plain Layout
7924 IfCounter 
7925 \end_layout
7926
7927 \end_inset
7928
7929  [
7930 \begin_inset Flex Code
7931 status collapsed
7932
7933 \begin_layout Plain Layout
7934 <カウンタ>
7935 \end_layout
7936
7937 \end_inset
7938
7939 ] 与えられたカウンタの特性を修正します.カウンタが存在しない場合には,この節は無視されます.「
7940 \begin_inset Flex Code
7941 status collapsed
7942
7943 \begin_layout Plain Layout
7944 End
7945 \end_layout
7946
7947 \end_inset
7948
7949 」で閉じる必要があります.
7950 \begin_inset Newline newline
7951 \end_inset
7952
7953 カウンタについての詳細は,
7954 \begin_inset CommandInset ref
7955 LatexCommand ref
7956 reference "subsec:カウンタ"
7957
7958 \end_inset
7959
7960 をご覧ください.
7961 \end_layout
7962
7963 \begin_layout Description
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 IfStyle
7969 \end_layout
7970
7971 \end_inset
7972
7973  [
7974 \begin_inset Flex Code
7975 status collapsed
7976
7977 \begin_layout Plain Layout
7978 <様式>
7979 \end_layout
7980
7981 \end_inset
7982
7983 ] 与えられた段落様式の特性を修正します.様式が存在しない場合には,この節は無視されます.「
7984 \begin_inset Flex Code
7985 status collapsed
7986
7987 \begin_layout Plain Layout
7988 End
7989 \end_layout
7990
7991 \end_inset
7992
7993 」で閉じる必要があります.
7994 \end_layout
7995
7996 \begin_layout Description
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 Input
8002 \end_layout
8003
8004 \end_inset
8005
8006  [
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 <ファイル名>
8012 \end_layout
8013
8014 \end_inset
8015
8016 ]
8017 \lang english
8018  
8019 \lang japanese
8020 名称の指し示すように,このコマンドは,同じコマンドを何度も指定せずに済むように,別のレイアウト定義ファイルを取り込ませます.よく使われる例は,基本的なレイアウト
8021 のほとんどを収録している
8022 \begin_inset Flex Code
8023 status collapsed
8024
8025 \begin_layout Plain Layout
8026 stdclass.inc
8027 \end_layout
8028
8029 \end_inset
8030
8031 のような標準レイアウトファイルです.
8032 \end_layout
8033
8034 \begin_layout Description
8035 \begin_inset Flex Code
8036 status collapsed
8037
8038 \begin_layout Plain Layout
8039 InsetLayout
8040 \end_layout
8041
8042 \end_inset
8043
8044  [
8045 \begin_inset Flex Code
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049 <型>
8050 \end_layout
8051
8052 \end_inset
8053
8054 ]
8055 \lang english
8056  
8057 \lang japanese
8058 このセクションは,差込枠のレイアウトを定義(再定義)します.これは,既存の差込枠にも,新しい文字様式のような新規のユーザ定義差込枠にも使用することができます.「
8059 \begin_inset Flex Code
8060 status collapsed
8061
8062 \begin_layout Plain Layout
8063 End
8064 \end_layout
8065
8066 \end_inset
8067
8068 」で閉じる必要があります.
8069 \begin_inset Newline newline
8070 \end_inset
8071
8072 詳しい情報は,
8073 \begin_inset CommandInset ref
8074 LatexCommand ref
8075 reference "subsec:任意設定差込枠"
8076
8077 \end_inset
8078
8079 をご覧ください.
8080 \end_layout
8081
8082 \begin_layout Description
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087 LeftMargin
8088 \end_layout
8089
8090 \end_inset
8091
8092  [
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 文字列
8098 \end_layout
8099
8100 \end_inset
8101
8102 ] 画面上の左余白の幅を指示する文字列.例:「
8103 \begin_inset Flex Code
8104 status collapsed
8105
8106 \begin_layout Plain Layout
8107 MMMMM
8108 \end_layout
8109
8110 \end_inset
8111
8112 」.(これは,「2ex」のような「長さ」ではないことに注意してください.)
8113 \end_layout
8114
8115 \begin_layout Description
8116 \begin_inset Flex Code
8117 status collapsed
8118
8119 \begin_layout Plain Layout
8120 NoCounter
8121 \end_layout
8122
8123 \end_inset
8124
8125  [
8126 \begin_inset Flex Code
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 <カウンタ>
8131 \end_layout
8132
8133 \end_inset
8134
8135 ] このコマンドは,既存のカウンタ(通常インクルードファイル内で定義されたもの)を削除します.
8136 \end_layout
8137
8138 \begin_layout Description
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143 NoFloat
8144 \end_layout
8145
8146 \end_inset
8147
8148  [
8149 \begin_inset Flex Code
8150 status collapsed
8151
8152 \begin_layout Plain Layout
8153 <フロート>
8154 \end_layout
8155
8156 \end_inset
8157
8158 ] このコマンドは既存のフロートを削除します.これは特に,Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です.
8159 \end_layout
8160
8161 \begin_layout Description
8162 \begin_inset Flex Code
8163 status collapsed
8164
8165 \begin_layout Plain Layout
8166 NoStyle
8167 \end_layout
8168
8169 \end_inset
8170
8171  [
8172 \begin_inset Flex Code
8173 status collapsed
8174
8175 \begin_layout Plain Layout
8176 <様式>
8177 \end_layout
8178
8179 \end_inset
8180
8181 ] このコマンドは既存の様式を削除します.これは特に,Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です.
8182 \end_layout
8183
8184 \begin_layout Description
8185 \begin_inset Flex Code
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 OutputFormat
8190 \end_layout
8191
8192 \end_inset
8193
8194  [
8195 \begin_inset Flex Code
8196 status collapsed
8197
8198 \begin_layout Plain Layout
8199 <形式>
8200 \end_layout
8201
8202 \end_inset
8203
8204 ] このクラスによって生成されるファイル形式を示す文字列(
8205 \family sans
8206 設定
8207 \family default
8208 ダイアログで定義される形のもの).おもに,
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 literate
8224 \end_layout
8225
8226 \end_inset
8227
8228 になっていて,新しい型のliterate文書を定義したい時に便利です.対応する
8229 \begin_inset Flex Code
8230 status collapsed
8231
8232 \begin_layout Plain Layout
8233 OutputType
8234 \end_layout
8235
8236 \end_inset
8237
8238 パラメーターに遭遇したときには,この文字列は,「
8239 \begin_inset Flex Code
8240 status collapsed
8241
8242 \begin_layout Plain Layout
8243 docbook
8244 \end_layout
8245
8246 \end_inset
8247
8248 」・「
8249 \begin_inset Flex Code
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253 lat
8254 \emph on
8255 ex
8256 \end_layout
8257
8258 \end_inset
8259
8260 」のいずれかにリセットされます.
8261 \end_layout
8262
8263 \begin_layout Description
8264 \begin_inset Flex Code
8265 status collapsed
8266
8267 \begin_layout Plain Layout
8268 OutputType
8269 \end_layout
8270
8271 \end_inset
8272
8273  [
8274 \begin_inset Flex Code
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278
8279 \emph on
8280 lat
8281 \emph default
8282 ex
8283 \end_layout
8284
8285 \end_inset
8286
8287
8288 \begin_inset Flex Code
8289 status collapsed
8290
8291 \begin_layout Plain Layout
8292 docbook
8293 \end_layout
8294
8295 \end_inset
8296
8297
8298 \begin_inset Flex Code
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 literate
8303 \end_layout
8304
8305 \end_inset
8306
8307 ] このクラスを使用する文書がどのような種類の出力をするかを示す文字列.現在のところ,取り得る値は「docbook」・「latex」・「literate」です.
8308 \end_layout
8309
8310 \begin_layout Description
8311 \begin_inset Flex Code
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 PackageOptions
8316 \end_layout
8317
8318 \end_inset
8319
8320  [
8321 \begin_inset Flex Code
8322 status collapsed
8323
8324 \begin_layout Plain Layout
8325 文字列
8326 \end_layout
8327
8328 \end_inset
8329
8330  
8331 \begin_inset Flex Code
8332 status collapsed
8333
8334 \begin_layout Plain Layout
8335 文字列
8336 \end_layout
8337
8338 \end_inset
8339
8340 ] 第1文字列で指定したパッケージ用のオプションを第2文字列で指定します.例えば,「
8341 \begin_inset Flex Code
8342 status collapsed
8343
8344 \begin_layout Plain Layout
8345 PackageOptions natbib square
8346 \end_layout
8347
8348 \end_inset
8349
8350 」とすると,
8351 \begin_inset Flex Code
8352 status collapsed
8353
8354 \begin_layout Plain Layout
8355 natbib
8356 \end_layout
8357
8358 \end_inset
8359
8360
8361 \begin_inset Flex Code
8362 status collapsed
8363
8364 \begin_layout Plain Layout
8365 square
8366 \end_layout
8367
8368 \end_inset
8369
8370 オプションとともに読み込みます(\SpecialChar TeX
8371 perts向けに述べると,これは,
8372 \begin_inset Flex Code
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376 natbib
8377 \end_layout
8378
8379 \end_inset
8380
8381 を読み込む前に,\SpecialChar LyX
8382
8383 \begin_inset Flex Code
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387
8388 \backslash
8389 PassOptionsToPackage{natbib}{square}
8390 \end_layout
8391
8392 \end_inset
8393
8394 を出力させます).
8395 \end_layout
8396
8397 \begin_layout Description
8398 \begin_inset Flex Code
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402 PageStyle
8403 \end_layout
8404
8405 \end_inset
8406
8407  [
8408 \emph on
8409
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 plain
8415 \end_layout
8416
8417 \end_inset
8418
8419
8420 \emph default
8421
8422 \begin_inset Flex Code
8423 status collapsed
8424
8425 \begin_layout Plain Layout
8426 empty
8427 \end_layout
8428
8429 \end_inset
8430
8431
8432 \begin_inset Flex Code
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 headings
8437 \end_layout
8438
8439 \end_inset
8440
8441 ] 既定ページ様式.
8442 \begin_inset Flex MenuItem
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 文書\SpecialChar menuseparator
8447 設定
8448 \end_layout
8449
8450 \end_inset
8451
8452 ダイアログで変更することができます.
8453 \end_layout
8454
8455 \begin_layout Description
8456 \begin_inset Flex Code
8457 status collapsed
8458
8459 \begin_layout Plain Layout
8460 Preamble
8461 \end_layout
8462
8463 \end_inset
8464
8465  \SpecialChar LaTeX
8466 文書のプリアンブルを設定します.前に行った
8467 \begin_inset Flex Code
8468 status collapsed
8469
8470 \begin_layout Plain Layout
8471 Preamble
8472 \end_layout
8473
8474 \end_inset
8475
8476 宣言や
8477 \begin_inset Flex Code
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 AddToPreamble
8482 \end_layout
8483
8484 \end_inset
8485
8486 宣言は,すべて上書きされてしまうので注意してください.(プリアンブルに何かを追加したい時には,
8487 \begin_inset Flex Code
8488 status collapsed
8489
8490 \begin_layout Plain Layout
8491 AddToPreamble
8492 \end_layout
8493
8494 \end_inset
8495
8496 を使用してください.)「
8497 \begin_inset Flex Code
8498 status collapsed
8499
8500 \begin_layout Plain Layout
8501 EndPreamble
8502 \end_layout
8503
8504 \end_inset
8505
8506 」で閉じる必要があります.
8507 \end_layout
8508
8509 \begin_layout Description
8510 \begin_inset Flex Code
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 Provides
8515 \end_layout
8516
8517 \end_inset
8518
8519  [
8520 \begin_inset Flex Code
8521 status collapsed
8522
8523 \begin_layout Plain Layout
8524 文字列
8525 \end_layout
8526
8527 \end_inset
8528
8529 ] [
8530 \begin_inset Flex Code
8531 status collapsed
8532
8533 \begin_layout Plain Layout
8534
8535 \emph on
8536 0
8537 \end_layout
8538
8539 \end_inset
8540
8541
8542 \begin_inset Flex Code
8543 status collapsed
8544
8545 \begin_layout Plain Layout
8546 1
8547 \end_layout
8548
8549 \end_inset
8550
8551 ] このクラスが
8552 \begin_inset Flex Code
8553 status collapsed
8554
8555 \begin_layout Plain Layout
8556 文字列
8557 \end_layout
8558
8559 \end_inset
8560
8561 で示される機能を既に提供しているかどうかを示します.機能は,一般的にパッケージ名(
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 amsmath
8567 \end_layout
8568
8569 \end_inset
8570
8571
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 makeidx
8577 \end_layout
8578
8579 \end_inset
8580
8581 ・\SpecialChar ldots
8582 )やマクロ名(
8583 \begin_inset Flex Code
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 url
8588 \end_layout
8589
8590 \end_inset
8591
8592
8593 \begin_inset Flex Code
8594 status collapsed
8595
8596 \begin_layout Plain Layout
8597 boldsymbol
8598 \end_layout
8599
8600 \end_inset
8601
8602 ・\SpecialChar ldots
8603 )です.機能一覧については,
8604 \begin_inset CommandInset ref
8605 LatexCommand ref
8606 reference "chap:関数一覧"
8607
8608 \end_inset
8609
8610 を参照.
8611 \end_layout
8612
8613 \begin_layout Description
8614 \begin_inset Flex Code
8615 status collapsed
8616
8617 \begin_layout Plain Layout
8618 ProvidesModule
8619 \end_layout
8620
8621 \end_inset
8622
8623  [
8624 \begin_inset Flex Code
8625 status collapsed
8626
8627 \begin_layout Plain Layout
8628 文字列
8629 \end_layout
8630
8631 \end_inset
8632
8633 ] このレイアウトが
8634 \begin_inset Flex Code
8635 status collapsed
8636
8637 \begin_layout Plain Layout
8638 文字列
8639 \end_layout
8640
8641 \end_inset
8642
8643 で表されているモジュールの機能を提供することを示し,
8644 \begin_inset Flex Code
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 .module
8649 \end_layout
8650
8651 \end_inset
8652
8653 拡張子を除いたファイル名で指定します.
8654 \begin_inset Flex Code
8655 status collapsed
8656
8657 \begin_layout Plain Layout
8658 DefaultModule
8659 \end_layout
8660
8661 \end_inset
8662
8663 タグを使用すると,モジュールを使用しなくてはならないことを示しますが,このタグは主に,このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
8664 れます.同じ機能を別に実装しているモジュール中で使用するなどすることもできます.
8665 \end_layout
8666
8667 \begin_layout Description
8668 \begin_inset Flex Code
8669 status collapsed
8670
8671 \begin_layout Plain Layout
8672 Requires
8673 \end_layout
8674
8675 \end_inset
8676
8677  [
8678 \begin_inset Flex Code
8679 status collapsed
8680
8681 \begin_layout Plain Layout
8682 文字列
8683 \end_layout
8684
8685 \end_inset
8686
8687 ] このクラスが
8688 \begin_inset Flex Code
8689 status collapsed
8690
8691 \begin_layout Plain Layout
8692 文字列
8693 \end_layout
8694
8695 \end_inset
8696
8697 で表されている機能を要求することを示します.機能が複数ある場合には,コンマで区切らなくてはなりません.サポートされている機能以外は要求できないことに注意してくだ
8698 さい(機能一覧については
8699 \begin_inset CommandInset ref
8700 LatexCommand ref
8701 reference "chap:関数一覧"
8702
8703 \end_inset
8704
8705 を参照).特定のオプションをとるパッケージを要求する場合,
8706 \begin_inset Flex Code
8707 status collapsed
8708
8709 \begin_layout Plain Layout
8710 PackageOptions
8711 \end_layout
8712
8713 \end_inset
8714
8715 を追加して使うことができます.
8716 \end_layout
8717
8718 \begin_layout Description
8719 \begin_inset Flex Code
8720 status collapsed
8721
8722 \begin_layout Plain Layout
8723 RightMargin
8724 \end_layout
8725
8726 \end_inset
8727
8728  [
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733 文字列
8734 \end_layout
8735
8736 \end_inset
8737
8738 ] 画面上の右余白の幅を指示する文字列.例:「
8739 \begin_inset Flex Code
8740 status collapsed
8741
8742 \begin_layout Plain Layout
8743 MMMMM
8744 \end_layout
8745
8746 \end_inset
8747
8748 」.
8749 \end_layout
8750
8751 \begin_layout Description
8752 \begin_inset Flex Code
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 SecNumDepth
8757 \end_layout
8758
8759 \end_inset
8760
8761  [
8762 \begin_inset Flex Code
8763 status collapsed
8764
8765 \begin_layout Plain Layout
8766 int=3
8767 \end_layout
8768
8769 \end_inset
8770
8771 ] どの節区切りまで連番を振るかを指定します.\SpecialChar LaTeX
8772 における
8773 \begin_inset Flex Code
8774 status collapsed
8775
8776 \begin_layout Plain Layout
8777 secnumdepth
8778 \end_layout
8779
8780 \end_inset
8781
8782 カウンタに対応します.
8783 \end_layout
8784
8785 \begin_layout Description
8786 \begin_inset Flex Code
8787 status collapsed
8788
8789 \begin_layout Plain Layout
8790 Sides
8791 \end_layout
8792
8793 \end_inset
8794
8795  [
8796 \emph on
8797
8798 \begin_inset Flex Code
8799 status collapsed
8800
8801 \begin_layout Plain Layout
8802 1
8803 \end_layout
8804
8805 \end_inset
8806
8807
8808 \emph default
8809 ,
8810 \begin_inset space \thinspace{}
8811 \end_inset
8812
8813
8814 \begin_inset Flex Code
8815 status collapsed
8816
8817 \begin_layout Plain Layout
8818 2
8819 \end_layout
8820
8821 \end_inset
8822
8823 ] クラスの既定値として,用紙の片面に印字するか両面に印字するかを指定します.
8824 \begin_inset Flex MenuItem
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 文書\SpecialChar menuseparator
8829 設定
8830 \end_layout
8831
8832 \end_inset
8833
8834 ダイアログで変更することができます.
8835 \end_layout
8836
8837 \begin_layout Description
8838 \begin_inset Flex Code
8839 status collapsed
8840
8841 \begin_layout Plain Layout
8842 Style
8843 \end_layout
8844
8845 \end_inset
8846
8847  [
8848 \begin_inset Flex Code
8849 status collapsed
8850
8851 \begin_layout Plain Layout
8852 <名称>
8853 \end_layout
8854
8855 \end_inset
8856
8857 ]
8858 \lang english
8859  
8860 \lang japanese
8861 この部分は段落様式を定義します.様式がまだ存在していなければ,生成されます.既に存在していれば,そのパラメータが修正されます.「
8862 \begin_inset Flex Code
8863 status collapsed
8864
8865 \begin_layout Plain Layout
8866 End
8867 \end_layout
8868
8869 \end_inset
8870
8871 」で閉じる必要があります.
8872 \begin_inset Newline newline
8873 \end_inset
8874
8875 段落様式に関する詳細は,
8876 \begin_inset CommandInset ref
8877 LatexCommand ref
8878 reference "subsec:段落様式-XHTML"
8879
8880 \end_inset
8881
8882 をご覧ください.
8883 \end_layout
8884
8885 \begin_layout Description
8886 \begin_inset Flex Code
8887 status collapsed
8888
8889 \begin_layout Plain Layout
8890 TitleLatexName
8891 \end_layout
8892
8893 \end_inset
8894
8895  [
8896 \begin_inset Flex Code
8897 status collapsed
8898
8899 \begin_layout Plain Layout
8900 文字列="maketitle"
8901 \end_layout
8902
8903 \end_inset
8904
8905
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 TitleLatexType
8911 \end_layout
8912
8913 \end_inset
8914
8915 で使用すべきコマンド名あるいは環境名.The name of the command or environment to be used with
8916  
8917 \begin_inset Flex Code
8918 status collapsed
8919
8920 \begin_layout Plain Layout
8921 TitleLatexType
8922 \end_layout
8923
8924 \end_inset
8925
8926 .
8927 \end_layout
8928
8929 \begin_layout Description
8930 \begin_inset Flex Code
8931 status collapsed
8932
8933 \begin_layout Plain Layout
8934 TitleLatexType
8935 \end_layout
8936
8937 \end_inset
8938
8939  [
8940 \begin_inset Flex Code
8941 status collapsed
8942
8943 \begin_layout Plain Layout
8944
8945 \emph on
8946 CommandAfter
8947 \end_layout
8948
8949 \end_inset
8950
8951
8952 \begin_inset Flex Code
8953 status collapsed
8954
8955 \begin_layout Plain Layout
8956 Environment
8957 \end_layout
8958
8959 \end_inset
8960
8961 ] 文書のタイトルを定義するのに,どのようなマークアップを使用するのかを示します.
8962 \begin_inset Flex Code
8963 status collapsed
8964
8965 \begin_layout Plain Layout
8966 CommandAfter
8967 \end_layout
8968
8969 \end_inset
8970
8971 は,「
8972 \begin_inset Flex Code
8973 status collapsed
8974
8975 \begin_layout Plain Layout
8976 InTitle
8977 \begin_inset space ~
8978 \end_inset
8979
8980 1
8981 \end_layout
8982
8983 \end_inset
8984
8985 」が指定されている最後のレイアウトの後に,
8986 \begin_inset Flex Code
8987 status collapsed
8988
8989 \begin_layout Plain Layout
8990 TitleLatexName
8991 \end_layout
8992
8993 \end_inset
8994
8995 で指定したマクロ名を挿入することを意味します.
8996 \begin_inset Flex Code
8997 status collapsed
8998
8999 \begin_layout Plain Layout
9000 Environment
9001 \end_layout
9002
9003 \end_inset
9004
9005 は,「
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010 InTitle
9011 \begin_inset space ~
9012 \end_inset
9013
9014 1
9015 \end_layout
9016
9017 \end_inset
9018
9019 」を持つ段落群を
9020 \begin_inset Flex Code
9021 status collapsed
9022
9023 \begin_layout Plain Layout
9024 TitleLatexName
9025 \end_layout
9026
9027 \end_inset
9028
9029 で指定した環境でくるむ場合に対応します.
9030 \end_layout
9031
9032 \begin_layout Description
9033 \begin_inset Flex Code
9034 status collapsed
9035
9036 \begin_layout Plain Layout
9037 TocDepth
9038 \end_layout
9039
9040 \end_inset
9041
9042  [
9043 \begin_inset Flex Code
9044 status collapsed
9045
9046 \begin_layout Plain Layout
9047 int=3
9048 \end_layout
9049
9050 \end_inset
9051
9052 ] どの節区切りまで目次に取り込むかを指定します.\SpecialChar LaTeX
9053
9054 \begin_inset Flex Code
9055 status collapsed
9056
9057 \begin_layout Plain Layout
9058 tocdepth
9059 \end_layout
9060
9061 \end_inset
9062
9063 カウンタに対応します.
9064 \end_layout
9065
9066 \begin_layout Subsection
9067 \begin_inset Flex Code
9068 status collapsed
9069
9070 \begin_layout Plain Layout
9071 ClassOptions
9072 \end_layout
9073
9074 \end_inset
9075
9076
9077 \begin_inset CommandInset label
9078 LatexCommand label
9079 name "subsec:ClassOptions"
9080
9081 \end_inset
9082
9083
9084 \end_layout
9085
9086 \begin_layout Standard
9087 \begin_inset Flex Code
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 ClassOptions
9092 \end_layout
9093
9094 \end_inset
9095
9096 部は,以下の項目を取り得ます.
9097 \end_layout
9098
9099 \begin_layout Description
9100 \begin_inset Flex Code
9101 status collapsed
9102
9103 \begin_layout Plain Layout
9104 FontSize
9105 \end_layout
9106
9107 \end_inset
9108
9109  [
9110 \begin_inset Flex Code
9111 status collapsed
9112
9113 \begin_layout Plain Layout
9114 文字列="10|11|12"
9115 \end_layout
9116
9117 \end_inset
9118
9119 ] 文書のメインフォントが使用できるフォント寸法の一覧です.「
9120 \begin_inset Flex Code
9121 status collapsed
9122
9123 \begin_layout Plain Layout
9124 |
9125 \end_layout
9126
9127 \end_inset
9128
9129 」で区切ります.
9130 \end_layout
9131
9132 \begin_layout Description
9133 \begin_inset Flex Code
9134 status collapsed
9135
9136 \begin_layout Plain Layout
9137 Header
9138 \end_layout
9139
9140 \end_inset
9141
9142  XMLベースの出力クラスで,DTD行を設定するのに使用されます.例:PUBLIC 
9143 \begin_inset Quotes eld
9144 \end_inset
9145
9146 -//OASIS//DTD DocBook V4.2//EN
9147 \begin_inset Quotes erd
9148 \end_inset
9149
9150
9151 \end_layout
9152
9153 \begin_layout Description
9154 \begin_inset Flex Code
9155 status collapsed
9156
9157 \begin_layout Plain Layout
9158 PageStyle
9159 \end_layout
9160
9161 \end_inset
9162
9163  [
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 文字列="empty|plain|headings|fancy"
9169 \end_layout
9170
9171 \end_inset
9172
9173 ] 使用できるページ様式の一覧です.「
9174 \begin_inset Flex Code
9175 status collapsed
9176
9177 \begin_layout Plain Layout
9178 |
9179 \end_layout
9180
9181 \end_inset
9182
9183 」で区切ります.
9184 \end_layout
9185
9186 \begin_layout Description
9187 \begin_inset Flex Code
9188 status collapsed
9189
9190 \begin_layout Plain Layout
9191 Other
9192 \end_layout
9193
9194 \end_inset
9195
9196  [
9197 \begin_inset Flex Code
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 文字列=""
9202 \end_layout
9203
9204 \end_inset
9205
9206
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211
9212 \backslash
9213 documentclass
9214 \end_layout
9215
9216 \end_inset
9217
9218 コマンドの非必須パラメータとして付け加える文書クラスオプションです.コンマで区切ります.
9219 \end_layout
9220
9221 \begin_layout Standard
9222 \begin_inset Flex Code
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 ClassOptions
9227 \end_layout
9228
9229 \end_inset
9230
9231 部は「
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 End
9237 \end_layout
9238
9239 \end_inset
9240
9241 」で閉じる必要があります.
9242 \end_layout
9243
9244 \begin_layout Subsection
9245 段落様式
9246 \begin_inset CommandInset label
9247 LatexCommand label
9248 name "subsec:段落様式"
9249
9250 \end_inset
9251
9252
9253 \end_layout
9254
9255 \begin_layout Standard
9256 段落様式の記述は,以下のようになります
9257 \begin_inset Foot
9258 status collapsed
9259
9260 \begin_layout Plain Layout
9261 これは新しいレイアウトを定義するか,既存のレイアウトを修正することになることに注意してください.
9262 \end_layout
9263
9264 \end_inset
9265
9266
9267 \end_layout
9268
9269 \begin_layout LyX-Code
9270 Style 
9271 \family roman
9272 \emph on
9273 名称
9274 \end_layout
9275
9276 \begin_layout LyX-Code
9277  ...
9278 \end_layout
9279
9280 \begin_layout LyX-Code
9281 End
9282 \end_layout
9283
9284 \begin_layout Standard
9285 ここでは,以下のコマンドを使用することができます.
9286 \end_layout
9287
9288 \begin_layout Description
9289 \begin_inset Flex Code
9290 status collapsed
9291
9292 \begin_layout Plain Layout
9293 Align
9294 \end_layout
9295
9296 \end_inset
9297
9298  [
9299 \begin_inset Flex Code
9300 status collapsed
9301
9302 \begin_layout Plain Layout
9303
9304 \emph on
9305 block
9306 \emph default
9307 , left, right, center
9308 \end_layout
9309
9310 \end_inset
9311
9312 ] 段落の揃え.
9313 \end_layout
9314
9315 \begin_layout Description
9316 \begin_inset Flex Code
9317 status collapsed
9318
9319 \begin_layout Plain Layout
9320 AlignPossible
9321 \end_layout
9322
9323 \end_inset
9324
9325  [
9326 \begin_inset Flex Code
9327 status collapsed
9328
9329 \begin_layout Plain Layout
9330
9331 \emph on
9332 block
9333 \emph default
9334 , left, right, center
9335 \end_layout
9336
9337 \end_inset
9338
9339 ] 使用できる揃えのコンマ区切りリスト(\SpecialChar LaTeX
9340 スタイルには,意味を成さない一部の揃えが禁じられているものがあります.たとえば,連番箇条書きを右揃えや中央揃えにすること
9341 はできません).
9342 \end_layout
9343
9344 \begin_layout Description
9345 \begin_inset Flex Code
9346 status collapsed
9347
9348 \begin_layout Plain Layout
9349 Argument
9350 \end_layout
9351
9352 \end_inset
9353
9354  [
9355 \begin_inset Flex Code
9356 status collapsed
9357
9358 \begin_layout Plain Layout
9359 整数
9360 \end_layout
9361
9362 \end_inset
9363
9364 ] 現在の様式に関連付けられたコマンドまたは環境の引数番号<整数>を定義します.これは,節見出しのようなものに便利で,また\SpecialChar LaTeX
9365 でのみ意味を持ちます.コマンドまたは環
9366 境の引数は全て–段落の内容自身に関連付けられた必須引数を除き,必須・非必須を問わず–,別の場所で定義され,引数番号はその順序を表します.定義は
9367 \begin_inset Flex Code
9368 status collapsed
9369
9370 \begin_layout Plain Layout
9371 EndArgument
9372 \end_layout
9373
9374 \end_inset
9375
9376 で閉じなくてはなりません.非必須引数が2つあるコマンドの場合は,以下のようになります.
9377 \end_layout
9378
9379 \begin_deeper
9380 \begin_layout Quote
9381
9382 \family typewriter
9383 Argument 1
9384 \end_layout
9385
9386 \begin_layout Quote
9387
9388 \family typewriter
9389 ...
9390 \end_layout
9391
9392 \begin_layout Quote
9393
9394 \family typewriter
9395 EndArgument
9396 \end_layout
9397
9398 \begin_layout Quote
9399
9400 \family typewriter
9401 Argument 2
9402 \end_layout
9403
9404 \begin_layout Quote
9405
9406 \family typewriter
9407 ...
9408 \end_layout
9409
9410 \begin_layout Quote
9411
9412 \family typewriter
9413 EndArgument
9414 \end_layout
9415
9416 \begin_layout Standard
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 Argument
9422 \end_layout
9423
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 LabelString
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 Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 MenuString
9455 \end_layout
9456
9457 \end_inset
9458
9459 を指定した場合を除く).メニューには,後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9460 \begin_inset space \space{}
9461 \end_inset
9462
9463
9464 \begin_inset Quotes eld
9465 \end_inset
9466
9467
9468 \begin_inset Flex Code
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472 Short Title|S
9473 \end_layout
9474
9475 \end_inset
9476
9477
9478 \begin_inset Quotes erd
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 MenuString
9490 \end_layout
9491
9492 \end_inset
9493
9494  
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 [文字列]
9500 \end_layout
9501
9502 \end_inset
9503
9504  メニュー単独用の文字列.後ろに「|」で区切った文字を置くことでアクセラレーターを定義することができます(例:
9505 \begin_inset space \space{}
9506 \end_inset
9507
9508
9509 \begin_inset Quotes eld
9510 \end_inset
9511
9512
9513 \begin_inset Flex Code
9514 status collapsed
9515
9516 \begin_layout Plain Layout
9517 Short Title|S
9518 \end_layout
9519
9520 \end_inset
9521
9522
9523 \begin_inset Quotes erd
9524 \end_inset
9525
9526 ).この指定は必須ではありません.指定しない場合には,代わりに
9527 \begin_inset Flex Code
9528 status collapsed
9529
9530 \begin_layout Plain Layout
9531 LabelString
9532 \end_layout
9533
9534 \end_inset
9535
9536 がメニューに用いられます.
9537 \end_layout
9538
9539 \begin_layout Itemize
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 Tooltip
9545 \end_layout
9546
9547 \end_inset
9548
9549  
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554 [文字列]
9555 \end_layout
9556
9557 \end_inset
9558
9559  引数差込枠にマウスをかざしたときに現れるツールチップに表示される長めの説明文.
9560 \end_layout
9561
9562 \begin_layout Itemize
9563 \begin_inset Flex Code
9564 status collapsed
9565
9566 \begin_layout Plain Layout
9567 Mandatory
9568 \end_layout
9569
9570 \end_inset
9571
9572  [
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577
9578 \emph on
9579 0
9580 \end_layout
9581
9582 \end_inset
9583
9584 ,
9585 \begin_inset space \thinspace{}
9586 \end_inset
9587
9588
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 1
9594 \end_layout
9595
9596 \end_inset
9597
9598 ] これが必須の引数なのか(1)非必須の引数なのか(0)を宣言します.必須引数は,与えられなければ空の出力を行いますが,非必須引数の場合はそもそも出力されません
9599 .既定では,必須引数は
9600 \begin_inset Flex Code
9601 status collapsed
9602
9603 \begin_layout Plain Layout
9604 {...}
9605 \end_layout
9606
9607 \end_inset
9608
9609 で区切られ,非必須引数は
9610 \begin_inset Flex Code
9611 status collapsed
9612
9613 \begin_layout Plain Layout
9614 [...]
9615 \end_layout
9616
9617 \end_inset
9618
9619 で区切られます.
9620 \end_layout
9621
9622 \begin_layout Itemize
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 Requires
9628 \end_layout
9629
9630 \end_inset
9631
9632  
9633 \begin_inset Flex Code
9634 status collapsed
9635
9636 \begin_layout Plain Layout
9637 [整数=0]
9638 \end_layout
9639
9640 \end_inset
9641
9642  この引数が出力されるとき,必要となる別の引数を(番号によって)指定します.例えば,\SpecialChar LaTeX
9643 コマンドでは,
9644 \begin_inset Flex Code
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648
9649 \backslash
9650 command[][引数]{文字列}
9651 \end_layout
9652
9653 \end_inset
9654
9655 のように,前に(少なくとも空の)別の非必須引数を要求する非必須引数があります.これは,
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 Argument 2
9661 \end_layout
9662
9663 \end_inset
9664
9665 中に
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670 Requires 1
9671 \end_layout
9672
9673 \end_inset
9674
9675 ステートメントを置くことで実現できます.
9676 \end_layout
9677
9678 \begin_layout Itemize
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 LeftDelim
9684 \end_layout
9685
9686 \end_inset
9687
9688  
9689 \begin_inset Flex Code
9690 status collapsed
9691
9692 \begin_layout Plain Layout
9693 [文字列]
9694 \end_layout
9695
9696 \end_inset
9697
9698  (
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 {
9704 \end_layout
9705
9706 \end_inset
9707
9708
9709 \begin_inset Flex Code
9710 status collapsed
9711
9712 \begin_layout Plain Layout
9713 [
9714 \end_layout
9715
9716 \end_inset
9717
9718 ではない)ユーザー定義の左区切りを定義します.出力中の改行は
9719 \begin_inset Flex Code
9720 status collapsed
9721
9722 \begin_layout Plain Layout
9723 <br/>
9724 \end_layout
9725
9726 \end_inset
9727
9728 で指示できます.
9729 \end_layout
9730
9731 \begin_layout Itemize
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 RightDelim
9737 \end_layout
9738
9739 \end_inset
9740
9741  
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 [文字列]
9747 \end_layout
9748
9749 \end_inset
9750
9751  (
9752 \begin_inset Flex Code
9753 status collapsed
9754
9755 \begin_layout Plain Layout
9756 }
9757 \end_layout
9758
9759 \end_inset
9760
9761
9762 \begin_inset Flex Code
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 ]
9767 \end_layout
9768
9769 \end_inset
9770
9771 ではない)ユーザー定義の右区切りを定義します.出力中の改行は
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 <br/>
9777 \end_layout
9778
9779 \end_inset
9780
9781 で指示できます.
9782 \end_layout
9783
9784 \begin_layout Itemize
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 DefaultArg
9790 \end_layout
9791
9792 \end_inset
9793
9794  
9795 \begin_inset Flex Code
9796 status collapsed
9797
9798 \begin_layout Plain Layout
9799 [文字列]
9800 \end_layout
9801
9802 \end_inset
9803
9804  ユーザー指定引数が与えられなかったとき,すなわち引数差込枠が挿入されなかったときに限り,挿入される引数を定義します(空の引数差込枠が挿入されてもDefault
9805 Argは無効になることに注意してください).引数が複数のときはコンマで区切る必要があります.
9806 \end_layout
9807
9808 \begin_layout Itemize
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 PresetArg
9814 \end_layout
9815
9816 \end_inset
9817
9818  
9819 \begin_inset Flex Code
9820 status collapsed
9821
9822 \begin_layout Plain Layout
9823 [文字列]
9824 \end_layout
9825
9826 \end_inset
9827
9828  どのような場合にも(単独もしくはユーザー定義引数とともに)挿入される引数を定義します.引数が複数のときはコンマで区切る必要があります.
9829 \end_layout
9830
9831 \begin_layout Itemize
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 Font
9837 \end_layout
9838
9839 \end_inset
9840
9841  引数の内容に用いられるフォント.
9842 \begin_inset CommandInset ref
9843 LatexCommand ref
9844 reference "subsec:フォント指定"
9845
9846 \end_inset
9847
9848 参照.
9849 \end_layout
9850
9851 \begin_layout Itemize
9852 \begin_inset Flex Code
9853 status collapsed
9854
9855 \begin_layout Plain Layout
9856 LabelFont
9857 \end_layout
9858
9859 \end_inset
9860
9861  ラベルに用いられるフォント.
9862 \begin_inset CommandInset ref
9863 LatexCommand ref
9864 reference "subsec:フォント指定"
9865
9866 \end_inset
9867
9868 参照.
9869 \end_layout
9870
9871 \begin_layout Itemize
9872 \begin_inset Flex Code
9873 status collapsed
9874
9875 \begin_layout Plain Layout
9876 Decoration
9877 \end_layout
9878
9879 \end_inset
9880
9881  [
9882 \begin_inset Flex Code
9883 status collapsed
9884
9885 \begin_layout Plain Layout
9886
9887 \emph on
9888 Classic
9889 \emph default
9890 , Minimalistic, Conglomerate
9891 \end_layout
9892
9893 \end_inset
9894
9895 ] 差込枠の枠とボタンに用いられる装飾様式.
9896 \end_layout
9897
9898 \begin_layout Itemize
9899 \begin_inset Flex Code
9900 status collapsed
9901
9902 \begin_layout Plain Layout
9903 AutoInsert
9904 \end_layout
9905
9906 \end_inset
9907
9908  
9909 \begin_inset Flex Code
9910 status collapsed
9911
9912 \begin_layout Plain Layout
9913 [整数=0]
9914 \end_layout
9915
9916 \end_inset
9917
9918  これが
9919 \begin_inset Flex Code
9920 status collapsed
9921
9922 \begin_layout Plain Layout
9923 1
9924 \end_layout
9925
9926 \end_inset
9927
9928 に設定されると,各様式が選択されたときに,この引数が自動的に挿入されます.現在のところ,様式・レイアウト毎に1変数のみ自動挿入することができます.
9929 \end_layout
9930
9931 \begin_layout Itemize
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936 InsertCotext
9937 \end_layout
9938
9939 \end_inset
9940
9941  
9942 \begin_inset Flex Code
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 [整数=0]
9947 \end_layout
9948
9949 \end_inset
9950
9951  これが
9952 \begin_inset Flex Code
9953 status collapsed
9954
9955 \begin_layout Plain Layout
9956 1
9957 \end_layout
9958
9959 \end_inset
9960
9961 に設定されると,この引数は,副文(選択した文ないしは段落全体)のコピーを内容にとって挿入されます.
9962 \end_layout
9963
9964 \begin_layout Itemize
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969 PassThruChars
9970 \end_layout
9971
9972 \end_inset
9973
9974  [
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 文字列
9980 \end_layout
9981
9982 \end_inset
9983
9984 ]
9985 \family typewriter
9986  
9987 \family default
9988 \SpecialChar LaTeX
9989 が要求する特別な翻訳は抜きにして,生の形で出力されるべき各文字を定義します.PassThruとは違って,引数用に,これは明示的に定義されなくてはなりません.つま
9990 り,引数は,親差込枠や親レイアウトからPassThruCharsを継承しません.
9991 \end_layout
9992
9993 \begin_layout Standard
9994 既定では,
9995 \begin_inset Flex Code
9996 status collapsed
9997
9998 \begin_layout Plain Layout
9999 LatexType
10000 \end_layout
10001
10002 \end_inset
10003
10004
10005 \begin_inset Flex Code
10006 status collapsed
10007
10008 \begin_layout Plain Layout
10009 Command
10010 \end_layout
10011
10012 \end_inset
10013
10014 のとき,各レイアウトで\SpecialChar LyX
10015 作業領域に入力した文字列は,コマンドの最後の(必須)引数になります.しかしながら,前置句
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020 post:
10021 \end_layout
10022
10023 \end_inset
10024
10025 を付けた文字列は,この作業領域引数の後に出力されます.後置引数の番号は1から振られ直されますので,作業領域引数の後の最初の引数は
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 post:1
10031 \end_layout
10032
10033 \end_inset
10034
10035 となります.後置引数は,
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 Command
10041 \end_layout
10042
10043 \end_inset
10044
10045 以外の
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 LatexType
10051 \end_layout
10052
10053 \end_inset
10054
10055 では無視されます.
10056 \end_layout
10057
10058 \begin_layout Standard
10059 (
10060 \begin_inset Flex Code
10061 status collapsed
10062
10063 \begin_layout Plain Layout
10064
10065 \backslash
10066 item[foo]
10067 \end_layout
10068
10069 \end_inset
10070
10071 のような)箇条書き
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076
10077 \backslash
10078 item
10079 \end_layout
10080
10081 \end_inset
10082
10083 の引数は,前置句
10084 \begin_inset Flex Code
10085 status collapsed
10086
10087 \begin_layout Plain Layout
10088 item:
10089 \end_layout
10090
10091 \end_inset
10092
10093 の後に番号を付けます(例:
10094 \begin_inset Flex Code
10095 status collapsed
10096
10097 \begin_layout Plain Layout
10098 Argument item:1
10099 \end_layout
10100
10101 \end_inset
10102
10103 ).
10104 \end_layout
10105
10106 \end_deeper
10107 \begin_layout Description
10108 \begin_inset Flex Code
10109 status collapsed
10110
10111 \begin_layout Plain Layout
10112 BabelPreamble
10113 \end_layout
10114
10115 \end_inset
10116
10117  これは,前に現れたこの様式の
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 BabelPreamble
10123 \end_layout
10124
10125 \end_inset
10126
10127 宣言をすべて,完全に上書きしますので注意してください.「
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 EndBabelPreamble
10133 \end_layout
10134
10135 \end_inset
10136
10137 」で閉じる必要があります.これの利用法についての詳細は,第
10138 \begin_inset CommandInset ref
10139 LatexCommand ref
10140 reference "subsec:段落様式の国際化"
10141
10142 \end_inset
10143
10144 節をご覧ください.
10145 \end_layout
10146
10147 \begin_layout Description
10148 \begin_inset Flex Code
10149 status collapsed
10150
10151 \begin_layout Plain Layout
10152 BottomSep
10153 \end_layout
10154
10155 \end_inset
10156
10157  [
10158 \begin_inset Flex Code
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 浮動小数点型=0
10163 \end_layout
10164
10165 \end_inset
10166
10167 ]
10168 \begin_inset Foot
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 ここで「浮動小数点型」とは1.5のような実数を指します.
10173 \end_layout
10174
10175 \end_inset
10176
10177  このレイアウト型の段落塊の最後の段落と,次の段落とを分離する垂直空白.次の段落が別のレイアウト型である場合,分離幅は足し上げられるのではなく,最大値がとられま
10178 す.
10179 \end_layout
10180
10181 \begin_layout Description
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 Category
10187 \end_layout
10188
10189 \end_inset
10190
10191  [
10192 \begin_inset Flex Code
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 文字列
10197 \end_layout
10198
10199 \end_inset
10200
10201 ] この様式のカテゴリです.これは,ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます.任意の文字列を使用することができますが
10202 ,作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう.
10203 \end_layout
10204
10205 \begin_layout Description
10206 \begin_inset Flex Code
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 CommandDepth
10211 \end_layout
10212
10213 \end_inset
10214
10215  XMLコマンドの深度.XML型の書式でのみ使用されます.
10216 \end_layout
10217
10218 \begin_layout Description
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 CopyStyle
10224 \end_layout
10225
10226 \end_inset
10227
10228  [
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 文字列
10234 \end_layout
10235
10236 \end_inset
10237
10238 ] 既存の様式から,すべての機能を現在の様式にコピーします.
10239 \end_layout
10240
10241 \begin_layout Description
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246 DependsOn
10247 \end_layout
10248
10249 \end_inset
10250
10251  [
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 <名称>
10257 \end_layout
10258
10259 \end_inset
10260
10261 ]
10262 \lang english
10263  
10264 \lang japanese
10265 この
10266 \emph on
10267 前に
10268 \emph default
10269 プリアンブルを出力させる様式名.マクロ定義がお互いに依存関係にある場合に,プリアンブルの断片の順序を確実にするためのものです
10270 \begin_inset Foot
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 この機能以外には,プリアンブルの順序を確定する方法はないことに注意してください.\SpecialChar LyX
10275 の特定のバージョンで観察された順序は,将来のバージョンで警告なしに変わる可能性が
10276 あります.
10277 \end_layout
10278
10279 \end_inset
10280
10281
10282 \end_layout
10283
10284 \begin_layout Description
10285 \begin_inset Flex Code
10286 status collapsed
10287
10288 \begin_layout Plain Layout
10289 EndLabeltype
10290 \end_layout
10291
10292 \end_inset
10293
10294  [
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299
10300 \emph on
10301 No_Label
10302 \emph default
10303 , Box, Filled_Box, Static
10304 \end_layout
10305
10306 \end_inset
10307
10308 ] 段落の最後(あるいは
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 LatexType
10314 \end_layout
10315
10316 \end_inset
10317
10318 が,
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 Environment
10324 \end_layout
10325
10326 \end_inset
10327
10328
10329 \begin_inset Flex Code
10330 status collapsed
10331
10332 \begin_layout Plain Layout
10333 Item_Environment
10334 \end_layout
10335
10336 \end_inset
10337
10338
10339 \begin_inset Flex Code
10340 status collapsed
10341
10342 \begin_layout Plain Layout
10343 List_Environment
10344 \end_layout
10345
10346 \end_inset
10347
10348 のいずれかの場合は,段落群の最後)に置くラベル.
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 No_Label
10354 \end_layout
10355
10356 \end_inset
10357
10358 の場合は「何もない」ことを指し,
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 Box
10364 \end_layout
10365
10366 \end_inset
10367
10368 (あるいは
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 Filled_Box
10374 \end_layout
10375
10376 \end_inset
10377
10378 )の場合は,証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し,
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 Static
10384 \end_layout
10385
10386 \end_inset
10387
10388 は明示したテキスト文字列を指します.
10389 \end_layout
10390
10391 \begin_layout Description
10392 \begin_inset Flex Code
10393 status collapsed
10394
10395 \begin_layout Plain Layout
10396 EndLabelString
10397 \end_layout
10398
10399 \end_inset
10400
10401  [
10402 \begin_inset Flex Code
10403 status collapsed
10404
10405 \begin_layout Plain Layout
10406 文字列=""
10407 \end_layout
10408
10409 \end_inset
10410
10411
10412 \begin_inset Flex Code
10413 status collapsed
10414
10415 \begin_layout Plain Layout
10416 Static
10417 \end_layout
10418
10419 \end_inset
10420
10421
10422 \begin_inset Flex Code
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426 EndLabelType
10427 \end_layout
10428
10429 \end_inset
10430
10431 のラベルで用いる文字列.
10432 \end_layout
10433
10434 \begin_layout Description
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439 Font
10440 \end_layout
10441
10442 \end_inset
10443
10444  本文テキストとラベルの
10445 \emph on
10446 両方で
10447 \emph default
10448 用いられるフォント.第
10449 \begin_inset CommandInset ref
10450 LatexCommand ref
10451 reference "subsec:フォント指定"
10452
10453 \end_inset
10454
10455 節を参照.このフォントを定義すると,自動的に
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 LabelFont
10461 \end_layout
10462
10463 \end_inset
10464
10465 も同じ値で定義されることに注意してください.したがって,
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 LabelFont
10471 \end_layout
10472
10473 \end_inset
10474
10475 も同時に定義したい場合には,これを先に定義してください.
10476 \end_layout
10477
10478 \begin_layout Description
10479 \begin_inset Flex Code
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483 ForceLocal
10484 \end_layout
10485
10486 \end_inset
10487
10488  [
10489 \begin_inset Flex Code
10490 status collapsed
10491
10492 \begin_layout Plain Layout
10493 int=0
10494 \end_layout
10495
10496 \end_inset
10497
10498 ] 新しい様式を\SpecialChar LyX
10499 安定版にバックポートするのに用いられます.このタグを最初にサポートした安定版は\SpecialChar LyX
10500  2.1.0です.引数は数字で,0・-1・1以上の任意の数をとることが
10501 できます.様式の
10502 \begin_inset Flex Code
10503 status collapsed
10504
10505 \begin_layout Plain Layout
10506 ForceLocal
10507 \end_layout
10508
10509 \end_inset
10510
10511 フラグが1以上ならば,これは常に文書ヘッダに書き込まれます..lyxファイルが読み込まれると,文書ヘッダからの様式定義が文書クラスに追加されます.したがって,古い
10512 版の\SpecialChar LyX
10513 もこの様式を取り扱えるようになります.
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 ForceLocal
10519 \end_layout
10520
10521 \end_inset
10522
10523 の引数は版数です.様式が読み込まれたときに,文書クラス中の既存の様式の版数よりも小さいと,新しい様式は無視されます.版数が大きいと,既存の様式に代わって新しい様
10524 式が用いられます.値-1は無限大の版数を意味し,この様式が常に用いられることになります.
10525 \end_layout
10526
10527 \begin_layout Description
10528 \begin_inset Flex Code
10529 status collapsed
10530
10531 \begin_layout Plain Layout
10532 FreeSpacing
10533 \end_layout
10534
10535 \end_inset
10536
10537  [
10538 \emph on
10539
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544 0
10545 \end_layout
10546
10547 \end_inset
10548
10549
10550 \emph default
10551 ,
10552 \begin_inset space \thinspace{}
10553 \end_inset
10554
10555
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 1
10561 \end_layout
10562
10563 \end_inset
10564
10565 ] \SpecialChar LyX
10566 は,空白をそれ自体文字や記号ではなく,2つの単語の間の分割子として捉えているため,単語間に2つ以上の空白を入れることは,通常許可していません.これ自体はとて
10567 も素晴らしいことですが,たとえばプログラムコードや生の\SpecialChar LaTeX
10568 コードを入力しようとするときなどに,煩わしくなることがあります.このことから,
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 FreeSpacing
10574 \end_layout
10575
10576 \end_inset
10577
10578 を有効にすることが認められています.\SpecialChar LyX
10579 は,\SpecialChar LaTeX
10580 モード以外では2つめ以降の空白には,保護された空白を使用することに注意してください.
10581 \end_layout
10582
10583 \begin_layout Description
10584 \begin_inset Flex Code
10585 status collapsed
10586
10587 \begin_layout Plain Layout
10588 HTML*
10589 \end_layout
10590
10591 \end_inset
10592
10593  これらのタグは,XHTML出力で使用されます.第
10594 \begin_inset CommandInset ref
10595 LatexCommand ref
10596 reference "subsec:段落様式-XHTML"
10597
10598 \end_inset
10599
10600 節をご覧ください.
10601 \end_layout
10602
10603 \begin_layout Description
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608 InnerTag
10609 \end_layout
10610
10611 \end_inset
10612
10613  [[FIXME]] (XML型書式でのみ使用されます.)
10614 \end_layout
10615
10616 \begin_layout Description
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 InPreamble
10622 \end_layout
10623
10624 \end_inset
10625
10626  [
10627 \emph on
10628
10629 \begin_inset Flex Code
10630 status collapsed
10631
10632 \begin_layout Plain Layout
10633 0
10634 \end_layout
10635
10636 \end_inset
10637
10638
10639 \emph default
10640 ,
10641 \begin_inset space \thinspace{}
10642 \end_inset
10643
10644
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 1
10650 \end_layout
10651
10652 \end_inset
10653
10654
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 1
10660 \end_layout
10661
10662 \end_inset
10663
10664 の場合,様式が文書本体ではなく,文書プリアンブルにインクルードされるようにします.これは,タイトルや著者の情報をプリアンブルで設定する必要のある文書クラスに便利
10665 です.これは,
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670 LatexType
10671 \end_layout
10672
10673 \end_inset
10674
10675
10676 \begin_inset Flex Code
10677 status collapsed
10678
10679 \begin_layout Plain Layout
10680 Command
10681 \end_layout
10682
10683 \end_inset
10684
10685 または
10686 \begin_inset Flex Code
10687 status collapsed
10688
10689 \begin_layout Plain Layout
10690 Paragraph
10691 \end_layout
10692
10693 \end_inset
10694
10695 の様式に対してのみ動作します.
10696 \end_layout
10697
10698 \begin_layout Description
10699 \begin_inset Flex Code
10700 status collapsed
10701
10702 \begin_layout Plain Layout
10703 InTitle
10704 \end_layout
10705
10706 \end_inset
10707
10708  [
10709 \emph on
10710
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 0
10716 \end_layout
10717
10718 \end_inset
10719
10720
10721 \emph default
10722 ,
10723 \begin_inset space \thinspace{}
10724 \end_inset
10725
10726
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 1
10732 \end_layout
10733
10734 \end_inset
10735
10736
10737 \begin_inset Flex Code
10738 status collapsed
10739
10740 \begin_layout Plain Layout
10741 1
10742 \end_layout
10743
10744 \end_inset
10745
10746 の場合,このレイアウトをタイトルブロックの一部としてマークします(大域項目の
10747 \begin_inset Flex Code
10748 status collapsed
10749
10750 \begin_layout Plain Layout
10751 TitleLatexType
10752 \end_layout
10753
10754 \end_inset
10755
10756
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 TitleLatexName
10762 \end_layout
10763
10764 \end_inset
10765
10766 も参照).
10767 \end_layout
10768
10769 \begin_layout Description
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 ItemCommand
10775 \end_layout
10776
10777 \end_inset
10778
10779  [
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 文字列="item"
10785 \end_layout
10786
10787 \end_inset
10788
10789 ] 箇条書きの項目を宣言する\SpecialChar LaTeX
10790 コマンド.コマンドは,前置されるバックスラッシュを除いた部分で定義されます(既定値は「item」です.これは,\SpecialChar LaTeX
10791 出力中では
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796
10797 \backslash
10798 item
10799 \end_layout
10800
10801 \end_inset
10802
10803 となります).
10804 \end_layout
10805
10806 \begin_layout Description
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 ItemSep
10812 \end_layout
10813
10814 \end_inset
10815
10816  [
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 浮動小数点型=0
10822 \end_layout
10823
10824 \end_inset
10825
10826 ] これは,同じレイアウトを持つ段落群の間に追加する空白を与えるものです.複数のレイアウトを一つの環境に入れると,それぞれのレイアウトは,その環境の
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831 ParSep
10832 \end_layout
10833
10834 \end_inset
10835
10836 だけ分離されます.しかし,その環境の項目全体は,さらにこの
10837 \begin_inset Flex Code
10838 status collapsed
10839
10840 \begin_layout Plain Layout
10841 ItemSep
10842 \end_layout
10843
10844 \end_inset
10845
10846 分だけ離されます.これは
10847 \emph on
10848 乗数
10849 \emph default
10850 であることに注意してください.
10851 \end_layout
10852
10853 \begin_layout Description
10854 \begin_inset Flex Code
10855 status collapsed
10856
10857 \begin_layout Plain Layout
10858 ItemTag
10859 \end_layout
10860
10861 \end_inset
10862
10863  [[FIXME]] (XML型書式でのみ使用されます.)
10864 \end_layout
10865
10866 \begin_layout Description
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 KeepEmpty
10872 \end_layout
10873
10874 \end_inset
10875
10876  [
10877 \emph on
10878
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 0
10884 \end_layout
10885
10886 \end_inset
10887
10888
10889 \emph default
10890 ,
10891 \begin_inset space \thinspace{}
10892 \end_inset
10893
10894
10895 \begin_inset Flex Code
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899 1
10900 \end_layout
10901
10902 \end_inset
10903
10904 ] 段落を空のままにすると,\SpecialChar LaTeX
10905 出力が空になってしまうので,通常,\SpecialChar LyX
10906 は段落を空にすることを許可しません.しかしながら,これを無効にすることが望ましい場合が存在します.
10907 たとえば,書簡のひな型では,必須フィールドを人々が忘れないように,空のフィールドのまま提供する手もあります.特別なクラスにおいては,レイアウトを実際には文章を含
10908 まないある種の改行として使用することもあります.
10909 \end_layout
10910
10911 \begin_layout Description
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 LabelBottomsep
10917 \end_layout
10918
10919 \end_inset
10920
10921  [
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 浮動小数点型=0
10927 \end_layout
10928
10929 \end_inset
10930
10931 ] ラベルと本文テキストとの間の垂直余白.本文テキストの上に来るラベルにのみ使用されます(
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 Top_Environment
10937 \end_layout
10938
10939 \end_inset
10940
10941 および
10942 \begin_inset Newline linebreak
10943 \end_inset
10944
10945
10946 \begin_inset Flex Code
10947 status collapsed
10948
10949 \begin_layout Plain Layout
10950 Centered_Top_Environment
10951 \end_layout
10952
10953 \end_inset
10954
10955 ).
10956 \end_layout
10957
10958 \begin_layout Description
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963 LabelCounter
10964 \end_layout
10965
10966 \end_inset
10967
10968  [
10969 \begin_inset Flex Code
10970 status collapsed
10971
10972 \begin_layout Plain Layout
10973 文字列=""
10974 \end_layout
10975
10976 \end_inset
10977
10978 ] 自動連番に使われるカウンタ名(詳しくは第
10979 \begin_inset CommandInset ref
10980 LatexCommand ref
10981 reference "subsec:カウンタ"
10982
10983 \end_inset
10984
10985 節参照).カウンタがラベル中に表示されるようにするためには,
10986 \begin_inset Flex Code
10987 status collapsed
10988
10989 \begin_layout Plain Layout
10990 LabelString
10991 \end_layout
10992
10993 \end_inset
10994
10995 中で参照する必要があります.これは,少なくとも
10996 \begin_inset Flex Code
10997 status collapsed
10998
10999 \begin_layout Plain Layout
11000 Static
11001 \end_layout
11002
11003 \end_inset
11004
11005
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 Above
11011 \end_layout
11012
11013 \end_inset
11014
11015
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 Centered
11021 \end_layout
11022
11023 \end_inset
11024
11025 の各
11026 \begin_inset Flex Code
11027 status collapsed
11028
11029 \begin_layout Plain Layout
11030 LabelType
11031 \end_layout
11032
11033 \end_inset
11034
11035 で動作します.
11036 \begin_inset Newline newline
11037 \end_inset
11038
11039 また,
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 LabelType
11045 \end_layout
11046
11047 \end_inset
11048
11049
11050 \begin_inset Flex Code
11051 status collapsed
11052
11053 \begin_layout Plain Layout
11054 Enumerate
11055 \end_layout
11056
11057 \end_inset
11058
11059 型のときにも,若干複雑にはなりますが,本項目を使うことができます.たとえば,「
11060 \begin_inset Flex Code
11061 status collapsed
11062
11063 \begin_layout Plain Layout
11064 LabelCounter myenum
11065 \end_layout
11066
11067 \end_inset
11068
11069 」と宣言したものとしましょう.すると,\SpecialChar LaTeX
11070 におけるのと同様,実際に使われるカウンタは,
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 myenumi
11076 \end_layout
11077
11078 \end_inset
11079
11080
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 myenumii
11086 \end_layout
11087
11088 \end_inset
11089
11090
11091 \begin_inset Flex Code
11092 status collapsed
11093
11094 \begin_layout Plain Layout
11095 myenumii
11096 \end_layout
11097
11098 \end_inset
11099
11100
11101 \begin_inset Flex Code
11102 status collapsed
11103
11104 \begin_layout Plain Layout
11105 myenumiv
11106 \end_layout
11107
11108 \end_inset
11109
11110 のようになります.これらのカウンタは,全て別々に宣言されなくてはなりません.
11111 \begin_inset Newline newline
11112 \end_inset
11113
11114 カウンタの詳細については,
11115 \begin_inset CommandInset ref
11116 LatexCommand ref
11117 reference "subsec:カウンタ"
11118
11119 \end_inset
11120
11121 をご覧ください.
11122 \end_layout
11123
11124 \begin_layout Description
11125 \begin_inset Flex Code
11126 status collapsed
11127
11128 \begin_layout Plain Layout
11129 LabelFont
11130 \end_layout
11131
11132 \end_inset
11133
11134  ラベルに使用されるフォント.
11135 \begin_inset CommandInset ref
11136 LatexCommand ref
11137 reference "subsec:フォント指定"
11138
11139 \end_inset
11140
11141 を参照.
11142 \end_layout
11143
11144 \begin_layout Description
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 LabelIndent
11150 \end_layout
11151
11152 \end_inset
11153
11154  [
11155 \begin_inset Flex Code
11156 status collapsed
11157
11158 \begin_layout Plain Layout
11159 文字列=""
11160 \end_layout
11161
11162 \end_inset
11163
11164 ] ラベルをどれくらい行頭下げすべきかを示す文字列.
11165 \end_layout
11166
11167 \begin_layout Description
11168 \begin_inset Flex Code
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172 LabelSep
11173 \end_layout
11174
11175 \end_inset
11176
11177  [
11178 \begin_inset Flex Code
11179 status collapsed
11180
11181 \begin_layout Plain Layout
11182 文字列=""
11183 \end_layout
11184
11185 \end_inset
11186
11187 ] ラベルと本文テキストの間の水平余白の大きさを表す文字列.本文テキストの上に来ないラベルにのみ使用されます.
11188 \end_layout
11189
11190 \begin_layout Description
11191 \begin_inset Flex Code
11192 status collapsed
11193
11194 \begin_layout Plain Layout
11195 LabelString
11196 \end_layout
11197
11198 \end_inset
11199
11200  [
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 文字列=""
11206 \end_layout
11207
11208 \end_inset
11209
11210
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 Static
11216 \end_layout
11217
11218 \end_inset
11219
11220 ラベル型でラベルに使用する文字列.
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225 LabelCounter
11226 \end_layout
11227
11228 \end_inset
11229
11230 を設定している場合,
11231 \begin_inset CommandInset ref
11232 LatexCommand ref
11233 reference "subsec:カウンタ"
11234
11235 \end_inset
11236
11237 に述べられている特別な整形コマンドを含めることができます.
11238 \end_layout
11239
11240 \begin_layout Description
11241 \begin_inset Flex Code
11242 status collapsed
11243
11244 \begin_layout Plain Layout
11245 LabelStringAppendix
11246 \end_layout
11247
11248 \end_inset
11249
11250  [
11251 \begin_inset Flex Code
11252 status collapsed
11253
11254 \begin_layout Plain Layout
11255 文字列=""
11256 \end_layout
11257
11258 \end_inset
11259
11260 ] これは付録の中で
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 LabelString
11266 \end_layout
11267
11268 \end_inset
11269
11270 の代わりに用いられます.各
11271 \begin_inset Flex Code
11272 status collapsed
11273
11274 \begin_layout Plain Layout
11275 LabelString
11276 \end_layout
11277
11278 \end_inset
11279
11280 ステートメントは,
11281 \begin_inset Flex Code
11282 status collapsed
11283
11284 \begin_layout Plain Layout
11285 LabelStringAppendix
11286 \end_layout
11287
11288 \end_inset
11289
11290 をもリセットすることに注意してください.
11291 \end_layout
11292
11293 \begin_layout Description
11294 \begin_inset Flex Code
11295 status collapsed
11296
11297 \begin_layout Plain Layout
11298 LabelTag
11299 \end_layout
11300
11301 \end_inset
11302
11303  [FIXME] (XML型書式でのみ使用されます.)
11304 \end_layout
11305
11306 \begin_layout Description
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 LabelType
11312 \end_layout
11313
11314 \end_inset
11315
11316  [
11317 \begin_inset Flex Code
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321
11322 \emph on
11323 No_Label
11324 \emph default
11325 , Manual, Static, Above,
11326 \begin_inset Newline newline
11327 \end_inset
11328
11329 Centered, Sensitive, Enumerate,
11330 \begin_inset Newline newline
11331 \end_inset
11332
11333 Itemize, Bibliography
11334 \end_layout
11335
11336 \end_inset
11337
11338 ]
11339 \end_layout
11340
11341 \begin_deeper
11342 \begin_layout Description
11343 \begin_inset Flex Code
11344 status collapsed
11345
11346 \begin_layout Plain Layout
11347 Manual
11348 \end_layout
11349
11350 \end_inset
11351
11352  は,ラベルが最初の単語(最初の本当の空白まで)であることを示します.ラベルに2単語以上使用したいときは,保護された空白を使用してください.
11353 \end_layout
11354
11355 \begin_layout Description
11356 \begin_inset Flex Code
11357 status collapsed
11358
11359 \begin_layout Plain Layout
11360 Static
11361 \end_layout
11362
11363 \end_inset
11364
11365  は,ラベルが
11366 \begin_inset Flex Code
11367 status collapsed
11368
11369 \begin_layout Plain Layout
11370 LabelString
11371 \end_layout
11372
11373 \end_inset
11374
11375 で宣言したものであることを示します.これは段落冒頭の「行中」に表示されます.
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 LatexType
11381 \end_layout
11382
11383 \end_inset
11384
11385
11386 \begin_inset Flex Code
11387 status collapsed
11388
11389 \begin_layout Plain Layout
11390 Environment
11391 \end_layout
11392
11393 \end_inset
11394
11395 のときは,連続する同じ
11396 \begin_inset Flex Code
11397 status collapsed
11398
11399 \begin_layout Plain Layout
11400 Style
11401 \end_layout
11402
11403 \end_inset
11404
11405 の段落中,最初の段落にのみ表示されます.
11406 \end_layout
11407
11408 \begin_layout Description
11409 \begin_inset Flex Code
11410 status collapsed
11411
11412 \begin_layout Plain Layout
11413 Above
11414 \end_layout
11415
11416 \end_inset
11417
11418 および
11419 \begin_inset Flex Code
11420 status collapsed
11421
11422 \begin_layout Plain Layout
11423 Centered
11424 \end_layout
11425
11426 \end_inset
11427
11428  は,
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 Static
11434 \end_layout
11435
11436 \end_inset
11437
11438 の特別な場合です.ラベルは段落の上部に行頭か中央揃えで印字されます.
11439 \end_layout
11440
11441 \begin_layout Description
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446 Sensitive
11447 \end_layout
11448
11449 \end_inset
11450
11451  はキャプションラベルの「図」や「表」の特別な場合です.
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 Sensitive
11457 \end_layout
11458
11459 \end_inset
11460
11461 は,(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します.これは,フロートに関連付けられたカウンタの値がNであるものとすると,「Float
11462 Type N」にハードコードされています.キャプションがフロートの外に挿入されると,
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 LabelString
11468 \end_layout
11469
11470 \end_inset
11471
11472 は「意味を成しません!」と表示されます.
11473 \end_layout
11474
11475 \begin_layout Description
11476 \begin_inset Flex Code
11477 status collapsed
11478
11479 \begin_layout Plain Layout
11480 Enumerate
11481 \end_layout
11482
11483 \end_inset
11484
11485  は,通常の連番ラベルを生成します.現在のところ,これは,第4階層まで順に,アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされていま
11486 す.
11487 \end_layout
11488
11489 \begin_layout Description
11490 \begin_inset Flex Code
11491 status collapsed
11492
11493 \begin_layout Plain Layout
11494 Itemize
11495 \end_layout
11496
11497 \end_inset
11498
11499  は,各階層でさまざまなブリットを生成します.これもハードコードされています.
11500 \end_layout
11501
11502 \begin_layout Description
11503 \begin_inset Flex Code
11504 status collapsed
11505
11506 \begin_layout Plain Layout
11507 Bibliography
11508 \end_layout
11509
11510 \end_inset
11511
11512  は,
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 LatexType BibEnvironment
11518 \end_layout
11519
11520 \end_inset
11521
11522 とともにのみ使用されます.
11523 \end_layout
11524
11525 \end_deeper
11526 \begin_layout Description
11527 \begin_inset Flex Code
11528 status collapsed
11529
11530 \begin_layout Plain Layout
11531 LangPreamble
11532 \end_layout
11533
11534 \end_inset
11535
11536  これは,この様式で既に出現した
11537 \begin_inset Flex Code
11538 status collapsed
11539
11540 \begin_layout Plain Layout
11541 LangPreamble
11542 \end_layout
11543
11544 \end_inset
11545
11546 宣言をすべて,完全に上書きしますので,注意してください.使用法についての詳細は,
11547 \begin_inset CommandInset ref
11548 LatexCommand ref
11549 reference "subsec:段落様式の国際化"
11550
11551 \end_inset
11552
11553 をご覧ください.
11554 \end_layout
11555
11556 \begin_layout Description
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561 LatexName
11562 \end_layout
11563
11564 \end_inset
11565
11566  [
11567 \begin_inset Flex Code
11568 status collapsed
11569
11570 \begin_layout Plain Layout
11571 <名称>
11572 \end_layout
11573
11574 \end_inset
11575
11576 ] 対応する\SpecialChar LaTeX
11577 の名称です.環境名かコマンド名を指します.
11578 \end_layout
11579
11580 \begin_layout Description
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 LatexParam
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 \end_layout
11597
11598 \end_inset
11599
11600 ] 対応する
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 LatexName
11606 \end_layout
11607
11608 \end_inset
11609
11610 の非必須パラメータです.このパラメータは,\SpecialChar LyX
11611 内部から変更することはできません(変更可能なパラメータには
11612 \begin_inset Flex Code
11613 status collapsed
11614
11615 \begin_layout Plain Layout
11616 Argument
11617 \end_layout
11618
11619 \end_inset
11620
11621 を使用してください).これは,全ての\SpecialChar LaTeX
11622  
11623 \begin_inset Flex Code
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 Argument
11628 \end_layout
11629
11630 \end_inset
11631
11632 の後にそのままの形で出力されます.
11633 \end_layout
11634
11635 \begin_layout Description
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640 LatexType
11641 \end_layout
11642
11643 \end_inset
11644
11645  [
11646 \begin_inset Flex Code
11647 status collapsed
11648
11649 \begin_layout Plain Layout
11650
11651 \emph on
11652 Paragraph
11653 \emph default
11654 , Command, Environment, Item_Environment,
11655 \begin_inset Newline newline
11656 \end_inset
11657
11658 List_Environment, Bib_Environment
11659 \end_layout
11660
11661 \end_inset
11662
11663 ] レイアウトがどのように\SpecialChar LaTeX
11664 に変換されるべきかを示します
11665 \begin_inset Foot
11666 status collapsed
11667
11668 \begin_layout Plain Layout
11669 これらのルールはSGMLクラスにも適用されるので,
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 LatexType
11675 \end_layout
11676
11677 \end_inset
11678
11679 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイル(ファイル名
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684 db_*.inc
11685 \end_layout
11686
11687 \end_inset
11688
11689 )を見てください.
11690 \end_layout
11691
11692 \end_inset
11693
11694
11695 \end_layout
11696
11697 \begin_deeper
11698 \begin_layout Description
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 Paragraph
11704 \end_layout
11705
11706 \end_inset
11707
11708  は,何も特別なことは意味しません.
11709 \end_layout
11710
11711 \begin_layout Description
11712 \begin_inset Flex Code
11713 status collapsed
11714
11715 \begin_layout Plain Layout
11716 Command
11717 \end_layout
11718
11719 \end_inset
11720
11721  は,
11722 \begin_inset Flex Code
11723 status collapsed
11724
11725 \begin_layout Plain Layout
11726
11727 \backslash
11728
11729 \emph on
11730 LatexName
11731 \emph default
11732 {\SpecialChar ldots
11733 }
11734 \end_layout
11735
11736 \end_inset
11737
11738 を意味します.
11739 \end_layout
11740
11741 \begin_layout Description
11742 \begin_inset Flex Code
11743 status collapsed
11744
11745 \begin_layout Plain Layout
11746 Environment
11747 \end_layout
11748
11749 \end_inset
11750
11751  は,
11752 \begin_inset Flex Code
11753 status collapsed
11754
11755 \begin_layout Plain Layout
11756
11757 \backslash
11758 begin{
11759 \emph on
11760 LatexName
11761 \emph default
11762 }\SpecialChar ldots
11763
11764 \backslash
11765 end{
11766 \emph on
11767 LatexName
11768 \emph default
11769 }
11770 \end_layout
11771
11772 \end_inset
11773
11774 を意味します.
11775 \end_layout
11776
11777 \begin_layout Description
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782 Item_Environment
11783 \end_layout
11784
11785 \end_inset
11786
11787  は
11788 \begin_inset Flex Code
11789 status collapsed
11790
11791 \begin_layout Plain Layout
11792 Environment
11793 \end_layout
11794
11795 \end_inset
11796
11797 と同じですが,
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802
11803 \backslash
11804 item
11805 \end_layout
11806
11807 \end_inset
11808
11809 がこの環境のすべての段落に付けられるところだけが異なっています.
11810 \end_layout
11811
11812 \begin_layout Description
11813 \begin_inset Flex Code
11814 status collapsed
11815
11816 \begin_layout Plain Layout
11817 List_Environment
11818 \end_layout
11819
11820 \end_inset
11821
11822  は
11823 \begin_inset Flex Code
11824 status collapsed
11825
11826 \begin_layout Plain Layout
11827 Item_Environment
11828 \end_layout
11829
11830 \end_inset
11831
11832 と同じですが,
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837 LabelWidthString
11838 \end_layout
11839
11840 \end_inset
11841
11842 が環境の引数として渡されるところだけが異なっています.
11843 \begin_inset Flex Code
11844 status collapsed
11845
11846 \begin_layout Plain Layout
11847 LabelWidthString
11848 \end_layout
11849
11850 \end_inset
11851
11852 は,
11853 \begin_inset Flex MenuItem
11854 status collapsed
11855
11856 \begin_layout Plain Layout
11857 編集\SpecialChar menuseparator
11858 段落設定
11859 \end_layout
11860
11861 \end_inset
11862
11863 ダイアログで定義することができます.
11864 \end_layout
11865
11866 \begin_layout Description
11867 \begin_inset Flex Code
11868 status collapsed
11869
11870 \begin_layout Plain Layout
11871 Bib_Environment
11872 \end_layout
11873
11874 \end_inset
11875
11876  は
11877 \begin_inset Flex Code
11878 status collapsed
11879
11880 \begin_layout Plain Layout
11881 Environment
11882 \end_layout
11883
11884 \end_inset
11885
11886 に似ていますが,以下のように,書誌情報環境のbeginステートメントに必須引数(最長ラベル)を追記します.
11887 \begin_inset Newline newline
11888 \end_inset
11889
11890
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895
11896 \backslash
11897 begin{thebibliography}{99}
11898 \end_layout
11899
11900 \end_inset
11901
11902
11903 \begin_inset Newline newline
11904 \end_inset
11905
11906 したがって,これは書誌情報環境にのみ有用です.既定の最長ラベル「99」は,書誌情報項目の段落設定で,ユーザーが変更することができます.
11907 \end_layout
11908
11909 \begin_layout Standard
11910 上記最後のいくつかをまとめると,\SpecialChar LaTeX
11911 出力は,\SpecialChar LaTeX
11912 型に依存して
11913 \end_layout
11914
11915 \begin_layout LyX-Code
11916
11917 \backslash
11918 LatexName[LatexParam]{\SpecialChar ldots
11919 }
11920 \end_layout
11921
11922 \begin_layout Standard
11923 のようになるか,
11924 \end_layout
11925
11926 \begin_layout LyX-Code
11927
11928 \backslash
11929 begin{LatexName}[LatexParam] \SpecialChar ldots
11930  
11931 \backslash
11932 end{LatexName}.
11933 \end_layout
11934
11935 \begin_layout Standard
11936 となります.
11937 \end_layout
11938
11939 \end_deeper
11940 \begin_layout Description
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 LeftDelim
11946 \end_layout
11947
11948 \end_inset
11949
11950  [
11951 \begin_inset Flex Code
11952 status collapsed
11953
11954 \begin_layout Plain Layout
11955 文字列
11956 \end_layout
11957
11958 \end_inset
11959
11960 ] 様式の内容の最初に置かれる文字列.出力中の改行は
11961 \begin_inset Flex Code
11962 status collapsed
11963
11964 \begin_layout Plain Layout
11965 <br/>
11966 \end_layout
11967
11968 \end_inset
11969
11970 で指示できます.
11971 \end_layout
11972
11973 \begin_layout Description
11974 \begin_inset Flex Code
11975 status collapsed
11976
11977 \begin_layout Plain Layout
11978 LeftMargin
11979 \end_layout
11980
11981 \end_inset
11982
11983  [
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988 文字列=""
11989 \end_layout
11990
11991 \end_inset
11992
11993 ] レイアウトを環境の中に入れた場合,左余白は単純に加えられるのではなく,因子
11994 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
11995 \end_inset
11996
11997 をかけて加えられます.このパラメータは,
11998 \begin_inset Flex Code
11999 status collapsed
12000
12001 \begin_layout Plain Layout
12002 Margin
12003 \end_layout
12004
12005 \end_inset
12006
12007
12008 \begin_inset Flex Code
12009 status collapsed
12010
12011 \begin_layout Plain Layout
12012 Manual
12013 \end_layout
12014
12015 \end_inset
12016
12017 あるいは
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022 Dynamic
12023 \end_layout
12024
12025 \end_inset
12026
12027 に設定されているときにも用いられることに注意してください.その場合には,これは手動設定余白または動的設定余白に加えられることに注意してください.
12028 \begin_inset Newline newline
12029 \end_inset
12030
12031 たとえば「
12032 \begin_inset Flex Code
12033 status collapsed
12034
12035 \begin_layout Plain Layout
12036 MM
12037 \end_layout
12038
12039 \end_inset
12040
12041 」と指定すると,段落を通常フォントの「
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 MM
12047 \end_layout
12048
12049 \end_inset
12050
12051 」の幅だけ行頭下げを行います.文字列の前に「
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 -
12057 \end_layout
12058
12059 \end_inset
12060
12061 」を付けると,負の幅を与えることができます.この方法が採用されたのは,どの画面フォントでも見かけが同じになるようにするためです.
12062 \end_layout
12063
12064 \begin_layout Description
12065 \begin_inset Flex Code
12066 status collapsed
12067
12068 \begin_layout Plain Layout
12069 Margin
12070 \end_layout
12071
12072 \end_inset
12073
12074  [
12075 \begin_inset Flex Code
12076 status collapsed
12077
12078 \begin_layout Plain Layout
12079
12080 \emph on
12081 Static
12082 \emph default
12083 , Manual, Dynamic, First_Dynamic, Right_Address_Box
12084 \end_layout
12085
12086 \end_inset
12087
12088
12089 \begin_inset Newline newline
12090 \end_inset
12091
12092 このレイアウトの左余白の種類です.
12093 \end_layout
12094
12095 \begin_deeper
12096 \begin_layout Description
12097 \begin_inset Flex Code
12098 status collapsed
12099
12100 \begin_layout Plain Layout
12101 Static
12102 \end_layout
12103
12104 \end_inset
12105
12106  は固定余白を示します.
12107 \end_layout
12108
12109 \begin_layout Description
12110 \begin_inset Flex Code
12111 status collapsed
12112
12113 \begin_layout Plain Layout
12114 Manual
12115 \end_layout
12116
12117 \end_inset
12118
12119  は,左余白が
12120 \begin_inset Flex MenuItem
12121 status collapsed
12122
12123 \begin_layout Plain Layout
12124 編集\SpecialChar menuseparator
12125 段落設定
12126 \end_layout
12127
12128 \end_inset
12129
12130 ダイアログで入力した文字列によって決められることを示します.これは,タブを用いずに整った一覧表を組むのに使用されます.
12131 \end_layout
12132
12133 \begin_layout Description
12134 \begin_inset Flex Code
12135 status collapsed
12136
12137 \begin_layout Plain Layout
12138 Dynamic
12139 \end_layout
12140
12141 \end_inset
12142
12143  は,余白がラベルの大きさに依存することを示します.これは,自動連番の見出しに使用されます.「5.4.3.2.1 非常に長い見出し」という見出し行が,「3.2
12144  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが).
12145 \end_layout
12146
12147 \begin_layout Description
12148 \begin_inset Flex Code
12149 status collapsed
12150
12151 \begin_layout Plain Layout
12152 First_Dynamic
12153 \end_layout
12154
12155 \end_inset
12156
12157  は似ていますが,段落の最初の行だけがDynamicでその他の行はStaticです.これは,たとえば,箇条書き(記述)に使用されます.
12158 \end_layout
12159
12160 \begin_layout Description
12161 \begin_inset Flex Code
12162 status collapsed
12163
12164 \begin_layout Plain Layout
12165 Right_Address_Box
12166 \end_layout
12167
12168 \end_inset
12169
12170  は,段落中,最も長い行が右余白に合うように余白を選択します.これは,ページの右端に住所を組版するのに用いられます.
12171 \end_layout
12172
12173 \end_deeper
12174 \begin_layout Description
12175 \begin_inset Flex Code
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179 NeedProtect
12180 \end_layout
12181
12182 \end_inset
12183
12184  [
12185 \begin_inset Flex Code
12186 status collapsed
12187
12188 \begin_layout Plain Layout
12189
12190 \emph on
12191 0
12192 \end_layout
12193
12194 \end_inset
12195
12196 ,
12197 \begin_inset space \thinspace{}
12198 \end_inset
12199
12200
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 1
12206 \end_layout
12207
12208 \end_inset
12209
12210 ] このレイアウト中の脆弱なコマンドが
12211 \begin_inset Flex Code
12212 status collapsed
12213
12214 \begin_layout Plain Layout
12215
12216 \backslash
12217 protect
12218 \end_layout
12219
12220 \end_inset
12221
12222 されるべきか否か(註:これはこのコマンド自体が
12223 \begin_inset Flex Code
12224 status collapsed
12225
12226 \begin_layout Plain Layout
12227
12228 \backslash
12229 protect
12230 \end_layout
12231
12232 \end_inset
12233
12234 されるべきかでは
12235 \emph on
12236 ありません
12237 \emph default
12238 ).
12239 \end_layout
12240
12241 \begin_layout Description
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 Newline
12247 \end_layout
12248
12249 \end_inset
12250
12251  [
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 0
12257 \end_layout
12258
12259 \end_inset
12260
12261 ,
12262 \begin_inset space \thinspace{}
12263 \end_inset
12264
12265
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270
12271 \emph on
12272 1
12273 \end_layout
12274
12275 \end_inset
12276
12277 ] 新規行を\SpecialChar LaTeX
12278 の新規行(
12279 \begin_inset Flex Code
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283
12284 \backslash
12285
12286 \backslash
12287
12288 \end_layout
12289
12290 \end_inset
12291
12292 )に変換するか否か.\SpecialChar LyX
12293 中で\SpecialChar LaTeX
12294 編集をやりやすくするために,変換は無効にすることができます.
12295 \end_layout
12296
12297 \begin_layout Description
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 NextNoIndent
12303 \end_layout
12304
12305 \end_inset
12306
12307  [
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312
12313 \emph on
12314 0
12315 \end_layout
12316
12317 \end_inset
12318
12319 ,
12320 \begin_inset space \thinspace{}
12321 \end_inset
12322
12323
12324 \begin_inset Flex Code
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328 1
12329 \end_layout
12330
12331 \end_inset
12332
12333 ] 真に設定すると,
12334 \begin_inset Flex Code
12335 status collapsed
12336
12337 \begin_layout Plain Layout
12338 DefaultStyle
12339 \end_layout
12340
12341 \end_inset
12342
12343  (通常
12344 \begin_inset Flex Code
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 Standard
12349 \end_layout
12350
12351 \end_inset
12352
12353 )段落が行頭下げになっている場合でも,この型の段落に続くそれらの段落は,字下げされません(逆に言えば,既定でない段落には影響を与えません).
12354 \end_layout
12355
12356 \begin_layout Description
12357 \begin_inset Flex Code
12358 status collapsed
12359
12360 \begin_layout Plain Layout
12361 ObsoletedBy
12362 \end_layout
12363
12364 \end_inset
12365
12366  [
12367 \begin_inset Flex Code
12368 status collapsed
12369
12370 \begin_layout Plain Layout
12371 <名称>
12372 \end_layout
12373
12374 \end_inset
12375
12376 ] このレイアウトが置き換えられたレイアウト名.これは,後方互換性を維持しながら,レイアウトの名称を変更するのに使用されます.
12377 \end_layout
12378
12379 \begin_layout Description
12380 \begin_inset Flex Code
12381 status collapsed
12382
12383 \begin_layout Plain Layout
12384 ParagraphGroup
12385 \end_layout
12386
12387 \end_inset
12388
12389  [
12390 \begin_inset Flex Code
12391 status collapsed
12392
12393 \begin_layout Plain Layout
12394 0
12395 \end_layout
12396
12397 \end_inset
12398
12399 ,
12400 \begin_inset space \thinspace{}
12401 \end_inset
12402
12403
12404 \begin_inset Flex Code
12405 status collapsed
12406
12407 \begin_layout Plain Layout
12408 1
12409 \end_layout
12410
12411 \end_inset
12412
12413 ] 同じ型の段落が引き続く場合,同じ段落として取り扱うか否かを決定します.これは,そのような連続グループに対して,
12414 \begin_inset Flex Code
12415 status collapsed
12416
12417 \begin_layout Plain Layout
12418 GuiLabel
12419 \end_layout
12420
12421 \end_inset
12422
12423 が一度だけ出力される効果があります.既定では,
12424 \begin_inset Flex Code
12425 status collapsed
12426
12427 \begin_layout Plain Layout
12428 LaTeXType
12429 \end_layout
12430
12431 \end_inset
12432
12433
12434 \begin_inset Flex Code
12435 status collapsed
12436
12437 \begin_layout Plain Layout
12438 Environment
12439 \end_layout
12440
12441 \end_inset
12442
12443 および
12444 \begin_inset Flex Code
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448 Bib_Environment
12449 \end_layout
12450
12451 \end_inset
12452
12453  については有効であり,他の型すべてについて無効になっています.
12454 \end_layout
12455
12456 \begin_layout Description
12457 \begin_inset Flex Code
12458 status collapsed
12459
12460 \begin_layout Plain Layout
12461 ParbreakIsNewline
12462 \end_layout
12463
12464 \end_inset
12465
12466  [
12467 \begin_inset Flex Code
12468 status collapsed
12469
12470 \begin_layout Plain Layout
12471
12472 \emph on
12473 0
12474 \end_layout
12475
12476 \end_inset
12477
12478 ,
12479 \begin_inset space \thinspace{}
12480 \end_inset
12481
12482
12483 \begin_inset Flex Code
12484 status collapsed
12485
12486 \begin_layout Plain Layout
12487 1
12488 \end_layout
12489
12490 \end_inset
12491
12492 ] \SpecialChar LaTeX
12493 出力中で,段落を空行ではなく,改行で区切るよう指定します.
12494 \begin_inset Flex Code
12495 status collapsed
12496
12497 \begin_layout Plain Layout
12498 PassThru 1
12499 \end_layout
12500
12501 \end_inset
12502
12503 と併用すれば,(\SpecialChar TeX
12504 コードを使用したときのように)テキストエディタをエミュレートすることができます.
12505 \end_layout
12506
12507 \begin_layout Description
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 ParIndent
12513 \end_layout
12514
12515 \end_inset
12516
12517  [
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 文字列=""
12523 \end_layout
12524
12525 \end_inset
12526
12527 ] 段落の最初の行の行頭下げ.レイアウトによっては
12528 \begin_inset Flex Code
12529 status collapsed
12530
12531 \begin_layout Plain Layout
12532 Parindent
12533 \end_layout
12534
12535 \end_inset
12536
12537 は固定されています.例外には標準レイアウトがあり,標準レイアウトの段落の行頭下げは,
12538 \begin_inset Flex Code
12539 status collapsed
12540
12541 \begin_layout Plain Layout
12542 NextNoIndent
12543 \end_layout
12544
12545 \end_inset
12546
12547 で禁止することができるようになっています.また,環境中の標準レイアウト段落は,当該段落の
12548 \begin_inset Flex Code
12549 status collapsed
12550
12551 \begin_layout Plain Layout
12552 Parindent
12553 \end_layout
12554
12555 \end_inset
12556
12557 ではなく,この環境の
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 Parindent
12563 \end_layout
12564
12565 \end_inset
12566
12567 を使用します.たとえば,箇条書き(連番)内の標準段落は,行頭下げされません.
12568 \end_layout
12569
12570 \begin_layout Description
12571 \begin_inset Flex Code
12572 status collapsed
12573
12574 \begin_layout Plain Layout
12575 ParSep
12576 \end_layout
12577
12578 \end_inset
12579
12580  [
12581 \begin_inset Flex Code
12582 status collapsed
12583
12584 \begin_layout Plain Layout
12585 浮動小数点型=0
12586 \end_layout
12587
12588 \end_inset
12589
12590 ] このレイアウトの2段落間の垂直余白.
12591 \end_layout
12592
12593 \begin_layout Description
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 Parskip
12599 \end_layout
12600
12601 \end_inset
12602
12603  [
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 浮動小数点型=0
12609 \end_layout
12610
12611 \end_inset
12612
12613 ] \SpecialChar LyX
12614 では,文書を組版するのに,ユーザが「行頭下げ」か「スキップ」を選ぶことができます.「行頭下げ」を選択した際には,この値は完全に無視されます.「スキップ」を選
12615 択した際には,\SpecialChar LaTeX
12616 型「段落」レイアウトの
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 ParIndent
12622 \end_layout
12623
12624 \end_inset
12625
12626 は無視され,すべての段落はこの
12627 \begin_inset Flex Code
12628 status collapsed
12629
12630 \begin_layout Plain Layout
12631 Parskip
12632 \end_layout
12633
12634 \end_inset
12635
12636 引数分だけ引き離されます.垂直余白は,
12637 \begin_inset Flex Code
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641 DefaultHeight
12642 \end_layout
12643
12644 \end_inset
12645
12646 を標準フォントでの1行の高さとすると,
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 Parskipの値
12652 \end_layout
12653
12654 \end_inset
12655
12656
12657 \begin_inset Formula $\times$
12658 \end_inset
12659
12660
12661 \begin_inset Flex Code
12662 status collapsed
12663
12664 \begin_layout Plain Layout
12665 DefaultHeight
12666 \end_layout
12667
12668 \end_inset
12669
12670 によって計算されます.このようにして,画面フォントを変更しても同じように表示されるのです.
12671 \end_layout
12672
12673 \begin_layout Description
12674 \begin_inset Flex Code
12675 status collapsed
12676
12677 \begin_layout Plain Layout
12678 PassThru
12679 \end_layout
12680
12681 \end_inset
12682
12683  [
12684 \emph on
12685
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 0
12691 \end_layout
12692
12693 \end_inset
12694
12695
12696 \emph default
12697 ,
12698 \begin_inset space \thinspace{}
12699 \end_inset
12700
12701
12702 \begin_inset Flex Code
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706 1
12707 \end_layout
12708
12709 \end_inset
12710
12711 ] この段落の内容が,\SpecialChar LaTeX
12712 が必要とするような特別な変換を行わずに,生の形で出力されるべきかどうか.
12713 \end_layout
12714
12715 \begin_layout Description
12716 \begin_inset Flex Code
12717 status collapsed
12718
12719 \begin_layout Plain Layout
12720 PassThruChars
12721 \end_layout
12722
12723 \end_inset
12724
12725  [
12726 \begin_inset Flex Code
12727 status collapsed
12728
12729 \begin_layout Plain Layout
12730 文字列
12731 \end_layout
12732
12733 \end_inset
12734
12735 ]
12736 \family typewriter
12737  
12738 \family default
12739 \SpecialChar LaTeX
12740 が要請する特別な翻訳なしで.生の形で出力されるべき,それぞれの文字を定義します.
12741 \end_layout
12742
12743 \begin_layout Description
12744 \begin_inset Flex Code
12745 status collapsed
12746
12747 \begin_layout Plain Layout
12748 Preamble
12749 \end_layout
12750
12751 \end_inset
12752
12753  この様式が使用されたときに,\SpecialChar LaTeX
12754 プリアンブルに付け加えるべき情報.この特定の様式が要求するマクロを定義したり,パッケージを読み込んだりと言ったことに使用します.「
12755 \begin_inset Flex Code
12756 status collapsed
12757
12758 \begin_layout Plain Layout
12759 EndPreamble
12760 \end_layout
12761
12762 \end_inset
12763
12764 」で閉じる必要があります.
12765 \end_layout
12766
12767 \begin_layout Description
12768 \begin_inset Flex Code
12769 status collapsed
12770
12771 \begin_layout Plain Layout
12772 RefPrefix
12773 \end_layout
12774
12775 \end_inset
12776
12777  [
12778 \begin_inset Flex Code
12779 status collapsed
12780
12781 \begin_layout Plain Layout
12782 文字列
12783 \end_layout
12784
12785 \end_inset
12786
12787 ] この型の段落を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
12788 \end_layout
12789
12790 \begin_layout Description
12791 \begin_inset Flex Code
12792 status collapsed
12793
12794 \begin_layout Plain Layout
12795 Requires
12796 \end_layout
12797
12798 \end_inset
12799
12800  [
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805 文字列
12806 \end_layout
12807
12808 \end_inset
12809
12810 ] この様式が機能
12811 \begin_inset Flex Code
12812 status collapsed
12813
12814 \begin_layout Plain Layout
12815 文字列
12816 \end_layout
12817
12818 \end_inset
12819
12820 を必要とするかどうか(機能詳細については,第
12821 \begin_inset CommandInset ref
12822 LatexCommand ref
12823 reference "chap:関数一覧"
12824
12825 \end_inset
12826
12827 節参照).特定のオプションをとるパッケージを要求する場合,
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 PackageOptions
12833 \end_layout
12834
12835 \end_inset
12836
12837 を汎用テキストクラスパラメータとして追加して使うことができます(
12838 \begin_inset CommandInset ref
12839 LatexCommand ref
12840 reference "subsec:汎用テキストクラスパラメータ"
12841
12842 \end_inset
12843
12844 を参照).
12845 \end_layout
12846
12847 \begin_layout Description
12848 \begin_inset Flex Code
12849 status collapsed
12850
12851 \begin_layout Plain Layout
12852 ResetArgs
12853 \end_layout
12854
12855 \end_inset
12856
12857  [
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862
12863 \emph on
12864 0
12865 \end_layout
12866
12867 \end_inset
12868
12869 ,
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874 1
12875 \end_layout
12876
12877 \end_inset
12878
12879 ] (
12880 \begin_inset Flex Code
12881 status collapsed
12882
12883 \begin_layout Plain Layout
12884 Argument
12885 \end_layout
12886
12887 \end_inset
12888
12889 タグで定義された)この様式の\SpecialChar LaTeX
12890 引数をリセットします.これは,様式を
12891 \begin_inset Flex Code
12892 status collapsed
12893
12894 \begin_layout Plain Layout
12895 CopyStyle
12896 \end_layout
12897
12898 \end_inset
12899
12900 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
12901 \end_layout
12902
12903 \begin_layout Description
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 RightDelim
12909 \end_layout
12910
12911 \end_inset
12912
12913  [
12914 \begin_inset Flex Code
12915 status collapsed
12916
12917 \begin_layout Plain Layout
12918 文字列
12919 \end_layout
12920
12921 \end_inset
12922
12923 ] 様式の内容の最後に置かれる文字列.出力中の改行は
12924 \begin_inset Flex Code
12925 status collapsed
12926
12927 \begin_layout Plain Layout
12928 <br/>
12929 \end_layout
12930
12931 \end_inset
12932
12933 で指示できます.
12934 \end_layout
12935
12936 \begin_layout Description
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 RightMargin
12942 \end_layout
12943
12944 \end_inset
12945
12946  [
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951 文字列=""
12952 \end_layout
12953
12954 \end_inset
12955
12956
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961 LeftMargin
12962 \end_layout
12963
12964 \end_inset
12965
12966 に同様.
12967 \end_layout
12968
12969 \begin_layout Description
12970 \begin_inset Flex Code
12971 status collapsed
12972
12973 \begin_layout Plain Layout
12974 Spacing
12975 \end_layout
12976
12977 \end_inset
12978
12979  [
12980 \begin_inset Flex Code
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984
12985 \emph on
12986 single
12987 \end_layout
12988
12989 \end_inset
12990
12991
12992 \begin_inset Flex Code
12993 status collapsed
12994
12995 \begin_layout Plain Layout
12996 onehalf
12997 \end_layout
12998
12999 \end_inset
13000
13001
13002 \begin_inset Flex Code
13003 status collapsed
13004
13005 \begin_layout Plain Layout
13006 double
13007 \end_layout
13008
13009 \end_inset
13010
13011
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 other
13017 \begin_inset space ~
13018 \end_inset
13019
13020 <
13021 \emph on
13022
13023 \emph default
13024 >
13025 \end_layout
13026
13027 \end_inset
13028
13029 ]
13030 \lang english
13031  
13032 \lang japanese
13033 これはレイアウト中の既定の行間をどうすべきか定義するものです.引数の
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 single
13039 \end_layout
13040
13041 \end_inset
13042
13043
13044 \begin_inset Flex Code
13045 status collapsed
13046
13047 \begin_layout Plain Layout
13048 onehalf
13049 \end_layout
13050
13051 \end_inset
13052
13053
13054 \begin_inset Flex Code
13055 status collapsed
13056
13057 \begin_layout Plain Layout
13058 double
13059 \end_layout
13060
13061 \end_inset
13062
13063 は,それぞれ乗数1・1.25・1.667に対応します.引数
13064 \begin_inset Flex Code
13065 status collapsed
13066
13067 \begin_layout Plain Layout
13068 other
13069 \end_layout
13070
13071 \end_inset
13072
13073 を指定した場合には,実際の乗数値も引数として指定しなくてはなりません.他のパラメータと違って
13074 \begin_inset Flex Code
13075 status collapsed
13076
13077 \begin_layout Plain Layout
13078 Spacing
13079 \end_layout
13080
13081 \end_inset
13082
13083 は,\SpecialChar LaTeX
13084 パッケージ
13085 \begin_inset Flex Code
13086 status collapsed
13087
13088 \begin_layout Plain Layout
13089 setspace
13090 \end_layout
13091
13092 \end_inset
13093
13094 パッケージを使用した,限定的な\SpecialChar LaTeX
13095 コードを生成することを意味することにご注意ください.
13096 \end_layout
13097
13098 \begin_layout Description
13099 \begin_inset Flex Code
13100 status collapsed
13101
13102 \begin_layout Plain Layout
13103 Spellcheck
13104 \end_layout
13105
13106 \end_inset
13107
13108  [
13109 \begin_inset Flex Code
13110 status collapsed
13111
13112 \begin_layout Plain Layout
13113 0
13114 \end_layout
13115
13116 \end_inset
13117
13118 ,
13119 \begin_inset space \thinspace{}
13120 \end_inset
13121
13122
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 1
13128 \end_layout
13129
13130 \end_inset
13131
13132 ] この様式の段落をスペルチェックするか否か.既定値は真です.
13133 \end_layout
13134
13135 \begin_layout Description
13136 \begin_inset Flex Code
13137 status collapsed
13138
13139 \begin_layout Plain Layout
13140 TextFont
13141 \end_layout
13142
13143 \end_inset
13144
13145  本文に使うフォント.
13146 \begin_inset CommandInset ref
13147 LatexCommand ref
13148 reference "subsec:フォント指定"
13149
13150 \end_inset
13151
13152 参照.
13153 \end_layout
13154
13155 \begin_layout Description
13156 \begin_inset Flex Code
13157 status collapsed
13158
13159 \begin_layout Plain Layout
13160 TocLevel
13161 \end_layout
13162
13163 \end_inset
13164
13165  [
13166 \begin_inset Flex Code
13167 status collapsed
13168
13169 \begin_layout Plain Layout
13170 整数型=3
13171 \end_layout
13172
13173 \end_inset
13174
13175 ] 目次中でのこの様式の階層.これは,節見出しの自動連番に使用されます.
13176 \end_layout
13177
13178 \begin_layout Description
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183 ToggleIndent
13184 \end_layout
13185
13186 \end_inset
13187
13188  [
13189 \emph on
13190
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195 default
13196 \end_layout
13197
13198 \end_inset
13199
13200
13201 \emph default
13202
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 always
13208 \end_layout
13209
13210 \end_inset
13211
13212
13213 \begin_inset Flex Code
13214 status collapsed
13215
13216 \begin_layout Plain Layout
13217 never
13218 \end_layout
13219
13220 \end_inset
13221
13222 ] このタグは,この段落の1行目の行頭下げが,段落設定ダイアログで切り替えられるかどうかを決めます.
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 default
13228 \end_layout
13229
13230 \end_inset
13231
13232 が指定されると,文書設定が「行頭下げ」段落様式を使用しているときに,行頭下げを変更することができます.
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 always
13238 \end_layout
13239
13240 \end_inset
13241
13242 は,文書設定にかかわらず変更することができ,
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 never
13248 \end_layout
13249
13250 \end_inset
13251
13252 は,どのような場合でも変更することができません.
13253 \end_layout
13254
13255 \begin_layout Description
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 TopSep
13261 \end_layout
13262
13263 \end_inset
13264
13265  [
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 浮動小数点型=0
13271 \end_layout
13272
13273 \end_inset
13274
13275 ] このレイアウトを持つ一連の段落群の最初の段落と,その前の段落の間の垂直余白.前の段落が別のレイアウトを持っていれば,余白は単純に追加されるのではなく,それら
13276 の最大値がとられます.
13277 \end_layout
13278
13279 \begin_layout Subsection
13280 段落様式の国際化
13281 \begin_inset CommandInset label
13282 LatexCommand label
13283 name "subsec:段落様式の国際化"
13284
13285 \end_inset
13286
13287
13288 \end_layout
13289
13290 \begin_layout Standard
13291 \SpecialChar LyX
13292 は,長きにわたってレイアウト情報の国際化をサポートしてきましたが,第2.0版までは,これは操作画面にのみ適用されるものであって,たとえばPDF出力には適用されませ
13293 んでした.たとえば,フランスの著者が,「Theorem 1」の代わりに「
13294 \lang french
13295 Théorème
13296 \lang japanese
13297  1」としたければ,醜いハックに頼るしかありませんでした.Georg Baumのおかげで,これは解消されました.
13298 \end_layout
13299
13300 \begin_layout Standard
13301 もし
13302 \begin_inset Flex MenuItem
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 Style
13307 \end_layout
13308
13309 \end_inset
13310
13311 が,組版文書に出力される文字列を定義するのであれば,非英語文書や複数言語文書をサポートするために,
13312 \begin_inset Flex MenuItem
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 LangPreamble
13317 \end_layout
13318
13319 \end_inset
13320
13321
13322 \begin_inset Flex MenuItem
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 BabelPreamble
13327 \end_layout
13328
13329 \end_inset
13330
13331 を使用することができます.以下の抜粋(
13332 \begin_inset Flex MenuItem
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336 theorems-ams.inc
13337 \end_layout
13338
13339 \end_inset
13340
13341 より)は,これがどう動作するかを示すものです.
13342 \end_layout
13343
13344 \begin_layout LyX-Code
13345 Preamble
13346 \end_layout
13347
13348 \begin_deeper
13349 \begin_layout LyX-Code
13350   
13351 \backslash
13352 theoremstyle{remark}
13353 \end_layout
13354
13355 \begin_layout LyX-Code
13356   
13357 \backslash
13358 newtheorem{claim}[thm]{
13359 \backslash
13360 protect
13361 \backslash
13362 claimname}
13363 \end_layout
13364
13365 \begin_layout LyX-Code
13366 EndPreamble
13367 \end_layout
13368
13369 \begin_layout LyX-Code
13370 LangPreamble
13371 \end_layout
13372
13373 \begin_layout LyX-Code
13374   
13375 \backslash
13376 providecommand{
13377 \backslash
13378 claimname}{_(Claim)}
13379 \end_layout
13380
13381 \begin_layout LyX-Code
13382 EndLangPreamble
13383 \end_layout
13384
13385 \begin_layout LyX-Code
13386 BabelPreamble
13387 \end_layout
13388
13389 \begin_layout LyX-Code
13390     
13391 \backslash
13392 addto
13393 \backslash
13394 captions$$lang{
13395 \backslash
13396 renewcommand{
13397 \backslash
13398 claimname}{_(Claim)}}
13399 \end_layout
13400
13401 \begin_layout LyX-Code
13402 EndBabelPreamble
13403 \end_layout
13404
13405 \end_deeper
13406 \begin_layout Standard
13407 原則として,
13408 \begin_inset Flex MenuItem
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 LangPreamble
13413 \end_layout
13414
13415 \end_inset
13416
13417
13418 \begin_inset Flex MenuItem
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422 BabelPreamble
13423 \end_layout
13424
13425 \end_inset
13426
13427 タグ内には,有効な\SpecialChar LaTeX
13428 コードはすべて用いることができますが,実際においては,ここで典型的に示したような形になるでしょう.組版文字列が正しく翻訳されるための鍵となるの
13429 は,\SpecialChar LaTeX
13430 コマンド
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435
13436 \backslash
13437 claimname
13438 \end_layout
13439
13440 \end_inset
13441
13442 とその
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447
13448 \backslash
13449 newtheorem
13450 \end_layout
13451
13452 \end_inset
13453
13454 中での用い方です.
13455 \end_layout
13456
13457 \begin_layout Standard
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 LangPreamble
13463 \end_layout
13464
13465 \end_inset
13466
13467 タグは,文書全体の言語に基づいた国際化を提供します.タグの内容は,
13468 \begin_inset Flex Code
13469 status collapsed
13470
13471 \begin_layout Plain Layout
13472 Preamble
13473 \end_layout
13474
13475 \end_inset
13476
13477 タグと同様,プリアンブルに置かれるのですが,これを特別なものにしているのは,「関数」
13478 \begin_inset Flex Code
13479 status collapsed
13480
13481 \begin_layout Plain Layout
13482 _()
13483 \end_layout
13484
13485 \end_inset
13486
13487 が使用されていることです.これは,\SpecialChar LyX
13488 が\SpecialChar LaTeX
13489 出力を生成する際,その引数を文書言語に翻訳したもので置き換えられます.
13490 \end_layout
13491
13492 \begin_layout Standard
13493 \begin_inset Flex Code
13494 status collapsed
13495
13496 \begin_layout Plain Layout
13497 BabelPreamble
13498 \end_layout
13499
13500 \end_inset
13501
13502 タグは,複数言語文書をサポートし,
13503 \begin_inset Flex Code
13504 status collapsed
13505
13506 \begin_layout Plain Layout
13507 babel
13508 \end_layout
13509
13510 \end_inset
13511
13512 パッケージへのインタフェースを提供することを意図しているので,もう少し複雑です.その内容は,文書に現れる言語それぞれについて一度,プリアンブルに追加されます.こ
13513 の場合には,
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 _()
13519 \end_layout
13520
13521 \end_inset
13522
13523 の引数は,その当該言語への翻訳で置き換えられ,
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 $$lang
13529 \end_layout
13530
13531 \end_inset
13532
13533 は言語名(babelパッケージで使用されるもの)で置き換えられます.
13534 \end_layout
13535
13536 \begin_layout Standard
13537 したがって,フランス語のセクションを持つドイツ語文書では,以下のような内容がプリアンブルに追加されます
13538 \end_layout
13539
13540 \begin_layout LyX-Code
13541
13542 \backslash
13543 addto
13544 \backslash
13545 captionsfrench{
13546 \backslash
13547 renewcommand{
13548 \backslash
13549 claimname}{Affirmation}}
13550 \begin_inset Newline newline
13551 \end_inset
13552
13553
13554 \backslash
13555 addto
13556 \backslash
13557 captionsngerman{
13558 \backslash
13559 renewcommand{
13560 \backslash
13561 claimname}{Behauptung}}
13562 \begin_inset Newline newline
13563 \end_inset
13564
13565
13566 \backslash
13567 providecommand{
13568 \backslash
13569 claimname}{Behauptung}
13570 \end_layout
13571
13572 \begin_layout Standard
13573 それから,\SpecialChar LaTeX
13574
13575 \begin_inset Flex Code
13576 status collapsed
13577
13578 \begin_layout Plain Layout
13579 babel
13580 \end_layout
13581
13582 \end_inset
13583
13584 は協力して,出力に正しい文字列を生成します.
13585 \end_layout
13586
13587 \begin_layout Standard
13588 ここで注意しておくべき一つの重要な点は,翻訳は,
13589 \begin_inset Flex Code
13590 status collapsed
13591
13592 \begin_layout Plain Layout
13593 layouttranslations
13594 \end_layout
13595
13596 \end_inset
13597
13598 ファイルを通じて,\SpecialChar LyX
13599 自身によって提供されるということです.つまり,ユーザー作成のレイアウトファイルに入力された文字列は,
13600 \begin_inset Flex Code
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604 layouttranslations
13605 \end_layout
13606
13607 \end_inset
13608
13609 ファイルをそれに応じて変更しない限り,\SpecialChar LyX
13610 の国際化ルーチンでは取り扱われないので,
13611 \begin_inset Flex MenuItem
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615 LangPreamble
13616 \end_layout
13617
13618 \end_inset
13619
13620
13621 \begin_inset Flex MenuItem
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 BabelPreamble
13626 \end_layout
13627
13628 \end_inset
13629
13630 は,事実上,\SpecialChar LyX
13631 とともに提供されるレイアウトファイルでのみ,使うことができるということを意味します.とはいえ,こういうことでありますので,将来的に\SpecialChar LyX
13632 に同梱させようとい
13633 う意図を以て作成されたレイアウトは,適切なところではすべて,これらのタグを使用するべきです.\SpecialChar LyX
13634 が提供する段落様式の翻訳は,マイナー更新(例えば2.1.x版から2.1.y版
13635 )では変更されないことに注意してください.しかしながら,メジャー更新(例えば2.0.x版から2.1.y版)では,新しい翻訳や修正が導入される可能性は大いにあります.
13636 \end_layout
13637
13638 \begin_layout Subsection
13639 フロート
13640 \begin_inset CommandInset label
13641 LatexCommand label
13642 name "subsec:フロート"
13643
13644 \end_inset
13645
13646
13647 \end_layout
13648
13649 \begin_layout Standard
13650 \SpecialChar LyX
13651 第1.3.0版以来,テキストクラス自体の中でフロート(
13652 \begin_inset Flex MenuItem
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656 figure
13657 \end_layout
13658
13659 \end_inset
13660
13661
13662 \begin_inset Flex MenuItem
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 table
13667 \end_layout
13668
13669 \end_inset
13670
13671 ・\SpecialChar ldots
13672 )を定義することが可能となり,かつ必要となりました.標準的なフロートは
13673 \begin_inset Flex Code
13674 status collapsed
13675
13676 \begin_layout Plain Layout
13677 stdfloats.inc
13678 \end_layout
13679
13680 \end_inset
13681
13682 ファイルに含まれているので,作業中のレイアウトファイルに
13683 \end_layout
13684
13685 \begin_layout LyX-Code
13686 Input stdfloats.inc
13687 \end_layout
13688
13689 \begin_layout Standard
13690 と加えるだけで済むことも多いでしょう.\SpecialChar LyX
13691 に同梱されているAGUクラスのように,それ以外のフロート型を提供するテキストクラスを実装するには,以下の情報が役立つであり
13692 ましょう.
13693 \end_layout
13694
13695 \begin_layout Description
13696 \begin_inset Flex Code
13697 status collapsed
13698
13699 \begin_layout Plain Layout
13700 AllowedPlacement
13701 \end_layout
13702
13703 \end_inset
13704
13705  [
13706 \begin_inset Flex Code
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 文字列
13711 \end_layout
13712
13713 \end_inset
13714
13715 =!htbpH] このフロート型に許可された配置用の選択肢.値は,配置文字からなる文字列です.使用できる文字には,
13716 \emph on
13717 h
13718 \emph default
13719  (
13720 \begin_inset Quotes eld
13721 \end_inset
13722
13723 here if possible:可能ならば現在位置に
13724 \begin_inset Quotes erd
13725 \end_inset
13726
13727 ), 
13728 \emph on
13729 t
13730 \emph default
13731  (
13732 \begin_inset Quotes eld
13733 \end_inset
13734
13735 top of page:ページ上部
13736 \begin_inset Quotes erd
13737 \end_inset
13738
13739 )・
13740 \emph on
13741 b
13742 \emph default
13743  (
13744 \begin_inset Quotes eld
13745 \end_inset
13746
13747 bottom of page:ページ下部
13748 \begin_inset Quotes erd
13749 \end_inset
13750
13751 )・
13752 \emph on
13753 p
13754 \emph default
13755  (
13756 \begin_inset Quotes eld
13757 \end_inset
13758
13759 page of floats:フロートを独立したページに
13760 \begin_inset Quotes erd
13761 \end_inset
13762
13763 )・
13764 \emph on
13765 H
13766 \emph default
13767  (
13768 \begin_inset Quotes eld
13769 \end_inset
13770
13771 here definitely:何としても現在位置に置く
13772 \begin_inset Quotes erd
13773 \end_inset
13774
13775 )・
13776 \emph on
13777 !
13778 \emph default
13779  (
13780 \begin_inset Quotes eld
13781 \end_inset
13782
13783 ignore LaTeX rules:LaTeXの規則を無視する
13784 \begin_inset Quotes erd
13785 \end_inset
13786
13787 )があります.文字列中の文字の順序は関係ありません.配置の選択肢を与えない場合には,文字列として
13788 \emph on
13789 none
13790 \emph default
13791 を与えてください.
13792 \end_layout
13793
13794 \begin_layout Description
13795 \begin_inset Flex Code
13796 status collapsed
13797
13798 \begin_layout Plain Layout
13799 AllowsSideways
13800 \end_layout
13801
13802 \end_inset
13803
13804  [
13805 \begin_inset Flex Code
13806 status collapsed
13807
13808 \begin_layout Plain Layout
13809 0
13810 \end_layout
13811
13812 \end_inset
13813
13814 ,
13815 \begin_inset space \thinspace{}
13816 \end_inset
13817
13818
13819 \emph on
13820
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 1
13826 \end_layout
13827
13828 \end_inset
13829
13830
13831 \emph default
13832 ] フロートを,\SpecialChar LaTeX
13833 パッケージの
13834 \family typewriter
13835 rotfloat
13836 \family default
13837  (横向きフロート)を使って回転させることを許可するか否かを指定.フロートにこの機能をサポートさせないときには,
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 0
13843 \end_layout
13844
13845 \end_inset
13846
13847 を指定してください.
13848 \end_layout
13849
13850 \begin_layout Description
13851 \begin_inset Flex Code
13852 status collapsed
13853
13854 \begin_layout Plain Layout
13855 AllowsWide
13856 \end_layout
13857
13858 \end_inset
13859
13860  [
13861 \begin_inset Flex Code
13862 status collapsed
13863
13864 \begin_layout Plain Layout
13865 0
13866 \end_layout
13867
13868 \end_inset
13869
13870 ,
13871 \begin_inset space \thinspace{}
13872 \end_inset
13873
13874
13875 \emph on
13876
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 1
13882 \end_layout
13883
13884 \end_inset
13885
13886
13887 \emph default
13888 ] このフロートに,二段組段落において段落をまたぐ,星付き版があるか否かを定義.フロートにこの機能をサポートさせないときには,
13889 \begin_inset Flex Code
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 0
13894 \end_layout
13895
13896 \end_inset
13897
13898 を指定してください.
13899 \end_layout
13900
13901 \begin_layout Description
13902 \begin_inset Flex Code
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 Extension
13907 \end_layout
13908
13909 \end_inset
13910
13911  [
13912 \begin_inset Flex Code
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916 文字列
13917 \end_layout
13918
13919 \end_inset
13920
13921 =
13922 \begin_inset Quotes erd
13923 \end_inset
13924
13925
13926 \begin_inset Quotes erd
13927 \end_inset
13928
13929 ] 図などのリストを含む外部ファイルのファイル拡張子名.\SpecialChar LaTeX
13930 がキャプションを書き込むファイルです.
13931 \end_layout
13932
13933 \begin_layout Description
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938 GuiName
13939 \end_layout
13940
13941 \end_inset
13942
13943  [
13944 \begin_inset Flex Code
13945 status collapsed
13946
13947 \begin_layout Plain Layout
13948 文字列
13949 \end_layout
13950
13951 \end_inset
13952
13953 =
13954 \begin_inset Quotes erd
13955 \end_inset
13956
13957
13958 \begin_inset Quotes erd
13959 \end_inset
13960
13961 ] メニューとキャプションに使用される文字列.babelが使用される場合には,これは現在の言語に翻訳されます.
13962 \end_layout
13963
13964 \begin_layout Description
13965 \begin_inset Flex Code
13966 status collapsed
13967
13968 \begin_layout Plain Layout
13969 HTML*
13970 \end_layout
13971
13972 \end_inset
13973
13974  これらは,XHTML出力で使用されます.
13975 \begin_inset CommandInset ref
13976 LatexCommand ref
13977 reference "sec:XHTML出力のタグ"
13978
13979 \end_inset
13980
13981 をご覧ください.
13982 \end_layout
13983
13984 \begin_layout Description
13985 \begin_inset Flex Code
13986 status collapsed
13987
13988 \begin_layout Plain Layout
13989 IsPredefined
13990 \end_layout
13991
13992 \end_inset
13993
13994  [
13995 \begin_inset Flex Code
13996 status collapsed
13997
13998 \begin_layout Plain Layout
13999
14000 \emph on
14001 0
14002 \end_layout
14003
14004 \end_inset
14005
14006 ,
14007 \begin_inset space \thinspace{}
14008 \end_inset
14009
14010
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 1
14016 \end_layout
14017
14018 \end_inset
14019
14020 ] フロートがドキュメントクラス中に既に定義されているのか,あるいは\SpecialChar LaTeX
14021 パッケージ
14022 \begin_inset Flex Code
14023 status collapsed
14024
14025 \begin_layout Plain Layout
14026 float
14027 \end_layout
14028
14029 \end_inset
14030
14031 を読み込む必要があり,そのファイル内のものを使用して,オン・ザ・フライで定義するかを示します.既定は
14032 \begin_inset Flex Code
14033 status collapsed
14034
14035 \begin_layout Plain Layout
14036 0
14037 \end_layout
14038
14039 \end_inset
14040
14041 で,この場合
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 float
14047 \end_layout
14048
14049 \end_inset
14050
14051 を使用します.\SpecialChar LaTeX
14052 ドキュメントクラス中に既に定義されているときには,
14053 \begin_inset Flex Code
14054 status collapsed
14055
14056 \begin_layout Plain Layout
14057 0
14058 \end_layout
14059
14060 \end_inset
14061
14062 に設定しなくてはなりません.
14063 \end_layout
14064
14065 \begin_layout Description
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070 ListCommand
14071 \end_layout
14072
14073 \end_inset
14074
14075  [
14076 \begin_inset Flex Code
14077 status collapsed
14078
14079 \begin_layout Plain Layout
14080 文字列
14081 \end_layout
14082
14083 \end_inset
14084
14085 =
14086 \begin_inset Quotes erd
14087 \end_inset
14088
14089
14090 \begin_inset Quotes erd
14091 \end_inset
14092
14093 ] この型のフロートの一覧を生成するのに使用するコマンド.頭部の「
14094 \backslash
14095 」は書きません.
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 NeedsFloatPkg
14101 \end_layout
14102
14103 \end_inset
14104
14105 が偽の時には,このコマンドを生成する標準的な方法はないので,これは
14106 \emph on
14107 必ず
14108 \emph default
14109 指定しなくてはなりません.
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 NeedsFloatPkg
14115 \end_layout
14116
14117 \end_inset
14118
14119 が真の時は,標準的な方法が存在するので,これは無視されます.
14120 \end_layout
14121
14122 \begin_layout Description
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 ListName
14128 \end_layout
14129
14130 \end_inset
14131
14132  [
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 文字列
14138 \end_layout
14139
14140 \end_inset
14141
14142 =
14143 \begin_inset Quotes erd
14144 \end_inset
14145
14146
14147 \begin_inset Quotes erd
14148 \end_inset
14149
14150 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し.\SpecialChar LyX
14151 中では,これは画面上のラベルとして使用されます.また,見出しとして使用するために,La\SpecialChar TeX
14152 に渡さ
14153 れ,XHTML出力でも見出しとして使用されます.これは,文書言語に翻訳されます.
14154 \end_layout
14155
14156 \begin_layout Description
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161 NumberWithin
14162 \end_layout
14163
14164 \end_inset
14165
14166  [
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 文字列
14172 \end_layout
14173
14174 \end_inset
14175
14176 =
14177 \begin_inset Quotes erd
14178 \end_inset
14179
14180
14181 \begin_inset Quotes erd
14182 \end_inset
14183
14184 ] この(非必須の)引数は,このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します.例えば,
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 NumberWithin
14190 \end_layout
14191
14192 \end_inset
14193
14194 が「
14195 \begin_inset Flex Code
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199 chapter
14200 \end_layout
14201
14202 \end_inset
14203
14204 」に指定されていれば,フロートは章ごとに番号が振り直されます.
14205 \end_layout
14206
14207 \begin_layout Description
14208 \begin_inset Flex Code
14209 status collapsed
14210
14211 \begin_layout Plain Layout
14212 Placement
14213 \end_layout
14214
14215 \end_inset
14216
14217  [
14218 \begin_inset Flex Code
14219 status collapsed
14220
14221 \begin_layout Plain Layout
14222 文字列
14223 \end_layout
14224
14225 \end_inset
14226
14227 =
14228 \begin_inset Quotes erd
14229 \end_inset
14230
14231
14232 \begin_inset Quotes erd
14233 \end_inset
14234
14235 ] このクラスのフロートの既定の配置法.文字列は,標準的な\SpecialChar LaTeX
14236 表記に従い,
14237 \begin_inset Flex Code
14238 status collapsed
14239
14240 \begin_layout Plain Layout
14241 t
14242 \end_layout
14243
14244 \end_inset
14245
14246 ならば上部(top),
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 b
14252 \end_layout
14253
14254 \end_inset
14255
14256 ならば下部(bottom),
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261 p
14262 \end_layout
14263
14264 \end_inset
14265
14266 ならばページ(page),
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 h
14272 \end_layout
14273
14274 \end_inset
14275
14276 ならばここ(here)を表します
14277 \begin_inset Foot
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281 \SpecialChar LaTeX
14282 同様,文字列中でのこれらの文字の順序は関係ありません.
14283 \end_layout
14284
14285 \end_inset
14286
14287 .これらの他に新しい型
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 H
14293 \end_layout
14294
14295 \end_inset
14296
14297 があり,これはフロートを「ここ」に置いていいけれども他の場所はだめ,というものなので,本当はフロートにあるものではありません.しかし,
14298 \begin_inset Flex Code
14299 status collapsed
14300
14301 \begin_layout Plain Layout
14302 H
14303 \end_layout
14304
14305 \end_inset
14306
14307 指定子は特別なものであり,その細かい実装上の理由で,組み込み以外のフロート型では使用することができません.これが何を意味するかおわかりにならない場合には,代わり
14308 に「
14309 \begin_inset Flex Code
14310 status collapsed
14311
14312 \begin_layout Plain Layout
14313 tbp
14314 \end_layout
14315
14316 \end_inset
14317
14318 」を指定してください.
14319 \end_layout
14320
14321 \begin_layout Description
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326 RefPrefix
14327 \end_layout
14328
14329 \end_inset
14330
14331  [
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 文字列
14337 \end_layout
14338
14339 \end_inset
14340
14341 ] この型のフロートを参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.コピーした様式が設定した
14342 \begin_inset Flex Code
14343 status collapsed
14344
14345 \begin_layout Plain Layout
14346 RefPrefix
14347 \end_layout
14348
14349 \end_inset
14350
14351 は,特別な文字列「OFF」(すべて大文字)を使えば,いつでも削除することができます.
14352 \end_layout
14353
14354 \begin_layout Description
14355 \begin_inset Flex Code
14356 status collapsed
14357
14358 \begin_layout Plain Layout
14359 Style
14360 \end_layout
14361
14362 \end_inset
14363
14364  [
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369 文字列
14370 \end_layout
14371
14372 \end_inset
14373
14374 =
14375 \begin_inset Quotes erd
14376 \end_inset
14377
14378
14379 \begin_inset Quotes erd
14380 \end_inset
14381
14382
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387
14388 \backslash
14389 newfloat
14390 \end_layout
14391
14392 \end_inset
14393
14394 を使用してフロートを定義する際に使用される様式.
14395 \end_layout
14396
14397 \begin_layout Description
14398 \begin_inset Flex Code
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402 Type
14403 \end_layout
14404
14405 \end_inset
14406
14407  [
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412 文字列
14413 \end_layout
14414
14415 \end_inset
14416
14417 =
14418 \begin_inset Quotes erd
14419 \end_inset
14420
14421
14422 \begin_inset Quotes erd
14423 \end_inset
14424
14425 ] プログラムやアルゴリズムのような,フロートの新しいクラス「型」.適切な
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430
14431 \backslash
14432 newfloat
14433 \end_layout
14434
14435 \end_inset
14436
14437 の後で,
14438 \begin_inset Flex Code
14439 status collapsed
14440
14441 \begin_layout Plain Layout
14442
14443 \backslash
14444 begin{program}
14445 \end_layout
14446
14447 \end_inset
14448
14449
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454
14455 \backslash
14456 end{algorithm*}
14457 \end_layout
14458
14459 \end_inset
14460
14461 といったコマンドが利用できます.
14462 \end_layout
14463
14464 \begin_layout Description
14465 \begin_inset Flex Code
14466 status collapsed
14467
14468 \begin_layout Plain Layout
14469 UsesFloatPkg
14470 \end_layout
14471
14472 \end_inset
14473
14474  [
14475 \begin_inset Flex Code
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479 0
14480 \end_layout
14481
14482 \end_inset
14483
14484 ,
14485 \begin_inset space \thinspace{}
14486 \end_inset
14487
14488
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493
14494 \emph on
14495 1
14496 \end_layout
14497
14498 \end_inset
14499
14500 ] このフロートが,クラスファイルやパッケージ中で,\SpecialChar LaTeX
14501 パッケージ
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506 float
14507 \end_layout
14508
14509 \end_inset
14510
14511 が提供しているものを使用して定義されているのか,\SpecialChar LyX
14512 自身がオン・ザ・フライで定義しているのかを示します.
14513 \end_layout
14514
14515 \begin_layout Standard
14516 \begin_inset Flex Code
14517 status collapsed
14518
14519 \begin_layout Plain Layout
14520
14521 \emph on
14522 type
14523 \end_layout
14524
14525 \end_inset
14526
14527 型のフロートを定義すると,自動的に
14528 \emph on
14529 対応する
14530 \emph default
14531
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536
14537 \emph on
14538 type
14539 \end_layout
14540
14541 \end_inset
14542
14543 名カウンタが定義されます.
14544 \end_layout
14545
14546 \begin_layout Subsection
14547 自由差込枠と差込枠レイアウト
14548 \begin_inset CommandInset label
14549 LatexCommand label
14550 name "subsec:任意設定差込枠"
14551
14552 \end_inset
14553
14554
14555 \end_layout
14556
14557 \begin_layout Standard
14558 自由差込枠には次の3種類があります.
14559 \end_layout
14560
14561 \begin_layout Itemize
14562 文字様式(
14563 \begin_inset Flex Code
14564 status collapsed
14565
14566 \begin_layout Plain Layout
14567 CharStyle
14568 \end_layout
14569
14570 \end_inset
14571
14572 ).これは,
14573 \begin_inset Flex Code
14574 status collapsed
14575
14576 \begin_layout Plain Layout
14577
14578 \backslash
14579 noun
14580 \end_layout
14581
14582 \end_inset
14583
14584
14585 \begin_inset Flex Code
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589
14590 \backslash
14591 code
14592 \end_layout
14593
14594 \end_inset
14595
14596 などの\SpecialChar LaTeX
14597 コマンドに対応した意味論的マークアップを定義するものです.
14598 \end_layout
14599
14600 \begin_layout Itemize
14601 ユーザ設定(
14602 \begin_inset Flex Code
14603 status collapsed
14604
14605 \begin_layout Plain Layout
14606 Custom
14607 \end_layout
14608
14609 \end_inset
14610
14611 ).これは,\SpecialChar TeX
14612 コードや脚註などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます.わかりやすい例はendnote差込枠で,これは
14613 \begin_inset Flex Code
14614 status collapsed
14615
14616 \begin_layout Plain Layout
14617 endnote
14618 \end_layout
14619
14620 \end_inset
14621
14622 モジュール中で定義されています.
14623 \end_layout
14624
14625 \begin_layout Itemize
14626 XML要素(
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631 Element
14632 \end_layout
14633
14634 \end_inset
14635
14636 ).DocBookクラスで使用するものです.
14637 \end_layout
14638
14639 \begin_layout Standard
14640 自由差込枠は,以下で説明する
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 InsetLayout
14646 \end_layout
14647
14648 \end_inset
14649
14650 タグを使用して定義されます.
14651 \end_layout
14652
14653 \begin_layout Standard
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 InsetLayout
14659 \end_layout
14660
14661 \end_inset
14662
14663 タグは,もう一つ別の機能も提供します.これを使えば,いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです.現在のところ,
14664 \begin_inset Flex Code
14665 status collapsed
14666
14667 \begin_layout Plain Layout
14668 InsetLayout
14669 \end_layout
14670
14671 \end_inset
14672
14673 は自由差込枠を定義することの他に,脚註・傍註・註釈差込枠・\SpecialChar TeX
14674 コード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・キャプションをユーザ
14675 ー定義するのに使用されます.
14676 \end_layout
14677
14678 \begin_layout Standard
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 InsetLayout
14684 \end_layout
14685
14686 \end_inset
14687
14688 定義は以下の形の行では始まらなくてはなりません.
14689 \end_layout
14690
14691 \begin_layout LyX-Code
14692 InsetLayout <型>
14693 \end_layout
14694
14695 \begin_layout Standard
14696 ここで
14697 \begin_inset Flex Code
14698 status collapsed
14699
14700 \begin_layout Plain Layout
14701 <型>
14702 \end_layout
14703
14704 \end_inset
14705
14706 は,レイアウトを定義しようとしている差込枠を指し,4つの場合があります.
14707 \end_layout
14708
14709 \begin_layout Enumerate
14710 既存の差込枠のレイアウトを変更する場合.この場合,
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 <型>
14716 \end_layout
14717
14718 \end_inset
14719
14720 は以下のいずれかになります:
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 Algorithm
14726 \end_layout
14727
14728 \end_inset
14729
14730
14731 \begin_inset Flex Code
14732 status collapsed
14733
14734 \begin_layout Plain Layout
14735 Branch
14736 \end_layout
14737
14738 \end_inset
14739
14740
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 Box
14746 \end_layout
14747
14748 \end_inset
14749
14750
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 Box:shaded
14756 \end_layout
14757
14758 \end_inset
14759
14760
14761 \begin_inset Flex Code
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765 Caption:Standard
14766 \end_layout
14767
14768 \end_inset
14769
14770
14771 \begin_inset Flex Code
14772 status collapsed
14773
14774 \begin_layout Plain Layout
14775 ERT
14776 \end_layout
14777
14778 \end_inset
14779
14780
14781 \begin_inset Flex Code
14782 status collapsed
14783
14784 \begin_layout Plain Layout
14785 Figure
14786 \end_layout
14787
14788 \end_inset
14789
14790
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 Foot
14796 \end_layout
14797
14798 \end_inset
14799
14800
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 Index
14806 \end_layout
14807
14808 \end_inset
14809
14810
14811 \begin_inset Flex Code
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815 Info
14816 \end_layout
14817
14818 \end_inset
14819
14820
14821 \begin_inset Flex Code
14822 status collapsed
14823
14824 \begin_layout Plain Layout
14825 Info:menu
14826 \end_layout
14827
14828 \end_inset
14829
14830
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 Info:shortcut
14836 \end_layout
14837
14838 \end_inset
14839
14840
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 Info:shortcuts
14846 \end_layout
14847
14848 \end_inset
14849
14850
14851 \begin_inset Flex Code
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855 Listings
14856 \end_layout
14857
14858 \end_inset
14859
14860
14861 \begin_inset Flex Code
14862 status collapsed
14863
14864 \begin_layout Plain Layout
14865 Marginal
14866 \end_layout
14867
14868 \end_inset
14869
14870
14871 \begin_inset Flex Code
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 Note:Comment
14876 \end_layout
14877
14878 \end_inset
14879
14880
14881 \begin_inset Flex Code
14882 status collapsed
14883
14884 \begin_layout Plain Layout
14885 Note:Note
14886 \end_layout
14887
14888 \end_inset
14889
14890
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 Note:GreyedOut
14896 \end_layout
14897
14898 \end_inset
14899
14900
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905 Table
14906 \end_layout
14907
14908 \end_inset
14909
14910
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 URL
14916 \end_layout
14917
14918 \end_inset
14919
14920
14921 \end_layout
14922
14923 \begin_layout Enumerate
14924 自由差込枠のレイアウトを定義する場合.この場合,
14925 \begin_inset Flex Code
14926 status collapsed
14927
14928 \begin_layout Plain Layout
14929 <型>
14930 \end_layout
14931
14932 \end_inset
14933
14934
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 Flex:<名称>
14940 \end_layout
14941
14942 \end_inset
14943
14944 の形でなくてはなりません.ここで,
14945 \begin_inset Flex Code
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 名称
14950 \end_layout
14951
14952 \end_inset
14953
14954 は,既存の自由差込枠で使用されていない有効な識別子であれば,何でも構いません.識別子には空白を入れることもできますが,この場合には全体を引用符で囲まなくてはなり
14955 ません.自由差込枠の定義には,この定義がどの差込枠型なのか宣言するために,
14956 \begin_inset Flex Code
14957 status collapsed
14958
14959 \begin_layout Plain Layout
14960 LyXType
14961 \end_layout
14962
14963 \end_inset
14964
14965 項目が含まれていなくてはならないことに注意してください.
14966 \end_layout
14967
14968 \begin_layout Enumerate
14969 ユーザー定義派生枝を定義する場合.この場合,
14970 \begin_inset Flex Code
14971 status collapsed
14972
14973 \begin_layout Plain Layout
14974 <型>
14975 \end_layout
14976
14977 \end_inset
14978
14979 は「
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 Branch:<名称>
14985 \end_layout
14986
14987 \end_inset
14988
14989 」の形でなくてはなりません.ここで,
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 名称
14995 \end_layout
14996
14997 \end_inset
14998
14999 は,ユーザーの文書で定義されている有効な派生枝名です.派生枝名には空白を入れても構いませんが,その場合は派生枝全体を引用符で囲まなくてはなりません.この機能の主
15000 な目的は,ユーザーの必要に応じて,特定の派生枝を\SpecialChar LaTeX
15001 がくるむことができるようにすることです.
15002 \end_layout
15003
15004 \begin_layout Enumerate
15005 ユーザー(またはクラス)定義のキャプションを定義する場合.この場合,
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 <型>
15011 \end_layout
15012
15013 \end_inset
15014
15015 は「
15016 \begin_inset Flex Code
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020 Caption:<名称>
15021 \end_layout
15022
15023 \end_inset
15024
15025 」の形でなくてはなりません.ここで,
15026 \begin_inset Flex Code
15027 status collapsed
15028
15029 \begin_layout Plain Layout
15030 名称
15031 \end_layout
15032
15033 \end_inset
15034
15035 は,メニューに表示されるキャプション名です.応用例については,標準キャプション(
15036 \begin_inset Flex Code
15037 status collapsed
15038
15039 \begin_layout Plain Layout
15040 Caption:Standard
15041 \end_layout
15042
15043 \end_inset
15044
15045 ),若しくはKOMA-Scriptクラスのクラス定義キャプション(
15046 \begin_inset Flex Code
15047 status collapsed
15048
15049 \begin_layout Plain Layout
15050 Caption:Above
15051 \end_layout
15052
15053 \end_inset
15054
15055
15056 \begin_inset Flex Code
15057 status collapsed
15058
15059 \begin_layout Plain Layout
15060 Caption:Below
15061 \end_layout
15062
15063 \end_inset
15064
15065 ),
15066 \family sans
15067 多言語キャプション
15068 \family default
15069 モジュール(
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 Caption:Bicaption
15075 \end_layout
15076
15077 \end_inset
15078
15079 )をご覧ください.
15080 \end_layout
15081
15082 \begin_layout Standard
15083 \begin_inset Flex Code
15084 status collapsed
15085
15086 \begin_layout Plain Layout
15087 InsetLayout
15088 \end_layout
15089
15090 \end_inset
15091
15092 定義には以下の項目を入れることができます.
15093 \end_layout
15094
15095 \begin_layout Description
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 Argument
15101 \end_layout
15102
15103 \end_inset
15104
15105  [
15106 \begin_inset Flex Code
15107 status collapsed
15108
15109 \begin_layout Plain Layout
15110 整数
15111 \end_layout
15112
15113 \end_inset
15114
15115 ] 現在のレイアウトに関連付けられたコマンドまたは環境の引数番号を定義します.定義は
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 EndArgument
15121 \end_layout
15122
15123 \end_inset
15124
15125 で閉じなくてはなりません.詳細は
15126 \begin_inset CommandInset ref
15127 LatexCommand ref
15128 reference "subsec:段落様式"
15129
15130 \end_inset
15131
15132 参照.
15133 \end_layout
15134
15135 \begin_layout Description
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 BabelPreamble
15141 \end_layout
15142
15143 \end_inset
15144
15145  言語コマンドを変更するプリアンブル.
15146 \begin_inset CommandInset ref
15147 LatexCommand ref
15148 reference "subsec:段落様式の国際化"
15149
15150 \end_inset
15151
15152 参照.
15153 \end_layout
15154
15155 \begin_layout Description
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 BgColor
15161 \end_layout
15162
15163 \end_inset
15164
15165  [
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 <名称>
15171 \end_layout
15172
15173 \end_inset
15174
15175 ] 差込枠の背景色.使用できる色名一覧は
15176 \begin_inset CommandInset ref
15177 LatexCommand ref
15178 reference "chap:色名"
15179
15180 \end_inset
15181
15182 参照.
15183 \end_layout
15184
15185 \begin_layout Description
15186 \begin_inset Flex Code
15187 status collapsed
15188
15189 \begin_layout Plain Layout
15190 ContentAsLabel
15191 \end_layout
15192
15193 \end_inset
15194
15195  [
15196 \begin_inset Flex Code
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200
15201 \emph on
15202 0
15203 \end_layout
15204
15205 \end_inset
15206
15207 ,
15208 \begin_inset space \thinspace{}
15209 \end_inset
15210
15211
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 1
15217 \end_layout
15218
15219 \end_inset
15220
15221 ] 差込枠を閉じた際,差込枠の内容をラベルとして使用するか否か.既定値は偽です.
15222 \end_layout
15223
15224 \begin_layout Description
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 CopyStyle
15230 \end_layout
15231
15232 \end_inset
15233
15234  [<型>] 段落様式と同様です.
15235 \begin_inset CommandInset ref
15236 LatexCommand ref
15237 reference "subsec:段落様式"
15238
15239 \end_inset
15240
15241 参照のこと.完全な型を指定する必要があることに注意してください.例:
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246 CopyStyle Flex:<名称>
15247 \end_layout
15248
15249 \end_inset
15250
15251
15252 \end_layout
15253
15254 \begin_layout Description
15255 \begin_inset Flex Code
15256 status collapsed
15257
15258 \begin_layout Plain Layout
15259 CustomPars
15260 \end_layout
15261
15262 \end_inset
15263
15264  [
15265 \begin_inset Flex Code
15266 status collapsed
15267
15268 \begin_layout Plain Layout
15269
15270 \emph on
15271 0
15272 \end_layout
15273
15274 \end_inset
15275
15276 ,
15277 \begin_inset space \thinspace{}
15278 \end_inset
15279
15280
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285 1
15286 \end_layout
15287
15288 \end_inset
15289
15290 ] 段落を設定するのに,段落設定ダイアログをユーザが使えるかどうかを指定します.
15291 \end_layout
15292
15293 \begin_layout Description
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 Decoration
15299 \end_layout
15300
15301 \end_inset
15302
15303  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので,
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 Classic
15309 \end_layout
15310
15311 \end_inset
15312
15313
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318 Minimalistic
15319 \end_layout
15320
15321 \end_inset
15322
15323
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 Conglomerate
15329 \end_layout
15330
15331 \end_inset
15332
15333 のいずれかを指定することができます.脚註は通常
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 Classic
15339 \end_layout
15340
15341 \end_inset
15342
15343 を使用し,\SpecialChar TeX
15344 コード差込枠は通常
15345 \begin_inset Flex Code
15346 status collapsed
15347
15348 \begin_layout Plain Layout
15349 Minimalistic
15350 \end_layout
15351
15352 \end_inset
15353
15354 ,文字様式は
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 Conglomerate
15360 \end_layout
15361
15362 \end_inset
15363
15364 を使用します.
15365 \end_layout
15366
15367 \begin_layout Description
15368 \begin_inset Flex Code
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 Display
15373 \end_layout
15374
15375 \end_inset
15376
15377  [
15378 \begin_inset Flex Code
15379 status collapsed
15380
15381 \begin_layout Plain Layout
15382 0
15383 \end_layout
15384
15385 \end_inset
15386
15387 ,
15388 \begin_inset space \thinspace{}
15389 \end_inset
15390
15391
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396
15397 \emph on
15398 1
15399 \end_layout
15400
15401 \end_inset
15402
15403
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 LatexType
15409 \end_layout
15410
15411 \end_inset
15412
15413
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 Environment
15419 \end_layout
15420
15421 \end_inset
15422
15423 の時のみ意味をもちます.環境を,出力中で独立して出力させるか,周囲のテキストとインラインで出力させるかを示します.偽にすると,\SpecialChar LaTeX
15424 環境は,
15425 \begin_inset Flex Code
15426 status collapsed
15427
15428 \begin_layout Plain Layout
15429
15430 \backslash
15431 begin{LatexName}
15432 \end_layout
15433
15434 \end_inset
15435
15436 タグと
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441
15442 \backslash
15443 end{LatexName}
15444 \end_layout
15445
15446 \end_inset
15447
15448 タグの後の空白(改行文字を含む)を無視するものと仮定します.
15449 \end_layout
15450
15451 \begin_layout Description
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 End
15457 \end_layout
15458
15459 \end_inset
15460
15461  
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466 InsetLayout
15467 \end_layout
15468
15469 \end_inset
15470
15471 宣言を閉じるのに必要です.
15472 \end_layout
15473
15474 \begin_layout Description
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 Font
15480 \end_layout
15481
15482 \end_inset
15483
15484  本文本体とラベル
15485 \emph on
15486 両方に
15487 \emph default
15488 使用されるフォントです.
15489 \begin_inset CommandInset ref
15490 LatexCommand ref
15491 reference "subsec:フォント指定"
15492
15493 \end_inset
15494
15495 を参照.このフォントを定義すると自動的に
15496 \begin_inset Flex Code
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500 LabelFont
15501 \end_layout
15502
15503 \end_inset
15504
15505 も同じ値に定義されるので,これらを別々の値にしたいときは,これを先に定義してから後に
15506 \begin_inset Flex Code
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 LabelFont
15511 \end_layout
15512
15513 \end_inset
15514
15515 を定義しなくてはならないことに注意してください.
15516 \end_layout
15517
15518 \begin_layout Description
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 FixedWidthPreambleEncoding
15524 \end_layout
15525
15526 \end_inset
15527
15528  [
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533
15534 \emph on
15535 0
15536 \end_layout
15537
15538 \end_inset
15539
15540 ,
15541 \begin_inset space \thinspace{}
15542 \end_inset
15543
15544
15545 \begin_inset Flex Code
15546 status collapsed
15547
15548 \begin_layout Plain Layout
15549 1
15550 \end_layout
15551
15552 \end_inset
15553
15554 ] このレイアウトによって生成される
15555 \begin_inset Flex Code
15556 status collapsed
15557
15558 \begin_layout Plain Layout
15559 BabelPreamble
15560 \end_layout
15561
15562 \end_inset
15563
15564 および
15565 \begin_inset Flex Code
15566 status collapsed
15567
15568 \begin_layout Plain Layout
15569 LangPreamble
15570 \end_layout
15571
15572 \end_inset
15573
15574 コードの訳出後の内容が固定幅エンコーディングを持つように強制するか否か.これは,
15575 \family typewriter
15576 listings
15577 \family default
15578 のように,
15579 \family sans
15580 utf8
15581 \family default
15582 などの可変幅エンコーディングでは機能しない特殊な\SpecialChar LaTeX
15583 パッケージのために必要です.この設定は,Xe\SpecialChar TeX
15584 やLua\SpecialChar TeX
15585 のようなUnicodeを完全に解する\SpecialChar LaTeX
15586 バックエンドを使用してい
15587 る場合には,無視されます.
15588 \end_layout
15589
15590 \begin_layout Description
15591 \begin_inset Flex Code
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595 ForceLocalFontSwitch
15596 \end_layout
15597
15598 \end_inset
15599
15600  [
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605
15606 \emph on
15607 0
15608 \end_layout
15609
15610 \end_inset
15611
15612 ,
15613 \begin_inset space \thinspace{}
15614 \end_inset
15615
15616
15617 \begin_inset Flex Code
15618 status collapsed
15619
15620 \begin_layout Plain Layout
15621 1
15622 \end_layout
15623
15624 \end_inset
15625
15626 ] babel使用時に,常にローカルフォント切替(
15627 \begin_inset Flex Code
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631
15632 \backslash
15633 foreignlanguage
15634 \end_layout
15635
15636 \end_inset
15637
15638 )を使い,グローバル切替(
15639 \begin_inset Flex Code
15640 status collapsed
15641
15642 \begin_layout Plain Layout
15643
15644 \backslash
15645 selectlanguage
15646 \end_layout
15647
15648 \end_inset
15649
15650 など)は使わない.
15651 \end_layout
15652
15653 \begin_layout Description
15654 \begin_inset Flex Code
15655 status collapsed
15656
15657 \begin_layout Plain Layout
15658 ForceLTR
15659 \end_layout
15660
15661 \end_inset
15662
15663  [
15664 \begin_inset Flex Code
15665 status collapsed
15666
15667 \begin_layout Plain Layout
15668
15669 \emph on
15670 0
15671 \end_layout
15672
15673 \end_inset
15674
15675 ,
15676 \begin_inset space \thinspace{}
15677 \end_inset
15678
15679
15680 \begin_inset Flex Code
15681 status collapsed
15682
15683 \begin_layout Plain Layout
15684 1
15685 \end_layout
15686
15687 \end_inset
15688
15689 ] たとえば\SpecialChar TeX
15690 コードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します.うまく機能しません.
15691 \end_layout
15692
15693 \begin_layout Description
15694 \begin_inset Flex Code
15695 status collapsed
15696
15697 \begin_layout Plain Layout
15698 ForceOwnlines
15699 \end_layout
15700
15701 \end_inset
15702
15703  [
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708
15709 \emph on
15710 0
15711 \end_layout
15712
15713 \end_inset
15714
15715 ,
15716 \begin_inset space \thinspace{}
15717 \end_inset
15718
15719
15720 \begin_inset Flex Code
15721 status collapsed
15722
15723 \begin_layout Plain Layout
15724 1
15725 \end_layout
15726
15727 \end_inset
15728
15729 ] \SpecialChar LaTeX
15730 出力において,この差込枠が開始する前と終了する後に,改行を強制します.これは,解析上の目的のために,差込枠が単独行に出力されるように保証します.
15731 \end_layout
15732
15733 \begin_layout Description
15734 \begin_inset Flex Code
15735 status collapsed
15736
15737 \begin_layout Plain Layout
15738 ForcePlain
15739 \end_layout
15740
15741 \end_inset
15742
15743  [
15744 \begin_inset Flex Code
15745 status collapsed
15746
15747 \begin_layout Plain Layout
15748
15749 \emph on
15750 0
15751 \end_layout
15752
15753 \end_inset
15754
15755 ,
15756 \begin_inset space \thinspace{}
15757 \end_inset
15758
15759
15760 \begin_inset Flex Code
15761 status collapsed
15762
15763 \begin_layout Plain Layout
15764 1
15765 \end_layout
15766
15767 \end_inset
15768
15769 ] PlainLayoutを使用するべきなのか,それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します.既定値は偽です.
15770 \end_layout
15771
15772 \begin_layout Description
15773 \begin_inset Flex Code
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 FreeSpacing
15778 \end_layout
15779
15780 \end_inset
15781
15782  [
15783 \emph on
15784
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 0
15790 \end_layout
15791
15792 \end_inset
15793
15794
15795 \emph default
15796 ,
15797 \begin_inset space \thinspace{}
15798 \end_inset
15799
15800
15801 \begin_inset Flex Code
15802 status collapsed
15803
15804 \begin_layout Plain Layout
15805 1
15806 \end_layout
15807
15808 \end_inset
15809
15810 ] 段落様式と同様.
15811 \begin_inset CommandInset ref
15812 LatexCommand ref
15813 reference "subsec:段落様式"
15814
15815 \end_inset
15816
15817 参照.
15818 \end_layout
15819
15820 \begin_layout Description
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 HTML*
15826 \end_layout
15827
15828 \end_inset
15829
15830  これらは,XHTML出力で使用されます.
15831 \begin_inset CommandInset ref
15832 LatexCommand ref
15833 reference "sec:XHTML出力のタグ"
15834
15835 \end_inset
15836
15837 をご覧ください.
15838 \end_layout
15839
15840 \begin_layout Description
15841 \begin_inset Flex Code
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845 InToc
15846 \end_layout
15847
15848 \end_inset
15849
15850  [
15851 \begin_inset Flex Code
15852 status collapsed
15853
15854 \begin_layout Plain Layout
15855
15856 \emph on
15857 0
15858 \end_layout
15859
15860 \end_inset
15861
15862 ,
15863 \begin_inset space \thinspace{}
15864 \end_inset
15865
15866
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 1
15872 \end_layout
15873
15874 \end_inset
15875
15876 ] 「文書構造」ペイン用に出力される文字列に,この差込枠の内容を含めるかどうか.たとえば,節見出しの脚註の内容が,文書構造の目次に表示されることは望まないでしょ
15877 うが,通常,文字様式の内容は表示されることを望むでしょう.既定値は偽,すなわち含めません.
15878 \end_layout
15879
15880 \begin_layout Description
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 KeepEmpty
15886 \end_layout
15887
15888 \end_inset
15889
15890  [
15891 \emph on
15892
15893 \begin_inset Flex Code
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 0
15898 \end_layout
15899
15900 \end_inset
15901
15902
15903 \emph default
15904 ,
15905 \begin_inset space \thinspace{}
15906 \end_inset
15907
15908
15909 \begin_inset Flex Code
15910 status collapsed
15911
15912 \begin_layout Plain Layout
15913 1
15914 \end_layout
15915
15916 \end_inset
15917
15918 ] 段落様式と同様.
15919 \begin_inset CommandInset ref
15920 LatexCommand ref
15921 reference "subsec:段落様式"
15922
15923 \end_inset
15924
15925 参照.
15926 \end_layout
15927
15928 \begin_layout Description
15929 \begin_inset Flex Code
15930 status collapsed
15931
15932 \begin_layout Plain Layout
15933 LabelFont
15934 \end_layout
15935
15936 \end_inset
15937
15938  ラベルに使用されるフォント.第
15939 \begin_inset CommandInset ref
15940 LatexCommand ref
15941 reference "subsec:フォント指定"
15942
15943 \end_inset
15944
15945 節を参照.非効率を回避するため,この定義は
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 Font
15951 \end_layout
15952
15953 \end_inset
15954
15955 の前には決して現れてはなりません.
15956 \end_layout
15957
15958 \begin_layout Description
15959 \begin_inset Flex Code
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 LabelString
15964 \end_layout
15965
15966 \end_inset
15967
15968  [
15969 \begin_inset Flex Code
15970 status collapsed
15971
15972 \begin_layout Plain Layout
15973 文字列
15974 \end_layout
15975
15976 \end_inset
15977
15978 =
15979 \begin_inset Quotes erd
15980 \end_inset
15981
15982
15983 \begin_inset Quotes erd
15984 \end_inset
15985
15986 ]
15987 \lang english
15988  
15989 \lang japanese
15990 ボタンなどに差込枠のラベルとして表示されるもの.差込枠型によっては(\SpecialChar TeX
15991 コードや派生枝),ラベルが動的に変更されます.
15992 \end_layout
15993
15994 \begin_layout Description
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999 LangPreamble
16000 \end_layout
16001
16002 \end_inset
16003
16004  言語依存のプリアンブル.
16005 \begin_inset CommandInset ref
16006 LatexCommand ref
16007 reference "subsec:段落様式の国際化"
16008
16009 \end_inset
16010
16011 参照.
16012 \end_layout
16013
16014 \begin_layout Description
16015 \begin_inset Flex Code
16016 status collapsed
16017
16018 \begin_layout Plain Layout
16019 LatexName
16020 \end_layout
16021
16022 \end_inset
16023
16024  [
16025 \begin_inset Flex Code
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029 <名称>
16030 \end_layout
16031
16032 \end_inset
16033
16034 ] 対応する\SpecialChar LaTeX
16035 関連物の名称.環境名ないしはコマンド名.
16036 \end_layout
16037
16038 \begin_layout Description
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043 LatexParam
16044 \end_layout
16045
16046 \end_inset
16047
16048  [
16049 \begin_inset Flex Code
16050 status collapsed
16051
16052 \begin_layout Plain Layout
16053 <パラメータ>
16054 \end_layout
16055
16056 \end_inset
16057
16058 ]
16059 \lang english
16060  
16061 \lang japanese
16062 対応する
16063 \begin_inset Flex Code
16064 status collapsed
16065
16066 \begin_layout Plain Layout
16067 LatexName
16068 \end_layout
16069
16070 \end_inset
16071
16072 関連物の非必須パラメータ.
16073 \begin_inset Flex Code
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077 []
16078 \end_layout
16079
16080 \end_inset
16081
16082 のような括弧対を含む.このパラメータは\SpecialChar LyX
16083 内部から変更することはできません(変更可能なパラメータには
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 Argument
16089 \end_layout
16090
16091 \end_inset
16092
16093 を使用してください).これは,全ての\SpecialChar LaTeX
16094  
16095 \begin_inset Flex Code
16096 status collapsed
16097
16098 \begin_layout Plain Layout
16099 Argument
16100 \end_layout
16101
16102 \end_inset
16103
16104 の後にそのままの形で出力されます.
16105 \end_layout
16106
16107 \begin_layout Description
16108 \begin_inset Flex Code
16109 status collapsed
16110
16111 \begin_layout Plain Layout
16112 LatexType
16113 \end_layout
16114
16115 \end_inset
16116
16117  [
16118 \begin_inset Flex Code
16119 status collapsed
16120
16121 \begin_layout Plain Layout
16122 Command, Environment, None
16123 \end_layout
16124
16125 \end_inset
16126
16127 ] 様式がどのように\SpecialChar LaTeX
16128 に変換されるべきかを示します
16129 \begin_inset Foot
16130 status collapsed
16131
16132 \begin_layout Plain Layout
16133 これらのルールはSGMLクラスにも適用されるので,
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138 LatexType
16139 \end_layout
16140
16141 \end_inset
16142
16143 の名称は,少しミスリーディングかもしれません.特定の例については,SGMLクラスファイルを見てください.
16144 \end_layout
16145
16146 \end_inset
16147
16148
16149 \end_layout
16150
16151 \begin_deeper
16152 \begin_layout Description
16153 \begin_inset Flex Code
16154 status collapsed
16155
16156 \begin_layout Plain Layout
16157 None
16158 \end_layout
16159
16160 \end_inset
16161
16162  は,何も特別なことは意味しません
16163 \end_layout
16164
16165 \begin_layout Description
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 Command
16171 \end_layout
16172
16173 \end_inset
16174
16175  は,
16176 \begin_inset Flex Code
16177 status collapsed
16178
16179 \begin_layout Plain Layout
16180
16181 \backslash
16182
16183 \emph on
16184 LatexName
16185 \emph default
16186 {\SpecialChar ldots
16187 }
16188 \end_layout
16189
16190 \end_inset
16191
16192 を意味します
16193 \end_layout
16194
16195 \begin_layout Description
16196 \begin_inset Flex Code
16197 status collapsed
16198
16199 \begin_layout Plain Layout
16200 Environment
16201 \end_layout
16202
16203 \end_inset
16204
16205  は,
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210
16211 \backslash
16212 begin{
16213 \emph on
16214 LatexName
16215 \emph default
16216 }\SpecialChar ldots
16217
16218 \backslash
16219 end{
16220 \emph on
16221 LatexName
16222 \emph default
16223 }
16224 \end_layout
16225
16226 \end_inset
16227
16228 を意味します
16229 \end_layout
16230
16231 \begin_layout Standard
16232 上記最後のいくつかをまとめると,\SpecialChar LaTeX
16233 出力は,\SpecialChar LaTeX
16234 型に依存して
16235 \end_layout
16236
16237 \begin_layout LyX-Code
16238
16239 \backslash
16240 LatexName[LatexParam]{\SpecialChar ldots
16241 }
16242 \end_layout
16243
16244 \begin_layout Standard
16245 のようになるか,
16246 \end_layout
16247
16248 \begin_layout LyX-Code
16249
16250 \backslash
16251 begin{LatexName}[LatexParam] \SpecialChar ldots
16252  
16253 \backslash
16254 end{LatexName}.
16255 \end_layout
16256
16257 \begin_layout Standard
16258 となります.
16259 \end_layout
16260
16261 \end_deeper
16262 \begin_layout Description
16263 \begin_inset Flex Code
16264 status collapsed
16265
16266 \begin_layout Plain Layout
16267 LeftDelim
16268 \end_layout
16269
16270 \end_inset
16271
16272  [
16273 \begin_inset Flex Code
16274 status collapsed
16275
16276 \begin_layout Plain Layout
16277 文字列
16278 \end_layout
16279
16280 \end_inset
16281
16282 ] 様式の内容の最初に置かれる文字列.出力中の改行は
16283 \begin_inset Flex Code
16284 status collapsed
16285
16286 \begin_layout Plain Layout
16287 <br/>
16288 \end_layout
16289
16290 \end_inset
16291
16292 で指示できます.
16293 \end_layout
16294
16295 \begin_layout Description
16296 \begin_inset Flex Code
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300 LyxType
16301 \end_layout
16302
16303 \end_inset
16304
16305  
16306 \begin_inset Flex Code
16307 status collapsed
16308
16309 \begin_layout Plain Layout
16310 charstyle
16311 \end_layout
16312
16313 \end_inset
16314
16315
16316 \begin_inset Flex Code
16317 status collapsed
16318
16319 \begin_layout Plain Layout
16320 custom
16321 \end_layout
16322
16323 \end_inset
16324
16325
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 element
16331 \end_layout
16332
16333 \end_inset
16334
16335
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 end
16341 \end_layout
16342
16343 \end_inset
16344
16345 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます.この項目は,自由差込枠に必須であり,かつ自由差込枠でしか意味を持ちません.こ
16346 の項目は,就中,差込枠がどのメニューに表示されるかを決定します.
16347 \begin_inset Flex Code
16348 status collapsed
16349
16350 \begin_layout Plain Layout
16351 LyxType
16352 \end_layout
16353
16354 \end_inset
16355
16356
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 charstyle
16362 \end_layout
16363
16364 \end_inset
16365
16366 に設定すると,
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 MultiPar
16372 \end_layout
16373
16374 \end_inset
16375
16376 が偽に設定されます
16377 \lang english
16378  and 
16379 \lang japanese
16380
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 ForcePlain
16386 \end_layout
16387
16388 \end_inset
16389
16390
16391 \lang english
16392  to true
16393 \lang japanese
16394 .文字様式差込枠で
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399 MultiPar
16400 \end_layout
16401
16402 \end_inset
16403
16404 を真にしたい時には
16405 \lang english
16406 , or 
16407 \lang japanese
16408
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413 ForcePlain
16414 \end_layout
16415
16416 \end_inset
16417
16418
16419 \lang english
16420  to false
16421 \lang japanese
16422
16423 \begin_inset Flex Code
16424 status collapsed
16425
16426 \begin_layout Plain Layout
16427 LyxType
16428 \end_layout
16429
16430 \end_inset
16431
16432 を設定した
16433 \emph on
16434 後に
16435 \emph default
16436 設定すれば,真に設定することができます.
16437 \end_layout
16438
16439 \begin_layout Description
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444 MultiPar
16445 \end_layout
16446
16447 \end_inset
16448
16449  [
16450 \begin_inset Flex Code
16451 status collapsed
16452
16453 \begin_layout Plain Layout
16454
16455 \emph on
16456 0
16457 \end_layout
16458
16459 \end_inset
16460
16461 ,
16462 \begin_inset space \thinspace{}
16463 \end_inset
16464
16465
16466 \begin_inset Flex Code
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470 1
16471 \end_layout
16472
16473 \end_inset
16474
16475 ] この差込枠中に複数の段落を入れることができるかどうか.これは同時に,
16476 \begin_inset Flex Code
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480 CustomPars
16481 \end_layout
16482
16483 \end_inset
16484
16485 を同じ値に設定し,
16486 \begin_inset Flex Code
16487 status collapsed
16488
16489 \begin_layout Plain Layout
16490 ForcePlain
16491 \end_layout
16492
16493 \end_inset
16494
16495 を逆の値に設定します.これらは,
16496 \begin_inset Flex Code
16497 status collapsed
16498
16499 \begin_layout Plain Layout
16500 MultiPar
16501 \end_layout
16502
16503 \end_inset
16504
16505
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 NeedProtect
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 \emph on
16529 0
16530 \end_layout
16531
16532 \end_inset
16533
16534 ,
16535 \begin_inset space \thinspace{}
16536 \end_inset
16537
16538
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543 1
16544 \end_layout
16545
16546 \end_inset
16547
16548 ] 本レイアウト中で脆弱なコマンドを
16549 \begin_inset Flex Code
16550 status collapsed
16551
16552 \begin_layout Plain Layout
16553
16554 \backslash
16555 protect
16556 \end_layout
16557
16558 \end_inset
16559
16560 するか否か(註:当該コマンド自身をprotectするかどうかでは
16561 \emph on
16562 ありません
16563 \emph default
16564 ).既定値は偽です.
16565 \end_layout
16566
16567 \begin_layout Description
16568 \begin_inset Flex Code
16569 status collapsed
16570
16571 \begin_layout Plain Layout
16572 NoInsetLayout
16573 \end_layout
16574
16575 \end_inset
16576
16577  [
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 <レイアウト>
16583 \end_layout
16584
16585 \end_inset
16586
16587 ] 既存の
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 InsetLayout
16593 \end_layout
16594
16595 \end_inset
16596
16597 を削除します.
16598 \end_layout
16599
16600 \begin_layout Description
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605 ObsoletedBy
16606 \end_layout
16607
16608 \end_inset
16609
16610  [
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615 <レイアウト>
16616 \end_layout
16617
16618 \end_inset
16619
16620 ] この古い
16621 \begin_inset Flex Code
16622 status collapsed
16623
16624 \begin_layout Plain Layout
16625 InsetLayout
16626 \end_layout
16627
16628 \end_inset
16629
16630 を引き継いだ
16631 \begin_inset Flex Code
16632 status collapsed
16633
16634 \begin_layout Plain Layout
16635 InsetLayout
16636 \end_layout
16637
16638 \end_inset
16639
16640 の名称.これは,
16641 \begin_inset Flex Code
16642 status collapsed
16643
16644 \begin_layout Plain Layout
16645 InsetLayout
16646 \end_layout
16647
16648 \end_inset
16649
16650 の改名を,後方互換性を維持しながら行うために用いられます.
16651 \end_layout
16652
16653 \begin_layout Description
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 ParbreakIsNewline
16659 \end_layout
16660
16661 \end_inset
16662
16663  [
16664 \begin_inset Flex Code
16665 status collapsed
16666
16667 \begin_layout Plain Layout
16668
16669 \emph on
16670 0
16671 \end_layout
16672
16673 \end_inset
16674
16675 ,
16676 \begin_inset space \thinspace{}
16677 \end_inset
16678
16679
16680 \begin_inset Flex Code
16681 status collapsed
16682
16683 \begin_layout Plain Layout
16684 1
16685 \end_layout
16686
16687 \end_inset
16688
16689 ] 段落様式と同様.
16690 \begin_inset CommandInset ref
16691 LatexCommand ref
16692 reference "subsec:段落様式"
16693
16694 \end_inset
16695
16696 参照.
16697 \end_layout
16698
16699 \begin_layout Description
16700 \begin_inset Flex Code
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 PassThru
16705 \end_layout
16706
16707 \end_inset
16708
16709  [
16710 \emph on
16711
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716 0
16717 \end_layout
16718
16719 \end_inset
16720
16721
16722 \emph default
16723 ,
16724 \begin_inset space \thinspace{}
16725 \end_inset
16726
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 1
16733 \end_layout
16734
16735 \end_inset
16736
16737 ] 段落様式と同様.
16738 \begin_inset CommandInset ref
16739 LatexCommand ref
16740 reference "subsec:段落様式"
16741
16742 \end_inset
16743
16744 参照.
16745 \end_layout
16746
16747 \begin_layout Description
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 Preamble
16753 \end_layout
16754
16755 \end_inset
16756
16757  段落様式と同様.
16758 \begin_inset CommandInset ref
16759 LatexCommand ref
16760 reference "subsec:段落様式"
16761
16762 \end_inset
16763
16764 参照.
16765 \end_layout
16766
16767 \begin_layout Description
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 RefPrefix
16773 \end_layout
16774
16775 \end_inset
16776
16777  [
16778 \begin_inset Flex Code
16779 status collapsed
16780
16781 \begin_layout Plain Layout
16782 文字列
16783 \end_layout
16784
16785 \end_inset
16786
16787 ] この型の差込枠を参照する際,生成されるラベルに使用する前置句.これによって,整形参照を使用することができるようになります.
16788 \end_layout
16789
16790 \begin_layout Description
16791 \begin_inset Flex Code
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795 Requires
16796 \end_layout
16797
16798 \end_inset
16799
16800  [
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 文字列
16806 \end_layout
16807
16808 \end_inset
16809
16810 ] 段落様式と同様.
16811 \begin_inset CommandInset ref
16812 LatexCommand ref
16813 reference "subsec:段落様式"
16814
16815 \end_inset
16816
16817 参照.
16818 \end_layout
16819
16820 \begin_layout Description
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 ResetArgs
16826 \end_layout
16827
16828 \end_inset
16829
16830  [
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835
16836 \emph on
16837 0
16838 \end_layout
16839
16840 \end_inset
16841
16842 ,
16843 \begin_inset space \thinspace{}
16844 \end_inset
16845
16846
16847 \begin_inset Flex Code
16848 status collapsed
16849
16850 \begin_layout Plain Layout
16851 1
16852 \end_layout
16853
16854 \end_inset
16855
16856 ] (
16857 \begin_inset Flex Code
16858 status collapsed
16859
16860 \begin_layout Plain Layout
16861 Argument
16862 \end_layout
16863
16864 \end_inset
16865
16866 タグで定義された)この様式の\SpecialChar LaTeX
16867 引数をリセットします.これは,様式を
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872 CopyStyle
16873 \end_layout
16874
16875 \end_inset
16876
16877 でコピーし,その(必須及び非必須)引数は継承したくない場合に便利です.
16878 \end_layout
16879
16880 \begin_layout Description
16881 \begin_inset Flex Code
16882 status collapsed
16883
16884 \begin_layout Plain Layout
16885 ResetsFont
16886 \end_layout
16887
16888 \end_inset
16889
16890  [
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 0
16896 \end_layout
16897
16898 \end_inset
16899
16900 ,
16901 \begin_inset space \thinspace{}
16902 \end_inset
16903
16904
16905 \begin_inset Flex Code
16906 status collapsed
16907
16908 \begin_layout Plain Layout
16909
16910 \emph on
16911 1
16912 \end_layout
16913
16914 \end_inset
16915
16916 ] この差込枠が周囲の環境と同じフォントを用いるか,独自のフォントを用いるか.既定値は真,すなわち独自のフォントを用います.
16917 \begin_inset Note Note
16918 status open
16919
16920 \begin_layout Plain Layout
16921 This is outdated: The default changed from 1 to 0
16922 \end_layout
16923
16924 \end_inset
16925
16926
16927 \end_layout
16928
16929 \begin_layout Description
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934 RightDelim
16935 \end_layout
16936
16937 \end_inset
16938
16939  [
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 文字列
16945 \end_layout
16946
16947 \end_inset
16948
16949 ] 様式の内容の最後に置かれる文字列.出力中の改行は
16950 \begin_inset Flex Code
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 <br/>
16955 \end_layout
16956
16957 \end_inset
16958
16959 で指示できます.
16960 \end_layout
16961
16962 \begin_layout Description
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 Spellcheck
16968 \end_layout
16969
16970 \end_inset
16971
16972  [
16973 \begin_inset Flex Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 0
16978 \end_layout
16979
16980 \end_inset
16981
16982 ,
16983 \begin_inset space \thinspace{}
16984 \end_inset
16985
16986
16987 \begin_inset Flex Code
16988 status collapsed
16989
16990 \begin_layout Plain Layout
16991
16992 \emph on
16993 1
16994 \end_layout
16995
16996 \end_inset
16997
16998 ] この差込枠の内容をスペルチェックするか否か.既定値は真です.
16999 \end_layout
17000
17001 \begin_layout Subsection
17002 カウンタ
17003 \begin_inset CommandInset label
17004 LatexCommand label
17005 name "subsec:カウンタ"
17006
17007 \end_inset
17008
17009
17010 \end_layout
17011
17012 \begin_layout Standard
17013 テキストクラスには,カウンタ(
17014 \begin_inset Flex MenuItem
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 chapter
17019 \end_layout
17020
17021 \end_inset
17022
17023
17024 \begin_inset Flex MenuItem
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 figure
17029 \end_layout
17030
17031 \end_inset
17032
17033 ・\SpecialChar ldots
17034 )を定義することが必要です.標準的なカウンタは
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 stdcounters.inc
17040 \end_layout
17041
17042 \end_inset
17043
17044 ファイルに含まれているので,作業中のレイアウトファイルに
17045 \end_layout
17046
17047 \begin_layout LyX-Code
17048 Input stdcounters.inc
17049 \end_layout
17050
17051 \begin_layout Standard
17052 と加えるだけで済むことも多いでしょう.しかし自製カウンタを定義したければ,そうすることもできます.カウンタ宣言は,
17053 \end_layout
17054
17055 \begin_layout LyX-Code
17056 Counter カウンタ名
17057 \end_layout
17058
17059 \begin_layout Standard
17060 で始まらなくてはなりません.ここで「
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 カウンタ名
17066 \end_layout
17067
17068 \end_inset
17069
17070 」は,実際のカウンタ名で置き換えます.また,宣言は「
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 End
17076 \end_layout
17077
17078 \end_inset
17079
17080 」で終わらなくてはなりません.
17081 \end_layout
17082
17083 \begin_layout Standard
17084 以下のパラメータを使用することができます.
17085 \end_layout
17086
17087 \begin_layout Description
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092 InitialValue
17093 \end_layout
17094
17095 \end_inset
17096
17097  [
17098 \begin_inset Flex Code
17099 status collapsed
17100
17101 \begin_layout Plain Layout
17102 整数=1
17103 \end_layout
17104
17105 \end_inset
17106
17107 ] カウンタの初期値を設定します.リセットの度にカウンタはこの値に戻ります.通常,既定値1のままで充分でしょう.
17108 \end_layout
17109
17110 \begin_layout Description
17111 \begin_inset Flex Code
17112 status collapsed
17113
17114 \begin_layout Plain Layout
17115 LabelString [文字列=""]
17116 \end_layout
17117
17118 \end_inset
17119
17120  定義されていると,ここで指定した文字列がカウンタの表示の仕方を定義します.この値を指定すると,
17121 \begin_inset Flex Code
17122 status collapsed
17123
17124 \begin_layout Plain Layout
17125 LabelStringAppendix
17126 \end_layout
17127
17128 \end_inset
17129
17130 も同じ値に設定されます.文字列中では,以下の構成要素を使用することができます.
17131 \end_layout
17132
17133 \begin_deeper
17134 \begin_layout Itemize
17135 \begin_inset Flex Code
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139
17140 \backslash
17141 thecounter
17142 \end_layout
17143
17144 \end_inset
17145
17146 は,カウンタ
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 counter
17152 \end_layout
17153
17154 \end_inset
17155
17156
17157 \begin_inset Flex Code
17158 status collapsed
17159
17160 \begin_layout Plain Layout
17161 LabelString
17162 \end_layout
17163
17164 \end_inset
17165
17166 (または
17167 \begin_inset Newline linebreak
17168 \end_inset
17169
17170
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175 LabelStringAppendix
17176 \end_layout
17177
17178 \end_inset
17179
17180 )を展開したもので置き換えられます. 
17181 \end_layout
17182
17183 \begin_layout Itemize
17184 カウンタ値は,\SpecialChar LaTeX
17185 型マクロ
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190
17191 \backslash
17192
17193 \emph on
17194 numbertype
17195 \emph default
17196 {
17197 \emph on
17198 カウンタ
17199 \emph default
17200 }
17201 \end_layout
17202
17203 \end_inset
17204
17205 を用いて表現することができます.ここで
17206 \begin_inset Flex Code
17207 status collapsed
17208
17209 \begin_layout Plain Layout
17210
17211 \emph on
17212 numbertype
17213 \end_layout
17214
17215 \end_inset
17216
17217 は以下のいずれかです.
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 arabic
17223 \end_layout
17224
17225 \end_inset
17226
17227 :1, 2, 3,\SpecialChar ldots
17228
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 alph
17234 \end_layout
17235
17236 \end_inset
17237
17238 :a, b, c, \SpecialChar ldots
17239 (小文字);
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 Alph
17245 \end_layout
17246
17247 \end_inset
17248
17249 :A, B, C, \SpecialChar ldots
17250 (大文字);
17251 \begin_inset Flex Code
17252 status collapsed
17253
17254 \begin_layout Plain Layout
17255 roman
17256 \end_layout
17257
17258 \end_inset
17259
17260 :i, ii, iii, \SpecialChar ldots
17261 (小文字ローマ数字);
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 Roman
17267 \end_layout
17268
17269 \end_inset
17270
17271 :I, II, III\SpecialChar ldots
17272 (大文字ローマ数字).
17273 \end_layout
17274
17275 \end_deeper
17276 \begin_layout Standard
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 LabelString
17282 \end_layout
17283
17284 \end_inset
17285
17286 が定義されていないときは,既定値は以下のように組み立てられます.このカウンタに親カウンタ
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 master
17292 \end_layout
17293
17294 \end_inset
17295
17296
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 Within
17302 \end_layout
17303
17304 \end_inset
17305
17306 で定義)があるときには,文字列
17307 \begin_inset Newline linebreak
17308 \end_inset
17309
17310
17311 \begin_inset Flex Code
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315
17316 \backslash
17317 themaster.
17318 \backslash
17319 arabic{カウンタ}
17320 \end_layout
17321
17322 \end_inset
17323
17324 が使用されます.それ以外の場合は,
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329
17330 \backslash
17331 arabic{カウンタ}
17332 \end_layout
17333
17334 \end_inset
17335
17336 が使用されます.
17337 \end_layout
17338
17339 \begin_layout Description
17340 \begin_inset Flex Code
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344 LabelStringAppendix
17345 \end_layout
17346
17347 \end_inset
17348
17349  [
17350 \begin_inset Flex Code
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354 文字列
17355 \end_layout
17356
17357 \end_inset
17358
17359 =""] 
17360 \begin_inset Flex Code
17361 status collapsed
17362
17363 \begin_layout Plain Layout
17364 LabelString
17365 \end_layout
17366
17367 \end_inset
17368
17369 と同様ですが,付録で使用するためのものです.
17370 \end_layout
17371
17372 \begin_layout Description
17373 \begin_inset Flex Code
17374 status collapsed
17375
17376 \begin_layout Plain Layout
17377 PrettyFormat
17378 \end_layout
17379
17380 \end_inset
17381
17382  [
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387 文字列
17388 \end_layout
17389
17390 \end_inset
17391
17392 =
17393 \begin_inset Quotes erd
17394 \end_inset
17395
17396
17397 \begin_inset Quotes erd
17398 \end_inset
17399
17400 ] このカウンタの整形参照で使用する書式.たとえば,節番号への参照を「Section
17401 \begin_inset space ~
17402 \end_inset
17403
17404 2.4」のように表示させたい場合には,文字列に「##」を含めます.これは,カウンタ番号で置換されます.したがって,節の場合には「Section ##」のようにしま
17405 す.
17406 \end_layout
17407
17408 \begin_layout Description
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 Within
17414 \end_layout
17415
17416 \end_inset
17417
17418  [
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 文字列
17424 \end_layout
17425
17426 \end_inset
17427
17428 =
17429 \begin_inset Quotes erd
17430 \end_inset
17431
17432
17433 \begin_inset Quotes erd
17434 \end_inset
17435
17436 ] これを別のカウンタ名に設定すると,現在のカウンタは,別のカウンタが増加する毎にリセットされます.たとえば,
17437 \begin_inset Flex Code
17438 status collapsed
17439
17440 \begin_layout Plain Layout
17441 subsection
17442 \end_layout
17443
17444 \end_inset
17445
17446
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 section
17452 \end_layout
17453
17454 \end_inset
17455
17456 毎に番号がリセットされます.
17457 \end_layout
17458
17459 \begin_layout Subsection
17460 フォント指定
17461 \begin_inset CommandInset label
17462 LatexCommand label
17463 name "subsec:フォント指定"
17464
17465 \end_inset
17466
17467
17468 \end_layout
17469
17470 \begin_layout Standard
17471 フォント指定は,以下のような形を取ります.
17472 \end_layout
17473
17474 \begin_layout LyX-Code
17475 Font 
17476 \family roman
17477 \emph on
17478 または
17479 \family default
17480 \emph default
17481  LabelFont 
17482 \family roman
17483 \emph on
17484 または
17485 \family default
17486 \emph default
17487  DefaultFont
17488 \end_layout
17489
17490 \begin_layout LyX-Code
17491  ...
17492 \end_layout
17493
17494 \begin_layout LyX-Code
17495 EndFont
17496 \end_layout
17497
17498 \begin_layout Standard
17499 以下のコマンドを使用することができます.
17500 \end_layout
17501
17502 \begin_layout Description
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 Color
17508 \end_layout
17509
17510 \end_inset
17511
17512  [
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517
17518 \emph on
17519 none
17520 \end_layout
17521
17522 \end_inset
17523
17524
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529 black
17530 \end_layout
17531
17532 \end_inset
17533
17534
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 white
17540 \end_layout
17541
17542 \end_inset
17543
17544
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 red
17550 \end_layout
17551
17552 \end_inset
17553
17554
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559 green
17560 \end_layout
17561
17562 \end_inset
17563
17564
17565 \begin_inset Flex Code
17566 status collapsed
17567
17568 \begin_layout Plain Layout
17569 blue
17570 \end_layout
17571
17572 \end_inset
17573
17574
17575 \begin_inset Flex Code
17576 status collapsed
17577
17578 \begin_layout Plain Layout
17579 cyan
17580 \end_layout
17581
17582 \end_inset
17583
17584
17585 \begin_inset Flex Code
17586 status collapsed
17587
17588 \begin_layout Plain Layout
17589 magenta
17590 \end_layout
17591
17592 \end_inset
17593
17594
17595 \begin_inset Flex Code
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599 yellow
17600 \end_layout
17601
17602 \end_inset
17603
17604
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609 brown
17610 \end_layout
17611
17612 \end_inset
17613
17614
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619 darkgray
17620 \end_layout
17621
17622 \end_inset
17623
17624
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 gray
17630 \end_layout
17631
17632 \end_inset
17633
17634
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 lightgray
17640 \end_layout
17641
17642 \end_inset
17643
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 lime
17650 \end_layout
17651
17652 \end_inset
17653
17654
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 orange
17660 \end_layout
17661
17662 \end_inset
17663
17664
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 olive
17670 \end_layout
17671
17672 \end_inset
17673
17674
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 pink
17680 \end_layout
17681
17682 \end_inset
17683
17684
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 purple
17690 \end_layout
17691
17692 \end_inset
17693
17694
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 teal
17700 \end_layout
17701
17702 \end_inset
17703
17704
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 violet
17710 \end_layout
17711
17712 \end_inset
17713
17714 ]
17715 \end_layout
17716
17717 \begin_layout Description
17718 \begin_inset Flex Code
17719 status collapsed
17720
17721 \begin_layout Plain Layout
17722 Family
17723 \end_layout
17724
17725 \end_inset
17726
17727  [
17728 \emph on
17729
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734 Roman
17735 \end_layout
17736
17737 \end_inset
17738
17739
17740 \emph default
17741
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 Sans
17747 \end_layout
17748
17749 \end_inset
17750
17751
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 Typewriter
17757 \end_layout
17758
17759 \end_inset
17760
17761
17762 \end_layout
17763
17764 \begin_layout Description
17765 \begin_inset Flex Code
17766 status collapsed
17767
17768 \begin_layout Plain Layout
17769 Misc
17770 \end_layout
17771
17772 \end_inset
17773
17774  [
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 文字列
17780 \end_layout
17781
17782 \end_inset
17783
17784 ] 有効な引数は,
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 emph
17790 \end_layout
17791
17792 \end_inset
17793
17794
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 noun
17800 \end_layout
17801
17802 \end_inset
17803
17804
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 strikeout
17810 \end_layout
17811
17812 \end_inset
17813
17814
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 underbar
17820 \end_layout
17821
17822 \end_inset
17823
17824
17825 \begin_inset Flex Code
17826 status collapsed
17827
17828 \begin_layout Plain Layout
17829 uuline
17830 \end_layout
17831
17832 \end_inset
17833
17834
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 uwave
17840 \end_layout
17841
17842 \end_inset
17843
17844
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 no_emph
17850 \end_layout
17851
17852 \end_inset
17853
17854
17855 \begin_inset Flex Code
17856 status collapsed
17857
17858 \begin_layout Plain Layout
17859 no_noun
17860 \end_layout
17861
17862 \end_inset
17863
17864
17865 \begin_inset Flex Code
17866 status collapsed
17867
17868 \begin_layout Plain Layout
17869 no_strikeout
17870 \end_layout
17871
17872 \end_inset
17873
17874
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 no_bar
17880 \end_layout
17881
17882 \end_inset
17883
17884
17885 \begin_inset Flex Code
17886 status collapsed
17887
17888 \begin_layout Plain Layout
17889 no_uuline
17890 \end_layout
17891
17892 \end_inset
17893
17894
17895 \begin_inset Flex Code
17896 status collapsed
17897
17898 \begin_layout Plain Layout
17899 no_uwave
17900 \end_layout
17901
17902 \end_inset
17903
17904 です.それぞれ,対応する属性を有効にしたり無効にしたりします.
17905 \begin_inset Newline newline
17906 \end_inset
17907
17908 たとえば,
17909 \begin_inset Flex Code
17910 status collapsed
17911
17912 \begin_layout Plain Layout
17913 emph
17914 \end_layout
17915
17916 \end_inset
17917
17918 は強調を有効にし,
17919 \begin_inset Flex Code
17920 status collapsed
17921
17922 \begin_layout Plain Layout
17923 no_emph
17924 \end_layout
17925
17926 \end_inset
17927
17928 はそれを無効にします.もし後者がわかりにくければ,現在のコンテクストのフォント設定は,一般的に周囲のコンテクストから継承していることを思い出してください.ですか
17929
17930 \begin_inset Flex Code
17931 status collapsed
17932
17933 \begin_layout Plain Layout
17934 no_emph
17935 \end_layout
17936
17937 \end_inset
17938
17939 は,たとえば定理環境で,何をせずとも有効となっている強調を無効にするのです.
17940 \end_layout
17941
17942 \begin_layout Description
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 Series
17948 \end_layout
17949
17950 \end_inset
17951
17952  [
17953 \emph on
17954
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 Medium
17960 \end_layout
17961
17962 \end_inset
17963
17964
17965 \emph default
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 Bold
17972 \end_layout
17973
17974 \end_inset
17975
17976
17977 \end_layout
17978
17979 \begin_layout Description
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 Shape
17985 \end_layout
17986
17987 \end_inset
17988
17989  [
17990 \emph on
17991
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 Up
17997 \end_layout
17998
17999 \end_inset
18000
18001
18002 \emph default
18003
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 Italic
18009 \end_layout
18010
18011 \end_inset
18012
18013
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 SmallCaps
18019 \end_layout
18020
18021 \end_inset
18022
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 Slanted
18029 \end_layout
18030
18031 \end_inset
18032
18033
18034 \end_layout
18035
18036 \begin_layout Description
18037 \begin_inset Flex Code
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 Size
18042 \end_layout
18043
18044 \end_inset
18045
18046  [
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 tiny
18052 \end_layout
18053
18054 \end_inset
18055
18056
18057 \begin_inset Flex Code
18058 status collapsed
18059
18060 \begin_layout Plain Layout
18061 small
18062 \end_layout
18063
18064 \end_inset
18065
18066
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071
18072 \emph on
18073 normal
18074 \end_layout
18075
18076 \end_inset
18077
18078
18079 \begin_inset Flex Code
18080 status collapsed
18081
18082 \begin_layout Plain Layout
18083 large
18084 \end_layout
18085
18086 \end_inset
18087
18088
18089 \begin_inset Flex Code
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 larger
18094 \end_layout
18095
18096 \end_inset
18097
18098
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103 largest
18104 \end_layout
18105
18106 \end_inset
18107
18108
18109 \begin_inset Flex Code
18110 status collapsed
18111
18112 \begin_layout Plain Layout
18113 huge
18114 \end_layout
18115
18116 \end_inset
18117
18118
18119 \begin_inset Flex Code
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 giant
18124 \end_layout
18125
18126 \end_inset
18127
18128 ]
18129 \end_layout
18130
18131 \begin_layout Subsection
18132 \begin_inset CommandInset label
18133 LatexCommand label
18134 name "subsec:引用書式指定"
18135
18136 \end_inset
18137
18138 引用書式指定
18139 \end_layout
18140
18141 \begin_layout Standard
18142 (引用ダイアログやツールチップなどの)\SpecialChar LyX
18143 内部やXHTML出力において,書誌情報をどのように表示するべきかの叙述には,
18144 \begin_inset Flex Code
18145 status collapsed
18146
18147 \begin_layout Plain Layout
18148 CiteFormat
18149 \end_layout
18150
18151 \end_inset
18152
18153 ブロックが使用されています.このブロックは,以下のような形をしています.
18154 \end_layout
18155
18156 \begin_layout LyX-Code
18157 CiteFormat
18158 \end_layout
18159
18160 \begin_layout LyX-Code
18161  article ...
18162 \end_layout
18163
18164 \begin_layout LyX-Code
18165  book ...
18166 \end_layout
18167
18168 \begin_layout LyX-Code
18169 End
18170 \end_layout
18171
18172 \begin_layout Standard
18173 上記の各行は,それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが,このような定義は,Bib\SpecialChar TeX
18174 ファイル中に存在し
18175 うる「項目型」すべてについて与えることができます.特定の定義が与えられなければ,\SpecialChar LyX
18176 は,ソースコード中に定義されている既定書式を使用します.\SpecialChar LyX
18177 は,いくつかの書式を
18178 \begin_inset Flex Code
18179 status collapsed
18180
18181 \begin_layout Plain Layout
18182 stdciteformats.inc
18183 \end_layout
18184
18185 \end_inset
18186
18187 ファイルで事前定義しており,これはほとんどの\SpecialChar LyX
18188 文書クラスにインクルードされています.
18189 \end_layout
18190
18191 \begin_layout Standard
18192 この定義は,Bib\SpecialChar TeX
18193 キーをその値で置換できる機能を持った,簡単な言語を使用しています.キーは,
18194 \begin_inset Flex Code
18195 status collapsed
18196
18197 \begin_layout Plain Layout
18198 %author%
18199 \end_layout
18200
18201 \end_inset
18202
18203 のように
18204 \begin_inset Flex Code
18205 status collapsed
18206
18207 \begin_layout Plain Layout
18208 %
18209 \end_layout
18210
18211 \end_inset
18212
18213 記号でくくらなくてはなりません.したがって,簡単な定義は以下のようになります.
18214 \end_layout
18215
18216 \begin_layout LyX-Code
18217 misc %author%, 
18218 \begin_inset Quotes eld
18219 \end_inset
18220
18221 %title%
18222 \begin_inset Quotes erd
18223 \end_inset
18224
18225
18226 \end_layout
18227
18228 \begin_layout Standard
18229 これは,「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します.
18230 \end_layout
18231
18232 \begin_layout Standard
18233 もちろん,キーが存在するときのみ,キーを出力したい時があるはずです.このようなときには
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 {%volume%[[vol.
18239 \begin_inset space ~
18240 \end_inset
18241
18242 %volume%]]}
18243 \end_layout
18244
18245 \end_inset
18246
18247 のように,条件付きの構成を使用することができます.これは,
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 volume
18253 \end_layout
18254
18255 \end_inset
18256
18257 が存在するならば,「vol.
18258 \begin_inset space ~
18259 \end_inset
18260
18261 」とvolumeキーを出力するという意味です.また,
18262 \begin_inset Newline newline
18263 \end_inset
18264
18265
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270 {%author%[[%author%]][[%editor%, ed.]]}
18271 \end_layout
18272
18273 \end_inset
18274
18275
18276 \begin_inset Newline newline
18277 \end_inset
18278
18279 のように,条件の中にelse節を含めることも可能です.ここでは,もし
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 author
18285 \end_layout
18286
18287 \end_inset
18288
18289 キーが存在するならば出力され,そうでなければeditorキーと「,
18290 \begin_inset space ~
18291 \end_inset
18292
18293 ed.」が出力されます.ここでもキーは,
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 %
18299 \end_layout
18300
18301 \end_inset
18302
18303 記号でくくられていることに注意してください.条件全体は,波括弧で囲まれています.if節およびelse節は,「
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 [[
18309 \end_layout
18310
18311 \end_inset
18312
18313 」と「
18314 \begin_inset Flex Code
18315 status collapsed
18316
18317 \begin_layout Plain Layout
18318 ]]
18319 \end_layout
18320
18321 \end_inset
18322
18323 」の二重角括弧で囲まれています.これらすべてのあいだには,空白は入ってはなりません.
18324 \end_layout
18325
18326 \begin_layout Standard
18327 もう一つ,定義中で使用することのできる文法として,
18328 \begin_inset Flex Code
18329 status collapsed
18330
18331 \begin_layout Plain Layout
18332 {!<i>!}
18333 \end_layout
18334
18335 \end_inset
18336
18337 という形をしたものがあります.これは,「リッチテキスト」を生成するときに使われる整形情報を定義するものです.当然のことながら,平文を書き出すときには,HTMLタ
18338 グを出力させたくはありませんから,HTMLタグは「
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343 {!
18344 \end_layout
18345
18346 \end_inset
18347
18348 」と「
18349 \begin_inset Flex Code
18350 status collapsed
18351
18352 \begin_layout Plain Layout
18353 !}
18354 \end_layout
18355
18356 \end_inset
18357
18358 」でくるんでやらなくてはならないのです.
18359 \end_layout
18360
18361 \begin_layout Standard
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 CiteFormat
18367 \end_layout
18368
18369 \end_inset
18370
18371 ブロックでは,他に2つの特殊な定義が可能です.一つめの例としては,
18372 \end_layout
18373
18374 \begin_layout LyX-Code
18375 !quotetitle 
18376 \begin_inset Quotes eld
18377 \end_inset
18378
18379 %title%
18380 \begin_inset Quotes erd
18381 \end_inset
18382
18383
18384 \end_layout
18385
18386 \begin_layout Standard
18387 といった例が挙げられます.これは,短縮形ないしはマクロであり,
18388 \begin_inset Flex Code
18389 status collapsed
18390
18391 \begin_layout Plain Layout
18392 %!quotetitle%
18393 \end_layout
18394
18395 \end_inset
18396
18397 のように,これがキーであるかのように扱って使用することができます.\SpecialChar LyX
18398 は,
18399 \begin_inset Flex Code
18400 status collapsed
18401
18402 \begin_layout Plain Layout
18403 %!quotetitle%
18404 \end_layout
18405
18406 \end_inset
18407
18408 を,そこで定義されているものを扱う場合と同じように取り扱います.ですから,明白な警告を敢えてさせて頂くと,
18409 \end_layout
18410
18411 \begin_layout LyX-Code
18412 !funfun %funfun%
18413 \end_layout
18414
18415 \begin_layout Standard
18416 のようなことはしないでください.\SpecialChar LyX
18417 は,無限ループに陥るようなことはありませんが,諦めるまでに長いループに入るかもしれません.
18418 \end_layout
18419
18420 \begin_layout Standard
18421 特殊な定義の二つめは,
18422 \end_layout
18423
18424 \begin_layout LyX-Code
18425 _pptext pp.
18426 \end_layout
18427
18428 \begin_layout Standard
18429 のようなものです.これは,文字列の翻訳可能な部分を定義するもので,書誌情報中の関連部分が翻訳されるようにすることができます.
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434 %_pptext%
18435 \end_layout
18436
18437 \end_inset
18438
18439 のように,これをキーとして扱って,定義の中に入れることもできます.これらのうちいくつかは,
18440 \begin_inset Flex Code
18441 status collapsed
18442
18443 \begin_layout Plain Layout
18444 stdciteformats.inc
18445 \end_layout
18446
18447 \end_inset
18448
18449 中に事前定義されています.これは,上記で述べたような意味でのマクロではないことに注意してください.
18450 \end_layout
18451
18452 \begin_layout Standard
18453 以下は,これらの機能を全て使った例です.
18454 \begin_inset VSpace defskip
18455 \end_inset
18456
18457
18458 \end_layout
18459
18460 \begin_layout Standard
18461 \noindent
18462
18463 \family typewriter
18464 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
18465 \end_layout
18466
18467 \begin_layout Standard
18468 \begin_inset VSpace defskip
18469 \end_inset
18470
18471 これは,
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 author
18477 \end_layout
18478
18479 \end_inset
18480
18481 キーが定義されているならば,著者とコンマを出力し,
18482 \begin_inset Flex Code
18483 status collapsed
18484
18485 \begin_layout Plain Layout
18486 author
18487 \end_layout
18488
18489 \end_inset
18490
18491 キーが定義されておらず,
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 editor
18497 \end_layout
18498
18499 \end_inset
18500
18501 キーが定義されているならば,編集者名の後に
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 _edtext
18507 \end_layout
18508
18509 \end_inset
18510
18511 ないしはその翻訳(既定では「ed.」)を出力します.これは実は
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516 stdciteformats.inc
18517 \end_layout
18518
18519 \end_inset
18520
18521 の中で定義されていますので,このファイルをまず読みこめば,ご自身の定義ないしは再定義の中で使用することができます.
18522 \end_layout
18523
18524 \begin_layout Section
18525 \begin_inset CommandInset label
18526 LatexCommand label
18527 name "sec:XHTML出力のタグ"
18528
18529 \end_inset
18530
18531 XHTML出力のタグ
18532 \end_layout
18533
18534 \begin_layout Standard
18535 \SpecialChar LaTeX
18536 やDocBookと同様,\SpecialChar LyX
18537 のXHTML出力の書式も,レイアウト情報によって制御することができます.一般的に,\SpecialChar LyX
18538 は適切な既定値を提供し,前述したように,他のレイアウト
18539 タグに基づいて,既定のCSSスタイルの構成まで行ないます.たとえば,章見出しを適切に整形するためのCSSを書き出すために,\SpecialChar LyX
18540 は,章様式の
18541 \begin_inset Flex Code
18542 status collapsed
18543
18544 \begin_layout Plain Layout
18545 Font
18546 \end_layout
18547
18548 \end_inset
18549
18550 宣言で提供されている情報を利用しようと試みます.
18551 \end_layout
18552
18553 \begin_layout Standard
18554 したがって,多くの場合,使いたい環境やユーザ設定差込枠などのために満足のいくXHTML出力を得るために,まったく何もしなくてよいことになるでしょう.しかしながら
18555 ,これが必要になる場合もあるので,\SpecialChar LyX
18556 は,生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを,たくさん提供しています.
18557 \end_layout
18558
18559 \begin_layout Standard
18560 様式宣言や差込枠宣言の外で使用することができるタグに,
18561 \begin_inset Flex Code
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565 HTMLPreamble
18566 \end_layout
18567
18568 \end_inset
18569
18570
18571 \begin_inset Flex Code
18572 status collapsed
18573
18574 \begin_layout Plain Layout
18575 AddToHTMLPreamble
18576 \end_layout
18577
18578 \end_inset
18579
18580 の2つがあることに注意してください.これらの詳細については,
18581 \begin_inset CommandInset ref
18582 LatexCommand ref
18583 reference "subsec:汎用テキストクラスパラメータ"
18584
18585 \end_inset
18586
18587 をご覧ください.
18588 \end_layout
18589
18590 \begin_layout Subsection
18591 \begin_inset CommandInset label
18592 LatexCommand label
18593 name "subsec:段落様式-XHTML"
18594
18595 \end_inset
18596
18597 段落様式
18598 \end_layout
18599
18600 \begin_layout Standard
18601 \SpecialChar LyX
18602 が段落のために出力するXHTMLの種類は,通常の段落を取り扱っているのか,コマンドを取り扱っているのか,あるいは環境を取り扱っているのかに依存し,これは対応する
18603 \begin_inset Flex Code
18604 status collapsed
18605
18606 \begin_layout Plain Layout
18607 \SpecialChar LaTeX
18608 Type
18609 \end_layout
18610
18611 \end_inset
18612
18613 タグの内容によって決定されます.
18614 \end_layout
18615
18616 \begin_layout Standard
18617 コマンドや通常の段落の場合には,XHTML出力は以下の形になります.
18618 \end_layout
18619
18620 \begin_layout LyX-Code
18621 <tag attr=
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625 value
18626 \begin_inset Quotes erd
18627 \end_inset
18628
18629 >
18630 \end_layout
18631
18632 \begin_layout LyX-Code
18633 <labeltag attr=
18634 \begin_inset Quotes erd
18635 \end_inset
18636
18637 value
18638 \begin_inset Quotes erd
18639 \end_inset
18640
18641 >ラベル</labeltag>
18642 \end_layout
18643
18644 \begin_layout LyX-Code
18645 段落の内容
18646 \end_layout
18647
18648 \begin_layout LyX-Code
18649 </tag>
18650 \end_layout
18651
18652 \begin_layout Standard
18653 もちろん,段落にラベルがなければ,ラベルタグは省略することができます.
18654 \end_layout
18655
18656 \begin_layout Standard
18657 環境のうち,リストの変種でないものに関しては,XHTMLは以下の形を取ります.
18658 \end_layout
18659
18660 \begin_layout LyX-Code
18661 <tag attr=
18662 \begin_inset Quotes erd
18663 \end_inset
18664
18665 value
18666 \begin_inset Quotes erd
18667 \end_inset
18668
18669 >
18670 \end_layout
18671
18672 \begin_layout LyX-Code
18673 <itemtag attr=
18674 \begin_inset Quotes erd
18675 \end_inset
18676
18677 value
18678 \begin_inset Quotes erd
18679 \end_inset
18680
18681 ><labeltag attr=
18682 \begin_inset Quotes erd
18683 \end_inset
18684
18685 value
18686 \begin_inset Quotes erd
18687 \end_inset
18688
18689 >環境ラベル</labeltag>最初の段落.
18690 \end_layout
18691
18692 \begin_layout LyX-Code
18693 </itemtag>
18694 \end_layout
18695
18696 \begin_layout LyX-Code
18697 <itemtag>二つめの段落.</itemtag>
18698 \end_layout
18699
18700 \begin_layout LyX-Code
18701 </tag>
18702 \end_layout
18703
18704 \begin_layout Standard
18705 ラベルは,たとえば定理の場合にそうであるように,最初の段落にだけ出力されることに注意してください.
18706 \end_layout
18707
18708 \begin_layout Standard
18709 リストに関しては,次のような形になります.
18710 \end_layout
18711
18712 \begin_layout LyX-Code
18713 <tag attr=
18714 \begin_inset Quotes erd
18715 \end_inset
18716
18717 value
18718 \begin_inset Quotes erd
18719 \end_inset
18720
18721 >
18722 \end_layout
18723
18724 \begin_layout LyX-Code
18725 <itemtag attr=
18726 \begin_inset Quotes erd
18727 \end_inset
18728
18729 value
18730 \begin_inset Quotes erd
18731 \end_inset
18732
18733 ><labeltag attr=
18734 \begin_inset Quotes erd
18735 \end_inset
18736
18737 value
18738 \begin_inset Quotes erd
18739 \end_inset
18740
18741 >リストのラベル</labeltag>最初の項目.</itemtag>
18742 \end_layout
18743
18744 \begin_layout LyX-Code
18745 <itemtag attr=
18746 \begin_inset Quotes erd
18747 \end_inset
18748
18749 value
18750 \begin_inset Quotes erd
18751 \end_inset
18752
18753 ><labeltag attr=
18754 \begin_inset Quotes erd
18755 \end_inset
18756
18757 value
18758 \begin_inset Quotes erd
18759 \end_inset
18760
18761 >リストのラベル</labeltag>二つめの項目.</itemtag>
18762 \end_layout
18763
18764 \begin_layout LyX-Code
18765 </tag>
18766 \end_layout
18767
18768 \begin_layout LyX-Code
18769
18770 \end_layout
18771
18772 \begin_layout LyX-Code
18773 <tag attr=
18774 \begin_inset Quotes erd
18775 \end_inset
18776
18777 value
18778 \begin_inset Quotes erd
18779 \end_inset
18780
18781 >
18782 \end_layout
18783
18784 \begin_layout LyX-Code
18785 <labeltag attr=
18786 \begin_inset Quotes erd
18787 \end_inset
18788
18789 value
18790 \begin_inset Quotes erd
18791 \end_inset
18792
18793 >リストのラベル</labeltag><itemtag attr=
18794 \begin_inset Quotes erd
18795 \end_inset
18796
18797 value
18798 \begin_inset Quotes erd
18799 \end_inset
18800
18801 >最初の項目.</itemtag>
18802 \end_layout
18803
18804 \begin_layout LyX-Code
18805 <labeltag attr=
18806 \begin_inset Quotes erd
18807 \end_inset
18808
18809 value
18810 \begin_inset Quotes erd
18811 \end_inset
18812
18813 >リストのラベル</labeltag><itemtag attr=
18814 \begin_inset Quotes erd
18815 \end_inset
18816
18817 value
18818 \begin_inset Quotes erd
18819 \end_inset
18820
18821 >二つめの項目</itemtag>
18822 \end_layout
18823
18824 \begin_layout LyX-Code
18825 </tag>
18826 \end_layout
18827
18828 \begin_layout Standard
18829 ここで
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 labeltag
18835 \end_layout
18836
18837 \end_inset
18838
18839
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844 itemtag
18845 \end_layout
18846
18847 \end_inset
18848
18849 の順序が違っていることに注意してください.どちらの順序になるかは,
18850 \begin_inset Flex Code
18851 status collapsed
18852
18853 \begin_layout Plain Layout
18854 HTMLLabelFirst
18855 \end_layout
18856
18857 \end_inset
18858
18859 の設定に依存します.もし
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 HTMLLabelFirst
18865 \end_layout
18866
18867 \end_inset
18868
18869 が偽であれば(既定値),最初のケースのようになり,これが真であれば,二番めのケースのように,labelがitemの外側に来るようになります.
18870 \end_layout
18871
18872 \begin_layout Standard
18873 各段落の特定のタグ出力や属性出力は,以下に述べるようなレイアウトタグを使って制御することができます.しかしながら,前述のように,多くの場合,\SpecialChar LyX
18874 は適切な既定値を生成
18875 するので,たいしたことをしなくても,望ましいXHTML出力を得ることができるということになるはずです.ここで利用出来るタグは,自分の好みにあわせて微調整する目的
18876 でここにあるものと考えてください.
18877 \end_layout
18878
18879 \begin_layout Description
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 HTMLAttr
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 \end_layout
18896
18897 \end_inset
18898
18899 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
18900 \begin_inset Flex Code
18901 status collapsed
18902
18903 \begin_layout Plain Layout
18904 class=`mydiv'
18905 \end_layout
18906
18907 \end_inset
18908
18909 」のようなものです.既定においては,\SpecialChar LyX
18910 は「
18911 \begin_inset Flex Code
18912 status collapsed
18913
18914 \begin_layout Plain Layout
18915 class=`レイアウト名'
18916 \end_layout
18917
18918 \end_inset
18919
18920 」と出力します.ここで
18921 \begin_inset Flex Code
18922 status collapsed
18923
18924 \begin_layout Plain Layout
18925 レイアウト名
18926 \end_layout
18927
18928 \end_inset
18929
18930 は,レイアウトの\SpecialChar LyX
18931 名であり,chapterのように小文字で記述します.
18932 \end_layout
18933
18934 \begin_layout Description
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939 HTMLForceCSS
18940 \end_layout
18941
18942 \end_inset
18943
18944  [
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949
18950 \emph on
18951 0
18952 \emph default
18953 ,1
18954 \end_layout
18955
18956 \end_inset
18957
18958 ] 
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 HTMLStyle
18964 \end_layout
18965
18966 \end_inset
18967
18968 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
18969 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 1
18975 \end_layout
18976
18977 \end_inset
18978
18979 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 0
18985 \end_layout
18986
18987 \end_inset
18988
18989 です.
18990 \end_layout
18991
18992 \begin_layout Description
18993 \begin_inset Flex Code
18994 status collapsed
18995
18996 \begin_layout Plain Layout
18997 HTMLItem
18998 \end_layout
18999
19000 \end_inset
19001
19002  [
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 文字列
19008 \end_layout
19009
19010 \end_inset
19011
19012 ] 環境の段落に使用されるタグ.上記各例の
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 itemtag
19018 \end_layout
19019
19020 \end_inset
19021
19022 を置き換えます.既定値は
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 div
19028 \end_layout
19029
19030 \end_inset
19031
19032 です.
19033 \end_layout
19034
19035 \begin_layout Description
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 HTMLItemAttr
19041 \end_layout
19042
19043 \end_inset
19044
19045  [
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 文字列
19051 \end_layout
19052
19053 \end_inset
19054
19055 ] itemタグの属性.既定値は
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 class=`レイアウト名_item'
19061 \end_layout
19062
19063 \end_inset
19064
19065 です.ここには,様式情報は含まれては
19066 \emph on
19067 なりません
19068 \emph default
19069 .その目的のためには,
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 HTMLStyle
19075 \end_layout
19076
19077 \end_inset
19078
19079 を使用してください.
19080 \end_layout
19081
19082 \begin_layout Description
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 HTMLLabel
19088 \end_layout
19089
19090 \end_inset
19091
19092  [
19093 \begin_inset Flex Code
19094 status collapsed
19095
19096 \begin_layout Plain Layout
19097 文字列
19098 \end_layout
19099
19100 \end_inset
19101
19102 ] 段落と項目ラベルに使用されるタグ.上記各例の
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 labeltag
19108 \end_layout
19109
19110 \end_inset
19111
19112 を置き換えます.
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 LabelType
19118 \end_layout
19119
19120 \end_inset
19121
19122
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 Top_Environment
19128 \end_layout
19129
19130 \end_inset
19131
19132
19133 \begin_inset Flex Code
19134 status collapsed
19135
19136 \begin_layout Plain Layout
19137 Centered_Top_Environment
19138 \end_layout
19139
19140 \end_inset
19141
19142 の時は,既定値は
19143 \begin_inset Flex Code
19144 status collapsed
19145
19146 \begin_layout Plain Layout
19147 div
19148 \end_layout
19149
19150 \end_inset
19151
19152 ですが,それ以外の時の既定値は
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 span
19158 \end_layout
19159
19160 \end_inset
19161
19162 です.
19163 \end_layout
19164
19165 \begin_layout Description
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 HTMLLabelAttr
19171 \end_layout
19172
19173 \end_inset
19174
19175  [
19176 \begin_inset Flex Code
19177 status collapsed
19178
19179 \begin_layout Plain Layout
19180 文字列
19181 \end_layout
19182
19183 \end_inset
19184
19185 ] labelタグの属性.既定値は
19186 \begin_inset Flex Code
19187 status collapsed
19188
19189 \begin_layout Plain Layout
19190 class=`レイアウト名_label'
19191 \end_layout
19192
19193 \end_inset
19194
19195 です.ここには,様式情報は含まれては
19196 \emph on
19197 なりません
19198 \emph default
19199 .その目的のためには,
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 HTMLStyle
19205 \end_layout
19206
19207 \end_inset
19208
19209 を使用してください.
19210 \end_layout
19211
19212 \begin_layout Description
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 HTMLLabelFirst
19218 \end_layout
19219
19220 \end_inset
19221
19222  [
19223 \begin_inset Flex Code
19224 status collapsed
19225
19226 \begin_layout Plain Layout
19227
19228 \emph on
19229 0
19230 \emph default
19231 ,1
19232 \end_layout
19233
19234 \end_inset
19235
19236 ] このタグは,リスト関係環境でのみ意味を持ち,labelタグが,itemタグの前に出力されるか,中に出力されるかを制御します.これは,たとえば,descrip
19237 tion環境の中で,
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 `<dt>\SpecialChar ldots
19243 </dt><dd>\SpecialChar ldots
19244 </dd>
19245 \end_layout
19246
19247 \end_inset
19248
19249 という形を得るために使用されます.既定値は
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 0
19255 \end_layout
19256
19257 \end_inset
19258
19259 で,labelタグはitemタグの中に出力されます.
19260 \end_layout
19261
19262 \begin_layout Description
19263 \begin_inset Flex Code
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 HTMLPreamble
19268 \end_layout
19269
19270 \end_inset
19271
19272  この様式が使用されたときに,
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 <head>
19278 \end_layout
19279
19280 \end_inset
19281
19282 セクションに出力される情報.これは,たとえば,
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 onclick
19288 \end_layout
19289
19290 \end_inset
19291
19292 ハンドラを定義するために
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 <script>
19298 \end_layout
19299
19300 \end_inset
19301
19302 ブロックをインクルードするのに使用することができます.
19303 \end_layout
19304
19305 \begin_layout Description
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 HTMLStyle
19311 \end_layout
19312
19313 \end_inset
19314
19315   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 <style>
19321 \end_layout
19322
19323 \end_inset
19324
19325 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 EndHTMLStyle
19331 \end_layout
19332
19333 \end_inset
19334
19335 で閉じなくてはなりません.
19336 \end_layout
19337
19338 \begin_layout Description
19339 \begin_inset Flex Code
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 HTMLTag
19344 \end_layout
19345
19346 \end_inset
19347
19348  [
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353 文字列
19354 \end_layout
19355
19356 \end_inset
19357
19358 ] 主幹ラベルに使用されるタグ.上記各例の
19359 \begin_inset Flex Code
19360 status collapsed
19361
19362 \begin_layout Plain Layout
19363 tag
19364 \end_layout
19365
19366 \end_inset
19367
19368 を置き換えます.既定値は
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373 div
19374 \end_layout
19375
19376 \end_inset
19377
19378 です.
19379 \end_layout
19380
19381 \begin_layout Description
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 HTMLTitle
19387 \end_layout
19388
19389 \end_inset
19390
19391  [
19392 \begin_inset Flex Code
19393 status collapsed
19394
19395 \begin_layout Plain Layout
19396
19397 \emph on
19398 0
19399 \emph default
19400 ,1
19401 \end_layout
19402
19403 \end_inset
19404
19405 ] この様式が,XHTMLファイルの
19406 \begin_inset Flex Code
19407 status collapsed
19408
19409 \begin_layout Plain Layout
19410 <title>
19411 \end_layout
19412
19413 \end_inset
19414
19415 タグを生成するのに使用する様式であるという印をつけます.既定値は偽です.
19416 \begin_inset Flex Code
19417 status collapsed
19418
19419 \begin_layout Plain Layout
19420 stdtitle.inc
19421 \end_layout
19422
19423 \end_inset
19424
19425 ファイルでは,
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 title
19431 \end_layout
19432
19433 \end_inset
19434
19435 環境のこの項目を真に設定しています.
19436 \end_layout
19437
19438 \begin_layout Subsection
19439 差込枠レイアウトXHTML
19440 \end_layout
19441
19442 \begin_layout Standard
19443 差込枠のXHTML出力も,レイアウトファイル内の情報によって制御することができます
19444 \begin_inset Foot
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 現在のところ,これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で,「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
19449 ん.
19450 \end_layout
19451
19452 \end_inset
19453
19454 .ここでも,\SpecialChar LyX
19455 は適切な既定値を提供しようと試み,既定のCSS様式を構成します.しかし,すべてカスタマイズ可能です.
19456 \end_layout
19457
19458 \begin_layout Standard
19459 \SpecialChar LyX
19460 が差込枠用に出力するXHTMLは,以下の形を取ります.
19461 \end_layout
19462
19463 \begin_layout LyX-Code
19464 <tag attr=
19465 \begin_inset Quotes erd
19466 \end_inset
19467
19468 value
19469 \begin_inset Quotes erd
19470 \end_inset
19471
19472 >
19473 \end_layout
19474
19475 \begin_layout LyX-Code
19476 <labeltag>ラベル</labeltag>
19477 \end_layout
19478
19479 \begin_layout LyX-Code
19480 <innertag attr=
19481 \begin_inset Quotes erd
19482 \end_inset
19483
19484 value
19485 \begin_inset Quotes erd
19486 \end_inset
19487
19488 >差込枠の内容.</innertag>
19489 \end_layout
19490
19491 \begin_layout LyX-Code
19492 </tag>
19493 \end_layout
19494
19495 \begin_layout Standard
19496 差込枠が多段落を許可している—つまり
19497 \begin_inset Flex Code
19498 status collapsed
19499
19500 \begin_layout Plain Layout
19501 MultiPar
19502 \end_layout
19503
19504 \end_inset
19505
19506 が真—ならば,差込枠の内容は,それ自身段落として出力され,それらの段落に用いられる様式(標準,引用など)を用いて整形されます.もちろん,段落にラベルがなければ,
19507 labelタグは省略され,ラベルがあれば,現在のところ,つねに
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 span
19513 \end_layout
19514
19515 \end_inset
19516
19517 が用いられます.innerタグは非必須であり,既定では出力されません.各差込枠用に出力される特定のタグや属性は,以下のレイアウトタグによって制御することができま
19518 す.
19519 \end_layout
19520
19521 \begin_layout Description
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526 HTMLAttr
19527 \end_layout
19528
19529 \end_inset
19530
19531  [
19532 \begin_inset Flex Code
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 文字列
19537 \end_layout
19538
19539 \end_inset
19540
19541 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 class=`myinset' onclick=`\SpecialChar ldots
19547 '
19548 \end_layout
19549
19550 \end_inset
19551
19552 」のようなものです.既定においては,\SpecialChar LyX
19553 は「
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 class=`差込枠名'
19559 \end_layout
19560
19561 \end_inset
19562
19563 」と出力します.ここで
19564 \begin_inset Flex Code
19565 status collapsed
19566
19567 \begin_layout Plain Layout
19568 差込枠名
19569 \end_layout
19570
19571 \end_inset
19572
19573 は,差込枠の\SpecialChar LyX
19574 名であり,小文字で記述します.アルファベットや数字以外の文字は,アンダースコアに置き換えられます.
19575 \end_layout
19576
19577 \begin_layout Description
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 HTMLForceCSS
19583 \end_layout
19584
19585 \end_inset
19586
19587  [
19588 \begin_inset Flex Code
19589 status collapsed
19590
19591 \begin_layout Plain Layout
19592
19593 \emph on
19594 0
19595 \emph default
19596 ,1
19597 \end_layout
19598
19599 \end_inset
19600
19601 ] 
19602 \begin_inset Flex Code
19603 status collapsed
19604
19605 \begin_layout Plain Layout
19606 HTMLStyle
19607 \end_layout
19608
19609 \end_inset
19610
19611 で追加情報が明示的に与えられているときでも,\SpecialChar LyX
19612 がこのレイアウト用に生成する既定CSS情報を出力するか否か.これを
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 1
19618 \end_layout
19619
19620 \end_inset
19621
19622 にすると,生成されたCSSを完全に上書きする代わりに,変更したり追加したりすることができます.既定値は
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 0
19628 \end_layout
19629
19630 \end_inset
19631
19632 です.
19633 \end_layout
19634
19635 \begin_layout Description
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 HTMLInnerAttr
19641 \end_layout
19642
19643 \end_inset
19644
19645  [
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 文字列
19651 \end_layout
19652
19653 \end_inset
19654
19655 ] innerタグの属性.既定値は
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 class=`差込枠名_inner'
19661 \end_layout
19662
19663 \end_inset
19664
19665 です.
19666 \end_layout
19667
19668 \begin_layout Description
19669 \begin_inset Flex Code
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 HTMLInnerTag
19674 \end_layout
19675
19676 \end_inset
19677
19678  [
19679 \begin_inset Flex Code
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 文字列
19684 \end_layout
19685
19686 \end_inset
19687
19688 ] innerタグです.上記各例の
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 innertag
19694 \end_layout
19695
19696 \end_inset
19697
19698 を置き換えます.既定値はなしです.
19699 \end_layout
19700
19701 \begin_layout Description
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 HTMLIsBlock
19707 \end_layout
19708
19709 \end_inset
19710
19711  [
19712 \begin_inset Flex Code
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 0,
19717 \emph on
19718 1
19719 \end_layout
19720
19721 \end_inset
19722
19723 ] この差込枠が(脚註のように)独立した文字列ブロックを表すのか,それとも,(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか.既定値は1です.
19724 \end_layout
19725
19726 \begin_layout Description
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 HTMLLabel
19732 \end_layout
19733
19734 \end_inset
19735
19736  [
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 文字列
19742 \end_layout
19743
19744 \end_inset
19745
19746 ] 場合によっては,カウンタへの参照を含む,この差込枠のラベル.たとえば,脚註用には
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751
19752 \backslash
19753 arabic{footnote}
19754 \end_layout
19755
19756 \end_inset
19757
19758 など.これは非必須であり,既定値はありません.
19759 \end_layout
19760
19761 \begin_layout Description
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 HTMLPreamble
19767 \end_layout
19768
19769 \end_inset
19770
19771  この様式が使用されたときに,
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 <head>
19777 \end_layout
19778
19779 \end_inset
19780
19781 セクションに出力される情報.これは,たとえば,
19782 \begin_inset Flex Code
19783 status collapsed
19784
19785 \begin_layout Plain Layout
19786 onclick
19787 \end_layout
19788
19789 \end_inset
19790
19791 ハンドラを定義するために
19792 \begin_inset Flex Code
19793 status collapsed
19794
19795 \begin_layout Plain Layout
19796 <script>
19797 \end_layout
19798
19799 \end_inset
19800
19801 ブロックをインクルードするのに使用することができます.
19802 \end_layout
19803
19804 \begin_layout Description
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 HTMLStyle
19810 \end_layout
19811
19812 \end_inset
19813
19814   この様式が使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 <style>
19820 \end_layout
19821
19822 \end_inset
19823
19824 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
19825 \end_layout
19826
19827 \begin_layout Description
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 HTMLTag
19833 \end_layout
19834
19835 \end_inset
19836
19837  [
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 文字列
19843 \end_layout
19844
19845 \end_inset
19846
19847 ] 主幹ラベルに使用されるタグ.上記各例の
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 tag
19853 \end_layout
19854
19855 \end_inset
19856
19857 を置き換えます.既定値は
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 MultiPar
19863 \end_layout
19864
19865 \end_inset
19866
19867 の設定に依存し,
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 MultiPar
19873 \end_layout
19874
19875 \end_inset
19876
19877 が真ならば
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 div
19883 \end_layout
19884
19885 \end_inset
19886
19887 ,偽ならば
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 span
19893 \end_layout
19894
19895 \end_inset
19896
19897 です.
19898 \end_layout
19899
19900 \begin_layout Subsection
19901 フロートXHTML
19902 \end_layout
19903
19904 \begin_layout Standard
19905 フロートのXHTML出力も,レイアウトファイル内の情報によって制御することができます.出力は,以下の形を取ります.
19906 \end_layout
19907
19908 \begin_layout LyX-Code
19909 <tag attr=
19910 \begin_inset Quotes erd
19911 \end_inset
19912
19913 value
19914 \begin_inset Quotes erd
19915 \end_inset
19916
19917 >
19918 \end_layout
19919
19920 \begin_layout LyX-Code
19921 フロートの内容.
19922 \end_layout
19923
19924 \begin_layout LyX-Code
19925 </tag>
19926 \end_layout
19927
19928 \begin_layout Standard
19929 キャプションは,存在している場合には,独立した差込枠となり,そのような形で出力されます.その外観は,キャプション差込枠のInsetLayoutで制御することがで
19930 きます.
19931 \end_layout
19932
19933 \begin_layout Description
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 HTMLAttr
19939 \end_layout
19940
19941 \end_inset
19942
19943  [
19944 \begin_inset Flex Code
19945 status collapsed
19946
19947 \begin_layout Plain Layout
19948 文字列
19949 \end_layout
19950
19951 \end_inset
19952
19953 ] 主幹タグと共に出力される属性情報を指定します.たとえば,「
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958 class=`myfloat' onclick=`\SpecialChar ldots
19959 '
19960 \end_layout
19961
19962 \end_inset
19963
19964 」のようなものです.既定においては,\SpecialChar LyX
19965 は「
19966 \begin_inset Flex Code
19967 status collapsed
19968
19969 \begin_layout Plain Layout
19970 class=`float フロート-フロート型'
19971 \end_layout
19972
19973 \end_inset
19974
19975 」と出力します.ここで
19976 \begin_inset Flex Code
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 フロート型
19981 \end_layout
19982
19983 \end_inset
19984
19985 は,フロート宣言で定義された(
19986 \begin_inset CommandInset ref
19987 LatexCommand ref
19988 reference "subsec:フロート"
19989
19990 \end_inset
19991
19992 参照),この型のフロートの\SpecialChar LyX
19993 名です.ただし,これは小文字に変換され,アルファベットや数字でない文字はアンダースコアに変換されます.例:float-table.
19994 \end_layout
19995
19996 \begin_layout Description
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 HTMLStyle
20002 \end_layout
20003
20004 \end_inset
20005
20006   このフロートが使用されたときに,インクルードするCSSスタイル情報.これは,レイアウトが生成する
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 <style>
20012 \end_layout
20013
20014 \end_inset
20015
20016 ブロックで自動的に包まれますので,CSS自体をインクルードするだけで大丈夫です.
20017 \end_layout
20018
20019 \begin_layout Description
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 HTMLTag
20025 \end_layout
20026
20027 \end_inset
20028
20029  [
20030 \begin_inset Flex Code
20031 status collapsed
20032
20033 \begin_layout Plain Layout
20034 文字列
20035 \end_layout
20036
20037 \end_inset
20038
20039 ] このフロートに使用されるタグ.上記各例の
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 tag
20045 \end_layout
20046
20047 \end_inset
20048
20049 を置き換えます.既定値は
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 div
20055 \end_layout
20056
20057 \end_inset
20058
20059 であり,ほとんどの場合変更する必要はありません.
20060 \end_layout
20061
20062 \begin_layout Subsection
20063 書誌情報の整形
20064 \end_layout
20065
20066 \begin_layout Standard
20067 書誌情報は,
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 CiteFormat
20073 \end_layout
20074
20075 \end_inset
20076
20077 ブロックを使用して整形することができます.詳細については,
20078 \begin_inset CommandInset ref
20079 LatexCommand ref
20080 reference "subsec:引用書式指定"
20081
20082 \end_inset
20083
20084 を参照してください.
20085 \end_layout
20086
20087 \begin_layout Subsection
20088 \SpecialChar LyX
20089 が生成したCSS
20090 \end_layout
20091
20092 \begin_layout Standard
20093 \SpecialChar LyX
20094 は,提供されている他のレイアウト情報に基づいて,差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを,これまでに何度か触れました.この節では,\SpecialChar LyX
20095
20096 がどのレイアウト情報を,どのように使うのか,ひとこと述べておきたいと思います.
20097 \end_layout
20098
20099 \begin_layout Standard
20100 \SpecialChar LyX
20101 は,現在のところ,
20102 \begin_inset Flex Code
20103 status collapsed
20104
20105 \begin_layout Plain Layout
20106 Font
20107 \end_layout
20108
20109 \end_inset
20110
20111 宣言で指定されている
20112 \begin_inset Flex Code
20113 status collapsed
20114
20115 \begin_layout Plain Layout
20116 Family
20117 \end_layout
20118
20119 \end_inset
20120
20121
20122 \begin_inset Flex Code
20123 status collapsed
20124
20125 \begin_layout Plain Layout
20126 Series
20127 \end_layout
20128
20129 \end_inset
20130
20131
20132 \begin_inset Flex Code
20133 status collapsed
20134
20135 \begin_layout Plain Layout
20136 Shape
20137 \end_layout
20138
20139 \end_inset
20140
20141
20142 \begin_inset Flex Code
20143 status collapsed
20144
20145 \begin_layout Plain Layout
20146 Size
20147 \end_layout
20148
20149 \end_inset
20150
20151 を利用して,フォント情報についてのみCSSを自動生成します(
20152 \begin_inset CommandInset ref
20153 LatexCommand ref
20154 reference "subsec:フォント指定"
20155
20156 \end_inset
20157
20158 を参照).この変換は,きわめて分かりやすく自明です.たとえば,「
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 Family Sans
20164 \end_layout
20165
20166 \end_inset
20167
20168 」は「
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 font-family: sans-serif
20174 \end_layout
20175
20176 \end_inset
20177
20178 」になります.\SpecialChar LyX
20179 の寸法とCSSの寸法のあいだの対応は,少し複雑ですが,それでも直感的に分かります.詳細については,
20180 \begin_inset Flex URL
20181 status collapsed
20182
20183 \begin_layout Plain Layout
20184
20185 src/FontInfo.cpp
20186 \end_layout
20187
20188 \end_inset
20189
20190
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195 getSizeCSS()
20196 \end_layout
20197
20198 \end_inset
20199
20200 関数をご覧ください.
20201 \end_layout
20202
20203 \begin_layout Chapter
20204 外部素材を取り込む
20205 \begin_inset CommandInset label
20206 LatexCommand label
20207 name "chap:外部素材を取り込む"
20208
20209 \end_inset
20210
20211
20212 \end_layout
20213
20214 \begin_layout Standard
20215 \begin_inset Box Shadowbox
20216 position "t"
20217 hor_pos "c"
20218 has_inner_box 1
20219 inner_pos "t"
20220 use_parbox 0
20221 use_makebox 0
20222 width "100col%"
20223 special "none"
20224 height "1in"
20225 height_special "totalheight"
20226 thickness "0.4pt"
20227 separation "3pt"
20228 shadowsize "4pt"
20229 framecolor "black"
20230 backgroundcolor "none"
20231 status open
20232
20233 \begin_layout Plain Layout
20234 【警告】本説明書のこの部分は,しばらく更新されていません.もちろんまだ正確であることを期待していますが,保証の限りではありません.
20235 \end_layout
20236
20237 \end_inset
20238
20239
20240 \end_layout
20241
20242 \begin_layout Standard
20243 \SpecialChar LyX
20244 外部のソースから素材を使用する方法は,取扱説明書『
20245 \emph on
20246 埋込オブジェクト篇
20247 \emph default
20248 』で詳細にカバーされています.本章は,新種の素材を取り込む際に,舞台裏で何をする必要があるかをカバーします.
20249 \end_layout
20250
20251 \begin_layout Section
20252 どのように機能するのか
20253 \end_layout
20254
20255 \begin_layout Standard
20256 外部素材の機能は,ひな型の概念に基づいています.ひな型は,\SpecialChar LyX
20257 がある型の素材とどのように橋渡しをするべきかを指定するものです.同梱物として,\SpecialChar LyX
20258 は,Xfigの図や,様々
20259 なラスター形式画像,チェス棋譜,LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます.実際に何が入っているかは,
20260 \begin_inset Flex MenuItem
20261 status collapsed
20262
20263 \begin_layout Plain Layout
20264 挿入\SpecialChar menuseparator
20265 ファイル\SpecialChar menuseparator
20266 外部素材
20267 \end_layout
20268
20269 \end_inset
20270
20271 メニューで見ることができます.さらに,特定の型の素材をサポートするのに,自分自身のひな型を作成することも可能です.後でどのようなことをすればいいか詳細に説明しま
20272 すが,できればあなたが作ったすべてのひな型を投稿して,我々が\SpecialChar LyX
20273 の後の版に取り込むことができるようにしてくださることを希望します.
20274 \end_layout
20275
20276 \begin_layout Standard
20277 外部素材の機能におけるもう一つの基本的な発想は,最終素材の元となるオリジナルファイルと,書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
20278 いることです.たとえば,
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 Xfig
20284 \end_layout
20285
20286 \end_inset
20287
20288 で作成した図の場合を考えてみましょう.Xfigアプリケーション自体は,
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293 .fig
20294 \end_layout
20295
20296 \end_inset
20297
20298 拡張子を持つオリジナルファイルを操作します.Xfigで図を作成したり変更したりして,作業が終われば
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 fig
20304 \end_layout
20305
20306 \end_inset
20307
20308 ファイルに保存します.この図をお使いの文書に取り込みたいときには,\SpecialChar LaTeX
20309 ファイルにそのままインクルードできるように,
20310 \begin_inset Flex Code
20311 status collapsed
20312
20313 \begin_layout Plain Layout
20314 transfig
20315 \end_layout
20316
20317 \end_inset
20318
20319 を呼び出してPostScriptファイルを生成します.この場合には,
20320 \begin_inset Flex Code
20321 status collapsed
20322
20323 \begin_layout Plain Layout
20324 .fig
20325 \end_layout
20326
20327 \end_inset
20328
20329 ファイルがオリジナルファイルであり,PostScriptファイルが生成ファイルになります.
20330 \end_layout
20331
20332 \begin_layout Standard
20333 この区別は,文書を執筆している最中に,素材を更新することができるようにするために重要です.さらに,これによって,複数の書き出し書式をサポートするために必要な柔軟
20334 性が提供されます.たとえば,平文テキストファイルの場合には,図を生のPostScriptファイルとして取り込むのは,とても褒められた発想とはいえません.むしろ,
20335 その図への参照だけを含めるか,最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう.\SpecialChar LyX
20336 の外部素材マネジメントは
20337 ,\SpecialChar LyX
20338 がサポートする各書き出し書式別に仕分けしているので,ユーザがこれを行うことが可能となっています.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 \SpecialChar LyX
20343 の外部素材マネジメントは,書き出し書式によって異なる生成物をサポートすることの他に,編集・閲覧アプリケーションを緊密に統合することもサポートします.Xfigの図
20344 の場合には,\SpecialChar LyX
20345 の外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ,ダブルクリックすることで生成されたPostScriptファイ
20346 ルをGhostviewで閲覧することができます.もうコマンドラインをもてあそんだり,オリジナルファイルや生成ファイルがどこにあるか探したり変更を加えるためにファ
20347 イルブラウザをいじくり回す必要はないのです.このようにして,文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し,最終的により生産性を上げることが
20348 できるようになるのです.
20349 \end_layout
20350
20351 \begin_layout Section
20352 外用ひな型設定ファイル
20353 \end_layout
20354
20355 \begin_layout Standard
20356 \SpecialChar LyX
20357 に自製の外用ひな型を付け加えるのは,比較的簡単です.しかしながら,これを不用心に行ってしまうと,たいていの場合,簡単に濫用されてしまうようなセキュリティホールを
20358 作ってしまいがちであることを心に留めておいてください.したがって,これを実行に移す前に,
20359 \begin_inset CommandInset ref
20360 LatexCommand ref
20361 reference "sec:セキュリティに関する論点"
20362
20363 \end_inset
20364
20365 のセキュリティに関する議論を読んでおいてください.
20366 \end_layout
20367
20368 \begin_layout Standard
20369 このことに言及した上で,あなたが作成した面白いひな型は,ぜひ投稿してください.
20370 \end_layout
20371
20372 \begin_layout Standard
20373 外用ひな型は,
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378 LyXDir/lib/external_templates
20379 \end_layout
20380
20381 \end_inset
20382
20383 ファイルで定義されています.自分用の版を
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 UserDir/external_templates
20389 \end_layout
20390
20391 \end_inset
20392
20393 に置くこともできます.
20394 \end_layout
20395
20396 \begin_layout Standard
20397 典型的なひな型は以下のようになります.
20398 \end_layout
20399
20400 \begin_layout LyX-Code
20401 Template XFig
20402 \end_layout
20403
20404 \begin_layout LyX-Code
20405 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
20406 \end_layout
20407
20408 \begin_layout LyX-Code
20409 HelpText
20410 \end_layout
20411
20412 \begin_layout LyX-Code
20413 An XFig figure.
20414 \end_layout
20415
20416 \begin_layout LyX-Code
20417 HelpTextEnd
20418 \end_layout
20419
20420 \begin_layout LyX-Code
20421 InputFormat fig
20422 \end_layout
20423
20424 \begin_layout LyX-Code
20425 FileFilter "*.fig"
20426 \end_layout
20427
20428 \begin_layout LyX-Code
20429 AutomaticProduction true
20430 \end_layout
20431
20432 \begin_layout LyX-Code
20433 Transform Rotate
20434 \end_layout
20435
20436 \begin_layout LyX-Code
20437 Transform Resize
20438 \end_layout
20439
20440 \begin_layout LyX-Code
20441 Format LaTeX
20442 \end_layout
20443
20444 \begin_layout LyX-Code
20445 TransformCommand Rotate RotationLatexCommand
20446 \end_layout
20447
20448 \begin_layout LyX-Code
20449 TransformCommand Resize ResizeLatexCommand
20450 \end_layout
20451
20452 \begin_layout LyX-Code
20453 Product "$$RotateFront$$ResizeFront
20454 \end_layout
20455
20456 \begin_layout LyX-Code
20457          
20458 \backslash
20459
20460 \backslash
20461 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
20462 \end_layout
20463
20464 \begin_layout LyX-Code
20465          $$ResizeBack$$RotateBack"
20466 \end_layout
20467
20468 \begin_layout LyX-Code
20469 UpdateFormat pstex
20470 \end_layout
20471
20472 \begin_layout LyX-Code
20473 UpdateResult "$$AbsPath$$Basename.pstex_t"
20474 \end_layout
20475
20476 \begin_layout LyX-Code
20477 Requirement "graphicx"
20478 \end_layout
20479
20480 \begin_layout LyX-Code
20481 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20482 \end_layout
20483
20484 \begin_layout LyX-Code
20485 ReferencedFile latex "$$AbsPath$$Basename.eps"
20486 \end_layout
20487
20488 \begin_layout LyX-Code
20489 ReferencedFile dvi "$$AbsPath$$Basename.eps"
20490 \end_layout
20491
20492 \begin_layout LyX-Code
20493 FormatEnd
20494 \end_layout
20495
20496 \begin_layout LyX-Code
20497 Format PDFLaTeX
20498 \end_layout
20499
20500 \begin_layout LyX-Code
20501 TransformCommand Rotate RotationLatexCommand
20502 \end_layout
20503
20504 \begin_layout LyX-Code
20505 TransformCommand Resize ResizeLatexCommand
20506 \end_layout
20507
20508 \begin_layout LyX-Code
20509 Product "$$RotateFront$$ResizeFront
20510 \end_layout
20511
20512 \begin_layout LyX-Code
20513          
20514 \backslash
20515
20516 \backslash
20517 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
20518 \end_layout
20519
20520 \begin_layout LyX-Code
20521          $$ResizeBack$$RotateBack"
20522 \end_layout
20523
20524 \begin_layout LyX-Code
20525 UpdateFormat pdftex
20526 \end_layout
20527
20528 \begin_layout LyX-Code
20529 UpdateResult "$$AbsPath$$Basename.pdftex_t"
20530 \end_layout
20531
20532 \begin_layout LyX-Code
20533 Requirement "graphicx"
20534 \end_layout
20535
20536 \begin_layout LyX-Code
20537 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
20538 \end_layout
20539
20540 \begin_layout LyX-Code
20541 ReferencedFile latex "$$AbsPath$$Basename.pdf"
20542 \end_layout
20543
20544 \begin_layout LyX-Code
20545 FormatEnd
20546 \end_layout
20547
20548 \begin_layout LyX-Code
20549 Format Ascii
20550 \end_layout
20551
20552 \begin_layout LyX-Code
20553 Product "$$Contents(
20554 \backslash
20555 "$$AbsPath$$Basename.asc
20556 \backslash
20557 ")"
20558 \end_layout
20559
20560 \begin_layout LyX-Code
20561 UpdateFormat asciixfig
20562 \end_layout
20563
20564 \begin_layout LyX-Code
20565 UpdateResult "$$AbsPath$$Basename.asc"
20566 \end_layout
20567
20568 \begin_layout LyX-Code
20569 FormatEnd
20570 \end_layout
20571
20572 \begin_layout LyX-Code
20573 Format DocBook
20574 \end_layout
20575
20576 \begin_layout LyX-Code
20577 Product "<graphic fileref=
20578 \backslash
20579 "$$AbsOrRelPathMaster$$Basename.eps
20580 \backslash
20581 ">
20582 \end_layout
20583
20584 \begin_layout LyX-Code
20585          </graphic>"
20586 \end_layout
20587
20588 \begin_layout LyX-Code
20589 UpdateFormat eps
20590 \end_layout
20591
20592 \begin_layout LyX-Code
20593 UpdateResult "$$AbsPath$$Basename.eps"
20594 \end_layout
20595
20596 \begin_layout LyX-Code
20597 ReferencedFile docbook "$$AbsPath$$Basename.eps"
20598 \end_layout
20599
20600 \begin_layout LyX-Code
20601 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
20602 \end_layout
20603
20604 \begin_layout LyX-Code
20605 FormatEnd
20606 \end_layout
20607
20608 \begin_layout LyX-Code
20609 Product "[XFig: $$FName]"
20610 \end_layout
20611
20612 \begin_layout LyX-Code
20613 FormatEnd
20614 \end_layout
20615
20616 \begin_layout LyX-Code
20617 TemplateEnd
20618 \end_layout
20619
20620 \begin_layout Standard
20621 ご覧の通り,ひな型は
20622 \begin_inset Flex Code
20623 status collapsed
20624
20625 \begin_layout Plain Layout
20626 Template
20627 \end_layout
20628
20629 \end_inset
20630
20631  \SpecialChar ldots
20632  
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 TemplateEnd
20638 \end_layout
20639
20640 \end_inset
20641
20642 で閉じられます.ひな型には,一般的な設定を行うヘッダ部と,サポートされている主要な文書ファイル形式の設定を行う
20643 \begin_inset Flex Code
20644 status collapsed
20645
20646 \begin_layout Plain Layout
20647 Format
20648 \end_layout
20649
20650 \end_inset
20651
20652  \SpecialChar ldots
20653  
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 FormatEnd
20659 \end_layout
20660
20661 \end_inset
20662
20663 部があります.
20664 \end_layout
20665
20666 \begin_layout Subsection
20667 ひな型のヘッダ
20668 \end_layout
20669
20670 \begin_layout Description
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 AutomaticProduction
20676 \begin_inset space ~
20677 \end_inset
20678
20679 true|false
20680 \end_layout
20681
20682 \end_inset
20683
20684  このひな型で扱うファイルを\SpecialChar LyX
20685 が生成しなくてはならないか否か.このコマンドは,一度だけ必ず現れなくてはなりません.
20686 \end_layout
20687
20688 \begin_layout Description
20689 \begin_inset Flex Code
20690 status collapsed
20691
20692 \begin_layout Plain Layout
20693 FileFilter
20694 \begin_inset space ~
20695 \end_inset
20696
20697 <パターン>
20698 \end_layout
20699
20700 \end_inset
20701
20702  望むファイル群を表示するために,ファイルダイアログで使用するフィルタ用globパターン.2つ以上のファイル拡張子があり得る場合(たとえば,tgifには
20703 \begin_inset Flex Code
20704 status collapsed
20705
20706 \begin_layout Plain Layout
20707 .obj
20708 \end_layout
20709
20710 \end_inset
20711
20712
20713 \begin_inset Flex Code
20714 status collapsed
20715
20716 \begin_layout Plain Layout
20717 .tgo
20718 \end_layout
20719
20720 \end_inset
20721
20722 があります),「
20723 \begin_inset Flex Code
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727 *.{obj,tgo}
20728 \end_layout
20729
20730 \end_inset
20731
20732 」の様なパターンを使用してください.このコマンドは,一度だけ必ず現れなくてはなりません.
20733 \end_layout
20734
20735 \begin_layout Description
20736 \begin_inset Flex Code
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 GuiName
20741 \begin_inset space ~
20742 \end_inset
20743
20744 <GUI名>
20745 \end_layout
20746
20747 \end_inset
20748
20749  この文字列はボタン上に表示されます.このコマンドは,一度だけ必ず現れなくてはなりません.
20750 \end_layout
20751
20752 \begin_layout Description
20753 \begin_inset Flex Code
20754 status collapsed
20755
20756 \begin_layout Plain Layout
20757 HelpText
20758 \begin_inset space ~
20759 \end_inset
20760
20761 <文章>
20762 \begin_inset space ~
20763 \end_inset
20764
20765 HelpTextEnd
20766 \end_layout
20767
20768 \end_inset
20769
20770  外部素材ダイアログで使用されるヘルプ文.このひな型がユーザに何を提供できるのか,ユーザに説明するのに十分な情報を盛り込んでください.このコマンドは,一度だけ必
20771 ず現れなくてはなりません.
20772 \end_layout
20773
20774 \begin_layout Description
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 InputFormat
20780 \begin_inset space ~
20781 \end_inset
20782
20783 <書式>
20784 \end_layout
20785
20786 \end_inset
20787
20788  オリジナルファイルのファイル形式.これは,\SpecialChar LyX
20789 が知っている書式名でなくてはなりません(
20790 \begin_inset CommandInset ref
20791 LatexCommand ref
20792 reference "sec:ファイル形式"
20793
20794 \end_inset
20795
20796 参照).このひな型が,2つ以上の書式のオリジナルファイルを取り扱える場合は,「
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 *
20802 \end_layout
20803
20804 \end_inset
20805
20806 」を使用してください.この場合,\SpecialChar LyX
20807 はファイル形式を推定するために,ファイル自体に詮索を試みます.このコマンドは,一度だけ必ず現れなくてはなりません.
20808 \end_layout
20809
20810 \begin_layout Description
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 Template
20816 \begin_inset space ~
20817 \end_inset
20818
20819 <ID>
20820 \end_layout
20821
20822 \end_inset
20823
20824  このひな型の(他と重複しない)名称.代入マクロを含めてはなりません(下記参照).
20825 \end_layout
20826
20827 \begin_layout Description
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 Transform
20833 \begin_inset space ~
20834 \end_inset
20835
20836 Rotate|Resize|Clip|Extra
20837 \end_layout
20838
20839 \end_inset
20840
20841  このコマンドは,このひな型がどのような変換をサポートしているかを指定します.これは全く登場しなくても1回以上現れても構いません.このコマンドは,外部素材ダイア
20842 ログ中の対応するタブを使用可能にします.
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 Transform
20848 \end_layout
20849
20850 \end_inset
20851
20852 コマンド一つずつに応じて,
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 Format
20858 \end_layout
20859
20860 \end_inset
20861
20862 部に,対応する
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 TransformCommand
20868 \end_layout
20869
20870 \end_inset
20871
20872 コマンドか
20873 \begin_inset Flex Code
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877 TransformOption
20878 \end_layout
20879
20880 \end_inset
20881
20882 コマンドを置かなくてはなりません.これを行わないと,この書式での変換はサポートされません.
20883 \end_layout
20884
20885 \begin_layout Subsection
20886 \begin_inset Flex Code
20887 status collapsed
20888
20889 \begin_layout Plain Layout
20890 Format
20891 \end_layout
20892
20893 \end_inset
20894
20895
20896 \end_layout
20897
20898 \begin_layout Description
20899 \begin_inset Flex Code
20900 status collapsed
20901
20902 \begin_layout Plain Layout
20903 Format
20904 \begin_inset space ~
20905 \end_inset
20906
20907 LaTeX|PDFLaTeX|PlainText|DocBook
20908 \end_layout
20909
20910 \end_inset
20911
20912  この書式定義が定める主要な文書ファイル形式.すべてのひな型が,全文書ファイル形式に対して意味のある表示ができるわけではありません.それでも,全書式に対して
20913 \begin_inset Flex Code
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917 Format
20918 \end_layout
20919
20920 \end_inset
20921
20922 部を定義してください.表示する方法がないときは,ダミーテキストを使用してください.これによって,書き出した文書内で,少なくとも外部素材への参照を見ることができる
20923 ようになります.
20924 \end_layout
20925
20926 \begin_layout Description
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 Option
20932 \begin_inset space ~
20933 \end_inset
20934
20935 <名称>
20936 \begin_inset space ~
20937 \end_inset
20938
20939 <値>
20940 \end_layout
20941
20942 \end_inset
20943
20944  このコマンドは,
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 Product
20950 \end_layout
20951
20952 \end_inset
20953
20954 での代入に使うマクロ
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 $$<名称>
20960 \end_layout
20961
20962 \end_inset
20963
20964 を新たに定義します.
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 <値>
20970 \end_layout
20971
20972 \end_inset
20973
20974 自体にも代入マクロを使うことができます.
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979 Product
20980 \end_layout
20981
20982 \end_inset
20983
20984
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 <値>
20990 \end_layout
20991
20992 \end_inset
20993
20994 を直接使用するよりも優れた点は,
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 $$<名称>
21000 \end_layout
21001
21002 \end_inset
21003
21004 に代入された値が,その文書書式で有効な非必須引数となるように健全化されることです.このコマンドは全く登場しなくても1回以上現れても構いません.
21005 \end_layout
21006
21007 \begin_layout Description
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 Product
21013 \begin_inset space ~
21014 \end_inset
21015
21016 <文>
21017 \end_layout
21018
21019 \end_inset
21020
21021  書き出された文書に挿入される文.実のところ,これが最も重要なコマンドであり,とても複雑になることがあります.このコマンドは,一度だけ必ず現れなくてはなりません
21022
21023 \end_layout
21024
21025 \begin_layout Description
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 Preamble
21031 \begin_inset space ~
21032 \end_inset
21033
21034 <名称>
21035 \end_layout
21036
21037 \end_inset
21038
21039  このコマンドは,\SpecialChar LaTeX
21040 プリアンブルに入れるプリアンブル片を指定します.これは
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 PreambleDef
21046 \end_layout
21047
21048 \end_inset
21049
21050  \SpecialChar ldots
21051  
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 PreambleDefEnd
21057 \end_layout
21058
21059 \end_inset
21060
21061 を使用して定義しなくてはなりません.このコマンドは全く登場しなくても1回以上現れても構いません.
21062 \end_layout
21063
21064 \begin_layout Description
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 ReferencedFile
21070 \begin_inset space ~
21071 \end_inset
21072
21073 <書式>
21074 \begin_inset space ~
21075 \end_inset
21076
21077 <ファイル名>
21078 \end_layout
21079
21080 \end_inset
21081
21082  このコマンドは,変換過程で生成され,特定の書き出し書式に必要とされるファイルを示します.ファイル名が相対パスである場合には,親文書に対する相対パスとして解釈さ
21083 れます.このコマンドは全く登場しなくても1回以上現れても構いません.
21084 \end_layout
21085
21086 \begin_layout Description
21087 \begin_inset Flex Code
21088 status collapsed
21089
21090 \begin_layout Plain Layout
21091 Requirement
21092 \begin_inset space ~
21093 \end_inset
21094
21095 <package>
21096 \end_layout
21097
21098 \end_inset
21099
21100  必要とされる\SpecialChar LaTeX
21101 パッケージ名.パッケージは,\SpecialChar LaTeX
21102 プリアンブル中で
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107
21108 \backslash
21109 usepackage{}
21110 \end_layout
21111
21112 \end_inset
21113
21114 を使って取り込まれます.このコマンドは全く登場しなくても1回以上現れても構いません.
21115 \end_layout
21116
21117 \begin_layout Description
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 TransformCommand
21123 \begin_inset space ~
21124 \end_inset
21125
21126 Rotate
21127 \begin_inset space ~
21128 \end_inset
21129
21130 RotationLatexCommand
21131 \end_layout
21132
21133 \end_inset
21134
21135  このコマンドは,回転用に,組み込みの\SpecialChar LaTeX
21136 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21137 \end_layout
21138
21139 \begin_layout Description
21140 \begin_inset Flex Code
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 TransformCommand
21145 \begin_inset space ~
21146 \end_inset
21147
21148 Resize
21149 \begin_inset space ~
21150 \end_inset
21151
21152 ResizeLatexCommand
21153 \end_layout
21154
21155 \end_inset
21156
21157  このコマンドは,伸縮用に,組み込みの\SpecialChar LaTeX
21158 コマンドを使用するように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21159 \end_layout
21160
21161 \begin_layout Description
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 TransformOption
21167 \begin_inset space ~
21168 \end_inset
21169
21170 Rotate
21171 \begin_inset space ~
21172 \end_inset
21173
21174 RotationLatexOption
21175 \end_layout
21176
21177 \end_inset
21178
21179  このコマンドは,回転が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21180 \end_layout
21181
21182 \begin_layout Description
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 TransformOption
21188 \begin_inset space ~
21189 \end_inset
21190
21191 Resize
21192 \begin_inset space ~
21193 \end_inset
21194
21195 ResizeLatexOption
21196 \end_layout
21197
21198 \end_inset
21199
21200  このコマンドは,伸縮が非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21201 \end_layout
21202
21203 \begin_layout Description
21204 \begin_inset Flex Code
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 TransformOption
21209 \begin_inset space ~
21210 \end_inset
21211
21212 Clip
21213 \begin_inset space ~
21214 \end_inset
21215
21216 ClipLatexOption
21217 \end_layout
21218
21219 \end_inset
21220
21221  このコマンドは,切り抜きが非必須引数を通じて行われるように指定します.このコマンドは,1回現れても全く現れなくても構いません.
21222 \end_layout
21223
21224 \begin_layout Description
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 TransformOption
21230 \begin_inset space ~
21231 \end_inset
21232
21233 Extra
21234 \begin_inset space ~
21235 \end_inset
21236
21237 ExtraLatexOption
21238 \end_layout
21239
21240 \end_inset
21241
21242  このコマンドは,追加の非必須引数を使用することを指定します.このコマンドは,1回現れても全く現れなくても構いません.
21243 \end_layout
21244
21245 \begin_layout Description
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 UpdateFormat
21251 \begin_inset space ~
21252 \end_inset
21253
21254 <書式>
21255 \end_layout
21256
21257 \end_inset
21258
21259  変換されたファイルのファイル形式.これは,\SpecialChar LyX
21260 が知っている書式名でなくてはなりません(
21261 \begin_inset Flex MenuItem
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 ツール\SpecialChar menuseparator
21266 設定\SpecialChar menuseparator
21267 ファイル処理\SpecialChar menuseparator
21268 ファイル書式
21269 \end_layout
21270
21271 \end_inset
21272
21273 ダイアログを参照).このコマンドは,一度だけ必ず現れなくてはなりません.得られるファイル形式がPDFの場合,書式
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 pdf6
21279 \end_layout
21280
21281 \end_inset
21282
21283 を指定する必要があります.これは画像取り込みに用いられるPDF計四機です.他の定義済みPDF形式は文書書き出し用のものです.
21284 \end_layout
21285
21286 \begin_layout Description
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 UpdateResult
21292 \begin_inset space ~
21293 \end_inset
21294
21295 <ファイル名>
21296 \end_layout
21297
21298 \end_inset
21299
21300  変換されたファイルのファイル名.ファイル名は絶対パスでなくてはなりません.このコマンドは,一度だけ必ず現れなくてはなりません.
21301 \end_layout
21302
21303 \begin_layout Subsection
21304 プリアンブルの定義
21305 \end_layout
21306
21307 \begin_layout Standard
21308 外用ひな型設定ファイルには,
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 PreambleDef
21314 \end_layout
21315
21316 \end_inset
21317
21318  \SpecialChar ldots
21319  
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 PreambleDefEnd
21325 \end_layout
21326
21327 \end_inset
21328
21329 で囲んだプリアンブル定義を追加することができます.これらの定義は,ひな型の
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 Format
21335 \end_layout
21336
21337 \end_inset
21338
21339 部で使用することができます.
21340 \end_layout
21341
21342 \begin_layout Section
21343 代入機構
21344 \end_layout
21345
21346 \begin_layout Standard
21347 外部素材機構が外部プログラムを呼び出すときには,ひな型設定ファイルで定義されたコマンドにしたがって行われます.これらのコマンドには,実行前に展開されるマクロをい
21348 ろいろ入れることができます.実行は,つねに元の文書があるディレクトリで行われます.
21349 \end_layout
21350
21351 \begin_layout Standard
21352 また,外部素材が表示されるときにはいつでも,その名称は代入機構によって組み立てられ,ひな型定義中の他のほとんどのコマンドも代入をサポートしています.
21353 \end_layout
21354
21355 \begin_layout Standard
21356 使用できるマクロは以下の通りです.
21357 \end_layout
21358
21359 \begin_layout Description
21360 \begin_inset Flex Code
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 $$AbsOrRelPathMaster
21365 \end_layout
21366
21367 \end_inset
21368
21369  \SpecialChar LyX
21370 親文書への絶対ファイルパスないしは相対ファイルパス
21371 \end_layout
21372
21373 \begin_layout Description
21374 \begin_inset Flex Code
21375 status collapsed
21376
21377 \begin_layout Plain Layout
21378 $$AbsOrRelPathParent
21379 \end_layout
21380
21381 \end_inset
21382
21383  \SpecialChar LyX
21384 文書への絶対ファイルパスないしは相対ファイルパス
21385 \end_layout
21386
21387 \begin_layout Description
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 $$AbsPath
21393 \end_layout
21394
21395 \end_inset
21396
21397  絶対ファイルパス
21398 \end_layout
21399
21400 \begin_layout Description
21401 \begin_inset Flex Code
21402 status collapsed
21403
21404 \begin_layout Plain Layout
21405 $$Basename
21406 \end_layout
21407
21408 \end_inset
21409
21410  パスおよび拡張子を除いたファイル名
21411 \end_layout
21412
21413 \begin_layout Description
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418 $$Contents(
21419 \begin_inset Quotes eld
21420 \end_inset
21421
21422 filename.ext
21423 \begin_inset Quotes erd
21424 \end_inset
21425
21426 )
21427 \end_layout
21428
21429 \end_inset
21430
21431  このマクロは,
21432 \begin_inset Flex Code
21433 status collapsed
21434
21435 \begin_layout Plain Layout
21436 filename.ext
21437 \end_layout
21438
21439 \end_inset
21440
21441 と云う名のファイルの中身を展開します.
21442 \end_layout
21443
21444 \begin_layout Description
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 $$Extension
21450 \end_layout
21451
21452 \end_inset
21453
21454  ファイル拡張子(点を含む)
21455 \end_layout
21456
21457 \begin_layout Description
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 $$pngOrjpg
21463 \end_layout
21464
21465 \end_inset
21466
21467  これは,ファイルがJPEG形式の場合は,文字列「jpg」となり,それ以外では文字列「png」となります.これは,PNG形式とJPEG形式の両方をサポートする出
21468 力形式に対して,不必要な変換を行うことを避けるのに役立ちます.事前設定されているラスター画像ひな形は,pdf\SpecialChar TeX
21469 出力形式に対してこのマクロを使用します.
21470 \end_layout
21471
21472 \begin_layout Description
21473 \begin_inset Flex Code
21474 status collapsed
21475
21476 \begin_layout Plain Layout
21477 $$FName
21478 \end_layout
21479
21480 \end_inset
21481
21482  外部素材ダイアログで指定されたファイルのファイル名.これは\SpecialChar LyX
21483 文書への絶対パスでも良いですし,相対パスでも構いません.
21484 \end_layout
21485
21486 \begin_layout Description
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 $$FPath
21492 \end_layout
21493
21494 \end_inset
21495
21496  
21497 \begin_inset Flex Code
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 $$FName
21502 \end_layout
21503
21504 \end_inset
21505
21506 のパス部分(\SpecialChar LyX
21507 文書への絶対パス名か相対パス名)
21508 \end_layout
21509
21510 \begin_layout Description
21511 \begin_inset Flex Code
21512 status collapsed
21513
21514 \begin_layout Plain Layout
21515 $$RelPathMaster
21516 \end_layout
21517
21518 \end_inset
21519
21520  \SpecialChar LyX
21521 親文書への相対ファイルパス
21522 \end_layout
21523
21524 \begin_layout Description
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 $$RelPathParent
21530 \end_layout
21531
21532 \end_inset
21533
21534  \SpecialChar LyX
21535 文書への相対ファイルパス
21536 \end_layout
21537
21538 \begin_layout Description
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543 $$Sysdir
21544 \end_layout
21545
21546 \end_inset
21547
21548  このマクロは,システムディレクトリの絶対パスを展開します.これは,典型的には,\SpecialChar LyX
21549 に同梱されているヘルパースクリプト群を示したりするのに使用されます.
21550 \end_layout
21551
21552 \begin_layout Description
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 $$Tempname
21558 \end_layout
21559
21560 \end_inset
21561
21562  元の文書が閉じられたり,挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名.
21563 \end_layout
21564
21565 \begin_layout Standard
21566 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので,たとえば絶対パスのファイル名を 
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 $$AbsPath$$Basename$$Extension
21572 \end_layout
21573
21574 \end_inset
21575
21576 のようにして作ることができます.
21577 \end_layout
21578
21579 \begin_layout Standard
21580 上記マクロは,特記しない限りはすべてのコマンドで代入が行われます.
21581 \begin_inset Flex Code
21582 status collapsed
21583
21584 \begin_layout Plain Layout
21585 Transform
21586 \end_layout
21587
21588 \end_inset
21589
21590 コマンドと
21591 \begin_inset Flex Code
21592 status collapsed
21593
21594 \begin_layout Plain Layout
21595 TransformCommand
21596 \end_layout
21597
21598 \end_inset
21599
21600 コマンドが有効にされている場合,
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605 Product
21606 \end_layout
21607
21608 \end_inset
21609
21610 コマンドは,これらに加えて以下の代入もサポートします.
21611 \end_layout
21612
21613 \begin_layout Description
21614 \begin_inset Flex Code
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618 $$ResizeFront
21619 \end_layout
21620
21621 \end_inset
21622
21623  伸縮コマンドの前置部.
21624 \end_layout
21625
21626 \begin_layout Description
21627 \begin_inset Flex Code
21628 status collapsed
21629
21630 \begin_layout Plain Layout
21631 $$ResizeBack
21632 \end_layout
21633
21634 \end_inset
21635
21636  伸縮コマンドの後置部.
21637 \end_layout
21638
21639 \begin_layout Description
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 $$RotateFront
21645 \end_layout
21646
21647 \end_inset
21648
21649  回転コマンドの前置部.
21650 \end_layout
21651
21652 \begin_layout Description
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 $$RotateBack
21658 \end_layout
21659
21660 \end_inset
21661
21662  回転コマンドの後置部.
21663 \end_layout
21664
21665 \begin_layout Standard
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 Option
21671 \end_layout
21672
21673 \end_inset
21674
21675 コマンドの値に入れる文字列では,
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 Transform
21681 \end_layout
21682
21683 \end_inset
21684
21685 コマンドと
21686 \begin_inset Flex Code
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 TransformOption
21691 \end_layout
21692
21693 \end_inset
21694
21695 コマンドが有効にされていれば,以下の代入もサポートされます.
21696 \end_layout
21697
21698 \begin_layout Description
21699 \begin_inset Flex Code
21700 status collapsed
21701
21702 \begin_layout Plain Layout
21703 $$Clip
21704 \end_layout
21705
21706 \end_inset
21707
21708  切り抜きオプション.
21709 \end_layout
21710
21711 \begin_layout Description
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716 $$Extra
21717 \end_layout
21718
21719 \end_inset
21720
21721  追加オプション.
21722 \end_layout
21723
21724 \begin_layout Description
21725 \begin_inset Flex Code
21726 status collapsed
21727
21728 \begin_layout Plain Layout
21729 $$Resize
21730 \end_layout
21731
21732 \end_inset
21733
21734  伸縮オプション.
21735 \end_layout
21736
21737 \begin_layout Description
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 $$Rotate
21743 \end_layout
21744
21745 \end_inset
21746
21747  回転オプション.
21748 \end_layout
21749
21750 \begin_layout Standard
21751 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません.主に以下の二つの理由があります.
21752 \end_layout
21753
21754 \begin_layout Enumerate
21755 相対ファイル名と絶対ファイル名は,それぞれ相対的あるいは絶対的なままで維持されなくてはなりません.ユーザにはどちらかの形を好む理由があるのかもしれません.たとえ
21756 ば相対名は,いろいろなマシンで作業をする持ち運び用の文書で役立ちます.絶対名は,プログラムによっては必要とされることがあり得ます.
21757 \end_layout
21758
21759 \begin_layout Enumerate
21760 \SpecialChar LaTeX
21761 は,相対ファイル名に関して,\SpecialChar LyX
21762 や入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います.\SpecialChar LyX
21763 にとって相対ファイル名とは,常にこのファイル名が書か
21764 れている文書に対して相対的なものになります.\SpecialChar LaTeX
21765 にとっての相対ファイル名は,常に親文書に対するものになります.これら二つの定義は,一つの文書しかないときには同じです
21766 が,部分文書を含む親文書があるときには異なったものとなってきます.つまり,相対ファイル名は,\SpecialChar LaTeX
21767 に提示されるときに変換されなくてはならないのです.幸い,正しいマクロ
21768 を選びさえすれば,これは\SpecialChar LyX
21769 が自動的に行ってくれます.
21770 \end_layout
21771
21772 \begin_layout Standard
21773 すると,新しく作ったひな型定義では,どのパス関連マクロを使うべきでしょうか.このルールは難しくありません.つまり,
21774 \end_layout
21775
21776 \begin_layout Itemize
21777 絶対パスが必要とされるときには
21778 \begin_inset Flex Code
21779 status collapsed
21780
21781 \begin_layout Plain Layout
21782 $$AbsPath
21783 \end_layout
21784
21785 \end_inset
21786
21787 を使う.
21788 \end_layout
21789
21790 \begin_layout Itemize
21791 代入された文字列が,\SpecialChar LaTeX
21792 インプットの一種である場合には,
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 $$AbsOrRelPathMaster
21798 \end_layout
21799
21800 \end_inset
21801
21802 を使う.
21803 \end_layout
21804
21805 \begin_layout Itemize
21806 それ以外ならば,ユーザの選択を尊重するために
21807 \begin_inset Flex Code
21808 status collapsed
21809
21810 \begin_layout Plain Layout
21811 $$AbsOrRelPathParent
21812 \end_layout
21813
21814 \end_inset
21815
21816 を使う.
21817 \end_layout
21818
21819 \begin_layout Standard
21820 このルールが機能せずに,たとえば相対名が必要となる特殊な場合もありますが,通常,上記でうまく動作します.特殊例の例としては,上述のXFigひな型での
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21826 \end_layout
21827
21828 \end_inset
21829
21830 というコマンドがあります.この場合,
21831 \begin_inset Flex Code
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835 .pstex_t
21836 \end_layout
21837
21838 \end_inset
21839
21840 ファイルの複写子は,ファイル内容を書き換えるのに相対名を必要とするために,絶対名を使用することができないのです.
21841 \end_layout
21842
21843 \begin_layout Section
21844 セキュリティに関する論点
21845 \begin_inset CommandInset label
21846 LatexCommand label
21847 name "sec:セキュリティに関する論点"
21848
21849 \end_inset
21850
21851
21852 \end_layout
21853
21854 \begin_layout Standard
21855 外部素材機能は,多くの外部プログラムとの橋渡しをし,しかもそれを自動的に行うので,そのセキュリティ面での帰結を考慮しなくてはなりません.特に,ユーザは好きなファ
21856 イル名やパラメータ文字列を含めることが許されていて,しかもそれらがコマンドに展開されるので,ユーザが文書を閲覧したり印刷したりしたときに,任意のコマンドを実行す
21857 ることができるような悪意ある文書を作成することが可能となりましょう.これは,我々がぜひとも避けたいことなのです.
21858 \end_layout
21859
21860 \begin_layout Standard
21861 しかしながら,外部プログラムコマンドはひな型設定ファイルでのみ指定されているので,\SpecialChar LyX
21862 が安全なひな型でのみ適切に設定されているならば,セキュリティ上の問題は発生しま
21863 せん.これは,外部プログラムが
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 system
21869 \end_layout
21870
21871 \end_inset
21872
21873 システムコールではなく,
21874 \begin_inset Flex Code
21875 status collapsed
21876
21877 \begin_layout Plain Layout
21878 execvp
21879 \end_layout
21880
21881 \end_inset
21882
21883 システムコールで呼び出されているため,ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです.
21884 \end_layout
21885
21886 \begin_layout Standard
21887 これは,外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて,制限があることを意味します.特に,パイプやリダイレクトはそのまま使用することは
21888 できません.これは,\SpecialChar LyX
21889 の安全性を維持するためにそうしなくてはならないのです.もしシェル機能の一部を使用したいとすると,これを完全に統御の下においたまま行う安全なス
21890 クリプトを書いた上で,このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません.
21891 \end_layout
21892
21893 \begin_layout Standard
21894 シェルと直接やりとりするひな型を設計することは可能ではありますが,悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって,任意のコマンドを実行できるよ
21895 うになるため,一般的には,統御下に置いた状態で
21896 \begin_inset Flex Code
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900 execvp
21901 \end_layout
21902
21903 \end_inset
21904
21905 システムコールを使用する安全なスクリプトのみを使用することをお勧めします.確かに,管理された環境下で使用する分には,通常のシェルスクリプトを使用する方に流れる誘
21906 惑はあります.そうした場合には,お使いのシステムに簡単に濫用することのできるセキュリティホールを,
21907 \emph on
21908 間違いなく
21909 \emph default
21910 導入することを理解しておいてください.オープンソースの伝統に従って,私たちは人々に新しいひな型を投稿してくれるよう促していますが,そのような安全でないひな型はL
21911 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります.公式の頒布チャンネルから出荷されている\SpecialChar LyX
21912 には,安全でないひな型は決して入っていません
21913
21914 \end_layout
21915
21916 \begin_layout Standard
21917 外部素材を含めることで強力な力を手に入れることができますが,この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります.無防備なスクリ
21918 プトのたった一行に入り込んだ,ちょっとしたエラーが,巨大なセキュリティ上の問題に扉を開きうるのです.したがって,もしこの問題を完全に理解していないならば,特定の
21919 ひな型が安全であるかどうか疑問がある際には,知識豊富なセキュリティの専門家か,\SpecialChar LyX
21920 開発チームに相談してみてください.そしてこの相談は,管理されていない環境下でこれを
21921 使用する前に,行うようにしてください.
21922 \end_layout
21923
21924 \begin_layout Chapter
21925 \start_of_appendix
21926 サポートされているレイアウト用\SpecialChar LyX
21927 関数一覧
21928 \begin_inset CommandInset label
21929 LatexCommand label
21930 name "chap:関数一覧"
21931
21932 \end_inset
21933
21934
21935 \end_layout
21936
21937 \begin_layout Standard
21938 \align center
21939 \begin_inset Tabular
21940 <lyxtabular version="3" rows="11" columns="8">
21941 <features tabularvalignment="middle">
21942 <column alignment="left" valignment="top">
21943 <column alignment="left" valignment="top">
21944 <column alignment="left" valignment="top">
21945 <column alignment="left" valignment="top">
21946 <column alignment="left" valignment="top">
21947 <column alignment="left" valignment="top">
21948 <column alignment="left" valignment="top">
21949 <column alignment="left" valignment="top">
21950 <row>
21951 <cell alignment="left" valignment="top" usebox="none">
21952 \begin_inset Text
21953
21954 \begin_layout Plain Layout
21955 accents
21956 \end_layout
21957
21958 \end_inset
21959 </cell>
21960 <cell alignment="left" valignment="top" usebox="none">
21961 \begin_inset Text
21962
21963 \begin_layout Plain Layout
21964 booktabs
21965 \end_layout
21966
21967 \end_inset
21968 </cell>
21969 <cell alignment="left" valignment="top" usebox="none">
21970 \begin_inset Text
21971
21972 \begin_layout Plain Layout
21973 feyn
21974 \end_layout
21975
21976 \end_inset
21977 </cell>
21978 <cell alignment="left" valignment="top" usebox="none">
21979 \begin_inset Text
21980
21981 \begin_layout Plain Layout
21982 listings
21983 \end_layout
21984
21985 \end_inset
21986 </cell>
21987 <cell alignment="center" valignment="top" usebox="none">
21988 \begin_inset Text
21989
21990 \begin_layout Plain Layout
21991 natbib
21992 \end_layout
21993
21994 \end_inset
21995 </cell>
21996 <cell alignment="center" valignment="top" usebox="none">
21997 \begin_inset Text
21998
21999 \begin_layout Plain Layout
22000 rotfloat
22001 \end_layout
22002
22003 \end_inset
22004 </cell>
22005 <cell alignment="center" valignment="top" usebox="none">
22006 \begin_inset Text
22007
22008 \begin_layout Plain Layout
22009 tfrupee
22010 \end_layout
22011
22012 \end_inset
22013 </cell>
22014 <cell alignment="center" valignment="top" usebox="none">
22015 \begin_inset Text
22016
22017 \begin_layout Plain Layout
22018 wasysym
22019 \end_layout
22020
22021 \end_inset
22022 </cell>
22023 </row>
22024 <row>
22025 <cell alignment="left" valignment="top" usebox="none">
22026 \begin_inset Text
22027
22028 \begin_layout Plain Layout
22029 amsbsy
22030 \end_layout
22031
22032 \end_inset
22033 </cell>
22034 <cell alignment="left" valignment="top" usebox="none">
22035 \begin_inset Text
22036
22037 \begin_layout Plain Layout
22038 calc
22039 \end_layout
22040
22041 \end_inset
22042 </cell>
22043 <cell alignment="left" valignment="top" usebox="none">
22044 \begin_inset Text
22045
22046 \begin_layout Plain Layout
22047 fixltx2e
22048 \end_layout
22049
22050 \end_inset
22051 </cell>
22052 <cell alignment="left" valignment="top" usebox="none">
22053 \begin_inset Text
22054
22055 \begin_layout Plain Layout
22056 longtable
22057 \end_layout
22058
22059 \end_inset
22060 </cell>
22061 <cell alignment="center" valignment="top" usebox="none">
22062 \begin_inset Text
22063
22064 \begin_layout Plain Layout
22065 nomencl
22066 \end_layout
22067
22068 \end_inset
22069 </cell>
22070 <cell alignment="center" valignment="top" usebox="none">
22071 \begin_inset Text
22072
22073 \begin_layout Plain Layout
22074 rsphrase
22075 \end_layout
22076
22077 \end_inset
22078 </cell>
22079 <cell alignment="center" valignment="top" usebox="none">
22080 \begin_inset Text
22081
22082 \begin_layout Plain Layout
22083 tipa
22084 \end_layout
22085
22086 \end_inset
22087 </cell>
22088 <cell alignment="center" valignment="top" usebox="none">
22089 \begin_inset Text
22090
22091 \begin_layout Plain Layout
22092 wrapfig
22093 \end_layout
22094
22095 \end_inset
22096 </cell>
22097 </row>
22098 <row>
22099 <cell alignment="left" valignment="top" usebox="none">
22100 \begin_inset Text
22101
22102 \begin_layout Plain Layout
22103 amscd
22104 \end_layout
22105
22106 \end_inset
22107 </cell>
22108 <cell alignment="left" valignment="top" usebox="none">
22109 \begin_inset Text
22110
22111 \begin_layout Plain Layout
22112 CJK
22113 \end_layout
22114
22115 \end_inset
22116 </cell>
22117 <cell alignment="left" valignment="top" usebox="none">
22118 \begin_inset Text
22119
22120 \begin_layout Plain Layout
22121 float
22122 \end_layout
22123
22124 \end_inset
22125 </cell>
22126 <cell alignment="left" valignment="top" usebox="none">
22127 \begin_inset Text
22128
22129 \begin_layout Plain Layout
22130 lyxskak
22131 \end_layout
22132
22133 \end_inset
22134 </cell>
22135 <cell alignment="center" valignment="top" usebox="none">
22136 \begin_inset Text
22137
22138 \begin_layout Plain Layout
22139 pdfcolmk
22140 \end_layout
22141
22142 \end_inset
22143 </cell>
22144 <cell alignment="center" valignment="top" usebox="none">
22145 \begin_inset Text
22146
22147 \begin_layout Plain Layout
22148 setspace
22149 \end_layout
22150
22151 \end_inset
22152 </cell>
22153 <cell alignment="center" valignment="top" usebox="none">
22154 \begin_inset Text
22155
22156 \begin_layout Plain Layout
22157 tipx
22158 \end_layout
22159
22160 \end_inset
22161 </cell>
22162 <cell alignment="center" valignment="top" usebox="none">
22163 \begin_inset Text
22164
22165 \begin_layout Plain Layout
22166 xargs
22167 \end_layout
22168
22169 \end_inset
22170 </cell>
22171 </row>
22172 <row>
22173 <cell alignment="left" valignment="top" usebox="none">
22174 \begin_inset Text
22175
22176 \begin_layout Plain Layout
22177 amsmath
22178 \end_layout
22179
22180 \end_inset
22181 </cell>
22182 <cell alignment="left" valignment="top" usebox="none">
22183 \begin_inset Text
22184
22185 \begin_layout Plain Layout
22186 color
22187 \end_layout
22188
22189 \end_inset
22190 </cell>
22191 <cell alignment="left" valignment="top" usebox="none">
22192 \begin_inset Text
22193
22194 \begin_layout Plain Layout
22195 framed
22196 \end_layout
22197
22198 \end_inset
22199 </cell>
22200 <cell alignment="left" valignment="top" usebox="none">
22201 \begin_inset Text
22202
22203 \begin_layout Plain Layout
22204 makeidx
22205 \end_layout
22206
22207 \end_inset
22208 </cell>
22209 <cell alignment="center" valignment="top" usebox="none">
22210 \begin_inset Text
22211
22212 \begin_layout Plain Layout
22213 pdfpages
22214 \end_layout
22215
22216 \end_inset
22217 </cell>
22218 <cell alignment="center" valignment="top" usebox="none">
22219 \begin_inset Text
22220
22221 \begin_layout Plain Layout
22222 shapepar
22223 \end_layout
22224
22225 \end_inset
22226 </cell>
22227 <cell alignment="center" valignment="top" usebox="none">
22228 \begin_inset Text
22229
22230 \begin_layout Plain Layout
22231 tone
22232 \end_layout
22233
22234 \end_inset
22235 </cell>
22236 <cell alignment="center" valignment="top" usebox="none">
22237 \begin_inset Text
22238
22239 \begin_layout Plain Layout
22240 xcolor
22241 \end_layout
22242
22243 \end_inset
22244 </cell>
22245 </row>
22246 <row>
22247 <cell alignment="left" valignment="top" usebox="none">
22248 \begin_inset Text
22249
22250 \begin_layout Plain Layout
22251 amssymb
22252 \end_layout
22253
22254 \end_inset
22255 </cell>
22256 <cell alignment="left" valignment="top" usebox="none">
22257 \begin_inset Text
22258
22259 \begin_layout Plain Layout
22260 covington
22261 \end_layout
22262
22263 \end_inset
22264 </cell>
22265 <cell alignment="left" valignment="top" usebox="none">
22266 \begin_inset Text
22267
22268 \begin_layout Plain Layout
22269 graphicx
22270 \end_layout
22271
22272 \end_inset
22273 </cell>
22274 <cell alignment="left" valignment="top" usebox="none">
22275 \begin_inset Text
22276
22277 \begin_layout Plain Layout
22278 marvosym
22279 \end_layout
22280
22281 \end_inset
22282 </cell>
22283 <cell alignment="center" valignment="top" usebox="none">
22284 \begin_inset Text
22285
22286 \begin_layout Plain Layout
22287 pifont
22288 \end_layout
22289
22290 \end_inset
22291 </cell>
22292 <cell alignment="center" valignment="top" usebox="none">
22293 \begin_inset Text
22294
22295 \begin_layout Plain Layout
22296 slashed
22297 \end_layout
22298
22299 \end_inset
22300 </cell>
22301 <cell alignment="center" valignment="top" usebox="none">
22302 \begin_inset Text
22303
22304 \begin_layout Plain Layout
22305 txfonts
22306 \end_layout
22307
22308 \end_inset
22309 </cell>
22310 <cell alignment="center" valignment="top" usebox="none">
22311 \begin_inset Text
22312
22313 \begin_layout Plain Layout
22314 xy
22315 \end_layout
22316
22317 \end_inset
22318 </cell>
22319 </row>
22320 <row>
22321 <cell alignment="left" valignment="top" usebox="none">
22322 \begin_inset Text
22323
22324 \begin_layout Plain Layout
22325 amstext
22326 \end_layout
22327
22328 \end_inset
22329 </cell>
22330 <cell alignment="left" valignment="top" usebox="none">
22331 \begin_inset Text
22332
22333 \begin_layout Plain Layout
22334 csquotes
22335 \end_layout
22336
22337 \end_inset
22338 </cell>
22339 <cell alignment="left" valignment="top" usebox="none">
22340 \begin_inset Text
22341
22342 \begin_layout Plain Layout
22343 hhline
22344 \end_layout
22345
22346 \end_inset
22347 </cell>
22348 <cell alignment="left" valignment="top" usebox="none">
22349 \begin_inset Text
22350
22351 \begin_layout Plain Layout
22352 mathdesign
22353 \end_layout
22354
22355 \end_inset
22356 </cell>
22357 <cell alignment="center" valignment="top" usebox="none">
22358 \begin_inset Text
22359
22360 \begin_layout Plain Layout
22361 pmboxdraw
22362 \end_layout
22363
22364 \end_inset
22365 </cell>
22366 <cell alignment="center" valignment="top" usebox="none">
22367 \begin_inset Text
22368
22369 \begin_layout Plain Layout
22370 soul
22371 \end_layout
22372
22373 \end_inset
22374 </cell>
22375 <cell alignment="center" valignment="top" usebox="none">
22376 \begin_inset Text
22377
22378 \begin_layout Plain Layout
22379 ulem
22380 \end_layout
22381
22382 \end_inset
22383 </cell>
22384 <cell alignment="center" valignment="top" usebox="none">
22385 \begin_inset Text
22386
22387 \begin_layout Plain Layout
22388 yhmath
22389 \end_layout
22390
22391 \end_inset
22392 </cell>
22393 </row>
22394 <row>
22395 <cell alignment="left" valignment="top" usebox="none">
22396 \begin_inset Text
22397
22398 \begin_layout Plain Layout
22399 amsthm
22400 \end_layout
22401
22402 \end_inset
22403 </cell>
22404 <cell alignment="left" valignment="top" usebox="none">
22405 \begin_inset Text
22406
22407 \begin_layout Plain Layout
22408 dvipost
22409 \end_layout
22410
22411 \end_inset
22412 </cell>
22413 <cell alignment="left" valignment="top" usebox="none">
22414 \begin_inset Text
22415
22416 \begin_layout Plain Layout
22417 hyperref
22418 \end_layout
22419
22420 \end_inset
22421 </cell>
22422 <cell alignment="left" valignment="top" usebox="none">
22423 \begin_inset Text
22424
22425 \begin_layout Plain Layout
22426 mathdots
22427 \end_layout
22428
22429 \end_inset
22430 </cell>
22431 <cell alignment="center" valignment="top" usebox="none">
22432 \begin_inset Text
22433
22434 \begin_layout Plain Layout
22435 polyglossia
22436 \end_layout
22437
22438 \end_inset
22439 </cell>
22440 <cell alignment="center" valignment="top" usebox="none">
22441 \begin_inset Text
22442
22443 \begin_layout Plain Layout
22444 splitidx
22445 \end_layout
22446
22447 \end_inset
22448 </cell>
22449 <cell alignment="center" valignment="top" usebox="none">
22450 \begin_inset Text
22451
22452 \begin_layout Plain Layout
22453 undertilde
22454 \end_layout
22455
22456 \end_inset
22457 </cell>
22458 <cell alignment="center" valignment="top" usebox="none">
22459 \begin_inset Text
22460
22461 \begin_layout Plain Layout
22462
22463 \end_layout
22464
22465 \end_inset
22466 </cell>
22467 </row>
22468 <row>
22469 <cell alignment="left" valignment="top" usebox="none">
22470 \begin_inset Text
22471
22472 \begin_layout Plain Layout
22473 array
22474 \end_layout
22475
22476 \end_inset
22477 </cell>
22478 <cell alignment="left" valignment="top" usebox="none">
22479 \begin_inset Text
22480
22481 \begin_layout Plain Layout
22482 endnotes
22483 \end_layout
22484
22485 \end_inset
22486 </cell>
22487 <cell alignment="left" valignment="top" usebox="none">
22488 \begin_inset Text
22489
22490 \begin_layout Plain Layout
22491 ifsym
22492 \end_layout
22493
22494 \end_inset
22495 </cell>
22496 <cell alignment="left" valignment="top" usebox="none">
22497 \begin_inset Text
22498
22499 \begin_layout Plain Layout
22500 mathrsfs
22501 \end_layout
22502
22503 \end_inset
22504 </cell>
22505 <cell alignment="center" valignment="top" usebox="none">
22506 \begin_inset Text
22507
22508 \begin_layout Plain Layout
22509 prettyref
22510 \end_layout
22511
22512 \end_inset
22513 </cell>
22514 <cell alignment="center" valignment="top" usebox="none">
22515 \begin_inset Text
22516
22517 \begin_layout Plain Layout
22518 subfig
22519 \end_layout
22520
22521 \end_inset
22522 </cell>
22523 <cell alignment="center" valignment="top" usebox="none">
22524 \begin_inset Text
22525
22526 \begin_layout Plain Layout
22527 units
22528 \end_layout
22529
22530 \end_inset
22531 </cell>
22532 <cell alignment="center" valignment="top" usebox="none">
22533 \begin_inset Text
22534
22535 \begin_layout Plain Layout
22536
22537 \end_layout
22538
22539 \end_inset
22540 </cell>
22541 </row>
22542 <row>
22543 <cell alignment="left" valignment="top" usebox="none">
22544 \begin_inset Text
22545
22546 \begin_layout Plain Layout
22547 ascii
22548 \end_layout
22549
22550 \end_inset
22551 </cell>
22552 <cell alignment="left" valignment="top" usebox="none">
22553 \begin_inset Text
22554
22555 \begin_layout Plain Layout
22556 enumitem
22557 \end_layout
22558
22559 \end_inset
22560 </cell>
22561 <cell alignment="left" valignment="top" usebox="none">
22562 \begin_inset Text
22563
22564 \begin_layout Plain Layout
22565 ifthen
22566 \end_layout
22567
22568 \end_inset
22569 </cell>
22570 <cell alignment="left" valignment="top" usebox="none">
22571 \begin_inset Text
22572
22573 \begin_layout Plain Layout
22574 mhchem
22575 \end_layout
22576
22577 \end_inset
22578 </cell>
22579 <cell alignment="center" valignment="top" usebox="none">
22580 \begin_inset Text
22581
22582 \begin_layout Plain Layout
22583 pxfonts
22584 \end_layout
22585
22586 \end_inset
22587 </cell>
22588 <cell alignment="center" valignment="top" usebox="none">
22589 \begin_inset Text
22590
22591 \begin_layout Plain Layout
22592 subscript
22593 \end_layout
22594
22595 \end_inset
22596 </cell>
22597 <cell alignment="center" valignment="top" usebox="none">
22598 \begin_inset Text
22599
22600 \begin_layout Plain Layout
22601 url
22602 \end_layout
22603
22604 \end_inset
22605 </cell>
22606 <cell alignment="center" valignment="top" usebox="none">
22607 \begin_inset Text
22608
22609 \begin_layout Plain Layout
22610
22611 \end_layout
22612
22613 \end_inset
22614 </cell>
22615 </row>
22616 <row>
22617 <cell alignment="left" valignment="top" usebox="none">
22618 \begin_inset Text
22619
22620 \begin_layout Plain Layout
22621 bbding
22622 \end_layout
22623
22624 \end_inset
22625 </cell>
22626 <cell alignment="left" valignment="top" usebox="none">
22627 \begin_inset Text
22628
22629 \begin_layout Plain Layout
22630 esint
22631 \end_layout
22632
22633 \end_inset
22634 </cell>
22635 <cell alignment="left" valignment="top" usebox="none">
22636 \begin_inset Text
22637
22638 \begin_layout Plain Layout
22639 jurabib
22640 \end_layout
22641
22642 \end_inset
22643 </cell>
22644 <cell alignment="left" valignment="top" usebox="none">
22645 \begin_inset Text
22646
22647 \begin_layout Plain Layout
22648 multicol
22649 \end_layout
22650
22651 \end_inset
22652 </cell>
22653 <cell alignment="center" valignment="top" usebox="none">
22654 \begin_inset Text
22655
22656 \begin_layout Plain Layout
22657 refstyle
22658 \end_layout
22659
22660 \end_inset
22661 </cell>
22662 <cell alignment="center" valignment="top" usebox="none">
22663 \begin_inset Text
22664
22665 \begin_layout Plain Layout
22666 textcomp
22667 \end_layout
22668
22669 \end_inset
22670 </cell>
22671 <cell alignment="center" valignment="top" usebox="none">
22672 \begin_inset Text
22673
22674 \begin_layout Plain Layout
22675 varioref
22676 \end_layout
22677
22678 \end_inset
22679 </cell>
22680 <cell alignment="center" valignment="top" usebox="none">
22681 \begin_inset Text
22682
22683 \begin_layout Plain Layout
22684
22685 \end_layout
22686
22687 \end_inset
22688 </cell>
22689 </row>
22690 <row>
22691 <cell alignment="center" valignment="top" usebox="none">
22692 \begin_inset Text
22693
22694 \begin_layout Plain Layout
22695 bm
22696 \end_layout
22697
22698 \end_inset
22699 </cell>
22700 <cell alignment="center" valignment="top" usebox="none">
22701 \begin_inset Text
22702
22703 \begin_layout Plain Layout
22704 fancybox
22705 \end_layout
22706
22707 \end_inset
22708 </cell>
22709 <cell alignment="center" valignment="top" usebox="none">
22710 \begin_inset Text
22711
22712 \begin_layout Plain Layout
22713 latexsym
22714 \end_layout
22715
22716 \end_inset
22717 </cell>
22718 <cell alignment="center" valignment="top" usebox="none">
22719 \begin_inset Text
22720
22721 \begin_layout Plain Layout
22722 multirow
22723 \end_layout
22724
22725 \end_inset
22726 </cell>
22727 <cell alignment="center" valignment="top" usebox="none">
22728 \begin_inset Text
22729
22730 \begin_layout Plain Layout
22731 rotating
22732 \end_layout
22733
22734 \end_inset
22735 </cell>
22736 <cell alignment="center" valignment="top" usebox="none">
22737 \begin_inset Text
22738
22739 \begin_layout Plain Layout
22740 textgreek
22741 \end_layout
22742
22743 \end_inset
22744 </cell>
22745 <cell alignment="center" valignment="top" usebox="none">
22746 \begin_inset Text
22747
22748 \begin_layout Plain Layout
22749 verbatim
22750 \end_layout
22751
22752 \end_inset
22753 </cell>
22754 <cell alignment="center" valignment="top" usebox="none">
22755 \begin_inset Text
22756
22757 \begin_layout Plain Layout
22758
22759 \end_layout
22760
22761 \end_inset
22762 </cell>
22763 </row>
22764 </lyxtabular>
22765
22766 \end_inset
22767
22768
22769 \end_layout
22770
22771 \begin_layout Chapter
22772 レイアウトで使用できる色名
22773 \begin_inset CommandInset label
22774 LatexCommand label
22775 name "chap:色名"
22776
22777 \end_inset
22778
22779
22780 \end_layout
22781
22782 \begin_layout Standard
22783 ここに列挙されている色は標準色であり,\SpecialChar LyX
22784 設定で調整できるものです.
22785 \end_layout
22786
22787 \begin_layout Description
22788 none
22789 \series medium
22790  
22791 \series default
22792 特定の色ではありません – 透明か既定色です
22793 \end_layout
22794
22795 \begin_layout Description
22796 black
22797 \end_layout
22798
22799 \begin_layout Description
22800 white
22801 \end_layout
22802
22803 \begin_layout Description
22804 red
22805 \end_layout
22806
22807 \begin_layout Description
22808 green
22809 \end_layout
22810
22811 \begin_layout Description
22812 blue
22813 \end_layout
22814
22815 \begin_layout Description
22816 cyan
22817 \end_layout
22818
22819 \begin_layout Description
22820 magenta
22821 \end_layout
22822
22823 \begin_layout Description
22824 yellow
22825 \end_layout
22826
22827 \begin_layout Description
22828 added_space 空白マーカ色
22829 \end_layout
22830
22831 \begin_layout Description
22832 addedtext 追加された文章色
22833 \end_layout
22834
22835 \begin_layout Description
22836 appendix 付録マーカ色
22837 \end_layout
22838
22839 \begin_layout Description
22840 background 背景色
22841 \end_layout
22842
22843 \begin_layout Description
22844 bottomarea 下部領域色
22845 \end_layout
22846
22847 \begin_layout Description
22848 branchlabel 派生枝ラベル色
22849 \end_layout
22850
22851 \begin_layout Description
22852 buttonbg ボタンの背景色
22853 \end_layout
22854
22855 \begin_layout Description
22856 buttonhoverbg フォーカスを得ているボタンの背景色
22857 \end_layout
22858
22859 \begin_layout Description
22860 buttonframe 差込枠の縁色
22861 \end_layout
22862
22863 \begin_layout Description
22864 changebar 変更バー色
22865 \end_layout
22866
22867 \begin_layout Description
22868 changedtextauthor1 変更された文章:第1著者の色
22869 \end_layout
22870
22871 \begin_layout Description
22872 changedtextauthor2 変更された文章:第2著者の色
22873 \end_layout
22874
22875 \begin_layout Description
22876 changedtextauthor3 変更された文章:第3著者の色
22877 \end_layout
22878
22879 \begin_layout Description
22880 changedtextauthor4 変更された文章:第4著者の色
22881 \end_layout
22882
22883 \begin_layout Description
22884 changedtextauthor5 変更された文章:第5著者の色
22885 \end_layout
22886
22887 \begin_layout Description
22888 collapsable_inset_frame 畳み込み可能枠の縁色
22889 \end_layout
22890
22891 \begin_layout Description
22892 collapsable_inset_text 畳み込み可能枠の文字色
22893 \end_layout
22894
22895 \begin_layout Description
22896 command コマンド差込枠の文字色
22897 \end_layout
22898
22899 \begin_layout Description
22900 commandbg コマンド差込枠の背景色
22901 \end_layout
22902
22903 \begin_layout Description
22904 commandframe コマンド差込枠の縁色
22905 \end_layout
22906
22907 \begin_layout Description
22908 comment コメント色
22909 \end_layout
22910
22911 \begin_layout Description
22912 commentbg コメントの背景色
22913 \end_layout
22914
22915 \begin_layout Description
22916 cursor カーソル色
22917 \end_layout
22918
22919 \begin_layout Description
22920 deletedtext 削除された文章の色
22921 \end_layout
22922
22923 \begin_layout Description
22924 deletedtextmodifier 削除された文章の修飾子の色
22925 \end_layout
22926
22927 \begin_layout Description
22928 depthbar 余白部の階層表示線の色
22929 \end_layout
22930
22931 \begin_layout Description
22932 eolmarker 行末標色
22933 \end_layout
22934
22935 \begin_layout Description
22936 error \SpecialChar LaTeX
22937 エラーボックス色
22938 \end_layout
22939
22940 \begin_layout Description
22941 footlabel 脚註ラベル色
22942 \end_layout
22943
22944 \begin_layout Description
22945 graphicsbg 画像差込枠の背景色
22946 \end_layout
22947
22948 \begin_layout Description
22949 greyedout 淡色表示差込枠のラベル色
22950 \end_layout
22951
22952 \begin_layout Description
22953 greyedoutbg 淡色表示差込枠の背景色
22954 \end_layout
22955
22956 \begin_layout Description
22957 greyedouttext 淡色表示差込枠の文字色
22958 \end_layout
22959
22960 \begin_layout Description
22961 indexlabel 索引差込枠のラベル色
22962 \end_layout
22963
22964 \begin_layout Description
22965 ignore この色を無視します
22966 \end_layout
22967
22968 \begin_layout Description
22969 inherit この色を継承します
22970 \end_layout
22971
22972 \begin_layout Description
22973 inlinecompletion 行内補完色
22974 \end_layout
22975
22976 \begin_layout Description
22977 insetbg 差込枠標の背景色
22978 \end_layout
22979
22980 \begin_layout Description
22981 insetframe 差込枠標の縁色
22982 \end_layout
22983
22984 \begin_layout Description
22985 language 外国語の単語を標識するための色
22986 \end_layout
22987
22988 \begin_layout Description
22989 latex \SpecialChar LaTeX
22990 モードの文字色
22991 \end_layout
22992
22993 \begin_layout Description
22994 listingsbg プログラムリスト差込枠の背景色
22995 \end_layout
22996
22997 \begin_layout Description
22998 marginlabel 傍註のラベル色
22999 \end_layout
23000
23001 \begin_layout Description
23002 math 数式差込枠の文字色
23003 \end_layout
23004
23005 \begin_layout Description
23006 mathbg 数式差込枠の背景色
23007 \end_layout
23008
23009 \begin_layout Description
23010 mathcorners フォーカスを得ていない数式差込枠の縁色
23011 \end_layout
23012
23013 \begin_layout Description
23014 mathframe フォーカスを得ている数式差込枠の縁色
23015 \end_layout
23016
23017 \begin_layout Description
23018 mathline 数式行色
23019 \end_layout
23020
23021 \begin_layout Description
23022 mathmacrobg 数式マクロ差込枠の背景色
23023 \end_layout
23024
23025 \begin_layout Description
23026 mathmacroblend 数式マクロ差込枠の混ぜ合わせ色
23027 \end_layout
23028
23029 \begin_layout Description
23030 mathmacroframe 数式マクロ差込枠の縁色
23031 \end_layout
23032
23033 \begin_layout Description
23034 mathmacrohoverbg マウスを置いたときの数式マクロ差込枠の背景色
23035 \end_layout
23036
23037 \begin_layout Description
23038 mathmacrolabel 数式マクロ差込枠のラベル色
23039 \end_layout
23040
23041 \begin_layout Description
23042 mathmacronewarg 数式マクロ新パラメーターのひな型色
23043 \end_layout
23044
23045 \begin_layout Description
23046 mathmacrooldarg 数式マクロ旧パラメーターのひな型色
23047 \end_layout
23048
23049 \begin_layout Description
23050 newpage 新規頁色
23051 \end_layout
23052
23053 \begin_layout Description
23054 nonunique_inlinecompletion 行内補完の一意でない部分の色
23055 \end_layout
23056
23057 \begin_layout Description
23058 notebg 註釈の背景色
23059 \end_layout
23060
23061 \begin_layout Description
23062 notelabel 註釈のラベル色
23063 \end_layout
23064
23065 \begin_layout Description
23066 pagebreak 改頁/改行色
23067 \end_layout
23068
23069 \begin_layout Description
23070 paragraphmarker 段落末を標識するための段落標の色
23071 \end_layout
23072
23073 \begin_layout Description
23074 phantomtext 埋め草差込枠の文字色
23075 \end_layout
23076
23077 \begin_layout Description
23078 preview プレビューに用いられる色
23079 \end_layout
23080
23081 \begin_layout Description
23082 previewframe プレビュー縁色
23083 \end_layout
23084
23085 \begin_layout Description
23086 regexpframe 正規表現枠の色
23087 \end_layout
23088
23089 \begin_layout Description
23090 selection 文章選択部の背景色
23091 \end_layout
23092
23093 \begin_layout Description
23094 selectiontext 文章選択部の前景色
23095 \end_layout
23096
23097 \begin_layout Description
23098 shadedbg 影付きボックスの背景色
23099 \end_layout
23100
23101 \begin_layout Description
23102 special 特殊文字の色
23103 \end_layout
23104
23105 \begin_layout Description
23106 tabularline 罫線色
23107 \end_layout
23108
23109 \begin_layout Description
23110 tabularonoffline 罫線色
23111 \end_layout
23112
23113 \begin_layout Description
23114 urllabel URL差込枠のラベル色
23115 \end_layout
23116
23117 \begin_layout Description
23118 urltext URL差込枠の文字色
23119 \end_layout
23120
23121 \end_body
23122 \end_document